All-in-One Video Gallery - Version 2.5.6

Version Description

  • New: Exclude categories selectively from the front-end search/video forms.
  • New: Support for YouTube shorts.
  • Tweak: Updated video.js player library & plugins.
  • Tweak: Improvised tags input field.
  • Tweak: Option to forcefully enable/disable comments in the front-end video pages.
  • Fix: [+] few minor bug fixes.
Download this release

Release Info

Developer plugins360
Plugin Icon 128x128 All-in-One Video Gallery
Version 2.5.6
Comparing to
See all releases

Code changes from version 2.5.5 to 2.5.6

Files changed (61) hide show
  1. README.txt +17 -2
  2. admin/admin.php +14 -1
  3. admin/assets/css/admin.css +9 -0
  4. admin/assets/js/admin.js +3 -1
  5. admin/categories.php +18 -13
  6. admin/partials/{category-image.php → category-fields.php} +23 -4
  7. admin/settings.php +10 -4
  8. admin/tags.php +1 -1
  9. admin/videos.php +11 -9
  10. all-in-one-video-gallery.php +2 -2
  11. blocks/blocks.php +1 -1
  12. freemius/assets/img/all-in-one-video-gallery.png +0 -0
  13. includes/functions.php +41 -10
  14. includes/init.php +5 -4
  15. includes/player.php +10 -5
  16. languages/all-in-one-video-gallery.pot +451 -412
  17. public/assets/css/public.css +49 -1
  18. public/assets/js/public.js +215 -21
  19. public/assets/videojs-plugins/dailymotion/videojs-dailymotion.min.js +1 -1
  20. public/public.php +4 -1
  21. public/search.php +2 -0
  22. public/templates/player-html5.php +22 -9
  23. public/templates/search-form-template-horizontal.php +68 -54
  24. public/templates/search-form-template-vertical.php +65 -49
  25. public/video.php +31 -0
  26. public/videos.php +39 -2
  27. vendor/videojs-plugins/overlay/videojs-overlay.min.js +2 -2
  28. vendor/videojs/font/index.html +0 -1
  29. vendor/videojs/lang/de.js +2 -2
  30. vendor/videojs/lang/de.json +2 -2
  31. vendor/videojs/lang/en.js +1 -1
  32. vendor/videojs/lang/en.json +1 -1
  33. vendor/videojs/lang/es.js +3 -1
  34. vendor/videojs/lang/es.json +4 -2
  35. vendor/videojs/lang/fr.js +4 -1
  36. vendor/videojs/lang/fr.json +4 -1
  37. vendor/videojs/lang/hi.js +89 -0
  38. vendor/videojs/lang/hi.json +89 -0
  39. vendor/videojs/lang/hu.js +64 -1
  40. vendor/videojs/lang/hu.json +64 -1
  41. vendor/videojs/lang/index.html +0 -1
  42. vendor/videojs/lang/it.js +59 -2
  43. vendor/videojs/lang/it.json +60 -3
  44. vendor/videojs/lang/ja.js +58 -1
  45. vendor/videojs/lang/ja.json +58 -1
  46. vendor/videojs/lang/ko.js +57 -1
  47. vendor/videojs/lang/ko.json +57 -1
  48. vendor/videojs/lang/lv.js +89 -0
  49. vendor/videojs/lang/lv.json +89 -0
  50. vendor/videojs/lang/pl.js +46 -2
  51. vendor/videojs/lang/pl.json +46 -2
  52. vendor/videojs/lang/ro.js +89 -0
  53. vendor/videojs/lang/ro.json +89 -0
  54. vendor/videojs/lang/te.js +89 -0
  55. vendor/videojs/lang/te.json +89 -0
  56. vendor/videojs/lang/zh-Hant.js +19 -19
  57. vendor/videojs/lang/zh-Hant.json +19 -19
  58. vendor/videojs/lang/zh-TW.js +19 -19
  59. vendor/videojs/lang/zh-TW.json +19 -19
  60. vendor/videojs/video-js.min.css +1 -1
  61. vendor/videojs/video.min.js +4 -4
README.txt CHANGED
@@ -6,7 +6,7 @@ Tags: video player, video gallery, youtube gallery, vimeo gallery, livestream
6
  Requires at least: 4.7.0
7
  Tested up to: 5.9
8
  Requires PHP: 5.6.20
9
- Stable tag: 2.5.5
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
@@ -136,6 +136,15 @@ Yes, it is. However, do not "network-activate" the plugin. Activate it only on t
136
 
137
  == Changelog ==
138
 
 
 
 
 
 
 
 
 
 
139
  = 2.5.5 =
140
 
141
  * New: Introduces an option to exclude video description when auto-importing videos from YouTube.
@@ -262,4 +271,10 @@ Fix: Updates to the latest Vimeo Image URLs.
262
 
263
  = EARLIER VERSIONS =
264
 
265
- For the changelog of earlier versions, please refer to the [changelog on plugins360.com](https://plugins360.com/all-in-one-video-gallery/changelog/).
 
 
 
 
 
 
6
  Requires at least: 4.7.0
7
  Tested up to: 5.9
8
  Requires PHP: 5.6.20
9
+ Stable tag: 2.5.6
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
136
 
137
  == Changelog ==
138
 
139
+ = 2.5.6 =
140
+
141
+ * New: Exclude categories selectively from the front-end search/video forms.
142
+ * New: Support for YouTube shorts.
143
+ * Tweak: Updated video.js player library & plugins.
144
+ * Tweak: Improvised tags input field.
145
+ * Tweak: Option to forcefully enable/disable comments in the front-end video pages.
146
+ * Fix: [+] few minor bug fixes.
147
+
148
  = 2.5.5 =
149
 
150
  * New: Introduces an option to exclude video description when auto-importing videos from YouTube.
271
 
272
  = EARLIER VERSIONS =
273
 
274
+ For the changelog of earlier versions, please refer to the [changelog on plugins360.com](https://plugins360.com/all-in-one-video-gallery/changelog/).
275
+
276
+ == Upgrade Notice ==
277
+
278
+ = 2.5.6 =
279
+
280
+ Introduces several bug fixes, new features & enhancements. [See changelog](https://wordpress.org/plugins/all-in-one-video-gallery/#developers)
admin/admin.php CHANGED
@@ -78,6 +78,19 @@ class AIOVG_Admin {
78
  update_option( 'aiovg_videos_settings', array_merge( $videos_settings, $new_videos_settings ) );
79
  }
80
 
 
 
 
 
 
 
 
 
 
 
 
 
 
81
  // Insert the related videos settings
82
  if ( false == get_option( 'aiovg_related_videos_settings' ) ) {
83
  add_option( 'aiovg_related_videos_settings', array(
@@ -533,7 +546,7 @@ class AIOVG_Admin {
533
  'i18n' => array(
534
  'copied' => __( 'Copied', 'all-in-one-video-gallery' ),
535
  'no_issues_selected' => __( 'Please select at least one issue.', 'all-in-one-video-gallery' ),
536
- 'no_video_selected' => __( 'No video was selected. The last added video will be displayed.', 'all-in-one-video-gallery' ),
537
  'quality_exists' => __( 'Sorry, there is already a video with this quality level.', 'all-in-one-video-gallery' ),
538
  'remove' => __( 'Remove', 'all-in-one-video-gallery' ),
539
  )
78
  update_option( 'aiovg_videos_settings', array_merge( $videos_settings, $new_videos_settings ) );
79
  }
80
 
81
+ // Insert the missing video settings
82
+ $video_settings = get_option( 'aiovg_video_settings' );
83
+
84
+ $new_video_settings = array();
85
+
86
+ if ( empty( $video_settings['has_comments'] ) ) {
87
+ $new_video_settings['has_comments'] = -1;
88
+ }
89
+
90
+ if ( count( $new_video_settings ) ) {
91
+ update_option( 'aiovg_video_settings', array_merge( $video_settings, $new_video_settings ) );
92
+ }
93
+
94
  // Insert the related videos settings
95
  if ( false == get_option( 'aiovg_related_videos_settings' ) ) {
96
  add_option( 'aiovg_related_videos_settings', array(
546
  'i18n' => array(
547
  'copied' => __( 'Copied', 'all-in-one-video-gallery' ),
548
  'no_issues_selected' => __( 'Please select at least one issue.', 'all-in-one-video-gallery' ),
549
+ 'no_video_selected' => __( 'No video selected. The last added video will be displayed.', 'all-in-one-video-gallery' ),
550
  'quality_exists' => __( 'Sorry, there is already a video with this quality level.', 'all-in-one-video-gallery' ),
551
  'remove' => __( 'Remove', 'all-in-one-video-gallery' ),
552
  )
admin/assets/css/admin.css CHANGED
@@ -630,6 +630,15 @@ table.aiovg-table .aiovg-handle {
630
  display: none;
631
  }
632
 
 
 
 
 
 
 
 
 
 
633
  .aiovg-widget-form-videos .aiovg-widget-field-include,
634
  .aiovg-widget-form-videos .aiovg-widget-field-exclude,
635
  .aiovg-widget-form-videos .aiovg-widget-field-ratio,
630
  display: none;
631
  }
632
 
633
+ .aiovg-widget-form-categories.aiovg-template-dropdown .aiovg-widget-field-columns,
634
+ .aiovg-widget-form-categories.aiovg-template-dropdown .aiovg-widget-field-limit,
635
+ .aiovg-widget-form-categories.aiovg-template-dropdown .aiovg-widget-field-show_description,
636
+ .aiovg-widget-form-categories.aiovg-template-dropdown .aiovg-widget-field-show_more,
637
+ .aiovg-widget-form-categories.aiovg-template-dropdown .aiovg-widget-field-more_label,
638
+ .aiovg-widget-form-categories.aiovg-template-dropdown .aiovg-widget-field-more_link {
639
+ display: none;
640
+ }
641
+
642
  .aiovg-widget-form-videos .aiovg-widget-field-include,
643
  .aiovg-widget-form-videos .aiovg-widget-field-exclude,
644
  .aiovg-widget-form-videos .aiovg-widget-field-ratio,
admin/assets/js/admin.js CHANGED
@@ -437,7 +437,7 @@
437
  $( '#aiovg-categories-upload-image' ).show();
438
  });
439
 
440
- // Categories: Clear the image field after a category was created
441
  $( document ).ajaxComplete(function( e, xhr, settings ) {
442
  if ( $( "#aiovg-categories-image-id" ).length ) {
443
  var queryStringArr = settings.data.split( '&' );
@@ -448,6 +448,8 @@
448
  if ( '' != response ) {
449
  $( '#aiovg-categories-image-id' ).val( '' );
450
  $( '#aiovg-categories-image-wrapper' ).html( '' );
 
 
451
 
452
  $( '#aiovg-categories-remove-image' ).hide();
453
  $( '#aiovg-categories-upload-image' ).show();
437
  $( '#aiovg-categories-upload-image' ).show();
438
  });
439
 
440
+ // Categories: Clear the custom fields after the form submitted
441
  $( document ).ajaxComplete(function( e, xhr, settings ) {
442
  if ( $( "#aiovg-categories-image-id" ).length ) {
443
  var queryStringArr = settings.data.split( '&' );
448
  if ( '' != response ) {
449
  $( '#aiovg-categories-image-id' ).val( '' );
450
  $( '#aiovg-categories-image-wrapper' ).html( '' );
451
+ $( '#aiovg-categories-exclude-search-form' ).prop( 'checked', false );
452
+ $( '#aiovg-categories-exclude-video-form' ).prop( 'checked', false );
453
 
454
  $( '#aiovg-categories-remove-image' ).hide();
455
  $( '#aiovg-categories-upload-image' ).show();
admin/categories.php CHANGED
@@ -77,7 +77,7 @@ class AIOVG_Admin_Categories {
77
  'choose_from_most_used' => __( 'Choose from the most used', 'all-in-one-video-gallery' ),
78
  'popular_items' => __( 'Popular Categories', 'all-in-one-video-gallery' ),
79
  'search_items' => __( 'Search Categories', 'all-in-one-video-gallery' ),
80
- 'not_found' => __( 'Not Found', 'all-in-one-video-gallery' ),
81
  'no_terms' => __( 'No categories', 'all-in-one-video-gallery' ),
82
  'items_list' => __( 'Categories list', 'all-in-one-video-gallery' ),
83
  'items_list_navigation' => __( 'Categories list navigation', 'all-in-one-video-gallery' ),
@@ -104,44 +104,49 @@ class AIOVG_Admin_Categories {
104
  }
105
 
106
  /**
107
- * Add image field.
108
  *
109
  * @since 1.0.0
110
  */
111
- public function add_image_field() {
112
  $form = 'add';
113
- require_once AIOVG_PLUGIN_DIR . 'admin/partials/category-image.php';
114
  }
115
 
116
  /**
117
- * Edit image field.
118
  *
119
  * @since 1.0.0
120
  * @param object $term Taxonomy term object.
121
  */
122
- public function edit_image_field( $term ) {
123
  $form = 'edit';
124
 
125
  $image_id = get_term_meta( $term->term_id, 'image_id', true );
126
  $image_url = $image_id ? wp_get_attachment_url( (int) $image_id ) : '';
 
 
127
 
128
- require_once AIOVG_PLUGIN_DIR . 'admin/partials/category-image.php';
129
  }
130
 
131
  /**
132
- * Save the image field.
133
  *
134
  * @since 1.0.0
135
  * @param int $term_id Term ID.
136
  */
137
- public function save_image_field( $term_id ) {
138
- // Check if "aiovg_category_image_nonce" nonce is set
139
- if ( isset( $_POST['aiovg_category_image_nonce'] ) ) {
140
  // Verify that the nonce is valid
141
- if ( wp_verify_nonce( $_POST['aiovg_category_image_nonce'], 'aiovg_process_category_image' ) ) {
142
  // OK to save meta data
143
  $image_id = isset( $_POST['image_id'] ) ? (int) $_POST['image_id'] : 0;
144
- update_term_meta( $term_id, 'image_id', $image_id );
 
 
 
145
  }
146
  }
147
  }
77
  'choose_from_most_used' => __( 'Choose from the most used', 'all-in-one-video-gallery' ),
78
  'popular_items' => __( 'Popular Categories', 'all-in-one-video-gallery' ),
79
  'search_items' => __( 'Search Categories', 'all-in-one-video-gallery' ),
80
+ 'not_found' => __( 'No categories found', 'all-in-one-video-gallery' ),
81
  'no_terms' => __( 'No categories', 'all-in-one-video-gallery' ),
82
  'items_list' => __( 'Categories list', 'all-in-one-video-gallery' ),
83
  'items_list_navigation' => __( 'Categories list navigation', 'all-in-one-video-gallery' ),
104
  }
105
 
106
  /**
107
+ * Add custom form fields.
108
  *
109
  * @since 1.0.0
110
  */
111
+ public function add_form_fields() {
112
  $form = 'add';
113
+ require_once AIOVG_PLUGIN_DIR . 'admin/partials/category-fields.php';
114
  }
115
 
116
  /**
117
+ * Edit custom form fields.
118
  *
119
  * @since 1.0.0
120
  * @param object $term Taxonomy term object.
121
  */
122
+ public function edit_form_fields( $term ) {
123
  $form = 'edit';
124
 
125
  $image_id = get_term_meta( $term->term_id, 'image_id', true );
126
  $image_url = $image_id ? wp_get_attachment_url( (int) $image_id ) : '';
127
+
128
+ $exclude_search_form = get_term_meta( $term->term_id, 'exclude_search_form', true );
129
 
130
+ require_once AIOVG_PLUGIN_DIR . 'admin/partials/category-fields.php';
131
  }
132
 
133
  /**
134
+ * Save custom form fields.
135
  *
136
  * @since 1.0.0
137
  * @param int $term_id Term ID.
138
  */
139
+ public function save_form_fields( $term_id ) {
140
+ // Check if "aiovg_category_fields_nonce" nonce is set
141
+ if ( isset( $_POST['aiovg_category_fields_nonce'] ) ) {
142
  // Verify that the nonce is valid
143
+ if ( wp_verify_nonce( $_POST['aiovg_category_fields_nonce'], 'aiovg_save_category_fields' ) ) {
144
  // OK to save meta data
145
  $image_id = isset( $_POST['image_id'] ) ? (int) $_POST['image_id'] : 0;
146
+ update_term_meta( $term_id, 'image_id', $image_id );
147
+
148
+ $exclude_search_form = isset( $_POST['exclude_search_form'] ) ? 1 : 0;
149
+ update_term_meta( $term_id, 'exclude_search_form', $exclude_search_form );
150
  }
151
  }
152
  }
admin/partials/{category-image.php → category-fields.php} RENAMED
@@ -1,7 +1,7 @@
1
  <?php
2
 
3
  /**
4
- * Categories: Image Field.
5
  *
6
  * @link https://plugins360.com
7
  * @since 1.0.0
@@ -11,7 +11,7 @@
11
  ?>
12
 
13
  <?php if ( 'add' == $form ) : ?>
14
- <div class="form-field term-group">
15
  <label for="aiovg-categories-image-id"><?php esc_html_e( 'Image', 'all-in-one-video-gallery' ); ?></label>
16
  <input type="hidden" name="image_id" id="aiovg-categories-image-id" />
17
  <div id="aiovg-categories-image-wrapper"></div>
@@ -20,8 +20,16 @@
20
  <input type="button" id="aiovg-categories-remove-image" class="button button-secondary" value="<?php esc_attr_e( 'Remove Image', 'all-in-one-video-gallery' ); ?>" style="display: none;" />
21
  </p>
22
  </div>
 
 
 
 
 
 
 
 
23
  <?php elseif ( 'edit' == $form ) : ?>
24
- <tr class="form-field term-group-wrap">
25
  <th scope="row">
26
  <label for="aiovg-categories-image-id"><?php esc_html_e( 'Image', 'all-in-one-video-gallery' ); ?></label>
27
  </th>
@@ -38,6 +46,17 @@
38
  </p>
39
  </td>
40
  </tr>
 
 
 
 
 
 
 
 
 
 
 
41
  <?php endif;
42
  // Add a nonce field
43
- wp_nonce_field( 'aiovg_process_category_image', 'aiovg_category_image_nonce' );
1
  <?php
2
 
3
  /**
4
+ * Categories: Custom Fields.
5
  *
6
  * @link https://plugins360.com
7
  * @since 1.0.0
11
  ?>
12
 
13
  <?php if ( 'add' == $form ) : ?>
14
+ <div class="form-field term-image_id-group">
15
  <label for="aiovg-categories-image-id"><?php esc_html_e( 'Image', 'all-in-one-video-gallery' ); ?></label>
16
  <input type="hidden" name="image_id" id="aiovg-categories-image-id" />
17
  <div id="aiovg-categories-image-wrapper"></div>
20
  <input type="button" id="aiovg-categories-remove-image" class="button button-secondary" value="<?php esc_attr_e( 'Remove Image', 'all-in-one-video-gallery' ); ?>" style="display: none;" />
21
  </p>
22
  </div>
23
+
24
+ <div class="form-field term-exclude_search_form-group">
25
+ <label>
26
+ <input type="checkbox" name="exclude_search_form" id="aiovg-categories-exclude-search-form" value="1" />
27
+ <?php esc_html_e( 'Exclude in Search Form', 'all-in-one-video-gallery' ); ?>
28
+ </label>
29
+ <p><?php esc_html_e( 'Exclude this category in the front-end search form.', 'all-in-one-video-gallery' ); ?></p>
30
+ </div>
31
  <?php elseif ( 'edit' == $form ) : ?>
32
+ <tr class="form-field term-image_id-wrap">
33
  <th scope="row">
34
  <label for="aiovg-categories-image-id"><?php esc_html_e( 'Image', 'all-in-one-video-gallery' ); ?></label>
35
  </th>
46
  </p>
47
  </td>
48
  </tr>
49
+ <tr class="form-field term-exclude_search_form-wrap">
50
+ <th scope="row">
51
+ <label for="aiovg-exclude_search_form"><?php esc_html_e( 'Exclude in Search Form', 'all-in-one-video-gallery' ); ?></label>
52
+ </th>
53
+ <td>
54
+ <label>
55
+ <input type="checkbox" name="exclude_search_form" id="aiovg-categories-exclude-search-form" value="1" <?php checked( $exclude_search_form, 1 ); ?> />
56
+ <?php esc_html_e( 'Exclude this category in the front-end search form.', 'all-in-one-video-gallery' ); ?>
57
+ </label>
58
+ </td>
59
+ </tr>
60
  <?php endif;
61
  // Add a nonce field
62
+ wp_nonce_field( 'aiovg_save_category_fields', 'aiovg_category_fields_nonce' );
admin/settings.php CHANGED
@@ -520,11 +520,17 @@ class AIOVG_Admin_Settings {
520
  ),
521
  'sanitize_callback' => 'aiovg_sanitize_array'
522
  ),
523
- array(
524
  'name' => 'has_comments',
525
- 'label' => __( 'Enable Comments', 'all-in-one-video-gallery' ),
526
- 'description' => __( 'Allow visitors to comment videos using the standard WordPress comment form. Comments are public', 'all-in-one-video-gallery' ),
527
- 'type' => 'checkbox',
 
 
 
 
 
 
528
  'sanitize_callback' => 'intval'
529
  )
530
  ),
520
  ),
521
  'sanitize_callback' => 'aiovg_sanitize_array'
522
  ),
523
+ array(
524
  'name' => 'has_comments',
525
+ 'label' => __( 'Enable / Disable Comments', 'all-in-one-video-gallery' ),
526
+ 'description' => '',
527
+ 'type' => 'radio',
528
+ 'options' => array(
529
+ 1 => __( 'Enable comments (can be overridden per video)', 'all-in-one-video-gallery' ),
530
+ 2 => __( 'Forcefully enable comments on all the video pages', 'all-in-one-video-gallery' ),
531
+ -1 => __( 'Disable comments (can be overridden per video)', 'all-in-one-video-gallery' ),
532
+ -2 => __( 'Forcefully disable comments on all the video pages', 'all-in-one-video-gallery' )
533
+ ),
534
  'sanitize_callback' => 'intval'
535
  )
536
  ),
admin/tags.php CHANGED
@@ -77,7 +77,7 @@ class AIOVG_Admin_Tags {
77
  'choose_from_most_used' => __( 'Choose from the most used', 'all-in-one-video-gallery' ),
78
  'popular_items' => __( 'Popular Tags', 'all-in-one-video-gallery' ),
79
  'search_items' => __( 'Search Tags', 'all-in-one-video-gallery' ),
80
- 'not_found' => __( 'Not Found', 'all-in-one-video-gallery' ),
81
  'no_terms' => __( 'No tags', 'all-in-one-video-gallery' ),
82
  'items_list' => __( 'Tags list', 'all-in-one-video-gallery' ),
83
  'items_list_navigation' => __( 'Tags list navigation', 'all-in-one-video-gallery' ),
77
  'choose_from_most_used' => __( 'Choose from the most used', 'all-in-one-video-gallery' ),
78
  'popular_items' => __( 'Popular Tags', 'all-in-one-video-gallery' ),
79
  'search_items' => __( 'Search Tags', 'all-in-one-video-gallery' ),
80
+ 'not_found' => __( 'No tags found', 'all-in-one-video-gallery' ),
81
  'no_terms' => __( 'No tags', 'all-in-one-video-gallery' ),
82
  'items_list' => __( 'Tags list', 'all-in-one-video-gallery' ),
83
  'items_list_navigation' => __( 'Tags list navigation', 'all-in-one-video-gallery' ),
admin/videos.php CHANGED
@@ -80,7 +80,7 @@ class AIOVG_Admin_Videos {
80
  'view_item' => __( 'View Video', 'all-in-one-video-gallery' ),
81
  'view_items' => __( 'View Videos', 'all-in-one-video-gallery' ),
82
  'search_items' => __( 'Search Video', 'all-in-one-video-gallery' ),
83
- 'not_found' => __( 'Not found', 'all-in-one-video-gallery' ),
84
  'not_found_in_trash' => __( 'Not found in Trash', 'all-in-one-video-gallery' ),
85
  'featured_image' => __( 'Featured Image', 'all-in-one-video-gallery' ),
86
  'set_featured_image' => __( 'Set featured image', 'all-in-one-video-gallery' ),
@@ -94,9 +94,11 @@ class AIOVG_Admin_Videos {
94
  );
95
 
96
  $supports = array( 'title', 'editor', 'author', 'excerpt' );
97
- if ( ! empty( $video_settings['has_comments'] ) ) {
 
 
98
  $supports[] = 'comments';
99
- }
100
 
101
  $args = array(
102
  'label' => __( 'Video', 'all-in-one-video-gallery' ),
@@ -271,21 +273,21 @@ class AIOVG_Admin_Videos {
271
 
272
  $mp4 = isset( $_POST['mp4'] ) ? aiovg_sanitize_url( $_POST['mp4'] ) : '';
273
  update_post_meta( $post_id, 'mp4', $mp4 );
274
- update_post_meta( $post_id, 'mp4_id', aiovg_get_attachment_id( $mp4, 'video' ) );
275
 
276
  $has_webm = isset( $_POST['has_webm'] ) ? 1 : 0;
277
  update_post_meta( $post_id, 'has_webm', $has_webm );
278
 
279
  $webm = isset( $_POST['webm'] ) ? aiovg_sanitize_url( $_POST['webm'] ) : '';
280
  update_post_meta( $post_id, 'webm', $webm );
281
- update_post_meta( $post_id, 'webm_id', aiovg_get_attachment_id( $webm, 'video' ) );
282
 
283
  $has_ogv = isset( $_POST['has_ogv'] ) ? 1 : 0;
284
  update_post_meta( $post_id, 'has_ogv', $has_ogv );
285
 
286
  $ogv = isset( $_POST['ogv'] ) ? aiovg_sanitize_url( $_POST['ogv'] ) : '';
287
  update_post_meta( $post_id, 'ogv', $ogv );
288
- update_post_meta( $post_id, 'ogv_id', aiovg_get_attachment_id( $ogv, 'video' ) );
289
 
290
  $quality_level = isset( $_POST['quality_level'] ) ? sanitize_text_field( $_POST['quality_level'] ) : '';
291
  update_post_meta( $post_id, 'quality_level', $quality_level );
@@ -308,7 +310,7 @@ class AIOVG_Admin_Videos {
308
  update_post_meta( $post_id, 'sources', $values );
309
  }
310
 
311
- $youtube = isset( $_POST['youtube'] ) ? esc_url_raw( $_POST['youtube'] ) : '';
312
  update_post_meta( $post_id, 'youtube', $youtube );
313
 
314
  $vimeo = isset( $_POST['vimeo'] ) ? esc_url_raw( $_POST['vimeo'] ) : '';
@@ -329,7 +331,7 @@ class AIOVG_Admin_Videos {
329
  $image_id = 0;
330
  if ( ! empty( $_POST['image'] ) ) {
331
  $image = aiovg_sanitize_url( $_POST['image'] );
332
- $image_id = aiovg_get_attachment_id( $image, 'image' );
333
  } else {
334
  if ( 'youtube' == $type && ! empty( $youtube ) ) {
335
  $image = aiovg_get_youtube_image_url( $youtube );
@@ -368,7 +370,7 @@ class AIOVG_Admin_Videos {
368
  foreach ( $sources as $key => $source ) {
369
  $track = array(
370
  'src' => aiovg_sanitize_url( $source ),
371
- 'src_id' => aiovg_get_attachment_id( $source, 'track' ),
372
  'label' => sanitize_text_field( $_POST['track_label'][ $key ] ),
373
  'srclang' => sanitize_text_field( $_POST['track_srclang'][ $key ] )
374
  );
80
  'view_item' => __( 'View Video', 'all-in-one-video-gallery' ),
81
  'view_items' => __( 'View Videos', 'all-in-one-video-gallery' ),
82
  'search_items' => __( 'Search Video', 'all-in-one-video-gallery' ),
83
+ 'not_found' => __( 'No videos found', 'all-in-one-video-gallery' ),
84
  'not_found_in_trash' => __( 'Not found in Trash', 'all-in-one-video-gallery' ),
85
  'featured_image' => __( 'Featured Image', 'all-in-one-video-gallery' ),
86
  'set_featured_image' => __( 'Set featured image', 'all-in-one-video-gallery' ),
94
  );
95
 
96
  $supports = array( 'title', 'editor', 'author', 'excerpt' );
97
+
98
+ $has_comments = (int) $video_settings['has_comments'];
99
+ if ( $has_comments == 1 || $has_comments == -1 ) {
100
  $supports[] = 'comments';
101
+ }
102
 
103
  $args = array(
104
  'label' => __( 'Video', 'all-in-one-video-gallery' ),
273
 
274
  $mp4 = isset( $_POST['mp4'] ) ? aiovg_sanitize_url( $_POST['mp4'] ) : '';
275
  update_post_meta( $post_id, 'mp4', $mp4 );
276
+ update_post_meta( $post_id, 'mp4_id', attachment_url_to_postid( $mp4, 'video' ) );
277
 
278
  $has_webm = isset( $_POST['has_webm'] ) ? 1 : 0;
279
  update_post_meta( $post_id, 'has_webm', $has_webm );
280
 
281
  $webm = isset( $_POST['webm'] ) ? aiovg_sanitize_url( $_POST['webm'] ) : '';
282
  update_post_meta( $post_id, 'webm', $webm );
283
+ update_post_meta( $post_id, 'webm_id', attachment_url_to_postid( $webm, 'video' ) );
284
 
285
  $has_ogv = isset( $_POST['has_ogv'] ) ? 1 : 0;
286
  update_post_meta( $post_id, 'has_ogv', $has_ogv );
287
 
288
  $ogv = isset( $_POST['ogv'] ) ? aiovg_sanitize_url( $_POST['ogv'] ) : '';
289
  update_post_meta( $post_id, 'ogv', $ogv );
290
+ update_post_meta( $post_id, 'ogv_id', attachment_url_to_postid( $ogv, 'video' ) );
291
 
292
  $quality_level = isset( $_POST['quality_level'] ) ? sanitize_text_field( $_POST['quality_level'] ) : '';
293
  update_post_meta( $post_id, 'quality_level', $quality_level );
310
  update_post_meta( $post_id, 'sources', $values );
311
  }
312
 
313
+ $youtube = isset( $_POST['youtube'] ) ? esc_url_raw( aiovg_resolve_youtube_url( $_POST['youtube'] ) ) : '';
314
  update_post_meta( $post_id, 'youtube', $youtube );
315
 
316
  $vimeo = isset( $_POST['vimeo'] ) ? esc_url_raw( $_POST['vimeo'] ) : '';
331
  $image_id = 0;
332
  if ( ! empty( $_POST['image'] ) ) {
333
  $image = aiovg_sanitize_url( $_POST['image'] );
334
+ $image_id = attachment_url_to_postid( $image, 'image' );
335
  } else {
336
  if ( 'youtube' == $type && ! empty( $youtube ) ) {
337
  $image = aiovg_get_youtube_image_url( $youtube );
370
  foreach ( $sources as $key => $source ) {
371
  $track = array(
372
  'src' => aiovg_sanitize_url( $source ),
373
+ 'src_id' => attachment_url_to_postid( $source, 'track' ),
374
  'label' => sanitize_text_field( $_POST['track_label'][ $key ] ),
375
  'srclang' => sanitize_text_field( $_POST['track_srclang'][ $key ] )
376
  );
all-in-one-video-gallery.php CHANGED
@@ -11,7 +11,7 @@
11
  * Plugin Name: All-in-One Video Gallery
12
  * Plugin URI: https://plugins360.com/all-in-one-video-gallery/
13
  * Description: No coding required. A Responsive & Lightweight video gallery plugin. HTML5 Player, Categories, Visual Builder (Gutenberg), Search Form, Comments, Social Sharing and everything you will need to build a YouTube/Vimeo like video sharing website.
14
- * Version: 2.5.5
15
  * Author: Team Plugins360
16
  * Author URI: https://plugins360.com
17
  * License: GPL-2.0+
@@ -76,7 +76,7 @@ if ( !function_exists( 'aiovg_fs' ) ) {
76
 
77
  // The current version of the plugin
78
  if ( !defined( 'AIOVG_PLUGIN_VERSION' ) ) {
79
- define( 'AIOVG_PLUGIN_VERSION', '2.5.5' );
80
  }
81
  // The unique identifier of the plugin
82
  if ( !defined( 'AIOVG_PLUGIN_SLUG' ) ) {
11
  * Plugin Name: All-in-One Video Gallery
12
  * Plugin URI: https://plugins360.com/all-in-one-video-gallery/
13
  * Description: No coding required. A Responsive & Lightweight video gallery plugin. HTML5 Player, Categories, Visual Builder (Gutenberg), Search Form, Comments, Social Sharing and everything you will need to build a YouTube/Vimeo like video sharing website.
14
+ * Version: 2.5.6
15
  * Author: Team Plugins360
16
  * Author URI: https://plugins360.com
17
  * License: GPL-2.0+
76
 
77
  // The current version of the plugin
78
  if ( !defined( 'AIOVG_PLUGIN_VERSION' ) ) {
79
+ define( 'AIOVG_PLUGIN_VERSION', '2.5.6' );
80
  }
81
  // The unique identifier of the plugin
82
  if ( !defined( 'AIOVG_PLUGIN_SLUG' ) ) {
blocks/blocks.php CHANGED
@@ -425,7 +425,7 @@ class AIOVG_Blocks {
425
  }
426
 
427
  if ( false !== strpos( $atts['src'], 'youtube.com' ) || false !== strpos( $atts['src'], 'youtu.be' ) ) {
428
- $atts['youtube'] = $atts['src'];
429
 
430
  if ( empty( $atts['poster'] ) ) {
431
  $atts['poster'] = aiovg_get_youtube_image_url( $atts['youtube'] );
425
  }
426
 
427
  if ( false !== strpos( $atts['src'], 'youtube.com' ) || false !== strpos( $atts['src'], 'youtu.be' ) ) {
428
+ $atts['youtube'] = aiovg_resolve_youtube_url( $atts['src'] );
429
 
430
  if ( empty( $atts['poster'] ) ) {
431
  $atts['poster'] = aiovg_get_youtube_image_url( $atts['youtube'] );
freemius/assets/img/all-in-one-video-gallery.png ADDED
Binary file
includes/functions.php CHANGED
@@ -48,6 +48,12 @@ function aiovg_allow_iframe_script_tags( $allowed_tags ) {
48
  'marginwidth' => true,
49
  'marginheight' => true,
50
  );
 
 
 
 
 
 
51
 
52
  return $allowed_tags;
53
  }
@@ -189,10 +195,11 @@ function aiovg_delete_video_attachments( $post_id ) {
189
  /**
190
  * Get attachment ID of the given URL.
191
  *
192
- * @since 1.0.0
193
- * @param string $url Media file URL.
194
- * @param string $media "image" or "video". Type of the media.
195
- * @return int Attachment ID on success, 0 on failure.
 
196
  */
197
  function aiovg_get_attachment_id( $url, $media = 'image' ) {
198
  $attachment_id = 0;
@@ -657,13 +664,13 @@ function aiovg_get_message( $msg_id ) {
657
 
658
  switch ( $msg_id ) {
659
  case 'videos_empty':
660
- $message = __( 'No videos found.', 'all-in-one-video-gallery' );
661
  break;
662
  case 'categories_empty':
663
- $message = __( 'No categories found.', 'all-in-one-video-gallery' );
664
  break;
665
  case 'tags_empty':
666
- $message = __( 'No tags found.', 'all-in-one-video-gallery' );
667
  break;
668
  }
669
 
@@ -1651,7 +1658,7 @@ function aiovg_get_youtube_id_from_url( $url ) {
1651
 
1652
  if ( 0 === strcasecmp( $url['host'], 'youtu.be' ) ) {
1653
  $id = substr( $url['path'], 1 );
1654
- } elseif ( 0 === strcasecmp( $url['host'], 'www.youtube.com' ) ) {
1655
  if ( isset( $url['query'] ) ) {
1656
  parse_str( $url['query'], $url['query'] );
1657
  if ( isset( $url['query']['v'] ) ) {
@@ -1661,7 +1668,7 @@ function aiovg_get_youtube_id_from_url( $url ) {
1661
 
1662
  if ( empty( $id ) ) {
1663
  $url['path'] = explode( '/', substr( $url['path'], 1 ) );
1664
- if ( in_array( $url['path'][0], array( 'e', 'embed', 'v' ) ) ) {
1665
  $id = $url['path'][1];
1666
  }
1667
  }
@@ -1682,7 +1689,12 @@ function aiovg_get_youtube_image_url( $url ) {
1682
  $url = '';
1683
 
1684
  if ( ! empty( $id ) ) {
1685
- $url = "https://img.youtube.com/vi/$id/mqdefault.jpg";
 
 
 
 
 
1686
  }
1687
 
1688
  return $url;
@@ -1830,6 +1842,25 @@ function aiovg_remove_query_arg( $key, $query = false ) {
1830
  return add_query_arg( $key, false, $query );
1831
  }
1832
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1833
  /**
1834
  * Resolve relative file paths as absolute URLs.
1835
  *
48
  'marginwidth' => true,
49
  'marginheight' => true,
50
  );
51
+
52
+ // Allow stream and the following attributes
53
+ $allowed_tags['stream'] = array(
54
+ 'src' => true,
55
+ 'controls' => true
56
+ );
57
 
58
  return $allowed_tags;
59
  }
195
  /**
196
  * Get attachment ID of the given URL.
197
  *
198
+ * @since 1.0.0
199
+ * @param string $url Media file URL.
200
+ * @param string $media "image" or "video". Type of the media.
201
+ * @return int Attachment ID on success, 0 on failure.
202
+ * @deprecated Replaced by the WordPress core "attachment_url_to_postid" function.
203
  */
204
  function aiovg_get_attachment_id( $url, $media = 'image' ) {
205
  $attachment_id = 0;
664
 
665
  switch ( $msg_id ) {
666
  case 'videos_empty':
667
+ $message = __( 'No videos found', 'all-in-one-video-gallery' );
668
  break;
669
  case 'categories_empty':
670
+ $message = __( 'No categories found', 'all-in-one-video-gallery' );
671
  break;
672
  case 'tags_empty':
673
+ $message = __( 'No tags found', 'all-in-one-video-gallery' );
674
  break;
675
  }
676
 
1658
 
1659
  if ( 0 === strcasecmp( $url['host'], 'youtu.be' ) ) {
1660
  $id = substr( $url['path'], 1 );
1661
+ } elseif ( 0 === strcasecmp( $url['host'], 'www.youtube.com' ) || 0 === strcasecmp( $url['host'], 'youtube.com' ) ) {
1662
  if ( isset( $url['query'] ) ) {
1663
  parse_str( $url['query'], $url['query'] );
1664
  if ( isset( $url['query']['v'] ) ) {
1668
 
1669
  if ( empty( $id ) ) {
1670
  $url['path'] = explode( '/', substr( $url['path'], 1 ) );
1671
+ if ( in_array( $url['path'][0], array( 'e', 'embed', 'v', 'shorts' ) ) ) {
1672
  $id = $url['path'][1];
1673
  }
1674
  }
1689
  $url = '';
1690
 
1691
  if ( ! empty( $id ) ) {
1692
+ $url = "https://img.youtube.com/vi/$id/maxresdefault.jpg";
1693
+ $response = wp_remote_get( $url );
1694
+
1695
+ if ( 200 != wp_remote_retrieve_response_code( $response ) ) {
1696
+ $url = "https://img.youtube.com/vi/$id/mqdefault.jpg";
1697
+ }
1698
  }
1699
 
1700
  return $url;
1842
  return add_query_arg( $key, false, $query );
1843
  }
1844
 
1845
+ /**
1846
+ * Resolve YouTube URLs.
1847
+ *
1848
+ * @since 2.5.6
1849
+ * @param string $url YouTube URL.
1850
+ * @return string $url Resolved YouTube URL.
1851
+ */
1852
+ function aiovg_resolve_youtube_url( $url ) {
1853
+ if ( false !== strpos( $url, '/shorts/' ) ) {
1854
+ $id = aiovg_get_youtube_id_from_url( $url );
1855
+
1856
+ if ( ! empty( $id ) ) {
1857
+ $url = 'https://www.youtube.com/watch?v=' . $id;
1858
+ }
1859
+ }
1860
+
1861
+ return $url;
1862
+ }
1863
+
1864
  /**
1865
  * Resolve relative file paths as absolute URLs.
1866
  *
includes/init.php CHANGED
@@ -183,10 +183,10 @@ class AIOVG_Init {
183
 
184
  $this->loader->add_action( 'admin_menu', $categories, 'admin_menu' );
185
  $this->loader->add_action( 'init', $categories, 'register_taxonomy' );
186
- $this->loader->add_action( 'aiovg_categories_add_form_fields', $categories, 'add_image_field' );
187
- $this->loader->add_action( 'aiovg_categories_edit_form_fields', $categories, 'edit_image_field' );
188
- $this->loader->add_action( 'created_aiovg_categories', $categories, 'save_image_field' );
189
- $this->loader->add_action( 'edited_aiovg_categories', $categories, 'save_image_field' );
190
  $this->loader->add_action( 'pre_delete_term', $categories, 'pre_delete_term', 10, 2 );
191
 
192
  $this->loader->add_filter( 'parent_file', $categories, 'parent_file' );
@@ -272,6 +272,7 @@ class AIOVG_Init {
272
  $this->loader->add_action( 'wp_ajax_nopriv_aiovg_update_views_count', $video, 'ajax_callback_update_views_count' );
273
 
274
  $this->loader->add_filter( 'the_content', $video, 'the_content', 20 );
 
275
 
276
  // Hooks specific to the search form
277
  $search = new AIOVG_Public_Search();
183
 
184
  $this->loader->add_action( 'admin_menu', $categories, 'admin_menu' );
185
  $this->loader->add_action( 'init', $categories, 'register_taxonomy' );
186
+ $this->loader->add_action( 'aiovg_categories_add_form_fields', $categories, 'add_form_fields' );
187
+ $this->loader->add_action( 'aiovg_categories_edit_form_fields', $categories, 'edit_form_fields' );
188
+ $this->loader->add_action( 'created_aiovg_categories', $categories, 'save_form_fields' );
189
+ $this->loader->add_action( 'edited_aiovg_categories', $categories, 'save_form_fields' );
190
  $this->loader->add_action( 'pre_delete_term', $categories, 'pre_delete_term', 10, 2 );
191
 
192
  $this->loader->add_filter( 'parent_file', $categories, 'parent_file' );
272
  $this->loader->add_action( 'wp_ajax_nopriv_aiovg_update_views_count', $video, 'ajax_callback_update_views_count' );
273
 
274
  $this->loader->add_filter( 'the_content', $video, 'the_content', 20 );
275
+ $this->loader->add_filter( 'comments_open', $video, 'comments_open', 10, 2 );
276
 
277
  // Hooks specific to the search form
278
  $search = new AIOVG_Public_Search();
includes/player.php CHANGED
@@ -347,6 +347,11 @@ class AIOVG_Player {
347
 
348
  if ( isset( $params['sources']['vimeo'] ) ) {
349
  $settings['player']['techOrder'] = array( 'vimeo2' );
 
 
 
 
 
350
  }
351
 
352
  if ( isset( $params['sources']['dailymotion'] ) ) {
@@ -373,7 +378,7 @@ class AIOVG_Player {
373
  AIOVG_PLUGIN_SLUG . '-videojs',
374
  AIOVG_PLUGIN_URL . 'vendor/videojs/video-js.min.css',
375
  array(),
376
- '7.11.8',
377
  'all'
378
  );
379
 
@@ -392,7 +397,7 @@ class AIOVG_Player {
392
  AIOVG_PLUGIN_SLUG . '-overlay',
393
  AIOVG_PLUGIN_URL . 'vendor/videojs-plugins/overlay/videojs-overlay.css',
394
  array(),
395
- '2.1.4',
396
  'all'
397
  );
398
  }
@@ -403,7 +408,7 @@ class AIOVG_Player {
403
  AIOVG_PLUGIN_SLUG . '-videojs',
404
  AIOVG_PLUGIN_URL . 'vendor/videojs/video.min.js',
405
  array(),
406
- '7.11.8',
407
  false
408
  );
409
 
@@ -472,7 +477,7 @@ class AIOVG_Player {
472
  AIOVG_PLUGIN_SLUG . '-overlay',
473
  AIOVG_PLUGIN_URL . 'vendor/videojs-plugins/overlay/videojs-overlay.min.js',
474
  array(),
475
- '2.1.4',
476
  false
477
  );
478
  }
@@ -482,7 +487,7 @@ class AIOVG_Player {
482
  AIOVG_PLUGIN_SLUG . '-can-autoplay',
483
  AIOVG_PLUGIN_URL . 'vendor/videojs-plugins/can-autoplay/can-autoplay.min.js',
484
  array(),
485
- '3.0.0',
486
  false
487
  );
488
  }
347
 
348
  if ( isset( $params['sources']['vimeo'] ) ) {
349
  $settings['player']['techOrder'] = array( 'vimeo2' );
350
+
351
+ if ( strpos( $params['sources']['vimeo']['src'], 'player.vimeo.com' ) !== false ) {
352
+ $oembed = aiovg_get_vimeo_oembed_data( $params['sources']['vimeo']['src'] );
353
+ $params['sources']['vimeo']['src'] = 'https://vimeo.com/' . $oembed['video_id'];
354
+ }
355
  }
356
 
357
  if ( isset( $params['sources']['dailymotion'] ) ) {
378
  AIOVG_PLUGIN_SLUG . '-videojs',
379
  AIOVG_PLUGIN_URL . 'vendor/videojs/video-js.min.css',
380
  array(),
381
+ '7.18.1',
382
  'all'
383
  );
384
 
397
  AIOVG_PLUGIN_SLUG . '-overlay',
398
  AIOVG_PLUGIN_URL . 'vendor/videojs-plugins/overlay/videojs-overlay.css',
399
  array(),
400
+ '2.1.5',
401
  'all'
402
  );
403
  }
408
  AIOVG_PLUGIN_SLUG . '-videojs',
409
  AIOVG_PLUGIN_URL . 'vendor/videojs/video.min.js',
410
  array(),
411
+ '7.18.1',
412
  false
413
  );
414
 
477
  AIOVG_PLUGIN_SLUG . '-overlay',
478
  AIOVG_PLUGIN_URL . 'vendor/videojs-plugins/overlay/videojs-overlay.min.js',
479
  array(),
480
+ '2.1.5',
481
  false
482
  );
483
  }
487
  AIOVG_PLUGIN_SLUG . '-can-autoplay',
488
  AIOVG_PLUGIN_URL . 'vendor/videojs-plugins/can-autoplay/can-autoplay.min.js',
489
  array(),
490
+ '3.0.2',
491
  false
492
  );
493
  }
languages/all-in-one-video-gallery.pot CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: All-in-One Video Gallery\n"
4
- "POT-Creation-Date: 2022-03-21 11:36+0530\n"
5
- "PO-Revision-Date: 2022-03-21 11:36+0530\n"
6
  "Last-Translator: \n"
7
  "Language-Team: \n"
8
  "Language: en_US\n"
@@ -13,51 +13,51 @@ msgstr ""
13
  "X-Generator: Poedit 3.0.1\n"
14
  "X-Poedit-Basepath: ..\n"
15
  "X-Poedit-SourceCharset: UTF-8\n"
16
- "X-Poedit-KeywordsList: __;_e;esc_html__;esc_html_e;esc_attr__;esc_attr_e;_n\n"
17
  "X-Poedit-SearchPath-0: .\n"
18
 
19
- #: admin/admin.php:166 admin/partials/issues.php:78
20
  msgid "Apply Fix"
21
  msgstr ""
22
 
23
- #: admin/admin.php:179 admin/partials/issues.php:75
24
  msgid "Ignore"
25
  msgstr ""
26
 
27
- #: admin/admin.php:205 admin/partials/dashboard.php:14 blocks/blocks.php:37
28
  msgid "All-in-One Video Gallery"
29
  msgstr ""
30
 
31
- #: admin/admin.php:206 admin/videos.php:69 includes/functions.php:1017
32
- #: widgets/videos.php:306
33
  msgid "Video Gallery"
34
  msgstr ""
35
 
36
- #: admin/admin.php:216
37
  msgid "All-in-One Video Gallery - Dashboard"
38
  msgstr ""
39
 
40
- #: admin/admin.php:217
41
  msgid "Dashboard"
42
  msgstr ""
43
 
44
- #: admin/admin.php:231
45
  msgid "Shortcode Builder"
46
  msgstr ""
47
 
48
- #: admin/admin.php:232
49
  msgid "FAQ"
50
  msgstr ""
51
 
52
- #: admin/admin.php:241
53
  msgid "Issues Found"
54
  msgstr ""
55
 
56
- #: admin/admin.php:464
57
  msgid "Pages Misconfigured"
58
  msgstr ""
59
 
60
- #: admin/admin.php:466
61
  #, php-format
62
  msgid ""
63
  "During activation, our plugin adds few <a href=\"%s\" target=\"_blank"
@@ -66,27 +66,27 @@ msgid ""
66
  "or having a wrong shortcode."
67
  msgstr ""
68
 
69
- #: admin/admin.php:534
70
  msgid "Copied"
71
  msgstr ""
72
 
73
- #: admin/admin.php:535
74
  msgid "Please select at least one issue."
75
  msgstr ""
76
 
77
- #: admin/admin.php:536 widgets/forms/video.php:33
78
- msgid "No video was selected. The last added video will be displayed."
79
  msgstr ""
80
 
81
- #: admin/admin.php:537
82
  msgid "Sorry, there is already a video with this quality level."
83
  msgstr ""
84
 
85
- #: admin/admin.php:538 widgets/forms/video.php:30
86
  msgid "Remove"
87
  msgstr ""
88
 
89
- #: admin/admin.php:555 admin/settings.php:60
90
  msgid "Settings"
91
  msgstr ""
92
 
@@ -102,7 +102,7 @@ msgstr ""
102
  msgid "Video Categories"
103
  msgstr ""
104
 
105
- #: admin/categories.php:67 admin/videos.php:396
106
  #: premium/admin/automations.php:195 public/videos.php:100
107
  msgid "All Categories"
108
  msgstr ""
@@ -155,8 +155,8 @@ msgstr ""
155
  msgid "Search Categories"
156
  msgstr ""
157
 
158
- #: admin/categories.php:80 admin/tags.php:80
159
- msgid "Not Found"
160
  msgstr ""
161
 
162
  #: admin/categories.php:81
@@ -171,26 +171,34 @@ msgstr ""
171
  msgid "Categories list navigation"
172
  msgstr ""
173
 
174
- #: admin/categories.php:157 admin/settings.php:460 admin/tags.php:114
175
- #: admin/videos.php:521 blocks/blocks.php:80 includes/functions.php:1334
176
  #: widgets/forms/categories.php:69
177
  msgid "ID"
178
  msgstr ""
179
 
180
- #: admin/partials/category-image.php:15 admin/partials/category-image.php:26
181
  #: admin/partials/video-sources.php:261 admin/partials/video-sources.php:265
182
- #: includes/functions.php:904 premium/public/templates/video-form.php:264
183
  msgid "Image"
184
  msgstr ""
185
 
186
- #: admin/partials/category-image.php:19 admin/partials/category-image.php:36
187
  msgid "Add Image"
188
  msgstr ""
189
 
190
- #: admin/partials/category-image.php:20 admin/partials/category-image.php:37
191
  msgid "Remove Image"
192
  msgstr ""
193
 
 
 
 
 
 
 
 
 
194
  #: admin/partials/dashboard.php:17
195
  msgid ""
196
  "Add responsive video galleries anywhere on your website – no coding "
@@ -286,15 +294,15 @@ msgstr ""
286
  #: admin/partials/video-sources.php:173 admin/partials/video-sources.php:272
287
  #: admin/partials/video-sources.php:338 admin/partials/video-tracks.php:44
288
  #: admin/partials/video-tracks.php:80
289
- #: premium/public/templates/video-form.php:105
290
- #: premium/public/templates/video-form.php:134
291
- #: premium/public/templates/video-form.php:164
292
- #: premium/public/templates/video-form.php:273
293
  msgid "Upload File"
294
  msgstr ""
295
 
296
  #: admin/partials/shortcode-builder.php:163 blocks/blocks.php:73
297
- #: includes/functions.php:1281 widgets/forms/categories.php:36
298
  #: widgets/forms/categories.php:39
299
  msgid "Select Parent"
300
  msgstr ""
@@ -443,15 +451,15 @@ msgid ""
443
  msgstr ""
444
 
445
  #: admin/partials/video-sources.php:17 admin/partials/video-sources.php:21
446
- #: includes/functions.php:861 premium/admin/partials/automations-sources.php:42
447
  #: premium/admin/partials/automations-sources.php:45
448
- #: premium/public/templates/video-form.php:74
449
  msgid "Source Type"
450
  msgstr ""
451
 
452
  #: admin/partials/video-sources.php:36 admin/partials/video-sources.php:41
453
- #: admin/videos.php:70 admin/videos.php:102 includes/functions.php:869
454
- #: premium/public/templates/video-form.php:93
455
  msgid "Video"
456
  msgstr ""
457
 
@@ -472,10 +480,10 @@ msgstr ""
472
  #: admin/partials/video-sources.php:79 admin/partials/video-sources.php:120
473
  #: admin/partials/video-sources.php:147 admin/partials/video-sources.php:170
474
  #: admin/partials/video-sources.php:269 admin/partials/video-sources.php:335
475
- #: premium/public/templates/video-form.php:102
476
- #: premium/public/templates/video-form.php:131
477
- #: premium/public/templates/video-form.php:161
478
- #: premium/public/templates/video-form.php:270
479
  msgid "Enter your direct file URL (OR) upload your file using the button here"
480
  msgstr ""
481
 
@@ -484,33 +492,33 @@ msgid "[+] Add More Quality Levels"
484
  msgstr ""
485
 
486
  #: admin/partials/video-sources.php:138 admin/partials/video-sources.php:143
487
- #: premium/public/templates/video-form.php:124
488
  msgid "WebM"
489
  msgstr ""
490
 
491
  #: admin/partials/video-sources.php:139 admin/partials/video-sources.php:143
492
  #: admin/partials/video-sources.php:162 admin/partials/video-sources.php:166
493
- #: premium/public/templates/video-form.php:125
494
- #: premium/public/templates/video-form.php:155
495
  msgid "deprecated"
496
  msgstr ""
497
 
498
  #: admin/partials/video-sources.php:161 admin/partials/video-sources.php:166
499
- #: premium/public/templates/video-form.php:154
500
  msgid "OGV"
501
  msgstr ""
502
 
503
  #: admin/partials/video-sources.php:182 admin/partials/video-sources.php:186
504
- #: admin/settings.php:330 includes/functions.php:876
505
- #: includes/functions.php:1515 premium/includes/functions.php:110
506
- #: premium/public/templates/video-form.php:186
507
  msgid "YouTube"
508
  msgstr ""
509
 
510
  #: admin/partials/video-sources.php:190 admin/partials/video-sources.php:204
511
  #: admin/partials/video-sources.php:218 admin/partials/video-sources.php:232
512
- #: includes/functions.php:877 includes/functions.php:884
513
- #: includes/functions.php:891 includes/functions.php:898
514
  #: premium/admin/adaptive-streaming.php:42
515
  #: premium/admin/adaptive-streaming.php:50
516
  #: premium/admin/partials/adaptive-streaming.php:24
@@ -521,30 +529,30 @@ msgstr ""
521
  #: premium/admin/partials/automations-sources.php:131
522
  #: premium/admin/partials/automations-sources.php:149
523
  #: premium/admin/partials/automations-sources.php:163
524
- #: premium/public/templates/video-form.php:191
525
- #: premium/public/templates/video-form.php:207
526
- #: premium/public/templates/video-form.php:223
527
- #: premium/public/templates/video-form.php:239
528
- #: premium/public/templates/video-form.php:255
529
  msgid "Example"
530
  msgstr ""
531
 
532
  #: admin/partials/video-sources.php:196 admin/partials/video-sources.php:200
533
- #: admin/settings.php:331 includes/functions.php:883
534
- #: includes/functions.php:1516 premium/public/templates/video-form.php:202
535
  msgid "Vimeo"
536
  msgstr ""
537
 
538
  #: admin/partials/video-sources.php:210 admin/partials/video-sources.php:214
539
- #: admin/settings.php:332 includes/functions.php:890
540
- #: includes/functions.php:1517 premium/public/templates/video-form.php:218
541
  msgid "Dailymotion"
542
  msgstr ""
543
 
544
  #: admin/partials/video-sources.php:224 admin/partials/video-sources.php:228
545
- #: admin/settings.php:333 admin/settings.php:616 includes/functions.php:897
546
- #: includes/functions.php:1518 includes/functions.php:2134
547
- #: premium/public/templates/video-form.php:234
548
  msgid "Facebook"
549
  msgstr ""
550
 
@@ -567,13 +575,13 @@ msgid ""
567
  msgstr ""
568
 
569
  #: admin/partials/video-sources.php:282 admin/partials/video-sources.php:286
570
- #: admin/settings.php:308 blocks/blocks.php:123 includes/functions.php:972
571
  #: widgets/forms/video.php:130
572
  msgid "Duration"
573
  msgstr ""
574
 
575
  #: admin/partials/video-sources.php:296 admin/partials/video-sources.php:300
576
- #: admin/videos.php:520
577
  msgid "Views"
578
  msgstr ""
579
 
@@ -581,7 +589,7 @@ msgstr ""
581
  msgid "Mark as"
582
  msgstr ""
583
 
584
- #: admin/partials/video-submitbox.php:20 admin/videos.php:577
585
  msgid "Featured"
586
  msgstr ""
587
 
@@ -625,9 +633,9 @@ msgstr ""
625
  msgid "All-in-One Video Gallery - Settings"
626
  msgstr ""
627
 
628
- #: admin/settings.php:98 blocks/blocks.php:107 includes/functions.php:850
629
- #: includes/functions.php:1020 includes/functions.php:1259
630
- #: includes/functions.php:1395
631
  msgid "General"
632
  msgstr ""
633
 
@@ -659,7 +667,7 @@ msgstr ""
659
  msgid "Single Video Page"
660
  msgstr ""
661
 
662
- #: admin/settings.php:145 admin/settings.php:519 includes/functions.php:1108
663
  msgid "Related Videos"
664
  msgstr ""
665
 
@@ -720,26 +728,26 @@ msgstr ""
720
  msgid "Iframe"
721
  msgstr ""
722
 
723
- #: admin/settings.php:238 admin/settings.php:587 blocks/blocks.php:108
724
- #: includes/functions.php:911 premium/widgets/forms/companion.php:16
725
  #: widgets/forms/video.php:74
726
  msgid "Width"
727
  msgstr ""
728
 
729
- #: admin/settings.php:239 blocks/blocks.php:109 includes/functions.php:912
730
  #, php-format
731
  msgid ""
732
  "In pixels. Maximum width of the player. Leave this field empty to scale "
733
  "100% of its enclosing container/html element."
734
  msgstr ""
735
 
736
- #: admin/settings.php:245 admin/settings.php:594 blocks/blocks.php:110
737
- #: includes/functions.php:918 includes/functions.php:1120
738
- #: includes/functions.php:1303 widgets/forms/video.php:79
739
  msgid "Ratio"
740
  msgstr ""
741
 
742
- #: admin/settings.php:248 blocks/blocks.php:111 includes/functions.php:919
743
  msgid ""
744
  "In percentage. 1 to 100. Calculate player's height using the ratio value "
745
  "entered."
@@ -773,7 +781,7 @@ msgstr ""
773
  msgid "Cinemascope"
774
  msgstr ""
775
 
776
- #: admin/settings.php:262 blocks/blocks.php:112 includes/functions.php:925
777
  #: widgets/forms/video.php:86
778
  msgid "Autoplay"
779
  msgstr ""
@@ -782,7 +790,7 @@ msgstr ""
782
  msgid "Check this to start playing the video as soon as it is ready"
783
  msgstr ""
784
 
785
- #: admin/settings.php:269 blocks/blocks.php:113 includes/functions.php:932
786
  #: widgets/forms/video.php:93
787
  msgid "Loop"
788
  msgstr ""
@@ -793,7 +801,7 @@ msgid ""
793
  "finished"
794
  msgstr ""
795
 
796
- #: admin/settings.php:276 blocks/blocks.php:114 includes/functions.php:939
797
  #: widgets/forms/video.php:100
798
  msgid "Muted"
799
  msgstr ""
@@ -830,47 +838,47 @@ msgstr ""
830
  msgid "Metadata"
831
  msgstr ""
832
 
833
- #: admin/settings.php:301 blocks/blocks.php:119 includes/functions.php:947
834
  #: widgets/forms/video.php:104
835
  msgid "Player Controls"
836
  msgstr ""
837
 
838
- #: admin/settings.php:305 blocks/blocks.php:120 includes/functions.php:951
839
  #: widgets/forms/video.php:109
840
  msgid "Play / Pause"
841
  msgstr ""
842
 
843
- #: admin/settings.php:306 blocks/blocks.php:121 includes/functions.php:958
844
  #: widgets/forms/video.php:116
845
  msgid "Current Time"
846
  msgstr ""
847
 
848
- #: admin/settings.php:307 blocks/blocks.php:122 includes/functions.php:965
849
  #: widgets/forms/video.php:123
850
  msgid "Progressbar"
851
  msgstr ""
852
 
853
- #: admin/settings.php:309 admin/videos.php:170 includes/functions.php:979
854
  #: widgets/forms/video.php:137
855
  msgid "Subtitles"
856
  msgstr ""
857
 
858
- #: admin/settings.php:310 blocks/blocks.php:124 includes/functions.php:986
859
  #: widgets/forms/video.php:144
860
  msgid "Quality Selector"
861
  msgstr ""
862
 
863
- #: admin/settings.php:311 blocks/blocks.php:125 includes/functions.php:993
864
  #: widgets/forms/video.php:151
865
  msgid "Speed Control"
866
  msgstr ""
867
 
868
- #: admin/settings.php:312 blocks/blocks.php:126 includes/functions.php:1000
869
  #: widgets/forms/video.php:158
870
  msgid "Volume"
871
  msgstr ""
872
 
873
- #: admin/settings.php:313 blocks/blocks.php:127 includes/functions.php:1007
874
  #: widgets/forms/video.php:165
875
  msgid "Fullscreen"
876
  msgstr ""
@@ -896,21 +904,21 @@ msgid ""
896
  msgstr ""
897
 
898
  #: admin/settings.php:341 admin/settings.php:428 blocks/blocks.php:74
899
- #: includes/functions.php:1031 includes/functions.php:1270
900
- #: includes/functions.php:1399 widgets/forms/categories.php:20
901
  #: widgets/forms/search.php:20
902
  msgid "Select Template"
903
  msgstr ""
904
 
905
- #: admin/settings.php:342 includes/functions.php:1032
906
  #, php-format
907
  msgid ""
908
  "<a href=\"%s\" target=\"_blank\">Upgrade Pro</a> for more templates (Popup, "
909
  "Slider, etc.)"
910
  msgstr ""
911
 
912
- #: admin/settings.php:349 admin/settings.php:439 admin/settings.php:534
913
- #: blocks/blocks.php:77 includes/functions.php:1127 includes/functions.php:1310
914
  #: widgets/forms/categories.php:55
915
  msgid "Columns"
916
  msgstr ""
@@ -919,27 +927,27 @@ msgstr ""
919
  msgid "Enter the number of columns you like to have in the gallery view."
920
  msgstr ""
921
 
922
- #: admin/settings.php:359 admin/settings.php:449 admin/settings.php:544
923
- #: blocks/blocks.php:78 includes/functions.php:1067 includes/functions.php:1320
924
  #: widgets/forms/categories.php:60
925
  msgid "Limit (per page)"
926
  msgstr ""
927
 
928
- #: admin/settings.php:360 admin/settings.php:545
929
  msgid ""
930
  "Number of videos to show per page. Use a value of \"0\" to show all videos."
931
  msgstr ""
932
 
933
- #: admin/settings.php:366 admin/settings.php:551 blocks/blocks.php:79
934
- #: includes/functions.php:1077 includes/functions.php:1330
935
  #: premium/admin/partials/automations-sources.php:171
936
  #: premium/admin/partials/automations-sources.php:174
937
  #: widgets/forms/categories.php:65
938
  msgid "Order By"
939
  msgstr ""
940
 
941
- #: admin/settings.php:370 admin/settings.php:555 includes/functions.php:1024
942
- #: includes/functions.php:1081 includes/functions.php:1263
943
  #: premium/admin/partials/automations-sources.php:181
944
  #: premium/public/templates/user-dashboard.php:78
945
  #: widgets/forms/categories.php:15 widgets/forms/search.php:15
@@ -947,86 +955,86 @@ msgstr ""
947
  msgid "Title"
948
  msgstr ""
949
 
950
- #: admin/settings.php:371 admin/settings.php:556 includes/functions.php:1082
951
  msgid "Date Posted"
952
  msgstr ""
953
 
954
  #: admin/settings.php:372 admin/settings.php:411 admin/settings.php:518
955
- #: admin/settings.php:557 includes/functions.php:1083
956
- #: includes/functions.php:1197
957
  #: premium/admin/partials/automations-sources.php:182
958
  msgid "Views Count"
959
  msgstr ""
960
 
961
- #: admin/settings.php:373 admin/settings.php:558 includes/functions.php:1084
962
  msgid "Random"
963
  msgstr ""
964
 
965
- #: admin/settings.php:379 admin/settings.php:469 admin/settings.php:564
966
- #: blocks/blocks.php:84 includes/functions.php:1090 includes/functions.php:1343
967
  #: widgets/forms/categories.php:83
968
  msgid "Order"
969
  msgstr ""
970
 
971
- #: admin/settings.php:383 admin/settings.php:473 admin/settings.php:568
972
  msgid "Ascending"
973
  msgstr ""
974
 
975
- #: admin/settings.php:384 admin/settings.php:474 admin/settings.php:569
976
  msgid "Descending"
977
  msgstr ""
978
 
979
- #: admin/settings.php:390 includes/functions.php:1137
980
  msgid "Image Position (Thumbnails)"
981
  msgstr ""
982
 
983
- #: admin/settings.php:394 includes/functions.php:1141
984
  msgid "Top"
985
  msgstr ""
986
 
987
- #: admin/settings.php:395 includes/functions.php:1142
988
  msgid "Left"
989
  msgstr ""
990
 
991
- #: admin/settings.php:401 includes/functions.php:1148
992
  msgid "Show / Hide (Thumbnails)"
993
  msgstr ""
994
 
995
- #: admin/settings.php:405 includes/functions.php:1155
996
  msgid "Videos Count"
997
  msgstr ""
998
 
999
- #: admin/settings.php:406 includes/functions.php:1162
1000
  #: premium/admin/slider.php:69 premium/public/slider.php:91
1001
- #: premium/public/templates/video-form.php:33
1002
  msgid "Video Title"
1003
  msgstr ""
1004
 
1005
- #: admin/settings.php:407 admin/settings.php:514 includes/functions.php:1169
1006
  msgid "Category Name(s)"
1007
  msgstr ""
1008
 
1009
- #: admin/settings.php:408 admin/settings.php:515 includes/functions.php:1176
1010
  msgid "Tag Name(s)"
1011
  msgstr ""
1012
 
1013
- #: admin/settings.php:409 admin/settings.php:516 includes/functions.php:1183
1014
  msgid "Date Added"
1015
  msgstr ""
1016
 
1017
- #: admin/settings.php:410 admin/settings.php:517 includes/functions.php:1190
1018
  msgid "Author Name"
1019
  msgstr ""
1020
 
1021
- #: admin/settings.php:412 includes/functions.php:1204
1022
  msgid "Video Duration"
1023
  msgstr ""
1024
 
1025
- #: admin/settings.php:413 includes/functions.php:1211
1026
  msgid "Video Excerpt (Short Description)"
1027
  msgstr ""
1028
 
1029
- #: admin/settings.php:419 includes/functions.php:1218
1030
  msgid "Excerpt Length"
1031
  msgstr ""
1032
 
@@ -1034,12 +1042,12 @@ msgstr ""
1034
  msgid "Number of characters."
1035
  msgstr ""
1036
 
1037
- #: admin/settings.php:432 blocks/blocks.php:75 includes/functions.php:1274
1038
  #: widgets/forms/categories.php:24
1039
  msgid "Grid"
1040
  msgstr ""
1041
 
1042
- #: admin/settings.php:433 blocks/blocks.php:76 includes/functions.php:1275
1043
  #: widgets/forms/categories.php:25
1044
  msgid "List"
1045
  msgstr ""
@@ -1058,22 +1066,22 @@ msgstr ""
1058
  msgid "Order by"
1059
  msgstr ""
1060
 
1061
- #: admin/settings.php:461 blocks/blocks.php:81 includes/functions.php:1335
1062
  #: widgets/forms/categories.php:70
1063
  msgid "Count"
1064
  msgstr ""
1065
 
1066
- #: admin/settings.php:462 blocks/blocks.php:82 includes/functions.php:1336
1067
  #: widgets/forms/categories.php:71
1068
  msgid "Name"
1069
  msgstr ""
1070
 
1071
- #: admin/settings.php:463 blocks/blocks.php:83 includes/functions.php:1337
1072
  #: widgets/forms/categories.php:72
1073
  msgid "Slug"
1074
  msgstr ""
1075
 
1076
- #: admin/settings.php:480 blocks/blocks.php:87 includes/functions.php:1354
1077
  #: widgets/forms/categories.php:101
1078
  msgid "Show Hierarchy"
1079
  msgstr ""
@@ -1082,7 +1090,7 @@ msgstr ""
1082
  msgid "Check this to show the child categories"
1083
  msgstr ""
1084
 
1085
- #: admin/settings.php:487 blocks/blocks.php:88 includes/functions.php:1361
1086
  #: widgets/forms/categories.php:108
1087
  msgid "Show Description"
1088
  msgstr ""
@@ -1091,7 +1099,7 @@ msgstr ""
1091
  msgid "Check this to show the categories description"
1092
  msgstr ""
1093
 
1094
- #: admin/settings.php:494 blocks/blocks.php:89 includes/functions.php:1368
1095
  #: widgets/forms/categories.php:115
1096
  msgid "Show Videos Count"
1097
  msgstr ""
@@ -1100,7 +1108,7 @@ msgstr ""
1100
  msgid "Check this to show the videos count next to the category name"
1101
  msgstr ""
1102
 
1103
- #: admin/settings.php:501 blocks/blocks.php:90 includes/functions.php:1375
1104
  #: widgets/forms/categories.php:122
1105
  msgid "Hide Empty Categories"
1106
  msgstr ""
@@ -1109,204 +1117,214 @@ msgstr ""
1109
  msgid "Check this to hide categories with no videos"
1110
  msgstr ""
1111
 
1112
- #: admin/settings.php:510 admin/settings.php:575
1113
  msgid "Show / Hide"
1114
  msgstr ""
1115
 
1116
  #: admin/settings.php:525
1117
- msgid "Enable Comments"
1118
  msgstr ""
1119
 
1120
- #: admin/settings.php:526
1121
- msgid ""
1122
- "Allow visitors to comment videos using the standard WordPress comment form. "
1123
- "Comments are public"
 
 
 
 
 
 
1124
  msgstr ""
1125
 
1126
- #: admin/settings.php:535
 
 
 
 
1127
  msgid ""
1128
  "Enter the number of columns you like to have in the related videos section."
1129
  msgstr ""
1130
 
1131
- #: admin/settings.php:579 includes/functions.php:1225
1132
  msgid "Pagination"
1133
  msgstr ""
1134
 
1135
- #: admin/settings.php:588
1136
  #, php-format
1137
  msgid "Always 100% of its enclosing container/html element."
1138
  msgstr ""
1139
 
1140
- #: admin/settings.php:595
1141
  msgid ""
1142
  "In percentage. 1 to 100. Calculate images's height using the ratio value "
1143
  "entered."
1144
  msgstr ""
1145
 
1146
- #: admin/settings.php:603
1147
  msgid "Ajax"
1148
  msgstr ""
1149
 
1150
- #: admin/settings.php:604
1151
  msgid "Check this to enable Pagination with Ajax"
1152
  msgstr ""
1153
 
1154
- #: admin/settings.php:612
1155
  msgid "Share Buttons"
1156
  msgstr ""
1157
 
1158
- #: admin/settings.php:613
1159
  msgid "Select social share buttons displayed on the single video pages."
1160
  msgstr ""
1161
 
1162
- #: admin/settings.php:617 includes/functions.php:2141
1163
  msgid "Twitter"
1164
  msgstr ""
1165
 
1166
- #: admin/settings.php:618 includes/functions.php:2148
1167
  msgid "Linkedin"
1168
  msgstr ""
1169
 
1170
- #: admin/settings.php:619
1171
  msgid "Pinterest"
1172
  msgstr ""
1173
 
1174
- #: admin/settings.php:620 includes/functions.php:2172
1175
  msgid "Tumblr"
1176
  msgstr ""
1177
 
1178
- #: admin/settings.php:621 includes/functions.php:2185
1179
  msgid "WhatsApp"
1180
  msgstr ""
1181
 
1182
- #: admin/settings.php:627
1183
  msgid "Open Graph Tags"
1184
  msgstr ""
1185
 
1186
- #: admin/settings.php:628
1187
  msgid ""
1188
  "Check this option to enable Facebook Open Graph meta tags and Twitter cards "
1189
  "on the single video pages"
1190
  msgstr ""
1191
 
1192
- #: admin/settings.php:634
1193
  msgid "Twitter Username"
1194
  msgstr ""
1195
 
1196
- #: admin/settings.php:635
1197
  msgid ""
1198
  "The Twitter @username the player card should be attributed to. Required for "
1199
  "sharing videos in Twitter."
1200
  msgstr ""
1201
 
1202
- #: admin/settings.php:644
1203
  msgid "Video Detail Page"
1204
  msgstr ""
1205
 
1206
- #: admin/settings.php:645
1207
  msgid "Replaces the SLUG value used by custom post type \"aiovg_videos\"."
1208
  msgstr ""
1209
 
1210
- #: admin/settings.php:653
1211
  msgid "Remove data on uninstall?"
1212
  msgstr ""
1213
 
1214
- #: admin/settings.php:654
1215
  msgid ""
1216
  "Check this box to delete all of the plugin data (database stored content) "
1217
  "when uninstalled"
1218
  msgstr ""
1219
 
1220
- #: admin/settings.php:660
1221
  msgid "Delete media files?"
1222
  msgstr ""
1223
 
1224
- #: admin/settings.php:661
1225
  msgid ""
1226
  "Check this box to also delete the associated media files when a video post "
1227
  "or a video category is deleted"
1228
  msgstr ""
1229
 
1230
- #: admin/settings.php:667
1231
  msgid "Vimeo Access Token"
1232
  msgstr ""
1233
 
1234
- #: admin/settings.php:668
1235
  #, php-format
1236
  msgid ""
1237
  "Follow <a href=\"%s\" target=\"_blank\">this guide</a> to get your own "
1238
  "access token."
1239
  msgstr ""
1240
 
1241
- #: admin/settings.php:676
1242
  msgid "Single Category Page"
1243
  msgstr ""
1244
 
1245
- #: admin/settings.php:677
1246
  msgid ""
1247
  "This is the page where the videos from a particular category is displayed. "
1248
  "The [aiovg_category] short code must be on this page."
1249
  msgstr ""
1250
 
1251
- #: admin/settings.php:683
1252
  msgid "Single Tag Page"
1253
  msgstr ""
1254
 
1255
- #: admin/settings.php:684
1256
  msgid ""
1257
  "This is the page where the videos from a particular tag is displayed. The "
1258
  "[aiovg_tag] short code must be on this page."
1259
  msgstr ""
1260
 
1261
- #: admin/settings.php:690
1262
  msgid "Search Page"
1263
  msgstr ""
1264
 
1265
- #: admin/settings.php:691
1266
  msgid ""
1267
  "This is the page where the search results are displayed. The [aiovg_search] "
1268
  "short code must be on this page."
1269
  msgstr ""
1270
 
1271
- #: admin/settings.php:697
1272
  msgid "User Videos Page"
1273
  msgstr ""
1274
 
1275
- #: admin/settings.php:698
1276
  msgid ""
1277
  "This is the page where the videos from an user is displayed. The "
1278
  "[aiovg_user_videos] short code must be on this page."
1279
  msgstr ""
1280
 
1281
- #: admin/settings.php:704
1282
  msgid "Player Page"
1283
  msgstr ""
1284
 
1285
- #: admin/settings.php:705
1286
  msgid "This is the page used to show the video player."
1287
  msgstr ""
1288
 
1289
- #: admin/settings.php:713
1290
  msgid "GDPR - Show Consent"
1291
  msgstr ""
1292
 
1293
- #: admin/settings.php:714
1294
  msgid "Ask for consent before loading YouTube / Vimeo content."
1295
  msgstr ""
1296
 
1297
- #: admin/settings.php:720
1298
  msgid "GDPR - Consent Message"
1299
  msgstr ""
1300
 
1301
- #: admin/settings.php:727
1302
  msgid "GDPR - Consent Button Label"
1303
  msgstr ""
1304
 
1305
- #: admin/settings.php:734
1306
  msgid "Disable Cookies"
1307
  msgstr ""
1308
 
1309
- #: admin/settings.php:738
1310
  msgid ""
1311
  "<strong>aiovg_videos_views</strong> - check this option for Total Views, but "
1312
  "uncheck for the Unique Views. eg. 1 Person can watch a video 10 times and "
@@ -1314,86 +1332,86 @@ msgid ""
1314
  "Views."
1315
  msgstr ""
1316
 
1317
- #: admin/settings.php:739
1318
  msgid ""
1319
  "<strong>aiovg_rand_seed</strong> - uncheck this option if you show videos in "
1320
  "a Random order with the Pagination on any of your pages."
1321
  msgstr ""
1322
 
1323
- #: admin/settings.php:750
1324
  msgid "Show Logo"
1325
  msgstr ""
1326
 
1327
- #: admin/settings.php:751
1328
  msgid "Check this option to show the watermark on the video."
1329
  msgstr ""
1330
 
1331
- #: admin/settings.php:757
1332
  msgid "Logo Image"
1333
  msgstr ""
1334
 
1335
- #: admin/settings.php:758
1336
  msgid ""
1337
  "Upload the image file of your logo. We recommend using the transparent PNG "
1338
  "format with width below 100 pixels. If you do not enter any image, no logo "
1339
  "will displayed."
1340
  msgstr ""
1341
 
1342
- #: admin/settings.php:764
1343
  msgid "Logo Link"
1344
  msgstr ""
1345
 
1346
- #: admin/settings.php:765
1347
  msgid ""
1348
  "The URL to visit when the watermark image is clicked. Clicking a logo will "
1349
  "have no affect unless this is configured."
1350
  msgstr ""
1351
 
1352
- #: admin/settings.php:771
1353
  msgid "Logo Position"
1354
  msgstr ""
1355
 
1356
- #: admin/settings.php:772
1357
  msgid "This sets the corner in which to display the watermark."
1358
  msgstr ""
1359
 
1360
- #: admin/settings.php:775
1361
  msgid "Top Left"
1362
  msgstr ""
1363
 
1364
- #: admin/settings.php:776
1365
  msgid "Top Right"
1366
  msgstr ""
1367
 
1368
- #: admin/settings.php:777
1369
  msgid "Bottom Left"
1370
  msgstr ""
1371
 
1372
- #: admin/settings.php:778
1373
  msgid "Bottom Right"
1374
  msgstr ""
1375
 
1376
- #: admin/settings.php:784
1377
  msgid "Logo Margin"
1378
  msgstr ""
1379
 
1380
- #: admin/settings.php:785
1381
  msgid "The distance, in pixels, of the logo from the edges of the display."
1382
  msgstr ""
1383
 
1384
- #: admin/settings.php:791
1385
  msgid "Copyright Text"
1386
  msgstr ""
1387
 
1388
- #: admin/settings.php:792
1389
  msgid "Text that is shown when a user right-clicks the player with the mouse."
1390
  msgstr ""
1391
 
1392
- #: admin/settings.php:1068
1393
  msgid "Choose File"
1394
  msgstr ""
1395
 
1396
- #: admin/settings.php:1117
1397
  msgid "Select a page"
1398
  msgstr ""
1399
 
@@ -1447,6 +1465,10 @@ msgstr ""
1447
  msgid "Search Tags"
1448
  msgstr ""
1449
 
 
 
 
 
1450
  #: admin/tags.php:81
1451
  msgid "No tags"
1452
  msgstr ""
@@ -1463,7 +1485,7 @@ msgstr ""
1463
  msgid "All-in-One Video Gallery - Videos"
1464
  msgstr ""
1465
 
1466
- #: admin/videos.php:33 admin/videos.php:74 admin/videos.php:413
1467
  msgid "All Videos"
1468
  msgstr ""
1469
 
@@ -1511,8 +1533,8 @@ msgstr ""
1511
  msgid "Search Video"
1512
  msgstr ""
1513
 
1514
- #: admin/videos.php:83
1515
- msgid "Not found"
1516
  msgstr ""
1517
 
1518
  #: admin/videos.php:84
@@ -1555,35 +1577,35 @@ msgstr ""
1555
  msgid "Filter videos list"
1556
  msgstr ""
1557
 
1558
- #: admin/videos.php:103
1559
  #: premium/admin/partials/automations-video-settings.php:66
1560
  #: premium/admin/partials/automations-video-settings.php:69
1561
  #: premium/admin/slider.php:70 premium/public/slider.php:99
1562
- #: premium/public/templates/video-form.php:294
1563
  msgid "Video Description"
1564
  msgstr ""
1565
 
1566
- #: admin/videos.php:161
1567
  msgid "Video Sources"
1568
  msgstr ""
1569
 
1570
- #: admin/videos.php:414
1571
  msgid "Featured only"
1572
  msgstr ""
1573
 
1574
- #: admin/videos.php:488
1575
  msgid "Copy URL"
1576
  msgstr ""
1577
 
1578
- #: admin/videos.php:497
1579
  msgid "Copy Shortcode"
1580
  msgstr ""
1581
 
1582
- #: admin/videos.php:519
1583
  msgid "Misc"
1584
  msgstr ""
1585
 
1586
- #: admin/videos.php:566
1587
  msgid "Author"
1588
  msgstr ""
1589
 
@@ -1595,17 +1617,17 @@ msgstr ""
1595
  msgid "Display a list of video categories."
1596
  msgstr ""
1597
 
1598
- #: blocks/blocks.php:85 includes/functions.php:1094 includes/functions.php:1347
1599
  #: widgets/forms/categories.php:87
1600
  msgid "ASC"
1601
  msgstr ""
1602
 
1603
- #: blocks/blocks.php:86 includes/functions.php:1095 includes/functions.php:1348
1604
  #: widgets/forms/categories.php:88
1605
  msgid "DESC"
1606
  msgstr ""
1607
 
1608
- #: blocks/blocks.php:91 includes/functions.php:1382
1609
  msgid "Show Pagination"
1610
  msgstr ""
1611
 
@@ -1629,24 +1651,24 @@ msgstr ""
1629
  msgid "A videos search form for your site."
1630
  msgstr ""
1631
 
1632
- #: blocks/blocks.php:97 includes/functions.php:1403 widgets/forms/search.php:24
1633
  msgid "Vertical"
1634
  msgstr ""
1635
 
1636
- #: blocks/blocks.php:98 includes/functions.php:1404 widgets/forms/search.php:25
1637
  msgid "Horizontal"
1638
  msgstr ""
1639
 
1640
- #: blocks/blocks.php:99 includes/functions.php:1417 widgets/forms/search.php:45
1641
  msgid "Search By Categories"
1642
  msgstr ""
1643
 
1644
- #: blocks/blocks.php:100 includes/functions.php:1410
1645
  #: widgets/forms/search.php:38
1646
  msgid "Search By Video Title, Description"
1647
  msgstr ""
1648
 
1649
- #: blocks/blocks.php:101 includes/functions.php:1424
1650
  #: widgets/forms/search.php:52
1651
  msgid "Search By Tags"
1652
  msgstr ""
@@ -1728,174 +1750,161 @@ msgstr ""
1728
  msgid "No results found."
1729
  msgstr ""
1730
 
1731
- #: includes/functions.php:290
1732
  msgid "Video Category"
1733
  msgstr ""
1734
 
1735
- #: includes/functions.php:294
1736
  msgid "Video Tag"
1737
  msgstr ""
1738
 
1739
- #: includes/functions.php:298 widgets/search.php:120
1740
  msgid "Search Videos"
1741
  msgstr ""
1742
 
1743
- #: includes/functions.php:302
1744
  msgid "User Videos"
1745
  msgstr ""
1746
 
1747
- #: includes/functions.php:306
1748
  msgid "Player Embed"
1749
  msgstr ""
1750
 
1751
- #: includes/functions.php:474
1752
  msgid ""
1753
  "<strong>Please accept cookies to play this video</strong>. By accepting you "
1754
  "will be accessing content from a service provided by an external third party."
1755
  msgstr ""
1756
 
1757
- #: includes/functions.php:475
1758
  msgid "Accept"
1759
  msgstr ""
1760
 
1761
- #: includes/functions.php:660
1762
- msgid "No videos found."
1763
- msgstr ""
1764
-
1765
- #: includes/functions.php:663
1766
- msgid "No categories found."
1767
- msgstr ""
1768
-
1769
- #: includes/functions.php:666
1770
- msgid "No tags found."
1771
- msgstr ""
1772
-
1773
- #: includes/functions.php:847
1774
  msgid "Single Video"
1775
  msgstr ""
1776
 
1777
- #: includes/functions.php:854 widgets/forms/video.php:23
1778
  #: widgets/forms/video.php:39
1779
  msgid "Select Video"
1780
  msgstr ""
1781
 
1782
- #: includes/functions.php:870 includes/functions.php:905
1783
  msgid ""
1784
  "Enter your direct file URL in the textbox above (OR) upload your file using "
1785
  "the \"Upload File\" link."
1786
  msgstr ""
1787
 
1788
- #: includes/functions.php:1039 premium/public/templates/video-form.php:47
1789
  msgid "Select Categories"
1790
  msgstr ""
1791
 
1792
- #: includes/functions.php:1046 premium/public/templates/video-form.php:305
1793
- #: premium/public/templates/video-form.php:325
1794
- #: public/templates/search-form-template-horizontal.php:67
1795
- #: public/templates/search-form-template-vertical.php:67
1796
  msgid "Select Tags"
1797
  msgstr ""
1798
 
1799
- #: includes/functions.php:1053
1800
  msgid "Include Video ID(s)"
1801
  msgstr ""
1802
 
1803
- #: includes/functions.php:1060
1804
  msgid "Exclude Video ID(s)"
1805
  msgstr ""
1806
 
1807
- #: includes/functions.php:1101
1808
  msgid "Featured Only"
1809
  msgstr ""
1810
 
1811
- #: includes/functions.php:1108
1812
  msgid "Follow URL"
1813
  msgstr ""
1814
 
1815
- #: includes/functions.php:1116
1816
  msgid "Gallery"
1817
  msgstr ""
1818
 
1819
- #: includes/functions.php:1232
1820
  msgid "More Button"
1821
  msgstr ""
1822
 
1823
- #: includes/functions.php:1239 widgets/forms/categories.php:134
1824
  msgid "More Button Label"
1825
  msgstr ""
1826
 
1827
- #: includes/functions.php:1242 widgets/categories.php:67 widgets/videos.php:93
1828
  msgid "Show More"
1829
  msgstr ""
1830
 
1831
- #: includes/functions.php:1246 widgets/forms/categories.php:139
1832
  msgid "More Button Link"
1833
  msgstr ""
1834
 
1835
- #: includes/functions.php:1247 widgets/forms/categories.php:141
1836
  msgid "Leave this field blank to use Ajax"
1837
  msgstr ""
1838
 
1839
- #: includes/functions.php:1256
1840
  msgid "Categories"
1841
  msgstr ""
1842
 
1843
- #: includes/functions.php:1289
1844
  msgid "Include Category ID(s)"
1845
  msgstr ""
1846
 
1847
- #: includes/functions.php:1296
1848
  msgid "Exclude Category ID(s)"
1849
  msgstr ""
1850
 
1851
- #: includes/functions.php:1392
1852
  msgid "Search Form"
1853
  msgstr ""
1854
 
1855
- #: includes/functions.php:1514
1856
  msgid "Self Hosted"
1857
  msgstr ""
1858
 
1859
- #: includes/functions.php:1514
1860
  msgid "External URL"
1861
  msgstr ""
1862
 
1863
- #: includes/functions.php:1522
1864
  msgid "Iframe Embed Code"
1865
  msgstr ""
1866
 
1867
- #: includes/functions.php:1536
1868
  msgid "Classic"
1869
  msgstr ""
1870
 
1871
- #: includes/functions.php:2063
1872
  msgid "&laquo;"
1873
  msgstr ""
1874
 
1875
- #: includes/functions.php:2064
1876
  msgid "&raquo;"
1877
  msgstr ""
1878
 
1879
- #: includes/functions.php:2087
1880
  #, php-format
1881
  msgid "Page %d of %d"
1882
  msgstr ""
1883
 
1884
- #: includes/functions.php:2155
1885
  msgid "Pin It"
1886
  msgstr ""
1887
 
1888
  #: premium/admin/adaptive-streaming.php:41
1889
  #: premium/admin/partials/adaptive-streaming.php:16
1890
  #: premium/admin/partials/adaptive-streaming.php:20
1891
- #: premium/public/templates/video-form.php:250
1892
  msgid "HLS"
1893
  msgstr ""
1894
 
1895
  #: premium/admin/adaptive-streaming.php:49
1896
  #: premium/admin/partials/adaptive-streaming.php:30
1897
  #: premium/admin/partials/adaptive-streaming.php:34
1898
- #: premium/public/templates/video-form.php:250
1899
  msgid "M(PEG)-DASH"
1900
  msgstr ""
1901
 
@@ -1904,11 +1913,11 @@ msgstr ""
1904
  msgid "Proudly by %s"
1905
  msgstr ""
1906
 
1907
- #: premium/admin/admin.php:146
1908
  msgid "[{site_name}] Video \"{video_title}\" received"
1909
  msgstr ""
1910
 
1911
- #: premium/admin/admin.php:147
1912
  msgid ""
1913
  "Dear {name},\n"
1914
  "\n"
@@ -1919,11 +1928,11 @@ msgid ""
1919
  "The Administrator of {site_name}"
1920
  msgstr ""
1921
 
1922
- #: premium/admin/admin.php:156
1923
  msgid "[{site_name}] Video \"{video_title}\" published"
1924
  msgstr ""
1925
 
1926
- #: premium/admin/admin.php:157
1927
  msgid ""
1928
  "Dear {name},\n"
1929
  "\n"
@@ -1934,47 +1943,47 @@ msgid ""
1934
  "The Administrator of {site_name}"
1935
  msgstr ""
1936
 
1937
- #: premium/admin/admin.php:225
1938
  msgid "Please wait while we are loading data from the API server..."
1939
  msgstr ""
1940
 
1941
- #: premium/admin/admin.php:226 premium/public/public.php:103
1942
  msgid "Sorry, the auto-thumbnail generation failed."
1943
  msgstr ""
1944
 
1945
- #: premium/admin/admin.php:227 premium/public/public.php:104
1946
  msgid ""
1947
  "Use the \"Capture Image\" button below to generate an image from your video."
1948
  msgstr ""
1949
 
1950
- #: premium/admin/admin.php:228 premium/public/public.php:105
1951
  msgid "Select an image from the options below."
1952
  msgstr ""
1953
 
1954
- #: premium/admin/admin.php:229 premium/public/public.php:106
1955
  msgid "Generating images..."
1956
  msgstr ""
1957
 
1958
- #: premium/admin/admin.php:230 premium/public/public.php:107
1959
  msgid ""
1960
  "No video found. Add a video in the \"MP4\" video field to capture an image."
1961
  msgstr ""
1962
 
1963
- #: premium/admin/admin.php:231 premium/public/public.php:108
1964
  msgid "Invalid video file."
1965
  msgstr ""
1966
 
1967
- #: premium/admin/admin.php:232 premium/public/public.php:109
1968
  msgid ""
1969
  "Sorry, your video file server doesn't give us permission to generate an "
1970
  "image from the video."
1971
  msgstr ""
1972
 
1973
- #: premium/admin/admin.php:247 premium/admin/user.php:253
1974
  msgid "User Dashboard"
1975
  msgstr ""
1976
 
1977
- #: premium/admin/admin.php:252 premium/admin/user.php:261
1978
  msgid "Video Form"
1979
  msgstr ""
1980
 
@@ -2411,13 +2420,13 @@ msgid "Draft"
2411
  msgstr ""
2412
 
2413
  #: premium/admin/partials/automations-video-settings.php:127
2414
- #: premium/admin/user.php:143 premium/admin/user.php:154
2415
  msgid "Pending"
2416
  msgstr ""
2417
 
2418
  #: premium/admin/partials/automations-video-settings.php:128
2419
- #: premium/admin/user.php:142 premium/admin/user.php:153
2420
- #: premium/public/templates/video-form.php:388
2421
  msgid "Publish"
2422
  msgstr ""
2423
 
@@ -2427,6 +2436,16 @@ msgid ""
2427
  "notified through email when an import occurs with the \"Pending\" status."
2428
  msgstr ""
2429
 
 
 
 
 
 
 
 
 
 
 
2430
  #: premium/admin/seo.php:41
2431
  msgid "SEO Settings"
2432
  msgstr ""
@@ -2604,165 +2623,212 @@ msgid "Front-end Video Submission"
2604
  msgstr ""
2605
 
2606
  #: premium/admin/user.php:58
2607
- msgid "User Account Settings"
2608
  msgstr ""
2609
 
2610
  #: premium/admin/user.php:65
2611
- msgid "[Email Template] Video Pending Review"
2612
  msgstr ""
2613
 
2614
  #: premium/admin/user.php:72
 
 
 
 
2615
  msgid "[Email Template] Video Published"
2616
  msgstr ""
2617
 
2618
- #: premium/admin/user.php:93
2619
  msgid "Assign Categories"
2620
  msgstr ""
2621
 
2622
- #: premium/admin/user.php:94
2623
  msgid "Check this box to allow users to select categories for their videos"
2624
  msgstr ""
2625
 
2626
- #: premium/admin/user.php:100
2627
  msgid "Assign Tags"
2628
  msgstr ""
2629
 
2630
- #: premium/admin/user.php:101
2631
  msgid "Check this box to allow users to select tags for their videos"
2632
  msgstr ""
2633
 
2634
- #: premium/admin/user.php:107
2635
  msgid "Allowed Source Types"
2636
  msgstr ""
2637
 
2638
- #: premium/admin/user.php:115
2639
  msgid "Default Source Type"
2640
  msgstr ""
2641
 
2642
- #: premium/admin/user.php:116
2643
  msgid "The default source type should be one of the \"Allowed Source Types\"."
2644
  msgstr ""
2645
 
2646
- #: premium/admin/user.php:123
2647
  msgid "Allow File Uploads"
2648
  msgstr ""
2649
 
2650
- #: premium/admin/user.php:130
2651
  msgid "Maximum Upload Size"
2652
  msgstr ""
2653
 
2654
- #: premium/admin/user.php:131
2655
  msgid ""
2656
  "In bytes. Enter the maximum file size the users can upload in your website. "
2657
  "Leave this field empty to allow the maximium possible file size."
2658
  msgstr ""
2659
 
2660
- #: premium/admin/user.php:138
2661
  msgid "Default New Video Status"
2662
  msgstr ""
2663
 
2664
- #: premium/admin/user.php:149
2665
  msgid "Edit Video Status"
2666
  msgstr ""
2667
 
2668
- #: premium/admin/user.php:160
2669
  msgid "Terms and Conditions URL"
2670
  msgstr ""
2671
 
2672
- #: premium/admin/user.php:161
2673
  msgid "Optional. Enter your Terms and Conditions Page URL."
2674
  msgstr ""
2675
 
2676
- #: premium/admin/user.php:170
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2677
  msgid "Custom Login URL"
2678
  msgstr ""
2679
 
2680
- #: premium/admin/user.php:171
2681
  msgid ""
2682
  "Optional. Enter your custom Login Page URL. Leave this field empty to use "
2683
  "the default WordPress Login form."
2684
  msgstr ""
2685
 
2686
- #: premium/admin/user.php:177
2687
  msgid "Custom Registration URL"
2688
  msgstr ""
2689
 
2690
- #: premium/admin/user.php:178
2691
  msgid ""
2692
  "Optional. Enter your custom Registration Page URL. Leave this field empty to "
2693
  "use the default WordPress Registration URL."
2694
  msgstr ""
2695
 
2696
- #: premium/admin/user.php:184
2697
  msgid "Custom Forgot Password URL"
2698
  msgstr ""
2699
 
2700
- #: premium/admin/user.php:185
2701
  msgid ""
2702
  "Optional. Enter your custom Forgot Password Page URL. Leave this field empty "
2703
  "to use the default WordPress Forgot Password URL."
2704
  msgstr ""
2705
 
2706
- #: premium/admin/user.php:194 premium/admin/user.php:224
2707
  msgid "Email Subject"
2708
  msgstr ""
2709
 
2710
- #: premium/admin/user.php:201 premium/admin/user.php:231
2711
  msgid "Email Body"
2712
  msgstr ""
2713
 
2714
- #: premium/admin/user.php:204 premium/admin/user.php:234
2715
  msgid "Supported Placeholders:"
2716
  msgstr ""
2717
 
2718
- #: premium/admin/user.php:205 premium/admin/user.php:235
2719
  msgid "The video owner's display name on the site"
2720
  msgstr ""
2721
 
2722
- #: premium/admin/user.php:206 premium/admin/user.php:236
2723
  msgid "The video owner's user name on the site"
2724
  msgstr ""
2725
 
2726
- #: premium/admin/user.php:207 premium/admin/user.php:237
2727
  msgid "Your site name"
2728
  msgstr ""
2729
 
2730
- #: premium/admin/user.php:208 premium/admin/user.php:238
2731
  msgid "Your site name with link"
2732
  msgstr ""
2733
 
2734
- #: premium/admin/user.php:209 premium/admin/user.php:239
2735
  msgid "Your site url with link"
2736
  msgstr ""
2737
 
2738
- #: premium/admin/user.php:210 premium/admin/user.php:240
2739
  msgid "Video's title"
2740
  msgstr ""
2741
 
2742
- #: premium/admin/user.php:211 premium/admin/user.php:241
2743
  msgid "Video's title with link"
2744
  msgstr ""
2745
 
2746
- #: premium/admin/user.php:212 premium/admin/user.php:242
2747
  msgid "Video's url with link"
2748
  msgstr ""
2749
 
2750
- #: premium/admin/user.php:213 premium/admin/user.php:243
2751
  msgid "Current date"
2752
  msgstr ""
2753
 
2754
- #: premium/admin/user.php:214 premium/admin/user.php:244
2755
  msgid "Current time"
2756
  msgstr ""
2757
 
2758
- #: premium/admin/user.php:254
2759
  msgid ""
2760
  "This is the page where the users can manage (add, edit or delete) their "
2761
  "videos in front-end. The [aiovg_user_dashboard] short code must be on this "
2762
  "page."
2763
  msgstr ""
2764
 
2765
- #: premium/admin/user.php:262
2766
  msgid ""
2767
  "This is the form page where the users can add their videos in front-end. The "
2768
  "[aiovg_video_form] short code must be on this page."
@@ -2770,9 +2836,9 @@ msgstr ""
2770
 
2771
  #: premium/includes/functions.php:92
2772
  #: premium/public/templates/user-dashboard.php:58
2773
- #: public/templates/search-form-template-horizontal.php:86
2774
- #: public/templates/search-form-template-horizontal.php:113
2775
- #: public/templates/search-form-template-vertical.php:105
2776
  msgid "Search"
2777
  msgstr ""
2778
 
@@ -2880,28 +2946,28 @@ msgstr ""
2880
  msgid "Popup"
2881
  msgstr ""
2882
 
2883
- #: premium/public/public.php:97
2884
  msgid "This is a required field."
2885
  msgstr ""
2886
 
2887
- #: premium/public/public.php:98 premium/public/user.php:327
2888
- #: premium/public/user.php:332
2889
  msgid "Invalid file format."
2890
  msgstr ""
2891
 
2892
- #: premium/public/public.php:99
2893
  msgid "Loaded"
2894
  msgstr ""
2895
 
2896
- #: premium/public/public.php:100
2897
  msgid "processing..."
2898
  msgstr ""
2899
 
2900
- #: premium/public/public.php:101
2901
  msgid "Please wait until the upload is complete"
2902
  msgstr ""
2903
 
2904
- #: premium/public/public.php:102
2905
  msgid "Unknown error."
2906
  msgstr ""
2907
 
@@ -2978,7 +3044,7 @@ msgid ""
2978
  msgstr ""
2979
 
2980
  #: premium/public/templates/user-dashboard.php:35
2981
- #: premium/public/templates/video-form.php:17
2982
  msgid "Saved"
2983
  msgstr ""
2984
 
@@ -3019,53 +3085,70 @@ msgstr ""
3019
  msgid "Are you SURE you want to delete this video?"
3020
  msgstr ""
3021
 
 
 
 
 
 
 
3022
  #: premium/public/templates/video-form.php:23
 
 
 
 
 
 
 
3023
  #, php-format
3024
  msgid "Fields marked with an %s are required"
3025
  msgstr ""
3026
 
3027
- #: premium/public/templates/video-form.php:25
3028
  #, php-format
3029
  msgid "Maximum upload file size: %s"
3030
  msgstr ""
3031
 
3032
- #: premium/public/templates/video-form.php:38
3033
  msgid "Enter your video title here"
3034
  msgstr ""
3035
 
3036
- #: premium/public/templates/video-form.php:108
3037
- #: premium/public/templates/video-form.php:137
3038
- #: premium/public/templates/video-form.php:167
3039
- #: premium/public/templates/video-form.php:276
3040
  msgid "cancel"
3041
  msgstr ""
3042
 
3043
- #: premium/public/templates/video-form.php:113
3044
- #: premium/public/templates/video-form.php:142
3045
- #: premium/public/templates/video-form.php:172
3046
- #: premium/public/templates/video-form.php:281
3047
  msgid "Enter your direct file URL here"
3048
  msgstr ""
3049
 
3050
- #: premium/public/templates/video-form.php:297
3051
  msgid "Enter your video description here"
3052
  msgstr ""
3053
 
3054
- #: premium/public/templates/video-form.php:372
 
 
 
 
3055
  #, php-format
3056
  msgid ""
3057
  "I agree to the <a href=\"%s\" target=\"_blank\">terms and conditions</a>"
3058
  msgstr ""
3059
 
3060
- #: premium/public/templates/video-form.php:389 premium/public/user.php:416
3061
  msgid "Save Draft"
3062
  msgstr ""
3063
 
3064
- #: premium/public/templates/video-form.php:391
3065
  msgid "Save Changes"
3066
  msgstr ""
3067
 
3068
- #: premium/public/templates/video-form.php:395
3069
  msgid "Cancel"
3070
  msgstr ""
3071
 
@@ -3079,74 +3162,26 @@ msgstr ""
3079
  msgid "%d video(s) found"
3080
  msgstr ""
3081
 
3082
- #: premium/public/user.php:159 premium/public/user.php:173
3083
  msgid "You do not have sufficient permissions to access this page."
3084
  msgstr ""
3085
 
3086
- #: premium/public/user.php:309 premium/public/user.php:322
3087
  msgid "You do not have permission to upload files."
3088
  msgstr ""
3089
 
3090
- #: premium/public/user.php:338
3091
  msgid "Sorry, this file type is not permitted for security reasons."
3092
  msgstr ""
3093
 
3094
- #: premium/public/user.php:348
3095
  msgid "Sorry, this file size is not allowed."
3096
  msgstr ""
3097
 
3098
- #: premium/public/user.php:372
3099
  msgid "File is empty. Please upload something more substantial."
3100
  msgstr ""
3101
 
3102
- #: premium/vendor/videojs-plugins/http-streaming/videojs-http-streaming.min.js:3
3103
- msgid "PlaylistLoader"
3104
- msgstr ""
3105
-
3106
- #: premium/vendor/videojs-plugins/http-streaming/videojs-http-streaming.min.js:3
3107
- msgid "BANDWIDTH"
3108
- msgstr ""
3109
-
3110
- #: premium/vendor/videojs-plugins/http-streaming/videojs-http-streaming.min.js:3
3111
- msgid "DashPlaylistLoader"
3112
- msgstr ""
3113
-
3114
- #: premium/vendor/videojs-plugins/http-streaming/videojs-http-streaming.min.js:3
3115
- msgid "CodecUtils"
3116
- msgstr ""
3117
-
3118
- #: premium/vendor/videojs-plugins/http-streaming/videojs-http-streaming.min.js:3
3119
- msgid "PlaylistSelector"
3120
- msgstr ""
3121
-
3122
- #: premium/vendor/videojs-plugins/http-streaming/videojs-http-streaming.min.js:3
3123
- msgid "SegmentLoader["
3124
- msgstr ""
3125
-
3126
- #: premium/vendor/videojs-plugins/http-streaming/videojs-http-streaming.min.js:3
3127
- msgid "SourceUpdater"
3128
- msgstr ""
3129
-
3130
- #: premium/vendor/videojs-plugins/http-streaming/videojs-http-streaming.min.js:3
3131
- msgid "SyncController"
3132
- msgstr ""
3133
-
3134
- #: premium/vendor/videojs-plugins/http-streaming/videojs-http-streaming.min.js:6
3135
- msgid "MediaGroups["
3136
- msgstr ""
3137
-
3138
- #: premium/vendor/videojs-plugins/http-streaming/videojs-http-streaming.min.js:6
3139
- msgid "MPC"
3140
- msgstr ""
3141
-
3142
- #: premium/vendor/videojs-plugins/http-streaming/videojs-http-streaming.min.js:6
3143
- msgid "PlaybackWatcher"
3144
- msgstr ""
3145
-
3146
- #: premium/vendor/videojs-plugins/http-streaming/videojs-http-streaming.min.js:6
3147
- msgid "VhsHandler"
3148
- msgstr ""
3149
-
3150
  #: premium/vendor/videojs-plugins/videojs-quality-menu/videojs-quality-menu.min.js:4
3151
  msgid "qualityMenu"
3152
  msgstr ""
@@ -3175,12 +3210,16 @@ msgid ""
3175
  "Publisher Tag (GPT)</a> in the <a href=\"%s\">plugin settings</a>."
3176
  msgstr ""
3177
 
3178
- #: public/public.php:965
 
 
 
 
3179
  #, php-format
3180
  msgid "Showing results for \"%s\""
3181
  msgstr ""
3182
 
3183
- #: public/search.php:66 widgets/search.php:84
3184
  msgid "Search form disabled."
3185
  msgstr ""
3186
 
@@ -3199,8 +3238,8 @@ msgstr ""
3199
  msgid "Enter your Keyword"
3200
  msgstr ""
3201
 
3202
- #: public/templates/search-form-template-horizontal.php:29
3203
- #: public/templates/search-form-template-vertical.php:29
3204
  msgid "Select a Category"
3205
  msgstr ""
3206
 
@@ -3231,12 +3270,12 @@ msgstr ""
3231
  msgid "Sub Categories"
3232
  msgstr ""
3233
 
3234
- #: widgets/forms/categories.php:129
3235
- msgid "Show More Button"
3236
  msgstr ""
3237
 
3238
- #: widgets/forms/video.php:24
3239
- msgid "Start typing for suggestions..."
3240
  msgstr ""
3241
 
3242
  #: widgets/forms/video.php:41
@@ -3244,7 +3283,7 @@ msgid "Latest Video"
3244
  msgstr ""
3245
 
3246
  #: widgets/video.php:210
3247
- msgid "No videos were found. Select me to display the last added video."
3248
  msgstr ""
3249
 
3250
  #: widgets/videos.php:66
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: All-in-One Video Gallery\n"
4
+ "POT-Creation-Date: 2022-05-02 14:04+0530\n"
5
+ "PO-Revision-Date: 2022-05-02 14:04+0530\n"
6
  "Last-Translator: \n"
7
  "Language-Team: \n"
8
  "Language: en_US\n"
13
  "X-Generator: Poedit 3.0.1\n"
14
  "X-Poedit-Basepath: ..\n"
15
  "X-Poedit-SourceCharset: UTF-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;esc_attr__;esc_attr_e;esc_html__;esc_html_e;_n\n"
17
  "X-Poedit-SearchPath-0: .\n"
18
 
19
+ #: admin/admin.php:179 admin/partials/issues.php:78
20
  msgid "Apply Fix"
21
  msgstr ""
22
 
23
+ #: admin/admin.php:192 admin/partials/issues.php:75
24
  msgid "Ignore"
25
  msgstr ""
26
 
27
+ #: admin/admin.php:218 admin/partials/dashboard.php:14 blocks/blocks.php:37
28
  msgid "All-in-One Video Gallery"
29
  msgstr ""
30
 
31
+ #: admin/admin.php:219 admin/videos.php:69 includes/functions.php:1024
32
+ #: widgets/videos.php:307
33
  msgid "Video Gallery"
34
  msgstr ""
35
 
36
+ #: admin/admin.php:229
37
  msgid "All-in-One Video Gallery - Dashboard"
38
  msgstr ""
39
 
40
+ #: admin/admin.php:230
41
  msgid "Dashboard"
42
  msgstr ""
43
 
44
+ #: admin/admin.php:244
45
  msgid "Shortcode Builder"
46
  msgstr ""
47
 
48
+ #: admin/admin.php:245
49
  msgid "FAQ"
50
  msgstr ""
51
 
52
+ #: admin/admin.php:254
53
  msgid "Issues Found"
54
  msgstr ""
55
 
56
+ #: admin/admin.php:477
57
  msgid "Pages Misconfigured"
58
  msgstr ""
59
 
60
+ #: admin/admin.php:479
61
  #, php-format
62
  msgid ""
63
  "During activation, our plugin adds few <a href=\"%s\" target=\"_blank"
66
  "or having a wrong shortcode."
67
  msgstr ""
68
 
69
+ #: admin/admin.php:547
70
  msgid "Copied"
71
  msgstr ""
72
 
73
+ #: admin/admin.php:548
74
  msgid "Please select at least one issue."
75
  msgstr ""
76
 
77
+ #: admin/admin.php:549 widgets/forms/video.php:33
78
+ msgid "No video selected. The last added video will be displayed."
79
  msgstr ""
80
 
81
+ #: admin/admin.php:550
82
  msgid "Sorry, there is already a video with this quality level."
83
  msgstr ""
84
 
85
+ #: admin/admin.php:551 widgets/forms/video.php:30
86
  msgid "Remove"
87
  msgstr ""
88
 
89
+ #: admin/admin.php:568 admin/settings.php:60
90
  msgid "Settings"
91
  msgstr ""
92
 
102
  msgid "Video Categories"
103
  msgstr ""
104
 
105
+ #: admin/categories.php:67 admin/videos.php:398
106
  #: premium/admin/automations.php:195 public/videos.php:100
107
  msgid "All Categories"
108
  msgstr ""
155
  msgid "Search Categories"
156
  msgstr ""
157
 
158
+ #: admin/categories.php:80 includes/functions.php:670
159
+ msgid "No categories found"
160
  msgstr ""
161
 
162
  #: admin/categories.php:81
171
  msgid "Categories list navigation"
172
  msgstr ""
173
 
174
+ #: admin/categories.php:162 admin/settings.php:460 admin/tags.php:114
175
+ #: admin/videos.php:523 blocks/blocks.php:80 includes/functions.php:1341
176
  #: widgets/forms/categories.php:69
177
  msgid "ID"
178
  msgstr ""
179
 
180
+ #: admin/partials/category-fields.php:15 admin/partials/category-fields.php:34
181
  #: admin/partials/video-sources.php:261 admin/partials/video-sources.php:265
182
+ #: includes/functions.php:911 premium/public/templates/video-form.php:308
183
  msgid "Image"
184
  msgstr ""
185
 
186
+ #: admin/partials/category-fields.php:19 admin/partials/category-fields.php:44
187
  msgid "Add Image"
188
  msgstr ""
189
 
190
+ #: admin/partials/category-fields.php:20 admin/partials/category-fields.php:45
191
  msgid "Remove Image"
192
  msgstr ""
193
 
194
+ #: admin/partials/category-fields.php:27 admin/partials/category-fields.php:51
195
+ msgid "Exclude in Search Form"
196
+ msgstr ""
197
+
198
+ #: admin/partials/category-fields.php:29 admin/partials/category-fields.php:56
199
+ msgid "Exclude this category in the front-end search form."
200
+ msgstr ""
201
+
202
  #: admin/partials/dashboard.php:17
203
  msgid ""
204
  "Add responsive video galleries anywhere on your website – no coding "
294
  #: admin/partials/video-sources.php:173 admin/partials/video-sources.php:272
295
  #: admin/partials/video-sources.php:338 admin/partials/video-tracks.php:44
296
  #: admin/partials/video-tracks.php:80
297
+ #: premium/public/templates/video-form.php:149
298
+ #: premium/public/templates/video-form.php:178
299
+ #: premium/public/templates/video-form.php:208
300
+ #: premium/public/templates/video-form.php:317
301
  msgid "Upload File"
302
  msgstr ""
303
 
304
  #: admin/partials/shortcode-builder.php:163 blocks/blocks.php:73
305
+ #: includes/functions.php:1288 widgets/forms/categories.php:36
306
  #: widgets/forms/categories.php:39
307
  msgid "Select Parent"
308
  msgstr ""
451
  msgstr ""
452
 
453
  #: admin/partials/video-sources.php:17 admin/partials/video-sources.php:21
454
+ #: includes/functions.php:868 premium/admin/partials/automations-sources.php:42
455
  #: premium/admin/partials/automations-sources.php:45
456
+ #: premium/public/templates/video-form.php:118
457
  msgid "Source Type"
458
  msgstr ""
459
 
460
  #: admin/partials/video-sources.php:36 admin/partials/video-sources.php:41
461
+ #: admin/videos.php:70 admin/videos.php:104 includes/functions.php:876
462
+ #: premium/public/templates/video-form.php:137
463
  msgid "Video"
464
  msgstr ""
465
 
480
  #: admin/partials/video-sources.php:79 admin/partials/video-sources.php:120
481
  #: admin/partials/video-sources.php:147 admin/partials/video-sources.php:170
482
  #: admin/partials/video-sources.php:269 admin/partials/video-sources.php:335
483
+ #: premium/public/templates/video-form.php:146
484
+ #: premium/public/templates/video-form.php:175
485
+ #: premium/public/templates/video-form.php:205
486
+ #: premium/public/templates/video-form.php:314
487
  msgid "Enter your direct file URL (OR) upload your file using the button here"
488
  msgstr ""
489
 
492
  msgstr ""
493
 
494
  #: admin/partials/video-sources.php:138 admin/partials/video-sources.php:143
495
+ #: premium/public/templates/video-form.php:168
496
  msgid "WebM"
497
  msgstr ""
498
 
499
  #: admin/partials/video-sources.php:139 admin/partials/video-sources.php:143
500
  #: admin/partials/video-sources.php:162 admin/partials/video-sources.php:166
501
+ #: premium/public/templates/video-form.php:169
502
+ #: premium/public/templates/video-form.php:199
503
  msgid "deprecated"
504
  msgstr ""
505
 
506
  #: admin/partials/video-sources.php:161 admin/partials/video-sources.php:166
507
+ #: premium/public/templates/video-form.php:198
508
  msgid "OGV"
509
  msgstr ""
510
 
511
  #: admin/partials/video-sources.php:182 admin/partials/video-sources.php:186
512
+ #: admin/settings.php:330 includes/functions.php:883
513
+ #: includes/functions.php:1522 premium/includes/functions.php:110
514
+ #: premium/public/templates/video-form.php:230
515
  msgid "YouTube"
516
  msgstr ""
517
 
518
  #: admin/partials/video-sources.php:190 admin/partials/video-sources.php:204
519
  #: admin/partials/video-sources.php:218 admin/partials/video-sources.php:232
520
+ #: includes/functions.php:884 includes/functions.php:891
521
+ #: includes/functions.php:898 includes/functions.php:905
522
  #: premium/admin/adaptive-streaming.php:42
523
  #: premium/admin/adaptive-streaming.php:50
524
  #: premium/admin/partials/adaptive-streaming.php:24
529
  #: premium/admin/partials/automations-sources.php:131
530
  #: premium/admin/partials/automations-sources.php:149
531
  #: premium/admin/partials/automations-sources.php:163
532
+ #: premium/public/templates/video-form.php:235
533
+ #: premium/public/templates/video-form.php:251
534
+ #: premium/public/templates/video-form.php:267
535
+ #: premium/public/templates/video-form.php:283
536
+ #: premium/public/templates/video-form.php:299
537
  msgid "Example"
538
  msgstr ""
539
 
540
  #: admin/partials/video-sources.php:196 admin/partials/video-sources.php:200
541
+ #: admin/settings.php:331 includes/functions.php:890
542
+ #: includes/functions.php:1523 premium/public/templates/video-form.php:246
543
  msgid "Vimeo"
544
  msgstr ""
545
 
546
  #: admin/partials/video-sources.php:210 admin/partials/video-sources.php:214
547
+ #: admin/settings.php:332 includes/functions.php:897
548
+ #: includes/functions.php:1524 premium/public/templates/video-form.php:262
549
  msgid "Dailymotion"
550
  msgstr ""
551
 
552
  #: admin/partials/video-sources.php:224 admin/partials/video-sources.php:228
553
+ #: admin/settings.php:333 admin/settings.php:622 includes/functions.php:904
554
+ #: includes/functions.php:1525 includes/functions.php:2165
555
+ #: premium/public/templates/video-form.php:278
556
  msgid "Facebook"
557
  msgstr ""
558
 
575
  msgstr ""
576
 
577
  #: admin/partials/video-sources.php:282 admin/partials/video-sources.php:286
578
+ #: admin/settings.php:308 blocks/blocks.php:123 includes/functions.php:979
579
  #: widgets/forms/video.php:130
580
  msgid "Duration"
581
  msgstr ""
582
 
583
  #: admin/partials/video-sources.php:296 admin/partials/video-sources.php:300
584
+ #: admin/videos.php:522
585
  msgid "Views"
586
  msgstr ""
587
 
589
  msgid "Mark as"
590
  msgstr ""
591
 
592
+ #: admin/partials/video-submitbox.php:20 admin/videos.php:579
593
  msgid "Featured"
594
  msgstr ""
595
 
633
  msgid "All-in-One Video Gallery - Settings"
634
  msgstr ""
635
 
636
+ #: admin/settings.php:98 blocks/blocks.php:107 includes/functions.php:857
637
+ #: includes/functions.php:1027 includes/functions.php:1266
638
+ #: includes/functions.php:1402
639
  msgid "General"
640
  msgstr ""
641
 
667
  msgid "Single Video Page"
668
  msgstr ""
669
 
670
+ #: admin/settings.php:145 admin/settings.php:519 includes/functions.php:1115
671
  msgid "Related Videos"
672
  msgstr ""
673
 
728
  msgid "Iframe"
729
  msgstr ""
730
 
731
+ #: admin/settings.php:238 admin/settings.php:593 blocks/blocks.php:108
732
+ #: includes/functions.php:918 premium/widgets/forms/companion.php:16
733
  #: widgets/forms/video.php:74
734
  msgid "Width"
735
  msgstr ""
736
 
737
+ #: admin/settings.php:239 blocks/blocks.php:109 includes/functions.php:919
738
  #, php-format
739
  msgid ""
740
  "In pixels. Maximum width of the player. Leave this field empty to scale "
741
  "100% of its enclosing container/html element."
742
  msgstr ""
743
 
744
+ #: admin/settings.php:245 admin/settings.php:600 blocks/blocks.php:110
745
+ #: includes/functions.php:925 includes/functions.php:1127
746
+ #: includes/functions.php:1310 widgets/forms/video.php:79
747
  msgid "Ratio"
748
  msgstr ""
749
 
750
+ #: admin/settings.php:248 blocks/blocks.php:111 includes/functions.php:926
751
  msgid ""
752
  "In percentage. 1 to 100. Calculate player's height using the ratio value "
753
  "entered."
781
  msgid "Cinemascope"
782
  msgstr ""
783
 
784
+ #: admin/settings.php:262 blocks/blocks.php:112 includes/functions.php:932
785
  #: widgets/forms/video.php:86
786
  msgid "Autoplay"
787
  msgstr ""
790
  msgid "Check this to start playing the video as soon as it is ready"
791
  msgstr ""
792
 
793
+ #: admin/settings.php:269 blocks/blocks.php:113 includes/functions.php:939
794
  #: widgets/forms/video.php:93
795
  msgid "Loop"
796
  msgstr ""
801
  "finished"
802
  msgstr ""
803
 
804
+ #: admin/settings.php:276 blocks/blocks.php:114 includes/functions.php:946
805
  #: widgets/forms/video.php:100
806
  msgid "Muted"
807
  msgstr ""
838
  msgid "Metadata"
839
  msgstr ""
840
 
841
+ #: admin/settings.php:301 blocks/blocks.php:119 includes/functions.php:954
842
  #: widgets/forms/video.php:104
843
  msgid "Player Controls"
844
  msgstr ""
845
 
846
+ #: admin/settings.php:305 blocks/blocks.php:120 includes/functions.php:958
847
  #: widgets/forms/video.php:109
848
  msgid "Play / Pause"
849
  msgstr ""
850
 
851
+ #: admin/settings.php:306 blocks/blocks.php:121 includes/functions.php:965
852
  #: widgets/forms/video.php:116
853
  msgid "Current Time"
854
  msgstr ""
855
 
856
+ #: admin/settings.php:307 blocks/blocks.php:122 includes/functions.php:972
857
  #: widgets/forms/video.php:123
858
  msgid "Progressbar"
859
  msgstr ""
860
 
861
+ #: admin/settings.php:309 admin/videos.php:172 includes/functions.php:986
862
  #: widgets/forms/video.php:137
863
  msgid "Subtitles"
864
  msgstr ""
865
 
866
+ #: admin/settings.php:310 blocks/blocks.php:124 includes/functions.php:993
867
  #: widgets/forms/video.php:144
868
  msgid "Quality Selector"
869
  msgstr ""
870
 
871
+ #: admin/settings.php:311 blocks/blocks.php:125 includes/functions.php:1000
872
  #: widgets/forms/video.php:151
873
  msgid "Speed Control"
874
  msgstr ""
875
 
876
+ #: admin/settings.php:312 blocks/blocks.php:126 includes/functions.php:1007
877
  #: widgets/forms/video.php:158
878
  msgid "Volume"
879
  msgstr ""
880
 
881
+ #: admin/settings.php:313 blocks/blocks.php:127 includes/functions.php:1014
882
  #: widgets/forms/video.php:165
883
  msgid "Fullscreen"
884
  msgstr ""
904
  msgstr ""
905
 
906
  #: admin/settings.php:341 admin/settings.php:428 blocks/blocks.php:74
907
+ #: includes/functions.php:1038 includes/functions.php:1277
908
+ #: includes/functions.php:1406 widgets/forms/categories.php:20
909
  #: widgets/forms/search.php:20
910
  msgid "Select Template"
911
  msgstr ""
912
 
913
+ #: admin/settings.php:342 includes/functions.php:1039
914
  #, php-format
915
  msgid ""
916
  "<a href=\"%s\" target=\"_blank\">Upgrade Pro</a> for more templates (Popup, "
917
  "Slider, etc.)"
918
  msgstr ""
919
 
920
+ #: admin/settings.php:349 admin/settings.php:439 admin/settings.php:540
921
+ #: blocks/blocks.php:77 includes/functions.php:1134 includes/functions.php:1317
922
  #: widgets/forms/categories.php:55
923
  msgid "Columns"
924
  msgstr ""
927
  msgid "Enter the number of columns you like to have in the gallery view."
928
  msgstr ""
929
 
930
+ #: admin/settings.php:359 admin/settings.php:449 admin/settings.php:550
931
+ #: blocks/blocks.php:78 includes/functions.php:1074 includes/functions.php:1327
932
  #: widgets/forms/categories.php:60
933
  msgid "Limit (per page)"
934
  msgstr ""
935
 
936
+ #: admin/settings.php:360 admin/settings.php:551
937
  msgid ""
938
  "Number of videos to show per page. Use a value of \"0\" to show all videos."
939
  msgstr ""
940
 
941
+ #: admin/settings.php:366 admin/settings.php:557 blocks/blocks.php:79
942
+ #: includes/functions.php:1084 includes/functions.php:1337
943
  #: premium/admin/partials/automations-sources.php:171
944
  #: premium/admin/partials/automations-sources.php:174
945
  #: widgets/forms/categories.php:65
946
  msgid "Order By"
947
  msgstr ""
948
 
949
+ #: admin/settings.php:370 admin/settings.php:561 includes/functions.php:1031
950
+ #: includes/functions.php:1088 includes/functions.php:1270
951
  #: premium/admin/partials/automations-sources.php:181
952
  #: premium/public/templates/user-dashboard.php:78
953
  #: widgets/forms/categories.php:15 widgets/forms/search.php:15
955
  msgid "Title"
956
  msgstr ""
957
 
958
+ #: admin/settings.php:371 admin/settings.php:562 includes/functions.php:1089
959
  msgid "Date Posted"
960
  msgstr ""
961
 
962
  #: admin/settings.php:372 admin/settings.php:411 admin/settings.php:518
963
+ #: admin/settings.php:563 includes/functions.php:1090
964
+ #: includes/functions.php:1204
965
  #: premium/admin/partials/automations-sources.php:182
966
  msgid "Views Count"
967
  msgstr ""
968
 
969
+ #: admin/settings.php:373 admin/settings.php:564 includes/functions.php:1091
970
  msgid "Random"
971
  msgstr ""
972
 
973
+ #: admin/settings.php:379 admin/settings.php:469 admin/settings.php:570
974
+ #: blocks/blocks.php:84 includes/functions.php:1097 includes/functions.php:1350
975
  #: widgets/forms/categories.php:83
976
  msgid "Order"
977
  msgstr ""
978
 
979
+ #: admin/settings.php:383 admin/settings.php:473 admin/settings.php:574
980
  msgid "Ascending"
981
  msgstr ""
982
 
983
+ #: admin/settings.php:384 admin/settings.php:474 admin/settings.php:575
984
  msgid "Descending"
985
  msgstr ""
986
 
987
+ #: admin/settings.php:390 includes/functions.php:1144
988
  msgid "Image Position (Thumbnails)"
989
  msgstr ""
990
 
991
+ #: admin/settings.php:394 includes/functions.php:1148
992
  msgid "Top"
993
  msgstr ""
994
 
995
+ #: admin/settings.php:395 includes/functions.php:1149
996
  msgid "Left"
997
  msgstr ""
998
 
999
+ #: admin/settings.php:401 includes/functions.php:1155
1000
  msgid "Show / Hide (Thumbnails)"
1001
  msgstr ""
1002
 
1003
+ #: admin/settings.php:405 includes/functions.php:1162
1004
  msgid "Videos Count"
1005
  msgstr ""
1006
 
1007
+ #: admin/settings.php:406 includes/functions.php:1169
1008
  #: premium/admin/slider.php:69 premium/public/slider.php:91
1009
+ #: premium/public/templates/video-form.php:45
1010
  msgid "Video Title"
1011
  msgstr ""
1012
 
1013
+ #: admin/settings.php:407 admin/settings.php:514 includes/functions.php:1176
1014
  msgid "Category Name(s)"
1015
  msgstr ""
1016
 
1017
+ #: admin/settings.php:408 admin/settings.php:515 includes/functions.php:1183
1018
  msgid "Tag Name(s)"
1019
  msgstr ""
1020
 
1021
+ #: admin/settings.php:409 admin/settings.php:516 includes/functions.php:1190
1022
  msgid "Date Added"
1023
  msgstr ""
1024
 
1025
+ #: admin/settings.php:410 admin/settings.php:517 includes/functions.php:1197
1026
  msgid "Author Name"
1027
  msgstr ""
1028
 
1029
+ #: admin/settings.php:412 includes/functions.php:1211
1030
  msgid "Video Duration"
1031
  msgstr ""
1032
 
1033
+ #: admin/settings.php:413 includes/functions.php:1218
1034
  msgid "Video Excerpt (Short Description)"
1035
  msgstr ""
1036
 
1037
+ #: admin/settings.php:419 includes/functions.php:1225
1038
  msgid "Excerpt Length"
1039
  msgstr ""
1040
 
1042
  msgid "Number of characters."
1043
  msgstr ""
1044
 
1045
+ #: admin/settings.php:432 blocks/blocks.php:75 includes/functions.php:1281
1046
  #: widgets/forms/categories.php:24
1047
  msgid "Grid"
1048
  msgstr ""
1049
 
1050
+ #: admin/settings.php:433 blocks/blocks.php:76 includes/functions.php:1282
1051
  #: widgets/forms/categories.php:25
1052
  msgid "List"
1053
  msgstr ""
1066
  msgid "Order by"
1067
  msgstr ""
1068
 
1069
+ #: admin/settings.php:461 blocks/blocks.php:81 includes/functions.php:1342
1070
  #: widgets/forms/categories.php:70
1071
  msgid "Count"
1072
  msgstr ""
1073
 
1074
+ #: admin/settings.php:462 blocks/blocks.php:82 includes/functions.php:1343
1075
  #: widgets/forms/categories.php:71
1076
  msgid "Name"
1077
  msgstr ""
1078
 
1079
+ #: admin/settings.php:463 blocks/blocks.php:83 includes/functions.php:1344
1080
  #: widgets/forms/categories.php:72
1081
  msgid "Slug"
1082
  msgstr ""
1083
 
1084
+ #: admin/settings.php:480 blocks/blocks.php:87 includes/functions.php:1361
1085
  #: widgets/forms/categories.php:101
1086
  msgid "Show Hierarchy"
1087
  msgstr ""
1090
  msgid "Check this to show the child categories"
1091
  msgstr ""
1092
 
1093
+ #: admin/settings.php:487 blocks/blocks.php:88 includes/functions.php:1368
1094
  #: widgets/forms/categories.php:108
1095
  msgid "Show Description"
1096
  msgstr ""
1099
  msgid "Check this to show the categories description"
1100
  msgstr ""
1101
 
1102
+ #: admin/settings.php:494 blocks/blocks.php:89 includes/functions.php:1375
1103
  #: widgets/forms/categories.php:115
1104
  msgid "Show Videos Count"
1105
  msgstr ""
1108
  msgid "Check this to show the videos count next to the category name"
1109
  msgstr ""
1110
 
1111
+ #: admin/settings.php:501 blocks/blocks.php:90 includes/functions.php:1382
1112
  #: widgets/forms/categories.php:122
1113
  msgid "Hide Empty Categories"
1114
  msgstr ""
1117
  msgid "Check this to hide categories with no videos"
1118
  msgstr ""
1119
 
1120
+ #: admin/settings.php:510 admin/settings.php:581
1121
  msgid "Show / Hide"
1122
  msgstr ""
1123
 
1124
  #: admin/settings.php:525
1125
+ msgid "Enable / Disable Comments"
1126
  msgstr ""
1127
 
1128
+ #: admin/settings.php:529
1129
+ msgid "Enable comments (can be overridden per video)"
1130
+ msgstr ""
1131
+
1132
+ #: admin/settings.php:530
1133
+ msgid "Forcefully enable comments on all the video pages"
1134
+ msgstr ""
1135
+
1136
+ #: admin/settings.php:531
1137
+ msgid "Disable comments (can be overridden per video)"
1138
  msgstr ""
1139
 
1140
+ #: admin/settings.php:532
1141
+ msgid "Forcefully disable comments on all the video pages"
1142
+ msgstr ""
1143
+
1144
+ #: admin/settings.php:541
1145
  msgid ""
1146
  "Enter the number of columns you like to have in the related videos section."
1147
  msgstr ""
1148
 
1149
+ #: admin/settings.php:585 includes/functions.php:1232
1150
  msgid "Pagination"
1151
  msgstr ""
1152
 
1153
+ #: admin/settings.php:594
1154
  #, php-format
1155
  msgid "Always 100% of its enclosing container/html element."
1156
  msgstr ""
1157
 
1158
+ #: admin/settings.php:601
1159
  msgid ""
1160
  "In percentage. 1 to 100. Calculate images's height using the ratio value "
1161
  "entered."
1162
  msgstr ""
1163
 
1164
+ #: admin/settings.php:609
1165
  msgid "Ajax"
1166
  msgstr ""
1167
 
1168
+ #: admin/settings.php:610
1169
  msgid "Check this to enable Pagination with Ajax"
1170
  msgstr ""
1171
 
1172
+ #: admin/settings.php:618
1173
  msgid "Share Buttons"
1174
  msgstr ""
1175
 
1176
+ #: admin/settings.php:619
1177
  msgid "Select social share buttons displayed on the single video pages."
1178
  msgstr ""
1179
 
1180
+ #: admin/settings.php:623 includes/functions.php:2172
1181
  msgid "Twitter"
1182
  msgstr ""
1183
 
1184
+ #: admin/settings.php:624 includes/functions.php:2179
1185
  msgid "Linkedin"
1186
  msgstr ""
1187
 
1188
+ #: admin/settings.php:625
1189
  msgid "Pinterest"
1190
  msgstr ""
1191
 
1192
+ #: admin/settings.php:626 includes/functions.php:2203
1193
  msgid "Tumblr"
1194
  msgstr ""
1195
 
1196
+ #: admin/settings.php:627 includes/functions.php:2216
1197
  msgid "WhatsApp"
1198
  msgstr ""
1199
 
1200
+ #: admin/settings.php:633
1201
  msgid "Open Graph Tags"
1202
  msgstr ""
1203
 
1204
+ #: admin/settings.php:634
1205
  msgid ""
1206
  "Check this option to enable Facebook Open Graph meta tags and Twitter cards "
1207
  "on the single video pages"
1208
  msgstr ""
1209
 
1210
+ #: admin/settings.php:640
1211
  msgid "Twitter Username"
1212
  msgstr ""
1213
 
1214
+ #: admin/settings.php:641
1215
  msgid ""
1216
  "The Twitter @username the player card should be attributed to. Required for "
1217
  "sharing videos in Twitter."
1218
  msgstr ""
1219
 
1220
+ #: admin/settings.php:650
1221
  msgid "Video Detail Page"
1222
  msgstr ""
1223
 
1224
+ #: admin/settings.php:651
1225
  msgid "Replaces the SLUG value used by custom post type \"aiovg_videos\"."
1226
  msgstr ""
1227
 
1228
+ #: admin/settings.php:659
1229
  msgid "Remove data on uninstall?"
1230
  msgstr ""
1231
 
1232
+ #: admin/settings.php:660
1233
  msgid ""
1234
  "Check this box to delete all of the plugin data (database stored content) "
1235
  "when uninstalled"
1236
  msgstr ""
1237
 
1238
+ #: admin/settings.php:666
1239
  msgid "Delete media files?"
1240
  msgstr ""
1241
 
1242
+ #: admin/settings.php:667
1243
  msgid ""
1244
  "Check this box to also delete the associated media files when a video post "
1245
  "or a video category is deleted"
1246
  msgstr ""
1247
 
1248
+ #: admin/settings.php:673
1249
  msgid "Vimeo Access Token"
1250
  msgstr ""
1251
 
1252
+ #: admin/settings.php:674
1253
  #, php-format
1254
  msgid ""
1255
  "Follow <a href=\"%s\" target=\"_blank\">this guide</a> to get your own "
1256
  "access token."
1257
  msgstr ""
1258
 
1259
+ #: admin/settings.php:682
1260
  msgid "Single Category Page"
1261
  msgstr ""
1262
 
1263
+ #: admin/settings.php:683
1264
  msgid ""
1265
  "This is the page where the videos from a particular category is displayed. "
1266
  "The [aiovg_category] short code must be on this page."
1267
  msgstr ""
1268
 
1269
+ #: admin/settings.php:689
1270
  msgid "Single Tag Page"
1271
  msgstr ""
1272
 
1273
+ #: admin/settings.php:690
1274
  msgid ""
1275
  "This is the page where the videos from a particular tag is displayed. The "
1276
  "[aiovg_tag] short code must be on this page."
1277
  msgstr ""
1278
 
1279
+ #: admin/settings.php:696
1280
  msgid "Search Page"
1281
  msgstr ""
1282
 
1283
+ #: admin/settings.php:697
1284
  msgid ""
1285
  "This is the page where the search results are displayed. The [aiovg_search] "
1286
  "short code must be on this page."
1287
  msgstr ""
1288
 
1289
+ #: admin/settings.php:703
1290
  msgid "User Videos Page"
1291
  msgstr ""
1292
 
1293
+ #: admin/settings.php:704
1294
  msgid ""
1295
  "This is the page where the videos from an user is displayed. The "
1296
  "[aiovg_user_videos] short code must be on this page."
1297
  msgstr ""
1298
 
1299
+ #: admin/settings.php:710
1300
  msgid "Player Page"
1301
  msgstr ""
1302
 
1303
+ #: admin/settings.php:711
1304
  msgid "This is the page used to show the video player."
1305
  msgstr ""
1306
 
1307
+ #: admin/settings.php:719
1308
  msgid "GDPR - Show Consent"
1309
  msgstr ""
1310
 
1311
+ #: admin/settings.php:720
1312
  msgid "Ask for consent before loading YouTube / Vimeo content."
1313
  msgstr ""
1314
 
1315
+ #: admin/settings.php:726
1316
  msgid "GDPR - Consent Message"
1317
  msgstr ""
1318
 
1319
+ #: admin/settings.php:733
1320
  msgid "GDPR - Consent Button Label"
1321
  msgstr ""
1322
 
1323
+ #: admin/settings.php:740
1324
  msgid "Disable Cookies"
1325
  msgstr ""
1326
 
1327
+ #: admin/settings.php:744
1328
  msgid ""
1329
  "<strong>aiovg_videos_views</strong> - check this option for Total Views, but "
1330
  "uncheck for the Unique Views. eg. 1 Person can watch a video 10 times and "
1332
  "Views."
1333
  msgstr ""
1334
 
1335
+ #: admin/settings.php:745
1336
  msgid ""
1337
  "<strong>aiovg_rand_seed</strong> - uncheck this option if you show videos in "
1338
  "a Random order with the Pagination on any of your pages."
1339
  msgstr ""
1340
 
1341
+ #: admin/settings.php:756
1342
  msgid "Show Logo"
1343
  msgstr ""
1344
 
1345
+ #: admin/settings.php:757
1346
  msgid "Check this option to show the watermark on the video."
1347
  msgstr ""
1348
 
1349
+ #: admin/settings.php:763
1350
  msgid "Logo Image"
1351
  msgstr ""
1352
 
1353
+ #: admin/settings.php:764
1354
  msgid ""
1355
  "Upload the image file of your logo. We recommend using the transparent PNG "
1356
  "format with width below 100 pixels. If you do not enter any image, no logo "
1357
  "will displayed."
1358
  msgstr ""
1359
 
1360
+ #: admin/settings.php:770
1361
  msgid "Logo Link"
1362
  msgstr ""
1363
 
1364
+ #: admin/settings.php:771
1365
  msgid ""
1366
  "The URL to visit when the watermark image is clicked. Clicking a logo will "
1367
  "have no affect unless this is configured."
1368
  msgstr ""
1369
 
1370
+ #: admin/settings.php:777
1371
  msgid "Logo Position"
1372
  msgstr ""
1373
 
1374
+ #: admin/settings.php:778
1375
  msgid "This sets the corner in which to display the watermark."
1376
  msgstr ""
1377
 
1378
+ #: admin/settings.php:781
1379
  msgid "Top Left"
1380
  msgstr ""
1381
 
1382
+ #: admin/settings.php:782
1383
  msgid "Top Right"
1384
  msgstr ""
1385
 
1386
+ #: admin/settings.php:783
1387
  msgid "Bottom Left"
1388
  msgstr ""
1389
 
1390
+ #: admin/settings.php:784
1391
  msgid "Bottom Right"
1392
  msgstr ""
1393
 
1394
+ #: admin/settings.php:790
1395
  msgid "Logo Margin"
1396
  msgstr ""
1397
 
1398
+ #: admin/settings.php:791
1399
  msgid "The distance, in pixels, of the logo from the edges of the display."
1400
  msgstr ""
1401
 
1402
+ #: admin/settings.php:797
1403
  msgid "Copyright Text"
1404
  msgstr ""
1405
 
1406
+ #: admin/settings.php:798
1407
  msgid "Text that is shown when a user right-clicks the player with the mouse."
1408
  msgstr ""
1409
 
1410
+ #: admin/settings.php:1074
1411
  msgid "Choose File"
1412
  msgstr ""
1413
 
1414
+ #: admin/settings.php:1123
1415
  msgid "Select a page"
1416
  msgstr ""
1417
 
1465
  msgid "Search Tags"
1466
  msgstr ""
1467
 
1468
+ #: admin/tags.php:80 includes/functions.php:673
1469
+ msgid "No tags found"
1470
+ msgstr ""
1471
+
1472
  #: admin/tags.php:81
1473
  msgid "No tags"
1474
  msgstr ""
1485
  msgid "All-in-One Video Gallery - Videos"
1486
  msgstr ""
1487
 
1488
+ #: admin/videos.php:33 admin/videos.php:74 admin/videos.php:415
1489
  msgid "All Videos"
1490
  msgstr ""
1491
 
1533
  msgid "Search Video"
1534
  msgstr ""
1535
 
1536
+ #: admin/videos.php:83 includes/functions.php:667
1537
+ msgid "No videos found"
1538
  msgstr ""
1539
 
1540
  #: admin/videos.php:84
1577
  msgid "Filter videos list"
1578
  msgstr ""
1579
 
1580
+ #: admin/videos.php:105
1581
  #: premium/admin/partials/automations-video-settings.php:66
1582
  #: premium/admin/partials/automations-video-settings.php:69
1583
  #: premium/admin/slider.php:70 premium/public/slider.php:99
1584
+ #: premium/public/templates/video-form.php:338
1585
  msgid "Video Description"
1586
  msgstr ""
1587
 
1588
+ #: admin/videos.php:163
1589
  msgid "Video Sources"
1590
  msgstr ""
1591
 
1592
+ #: admin/videos.php:416
1593
  msgid "Featured only"
1594
  msgstr ""
1595
 
1596
+ #: admin/videos.php:490
1597
  msgid "Copy URL"
1598
  msgstr ""
1599
 
1600
+ #: admin/videos.php:499
1601
  msgid "Copy Shortcode"
1602
  msgstr ""
1603
 
1604
+ #: admin/videos.php:521
1605
  msgid "Misc"
1606
  msgstr ""
1607
 
1608
+ #: admin/videos.php:568
1609
  msgid "Author"
1610
  msgstr ""
1611
 
1617
  msgid "Display a list of video categories."
1618
  msgstr ""
1619
 
1620
+ #: blocks/blocks.php:85 includes/functions.php:1101 includes/functions.php:1354
1621
  #: widgets/forms/categories.php:87
1622
  msgid "ASC"
1623
  msgstr ""
1624
 
1625
+ #: blocks/blocks.php:86 includes/functions.php:1102 includes/functions.php:1355
1626
  #: widgets/forms/categories.php:88
1627
  msgid "DESC"
1628
  msgstr ""
1629
 
1630
+ #: blocks/blocks.php:91 includes/functions.php:1389
1631
  msgid "Show Pagination"
1632
  msgstr ""
1633
 
1651
  msgid "A videos search form for your site."
1652
  msgstr ""
1653
 
1654
+ #: blocks/blocks.php:97 includes/functions.php:1410 widgets/forms/search.php:24
1655
  msgid "Vertical"
1656
  msgstr ""
1657
 
1658
+ #: blocks/blocks.php:98 includes/functions.php:1411 widgets/forms/search.php:25
1659
  msgid "Horizontal"
1660
  msgstr ""
1661
 
1662
+ #: blocks/blocks.php:99 includes/functions.php:1424 widgets/forms/search.php:45
1663
  msgid "Search By Categories"
1664
  msgstr ""
1665
 
1666
+ #: blocks/blocks.php:100 includes/functions.php:1417
1667
  #: widgets/forms/search.php:38
1668
  msgid "Search By Video Title, Description"
1669
  msgstr ""
1670
 
1671
+ #: blocks/blocks.php:101 includes/functions.php:1431
1672
  #: widgets/forms/search.php:52
1673
  msgid "Search By Tags"
1674
  msgstr ""
1750
  msgid "No results found."
1751
  msgstr ""
1752
 
1753
+ #: includes/functions.php:297
1754
  msgid "Video Category"
1755
  msgstr ""
1756
 
1757
+ #: includes/functions.php:301
1758
  msgid "Video Tag"
1759
  msgstr ""
1760
 
1761
+ #: includes/functions.php:305 widgets/search.php:120
1762
  msgid "Search Videos"
1763
  msgstr ""
1764
 
1765
+ #: includes/functions.php:309
1766
  msgid "User Videos"
1767
  msgstr ""
1768
 
1769
+ #: includes/functions.php:313
1770
  msgid "Player Embed"
1771
  msgstr ""
1772
 
1773
+ #: includes/functions.php:481
1774
  msgid ""
1775
  "<strong>Please accept cookies to play this video</strong>. By accepting you "
1776
  "will be accessing content from a service provided by an external third party."
1777
  msgstr ""
1778
 
1779
+ #: includes/functions.php:482
1780
  msgid "Accept"
1781
  msgstr ""
1782
 
1783
+ #: includes/functions.php:854
 
 
 
 
 
 
 
 
 
 
 
 
1784
  msgid "Single Video"
1785
  msgstr ""
1786
 
1787
+ #: includes/functions.php:861 widgets/forms/video.php:23
1788
  #: widgets/forms/video.php:39
1789
  msgid "Select Video"
1790
  msgstr ""
1791
 
1792
+ #: includes/functions.php:877 includes/functions.php:912
1793
  msgid ""
1794
  "Enter your direct file URL in the textbox above (OR) upload your file using "
1795
  "the \"Upload File\" link."
1796
  msgstr ""
1797
 
1798
+ #: includes/functions.php:1046 premium/public/templates/video-form.php:59
1799
  msgid "Select Categories"
1800
  msgstr ""
1801
 
1802
+ #: includes/functions.php:1053 premium/public/templates/video-form.php:349
1803
+ #: public/templates/search-form-template-horizontal.php:66
1804
+ #: public/templates/search-form-template-vertical.php:66
 
1805
  msgid "Select Tags"
1806
  msgstr ""
1807
 
1808
+ #: includes/functions.php:1060
1809
  msgid "Include Video ID(s)"
1810
  msgstr ""
1811
 
1812
+ #: includes/functions.php:1067
1813
  msgid "Exclude Video ID(s)"
1814
  msgstr ""
1815
 
1816
+ #: includes/functions.php:1108
1817
  msgid "Featured Only"
1818
  msgstr ""
1819
 
1820
+ #: includes/functions.php:1115
1821
  msgid "Follow URL"
1822
  msgstr ""
1823
 
1824
+ #: includes/functions.php:1123
1825
  msgid "Gallery"
1826
  msgstr ""
1827
 
1828
+ #: includes/functions.php:1239
1829
  msgid "More Button"
1830
  msgstr ""
1831
 
1832
+ #: includes/functions.php:1246 widgets/forms/categories.php:134
1833
  msgid "More Button Label"
1834
  msgstr ""
1835
 
1836
+ #: includes/functions.php:1249 widgets/categories.php:67 widgets/videos.php:93
1837
  msgid "Show More"
1838
  msgstr ""
1839
 
1840
+ #: includes/functions.php:1253 widgets/forms/categories.php:139
1841
  msgid "More Button Link"
1842
  msgstr ""
1843
 
1844
+ #: includes/functions.php:1254 widgets/forms/categories.php:141
1845
  msgid "Leave this field blank to use Ajax"
1846
  msgstr ""
1847
 
1848
+ #: includes/functions.php:1263
1849
  msgid "Categories"
1850
  msgstr ""
1851
 
1852
+ #: includes/functions.php:1296
1853
  msgid "Include Category ID(s)"
1854
  msgstr ""
1855
 
1856
+ #: includes/functions.php:1303
1857
  msgid "Exclude Category ID(s)"
1858
  msgstr ""
1859
 
1860
+ #: includes/functions.php:1399
1861
  msgid "Search Form"
1862
  msgstr ""
1863
 
1864
+ #: includes/functions.php:1521
1865
  msgid "Self Hosted"
1866
  msgstr ""
1867
 
1868
+ #: includes/functions.php:1521
1869
  msgid "External URL"
1870
  msgstr ""
1871
 
1872
+ #: includes/functions.php:1529
1873
  msgid "Iframe Embed Code"
1874
  msgstr ""
1875
 
1876
+ #: includes/functions.php:1543
1877
  msgid "Classic"
1878
  msgstr ""
1879
 
1880
+ #: includes/functions.php:2094
1881
  msgid "&laquo;"
1882
  msgstr ""
1883
 
1884
+ #: includes/functions.php:2095
1885
  msgid "&raquo;"
1886
  msgstr ""
1887
 
1888
+ #: includes/functions.php:2118
1889
  #, php-format
1890
  msgid "Page %d of %d"
1891
  msgstr ""
1892
 
1893
+ #: includes/functions.php:2186
1894
  msgid "Pin It"
1895
  msgstr ""
1896
 
1897
  #: premium/admin/adaptive-streaming.php:41
1898
  #: premium/admin/partials/adaptive-streaming.php:16
1899
  #: premium/admin/partials/adaptive-streaming.php:20
1900
+ #: premium/public/templates/video-form.php:294
1901
  msgid "HLS"
1902
  msgstr ""
1903
 
1904
  #: premium/admin/adaptive-streaming.php:49
1905
  #: premium/admin/partials/adaptive-streaming.php:30
1906
  #: premium/admin/partials/adaptive-streaming.php:34
1907
+ #: premium/public/templates/video-form.php:294
1908
  msgid "M(PEG)-DASH"
1909
  msgstr ""
1910
 
1913
  msgid "Proudly by %s"
1914
  msgstr ""
1915
 
1916
+ #: premium/admin/admin.php:161
1917
  msgid "[{site_name}] Video \"{video_title}\" received"
1918
  msgstr ""
1919
 
1920
+ #: premium/admin/admin.php:162
1921
  msgid ""
1922
  "Dear {name},\n"
1923
  "\n"
1928
  "The Administrator of {site_name}"
1929
  msgstr ""
1930
 
1931
+ #: premium/admin/admin.php:171
1932
  msgid "[{site_name}] Video \"{video_title}\" published"
1933
  msgstr ""
1934
 
1935
+ #: premium/admin/admin.php:172
1936
  msgid ""
1937
  "Dear {name},\n"
1938
  "\n"
1943
  "The Administrator of {site_name}"
1944
  msgstr ""
1945
 
1946
+ #: premium/admin/admin.php:240
1947
  msgid "Please wait while we are loading data from the API server..."
1948
  msgstr ""
1949
 
1950
+ #: premium/admin/admin.php:241 premium/public/public.php:105
1951
  msgid "Sorry, the auto-thumbnail generation failed."
1952
  msgstr ""
1953
 
1954
+ #: premium/admin/admin.php:242 premium/public/public.php:106
1955
  msgid ""
1956
  "Use the \"Capture Image\" button below to generate an image from your video."
1957
  msgstr ""
1958
 
1959
+ #: premium/admin/admin.php:243 premium/public/public.php:107
1960
  msgid "Select an image from the options below."
1961
  msgstr ""
1962
 
1963
+ #: premium/admin/admin.php:244 premium/public/public.php:108
1964
  msgid "Generating images..."
1965
  msgstr ""
1966
 
1967
+ #: premium/admin/admin.php:245 premium/public/public.php:109
1968
  msgid ""
1969
  "No video found. Add a video in the \"MP4\" video field to capture an image."
1970
  msgstr ""
1971
 
1972
+ #: premium/admin/admin.php:246 premium/public/public.php:110
1973
  msgid "Invalid video file."
1974
  msgstr ""
1975
 
1976
+ #: premium/admin/admin.php:247 premium/public/public.php:111
1977
  msgid ""
1978
  "Sorry, your video file server doesn't give us permission to generate an "
1979
  "image from the video."
1980
  msgstr ""
1981
 
1982
+ #: premium/admin/admin.php:262 premium/admin/user.php:291
1983
  msgid "User Dashboard"
1984
  msgstr ""
1985
 
1986
+ #: premium/admin/admin.php:267 premium/admin/user.php:299
1987
  msgid "Video Form"
1988
  msgstr ""
1989
 
2420
  msgstr ""
2421
 
2422
  #: premium/admin/partials/automations-video-settings.php:127
2423
+ #: premium/admin/user.php:150 premium/admin/user.php:161
2424
  msgid "Pending"
2425
  msgstr ""
2426
 
2427
  #: premium/admin/partials/automations-video-settings.php:128
2428
+ #: premium/admin/user.php:149 premium/admin/user.php:160
2429
+ #: premium/public/templates/video-form.php:435
2430
  msgid "Publish"
2431
  msgstr ""
2432
 
2436
  "notified through email when an import occurs with the \"Pending\" status."
2437
  msgstr ""
2438
 
2439
+ #: premium/admin/partials/category-fields.php:18
2440
+ #: premium/admin/partials/category-fields.php:25
2441
+ msgid "Exclude in Video Form"
2442
+ msgstr ""
2443
+
2444
+ #: premium/admin/partials/category-fields.php:20
2445
+ #: premium/admin/partials/category-fields.php:30
2446
+ msgid "Exclude this category in the front-end video form."
2447
+ msgstr ""
2448
+
2449
  #: premium/admin/seo.php:41
2450
  msgid "SEO Settings"
2451
  msgstr ""
2623
  msgstr ""
2624
 
2625
  #: premium/admin/user.php:58
2626
+ msgid "Anti-Spam"
2627
  msgstr ""
2628
 
2629
  #: premium/admin/user.php:65
2630
+ msgid "User Account Settings"
2631
  msgstr ""
2632
 
2633
  #: premium/admin/user.php:72
2634
+ msgid "[Email Template] Video Pending Review"
2635
+ msgstr ""
2636
+
2637
+ #: premium/admin/user.php:79
2638
  msgid "[Email Template] Video Published"
2639
  msgstr ""
2640
 
2641
+ #: premium/admin/user.php:100
2642
  msgid "Assign Categories"
2643
  msgstr ""
2644
 
2645
+ #: premium/admin/user.php:101
2646
  msgid "Check this box to allow users to select categories for their videos"
2647
  msgstr ""
2648
 
2649
+ #: premium/admin/user.php:107
2650
  msgid "Assign Tags"
2651
  msgstr ""
2652
 
2653
+ #: premium/admin/user.php:108
2654
  msgid "Check this box to allow users to select tags for their videos"
2655
  msgstr ""
2656
 
2657
+ #: premium/admin/user.php:114
2658
  msgid "Allowed Source Types"
2659
  msgstr ""
2660
 
2661
+ #: premium/admin/user.php:122
2662
  msgid "Default Source Type"
2663
  msgstr ""
2664
 
2665
+ #: premium/admin/user.php:123
2666
  msgid "The default source type should be one of the \"Allowed Source Types\"."
2667
  msgstr ""
2668
 
2669
+ #: premium/admin/user.php:130
2670
  msgid "Allow File Uploads"
2671
  msgstr ""
2672
 
2673
+ #: premium/admin/user.php:137
2674
  msgid "Maximum Upload Size"
2675
  msgstr ""
2676
 
2677
+ #: premium/admin/user.php:138
2678
  msgid ""
2679
  "In bytes. Enter the maximum file size the users can upload in your website. "
2680
  "Leave this field empty to allow the maximium possible file size."
2681
  msgstr ""
2682
 
2683
+ #: premium/admin/user.php:145
2684
  msgid "Default New Video Status"
2685
  msgstr ""
2686
 
2687
+ #: premium/admin/user.php:156
2688
  msgid "Edit Video Status"
2689
  msgstr ""
2690
 
2691
+ #: premium/admin/user.php:167
2692
  msgid "Terms and Conditions URL"
2693
  msgstr ""
2694
 
2695
+ #: premium/admin/user.php:168
2696
  msgid "Optional. Enter your Terms and Conditions Page URL."
2697
  msgstr ""
2698
 
2699
+ #: premium/admin/user.php:177
2700
+ msgid "Honeypot Protection"
2701
+ msgstr ""
2702
+
2703
+ #: premium/admin/user.php:178
2704
+ msgid ""
2705
+ "Check this to block spam submissions using our honeypot anti-spam technique. "
2706
+ "No Captcha or extra verification field hassle to the users. Only lets spam "
2707
+ "bots suffer using our anti-spam filter."
2708
+ msgstr ""
2709
+
2710
+ #: premium/admin/user.php:184
2711
+ msgid "Honeypot Field Name"
2712
+ msgstr ""
2713
+
2714
+ #: premium/admin/user.php:185
2715
+ msgid ""
2716
+ "Unique honeypot field name generated for each WordPress installation, so it "
2717
+ "is hard for spam bots to make one fit for all solutions to bypass the "
2718
+ "honeypot anti-spam test. Use this field to change the field named auto-"
2719
+ "generated by the plugin. Changing this field name often is a good idea. "
2720
+ "Should definitely do if you are getting spam."
2721
+ msgstr ""
2722
+
2723
+ #: premium/admin/user.php:191
2724
+ msgid "Timetrap Protection"
2725
+ msgstr ""
2726
+
2727
+ #: premium/admin/user.php:192
2728
+ msgid "Check this to enable a time-based spam blocker"
2729
+ msgstr ""
2730
+
2731
+ #: premium/admin/user.php:198
2732
+ msgid "Timetrap Minimum Time in Seconds"
2733
+ msgstr ""
2734
+
2735
+ #: premium/admin/user.php:199
2736
+ msgid ""
2737
+ "Minimum time needed to complete the form. Forms submitted in under 3 seconds "
2738
+ "of the page loading are typically spam. Use this field to have form "
2739
+ "timeouts, and prevent instant posting. "
2740
+ msgstr ""
2741
+
2742
+ #: premium/admin/user.php:208
2743
  msgid "Custom Login URL"
2744
  msgstr ""
2745
 
2746
+ #: premium/admin/user.php:209
2747
  msgid ""
2748
  "Optional. Enter your custom Login Page URL. Leave this field empty to use "
2749
  "the default WordPress Login form."
2750
  msgstr ""
2751
 
2752
+ #: premium/admin/user.php:215
2753
  msgid "Custom Registration URL"
2754
  msgstr ""
2755
 
2756
+ #: premium/admin/user.php:216
2757
  msgid ""
2758
  "Optional. Enter your custom Registration Page URL. Leave this field empty to "
2759
  "use the default WordPress Registration URL."
2760
  msgstr ""
2761
 
2762
+ #: premium/admin/user.php:222
2763
  msgid "Custom Forgot Password URL"
2764
  msgstr ""
2765
 
2766
+ #: premium/admin/user.php:223
2767
  msgid ""
2768
  "Optional. Enter your custom Forgot Password Page URL. Leave this field empty "
2769
  "to use the default WordPress Forgot Password URL."
2770
  msgstr ""
2771
 
2772
+ #: premium/admin/user.php:232 premium/admin/user.php:262
2773
  msgid "Email Subject"
2774
  msgstr ""
2775
 
2776
+ #: premium/admin/user.php:239 premium/admin/user.php:269
2777
  msgid "Email Body"
2778
  msgstr ""
2779
 
2780
+ #: premium/admin/user.php:242 premium/admin/user.php:272
2781
  msgid "Supported Placeholders:"
2782
  msgstr ""
2783
 
2784
+ #: premium/admin/user.php:243 premium/admin/user.php:273
2785
  msgid "The video owner's display name on the site"
2786
  msgstr ""
2787
 
2788
+ #: premium/admin/user.php:244 premium/admin/user.php:274
2789
  msgid "The video owner's user name on the site"
2790
  msgstr ""
2791
 
2792
+ #: premium/admin/user.php:245 premium/admin/user.php:275
2793
  msgid "Your site name"
2794
  msgstr ""
2795
 
2796
+ #: premium/admin/user.php:246 premium/admin/user.php:276
2797
  msgid "Your site name with link"
2798
  msgstr ""
2799
 
2800
+ #: premium/admin/user.php:247 premium/admin/user.php:277
2801
  msgid "Your site url with link"
2802
  msgstr ""
2803
 
2804
+ #: premium/admin/user.php:248 premium/admin/user.php:278
2805
  msgid "Video's title"
2806
  msgstr ""
2807
 
2808
+ #: premium/admin/user.php:249 premium/admin/user.php:279
2809
  msgid "Video's title with link"
2810
  msgstr ""
2811
 
2812
+ #: premium/admin/user.php:250 premium/admin/user.php:280
2813
  msgid "Video's url with link"
2814
  msgstr ""
2815
 
2816
+ #: premium/admin/user.php:251 premium/admin/user.php:281
2817
  msgid "Current date"
2818
  msgstr ""
2819
 
2820
+ #: premium/admin/user.php:252 premium/admin/user.php:282
2821
  msgid "Current time"
2822
  msgstr ""
2823
 
2824
+ #: premium/admin/user.php:292
2825
  msgid ""
2826
  "This is the page where the users can manage (add, edit or delete) their "
2827
  "videos in front-end. The [aiovg_user_dashboard] short code must be on this "
2828
  "page."
2829
  msgstr ""
2830
 
2831
+ #: premium/admin/user.php:300
2832
  msgid ""
2833
  "This is the form page where the users can add their videos in front-end. The "
2834
  "[aiovg_video_form] short code must be on this page."
2836
 
2837
  #: premium/includes/functions.php:92
2838
  #: premium/public/templates/user-dashboard.php:58
2839
+ #: public/templates/search-form-template-horizontal.php:98
2840
+ #: public/templates/search-form-template-horizontal.php:127
2841
+ #: public/templates/search-form-template-vertical.php:121
2842
  msgid "Search"
2843
  msgstr ""
2844
 
2946
  msgid "Popup"
2947
  msgstr ""
2948
 
2949
+ #: premium/public/public.php:99
2950
  msgid "This is a required field."
2951
  msgstr ""
2952
 
2953
+ #: premium/public/public.php:100 premium/public/user.php:345
2954
+ #: premium/public/user.php:350
2955
  msgid "Invalid file format."
2956
  msgstr ""
2957
 
2958
+ #: premium/public/public.php:101
2959
  msgid "Loaded"
2960
  msgstr ""
2961
 
2962
+ #: premium/public/public.php:102
2963
  msgid "processing..."
2964
  msgstr ""
2965
 
2966
+ #: premium/public/public.php:103
2967
  msgid "Please wait until the upload is complete"
2968
  msgstr ""
2969
 
2970
+ #: premium/public/public.php:104
2971
  msgid "Unknown error."
2972
  msgstr ""
2973
 
3044
  msgstr ""
3045
 
3046
  #: premium/public/templates/user-dashboard.php:35
3047
+ #: premium/public/templates/video-form.php:29
3048
  msgid "Saved"
3049
  msgstr ""
3050
 
3085
  msgid "Are you SURE you want to delete this video?"
3086
  msgstr ""
3087
 
3088
+ #: premium/public/templates/video-form.php:17
3089
+ msgid ""
3090
+ "Aborted due to spam detection. Sorry, if you are a real user and please try "
3091
+ "again. If the issue repeats, kindly write to the site administrator."
3092
+ msgstr ""
3093
+
3094
  #: premium/public/templates/video-form.php:23
3095
+ msgid ""
3096
+ "The form submission is too fast than we expected. So, our system has aborted "
3097
+ "the action considering a spam. Sorry, if you are a real user and please try "
3098
+ "again. If the issue repeats, kindly write to the site administrator."
3099
+ msgstr ""
3100
+
3101
+ #: premium/public/templates/video-form.php:35
3102
  #, php-format
3103
  msgid "Fields marked with an %s are required"
3104
  msgstr ""
3105
 
3106
+ #: premium/public/templates/video-form.php:37
3107
  #, php-format
3108
  msgid "Maximum upload file size: %s"
3109
  msgstr ""
3110
 
3111
+ #: premium/public/templates/video-form.php:50
3112
  msgid "Enter your video title here"
3113
  msgstr ""
3114
 
3115
+ #: premium/public/templates/video-form.php:152
3116
+ #: premium/public/templates/video-form.php:181
3117
+ #: premium/public/templates/video-form.php:211
3118
+ #: premium/public/templates/video-form.php:320
3119
  msgid "cancel"
3120
  msgstr ""
3121
 
3122
+ #: premium/public/templates/video-form.php:157
3123
+ #: premium/public/templates/video-form.php:186
3124
+ #: premium/public/templates/video-form.php:216
3125
+ #: premium/public/templates/video-form.php:325
3126
  msgid "Enter your direct file URL here"
3127
  msgstr ""
3128
 
3129
+ #: premium/public/templates/video-form.php:341
3130
  msgid "Enter your video description here"
3131
  msgstr ""
3132
 
3133
+ #: premium/public/templates/video-form.php:353 widgets/forms/video.php:24
3134
+ msgid "Start typing for suggestions"
3135
+ msgstr ""
3136
+
3137
+ #: premium/public/templates/video-form.php:419
3138
  #, php-format
3139
  msgid ""
3140
  "I agree to the <a href=\"%s\" target=\"_blank\">terms and conditions</a>"
3141
  msgstr ""
3142
 
3143
+ #: premium/public/templates/video-form.php:436 premium/public/user.php:548
3144
  msgid "Save Draft"
3145
  msgstr ""
3146
 
3147
+ #: premium/public/templates/video-form.php:438
3148
  msgid "Save Changes"
3149
  msgstr ""
3150
 
3151
+ #: premium/public/templates/video-form.php:442
3152
  msgid "Cancel"
3153
  msgstr ""
3154
 
3162
  msgid "%d video(s) found"
3163
  msgstr ""
3164
 
3165
+ #: premium/public/user.php:177 premium/public/user.php:191
3166
  msgid "You do not have sufficient permissions to access this page."
3167
  msgstr ""
3168
 
3169
+ #: premium/public/user.php:327 premium/public/user.php:340
3170
  msgid "You do not have permission to upload files."
3171
  msgstr ""
3172
 
3173
+ #: premium/public/user.php:356
3174
  msgid "Sorry, this file type is not permitted for security reasons."
3175
  msgstr ""
3176
 
3177
+ #: premium/public/user.php:366
3178
  msgid "Sorry, this file size is not allowed."
3179
  msgstr ""
3180
 
3181
+ #: premium/public/user.php:390
3182
  msgid "File is empty. Please upload something more substantial."
3183
  msgstr ""
3184
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3185
  #: premium/vendor/videojs-plugins/videojs-quality-menu/videojs-quality-menu.min.js:4
3186
  msgid "qualityMenu"
3187
  msgstr ""
3210
  "Publisher Tag (GPT)</a> in the <a href=\"%s\">plugin settings</a>."
3211
  msgstr ""
3212
 
3213
+ #: public/public.php:241
3214
+ msgid "No tags found."
3215
+ msgstr ""
3216
+
3217
+ #: public/public.php:968
3218
  #, php-format
3219
  msgid "Showing results for \"%s\""
3220
  msgstr ""
3221
 
3222
+ #: public/search.php:68 widgets/search.php:84
3223
  msgid "Search form disabled."
3224
  msgstr ""
3225
 
3238
  msgid "Enter your Keyword"
3239
  msgstr ""
3240
 
3241
+ #: public/templates/search-form-template-horizontal.php:32
3242
+ #: public/templates/search-form-template-vertical.php:32
3243
  msgid "Select a Category"
3244
  msgstr ""
3245
 
3270
  msgid "Sub Categories"
3271
  msgstr ""
3272
 
3273
+ #: vendor/videojs/video.min.js:12
3274
+ msgid "function"
3275
  msgstr ""
3276
 
3277
+ #: widgets/forms/categories.php:129
3278
+ msgid "Show More Button"
3279
  msgstr ""
3280
 
3281
  #: widgets/forms/video.php:41
3283
  msgstr ""
3284
 
3285
  #: widgets/video.php:210
3286
+ msgid "No videos found. Click this to display the last added video."
3287
  msgstr ""
3288
 
3289
  #: widgets/videos.php:66
public/assets/css/public.css CHANGED
@@ -166,6 +166,10 @@
166
  color: #2b333f;
167
  }
168
 
 
 
 
 
169
  .aiovg-player .video-js .vjs-big-play-button {
170
  width: 1.5em;
171
  height: 1.5em;
@@ -526,7 +530,51 @@
526
  * Tags
527
  *
528
  *--------------------------------------------------------------------------------------------*/
529
- .aiovg .aiovg-tags-list {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
530
  margin: 3px -3px;
531
  }
532
 
166
  color: #2b333f;
167
  }
168
 
169
+ .aiovg-player .vjs-youtube-mobile .vjs-poster {
170
+ display: none;
171
+ }
172
+
173
  .aiovg-player .video-js .vjs-big-play-button {
174
  width: 1.5em;
175
  height: 1.5em;
530
  * Tags
531
  *
532
  *--------------------------------------------------------------------------------------------*/
533
+ .aiovg .aiovg-autocomplete {
534
+ position: relative;
535
+ }
536
+
537
+ .aiovg .aiovg-autocomplete-items {
538
+ position: absolute;
539
+ max-height: 180px;
540
+ top: 100%;
541
+ left: 0;
542
+ right: 0;
543
+ border: 1px solid #d4d4d4;
544
+ border-top: none;
545
+ z-index: 999;
546
+ overflow-x: hidden;
547
+ overflow-y: auto;
548
+ }
549
+
550
+ .aiovg .aiovg-autocomplete-items div {
551
+ padding: 10px;
552
+ background-color: #fff;
553
+ border-bottom: 1px solid #d4d4d4;
554
+ line-height: 1;
555
+ cursor: pointer;
556
+ }
557
+
558
+ .aiovg .aiovg-autocomplete-items div:hover {
559
+ background-color: #e9e9e9;
560
+ }
561
+
562
+ .aiovg .aiovg-autocomplete-items div:last-child {
563
+ border-bottom: none;
564
+ }
565
+
566
+ .aiovg .aiovg-autocomplete-items div.aiovg-autocomplete-active {
567
+ background-color: DodgerBlue !important;
568
+ color: #ffffff;
569
+ }
570
+
571
+ .aiovg .aiovg-autocomplete-items div.aiovg-autocomplete-disabled {
572
+ pointer-events: none;
573
+ background-color: #f9f9f9;
574
+ color: #cccccc;
575
+ }
576
+
577
+ .aiovg .aiovg-autocomplete-tags {
578
  margin: 3px -3px;
579
  }
580
 
public/assets/js/public.js CHANGED
@@ -1,6 +1,184 @@
1
  (function( $ ) {
2
  'use strict';
3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  /**
5
  * Called when the page has loaded.
6
  *
@@ -8,35 +186,51 @@
8
  */
9
  $(function() {
10
 
11
- // Tags
12
- $( '.aiovg-field-tag select' ).on( 'change', function() {
13
- var value = parseInt( $( this ).val() );
14
- var $selected = $( this ).find( 'option:selected' );
15
 
16
- if ( value != 0 ) {
17
- var $tags = $( this ).closest( 'form' ).find( '.aiovg-tags-list' );
 
 
 
 
18
 
19
- var html = '<span class="aiovg-tag-item" data-id="' + value + '">';
20
- html += '<span class="aiovg-tag-item-name">' + $selected.text() + '</span>';
21
- html += '<span class="aiovg-tag-item-close">&times;</span>';
22
- html += '<input type="hidden" name="ta[]" value="' + value + '" />';
23
- html += '</span>';
24
-
25
- $tags.append( html );
26
  }
27
 
28
- $selected.prop( 'disabled', true );
29
- $( this ).val( '' );
30
- });
31
 
32
- $( document ).on( 'click', '.aiovg-tag-item-close', function() {
33
- var $elem = $( this ).parent();
34
- var value = parseInt( $elem.data( 'id' ) );
 
 
 
 
 
 
 
 
 
 
 
 
35
 
36
- $( this ).closest( 'form' ).find( '.aiovg-field-tag select' ).children( 'option[value=' + value + ']' ).prop( 'disabled', false );
37
- $elem.remove();
38
  });
39
 
 
 
 
 
40
  // Pagination
41
  $( document ).on( 'click', '.aiovg-pagination-ajax a.page-numbers', function( e ) {
42
  e.preventDefault();
1
  (function( $ ) {
2
  'use strict';
3
 
4
+ /**
5
+ * Initialize Autocomplete.
6
+ *
7
+ * @since 2.5.6
8
+ */
9
+ function autocomplete( uid, source, callback ) {
10
+ var inp = document.getElementById( 'aiovg-autocomplete-input-' + uid );
11
+ var currentFocus;
12
+
13
+ // Execute a function presses a key on the keyboard
14
+ inp.addEventListener( 'keydown', function( e ) {
15
+ var x = document.getElementById( 'aiovg-autocomplete-items-' + uid );
16
+
17
+ if ( x ) {
18
+ x = x.getElementsByTagName( 'div' );
19
+ }
20
+
21
+ if ( e.keyCode == 40 ) {
22
+ // If the arrow DOWN key is pressed,
23
+ // increase the currentFocus variable
24
+ currentFocus++;
25
+ // and and make the current item more visible
26
+ addActive( x );
27
+ } else if ( e.keyCode == 38 ) {
28
+ // If the arrow UP key is pressed,
29
+ // decrease the currentFocus variable
30
+ currentFocus--;
31
+ // and and make the current item more visible
32
+ addActive( x );
33
+ } else if ( e.keyCode == 13 ) {
34
+ // If the ENTER key is pressed, prevent the form from being submitted,
35
+ e.preventDefault();
36
+ if ( currentFocus > -1 ) {
37
+ // and simulate a click on the 'active' item
38
+ if ( x ) {
39
+ x[ currentFocus ].click();
40
+ }
41
+ }
42
+ }
43
+ });
44
+
45
+ function addActive( x ) {
46
+ // A function to classify an item as 'active'
47
+ if ( ! x ) {
48
+ return false;
49
+ }
50
+
51
+ // Start by removing the 'aiovg-autocomplete-active' class on all items
52
+ removeActive( x );
53
+
54
+ if ( currentFocus >= x.length ) {
55
+ currentFocus = 0;
56
+ }
57
+
58
+ if ( currentFocus < 0 ) {
59
+ currentFocus = ( x.length - 1 );
60
+ }
61
+
62
+ // Add class 'aiovg-autocomplete-active'
63
+ x[ currentFocus ].classList.add( 'aiovg-autocomplete-active' );
64
+ }
65
+
66
+ function removeActive( x ) {
67
+ // A function to remove the 'aiovg-autocomplete-active' class from all autocomplete items
68
+ for ( var i = 0; i < x.length; i++ ) {
69
+ x[ i ].classList.remove( 'aiovg-autocomplete-active' );
70
+ }
71
+ }
72
+
73
+ function showLists( elem ) {
74
+ var a,
75
+ b,
76
+ i,
77
+ t = document.getElementById( 'aiovg-autocomplete-tags-' + uid ),
78
+ val = elem.value;
79
+
80
+ // Close any already open lists of autocompleted values
81
+ closeAllLists();
82
+
83
+ currentFocus = -1;
84
+
85
+ // Create a DIV element that will contain the items (values)
86
+ a = document.createElement( 'DIV' );
87
+ a.setAttribute( 'id', 'aiovg-autocomplete-items-' + uid );
88
+ a.setAttribute( 'class', 'aiovg-autocomplete-items' );
89
+
90
+ // Append the DIV element as a child of the autocomplete container
91
+ elem.parentNode.appendChild( a );
92
+
93
+ // For each item in the array...
94
+ for ( i = 0; i < source.length; i++ ) {
95
+ var value = source[ i ].value;
96
+ var label = source[ i ].label;
97
+
98
+ // Check if the item matches the text field value
99
+ var isValid = false;
100
+
101
+ if ( ! val ) {
102
+ isValid = true;
103
+ } else if ( label.toUpperCase().indexOf( val.toUpperCase() ) !== -1 ) {
104
+ isValid = true;
105
+ }
106
+
107
+ if ( ! b && ! isValid && i == source.length - 1 ) {
108
+ value = 0;
109
+ label = aiovg_public.i18n.no_tags_found;
110
+
111
+ isValid = true;
112
+ }
113
+
114
+ if ( isValid ) {
115
+ // Create a DIV element for each matching element
116
+ b = document.createElement( 'DIV' );
117
+ b.setAttribute( 'data-value', value );
118
+ b.setAttribute( 'data-label', label );
119
+ b.innerHTML += label;
120
+
121
+ var isSelected = t.getElementsByClassName( 'aiovg-tag-item-' + value );
122
+ if ( isSelected.length > 0 ) {
123
+ b.setAttribute( 'class', 'aiovg-autocomplete-disabled' );
124
+ }
125
+
126
+ // Execute a function when someone clicks on the item value (DIV element)
127
+ b.addEventListener( 'click', function( e ) {
128
+ inp.value = '';
129
+
130
+ // Insert the value for the autocomplete text field
131
+ callback( this.getAttribute( 'data-value' ), this.getAttribute( 'data-label' ) );
132
+
133
+ // Close the list of autocompleted values,
134
+ // or any other open lists of autocompleted values
135
+ closeAllLists();
136
+ });
137
+
138
+ a.appendChild( b );
139
+ }
140
+ }
141
+ }
142
+
143
+ function closeAllLists( elem ) {
144
+ // Close all autocomplete lists in the document,
145
+ // except the one passed as an argument
146
+ var x = document.getElementsByClassName( 'aiovg-autocomplete-items' );
147
+
148
+ var id = 0;
149
+ if ( elem && elem.id ) {
150
+ id = elem.id.replace( 'aiovg-autocomplete-input-', '' );
151
+ }
152
+
153
+ for ( var i = 0; i < x.length; i++ ) {
154
+ if ( x[ i ].getAttribute( 'id' ) != ( 'aiovg-autocomplete-items-' + id ) ) {
155
+ x[ i ].parentNode.removeChild( x[ i ] );
156
+ }
157
+ }
158
+ }
159
+
160
+ // Execute a function when someone focus in the text field
161
+ inp.addEventListener( 'focus', function( e ) {
162
+ if ( e.target.value == '' ) {
163
+ showLists( e.target );
164
+ }
165
+ });
166
+
167
+ // Execute a function when someone writes in the text field
168
+ inp.addEventListener( 'input', function( e ) {
169
+ showLists( e.target );
170
+ });
171
+
172
+ // Execute a function when someone clicks in the document
173
+ if ( ! aiovg_public.hasOwnProperty( 'autocomplete' ) ) {
174
+ aiovg_public.autocomplete = true;
175
+
176
+ document.addEventListener( 'click', function( e ) {
177
+ closeAllLists( e.target );
178
+ });
179
+ }
180
+ }
181
+
182
  /**
183
  * Called when the page has loaded.
184
  *
186
  */
187
  $(function() {
188
 
189
+ // Common: Tags multiple select
190
+ $( '.aiovg-autocomplete' ).each(function() {
191
+ var uid = $( this ).data( 'uid' );
192
+ var source = [];
193
 
194
+ $( 'option', '#aiovg-autocomplete-select-' + uid ).each(function() {
195
+ source.push({
196
+ value: $( this ).val(),
197
+ label: $( this ).text()
198
+ });
199
+ });
200
 
201
+ if ( source.length == 0 ) {
202
+ source.push({
203
+ value: 0,
204
+ label: aiovg_public.i18n.no_tags_found
205
+ });
 
 
206
  }
207
 
208
+ var callback = function( value, label ) {
209
+ value = parseInt( value );
 
210
 
211
+ if ( value != 0 ) {
212
+ var $tags = $( '#aiovg-autocomplete-tags-' + uid );
213
+ var length = $tags.find( '.aiovg-tag-item-' + value ).length;
214
+
215
+ if ( length == 0 ) {
216
+ var html = '<span class="aiovg-tag-item aiovg-tag-item-' + value + '">';
217
+ html += '<span class="aiovg-tag-item-name">' + label + '</span>';
218
+ html += '<span class="aiovg-tag-item-close">&times;</span>';
219
+ html += '<input type="hidden" name="ta[]" value="' + value + '" />';
220
+ html += '</span>';
221
+
222
+ $tags.append( html );
223
+ }
224
+ }
225
+ }
226
 
227
+ autocomplete( uid, source, callback );
 
228
  });
229
 
230
+ $( document ).on( 'click', '.aiovg-tag-item-close', function() {
231
+ $( this ).parent().remove();
232
+ });
233
+
234
  // Pagination
235
  $( document ).on( 'click', '.aiovg-pagination-ajax a.page-numbers', function( e ) {
236
  e.preventDefault();
public/assets/videojs-plugins/dailymotion/videojs-dailymotion.min.js CHANGED
@@ -1,2 +1,2 @@
1
  /*! @name videojs-dailymotion @version 1.2.0 @license Apache-2.0 */
2
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("video.js")):"function"==typeof define&&define.amd?define(["video.js"],t):(e=e||self).videojsDailymotion=t(e.videojs)}(this,function(e){"use strict";var t,i,o,a,n,r,s,l,d=(e=e&&e.hasOwnProperty("default")?e.default:e).browser.IS_IOS||e.browser.IS_NATIVE_ANDROID,u=e.getComponent("Tech"),c=function(t){var i,o;function a(e,i){var o;return(o=t.call(this,e,i)||this).dailymotionState={state:"unstarted"},o.setPoster(e.poster),o.setSrc(o.options_.source),o.setTimeout(function(){this.el_&&(this.el_.parentNode.className+=" vjs-dailymotion",d&&(this.el_.parentNode.className+=" vjs-dailymotion-mobile"),a.isApiReady?this.initDailymotionPlayer():a.apiReadyQueue.push(this))}.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(o))),o}o=t,(i=a).prototype=Object.create(o.prototype),i.prototype.constructor=i,i.__proto__=o;var n=a.prototype;return n.dispose=function(){if(this.dailymotionPlayer)this.dailymotionPlayer.destroy&&this.dailymotionPlayer.destroy(this.options_.techId);else{var e=a.apiReadyQueue.indexOf(this);-1!==e&&a.apiReadyQueue.splice(e,1)}this.dailymotionPlayer=null,this.el_.parentNode.className=this.el_.parentNode.className.replace(" vjs-dailymotion","").replace(" vjs-dailymotion-mobile",""),this.el_.parentNode.removeChild(this.el_),t.prototype.dispose.call(this)},n.createEl=function(){var e=document.createElement("div");e.setAttribute("id",this.options_.techId),e.setAttribute("style","position:absolute;top:0;left:0;width:100%;height:100%"),e.setAttribute("class","vjs-tech");var t=document.createElement("div");if(t.appendChild(e),!d&&!this.options_.dailymotionControls){var i=document.createElement("div");i.setAttribute("class","vjs-iframe-blocker"),i.setAttribute("style","position:absolute;top:0;left:0;width:100%;height:100%"),t.appendChild(i)}return t},n.initDailymotionPlayer=function(){var e={controls:!1,autoplay:!1,mute:!1,"ui-logo":!1,"ui-start-screen-info":!1,"sharing-enable":!1,"queue-autoplay-next":!1,"queue-enable":!1};if(void 0!==this.options_.dailymotionControls&&(e.controls=!!this.options_.dailymotionControls),void 0!==this.options_.muted&&(e.mute=!!this.options_.muted),void 0!==this.options_.loop&&(e.loop=!!this.options_.loop),void 0!==this.options_.start&&(e.start=this.options_.start),void 0!==this.options_.customVars){var t=this.options_.customVars;Object.keys(t).forEach(function(i){e[i]=t[i]})}this.activeVideoId=this.url?this.url.videoId:null,this.dailymotionPlayer=new DM.player(this.options_.techId,{width:"100%",height:"100%",video:this.activeVideoId,params:e}),this.trigger("loadstart");for(var i=["apiready","play","playing","pause","end","waiting","progress","timeupdate","seeking","seeked","durationchange","volumechange","error"],o=this.onPlayerStateChange.bind(this),a=0;a<i.length;a++)this.dailymotionPlayer.addEventListener(i[a],o)},n.onPlayerReady=function(){this.isReady_=!0,this.triggerReady(),this.trigger("loadedmetadata"),this.trigger("loadeddata"),this.trigger("canplay"),this.trigger("canplaythrough"),this.trigger("volumechange"),this.playOnReady&&this.play()},n.onPlayerStateChange=function(e){var t=e.type;switch(this.lastState=t,t){case"apiready":this.dailymotionState.state="ready",this.onPlayerReady();break;case"play":this.dailymotionState.state="play",this.trigger("play");break;case"playing":this.dailymotionState.state="playing",this.trigger("playing");break;case"pause":this.dailymotionState.state="paused",this.trigger("pause");break;case"end":this.dailymotionState.state="ended",this.trigger("ended");break;case"waiting":this.dailymotionState.state="buffering",this.trigger("waiting");break;case"progress":this.trigger("progress");break;case"timeupdate":this.trigger("timeupdate");break;case"seeking":this.isSeeking=!0,this.trigger("seeking");break;case"seeked":this.isSeeking=!1,this.trigger("seeked");break;case"durationchange":this.trigger("durationchange");break;case"volumechange":this.trigger("volumechange");break;case"error":console.log(e)}},n.error=function(){return this.dailymotionPlayer&&this.dailymotionPlayer.error},n.poster=function(){return d?null:this.poster_},n.setPoster=function(e){this.poster_=e},n.loadVideoById_=function(e){this.dailymotionPlayer&&this.dailymotionPlayer.load(e)},n.cueVideoById_=function(e){this.dailymotionPlayer&&this.dailymotionPlayer.load(e)},n.src=function(e){return e&&this.setSrc({src:e}),this.source},n.setSrc=function(e){e&&e.src&&(this.source=e,this.url=a.parseUrl(e.src),this.options_.autoplay&&!d?this.isReady_?this.play():(this.trigger("waiting"),this.playOnReady=!0):this.activeVideoId!==this.url.videoId&&(this.isReady_?(this.cueVideoById_(this.url.videoId),this.activeVideoId=this.url.videoId):this.cueOnReady=!0))},n.autoplay=function(){return this.options_.autoplay},n.setAutoplay=function(e){this.options_.autoplay=e},n.loop=function(){return this.options_.loop},n.setLoop=function(e){this.options_.loop=e},n.play=function(){this.url&&this.url.videoId&&(this.isReady_?this.activeVideoId===this.url.videoId?this.dailymotionPlayer.play():(this.loadVideoById_(this.url.videoId),this.activeVideoId=this.url.videoId):(this.trigger("waiting"),this.playOnReady=!0))},n.pause=function(){this.dailymotionPlayer&&this.dailymotionPlayer.pause()},n.paused=function(){return this.dailymotionPlayer&&this.dailymotionPlayer.paused},n.currentTime=function(){return this.dailymotionPlayer?this.dailymotionPlayer.currentTime:0},n.setCurrentTime=function(e){this.dailymotionPlayer&&this.dailymotionPlayer.seek(e)},n.seeking=function(){return this.isSeeking},n.seekable=function(){return this.dailymotionPlayer?e.createTimeRange(0,this.dailymotionPlayer.duration):e.createTimeRange()},n.playbackRate=function(){return 1},n.setPlaybackRate=function(e){},n.duration=function(){return this.dailymotionPlayer?this.dailymotionPlayer.duration:0},n.currentSrc=function(){return this.source&&this.source.src},n.ended=function(){return this.dailymotionPlayer&&this.dailymotionPlayer.ended},n.volume=function(){return this.dailymotionPlayer?this.dailymotionPlayer.volume:1},n.setVolume=function(e){this.dailymotionPlayer&&this.dailymotionPlayer.setVolume(e)},n.muted=function(){return!!this.dailymotionPlayer&&this.dailymotionPlayer.muted},n.setMuted=function(e){this.dailymotionPlayer&&this.dailymotionPlayer.setMuted(e)},n.buffered=function(){return this.dailymotionPlayer?e.createTimeRange(0,this.dailymotionPlayer.bufferedTime):e.createTimeRange()},n.supportsFullScreen=function(){return document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled},n.preload=function(){},n.load=function(){},n.reset=function(){},n.networkState=function(){if(!this.dailymotionPlayer)return 0;switch(this.dailymotionState.state){case"unstarted":return 0;case"buffering":return 2;default:return 1}},n.readyState=function(){if(!this.dailymotionPlayer)return 0;switch(this.dailymotionState.state){case"unstarted":return 0;case"ready":return 1;case"buffering":return 2;default:return 4}},a}(u);return c.prototype.featuresTimeupdateEvents=!0,c.isSupported=function(){return!0},c.parseUrl=function(e){var t={videoId:null},i=e.match(/^.+dailymotion.com\/((video|hub)\/([^_]+))?[^#]*(#video=([^_&]+))?/);return i&&(t.videoId=i[5]||i[3]),t},u.withSourceHandlers(c),c.nativeSourceHandler={},c.nativeSourceHandler.canPlayType=function(e){return"video/dailymotion"===e?"maybe":""},c.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return c.nativeSourceHandler.canPlayType(e.type);if(e.src){var i=/dailymotion.com/.test(e.src)?"video/dailymotion":"";return c.nativeSourceHandler.canPlayType(i)}return""},c.nativeSourceHandler.handleSource=function(e,t,i){t.setSrc(e.src)},c.nativeSourceHandler.dispose=function(){},c.registerSourceHandler(c.nativeSourceHandler),c.apiReadyQueue=[],"undefined"!=typeof document&&(a="https://api.dmcdn.net/all.js",n=function(){DM.init({apiKey:null,status:!0,cookie:!0}),c.isApiReady=!0;for(var e=0;e<c.apiReadyQueue.length;++e)c.apiReadyQueue[e].initDailymotionPlayer()},r=!1,s=document.createElement("script"),(l=document.getElementsByTagName("script")[0]).parentNode.insertBefore(s,l),s.onload=function(){r||(r=!0,n())},s.onreadystatechange=function(){r||"complete"!==this.readyState&&"loaded"!==this.readyState||(r=!0,n())},s.src=a,t=".vjs-dailymotion iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }.vjs-dailymotion .vjs-iframe-blocker { display: none; }.vjs-dailymotion.vjs-has-started .vjs-iframe-blocker { display: block; }.vjs-dailymotion .vjs-poster { background-size: cover; }.vjs-dailymotion-mobile .vjs-big-play-button { display: none; }",i=document.head||document.getElementsByTagName("head")[0],(o=document.createElement("style")).type="text/css",o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t)),i.appendChild(o)),c.VERSION="1.2.0",u.registerTech("Dailymotion",c),c});
1
  /*! @name videojs-dailymotion @version 1.2.0 @license Apache-2.0 */
2
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("video.js")):"function"==typeof define&&define.amd?define(["video.js"],t):(e=e||self).videojsDailymotion=t(e.videojs)}(this,function(e){"use strict";var t,i,o,a,n,r,s,l,d=(e=e&&e.hasOwnProperty("default")?e.default:e).browser.IS_IOS||e.browser.IS_NATIVE_ANDROID,u=e.getComponent("Tech"),c=function(t){var i,o;function a(e,i){var o;return(o=t.call(this,e,i)||this).dailymotionState={state:"unstarted"},o.setPoster(e.poster),o.setSrc(o.options_.source),o.setTimeout(function(){this.el_&&(this.el_.parentNode.className+=" vjs-dailymotion",d&&(this.el_.parentNode.className+=" vjs-dailymotion-mobile"),a.isApiReady?this.initDailymotionPlayer():a.apiReadyQueue.push(this))}.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(o))),o}o=t,(i=a).prototype=Object.create(o.prototype),i.prototype.constructor=i,i.__proto__=o;var n=a.prototype;return n.dispose=function(){if(this.dailymotionPlayer)this.dailymotionPlayer.destroy&&this.dailymotionPlayer.destroy(this.options_.techId);else{var e=a.apiReadyQueue.indexOf(this);-1!==e&&a.apiReadyQueue.splice(e,1)}this.dailymotionPlayer=null,this.el_.parentNode.className=this.el_.parentNode.className.replace(" vjs-dailymotion","").replace(" vjs-dailymotion-mobile",""),this.el_.parentNode.removeChild(this.el_),t.prototype.dispose.call(this)},n.createEl=function(){var e=document.createElement("div");e.setAttribute("id",this.options_.techId),e.setAttribute("style","position:absolute;top:0;left:0;width:100%;height:100%"),e.setAttribute("class","vjs-tech");var t=document.createElement("div");if(t.appendChild(e),!d&&!this.options_.dailymotionControls){var i=document.createElement("div");i.setAttribute("class","vjs-iframe-blocker"),i.setAttribute("style","position:absolute;top:0;left:0;width:100%;height:100%"),t.appendChild(i)}return t},n.initDailymotionPlayer=function(){var e={controls:!1,autoplay:!1,mute:!1,"ui-logo":!1,"ui-start-screen-info":!1,"sharing-enable":!1,"queue-autoplay-next":!1,"queue-enable":!1};if(void 0!==this.options_.dailymotionControls&&(e.controls=!!this.options_.dailymotionControls),void 0!==this.options_.muted&&(e.mute=!!this.options_.muted),void 0!==this.options_.loop&&(e.loop=!!this.options_.loop),void 0!==this.options_.start&&(e.start=this.options_.start),void 0!==this.options_.customVars){var t=this.options_.customVars;Object.keys(t).forEach(function(i){e[i]=t[i]})}this.activeVideoId=this.url?this.url.videoId:null,this.dailymotionPlayer=new DM.player(this.options_.techId,{width:"100%",height:"100%",video:this.activeVideoId,params:e}),this.trigger("loadstart");for(var i=["apiready","play","playing","pause","end","waiting","progress","timeupdate","seeking","seeked","durationchange","volumechange","error"],o=this.onPlayerStateChange.bind(this),a=0;a<i.length;a++)this.dailymotionPlayer.addEventListener(i[a],o)},n.onPlayerReady=function(){this.isReady_=!0,this.triggerReady(),this.trigger("loadedmetadata"),this.trigger("loadeddata"),this.trigger("canplay"),this.trigger("canplaythrough"),this.trigger("volumechange"),this.playOnReady&&this.play()},n.onPlayerStateChange=function(e){var t=e.type;switch(this.lastState=t,t){case"apiready":this.dailymotionState.state="ready",this.onPlayerReady();break;case"play":this.dailymotionState.state="play",this.trigger("play");break;case"playing":this.dailymotionState.state="playing",this.trigger("playing");break;case"pause":this.dailymotionState.state="paused",this.trigger("pause");break;case"end":this.dailymotionState.state="ended",this.trigger("ended");break;case"waiting":this.dailymotionState.state="buffering",this.trigger("waiting");break;case"progress":this.trigger("progress");break;case"timeupdate":this.trigger("timeupdate");break;case"seeking":this.isSeeking=!0,this.trigger("seeking");break;case"seeked":this.isSeeking=!1,this.trigger("seeked");break;case"durationchange":this.trigger("durationchange");break;case"volumechange":this.trigger("volumechange");break;case"error":console.log(e)}},n.error=function(){return this.dailymotionPlayer&&this.dailymotionPlayer.error},n.poster=function(){return d?null:this.poster_},n.setPoster=function(e){this.poster_=e},n.loadVideoById_=function(e){this.dailymotionPlayer&&this.dailymotionPlayer.load(e)},n.cueVideoById_=function(e){this.dailymotionPlayer&&this.dailymotionPlayer.load(e)},n.src=function(e){return e&&this.setSrc({src:e}),this.source},n.setSrc=function(e){e&&e.src&&(this.source=e,this.url=a.parseUrl(e.src),this.options_.autoplay&&!d?this.isReady_?this.play():(this.trigger("waiting"),this.playOnReady=!0):this.activeVideoId!==this.url.videoId&&(this.isReady_?(this.cueVideoById_(this.url.videoId),this.activeVideoId=this.url.videoId):this.cueOnReady=!0))},n.autoplay=function(){return this.options_.autoplay},n.setAutoplay=function(e){this.options_.autoplay=e},n.loop=function(){return this.options_.loop},n.setLoop=function(e){this.options_.loop=e},n.play=function(){this.url&&this.url.videoId&&(this.isReady_?this.activeVideoId===this.url.videoId?this.dailymotionPlayer.play():(this.loadVideoById_(this.url.videoId),this.activeVideoId=this.url.videoId):(this.trigger("waiting"),this.playOnReady=!0))},n.pause=function(){this.dailymotionPlayer&&this.dailymotionPlayer.pause()},n.paused=function(){return this.dailymotionPlayer&&this.dailymotionPlayer.paused},n.currentTime=function(){return this.dailymotionPlayer?this.dailymotionPlayer.currentTime:0},n.setCurrentTime=function(e){this.dailymotionPlayer&&this.dailymotionPlayer.seek(e)},n.seeking=function(){return this.isSeeking},n.seekable=function(){return this.dailymotionPlayer?e.createTimeRange(0,this.dailymotionPlayer.duration):e.createTimeRange()},n.playbackRate=function(){return 1},n.setPlaybackRate=function(e){},n.duration=function(){return this.dailymotionPlayer?this.dailymotionPlayer.duration:0},n.currentSrc=function(){return this.source&&this.source.src},n.ended=function(){return this.dailymotionPlayer&&this.dailymotionPlayer.ended},n.volume=function(){return this.dailymotionPlayer?this.dailymotionPlayer.volume:1},n.setVolume=function(e){this.dailymotionPlayer&&this.dailymotionPlayer.setVolume(e)},n.muted=function(){return!!this.dailymotionPlayer&&this.dailymotionPlayer.muted},n.setMuted=function(e){this.dailymotionPlayer&&this.dailymotionPlayer.setMuted(e)},n.buffered=function(){return this.dailymotionPlayer?e.createTimeRange(0,this.dailymotionPlayer.bufferedTime):e.createTimeRange()},n.supportsFullScreen=function(){return document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled},n.preload=function(){},n.load=function(){},n.reset=function(){},n.networkState=function(){if(!this.dailymotionPlayer)return 0;switch(this.dailymotionState.state){case"unstarted":return 0;case"buffering":return 2;default:return 1}},n.readyState=function(){if(!this.dailymotionPlayer)return 0;switch(this.dailymotionState.state){case"unstarted":return 0;case"ready":return 1;case"buffering":return 2;default:return 4}},a}(u);return c.prototype.featuresTimeupdateEvents=!0,c.isSupported=function(){return!0},c.parseUrl=function(e){var t={videoId:null},i=e.match(/^.+dailymotion.com\/((video|hub)\/([^_]+))?[^#]*(#video=([^_&]+))?/);return i&&(t.videoId=i[5]||i[3]),t},u.withSourceHandlers(c),c.nativeSourceHandler={},c.nativeSourceHandler.canPlayType=function(e){return"video/dailymotion"===e?"maybe":""},c.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return c.nativeSourceHandler.canPlayType(e.type);if(e.src){var i=/dailymotion.com/.test(e.src)?"video/dailymotion":"";return c.nativeSourceHandler.canPlayType(i)}return""},c.nativeSourceHandler.handleSource=function(e,t,i){t.setSrc(e.src)},c.nativeSourceHandler.dispose=function(){},c.registerSourceHandler(c.nativeSourceHandler),c.apiReadyQueue=[],"undefined"!=typeof document&&(a="https://api.dmcdn.net/all.js",n=function(){DM.init({apiKey:null,status:!0,cookie:!0}),c.isApiReady=!0;for(var e=0;e<c.apiReadyQueue.length;++e)c.apiReadyQueue[e].initDailymotionPlayer()},r=!1,s=document.createElement("script"),(l=document.getElementsByTagName("script")[0]).parentNode.insertBefore(s,l),s.onload=function(){r||(r=!0,n())},s.onreadystatechange=function(){r||"complete"!==this.readyState&&"loaded"!==this.readyState||(r=!0,n())},s.src=a,t=".vjs-dailymotion iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }.vjs-dailymotion .vjs-iframe-blocker { display: none; }.vjs-dailymotion.vjs-has-started .vjs-iframe-blocker { display: block; }.vjs-dailymotion .vjs-poster { background-size: cover; }",i=document.head||document.getElementsByTagName("head")[0],(o=document.createElement("style")).type="text/css",o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t)),i.appendChild(o)),c.VERSION="1.2.0",u.registerTech("Dailymotion",c),c});
public/public.php CHANGED
@@ -236,7 +236,10 @@ class AIOVG_Public {
236
  array(
237
  'ajax_url' => admin_url( 'admin-ajax.php' ),
238
  'ajax_nonce' => wp_create_nonce( 'aiovg_ajax_nonce' ),
239
- 'scroll_to_top_offset' => $scroll_to_top_offset
 
 
 
240
  )
241
  );
242
  }
236
  array(
237
  'ajax_url' => admin_url( 'admin-ajax.php' ),
238
  'ajax_nonce' => wp_create_nonce( 'aiovg_ajax_nonce' ),
239
+ 'scroll_to_top_offset' => $scroll_to_top_offset,
240
+ 'i18n' => array(
241
+ 'no_tags_found' => __( 'No tags found.', 'all-in-one-video-gallery' )
242
+ )
243
  )
244
  );
245
  }
public/search.php CHANGED
@@ -48,6 +48,8 @@ class AIOVG_Public_Search {
48
  'has_category' => isset( $atts['category'] ) ? (int) $atts['category'] : 0,
49
  'has_tag' => isset( $atts['tag'] ) ? (int) $atts['tag'] : 0
50
  );
 
 
51
 
52
  // Enqueue style dependencies
53
  wp_enqueue_style( AIOVG_PLUGIN_SLUG . '-public' );
48
  'has_category' => isset( $atts['category'] ) ? (int) $atts['category'] : 0,
49
  'has_tag' => isset( $atts['tag'] ) ? (int) $atts['tag'] : 0
50
  );
51
+
52
+ $attributes = array_merge( $atts, $attributes );
53
 
54
  // Enqueue style dependencies
55
  wp_enqueue_style( AIOVG_PLUGIN_SLUG . '-public' );
public/templates/player-html5.php CHANGED
@@ -65,18 +65,22 @@ if ( ! empty( $post_meta ) ) {
65
  }
66
  } else {
67
  if ( in_array( $type, $allowed_types ) && ! empty( $post_meta[ $type ][0] ) ) {
 
 
68
  $sources[ $type ] = array(
69
  'type' => "video/{$type}",
70
- 'src' => $post_meta[ $type ][0]
71
  );
72
  }
73
  }
74
  } else {
75
  foreach ( $allowed_types as $type ) {
76
- if ( isset( $_GET[ $type ] ) && ! empty( $_GET[ $type ] ) ) {
 
 
77
  $sources[ $type ] = array(
78
  'type' => "video/{$type}",
79
- 'src' => aiovg_sanitize_url( $_GET[ $type ] )
80
  );
81
  }
82
  }
@@ -192,6 +196,11 @@ if ( isset( $sources['youtube'] ) ) {
192
 
193
  if ( isset( $sources['vimeo'] ) ) {
194
  $settings['techOrder'] = array( 'vimeo2' );
 
 
 
 
 
195
  }
196
 
197
  if ( isset( $sources['dailymotion'] ) ) {
@@ -224,7 +233,7 @@ if ( ! empty( $brand_settings ) ) {
224
  $settings = apply_filters( 'aiovg_video_settings', $settings );
225
  ?>
226
  <!DOCTYPE html>
227
- <html>
228
  <head>
229
  <meta charset="utf-8">
230
  <meta name="viewport" content="width=device-width, initial-scale=1">
@@ -235,14 +244,14 @@ $settings = apply_filters( 'aiovg_video_settings', $settings );
235
  <link rel="canonical" href="<?php echo esc_url( get_permalink( $post_id ) ); ?>" />
236
  <?php endif; ?>
237
 
238
- <link rel="stylesheet" href="<?php echo AIOVG_PLUGIN_URL; ?>vendor/videojs/video-js.min.css?v=7.11.8" />
239
 
240
  <?php if ( in_array( 'qualitySelector', $settings['controlBar']['children'] ) && ( isset( $sources['mp4'] ) || isset( $sources['webm'] ) || isset( $sources['ogv'] ) ) ) : ?>
241
  <link rel="stylesheet" href="<?php echo AIOVG_PLUGIN_URL; ?>vendor/videojs-plugins/quality-selector/quality-selector.css?v=1.2.5" />
242
  <?php endif; ?>
243
 
244
  <?php if ( ! empty( $settings['aiovg']['showLogo'] ) ) : ?>
245
- <link rel="stylesheet" href="<?php echo AIOVG_PLUGIN_URL; ?>vendor/videojs-plugins/overlay/videojs-overlay.css?v=2.1.4" />
246
  <?php endif; ?>
247
 
248
  <style type="text/css">
@@ -277,6 +286,10 @@ $settings = apply_filters( 'aiovg_video_settings', $settings );
277
  color: #2b333f;
278
  }
279
 
 
 
 
 
280
  .video-js .vjs-big-play-button {
281
  width: 1.5em;
282
  height: 1.5em;
@@ -391,7 +404,7 @@ $settings = apply_filters( 'aiovg_video_settings', $settings );
391
  </div>
392
  <?php endif; ?>
393
 
394
- <script src="<?php echo AIOVG_PLUGIN_URL; ?>vendor/videojs/video.min.js?v=7.11.8" type="text/javascript"></script>
395
 
396
  <?php if ( in_array( 'qualitySelector', $settings['controlBar']['children'] ) && ( isset( $sources['mp4'] ) || isset( $sources['webm'] ) || isset( $sources['ogv'] ) ) ) : ?>
397
  <script src="<?php echo AIOVG_PLUGIN_URL; ?>vendor/videojs-plugins/quality-selector/silvermine-videojs-quality-selector.min.js?v=1.2.5" type="text/javascript"></script>
@@ -418,11 +431,11 @@ $settings = apply_filters( 'aiovg_video_settings', $settings );
418
  <?php endif; ?>
419
 
420
  <?php if ( ! empty( $settings['aiovg']['showLogo'] ) ) : ?>
421
- <script src="<?php echo AIOVG_PLUGIN_URL; ?>vendor/videojs-plugins/overlay/videojs-overlay.min.js?v=2.1.4" type="text/javascript"></script>
422
  <?php endif; ?>
423
 
424
  <?php if ( ! empty( $settings['autoplay'] ) ) : ?>
425
- <script src="<?php echo AIOVG_PLUGIN_URL; ?>vendor/videojs-plugins/can-autoplay/can-autoplay.min.js?v=3.0.0" type="text/javascript"></script>
426
  <?php endif; ?>
427
 
428
  <?php do_action( 'aiovg_player_footer', $settings, $attributes, $sources, $tracks ); ?>
65
  }
66
  } else {
67
  if ( in_array( $type, $allowed_types ) && ! empty( $post_meta[ $type ][0] ) ) {
68
+ $src = $post_meta[ $type ][0];
69
+
70
  $sources[ $type ] = array(
71
  'type' => "video/{$type}",
72
+ 'src' => $src
73
  );
74
  }
75
  }
76
  } else {
77
  foreach ( $allowed_types as $type ) {
78
+ if ( isset( $_GET[ $type ] ) && ! empty( $_GET[ $type ] ) ) {
79
+ $src = aiovg_sanitize_url( $_GET[ $type ] );
80
+
81
  $sources[ $type ] = array(
82
  'type' => "video/{$type}",
83
+ 'src' => $src
84
  );
85
  }
86
  }
196
 
197
  if ( isset( $sources['vimeo'] ) ) {
198
  $settings['techOrder'] = array( 'vimeo2' );
199
+
200
+ if ( strpos( $sources['vimeo']['src'], 'player.vimeo.com' ) !== false ) {
201
+ $oembed = aiovg_get_vimeo_oembed_data( $sources['vimeo']['src'] );
202
+ $sources['vimeo']['src'] = 'https://vimeo.com/' . $oembed['video_id'];
203
+ }
204
  }
205
 
206
  if ( isset( $sources['dailymotion'] ) ) {
233
  $settings = apply_filters( 'aiovg_video_settings', $settings );
234
  ?>
235
  <!DOCTYPE html>
236
+ <html translate="no">
237
  <head>
238
  <meta charset="utf-8">
239
  <meta name="viewport" content="width=device-width, initial-scale=1">
244
  <link rel="canonical" href="<?php echo esc_url( get_permalink( $post_id ) ); ?>" />
245
  <?php endif; ?>
246
 
247
+ <link rel="stylesheet" href="<?php echo AIOVG_PLUGIN_URL; ?>vendor/videojs/video-js.min.css?v=7.18.1" />
248
 
249
  <?php if ( in_array( 'qualitySelector', $settings['controlBar']['children'] ) && ( isset( $sources['mp4'] ) || isset( $sources['webm'] ) || isset( $sources['ogv'] ) ) ) : ?>
250
  <link rel="stylesheet" href="<?php echo AIOVG_PLUGIN_URL; ?>vendor/videojs-plugins/quality-selector/quality-selector.css?v=1.2.5" />
251
  <?php endif; ?>
252
 
253
  <?php if ( ! empty( $settings['aiovg']['showLogo'] ) ) : ?>
254
+ <link rel="stylesheet" href="<?php echo AIOVG_PLUGIN_URL; ?>vendor/videojs-plugins/overlay/videojs-overlay.css?v=2.1.5" />
255
  <?php endif; ?>
256
 
257
  <style type="text/css">
286
  color: #2b333f;
287
  }
288
 
289
+ .vjs-youtube-mobile .vjs-poster {
290
+ display: none;
291
+ }
292
+
293
  .video-js .vjs-big-play-button {
294
  width: 1.5em;
295
  height: 1.5em;
404
  </div>
405
  <?php endif; ?>
406
 
407
+ <script src="<?php echo AIOVG_PLUGIN_URL; ?>vendor/videojs/video.min.js?v=7.18.1" type="text/javascript"></script>
408
 
409
  <?php if ( in_array( 'qualitySelector', $settings['controlBar']['children'] ) && ( isset( $sources['mp4'] ) || isset( $sources['webm'] ) || isset( $sources['ogv'] ) ) ) : ?>
410
  <script src="<?php echo AIOVG_PLUGIN_URL; ?>vendor/videojs-plugins/quality-selector/silvermine-videojs-quality-selector.min.js?v=1.2.5" type="text/javascript"></script>
431
  <?php endif; ?>
432
 
433
  <?php if ( ! empty( $settings['aiovg']['showLogo'] ) ) : ?>
434
+ <script src="<?php echo AIOVG_PLUGIN_URL; ?>vendor/videojs-plugins/overlay/videojs-overlay.min.js?v=2.1.5" type="text/javascript"></script>
435
  <?php endif; ?>
436
 
437
  <?php if ( ! empty( $settings['autoplay'] ) ) : ?>
438
+ <script src="<?php echo AIOVG_PLUGIN_URL; ?>vendor/videojs-plugins/can-autoplay/can-autoplay.min.js?v=3.0.2" type="text/javascript"></script>
439
  <?php endif; ?>
440
 
441
  <?php do_action( 'aiovg_player_footer', $settings, $attributes, $sources, $tracks ); ?>
public/templates/search-form-template-horizontal.php CHANGED
@@ -20,7 +20,10 @@
20
  <div class="aiovg-form-group aiovg-field-keyword">
21
  <input type="text" name="vi" class="aiovg-form-control" placeholder="<?php esc_attr_e( 'Enter your Keyword', 'all-in-one-video-gallery' ); ?>" value="<?php echo isset( $_GET['vi'] ) ? esc_attr( $_GET['vi'] ) : ''; ?>" />
22
  </div>
23
- <?php endif; ?>
 
 
 
24
 
25
  <?php if ( $attributes['has_category'] ) : ?>
26
  <div class="aiovg-form-group aiovg-field-category">
@@ -39,75 +42,86 @@
39
  'hide_empty' => false,
40
  );
41
 
 
 
 
 
 
 
 
 
 
 
 
 
42
  $categories_args = apply_filters( 'aiovg_search_form_categories_args', $categories_args );
43
  wp_dropdown_categories( $categories_args );
44
  ?>
45
  </div>
46
  <?php endif; ?>
47
 
48
- <?php if ( $attributes['has_tag'] ) : ?>
49
  <div class="aiovg-form-group aiovg-field-tag">
50
- <?php
51
- $tags_args = array(
52
- 'taxonomy' => 'aiovg_tags',
53
- 'orderby' => 'name',
54
- 'order' => 'asc',
55
- 'hide_empty' => false
56
- );
57
- $terms = get_terms( $tags_args );
58
-
59
- $selected_tags = array();
60
- if ( isset( $_GET['ta'] ) ) {
61
- $selected_tags = array_map( 'intval', $_GET['ta'] );
62
- $selected_tags = array_filter( $selected_tags );
63
- }
64
-
65
- // Dropdown
66
- echo '<select class="aiovg-form-control">';
67
- echo '<option value="">-- ' . esc_html__( 'Select Tags', 'all-in-one-video-gallery' ) . ' --</option>';
68
-
69
- if ( ! empty( $terms ) && ! is_wp_error( $terms ) ) {
70
- foreach ( $terms as $term ) {
71
- printf(
72
- '<option value="%d"%s>%s</option>',
73
- $term->term_id,
74
- ( in_array( $term->term_id, $selected_tags ) ? ' disabled' : '' ),
75
- esc_html( $term->name )
76
- );
77
  }
78
- }
79
-
80
- echo '</select>';
81
- ?>
82
  </div>
83
- <?php endif; ?>
84
-
85
  <div class="aiovg-form-group aiovg-field-submit aiovg-hidden-mobile">
86
  <input type="submit" class="aiovg-button" value="<?php esc_attr_e( 'Search', 'all-in-one-video-gallery' ); ?>" />
87
  </div>
88
 
89
- <?php
90
- if ( $attributes['has_tag'] ) {
91
- // Tags List
92
- echo '<div class="aiovg-tags-list">';
 
 
93
 
94
- if ( ! empty( $terms ) && ! is_wp_error( $terms ) ) {
95
- foreach ( $terms as $term ) {
96
- if ( in_array( $term->term_id, $selected_tags ) ) {
97
- $html = '<span class="aiovg-tag-item" data-id="' . (int) $term->term_id . '">';
98
- $html .= '<span class="aiovg-tag-item-name">' . esc_html( $term->name ) . '</span>';
99
- $html .= '<span class="aiovg-tag-item-close">&times;</span>';
100
- $html .= '<input type="hidden" name="ta[]" value="' . (int) $term->term_id . '" />';
101
- $html .= '</span>';
102
-
103
- echo $html;
 
 
104
  }
105
  }
106
- }
107
-
108
- echo '</div>';
109
- }
110
- ?>
111
 
112
  <div class="aiovg-form-group aiovg-field-submit aiovg-hidden-desktop">
113
  <input type="submit" class="aiovg-button" value="<?php esc_attr_e( 'Search', 'all-in-one-video-gallery' ); ?>" />
20
  <div class="aiovg-form-group aiovg-field-keyword">
21
  <input type="text" name="vi" class="aiovg-form-control" placeholder="<?php esc_attr_e( 'Enter your Keyword', 'all-in-one-video-gallery' ); ?>" value="<?php echo isset( $_GET['vi'] ) ? esc_attr( $_GET['vi'] ) : ''; ?>" />
22
  </div>
23
+ <?php endif; ?>
24
+
25
+ <!-- Hook for developers to add new fields -->
26
+ <?php do_action( 'aiovg_search_form_fields', $attributes ); ?>
27
 
28
  <?php if ( $attributes['has_category'] ) : ?>
29
  <div class="aiovg-form-group aiovg-field-category">
42
  'hide_empty' => false,
43
  );
44
 
45
+ $categories_excluded = get_terms( array(
46
+ 'taxonomy' => 'aiovg_categories',
47
+ 'hide_empty' => false,
48
+ 'fields' => 'ids',
49
+ 'meta_key' => 'exclude_search_form',
50
+ 'meta_value' => 1
51
+ ) );
52
+
53
+ if ( ! empty( $categories_excluded ) && ! is_wp_error( $categories_excluded ) ) {
54
+ $categories_args['exclude'] = array_map( 'intval', $categories_excluded );
55
+ }
56
+
57
  $categories_args = apply_filters( 'aiovg_search_form_categories_args', $categories_args );
58
  wp_dropdown_categories( $categories_args );
59
  ?>
60
  </div>
61
  <?php endif; ?>
62
 
63
+ <?php if ( $attributes['has_tag'] ) : $uid = aiovg_get_uniqid(); ?>
64
  <div class="aiovg-form-group aiovg-field-tag">
65
+ <div class="aiovg-autocomplete" data-uid="<?php echo esc_attr( $uid ); ?>">
66
+ <input type="text" id="aiovg-autocomplete-input-<?php echo esc_attr( $uid ); ?>" class="aiovg-form-control aiovg-autocomplete-input" placeholder="<?php esc_attr_e( 'Select Tags', 'all-in-one-video-gallery' ); ?>" autocomplete="off" />
67
+
68
+ <?php
69
+ $tags_args = array(
70
+ 'taxonomy' => 'aiovg_tags',
71
+ 'orderby' => 'name',
72
+ 'order' => 'asc',
73
+ 'hide_empty' => false
74
+ );
75
+
76
+ $terms = get_terms( $tags_args );
77
+
78
+ // Source
79
+ echo '<select id="aiovg-autocomplete-select-' . esc_attr( $uid ) . '" class="aiovg-autocomplete-select" style="display: none;">';
80
+
81
+ if ( ! empty( $terms ) && ! is_wp_error( $terms ) ) {
82
+ foreach ( $terms as $term ) {
83
+ printf(
84
+ '<option value="%d">%s</option>',
85
+ $term->term_id,
86
+ esc_html( $term->name )
87
+ );
88
+ }
 
 
 
89
  }
90
+
91
+ echo '</select>';
92
+ ?>
93
+ </div>
94
  </div>
95
+ <?php endif; ?>
96
+
97
  <div class="aiovg-form-group aiovg-field-submit aiovg-hidden-mobile">
98
  <input type="submit" class="aiovg-button" value="<?php esc_attr_e( 'Search', 'all-in-one-video-gallery' ); ?>" />
99
  </div>
100
 
101
+ <?php if ( $attributes['has_tag'] ) : ?>
102
+ <div id="aiovg-autocomplete-tags-<?php echo esc_attr( $uid ); ?>" class="aiovg-autocomplete-tags">
103
+ <?php
104
+ if ( isset( $_GET['ta'] ) ) {
105
+ $selected_tags = array_map( 'intval', $_GET['ta'] );
106
+ $selected_tags = array_filter( $selected_tags );
107
 
108
+ if ( ! empty( $terms ) && ! is_wp_error( $terms ) ) {
109
+ foreach ( $terms as $term ) {
110
+ if ( in_array( $term->term_id, $selected_tags ) ) {
111
+ $html = '<span class="aiovg-tag-item aiovg-tag-item-' . $term->term_id . '">';
112
+ $html .= '<span class="aiovg-tag-item-name">' . esc_html( $term->name ) . '</span>';
113
+ $html .= '<span class="aiovg-tag-item-close">&times;</span>';
114
+ $html .= '<input type="hidden" name="ta[]" value="' . $term->term_id . '" />';
115
+ $html .= '</span>';
116
+
117
+ echo $html;
118
+ }
119
+ }
120
  }
121
  }
122
+ ?>
123
+ </div>
124
+ <?php endif; ?>
 
 
125
 
126
  <div class="aiovg-form-group aiovg-field-submit aiovg-hidden-desktop">
127
  <input type="submit" class="aiovg-button" value="<?php esc_attr_e( 'Search', 'all-in-one-video-gallery' ); ?>" />
public/templates/search-form-template-vertical.php CHANGED
@@ -20,7 +20,10 @@
20
  <div class="aiovg-form-group aiovg-field-keyword">
21
  <input type="text" name="vi" class="aiovg-form-control" placeholder="<?php esc_attr_e( 'Enter your Keyword', 'all-in-one-video-gallery' ); ?>" value="<?php echo isset( $_GET['vi'] ) ? esc_attr( $_GET['vi'] ) : ''; ?>" />
22
  </div>
23
- <?php endif; ?>
 
 
 
24
 
25
  <?php if ( $attributes['has_category'] ) : ?>
26
  <div class="aiovg-form-group aiovg-field-category">
@@ -39,67 +42,80 @@
39
  'hide_empty' => false,
40
  );
41
 
 
 
 
 
 
 
 
 
 
 
 
 
42
  $categories_args = apply_filters( 'aiovg_search_form_categories_args', $categories_args );
43
  wp_dropdown_categories( $categories_args );
44
  ?>
45
  </div>
46
  <?php endif; ?>
47
 
48
- <?php if ( $attributes['has_tag'] ) : ?>
49
  <div class="aiovg-form-group aiovg-field-tag">
50
- <?php
51
- $tags_args = array(
52
- 'taxonomy' => 'aiovg_tags',
53
- 'orderby' => 'name',
54
- 'order' => 'asc',
55
- 'hide_empty' => false
56
- );
57
- $terms = get_terms( $tags_args );
58
-
59
- $selected_tags = array();
60
- if ( isset( $_GET['ta'] ) ) {
61
- $selected_tags = array_map( 'intval', $_GET['ta'] );
62
- $selected_tags = array_filter( $selected_tags );
63
- }
64
-
65
- // Dropdown
66
- echo '<select class="aiovg-form-control">';
67
- echo '<option value="">-- ' . esc_html__( 'Select Tags', 'all-in-one-video-gallery' ) . ' --</option>';
68
-
69
- if ( ! empty( $terms ) && ! is_wp_error( $terms ) ) {
70
- foreach ( $terms as $term ) {
71
- printf(
72
- '<option value="%d"%s>%s</option>',
73
- $term->term_id,
74
- ( in_array( $term->term_id, $selected_tags ) ? ' disabled' : '' ),
75
- esc_html( $term->name )
76
- );
77
  }
78
- }
79
-
80
- echo '</select>';
81
-
82
- // Tags List
83
- echo '<div class="aiovg-tags-list">';
84
 
85
- if ( ! empty( $terms ) && ! is_wp_error( $terms ) ) {
86
- foreach ( $terms as $term ) {
87
- if ( in_array( $term->term_id, $selected_tags ) ) {
88
- $html = '<span class="aiovg-tag-item" data-id="' . (int) $term->term_id . '">';
89
- $html .= '<span class="aiovg-tag-item-name">' . esc_html( $term->name ) . '</span>';
90
- $html .= '<span class="aiovg-tag-item-close">&times;</span>';
91
- $html .= '<input type="hidden" name="ta[]" value="' . (int) $term->term_id . '" />';
92
- $html .= '</span>';
93
 
94
- echo $html;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
95
  }
96
  }
97
- }
98
-
99
- echo '</div>';
100
- ?>
101
  </div>
102
- <?php endif; ?>
103
 
104
  <div class="aiovg-form-group aiovg-field-submit">
105
  <input type="submit" class="aiovg-button" value="<?php esc_attr_e( 'Search', 'all-in-one-video-gallery' ); ?>" />
20
  <div class="aiovg-form-group aiovg-field-keyword">
21
  <input type="text" name="vi" class="aiovg-form-control" placeholder="<?php esc_attr_e( 'Enter your Keyword', 'all-in-one-video-gallery' ); ?>" value="<?php echo isset( $_GET['vi'] ) ? esc_attr( $_GET['vi'] ) : ''; ?>" />
22
  </div>
23
+ <?php endif; ?>
24
+
25
+ <!-- Hook for developers to add new fields -->
26
+ <?php do_action( 'aiovg_search_form_fields', $attributes ); ?>
27
 
28
  <?php if ( $attributes['has_category'] ) : ?>
29
  <div class="aiovg-form-group aiovg-field-category">
42
  'hide_empty' => false,
43
  );
44
 
45
+ $categories_excluded = get_terms( array(
46
+ 'taxonomy' => 'aiovg_categories',
47
+ 'hide_empty' => false,
48
+ 'fields' => 'ids',
49
+ 'meta_key' => 'exclude_search_form',
50
+ 'meta_value' => 1
51
+ ) );
52
+
53
+ if ( ! empty( $categories_excluded ) && ! is_wp_error( $categories_excluded ) ) {
54
+ $categories_args['exclude'] = array_map( 'intval', $categories_excluded );
55
+ }
56
+
57
  $categories_args = apply_filters( 'aiovg_search_form_categories_args', $categories_args );
58
  wp_dropdown_categories( $categories_args );
59
  ?>
60
  </div>
61
  <?php endif; ?>
62
 
63
+ <?php if ( $attributes['has_tag'] ) : $uid = aiovg_get_uniqid(); ?>
64
  <div class="aiovg-form-group aiovg-field-tag">
65
+ <div class="aiovg-autocomplete" data-uid="<?php echo esc_attr( $uid ); ?>">
66
+ <input type="text" id="aiovg-autocomplete-input-<?php echo esc_attr( $uid ); ?>" class="aiovg-form-control aiovg-autocomplete-input" placeholder="<?php esc_attr_e( 'Select Tags', 'all-in-one-video-gallery' ); ?>" autocomplete="off" />
67
+
68
+ <?php
69
+ $tags_args = array(
70
+ 'taxonomy' => 'aiovg_tags',
71
+ 'orderby' => 'name',
72
+ 'order' => 'asc',
73
+ 'hide_empty' => false
74
+ );
75
+
76
+ $terms = get_terms( $tags_args );
77
+
78
+ // Source
79
+ echo '<select id="aiovg-autocomplete-select-' . esc_attr( $uid ) . '" class="aiovg-autocomplete-select" style="display: none;">';
80
+
81
+ if ( ! empty( $terms ) && ! is_wp_error( $terms ) ) {
82
+ foreach ( $terms as $term ) {
83
+ printf(
84
+ '<option value="%d">%s</option>',
85
+ $term->term_id,
86
+ esc_html( $term->name )
87
+ );
88
+ }
 
 
 
89
  }
 
 
 
 
 
 
90
 
91
+ echo '</select>';
92
+ ?>
93
+ </div>
 
 
 
 
 
94
 
95
+ <div id="aiovg-autocomplete-tags-<?php echo esc_attr( $uid ); ?>" class="aiovg-autocomplete-tags">
96
+ <?php
97
+ if ( isset( $_GET['ta'] ) ) {
98
+ $selected_tags = array_map( 'intval', $_GET['ta'] );
99
+ $selected_tags = array_filter( $selected_tags );
100
+
101
+ if ( ! empty( $terms ) && ! is_wp_error( $terms ) ) {
102
+ foreach ( $terms as $term ) {
103
+ if ( in_array( $term->term_id, $selected_tags ) ) {
104
+ $html = '<span class="aiovg-tag-item aiovg-tag-item-' . $term->term_id . '">';
105
+ $html .= '<span class="aiovg-tag-item-name">' . esc_html( $term->name ) . '</span>';
106
+ $html .= '<span class="aiovg-tag-item-close">&times;</span>';
107
+ $html .= '<input type="hidden" name="ta[]" value="' . $term->term_id . '" />';
108
+ $html .= '</span>';
109
+
110
+ echo $html;
111
+ }
112
+ }
113
  }
114
  }
115
+ ?>
116
+ </div>
 
 
117
  </div>
118
+ <?php endif; ?>
119
 
120
  <div class="aiovg-form-group aiovg-field-submit">
121
  <input type="submit" class="aiovg-button" value="<?php esc_attr_e( 'Search', 'all-in-one-video-gallery' ); ?>" />
public/video.php CHANGED
@@ -170,6 +170,37 @@ class AIOVG_Public_Video {
170
  return $content;
171
  }
172
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
173
  /**
174
  * Update video views count.
175
  *
170
  return $content;
171
  }
172
 
173
+ /**
174
+ * Filters whether the current video post is open for comments.
175
+ *
176
+ * @since 2.5.6
177
+ *
178
+ * @param bool $open Whether the current post is open for comments.
179
+ * @param int $post_id The post ID.
180
+ * @return bool $open True if the comments are open, false if not.
181
+ */
182
+ public function comments_open( $open, $post_id ) {
183
+ if ( $post_id > 0 ) {
184
+ $post_type = get_post_type( $post_id );
185
+
186
+ if ( 'aiovg_videos' == $post_type ) {
187
+ $video_settings = get_option( 'aiovg_video_settings' );
188
+
189
+ $has_comments = (int) $video_settings['has_comments'];
190
+
191
+ if ( $has_comments == 2 ) { // Forcefully enable comments on all the video pages
192
+ $open = true;
193
+ }
194
+
195
+ if ( $has_comments == -2 ) { // Forcefully disable comments on all the video pages
196
+ $open = false;
197
+ }
198
+ }
199
+ }
200
+
201
+ return $open;
202
+ }
203
+
204
  /**
205
  * Update video views count.
206
  *
public/videos.php CHANGED
@@ -225,6 +225,20 @@ class AIOVG_Public_Videos {
225
  $attributes['category'] = $_GET['ca'];
226
  }
227
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
228
  if ( isset( $_GET['ta'] ) ) {
229
  $attributes['tag'] = $_GET['ta'];
230
  }
@@ -281,8 +295,20 @@ class AIOVG_Public_Videos {
281
  check_ajax_referer( 'aiovg_ajax_nonce', 'security' );
282
 
283
  // Proceed safe
 
 
 
 
 
 
 
 
 
 
 
 
284
  $json = array();
285
- $json['html'] = $this->get_content( $_POST );
286
 
287
  wp_send_json_success( $json );
288
  }
@@ -303,7 +329,8 @@ class AIOVG_Public_Videos {
303
  // Define the query
304
  $args = array(
305
  'post_type' => 'aiovg_videos',
306
- 'posts_per_page' => ! empty( $attributes['limit'] ) ? (int) $attributes['limit'] : -1
 
307
  );
308
 
309
  if ( ! empty( $attributes['show_pagination'] ) || ! empty( $attributes['show_more'] ) ) { // Pagination
@@ -325,6 +352,16 @@ class AIOVG_Public_Videos {
325
  );
326
  }
327
 
 
 
 
 
 
 
 
 
 
 
328
  if ( ! empty( $attributes['tag'] ) ) { // Tag
329
  $tax_queries[] = array(
330
  'taxonomy' => 'aiovg_tags',
225
  $attributes['category'] = $_GET['ca'];
226
  }
227
 
228
+ if ( ! isset( $_GET['ca'] ) || ( isset( $_GET['ca'] ) && empty( $_GET['ca'] ) ) ) {
229
+ $categories_excluded = get_terms( array(
230
+ 'taxonomy' => 'aiovg_categories',
231
+ 'hide_empty' => false,
232
+ 'fields' => 'ids',
233
+ 'meta_key' => 'exclude_search_form',
234
+ 'meta_value' => 1
235
+ ) );
236
+
237
+ if ( ! empty( $categories_excluded ) && ! is_wp_error( $categories_excluded ) ) {
238
+ $attributes['category_exclude'] = $categories_excluded;
239
+ }
240
+ }
241
+
242
  if ( isset( $_GET['ta'] ) ) {
243
  $attributes['tag'] = $_GET['ta'];
244
  }
295
  check_ajax_referer( 'aiovg_ajax_nonce', 'security' );
296
 
297
  // Proceed safe
298
+ $attributes = array();
299
+
300
+ foreach ( $_POST as $key => $value ) {
301
+ if ( $value == 'false' ) {
302
+ $attributes[ $key ] = 0;
303
+ } elseif ( $value == 'true' ) {
304
+ $attributes[ $key ] = 1;
305
+ } else {
306
+ $attributes[ $key ] = sanitize_text_field( $value );
307
+ }
308
+ }
309
+
310
  $json = array();
311
+ $json['html'] = $this->get_content( $attributes );
312
 
313
  wp_send_json_success( $json );
314
  }
329
  // Define the query
330
  $args = array(
331
  'post_type' => 'aiovg_videos',
332
+ 'posts_per_page' => ! empty( $attributes['limit'] ) ? (int) $attributes['limit'] : -1,
333
+ 'post_status' => 'publish'
334
  );
335
 
336
  if ( ! empty( $attributes['show_pagination'] ) || ! empty( $attributes['show_more'] ) ) { // Pagination
352
  );
353
  }
354
 
355
+ if ( ! empty( $attributes['category_exclude'] ) ) { // Exclude categories
356
+ $tax_queries[] = array(
357
+ 'taxonomy' => 'aiovg_categories',
358
+ 'field' => 'term_id',
359
+ 'terms' => is_array( $attributes['category_exclude'] ) ? array_map( 'intval', $attributes['category_exclude'] ) : array_map( 'intval', explode( ',', $attributes['category_exclude'] ) ),
360
+ 'include_children' => false,
361
+ 'operator' => 'NOT IN'
362
+ );
363
+ }
364
+
365
  if ( ! empty( $attributes['tag'] ) ) { // Tag
366
  $tax_queries[] = array(
367
  'taxonomy' => 'aiovg_tags',
vendor/videojs-plugins/overlay/videojs-overlay.min.js CHANGED
@@ -1,2 +1,2 @@
1
- /*! @name videojs-overlay @version 2.1.4 @license Apache-2.0 */
2
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("video.js"),require("global/window")):"function"==typeof define&&define.amd?define(["video.js","global/window"],e):t.videojsOverlay=e(t.videojs,t.window)}(this,function(t,e){"use strict";function n(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}t=t&&t.hasOwnProperty("default")?t.default:t,e=e&&e.hasOwnProperty("default")?e.default:e;var r={align:"top-left",class:"",content:"This overlay will show up while the video is playing",debug:!1,showBackground:!0,attachToControlBar:!1,overlays:[{start:"playing",end:"paused"}]},i=t.getComponent("Component"),o=t.dom||t,s=t.registerPlugin||t.plugin,a=function(t){return"number"==typeof t&&t==t},h=function(t){return"string"==typeof t&&/^\S+$/.test(t)},d=function(r){var i,s;function d(t,e){var i;return i=r.call(this,t,e)||this,["start","end"].forEach(function(t){var e=i.options_[t];if(a(e))i[t+"Event_"]="timeupdate";else if(h(e))i[t+"Event_"]=e;else if("start"===t)throw new Error('invalid "start" option; expected number or string')}),["endListener_","rewindListener_","startListener_"].forEach(function(t){i[t]=function(e){return d.prototype[t].call(n(n(i)),e)}}),"timeupdate"===i.startEvent_&&i.on(t,"timeupdate",i.rewindListener_),i.debug('created, listening to "'+i.startEvent_+'" for "start" and "'+(i.endEvent_||"nothing")+'" for "end"'),i.hide(),i}s=r,(i=d).prototype=Object.create(s.prototype),i.prototype.constructor=i,i.__proto__=s;var l=d.prototype;return l.createEl=function(){var t=this.options_,n=t.content,r=t.showBackground?"vjs-overlay-background":"vjs-overlay-no-background",i=o.createEl("div",{className:"\n vjs-overlay\n vjs-overlay-"+t.align+"\n "+t.class+"\n "+r+"\n vjs-hidden\n "});return"string"==typeof n?i.innerHTML=n:n instanceof e.DocumentFragment?i.appendChild(n):o.appendContent(i,n),i},l.debug=function(){if(this.options_.debug){for(var e=t.log,n=e,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];e.hasOwnProperty(i[0])&&"function"==typeof e[i[0]]&&(n=e[i.shift()]),n.apply(void 0,["overlay#"+this.id()+": "].concat(i))}},l.hide=function(){return r.prototype.hide.call(this),this.debug("hidden"),this.debug('bound `startListener_` to "'+this.startEvent_+'"'),this.endEvent_&&(this.debug('unbound `endListener_` from "'+this.endEvent_+'"'),this.off(this.player(),this.endEvent_,this.endListener_)),this.on(this.player(),this.startEvent_,this.startListener_),this},l.shouldHide_=function(t,e){var n=this.options_.end;return a(n)?t>=n:n===e},l.show=function(){return r.prototype.show.call(this),this.off(this.player(),this.startEvent_,this.startListener_),this.debug("shown"),this.debug('unbound `startListener_` from "'+this.startEvent_+'"'),this.endEvent_&&(this.debug('bound `endListener_` to "'+this.endEvent_+'"'),this.on(this.player(),this.endEvent_,this.endListener_)),this},l.shouldShow_=function(t,e){var n=this.options_.start,r=this.options_.end;return a(n)?a(r)?t>=n&&t<r:this.hasShownSinceSeek_?Math.floor(t)===n:(this.hasShownSinceSeek_=!0,t>=n):n===e},l.startListener_=function(t){var e=this.player().currentTime();this.shouldShow_(e,t.type)&&this.show()},l.endListener_=function(t){var e=this.player().currentTime();this.shouldHide_(e,t.type)&&this.hide()},l.rewindListener_=function(t){var e=this.player().currentTime(),n=this.previousTime_,r=this.options_.start,i=this.options_.end;e<n&&(this.debug("rewind detected"),a(i)&&!this.shouldShow_(e)?(this.debug("hiding; "+i+" is an integer and overlay should not show at this time"),this.hasShownSinceSeek_=!1,this.hide()):h(i)&&e<r&&(this.debug("hiding; show point ("+r+") is before now ("+e+") and end point ("+i+") is an event"),this.hasShownSinceSeek_=!1,this.hide())),this.previousTime_=e},d}(i);t.registerComponent("Overlay",d);var l=function(e){var n=this,i=t.mergeOptions(r,e);Array.isArray(this.overlays_)&&this.overlays_.forEach(function(t){n.removeChild(t),n.controlBar&&n.controlBar.removeChild(t),t.dispose()});var o=i.overlays;delete i.overlays,this.overlays_=o.map(function(e){var r=t.mergeOptions(i,e),o="string"==typeof r.attachToControlBar||!0===r.attachToControlBar;if(!n.controls()||!n.controlBar)return n.addChild("overlay",r);if(o&&-1!==r.align.indexOf("bottom")){var s=n.controlBar.children()[0];if(void 0!==n.controlBar.getChild(r.attachToControlBar)&&(s=n.controlBar.getChild(r.attachToControlBar)),s){var a=n.controlBar.addChild("overlay",r);return n.controlBar.el().insertBefore(a.el(),s.el()),a}}var h=n.addChild("overlay",r);return n.el().insertBefore(h.el(),n.controlBar.el()),h})};return l.VERSION="2.1.4",s("overlay",l),l});
1
+ /*! @name videojs-overlay @version 2.1.5 @license Apache-2.0 */
2
+ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("video.js"),require("global/window")):"function"==typeof define&&define.amd?define(["video.js","global/window"],e):t.videojsOverlay=e(t.videojs,t.window)}(this,function(t,e){"use strict";function n(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}t=t&&t.hasOwnProperty("default")?t.default:t,e=e&&e.hasOwnProperty("default")?e.default:e;var i={align:"top-left",class:"",content:"This overlay will show up while the video is playing",debug:!1,showBackground:!0,attachToControlBar:!1,overlays:[{start:"playing",end:"paused"}]},r=t.getComponent("Component"),o=t.dom||t,s=t.registerPlugin||t.plugin,a=function(t){return"number"==typeof t&&t==t},h=function(t){return"string"==typeof t&&/^\S+$/.test(t)},d=function(i){var r,s;function d(t,e){var r;return r=i.call(this,t,e)||this,["start","end"].forEach(function(t){var e=r.options_[t];if(a(e))r[t+"Event_"]="timeupdate";else if(h(e))r[t+"Event_"]=e;else if("start"===t)throw new Error('invalid "start" option; expected number or string')}),["endListener_","rewindListener_","startListener_"].forEach(function(t){r[t]=function(e){return d.prototype[t].call(n(n(r)),e)}}),"timeupdate"===r.startEvent_&&r.on(t,"timeupdate",r.rewindListener_),r.debug('created, listening to "'+r.startEvent_+'" for "start" and "'+(r.endEvent_||"nothing")+'" for "end"'),r.hide(),r}s=i,(r=d).prototype=Object.create(s.prototype),r.prototype.constructor=r,r.__proto__=s;var l=d.prototype;return l.createEl=function(){var t=this.options_,n=t.content,i=t.showBackground?"vjs-overlay-background":"vjs-overlay-no-background",r=o.createEl("div",{className:"\n vjs-overlay\n vjs-overlay-"+t.align+"\n "+t.class+"\n "+i+"\n vjs-hidden\n "});return"string"==typeof n?r.innerHTML=n:n instanceof e.DocumentFragment?r.appendChild(n):o.appendContent(r,n),r},l.debug=function(){if(this.options_.debug){for(var e=t.log,n=e,i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];e.hasOwnProperty(r[0])&&"function"==typeof e[r[0]]&&(n=e[r.shift()]),n.apply(void 0,["overlay#"+this.id()+": "].concat(r))}},l.hide=function(){return i.prototype.hide.call(this),this.debug("hidden"),this.debug('bound `startListener_` to "'+this.startEvent_+'"'),this.endEvent_&&(this.debug('unbound `endListener_` from "'+this.endEvent_+'"'),this.off(this.player(),this.endEvent_,this.endListener_)),this.on(this.player(),this.startEvent_,this.startListener_),this},l.shouldHide_=function(t,e){var n=this.options_.end;return a(n)?t>=n:n===e},l.show=function(){return i.prototype.show.call(this),this.off(this.player(),this.startEvent_,this.startListener_),this.debug("shown"),this.debug('unbound `startListener_` from "'+this.startEvent_+'"'),this.endEvent_&&(this.debug('bound `endListener_` to "'+this.endEvent_+'"'),this.on(this.player(),this.endEvent_,this.endListener_)),this},l.shouldShow_=function(t,e){var n=this.options_.start,i=this.options_.end;return a(n)?a(i)?t>=n&&t<i:this.hasShownSinceSeek_?Math.floor(t)===n:(this.hasShownSinceSeek_=!0,t>=n):n===e},l.startListener_=function(t){var e=this.player().currentTime();this.shouldShow_(e,t.type)&&this.show()},l.endListener_=function(t){var e=this.player().currentTime();this.shouldHide_(e,t.type)&&this.hide()},l.rewindListener_=function(t){var e=this.player().currentTime(),n=this.previousTime_,i=this.options_.start,r=this.options_.end;e<n&&(this.debug("rewind detected"),a(r)&&!this.shouldShow_(e)?(this.debug("hiding; "+r+" is an integer and overlay should not show at this time"),this.hasShownSinceSeek_=!1,this.hide()):h(r)&&e<i&&(this.debug("hiding; show point ("+i+") is before now ("+e+") and end point ("+r+") is an event"),this.hasShownSinceSeek_=!1,this.hide())),this.previousTime_=e},d}(r);t.registerComponent("Overlay",d);var l=function(e){var n=this,r=t.mergeOptions(i,e);Array.isArray(this.overlays_)&&this.overlays_.forEach(function(t){n.removeChild(t),n.controlBar&&n.controlBar.removeChild(t),t.dispose()});var o=r.overlays;delete r.overlays,this.overlays_=o.map(function(e){var i=t.mergeOptions(r,e),o="string"==typeof i.attachToControlBar||!0===i.attachToControlBar;if(!n.controls()||!n.controlBar)return n.addChild("overlay",i);if(o&&-1!==i.align.indexOf("bottom")){var s=n.controlBar.children()[0];if(void 0!==n.controlBar.getChild(i.attachToControlBar)&&(s=n.controlBar.getChild(i.attachToControlBar)),s){var a=n.controlBar.children().indexOf(s);return n.controlBar.addChild("overlay",i,a)}}var h=n.addChild("overlay",i);return n.el().insertBefore(h.el(),n.controlBar.el()),h})};return l.VERSION="2.1.5",s("overlay",l),l});
vendor/videojs/font/index.html DELETED
@@ -1 +0,0 @@
1
- <!DOCTYPE html><title></title>
 
vendor/videojs/lang/de.js CHANGED
@@ -10,7 +10,7 @@ videojs.addLanguage('de', {
10
  "Loaded": "Geladen",
11
  "Progress": "Status",
12
  "Fullscreen": "Vollbild",
13
- "Non-Fullscreen": "Kein Vollbild",
14
  "Mute": "Ton aus",
15
  "Unmute": "Ton ein",
16
  "Playback Rate": "Wiedergabegeschwindigkeit",
@@ -78,7 +78,7 @@ videojs.addLanguage('de', {
78
  "End of dialog window.": "Ende des Dialogfensters.",
79
  "Audio Player": "Audio-Player",
80
  "Video Player": "Video-Player",
81
- "Progress Bar": "Forschrittsbalken",
82
  "progress bar timing: currentTime={1} duration={2}": "{1} von {2}",
83
  "Volume Level": "Lautstärke",
84
  "{1} is loading.": "{1} wird geladen.",
10
  "Loaded": "Geladen",
11
  "Progress": "Status",
12
  "Fullscreen": "Vollbild",
13
+ "Non-Fullscreen": "Vollbildmodus beenden",
14
  "Mute": "Ton aus",
15
  "Unmute": "Ton ein",
16
  "Playback Rate": "Wiedergabegeschwindigkeit",
78
  "End of dialog window.": "Ende des Dialogfensters.",
79
  "Audio Player": "Audio-Player",
80
  "Video Player": "Video-Player",
81
+ "Progress Bar": "Fortschrittsbalken",
82
  "progress bar timing: currentTime={1} duration={2}": "{1} von {2}",
83
  "Volume Level": "Lautstärke",
84
  "{1} is loading.": "{1} wird geladen.",
vendor/videojs/lang/de.json CHANGED
@@ -10,7 +10,7 @@
10
  "Loaded": "Geladen",
11
  "Progress": "Status",
12
  "Fullscreen": "Vollbild",
13
- "Non-Fullscreen": "Kein Vollbild",
14
  "Mute": "Ton aus",
15
  "Unmute": "Ton ein",
16
  "Playback Rate": "Wiedergabegeschwindigkeit",
@@ -78,7 +78,7 @@
78
  "End of dialog window.": "Ende des Dialogfensters.",
79
  "Audio Player": "Audio-Player",
80
  "Video Player": "Video-Player",
81
- "Progress Bar": "Forschrittsbalken",
82
  "progress bar timing: currentTime={1} duration={2}": "{1} von {2}",
83
  "Volume Level": "Lautstärke",
84
  "{1} is loading.": "{1} wird geladen.",
10
  "Loaded": "Geladen",
11
  "Progress": "Status",
12
  "Fullscreen": "Vollbild",
13
+ "Non-Fullscreen": "Vollbildmodus beenden",
14
  "Mute": "Ton aus",
15
  "Unmute": "Ton ein",
16
  "Playback Rate": "Wiedergabegeschwindigkeit",
78
  "End of dialog window.": "Ende des Dialogfensters.",
79
  "Audio Player": "Audio-Player",
80
  "Video Player": "Video-Player",
81
+ "Progress Bar": "Fortschrittsbalken",
82
  "progress bar timing: currentTime={1} duration={2}": "{1} von {2}",
83
  "Volume Level": "Lautstärke",
84
  "{1} is loading.": "{1} wird geladen.",
vendor/videojs/lang/en.js CHANGED
@@ -16,7 +16,7 @@ videojs.addLanguage('en', {
16
  "Progress Bar": "Progress Bar",
17
  "progress bar timing: currentTime={1} duration={2}": "{1} of {2}",
18
  "Fullscreen": "Fullscreen",
19
- "Non-Fullscreen": "Non-Fullscreen",
20
  "Mute": "Mute",
21
  "Unmute": "Unmute",
22
  "Playback Rate": "Playback Rate",
16
  "Progress Bar": "Progress Bar",
17
  "progress bar timing: currentTime={1} duration={2}": "{1} of {2}",
18
  "Fullscreen": "Fullscreen",
19
+ "Non-Fullscreen": "Exit Fullscreen",
20
  "Mute": "Mute",
21
  "Unmute": "Unmute",
22
  "Playback Rate": "Playback Rate",
vendor/videojs/lang/en.json CHANGED
@@ -16,7 +16,7 @@
16
  "Progress Bar": "Progress Bar",
17
  "progress bar timing: currentTime={1} duration={2}": "{1} of {2}",
18
  "Fullscreen": "Fullscreen",
19
- "Non-Fullscreen": "Non-Fullscreen",
20
  "Mute": "Mute",
21
  "Unmute": "Unmute",
22
  "Playback Rate": "Playback Rate",
16
  "Progress Bar": "Progress Bar",
17
  "progress bar timing: currentTime={1} duration={2}": "{1} of {2}",
18
  "Fullscreen": "Fullscreen",
19
+ "Non-Fullscreen": "Exit Fullscreen",
20
  "Mute": "Mute",
21
  "Unmute": "Unmute",
22
  "Playback Rate": "Playback Rate",
vendor/videojs/lang/es.js CHANGED
@@ -83,5 +83,7 @@ videojs.addLanguage('es', {
83
  "Caption Settings Dialog": "Diálogo de configuración de leyendas",
84
  "Beginning of dialog window. Escape will cancel and close the window.": "Comienzo de la ventana de diálogo. La tecla Escape cancelará la operación y cerrará la ventana.",
85
  "End of dialog window.": "Final de la ventana de diálogo.",
86
- "{1} is loading.": "{1} se está cargando."
 
 
87
  });
83
  "Caption Settings Dialog": "Diálogo de configuración de leyendas",
84
  "Beginning of dialog window. Escape will cancel and close the window.": "Comienzo de la ventana de diálogo. La tecla Escape cancelará la operación y cerrará la ventana.",
85
  "End of dialog window.": "Final de la ventana de diálogo.",
86
+ "{1} is loading.": "{1} se está cargando.",
87
+ "Exit Picture-in-Picture": "Salir de imagen sobre imagen",
88
+ "Picture-in-Picture": "Imagen sobre imagen"
89
  });
vendor/videojs/lang/es.json CHANGED
@@ -83,5 +83,7 @@
83
  "Caption Settings Dialog": "Diálogo de configuración de leyendas",
84
  "Beginning of dialog window. Escape will cancel and close the window.": "Comienzo de la ventana de diálogo. La tecla Escape cancelará la operación y cerrará la ventana.",
85
  "End of dialog window.": "Final de la ventana de diálogo.",
86
- "{1} is loading.": "{1} se está cargando."
87
- }
 
 
83
  "Caption Settings Dialog": "Diálogo de configuración de leyendas",
84
  "Beginning of dialog window. Escape will cancel and close the window.": "Comienzo de la ventana de diálogo. La tecla Escape cancelará la operación y cerrará la ventana.",
85
  "End of dialog window.": "Final de la ventana de diálogo.",
86
+ "{1} is loading.": "{1} se está cargando.",
87
+ "Exit Picture-in-Picture": "Salir de imagen sobre imagen",
88
+ "Picture-in-Picture": "Imagen sobre imagen"
89
+ }
vendor/videojs/lang/fr.js CHANGED
@@ -80,5 +80,8 @@ videojs.addLanguage('fr', {
80
  "Done": "Terminé",
81
  "Caption Settings Dialog": "Boîte de dialogue des paramètres des sous-titres transcrits",
82
  "Beginning of dialog window. Escape will cancel and close the window.": "Début de la fenêtre de dialogue. La touche d'échappement annulera et fermera la fenêtre.",
83
- "End of dialog window.": "Fin de la fenêtre de dialogue."
 
 
 
84
  });
80
  "Done": "Terminé",
81
  "Caption Settings Dialog": "Boîte de dialogue des paramètres des sous-titres transcrits",
82
  "Beginning of dialog window. Escape will cancel and close the window.": "Début de la fenêtre de dialogue. La touche d'échappement annulera et fermera la fenêtre.",
83
+ "End of dialog window.": "Fin de la fenêtre de dialogue.",
84
+ "Exit Picture-in-Picture ": "Quitter le mode image dans l'image",
85
+ "Picture-in-Picture ": "Image dans l'image",
86
+ "{1} is loading.": "{1} en cours de chargement."
87
  });
vendor/videojs/lang/fr.json CHANGED
@@ -80,5 +80,8 @@
80
  "Done": "Terminé",
81
  "Caption Settings Dialog": "Boîte de dialogue des paramètres des sous-titres transcrits",
82
  "Beginning of dialog window. Escape will cancel and close the window.": "Début de la fenêtre de dialogue. La touche d'échappement annulera et fermera la fenêtre.",
83
- "End of dialog window.": "Fin de la fenêtre de dialogue."
 
 
 
84
  }
80
  "Done": "Terminé",
81
  "Caption Settings Dialog": "Boîte de dialogue des paramètres des sous-titres transcrits",
82
  "Beginning of dialog window. Escape will cancel and close the window.": "Début de la fenêtre de dialogue. La touche d'échappement annulera et fermera la fenêtre.",
83
+ "End of dialog window.": "Fin de la fenêtre de dialogue.",
84
+ "Exit Picture-in-Picture ": "Quitter le mode image dans l'image",
85
+ "Picture-in-Picture ": "Image dans l'image",
86
+ "{1} is loading.": "{1} en cours de chargement."
87
  }
vendor/videojs/lang/hi.js ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ videojs.addLanguage('hi', {
2
+ "Audio Player": "ऑडियो प्लेयर",
3
+ "Video Player": "वीडियो प्लेयर",
4
+ "Play": "चलाएँ",
5
+ "Pause": "रोके",
6
+ "Replay": "फिर से चलाएँ",
7
+ "Current Time": "वर्तमान समय",
8
+ "Duration": "अवधि",
9
+ "Remaining Time": "शेष समय",
10
+ "Stream Type": "स्ट्रीम प्रकार",
11
+ "LIVE": "लाइव",
12
+ "Seek to live, currently behind live": "छोड़कर लाइव प्रसारण पर आगे बढ़ें, अभी लाइव प्रसारण से पीछे हैं",
13
+ "Seek to live, currently playing live": "छोड़कर लाइव प्रसारण पर आगे बढ़ें, अभी लाइव चल रहा है",
14
+ "Loaded": "लोड हुआ",
15
+ "Progress": "प्रगति",
16
+ "Progress Bar": "प्रोगेस बार",
17
+ "progress bar timing: currentTime={1} duration={2}": "{2} में से {1}",
18
+ "Fullscreen": "फ़ुल स्क्रीन",
19
+ "Non-Fullscreen": "फ़ुल स्क्रीन से बाहर निकलें",
20
+ "Mute": "म्यूट करें",
21
+ "Unmute": "अनम्यूट करें",
22
+ "Playback Rate": "चलाने की दर",
23
+ "Subtitles": "उपशीर्षक",
24
+ "subtitles off": "उपशीर्षक बंद",
25
+ "Captions": "कैप्शन",
26
+ "captions off": "कैप्शन बंद",
27
+ "Chapters": "अध्याय",
28
+ "Descriptions": "विवरण",
29
+ "descriptions off": "विवरण बंद",
30
+ "Audio Track": "ऑडियो ट्रैक",
31
+ "Volume Level": "वॉल्यूम स्तर",
32
+ "You aborted the media playback": "आपने मीडिया प्लेबैक को रोक दिया",
33
+ "A network error caused the media download to fail part-way.": "एक नेटवर्क त्रुटि के कारण मीडिया डाउनलोड आंशिक रूप से विफल हो गया।",
34
+ "The media could not be loaded, either because the server or network failed or because the format is not supported.": "मीडिया लोड नहीं किया जा सका, या तो सर्वर या नेटवर्क विफल होने के कारण या प्रारूप समर्थित नहीं होने के कारण।",
35
+ "The media playback was aborted due to a corruption problem or because the media used features your browser did not support.": "मीडिया प्लेबैक निरस्त कर दिया गया, कारण: दूषण की समस्या या मीडिया ने उन सुविधाओं का उपयोग किया था जिनका आपके ब्राउज़र ने समर्थन नहीं किया।",
36
+ "No compatible source was found for this media.": "इस मीडिया के लिए कोई अनुकूल स्रोत नहीं मिला।.",
37
+ "The media is encrypted and we do not have the keys to decrypt it.": "मीडिया एन्क्रिप्टेड है और हमारे पास इसे डिक्रिप्ट करने की चाबी नहीं है।",
38
+ "Play Video": "वीडियो चलाएं",
39
+ "Close": "बंद करे",
40
+ "Close Modal Dialog": "मोडल डायलॉग बंद करें",
41
+ "Modal Window": "मोडल विंडो",
42
+ "This is a modal window": "यह एक मोडल विंडो है",
43
+ "This modal can be closed by pressing the Escape key or activating the close button.": "इस मोडल को एस्केप कुंजी दबाकर या बंद करें बटन को सक्रिय करके बंद किया जा सकता है।",
44
+ ", opens captions settings dialog": ", कैप्शन सेटिंग डायलॉग खोलता है",
45
+ ", opens subtitles settings dialog": ", उपशीर्षक सेटिंग्स संवाद खोलता है",
46
+ ", opens descriptions settings dialog": ", विवरण सेटिंग संवाद खोलता है",
47
+ ", selected": ", चुना गया",
48
+ "captions settings": "कैप्शन सेटिंग",
49
+ "subtitles settings": "उपशीर्षक सेटिंग",
50
+ "descriptions settings": "विवरण सेटिंग",
51
+ "Text": "टेक्स्ट",
52
+ "White": "सफेद",
53
+ "Black": "काला",
54
+ "Red": "लाल",
55
+ "Green": "हरा",
56
+ "Blue": "नीला",
57
+ "Yellow": "पीला",
58
+ "Magenta": "मैजेंटा",
59
+ "Cyan": "सियान",
60
+ "Background": "बैकग्राउंड",
61
+ "Window": "विंडो",
62
+ "Transparent": "पारदर्शी",
63
+ "Semi-Transparent": "अर्द्ध पारदर्शी",
64
+ "Opaque": "अपारदर्शी",
65
+ "Font Size": "फ़ॉन्ट आकार",
66
+ "Text Edge Style": "टेक्स्ट एज स्टाइल",
67
+ "None": "कोई नहीं",
68
+ "Raised": "उठा हुआ",
69
+ "Depressed": "उदास",
70
+ "Uniform": "वर्दी",
71
+ "Dropshadow": "परछाई",
72
+ "Font Family": "फॉण्ट परिवार",
73
+ "Proportional Sans-Serif": "प्रोपोरशनल साँस-सेरिफ",
74
+ "Monospace Sans-Serif": "मोनोस्पास साँस-सेरिफ",
75
+ "Proportional Serif": "प्रोपोरशनल सेरिफ",
76
+ "Monospace Serif": "मोनोस्पास सेरिफ",
77
+ "Casual": "आकस्मिक",
78
+ "Script": "स्क्रिप्ट",
79
+ "Small Caps": "छोटे अक्षर",
80
+ "Reset": "रीसेट करें",
81
+ "restore all settings to the default values": "सभी सेटिंग्स को डिफ़ॉल्ट मानों पर पुनर्स्थापित करें",
82
+ "Done": "पूर्ण",
83
+ "Caption Settings Dialog": "कैप्शन सेटिंग्स डायलॉग",
84
+ "Beginning of dialog window. Escape will cancel and close the window.": "डायलॉग विंडो की शुरुआत। एस्केप विंडो को रद्द और बंद कर देगा।",
85
+ "End of dialog window.": "संवाद विंडो का अंत।",
86
+ "{1} is loading.": "{1} लोड हो रहा है।",
87
+ "Exit Picture-in-Picture": "पिक्चर-इन-पिक्चर से बाहर निकलें",
88
+ "Picture-in-Picture": "पिक्चर-इन-पिक्चर"
89
+ });
vendor/videojs/lang/hi.json ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "Audio Player": "ऑडियो प्लेयर",
3
+ "Video Player": "वीडियो प्लेयर",
4
+ "Play": "चलाएँ",
5
+ "Pause": "रोके",
6
+ "Replay": "फिर से चलाएँ",
7
+ "Current Time": "वर्तमान समय",
8
+ "Duration": "अवधि",
9
+ "Remaining Time": "शेष समय",
10
+ "Stream Type": "स्ट्रीम प्रकार",
11
+ "LIVE": "लाइव",
12
+ "Seek to live, currently behind live": "छोड़कर लाइव प्रसारण पर आगे बढ़ें, अभी लाइव प्रसारण से पीछे हैं",
13
+ "Seek to live, currently playing live": "छोड़कर लाइव प्रसारण पर आगे बढ़ें, अभी लाइव चल रहा है",
14
+ "Loaded": "लोड हुआ",
15
+ "Progress": "प्रगति",
16
+ "Progress Bar": "प्रोगेस बार",
17
+ "progress bar timing: currentTime={1} duration={2}": "{2} में से {1}",
18
+ "Fullscreen": "फ़ुल स्क्रीन",
19
+ "Non-Fullscreen": "फ़ुल स्क्रीन से बाहर निकलें",
20
+ "Mute": "म्यूट करें",
21
+ "Unmute": "अनम्यूट करें",
22
+ "Playback Rate": "चलाने की दर",
23
+ "Subtitles": "उपशीर्षक",
24
+ "subtitles off": "उपशीर्षक बंद",
25
+ "Captions": "कैप्शन",
26
+ "captions off": "कैप्शन बंद",
27
+ "Chapters": "अध्याय",
28
+ "Descriptions": "विवरण",
29
+ "descriptions off": "विवरण बंद",
30
+ "Audio Track": "ऑडियो ट्रैक",
31
+ "Volume Level": "वॉल्यूम स्तर",
32
+ "You aborted the media playback": "आपने मीडिया प्लेबैक को रोक दिया",
33
+ "A network error caused the media download to fail part-way.": "एक नेटवर्क त्रुटि के कारण मीडिया डाउनलोड आंशिक रूप से विफल हो गया।",
34
+ "The media could not be loaded, either because the server or network failed or because the format is not supported.": "मीडिया लोड नहीं किया जा सका, या तो सर्वर या नेटवर्क विफल होने के कारण या प्रारूप समर्थित नहीं होने के कारण।",
35
+ "The media playback was aborted due to a corruption problem or because the media used features your browser did not support.": "मीडिया प्लेबैक निरस्त कर दिया गया, कारण: दूषण की समस्या या मीडिया ने उन सुविधाओं का उपयोग किया था जिनका आपके ब्राउज़र ने समर्थन नहीं किया।",
36
+ "No compatible source was found for this media.": "इस मीडिया के लिए कोई अनुकूल स्रोत नहीं मिला।.",
37
+ "The media is encrypted and we do not have the keys to decrypt it.": "मीडिया एन्क्रिप्टेड है और हमारे पास इसे डिक्रिप्ट करने की चाबी नहीं है।",
38
+ "Play Video": "वीडियो चलाएं",
39
+ "Close": "बंद करे",
40
+ "Close Modal Dialog": "मोडल डायलॉग बंद करें",
41
+ "Modal Window": "मोडल विंडो",
42
+ "This is a modal window": "यह एक मोडल विंडो है",
43
+ "This modal can be closed by pressing the Escape key or activating the close button.": "इस मोडल को एस्केप कुंजी दबाकर या बंद करें बटन को सक्रिय करके बंद किया जा सकता है।",
44
+ ", opens captions settings dialog": ", कैप्शन सेटिंग डायलॉग खोलता है",
45
+ ", opens subtitles settings dialog": ", उपशीर्षक सेटिंग्स संवाद खोलता है",
46
+ ", opens descriptions settings dialog": ", विवरण सेटिंग संवाद खोलता है",
47
+ ", selected": ", चुना गया",
48
+ "captions settings": "कैप्शन सेटिंग",
49
+ "subtitles settings": "उपशीर्षक सेटिंग",
50
+ "descriptions settings": "विवरण सेटिंग",
51
+ "Text": "टेक्स्ट",
52
+ "White": "सफेद",
53
+ "Black": "काला",
54
+ "Red": "लाल",
55
+ "Green": "हरा",
56
+ "Blue": "नीला",
57
+ "Yellow": "पीला",
58
+ "Magenta": "मैजेंटा",
59
+ "Cyan": "सियान",
60
+ "Background": "बैकग्राउंड",
61
+ "Window": "विंडो",
62
+ "Transparent": "पारदर्शी",
63
+ "Semi-Transparent": "अर्द्ध पारदर्शी",
64
+ "Opaque": "अपारदर्शी",
65
+ "Font Size": "फ़ॉन्ट आकार",
66
+ "Text Edge Style": "टेक्स्ट एज स्टाइल",
67
+ "None": "कोई नहीं",
68
+ "Raised": "उठा हुआ",
69
+ "Depressed": "उदास",
70
+ "Uniform": "वर्दी",
71
+ "Dropshadow": "परछाई",
72
+ "Font Family": "फॉण्ट परिवार",
73
+ "Proportional Sans-Serif": "प्रोपोरशनल साँस-सेरिफ",
74
+ "Monospace Sans-Serif": "मोनोस्पास साँस-सेरिफ",
75
+ "Proportional Serif": "प्रोपोरशनल सेरिफ",
76
+ "Monospace Serif": "मोनोस्पास सेरिफ",
77
+ "Casual": "आकस्मिक",
78
+ "Script": "स्क्रिप्ट",
79
+ "Small Caps": "छोटे अक्षर",
80
+ "Reset": "रीसेट करें",
81
+ "restore all settings to the default values": "सभी सेटिंग्स को डिफ़ॉल्ट मानों पर पुनर्स्थापित करें",
82
+ "Done": "पूर्ण",
83
+ "Caption Settings Dialog": "कैप्शन सेटिंग्स डायलॉग",
84
+ "Beginning of dialog window. Escape will cancel and close the window.": "डायलॉग विंडो की शुरुआत। एस्केप विंडो को रद्द और बंद कर देगा।",
85
+ "End of dialog window.": "संवाद विंडो का अंत।",
86
+ "{1} is loading.": "{1} लोड हो रहा है।",
87
+ "Exit Picture-in-Picture": "पिक्चर-इन-पिक्चर से बाहर निकलें",
88
+ "Picture-in-Picture": "पिक्चर-इन-पिक्चर"
89
+ }
vendor/videojs/lang/hu.js CHANGED
@@ -22,5 +22,68 @@ videojs.addLanguage('hu', {
22
  "A network error caused the media download to fail part-way.": "Hálózati hiba miatt a videó részlegesen töltődött le.",
23
  "The media could not be loaded, either because the server or network failed or because the format is not supported.": "A videó nem tölthető be hálózati vagy kiszolgálói hiba miatt, vagy a formátuma nem támogatott.",
24
  "The media playback was aborted due to a corruption problem or because the media used features your browser did not support.": "A lejátszás adatsérülés miatt leállt, vagy a videó egyes tulajdonságait a böngészője nem támogatja.",
25
- "No compatible source was found for this media.": "Nincs kompatibilis forrás ehhez a videóhoz."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26
  });
22
  "A network error caused the media download to fail part-way.": "Hálózati hiba miatt a videó részlegesen töltődött le.",
23
  "The media could not be loaded, either because the server or network failed or because the format is not supported.": "A videó nem tölthető be hálózati vagy kiszolgálói hiba miatt, vagy a formátuma nem támogatott.",
24
  "The media playback was aborted due to a corruption problem or because the media used features your browser did not support.": "A lejátszás adatsérülés miatt leállt, vagy a videó egyes tulajdonságait a böngészője nem támogatja.",
25
+ "No compatible source was found for this media.": "Nincs kompatibilis forrás ehhez a videóhoz.",
26
+ "Audio Player": "Audio lejátszó",
27
+ "Video Player": "Videó lejátszó",
28
+ "Replay": "Visszajátszás",
29
+ "Descriptions": "Leírások",
30
+ "descriptions off": "leírások kikapcsolva",
31
+ "Audio Track": "Hangsáv",
32
+ "Volume Level": "Hangerő",
33
+ "Play Video": "Videó lejátszása",
34
+ "Close": "Bezárás",
35
+ "Text": "Szöveg",
36
+ "White": "Fehér",
37
+ "Black": "Fekete",
38
+ "Red": "Piros",
39
+ "Green": "Zöld",
40
+ "Blue": "Kék",
41
+ "Yellow": "Sárga",
42
+ "Background": "Háttér",
43
+ "Window": "Ablak",
44
+ "Transparent": "Átlátszó",
45
+ "Semi-Transparent": "Félig átlátszó",
46
+ "Opaque": "Áttetsző",
47
+ "Font Size": "Betűméret",
48
+ "Font Family": "Betűtípus",
49
+ "Done": "Kész",
50
+ "Picture-in-Picture": "Kép a képben",
51
+ "Exit Picture-in-Picture": "Kilépés kép a képben módból",
52
+ "{1} is loading.": "{1} betöltése.",
53
+ "Reset": "Visszaállítás",
54
+ "restore all settings to the default values": "összes beállítás visszaállítása az alapértelmezett értékekre",
55
+ "The media is encrypted and we do not have the keys to decrypt it.": "A média titkosítva van és nincsenek kulcsok a visszafejtéshez.",
56
+ "Close Modal Dialog": "Felugró ablak bezárása",
57
+ "Modal Window": "Felugró ablak",
58
+ "This modal can be closed by pressing the Escape key or activating the close button.": "Ezt a felugró ablakot az Escape gomb megnyomásával vagy a bezáró gomb aktiválásával lehet bezárni.",
59
+ ", selected": ", kiválasztva",
60
+ "descriptions settings": "leírások beállítása",
61
+ "Text Edge Style": "Szövegél stílus",
62
+ "This is a modal window": "Ez egy felugró ablak",
63
+ "Cyan": "Cián",
64
+ "Dropshadow": "Árnyék",
65
+ "End of dialog window.": "Párbeszédablak vége.",
66
+ "Progress Bar": "Folyamatjelző sáv",
67
+ "Beginning of dialog window. Escape will cancel and close the window.": "Párbeszédablak eleje. Az Escape gomb befejezi és bezárja az ablakot.",
68
+ "Caption Settings Dialog": "Feliratbeállítások párbeszédablak",
69
+ ", opens descriptions settings dialog": ", megnyitja a leírások beállításainak párbeszédablakját",
70
+ ", opens captions settings dialog": ", megnyitja a magyarázó szövegek beállításainak párbeszédablakját",
71
+ ", opens subtitles settings dialog": ", megnyitja a feliratok beállításainak párbeszédablakját",
72
+ "Seek to live, currently behind live": "Élő adáshoz tekerés, jelenleg az élő adás mögött van",
73
+ "Seek to live, currently playing live": "Élő adáshoz tekerés, jelenleg az élő adásnál van",
74
+ "progress bar timing: currentTime={1} duration={2}": "{1} / {2}",
75
+ "Magenta": "Lila",
76
+ "Script": "Script",
77
+ "Casual": "Casual",
78
+ "Monospace Serif": "Monospace Serif",
79
+ "Monospace Sans-Serif": "Monospace Sans-Serif",
80
+ "Proportional Sans-Serif": "Proportional Sans-Serif",
81
+ "Proportional Serif": "Proportional Serif",
82
+ "Uniform": "Uniform",
83
+ "Small Caps": "Kiskapitális",
84
+ "None": "Egyik sem",
85
+ "captions settings": "magyarázó szövegek beállításai",
86
+ "subtitles settings": "feliratok beállításai",
87
+ "Raised": "Emelt",
88
+ "Depressed": "Nyomott"
89
  });
vendor/videojs/lang/hu.json CHANGED
@@ -22,5 +22,68 @@
22
  "A network error caused the media download to fail part-way.": "Hálózati hiba miatt a videó részlegesen töltődött le.",
23
  "The media could not be loaded, either because the server or network failed or because the format is not supported.": "A videó nem tölthető be hálózati vagy kiszolgálói hiba miatt, vagy a formátuma nem támogatott.",
24
  "The media playback was aborted due to a corruption problem or because the media used features your browser did not support.": "A lejátszás adatsérülés miatt leállt, vagy a videó egyes tulajdonságait a böngészője nem támogatja.",
25
- "No compatible source was found for this media.": "Nincs kompatibilis forrás ehhez a videóhoz."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26
  }
22
  "A network error caused the media download to fail part-way.": "Hálózati hiba miatt a videó részlegesen töltődött le.",
23
  "The media could not be loaded, either because the server or network failed or because the format is not supported.": "A videó nem tölthető be hálózati vagy kiszolgálói hiba miatt, vagy a formátuma nem támogatott.",
24
  "The media playback was aborted due to a corruption problem or because the media used features your browser did not support.": "A lejátszás adatsérülés miatt leállt, vagy a videó egyes tulajdonságait a böngészője nem támogatja.",
25
+ "No compatible source was found for this media.": "Nincs kompatibilis forrás ehhez a videóhoz.",
26
+ "Audio Player": "Audio lejátszó",
27
+ "Video Player": "Videó lejátszó",
28
+ "Replay": "Visszajátszás",
29
+ "Descriptions": "Leírások",
30
+ "descriptions off": "leírások kikapcsolva",
31
+ "Audio Track": "Hangsáv",
32
+ "Volume Level": "Hangerő",
33
+ "Play Video": "Videó lejátszása",
34
+ "Close": "Bezárás",
35
+ "Text": "Szöveg",
36
+ "White": "Fehér",
37
+ "Black": "Fekete",
38
+ "Red": "Piros",
39
+ "Green": "Zöld",
40
+ "Blue": "Kék",
41
+ "Yellow": "Sárga",
42
+ "Background": "Háttér",
43
+ "Window": "Ablak",
44
+ "Transparent": "Átlátszó",
45
+ "Semi-Transparent": "Félig átlátszó",
46
+ "Opaque": "Áttetsző",
47
+ "Font Size": "Betűméret",
48
+ "Font Family": "Betűtípus",
49
+ "Done": "Kész",
50
+ "Picture-in-Picture": "Kép a képben",
51
+ "Exit Picture-in-Picture": "Kilépés kép a képben módból",
52
+ "{1} is loading.": "{1} betöltése.",
53
+ "Reset": "Visszaállítás",
54
+ "restore all settings to the default values": "összes beállítás visszaállítása az alapértelmezett értékekre",
55
+ "The media is encrypted and we do not have the keys to decrypt it.": "A média titkosítva van és nincsenek kulcsok a visszafejtéshez.",
56
+ "Close Modal Dialog": "Felugró ablak bezárása",
57
+ "Modal Window": "Felugró ablak",
58
+ "This modal can be closed by pressing the Escape key or activating the close button.": "Ezt a felugró ablakot az Escape gomb megnyomásával vagy a bezáró gomb aktiválásával lehet bezárni.",
59
+ ", selected": ", kiválasztva",
60
+ "descriptions settings": "leírások beállítása",
61
+ "Text Edge Style": "Szövegél stílus",
62
+ "This is a modal window": "Ez egy felugró ablak",
63
+ "Cyan": "Cián",
64
+ "Dropshadow": "Árnyék",
65
+ "End of dialog window.": "Párbeszédablak vége.",
66
+ "Progress Bar": "Folyamatjelző sáv",
67
+ "Beginning of dialog window. Escape will cancel and close the window.": "Párbeszédablak eleje. Az Escape gomb befejezi és bezárja az ablakot.",
68
+ "Caption Settings Dialog": "Feliratbeállítások párbeszédablak",
69
+ ", opens descriptions settings dialog": ", megnyitja a leírások beállításainak párbeszédablakját",
70
+ ", opens captions settings dialog": ", megnyitja a magyarázó szövegek beállításainak párbeszédablakját",
71
+ ", opens subtitles settings dialog": ", megnyitja a feliratok beállításainak párbeszédablakját",
72
+ "Seek to live, currently behind live": "Élő adáshoz tekerés, jelenleg az élő adás mögött van",
73
+ "Seek to live, currently playing live": "Élő adáshoz tekerés, jelenleg az élő adásnál van",
74
+ "progress bar timing: currentTime={1} duration={2}": "{1} / {2}",
75
+ "Magenta": "Lila",
76
+ "Script": "Script",
77
+ "Casual": "Casual",
78
+ "Monospace Serif": "Monospace Serif",
79
+ "Monospace Sans-Serif": "Monospace Sans-Serif",
80
+ "Proportional Sans-Serif": "Proportional Sans-Serif",
81
+ "Proportional Serif": "Proportional Serif",
82
+ "Uniform": "Uniform",
83
+ "Small Caps": "Kiskapitális",
84
+ "None": "Egyik sem",
85
+ "captions settings": "magyarázó szövegek beállításai",
86
+ "subtitles settings": "feliratok beállításai",
87
+ "Raised": "Emelt",
88
+ "Depressed": "Nyomott"
89
  }
vendor/videojs/lang/index.html DELETED
@@ -1 +0,0 @@
1
- <!DOCTYPE html><title></title>
 
vendor/videojs/lang/it.js CHANGED
@@ -1,6 +1,9 @@
1
  videojs.addLanguage('it', {
 
 
2
  "Play": "Play",
3
  "Pause": "Pausa",
 
4
  "Current Time": "Orario attuale",
5
  "Duration": "Durata",
6
  "Remaining Time": "Tempo rimanente",
@@ -8,8 +11,10 @@ videojs.addLanguage('it', {
8
  "LIVE": "LIVE",
9
  "Loaded": "Caricato",
10
  "Progress": "Stato",
 
 
11
  "Fullscreen": "Schermo intero",
12
- "Non-Fullscreen": "Chiudi schermo intero",
13
  "Mute": "Muto",
14
  "Unmute": "Audio",
15
  "Playback Rate": "Tasso di riproduzione",
@@ -18,9 +23,61 @@ videojs.addLanguage('it', {
18
  "Captions": "Sottotitoli non udenti",
19
  "captions off": "Senza sottotitoli non udenti",
20
  "Chapters": "Capitolo",
 
 
 
 
21
  "You aborted the media playback": "La riproduzione del filmato è stata interrotta.",
22
  "A network error caused the media download to fail part-way.": "Il download del filmato è stato interrotto a causa di un problema rete.",
23
  "The media could not be loaded, either because the server or network failed or because the format is not supported.": "Il filmato non può essere caricato a causa di un errore nel server o nella rete o perché il formato non viene supportato.",
24
  "The media playback was aborted due to a corruption problem or because the media used features your browser did not support.": "La riproduzione del filmato è stata interrotta a causa di un file danneggiato o per l’utilizzo di impostazioni non supportate dal browser.",
25
- "No compatible source was found for this media.": "Non ci sono fonti compatibili per questo filmato."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26
  });
1
  videojs.addLanguage('it', {
2
+ "Audio Player": "Lettore audio",
3
+ "Video Player": "Lettore video",
4
  "Play": "Play",
5
  "Pause": "Pausa",
6
+ "Replay": "Replay",
7
  "Current Time": "Orario attuale",
8
  "Duration": "Durata",
9
  "Remaining Time": "Tempo rimanente",
11
  "LIVE": "LIVE",
12
  "Loaded": "Caricato",
13
  "Progress": "Stato",
14
+ "Progress Bar": "Barra di avanzamento",
15
+ "progress bar timing: currentTime={1} duration={2}": "{1} di {2}",
16
  "Fullscreen": "Schermo intero",
17
+ "Non-Fullscreen": "Chiudi Schermo intero",
18
  "Mute": "Muto",
19
  "Unmute": "Audio",
20
  "Playback Rate": "Tasso di riproduzione",
23
  "Captions": "Sottotitoli non udenti",
24
  "captions off": "Senza sottotitoli non udenti",
25
  "Chapters": "Capitolo",
26
+ "Descriptions": "Descrizioni",
27
+ "descriptions off": "Descrizioni disattivate",
28
+ "Audio Track": "Traccia audio",
29
+ "Volume Level": "Livello del volume",
30
  "You aborted the media playback": "La riproduzione del filmato è stata interrotta.",
31
  "A network error caused the media download to fail part-way.": "Il download del filmato è stato interrotto a causa di un problema rete.",
32
  "The media could not be loaded, either because the server or network failed or because the format is not supported.": "Il filmato non può essere caricato a causa di un errore nel server o nella rete o perché il formato non viene supportato.",
33
  "The media playback was aborted due to a corruption problem or because the media used features your browser did not support.": "La riproduzione del filmato è stata interrotta a causa di un file danneggiato o per l’utilizzo di impostazioni non supportate dal browser.",
34
+ "No compatible source was found for this media.": "Non ci sono fonti compatibili per questo filmato.",
35
+ "The media is encrypted and we do not have the keys to decrypt it.": "Il contenuto multimediale è criptato e non disponiamo delle chiavi per decifrarlo.",
36
+ "Play Video": "Riprodurre il video",
37
+ "Close": "Chiudere",
38
+ "Close Modal Dialog": "Chiudere la finestra di dialogo",
39
+ "Modal Window": "Finestra di dialogo",
40
+ "This is a modal window": "Questa è una finestra di dialogo",
41
+ "This modal can be closed by pressing the Escape key or activating the close button.": "Questa finestra di dialogo può essere chiusa premendo sul tasto Esc o attivando il pulsante di chiusura.",
42
+ ", opens captions settings dialog": ", aprire i parametri della trascrizione dei sottotitoli",
43
+ ", opens subtitles settings dialog": ", aprire i parametri dei sottotitoli",
44
+ ", opens descriptions settings dialog": ", aprire i parametri delle descrizioni",
45
+ ", selected": ", selezionato",
46
+ "captions settings": "Parametri della trascrizione dei sottotitoli",
47
+ "subtitles settings": "Parametri dei sottotitoli",
48
+ "descriptions settings": "Parametri delle descrizioni",
49
+ "Text": "Testo",
50
+ "White": "Bianco",
51
+ "Black": "Nero",
52
+ "Red": "Rosso",
53
+ "Green": "Verde",
54
+ "Blue": "Blu",
55
+ "Yellow": "Giallo",
56
+ "Magenta": "Magenta",
57
+ "Cyan": "Ciano",
58
+ "Background": "Sfondo",
59
+ "Window": "Finestra",
60
+ "Transparent": "Trasparente",
61
+ "Semi-Transparent": "Semi-Trasparente",
62
+ "Opaque": "Opaco",
63
+ "Font Size": "Dimensione dei caratteri",
64
+ "Text Edge Style": "Stile dei bordi del testo",
65
+ "None": "Nessuno",
66
+ "Uniform": "Uniforme",
67
+ "Dropshadow": "Ombreggiatura",
68
+ "Font Family": "Famiglia di caratteri",
69
+ "Proportional Sans-Serif": "Carattere a spaziatura variabile senza grazie (Proportional Sans-Serif)",
70
+ "Monospace Sans-Serif": "Carattere a spaziatura fissa senza grazie (Monospace Sans-Serif)",
71
+ "Proportional Serif": "Carattere a spaziatura variabile con grazie (Proportional Serif)",
72
+ "Monospace Serif": "Carattere a spaziatura fissa con grazie (Monospace Serif)",
73
+ "Small Caps": "Maiuscoletto",
74
+ "Reset": "Reinizializzare",
75
+ "restore all settings to the default values": "Ripristinare i valori predefiniti per tutti i parametri",
76
+ "Done": "Operazione completata",
77
+ "Caption Settings Dialog": "Finestra di dialogo dei parametri della trascrizione dei sottotitoli",
78
+ "Beginning of dialog window. Escape will cancel and close the window.": "Inizio della finestra di dialogo. Il tasto Esc annullerà l’operazione e chiuderà la finestra.",
79
+ "End of dialog window.": "Fine della finestra di dialogo.",
80
+ "{1} is loading.": "{1} in fase di caricamento.",
81
+ "Exit Picture-in-Picture": "Uscire dalla modalità Picture-in-Picture",
82
+ "Picture-in-Picture": "Picture-in-Picture"
83
  });
vendor/videojs/lang/it.json CHANGED
@@ -1,6 +1,9 @@
1
  {
 
 
2
  "Play": "Play",
3
  "Pause": "Pausa",
 
4
  "Current Time": "Orario attuale",
5
  "Duration": "Durata",
6
  "Remaining Time": "Tempo rimanente",
@@ -8,8 +11,10 @@
8
  "LIVE": "LIVE",
9
  "Loaded": "Caricato",
10
  "Progress": "Stato",
 
 
11
  "Fullscreen": "Schermo intero",
12
- "Non-Fullscreen": "Chiudi schermo intero",
13
  "Mute": "Muto",
14
  "Unmute": "Audio",
15
  "Playback Rate": "Tasso di riproduzione",
@@ -18,9 +23,61 @@
18
  "Captions": "Sottotitoli non udenti",
19
  "captions off": "Senza sottotitoli non udenti",
20
  "Chapters": "Capitolo",
 
 
 
 
21
  "You aborted the media playback": "La riproduzione del filmato è stata interrotta.",
22
  "A network error caused the media download to fail part-way.": "Il download del filmato è stato interrotto a causa di un problema rete.",
23
  "The media could not be loaded, either because the server or network failed or because the format is not supported.": "Il filmato non può essere caricato a causa di un errore nel server o nella rete o perché il formato non viene supportato.",
24
  "The media playback was aborted due to a corruption problem or because the media used features your browser did not support.": "La riproduzione del filmato è stata interrotta a causa di un file danneggiato o per l’utilizzo di impostazioni non supportate dal browser.",
25
- "No compatible source was found for this media.": "Non ci sono fonti compatibili per questo filmato."
26
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  {
2
+ "Audio Player": "Lettore audio",
3
+ "Video Player": "Lettore video",
4
  "Play": "Play",
5
  "Pause": "Pausa",
6
+ "Replay": "Replay",
7
  "Current Time": "Orario attuale",
8
  "Duration": "Durata",
9
  "Remaining Time": "Tempo rimanente",
11
  "LIVE": "LIVE",
12
  "Loaded": "Caricato",
13
  "Progress": "Stato",
14
+ "Progress Bar": "Barra di avanzamento",
15
+ "progress bar timing: currentTime={1} duration={2}": "{1} di {2}",
16
  "Fullscreen": "Schermo intero",
17
+ "Non-Fullscreen": "Chiudi Schermo intero",
18
  "Mute": "Muto",
19
  "Unmute": "Audio",
20
  "Playback Rate": "Tasso di riproduzione",
23
  "Captions": "Sottotitoli non udenti",
24
  "captions off": "Senza sottotitoli non udenti",
25
  "Chapters": "Capitolo",
26
+ "Descriptions": "Descrizioni",
27
+ "descriptions off": "Descrizioni disattivate",
28
+ "Audio Track": "Traccia audio",
29
+ "Volume Level": "Livello del volume",
30
  "You aborted the media playback": "La riproduzione del filmato è stata interrotta.",
31
  "A network error caused the media download to fail part-way.": "Il download del filmato è stato interrotto a causa di un problema rete.",
32
  "The media could not be loaded, either because the server or network failed or because the format is not supported.": "Il filmato non può essere caricato a causa di un errore nel server o nella rete o perché il formato non viene supportato.",
33
  "The media playback was aborted due to a corruption problem or because the media used features your browser did not support.": "La riproduzione del filmato è stata interrotta a causa di un file danneggiato o per l’utilizzo di impostazioni non supportate dal browser.",
34
+ "No compatible source was found for this media.": "Non ci sono fonti compatibili per questo filmato.",
35
+ "The media is encrypted and we do not have the keys to decrypt it.": "Il contenuto multimediale è criptato e non disponiamo delle chiavi per decifrarlo.",
36
+ "Play Video": "Riprodurre il video",
37
+ "Close": "Chiudere",
38
+ "Close Modal Dialog": "Chiudere la finestra di dialogo",
39
+ "Modal Window": "Finestra di dialogo",
40
+ "This is a modal window": "Questa è una finestra di dialogo",
41
+ "This modal can be closed by pressing the Escape key or activating the close button.": "Questa finestra di dialogo può essere chiusa premendo sul tasto Esc o attivando il pulsante di chiusura.",
42
+ ", opens captions settings dialog": ", aprire i parametri della trascrizione dei sottotitoli",
43
+ ", opens subtitles settings dialog": ", aprire i parametri dei sottotitoli",
44
+ ", opens descriptions settings dialog": ", aprire i parametri delle descrizioni",
45
+ ", selected": ", selezionato",
46
+ "captions settings": "Parametri della trascrizione dei sottotitoli",
47
+ "subtitles settings": "Parametri dei sottotitoli",
48
+ "descriptions settings": "Parametri delle descrizioni",
49
+ "Text": "Testo",
50
+ "White": "Bianco",
51
+ "Black": "Nero",
52
+ "Red": "Rosso",
53
+ "Green": "Verde",
54
+ "Blue": "Blu",
55
+ "Yellow": "Giallo",
56
+ "Magenta": "Magenta",
57
+ "Cyan": "Ciano",
58
+ "Background": "Sfondo",
59
+ "Window": "Finestra",
60
+ "Transparent": "Trasparente",
61
+ "Semi-Transparent": "Semi-Trasparente",
62
+ "Opaque": "Opaco",
63
+ "Font Size": "Dimensione dei caratteri",
64
+ "Text Edge Style": "Stile dei bordi del testo",
65
+ "None": "Nessuno",
66
+ "Uniform": "Uniforme",
67
+ "Dropshadow": "Ombreggiatura",
68
+ "Font Family": "Famiglia di caratteri",
69
+ "Proportional Sans-Serif": "Carattere a spaziatura variabile senza grazie (Proportional Sans-Serif)",
70
+ "Monospace Sans-Serif": "Carattere a spaziatura fissa senza grazie (Monospace Sans-Serif)",
71
+ "Proportional Serif": "Carattere a spaziatura variabile con grazie (Proportional Serif)",
72
+ "Monospace Serif": "Carattere a spaziatura fissa con grazie (Monospace Serif)",
73
+ "Small Caps": "Maiuscoletto",
74
+ "Reset": "Reinizializzare",
75
+ "restore all settings to the default values": "Ripristinare i valori predefiniti per tutti i parametri",
76
+ "Done": "Operazione completata",
77
+ "Caption Settings Dialog": "Finestra di dialogo dei parametri della trascrizione dei sottotitoli",
78
+ "Beginning of dialog window. Escape will cancel and close the window.": "Inizio della finestra di dialogo. Il tasto Esc annullerà l’operazione e chiuderà la finestra.",
79
+ "End of dialog window.": "Fine della finestra di dialogo.",
80
+ "{1} is loading.": "{1} in fase di caricamento.",
81
+ "Exit Picture-in-Picture": "Uscire dalla modalità Picture-in-Picture",
82
+ "Picture-in-Picture": "Picture-in-Picture"
83
+ }
vendor/videojs/lang/ja.js CHANGED
@@ -1,6 +1,9 @@
1
  videojs.addLanguage('ja', {
 
 
2
  "Play": "再生",
3
  "Pause": "一時停止",
 
4
  "Current Time": "現在の時間",
5
  "Duration": "長さ",
6
  "Remaining Time": "残りの時間",
@@ -8,6 +11,8 @@ videojs.addLanguage('ja', {
8
  "LIVE": "ライブ",
9
  "Loaded": "ロード済み",
10
  "Progress": "進行状況",
 
 
11
  "Fullscreen": "フルスクリーン",
12
  "Non-Fullscreen": "フルスクリーン以外",
13
  "Mute": "ミュート",
@@ -18,9 +23,61 @@ videojs.addLanguage('ja', {
18
  "Captions": "キャプション",
19
  "captions off": "キャプション オフ",
20
  "Chapters": "チャプター",
 
 
 
 
21
  "You aborted the media playback": "動画再生を中止しました",
22
  "A network error caused the media download to fail part-way.": "ネットワーク エラーにより動画のダウンロードが途中で失敗しました",
23
  "The media could not be loaded, either because the server or network failed or because the format is not supported.": "サーバーまたはネットワークのエラー、またはフォーマットがサポートされていないため、動画をロードできませんでした",
24
  "The media playback was aborted due to a corruption problem or because the media used features your browser did not support.": "破損の問題、またはお使いのブラウザがサポートしていない機能が動画に使用されていたため、動画の再生が中止されました",
25
- "No compatible source was found for this media.": "この動画に対して互換性のあるソースが見つかりませんでした"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26
  });
1
  videojs.addLanguage('ja', {
2
+ "Audio Player": "オーディオプレイヤー",
3
+ "Video Player": "ビデオプレイヤー",
4
  "Play": "再生",
5
  "Pause": "一時停止",
6
+ "Replay": "もう一度見る",
7
  "Current Time": "現在の時間",
8
  "Duration": "長さ",
9
  "Remaining Time": "残りの時間",
11
  "LIVE": "ライブ",
12
  "Loaded": "ロード済み",
13
  "Progress": "進行状況",
14
+ "Progress Bar": "シークバー",
15
+ "progress bar timing: currentTime={1} duration={2}": "{2}の{1}",
16
  "Fullscreen": "フルスクリーン",
17
  "Non-Fullscreen": "フルスクリーン以外",
18
  "Mute": "ミュート",
23
  "Captions": "キャプション",
24
  "captions off": "キャプション オフ",
25
  "Chapters": "チャプター",
26
+ "Descriptions": "ディスクリプション",
27
+ "descriptions off": "ディスクリプションオフ",
28
+ "Audio Track": "音声トラック",
29
+ "Volume Level": "ボリュームレベル",
30
  "You aborted the media playback": "動画再生を中止しました",
31
  "A network error caused the media download to fail part-way.": "ネットワーク エラーにより動画のダウンロードが途中で失敗しました",
32
  "The media could not be loaded, either because the server or network failed or because the format is not supported.": "サーバーまたはネットワークのエラー、またはフォーマットがサポートされていないため、動画をロードできませんでした",
33
  "The media playback was aborted due to a corruption problem or because the media used features your browser did not support.": "破損の問題、またはお使いのブラウザがサポートしていない機能が動画に使用されていたため、動画の再生が中止されました",
34
+ "No compatible source was found for this media.": "この動画に対して互換性のあるソースが見つかりませんでした",
35
+ "The media is encrypted and we do not have the keys to decrypt it.": "メディアは暗号化されており、解読するためのキーがありません。",
36
+ "Play Video": "ビデオを再生する",
37
+ "Close": "閉じる",
38
+ "Close Modal Dialog": "ダイアログボックスを閉じる",
39
+ "Modal Window": "ダイアログボックス",
40
+ "This is a modal window": "これはダイアログボックスです",
41
+ "This modal can be closed by pressing the Escape key or activating the close button.": "このダイアログボックスは、Escキーを押すか、閉じるボタンを押して閉じることができま",
42
+ ", opens captions settings dialog": ", 書き起こし字幕の設定を開く",
43
+ ", opens subtitles settings dialog": ", 字幕の設定を開く",
44
+ ", opens descriptions settings dialog": ", ディスクリプションの設定を開く",
45
+ ", selected": ", 選択済み",
46
+ "captions settings": "書き起こし字幕の設定",
47
+ "subtitles settings": "字幕の設定",
48
+ "descriptions settings": "ディスクリプションの設定",
49
+ "Text": "テキスト",
50
+ "White": "白",
51
+ "Black": "黒",
52
+ "Red": "赤",
53
+ "Green": "緑",
54
+ "Blue": "青",
55
+ "Yellow": "黄",
56
+ "Magenta": "赤紫",
57
+ "Cyan": "シアン",
58
+ "Background": "背景",
59
+ "Window": "ウィンドウ",
60
+ "Transparent": "透明",
61
+ "Semi-Transparent": "半透明",
62
+ "Opaque": "不透明",
63
+ "Font Size": "文字サイズ",
64
+ "Text Edge Style": "テキストのアウトラインのスタイル",
65
+ "None": "なし",
66
+ "Uniform": "均一",
67
+ "Dropshadow": "影付き",
68
+ "Font Family": "フォントの種類",
69
+ "Proportional Sans-Serif": "セリフなし可変幅フォント",
70
+ "Monospace Sans-Serif": "セリフなし等幅フォント",
71
+ "Proportional Serif": "セリフあり可変幅フォント",
72
+ "Monospace Serif": "セリフあり等幅フォント",
73
+ "Small Caps": "スモールキャピタル",
74
+ "Reset": "リセット",
75
+ "restore all settings to the default values": "すべての設定をデフォルト値に戻す",
76
+ "Done": "終了",
77
+ "Caption Settings Dialog": "書き起こし字幕設定ダイアログ",
78
+ "Beginning of dialog window. Escape will cancel and close the window.": "ダイアログボックスの開始。Escキーでキャンセルしてウィンドウを閉じます。",
79
+ "End of dialog window.": "ダイアログボックスの終了",
80
+ "{1} is loading.": "{1}は読み込み中です。",
81
+ "Exit Picture-in-Picture": "ピクチャーインピクチャー機能の終了",
82
+ "Picture-in-Picture": "ピクチャーインピクチャー"
83
  });
vendor/videojs/lang/ja.json CHANGED
@@ -1,6 +1,9 @@
1
  {
 
 
2
  "Play": "再生",
3
  "Pause": "一時停止",
 
4
  "Current Time": "現在の時間",
5
  "Duration": "長さ",
6
  "Remaining Time": "残りの時間",
@@ -8,6 +11,8 @@
8
  "LIVE": "ライブ",
9
  "Loaded": "ロード済み",
10
  "Progress": "進行状況",
 
 
11
  "Fullscreen": "フルスクリーン",
12
  "Non-Fullscreen": "フルスクリーン以外",
13
  "Mute": "ミュート",
@@ -18,9 +23,61 @@
18
  "Captions": "キャプション",
19
  "captions off": "キャプション オフ",
20
  "Chapters": "チャプター",
 
 
 
 
21
  "You aborted the media playback": "動画再生を中止しました",
22
  "A network error caused the media download to fail part-way.": "ネットワーク エラーにより動画のダウンロードが途中で失敗しました",
23
  "The media could not be loaded, either because the server or network failed or because the format is not supported.": "サーバーまたはネットワークのエラー、またはフォーマットがサポートされていないため、動画をロードできませんでした",
24
  "The media playback was aborted due to a corruption problem or because the media used features your browser did not support.": "破損の問題、またはお使いのブラウザがサポートしていない機能が動画に使用されていたため、動画の再生が中止されました",
25
- "No compatible source was found for this media.": "この動画に対して互換性のあるソースが見つかりませんでした"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26
  }
1
  {
2
+ "Audio Player": "オーディオプレイヤー",
3
+ "Video Player": "ビデオプレイヤー",
4
  "Play": "再生",
5
  "Pause": "一時停止",
6
+ "Replay": "もう一度見る",
7
  "Current Time": "現在の時間",
8
  "Duration": "長さ",
9
  "Remaining Time": "残りの時間",
11
  "LIVE": "ライブ",
12
  "Loaded": "ロード済み",
13
  "Progress": "進行状況",
14
+ "Progress Bar": "シークバー",
15
+ "progress bar timing: currentTime={1} duration={2}": "{2}の{1}",
16
  "Fullscreen": "フルスクリーン",
17
  "Non-Fullscreen": "フルスクリーン以外",
18
  "Mute": "ミュート",
23
  "Captions": "キャプション",
24
  "captions off": "キャプション オフ",
25
  "Chapters": "チャプター",
26
+ "Descriptions": "ディスクリプション",
27
+ "descriptions off": "ディスクリプションオフ",
28
+ "Audio Track": "音声トラック",
29
+ "Volume Level": "ボリュームレベル",
30
  "You aborted the media playback": "動画再生を中止しました",
31
  "A network error caused the media download to fail part-way.": "ネットワーク エラーにより動画のダウンロードが途中で失敗しました",
32
  "The media could not be loaded, either because the server or network failed or because the format is not supported.": "サーバーまたはネットワークのエラー、またはフォーマットがサポートされていないため、動画をロードできませんでした",
33
  "The media playback was aborted due to a corruption problem or because the media used features your browser did not support.": "破損の問題、またはお使いのブラウザがサポートしていない機能が動画に使用されていたため、動画の再生が中止されました",
34
+ "No compatible source was found for this media.": "この動画に対して互換性のあるソースが見つかりませんでした",
35
+ "The media is encrypted and we do not have the keys to decrypt it.": "メディアは暗号化されており、解読するためのキーがありません。",
36
+ "Play Video": "ビデオを再生する",
37
+ "Close": "閉じる",
38
+ "Close Modal Dialog": "ダイアログボックスを閉じる",
39
+ "Modal Window": "ダイアログボックス",
40
+ "This is a modal window": "これはダイアログボックスです",
41
+ "This modal can be closed by pressing the Escape key or activating the close button.": "このダイアログボックスは、Escキーを押すか、閉じるボタンを押して閉じることができま",
42
+ ", opens captions settings dialog": ", 書き起こし字幕の設定を開く",
43
+ ", opens subtitles settings dialog": ", 字幕の設定を開く",
44
+ ", opens descriptions settings dialog": ", ディスクリプションの設定を開く",
45
+ ", selected": ", 選択済み",
46
+ "captions settings": "書き起こし字幕の設定",
47
+ "subtitles settings": "字幕の設定",
48
+ "descriptions settings": "ディスクリプションの設定",
49
+ "Text": "テキスト",
50
+ "White": "白",
51
+ "Black": "黒",
52
+ "Red": "赤",
53
+ "Green": "緑",
54
+ "Blue": "青",
55
+ "Yellow": "黄",
56
+ "Magenta": "赤紫",
57
+ "Cyan": "シアン",
58
+ "Background": "背景",
59
+ "Window": "ウィンドウ",
60
+ "Transparent": "透明",
61
+ "Semi-Transparent": "半透明",
62
+ "Opaque": "不透明",
63
+ "Font Size": "文字サイズ",
64
+ "Text Edge Style": "テキストのアウトラインのスタイル",
65
+ "None": "なし",
66
+ "Uniform": "均一",
67
+ "Dropshadow": "影付き",
68
+ "Font Family": "フォントの種類",
69
+ "Proportional Sans-Serif": "セリフなし可変幅フォント",
70
+ "Monospace Sans-Serif": "セリフなし等幅フォント",
71
+ "Proportional Serif": "セリフあり可変幅フォント",
72
+ "Monospace Serif": "セリフあり等幅フォント",
73
+ "Small Caps": "スモールキャピタル",
74
+ "Reset": "リセット",
75
+ "restore all settings to the default values": "すべての設定をデフォルト値に戻す",
76
+ "Done": "終了",
77
+ "Caption Settings Dialog": "書き起こし字幕設定ダイアログ",
78
+ "Beginning of dialog window. Escape will cancel and close the window.": "ダイアログボックスの開始。Escキーでキャンセルしてウィンドウを閉じます。",
79
+ "End of dialog window.": "ダイアログボックスの終了",
80
+ "{1} is loading.": "{1}は読み込み中です。",
81
+ "Exit Picture-in-Picture": "ピクチャーインピクチャー機能の終了",
82
+ "Picture-in-Picture": "ピクチャーインピクチャー"
83
  }
vendor/videojs/lang/ko.js CHANGED
@@ -1,6 +1,9 @@
1
  videojs.addLanguage('ko', {
 
 
2
  "Play": "재생",
3
  "Pause": "일시중지",
 
4
  "Current Time": "현재 시간",
5
  "Duration": "지정 기간",
6
  "Remaining Time": "남은 시간",
@@ -8,6 +11,8 @@ videojs.addLanguage('ko', {
8
  "LIVE": "라이브",
9
  "Loaded": "로드됨",
10
  "Progress": "진행",
 
 
11
  "Fullscreen": "전체 화면",
12
  "Non-Fullscreen": "전체 화면 해제",
13
  "Mute": "음소거",
@@ -18,9 +23,60 @@ videojs.addLanguage('ko', {
18
  "Captions": "자막",
19
  "captions off": "자막 끄기",
20
  "Chapters": "챕터",
 
 
 
 
21
  "You aborted the media playback": "비디오 재생을 취소했습니다.",
22
  "A network error caused the media download to fail part-way.": "네트워크 오류로 인하여 비디오 일부를 다운로드하지 못 했습니다.",
23
  "The media could not be loaded, either because the server or network failed or because the format is not supported.": "비디오를 로드할 수 없습니다. 서버 혹은 네트워크 오류 때문이거나 지원되지 않는 형식 때문일 수 있습니다.",
24
  "The media playback was aborted due to a corruption problem or because the media used features your browser did not support.": "비디오 재생이 취소됐습니다. 비디오가 손상되었거나 비디오가 사용하는 기능을 브라우저에서 지원하지 않는 것 같습니다.",
25
- "No compatible source was found for this media.": "비디오에 호환되지 않는 소스가 있습니다."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26
  });
1
  videojs.addLanguage('ko', {
2
+ "Audio Player": "오디오 플레이어",
3
+ "Video Player": "비디오 플레이어",
4
  "Play": "재생",
5
  "Pause": "일시중지",
6
+ "Replay": "다시 재생",
7
  "Current Time": "현재 시간",
8
  "Duration": "지정 기간",
9
  "Remaining Time": "남은 시간",
11
  "LIVE": "라이브",
12
  "Loaded": "로드됨",
13
  "Progress": "진행",
14
+ "Progress Bar": "진행 표시줄",
15
+ "progress bar timing: currentTime={1} duration={2}": "{2} 중 {1}",
16
  "Fullscreen": "전체 화면",
17
  "Non-Fullscreen": "전체 화면 해제",
18
  "Mute": "음소거",
23
  "Captions": "자막",
24
  "captions off": "자막 끄기",
25
  "Chapters": "챕터",
26
+ "Descriptions": "제품 설명",
27
+ "descriptions off": "제품 설명 끄기",
28
+ "Audio Track": "오디오 트랙",
29
+ "Volume Level": "볼륨 레벨",
30
  "You aborted the media playback": "비디오 재생을 취소했습니다.",
31
  "A network error caused the media download to fail part-way.": "네트워크 오류로 인하여 비디오 일부를 다운로드하지 못 했습니다.",
32
  "The media could not be loaded, either because the server or network failed or because the format is not supported.": "비디오를 로드할 수 없습니다. 서버 혹은 네트워크 오류 때문이거나 지원되지 않는 형식 때문일 수 있습니다.",
33
  "The media playback was aborted due to a corruption problem or because the media used features your browser did not support.": "비디오 재생이 취소됐습니다. 비디오가 손상되었거나 비디오가 사용하는 기능을 브라우저에서 지원하지 않는 것 같습니다.",
34
+ "No compatible source was found for this media.": "비디오에 호환되지 않는 소스가 있습니다.",
35
+ "The media is encrypted and we do not have the keys to decrypt it.": "미디어는 암호화되어 있으며 이를 해독할 키를 갖고 있지 않습니다.",
36
+ "Play Video": "영상 재생",
37
+ "Close": "닫기",
38
+ "Close Modal Dialog": "대화 상자 닫기",
39
+ "Modal Window": "모달 창",
40
+ "This is a modal window": "모달 창입니다",
41
+ "This modal can be closed by pressing the Escape key or activating the close button.": "이 모달은 Esc 키를 누르거나 닫기 버튼을 활성화하여 닫을 수 있습니다.",
42
+ ", opens captions settings dialog": ", 캡션 설정 대화 상자가 열립니다",
43
+ ", opens subtitles settings dialog": ", 자막 설정 대화 상자가 열립니다",
44
+ ", opens descriptions settings dialog": ", 설명 설정 대화 상자가 열립니다",
45
+ ", selected": ", 선택됨",
46
+ "captions settings": "캡션 설정",
47
+ "subtitles settings": "자막 설정",
48
+ "descriptions settings": "설명 설정",
49
+ "Text": "텍스트",
50
+ "White": "화이트",
51
+ "Black": "블랙",
52
+ "Red": "레드",
53
+ "Green": "그린",
54
+ "Blue": "블루",
55
+ "Yellow": "옐로우",
56
+ "Magenta": "마젠타",
57
+ "Cyan": "씨엉",
58
+ "Background": "배경",
59
+ "Window": "창",
60
+ "Transparent": "투명",
61
+ "Semi-Transparent": "반투명",
62
+ "Opaque": "불투명",
63
+ "Font Size": "폰트 크기",
64
+ "Text Edge Style": "텍스트 가장자리 스타일",
65
+ "None": "없음",
66
+ "Uniform": "균일",
67
+ "Font Family": "폰트 모음",
68
+ "Proportional Sans-Serif": "비례 산세리프체",
69
+ "Monospace Sans-Serif": "고정폭 산세리프체",
70
+ "Proportional Serif": "비례 세리프체",
71
+ "Monospace Serif": "고정폭 세리프체",
72
+ "Small Caps": "소문자",
73
+ "Reset": "리셋",
74
+ "restore all settings to the default values": "모든 설정을 기본값으로 복원",
75
+ "Done": "완료",
76
+ "Caption Settings Dialog": "캡션 설정 대화 상자",
77
+ "Beginning of dialog window. Escape will cancel and close the window.": "대화창 시작. Esc 키를 누르면 취소되고 창이 닫힙니다.",
78
+ "End of dialog window.": "대화창 종료",
79
+ "{1} is loading.": "{1}이(가) 로딩 중입니다.",
80
+ "Exit Picture-in-Picture": "Picture-in-Picture 종료",
81
+ "Picture-in-Picture": "Picture-in-Picture"
82
  });
vendor/videojs/lang/ko.json CHANGED
@@ -1,6 +1,9 @@
1
  {
 
 
2
  "Play": "재생",
3
  "Pause": "일시중지",
 
4
  "Current Time": "현재 시간",
5
  "Duration": "지정 기간",
6
  "Remaining Time": "남은 시간",
@@ -8,6 +11,8 @@
8
  "LIVE": "라이브",
9
  "Loaded": "로드됨",
10
  "Progress": "진행",
 
 
11
  "Fullscreen": "전체 화면",
12
  "Non-Fullscreen": "전체 화면 해제",
13
  "Mute": "음소거",
@@ -18,9 +23,60 @@
18
  "Captions": "자막",
19
  "captions off": "자막 끄기",
20
  "Chapters": "챕터",
 
 
 
 
21
  "You aborted the media playback": "비디오 재생을 취소했습니다.",
22
  "A network error caused the media download to fail part-way.": "네트워크 오류로 인하여 비디오 일부를 다운로드하지 못 했습니다.",
23
  "The media could not be loaded, either because the server or network failed or because the format is not supported.": "비디오를 로드할 수 없습니다. 서버 혹은 네트워크 오류 때문이거나 지원되지 않는 형식 때문일 수 있습니다.",
24
  "The media playback was aborted due to a corruption problem or because the media used features your browser did not support.": "비디오 재생이 취소됐습니다. 비디오가 손상되었거나 비디오가 사용하는 기능을 브라우저에서 지원하지 않는 것 같습니다.",
25
- "No compatible source was found for this media.": "비디오에 호환되지 않는 소스가 있습니다."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26
  }
1
  {
2
+ "Audio Player": "오디오 플레이어",
3
+ "Video Player": "비디오 플레이어",
4
  "Play": "재생",
5
  "Pause": "일시중지",
6
+ "Replay": "다시 재생",
7
  "Current Time": "현재 시간",
8
  "Duration": "지정 기간",
9
  "Remaining Time": "남은 시간",
11
  "LIVE": "라이브",
12
  "Loaded": "로드됨",
13
  "Progress": "진행",
14
+ "Progress Bar": "진행 표시줄",
15
+ "progress bar timing: currentTime={1} duration={2}": "{2} 중 {1}",
16
  "Fullscreen": "전체 화면",
17
  "Non-Fullscreen": "전체 화면 해제",
18
  "Mute": "음소거",
23
  "Captions": "자막",
24
  "captions off": "자막 끄기",
25
  "Chapters": "챕터",
26
+ "Descriptions": "제품 설명",
27
+ "descriptions off": "제품 설명 끄기",
28
+ "Audio Track": "오디오 트랙",
29
+ "Volume Level": "볼륨 레벨",
30
  "You aborted the media playback": "비디오 재생을 취소했습니다.",
31
  "A network error caused the media download to fail part-way.": "네트워크 오류로 인하여 비디오 일부를 다운로드하지 못 했습니다.",
32
  "The media could not be loaded, either because the server or network failed or because the format is not supported.": "비디오를 로드할 수 없습니다. 서버 혹은 네트워크 오류 때문이거나 지원되지 않는 형식 때문일 수 있습니다.",
33
  "The media playback was aborted due to a corruption problem or because the media used features your browser did not support.": "비디오 재생이 취소됐습니다. 비디오가 손상되었거나 비디오가 사용하는 기능을 브라우저에서 지원하지 않는 것 같습니다.",
34
+ "No compatible source was found for this media.": "비디오에 호환되지 않는 소스가 있습니다.",
35
+ "The media is encrypted and we do not have the keys to decrypt it.": "미디어는 암호화되어 있으며 이를 해독할 키를 갖고 있지 않습니다.",
36
+ "Play Video": "영상 재생",
37
+ "Close": "닫기",
38
+ "Close Modal Dialog": "대화 상자 닫기",
39
+ "Modal Window": "모달 창",
40
+ "This is a modal window": "모달 창입니다",
41
+ "This modal can be closed by pressing the Escape key or activating the close button.": "이 모달은 Esc 키를 누르거나 닫기 버튼을 활성화하여 닫을 수 있습니다.",
42
+ ", opens captions settings dialog": ", 캡션 설정 대화 상자가 열립니다",
43
+ ", opens subtitles settings dialog": ", 자막 설정 대화 상자가 열립니다",
44
+ ", opens descriptions settings dialog": ", 설명 설정 대화 상자가 열립니다",
45
+ ", selected": ", 선택됨",
46
+ "captions settings": "캡션 설정",
47
+ "subtitles settings": "자막 설정",
48
+ "descriptions settings": "설명 설정",
49
+ "Text": "텍스트",
50
+ "White": "화이트",
51
+ "Black": "블랙",
52
+ "Red": "레드",
53
+ "Green": "그린",
54
+ "Blue": "블루",
55
+ "Yellow": "옐로우",
56
+ "Magenta": "마젠타",
57
+ "Cyan": "씨엉",
58
+ "Background": "배경",
59
+ "Window": "창",
60
+ "Transparent": "투명",
61
+ "Semi-Transparent": "반투명",
62
+ "Opaque": "불투명",
63
+ "Font Size": "폰트 크기",
64
+ "Text Edge Style": "텍스트 가장자리 스타일",
65
+ "None": "없음",
66
+ "Uniform": "균일",
67
+ "Font Family": "폰트 모음",
68
+ "Proportional Sans-Serif": "비례 산세리프체",
69
+ "Monospace Sans-Serif": "고정폭 산세리프체",
70
+ "Proportional Serif": "비례 세리프체",
71
+ "Monospace Serif": "고정폭 세리프체",
72
+ "Small Caps": "소문자",
73
+ "Reset": "리셋",
74
+ "restore all settings to the default values": "모든 설정을 기본값으로 복원",
75
+ "Done": "완료",
76
+ "Caption Settings Dialog": "캡션 설정 대화 상자",
77
+ "Beginning of dialog window. Escape will cancel and close the window.": "대화창 시작. Esc 키를 누르면 취소되고 창이 닫힙니다.",
78
+ "End of dialog window.": "대화창 종료",
79
+ "{1} is loading.": "{1}이(가) 로딩 중입니다.",
80
+ "Exit Picture-in-Picture": "Picture-in-Picture 종료",
81
+ "Picture-in-Picture": "Picture-in-Picture"
82
  }
vendor/videojs/lang/lv.js ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ videojs.addLanguage('lv', {
2
+ "Audio Player": "Audio atskaņotājs",
3
+ "Video Player": "Video atskaņotājs",
4
+ "Play": "Atskaņot",
5
+ "Pause": "Pauzēt",
6
+ "Replay": "Atkārtot",
7
+ "Current Time": "Esošais laiks",
8
+ "Duration": "Ilgums",
9
+ "Remaining Time": "Atlikušais laiks",
10
+ "Stream Type": "Straumes veids",
11
+ "LIVE": "LIVE",
12
+ "Seek to live, currently behind live": "Pāriet uz tiešraidi",
13
+ "Seek to live, currently playing live": "Pāriet uz tiešraidi",
14
+ "Loaded": "Ielādēts",
15
+ "Progress": "Progress",
16
+ "Progress Bar": "Progresa josla",
17
+ "progress bar timing: currentTime={1} duration={2}": "{1} no {2}",
18
+ "Fullscreen": "Pilnekrāna režīms",
19
+ "Non-Fullscreen": "Iziet no pilnekrāna režīma",
20
+ "Mute": "Izslēgt skaņu",
21
+ "Unmute": "Ieslēgt skaņu",
22
+ "Playback Rate": "Atskaņošanas ātrums",
23
+ "Subtitles": "Subtitri",
24
+ "subtitles off": "Izslēgt subtitrus",
25
+ "Captions": "Paraksti",
26
+ "captions off": "Izslēgt parakstus",
27
+ "Chapters": "Temati",
28
+ "Descriptions": "Apraksti",
29
+ "descriptions off": "Izslēgt aprakstus",
30
+ "Audio Track": "Audio celiņš",
31
+ "Volume Level": "Skaļums",
32
+ "You aborted the media playback": "Atskaņošana atcelta",
33
+ "A network error caused the media download to fail part-way.": "Tīkla kļūdas dēļ, multivides lejupielāde neizdevās.",
34
+ "The media could not be loaded, either because the server or network failed or because the format is not supported.": "Neizdevās ielādēt multividi, iespējams severa, vai tīkla kļūmes dēļ, vai neatbalstīta formāta dēļ.",
35
+ "The media playback was aborted due to a corruption problem or because the media used features your browser did not support.": "Atskaņošana tika pārtraukta tīkla kļūmes dēļ vai pārlūkprogrammas iespēju trūkuma dēļ.",
36
+ "No compatible source was found for this media.": "Netika atrasts atbilstošs multivides avots.",
37
+ "The media is encrypted and we do not have the keys to decrypt it.": "Multividi nevar atskaņot, jo tas ir kriptēts un nav pieejama dekriptēšanas atslēga.",
38
+ "Play Video": "Atskaņot video",
39
+ "Close": "Aizvērt",
40
+ "Close Modal Dialog": "Aizvērt logu",
41
+ "Modal Window": "Logs",
42
+ "This is a modal window": "Logs",
43
+ "This modal can be closed by pressing the Escape key or activating the close button.": "Šo logu var aizvērt, nospiežot uz aizvēršanas pogas vai taustiņa ESC.",
44
+ ", opens captions settings dialog": ", atvērs parakstu logu",
45
+ ", opens subtitles settings dialog": ", atvērs subtitru logu",
46
+ ", opens descriptions settings dialog": ", atvērs aprakstu logu",
47
+ ", selected": ", izvēlēts",
48
+ "captions settings": "parakstu iestatījumi",
49
+ "subtitles settings": "subtitru iestatījumi",
50
+ "descriptions settings": "aprakstu iestatījumi",
51
+ "Text": "Teksts",
52
+ "White": "Balts",
53
+ "Black": "Melns",
54
+ "Red": "Sarkans",
55
+ "Green": "Zaļš",
56
+ "Blue": "Zils",
57
+ "Yellow": "Dzeltens",
58
+ "Magenta": "Purpursarkana",
59
+ "Cyan": "Ciāna",
60
+ "Background": "Fons",
61
+ "Window": "Logs",
62
+ "Transparent": "Caurspīdīgs",
63
+ "Semi-Transparent": "Daļēji caurspīdīgs",
64
+ "Opaque": "Necaurspīdīgs",
65
+ "Font Size": "Šrifta izmērs",
66
+ "Text Edge Style": "Teksta ēnas stils",
67
+ "None": "Neviens",
68
+ "Raised": "Izvirzīts",
69
+ "Depressed": "Samazināts",
70
+ "Uniform": "Vienmērīgs",
71
+ "Dropshadow": "Ēnots",
72
+ "Font Family": "Šrifts",
73
+ "Proportional Sans-Serif": "Proportional Sans-Serif",
74
+ "Monospace Sans-Serif": "Monospace Sans-Serif",
75
+ "Proportional Serif": "Proportional Serif",
76
+ "Monospace Serif": "Monospace Serif",
77
+ "Casual": "Casual",
78
+ "Script": "Script",
79
+ "Small Caps": "Small Caps",
80
+ "Reset": "Atiestatīt",
81
+ "restore all settings to the default values": "atiestatīt iestatījumu uz noklusējumu",
82
+ "Done": "Gatavs",
83
+ "Caption Settings Dialog": "Parakstu iestatījumi",
84
+ "Beginning of dialog window. Escape will cancel and close the window.": "Paraksta iestatījumu sākums. Lai aizvērtu, spiediet ESC taustiņu.",
85
+ "End of dialog window.": "Parakstu iestatījumu loga beigas",
86
+ "{1} is loading.": "{1} ielādē.",
87
+ "Exit Picture-in-Picture": "Iziet no Attēls attēlā",
88
+ "Picture-in-Picture": "Attēls attēlā"
89
+ });
vendor/videojs/lang/lv.json ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "Audio Player": "Audio atskaņotājs",
3
+ "Video Player": "Video atskaņotājs",
4
+ "Play": "Atskaņot",
5
+ "Pause": "Pauzēt",
6
+ "Replay": "Atkārtot",
7
+ "Current Time": "Esošais laiks",
8
+ "Duration": "Ilgums",
9
+ "Remaining Time": "Atlikušais laiks",
10
+ "Stream Type": "Straumes veids",
11
+ "LIVE": "LIVE",
12
+ "Seek to live, currently behind live": "Pāriet uz tiešraidi",
13
+ "Seek to live, currently playing live": "Pāriet uz tiešraidi",
14
+ "Loaded": "Ielādēts",
15
+ "Progress": "Progress",
16
+ "Progress Bar": "Progresa josla",
17
+ "progress bar timing: currentTime={1} duration={2}": "{1} no {2}",
18
+ "Fullscreen": "Pilnekrāna režīms",
19
+ "Non-Fullscreen": "Iziet no pilnekrāna režīma",
20
+ "Mute": "Izslēgt skaņu",
21
+ "Unmute": "Ieslēgt skaņu",
22
+ "Playback Rate": "Atskaņošanas ātrums",
23
+ "Subtitles": "Subtitri",
24
+ "subtitles off": "Izslēgt subtitrus",
25
+ "Captions": "Paraksti",
26
+ "captions off": "Izslēgt parakstus",
27
+ "Chapters": "Temati",
28
+ "Descriptions": "Apraksti",
29
+ "descriptions off": "Izslēgt aprakstus",
30
+ "Audio Track": "Audio celiņš",
31
+ "Volume Level": "Skaļums",
32
+ "You aborted the media playback": "Atskaņošana atcelta",
33
+ "A network error caused the media download to fail part-way.": "Tīkla kļūdas dēļ, multivides lejupielāde neizdevās.",
34
+ "The media could not be loaded, either because the server or network failed or because the format is not supported.": "Neizdevās ielādēt multividi, iespējams severa, vai tīkla kļūmes dēļ, vai neatbalstīta formāta dēļ.",
35
+ "The media playback was aborted due to a corruption problem or because the media used features your browser did not support.": "Atskaņošana tika pārtraukta tīkla kļūmes dēļ vai pārlūkprogrammas iespēju trūkuma dēļ.",
36
+ "No compatible source was found for this media.": "Netika atrasts atbilstošs multivides avots.",
37
+ "The media is encrypted and we do not have the keys to decrypt it.": "Multividi nevar atskaņot, jo tas ir kriptēts un nav pieejama dekriptēšanas atslēga.",
38
+ "Play Video": "Atskaņot video",
39
+ "Close": "Aizvērt",
40
+ "Close Modal Dialog": "Aizvērt logu",
41
+ "Modal Window": "Logs",
42
+ "This is a modal window": "Logs",
43
+ "This modal can be closed by pressing the Escape key or activating the close button.": "Šo logu var aizvērt, nospiežot uz aizvēršanas pogas vai taustiņa ESC.",
44
+ ", opens captions settings dialog": ", atvērs parakstu logu",
45
+ ", opens subtitles settings dialog": ", atvērs subtitru logu",
46
+ ", opens descriptions settings dialog": ", atvērs aprakstu logu",
47
+ ", selected": ", izvēlēts",
48
+ "captions settings": "parakstu iestatījumi",
49
+ "subtitles settings": "subtitru iestatījumi",
50
+ "descriptions settings": "aprakstu iestatījumi",
51
+ "Text": "Teksts",
52
+ "White": "Balts",
53
+ "Black": "Melns",
54
+ "Red": "Sarkans",
55
+ "Green": "Zaļš",
56
+ "Blue": "Zils",
57
+ "Yellow": "Dzeltens",
58
+ "Magenta": "Purpursarkana",
59
+ "Cyan": "Ciāna",
60
+ "Background": "Fons",
61
+ "Window": "Logs",
62
+ "Transparent": "Caurspīdīgs",
63
+ "Semi-Transparent": "Daļēji caurspīdīgs",
64
+ "Opaque": "Necaurspīdīgs",
65
+ "Font Size": "Šrifta izmērs",
66
+ "Text Edge Style": "Teksta ēnas stils",
67
+ "None": "Neviens",
68
+ "Raised": "Izvirzīts",
69
+ "Depressed": "Samazināts",
70
+ "Uniform": "Vienmērīgs",
71
+ "Dropshadow": "Ēnots",
72
+ "Font Family": "Šrifts",
73
+ "Proportional Sans-Serif": "Proportional Sans-Serif",
74
+ "Monospace Sans-Serif": "Monospace Sans-Serif",
75
+ "Proportional Serif": "Proportional Serif",
76
+ "Monospace Serif": "Monospace Serif",
77
+ "Casual": "Casual",
78
+ "Script": "Script",
79
+ "Small Caps": "Small Caps",
80
+ "Reset": "Atiestatīt",
81
+ "restore all settings to the default values": "atiestatīt iestatījumu uz noklusējumu",
82
+ "Done": "Gatavs",
83
+ "Caption Settings Dialog": "Parakstu iestatījumi",
84
+ "Beginning of dialog window. Escape will cancel and close the window.": "Paraksta iestatījumu sākums. Lai aizvērtu, spiediet ESC taustiņu.",
85
+ "End of dialog window.": "Parakstu iestatījumu loga beigas",
86
+ "{1} is loading.": "{1} ielādē.",
87
+ "Exit Picture-in-Picture": "Iziet no Attēls attēlā",
88
+ "Picture-in-Picture": "Attēls attēlā"
89
+ }
vendor/videojs/lang/pl.js CHANGED
@@ -1,6 +1,9 @@
1
  videojs.addLanguage('pl', {
 
 
2
  "Play": "Odtwarzaj",
3
  "Pause": "Pauza",
 
4
  "Current Time": "Aktualny czas",
5
  "Duration": "Czas trwania",
6
  "Remaining Time": "Pozostały czas",
@@ -8,6 +11,7 @@ videojs.addLanguage('pl', {
8
  "LIVE": "NA ŻYWO",
9
  "Loaded": "Załadowany",
10
  "Progress": "Status",
 
11
  "Fullscreen": "Pełny ekran",
12
  "Non-Fullscreen": "Pełny ekran niedostępny",
13
  "Mute": "Wyłącz dźwięk",
@@ -18,17 +22,57 @@ videojs.addLanguage('pl', {
18
  "Captions": "Transkrypcja",
19
  "captions off": "Transkrypcja wyłączona",
20
  "Chapters": "Rozdziały",
 
 
 
 
21
  "You aborted the media playback": "Odtwarzanie zostało przerwane",
22
  "A network error caused the media download to fail part-way.": "Problemy z siecią spowodowały błąd przy pobieraniu materiału wideo.",
23
  "The media could not be loaded, either because the server or network failed or because the format is not supported.": "Materiał wideo nie może być załadowany, ponieważ wystąpił problem z siecią lub format nie jest obsługiwany",
24
  "The media playback was aborted due to a corruption problem or because the media used features your browser did not support.": "Odtwarzanie materiału wideo zostało przerwane z powodu uszkodzonego pliku wideo lub z powodu błędu funkcji, które nie są wspierane przez przeglądarkę.",
25
  "No compatible source was found for this media.": "Dla tego materiału wideo nie znaleziono kompatybilnego źródła.",
 
26
  "Play Video": "Odtwarzaj wideo",
27
  "Close": "Zamknij",
28
- "Modal Window": "Okno Modala",
 
29
  "This is a modal window": "To jest okno modala",
30
  "This modal can be closed by pressing the Escape key or activating the close button.": "Ten modal możesz zamknąć naciskając przycisk Escape albo wybierając przycisk Zamknij.",
31
  ", opens captions settings dialog": ", otwiera okno dialogowe ustawień transkrypcji",
32
  ", opens subtitles settings dialog": ", otwiera okno dialogowe napisów",
33
- ", selected": ", zaznaczone"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  });
1
  videojs.addLanguage('pl', {
2
+ "Audio Player": "Odtwarzacz audio",
3
+ "Video Player": "Odtwarzacz wideo",
4
  "Play": "Odtwarzaj",
5
  "Pause": "Pauza",
6
+ "Replay": "Odtwórz ponownie",
7
  "Current Time": "Aktualny czas",
8
  "Duration": "Czas trwania",
9
  "Remaining Time": "Pozostały czas",
11
  "LIVE": "NA ŻYWO",
12
  "Loaded": "Załadowany",
13
  "Progress": "Status",
14
+ "Progress Bar": "Pasek stanu",
15
  "Fullscreen": "Pełny ekran",
16
  "Non-Fullscreen": "Pełny ekran niedostępny",
17
  "Mute": "Wyłącz dźwięk",
22
  "Captions": "Transkrypcja",
23
  "captions off": "Transkrypcja wyłączona",
24
  "Chapters": "Rozdziały",
25
+ "Descriptions": "Opisy",
26
+ "descriptions off": "Opisy wyłączone",
27
+ "Audio Track": "Ścieżka audio",
28
+ "Volume Level": "Poziom głośności",
29
  "You aborted the media playback": "Odtwarzanie zostało przerwane",
30
  "A network error caused the media download to fail part-way.": "Problemy z siecią spowodowały błąd przy pobieraniu materiału wideo.",
31
  "The media could not be loaded, either because the server or network failed or because the format is not supported.": "Materiał wideo nie może być załadowany, ponieważ wystąpił problem z siecią lub format nie jest obsługiwany",
32
  "The media playback was aborted due to a corruption problem or because the media used features your browser did not support.": "Odtwarzanie materiału wideo zostało przerwane z powodu uszkodzonego pliku wideo lub z powodu błędu funkcji, które nie są wspierane przez przeglądarkę.",
33
  "No compatible source was found for this media.": "Dla tego materiału wideo nie znaleziono kompatybilnego źródła.",
34
+ "The media is encrypted and we do not have the keys to decrypt it.": "Źródło jest zaszyfrowane i nie mamy kluczy do jego odszyfrowania.",
35
  "Play Video": "Odtwarzaj wideo",
36
  "Close": "Zamknij",
37
+ "Close Modal Dialog": "Zamknij okno modala",
38
+ "Modal Window": "Okno modala",
39
  "This is a modal window": "To jest okno modala",
40
  "This modal can be closed by pressing the Escape key or activating the close button.": "Ten modal możesz zamknąć naciskając przycisk Escape albo wybierając przycisk Zamknij.",
41
  ", opens captions settings dialog": ", otwiera okno dialogowe ustawień transkrypcji",
42
  ", opens subtitles settings dialog": ", otwiera okno dialogowe napisów",
43
+ ", opens descriptions settings dialog": ", otwiera okno dialogowe opisów",
44
+ ", selected": ", zaznaczone",
45
+ "captions settings": "ustawienia transkrypcji",
46
+ "subtitles settings": "ustawienia napisów",
47
+ "descriptions settings": "ustawienia opisów",
48
+ "Text": "Tekst",
49
+ "White": "Biały",
50
+ "Black": "Czarny",
51
+ "Red": "Czerwony",
52
+ "Green": "Zielony",
53
+ "Blue": "Niebieski",
54
+ "Yellow": "Żółty",
55
+ "Magenta": "Magenta",
56
+ "Cyan": "Cyjan",
57
+ "Background": "Tło",
58
+ "Window": "Okno",
59
+ "Transparent": "Przezroczysty",
60
+ "Semi-Transparent": "Półprzezroczysty",
61
+ "Opaque": "Nieprzezroczysty",
62
+ "Font Size": "Rozmiar czcionki",
63
+ "Text Edge Style": "Styl krawędzi tekstu",
64
+ "None": "Brak",
65
+ "Raised": "Podniesiony",
66
+ "Depressed": "Obniżony",
67
+ "Uniform": "Równomierny",
68
+ "Dropshadow": "Cień",
69
+ "Font Family": "Czcionka",
70
+ "Reset": "Ustawienia domyślne",
71
+ "restore all settings to the default values": "zresetuj wszystkie ustawienia do domyślnych wartości",
72
+ "Done": "Gotowe",
73
+ "Caption Settings Dialog": "Okno dialogowe ustawień transkrypcji",
74
+ "Beginning of dialog window. Escape will cancel and close the window.": "Początek okna dialogowego. Escape anuluje i zamknie okno.",
75
+ "End of dialog window.": "Koniec okna dialogowego.",
76
+ "Exit Picture-in-Picture": "Wyjdź z trybu obraz w obrazie",
77
+ "Picture-in-Picture": "Obraz w obrazie"
78
  });
vendor/videojs/lang/pl.json CHANGED
@@ -1,6 +1,9 @@
1
  {
 
 
2
  "Play": "Odtwarzaj",
3
  "Pause": "Pauza",
 
4
  "Current Time": "Aktualny czas",
5
  "Duration": "Czas trwania",
6
  "Remaining Time": "Pozostały czas",
@@ -8,6 +11,7 @@
8
  "LIVE": "NA ŻYWO",
9
  "Loaded": "Załadowany",
10
  "Progress": "Status",
 
11
  "Fullscreen": "Pełny ekran",
12
  "Non-Fullscreen": "Pełny ekran niedostępny",
13
  "Mute": "Wyłącz dźwięk",
@@ -18,17 +22,57 @@
18
  "Captions": "Transkrypcja",
19
  "captions off": "Transkrypcja wyłączona",
20
  "Chapters": "Rozdziały",
 
 
 
 
21
  "You aborted the media playback": "Odtwarzanie zostało przerwane",
22
  "A network error caused the media download to fail part-way.": "Problemy z siecią spowodowały błąd przy pobieraniu materiału wideo.",
23
  "The media could not be loaded, either because the server or network failed or because the format is not supported.": "Materiał wideo nie może być załadowany, ponieważ wystąpił problem z siecią lub format nie jest obsługiwany",
24
  "The media playback was aborted due to a corruption problem or because the media used features your browser did not support.": "Odtwarzanie materiału wideo zostało przerwane z powodu uszkodzonego pliku wideo lub z powodu błędu funkcji, które nie są wspierane przez przeglądarkę.",
25
  "No compatible source was found for this media.": "Dla tego materiału wideo nie znaleziono kompatybilnego źródła.",
 
26
  "Play Video": "Odtwarzaj wideo",
27
  "Close": "Zamknij",
28
- "Modal Window": "Okno Modala",
 
29
  "This is a modal window": "To jest okno modala",
30
  "This modal can be closed by pressing the Escape key or activating the close button.": "Ten modal możesz zamknąć naciskając przycisk Escape albo wybierając przycisk Zamknij.",
31
  ", opens captions settings dialog": ", otwiera okno dialogowe ustawień transkrypcji",
32
  ", opens subtitles settings dialog": ", otwiera okno dialogowe napisów",
33
- ", selected": ", zaznaczone"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  }
1
  {
2
+ "Audio Player": "Odtwarzacz audio",
3
+ "Video Player": "Odtwarzacz wideo",
4
  "Play": "Odtwarzaj",
5
  "Pause": "Pauza",
6
+ "Replay": "Odtwórz ponownie",
7
  "Current Time": "Aktualny czas",
8
  "Duration": "Czas trwania",
9
  "Remaining Time": "Pozostały czas",
11
  "LIVE": "NA ŻYWO",
12
  "Loaded": "Załadowany",
13
  "Progress": "Status",
14
+ "Progress Bar": "Pasek stanu",
15
  "Fullscreen": "Pełny ekran",
16
  "Non-Fullscreen": "Pełny ekran niedostępny",
17
  "Mute": "Wyłącz dźwięk",
22
  "Captions": "Transkrypcja",
23
  "captions off": "Transkrypcja wyłączona",
24
  "Chapters": "Rozdziały",
25
+ "Descriptions": "Opisy",
26
+ "descriptions off": "Opisy wyłączone",
27
+ "Audio Track": "Ścieżka audio",
28
+ "Volume Level": "Poziom głośności",
29
  "You aborted the media playback": "Odtwarzanie zostało przerwane",
30
  "A network error caused the media download to fail part-way.": "Problemy z siecią spowodowały błąd przy pobieraniu materiału wideo.",
31
  "The media could not be loaded, either because the server or network failed or because the format is not supported.": "Materiał wideo nie może być załadowany, ponieważ wystąpił problem z siecią lub format nie jest obsługiwany",
32
  "The media playback was aborted due to a corruption problem or because the media used features your browser did not support.": "Odtwarzanie materiału wideo zostało przerwane z powodu uszkodzonego pliku wideo lub z powodu błędu funkcji, które nie są wspierane przez przeglądarkę.",
33
  "No compatible source was found for this media.": "Dla tego materiału wideo nie znaleziono kompatybilnego źródła.",
34
+ "The media is encrypted and we do not have the keys to decrypt it.": "Źródło jest zaszyfrowane i nie mamy kluczy do jego odszyfrowania.",
35
  "Play Video": "Odtwarzaj wideo",
36
  "Close": "Zamknij",
37
+ "Close Modal Dialog": "Zamknij okno modala",
38
+ "Modal Window": "Okno modala",
39
  "This is a modal window": "To jest okno modala",
40
  "This modal can be closed by pressing the Escape key or activating the close button.": "Ten modal możesz zamknąć naciskając przycisk Escape albo wybierając przycisk Zamknij.",
41
  ", opens captions settings dialog": ", otwiera okno dialogowe ustawień transkrypcji",
42
  ", opens subtitles settings dialog": ", otwiera okno dialogowe napisów",
43
+ ", opens descriptions settings dialog": ", otwiera okno dialogowe opisów",
44
+ ", selected": ", zaznaczone",
45
+ "captions settings": "ustawienia transkrypcji",
46
+ "subtitles settings": "ustawienia napisów",
47
+ "descriptions settings": "ustawienia opisów",
48
+ "Text": "Tekst",
49
+ "White": "Biały",
50
+ "Black": "Czarny",
51
+ "Red": "Czerwony",
52
+ "Green": "Zielony",
53
+ "Blue": "Niebieski",
54
+ "Yellow": "Żółty",
55
+ "Magenta": "Magenta",
56
+ "Cyan": "Cyjan",
57
+ "Background": "Tło",
58
+ "Window": "Okno",
59
+ "Transparent": "Przezroczysty",
60
+ "Semi-Transparent": "Półprzezroczysty",
61
+ "Opaque": "Nieprzezroczysty",
62
+ "Font Size": "Rozmiar czcionki",
63
+ "Text Edge Style": "Styl krawędzi tekstu",
64
+ "None": "Brak",
65
+ "Raised": "Podniesiony",
66
+ "Depressed": "Obniżony",
67
+ "Uniform": "Równomierny",
68
+ "Dropshadow": "Cień",
69
+ "Font Family": "Czcionka",
70
+ "Reset": "Ustawienia domyślne",
71
+ "restore all settings to the default values": "zresetuj wszystkie ustawienia do domyślnych wartości",
72
+ "Done": "Gotowe",
73
+ "Caption Settings Dialog": "Okno dialogowe ustawień transkrypcji",
74
+ "Beginning of dialog window. Escape will cancel and close the window.": "Początek okna dialogowego. Escape anuluje i zamknie okno.",
75
+ "End of dialog window.": "Koniec okna dialogowego.",
76
+ "Exit Picture-in-Picture": "Wyjdź z trybu obraz w obrazie",
77
+ "Picture-in-Picture": "Obraz w obrazie"
78
  }
vendor/videojs/lang/ro.js ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ videojs.addLanguage('ro', {
2
+ "Audio Player": "Player audio",
3
+ "Video Player": "Player video",
4
+ "Play": "Piesă",
5
+ "Pause": "Pauză",
6
+ "Replay": "Reluare",
7
+ "Current Time": "Ora curentă",
8
+ "Duration": "Durată",
9
+ "Remaining Time": "Timp rămas",
10
+ "Stream Type": "Tip flux",
11
+ "LIVE": "ÎN DIRECT",
12
+ "Seek to live, currently behind live": "Căutare în direct; în prezent, sunteți în urmă",
13
+ "Seek to live, currently playing live": "Căutare în direct; în prezent, se redă în direct",
14
+ "Loaded": "Încărcat",
15
+ "Progress": "Progres",
16
+ "Progress Bar": "Bară de progres",
17
+ "progress bar timing: currentTime={1} duration={2}": "{1} din {2}",
18
+ "Fullscreen": "Ecran complet",
19
+ "Non-Fullscreen": "Ecran parțial",
20
+ "Mute": "Suprimare sunet",
21
+ "Unmute": "Activare sunet",
22
+ "Playback Rate": "Rată de redare",
23
+ "Subtitles": "Subtitrări",
24
+ "subtitles off": "subtitrări dezactivate",
25
+ "Captions": "Indicații scrise",
26
+ "captions off": "indicații scrise dezactivate",
27
+ "Chapters": "Capitole",
28
+ "Descriptions": "Descrieri",
29
+ "descriptions off": "descrieri dezactivate",
30
+ "Audio Track": "Pistă audio",
31
+ "Volume Level": "Nivel volum",
32
+ "You aborted the media playback": "Ați abandonat redarea media",
33
+ "A network error caused the media download to fail part-way.": "O eroare de rețea a provocat eșecul descărcării conținutului media în timpul procesului.",
34
+ "The media could not be loaded, either because the server or network failed or because the format is not supported.": "Conținutul media nu a putut fi încărcat, fie pentru că serverul sau rețeaua a eșuat, fie pentru că formatul nu este acceptat.",
35
+ "The media playback was aborted due to a corruption problem or because the media used features your browser did not support.": "Redarea media a fost întreruptă din cauza conținutului corupt sau din cauza faptului că acest conținut media folosește funcții pe care browserul dvs. nu le acceptă.",
36
+ "No compatible source was found for this media.": "Nu au fost găsite surse compatibile pentru acest conținut media.",
37
+ "The media is encrypted and we do not have the keys to decrypt it.": "Conținutul media este criptată și nu avem cheile pentru decriptare.",
38
+ "Play Video": "Redare video",
39
+ "Close": "Închidere",
40
+ "Close Modal Dialog": "Închidere dialog modal",
41
+ "Modal Window": "Fereastră modală",
42
+ "This is a modal window": "Aceasta este o fereastră modală",
43
+ "This modal can be closed by pressing the Escape key or activating the close button.": "Această fereastră modală poate fi închisă cu tasta Escape sau butonul de închidere.",
44
+ ", opens captions settings dialog": ", deschide dialogul de setări pentru indicații scrise",
45
+ ", opens subtitles settings dialog": ", deschide dialogul de setări pentru subtitrări",
46
+ ", opens descriptions settings dialog": ", deschide dialogul de setări pentru descrieri",
47
+ ", selected": ", selectat",
48
+ "captions settings": "setări indicații scrise",
49
+ "subtitles settings": "setări subtitrări",
50
+ "descriptions settings": "setări descrieri",
51
+ "Text": "Text",
52
+ "White": "Alb",
53
+ "Black": "Negru",
54
+ "Red": "Roșu",
55
+ "Green": "Verde",
56
+ "Blue": "Albastru",
57
+ "Yellow": "Galben",
58
+ "Magenta": "Magenta",
59
+ "Cyan": "Cyan",
60
+ "Background": "Fundal",
61
+ "Window": "Fereastră",
62
+ "Transparent": "Transparent",
63
+ "Semi-Transparent": "Semitransparent",
64
+ "Opaque": "Opac",
65
+ "Font Size": "Mărime font",
66
+ "Text Edge Style": "Stil margine text",
67
+ "None": "Fără",
68
+ "Raised": "Ridicat",
69
+ "Depressed": "Apăsat",
70
+ "Uniform": "Uniformă",
71
+ "Dropshadow": "Umbră",
72
+ "Font Family": "Familie fonturi",
73
+ "Proportional Sans-Serif": "Sans-serif proporțional",
74
+ "Monospace Sans-Serif": "Sans-serif monospațiu",
75
+ "Proportional Serif": "Serif proporțional",
76
+ "Monospace Serif": "Serif monospațiu",
77
+ "Casual": "Informal",
78
+ "Script": "Script",
79
+ "Small Caps": "Majuscule mici",
80
+ "Reset": "Resetare",
81
+ "restore all settings to the default values": "readuceți toate setările la valorile implicite",
82
+ "Done": "Terminat",
83
+ "Caption Settings Dialog": "Dialog setări indicații scrise",
84
+ "Beginning of dialog window. Escape will cancel and close the window.": "Începutul ferestrei de dialog. Tasta Escape va anula și va închide fereastra.",
85
+ "End of dialog window.": "Sfârșitul ferestrei de dialog.",
86
+ "{1} is loading.": "{1} se încarcă.",
87
+ "Exit Picture-in-Picture": "Închidere imagine în imagine",
88
+ "Picture-in-Picture": "Imagine în imagine"
89
+ });
vendor/videojs/lang/ro.json ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "Audio Player": "Player audio",
3
+ "Video Player": "Player video",
4
+ "Play": "Piesă",
5
+ "Pause": "Pauză",
6
+ "Replay": "Reluare",
7
+ "Current Time": "Ora curentă",
8
+ "Duration": "Durată",
9
+ "Remaining Time": "Timp rămas",
10
+ "Stream Type": "Tip flux",
11
+ "LIVE": "ÎN DIRECT",
12
+ "Seek to live, currently behind live": "Căutare în direct; în prezent, sunteți în urmă",
13
+ "Seek to live, currently playing live": "Căutare în direct; în prezent, se redă în direct",
14
+ "Loaded": "Încărcat",
15
+ "Progress": "Progres",
16
+ "Progress Bar": "Bară de progres",
17
+ "progress bar timing: currentTime={1} duration={2}": "{1} din {2}",
18
+ "Fullscreen": "Ecran complet",
19
+ "Non-Fullscreen": "Ecran parțial",
20
+ "Mute": "Suprimare sunet",
21
+ "Unmute": "Activare sunet",
22
+ "Playback Rate": "Rată de redare",
23
+ "Subtitles": "Subtitrări",
24
+ "subtitles off": "subtitrări dezactivate",
25
+ "Captions": "Indicații scrise",
26
+ "captions off": "indicații scrise dezactivate",
27
+ "Chapters": "Capitole",
28
+ "Descriptions": "Descrieri",
29
+ "descriptions off": "descrieri dezactivate",
30
+ "Audio Track": "Pistă audio",
31
+ "Volume Level": "Nivel volum",
32
+ "You aborted the media playback": "Ați abandonat redarea media",
33
+ "A network error caused the media download to fail part-way.": "O eroare de rețea a provocat eșecul descărcării conținutului media în timpul procesului.",
34
+ "The media could not be loaded, either because the server or network failed or because the format is not supported.": "Conținutul media nu a putut fi încărcat, fie pentru că serverul sau rețeaua a eșuat, fie pentru că formatul nu este acceptat.",
35
+ "The media playback was aborted due to a corruption problem or because the media used features your browser did not support.": "Redarea media a fost întreruptă din cauza conținutului corupt sau din cauza faptului că acest conținut media folosește funcții pe care browserul dvs. nu le acceptă.",
36
+ "No compatible source was found for this media.": "Nu au fost găsite surse compatibile pentru acest conținut media.",
37
+ "The media is encrypted and we do not have the keys to decrypt it.": "Conținutul media este criptată și nu avem cheile pentru decriptare.",
38
+ "Play Video": "Redare video",
39
+ "Close": "Închidere",
40
+ "Close Modal Dialog": "Închidere dialog modal",
41
+ "Modal Window": "Fereastră modală",
42
+ "This is a modal window": "Aceasta este o fereastră modală",
43
+ "This modal can be closed by pressing the Escape key or activating the close button.": "Această fereastră modală poate fi închisă cu tasta Escape sau butonul de închidere.",
44
+ ", opens captions settings dialog": ", deschide dialogul de setări pentru indicații scrise",
45
+ ", opens subtitles settings dialog": ", deschide dialogul de setări pentru subtitrări",
46
+ ", opens descriptions settings dialog": ", deschide dialogul de setări pentru descrieri",
47
+ ", selected": ", selectat",
48
+ "captions settings": "setări indicații scrise",
49
+ "subtitles settings": "setări subtitrări",
50
+ "descriptions settings": "setări descrieri",
51
+ "Text": "Text",
52
+ "White": "Alb",
53
+ "Black": "Negru",
54
+ "Red": "Roșu",
55
+ "Green": "Verde",
56
+ "Blue": "Albastru",
57
+ "Yellow": "Galben",
58
+ "Magenta": "Magenta",
59
+ "Cyan": "Cyan",
60
+ "Background": "Fundal",
61
+ "Window": "Fereastră",
62
+ "Transparent": "Transparent",
63
+ "Semi-Transparent": "Semitransparent",
64
+ "Opaque": "Opac",
65
+ "Font Size": "Mărime font",
66
+ "Text Edge Style": "Stil margine text",
67
+ "None": "Fără",
68
+ "Raised": "Ridicat",
69
+ "Depressed": "Apăsat",
70
+ "Uniform": "Uniformă",
71
+ "Dropshadow": "Umbră",
72
+ "Font Family": "Familie fonturi",
73
+ "Proportional Sans-Serif": "Sans-serif proporțional",
74
+ "Monospace Sans-Serif": "Sans-serif monospațiu",
75
+ "Proportional Serif": "Serif proporțional",
76
+ "Monospace Serif": "Serif monospațiu",
77
+ "Casual": "Informal",
78
+ "Script": "Script",
79
+ "Small Caps": "Majuscule mici",
80
+ "Reset": "Resetare",
81
+ "restore all settings to the default values": "readuceți toate setările la valorile implicite",
82
+ "Done": "Terminat",
83
+ "Caption Settings Dialog": "Dialog setări indicații scrise",
84
+ "Beginning of dialog window. Escape will cancel and close the window.": "Începutul ferestrei de dialog. Tasta Escape va anula și va închide fereastra.",
85
+ "End of dialog window.": "Sfârșitul ferestrei de dialog.",
86
+ "{1} is loading.": "{1} se încarcă.",
87
+ "Exit Picture-in-Picture": "Închidere imagine în imagine",
88
+ "Picture-in-Picture": "Imagine în imagine"
89
+ }
vendor/videojs/lang/te.js ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ videojs.addLanguage('te', {
2
+ "Audio Player": "ఆడియో ప్లేయర్",
3
+ "Video Player": "వీడియో ప్లేయర్",
4
+ "Play": "ప్లే",
5
+ "Pause": "పాజ్",
6
+ "Replay": "రీప్లే",
7
+ "Current Time": "ప్రస్తుత సమయం",
8
+ "Duration": "వ్యవధి",
9
+ "Remaining Time": "మిగిలిన సమయం",
10
+ "Stream Type": "స్ట్రీమ్ రకం",
11
+ "LIVE": "లైవ్",
12
+ "Seek to live, currently behind live": "ప్రత్యక్ష ప్రసారానికి వెళ్ళండి, ప్రస్తుతం ప్రత్యక్ష ప్రసారానికి వెనుకబడి ఉంది",
13
+ "Seek to live, currently playing live": "ప్రత్యక్ష ప్రసారానికి వెళ్ళండి, ప్రస్తుతం ప్రత్యక్ష ప్రసారం అవుతోంది",
14
+ "Loaded": "లోడ్ చేయబడింది",
15
+ "Progress": "పురోగతి",
16
+ "Progress Bar": "ప్రోగ్రెస్ బార్",
17
+ "progress bar timing: currentTime={1} duration={2}": "{1} యొక్క {2}",
18
+ "Fullscreen": "పూర్తి స్క్రీన్",
19
+ "Non-Fullscreen": "పూర్తి స్క్రీన్ నుండి నిష్క్రమించండి",
20
+ "Mute": "మ్యూట్",
21
+ "Unmute": "అన్మ్యూట్ చేయండి",
22
+ "Playback Rate": "ప్లేబ్యాక్ రేట్",
23
+ "Subtitles": "ఉపశీర్షికలు",
24
+ "subtitles off": "ఉపశీర్షికలు ఆఫ్ చేయండి",
25
+ "Captions": "శీర్షికలు",
26
+ "captions off": "శీర్షికలు ఆఫ్ చేయండి",
27
+ "Chapters": "అధ్యాయాలు",
28
+ "Descriptions": "వివరణలు",
29
+ "descriptions off": "వివరణలు ఆఫ్ చేయండి",
30
+ "Audio Track": "ఆడియో ట్రాక్",
31
+ "Volume Level": "వాల్యూమ్ స్థాయి",
32
+ "You aborted the media playback": "మీరు మీడియా ప్లేబ్యాక్‌ను రద్దు చేశారు",
33
+ "A network error caused the media download to fail part-way.": "నెట్‌వర్క్ లోపం వలన మీడియా డౌన్‌లోడ్ విఫలమైంది.",
34
+ "The media could not be loaded, either because the server or network failed or because the format is not supported.": "సర్వర్ లేదా నెట్‌వర్క్ విఫలమైనందున లేదా ఫార్మాట్‌కు మద్దతు లేనందున మీడియాను లోడ్ చేయడం సాధ్యం కాలేదు.",
35
+ "The media playback was aborted due to a corruption problem or because the media used features your browser did not support.": "అవినీతి సమస్య కారణంగా లేదా మీ బ్రౌజర్ మద్దతు ఇవ్వని లక్షణాలను మీడియా ఉపయోగించినందున మీడియా ప్లేబ్యాక్ నిలిపివేయబడింది.",
36
+ "No compatible source was found for this media.": "ఈ మీడియాకు అనుకూలమైన మూలం కనుగొనబడలేదు.",
37
+ "The media is encrypted and we do not have the keys to decrypt it.": "మీడియా గుప్తీకరించబడింది మరియు దానిని డీక్రిప్ట్ చేయడానికి మాకు కీలు లేవు.",
38
+ "Play Video": "వీడియో ప్లే చేయండి",
39
+ "Close": "మూసివేయండి",
40
+ "Close Modal Dialog": "మోడల్ డైలాగ్‌ను మూసివేయండి",
41
+ "Modal Window": "మోడల్ విండో",
42
+ "This is a modal window": "ఇది మోడల్ విండో",
43
+ "This modal can be closed by pressing the Escape key or activating the close button.": "ఎస్కేప్ కీని నొక్కడం ద్వారా లేదా క్లోజ్ బటన్‌ను యాక్టివేట్ చేయడం ద్వారా ఈ మోడల్‌ను మూసివేయవచ్చు.",
44
+ ", opens captions settings dialog": ", శీర్షికల సెట్టింగ్‌ల డైలాగ్‌ను తెరుస్తుంది",
45
+ ", opens subtitles settings dialog": ", ఉపశీర్షికల సెట్టింగుల డైలాగ్‌ను తెరుస్తుంది",
46
+ ", opens descriptions settings dialog": ", వివరణల సెట్టింగుల డైలాగ్‌ను తెరుస్తుంది",
47
+ ", selected": ", ఎంచుకోబడింది",
48
+ "captions settings": "శీర్షికల సెట్టింగులు",
49
+ "subtitles settings": "ఉపశీర్షికల సెట్టింగులు",
50
+ "descriptions settings": "వివరణల సెట్టింగులు",
51
+ "Text": "వచనం",
52
+ "White": "తెలుపు",
53
+ "Black": "నలుపు",
54
+ "Red": "ఎరుపు",
55
+ "Green": "ఆకుపచ్చ",
56
+ "Blue": "నీలం",
57
+ "Yellow": "పసుపు",
58
+ "Magenta": "మెజెంటా",
59
+ "Cyan": "సియాన్",
60
+ "Background": "నేపధ్యం",
61
+ "Window": "కిటికీ",
62
+ "Transparent": "పారదర్శక",
63
+ "Semi-Transparent": "సెమీ-పారదర్శక",
64
+ "Opaque": "అపారదర్శక",
65
+ "Font Size": "ఫాంట్ పరిమాణం",
66
+ "Text Edge Style": "టెక్స్ట్ ఎడ్జ్ శైలి",
67
+ "None": "ఏదీ లేదు",
68
+ "Raised": "పెంచబడింది",
69
+ "Depressed": "అణగారిన",
70
+ "Uniform": "ఏకరీతి",
71
+ "Dropshadow": "డ్రాప్‌షాడో",
72
+ "Font Family": "ఫాంట్ కుటుంబం",
73
+ "Proportional Sans-Serif": "ప్రొపోర్షన్ సాన్స్-సెరిఫ్",
74
+ "Monospace Sans-Serif": "మోనోస్పేస్ సాన్స్-సెరిఫ్",
75
+ "Proportional Serif": "ప్రొపోర్షన్ సెరిఫ్",
76
+ "Monospace Serif": "మోనోస్పేస్ సెరిఫ్",
77
+ "Casual": "సాధారణ",
78
+ "Script": "స్క్రిప్ట్",
79
+ "Small Caps": "చిన్న క్యాప్స్",
80
+ "Reset": "రీసెట్ చేయండి",
81
+ "restore all settings to the default values": "అన్ని సెట్టింగులను డిఫాల్ట్ విలువలకు పునరుద్ధరించండి",
82
+ "Done": "పూర్తయింది",
83
+ "Caption Settings Dialog": "శీర్షిక సెట్టింగ్‌ల డైలాగ్",
84
+ "Beginning of dialog window. Escape will cancel and close the window.": "డైలాగ్ విండో ప్రారంభం. ఎస్కేప్ విండోను రద్దు చేస్తుంది మరియు మూసివేస్తుంది.",
85
+ "End of dialog window.": "డైలాగ్ విండో ముగింపు.",
86
+ "{1} is loading.": "{1} లోడ్ అవుతోంది.",
87
+ "Exit Picture-in-Picture": "పిక్చర్-ఇన్-పిక్చర్ నుండి నిష్క్రమించండి",
88
+ "Picture-in-Picture": "పిక్చర్-ఇన్-పిక్చర్"
89
+ });
vendor/videojs/lang/te.json ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "Audio Player": "ఆడియో ప్లేయర్",
3
+ "Video Player": "వీడియో ప్లేయర్",
4
+ "Play": "ప్లే",
5
+ "Pause": "పాజ్",
6
+ "Replay": "రీప్లే",
7
+ "Current Time": "ప్రస్తుత సమయం",
8
+ "Duration": "వ్యవధి",
9
+ "Remaining Time": "మిగిలిన సమయం",
10
+ "Stream Type": "స్ట్రీమ్ రకం",
11
+ "LIVE": "లైవ్",
12
+ "Seek to live, currently behind live": "ప్రత్యక్ష ప్రసారానికి వెళ్ళండి, ప్రస్తుతం ప్రత్యక్ష ప్రసారానికి వెనుకబడి ఉంది",
13
+ "Seek to live, currently playing live": "ప్రత్యక్ష ప్రసారానికి వెళ్ళండి, ప్రస్తుతం ప్రత్యక్ష ప్రసారం అవుతోంది",
14
+ "Loaded": "లోడ్ చేయబడింది",
15
+ "Progress": "పురోగతి",
16
+ "Progress Bar": "ప్రోగ్రెస్ బార్",
17
+ "progress bar timing: currentTime={1} duration={2}": "{1} యొక్క {2}",
18
+ "Fullscreen": "పూర్తి స్క్రీన్",
19
+ "Non-Fullscreen": "పూర్తి స్క్రీన్ నుండి నిష్క్రమించండి",
20
+ "Mute": "మ్యూట్",
21
+ "Unmute": "అన్మ్యూట్ చేయండి",
22
+ "Playback Rate": "ప్లేబ్యాక్ రేట్",
23
+ "Subtitles": "ఉపశీర్షికలు",
24
+ "subtitles off": "ఉపశీర్షికలు ఆఫ్ చేయండి",
25
+ "Captions": "శీర్షికలు",
26
+ "captions off": "శీర్షికలు ఆఫ్ చేయండి",
27
+ "Chapters": "అధ్యాయాలు",
28
+ "Descriptions": "వివరణలు",
29
+ "descriptions off": "వివరణలు ఆఫ్ చేయండి",
30
+ "Audio Track": "ఆడియో ట్రాక్",
31
+ "Volume Level": "వాల్యూమ్ స్థాయి",
32
+ "You aborted the media playback": "మీరు మీడియా ప్లేబ్యాక్‌ను రద్దు చేశారు",
33
+ "A network error caused the media download to fail part-way.": "నెట్‌వర్క్ లోపం వలన మీడియా డౌన్‌లోడ్ విఫలమైంది.",
34
+ "The media could not be loaded, either because the server or network failed or because the format is not supported.": "సర్వర్ లేదా నెట్‌వర్క్ విఫలమైనందున లేదా ఫార్మాట్‌కు మద్దతు లేనందున మీడియాను లోడ్ చేయడం సాధ్యం కాలేదు.",
35
+ "The media playback was aborted due to a corruption problem or because the media used features your browser did not support.": "అవినీతి సమస్య కారణంగా లేదా మీ బ్రౌజర్ మద్దతు ఇవ్వని లక్షణాలను మీడియా ఉపయోగించినందున మీడియా ప్లేబ్యాక్ నిలిపివేయబడింది.",
36
+ "No compatible source was found for this media.": "ఈ మీడియాకు అనుకూలమైన మూలం కనుగొనబడలేదు.",
37
+ "The media is encrypted and we do not have the keys to decrypt it.": "మీడియా గుప్తీకరించబడింది మరియు దానిని డీక్రిప్ట్ చేయడానికి మాకు కీలు లేవు.",
38
+ "Play Video": "వీడియో ప్లే చేయండి",
39
+ "Close": "మూసివేయండి",
40
+ "Close Modal Dialog": "మోడల్ డైలాగ్‌ను మూసివేయండి",
41
+ "Modal Window": "మోడల్ విండో",
42
+ "This is a modal window": "ఇది మోడల్ విండో",
43
+ "This modal can be closed by pressing the Escape key or activating the close button.": "ఎస్కేప్ కీని నొక్కడం ద్వారా లేదా క్లోజ్ బటన్‌ను యాక్టివేట్ చేయడం ద్వారా ఈ మోడల్‌ను మూసివేయవచ్చు.",
44
+ ", opens captions settings dialog": ", శీర్షికల సెట్టింగ్‌ల డైలాగ్‌ను తెరుస్తుంది",
45
+ ", opens subtitles settings dialog": ", ఉపశీర్షికల సెట్టింగుల డైలాగ్‌ను తెరుస్తుంది",
46
+ ", opens descriptions settings dialog": ", వివరణల సెట్టింగుల డైలాగ్‌ను తెరుస్తుంది",
47
+ ", selected": ", ఎంచుకోబడింది",
48
+ "captions settings": "శీర్షికల సెట్టింగులు",
49
+ "subtitles settings": "ఉపశీర్షికల సెట్టింగులు",
50
+ "descriptions settings": "వివరణల సెట్టింగులు",
51
+ "Text": "వచనం",
52
+ "White": "తెలుపు",
53
+ "Black": "నలుపు",
54
+ "Red": "ఎరుపు",
55
+ "Green": "ఆకుపచ్చ",
56
+ "Blue": "నీలం",
57
+ "Yellow": "పసుపు",
58
+ "Magenta": "మెజెంటా",
59
+ "Cyan": "సియాన్",
60
+ "Background": "నేపధ్యం",
61
+ "Window": "కిటికీ",
62
+ "Transparent": "పారదర్శక",
63
+ "Semi-Transparent": "సెమీ-పారదర్శక",
64
+ "Opaque": "అపారదర్శక",
65
+ "Font Size": "ఫాంట్ పరిమాణం",
66
+ "Text Edge Style": "టెక్స్ట్ ఎడ్జ్ శైలి",
67
+ "None": "ఏదీ లేదు",
68
+ "Raised": "పెంచబడింది",
69
+ "Depressed": "అణగారిన",
70
+ "Uniform": "ఏకరీతి",
71
+ "Dropshadow": "డ్రాప్‌షాడో",
72
+ "Font Family": "ఫాంట్ కుటుంబం",
73
+ "Proportional Sans-Serif": "ప్రొపోర్షన్ సాన్స్-సెరిఫ్",
74
+ "Monospace Sans-Serif": "మోనోస్పేస్ సాన్స్-సెరిఫ్",
75
+ "Proportional Serif": "ప్రొపోర్షన్ సెరిఫ్",
76
+ "Monospace Serif": "మోనోస్పేస్ సెరిఫ్",
77
+ "Casual": "సాధారణ",
78
+ "Script": "స్క్రిప్ట్",
79
+ "Small Caps": "చిన్న క్యాప్స్",
80
+ "Reset": "రీసెట్ చేయండి",
81
+ "restore all settings to the default values": "అన్ని సెట్టింగులను డిఫాల్ట్ విలువలకు పునరుద్ధరించండి",
82
+ "Done": "పూర్తయింది",
83
+ "Caption Settings Dialog": "శీర్షిక సెట్టింగ్‌ల డైలాగ్",
84
+ "Beginning of dialog window. Escape will cancel and close the window.": "డైలాగ్ విండో ప్రారంభం. ఎస్కేప్ విండోను రద్దు చేస్తుంది మరియు మూసివేస్తుంది.",
85
+ "End of dialog window.": "డైలాగ్ విండో ముగింపు.",
86
+ "{1} is loading.": "{1} లోడ్ అవుతోంది.",
87
+ "Exit Picture-in-Picture": "పిక్చర్-ఇన్-పిక్చర్ నుండి నిష్క్రమించండి",
88
+ "Picture-in-Picture": "పిక్చర్-ఇన్-పిక్చర్"
89
+ }
vendor/videojs/lang/zh-Hant.js CHANGED
@@ -24,24 +24,24 @@ videojs.addLanguage('zh-Hant', {
24
  "Audio Track": "音軌",
25
  "You aborted the media playback": "影片播放已終止",
26
  "A network error caused the media download to fail part-way.": "網路錯誤導致影片下載失敗。",
27
- "The media could not be loaded, either because the server or network failed or because the format is not supported.": "影片因格式不支援或者伺服器或網路的問題無法載入。",
28
- "The media playback was aborted due to a corruption problem or because the media used features your browser did not support.": "由於影片檔案損毀或是該影片使用了您的瀏覽器不支援的功能,播放終止。",
29
- "No compatible source was found for this media.": "無法找到相容此影片的來源。",
30
- "The media is encrypted and we do not have the keys to decrypt it.": "影片已加密,無法解密。",
31
  "Play Video": "播放影片",
32
  "Close": "關閉",
33
- "Modal Window": "對話框",
34
- "This is a modal window": "這是一個對話框",
35
- "This modal can be closed by pressing the Escape key or activating the close button.": "可以按ESC按鍵或啟用關閉按鈕來關閉此對話框。",
36
  ", opens captions settings dialog": ", 開啟標題設定對話框",
37
  ", opens subtitles settings dialog": ", 開啟字幕設定對話框",
38
  ", opens descriptions settings dialog": ", 開啟描述設定對話框",
39
  ", selected": ", 選擇",
40
  "captions settings": "字幕設定",
41
- "Audio Player": "音頻播放器",
42
- "Video Player": "視頻播放器",
43
  "Replay": "重播",
44
- "Progress Bar": "進度小節",
45
  "Volume Level": "音量",
46
  "subtitles settings": "字幕設定",
47
  "descriptions settings": "描述設定",
@@ -66,22 +66,22 @@ videojs.addLanguage('zh-Hant', {
66
  "Depressed": "壓低",
67
  "Uniform": "均勻",
68
  "Dropshadow": "下陰影",
69
- "Font Family": "字型庫",
70
- "Proportional Sans-Serif": "比例無細體",
71
- "Monospace Sans-Serif": "單間隔無細體",
72
- "Proportional Serif": "比例細體",
73
- "Monospace Serif": "單間隔細體",
74
  "Casual": "輕便的",
75
  "Script": "手寫體",
76
  "Small Caps": "小型大寫字體",
77
  "Reset": "重置",
78
  "restore all settings to the default values": "恢復全部設定至預設值",
79
  "Done": "完成",
80
- "Caption Settings Dialog": "字幕設定視窗",
81
- "Beginning of dialog window. Escape will cancel and close the window.": "開始對話視窗。離開會取消及關閉視窗",
82
  "End of dialog window.": "結束對話視窗",
83
- "Seek to live, currently behind live": "試圖直播,目前延時播放",
84
- "Seek to live, currently playing live": "試圖直播,目前即時播放",
85
  "progress bar timing: currentTime={1} duration={2}": "{1}/{2}",
86
  "{1} is loading.": "{1} 正在載入。"
87
  });
24
  "Audio Track": "音軌",
25
  "You aborted the media playback": "影片播放已終止",
26
  "A network error caused the media download to fail part-way.": "網路錯誤導致影片下載失敗。",
27
+ "The media could not be loaded, either because the server or network failed or because the format is not supported.": "因格式不支援、伺服器或網路的問題無法載入媒體。",
28
+ "The media playback was aborted due to a corruption problem or because the media used features your browser did not support.": "由於影片檔案損毀或是該影片使用了您的瀏覽器不支援的功能,已終止播放媒體。",
29
+ "No compatible source was found for this media.": "無法找到相容此媒體的來源。",
30
+ "The media is encrypted and we do not have the keys to decrypt it.": "媒體已加密,無法解密。",
31
  "Play Video": "播放影片",
32
  "Close": "關閉",
33
+ "Modal Window": "強制回應視窗",
34
+ "This is a modal window": "此為強制回應視窗",
35
+ "This modal can be closed by pressing the Escape key or activating the close button.": "可以按ESC按鍵或關閉按鈕來關閉此視窗。",
36
  ", opens captions settings dialog": ", 開啟標題設定對話框",
37
  ", opens subtitles settings dialog": ", 開啟字幕設定對話框",
38
  ", opens descriptions settings dialog": ", 開啟描述設定對話框",
39
  ", selected": ", 選擇",
40
  "captions settings": "字幕設定",
41
+ "Audio Player": "音訊播放器",
42
+ "Video Player": "視訊播放器",
43
  "Replay": "重播",
44
+ "Progress Bar": "進度列",
45
  "Volume Level": "音量",
46
  "subtitles settings": "字幕設定",
47
  "descriptions settings": "描述設定",
66
  "Depressed": "壓低",
67
  "Uniform": "均勻",
68
  "Dropshadow": "下陰影",
69
+ "Font Family": "字型系列",
70
+ "Proportional Sans-Serif": "調和間距無襯線字型",
71
+ "Monospace Sans-Serif": "等寬無襯線字型",
72
+ "Proportional Serif": "調和間距襯線字型",
73
+ "Monospace Serif": "等寬襯線字型",
74
  "Casual": "輕便的",
75
  "Script": "手寫體",
76
  "Small Caps": "小型大寫字體",
77
  "Reset": "重置",
78
  "restore all settings to the default values": "恢復全部設定至預設值",
79
  "Done": "完成",
80
+ "Caption Settings Dialog": "字幕設定對話框",
81
+ "Beginning of dialog window. Escape will cancel and close the window.": "開始對話視窗。離開會取消並關閉視窗",
82
  "End of dialog window.": "結束對話視窗",
83
+ "Seek to live, currently behind live": "快轉至直播,目前為稍早畫面",
84
+ "Seek to live, currently playing live": "快轉至直播,目前為現場畫面",
85
  "progress bar timing: currentTime={1} duration={2}": "{1}/{2}",
86
  "{1} is loading.": "{1} 正在載入。"
87
  });
vendor/videojs/lang/zh-Hant.json CHANGED
@@ -24,24 +24,24 @@
24
  "Audio Track": "音軌",
25
  "You aborted the media playback": "影片播放已終止",
26
  "A network error caused the media download to fail part-way.": "網路錯誤導致影片下載失敗。",
27
- "The media could not be loaded, either because the server or network failed or because the format is not supported.": "影片因格式不支援或者伺服器或網路的問題無法載入。",
28
- "The media playback was aborted due to a corruption problem or because the media used features your browser did not support.": "由於影片檔案損毀或是該影片使用了您的瀏覽器不支援的功能,播放終止。",
29
- "No compatible source was found for this media.": "無法找到相容此影片的來源。",
30
- "The media is encrypted and we do not have the keys to decrypt it.": "影片已加密,無法解密。",
31
  "Play Video": "播放影片",
32
  "Close": "關閉",
33
- "Modal Window": "對話框",
34
- "This is a modal window": "這是一個對話框",
35
- "This modal can be closed by pressing the Escape key or activating the close button.": "可以按ESC按鍵或啟用關閉按鈕來關閉此對話框。",
36
  ", opens captions settings dialog": ", 開啟標題設定對話框",
37
  ", opens subtitles settings dialog": ", 開啟字幕設定對話框",
38
  ", opens descriptions settings dialog": ", 開啟描述設定對話框",
39
  ", selected": ", 選擇",
40
  "captions settings": "字幕設定",
41
- "Audio Player": "音頻播放器",
42
- "Video Player": "視頻播放器",
43
  "Replay": "重播",
44
- "Progress Bar": "進度小節",
45
  "Volume Level": "音量",
46
  "subtitles settings": "字幕設定",
47
  "descriptions settings": "描述設定",
@@ -66,22 +66,22 @@
66
  "Depressed": "壓低",
67
  "Uniform": "均勻",
68
  "Dropshadow": "下陰影",
69
- "Font Family": "字型庫",
70
- "Proportional Sans-Serif": "比例無細體",
71
- "Monospace Sans-Serif": "單間隔無細體",
72
- "Proportional Serif": "比例細體",
73
- "Monospace Serif": "單間隔細體",
74
  "Casual": "輕便的",
75
  "Script": "手寫體",
76
  "Small Caps": "小型大寫字體",
77
  "Reset": "重置",
78
  "restore all settings to the default values": "恢復全部設定至預設值",
79
  "Done": "完成",
80
- "Caption Settings Dialog": "字幕設定視窗",
81
- "Beginning of dialog window. Escape will cancel and close the window.": "開始對話視窗。離開會取消及關閉視窗",
82
  "End of dialog window.": "結束對話視窗",
83
- "Seek to live, currently behind live": "試圖直播,目前延時播放",
84
- "Seek to live, currently playing live": "試圖直播,目前即時播放",
85
  "progress bar timing: currentTime={1} duration={2}": "{1}/{2}",
86
  "{1} is loading.": "{1} 正在載入。"
87
  }
24
  "Audio Track": "音軌",
25
  "You aborted the media playback": "影片播放已終止",
26
  "A network error caused the media download to fail part-way.": "網路錯誤導致影片下載失敗。",
27
+ "The media could not be loaded, either because the server or network failed or because the format is not supported.": "因格式不支援、伺服器或網路的問題無法載入媒體。",
28
+ "The media playback was aborted due to a corruption problem or because the media used features your browser did not support.": "由於影片檔案損毀或是該影片使用了您的瀏覽器不支援的功能,已終止播放媒體。",
29
+ "No compatible source was found for this media.": "無法找到相容此媒體的來源。",
30
+ "The media is encrypted and we do not have the keys to decrypt it.": "媒體已加密,無法解密。",
31
  "Play Video": "播放影片",
32
  "Close": "關閉",
33
+ "Modal Window": "強制回應視窗",
34
+ "This is a modal window": "此為強制回應視窗",
35
+ "This modal can be closed by pressing the Escape key or activating the close button.": "可以按ESC按鍵或關閉按鈕來關閉此視窗。",
36
  ", opens captions settings dialog": ", 開啟標題設定對話框",
37
  ", opens subtitles settings dialog": ", 開啟字幕設定對話框",
38
  ", opens descriptions settings dialog": ", 開啟描述設定對話框",
39
  ", selected": ", 選擇",
40
  "captions settings": "字幕設定",
41
+ "Audio Player": "音訊播放器",
42
+ "Video Player": "視訊播放器",
43
  "Replay": "重播",
44
+ "Progress Bar": "進度列",
45
  "Volume Level": "音量",
46
  "subtitles settings": "字幕設定",
47
  "descriptions settings": "描述設定",
66
  "Depressed": "壓低",
67
  "Uniform": "均勻",
68
  "Dropshadow": "下陰影",
69
+ "Font Family": "字型系列",
70
+ "Proportional Sans-Serif": "調和間距無襯線字型",
71
+ "Monospace Sans-Serif": "等寬無襯線字型",
72
+ "Proportional Serif": "調和間距襯線字型",
73
+ "Monospace Serif": "等寬襯線字型",
74
  "Casual": "輕便的",
75
  "Script": "手寫體",
76
  "Small Caps": "小型大寫字體",
77
  "Reset": "重置",
78
  "restore all settings to the default values": "恢復全部設定至預設值",
79
  "Done": "完成",
80
+ "Caption Settings Dialog": "字幕設定對話框",
81
+ "Beginning of dialog window. Escape will cancel and close the window.": "開始對話視窗。離開會取消並關閉視窗",
82
  "End of dialog window.": "結束對話視窗",
83
+ "Seek to live, currently behind live": "快轉至直播,目前為稍早畫面",
84
+ "Seek to live, currently playing live": "快轉至直播,目前為現場畫面",
85
  "progress bar timing: currentTime={1} duration={2}": "{1}/{2}",
86
  "{1} is loading.": "{1} 正在載入。"
87
  }
vendor/videojs/lang/zh-TW.js CHANGED
@@ -24,24 +24,24 @@ videojs.addLanguage('zh-TW', {
24
  "Audio Track": "音軌",
25
  "You aborted the media playback": "影片播放已終止",
26
  "A network error caused the media download to fail part-way.": "網路錯誤導致影片下載失敗。",
27
- "The media could not be loaded, either because the server or network failed or because the format is not supported.": "影片因格式不支援或者伺服器或網路的問題無法載入。",
28
- "The media playback was aborted due to a corruption problem or because the media used features your browser did not support.": "由於影片檔案損毀或是該影片使用了您的瀏覽器不支援的功能,播放終止。",
29
- "No compatible source was found for this media.": "無法找到相容此影片的來源。",
30
- "The media is encrypted and we do not have the keys to decrypt it.": "影片已加密,無法解密。",
31
  "Play Video": "播放影片",
32
  "Close": "關閉",
33
- "Modal Window": "對話框",
34
- "This is a modal window": "這是一個對話框",
35
- "This modal can be closed by pressing the Escape key or activating the close button.": "可以按ESC按鍵或啟用關閉按鈕來關閉此對話框。",
36
  ", opens captions settings dialog": ", 開啟標題設定對話框",
37
  ", opens subtitles settings dialog": ", 開啟字幕設定對話框",
38
  ", opens descriptions settings dialog": ", 開啟描述設定對話框",
39
  ", selected": ", 選擇",
40
  "captions settings": "字幕設定",
41
- "Audio Player": "音頻播放器",
42
- "Video Player": "視頻播放器",
43
  "Replay": "重播",
44
- "Progress Bar": "進度小節",
45
  "Volume Level": "音量",
46
  "subtitles settings": "字幕設定",
47
  "descriptions settings": "描述設定",
@@ -66,22 +66,22 @@ videojs.addLanguage('zh-TW', {
66
  "Depressed": "壓低",
67
  "Uniform": "均勻",
68
  "Dropshadow": "下陰影",
69
- "Font Family": "字型庫",
70
- "Proportional Sans-Serif": "比例無細體",
71
- "Monospace Sans-Serif": "單間隔無細體",
72
- "Proportional Serif": "比例細體",
73
- "Monospace Serif": "單間隔細體",
74
  "Casual": "輕便的",
75
  "Script": "手寫體",
76
  "Small Caps": "小型大寫字體",
77
  "Reset": "重置",
78
  "restore all settings to the default values": "恢復全部設定至預設值",
79
  "Done": "完成",
80
- "Caption Settings Dialog": "字幕設定視窗",
81
- "Beginning of dialog window. Escape will cancel and close the window.": "開始對話視窗。離開會取消及關閉視窗",
82
  "End of dialog window.": "結束對話視窗",
83
- "Seek to live, currently behind live": "試圖直播,目前延時播放",
84
- "Seek to live, currently playing live": "試圖直播,目前即時播放",
85
  "progress bar timing: currentTime={1} duration={2}": "{1}/{2}",
86
  "{1} is loading.": "{1} 正在載入。"
87
  });
24
  "Audio Track": "音軌",
25
  "You aborted the media playback": "影片播放已終止",
26
  "A network error caused the media download to fail part-way.": "網路錯誤導致影片下載失敗。",
27
+ "The media could not be loaded, either because the server or network failed or because the format is not supported.": "因格式不支援、伺服器或網路的問題無法載入媒體。",
28
+ "The media playback was aborted due to a corruption problem or because the media used features your browser did not support.": "由於影片檔案損毀或是該影片使用了您的瀏覽器不支援的功能,已終止播放媒體。",
29
+ "No compatible source was found for this media.": "無法找到相容此媒體的來源。",
30
+ "The media is encrypted and we do not have the keys to decrypt it.": "媒體已加密,無法解密。",
31
  "Play Video": "播放影片",
32
  "Close": "關閉",
33
+ "Modal Window": "強制回應視窗",
34
+ "This is a modal window": "此為強制回應視窗",
35
+ "This modal can be closed by pressing the Escape key or activating the close button.": "可以按ESC按鍵或關閉按鈕來關閉此視窗。",
36
  ", opens captions settings dialog": ", 開啟標題設定對話框",
37
  ", opens subtitles settings dialog": ", 開啟字幕設定對話框",
38
  ", opens descriptions settings dialog": ", 開啟描述設定對話框",
39
  ", selected": ", 選擇",
40
  "captions settings": "字幕設定",
41
+ "Audio Player": "音訊播放器",
42
+ "Video Player": "視訊播放器",
43
  "Replay": "重播",
44
+ "Progress Bar": "進度列",
45
  "Volume Level": "音量",
46
  "subtitles settings": "字幕設定",
47
  "descriptions settings": "描述設定",
66
  "Depressed": "壓低",
67
  "Uniform": "均勻",
68
  "Dropshadow": "下陰影",
69
+ "Font Family": "字型系列",
70
+ "Proportional Sans-Serif": "調和間距無襯線字型",
71
+ "Monospace Sans-Serif": "等寬無襯線字型",
72
+ "Proportional Serif": "調和間距襯線字型",
73
+ "Monospace Serif": "等寬襯線字型",
74
  "Casual": "輕便的",
75
  "Script": "手寫體",
76
  "Small Caps": "小型大寫字體",
77
  "Reset": "重置",
78
  "restore all settings to the default values": "恢復全部設定至預設值",
79
  "Done": "完成",
80
+ "Caption Settings Dialog": "字幕設定對話框",
81
+ "Beginning of dialog window. Escape will cancel and close the window.": "開始對話視窗。離開會取消並關閉視窗",
82
  "End of dialog window.": "結束對話視窗",
83
+ "Seek to live, currently behind live": "快轉至直播,目前為稍早畫面",
84
+ "Seek to live, currently playing live": "快轉至直播,目前為現場畫面",
85
  "progress bar timing: currentTime={1} duration={2}": "{1}/{2}",
86
  "{1} is loading.": "{1} 正在載入。"
87
  });
vendor/videojs/lang/zh-TW.json CHANGED
@@ -24,24 +24,24 @@
24
  "Audio Track": "音軌",
25
  "You aborted the media playback": "影片播放已終止",
26
  "A network error caused the media download to fail part-way.": "網路錯誤導致影片下載失敗。",
27
- "The media could not be loaded, either because the server or network failed or because the format is not supported.": "影片因格式不支援或者伺服器或網路的問題無法載入。",
28
- "The media playback was aborted due to a corruption problem or because the media used features your browser did not support.": "由於影片檔案損毀或是該影片使用了您的瀏覽器不支援的功能,播放終止。",
29
- "No compatible source was found for this media.": "無法找到相容此影片的來源。",
30
- "The media is encrypted and we do not have the keys to decrypt it.": "影片已加密,無法解密。",
31
  "Play Video": "播放影片",
32
  "Close": "關閉",
33
- "Modal Window": "對話框",
34
- "This is a modal window": "這是一個對話框",
35
- "This modal can be closed by pressing the Escape key or activating the close button.": "可以按ESC按鍵或啟用關閉按鈕來關閉此對話框。",
36
  ", opens captions settings dialog": ", 開啟標題設定對話框",
37
  ", opens subtitles settings dialog": ", 開啟字幕設定對話框",
38
  ", opens descriptions settings dialog": ", 開啟描述設定對話框",
39
  ", selected": ", 選擇",
40
  "captions settings": "字幕設定",
41
- "Audio Player": "音頻播放器",
42
- "Video Player": "視頻播放器",
43
  "Replay": "重播",
44
- "Progress Bar": "進度小節",
45
  "Volume Level": "音量",
46
  "subtitles settings": "字幕設定",
47
  "descriptions settings": "描述設定",
@@ -66,22 +66,22 @@
66
  "Depressed": "壓低",
67
  "Uniform": "均勻",
68
  "Dropshadow": "下陰影",
69
- "Font Family": "字型庫",
70
- "Proportional Sans-Serif": "比例無細體",
71
- "Monospace Sans-Serif": "單間隔無細體",
72
- "Proportional Serif": "比例細體",
73
- "Monospace Serif": "單間隔細體",
74
  "Casual": "輕便的",
75
  "Script": "手寫體",
76
  "Small Caps": "小型大寫字體",
77
  "Reset": "重置",
78
  "restore all settings to the default values": "恢復全部設定至預設值",
79
  "Done": "完成",
80
- "Caption Settings Dialog": "字幕設定視窗",
81
- "Beginning of dialog window. Escape will cancel and close the window.": "開始對話視窗。離開會取消及關閉視窗",
82
  "End of dialog window.": "結束對話視窗",
83
- "Seek to live, currently behind live": "試圖直播,目前延時播放",
84
- "Seek to live, currently playing live": "試圖直播,目前即時播放",
85
  "progress bar timing: currentTime={1} duration={2}": "{1}/{2}",
86
  "{1} is loading.": "{1} 正在載入。"
87
  }
24
  "Audio Track": "音軌",
25
  "You aborted the media playback": "影片播放已終止",
26
  "A network error caused the media download to fail part-way.": "網路錯誤導致影片下載失敗。",
27
+ "The media could not be loaded, either because the server or network failed or because the format is not supported.": "因格式不支援、伺服器或網路的問題無法載入媒體。",
28
+ "The media playback was aborted due to a corruption problem or because the media used features your browser did not support.": "由於影片檔案損毀或是該影片使用了您的瀏覽器不支援的功能,已終止播放媒體。",
29
+ "No compatible source was found for this media.": "無法找到相容此媒體的來源。",
30
+ "The media is encrypted and we do not have the keys to decrypt it.": "媒體已加密,無法解密。",
31
  "Play Video": "播放影片",
32
  "Close": "關閉",
33
+ "Modal Window": "強制回應視窗",
34
+ "This is a modal window": "此為強制回應視窗",
35
+ "This modal can be closed by pressing the Escape key or activating the close button.": "可以按ESC按鍵或關閉按鈕來關閉此視窗。",
36
  ", opens captions settings dialog": ", 開啟標題設定對話框",
37
  ", opens subtitles settings dialog": ", 開啟字幕設定對話框",
38
  ", opens descriptions settings dialog": ", 開啟描述設定對話框",
39
  ", selected": ", 選擇",
40
  "captions settings": "字幕設定",
41
+ "Audio Player": "音訊播放器",
42
+ "Video Player": "視訊播放器",
43
  "Replay": "重播",
44
+ "Progress Bar": "進度列",
45
  "Volume Level": "音量",
46
  "subtitles settings": "字幕設定",
47
  "descriptions settings": "描述設定",
66
  "Depressed": "壓低",
67
  "Uniform": "均勻",
68
  "Dropshadow": "下陰影",
69
+ "Font Family": "字型系列",
70
+ "Proportional Sans-Serif": "調和間距無襯線字型",
71
+ "Monospace Sans-Serif": "等寬無襯線字型",
72
+ "Proportional Serif": "調和間距襯線字型",
73
+ "Monospace Serif": "等寬襯線字型",
74
  "Casual": "輕便的",
75
  "Script": "手寫體",
76
  "Small Caps": "小型大寫字體",
77
  "Reset": "重置",
78
  "restore all settings to the default values": "恢復全部設定至預設值",
79
  "Done": "完成",
80
+ "Caption Settings Dialog": "字幕設定對話框",
81
+ "Beginning of dialog window. Escape will cancel and close the window.": "開始對話視窗。離開會取消並關閉視窗",
82
  "End of dialog window.": "結束對話視窗",
83
+ "Seek to live, currently behind live": "快轉至直播,目前為稍早畫面",
84
+ "Seek to live, currently playing live": "快轉至直播,目前為現場畫面",
85
  "progress bar timing: currentTime={1} duration={2}": "{1}/{2}",
86
  "{1} is loading.": "{1} 正在載入。"
87
  }
vendor/videojs/video-js.min.css CHANGED
@@ -1 +1 @@
1
- @charset "UTF-8";.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.video-js .vjs-modal-dialog,.vjs-button>.vjs-icon-placeholder:before,.vjs-modal-dialog .vjs-modal-dialog-content{position:absolute;top:0;left:0;width:100%;height:100%}.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.vjs-button>.vjs-icon-placeholder:before{text-align:center}@font-face{font-family:VideoJS;src:url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABDkAAsAAAAAG6gAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAPgAAAFZRiV3hY21hcAAAAYQAAADaAAADPv749/pnbHlmAAACYAAAC3AAABHQZg6OcWhlYWQAAA3QAAAAKwAAADYZw251aGhlYQAADfwAAAAdAAAAJA+RCLFobXR4AAAOHAAAABMAAACM744AAGxvY2EAAA4wAAAASAAAAEhF6kqubWF4cAAADngAAAAfAAAAIAE0AIFuYW1lAAAOmAAAASUAAAIK1cf1oHBvc3QAAA/AAAABJAAAAdPExYuNeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGS7wTiBgZWBgaWQ5RkDA8MvCM0cwxDOeI6BgYmBlZkBKwhIc01hcPjI+FGJHcRdyA4RZgQRADK3CxEAAHic7dFZbsMgAEXRS0ycyZnnOeG7y+qC8pU1dHusIOXxuoxaOlwZYWQB0Aea4quIEN4E9LzKbKjzDeM6H/mua6Lmc/p8yhg0lvdYx15ZG8uOLQOGjMp3EzqmzJizYMmKNRu27Nhz4MiJMxeu3Ljz4Ekqm7T8P52G8PP3lnTOVk++Z6iN6QZzNN1F7ptuN7eGOjDUoaGODHVsuvU8MdTO9Hd5aqgzQ50b6sJQl4a6MtS1oW4MdWuoO0PdG+rBUI+GejLUs6FeDPVqqDdDvRvqw1CfhpqM9At0iFLaAAB4nJ1YDXBTVRZ+5/22TUlJ8we0pHlJm7RJf5O8F2j6EymlSPkpxaL8U2xpa3DKj0CBhc2IW4eWKSokIoLsuMqssM64f+jA4HSdWXXXscBq67IOs3FXZ1ZYWVyRFdo899yXtIBQZ90k7717zz3v3HPPOfd854YCCj9cL9dL0RQFOqCbGJnrHb5EayiKIWN8iA/hWBblo6hUWm8TtCDwE80WMJus/irwyxOdxeB0MDb14VNJHnXYoLLSl6FfCUYO9nYPTA8Epg9090LprfbBbZ2hY0UlJUXHQp3/vtWkS6EBv8+rPMq5u9692f/dNxJNiqwC1xPE9TCUgCsSdQWgE3XQD25lkG4CN2xmTcOXWBOyser6RN6KnGbKSbmQ3+d0OI1m2W8QzLLkI2sykrWAgJJEtA8vGGW/2Q+CmT3n8zS9wZwu2DCvtuZKZN3xkrLh36yCZuUomQSqGpY8t/25VfHVhw8z4ebGBtfLb0ya9PCaDc+8dGTvk2dsh6z7WzvowlXKUSWo9MJ15a3KrEP2loOr2Ojhw6iW6hf2BDdEccQvZGpaAy7YovSwq8kr7HGllxpd71rkS6G0Sf11sl9OvMK1+jwPPODxjUwkOim9CU3ix1wNjXDfmJSEn618Bs6lpWwUpU+8PCqLMY650zjq8VhCIP17NEKTx3eaLL+s5Pi6yJWaWjTHLR1jYzPSV9VF/6Ojdb/1kO3Mk3uhHC0x6gc1BjlKQ+nQFxTYdaJkZ7ySVxLBbhR1dsboNXp1tCYKW2LRaEzpYcIx2BKNxaL0ZaUnSqfFoiNhHKR/GkX6PWUSAaJelQaqZL1EpoHNsajSEyPSoJ9IjhIxTdjHLmwZvhRDOiFTY/YeQnvrVZmiTQtGncECXtFTBZLOVwwMRgoXHAkXzMzPn1nAJJ8jYSbMDaqN2waGLzNhih/bZynUBMpIWSg7VYi7DRx2m8ALkIdRCJwI6ArJx2EI8kaDWeTQKeAFk9fjl/1AvwktjQ1P7NjyMGQyfd4vjipX6M/i52D7Cq80kqlcxEcGXRr/FEcgs0u5uGgB4VWuMFfpdn2Re6Hi3PqzmxWKsz6+ae2Pn9hXXw/fqM859UiGC0oKYYILJBqJrsn1Z1E5qOs9rQCiUQRREjm8yJcbHF5cUJufX1vAHlefw0XgUoboS3ETfQlTxBC4SOtuE8VPRJTBSCQSjZCpk7Gqzu+masaZ2y7Zjehho4F3g82BNDkAHpORG4+OCS+f6JTPmtRn/PH1kch6d04sp7AQb25aQ/pqUyXeQ8vrebG8OYQdXOQ+585u0sdW9rqalzRURiJ+9F4MweRFrKUjl1GUYhH1A27WOHw5cTFSFPMo9EeUIGnQTZHIaJ7AHLaOKsOODaNF9jkBjYG2QEsQ2xjMUAx2bBEbeTBWMHwskBjngq56S/yfgkBnWBa4K9sqKtq2t1UI8S9He5XuBRbawAdatrQEAi30Aks2+LM8WeCbalVZkWNylvJ+dqJnzVb+OHlSoKW8nPCP7Rd+CcZ2DdWAGqJ2CBFOphgywFFCFBNtfAbGtNPBCwxvygHeYMZMY9ZboBqwq/pVrsbgN5tkv152ODlbMfiqwGMBgxa4Exz3QhovRIUp6acqZmQzRq0ypDXS2TPLT02YIkQETnOE445oOGxOmXAqUJNNG7XgupMjPq2ua9asrj5yY/yuKteO1Kx0YNJTufrirLe1mZnat7OL6rnUdCWenpW6I8mAnbsY8KWs1PuSovCW9A/Z25PQ24a7cNOqgmTkLmBMgh4THgc4b9k2IVv1/g/F5nGljwPLfOgHAzJzh45V/4+WenTzmMtR5Z7us2Tys909UHqrPY7KbckoxRvRHhmVc3cJGE97uml0R1S0jdULVl7EvZtDFVBF35N9cEdjpgmAiOlFZ+Dtoh93+D3zzHr8RRNZQhnCNMNbcegOvpEwZoL+06cJQ07h+th3fZ/7PVbVC6ngTAV/KoLFuO6+2KFcU651gEb5ugPSIb1D+Xp8V4+k3sEIGnw5mYe4If4k1lFYr6SCzmM2EQ8iWtmwjnBI9kTwe1TlfAmXh7H02by9fW2gsjKwtv0aaURKil4OdV7rDL1MXIFNrhdxohcZXYTnq47WisrKitaObbf5+yvkLi5J6lCNZZ+B6GC38VNBZBDidSS/+mSvh6s+srgC8pyKMvDtt+de3c9fU76ZPfuM8ud4Kv0fyP/LqfepMT/3oZxSqpZaTa1DaQYLY8TFsHYbWYsPoRhRWfL5eSSQbhUGgGC3YLbVMk6PitTFNGpAsNrC6D1VNBKgBHMejaiuRWEWGgsSDBTJjqWIl8kJLlsaLJ2tXDr6xGfT85bM2Q06a46x2HTgvdnV8z5YDy/27J4zt6x2VtkzjoYpkq36kaBr4eQSg7tyiVweWubXZugtadl58ydapfbORfKsDTuZ0OBgx4cfdjCf5tbWNITnL120fdOi1RV1C3uKGzNdwYLcMvZ3BxoPyTOCD1XvXTp7U10gWCVmTV9b3r2z0SkGWovb2hp9I89O8a2smlyaO8muMU+dRmtzp60IzAoFpjLr1n388boLyf0dRvxhsHZ0qbWqDkwqvvpkj4l0fY6EIXRi5sQSrAvsVYwXRy4qJ2EVtD1AN7a0HWth9ymvL1xc3WTUKK/TAHA/bXDVtVWfOMfuGxGZv4Ln/jVr9jc3j1yMv0tndmyt9Vq88Y9gH1wtLX3KWjot5++jWHgAoZZkQ14wGQ20Fli71UmKJAy4xKMSTGbVdybW7FDDAut9XpD5AzWrYO7zQ8qffqF8+Ynd/clrHcdyxGy3a/3+mfNnzC/cBsveTjnTvXf1o6vzOlZw7WtqtdmPK/Errz/6NNtD72zmNOZfbmYdTGHfoofqI79Oc+R2n1lrnL6pOm0Up7kwxhTW12Amm7WYkXR2qYrF2AmgmbAsxZjwy1xpg/m1Je2vrp8v/nz2xpmlBg4E9hrMU341wVpTOh/OfmGvAnra8q6uctr60ZQHV3Q+WMQJykMj8ZsWn2QBOmmHMB+m5pDIpTFonYigiaKAhGEiAHF7EliVnQkjoLVIMPtJpBKHYd3A8GYH9jJzrWwmHx5Qjp7vDAX0suGRym1vtm/9W1/HyR8vczfMs6Sk8DSv855/5dlX9oQq52hT8syyp2rx5Id17IAyAM3wIjQPMOHzytEB64q6D5zT91yNbnx3V/nqnd017S9Y0605k3izoXLpsxde2n38yoOV9s1LcjwzNjbdX6asnBVaBj/6/DwKwPkpcqbDG7BnsXoSqWnUAmottYF6jMSdVyYZh3zVXCjwTiwwHH6sGuRiEHQGzuRX6whZkp123oy1BWE2mEfJ/tvIRtM4ZM5bDXiMsPMaAKOTyc5uL57rqyyc5y5JE5pm1i2S2iUX0CcaQ6lC6Zog7JqSqZmYlosl2K6pwNA84zRnQW6SaALYZQGW5lhCtU/W34N6o+bKfZ8cf3/Cl/+iTX3wBzpOY4mRkeNf3rptycGSshQWgGbYt5jFc2e0+DglIrwl6DVWQ7BuwaJ3Xk1J4VL5urnLl/Wf+gHU/hZoZdKNym6lG+I34FaNeZKcSpJIo2IeCVvpdsDGfKvzJnAwmeD37Ow65ZWwSowpgwX5T69s/rB55dP5BcpgDKFV8p7q2sn/1uc93bVzT/w6UrCqDTWvfCq/oCD/qZXNoUj8BL5Kp6GU017frfNXkAtiiyf/SOCEeLqnd8R/Ql9GlCRfctS6k5chvIBuQ1zCCjoCHL2DHNHIXxMJ3kQeO8lbsUXONeSfA5EjcG6/E+KdhN4bP04vBhdi883+BFBzQbxFbvZzQeY9LNBZc0FNfn5NwfDn6rCTnTw6R8o+gfpf5hCom33cRuiTlss3KHmZjD+BPN+5gXuA2ziS/Q73mLxUkpbKN/eqwz5uK0X9F3h2d1V4nGNgZGBgAOJd776+iue3+crAzc4AAje5Bfcg0xz9YHEOBiYQBQA8FQlFAHicY2BkYGBnAAGOPgaG//85+hkYGVCBMgBGGwNYAAAAeJxjYGBgYB8EmKOPgQEAQ04BfgAAAAAAAA4AaAB+AMwA4AECAUIBbAGYAcICGAJYArQC4AMwA7AD3gQwBJYE3AUkBWYFigYgBmYGtAbqB1gIEghYCG4IhAi2COh4nGNgZGBgUGYoZWBnAAEmIOYCQgaG/2A+AwAYCQG2AHicXZBNaoNAGIZfE5PQCKFQ2lUps2oXBfOzzAESyDKBQJdGR2NQR3QSSE/QE/QEPUUPUHqsvsrXjTMw83zPvPMNCuAWP3DQDAejdm1GjzwS7pMmwi75XngAD4/CQ/oX4TFe4Qt7uMMbOzjuDc0EmXCP/C7cJ38Iu+RP4QEe8CU8pP8WHmOPX2EPz87TPo202ey2OjlnQSXV/6arOjWFmvszMWtd6CqwOlKHq6ovycLaWMWVydXKFFZnmVFlZU46tP7R2nI5ncbi/dDkfDtFBA2DDXbYkhKc+V0Bqs5Zt9JM1HQGBRTm/EezTmZNKtpcAMs9Yu6AK9caF76zoLWIWcfMGOSkVduvSWechqZsz040Ib2PY3urxBJTzriT95lipz+TN1fmAAAAeJxtkMl2wjAMRfOAhABlKm2h80C3+ajgCKKDY6cegP59TYBzukAL+z1Zsq8ctaJTTKPrsUQLbXQQI0EXKXroY4AbDDHCGBNMcYsZ7nCPB8yxwCOe8IwXvOIN7/jAJ76wxHfUqWX+OzgumWAjJMV17i0Ndlr6irLKO+qftdT7i6y4uFSUvCknay+lFYZIZaQcmfH/xIFdYn98bqhra1aKTM/6lWMnyaYirx1rFUQZFBkb2zJUtoXeJCeg0WnLtHeSFc3OtrnozNwqi0TkSpBMDB1nSde5oJXW23hTS2/T0LilglXX7dmFVxLnq5U0vYATHFk3zX3BOisoQHNDFDeZnqKDy9hRNawN7Vh727hFzcJ5c8TILrKZfH7tIPxAFP0BpLeJPA==) format("woff");font-weight:400;font-style:normal}.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.video-js .vjs-play-control .vjs-icon-placeholder,.vjs-icon-play{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.video-js .vjs-play-control .vjs-icon-placeholder:before,.vjs-icon-play:before{content:"\f101"}.vjs-icon-play-circle{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-play-circle:before{content:"\f102"}.video-js .vjs-play-control.vjs-playing .vjs-icon-placeholder,.vjs-icon-pause{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-play-control.vjs-playing .vjs-icon-placeholder:before,.vjs-icon-pause:before{content:"\f103"}.video-js .vjs-mute-control.vjs-vol-0 .vjs-icon-placeholder,.vjs-icon-volume-mute{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control.vjs-vol-0 .vjs-icon-placeholder:before,.vjs-icon-volume-mute:before{content:"\f104"}.video-js .vjs-mute-control.vjs-vol-1 .vjs-icon-placeholder,.vjs-icon-volume-low{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control.vjs-vol-1 .vjs-icon-placeholder:before,.vjs-icon-volume-low:before{content:"\f105"}.video-js .vjs-mute-control.vjs-vol-2 .vjs-icon-placeholder,.vjs-icon-volume-mid{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control.vjs-vol-2 .vjs-icon-placeholder:before,.vjs-icon-volume-mid:before{content:"\f106"}.video-js .vjs-mute-control .vjs-icon-placeholder,.vjs-icon-volume-high{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control .vjs-icon-placeholder:before,.vjs-icon-volume-high:before{content:"\f107"}.video-js .vjs-fullscreen-control .vjs-icon-placeholder,.vjs-icon-fullscreen-enter{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-fullscreen-control .vjs-icon-placeholder:before,.vjs-icon-fullscreen-enter:before{content:"\f108"}.video-js.vjs-fullscreen .vjs-fullscreen-control .vjs-icon-placeholder,.vjs-icon-fullscreen-exit{font-family:VideoJS;font-weight:400;font-style:normal}.video-js.vjs-fullscreen .vjs-fullscreen-control .vjs-icon-placeholder:before,.vjs-icon-fullscreen-exit:before{content:"\f109"}.vjs-icon-square{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-square:before{content:"\f10a"}.vjs-icon-spinner{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-spinner:before{content:"\f10b"}.video-js .vjs-subs-caps-button .vjs-icon-placeholder,.video-js .vjs-subtitles-button .vjs-icon-placeholder,.video-js.video-js:lang(en-AU) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js.video-js:lang(en-GB) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js.video-js:lang(en-IE) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js.video-js:lang(en-NZ) .vjs-subs-caps-button .vjs-icon-placeholder,.vjs-icon-subtitles{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js .vjs-subtitles-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-AU) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-GB) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-IE) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-NZ) .vjs-subs-caps-button .vjs-icon-placeholder:before,.vjs-icon-subtitles:before{content:"\f10c"}.video-js .vjs-captions-button .vjs-icon-placeholder,.video-js:lang(en) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js:lang(fr-CA) .vjs-subs-caps-button .vjs-icon-placeholder,.vjs-icon-captions{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-captions-button .vjs-icon-placeholder:before,.video-js:lang(en) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js:lang(fr-CA) .vjs-subs-caps-button .vjs-icon-placeholder:before,.vjs-icon-captions:before{content:"\f10d"}.video-js .vjs-chapters-button .vjs-icon-placeholder,.vjs-icon-chapters{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-chapters-button .vjs-icon-placeholder:before,.vjs-icon-chapters:before{content:"\f10e"}.vjs-icon-share{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-share:before{content:"\f10f"}.vjs-icon-cog{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-cog:before{content:"\f110"}.video-js .vjs-play-progress,.video-js .vjs-volume-level,.vjs-icon-circle,.vjs-seek-to-live-control .vjs-icon-placeholder{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-play-progress:before,.video-js .vjs-volume-level:before,.vjs-icon-circle:before,.vjs-seek-to-live-control .vjs-icon-placeholder:before{content:"\f111"}.vjs-icon-circle-outline{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-circle-outline:before{content:"\f112"}.vjs-icon-circle-inner-circle{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-circle-inner-circle:before{content:"\f113"}.vjs-icon-hd{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-hd:before{content:"\f114"}.video-js .vjs-control.vjs-close-button .vjs-icon-placeholder,.vjs-icon-cancel{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-control.vjs-close-button .vjs-icon-placeholder:before,.vjs-icon-cancel:before{content:"\f115"}.video-js .vjs-play-control.vjs-ended .vjs-icon-placeholder,.vjs-icon-replay{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-play-control.vjs-ended .vjs-icon-placeholder:before,.vjs-icon-replay:before{content:"\f116"}.vjs-icon-facebook{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-facebook:before{content:"\f117"}.vjs-icon-gplus{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-gplus:before{content:"\f118"}.vjs-icon-linkedin{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-linkedin:before{content:"\f119"}.vjs-icon-twitter{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-twitter:before{content:"\f11a"}.vjs-icon-tumblr{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-tumblr:before{content:"\f11b"}.vjs-icon-pinterest{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-pinterest:before{content:"\f11c"}.video-js .vjs-descriptions-button .vjs-icon-placeholder,.vjs-icon-audio-description{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-descriptions-button .vjs-icon-placeholder:before,.vjs-icon-audio-description:before{content:"\f11d"}.video-js .vjs-audio-button .vjs-icon-placeholder,.vjs-icon-audio{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-audio-button .vjs-icon-placeholder:before,.vjs-icon-audio:before{content:"\f11e"}.vjs-icon-next-item{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-next-item:before{content:"\f11f"}.vjs-icon-previous-item{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-previous-item:before{content:"\f120"}.video-js .vjs-picture-in-picture-control .vjs-icon-placeholder,.vjs-icon-picture-in-picture-enter{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-picture-in-picture-control .vjs-icon-placeholder:before,.vjs-icon-picture-in-picture-enter:before{content:"\f121"}.video-js.vjs-picture-in-picture .vjs-picture-in-picture-control .vjs-icon-placeholder,.vjs-icon-picture-in-picture-exit{font-family:VideoJS;font-weight:400;font-style:normal}.video-js.vjs-picture-in-picture .vjs-picture-in-picture-control .vjs-icon-placeholder:before,.vjs-icon-picture-in-picture-exit:before{content:"\f122"}.video-js{display:block;vertical-align:top;box-sizing:border-box;color:#fff;background-color:#000;position:relative;padding:0;font-size:10px;line-height:1;font-weight:400;font-style:normal;font-family:Arial,Helvetica,sans-serif;word-break:initial}.video-js:-moz-full-screen{position:absolute}.video-js:-webkit-full-screen{width:100%!important;height:100%!important}.video-js[tabindex="-1"]{outline:0}.video-js *,.video-js :after,.video-js :before{box-sizing:inherit}.video-js ul{font-family:inherit;font-size:inherit;line-height:inherit;list-style-position:outside;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}.video-js.vjs-16-9,.video-js.vjs-4-3,.video-js.vjs-fluid{width:100%;max-width:100%;height:0}.video-js.vjs-16-9{padding-top:56.25%}.video-js.vjs-4-3{padding-top:75%}.video-js.vjs-fill{width:100%;height:100%}.video-js .vjs-tech{position:absolute;top:0;left:0;width:100%;height:100%}body.vjs-full-window{padding:0;margin:0;height:100%}.vjs-full-window .video-js.vjs-fullscreen{position:fixed;overflow:hidden;z-index:1000;left:0;top:0;bottom:0;right:0}.video-js.vjs-fullscreen:not(.vjs-ios-native-fs){width:100%!important;height:100%!important;padding-top:0!important}.video-js.vjs-fullscreen.vjs-user-inactive{cursor:none}.vjs-hidden{display:none!important}.vjs-disabled{opacity:.5;cursor:default}.video-js .vjs-offscreen{height:1px;left:-9999px;position:absolute;top:0;width:1px}.vjs-lock-showing{display:block!important;opacity:1;visibility:visible}.vjs-no-js{padding:20px;color:#fff;background-color:#000;font-size:18px;font-family:Arial,Helvetica,sans-serif;text-align:center;width:300px;height:150px;margin:0 auto}.vjs-no-js a,.vjs-no-js a:visited{color:#66a8cc}.video-js .vjs-big-play-button{font-size:3em;line-height:1.5em;height:1.63332em;width:3em;display:block;position:absolute;top:10px;left:10px;padding:0;cursor:pointer;opacity:1;border:.06666em solid #fff;background-color:#2b333f;background-color:rgba(43,51,63,.7);border-radius:.3em;transition:all .4s}.vjs-big-play-centered .vjs-big-play-button{top:50%;left:50%;margin-top:-.81666em;margin-left:-1.5em}.video-js .vjs-big-play-button:focus,.video-js:hover .vjs-big-play-button{border-color:#fff;background-color:#73859f;background-color:rgba(115,133,159,.5);transition:all 0s}.vjs-controls-disabled .vjs-big-play-button,.vjs-error .vjs-big-play-button,.vjs-has-started .vjs-big-play-button,.vjs-using-native-controls .vjs-big-play-button{display:none}.vjs-has-started.vjs-paused.vjs-show-big-play-button-on-pause .vjs-big-play-button{display:block}.video-js button{background:0 0;border:none;color:inherit;display:inline-block;font-size:inherit;line-height:inherit;text-transform:none;text-decoration:none;transition:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.vjs-control .vjs-button{width:100%;height:100%}.video-js .vjs-control.vjs-close-button{cursor:pointer;height:3em;position:absolute;right:0;top:.5em;z-index:2}.video-js .vjs-modal-dialog{background:rgba(0,0,0,.8);background:linear-gradient(180deg,rgba(0,0,0,.8),rgba(255,255,255,0));overflow:auto}.video-js .vjs-modal-dialog>*{box-sizing:border-box}.vjs-modal-dialog .vjs-modal-dialog-content{font-size:1.2em;line-height:1.5;padding:20px 24px;z-index:1}.vjs-menu-button{cursor:pointer}.vjs-menu-button.vjs-disabled{cursor:default}.vjs-workinghover .vjs-menu-button.vjs-disabled:hover .vjs-menu{display:none}.vjs-menu .vjs-menu-content{display:block;padding:0;margin:0;font-family:Arial,Helvetica,sans-serif;overflow:auto}.vjs-menu .vjs-menu-content>*{box-sizing:border-box}.vjs-scrubbing .vjs-control.vjs-menu-button:hover .vjs-menu{display:none}.vjs-menu li{list-style:none;margin:0;padding:.2em 0;line-height:1.4em;font-size:1.2em;text-align:center;text-transform:lowercase}.js-focus-visible .vjs-menu li.vjs-menu-item:hover,.vjs-menu li.vjs-menu-item:focus,.vjs-menu li.vjs-menu-item:hover{background-color:#73859f;background-color:rgba(115,133,159,.5)}.js-focus-visible .vjs-menu li.vjs-selected:hover,.vjs-menu li.vjs-selected,.vjs-menu li.vjs-selected:focus,.vjs-menu li.vjs-selected:hover{background-color:#fff;color:#2b333f}.js-focus-visible .vjs-menu :focus:not(.focus-visible),.video-js .vjs-menu :focus:not(:focus-visible){background:0 0}.vjs-menu li.vjs-menu-title{text-align:center;text-transform:uppercase;font-size:1em;line-height:2em;padding:0;margin:0 0 .3em 0;font-weight:700;cursor:default}.vjs-menu-button-popup .vjs-menu{display:none;position:absolute;bottom:0;width:10em;left:-3em;height:0;margin-bottom:1.5em;border-top-color:rgba(43,51,63,.7)}.vjs-menu-button-popup .vjs-menu .vjs-menu-content{background-color:#2b333f;background-color:rgba(43,51,63,.7);position:absolute;width:100%;bottom:1.5em;max-height:15em}.vjs-layout-tiny .vjs-menu-button-popup .vjs-menu .vjs-menu-content,.vjs-layout-x-small .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:5em}.vjs-layout-small .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:10em}.vjs-layout-medium .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:14em}.vjs-layout-huge .vjs-menu-button-popup .vjs-menu .vjs-menu-content,.vjs-layout-large .vjs-menu-button-popup .vjs-menu .vjs-menu-content,.vjs-layout-x-large .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:25em}.vjs-menu-button-popup .vjs-menu.vjs-lock-showing,.vjs-workinghover .vjs-menu-button-popup.vjs-hover .vjs-menu{display:block}.video-js .vjs-menu-button-inline{transition:all .4s;overflow:hidden}.video-js .vjs-menu-button-inline:before{width:2.222222222em}.video-js .vjs-menu-button-inline.vjs-slider-active,.video-js .vjs-menu-button-inline:focus,.video-js .vjs-menu-button-inline:hover,.video-js.vjs-no-flex .vjs-menu-button-inline{width:12em}.vjs-menu-button-inline .vjs-menu{opacity:0;height:100%;width:auto;position:absolute;left:4em;top:0;padding:0;margin:0;transition:all .4s}.vjs-menu-button-inline.vjs-slider-active .vjs-menu,.vjs-menu-button-inline:focus .vjs-menu,.vjs-menu-button-inline:hover .vjs-menu{display:block;opacity:1}.vjs-no-flex .vjs-menu-button-inline .vjs-menu{display:block;opacity:1;position:relative;width:auto}.vjs-no-flex .vjs-menu-button-inline.vjs-slider-active .vjs-menu,.vjs-no-flex .vjs-menu-button-inline:focus .vjs-menu,.vjs-no-flex .vjs-menu-button-inline:hover .vjs-menu{width:auto}.vjs-menu-button-inline .vjs-menu-content{width:auto;height:100%;margin:0;overflow:hidden}.video-js .vjs-control-bar{display:none;width:100%;position:absolute;bottom:0;left:0;right:0;height:3em;background-color:#2b333f;background-color:rgba(43,51,63,.7)}.vjs-has-started .vjs-control-bar{display:flex;visibility:visible;opacity:1;transition:visibility .1s,opacity .1s}.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar{visibility:visible;opacity:0;transition:visibility 1s,opacity 1s}.vjs-controls-disabled .vjs-control-bar,.vjs-error .vjs-control-bar,.vjs-using-native-controls .vjs-control-bar{display:none!important}.vjs-audio.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar{opacity:1;visibility:visible}.vjs-has-started.vjs-no-flex .vjs-control-bar{display:table}.video-js .vjs-control{position:relative;text-align:center;margin:0;padding:0;height:100%;width:4em;flex:none}.vjs-button>.vjs-icon-placeholder:before{font-size:1.8em;line-height:1.67}.vjs-button>.vjs-icon-placeholder{display:block}.video-js .vjs-control:focus,.video-js .vjs-control:focus:before,.video-js .vjs-control:hover:before{text-shadow:0 0 1em #fff}.video-js .vjs-control-text{border:0;clip:rect(0 0 0 0);height:1px;overflow:hidden;padding:0;position:absolute;width:1px}.vjs-no-flex .vjs-control{display:table-cell;vertical-align:middle}.video-js .vjs-custom-control-spacer{display:none}.video-js .vjs-progress-control{cursor:pointer;flex:auto;display:flex;align-items:center;min-width:4em;touch-action:none}.video-js .vjs-progress-control.disabled{cursor:default}.vjs-live .vjs-progress-control{display:none}.vjs-liveui .vjs-progress-control{display:flex;align-items:center}.vjs-no-flex .vjs-progress-control{width:auto}.video-js .vjs-progress-holder{flex:auto;transition:all .2s;height:.3em}.video-js .vjs-progress-control .vjs-progress-holder{margin:0 10px}.video-js .vjs-progress-control:hover .vjs-progress-holder{font-size:1.6666666667em}.video-js .vjs-progress-control:hover .vjs-progress-holder.disabled{font-size:1em}.video-js .vjs-progress-holder .vjs-load-progress,.video-js .vjs-progress-holder .vjs-load-progress div,.video-js .vjs-progress-holder .vjs-play-progress{position:absolute;display:block;height:100%;margin:0;padding:0;width:0}.video-js .vjs-play-progress{background-color:#fff}.video-js .vjs-play-progress:before{font-size:.9em;position:absolute;right:-.5em;top:-.3333333333em;z-index:1}.video-js .vjs-load-progress{background:rgba(115,133,159,.5)}.video-js .vjs-load-progress div{background:rgba(115,133,159,.75)}.video-js .vjs-time-tooltip{background-color:#fff;background-color:rgba(255,255,255,.8);border-radius:.3em;color:#000;float:right;font-family:Arial,Helvetica,sans-serif;font-size:1em;padding:6px 8px 8px 8px;pointer-events:none;position:absolute;top:-3.4em;visibility:hidden;z-index:1}.video-js .vjs-progress-holder:focus .vjs-time-tooltip{display:none}.video-js .vjs-progress-control:hover .vjs-progress-holder:focus .vjs-time-tooltip,.video-js .vjs-progress-control:hover .vjs-time-tooltip{display:block;font-size:.6em;visibility:visible}.video-js .vjs-progress-control.disabled:hover .vjs-time-tooltip{font-size:1em}.video-js .vjs-progress-control .vjs-mouse-display{display:none;position:absolute;width:1px;height:100%;background-color:#000;z-index:1}.vjs-no-flex .vjs-progress-control .vjs-mouse-display{z-index:0}.video-js .vjs-progress-control:hover .vjs-mouse-display{display:block}.video-js.vjs-user-inactive .vjs-progress-control .vjs-mouse-display{visibility:hidden;opacity:0;transition:visibility 1s,opacity 1s}.video-js.vjs-user-inactive.vjs-no-flex .vjs-progress-control .vjs-mouse-display{display:none}.vjs-mouse-display .vjs-time-tooltip{color:#fff;background-color:#000;background-color:rgba(0,0,0,.8)}.video-js .vjs-slider{position:relative;cursor:pointer;padding:0;margin:0 .45em 0 .45em;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:#73859f;background-color:rgba(115,133,159,.5)}.video-js .vjs-slider.disabled{cursor:default}.video-js .vjs-slider:focus{text-shadow:0 0 1em #fff;box-shadow:0 0 1em #fff}.video-js .vjs-mute-control{cursor:pointer;flex:none}.video-js .vjs-volume-control{cursor:pointer;margin-right:1em;display:flex}.video-js .vjs-volume-control.vjs-volume-horizontal{width:5em}.video-js .vjs-volume-panel .vjs-volume-control{visibility:visible;opacity:0;width:1px;height:1px;margin-left:-1px}.video-js .vjs-volume-panel{transition:width 1s}.video-js .vjs-volume-panel .vjs-volume-control.vjs-slider-active,.video-js .vjs-volume-panel .vjs-volume-control:active,.video-js .vjs-volume-panel.vjs-hover .vjs-mute-control~.vjs-volume-control,.video-js .vjs-volume-panel.vjs-hover .vjs-volume-control,.video-js .vjs-volume-panel:active .vjs-volume-control,.video-js .vjs-volume-panel:focus .vjs-volume-control{visibility:visible;opacity:1;position:relative;transition:visibility .1s,opacity .1s,height .1s,width .1s,left 0s,top 0s}.video-js .vjs-volume-panel .vjs-volume-control.vjs-slider-active.vjs-volume-horizontal,.video-js .vjs-volume-panel .vjs-volume-control:active.vjs-volume-horizontal,.video-js .vjs-volume-panel.vjs-hover .vjs-mute-control~.vjs-volume-control.vjs-volume-horizontal,.video-js .vjs-volume-panel.vjs-hover .vjs-volume-control.vjs-volume-horizontal,.video-js .vjs-volume-panel:active .vjs-volume-control.vjs-volume-horizontal,.video-js .vjs-volume-panel:focus .vjs-volume-control.vjs-volume-horizontal{width:5em;height:3em;margin-right:0}.video-js .vjs-volume-panel .vjs-volume-control.vjs-slider-active.vjs-volume-vertical,.video-js .vjs-volume-panel .vjs-volume-control:active.vjs-volume-vertical,.video-js .vjs-volume-panel.vjs-hover .vjs-mute-control~.vjs-volume-control.vjs-volume-vertical,.video-js .vjs-volume-panel.vjs-hover .vjs-volume-control.vjs-volume-vertical,.video-js .vjs-volume-panel:active .vjs-volume-control.vjs-volume-vertical,.video-js .vjs-volume-panel:focus .vjs-volume-control.vjs-volume-vertical{left:-3.5em;transition:left 0s}.video-js .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-hover,.video-js .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js .vjs-volume-panel.vjs-volume-panel-horizontal:active{width:10em;transition:width .1s}.video-js .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-mute-toggle-only{width:4em}.video-js .vjs-volume-panel .vjs-volume-control.vjs-volume-vertical{height:8em;width:3em;left:-3000em;transition:visibility 1s,opacity 1s,height 1s 1s,width 1s 1s,left 1s 1s,top 1s 1s}.video-js .vjs-volume-panel .vjs-volume-control.vjs-volume-horizontal{transition:visibility 1s,opacity 1s,height 1s 1s,width 1s,left 1s 1s,top 1s 1s}.video-js.vjs-no-flex .vjs-volume-panel .vjs-volume-control.vjs-volume-horizontal{width:5em;height:3em;visibility:visible;opacity:1;position:relative;transition:none}.video-js.vjs-no-flex .vjs-volume-control.vjs-volume-vertical,.video-js.vjs-no-flex .vjs-volume-panel .vjs-volume-control.vjs-volume-vertical{position:absolute;bottom:3em;left:.5em}.video-js .vjs-volume-panel{display:flex}.video-js .vjs-volume-bar{margin:1.35em .45em}.vjs-volume-bar.vjs-slider-horizontal{width:5em;height:.3em}.vjs-volume-bar.vjs-slider-vertical{width:.3em;height:5em;margin:1.35em auto}.video-js .vjs-volume-level{position:absolute;bottom:0;left:0;background-color:#fff}.video-js .vjs-volume-level:before{position:absolute;font-size:.9em}.vjs-slider-vertical .vjs-volume-level{width:.3em}.vjs-slider-vertical .vjs-volume-level:before{top:-.5em;left:-.3em}.vjs-slider-horizontal .vjs-volume-level{height:.3em}.vjs-slider-horizontal .vjs-volume-level:before{top:-.3em;right:-.5em}.video-js .vjs-volume-panel.vjs-volume-panel-vertical{width:4em}.vjs-volume-bar.vjs-slider-vertical .vjs-volume-level{height:100%}.vjs-volume-bar.vjs-slider-horizontal .vjs-volume-level{width:100%}.video-js .vjs-volume-vertical{width:3em;height:8em;bottom:8em;background-color:#2b333f;background-color:rgba(43,51,63,.7)}.video-js .vjs-volume-horizontal .vjs-menu{left:-2em}.vjs-poster{display:inline-block;vertical-align:middle;background-repeat:no-repeat;background-position:50% 50%;background-size:contain;background-color:#000;cursor:pointer;margin:0;padding:0;position:absolute;top:0;right:0;bottom:0;left:0;height:100%}.vjs-has-started .vjs-poster{display:none}.vjs-audio.vjs-has-started .vjs-poster{display:block}.vjs-using-native-controls .vjs-poster{display:none}.video-js .vjs-live-control{display:flex;align-items:flex-start;flex:auto;font-size:1em;line-height:3em}.vjs-no-flex .vjs-live-control{display:table-cell;width:auto;text-align:left}.video-js.vjs-liveui .vjs-live-control,.video-js:not(.vjs-live) .vjs-live-control{display:none}.video-js .vjs-seek-to-live-control{align-items:center;cursor:pointer;flex:none;display:inline-flex;height:100%;padding-left:.5em;padding-right:.5em;font-size:1em;line-height:3em;width:auto;min-width:4em}.vjs-no-flex .vjs-seek-to-live-control{display:table-cell;width:auto;text-align:left}.video-js.vjs-live:not(.vjs-liveui) .vjs-seek-to-live-control,.video-js:not(.vjs-live) .vjs-seek-to-live-control{display:none}.vjs-seek-to-live-control.vjs-control.vjs-at-live-edge{cursor:auto}.vjs-seek-to-live-control .vjs-icon-placeholder{margin-right:.5em;color:#888}.vjs-seek-to-live-control.vjs-control.vjs-at-live-edge .vjs-icon-placeholder{color:red}.video-js .vjs-time-control{flex:none;font-size:1em;line-height:3em;min-width:2em;width:auto;padding-left:1em;padding-right:1em}.vjs-live .vjs-time-control{display:none}.video-js .vjs-current-time,.vjs-no-flex .vjs-current-time{display:none}.video-js .vjs-duration,.vjs-no-flex .vjs-duration{display:none}.vjs-time-divider{display:none;line-height:3em}.vjs-live .vjs-time-divider{display:none}.video-js .vjs-play-control{cursor:pointer}.video-js .vjs-play-control .vjs-icon-placeholder{flex:none}.vjs-text-track-display{position:absolute;bottom:3em;left:0;right:0;top:0;pointer-events:none}.video-js.vjs-user-inactive.vjs-playing .vjs-text-track-display{bottom:1em}.video-js .vjs-text-track{font-size:1.4em;text-align:center;margin-bottom:.1em}.vjs-subtitles{color:#fff}.vjs-captions{color:#fc6}.vjs-tt-cue{display:block}video::-webkit-media-text-track-display{transform:translateY(-3em)}.video-js.vjs-user-inactive.vjs-playing video::-webkit-media-text-track-display{transform:translateY(-1.5em)}.video-js .vjs-picture-in-picture-control{cursor:pointer;flex:none}.video-js .vjs-fullscreen-control{cursor:pointer;flex:none}.vjs-playback-rate .vjs-playback-rate-value,.vjs-playback-rate>.vjs-menu-button{position:absolute;top:0;left:0;width:100%;height:100%}.vjs-playback-rate .vjs-playback-rate-value{pointer-events:none;font-size:1.5em;line-height:2;text-align:center}.vjs-playback-rate .vjs-menu{width:4em;left:0}.vjs-error .vjs-error-display .vjs-modal-dialog-content{font-size:1.4em;text-align:center}.vjs-error .vjs-error-display:before{color:#fff;content:"X";font-family:Arial,Helvetica,sans-serif;font-size:4em;left:0;line-height:1;margin-top:-.5em;position:absolute;text-shadow:.05em .05em .1em #000;text-align:center;top:50%;vertical-align:middle;width:100%}.vjs-loading-spinner{display:none;position:absolute;top:50%;left:50%;margin:-25px 0 0 -25px;opacity:.85;text-align:left;border:6px solid rgba(43,51,63,.7);box-sizing:border-box;background-clip:padding-box;width:50px;height:50px;border-radius:25px;visibility:hidden}.vjs-seeking .vjs-loading-spinner,.vjs-waiting .vjs-loading-spinner{display:block;-webkit-animation:vjs-spinner-show 0s linear .3s forwards;animation:vjs-spinner-show 0s linear .3s forwards}.vjs-loading-spinner:after,.vjs-loading-spinner:before{content:"";position:absolute;margin:-6px;box-sizing:inherit;width:inherit;height:inherit;border-radius:inherit;opacity:1;border:inherit;border-color:transparent;border-top-color:#fff}.vjs-seeking .vjs-loading-spinner:after,.vjs-seeking .vjs-loading-spinner:before,.vjs-waiting .vjs-loading-spinner:after,.vjs-waiting .vjs-loading-spinner:before{-webkit-animation:vjs-spinner-spin 1.1s cubic-bezier(.6,.2,0,.8) infinite,vjs-spinner-fade 1.1s linear infinite;animation:vjs-spinner-spin 1.1s cubic-bezier(.6,.2,0,.8) infinite,vjs-spinner-fade 1.1s linear infinite}.vjs-seeking .vjs-loading-spinner:before,.vjs-waiting .vjs-loading-spinner:before{border-top-color:#fff}.vjs-seeking .vjs-loading-spinner:after,.vjs-waiting .vjs-loading-spinner:after{border-top-color:#fff;-webkit-animation-delay:.44s;animation-delay:.44s}@keyframes vjs-spinner-show{to{visibility:visible}}@-webkit-keyframes vjs-spinner-show{to{visibility:visible}}@keyframes vjs-spinner-spin{100%{transform:rotate(360deg)}}@-webkit-keyframes vjs-spinner-spin{100%{-webkit-transform:rotate(360deg)}}@keyframes vjs-spinner-fade{0%{border-top-color:#73859f}20%{border-top-color:#73859f}35%{border-top-color:#fff}60%{border-top-color:#73859f}100%{border-top-color:#73859f}}@-webkit-keyframes vjs-spinner-fade{0%{border-top-color:#73859f}20%{border-top-color:#73859f}35%{border-top-color:#fff}60%{border-top-color:#73859f}100%{border-top-color:#73859f}}.vjs-chapters-button .vjs-menu ul{width:24em}.video-js .vjs-subs-caps-button+.vjs-menu .vjs-captions-menu-item .vjs-menu-item-text .vjs-icon-placeholder{vertical-align:middle;display:inline-block;margin-bottom:-.1em}.video-js .vjs-subs-caps-button+.vjs-menu .vjs-captions-menu-item .vjs-menu-item-text .vjs-icon-placeholder:before{font-family:VideoJS;content:"";font-size:1.5em;line-height:inherit}.video-js .vjs-audio-button+.vjs-menu .vjs-main-desc-menu-item .vjs-menu-item-text .vjs-icon-placeholder{vertical-align:middle;display:inline-block;margin-bottom:-.1em}.video-js .vjs-audio-button+.vjs-menu .vjs-main-desc-menu-item .vjs-menu-item-text .vjs-icon-placeholder:before{font-family:VideoJS;content:" ";font-size:1.5em;line-height:inherit}.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-audio-button,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-captions-button,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-chapters-button,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-current-time,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-descriptions-button,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-duration,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-playback-rate,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-remaining-time,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-subtitles-button,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-time-divider,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-volume-control,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-audio-button,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-captions-button,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-chapters-button,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-current-time,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-descriptions-button,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-duration,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-playback-rate,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-remaining-time,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-subtitles-button,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-time-divider,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-volume-control,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-audio-button,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-captions-button,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-chapters-button,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-current-time,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-descriptions-button,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-duration,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-playback-rate,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-remaining-time,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-subtitles-button,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-time-divider,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-volume-control{display:none}.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal:active,.video-js:not(.vjs-fullscreen).vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal:hover,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal:active,.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal:hover,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal:active,.video-js:not(.vjs-fullscreen).vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal:hover{width:auto;width:initial}.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-subs-caps-button,.video-js:not(.vjs-fullscreen).vjs-layout-x-small:not(.vjs-live) .vjs-subs-caps-button,.video-js:not(.vjs-fullscreen).vjs-layout-x-small:not(.vjs-liveui) .vjs-subs-caps-button{display:none}.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-custom-control-spacer,.video-js:not(.vjs-fullscreen).vjs-layout-x-small.vjs-liveui .vjs-custom-control-spacer{flex:auto;display:block}.video-js:not(.vjs-fullscreen).vjs-layout-tiny.vjs-no-flex .vjs-custom-control-spacer,.video-js:not(.vjs-fullscreen).vjs-layout-x-small.vjs-liveui.vjs-no-flex .vjs-custom-control-spacer{width:auto}.video-js:not(.vjs-fullscreen).vjs-layout-tiny .vjs-progress-control,.video-js:not(.vjs-fullscreen).vjs-layout-x-small.vjs-liveui .vjs-progress-control{display:none}.vjs-modal-dialog.vjs-text-track-settings{background-color:#2b333f;background-color:rgba(43,51,63,.75);color:#fff;height:70%}.vjs-text-track-settings .vjs-modal-dialog-content{display:table}.vjs-text-track-settings .vjs-track-settings-colors,.vjs-text-track-settings .vjs-track-settings-controls,.vjs-text-track-settings .vjs-track-settings-font{display:table-cell}.vjs-text-track-settings .vjs-track-settings-controls{text-align:right;vertical-align:bottom}@supports (display:grid){.vjs-text-track-settings .vjs-modal-dialog-content{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr;padding:20px 24px 0 24px}.vjs-track-settings-controls .vjs-default-button{margin-bottom:20px}.vjs-text-track-settings .vjs-track-settings-controls{grid-column:1/-1}.vjs-layout-small .vjs-text-track-settings .vjs-modal-dialog-content,.vjs-layout-tiny .vjs-text-track-settings .vjs-modal-dialog-content,.vjs-layout-x-small .vjs-text-track-settings .vjs-modal-dialog-content{grid-template-columns:1fr}}.vjs-track-setting>select{margin-right:1em;margin-bottom:.5em}.vjs-text-track-settings fieldset{margin:5px;padding:3px;border:none}.vjs-text-track-settings fieldset span{display:inline-block}.vjs-text-track-settings fieldset span>select{max-width:7.3em}.vjs-text-track-settings legend{color:#fff;margin:0 0 5px 0}.vjs-text-track-settings .vjs-label{position:absolute;clip:rect(1px 1px 1px 1px);clip:rect(1px,1px,1px,1px);display:block;margin:0 0 5px 0;padding:0;border:0;height:1px;width:1px;overflow:hidden}.vjs-track-settings-controls button:active,.vjs-track-settings-controls button:focus{outline-style:solid;outline-width:medium;background-image:linear-gradient(0deg,#fff 88%,#73859f 100%)}.vjs-track-settings-controls button:hover{color:rgba(43,51,63,.75)}.vjs-track-settings-controls button{background-color:#fff;background-image:linear-gradient(-180deg,#fff 88%,#73859f 100%);color:#2b333f;cursor:pointer;border-radius:2px}.vjs-track-settings-controls .vjs-default-button{margin-right:1em}@media print{.video-js>:not(.vjs-tech):not(.vjs-poster){visibility:hidden}}.vjs-resize-manager{position:absolute;top:0;left:0;width:100%;height:100%;border:none;z-index:-1000}.js-focus-visible .video-js :focus:not(.focus-visible){outline:0}.video-js :focus:not(:focus-visible){outline:0}
1
+ @charset "UTF-8";.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.video-js .vjs-modal-dialog,.vjs-button>.vjs-icon-placeholder:before,.vjs-modal-dialog .vjs-modal-dialog-content{position:absolute;top:0;left:0;width:100%;height:100%}.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.vjs-button>.vjs-icon-placeholder:before{text-align:center}@font-face{font-family:VideoJS;src:url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABDkAAsAAAAAG6gAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAPgAAAFZRiV3hY21hcAAAAYQAAADaAAADPv749/pnbHlmAAACYAAAC3AAABHQZg6OcWhlYWQAAA3QAAAAKwAAADYZw251aGhlYQAADfwAAAAdAAAAJA+RCLFobXR4AAAOHAAAABMAAACM744AAGxvY2EAAA4wAAAASAAAAEhF6kqubWF4cAAADngAAAAfAAAAIAE0AIFuYW1lAAAOmAAAASUAAAIK1cf1oHBvc3QAAA/AAAABJAAAAdPExYuNeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGS7wTiBgZWBgaWQ5RkDA8MvCM0cwxDOeI6BgYmBlZkBKwhIc01hcPjI+FGJHcRdyA4RZgQRADK3CxEAAHic7dFZbsMgAEXRS0ycyZnnOeG7y+qC8pU1dHusIOXxuoxaOlwZYWQB0Aea4quIEN4E9LzKbKjzDeM6H/mua6Lmc/p8yhg0lvdYx15ZG8uOLQOGjMp3EzqmzJizYMmKNRu27Nhz4MiJMxeu3Ljz4Ekqm7T8P52G8PP3lnTOVk++Z6iN6QZzNN1F7ptuN7eGOjDUoaGODHVsuvU8MdTO9Hd5aqgzQ50b6sJQl4a6MtS1oW4MdWuoO0PdG+rBUI+GejLUs6FeDPVqqDdDvRvqw1CfhpqM9At0iFLaAAB4nJ1YDXBTVRZ+5/22TUlJ8we0pHlJm7RJf5O8F2j6EymlSPkpxaL8U2xpa3DKj0CBhc2IW4eWKSokIoLsuMqssM64f+jA4HSdWXXXscBq67IOs3FXZ1ZYWVyRFdo899yXtIBQZ90k7717zz3v3HPPOfd854YCCj9cL9dL0RQFOqCbGJnrHb5EayiKIWN8iA/hWBblo6hUWm8TtCDwE80WMJus/irwyxOdxeB0MDb14VNJHnXYoLLSl6FfCUYO9nYPTA8Epg9090LprfbBbZ2hY0UlJUXHQp3/vtWkS6EBv8+rPMq5u9692f/dNxJNiqwC1xPE9TCUgCsSdQWgE3XQD25lkG4CN2xmTcOXWBOyser6RN6KnGbKSbmQ3+d0OI1m2W8QzLLkI2sykrWAgJJEtA8vGGW/2Q+CmT3n8zS9wZwu2DCvtuZKZN3xkrLh36yCZuUomQSqGpY8t/25VfHVhw8z4ebGBtfLb0ya9PCaDc+8dGTvk2dsh6z7WzvowlXKUSWo9MJ15a3KrEP2loOr2Ojhw6iW6hf2BDdEccQvZGpaAy7YovSwq8kr7HGllxpd71rkS6G0Sf11sl9OvMK1+jwPPODxjUwkOim9CU3ix1wNjXDfmJSEn618Bs6lpWwUpU+8PCqLMY650zjq8VhCIP17NEKTx3eaLL+s5Pi6yJWaWjTHLR1jYzPSV9VF/6Ojdb/1kO3Mk3uhHC0x6gc1BjlKQ+nQFxTYdaJkZ7ySVxLBbhR1dsboNXp1tCYKW2LRaEzpYcIx2BKNxaL0ZaUnSqfFoiNhHKR/GkX6PWUSAaJelQaqZL1EpoHNsajSEyPSoJ9IjhIxTdjHLmwZvhRDOiFTY/YeQnvrVZmiTQtGncECXtFTBZLOVwwMRgoXHAkXzMzPn1nAJJ8jYSbMDaqN2waGLzNhih/bZynUBMpIWSg7VYi7DRx2m8ALkIdRCJwI6ArJx2EI8kaDWeTQKeAFk9fjl/1AvwktjQ1P7NjyMGQyfd4vjipX6M/i52D7Cq80kqlcxEcGXRr/FEcgs0u5uGgB4VWuMFfpdn2Re6Hi3PqzmxWKsz6+ae2Pn9hXXw/fqM859UiGC0oKYYILJBqJrsn1Z1E5qOs9rQCiUQRREjm8yJcbHF5cUJufX1vAHlefw0XgUoboS3ETfQlTxBC4SOtuE8VPRJTBSCQSjZCpk7Gqzu+masaZ2y7Zjehho4F3g82BNDkAHpORG4+OCS+f6JTPmtRn/PH1kch6d04sp7AQb25aQ/pqUyXeQ8vrebG8OYQdXOQ+585u0sdW9rqalzRURiJ+9F4MweRFrKUjl1GUYhH1A27WOHw5cTFSFPMo9EeUIGnQTZHIaJ7AHLaOKsOODaNF9jkBjYG2QEsQ2xjMUAx2bBEbeTBWMHwskBjngq56S/yfgkBnWBa4K9sqKtq2t1UI8S9He5XuBRbawAdatrQEAi30Aks2+LM8WeCbalVZkWNylvJ+dqJnzVb+OHlSoKW8nPCP7Rd+CcZ2DdWAGqJ2CBFOphgywFFCFBNtfAbGtNPBCwxvygHeYMZMY9ZboBqwq/pVrsbgN5tkv152ODlbMfiqwGMBgxa4Exz3QhovRIUp6acqZmQzRq0ypDXS2TPLT02YIkQETnOE445oOGxOmXAqUJNNG7XgupMjPq2ua9asrj5yY/yuKteO1Kx0YNJTufrirLe1mZnat7OL6rnUdCWenpW6I8mAnbsY8KWs1PuSovCW9A/Z25PQ24a7cNOqgmTkLmBMgh4THgc4b9k2IVv1/g/F5nGljwPLfOgHAzJzh45V/4+WenTzmMtR5Z7us2Tys909UHqrPY7KbckoxRvRHhmVc3cJGE97uml0R1S0jdULVl7EvZtDFVBF35N9cEdjpgmAiOlFZ+Dtoh93+D3zzHr8RRNZQhnCNMNbcegOvpEwZoL+06cJQ07h+th3fZ/7PVbVC6ngTAV/KoLFuO6+2KFcU651gEb5ugPSIb1D+Xp8V4+k3sEIGnw5mYe4If4k1lFYr6SCzmM2EQ8iWtmwjnBI9kTwe1TlfAmXh7H02by9fW2gsjKwtv0aaURKil4OdV7rDL1MXIFNrhdxohcZXYTnq47WisrKitaObbf5+yvkLi5J6lCNZZ+B6GC38VNBZBDidSS/+mSvh6s+srgC8pyKMvDtt+de3c9fU76ZPfuM8ud4Kv0fyP/LqfepMT/3oZxSqpZaTa1DaQYLY8TFsHYbWYsPoRhRWfL5eSSQbhUGgGC3YLbVMk6PitTFNGpAsNrC6D1VNBKgBHMejaiuRWEWGgsSDBTJjqWIl8kJLlsaLJ2tXDr6xGfT85bM2Q06a46x2HTgvdnV8z5YDy/27J4zt6x2VtkzjoYpkq36kaBr4eQSg7tyiVweWubXZugtadl58ydapfbORfKsDTuZ0OBgx4cfdjCf5tbWNITnL120fdOi1RV1C3uKGzNdwYLcMvZ3BxoPyTOCD1XvXTp7U10gWCVmTV9b3r2z0SkGWovb2hp9I89O8a2smlyaO8muMU+dRmtzp60IzAoFpjLr1n388boLyf0dRvxhsHZ0qbWqDkwqvvpkj4l0fY6EIXRi5sQSrAvsVYwXRy4qJ2EVtD1AN7a0HWth9ymvL1xc3WTUKK/TAHA/bXDVtVWfOMfuGxGZv4Ln/jVr9jc3j1yMv0tndmyt9Vq88Y9gH1wtLX3KWjot5++jWHgAoZZkQ14wGQ20Fli71UmKJAy4xKMSTGbVdybW7FDDAut9XpD5AzWrYO7zQ8qffqF8+Ynd/clrHcdyxGy3a/3+mfNnzC/cBsveTjnTvXf1o6vzOlZw7WtqtdmPK/Errz/6NNtD72zmNOZfbmYdTGHfoofqI79Oc+R2n1lrnL6pOm0Up7kwxhTW12Amm7WYkXR2qYrF2AmgmbAsxZjwy1xpg/m1Je2vrp8v/nz2xpmlBg4E9hrMU341wVpTOh/OfmGvAnra8q6uctr60ZQHV3Q+WMQJykMj8ZsWn2QBOmmHMB+m5pDIpTFonYigiaKAhGEiAHF7EliVnQkjoLVIMPtJpBKHYd3A8GYH9jJzrWwmHx5Qjp7vDAX0suGRym1vtm/9W1/HyR8vczfMs6Sk8DSv855/5dlX9oQq52hT8syyp2rx5Id17IAyAM3wIjQPMOHzytEB64q6D5zT91yNbnx3V/nqnd017S9Y0605k3izoXLpsxde2n38yoOV9s1LcjwzNjbdX6asnBVaBj/6/DwKwPkpcqbDG7BnsXoSqWnUAmottYF6jMSdVyYZh3zVXCjwTiwwHH6sGuRiEHQGzuRX6whZkp123oy1BWE2mEfJ/tvIRtM4ZM5bDXiMsPMaAKOTyc5uL57rqyyc5y5JE5pm1i2S2iUX0CcaQ6lC6Zog7JqSqZmYlosl2K6pwNA84zRnQW6SaALYZQGW5lhCtU/W34N6o+bKfZ8cf3/Cl/+iTX3wBzpOY4mRkeNf3rptycGSshQWgGbYt5jFc2e0+DglIrwl6DVWQ7BuwaJ3Xk1J4VL5urnLl/Wf+gHU/hZoZdKNym6lG+I34FaNeZKcSpJIo2IeCVvpdsDGfKvzJnAwmeD37Ow65ZWwSowpgwX5T69s/rB55dP5BcpgDKFV8p7q2sn/1uc93bVzT/w6UrCqDTWvfCq/oCD/qZXNoUj8BL5Kp6GU017frfNXkAtiiyf/SOCEeLqnd8R/Ql9GlCRfctS6k5chvIBuQ1zCCjoCHL2DHNHIXxMJ3kQeO8lbsUXONeSfA5EjcG6/E+KdhN4bP04vBhdi883+BFBzQbxFbvZzQeY9LNBZc0FNfn5NwfDn6rCTnTw6R8o+gfpf5hCom33cRuiTlss3KHmZjD+BPN+5gXuA2ziS/Q73mLxUkpbKN/eqwz5uK0X9F3h2d1V4nGNgZGBgAOJd776+iue3+crAzc4AAje5Bfcg0xz9YHEOBiYQBQA8FQlFAHicY2BkYGBnAAGOPgaG//85+hkYGVCBMgBGGwNYAAAAeJxjYGBgYB8EmKOPgQEAQ04BfgAAAAAAAA4AaAB+AMwA4AECAUIBbAGYAcICGAJYArQC4AMwA7AD3gQwBJYE3AUkBWYFigYgBmYGtAbqB1gIEghYCG4IhAi2COh4nGNgZGBgUGYoZWBnAAEmIOYCQgaG/2A+AwAYCQG2AHicXZBNaoNAGIZfE5PQCKFQ2lUps2oXBfOzzAESyDKBQJdGR2NQR3QSSE/QE/QEPUUPUHqsvsrXjTMw83zPvPMNCuAWP3DQDAejdm1GjzwS7pMmwi75XngAD4/CQ/oX4TFe4Qt7uMMbOzjuDc0EmXCP/C7cJ38Iu+RP4QEe8CU8pP8WHmOPX2EPz87TPo202ey2OjlnQSXV/6arOjWFmvszMWtd6CqwOlKHq6ovycLaWMWVydXKFFZnmVFlZU46tP7R2nI5ncbi/dDkfDtFBA2DDXbYkhKc+V0Bqs5Zt9JM1HQGBRTm/EezTmZNKtpcAMs9Yu6AK9caF76zoLWIWcfMGOSkVduvSWechqZsz040Ib2PY3urxBJTzriT95lipz+TN1fmAAAAeJxtkMl2wjAMRfOAhABlKm2h80C3+ajgCKKDY6cegP59TYBzukAL+z1Zsq8ctaJTTKPrsUQLbXQQI0EXKXroY4AbDDHCGBNMcYsZ7nCPB8yxwCOe8IwXvOIN7/jAJ76wxHfUqWX+OzgumWAjJMV17i0Ndlr6irLKO+qftdT7i6y4uFSUvCknay+lFYZIZaQcmfH/xIFdYn98bqhra1aKTM/6lWMnyaYirx1rFUQZFBkb2zJUtoXeJCeg0WnLtHeSFc3OtrnozNwqi0TkSpBMDB1nSde5oJXW23hTS2/T0LilglXX7dmFVxLnq5U0vYATHFk3zX3BOisoQHNDFDeZnqKDy9hRNawN7Vh727hFzcJ5c8TILrKZfH7tIPxAFP0BpLeJPA==) format("woff");font-weight:400;font-style:normal}.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.video-js .vjs-play-control .vjs-icon-placeholder,.vjs-icon-play{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.video-js .vjs-play-control .vjs-icon-placeholder:before,.vjs-icon-play:before{content:"\f101"}.vjs-icon-play-circle{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-play-circle:before{content:"\f102"}.video-js .vjs-play-control.vjs-playing .vjs-icon-placeholder,.vjs-icon-pause{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-play-control.vjs-playing .vjs-icon-placeholder:before,.vjs-icon-pause:before{content:"\f103"}.video-js .vjs-mute-control.vjs-vol-0 .vjs-icon-placeholder,.vjs-icon-volume-mute{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control.vjs-vol-0 .vjs-icon-placeholder:before,.vjs-icon-volume-mute:before{content:"\f104"}.video-js .vjs-mute-control.vjs-vol-1 .vjs-icon-placeholder,.vjs-icon-volume-low{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control.vjs-vol-1 .vjs-icon-placeholder:before,.vjs-icon-volume-low:before{content:"\f105"}.video-js .vjs-mute-control.vjs-vol-2 .vjs-icon-placeholder,.vjs-icon-volume-mid{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control.vjs-vol-2 .vjs-icon-placeholder:before,.vjs-icon-volume-mid:before{content:"\f106"}.video-js .vjs-mute-control .vjs-icon-placeholder,.vjs-icon-volume-high{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control .vjs-icon-placeholder:before,.vjs-icon-volume-high:before{content:"\f107"}.video-js .vjs-fullscreen-control .vjs-icon-placeholder,.vjs-icon-fullscreen-enter{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-fullscreen-control .vjs-icon-placeholder:before,.vjs-icon-fullscreen-enter:before{content:"\f108"}.video-js.vjs-fullscreen .vjs-fullscreen-control .vjs-icon-placeholder,.vjs-icon-fullscreen-exit{font-family:VideoJS;font-weight:400;font-style:normal}.video-js.vjs-fullscreen .vjs-fullscreen-control .vjs-icon-placeholder:before,.vjs-icon-fullscreen-exit:before{content:"\f109"}.vjs-icon-square{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-square:before{content:"\f10a"}.vjs-icon-spinner{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-spinner:before{content:"\f10b"}.video-js .vjs-subs-caps-button .vjs-icon-placeholder,.video-js .vjs-subtitles-button .vjs-icon-placeholder,.video-js.video-js:lang(en-AU) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js.video-js:lang(en-GB) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js.video-js:lang(en-IE) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js.video-js:lang(en-NZ) .vjs-subs-caps-button .vjs-icon-placeholder,.vjs-icon-subtitles{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js .vjs-subtitles-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-AU) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-GB) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-IE) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-NZ) .vjs-subs-caps-button .vjs-icon-placeholder:before,.vjs-icon-subtitles:before{content:"\f10c"}.video-js .vjs-captions-button .vjs-icon-placeholder,.video-js:lang(en) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js:lang(fr-CA) .vjs-subs-caps-button .vjs-icon-placeholder,.vjs-icon-captions{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-captions-button .vjs-icon-placeholder:before,.video-js:lang(en) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js:lang(fr-CA) .vjs-subs-caps-button .vjs-icon-placeholder:before,.vjs-icon-captions:before{content:"\f10d"}.video-js .vjs-chapters-button .vjs-icon-placeholder,.vjs-icon-chapters{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-chapters-button .vjs-icon-placeholder:before,.vjs-icon-chapters:before{content:"\f10e"}.vjs-icon-share{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-share:before{content:"\f10f"}.vjs-icon-cog{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-cog:before{content:"\f110"}.video-js .vjs-play-progress,.video-js .vjs-volume-level,.vjs-icon-circle,.vjs-seek-to-live-control .vjs-icon-placeholder{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-play-progress:before,.video-js .vjs-volume-level:before,.vjs-icon-circle:before,.vjs-seek-to-live-control .vjs-icon-placeholder:before{content:"\f111"}.vjs-icon-circle-outline{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-circle-outline:before{content:"\f112"}.vjs-icon-circle-inner-circle{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-circle-inner-circle:before{content:"\f113"}.vjs-icon-hd{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-hd:before{content:"\f114"}.video-js .vjs-control.vjs-close-button .vjs-icon-placeholder,.vjs-icon-cancel{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-control.vjs-close-button .vjs-icon-placeholder:before,.vjs-icon-cancel:before{content:"\f115"}.video-js .vjs-play-control.vjs-ended .vjs-icon-placeholder,.vjs-icon-replay{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-play-control.vjs-ended .vjs-icon-placeholder:before,.vjs-icon-replay:before{content:"\f116"}.vjs-icon-facebook{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-facebook:before{content:"\f117"}.vjs-icon-gplus{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-gplus:before{content:"\f118"}.vjs-icon-linkedin{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-linkedin:before{content:"\f119"}.vjs-icon-twitter{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-twitter:before{content:"\f11a"}.vjs-icon-tumblr{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-tumblr:before{content:"\f11b"}.vjs-icon-pinterest{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-pinterest:before{content:"\f11c"}.video-js .vjs-descriptions-button .vjs-icon-placeholder,.vjs-icon-audio-description{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-descriptions-button .vjs-icon-placeholder:before,.vjs-icon-audio-description:before{content:"\f11d"}.video-js .vjs-audio-button .vjs-icon-placeholder,.vjs-icon-audio{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-audio-button .vjs-icon-placeholder:before,.vjs-icon-audio:before{content:"\f11e"}.vjs-icon-next-item{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-next-item:before{content:"\f11f"}.vjs-icon-previous-item{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-previous-item:before{content:"\f120"}.video-js .vjs-picture-in-picture-control .vjs-icon-placeholder,.vjs-icon-picture-in-picture-enter{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-picture-in-picture-control .vjs-icon-placeholder:before,.vjs-icon-picture-in-picture-enter:before{content:"\f121"}.video-js.vjs-picture-in-picture .vjs-picture-in-picture-control .vjs-icon-placeholder,.vjs-icon-picture-in-picture-exit{font-family:VideoJS;font-weight:400;font-style:normal}.video-js.vjs-picture-in-picture .vjs-picture-in-picture-control .vjs-icon-placeholder:before,.vjs-icon-picture-in-picture-exit:before{content:"\f122"}.video-js{display:block;vertical-align:top;box-sizing:border-box;color:#fff;background-color:#000;position:relative;padding:0;font-size:10px;line-height:1;font-weight:400;font-style:normal;font-family:Arial,Helvetica,sans-serif;word-break:initial}.video-js:-moz-full-screen{position:absolute}.video-js:-webkit-full-screen{width:100%!important;height:100%!important}.video-js[tabindex="-1"]{outline:0}.video-js *,.video-js :after,.video-js :before{box-sizing:inherit}.video-js ul{font-family:inherit;font-size:inherit;line-height:inherit;list-style-position:outside;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}.video-js.vjs-1-1,.video-js.vjs-16-9,.video-js.vjs-4-3,.video-js.vjs-9-16,.video-js.vjs-fluid{width:100%;max-width:100%;height:0}.video-js.vjs-16-9{padding-top:56.25%}.video-js.vjs-4-3{padding-top:75%}.video-js.vjs-9-16{padding-top:177.7777777778%}.video-js.vjs-1-1{padding-top:100%}.video-js.vjs-fill{width:100%;height:100%}.video-js .vjs-tech{position:absolute;top:0;left:0;width:100%;height:100%}body.vjs-full-window{padding:0;margin:0;height:100%}.vjs-full-window .video-js.vjs-fullscreen{position:fixed;overflow:hidden;z-index:1000;left:0;top:0;bottom:0;right:0}.video-js.vjs-fullscreen:not(.vjs-ios-native-fs){width:100%!important;height:100%!important;padding-top:0!important}.video-js.vjs-fullscreen.vjs-user-inactive{cursor:none}.vjs-hidden{display:none!important}.vjs-disabled{opacity:.5;cursor:default}.video-js .vjs-offscreen{height:1px;left:-9999px;position:absolute;top:0;width:1px}.vjs-lock-showing{display:block!important;opacity:1!important;visibility:visible!important}.vjs-no-js{padding:20px;color:#fff;background-color:#000;font-size:18px;font-family:Arial,Helvetica,sans-serif;text-align:center;width:300px;height:150px;margin:0 auto}.vjs-no-js a,.vjs-no-js a:visited{color:#66a8cc}.video-js .vjs-big-play-button{font-size:3em;line-height:1.5em;height:1.63332em;width:3em;display:block;position:absolute;top:10px;left:10px;padding:0;cursor:pointer;opacity:1;border:.06666em solid #fff;background-color:#2b333f;background-color:rgba(43,51,63,.7);border-radius:.3em;transition:all .4s}.vjs-big-play-centered .vjs-big-play-button{top:50%;left:50%;margin-top:-.81666em;margin-left:-1.5em}.video-js .vjs-big-play-button:focus,.video-js:hover .vjs-big-play-button{border-color:#fff;background-color:#73859f;background-color:rgba(115,133,159,.5);transition:all 0s}.vjs-controls-disabled .vjs-big-play-button,.vjs-error .vjs-big-play-button,.vjs-has-started .vjs-big-play-button,.vjs-using-native-controls .vjs-big-play-button{display:none}.vjs-has-started.vjs-paused.vjs-show-big-play-button-on-pause .vjs-big-play-button{display:block}.video-js button{background:0 0;border:none;color:inherit;display:inline-block;font-size:inherit;line-height:inherit;text-transform:none;text-decoration:none;transition:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.vjs-control .vjs-button{width:100%;height:100%}.video-js .vjs-control.vjs-close-button{cursor:pointer;height:3em;position:absolute;right:0;top:.5em;z-index:2}.video-js .vjs-modal-dialog{background:rgba(0,0,0,.8);background:linear-gradient(180deg,rgba(0,0,0,.8),rgba(255,255,255,0));overflow:auto}.video-js .vjs-modal-dialog>*{box-sizing:border-box}.vjs-modal-dialog .vjs-modal-dialog-content{font-size:1.2em;line-height:1.5;padding:20px 24px;z-index:1}.vjs-menu-button{cursor:pointer}.vjs-menu-button.vjs-disabled{cursor:default}.vjs-workinghover .vjs-menu-button.vjs-disabled:hover .vjs-menu{display:none}.vjs-menu .vjs-menu-content{display:block;padding:0;margin:0;font-family:Arial,Helvetica,sans-serif;overflow:auto}.vjs-menu .vjs-menu-content>*{box-sizing:border-box}.vjs-scrubbing .vjs-control.vjs-menu-button:hover .vjs-menu{display:none}.vjs-menu li{list-style:none;margin:0;padding:.2em 0;line-height:1.4em;font-size:1.2em;text-align:center;text-transform:lowercase}.js-focus-visible .vjs-menu li.vjs-menu-item:hover,.vjs-menu li.vjs-menu-item:focus,.vjs-menu li.vjs-menu-item:hover{background-color:#73859f;background-color:rgba(115,133,159,.5)}.js-focus-visible .vjs-menu li.vjs-selected:hover,.vjs-menu li.vjs-selected,.vjs-menu li.vjs-selected:focus,.vjs-menu li.vjs-selected:hover{background-color:#fff;color:#2b333f}.js-focus-visible .vjs-menu :not(.vjs-selected):focus:not(.focus-visible),.video-js .vjs-menu :not(.vjs-selected):focus:not(:focus-visible){background:0 0}.vjs-menu li.vjs-menu-title{text-align:center;text-transform:uppercase;font-size:1em;line-height:2em;padding:0;margin:0 0 .3em 0;font-weight:700;cursor:default}.vjs-menu-button-popup .vjs-menu{display:none;position:absolute;bottom:0;width:10em;left:-3em;height:0;margin-bottom:1.5em;border-top-color:rgba(43,51,63,.7)}.vjs-menu-button-popup .vjs-menu .vjs-menu-content{background-color:#2b333f;background-color:rgba(43,51,63,.7);position:absolute;width:100%;bottom:1.5em;max-height:15em}.vjs-layout-tiny .vjs-menu-button-popup .vjs-menu .vjs-menu-content,.vjs-layout-x-small .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:5em}.vjs-layout-small .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:10em}.vjs-layout-medium .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:14em}.vjs-layout-huge .vjs-menu-button-popup .vjs-menu .vjs-menu-content,.vjs-layout-large .vjs-menu-button-popup .vjs-menu .vjs-menu-content,.vjs-layout-x-large .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:25em}.vjs-menu-button-popup .vjs-menu.vjs-lock-showing,.vjs-workinghover .vjs-menu-button-popup.vjs-hover .vjs-menu{display:block}.video-js .vjs-menu-button-inline{transition:all .4s;overflow:hidden}.video-js .vjs-menu-button-inline:before{width:2.222222222em}.video-js .vjs-menu-button-inline.vjs-slider-active,.video-js .vjs-menu-button-inline:focus,.video-js .vjs-menu-button-inline:hover,.video-js.vjs-no-flex .vjs-menu-button-inline{width:12em}.vjs-menu-button-inline .vjs-menu{opacity:0;height:100%;width:auto;position:absolute;left:4em;top:0;padding:0;margin:0;transition:all .4s}.vjs-menu-button-inline.vjs-slider-active .vjs-menu,.vjs-menu-button-inline:focus .vjs-menu,.vjs-menu-button-inline:hover .vjs-menu{display:block;opacity:1}.vjs-no-flex .vjs-menu-button-inline .vjs-menu{display:block;opacity:1;position:relative;width:auto}.vjs-no-flex .vjs-menu-button-inline.vjs-slider-active .vjs-menu,.vjs-no-flex .vjs-menu-button-inline:focus .vjs-menu,.vjs-no-flex .vjs-menu-button-inline:hover .vjs-menu{width:auto}.vjs-menu-button-inline .vjs-menu-content{width:auto;height:100%;margin:0;overflow:hidden}.video-js .vjs-control-bar{display:none;width:100%;position:absolute;bottom:0;left:0;right:0;height:3em;background-color:#2b333f;background-color:rgba(43,51,63,.7)}.vjs-has-started .vjs-control-bar{display:flex;visibility:visible;opacity:1;transition:visibility .1s,opacity .1s}.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar{visibility:visible;opacity:0;pointer-events:none;transition:visibility 1s,opacity 1s}.vjs-controls-disabled .vjs-control-bar,.vjs-error .vjs-control-bar,.vjs-using-native-controls .vjs-control-bar{display:none!important}.vjs-audio.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar{opacity:1;visibility:visible}.vjs-has-started.vjs-no-flex .vjs-control-bar{display:table}.video-js .vjs-control{position:relative;text-align:center;margin:0;padding:0;height:100%;width:4em;flex:none}.vjs-button>.vjs-icon-placeholder:before{font-size:1.8em;line-height:1.67}.vjs-button>.vjs-icon-placeholder{display:block}.video-js .vjs-control:focus,.video-js .vjs-control:focus:before,.video-js .vjs-control:hover:before{text-shadow:0 0 1em #fff}.video-js .vjs-control-text{border:0;clip:rect(0 0 0 0);height:1px;overflow:hidden;padding:0;position:absolute;width:1px}.vjs-no-flex .vjs-control{display:table-cell;vertical-align:middle}.video-js .vjs-custom-control-spacer{display:none}.video-js .vjs-progress-control{cursor:pointer;flex:auto;display:flex;align-items:center;min-width:4em;touch-action:none}.video-js .vjs-progress-control.disabled{cursor:default}.vjs-live .vjs-progress-control{display:none}.vjs-liveui .vjs-progress-control{display:flex;align-items:center}.vjs-no-flex .vjs-progress-control{width:auto}.video-js .vjs-progress-holder{flex:auto;transition:all .2s;height:.3em}.video-js .vjs-progress-control .vjs-progress-holder{margin:0 10px}.video-js .vjs-progress-control:hover .vjs-progress-holder{font-size:1.6666666667em}.video-js .vjs-progress-control:hover .vjs-progress-holder.disabled{font-size:1em}.video-js .vjs-progress-holder .vjs-load-progress,.video-js .vjs-progress-holder .vjs-load-progress div,.video-js .vjs-progress-holder .vjs-play-progress{position:absolute;display:block;height:100%;margin:0;padding:0;width:0}.video-js .vjs-play-progress{background-color:#fff}.video-js .vjs-play-progress:before{font-size:.9em;position:absolute;right:-.5em;top:-.3333333333em;z-index:1}.video-js .vjs-load-progress{background:rgba(115,133,159,.5)}.video-js .vjs-load-progress div{background:rgba(115,133,159,.75)}.video-js .vjs-time-tooltip{background-color:#fff;background-color:rgba(255,255,255,.8);border-radius:.3em;color:#000;float:right;font-family:Arial,Helvetica,sans-serif;font-size:1em;padding:6px 8px 8px 8px;pointer-events:none;position:absolute;top:-3.4em;visibility:hidden;z-index:1}.video-js .vjs-progress-holder:focus .vjs-time-tooltip{display:none}.video-js .vjs-progress-control:hover .vjs-progress-holder:focus .vjs-time-tooltip,.video-js .vjs-progress-control:hover .vjs-time-tooltip{display:block;font-size:.6em;visibility:visible}.video-js .vjs-progress-control.disabled:hover .vjs-time-tooltip{font-size:1em}.video-js .vjs-progress-control .vjs-mouse-display{display:none;position:absolute;width:1px;height:100%;background-color:#000;z-index:1}.vjs-no-flex .vjs-progress-control .vjs-mouse-display{z-index:0}.video-js .vjs-progress-control:hover .vjs-mouse-display{display:block}.video-js.vjs-user-inactive .vjs-progress-control .vjs-mouse-display{visibility:hidden;opacity:0;transition:visibility 1s,opacity 1s}.video-js.vjs-user-inactive.vjs-no-flex .vjs-progress-control .vjs-mouse-display{display:none}.vjs-mouse-display .vjs-time-tooltip{color:#fff;background-color:#000;background-color:rgba(0,0,0,.8)}.video-js .vjs-slider{position:relative;cursor:pointer;padding:0;margin:0 .45em 0 .45em;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:#73859f;background-color:rgba(115,133,159,.5)}.video-js .vjs-slider.disabled{cursor:default}.video-js .vjs-slider:focus{text-shadow:0 0 1em #fff;box-shadow:0 0 1em #fff}.video-js .vjs-mute-control{cursor:pointer;flex:none}.video-js .vjs-volume-control{cursor:pointer;margin-right:1em;display:flex}.video-js .vjs-volume-control.vjs-volume-horizontal{width:5em}.video-js .vjs-volume-panel .vjs-volume-control{visibility:visible;opacity:0;width:1px;height:1px;margin-left:-1px}.video-js .vjs-volume-panel{transition:width 1s}.video-js .vjs-volume-panel .vjs-volume-control.vjs-slider-active,.video-js .vjs-volume-panel .vjs-volume-control:active,.video-js .vjs-volume-panel.vjs-hover .vjs-mute-control~.vjs-volume-control,.video-js .vjs-volume-panel.vjs-hover .vjs-volume-control,.video-js .vjs-volume-panel:active .vjs-volume-control,.video-js .vjs-volume-panel:focus .vjs-volume-control{visibility:visible;opacity:1;position:relative;transition:visibility .1s,opacity .1s,height .1s,width .1s,left 0s,top 0s}.video-js .vjs-volume-panel .vjs-volume-control.vjs-slider-active.vjs-volume-horizontal,.video-js .vjs-volume-panel .vjs-volume-control:active.vjs-volume-horizontal,.video-js .vjs-volume-panel.vjs-hover .vjs-mute-control~.vjs-volume-control.vjs-volume-horizontal,.video-js .vjs-volume-panel.vjs-hover .vjs-volume-control.vjs-volume-horizontal,.video-js .vjs-volume-panel:active .vjs-volume-control.vjs-volume-horizontal,.video-js .vjs-volume-panel:focus .vjs-volume-control.vjs-volume-horizontal{width:5em;height:3em;margin-right:0}.video-js .vjs-volume-panel .vjs-volume-control.vjs-slider-active.vjs-volume-vertical,.video-js .vjs-volume-panel .vjs-volume-control:active.vjs-volume-vertical,.video-js .vjs-volume-panel.vjs-hover .vjs-mute-control~.vjs-volume-control.vjs-volume-vertical,.video-js .vjs-volume-panel.vjs-hover .vjs-volume-control.vjs-volume-vertical,.video-js .vjs-volume-panel:active .vjs-volume-control.vjs-volume-vertical,.video-js .vjs-volume-panel:focus .vjs-volume-control.vjs-volume-vertical{left:-3.5em;transition:left 0s}.video-js .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-hover,.video-js .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js .vjs-volume-panel.vjs-volume-panel-horizontal:active{width:10em;transition:width .1s}.video-js .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-mute-toggle-only{width:4em}.video-js .vjs-volume-panel .vjs-volume-control.vjs-volume-vertical{height:8em;width:3em;left:-3000em;transition:visibility 1s,opacity 1s,height 1s 1s,width 1s 1s,left 1s 1s,top 1s 1s}.video-js .vjs-volume-panel .vjs-volume-control.vjs-volume-horizontal{transition:visibility 1s,opacity 1s,height 1s 1s,width 1s,left 1s 1s,top 1s 1s}.video-js.vjs-no-flex .vjs-volume-panel .vjs-volume-control.vjs-volume-horizontal{width:5em;height:3em;visibility:visible;opacity:1;position:relative;transition:none}.video-js.vjs-no-flex .vjs-volume-control.vjs-volume-vertical,.video-js.vjs-no-flex .vjs-volume-panel .vjs-volume-control.vjs-volume-vertical{position:absolute;bottom:3em;left:.5em}.video-js .vjs-volume-panel{display:flex}.video-js .vjs-volume-bar{margin:1.35em .45em}.vjs-volume-bar.vjs-slider-horizontal{width:5em;height:.3em}.vjs-volume-bar.vjs-slider-vertical{width:.3em;height:5em;margin:1.35em auto}.video-js .vjs-volume-level{position:absolute;bottom:0;left:0;background-color:#fff}.video-js .vjs-volume-level:before{position:absolute;font-size:.9em;z-index:1}.vjs-slider-vertical .vjs-volume-level{width:.3em}.vjs-slider-vertical .vjs-volume-level:before{top:-.5em;left:-.3em;z-index:1}.vjs-slider-horizontal .vjs-volume-level{height:.3em}.vjs-slider-horizontal .vjs-volume-level:before{top:-.3em;right:-.5em}.video-js .vjs-volume-panel.vjs-volume-panel-vertical{width:4em}.vjs-volume-bar.vjs-slider-vertical .vjs-volume-level{height:100%}.vjs-volume-bar.vjs-slider-horizontal .vjs-volume-level{width:100%}.video-js .vjs-volume-vertical{width:3em;height:8em;bottom:8em;background-color:#2b333f;background-color:rgba(43,51,63,.7)}.video-js .vjs-volume-horizontal .vjs-menu{left:-2em}.video-js .vjs-volume-tooltip{background-color:#fff;background-color:rgba(255,255,255,.8);border-radius:.3em;color:#000;float:right;font-family:Arial,Helvetica,sans-serif;font-size:1em;padding:6px 8px 8px 8px;pointer-events:none;position:absolute;top:-3.4em;visibility:hidden;z-index:1}.video-js .vjs-volume-control:hover .vjs-progress-holder:focus .vjs-volume-tooltip,.video-js .vjs-volume-control:hover .vjs-volume-tooltip{display:block;font-size:1em;visibility:visible}.video-js .vjs-volume-vertical:hover .vjs-progress-holder:focus .vjs-volume-tooltip,.video-js .vjs-volume-vertical:hover .vjs-volume-tooltip{left:1em;top:-12px}.video-js .vjs-volume-control.disabled:hover .vjs-volume-tooltip{font-size:1em}.video-js .vjs-volume-control .vjs-mouse-display{display:none;position:absolute;width:100%;height:1px;background-color:#000;z-index:1}.video-js .vjs-volume-horizontal .vjs-mouse-display{width:1px;height:100%}.vjs-no-flex .vjs-volume-control .vjs-mouse-display{z-index:0}.video-js .vjs-volume-control:hover .vjs-mouse-display{display:block}.video-js.vjs-user-inactive .vjs-volume-control .vjs-mouse-display{visibility:hidden;opacity:0;transition:visibility 1s,opacity 1s}.video-js.vjs-user-inactive.vjs-no-flex .vjs-volume-control .vjs-mouse-display{display:none}.vjs-mouse-display .vjs-volume-tooltip{color:#fff;background-color:#000;background-color:rgba(0,0,0,.8)}.vjs-poster{display:inline-block;vertical-align:middle;background-repeat:no-repeat;background-position:50% 50%;background-size:contain;background-color:#000;cursor:pointer;margin:0;padding:0;position:absolute;top:0;right:0;bottom:0;left:0;height:100%}.vjs-has-started .vjs-poster{display:none}.vjs-audio.vjs-has-started .vjs-poster{display:block}.vjs-using-native-controls .vjs-poster{display:none}.video-js .vjs-live-control{display:flex;align-items:flex-start;flex:auto;font-size:1em;line-height:3em}.vjs-no-flex .vjs-live-control{display:table-cell;width:auto;text-align:left}.video-js.vjs-liveui .vjs-live-control,.video-js:not(.vjs-live) .vjs-live-control{display:none}.video-js .vjs-seek-to-live-control{align-items:center;cursor:pointer;flex:none;display:inline-flex;height:100%;padding-left:.5em;padding-right:.5em;font-size:1em;line-height:3em;width:auto;min-width:4em}.vjs-no-flex .vjs-seek-to-live-control{display:table-cell;width:auto;text-align:left}.video-js.vjs-live:not(.vjs-liveui) .vjs-seek-to-live-control,.video-js:not(.vjs-live) .vjs-seek-to-live-control{display:none}.vjs-seek-to-live-control.vjs-control.vjs-at-live-edge{cursor:auto}.vjs-seek-to-live-control .vjs-icon-placeholder{margin-right:.5em;color:#888}.vjs-seek-to-live-control.vjs-control.vjs-at-live-edge .vjs-icon-placeholder{color:red}.video-js .vjs-time-control{flex:none;font-size:1em;line-height:3em;min-width:2em;width:auto;padding-left:1em;padding-right:1em}.vjs-live .vjs-time-control{display:none}.video-js .vjs-current-time,.vjs-no-flex .vjs-current-time{display:none}.video-js .vjs-duration,.vjs-no-flex .vjs-duration{display:none}.vjs-time-divider{display:none;line-height:3em}.vjs-live .vjs-time-divider{display:none}.video-js .vjs-play-control{cursor:pointer}.video-js .vjs-play-control .vjs-icon-placeholder{flex:none}.vjs-text-track-display{position:absolute;bottom:3em;left:0;right:0;top:0;pointer-events:none}.video-js.vjs-user-inactive.vjs-playing .vjs-text-track-display{bottom:1em}.video-js .vjs-text-track{font-size:1.4em;text-align:center;margin-bottom:.1em}.vjs-subtitles{color:#fff}.vjs-captions{color:#fc6}.vjs-tt-cue{display:block}video::-webkit-media-text-track-display{transform:translateY(-3em)}.video-js.vjs-user-inactive.vjs-playing video::-webkit-media-text-track-display{transform:translateY(-1.5em)}.video-js .vjs-picture-in-picture-control{cursor:pointer;flex:none}.video-js .vjs-fullscreen-control{cursor:pointer;flex:none}.vjs-playback-rate .vjs-playback-rate-value,.vjs-playback-rate>.vjs-menu-button{position:absolute;top:0;left:0;width:100%;height:100%}.vjs-playback-rate .vjs-playback-rate-value{pointer-events:none;font-size:1.5em;line-height:2;text-align:center}.vjs-playback-rate .vjs-menu{width:4em;left:0}.vjs-error .vjs-error-display .vjs-modal-dialog-content{font-size:1.4em;text-align:center}.vjs-error .vjs-error-display:before{color:#fff;content:"X";font-family:Arial,Helvetica,sans-serif;font-size:4em;left:0;line-height:1;margin-top:-.5em;position:absolute;text-shadow:.05em .05em .1em #000;text-align:center;top:50%;vertical-align:middle;width:100%}.vjs-loading-spinner{display:none;position:absolute;top:50%;left:50%;margin:-25px 0 0 -25px;opacity:.85;text-align:left;border:6px solid rgba(43,51,63,.7);box-sizing:border-box;background-clip:padding-box;width:50px;height:50px;border-radius:25px;visibility:hidden}.vjs-seeking .vjs-loading-spinner,.vjs-waiting .vjs-loading-spinner{display:block;-webkit-animation:vjs-spinner-show 0s linear .3s forwards;animation:vjs-spinner-show 0s linear .3s forwards}.vjs-loading-spinner:after,.vjs-loading-spinner:before{content:"";position:absolute;margin:-6px;box-sizing:inherit;width:inherit;height:inherit;border-radius:inherit;opacity:1;border:inherit;border-color:transparent;border-top-color:#fff}.vjs-seeking .vjs-loading-spinner:after,.vjs-seeking .vjs-loading-spinner:before,.vjs-waiting .vjs-loading-spinner:after,.vjs-waiting .vjs-loading-spinner:before{-webkit-animation:vjs-spinner-spin 1.1s cubic-bezier(.6,.2,0,.8) infinite,vjs-spinner-fade 1.1s linear infinite;animation:vjs-spinner-spin 1.1s cubic-bezier(.6,.2,0,.8) infinite,vjs-spinner-fade 1.1s linear infinite}.vjs-seeking .vjs-loading-spinner:before,.vjs-waiting .vjs-loading-spinner:before{border-top-color:#fff}.vjs-seeking .vjs-loading-spinner:after,.vjs-waiting .vjs-loading-spinner:after{border-top-color:#fff;-webkit-animation-delay:.44s;animation-delay:.44s}@keyframes vjs-spinner-show{to{visibility:visible}}@-webkit-keyframes vjs-spinner-show{to{visibility:visible}}@keyframes vjs-spinner-spin{100%{transform:rotate(360deg)}}@-webkit-keyframes vjs-spinner-spin{100%{-webkit-transform:rotate(360deg)}}@keyframes vjs-spinner-fade{0%{border-top-color:#73859f}20%{border-top-color:#73859f}35%{border-top-color:#fff}60%{border-top-color:#73859f}100%{border-top-color:#73859f}}@-webkit-keyframes vjs-spinner-fade{0%{border-top-color:#73859f}20%{border-top-color:#73859f}35%{border-top-color:#fff}60%{border-top-color:#73859f}100%{border-top-color:#73859f}}.vjs-chapters-button .vjs-menu ul{width:24em}.video-js .vjs-subs-caps-button+.vjs-menu .vjs-captions-menu-item .vjs-menu-item-text .vjs-icon-placeholder{vertical-align:middle;display:inline-block;margin-bottom:-.1em}.video-js .vjs-subs-caps-button+.vjs-menu .vjs-captions-menu-item .vjs-menu-item-text .vjs-icon-placeholder:before{font-family:VideoJS;content:"";font-size:1.5em;line-height:inherit}.video-js .vjs-audio-button+.vjs-menu .vjs-main-desc-menu-item .vjs-menu-item-text .vjs-icon-placeholder{vertical-align:middle;display:inline-block;margin-bottom:-.1em}.video-js .vjs-audio-button+.vjs-menu .vjs-main-desc-menu-item .vjs-menu-item-text .vjs-icon-placeholder:before{font-family:VideoJS;content:" ";font-size:1.5em;line-height:inherit}.video-js.vjs-layout-small .vjs-current-time,.video-js.vjs-layout-small .vjs-duration,.video-js.vjs-layout-small .vjs-playback-rate,.video-js.vjs-layout-small .vjs-remaining-time,.video-js.vjs-layout-small .vjs-time-divider,.video-js.vjs-layout-small .vjs-volume-control,.video-js.vjs-layout-tiny .vjs-current-time,.video-js.vjs-layout-tiny .vjs-duration,.video-js.vjs-layout-tiny .vjs-playback-rate,.video-js.vjs-layout-tiny .vjs-remaining-time,.video-js.vjs-layout-tiny .vjs-time-divider,.video-js.vjs-layout-tiny .vjs-volume-control,.video-js.vjs-layout-x-small .vjs-current-time,.video-js.vjs-layout-x-small .vjs-duration,.video-js.vjs-layout-x-small .vjs-playback-rate,.video-js.vjs-layout-x-small .vjs-remaining-time,.video-js.vjs-layout-x-small .vjs-time-divider,.video-js.vjs-layout-x-small .vjs-volume-control{display:none}.video-js.vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-hover,.video-js.vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js.vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal:active,.video-js.vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal:hover,.video-js.vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-hover,.video-js.vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js.vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal:active,.video-js.vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal:hover,.video-js.vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-hover,.video-js.vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js.vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal:active,.video-js.vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal:hover{width:auto;width:initial}.video-js.vjs-layout-tiny .vjs-progress-control,.video-js.vjs-layout-x-small .vjs-progress-control{display:none}.video-js.vjs-layout-x-small .vjs-custom-control-spacer{flex:auto;display:block}.video-js.vjs-layout-x-small.vjs-no-flex .vjs-custom-control-spacer{width:auto}.vjs-modal-dialog.vjs-text-track-settings{background-color:#2b333f;background-color:rgba(43,51,63,.75);color:#fff;height:70%}.vjs-text-track-settings .vjs-modal-dialog-content{display:table}.vjs-text-track-settings .vjs-track-settings-colors,.vjs-text-track-settings .vjs-track-settings-controls,.vjs-text-track-settings .vjs-track-settings-font{display:table-cell}.vjs-text-track-settings .vjs-track-settings-controls{text-align:right;vertical-align:bottom}@supports (display:grid){.vjs-text-track-settings .vjs-modal-dialog-content{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr;padding:20px 24px 0 24px}.vjs-track-settings-controls .vjs-default-button{margin-bottom:20px}.vjs-text-track-settings .vjs-track-settings-controls{grid-column:1/-1}.vjs-layout-small .vjs-text-track-settings .vjs-modal-dialog-content,.vjs-layout-tiny .vjs-text-track-settings .vjs-modal-dialog-content,.vjs-layout-x-small .vjs-text-track-settings .vjs-modal-dialog-content{grid-template-columns:1fr}}.vjs-track-setting>select{margin-right:1em;margin-bottom:.5em}.vjs-text-track-settings fieldset{margin:5px;padding:3px;border:none}.vjs-text-track-settings fieldset span{display:inline-block}.vjs-text-track-settings fieldset span>select{max-width:7.3em}.vjs-text-track-settings legend{color:#fff;margin:0 0 5px 0}.vjs-text-track-settings .vjs-label{position:absolute;clip:rect(1px 1px 1px 1px);clip:rect(1px,1px,1px,1px);display:block;margin:0 0 5px 0;padding:0;border:0;height:1px;width:1px;overflow:hidden}.vjs-track-settings-controls button:active,.vjs-track-settings-controls button:focus{outline-style:solid;outline-width:medium;background-image:linear-gradient(0deg,#fff 88%,#73859f 100%)}.vjs-track-settings-controls button:hover{color:rgba(43,51,63,.75)}.vjs-track-settings-controls button{background-color:#fff;background-image:linear-gradient(-180deg,#fff 88%,#73859f 100%);color:#2b333f;cursor:pointer;border-radius:2px}.vjs-track-settings-controls .vjs-default-button{margin-right:1em}@media print{.video-js>:not(.vjs-tech):not(.vjs-poster){visibility:hidden}}.vjs-resize-manager{position:absolute;top:0;left:0;width:100%;height:100%;border:none;z-index:-1000}.js-focus-visible .video-js :focus:not(.focus-visible){outline:0}.video-js :focus:not(:focus-visible){outline:0}
vendor/videojs/video.min.js CHANGED
@@ -1,6 +1,6 @@
1
  /**
2
  * @license
3
- * Video.js 7.11.8 <http://videojs.com/>
4
  * Copyright Brightcove, Inc. <https://www.brightcove.com/>
5
  * Available under Apache License Version 2.0
6
  * <https://github.com/videojs/video.js/blob/main/LICENSE>
@@ -9,16 +9,17 @@
9
  * Available under Apache License Version 2.0
10
  * <https://github.com/mozilla/vtt.js/blob/main/LICENSE>
11
  */
12
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).videojs=t()}(this,function(){"use strict";var d="7.11.8",e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function i(e,t){return e(t={exports:{}},t.exports),t.exports}for(var n,h="undefined"!=typeof window?window:"undefined"!=typeof e?e:"undefined"!=typeof self?self:{},r={},a="undefined"!=typeof e?e:"undefined"!=typeof window?window:{},p="undefined"!=typeof document?document:a["__GLOBAL_DOCUMENT_CACHE@4"]||(a["__GLOBAL_DOCUMENT_CACHE@4"]=r),f={prefixed:!0},s=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"]],o=s[0],u=0;u<s.length;u++)if(s[u][1]in p){n=s[u];break}if(n){for(var l=0;l<n.length;l++)f[o[l]]=n[l];f.prefixed=n[0]!==o[0]}var c=[],m=function(o,u){return function(e,t,i){var n=u.levels[t],r=new RegExp("^("+n+")$");if("log"!==e&&i.unshift(e.toUpperCase()+":"),i.unshift(o+":"),c){c.push([].concat(i));var a=c.length-1e3;c.splice(0,0<a?a:0)}if(h.console){var s=h.console[e];s||"debug"!==e||(s=h.console.info||h.console.log),s&&n&&r.test(e)&&s[Array.isArray(i)?"apply":"call"](h.console,i)}}};var g=function t(i){function n(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];r("log",a,t)}var r,a="info";return r=m(i,n),n.createLogger=function(e){return t(i+": "+e)},n.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:a},n.level=function(e){if("string"==typeof e){if(!n.levels.hasOwnProperty(e))throw new Error('"'+e+'" in not a valid log level');a=e}return a},(n.history=function(){return c?[].concat(c):[]}).filter=function(t){return(c||[]).filter(function(e){return new RegExp(".*"+t+".*").test(e[0])})},n.history.clear=function(){c&&(c.length=0)},n.history.disable=function(){null!==c&&(c.length=0,c=null)},n.history.enable=function(){null===c&&(c=[])},n.error=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return r("error",a,t)},n.warn=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return r("warn",a,t)},n.debug=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return r("debug",a,t)},n}("VIDEOJS"),v=g.createLogger,y=i(function(e){function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},t.apply(this,arguments)}e.exports=t}),_=Object.prototype.toString,b=function(e){return k(e)?Object.keys(e):[]};function T(t,i){b(t).forEach(function(e){return i(t[e],e)})}function S(i){for(var e=arguments.length,t=new Array(1<e?e-1:0),n=1;n<e;n++)t[n-1]=arguments[n];return Object.assign?y.apply(void 0,[i].concat(t)):(t.forEach(function(e){e&&T(e,function(e,t){i[t]=e})}),i)}function k(e){return!!e&&"object"==typeof e}function w(e){return k(e)&&"[object Object]"===_.call(e)&&e.constructor===Object}function E(e,t){if(!e||!t)return"";if("function"!=typeof h.getComputedStyle)return"";var i=h.getComputedStyle(e);return i?i.getPropertyValue(t)||i[t]:""}var C,I,x,A,P=h.navigator&&h.navigator.userAgent||"",L=/AppleWebKit\/([\d.]+)/i.exec(P),O=L?parseFloat(L.pop()):null,D=/iPod/i.test(P),R=(C=P.match(/OS (\d+)_/i))&&C[1]?C[1]:null,M=/Android/i.test(P),N=function(){var e=P.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;var t=e[1]&&parseFloat(e[1]),i=e[2]&&parseFloat(e[2]);return t&&i?parseFloat(e[1]+"."+e[2]):t||null}(),U=M&&N<5&&O<537,B=/Firefox/i.test(P),F=/Edg/i.test(P),j=!F&&(/Chrome/i.test(P)||/CriOS/i.test(P)),V=(I=P.match(/(Chrome|CriOS)\/(\d+)/))&&I[2]?parseFloat(I[2]):null,q=(x=/MSIE\s(\d+)\.\d/.exec(P),!(A=x&&parseFloat(x[1]))&&/Trident\/7.0/i.test(P)&&/rv:11.0/.test(P)&&(A=11),A),H=/Safari/i.test(P)&&!j&&!M&&!F,W=/Windows/i.test(P),z=Boolean(Z()&&("ontouchstart"in h||h.navigator.maxTouchPoints||h.DocumentTouch&&h.document instanceof h.DocumentTouch)),G=/iPad/i.test(P)||H&&z&&!/iPhone/i.test(P),X=/iPhone/i.test(P)&&!G,K=X||G||D,Q=(H||K)&&!j,Y=Object.freeze({__proto__:null,IS_IPOD:D,IOS_VERSION:R,IS_ANDROID:M,ANDROID_VERSION:N,IS_NATIVE_ANDROID:U,IS_FIREFOX:B,IS_EDGE:F,IS_CHROME:j,CHROME_VERSION:V,IE_VERSION:q,IS_SAFARI:H,IS_WINDOWS:W,TOUCH_ENABLED:z,IS_IPAD:G,IS_IPHONE:X,IS_IOS:K,IS_ANY_SAFARI:Q});function $(e){return"string"==typeof e&&Boolean(e.trim())}function J(e){if(0<=e.indexOf(" "))throw new Error("class has illegal whitespace characters")}function Z(){return p===h.document}function ee(e){return k(e)&&1===e.nodeType}function te(){try{return h.parent!==h.self}catch(e){return!0}}function ie(n){return function(e,t){if(!$(e))return p[n](null);$(t)&&(t=p.querySelector(t));var i=ee(t)?t:p;return i[n]&&i[n](e)}}function ne(e,i,t,n){void 0===e&&(e="div"),void 0===i&&(i={}),void 0===t&&(t={});var r=p.createElement(e);return Object.getOwnPropertyNames(i).forEach(function(e){var t=i[e];-1!==e.indexOf("aria-")||"role"===e||"type"===e?(g.warn("Setting attributes in the second argument of createEl()\nhas been deprecated. Use the third argument instead.\ncreateEl(type, properties, attributes). Attempting to set "+e+" to "+t+"."),r.setAttribute(e,t)):"textContent"===e?re(r,t):r[e]===t&&"tabIndex"!==e||(r[e]=t)}),Object.getOwnPropertyNames(t).forEach(function(e){r.setAttribute(e,t[e])}),n&&ke(r,n),r}function re(e,t){return"undefined"==typeof e.textContent?e.innerText=t:e.textContent=t,e}function ae(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function se(e,t){return J(t),e.classList?e.classList.contains(t):function(e){return new RegExp("(^|\\s)"+e+"($|\\s)")}(t).test(e.className)}function oe(e,t){return e.classList?e.classList.add(t):se(e,t)||(e.className=(e.className+" "+t).trim()),e}function ue(e,t){return e.classList?e.classList.remove(t):(J(t),e.className=e.className.split(/\s+/).filter(function(e){return e!==t}).join(" ")),e}function le(e,t,i){var n=se(e,t);if("function"==typeof i&&(i=i(e,t)),"boolean"!=typeof i&&(i=!n),i!==n)return i?oe(e,t):ue(e,t),e}function ce(i,n){Object.getOwnPropertyNames(n).forEach(function(e){var t=n[e];null===t||"undefined"==typeof t||!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})}function de(e){var t={},i=",autoplay,controls,playsinline,loop,muted,default,defaultMuted,";if(e&&e.attributes&&0<e.attributes.length)for(var n=e.attributes,r=n.length-1;0<=r;r--){var a=n[r].name,s=n[r].value;"boolean"!=typeof e[a]&&-1===i.indexOf(","+a+",")||(s=null!==s),t[a]=s}return t}function he(e,t){return e.getAttribute(t)}function pe(e,t,i){e.setAttribute(t,i)}function fe(e,t){e.removeAttribute(t)}function me(){p.body.focus(),p.onselectstart=function(){return!1}}function ge(){p.onselectstart=function(){return!0}}function ve(e){if(e&&e.getBoundingClientRect&&e.parentNode){var t=e.getBoundingClientRect(),i={};return["bottom","height","left","right","top","width"].forEach(function(e){void 0!==t[e]&&(i[e]=t[e])}),i.height||(i.height=parseFloat(E(e,"height"))),i.width||(i.width=parseFloat(E(e,"width"))),i}}function ye(e){if(!e||e&&!e.offsetParent)return{left:0,top:0,width:0,height:0};for(var t=e.offsetWidth,i=e.offsetHeight,n=0,r=0;e.offsetParent&&e!==p[f.fullscreenElement];)n+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent;return{left:n,top:r,width:t,height:i}}function _e(e,t){var i={x:0,y:0};if(K)for(var n=e;n&&"html"!==n.nodeName.toLowerCase();){var r=E(n,"transform");if(/^matrix/.test(r)){var a=r.slice(7,-1).split(/,\s/).map(Number);i.x+=a[4],i.y+=a[5]}else if(/^matrix3d/.test(r)){var s=r.slice(9,-1).split(/,\s/).map(Number);i.x+=s[12],i.y+=s[13]}n=n.parentNode}var o={},u=ye(t.target),l=ye(e),c=l.width,d=l.height,h=t.offsetY-(l.top-u.top),p=t.offsetX-(l.left-u.left);return t.changedTouches&&(p=t.changedTouches[0].pageX-l.left,h=t.changedTouches[0].pageY+l.top,K&&(p-=i.x,h-=i.y)),o.y=1-Math.max(0,Math.min(1,h/d)),o.x=Math.max(0,Math.min(1,p/c)),o}function be(e){return k(e)&&3===e.nodeType}function Te(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function Se(e){return"function"==typeof e&&(e=e()),(Array.isArray(e)?e:[e]).map(function(e){return"function"==typeof e&&(e=e()),ee(e)||be(e)?e:"string"==typeof e&&/\S/.test(e)?p.createTextNode(e):void 0}).filter(function(e){return e})}function ke(t,e){return Se(e).forEach(function(e){return t.appendChild(e)}),t}function we(e,t){return ke(Te(e),t)}function Ee(e){return void 0===e.button&&void 0===e.buttons||(0===e.button&&void 0===e.buttons||("mouseup"===e.type&&0===e.button&&0===e.buttons||0===e.button&&1===e.buttons))}var Ce,Ie=ie("querySelector"),xe=ie("querySelectorAll"),Ae=Object.freeze({__proto__:null,isReal:Z,isEl:ee,isInFrame:te,createEl:ne,textContent:re,prependTo:ae,hasClass:se,addClass:oe,removeClass:ue,toggleClass:le,setAttributes:ce,getAttributes:de,getAttribute:he,setAttribute:pe,removeAttribute:fe,blockTextSelection:me,unblockTextSelection:ge,getBoundingClientRect:ve,findPosition:ye,getPointerPosition:_e,isTextNode:be,emptyEl:Te,normalizeContent:Se,appendContent:ke,insertContent:we,isSingleLeftClick:Ee,$:Ie,$$:xe}),Pe=!1,Le=function(){if(Z()&&!1!==Ce.options.autoSetup){var e=Array.prototype.slice.call(p.getElementsByTagName("video")),t=Array.prototype.slice.call(p.getElementsByTagName("audio")),i=Array.prototype.slice.call(p.getElementsByTagName("video-js")),n=e.concat(t,i);if(n&&0<n.length)for(var r=0,a=n.length;r<a;r++){var s=n[r];if(!s||!s.getAttribute){Oe(1);break}void 0===s.player&&null!==s.getAttribute("data-setup")&&Ce(s)}else Pe||Oe(1)}};function Oe(e,t){t&&(Ce=t),h.setTimeout(Le,e)}function De(){Pe=!0,h.removeEventListener("load",De)}Z()&&("complete"===p.readyState?De():h.addEventListener("load",De));function Re(e){var t=p.createElement("style");return t.className=e,t}function Me(e,t){e.styleSheet?e.styleSheet.cssText=t:e.textContent=t}var Ne,Ue=3;function Be(){return Ue++}h.WeakMap||(Ne=function(){function e(){this.vdata="vdata"+Math.floor(h.performance&&h.performance.now()||Date.now()),this.data={}}var t=e.prototype;return t.set=function(e,t){var i=e[this.vdata]||Be();return e[this.vdata]||(e[this.vdata]=i),this.data[i]=t,this},t.get=function(e){var t=e[this.vdata];if(t)return this.data[t];g("We have no data for this element",e)},t.has=function(e){return e[this.vdata]in this.data},t.delete=function(e){var t=e[this.vdata];t&&(delete this.data[t],delete e[this.vdata])},e}());var Fe,je=h.WeakMap?new WeakMap:new Ne;function Ve(e,t){if(je.has(e)){var i=je.get(e);0===i.handlers[t].length&&(delete i.handlers[t],e.removeEventListener?e.removeEventListener(t,i.dispatcher,!1):e.detachEvent&&e.detachEvent("on"+t,i.dispatcher)),Object.getOwnPropertyNames(i.handlers).length<=0&&(delete i.handlers,delete i.dispatcher,delete i.disabled),0===Object.getOwnPropertyNames(i).length&&je.delete(e)}}function qe(t,i,e,n){e.forEach(function(e){t(i,e,n)})}function He(e){if(e.fixed_)return e;function t(){return!0}function i(){return!1}if(!e||!e.isPropagationStopped){var n=e||h.event;for(var r in e={},n)"layerX"!==r&&"layerY"!==r&&"keyLocation"!==r&&"webkitMovementX"!==r&&"webkitMovementY"!==r&&("returnValue"===r&&n.preventDefault||(e[r]=n[r]));if(e.target||(e.target=e.srcElement||p),e.relatedTarget||(e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement),e.preventDefault=function(){n.preventDefault&&n.preventDefault(),e.returnValue=!1,n.returnValue=!1,e.defaultPrevented=!0},e.defaultPrevented=!1,e.stopPropagation=function(){n.stopPropagation&&n.stopPropagation(),e.cancelBubble=!0,n.cancelBubble=!0,e.isPropagationStopped=t},e.isPropagationStopped=i,e.stopImmediatePropagation=function(){n.stopImmediatePropagation&&n.stopImmediatePropagation(),e.isImmediatePropagationStopped=t,e.stopPropagation()},e.isImmediatePropagationStopped=i,null!==e.clientX&&void 0!==e.clientX){var a=p.documentElement,s=p.body;e.pageX=e.clientX+(a&&a.scrollLeft||s&&s.scrollLeft||0)-(a&&a.clientLeft||s&&s.clientLeft||0),e.pageY=e.clientY+(a&&a.scrollTop||s&&s.scrollTop||0)-(a&&a.clientTop||s&&s.clientTop||0)}e.which=e.charCode||e.keyCode,null!==e.button&&void 0!==e.button&&(e.button=1&e.button?0:4&e.button?1:2&e.button?2:0)}return e.fixed_=!0,e}var We=function(){if("boolean"!=typeof Fe){Fe=!1;try{var e=Object.defineProperty({},"passive",{get:function(){Fe=!0}});h.addEventListener("test",null,e),h.removeEventListener("test",null,e)}catch(e){}}return Fe},ze=["touchstart","touchmove"];function Ge(s,e,t){if(Array.isArray(e))return qe(Ge,s,e,t);je.has(s)||je.set(s,{});var o=je.get(s);if(o.handlers||(o.handlers={}),o.handlers[e]||(o.handlers[e]=[]),t.guid||(t.guid=Be()),o.handlers[e].push(t),o.dispatcher||(o.disabled=!1,o.dispatcher=function(e,t){if(!o.disabled){e=He(e);var i=o.handlers[e.type];if(i)for(var n=i.slice(0),r=0,a=n.length;r<a&&!e.isImmediatePropagationStopped();r++)try{n[r].call(s,e,t)}catch(e){g.error(e)}}}),1===o.handlers[e].length)if(s.addEventListener){var i=!1;We()&&-1<ze.indexOf(e)&&(i={passive:!0}),s.addEventListener(e,o.dispatcher,i)}else s.attachEvent&&s.attachEvent("on"+e,o.dispatcher)}function Xe(e,t,i){if(je.has(e)){var n=je.get(e);if(n.handlers){if(Array.isArray(t))return qe(Xe,e,t,i);var r=function(e,t){n.handlers[t]=[],Ve(e,t)};if(void 0!==t){var a=n.handlers[t];if(a)if(i){if(i.guid)for(var s=0;s<a.length;s++)a[s].guid===i.guid&&a.splice(s--,1);Ve(e,t)}else r(e,t)}else for(var o in n.handlers)Object.prototype.hasOwnProperty.call(n.handlers||{},o)&&r(e,o)}}}function Ke(e,t,i){var n=je.has(e)?je.get(e):{},r=e.parentNode||e.ownerDocument;if("string"==typeof t?t={type:t,target:e}:t.target||(t.target=e),t=He(t),n.dispatcher&&n.dispatcher.call(e,t,i),r&&!t.isPropagationStopped()&&!0===t.bubbles)Ke.call(null,r,t,i);else if(!r&&!t.defaultPrevented&&t.target&&t.target[t.type]){je.has(t.target)||je.set(t.target,{});var a=je.get(t.target);t.target[t.type]&&(a.disabled=!0,"function"==typeof t.target[t.type]&&t.target[t.type](),a.disabled=!1)}return!t.defaultPrevented}function Qe(e,t,i){if(Array.isArray(t))return qe(Qe,e,t,i);function n(){Xe(e,t,n),i.apply(this,arguments)}n.guid=i.guid=i.guid||Be(),Ge(e,t,n)}function Ye(e,t,i){function n(){Xe(e,t,n),i.apply(this,arguments)}n.guid=i.guid=i.guid||Be(),Ge(e,t,n)}function $e(e,t,i){t.guid||(t.guid=Be());var n=t.bind(e);return n.guid=i?i+"_"+t.guid:t.guid,n}function Je(t,i){var n=h.performance.now();return function(){var e=h.performance.now();i<=e-n&&(t.apply(void 0,arguments),n=e)}}function Ze(){}var et,tt=Object.freeze({__proto__:null,fixEvent:He,on:Ge,off:Xe,trigger:Ke,one:Qe,any:Ye});Ze.prototype.allowedEvents_={},Ze.prototype.addEventListener=Ze.prototype.on=function(e,t){var i=this.addEventListener;this.addEventListener=function(){},Ge(this,e,t),this.addEventListener=i},Ze.prototype.removeEventListener=Ze.prototype.off=function(e,t){Xe(this,e,t)},Ze.prototype.one=function(e,t){var i=this.addEventListener;this.addEventListener=function(){},Qe(this,e,t),this.addEventListener=i},Ze.prototype.any=function(e,t){var i=this.addEventListener;this.addEventListener=function(){},Ye(this,e,t),this.addEventListener=i},Ze.prototype.dispatchEvent=Ze.prototype.trigger=function(e){var t=e.type||e;"string"==typeof e&&(e={type:t}),e=He(e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),Ke(this,e)},Ze.prototype.queueTrigger=function(e){var t=this;et=et||new Map;var i=e.type||e,n=et.get(this);n||(n=new Map,et.set(this,n));var r=n.get(i);n.delete(i),h.clearTimeout(r);var a=h.setTimeout(function(){0===n.size&&(n=null,et.delete(t)),t.trigger(e)},0);n.set(i,a)};function it(e){return"function"==typeof e.name?e.name():"string"==typeof e.name?e.name:e.name_?e.name_:e.constructor&&e.constructor.name?e.constructor.name:typeof e}function nt(e){return"string"==typeof e&&/\S/.test(e)||Array.isArray(e)&&!!e.length}function rt(e,t,i){if(!e||!e.nodeName&&!lt(e))throw new Error("Invalid target for "+it(t)+"#"+i+"; must be a DOM node or evented object.")}function at(e,t,i){if(!nt(e))throw new Error("Invalid event type for "+it(t)+"#"+i+"; must be a non-empty string or array.")}function st(e,t,i){if("function"!=typeof e)throw new Error("Invalid listener for "+it(t)+"#"+i+"; must be a function.")}function ot(e,t,i){var n,r,a,s=t.length<3||t[0]===e||t[0]===e.eventBusEl_;return a=s?(n=e.eventBusEl_,3<=t.length&&t.shift(),r=t[0],t[1]):(n=t[0],r=t[1],t[2]),rt(n,e,i),at(r,e,i),st(a,e,i),{isTargetingSelf:s,target:n,type:r,listener:a=$e(e,a)}}function ut(e,t,i,n){rt(e,e,t),e.nodeName?tt[t](e,i,n):e[t](i,n)}var lt=function(t){return t instanceof Ze||!!t.eventBusEl_&&["on","one","off","trigger"].every(function(e){return"function"==typeof t[e]})},ct={on:function(){for(var e=this,t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];var r=ot(this,i,"on"),a=r.isTargetingSelf,s=r.target,o=r.type,u=r.listener;if(ut(s,"on",o,u),!a){var l=function(){return e.off(s,o,u)};l.guid=u.guid;var c=function(){return e.off("dispose",l)};c.guid=u.guid,ut(this,"on","dispose",l),ut(s,"on","dispose",c)}},one:function(){for(var r=this,e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var n=ot(this,t,"one"),a=n.isTargetingSelf,s=n.target,o=n.type,u=n.listener;if(a)ut(s,"one",o,u);else{var l=function e(){r.off(s,o,e);for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];u.apply(null,i)};l.guid=u.guid,ut(s,"one",o,l)}},any:function(){for(var r=this,e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var n=ot(this,t,"any"),a=n.isTargetingSelf,s=n.target,o=n.type,u=n.listener;if(a)ut(s,"any",o,u);else{var l=function e(){r.off(s,o,e);for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];u.apply(null,i)};l.guid=u.guid,ut(s,"any",o,l)}},off:function(e,t,i){if(!e||nt(e))Xe(this.eventBusEl_,e,t);else{var n=e,r=t;rt(n,this,"off"),at(r,this,"off"),st(i,this,"off"),i=$e(this,i),this.off("dispose",i),n.nodeName?(Xe(n,r,i),Xe(n,"dispose",i)):lt(n)&&(n.off(r,i),n.off("dispose",i))}},trigger:function(e,t){rt(this.eventBusEl_,this,"trigger");var i=e&&"string"!=typeof e?e.type:e;if(!nt(i)){var n="Invalid event type for "+it(this)+"#trigger; must be a non-empty string or object with a type key that has a non-empty value.";if(!e)throw new Error(n);(this.log||g).error(n)}return Ke(this.eventBusEl_,e,t)}};function dt(e,t){void 0===t&&(t={});var i=t.eventBusKey;if(i){if(!e[i].nodeName)throw new Error('The eventBusKey "'+i+'" does not refer to an element.');e.eventBusEl_=e[i]}else e.eventBusEl_=ne("span",{className:"vjs-event-bus"});return S(e,ct),e.eventedCallbacks&&e.eventedCallbacks.forEach(function(e){e()}),e.on("dispose",function(){e.off(),h.setTimeout(function(){e.eventBusEl_=null},0)}),e}var ht={state:{},setState:function(e){var i,n=this;return"function"==typeof e&&(e=e()),T(e,function(e,t){n.state[t]!==e&&((i=i||{})[t]={from:n.state[t],to:e}),n.state[t]=e}),i&&lt(this)&&this.trigger({changes:i,type:"statechanged"}),i}};function pt(e,t){return S(e,ht),e.state=S({},e.state,t),"function"==typeof e.handleStateChanged&&lt(e)&&e.on("statechanged",e.handleStateChanged),e}function ft(e){return"string"!=typeof e?e:e.replace(/./,function(e){return e.toLowerCase()})}function mt(e){return"string"!=typeof e?e:e.replace(/./,function(e){return e.toUpperCase()})}function gt(){for(var i={},e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.forEach(function(e){e&&T(e,function(e,t){w(e)?(w(i[t])||(i[t]={}),i[t]=gt(i[t],e)):i[t]=e})}),i}var vt=function(){function e(){this.map_={}}var t=e.prototype;return t.has=function(e){return e in this.map_},t.delete=function(e){var t=this.has(e);return delete this.map_[e],t},t.set=function(e,t){return this.map_[e]=t,this},t.forEach=function(e,t){for(var i in this.map_)e.call(t,this.map_[i],i,this)},e}(),yt=h.Map?h.Map:vt,_t=function(){function e(){this.set_={}}var t=e.prototype;return t.has=function(e){return e in this.set_},t.delete=function(e){var t=this.has(e);return delete this.set_[e],t},t.add=function(e){return this.set_[e]=1,this},t.forEach=function(e,t){for(var i in this.set_)e.call(t,i,i,this)},e}(),bt=h.Set?h.Set:_t,Tt=function(){function l(e,t,i){if(!e&&this.play?this.player_=e=this:this.player_=e,this.isDisposed_=!1,this.parentComponent_=null,this.options_=gt({},this.options_),t=this.options_=gt(this.options_,t),this.id_=t.id||t.el&&t.el.id,!this.id_){var n=e&&e.id&&e.id()||"no_player";this.id_=n+"_component_"+Be()}this.name_=t.name||null,t.el?this.el_=t.el:!1!==t.createEl&&(this.el_=this.createEl()),!1!==t.evented&&(dt(this,{eventBusKey:this.el_?"el_":null}),this.handleLanguagechange=this.handleLanguagechange.bind(this),this.on(this.player_,"languagechange",this.handleLanguagechange)),pt(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},this.setTimeoutIds_=new bt,this.setIntervalIds_=new bt,this.rafIds_=new bt,this.namedRafs_=new yt,(this.clearingTimersOnDispose_=!1)!==t.initChildren&&this.initChildren(),this.ready(i),!1!==t.reportTouchActivity&&this.enableTouchActivity()}var e=l.prototype;return e.dispose=function(){if(!this.isDisposed_){if(this.readyQueue_&&(this.readyQueue_.length=0),this.trigger({type:"dispose",bubbles:!1}),this.isDisposed_=!0,this.children_)for(var e=this.children_.length-1;0<=e;e--)this.children_[e].dispose&&this.children_[e].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&(this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),je.has(this.el_)&&je.delete(this.el_),this.el_=null),this.player_=null}},e.isDisposed=function(){return Boolean(this.isDisposed_)},e.player=function(){return this.player_},e.options=function(e){return e&&(this.options_=gt(this.options_,e)),this.options_},e.el=function(){return this.el_},e.createEl=function(e,t,i){return ne(e,t,i)},e.localize=function(e,r,t){void 0===t&&(t=e);var i=this.player_.language&&this.player_.language(),n=this.player_.languages&&this.player_.languages(),a=n&&n[i],s=i&&i.split("-")[0],o=n&&n[s],u=t;return a&&a[e]?u=a[e]:o&&o[e]&&(u=o[e]),r&&(u=u.replace(/\{(\d+)\}/g,function(e,t){var i=r[t-1],n=i;return"undefined"==typeof i&&(n=e),n})),u},e.handleLanguagechange=function(){},e.contentEl=function(){return this.contentEl_||this.el_},e.id=function(){return this.id_},e.name=function(){return this.name_},e.children=function(){return this.children_},e.getChildById=function(e){return this.childIndex_[e]},e.getChild=function(e){if(e)return this.childNameIndex_[e]},e.getDescendant=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];t=t.reduce(function(e,t){return e.concat(t)},[]);for(var n=this,r=0;r<t.length;r++)if(!(n=n.getChild(t[r]))||!n.getChild)return;return n},e.addChild=function(e,t,i){var n,r;if(void 0===t&&(t={}),void 0===i&&(i=this.children_.length),"string"==typeof e){r=mt(e);var a=t.componentClass||r;t.name=r;var s=l.getComponent(a);if(!s)throw new Error("Component "+a+" does not exist");if("function"!=typeof s)return null;n=new s(this.player_||this,t)}else n=e;if(n.parentComponent_&&n.parentComponent_.removeChild(n),this.children_.splice(i,0,n),n.parentComponent_=this,"function"==typeof n.id&&(this.childIndex_[n.id()]=n),(r=r||n.name&&mt(n.name()))&&(this.childNameIndex_[r]=n,this.childNameIndex_[ft(r)]=n),"function"==typeof n.el&&n.el()){var o=null;this.children_[i+1]&&(this.children_[i+1].el_?o=this.children_[i+1].el_:ee(this.children_[i+1])&&(o=this.children_[i+1])),this.contentEl().insertBefore(n.el(),o)}return n},e.removeChild=function(e){if("string"==typeof e&&(e=this.getChild(e)),e&&this.children_){for(var t=!1,i=this.children_.length-1;0<=i;i--)if(this.children_[i]===e){t=!0,this.children_.splice(i,1);break}if(t){e.parentComponent_=null,this.childIndex_[e.id()]=null,this.childNameIndex_[mt(e.name())]=null,this.childNameIndex_[ft(e.name())]=null;var n=e.el();n&&n.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}}},e.initChildren=function(){var r=this,n=this.options_.children;if(n){var e,a=this.options_,i=l.getComponent("Tech");(e=Array.isArray(n)?n:Object.keys(n)).concat(Object.keys(this.options_).filter(function(t){return!e.some(function(e){return"string"==typeof e?t===e:t===e.name})})).map(function(e){var t,i;return i="string"==typeof e?n[t=e]||r.options_[t]||{}:(t=e.name,e),{name:t,opts:i}}).filter(function(e){var t=l.getComponent(e.opts.componentClass||mt(e.name));return t&&!i.isTech(t)}).forEach(function(e){var t=e.name,i=e.opts;if(void 0!==a[t]&&(i=a[t]),!1!==i){!0===i&&(i={}),i.playerOptions=r.options_.playerOptions;var n=r.addChild(t,i);n&&(r[t]=n)}})}},e.buildCSSClass=function(){return""},e.ready=function(e,t){if(void 0===t&&(t=!1),e)return this.isReady_?void(t?e.call(this):this.setTimeout(e,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(e))},e.triggerReady=function(){this.isReady_=!0,this.setTimeout(function(){var e=this.readyQueue_;this.readyQueue_=[],e&&0<e.length&&e.forEach(function(e){e.call(this)},this),this.trigger("ready")},1)},e.$=function(e,t){return Ie(e,t||this.contentEl())},e.$$=function(e,t){return xe(e,t||this.contentEl())},e.hasClass=function(e){return se(this.el_,e)},e.addClass=function(e){oe(this.el_,e)},e.removeClass=function(e){ue(this.el_,e)},e.toggleClass=function(e,t){le(this.el_,e,t)},e.show=function(){this.removeClass("vjs-hidden")},e.hide=function(){this.addClass("vjs-hidden")},e.lockShowing=function(){this.addClass("vjs-lock-showing")},e.unlockShowing=function(){this.removeClass("vjs-lock-showing")},e.getAttribute=function(e){return he(this.el_,e)},e.setAttribute=function(e,t){pe(this.el_,e,t)},e.removeAttribute=function(e){fe(this.el_,e)},e.width=function(e,t){return this.dimension("width",e,t)},e.height=function(e,t){return this.dimension("height",e,t)},e.dimensions=function(e,t){this.width(e,!0),this.height(t)},e.dimension=function(e,t,i){if(void 0!==t)return null!==t&&t==t||(t=0),-1!==(""+t).indexOf("%")||-1!==(""+t).indexOf("px")?this.el_.style[e]=t:this.el_.style[e]="auto"===t?"":t+"px",void(i||this.trigger("componentresize"));if(!this.el_)return 0;var n=this.el_.style[e],r=n.indexOf("px");return-1!==r?parseInt(n.slice(0,r),10):parseInt(this.el_["offset"+mt(e)],10)},e.currentDimension=function(e){var t=0;if("width"!==e&&"height"!==e)throw new Error("currentDimension only accepts width or height value");if(t=E(this.el_,e),0===(t=parseFloat(t))||isNaN(t)){var i="offset"+mt(e);t=this.el_[i]}return t},e.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},e.currentWidth=function(){return this.currentDimension("width")},e.currentHeight=function(){return this.currentDimension("height")},e.focus=function(){this.el_.focus()},e.blur=function(){this.el_.blur()},e.handleKeyDown=function(e){this.player_&&(e.stopPropagation(),this.player_.handleKeyDown(e))},e.handleKeyPress=function(e){this.handleKeyDown(e)},e.emitTapEvents=function(){var n,t=0,r=null;this.on("touchstart",function(e){1===e.touches.length&&(r={pageX:e.touches[0].pageX,pageY:e.touches[0].pageY},t=h.performance.now(),n=!0)}),this.on("touchmove",function(e){if(1<e.touches.length)n=!1;else if(r){var t=e.touches[0].pageX-r.pageX,i=e.touches[0].pageY-r.pageY;10<Math.sqrt(t*t+i*i)&&(n=!1)}});function e(){n=!1}this.on("touchleave",e),this.on("touchcancel",e),this.on("touchend",function(e){!(r=null)===n&&h.performance.now()-t<200&&(e.preventDefault(),this.trigger("tap"))})},e.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var t,i=$e(this.player(),this.player().reportUserActivity);this.on("touchstart",function(){i(),this.clearInterval(t),t=this.setInterval(i,250)});var e=function(e){i(),this.clearInterval(t)};this.on("touchmove",i),this.on("touchend",e),this.on("touchcancel",e)}},e.setTimeout=function(e,t){var i,n=this;return e=$e(this,e),this.clearTimersOnDispose_(),i=h.setTimeout(function(){n.setTimeoutIds_.has(i)&&n.setTimeoutIds_.delete(i),e()},t),this.setTimeoutIds_.add(i),i},e.clearTimeout=function(e){return this.setTimeoutIds_.has(e)&&(this.setTimeoutIds_.delete(e),h.clearTimeout(e)),e},e.setInterval=function(e,t){e=$e(this,e),this.clearTimersOnDispose_();var i=h.setInterval(e,t);return this.setIntervalIds_.add(i),i},e.clearInterval=function(e){return this.setIntervalIds_.has(e)&&(this.setIntervalIds_.delete(e),h.clearInterval(e)),e},e.requestAnimationFrame=function(e){var t,i=this;return this.supportsRaf_?(this.clearTimersOnDispose_(),e=$e(this,e),t=h.requestAnimationFrame(function(){i.rafIds_.has(t)&&i.rafIds_.delete(t),e()}),this.rafIds_.add(t),t):this.setTimeout(e,1e3/60)},e.requestNamedAnimationFrame=function(e,t){var i=this;if(!this.namedRafs_.has(e)){this.clearTimersOnDispose_(),t=$e(this,t);var n=this.requestAnimationFrame(function(){t(),i.namedRafs_.has(e)&&i.namedRafs_.delete(e)});return this.namedRafs_.set(e,n),e}},e.cancelNamedAnimationFrame=function(e){this.namedRafs_.has(e)&&(this.cancelAnimationFrame(this.namedRafs_.get(e)),this.namedRafs_.delete(e))},e.cancelAnimationFrame=function(e){return this.supportsRaf_?(this.rafIds_.has(e)&&(this.rafIds_.delete(e),h.cancelAnimationFrame(e)),e):this.clearTimeout(e)},e.clearTimersOnDispose_=function(){var n=this;this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one("dispose",function(){[["namedRafs_","cancelNamedAnimationFrame"],["rafIds_","cancelAnimationFrame"],["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEach(function(e){var t=e[0],i=e[1];n[t].forEach(function(e,t){return n[i](t)})}),n.clearingTimersOnDispose_=!1}))},l.registerComponent=function(e,t){if("string"!=typeof e||!e)throw new Error('Illegal component name, "'+e+'"; must be a non-empty string.');var i,n=l.getComponent("Tech"),r=n&&n.isTech(t),a=l===t||l.prototype.isPrototypeOf(t.prototype);if(r||!a)throw i=r?"techs must be registered using Tech.registerTech()":"must be a Component subclass",new Error('Illegal component, "'+e+'"; '+i+".");e=mt(e),l.components_||(l.components_={});var s=l.getComponent("Player");if("Player"===e&&s&&s.players){var o=s.players,u=Object.keys(o);if(o&&0<u.length&&u.map(function(e){return o[e]}).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return l.components_[e]=t,l.components_[ft(e)]=t},l.getComponent=function(e){if(e&&l.components_)return l.components_[e]},l}();Tt.prototype.supportsRaf_="function"==typeof h.requestAnimationFrame&&"function"==typeof h.cancelAnimationFrame,Tt.registerComponent("Component",Tt);var St=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e};i(function(t){function i(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=i=function(e){return typeof e}:t.exports=i=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}t.exports=i}),i(function(t){function i(e){return t.exports=i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}t.exports=i});var kt=function(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t};function wt(e,t,i,n){return function(e,t,i){if("number"!=typeof t||t<0||i<t)throw new Error("Failed to execute '"+e+"' on 'TimeRanges': The index provided ("+t+") is non-numeric or out of bounds (0-"+i+").")}(e,n,i.length-1),i[n][t]}function Et(e){return void 0===e||0===e.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:e.length,start:wt.bind(null,"start",0,e),end:wt.bind(null,"end",1,e)}}function Ct(e,t){return Array.isArray(e)?Et(e):void 0===e||void 0===t?Et():Et([[e,t]])}function It(e,t){var i,n,r=0;if(!t)return 0;e&&e.length||(e=Ct(0,0));for(var a=0;a<e.length;a++)i=e.start(a),t<(n=e.end(a))&&(n=t),r+=n-i;return r/t}function xt(e){if(e instanceof xt)return e;"number"==typeof e?this.code=e:"string"==typeof e?this.message=e:k(e)&&("number"==typeof e.code&&(this.code=e.code),S(this,e)),this.message||(this.message=xt.defaultMessages[this.code]||"")}xt.prototype.code=0,xt.prototype.message="",xt.prototype.status=null,xt.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],xt.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(var At=0;At<xt.errorTypes.length;At++)xt[xt.errorTypes[At]]=At,xt.prototype[xt.errorTypes[At]]=At;var Pt=function(e,t){var i,n=null;try{i=JSON.parse(e,t)}catch(e){n=e}return[n,i]};function Lt(e){return null!=e&&"function"==typeof e.then}function Ot(e){Lt(e)&&e.then(null,function(e){})}function Dt(n){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(function(e,t,i){return n[t]&&(e[t]=n[t]),e},{cues:n.cues&&Array.prototype.map.call(n.cues,function(e){return{startTime:e.startTime,endTime:e.endTime,text:e.text,id:e.id}})})}var Rt=function(e){var t=e.$$("track"),i=Array.prototype.map.call(t,function(e){return e.track});return Array.prototype.map.call(t,function(e){var t=Dt(e.track);return e.src&&(t.src=e.src),t}).concat(Array.prototype.filter.call(e.textTracks(),function(e){return-1===i.indexOf(e)}).map(Dt))},Mt=function(e,i){return e.forEach(function(e){var t=i.addRemoteTextTrack(e).track;!e.src&&e.cues&&e.cues.forEach(function(e){return t.addCue(e)})}),i.textTracks()},Nt=i(function(e,t){function i(e){if(e&&"object"==typeof e){var t=e.which||e.keyCode||e.charCode;t&&(e=t)}if("number"==typeof e)return s[e];var i,n=String(e);return(i=r[n.toLowerCase()])?i:(i=a[n.toLowerCase()])||(1===n.length?n.charCodeAt(0):void 0)}i.isEventKey=function(e,t){if(e&&"object"==typeof e){var i=e.which||e.keyCode||e.charCode;if(null==i)return!1;if("string"==typeof t){var n;if(n=r[t.toLowerCase()])return n===i;if(n=a[t.toLowerCase()])return n===i}else if("number"==typeof t)return t===i;return!1}};var r=(t=e.exports=i).code=t.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},a=t.aliases={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};for(n=97;n<123;n++)r[String.fromCharCode(n)]=n-32;for(var n=48;n<58;n++)r[n-48]=n;for(n=1;n<13;n++)r["f"+n]=n+111;for(n=0;n<10;n++)r["numpad "+n]=n+96;var s=t.names=t.title={};for(n in r)s[r[n]]=n;for(var o in a)r[o]=a[o]}),Ut=(Nt.code,Nt.codes,Nt.aliases,Nt.names,Nt.title,"vjs-modal-dialog"),Bt=function(n){function e(e,t){var i;return(i=n.call(this,e,t)||this).opened_=i.hasBeenOpened_=i.hasBeenFilled_=!1,i.closeable(!i.options_.uncloseable),i.content(i.options_.content),i.contentEl_=ne("div",{className:Ut+"-content"},{role:"document"}),i.descEl_=ne("p",{className:Ut+"-description vjs-control-text",id:i.el().getAttribute("aria-describedby")}),re(i.descEl_,i.description()),i.el_.appendChild(i.descEl_),i.el_.appendChild(i.contentEl_),i}kt(e,n);var t=e.prototype;return t.createEl=function(){return n.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},t.dispose=function(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,n.prototype.dispose.call(this)},t.buildCSSClass=function(){return Ut+" vjs-hidden "+n.prototype.buildCSSClass.call(this)},t.label=function(){return this.localize(this.options_.label||"Modal Window")},t.description=function(){var e=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(e+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),e},t.open=function(){if(!this.opened_){var e=this.player();this.trigger("beforemodalopen"),this.opened_=!0,!this.options_.fillAlways&&(this.hasBeenOpened_||this.hasBeenFilled_)||this.fill(),this.wasPlaying_=!e.paused(),this.options_.pauseOnOpen&&this.wasPlaying_&&e.pause(),this.on("keydown",this.handleKeyDown),this.hadControls_=e.controls(),e.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}},t.opened=function(e){return"boolean"==typeof e&&this[e?"open":"close"](),this.opened_},t.close=function(){if(this.opened_){var e=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&e.play(),this.off("keydown",this.handleKeyDown),this.hadControls_&&e.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.conditionalBlur_(),this.options_.temporary&&this.dispose()}},t.closeable=function(e){if("boolean"==typeof e){var t=this.closeable_=!!e,i=this.getChild("closeButton");if(t&&!i){var n=this.contentEl_;this.contentEl_=this.el_,i=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=n,this.on(i,"close",this.close)}!t&&i&&(this.off(i,"close",this.close),this.removeChild(i),i.dispose())}return this.closeable_},t.fill=function(){this.fillWith(this.content())},t.fillWith=function(e){var t=this.contentEl(),i=t.parentNode,n=t.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,i.removeChild(t),this.empty(),we(t,e),this.trigger("modalfill"),n?i.insertBefore(t,n):i.appendChild(t);var r=this.getChild("closeButton");r&&i.appendChild(r.el_)},t.empty=function(){this.trigger("beforemodalempty"),Te(this.contentEl()),this.trigger("modalempty")},t.content=function(e){return"undefined"!=typeof e&&(this.content_=e),this.content_},t.conditionalFocus_=function(){var e=p.activeElement,t=this.player_.el_;this.previouslyActiveEl_=null,!t.contains(e)&&t!==e||(this.previouslyActiveEl_=e,this.focus())},t.conditionalBlur_=function(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null)},t.handleKeyDown=function(e){if(e.stopPropagation(),Nt.isEventKey(e,"Escape")&&this.closeable())return e.preventDefault(),void this.close();if(Nt.isEventKey(e,"Tab")){for(var t,i=this.focusableEls_(),n=this.el_.querySelector(":focus"),r=0;r<i.length;r++)if(n===i[r]){t=r;break}p.activeElement===this.el_&&(t=0),e.shiftKey&&0===t?(i[i.length-1].focus(),e.preventDefault()):e.shiftKey||t!==i.length-1||(i[0].focus(),e.preventDefault())}},t.focusableEls_=function(){var e=this.el_.querySelectorAll("*");return Array.prototype.filter.call(e,function(e){return(e instanceof h.HTMLAnchorElement||e instanceof h.HTMLAreaElement)&&e.hasAttribute("href")||(e instanceof h.HTMLInputElement||e instanceof h.HTMLSelectElement||e instanceof h.HTMLTextAreaElement||e instanceof h.HTMLButtonElement)&&!e.hasAttribute("disabled")||e instanceof h.HTMLIFrameElement||e instanceof h.HTMLObjectElement||e instanceof h.HTMLEmbedElement||e.hasAttribute("tabindex")&&-1!==e.getAttribute("tabindex")||e.hasAttribute("contenteditable")})},e}(Tt);Bt.prototype.options_={pauseOnOpen:!0,temporary:!0},Tt.registerComponent("ModalDialog",Bt);var Ft=function(n){function e(e){var t;void 0===e&&(e=[]),(t=n.call(this)||this).tracks_=[],Object.defineProperty(St(t),"length",{get:function(){return this.tracks_.length}});for(var i=0;i<e.length;i++)t.addTrack(e[i]);return t}kt(e,n);var t=e.prototype;return t.addTrack=function(e){var t=this,i=this.tracks_.length;""+i in this||Object.defineProperty(this,i,{get:function(){return this.tracks_[i]}}),-1===this.tracks_.indexOf(e)&&(this.tracks_.push(e),this.trigger({track:e,type:"addtrack",target:this})),e.labelchange_=function(){t.trigger({track:e,type:"labelchange",target:t})},lt(e)&&e.addEventListener("labelchange",e.labelchange_)},t.removeTrack=function(e){for(var t,i=0,n=this.length;i<n;i++)if(this[i]===e){(t=this[i]).off&&t.off(),this.tracks_.splice(i,1);break}t&&this.trigger({track:t,type:"removetrack",target:this})},t.getTrackById=function(e){for(var t=null,i=0,n=this.length;i<n;i++){var r=this[i];if(r.id===e){t=r;break}}return t},e}(Ze);for(var jt in Ft.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack",labelchange:"labelchange"},Ft.prototype.allowedEvents_)Ft.prototype["on"+jt]=null;function Vt(e,t){for(var i=0;i<e.length;i++)Object.keys(e[i]).length&&t.id!==e[i].id&&(e[i].enabled=!1)}function qt(e,t){for(var i=0;i<e.length;i++)Object.keys(e[i]).length&&t.id!==e[i].id&&(e[i].selected=!1)}function Ht(e){var t=["protocol","hostname","port","pathname","search","hash","host"],i=p.createElement("a");i.href=e;var n,r=""===i.host&&"file:"!==i.protocol;r&&((n=p.createElement("div")).innerHTML='<a href="'+e+'"></a>',i=n.firstChild,n.setAttribute("style","display:none; position:absolute;"),p.body.appendChild(n));for(var a={},s=0;s<t.length;s++)a[t[s]]=i[t[s]];return"http:"===a.protocol&&(a.host=a.host.replace(/:80$/,"")),"https:"===a.protocol&&(a.host=a.host.replace(/:443$/,"")),a.protocol||(a.protocol=h.location.protocol),r&&p.body.removeChild(n),a}function Wt(e){if(!e.match(/^https?:\/\//)){var t=p.createElement("div");t.innerHTML='<a href="'+e+'">x</a>',e=t.firstChild.href}return e}function zt(e){if("string"==typeof e){var t=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/.exec(e);if(t)return t.pop().toLowerCase()}return""}function Gt(e,t){void 0===t&&(t=h.location);var i=Ht(e);return(":"===i.protocol?t.protocol:i.protocol)+i.host!==t.protocol+t.host}var Xt=function(n){function e(e){var t;void 0===e&&(e=[]);for(var i=e.length-1;0<=i;i--)if(e[i].enabled){Vt(e,e[i]);break}return(t=n.call(this,e)||this).changing_=!1,t}kt(e,n);var t=e.prototype;return t.addTrack=function(e){var t=this;e.enabled&&Vt(this,e),n.prototype.addTrack.call(this,e),e.addEventListener&&(e.enabledChange_=function(){t.changing_||(t.changing_=!0,Vt(t,e),t.changing_=!1,t.trigger("change"))},e.addEventListener("enabledchange",e.enabledChange_))},t.removeTrack=function(e){n.prototype.removeTrack.call(this,e),e.removeEventListener&&e.enabledChange_&&(e.removeEventListener("enabledchange",e.enabledChange_),e.enabledChange_=null)},e}(Ft),Kt=function(n){function e(e){var t;void 0===e&&(e=[]);for(var i=e.length-1;0<=i;i--)if(e[i].selected){qt(e,e[i]);break}return(t=n.call(this,e)||this).changing_=!1,Object.defineProperty(St(t),"selectedIndex",{get:function(){for(var e=0;e<this.length;e++)if(this[e].selected)return e;return-1},set:function(){}}),t}kt(e,n);var t=e.prototype;return t.addTrack=function(e){var t=this;e.selected&&qt(this,e),n.prototype.addTrack.call(this,e),e.addEventListener&&(e.selectedChange_=function(){t.changing_||(t.changing_=!0,qt(t,e),t.changing_=!1,t.trigger("change"))},e.addEventListener("selectedchange",e.selectedChange_))},t.removeTrack=function(e){n.prototype.removeTrack.call(this,e),e.removeEventListener&&e.selectedChange_&&(e.removeEventListener("selectedchange",e.selectedChange_),e.selectedChange_=null)},e}(Ft),Qt=function(i){function e(){return i.apply(this,arguments)||this}kt(e,i);var t=e.prototype;return t.addTrack=function(e){var t=this;i.prototype.addTrack.call(this,e),this.queueChange_||(this.queueChange_=function(){return t.queueTrigger("change")}),this.triggerSelectedlanguagechange||(this.triggerSelectedlanguagechange_=function(){return t.trigger("selectedlanguagechange")}),e.addEventListener("modechange",this.queueChange_);-1===["metadata","chapters"].indexOf(e.kind)&&e.addEventListener("modechange",this.triggerSelectedlanguagechange_)},t.removeTrack=function(e){i.prototype.removeTrack.call(this,e),e.removeEventListener&&(this.queueChange_&&e.removeEventListener("modechange",this.queueChange_),this.selectedlanguagechange_&&e.removeEventListener("modechange",this.triggerSelectedlanguagechange_))},e}(Ft),Yt=function(){function e(e){void 0===e&&(e=[]),this.trackElements_=[],Object.defineProperty(this,"length",{get:function(){return this.trackElements_.length}});for(var t=0,i=e.length;t<i;t++)this.addTrackElement_(e[t])}var t=e.prototype;return t.addTrackElement_=function(e){var t=this.trackElements_.length;""+t in this||Object.defineProperty(this,t,{get:function(){return this.trackElements_[t]}}),-1===this.trackElements_.indexOf(e)&&this.trackElements_.push(e)},t.getTrackElementByTrack_=function(e){for(var t,i=0,n=this.trackElements_.length;i<n;i++)if(e===this.trackElements_[i].track){t=this.trackElements_[i];break}return t},t.removeTrackElement_=function(e){for(var t=0,i=this.trackElements_.length;t<i;t++)if(e===this.trackElements_[t]){this.trackElements_[t].track&&"function"==typeof this.trackElements_[t].track.off&&this.trackElements_[t].track.off(),"function"==typeof this.trackElements_[t].off&&this.trackElements_[t].off(),this.trackElements_.splice(t,1);break}},e}(),$t=function(){function t(e){t.prototype.setCues_.call(this,e),Object.defineProperty(this,"length",{get:function(){return this.length_}})}var e=t.prototype;return e.setCues_=function(e){var t=this.length||0,i=0,n=e.length;this.cues_=e,this.length_=e.length;function r(e){""+e in this||Object.defineProperty(this,""+e,{get:function(){return this.cues_[e]}})}if(t<n)for(i=t;i<n;i++)r.call(this,i)},e.getCueById=function(e){for(var t=null,i=0,n=this.length;i<n;i++){var r=this[i];if(r.id===e){t=r;break}}return t},t}(),Jt={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},Zt={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},ei={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},ti={disabled:"disabled",hidden:"hidden",showing:"showing"},ii=function(s){function e(e){var t;void 0===e&&(e={}),t=s.call(this)||this;function i(e){Object.defineProperty(St(t),e,{get:function(){return n[e]},set:function(){}})}var n={id:e.id||"vjs_track_"+Be(),kind:e.kind||"",language:e.language||""},r=e.label||"";for(var a in n)i(a);return Object.defineProperty(St(t),"label",{get:function(){return r},set:function(e){e!==r&&(r=e,this.trigger("labelchange"))}}),t}return kt(e,s),e}(Ze),ni=Object.freeze({__proto__:null,parseUrl:Ht,getAbsoluteURL:Wt,getFileExtension:zt,isCrossOrigin:Gt}),ri="undefined"!=typeof window?window:"undefined"!=typeof e?e:"undefined"!=typeof self?self:{},ai=function(e){var t=si.call(e);return"[object Function]"===t||"function"==typeof e&&"[object RegExp]"!==t||"undefined"!=typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)}
13
  /**
14
  * @license
15
  * slighly modified parse-headers 2.0.2 <https://github.com/kesla/parse-headers/>
16
  * Copyright (c) 2014 David Björklund
17
  * Available under the MIT license
18
  * <https://github.com/kesla/parse-headers/blob/master/LICENCE>
19
- */,si=Object.prototype.toString;var oi=function(e){var r={};return e&&e.trim().split("\n").forEach(function(e){var t=e.indexOf(":"),i=e.slice(0,t).trim().toLowerCase(),n=e.slice(t+1).trim();"undefined"==typeof r[i]?r[i]=n:Array.isArray(r[i])?r[i].push(n):r[i]=[r[i],n]}),r},ui=di,li=di;function ci(e,t,i){var n=e;return ai(t)?(i=t,"string"==typeof e&&(n={uri:e})):n=y({},t,{uri:e}),n.callback=i,n}function di(e,t,i){return hi(t=ci(e,t,i))}function hi(n){if("undefined"==typeof n.callback)throw new Error("callback argument missing");var r=!1,a=function(e,t,i){r||(r=!0,n.callback(e,t,i))};function t(e){return clearTimeout(o),e instanceof Error||(e=new Error(""+(e||"Unknown XMLHttpRequest Error"))),e.statusCode=0,a(e,m)}function e(){if(!s){var e;clearTimeout(o),e=n.useXDR&&void 0===u.status?200:1223===u.status?204:u.status;var t=m,i=null;return 0!==e?(t={body:function(){var e=void 0;if(e=u.response?u.response:u.responseText||function(e){try{if("document"===e.responseType)return e.responseXML;var t=e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName;if(""===e.responseType&&!t)return e.responseXML}catch(e){}return null}(u),f)try{e=JSON.parse(e)}catch(e){}return e}(),statusCode:e,method:c,headers:{},url:l,rawRequest:u},u.getAllResponseHeaders&&(t.headers=oi(u.getAllResponseHeaders()))):i=new Error("Internal XMLHttpRequest Error"),a(i,t,t.body)}}var i,s,o,u=n.xhr||null,l=(u=u||(n.cors||n.useXDR?new di.XDomainRequest:new di.XMLHttpRequest)).url=n.uri||n.url,c=u.method=n.method||"GET",d=n.body||n.data,h=u.headers=n.headers||{},p=!!n.sync,f=!1,m={body:void 0,headers:{},statusCode:0,method:c,url:l,rawRequest:u};if("json"in n&&!1!==n.json&&(f=!0,h.accept||h.Accept||(h.Accept="application/json"),"GET"!==c&&"HEAD"!==c&&(h["content-type"]||h["Content-Type"]||(h["Content-Type"]="application/json"),d=JSON.stringify(!0===n.json?d:n.json))),u.onreadystatechange=function(){4===u.readyState&&setTimeout(e,0)},u.onload=e,u.onerror=t,u.onprogress=function(){},u.onabort=function(){s=!0},u.ontimeout=t,u.open(c,l,!p,n.username,n.password),p||(u.withCredentials=!!n.withCredentials),!p&&0<n.timeout&&(o=setTimeout(function(){if(!s){s=!0,u.abort("timeout");var e=new Error("XMLHttpRequest timeout");e.code="ETIMEDOUT",t(e)}},n.timeout)),u.setRequestHeader)for(i in h)h.hasOwnProperty(i)&&u.setRequestHeader(i,h[i]);else if(n.headers&&!function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}(n.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in n&&(u.responseType=n.responseType),"beforeSend"in n&&"function"==typeof n.beforeSend&&n.beforeSend(u),u.send(d||null),u}di.XMLHttpRequest=ri.XMLHttpRequest||function(){},di.XDomainRequest="withCredentials"in new di.XMLHttpRequest?di.XMLHttpRequest:ri.XDomainRequest,function(e,t){for(var i=0;i<e.length;i++)t(e[i])}(["get","put","post","patch","head","delete"],function(n){di["delete"===n?"del":n]=function(e,t,i){return(t=ci(e,t,i)).method=n.toUpperCase(),hi(t)}}),ui.default=li;function pi(e,t){var i=new h.WebVTT.Parser(h,h.vttjs,h.WebVTT.StringDecoder()),n=[];i.oncue=function(e){t.addCue(e)},i.onparsingerror=function(e){n.push(e)},i.onflush=function(){t.trigger({type:"loadeddata",target:t})},i.parse(e),0<n.length&&(h.console&&h.console.groupCollapsed&&h.console.groupCollapsed("Text Track parsing errors for "+t.src),n.forEach(function(e){return g.error(e)}),h.console&&h.console.groupEnd&&h.console.groupEnd()),i.flush()}function fi(e,n){var t={uri:e},i=Gt(e);i&&(t.cors=i);var r="use-credentials"===n.tech_.crossOrigin();r&&(t.withCredentials=r),ui(t,$e(this,function(e,t,i){if(e)return g.error(e,t);n.loaded_=!0,"function"!=typeof h.WebVTT?n.tech_&&n.tech_.any(["vttjsloaded","vttjserror"],function(e){if("vttjserror"!==e.type)return pi(i,n);g.error("vttjs failed to load, stopping trying to process "+n.src)}):pi(i,n)}))}var mi=function(l){function e(e){var t;if(void 0===e&&(e={}),!e.tech)throw new Error("A tech was not provided.");var i=gt(e,{kind:ei[e.kind]||"subtitles",language:e.language||e.srclang||""}),n=ti[i.mode]||"disabled",r=i.default;"metadata"!==i.kind&&"chapters"!==i.kind||(n="hidden"),(t=l.call(this,i)||this).tech_=i.tech,t.cues_=[],t.activeCues_=[],t.preload_=!1!==t.tech_.preloadTextTracks;var a=new $t(t.cues_),s=new $t(t.activeCues_),o=!1,u=$e(St(t),function(){this.tech_.isReady_&&!this.tech_.isDisposed()&&(this.activeCues=this.activeCues,o&&(this.trigger("cuechange"),o=!1))});return t.tech_.one("dispose",function(){t.tech_.off("timeupdate",u)}),"disabled"!==n&&t.tech_.on("timeupdate",u),Object.defineProperties(St(t),{default:{get:function(){return r},set:function(){}},mode:{get:function(){return n},set:function(e){ti[e]&&n!==e&&(n=e,this.preload_||"disabled"===n||0!==this.cues.length||fi(this.src,this),this.tech_.off("timeupdate",u),"disabled"!==n&&this.tech_.on("timeupdate",u),this.trigger("modechange"))}},cues:{get:function(){return this.loaded_?a:null},set:function(){}},activeCues:{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return s;for(var e=this.tech_.currentTime(),t=[],i=0,n=this.cues.length;i<n;i++){var r=this.cues[i];r.startTime<=e&&r.endTime>=e?t.push(r):r.startTime===r.endTime&&r.startTime<=e&&r.startTime+.5>=e&&t.push(r)}if(o=!1,t.length!==this.activeCues_.length)o=!0;else for(var a=0;a<t.length;a++)-1===this.activeCues_.indexOf(t[a])&&(o=!0);return this.activeCues_=t,s.setCues_(this.activeCues_),s},set:function(){}}}),i.src?(t.src=i.src,t.preload_||(t.loaded_=!0),(t.preload_||"subtitles"!==i.kind&&"captions"!==i.kind)&&fi(t.src,St(t))):t.loaded_=!0,t}kt(e,l);var t=e.prototype;return t.addCue=function(e){var t=e;if(h.vttjs&&!(e instanceof h.vttjs.VTTCue)){for(var i in t=new h.vttjs.VTTCue(e.startTime,e.endTime,e.text),e)i in t||(t[i]=e[i]);t.id=e.id,t.originalCue_=e}for(var n=this.tech_.textTracks(),r=0;r<n.length;r++)n[r]!==this&&n[r].removeCue(t);this.cues_.push(t),this.cues.setCues_(this.cues_)},t.removeCue=function(e){for(var t=this.cues_.length;t--;){var i=this.cues_[t];if(i===e||i.originalCue_&&i.originalCue_===e){this.cues_.splice(t,1),this.cues.setCues_(this.cues_);break}}},e}(ii);mi.prototype.allowedEvents_={cuechange:"cuechange"};var gi=function(r){function e(e){var t;void 0===e&&(e={});var i=gt(e,{kind:Zt[e.kind]||""});t=r.call(this,i)||this;var n=!1;return Object.defineProperty(St(t),"enabled",{get:function(){return n},set:function(e){"boolean"==typeof e&&e!==n&&(n=e,this.trigger("enabledchange"))}}),i.enabled&&(t.enabled=i.enabled),t.loaded_=!0,t}return kt(e,r),e}(ii),vi=function(r){function e(e){var t;void 0===e&&(e={});var i=gt(e,{kind:Jt[e.kind]||""});t=r.call(this,i)||this;var n=!1;return Object.defineProperty(St(t),"selected",{get:function(){return n},set:function(e){"boolean"==typeof e&&e!==n&&(n=e,this.trigger("selectedchange"))}}),i.selected&&(t.selected=i.selected),t}return kt(e,r),e}(ii),yi=function(r){function e(e){var t,i;void 0===e&&(e={}),t=r.call(this)||this;var n=new mi(e);return t.kind=n.kind,t.src=n.src,t.srclang=n.language,t.label=n.label,t.default=n.default,Object.defineProperties(St(t),{readyState:{get:function(){return i}},track:{get:function(){return n}}}),i=0,n.addEventListener("loadeddata",function(){i=2,t.trigger({type:"load",target:St(t)})}),t}return kt(e,r),e}(Ze);yi.prototype.allowedEvents_={load:"load"},yi.NONE=0,yi.LOADING=1,yi.LOADED=2,yi.ERROR=3;var _i={audio:{ListClass:Xt,TrackClass:gi,capitalName:"Audio"},video:{ListClass:Kt,TrackClass:vi,capitalName:"Video"},text:{ListClass:Qt,TrackClass:mi,capitalName:"Text"}};Object.keys(_i).forEach(function(e){_i[e].getterName=e+"Tracks",_i[e].privateName=e+"Tracks_"});var bi={remoteText:{ListClass:Qt,TrackClass:mi,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:Yt,TrackClass:yi,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},Ti=y({},_i,bi);bi.names=Object.keys(bi),_i.names=Object.keys(_i),Ti.names=[].concat(bi.names).concat(_i.names);var Si=Object.create||function(e){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return ki.prototype=e,new ki};function ki(){}function wi(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}function Ei(e){function t(e,t,i,n){return 3600*(0|e)+60*(0|t)+(0|i)+(0|n)/1e3}var i=e.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);return i?i[3]?t(i[1],i[2],i[3].replace(":",""),i[4]):59<i[1]?t(i[1],i[2],0,i[4]):t(0,i[1],i[2],i[4]):null}function Ci(){this.values=Si(null)}function Ii(e,t,i,n){var r=n?e.split(n):[e];for(var a in r)if("string"==typeof r[a]){var s=r[a].split(i);if(2===s.length)t(s[0],s[1])}}function xi(t,e,s){var i=t;function n(){var e=Ei(t);if(null===e)throw new wi(wi.Errors.BadTimeStamp,"Malformed timestamp: "+i);return t=t.replace(/^[^\sa-zA-Z-]+/,""),e}function r(){t=t.replace(/^\s+/,"")}if(r(),e.startTime=n(),r(),"--\x3e"!==t.substr(0,3))throw new wi(wi.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+i);t=t.substr(3),r(),e.endTime=n(),r(),function(e,t){var a=new Ci;Ii(e,function(e,t){switch(e){case"region":for(var i=s.length-1;0<=i;i--)if(s[i].id===t){a.set(e,s[i].region);break}break;case"vertical":a.alt(e,t,["rl","lr"]);break;case"line":var n=t.split(","),r=n[0];a.integer(e,r),a.percent(e,r)&&a.set("snapToLines",!1),a.alt(e,r,["auto"]),2===n.length&&a.alt("lineAlign",n[1],["start","center","end"]);break;case"position":n=t.split(","),a.percent(e,n[0]),2===n.length&&a.alt("positionAlign",n[1],["start","center","end"]);break;case"size":a.percent(e,t);break;case"align":a.alt(e,t,["start","center","end","left","right"])}},/:/,/\s/),t.region=a.get("region",null),t.vertical=a.get("vertical","");try{t.line=a.get("line","auto")}catch(e){}t.lineAlign=a.get("lineAlign","start"),t.snapToLines=a.get("snapToLines",!0),t.size=a.get("size",100);try{t.align=a.get("align","center")}catch(e){t.align=a.get("align","middle")}try{t.position=a.get("position","auto")}catch(e){t.position=a.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},t.align)}t.positionAlign=a.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},t.align)}(t,e)}((wi.prototype=Si(Error.prototype)).constructor=wi).Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},Ci.prototype={set:function(e,t){this.get(e)||""===t||(this.values[e]=t)},get:function(e,t,i){return i?this.has(e)?this.values[e]:t[i]:this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,i){for(var n=0;n<i.length;++n)if(t===i[n]){this.set(e,t);break}},integer:function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},percent:function(e,t){return!!(t.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&0<=(t=parseFloat(t))&&t<=100)&&(this.set(e,t),!0)}};var Ai=p.createElement("textarea"),Pi={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},Li={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},Oi={v:"title",lang:"lang"},Di={rt:"ruby"};function Ri(a,i){function e(){if(!i)return null;var e,t=i.match(/^([^<]*)(<[^>]*>?)?/);return e=t[1]?t[1]:t[2],i=i.substr(e.length),e}function t(e,t){var i=Pi[e];if(!i)return null;var n=a.document.createElement(i),r=Oi[e];return r&&t&&(n[r]=t.trim()),n}for(var n,r,s,o,u=a.document.createElement("div"),l=u,c=[];null!==(n=e());)if("<"!==n[0])l.appendChild(a.document.createTextNode((r=n,Ai.innerHTML=r,r=Ai.textContent,Ai.textContent="",r)));else{if("/"===n[1]){c.length&&c[c.length-1]===n.substr(2).replace(">","")&&(c.pop(),l=l.parentNode);continue}var d,h=Ei(n.substr(1,n.length-2));if(h){d=a.document.createProcessingInstruction("timestamp",h),l.appendChild(d);continue}var p=n.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!p)continue;if(!(d=t(p[1],p[3])))continue;if(s=l,Di[(o=d).localName]&&Di[o.localName]!==s.localName)continue;if(p[2]){var f=p[2].split(".");f.forEach(function(e){var t=/^bg_/.test(e),i=t?e.slice(3):e;if(Li.hasOwnProperty(i)){var n=t?"background-color":"color",r=Li[i];d.style[n]=r}}),d.className=f.join(" ")}c.push(p[1]),l.appendChild(d),l=d}return u}var Mi=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function Ni(e){for(var t=0;t<Mi.length;t++){var i=Mi[t];if(e>=i[0]&&e<=i[1])return!0}return!1}function Ui(){}function Bi(e,t,i){Ui.call(this),this.cue=t,this.cueDiv=Ri(e,t.text);var n={color:"rgba(255, 255, 255, 1)",backgroundColor:"rgba(0, 0, 0, 0.8)",position:"relative",left:0,right:0,top:0,bottom:0,display:"inline",writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"};this.applyStyles(n,this.cueDiv),this.div=e.document.createElement("div"),n={direction:function(e){var t=[],i="";if(!e||!e.childNodes)return"ltr";function r(e,t){for(var i=t.childNodes.length-1;0<=i;i--)e.push(t.childNodes[i])}function a(e){if(!e||!e.length)return null;var t=e.pop(),i=t.textContent||t.innerText;if(i){var n=i.match(/^.*(\n|\r)/);return n?n[e.length=0]:i}return"ruby"===t.tagName?a(e):t.childNodes?(r(e,t),a(e)):void 0}for(r(t,e);i=a(t);)for(var n=0;n<i.length;n++)if(Ni(i.charCodeAt(n)))return"rtl";return"ltr"}(this.cueDiv),writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext",textAlign:"middle"===t.align?"center":t.align,font:i.font,whiteSpace:"pre-line",position:"absolute"},this.applyStyles(n),this.div.appendChild(this.cueDiv);var r=0;switch(t.positionAlign){case"start":r=t.position;break;case"center":r=t.position-t.size/2;break;case"end":r=t.position-t.size}""===t.vertical?this.applyStyles({left:this.formatStyle(r,"%"),width:this.formatStyle(t.size,"%")}):this.applyStyles({top:this.formatStyle(r,"%"),height:this.formatStyle(t.size,"%")}),this.move=function(e){this.applyStyles({top:this.formatStyle(e.top,"px"),bottom:this.formatStyle(e.bottom,"px"),left:this.formatStyle(e.left,"px"),right:this.formatStyle(e.right,"px"),height:this.formatStyle(e.height,"px"),width:this.formatStyle(e.width,"px")})}}function Fi(e){var t,i,n,r;if(e.div){i=e.div.offsetHeight,n=e.div.offsetWidth,r=e.div.offsetTop;var a=(a=e.div.childNodes)&&(a=a[0])&&a.getClientRects&&a.getClientRects();e=e.div.getBoundingClientRect(),t=a?Math.max(a[0]&&a[0].height||0,e.height/a.length):0}this.left=e.left,this.right=e.right,this.top=e.top||r,this.height=e.height||i,this.bottom=e.bottom||r+(e.height||i),this.width=e.width||n,this.lineHeight=void 0!==t?t:e.lineHeight}function ji(e,t,o,u){var i=new Fi(t),n=t.cue,r=function(e){if("number"==typeof e.line&&(e.snapToLines||0<=e.line&&e.line<=100))return e.line;if(!e.track||!e.track.textTrackList||!e.track.textTrackList.mediaElement)return-1;for(var t=e.track,i=t.textTrackList,n=0,r=0;r<i.length&&i[r]!==t;r++)"showing"===i[r].mode&&n++;return-1*++n}(n),a=[];if(n.snapToLines){var s;switch(n.vertical){case"":a=["+y","-y"],s="height";break;case"rl":a=["+x","-x"],s="width";break;case"lr":a=["-x","+x"],s="width"}var l=i.lineHeight,c=l*Math.round(r),d=o[s]+l,h=a[0];Math.abs(c)>d&&(c=c<0?-1:1,c*=Math.ceil(d/l)*l),r<0&&(c+=""===n.vertical?o.height:o.width,a=a.reverse()),i.move(h,c)}else{var p=i.lineHeight/o.height*100;switch(n.lineAlign){case"center":r-=p/2;break;case"end":r-=p}switch(n.vertical){case"":t.applyStyles({top:t.formatStyle(r,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(r,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(r,"%")})}a=["+y","-x","+x","-y"],i=new Fi(t)}var f=function(e,t){for(var i,n=new Fi(e),r=1,a=0;a<t.length;a++){for(;e.overlapsOppositeAxis(o,t[a])||e.within(o)&&e.overlapsAny(u);)e.move(t[a]);if(e.within(o))return e;var s=e.intersectPercentage(o);s<r&&(i=new Fi(e),r=s),e=new Fi(n)}return i||n}(i,a);t.move(f.toCSSCompatValues(o))}function Vi(){}Ui.prototype.applyStyles=function(e,t){for(var i in t=t||this.div,e)e.hasOwnProperty(i)&&(t.style[i]=e[i])},Ui.prototype.formatStyle=function(e,t){return 0===e?0:e+t},(Bi.prototype=Si(Ui.prototype)).constructor=Bi,Fi.prototype.move=function(e,t){switch(t=void 0!==t?t:this.lineHeight,e){case"+x":this.left+=t,this.right+=t;break;case"-x":this.left-=t,this.right-=t;break;case"+y":this.top+=t,this.bottom+=t;break;case"-y":this.top-=t,this.bottom-=t}},Fi.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top},Fi.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1},Fi.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},Fi.prototype.overlapsOppositeAxis=function(e,t){switch(t){case"+x":return this.left<e.left;case"-x":return this.right>e.right;case"+y":return this.top<e.top;case"-y":return this.bottom>e.bottom}},Fi.prototype.intersectPercentage=function(e){return Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left))*Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top))/(this.height*this.width)},Fi.prototype.toCSSCompatValues=function(e){return{top:this.top-e.top,bottom:e.bottom-this.bottom,left:this.left-e.left,right:e.right-this.right,height:this.height,width:this.width}},Fi.getSimpleBoxPosition=function(e){var t=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0,i=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0,n=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;return{left:(e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e).left,right:e.right,top:e.top||n,height:e.height||t,bottom:e.bottom||n+(e.height||t),width:e.width||i}},Vi.StringDecoder=function(){return{decode:function(e){if(!e)return"";if("string"!=typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},Vi.convertCueToDOMTree=function(e,t){return e&&t?Ri(e,t):null};Vi.processCues=function(n,r,e){if(!n||!r||!e)return null;for(;e.firstChild;)e.removeChild(e.firstChild);var a=n.document.createElement("div");if(a.style.position="absolute",a.style.left="0",a.style.right="0",a.style.top="0",a.style.bottom="0",a.style.margin="1.5%",e.appendChild(a),function(e){for(var t=0;t<e.length;t++)if(e[t].hasBeenReset||!e[t].displayState)return!0;return!1}(r)){var s=[],o=Fi.getSimpleBoxPosition(a),u={font:Math.round(.05*o.height*100)/100+"px sans-serif"};!function(){for(var e,t,i=0;i<r.length;i++)t=r[i],e=new Bi(n,t,u),a.appendChild(e.div),ji(0,e,o,s),t.displayState=e.div,s.push(Fi.getSimpleBoxPosition(e))}()}else for(var t=0;t<r.length;t++)a.appendChild(r[t].displayState)},(Vi.Parser=function(e,t,i){i||(i=t,t={}),t=t||{},this.window=e,this.vttjs=t,this.state="INITIAL",this.buffer="",this.decoder=i||new TextDecoder("utf8"),this.regionList=[]}).prototype={reportOrThrowError:function(e){if(!(e instanceof wi))throw e;this.onparsingerror&&this.onparsingerror(e)},parse:function(e){var n=this;function t(){for(var e=n.buffer,t=0;t<e.length&&"\r"!==e[t]&&"\n"!==e[t];)++t;var i=e.substr(0,t);return"\r"===e[t]&&++t,"\n"===e[t]&&++t,n.buffer=e.substr(t),i}function i(e){e.match(/X-TIMESTAMP-MAP/)?Ii(e,function(e,t){switch(e){case"X-TIMESTAMP-MAP":!function(e){var i=new Ci;Ii(e,function(e,t){switch(e){case"MPEGT":i.integer(e+"S",t);break;case"LOCA":i.set(e+"L",Ei(t))}},/[^\d]:/,/,/),n.ontimestampmap&&n.ontimestampmap({MPEGTS:i.get("MPEGTS"),LOCAL:i.get("LOCAL")})}(t)}},/=/):Ii(e,function(e,t){switch(e){case"Region":!function(e){var r=new Ci;if(Ii(e,function(e,t){switch(e){case"id":r.set(e,t);break;case"width":r.percent(e,t);break;case"lines":r.integer(e,t);break;case"regionanchor":case"viewportanchor":var i=t.split(",");if(2!==i.length)break;var n=new Ci;if(n.percent("x",i[0]),n.percent("y",i[1]),!n.has("x")||!n.has("y"))break;r.set(e+"X",n.get("x")),r.set(e+"Y",n.get("y"));break;case"scroll":r.alt(e,t,["up"])}},/=/,/\s/),r.has("id")){var t=new(n.vttjs.VTTRegion||n.window.VTTRegion);t.width=r.get("width",100),t.lines=r.get("lines",3),t.regionAnchorX=r.get("regionanchorX",0),t.regionAnchorY=r.get("regionanchorY",100),t.viewportAnchorX=r.get("viewportanchorX",0),t.viewportAnchorY=r.get("viewportanchorY",100),t.scroll=r.get("scroll",""),n.onregion&&n.onregion(t),n.regionList.push({id:r.get("id"),region:t})}}(t)}},/:/)}e&&(n.buffer+=n.decoder.decode(e,{stream:!0}));try{var r;if("INITIAL"===n.state){if(!/\r\n|\n/.test(n.buffer))return this;var a=(r=t()).match(/^WEBVTT([ \t].*)?$/);if(!a||!a[0])throw new wi(wi.Errors.BadSignature);n.state="HEADER"}for(var s=!1;n.buffer;){if(!/\r\n|\n/.test(n.buffer))return this;switch(s?s=!1:r=t(),n.state){case"HEADER":/:/.test(r)?i(r):r||(n.state="ID");continue;case"NOTE":r||(n.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(r)){n.state="NOTE";break}if(!r)continue;n.cue=new(n.vttjs.VTTCue||n.window.VTTCue)(0,0,"");try{n.cue.align="center"}catch(e){n.cue.align="middle"}if(n.state="CUE",-1===r.indexOf("--\x3e")){n.cue.id=r;continue}case"CUE":try{xi(r,n.cue,n.regionList)}catch(e){n.reportOrThrowError(e),n.cue=null,n.state="BADCUE";continue}n.state="CUETEXT";continue;case"CUETEXT":var o=-1!==r.indexOf("--\x3e");if(!r||o&&(s=!0)){n.oncue&&n.oncue(n.cue),n.cue=null,n.state="ID";continue}n.cue.text&&(n.cue.text+="\n"),n.cue.text+=r.replace(/\u2028/g,"\n").replace(/u2029/g,"\n");continue;case"BADCUE":r||(n.state="ID");continue}}}catch(e){n.reportOrThrowError(e),"CUETEXT"===n.state&&n.cue&&n.oncue&&n.oncue(n.cue),n.cue=null,n.state="INITIAL"===n.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var t=this;try{if(t.buffer+=t.decoder.decode(),!t.cue&&"HEADER"!==t.state||(t.buffer+="\n\n",t.parse()),"INITIAL"===t.state)throw new wi(wi.Errors.BadSignature)}catch(e){t.reportOrThrowError(e)}return t.onflush&&t.onflush(),this}};var qi=Vi,Hi={"":1,lr:1,rl:1},Wi={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};function zi(e){return"string"==typeof e&&(!!Wi[e.toLowerCase()]&&e.toLowerCase())}function Gi(e,t,i){this.hasBeenReset=!1;var n="",r=!1,a=e,s=t,o=i,u=null,l="",c=!0,d="auto",h="start",p="auto",f="auto",m=100,g="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return n},set:function(e){n=""+e}},pauseOnExit:{enumerable:!0,get:function(){return r},set:function(e){r=!!e}},startTime:{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e)throw new TypeError("Start time must be set to a number.");a=e,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e)throw new TypeError("End time must be set to a number.");s=e,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return o},set:function(e){o=""+e,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return u},set:function(e){u=e,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return l},set:function(e){var t=function(e){return"string"==typeof e&&(!!Hi[e.toLowerCase()]&&e.toLowerCase())}(e);if(!1===t)throw new SyntaxError("Vertical: an invalid or illegal direction string was specified.");l=t,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return c},set:function(e){c=!!e,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return d},set:function(e){if("number"!=typeof e&&"auto"!==e)throw new SyntaxError("Line: an invalid number or illegal string was specified.");d=e,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return h},set:function(e){var t=zi(e);t&&(h=t,this.hasBeenReset=!0)}},position:{enumerable:!0,get:function(){return p},set:function(e){if(e<0||100<e)throw new Error("Position must be between 0 and 100.");p=e,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return f},set:function(e){var t=zi(e);t&&(f=t,this.hasBeenReset=!0)}},size:{enumerable:!0,get:function(){return m},set:function(e){if(e<0||100<e)throw new Error("Size must be between 0 and 100.");m=e,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return g},set:function(e){var t=zi(e);if(!t)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");g=t,this.hasBeenReset=!0}}}),this.displayState=void 0}Gi.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)};var Xi=Gi,Ki={"":!0,up:!0};function Qi(e){return"number"==typeof e&&0<=e&&e<=100}function Yi(){var t=100,i=3,n=0,r=100,a=0,s=100,o="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return t},set:function(e){if(!Qi(e))throw new Error("Width must be between 0 and 100.");t=e}},lines:{enumerable:!0,get:function(){return i},set:function(e){if("number"!=typeof e)throw new TypeError("Lines must be set to a number.");i=e}},regionAnchorY:{enumerable:!0,get:function(){return r},set:function(e){if(!Qi(e))throw new Error("RegionAnchorX must be between 0 and 100.");r=e}},regionAnchorX:{enumerable:!0,get:function(){return n},set:function(e){if(!Qi(e))throw new Error("RegionAnchorY must be between 0 and 100.");n=e}},viewportAnchorY:{enumerable:!0,get:function(){return s},set:function(e){if(!Qi(e))throw new Error("ViewportAnchorY must be between 0 and 100.");s=e}},viewportAnchorX:{enumerable:!0,get:function(){return a},set:function(e){if(!Qi(e))throw new Error("ViewportAnchorX must be between 0 and 100.");a=e}},scroll:{enumerable:!0,get:function(){return o},set:function(e){var t=function(e){return"string"==typeof e&&(!!Ki[e.toLowerCase()]&&e.toLowerCase())}(e);!1===t||(o=t)}}})}var $i=i(function(e){var t=e.exports={WebVTT:qi,VTTCue:Xi,VTTRegion:Yi};h.vttjs=t,h.WebVTT=t.WebVTT;var i=t.VTTCue,n=t.VTTRegion,r=h.VTTCue,a=h.VTTRegion;t.shim=function(){h.VTTCue=i,h.VTTRegion=n},t.restore=function(){h.VTTCue=r,h.VTTRegion=a},h.VTTCue||t.shim()});$i.WebVTT,$i.VTTCue,$i.VTTRegion;var Ji=function(t){function i(i,e){var n;return void 0===i&&(i={}),void 0===e&&(e=function(){}),i.reportTouchActivity=!1,(n=t.call(this,null,i,e)||this).hasStarted_=!1,n.on("playing",function(){this.hasStarted_=!0}),n.on("loadstart",function(){this.hasStarted_=!1}),Ti.names.forEach(function(e){var t=Ti[e];i&&i[t.getterName]&&(n[t.privateName]=i[t.getterName])}),n.featuresProgressEvents||n.manualProgressOn(),n.featuresTimeupdateEvents||n.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(function(e){!1===i["native"+e+"Tracks"]&&(n["featuresNative"+e+"Tracks"]=!1)}),!1===i.nativeCaptions||!1===i.nativeTextTracks?n.featuresNativeTextTracks=!1:!0!==i.nativeCaptions&&!0!==i.nativeTextTracks||(n.featuresNativeTextTracks=!0),n.featuresNativeTextTracks||n.emulateTextTracks(),n.preloadTextTracks=!1!==i.preloadTextTracks,n.autoRemoteTextTracks_=new Ti.text.ListClass,n.initTrackListeners(),i.nativeControlsForTouch||n.emitTapEvents(),n.constructor&&(n.name_=n.constructor.name||"Unknown Tech"),n}kt(i,t);var e=i.prototype;return e.triggerSourceset=function(e){var t=this;this.isReady_||this.one("ready",function(){return t.setTimeout(function(){return t.triggerSourceset(e)},1)}),this.trigger({src:e,type:"sourceset"})},e.manualProgressOn=function(){this.on("durationchange",this.onDurationChange),this.manualProgress=!0,this.one("ready",this.trackProgress)},e.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange)},e.trackProgress=function(e){this.stopTrackingProgress(),this.progressInterval=this.setInterval($e(this,function(){var e=this.bufferedPercent();this.bufferedPercent_!==e&&this.trigger("progress"),1===(this.bufferedPercent_=e)&&this.stopTrackingProgress()}),500)},e.onDurationChange=function(e){this.duration_=this.duration()},e.buffered=function(){return Ct(0,0)},e.bufferedPercent=function(){return It(this.buffered(),this.duration_)},e.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},e.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime),this.on("pause",this.stopTrackingCurrentTime)},e.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime),this.off("pause",this.stopTrackingCurrentTime)},e.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)},e.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},e.dispose=function(){this.clearTracks(_i.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),t.prototype.dispose.call(this)},e.clearTracks=function(e){var r=this;(e=[].concat(e)).forEach(function(e){for(var t=r[e+"Tracks"]()||[],i=t.length;i--;){var n=t[i];"text"===e&&r.removeRemoteTextTrack(n),t.removeTrack(n)}})},e.cleanupAutoTextTracks=function(){for(var e=this.autoRemoteTextTracks_||[],t=e.length;t--;){var i=e[t];this.removeRemoteTextTrack(i)}},e.reset=function(){},e.crossOrigin=function(){},e.setCrossOrigin=function(){},e.error=function(e){return void 0!==e&&(this.error_=new xt(e),this.trigger("error")),this.error_},e.played=function(){return this.hasStarted_?Ct(0,0):Ct()},e.play=function(){},e.setScrubbing=function(){},e.scrubbing=function(){},e.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},e.initTrackListeners=function(){var r=this;_i.names.forEach(function(e){function t(){r.trigger(e+"trackchange")}var i=_i[e],n=r[i.getterName]();n.addEventListener("removetrack",t),n.addEventListener("addtrack",t),r.on("dispose",function(){n.removeEventListener("removetrack",t),n.removeEventListener("addtrack",t)})})},e.addWebVttScript_=function(){var e=this;if(!h.WebVTT)if(p.body.contains(this.el())){if(!this.options_["vtt.js"]&&w($i)&&0<Object.keys($i).length)return void this.trigger("vttjsloaded");var t=p.createElement("script");t.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js",t.onload=function(){e.trigger("vttjsloaded")},t.onerror=function(){e.trigger("vttjserror")},this.on("dispose",function(){t.onload=null,t.onerror=null}),h.WebVTT=!0,this.el().parentNode.appendChild(t)}else this.ready(this.addWebVttScript_)},e.emulateTextTracks=function(){function t(e){return n.addTrack(e.track)}function i(e){return n.removeTrack(e.track)}var e=this,n=this.textTracks(),r=this.remoteTextTracks();r.on("addtrack",t),r.on("removetrack",i),this.addWebVttScript_();function a(){return e.trigger("texttrackchange")}function s(){a();for(var e=0;e<n.length;e++){var t=n[e];t.removeEventListener("cuechange",a),"showing"===t.mode&&t.addEventListener("cuechange",a)}}s(),n.addEventListener("change",s),n.addEventListener("addtrack",s),n.addEventListener("removetrack",s),this.on("dispose",function(){r.off("addtrack",t),r.off("removetrack",i),n.removeEventListener("change",s),n.removeEventListener("addtrack",s),n.removeEventListener("removetrack",s);for(var e=0;e<n.length;e++){n[e].removeEventListener("cuechange",a)}})},e.addTextTrack=function(e,t,i){if(!e)throw new Error("TextTrack kind is required but was not provided");return function(e,t,i,n,r){void 0===r&&(r={});var a=e.textTracks();r.kind=t,i&&(r.label=i),n&&(r.language=n),r.tech=e;var s=new Ti.text.TrackClass(r);return a.addTrack(s),s}(this,e,t,i)},e.createRemoteTextTrack=function(e){var t=gt(e,{tech:this});return new bi.remoteTextEl.TrackClass(t)},e.addRemoteTextTrack=function(e,t){var i=this;void 0===e&&(e={});var n=this.createRemoteTextTrack(e);return!0!==t&&!1!==t&&(g.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),t=!0),this.remoteTextTrackEls().addTrackElement_(n),this.remoteTextTracks().addTrack(n.track),!0!==t&&this.ready(function(){return i.autoRemoteTextTracks_.addTrack(n.track)}),n},e.removeRemoteTextTrack=function(e){var t=this.remoteTextTrackEls().getTrackElementByTrack_(e);this.remoteTextTrackEls().removeTrackElement_(t),this.remoteTextTracks().removeTrack(e),this.autoRemoteTextTracks_.removeTrack(e)},e.getVideoPlaybackQuality=function(){return{}},e.requestPictureInPicture=function(){var e=this.options_.Promise||h.Promise;if(e)return e.reject()},e.disablePictureInPicture=function(){return!0},e.setDisablePictureInPicture=function(){},e.setPoster=function(){},e.playsinline=function(){},e.setPlaysinline=function(){},e.overrideNativeAudioTracks=function(){},e.overrideNativeVideoTracks=function(){},e.canPlayType=function(){return""},i.canPlayType=function(){return""},i.canPlaySource=function(e,t){return i.canPlayType(e.type)},i.isTech=function(e){return e.prototype instanceof i||e instanceof i||e===i},i.registerTech=function(e,t){if(i.techs_||(i.techs_={}),!i.isTech(t))throw new Error("Tech "+e+" must be a Tech");if(!i.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!i.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return e=mt(e),i.techs_[e]=t,i.techs_[ft(e)]=t,"Tech"!==e&&i.defaultTechOrder_.push(e),t},i.getTech=function(e){if(e)return i.techs_&&i.techs_[e]?i.techs_[e]:(e=mt(e),h&&h.videojs&&h.videojs[e]?(g.warn("The "+e+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),h.videojs[e]):void 0)},i}(Tt);Ti.names.forEach(function(e){var t=Ti[e];Ji.prototype[t.getterName]=function(){return this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName]}}),Ji.prototype.featuresVolumeControl=!0,Ji.prototype.featuresMuteControl=!0,Ji.prototype.featuresFullscreenResize=!1,Ji.prototype.featuresPlaybackRate=!1,Ji.prototype.featuresProgressEvents=!1,Ji.prototype.featuresSourceset=!1,Ji.prototype.featuresTimeupdateEvents=!1,Ji.prototype.featuresNativeTextTracks=!1,Ji.withSourceHandlers=function(r){r.registerSourceHandler=function(e,t){var i=r.sourceHandlers;i=i||(r.sourceHandlers=[]),void 0===t&&(t=i.length),i.splice(t,0,e)},r.canPlayType=function(e){for(var t,i=r.sourceHandlers||[],n=0;n<i.length;n++)if(t=i[n].canPlayType(e))return t;return""},r.selectSourceHandler=function(e,t){for(var i=r.sourceHandlers||[],n=0;n<i.length;n++)if(i[n].canHandleSource(e,t))return i[n];return null},r.canPlaySource=function(e,t){var i=r.selectSourceHandler(e,t);return i?i.canHandleSource(e,t):""};["seekable","seeking","duration"].forEach(function(e){var t=this[e];"function"==typeof t&&(this[e]=function(){return this.sourceHandler_&&this.sourceHandler_[e]?this.sourceHandler_[e].apply(this.sourceHandler_,arguments):t.apply(this,arguments)})},r.prototype),r.prototype.setSource=function(e){var t=r.selectSourceHandler(e,this.options_);t||(r.nativeSourceHandler?t=r.nativeSourceHandler:g.error("No source handler found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler),t!==r.nativeSourceHandler&&(this.currentSource_=e),this.sourceHandler_=t.handleSource(e,this,this.options_),this.one("dispose",this.disposeSourceHandler)},r.prototype.disposeSourceHandler=function(){this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null),this.cleanupAutoTextTracks(),this.sourceHandler_&&(this.sourceHandler_.dispose&&this.sourceHandler_.dispose(),this.sourceHandler_=null)}},Tt.registerComponent("Tech",Ji),Ji.registerTech("Tech",Ji),Ji.defaultTechOrder_=[];var Zi={},en={},tn={};function nn(e,t,i){e.setTimeout(function(){return function i(n,e,r,a,s,o){void 0===n&&(n={});void 0===e&&(e=[]);void 0===s&&(s=[]);void 0===o&&(o=!1);var t=e,u=t[0],l=t.slice(1);if("string"==typeof u)i(n,Zi[u],r,a,s,o);else if(u){var c=ln(a,u);if(!c.setSource)return s.push(c),i(n,l,r,a,s,o);c.setSource(S({},n),function(e,t){if(e)return i(n,l,r,a,s,o);s.push(c),i(t,n.type===t.type?l:Zi[t.type],r,a,s,o)})}else l.length?i(n,l,r,a,s,o):o?r(n,s):i(n,Zi["*"],r,a,s,!0)}(t,Zi[t.type],i,e)},1)}function rn(e,t,i,n){void 0===n&&(n=null);var r="call"+mt(i),a=e.reduce(un(r),n),s=a===tn,o=s?null:t[i](a);return function(e,t,i,n){for(var r=e.length-1;0<=r;r--){var a=e[r];a[t]&&a[t](n,i)}}(e,i,o,s),o}var an={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1},sn={setCurrentTime:1,setMuted:1,setVolume:1},on={play:1,pause:1};function un(i){return function(e,t){return e===tn?tn:t[i]?t[i](e):e}}function ln(e,t){var i=en[e.id()],n=null;if(null==i)return n=t(e),en[e.id()]=[[t,n]],n;for(var r=0;r<i.length;r++){var a=i[r],s=a[0],o=a[1];s===t&&(n=o)}return null===n&&(n=t(e),i.push([t,n])),n}function cn(e){void 0===e&&(e="");var t=zt(e);return dn[t.toLowerCase()]||""}var dn={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",m4a:"audio/mp4",mp3:"audio/mpeg",aac:"audio/aac",caf:"audio/x-caf",flac:"audio/flac",oga:"audio/ogg",wav:"audio/wav",m3u8:"application/x-mpegURL",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",png:"image/png",svg:"image/svg+xml",webp:"image/webp"};function hn(e){if(!e.type){var t=cn(e.src);t&&(e.type=t)}return e}var pn=function(l){function e(e,t,i){var n,r=gt({createEl:!1},t);if(n=l.call(this,e,r,i)||this,t.playerOptions.sources&&0!==t.playerOptions.sources.length)e.src(t.playerOptions.sources);else for(var a=0,s=t.playerOptions.techOrder;a<s.length;a++){var o=mt(s[a]),u=Ji.getTech(o);if(o||(u=Tt.getComponent(o)),u&&u.isSupported()){e.loadTech_(o);break}}return n}return kt(e,l),e}(Tt);Tt.registerComponent("MediaLoader",pn);var fn=function(r){function e(e,t){var i;return(i=r.call(this,e,t)||this).emitTapEvents(),i.enable(),i}kt(e,r);var t=e.prototype;return t.createEl=function(e,t,i){void 0===e&&(e="div"),void 0===t&&(t={}),void 0===i&&(i={}),t=S({innerHTML:'<span aria-hidden="true" class="vjs-icon-placeholder"></span>',className:this.buildCSSClass(),tabIndex:0},t),"button"===e&&g.error("Creating a ClickableComponent with an HTML element of "+e+" is not supported; use a Button instead."),i=S({role:"button"},i),this.tabIndex_=t.tabIndex;var n=r.prototype.createEl.call(this,e,t,i);return this.createControlTextEl(n),n},t.dispose=function(){this.controlTextEl_=null,r.prototype.dispose.call(this)},t.createControlTextEl=function(e){return this.controlTextEl_=ne("span",{className:"vjs-control-text"},{"aria-live":"polite"}),e&&e.appendChild(this.controlTextEl_),this.controlText(this.controlText_,e),this.controlTextEl_},t.controlText=function(e,t){if(void 0===t&&(t=this.el()),void 0===e)return this.controlText_||"Need Text";var i=this.localize(e);this.controlText_=e,re(this.controlTextEl_,i),this.nonIconControl||t.setAttribute("title",i)},t.buildCSSClass=function(){return"vjs-control vjs-button "+r.prototype.buildCSSClass.call(this)},t.enable=function(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),"undefined"!=typeof this.tabIndex_&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick),this.on("keydown",this.handleKeyDown))},t.disable=function(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),"undefined"!=typeof this.tabIndex_&&this.el_.removeAttribute("tabIndex"),this.off("mouseover",this.handleMouseOver),this.off("mouseout",this.handleMouseOut),this.off(["tap","click"],this.handleClick),this.off("keydown",this.handleKeyDown)},t.handleLanguagechange=function(){this.controlText(this.controlText_)},t.handleClick=function(e){this.options_.clickHandler&&this.options_.clickHandler.call(this,arguments)},t.handleKeyDown=function(e){Nt.isEventKey(e,"Space")||Nt.isEventKey(e,"Enter")?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):r.prototype.handleKeyDown.call(this,e)},e}(Tt);Tt.registerComponent("ClickableComponent",fn);var mn=function(n){function e(e,t){var i;return(i=n.call(this,e,t)||this).update(),e.on("posterchange",$e(St(i),i.update)),i}kt(e,n);var t=e.prototype;return t.dispose=function(){this.player().off("posterchange",this.update),n.prototype.dispose.call(this)},t.createEl=function(){return ne("div",{className:"vjs-poster",tabIndex:-1})},t.update=function(e){var t=this.player().poster();this.setSrc(t),t?this.show():this.hide()},t.setSrc=function(e){var t="";e&&(t='url("'+e+'")'),this.el_.style.backgroundImage=t},t.handleClick=function(e){if(this.player_.controls()){var t=this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&0<this.player_.eme.sessions.length;!this.player_.tech(!0)||(q||F)&&t||this.player_.tech(!0).focus(),this.player_.paused()?Ot(this.player_.play()):this.player_.pause()}},e}(fn);Tt.registerComponent("PosterImage",mn);var gn="#222",vn={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function yn(e,t){var i;if(4===e.length)i=e[1]+e[1]+e[2]+e[2]+e[3]+e[3];else{if(7!==e.length)throw new Error("Invalid color code provided, "+e+"; must be formatted as e.g. #f0e or #f604e2.");i=e.slice(1)}return"rgba("+parseInt(i.slice(0,2),16)+","+parseInt(i.slice(2,4),16)+","+parseInt(i.slice(4,6),16)+","+t+")"}function _n(e,t,i){try{e.style[t]=i}catch(e){return}}var bn=function(a){function e(i,e,t){var n;n=a.call(this,i,e,t)||this;var r=$e(St(n),n.updateDisplay);return i.on("loadstart",$e(St(n),n.toggleDisplay)),i.on("texttrackchange",r),i.on("loadedmetadata",$e(St(n),n.preselectTrack)),i.ready($e(St(n),function(){if(i.tech_&&i.tech_.featuresNativeTextTracks)this.hide();else{i.on("fullscreenchange",r),i.on("playerresize",r),h.addEventListener("orientationchange",r),i.on("dispose",function(){return h.removeEventListener("orientationchange",r)});for(var e=this.options_.playerOptions.tracks||[],t=0;t<e.length;t++)this.player_.addRemoteTextTrack(e[t],!0);this.preselectTrack()}})),n}kt(e,a);var t=e.prototype;return t.preselectTrack=function(){for(var e,t,i,n={captions:1,subtitles:1},r=this.player_.textTracks(),a=this.player_.cache_.selectedLanguage,s=0;s<r.length;s++){var o=r[s];a&&a.enabled&&a.language&&a.language===o.language&&o.kind in n?i=o.kind===a.kind?o:i||o:a&&!a.enabled?t=e=i=null:o.default&&("descriptions"!==o.kind||e?o.kind in n&&!t&&(t=o):e=o)}i?i.mode="showing":t?t.mode="showing":e&&(e.mode="showing")},t.toggleDisplay=function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},t.createEl=function(){return a.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{"aria-live":"off","aria-atomic":"true"})},t.clearDisplay=function(){"function"==typeof h.WebVTT&&h.WebVTT.processCues(h,[],this.el_)},t.updateDisplay=function(){var e=this.player_.textTracks(),t=this.options_.allowMultipleShowingTracks;if(this.clearDisplay(),t){for(var i=[],n=0;n<e.length;++n){var r=e[n];"showing"===r.mode&&i.push(r)}this.updateForTrack(i)}else{for(var a=null,s=null,o=e.length;o--;){var u=e[o];"showing"===u.mode&&("descriptions"===u.kind?a=u:s=u)}s?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(s)):a&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(a))}},t.updateDisplayState=function(e){for(var t=this.player_.textTrackSettings.getValues(),i=e.activeCues,n=i.length;n--;){var r=i[n];if(r){var a=r.displayState;if(t.color&&(a.firstChild.style.color=t.color),t.textOpacity&&_n(a.firstChild,"color",yn(t.color||"#fff",t.textOpacity)),t.backgroundColor&&(a.firstChild.style.backgroundColor=t.backgroundColor),t.backgroundOpacity&&_n(a.firstChild,"backgroundColor",yn(t.backgroundColor||"#000",t.backgroundOpacity)),t.windowColor&&(t.windowOpacity?_n(a,"backgroundColor",yn(t.windowColor,t.windowOpacity)):a.style.backgroundColor=t.windowColor),t.edgeStyle&&("dropshadow"===t.edgeStyle?a.firstChild.style.textShadow="2px 2px 3px #222, 2px 2px 4px #222, 2px 2px 5px "+gn:"raised"===t.edgeStyle?a.firstChild.style.textShadow="1px 1px #222, 2px 2px #222, 3px 3px "+gn:"depressed"===t.edgeStyle?a.firstChild.style.textShadow="1px 1px #ccc, 0 1px #ccc, -1px -1px #222, 0 -1px "+gn:"uniform"===t.edgeStyle&&(a.firstChild.style.textShadow="0 0 4px #222, 0 0 4px #222, 0 0 4px #222, 0 0 4px "+gn)),t.fontPercent&&1!==t.fontPercent){var s=h.parseFloat(a.style.fontSize);a.style.fontSize=s*t.fontPercent+"px",a.style.height="auto",a.style.top="auto"}t.fontFamily&&"default"!==t.fontFamily&&("small-caps"===t.fontFamily?a.firstChild.style.fontVariant="small-caps":a.firstChild.style.fontFamily=vn[t.fontFamily])}}},t.updateForTrack=function(e){if(Array.isArray(e)||(e=[e]),"function"==typeof h.WebVTT&&!e.every(function(e){return!e.activeCues})){for(var t=[],i=0;i<e.length;++i)for(var n=e[i],r=0;r<n.activeCues.length;++r)t.push(n.activeCues[r]);h.WebVTT.processCues(h,t,this.el_);for(var a=0;a<e.length;++a){for(var s=e[a],o=0;o<s.activeCues.length;++o){var u=s.activeCues[o].displayState;oe(u,"vjs-text-track-cue"),oe(u,"vjs-text-track-cue-"+(s.language?s.language:a))}this.player_.textTrackSettings&&this.updateDisplayState(s)}}},e}(Tt);Tt.registerComponent("TextTrackDisplay",bn);var Tn=function(r){function e(){return r.apply(this,arguments)||this}return kt(e,r),e.prototype.createEl=function(){var e=this.player_.isAudio(),t=this.localize(e?"Audio Player":"Video Player"),i=ne("span",{className:"vjs-control-text",innerHTML:this.localize("{1} is loading.",[t])}),n=r.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"});return n.appendChild(i),n},e}(Tt);Tt.registerComponent("LoadingSpinner",Tn);var Sn=function(t){function e(){return t.apply(this,arguments)||this}kt(e,t);var i=e.prototype;return i.createEl=function(e,t,i){void 0===t&&(t={}),void 0===i&&(i={}),t=S({innerHTML:'<span aria-hidden="true" class="vjs-icon-placeholder"></span>',className:this.buildCSSClass()},t),i=S({type:"button"},i);var n=Tt.prototype.createEl.call(this,"button",t,i);return this.createControlTextEl(n),n},i.addChild=function(e,t){void 0===t&&(t={});var i=this.constructor.name;return g.warn("Adding an actionable (user controllable) child to a Button ("+i+") is not supported; use a ClickableComponent instead."),Tt.prototype.addChild.call(this,e,t)},i.enable=function(){t.prototype.enable.call(this),this.el_.removeAttribute("disabled")},i.disable=function(){t.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},i.handleKeyDown=function(e){Nt.isEventKey(e,"Space")||Nt.isEventKey(e,"Enter")?e.stopPropagation():t.prototype.handleKeyDown.call(this,e)},e}(fn);Tt.registerComponent("Button",Sn);var kn=function(n){function e(e,t){var i;return(i=n.call(this,e,t)||this).mouseused_=!1,i.on("mousedown",i.handleMouseDown),i}kt(e,n);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-big-play-button"},t.handleClick=function(e){var t=this.player_.play();if(this.mouseused_&&e.clientX&&e.clientY){var i=this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&0<this.player_.eme.sessions.length;return Ot(t),void(!this.player_.tech(!0)||(q||F)&&i||this.player_.tech(!0).focus())}var n=this.player_.getChild("controlBar"),r=n&&n.getChild("playToggle");if(r){var a=function(){return r.focus()};Lt(t)?t.then(a,function(){}):this.setTimeout(a,1)}else this.player_.tech(!0).focus()},t.handleKeyDown=function(e){this.mouseused_=!1,n.prototype.handleKeyDown.call(this,e)},t.handleMouseDown=function(e){this.mouseused_=!0},e}(Sn);kn.prototype.controlText_="Play Video",Tt.registerComponent("BigPlayButton",kn);var wn=function(n){function e(e,t){var i;return(i=n.call(this,e,t)||this).controlText(t&&t.controlText||i.localize("Close")),i}kt(e,n);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-close-button "+n.prototype.buildCSSClass.call(this)},t.handleClick=function(e){this.trigger({type:"close",bubbles:!1})},t.handleKeyDown=function(e){Nt.isEventKey(e,"Esc")?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):n.prototype.handleKeyDown.call(this,e)},e}(Sn);Tt.registerComponent("CloseButton",wn);var En=function(n){function e(e,t){var i;return void 0===t&&(t={}),i=n.call(this,e,t)||this,t.replay=void 0===t.replay||t.replay,i.on(e,"play",i.handlePlay),i.on(e,"pause",i.handlePause),t.replay&&i.on(e,"ended",i.handleEnded),i}kt(e,n);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-play-control "+n.prototype.buildCSSClass.call(this)},t.handleClick=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},t.handleSeeked=function(e){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(e):this.handlePlay(e)},t.handlePlay=function(e){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},t.handlePause=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},t.handleEnded=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.controlText("Replay"),this.one(this.player_,"seeked",this.handleSeeked)},e}(Sn);En.prototype.controlText_="Play",Tt.registerComponent("PlayToggle",En);function Cn(e,t){e=e<0?0:e;var i=Math.floor(e%60),n=Math.floor(e/60%60),r=Math.floor(e/3600),a=Math.floor(t/60%60),s=Math.floor(t/3600);return!isNaN(e)&&e!==1/0||(r=n=i="-"),(r=0<r||0<s?r+":":"")+(n=((r||10<=a)&&n<10?"0"+n:n)+":")+(i=i<10?"0"+i:i)}var In=Cn;function xn(e,t){return void 0===t&&(t=e),In(e,t)}var An=function(n){function e(e,t){var i;return(i=n.call(this,e,t)||this).on(e,["timeupdate","ended"],i.updateContent),i.updateTextNode_(),i}kt(e,n);var t=e.prototype;return t.createEl=function(){var e=this.buildCSSClass(),t=n.prototype.createEl.call(this,"div",{className:e+" vjs-time-control vjs-control",innerHTML:'<span class="vjs-control-text" role="presentation">'+this.localize(this.labelText_)+" </span>"});return this.contentEl_=ne("span",{className:e+"-display"},{"aria-live":"off",role:"presentation"}),t.appendChild(this.contentEl_),t},t.dispose=function(){this.contentEl_=null,this.textNode_=null,n.prototype.dispose.call(this)},t.updateTextNode_=function(e){var t=this;void 0===e&&(e=0),e=xn(e),this.formattedTime_!==e&&(this.formattedTime_=e,this.requestNamedAnimationFrame("TimeDisplay#updateTextNode_",function(){if(t.contentEl_){var e=t.textNode_;e&&t.contentEl_.firstChild!==e&&(e=null,g.warn("TimeDisplay#updateTextnode_: Prevented replacement of text node element since it was no longer a child of this node. Appending a new node instead.")),t.textNode_=p.createTextNode(t.formattedTime_),t.textNode_&&(e?t.contentEl_.replaceChild(t.textNode_,e):t.contentEl_.appendChild(t.textNode_))}}))},t.updateContent=function(e){},e}(Tt);An.prototype.labelText_="Time",An.prototype.controlText_="Time",Tt.registerComponent("TimeDisplay",An);var Pn=function(e){function t(){return e.apply(this,arguments)||this}kt(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-current-time"},i.updateContent=function(e){var t;t=this.player_.ended()?this.player_.duration():this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),this.updateTextNode_(t)},t}(An);Pn.prototype.labelText_="Current Time",Pn.prototype.controlText_="Current Time",Tt.registerComponent("CurrentTimeDisplay",Pn);var Ln=function(n){function e(e,t){var i;return(i=n.call(this,e,t)||this).on(e,"durationchange",i.updateContent),i.on(e,"loadstart",i.updateContent),i.on(e,"loadedmetadata",i.updateContent),i}kt(e,n);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-duration"},t.updateContent=function(e){var t=this.player_.duration();this.updateTextNode_(t)},e}(An);Ln.prototype.labelText_="Duration",Ln.prototype.controlText_="Duration",Tt.registerComponent("DurationDisplay",Ln);var On=function(e){function t(){return e.apply(this,arguments)||this}return kt(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"<div><span>/</span></div>"},{"aria-hidden":!0})},t}(Tt);Tt.registerComponent("TimeDivider",On);var Dn=function(n){function e(e,t){var i;return(i=n.call(this,e,t)||this).on(e,"durationchange",i.updateContent),i}kt(e,n);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-remaining-time"},t.createEl=function(){var e=n.prototype.createEl.call(this);return e.insertBefore(ne("span",{},{"aria-hidden":!0},"-"),this.contentEl_),e},t.updateContent=function(e){var t;"number"==typeof this.player_.duration()&&(t=this.player_.ended()?0:this.player_.remainingTimeDisplay?this.player_.remainingTimeDisplay():this.player_.remainingTime(),this.updateTextNode_(t))},e}(An);Dn.prototype.labelText_="Remaining Time",Dn.prototype.controlText_="Remaining Time",Tt.registerComponent("RemainingTimeDisplay",Dn);var Rn=function(n){function e(e,t){var i;return(i=n.call(this,e,t)||this).updateShowing(),i.on(i.player(),"durationchange",i.updateShowing),i}kt(e,n);var t=e.prototype;return t.createEl=function(){var e=n.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=ne("div",{className:"vjs-live-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Stream Type")+" </span>"+this.localize("LIVE")},{"aria-live":"off"}),e.appendChild(this.contentEl_),e},t.dispose=function(){this.contentEl_=null,n.prototype.dispose.call(this)},t.updateShowing=function(e){this.player().duration()===1/0?this.show():this.hide()},e}(Tt);Tt.registerComponent("LiveDisplay",Rn);var Mn=function(n){function e(e,t){var i;return(i=n.call(this,e,t)||this).updateLiveEdgeStatus(),i.player_.liveTracker&&i.on(i.player_.liveTracker,"liveedgechange",i.updateLiveEdgeStatus),i}kt(e,n);var t=e.prototype;return t.createEl=function(){var e=n.prototype.createEl.call(this,"button",{className:"vjs-seek-to-live-control vjs-control"});return this.textEl_=ne("span",{className:"vjs-seek-to-live-text",innerHTML:this.localize("LIVE")},{"aria-hidden":"true"}),e.appendChild(this.textEl_),e},t.updateLiveEdgeStatus=function(){!this.player_.liveTracker||this.player_.liveTracker.atLiveEdge()?(this.setAttribute("aria-disabled",!0),this.addClass("vjs-at-live-edge"),this.controlText("Seek to live, currently playing live")):(this.setAttribute("aria-disabled",!1),this.removeClass("vjs-at-live-edge"),this.controlText("Seek to live, currently behind live"))},t.handleClick=function(){this.player_.liveTracker.seekToLiveEdge()},t.dispose=function(){this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatus),this.textEl_=null,n.prototype.dispose.call(this)},e}(Sn);Mn.prototype.controlText_="Seek to live, currently playing live",Tt.registerComponent("SeekToLive",Mn);function Nn(e,t,i){return e=Number(e),Math.min(i,Math.max(t,isNaN(e)?t:e))}var Un=function(n){function e(e,t){var i;return(i=n.call(this,e,t)||this).bar=i.getChild(i.options_.barName),i.vertical(!!i.options_.vertical),i.enable(),i}kt(e,n);var t=e.prototype;return t.enabled=function(){return this.enabled_},t.enable=function(){this.enabled()||(this.on("mousedown",this.handleMouseDown),this.on("touchstart",this.handleMouseDown),this.on("keydown",this.handleKeyDown),this.on("click",this.handleClick),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)},t.disable=function(){if(this.enabled()){var e=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown),this.off("touchstart",this.handleMouseDown),this.off("keydown",this.handleKeyDown),this.off("click",this.handleClick),this.off(this.player_,"controlsvisible",this.update),this.off(e,"mousemove",this.handleMouseMove),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchmove",this.handleMouseMove),this.off(e,"touchend",this.handleMouseUp),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}},t.createEl=function(e,t,i){return void 0===t&&(t={}),void 0===i&&(i={}),t.className=t.className+" vjs-slider",t=S({tabIndex:0},t),i=S({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},i),n.prototype.createEl.call(this,e,t,i)},t.handleMouseDown=function(e){var t=this.bar.el_.ownerDocument;"mousedown"===e.type&&e.preventDefault(),"touchstart"!==e.type||j||e.preventDefault(),me(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(t,"mousemove",this.handleMouseMove),this.on(t,"mouseup",this.handleMouseUp),this.on(t,"touchmove",this.handleMouseMove),this.on(t,"touchend",this.handleMouseUp),this.handleMouseMove(e)},t.handleMouseMove=function(e){},t.handleMouseUp=function(){var e=this.bar.el_.ownerDocument;ge(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(e,"mousemove",this.handleMouseMove),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchmove",this.handleMouseMove),this.off(e,"touchend",this.handleMouseUp),this.update()},t.update=function(){var t=this;if(this.el_&&this.bar){var i=this.getProgress();return i===this.progress_||(this.progress_=i,this.requestNamedAnimationFrame("Slider#update",function(){var e=t.vertical()?"height":"width";t.bar.el().style[e]=(100*i).toFixed(2)+"%"})),i}},t.getProgress=function(){return Number(Nn(this.getPercent(),0,1).toFixed(4))},t.calculateDistance=function(e){var t=_e(this.el_,e);return this.vertical()?t.y:t.x},t.handleKeyDown=function(e){Nt.isEventKey(e,"Left")||Nt.isEventKey(e,"Down")?(e.preventDefault(),e.stopPropagation(),this.stepBack()):Nt.isEventKey(e,"Right")||Nt.isEventKey(e,"Up")?(e.preventDefault(),e.stopPropagation(),this.stepForward()):n.prototype.handleKeyDown.call(this,e)},t.handleClick=function(e){e.stopPropagation(),e.preventDefault()},t.vertical=function(e){if(void 0===e)return this.vertical_||!1;this.vertical_=!!e,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")},e}(Tt);Tt.registerComponent("Slider",Un);function Bn(e,t){return Nn(e/t*100,0,100).toFixed(2)+"%"}var Fn=function(r){function e(e,t){var i;return(i=r.call(this,e,t)||this).partEls_=[],i.on(e,"progress",i.update),i}kt(e,r);var t=e.prototype;return t.createEl=function(){var e=r.prototype.createEl.call(this,"div",{className:"vjs-load-progress"}),t=ne("span",{className:"vjs-control-text"}),i=ne("span",{textContent:this.localize("Loaded")}),n=p.createTextNode(": ");return this.percentageEl_=ne("span",{className:"vjs-control-text-loaded-percentage",textContent:"0%"}),e.appendChild(t),t.appendChild(i),t.appendChild(n),t.appendChild(this.percentageEl_),e},t.dispose=function(){this.partEls_=null,this.percentageEl_=null,r.prototype.dispose.call(this)},t.update=function(e){var d=this;this.requestNamedAnimationFrame("LoadProgressBar#update",function(){var e=d.player_.liveTracker,t=d.player_.buffered(),i=e&&e.isLive()?e.seekableEnd():d.player_.duration(),n=d.player_.bufferedEnd(),r=d.partEls_,a=Bn(n,i);d.percent_!==a&&(d.el_.style.width=a,re(d.percentageEl_,a),d.percent_=a);for(var s=0;s<t.length;s++){var o=t.start(s),u=t.end(s),l=r[s];l||(l=d.el_.appendChild(ne()),r[s]=l),l.dataset.start===o&&l.dataset.end===u||(l.dataset.start=o,l.dataset.end=u,l.style.left=Bn(o,n),l.style.width=Bn(u-o,n))}for(var c=r.length;c>t.length;c--)d.el_.removeChild(r[c-1]);r.length=t.length})},e}(Tt);Tt.registerComponent("LoadProgressBar",Fn);var jn=function(n){function e(e,t){var i;return(i=n.call(this,e,t)||this).update=Je($e(St(i),i.update),30),i}kt(e,n);var t=e.prototype;return t.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})},t.update=function(e,t,i){var n=ye(this.el_),r=ve(this.player_.el()),a=e.width*t;if(r&&n){var s=e.left-r.left+a,o=e.width-a+(r.right-e.right),u=n.width/2;s<u?u+=u-s:o<u&&(u=o),u<0?u=0:u>n.width&&(u=n.width),u=Math.round(u),this.el_.style.right="-"+u+"px",this.write(i)}},t.write=function(e){re(this.el_,e)},t.updateTime=function(r,a,s,o){var u=this;this.requestNamedAnimationFrame("TimeTooltip#updateTime",function(){var e,t=u.player_.duration();if(u.player_.liveTracker&&u.player_.liveTracker.isLive()){var i=u.player_.liveTracker.liveWindow(),n=i-a*i;e=(n<1?"":"-")+xn(n,i)}else e=xn(s,t);u.update(r,a,e),o&&o()})},e}(Tt);Tt.registerComponent("TimeTooltip",jn);var Vn=function(n){function e(e,t){var i;return(i=n.call(this,e,t)||this).update=Je($e(St(i),i.update),30),i}kt(e,n);var t=e.prototype;return t.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})},t.update=function(e,t){var i=this.getChild("timeTooltip");if(i){var n=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();i.updateTime(e,t,n)}},e}(Tt);Vn.prototype.options_={children:[]},K||M||Vn.prototype.options_.children.push("timeTooltip"),Tt.registerComponent("PlayProgressBar",Vn);var qn=function(n){function e(e,t){var i;return(i=n.call(this,e,t)||this).update=Je($e(St(i),i.update),30),i}kt(e,n);var t=e.prototype;return t.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},t.update=function(e,t){var i=this,n=t*this.player_.duration();this.getChild("timeTooltip").updateTime(e,t,n,function(){i.el_.style.left=e.width*t+"px"})},e}(Tt);qn.prototype.options_={children:["timeTooltip"]},Tt.registerComponent("MouseTimeDisplay",qn);var Hn=function(a){function e(e,t){var i;return(i=a.call(this,e,t)||this).setEventHandlers_(),i}kt(e,a);var t=e.prototype;return t.setEventHandlers_=function(){this.update_=$e(this,this.update),this.update=Je(this.update_,30),this.on(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.on(this.player_.liveTracker,"liveedgechange",this.update),this.updateInterval=null,this.on(this.player_,["playing"],this.enableInterval_),this.on(this.player_,["ended","pause","waiting"],this.disableInterval_),"hidden"in p&&"visibilityState"in p&&this.on(p,"visibilitychange",this.toggleVisibility_)},t.toggleVisibility_=function(e){"hidden"===p.visibilityState?(this.cancelNamedAnimationFrame("SeekBar#update"),this.cancelNamedAnimationFrame("Slider#update"),this.disableInterval_(e)):(this.player_.ended()||this.player_.paused()||this.enableInterval_(),this.update())},t.enableInterval_=function(){this.updateInterval||(this.updateInterval=this.setInterval(this.update,30))},t.disableInterval_=function(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&e&&"ended"!==e.type||this.updateInterval&&(this.clearInterval(this.updateInterval),this.updateInterval=null)},t.createEl=function(){return a.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},t.update=function(e){var n=this;if("hidden"!==p.visibilityState){var r=a.prototype.update.call(this);return this.requestNamedAnimationFrame("SeekBar#update",function(){var e=n.player_.ended()?n.player_.duration():n.getCurrentTime_(),t=n.player_.liveTracker,i=n.player_.duration();t&&t.isLive()&&(i=n.player_.liveTracker.liveCurrentTime()),n.percent_!==r&&(n.el_.setAttribute("aria-valuenow",(100*r).toFixed(2)),n.percent_=r),n.currentTime_===e&&n.duration_===i||(n.el_.setAttribute("aria-valuetext",n.localize("progress bar timing: currentTime={1} duration={2}",[xn(e,i),xn(i,i)],"{1} of {2}")),n.currentTime_=e,n.duration_=i),n.bar&&n.bar.update(ve(n.el()),n.getProgress())}),r}},t.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},t.getPercent=function(){var e,t=this.getCurrentTime_(),i=this.player_.liveTracker;return i&&i.isLive()?(e=(t-i.seekableStart())/i.liveWindow(),i.atLiveEdge()&&(e=1)):e=t/this.player_.duration(),e},t.handleMouseDown=function(e){Ee(e)&&(e.stopPropagation(),this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),a.prototype.handleMouseDown.call(this,e))},t.handleMouseMove=function(e){if(Ee(e)){var t,i=this.calculateDistance(e),n=this.player_.liveTracker;if(n&&n.isLive()){if(.99<=i)return void n.seekToLiveEdge();var r=n.seekableStart(),a=n.liveCurrentTime();if(a<=(t=r+i*n.liveWindow())&&(t=a),t<=r&&(t=r+.1),t===1/0)return}else(t=i*this.player_.duration())===this.player_.duration()&&(t-=.1);this.player_.currentTime(t)}},t.enable=function(){a.prototype.enable.call(this);var e=this.getChild("mouseTimeDisplay");e&&e.show()},t.disable=function(){a.prototype.disable.call(this);var e=this.getChild("mouseTimeDisplay");e&&e.hide()},t.handleMouseUp=function(e){a.prototype.handleMouseUp.call(this,e),e&&e.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying?Ot(this.player_.play()):this.update_()},t.stepForward=function(){this.player_.currentTime(this.player_.currentTime()+5)},t.stepBack=function(){this.player_.currentTime(this.player_.currentTime()-5)},t.handleAction=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},t.handleKeyDown=function(e){if(Nt.isEventKey(e,"Space")||Nt.isEventKey(e,"Enter"))e.preventDefault(),e.stopPropagation(),this.handleAction(e);else if(Nt.isEventKey(e,"Home"))e.preventDefault(),e.stopPropagation(),this.player_.currentTime(0);else if(Nt.isEventKey(e,"End"))e.preventDefault(),e.stopPropagation(),this.player_.currentTime(this.player_.duration());else if(/^[0-9]$/.test(Nt(e))){e.preventDefault(),e.stopPropagation();var t=10*(Nt.codes[Nt(e)]-Nt.codes[0])/100;this.player_.currentTime(this.player_.duration()*t)}else Nt.isEventKey(e,"PgDn")?(e.preventDefault(),e.stopPropagation(),this.player_.currentTime(this.player_.currentTime()-60)):Nt.isEventKey(e,"PgUp")?(e.preventDefault(),e.stopPropagation(),this.player_.currentTime(this.player_.currentTime()+60)):a.prototype.handleKeyDown.call(this,e)},t.dispose=function(){this.disableInterval_(),this.off(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.on(this.player_.liveTracker,"liveedgechange",this.update),this.off(this.player_,["playing"],this.enableInterval_),this.off(this.player_,["ended","pause","waiting"],this.disableInterval_),"hidden"in p&&"visibilityState"in p&&this.off(p,"visibilitychange",this.toggleVisibility_),a.prototype.dispose.call(this)},e}(Un);Hn.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},K||M||Hn.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),Tt.registerComponent("SeekBar",Hn);var Wn=function(n){function e(e,t){var i;return(i=n.call(this,e,t)||this).handleMouseMove=Je($e(St(i),i.handleMouseMove),30),i.throttledHandleMouseSeek=Je($e(St(i),i.handleMouseSeek),30),i.enable(),i}kt(e,n);var t=e.prototype;return t.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},t.handleMouseMove=function(e){var t=this.getChild("seekBar");if(t){var i=t.getChild("playProgressBar"),n=t.getChild("mouseTimeDisplay");if(i||n){var r=t.el(),a=ye(r),s=_e(r,e).x;s=Nn(s,0,1),n&&n.update(a,s),i&&i.update(a,t.getProgress())}}},t.handleMouseSeek=function(e){var t=this.getChild("seekBar");t&&t.handleMouseMove(e)},t.enabled=function(){return this.enabled_},t.disable=function(){if(this.children().forEach(function(e){return e.disable&&e.disable()}),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDown),this.off(this.el_,"mousemove",this.handleMouseMove),this.removeListenersAddedOnMousedownAndTouchstart(),this.addClass("disabled"),this.enabled_=!1,this.player_.scrubbing())){var e=this.getChild("seekBar");this.player_.scrubbing(!1),e.videoWasPlaying&&Ot(this.player_.play())}},t.enable=function(){this.children().forEach(function(e){return e.enable&&e.enable()}),this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDown),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)},t.removeListenersAddedOnMousedownAndTouchstart=function(){var e=this.el_.ownerDocument;this.off(e,"mousemove",this.throttledHandleMouseSeek),this.off(e,"touchmove",this.throttledHandleMouseSeek),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchend",this.handleMouseUp)},t.handleMouseDown=function(e){var t=this.el_.ownerDocument,i=this.getChild("seekBar");i&&i.handleMouseDown(e),this.on(t,"mousemove",this.throttledHandleMouseSeek),this.on(t,"touchmove",this.throttledHandleMouseSeek),this.on(t,"mouseup",this.handleMouseUp),this.on(t,"touchend",this.handleMouseUp)},t.handleMouseUp=function(e){var t=this.getChild("seekBar");t&&t.handleMouseUp(e),this.removeListenersAddedOnMousedownAndTouchstart()},e}(Tt);Wn.prototype.options_={children:["seekBar"]},Tt.registerComponent("ProgressControl",Wn);var zn=function(n){function e(e,t){var i;return(i=n.call(this,e,t)||this).on(e,["enterpictureinpicture","leavepictureinpicture"],i.handlePictureInPictureChange),i.on(e,["disablepictureinpicturechanged","loadedmetadata"],i.handlePictureInPictureEnabledChange),i.disable(),i}kt(e,n);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-picture-in-picture-control "+n.prototype.buildCSSClass.call(this)},t.handlePictureInPictureEnabledChange=function(){p.pictureInPictureEnabled&&!1===this.player_.disablePictureInPicture()?this.enable():this.disable()},t.handlePictureInPictureChange=function(e){this.player_.isInPictureInPicture()?this.controlText("Exit Picture-in-Picture"):this.controlText("Picture-in-Picture"),this.handlePictureInPictureEnabledChange()},t.handleClick=function(e){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture():this.player_.requestPictureInPicture()},e}(Sn);zn.prototype.controlText_="Picture-in-Picture",Tt.registerComponent("PictureInPictureToggle",zn);var Gn=function(n){function e(e,t){var i;return(i=n.call(this,e,t)||this).on(e,"fullscreenchange",i.handleFullscreenChange),!1===p[e.fsApi_.fullscreenEnabled]&&i.disable(),i}kt(e,n);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-fullscreen-control "+n.prototype.buildCSSClass.call(this)},t.handleFullscreenChange=function(e){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},t.handleClick=function(e){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},e}(Sn);Gn.prototype.controlText_="Fullscreen",Tt.registerComponent("FullscreenToggle",Gn);var Xn=function(e){function t(){return e.apply(this,arguments)||this}return kt(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:'<span class="vjs-control-text"></span>'})},t}(Tt);Tt.registerComponent("VolumeLevel",Xn);var Kn=function(n){function e(e,t){var i;return(i=n.call(this,e,t)||this).on("slideractive",i.updateLastVolume_),i.on(e,"volumechange",i.updateARIAAttributes),e.ready(function(){return i.updateARIAAttributes()}),i}kt(e,n);var t=e.prototype;return t.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})},t.handleMouseDown=function(e){Ee(e)&&n.prototype.handleMouseDown.call(this,e)},t.handleMouseMove=function(e){Ee(e)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(e)))},t.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},t.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},t.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},t.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},t.updateARIAAttributes=function(e){var t=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")},t.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())},t.updateLastVolume_=function(){var e=this,t=this.player_.volume();this.one("sliderinactive",function(){0===e.player_.volume()&&e.player_.lastVolume_(t)})},e}(Un);Kn.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},Kn.prototype.playerEvent="volumechange",Tt.registerComponent("VolumeBar",Kn);var Qn=function(n){function e(e,t){var i;return void 0===t&&(t={}),t.vertical=t.vertical||!1,"undefined"!=typeof t.volumeBar&&!w(t.volumeBar)||(t.volumeBar=t.volumeBar||{},t.volumeBar.vertical=t.vertical),i=n.call(this,e,t)||this,function(e,t){t.tech_&&!t.tech_.featuresVolumeControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",function(){t.tech_.featuresVolumeControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")})}(St(i),e),i.throttledHandleMouseMove=Je($e(St(i),i.handleMouseMove),30),i.on("mousedown",i.handleMouseDown),i.on("touchstart",i.handleMouseDown),i.on(i.volumeBar,["focus","slideractive"],function(){i.volumeBar.addClass("vjs-slider-active"),i.addClass("vjs-slider-active"),i.trigger("slideractive")}),i.on(i.volumeBar,["blur","sliderinactive"],function(){i.volumeBar.removeClass("vjs-slider-active"),i.removeClass("vjs-slider-active"),i.trigger("sliderinactive")}),i}kt(e,n);var t=e.prototype;return t.createEl=function(){var e="vjs-volume-horizontal";return this.options_.vertical&&(e="vjs-volume-vertical"),n.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+e})},t.handleMouseDown=function(e){var t=this.el_.ownerDocument;this.on(t,"mousemove",this.throttledHandleMouseMove),this.on(t,"touchmove",this.throttledHandleMouseMove),this.on(t,"mouseup",this.handleMouseUp),this.on(t,"touchend",this.handleMouseUp)},t.handleMouseUp=function(e){var t=this.el_.ownerDocument;this.off(t,"mousemove",this.throttledHandleMouseMove),this.off(t,"touchmove",this.throttledHandleMouseMove),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchend",this.handleMouseUp)},t.handleMouseMove=function(e){this.volumeBar.handleMouseMove(e)},e}(Tt);Qn.prototype.options_={children:["volumeBar"]},Tt.registerComponent("VolumeControl",Qn);var Yn=function(n){function e(e,t){var i;return i=n.call(this,e,t)||this,function(e,t){t.tech_&&!t.tech_.featuresMuteControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",function(){t.tech_.featuresMuteControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")})}(St(i),e),i.on(e,["loadstart","volumechange"],i.update),i}kt(e,n);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-mute-control "+n.prototype.buildCSSClass.call(this)},t.handleClick=function(e){var t=this.player_.volume(),i=this.player_.lastVolume_();if(0===t){var n=i<.1?.1:i;this.player_.volume(n),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())},t.update=function(e){this.updateIcon_(),this.updateControlText_()},t.updateIcon_=function(){var e=this.player_.volume(),t=3;K&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),0===e||this.player_.muted()?t=0:e<.33?t=1:e<.67&&(t=2);for(var i=0;i<4;i++)ue(this.el_,"vjs-vol-"+i);oe(this.el_,"vjs-vol-"+t)},t.updateControlText_=function(){var e=this.player_.muted()||0===this.player_.volume()?"Unmute":"Mute";this.controlText()!==e&&this.controlText(e)},e}(Sn);Yn.prototype.controlText_="Mute",Tt.registerComponent("MuteToggle",Yn);var $n=function(n){function e(e,t){var i;return void 0===t&&(t={}),"undefined"!=typeof t.inline?t.inline=t.inline:t.inline=!0,"undefined"!=typeof t.volumeControl&&!w(t.volumeControl)||(t.volumeControl=t.volumeControl||{},t.volumeControl.vertical=!t.inline),(i=n.call(this,e,t)||this).on(e,["loadstart"],i.volumePanelState_),i.on(i.muteToggle,"keyup",i.handleKeyPress),i.on(i.volumeControl,"keyup",i.handleVolumeControlKeyUp),i.on("keydown",i.handleKeyPress),i.on("mouseover",i.handleMouseOver),i.on("mouseout",i.handleMouseOut),i.on(i.volumeControl,["slideractive"],i.sliderActive_),i.on(i.volumeControl,["sliderinactive"],i.sliderInactive_),i}kt(e,n);var t=e.prototype;return t.sliderActive_=function(){this.addClass("vjs-slider-active")},t.sliderInactive_=function(){this.removeClass("vjs-slider-active")},t.volumePanelState_=function(){this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-mute-toggle-only")},t.createEl=function(){var e="vjs-volume-panel-horizontal";return this.options_.inline||(e="vjs-volume-panel-vertical"),n.prototype.createEl.call(this,"div",{className:"vjs-volume-panel vjs-control "+e})},t.dispose=function(){this.handleMouseOut(),n.prototype.dispose.call(this)},t.handleVolumeControlKeyUp=function(e){Nt.isEventKey(e,"Esc")&&this.muteToggle.focus()},t.handleMouseOver=function(e){this.addClass("vjs-hover"),Ge(p,"keyup",$e(this,this.handleKeyPress))},t.handleMouseOut=function(e){this.removeClass("vjs-hover"),Xe(p,"keyup",$e(this,this.handleKeyPress))},t.handleKeyPress=function(e){Nt.isEventKey(e,"Esc")&&this.handleMouseOut()},e}(Tt);$n.prototype.options_={children:["muteToggle","volumeControl"]},Tt.registerComponent("VolumePanel",$n);var Jn=function(n){function e(e,t){var i;return i=n.call(this,e,t)||this,t&&(i.menuButton_=t.menuButton),i.focusedChild_=-1,i.on("keydown",i.handleKeyDown),i.boundHandleBlur_=$e(St(i),i.handleBlur),i.boundHandleTapClick_=$e(St(i),i.handleTapClick),i}kt(e,n);var t=e.prototype;return t.addEventListenerForItem=function(e){e instanceof Tt&&(this.on(e,"blur",this.boundHandleBlur_),this.on(e,["tap","click"],this.boundHandleTapClick_))},t.removeEventListenerForItem=function(e){e instanceof Tt&&(this.off(e,"blur",this.boundHandleBlur_),this.off(e,["tap","click"],this.boundHandleTapClick_))},t.removeChild=function(e){"string"==typeof e&&(e=this.getChild(e)),this.removeEventListenerForItem(e),n.prototype.removeChild.call(this,e)},t.addItem=function(e){var t=this.addChild(e);t&&this.addEventListenerForItem(t)},t.createEl=function(){var e=this.options_.contentElType||"ul";this.contentEl_=ne(e,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var t=n.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return t.appendChild(this.contentEl_),Ge(t,"click",function(e){e.preventDefault(),e.stopImmediatePropagation()}),t},t.dispose=function(){this.contentEl_=null,this.boundHandleBlur_=null,this.boundHandleTapClick_=null,n.prototype.dispose.call(this)},t.handleBlur=function(e){var t=e.relatedTarget||p.activeElement;if(!this.children().some(function(e){return e.el()===t})){var i=this.menuButton_;i&&i.buttonPressed_&&t!==i.el().firstChild&&i.unpressButton()}},t.handleTapClick=function(t){if(this.menuButton_){this.menuButton_.unpressButton();var e=this.children();if(!Array.isArray(e))return;var i=e.filter(function(e){return e.el()===t.target})[0];if(!i)return;"CaptionSettingsMenuItem"!==i.name()&&this.menuButton_.focus()}},t.handleKeyDown=function(e){Nt.isEventKey(e,"Left")||Nt.isEventKey(e,"Down")?(e.preventDefault(),e.stopPropagation(),this.stepForward()):(Nt.isEventKey(e,"Right")||Nt.isEventKey(e,"Up"))&&(e.preventDefault(),e.stopPropagation(),this.stepBack())},t.stepForward=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_+1),this.focus(e)},t.stepBack=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_-1),this.focus(e)},t.focus=function(e){void 0===e&&(e=0);var t=this.children().slice();t.length&&t[0].hasClass("vjs-menu-title")&&t.shift(),0<t.length&&(e<0?e=0:e>=t.length&&(e=t.length-1),t[this.focusedChild_=e].el_.focus())},e}(Tt);Tt.registerComponent("Menu",Jn);var Zn=function(r){function e(e,t){var i;void 0===t&&(t={}),(i=r.call(this,e,t)||this).menuButton_=new Sn(e,t),i.menuButton_.controlText(i.controlText_),i.menuButton_.el_.setAttribute("aria-haspopup","true");var n=Sn.prototype.buildCSSClass();return i.menuButton_.el_.className=i.buildCSSClass()+" "+n,i.menuButton_.removeClass("vjs-control"),i.addChild(i.menuButton_),i.update(),i.enabled_=!0,i.on(i.menuButton_,"tap",i.handleClick),i.on(i.menuButton_,"click",i.handleClick),i.on(i.menuButton_,"keydown",i.handleKeyDown),i.on(i.menuButton_,"mouseenter",function(){i.addClass("vjs-hover"),i.menu.show(),Ge(p,"keyup",$e(St(i),i.handleMenuKeyUp))}),i.on("mouseleave",i.handleMouseLeave),i.on("keydown",i.handleSubmenuKeyDown),i}kt(e,r);var t=e.prototype;return t.update=function(){var e=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=e,this.addChild(e),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?this.hide():this.show()},t.createMenu=function(){var e=new Jn(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var t=ne("li",{className:"vjs-menu-title",innerHTML:mt(this.options_.title),tabIndex:-1});this.hideThreshold_+=1;var i=new Tt(this.player_,{el:t});e.addItem(i)}if(this.items=this.createItems(),this.items)for(var n=0;n<this.items.length;n++)e.addItem(this.items[n]);return e},t.createItems=function(){},t.createEl=function(){return r.prototype.createEl.call(this,"div",{className:this.buildWrapperCSSClass()},{})},t.buildWrapperCSSClass=function(){var e="vjs-menu-button";return!0===this.options_.inline?e+="-inline":e+="-popup","vjs-menu-button "+e+" "+Sn.prototype.buildCSSClass()+" "+r.prototype.buildCSSClass.call(this)},t.buildCSSClass=function(){var e="vjs-menu-button";return!0===this.options_.inline?e+="-inline":e+="-popup","vjs-menu-button "+e+" "+r.prototype.buildCSSClass.call(this)},t.controlText=function(e,t){return void 0===t&&(t=this.menuButton_.el()),this.menuButton_.controlText(e,t)},t.dispose=function(){this.handleMouseLeave(),r.prototype.dispose.call(this)},t.handleClick=function(e){this.buttonPressed_?this.unpressButton():this.pressButton()},t.handleMouseLeave=function(e){this.removeClass("vjs-hover"),Xe(p,"keyup",$e(this,this.handleMenuKeyUp))},t.focus=function(){this.menuButton_.focus()},t.blur=function(){this.menuButton_.blur()},t.handleKeyDown=function(e){Nt.isEventKey(e,"Esc")||Nt.isEventKey(e,"Tab")?(this.buttonPressed_&&this.unpressButton(),Nt.isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus())):(Nt.isEventKey(e,"Up")||Nt.isEventKey(e,"Down"))&&(this.buttonPressed_||(e.preventDefault(),this.pressButton()))},t.handleMenuKeyUp=function(e){(Nt.isEventKey(e,"Esc")||Nt.isEventKey(e,"Tab"))&&this.removeClass("vjs-hover")},t.handleSubmenuKeyPress=function(e){this.handleSubmenuKeyDown(e)},t.handleSubmenuKeyDown=function(e){(Nt.isEventKey(e,"Esc")||Nt.isEventKey(e,"Tab"))&&(this.buttonPressed_&&this.unpressButton(),Nt.isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus()))},t.pressButton=function(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.show(),this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),K&&te())return;this.menu.focus()}},t.unpressButton=function(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menu.hide(),this.menuButton_.el_.setAttribute("aria-expanded","false"))},t.disable=function(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()},t.enable=function(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()},e}(Tt);Tt.registerComponent("MenuButton",Zn);var er=function(a){function e(e,t){var i,n=t.tracks;if((i=a.call(this,e,t)||this).items.length<=1&&i.hide(),!n)return St(i);var r=$e(St(i),i.update);return n.addEventListener("removetrack",r),n.addEventListener("addtrack",r),n.addEventListener("labelchange",r),i.player_.on("ready",r),i.player_.on("dispose",function(){n.removeEventListener("removetrack",r),n.removeEventListener("addtrack",r),n.removeEventListener("labelchange",r)}),i}return kt(e,a),e}(Zn);Tt.registerComponent("TrackButton",er);var tr=["Tab","Esc","Up","Down","Right","Left"],ir=function(n){function e(e,t){var i;return(i=n.call(this,e,t)||this).selectable=t.selectable,i.isSelected_=t.selected||!1,i.multiSelectable=t.multiSelectable,i.selected(i.isSelected_),i.selectable?i.multiSelectable?i.el_.setAttribute("role","menuitemcheckbox"):i.el_.setAttribute("role","menuitemradio"):i.el_.setAttribute("role","menuitem"),i}kt(e,n);var t=e.prototype;return t.createEl=function(e,t,i){return this.nonIconControl=!0,n.prototype.createEl.call(this,"li",S({className:"vjs-menu-item",innerHTML:'<span class="vjs-menu-item-text">'+this.localize(this.options_.label)+"</span>",tabIndex:-1},t),i)},t.handleKeyDown=function(t){tr.some(function(e){return Nt.isEventKey(t,e)})||n.prototype.handleKeyDown.call(this,t)},t.handleClick=function(e){this.selected(!0)},t.selected=function(e){this.selectable&&(e?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected"),this.isSelected_=!0):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText(""),this.isSelected_=!1))},e}(fn);Tt.registerComponent("MenuItem",ir);var nr=function(u){function e(e,t){var n,i=t.track,r=e.textTracks();t.label=i.label||i.language||"Unknown",t.selected="showing"===i.mode,(n=u.call(this,e,t)||this).track=i,n.kinds=(t.kinds||[t.kind||n.track.kind]).filter(Boolean);function a(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];n.handleTracksChange.apply(St(n),t)}function s(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];n.handleSelectedLanguageChange.apply(St(n),t)}var o;e.on(["loadstart","texttrackchange"],a),r.addEventListener("change",a),r.addEventListener("selectedlanguagechange",s),n.on("dispose",function(){e.off(["loadstart","texttrackchange"],a),r.removeEventListener("change",a),r.removeEventListener("selectedlanguagechange",s)}),void 0===r.onchange&&n.on(["tap","click"],function(){if("object"!=typeof h.Event)try{o=new h.Event("change")}catch(e){}o||(o=p.createEvent("Event")).initEvent("change",!0,!0),r.dispatchEvent(o)});return n.handleTracksChange(),n}kt(e,u);var t=e.prototype;return t.handleClick=function(e){var t=this.track,i=this.player_.textTracks();if(u.prototype.handleClick.call(this,e),i)for(var n=0;n<i.length;n++){var r=i[n];-1!==this.kinds.indexOf(r.kind)&&(r===t?"showing"!==r.mode&&(r.mode="showing"):"disabled"!==r.mode&&(r.mode="disabled"))}},t.handleTracksChange=function(e){var t="showing"===this.track.mode;t!==this.isSelected_&&this.selected(t)},t.handleSelectedLanguageChange=function(e){if("showing"===this.track.mode){var t=this.player_.cache_.selectedLanguage;if(t&&t.enabled&&t.language===this.track.language&&t.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}},t.dispose=function(){this.track=null,u.prototype.dispose.call(this)},e}(ir);Tt.registerComponent("TextTrackMenuItem",nr);var rr=function(i){function e(e,t){return t.track={player:e,kind:t.kind,kinds:t.kinds,default:!1,mode:"disabled"},t.kinds||(t.kinds=[t.kind]),t.label?t.track.label=t.label:t.track.label=t.kinds.join(" and ")+" off",t.selectable=!0,t.multiSelectable=!1,i.call(this,e,t)||this}kt(e,i);var t=e.prototype;return t.handleTracksChange=function(e){for(var t=this.player().textTracks(),i=!0,n=0,r=t.length;n<r;n++){var a=t[n];if(-1<this.options_.kinds.indexOf(a.kind)&&"showing"===a.mode){i=!1;break}}i!==this.isSelected_&&this.selected(i)},t.handleSelectedLanguageChange=function(e){for(var t=this.player().textTracks(),i=!0,n=0,r=t.length;n<r;n++){var a=t[n];if(-1<["captions","descriptions","subtitles"].indexOf(a.kind)&&"showing"===a.mode){i=!1;break}}i&&(this.player_.cache_.selectedLanguage={enabled:!1})},e}(nr);Tt.registerComponent("OffTextTrackMenuItem",rr);var ar=function(i){function e(e,t){return void 0===t&&(t={}),t.tracks=e.textTracks(),i.call(this,e,t)||this}return kt(e,i),e.prototype.createItems=function(e,t){var i;void 0===e&&(e=[]),void 0===t&&(t=nr),this.label_&&(i=this.label_+" off"),e.push(new rr(this.player_,{kinds:this.kinds_,kind:this.kind_,label:i})),this.hideThreshold_+=1;var n=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(var r=0;r<n.length;r++){var a=n[r];if(-1<this.kinds_.indexOf(a.kind)){var s=new t(this.player_,{track:a,kinds:this.kinds_,kind:this.kind_,selectable:!0,multiSelectable:!1});s.addClass("vjs-"+a.kind+"-menu-item"),e.push(s)}}return e},e}(er);Tt.registerComponent("TextTrackButton",ar);var sr=function(s){function e(e,t){var i,n=t.track,r=t.cue,a=e.currentTime();return t.selectable=!0,t.multiSelectable=!1,t.label=r.text,t.selected=r.startTime<=a&&a<r.endTime,(i=s.call(this,e,t)||this).track=n,i.cue=r,n.addEventListener("cuechange",$e(St(i),i.update)),i}kt(e,s);var t=e.prototype;return t.handleClick=function(e){s.prototype.handleClick.call(this),this.player_.currentTime(this.cue.startTime),this.update(this.cue.startTime)},t.update=function(e){var t=this.cue,i=this.player_.currentTime();this.selected(t.startTime<=i&&i<t.endTime)},e}(ir);Tt.registerComponent("ChaptersTrackMenuItem",sr);var or=function(n){function e(e,t,i){return n.call(this,e,t,i)||this}kt(e,n);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-chapters-button "+n.prototype.buildCSSClass.call(this)},t.buildWrapperCSSClass=function(){return"vjs-chapters-button "+n.prototype.buildWrapperCSSClass.call(this)},t.update=function(e){this.track_&&(!e||"addtrack"!==e.type&&"removetrack"!==e.type)||this.setTrack(this.findChaptersTrack()),n.prototype.update.call(this)},t.setTrack=function(e){if(this.track_!==e){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){var t=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);t&&t.removeEventListener("load",this.updateHandler_),this.track_=null}if(this.track_=e,this.track_){this.track_.mode="hidden";var i=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);i&&i.addEventListener("load",this.updateHandler_)}}},t.findChaptersTrack=function(){for(var e=this.player_.textTracks()||[],t=e.length-1;0<=t;t--){var i=e[t];if(i.kind===this.kind_)return i}},t.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize(mt(this.kind_))},t.createMenu=function(){return this.options_.title=this.getMenuCaption(),n.prototype.createMenu.call(this)},t.createItems=function(){var e=[];if(!this.track_)return e;var t=this.track_.cues;if(!t)return e;for(var i=0,n=t.length;i<n;i++){var r=t[i],a=new sr(this.player_,{track:this.track_,cue:r});e.push(a)}return e},e}(ar);or.prototype.kind_="chapters",or.prototype.controlText_="Chapters",Tt.registerComponent("ChaptersButton",or);var ur=function(s){function e(e,t,i){var n;n=s.call(this,e,t,i)||this;var r=e.textTracks(),a=$e(St(n),n.handleTracksChange);return r.addEventListener("change",a),n.on("dispose",function(){r.removeEventListener("change",a)}),n}kt(e,s);var t=e.prototype;return t.handleTracksChange=function(e){for(var t=this.player().textTracks(),i=!1,n=0,r=t.length;n<r;n++){var a=t[n];if(a.kind!==this.kind_&&"showing"===a.mode){i=!0;break}}i?this.disable():this.enable()},t.buildCSSClass=function(){return"vjs-descriptions-button "+s.prototype.buildCSSClass.call(this)},t.buildWrapperCSSClass=function(){return"vjs-descriptions-button "+s.prototype.buildWrapperCSSClass.call(this)},e}(ar);ur.prototype.kind_="descriptions",ur.prototype.controlText_="Descriptions",Tt.registerComponent("DescriptionsButton",ur);var lr=function(n){function e(e,t,i){return n.call(this,e,t,i)||this}kt(e,n);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-subtitles-button "+n.prototype.buildCSSClass.call(this)},t.buildWrapperCSSClass=function(){return"vjs-subtitles-button "+n.prototype.buildWrapperCSSClass.call(this)},e}(ar);lr.prototype.kind_="subtitles",lr.prototype.controlText_="Subtitles",Tt.registerComponent("SubtitlesButton",lr);var cr=function(n){function e(e,t){var i;return t.track={player:e,kind:t.kind,label:t.kind+" settings",selectable:!1,default:!1,mode:"disabled"},t.selectable=!1,t.name="CaptionSettingsMenuItem",(i=n.call(this,e,t)||this).addClass("vjs-texttrack-settings"),i.controlText(", opens "+t.kind+" settings dialog"),i}return kt(e,n),e.prototype.handleClick=function(e){this.player().getChild("textTrackSettings").open()},e}(nr);Tt.registerComponent("CaptionSettingsMenuItem",cr);var dr=function(n){function e(e,t,i){return n.call(this,e,t,i)||this}kt(e,n);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-captions-button "+n.prototype.buildCSSClass.call(this)},t.buildWrapperCSSClass=function(){return"vjs-captions-button "+n.prototype.buildWrapperCSSClass.call(this)},t.createItems=function(){var e=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(e.push(new cr(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),n.prototype.createItems.call(this,e)},e}(ar);dr.prototype.kind_="captions",dr.prototype.controlText_="Captions",Tt.registerComponent("CaptionsButton",dr);var hr=function(r){function e(){return r.apply(this,arguments)||this}return kt(e,r),e.prototype.createEl=function(e,t,i){var n='<span class="vjs-menu-item-text">'+this.localize(this.options_.label);return"captions"===this.options_.track.kind&&(n+='\n <span aria-hidden="true" class="vjs-icon-placeholder"></span>\n <span class="vjs-control-text"> '+this.localize("Captions")+"</span>\n "),n+="</span>",r.prototype.createEl.call(this,e,S({innerHTML:n},t),i)},e}(nr);Tt.registerComponent("SubsCapsMenuItem",hr);var pr=function(n){function e(e,t){var i;return void 0===t&&(t={}),(i=n.call(this,e,t)||this).label_="subtitles",-1<["en","en-us","en-ca","fr-ca"].indexOf(i.player_.language_)&&(i.label_="captions"),i.menuButton_.controlText(mt(i.label_)),i}kt(e,n);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-subs-caps-button "+n.prototype.buildCSSClass.call(this)},t.buildWrapperCSSClass=function(){return"vjs-subs-caps-button "+n.prototype.buildWrapperCSSClass.call(this)},t.createItems=function(){var e=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(e.push(new cr(this.player_,{kind:this.label_})),this.hideThreshold_+=1),e=n.prototype.createItems.call(this,e,hr)},e}(ar);pr.prototype.kinds_=["captions","subtitles"],pr.prototype.controlText_="Subtitles",Tt.registerComponent("SubsCapsButton",pr);var fr=function(s){function e(e,t){var n,i=t.track,r=e.audioTracks();t.label=i.label||i.language||"Unknown",t.selected=i.enabled,(n=s.call(this,e,t)||this).track=i,n.addClass("vjs-"+i.kind+"-menu-item");function a(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];n.handleTracksChange.apply(St(n),t)}return r.addEventListener("change",a),n.on("dispose",function(){r.removeEventListener("change",a)}),n}kt(e,s);var t=e.prototype;return t.createEl=function(e,t,i){var n='<span class="vjs-menu-item-text">'+this.localize(this.options_.label);return"main-desc"===this.options_.track.kind&&(n+='\n <span aria-hidden="true" class="vjs-icon-placeholder"></span>\n <span class="vjs-control-text"> '+this.localize("Descriptions")+"</span>\n "),n+="</span>",s.prototype.createEl.call(this,e,S({innerHTML:n},t),i)},t.handleClick=function(e){var t=this.player_.audioTracks();s.prototype.handleClick.call(this,e);for(var i=0;i<t.length;i++){var n=t[i];n.enabled=n===this.track}},t.handleTracksChange=function(e){this.selected(this.track.enabled)},e}(ir);Tt.registerComponent("AudioTrackMenuItem",fr);var mr=function(i){function e(e,t){return void 0===t&&(t={}),t.tracks=e.audioTracks(),i.call(this,e,t)||this}kt(e,i);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-audio-button "+i.prototype.buildCSSClass.call(this)},t.buildWrapperCSSClass=function(){return"vjs-audio-button "+i.prototype.buildWrapperCSSClass.call(this)},t.createItems=function(e){void 0===e&&(e=[]),this.hideThreshold_=1;for(var t=this.player_.audioTracks(),i=0;i<t.length;i++){var n=t[i];e.push(new fr(this.player_,{track:n,selectable:!0,multiSelectable:!1}))}return e},e}(er);mr.prototype.controlText_="Audio Track",Tt.registerComponent("AudioTrackButton",mr);var gr=function(a){function e(e,t){var i,n=t.rate,r=parseFloat(n,10);return t.label=n,t.selected=1===r,t.selectable=!0,t.multiSelectable=!1,(i=a.call(this,e,t)||this).label=n,i.rate=r,i.on(e,"ratechange",i.update),i}kt(e,a);var t=e.prototype;return t.handleClick=function(e){a.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},t.update=function(e){this.selected(this.player().playbackRate()===this.rate)},e}(ir);gr.prototype.contentElType="button",Tt.registerComponent("PlaybackRateMenuItem",gr);var vr=function(n){function e(e,t){var i;return(i=n.call(this,e,t)||this).updateVisibility(),i.updateLabel(),i.on(e,"loadstart",i.updateVisibility),i.on(e,"ratechange",i.updateLabel),i}kt(e,n);var t=e.prototype;return t.createEl=function(){var e=n.prototype.createEl.call(this);return this.labelEl_=ne("div",{className:"vjs-playback-rate-value",innerHTML:"1x"}),e.appendChild(this.labelEl_),e},t.dispose=function(){this.labelEl_=null,n.prototype.dispose.call(this)},t.buildCSSClass=function(){return"vjs-playback-rate "+n.prototype.buildCSSClass.call(this)},t.buildWrapperCSSClass=function(){return"vjs-playback-rate "+n.prototype.buildWrapperCSSClass.call(this)},t.createMenu=function(){var e=new Jn(this.player()),t=this.playbackRates();if(t)for(var i=t.length-1;0<=i;i--)e.addChild(new gr(this.player(),{rate:t[i]+"x"}));return e},t.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},t.handleClick=function(e){for(var t=this.player().playbackRate(),i=this.playbackRates(),n=i[0],r=0;r<i.length;r++)if(i[r]>t){n=i[r];break}this.player().playbackRate(n)},t.playbackRates=function(){return this.options_.playbackRates||this.options_.playerOptions&&this.options_.playerOptions.playbackRates},t.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&0<this.playbackRates().length},t.updateVisibility=function(e){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},t.updateLabel=function(e){this.playbackRateSupported()&&(this.labelEl_.innerHTML=this.player().playbackRate()+"x")},e}(Zn);vr.prototype.controlText_="Playback Rate",Tt.registerComponent("PlaybackRateMenuButton",vr);var yr=function(e){function t(){return e.apply(this,arguments)||this}kt(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-spacer "+e.prototype.buildCSSClass.call(this)},i.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},t}(Tt);Tt.registerComponent("Spacer",yr);var _r=function(t){function e(){return t.apply(this,arguments)||this}kt(e,t);var i=e.prototype;return i.buildCSSClass=function(){return"vjs-custom-control-spacer "+t.prototype.buildCSSClass.call(this)},i.createEl=function(){var e=t.prototype.createEl.call(this,{className:this.buildCSSClass()});return e.innerHTML=" ",e},e}(yr);Tt.registerComponent("CustomControlSpacer",_r);var br=function(e){function t(){return e.apply(this,arguments)||this}return kt(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"})},t}(Tt);br.prototype.options_={children:["playToggle","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","fullscreenToggle"]},"exitPictureInPicture"in p&&br.prototype.options_.children.splice(br.prototype.options_.children.length-1,0,"pictureInPictureToggle"),Tt.registerComponent("ControlBar",br);var Tr=function(n){function e(e,t){var i;return(i=n.call(this,e,t)||this).on(e,"error",i.open),i}kt(e,n);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-error-display "+n.prototype.buildCSSClass.call(this)},t.content=function(){var e=this.player().error();return e?this.localize(e.message):""},e}(Bt);Tr.prototype.options_=y({},Bt.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),Tt.registerComponent("ErrorDisplay",Tr);var Sr="vjs-text-track-settings",kr=["#000","Black"],wr=["#00F","Blue"],Er=["#0FF","Cyan"],Cr=["#0F0","Green"],Ir=["#F0F","Magenta"],xr=["#F00","Red"],Ar=["#FFF","White"],Pr=["#FF0","Yellow"],Lr=["1","Opaque"],Or=["0.5","Semi-Transparent"],Dr=["0","Transparent"],Rr={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[kr,Ar,xr,Cr,wr,Pr,Ir,Er]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[Lr,Or,Dr]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[Ar,kr,xr,Cr,wr,Pr,Ir,Er]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:function(e){return"1.00"===e?null:Number(e)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[Lr,Or]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Transparency",options:[Dr,Or,Lr]}};function Mr(e,t){if(t&&(e=t(e)),e&&"none"!==e)return e}Rr.windowColor.options=Rr.backgroundColor.options;var Nr=function(n){function e(e,t){var i;return t.temporary=!1,(i=n.call(this,e,t)||this).updateDisplay=$e(St(i),i.updateDisplay),i.fill(),i.hasBeenOpened_=i.hasBeenFilled_=!0,i.endDialog=ne("p",{className:"vjs-control-text",textContent:i.localize("End of dialog window.")}),i.el().appendChild(i.endDialog),i.setDefaults(),void 0===t.persistTextTrackSettings&&(i.options_.persistTextTrackSettings=i.options_.playerOptions.persistTextTrackSettings),i.on(i.$(".vjs-done-button"),"click",function(){i.saveSettings(),i.close()}),i.on(i.$(".vjs-default-button"),"click",function(){i.setDefaults(),i.updateDisplay()}),T(Rr,function(e){i.on(i.$(e.selector),"change",i.updateDisplay)}),i.options_.persistTextTrackSettings&&i.restoreSettings(),i}kt(e,n);var t=e.prototype;return t.dispose=function(){this.endDialog=null,n.prototype.dispose.call(this)},t.createElSelect_=function(e,t,i){var n=this;void 0===t&&(t=""),void 0===i&&(i="label");var r=Rr[e],a=r.id.replace("%s",this.id_),s=[t,a].join(" ").trim();return["<"+i+' id="'+a+'" class="'+("label"===i?"vjs-label":"")+'">',this.localize(r.label),"</"+i+">",'<select aria-labelledby="'+s+'">'].concat(r.options.map(function(e){var t=a+"-"+e[1].replace(/\W+/g,"");return['<option id="'+t+'" value="'+e[0]+'" ','aria-labelledby="'+s+" "+t+'">',n.localize(e[1]),"</option>"].join("")})).concat("</select>").join("")},t.createElFgColor_=function(){var e="captions-text-legend-"+this.id_;return['<fieldset class="vjs-fg-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Text"),"</legend>",this.createElSelect_("color",e),'<span class="vjs-text-opacity vjs-opacity">',this.createElSelect_("textOpacity",e),"</span>","</fieldset>"].join("")},t.createElBgColor_=function(){var e="captions-background-"+this.id_;return['<fieldset class="vjs-bg-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Background"),"</legend>",this.createElSelect_("backgroundColor",e),'<span class="vjs-bg-opacity vjs-opacity">',this.createElSelect_("backgroundOpacity",e),"</span>","</fieldset>"].join("")},t.createElWinColor_=function(){var e="captions-window-"+this.id_;return['<fieldset class="vjs-window-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Window"),"</legend>",this.createElSelect_("windowColor",e),'<span class="vjs-window-opacity vjs-opacity">',this.createElSelect_("windowOpacity",e),"</span>","</fieldset>"].join("")},t.createElColors_=function(){return ne("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})},t.createElFont_=function(){return ne("div",{className:"vjs-track-settings-font",innerHTML:['<fieldset class="vjs-font-percent vjs-track-setting">',this.createElSelect_("fontPercent","","legend"),"</fieldset>",'<fieldset class="vjs-edge-style vjs-track-setting">',this.createElSelect_("edgeStyle","","legend"),"</fieldset>",'<fieldset class="vjs-font-family vjs-track-setting">',this.createElSelect_("fontFamily","","legend"),"</fieldset>"].join("")})},t.createElControls_=function(){var e=this.localize("restore all settings to the default values");return ne("div",{className:"vjs-track-settings-controls",innerHTML:['<button type="button" class="vjs-default-button" title="'+e+'">',this.localize("Reset"),'<span class="vjs-control-text"> '+e+"</span>","</button>",'<button type="button" class="vjs-done-button">'+this.localize("Done")+"</button>"].join("")})},t.content=function(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]},t.label=function(){return this.localize("Caption Settings Dialog")},t.description=function(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")},t.buildCSSClass=function(){return n.prototype.buildCSSClass.call(this)+" vjs-text-track-settings"},t.getValues=function(){var r=this;return function(i,n,e){return void 0===e&&(e=0),b(i).reduce(function(e,t){return n(e,i[t],t)},e)}(Rr,function(e,t,i){var n=function(e,t){return Mr(e.options[e.options.selectedIndex].value,t)}(r.$(t.selector),t.parser);return void 0!==n&&(e[i]=n),e},{})},t.setValues=function(i){var n=this;T(Rr,function(e,t){!function(e,t,i){if(t)for(var n=0;n<e.options.length;n++)if(Mr(e.options[n].value,i)===t){e.selectedIndex=n;break}}(n.$(e.selector),i[t],e.parser)})},t.setDefaults=function(){var i=this;T(Rr,function(e){var t=e.hasOwnProperty("default")?e.default:0;i.$(e.selector).selectedIndex=t})},t.restoreSettings=function(){var e;try{e=JSON.parse(h.localStorage.getItem(Sr))}catch(e){g.warn(e)}e&&this.setValues(e)},t.saveSettings=function(){if(this.options_.persistTextTrackSettings){var e=this.getValues();try{Object.keys(e).length?h.localStorage.setItem(Sr,JSON.stringify(e)):h.localStorage.removeItem(Sr)}catch(e){g.warn(e)}}},t.updateDisplay=function(){var e=this.player_.getChild("textTrackDisplay");e&&e.updateDisplay()},t.conditionalBlur_=function(){this.previouslyActiveEl_=null;var e=this.player_.controlBar,t=e&&e.subsCapsButton,i=e&&e.captionsButton;t?t.focus():i&&i.focus()},e}(Bt);Tt.registerComponent("TextTrackSettings",Nr);var Ur=function(a){function e(e,t){var i,n=t.ResizeObserver||h.ResizeObserver;null===t.ResizeObserver&&(n=!1);var r=gt({createEl:!n,reportTouchActivity:!1},t);return(i=a.call(this,e,r)||this).ResizeObserver=t.ResizeObserver||h.ResizeObserver,i.loadListener_=null,i.resizeObserver_=null,i.debouncedHandler_=function(n,r,a,s){var o;void 0===s&&(s=h);function e(){var e=this,t=arguments,i=function(){i=o=null,a||n.apply(e,t)};!o&&a&&n.apply(e,t),s.clearTimeout(o),o=s.setTimeout(i,r)}return e.cancel=function(){s.clearTimeout(o),o=null},e}(function(){i.resizeHandler()},100,!1,St(i)),n?(i.resizeObserver_=new i.ResizeObserver(i.debouncedHandler_),i.resizeObserver_.observe(e.el())):(i.loadListener_=function(){if(i.el_&&i.el_.contentWindow){var e=i.debouncedHandler_,t=i.unloadListener_=function(){Xe(this,"resize",e),Xe(this,"unload",t),t=null};Ge(i.el_.contentWindow,"unload",t),Ge(i.el_.contentWindow,"resize",e)}},i.one("load",i.loadListener_)),i}kt(e,a);var t=e.prototype;return t.createEl=function(){return a.prototype.createEl.call(this,"iframe",{className:"vjs-resize-manager",tabIndex:-1},{"aria-hidden":"true"})},t.resizeHandler=function(){this.player_&&this.player_.trigger&&this.player_.trigger("playerresize")},t.dispose=function(){this.debouncedHandler_&&this.debouncedHandler_.cancel(),this.resizeObserver_&&(this.player_.el()&&this.resizeObserver_.unobserve(this.player_.el()),this.resizeObserver_.disconnect()),this.loadListener_&&this.off("load",this.loadListener_),this.el_&&this.el_.contentWindow&&this.unloadListener_&&this.unloadListener_.call(this.el_.contentWindow),this.ResizeObserver=null,this.resizeObserver=null,this.debouncedHandler_=null,this.loadListener_=null,a.prototype.dispose.call(this)},e}(Tt);Tt.registerComponent("ResizeManager",Ur);var Br={trackingThreshold:30,liveTolerance:15},Fr=function(r){function e(e,t){var i,n=gt(Br,t,{createEl:!1});return(i=r.call(this,e,n)||this).reset_(),i.on(i.player_,"durationchange",i.handleDurationchange),i.one(i.player_,"canplay",function(){return i.toggleTracking()}),q&&"hidden"in p&&"visibilityState"in p&&i.on(p,"visibilitychange",i.handleVisibilityChange),i}kt(e,r);var t=e.prototype;return t.handleVisibilityChange=function(){this.player_.duration()===1/0&&(p.hidden?this.stopTracking():this.startTracking())},t.trackLive_=function(){var e=this.player_.seekable();if(e&&e.length){var t=Number(h.performance.now().toFixed(4)),i=-1===this.lastTime_?0:(t-this.lastTime_)/1e3;this.lastTime_=t,this.pastSeekEnd_=this.pastSeekEnd()+i;var n=this.liveCurrentTime(),r=this.player_.currentTime(),a=this.player_.paused()||this.seekedBehindLive_||Math.abs(n-r)>this.options_.liveTolerance;this.timeupdateSeen_&&n!==1/0||(a=!1),a!==this.behindLiveEdge_&&(this.behindLiveEdge_=a,this.trigger("liveedgechange"))}},t.handleDurationchange=function(){this.toggleTracking()},t.toggleTracking=function(){this.player_.duration()===1/0&&this.liveWindow()>=this.options_.trackingThreshold?(this.player_.options_.liveui&&this.player_.addClass("vjs-liveui"),this.startTracking()):(this.player_.removeClass("vjs-liveui"),this.stopTracking())},t.startTracking=function(){this.isTracking()||(this.timeupdateSeen_||(this.timeupdateSeen_=this.player_.hasStarted()),this.trackingInterval_=this.setInterval(this.trackLive_,30),this.trackLive_(),this.on(this.player_,["play","pause"],this.trackLive_),this.timeupdateSeen_?this.on(this.player_,"seeked",this.handleSeeked):(this.one(this.player_,"play",this.handlePlay),this.one(this.player_,"timeupdate",this.handleFirstTimeupdate)))},t.handleFirstTimeupdate=function(){this.timeupdateSeen_=!0,this.on(this.player_,"seeked",this.handleSeeked)},t.handleSeeked=function(){var e=Math.abs(this.liveCurrentTime()-this.player_.currentTime());this.seekedBehindLive_=!this.skipNextSeeked_&&2<e,this.skipNextSeeked_=!1,this.trackLive_()},t.handlePlay=function(){this.one(this.player_,"timeupdate",this.seekToLiveEdge)},t.reset_=function(){this.lastTime_=-1,this.pastSeekEnd_=0,this.lastSeekEnd_=-1,this.behindLiveEdge_=!0,this.timeupdateSeen_=!1,this.seekedBehindLive_=!1,this.skipNextSeeked_=!1,this.clearInterval(this.trackingInterval_),this.trackingInterval_=null,this.off(this.player_,["play","pause"],this.trackLive_),this.off(this.player_,"seeked",this.handleSeeked),this.off(this.player_,"play",this.handlePlay),this.off(this.player_,"timeupdate",this.handleFirstTimeupdate),this.off(this.player_,"timeupdate",this.seekToLiveEdge)},t.stopTracking=function(){this.isTracking()&&(this.reset_(),this.trigger("liveedgechange"))},t.seekableEnd=function(){for(var e=this.player_.seekable(),t=[],i=e?e.length:0;i--;)t.push(e.end(i));return t.length?t.sort()[t.length-1]:1/0},t.seekableStart=function(){for(var e=this.player_.seekable(),t=[],i=e?e.length:0;i--;)t.push(e.start(i));return t.length?t.sort()[0]:0},t.liveWindow=function(){var e=this.liveCurrentTime();return e===1/0?0:e-this.seekableStart()},t.isLive=function(){return this.isTracking()},t.atLiveEdge=function(){return!this.behindLiveEdge()},t.liveCurrentTime=function(){return this.pastSeekEnd()+this.seekableEnd()},t.pastSeekEnd=function(){var e=this.seekableEnd();return-1!==this.lastSeekEnd_&&e!==this.lastSeekEnd_&&(this.pastSeekEnd_=0),this.lastSeekEnd_=e,this.pastSeekEnd_},t.behindLiveEdge=function(){return this.behindLiveEdge_},t.isTracking=function(){return"number"==typeof this.trackingInterval_},t.seekToLiveEdge=function(){this.seekedBehindLive_=!1,this.atLiveEdge()||(this.skipNextSeeked_=!0,this.player_.currentTime(this.liveCurrentTime()))},t.dispose=function(){this.off(p,"visibilitychange",this.handleVisibilityChange),this.stopTracking(),r.prototype.dispose.call(this)},e}(Tt);Tt.registerComponent("LiveTracker",Fr);function jr(e){var t=e.el();if(t.hasAttribute("src"))return e.triggerSourceset(t.src),!0;var i=e.$$("source"),n=[],r="";if(!i.length)return!1;for(var a=0;a<i.length;a++){var s=i[a].src;s&&-1===n.indexOf(s)&&n.push(s)}return!!n.length&&(1===n.length&&(r=n[0]),e.triggerSourceset(r),!0)}function Vr(e,t){for(var i={},n=0;n<e.length&&!((i=Object.getOwnPropertyDescriptor(e[n],t))&&i.set&&i.get);n++);return i.enumerable=!0,i.configurable=!0,i}function qr(a){var s=a.el();if(!s.resetSourceWatch_){var t={},e=function(e){return Vr([e.el(),h.HTMLMediaElement.prototype,h.Element.prototype,Gr],"innerHTML")}(a),i=function(r){return function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var n=r.apply(s,t);return jr(a),n}};["append","appendChild","insertAdjacentHTML"].forEach(function(e){s[e]&&(t[e]=s[e],s[e]=i(t[e]))}),Object.defineProperty(s,"innerHTML",gt(e,{set:i(e.set)})),s.resetSourceWatch_=function(){s.resetSourceWatch_=null,Object.keys(t).forEach(function(e){s[e]=t[e]}),Object.defineProperty(s,"innerHTML",e)},a.one("sourceset",s.resetSourceWatch_)}}function Hr(n){if(n.featuresSourceset){var r=n.el();if(!r.resetSourceset_){var i=function(e){return Vr([e.el(),h.HTMLMediaElement.prototype,Xr],"src")}(n),a=r.setAttribute,t=r.load;Object.defineProperty(r,"src",gt(i,{set:function(e){var t=i.set.call(r,e);return n.triggerSourceset(r.src),t}})),r.setAttribute=function(e,t){var i=a.call(r,e,t);return/src/i.test(e)&&n.triggerSourceset(r.src),i},r.load=function(){var e=t.call(r);return jr(n)||(n.triggerSourceset(""),qr(n)),e},r.currentSrc?n.triggerSourceset(r.currentSrc):jr(n)||qr(n),r.resetSourceset_=function(){r.resetSourceset_=null,r.load=t,r.setAttribute=a,Object.defineProperty(r,"src",i),r.resetSourceWatch_&&r.resetSourceWatch_()}}}}function Wr(t,i,n,e){function r(e){return Object.defineProperty(t,i,{value:e,enumerable:!0,writable:!0})}void 0===e&&(e=!0);var a={configurable:!0,enumerable:!0,get:function(){var e=n();return r(e),e}};return e&&(a.set=r),Object.defineProperty(t,i,a)}var zr,Gr=Object.defineProperty({},"innerHTML",{get:function(){return this.cloneNode(!0).innerHTML},set:function(e){var t=p.createElement(this.nodeName.toLowerCase());t.innerHTML=e;for(var i=p.createDocumentFragment();t.childNodes.length;)i.appendChild(t.childNodes[0]);return this.innerText="",h.Element.prototype.appendChild.call(this,i),this.innerHTML}}),Xr=Object.defineProperty({},"src",{get:function(){return this.hasAttribute("src")?Wt(h.Element.prototype.getAttribute.call(this,"src")):""},set:function(e){return h.Element.prototype.setAttribute.call(this,"src",e),e}}),Kr=function(c){function o(e,t){var i;i=c.call(this,e,t)||this;var n=e.source,r=!1;if(n&&(i.el_.currentSrc!==n.src||e.tag&&3===e.tag.initNetworkState_)?i.setSource(n):i.handleLateInit_(i.el_),e.enableSourceset&&i.setupSourcesetHandling_(),i.isScrubbing_=!1,i.el_.hasChildNodes()){for(var a=i.el_.childNodes,s=a.length,o=[];s--;){var u=a[s];"track"===u.nodeName.toLowerCase()&&(i.featuresNativeTextTracks?(i.remoteTextTrackEls().addTrackElement_(u),i.remoteTextTracks().addTrack(u.track),i.textTracks().addTrack(u.track),r||i.el_.hasAttribute("crossorigin")||!Gt(u.src)||(r=!0)):o.push(u))}for(var l=0;l<o.length;l++)i.el_.removeChild(o[l])}return i.proxyNativeTracks_(),i.featuresNativeTextTracks&&r&&g.warn("Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\nThis may prevent text tracks from loading."),i.restoreMetadataTracksInIOSNativePlayer_(),(z||X||U)&&!0===e.nativeControlsForTouch&&i.setControls(!0),i.proxyWebkitFullscreen_(),i.triggerReady(),i}kt(o,c);var e=o.prototype;return e.dispose=function(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),o.disposeMediaElement(this.el_),this.options_=null,c.prototype.dispose.call(this)},e.setupSourcesetHandling_=function(){Hr(this)},e.restoreMetadataTracksInIOSNativePlayer_=function(){function e(){i=[];for(var e=0;e<n.length;e++){var t=n[e];"metadata"===t.kind&&i.push({track:t,storedMode:t.mode})}}var i,n=this.textTracks();e(),n.addEventListener("change",e),this.on("dispose",function(){return n.removeEventListener("change",e)});function r(){for(var e=0;e<i.length;e++){var t=i[e];"disabled"===t.track.mode&&t.track.mode!==t.storedMode&&(t.track.mode=t.storedMode)}n.removeEventListener("change",r)}this.on("webkitbeginfullscreen",function(){n.removeEventListener("change",e),n.removeEventListener("change",r),n.addEventListener("change",r)}),this.on("webkitendfullscreen",function(){n.removeEventListener("change",e),n.addEventListener("change",e),n.removeEventListener("change",r)})},e.overrideNative_=function(e,t){var i=this;if(t===this["featuresNative"+e+"Tracks"]){var n=e.toLowerCase();this[n+"TracksListeners_"]&&Object.keys(this[n+"TracksListeners_"]).forEach(function(e){i.el()[n+"Tracks"].removeEventListener(e,i[n+"TracksListeners_"][e])}),this["featuresNative"+e+"Tracks"]=!t,this[n+"TracksListeners_"]=null,this.proxyNativeTracksForType_(n)}},e.overrideNativeAudioTracks=function(e){this.overrideNative_("Audio",e)},e.overrideNativeVideoTracks=function(e){this.overrideNative_("Video",e)},e.proxyNativeTracksForType_=function(i){var n=this,e=_i[i],r=this.el()[e.getterName],a=this[e.getterName]();if(this["featuresNative"+e.capitalName+"Tracks"]&&r&&r.addEventListener){var s={change:function(e){var t={type:"change",target:a,currentTarget:a,srcElement:a};a.trigger(t),"text"===i&&n[bi.remoteText.getterName]().trigger(t)},addtrack:function(e){a.addTrack(e.track)},removetrack:function(e){a.removeTrack(e.track)}},t=function(){for(var e=[],t=0;t<a.length;t++){for(var i=!1,n=0;n<r.length;n++)if(r[n]===a[t]){i=!0;break}i||e.push(a[t])}for(;e.length;)a.removeTrack(e.shift())};this[e.getterName+"Listeners_"]=s,Object.keys(s).forEach(function(t){var i=s[t];r.addEventListener(t,i),n.on("dispose",function(e){return r.removeEventListener(t,i)})}),this.on("loadstart",t),this.on("dispose",function(e){return n.off("loadstart",t)})}},e.proxyNativeTracks_=function(){var t=this;_i.names.forEach(function(e){t.proxyNativeTracksForType_(e)})},e.createEl=function(){var e=this.options_.tag;if(!e||!this.options_.playerElIngest&&!this.movingMediaElementInDOM){if(e){var t=e.cloneNode(!0);e.parentNode&&e.parentNode.insertBefore(t,e),o.disposeMediaElement(e),e=t}else{e=p.createElement("video");var i=gt({},this.options_.tag&&de(this.options_.tag));z&&!0===this.options_.nativeControlsForTouch||delete i.controls,ce(e,S(i,{id:this.options_.techId,class:"vjs-tech"}))}e.playerId=this.options_.playerId}"undefined"!=typeof this.options_.preload&&pe(e,"preload",this.options_.preload),void 0!==this.options_.disablePictureInPicture&&(e.disablePictureInPicture=this.options_.disablePictureInPicture);for(var n=["loop","muted","playsinline","autoplay"],r=0;r<n.length;r++){var a=n[r],s=this.options_[a];"undefined"!=typeof s&&(s?pe(e,a,a):fe(e,a),e[a]=s)}return e},e.handleLateInit_=function(e){if(0!==e.networkState&&3!==e.networkState){if(0===e.readyState){var t=!1,i=function(){t=!0};this.on("loadstart",i);var n=function(){t||this.trigger("loadstart")};return this.on("loadedmetadata",n),void this.ready(function(){this.off("loadstart",i),this.off("loadedmetadata",n),t||this.trigger("loadstart")})}var r=["loadstart"];r.push("loadedmetadata"),2<=e.readyState&&r.push("loadeddata"),3<=e.readyState&&r.push("canplay"),4<=e.readyState&&r.push("canplaythrough"),this.ready(function(){r.forEach(function(e){this.trigger(e)},this)})}},e.setScrubbing=function(e){this.isScrubbing_=e},e.scrubbing=function(){return this.isScrubbing_},e.setCurrentTime=function(e){try{this.isScrubbing_&&this.el_.fastSeek&&Q?this.el_.fastSeek(e):this.el_.currentTime=e}catch(e){g(e,"Video is not ready. (Video.js)")}},e.duration=function(){var t=this;if(this.el_.duration===1/0&&M&&j&&0===this.el_.currentTime){return this.on("timeupdate",function e(){0<t.el_.currentTime&&(t.el_.duration===1/0&&t.trigger("durationchange"),t.off("timeupdate",e))}),NaN}return this.el_.duration||NaN},e.width=function(){return this.el_.offsetWidth},e.height=function(){return this.el_.offsetHeight},e.proxyWebkitFullscreen_=function(){var e=this;if("webkitDisplayingFullscreen"in this.el_){var t=function(){this.trigger("fullscreenchange",{isFullscreen:!1})},i=function(){"webkitPresentationMode"in this.el_&&"picture-in-picture"!==this.el_.webkitPresentationMode&&(this.one("webkitendfullscreen",t),this.trigger("fullscreenchange",{isFullscreen:!0,nativeIOSFullscreen:!0}))};this.on("webkitbeginfullscreen",i),this.on("dispose",function(){e.off("webkitbeginfullscreen",i),e.off("webkitendfullscreen",t)})}},e.supportsFullScreen=function(){if("function"==typeof this.el_.webkitEnterFullScreen){var e=h.navigator&&h.navigator.userAgent||"";if(/Android/.test(e)||!/Chrome|Mac OS X 10.5/.test(e))return!0}return!1},e.enterFullScreen=function(){var e=this.el_;if(e.paused&&e.networkState<=e.HAVE_METADATA)Ot(this.el_.play()),this.setTimeout(function(){e.pause();try{e.webkitEnterFullScreen()}catch(e){this.trigger("fullscreenerror",e)}},0);else try{e.webkitEnterFullScreen()}catch(e){this.trigger("fullscreenerror",e)}},e.exitFullScreen=function(){this.el_.webkitDisplayingFullscreen?this.el_.webkitExitFullScreen():this.trigger("fullscreenerror",new Error("The video is not fullscreen"))},e.requestPictureInPicture=function(){return this.el_.requestPictureInPicture()},e.src=function(e){if(void 0===e)return this.el_.src;this.setSrc(e)},e.reset=function(){o.resetMediaElement(this.el_)},e.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},e.setControls=function(e){this.el_.controls=!!e},e.addTextTrack=function(e,t,i){return this.featuresNativeTextTracks?this.el_.addTextTrack(e,t,i):c.prototype.addTextTrack.call(this,e,t,i)},e.createRemoteTextTrack=function(e){if(!this.featuresNativeTextTracks)return c.prototype.createRemoteTextTrack.call(this,e);var t=p.createElement("track");return e.kind&&(t.kind=e.kind),e.label&&(t.label=e.label),(e.language||e.srclang)&&(t.srclang=e.language||e.srclang),e.default&&(t.default=e.default),e.id&&(t.id=e.id),e.src&&(t.src=e.src),t},e.addRemoteTextTrack=function(e,t){var i=c.prototype.addRemoteTextTrack.call(this,e,t);return this.featuresNativeTextTracks&&this.el().appendChild(i),i},e.removeRemoteTextTrack=function(e){if(c.prototype.removeRemoteTextTrack.call(this,e),this.featuresNativeTextTracks)for(var t=this.$$("track"),i=t.length;i--;)e!==t[i]&&e!==t[i].track||this.el().removeChild(t[i])},e.getVideoPlaybackQuality=function(){if("function"==typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();var e={};return"undefined"!=typeof this.el().webkitDroppedFrameCount&&"undefined"!=typeof this.el().webkitDecodedFrameCount&&(e.droppedVideoFrames=this.el().webkitDroppedFrameCount,e.totalVideoFrames=this.el().webkitDecodedFrameCount),h.performance&&"function"==typeof h.performance.now?e.creationTime=h.performance.now():h.performance&&h.performance.timing&&"number"==typeof h.performance.timing.navigationStart&&(e.creationTime=h.Date.now()-h.performance.timing.navigationStart),e},o}(Ji);Wr(Kr,"TEST_VID",function(){if(Z()){var e=p.createElement("video"),t=p.createElement("track");return t.kind="captions",t.srclang="en",t.label="English",e.appendChild(t),e}}),Kr.isSupported=function(){try{Kr.TEST_VID.volume=.5}catch(e){return!1}return!(!Kr.TEST_VID||!Kr.TEST_VID.canPlayType)},Kr.canPlayType=function(e){return Kr.TEST_VID.canPlayType(e)},Kr.canPlaySource=function(e,t){return Kr.canPlayType(e.type)},Kr.canControlVolume=function(){try{var e=Kr.TEST_VID.volume;return Kr.TEST_VID.volume=e/2+.1,e!==Kr.TEST_VID.volume}catch(e){return!1}},Kr.canMuteVolume=function(){try{var e=Kr.TEST_VID.muted;return Kr.TEST_VID.muted=!e,Kr.TEST_VID.muted?pe(Kr.TEST_VID,"muted","muted"):fe(Kr.TEST_VID,"muted"),e!==Kr.TEST_VID.muted}catch(e){return!1}},Kr.canControlPlaybackRate=function(){if(M&&j&&V<58)return!1;try{var e=Kr.TEST_VID.playbackRate;return Kr.TEST_VID.playbackRate=e/2+.1,e!==Kr.TEST_VID.playbackRate}catch(e){return!1}},Kr.canOverrideAttributes=function(){try{var e=function(){};Object.defineProperty(p.createElement("video"),"src",{get:e,set:e}),Object.defineProperty(p.createElement("audio"),"src",{get:e,set:e}),Object.defineProperty(p.createElement("video"),"innerHTML",{get:e,set:e}),Object.defineProperty(p.createElement("audio"),"innerHTML",{get:e,set:e})}catch(e){return!1}return!0},Kr.supportsNativeTextTracks=function(){return Q||K&&j},Kr.supportsNativeVideoTracks=function(){return!(!Kr.TEST_VID||!Kr.TEST_VID.videoTracks)},Kr.supportsNativeAudioTracks=function(){return!(!Kr.TEST_VID||!Kr.TEST_VID.audioTracks)},Kr.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],[["featuresVolumeControl","canControlVolume"],["featuresMuteControl","canMuteVolume"],["featuresPlaybackRate","canControlPlaybackRate"],["featuresSourceset","canOverrideAttributes"],["featuresNativeTextTracks","supportsNativeTextTracks"],["featuresNativeVideoTracks","supportsNativeVideoTracks"],["featuresNativeAudioTracks","supportsNativeAudioTracks"]].forEach(function(e){var t=e[0],i=e[1];Wr(Kr.prototype,t,function(){return Kr[i]()},!0)}),Kr.prototype.movingMediaElementInDOM=!K,Kr.prototype.featuresFullscreenResize=!0,Kr.prototype.featuresProgressEvents=!0,Kr.prototype.featuresTimeupdateEvents=!0,Kr.patchCanPlayType=function(){4<=N&&!B&&!j&&(zr=Kr.TEST_VID&&Kr.TEST_VID.constructor.prototype.canPlayType,Kr.TEST_VID.constructor.prototype.canPlayType=function(e){return e&&/^application\/(?:x-|vnd\.apple\.)mpegurl/i.test(e)?"maybe":zr.call(this,e)})},Kr.unpatchCanPlayType=function(){var e=Kr.TEST_VID.constructor.prototype.canPlayType;return zr&&(Kr.TEST_VID.constructor.prototype.canPlayType=zr),e},Kr.patchCanPlayType(),Kr.disposeMediaElement=function(e){if(e){for(e.parentNode&&e.parentNode.removeChild(e);e.hasChildNodes();)e.removeChild(e.firstChild);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(e){}}()}},Kr.resetMediaElement=function(e){if(e){for(var t=e.querySelectorAll("source"),i=t.length;i--;)e.removeChild(t[i]);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(e){}}()}},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach(function(e){Kr.prototype[e]=function(){return this.el_[e]||this.el_.hasAttribute(e)}}),["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(t){Kr.prototype["set"+mt(t)]=function(e){(this.el_[t]=e)?this.el_.setAttribute(t,t):this.el_.removeAttribute(t)}}),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","disablePictureInPicture","played","networkState","readyState","videoWidth","videoHeight","crossOrigin"].forEach(function(e){Kr.prototype[e]=function(){return this.el_[e]}}),["volume","src","poster","preload","playbackRate","defaultPlaybackRate","disablePictureInPicture","crossOrigin"].forEach(function(t){Kr.prototype["set"+mt(t)]=function(e){this.el_[t]=e}}),["pause","load","play"].forEach(function(e){Kr.prototype[e]=function(){return this.el_[e]()}}),Ji.withSourceHandlers(Kr),Kr.nativeSourceHandler={},Kr.nativeSourceHandler.canPlayType=function(e){try{return Kr.TEST_VID.canPlayType(e)}catch(e){return""}},Kr.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return Kr.nativeSourceHandler.canPlayType(e.type);if(e.src){var i=zt(e.src);return Kr.nativeSourceHandler.canPlayType("video/"+i)}return""},Kr.nativeSourceHandler.handleSource=function(e,t,i){t.setSrc(e.src)},Kr.nativeSourceHandler.dispose=function(){},Kr.registerSourceHandler(Kr.nativeSourceHandler),Ji.registerTech("Html5",Kr);var Qr=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],Yr={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},$r=["tiny","xsmall","small","medium","large","xlarge","huge"],Jr={};$r.forEach(function(e){var t="x"===e.charAt(0)?"x-"+e.substring(1):e;Jr[e]="vjs-layout-"+t});var Zr={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0},ea=function(c){function l(e,t,i){var n;if(e.id=e.id||t.id||"vjs_video_"+Be(),(t=S(l.getTagSettings(e),t)).initChildren=!1,t.createEl=!1,t.evented=!1,t.reportTouchActivity=!1,!t.language)if("function"==typeof e.closest){var r=e.closest("[lang]");r&&r.getAttribute&&(t.language=r.getAttribute("lang"))}else for(var a=e;a&&1===a.nodeType;){if(de(a).hasOwnProperty("lang")){t.language=a.getAttribute("lang");break}a=a.parentNode}if((n=c.call(this,null,t,i)||this).boundDocumentFullscreenChange_=function(e){return n.documentFullscreenChange_(e)},n.boundFullWindowOnEscKey_=function(e){return n.fullWindowOnEscKey(e)},n.isFullscreen_=!1,n.log=v(n.id_),n.fsApi_=f,n.isPosterFromTech_=!1,n.queuedCallbacks_=[],n.isReady_=!1,n.hasStarted_=!1,n.userActive_=!1,n.debugEnabled_=!1,!n.options_||!n.options_.techOrder||!n.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(n.tag=e,n.tagAttributes=e&&de(e),n.language(n.options_.language),t.languages){var s={};Object.getOwnPropertyNames(t.languages).forEach(function(e){s[e.toLowerCase()]=t.languages[e]}),n.languages_=s}else n.languages_=l.prototype.options_.languages;n.resetCache_(),n.poster_=t.poster||"",n.controls_=!!t.controls,e.controls=!1,e.removeAttribute("controls"),n.changingSrc_=!1,n.playCallbacks_=[],n.playTerminatedQueue_=[],e.hasAttribute("autoplay")?n.autoplay(!0):n.autoplay(n.options_.autoplay),t.plugins&&Object.keys(t.plugins).forEach(function(e){if("function"!=typeof n[e])throw new Error('plugin "'+e+'" does not exist')}),n.scrubbing_=!1,n.el_=n.createEl(),dt(St(n),{eventBusKey:"el_"}),n.fsApi_.requestFullscreen&&(Ge(p,n.fsApi_.fullscreenchange,n.boundDocumentFullscreenChange_),n.on(n.fsApi_.fullscreenchange,n.boundDocumentFullscreenChange_)),n.fluid_&&n.on(["playerreset","resize"],n.updateStyleEl_);var o=gt(n.options_);t.plugins&&Object.keys(t.plugins).forEach(function(e){n[e](t.plugins[e])}),t.debug&&n.debug(!0),n.options_.playerOptions=o,n.middleware_=[],n.initChildren(),n.isAudio("audio"===e.nodeName.toLowerCase()),n.controls()?n.addClass("vjs-controls-enabled"):n.addClass("vjs-controls-disabled"),n.el_.setAttribute("role","region"),n.isAudio()?n.el_.setAttribute("aria-label",n.localize("Audio Player")):n.el_.setAttribute("aria-label",n.localize("Video Player")),n.isAudio()&&n.addClass("vjs-audio"),n.flexNotSupported_()&&n.addClass("vjs-no-flex"),z&&n.addClass("vjs-touch-enabled"),K||n.addClass("vjs-workinghover"),l.players[n.id_]=St(n);var u=d.split(".")[0];return n.addClass("vjs-v"+u),n.userActive(!0),n.reportUserActivity(),n.one("play",n.listenForUserActivity_),n.on("stageclick",n.handleStageClick_),n.on("keydown",n.handleKeyDown),n.on("languagechange",n.handleLanguagechange),n.breakpoints(n.options_.breakpoints),n.responsive(n.options_.responsive),n}kt(l,c);var e=l.prototype;return e.dispose=function(){var n=this;this.trigger("dispose"),this.off("dispose"),Xe(p,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),Xe(p,"keydown",this.boundFullWindowOnEscKey_),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),l.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&(this.tech_.dispose(),this.isPosterFromTech_=!1,this.poster_=""),this.playerElIngest_&&(this.playerElIngest_=null),this.tag&&(this.tag=null),function(e){en[e.id()]=null}(this),Ti.names.forEach(function(e){var t=Ti[e],i=n[t.getterName]();i&&i.off&&i.off()}),c.prototype.dispose.call(this)},e.createEl=function(){var t,i=this.tag,e=this.playerElIngest_=i.parentNode&&i.parentNode.hasAttribute&&i.parentNode.hasAttribute("data-vjs-player"),n="video-js"===this.tag.tagName.toLowerCase();e?t=this.el_=i.parentNode:n||(t=this.el_=c.prototype.createEl.call(this,"div"));var r=de(i);if(n){for(t=this.el_=i,i=this.tag=p.createElement("video");t.children.length;)i.appendChild(t.firstChild);se(t,"video-js")||oe(t,"video-js"),t.appendChild(i),e=this.playerElIngest_=t,Object.keys(t).forEach(function(e){try{i[e]=t[e]}catch(e){}})}if(i.setAttribute("tabindex","-1"),r.tabindex="-1",(q||j&&W)&&(i.setAttribute("role","application"),r.role="application"),i.removeAttribute("width"),i.removeAttribute("height"),"width"in r&&delete r.width,"height"in r&&delete r.height,Object.getOwnPropertyNames(r).forEach(function(e){n&&"class"===e||t.setAttribute(e,r[e]),n&&i.setAttribute(e,r[e])}),i.playerId=i.id,i.id+="_html5_api",i.className="vjs-tech",i.player=t.player=this,this.addClass("vjs-paused"),!0!==h.VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=Re("vjs-styles-dimensions");var a=Ie(".vjs-styles-defaults"),s=Ie("head");s.insertBefore(this.styleEl_,a?a.nextSibling:s.firstChild)}this.fill_=!1,this.fluid_=!1,this.width(this.options_.width),this.height(this.options_.height),this.fill(this.options_.fill),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio),this.crossOrigin(this.options_.crossOrigin||this.options_.crossorigin);for(var o=i.getElementsByTagName("a"),u=0;u<o.length;u++){var l=o.item(u);oe(l,"vjs-hidden"),l.setAttribute("hidden","hidden")}return i.initNetworkState_=i.networkState,i.parentNode&&!e&&i.parentNode.insertBefore(t,i),ae(i,t),this.children_.unshift(i),this.el_.setAttribute("lang",this.language_),this.el_=t},e.crossOrigin=function(e){if(!e)return this.techGet_("crossOrigin");"anonymous"===e||"use-credentials"===e?this.techCall_("setCrossOrigin",e):g.warn('crossOrigin must be "anonymous" or "use-credentials", given "'+e+'"')},e.width=function(e){return this.dimension("width",e)},e.height=function(e){return this.dimension("height",e)},e.dimension=function(e,t){var i=e+"_";if(void 0===t)return this[i]||0;if(""===t||"auto"===t)return this[i]=void 0,void this.updateStyleEl_();var n=parseFloat(t);isNaN(n)?g.error('Improper value "'+t+'" supplied for for '+e):(this[i]=n,this.updateStyleEl_())},e.fluid=function(e){var t=this;if(void 0===e)return!!this.fluid_;this.fluid_=!!e,lt(this)&&this.off(["playerreset","resize"],this.updateStyleEl_),e?(this.addClass("vjs-fluid"),this.fill(!1),function(e,t){lt(e)?t():(e.eventedCallbacks||(e.eventedCallbacks=[]),e.eventedCallbacks.push(t))}(this,function(){t.on(["playerreset","resize"],t.updateStyleEl_)})):this.removeClass("vjs-fluid"),this.updateStyleEl_()},e.fill=function(e){if(void 0===e)return!!this.fill_;this.fill_=!!e,e?(this.addClass("vjs-fill"),this.fluid(!1)):this.removeClass("vjs-fill")},e.aspectRatio=function(e){if(void 0===e)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(e))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=e,this.fluid(!0),this.updateStyleEl_()},e.updateStyleEl_=function(){if(!0!==h.VIDEOJS_NO_DYNAMIC_STYLE){var e,t,i,n=(void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:0<this.videoWidth()?this.videoWidth()+":"+this.videoHeight():"16:9").split(":"),r=n[1]/n[0];e=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/r:this.videoWidth()||300,t=void 0!==this.height_?this.height_:e*r,i=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(i),Me(this.styleEl_,"\n ."+i+" {\n width: "+e+"px;\n height: "+t+"px;\n }\n\n ."+i+".vjs-fluid {\n padding-top: "+100*r+"%;\n }\n ")}else{var a="number"==typeof this.width_?this.width_:this.options_.width,s="number"==typeof this.height_?this.height_:this.options_.height,o=this.tech_&&this.tech_.el();o&&(0<=a&&(o.width=a),0<=s&&(o.height=s))}},e.loadTech_=function(e,t){var i=this;this.tech_&&this.unloadTech_();var n=mt(e),r=e.charAt(0).toLowerCase()+e.slice(1);"Html5"!==n&&this.tag&&(Ji.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=n,this.isReady_=!1;var a={source:t,autoplay:"string"!=typeof this.autoplay()&&this.autoplay(),nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+r+"_api",playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,disablePictureInPicture:this.options_.disablePictureInPicture,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"],canOverridePoster:!!this.options_.techCanOverridePoster,enableSourceset:this.options_.enableSourceset,Promise:this.options_.Promise};Ti.names.forEach(function(e){var t=Ti[e];a[t.getterName]=i[t.privateName]}),S(a,this.options_[n]),S(a,this.options_[r]),S(a,this.options_[e.toLowerCase()]),this.tag&&(a.tag=this.tag),t&&t.src===this.cache_.src&&0<this.cache_.currentTime&&(a.startTime=this.cache_.currentTime);var s=Ji.getTech(e);if(!s)throw new Error("No Tech named '"+n+"' exists! '"+n+"' should be registered using videojs.registerTech()'");this.tech_=new s(a),this.tech_.ready($e(this,this.handleTechReady_),!0),Mt(this.textTracksJson_||[],this.tech_),Qr.forEach(function(e){i.on(i.tech_,e,i["handleTech"+mt(e)+"_"])}),Object.keys(Yr).forEach(function(t){i.on(i.tech_,t,function(e){0===i.tech_.playbackRate()&&i.tech_.seeking()?i.queuedCallbacks_.push({callback:i["handleTech"+Yr[t]+"_"].bind(i),event:e}):i["handleTech"+Yr[t]+"_"](e)})}),this.on(this.tech_,"loadstart",this.handleTechLoadStart_),this.on(this.tech_,"sourceset",this.handleTechSourceset_),this.on(this.tech_,"waiting",this.handleTechWaiting_),this.on(this.tech_,"ended",this.handleTechEnded_),this.on(this.tech_,"seeking",this.handleTechSeeking_),this.on(this.tech_,"play",this.handleTechPlay_),this.on(this.tech_,"firstplay",this.handleTechFirstPlay_),this.on(this.tech_,"pause",this.handleTechPause_),this.on(this.tech_,"durationchange",this.handleTechDurationChange_),this.on(this.tech_,"fullscreenchange",this.handleTechFullscreenChange_),this.on(this.tech_,"fullscreenerror",this.handleTechFullscreenError_),this.on(this.tech_,"enterpictureinpicture",this.handleTechEnterPictureInPicture_),this.on(this.tech_,"leavepictureinpicture",this.handleTechLeavePictureInPicture_),this.on(this.tech_,"error",this.handleTechError_),this.on(this.tech_,"loadedmetadata",this.updateStyleEl_),this.on(this.tech_,"posterchange",this.handleTechPosterChange_),this.on(this.tech_,"textdata",this.handleTechTextData_),this.on(this.tech_,"ratechange",this.handleTechRateChange_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===n&&this.tag||ae(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},e.unloadTech_=function(){var i=this;Ti.names.forEach(function(e){var t=Ti[e];i[t.privateName]=i[t.getterName]()}),this.textTracksJson_=Rt(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1},e.tech=function(e){return void 0===e&&g.warn("Using the tech directly can be dangerous. I hope you know what you're doing.\nSee https://github.com/videojs/video.js/issues/2617 for more info.\n"),this.tech_},e.addTechControlsListeners_=function(){this.removeTechControlsListeners_(),this.on(this.tech_,"mouseup",this.handleTechClick_),this.on(this.tech_,"dblclick",this.handleTechDoubleClick_),this.on(this.tech_,"touchstart",this.handleTechTouchStart_),this.on(this.tech_,"touchmove",this.handleTechTouchMove_),this.on(this.tech_,"touchend",this.handleTechTouchEnd_),this.on(this.tech_,"tap",this.handleTechTap_)},e.removeTechControlsListeners_=function(){this.off(this.tech_,"tap",this.handleTechTap_),this.off(this.tech_,"touchstart",this.handleTechTouchStart_),this.off(this.tech_,"touchmove",this.handleTechTouchMove_),this.off(this.tech_,"touchend",this.handleTechTouchEnd_),this.off(this.tech_,"mouseup",this.handleTechClick_),this.off(this.tech_,"dblclick",this.handleTechDoubleClick_)},e.handleTechReady_=function(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_()},e.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.error(null),this.handleTechDurationChange_(),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay")),this.manualAutoplay_(this.autoplay())},e.manualAutoplay_=function(t){var n=this;if(this.tech_&&"string"==typeof t){var e,i=function(){var e=n.muted();n.muted(!0);function t(){n.muted(e)}n.playTerminatedQueue_.push(t);var i=n.play();if(Lt(i))return i.catch(t)};if("any"===t&&!0!==this.muted()?Lt(e=this.play())&&(e=e.catch(i)):e="muted"===t&&!0!==this.muted()?i():this.play(),Lt(e))return e.then(function(){n.trigger({type:"autoplay-success",autoplay:t})}).catch(function(e){n.trigger({type:"autoplay-failure",autoplay:t})})}},e.updateSourceCaches_=function(e){void 0===e&&(e="");var t=e,i="";"string"!=typeof t&&(t=e.src,i=e.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],t&&!i&&(i=function(e,t){if(!t)return"";if(e.cache_.source.src===t&&e.cache_.source.type)return e.cache_.source.type;var i=e.cache_.sources.filter(function(e){return e.src===t});if(i.length)return i[0].type;for(var n=e.$$("source"),r=0;r<n.length;r++){var a=n[r];if(a.type&&a.src&&a.src===t)return a.type}return cn(t)}(this,t)),this.cache_.source=gt({},e,{src:t,type:i});for(var n=this.cache_.sources.filter(function(e){return e.src&&e.src===t}),r=[],a=this.$$("source"),s=[],o=0;o<a.length;o++){var u=de(a[o]);r.push(u),u.src&&u.src===t&&s.push(u.src)}s.length&&!n.length?this.cache_.sources=r:n.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=t},e.handleTechSourceset_=function(e){var i=this;if(!this.changingSrc_){var t=function(e){return i.updateSourceCaches_(e)},n=this.currentSource().src,r=e.src;n&&!/^blob:/.test(n)&&/^blob:/.test(r)&&(this.lastSource_&&(this.lastSource_.tech===r||this.lastSource_.player===n)||(t=function(){})),t(r),e.src||this.tech_.any(["sourceset","loadstart"],function(e){if("sourceset"!==e.type){var t=i.techGet("currentSrc");i.lastSource_.tech=t,i.updateSourceCaches_(t)}})}this.lastSource_={player:this.currentSource().src,tech:e.src},this.trigger({src:e.src,type:"sourceset"})},e.hasStarted=function(e){if(void 0===e)return this.hasStarted_;e!==this.hasStarted_&&(this.hasStarted_=e,this.hasStarted_?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started"))},e.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},e.handleTechRateChange_=function(){0<this.tech_.playbackRate()&&0===this.cache_.lastPlaybackRate&&(this.queuedCallbacks_.forEach(function(e){return e.callback(e.event)}),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")},e.handleTechWaiting_=function(){var t=this;this.addClass("vjs-waiting"),this.trigger("waiting");var i=this.currentTime();this.on("timeupdate",function e(){i!==t.currentTime()&&(t.removeClass("vjs-waiting"),t.off("timeupdate",e))})},e.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},e.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},e.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},e.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},e.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.removeClass("vjs-ended"),this.trigger("seeked")},e.handleTechFirstPlay_=function(){this.options_.starttime&&(g.warn("Passing the `starttime` option to the player will be deprecated in 6.0"),this.currentTime(this.options_.starttime)),this.addClass("vjs-has-started"),this.trigger("firstplay")},e.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},e.handleTechEnded_=function(){this.addClass("vjs-ended"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},e.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},e.handleTechClick_=function(e){Ee(e)&&this.controls_&&(this.paused()?Ot(this.play()):this.pause())},e.handleTechDoubleClick_=function(t){this.controls_&&(Array.prototype.some.call(this.$$(".vjs-control-bar, .vjs-modal-dialog"),function(e){return e.contains(t.target)})||void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.doubleClick&&!1===this.options_.userActions.doubleClick||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.doubleClick?this.options_.userActions.doubleClick.call(this,t):this.isFullscreen()?this.exitFullscreen():this.requestFullscreen()))},e.handleTechTap_=function(){this.userActive(!this.userActive())},e.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},e.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},e.handleTechTouchEnd_=function(e){e.cancelable&&e.preventDefault()},e.handleStageClick_=function(){this.reportUserActivity()},e.toggleFullscreenClass_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},e.documentFullscreenChange_=function(e){var t=e.target.player;if(!t||t===this){var i=this.el(),n=p[this.fsApi_.fullscreenElement]===i;!n&&i.matches?n=i.matches(":"+this.fsApi_.fullscreen):!n&&i.msMatchesSelector&&(n=i.msMatchesSelector(":"+this.fsApi_.fullscreen)),this.isFullscreen(n)}},e.handleTechFullscreenChange_=function(e,t){t&&(t.nativeIOSFullscreen&&this.toggleClass("vjs-ios-native-fs"),this.isFullscreen(t.isFullscreen))},e.handleTechFullscreenError_=function(e,t){this.trigger("fullscreenerror",t)},e.togglePictureInPictureClass_=function(){this.isInPictureInPicture()?this.addClass("vjs-picture-in-picture"):this.removeClass("vjs-picture-in-picture")},e.handleTechEnterPictureInPicture_=function(e){this.isInPictureInPicture(!0)},e.handleTechLeavePictureInPicture_=function(e){this.isInPictureInPicture(!1)},e.handleTechError_=function(){var e=this.tech_.error();this.error(e)},e.handleTechTextData_=function(e,t){var i=null;1<arguments.length&&(i=t),this.trigger("textdata",i)},e.getCache=function(){return this.cache_},e.resetCache_=function(){this.cache_={currentTime:0,initTime:0,inactivityTimeout:this.options_.inactivityTimeout,duration:NaN,lastVolume:1,lastPlaybackRate:this.defaultPlaybackRate(),media:null,src:"",source:{},sources:[],volume:1}},e.techCall_=function(e,t){this.ready(function(){if(e in sn)return function(e,t,i,n){return t[i](e.reduce(un(i),n))}(this.middleware_,this.tech_,e,t);if(e in on)return rn(this.middleware_,this.tech_,e,t);try{this.tech_&&this.tech_[e](t)}catch(e){throw g(e),e}},!0)},e.techGet_=function(t){if(this.tech_&&this.tech_.isReady_){if(t in an)return function(e,t,i){return e.reduceRight(un(i),t[i]())}(this.middleware_,this.tech_,t);if(t in on)return rn(this.middleware_,this.tech_,t);try{return this.tech_[t]()}catch(e){if(void 0===this.tech_[t])throw g("Video.js: "+t+" method not defined for "+this.techName_+" playback technology.",e),e;if("TypeError"===e.name)throw g("Video.js: "+t+" unavailable on "+this.techName_+" playback technology element.",e),this.tech_.isReady_=!1,e;throw g(e),e}}},e.play=function(){var t=this,e=this.options_.Promise||h.Promise;return e?new e(function(e){t.play_(e)}):this.play_()},e.play_=function(e){var t=this;void 0===e&&(e=Ot),this.playCallbacks_.push(e);var i=Boolean(!this.changingSrc_&&(this.src()||this.currentSrc()));if(this.waitToPlay_&&(this.off(["ready","loadstart"],this.waitToPlay_),this.waitToPlay_=null),!this.isReady_||!i)return this.waitToPlay_=function(e){t.play_()},this.one(["ready","loadstart"],this.waitToPlay_),void(i||!Q&&!K||this.load());var n=this.techGet_("play");null===n?this.runPlayTerminatedQueue_():this.runPlayCallbacks_(n)},e.runPlayTerminatedQueue_=function(){var e=this.playTerminatedQueue_.slice(0);this.playTerminatedQueue_=[],e.forEach(function(e){e()})},e.runPlayCallbacks_=function(t){var e=this.playCallbacks_.slice(0);this.playCallbacks_=[],this.playTerminatedQueue_=[],e.forEach(function(e){e(t)})},e.pause=function(){this.techCall_("pause")},e.paused=function(){return!1!==this.techGet_("paused")},e.played=function(){return this.techGet_("played")||Ct(0,0)},e.scrubbing=function(e){if("undefined"==typeof e)return this.scrubbing_;this.scrubbing_=!!e,this.techCall_("setScrubbing",this.scrubbing_),e?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")},e.currentTime=function(e){return"undefined"!=typeof e?(e<0&&(e=0),this.isReady_&&!this.changingSrc_&&this.tech_&&this.tech_.isReady_?(this.techCall_("setCurrentTime",e),void(this.cache_.initTime=0)):(this.cache_.initTime=e,this.off("canplay",this.applyInitTime_),void this.one("canplay",this.applyInitTime_))):(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime)},e.applyInitTime_=function(){this.currentTime(this.cache_.initTime)},e.duration=function(e){if(void 0===e)return void 0!==this.cache_.duration?this.cache_.duration:NaN;(e=parseFloat(e))<0&&(e=1/0),e!==this.cache_.duration&&((this.cache_.duration=e)===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),isNaN(e)||this.trigger("durationchange"))},e.remainingTime=function(){return this.duration()-this.currentTime()},e.remainingTimeDisplay=function(){return Math.floor(this.duration())-Math.floor(this.currentTime())},e.buffered=function(){var e=this.techGet_("buffered");return e&&e.length||(e=Ct(0,0)),e},e.bufferedPercent=function(){return It(this.buffered(),this.duration())},e.bufferedEnd=function(){var e=this.buffered(),t=this.duration(),i=e.end(e.length-1);return t<i&&(i=t),i},e.volume=function(e){var t;return void 0!==e?(t=Math.max(0,Math.min(1,parseFloat(e))),this.cache_.volume=t,this.techCall_("setVolume",t),void(0<t&&this.lastVolume_(t))):(t=parseFloat(this.techGet_("volume")),isNaN(t)?1:t)},e.muted=function(e){if(void 0===e)return this.techGet_("muted")||!1;this.techCall_("setMuted",e)},e.defaultMuted=function(e){return void 0!==e?this.techCall_("setDefaultMuted",e):this.techGet_("defaultMuted")||!1},e.lastVolume_=function(e){if(void 0===e||0===e)return this.cache_.lastVolume;this.cache_.lastVolume=e},e.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},e.isFullscreen=function(e){if(void 0===e)return this.isFullscreen_;var t=this.isFullscreen_;return this.isFullscreen_=Boolean(e),this.isFullscreen_!==t&&this.fsApi_.prefixed&&this.trigger("fullscreenchange"),void this.toggleFullscreenClass_()},e.requestFullscreen=function(s){var e=this.options_.Promise||h.Promise;if(e){var o=this;return new e(function(e,i){function n(){o.off("fullscreenerror",r),o.off("fullscreenchange",t)}function t(){n(),e()}function r(e,t){n(),i(t)}o.one("fullscreenchange",t),o.one("fullscreenerror",r);var a=o.requestFullscreenHelper_(s);if(a)return a.then(n,n),a})}return this.requestFullscreenHelper_()},e.requestFullscreenHelper_=function(e){var t,i=this;if(this.fsApi_.prefixed||(t=this.options_.fullscreen&&this.options_.fullscreen.options||{},void 0!==e&&(t=e)),this.fsApi_.requestFullscreen){var n=this.el_[this.fsApi_.requestFullscreen](t);return n&&n.then(function(){return i.isFullscreen(!0)},function(){return i.isFullscreen(!1)}),n}this.tech_.supportsFullScreen()?this.techCall_("enterFullScreen"):this.enterFullWindow()},e.exitFullscreen=function(){var e=this.options_.Promise||h.Promise;if(e){var s=this;return new e(function(e,i){function n(){s.off("fullscreenerror",r),s.off("fullscreenchange",t)}function t(){n(),e()}function r(e,t){n(),i(t)}s.one("fullscreenchange",t),s.one("fullscreenerror",r);var a=s.exitFullscreenHelper_();if(a)return a.then(n,n),a})}return this.exitFullscreenHelper_()},e.exitFullscreenHelper_=function(){var e=this;if(this.fsApi_.requestFullscreen){var t=p[this.fsApi_.exitFullscreen]();return t&&t.then(function(){return e.isFullscreen(!1)}),t}this.tech_.supportsFullScreen()?this.techCall_("exitFullScreen"):this.exitFullWindow()},e.enterFullWindow=function(){this.isFullscreen(!0),this.isFullWindow=!0,this.docOrigOverflow=p.documentElement.style.overflow,Ge(p,"keydown",this.boundFullWindowOnEscKey_),p.documentElement.style.overflow="hidden",oe(p.body,"vjs-full-window"),this.trigger("enterFullWindow")},e.fullWindowOnEscKey=function(e){Nt.isEventKey(e,"Esc")&&(!0===this.isFullscreen()?this.exitFullscreen():this.exitFullWindow())},e.exitFullWindow=function(){this.isFullscreen(!1),this.isFullWindow=!1,Xe(p,"keydown",this.boundFullWindowOnEscKey_),p.documentElement.style.overflow=this.docOrigOverflow,ue(p.body,"vjs-full-window"),this.trigger("exitFullWindow")},e.disablePictureInPicture=function(e){if(void 0===e)return this.techGet_("disablePictureInPicture");this.techCall_("setDisablePictureInPicture",e),this.options_.disablePictureInPicture=e,this.trigger("disablepictureinpicturechanged")},e.isInPictureInPicture=function(e){return void 0!==e?(this.isInPictureInPicture_=!!e,void this.togglePictureInPictureClass_()):!!this.isInPictureInPicture_},e.requestPictureInPicture=function(){if("pictureInPictureEnabled"in p&&!1===this.disablePictureInPicture())return this.techGet_("requestPictureInPicture")},e.exitPictureInPicture=function(){if("pictureInPictureEnabled"in p)return p.exitPictureInPicture()},e.handleKeyDown=function(e){var t=this.options_.userActions;if(t&&t.hotkeys){!function(e){var t=e.tagName.toLowerCase();if(e.isContentEditable)return!0;if("input"===t)return-1===["button","checkbox","hidden","radio","reset","submit"].indexOf(e.type);return-1!==["textarea"].indexOf(t)}(this.el_.ownerDocument.activeElement)&&("function"==typeof t.hotkeys?t.hotkeys.call(this,e):this.handleHotkeys(e))}},e.handleHotkeys=function(e){var t=this.options_.userActions?this.options_.userActions.hotkeys:{},i=t.fullscreenKey,n=void 0===i?function(e){return Nt.isEventKey(e,"f")}:i,r=t.muteKey,a=void 0===r?function(e){return Nt.isEventKey(e,"m")}:r,s=t.playPauseKey,o=void 0===s?function(e){return Nt.isEventKey(e,"k")||Nt.isEventKey(e,"Space")}:s;if(n.call(this,e)){e.preventDefault(),e.stopPropagation();var u=Tt.getComponent("FullscreenToggle");!1!==p[this.fsApi_.fullscreenEnabled]&&u.prototype.handleClick.call(this,e)}else if(a.call(this,e)){e.preventDefault(),e.stopPropagation(),Tt.getComponent("MuteToggle").prototype.handleClick.call(this,e)}else if(o.call(this,e)){e.preventDefault(),e.stopPropagation(),Tt.getComponent("PlayToggle").prototype.handleClick.call(this,e)}},e.canPlayType=function(e){for(var t,i=0,n=this.options_.techOrder;i<n.length;i++){var r=n[i],a=Ji.getTech(r);if(a=a||Tt.getComponent(r)){if(a.isSupported()&&(t=a.canPlayType(e)))return t}else g.error('The "'+r+'" tech is undefined. Skipped browser support check for that tech.')}return""},e.selectSource=function(e){function t(e,i,n){var r;return e.some(function(t){return i.some(function(e){if(r=n(t,e))return!0})}),r}function i(e,t){var i=e[0];if(e[1].canPlaySource(t,r.options_[i.toLowerCase()]))return{source:t,tech:i}}var n,r=this,a=this.options_.techOrder.map(function(e){return[e,Ji.getTech(e)]}).filter(function(e){var t=e[0],i=e[1];return i?i.isSupported():(g.error('The "'+t+'" tech is undefined. Skipped browser support check for that tech.'),!1)});return(this.options_.sourceOrder?t(e,a,(n=i,function(e,t){return n(t,e)})):t(a,e,i))||!1},e.src=function(e){var i=this;if("undefined"==typeof e)return this.cache_.src||"";var n=function t(e){if(Array.isArray(e)){var i=[];e.forEach(function(e){e=t(e),Array.isArray(e)?i=i.concat(e):k(e)&&i.push(e)}),e=i}else e="string"==typeof e&&e.trim()?[hn({src:e})]:k(e)&&"string"==typeof e.src&&e.src&&e.src.trim()?[hn(e)]:[];return e}(e);n.length?(this.changingSrc_=!0,this.cache_.sources=n,this.updateSourceCaches_(n[0]),nn(this,n[0],function(e,t){if(i.middleware_=t,i.cache_.sources=n,i.updateSourceCaches_(e),i.src_(e))return 1<n.length?i.src(n.slice(1)):(i.changingSrc_=!1,i.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0),void i.triggerReady());!function(e,t){e.forEach(function(e){return e.setTech&&e.setTech(t)})}(t,i.tech_)})):this.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0)},e.src_=function(e){var t=this,i=this.selectSource([e]);return!i||(function(e,t){return mt(e)===mt(t)}(i.tech,this.techName_)?this.ready(function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",e):this.techCall_("src",e.src),this.changingSrc_=!1},!0):(this.changingSrc_=!0,this.loadTech_(i.tech,i.source),this.tech_.ready(function(){t.changingSrc_=!1})),!1)},e.load=function(){this.techCall_("load")},e.reset=function(){var e=this,t=this.options_.Promise||h.Promise;this.paused()||!t?this.doReset_():Ot(this.play().then(function(){return e.doReset_()}))},e.doReset_=function(){this.tech_&&this.tech_.clearTracks("text"),this.resetCache_(),this.poster(""),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset"),this.resetControlBarUI_(),lt(this)&&this.trigger("playerreset")},e.resetControlBarUI_=function(){this.resetProgressBar_(),this.resetPlaybackRate_(),this.resetVolumeBar_()},e.resetProgressBar_=function(){this.currentTime(0);var e=this.controlBar,t=e.durationDisplay,i=e.remainingTimeDisplay;t&&t.updateContent(),i&&i.updateContent()},e.resetPlaybackRate_=function(){this.playbackRate(this.defaultPlaybackRate()),this.handleTechRateChange_()},e.resetVolumeBar_=function(){this.volume(1),this.trigger("volumechange")},e.currentSources=function(){var e=this.currentSource(),t=[];return 0!==Object.keys(e).length&&t.push(e),this.cache_.sources||t},e.currentSource=function(){return this.cache_.source||{}},e.currentSrc=function(){return this.currentSource()&&this.currentSource().src||""},e.currentType=function(){return this.currentSource()&&this.currentSource().type||""},e.preload=function(e){return void 0!==e?(this.techCall_("setPreload",e),void(this.options_.preload=e)):this.techGet_("preload")},e.autoplay=function(e){if(void 0===e)return this.options_.autoplay||!1;var t;"string"==typeof e&&/(any|play|muted)/.test(e)?(this.options_.autoplay=e,this.manualAutoplay_(e),t=!1):this.options_.autoplay=!!e,t="undefined"==typeof t?this.options_.autoplay:t,this.tech_&&this.techCall_("setAutoplay",t)},e.playsinline=function(e){return void 0!==e?(this.techCall_("setPlaysinline",e),this.options_.playsinline=e,this):this.techGet_("playsinline")},e.loop=function(e){return void 0!==e?(this.techCall_("setLoop",e),void(this.options_.loop=e)):this.techGet_("loop")},e.poster=function(e){if(void 0===e)return this.poster_;(e=e||"")!==this.poster_&&(this.poster_=e,this.techCall_("setPoster",e),this.isPosterFromTech_=!1,this.trigger("posterchange"))},e.handleTechPosterChange_=function(){if((!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster){var e=this.tech_.poster()||"";e!==this.poster_&&(this.poster_=e,this.isPosterFromTech_=!0,this.trigger("posterchange"))}},e.controls=function(e){if(void 0===e)return!!this.controls_;e=!!e,this.controls_!==e&&(this.controls_=e,this.usingNativeControls()&&this.techCall_("setControls",e),this.controls_?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))},e.usingNativeControls=function(e){if(void 0===e)return!!this.usingNativeControls_;e=!!e,this.usingNativeControls_!==e&&(this.usingNativeControls_=e,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))},e.error=function(e){if(void 0===e)return this.error_||null;if(this.options_.suppressNotSupportedError&&e&&4===e.code){var t=function(){this.error(e)};return this.options_.suppressNotSupportedError=!1,this.any(["click","touchstart"],t),void this.one("loadstart",function(){this.off(["click","touchstart"],t)})}if(null===e)return this.error_=e,this.removeClass("vjs-error"),void(this.errorDisplay&&this.errorDisplay.close());this.error_=new xt(e),this.addClass("vjs-error"),g.error("(CODE:"+this.error_.code+" "+xt.errorTypes[this.error_.code]+")",this.error_.message,this.error_),this.trigger("error")},e.reportUserActivity=function(e){this.userActivity_=!0},e.userActive=function(e){if(void 0===e)return this.userActive_;if((e=!!e)!==this.userActive_){if(this.userActive_=e,this.userActive_)return this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),void this.trigger("useractive");this.tech_&&this.tech_.one("mousemove",function(e){e.stopPropagation(),e.preventDefault()}),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}},e.listenForUserActivity_=function(){function e(e){r(),this.clearInterval(t)}var t,i,n,r=$e(this,this.reportUserActivity);this.on("mousedown",function(){r(),this.clearInterval(t),t=this.setInterval(r,250)}),this.on("mousemove",function(e){e.screenX===i&&e.screenY===n||(i=e.screenX,n=e.screenY,r())}),this.on("mouseup",e),this.on("mouseleave",e);var a,s=this.getChild("controlBar");!s||K||M||(s.on("mouseenter",function(e){this.player().cache_.inactivityTimeout=this.player().options_.inactivityTimeout,this.player().options_.inactivityTimeout=0}),s.on("mouseleave",function(e){this.player().options_.inactivityTimeout=this.player().cache_.inactivityTimeout})),this.on("keydown",r),this.on("keyup",r),this.setInterval(function(){if(this.userActivity_){this.userActivity_=!1,this.userActive(!0),this.clearTimeout(a);var e=this.options_.inactivityTimeout;e<=0||(a=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},e))}},250)},e.playbackRate=function(e){if(void 0===e)return this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1;this.techCall_("setPlaybackRate",e)},e.defaultPlaybackRate=function(e){return void 0!==e?this.techCall_("setDefaultPlaybackRate",e):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1},e.isAudio=function(e){if(void 0===e)return!!this.isAudio_;this.isAudio_=!!e},e.addTextTrack=function(e,t,i){if(this.tech_)return this.tech_.addTextTrack(e,t,i)},e.addRemoteTextTrack=function(e,t){if(this.tech_)return this.tech_.addRemoteTextTrack(e,t)},e.removeRemoteTextTrack=function(e){void 0===e&&(e={});var t=e.track;if(t=t||e,this.tech_)return this.tech_.removeRemoteTextTrack(t)},e.getVideoPlaybackQuality=function(){return this.techGet_("getVideoPlaybackQuality")},e.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},e.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},e.language=function(e){if(void 0===e)return this.language_;this.language_!==String(e).toLowerCase()&&(this.language_=String(e).toLowerCase(),lt(this)&&this.trigger("languagechange"))},e.languages=function(){return gt(l.prototype.options_.languages,this.languages_)},e.toJSON=function(){var e=gt(this.options_),t=e.tracks;e.tracks=[];for(var i=0;i<t.length;i++){var n=t[i];(n=gt(n)).player=void 0,e.tracks[i]=n}return e},e.createModal=function(e,t){var i=this;(t=t||{}).content=e||"";var n=new Bt(this,t);return this.addChild(n),n.on("dispose",function(){i.removeChild(n)}),n.open(),n},e.updateCurrentBreakpoint_=function(){if(this.responsive())for(var e=this.currentBreakpoint(),t=this.currentWidth(),i=0;i<$r.length;i++){var n=$r[i];if(t<=this.breakpoints_[n]){if(e===n)return;e&&this.removeClass(Jr[e]),this.addClass(Jr[n]),this.breakpoint_=n;break}}},e.removeCurrentBreakpoint_=function(){var e=this.currentBreakpointClass();this.breakpoint_="",e&&this.removeClass(e)},e.breakpoints=function(e){return void 0===e||(this.breakpoint_="",this.breakpoints_=S({},Zr,e),this.updateCurrentBreakpoint_()),S(this.breakpoints_)},e.responsive=function(e){return void 0===e?this.responsive_:(e=Boolean(e))!==this.responsive_?((this.responsive_=e)?(this.on("playerresize",this.updateCurrentBreakpoint_),this.updateCurrentBreakpoint_()):(this.off("playerresize",this.updateCurrentBreakpoint_),this.removeCurrentBreakpoint_()),e):void 0},e.currentBreakpoint=function(){return this.breakpoint_},e.currentBreakpointClass=function(){return Jr[this.breakpoint_]||""},e.loadMedia=function(e,t){var i=this;if(e&&"object"==typeof e){this.reset(),this.cache_.media=gt(e);var n=this.cache_.media,r=n.artwork,a=n.poster,s=n.src,o=n.textTracks;!r&&a&&(this.cache_.media.artwork=[{src:a,type:cn(a)}]),s&&this.src(s),a&&this.poster(a),Array.isArray(o)&&o.forEach(function(e){return i.addRemoteTextTrack(e,!1)}),this.ready(t)}},e.getMedia=function(){if(this.cache_.media)return gt(this.cache_.media);var e=this.poster(),t={src:this.currentSources(),textTracks:Array.prototype.map.call(this.remoteTextTracks(),function(e){return{kind:e.kind,label:e.label,language:e.language,src:e.src}})};return e&&(t.poster=e,t.artwork=[{src:t.poster,type:cn(t.poster)}]),t},l.getTagSettings=function(e){var t={sources:[],tracks:[]},i=de(e),n=i["data-setup"];if(se(e,"vjs-fill")&&(i.fill=!0),se(e,"vjs-fluid")&&(i.fluid=!0),null!==n){var r=Pt(n||"{}"),a=r[0],s=r[1];a&&g.error(a),S(i,s)}if(S(t,i),e.hasChildNodes())for(var o=e.childNodes,u=0,l=o.length;u<l;u++){var c=o[u],d=c.nodeName.toLowerCase();"source"===d?t.sources.push(de(c)):"track"===d&&t.tracks.push(de(c))}return t},e.flexNotSupported_=function(){var e=p.createElement("i");return!("flexBasis"in e.style||"webkitFlexBasis"in e.style||"mozFlexBasis"in e.style||"msFlexBasis"in e.style||"msFlexOrder"in e.style)},e.debug=function(e){if(void 0===e)return this.debugEnabled_;e?(this.trigger("debugon"),this.previousLogLevel_=this.log.level,this.log.level("debug"),this.debugEnabled_=!0):(this.trigger("debugoff"),this.log.level(this.previousLogLevel_),this.previousLogLevel_=void 0,this.debugEnabled_=!1)},l}(Tt);Ti.names.forEach(function(e){var t=Ti[e];ea.prototype[t.getterName]=function(){return this.tech_?this.tech_[t.getterName]():(this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName])}}),ea.prototype.crossorigin=ea.prototype.crossOrigin,ea.players={};var ta=h.navigator;ea.prototype.options_={techOrder:Ji.defaultTechOrder_,html5:{},inactivityTimeout:2e3,playbackRates:[],liveui:!1,children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","liveTracker","controlBar","errorDisplay","textTrackSettings","resizeManager"],language:ta&&(ta.languages&&ta.languages[0]||ta.userLanguage||ta.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",fullscreen:{options:{navigationUI:"hide"}},breakpoints:{},responsive:!1},["ended","seeking","seekable","networkState","readyState"].forEach(function(e){ea.prototype[e]=function(){return this.techGet_(e)}}),Qr.forEach(function(e){ea.prototype["handleTech"+mt(e)+"_"]=function(){return this.trigger(e)}}),Tt.registerComponent("Player",ea);var ia=i(function(i){function n(e,t){return i.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(e,t)}i.exports=n});function na(e){return ha.hasOwnProperty(e)}function ra(e){return na(e)?ha[e]:void 0}function aa(e,t){e[da]=e[da]||{},e[da][t]=!0}function sa(e,t,i){var n=(i?"before":"")+"pluginsetup";e.trigger(n,t),e.trigger(n+":"+t.name,t)}function oa(r,a){return a.prototype.name=r,function(){sa(this,{name:r,plugin:a,instance:null},!0);for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var n=la(a,[this].concat(t));return this[r]=function(){return n},sa(this,n.getEventHash()),n}}var ua=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}},la=i(function(n){function r(e,t,i){return ua()?n.exports=r=Reflect.construct:n.exports=r=function(e,t,i){var n=[null];n.push.apply(n,t);var r=new(Function.bind.apply(e,n));return i&&ia(r,i.prototype),r},r.apply(null,arguments)}n.exports=r}),ca="plugin",da="activePlugins_",ha={},pa=function(){function i(e){if(this.constructor===i)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=e,this.log||(this.log=this.player.log.createLogger(this.name)),dt(this),delete this.trigger,pt(this,this.constructor.defaultState),aa(e,this.name),this.dispose=$e(this,this.dispose),e.on("dispose",this.dispose)}var e=i.prototype;return e.version=function(){return this.constructor.VERSION},e.getEventHash=function(e){return void 0===e&&(e={}),e.name=this.name,e.plugin=this.constructor,e.instance=this,e},e.trigger=function(e,t){return void 0===t&&(t={}),Ke(this.eventBusEl_,e,this.getEventHash(t))},e.handleStateChanged=function(e){},e.dispose=function(){var e=this.name,t=this.player;this.trigger("dispose"),this.off(),t.off("dispose",this.dispose),t[da][e]=!1,this.player=this.state=null,t[e]=oa(e,ha[e])},i.isBasic=function(e){var t="string"==typeof e?ra(e):e;return"function"==typeof t&&!i.prototype.isPrototypeOf(t.prototype)},i.registerPlugin=function(e,t){if("string"!=typeof e)throw new Error('Illegal plugin name, "'+e+'", must be a string, was '+typeof e+".");if(na(e))g.warn('A plugin named "'+e+'" already exists. You may want to avoid re-registering plugins!');else if(ea.prototype.hasOwnProperty(e))throw new Error('Illegal plugin name, "'+e+'", cannot share a name with an existing player method!');if("function"!=typeof t)throw new Error('Illegal plugin for "'+e+'", must be a function, was '+typeof t+".");return ha[e]=t,e!==ca&&(i.isBasic(t)?ea.prototype[e]=function(t,i){function n(){sa(this,{name:t,plugin:i,instance:null},!0);var e=i.apply(this,arguments);return aa(this,t),sa(this,{name:t,plugin:i,instance:e}),e}return Object.keys(i).forEach(function(e){n[e]=i[e]}),n}(e,t):ea.prototype[e]=oa(e,t)),t},i.deregisterPlugin=function(e){if(e===ca)throw new Error("Cannot de-register base plugin.");na(e)&&(delete ha[e],delete ea.prototype[e])},i.getPlugins=function(e){var i;return void 0===e&&(e=Object.keys(ha)),e.forEach(function(e){var t=ra(e);t&&((i=i||{})[e]=t)}),i},i.getPluginVersion=function(e){var t=ra(e);return t&&t.VERSION||""},i}();pa.getPlugin=ra,pa.BASE_PLUGIN_NAME=ca,pa.registerPlugin(ca,pa),ea.prototype.usingPlugin=function(e){return!!this[da]&&!0===this[da][e]},ea.prototype.hasPlugin=function(e){return!!na(e)};var fa=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ia(e,t)},ma=function(e){return 0===e.indexOf("#")?e.slice(1):e};function ga(e,i,t){var n=ga.getPlayer(e);if(n)return i&&g.warn('Player "'+e+'" is already initialised. Options will not be applied.'),t&&n.ready(t),n;var r="string"==typeof e?Ie("#"+ma(e)):e;if(!ee(r))throw new TypeError("The element or ID supplied is not valid. (videojs)");r.ownerDocument.defaultView&&r.ownerDocument.body.contains(r)||g.warn("The element supplied is not included in the DOM"),i=i||{},ga.hooks("beforesetup").forEach(function(e){var t=e(r,gt(i));k(t)&&!Array.isArray(t)?i=gt(i,t):g.error("please return an object in beforesetup hooks")});var a=Tt.getComponent("Player");return n=new a(r,i,t),ga.hooks("setup").forEach(function(e){return e(n)}),n}if(ga.hooks_={},ga.hooks=function(e,t){return ga.hooks_[e]=ga.hooks_[e]||[],t&&(ga.hooks_[e]=ga.hooks_[e].concat(t)),ga.hooks_[e]},ga.hook=function(e,t){ga.hooks(e,t)},ga.hookOnce=function(i,e){ga.hooks(i,[].concat(e).map(function(t){return function e(){return ga.removeHook(i,e),t.apply(void 0,arguments)}}))},ga.removeHook=function(e,t){var i=ga.hooks(e).indexOf(t);return!(i<=-1)&&(ga.hooks_[e]=ga.hooks_[e].slice(),ga.hooks_[e].splice(i,1),!0)},!0!==h.VIDEOJS_NO_DYNAMIC_STYLE&&Z()){var va=Ie(".vjs-styles-defaults");if(!va){va=Re("vjs-styles-defaults");var ya=Ie("head");ya&&ya.insertBefore(va,ya.firstChild),Me(va,"\n .video-js {\n width: 300px;\n height: 150px;\n }\n\n .vjs-fluid {\n padding-top: 56.25%\n }\n ")}}Oe(1,ga),ga.VERSION=d,ga.options=ea.prototype.options_,ga.getPlayers=function(){return ea.players},ga.getPlayer=function(e){var t,i=ea.players;if("string"==typeof e){var n=ma(e),r=i[n];if(r)return r;t=Ie("#"+n)}else t=e;if(ee(t)){var a=t,s=a.player,o=a.playerId;if(s||i[o])return s||i[o]}},ga.getAllPlayers=function(){return Object.keys(ea.players).map(function(e){return ea.players[e]}).filter(Boolean)},ga.players=ea.players,ga.getComponent=Tt.getComponent,ga.registerComponent=function(e,t){Ji.isTech(t)&&g.warn("The "+e+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),Tt.registerComponent.call(Tt,e,t)},ga.getTech=Ji.getTech,ga.registerTech=Ji.registerTech,ga.use=function(e,t){Zi[e]=Zi[e]||[],Zi[e].push(t)},Object.defineProperty(ga,"middleware",{value:{},writeable:!1,enumerable:!0}),Object.defineProperty(ga.middleware,"TERMINATOR",{value:tn,writeable:!1,enumerable:!0}),ga.browser=Y,ga.TOUCH_ENABLED=z,ga.extend=function(e,t){void 0===t&&(t={});var i=function(){e.apply(this,arguments)},n={};for(var r in"object"==typeof t?(t.constructor!==Object.prototype.constructor&&(i=t.constructor),n=t):"function"==typeof t&&(i=t),fa(i,e),e&&(i.super_=e),n)n.hasOwnProperty(r)&&(i.prototype[r]=n[r]);return i},ga.mergeOptions=gt,ga.bind=$e,ga.registerPlugin=pa.registerPlugin,ga.deregisterPlugin=pa.deregisterPlugin,ga.plugin=function(e,t){return g.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),pa.registerPlugin(e,t)},ga.getPlugins=pa.getPlugins,ga.getPlugin=pa.getPlugin,ga.getPluginVersion=pa.getPluginVersion,ga.addLanguage=function(e,t){var i;return e=(""+e).toLowerCase(),ga.options.languages=gt(ga.options.languages,((i={})[e]=t,i)),ga.options.languages[e]},ga.log=g,ga.createLogger=v,ga.createTimeRange=ga.createTimeRanges=Ct,ga.formatTime=xn,ga.setFormatTime=function(e){In=e},ga.resetFormatTime=function(){In=Cn},ga.parseUrl=Ht,ga.isCrossOrigin=Gt,ga.EventTarget=Ze,ga.on=Ge,ga.one=Qe,ga.off=Xe,ga.trigger=Ke,ga.xhr=ui,ga.TextTrack=mi,ga.AudioTrack=gi,ga.VideoTrack=vi,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach(function(e){ga[e]=function(){return g.warn("videojs."+e+"() is deprecated; use videojs.dom."+e+"() instead"),Ae[e].apply(null,arguments)}}),ga.computedStyle=E,ga.dom=Ae,ga.url=ni,ga.defineLazyProperty=Wr;var _a=t(i(function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.default=e.exports,e.exports.__esModule=!0})),ba=i(function(i){function n(e,t){return i.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i.exports.default=i.exports,i.exports.__esModule=!0,n(e,t)}i.exports=n,i.exports.default=i.exports,i.exports.__esModule=!0});t(ba);function Ta(e,t){return/^[a-z]+:/i.test(t)?t:(/\/\//i.test(e)||(e=Ca.buildAbsoluteURL(Ia.location&&Ia.location.href||"",e)),Ca.buildAbsoluteURL(e,t))}var Sa=t(i(function(e){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ba(e,t)},e.exports.default=e.exports,e.exports.__esModule=!0})),ka="undefined"!=typeof e?e:"undefined"!=typeof window?window:{},wa="undefined"!=typeof document?document:ka["__GLOBAL_DOCUMENT_CACHE@4"]||(ka["__GLOBAL_DOCUMENT_CACHE@4"]=r),Ea="undefined"!=typeof window?window:"undefined"!=typeof e?e:"undefined"!=typeof self?self:{},Ca=i(function(e,t){var i,c,n,r,d;i=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/?#]*\/)*[^;?#]*)?(;[^?#]*)?(\?[^#]*)?(#.*)?$/,c=/^([^\/?#]*)(.*)$/,n=/(?:\/|^)\.(?=\/)/g,r=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,d={buildAbsoluteURL:function(e,t,i){if(i=i||{},e=e.trim(),!(t=t.trim())){if(!i.alwaysNormalize)return e;var n=d.parseURL(e);if(!n)throw new Error("Error trying to parse base URL.");return n.path=d.normalizePath(n.path),d.buildURLFromParts(n)}var r=d.parseURL(t);if(!r)throw new Error("Error trying to parse relative URL.");if(r.scheme)return i.alwaysNormalize?(r.path=d.normalizePath(r.path),d.buildURLFromParts(r)):t;var a=d.parseURL(e);if(!a)throw new Error("Error trying to parse base URL.");if(!a.netLoc&&a.path&&"/"!==a.path[0]){var s=c.exec(a.path);a.netLoc=s[1],a.path=s[2]}a.netLoc&&!a.path&&(a.path="/");var o={scheme:a.scheme,netLoc:r.netLoc,path:null,params:r.params,query:r.query,fragment:r.fragment};if(!r.netLoc&&(o.netLoc=a.netLoc,"/"!==r.path[0]))if(r.path){var u=a.path,l=u.substring(0,u.lastIndexOf("/")+1)+r.path;o.path=d.normalizePath(l)}else o.path=a.path,r.params||(o.params=a.params,r.query||(o.query=a.query));return null===o.path&&(o.path=i.alwaysNormalize?d.normalizePath(r.path):r.path),d.buildURLFromParts(o)},parseURL:function(e){var t=i.exec(e);return t?{scheme:t[1]||"",netLoc:t[2]||"",path:t[3]||"",params:t[4]||"",query:t[5]||"",fragment:t[6]||""}:null},normalizePath:function(e){for(e=e.split("").reverse().join("").replace(n,"");e.length!==(e=e.replace(r,"")).length;);return e.split("").reverse().join("")},buildURLFromParts:function(e){return e.scheme+e.netLoc+e.path+e.params+e.query+e.fragment}},e.exports=d}),Ia="undefined"!=typeof window?window:"undefined"!=typeof e?e:"undefined"!=typeof self?self:{},xa=i(function(i){function n(e,t){return i.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i.exports.default=i.exports,i.exports.__esModule=!0,n(e,t)}i.exports=n,i.exports.default=i.exports,i.exports.__esModule=!0});t(xa);var Aa=t(i(function(e){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,xa(e,t)},e.exports.default=e.exports,e.exports.__esModule=!0})),Pa=function(){function e(){this.listeners={}}var t=e.prototype;return t.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},t.off=function(e,t){if(!this.listeners[e])return!1;var i=this.listeners[e].indexOf(t);return this.listeners[e]=this.listeners[e].slice(0),this.listeners[e].splice(i,1),-1<i},t.trigger=function(e,t){var i=this.listeners[e];if(i)if(2===arguments.length)for(var n=i.length,r=0;r<n;++r)i[r].call(this,t);else for(var a=Array.prototype.slice.call(arguments,1),s=i.length,o=0;o<s;++o)i[o].apply(this,a)},t.dispose=function(){this.listeners={}},t.pipe=function(t){this.on("data",function(e){t.push(e)})},e}(),La=t(i(function(e){function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},e.exports.default=e.exports,e.exports.__esModule=!0,t.apply(this,arguments)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0})),Oa=t(i(function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.default=e.exports,e.exports.__esModule=!0})),Da=function(e){return Ia.atob?Ia.atob(e):Buffer.from(e,"base64").toString("binary")};function Ra(e){for(var t=Da(e),i=new Uint8Array(t.length),n=0;n<t.length;n++)i[n]=t.charCodeAt(n);return i}
20
- /*! @name m3u8-parser @version 4.5.2 @license Apache-2.0 */function Ma(e){for(var t,i=e.split(new RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))')),n={},r=i.length;r--;)""!==i[r]&&((t=/([^=]*)=(.*)/.exec(i[r]).slice(1))[0]=t[0].replace(/^\s+|\s+$/g,""),t[1]=t[1].replace(/^\s+|\s+$/g,""),t[1]=t[1].replace(/^['"](.*)['"]$/g,"$1"),n[t[0]]=t[1]);return n}function Na(e){return ja.test(e)?"hls":Va.test(e)?"dash":"application/vnd.videojs.vhs+json"===e?"vhs-json":null}var Ua=function(t){function e(){var e;return(e=t.call(this)||this).buffer="",e}return Aa(e,t),e.prototype.push=function(e){var t;for(this.buffer+=e,t=this.buffer.indexOf("\n");-1<t;t=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,t)),this.buffer=this.buffer.substring(t+1)},e}(Pa),Ba=function(t){function e(){var e;return(e=t.call(this)||this).customParsers=[],e.tagMappers=[],e}Aa(e,t);var i=e.prototype;return i.push=function(n){var u,l,c=this;0!==(n=n.trim()).length&&("#"===n[0]?this.tagMappers.reduce(function(e,t){var i=t(n);return i===n?e:e.concat([i])},[n]).forEach(function(e){for(var t=0;t<c.customParsers.length;t++)if(c.customParsers[t].call(c,e))return;if(0===e.indexOf("#EXT"))if(e=e.replace("\r",""),u=/^#EXTM3U/.exec(e))c.trigger("data",{type:"tag",tagType:"m3u"});else{if(u=/^#EXTINF:?([0-9\.]*)?,?(.*)?$/.exec(e))return l={type:"tag",tagType:"inf"},u[1]&&(l.duration=parseFloat(u[1])),u[2]&&(l.title=u[2]),void c.trigger("data",l);if(u=/^#EXT-X-TARGETDURATION:?([0-9.]*)?/.exec(e))return l={type:"tag",tagType:"targetduration"},u[1]&&(l.duration=parseInt(u[1],10)),void c.trigger("data",l);if(u=/^#ZEN-TOTAL-DURATION:?([0-9.]*)?/.exec(e))return l={type:"tag",tagType:"totalduration"},u[1]&&(l.duration=parseInt(u[1],10)),void c.trigger("data",l);if(u=/^#EXT-X-VERSION:?([0-9.]*)?/.exec(e))return l={type:"tag",tagType:"version"},u[1]&&(l.version=parseInt(u[1],10)),void c.trigger("data",l);if(u=/^#EXT-X-MEDIA-SEQUENCE:?(\-?[0-9.]*)?/.exec(e))return l={type:"tag",tagType:"media-sequence"},u[1]&&(l.number=parseInt(u[1],10)),void c.trigger("data",l);if(u=/^#EXT-X-DISCONTINUITY-SEQUENCE:?(\-?[0-9.]*)?/.exec(e))return l={type:"tag",tagType:"discontinuity-sequence"},u[1]&&(l.number=parseInt(u[1],10)),void c.trigger("data",l);if(u=/^#EXT-X-PLAYLIST-TYPE:?(.*)?$/.exec(e))return l={type:"tag",tagType:"playlist-type"},u[1]&&(l.playlistType=u[1]),void c.trigger("data",l);if(u=/^#EXT-X-BYTERANGE:?([0-9.]*)?@?([0-9.]*)?/.exec(e))return l={type:"tag",tagType:"byterange"},u[1]&&(l.length=parseInt(u[1],10)),u[2]&&(l.offset=parseInt(u[2],10)),void c.trigger("data",l);if(u=/^#EXT-X-ALLOW-CACHE:?(YES|NO)?/.exec(e))return l={type:"tag",tagType:"allow-cache"},u[1]&&(l.allowed=!/NO/.test(u[1])),void c.trigger("data",l);if(u=/^#EXT-X-MAP:?(.*)$/.exec(e)){if(l={type:"tag",tagType:"map"},u[1]){var i=Ma(u[1]);if(i.URI&&(l.uri=i.URI),i.BYTERANGE){var n=i.BYTERANGE.split("@"),r=n[0],a=n[1];l.byterange={},r&&(l.byterange.length=parseInt(r,10)),a&&(l.byterange.offset=parseInt(a,10))}}c.trigger("data",l)}else if(u=/^#EXT-X-STREAM-INF:?(.*)$/.exec(e)){if(l={type:"tag",tagType:"stream-inf"},u[1]){if(l.attributes=Ma(u[1]),l.attributes.RESOLUTION){var s=l.attributes.RESOLUTION.split("x"),o={};s[0]&&(o.width=parseInt(s[0],10)),s[1]&&(o.height=parseInt(s[1],10)),l.attributes.RESOLUTION=o}l.attributes.BANDWIDTH&&(l.attributes.BANDWIDTH=parseInt(l.attributes.BANDWIDTH,10)),l.attributes["PROGRAM-ID"]&&(l.attributes["PROGRAM-ID"]=parseInt(l.attributes["PROGRAM-ID"],10))}c.trigger("data",l)}else{if(u=/^#EXT-X-MEDIA:?(.*)$/.exec(e))return l={type:"tag",tagType:"media"},u[1]&&(l.attributes=Ma(u[1])),void c.trigger("data",l);if(u=/^#EXT-X-ENDLIST/.exec(e))c.trigger("data",{type:"tag",tagType:"endlist"});else if(u=/^#EXT-X-DISCONTINUITY/.exec(e))c.trigger("data",{type:"tag",tagType:"discontinuity"});else{if(u=/^#EXT-X-PROGRAM-DATE-TIME:?(.*)$/.exec(e))return l={type:"tag",tagType:"program-date-time"},u[1]&&(l.dateTimeString=u[1],l.dateTimeObject=new Date(u[1])),void c.trigger("data",l);if(u=/^#EXT-X-KEY:?(.*)$/.exec(e))return l={type:"tag",tagType:"key"},u[1]&&(l.attributes=Ma(u[1]),l.attributes.IV&&("0x"===l.attributes.IV.substring(0,2).toLowerCase()&&(l.attributes.IV=l.attributes.IV.substring(2)),l.attributes.IV=l.attributes.IV.match(/.{8}/g),l.attributes.IV[0]=parseInt(l.attributes.IV[0],16),l.attributes.IV[1]=parseInt(l.attributes.IV[1],16),l.attributes.IV[2]=parseInt(l.attributes.IV[2],16),l.attributes.IV[3]=parseInt(l.attributes.IV[3],16),l.attributes.IV=new Uint32Array(l.attributes.IV))),void c.trigger("data",l);if(u=/^#EXT-X-START:?(.*)$/.exec(e))return l={type:"tag",tagType:"start"},u[1]&&(l.attributes=Ma(u[1]),l.attributes["TIME-OFFSET"]=parseFloat(l.attributes["TIME-OFFSET"]),l.attributes.PRECISE=/YES/.test(l.attributes.PRECISE)),void c.trigger("data",l);if(u=/^#EXT-X-CUE-OUT-CONT:?(.*)?$/.exec(e))return l={type:"tag",tagType:"cue-out-cont"},u[1]?l.data=u[1]:l.data="",void c.trigger("data",l);if(u=/^#EXT-X-CUE-OUT:?(.*)?$/.exec(e))return l={type:"tag",tagType:"cue-out"},u[1]?l.data=u[1]:l.data="",void c.trigger("data",l);if(u=/^#EXT-X-CUE-IN:?(.*)?$/.exec(e))return l={type:"tag",tagType:"cue-in"},u[1]?l.data=u[1]:l.data="",void c.trigger("data",l);c.trigger("data",{type:"tag",data:e.slice(4)})}}}else c.trigger("data",{type:"comment",text:e.slice(1)})}):this.trigger("data",{type:"uri",uri:n}))},i.addParser=function(e){var t=this,i=e.expression,n=e.customType,r=e.dataParser,a=e.segment;"function"!=typeof r&&(r=function(e){return e}),this.customParsers.push(function(e){if(i.exec(e))return t.trigger("data",{type:"custom",data:r(e),customType:n,segment:a}),!0})},i.addTagMapper=function(e){var t=e.expression,i=e.map;this.tagMappers.push(function(e){return t.test(e)?i(e):e})},e}(Pa),Fa=function(t){function e(){var e;(e=t.call(this)||this).lineStream=new Ua,e.parseStream=new Ba,e.lineStream.pipe(e.parseStream);var r,a,s=Oa(e),o=[],u={},l={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},c=0;e.manifest={allowCache:!0,discontinuityStarts:[],segments:[]};var d=0;return e.parseStream.on("data",function(t){var i,n;({tag:function(){({"allow-cache":function(){this.manifest.allowCache=t.allowed,"allowed"in t||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange:function(){var e={};"length"in t&&((u.byterange=e).length=t.length,"offset"in t||(t.offset=d)),"offset"in t&&((u.byterange=e).offset=t.offset),d=e.offset+e.length},endlist:function(){this.manifest.endList=!0},inf:function(){"mediaSequence"in this.manifest||(this.manifest.mediaSequence=0,this.trigger("info",{message:"defaulting media sequence to zero"})),"discontinuitySequence"in this.manifest||(this.manifest.discontinuitySequence=0,this.trigger("info",{message:"defaulting discontinuity sequence to zero"})),0<t.duration&&(u.duration=t.duration),0===t.duration&&(u.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=o},key:function(){if(t.attributes)if("NONE"!==t.attributes.METHOD)if(t.attributes.URI){if("urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"===t.attributes.KEYFORMAT){return-1===["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(t.attributes.METHOD)?void this.trigger("warn",{message:"invalid key method provided for Widevine"}):("SAMPLE-AES-CENC"===t.attributes.METHOD&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),"data:text/plain;base64,"!==t.attributes.URI.substring(0,23)?void this.trigger("warn",{message:"invalid key URI provided for Widevine"}):t.attributes.KEYID&&"0x"===t.attributes.KEYID.substring(0,2)?void(this.manifest.contentProtection={"com.widevine.alpha":{attributes:{schemeIdUri:t.attributes.KEYFORMAT,keyId:t.attributes.KEYID.substring(2)},pssh:Ra(t.attributes.URI.split(",")[1])}}):void this.trigger("warn",{message:"invalid key ID provided for Widevine"}))}t.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),a={method:t.attributes.METHOD||"AES-128",uri:t.attributes.URI},"undefined"!=typeof t.attributes.IV&&(a.iv=t.attributes.IV)}else this.trigger("warn",{message:"ignoring key declaration without URI"});else a=null;else this.trigger("warn",{message:"ignoring key declaration without attribute list"})},"media-sequence":function(){isFinite(t.number)?this.manifest.mediaSequence=t.number:this.trigger("warn",{message:"ignoring invalid media sequence: "+t.number})},"discontinuity-sequence":function(){isFinite(t.number)?(this.manifest.discontinuitySequence=t.number,c=t.number):this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+t.number})},"playlist-type":function(){/VOD|EVENT/.test(t.playlistType)?this.manifest.playlistType=t.playlistType:this.trigger("warn",{message:"ignoring unknown playlist type: "+t.playlist})},map:function(){r={},t.uri&&(r.uri=t.uri),t.byterange&&(r.byterange=t.byterange)},"stream-inf":function(){this.manifest.playlists=o,this.manifest.mediaGroups=this.manifest.mediaGroups||l,t.attributes?(u.attributes||(u.attributes={}),La(u.attributes,t.attributes)):this.trigger("warn",{message:"ignoring empty stream-inf attributes"})},media:function(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||l,t.attributes&&t.attributes.TYPE&&t.attributes["GROUP-ID"]&&t.attributes.NAME){var e=this.manifest.mediaGroups[t.attributes.TYPE];e[t.attributes["GROUP-ID"]]=e[t.attributes["GROUP-ID"]]||{},i=e[t.attributes["GROUP-ID"]],(n={default:/yes/i.test(t.attributes.DEFAULT)}).default?n.autoselect=!0:n.autoselect=/yes/i.test(t.attributes.AUTOSELECT),t.attributes.LANGUAGE&&(n.language=t.attributes.LANGUAGE),t.attributes.URI&&(n.uri=t.attributes.URI),t.attributes["INSTREAM-ID"]&&(n.instreamId=t.attributes["INSTREAM-ID"]),t.attributes.CHARACTERISTICS&&(n.characteristics=t.attributes.CHARACTERISTICS),t.attributes.FORCED&&(n.forced=/yes/i.test(t.attributes.FORCED)),i[t.attributes.NAME]=n}else this.trigger("warn",{message:"ignoring incomplete or missing media group"})},discontinuity:function(){c+=1,u.discontinuity=!0,this.manifest.discontinuityStarts.push(o.length)},"program-date-time":function(){"undefined"==typeof this.manifest.dateTimeString&&(this.manifest.dateTimeString=t.dateTimeString,this.manifest.dateTimeObject=t.dateTimeObject),u.dateTimeString=t.dateTimeString,u.dateTimeObject=t.dateTimeObject},targetduration:function(){!isFinite(t.duration)||t.duration<0?this.trigger("warn",{message:"ignoring invalid target duration: "+t.duration}):this.manifest.targetDuration=t.duration},totalduration:function(){!isFinite(t.duration)||t.duration<0?this.trigger("warn",{message:"ignoring invalid total duration: "+t.duration}):this.manifest.totalDuration=t.duration},start:function(){t.attributes&&!isNaN(t.attributes["TIME-OFFSET"])?this.manifest.start={timeOffset:t.attributes["TIME-OFFSET"],precise:t.attributes.PRECISE}:this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"})},"cue-out":function(){u.cueOut=t.data},"cue-out-cont":function(){u.cueOutCont=t.data},"cue-in":function(){u.cueIn=t.data}}[t.tagType]||function(){}).call(s)},uri:function(){u.uri=t.uri,o.push(u),!this.manifest.targetDuration||"duration"in u||(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),u.duration=this.manifest.targetDuration),a&&(u.key=a),u.timeline=c,r&&(u.map=r),u={}},comment:function(){},custom:function(){t.segment?(u.custom=u.custom||{},u.custom[t.customType]=t.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[t.customType]=t.data)}})[t.type].call(s)}),e}Aa(e,t);var i=e.prototype;return i.push=function(e){this.lineStream.push(e)},i.end=function(){this.lineStream.push("\n")},i.addParser=function(e){this.parseStream.addParser(e)},i.addTagMapper=function(e){this.parseStream.addTagMapper(e)},e}(Pa),ja=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i,Va=/^application\/dash\+xml/i,qa="undefined"!=typeof window?window:"undefined"!=typeof e?e:"undefined"!=typeof self?self:{},Ha={entityMap:{lt:"<",gt:">",amp:"&",quot:'"',apos:"'",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",times:"×",divide:"÷",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",euro:"€",trade:"™",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"}},Wa=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,za=new RegExp("[\\-\\.0-9"+Wa.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),Ga=new RegExp("^"+Wa.source+za.source+"*(?::"+Wa.source+za.source+"*)?$"),Xa=0,Ka=1,Qa=2,Ya=3,$a=4,Ja=5,Za=6,es=7;function ts(){}function is(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function ns(e,t,i,n,r,a){for(var s,o=++t,u=Xa;;){var l=e.charAt(o);switch(l){case"=":if(u===Ka)s=e.slice(t,o),u=Ya;else{if(u!==Qa)throw new Error("attribute equal must after attrName");u=Ya}break;case"'":case'"':if(u===Ya||u===Ka){if(u===Ka&&(a.warning('attribute value must after "="'),s=e.slice(t,o)),t=o+1,!(0<(o=e.indexOf(l,t))))throw new Error("attribute value no end '"+l+"' match");c=e.slice(t,o).replace(/&#?\w+;/g,r),i.add(s,c,t-1),u=Ja}else{if(u!=$a)throw new Error('attribute value must after "="');c=e.slice(t,o).replace(/&#?\w+;/g,r),i.add(s,c,t),a.warning('attribute "'+s+'" missed start quot('+l+")!!"),t=o+1,u=Ja}break;case"/":switch(u){case Xa:i.setTagName(e.slice(t,o));case Ja:case Za:case es:u=es,i.closed=!0;case $a:case Ka:case Qa:break;default:throw new Error("attribute invalid close char('/')")}break;case"":return a.error("unexpected end of input"),u==Xa&&i.setTagName(e.slice(t,o)),o;case">":switch(u){case Xa:i.setTagName(e.slice(t,o));case Ja:case Za:case es:break;case $a:case Ka:"/"===(c=e.slice(t,o)).slice(-1)&&(i.closed=!0,c=c.slice(0,-1));case Qa:u===Qa&&(c=s),u==$a?(a.warning('attribute "'+c+'" missed quot(")!!'),i.add(s,c.replace(/&#?\w+;/g,r),t)):("http://www.w3.org/1999/xhtml"===n[""]&&c.match(/^(?:disabled|checked|selected)$/i)||a.warning('attribute "'+c+'" missed value!! "'+c+'" instead!!'),i.add(c,c,t));break;case Ya:throw new Error("attribute value missed!!")}return o;case"€":l=" ";default:if(l<=" ")switch(u){case Xa:i.setTagName(e.slice(t,o)),u=Za;break;case Ka:s=e.slice(t,o),u=Qa;break;case $a:var c=e.slice(t,o).replace(/&#?\w+;/g,r);a.warning('attribute "'+c+'" missed quot(")!!'),i.add(s,c,t);case Ja:u=Za}else switch(u){case Qa:i.tagName;"http://www.w3.org/1999/xhtml"===n[""]&&s.match(/^(?:disabled|checked|selected)$/i)||a.warning('attribute "'+s+'" missed value!! "'+s+'" instead2!!'),i.add(s,s,t),t=o,u=Ka;break;case Ja:a.warning('attribute space is required"'+s+'"!!');case Za:u=Ka,t=o;break;case Ya:u=$a,t=o;break;case es:throw new Error("elements closed character '/' and '>' must be connected to")}}o++}}function rs(e,t,i){for(var n=e.tagName,r=null,a=e.length;a--;){var s=e[a],o=s.qName,u=s.value;if(0<(h=o.indexOf(":")))var l=s.prefix=o.slice(0,h),c=o.slice(h+1),d="xmlns"===l&&c;else l=null,d="xmlns"===(c=o)&&"";s.localName=c,!1!==d&&(null==r&&(r={},os(i,i={})),i[d]=r[d]=u,s.uri="http://www.w3.org/2000/xmlns/",t.startPrefixMapping(d,u))}for(a=e.length;a--;){(l=(s=e[a]).prefix)&&("xml"===l&&(s.uri="http://www.w3.org/XML/1998/namespace"),"xmlns"!==l&&(s.uri=i[l||""]))}var h;c=0<(h=n.indexOf(":"))?(l=e.prefix=n.slice(0,h),e.localName=n.slice(h+1)):(l=null,e.localName=n);var p=e.uri=i[l||""];if(t.startElement(p,c,n,e),!e.closed)return e.currentNSMap=i,e.localNSMap=r,!0;if(t.endElement(p,c,n),r)for(l in r)t.endPrefixMapping(l)}function as(e,t,i,n,r){if(/^(?:script|textarea)$/i.test(i)){var a=e.indexOf("</"+i+">",t),s=e.substring(t+1,a);if(/[&<]/.test(s))return/^script$/i.test(i)||(s=s.replace(/&#?\w+;/g,n)),r.characters(s,0,s.length),a}return t+1}function ss(e,t,i,n){var r=n[i];return null==r&&((r=e.lastIndexOf("</"+i+">"))<t&&(r=e.lastIndexOf("</"+i)),n[i]=r),r<t}function os(e,t){for(var i in e)t[i]=e[i]}function us(e,t,i,n){switch(e.charAt(t+2)){case"-":return"-"!==e.charAt(t+3)?-1:t<(r=e.indexOf("--\x3e",t+4))?(i.comment(e,t+4,r-t-4),r+3):(n.error("Unclosed comment"),-1);default:if("CDATA["==e.substr(t+3,6)){var r=e.indexOf("]]>",t+9);return i.startCDATA(),i.characters(e,t+9,r-t-9),i.endCDATA(),r+3}var a=function(e,t){var i,n=[],r=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;r.lastIndex=t,r.exec(e);for(;i=r.exec(e);)if(n.push(i),i[1])return n}(e,t),s=a.length;if(1<s&&/!doctype/i.test(a[0][0])){var o=a[1][0],u=!1,l=!1;3<s&&(/^public$/i.test(a[2][0])?(u=a[3][0],l=4<s&&a[4][0]):/^system$/i.test(a[2][0])&&(l=a[3][0]));var c=a[s-1];return i.startDTD(o,u&&u.replace(/^(['"])(.*?)\1$/,"$2"),l&&l.replace(/^(['"])(.*?)\1$/,"$2")),i.endDTD(),c.index+c[0].length}}return-1}function ls(e,t,i){var n=e.indexOf("?>",t);if(n){var r=e.substring(t,n).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(r){r[0].length;return i.processingInstruction(r[1],r[2]),n+2}return-1}return-1}function cs(e){}ts.prototype={parse:function(e,t,i){var n=this.domBuilder;n.startDocument(),os(t,t={}),function(i,e,n,r,a){function s(e){var t=e.slice(1,-1);return t in n?n[t]:"#"===t.charAt(0)?function(e){if(65535<e){var t=55296+((e-=65536)>>10),i=56320+(1023&e);return String.fromCharCode(t,i)}return String.fromCharCode(e)}(parseInt(t.substr(1).replace("x","0x"))):(a.error("entity not found:"+e),e)}function t(e){if(f<e){var t=i.substring(f,e).replace(/&#?\w+;/g,s);d&&o(f),r.characters(t,0,e-f),f=e}}function o(e,t){for(;l<=e&&(t=c.exec(i));)u=t.index,l=u+t[0].length,d.lineNumber++;d.columnNumber=e-u+1}var u=0,l=0,c=/.*(?:\r\n?|\n)|.*$/g,d=r.locator,h=[{currentNSMap:e}],p={},f=0;for(;;){try{var m=i.indexOf("<",f);if(m<0){if(!i.substr(f).match(/^\s*$/)){var g=r.doc,v=g.createTextNode(i.substr(f));g.appendChild(v),r.currentElement=v}return}switch(f<m&&t(m),i.charAt(m+1)){case"/":var y=i.indexOf(">",m+3),_=i.substring(m+2,y),b=h.pop();y<0?(_=i.substring(m+2).replace(/[\s<].*/,""),a.error("end tag name: "+_+" is not complete:"+b.tagName),y=m+1+_.length):_.match(/\s</)&&(_=_.replace(/[\s<].*/,""),a.error("end tag name: "+_+" maybe not complete"),y=m+1+_.length);var T=b.localNSMap,S=b.tagName==_;if(S||b.tagName&&b.tagName.toLowerCase()==_.toLowerCase()){if(r.endElement(b.uri,b.localName,_),T)for(var k in T)r.endPrefixMapping(k);S||a.fatalError("end tag name: "+_+" is not match the current start tagName:"+b.tagName)}else h.push(b);y++;break;case"?":d&&o(m),y=ls(i,m,r);break;case"!":d&&o(m),y=us(i,m,r,a);break;default:d&&o(m);var w=new cs,E=h[h.length-1].currentNSMap,C=(y=ns(i,m,w,E,s,a),w.length);if(!w.closed&&ss(i,y,w.tagName,p)&&(w.closed=!0,n.nbsp||a.warning("unclosed xml attribute")),d&&C){for(var I=is(d,{}),x=0;x<C;x++){var A=w[x];o(A.offset),A.locator=is(d,{})}r.locator=I,rs(w,r,E)&&h.push(w),r.locator=d}else rs(w,r,E)&&h.push(w);"http://www.w3.org/1999/xhtml"!==w.uri||w.closed?y++:y=as(i,y,w.tagName,s,r)}}catch(e){a.error("element parse error: "+e),y=-1}f<y?f=y:t(Math.max(m,f)+1)}}(e,t,i,n,this.errorHandler),n.endDocument()}},cs.prototype={setTagName:function(e){if(!Ga.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},add:function(e,t,i){if(!Ga.test(e))throw new Error("invalid attribute:"+e);this[this.length++]={qName:e,value:t,offset:i}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}};var ds={XMLReader:ts};function hs(e,t){for(var i in e)t[i]=e[i]}function ps(e,t){var i=e.prototype;if(!(i instanceof t)){var n=function(){};n.prototype=t.prototype,hs(i,n=new n),e.prototype=i=n}i.constructor!=e&&(i.constructor=e)}var fs="http://www.w3.org/1999/xhtml",ms={},gs=ms.ELEMENT_NODE=1,vs=ms.ATTRIBUTE_NODE=2,ys=ms.TEXT_NODE=3,_s=ms.CDATA_SECTION_NODE=4,bs=ms.ENTITY_REFERENCE_NODE=5,Ts=ms.ENTITY_NODE=6,Ss=ms.PROCESSING_INSTRUCTION_NODE=7,ks=ms.COMMENT_NODE=8,ws=ms.DOCUMENT_NODE=9,Es=ms.DOCUMENT_TYPE_NODE=10,Cs=ms.DOCUMENT_FRAGMENT_NODE=11,Is=ms.NOTATION_NODE=12,xs={},As={},Ps=(xs.INDEX_SIZE_ERR=(As[1]="Index size error",1),xs.DOMSTRING_SIZE_ERR=(As[2]="DOMString size error",2),xs.HIERARCHY_REQUEST_ERR=(As[3]="Hierarchy request error",3)),Ls=(xs.WRONG_DOCUMENT_ERR=(As[4]="Wrong document",4),xs.INVALID_CHARACTER_ERR=(As[5]="Invalid character",5),xs.NO_DATA_ALLOWED_ERR=(As[6]="No data allowed",6),xs.NO_MODIFICATION_ALLOWED_ERR=(As[7]="No modification allowed",7),xs.NOT_FOUND_ERR=(As[8]="Not found",8)),Os=(xs.NOT_SUPPORTED_ERR=(As[9]="Not supported",9),xs.INUSE_ATTRIBUTE_ERR=(As[10]="Attribute in use",10));xs.INVALID_STATE_ERR=(As[11]="Invalid state",11),xs.SYNTAX_ERR=(As[12]="Syntax error",12),xs.INVALID_MODIFICATION_ERR=(As[13]="Invalid modification",13),xs.NAMESPACE_ERR=(As[14]="Invalid namespace",14),xs.INVALID_ACCESS_ERR=(As[15]="Invalid access",15);function Ds(e,t){if(t instanceof Error)var i=t;else i=this,Error.call(this,As[e]),this.message=As[e],Error.captureStackTrace&&Error.captureStackTrace(this,Ds);return i.code=e,t&&(this.message=this.message+": "+t),i}function Rs(){}function Ms(e,t){this._node=e,this._refresh=t,Ns(this)}function Ns(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!=t){var i=e._refresh(e._node);po(e,"length",i.length),hs(i,e),e._inc=t}}function Us(){}function Bs(e,t){for(var i=e.length;i--;)if(e[i]===t)return i}function Fs(e,t,i,n){if(n?t[Bs(t,n)]=i:t[t.length++]=i,e){var r=(i.ownerElement=e).ownerDocument;r&&(n&&Gs(r,e,n),function(e,t,i){e&&e._inc++,"http://www.w3.org/2000/xmlns/"==i.namespaceURI&&(t._nsMap[i.prefix?i.localName:""]=i.value)}(r,e,i))}}function js(e,t,i){var n=Bs(t,i);if(!(0<=n))throw Ds(Ls,new Error(e.tagName+"@"+i));for(var r=t.length-1;n<r;)t[n]=t[++n];if(t.length=r,e){var a=e.ownerDocument;a&&(Gs(a,e,i),i.ownerElement=null)}}function Vs(e){if(this._features={},e)for(var t in e)this._features=e[t]}function qs(){}function Hs(e){return("<"==e?"&lt;":">"==e&&"&gt;")||"&"==e&&"&amp;"||'"'==e&&"&quot;"||"&#"+e.charCodeAt()+";"}function Ws(e,t){if(t(e))return!0;if(e=e.firstChild)do{if(Ws(e,t))return!0}while(e=e.nextSibling)}function zs(){}function Gs(e,t,i){e&&e._inc++,"http://www.w3.org/2000/xmlns/"==i.namespaceURI&&delete t._nsMap[i.prefix?i.localName:""]}function Xs(e,t,i){if(e&&e._inc){e._inc++;var n=t.childNodes;if(i)n[n.length++]=i;else{for(var r=t.firstChild,a=0;r;)r=(n[a++]=r).nextSibling;n.length=a}}}function Ks(e,t){var i=t.previousSibling,n=t.nextSibling;return i?i.nextSibling=n:e.firstChild=n,n?n.previousSibling=i:e.lastChild=i,Xs(e.ownerDocument,e),t}function Qs(e,t,i){var n=t.parentNode;if(n&&n.removeChild(t),t.nodeType===Cs){var r=t.firstChild;if(null==r)return t;var a=t.lastChild}else r=a=t;var s=i?i.previousSibling:e.lastChild;for(r.previousSibling=s,a.nextSibling=i,s?s.nextSibling=r:e.firstChild=r,null==i?e.lastChild=a:i.previousSibling=a;r.parentNode=e,r!==a&&(r=r.nextSibling););return Xs(e.ownerDocument||e,e),t.nodeType==Cs&&(t.firstChild=t.lastChild=null),t}function Ys(){this._nsMap={}}function $s(){}function Js(){}function Zs(){}function eo(){}function to(){}function io(){}function no(){}function ro(){}function ao(){}function so(){}function oo(){}function uo(){}function lo(e,t){var i=[],n=9==this.nodeType&&this.documentElement||this,r=n.prefix,a=n.namespaceURI;if(a&&null==r&&null==(r=n.lookupPrefix(a)))var s=[{namespace:a,prefix:null}];return ho(this,i,e,t,s),i.join("")}function co(e,t,i){var n=e.prefix||"",r=e.namespaceURI;if(!n&&!r)return!1;if("xml"===n&&"http://www.w3.org/XML/1998/namespace"===r||"http://www.w3.org/2000/xmlns/"==r)return!1;for(var a=i.length;a--;){var s=i[a];if(s.prefix==n)return s.namespace!=r}return!0}function ho(e,t,i,n,r){if(n){if(!(e=n(e)))return;if("string"==typeof e)return void t.push(e)}switch(e.nodeType){case gs:r=r||[];var a=e.attributes,s=a.length,o=e.firstChild,u=e.tagName;i=fs===e.namespaceURI||i,t.push("<",u);for(var l=0;l<s;l++){"xmlns"==(c=a.item(l)).prefix?r.push({prefix:c.localName,namespace:c.value}):"xmlns"==c.nodeName&&r.push({prefix:"",namespace:c.value})}for(l=0;l<s;l++){var c;if(co(c=a.item(l),0,r)){var d=c.prefix||"",h=c.namespaceURI,p=d?" xmlns:"+d:" xmlns";t.push(p,'="',h,'"'),r.push({prefix:d,namespace:h})}ho(c,t,i,n,r)}if(co(e,0,r)){d=e.prefix||"",h=e.namespaceURI,p=d?" xmlns:"+d:" xmlns";t.push(p,'="',h,'"'),r.push({prefix:d,namespace:h})}if(o||i&&!/^(?:meta|link|img|br|hr|input)$/i.test(u)){if(t.push(">"),i&&/^script$/i.test(u))for(;o;)o.data?t.push(o.data):ho(o,t,i,n,r),o=o.nextSibling;else for(;o;)ho(o,t,i,n,r),o=o.nextSibling;t.push("</",u,">")}else t.push("/>");return;case ws:case Cs:for(o=e.firstChild;o;)ho(o,t,i,n,r),o=o.nextSibling;return;case vs:return t.push(" ",e.name,'="',e.value.replace(/[<&"]/g,Hs),'"');case ys:return t.push(e.data.replace(/[<&]/g,Hs));case _s:return t.push("<![CDATA[",e.data,"]]>");case ks:return t.push("\x3c!--",e.data,"--\x3e");case Es:var f=e.publicId,m=e.systemId;if(t.push("<!DOCTYPE ",e.name),f)t.push(' PUBLIC "',f),m&&"."!=m&&t.push('" "',m),t.push('">');else if(m&&"."!=m)t.push(' SYSTEM "',m,'">');else{var g=e.internalSubset;g&&t.push(" [",g,"]"),t.push(">")}return;case Ss:return t.push("<?",e.target," ",e.data,"?>");case bs:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function po(e,t,i){e[t]=i}Ds.prototype=Error.prototype,hs(xs,Ds),Rs.prototype={length:0,item:function(e){return this[e]||null},toString:function(e,t){for(var i=[],n=0;n<this.length;n++)ho(this[n],i,e,t);return i.join("")}},Ms.prototype.item=function(e){return Ns(this),this[e]},ps(Ms,Rs),Us.prototype={length:0,item:Rs.prototype.item,getNamedItem:function(e){for(var t=this.length;t--;){var i=this[t];if(i.nodeName==e)return i}},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new Ds(Os);var i=this.getNamedItem(e.nodeName);return Fs(this._ownerElement,this,e,i),i},setNamedItemNS:function(e){var t,i=e.ownerElement;if(i&&i!=this._ownerElement)throw new Ds(Os);return t=this.getNamedItemNS(e.namespaceURI,e.localName),Fs(this._ownerElement,this,e,t),t},removeNamedItem:function(e){var t=this.getNamedItem(e);return js(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var i=this.getNamedItemNS(e,t);return js(this._ownerElement,this,i),i},getNamedItemNS:function(e,t){for(var i=this.length;i--;){var n=this[i];if(n.localName==t&&n.namespaceURI==e)return n}return null}},Vs.prototype={hasFeature:function(e,t){var i=this._features[e.toLowerCase()];return!(!i||t&&!(t in i))},createDocument:function(e,t,i){var n=new zs;if(n.implementation=this,n.childNodes=new Rs,(n.doctype=i)&&n.appendChild(i),t){var r=n.createElementNS(e,t);n.appendChild(r)}return n},createDocumentType:function(e,t,i){var n=new io;return n.name=e,n.nodeName=e,n.publicId=t,n.systemId=i,n}},qs.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(e,t){return Qs(this,e,t)},replaceChild:function(e,t){this.insertBefore(e,t),t&&this.removeChild(t)},removeChild:function(e){return Ks(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(e){return function e(t,i,n){var r=new i.constructor;for(var a in i){var s=i[a];"object"!=typeof s&&s!=r[a]&&(r[a]=s)}i.childNodes&&(r.childNodes=new Rs);r.ownerDocument=t;switch(r.nodeType){case gs:var o=i.attributes,u=r.attributes=new Us,l=o.length;u._ownerElement=r;for(var c=0;c<l;c++)r.setAttributeNode(e(t,o.item(c),!0));break;case vs:n=!0}if(n)for(var d=i.firstChild;d;)r.appendChild(e(t,d,n)),d=d.nextSibling;return r}(this.ownerDocument||this,this,e)},normalize:function(){for(var e=this.firstChild;e;){var t=e.nextSibling;t&&t.nodeType==ys&&e.nodeType==ys?(this.removeChild(t),e.appendData(t.data)):(e.normalize(),e=t)}},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},hasAttributes:function(){return 0<this.attributes.length},lookupPrefix:function(e){for(var t=this;t;){var i=t._nsMap;if(i)for(var n in i)if(i[n]==e)return n;t=t.nodeType==vs?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var i=t._nsMap;if(i&&e in i)return i[e];t=t.nodeType==vs?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){return null==this.lookupPrefix(e)}},hs(ms,qs),hs(ms,qs.prototype),zs.prototype={nodeName:"#document",nodeType:ws,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType!=Cs)return null==this.documentElement&&e.nodeType==gs&&(this.documentElement=e),Qs(this,e,t),e.ownerDocument=this,e;for(var i=e.firstChild;i;){var n=i.nextSibling;this.insertBefore(i,t),i=n}return e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),Ks(this,e)},importNode:function(e,t){return function e(t,i,n){var r;switch(i.nodeType){case gs:(r=i.cloneNode(!1)).ownerDocument=t;case Cs:break;case vs:n=!0}r=r||i.cloneNode(!1);r.ownerDocument=t;r.parentNode=null;if(n)for(var a=i.firstChild;a;)r.appendChild(e(t,a,n)),a=a.nextSibling;return r}(this,e,t)},getElementById:function(t){var i=null;return Ws(this.documentElement,function(e){if(e.nodeType==gs&&e.getAttribute("id")==t)return i=e,!0}),i},getElementsByClassName:function(e){var n=new RegExp("(^|\\s)"+e+"(\\s|$)");return new Ms(this,function(t){var i=[];return Ws(t.documentElement,function(e){e!==t&&e.nodeType==gs&&n.test(e.getAttribute("class"))&&i.push(e)}),i})},createElement:function(e){var t=new Ys;return t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.childNodes=new Rs,(t.attributes=new Us)._ownerElement=t},createDocumentFragment:function(){var e=new so;return e.ownerDocument=this,e.childNodes=new Rs,e},createTextNode:function(e){var t=new Zs;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new eo;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new to;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var i=new oo;return i.ownerDocument=this,i.tagName=i.target=e,i.nodeValue=i.data=t,i},createAttribute:function(e){var t=new $s;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new ao;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var i=new Ys,n=t.split(":"),r=i.attributes=new Us;return i.childNodes=new Rs,i.ownerDocument=this,i.nodeName=t,i.tagName=t,i.namespaceURI=e,2==n.length?(i.prefix=n[0],i.localName=n[1]):i.localName=t,r._ownerElement=i},createAttributeNS:function(e,t){var i=new $s,n=t.split(":");return i.ownerDocument=this,i.nodeName=t,i.name=t,i.namespaceURI=e,i.specified=!0,2==n.length?(i.prefix=n[0],i.localName=n[1]):i.localName=t,i}},ps(zs,qs),zs.prototype.getElementsByTagName=(Ys.prototype={nodeType:gs,hasAttribute:function(e){return null!=this.getAttributeNode(e)},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var i=this.ownerDocument.createAttribute(e);i.value=i.nodeValue=""+t,this.setAttributeNode(i)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},appendChild:function(e){return e.nodeType===Cs?this.insertBefore(e,null):function(e,t){var i=t.parentNode;if(i){var n=e.lastChild;i.removeChild(t);n=e.lastChild}return n=e.lastChild,t.parentNode=e,t.previousSibling=n,t.nextSibling=null,n?n.nextSibling=t:e.firstChild=t,e.lastChild=t,Xs(e.ownerDocument,e,t),t}(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var i=this.getAttributeNodeNS(e,t);i&&this.removeAttributeNode(i)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){var i=this.getAttributeNodeNS(e,t);return i&&i.value||""},setAttributeNS:function(e,t,i){var n=this.ownerDocument.createAttributeNS(e,t);n.value=n.nodeValue=""+i,this.setAttributeNode(n)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(n){return new Ms(this,function(t){var i=[];return Ws(t,function(e){e===t||e.nodeType!=gs||"*"!==n&&e.tagName!=n||i.push(e)}),i})},getElementsByTagNameNS:function(n,r){return new Ms(this,function(t){var i=[];return Ws(t,function(e){e===t||e.nodeType!==gs||"*"!==n&&e.namespaceURI!==n||"*"!==r&&e.localName!=r||i.push(e)}),i})}}).getElementsByTagName,zs.prototype.getElementsByTagNameNS=Ys.prototype.getElementsByTagNameNS,ps(Ys,qs),$s.prototype.nodeType=vs,ps($s,qs),Js.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw new Error(As[Ps])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,i){i=this.data.substring(0,e)+i+this.data.substring(e+t),this.nodeValue=this.data=i,this.length=i.length}},ps(Js,qs),Zs.prototype={nodeName:"#text",nodeType:ys,splitText:function(e){var t=this.data,i=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var n=this.ownerDocument.createTextNode(i);return this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling),n}},ps(Zs,Js),eo.prototype={nodeName:"#comment",nodeType:ks},ps(eo,Js),to.prototype={nodeName:"#cdata-section",nodeType:_s},ps(to,Js),io.prototype.nodeType=Es,ps(io,qs),no.prototype.nodeType=Is,ps(no,qs),ro.prototype.nodeType=Ts,ps(ro,qs),ao.prototype.nodeType=bs,ps(ao,qs),so.prototype.nodeName="#document-fragment",so.prototype.nodeType=Cs,ps(so,qs),oo.prototype.nodeType=Ss,ps(oo,qs),uo.prototype.serializeToString=function(e,t,i){return lo.call(e,t,i)},qs.prototype.toString=lo;try{if(Object.defineProperty){Object.defineProperty(Ms.prototype,"length",{get:function(){return Ns(this),this.$$length}}),Object.defineProperty(qs.prototype,"textContent",{get:function(){return function e(t){switch(t.nodeType){case gs:case Cs:var i=[];for(t=t.firstChild;t;)7!==t.nodeType&&8!==t.nodeType&&i.push(e(t)),t=t.nextSibling;return i.join("");default:return t.nodeValue}}(this)},set:function(e){switch(this.nodeType){case gs:case Cs:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),po=function(e,t,i){e["$$"+t]=i}}}catch(e){}function fo(e){return!!e&&"object"==typeof e}function mo(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return t.reduce(function(t,i){return"object"!=typeof i||Object.keys(i).forEach(function(e){Array.isArray(t[e])&&Array.isArray(i[e])?t[e]=t[e].concat(i[e]):fo(t[e])&&fo(i[e])?t[e]=mo(t[e],i[e]):t[e]=i[e]}),t},{})}function go(e){return e.reduce(function(e,t){return e.concat(t)},[])}function vo(e){if(!e.length)return[];for(var t=[],i=0;i<e.length;i++)t.push(e[i]);return t}function yo(e){var t=e.baseUrl,i=void 0===t?"":t,n=e.source,r=void 0===n?"":n,a=e.range,s=void 0===a?"":a,o=e.indexRange,u=void 0===o?"":o,l={uri:r,resolvedUri:Ta(i||"",r)};if(s||u){var c=(s||u).split("-"),d=parseInt(c[0],10),h=parseInt(c[1],10);l.byterange={length:h-d+1,offset:d}}return l}function _o(e){return e&&"number"!=typeof e&&(e=parseInt(e,10)),isNaN(e)?null:e}function bo(e){var t=e.type,i=void 0===t?"static":t,n=e.duration,r=e.timescale,a=void 0===r?1:r,s=e.sourceDuration,o=du[i](e),u=function(e,t){for(var i=[],n=e;n<t;n++)i.push(n);return i}(o.start,o.end).map(function(o){return function(e,t){var i=o.duration,n=o.timescale,r=void 0===n?1:n,a=o.periodIndex,s=o.startNumber;return{number:(void 0===s?1:s)+e,duration:i/r,timeline:a,time:t*i}}}(e));if("static"===i){var l=u.length-1;u[l].duration=s-n/a*l}return u}function To(e){var t=e.baseUrl,i=e.initialization,n=void 0===i?{}:i,r=e.sourceDuration,a=e.indexRange,s=void 0===a?"":a,o=e.duration;if(!t)throw new Error(uu);var u=yo({baseUrl:t,source:n.sourceURL,range:n.range}),l=yo({baseUrl:t,source:t,indexRange:s});if(l.map=u,o){var c=bo(e);c.length&&(l.duration=c[0].duration,l.timeline=c[0].timeline)}else r&&(l.duration=r,l.timeline=0);return l.number=0,[l]}function So(e,t,i){for(var n=e.sidx.map?e.sidx.map:null,r=e.sidx.duration,a=e.timeline||0,s=e.sidx.byterange,o=s.offset+s.length,u=t.timescale,l=t.references.filter(function(e){return 1!==e.referenceType}),c=[],d=o+t.firstOffset,h=0;h<l.length;h++){var p=t.references[h],f=p.referencedSize,m=p.subsegmentDuration,g=To({baseUrl:i,timescale:u,timeline:a,periodIndex:a,duration:m,sourceDuration:r,indexRange:d+"-"+(d+f-1)})[0];n&&(g.map=n),c.push(g),d+=f}return e.segments=c,e}function ko(e){return function(t){return Object.keys(t).map(function(e){return t[e]})}(e.reduce(function(e,t){var i,n=t.attributes.id+(t.attributes.lang||"");e[n]?(t.segments[0]&&(t.segments[0].discontinuity=!0),(i=e[n].segments).push.apply(i,t.segments),t.attributes.contentProtection&&(e[n].attributes.contentProtection=t.attributes.contentProtection)):e[n]=t;return e},{})).map(function(e){return e.discontinuityStarts=function(e,n){return e.reduce(function(e,t,i){return t[n]&&e.push(i),e},[])}(e.segments,"discontinuity"),e})}function wo(e,t){if(void 0===t&&(t={}),!Object.keys(t).length)return e;for(var i in e){var n=e[i];if(n.sidx){var r=n.sidx.uri+"-"+(s=n.sidx.byterange,void 0,o=s.offset+s.length-1,s.offset+"-"+o),a=t[r]&&t[r].sidx;n.sidx&&a&&So(n,a,n.sidx.resolvedUri)}}var s,o;return e}function Eo(e){var t,i=e.attributes,n=e.segments,r=e.sidx,a={attributes:(t={NAME:i.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:i.width,height:i.height},CODECS:i.codecs,BANDWIDTH:i.bandwidth},t["PROGRAM-ID"]=1,t),uri:"",endList:"static"===(i.type||"static"),timeline:i.periodIndex,resolvedUri:"",targetDuration:i.duration,segments:n,mediaSequence:n.length?n[0].number:1};return i.contentProtection&&(a.contentProtection=i.contentProtection),r&&(a.sidx=r),a}function Co(e,t,i){var n;if(void 0===i&&(i={}),!e.length)return{};var r=e[0].attributes,a=r.sourceDuration,s=r.type,o=void 0===s?"static":s,u=r.suggestedPresentationDelay,l=r.minimumUpdatePeriod,c=ko(e.filter(function(e){var t=e.attributes;return"video/mp4"===t.mimeType||"video/webm"===t.mimeType||"video"===t.contentType})).map(Eo),d=ko(e.filter(function(e){var t=e.attributes;return"audio/mp4"===t.mimeType||"audio/webm"===t.mimeType||"audio"===t.contentType})),h=e.filter(function(e){var t=e.attributes;return"text/vtt"===t.mimeType||"text"===t.contentType}),p={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:(n={AUDIO:{},VIDEO:{}},n["CLOSED-CAPTIONS"]={},n.SUBTITLES={},n),uri:"",duration:a,playlists:wo(c,i)};return 0<=l&&(p.minimumUpdatePeriod=1e3*l),t&&(p.locations=t),"dynamic"===o&&(p.suggestedPresentationDelay=u),d.length&&(p.mediaGroups.AUDIO.audio=function(e,s){var o;void 0===s&&(s={});var t=e.reduce(function(e,t){var i=t.attributes.role&&t.attributes.role.value||"",n=t.attributes.lang||"",r="main";if(n){var a=i?" ("+i+")":"";r=t.attributes.lang+a}return e[r]&&e[r].playlists[0].attributes.BANDWIDTH>t.attributes.bandwidth||(e[r]={language:n,autoselect:!0,default:"main"===i,playlists:wo([function(e){var t,i=e.attributes,n=e.segments,r=e.sidx,a={attributes:(t={NAME:i.id,BANDWIDTH:i.bandwidth,CODECS:i.codecs},t["PROGRAM-ID"]=1,t),uri:"",endList:"static"===(i.type||"static"),timeline:i.periodIndex,resolvedUri:"",targetDuration:i.duration,segments:n,mediaSequence:n.length?n[0].number:1};return i.contentProtection&&(a.contentProtection=i.contentProtection),r&&(a.sidx=r),a}(t)],s),uri:""},"undefined"==typeof o&&"main"===i&&((o=t).default=!0)),e},{});o||(t[Object.keys(t)[0]].default=!0);return t}(d,i)),h.length&&(p.mediaGroups.SUBTITLES.subs=function(e,n){return void 0===n&&(n={}),e.reduce(function(e,t){var i=t.attributes.lang||"text";return e[i]||(e[i]={language:i,default:!1,autoselect:!1,playlists:wo([function(e){var t,i=e.attributes,n=e.segments;"undefined"==typeof n&&(n=[{uri:i.baseUrl,timeline:i.periodIndex,resolvedUri:i.baseUrl||"",duration:i.sourceDuration,number:0}],i.duration=i.sourceDuration);var r=((t={NAME:i.id,BANDWIDTH:i.bandwidth})["PROGRAM-ID"]=1,t);return i.codecs&&(r.CODECS=i.codecs),{attributes:r,uri:"",endList:"static"===(i.type||"static"),timeline:i.periodIndex,resolvedUri:i.baseUrl||"",targetDuration:i.duration,segments:n,mediaSequence:n.length?n[0].number:1}}(t)],n),uri:""}),e},{})}(h,i)),p}function Io(e,t){for(var i,n,r,a,s,o,u,l,c,d,h,p,f=e.type,m=void 0===f?"static":f,g=e.minimumUpdatePeriod,v=void 0===g?0:g,y=e.media,_=void 0===y?"":y,b=e.sourceDuration,T=e.timescale,S=void 0===T?1:T,k=e.startNumber,w=void 0===k?1:k,E=e.periodIndex,C=[],I=-1,x=0;x<t.length;x++){var A=t[x],P=A.d,L=A.r||0,O=A.t||0;I<0&&(I=O),O&&I<O&&(I=O);var D=void 0;if(L<0){var R=x+1;D=R===t.length?"dynamic"===m&&0<v&&0<_.indexOf("$Number$")?(n=I,r=P,void 0,a=(i=e).NOW,s=i.clientOffset,o=i.availabilityStartTime,u=i.timescale,l=void 0===u?1:u,c=i.start,d=void 0===c?0:c,h=i.minimumUpdatePeriod,p=(a+s)/1e3+(void 0===h?0:h)-(o+d),Math.ceil((p*l-n)/r)):(b*S-I)/P:(t[R].t-I)/P}else D=L+1;for(var M=w+C.length+D,N=w+C.length;N<M;)C.push({number:N,duration:P/S,time:I,timeline:E}),I+=P,N++}return C}function xo(e,t){return e.replace(hu,function(a){return function(e,t,i,n){if("$$"===e)return"$";if("undefined"==typeof a[t])return e;var r=""+a[t];return"RepresentationID"===t?r:(n=i?parseInt(n,10):1)<=r.length?r:new Array(n-r.length+1).join("0")+r}}(t))}function Ao(i,e){var n={RepresentationID:i.id,Bandwidth:i.bandwidth||0},t=i.initialization,r=void 0===t?{sourceURL:"",range:""}:t,a=yo({baseUrl:i.baseUrl,source:xo(r.sourceURL,n),range:r.range});return function(e,t){return e.duration||t?e.duration?bo(e):Io(e,t):[{number:e.startNumber||1,duration:e.sourceDuration,time:0,timeline:e.periodIndex}]}(i,e).map(function(e){n.Number=e.number,n.Time=e.time;var t=xo(i.media||"",n);return{uri:t,timeline:e.timeline,duration:e.duration,resolvedUri:Ta(i.baseUrl||"",t),map:a,number:e.number}})}function Po(t,e){var i=t.duration,n=t.segmentUrls,r=void 0===n?[]:n;if(!i&&!e||i&&e)throw new Error(lu);var a,s=r.map(function(e){return function(e,t){var i=e.baseUrl,n=e.initialization,r=void 0===n?{}:n,a=yo({baseUrl:i,source:r.sourceURL,range:r.range}),s=yo({baseUrl:i,source:t.media,range:t.mediaRange});return s.map=a,s}(t,e)});return i&&(a=bo(t)),e&&(a=Io(t,e)),a.map(function(e,t){if(s[t]){var i=s[t];return i.timeline=e.timeline,i.duration=e.duration,i.number=e.number,i}}).filter(function(e){return e})}function Lo(e){var t,i,n=e.attributes,r=e.segmentInfo;r.template?(i=Ao,t=mo(n,r.template)):r.base?(i=To,t=mo(n,r.base)):r.list&&(i=Po,t=mo(n,r.list));var a={attributes:n};if(!i)return a;var s=i(t,r.timeline);if(t.duration){var o=t,u=o.duration,l=o.timescale,c=void 0===l?1:l;t.duration=u/c}else s.length?t.duration=s.reduce(function(e,t){return Math.max(e,Math.ceil(t.duration))},0):t.duration=0;return a.attributes=t,a.segments=s,r.base&&t.indexRange&&(a.sidx=s[0],a.segments=[]),a}function Oo(e,t){return vo(e.childNodes).filter(function(e){return e.tagName===t})}function Do(e){return e.textContent.trim()}function Ro(e){var t=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(e);if(!t)return 0;var i=t.slice(1),n=i[0],r=i[1],a=i[2],s=i[3],o=i[4],u=i[5];return 31536e3*parseFloat(n||0)+2592e3*parseFloat(r||0)+86400*parseFloat(a||0)+3600*parseFloat(s||0)+60*parseFloat(o||0)+parseFloat(u||0)}function Mo(e){return e&&e.attributes?vo(e.attributes).reduce(function(e,t){var i=pu[t.name]||pu.DEFAULT;return e[t.name]=i(t.value),e},{}):{}}function No(e,i){return i.length?go(e.map(function(t){return i.map(function(e){return Ta(t,Do(e))})})):e}function Uo(e){var t=Oo(e,"SegmentTemplate")[0],i=Oo(e,"SegmentList")[0],n=i&&Oo(i,"SegmentURL").map(function(e){return mo({tag:"SegmentURL"},Mo(e))}),r=Oo(e,"SegmentBase")[0],a=i||t,s=a&&Oo(a,"SegmentTimeline")[0],o=i||r||t,u=o&&Oo(o,"Initialization")[0],l=t&&Mo(t);l&&u?l.initialization=u&&Mo(u):l&&l.initialization&&(l.initialization={sourceURL:l.initialization});var c={template:l,timeline:s&&Oo(s,"S").map(function(e){return Mo(e)}),list:i&&mo(Mo(i),{segmentUrls:n,initialization:Mo(u)}),base:r&&mo(Mo(r),{initialization:Mo(u)})};return Object.keys(c).forEach(function(e){c[e]||delete c[e]}),c}function Bo(c,d,h){return function(e){var t=Mo(e),i=No(d,Oo(e,"BaseURL")),n=Oo(e,"Role")[0],r={role:Mo(n)},a=mo(c,t,r),s=function(e){return e.reduce(function(e,t){var i=Mo(t),n=fu[i.schemeIdUri];if(n){e[n]={attributes:i};var r=Oo(t,"cenc:pssh")[0];if(r){var a=Do(r),s=a&&Ra(a);e[n].pssh=s}}return e},{})}(Oo(e,"ContentProtection"));Object.keys(s).length&&(a=mo(a,{contentProtection:s}));var o=Uo(e),u=Oo(e,"Representation"),l=mo(h,o);return go(u.map(function(a,s,o){return function(e){var t=Oo(e,"BaseURL"),i=No(s,t),n=mo(a,Mo(e)),r=Uo(e);return i.map(function(e){return{segmentInfo:mo(o,r),attributes:mo(n,{baseUrl:e})}})}}(a,i,l)))}}function Fo(e,t){void 0===t&&(t={});var i=t,n=i.manifestUri,r=void 0===n?"":n,a=i.NOW,s=void 0===a?Date.now():a,o=i.clientOffset,u=void 0===o?0:o,l=Oo(e,"Period");if(!l.length)throw new Error(au);var c=Oo(e,"Location"),d=Mo(e),h=No([r],Oo(e,"BaseURL"));return d.sourceDuration=d.mediaPresentationDuration||0,d.NOW=s,d.clientOffset=u,c.length&&(d.locations=c.map(Do)),{locations:d.locations,representationInfo:go(l.map(function(l,c){return function(e,t){var i=No(c,Oo(e,"BaseURL")),n=Mo(e),r=parseInt(n.id,10),a=qa.isNaN(r)?t:r,s=mo(l,{periodIndex:a}),o=Oo(e,"AdaptationSet"),u=Uo(e);return go(o.map(Bo(s,i,u)))}}(d,h)))}}function jo(e){if(""===e)throw new Error(su);var t,i,n=new ru;try{i=(t=n.parseFromString(e,"application/xml"))&&"MPD"===t.documentElement.tagName?t.documentElement:null}catch(e){}if(!i||i&&0<i.getElementsByTagName("parsererror").length)throw new Error(ou);return i}function Vo(e,t){void 0===t&&(t={});var i=Fo(jo(e),t),n=function(e){return e.map(Lo)}(i.representationInfo);return Co(n,i.locations,t.sidxMapping)}function qo(e){return function(e){var t=Oo(e,"UTCTiming")[0];if(!t)return null;var i=Mo(t);switch(i.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":i.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":i.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":i.method="DIRECT",i.value=Date.parse(i.value);break;case"urn:mpeg:dash:utc:http-ntp:2014":case"urn:mpeg:dash:utc:ntp:2014":case"urn:mpeg:dash:utc:sntp:2014":default:throw new Error(cu)}return i}(jo(e))}function Ho(e){return e instanceof Uint8Array?e:(Array.isArray(e)||function(e){return ArrayBuffer.isView(e)}(e)||e instanceof ArrayBuffer||(e="number"!=typeof e||"number"==typeof e&&e!=e?0:[e]),new Uint8Array(e&&e.buffer||e,e&&e.byteOffset||0,e&&e.byteLength||0))}function Wo(e,t){var i=(void 0===t?{}:t).le,n=void 0!==i&&i;("bigint"!=typeof e&&"number"!=typeof e||"number"==typeof e&&e!=e)&&(e=0);for(var r=function(e){return Math.ceil(function(e){return e.toString(2).length}(e)/8)}(e=yu(e)),a=new Uint8Array(new ArrayBuffer(r)),s=0;s<r;s++){var o=n?s:Math.abs(s+1-a.length);a[o]=Number(e/_u[s]&yu(255)),e<0&&(a[o]=Math.abs(~a[o]),a[o]-=0===s?1:2)}return a}function zo(e,t){if("string"!=typeof e&&e&&"function"==typeof e.toString&&(e=e.toString()),"string"!=typeof e)return new Uint8Array;t||(e=unescape(encodeURIComponent(e)));for(var i=new Uint8Array(e.length),n=0;n<e.length;n++)i[n]=e.charCodeAt(n);return i}function Go(i,e,t){var n=void 0===t?{}:t,r=n.offset,a=void 0===r?0:r,s=n.mask,o=void 0===s?[]:s;i=Ho(i);var u=(e=Ho(e)).every?e.every:Array.prototype.every;return e.length&&i.length-a>=e.length&&u.call(e,function(e,t){return e===(o[t]?o[t]&i[a+t]:i[a+t])})}function Xo(e,t){return void 0===t&&(t=0),(e=Ho(e)).length-t<10||!Go(e,bu,{offset:t})?t:Xo(e,t+=function(e,t){void 0===t&&(t=0);var i=(e=Ho(e))[t+5],n=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9];return(16&i)>>4?20+n:10+n}(e,t))}function Ko(e){return"string"==typeof e?zo(e):e}function Qo(e,t,i){void 0===i&&(i=!1),t=function(e){return Array.isArray(e)?e.map(function(e){return Ko(e)}):[Ko(e)]}(t),e=Ho(e);var n=[];if(!t.length)return n;for(var r=0;r<e.length;){var a=(e[r]<<24|e[r+1]<<16|e[r+2]<<8|e[r+3])>>>0,s=e.subarray(r+4,r+8);if(0==a)break;var o=r+a;if(o>e.length){if(i)break;o=e.length}var u=e.subarray(r+8,o);Go(s,t[0])&&(1===t.length?n.push(u):n.push.apply(n,Qo(u,t.slice(1),i))),r=o}return n}function Yo(e,t,i,n){void 0===i&&(i=!0),void 0===n&&(n=!1);var r=function(e){for(var t=1,i=0;i<Su.length&&!(e&Su[i]);i++)t++;return t}(e[t]),a=e.subarray(t,t+r);return i&&((a=Array.prototype.slice.call(e,t,t+r))[0]^=Su[r-1]),{length:r,value:function(r,e){var t=void 0===e?{}:e,i=t.signed,n=void 0!==i&&i,a=t.le,s=void 0!==a&&a;r=Ho(r);var o=s?"reduce":"reduceRight",u=(r[o]?r[o]:Array.prototype[o]).call(r,function(e,t,i){var n=s?i:Math.abs(i+1-r.length);return e+yu(t)*_u[n]},yu(0));if(n){var l=_u[r.length]/yu(2)-yu(1);l<(u=yu(u))&&(u-=l,u-=l,u-=yu(2))}return Number(u)}(a,{signed:n}),bytes:a}}function $o(e){return"string"==typeof e?e.match(/.{1,2}/g).map(function(e){return $o(e)}):"number"==typeof e?Wo(e):e}function Jo(e,t,i){if(i>=t.length)return t.length;var n=Yo(t,i,!1);if(Go(e.bytes,n.bytes))return i;var r=Yo(t,i+n.length);return Jo(e,t,i+r.length+r.value+n.length)}function Zo(e,t){t=function(e){return Array.isArray(e)?e.map(function(e){return $o(e)}):[$o(e)]}(t),e=Ho(e);var i=[];if(!t.length)return i;for(var n=0;n<e.length;){var r=Yo(e,n,!1),a=Yo(e,n+r.length),s=n+r.length+a.length;127===a.value&&(a.value=Jo(r,e,s),a.value!==e.length&&(a.value-=s));var o=s+a.value>e.length?e.length:s+a.value,u=e.subarray(s,o);Go(t[0],r.bytes)&&(1===t.length?i.push(u):i=i.concat(Zo(u,t.slice(1)))),n+=r.length+a.length+u.length}return i}function eu(e){for(var t=[],i=1;i<e.length-2;)Go(e.subarray(i,i+3),Eu)&&(t.push(i+2),i++),i++;if(0===t.length)return e;var n=e.length-t.length,r=new Uint8Array(n),a=0;for(i=0;i<n;a++,i++)a===t[0]&&(a++,t.shift()),r[i]=e[a];return r}function tu(e,t,i,n){void 0===n&&(n=1/0),e=Ho(e),i=[].concat(i);for(var r,a=0,s=0;a<e.length&&(s<n||r);){var o=void 0;if(Go(e.subarray(a),ku)?o=4:Go(e.subarray(a),wu)&&(o=3),o){if(s++,r)return eu(e.subarray(r,a));var u=void 0;"h264"===t?u=31&e[a+o]:"h265"===t&&(u=e[a+o]>>1&63),-1!==i.indexOf(u)&&(r=a+o),a+=o+("h264"===t?1:2)}else a++}return e.subarray(0,0)}var iu={Node:qs,DOMImplementation:Vs,XMLSerializer:uo},nu=i(function(e,t){function i(e){this.options=e||{locator:{}}}function c(){this.cdata=!1}function d(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function h(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function r(e,t,i){return"string"==typeof e?e.substr(t,i):e.length>=t+i||t?new java.lang.String(e,t,i)+"":e}function p(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}i.prototype.parseFromString=function(e,t){var i=this.options,n=new f,r=i.domBuilder||new c,a=i.errorHandler,s=i.locator,o=i.xmlns||{},u=/\/x?html?$/.test(t),l=u?Ha.entityMap:{lt:"<",gt:">",amp:"&",quot:'"',apos:"'"};return s&&r.setDocumentLocator(s),n.errorHandler=function(n,e,r){if(!n){if(e instanceof c)return e;n=e}var a={},s=n instanceof Function;function t(t){var i=n[t];!i&&s&&(i=2==n.length?function(e){n(t,e)}:n),a[t]=i&&function(e){i("[xmldom "+t+"]\t"+e+h(r))}||function(){}}return r=r||{},t("warning"),t("error"),t("fatalError"),a}(a,r,s),n.domBuilder=i.domBuilder||r,u&&(o[""]="http://www.w3.org/1999/xhtml"),o.xml=o.xml||"http://www.w3.org/XML/1998/namespace",e&&"string"==typeof e?n.parse(e,o,l):n.errorHandler.error("invalid doc source"),r.doc},c.prototype={startDocument:function(){this.doc=(new n).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,i,n){var r=this.doc,a=r.createElementNS(e,i||t),s=n.length;p(this,a),this.currentElement=a,this.locator&&d(this.locator,a);for(var o=0;o<s;o++){e=n.getURI(o);var u=n.getValue(o),l=(i=n.getQName(o),r.createAttributeNS(e,i));this.locator&&d(n.getLocator(o),l),l.value=l.nodeValue=u,a.setAttributeNode(l)}},endElement:function(e,t,i){var n=this.currentElement;n.tagName;this.currentElement=n.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var i=this.doc.createProcessingInstruction(e,t);this.locator&&d(this.locator,i),p(this,i)},ignorableWhitespace:function(e,t,i){},characters:function(e,t,i){if(e=r.apply(this,arguments)){if(this.cdata)var n=this.doc.createCDATASection(e);else n=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(n):/^\s*$/.test(e)&&this.doc.appendChild(n),this.locator&&d(this.locator,n)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){(this.locator=e)&&(e.lineNumber=0)},comment:function(e,t,i){e=r.apply(this,arguments);var n=this.doc.createComment(e);this.locator&&d(this.locator,n),p(this,n)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,i){var n=this.doc.implementation;if(n&&n.createDocumentType){var r=n.createDocumentType(e,t,i);this.locator&&d(this.locator,r),p(this,r)}},warning:function(e){},error:function(e){},fatalError:function(e){throw e}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(e){c.prototype[e]=function(){return null}});var f=ds.XMLReader,n=t.DOMImplementation=iu.DOMImplementation;t.XMLSerializer=iu.XMLSerializer,t.DOMParser=i}),ru=(nu.DOMImplementation,nu.XMLSerializer,nu.DOMParser),au="INVALID_NUMBER_OF_PERIOD",su="DASH_EMPTY_MANIFEST",ou="DASH_INVALID_XML",uu="NO_BASE_URL",lu="SEGMENT_TIME_UNSPECIFIED",cu="UNSUPPORTED_UTC_TIMING_SCHEME",du={static:function(e){var t=e.duration,i=e.timescale,n=void 0===i?1:i,r=e.sourceDuration,a=_o(e.endNumber);return{start:0,end:"number"==typeof a?a:Math.ceil(r/(t/n))}},dynamic:function(e){var t=e.NOW,i=e.clientOffset,n=e.availabilityStartTime,r=e.timescale,a=void 0===r?1:r,s=e.duration,o=e.start,u=void 0===o?0:o,l=e.minimumUpdatePeriod,c=void 0===l?0:l,d=e.timeShiftBufferDepth,h=void 0===d?1/0:d,p=_o(e.endNumber),f=(t+i)/1e3,m=n+u,g=f+c-m,v=Math.ceil(g*a/s),y=Math.floor((f-m-h)*a/s),_=Math.floor((f-m)*a/s);return{start:Math.max(0,y),end:"number"==typeof p?p:Math.min(v,_)}}},hu=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,pu={mediaPresentationDuration:function(e){return Ro(e)},availabilityStartTime:function(e){return function(e){return/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(e)&&(e+="Z"),Date.parse(e)}(e)/1e3},minimumUpdatePeriod:function(e){return Ro(e)},suggestedPresentationDelay:function(e){return Ro(e)},type:function(e){return e},timeShiftBufferDepth:function(e){return Ro(e)},start:function(e){return Ro(e)},width:function(e){return parseInt(e,10)},height:function(e){return parseInt(e,10)},bandwidth:function(e){return parseInt(e,10)},startNumber:function(e){return parseInt(e,10)},timescale:function(e){return parseInt(e,10)},duration:function(e){var t=parseInt(e,10);return isNaN(t)?Ro(e):t},d:function(e){return parseInt(e,10)},t:function(e){return parseInt(e,10)},r:function(e){return parseInt(e,10)},DEFAULT:function(e){return e}},fu={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},mu=So,gu=Math.pow(2,32),vu=function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),i={version:e[0],flags:new Uint8Array(e.subarray(1,4)),references:[],referenceId:t.getUint32(4),timescale:t.getUint32(8)},n=12;0===i.version?(i.earliestPresentationTime=t.getUint32(n),i.firstOffset=t.getUint32(n+4),n+=8):(i.earliestPresentationTime=t.getUint32(n)*gu+t.getUint32(n+4),i.firstOffset=t.getUint32(n+8)*gu+t.getUint32(n+12),n+=16),n+=2;var r=t.getUint16(n);for(n+=2;0<r;n+=12,r--)i.references.push({referenceType:(128&e[n])>>>7,referencedSize:2147483647&t.getUint32(n),subsegmentDuration:t.getUint32(n+4),startsWithSap:!!(128&e[n+8]),sapType:(112&e[n+8])>>>4,sapDeltaTime:268435455&t.getUint32(n+8)});return i},yu=Ia.BigInt||Number,_u=[yu("0x1"),yu("0x100"),yu("0x10000"),yu("0x1000000"),yu("0x100000000"),yu("0x10000000000"),yu("0x1000000000000"),yu("0x100000000000000"),yu("0x10000000000000000")],bu=Ho([73,68,51]),Tu={EBML:Ho([26,69,223,163]),DocType:Ho([66,130]),Segment:Ho([24,83,128,103]),SegmentInfo:Ho([21,73,169,102]),Tracks:Ho([22,84,174,107]),Track:Ho([174]),TrackNumber:Ho([215]),DefaultDuration:Ho([35,227,131]),TrackEntry:Ho([174]),TrackType:Ho([131]),FlagDefault:Ho([136]),CodecID:Ho([134]),CodecPrivate:Ho([99,162]),VideoTrack:Ho([224]),AudioTrack:Ho([225]),Cluster:Ho([31,67,182,117]),Timestamp:Ho([231]),TimestampScale:Ho([42,215,177]),BlockGroup:Ho([160]),BlockDuration:Ho([155]),Block:Ho([161]),SimpleBlock:Ho([163])},Su=[128,64,32,16,8,4,2,1],ku=Ho([0,0,0,1]),wu=Ho([0,0,1]),Eu=Ho([0,0,3]),Cu={webm:Ho([119,101,98,109]),matroska:Ho([109,97,116,114,111,115,107,97]),flac:Ho([102,76,97,67]),ogg:Ho([79,103,103,83]),ac3:Ho([11,119]),riff:Ho([82,73,70,70]),avi:Ho([65,86,73]),wav:Ho([87,65,86,69]),"3gp":Ho([102,116,121,112,51,103]),mp4:Ho([102,116,121,112]),fmp4:Ho([115,116,121,112]),mov:Ho([102,116,121,112,113,116])},Iu={aac:function(e){var t=Xo(e);return Go(e,[255,16],{offset:t,mask:[255,22]})},mp3:function(e){var t=Xo(e);return Go(e,[255,2],{offset:t,mask:[255,6]})},webm:function(e){var t=Zo(e,[Tu.EBML,Tu.DocType])[0];return Go(t,Cu.webm)},mkv:function(e){var t=Zo(e,[Tu.EBML,Tu.DocType])[0];return Go(t,Cu.matroska)},mp4:function(e){return!Iu["3gp"](e)&&!Iu.mov(e)&&(Go(e,Cu.mp4,{offset:4})||Go(e,Cu.fmp4,{offset:4}))},mov:function(e){return Go(e,Cu.mov,{offset:4})},"3gp":function(e){return Go(e,Cu["3gp"],{offset:4})},ac3:function(e){var t=Xo(e);return Go(e,Cu.ac3,{offset:t})},ts:function(e){if(e.length<189&&1<=e.length)return 71===e[0];for(var t=0;t+188<e.length&&t<188;){if(71===e[t]&&71===e[t+188])return!0;t+=1}return!1},flac:function(e){var t=Xo(e);return Go(e,Cu.flac,{offset:t})},ogg:function(e){return Go(e,Cu.ogg)},avi:function(e){return Go(e,Cu.riff)&&Go(e,Cu.avi,{offset:8})},wav:function(e){return Go(e,Cu.riff)&&Go(e,Cu.wav,{offset:8})},h264:function(e){return function(e,t,i){return tu(e,"h264",t,i)}(e,7,3).length},h265:function(e){return function(e,t,i){return tu(e,"h265",t,i)}(e,[32,33],3).length}},xu=Object.keys(Iu).filter(function(e){return"ts"!==e&&"h264"!==e&&"h265"!==e}).concat(["ts","h264","h265"]);xu.forEach(function(e){var t=Iu[e];Iu[e]=function(e){return t(Ho(e))}});function Au(e){e=Ho(e);for(var t=0;t<xu.length;t++){var i=xu[t];if(Ou[i](e))return i}return""}function Pu(e){return 0<Qo(e,["moof"]).length}function Lu(){this.init=function(){var a={};this.on=function(e,t){a[e]||(a[e]=[]),a[e]=a[e].concat(t)},this.off=function(e,t){var i;return!!a[e]&&(i=a[e].indexOf(t),a[e]=a[e].slice(),a[e].splice(i,1),-1<i)},this.trigger=function(e){var t,i,n,r;if(t=a[e])if(2===arguments.length)for(n=t.length,i=0;i<n;++i)t[i].call(this,arguments[1]);else{for(r=[],i=arguments.length,i=1;i<arguments.length;++i)r.push(arguments[i]);for(n=t.length,i=0;i<n;++i)t[i].apply(this,r)}},this.dispose=function(){a={}}}}var Ou=Iu,Du=27,Ru=15,Mu=21;Lu.prototype.pipe=function(t){return this.on("data",function(e){t.push(e)}),this.on("done",function(e){t.flush(e)}),this.on("partialdone",function(e){t.partialFlush(e)}),this.on("endedtimeline",function(e){t.endTimeline(e)}),this.on("reset",function(e){t.reset(e)}),t},Lu.prototype.push=function(e){this.trigger("data",e)},Lu.prototype.flush=function(e){this.trigger("done",e)},Lu.prototype.partialFlush=function(e){this.trigger("partialdone",e)},Lu.prototype.endTimeline=function(e){this.trigger("endedtimeline",e)},Lu.prototype.reset=function(e){this.trigger("reset",e)};function Nu(e,t){var i=1;for(t<e&&(i=-1);4294967296<Math.abs(t-e);)e+=8589934592*i;return e}new Lu;function Uu(e){var t=31&e[1];return t<<=8,t|=e[2]}function Bu(e){return!!(64&e[1])}function Fu(e){var t=0;return 1<(48&e[3])>>>4&&(t+=e[4]+1),t}function ju(e){switch(e){case 5:return"slice_layer_without_partitioning_rbsp_idr";case 6:return"sei_rbsp";case 7:return"seq_parameter_set_rbsp";case 8:return"pic_parameter_set_rbsp";case 9:return"access_unit_delimiter_rbsp";default:return null}}function Vu(e,t){var i=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9];return i=0<=i?i:0,(16&e[t+5])>>4?i+20:i+10}function qu(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]}var Hu,Wu,zu,Gu,Xu={parseType:function(e,t){var i=Uu(e);return 0===i?"pat":i===t?"pmt":t?"pes":null},parsePat:function(e){var t=Bu(e),i=4+Fu(e);return t&&(i+=e[i]+1),(31&e[i+10])<<8|e[i+11]},parsePmt:function(e){var t={},i=Bu(e),n=4+Fu(e);if(i&&(n+=e[n]+1),1&e[n+5]){var r;r=3+((15&e[n+1])<<8|e[n+2])-4;for(var a=12+((15&e[n+10])<<8|e[n+11]);a<r;){var s=n+a;t[(31&e[s+1])<<8|e[s+2]]=e[s],a+=5+((15&e[s+3])<<8|e[s+4])}return t}},parsePayloadUnitStartIndicator:Bu,parsePesType:function(e,t){switch(t[Uu(e)]){case Du:return"video";case Ru:return"audio";case Mu:return"timed-metadata";default:return null}},parsePesTime:function(e){if(!Bu(e))return null;var t=4+Fu(e);if(t>=e.byteLength)return null;var i,n=null;return 192&(i=e[t+7])&&((n={}).pts=(14&e[t+9])<<27|(255&e[t+10])<<20|(254&e[t+11])<<12|(255&e[t+12])<<5|(254&e[t+13])>>>3,n.pts*=4,n.pts+=(6&e[t+13])>>>1,n.dts=n.pts,64&i&&(n.dts=(14&e[t+14])<<27|(255&e[t+15])<<20|(254&e[t+16])<<12|(255&e[t+17])<<5|(254&e[t+18])>>>3,n.dts*=4,n.dts+=(6&e[t+18])>>>1)),n},videoPacketContainsKeyFrame:function(e){for(var t=4+Fu(e),i=e.subarray(t),n=0,r=0,a=!1;r<i.byteLength-3;r++)if(1===i[r+2]){n=r+5;break}for(;n<i.byteLength;)switch(i[n]){case 0:if(0!==i[n-1]){n+=2;break}if(0!==i[n-2]){n++;break}for(r+3!==n-2&&"slice_layer_without_partitioning_rbsp_idr"===ju(31&i[r+3])&&(a=!0);1!==i[++n]&&n<i.length;);r=n-2,n+=3;break;case 1:if(0!==i[n-1]||0!==i[n-2]){n+=3;break}"slice_layer_without_partitioning_rbsp_idr"===ju(31&i[r+3])&&(a=!0),r=n-2,n+=3;break;default:n+=3}return i=i.subarray(r),n-=r,r=0,i&&3<i.byteLength&&"slice_layer_without_partitioning_rbsp_idr"===ju(31&i[r+3])&&(a=!0),a}},Ku=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],Qu={isLikelyAacData:function(e){var t=function e(t,i){return t.length-i<10||t[i]!=="I".charCodeAt(0)||t[i+1]!=="D".charCodeAt(0)||t[i+2]!=="3".charCodeAt(0)?i:e(t,i+=Vu(t,i))}(e,0);return e.length>=t+2&&255==(255&e[t])&&240==(240&e[t+1])&&16==(22&e[t+1])},parseId3TagSize:Vu,parseAdtsSize:function(e,t){var i=(224&e[t+5])>>5,n=e[t+4]<<3;return 6144&e[t+3]|n|i},parseType:function(e,t){return e[t]==="I".charCodeAt(0)&&e[t+1]==="D".charCodeAt(0)&&e[t+2]==="3".charCodeAt(0)?"timed-metadata":!0&e[t]&&240==(240&e[t+1])?"audio":null},parseSampleRate:function(e){for(var t=0;t+5<e.length;){if(255===e[t]&&240==(246&e[t+1]))return Ku[(60&e[t+2])>>>2];t++}return null},parseAacTimestamp:function(e){var t,i,n;t=10,64&e[5]&&(t+=4,t+=qu(e.subarray(10,14)));do{if((i=qu(e.subarray(t+4,t+8)))<1)return null;if("PRIV"===String.fromCharCode(e[t],e[t+1],e[t+2],e[t+3])){n=e.subarray(t+10,t+i+10);for(var r=0;r<n.byteLength;r++)if(0===n[r]){if("com.apple.streaming.transportStreamTimestamp"!==unescape(function(e,t,i){var n,r="";for(n=t;n<i;n++)r+="%"+("00"+e[n].toString(16)).slice(-2);return r}(n,0,r)))break;var a=n.subarray(r+1),s=(1&a[3])<<30|a[4]<<22|a[5]<<14|a[6]<<6|a[7]>>>2;return s*=4,s+=3&a[7]}}t+=10,t+=i}while(t<e.byteLength);return null}},Yu=9e4,$u=(Hu=function(e){return 9e4*e},Wu=function(e,t){return e*t},zu=function(e){return e/9e4},Gu=function(e,t){return e/t},Yu),Ju=Nu,Zu={};Zu.ts=Xu,Zu.aac=Qu;function el(e,t,i){for(var n,r,a,s,o=0,u=ol,l=!1;u<=e.byteLength;)if(71!==e[o]||71!==e[u]&&u!==e.byteLength)o++,u++;else{switch(n=e.subarray(o,u),Zu.ts.parseType(n,t.pid)){case"pes":r=Zu.ts.parsePesType(n,t.table),a=Zu.ts.parsePayloadUnitStartIndicator(n),"audio"===r&&a&&(s=Zu.ts.parsePesTime(n))&&(s.type="audio",i.audio.push(s),l=!0)}if(l)break;o+=ol,u+=ol}for(o=(u=e.byteLength)-ol,l=!1;0<=o;)if(71!==e[o]||71!==e[u]&&u!==e.byteLength)o--,u--;else{switch(n=e.subarray(o,u),Zu.ts.parseType(n,t.pid)){case"pes":r=Zu.ts.parsePesType(n,t.table),a=Zu.ts.parsePayloadUnitStartIndicator(n),"audio"===r&&a&&(s=Zu.ts.parsePesTime(n))&&(s.type="audio",i.audio.push(s),l=!0)}if(l)break;o-=ol,u-=ol}}function tl(e,t,i){for(var n,r,a,s,o,u,l,c=0,d=ol,h=!1,p={data:[],size:0};d<e.byteLength;)if(71!==e[c]||71!==e[d])c++,d++;else{switch(n=e.subarray(c,d),Zu.ts.parseType(n,t.pid)){case"pes":if(r=Zu.ts.parsePesType(n,t.table),a=Zu.ts.parsePayloadUnitStartIndicator(n),"video"===r&&(a&&!h&&(s=Zu.ts.parsePesTime(n))&&(s.type="video",i.video.push(s),h=!0),!i.firstKeyFrame)){if(a&&0!==p.size){for(o=new Uint8Array(p.size),u=0;p.data.length;)l=p.data.shift(),o.set(l,u),u+=l.byteLength;if(Zu.ts.videoPacketContainsKeyFrame(o)){var f=Zu.ts.parsePesTime(o);f&&(i.firstKeyFrame=f,i.firstKeyFrame.type="video")}p.size=0}p.data.push(n),p.size+=n.byteLength}}if(h&&i.firstKeyFrame)break;c+=ol,d+=ol}for(c=(d=e.byteLength)-ol,h=!1;0<=c;)if(71!==e[c]||71!==e[d])c--,d--;else{switch(n=e.subarray(c,d),Zu.ts.parseType(n,t.pid)){case"pes":r=Zu.ts.parsePesType(n,t.table),a=Zu.ts.parsePayloadUnitStartIndicator(n),"video"===r&&a&&(s=Zu.ts.parsePesTime(n))&&(s.type="video",i.video.push(s),h=!0)}if(h)break;c-=ol,d-=ol}}function il(e){var t={pid:null,table:null},i={};for(var n in function(e,t){for(var i,n=0,r=ol;r<e.byteLength;)if(71!==e[n]||71!==e[r])n++,r++;else{switch(i=e.subarray(n,r),Zu.ts.parseType(i,t.pid)){case"pat":t.pid||(t.pid=Zu.ts.parsePat(i));break;case"pmt":t.table||(t.table=Zu.ts.parsePmt(i))}if(t.pid&&t.table)return;n+=ol,r+=ol}}(e,t),t.table){if(t.table.hasOwnProperty(n))switch(t.table[n]){case Du:i.video=[],tl(e,t,i),0===i.video.length&&delete i.video;break;case Ru:i.audio=[],el(e,t,i),0===i.audio.length&&delete i.audio}}return i}var nl,rl,al,sl=Yu,ol=188,ul=function(e,t){var i;return(i=Zu.aac.isLikelyAacData(e)?function(e){for(var t,i=!1,n=0,r=null,a=null,s=0,o=0;3<=e.length-o;){switch(Zu.aac.parseType(e,o)){case"timed-metadata":if(e.length-o<10){i=!0;break}if((s=Zu.aac.parseId3TagSize(e,o))>e.length){i=!0;break}null===a&&(t=e.subarray(o,o+s),a=Zu.aac.parseAacTimestamp(t)),o+=s;break;case"audio":if(e.length-o<7){i=!0;break}if((s=Zu.aac.parseAdtsSize(e,o))>e.length){i=!0;break}null===r&&(t=e.subarray(o,o+s),r=Zu.aac.parseSampleRate(t)),n++,o+=s;break;default:o++}if(i)return null}if(null===r||null===a)return null;var u=sl/r;return{audio:[{type:"audio",dts:a,pts:a},{type:"audio",dts:a+1024*n*u,pts:a+1024*n*u}]}}(e):il(e))&&(i.audio||i.video)?(function(e,t){if(e.audio&&e.audio.length){var i=t;"undefined"!=typeof i&&!isNaN(i)||(i=e.audio[0].dts),e.audio.forEach(function(e){e.dts=Ju(e.dts,i),e.pts=Ju(e.pts,i),e.dtsTime=e.dts/sl,e.ptsTime=e.pts/sl})}if(e.video&&e.video.length){var n=t;if("undefined"!=typeof n&&!isNaN(n)||(n=e.video[0].dts),e.video.forEach(function(e){e.dts=Ju(e.dts,n),e.pts=Ju(e.pts,n),e.dtsTime=e.dts/sl,e.ptsTime=e.pts/sl}),e.firstKeyFrame){var r=e.firstKeyFrame;r.dts=Ju(r.dts,n),r.pts=Ju(r.pts,n),r.dtsTime=r.dts/sl,r.ptsTime=r.pts/sl}}}(i,t),i):null},ll=function(e){return e>>>0},cl=function(e){var t="";return t+=String.fromCharCode(e[0]),t+=String.fromCharCode(e[1]),t+=String.fromCharCode(e[2]),t+=String.fromCharCode(e[3])},dl=ll,hl=function e(t,i){var n,r,a,s,o,u=[];if(!i.length)return null;for(n=0;n<t.byteLength;)r=dl(t[n]<<24|t[n+1]<<16|t[n+2]<<8|t[n+3]),a=cl(t.subarray(n+4,n+8)),s=1<r?n+r:t.byteLength,a===i[0]&&(1===i.length?u.push(t.subarray(n+8,s)):(o=e(t.subarray(n+8,s),i.slice(1))).length&&(u=u.concat(o))),n=s;return u},pl=function(e){var t,i=new DataView(e.buffer,e.byteOffset,e.byteLength),n={version:e[0],flags:new Uint8Array(e.subarray(1,4)),trackId:i.getUint32(4)},r=1&n.flags[2],a=2&n.flags[2],s=8&n.flags[2],o=16&n.flags[2],u=32&n.flags[2],l=65536&n.flags[0],c=131072&n.flags[0];return t=8,r&&(t+=4,n.baseDataOffset=i.getUint32(12),t+=4),a&&(n.sampleDescriptionIndex=i.getUint32(t),t+=4),s&&(n.defaultSampleDuration=i.getUint32(t),t+=4),o&&(n.defaultSampleSize=i.getUint32(t),t+=4),u&&(n.defaultSampleFlags=i.getUint32(t)),l&&(n.durationIsEmpty=!0),!r&&c&&(n.baseDataOffsetIsMoof=!0),n},fl=function(e){return{isLeading:(12&e[0])>>>2,dependsOn:3&e[0],isDependedOn:(192&e[1])>>>6,hasRedundancy:(48&e[1])>>>4,paddingValue:(14&e[1])>>>1,isNonSyncSample:1&e[1],degradationPriority:e[2]<<8|e[3]}},ml=function(e){var t,i={version:e[0],flags:new Uint8Array(e.subarray(1,4)),samples:[]},n=new DataView(e.buffer,e.byteOffset,e.byteLength),r=1&i.flags[2],a=4&i.flags[2],s=1&i.flags[1],o=2&i.flags[1],u=4&i.flags[1],l=8&i.flags[1],c=n.getUint32(4),d=8;for(r&&(i.dataOffset=n.getInt32(d),d+=4),a&&c&&(t={flags:fl(e.subarray(d,d+4))},d+=4,s&&(t.duration=n.getUint32(d),d+=4),o&&(t.size=n.getUint32(d),d+=4),l&&(1===i.version?t.compositionTimeOffset=n.getInt32(d):t.compositionTimeOffset=n.getUint32(d),d+=4),i.samples.push(t),c--);c--;)t={},s&&(t.duration=n.getUint32(d),d+=4),o&&(t.size=n.getUint32(d),d+=4),u&&(t.flags=fl(e.subarray(d,d+4)),d+=4),l&&(1===i.version?t.compositionTimeOffset=n.getInt32(d):t.compositionTimeOffset=n.getUint32(d),d+=4),i.samples.push(t);return i},gl=ll,vl=function(e){var t={version:e[0],flags:new Uint8Array(e.subarray(1,4)),baseMediaDecodeTime:gl(e[4]<<24|e[5]<<16|e[6]<<8|e[7])};return 1===t.version&&(t.baseMediaDecodeTime*=Math.pow(2,32),t.baseMediaDecodeTime+=gl(e[8]<<24|e[9]<<16|e[10]<<8|e[11])),t},yl=ll,_l=function(e){return("00"+e.toString(16)).slice(-2)};nl=function(a,e){var t,i,n;return t=hl(e,["moof","traf"]),i=[].concat.apply([],t.map(function(r){return hl(r,["tfhd"]).map(function(e){var t,i,n;return t=yl(e[4]<<24|e[5]<<16|e[6]<<8|e[7]),i=a[t]||9e4,(n="number"!=typeof(n=hl(r,["tfdt"]).map(function(e){var t,i;return t=e[0],i=yl(e[4]<<24|e[5]<<16|e[6]<<8|e[7]),1===t&&(i*=Math.pow(2,32),i+=yl(e[8]<<24|e[9]<<16|e[10]<<8|e[11])),i})[0])||isNaN(n)?1/0:n)/i})})),n=Math.min.apply(null,i),isFinite(n)?n:0},rl=function(e){var t=hl(e,["moov","trak"]),h=[];return t.forEach(function(e){var t,i,n={},r=hl(e,["tkhd"])[0];r&&(i=(t=new DataView(r.buffer,r.byteOffset,r.byteLength)).getUint8(0),n.id=0===i?t.getUint32(12):t.getUint32(20));var a=hl(e,["mdia","hdlr"])[0];if(a){var s=cl(a.subarray(8,12));n.type="vide"===s?"video":"soun"===s?"audio":s}var o=hl(e,["mdia","minf","stbl","stsd"])[0];if(o){var u=o.subarray(8);n.codec=cl(u.subarray(4,8));var l,c=hl(u,[n.codec])[0];c&&(/^[a-z]vc[1-9]$/i.test(n.codec)?(l=c.subarray(78),"avcC"===cl(l.subarray(4,8))&&11<l.length?(n.codec+=".",n.codec+=_l(l[9]),n.codec+=_l(l[10]),n.codec+=_l(l[11])):n.codec="avc1.4d400d"):/^mp4[a,v]$/i.test(n.codec)?(l=c.subarray(28),"esds"===cl(l.subarray(4,8))&&20<l.length&&0!==l[19]?(n.codec+="."+_l(l[19]),n.codec+="."+_l(l[20]>>>2&63).replace(/^0/,"")):n.codec="mp4a.40.2"):n.codec=n.codec.toLowerCase())}var d=hl(e,["mdia","mdhd"])[0];d&&(n.timescale=al(d)),h.push(n)}),h};function bl(e){return e?e.replace(/avc1\.(\d+)\.(\d+)/i,function(e,t,i){return"avc1."+("00"+Number(t).toString(16)).slice(-2)+"00"+("00"+Number(i).toString(16)).slice(-2)}):e}function Tl(e){void 0===e&&(e="");var t=e.split(","),s=[];return t.forEach(function(r){var a;r=r.trim(),$c.forEach(function(e){var t=Yc[e].exec(r.toLowerCase());if(t&&!(t.length<=1)){a=e;var i=r.substring(0,t[1].length),n=r.replace(i,"");s.push({type:i,details:n,mediaType:e})}}),a||s.push({type:r,details:"",mediaType:"unknown"})}),s}function Sl(e){return void 0===e&&(e=""),Yc.audio.test(e.trim().toLowerCase())}function kl(e){if(e&&"string"==typeof e){var t=e.toLowerCase().split(",").map(function(e){return bl(e.trim())}),i="video";1===t.length&&Sl(t[0])?i="audio":1===t.length&&function(e){return void 0===e&&(e=""),Yc.text.test(e.trim().toLowerCase())}(t[0])&&(i="application");var n="mp4";return t.every(function(e){return Yc.mp4.test(e)})?n="mp4":t.every(function(e){return Yc.webm.test(e)})?n="webm":t.every(function(e){return Yc.ogg.test(e)})&&(n="ogg"),i+"/"+n+';codecs="'+e+'"'}}function wl(e){return void 0===e&&(e=""),Ia.MediaSource&&Ia.MediaSource.isTypeSupported&&Ia.MediaSource.isTypeSupported(kl(e))||!1}function El(e){return void 0===e&&(e=""),e.toLowerCase().split(",").every(function(e){e=e.trim();for(var t=0;t<Jc.length;t++){if(Yc["muxer"+Jc[t]].test(e))return!0}return!1})}function Cl(e,t,i){return e&&i&&i.responseURL&&t!==i.responseURL?i.responseURL:t}function Il(e){return ga.log.debug?ga.log.debug.bind(ga,"VHS:",e+" >"):function(){}}function xl(e,t){return e+"-"+t}function Al(e){var t=e.onwarn,i=e.oninfo,n=e.manifestString,r=e.customTagParsers,a=void 0===r?[]:r,s=e.customTagMappers,o=void 0===s?[]:s,u=new Fa;return t&&u.on("warn",t),i&&u.on("info",i),a.forEach(function(e){return u.addParser(e)}),o.forEach(function(e){return u.addTagMapper(e)}),u.push(n),u.end(),u.manifest}function Pl(r,a){["AUDIO","SUBTITLES"].forEach(function(e){for(var t in r.mediaGroups[e])for(var i in r.mediaGroups[e][t]){var n=r.mediaGroups[e][t][i];a(n,e,t,i)}})}function Ll(e){var t=e.playlist,i=e.uri,n=e.id;t.id=n,i&&(t.uri=i),t.attributes=t.attributes||{}}function Ol(s,e){s.uri=e;for(var t=0;t<s.playlists.length;t++)if(!s.playlists[t].uri){var i="placeholder-uri-"+t;s.playlists[t].uri=i}Pl(s,function(e,t,i,n){if(e.playlists&&e.playlists.length&&!e.playlists[0].uri){var r="placeholder-uri-"+t+"-"+i+"-"+n,a=xl(0,r);e.playlists[0].uri=r,e.playlists[0].id=a,s.playlists[a]=e.playlists[0],s.playlists[r]=e.playlists[0]}}),function(e){for(var t=e.playlists.length;t--;){var i=e.playlists[t];Ll({playlist:i,id:xl(t,i.uri)}),i.resolvedUri=ed(e.uri,i.uri),e.playlists[i.id]=i,(e.playlists[i.uri]=i).attributes.BANDWIDTH||td.warn("Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute.")}}(s),function(t){Pl(t,function(e){e.uri&&(e.resolvedUri=ed(t.uri,e.uri))})}(s)}function Dl(e,t){e.resolvedUri||(e.resolvedUri=ed(t,e.uri)),e.key&&!e.key.resolvedUri&&(e.key.resolvedUri=ed(t,e.key.uri)),e.map&&!e.map.resolvedUri&&(e.map.resolvedUri=ed(t,e.map.uri))}function Rl(e,t){return e===t||e.segments&&t.segments&&e.segments.length===t.segments.length&&e.endList===t.endList&&e.mediaSequence===t.mediaSequence}function Ml(e,t,i){void 0===i&&(i=Rl);var n=id(e,{}),r=n.playlists[t.id];if(!r)return null;if(i(r,t))return null;var a=id(r,t);r.segments&&(a.segments=function(e,t,i){var n=t.slice();i=i||0;for(var r=Math.min(e.length,t.length+i),a=i;a<r;a++)n[a-i]=id(e[a],n[a-i]);return n}(r.segments,t.segments,t.mediaSequence-r.mediaSequence)),a.segments.forEach(function(e){Dl(e,a.resolvedUri)});for(var s=0;s<n.playlists.length;s++)n.playlists[s].id===t.id&&(n.playlists[s]=a);return n.playlists[t.id]=a,n.playlists[t.uri]=a,n}function Nl(e,t){var i=e.segments[e.segments.length-1];return t&&i&&i.duration?1e3*i.duration:500*(e.targetDuration||10)}function Ul(e,t){var i,n=[];if(e&&e.length)for(i=0;i<e.length;i++)t(e.start(i),e.end(i))&&n.push([e.start(i),e.end(i)]);return ga.createTimeRanges(n)}function Bl(e,i){return Ul(e,function(e,t){return e-.1<=i&&i<=t+.1})}function Fl(e,t){return Ul(e,function(e){return t<=e-rd})}function jl(e){var t=[];if(!e||!e.length)return"";for(var i=0;i<e.length;i++)t.push(e.start(i)+" => "+e.end(i));return t.join(", ")}function Vl(e){for(var t=[],i=0;i<e.length;i++)t.push({start:e.start(i),end:e.end(i)});return t}function ql(e,t,i){if("undefined"==typeof t&&(t=e.mediaSequence+e.segments.length),t<e.mediaSequence)return 0;var n=function(e,t){var i=0,n=t-e.mediaSequence,r=e.segments[n];if(r){if("undefined"!=typeof r.start)return{result:r.start,precise:!0};if("undefined"!=typeof r.end)return{result:r.end-r.duration,precise:!0}}for(;n--;){if("undefined"!=typeof(r=e.segments[n]).end)return{result:i+r.end,precise:!0};if(i+=r.duration,"undefined"!=typeof r.start)return{result:i+r.start,precise:!0}}return{result:i,precise:!1}}(e,t);if(n.precise)return n.result;var r=function(e,t){for(var i,n=0,r=t-e.mediaSequence;r<e.segments.length;r++){if("undefined"!=typeof(i=e.segments[r]).start)return{result:i.start-n,precise:!0};if(n+=i.duration,"undefined"!=typeof i.end)return{result:i.end-n,precise:!0}}return{result:-1,precise:!1}}(e,t);return r.precise?r.result:n.result+i}function Hl(e,t,i){if(!e)return 0;if("number"!=typeof i&&(i=0),"undefined"==typeof t){if(e.totalDuration)return e.totalDuration;if(!e.endList)return Ea.Infinity}return ql(e,t,i)}function Wl(e,t,i){var n=0;if(i<t){var r=[i,t];t=r[0],i=r[1]}if(t<0){for(var a=t;a<Math.min(0,i);a++)n+=e.targetDuration;t=0}for(var s=t;s<i;s++)n+=e.segments[s].duration;return n}function zl(e,t){if(!e.segments.length)return 0;var i=e.segments.length,n=e.segments[i-1].duration||e.targetDuration,r="number"==typeof t?t:n+2*e.targetDuration;if(0===r)return i;for(var a=0;i--&&!(r<=(a+=e.segments[i].duration)););return Math.max(0,i)}function Gl(e,t,i,n){if(!e||!e.segments)return null;if(e.endList)return Hl(e);if(null===t)return null;t=t||0;var r=i?zl(e,n):e.segments.length;return ql(e,e.mediaSequence+r,t)}function Xl(e){return e.excludeUntil&&e.excludeUntil>Date.now()}function Kl(e){return e.excludeUntil&&e.excludeUntil===1/0}function Ql(e){var t=Xl(e);return!e.disabled&&!t}function Yl(e,t){return t.attributes&&t.attributes[e]}function $l(e,t){if(1===e.playlists.length)return!0;var i=t.attributes.BANDWIDTH||Number.MAX_VALUE;return 0===e.playlists.filter(function(e){return!!Ql(e)&&(e.attributes.BANDWIDTH||0)<i}).length}function Jl(e,t,i,n){var r="arraybuffer"===e.responseType?e.response:e.responseText;!t&&r&&(e.responseTime=Date.now(),e.roundTripTime=e.responseTime-e.requestTime,e.bytesReceived=r.byteLength||r.length,e.bandwidth||(e.bandwidth=Math.floor(e.bytesReceived/e.roundTripTime*8*1e3))),i.headers&&(e.responseHeaders=i.headers),t&&"ETIMEDOUT"===t.code&&(e.timedout=!0),t||e.aborted||200===i.statusCode||206===i.statusCode||0===i.statusCode||(t=new Error("XHR Failed with a response of: "+(e&&(r||e.responseText)))),n(t,e)}function Zl(){function s(e,i){e=ud({timeout:45e3},e);var t=s.beforeRequest||ga.Vhs.xhr.beforeRequest;if(t&&"function"==typeof t){var n=t(e);n&&(e=n)}var r=(!0===ga.Vhs.xhr.original?od:ga.Vhs.xhr)(e,function(e,t){return Jl(r,e,t,i)}),a=r.abort;return r.abort=function(){return r.aborted=!0,a.apply(r,arguments)},r.uri=e.uri,r.requestTime=Date.now(),r}return s.original=!0,s}function ec(e){var t={};return e.byterange&&(t.Range=function(e){var t=e.offset+e.length-1;return"bytes="+e.offset+"-"+t}(e.byterange)),t}function tc(e,t){var i=e.toString(16);return"00".substring(0,2-i.length)+i+(t%2?" ":"")}function ic(e){return 32<=e&&e<126?String.fromCharCode(e):"."}function nc(i){var n={};return Object.keys(i).forEach(function(e){var t=i[e];ArrayBuffer.isView(t)?n[e]={bytes:t.buffer,byteOffset:t.byteOffset,byteLength:t.byteLength}:n[e]=t}),n}function rc(e){var t=e.byterange||{length:1/0,offset:0};return[t.length,t.offset,e.resolvedUri].join(",")}function ac(e){return e.resolvedUri}function sc(e){for(var t=Array.prototype.slice.call(e),i="",n=0;n<t.length/16;n++)i+=t.slice(16*n,16*n+16).map(tc).join("")+" "+t.slice(16*n,16*n+16).map(ic).join("")+"\n";return i}function oc(e){var t=e.playlist,i=e.time,n=void 0===i?void 0:i,r=e.callback;if(!r)throw new Error("getProgramTime: callback must be provided");if(!t||void 0===n)return r({message:"getProgramTime: playlist and time must be provided"});var a=function(e,t){if(!t||!t.segments||0===t.segments.length)return null;for(var i,n=0,r=0;r<t.segments.length&&!(e<=(n=(i=t.segments[r]).videoTimingInfo?i.videoTimingInfo.transmuxedPresentationEnd:n+i.duration));r++);var a=t.segments[t.segments.length-1];if(a.videoTimingInfo&&a.videoTimingInfo.transmuxedPresentationEnd<e)return null;if(n<e){if(e>n+.25*a.duration)return null;i=a}return{segment:i,estimatedStart:i.videoTimingInfo?i.videoTimingInfo.transmuxedPresentationStart:n-i.duration,type:i.videoTimingInfo?"accurate":"estimate"}}(n,t);if(!a)return r({message:"valid programTime was not found"});if("estimate"===a.type)return r({message:"Accurate programTime could not be determined. Please seek to e.seekTime and try again",seekTime:a.estimatedStart});var s={mediaSeconds:n},o=function(e,t){if(!t.dateTimeObject)return null;var i=t.videoTimingInfo.transmuxerPrependedSeconds,n=e-(t.videoTimingInfo.transmuxedPresentationStart+i);return new Date(t.dateTimeObject.getTime()+1e3*n)}(n,a.segment);return o&&(s.programDateTime=o.toISOString()),r(null,s)}function uc(e){var t=e.programTime,i=e.playlist,n=e.retryCount,r=void 0===n?2:n,a=e.seekTo,s=e.pauseAfterSeek,o=void 0===s||s,u=e.tech,l=e.callback;if(!l)throw new Error("seekToProgramTime: callback must be provided");if("undefined"==typeof t||!i||!a)return l({message:"seekToProgramTime: programTime, seekTo and playlist must be provided"});if(!i.endList&&!u.hasStarted_)return l({message:"player must be playing a live stream to start buffering"});if(!function(e){if(!e.segments||0===e.segments.length)return!1;for(var t=0;t<e.segments.length;t++){if(!e.segments[t].dateTimeObject)return!1}return!0}(i))return l({message:"programDateTime tags must be provided in the manifest "+i.resolvedUri});var c=function(e,t){var i;try{i=new Date(e)}catch(e){return null}if(!t||!t.segments||0===t.segments.length)return null;var n=t.segments[0];if(i<n.dateTimeObject)return null;for(var r=0;r<t.segments.length-1;r++){if(n=t.segments[r],i<t.segments[r+1].dateTimeObject)break}var a=t.segments[t.segments.length-1],s=a.dateTimeObject,o=a.videoTimingInfo?function(e){return e.transmuxedPresentationEnd-e.transmuxedPresentationStart-e.transmuxerPrependedSeconds}(a.videoTimingInfo):a.duration+.25*a.duration;return new Date(s.getTime()+1e3*o)<i?null:(s<i&&(n=a),{segment:n,estimatedStart:n.videoTimingInfo?n.videoTimingInfo.transmuxedPresentationStart:sd.duration(t,t.mediaSequence+t.segments.indexOf(n)),type:n.videoTimingInfo?"accurate":"estimate"})}(t,i);if(!c)return l({message:t+" was not found in the stream"});var d=c.segment,h=function(e,t){var i,n;try{i=new Date(e),n=new Date(t)}catch(e){}var r=i.getTime();return(n.getTime()-r)/1e3}(d.dateTimeObject,t);if("estimate"===c.type)return 0===r?l({message:t+" is not buffered yet. Try again"}):(a(c.estimatedStart+h),void u.one("seeked",function(){uc({programTime:t,playlist:i,retryCount:r-1,seekTo:a,pauseAfterSeek:o,tech:u,callback:l})}));var p=d.start+h;u.one("seeked",function(){return l(null,u.currentTime())}),o&&u.pause(),a(p)}function lc(e,t){if(4===e.readyState)return t()}function cc(e,t,r){function a(e,t,i,n){return t.abort(),u=!0,r(e,t,i,n)}function i(e,t){if(!u){if(e)return a(e,t,"",o);var i=t.responseText.substring(o&&o.byteLength||0,t.responseText.length);if(o=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];if((t=t.filter(function(e){return e&&(e.byteLength||e.length)&&"string"!=typeof e})).length<=1)return Ho(t[0]);var n=t.reduce(function(e,t,i){return e+(t.byteLength||t.length)},0),r=new Uint8Array(n),a=0;return t.forEach(function(e){e=Ho(e),r.set(e,a),a+=e.byteLength}),r}(o,zo(i,!0)),s=s||Xo(o),o.length<10||s&&o.length<s+2)return lc(t,function(){return a(e,t,"",o)});var n=Au(o);return"ts"===n&&o.length<188?lc(t,function(){return a(e,t,"",o)}):!n&&o.length<376?lc(t,function(){return a(e,t,"",o)}):a(null,t,n,o)}}var s,o=[],u=!1,n=t({uri:e,beforeSend:function(t){t.overrideMimeType("text/plain; charset=x-user-defined"),t.addEventListener("progress",function(e){e.total,e.loaded;return Jl(t,null,{statusCode:t.status},i)})}},function(e,t){return Jl(n,e,t,i)});return n}function dc(e,t){if(!Rl(e,t))return!1;if(e.sidx&&t.sidx&&(e.sidx.offset!==t.sidx.offset||e.sidx.length!==t.sidx.length))return!1;if(!e.sidx&&t.sidx||e.sidx&&!t.sidx)return!1;if(e.segments&&!t.segments||!e.segments&&t.segments)return!1;if(!e.segments&&!t.segments)return!0;for(var i=0;i<e.segments.length;i++){var n=e.segments[i],r=t.segments[i];if(n.uri!==r.uri)return!1;if(n.byterange||r.byterange){var a=n.byterange,s=r.byterange;if(a&&!s||!a&&s)return!1;if(a.offset!==s.offset||a.length!==s.length)return!1}}return!0}function hc(e){var t=e.byterange.offset+e.byterange.length-1;return e.uri+"-"+e.byterange.offset+"-"+t}function pc(e,t){var i,n,r={};for(var a in e){var s=e[a].sidx;if(s){var o=hc(s);if(!t[o])break;var u=t[o].sidxInfo;i=u,n=s,(Boolean(!i.map&&!n.map)||Boolean(i.map&&n.map&&i.map.byterange.offset===n.map.byterange.offset&&i.map.byterange.length===n.map.byterange.length))&&i.uri===n.uri&&i.byterange.offset===n.byterange.offset&&i.byterange.length===n.byterange.length&&(r[o]=t[o])}}return r}function fc(e){for(var t=new Uint8Array(new ArrayBuffer(e.length)),i=0;i<e.length;i++)t[i]=e.charCodeAt(i);return t.buffer}function mc(e){return e.on=e.addEventListener,e.off=e.removeEventListener,e}function gc(n){return function(){var e=function(t){try{return URL.createObjectURL(new Blob([t],{type:"application/javascript"}))}catch(e){var i=new BlobBuilder;return i.append(t),URL.createObjectURL(i.getBlob())}}(n),t=mc(new Worker(e));t.objURL=e;var i=t.terminate;return t.on=t.addEventListener,t.off=t.removeEventListener,t.terminate=function(){return URL.revokeObjectURL(e),i.call(this)},t}}function vc(e){return"var browserWorkerPolyFill = "+mc.toString()+";\nbrowserWorkerPolyFill(self);\n"+e}function yc(e){return e.toString().replace(/^function.+?{/,"").slice(0,-1)}function _c(t){var i=t.transmuxer,e=t.bytes,n=t.audioAppendStart,r=t.gopsToAlignWith,a=t.isPartial,s=t.remux,o=t.onData,u=t.onTrackInfo,l=t.onAudioTimingInfo,c=t.onVideoTimingInfo,d=t.onVideoSegmentTimingInfo,h=t.onAudioSegmentTimingInfo,p=t.onId3,f=t.onCaptions,m=t.onDone,g=t.onEndedTimeline,v=t.isEndOfTimeline,y={isPartial:a,buffer:[]},_=v;if(i.onmessage=function(e){i.currentTransmux===t&&("data"===e.data.action&&function(e,t,i){var n=e.data.segment,r=n.type,a=n.initSegment,s=n.captions,o=n.captionStreams,u=n.metadata,l=n.videoFrameDtsTime,c=n.videoFramePtsTime;t.buffer.push({captions:s,captionStreams:o,metadata:u});var d=e.data.segment.boxes||{data:e.data.segment.data},h={type:r,data:new Uint8Array(d.data,d.data.byteOffset,d.data.byteLength),initSegment:new Uint8Array(a.data,a.byteOffset,a.byteLength)};"undefined"!=typeof l&&(h.videoFrameDtsTime=l),"undefined"!=typeof c&&(h.videoFramePtsTime=c),i(h)}(e,y,o),"trackinfo"===e.data.action&&u(e.data.trackInfo),"gopInfo"===e.data.action&&function(e,t){t.gopInfo=e.data.gopInfo}(e,y),"audioTimingInfo"===e.data.action&&l(e.data.audioTimingInfo),"videoTimingInfo"===e.data.action&&c(e.data.videoTimingInfo),"videoSegmentTimingInfo"===e.data.action&&d(e.data.videoSegmentTimingInfo),"audioSegmentTimingInfo"===e.data.action&&h(e.data.audioSegmentTimingInfo),"id3Frame"===e.data.action&&p([e.data.id3Frame],e.data.id3Frame.dispatchType),"caption"===e.data.action&&f(e.data.caption),"endedtimeline"===e.data.action&&(_=!1,g()),"transmuxed"===e.data.type&&(_||(i.onmessage=null,function(e){var t=e.transmuxedData,i=e.callback;t.buffer=[],i(t)}({transmuxedData:y,callback:m}),fd(i))))},n&&i.postMessage({action:"setAudioAppendStart",appendStart:n}),Array.isArray(r)&&i.postMessage({action:"alignGopsWith",gopsToAlignWith:r}),"undefined"!=typeof s&&i.postMessage({action:"setRemux",remux:s}),e.byteLength){var b=e instanceof ArrayBuffer?e:e.buffer,T=e instanceof ArrayBuffer?0:e.byteOffset;i.postMessage({action:"push",data:b,byteOffset:T,byteLength:e.byteLength},[b])}i.postMessage({action:a?"partialFlush":"flush"}),v&&i.postMessage({action:"endTimeline"})}function bc(e,t){e.postMessage({action:t}),fd(e)}function Tc(e,t){if(!t.currentTransmux)return t.currentTransmux=e,void bc(t,e);t.transmuxQueue.push(bc.bind(null,t,e))}function Sc(e){if(!e.transmuxer.currentTransmux)return e.transmuxer.currentTransmux=e,void _c(e);e.transmuxer.transmuxQueue.push(e)}function kc(e){e.forEach(function(e){e.abort()})}function wc(e,t){return t.timedout?{status:t.status,message:"HLS request timed-out at URL: "+t.uri,code:yd,xhr:t}:t.aborted?{status:t.status,message:"HLS request aborted at URL: "+t.uri,code:_d,xhr:t}:e?{status:t.status,message:"HLS request errored at URL: "+t.uri,code:vd,xhr:t}:null}function Ec(e){var i=e.segment,t=e.bytes,n=e.isPartial,r=e.trackInfoFn,a=e.timingInfoFn,s=e.videoSegmentTimingInfoFn,o=e.audioSegmentTimingInfoFn,u=e.id3Fn,l=e.captionsFn,c=e.isEndOfTimeline,d=e.endedTimelineFn,h=e.dataFn,p=e.doneFn,f=i.map&&i.map.tracks||{},m=Boolean(f.audio&&f.video),g=a.bind(null,i,"audio","start"),v=a.bind(null,i,"audio","end"),y=a.bind(null,i,"video","start"),_=a.bind(null,i,"video","end");if(!n&&!i.lastReachedChar){var b=function(e,t){var i="number"!=typeof t||isNaN(t)?void 0:t*$u,n=ul(e,i);if(!n)return null;var r={hasVideo:n.video&&2===n.video.length||!1,hasAudio:n.audio&&2===n.audio.length||!1};return r.hasVideo&&(r.videoStart=n.video[0].ptsTime),r.hasAudio&&(r.audioStart=n.audio[0].ptsTime),r}(t,i.baseStartTime);b&&(r(i,{hasAudio:b.hasAudio,hasVideo:b.hasVideo,isMuxed:m}),r=null,b.hasAudio&&!m&&g(b.audioStart),b.hasVideo&&y(b.videoStart),y=g=null)}Sc({bytes:t,transmuxer:i.transmuxer,audioAppendStart:i.audioAppendStart,gopsToAlignWith:i.gopsToAlignWith,isPartial:n,remux:m,onData:function(e){e.type="combined"===e.type?"video":e.type,h(i,e)},onTrackInfo:function(e){r&&(m&&(e.isMuxed=!0),r(i,e))},onAudioTimingInfo:function(e){g&&"undefined"!=typeof e.start&&(g(e.start),g=null),v&&"undefined"!=typeof e.end&&v(e.end)},onVideoTimingInfo:function(e){y&&"undefined"!=typeof e.start&&(y(e.start),y=null),_&&"undefined"!=typeof e.end&&_(e.end)},onVideoSegmentTimingInfo:function(e){s(e)},onAudioSegmentTimingInfo:function(e){o(e)},onId3:function(e,t){u(i,e,t)},onCaptions:function(e){l(i,[e])},isEndOfTimeline:c&&!n,onEndedTimeline:function(){d()},onDone:function(e){p&&!n&&(e.type="combined"===e.type?"video":e.type,p(null,i,e))}})}function Cc(e){var n=e.segment,r=e.bytes,t=e.isPartial,i=e.trackInfoFn,a=e.timingInfoFn,s=e.videoSegmentTimingInfoFn,o=e.audioSegmentTimingInfoFn,u=e.id3Fn,l=e.captionsFn,c=e.isEndOfTimeline,d=e.endedTimelineFn,h=e.dataFn,p=e.doneFn,f=new Uint8Array(r);if(Pu(f)){n.isFmp4=!0;var m=n.map.tracks,g={isFmp4:!0,hasVideo:!!m.video,hasAudio:!!m.audio};m.audio&&m.audio.codec&&"enca"!==m.audio.codec&&(g.audioCodec=m.audio.codec),m.video&&m.video.codec&&"encv"!==m.video.codec&&(g.videoCodec=m.video.codec),m.video&&m.audio&&(g.isMuxed=!0),i(n,g);var v=Kc(n.map.timescales,f);g.hasAudio&&!g.isMuxed&&a(n,"audio","start",v),g.hasVideo&&a(n,"video","start",v);var y=function(e){h(n,{data:r,type:g.hasAudio&&!g.isMuxed?"audio":"video"}),e&&e.length&&l(n,e),p(null,n,{})};if(!m.video||!r.byteLength||!n.transmuxer)return void y();var _=r instanceof ArrayBuffer?r:r.buffer,b=r instanceof ArrayBuffer?0:r.byteOffset;return n.transmuxer.addEventListener("message",function e(t){if("mp4Captions"===t.data.action){n.transmuxer.removeEventListener("message",e);var i=t.data.data;n.bytes=r=new Uint8Array(i,i.byteOffset||0,i.byteLength),y(t.data.captions)}}),void n.transmuxer.postMessage({action:"pushMp4Captions",timescales:n.map.timescales,trackIds:[m.video.id],data:_,byteOffset:b,byteLength:r.byteLength},[_])}if(n.transmuxer){if("undefined"==typeof n.container&&(n.container=Au(f)),"ts"!==n.container&&"aac"!==n.container)return i(n,{hasAudio:!1,hasVideo:!1}),void p(null,n,{});Ec({segment:n,bytes:r,isPartial:t,trackInfoFn:i,timingInfoFn:a,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:o,id3Fn:u,captionsFn:l,isEndOfTimeline:c,endedTimelineFn:d,dataFn:h,doneFn:p})}else p(null,n,{})}function Ic(e){var i=e.activeXhrs,n=e.decryptionWorker,r=e.trackInfoFn,a=e.timingInfoFn,s=e.videoSegmentTimingInfoFn,o=e.audioSegmentTimingInfoFn,u=e.id3Fn,l=e.captionsFn,c=e.isEndOfTimeline,d=e.endedTimelineFn,h=e.dataFn,p=e.doneFn,f=0,m=!1;return function(e,t){if(!m){if(e)return m=!0,kc(i),p(e,t);if((f+=1)===i.length){if(t.endOfAllRequests=Date.now(),t.encryptedBytes)return function(e){var t,n=e.decryptionWorker,r=e.segment,a=e.trackInfoFn,s=e.timingInfoFn,o=e.videoSegmentTimingInfoFn,u=e.audioSegmentTimingInfoFn,l=e.id3Fn,c=e.captionsFn,d=e.isEndOfTimeline,h=e.endedTimelineFn,p=e.dataFn,f=e.doneFn;n.addEventListener("message",function e(t){if(t.data.source===r.requestId){n.removeEventListener("message",e);var i=t.data.decrypted;r.bytes=new Uint8Array(i.bytes,i.byteOffset,i.byteLength),Cc({segment:r,bytes:r.bytes,isPartial:!1,trackInfoFn:a,timingInfoFn:s,videoSegmentTimingInfoFn:o,audioSegmentTimingInfoFn:u,id3Fn:l,captionsFn:c,isEndOfTimeline:d,endedTimelineFn:h,dataFn:p,doneFn:f})}}),t=r.key.bytes.slice?r.key.bytes.slice():new Uint32Array(Array.prototype.slice.call(r.key.bytes)),n.postMessage(nc({source:r.requestId,encrypted:r.encryptedBytes,key:t,iv:r.key.iv}),[r.encryptedBytes.buffer,t.buffer])}({decryptionWorker:n,segment:t,trackInfoFn:r,timingInfoFn:a,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:o,id3Fn:u,captionsFn:l,isEndOfTimeline:c,endedTimelineFn:d,dataFn:h,doneFn:p});Cc({segment:t,bytes:t.bytes,isPartial:!1,trackInfoFn:r,timingInfoFn:a,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:o,id3Fn:u,captionsFn:l,isEndOfTimeline:c,endedTimelineFn:d,dataFn:h,doneFn:p})}}}}function xc(e){var n=e.segment,r=e.progressFn,a=e.trackInfoFn,s=e.timingInfoFn,o=e.videoSegmentTimingInfoFn,u=e.audioSegmentTimingInfoFn,l=e.id3Fn,c=e.captionsFn,d=e.isEndOfTimeline,h=e.endedTimelineFn,p=e.dataFn,f=e.handlePartialData;return function(e){var t=e.target;if(!t.aborted){if(f&&!n.key&&t.responseText&&8<=t.responseText.length){var i=fc(t.responseText.substring(n.lastReachedChar||0));!n.lastReachedChar&&Pu(new Uint8Array(i))||(n.lastReachedChar=t.responseText.length,Cc({segment:n,bytes:i,isPartial:!0,trackInfoFn:a,timingInfoFn:s,videoSegmentTimingInfoFn:o,audioSegmentTimingInfoFn:u,id3Fn:l,captionsFn:c,isEndOfTimeline:d,endedTimelineFn:h,dataFn:p}))}return n.stats=ga.mergeOptions(n.stats,function(e){var t=e.target,i={bandwidth:1/0,bytesReceived:0,roundTripTime:Date.now()-t.requestTime||0};return i.bytesReceived=e.loaded,i.bandwidth=Math.floor(i.bytesReceived/i.roundTripTime*8*1e3),i}(e)),!n.stats.firstBytesReceivedAt&&n.stats.bytesReceived&&(n.stats.firstBytesReceivedAt=Date.now()),r(e,n)}}}function Ac(e){var t=e.xhr,i=e.xhrOptions,n=e.decryptionWorker,r=e.segment,a=e.abortFn,s=e.progressFn,o=e.trackInfoFn,u=e.timingInfoFn,l=e.videoSegmentTimingInfoFn,c=e.audioSegmentTimingInfoFn,d=e.id3Fn,h=e.captionsFn,p=e.isEndOfTimeline,f=e.endedTimelineFn,m=e.dataFn,g=e.doneFn,v=e.handlePartialData,y=[],_=Ic({activeXhrs:y,decryptionWorker:n,trackInfoFn:o,timingInfoFn:u,videoSegmentTimingInfoFn:l,audioSegmentTimingInfoFn:c,id3Fn:d,captionsFn:h,isEndOfTimeline:p,endedTimelineFn:f,dataFn:m,doneFn:g});if(r.key&&!r.key.bytes){var b=t(ga.mergeOptions(i,{uri:r.key.resolvedUri,responseType:"arraybuffer"}),function(a,s){return function(e,t){var i=t.response,n=wc(e,t);if(n)return s(n,a);if(16!==i.byteLength)return s({status:t.status,message:"Invalid HLS key at URL: "+t.uri,code:vd,xhr:t},a);var r=new DataView(i);return a.key.bytes=new Uint32Array([r.getUint32(0),r.getUint32(4),r.getUint32(8),r.getUint32(12)]),s(null,a)}}(r,_));y.push(b)}if(r.map&&!r.map.bytes){var T=t(ga.mergeOptions(i,{uri:r.map.resolvedUri,responseType:"arraybuffer",headers:ec(r.map)}),function(e){var a=e.segment,s=e.finishProcessingFn;return function(e,t){var i=t.response,n=wc(e,t);if(n)return s(n,a);if(0===i.byteLength)return s({status:t.status,message:"Empty HLS segment content at URL: "+t.uri,code:vd,xhr:t},a);a.map.bytes=new Uint8Array(t.response);var r=Au(a.map.bytes);return"mp4"!==r?s({status:t.status,message:"Found unsupported "+(r||"unknown")+" container for initialization segment at URL: "+t.uri,code:vd,internal:!0,xhr:t},a):(Qc(a.map.bytes).forEach(function(e){a.map.tracks=a.map.tracks||{},a.map.tracks[e.type]||"number"==typeof(a.map.tracks[e.type]=e).id&&e.timescale&&(a.map.timescales=a.map.timescales||{},a.map.timescales[e.id]=e.timescale)}),s(null,a))}}({segment:r,finishProcessingFn:_}));y.push(T)}var S=ga.mergeOptions(i,{uri:r.resolvedUri,responseType:"arraybuffer",headers:ec(r)});v&&(S.responseType="text",S.beforeSend=function(e){e.overrideMimeType("text/plain; charset=x-user-defined")});var k=t(S,function(e){var a=e.segment,s=e.finishProcessingFn,o=e.responseType;return function(e,t){var i=t.response,n=wc(e,t);if(n)return s(n,a);var r="arraybuffer"!==o&&t.responseText?fc(t.responseText.substring(a.lastReachedChar||0)):t.response;return 0===i.byteLength?s({status:t.status,message:"Empty HLS segment content at URL: "+t.uri,code:vd,xhr:t},a):(a.stats=function(e){return{bandwidth:e.bandwidth,bytesReceived:e.bytesReceived||0,roundTripTime:e.roundTripTime||0}}(t),a.key?a.encryptedBytes=new Uint8Array(r):a.bytes=new Uint8Array(r),s(null,a))}}({segment:r,finishProcessingFn:_,responseType:S.responseType}));k.addEventListener("progress",xc({segment:r,progressFn:s,trackInfoFn:o,timingInfoFn:u,videoSegmentTimingInfoFn:l,audioSegmentTimingInfoFn:c,id3Fn:d,captionsFn:h,isEndOfTimeline:p,endedTimelineFn:f,dataFn:m,handlePartialData:v})),y.push(k);var w={};return y.forEach(function(e){e.addEventListener("loadend",function(e){var t=e.loadendState,i=e.abortFn;return function(e){e.target.aborted&&i&&!t.calledAbortFn&&(i(),t.calledAbortFn=!0)}}({loadendState:w,abortFn:a}))}),function(){return kc(y)}}function Pc(e,t){var i=t.attributes||{};return e&&e.mediaGroups&&e.mediaGroups.AUDIO&&i.AUDIO&&e.mediaGroups.AUDIO[i.AUDIO]}function Lc(e){var r={};return e.forEach(function(e){var t=e.mediaType,i=e.type,n=e.details;r[t]=r[t]||[],r[t].push(bl(""+i+n))}),Object.keys(r).forEach(function(e){if(1<r[e].length)return bd("multiple "+e+" codecs found as attributes: "+r[e].join(", ")+". Setting playlist codecs to null so that we wait for mux.js to probe segments for real codecs."),void(r[e]=null);r[e]=r[e][0]}),r}function Oc(e){var t=0;return e.audio&&t++,e.video&&t++,t}function Dc(e,t){var i=t.attributes||{},n=Lc(function(e){var t=e.attributes||{};if(t.CODECS)return Tl(t.CODECS)}(t)||[]);if(Pc(e,t)&&!n.audio&&!function(e,t){if(!Pc(e,t))return!0;var i=t.attributes||{},n=e.mediaGroups.AUDIO[i.AUDIO];for(var r in n)if(!n[r].uri&&!n[r].playlists)return!0;return!1}(e,t)){var r=Lc(function(e,t){if(!e.mediaGroups.AUDIO||!t)return null;var i=e.mediaGroups.AUDIO[t];if(!i)return null;for(var n in i){var r=i[n];if(r.default&&r.playlists)return Tl(r.playlists[0].attributes.CODECS)}return null}(e,i.AUDIO)||[]);r.audio&&(n.audio=r.audio)}return n}function Rc(e){if(e&&e.playlist){var t=e.playlist;return JSON.stringify({id:t.id,bandwidth:e.bandwidth,width:e.width,height:e.height,codecs:t.attributes&&t.attributes.CODECS||""})}}function Mc(e,t){if(!e)return"";var i=Ea.getComputedStyle(e);return i?i[t]:""}function Nc(e,n){var r=e.slice();e.sort(function(e,t){var i=n(e,t);return 0===i?r.indexOf(e)-r.indexOf(t):i})}function Uc(e,t){var i,n;return e.attributes.BANDWIDTH&&(i=e.attributes.BANDWIDTH),i=i||Ea.Number.MAX_VALUE,t.attributes.BANDWIDTH&&(n=t.attributes.BANDWIDTH),i-(n=n||Ea.Number.MAX_VALUE)}function Bc(e,t,i,n,r){if(e){var a={bandwidth:t,width:i,height:n,limitRenditionByPlayerDimensions:r},s=e.playlists.map(function(e){var t=e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width,i=e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height;return{bandwidth:e.attributes.BANDWIDTH||Ea.Number.MAX_VALUE,width:t,height:i,playlist:e}});Nc(s,function(e,t){return e.bandwidth-t.bandwidth});var o=(s=s.filter(function(e){return!sd.isIncompatible(e.playlist)})).filter(function(e){return sd.isEnabled(e.playlist)});o.length||(o=s.filter(function(e){return!sd.isDisabled(e.playlist)}));var u=o.filter(function(e){return e.bandwidth*hd.BANDWIDTH_VARIANCE<t}),l=u[u.length-1],c=u.filter(function(e){return e.bandwidth===l.bandwidth})[0];if(!1===r){var d=c||o[0]||s[0];if(d&&d.playlist){var h="sortedPlaylistReps";return c&&(h="bandwidthBestRep"),o[0]&&(h="enabledPlaylistReps"),Td("choosing "+Rc(d)+" using "+h+" with options",a),d.playlist}return Td("could not choose a playlist with options",a),null}var p=u.filter(function(e){return e.width&&e.height});Nc(p,function(e,t){return e.width-t.width});var f=p.filter(function(e){return e.width===i&&e.height===n});l=f[f.length-1];var m,g,v,y=f.filter(function(e){return e.bandwidth===l.bandwidth})[0];y||(g=(m=p.filter(function(e){return e.width>i||e.height>n})).filter(function(e){return e.width===m[0].width&&e.height===m[0].height}),l=g[g.length-1],v=g.filter(function(e){return e.bandwidth===l.bandwidth})[0]);var _=v||y||c||o[0]||s[0];if(_&&_.playlist){var b="sortedPlaylistReps";return v?b="resolutionPlusOneRep":y?b="resolutionBestRep":c?b="bandwidthBestRep":o[0]&&(b="enabledPlaylistReps"),Td("choosing "+Rc(_)+" using "+b+" with options",a),_.playlist}return Td("could not choose a playlist with options",a),null}}function Fc(){var e=this.useDevicePixelRatio&&Ea.devicePixelRatio||1;return Bc(this.playlists.master,this.systemBandwidth,parseInt(Mc(this.tech_.el(),"width"),10)*e,parseInt(Mc(this.tech_.el(),"height"),10)*e,this.limitRenditionByPlayerDimensions)}function jc(e){var t=e.inbandTextTracks,i=e.metadataArray,n=e.timestampOffset,r=e.videoDuration;if(i){var a=Ea.WebKitDataCue||Ea.VTTCue,s=t.metadataTrack_;if(s&&(i.forEach(function(e){var i=e.cueTime+n;!("number"!=typeof i||Ea.isNaN(i)||i<0)&&i<1/0&&e.frames.forEach(function(e){var t=new a(i,i,e.value||e.url||e.data||"");t.frame=e,t.value=e,function(e){Object.defineProperties(e.frame,{id:{get:function(){return ga.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),e.value.key}},value:{get:function(){return ga.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),e.value.data}},privateData:{get:function(){return ga.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),e.value.data}}})}(t),s.addCue(t)})}),s.cues&&s.cues.length)){for(var o=s.cues,u=[],l=0;l<o.length;l++)o[l]&&u.push(o[l]);var c=u.reduce(function(e,t){var i=e[t.startTime]||[];return i.push(t),e[t.startTime]=i,e},{}),d=Object.keys(c).sort(function(e,t){return Number(e)-Number(t)});d.forEach(function(e,t){var i=c[e],n=Number(d[t+1])||r;i.forEach(function(e){e.endTime=n})})}}}function Vc(e,t,i){var n,r;if(i&&i.cues)for(n=i.cues.length;n--;)(r=i.cues[n]).startTime>=e&&r.endTime<=t&&i.removeCue(r)}function qc(e){return"number"==typeof e&&isFinite(e)}function Hc(e){return e+"TimingInfo"}function Wc(e){var t=e.segmentTimeline,i=e.currentTimeline,n=e.startOfSegment,r=e.buffered;return e.overrideCheck||t!==i?t<i?n:r.length?r.end(r.length-1):n:null}function zc(e){var t=e.timelineChangeController,i=e.currentTimeline,n=e.segmentTimeline,r=e.loaderType,a=e.audioDisabled;if(i===n)return!1;if("audio"===r){var s=t.lastTimelineChange({type:"main"});return!s||s.to!==n}if("main"===r&&a){var o=t.pendingTimelineChange({type:"audio"});return!o||o.to!==n}return!1}function Gc(e){var t=e.segmentDuration,i=e.maxDuration;return!!t&&Math.round(t)>i+rd}function Xc(e,t){if("hls"!==t)return null;var i=function(e,t){var i=e&&"number"==typeof e.start&&"number"==typeof e.end?e.end-e.start:0,n=t&&"number"==typeof t.start&&"number"==typeof t.end?t.end-t.start:0;return Math.max(i,n)}(e.audioTimingInfo,e.videoTimingInfo);if(!i)return null;var n=e.playlist.targetDuration,r=Gc({segmentDuration:i,maxDuration:2*n}),a=Gc({segmentDuration:i,maxDuration:n}),s="Segment with index "+e.mediaIndex+" from playlist "+e.playlist.id+" has a duration of "+i+" when the reported duration is "+e.duration+" and the target duration is "+n+". For HLS content, a duration in excess of the target duration may result in playback issues. See the HLS specification section on EXT-X-TARGETDURATION for more details: https://tools.ietf.org/html/draft-pantos-http-live-streaming-23#section-4.3.3.1";return r||a?{severity:r?"warn":"info",message:s}:null}var Kc=nl,Qc=rl,Yc=(al=function(e){var t=0===e[0]?12:20;return yl(e[t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])},{mp4:/^(av0?1|avc0?[1234]|vp0?9|flac|opus|mp3|mp4a|mp4v|stpp.ttml.im1t)/,webm:/^(vp0?[89]|av0?1|opus|vorbis)/,ogg:/^(vp0?[89]|theora|flac|opus|vorbis)/,video:/^(av0?1|avc0?[1234]|vp0?[89]|hvc1|hev1|theora|mp4v)/,audio:/^(mp4a|flac|vorbis|opus|ac-[34]|ec-3|alac|mp3|speex|aac)/,text:/^(stpp.ttml.im1t)/,muxerVideo:/^(avc0?1)/,muxerAudio:/^(mp4a)/,muxerText:/a^/}),$c=["video","audio","text"],Jc=["Video","Audio","Text"],Zc="mp4a.40.2",ed=Ta,td=ga.log,id=ga.mergeOptions,nd=function(c){function e(e,t,i){var n;if(void 0===i&&(i={}),n=c.call(this)||this,!e)throw new Error("A non-empty playlist URL or object is required");n.logger_=Il("PlaylistLoader");var r=i,a=r.withCredentials,s=void 0!==a&&a,o=r.handleManifestRedirects,u=void 0!==o&&o;n.src=e,n.vhs_=t,n.withCredentials=s,n.handleManifestRedirects=u;var l=t.options_;return n.customTagParsers=l&&l.customTagParsers||[],n.customTagMappers=l&&l.customTagMappers||[],n.state="HAVE_NOTHING",n.on("mediaupdatetimeout",function(){"HAVE_METADATA"===n.state&&(n.state="HAVE_CURRENT_METADATA",n.request=n.vhs_.xhr({uri:ed(n.master.uri,n.media().uri),withCredentials:n.withCredentials},function(e,t){if(n.request)return e?n.playlistRequestError(n.request,n.media(),"HAVE_METADATA"):void n.haveMetadata({playlistString:n.request.responseText,url:n.media().uri,id:n.media().id})}))}),n}Sa(e,c);var t=e.prototype;return t.playlistRequestError=function(e,t,i){var n=t.uri,r=t.id;this.request=null,i&&(this.state=i),this.error={playlist:this.master.playlists[r],status:e.status,message:"HLS playlist request error at URL: "+n+".",responseText:e.responseText,code:500<=e.status?4:2},this.trigger("error")},t.haveMetadata=function(e){var i=this,t=e.playlistString,n=e.playlistObject,r=e.url,a=e.id;this.request=null,this.state="HAVE_METADATA";var s=n||Al({onwarn:function(e){var t=e.message;return i.logger_("m3u8-parser warn for "+a+": "+t)},oninfo:function(e){var t=e.message;return i.logger_("m3u8-parser info for "+a+": "+t)},manifestString:t,customTagParsers:this.customTagParsers,customTagMappers:this.customTagMappers});s.lastRequest=Date.now(),Ll({playlist:s,uri:r,id:a});var o=Ml(this.master,s);this.targetDuration=s.targetDuration,o?(this.master=o,this.media_=this.master.playlists[a]):this.trigger("playlistunchanged"),this.media().endList||(Ea.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=Ea.setTimeout(function(){i.trigger("mediaupdatetimeout")},Nl(this.media(),!!o))),this.trigger("loadedplaylist")},t.dispose=function(){this.trigger("dispose"),this.stopRequest(),Ea.clearTimeout(this.mediaUpdateTimeout),Ea.clearTimeout(this.finalRenditionTimeout),this.off()},t.stopRequest=function(){if(this.request){var e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}},t.media=function(i,e){var n=this;if(!i)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);if("string"==typeof i){if(!this.master.playlists[i])throw new Error("Unknown playlist URI: "+i);i=this.master.playlists[i]}if(Ea.clearTimeout(this.finalRenditionTimeout),e){var t=i.targetDuration/2*1e3||5e3;this.finalRenditionTimeout=Ea.setTimeout(this.media.bind(this,i,!1),t)}else{var r=this.state,a=!this.media_||i.id!==this.media_.id;if(this.master.playlists[i.id].endList||i.endList&&i.segments.length)return this.request&&(this.request.onreadystatechange=null,this.request.abort(),this.request=null),this.state="HAVE_METADATA",this.media_=i,void(a&&(this.trigger("mediachanging"),"HAVE_MASTER"===r?this.trigger("loadedmetadata"):this.trigger("mediachange")));if(a){if(this.state="SWITCHING_MEDIA",this.request){if(i.resolvedUri===this.request.url)return;this.request.onreadystatechange=null,this.request.abort(),this.request=null}this.media_&&this.trigger("mediachanging"),this.request=this.vhs_.xhr({uri:i.resolvedUri,withCredentials:this.withCredentials},function(e,t){if(n.request){if(i.lastRequest=Date.now(),i.resolvedUri=Cl(n.handleManifestRedirects,i.resolvedUri,t),e)return n.playlistRequestError(n.request,i,r);n.haveMetadata({playlistString:t.responseText,url:i.uri,id:i.id}),"HAVE_MASTER"===r?n.trigger("loadedmetadata"):n.trigger("mediachange")}})}}},t.pause=function(){this.stopRequest(),Ea.clearTimeout(this.mediaUpdateTimeout),"HAVE_NOTHING"===this.state&&(this.started=!1),"SWITCHING_MEDIA"===this.state?this.media_?this.state="HAVE_METADATA":this.state="HAVE_MASTER":"HAVE_CURRENT_METADATA"===this.state&&(this.state="HAVE_METADATA")},t.load=function(e){var t=this;Ea.clearTimeout(this.mediaUpdateTimeout);var i=this.media();if(e){var n=i?i.targetDuration/2*1e3:5e3;this.mediaUpdateTimeout=Ea.setTimeout(function(){return t.load()},n)}else this.started?i&&!i.endList?this.trigger("mediaupdatetimeout"):this.trigger("loadedplaylist"):this.start()},t.start=function(){var n=this;if(this.started=!0,"object"==typeof this.src)return this.src.uri||(this.src.uri=Ea.location.href),this.src.resolvedUri=this.src.uri,void setTimeout(function(){n.setupInitialPlaylist(n.src)},0);this.request=this.vhs_.xhr({uri:this.src,withCredentials:this.withCredentials},function(e,t){if(n.request){if(n.request=null,e)return n.error={status:t.status,message:"HLS playlist request error at URL: "+n.src+".",responseText:t.responseText,code:2},"HAVE_NOTHING"===n.state&&(n.started=!1),n.trigger("error");n.src=Cl(n.handleManifestRedirects,n.src,t);var i=Al({manifestString:t.responseText,customTagParsers:n.customTagParsers,customTagMappers:n.customTagMappers});n.setupInitialPlaylist(i)}})},t.srcUri=function(){return"string"==typeof this.src?this.src:this.src.uri},t.setupInitialPlaylist=function(e){if(this.state="HAVE_MASTER",e.playlists)return this.master=e,Ol(this.master,this.srcUri()),e.playlists.forEach(function(t){t.segments&&t.segments.forEach(function(e){Dl(e,t.resolvedUri)})}),this.trigger("loadedplaylist"),void(this.request||this.media(this.master.playlists[0]));var t=this.srcUri()||Ea.location.href;this.master=function(e,t){var i=xl(0,t),n={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:Ea.location.href,resolvedUri:Ea.location.href,playlists:[{uri:t,id:i,resolvedUri:t,attributes:{}}]};return n.playlists[i]=n.playlists[0],n.playlists[t]=n.playlists[0],n}(0,t),this.haveMetadata({playlistObject:e,url:t,id:this.master.playlists[0].id}),this.trigger("loadedmetadata")},e}(ga.EventTarget),rd=1/30,ad=ga.createTimeRange,sd={duration:Hl,seekable:function(e,t,i){var n=t||0,r=Gl(e,t,!0,i);return null===r?ad():ad(n,r)},safeLiveIndex:zl,getMediaInfoForTime:function(e,t,i,n){var r,a=e.segments.length,s=t-n;if(s<0){if(0<i)for(r=i-1;0<=r;r--)if(0<(s+=e.segments[r].duration+rd))return{mediaIndex:r,startTime:n-Wl(e,i,r)};return{mediaIndex:0,startTime:t}}if(i<0){for(r=i;r<0;r++)if((s-=e.targetDuration)<0)return{mediaIndex:0,startTime:t};i=0}for(r=i;r<a;r++)if((s-=e.segments[r].duration+rd)<0)return{mediaIndex:r,startTime:n+Wl(e,i,r)};return{mediaIndex:a-1,startTime:t}},isEnabled:Ql,isDisabled:function(e){return e.disabled},isBlacklisted:Xl,isIncompatible:Kl,playlistEnd:Gl,isAes:function(e){for(var t=0;t<e.segments.length;t++)if(e.segments[t].key)return!0;return!1},hasAttribute:Yl,estimateSegmentRequestTime:function(e,t,i,n){return void 0===n&&(n=0),Yl("BANDWIDTH",i)?(e*i.attributes.BANDWIDTH-8*n)/t:NaN},isLowestEnabledRendition:$l},od=ga.xhr,ud=ga.mergeOptions,ld=Object.freeze({__proto__:null,createTransferableMessage:nc,initSegmentId:rc,segmentKeyId:ac,hexDump:sc,tagDump:function(e){var t=e.bytes;return sc(t)},textRanges:function(e){var t,i,n,r="";for(t=0;t<e.length;t++)r+=(n=t,(i=e).start(n)+"-"+i.end(n)+" ");return r}}),cd=ga.mergeOptions,dd=function(c){function e(e,t,i,n){var r;void 0===i&&(i={}),(r=c.call(this)||this).masterPlaylistLoader_=n||_a(r),n||(r.isMaster_=!0);var a=i,s=a.withCredentials,o=void 0!==s&&s,u=a.handleManifestRedirects,l=void 0!==u&&u;if(r.vhs_=t,r.withCredentials=o,r.handleManifestRedirects=l,!e)throw new Error("A non-empty playlist URL or object is required");return r.on("minimumUpdatePeriod",function(){r.refreshXml_()}),r.on("mediaupdatetimeout",function(){r.refreshMedia_(r.media().id)}),r.state="HAVE_NOTHING",r.loadedPlaylists_={},r.logger_=Il("DashPlaylistLoader"),r.isMaster_?(r.masterPlaylistLoader_.srcUrl=e,r.masterPlaylistLoader_.sidxMapping_={}):r.childPlaylist_=e,r}Sa(e,c);var t=e.prototype;return t.requestErrored_=function(e,t,i){return!this.request||(this.request=null,e?(this.error="object"!=typeof e||e instanceof Error?{status:t.status,message:"DASH request error at URL: "+t.uri,response:t.response,code:2}:e,i&&(this.state=i),this.trigger("error"),!0):void 0)},t.addSidxSegments_=function(o,n,r){var u=this,a=o.sidx&&hc(o.sidx);if(o.sidx&&a&&!this.masterPlaylistLoader_.sidxMapping_[a]){var l=Cl(this.handleManifestRedirects,o.sidx.resolvedUri),s=this.masterPlaylistLoader_.sidxMapping_;s[a]={sidxInfo:o.sidx};var c=function(e,t){if(!u.requestErrored_(e,t,n)){var i=vu(Ho(t.response).subarray(8));return s[a].sidx=i,mu(o,i,o.sidx.resolvedUri),r(!0)}};this.request=cc(l,this.vhs_.xhr,function(e,t,i,n){if(e)return c(e,t);if(!i||"mp4"!==i)return c({status:t.status,message:"Unsupported "+(i||"unknown")+" container type for sidx segment at URL: "+l,response:"",playlist:o,internal:!0,blacklistDuration:1/0,code:2},t);var r=o.sidx.byterange,a=r.offset,s=r.length;if(n.length>=s+a)return c(e,{response:n.subarray(a,a+s),status:t.status,uri:t.uri});u.request=u.vhs_.xhr({uri:l,responseType:"arraybuffer",headers:ec({byterange:o.sidx.byterange})},c)})}else this.mediaRequest_=Ea.setTimeout(function(){return r(!1)},0)},t.dispose=function(){this.trigger("dispose"),this.stopRequest(),this.loadedPlaylists_={},Ea.clearTimeout(this.minimumUpdatePeriodTimeout_),Ea.clearTimeout(this.mediaRequest_),Ea.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.mediaRequest_=null,this.minimumUpdatePeriodTimeout_=null,this.masterPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.masterPlaylistLoader_.createMupOnMedia_),this.masterPlaylistLoader_.createMupOnMedia_=null),this.off()},t.hasPendingRequest=function(){return this.request||this.mediaRequest_},t.stopRequest=function(){if(this.request){var e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}},t.media=function(t){var i=this;if(!t)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);var n=this.state;if("string"==typeof t){if(!this.masterPlaylistLoader_.master.playlists[t])throw new Error("Unknown playlist URI: "+t);t=this.masterPlaylistLoader_.master.playlists[t]}var e=!this.media_||t.id!==this.media_.id;if(e&&this.loadedPlaylists_[t.id]&&this.loadedPlaylists_[t.id].endList)return this.state="HAVE_METADATA",this.media_=t,void(e&&(this.trigger("mediachanging"),this.trigger("mediachange")));e&&(this.media_&&this.trigger("mediachanging"),this.addSidxSegments_(t,n,function(e){i.haveMetadata({startingState:n,playlist:t})}))},t.haveMetadata=function(e){var t=e.startingState,i=e.playlist;this.state="HAVE_METADATA",this.loadedPlaylists_[i.id]=i,this.mediaRequest_=null,this.refreshMedia_(i.id),"HAVE_MASTER"===t?this.trigger("loadedmetadata"):this.trigger("mediachange")},t.pause=function(){this.masterPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.masterPlaylistLoader_.createMupOnMedia_),this.masterPlaylistLoader_.createMupOnMedia_=null),this.stopRequest(),Ea.clearTimeout(this.mediaUpdateTimeout),Ea.clearTimeout(this.masterPlaylistLoader_.minimumUpdatePeriodTimeout_),this.masterPlaylistLoader_.minimumUpdatePeriodTimeout_=null,this.mediaUpdateTimeout=null,"HAVE_NOTHING"===this.state&&(this.started=!1)},t.load=function(e){var t=this;Ea.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null;var i=this.media();if(e){var n=i?i.targetDuration/2*1e3:5e3;this.mediaUpdateTimeout=Ea.setTimeout(function(){return t.load()},n)}else this.started?i&&!i.endList?this.trigger("mediaupdatetimeout"):this.trigger("loadedplaylist"):this.start()},t.start=function(){var i=this;this.started=!0,this.isMaster_?this.requestMaster_(function(e,t){i.haveMaster_(),i.hasPendingRequest()||i.media_||i.media(i.masterPlaylistLoader_.master.playlists[0])}):this.mediaRequest_=Ea.setTimeout(function(){return i.haveMaster_()},0)},t.requestMaster_=function(n){var r=this;this.request=this.vhs_.xhr({uri:this.masterPlaylistLoader_.srcUrl,withCredentials:this.withCredentials},function(e,t){if(!r.requestErrored_(e,t)){var i=t.responseText!==r.masterPlaylistLoader_.masterXml_;return r.masterPlaylistLoader_.masterXml_=t.responseText,t.responseHeaders&&t.responseHeaders.date?r.masterLoaded_=Date.parse(t.responseHeaders.date):r.masterLoaded_=Date.now(),r.masterPlaylistLoader_.srcUrl=Cl(r.handleManifestRedirects,r.masterPlaylistLoader_.srcUrl,t),i?(r.handleMaster_(),void r.syncClientServerClock_(function(){return n(t,i)})):n(t,i)}"HAVE_NOTHING"===r.state&&(r.started=!1)})},t.syncClientServerClock_=function(n){var r=this,a=qo(this.masterPlaylistLoader_.masterXml_);return null===a?(this.masterPlaylistLoader_.clientOffset_=this.masterLoaded_-Date.now(),n()):"DIRECT"===a.method?(this.masterPlaylistLoader_.clientOffset_=a.value-Date.now(),n()):void(this.request=this.vhs_.xhr({uri:ed(this.masterPlaylistLoader_.srcUrl,a.value),method:a.method,withCredentials:this.withCredentials},function(e,t){if(r.request){if(e)return r.masterPlaylistLoader_.clientOffset_=r.masterLoaded_-Date.now(),n();var i;i="HEAD"===a.method?t.responseHeaders&&t.responseHeaders.date?Date.parse(t.responseHeaders.date):r.masterLoaded_:Date.parse(t.responseText),r.masterPlaylistLoader_.clientOffset_=i-Date.now(),n()}}))},t.haveMaster_=function(){this.state="HAVE_MASTER",this.isMaster_?this.trigger("loadedplaylist"):this.media_||this.media(this.childPlaylist_)},t.handleMaster_=function(){this.mediaRequest_=null;var e=function(e){var t=e.masterXml,i=e.srcUrl,n=e.clientOffset,r=e.sidxMapping,a=Vo(t,{manifestUri:i,clientOffset:n,sidxMapping:r});return Ol(a,i),a}({masterXml:this.masterPlaylistLoader_.masterXml_,srcUrl:this.masterPlaylistLoader_.srcUrl,clientOffset:this.masterPlaylistLoader_.clientOffset_,sidxMapping:this.masterPlaylistLoader_.sidxMapping_}),t=this.masterPlaylistLoader_.master;t&&(e=function(e,t,i){for(var s=!0,o=cd(e,{duration:t.duration,minimumUpdatePeriod:t.minimumUpdatePeriod}),n=0;n<t.playlists.length;n++){var r=t.playlists[n];if(r.sidx){var a=hc(r.sidx);i&&i[a]&&mu(r,i[a].sidx,r.sidx.resolvedUri)}var u=Ml(o,r,dc);u&&(o=u,s=!1)}return Pl(t,function(e,t,i,n){if(e.playlists&&e.playlists.length){var r=e.playlists[0].id,a=Ml(o,e.playlists[0],dc);a&&((o=a).mediaGroups[t][i][n].playlists[0]=o.playlists[r],s=!1)}}),t.minimumUpdatePeriod!==e.minimumUpdatePeriod&&(s=!1),s?null:o}(t,e,this.masterPlaylistLoader_.sidxMapping_)),this.masterPlaylistLoader_.master=e||t;var i=this.masterPlaylistLoader_.master.locations&&this.masterPlaylistLoader_.master.locations[0];return i&&i!==this.masterPlaylistLoader_.srcUrl&&(this.masterPlaylistLoader_.srcUrl=i),(!t||e&&e.minimumUpdatePeriod!==t.minimumUpdatePeriod)&&this.updateMinimumUpdatePeriodTimeout_(),Boolean(e)},t.updateMinimumUpdatePeriodTimeout_=function(){var e=this.masterPlaylistLoader_;e.createMupOnMedia_&&(e.off("loadedmetadata",e.createMupOnMedia_),e.createMupOnMedia_=null),e.minimumUpdatePeriodTimeout_&&(Ea.clearTimeout(e.minimumUpdatePeriodTimeout_),e.minimumUpdatePeriodTimeout_=null);var t=e.master&&e.master.minimumUpdatePeriod;0===t&&(e.media()?t=1e3*e.media().targetDuration:(e.createMupOnMedia_=e.updateMinimumUpdatePeriodTimeout_,e.one("loadedmetadata",e.createMupOnMedia_))),"number"!=typeof t||t<=0?t<0&&this.logger_("found invalid minimumUpdatePeriod of "+t+", not setting a timeout"):this.createMUPTimeout_(t)},t.createMUPTimeout_=function(e){var t=this.masterPlaylistLoader_;t.minimumUpdatePeriodTimeout_=Ea.setTimeout(function(){t.minimumUpdatePeriodTimeout_=null,t.trigger("minimumUpdatePeriod"),t.createMUPTimeout_(e)},e)},t.refreshXml_=function(){var i=this;this.requestMaster_(function(e,t){t&&(i.media_&&(i.media_=i.masterPlaylistLoader_.master.playlists[i.media_.id]),i.masterPlaylistLoader_.sidxMapping_=function(e,a){var s=pc(e.playlists,a);return Pl(e,function(e,t,i,n){if(e.playlists&&e.playlists.length){var r=e.playlists;s=cd(s,pc(r,a))}}),s}(i.masterPlaylistLoader_.master,i.masterPlaylistLoader_.sidxMapping_),i.addSidxSegments_(i.media(),i.state,function(e){i.refreshMedia_(i.media().id)}))})},t.refreshMedia_=function(e){var t=this;if(!e)throw new Error("refreshMedia_ must take a media id");this.media_&&this.isMaster_&&this.handleMaster_();var i=this.masterPlaylistLoader_.master.playlists,n=!this.media_||this.media_!==i[e];if(n?this.media_=i[e]:this.trigger("playlistunchanged"),!this.mediaUpdateTimeout){!function e(){t.media().endList||(t.mediaUpdateTimeout=Ea.setTimeout(function(){t.trigger("mediaupdatetimeout"),e()},Nl(t.media(),Boolean(n))))}()}this.trigger("loadedplaylist")},e}(ga.EventTarget),hd={GOAL_BUFFER_LENGTH:30,MAX_GOAL_BUFFER_LENGTH:60,BACK_BUFFER_LENGTH:30,GOAL_BUFFER_LENGTH_RATE:1,INITIAL_BANDWIDTH:4194304,BANDWIDTH_VARIANCE:1.2,BUFFER_LOW_WATER_LINE:0,MAX_BUFFER_LOW_WATER_LINE:30,EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:16,BUFFER_LOW_WATER_LINE_RATE:1,BUFFER_HIGH_WATER_LINE:30},pd=gc(vc(yc(function(){function e(){this.init=function(){var a={};this.on=function(e,t){a[e]||(a[e]=[]),a[e]=a[e].concat(t)},this.off=function(e,t){var i;return!!a[e]&&(i=a[e].indexOf(t),a[e]=a[e].slice(),a[e].splice(i,1),-1<i)},this.trigger=function(e){var t,i,n,r;if(t=a[e])if(2===arguments.length)for(n=t.length,i=0;i<n;++i)t[i].call(this,arguments[1]);else{for(r=[],i=arguments.length,i=1;i<arguments.length;++i)r.push(arguments[i]);for(n=t.length,i=0;i<n;++i)t[i].apply(this,r)}},this.dispose=function(){a={}}}}e.prototype.pipe=function(t){return this.on("data",function(e){t.push(e)}),this.on("done",function(e){t.flush(e)}),this.on("partialdone",function(e){t.partialFlush(e)}),this.on("endedtimeline",function(e){t.endTimeline(e)}),this.on("reset",function(e){t.reset(e)}),t},e.prototype.push=function(e){this.trigger("data",e)},e.prototype.flush=function(e){this.trigger("done",e)},e.prototype.partialFlush=function(e){this.trigger("partialdone",e)},e.prototype.endTimeline=function(e){this.trigger("endedtimeline",e)},e.prototype.reset=function(e){this.trigger("reset",e)};var l,t,i,r,a,n,s,o,u,c,d,h,p,f,m,g,v,y,_,b,T,S,k,w,E,C,I,x,A,P,L,O,D,R,M,N,U,B,F,j,V=e,q=Math.pow(2,32)-1;!function(){var e;if(S={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],pasp:[],sdtp:[],smhd:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],styp:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[]},"undefined"!=typeof Uint8Array){for(e in S)S.hasOwnProperty(e)&&(S[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);k=new Uint8Array(["i".charCodeAt(0),"s".charCodeAt(0),"o".charCodeAt(0),"m".charCodeAt(0)]),E=new Uint8Array(["a".charCodeAt(0),"v".charCodeAt(0),"c".charCodeAt(0),"1".charCodeAt(0)]),w=new Uint8Array([0,0,0,1]),C=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),I=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),x={video:C,audio:I},L=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),P=new Uint8Array([0,0,0,0,0,0,0,0]),O=new Uint8Array([0,0,0,0,0,0,0,0]),D=O,R=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),M=O,A=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}}(),l=function(e){var t,i,n=[],r=0;for(t=1;t<arguments.length;t++)n.push(arguments[t]);for(t=n.length;t--;)r+=n[t].byteLength;for(i=new Uint8Array(r+8),new DataView(i.buffer,i.byteOffset,i.byteLength).setUint32(0,i.byteLength),i.set(e,4),t=0,r=8;t<n.length;t++)i.set(n[t],r),r+=n[t].byteLength;return i},t=function(){return l(S.dinf,l(S.dref,L))},i=function(e){return l(S.esds,new Uint8Array([0,0,0,0,3,25,0,0,0,4,17,64,21,0,6,0,0,0,218,192,0,0,218,192,5,2,e.audioobjecttype<<3|e.samplingfrequencyindex>>>1,e.samplingfrequencyindex<<7|e.channelcount<<3,6,1,2]))},m=function(e){return l(S.hdlr,x[e])},f=function(e){var t=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,e.duration>>>24&255,e.duration>>>16&255,e.duration>>>8&255,255&e.duration,85,196,0,0]);return e.samplerate&&(t[12]=e.samplerate>>>24&255,t[13]=e.samplerate>>>16&255,t[14]=e.samplerate>>>8&255,t[15]=255&e.samplerate),l(S.mdhd,t)},p=function(e){return l(S.mdia,f(e),m(e.type),n(e))},a=function(e){return l(S.mfhd,new Uint8Array([0,0,0,0,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e]))},n=function(e){return l(S.minf,"video"===e.type?l(S.vmhd,A):l(S.smhd,P),t(),v(e))},s=function(e,t){for(var i=[],n=t.length;n--;)i[n]=_(t[n]);return l.apply(null,[S.moof,a(e)].concat(i))},o=function(e){for(var t=e.length,i=[];t--;)i[t]=d(e[t]);return l.apply(null,[S.moov,c(4294967295)].concat(i).concat(u(e)))},u=function(e){for(var t=e.length,i=[];t--;)i[t]=b(e[t]);return l.apply(null,[S.mvex].concat(i))},c=function(e){var t=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return l(S.mvhd,t)},g=function(e){var t,i,n=e.samples||[],r=new Uint8Array(4+n.length);for(i=0;i<n.length;i++)t=n[i].flags,r[i+4]=t.dependsOn<<4|t.isDependedOn<<2|t.hasRedundancy;return l(S.sdtp,r)},v=function(e){return l(S.stbl,y(e),l(S.stts,M),l(S.stsc,D),l(S.stsz,R),l(S.stco,O))},y=function(e){return l(S.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),"video"===e.type?N(e):U(e))},N=function(e){var t,i,n=e.sps||[],r=e.pps||[],a=[],s=[];for(t=0;t<n.length;t++)a.push((65280&n[t].byteLength)>>>8),a.push(255&n[t].byteLength),a=a.concat(Array.prototype.slice.call(n[t]));for(t=0;t<r.length;t++)s.push((65280&r[t].byteLength)>>>8),s.push(255&r[t].byteLength),s=s.concat(Array.prototype.slice.call(r[t]));if(i=[S.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(65280&e.width)>>8,255&e.width,(65280&e.height)>>8,255&e.height,0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),l(S.avcC,new Uint8Array([1,e.profileIdc,e.profileCompatibility,e.levelIdc,255].concat([n.length],a,[r.length],s))),l(S.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192]))],e.sarRatio){var o=e.sarRatio[0],u=e.sarRatio[1];i.push(l(S.pasp,new Uint8Array([(4278190080&o)>>24,(16711680&o)>>16,(65280&o)>>8,255&o,(4278190080&u)>>24,(16711680&u)>>16,(65280&u)>>8,255&u])))}return l.apply(null,i)},U=function(e){return l(S.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(65280&e.channelcount)>>8,255&e.channelcount,(65280&e.samplesize)>>8,255&e.samplesize,0,0,0,0,(65280&e.samplerate)>>8,255&e.samplerate,0,0]),i(e))},h=function(e){var t=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,0,(4278190080&e.duration)>>24,(16711680&e.duration)>>16,(65280&e.duration)>>8,255&e.duration,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,(65280&e.width)>>8,255&e.width,0,0,(65280&e.height)>>8,255&e.height,0,0]);return l(S.tkhd,t)},_=function(e){var t,i,n,r,a,s;return t=l(S.tfhd,new Uint8Array([0,0,0,58,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),a=Math.floor(e.baseMediaDecodeTime/(1+q)),s=Math.floor(e.baseMediaDecodeTime%(1+q)),i=l(S.tfdt,new Uint8Array([1,0,0,0,a>>>24&255,a>>>16&255,a>>>8&255,255&a,s>>>24&255,s>>>16&255,s>>>8&255,255&s])),92,"audio"===e.type?(n=T(e,92),l(S.traf,t,i,n)):(r=g(e),n=T(e,r.length+92),l(S.traf,t,i,n,r))},d=function(e){return e.duration=e.duration||4294967295,l(S.trak,h(e),p(e))},b=function(e){var t=new Uint8Array([0,0,0,0,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return"video"!==e.type&&(t[t.length-1]=0),l(S.trex,t)},j=function(e,t){var i=0,n=0,r=0,a=0;return e.length&&(void 0!==e[0].duration&&(i=1),void 0!==e[0].size&&(n=2),void 0!==e[0].flags&&(r=4),void 0!==e[0].compositionTimeOffset&&(a=8)),[0,0,i|n|r|a,1,(4278190080&e.length)>>>24,(16711680&e.length)>>>16,(65280&e.length)>>>8,255&e.length,(4278190080&t)>>>24,(16711680&t)>>>16,(65280&t)>>>8,255&t]},F=function(e,t){var i,n,r,a,s,o;for(t+=20+16*(a=e.samples||[]).length,r=j(a,t),(n=new Uint8Array(r.length+16*a.length)).set(r),i=r.length,o=0;o<a.length;o++)s=a[o],n[i++]=(4278190080&s.duration)>>>24,n[i++]=(16711680&s.duration)>>>16,n[i++]=(65280&s.duration)>>>8,n[i++]=255&s.duration,n[i++]=(4278190080&s.size)>>>24,n[i++]=(16711680&s.size)>>>16,n[i++]=(65280&s.size)>>>8,n[i++]=255&s.size,n[i++]=s.flags.isLeading<<2|s.flags.dependsOn,n[i++]=s.flags.isDependedOn<<6|s.flags.hasRedundancy<<4|s.flags.paddingValue<<1|s.flags.isNonSyncSample,n[i++]=61440&s.flags.degradationPriority,n[i++]=15&s.flags.degradationPriority,n[i++]=(4278190080&s.compositionTimeOffset)>>>24,n[i++]=(16711680&s.compositionTimeOffset)>>>16,n[i++]=(65280&s.compositionTimeOffset)>>>8,n[i++]=255&s.compositionTimeOffset;return l(S.trun,n)},B=function(e,t){var i,n,r,a,s,o;for(t+=20+8*(a=e.samples||[]).length,r=j(a,t),(i=new Uint8Array(r.length+8*a.length)).set(r),n=r.length,o=0;o<a.length;o++)s=a[o],i[n++]=(4278190080&s.duration)>>>24,i[n++]=(16711680&s.duration)>>>16,i[n++]=(65280&s.duration)>>>8,i[n++]=255&s.duration,i[n++]=(4278190080&s.size)>>>24,i[n++]=(16711680&s.size)>>>16,i[n++]=(65280&s.size)>>>8,i[n++]=255&s.size;return l(S.trun,i)},T=function(e,t){return"audio"===e.type?B(e,t):F(e,t)};r=function(){return l(S.ftyp,k,w,k,E)};function H(e,t){var i={size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}};return i.dataOffset=t,i.compositionTimeOffset=e.pts-e.dts,i.duration=e.duration,i.size=4*e.length,i.size+=e.byteLength,e.keyFrame&&(i.flags.dependsOn=2,i.flags.isNonSyncSample=0),i}function W(e){for(var t=[];e--;)t.push(0);return t}function z(){if(!X){var e={96e3:[ue,[227,64],W(154),[56]],88200:[ue,[231],W(170),[56]],64e3:[ue,[248,192],W(240),[56]],48e3:[ue,[255,192],W(268),[55,148,128],W(54),[112]],44100:[ue,[255,192],W(268),[55,163,128],W(84),[112]],32e3:[ue,[255,192],W(268),[55,234],W(226),[112]],24e3:[ue,[255,192],W(268),[55,255,128],W(268),[111,112],W(126),[224]],16e3:[ue,[255,192],W(268),[55,255,128],W(268),[111,255],W(269),[223,108],W(195),[1,192]],12e3:[le,W(268),[3,127,248],W(268),[6,255,240],W(268),[13,255,224],W(268),[27,253,128],W(259),[56]],11025:[le,W(268),[3,127,248],W(268),[6,255,240],W(268),[13,255,224],W(268),[27,255,192],W(268),[55,175,128],W(108),[112]],8e3:[le,W(268),[3,121,16],W(47),[7]]};X=function(i){return Object.keys(i).reduce(function(e,t){return e[t]=new Uint8Array(i[t].reduce(function(e,t){return e.concat(t)},[])),e},{})}(e)}return X}function G(e){e=e||{},G.prototype.init.call(this),this.parse708captions_="boolean"!=typeof e.parse708captions||e.parse708captions,this.captionPackets_=[],this.ccStreams_=[new Be(0,0),new Be(0,1),new Be(1,0),new Be(1,1)],this.parse708captions_&&(this.cc708Stream_=new De),this.reset(),this.ccStreams_.forEach(function(e){e.on("data",this.trigger.bind(this,"data")),e.on("partialdone",this.trigger.bind(this,"partialdone")),e.on("done",this.trigger.bind(this,"done"))},this),this.parse708captions_&&(this.cc708Stream_.on("data",this.trigger.bind(this,"data")),this.cc708Stream_.on("partialdone",this.trigger.bind(this,"partialdone")),this.cc708Stream_.on("done",this.trigger.bind(this,"done")))}var X,K,Q,Y,$,J=function(e){return l(S.mdat,e)},Z=s,ee=function(e){var t,i=r(),n=o(e);return(t=new Uint8Array(i.byteLength+n.byteLength)).set(i),t.set(n,i.byteLength),t},te=function(e){var t,i,n=[],r=[];for(r.byteLength=0,r.nalCount=0,r.duration=0,t=n.byteLength=0;t<e.length;t++)"access_unit_delimiter_rbsp"===(i=e[t]).nalUnitType?(n.length&&(n.duration=i.dts-n.dts,r.byteLength+=n.byteLength,r.nalCount+=n.length,r.duration+=n.duration,r.push(n)),(n=[i]).byteLength=i.data.byteLength,n.pts=i.pts,n.dts=i.dts):("slice_layer_without_partitioning_rbsp_idr"===i.nalUnitType&&(n.keyFrame=!0),n.duration=i.dts-n.dts,n.byteLength+=i.data.byteLength,n.push(i));return r.length&&(!n.duration||n.duration<=0)&&(n.duration=r[r.length-1].duration),r.byteLength+=n.byteLength,r.nalCount+=n.length,r.duration+=n.duration,r.push(n),r},ie=function(e){var t,i,n=[],r=[];for(n.byteLength=0,n.nalCount=0,n.duration=0,n.pts=e[0].pts,n.dts=e[0].dts,r.byteLength=0,r.nalCount=0,r.duration=0,r.pts=e[0].pts,r.dts=e[0].dts,t=0;t<e.length;t++)(i=e[t]).keyFrame?(n.length&&(r.push(n),r.byteLength+=n.byteLength,r.nalCount+=n.nalCount,r.duration+=n.duration),(n=[i]).nalCount=i.length,n.byteLength=i.byteLength,n.pts=i.pts,n.dts=i.dts,n.duration=i.duration):(n.duration+=i.duration,n.nalCount+=i.length,n.byteLength+=i.byteLength,n.push(i));return r.length&&n.duration<=0&&(n.duration=r[r.length-1].duration),r.byteLength+=n.byteLength,r.nalCount+=n.nalCount,r.duration+=n.duration,r.push(n),r},ne=function(e){var t;return!e[0][0].keyFrame&&1<e.length&&(t=e.shift(),e.byteLength-=t.byteLength,e.nalCount-=t.nalCount,e[0][0].dts=t.dts,e[0][0].pts=t.pts,e[0][0].duration+=t.duration),e},re=function(e,t){var i,n,r,a,s,o=t||0,u=[];for(i=0;i<e.length;i++)for(a=e[i],n=0;n<a.length;n++)s=a[n],o+=(r=H(s,o)).size,u.push(r);return u},ae=function(e){var t,i,n,r,a,s,o=0,u=e.byteLength,l=e.nalCount,c=new Uint8Array(u+4*l),d=new DataView(c.buffer);for(t=0;t<e.length;t++)for(r=e[t],i=0;i<r.length;i++)for(a=r[i],n=0;n<a.length;n++)s=a[n],d.setUint32(o,s.data.byteLength),o+=4,c.set(s.data,o),o+=s.data.byteLength;return c},se=function(e,t){var i,n=[];return i=H(e,t||0),n.push(i),n},oe=function(e){var t,i,n=0,r=e.byteLength,a=e.length,s=new Uint8Array(r+4*a),o=new DataView(s.buffer);for(t=0;t<e.length;t++)i=e[t],o.setUint32(n,i.data.byteLength),n+=4,s.set(i.data,n),n+=i.data.byteLength;return s},ue=[33,16,5,32,164,27],le=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],ce=9e4,de=K=function(e){return 9e4*e},he=(Q=function(e,t){return e*t},Y=function(e){return e/9e4}),pe=($=function(e,t){return e/t},function(e,t){return K($(e,t))}),fe=function(e,t){return Q(Y(e),t)},me=function(e,t,i){return Y(i?e:e-t)},ge=function(e,t,i,n){var r,a,s,o,u,l=0,c=0,d=0;if(t.length&&(r=pe(e.baseMediaDecodeTime,e.samplerate),a=Math.ceil(ce/(e.samplerate/1024)),i&&n&&(l=r-Math.max(i,n),d=(c=Math.floor(l/a))*a),!(c<1||ce/2<d))){for(s=(s=z()[e.samplerate])||t[0].data,o=0;o<c;o++)u=t[0],t.splice(0,0,{data:s,dts:u.dts-a,pts:u.pts-a});return e.baseMediaDecodeTime-=Math.floor(fe(d,e.samplerate)),d}},ve=function(e,t,i){return t.minSegmentDts>=i?e:(t.minSegmentDts=1/0,e.filter(function(e){return e.dts>=i&&(t.minSegmentDts=Math.min(t.minSegmentDts,e.dts),t.minSegmentPts=t.minSegmentDts,!0)}))},ye=function(e){var t,i,n=[];for(t=0;t<e.length;t++)i=e[t],n.push({size:i.data.byteLength,duration:1024});return n},_e=function(e){var t,i,n=0,r=new Uint8Array(function(e){var t,i=0;for(t=0;t<e.length;t++)i+=e[t].data.byteLength;return i}(e));for(t=0;t<e.length;t++)i=e[t],r.set(i.data,n),n+=i.data.byteLength;return r},be=ce,Te=function(e){delete e.minSegmentDts,delete e.maxSegmentDts,delete e.minSegmentPts,delete e.maxSegmentPts},Se=function(e,t){var i,n=e.minSegmentDts;return t||(n-=e.timelineStartInfo.dts),i=e.timelineStartInfo.baseMediaDecodeTime,i+=n,i=Math.max(0,i),"audio"===e.type&&(i*=e.samplerate/be,i=Math.floor(i)),i},ke=function(e,t){"number"==typeof t.pts&&(void 0===e.timelineStartInfo.pts&&(e.timelineStartInfo.pts=t.pts),void 0===e.minSegmentPts?e.minSegmentPts=t.pts:e.minSegmentPts=Math.min(e.minSegmentPts,t.pts),void 0===e.maxSegmentPts?e.maxSegmentPts=t.pts:e.maxSegmentPts=Math.max(e.maxSegmentPts,t.pts)),"number"==typeof t.dts&&(void 0===e.timelineStartInfo.dts&&(e.timelineStartInfo.dts=t.dts),void 0===e.minSegmentDts?e.minSegmentDts=t.dts:e.minSegmentDts=Math.min(e.minSegmentDts,t.dts),void 0===e.maxSegmentDts?e.maxSegmentDts=t.dts:e.maxSegmentDts=Math.max(e.maxSegmentDts,t.dts))},we=function(e){for(var t=0,i={payloadType:-1,payloadSize:0},n=0,r=0;t<e.byteLength&&128!==e[t];){for(;255===e[t];)n+=255,t++;for(n+=e[t++];255===e[t];)r+=255,t++;if(r+=e[t++],!i.payload&&4===n){if("GA94"===String.fromCharCode(e[t+3],e[t+4],e[t+5],e[t+6])){i.payloadType=n,i.payloadSize=r,i.payload=e.subarray(t,t+r);break}i.payload=void 0}t+=r,r=n=0}return i},Ee=function(e){return 181!==e.payload[0]?null:49!=(e.payload[1]<<8|e.payload[2])?null:"GA94"!==String.fromCharCode(e.payload[3],e.payload[4],e.payload[5],e.payload[6])?null:3!==e.payload[7]?null:e.payload.subarray(8,e.payload.length-1)},Ce=function(e,t){var i,n,r,a,s=[];if(!(64&t[0]))return s;for(n=31&t[0],i=0;i<n;i++)a={type:3&t[2+(r=3*i)],pts:e},4&t[2+r]&&(a.ccData=t[3+r]<<8|t[4+r],s.push(a));return s},Ie=function(e){for(var t,i,n=e.byteLength,r=[],a=1;a<n-2;)0===e[a]&&0===e[a+1]&&3===e[a+2]?(r.push(a+2),a+=2):a++;if(0===r.length)return e;t=n-r.length,i=new Uint8Array(t);var s=0;for(a=0;a<t;s++,a++)s===r[0]&&(s++,r.shift()),i[a]=e[s];return i},xe=4;(G.prototype=new V).push=function(e){var t,i,n;if("sei_rbsp"===e.nalUnitType&&(t=we(e.escapedRBSP)).payload&&t.payloadType===xe&&(i=Ee(t)))if(e.dts<this.latestDts_)this.ignoreNextEqualDts_=!0;else{if(e.dts===this.latestDts_&&this.ignoreNextEqualDts_)return this.numSameDts_--,void(this.numSameDts_||(this.ignoreNextEqualDts_=!1));n=Ce(e.pts,i),this.captionPackets_=this.captionPackets_.concat(n),this.latestDts_!==e.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=e.dts}},G.prototype.flushCCStreams=function(t){this.ccStreams_.forEach(function(e){return"flush"===t?e.flush():e.partialFlush()},this)},G.prototype.flushStream=function(e){this.captionPackets_.length&&(this.captionPackets_.forEach(function(e,t){e.presortIndex=t}),this.captionPackets_.sort(function(e,t){return e.pts===t.pts?e.presortIndex-t.presortIndex:e.pts-t.pts}),this.captionPackets_.forEach(function(e){e.type<2?this.dispatchCea608Packet(e):this.dispatchCea708Packet(e)},this),this.captionPackets_.length=0),this.flushCCStreams(e)},G.prototype.flush=function(){return this.flushStream("flush")},G.prototype.partialFlush=function(){return this.flushStream("partialFlush")},G.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach(function(e){e.reset()})},G.prototype.dispatchCea608Packet=function(e){this.setsTextOrXDSActive(e)?this.activeCea608Channel_[e.type]=null:this.setsChannel1Active(e)?this.activeCea608Channel_[e.type]=0:this.setsChannel2Active(e)&&(this.activeCea608Channel_[e.type]=1),null!==this.activeCea608Channel_[e.type]&&this.ccStreams_[(e.type<<1)+this.activeCea608Channel_[e.type]].push(e)},G.prototype.setsChannel1Active=function(e){return 4096==(30720&e.ccData)},G.prototype.setsChannel2Active=function(e){return 6144==(30720&e.ccData)},G.prototype.setsTextOrXDSActive=function(e){return 256==(28928&e.ccData)||4138==(30974&e.ccData)||6186==(30974&e.ccData)},G.prototype.dispatchCea708Packet=function(e){this.parse708captions_&&this.cc708Stream_.push(e)};function Ae(e){return 32<=e&&e<=127||160<=e&&e<=255}function Pe(e){this.windowNum=e,this.reset()}var Le={127:9834,4128:32,4129:160,4133:8230,4138:352,4140:338,4144:9608,4145:8216,4146:8217,4147:8220,4148:8221,4149:8226,4153:8482,4154:353,4156:339,4157:8480,4159:376,4214:8539,4215:8540,4216:8541,4217:8542,4218:9168,4219:9124,4220:9123,4221:9135,4222:9126,4223:9121,4256:12600};Pe.prototype.reset=function(){this.clearText(),this.pendingNewLine=!1,this.winAttr={},this.penAttr={},this.penLoc={},this.penColor={},this.visible=0,this.rowLock=0,this.columnLock=0,this.priority=0,this.relativePositioning=0,this.anchorVertical=0,this.anchorHorizontal=0,this.anchorPoint=0,this.rowCount=1,this.virtualRowCount=this.rowCount+1,this.columnCount=41,this.windowStyle=0,this.penStyle=0},Pe.prototype.getText=function(){return this.rows.join("\n")},Pe.prototype.clearText=function(){this.rows=[""],this.rowIdx=0},Pe.prototype.newLine=function(e){for(this.rows.length>=this.virtualRowCount&&"function"==typeof this.beforeRowOverflow&&this.beforeRowOverflow(e),0<this.rows.length&&(this.rows.push(""),this.rowIdx++);this.rows.length>this.virtualRowCount;)this.rows.shift(),this.rowIdx--},Pe.prototype.isEmpty=function(){return 0===this.rows.length||1===this.rows.length&&""===this.rows[0]},Pe.prototype.addText=function(e){this.rows[this.rowIdx]+=e},Pe.prototype.backspace=function(){if(!this.isEmpty()){var e=this.rows[this.rowIdx];this.rows[this.rowIdx]=e.substr(0,e.length-1)}};function Oe(e){this.serviceNum=e,this.text="",this.currentWindow=new Pe(-1),this.windows=[]}Oe.prototype.init=function(e,t){this.startPts=e;for(var i=0;i<8;i++)this.windows[i]=new Pe(i),"function"==typeof t&&(this.windows[i].beforeRowOverflow=t)},Oe.prototype.setCurrentWindow=function(e){this.currentWindow=this.windows[e]};var De=function e(){e.prototype.init.call(this);var t=this;this.current708Packet=null,this.services={},this.push=function(e){3===e.type?t.new708Packet():null===t.current708Packet&&t.new708Packet(),t.add708Bytes(e)}};De.prototype=new V,De.prototype.new708Packet=function(){null!==this.current708Packet&&this.push708Packet(),this.current708Packet={data:[],ptsVals:[]}},De.prototype.add708Bytes=function(e){var t=e.ccData,i=t>>>8,n=255&t;this.current708Packet.ptsVals.push(e.pts),this.current708Packet.data.push(i),this.current708Packet.data.push(n)},De.prototype.push708Packet=function(){var e=this.current708Packet,t=e.data,i=null,n=null,r=0,a=t[r++];for(e.seq=a>>6,e.sizeCode=63&a;r<t.length;r++)n=31&(a=t[r++]),7===(i=a>>5)&&0<n&&(i=a=t[r++]),this.pushServiceBlock(i,r,n),0<n&&(r+=n-1)},De.prototype.pushServiceBlock=function(e,t,i){var n,r=t,a=this.current708Packet.data,s=this.services[e];for(s=s||this.initService(e,r);r<t+i&&r<a.length;r++)n=a[r],Ae(n)?r=this.handleText(r,s):16===n?r=this.extendedCommands(r,s):128<=n&&n<=135?r=this.setCurrentWindow(r,s):152<=n&&n<=159?r=this.defineWindow(r,s):136===n?r=this.clearWindows(r,s):140===n?r=this.deleteWindows(r,s):137===n?r=this.displayWindows(r,s):138===n?r=this.hideWindows(r,s):139===n?r=this.toggleWindows(r,s):151===n?r=this.setWindowAttributes(r,s):144===n?r=this.setPenAttributes(r,s):145===n?r=this.setPenColor(r,s):146===n?r=this.setPenLocation(r,s):143===n?s=this.reset(r,s):8===n?s.currentWindow.backspace():12===n?s.currentWindow.clearText():13===n?s.currentWindow.pendingNewLine=!0:14===n?s.currentWindow.clearText():141===n&&r++},De.prototype.extendedCommands=function(e,t){var i=this.current708Packet.data[++e];return Ae(i)&&(e=this.handleText(e,t,!0)),e},De.prototype.getPts=function(e){return this.current708Packet.ptsVals[Math.floor(e/2)]},De.prototype.initService=function(t,e){var i=this;return this.services[t]=new Oe(t),this.services[t].init(this.getPts(e),function(e){i.flushDisplayed(e,i.services[t])}),this.services[t]},De.prototype.handleText=function(e,t,i){var n=function(e){var t=Le[e]||e;return 4096&e&&e===t?"":String.fromCharCode(t)}((i?4096:0)|this.current708Packet.data[e]),r=t.currentWindow;return r.pendingNewLine&&!r.isEmpty()&&r.newLine(this.getPts(e)),r.pendingNewLine=!1,r.addText(n),e},De.prototype.setCurrentWindow=function(e,t){var i=7&this.current708Packet.data[e];return t.setCurrentWindow(i),e},De.prototype.defineWindow=function(e,t){var i=this.current708Packet.data,n=i[e],r=7&n;t.setCurrentWindow(r);var a=t.currentWindow;return n=i[++e],a.visible=(32&n)>>5,a.rowLock=(16&n)>>4,a.columnLock=(8&n)>>3,a.priority=7&n,n=i[++e],a.relativePositioning=(128&n)>>7,a.anchorVertical=127&n,n=i[++e],a.anchorHorizontal=n,n=i[++e],a.anchorPoint=(240&n)>>4,a.rowCount=15&n,n=i[++e],a.columnCount=63&n,n=i[++e],a.windowStyle=(56&n)>>3,a.penStyle=7&n,a.virtualRowCount=a.rowCount+1,e},De.prototype.setWindowAttributes=function(e,t){var i=this.current708Packet.data,n=i[e],r=t.currentWindow.winAttr;return n=i[++e],r.fillOpacity=(192&n)>>6,r.fillRed=(48&n)>>4,r.fillGreen=(12&n)>>2,r.fillBlue=3&n,n=i[++e],r.borderType=(192&n)>>6,r.borderRed=(48&n)>>4,r.borderGreen=(12&n)>>2,r.borderBlue=3&n,n=i[++e],r.borderType+=(128&n)>>5,r.wordWrap=(64&n)>>6,r.printDirection=(48&n)>>4,r.scrollDirection=(12&n)>>2,r.justify=3&n,n=i[++e],r.effectSpeed=(240&n)>>4,r.effectDirection=(12&n)>>2,r.displayEffect=3&n,e},De.prototype.flushDisplayed=function(e,t){for(var i=[],n=0;n<8;n++)t.windows[n].visible&&!t.windows[n].isEmpty()&&i.push(t.windows[n].getText());t.endPts=e,t.text=i.join("\n\n"),this.pushCaption(t),t.startPts=e},De.prototype.pushCaption=function(e){""!==e.text&&(this.trigger("data",{startPts:e.startPts,endPts:e.endPts,text:e.text,stream:"cc708_"+e.serviceNum}),e.text="",e.startPts=e.endPts)},De.prototype.displayWindows=function(e,t){var i=this.current708Packet.data[++e],n=this.getPts(e);this.flushDisplayed(n,t);for(var r=0;r<8;r++)i&1<<r&&(t.windows[r].visible=1);return e},De.prototype.hideWindows=function(e,t){var i=this.current708Packet.data[++e],n=this.getPts(e);this.flushDisplayed(n,t);for(var r=0;r<8;r++)i&1<<r&&(t.windows[r].visible=0);return e},De.prototype.toggleWindows=function(e,t){var i=this.current708Packet.data[++e],n=this.getPts(e);this.flushDisplayed(n,t);for(var r=0;r<8;r++)i&1<<r&&(t.windows[r].visible^=1);return e},De.prototype.clearWindows=function(e,t){var i=this.current708Packet.data[++e],n=this.getPts(e);this.flushDisplayed(n,t);for(var r=0;r<8;r++)i&1<<r&&t.windows[r].clearText();return e},De.prototype.deleteWindows=function(e,t){var i=this.current708Packet.data[++e],n=this.getPts(e);this.flushDisplayed(n,t);for(var r=0;r<8;r++)i&1<<r&&t.windows[r].reset();return e},De.prototype.setPenAttributes=function(e,t){var i=this.current708Packet.data,n=i[e],r=t.currentWindow.penAttr;return n=i[++e],r.textTag=(240&n)>>4,r.offset=(12&n)>>2,r.penSize=3&n,n=i[++e],r.italics=(128&n)>>7,r.underline=(64&n)>>6,r.edgeType=(56&n)>>3,r.fontStyle=7&n,e},De.prototype.setPenColor=function(e,t){var i=this.current708Packet.data,n=i[e],r=t.currentWindow.penColor;return n=i[++e],r.fgOpacity=(192&n)>>6,r.fgRed=(48&n)>>4,r.fgGreen=(12&n)>>2,r.fgBlue=3&n,n=i[++e],r.bgOpacity=(192&n)>>6,r.bgRed=(48&n)>>4,r.bgGreen=(12&n)>>2,r.bgBlue=3&n,n=i[++e],r.edgeRed=(48&n)>>4,r.edgeGreen=(12&n)>>2,r.edgeBlue=3&n,e},De.prototype.setPenLocation=function(e,t){var i=this.current708Packet.data,n=i[e],r=t.currentWindow.penLoc;return t.currentWindow.pendingNewLine=!0,n=i[++e],r.row=15&n,n=i[++e],r.column=63&n,e},De.prototype.reset=function(e,t){var i=this.getPts(e);return this.flushDisplayed(i,t),this.initService(t.serviceNum,e)};function Re(e){return null===e?"":(e=Ne[e]||e,String.fromCharCode(e))}function Me(){for(var e=[],t=15;t--;)e.push("");return e}var Ne={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496},Ue=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],Be=function e(t,i){e.prototype.init.call(this),this.field_=t||0,this.dataChannel_=i||0,this.name_="CC"+(1+(this.field_<<1|this.dataChannel_)),this.setConstants(),this.reset(),this.push=function(e){var t,i,n,r,a;if((t=32639&e.ccData)!==this.lastControlCode_){if(4096==(61440&t)?this.lastControlCode_=t:t!==this.PADDING_&&(this.lastControlCode_=null),n=t>>>8,r=255&t,t!==this.PADDING_)if(t===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(t===this.END_OF_CAPTION_)this.mode_="popOn",this.clearFormatting(e.pts),this.flushDisplayed(e.pts),i=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=i,this.startPts_=e.pts;else if(t===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(e.pts);else if(t===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(e.pts);else if(t===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(e.pts);else if(t===this.CARRIAGE_RETURN_)this.clearFormatting(e.pts),this.flushDisplayed(e.pts),this.shiftRowsUp_(),this.startPts_=e.pts;else if(t===this.BACKSPACE_)"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1);else if(t===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(e.pts),this.displayed_=Me();else if(t===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=Me();else if(t===this.RESUME_DIRECT_CAPTIONING_)"paintOn"!==this.mode_&&(this.flushDisplayed(e.pts),this.displayed_=Me()),this.mode_="paintOn",this.startPts_=e.pts;else if(this.isSpecialCharacter(n,r))a=Re((n=(3&n)<<8)|r),this[this.mode_](e.pts,a),this.column_++;else if(this.isExtCharacter(n,r))"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1),a=Re((n=(3&n)<<8)|r),this[this.mode_](e.pts,a),this.column_++;else if(this.isMidRowCode(n,r))this.clearFormatting(e.pts),this[this.mode_](e.pts," "),this.column_++,14==(14&r)&&this.addFormatting(e.pts,["i"]),1==(1&r)&&this.addFormatting(e.pts,["u"]);else if(this.isOffsetControlCode(n,r))this.column_+=3&r;else if(this.isPAC(n,r)){var s=Ue.indexOf(7968&t);"rollUp"===this.mode_&&(s-this.rollUpRows_+1<0&&(s=this.rollUpRows_-1),this.setRollUp(e.pts,s)),s!==this.row_&&(this.clearFormatting(e.pts),this.row_=s),1&r&&-1===this.formatting_.indexOf("u")&&this.addFormatting(e.pts,["u"]),16==(16&t)&&(this.column_=4*((14&t)>>1)),this.isColorPAC(r)&&14==(14&r)&&this.addFormatting(e.pts,["i"])}else this.isNormalChar(n)&&(0===r&&(r=null),a=Re(n),a+=Re(r),this[this.mode_](e.pts,a),this.column_+=a.length)}else this.lastControlCode_=null}};Be.prototype=new V,Be.prototype.flushDisplayed=function(e){var t=this.displayed_.map(function(e){try{return e.trim()}catch(e){return""}}).join("\n").replace(/^\n+|\n+$/g,"");t.length&&this.trigger("data",{startPts:this.startPts_,endPts:e,text:t,stream:this.name_})},Be.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=Me(),this.nonDisplayed_=Me(),this.lastControlCode_=null,this.column_=0,this.row_=14,this.rollUpRows_=2,this.formatting_=[]},Be.prototype.setConstants=function(){0===this.dataChannel_?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)<<8,this.OFFSET_=23):1===this.dataChannel_&&(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)<<8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=32|this.CONTROL_,this.END_OF_CAPTION_=47|this.CONTROL_,this.ROLL_UP_2_ROWS_=37|this.CONTROL_,this.ROLL_UP_3_ROWS_=38|this.CONTROL_,this.ROLL_UP_4_ROWS_=39|this.CONTROL_,this.CARRIAGE_RETURN_=45|this.CONTROL_,this.RESUME_DIRECT_CAPTIONING_=41|this.CONTROL_,this.BACKSPACE_=33|this.CONTROL_,this.ERASE_DISPLAYED_MEMORY_=44|this.CONTROL_,this.ERASE_NON_DISPLAYED_MEMORY_=46|this.CONTROL_},Be.prototype.isSpecialCharacter=function(e,t){return e===this.EXT_&&48<=t&&t<=63},Be.prototype.isExtCharacter=function(e,t){return(e===this.EXT_+1||e===this.EXT_+2)&&32<=t&&t<=63},Be.prototype.isMidRowCode=function(e,t){return e===this.EXT_&&32<=t&&t<=47},Be.prototype.isOffsetControlCode=function(e,t){return e===this.OFFSET_&&33<=t&&t<=35},Be.prototype.isPAC=function(e,t){return e>=this.BASE_&&e<this.BASE_+8&&64<=t&&t<=127},Be.prototype.isColorPAC=function(e){return 64<=e&&e<=79||96<=e&&e<=127},Be.prototype.isNormalChar=function(e){return 32<=e&&e<=127},Be.prototype.setRollUp=function(e,t){if("rollUp"!==this.mode_&&(this.row_=14,this.mode_="rollUp",this.flushDisplayed(e),this.nonDisplayed_=Me(),this.displayed_=Me()),void 0!==t&&t!==this.row_)for(var i=0;i<this.rollUpRows_;i++)this.displayed_[t-i]=this.displayed_[this.row_-i],this.displayed_[this.row_-i]="";void 0===t&&(t=this.row_),this.topRow_=t-this.rollUpRows_+1},Be.prototype.addFormatting=function(e,t){this.formatting_=this.formatting_.concat(t);var i=t.reduce(function(e,t){return e+"<"+t+">"},"");this[this.mode_](e,i)},Be.prototype.clearFormatting=function(e){if(this.formatting_.length){var t=this.formatting_.reverse().reduce(function(e,t){return e+"</"+t+">"},"");this.formatting_=[],this[this.mode_](e,t)}},Be.prototype.popOn=function(e,t){var i=this.nonDisplayed_[this.row_];i+=t,this.nonDisplayed_[this.row_]=i},Be.prototype.rollUp=function(e,t){var i=this.displayed_[this.row_];i+=t,this.displayed_[this.row_]=i},Be.prototype.shiftRowsUp_=function(){var e;for(e=0;e<this.topRow_;e++)this.displayed_[e]="";for(e=this.row_+1;e<15;e++)this.displayed_[e]="";for(e=this.topRow_;e<this.row_;e++)this.displayed_[e]=this.displayed_[e+1];this.displayed_[this.row_]=""},Be.prototype.paintOn=function(e,t){var i=this.displayed_[this.row_];i+=t,this.displayed_[this.row_]=i};function Fe(e,t){var i=1;for(t<e&&(i=-1);4294967296<Math.abs(t-e);)e+=8589934592*i;return e}function je(e){var t,i;je.prototype.init.call(this),this.type_=e||"shared",this.push=function(e){"shared"!==this.type_&&e.type!==this.type_||(void 0===i&&(i=e.dts),e.dts=Fe(e.dts,i),e.pts=Fe(e.pts,i),t=e.dts,this.trigger("data",e))},this.flush=function(){i=t,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){t=i=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}}var Ve={CaptionStream:G,Cea608Stream:Be,Cea708Stream:De},qe={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21};je.prototype=new V;function He(e,t,i){var n,r="";for(n=t;n<i;n++)r+="%"+("00"+e[n].toString(16)).slice(-2);return r}function We(e,t,i){return decodeURIComponent(He(e,t,i))}function ze(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]}var Ge,Xe=je,Ke={TXXX:function(e){var t;if(3===e.data[0]){for(t=1;t<e.data.length;t++)if(0===e.data[t]){e.description=We(e.data,1,t),e.value=We(e.data,t+1,e.data.length).replace(/\0*$/,"");break}e.data=e.value}},WXXX:function(e){var t;if(3===e.data[0])for(t=1;t<e.data.length;t++)if(0===e.data[t]){e.description=We(e.data,1,t),e.url=We(e.data,t+1,e.data.length);break}},PRIV:function(e){var t,i;for(t=0;t<e.data.length;t++)if(0===e.data[t]){e.owner=(i=e.data,unescape(He(i,0,t)));break}e.privateData=e.data.subarray(t+1),e.data=e.privateData}};(Ge=function(e){var t,u={debug:!(!e||!e.debug),descriptor:e&&e.descriptor},l=0,c=[],d=0;if(Ge.prototype.init.call(this),this.dispatchType=qe.METADATA_STREAM_TYPE.toString(16),u.descriptor)for(t=0;t<u.descriptor.length;t++)this.dispatchType+=("00"+u.descriptor[t].toString(16)).slice(-2);this.push=function(e){var t,i,n,r,a;if("timed-metadata"===e.type)if(e.dataAlignmentIndicator&&(d=0,c.length=0),0===c.length&&(e.data.length<10||e.data[0]!=="I".charCodeAt(0)||e.data[1]!=="D".charCodeAt(0)||e.data[2]!=="3".charCodeAt(0)))u.debug;else if(c.push(e),d+=e.data.byteLength,1===c.length&&(l=ze(e.data.subarray(6,10)),l+=10),!(d<l)){for(t={data:new Uint8Array(l),frames:[],pts:c[0].pts,dts:c[0].dts},a=0;a<l;)t.data.set(c[0].data.subarray(0,l-a),a),a+=c[0].data.byteLength,d-=c[0].data.byteLength,c.shift();i=10,64&t.data[5]&&(i+=4,i+=ze(t.data.subarray(10,14)),l-=ze(t.data.subarray(16,20)));do{if((n=ze(t.data.subarray(i+4,i+8)))<1)return;if((r={id:String.fromCharCode(t.data[i],t.data[i+1],t.data[i+2],t.data[i+3]),data:t.data.subarray(i+10,i+n+10)}).key=r.id,Ke[r.id]&&(Ke[r.id](r),"com.apple.streaming.transportStreamTimestamp"===r.owner)){var s=r.data,o=(1&s[3])<<30|s[4]<<22|s[5]<<14|s[6]<<6|s[7]>>>2;o*=4,o+=3&s[7],r.timeStamp=o,void 0===t.pts&&void 0===t.dts&&(t.pts=r.timeStamp,t.dts=r.timeStamp),this.trigger("timestamp",r)}t.frames.push(r),i+=10,i+=n}while(i<l);this.trigger("data",t)}}}).prototype=new V;var Qe,Ye,$e,Je=Ge,Ze=Xe;(Qe=function(){var r=new Uint8Array(188),a=0;Qe.prototype.init.call(this),this.push=function(e){var t,i=0,n=188;for(a?((t=new Uint8Array(e.byteLength+a)).set(r.subarray(0,a)),t.set(e,a),a=0):t=e;n<t.byteLength;)71!==t[i]||71!==t[n]?(i++,n++):(this.trigger("data",t.subarray(i,n)),i+=188,n+=188);i<t.byteLength&&(r.set(t.subarray(i),0),a=t.byteLength-i)},this.flush=function(){188===a&&71===r[0]&&(this.trigger("data",r),a=0),this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.reset=function(){a=0,this.trigger("reset")}}).prototype=new V,(Ye=function(){var n,r,a,s;Ye.prototype.init.call(this),(s=this).packetsWaitingForPmt=[],this.programMapTable=void 0,n=function(e,t){var i=0;t.payloadUnitStartIndicator&&(i+=e[i]+1),"pat"===t.type?r(e.subarray(i),t):a(e.subarray(i),t)},r=function(e,t){t.section_number=e[7],t.last_section_number=e[8],s.pmtPid=(31&e[10])<<8|e[11],t.pmtPid=s.pmtPid},a=function(e,t){var i,n;if(1&e[5]){for(s.programMapTable={video:null,audio:null,"timed-metadata":{}},i=3+((15&e[1])<<8|e[2])-4,n=12+((15&e[10])<<8|e[11]);n<i;){var r=e[n],a=(31&e[n+1])<<8|e[n+2];r===qe.H264_STREAM_TYPE&&null===s.programMapTable.video?s.programMapTable.video=a:r===qe.ADTS_STREAM_TYPE&&null===s.programMapTable.audio?s.programMapTable.audio=a:r===qe.METADATA_STREAM_TYPE&&(s.programMapTable["timed-metadata"][a]=r),n+=5+((15&e[n+3])<<8|e[n+4])}t.programMapTable=s.programMapTable}},this.push=function(e){var t={},i=4;if(t.payloadUnitStartIndicator=!!(64&e[1]),t.pid=31&e[1],t.pid<<=8,t.pid|=e[2],1<(48&e[3])>>>4&&(i+=e[i]+1),0===t.pid)t.type="pat",n(e.subarray(i),t),this.trigger("data",t);else if(t.pid===this.pmtPid)for(t.type="pmt",n(e.subarray(i),t),this.trigger("data",t);this.packetsWaitingForPmt.length;)this.processPes_.apply(this,this.packetsWaitingForPmt.shift());else void 0===this.programMapTable?this.packetsWaitingForPmt.push([e,i,t]):this.processPes_(e,i,t)},this.processPes_=function(e,t,i){i.pid===this.programMapTable.video?i.streamType=qe.H264_STREAM_TYPE:i.pid===this.programMapTable.audio?i.streamType=qe.ADTS_STREAM_TYPE:i.streamType=this.programMapTable["timed-metadata"][i.pid],i.type="pes",i.data=e.subarray(t),this.trigger("data",i)}}).prototype=new V,Ye.STREAM_TYPES={h264:27,adts:15},($e=function(){function n(e,t,i){var n,r,a=new Uint8Array(e.size),s={type:t},o=0,u=0;if(e.data.length&&!(e.size<9)){for(s.trackId=e.data[0].pid,o=0;o<e.data.length;o++)r=e.data[o],a.set(r.data,u),u+=r.data.byteLength;!function(e,t){var i,n=e[0]<<16|e[1]<<8|e[2];t.data=new Uint8Array,1==n&&(t.packetLength=6+(e[4]<<8|e[5]),t.dataAlignmentIndicator=0!=(4&e[6]),192&(i=e[7])&&(t.pts=(14&e[9])<<27|(255&e[10])<<20|(254&e[11])<<12|(255&e[12])<<5|(254&e[13])>>>3,t.pts*=4,t.pts+=(6&e[13])>>>1,t.dts=t.pts,64&i&&(t.dts=(14&e[14])<<27|(255&e[15])<<20|(254&e[16])<<12|(255&e[17])<<5|(254&e[18])>>>3,t.dts*=4,t.dts+=(6&e[18])>>>1)),t.data=e.subarray(9+e[8]))}(a,s),n="video"===t||s.packetLength<=e.size,(i||n)&&(e.size=0,e.data.length=0),n&&l.trigger("data",s)}}var t,l=this,r={data:[],size:0},a={data:[],size:0},s={data:[],size:0};$e.prototype.init.call(this),this.push=function(i){({pat:function(){},pes:function(){var e,t;switch(i.streamType){case qe.H264_STREAM_TYPE:e=r,t="video";break;case qe.ADTS_STREAM_TYPE:e=a,t="audio";break;case qe.METADATA_STREAM_TYPE:e=s,t="timed-metadata";break;default:return}i.payloadUnitStartIndicator&&n(e,t,!0),e.data.push(i),e.size+=i.data.byteLength},pmt:function(){var e={type:"metadata",tracks:[]};null!==(t=i.programMapTable).video&&e.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+t.video,codec:"avc",type:"video"}),null!==t.audio&&e.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+t.audio,codec:"adts",type:"audio"}),l.trigger("data",e)}})[i.type]()},this.reset=function(){r.size=0,r.data.length=0,a.size=0,a.data.length=0,this.trigger("reset")},this.flushStreams_=function(){n(r,"video"),n(a,"audio"),n(s,"timed-metadata")},this.flush=function(){this.flushStreams_(),this.trigger("done")}}).prototype=new V;var et={PAT_PID:0,MP2T_PACKET_LENGTH:188,TransportPacketStream:Qe,TransportParseStream:Ye,ElementaryStream:$e,TimestampRolloverStream:Ze,CaptionStream:Ve.CaptionStream,Cea608Stream:Ve.Cea608Stream,Cea708Stream:Ve.Cea708Stream,MetadataStream:Je};for(var tt in qe)qe.hasOwnProperty(tt)&&(et[tt]=qe[tt]);var it,nt=et,rt=ce,at=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];(it=function(u){var l,c=0;it.prototype.init.call(this),this.push=function(e){var t,i,n,r,a,s,o=0;if(u||(c=0),"audio"===e.type)for(l?(r=l,(l=new Uint8Array(r.byteLength+e.data.byteLength)).set(r),l.set(e.data,r.byteLength)):l=e.data;o+5<l.length;)if(255===l[o]&&240==(246&l[o+1])){if(i=2*(1&~l[o+1]),t=(3&l[o+3])<<11|l[o+4]<<3|(224&l[o+5])>>5,s=(a=1024*(1+(3&l[o+6])))*rt/at[(60&l[o+2])>>>2],n=o+t,l.byteLength<n)return;if(this.trigger("data",{pts:e.pts+c*s,dts:e.dts+c*s,sampleCount:a,audioobjecttype:1+(l[o+2]>>>6&3),channelcount:(1&l[o+2])<<2|(192&l[o+3])>>>6,samplerate:at[(60&l[o+2])>>>2],samplingfrequencyindex:(60&l[o+2])>>>2,samplesize:16,data:l.subarray(o+7+i,n)}),c++,l.byteLength===n)return void(l=void 0);l=l.subarray(n)}else o++},this.flush=function(){c=0,this.trigger("done")},this.reset=function(){l=void 0,this.trigger("reset")},this.endTimeline=function(){l=void 0,this.trigger("endedtimeline")}}).prototype=new V;var st,ot,ut,lt=it,ct=function(n){var r=n.byteLength,a=0,s=0;this.length=function(){return 8*r},this.bitsAvailable=function(){return 8*r+s},this.loadWord=function(){var e=n.byteLength-r,t=new Uint8Array(4),i=Math.min(4,r);if(0===i)throw new Error("no bytes available");t.set(n.subarray(e,e+i)),a=new DataView(t.buffer).getUint32(0),s=8*i,r-=i},this.skipBits=function(e){var t;e<s||(e-=s,e-=8*(t=Math.floor(e/8)),r-=t,this.loadWord()),a<<=e,s-=e},this.readBits=function(e){var t=Math.min(s,e),i=a>>>32-t;return 0<(s-=t)?a<<=t:0<r&&this.loadWord(),0<(t=e-t)?i<<t|this.readBits(t):i},this.skipLeadingZeros=function(){var e;for(e=0;e<s;++e)if(0!=(a&2147483648>>>e))return a<<=e,s-=e,e;return this.loadWord(),e+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var e=this.skipLeadingZeros();return this.readBits(e+1)-1},this.readExpGolomb=function(){var e=this.readUnsignedExpGolomb();return 1&e?1+e>>>1:-1*(e>>>1)},this.readBoolean=function(){return 1===this.readBits(1)},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()};(ot=function(){var n,r,a=0;ot.prototype.init.call(this),this.push=function(e){for(var t,i=(r=r?((t=new Uint8Array(r.byteLength+e.data.byteLength)).set(r),t.set(e.data,r.byteLength),t):e.data).byteLength;a<i-3;a++)if(1===r[a+2]){n=a+5;break}for(;n<i;)switch(r[n]){case 0:if(0!==r[n-1]){n+=2;break}if(0!==r[n-2]){n++;break}for(a+3!==n-2&&this.trigger("data",r.subarray(a+3,n-2));1!==r[++n]&&n<i;);a=n-2,n+=3;break;case 1:if(0!==r[n-1]||0!==r[n-2]){n+=3;break}this.trigger("data",r.subarray(a+3,n-2)),a=n-2,n+=3;break;default:n+=3}r=r.subarray(a),n-=a,a=0},this.reset=function(){r=null,a=0,this.trigger("reset")},this.flush=function(){r&&3<r.byteLength&&this.trigger("data",r.subarray(a+3)),r=null,a=0,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")}}).prototype=new V,ut={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},(st=function(){var i,n,r,a,s,o,_,t=new ot;st.prototype.init.call(this),(i=this).push=function(e){"video"===e.type&&(n=e.trackId,r=e.pts,a=e.dts,t.push(e))},t.on("data",function(e){var t={trackId:n,pts:r,dts:a,data:e};switch(31&e[0]){case 5:t.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:t.nalUnitType="sei_rbsp",t.escapedRBSP=s(e.subarray(1));break;case 7:t.nalUnitType="seq_parameter_set_rbsp",t.escapedRBSP=s(e.subarray(1)),t.config=o(t.escapedRBSP);break;case 8:t.nalUnitType="pic_parameter_set_rbsp";break;case 9:t.nalUnitType="access_unit_delimiter_rbsp"}i.trigger("data",t)}),t.on("done",function(){i.trigger("done")}),t.on("partialdone",function(){i.trigger("partialdone")}),t.on("reset",function(){i.trigger("reset")}),t.on("endedtimeline",function(){i.trigger("endedtimeline")}),this.flush=function(){t.flush()},this.partialFlush=function(){t.partialFlush()},this.reset=function(){t.reset()},this.endTimeline=function(){t.endTimeline()},_=function(e,t){var i,n=8,r=8;for(i=0;i<e;i++)0!==r&&(r=(n+t.readExpGolomb()+256)%256),n=0===r?n:r},s=function(e){for(var t,i,n=e.byteLength,r=[],a=1;a<n-2;)0===e[a]&&0===e[a+1]&&3===e[a+2]?(r.push(a+2),a+=2):a++;if(0===r.length)return e;t=n-r.length,i=new Uint8Array(t);var s=0;for(a=0;a<t;s++,a++)s===r[0]&&(s++,r.shift()),i[a]=e[s];return i},o=function(e){var t,i,n,r,a,s,o,u,l,c,d,h,p,f=0,m=0,g=0,v=0,y=1;if(i=(t=new ct(e)).readUnsignedByte(),r=t.readUnsignedByte(),n=t.readUnsignedByte(),t.skipUnsignedExpGolomb(),ut[i]&&(3===(a=t.readUnsignedExpGolomb())&&t.skipBits(1),t.skipUnsignedExpGolomb(),t.skipUnsignedExpGolomb(),t.skipBits(1),t.readBoolean()))for(d=3!==a?8:12,p=0;p<d;p++)t.readBoolean()&&_(p<6?16:64,t);if(t.skipUnsignedExpGolomb(),0===(s=t.readUnsignedExpGolomb()))t.readUnsignedExpGolomb();else if(1===s)for(t.skipBits(1),t.skipExpGolomb(),t.skipExpGolomb(),o=t.readUnsignedExpGolomb(),p=0;p<o;p++)t.skipExpGolomb();if(t.skipUnsignedExpGolomb(),t.skipBits(1),u=t.readUnsignedExpGolomb(),l=t.readUnsignedExpGolomb(),0===(c=t.readBits(1))&&t.skipBits(1),t.skipBits(1),t.readBoolean()&&(f=t.readUnsignedExpGolomb(),m=t.readUnsignedExpGolomb(),g=t.readUnsignedExpGolomb(),v=t.readUnsignedExpGolomb()),t.readBoolean()&&t.readBoolean()){switch(t.readUnsignedByte()){case 1:h=[1,1];break;case 2:h=[12,11];break;case 3:h=[10,11];break;case 4:h=[16,11];break;case 5:h=[40,33];break;case 6:h=[24,11];break;case 7:h=[20,11];break;case 8:h=[32,11];break;case 9:h=[80,33];break;case 10:h=[18,11];break;case 11:h=[15,11];break;case 12:h=[64,33];break;case 13:h=[160,99];break;case 14:h=[4,3];break;case 15:h=[3,2];break;case 16:h=[2,1];break;case 255:h=[t.readUnsignedByte()<<8|t.readUnsignedByte(),t.readUnsignedByte()<<8|t.readUnsignedByte()]}h&&(y=h[0]/h[1])}return{profileIdc:i,levelIdc:n,profileCompatibility:r,width:Math.ceil((16*(u+1)-2*f-2*m)*y),height:(2-c)*(l+1)*16-2*g-2*v,sarRatio:h}}}).prototype=new V;function dt(e,t){var i=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9];return i=0<=i?i:0,(16&e[t+5])>>4?i+20:i+10}var ht,pt={H264Stream:st,NalByteStream:ot},ft=function(e){var t=function e(t,i){return t.length-i<10||t[i]!=="I".charCodeAt(0)||t[i+1]!=="D".charCodeAt(0)||t[i+2]!=="3".charCodeAt(0)?i:e(t,i+=dt(t,i))}(e,0);return e.length>=t+2&&255==(255&e[t])&&240==(240&e[t+1])&&16==(22&e[t+1])},mt=dt,gt=function(e,t){var i=(224&e[t+5])>>5,n=e[t+4]<<3;return 6144&e[t+3]|n|i};(ht=function(){var o=new Uint8Array,u=0;ht.prototype.init.call(this),this.setTimestamp=function(e){u=e},this.push=function(e){var t,i,n,r,a=0,s=0;for(o.length?(r=o.length,(o=new Uint8Array(e.byteLength+r)).set(o.subarray(0,r)),o.set(e,r)):o=e;3<=o.length-s;)if(o[s]!=="I".charCodeAt(0)||o[s+1]!=="D".charCodeAt(0)||o[s+2]!=="3".charCodeAt(0))if(255!=(255&o[s])||240!=(240&o[s+1]))s++;else{if(o.length-s<7)break;if(s+(a=gt(o,s))>o.length)break;n={type:"audio",data:o.subarray(s,s+a),pts:u,dts:u},this.trigger("data",n),s+=a}else{if(o.length-s<10)break;if(s+(a=mt(o,s))>o.length)break;i={type:"timed-metadata",data:o.subarray(s,s+a)},this.trigger("data",i),s+=a}t=o.length-s,o=0<t?o.subarray(s):new Uint8Array},this.reset=function(){o=new Uint8Array,this.trigger("reset")},this.endTimeline=function(){o=new Uint8Array,this.trigger("endedtimeline")}}).prototype=new V;function vt(e,t){var i;if(e.length!==t.length)return!1;for(i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}function yt(e,t,i,n,r,a){return{start:{dts:e,pts:e+(i-t)},end:{dts:e+(n-t),pts:e+(r-i)},prependedContentDuration:a,baseMediaDecodeTime:e}}var _t,bt,Tt,St,kt=ht,wt=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],Et=["width","height","profileIdc","levelIdc","profileCompatibility","sarRatio"],Ct=pt.H264Stream,It=ft,xt=ce;(bt=function(o,u){var l=[],c=0,d=0,h=0,p=1/0;u=u||{},bt.prototype.init.call(this),this.push=function(t){ke(o,t),o&&wt.forEach(function(e){o[e]=t[e]}),l.push(t)},this.setEarliestDts=function(e){d=e},this.setVideoBaseMediaDecodeTime=function(e){p=e},this.setAudioAppendStart=function(e){h=e},this.flush=function(){var e,t,i,n,r,a,s;0!==l.length&&(e=ve(l,o,d),o.baseMediaDecodeTime=Se(o,u.keepOriginalTimestamps),s=ge(o,e,h,p),o.samples=ye(e),i=J(_e(e)),l=[],t=Z(c,[o]),n=new Uint8Array(t.byteLength+i.byteLength),c++,n.set(t),n.set(i,t.byteLength),Te(o),r=Math.ceil(1024*xt/o.samplerate),e.length&&(a=e.length*r,this.trigger("segmentTimingInfo",yt(pe(o.baseMediaDecodeTime,o.samplerate),e[0].dts,e[0].pts,e[0].dts+a,e[0].pts+a,s||0)),this.trigger("timingInfo",{start:e[0].pts,end:e[0].pts+a})),this.trigger("data",{track:o,boxes:n})),this.trigger("done","AudioSegmentStream")},this.reset=function(){Te(o),l=[],this.trigger("reset")}}).prototype=new V,(_t=function(c,d){var t,i,h=0,p=[],f=[];d=d||{},_t.prototype.init.call(this),delete c.minPTS,this.gopCache_=[],this.push=function(e){ke(c,e),"seq_parameter_set_rbsp"!==e.nalUnitType||t||(t=e.config,c.sps=[e.data],Et.forEach(function(e){c[e]=t[e]},this)),"pic_parameter_set_rbsp"!==e.nalUnitType||i||(i=e.data,c.pps=[e.data]),p.push(e)},this.flush=function(){for(var e,t,i,n,r,a,s,o,u=0;p.length&&"access_unit_delimiter_rbsp"!==p[0].nalUnitType;)p.shift();if(0===p.length)return this.resetStream_(),void this.trigger("done","VideoSegmentStream");if(e=te(p),(i=ie(e))[0][0].keyFrame||((t=this.getGopForFusion_(p[0],c))?(u=t.duration,i.unshift(t),i.byteLength+=t.byteLength,i.nalCount+=t.nalCount,i.pts=t.pts,i.dts=t.dts,i.duration+=t.duration):i=ne(i)),f.length){var l;if(!(l=d.alignGopsAtEnd?this.alignGopsAtEnd_(i):this.alignGopsAtStart_(i)))return this.gopCache_.unshift({gop:i.pop(),pps:c.pps,sps:c.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),p=[],this.resetStream_(),void this.trigger("done","VideoSegmentStream");Te(c),i=l}ke(c,i),c.samples=re(i),r=J(ae(i)),c.baseMediaDecodeTime=Se(c,d.keepOriginalTimestamps),this.trigger("processedGopsInfo",i.map(function(e){return{pts:e.pts,dts:e.dts,byteLength:e.byteLength}})),s=i[0],o=i[i.length-1],this.trigger("segmentTimingInfo",yt(c.baseMediaDecodeTime,s.dts,s.pts,o.dts+o.duration,o.pts+o.duration,u)),this.trigger("timingInfo",{start:i[0].pts,end:i[i.length-1].pts+i[i.length-1].duration}),this.gopCache_.unshift({gop:i.pop(),pps:c.pps,sps:c.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),p=[],this.trigger("baseMediaDecodeTime",c.baseMediaDecodeTime),this.trigger("timelineStartInfo",c.timelineStartInfo),n=Z(h,[c]),a=new Uint8Array(n.byteLength+r.byteLength),h++,a.set(n),a.set(r,n.byteLength),this.trigger("data",{track:c,boxes:a}),this.resetStream_(),this.trigger("done","VideoSegmentStream")},this.reset=function(){this.resetStream_(),p=[],this.gopCache_.length=0,f.length=0,this.trigger("reset")},this.resetStream_=function(){Te(c),i=t=void 0},this.getGopForFusion_=function(e){var t,i,n,r,a,s=1/0;for(a=0;a<this.gopCache_.length;a++)n=(r=this.gopCache_[a]).gop,c.pps&&vt(c.pps[0],r.pps[0])&&c.sps&&vt(c.sps[0],r.sps[0])&&(n.dts<c.timelineStartInfo.dts||-1e4<=(t=e.dts-n.dts-n.duration)&&t<=45e3&&(!i||t<s)&&(i=r,s=t));return i?i.gop:null},this.alignGopsAtStart_=function(e){var t,i,n,r,a,s,o,u;for(a=e.byteLength,s=e.nalCount,o=e.duration,t=i=0;t<f.length&&i<e.length&&(n=f[t],r=e[i],n.pts!==r.pts);)r.pts>n.pts?t++:(i++,a-=r.byteLength,s-=r.nalCount,o-=r.duration);return 0===i?e:i===e.length?null:((u=e.slice(i)).byteLength=a,u.duration=o,u.nalCount=s,u.pts=u[0].pts,u.dts=u[0].dts,u)},this.alignGopsAtEnd_=function(e){var t,i,n,r,a,s,o;for(t=f.length-1,i=e.length-1,a=null,s=!1;0<=t&&0<=i;){if(n=f[t],r=e[i],n.pts===r.pts){s=!0;break}n.pts>r.pts?t--:(t===f.length-1&&(a=i),i--)}if(!s&&null===a)return null;if(0===(o=s?i:a))return e;var u=e.slice(o),l=u.reduce(function(e,t){return e.byteLength+=t.byteLength,e.duration+=t.duration,e.nalCount+=t.nalCount,e},{byteLength:0,duration:0,nalCount:0});return u.byteLength=l.byteLength,u.duration=l.duration,u.nalCount=l.nalCount,u.pts=u[0].pts,u.dts=u[0].dts,u},this.alignGopsWith=function(e){f=e}}).prototype=new V,(St=function(e,t){this.numberOfTracks=0,this.metadataStream=t,"undefined"!=typeof(e=e||{}).remux?this.remuxTracks=!!e.remux:this.remuxTracks=!0,"boolean"==typeof e.keepOriginalTimestamps?this.keepOriginalTimestamps=e.keepOriginalTimestamps:this.keepOriginalTimestamps=!1,this.pendingTracks=[],this.videoTrack=null,this.pendingBoxes=[],this.pendingCaptions=[],this.pendingMetadata=[],this.pendingBytes=0,this.emittedTracks=0,St.prototype.init.call(this),this.push=function(e){return e.text?this.pendingCaptions.push(e):e.frames?this.pendingMetadata.push(e):(this.pendingTracks.push(e.track),this.pendingBytes+=e.boxes.byteLength,"video"===e.track.type&&(this.videoTrack=e.track,this.pendingBoxes.push(e.boxes)),void("audio"===e.track.type&&(this.audioTrack=e.track,this.pendingBoxes.unshift(e.boxes))))}}).prototype=new V,St.prototype.flush=function(e){var t,i,n,r,a=0,s={captions:[],captionStreams:{},metadata:[],info:{}},o=0;if(this.pendingTracks.length<this.numberOfTracks){if("VideoSegmentStream"!==e&&"AudioSegmentStream"!==e)return;if(this.remuxTracks)return;if(0===this.pendingTracks.length)return this.emittedTracks++,void(this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0))}if(this.videoTrack?(o=this.videoTrack.timelineStartInfo.pts,Et.forEach(function(e){s.info[e]=this.videoTrack[e]},this)):this.audioTrack&&(o=this.audioTrack.timelineStartInfo.pts,wt.forEach(function(e){s.info[e]=this.audioTrack[e]},this)),this.videoTrack||this.audioTrack){for(1===this.pendingTracks.length?s.type=this.pendingTracks[0].type:s.type="combined",this.emittedTracks+=this.pendingTracks.length,n=ee(this.pendingTracks),s.initSegment=new Uint8Array(n.byteLength),s.initSegment.set(n),s.data=new Uint8Array(this.pendingBytes),r=0;r<this.pendingBoxes.length;r++)s.data.set(this.pendingBoxes[r],a),a+=this.pendingBoxes[r].byteLength;for(r=0;r<this.pendingCaptions.length;r++)(t=this.pendingCaptions[r]).startTime=me(t.startPts,o,this.keepOriginalTimestamps),t.endTime=me(t.endPts,o,this.keepOriginalTimestamps),s.captionStreams[t.stream]=!0,s.captions.push(t);for(r=0;r<this.pendingMetadata.length;r++)(i=this.pendingMetadata[r]).cueTime=me(i.pts,o,this.keepOriginalTimestamps),s.metadata.push(i);for(s.metadata.dispatchType=this.metadataStream.dispatchType,this.pendingTracks.length=0,this.videoTrack=null,this.pendingBoxes.length=0,this.pendingCaptions.length=0,this.pendingBytes=0,this.pendingMetadata.length=0,this.trigger("data",s),r=0;r<s.captions.length;r++)t=s.captions[r],this.trigger("caption",t);for(r=0;r<s.metadata.length;r++)i=s.metadata[r],this.trigger("id3Frame",i)}this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},St.prototype.setRemux=function(e){this.remuxTracks=e},(Tt=function(n){var r,a,s=this,i=!0;Tt.prototype.init.call(this),n=n||{},this.baseMediaDecodeTime=n.baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var t={};(this.transmuxPipeline_=t).type="aac",t.metadataStream=new nt.MetadataStream,t.aacStream=new kt,t.audioTimestampRolloverStream=new nt.TimestampRolloverStream("audio"),t.timedMetadataTimestampRolloverStream=new nt.TimestampRolloverStream("timed-metadata"),t.adtsStream=new lt,t.coalesceStream=new St(n,t.metadataStream),t.headOfPipeline=t.aacStream,t.aacStream.pipe(t.audioTimestampRolloverStream).pipe(t.adtsStream),t.aacStream.pipe(t.timedMetadataTimestampRolloverStream).pipe(t.metadataStream).pipe(t.coalesceStream),t.metadataStream.on("timestamp",function(e){t.aacStream.setTimestamp(e.timeStamp)}),t.aacStream.on("data",function(e){"timed-metadata"!==e.type&&"audio"!==e.type||t.audioSegmentStream||(a=a||{timelineStartInfo:{baseMediaDecodeTime:s.baseMediaDecodeTime},codec:"adts",type:"audio"},t.coalesceStream.numberOfTracks++,t.audioSegmentStream=new bt(a,n),t.audioSegmentStream.on("timingInfo",s.trigger.bind(s,"audioTimingInfo")),t.adtsStream.pipe(t.audioSegmentStream).pipe(t.coalesceStream),s.trigger("trackinfo",{hasAudio:!!a,hasVideo:!!r}))}),t.coalesceStream.on("data",this.trigger.bind(this,"data")),t.coalesceStream.on("done",this.trigger.bind(this,"done"))},this.setupTsPipeline=function(){var i={};(this.transmuxPipeline_=i).type="ts",i.metadataStream=new nt.MetadataStream,i.packetStream=new nt.TransportPacketStream,i.parseStream=new nt.TransportParseStream,i.elementaryStream=new nt.ElementaryStream,i.timestampRolloverStream=new nt.TimestampRolloverStream,i.adtsStream=new lt,i.h264Stream=new Ct,i.captionStream=new nt.CaptionStream(n),i.coalesceStream=new St(n,i.metadataStream),i.headOfPipeline=i.packetStream,i.packetStream.pipe(i.parseStream).pipe(i.elementaryStream).pipe(i.timestampRolloverStream),i.timestampRolloverStream.pipe(i.h264Stream),i.timestampRolloverStream.pipe(i.adtsStream),i.timestampRolloverStream.pipe(i.metadataStream).pipe(i.coalesceStream),i.h264Stream.pipe(i.captionStream).pipe(i.coalesceStream),i.elementaryStream.on("data",function(e){var t;if("metadata"===e.type){for(t=e.tracks.length;t--;)r||"video"!==e.tracks[t].type?a||"audio"!==e.tracks[t].type||((a=e.tracks[t]).timelineStartInfo.baseMediaDecodeTime=s.baseMediaDecodeTime):(r=e.tracks[t]).timelineStartInfo.baseMediaDecodeTime=s.baseMediaDecodeTime;r&&!i.videoSegmentStream&&(i.coalesceStream.numberOfTracks++,i.videoSegmentStream=new _t(r,n),i.videoSegmentStream.on("timelineStartInfo",function(e){a&&!n.keepOriginalTimestamps&&(a.timelineStartInfo=e,i.audioSegmentStream.setEarliestDts(e.dts-s.baseMediaDecodeTime))}),i.videoSegmentStream.on("processedGopsInfo",s.trigger.bind(s,"gopInfo")),i.videoSegmentStream.on("segmentTimingInfo",s.trigger.bind(s,"videoSegmentTimingInfo")),i.videoSegmentStream.on("baseMediaDecodeTime",function(e){a&&i.audioSegmentStream.setVideoBaseMediaDecodeTime(e)}),i.videoSegmentStream.on("timingInfo",s.trigger.bind(s,"videoTimingInfo")),i.h264Stream.pipe(i.videoSegmentStream).pipe(i.coalesceStream)),a&&!i.audioSegmentStream&&(i.coalesceStream.numberOfTracks++,i.audioSegmentStream=new bt(a,n),i.audioSegmentStream.on("timingInfo",s.trigger.bind(s,"audioTimingInfo")),i.audioSegmentStream.on("segmentTimingInfo",s.trigger.bind(s,"audioSegmentTimingInfo")),i.adtsStream.pipe(i.audioSegmentStream).pipe(i.coalesceStream)),s.trigger("trackinfo",{hasAudio:!!a,hasVideo:!!r})}}),i.coalesceStream.on("data",this.trigger.bind(this,"data")),i.coalesceStream.on("id3Frame",function(e){e.dispatchType=i.metadataStream.dispatchType,s.trigger("id3Frame",e)}),i.coalesceStream.on("caption",this.trigger.bind(this,"caption")),i.coalesceStream.on("done",this.trigger.bind(this,"done"))},this.setBaseMediaDecodeTime=function(e){var t=this.transmuxPipeline_;n.keepOriginalTimestamps||(this.baseMediaDecodeTime=e),a&&(a.timelineStartInfo.dts=void 0,a.timelineStartInfo.pts=void 0,Te(a),t.audioTimestampRolloverStream&&t.audioTimestampRolloverStream.discontinuity()),r&&(t.videoSegmentStream&&(t.videoSegmentStream.gopCache_=[]),r.timelineStartInfo.dts=void 0,r.timelineStartInfo.pts=void 0,Te(r),t.captionStream.reset()),t.timestampRolloverStream&&t.timestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(e){a&&this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(e)},this.setRemux=function(e){var t=this.transmuxPipeline_;n.remux=e,t&&t.coalesceStream&&t.coalesceStream.setRemux(e)},this.alignGopsWith=function(e){r&&this.transmuxPipeline_.videoSegmentStream&&this.transmuxPipeline_.videoSegmentStream.alignGopsWith(e)},this.push=function(e){if(i){var t=It(e);t&&"aac"!==this.transmuxPipeline_.type?this.setupAacPipeline():t||"ts"===this.transmuxPipeline_.type||this.setupTsPipeline(),i=!1}this.transmuxPipeline_.headOfPipeline.push(e)},this.flush=function(){i=!0,this.transmuxPipeline_.headOfPipeline.flush()},this.endTimeline=function(){this.transmuxPipeline_.headOfPipeline.endTimeline()},this.reset=function(){this.transmuxPipeline_.headOfPipeline&&this.transmuxPipeline_.headOfPipeline.reset()},this.resetCaptions=function(){this.transmuxPipeline_.captionStream&&this.transmuxPipeline_.captionStream.reset()}}).prototype=new V;function At(a,s){var o=[],u=0,l=0,c=0,d=1/0,h=null,p=null;s=s||{},At.prototype.init.call(this),this.push=function(t){ke(a,t),a&&wt.forEach(function(e){a[e]=t[e]}),o.push(t)},this.setEarliestDts=function(e){l=e},this.setVideoBaseMediaDecodeTime=function(e){d=e},this.setAudioAppendStart=function(e){c=e},this.processFrames_=function(){var e,t,i,n,r;0!==o.length&&0!==(e=ve(o,a,l)).length&&(a.baseMediaDecodeTime=Se(a,s.keepOriginalTimestamps),ge(a,e,c,d),a.samples=ye(e),i=J(_e(e)),o=[],t=Z(u,[a]),u++,a.initSegment=ee([a]),(n=new Uint8Array(t.byteLength+i.byteLength)).set(t),n.set(i,t.byteLength),Te(a),null===h&&(p=h=e[0].pts),p+=e.length*(1024*Ot/a.samplerate),r={start:h},this.trigger("timingInfo",r),this.trigger("data",{track:a,boxes:n}))},this.flush=function(){this.processFrames_(),this.trigger("timingInfo",{start:h,end:p}),this.resetTiming_(),this.trigger("done","AudioSegmentStream")},this.partialFlush=function(){this.processFrames_(),this.trigger("partialdone","AudioSegmentStream")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline","AudioSegmentStream")},this.resetTiming_=function(){Te(a),p=h=null},this.reset=function(){this.resetTiming_(),o=[],this.trigger("reset")}}var Pt={Transmuxer:Tt,VideoSegmentStream:_t,AudioSegmentStream:bt,AUDIO_PROPERTIES:wt,VIDEO_PROPERTIES:Et,generateSegmentTimingInfo:yt},Lt={Adts:lt,h264:pt},Ot=ce;At.prototype=new V;function Dt(o,u){var t,i,l,c=0,d=[],h=[],p=null,f=null,m=!0;u=u||{},Dt.prototype.init.call(this),this.push=function(e){ke(o,e),"undefined"==typeof o.timelineStartInfo.dts&&(o.timelineStartInfo.dts=e.dts),"seq_parameter_set_rbsp"!==e.nalUnitType||t||(t=e.config,o.sps=[e.data],Et.forEach(function(e){o[e]=t[e]},this)),"pic_parameter_set_rbsp"!==e.nalUnitType||i||(i=e.data,o.pps=[e.data]),d.push(e)},this.processNals_=function(e){var t;for(d=h.concat(d);d.length&&"access_unit_delimiter_rbsp"!==d[0].nalUnitType;)d.shift();if(0!==d.length){var i=te(d);if(i.length)if(h=i[i.length-1],e&&(i.pop(),i.duration-=h.duration,i.nalCount-=h.length,i.byteLength-=h.byteLength),i.length){if(this.trigger("timelineStartInfo",o.timelineStartInfo),m){if(!(l=ie(i))[0][0].keyFrame){if(!(l=ne(l))[0][0].keyFrame)return d=[].concat.apply([],i).concat(h),void(h=[]);(i=[].concat.apply([],l)).duration=l.duration}m=!1}for(null===p&&(p=i[0].pts,f=p),f+=i.duration,this.trigger("timingInfo",{start:p,end:f}),t=0;t<i.length;t++){var n=i[t];o.samples=se(n);var r=J(oe(n));Te(o),ke(o,n),o.baseMediaDecodeTime=Se(o,u.keepOriginalTimestamps);var a=Z(c,[o]);c++,o.initSegment=ee([o]);var s=new Uint8Array(a.byteLength+r.byteLength);s.set(a),s.set(r,a.byteLength),this.trigger("data",{track:o,boxes:s,sequence:c,videoFrameDts:n.dts,videoFramePts:n.pts})}d=[]}else d=[]}},this.resetTimingAndConfig_=function(){i=t=void 0,f=p=null},this.partialFlush=function(){this.processNals_(!0),this.trigger("partialdone","VideoSegmentStream")},this.flush=function(){this.processNals_(!1),this.resetTimingAndConfig_(),this.trigger("done","VideoSegmentStream")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline","VideoSegmentStream")},this.reset=function(){this.resetTimingAndConfig_(),h=[],d=[],m=!0,this.trigger("reset")}}var Rt=At;Dt.prototype=new V;function Mt(e){return e.prototype=new V,e.prototype.init.call(e),e}function Nt(t,i){t.on("data",i.trigger.bind(i,"data")),t.on("done",i.trigger.bind(i,"done")),t.on("partialdone",i.trigger.bind(i,"partialdone")),t.on("endedtimeline",i.trigger.bind(i,"endedtimeline")),t.on("audioTimingInfo",i.trigger.bind(i,"audioTimingInfo")),t.on("videoTimingInfo",i.trigger.bind(i,"videoTimingInfo")),t.on("trackinfo",i.trigger.bind(i,"trackinfo")),t.on("id3Frame",function(e){e.dispatchType=t.metadataStream.dispatchType,e.cueTime=he(e.pts),i.trigger("id3Frame",e)}),t.on("caption",function(e){i.trigger("caption",e)})}function Ut(i){var n=null,r=!0;i=i||{},Ut.prototype.init.call(this),i.baseMediaDecodeTime=i.baseMediaDecodeTime||0,this.push=function(e){if(r){var t=Ft(e);!t||n&&"aac"===n.type?t||n&&"ts"===n.type||(n=function(i){var n={type:"ts",tracks:{audio:null,video:null},packet:new nt.TransportPacketStream,parse:new nt.TransportParseStream,elementary:new nt.ElementaryStream,timestampRollover:new nt.TimestampRolloverStream,adts:new Lt.Adts,h264:new Lt.h264.H264Stream,captionStream:new nt.CaptionStream(i),metadataStream:new nt.MetadataStream};return n.headOfPipeline=n.packet,n.packet.pipe(n.parse).pipe(n.elementary).pipe(n.timestampRollover),n.timestampRollover.pipe(n.h264),n.h264.pipe(n.captionStream),n.timestampRollover.pipe(n.metadataStream),n.timestampRollover.pipe(n.adts),n.elementary.on("data",function(e){if("metadata"===e.type){for(var t=0;t<e.tracks.length;t++)n.tracks[e.tracks[t].type]||(n.tracks[e.tracks[t].type]=e.tracks[t],n.tracks[e.tracks[t].type].timelineStartInfo.baseMediaDecodeTime=i.baseMediaDecodeTime);n.tracks.video&&!n.videoSegmentStream&&(n.videoSegmentStream=new Bt(n.tracks.video,i),n.videoSegmentStream.on("timelineStartInfo",function(e){n.tracks.audio&&!i.keepOriginalTimestamps&&n.audioSegmentStream.setEarliestDts(e.dts-i.baseMediaDecodeTime)}),n.videoSegmentStream.on("timingInfo",n.trigger.bind(n,"videoTimingInfo")),n.videoSegmentStream.on("data",function(e){n.trigger("data",{type:"video",data:e})}),n.videoSegmentStream.on("done",n.trigger.bind(n,"done")),n.videoSegmentStream.on("partialdone",n.trigger.bind(n,"partialdone")),n.videoSegmentStream.on("endedtimeline",n.trigger.bind(n,"endedtimeline")),n.h264.pipe(n.videoSegmentStream)),n.tracks.audio&&!n.audioSegmentStream&&(n.audioSegmentStream=new Rt(n.tracks.audio,i),n.audioSegmentStream.on("data",function(e){n.trigger("data",{type:"audio",data:e})}),n.audioSegmentStream.on("done",n.trigger.bind(n,"done")),n.audioSegmentStream.on("partialdone",n.trigger.bind(n,"partialdone")),n.audioSegmentStream.on("endedtimeline",n.trigger.bind(n,"endedtimeline")),n.audioSegmentStream.on("timingInfo",n.trigger.bind(n,"audioTimingInfo")),n.adts.pipe(n.audioSegmentStream)),n.trigger("trackinfo",{hasAudio:!!n.tracks.audio,hasVideo:!!n.tracks.video})}}),n.captionStream.on("data",function(e){var t;t=n.tracks.video&&n.tracks.video.timelineStartInfo.pts||0,e.startTime=me(e.startPts,t,i.keepOriginalTimestamps),e.endTime=me(e.endPts,t,i.keepOriginalTimestamps),n.trigger("caption",e)}),(n=Mt(n)).metadataStream.on("data",n.trigger.bind(n,"id3Frame")),n}(i),Nt(n,this)):(n=function(t){var i={type:"aac",tracks:{audio:null},metadataStream:new nt.MetadataStream,aacStream:new kt,audioRollover:new nt.TimestampRolloverStream("audio"),timedMetadataRollover:new nt.TimestampRolloverStream("timed-metadata"),adtsStream:new lt(!0)};return i.headOfPipeline=i.aacStream,i.aacStream.pipe(i.audioRollover).pipe(i.adtsStream),i.aacStream.pipe(i.timedMetadataRollover).pipe(i.metadataStream),i.metadataStream.on("timestamp",function(e){i.aacStream.setTimestamp(e.timeStamp)}),i.aacStream.on("data",function(e){"timed-metadata"!==e.type&&"audio"!==e.type||i.audioSegmentStream||(i.tracks.audio=i.tracks.audio||{timelineStartInfo:{baseMediaDecodeTime:t.baseMediaDecodeTime},codec:"adts",type:"audio"},i.audioSegmentStream=new Rt(i.tracks.audio,t),i.audioSegmentStream.on("data",function(e){i.trigger("data",{type:"audio",data:e})}),i.audioSegmentStream.on("partialdone",i.trigger.bind(i,"partialdone")),i.audioSegmentStream.on("done",i.trigger.bind(i,"done")),i.audioSegmentStream.on("endedtimeline",i.trigger.bind(i,"endedtimeline")),i.audioSegmentStream.on("timingInfo",i.trigger.bind(i,"audioTimingInfo")),i.adtsStream.pipe(i.audioSegmentStream),i.trigger("trackinfo",{hasAudio:!!i.tracks.audio,hasVideo:!!i.tracks.video}))}),(i=Mt(i)).metadataStream.on("data",i.trigger.bind(i,"id3Frame")),i}(i),Nt(n,this)),r=!1}n.headOfPipeline.push(e)},this.flush=function(){n&&(r=!0,n.headOfPipeline.flush())},this.partialFlush=function(){n&&n.headOfPipeline.partialFlush()},this.endTimeline=function(){n&&n.headOfPipeline.endTimeline()},this.reset=function(){n&&n.headOfPipeline.reset()},this.setBaseMediaDecodeTime=function(e){i.keepOriginalTimestamps||(i.baseMediaDecodeTime=e),n&&(n.tracks.audio&&(n.tracks.audio.timelineStartInfo.dts=void 0,n.tracks.audio.timelineStartInfo.pts=void 0,Te(n.tracks.audio),n.audioRollover&&n.audioRollover.discontinuity()),n.tracks.video&&(n.videoSegmentStream&&(n.videoSegmentStream.gopCache_=[]),n.tracks.video.timelineStartInfo.dts=void 0,n.tracks.video.timelineStartInfo.pts=void 0,Te(n.tracks.video)),n.timestampRollover&&n.timestampRollover.discontinuity())},this.setRemux=function(e){i.remux=e,n&&n.coalesceStream&&n.coalesceStream.setRemux(e)},this.setAudioAppendStart=function(e){n&&n.tracks.audio&&n.audioSegmentStream&&n.audioSegmentStream.setAudioAppendStart(e)},this.alignGopsWith=function(e){}}var Bt=Dt,Ft=ft;Ut.prototype=new V;function jt(e,t){for(var i=e,n=0;n<t.length;n++){var r=t[n];if(i<r.size)return r;i-=r.size}return null}function Vt(e,c){var n=Xt(e,["moof","traf"]),t=Xt(e,["mdat"]),d={},r=[];return t.forEach(function(e,t){var i=n[t];r.push({mdat:e,traf:i})}),r.forEach(function(e){var t,i=e.mdat,n=e.traf,r=Xt(n,["tfhd"]),a=Jt(r[0]),s=a.trackId,o=Xt(n,["tfdt"]),u=0<o.length?Qt(o[0]).baseMediaDecodeTime:0,l=Xt(n,["trun"]);c===s&&0<l.length&&(t=function(e,t,i){var n,r,a,s,o=new DataView(e.buffer,e.byteOffset,e.byteLength),u=[];for(r=0;r+4<e.length;r+=a)if(a=o.getUint32(r),r+=4,!(a<=0))switch(31&e[r]){case 6:var l=e.subarray(r+1,r+1+a),c=jt(r,t);if(n={nalUnitType:"sei_rbsp",size:a,data:l,escapedRBSP:Zt(l),trackId:i},c)n.pts=c.pts,n.dts=c.dts,s=c;else{if(!s)break;n.pts=s.pts,n.dts=s.dts}u.push(n)}return u}(i,function(e,t,i){var n=t,r=i.defaultSampleDuration||0,a=i.defaultSampleSize||0,s=i.trackId,o=[];return e.forEach(function(e){var t=$t(e).samples;t.forEach(function(e){void 0===e.duration&&(e.duration=r),void 0===e.size&&(e.size=a),e.trackId=s,e.dts=n,void 0===e.compositionTimeOffset&&(e.compositionTimeOffset=0),e.pts=n+e.compositionTimeOffset,n+=e.duration}),o=o.concat(t)}),o}(l,u,a),s),d[s]||(d[s]=[]),d[s]=d[s].concat(t))}),d}function qt(e){return"AudioSegmentStream"===e?"audio":"VideoSegmentStream"===e?"video":""}var Ht=Ut,Wt=function(e){return e>>>0},zt=function(e){var t="";return t+=String.fromCharCode(e[0]),t+=String.fromCharCode(e[1]),t+=String.fromCharCode(e[2]),t+=String.fromCharCode(e[3])},Gt=Wt,Xt=function e(t,i){var n,r,a,s,o,u=[];if(!i.length)return null;for(n=0;n<t.byteLength;)r=Gt(t[n]<<24|t[n+1]<<16|t[n+2]<<8|t[n+3]),a=zt(t.subarray(n+4,n+8)),s=1<r?n+r:t.byteLength,a===i[0]&&(1===i.length?u.push(t.subarray(n+8,s)):(o=e(t.subarray(n+8,s),i.slice(1))).length&&(u=u.concat(o))),n=s;return u},Kt=Wt,Qt=function(e){var t={version:e[0],flags:new Uint8Array(e.subarray(1,4)),baseMediaDecodeTime:Kt(e[4]<<24|e[5]<<16|e[6]<<8|e[7])};return 1===t.version&&(t.baseMediaDecodeTime*=Math.pow(2,32),t.baseMediaDecodeTime+=Kt(e[8]<<24|e[9]<<16|e[10]<<8|e[11])),t},Yt=function(e){return{isLeading:(12&e[0])>>>2,dependsOn:3&e[0],isDependedOn:(192&e[1])>>>6,hasRedundancy:(48&e[1])>>>4,paddingValue:(14&e[1])>>>1,isNonSyncSample:1&e[1],degradationPriority:e[2]<<8|e[3]}},$t=function(e){var t,i={version:e[0],flags:new Uint8Array(e.subarray(1,4)),samples:[]},n=new DataView(e.buffer,e.byteOffset,e.byteLength),r=1&i.flags[2],a=4&i.flags[2],s=1&i.flags[1],o=2&i.flags[1],u=4&i.flags[1],l=8&i.flags[1],c=n.getUint32(4),d=8;for(r&&(i.dataOffset=n.getInt32(d),d+=4),a&&c&&(t={flags:Yt(e.subarray(d,d+4))},d+=4,s&&(t.duration=n.getUint32(d),d+=4),o&&(t.size=n.getUint32(d),d+=4),l&&(1===i.version?t.compositionTimeOffset=n.getInt32(d):t.compositionTimeOffset=n.getUint32(d),d+=4),i.samples.push(t),c--);c--;)t={},s&&(t.duration=n.getUint32(d),d+=4),o&&(t.size=n.getUint32(d),d+=4),u&&(t.flags=Yt(e.subarray(d,d+4)),d+=4),l&&(1===i.version?t.compositionTimeOffset=n.getInt32(d):t.compositionTimeOffset=n.getUint32(d),d+=4),i.samples.push(t);return i},Jt=function(e){var t,i=new DataView(e.buffer,e.byteOffset,e.byteLength),n={version:e[0],flags:new Uint8Array(e.subarray(1,4)),trackId:i.getUint32(4)},r=1&n.flags[2],a=2&n.flags[2],s=8&n.flags[2],o=16&n.flags[2],u=32&n.flags[2],l=65536&n.flags[0],c=131072&n.flags[0];return t=8,r&&(t+=4,n.baseDataOffset=i.getUint32(12),t+=4),a&&(n.sampleDescriptionIndex=i.getUint32(t),t+=4),s&&(n.defaultSampleDuration=i.getUint32(t),t+=4),o&&(n.defaultSampleSize=i.getUint32(t),t+=4),u&&(n.defaultSampleFlags=i.getUint32(t)),l&&(n.durationIsEmpty=!0),!r&&c&&(n.baseDataOffsetIsMoof=!0),n},Zt=Ie,ei=Ve.CaptionStream,ti=function(){var t,a,s,o,u,i,n=!1;this.isInitialized=function(){return n},this.init=function(e){t=new ei,n=!0,i=!!e&&e.isPartial,t.on("data",function(e){e.startTime=e.startPts/o,e.endTime=e.endPts/o,u.captions.push(e),u.captionStreams[e.stream]=!0})},this.isNewInit=function(e,t){return!(e&&0===e.length||t&&"object"==typeof t&&0===Object.keys(t).length)&&(s!==e[0]||o!==t[s])},this.parse=function(e,t,i){var n;if(!this.isInitialized())return null;if(!t||!i)return null;if(this.isNewInit(t,i))s=t[0],o=i[s];else if(null===s||!o)return a.push(e),null;for(;0<a.length;){var r=a.shift();this.parse(r,t,i)}return null!==(n=function(e,t,i){return null===t?null:{seiNals:Vt(e,t)[t],timescale:i}}(e,s,o))&&n.seiNals?(this.pushNals(n.seiNals),this.flushStream(),u):null},this.pushNals=function(e){if(!this.isInitialized()||!e||0===e.length)return null;e.forEach(function(e){t.push(e)})},this.flushStream=function(){if(!this.isInitialized())return null;i?t.partialFlush():t.flush()},this.clearParsedCaptions=function(){u.captions=[],u.captionStreams={}},this.resetCaptionStream=function(){if(!this.isInitialized())return null;t.reset()},this.clearAllCaptions=function(){this.clearParsedCaptions(),this.resetCaptionStream()},this.reset=function(){a=[],o=s=null,u?this.clearParsedCaptions():u={captions:[],captionStreams:{}},this.resetCaptionStream()},this.reset()},ii=function(){function e(e,t){this.options=t||{},this.self=e,this.init()}var t=e.prototype;return t.init=function(){this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=this.options.handlePartialData?new Ht(this.options):new Pt.Transmuxer(this.options),this.options.handlePartialData?function(n,e){e.on("data",function(e){var t={data:e.data.track.initSegment.buffer,byteOffset:e.data.track.initSegment.byteOffset,byteLength:e.data.track.initSegment.byteLength},i={boxes:{data:e.data.boxes.buffer,byteOffset:e.data.boxes.byteOffset,byteLength:e.data.boxes.byteLength},initSegment:t,type:e.type,sequence:e.data.sequence};"undefined"!=typeof e.data.videoFrameDts&&(i.videoFrameDtsTime=he(e.data.videoFrameDts)),"undefined"!=typeof e.data.videoFramePts&&(i.videoFramePtsTime=he(e.data.videoFramePts)),n.postMessage({action:"data",segment:i},[i.boxes.data,i.initSegment.data])}),e.on("id3Frame",function(e){n.postMessage({action:"id3Frame",id3Frame:e})}),e.on("caption",function(e){n.postMessage({action:"caption",caption:e})}),e.on("done",function(e){n.postMessage({action:"done",type:qt(e)})}),e.on("partialdone",function(e){n.postMessage({action:"partialdone",type:qt(e)})}),e.on("endedsegment",function(e){n.postMessage({action:"endedSegment",type:qt(e)})}),e.on("trackinfo",function(e){n.postMessage({action:"trackinfo",trackInfo:e})}),e.on("audioTimingInfo",function(e){if(null!==e.start){var t={start:he(e.start)};e.end&&(t.end=he(e.end)),n.postMessage({action:"audioTimingInfo",audioTimingInfo:t})}else n.postMessage({action:"audioTimingInfo",audioTimingInfo:e})}),e.on("videoTimingInfo",function(e){var t={start:he(e.start)};e.end&&(t.end=he(e.end)),n.postMessage({action:"videoTimingInfo",videoTimingInfo:t})})}(this.self,this.transmuxer):function(n,e){e.on("data",function(e){var t=e.initSegment;e.initSegment={data:t.buffer,byteOffset:t.byteOffset,byteLength:t.byteLength};var i=e.data;e.data=i.buffer,n.postMessage({action:"data",segment:e,byteOffset:i.byteOffset,byteLength:i.byteLength},[e.data])}),e.on("done",function(e){n.postMessage({action:"done"})}),e.on("gopInfo",function(e){n.postMessage({action:"gopInfo",gopInfo:e})}),e.on("videoSegmentTimingInfo",function(e){var t={start:{decode:he(e.start.dts),presentation:he(e.start.pts)},end:{decode:he(e.end.dts),presentation:he(e.end.pts)},baseMediaDecodeTime:he(e.baseMediaDecodeTime)};e.prependedContentDuration&&(t.prependedContentDuration=he(e.prependedContentDuration)),n.postMessage({action:"videoSegmentTimingInfo",videoSegmentTimingInfo:t})}),e.on("audioSegmentTimingInfo",function(e){var t={start:{decode:he(e.start.dts),presentation:he(e.start.pts)},end:{decode:he(e.end.dts),presentation:he(e.end.pts)},baseMediaDecodeTime:he(e.baseMediaDecodeTime)};e.prependedContentDuration&&(t.prependedContentDuration=he(e.prependedContentDuration)),n.postMessage({action:"audioSegmentTimingInfo",audioSegmentTimingInfo:t})}),e.on("id3Frame",function(e){n.postMessage({action:"id3Frame",id3Frame:e})}),e.on("caption",function(e){n.postMessage({action:"caption",caption:e})}),e.on("trackinfo",function(e){n.postMessage({action:"trackinfo",trackInfo:e})}),e.on("audioTimingInfo",function(e){n.postMessage({action:"audioTimingInfo",audioTimingInfo:{start:he(e.start),end:he(e.end)}})}),e.on("videoTimingInfo",function(e){n.postMessage({action:"videoTimingInfo",videoTimingInfo:{start:he(e.start),end:he(e.end)}})})}(this.self,this.transmuxer)},t.pushMp4Captions=function(e){this.captionParser||(this.captionParser=new ti,this.captionParser.init());var t=new Uint8Array(e.data,e.byteOffset,e.byteLength),i=this.captionParser.parse(t,e.trackIds,e.timescales);this.self.postMessage({action:"mp4Captions",captions:i&&i.captions||[],data:t.buffer},[t.buffer])},t.clearAllMp4Captions=function(){this.captionParser&&this.captionParser.clearAllCaptions()},t.clearParsedMp4Captions=function(){this.captionParser&&this.captionParser.clearParsedCaptions()},t.push=function(e){var t=new Uint8Array(e.data,e.byteOffset,e.byteLength);this.transmuxer.push(t)},t.reset=function(){this.transmuxer.reset()},t.setTimestampOffset=function(e){var t=e.timestampOffset||0;this.transmuxer.setBaseMediaDecodeTime(Math.round(de(t)))},t.setAudioAppendStart=function(e){this.transmuxer.setAudioAppendStart(Math.ceil(de(e.appendStart)))},t.setRemux=function(e){this.transmuxer.setRemux(e.remux)},t.flush=function(e){this.transmuxer.flush(),self.postMessage({action:"done",type:"transmuxed"})},t.partialFlush=function(e){this.transmuxer.partialFlush(),self.postMessage({action:"partialdone",type:"transmuxed"})},t.endTimeline=function(){this.transmuxer.endTimeline(),self.postMessage({action:"endedtimeline",type:"transmuxed"})},t.alignGopsWith=function(e){this.transmuxer.alignGopsWith(e.gopsToAlignWith.slice())},e}();self.onmessage=function(e){"init"===e.data.action&&e.data.options?this.messageHandlers=new ii(self,e.data.options):(this.messageHandlers||(this.messageHandlers=new ii(self)),e.data&&e.data.action&&"init"!==e.data.action&&this.messageHandlers[e.data.action]&&this.messageHandlers[e.data.action](e.data))}}))),fd=function(e){e.currentTransmux=null,e.transmuxQueue.length&&(e.currentTransmux=e.transmuxQueue.shift(),"function"==typeof e.currentTransmux?e.currentTransmux():_c(e.currentTransmux))},md=function(e){Tc("reset",e)},gd=function(e){var t=new pd;t.currentTransmux=null,t.transmuxQueue=[];var i=t.terminate;return t.terminate=function(){return t.currentTransmux=null,t.transmuxQueue.length=0,i.call(t)},t.postMessage({action:"init",options:e}),t},vd=2,yd=-101,_d=-102,bd=Il("CodecUtils"),Td=Il("PlaylistSelector"),Sd=function(n){function e(e,t){var i;if(i=n.call(this)||this,!e)throw new TypeError("Initialization settings are required");if("function"!=typeof e.currentTime)throw new TypeError("No currentTime getter specified");if(!e.mediaSource)throw new TypeError("No MediaSource specified");return i.bandwidth=e.bandwidth,i.throughput={rate:0,count:0},i.roundTrip=NaN,i.resetStats_(),i.mediaIndex=null,i.hasPlayed_=e.hasPlayed,i.currentTime_=e.currentTime,i.seekable_=e.seekable,i.seeking_=e.seeking,i.duration_=e.duration,i.mediaSource_=e.mediaSource,i.vhs_=e.vhs,i.loaderType_=e.loaderType,i.currentMediaInfo_=void 0,i.startingMediaInfo_=void 0,i.segmentMetadataTrack_=e.segmentMetadataTrack,i.goalBufferLength_=e.goalBufferLength,i.sourceType_=e.sourceType,i.sourceUpdater_=e.sourceUpdater,i.inbandTextTracks_=e.inbandTextTracks,i.state_="INIT",i.handlePartialData_=e.handlePartialData,i.timelineChangeController_=e.timelineChangeController,i.shouldSaveSegmentTimingInfo_=!0,i.parse708captions_=e.parse708captions,i.checkBufferTimeout_=null,i.error_=void 0,i.currentTimeline_=-1,i.pendingSegment_=null,i.xhrOptions_=null,i.pendingSegments_=[],i.audioDisabled_=!1,i.isPendingTimestampOffset_=!1,i.gopBuffer_=[],i.timeMapping_=0,i.safeAppend_=11<=ga.browser.IE_VERSION,i.appendInitSegment_={audio:!0,video:!0},i.playlistOfLastInitSegment_={audio:null,video:null},i.callQueue_=[],i.loadQueue_=[],i.metadataQueue_={id3:[],caption:[]},i.waitingOnRemove_=!1,i.quotaExceededErrorRetryTimeout_=null,i.activeInitSegmentId_=null,i.initSegments_={},i.cacheEncryptionKeys_=e.cacheEncryptionKeys,i.keyCache_={},i.decrypter_=e.decrypter,i.syncController_=e.syncController,i.syncPoint_={segmentIndex:0,time:0},i.transmuxer_=i.createTransmuxer_(),i.triggerSyncInfoUpdate_=function(){return i.trigger("syncinfoupdate")},i.syncController_.on("syncinfoupdate",i.triggerSyncInfoUpdate_),i.mediaSource_.addEventListener("sourceopen",function(){i.isEndOfStream_()||(i.ended_=!1)}),i.fetchAtBuffer_=!1,i.logger_=Il("SegmentLoader["+i.loaderType_+"]"),Object.defineProperty(_a(i),"state",{get:function(){return this.state_},set:function(e){e!==this.state_&&(this.logger_(this.state_+" -> "+e),this.state_=e,this.trigger("statechange"))}}),i.sourceUpdater_.on("ready",function(){i.hasEnoughInfoToAppend_()&&i.processCallQueue_()}),"main"===i.loaderType_&&i.timelineChangeController_.on("pendingtimelinechange",function(){i.hasEnoughInfoToAppend_()&&i.processCallQueue_()}),"audio"===i.loaderType_&&i.timelineChangeController_.on("timelinechange",function(){i.hasEnoughInfoToLoad_()&&i.processLoadQueue_(),i.hasEnoughInfoToAppend_()&&i.processCallQueue_()}),i}Sa(e,n);var t=e.prototype;return t.createTransmuxer_=function(){return gd({remux:!1,alignGopsAtEnd:this.safeAppend_,keepOriginalTimestamps:!0,handlePartialData:this.handlePartialData_,parse708captions:this.parse708captions_})},t.resetStats_=function(){this.mediaBytesTransferred=0,this.mediaRequests=0,this.mediaRequestsAborted=0,this.mediaRequestsTimedout=0,this.mediaRequestsErrored=0,this.mediaTransferDuration=0,this.mediaSecondsLoaded=0},t.dispose=function(){this.trigger("dispose"),this.state="DISPOSED",this.pause(),this.abort_(),this.transmuxer_&&this.transmuxer_.terminate(),this.resetStats_(),this.checkBufferTimeout_&&Ea.clearTimeout(this.checkBufferTimeout_),this.syncController_&&this.triggerSyncInfoUpdate_&&this.syncController_.off("syncinfoupdate",this.triggerSyncInfoUpdate_),this.off()},t.setAudio=function(e){this.audioDisabled_=!e,e?this.appendInitSegment_.audio=!0:this.sourceUpdater_.removeAudio(0,this.duration_())},t.abort=function(){"WAITING"===this.state?(this.abort_(),this.state="READY",this.paused()||this.monitorBuffer_()):this.pendingSegment_&&(this.pendingSegment_=null)},t.abort_=function(){this.pendingSegment_&&this.pendingSegment_.abortRequests&&this.pendingSegment_.abortRequests(),this.pendingSegment_=null,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.timelineChangeController_.clearPendingTimelineChange(this.loaderType_),this.waitingOnRemove_=!1,Ea.clearTimeout(this.quotaExceededErrorRetryTimeout_),this.quotaExceededErrorRetryTimeout_=null},t.checkForAbort_=function(e){return"APPENDING"!==this.state||this.pendingSegment_?!this.pendingSegment_||this.pendingSegment_.requestId!==e:(this.state="READY",!0)},t.error=function(e){return"undefined"!=typeof e&&(this.logger_("error occurred:",e),this.error_=e),this.pendingSegment_=null,this.error_},t.endOfStream=function(){this.ended_=!0,this.transmuxer_&&md(this.transmuxer_),this.gopBuffer_.length=0,this.pause(),this.trigger("ended")},t.buffered_=function(){if(!this.sourceUpdater_||!this.startingMediaInfo_)return ga.createTimeRanges();if("main"===this.loaderType_){var e=this.startingMediaInfo_,t=e.hasAudio,i=e.hasVideo,n=e.isMuxed;if(i&&t&&!this.audioDisabled_&&!n)return this.sourceUpdater_.buffered();if(i)return this.sourceUpdater_.videoBuffered()}return this.sourceUpdater_.audioBuffered()},t.initSegmentForMap=function(e,t){if(void 0===t&&(t=!1),!e)return null;var i=rc(e),n=this.initSegments_[i];return t&&!n&&e.bytes&&(this.initSegments_[i]=n={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:e.bytes,tracks:e.tracks,timescales:e.timescales}),n||e},t.segmentKey=function(e,t){if(void 0===t&&(t=!1),!e)return null;var i=ac(e),n=this.keyCache_[i];this.cacheEncryptionKeys_&&t&&!n&&e.bytes&&(this.keyCache_[i]=n={resolvedUri:e.resolvedUri,bytes:e.bytes});var r={resolvedUri:(n||e).resolvedUri};return n&&(r.bytes=n.bytes),r},t.couldBeginLoading_=function(){return this.playlist_&&!this.paused()},t.load=function(){if(this.monitorBuffer_(),this.playlist_)return"INIT"===this.state&&this.couldBeginLoading_()?this.init_():void(!this.couldBeginLoading_()||"READY"!==this.state&&"INIT"!==this.state||(this.state="READY"))},t.init_=function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()},t.playlist=function(e,t){if(void 0===t&&(t={}),e){var i=this.playlist_,n=this.pendingSegment_;this.playlist_=e,this.xhrOptions_=t,"INIT"===this.state&&(e.syncInfo={mediaSequence:e.mediaSequence,time:0},"main"===this.loaderType_&&this.syncController_.setDateTimeMappingForStart(e));var r=null;if(i&&(i.id?r=i.id:i.uri&&(r=i.uri)),this.logger_("playlist update ["+r+" => "+(e.id||e.uri)+"]"),this.trigger("syncinfoupdate"),"INIT"===this.state&&this.couldBeginLoading_())return this.init_();if(!i||i.uri!==e.uri)return null===this.mediaIndex&&!this.handlePartialData_||this.resyncLoader(),this.currentMediaInfo_=void 0,void this.trigger("playlistupdate");var a=e.mediaSequence-i.mediaSequence;this.logger_("live window shift ["+a+"]"),null!==this.mediaIndex&&(this.mediaIndex-=a),n&&(n.mediaIndex-=a,0<=n.mediaIndex&&(n.segment=e.segments[n.mediaIndex])),this.syncController_.saveExpiredSegmentInfo(i,e)}},t.pause=function(){this.checkBufferTimeout_&&(Ea.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)},t.paused=function(){return null===this.checkBufferTimeout_},t.resetEverything=function(e){this.ended_=!1,this.appendInitSegment_={audio:!0,video:!0},this.resetLoader(),this.remove(0,1/0,e),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearAllMp4Captions"})},t.resetLoader=function(){this.fetchAtBuffer_=!1,this.resyncLoader()},t.resyncLoader=function(){this.transmuxer_&&md(this.transmuxer_),this.mediaIndex=null,this.syncPoint_=null,this.isPendingTimestampOffset_=!1,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.abort(),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})},t.remove=function(e,t,i){if(void 0===i&&(i=function(){}),t===1/0&&(t=this.duration_()),this.sourceUpdater_&&this.startingMediaInfo_){var n=1,r=function(){0===--n&&i()};for(var a in this.audioDisabled_||(n++,this.sourceUpdater_.removeAudio(e,t,r)),"main"===this.loaderType_&&(this.gopBuffer_=function(e,t,i,n){for(var r=Math.ceil((t-n)*$u),a=Math.ceil((i-n)*$u),s=e.slice(),o=e.length;o--&&!(e[o].pts<=a););if(-1===o)return s;for(var u=o+1;u--&&!(e[u].pts<=r););return u=Math.max(u,0),s.splice(u,o-u+1),s}(this.gopBuffer_,e,t,this.timeMapping_),n++,this.sourceUpdater_.removeVideo(e,t,r)),this.inbandTextTracks_)Vc(e,t,this.inbandTextTracks_[a]);Vc(e,t,this.segmentMetadataTrack_),r()}else this.logger_("skipping remove because no source updater or starting media info")},t.monitorBuffer_=function(){this.checkBufferTimeout_&&Ea.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=Ea.setTimeout(this.monitorBufferTick_.bind(this),1)},t.monitorBufferTick_=function(){"READY"===this.state&&this.fillBuffer_(),this.checkBufferTimeout_&&Ea.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=Ea.setTimeout(this.monitorBufferTick_.bind(this),500)},t.fillBuffer_=function(){if(!this.sourceUpdater_.updating()){this.syncPoint_||(this.syncPoint_=this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_()));var e=this.buffered_(),t=this.checkBuffer_(e,this.playlist_,this.mediaIndex,this.hasPlayed_(),this.currentTime_(),this.syncPoint_);t&&(t.timestampOffset=Wc({segmentTimeline:t.timeline,currentTimeline:this.currentTimeline_,startOfSegment:t.startOfSegment,buffered:e,overrideCheck:this.isPendingTimestampOffset_}),this.isPendingTimestampOffset_=!1,"number"==typeof t.timestampOffset&&this.timelineChangeController_.pendingTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:t.timeline}),this.loadSegment_(t))}},t.isEndOfStream_=function(e,t){if(void 0===e&&(e=this.mediaIndex),void 0===t&&(t=this.playlist_),!t||!this.mediaSource_)return!1;var i=e+1===t.segments.length;return t.endList&&"open"===this.mediaSource_.readyState&&i},t.checkBuffer_=function(e,t,i,n,r,a){var s=0;e.length&&(s=e.end(e.length-1));var o=Math.max(0,s-r);if(!t.segments.length)return null;if(o>=this.goalBufferLength_())return null;if(!n&&1<=o)return null;var u,l=null,c=!1;if(null===a)l=this.getSyncSegmentCandidate_(t),c=!0;else if(null!==i){var d=t.segments[i];u=d&&d.end?d.end:s,l=i+1}else if(this.fetchAtBuffer_){var h=sd.getMediaInfoForTime(t,s,a.segmentIndex,a.time);l=h.mediaIndex,u=h.startTime}else{var p=sd.getMediaInfoForTime(t,r,a.segmentIndex,a.time);l=p.mediaIndex,u=p.startTime}var f=this.generateSegmentInfo_(t,l,u,c);return!f||this.mediaSource_&&this.playlist_&&f.mediaIndex===this.playlist_.segments.length-1&&"ended"===this.mediaSource_.readyState&&!this.seeking_()?void 0:(this.logger_("checkBuffer_ returning "+f.uri,{segmentInfo:f,playlist:t,currentMediaIndex:i,nextMediaIndex:l,startOfSegment:u,isSyncRequest:c}),f)},t.getSyncSegmentCandidate_=function(e){var t=this;if(-1===this.currentTimeline_)return 0;var i=e.segments.map(function(e,t){return{timeline:e.timeline,segmentIndex:t}}).filter(function(e){return e.timeline===t.currentTimeline_});return i.length?i[Math.min(i.length-1,1)].segmentIndex:Math.max(e.segments.length-1,0)},t.generateSegmentInfo_=function(e,t,i,n){if(t<0||t>=e.segments.length)return null;var r,a,s=e.segments[t],o=this.sourceUpdater_.audioBuffered(),u=this.sourceUpdater_.videoBuffered();return o.length&&(r=o.end(o.length-1)-this.sourceUpdater_.audioTimestampOffset()),u.length&&(a=function(e,t,i){if("undefined"==typeof t||null===t||!e.length)return[];var n,r=Math.ceil((t-i+3)*$u);for(n=0;n<e.length&&!(e[n].pts>r);n++);return e.slice(n)}(this.gopBuffer_,this.currentTime_()-this.sourceUpdater_.videoTimestampOffset(),this.timeMapping_)),{requestId:"segment-loader-"+Math.random(),uri:s.resolvedUri,mediaIndex:t,isSyncRequest:n,startOfSegment:i,playlist:e,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:s.timeline,duration:s.duration,segment:s,byteLength:0,transmuxer:this.transmuxer_,audioAppendStart:r,gopsToAlignWith:a}},t.earlyAbortWhenNeeded_=function(e){if(!this.vhs_.tech_.paused()&&this.xhrOptions_.timeout&&this.playlist_.attributes.BANDWIDTH&&!(Date.now()-(e.firstBytesReceivedAt||Date.now())<1e3)){var t=this.currentTime_(),i=e.bandwidth,n=this.pendingSegment_.duration,r=sd.estimateSegmentRequestTime(n,i,this.playlist_,e.bytesReceived),a=function(e,t,i){return void 0===i&&(i=1),((e.length?e.end(e.length-1):0)-t)/i}(this.buffered_(),t,this.vhs_.tech_.playbackRate())-1;if(!(r<=a)){var s=function(e){var t=e.master,i=e.currentTime,n=e.bandwidth,r=e.duration,a=e.segmentDuration,s=e.timeUntilRebuffer,o=e.currentTimeline,u=e.syncController,l=t.playlists.filter(function(e){return!sd.isIncompatible(e)}),c=l.filter(sd.isEnabled);c.length||(c=l.filter(function(e){return!sd.isDisabled(e)}));var d=c.filter(sd.hasAttribute.bind(null,"BANDWIDTH")).map(function(e){var t=u.getSyncPoint(e,r,o,i)?1:2;return{playlist:e,rebufferingImpact:sd.estimateSegmentRequestTime(a,n,e)*t-s}}),h=d.filter(function(e){return e.rebufferingImpact<=0});return Nc(h,function(e,t){return Uc(t.playlist,e.playlist)}),h.length?h[0]:(Nc(d,function(e,t){return e.rebufferingImpact-t.rebufferingImpact}),d[0]||null)}({master:this.vhs_.playlists.master,currentTime:t,bandwidth:i,duration:this.duration_(),segmentDuration:n,timeUntilRebuffer:a,currentTimeline:this.currentTimeline_,syncController:this.syncController_});if(s){var o=r-a-s.rebufferingImpact,u=.5;a<=rd&&(u=1),!s.playlist||s.playlist.uri===this.playlist_.uri||o<u||(this.bandwidth=s.playlist.attributes.BANDWIDTH*hd.BANDWIDTH_VARIANCE+1,this.trigger("earlyabort"))}}}},t.handleAbort_=function(){this.mediaRequestsAborted+=1},t.handleProgress_=function(e,t){this.earlyAbortWhenNeeded_(t.stats),this.checkForAbort_(t.requestId)||this.trigger("progress")},t.handleTrackInfo_=function(e,t){this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId)||this.checkForIllegalMediaSwitch(t)||(t=t||{},function(e,t){if(!e&&!t||!e&&t||e&&!t)return!1;if(e===t)return!0;var i=Object.keys(e).sort(),n=Object.keys(t).sort();if(i.length!==n.length)return!1;for(var r=0;r<i.length;r++){var a=i[r];if(a!==n[r])return!1;if(e[a]!==t[a])return!1}return!0}(this.currentMediaInfo_,t)||(this.appendInitSegment_={audio:!0,video:!0},this.startingMediaInfo_=t,this.currentMediaInfo_=t,this.logger_("trackinfo update",t),this.trigger("trackinfo")),this.checkForAbort_(e.requestId)||(this.pendingSegment_.trackInfo=t,this.hasEnoughInfoToAppend_()&&this.processCallQueue_()))},t.handleTimingInfo_=function(e,t,i,n){if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId)){var r=this.pendingSegment_,a=Hc(t);r[a]=r[a]||{},r[a][i]=n,this.logger_("timinginfo: "+t+" - "+i+" - "+n),this.hasEnoughInfoToAppend_()&&this.processCallQueue_()}},t.handleCaptions_=function(e,t){var s=this;if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId))if(0!==t.length)if(this.pendingSegment_.hasAppendedData_){var o=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset(),u={};t.forEach(function(e){u[e.stream]=u[e.stream]||{startTime:1/0,captions:[],endTime:0};var t=u[e.stream];t.startTime=Math.min(t.startTime,e.startTime+o),t.endTime=Math.max(t.endTime,e.endTime+o),t.captions.push(e)}),Object.keys(u).forEach(function(e){var t=u[e],i=t.startTime,n=t.endTime,r=t.captions,a=s.inbandTextTracks_;s.logger_("adding cues from "+i+" -> "+n+" for "+e),function(e,t,i){if(!e[i]){t.trigger({type:"usage",name:"vhs-608"}),t.trigger({type:"usage",name:"hls-608"});var n=t.textTracks().getTrackById(i);e[i]=n||t.addRemoteTextTrack({kind:"captions",id:i,label:i},!1).track}}(a,s.vhs_.tech_,e),Vc(i,n,a[e]),function(e){var i=e.inbandTextTracks,t=e.captionArray,n=e.timestampOffset;if(t){var r=Ea.WebKitDataCue||Ea.VTTCue;t.forEach(function(e){var t=e.stream;i[t].addCue(new r(e.startTime+n,e.endTime+n,e.text))})}}({captionArray:r,inbandTextTracks:a,timestampOffset:o})}),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}else this.metadataQueue_.caption.push(this.handleCaptions_.bind(this,e,t));else this.logger_("SegmentLoader received no captions from a caption event")},t.handleId3_=function(e,t,i){if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId))if(this.pendingSegment_.hasAppendedData_){var n=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset();!function(e,t,i){e.metadataTrack_||(e.metadataTrack_=i.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,e.metadataTrack_.inBandMetadataTrackDispatchType=t)}(this.inbandTextTracks_,i,this.vhs_.tech_),jc({inbandTextTracks:this.inbandTextTracks_,metadataArray:t,timestampOffset:n,videoDuration:this.duration_()})}else this.metadataQueue_.id3.push(this.handleId3_.bind(this,e,t,i))},t.processMetadataQueue_=function(){this.metadataQueue_.id3.forEach(function(e){return e()}),this.metadataQueue_.caption.forEach(function(e){return e()}),this.metadataQueue_.id3=[],this.metadataQueue_.caption=[]},t.processCallQueue_=function(){var e=this.callQueue_;this.callQueue_=[],e.forEach(function(e){return e()})},t.processLoadQueue_=function(){var e=this.loadQueue_;this.loadQueue_=[],e.forEach(function(e){return e()})},t.hasEnoughInfoToLoad_=function(){if("audio"!==this.loaderType_)return!0;var e=this.pendingSegment_;return!!e&&(!this.currentMediaInfo_||!zc({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))},t.hasEnoughInfoToAppend_=function(){if(!this.sourceUpdater_.ready())return!1;if(this.waitingOnRemove_||this.quotaExceededErrorRetryTimeout_)return!1;var e=this.pendingSegment_;if(!e||!e.trackInfo)return!1;if(!this.handlePartialData_){var t=this.currentMediaInfo_,i=t.hasAudio,n=t.hasVideo,r=t.isMuxed;if(n&&!e.videoTimingInfo)return!1;if(i&&!this.audioDisabled_&&!r&&!e.audioTimingInfo)return!1}return!zc({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_})},t.handleData_=function(e,t){if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId))if(!this.callQueue_.length&&this.hasEnoughInfoToAppend_()){var i=this.pendingSegment_;if(this.setTimeMapping_(i.timeline),this.updateMediaSecondsLoaded_(i.segment),"closed"!==this.mediaSource_.readyState){if(e.map&&(e.map=this.initSegmentForMap(e.map,!0),i.segment.map=e.map),e.key&&this.segmentKey(e.key,!0),i.isFmp4=e.isFmp4,i.timingInfo=i.timingInfo||{},i.isFmp4)this.trigger("fmp4"),i.timingInfo.start=i[Hc(t.type)].start;else{var n,r="main"===this.loaderType_&&this.currentMediaInfo_.hasVideo;r&&(n=this.handlePartialData_?t.videoFramePtsTime:i.videoTimingInfo.start),i.timingInfo.start=this.trueSegmentStart_({currentStart:i.timingInfo.start,playlist:i.playlist,mediaIndex:i.mediaIndex,currentVideoTimestampOffset:this.sourceUpdater_.videoTimestampOffset(),useVideoTimingInfo:r,firstVideoFrameTimeForData:n,videoTimingInfo:i.videoTimingInfo,audioTimingInfo:i.audioTimingInfo})}this.updateAppendInitSegmentStatus(i,t.type),this.updateSourceBufferTimestampOffset_(i),i.hasAppendedData_=!0,this.processMetadataQueue_(),this.appendData_(i,t)}}else this.callQueue_.push(this.handleData_.bind(this,e,t))},t.updateAppendInitSegmentStatus=function(e,t){"main"!==this.loaderType_||"number"!=typeof e.timestampOffset||e.changedTimestampOffset||(this.appendInitSegment_={audio:!0,video:!0}),this.playlistOfLastInitSegment_[t]!==e.playlist&&(this.appendInitSegment_[t]=!0)},t.getInitSegmentAndUpdateState_=function(e){var t=e.type,i=e.initSegment,n=e.map,r=e.playlist;if(n){var a=rc(n);if(this.activeInitSegmentId_===a)return null;i=this.initSegmentForMap(n,!0).bytes,this.activeInitSegmentId_=a}return i&&this.appendInitSegment_[t]?(this.playlistOfLastInitSegment_[t]=r,this.appendInitSegment_[t]=!!n,this.activeInitSegmentId_=null,i):null},t.handleQuotaExceededError_=function(e,t){var i=this,n=e.segmentInfo,r=e.type,a=e.bytes,s=this.sourceUpdater_.audioBuffered(),o=this.sourceUpdater_.videoBuffered();1<s.length&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the audio buffer: "+Vl(s).join(", ")),1<o.length&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the video buffer: "+Vl(o).join(", "));var u=s.length?s.start(0):0,l=s.length?s.end(s.length-1):0,c=o.length?o.start(0):0,d=o.length?o.end(o.length-1):0;if(l-u<=1&&d-c<=1)return this.logger_("On QUOTA_EXCEEDED_ERR, single segment too large to append to buffer, triggering an error. Appended byte length: "+a.byteLength+", audio buffer: "+Vl(s).join(", ")+", video buffer: "+Vl(o).join(", ")+", "),this.error({message:"Quota exceeded error with append of a single segment of content",blacklistDuration:1/0}),void this.trigger("error");this.waitingOnRemove_=!0,this.callQueue_.push(this.appendToSourceBuffer_.bind(this,{segmentInfo:n,type:r,bytes:a}));var h=this.currentTime_()-1;this.logger_("On QUOTA_EXCEEDED_ERR, removing video from 0 to "+h),this.sourceUpdater_.removeVideo(0,h,function(){i.logger_("On QUOTA_EXCEEDED_ERR, removing audio from 0 to "+h),i.sourceUpdater_.removeAudio(0,h,function(){i.logger_("On QUOTA_EXCEEDED_ERR, retrying append in 1s"),i.waitingOnRemove_=!1,i.quotaExceededErrorRetryTimeout_=Ea.setTimeout(function(){i.logger_("On QUOTA_EXCEEDED_ERR, re-processing call queue"),i.quotaExceededErrorRetryTimeout_=null,i.processCallQueue_()},1e3)})})},t.handleAppendError_=function(e,t){var i=e.segmentInfo,n=e.type,r=e.bytes;t&&(22!==t.code?(this.logger_("Received non QUOTA_EXCEEDED_ERR on append",t),this.error(n+" append of "+r.length+"b failed for segment #"+i.mediaIndex+" in playlist "+i.playlist.id),this.trigger("appenderror")):this.handleQuotaExceededError_({segmentInfo:i,type:n,bytes:r}))},t.appendToSourceBuffer_=function(e){var t=e.segmentInfo,i=e.type,n=e.initSegment,r=e.data,a=e.bytes;if(!a){var s=[r],o=r.byteLength;n&&(s.unshift(n),o+=n.byteLength),a=function(e){var t,i=0;return e.bytes&&(t=new Uint8Array(e.bytes),e.segments.forEach(function(e){t.set(e,i),i+=e.byteLength})),t}({bytes:o,segments:s})}this.sourceUpdater_.appendBuffer({segmentInfo:t,type:i,bytes:a},this.handleAppendError_.bind(this,{segmentInfo:t,type:i,bytes:a}))},t.handleSegmentTimingInfo_=function(e,t,i){if(this.pendingSegment_&&t===this.pendingSegment_.requestId){var n=this.pendingSegment_.segment,r=e+"TimingInfo";n[r]||(n[r]={}),n[r].transmuxerPrependedSeconds=i.prependedContentDuration||0,n[r].transmuxedPresentationStart=i.start.presentation,n[r].transmuxedDecodeStart=i.start.decode,n[r].transmuxedPresentationEnd=i.end.presentation,n[r].transmuxedDecodeEnd=i.end.decode,n[r].baseMediaDecodeTime=i.baseMediaDecodeTime}},t.appendData_=function(e,t){var i=t.type,n=t.data;if(n&&n.byteLength&&("audio"!==i||!this.audioDisabled_)){var r=this.getInitSegmentAndUpdateState_({type:i,initSegment:t.initSegment,playlist:e.playlist,map:e.isFmp4?e.segment.map:null});this.appendToSourceBuffer_({segmentInfo:e,type:i,initSegment:r,data:n})}},t.loadSegment_=function(i){var n=this;this.state="WAITING",this.pendingSegment_=i,this.trimBackBuffer_(i),"number"==typeof i.timestampOffset&&this.transmuxer_&&this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.hasEnoughInfoToLoad_()?this.updateTransmuxerAndRequestSegment_(i):this.loadQueue_.push(function(){var e=n.buffered_();"number"==typeof i.timestampOffset&&(i.timestampOffset=Wc({segmentTimeline:i.timeline,currentTimeline:n.currentTimeline_,startOfSegment:i.startOfSegment,buffered:e,overrideCheck:!0})),delete i.audioAppendStart;var t=n.sourceUpdater_.audioBuffered();t.length&&(i.audioAppendStart=t.end(t.length-1)-n.sourceUpdater_.audioTimestampOffset()),n.updateTransmuxerAndRequestSegment_(i)})},t.updateTransmuxerAndRequestSegment_=function(e){var t=this;this.shouldUpdateTransmuxerTimestampOffset_(e.timestampOffset)&&(this.gopBuffer_.length=0,e.gopsToAlignWith=[],this.timeMapping_=0,this.transmuxer_.postMessage({action:"reset"}),this.transmuxer_.postMessage({action:"setTimestampOffset",timestampOffset:e.timestampOffset}));var i=this.createSimplifiedSegmentObj_(e),n=this.isEndOfStream_(e.mediaIndex,e.playlist),r=null!==this.mediaIndex,a=e.timeline!==this.currentTimeline_&&0<e.timeline,s=n||r&&a;e.abortRequests=Ac({xhr:this.vhs_.xhr,xhrOptions:this.xhrOptions_,decryptionWorker:this.decrypter_,segment:i,handlePartialData:this.handlePartialData_,abortFn:this.handleAbort_.bind(this),progressFn:this.handleProgress_.bind(this),trackInfoFn:this.handleTrackInfo_.bind(this),timingInfoFn:this.handleTimingInfo_.bind(this),videoSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"video",e.requestId),audioSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"audio",e.requestId),captionsFn:this.handleCaptions_.bind(this),isEndOfTimeline:s,endedTimelineFn:function(){t.logger_("received endedtimeline callback")},id3Fn:this.handleId3_.bind(this),dataFn:this.handleData_.bind(this),doneFn:this.segmentRequestFinished_.bind(this)})},t.trimBackBuffer_=function(e){var t=function(e,t,i){var n=t-hd.BACK_BUFFER_LENGTH;e.length&&(n=Math.max(n,e.start(0)));var r=t-i;return Math.min(r,n)}(this.seekable_(),this.currentTime_(),this.playlist_.targetDuration||10);0<t&&this.remove(0,t)},t.createSimplifiedSegmentObj_=function(e){var t=e.segment,i={resolvedUri:t.resolvedUri,byterange:t.byterange,requestId:e.requestId,transmuxer:e.transmuxer,audioAppendStart:e.audioAppendStart,gopsToAlignWith:e.gopsToAlignWith},n=e.playlist.segments[e.mediaIndex-1];if(n&&n.timeline===t.timeline&&(n.videoTimingInfo?i.baseStartTime=n.videoTimingInfo.transmuxedDecodeEnd:n.audioTimingInfo&&(i.baseStartTime=n.audioTimingInfo.transmuxedDecodeEnd)),t.key){var r=t.key.iv||new Uint32Array([0,0,0,e.mediaIndex+e.playlist.mediaSequence]);i.key=this.segmentKey(t.key),i.key.iv=r}return t.map&&(i.map=this.initSegmentForMap(t.map)),i},t.saveTransferStats_=function(e){this.mediaRequests+=1,e&&(this.mediaBytesTransferred+=e.bytesReceived,this.mediaTransferDuration+=e.roundTripTime)},t.saveBandwidthRelatedStats_=function(e,t){this.pendingSegment_.byteLength=t.bytesReceived,e<1/60?this.logger_("Ignoring segment's bandwidth because its duration of "+e+" is less than the min to record "+1/60):(this.bandwidth=t.bandwidth,this.roundTrip=t.roundTripTime)},t.handleTimeout_=function(){this.mediaRequestsTimedout+=1,this.bandwidth=1,this.roundTrip=NaN,this.trigger("bandwidthupdate")},t.segmentRequestFinished_=function(e,t,i){if(this.callQueue_.length)this.callQueue_.push(this.segmentRequestFinished_.bind(this,e,t,i));else if(this.saveTransferStats_(t.stats),this.pendingSegment_&&t.requestId===this.pendingSegment_.requestId){if(e){if(this.pendingSegment_=null,this.state="READY",e.code===_d)return;return this.pause(),e.code===yd?void this.handleTimeout_():(this.mediaRequestsErrored+=1,this.error(e),void this.trigger("error"))}var n=this.pendingSegment_;this.saveBandwidthRelatedStats_(n.duration,t.stats),n.endOfAllRequests=t.endOfAllRequests,i.gopInfo&&(this.gopBuffer_=function(e,t,i){if(!t.length)return e;if(i)return t.slice();for(var n=t[0].pts,r=0;r<e.length&&!(e[r].pts>=n);r++);return e.slice(0,r).concat(t)}(this.gopBuffer_,i.gopInfo,this.safeAppend_)),this.state="APPENDING",this.trigger("appending"),this.waitForAppendsToComplete_(n)}},t.setTimeMapping_=function(e){var t=this.syncController_.mappingForTimeline(e);null!==t&&(this.timeMapping_=t)},t.updateMediaSecondsLoaded_=function(e){"number"==typeof e.start&&"number"==typeof e.end?this.mediaSecondsLoaded+=e.end-e.start:this.mediaSecondsLoaded+=e.duration},t.shouldUpdateTransmuxerTimestampOffset_=function(e){return null!==e&&("main"===this.loaderType_&&e!==this.sourceUpdater_.videoTimestampOffset()||!this.audioDisabled_&&e!==this.sourceUpdater_.audioTimestampOffset())},t.trueSegmentStart_=function(e){var t=e.currentStart,i=e.playlist,n=e.mediaIndex,r=e.firstVideoFrameTimeForData,a=e.currentVideoTimestampOffset,s=e.useVideoTimingInfo,o=e.videoTimingInfo,u=e.audioTimingInfo;if("undefined"!=typeof t)return t;if(!s)return u.start;var l=i.segments[n-1];return 0!==n&&l&&"undefined"!=typeof l.start&&l.end===r+a?o.start:r},t.waitForAppendsToComplete_=function(e){if(!this.currentMediaInfo_)return this.error({message:"No starting media returned, likely due to an unsupported media format.",blacklistDuration:1/0}),void this.trigger("error");var t=this.currentMediaInfo_,i=t.hasAudio,n=t.hasVideo,r=t.isMuxed,a="main"===this.loaderType_&&n,s=!this.audioDisabled_&&i&&!r;if(e.waitingOnAppends=0,!e.hasAppendedData_)return e.timingInfo||"number"!=typeof e.timestampOffset||(this.isPendingTimestampOffset_=!0),e.timingInfo={start:0},e.waitingOnAppends++,this.isPendingTimestampOffset_||(this.updateSourceBufferTimestampOffset_(e),this.processMetadataQueue_()),void this.checkAppendsDone_(e);a&&e.waitingOnAppends++,s&&e.waitingOnAppends++,a&&this.sourceUpdater_.videoQueueCallback(this.checkAppendsDone_.bind(this,e)),s&&this.sourceUpdater_.audioQueueCallback(this.checkAppendsDone_.bind(this,e))},t.checkAppendsDone_=function(e){this.checkForAbort_(e.requestId)||(e.waitingOnAppends--,0===e.waitingOnAppends&&this.handleAppendsDone_())},t.checkForIllegalMediaSwitch=function(e){var t=function(e,t,i){return"main"===e&&t&&i?i.hasAudio||i.hasVideo?t.hasVideo&&!i.hasVideo?"Only audio found in segment when we expected video. We can't switch to audio only from a stream that had video. To get rid of this message, please add codec information to the manifest.":!t.hasVideo&&i.hasVideo?"Video found in segment when we expected only audio. We can't switch to a stream with video from an audio only stream. To get rid of this message, please add codec information to the manifest.":null:"Neither audio nor video found in segment.":null}(this.loaderType_,this.currentMediaInfo_,e);return!!t&&(this.error({message:t,blacklistDuration:1/0}),this.trigger("error"),!0)},t.updateSourceBufferTimestampOffset_=function(e){if(null!==e.timestampOffset&&"number"==typeof e.timingInfo.start&&!e.changedTimestampOffset&&"main"===this.loaderType_){var t=!1;e.timestampOffset-=e.timingInfo.start,e.changedTimestampOffset=!0,e.timestampOffset!==this.sourceUpdater_.videoTimestampOffset()&&(this.sourceUpdater_.videoTimestampOffset(e.timestampOffset),t=!0),e.timestampOffset!==this.sourceUpdater_.audioTimestampOffset()&&(this.sourceUpdater_.audioTimestampOffset(e.timestampOffset),t=!0),t&&this.trigger("timestampoffset")}},t.updateTimingInfoEnd_=function(e){e.timingInfo=e.timingInfo||{};var t="main"===this.loaderType_&&this.currentMediaInfo_.hasVideo&&e.videoTimingInfo?e.videoTimingInfo:e.audioTimingInfo;t&&(e.timingInfo.end="number"==typeof t.end?t.end:t.start+e.duration)},t.handleAppendsDone_=function(){if(this.pendingSegment_&&this.trigger("appendsdone"),!this.pendingSegment_)return this.state="READY",void(this.paused()||this.monitorBuffer_());var e=this.pendingSegment_;this.updateTimingInfoEnd_(e),this.shouldSaveSegmentTimingInfo_&&this.syncController_.saveSegmentTimingInfo({segmentInfo:e,shouldSaveTimelineMapping:"main"===this.loaderType_}),this.logger_(function(e){var t=e.segment,i=t.start,n=t.end,r=e.playlist,a=r.mediaSequence,s=r.id,o=r.segments,u=void 0===o?[]:o,l=e.mediaIndex,c=e.timeline;return["appending ["+l+"] of ["+a+", "+(a+u.length)+"] from playlist ["+s+"]","["+i+" => "+n+"] in timeline ["+c+"]"].join(" ")}(e));var t=Xc(e,this.sourceType_);if(t&&("warn"===t.severity?ga.log.warn(t.message):this.logger_(t.message)),this.recordThroughput_(e),this.pendingSegment_=null,this.state="READY",e.isSyncRequest)this.trigger("syncinfoupdate");else{this.addSegmentMetadataCue_(e),this.fetchAtBuffer_=!0,this.currentTimeline_!==e.timeline&&(this.timelineChangeController_.lastTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline}),"main"!==this.loaderType_||this.audioDisabled_||this.timelineChangeController_.lastTimelineChange({type:"audio",from:this.currentTimeline_,to:e.timeline})),this.currentTimeline_=e.timeline,this.trigger("syncinfoupdate");var i=e.segment;if(i.end&&this.currentTime_()-i.end>3*e.playlist.targetDuration)this.resetEverything();else null!==this.mediaIndex&&this.trigger("bandwidthupdate"),this.trigger("progress"),this.mediaIndex=e.mediaIndex,this.isEndOfStream_(e.mediaIndex,e.playlist)&&this.endOfStream(),this.trigger("appended"),this.paused()||this.monitorBuffer_()}},t.recordThroughput_=function(e){if(e.duration<1/60)this.logger_("Ignoring segment's throughput because its duration of "+e.duration+" is less than the min to record "+1/60);else{var t=this.throughput.rate,i=Date.now()-e.endOfAllRequests+1,n=Math.floor(e.byteLength/i*8*1e3);this.throughput.rate+=(n-t)/++this.throughput.count}},t.addSegmentMetadataCue_=function(e){if(this.segmentMetadataTrack_){var t=e.segment,i=t.start,n=t.end;if(qc(i)&&qc(n)){Vc(i,n,this.segmentMetadataTrack_);var r=Ea.WebKitDataCue||Ea.VTTCue,a={custom:t.custom,dateTimeObject:t.dateTimeObject,dateTimeString:t.dateTimeString,bandwidth:e.playlist.attributes.BANDWIDTH,resolution:e.playlist.attributes.RESOLUTION,codecs:e.playlist.attributes.CODECS,byteLength:e.byteLength,uri:e.uri,timeline:e.timeline,playlist:e.playlist.id,start:i,end:n},s=new r(i,n,JSON.stringify(a));s.value=a,this.segmentMetadataTrack_.addCue(s)}}},e}(ga.EventTarget);function kd(){}function wd(e){return"string"!=typeof e?e:e.replace(/./,function(e){return e.toUpperCase()})}function Ed(e,t){var i=t[e+"Buffer"];return i&&i.updating||t.queuePending[e]}function Cd(e,t){if(0!==t.queue.length){var i=0,n=t.queue[i];if("mediaSource"!==n.type){if("mediaSource"!==e&&t.ready()&&"closed"!==t.mediaSource.readyState&&!Ed(e,t)){if(n.type!==e){if(null===(i=function(e,t){for(var i=0;i<t.length;i++){var n=t[i];if("mediaSource"===n.type)return null;if(n.type===e)return i}return null}(e,t.queue)))return;n=t.queue[i]}return t.queue.splice(i,1),(t.queuePending[e]=n).action(e,t),n.doneFn?void 0:(t.queuePending[e]=null,void Cd(e,t))}}else t.updating()||"closed"===t.mediaSource.readyState||(t.queue.shift(),n.action(t),n.doneFn&&n.doneFn(),Cd("audio",t),Cd("video",t))}}function Id(e,t){var i=t[e+"Buffer"],n=wd(e);i&&(i.removeEventListener("updateend",t["on"+n+"UpdateEnd_"]),i.removeEventListener("error",t["on"+n+"Error_"]),t.codecs[e]=null,t[e+"Buffer"]=null)}function xd(e,t){return e&&t&&-1!==Array.prototype.indexOf.call(e.sourceBuffers,t)}function Ad(e){var t=e.type,i=e.sourceUpdater,n=e.action,r=e.doneFn,a=e.name;i.queue.push({type:t,action:n,doneFn:r,name:a}),Cd(t,i)}function Pd(i,n){return function(e){if(n.queuePending[i]){var t=n.queuePending[i].doneFn;n.queuePending[i]=null,t&&t(n[i+"Error_"])}Cd(i,n)}}function Ld(e){return decodeURIComponent(escape(String.fromCharCode.apply(null,e)))}function Od(e,t){for(var i=e.cues,n=0;n<i.length;n++){var r=i[n];if(t>=r.adStartTime&&t<=r.adEndTime)return r}return null}function Dd(e,t){e.abort(),e.pause(),t&&t.activePlaylistLoader&&(t.activePlaylistLoader.pause(),t.activePlaylistLoader=null)}function Rd(e,t){(t.activePlaylistLoader=e).load()}function Md(t){["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(function(e){ah[e](e,t)});var i=t.mediaTypes,e=t.masterPlaylistLoader,n=t.tech,r=t.vhs;["AUDIO","SUBTITLES"].forEach(function(e){i[e].activeGroup=function(a,s){return function(t){var e=s.masterPlaylistLoader,i=s.mediaTypes[a].groups,n=e.media();if(!n)return null;var r=null;return n.attributes[a]&&(r=i[n.attributes[a]]),r=r||i.main,"undefined"==typeof t?r:null===t?null:r.filter(function(e){return e.id===t.id})[0]||null}}(e,t),i[e].activeTrack=sh[e](e,t),i[e].onGroupChanged=function(o,u){return function(){var e=u.segmentLoaders,t=e[o],i=e.main,n=u.mediaTypes[o],r=n.activeTrack(),a=n.activeGroup(r),s=n.activePlaylistLoader;Dd(t,n),a&&(a.playlistLoader?(t.resyncLoader(),Rd(a.playlistLoader,n)):s&&i.resetEverything())}}(e,t),i[e].onGroupChanging=function(t,i){return function(){var e=i.segmentLoaders[t];e.abort(),e.pause()}}(e,t),i[e].onTrackChanged=function(o,u){return function(){var e=u.segmentLoaders,t=e[o],i=e.main,n=u.mediaTypes[o],r=n.activeTrack(),a=n.activeGroup(r),s=n.activePlaylistLoader;if(Dd(t,n),a){if("AUDIO"===o){if(!a.playlistLoader)return i.setAudio(!0),void i.resetEverything();t.setAudio(!0),i.setAudio(!1)}s!==a.playlistLoader&&(t.track&&t.track(r),t.resetEverything()),Rd(a.playlistLoader,n)}}}(e,t)});var a=i.AUDIO.activeGroup();if(a){var s=(a.filter(function(e){return e.default})[0]||a[0]).id;i.AUDIO.tracks[s].enabled=!0,i.AUDIO.onTrackChanged()}function o(){i.AUDIO.onTrackChanged(),n.trigger({type:"usage",name:"vhs-audio-change"}),n.trigger({type:"usage",name:"hls-audio-change"})}for(var u in e.on("mediachange",function(){["AUDIO","SUBTITLES"].forEach(function(e){return i[e].onGroupChanged()})}),e.on("mediachanging",function(){["AUDIO","SUBTITLES"].forEach(function(e){return i[e].onGroupChanging()})}),n.audioTracks().addEventListener("change",o),n.remoteTextTracks().addEventListener("change",i.SUBTITLES.onTrackChanged),r.on("dispose",function(){n.audioTracks().removeEventListener("change",o),n.remoteTextTracks().removeEventListener("change",i.SUBTITLES.onTrackChanged)}),n.clearTracks("audio"),i.AUDIO.tracks)n.audioTracks().addTrack(i.AUDIO.tracks[u])}function Nd(e,t,i){var n=e.masterPlaylistController_,r=n[(e.options_.smoothQualityChange?"smooth":"fast")+"QualityChange_"].bind(n);if(t.attributes.RESOLUTION){var a=t.attributes.RESOLUTION;this.width=a.width,this.height=a.height}this.bandwidth=t.attributes.BANDWIDTH,this.codecs=Dc(n.master(),t),this.playlist=t,this.id=i,this.enabled=function(r,a,s){return function(e){var t=r.master.playlists[a],i=Kl(t),n=Ql(t);return"undefined"==typeof e?n:(e?delete t.disabled:t.disabled=!0,e===n||i||(s(),e?r.trigger("renditionenabled"):r.trigger("renditiondisabled")),e)}}(e.playlists,t.id,r)}function Ud(e){!function t(i,e){var n=0,r=0,a=ga.mergeOptions(dh,e);i.ready(function(){i.trigger({type:"usage",name:"vhs-error-reload-initialized"}),i.trigger({type:"usage",name:"hls-error-reload-initialized"})});function s(){r&&i.currentTime(r)}function o(e){null!=e&&(r=i.duration()!==1/0&&i.currentTime()||0,i.one("loadedmetadata",s),i.src(e),i.trigger({type:"usage",name:"vhs-error-reload"}),i.trigger({type:"usage",name:"hls-error-reload"}),i.play())}function u(){return Date.now()-n<1e3*a.errorInterval?(i.trigger({type:"usage",name:"vhs-error-reload-canceled"}),void i.trigger({type:"usage",name:"hls-error-reload-canceled"})):a.getSource&&"function"==typeof a.getSource?(n=Date.now(),a.getSource.call(i,o)):void ga.log.error("ERROR: reloadSourceOnError - The option getSource must be a function!")}function l(){i.off("loadedmetadata",s),i.off("error",u),i.off("dispose",l)}i.on("error",u),i.on("dispose",l),i.reloadSourceOnError=function(e){l(),t(i,e)}}(this,e)}var Bd,Fd=["video","audio"],jd=function(n,r,a){return function(t,i){var e=i[t+"Buffer"];if(xd(i.mediaSource,e)){i.logger_("Appending segment "+r.mediaIndex+"'s "+n.length+" bytes to "+t+"Buffer");try{e.appendBuffer(n)}catch(e){i.logger_("Error with code "+e.code+" "+(22===e.code?"(QUOTA_EXCEEDED_ERR) ":"")+"when appending segment "+r.mediaIndex+" to "+t+"Buffer"),i.queuePending[t]=null,a(e)}}}},Vd=function(n,r){return function(e,t){var i=t[e+"Buffer"];xd(t.mediaSource,i)&&(t.logger_("Removing "+n+" to "+r+" from "+e+"Buffer"),i.remove(n,r))}},qd=function(n){return function(e,t){var i=t[e+"Buffer"];xd(t.mediaSource,i)&&(t.logger_("Setting "+e+"timestampOffset to "+n),i.timestampOffset=n)}},Hd=function(i){return function(e,t){i()}},Wd=function(t){return function(e){if("open"===e.mediaSource.readyState){e.logger_("Calling mediaSource endOfStream("+(t||"")+")");try{e.mediaSource.endOfStream(t)}catch(e){ga.log.warn("Failed to call media source endOfStream",e)}}}},zd=function(t){return function(e){e.logger_("Setting mediaSource duration to "+t);try{e.mediaSource.duration=t}catch(e){ga.log.warn("Failed to set media source duration",e)}}},Gd=function(){return function(t,e){if("open"===e.mediaSource.readyState){var i=e[t+"Buffer"];if(xd(e.mediaSource,i)){e.logger_("calling abort on "+t+"Buffer");try{i.abort()}catch(e){ga.log.warn("Failed to abort on "+t+"Buffer",e)}}}}},Xd=function(r,a){return function(e){var t=wd(r),i=kl(a);e.logger_("Adding "+r+"Buffer with codec "+a+" to mediaSource");var n=e.mediaSource.addSourceBuffer(i);n.addEventListener("updateend",e["on"+t+"UpdateEnd_"]),n.addEventListener("error",e["on"+t+"Error_"]),e.codecs[r]=a,e[r+"Buffer"]=n}},Kd=function(i){return function(e){var t=e[i+"Buffer"];if(Id(i,e),xd(e.mediaSource,t)){e.logger_("Removing "+i+"Buffer with codec "+e.codecs[i]+" from mediaSource");try{e.mediaSource.removeSourceBuffer(t)}catch(e){ga.log.warn("Failed to removeSourceBuffer "+i+"Buffer",e)}}}},Qd=function(r){return function(e,t){var i=t[e+"Buffer"],n=kl(r);xd(t.mediaSource,i)&&t.codecs[e]!==r&&(t.logger_("changing "+e+"Buffer codec from "+t.codecs[e]+" to "+r),i.changeType(n),t.codecs[e]=r)}},Yd=function(i){function e(e){var t;return(t=i.call(this)||this).mediaSource=e,t.sourceopenListener_=function(){return Cd("mediaSource",_a(t))},t.mediaSource.addEventListener("sourceopen",t.sourceopenListener_),t.logger_=Il("SourceUpdater"),t.audioTimestampOffset_=0,t.videoTimestampOffset_=0,t.queue=[],t.queuePending={audio:null,video:null},t.delayedAudioAppendQueue_=[],t.videoAppendQueued_=!1,t.codecs={},t.onVideoUpdateEnd_=Pd("video",_a(t)),t.onAudioUpdateEnd_=Pd("audio",_a(t)),t.onVideoError_=function(e){t.videoError_=e},t.onAudioError_=function(e){t.audioError_=e},t.createdSourceBuffers_=!1,t.initializedEme_=!1,t.triggeredReady_=!1,t}Sa(e,i);var t=e.prototype;return t.initializedEme=function(){this.initializedEme_=!0,this.triggerReady()},t.hasCreatedSourceBuffers=function(){return this.createdSourceBuffers_},t.hasInitializedAnyEme=function(){return this.initializedEme_},t.ready=function(){return this.hasCreatedSourceBuffers()&&this.hasInitializedAnyEme()},t.createSourceBuffers=function(e){this.hasCreatedSourceBuffers()||(this.addOrChangeSourceBuffers(e),this.createdSourceBuffers_=!0,this.trigger("createdsourcebuffers"),this.triggerReady())},t.triggerReady=function(){this.ready()&&!this.triggeredReady_&&(this.triggeredReady_=!0,this.trigger("ready"))},t.addSourceBuffer=function(e,t){Ad({type:"mediaSource",sourceUpdater:this,action:Xd(e,t),name:"addSourceBuffer"})},t.abort=function(e){Ad({type:e,sourceUpdater:this,action:Gd(e),name:"abort"})},t.removeSourceBuffer=function(e){this.canRemoveSourceBuffer()?Ad({type:"mediaSource",sourceUpdater:this,action:Kd(e),name:"removeSourceBuffer"}):ga.log.error("removeSourceBuffer is not supported!")},t.canRemoveSourceBuffer=function(){return!ga.browser.IE_VERSION&&!ga.browser.IS_FIREFOX&&Ea.MediaSource&&Ea.MediaSource.prototype&&"function"==typeof Ea.MediaSource.prototype.removeSourceBuffer},e.canChangeType=function(){return Ea.SourceBuffer&&Ea.SourceBuffer.prototype&&"function"==typeof Ea.SourceBuffer.prototype.changeType},t.canChangeType=function(){return this.constructor.canChangeType()},t.changeType=function(e,t){this.canChangeType()?Ad({type:e,sourceUpdater:this,action:Qd(t),name:"changeType"}):ga.log.error("changeType is not supported!")},t.addOrChangeSourceBuffers=function(i){var n=this;if(!i||"object"!=typeof i||0===Object.keys(i).length)throw new Error("Cannot addOrChangeSourceBuffers to undefined codecs");Object.keys(i).forEach(function(e){var t=i[e];if(!n.hasCreatedSourceBuffers())return n.addSourceBuffer(e,t);n.canChangeType()&&n.changeType(e,t)})},t.appendBuffer=function(e,t){var i=this,n=e.segmentInfo,r=e.type,a=e.bytes;if(this.processedAppend_=!0,"audio"===r&&this.videoBuffer&&!this.videoAppendQueued_)return this.delayedAudioAppendQueue_.push([e,t]),void this.logger_("delayed audio append of "+a.length+" until video append");if(Ad({type:r,sourceUpdater:this,action:jd(a,n||{mediaIndex:-1},t),doneFn:t,name:"appendBuffer"}),"video"===r){if(this.videoAppendQueued_=!0,!this.delayedAudioAppendQueue_.length)return;var s=this.delayedAudioAppendQueue_.slice();this.logger_("queuing delayed audio "+s.length+" appendBuffers"),this.delayedAudioAppendQueue_.length=0,s.forEach(function(e){i.appendBuffer.apply(i,e)})}},t.audioBuffered=function(){return xd(this.mediaSource,this.audioBuffer)&&this.audioBuffer.buffered?this.audioBuffer.buffered:ga.createTimeRange()},t.videoBuffered=function(){return xd(this.mediaSource,this.videoBuffer)&&this.videoBuffer.buffered?this.videoBuffer.buffered:ga.createTimeRange()},t.buffered=function(){var e=xd(this.mediaSource,this.videoBuffer)?this.videoBuffer:null,t=xd(this.mediaSource,this.audioBuffer)?this.audioBuffer:null;return t&&!e?this.audioBuffered():e&&!t?this.videoBuffered():function(e,t){var i=null,n=null,r=0,a=[],s=[];if(!(e&&e.length&&t&&t.length))return ga.createTimeRange();for(var o=e.length;o--;)a.push({time:e.start(o),type:"start"}),a.push({time:e.end(o),type:"end"});for(o=t.length;o--;)a.push({time:t.start(o),type:"start"}),a.push({time:t.end(o),type:"end"});for(a.sort(function(e,t){return e.time-t.time}),o=0;o<a.length;o++)"start"===a[o].type?2===++r&&(i=a[o].time):"end"===a[o].type&&1===--r&&(n=a[o].time),null!==i&&null!==n&&(s.push([i,n]),n=i=null);return ga.createTimeRanges(s)}(this.audioBuffered(),this.videoBuffered())},t.setDuration=function(e,t){void 0===t&&(t=kd),Ad({type:"mediaSource",sourceUpdater:this,action:zd(e),name:"duration",doneFn:t})},t.endOfStream=function(e,t){void 0===e&&(e=null),void 0===t&&(t=kd),"string"!=typeof e&&(e=void 0),Ad({type:"mediaSource",sourceUpdater:this,action:Wd(e),name:"endOfStream",doneFn:t})},t.removeAudio=function(e,t,i){void 0===i&&(i=kd),this.audioBuffered().length&&0!==this.audioBuffered().end(0)?Ad({type:"audio",sourceUpdater:this,action:Vd(e,t),doneFn:i,name:"remove"}):i()},t.removeVideo=function(e,t,i){void 0===i&&(i=kd),this.videoBuffered().length&&0!==this.videoBuffered().end(0)?Ad({type:"video",sourceUpdater:this,action:Vd(e,t),doneFn:i,name:"remove"}):i()},t.updating=function(){return!(!Ed("audio",this)&&!Ed("video",this))},t.audioTimestampOffset=function(e){return"undefined"!=typeof e&&this.audioBuffer&&this.audioTimestampOffset_!==e&&(Ad({type:"audio",sourceUpdater:this,action:qd(e),name:"timestampOffset"}),this.audioTimestampOffset_=e),this.audioTimestampOffset_},t.videoTimestampOffset=function(e){return"undefined"!=typeof e&&this.videoBuffer&&this.videoTimestampOffset!==e&&(Ad({type:"video",sourceUpdater:this,action:qd(e),name:"timestampOffset"}),this.videoTimestampOffset_=e),this.videoTimestampOffset_},t.audioQueueCallback=function(e){this.audioBuffer&&Ad({type:"audio",sourceUpdater:this,action:Hd(e),name:"callback"})},t.videoQueueCallback=function(e){this.videoBuffer&&Ad({type:"video",sourceUpdater:this,action:Hd(e),name:"callback"})},t.dispose=function(){var t=this;this.trigger("dispose"),Fd.forEach(function(e){t.abort(e),t.canRemoveSourceBuffer()?t.removeSourceBuffer(e):t[e+"QueueCallback"](function(){return Id(e,t)})}),this.videoAppendQueued_=!1,this.delayedAudioAppendQueue_.length=0,this.sourceopenListener_&&this.mediaSource.removeEventListener("sourceopen",this.sourceopenListener_),this.off()},e}(ga.EventTarget),$d=new Uint8Array("\n\n".split("").map(function(e){return e.charCodeAt(0)})),Jd=function(n){function e(e,t){var i;return void 0===t&&(t={}),(i=n.call(this,e,t)||this).handlePartialData_=!1,i.mediaSource_=null,i.subtitlesTrack_=null,i.loaderType_="subtitle",i.featuresNativeTextTracks_=e.featuresNativeTextTracks,i.shouldSaveSegmentTimingInfo_=!1,i}Sa(e,n);var t=e.prototype;return t.createTransmuxer_=function(){return null},t.buffered_=function(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues||!this.subtitlesTrack_.cues.length)return ga.createTimeRanges();var e=this.subtitlesTrack_.cues,t=e[0].startTime,i=e[e.length-1].startTime;return ga.createTimeRanges([[t,i]])},t.initSegmentForMap=function(e,t){if(void 0===t&&(t=!1),!e)return null;var i=rc(e),n=this.initSegments_[i];if(t&&!n&&e.bytes){var r=$d.byteLength+e.bytes.byteLength,a=new Uint8Array(r);a.set(e.bytes),a.set($d,e.bytes.byteLength),this.initSegments_[i]=n={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:a}}return n||e},t.couldBeginLoading_=function(){return this.playlist_&&this.subtitlesTrack_&&!this.paused()},t.init_=function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()},t.track=function(e){return"undefined"==typeof e||(this.subtitlesTrack_=e,"INIT"===this.state&&this.couldBeginLoading_()&&this.init_()),this.subtitlesTrack_},t.remove=function(e,t){Vc(e,t,this.subtitlesTrack_)},t.fillBuffer_=function(){var e=this;this.syncPoint_||(this.syncPoint_=this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_()));var t=this.checkBuffer_(this.buffered_(),this.playlist_,this.mediaIndex,this.hasPlayed_(),this.currentTime_(),this.syncPoint_);if(t=this.skipEmptySegments_(t)){if(null===this.syncController_.timestampOffsetForTimeline(t.timeline)){return this.syncController_.one("timestampoffset",function(){e.state="READY",e.paused()||e.monitorBuffer_()}),void(this.state="WAITING_ON_TIMELINE")}this.loadSegment_(t)}},t.skipEmptySegments_=function(e){for(;e&&e.segment.empty;)e=this.generateSegmentInfo_(e.playlist,e.mediaIndex+1,e.startOfSegment+e.duration,e.isSyncRequest);return e},t.stopForError=function(e){this.error(e),this.state="READY",this.pause(),this.trigger("error")},t.segmentRequestFinished_=function(e,t,i){var n=this;if(this.subtitlesTrack_){if(this.saveTransferStats_(t.stats),!this.pendingSegment_)return this.state="READY",void(this.mediaRequestsAborted+=1);if(e)return e.code===yd&&this.handleTimeout_(),e.code===_d?this.mediaRequestsAborted+=1:this.mediaRequestsErrored+=1,void this.stopForError(e);var r=this.pendingSegment_;this.saveBandwidthRelatedStats_(r.duration,t.stats),this.state="APPENDING",this.trigger("appending");var a=r.segment;if(a.map&&(a.map.bytes=t.map.bytes),r.bytes=t.bytes,"function"!=typeof Ea.WebVTT&&this.subtitlesTrack_&&this.subtitlesTrack_.tech_){var s,o=function(){n.subtitlesTrack_.tech_.off("vttjsloaded",s),n.stopForError({message:"Error loading vtt.js"})};return s=function(){n.subtitlesTrack_.tech_.off("vttjserror",o),n.segmentRequestFinished_(e,t,i)},this.state="WAITING_ON_VTTJS",this.subtitlesTrack_.tech_.one("vttjsloaded",s),void this.subtitlesTrack_.tech_.one("vttjserror",o)}a.requested=!0;try{this.parseVTTCues_(r)}catch(e){return void this.stopForError({message:e.message})}if(this.updateTimeMapping_(r,this.syncController_.timelines[r.timeline],this.playlist_),r.cues.length?r.timingInfo={start:r.cues[0].startTime,end:r.cues[r.cues.length-1].endTime}:r.timingInfo={start:r.startOfSegment,end:r.startOfSegment+r.duration},r.isSyncRequest)return this.trigger("syncinfoupdate"),this.pendingSegment_=null,void(this.state="READY");r.byteLength=r.bytes.byteLength,this.mediaSecondsLoaded+=a.duration,r.cues.forEach(function(e){n.subtitlesTrack_.addCue(n.featuresNativeTextTracks_?new Ea.VTTCue(e.startTime,e.endTime,e.text):e)}),function(t){var e=t.cues;if(e)for(var i=0;i<e.length;i++){for(var n=[],r=0,a=0;a<e.length;a++)e[i].startTime===e[a].startTime&&e[i].endTime===e[a].endTime&&e[i].text===e[a].text&&1<++r&&n.push(e[a]);n.length&&n.forEach(function(e){return t.removeCue(e)})}}(this.subtitlesTrack_),this.handleAppendsDone_()}else this.state="READY"},t.handleData_=function(){},t.updateTimingInfoEnd_=function(){},t.parseVTTCues_=function(t){var e,i=!1;"function"==typeof Ea.TextDecoder?e=new Ea.TextDecoder("utf8"):(e=Ea.WebVTT.StringDecoder(),i=!0);var n=new Ea.WebVTT.Parser(Ea,Ea.vttjs,e);if(t.cues=[],t.timestampmap={MPEGTS:0,LOCAL:0},n.oncue=t.cues.push.bind(t.cues),n.ontimestampmap=function(e){t.timestampmap=e},n.onparsingerror=function(e){ga.log.warn("Error encountered when parsing cues: "+e.message)},t.segment.map){var r=t.segment.map.bytes;i&&(r=Ld(r)),n.parse(r)}var a=t.bytes;i&&(a=Ld(a)),n.parse(a),n.flush()},t.updateTimeMapping_=function(e,t,i){var n=e.segment;if(t)if(e.cues.length){var r=e.timestampmap,a=r.MPEGTS/$u-r.LOCAL+t.mapping;if(e.cues.forEach(function(e){e.startTime+=a,e.endTime+=a}),!i.syncInfo){var s=e.cues[0].startTime,o=e.cues[e.cues.length-1].startTime;i.syncInfo={mediaSequence:i.mediaSequence+e.mediaIndex,time:Math.min(s,o-n.duration)}}}else n.empty=!0},e}(Sd),Zd=[{name:"VOD",run:function(e,t,i,n,r){if(i===1/0)return null;return{time:0,segmentIndex:0}}},{name:"ProgramDateTime",run:function(e,t,i,n,r){if(!Object.keys(e.timelineToDatetimeMappings).length)return null;var a=t.segments||[],s=null,o=null;r=r||0;for(var u=0;u<a.length;u++){var l=a[u],c=e.timelineToDatetimeMappings[l.timeline];if(c&&l.dateTimeObject){var d=l.dateTimeObject.getTime()/1e3+c,h=Math.abs(r-d);if(null!==o&&(0===h||o<h))break;o=h,s={time:d,segmentIndex:u}}}return s}},{name:"Segment",run:function(e,t,i,n,r){var a=t.segments||[],s=null,o=null;r=r||0;for(var u=0;u<a.length;u++){var l=a[u];if(l.timeline===n&&"undefined"!=typeof l.start){var c=Math.abs(r-l.start);if(null!==o&&o<c)break;(!s||null===o||c<=o)&&(o=c,s={time:l.start,segmentIndex:u})}}return s}},{name:"Discontinuity",run:function(e,t,i,n,r){var a=null;if(r=r||0,t.discontinuityStarts&&t.discontinuityStarts.length)for(var s=null,o=0;o<t.discontinuityStarts.length;o++){var u=t.discontinuityStarts[o],l=t.discontinuitySequence+o+1,c=e.discontinuities[l];if(c){var d=Math.abs(r-c.time);if(null!==s&&s<d)break;(!a||null===s||d<=s)&&(s=d,a={time:c.time,segmentIndex:u})}}return a}},{name:"Playlist",run:function(e,t,i,n,r){return t.syncInfo?{time:t.syncInfo.time,segmentIndex:t.syncInfo.mediaSequence-t.mediaSequence}:null}}],eh=function(i){function e(e){var t;return(t=i.call(this)||this).timelines=[],t.discontinuities=[],t.timelineToDatetimeMappings={},t.logger_=Il("SyncController"),t}Sa(e,i);var t=e.prototype;return t.getSyncPoint=function(e,t,i,n){var r=this.runStrategies_(e,t,i,n);return r.length?this.selectSyncPoint_(r,{key:"time",value:n}):null},t.getExpiredTime=function(e,t){if(!e||!e.segments)return null;var i=this.runStrategies_(e,t,e.discontinuitySequence,0);if(!i.length)return null;var n=this.selectSyncPoint_(i,{key:"segmentIndex",value:0});return 0<n.segmentIndex&&(n.time*=-1),Math.abs(n.time+Wl(e,n.segmentIndex,0))},t.runStrategies_=function(e,t,i,n){for(var r=[],a=0;a<Zd.length;a++){var s=Zd[a],o=s.run(this,e,t,i,n);o&&(o.strategy=s.name,r.push({strategy:s.name,syncPoint:o}))}return r},t.selectSyncPoint_=function(e,t){for(var i=e[0].syncPoint,n=Math.abs(e[0].syncPoint[t.key]-t.value),r=e[0].strategy,a=1;a<e.length;a++){var s=Math.abs(e[a].syncPoint[t.key]-t.value);s<n&&(n=s,i=e[a].syncPoint,r=e[a].strategy)}return this.logger_("syncPoint for ["+t.key+": "+t.value+"] chosen with strategy ["+r+"]: [time:"+i.time+", segmentIndex:"+i.segmentIndex+"]"),i},t.saveExpiredSegmentInfo=function(e,t){for(var i=t.mediaSequence-e.mediaSequence-1;0<=i;i--){var n=e.segments[i];if(n&&"undefined"!=typeof n.start){t.syncInfo={mediaSequence:e.mediaSequence+i,time:n.start},this.logger_("playlist refresh sync: [time:"+t.syncInfo.time+", mediaSequence: "+t.syncInfo.mediaSequence+"]"),this.trigger("syncinfoupdate");break}}},t.setDateTimeMappingForStart=function(e){if(this.timelineToDatetimeMappings={},e.segments&&e.segments.length&&e.segments[0].dateTimeObject){var t=e.segments[0],i=t.dateTimeObject.getTime()/1e3;this.timelineToDatetimeMappings[t.timeline]=-i}},t.saveSegmentTimingInfo=function(e){var t=e.segmentInfo,i=e.shouldSaveTimelineMapping,n=this.calculateSegmentTimeMapping_(t,t.timingInfo,i),r=t.segment;n&&(this.saveDiscontinuitySyncInfo_(t),t.playlist.syncInfo||(t.playlist.syncInfo={mediaSequence:t.playlist.mediaSequence+t.mediaIndex,time:r.start}));var a=r.dateTimeObject;r.discontinuity&&i&&a&&(this.timelineToDatetimeMappings[r.timeline]=-a.getTime()/1e3)},t.timestampOffsetForTimeline=function(e){return"undefined"==typeof this.timelines[e]?null:this.timelines[e].time},t.mappingForTimeline=function(e){return"undefined"==typeof this.timelines[e]?null:this.timelines[e].mapping},t.calculateSegmentTimeMapping_=function(e,t,i){var n=e.segment,r=this.timelines[e.timeline];if("number"==typeof e.timestampOffset)r={time:e.startOfSegment,mapping:e.startOfSegment-t.start},i&&(this.timelines[e.timeline]=r,this.trigger("timestampoffset"),this.logger_("time mapping for timeline "+e.timeline+": [time: "+r.time+"] [mapping: "+r.mapping+"]")),n.start=e.startOfSegment,n.end=t.end+r.mapping;else{if(!r)return!1;n.start=t.start+r.mapping,n.end=t.end+r.mapping}return!0},t.saveDiscontinuitySyncInfo_=function(e){var t=e.playlist,i=e.segment;if(i.discontinuity)this.discontinuities[i.timeline]={time:i.start,accuracy:0};else if(t.discontinuityStarts&&t.discontinuityStarts.length)for(var n=0;n<t.discontinuityStarts.length;n++){var r=t.discontinuityStarts[n],a=t.discontinuitySequence+n+1,s=r-e.mediaIndex,o=Math.abs(s);if(!this.discontinuities[a]||this.discontinuities[a].accuracy>o){var u=void 0;u=s<0?i.start-Wl(t,e.mediaIndex,r):i.end+Wl(t,e.mediaIndex+1,r),this.discontinuities[a]={time:u,accuracy:o}}}},t.dispose=function(){this.trigger("dispose"),this.off()},e}(ga.EventTarget),th=function(t){function e(){var e;return(e=t.call(this)||this).pendingTimelineChanges_={},e.lastTimelineChanges_={},e}Sa(e,t);var i=e.prototype;return i.clearPendingTimelineChange=function(e){this.pendingTimelineChanges_[e]=null,this.trigger("pendingtimelinechange")},i.pendingTimelineChange=function(e){var t=e.type,i=e.from,n=e.to;return"number"==typeof i&&"number"==typeof n&&(this.pendingTimelineChanges_[t]={type:t,from:i,to:n},this.trigger("pendingtimelinechange")),this.pendingTimelineChanges_[t]},i.lastTimelineChange=function(e){var t=e.type,i=e.from,n=e.to;return"number"==typeof i&&"number"==typeof n&&(this.lastTimelineChanges_[t]={type:t,from:i,to:n},delete this.pendingTimelineChanges_[t],this.trigger("timelinechange")),this.lastTimelineChanges_[t]},i.dispose=function(){this.trigger("dispose"),this.pendingTimelineChanges_={},this.lastTimelineChanges_={},this.off()},e}(ga.EventTarget),ih=gc(vc(yc(function(){function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var e=function(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e};var r=function(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t},a=function(){function e(){this.listeners={}}var t=e.prototype;return t.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},t.off=function(e,t){if(!this.listeners[e])return!1;var i=this.listeners[e].indexOf(t);return this.listeners[e]=this.listeners[e].slice(0),this.listeners[e].splice(i,1),-1<i},t.trigger=function(e,t){var i=this.listeners[e];if(i)if(2===arguments.length)for(var n=i.length,r=0;r<n;++r)i[r].call(this,t);else for(var a=Array.prototype.slice.call(arguments,1),s=i.length,o=0;o<s;++o)i[o].apply(this,a)},t.dispose=function(){this.listeners={}},t.pipe=function(t){this.on("data",function(e){t.push(e)})},e}();function g(e){return e<<24|(65280&e)<<8|(16711680&e)>>8|e>>>24}
1
  /**
2
  * @license
3
+ * Video.js 7.18.1 <http://videojs.com/>
4
  * Copyright Brightcove, Inc. <https://www.brightcove.com/>
5
  * Available under Apache License Version 2.0
6
  * <https://github.com/videojs/video.js/blob/main/LICENSE>
9
  * Available under Apache License Version 2.0
10
  * <https://github.com/mozilla/vtt.js/blob/main/LICENSE>
11
  */
12
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).videojs=t()}(this,function(){"use strict";for(var e,u="7.18.1",i={},a=function(e,t){return i[e]=i[e]||[],t&&(i[e]=i[e].concat(t)),i[e]},n=function(e,t){t=a(e).indexOf(t);return!(t<=-1)&&(i[e]=i[e].slice(),i[e].splice(t,1),!0)},l={prefixed:!0},t=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"]],r=t[0],s=0;s<t.length;s++)if(t[s][1]in document){e=t[s];break}if(e){for(var o=0;o<e.length;o++)l[r[o]]=e[o];l.prefixed=e[0]!==r[0]}var c=[],d=function(a,s){return function(e,t,i){var n,r=s.levels[t],t=new RegExp("^("+r+")$");"log"!==e&&i.unshift(e.toUpperCase()+":"),i.unshift(a+":"),c&&(c.push([].concat(i)),n=c.length-1e3,c.splice(0,0<n?n:0)),!window.console||(n=!(n=window.console[e])&&"debug"===e?window.console.info||window.console.log:n)&&r&&t.test(e)&&n[Array.isArray(i)?"apply":"call"](window.console,i)}};var h=function t(i){function n(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];a("log",r,t)}var r="info",a=d(i,n);return n.createLogger=function(e){return t(i+": "+e)},n.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:r},n.level=function(e){if("string"==typeof e){if(!n.levels.hasOwnProperty(e))throw new Error('"'+e+'" in not a valid log level');r=e}return r},(n.history=function(){return c?[].concat(c):[]}).filter=function(t){return(c||[]).filter(function(e){return new RegExp(".*"+t+".*").test(e[0])})},n.history.clear=function(){c&&(c.length=0)},n.history.disable=function(){null!==c&&(c.length=0,c=null)},n.history.enable=function(){null===c&&(c=[])},n.error=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return a("error",r,t)},n.warn=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return a("warn",r,t)},n.debug=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return a("debug",r,t)},n}("VIDEOJS"),p=h.createLogger,f="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function m(e,t){return e(t={exports:{}},t.exports),t.exports}var g=m(function(e){function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i,n=arguments[t];for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},t.apply(this,arguments)}e.exports=t}),y=Object.prototype.toString,v=function(e){return T(e)?Object.keys(e):[]};function _(t,i){v(t).forEach(function(e){return i(t[e],e)})}function b(i){for(var e=arguments.length,t=new Array(1<e?e-1:0),n=1;n<e;n++)t[n-1]=arguments[n];return Object.assign?g.apply(void 0,[i].concat(t)):(t.forEach(function(e){e&&_(e,function(e,t){i[t]=e})}),i)}function T(e){return!!e&&"object"==typeof e}function S(e){return T(e)&&"[object Object]"===y.call(e)&&e.constructor===Object}function w(e,t){if(!e||!t)return"";if("function"!=typeof window.getComputedStyle)return"";var i;try{i=window.getComputedStyle(e)}catch(e){return""}return i?i.getPropertyValue(t)||i[t]:""}var E=window.navigator&&window.navigator.userAgent||"",k=/AppleWebKit\/([\d.]+)/i.exec(E),C=k?parseFloat(k.pop()):null,I=/iPod/i.test(E),x=(jt=E.match(/OS (\d+)_/i))&&jt[1]?jt[1]:null,A=/Android/i.test(E),P=function(){var e=E.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;var t=e[1]&&parseFloat(e[1]),i=e[2]&&parseFloat(e[2]);return t&&i?parseFloat(e[1]+"."+e[2]):t||null}(),L=A&&P<5&&C<537,D=/Firefox/i.test(E),O=/Edg/i.test(E),R=!O&&(/Chrome/i.test(E)||/CriOS/i.test(E)),M=(zt=E.match(/(Chrome|CriOS)\/(\d+)/))&&zt[2]?parseFloat(zt[2]):null,N=Xt=!(Xt=(Xt=/MSIE\s(\d+)\.\d/.exec(E))&&parseFloat(Xt[1]))&&/Trident\/7.0/i.test(E)&&/rv:11.0/.test(E)?11:Xt,U=/Safari/i.test(E)&&!R&&!A&&!O,B=/Windows/i.test(E),F=Boolean(X()&&("ontouchstart"in window||window.navigator.maxTouchPoints||window.DocumentTouch&&window.document instanceof window.DocumentTouch)),j=/iPad/i.test(E)||U&&F&&!/iPhone/i.test(E),H=/iPhone/i.test(E)&&!j,q=H||j||I,V=(U||q)&&!R,W=Object.freeze({__proto__:null,IS_IPOD:I,IOS_VERSION:x,IS_ANDROID:A,ANDROID_VERSION:P,IS_NATIVE_ANDROID:L,IS_FIREFOX:D,IS_EDGE:O,IS_CHROME:R,CHROME_VERSION:M,IE_VERSION:N,IS_SAFARI:U,IS_WINDOWS:B,TOUCH_ENABLED:F,IS_IPAD:j,IS_IPHONE:H,IS_IOS:q,IS_ANY_SAFARI:V});function G(e){return"string"==typeof e&&Boolean(e.trim())}function z(e){if(0<=e.indexOf(" "))throw new Error("class has illegal whitespace characters")}function X(){return document===window.document}function K(e){return T(e)&&1===e.nodeType}function Y(){try{return window.parent!==window.self}catch(e){return!0}}function Q(i){return function(e,t){if(!G(e))return document[i](null);t=K(t=G(t)?document.querySelector(t):t)?t:document;return t[i]&&t[i](e)}}function $(e,i,t,n){void 0===e&&(e="div"),void 0===i&&(i={}),void 0===t&&(t={});var r=document.createElement(e);return Object.getOwnPropertyNames(i).forEach(function(e){var t=i[e];-1!==e.indexOf("aria-")||"role"===e||"type"===e?(h.warn("Setting attributes in the second argument of createEl()\nhas been deprecated. Use the third argument instead.\ncreateEl(type, properties, attributes). Attempting to set "+e+" to "+t+"."),r.setAttribute(e,t)):"textContent"===e?J(r,t):r[e]===t&&"tabIndex"!==e||(r[e]=t)}),Object.getOwnPropertyNames(t).forEach(function(e){r.setAttribute(e,t[e])}),n&&ye(r,n),r}function J(e,t){return"undefined"==typeof e.textContent?e.innerText=t:e.textContent=t,e}function Z(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function ee(e,t){return z(t),e.classList?e.classList.contains(t):new RegExp("(^|\\s)"+t+"($|\\s)").test(e.className)}function te(e,t){return e.classList?e.classList.add(t):ee(e,t)||(e.className=(e.className+" "+t).trim()),e}function ie(e,t){return e?(e.classList?e.classList.remove(t):(z(t),e.className=e.className.split(/\s+/).filter(function(e){return e!==t}).join(" ")),e):(h.warn("removeClass was called with an element that doesn't exist"),null)}function ne(e,t,i){var n=ee(e,t);if((i="boolean"!=typeof(i="function"==typeof i?i(e,t):i)?!n:i)!==n)return(i?te:ie)(e,t),e}function re(i,n){Object.getOwnPropertyNames(n).forEach(function(e){var t=n[e];null===t||"undefined"==typeof t||!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})}function ae(e){var t={},i=",autoplay,controls,playsinline,loop,muted,default,defaultMuted,";if(e&&e.attributes&&0<e.attributes.length)for(var n=e.attributes,r=n.length-1;0<=r;r--){var a=n[r].name,s=n[r].value;"boolean"!=typeof e[a]&&-1===i.indexOf(","+a+",")||(s=null!==s),t[a]=s}return t}function se(e,t){return e.getAttribute(t)}function oe(e,t,i){e.setAttribute(t,i)}function ue(e,t){e.removeAttribute(t)}function le(){document.body.focus(),document.onselectstart=function(){return!1}}function ce(){document.onselectstart=function(){return!0}}function de(e){if(e&&e.getBoundingClientRect&&e.parentNode){var t=e.getBoundingClientRect(),i={};return["bottom","height","left","right","top","width"].forEach(function(e){void 0!==t[e]&&(i[e]=t[e])}),i.height||(i.height=parseFloat(w(e,"height"))),i.width||(i.width=parseFloat(w(e,"width"))),i}}function he(e){if(!e||e&&!e.offsetParent)return{left:0,top:0,width:0,height:0};for(var t=e.offsetWidth,i=e.offsetHeight,n=0,r=0;e.offsetParent&&e!==document[l.fullscreenElement];)n+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent;return{left:n,top:r,width:t,height:i}}function pe(e,t){var i={x:0,y:0};if(q)for(var n=e;n&&"html"!==n.nodeName.toLowerCase();){var r,a=w(n,"transform");/^matrix/.test(a)?(r=a.slice(7,-1).split(/,\s/).map(Number),i.x+=r[4],i.y+=r[5]):/^matrix3d/.test(a)&&(a=a.slice(9,-1).split(/,\s/).map(Number),i.x+=a[12],i.y+=a[13]),n=n.parentNode}var s={},o=he(t.target),u=he(e),l=u.width,c=u.height,e=t.offsetY-(u.top-o.top),o=t.offsetX-(u.left-o.left);return t.changedTouches&&(o=t.changedTouches[0].pageX-u.left,e=t.changedTouches[0].pageY+u.top,q&&(o-=i.x,e-=i.y)),s.y=1-Math.max(0,Math.min(1,e/c)),s.x=Math.max(0,Math.min(1,o/l)),s}function fe(e){return T(e)&&3===e.nodeType}function me(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function ge(e){return"function"==typeof e&&(e=e()),(Array.isArray(e)?e:[e]).map(function(e){return K(e="function"==typeof e?e():e)||fe(e)?e:"string"==typeof e&&/\S/.test(e)?document.createTextNode(e):void 0}).filter(function(e){return e})}function ye(t,e){return ge(e).forEach(function(e){return t.appendChild(e)}),t}function ve(e,t){return ye(me(e),t)}function _e(e){return void 0===e.button&&void 0===e.buttons||(0===e.button&&void 0===e.buttons||("mouseup"===e.type&&0===e.button&&0===e.buttons||0===e.button&&1===e.buttons))}var be,Te=Q("querySelector"),Se=Q("querySelectorAll"),we=Object.freeze({__proto__:null,isReal:X,isEl:K,isInFrame:Y,createEl:$,textContent:J,prependTo:Z,hasClass:ee,addClass:te,removeClass:ie,toggleClass:ne,setAttributes:re,getAttributes:ae,getAttribute:se,setAttribute:oe,removeAttribute:ue,blockTextSelection:le,unblockTextSelection:ce,getBoundingClientRect:de,findPosition:he,getPointerPosition:pe,isTextNode:fe,emptyEl:me,normalizeContent:ge,appendContent:ye,insertContent:ve,isSingleLeftClick:_e,$:Te,$$:Se}),Ee=!1,ke=function(){if(!1!==be.options.autoSetup){var e=Array.prototype.slice.call(document.getElementsByTagName("video")),t=Array.prototype.slice.call(document.getElementsByTagName("audio")),i=Array.prototype.slice.call(document.getElementsByTagName("video-js")),n=e.concat(t,i);if(n&&0<n.length)for(var r=0,a=n.length;r<a;r++){var s=n[r];if(!s||!s.getAttribute){Ce(1);break}void 0===s.player&&null!==s.getAttribute("data-setup")&&be(s)}else Ee||Ce(1)}};function Ce(e,t){X()&&(t&&(be=t),window.setTimeout(ke,e))}function Ie(){Ee=!0,window.removeEventListener("load",Ie)}X()&&("complete"===document.readyState?Ie():window.addEventListener("load",Ie));function xe(e){var t=document.createElement("style");return t.className=e,t}function Ae(e,t){e.styleSheet?e.styleSheet.cssText=t:e.textContent=t}var Pe=3;window.WeakMap||(ui=function(){function e(){this.vdata="vdata"+Math.floor(window.performance&&window.performance.now()||Date.now()),this.data={}}var t=e.prototype;return t.set=function(e,t){var i=e[this.vdata]||Pe++;return e[this.vdata]||(e[this.vdata]=i),this.data[i]=t,this},t.get=function(e){var t=e[this.vdata];if(t)return this.data[t];h("We have no data for this element",e)},t.has=function(e){return e[this.vdata]in this.data},t.delete=function(e){var t=e[this.vdata];t&&(delete this.data[t],delete e[this.vdata])},e}());var Le,De=new(window.WeakMap?WeakMap:ui);function Oe(e,t){var i;De.has(e)&&(0===(i=De.get(e)).handlers[t].length&&(delete i.handlers[t],e.removeEventListener?e.removeEventListener(t,i.dispatcher,!1):e.detachEvent&&e.detachEvent("on"+t,i.dispatcher)),Object.getOwnPropertyNames(i.handlers).length<=0&&(delete i.handlers,delete i.dispatcher,delete i.disabled),0===Object.getOwnPropertyNames(i).length&&De.delete(e))}function Re(t,i,e,n){e.forEach(function(e){t(i,e,n)})}function Me(e){if(e.fixed_)return e;function t(){return!0}function i(){return!1}if(!e||!e.isPropagationStopped||!e.isImmediatePropagationStopped){var n,r,a,s=e||window.event;for(n in e={},s)"layerX"!==n&&"layerY"!==n&&"keyLocation"!==n&&"webkitMovementX"!==n&&"webkitMovementY"!==n&&("returnValue"===n&&s.preventDefault||(e[n]=s[n]));e.target||(e.target=e.srcElement||document),e.relatedTarget||(e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement),e.preventDefault=function(){s.preventDefault&&s.preventDefault(),e.returnValue=!1,s.returnValue=!1,e.defaultPrevented=!0},e.defaultPrevented=!1,e.stopPropagation=function(){s.stopPropagation&&s.stopPropagation(),e.cancelBubble=!0,s.cancelBubble=!0,e.isPropagationStopped=t},e.isPropagationStopped=i,e.stopImmediatePropagation=function(){s.stopImmediatePropagation&&s.stopImmediatePropagation(),e.isImmediatePropagationStopped=t,e.stopPropagation()},e.isImmediatePropagationStopped=i,null!==e.clientX&&void 0!==e.clientX&&(r=document.documentElement,a=document.body,e.pageX=e.clientX+(r&&r.scrollLeft||a&&a.scrollLeft||0)-(r&&r.clientLeft||a&&a.clientLeft||0),e.pageY=e.clientY+(r&&r.scrollTop||a&&a.scrollTop||0)-(r&&r.clientTop||a&&a.clientTop||0)),e.which=e.charCode||e.keyCode,null!==e.button&&void 0!==e.button&&(e.button=1&e.button?0:4&e.button?1:2&e.button?2:0)}return e.fixed_=!0,e}var Ne=function(){if("boolean"!=typeof Le){Le=!1;try{var e=Object.defineProperty({},"passive",{get:function(){Le=!0}});window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(e){}}return Le},Ue=["touchstart","touchmove"];function Be(s,e,t){if(Array.isArray(e))return Re(Be,s,e,t);De.has(s)||De.set(s,{});var o=De.get(s);o.handlers||(o.handlers={}),o.handlers[e]||(o.handlers[e]=[]),t.guid||(t.guid=Pe++),o.handlers[e].push(t),o.dispatcher||(o.disabled=!1,o.dispatcher=function(e,t){if(!o.disabled){e=Me(e);var i=o.handlers[e.type];if(i)for(var n=i.slice(0),r=0,a=n.length;r<a&&!e.isImmediatePropagationStopped();r++)try{n[r].call(s,e,t)}catch(e){h.error(e)}}}),1===o.handlers[e].length&&(s.addEventListener?(t=!1,Ne()&&-1<Ue.indexOf(e)&&(t={passive:!0}),s.addEventListener(e,o.dispatcher,t)):s.attachEvent&&s.attachEvent("on"+e,o.dispatcher))}function Fe(e,t,i){if(De.has(e)){var n=De.get(e);if(n.handlers){if(Array.isArray(t))return Re(Fe,e,t,i);var r=function(e,t){n.handlers[t]=[],Oe(e,t)};if(void 0!==t){var a=n.handlers[t];if(a)if(i){if(i.guid)for(var s=0;s<a.length;s++)a[s].guid===i.guid&&a.splice(s--,1);Oe(e,t)}else r(e,t)}else for(var o in n.handlers)Object.prototype.hasOwnProperty.call(n.handlers||{},o)&&r(e,o)}}}function je(e,t,i){var n=De.has(e)?De.get(e):{},r=e.parentNode||e.ownerDocument;return"string"==typeof t?t={type:t,target:e}:t.target||(t.target=e),t=Me(t),n.dispatcher&&n.dispatcher.call(e,t,i),r&&!t.isPropagationStopped()&&!0===t.bubbles?je.call(null,r,t,i):!r&&!t.defaultPrevented&&t.target&&t.target[t.type]&&(De.has(t.target)||De.set(t.target,{}),r=De.get(t.target),t.target[t.type]&&(r.disabled=!0,"function"==typeof t.target[t.type]&&t.target[t.type](),r.disabled=!1)),!t.defaultPrevented}function He(e,t,i){if(Array.isArray(t))return Re(He,e,t,i);function n(){Fe(e,t,n),i.apply(this,arguments)}n.guid=i.guid=i.guid||Pe++,Be(e,t,n)}function qe(e,t,i){function n(){Fe(e,t,n),i.apply(this,arguments)}n.guid=i.guid=i.guid||Pe++,Be(e,t,n)}function Ve(e,t,i){return t.guid||(t.guid=Pe++),(e=t.bind(e)).guid=i?i+"_"+t.guid:t.guid,e}function We(t,i){var n=window.performance.now();return function(){var e=window.performance.now();i<=e-n&&(t.apply(void 0,arguments),n=e)}}function Ge(n,r,a,s){var o;function e(){var e=this,t=arguments,i=function(){i=o=null,a||n.apply(e,t)};!o&&a&&n.apply(e,t),s.clearTimeout(o),o=s.setTimeout(i,r)}return void 0===s&&(s=window),e.cancel=function(){s.clearTimeout(o),o=null},e}function ze(){}var Xe,Ke=Object.freeze({__proto__:null,fixEvent:Me,on:Be,off:Fe,trigger:je,one:He,any:qe});ze.prototype.allowedEvents_={},ze.prototype.addEventListener=ze.prototype.on=function(e,t){var i=this.addEventListener;this.addEventListener=function(){},Be(this,e,t),this.addEventListener=i},ze.prototype.removeEventListener=ze.prototype.off=function(e,t){Fe(this,e,t)},ze.prototype.one=function(e,t){var i=this.addEventListener;this.addEventListener=function(){},He(this,e,t),this.addEventListener=i},ze.prototype.any=function(e,t){var i=this.addEventListener;this.addEventListener=function(){},qe(this,e,t),this.addEventListener=i},ze.prototype.dispatchEvent=ze.prototype.trigger=function(e){var t=e.type||e;e=Me(e="string"==typeof e?{type:t}:e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),je(this,e)},ze.prototype.queueTrigger=function(e){var t=this;Xe=Xe||new Map;var i=e.type||e,n=Xe.get(this);n||(n=new Map,Xe.set(this,n));var r=n.get(i);n.delete(i),window.clearTimeout(r);r=window.setTimeout(function(){0===n.size&&(n=null,Xe.delete(t)),t.trigger(e)},0);n.set(i,r)};function Ye(e){return"function"==typeof e.name?e.name():"string"==typeof e.name?e.name:e.name_||(e.constructor&&e.constructor.name?e.constructor.name:typeof e)}function Qe(e){return"string"==typeof e&&/\S/.test(e)||Array.isArray(e)&&!!e.length}function $e(e,t,i){if(!e||!e.nodeName&&!it(e))throw new Error("Invalid target for "+Ye(t)+"#"+i+"; must be a DOM node or evented object.")}function Je(e,t,i){if(!Qe(e))throw new Error("Invalid event type for "+Ye(t)+"#"+i+"; must be a non-empty string or array.")}function Ze(e,t,i){if("function"!=typeof e)throw new Error("Invalid listener for "+Ye(t)+"#"+i+"; must be a function.")}function et(e,t,i){var n,r,a=t.length<3||t[0]===e||t[0]===e.eventBusEl_,t=a?(n=e.eventBusEl_,3<=t.length&&t.shift(),r=t[0],t[1]):(n=t[0],r=t[1],t[2]);return $e(n,e,i),Je(r,e,i),Ze(t,e,i),{isTargetingSelf:a,target:n,type:r,listener:t=Ve(e,t)}}function tt(e,t,i,n){$e(e,e,t),e.nodeName?Ke[t](e,i,n):e[t](i,n)}var it=function(t){return t instanceof ze||!!t.eventBusEl_&&["on","one","off","trigger"].every(function(e){return"function"==typeof t[e]})},nt={on:function(){for(var e=this,t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];var r,a=et(this,i,"on"),s=a.isTargetingSelf,o=a.target,u=a.type,l=a.listener;tt(o,"on",u,l),s||((r=function(){return e.off(o,u,l)}).guid=l.guid,(s=function(){return e.off("dispose",r)}).guid=l.guid,tt(this,"on","dispose",r),tt(o,"on","dispose",s))},one:function(){for(var r=this,e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var n=et(this,t,"one"),a=n.isTargetingSelf,s=n.target,o=n.type,u=n.listener;a?tt(s,"one",o,u):((a=function e(){r.off(s,o,e);for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];u.apply(null,i)}).guid=u.guid,tt(s,"one",o,a))},any:function(){for(var r=this,e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var n=et(this,t,"any"),a=n.isTargetingSelf,s=n.target,o=n.type,u=n.listener;a?tt(s,"any",o,u):((a=function e(){r.off(s,o,e);for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];u.apply(null,i)}).guid=u.guid,tt(s,"any",o,a))},off:function(e,t,i){!e||Qe(e)?Fe(this.eventBusEl_,e,t):(t=t,$e(e=e,this,"off"),Je(t,this,"off"),Ze(i,this,"off"),i=Ve(this,i),this.off("dispose",i),e.nodeName?(Fe(e,t,i),Fe(e,"dispose",i)):it(e)&&(e.off(t,i),e.off("dispose",i)))},trigger:function(e,t){$e(this.eventBusEl_,this,"trigger");var i=e&&"string"!=typeof e?e.type:e;if(!Qe(i)){i="Invalid event type for "+Ye(this)+"#trigger; must be a non-empty string or object with a type key that has a non-empty value.";if(!e)throw new Error(i);(this.log||h).error(i)}return je(this.eventBusEl_,e,t)}};function rt(e,t){t=(t=void 0===t?{}:t).eventBusKey;if(t){if(!e[t].nodeName)throw new Error('The eventBusKey "'+t+'" does not refer to an element.');e.eventBusEl_=e[t]}else e.eventBusEl_=$("span",{className:"vjs-event-bus"});return b(e,nt),e.eventedCallbacks&&e.eventedCallbacks.forEach(function(e){e()}),e.on("dispose",function(){e.off(),[e,e.el_,e.eventBusEl_].forEach(function(e){e&&De.has(e)&&De.delete(e)}),window.setTimeout(function(){e.eventBusEl_=null},0)}),e}var at={state:{},setState:function(e){var i,n=this;return _(e="function"==typeof e?e():e,function(e,t){n.state[t]!==e&&((i=i||{})[t]={from:n.state[t],to:e}),n.state[t]=e}),i&&it(this)&&this.trigger({changes:i,type:"statechanged"}),i}};function st(e,t){return b(e,at),e.state=b({},e.state,t),"function"==typeof e.handleStateChanged&&it(e)&&e.on("statechanged",e.handleStateChanged),e}function ot(e){return"string"!=typeof e?e:e.replace(/./,function(e){return e.toLowerCase()})}function ut(e){return"string"!=typeof e?e:e.replace(/./,function(e){return e.toUpperCase()})}function lt(){for(var i={},e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.forEach(function(e){e&&_(e,function(e,t){S(e)?(S(i[t])||(i[t]={}),i[t]=lt(i[t],e)):i[t]=e})}),i}var ct=window.Map||function(){function e(){this.map_={}}var t=e.prototype;return t.has=function(e){return e in this.map_},t.delete=function(e){var t=this.has(e);return delete this.map_[e],t},t.set=function(e,t){return this.map_[e]=t,this},t.forEach=function(e,t){for(var i in this.map_)e.call(t,this.map_[i],i,this)},e}(),dt=window.Set||function(){function e(){this.set_={}}var t=e.prototype;return t.has=function(e){return e in this.set_},t.delete=function(e){var t=this.has(e);return delete this.set_[e],t},t.add=function(e){return this.set_[e]=1,this},t.forEach=function(e,t){for(var i in this.set_)e.call(t,i,i,this)},e}(),ht=m(function(e,t){function i(e){if(!e||"object"!=typeof e||(t=e.which||e.keyCode||e.charCode)&&(e=t),"number"==typeof e)return o[e];var t=String(e),e=n[t.toLowerCase()];return e||((e=r[t.toLowerCase()])?e:1===t.length?t.charCodeAt(0):void 0)}i.isEventKey=function(e,t){if(e&&"object"==typeof e){var i=e.which||e.keyCode||e.charCode;if(null==i)return!1;if("string"==typeof t){e=n[t.toLowerCase()];if(e)return e===i;if(e=r[t.toLowerCase()])return e===i}else if("number"==typeof t)return t===i;return!1}};for(var n=(t=e.exports=i).code=t.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},r=t.aliases={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91},a=97;a<123;a++)n[String.fromCharCode(a)]=a-32;for(var a=48;a<58;a++)n[a-48]=a;for(a=1;a<13;a++)n["f"+a]=a+111;for(a=0;a<10;a++)n["numpad "+a]=a+96;var s,o=t.names=t.title={};for(a in n)o[n[a]]=a;for(s in r)n[s]=r[s]});ht.code,ht.codes,ht.aliases,ht.names,ht.title;var pt=function(){function s(e,t,i){!e&&this.play?this.player_=e=this:this.player_=e,this.isDisposed_=!1,this.parentComponent_=null,this.options_=lt({},this.options_),t=this.options_=lt(this.options_,t),this.id_=t.id||t.el&&t.el.id,this.id_||(e=e&&e.id&&e.id()||"no_player",this.id_=e+"_component_"+Pe++),this.name_=t.name||null,t.el?this.el_=t.el:!1!==t.createEl&&(this.el_=this.createEl()),!1!==t.evented&&(rt(this,{eventBusKey:this.el_?"el_":null}),this.handleLanguagechange=this.handleLanguagechange.bind(this),this.on(this.player_,"languagechange",this.handleLanguagechange)),st(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},this.setTimeoutIds_=new dt,this.setIntervalIds_=new dt,this.rafIds_=new dt,this.namedRafs_=new ct,(this.clearingTimersOnDispose_=!1)!==t.initChildren&&this.initChildren(),this.ready(i),!1!==t.reportTouchActivity&&this.enableTouchActivity()}var e=s.prototype;return e.dispose=function(){if(!this.isDisposed_){if(this.readyQueue_&&(this.readyQueue_.length=0),this.trigger({type:"dispose",bubbles:!1}),this.isDisposed_=!0,this.children_)for(var e=this.children_.length-1;0<=e;e--)this.children_[e].dispose&&this.children_[e].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&(this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),this.el_=null),this.player_=null}},e.isDisposed=function(){return Boolean(this.isDisposed_)},e.player=function(){return this.player_},e.options=function(e){return e&&(this.options_=lt(this.options_,e)),this.options_},e.el=function(){return this.el_},e.createEl=function(e,t,i){return $(e,t,i)},e.localize=function(e,i,t){void 0===t&&(t=e);var n=this.player_.language&&this.player_.language(),r=this.player_.languages&&this.player_.languages(),a=r&&r[n],n=n&&n.split("-")[0],n=r&&r[n],t=t;return a&&a[e]?t=a[e]:n&&n[e]&&(t=n[e]),t=i?t.replace(/\{(\d+)\}/g,function(e,t){t=i[t-1];return"undefined"==typeof t?e:t}):t},e.handleLanguagechange=function(){},e.contentEl=function(){return this.contentEl_||this.el_},e.id=function(){return this.id_},e.name=function(){return this.name_},e.children=function(){return this.children_},e.getChildById=function(e){return this.childIndex_[e]},e.getChild=function(e){if(e)return this.childNameIndex_[e]},e.getDescendant=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];for(var t=t.reduce(function(e,t){return e.concat(t)},[]),n=this,r=0;r<t.length;r++)if(!(n=n.getChild(t[r]))||!n.getChild)return;return n},e.addChild=function(e,t,i){if(void 0===t&&(t={}),void 0===i&&(i=this.children_.length),"string"==typeof e){var n=ut(e),r=t.componentClass||n;t.name=n;var a=s.getComponent(r);if(!a)throw new Error("Component "+r+" does not exist");if("function"!=typeof a)return null;a=new a(this.player_||this,t)}else a=e;return a.parentComponent_&&a.parentComponent_.removeChild(a),this.children_.splice(i,0,a),a.parentComponent_=this,"function"==typeof a.id&&(this.childIndex_[a.id()]=a),(n=n||a.name&&ut(a.name()))&&(this.childNameIndex_[n]=a,this.childNameIndex_[ot(n)]=a),"function"==typeof a.el&&a.el()&&(n=null,this.children_[i+1]&&(this.children_[i+1].el_?n=this.children_[i+1].el_:K(this.children_[i+1])&&(n=this.children_[i+1])),this.contentEl().insertBefore(a.el(),n)),a},e.removeChild=function(e){if((e="string"==typeof e?this.getChild(e):e)&&this.children_){for(var t,i=!1,n=this.children_.length-1;0<=n;n--)if(this.children_[n]===e){i=!0,this.children_.splice(n,1);break}i&&(e.parentComponent_=null,this.childIndex_[e.id()]=null,this.childNameIndex_[ut(e.name())]=null,this.childNameIndex_[ot(e.name())]=null,(t=e.el())&&t.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el()))}},e.initChildren=function(){var i,t,e,n=this,r=this.options_.children;r&&(i=this.options_,t=s.getComponent("Tech"),(e=Array.isArray(r)?r:Object.keys(r)).concat(Object.keys(this.options_).filter(function(t){return!e.some(function(e){return"string"==typeof e?t===e:t===e.name})})).map(function(e){var t,e="string"==typeof e?r[t=e]||n.options_[t]||{}:(t=e.name,e);return{name:t,opts:e}}).filter(function(e){e=s.getComponent(e.opts.componentClass||ut(e.name));return e&&!t.isTech(e)}).forEach(function(e){var t=e.name,e=e.opts;!1!==(e=void 0!==i[t]?i[t]:e)&&((e=!0===e?{}:e).playerOptions=n.options_.playerOptions,(e=n.addChild(t,e))&&(n[t]=e))}))},e.buildCSSClass=function(){return""},e.ready=function(e,t){if(void 0===t&&(t=!1),e)return this.isReady_?void(t?e.call(this):this.setTimeout(e,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(e))},e.triggerReady=function(){this.isReady_=!0,this.setTimeout(function(){var e=this.readyQueue_;this.readyQueue_=[],e&&0<e.length&&e.forEach(function(e){e.call(this)},this),this.trigger("ready")},1)},e.$=function(e,t){return Te(e,t||this.contentEl())},e.$$=function(e,t){return Se(e,t||this.contentEl())},e.hasClass=function(e){return ee(this.el_,e)},e.addClass=function(e){te(this.el_,e)},e.removeClass=function(e){ie(this.el_,e)},e.toggleClass=function(e,t){ne(this.el_,e,t)},e.show=function(){this.removeClass("vjs-hidden")},e.hide=function(){this.addClass("vjs-hidden")},e.lockShowing=function(){this.addClass("vjs-lock-showing")},e.unlockShowing=function(){this.removeClass("vjs-lock-showing")},e.getAttribute=function(e){return se(this.el_,e)},e.setAttribute=function(e,t){oe(this.el_,e,t)},e.removeAttribute=function(e){ue(this.el_,e)},e.width=function(e,t){return this.dimension("width",e,t)},e.height=function(e,t){return this.dimension("height",e,t)},e.dimensions=function(e,t){this.width(e,!0),this.height(t)},e.dimension=function(e,t,i){if(void 0!==t)return-1!==(""+(t=null===t||t!=t?0:t)).indexOf("%")||-1!==(""+t).indexOf("px")?this.el_.style[e]=t:this.el_.style[e]="auto"===t?"":t+"px",void(i||this.trigger("componentresize"));if(!this.el_)return 0;t=this.el_.style[e],i=t.indexOf("px");return-1!==i?parseInt(t.slice(0,i),10):parseInt(this.el_["offset"+ut(e)],10)},e.currentDimension=function(e){var t=0;if("width"!==e&&"height"!==e)throw new Error("currentDimension only accepts width or height value");return t=w(this.el_,e),0!==(t=parseFloat(t))&&!isNaN(t)||(e="offset"+ut(e),t=this.el_[e]),t},e.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},e.currentWidth=function(){return this.currentDimension("width")},e.currentHeight=function(){return this.currentDimension("height")},e.focus=function(){this.el_.focus()},e.blur=function(){this.el_.blur()},e.handleKeyDown=function(e){this.player_&&(ht.isEventKey(e,"Tab")||e.stopPropagation(),this.player_.handleKeyDown(e))},e.handleKeyPress=function(e){this.handleKeyDown(e)},e.emitTapEvents=function(){var i,t=0,n=null;this.on("touchstart",function(e){1===e.touches.length&&(n={pageX:e.touches[0].pageX,pageY:e.touches[0].pageY},t=window.performance.now(),i=!0)}),this.on("touchmove",function(e){var t;1<e.touches.length?i=!1:n&&(t=e.touches[0].pageX-n.pageX,e=e.touches[0].pageY-n.pageY,10<Math.sqrt(t*t+e*e)&&(i=!1))});function e(){i=!1}this.on("touchleave",e),this.on("touchcancel",e),this.on("touchend",function(e){!(n=null)===i&&window.performance.now()-t<200&&(e.preventDefault(),this.trigger("tap"))})},e.enableTouchActivity=function(){var t,i,e;this.player()&&this.player().reportUserActivity&&(t=Ve(this.player(),this.player().reportUserActivity),this.on("touchstart",function(){t(),this.clearInterval(i),i=this.setInterval(t,250)}),e=function(e){t(),this.clearInterval(i)},this.on("touchmove",t),this.on("touchend",e),this.on("touchcancel",e))},e.setTimeout=function(e,t){var i,n=this;return e=Ve(this,e),this.clearTimersOnDispose_(),i=window.setTimeout(function(){n.setTimeoutIds_.has(i)&&n.setTimeoutIds_.delete(i),e()},t),this.setTimeoutIds_.add(i),i},e.clearTimeout=function(e){return this.setTimeoutIds_.has(e)&&(this.setTimeoutIds_.delete(e),window.clearTimeout(e)),e},e.setInterval=function(e,t){e=Ve(this,e),this.clearTimersOnDispose_();t=window.setInterval(e,t);return this.setIntervalIds_.add(t),t},e.clearInterval=function(e){return this.setIntervalIds_.has(e)&&(this.setIntervalIds_.delete(e),window.clearInterval(e)),e},e.requestAnimationFrame=function(e){var t,i=this;return this.supportsRaf_?(this.clearTimersOnDispose_(),e=Ve(this,e),t=window.requestAnimationFrame(function(){i.rafIds_.has(t)&&i.rafIds_.delete(t),e()}),this.rafIds_.add(t),t):this.setTimeout(e,1e3/60)},e.requestNamedAnimationFrame=function(e,t){var i=this;if(!this.namedRafs_.has(e)){this.clearTimersOnDispose_(),t=Ve(this,t);var n=this.requestAnimationFrame(function(){t(),i.namedRafs_.has(e)&&i.namedRafs_.delete(e)});return this.namedRafs_.set(e,n),e}},e.cancelNamedAnimationFrame=function(e){this.namedRafs_.has(e)&&(this.cancelAnimationFrame(this.namedRafs_.get(e)),this.namedRafs_.delete(e))},e.cancelAnimationFrame=function(e){return this.supportsRaf_?(this.rafIds_.has(e)&&(this.rafIds_.delete(e),window.cancelAnimationFrame(e)),e):this.clearTimeout(e)},e.clearTimersOnDispose_=function(){var n=this;this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one("dispose",function(){[["namedRafs_","cancelNamedAnimationFrame"],["rafIds_","cancelAnimationFrame"],["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEach(function(e){var t=e[0],i=e[1];n[t].forEach(function(e,t){return n[i](t)})}),n.clearingTimersOnDispose_=!1}))},s.registerComponent=function(e,t){if("string"!=typeof e||!e)throw new Error('Illegal component name, "'+e+'"; must be a non-empty string.');var i=s.getComponent("Tech"),n=i&&i.isTech(t),i=s===t||s.prototype.isPrototypeOf(t.prototype);if(n||!i){var r=n?"techs must be registered using Tech.registerTech()":"must be a Component subclass";throw new Error('Illegal component, "'+e+'"; '+r+".")}e=ut(e),s.components_||(s.components_={});r=s.getComponent("Player");if("Player"===e&&r&&r.players){var a=r.players,r=Object.keys(a);if(a&&0<r.length&&r.map(function(e){return a[e]}).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return s.components_[e]=t,s.components_[ot(e)]=t},s.getComponent=function(e){if(e&&s.components_)return s.components_[e]},s}();pt.prototype.supportsRaf_="function"==typeof window.requestAnimationFrame&&"function"==typeof window.cancelAnimationFrame,pt.registerComponent("Component",pt);var ft=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e};var mt=function(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t};function gt(e,t,i,n){return function(e,t,i){if("number"!=typeof t||t<0||i<t)throw new Error("Failed to execute '"+e+"' on 'TimeRanges': The index provided ("+t+") is non-numeric or out of bounds (0-"+i+").")}(e,n,i.length-1),i[n][t]}function yt(e){var t=void 0===e||0===e.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:e.length,start:gt.bind(null,"start",0,e),end:gt.bind(null,"end",1,e)};return window.Symbol&&window.Symbol.iterator&&(t[window.Symbol.iterator]=function(){return(e||[]).values()}),t}function vt(e,t){return Array.isArray(e)?yt(e):void 0===e||void 0===t?yt():yt([[e,t]])}function _t(e,t){var i,n,r=0;if(!t)return 0;e&&e.length||(e=vt(0,0));for(var a=0;a<e.length;a++)i=e.start(a),r+=(n=t<(n=e.end(a))?t:n)-i;return r/t}function bt(e){if(e instanceof bt)return e;"number"==typeof e?this.code=e:"string"==typeof e?this.message=e:T(e)&&("number"==typeof e.code&&(this.code=e.code),b(this,e)),this.message||(this.message=bt.defaultMessages[this.code]||"")}bt.prototype.code=0,bt.prototype.message="",bt.prototype.status=null,bt.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],bt.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(var Tt=0;Tt<bt.errorTypes.length;Tt++)bt[bt.errorTypes[Tt]]=Tt,bt.prototype[bt.errorTypes[Tt]]=Tt;var St=function(e,t){var i,n=null;try{i=JSON.parse(e,t)}catch(e){n=e}return[n,i]};function wt(e){return null!=e&&"function"==typeof e.then}function Et(e){wt(e)&&e.then(null,function(e){})}function kt(n){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(function(e,t,i){return n[t]&&(e[t]=n[t]),e},{cues:n.cues&&Array.prototype.map.call(n.cues,function(e){return{startTime:e.startTime,endTime:e.endTime,text:e.text,id:e.id}})})}var Ct=function(e){var t=e.$$("track"),i=Array.prototype.map.call(t,function(e){return e.track});return Array.prototype.map.call(t,function(e){var t=kt(e.track);return e.src&&(t.src=e.src),t}).concat(Array.prototype.filter.call(e.textTracks(),function(e){return-1===i.indexOf(e)}).map(kt))},It=function(e,i){return e.forEach(function(e){var t=i.addRemoteTextTrack(e).track;!e.src&&e.cues&&e.cues.forEach(function(e){return t.addCue(e)})}),i.textTracks()},xt="vjs-modal-dialog",At=function(n){function e(e,t){var i=n.call(this,e,t)||this;return i.handleKeyDown_=function(e){return i.handleKeyDown(e)},i.close_=function(e){return i.close(e)},i.opened_=i.hasBeenOpened_=i.hasBeenFilled_=!1,i.closeable(!i.options_.uncloseable),i.content(i.options_.content),i.contentEl_=$("div",{className:xt+"-content"},{role:"document"}),i.descEl_=$("p",{className:xt+"-description vjs-control-text",id:i.el().getAttribute("aria-describedby")}),J(i.descEl_,i.description()),i.el_.appendChild(i.descEl_),i.el_.appendChild(i.contentEl_),i}mt(e,n);var t=e.prototype;return t.createEl=function(){return n.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},t.dispose=function(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,n.prototype.dispose.call(this)},t.buildCSSClass=function(){return xt+" vjs-hidden "+n.prototype.buildCSSClass.call(this)},t.label=function(){return this.localize(this.options_.label||"Modal Window")},t.description=function(){var e=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(e+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),e},t.open=function(){var e;this.opened_||(e=this.player(),this.trigger("beforemodalopen"),this.opened_=!0,!this.options_.fillAlways&&(this.hasBeenOpened_||this.hasBeenFilled_)||this.fill(),this.wasPlaying_=!e.paused(),this.options_.pauseOnOpen&&this.wasPlaying_&&e.pause(),this.on("keydown",this.handleKeyDown_),this.hadControls_=e.controls(),e.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0)},t.opened=function(e){return"boolean"==typeof e&&this[e?"open":"close"](),this.opened_},t.close=function(){var e;this.opened_&&(e=this.player(),this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&e.play(),this.off("keydown",this.handleKeyDown_),this.hadControls_&&e.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.conditionalBlur_(),this.options_.temporary&&this.dispose())},t.closeable=function(e){var t,i;return"boolean"==typeof e&&(t=this.closeable_=!!e,i=this.getChild("closeButton"),t&&!i&&(e=this.contentEl_,this.contentEl_=this.el_,i=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=e,this.on(i,"close",this.close_)),!t&&i&&(this.off(i,"close",this.close_),this.removeChild(i),i.dispose())),this.closeable_},t.fill=function(){this.fillWith(this.content())},t.fillWith=function(e){var t=this.contentEl(),i=t.parentNode,n=t.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,i.removeChild(t),this.empty(),ve(t,e),this.trigger("modalfill"),n?i.insertBefore(t,n):i.appendChild(t);t=this.getChild("closeButton");t&&i.appendChild(t.el_)},t.empty=function(){this.trigger("beforemodalempty"),me(this.contentEl()),this.trigger("modalempty")},t.content=function(e){return"undefined"!=typeof e&&(this.content_=e),this.content_},t.conditionalFocus_=function(){var e=document.activeElement,t=this.player_.el_;this.previouslyActiveEl_=null,!t.contains(e)&&t!==e||(this.previouslyActiveEl_=e,this.focus())},t.conditionalBlur_=function(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null)},t.handleKeyDown=function(e){if(e.stopPropagation(),ht.isEventKey(e,"Escape")&&this.closeable())return e.preventDefault(),void this.close();if(ht.isEventKey(e,"Tab")){for(var t,i=this.focusableEls_(),n=this.el_.querySelector(":focus"),r=0;r<i.length;r++)if(n===i[r]){t=r;break}document.activeElement===this.el_&&(t=0),e.shiftKey&&0===t?(i[i.length-1].focus(),e.preventDefault()):e.shiftKey||t!==i.length-1||(i[0].focus(),e.preventDefault())}},t.focusableEls_=function(){var e=this.el_.querySelectorAll("*");return Array.prototype.filter.call(e,function(e){return(e instanceof window.HTMLAnchorElement||e instanceof window.HTMLAreaElement)&&e.hasAttribute("href")||(e instanceof window.HTMLInputElement||e instanceof window.HTMLSelectElement||e instanceof window.HTMLTextAreaElement||e instanceof window.HTMLButtonElement)&&!e.hasAttribute("disabled")||e instanceof window.HTMLIFrameElement||e instanceof window.HTMLObjectElement||e instanceof window.HTMLEmbedElement||e.hasAttribute("tabindex")&&-1!==e.getAttribute("tabindex")||e.hasAttribute("contenteditable")})},e}(pt);At.prototype.options_={pauseOnOpen:!0,temporary:!0},pt.registerComponent("ModalDialog",At);var Pt,Lt=function(n){function e(e){var t;void 0===e&&(e=[]),(t=n.call(this)||this).tracks_=[],Object.defineProperty(ft(t),"length",{get:function(){return this.tracks_.length}});for(var i=0;i<e.length;i++)t.addTrack(e[i]);return t}mt(e,n);var t=e.prototype;return t.addTrack=function(e){var t=this,i=this.tracks_.length;""+i in this||Object.defineProperty(this,i,{get:function(){return this.tracks_[i]}}),-1===this.tracks_.indexOf(e)&&(this.tracks_.push(e),this.trigger({track:e,type:"addtrack",target:this})),e.labelchange_=function(){t.trigger({track:e,type:"labelchange",target:t})},it(e)&&e.addEventListener("labelchange",e.labelchange_)},t.removeTrack=function(e){for(var t,i=0,n=this.length;i<n;i++)if(this[i]===e){(t=this[i]).off&&t.off(),this.tracks_.splice(i,1);break}t&&this.trigger({track:t,type:"removetrack",target:this})},t.getTrackById=function(e){for(var t=null,i=0,n=this.length;i<n;i++){var r=this[i];if(r.id===e){t=r;break}}return t},e}(ze);for(Pt in Lt.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack",labelchange:"labelchange"},Lt.prototype.allowedEvents_)Lt.prototype["on"+Pt]=null;function Dt(e,t){for(var i=0;i<e.length;i++)Object.keys(e[i]).length&&t.id!==e[i].id&&(e[i].enabled=!1)}function Ot(e,t){for(var i=0;i<e.length;i++)Object.keys(e[i]).length&&t.id!==e[i].id&&(e[i].selected=!1)}function Rt(e){var t=["protocol","hostname","port","pathname","search","hash","host"],i=document.createElement("a");i.href=e;for(var n={},r=0;r<t.length;r++)n[t[r]]=i[t[r]];return"http:"===n.protocol&&(n.host=n.host.replace(/:80$/,"")),"https:"===n.protocol&&(n.host=n.host.replace(/:443$/,"")),n.protocol||(n.protocol=window.location.protocol),n.host||(n.host=window.location.host),n}function Mt(e){var t;return e.match(/^https?:\/\//)||((t=document.createElement("a")).href=e,e=t.href),e}function Nt(e){if("string"==typeof e){e=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/.exec(e);if(e)return e.pop().toLowerCase()}return""}function Ut(e,t){return void 0===t&&(t=window.location),(":"===(e=Rt(e)).protocol?t:e).protocol+e.host!==t.protocol+t.host}var Bt=function(n){function e(e){for(var t,i=(e=void 0===e?[]:e).length-1;0<=i;i--)if(e[i].enabled){Dt(e,e[i]);break}return(t=n.call(this,e)||this).changing_=!1,t}mt(e,n);var t=e.prototype;return t.addTrack=function(e){var t=this;e.enabled&&Dt(this,e),n.prototype.addTrack.call(this,e),e.addEventListener&&(e.enabledChange_=function(){t.changing_||(t.changing_=!0,Dt(t,e),t.changing_=!1,t.trigger("change"))},e.addEventListener("enabledchange",e.enabledChange_))},t.removeTrack=function(e){n.prototype.removeTrack.call(this,e),e.removeEventListener&&e.enabledChange_&&(e.removeEventListener("enabledchange",e.enabledChange_),e.enabledChange_=null)},e}(Lt),Ft=function(n){function e(e){for(var t,i=(e=void 0===e?[]:e).length-1;0<=i;i--)if(e[i].selected){Ot(e,e[i]);break}return(t=n.call(this,e)||this).changing_=!1,Object.defineProperty(ft(t),"selectedIndex",{get:function(){for(var e=0;e<this.length;e++)if(this[e].selected)return e;return-1},set:function(){}}),t}mt(e,n);var t=e.prototype;return t.addTrack=function(e){var t=this;e.selected&&Ot(this,e),n.prototype.addTrack.call(this,e),e.addEventListener&&(e.selectedChange_=function(){t.changing_||(t.changing_=!0,Ot(t,e),t.changing_=!1,t.trigger("change"))},e.addEventListener("selectedchange",e.selectedChange_))},t.removeTrack=function(e){n.prototype.removeTrack.call(this,e),e.removeEventListener&&e.selectedChange_&&(e.removeEventListener("selectedchange",e.selectedChange_),e.selectedChange_=null)},e}(Lt),k=function(i){function e(){return i.apply(this,arguments)||this}mt(e,i);var t=e.prototype;return t.addTrack=function(e){var t=this;i.prototype.addTrack.call(this,e),this.queueChange_||(this.queueChange_=function(){return t.queueTrigger("change")}),this.triggerSelectedlanguagechange||(this.triggerSelectedlanguagechange_=function(){return t.trigger("selectedlanguagechange")}),e.addEventListener("modechange",this.queueChange_);-1===["metadata","chapters"].indexOf(e.kind)&&e.addEventListener("modechange",this.triggerSelectedlanguagechange_)},t.removeTrack=function(e){i.prototype.removeTrack.call(this,e),e.removeEventListener&&(this.queueChange_&&e.removeEventListener("modechange",this.queueChange_),this.selectedlanguagechange_&&e.removeEventListener("modechange",this.triggerSelectedlanguagechange_))},e}(Lt),jt=function(){function e(e){void 0===e&&(e=[]),this.trackElements_=[],Object.defineProperty(this,"length",{get:function(){return this.trackElements_.length}});for(var t=0,i=e.length;t<i;t++)this.addTrackElement_(e[t])}var t=e.prototype;return t.addTrackElement_=function(e){var t=this.trackElements_.length;""+t in this||Object.defineProperty(this,t,{get:function(){return this.trackElements_[t]}}),-1===this.trackElements_.indexOf(e)&&this.trackElements_.push(e)},t.getTrackElementByTrack_=function(e){for(var t,i=0,n=this.trackElements_.length;i<n;i++)if(e===this.trackElements_[i].track){t=this.trackElements_[i];break}return t},t.removeTrackElement_=function(e){for(var t=0,i=this.trackElements_.length;t<i;t++)if(e===this.trackElements_[t]){this.trackElements_[t].track&&"function"==typeof this.trackElements_[t].track.off&&this.trackElements_[t].track.off(),"function"==typeof this.trackElements_[t].off&&this.trackElements_[t].off(),this.trackElements_.splice(t,1);break}},e}(),Ht=function(){function t(e){t.prototype.setCues_.call(this,e),Object.defineProperty(this,"length",{get:function(){return this.length_}})}var e=t.prototype;return e.setCues_=function(e){var t=this.length||0,i=0,n=e.length;this.cues_=e,this.length_=e.length;function r(e){""+e in this||Object.defineProperty(this,""+e,{get:function(){return this.cues_[e]}})}if(t<n)for(i=t;i<n;i++)r.call(this,i)},e.getCueById=function(e){for(var t=null,i=0,n=this.length;i<n;i++){var r=this[i];if(r.id===e){t=r;break}}return t},t}(),qt={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},Vt={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},Wt={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},Gt={disabled:"disabled",hidden:"hidden",showing:"showing"},C=function(a){function e(e){void 0===e&&(e={});var t,i=a.call(this)||this,n={id:e.id||"vjs_track_"+Pe++,kind:e.kind||"",language:e.language||""},r=e.label||"";for(t in n)!function(e){Object.defineProperty(ft(i),e,{get:function(){return n[e]},set:function(){}})}(t);return Object.defineProperty(ft(i),"label",{get:function(){return r},set:function(e){e!==r&&(r=e,this.trigger("labelchange"))}}),i}return mt(e,a),e}(ze),zt=Object.freeze({__proto__:null,parseUrl:Rt,getAbsoluteURL:Mt,getFileExtension:Nt,isCrossOrigin:Ut}),Xt="undefined"!=typeof window?window:"undefined"!=typeof f?f:"undefined"!=typeof self?self:{},Kt=Xt,Yt=function(e){if(!e)return!1;var t=Qt.call(e);return"[object Function]"===t||"function"==typeof e&&"[object RegExp]"!==t||"undefined"!=typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)},Qt=Object.prototype.toString;ei.httpHandler=function(n,r){return void 0===r&&(r=!1),function(e,t,i){if(e)n(e);else if(400<=t.statusCode&&t.statusCode<=599){e=i;if(r)if(Kt.TextDecoder){t=function(e){void 0===e&&(e="");return e.toLowerCase().split(";").reduce(function(e,t){var i=t.split("="),t=i[0],i=i[1];return"charset"===t.trim()?i.trim():e},"utf-8")}(t.headers&&t.headers["content-type"]);try{e=new TextDecoder(t).decode(i)}catch(e){}}else e=String.fromCharCode.apply(null,new Uint8Array(i));n({cause:e})}else n(null,i)}};
13
  /**
14
  * @license
15
  * slighly modified parse-headers 2.0.2 <https://github.com/kesla/parse-headers/>
16
  * Copyright (c) 2014 David Björklund
17
  * Available under the MIT license
18
  * <https://github.com/kesla/parse-headers/blob/master/LICENCE>
19
+ */
20
+ var $t=function(e){var n={};return e&&e.trim().split("\n").forEach(function(e){var t=e.indexOf(":"),i=e.slice(0,t).trim().toLowerCase(),t=e.slice(t+1).trim();"undefined"==typeof n[i]?n[i]=t:Array.isArray(n[i])?n[i].push(t):n[i]=[n[i],t]}),n},Jt=ei,I=ei;function Zt(e,t,i){var n=e;return Yt(t)?(i=t,"string"==typeof e&&(n={uri:e})):n=g({},t,{uri:e}),n.callback=i,n}function ei(e,t,i){return ti(t=Zt(e,t,i))}function ti(n){if("undefined"==typeof n.callback)throw new Error("callback argument missing");var r=!1,a=function(e,t,i){r||(r=!0,n.callback(e,t,i))};function s(){var e=void 0,e=l.response||l.responseText||function(e){try{if("document"===e.responseType)return e.responseXML;var t=e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName;if(""===e.responseType&&!t)return e.responseXML}catch(e){}return null}(l);if(m)try{e=JSON.parse(e)}catch(e){}return e}function t(e){return clearTimeout(u),(e=!(e instanceof Error)?new Error(""+(e||"Unknown XMLHttpRequest Error")):e).statusCode=0,a(e,g)}function e(){if(!o){clearTimeout(u);var e=n.useXDR&&void 0===l.status?200:1223===l.status?204:l.status,t=g,i=null;return 0!==e?(t={body:s(),statusCode:e,method:d,headers:{},url:c,rawRequest:l},l.getAllResponseHeaders&&(t.headers=$t(l.getAllResponseHeaders()))):i=new Error("Internal XMLHttpRequest Error"),a(i,t,t.body)}}var i,o,u,l=n.xhr||null,c=(l=l||new(n.cors||n.useXDR?ei.XDomainRequest:ei.XMLHttpRequest)).url=n.uri||n.url,d=l.method=n.method||"GET",h=n.body||n.data,p=l.headers=n.headers||{},f=!!n.sync,m=!1,g={body:void 0,headers:{},statusCode:0,method:d,url:c,rawRequest:l};if("json"in n&&!1!==n.json&&(m=!0,p.accept||p.Accept||(p.Accept="application/json"),"GET"!==d&&"HEAD"!==d&&(p["content-type"]||p["Content-Type"]||(p["Content-Type"]="application/json"),h=JSON.stringify(!0===n.json?h:n.json))),l.onreadystatechange=function(){4===l.readyState&&setTimeout(e,0)},l.onload=e,l.onerror=t,l.onprogress=function(){},l.onabort=function(){o=!0},l.ontimeout=t,l.open(d,c,!f,n.username,n.password),f||(l.withCredentials=!!n.withCredentials),!f&&0<n.timeout&&(u=setTimeout(function(){var e;o||(o=!0,l.abort("timeout"),(e=new Error("XMLHttpRequest timeout")).code="ETIMEDOUT",t(e))},n.timeout)),l.setRequestHeader)for(i in p)p.hasOwnProperty(i)&&l.setRequestHeader(i,p[i]);else if(n.headers&&!function(e){for(var t in e)if(e.hasOwnProperty(t))return;return 1}(n.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in n&&(l.responseType=n.responseType),"beforeSend"in n&&"function"==typeof n.beforeSend&&n.beforeSend(l),l.send(h||null),l}ei.XMLHttpRequest=Kt.XMLHttpRequest||function(){},ei.XDomainRequest="withCredentials"in new ei.XMLHttpRequest?ei.XMLHttpRequest:Kt.XDomainRequest,function(e,t){for(var i=0;i<e.length;i++)t(e[i])}(["get","put","post","patch","head","delete"],function(n){ei["delete"===n?"del":n]=function(e,t,i){return(t=Zt(e,t,i)).method=n.toUpperCase(),ti(t)}}),Jt.default=I;function ii(e,t){var i=new window.WebVTT.Parser(window,window.vttjs,window.WebVTT.StringDecoder()),n=[];i.oncue=function(e){t.addCue(e)},i.onparsingerror=function(e){n.push(e)},i.onflush=function(){t.trigger({type:"loadeddata",target:t})},i.parse(e),0<n.length&&(window.console&&window.console.groupCollapsed&&window.console.groupCollapsed("Text Track parsing errors for "+t.src),n.forEach(function(e){return h.error(e)}),window.console&&window.console.groupEnd&&window.console.groupEnd()),i.flush()}function ni(e,n){var t={uri:e};(e=Ut(e))&&(t.cors=e),(e="use-credentials"===n.tech_.crossOrigin())&&(t.withCredentials=e),Jt(t,Ve(this,function(e,t,i){return e?h.error(e,t):(n.loaded_=!0,void("function"!=typeof window.WebVTT?n.tech_&&n.tech_.any(["vttjsloaded","vttjserror"],function(e){return"vttjserror"!==e.type?ii(i,n):void h.error("vttjs failed to load, stopping trying to process "+n.src)}):ii(i,n)))}))}var ri=function(u){function e(e){var t;if(!(e=void 0===e?{}:e).tech)throw new Error("A tech was not provided.");var e=lt(e,{kind:Wt[e.kind]||"subtitles",language:e.language||e.srclang||""}),i=Gt[e.mode]||"disabled",n=e.default;"metadata"!==e.kind&&"chapters"!==e.kind||(i="hidden"),(t=u.call(this,e)||this).tech_=e.tech,t.cues_=[],t.activeCues_=[],t.preload_=!1!==t.tech_.preloadTextTracks;var r=new Ht(t.cues_),s=new Ht(t.activeCues_),o=!1,a=Ve(ft(t),function(){this.tech_.isReady_&&!this.tech_.isDisposed()&&(this.activeCues=this.activeCues,o&&(this.trigger("cuechange"),o=!1))});return t.tech_.one("dispose",function(){t.tech_.off("timeupdate",a)}),"disabled"!==i&&t.tech_.on("timeupdate",a),Object.defineProperties(ft(t),{default:{get:function(){return n},set:function(){}},mode:{get:function(){return i},set:function(e){Gt[e]&&i!==e&&(i=e,this.preload_||"disabled"===i||0!==this.cues.length||ni(this.src,this),this.tech_.off("timeupdate",a),"disabled"!==i&&this.tech_.on("timeupdate",a),this.trigger("modechange"))}},cues:{get:function(){return this.loaded_?r:null},set:function(){}},activeCues:{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return s;for(var e=this.tech_.currentTime(),t=[],i=0,n=this.cues.length;i<n;i++){var r=this.cues[i];(r.startTime<=e&&r.endTime>=e||r.startTime===r.endTime&&r.startTime<=e&&r.startTime+.5>=e)&&t.push(r)}if(o=!1,t.length!==this.activeCues_.length)o=!0;else for(var a=0;a<t.length;a++)-1===this.activeCues_.indexOf(t[a])&&(o=!0);return this.activeCues_=t,s.setCues_(this.activeCues_),s},set:function(){}}}),e.src?(t.src=e.src,t.preload_||(t.loaded_=!0),(t.preload_||"subtitles"!==e.kind&&"captions"!==e.kind)&&ni(t.src,ft(t))):t.loaded_=!0,t}mt(e,u);var t=e.prototype;return t.addCue=function(e){var t=e;if(window.vttjs&&!(e instanceof window.vttjs.VTTCue)){for(var i in t=new window.vttjs.VTTCue(e.startTime,e.endTime,e.text),e)i in t||(t[i]=e[i]);t.id=e.id,t.originalCue_=e}for(var n=this.tech_.textTracks(),r=0;r<n.length;r++)n[r]!==this&&n[r].removeCue(t);this.cues_.push(t),this.cues.setCues_(this.cues_)},t.removeCue=function(e){for(var t=this.cues_.length;t--;){var i=this.cues_[t];if(i===e||i.originalCue_&&i.originalCue_===e){this.cues_.splice(t,1),this.cues.setCues_(this.cues_);break}}},e}(C);ri.prototype.allowedEvents_={cuechange:"cuechange"};x=function(n){function e(e){var t=lt(e=void 0===e?{}:e,{kind:Vt[e.kind]||""}),e=n.call(this,t)||this,i=!1;return Object.defineProperty(ft(e),"enabled",{get:function(){return i},set:function(e){"boolean"==typeof e&&e!==i&&(i=e,this.trigger("enabledchange"))}}),t.enabled&&(e.enabled=t.enabled),e.loaded_=!0,e}return mt(e,n),e}(C),U=function(n){function e(e){var t=lt(e=void 0===e?{}:e,{kind:qt[e.kind]||""}),e=n.call(this,t)||this,i=!1;return Object.defineProperty(ft(e),"selected",{get:function(){return i},set:function(e){"boolean"==typeof e&&e!==i&&(i=e,this.trigger("selectedchange"))}}),t.selected&&(e.selected=t.selected),e}return mt(e,n),e}(C),j=function(r){function e(e){var t;void 0===e&&(e={});var i=r.call(this)||this,n=new ri(e);return i.kind=n.kind,i.src=n.src,i.srclang=n.language,i.label=n.label,i.default=n.default,Object.defineProperties(ft(i),{readyState:{get:function(){return t}},track:{get:function(){return n}}}),t=0,n.addEventListener("loadeddata",function(){t=2,i.trigger({type:"load",target:ft(i)})}),i}return mt(e,r),e}(ze);j.prototype.allowedEvents_={load:"load"},j.NONE=0,j.LOADING=1,j.LOADED=2,j.ERROR=3;var ai={audio:{ListClass:Bt,TrackClass:x,capitalName:"Audio"},video:{ListClass:Ft,TrackClass:U,capitalName:"Video"},text:{ListClass:k,TrackClass:ri,capitalName:"Text"}};Object.keys(ai).forEach(function(e){ai[e].getterName=e+"Tracks",ai[e].privateName=e+"Tracks_"});var si={remoteText:{ListClass:k,TrackClass:ri,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:jt,TrackClass:j,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},oi=g({},ai,si);si.names=Object.keys(si),ai.names=Object.keys(ai),oi.names=[].concat(si.names).concat(ai.names);var ui="undefined"!=typeof f?f:"undefined"!=typeof window?window:{},li="undefined"!=typeof document?document:(li=ui["__GLOBAL_DOCUMENT_CACHE@4"])||(ui["__GLOBAL_DOCUMENT_CACHE@4"]={}),Xt=li,ci=Object.create||function(e){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return di.prototype=e,new di};function di(){}function hi(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}function pi(e){function t(e,t,i,n){return 3600*(0|e)+60*(0|t)+(0|i)+(0|n)/1e3}e=e.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);return e?e[3]?t(e[1],e[2],e[3].replace(":",""),e[4]):59<e[1]?t(e[1],e[2],0,e[4]):t(0,e[1],e[2],e[4]):null}function fi(){this.values=ci(null)}function mi(e,t,i,n){var r,a,s=n?e.split(n):[e];for(r in s)"string"==typeof s[r]&&(2===(a=s[r].split(i)).length&&t(a[0],a[1]))}function gi(t,e,s){var i=t;function n(){var e=pi(t);if(null===e)throw new hi(hi.Errors.BadTimeStamp,"Malformed timestamp: "+i);return t=t.replace(/^[^\sa-zA-Z-]+/,""),e}function r(){t=t.replace(/^\s+/,"")}if(r(),e.startTime=n(),r(),"--\x3e"!==t.substr(0,3))throw new hi(hi.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+i);t=t.substr(3),r(),e.endTime=n(),r(),function(e,t){var a=new fi;mi(e,function(e,t){switch(e){case"region":for(var i=s.length-1;0<=i;i--)if(s[i].id===t){a.set(e,s[i].region);break}break;case"vertical":a.alt(e,t,["rl","lr"]);break;case"line":var n=t.split(","),r=n[0];a.integer(e,r),a.percent(e,r)&&a.set("snapToLines",!1),a.alt(e,r,["auto"]),2===n.length&&a.alt("lineAlign",n[1],["start","center","end"]);break;case"position":n=t.split(","),a.percent(e,n[0]),2===n.length&&a.alt("positionAlign",n[1],["start","center","end"]);break;case"size":a.percent(e,t);break;case"align":a.alt(e,t,["start","center","end","left","right"])}},/:/,/\s/),t.region=a.get("region",null),t.vertical=a.get("vertical","");try{t.line=a.get("line","auto")}catch(e){}t.lineAlign=a.get("lineAlign","start"),t.snapToLines=a.get("snapToLines",!0),t.size=a.get("size",100);try{t.align=a.get("align","center")}catch(e){t.align=a.get("align","middle")}try{t.position=a.get("position","auto")}catch(e){t.position=a.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},t.align)}t.positionAlign=a.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},t.align)}(t,e)}((hi.prototype=ci(Error.prototype)).constructor=hi).Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},fi.prototype={set:function(e,t){this.get(e)||""===t||(this.values[e]=t)},get:function(e,t,i){return i?this.has(e)?this.values[e]:t[i]:this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,i){for(var n=0;n<i.length;++n)if(t===i[n]){this.set(e,t);break}},integer:function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},percent:function(e,t){return!!(t.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&0<=(t=parseFloat(t))&&t<=100)&&(this.set(e,t),!0)}};var yi=Xt.createElement&&Xt.createElement("textarea"),vi={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},_i={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},bi={v:"title",lang:"lang"},Ti={rt:"ruby"};function Si(e,t){for(var i,n,r,a,s,o,u,l,c,d,h=e.document.createElement("div"),p=h,f=[];null!==(i=function(){if(!t)return null;var e=t.match(/^([^<]*)(<[^>]*>?)?/);return e=e[1]||e[2],t=t.substr(e.length),e}());)"<"!==i[0]?p.appendChild(e.document.createTextNode((s=i,yi.innerHTML=s,s=yi.textContent,yi.textContent="",s))):"/"!==i[1]?(a=pi(i.substr(1,i.length-2)))?(n=e.document.createProcessingInstruction("timestamp",a),p.appendChild(n)):(r=i.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/))&&(l=r[1],c=r[3],d=void 0,d=vi[l],(n=d?(d=e.document.createElement(d),(l=bi[l])&&c&&(d[l]=c.trim()),d):null)&&(o=p,Ti[(u=n).localName]&&Ti[u.localName]!==o.localName||(r[2]&&((a=r[2].split(".")).forEach(function(e){var t=/^bg_/.test(e),e=t?e.slice(3):e;_i.hasOwnProperty(e)&&(e=_i[e],n.style[t?"background-color":"color"]=e)}),n.className=a.join(" ")),f.push(r[1]),p.appendChild(n),p=n))):f.length&&f[f.length-1]===i.substr(2).replace(">","")&&(f.pop(),p=p.parentNode);return h}var wi=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function Ei(e){var t=[],i="";if(!e||!e.childNodes)return"ltr";function a(e,t){for(var i=t.childNodes.length-1;0<=i;i--)e.push(t.childNodes[i])}for(a(t,e);i=function e(t){if(!t||!t.length)return null;var i=t.pop(),n=i.textContent||i.innerText;if(n){var r=n.match(/^.*(\n|\r)/);return r?r[t.length=0]:n}return"ruby"===i.tagName?e(t):i.childNodes?(a(t,i),e(t)):void 0}(t);)for(var n=0;n<i.length;n++)if(function(e){for(var t=0;t<wi.length;t++){var i=wi[t];if(e>=i[0]&&e<=i[1])return 1}}(i.charCodeAt(n)))return"rtl";return"ltr"}function ki(){}function Ci(e,t,i){ki.call(this),this.cue=t,this.cueDiv=Si(e,t.text);var n={color:"rgba(255, 255, 255, 1)",backgroundColor:"rgba(0, 0, 0, 0.8)",position:"relative",left:0,right:0,top:0,bottom:0,display:"inline",writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"};this.applyStyles(n,this.cueDiv),this.div=e.document.createElement("div"),n={direction:Ei(this.cueDiv),writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext",textAlign:"middle"===t.align?"center":t.align,font:i.font,whiteSpace:"pre-line",position:"absolute"},this.applyStyles(n),this.div.appendChild(this.cueDiv);var r=0;switch(t.positionAlign){case"start":r=t.position;break;case"center":r=t.position-t.size/2;break;case"end":r=t.position-t.size}""===t.vertical?this.applyStyles({left:this.formatStyle(r,"%"),width:this.formatStyle(t.size,"%")}):this.applyStyles({top:this.formatStyle(r,"%"),height:this.formatStyle(t.size,"%")}),this.move=function(e){this.applyStyles({top:this.formatStyle(e.top,"px"),bottom:this.formatStyle(e.bottom,"px"),left:this.formatStyle(e.left,"px"),right:this.formatStyle(e.right,"px"),height:this.formatStyle(e.height,"px"),width:this.formatStyle(e.width,"px")})}}function Ii(e){var t,i,n,r;e.div&&(t=e.div.offsetHeight,i=e.div.offsetWidth,n=e.div.offsetTop,r=(r=e.div.childNodes)&&(r=r[0])&&r.getClientRects&&r.getClientRects(),e=e.div.getBoundingClientRect(),r=r?Math.max(r[0]&&r[0].height||0,e.height/r.length):0),this.left=e.left,this.right=e.right,this.top=e.top||n,this.height=e.height||t,this.bottom=e.bottom||n+(e.height||t),this.width=e.width||i,this.lineHeight=void 0!==r?r:e.lineHeight}function xi(e,t,o,u){var i,n=new Ii(t),r=t.cue,a=function(e){if("number"==typeof e.line&&(e.snapToLines||0<=e.line&&e.line<=100))return e.line;if(!e.track||!e.track.textTrackList||!e.track.textTrackList.mediaElement)return-1;for(var t=e.track,i=t.textTrackList,n=0,r=0;r<i.length&&i[r]!==t;r++)"showing"===i[r].mode&&n++;return-1*++n}(r),s=[];if(r.snapToLines){switch(r.vertical){case"":s=["+y","-y"],i="height";break;case"rl":s=["+x","-x"],i="width";break;case"lr":s=["-x","+x"],i="width"}var l=n.lineHeight,c=l*Math.round(a),d=o[i]+l,h=s[0];Math.abs(c)>d&&(c=c<0?-1:1,c*=Math.ceil(d/l)*l),a<0&&(c+=""===r.vertical?o.height:o.width,s=s.reverse()),n.move(h,c)}else{var p=n.lineHeight/o.height*100;switch(r.lineAlign){case"center":a-=p/2;break;case"end":a-=p}switch(r.vertical){case"":t.applyStyles({top:t.formatStyle(a,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(a,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(a,"%")})}s=["+y","-x","+x","-y"],n=new Ii(t)}n=function(e,t){for(var i,n=new Ii(e),r=1,a=0;a<t.length;a++){for(;e.overlapsOppositeAxis(o,t[a])||e.within(o)&&e.overlapsAny(u);)e.move(t[a]);if(e.within(o))return e;var s=e.intersectPercentage(o);s<r&&(i=new Ii(e),r=s),e=new Ii(n)}return i||n}(n,s);t.move(n.toCSSCompatValues(o))}function Ai(){}ki.prototype.applyStyles=function(e,t){for(var i in t=t||this.div,e)e.hasOwnProperty(i)&&(t.style[i]=e[i])},ki.prototype.formatStyle=function(e,t){return 0===e?0:e+t},(Ci.prototype=ci(ki.prototype)).constructor=Ci,Ii.prototype.move=function(e,t){switch(t=void 0!==t?t:this.lineHeight,e){case"+x":this.left+=t,this.right+=t;break;case"-x":this.left-=t,this.right-=t;break;case"+y":this.top+=t,this.bottom+=t;break;case"-y":this.top-=t,this.bottom-=t}},Ii.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top},Ii.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1},Ii.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},Ii.prototype.overlapsOppositeAxis=function(e,t){switch(t){case"+x":return this.left<e.left;case"-x":return this.right>e.right;case"+y":return this.top<e.top;case"-y":return this.bottom>e.bottom}},Ii.prototype.intersectPercentage=function(e){return Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left))*Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top))/(this.height*this.width)},Ii.prototype.toCSSCompatValues=function(e){return{top:this.top-e.top,bottom:e.bottom-this.bottom,left:this.left-e.left,right:e.right-this.right,height:this.height,width:this.width}},Ii.getSimpleBoxPosition=function(e){var t=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0,i=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0,n=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;return{left:(e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e).left,right:e.right,top:e.top||n,height:e.height||t,bottom:e.bottom||n+(e.height||t),width:e.width||i}},Ai.StringDecoder=function(){return{decode:function(e){if(!e)return"";if("string"!=typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},Ai.convertCueToDOMTree=function(e,t){return e&&t?Si(e,t):null};Ai.processCues=function(n,r,e){if(!n||!r||!e)return null;for(;e.firstChild;)e.removeChild(e.firstChild);var a=n.document.createElement("div");if(a.style.position="absolute",a.style.left="0",a.style.right="0",a.style.top="0",a.style.bottom="0",a.style.margin="1.5%",e.appendChild(a),function(e){for(var t=0;t<e.length;t++)if(e[t].hasBeenReset||!e[t].displayState)return 1}(r)){var s=[],o=Ii.getSimpleBoxPosition(a),u={font:Math.round(.05*o.height*100)/100+"px sans-serif"};!function(){for(var e,t,i=0;i<r.length;i++)t=r[i],e=new Ci(n,t,u),a.appendChild(e.div),xi(0,e,o,s),t.displayState=e.div,s.push(Ii.getSimpleBoxPosition(e))}()}else for(var t=0;t<r.length;t++)a.appendChild(r[t].displayState)},(Ai.Parser=function(e,t,i){i||(i=t,t={}),t=t||{},this.window=e,this.vttjs=t,this.state="INITIAL",this.buffer="",this.decoder=i||new TextDecoder("utf8"),this.regionList=[]}).prototype={reportOrThrowError:function(e){if(!(e instanceof hi))throw e;this.onparsingerror&&this.onparsingerror(e)},parse:function(e){var n=this;function t(){for(var e=n.buffer,t=0;t<e.length&&"\r"!==e[t]&&"\n"!==e[t];)++t;var i=e.substr(0,t);return"\r"===e[t]&&++t,"\n"===e[t]&&++t,n.buffer=e.substr(t),i}function i(e){e.match(/X-TIMESTAMP-MAP/)?mi(e,function(e,t){var i;"X-TIMESTAMP-MAP"===e&&(t=t,i=new fi,mi(t,function(e,t){switch(e){case"MPEGT":i.integer(e+"S",t);break;case"LOCA":i.set(e+"L",pi(t))}},/[^\d]:/,/,/),n.ontimestampmap&&n.ontimestampmap({MPEGTS:i.get("MPEGTS"),LOCAL:i.get("LOCAL")}))},/=/):mi(e,function(e,t){var r;"Region"===e&&(t=t,r=new fi,mi(t,function(e,t){switch(e){case"id":r.set(e,t);break;case"width":r.percent(e,t);break;case"lines":r.integer(e,t);break;case"regionanchor":case"viewportanchor":var i=t.split(",");if(2!==i.length)break;var n=new fi;if(n.percent("x",i[0]),n.percent("y",i[1]),!n.has("x")||!n.has("y"))break;r.set(e+"X",n.get("x")),r.set(e+"Y",n.get("y"));break;case"scroll":r.alt(e,t,["up"])}},/=/,/\s/),r.has("id")&&((t=new(n.vttjs.VTTRegion||n.window.VTTRegion)).width=r.get("width",100),t.lines=r.get("lines",3),t.regionAnchorX=r.get("regionanchorX",0),t.regionAnchorY=r.get("regionanchorY",100),t.viewportAnchorX=r.get("viewportanchorX",0),t.viewportAnchorY=r.get("viewportanchorY",100),t.scroll=r.get("scroll",""),n.onregion&&n.onregion(t),n.regionList.push({id:r.get("id"),region:t})))},/:/)}e&&(n.buffer+=n.decoder.decode(e,{stream:!0}));try{if("INITIAL"===n.state){if(!/\r\n|\n/.test(n.buffer))return this;var r,a=(r=t()).match(/^WEBVTT([ \t].*)?$/);if(!a||!a[0])throw new hi(hi.Errors.BadSignature);n.state="HEADER"}for(var s=!1;n.buffer;){if(!/\r\n|\n/.test(n.buffer))return this;switch(s?s=!1:r=t(),n.state){case"HEADER":/:/.test(r)?i(r):r||(n.state="ID");continue;case"NOTE":r||(n.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(r)){n.state="NOTE";break}if(!r)continue;n.cue=new(n.vttjs.VTTCue||n.window.VTTCue)(0,0,"");try{n.cue.align="center"}catch(e){n.cue.align="middle"}if(n.state="CUE",-1===r.indexOf("--\x3e")){n.cue.id=r;continue}case"CUE":try{gi(r,n.cue,n.regionList)}catch(e){n.reportOrThrowError(e),n.cue=null,n.state="BADCUE";continue}n.state="CUETEXT";continue;case"CUETEXT":var o=-1!==r.indexOf("--\x3e");if(!r||o&&(s=!0)){n.oncue&&n.oncue(n.cue),n.cue=null,n.state="ID";continue}n.cue.text&&(n.cue.text+="\n"),n.cue.text+=r.replace(/\u2028/g,"\n").replace(/u2029/g,"\n");continue;case"BADCUE":r||(n.state="ID");continue}}}catch(e){n.reportOrThrowError(e),"CUETEXT"===n.state&&n.cue&&n.oncue&&n.oncue(n.cue),n.cue=null,n.state="INITIAL"===n.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var t=this;try{if(t.buffer+=t.decoder.decode(),!t.cue&&"HEADER"!==t.state||(t.buffer+="\n\n",t.parse()),"INITIAL"===t.state)throw new hi(hi.Errors.BadSignature)}catch(e){t.reportOrThrowError(e)}return t.onflush&&t.onflush(),this}};var Pi=Ai,Li={"":1,lr:1,rl:1},Di={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};function Oi(e){return"string"==typeof e&&(!!Di[e.toLowerCase()]&&e.toLowerCase())}function Ri(e,t,i){this.hasBeenReset=!1;var n="",r=!1,a=e,s=t,o=i,u=null,l="",c=!0,d="auto",h="start",p="auto",f="auto",m=100,g="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return n},set:function(e){n=""+e}},pauseOnExit:{enumerable:!0,get:function(){return r},set:function(e){r=!!e}},startTime:{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e)throw new TypeError("Start time must be set to a number.");a=e,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e)throw new TypeError("End time must be set to a number.");s=e,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return o},set:function(e){o=""+e,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return u},set:function(e){u=e,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return l},set:function(e){e="string"==typeof(e=e)&&(!!Li[e.toLowerCase()]&&e.toLowerCase());if(!1===e)throw new SyntaxError("Vertical: an invalid or illegal direction string was specified.");l=e,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return c},set:function(e){c=!!e,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return d},set:function(e){if("number"!=typeof e&&"auto"!==e)throw new SyntaxError("Line: an invalid number or illegal string was specified.");d=e,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return h},set:function(e){e=Oi(e);e&&(h=e,this.hasBeenReset=!0)}},position:{enumerable:!0,get:function(){return p},set:function(e){if(e<0||100<e)throw new Error("Position must be between 0 and 100.");p=e,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return f},set:function(e){e=Oi(e);e&&(f=e,this.hasBeenReset=!0)}},size:{enumerable:!0,get:function(){return m},set:function(e){if(e<0||100<e)throw new Error("Size must be between 0 and 100.");m=e,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return g},set:function(e){e=Oi(e);if(!e)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");g=e,this.hasBeenReset=!0}}}),this.displayState=void 0}Ri.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)};var Mi=Ri,Ni={"":!0,up:!0};function Ui(e){return"number"==typeof e&&0<=e&&e<=100}function Bi(){var t=100,i=3,n=0,r=100,a=0,s=100,o="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return t},set:function(e){if(!Ui(e))throw new Error("Width must be between 0 and 100.");t=e}},lines:{enumerable:!0,get:function(){return i},set:function(e){if("number"!=typeof e)throw new TypeError("Lines must be set to a number.");i=e}},regionAnchorY:{enumerable:!0,get:function(){return r},set:function(e){if(!Ui(e))throw new Error("RegionAnchorX must be between 0 and 100.");r=e}},regionAnchorX:{enumerable:!0,get:function(){return n},set:function(e){if(!Ui(e))throw new Error("RegionAnchorY must be between 0 and 100.");n=e}},viewportAnchorY:{enumerable:!0,get:function(){return s},set:function(e){if(!Ui(e))throw new Error("ViewportAnchorY must be between 0 and 100.");s=e}},viewportAnchorX:{enumerable:!0,get:function(){return a},set:function(e){if(!Ui(e))throw new Error("ViewportAnchorX must be between 0 and 100.");a=e}},scroll:{enumerable:!0,get:function(){return o},set:function(e){e="string"==typeof(e=e)&&(!!Ni[e.toLowerCase()]&&e.toLowerCase());!1===e||(o=e)}}})}var Fi=m(function(e){e=e.exports={WebVTT:Pi,VTTCue:Mi,VTTRegion:Bi};Kt.vttjs=e,Kt.WebVTT=e.WebVTT;var t=e.VTTCue,i=e.VTTRegion,n=Kt.VTTCue,r=Kt.VTTRegion;e.shim=function(){Kt.VTTCue=t,Kt.VTTRegion=i},e.restore=function(){Kt.VTTCue=n,Kt.VTTRegion=r},Kt.VTTCue||e.shim()});Fi.WebVTT,Fi.VTTCue,Fi.VTTRegion;var ji=function(n){function i(t,e){var i;return void 0===e&&(e=function(){}),(t=void 0===t?{}:t).reportTouchActivity=!1,(i=n.call(this,null,t,e)||this).onDurationChange_=function(e){return i.onDurationChange(e)},i.trackProgress_=function(e){return i.trackProgress(e)},i.trackCurrentTime_=function(e){return i.trackCurrentTime(e)},i.stopTrackingCurrentTime_=function(e){return i.stopTrackingCurrentTime(e)},i.disposeSourceHandler_=function(e){return i.disposeSourceHandler(e)},i.hasStarted_=!1,i.on("playing",function(){this.hasStarted_=!0}),i.on("loadstart",function(){this.hasStarted_=!1}),oi.names.forEach(function(e){e=oi[e];t&&t[e.getterName]&&(i[e.privateName]=t[e.getterName])}),i.featuresProgressEvents||i.manualProgressOn(),i.featuresTimeupdateEvents||i.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(function(e){!1===t["native"+e+"Tracks"]&&(i["featuresNative"+e+"Tracks"]=!1)}),!1===t.nativeCaptions||!1===t.nativeTextTracks?i.featuresNativeTextTracks=!1:!0!==t.nativeCaptions&&!0!==t.nativeTextTracks||(i.featuresNativeTextTracks=!0),i.featuresNativeTextTracks||i.emulateTextTracks(),i.preloadTextTracks=!1!==t.preloadTextTracks,i.autoRemoteTextTracks_=new oi.text.ListClass,i.initTrackListeners(),t.nativeControlsForTouch||i.emitTapEvents(),i.constructor&&(i.name_=i.constructor.name||"Unknown Tech"),i}mt(i,n);var e=i.prototype;return e.triggerSourceset=function(e){var t=this;this.isReady_||this.one("ready",function(){return t.setTimeout(function(){return t.triggerSourceset(e)},1)}),this.trigger({src:e,type:"sourceset"})},e.manualProgressOn=function(){this.on("durationchange",this.onDurationChange_),this.manualProgress=!0,this.one("ready",this.trackProgress_)},e.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange_)},e.trackProgress=function(e){this.stopTrackingProgress(),this.progressInterval=this.setInterval(Ve(this,function(){var e=this.bufferedPercent();this.bufferedPercent_!==e&&this.trigger("progress"),1===(this.bufferedPercent_=e)&&this.stopTrackingProgress()}),500)},e.onDurationChange=function(e){this.duration_=this.duration()},e.buffered=function(){return vt(0,0)},e.bufferedPercent=function(){return _t(this.buffered(),this.duration_)},e.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},e.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime_),this.on("pause",this.stopTrackingCurrentTime_)},e.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime_),this.off("pause",this.stopTrackingCurrentTime_)},e.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)},e.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},e.dispose=function(){this.clearTracks(ai.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),n.prototype.dispose.call(this)},e.clearTracks=function(e){var r=this;(e=[].concat(e)).forEach(function(e){for(var t=r[e+"Tracks"]()||[],i=t.length;i--;){var n=t[i];"text"===e&&r.removeRemoteTextTrack(n),t.removeTrack(n)}})},e.cleanupAutoTextTracks=function(){for(var e=this.autoRemoteTextTracks_||[],t=e.length;t--;){var i=e[t];this.removeRemoteTextTrack(i)}},e.reset=function(){},e.crossOrigin=function(){},e.setCrossOrigin=function(){},e.error=function(e){return void 0!==e&&(this.error_=new bt(e),this.trigger("error")),this.error_},e.played=function(){return this.hasStarted_?vt(0,0):vt()},e.play=function(){},e.setScrubbing=function(){},e.scrubbing=function(){},e.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},e.initTrackListeners=function(){var r=this;ai.names.forEach(function(e){function t(){r.trigger(e+"trackchange")}var i=ai[e],n=r[i.getterName]();n.addEventListener("removetrack",t),n.addEventListener("addtrack",t),r.on("dispose",function(){n.removeEventListener("removetrack",t),n.removeEventListener("addtrack",t)})})},e.addWebVttScript_=function(){var e,t=this;window.WebVTT||(document.body.contains(this.el())?!this.options_["vtt.js"]&&S(Fi)&&0<Object.keys(Fi).length?this.trigger("vttjsloaded"):((e=document.createElement("script")).src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js",e.onload=function(){t.trigger("vttjsloaded")},e.onerror=function(){t.trigger("vttjserror")},this.on("dispose",function(){e.onload=null,e.onerror=null}),window.WebVTT=!0,this.el().parentNode.appendChild(e)):this.ready(this.addWebVttScript_))},e.emulateTextTracks=function(){function t(e){return n.addTrack(e.track)}function i(e){return n.removeTrack(e.track)}var e=this,n=this.textTracks(),r=this.remoteTextTracks();r.on("addtrack",t),r.on("removetrack",i),this.addWebVttScript_();function a(){return e.trigger("texttrackchange")}function s(){a();for(var e=0;e<n.length;e++){var t=n[e];t.removeEventListener("cuechange",a),"showing"===t.mode&&t.addEventListener("cuechange",a)}}s(),n.addEventListener("change",s),n.addEventListener("addtrack",s),n.addEventListener("removetrack",s),this.on("dispose",function(){r.off("addtrack",t),r.off("removetrack",i),n.removeEventListener("change",s),n.removeEventListener("addtrack",s),n.removeEventListener("removetrack",s);for(var e=0;e<n.length;e++)n[e].removeEventListener("cuechange",a)})},e.addTextTrack=function(e,t,i){if(!e)throw new Error("TextTrack kind is required but was not provided");return function(e,t,i,n,r){void 0===r&&(r={});var a=e.textTracks();return r.kind=t,i&&(r.label=i),n&&(r.language=n),r.tech=e,r=new oi.text.TrackClass(r),a.addTrack(r),r}(this,e,t,i)},e.createRemoteTextTrack=function(e){e=lt(e,{tech:this});return new si.remoteTextEl.TrackClass(e)},e.addRemoteTextTrack=function(e,t){var i=this,n=this.createRemoteTextTrack(e=void 0===e?{}:e);return!0!==t&&!1!==t&&(h.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),t=!0),this.remoteTextTrackEls().addTrackElement_(n),this.remoteTextTracks().addTrack(n.track),!0!==t&&this.ready(function(){return i.autoRemoteTextTracks_.addTrack(n.track)}),n},e.removeRemoteTextTrack=function(e){var t=this.remoteTextTrackEls().getTrackElementByTrack_(e);this.remoteTextTrackEls().removeTrackElement_(t),this.remoteTextTracks().removeTrack(e),this.autoRemoteTextTracks_.removeTrack(e)},e.getVideoPlaybackQuality=function(){return{}},e.requestPictureInPicture=function(){var e=this.options_.Promise||window.Promise;if(e)return e.reject()},e.disablePictureInPicture=function(){return!0},e.setDisablePictureInPicture=function(){},e.setPoster=function(){},e.playsinline=function(){},e.setPlaysinline=function(){},e.overrideNativeAudioTracks=function(){},e.overrideNativeVideoTracks=function(){},e.canPlayType=function(){return""},i.canPlayType=function(){return""},i.canPlaySource=function(e,t){return i.canPlayType(e.type)},i.isTech=function(e){return e.prototype instanceof i||e instanceof i||e===i},i.registerTech=function(e,t){if(i.techs_||(i.techs_={}),!i.isTech(t))throw new Error("Tech "+e+" must be a Tech");if(!i.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!i.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return e=ut(e),i.techs_[e]=t,i.techs_[ot(e)]=t,"Tech"!==e&&i.defaultTechOrder_.push(e),t},i.getTech=function(e){if(e)return i.techs_&&i.techs_[e]?i.techs_[e]:(e=ut(e),window&&window.videojs&&window.videojs[e]?(h.warn("The "+e+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),window.videojs[e]):void 0)},i}(pt);oi.names.forEach(function(e){var t=oi[e];ji.prototype[t.getterName]=function(){return this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName]}}),ji.prototype.featuresVolumeControl=!0,ji.prototype.featuresMuteControl=!0,ji.prototype.featuresFullscreenResize=!1,ji.prototype.featuresPlaybackRate=!1,ji.prototype.featuresProgressEvents=!1,ji.prototype.featuresSourceset=!1,ji.prototype.featuresTimeupdateEvents=!1,ji.prototype.featuresNativeTextTracks=!1,ji.withSourceHandlers=function(r){r.registerSourceHandler=function(e,t){var i=(i=r.sourceHandlers)||(r.sourceHandlers=[]);void 0===t&&(t=i.length),i.splice(t,0,e)},r.canPlayType=function(e){for(var t,i=r.sourceHandlers||[],n=0;n<i.length;n++)if(t=i[n].canPlayType(e))return t;return""},r.selectSourceHandler=function(e,t){for(var i=r.sourceHandlers||[],n=0;n<i.length;n++)if(i[n].canHandleSource(e,t))return i[n];return null},r.canPlaySource=function(e,t){var i=r.selectSourceHandler(e,t);return i?i.canHandleSource(e,t):""};["seekable","seeking","duration"].forEach(function(e){var t=this[e];"function"==typeof t&&(this[e]=function(){return this.sourceHandler_&&this.sourceHandler_[e]?this.sourceHandler_[e].apply(this.sourceHandler_,arguments):t.apply(this,arguments)})},r.prototype),r.prototype.setSource=function(e){var t=r.selectSourceHandler(e,this.options_);t||(r.nativeSourceHandler?t=r.nativeSourceHandler:h.error("No source handler found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler_),t!==r.nativeSourceHandler&&(this.currentSource_=e),this.sourceHandler_=t.handleSource(e,this,this.options_),this.one("dispose",this.disposeSourceHandler_)},r.prototype.disposeSourceHandler=function(){this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null),this.cleanupAutoTextTracks(),this.sourceHandler_&&(this.sourceHandler_.dispose&&this.sourceHandler_.dispose(),this.sourceHandler_=null)}},pt.registerComponent("Tech",ji),ji.registerTech("Tech",ji),ji.defaultTechOrder_=[];var Hi={},qi={},Vi={};function Wi(e,t,i){e.setTimeout(function(){return function i(n,e,r,a,s,o){void 0===n&&(n={});void 0===e&&(e=[]);void 0===s&&(s=[]);void 0===o&&(o=!1);var t=e,e=t[0],u=t.slice(1);if("string"==typeof e)i(n,Hi[e],r,a,s,o);else if(e){var l=Qi(a,e);if(!l.setSource)return s.push(l),i(n,u,r,a,s,o);l.setSource(b({},n),function(e,t){return e?i(n,u,r,a,s,o):(s.push(l),void i(t,n.type===t.type?u:Hi[t.type],r,a,s,o))})}else u.length?i(n,u,r,a,s,o):o?r(n,s):i(n,Hi["*"],r,a,s,!0)}(t,Hi[t.type],i,e)},1)}function Gi(e,t,i,n){void 0===n&&(n=null);var r="call"+ut(i),r=e.reduce(Yi(r),n),n=r===Vi,r=n?null:t[i](r);return function(e,t,i,n){for(var r=e.length-1;0<=r;r--){var a=e[r];a[t]&&a[t](n,i)}}(e,i,r,n),r}var zi={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1,ended:1},Xi={setCurrentTime:1,setMuted:1,setVolume:1},Ki={play:1,pause:1};function Yi(i){return function(e,t){return e===Vi?Vi:t[i]?t[i](e):e}}function Qi(e,t){var i=qi[e.id()],n=null;if(null==i)return n=t(e),qi[e.id()]=[[t,n]],n;for(var r=0;r<i.length;r++){var a=i[r],s=a[0],a=a[1];s===t&&(n=a)}return null===n&&(n=t(e),i.push([t,n])),n}function $i(e){return e=Nt(e=void 0===e?"":e),Zi[e.toLowerCase()]||""}function Ji(e){var t;return e=Array.isArray(e)?(t=[],e.forEach(function(e){e=Ji(e),Array.isArray(e)?t=t.concat(e):T(e)&&t.push(e)}),t):"string"==typeof e&&e.trim()?[en({src:e})]:T(e)&&"string"==typeof e.src&&e.src&&e.src.trim()?[en(e)]:[]}var Zi={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",m4a:"audio/mp4",mp3:"audio/mpeg",aac:"audio/aac",caf:"audio/x-caf",flac:"audio/flac",oga:"audio/ogg",wav:"audio/wav",m3u8:"application/x-mpegURL",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",png:"image/png",svg:"image/svg+xml",webp:"image/webp"};function en(e){var t;return e.type||(t=$i(e.src))&&(e.type=t),e}I=function(u){function e(e,t,i){var n=lt({createEl:!1},t),i=u.call(this,e,n,i)||this;if(t.playerOptions.sources&&0!==t.playerOptions.sources.length)e.src(t.playerOptions.sources);else for(var r=0,a=t.playerOptions.techOrder;r<a.length;r++){var s=ut(a[r]),o=ji.getTech(s);if((o=!s?pt.getComponent(s):o)&&o.isSupported()){e.loadTech_(s);break}}return i}return mt(e,u),e}(pt);pt.registerComponent("MediaLoader",I);C=function(n){function e(e,t){var i=n.call(this,e,t)||this;return i.handleMouseOver_=function(e){return i.handleMouseOver(e)},i.handleMouseOut_=function(e){return i.handleMouseOut(e)},i.handleClick_=function(e){return i.handleClick(e)},i.handleKeyDown_=function(e){return i.handleKeyDown(e)},i.emitTapEvents(),i.enable(),i}mt(e,n);var t=e.prototype;return t.createEl=function(e,t,i){void 0===e&&(e="div"),void 0===t&&(t={}),void 0===i&&(i={}),t=b({className:this.buildCSSClass(),tabIndex:0},t),"button"===e&&h.error("Creating a ClickableComponent with an HTML element of "+e+" is not supported; use a Button instead."),i=b({role:"button"},i),this.tabIndex_=t.tabIndex;i=$(e,t,i);return i.appendChild($("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(i),i},t.dispose=function(){this.controlTextEl_=null,n.prototype.dispose.call(this)},t.createControlTextEl=function(e){return this.controlTextEl_=$("span",{className:"vjs-control-text"},{"aria-live":"polite"}),e&&e.appendChild(this.controlTextEl_),this.controlText(this.controlText_,e),this.controlTextEl_},t.controlText=function(e,t){if(void 0===t&&(t=this.el()),void 0===e)return this.controlText_||"Need Text";var i=this.localize(e);this.controlText_=e,J(this.controlTextEl_,i),this.nonIconControl||this.player_.options_.noUITitleAttributes||t.setAttribute("title",i)},t.buildCSSClass=function(){return"vjs-control vjs-button "+n.prototype.buildCSSClass.call(this)},t.enable=function(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),"undefined"!=typeof this.tabIndex_&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick_),this.on("keydown",this.handleKeyDown_))},t.disable=function(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),"undefined"!=typeof this.tabIndex_&&this.el_.removeAttribute("tabIndex"),this.off("mouseover",this.handleMouseOver_),this.off("mouseout",this.handleMouseOut_),this.off(["tap","click"],this.handleClick_),this.off("keydown",this.handleKeyDown_)},t.handleLanguagechange=function(){this.controlText(this.controlText_)},t.handleClick=function(e){this.options_.clickHandler&&this.options_.clickHandler.call(this,arguments)},t.handleKeyDown=function(e){ht.isEventKey(e,"Space")||ht.isEventKey(e,"Enter")?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):n.prototype.handleKeyDown.call(this,e)},e}(pt);pt.registerComponent("ClickableComponent",C),pt.registerComponent("PosterImage",function(n){function e(e,t){var i=n.call(this,e,t)||this;return i.update(),i.update_=function(e){return i.update(e)},e.on("posterchange",i.update_),i}mt(e,n);var t=e.prototype;return t.dispose=function(){this.player().off("posterchange",this.update_),n.prototype.dispose.call(this)},t.createEl=function(){return $("div",{className:"vjs-poster",tabIndex:-1})},t.update=function(e){var t=this.player().poster();this.setSrc(t),t?this.show():this.hide()},t.setSrc=function(e){this.el_.style.backgroundImage=e?'url("'+e+'")':""},t.handleClick=function(e){var t;this.player_.controls()&&(t=this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&0<this.player_.eme.sessions.length,!this.player_.tech(!0)||(N||O)&&t||this.player_.tech(!0).focus(),this.player_.paused()?Et(this.player_.play()):this.player_.pause())},e}(C));var tn="#222",nn={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function rn(e,t){var i;if(4===e.length)i=e[1]+e[1]+e[2]+e[2]+e[3]+e[3];else{if(7!==e.length)throw new Error("Invalid color code provided, "+e+"; must be formatted as e.g. #f0e or #f604e2.");i=e.slice(1)}return"rgba("+parseInt(i.slice(0,2),16)+","+parseInt(i.slice(2,4),16)+","+parseInt(i.slice(4,6),16)+","+t+")"}function an(e,t,i){try{e.style[t]=i}catch(e){return}}pt.registerComponent("TextTrackDisplay",function(a){function e(i,e,t){function n(e){return r.updateDisplay(e)}var r=a.call(this,i,e,t)||this;return i.on("loadstart",function(e){return r.toggleDisplay(e)}),i.on("texttrackchange",n),i.on("loadedmetadata",function(e){return r.preselectTrack(e)}),i.ready(Ve(ft(r),function(){if(i.tech_&&i.tech_.featuresNativeTextTracks)this.hide();else{i.on("fullscreenchange",n),i.on("playerresize",n),window.addEventListener("orientationchange",n),i.on("dispose",function(){return window.removeEventListener("orientationchange",n)});for(var e=this.options_.playerOptions.tracks||[],t=0;t<e.length;t++)this.player_.addRemoteTextTrack(e[t],!0);this.preselectTrack()}})),r}mt(e,a);var t=e.prototype;return t.preselectTrack=function(){for(var e,t,i,n={captions:1,subtitles:1},r=this.player_.textTracks(),a=this.player_.cache_.selectedLanguage,s=0;s<r.length;s++){var o=r[s];a&&a.enabled&&a.language&&a.language===o.language&&o.kind in n?i=o.kind!==a.kind&&i||o:a&&!a.enabled?t=e=i=null:o.default&&("descriptions"!==o.kind||e?o.kind in n&&!t&&(t=o):e=o)}i?i.mode="showing":t?t.mode="showing":e&&(e.mode="showing")},t.toggleDisplay=function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},t.createEl=function(){return a.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{translate:"yes","aria-live":"off","aria-atomic":"true"})},t.clearDisplay=function(){"function"==typeof window.WebVTT&&window.WebVTT.processCues(window,[],this.el_)},t.updateDisplay=function(){var e=this.player_.textTracks(),t=this.options_.allowMultipleShowingTracks;if(this.clearDisplay(),t){for(var i=[],n=0;n<e.length;++n){var r=e[n];"showing"===r.mode&&i.push(r)}this.updateForTrack(i)}else{for(var a=null,s=null,o=e.length;o--;){var u=e[o];"showing"===u.mode&&("descriptions"===u.kind?a=u:s=u)}s?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(s)):a&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(a))}},t.updateDisplayState=function(e){for(var t=this.player_.textTrackSettings.getValues(),i=e.activeCues,n=i.length;n--;){var r,a=i[n];a&&(r=a.displayState,t.color&&(r.firstChild.style.color=t.color),t.textOpacity&&an(r.firstChild,"color",rn(t.color||"#fff",t.textOpacity)),t.backgroundColor&&(r.firstChild.style.backgroundColor=t.backgroundColor),t.backgroundOpacity&&an(r.firstChild,"backgroundColor",rn(t.backgroundColor||"#000",t.backgroundOpacity)),t.windowColor&&(t.windowOpacity?an(r,"backgroundColor",rn(t.windowColor,t.windowOpacity)):r.style.backgroundColor=t.windowColor),t.edgeStyle&&("dropshadow"===t.edgeStyle?r.firstChild.style.textShadow="2px 2px 3px #222, 2px 2px 4px #222, 2px 2px 5px "+tn:"raised"===t.edgeStyle?r.firstChild.style.textShadow="1px 1px #222, 2px 2px #222, 3px 3px "+tn:"depressed"===t.edgeStyle?r.firstChild.style.textShadow="1px 1px #ccc, 0 1px #ccc, -1px -1px #222, 0 -1px "+tn:"uniform"===t.edgeStyle&&(r.firstChild.style.textShadow="0 0 4px #222, 0 0 4px #222, 0 0 4px #222, 0 0 4px "+tn)),t.fontPercent&&1!==t.fontPercent&&(a=window.parseFloat(r.style.fontSize),r.style.fontSize=a*t.fontPercent+"px",r.style.height="auto",r.style.top="auto"),t.fontFamily&&"default"!==t.fontFamily&&("small-caps"===t.fontFamily?r.firstChild.style.fontVariant="small-caps":r.firstChild.style.fontFamily=nn[t.fontFamily]))}},t.updateForTrack=function(e){if(Array.isArray(e)||(e=[e]),"function"==typeof window.WebVTT&&!e.every(function(e){return!e.activeCues})){for(var t=[],i=0;i<e.length;++i)for(var n=e[i],r=0;r<n.activeCues.length;++r)t.push(n.activeCues[r]);window.WebVTT.processCues(window,t,this.el_);for(var a=0;a<e.length;++a){for(var s=e[a],o=0;o<s.activeCues.length;++o){var u=s.activeCues[o].displayState;te(u,"vjs-text-track-cue"),te(u,"vjs-text-track-cue-"+(s.language||a)),s.language&&oe(u,"lang",s.language)}this.player_.textTrackSettings&&this.updateDisplayState(s)}}},e}(pt)),pt.registerComponent("LoadingSpinner",function(i){function e(){return i.apply(this,arguments)||this}return mt(e,i),e.prototype.createEl=function(){var e=this.player_.isAudio(),t=this.localize(e?"Audio Player":"Video Player"),e=$("span",{className:"vjs-control-text",textContent:this.localize("{1} is loading.",[t])}),t=i.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"});return t.appendChild(e),t},e}(pt));var sn=function(t){function e(){return t.apply(this,arguments)||this}mt(e,t);var i=e.prototype;return i.createEl=function(e,t,i){void 0===t&&(t={}),void 0===i&&(i={});i=$("button",t=b({className:this.buildCSSClass()},t),i=b({type:"button"},i));return i.appendChild($("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(i),i},i.addChild=function(e,t){void 0===t&&(t={});var i=this.constructor.name;return h.warn("Adding an actionable (user controllable) child to a Button ("+i+") is not supported; use a ClickableComponent instead."),pt.prototype.addChild.call(this,e,t)},i.enable=function(){t.prototype.enable.call(this),this.el_.removeAttribute("disabled")},i.disable=function(){t.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},i.handleKeyDown=function(e){ht.isEventKey(e,"Space")||ht.isEventKey(e,"Enter")?e.stopPropagation():t.prototype.handleKeyDown.call(this,e)},e}(C);pt.registerComponent("Button",sn);Bt=function(n){function e(e,t){var i=n.call(this,e,t)||this;return i.mouseused_=!1,i.on("mousedown",function(e){return i.handleMouseDown(e)}),i}mt(e,n);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-big-play-button"},t.handleClick=function(e){var t=this.player_.play();if(this.mouseused_&&e.clientX&&e.clientY){var i=this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&0<this.player_.eme.sessions.length;return Et(t),void(!this.player_.tech(!0)||(N||O)&&i||this.player_.tech(!0).focus())}var i=this.player_.getChild("controlBar"),n=i&&i.getChild("playToggle");n?(i=function(){return n.focus()},wt(t)?t.then(i,function(){}):this.setTimeout(i,1)):this.player_.tech(!0).focus()},t.handleKeyDown=function(e){this.mouseused_=!1,n.prototype.handleKeyDown.call(this,e)},t.handleMouseDown=function(e){this.mouseused_=!0},e}(sn);Bt.prototype.controlText_="Play Video",pt.registerComponent("BigPlayButton",Bt),pt.registerComponent("CloseButton",function(i){function e(e,t){e=i.call(this,e,t)||this;return e.controlText(t&&t.controlText||e.localize("Close")),e}mt(e,i);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-close-button "+i.prototype.buildCSSClass.call(this)},t.handleClick=function(e){this.trigger({type:"close",bubbles:!1})},t.handleKeyDown=function(e){ht.isEventKey(e,"Esc")?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):i.prototype.handleKeyDown.call(this,e)},e}(sn));Ft=function(n){function e(e,t){var i=n.call(this,e,t=void 0===t?{}:t)||this;return t.replay=void 0===t.replay||t.replay,i.on(e,"play",function(e){return i.handlePlay(e)}),i.on(e,"pause",function(e){return i.handlePause(e)}),t.replay&&i.on(e,"ended",function(e){return i.handleEnded(e)}),i}mt(e,n);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-play-control "+n.prototype.buildCSSClass.call(this)},t.handleClick=function(e){this.player_.paused()?Et(this.player_.play()):this.player_.pause()},t.handleSeeked=function(e){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(e):this.handlePlay(e)},t.handlePlay=function(e){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},t.handlePause=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},t.handleEnded=function(e){var t=this;this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.controlText("Replay"),this.one(this.player_,"seeked",function(e){return t.handleSeeked(e)})},e}(sn);Ft.prototype.controlText_="Play",pt.registerComponent("PlayToggle",Ft);function on(e,t){e=e<0?0:e;var i=Math.floor(e%60),n=Math.floor(e/60%60),r=Math.floor(e/3600),a=Math.floor(t/60%60),t=Math.floor(t/3600);return(r=0<(r=isNaN(e)||e===1/0?n=i="-":r)||0<t?r+":":"")+(n=((r||10<=a)&&n<10?"0"+n:n)+":")+(i=i<10?"0"+i:i)}var un=on;function ln(e,t){return un(e,t=void 0===t?e:t)}k=function(n){function e(e,t){var i=n.call(this,e,t)||this;return i.on(e,["timeupdate","ended"],function(e){return i.updateContent(e)}),i.updateTextNode_(),i}mt(e,n);var t=e.prototype;return t.createEl=function(){var e=this.buildCSSClass(),t=n.prototype.createEl.call(this,"div",{className:e+" vjs-time-control vjs-control"}),i=$("span",{className:"vjs-control-text",textContent:this.localize(this.labelText_)+" "},{role:"presentation"});return t.appendChild(i),this.contentEl_=$("span",{className:e+"-display"},{"aria-live":"off",role:"presentation"}),t.appendChild(this.contentEl_),t},t.dispose=function(){this.contentEl_=null,this.textNode_=null,n.prototype.dispose.call(this)},t.updateTextNode_=function(e){var t=this;e=ln(e=void 0===e?0:e),this.formattedTime_!==e&&(this.formattedTime_=e,this.requestNamedAnimationFrame("TimeDisplay#updateTextNode_",function(){var e;t.contentEl_&&((e=t.textNode_)&&t.contentEl_.firstChild!==e&&(e=null,h.warn("TimeDisplay#updateTextnode_: Prevented replacement of text node element since it was no longer a child of this node. Appending a new node instead.")),t.textNode_=document.createTextNode(t.formattedTime_),t.textNode_&&(e?t.contentEl_.replaceChild(t.textNode_,e):t.contentEl_.appendChild(t.textNode_)))}))},t.updateContent=function(e){},e}(pt);k.prototype.labelText_="Time",k.prototype.controlText_="Time",pt.registerComponent("TimeDisplay",k);jt=function(e){function t(){return e.apply(this,arguments)||this}mt(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-current-time"},i.updateContent=function(e){var t=this.player_.ended()?this.player_.duration():this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.updateTextNode_(t)},t}(k);jt.prototype.labelText_="Current Time",jt.prototype.controlText_="Current Time",pt.registerComponent("CurrentTimeDisplay",jt);j=function(n){function e(e,t){var i=n.call(this,e,t)||this,t=function(e){return i.updateContent(e)};return i.on(e,"durationchange",t),i.on(e,"loadstart",t),i.on(e,"loadedmetadata",t),i}mt(e,n);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-duration"},t.updateContent=function(e){var t=this.player_.duration();this.updateTextNode_(t)},e}(k);j.prototype.labelText_="Duration",j.prototype.controlText_="Duration",pt.registerComponent("DurationDisplay",j),pt.registerComponent("TimeDivider",function(n){function e(){return n.apply(this,arguments)||this}return mt(e,n),e.prototype.createEl=function(){var e=n.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider"},{"aria-hidden":!0}),t=n.prototype.createEl.call(this,"div"),i=n.prototype.createEl.call(this,"span",{textContent:"/"});return t.appendChild(i),e.appendChild(t),e},e}(pt));f=function(n){function e(e,t){var i=n.call(this,e,t)||this;return i.on(e,"durationchange",function(e){return i.updateContent(e)}),i}mt(e,n);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-remaining-time"},t.createEl=function(){var e=n.prototype.createEl.call(this);return!1!==this.options_.displayNegative&&e.insertBefore($("span",{},{"aria-hidden":!0},"-"),this.contentEl_),e},t.updateContent=function(e){var t;"number"==typeof this.player_.duration()&&(t=this.player_.ended()?0:this.player_.remainingTimeDisplay?this.player_.remainingTimeDisplay():this.player_.remainingTime(),this.updateTextNode_(t))},e}(k);f.prototype.labelText_="Remaining Time",f.prototype.controlText_="Remaining Time",pt.registerComponent("RemainingTimeDisplay",f),pt.registerComponent("LiveDisplay",function(n){function e(e,t){var i=n.call(this,e,t)||this;return i.updateShowing(),i.on(i.player(),"durationchange",function(e){return i.updateShowing(e)}),i}mt(e,n);var t=e.prototype;return t.createEl=function(){var e=n.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=$("div",{className:"vjs-live-display"},{"aria-live":"off"}),this.contentEl_.appendChild($("span",{className:"vjs-control-text",textContent:this.localize("Stream Type")+" "})),this.contentEl_.appendChild(document.createTextNode(this.localize("LIVE"))),e.appendChild(this.contentEl_),e},t.dispose=function(){this.contentEl_=null,n.prototype.dispose.call(this)},t.updateShowing=function(e){this.player().duration()===1/0?this.show():this.hide()},e}(pt));ui=function(n){function e(e,t){var i=n.call(this,e,t)||this;return i.updateLiveEdgeStatus(),i.player_.liveTracker&&(i.updateLiveEdgeStatusHandler_=function(e){return i.updateLiveEdgeStatus(e)},i.on(i.player_.liveTracker,"liveedgechange",i.updateLiveEdgeStatusHandler_)),i}mt(e,n);var t=e.prototype;return t.createEl=function(){var e=n.prototype.createEl.call(this,"button",{className:"vjs-seek-to-live-control vjs-control"});return this.textEl_=$("span",{className:"vjs-seek-to-live-text",textContent:this.localize("LIVE")},{"aria-hidden":"true"}),e.appendChild(this.textEl_),e},t.updateLiveEdgeStatus=function(){!this.player_.liveTracker||this.player_.liveTracker.atLiveEdge()?(this.setAttribute("aria-disabled",!0),this.addClass("vjs-at-live-edge"),this.controlText("Seek to live, currently playing live")):(this.setAttribute("aria-disabled",!1),this.removeClass("vjs-at-live-edge"),this.controlText("Seek to live, currently behind live"))},t.handleClick=function(){this.player_.liveTracker.seekToLiveEdge()},t.dispose=function(){this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_),this.textEl_=null,n.prototype.dispose.call(this)},e}(sn);ui.prototype.controlText_="Seek to live, currently playing live",pt.registerComponent("SeekToLive",ui);function cn(e,t,i){return e=Number(e),Math.min(i,Math.max(t,isNaN(e)?t:e))}li=function(n){function e(e,t){var i=n.call(this,e,t)||this;return i.handleMouseDown_=function(e){return i.handleMouseDown(e)},i.handleMouseUp_=function(e){return i.handleMouseUp(e)},i.handleKeyDown_=function(e){return i.handleKeyDown(e)},i.handleClick_=function(e){return i.handleClick(e)},i.handleMouseMove_=function(e){return i.handleMouseMove(e)},i.update_=function(e){return i.update(e)},i.bar=i.getChild(i.options_.barName),i.vertical(!!i.options_.vertical),i.enable(),i}mt(e,n);var t=e.prototype;return t.enabled=function(){return this.enabled_},t.enable=function(){this.enabled()||(this.on("mousedown",this.handleMouseDown_),this.on("touchstart",this.handleMouseDown_),this.on("keydown",this.handleKeyDown_),this.on("click",this.handleClick_),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)},t.disable=function(){var e;this.enabled()&&(e=this.bar.el_.ownerDocument,this.off("mousedown",this.handleMouseDown_),this.off("touchstart",this.handleMouseDown_),this.off("keydown",this.handleKeyDown_),this.off("click",this.handleClick_),this.off(this.player_,"controlsvisible",this.update_),this.off(e,"mousemove",this.handleMouseMove_),this.off(e,"mouseup",this.handleMouseUp_),this.off(e,"touchmove",this.handleMouseMove_),this.off(e,"touchend",this.handleMouseUp_),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1)},t.createEl=function(e,t,i){return void 0===i&&(i={}),(t=void 0===t?{}:t).className=t.className+" vjs-slider",t=b({tabIndex:0},t),i=b({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},i),n.prototype.createEl.call(this,e,t,i)},t.handleMouseDown=function(e){var t=this.bar.el_.ownerDocument;"mousedown"===e.type&&e.preventDefault(),"touchstart"!==e.type||R||e.preventDefault(),le(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(t,"mousemove",this.handleMouseMove_),this.on(t,"mouseup",this.handleMouseUp_),this.on(t,"touchmove",this.handleMouseMove_),this.on(t,"touchend",this.handleMouseUp_),this.handleMouseMove(e,!0)},t.handleMouseMove=function(e){},t.handleMouseUp=function(){var e=this.bar.el_.ownerDocument;ce(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(e,"mousemove",this.handleMouseMove_),this.off(e,"mouseup",this.handleMouseUp_),this.off(e,"touchmove",this.handleMouseMove_),this.off(e,"touchend",this.handleMouseUp_),this.update()},t.update=function(){var t=this;if(this.el_&&this.bar){var i=this.getProgress();return i===this.progress_?i:(this.progress_=i,this.requestNamedAnimationFrame("Slider#update",function(){var e=t.vertical()?"height":"width";t.bar.el().style[e]=(100*i).toFixed(2)+"%"}),i)}},t.getProgress=function(){return Number(cn(this.getPercent(),0,1).toFixed(4))},t.calculateDistance=function(e){e=pe(this.el_,e);return this.vertical()?e.y:e.x},t.handleKeyDown=function(e){ht.isEventKey(e,"Left")||ht.isEventKey(e,"Down")?(e.preventDefault(),e.stopPropagation(),this.stepBack()):ht.isEventKey(e,"Right")||ht.isEventKey(e,"Up")?(e.preventDefault(),e.stopPropagation(),this.stepForward()):n.prototype.handleKeyDown.call(this,e)},t.handleClick=function(e){e.stopPropagation(),e.preventDefault()},t.vertical=function(e){if(void 0===e)return this.vertical_||!1;this.vertical_=!!e,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")},e}(pt);pt.registerComponent("Slider",li);function dn(e,t){return cn(e/t*100,0,100).toFixed(2)+"%"}pt.registerComponent("LoadProgressBar",function(r){function e(e,t){var i=r.call(this,e,t)||this;return i.partEls_=[],i.on(e,"progress",function(e){return i.update(e)}),i}mt(e,r);var t=e.prototype;return t.createEl=function(){var e=r.prototype.createEl.call(this,"div",{className:"vjs-load-progress"}),t=$("span",{className:"vjs-control-text"}),i=$("span",{textContent:this.localize("Loaded")}),n=document.createTextNode(": ");return this.percentageEl_=$("span",{className:"vjs-control-text-loaded-percentage",textContent:"0%"}),e.appendChild(t),t.appendChild(i),t.appendChild(n),t.appendChild(this.percentageEl_),e},t.dispose=function(){this.partEls_=null,this.percentageEl_=null,r.prototype.dispose.call(this)},t.update=function(e){var l=this;this.requestNamedAnimationFrame("LoadProgressBar#update",function(){var e=l.player_.liveTracker,t=l.player_.buffered(),e=e&&e.isLive()?e.seekableEnd():l.player_.duration(),i=l.player_.bufferedEnd(),n=l.partEls_,e=dn(i,e);l.percent_!==e&&(l.el_.style.width=e,J(l.percentageEl_,e),l.percent_=e);for(var r=0;r<t.length;r++){var a=t.start(r),s=t.end(r),o=n[r];o||(o=l.el_.appendChild($()),n[r]=o),o.dataset.start===a&&o.dataset.end===s||(o.dataset.start=a,o.dataset.end=s,o.style.left=dn(a,i),o.style.width=dn(s-a,i))}for(var u=n.length;u>t.length;u--)l.el_.removeChild(n[u-1]);n.length=t.length})},e}(pt)),pt.registerComponent("TimeTooltip",function(i){function e(e,t){t=i.call(this,e,t)||this;return t.update=We(Ve(ft(t),t.update),30),t}mt(e,i);var t=e.prototype;return t.createEl=function(){return i.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})},t.update=function(e,t,i){var n=he(this.el_),r=de(this.player_.el()),a=e.width*t;r&&n&&(t=e.left-r.left+a,r=e.width-a+(r.right-e.right),t<(e=n.width/2)?e+=e-t:r<e&&(e=r),e<0?e=0:e>n.width&&(e=n.width),e=Math.round(e),this.el_.style.right="-"+e+"px",this.write(i))},t.write=function(e){J(this.el_,e)},t.updateTime=function(n,r,a,s){var o=this;this.requestNamedAnimationFrame("TimeTooltip#updateTime",function(){var e,t,i=o.player_.duration();i=o.player_.liveTracker&&o.player_.liveTracker.isLive()?((t=(e=o.player_.liveTracker.liveWindow())-r*e)<1?"":"-")+ln(t,e):ln(a,i),o.update(n,r,i),s&&s()})},e}(pt));Xt=function(i){function e(e,t){t=i.call(this,e,t)||this;return t.update=We(Ve(ft(t),t.update),30),t}mt(e,i);var t=e.prototype;return t.createEl=function(){return i.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})},t.update=function(e,t){var i,n=this.getChild("timeTooltip");n&&(i=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),n.updateTime(e,t,i))},e}(pt);Xt.prototype.options_={children:[]},q||A||Xt.prototype.options_.children.push("timeTooltip"),pt.registerComponent("PlayProgressBar",Xt);I=function(i){function e(e,t){t=i.call(this,e,t)||this;return t.update=We(Ve(ft(t),t.update),30),t}mt(e,i);var t=e.prototype;return t.createEl=function(){return i.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},t.update=function(e,t){var i=this,n=t*this.player_.duration();this.getChild("timeTooltip").updateTime(e,t,n,function(){i.el_.style.left=e.width*t+"px"})},e}(pt);I.prototype.options_={children:["timeTooltip"]},pt.registerComponent("MouseTimeDisplay",I);Bt=function(a){function e(e,t){t=a.call(this,e,t)||this;return t.setEventHandlers_(),t}mt(e,a);var t=e.prototype;return t.setEventHandlers_=function(){var t=this;this.update_=Ve(this,this.update),this.update=We(this.update_,30),this.on(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.on(this.player_.liveTracker,"liveedgechange",this.update),this.updateInterval=null,this.enableIntervalHandler_=function(e){return t.enableInterval_(e)},this.disableIntervalHandler_=function(e){return t.disableInterval_(e)},this.on(this.player_,["playing"],this.enableIntervalHandler_),this.on(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in document&&"visibilityState"in document&&this.on(document,"visibilitychange",this.toggleVisibility_)},t.toggleVisibility_=function(e){"hidden"===document.visibilityState?(this.cancelNamedAnimationFrame("SeekBar#update"),this.cancelNamedAnimationFrame("Slider#update"),this.disableInterval_(e)):(this.player_.ended()||this.player_.paused()||this.enableInterval_(),this.update())},t.enableInterval_=function(){this.updateInterval||(this.updateInterval=this.setInterval(this.update,30))},t.disableInterval_=function(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&e&&"ended"!==e.type||this.updateInterval&&(this.clearInterval(this.updateInterval),this.updateInterval=null)},t.createEl=function(){return a.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},t.update=function(e){var n=this;if("hidden"!==document.visibilityState){var r=a.prototype.update.call(this);return this.requestNamedAnimationFrame("SeekBar#update",function(){var e=n.player_.ended()?n.player_.duration():n.getCurrentTime_(),t=n.player_.liveTracker,i=n.player_.duration();t&&t.isLive()&&(i=n.player_.liveTracker.liveCurrentTime()),n.percent_!==r&&(n.el_.setAttribute("aria-valuenow",(100*r).toFixed(2)),n.percent_=r),n.currentTime_===e&&n.duration_===i||(n.el_.setAttribute("aria-valuetext",n.localize("progress bar timing: currentTime={1} duration={2}",[ln(e,i),ln(i,i)],"{1} of {2}")),n.currentTime_=e,n.duration_=i),n.bar&&n.bar.update(de(n.el()),n.getProgress())}),r}},t.userSeek_=function(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser(),this.player_.currentTime(e)},t.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},t.getPercent=function(){var e,t=this.getCurrentTime_(),i=this.player_.liveTracker;return i&&i.isLive()?(e=(t-i.seekableStart())/i.liveWindow(),i.atLiveEdge()&&(e=1)):e=t/this.player_.duration(),e},t.handleMouseDown=function(e){_e(e)&&(e.stopPropagation(),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),a.prototype.handleMouseDown.call(this,e))},t.handleMouseMove=function(e,t){if(void 0===t&&(t=!1),_e(e)){t||this.player_.scrubbing()||this.player_.scrubbing(!0);var i=this.calculateDistance(e),n=this.player_.liveTracker;if(n&&n.isLive()){if(.99<=i)return void n.seekToLiveEdge();var r,t=n.seekableStart(),e=n.liveCurrentTime();if((r=(r=e<=(r=t+i*n.liveWindow())?e:r)<=t?t+.1:r)===1/0)return}else(r=i*this.player_.duration())===this.player_.duration()&&(r-=.1);this.userSeek_(r)}},t.enable=function(){a.prototype.enable.call(this);var e=this.getChild("mouseTimeDisplay");e&&e.show()},t.disable=function(){a.prototype.disable.call(this);var e=this.getChild("mouseTimeDisplay");e&&e.hide()},t.handleMouseUp=function(e){a.prototype.handleMouseUp.call(this,e),e&&e.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying?Et(this.player_.play()):this.update_()},t.stepForward=function(){this.userSeek_(this.player_.currentTime()+5)},t.stepBack=function(){this.userSeek_(this.player_.currentTime()-5)},t.handleAction=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},t.handleKeyDown=function(e){var t,i=this.player_.liveTracker;ht.isEventKey(e,"Space")||ht.isEventKey(e,"Enter")?(e.preventDefault(),e.stopPropagation(),this.handleAction(e)):ht.isEventKey(e,"Home")?(e.preventDefault(),e.stopPropagation(),this.userSeek_(0)):ht.isEventKey(e,"End")?(e.preventDefault(),e.stopPropagation(),i&&i.isLive()?this.userSeek_(i.liveCurrentTime()):this.userSeek_(this.player_.duration())):/^[0-9]$/.test(ht(e))?(e.preventDefault(),e.stopPropagation(),t=10*(ht.codes[ht(e)]-ht.codes[0])/100,i&&i.isLive()?this.userSeek_(i.seekableStart()+i.liveWindow()*t):this.userSeek_(this.player_.duration()*t)):ht.isEventKey(e,"PgDn")?(e.preventDefault(),e.stopPropagation(),this.userSeek_(this.player_.currentTime()-60)):ht.isEventKey(e,"PgUp")?(e.preventDefault(),e.stopPropagation(),this.userSeek_(this.player_.currentTime()+60)):a.prototype.handleKeyDown.call(this,e)},t.dispose=function(){this.disableInterval_(),this.off(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.update),this.off(this.player_,["playing"],this.enableIntervalHandler_),this.off(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in document&&"visibilityState"in document&&this.off(document,"visibilitychange",this.toggleVisibility_),a.prototype.dispose.call(this)},e}(li);Bt.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},q||A||Bt.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),pt.registerComponent("SeekBar",Bt);Ft=function(n){function e(e,t){var i=n.call(this,e,t)||this;return i.handleMouseMove=We(Ve(ft(i),i.handleMouseMove),30),i.throttledHandleMouseSeek=We(Ve(ft(i),i.handleMouseSeek),30),i.handleMouseUpHandler_=function(e){return i.handleMouseUp(e)},i.handleMouseDownHandler_=function(e){return i.handleMouseDown(e)},i.enable(),i}mt(e,n);var t=e.prototype;return t.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},t.handleMouseMove=function(e){var t,i,n,r,a=this.getChild("seekBar");a&&(t=a.getChild("playProgressBar"),i=a.getChild("mouseTimeDisplay"),(t||i)&&(r=he(n=a.el()),e=pe(n,e).x,e=cn(e,0,1),i&&i.update(r,e),t&&t.update(r,a.getProgress())))},t.handleMouseSeek=function(e){var t=this.getChild("seekBar");t&&t.handleMouseMove(e)},t.enabled=function(){return this.enabled_},t.disable=function(){var e;this.children().forEach(function(e){return e.disable&&e.disable()}),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDownHandler_),this.off(this.el_,"mousemove",this.handleMouseMove),this.removeListenersAddedOnMousedownAndTouchstart(),this.addClass("disabled"),this.enabled_=!1,this.player_.scrubbing()&&(e=this.getChild("seekBar"),this.player_.scrubbing(!1),e.videoWasPlaying&&Et(this.player_.play())))},t.enable=function(){this.children().forEach(function(e){return e.enable&&e.enable()}),this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDownHandler_),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)},t.removeListenersAddedOnMousedownAndTouchstart=function(){var e=this.el_.ownerDocument;this.off(e,"mousemove",this.throttledHandleMouseSeek),this.off(e,"touchmove",this.throttledHandleMouseSeek),this.off(e,"mouseup",this.handleMouseUpHandler_),this.off(e,"touchend",this.handleMouseUpHandler_)},t.handleMouseDown=function(e){var t=this.el_.ownerDocument,i=this.getChild("seekBar");i&&i.handleMouseDown(e),this.on(t,"mousemove",this.throttledHandleMouseSeek),this.on(t,"touchmove",this.throttledHandleMouseSeek),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)},t.handleMouseUp=function(e){var t=this.getChild("seekBar");t&&t.handleMouseUp(e),this.removeListenersAddedOnMousedownAndTouchstart()},e}(pt);Ft.prototype.options_={children:["seekBar"]},pt.registerComponent("ProgressControl",Ft);jt=function(n){function e(e,t){var i=n.call(this,e,t)||this;return i.on(e,["enterpictureinpicture","leavepictureinpicture"],function(e){return i.handlePictureInPictureChange(e)}),i.on(e,["disablepictureinpicturechanged","loadedmetadata"],function(e){return i.handlePictureInPictureEnabledChange(e)}),i.disable(),i}mt(e,n);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-picture-in-picture-control "+n.prototype.buildCSSClass.call(this)},t.handlePictureInPictureEnabledChange=function(){document.pictureInPictureEnabled&&!1===this.player_.disablePictureInPicture()?this.enable():this.disable()},t.handlePictureInPictureChange=function(e){this.player_.isInPictureInPicture()?this.controlText("Exit Picture-in-Picture"):this.controlText("Picture-in-Picture"),this.handlePictureInPictureEnabledChange()},t.handleClick=function(e){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture():this.player_.requestPictureInPicture()},e}(sn);jt.prototype.controlText_="Picture-in-Picture",pt.registerComponent("PictureInPictureToggle",jt);j=function(n){function e(e,t){var i=n.call(this,e,t)||this;return i.on(e,"fullscreenchange",function(e){return i.handleFullscreenChange(e)}),!1===document[e.fsApi_.fullscreenEnabled]&&i.disable(),i}mt(e,n);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-fullscreen-control "+n.prototype.buildCSSClass.call(this)},t.handleFullscreenChange=function(e){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},t.handleClick=function(e){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},e}(sn);j.prototype.controlText_="Fullscreen",pt.registerComponent("FullscreenToggle",j);pt.registerComponent("VolumeLevel",function(t){function e(){return t.apply(this,arguments)||this}return mt(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-volume-level"});return e.appendChild(t.prototype.createEl.call(this,"span",{className:"vjs-control-text"})),e},e}(pt)),pt.registerComponent("VolumeLevelTooltip",function(i){function e(e,t){t=i.call(this,e,t)||this;return t.update=We(Ve(ft(t),t.update),30),t}mt(e,i);var t=e.prototype;return t.createEl=function(){return i.prototype.createEl.call(this,"div",{className:"vjs-volume-tooltip"},{"aria-hidden":"true"})},t.update=function(e,t,i,n){if(!i){var r=de(this.el_),a=de(this.player_.el()),i=e.width*t;if(!a||!r)return;t=e.left-a.left+i,a=e.width-i+(a.right-e.right),e=r.width/2;t<e?e+=e-t:a<e&&(e=a),e<0?e=0:e>r.width&&(e=r.width),this.el_.style.right="-"+e+"px"}this.write(n+"%")},t.write=function(e){J(this.el_,e)},t.updateVolume=function(e,t,i,n,r){var a=this;this.requestNamedAnimationFrame("VolumeLevelTooltip#updateVolume",function(){a.update(e,t,i,n.toFixed(0)),r&&r()})},e}(pt));k=function(i){function e(e,t){t=i.call(this,e,t)||this;return t.update=We(Ve(ft(t),t.update),30),t}mt(e,i);var t=e.prototype;return t.createEl=function(){return i.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},t.update=function(e,t,i){var n=this,r=100*t;this.getChild("volumeLevelTooltip").updateVolume(e,t,i,r,function(){i?n.el_.style.bottom=e.height*t+"px":n.el_.style.left=e.width*t+"px"})},e}(pt);k.prototype.options_={children:["volumeLevelTooltip"]},pt.registerComponent("MouseVolumeLevelDisplay",k);f=function(n){function e(e,t){var i=n.call(this,e,t)||this;return i.on("slideractive",function(e){return i.updateLastVolume_(e)}),i.on(e,"volumechange",function(e){return i.updateARIAAttributes(e)}),e.ready(function(){return i.updateARIAAttributes()}),i}mt(e,n);var t=e.prototype;return t.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})},t.handleMouseDown=function(e){_e(e)&&n.prototype.handleMouseDown.call(this,e)},t.handleMouseMove=function(e){var t,i,n,r=this.getChild("mouseVolumeLevelDisplay");r&&(t=de(n=this.el()),i=this.vertical(),n=pe(n,e),n=i?n.y:n.x,n=cn(n,0,1),r.update(t,n,i)),_e(e)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(e)))},t.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},t.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},t.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},t.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},t.updateARIAAttributes=function(e){var t=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")},t.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())},t.updateLastVolume_=function(){var e=this,t=this.player_.volume();this.one("sliderinactive",function(){0===e.player_.volume()&&e.player_.lastVolume_(t)})},e}(li);f.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},q||A||f.prototype.options_.children.splice(0,0,"mouseVolumeLevelDisplay"),f.prototype.playerEvent="volumechange",pt.registerComponent("VolumeBar",f);ui=function(a){function e(e,t){var i,n,r;return(t=void 0===t?{}:t).vertical=t.vertical||!1,"undefined"!=typeof t.volumeBar&&!S(t.volumeBar)||(t.volumeBar=t.volumeBar||{},t.volumeBar.vertical=t.vertical),i=a.call(this,e,t)||this,n=ft(i),(r=e).tech_&&!r.tech_.featuresVolumeControl&&n.addClass("vjs-hidden"),n.on(r,"loadstart",function(){r.tech_.featuresVolumeControl?n.removeClass("vjs-hidden"):n.addClass("vjs-hidden")}),i.throttledHandleMouseMove=We(Ve(ft(i),i.handleMouseMove),30),i.handleMouseUpHandler_=function(e){return i.handleMouseUp(e)},i.on("mousedown",function(e){return i.handleMouseDown(e)}),i.on("touchstart",function(e){return i.handleMouseDown(e)}),i.on("mousemove",function(e){return i.handleMouseMove(e)}),i.on(i.volumeBar,["focus","slideractive"],function(){i.volumeBar.addClass("vjs-slider-active"),i.addClass("vjs-slider-active"),i.trigger("slideractive")}),i.on(i.volumeBar,["blur","sliderinactive"],function(){i.volumeBar.removeClass("vjs-slider-active"),i.removeClass("vjs-slider-active"),i.trigger("sliderinactive")}),i}mt(e,a);var t=e.prototype;return t.createEl=function(){var e="vjs-volume-horizontal";return this.options_.vertical&&(e="vjs-volume-vertical"),a.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+e})},t.handleMouseDown=function(e){var t=this.el_.ownerDocument;this.on(t,"mousemove",this.throttledHandleMouseMove),this.on(t,"touchmove",this.throttledHandleMouseMove),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)},t.handleMouseUp=function(e){var t=this.el_.ownerDocument;this.off(t,"mousemove",this.throttledHandleMouseMove),this.off(t,"touchmove",this.throttledHandleMouseMove),this.off(t,"mouseup",this.handleMouseUpHandler_),this.off(t,"touchend",this.handleMouseUpHandler_)},t.handleMouseMove=function(e){this.volumeBar.handleMouseMove(e)},e}(pt);ui.prototype.options_={children:["volumeBar"]},pt.registerComponent("VolumeControl",ui);Xt=function(a){function e(e,t){var i,n,r=a.call(this,e,t)||this;return i=ft(r),(n=e).tech_&&!n.tech_.featuresMuteControl&&i.addClass("vjs-hidden"),i.on(n,"loadstart",function(){n.tech_.featuresMuteControl?i.removeClass("vjs-hidden"):i.addClass("vjs-hidden")}),r.on(e,["loadstart","volumechange"],function(e){return r.update(e)}),r}mt(e,a);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-mute-control "+a.prototype.buildCSSClass.call(this)},t.handleClick=function(e){var t=this.player_.volume(),i=this.player_.lastVolume_();0===t?(this.player_.volume(i<.1?.1:i),this.player_.muted(!1)):this.player_.muted(!this.player_.muted())},t.update=function(e){this.updateIcon_(),this.updateControlText_()},t.updateIcon_=function(){var e=this.player_.volume(),t=3;q&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),0===e||this.player_.muted()?t=0:e<.33?t=1:e<.67&&(t=2);for(var i=0;i<4;i++)ie(this.el_,"vjs-vol-"+i);te(this.el_,"vjs-vol-"+t)},t.updateControlText_=function(){var e=this.player_.muted()||0===this.player_.volume()?"Unmute":"Mute";this.controlText()!==e&&this.controlText(e)},e}(sn);Xt.prototype.controlText_="Mute",pt.registerComponent("MuteToggle",Xt);I=function(n){function e(e,t){var i;return"undefined"!=typeof(t=void 0===t?{}:t).inline?t.inline=t.inline:t.inline=!0,"undefined"!=typeof t.volumeControl&&!S(t.volumeControl)||(t.volumeControl=t.volumeControl||{},t.volumeControl.vertical=!t.inline),(i=n.call(this,e,t)||this).handleKeyPressHandler_=function(e){return i.handleKeyPress(e)},i.on(e,["loadstart"],function(e){return i.volumePanelState_(e)}),i.on(i.muteToggle,"keyup",function(e){return i.handleKeyPress(e)}),i.on(i.volumeControl,"keyup",function(e){return i.handleVolumeControlKeyUp(e)}),i.on("keydown",function(e){return i.handleKeyPress(e)}),i.on("mouseover",function(e){return i.handleMouseOver(e)}),i.on("mouseout",function(e){return i.handleMouseOut(e)}),i.on(i.volumeControl,["slideractive"],i.sliderActive_),i.on(i.volumeControl,["sliderinactive"],i.sliderInactive_),i}mt(e,n);var t=e.prototype;return t.sliderActive_=function(){this.addClass("vjs-slider-active")},t.sliderInactive_=function(){this.removeClass("vjs-slider-active")},t.volumePanelState_=function(){this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-mute-toggle-only")},t.createEl=function(){var e="vjs-volume-panel-horizontal";return this.options_.inline||(e="vjs-volume-panel-vertical"),n.prototype.createEl.call(this,"div",{className:"vjs-volume-panel vjs-control "+e})},t.dispose=function(){this.handleMouseOut(),n.prototype.dispose.call(this)},t.handleVolumeControlKeyUp=function(e){ht.isEventKey(e,"Esc")&&this.muteToggle.focus()},t.handleMouseOver=function(e){this.addClass("vjs-hover"),Be(document,"keyup",this.handleKeyPressHandler_)},t.handleMouseOut=function(e){this.removeClass("vjs-hover"),Fe(document,"keyup",this.handleKeyPressHandler_)},t.handleKeyPress=function(e){ht.isEventKey(e,"Esc")&&this.handleMouseOut()},e}(pt);I.prototype.options_={children:["muteToggle","volumeControl"]},pt.registerComponent("VolumePanel",I);var hn=function(n){function e(e,t){var i=n.call(this,e,t)||this;return t&&(i.menuButton_=t.menuButton),i.focusedChild_=-1,i.on("keydown",function(e){return i.handleKeyDown(e)}),i.boundHandleBlur_=function(e){return i.handleBlur(e)},i.boundHandleTapClick_=function(e){return i.handleTapClick(e)},i}mt(e,n);var t=e.prototype;return t.addEventListenerForItem=function(e){e instanceof pt&&(this.on(e,"blur",this.boundHandleBlur_),this.on(e,["tap","click"],this.boundHandleTapClick_))},t.removeEventListenerForItem=function(e){e instanceof pt&&(this.off(e,"blur",this.boundHandleBlur_),this.off(e,["tap","click"],this.boundHandleTapClick_))},t.removeChild=function(e){"string"==typeof e&&(e=this.getChild(e)),this.removeEventListenerForItem(e),n.prototype.removeChild.call(this,e)},t.addItem=function(e){e=this.addChild(e);e&&this.addEventListenerForItem(e)},t.createEl=function(){var e=this.options_.contentElType||"ul";this.contentEl_=$(e,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");e=n.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return e.appendChild(this.contentEl_),Be(e,"click",function(e){e.preventDefault(),e.stopImmediatePropagation()}),e},t.dispose=function(){this.contentEl_=null,this.boundHandleBlur_=null,this.boundHandleTapClick_=null,n.prototype.dispose.call(this)},t.handleBlur=function(e){var t=e.relatedTarget||document.activeElement;this.children().some(function(e){return e.el()===t})||(e=this.menuButton_)&&e.buttonPressed_&&t!==e.el().firstChild&&e.unpressButton()},t.handleTapClick=function(t){var e;this.menuButton_&&(this.menuButton_.unpressButton(),e=this.children(),!Array.isArray(e)||(e=e.filter(function(e){return e.el()===t.target})[0])&&"CaptionSettingsMenuItem"!==e.name()&&this.menuButton_.focus())},t.handleKeyDown=function(e){ht.isEventKey(e,"Left")||ht.isEventKey(e,"Down")?(e.preventDefault(),e.stopPropagation(),this.stepForward()):(ht.isEventKey(e,"Right")||ht.isEventKey(e,"Up"))&&(e.preventDefault(),e.stopPropagation(),this.stepBack())},t.stepForward=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_+1),this.focus(e)},t.stepBack=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_-1),this.focus(e)},t.focus=function(e){void 0===e&&(e=0);var t=this.children().slice();t.length&&t[0].hasClass("vjs-menu-title")&&t.shift(),0<t.length&&(e<0?e=0:e>=t.length&&(e=t.length-1),t[this.focusedChild_=e].el_.focus())},e}(pt);pt.registerComponent("Menu",hn);Bt=function(n){function e(e,t){var i;(i=n.call(this,e,t=void 0===t?{}:t)||this).menuButton_=new sn(e,t),i.menuButton_.controlText(i.controlText_),i.menuButton_.el_.setAttribute("aria-haspopup","true");t=sn.prototype.buildCSSClass();i.menuButton_.el_.className=i.buildCSSClass()+" "+t,i.menuButton_.removeClass("vjs-control"),i.addChild(i.menuButton_),i.update(),i.enabled_=!0;t=function(e){return i.handleClick(e)};return i.handleMenuKeyUp_=function(e){return i.handleMenuKeyUp(e)},i.on(i.menuButton_,"tap",t),i.on(i.menuButton_,"click",t),i.on(i.menuButton_,"keydown",function(e){return i.handleKeyDown(e)}),i.on(i.menuButton_,"mouseenter",function(){i.addClass("vjs-hover"),i.menu.show(),Be(document,"keyup",i.handleMenuKeyUp_)}),i.on("mouseleave",function(e){return i.handleMouseLeave(e)}),i.on("keydown",function(e){return i.handleSubmenuKeyDown(e)}),i}mt(e,n);var t=e.prototype;return t.update=function(){var e=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=e,this.addChild(e),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?this.hide():this.show()},t.createMenu=function(){var e,t=new hn(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title&&(e=$("li",{className:"vjs-menu-title",textContent:ut(this.options_.title),tabIndex:-1}),e=new pt(this.player_,{el:e}),t.addItem(e)),this.items=this.createItems(),this.items)for(var i=0;i<this.items.length;i++)t.addItem(this.items[i]);return t},t.createItems=function(){},t.createEl=function(){return n.prototype.createEl.call(this,"div",{className:this.buildWrapperCSSClass()},{})},t.buildWrapperCSSClass=function(){var e="vjs-menu-button";return!0===this.options_.inline?e+="-inline":e+="-popup","vjs-menu-button "+e+" "+sn.prototype.buildCSSClass()+" "+n.prototype.buildCSSClass.call(this)},t.buildCSSClass=function(){var e="vjs-menu-button";return!0===this.options_.inline?e+="-inline":e+="-popup","vjs-menu-button "+e+" "+n.prototype.buildCSSClass.call(this)},t.controlText=function(e,t){return void 0===t&&(t=this.menuButton_.el()),this.menuButton_.controlText(e,t)},t.dispose=function(){this.handleMouseLeave(),n.prototype.dispose.call(this)},t.handleClick=function(e){this.buttonPressed_?this.unpressButton():this.pressButton()},t.handleMouseLeave=function(e){this.removeClass("vjs-hover"),Fe(document,"keyup",this.handleMenuKeyUp_)},t.focus=function(){this.menuButton_.focus()},t.blur=function(){this.menuButton_.blur()},t.handleKeyDown=function(e){ht.isEventKey(e,"Esc")||ht.isEventKey(e,"Tab")?(this.buttonPressed_&&this.unpressButton(),ht.isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus())):(ht.isEventKey(e,"Up")||ht.isEventKey(e,"Down"))&&(this.buttonPressed_||(e.preventDefault(),this.pressButton()))},t.handleMenuKeyUp=function(e){(ht.isEventKey(e,"Esc")||ht.isEventKey(e,"Tab"))&&this.removeClass("vjs-hover")},t.handleSubmenuKeyPress=function(e){this.handleSubmenuKeyDown(e)},t.handleSubmenuKeyDown=function(e){(ht.isEventKey(e,"Esc")||ht.isEventKey(e,"Tab"))&&(this.buttonPressed_&&this.unpressButton(),ht.isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus()))},t.pressButton=function(){this.enabled_&&(this.buttonPressed_=!0,this.menu.show(),this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),q&&Y()||this.menu.focus())},t.unpressButton=function(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menu.hide(),this.menuButton_.el_.setAttribute("aria-expanded","false"))},t.disable=function(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()},t.enable=function(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()},e}(pt);pt.registerComponent("MenuButton",Bt);Ft=function(r){function e(e,t){var i=t.tracks,t=r.call(this,e,t)||this;if(t.items.length<=1&&t.hide(),!i)return ft(t);var n=Ve(ft(t),t.update);return i.addEventListener("removetrack",n),i.addEventListener("addtrack",n),i.addEventListener("labelchange",n),t.player_.on("ready",n),t.player_.on("dispose",function(){i.removeEventListener("removetrack",n),i.removeEventListener("addtrack",n),i.removeEventListener("labelchange",n)}),t}return mt(e,r),e}(Bt);pt.registerComponent("TrackButton",Ft);var pn=["Tab","Esc","Up","Down","Right","Left"],jt=function(n){function e(e,t){e=n.call(this,e,t)||this;return e.selectable=t.selectable,e.isSelected_=t.selected||!1,e.multiSelectable=t.multiSelectable,e.selected(e.isSelected_),e.selectable?e.multiSelectable?e.el_.setAttribute("role","menuitemcheckbox"):e.el_.setAttribute("role","menuitemradio"):e.el_.setAttribute("role","menuitem"),e}mt(e,n);var t=e.prototype;return t.createEl=function(e,t,i){this.nonIconControl=!0;i=n.prototype.createEl.call(this,"li",b({className:"vjs-menu-item",tabIndex:-1},t),i);return i.replaceChild($("span",{className:"vjs-menu-item-text",textContent:this.localize(this.options_.label)}),i.querySelector(".vjs-icon-placeholder")),i},t.handleKeyDown=function(t){pn.some(function(e){return ht.isEventKey(t,e)})||n.prototype.handleKeyDown.call(this,t)},t.handleClick=function(e){this.selected(!0)},t.selected=function(e){this.selectable&&(e?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected"),this.isSelected_=!0):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText(""),this.isSelected_=!1))},e}(C);pt.registerComponent("MenuItem",jt);var fn=function(u){function e(e,t){var n,i=t.track,r=e.textTracks();t.label=i.label||i.language||"Unknown",t.selected="showing"===i.mode,(n=u.call(this,e,t)||this).track=i,n.kinds=(t.kinds||[t.kind||n.track.kind]).filter(Boolean);function a(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];n.handleTracksChange.apply(ft(n),t)}function s(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];n.handleSelectedLanguageChange.apply(ft(n),t)}var o;return e.on(["loadstart","texttrackchange"],a),r.addEventListener("change",a),r.addEventListener("selectedlanguagechange",s),n.on("dispose",function(){e.off(["loadstart","texttrackchange"],a),r.removeEventListener("change",a),r.removeEventListener("selectedlanguagechange",s)}),void 0===r.onchange&&n.on(["tap","click"],function(){if("object"!=typeof window.Event)try{o=new window.Event("change")}catch(e){}o||(o=document.createEvent("Event")).initEvent("change",!0,!0),r.dispatchEvent(o)}),n.handleTracksChange(),n}mt(e,u);var t=e.prototype;return t.handleClick=function(e){var t=this.track,i=this.player_.textTracks();if(u.prototype.handleClick.call(this,e),i)for(var n=0;n<i.length;n++){var r=i[n];-1!==this.kinds.indexOf(r.kind)&&(r===t?"showing"!==r.mode&&(r.mode="showing"):"disabled"!==r.mode&&(r.mode="disabled"))}},t.handleTracksChange=function(e){var t="showing"===this.track.mode;t!==this.isSelected_&&this.selected(t)},t.handleSelectedLanguageChange=function(e){var t;"showing"===this.track.mode&&((t=this.player_.cache_.selectedLanguage)&&t.enabled&&t.language===this.track.language&&t.kind!==this.track.kind||(this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}))},t.dispose=function(){this.track=null,u.prototype.dispose.call(this)},e}(jt);pt.registerComponent("TextTrackMenuItem",fn);var mn=function(i){function e(e,t){return t.track={player:e,kind:t.kind,kinds:t.kinds,default:!1,mode:"disabled"},t.kinds||(t.kinds=[t.kind]),t.label?t.track.label=t.label:t.track.label=t.kinds.join(" and ")+" off",t.selectable=!0,t.multiSelectable=!1,i.call(this,e,t)||this}mt(e,i);var t=e.prototype;return t.handleTracksChange=function(e){for(var t=this.player().textTracks(),i=!0,n=0,r=t.length;n<r;n++){var a=t[n];if(-1<this.options_.kinds.indexOf(a.kind)&&"showing"===a.mode){i=!1;break}}i!==this.isSelected_&&this.selected(i)},t.handleSelectedLanguageChange=function(e){for(var t=this.player().textTracks(),i=!0,n=0,r=t.length;n<r;n++){var a=t[n];if(-1<["captions","descriptions","subtitles"].indexOf(a.kind)&&"showing"===a.mode){i=!1;break}}i&&(this.player_.cache_.selectedLanguage={enabled:!1})},e}(fn);pt.registerComponent("OffTextTrackMenuItem",mn);j=function(i){function e(e,t){return(t=void 0===t?{}:t).tracks=e.textTracks(),i.call(this,e,t)||this}return mt(e,i),e.prototype.createItems=function(e,t){var i;void 0===t&&(t=fn),this.label_&&(i=this.label_+" off"),(e=void 0===e?[]:e).push(new mn(this.player_,{kinds:this.kinds_,kind:this.kind_,label:i})),this.hideThreshold_+=1;var n=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(var r=0;r<n.length;r++){var a,s=n[r];-1<this.kinds_.indexOf(s.kind)&&((a=new t(this.player_,{track:s,kinds:this.kinds_,kind:this.kind_,selectable:!0,multiSelectable:!1})).addClass("vjs-"+s.kind+"-menu-item"),e.push(a))}return e},e}(Ft);pt.registerComponent("TextTrackButton",j);var gn=function(a){function e(e,t){var i=t.track,n=t.cue,r=e.currentTime();return t.selectable=!0,t.multiSelectable=!1,t.label=n.text,t.selected=n.startTime<=r&&r<n.endTime,(t=a.call(this,e,t)||this).track=i,t.cue=n,i.addEventListener("cuechange",Ve(ft(t),t.update)),t}mt(e,a);var t=e.prototype;return t.handleClick=function(e){a.prototype.handleClick.call(this),this.player_.currentTime(this.cue.startTime),this.update(this.cue.startTime)},t.update=function(e){var t=this.cue,i=this.player_.currentTime();this.selected(t.startTime<=i&&i<t.endTime)},e}(jt);pt.registerComponent("ChaptersTrackMenuItem",gn);k=function(n){function e(e,t,i){return n.call(this,e,t,i)||this}mt(e,n);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-chapters-button "+n.prototype.buildCSSClass.call(this)},t.buildWrapperCSSClass=function(){return"vjs-chapters-button "+n.prototype.buildWrapperCSSClass.call(this)},t.update=function(e){this.track_&&(!e||"addtrack"!==e.type&&"removetrack"!==e.type)||this.setTrack(this.findChaptersTrack()),n.prototype.update.call(this)},t.setTrack=function(e){var t;this.track_!==e&&(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_&&((t=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_))&&t.removeEventListener("load",this.updateHandler_),this.track_=null),this.track_=e,this.track_&&(this.track_.mode="hidden",(e=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_))&&e.addEventListener("load",this.updateHandler_)))},t.findChaptersTrack=function(){for(var e=this.player_.textTracks()||[],t=e.length-1;0<=t;t--){var i=e[t];if(i.kind===this.kind_)return i}},t.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize(ut(this.kind_))},t.createMenu=function(){return this.options_.title=this.getMenuCaption(),n.prototype.createMenu.call(this)},t.createItems=function(){var e=[];if(!this.track_)return e;var t=this.track_.cues;if(!t)return e;for(var i=0,n=t.length;i<n;i++){var r=t[i],r=new gn(this.player_,{track:this.track_,cue:r});e.push(r)}return e},e}(j);k.prototype.kind_="chapters",k.prototype.controlText_="Chapters",pt.registerComponent("ChaptersButton",k);li=function(a){function e(e,t,i){var i=a.call(this,e,t,i)||this,n=e.textTracks(),r=Ve(ft(i),i.handleTracksChange);return n.addEventListener("change",r),i.on("dispose",function(){n.removeEventListener("change",r)}),i}mt(e,a);var t=e.prototype;return t.handleTracksChange=function(e){for(var t=this.player().textTracks(),i=!1,n=0,r=t.length;n<r;n++){var a=t[n];if(a.kind!==this.kind_&&"showing"===a.mode){i=!0;break}}i?this.disable():this.enable()},t.buildCSSClass=function(){return"vjs-descriptions-button "+a.prototype.buildCSSClass.call(this)},t.buildWrapperCSSClass=function(){return"vjs-descriptions-button "+a.prototype.buildWrapperCSSClass.call(this)},e}(j);li.prototype.kind_="descriptions",li.prototype.controlText_="Descriptions",pt.registerComponent("DescriptionsButton",li);f=function(n){function e(e,t,i){return n.call(this,e,t,i)||this}mt(e,n);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-subtitles-button "+n.prototype.buildCSSClass.call(this)},t.buildWrapperCSSClass=function(){return"vjs-subtitles-button "+n.prototype.buildWrapperCSSClass.call(this)},e}(j);f.prototype.kind_="subtitles",f.prototype.controlText_="Subtitles",pt.registerComponent("SubtitlesButton",f);var yn=function(i){function e(e,t){return t.track={player:e,kind:t.kind,label:t.kind+" settings",selectable:!1,default:!1,mode:"disabled"},t.selectable=!1,t.name="CaptionSettingsMenuItem",(e=i.call(this,e,t)||this).addClass("vjs-texttrack-settings"),e.controlText(", opens "+t.kind+" settings dialog"),e}return mt(e,i),e.prototype.handleClick=function(e){this.player().getChild("textTrackSettings").open()},e}(fn);pt.registerComponent("CaptionSettingsMenuItem",yn);ui=function(n){function e(e,t,i){return n.call(this,e,t,i)||this}mt(e,n);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-captions-button "+n.prototype.buildCSSClass.call(this)},t.buildWrapperCSSClass=function(){return"vjs-captions-button "+n.prototype.buildWrapperCSSClass.call(this)},t.createItems=function(){var e=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(e.push(new yn(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),n.prototype.createItems.call(this,e)},e}(j);ui.prototype.kind_="captions",ui.prototype.controlText_="Captions",pt.registerComponent("CaptionsButton",ui);var vn=function(n){function e(){return n.apply(this,arguments)||this}return mt(e,n),e.prototype.createEl=function(e,t,i){t=n.prototype.createEl.call(this,e,t,i),i=t.querySelector(".vjs-menu-item-text");return"captions"===this.options_.track.kind&&(i.appendChild($("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),i.appendChild($("span",{className:"vjs-control-text",textContent:" "+this.localize("Captions")}))),t},e}(fn);pt.registerComponent("SubsCapsMenuItem",vn);Xt=function(i){function e(e,t){return(t=i.call(this,e,t=void 0===t?{}:t)||this).label_="subtitles",-1<["en","en-us","en-ca","fr-ca"].indexOf(t.player_.language_)&&(t.label_="captions"),t.menuButton_.controlText(ut(t.label_)),t}mt(e,i);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-subs-caps-button "+i.prototype.buildCSSClass.call(this)},t.buildWrapperCSSClass=function(){return"vjs-subs-caps-button "+i.prototype.buildWrapperCSSClass.call(this)},t.createItems=function(){var e=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(e.push(new yn(this.player_,{kind:this.label_})),this.hideThreshold_+=1),e=i.prototype.createItems.call(this,e,vn)},e}(j);Xt.prototype.kinds_=["captions","subtitles"],Xt.prototype.controlText_="Subtitles",pt.registerComponent("SubsCapsButton",Xt);var _n=function(s){function e(e,t){var n,i=t.track,r=e.audioTracks();t.label=i.label||i.language||"Unknown",t.selected=i.enabled,(n=s.call(this,e,t)||this).track=i,n.addClass("vjs-"+i.kind+"-menu-item");function a(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];n.handleTracksChange.apply(ft(n),t)}return r.addEventListener("change",a),n.on("dispose",function(){r.removeEventListener("change",a)}),n}mt(e,s);var t=e.prototype;return t.createEl=function(e,t,i){t=s.prototype.createEl.call(this,e,t,i),i=t.querySelector(".vjs-menu-item-text");return"main-desc"===this.options_.track.kind&&(i.appendChild($("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),i.appendChild($("span",{className:"vjs-control-text",textContent:" "+this.localize("Descriptions")}))),t},t.handleClick=function(e){if(s.prototype.handleClick.call(this,e),this.track.enabled=!0,this.player_.tech_.featuresNativeAudioTracks)for(var t=this.player_.audioTracks(),i=0;i<t.length;i++){var n=t[i];n!==this.track&&(n.enabled=n===this.track)}},t.handleTracksChange=function(e){this.selected(this.track.enabled)},e}(jt);pt.registerComponent("AudioTrackMenuItem",_n);I=function(i){function e(e,t){return(t=void 0===t?{}:t).tracks=e.audioTracks(),i.call(this,e,t)||this}mt(e,i);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-audio-button "+i.prototype.buildCSSClass.call(this)},t.buildWrapperCSSClass=function(){return"vjs-audio-button "+i.prototype.buildWrapperCSSClass.call(this)},t.createItems=function(e){void 0===e&&(e=[]),this.hideThreshold_=1;for(var t=this.player_.audioTracks(),i=0;i<t.length;i++){var n=t[i];e.push(new _n(this.player_,{track:n,selectable:!0,multiSelectable:!1}))}return e},e}(Ft);I.prototype.controlText_="Audio Track",pt.registerComponent("AudioTrackButton",I);var bn=function(a){function e(e,t){var i,n=t.rate,r=parseFloat(n,10);return t.label=n,t.selected=r===e.playbackRate(),t.selectable=!0,t.multiSelectable=!1,(i=a.call(this,e,t)||this).label=n,i.rate=r,i.on(e,"ratechange",function(e){return i.update(e)}),i}mt(e,a);var t=e.prototype;return t.handleClick=function(e){a.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},t.update=function(e){this.selected(this.player().playbackRate()===this.rate)},e}(jt);bn.prototype.contentElType="button",pt.registerComponent("PlaybackRateMenuItem",bn);C=function(n){function e(e,t){var i=n.call(this,e,t)||this;return i.menuButton_.el_.setAttribute("aria-describedby",i.labelElId_),i.updateVisibility(),i.updateLabel(),i.on(e,"loadstart",function(e){return i.updateVisibility(e)}),i.on(e,"ratechange",function(e){return i.updateLabel(e)}),i.on(e,"playbackrateschange",function(e){return i.handlePlaybackRateschange(e)}),i}mt(e,n);var t=e.prototype;return t.createEl=function(){var e=n.prototype.createEl.call(this);return this.labelElId_="vjs-playback-rate-value-label-"+this.id_,this.labelEl_=$("div",{className:"vjs-playback-rate-value",id:this.labelElId_,textContent:"1x"}),e.appendChild(this.labelEl_),e},t.dispose=function(){this.labelEl_=null,n.prototype.dispose.call(this)},t.buildCSSClass=function(){return"vjs-playback-rate "+n.prototype.buildCSSClass.call(this)},t.buildWrapperCSSClass=function(){return"vjs-playback-rate "+n.prototype.buildWrapperCSSClass.call(this)},t.createItems=function(){for(var e=this.playbackRates(),t=[],i=e.length-1;0<=i;i--)t.push(new bn(this.player(),{rate:e[i]+"x"}));return t},t.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},t.handleClick=function(e){var t=this.player().playbackRate(),i=this.playbackRates(),t=(i.indexOf(t)+1)%i.length;this.player().playbackRate(i[t])},t.handlePlaybackRateschange=function(e){this.update()},t.playbackRates=function(){var e=this.player();return e.playbackRates&&e.playbackRates()||[]},t.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&0<this.playbackRates().length},t.updateVisibility=function(e){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},t.updateLabel=function(e){this.playbackRateSupported()&&(this.labelEl_.textContent=this.player().playbackRate()+"x")},e}(Bt);C.prototype.controlText_="Playback Rate",pt.registerComponent("PlaybackRateMenuButton",C);k=function(n){function e(){return n.apply(this,arguments)||this}mt(e,n);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-spacer "+n.prototype.buildCSSClass.call(this)},t.createEl=function(e,t,i){return void 0===e&&(e="div"),void 0===i&&(i={}),(t=void 0===t?{}:t).className||(t.className=this.buildCSSClass()),n.prototype.createEl.call(this,e,t,i)},e}(pt);pt.registerComponent("Spacer",k),pt.registerComponent("CustomControlSpacer",function(e){function t(){return e.apply(this,arguments)||this}mt(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-custom-control-spacer "+e.prototype.buildCSSClass.call(this)},i.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),textContent:" "})},t}(k));li=function(e){function t(){return e.apply(this,arguments)||this}return mt(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"})},t}(pt);li.prototype.options_={children:["playToggle","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","fullscreenToggle"]},"exitPictureInPicture"in document&&li.prototype.options_.children.splice(li.prototype.options_.children.length-1,0,"pictureInPictureToggle"),pt.registerComponent("ControlBar",li);f=function(n){function e(e,t){var i=n.call(this,e,t)||this;return i.on(e,"error",function(e){return i.open(e)}),i}mt(e,n);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-error-display "+n.prototype.buildCSSClass.call(this)},t.content=function(){var e=this.player().error();return e?this.localize(e.message):""},e}(At);f.prototype.options_=g({},At.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),pt.registerComponent("ErrorDisplay",f);var Tn="vjs-text-track-settings",ui=["#000","Black"],j=["#00F","Blue"],Xt=["#0FF","Cyan"],Ft=["#0F0","Green"],I=["#F0F","Magenta"],jt=["#F00","Red"],Bt=["#FFF","White"],C=["#FF0","Yellow"],k=["1","Opaque"],li=["0.5","Semi-Transparent"],f=["0","Transparent"],Sn={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[ui,Bt,jt,Ft,j,C,I,Xt]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[k,li,f]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[Bt,ui,jt,Ft,j,C,I,Xt]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:function(e){return"1.00"===e?null:Number(e)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[k,li]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Transparency",options:[f,li,k]}};function wn(e,t){if((e=t?t(e):e)&&"none"!==e)return e}Sn.windowColor.options=Sn.backgroundColor.options,pt.registerComponent("TextTrackSettings",function(n){function e(e,t){var i;return t.temporary=!1,(i=n.call(this,e,t)||this).updateDisplay=i.updateDisplay.bind(ft(i)),i.fill(),i.hasBeenOpened_=i.hasBeenFilled_=!0,i.endDialog=$("p",{className:"vjs-control-text",textContent:i.localize("End of dialog window.")}),i.el().appendChild(i.endDialog),i.setDefaults(),void 0===t.persistTextTrackSettings&&(i.options_.persistTextTrackSettings=i.options_.playerOptions.persistTextTrackSettings),i.on(i.$(".vjs-done-button"),"click",function(){i.saveSettings(),i.close()}),i.on(i.$(".vjs-default-button"),"click",function(){i.setDefaults(),i.updateDisplay()}),_(Sn,function(e){i.on(i.$(e.selector),"change",i.updateDisplay)}),i.options_.persistTextTrackSettings&&i.restoreSettings(),i}mt(e,n);var t=e.prototype;return t.dispose=function(){this.endDialog=null,n.prototype.dispose.call(this)},t.createElSelect_=function(e,t,i){var n=this;void 0===t&&(t=""),void 0===i&&(i="label");var e=Sn[e],r=e.id.replace("%s",this.id_),a=[t,r].join(" ").trim();return["<"+i+' id="'+r+'" class="'+("label"===i?"vjs-label":"")+'">',this.localize(e.label),"</"+i+">",'<select aria-labelledby="'+a+'">'].concat(e.options.map(function(e){var t=r+"-"+e[1].replace(/\W+/g,"");return['<option id="'+t+'" value="'+e[0]+'" ','aria-labelledby="'+a+" "+t+'">',n.localize(e[1]),"</option>"].join("")})).concat("</select>").join("")},t.createElFgColor_=function(){var e="captions-text-legend-"+this.id_;return['<fieldset class="vjs-fg-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Text"),"</legend>",this.createElSelect_("color",e),'<span class="vjs-text-opacity vjs-opacity">',this.createElSelect_("textOpacity",e),"</span>","</fieldset>"].join("")},t.createElBgColor_=function(){var e="captions-background-"+this.id_;return['<fieldset class="vjs-bg-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Background"),"</legend>",this.createElSelect_("backgroundColor",e),'<span class="vjs-bg-opacity vjs-opacity">',this.createElSelect_("backgroundOpacity",e),"</span>","</fieldset>"].join("")},t.createElWinColor_=function(){var e="captions-window-"+this.id_;return['<fieldset class="vjs-window-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Window"),"</legend>",this.createElSelect_("windowColor",e),'<span class="vjs-window-opacity vjs-opacity">',this.createElSelect_("windowOpacity",e),"</span>","</fieldset>"].join("")},t.createElColors_=function(){return $("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})},t.createElFont_=function(){return $("div",{className:"vjs-track-settings-font",innerHTML:['<fieldset class="vjs-font-percent vjs-track-setting">',this.createElSelect_("fontPercent","","legend"),"</fieldset>",'<fieldset class="vjs-edge-style vjs-track-setting">',this.createElSelect_("edgeStyle","","legend"),"</fieldset>",'<fieldset class="vjs-font-family vjs-track-setting">',this.createElSelect_("fontFamily","","legend"),"</fieldset>"].join("")})},t.createElControls_=function(){var e=this.localize("restore all settings to the default values");return $("div",{className:"vjs-track-settings-controls",innerHTML:['<button type="button" class="vjs-default-button" title="'+e+'">',this.localize("Reset"),'<span class="vjs-control-text"> '+e+"</span>","</button>",'<button type="button" class="vjs-done-button">'+this.localize("Done")+"</button>"].join("")})},t.content=function(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]},t.label=function(){return this.localize("Caption Settings Dialog")},t.description=function(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")},t.buildCSSClass=function(){return n.prototype.buildCSSClass.call(this)+" vjs-text-track-settings"},t.getValues=function(){var i,n,e,r=this;return n=function(e,t,i){var n,t=(n=r.$(t.selector),t=t.parser,wn(n.options[n.options.selectedIndex].value,t));return void 0!==t&&(e[i]=t),e},void 0===(e={})&&(e=0),v(i=Sn).reduce(function(e,t){return n(e,i[t],t)},e)},t.setValues=function(i){var n=this;_(Sn,function(e,t){!function(e,t,i){if(t)for(var n=0;n<e.options.length;n++)if(wn(e.options[n].value,i)===t){e.selectedIndex=n;break}}(n.$(e.selector),i[t],e.parser)})},t.setDefaults=function(){var i=this;_(Sn,function(e){var t=e.hasOwnProperty("default")?e.default:0;i.$(e.selector).selectedIndex=t})},t.restoreSettings=function(){var e;try{e=JSON.parse(window.localStorage.getItem(Tn))}catch(e){h.warn(e)}e&&this.setValues(e)},t.saveSettings=function(){if(this.options_.persistTextTrackSettings){var e=this.getValues();try{Object.keys(e).length?window.localStorage.setItem(Tn,JSON.stringify(e)):window.localStorage.removeItem(Tn)}catch(e){h.warn(e)}}},t.updateDisplay=function(){var e=this.player_.getChild("textTrackDisplay");e&&e.updateDisplay()},t.conditionalBlur_=function(){this.previouslyActiveEl_=null;var e=this.player_.controlBar,t=e&&e.subsCapsButton,e=e&&e.captionsButton;t?t.focus():e&&e.focus()},e}(At)),pt.registerComponent("ResizeManager",function(a){function e(e,t){var i,n=t.ResizeObserver||window.ResizeObserver,r=lt({createEl:!(n=null===t.ResizeObserver?!1:n),reportTouchActivity:!1},t);return(i=a.call(this,e,r)||this).ResizeObserver=t.ResizeObserver||window.ResizeObserver,i.loadListener_=null,i.resizeObserver_=null,i.debouncedHandler_=Ge(function(){i.resizeHandler()},100,!1,ft(i)),n?(i.resizeObserver_=new i.ResizeObserver(i.debouncedHandler_),i.resizeObserver_.observe(e.el())):(i.loadListener_=function(){var e,t;i.el_&&i.el_.contentWindow&&(e=i.debouncedHandler_,t=i.unloadListener_=function(){Fe(this,"resize",e),Fe(this,"unload",t),t=null},Be(i.el_.contentWindow,"unload",t),Be(i.el_.contentWindow,"resize",e))},i.one("load",i.loadListener_)),i}mt(e,a);var t=e.prototype;return t.createEl=function(){return a.prototype.createEl.call(this,"iframe",{className:"vjs-resize-manager",tabIndex:-1},{"aria-hidden":"true"})},t.resizeHandler=function(){this.player_&&this.player_.trigger&&this.player_.trigger("playerresize")},t.dispose=function(){this.debouncedHandler_&&this.debouncedHandler_.cancel(),this.resizeObserver_&&(this.player_.el()&&this.resizeObserver_.unobserve(this.player_.el()),this.resizeObserver_.disconnect()),this.loadListener_&&this.off("load",this.loadListener_),this.el_&&this.el_.contentWindow&&this.unloadListener_&&this.unloadListener_.call(this.el_.contentWindow),this.ResizeObserver=null,this.resizeObserver=null,this.debouncedHandler_=null,this.loadListener_=null,a.prototype.dispose.call(this)},e}(pt));var En={trackingThreshold:20,liveTolerance:15};pt.registerComponent("LiveTracker",function(n){function e(e,t){var t=lt(En,t,{createEl:!1}),i=n.call(this,e,t)||this;return i.handleVisibilityChange_=function(e){return i.handleVisibilityChange(e)},i.trackLiveHandler_=function(){return i.trackLive_()},i.handlePlay_=function(e){return i.handlePlay(e)},i.handleFirstTimeupdate_=function(e){return i.handleFirstTimeupdate(e)},i.handleSeeked_=function(e){return i.handleSeeked(e)},i.seekToLiveEdge_=function(e){return i.seekToLiveEdge(e)},i.reset_(),i.on(i.player_,"durationchange",function(e){return i.handleDurationchange(e)}),i.on(i.player_,"canplay",function(){return i.toggleTracking()}),N&&"hidden"in document&&"visibilityState"in document&&i.on(document,"visibilitychange",i.handleVisibilityChange_),i}mt(e,n);var t=e.prototype;return t.handleVisibilityChange=function(){this.player_.duration()===1/0&&(document.hidden?this.stopTracking():this.startTracking())},t.trackLive_=function(){var e,t=this.player_.seekable();t&&t.length&&(e=Number(window.performance.now().toFixed(4)),t=-1===this.lastTime_?0:(e-this.lastTime_)/1e3,this.lastTime_=e,this.pastSeekEnd_=this.pastSeekEnd()+t,e=this.liveCurrentTime(),t=this.player_.currentTime(),t=this.player_.paused()||this.seekedBehindLive_||Math.abs(e-t)>this.options_.liveTolerance,(t=!this.timeupdateSeen_||e===1/0?!1:t)!==this.behindLiveEdge_&&(this.behindLiveEdge_=t,this.trigger("liveedgechange")))},t.handleDurationchange=function(){this.toggleTracking()},t.toggleTracking=function(){this.player_.duration()===1/0&&this.liveWindow()>=this.options_.trackingThreshold?(this.player_.options_.liveui&&this.player_.addClass("vjs-liveui"),this.startTracking()):(this.player_.removeClass("vjs-liveui"),this.stopTracking())},t.startTracking=function(){this.isTracking()||(this.timeupdateSeen_||(this.timeupdateSeen_=this.player_.hasStarted()),this.trackingInterval_=this.setInterval(this.trackLiveHandler_,30),this.trackLive_(),this.on(this.player_,["play","pause"],this.trackLiveHandler_),this.timeupdateSeen_?this.on(this.player_,"seeked",this.handleSeeked_):(this.one(this.player_,"play",this.handlePlay_),this.one(this.player_,"timeupdate",this.handleFirstTimeupdate_)))},t.handleFirstTimeupdate=function(){this.timeupdateSeen_=!0,this.on(this.player_,"seeked",this.handleSeeked_)},t.handleSeeked=function(){var e=Math.abs(this.liveCurrentTime()-this.player_.currentTime());this.seekedBehindLive_=this.nextSeekedFromUser_&&2<e,this.nextSeekedFromUser_=!1,this.trackLive_()},t.handlePlay=function(){this.one(this.player_,"timeupdate",this.seekToLiveEdge_)},t.reset_=function(){this.lastTime_=-1,this.pastSeekEnd_=0,this.lastSeekEnd_=-1,this.behindLiveEdge_=!0,this.timeupdateSeen_=!1,this.seekedBehindLive_=!1,this.nextSeekedFromUser_=!1,this.clearInterval(this.trackingInterval_),this.trackingInterval_=null,this.off(this.player_,["play","pause"],this.trackLiveHandler_),this.off(this.player_,"seeked",this.handleSeeked_),this.off(this.player_,"play",this.handlePlay_),this.off(this.player_,"timeupdate",this.handleFirstTimeupdate_),this.off(this.player_,"timeupdate",this.seekToLiveEdge_)},t.nextSeekedFromUser=function(){this.nextSeekedFromUser_=!0},t.stopTracking=function(){this.isTracking()&&(this.reset_(),this.trigger("liveedgechange"))},t.seekableEnd=function(){for(var e=this.player_.seekable(),t=[],i=e?e.length:0;i--;)t.push(e.end(i));return t.length?t.sort()[t.length-1]:1/0},t.seekableStart=function(){for(var e=this.player_.seekable(),t=[],i=e?e.length:0;i--;)t.push(e.start(i));return t.length?t.sort()[0]:0},t.liveWindow=function(){var e=this.liveCurrentTime();return e===1/0?0:e-this.seekableStart()},t.isLive=function(){return this.isTracking()},t.atLiveEdge=function(){return!this.behindLiveEdge()},t.liveCurrentTime=function(){return this.pastSeekEnd()+this.seekableEnd()},t.pastSeekEnd=function(){var e=this.seekableEnd();return-1!==this.lastSeekEnd_&&e!==this.lastSeekEnd_&&(this.pastSeekEnd_=0),this.lastSeekEnd_=e,this.pastSeekEnd_},t.behindLiveEdge=function(){return this.behindLiveEdge_},t.isTracking=function(){return"number"==typeof this.trackingInterval_},t.seekToLiveEdge=function(){this.seekedBehindLive_=!1,this.atLiveEdge()||(this.nextSeekedFromUser_=!1,this.player_.currentTime(this.liveCurrentTime()))},t.dispose=function(){this.off(document,"visibilitychange",this.handleVisibilityChange_),this.stopTracking(),n.prototype.dispose.call(this)},e}(pt));function kn(e){if((n=e.el()).hasAttribute("src"))return e.triggerSourceset(n.src),1;var t=e.$$("source"),i=[],n="";if(t.length){for(var r=0;r<t.length;r++){var a=t[r].src;a&&-1===i.indexOf(a)&&i.push(a)}return!!i.length&&(1===i.length&&(n=i[0]),e.triggerSourceset(n),!0)}}function Cn(e,t){for(var i={},n=0;n<e.length&&!((i=Object.getOwnPropertyDescriptor(e[n],t))&&i.set&&i.get);n++);return i.enumerable=!0,i.configurable=!0,i}function In(a){var t,e,i,s=a.el();s.resetSourceWatch_||(t={},e=Cn([a.el(),window.HTMLMediaElement.prototype,window.Element.prototype,Ln],"innerHTML"),i=function(r){return function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var n=r.apply(s,t);return kn(a),n}},["append","appendChild","insertAdjacentHTML"].forEach(function(e){s[e]&&(t[e]=s[e],s[e]=i(t[e]))}),Object.defineProperty(s,"innerHTML",lt(e,{set:i(e.set)})),s.resetSourceWatch_=function(){s.resetSourceWatch_=null,Object.keys(t).forEach(function(e){s[e]=t[e]}),Object.defineProperty(s,"innerHTML",e)},a.one("sourceset",s.resetSourceWatch_))}function xn(i){var n,t,r,a;i.featuresSourceset&&((n=i.el()).resetSourceset_||(t=Cn([i.el(),window.HTMLMediaElement.prototype,Dn],"src"),r=n.setAttribute,a=n.load,Object.defineProperty(n,"src",lt(t,{set:function(e){e=t.set.call(n,e);return i.triggerSourceset(n.src),e}})),n.setAttribute=function(e,t){t=r.call(n,e,t);return/src/i.test(e)&&i.triggerSourceset(n.src),t},n.load=function(){var e=a.call(n);return kn(i)||(i.triggerSourceset(""),In(i)),e},n.currentSrc?i.triggerSourceset(n.currentSrc):kn(i)||In(i),n.resetSourceset_=function(){n.resetSourceset_=null,n.load=a,n.setAttribute=r,Object.defineProperty(n,"src",t),n.resetSourceWatch_&&n.resetSourceWatch_()}))}function An(t,i,n,e){function r(e){return Object.defineProperty(t,i,{value:e,enumerable:!0,writable:!0})}var a={configurable:!0,enumerable:!0,get:function(){var e=n();return r(e),e}};return(e=void 0===e?!0:e)&&(a.set=r),Object.defineProperty(t,i,a)}var Pn,Ln=Object.defineProperty({},"innerHTML",{get:function(){return this.cloneNode(!0).innerHTML},set:function(e){var t=document.createElement(this.nodeName.toLowerCase());t.innerHTML=e;for(var i=document.createDocumentFragment();t.childNodes.length;)i.appendChild(t.childNodes[0]);return this.innerText="",window.Element.prototype.appendChild.call(this,i),this.innerHTML}}),Dn=Object.defineProperty({},"src",{get:function(){return this.hasAttribute("src")?Mt(window.Element.prototype.getAttribute.call(this,"src")):""},set:function(e){return window.Element.prototype.setAttribute.call(this,"src",e),e}}),On=function(l){function s(e,t){var i=l.call(this,e,t)||this,t=e.source,n=!1;if(t&&(i.el_.currentSrc!==t.src||e.tag&&3===e.tag.initNetworkState_)?i.setSource(t):i.handleLateInit_(i.el_),e.enableSourceset&&i.setupSourcesetHandling_(),i.isScrubbing_=!1,i.el_.hasChildNodes()){for(var r=i.el_.childNodes,a=r.length,s=[];a--;){var o=r[a];"track"===o.nodeName.toLowerCase()&&(i.featuresNativeTextTracks?(i.remoteTextTrackEls().addTrackElement_(o),i.remoteTextTracks().addTrack(o.track),i.textTracks().addTrack(o.track),n||i.el_.hasAttribute("crossorigin")||!Ut(o.src)||(n=!0)):s.push(o))}for(var u=0;u<s.length;u++)i.el_.removeChild(s[u])}return i.proxyNativeTracks_(),i.featuresNativeTextTracks&&n&&h.warn("Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\nThis may prevent text tracks from loading."),i.restoreMetadataTracksInIOSNativePlayer_(),(F||H||L)&&!0===e.nativeControlsForTouch&&i.setControls(!0),i.proxyWebkitFullscreen_(),i.triggerReady(),i}mt(s,l);var e=s.prototype;return e.dispose=function(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),s.disposeMediaElement(this.el_),this.options_=null,l.prototype.dispose.call(this)},e.setupSourcesetHandling_=function(){xn(this)},e.restoreMetadataTracksInIOSNativePlayer_=function(){function e(){i=[];for(var e=0;e<n.length;e++){var t=n[e];"metadata"===t.kind&&i.push({track:t,storedMode:t.mode})}}var i,n=this.textTracks();e(),n.addEventListener("change",e),this.on("dispose",function(){return n.removeEventListener("change",e)});function r(){for(var e=0;e<i.length;e++){var t=i[e];"disabled"===t.track.mode&&t.track.mode!==t.storedMode&&(t.track.mode=t.storedMode)}n.removeEventListener("change",r)}this.on("webkitbeginfullscreen",function(){n.removeEventListener("change",e),n.removeEventListener("change",r),n.addEventListener("change",r)}),this.on("webkitendfullscreen",function(){n.removeEventListener("change",e),n.addEventListener("change",e),n.removeEventListener("change",r)})},e.overrideNative_=function(e,t){var i,n=this;t===this["featuresNative"+e+"Tracks"]&&(this[(i=e.toLowerCase())+"TracksListeners_"]&&Object.keys(this[i+"TracksListeners_"]).forEach(function(e){n.el()[i+"Tracks"].removeEventListener(e,n[i+"TracksListeners_"][e])}),this["featuresNative"+e+"Tracks"]=!t,this[i+"TracksListeners_"]=null,this.proxyNativeTracksForType_(i))},e.overrideNativeAudioTracks=function(e){this.overrideNative_("Audio",e)},e.overrideNativeVideoTracks=function(e){this.overrideNative_("Video",e)},e.proxyNativeTracksForType_=function(i){var e,t,n=this,r=ai[i],a=this.el()[r.getterName],s=this[r.getterName]();this["featuresNative"+r.capitalName+"Tracks"]&&a&&a.addEventListener&&(t=function(){for(var e=[],t=0;t<s.length;t++){for(var i=!1,n=0;n<a.length;n++)if(a[n]===s[t]){i=!0;break}i||e.push(s[t])}for(;e.length;)s.removeTrack(e.shift())},this[r.getterName+"Listeners_"]=e={change:function(e){var t={type:"change",target:s,currentTarget:s,srcElement:s};s.trigger(t),"text"===i&&n[si.remoteText.getterName]().trigger(t)},addtrack:function(e){s.addTrack(e.track)},removetrack:function(e){s.removeTrack(e.track)}},Object.keys(e).forEach(function(t){var i=e[t];a.addEventListener(t,i),n.on("dispose",function(e){return a.removeEventListener(t,i)})}),this.on("loadstart",t),this.on("dispose",function(e){return n.off("loadstart",t)}))},e.proxyNativeTracks_=function(){var t=this;ai.names.forEach(function(e){t.proxyNativeTracksForType_(e)})},e.createEl=function(){var e,t=this.options_.tag;t&&(this.options_.playerElIngest||this.movingMediaElementInDOM)||(t?(e=t.cloneNode(!0),t.parentNode&&t.parentNode.insertBefore(e,t),s.disposeMediaElement(t),t=e):(t=document.createElement("video"),e=lt({},this.options_.tag&&ae(this.options_.tag)),F&&!0===this.options_.nativeControlsForTouch||delete e.controls,re(t,b(e,{id:this.options_.techId,class:"vjs-tech"}))),t.playerId=this.options_.playerId),"undefined"!=typeof this.options_.preload&&oe(t,"preload",this.options_.preload),void 0!==this.options_.disablePictureInPicture&&(t.disablePictureInPicture=this.options_.disablePictureInPicture);for(var i=["loop","muted","playsinline","autoplay"],n=0;n<i.length;n++){var r=i[n],a=this.options_[r];"undefined"!=typeof a&&(a?oe(t,r,r):ue(t,r),t[r]=a)}return t},e.handleLateInit_=function(e){if(0!==e.networkState&&3!==e.networkState){if(0===e.readyState){var t=!1,i=function(){t=!0};this.on("loadstart",i);var n=function(){t||this.trigger("loadstart")};return this.on("loadedmetadata",n),void this.ready(function(){this.off("loadstart",i),this.off("loadedmetadata",n),t||this.trigger("loadstart")})}var r=["loadstart"];r.push("loadedmetadata"),2<=e.readyState&&r.push("loadeddata"),3<=e.readyState&&r.push("canplay"),4<=e.readyState&&r.push("canplaythrough"),this.ready(function(){r.forEach(function(e){this.trigger(e)},this)})}},e.setScrubbing=function(e){this.isScrubbing_=e},e.scrubbing=function(){return this.isScrubbing_},e.setCurrentTime=function(e){try{this.isScrubbing_&&this.el_.fastSeek&&V?this.el_.fastSeek(e):this.el_.currentTime=e}catch(e){h(e,"Video is not ready. (Video.js)")}},e.duration=function(){var t=this;return this.el_.duration===1/0&&A&&R&&0===this.el_.currentTime?(this.on("timeupdate",function e(){0<t.el_.currentTime&&(t.el_.duration===1/0&&t.trigger("durationchange"),t.off("timeupdate",e))}),NaN):this.el_.duration||NaN},e.width=function(){return this.el_.offsetWidth},e.height=function(){return this.el_.offsetHeight},e.proxyWebkitFullscreen_=function(){var e,t,i=this;"webkitDisplayingFullscreen"in this.el_&&(e=function(){this.trigger("fullscreenchange",{isFullscreen:!1}),this.el_.controls&&!this.options_.nativeControlsForTouch&&this.controls()&&(this.el_.controls=!1)},t=function(){"webkitPresentationMode"in this.el_&&"picture-in-picture"!==this.el_.webkitPresentationMode&&(this.one("webkitendfullscreen",e),this.trigger("fullscreenchange",{isFullscreen:!0,nativeIOSFullscreen:!0}))},this.on("webkitbeginfullscreen",t),this.on("dispose",function(){i.off("webkitbeginfullscreen",t),i.off("webkitendfullscreen",e)}))},e.supportsFullScreen=function(){if("function"==typeof this.el_.webkitEnterFullScreen){var e=window.navigator&&window.navigator.userAgent||"";if(/Android/.test(e)||!/Chrome|Mac OS X 10.5/.test(e))return!0}return!1},e.enterFullScreen=function(){var e=this.el_;if(e.paused&&e.networkState<=e.HAVE_METADATA)Et(this.el_.play()),this.setTimeout(function(){e.pause();try{e.webkitEnterFullScreen()}catch(e){this.trigger("fullscreenerror",e)}},0);else try{e.webkitEnterFullScreen()}catch(e){this.trigger("fullscreenerror",e)}},e.exitFullScreen=function(){this.el_.webkitDisplayingFullscreen?this.el_.webkitExitFullScreen():this.trigger("fullscreenerror",new Error("The video is not fullscreen"))},e.requestPictureInPicture=function(){return this.el_.requestPictureInPicture()},e.src=function(e){if(void 0===e)return this.el_.src;this.setSrc(e)},e.reset=function(){s.resetMediaElement(this.el_)},e.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},e.setControls=function(e){this.el_.controls=!!e},e.addTextTrack=function(e,t,i){return this.featuresNativeTextTracks?this.el_.addTextTrack(e,t,i):l.prototype.addTextTrack.call(this,e,t,i)},e.createRemoteTextTrack=function(e){if(!this.featuresNativeTextTracks)return l.prototype.createRemoteTextTrack.call(this,e);var t=document.createElement("track");return e.kind&&(t.kind=e.kind),e.label&&(t.label=e.label),(e.language||e.srclang)&&(t.srclang=e.language||e.srclang),e.default&&(t.default=e.default),e.id&&(t.id=e.id),e.src&&(t.src=e.src),t},e.addRemoteTextTrack=function(e,t){t=l.prototype.addRemoteTextTrack.call(this,e,t);return this.featuresNativeTextTracks&&this.el().appendChild(t),t},e.removeRemoteTextTrack=function(e){if(l.prototype.removeRemoteTextTrack.call(this,e),this.featuresNativeTextTracks)for(var t=this.$$("track"),i=t.length;i--;)e!==t[i]&&e!==t[i].track||this.el().removeChild(t[i])},e.getVideoPlaybackQuality=function(){if("function"==typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();var e={};return"undefined"!=typeof this.el().webkitDroppedFrameCount&&"undefined"!=typeof this.el().webkitDecodedFrameCount&&(e.droppedVideoFrames=this.el().webkitDroppedFrameCount,e.totalVideoFrames=this.el().webkitDecodedFrameCount),window.performance&&"function"==typeof window.performance.now?e.creationTime=window.performance.now():window.performance&&window.performance.timing&&"number"==typeof window.performance.timing.navigationStart&&(e.creationTime=window.Date.now()-window.performance.timing.navigationStart),e},s}(ji);An(On,"TEST_VID",function(){if(X()){var e=document.createElement("video"),t=document.createElement("track");return t.kind="captions",t.srclang="en",t.label="English",e.appendChild(t),e}}),On.isSupported=function(){try{On.TEST_VID.volume=.5}catch(e){return!1}return!(!On.TEST_VID||!On.TEST_VID.canPlayType)},On.canPlayType=function(e){return On.TEST_VID.canPlayType(e)},On.canPlaySource=function(e,t){return On.canPlayType(e.type)},On.canControlVolume=function(){try{var e=On.TEST_VID.volume;On.TEST_VID.volume=e/2+.1;var t=e!==On.TEST_VID.volume;return t&&q?(window.setTimeout(function(){On&&On.prototype&&(On.prototype.featuresVolumeControl=e!==On.TEST_VID.volume)}),!1):t}catch(e){return!1}},On.canMuteVolume=function(){try{var e=On.TEST_VID.muted;return On.TEST_VID.muted=!e,On.TEST_VID.muted?oe(On.TEST_VID,"muted","muted"):ue(On.TEST_VID,"muted"),e!==On.TEST_VID.muted}catch(e){return!1}},On.canControlPlaybackRate=function(){if(A&&R&&M<58)return!1;try{var e=On.TEST_VID.playbackRate;return On.TEST_VID.playbackRate=e/2+.1,e!==On.TEST_VID.playbackRate}catch(e){return!1}},On.canOverrideAttributes=function(){try{var e=function(){};Object.defineProperty(document.createElement("video"),"src",{get:e,set:e}),Object.defineProperty(document.createElement("audio"),"src",{get:e,set:e}),Object.defineProperty(document.createElement("video"),"innerHTML",{get:e,set:e}),Object.defineProperty(document.createElement("audio"),"innerHTML",{get:e,set:e})}catch(e){return!1}return!0},On.supportsNativeTextTracks=function(){return V||q&&R},On.supportsNativeVideoTracks=function(){return!(!On.TEST_VID||!On.TEST_VID.videoTracks)},On.supportsNativeAudioTracks=function(){return!(!On.TEST_VID||!On.TEST_VID.audioTracks)},On.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],[["featuresMuteControl","canMuteVolume"],["featuresPlaybackRate","canControlPlaybackRate"],["featuresSourceset","canOverrideAttributes"],["featuresNativeTextTracks","supportsNativeTextTracks"],["featuresNativeVideoTracks","supportsNativeVideoTracks"],["featuresNativeAudioTracks","supportsNativeAudioTracks"]].forEach(function(e){var t=e[0],i=e[1];An(On.prototype,t,function(){return On[i]()},!0)}),On.prototype.featuresVolumeControl=On.canControlVolume(),On.prototype.movingMediaElementInDOM=!q,On.prototype.featuresFullscreenResize=!0,On.prototype.featuresProgressEvents=!0,On.prototype.featuresTimeupdateEvents=!0,On.patchCanPlayType=function(){4<=P&&!D&&!R&&(Pn=On.TEST_VID&&On.TEST_VID.constructor.prototype.canPlayType,On.TEST_VID.constructor.prototype.canPlayType=function(e){return e&&/^application\/(?:x-|vnd\.apple\.)mpegurl/i.test(e)?"maybe":Pn.call(this,e)})},On.unpatchCanPlayType=function(){var e=On.TEST_VID.constructor.prototype.canPlayType;return Pn&&(On.TEST_VID.constructor.prototype.canPlayType=Pn),e},On.patchCanPlayType(),On.disposeMediaElement=function(e){if(e){for(e.parentNode&&e.parentNode.removeChild(e);e.hasChildNodes();)e.removeChild(e.firstChild);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(e){}}()}},On.resetMediaElement=function(e){if(e){for(var t=e.querySelectorAll("source"),i=t.length;i--;)e.removeChild(t[i]);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(e){}}()}},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach(function(e){On.prototype[e]=function(){return this.el_[e]||this.el_.hasAttribute(e)}}),["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(t){On.prototype["set"+ut(t)]=function(e){(this.el_[t]=e)?this.el_.setAttribute(t,t):this.el_.removeAttribute(t)}}),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","disablePictureInPicture","played","networkState","readyState","videoWidth","videoHeight","crossOrigin"].forEach(function(e){On.prototype[e]=function(){return this.el_[e]}}),["volume","src","poster","preload","playbackRate","defaultPlaybackRate","disablePictureInPicture","crossOrigin"].forEach(function(t){On.prototype["set"+ut(t)]=function(e){this.el_[t]=e}}),["pause","load","play"].forEach(function(e){On.prototype[e]=function(){return this.el_[e]()}}),ji.withSourceHandlers(On),On.nativeSourceHandler={},On.nativeSourceHandler.canPlayType=function(e){try{return On.TEST_VID.canPlayType(e)}catch(e){return""}},On.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return On.nativeSourceHandler.canPlayType(e.type);if(e.src){e=Nt(e.src);return On.nativeSourceHandler.canPlayType("video/"+e)}return""},On.nativeSourceHandler.handleSource=function(e,t,i){t.setSrc(e.src)},On.nativeSourceHandler.dispose=function(){},On.registerSourceHandler(On.nativeSourceHandler),ji.registerTech("Html5",On);var Rn=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],Mn={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},Nn=["tiny","xsmall","small","medium","large","xlarge","huge"],Un={};Nn.forEach(function(e){var t="x"===e.charAt(0)?"x-"+e.substring(1):e;Un[e]="vjs-layout-"+t});var Bn={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0},Fn=function(c){function o(e,t,i){var n,r;if(e.id=e.id||t.id||"vjs_video_"+Pe++,(t=b(o.getTagSettings(e),t)).initChildren=!1,t.createEl=!1,t.evented=!1,t.reportTouchActivity=!1,!t.language)if("function"==typeof e.closest){var a=e.closest("[lang]");a&&a.getAttribute&&(t.language=a.getAttribute("lang"))}else for(var s=e;s&&1===s.nodeType;){if(ae(s).hasOwnProperty("lang")){t.language=s.getAttribute("lang");break}s=s.parentNode}if((n=c.call(this,null,t,i)||this).boundDocumentFullscreenChange_=function(e){return n.documentFullscreenChange_(e)},n.boundFullWindowOnEscKey_=function(e){return n.fullWindowOnEscKey(e)},n.boundUpdateStyleEl_=function(e){return n.updateStyleEl_(e)},n.boundApplyInitTime_=function(e){return n.applyInitTime_(e)},n.boundUpdateCurrentBreakpoint_=function(e){return n.updateCurrentBreakpoint_(e)},n.boundHandleTechClick_=function(e){return n.handleTechClick_(e)},n.boundHandleTechDoubleClick_=function(e){return n.handleTechDoubleClick_(e)},n.boundHandleTechTouchStart_=function(e){return n.handleTechTouchStart_(e)},n.boundHandleTechTouchMove_=function(e){return n.handleTechTouchMove_(e)},n.boundHandleTechTouchEnd_=function(e){return n.handleTechTouchEnd_(e)},n.boundHandleTechTap_=function(e){return n.handleTechTap_(e)},n.isFullscreen_=!1,n.log=p(n.id_),n.fsApi_=l,n.isPosterFromTech_=!1,n.queuedCallbacks_=[],n.isReady_=!1,n.hasStarted_=!1,n.userActive_=!1,n.debugEnabled_=!1,!n.options_||!n.options_.techOrder||!n.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");n.tag=e,n.tagAttributes=e&&ae(e),n.language(n.options_.language),t.languages?(r={},Object.getOwnPropertyNames(t.languages).forEach(function(e){r[e.toLowerCase()]=t.languages[e]}),n.languages_=r):n.languages_=o.prototype.options_.languages,n.resetCache_(),n.poster_=t.poster||"",n.controls_=!!t.controls,e.controls=!1,e.removeAttribute("controls"),n.changingSrc_=!1,n.playCallbacks_=[],n.playTerminatedQueue_=[],e.hasAttribute("autoplay")?n.autoplay(!0):n.autoplay(n.options_.autoplay),t.plugins&&Object.keys(t.plugins).forEach(function(e){if("function"!=typeof n[e])throw new Error('plugin "'+e+'" does not exist')}),n.scrubbing_=!1,n.el_=n.createEl(),rt(ft(n),{eventBusKey:"el_"}),n.fsApi_.requestFullscreen&&(Be(document,n.fsApi_.fullscreenchange,n.boundDocumentFullscreenChange_),n.on(n.fsApi_.fullscreenchange,n.boundDocumentFullscreenChange_)),n.fluid_&&n.on(["playerreset","resize"],n.boundUpdateStyleEl_);i=lt(n.options_);t.plugins&&Object.keys(t.plugins).forEach(function(e){n[e](t.plugins[e])}),t.debug&&n.debug(!0),n.options_.playerOptions=i,n.middleware_=[],n.playbackRates(t.playbackRates),n.initChildren(),n.isAudio("audio"===e.nodeName.toLowerCase()),n.controls()?n.addClass("vjs-controls-enabled"):n.addClass("vjs-controls-disabled"),n.el_.setAttribute("role","region"),n.isAudio()?n.el_.setAttribute("aria-label",n.localize("Audio Player")):n.el_.setAttribute("aria-label",n.localize("Video Player")),n.isAudio()&&n.addClass("vjs-audio"),n.flexNotSupported_()&&n.addClass("vjs-no-flex"),F&&n.addClass("vjs-touch-enabled"),q||n.addClass("vjs-workinghover"),o.players[n.id_]=ft(n);e=u.split(".")[0];return n.addClass("vjs-v"+e),n.userActive(!0),n.reportUserActivity(),n.one("play",function(e){return n.listenForUserActivity_(e)}),n.on("stageclick",function(e){return n.handleStageClick_(e)}),n.on("keydown",function(e){return n.handleKeyDown(e)}),n.on("languagechange",function(e){return n.handleLanguagechange(e)}),n.breakpoints(n.options_.breakpoints),n.responsive(n.options_.responsive),n}mt(o,c);var e=o.prototype;return e.dispose=function(){var t=this;this.trigger("dispose"),this.off("dispose"),Fe(document,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),Fe(document,"keydown",this.boundFullWindowOnEscKey_),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),o.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&(this.tech_.dispose(),this.isPosterFromTech_=!1,this.poster_=""),this.playerElIngest_&&(this.playerElIngest_=null),this.tag&&(this.tag=null),qi[this.id()]=null,oi.names.forEach(function(e){e=oi[e],e=t[e.getterName]();e&&e.off&&e.off()}),c.prototype.dispose.call(this)},e.createEl=function(){var t,i=this.tag,e=this.playerElIngest_=i.parentNode&&i.parentNode.hasAttribute&&i.parentNode.hasAttribute("data-vjs-player"),n="video-js"===this.tag.tagName.toLowerCase();e?t=this.el_=i.parentNode:n||(t=this.el_=c.prototype.createEl.call(this,"div"));var r,a,s=ae(i);if(n){for(t=this.el_=i,i=this.tag=document.createElement("video");t.children.length;)i.appendChild(t.firstChild);ee(t,"video-js")||te(t,"video-js"),t.appendChild(i),e=this.playerElIngest_=t,Object.keys(t).forEach(function(e){try{i[e]=t[e]}catch(e){}})}i.setAttribute("tabindex","-1"),s.tabindex="-1",(N||R&&B)&&(i.setAttribute("role","application"),s.role="application"),i.removeAttribute("width"),i.removeAttribute("height"),"width"in s&&delete s.width,"height"in s&&delete s.height,Object.getOwnPropertyNames(s).forEach(function(e){n&&"class"===e||t.setAttribute(e,s[e]),n&&i.setAttribute(e,s[e])}),i.playerId=i.id,i.id+="_html5_api",i.className="vjs-tech",(i.player=t.player=this).addClass("vjs-paused"),!0!==window.VIDEOJS_NO_DYNAMIC_STYLE&&(this.styleEl_=xe("vjs-styles-dimensions"),r=Te(".vjs-styles-defaults"),(a=Te("head")).insertBefore(this.styleEl_,r?r.nextSibling:a.firstChild)),this.fill_=!1,this.fluid_=!1,this.width(this.options_.width),this.height(this.options_.height),this.fill(this.options_.fill),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio),this.crossOrigin(this.options_.crossOrigin||this.options_.crossorigin);for(var o=i.getElementsByTagName("a"),u=0;u<o.length;u++){var l=o.item(u);te(l,"vjs-hidden"),l.setAttribute("hidden","hidden")}return i.initNetworkState_=i.networkState,i.parentNode&&!e&&i.parentNode.insertBefore(t,i),Z(i,t),this.children_.unshift(i),this.el_.setAttribute("lang",this.language_),this.el_.setAttribute("translate","no"),this.el_=t},e.crossOrigin=function(e){if(!e)return this.techGet_("crossOrigin");"anonymous"===e||"use-credentials"===e?this.techCall_("setCrossOrigin",e):h.warn('crossOrigin must be "anonymous" or "use-credentials", given "'+e+'"')},e.width=function(e){return this.dimension("width",e)},e.height=function(e){return this.dimension("height",e)},e.dimension=function(e,t){var i=e+"_";if(void 0===t)return this[i]||0;if(""===t||"auto"===t)return this[i]=void 0,void this.updateStyleEl_();var n=parseFloat(t);isNaN(n)?h.error('Improper value "'+t+'" supplied for for '+e):(this[i]=n,this.updateStyleEl_())},e.fluid=function(e){var t,i=this;if(void 0===e)return!!this.fluid_;this.fluid_=!!e,it(this)&&this.off(["playerreset","resize"],this.boundUpdateStyleEl_),e?(this.addClass("vjs-fluid"),this.fill(!1),t=function(){i.on(["playerreset","resize"],i.boundUpdateStyleEl_)},it(e=this)?t():(e.eventedCallbacks||(e.eventedCallbacks=[]),e.eventedCallbacks.push(t))):this.removeClass("vjs-fluid"),this.updateStyleEl_()},e.fill=function(e){if(void 0===e)return!!this.fill_;this.fill_=!!e,e?(this.addClass("vjs-fill"),this.fluid(!1)):this.removeClass("vjs-fill")},e.aspectRatio=function(e){if(void 0===e)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(e))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=e,this.fluid(!0),this.updateStyleEl_()},e.updateStyleEl_=function(){var e,t,i,n;!0!==window.VIDEOJS_NO_DYNAMIC_STYLE?(n=(i=(void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:0<this.videoWidth()?this.videoWidth()+":"+this.videoHeight():"16:9").split(":"))[1]/i[0],e=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/n:this.videoWidth()||300,t=void 0!==this.height_?this.height_:e*n,i=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(i),Ae(this.styleEl_,"\n ."+i+" {\n width: "+e+"px;\n height: "+t+"px;\n }\n\n ."+i+".vjs-fluid {\n padding-top: "+100*n+"%;\n }\n ")):(t="number"==typeof this.width_?this.width_:this.options_.width,i="number"==typeof this.height_?this.height_:this.options_.height,(n=this.tech_&&this.tech_.el())&&(0<=t&&(n.width=t),0<=i&&(n.height=i)))},e.loadTech_=function(e,t){var i=this;this.tech_&&this.unloadTech_();var n=ut(e),r=e.charAt(0).toLowerCase()+e.slice(1);"Html5"!==n&&this.tag&&(ji.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=n,this.isReady_=!1;var a=this.autoplay(),s={source:t,autoplay:a="string"==typeof this.autoplay()||!0===this.autoplay()&&this.options_.normalizeAutoplay?!1:a,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+r+"_api",playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,disablePictureInPicture:this.options_.disablePictureInPicture,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"],canOverridePoster:!!this.options_.techCanOverridePoster,enableSourceset:this.options_.enableSourceset,Promise:this.options_.Promise};oi.names.forEach(function(e){e=oi[e];s[e.getterName]=i[e.privateName]}),b(s,this.options_[n]),b(s,this.options_[r]),b(s,this.options_[e.toLowerCase()]),this.tag&&(s.tag=this.tag),t&&t.src===this.cache_.src&&0<this.cache_.currentTime&&(s.startTime=this.cache_.currentTime);e=ji.getTech(e);if(!e)throw new Error("No Tech named '"+n+"' exists! '"+n+"' should be registered using videojs.registerTech()'");this.tech_=new e(s),this.tech_.ready(Ve(this,this.handleTechReady_),!0),It(this.textTracksJson_||[],this.tech_),Rn.forEach(function(t){i.on(i.tech_,t,function(e){return i["handleTech"+ut(t)+"_"](e)})}),Object.keys(Mn).forEach(function(t){i.on(i.tech_,t,function(e){0===i.tech_.playbackRate()&&i.tech_.seeking()?i.queuedCallbacks_.push({callback:i["handleTech"+Mn[t]+"_"].bind(i),event:e}):i["handleTech"+Mn[t]+"_"](e)})}),this.on(this.tech_,"loadstart",function(e){return i.handleTechLoadStart_(e)}),this.on(this.tech_,"sourceset",function(e){return i.handleTechSourceset_(e)}),this.on(this.tech_,"waiting",function(e){return i.handleTechWaiting_(e)}),this.on(this.tech_,"ended",function(e){return i.handleTechEnded_(e)}),this.on(this.tech_,"seeking",function(e){return i.handleTechSeeking_(e)}),this.on(this.tech_,"play",function(e){return i.handleTechPlay_(e)}),this.on(this.tech_,"firstplay",function(e){return i.handleTechFirstPlay_(e)}),this.on(this.tech_,"pause",function(e){return i.handleTechPause_(e)}),this.on(this.tech_,"durationchange",function(e){return i.handleTechDurationChange_(e)}),this.on(this.tech_,"fullscreenchange",function(e,t){return i.handleTechFullscreenChange_(e,t)}),this.on(this.tech_,"fullscreenerror",function(e,t){return i.handleTechFullscreenError_(e,t)}),this.on(this.tech_,"enterpictureinpicture",function(e){return i.handleTechEnterPictureInPicture_(e)}),this.on(this.tech_,"leavepictureinpicture",function(e){return i.handleTechLeavePictureInPicture_(e)}),this.on(this.tech_,"error",function(e){return i.handleTechError_(e)}),this.on(this.tech_,"posterchange",function(e){return i.handleTechPosterChange_(e)}),this.on(this.tech_,"textdata",function(e){return i.handleTechTextData_(e)}),this.on(this.tech_,"ratechange",function(e){return i.handleTechRateChange_(e)}),this.on(this.tech_,"loadedmetadata",this.boundUpdateStyleEl_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===n&&this.tag||Z(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},e.unloadTech_=function(){var t=this;oi.names.forEach(function(e){e=oi[e];t[e.privateName]=t[e.getterName]()}),this.textTracksJson_=Ct(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1},e.tech=function(e){return void 0===e&&h.warn("Using the tech directly can be dangerous. I hope you know what you're doing.\nSee https://github.com/videojs/video.js/issues/2617 for more info.\n"),this.tech_},e.addTechControlsListeners_=function(){this.removeTechControlsListeners_(),this.on(this.tech_,"click",this.boundHandleTechClick_),this.on(this.tech_,"dblclick",this.boundHandleTechDoubleClick_),this.on(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.on(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.on(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.on(this.tech_,"tap",this.boundHandleTechTap_)},e.removeTechControlsListeners_=function(){this.off(this.tech_,"tap",this.boundHandleTechTap_),this.off(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.off(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.off(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.off(this.tech_,"click",this.boundHandleTechClick_),this.off(this.tech_,"dblclick",this.boundHandleTechDoubleClick_)},e.handleTechReady_=function(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_()},e.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.error(null),this.handleTechDurationChange_(),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay")),this.manualAutoplay_(!0===this.autoplay()&&this.options_.normalizeAutoplay?"play":this.autoplay())},e.manualAutoplay_=function(e){var n=this;if(this.tech_&&"string"==typeof e){var t,i=function(){var e=n.muted();n.muted(!0);function t(){n.muted(e)}n.playTerminatedQueue_.push(t);var i=n.play();if(wt(i))return i.catch(function(e){throw t(),new Error("Rejection at manualAutoplay. Restoring muted value. "+(e||""))})};if("any"!==e||this.muted()?t="muted"!==e||this.muted()?this.play():i():wt(t=this.play())&&(t=t.catch(i)),wt(t))return t.then(function(){n.trigger({type:"autoplay-success",autoplay:e})}).catch(function(){n.trigger({type:"autoplay-failure",autoplay:e})})}},e.updateSourceCaches_=function(e){var t=e=void 0===e?"":e,i="";"string"!=typeof t&&(t=e.src,i=e.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],t&&!i&&(i=function(e,t){if(!t)return"";if(e.cache_.source.src===t&&e.cache_.source.type)return e.cache_.source.type;var i=e.cache_.sources.filter(function(e){return e.src===t});if(i.length)return i[0].type;for(var n=e.$$("source"),r=0;r<n.length;r++){var a=n[r];if(a.type&&a.src&&a.src===t)return a.type}return $i(t)}(this,t)),this.cache_.source=lt({},e,{src:t,type:i});for(var i=this.cache_.sources.filter(function(e){return e.src&&e.src===t}),n=[],r=this.$$("source"),a=[],s=0;s<r.length;s++){var o=ae(r[s]);n.push(o),o.src&&o.src===t&&a.push(o.src)}a.length&&!i.length?this.cache_.sources=n:i.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=t},e.handleTechSourceset_=function(e){var t,i,n,r=this;this.changingSrc_||(t=function(e){return r.updateSourceCaches_(e)},i=this.currentSource().src,n=e.src,i&&!/^blob:/.test(i)&&/^blob:/.test(n)&&(this.lastSource_&&(this.lastSource_.tech===n||this.lastSource_.player===i)||(t=function(){})),t(n),e.src||this.tech_.any(["sourceset","loadstart"],function(e){"sourceset"!==e.type&&(e=r.techGet("currentSrc"),r.lastSource_.tech=e,r.updateSourceCaches_(e))})),this.lastSource_={player:this.currentSource().src,tech:e.src},this.trigger({src:e.src,type:"sourceset"})},e.hasStarted=function(e){if(void 0===e)return this.hasStarted_;e!==this.hasStarted_&&(this.hasStarted_=e,this.hasStarted_?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started"))},e.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},e.handleTechRateChange_=function(){0<this.tech_.playbackRate()&&0===this.cache_.lastPlaybackRate&&(this.queuedCallbacks_.forEach(function(e){return e.callback(e.event)}),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")},e.handleTechWaiting_=function(){var t=this;this.addClass("vjs-waiting"),this.trigger("waiting");var i=this.currentTime();this.on("timeupdate",function e(){i!==t.currentTime()&&(t.removeClass("vjs-waiting"),t.off("timeupdate",e))})},e.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},e.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},e.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},e.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},e.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.removeClass("vjs-ended"),this.trigger("seeked")},e.handleTechFirstPlay_=function(){this.options_.starttime&&(h.warn("Passing the `starttime` option to the player will be deprecated in 6.0"),this.currentTime(this.options_.starttime)),this.addClass("vjs-has-started"),this.trigger("firstplay")},e.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},e.handleTechEnded_=function(){this.addClass("vjs-ended"),this.removeClass("vjs-waiting"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},e.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},e.handleTechClick_=function(e){this.controls_&&(void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.click&&!1===this.options_.userActions.click||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.click?this.options_.userActions.click.call(this,e):this.paused()?Et(this.play()):this.pause()))},e.handleTechDoubleClick_=function(t){this.controls_&&(Array.prototype.some.call(this.$$(".vjs-control-bar, .vjs-modal-dialog"),function(e){return e.contains(t.target)})||void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.doubleClick&&!1===this.options_.userActions.doubleClick||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.doubleClick?this.options_.userActions.doubleClick.call(this,t):this.isFullscreen()?this.exitFullscreen():this.requestFullscreen()))},e.handleTechTap_=function(){this.userActive(!this.userActive())},e.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},e.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},e.handleTechTouchEnd_=function(e){e.cancelable&&e.preventDefault()},e.handleStageClick_=function(){this.reportUserActivity()},e.toggleFullscreenClass_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},e.documentFullscreenChange_=function(e){var t=e.target.player;t&&t!==this||(e=this.el(),!(t=document[this.fsApi_.fullscreenElement]===e)&&e.matches?t=e.matches(":"+this.fsApi_.fullscreen):!t&&e.msMatchesSelector&&(t=e.msMatchesSelector(":"+this.fsApi_.fullscreen)),this.isFullscreen(t))},e.handleTechFullscreenChange_=function(e,t){var i=this;t&&(t.nativeIOSFullscreen&&(this.addClass("vjs-ios-native-fs"),this.tech_.one("webkitendfullscreen",function(){i.removeClass("vjs-ios-native-fs")})),this.isFullscreen(t.isFullscreen))},e.handleTechFullscreenError_=function(e,t){this.trigger("fullscreenerror",t)},e.togglePictureInPictureClass_=function(){this.isInPictureInPicture()?this.addClass("vjs-picture-in-picture"):this.removeClass("vjs-picture-in-picture")},e.handleTechEnterPictureInPicture_=function(e){this.isInPictureInPicture(!0)},e.handleTechLeavePictureInPicture_=function(e){this.isInPictureInPicture(!1)},e.handleTechError_=function(){var e=this.tech_.error();this.error(e)},e.handleTechTextData_=function(){this.trigger("textdata",1<arguments.length?arguments[1]:null)},e.getCache=function(){return this.cache_},e.resetCache_=function(){this.cache_={currentTime:0,initTime:0,inactivityTimeout:this.options_.inactivityTimeout,duration:NaN,lastVolume:1,lastPlaybackRate:this.defaultPlaybackRate(),media:null,src:"",source:{},sources:[],playbackRates:[],volume:1}},e.techCall_=function(n,r){this.ready(function(){if(n in Xi)return e=this.middleware_,t=this.tech_,i=r,t[t=n](e.reduce(Yi(t),i));if(n in Ki)return Gi(this.middleware_,this.tech_,n,r);var e,t,i;try{this.tech_&&this.tech_[n](r)}catch(e){throw h(e),e}},!0)},e.techGet_=function(t){if(this.tech_&&this.tech_.isReady_){if(t in zi)return e=this.middleware_,i=this.tech_,n=t,e.reduceRight(Yi(n),i[n]());if(t in Ki)return Gi(this.middleware_,this.tech_,t);var e,i,n;try{return this.tech_[t]()}catch(e){if(void 0===this.tech_[t])throw h("Video.js: "+t+" method not defined for "+this.techName_+" playback technology.",e),e;if("TypeError"===e.name)throw h("Video.js: "+t+" unavailable on "+this.techName_+" playback technology element.",e),this.tech_.isReady_=!1,e;throw h(e),e}}},e.play=function(){var t=this,e=this.options_.Promise||window.Promise;return e?new e(function(e){t.play_(e)}):this.play_()},e.play_=function(e){var t=this;this.playCallbacks_.push(e=void 0===e?Et:e);e=Boolean(!this.changingSrc_&&(this.src()||this.currentSrc()));if(this.waitToPlay_&&(this.off(["ready","loadstart"],this.waitToPlay_),this.waitToPlay_=null),!this.isReady_||!e)return this.waitToPlay_=function(e){t.play_()},this.one(["ready","loadstart"],this.waitToPlay_),void(e||!V&&!q||this.load());e=this.techGet_("play");null===e?this.runPlayTerminatedQueue_():this.runPlayCallbacks_(e)},e.runPlayTerminatedQueue_=function(){var e=this.playTerminatedQueue_.slice(0);this.playTerminatedQueue_=[],e.forEach(function(e){e()})},e.runPlayCallbacks_=function(t){var e=this.playCallbacks_.slice(0);this.playCallbacks_=[],this.playTerminatedQueue_=[],e.forEach(function(e){e(t)})},e.pause=function(){this.techCall_("pause")},e.paused=function(){return!1!==this.techGet_("paused")},e.played=function(){return this.techGet_("played")||vt(0,0)},e.scrubbing=function(e){if("undefined"==typeof e)return this.scrubbing_;this.scrubbing_=!!e,this.techCall_("setScrubbing",this.scrubbing_),e?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")},e.currentTime=function(e){return"undefined"!=typeof e?(e<0&&(e=0),this.isReady_&&!this.changingSrc_&&this.tech_&&this.tech_.isReady_?(this.techCall_("setCurrentTime",e),void(this.cache_.initTime=0)):(this.cache_.initTime=e,this.off("canplay",this.boundApplyInitTime_),void this.one("canplay",this.boundApplyInitTime_))):(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime)},e.applyInitTime_=function(){this.currentTime(this.cache_.initTime)},e.duration=function(e){if(void 0===e)return void 0!==this.cache_.duration?this.cache_.duration:NaN;(e=(e=parseFloat(e))<0?1/0:e)!==this.cache_.duration&&((this.cache_.duration=e)===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),isNaN(e)||this.trigger("durationchange"))},e.remainingTime=function(){return this.duration()-this.currentTime()},e.remainingTimeDisplay=function(){return Math.floor(this.duration())-Math.floor(this.currentTime())},e.buffered=function(){var e;return e=!(e=this.techGet_("buffered"))||!e.length?vt(0,0):e},e.bufferedPercent=function(){return _t(this.buffered(),this.duration())},e.bufferedEnd=function(){var e=this.buffered(),t=this.duration(),e=e.end(e.length-1);return e=t<e?t:e},e.volume=function(e){var t;return void 0!==e?(t=Math.max(0,Math.min(1,parseFloat(e))),this.cache_.volume=t,this.techCall_("setVolume",t),void(0<t&&this.lastVolume_(t))):(t=parseFloat(this.techGet_("volume")),isNaN(t)?1:t)},e.muted=function(e){if(void 0===e)return this.techGet_("muted")||!1;this.techCall_("setMuted",e)},e.defaultMuted=function(e){return void 0!==e?this.techCall_("setDefaultMuted",e):this.techGet_("defaultMuted")||!1},e.lastVolume_=function(e){if(void 0===e||0===e)return this.cache_.lastVolume;this.cache_.lastVolume=e},e.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},e.isFullscreen=function(e){if(void 0===e)return this.isFullscreen_;var t=this.isFullscreen_;this.isFullscreen_=Boolean(e),this.isFullscreen_!==t&&this.fsApi_.prefixed&&this.trigger("fullscreenchange"),this.toggleFullscreenClass_()},e.requestFullscreen=function(s){var e=this.options_.Promise||window.Promise;if(e){var o=this;return new e(function(e,i){function n(){o.off("fullscreenerror",r),o.off("fullscreenchange",t)}function t(){n(),e()}function r(e,t){n(),i(t)}o.one("fullscreenchange",t),o.one("fullscreenerror",r);var a=o.requestFullscreenHelper_(s);a&&(a.then(n,n),a.then(e,i))})}return this.requestFullscreenHelper_()},e.requestFullscreenHelper_=function(e){var t=this;if(this.fsApi_.prefixed||(i=this.options_.fullscreen&&this.options_.fullscreen.options||{},void 0!==e&&(i=e)),this.fsApi_.requestFullscreen){var i=this.el_[this.fsApi_.requestFullscreen](i);return i&&i.then(function(){return t.isFullscreen(!0)},function(){return t.isFullscreen(!1)}),i}this.tech_.supportsFullScreen()&&!0==!this.options_.preferFullWindow?this.techCall_("enterFullScreen"):this.enterFullWindow()},e.exitFullscreen=function(){var e=this.options_.Promise||window.Promise;if(e){var s=this;return new e(function(e,i){function n(){s.off("fullscreenerror",r),s.off("fullscreenchange",t)}function t(){n(),e()}function r(e,t){n(),i(t)}s.one("fullscreenchange",t),s.one("fullscreenerror",r);var a=s.exitFullscreenHelper_();a&&(a.then(n,n),a.then(e,i))})}return this.exitFullscreenHelper_()},e.exitFullscreenHelper_=function(){var e=this;if(this.fsApi_.requestFullscreen){var t=document[this.fsApi_.exitFullscreen]();return t&&Et(t.then(function(){return e.isFullscreen(!1)})),t}this.tech_.supportsFullScreen()&&!0==!this.options_.preferFullWindow?this.techCall_("exitFullScreen"):this.exitFullWindow()},e.enterFullWindow=function(){this.isFullscreen(!0),this.isFullWindow=!0,this.docOrigOverflow=document.documentElement.style.overflow,Be(document,"keydown",this.boundFullWindowOnEscKey_),document.documentElement.style.overflow="hidden",te(document.body,"vjs-full-window"),this.trigger("enterFullWindow")},e.fullWindowOnEscKey=function(e){ht.isEventKey(e,"Esc")&&!0===this.isFullscreen()&&(this.isFullWindow?this.exitFullWindow():this.exitFullscreen())},e.exitFullWindow=function(){this.isFullscreen(!1),this.isFullWindow=!1,Fe(document,"keydown",this.boundFullWindowOnEscKey_),document.documentElement.style.overflow=this.docOrigOverflow,ie(document.body,"vjs-full-window"),this.trigger("exitFullWindow")},e.disablePictureInPicture=function(e){if(void 0===e)return this.techGet_("disablePictureInPicture");this.techCall_("setDisablePictureInPicture",e),this.options_.disablePictureInPicture=e,this.trigger("disablepictureinpicturechanged")},e.isInPictureInPicture=function(e){return void 0!==e?(this.isInPictureInPicture_=!!e,void this.togglePictureInPictureClass_()):!!this.isInPictureInPicture_},e.requestPictureInPicture=function(){if("pictureInPictureEnabled"in document&&!1===this.disablePictureInPicture())return this.techGet_("requestPictureInPicture")},e.exitPictureInPicture=function(){if("pictureInPictureEnabled"in document)return document.exitPictureInPicture()},e.handleKeyDown=function(e){var t=this.options_.userActions;t&&t.hotkeys&&(function(e){var t=e.tagName.toLowerCase();if(e.isContentEditable)return!0;if("input"===t)return-1===["button","checkbox","hidden","radio","reset","submit"].indexOf(e.type);return-1!==["textarea"].indexOf(t)}(this.el_.ownerDocument.activeElement)||("function"==typeof t.hotkeys?t.hotkeys.call(this,e):this.handleHotkeys(e)))},e.handleHotkeys=function(e){var t=this.options_.userActions?this.options_.userActions.hotkeys:{},i=t.fullscreenKey,n=t.muteKey,n=void 0===n?function(e){return ht.isEventKey(e,"m")}:n,t=t.playPauseKey,t=void 0===t?function(e){return ht.isEventKey(e,"k")||ht.isEventKey(e,"Space")}:t;(void 0===i?function(e){return ht.isEventKey(e,"f")}:i).call(this,e)?(e.preventDefault(),e.stopPropagation(),i=pt.getComponent("FullscreenToggle"),!1!==document[this.fsApi_.fullscreenEnabled]&&i.prototype.handleClick.call(this,e)):n.call(this,e)?(e.preventDefault(),e.stopPropagation(),pt.getComponent("MuteToggle").prototype.handleClick.call(this,e)):t.call(this,e)&&(e.preventDefault(),e.stopPropagation(),pt.getComponent("PlayToggle").prototype.handleClick.call(this,e))},e.canPlayType=function(e){for(var t,i=0,n=this.options_.techOrder;i<n.length;i++){var r=n[i],a=ji.getTech(r);if(a=a||pt.getComponent(r)){if(a.isSupported()&&(t=a.canPlayType(e)))return t}else h.error('The "'+r+'" tech is undefined. Skipped browser support check for that tech.')}return""},e.selectSource=function(e){function t(e,i,n){var r;return e.some(function(t){return i.some(function(e){if(r=n(t,e))return!0})}),r}var i,n=this,r=this.options_.techOrder.map(function(e){return[e,ji.getTech(e)]}).filter(function(e){var t=e[0],e=e[1];return e?e.isSupported():(h.error('The "'+t+'" tech is undefined. Skipped browser support check for that tech.'),!1)}),a=function(e,t){var i=e[0];if(e[1].canPlaySource(t,n.options_[i.toLowerCase()]))return{source:t,tech:i}},a=this.options_.sourceOrder?t(e,r,(i=a,function(e,t){return i(t,e)})):t(r,e,a);return a||!1},e.handleSrc_=function(e,n){var r=this;if("undefined"==typeof e)return this.cache_.src||"";this.resetRetryOnError_&&this.resetRetryOnError_();var t,i,a=Ji(e);a.length?(this.changingSrc_=!0,n||(this.cache_.sources=a),this.updateSourceCaches_(a[0]),Wi(this,a[0],function(e,t){var i;return r.middleware_=t,n||(r.cache_.sources=a),r.updateSourceCaches_(e),r.src_(e)?1<a.length?r.handleSrc_(a.slice(1)):(r.changingSrc_=!1,r.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0),void r.triggerReady()):(t=t,i=r.tech_,void t.forEach(function(e){return e.setTech&&e.setTech(i)}))}),this.options_.retryOnError&&1<a.length&&(i=function(){r.off("error",t)},this.one("error",t=function(){r.error(null),r.handleSrc_(a.slice(1),!0)}),this.one("playing",i),this.resetRetryOnError_=function(){r.off("error",t),r.off("playing",i)})):this.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0)},e.src=function(e){return this.handleSrc_(e,!1)},e.src_=function(e){var t,i,n=this,r=this.selectSource([e]);return!r||(t=r.tech,i=this.techName_,ut(t)!==ut(i)?(this.changingSrc_=!0,this.loadTech_(r.tech,r.source),this.tech_.ready(function(){n.changingSrc_=!1})):this.ready(function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",e):this.techCall_("src",e.src),this.changingSrc_=!1},!0),!1)},e.load=function(){this.techCall_("load")},e.reset=function(){var e=this,t=this.options_.Promise||window.Promise;this.paused()||!t?this.doReset_():Et(this.play().then(function(){return e.doReset_()}))},e.doReset_=function(){this.tech_&&this.tech_.clearTracks("text"),this.resetCache_(),this.poster(""),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset"),this.resetControlBarUI_(),it(this)&&this.trigger("playerreset")},e.resetControlBarUI_=function(){this.resetProgressBar_(),this.resetPlaybackRate_(),this.resetVolumeBar_()},e.resetProgressBar_=function(){this.currentTime(0);var e=this.controlBar,t=e.durationDisplay,e=e.remainingTimeDisplay;t&&t.updateContent(),e&&e.updateContent()},e.resetPlaybackRate_=function(){this.playbackRate(this.defaultPlaybackRate()),this.handleTechRateChange_()},e.resetVolumeBar_=function(){this.volume(1),this.trigger("volumechange")},e.currentSources=function(){var e=this.currentSource(),t=[];return 0!==Object.keys(e).length&&t.push(e),this.cache_.sources||t},e.currentSource=function(){return this.cache_.source||{}},e.currentSrc=function(){return this.currentSource()&&this.currentSource().src||""},e.currentType=function(){return this.currentSource()&&this.currentSource().type||""},e.preload=function(e){return void 0!==e?(this.techCall_("setPreload",e),void(this.options_.preload=e)):this.techGet_("preload")},e.autoplay=function(e){if(void 0===e)return this.options_.autoplay||!1;var t;"string"==typeof e&&/(any|play|muted)/.test(e)||!0===e&&this.options_.normalizeAutoplay?(this.options_.autoplay=e,this.manualAutoplay_("string"==typeof e?e:"play"),t=!1):this.options_.autoplay=!!e,t="undefined"==typeof t?this.options_.autoplay:t,this.tech_&&this.techCall_("setAutoplay",t)},e.playsinline=function(e){return void 0!==e?(this.techCall_("setPlaysinline",e),this.options_.playsinline=e,this):this.techGet_("playsinline")},e.loop=function(e){return void 0!==e?(this.techCall_("setLoop",e),void(this.options_.loop=e)):this.techGet_("loop")},e.poster=function(e){if(void 0===e)return this.poster_;(e=e||"")!==this.poster_&&(this.poster_=e,this.techCall_("setPoster",e),this.isPosterFromTech_=!1,this.trigger("posterchange"))},e.handleTechPosterChange_=function(){var e;this.poster_&&!this.options_.techCanOverridePoster||!this.tech_||!this.tech_.poster||(e=this.tech_.poster()||"")!==this.poster_&&(this.poster_=e,this.isPosterFromTech_=!0,this.trigger("posterchange"))},e.controls=function(e){if(void 0===e)return!!this.controls_;this.controls_!==(e=!!e)&&(this.controls_=e,this.usingNativeControls()&&this.techCall_("setControls",e),this.controls_?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))},e.usingNativeControls=function(e){if(void 0===e)return!!this.usingNativeControls_;this.usingNativeControls_!==(e=!!e)&&(this.usingNativeControls_=e,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))},e.error=function(t){var i=this;if(void 0===t)return this.error_||null;if(a("beforeerror").forEach(function(e){e=e(i,t);T(e)&&!Array.isArray(e)||"string"==typeof e||"number"==typeof e||null===e?t=e:i.log.error("please return a value that MediaError expects in beforeerror hooks")}),this.options_.suppressNotSupportedError&&t&&4===t.code){var e=function(){this.error(t)};return this.options_.suppressNotSupportedError=!1,this.any(["click","touchstart"],e),void this.one("loadstart",function(){this.off(["click","touchstart"],e)})}if(null===t)return this.error_=t,this.removeClass("vjs-error"),void(this.errorDisplay&&this.errorDisplay.close());this.error_=new bt(t),this.addClass("vjs-error"),h.error("(CODE:"+this.error_.code+" "+bt.errorTypes[this.error_.code]+")",this.error_.message,this.error_),this.trigger("error"),a("error").forEach(function(e){return e(i,i.error_)})},e.reportUserActivity=function(e){this.userActivity_=!0},e.userActive=function(e){if(void 0===e)return this.userActive_;if((e=!!e)!==this.userActive_){if(this.userActive_=e,this.userActive_)return this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),void this.trigger("useractive");this.tech_&&this.tech_.one("mousemove",function(e){e.stopPropagation(),e.preventDefault()}),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}},e.listenForUserActivity_=function(){var t,i,n,r=Ve(this,this.reportUserActivity),e=function(e){r(),this.clearInterval(t)};this.on("mousedown",function(){r(),this.clearInterval(t),t=this.setInterval(r,250)}),this.on("mousemove",function(e){e.screenX===i&&e.screenY===n||(i=e.screenX,n=e.screenY,r())}),this.on("mouseup",e),this.on("mouseleave",e);var a,e=this.getChild("controlBar");!e||q||A||(e.on("mouseenter",function(e){0!==this.player().options_.inactivityTimeout&&(this.player().cache_.inactivityTimeout=this.player().options_.inactivityTimeout),this.player().options_.inactivityTimeout=0}),e.on("mouseleave",function(e){this.player().options_.inactivityTimeout=this.player().cache_.inactivityTimeout})),this.on("keydown",r),this.on("keyup",r),this.setInterval(function(){var e;this.userActivity_&&(this.userActivity_=!1,this.userActive(!0),this.clearTimeout(a),(e=this.options_.inactivityTimeout)<=0||(a=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},e)))},250)},e.playbackRate=function(e){if(void 0===e)return this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1;this.techCall_("setPlaybackRate",e)},e.defaultPlaybackRate=function(e){return void 0!==e?this.techCall_("setDefaultPlaybackRate",e):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1},e.isAudio=function(e){if(void 0===e)return!!this.isAudio_;this.isAudio_=!!e},e.addTextTrack=function(e,t,i){if(this.tech_)return this.tech_.addTextTrack(e,t,i)},e.addRemoteTextTrack=function(e,t){if(this.tech_)return this.tech_.addRemoteTextTrack(e,t)},e.removeRemoteTextTrack=function(e){var t=(t=(e=void 0===e?{}:e).track)||e;if(this.tech_)return this.tech_.removeRemoteTextTrack(t)},e.getVideoPlaybackQuality=function(){return this.techGet_("getVideoPlaybackQuality")},e.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},e.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},e.language=function(e){if(void 0===e)return this.language_;this.language_!==String(e).toLowerCase()&&(this.language_=String(e).toLowerCase(),it(this)&&this.trigger("languagechange"))},e.languages=function(){return lt(o.prototype.options_.languages,this.languages_)},e.toJSON=function(){var e=lt(this.options_),t=e.tracks;e.tracks=[];for(var i=0;i<t.length;i++){var n=t[i];(n=lt(n)).player=void 0,e.tracks[i]=n}return e},e.createModal=function(e,t){var i=this;(t=t||{}).content=e||"";var n=new At(this,t);return this.addChild(n),n.on("dispose",function(){i.removeChild(n)}),n.open(),n},e.updateCurrentBreakpoint_=function(){if(this.responsive())for(var e=this.currentBreakpoint(),t=this.currentWidth(),i=0;i<Nn.length;i++){var n=Nn[i];if(t<=this.breakpoints_[n]){if(e===n)return;e&&this.removeClass(Un[e]),this.addClass(Un[n]),this.breakpoint_=n;break}}},e.removeCurrentBreakpoint_=function(){var e=this.currentBreakpointClass();this.breakpoint_="",e&&this.removeClass(e)},e.breakpoints=function(e){return void 0===e||(this.breakpoint_="",this.breakpoints_=b({},Bn,e),this.updateCurrentBreakpoint_()),b(this.breakpoints_)},e.responsive=function(e){return void 0===e?this.responsive_:(e=Boolean(e))!==this.responsive_?((this.responsive_=e)?(this.on("playerresize",this.boundUpdateCurrentBreakpoint_),this.updateCurrentBreakpoint_()):(this.off("playerresize",this.boundUpdateCurrentBreakpoint_),this.removeCurrentBreakpoint_()),e):void 0},e.currentBreakpoint=function(){return this.breakpoint_},e.currentBreakpointClass=function(){return Un[this.breakpoint_]||""},e.loadMedia=function(e,t){var i,n,r,a=this;e&&"object"==typeof e&&(this.reset(),this.cache_.media=lt(e),i=(r=this.cache_.media).artwork,n=r.poster,e=r.src,r=r.textTracks,!i&&n&&(this.cache_.media.artwork=[{src:n,type:$i(n)}]),e&&this.src(e),n&&this.poster(n),Array.isArray(r)&&r.forEach(function(e){return a.addRemoteTextTrack(e,!1)}),this.ready(t))},e.getMedia=function(){if(this.cache_.media)return lt(this.cache_.media);var e=this.poster(),t={src:this.currentSources(),textTracks:Array.prototype.map.call(this.remoteTextTracks(),function(e){return{kind:e.kind,label:e.label,language:e.language,src:e.src}})};return e&&(t.poster=e,t.artwork=[{src:t.poster,type:$i(t.poster)}]),t},o.getTagSettings=function(e){var t,i={sources:[],tracks:[]},n=ae(e),r=n["data-setup"];if(ee(e,"vjs-fill")&&(n.fill=!0),ee(e,"vjs-fluid")&&(n.fluid=!0),null!==r&&(r=(t=St(r||"{}"))[0],t=t[1],r&&h.error(r),b(n,t)),b(i,n),e.hasChildNodes())for(var a=e.childNodes,s=0,o=a.length;s<o;s++){var u=a[s],l=u.nodeName.toLowerCase();"source"===l?i.sources.push(ae(u)):"track"===l&&i.tracks.push(ae(u))}return i},e.flexNotSupported_=function(){var e=document.createElement("i");return!("flexBasis"in e.style||"webkitFlexBasis"in e.style||"mozFlexBasis"in e.style||"msFlexBasis"in e.style||"msFlexOrder"in e.style)},e.debug=function(e){if(void 0===e)return this.debugEnabled_;e?(this.trigger("debugon"),this.previousLogLevel_=this.log.level,this.log.level("debug"),this.debugEnabled_=!0):(this.trigger("debugoff"),this.log.level(this.previousLogLevel_),this.previousLogLevel_=void 0,this.debugEnabled_=!1)},e.playbackRates=function(e){if(void 0===e)return this.cache_.playbackRates;Array.isArray(e)&&e.every(function(e){return"number"==typeof e})&&(this.cache_.playbackRates=e,this.trigger("playbackrateschange"))},o}(pt);oi.names.forEach(function(e){var t=oi[e];Fn.prototype[t.getterName]=function(){return this.tech_?this.tech_[t.getterName]():(this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName])}}),Fn.prototype.crossorigin=Fn.prototype.crossOrigin,Fn.players={};k=window.navigator;Fn.prototype.options_={techOrder:ji.defaultTechOrder_,html5:{},inactivityTimeout:2e3,playbackRates:[],liveui:!1,children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","liveTracker","controlBar","errorDisplay","textTrackSettings","resizeManager"],language:k&&(k.languages&&k.languages[0]||k.userLanguage||k.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",normalizeAutoplay:!1,fullscreen:{options:{navigationUI:"hide"}},breakpoints:{},responsive:!1},["ended","seeking","seekable","networkState","readyState"].forEach(function(e){Fn.prototype[e]=function(){return this.techGet_(e)}}),Rn.forEach(function(e){Fn.prototype["handleTech"+ut(e)+"_"]=function(){return this.trigger(e)}}),pt.registerComponent("Player",Fn);var jn=m(function(i){function n(e,t){return i.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(e,t)}i.exports=n});function Hn(e){return Qn.hasOwnProperty(e)}function qn(e){return Hn(e)?Qn[e]:void 0}function Vn(e,t,i){i=(i?"before":"")+"pluginsetup",e.trigger(i,t),e.trigger(i+":"+t.name,t)}function Wn(t,i){function n(){Vn(this,{name:t,plugin:i,instance:null},!0);var e=i.apply(this,arguments);return $n(this,t),Vn(this,{name:t,plugin:i,instance:e}),e}return Object.keys(i).forEach(function(e){n[e]=i[e]}),n}function Gn(r,a){return a.prototype.name=r,function(){Vn(this,{name:r,plugin:a,instance:null},!0);for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var n=Xn(a,[this].concat(t));return this[r]=function(){return n},Vn(this,n.getEventHash()),n}}var zn=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}},Xn=m(function(n){function r(e,t,i){return zn()?n.exports=r=Reflect.construct:n.exports=r=function(e,t,i){var n=[null];n.push.apply(n,t);n=new(Function.bind.apply(e,n));return i&&jn(n,i.prototype),n},r.apply(null,arguments)}n.exports=r}),Kn="plugin",Yn="activePlugins_",Qn={},$n=function(e,t){e[Yn]=e[Yn]||{},e[Yn][t]=!0},Jn=function(){function i(e){if(this.constructor===i)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=e,this.log||(this.log=this.player.log.createLogger(this.name)),rt(this),delete this.trigger,st(this,this.constructor.defaultState),$n(e,this.name),this.dispose=this.dispose.bind(this),e.on("dispose",this.dispose)}var e=i.prototype;return e.version=function(){return this.constructor.VERSION},e.getEventHash=function(e){return(e=void 0===e?{}:e).name=this.name,e.plugin=this.constructor,e.instance=this,e},e.trigger=function(e,t){return je(this.eventBusEl_,e,this.getEventHash(t=void 0===t?{}:t))},e.handleStateChanged=function(e){},e.dispose=function(){var e=this.name,t=this.player;this.trigger("dispose"),this.off(),t.off("dispose",this.dispose),t[Yn][e]=!1,this.player=this.state=null,t[e]=Gn(e,Qn[e])},i.isBasic=function(e){e="string"==typeof e?qn(e):e;return"function"==typeof e&&!i.prototype.isPrototypeOf(e.prototype)},i.registerPlugin=function(e,t){if("string"!=typeof e)throw new Error('Illegal plugin name, "'+e+'", must be a string, was '+typeof e+".");if(Hn(e))h.warn('A plugin named "'+e+'" already exists. You may want to avoid re-registering plugins!');else if(Fn.prototype.hasOwnProperty(e))throw new Error('Illegal plugin name, "'+e+'", cannot share a name with an existing player method!');if("function"!=typeof t)throw new Error('Illegal plugin for "'+e+'", must be a function, was '+typeof t+".");return Qn[e]=t,e!==Kn&&(i.isBasic(t)?Fn.prototype[e]=Wn(e,t):Fn.prototype[e]=Gn(e,t)),t},i.deregisterPlugin=function(e){if(e===Kn)throw new Error("Cannot de-register base plugin.");Hn(e)&&(delete Qn[e],delete Fn.prototype[e])},i.getPlugins=function(e){var i;return(e=void 0===e?Object.keys(Qn):e).forEach(function(e){var t=qn(e);t&&((i=i||{})[e]=t)}),i},i.getPluginVersion=function(e){e=qn(e);return e&&e.VERSION||""},i}();Jn.getPlugin=qn,Jn.BASE_PLUGIN_NAME=Kn,Jn.registerPlugin(Kn,Jn),Fn.prototype.usingPlugin=function(e){return!!this[Yn]&&!0===this[Yn][e]},Fn.prototype.hasPlugin=function(e){return!!Hn(e)};var Zn=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&jn(e,t)},er=function(e){return 0===e.indexOf("#")?e.slice(1):e};function tr(e,t,i){if(r=tr.getPlayer(e))return t&&h.warn('Player "'+e+'" is already initialised. Options will not be applied.'),i&&r.ready(i),r;var n="string"==typeof e?Te("#"+er(e)):e;if(!K(n))throw new TypeError("The element or ID supplied is not valid. (videojs)");n.ownerDocument.defaultView&&n.ownerDocument.body.contains(n)||h.warn("The element supplied is not included in the DOM"),t=t||{},a("beforesetup").forEach(function(e){e=e(n,lt(t));T(e)&&!Array.isArray(e)?t=lt(t,e):h.error("please return an object in beforesetup hooks")});var r=new(pt.getComponent("Player"))(n,t,i);return a("setup").forEach(function(e){return e(r)}),r}tr.hooks_=i,tr.hooks=a,tr.hook=function(e,t){a(e,t)},tr.hookOnce=function(i,e){a(i,[].concat(e).map(function(t){return function e(){return n(i,e),t.apply(void 0,arguments)}}))},tr.removeHook=n,!0!==window.VIDEOJS_NO_DYNAMIC_STYLE&&X()&&((ar=Te(".vjs-styles-defaults"))||(ar=xe("vjs-styles-defaults"),(k=Te("head"))&&k.insertBefore(ar,k.firstChild),Ae(ar,"\n .video-js {\n width: 300px;\n height: 150px;\n }\n\n .vjs-fluid {\n padding-top: 56.25%\n }\n "))),Ce(1,tr),tr.VERSION=u,tr.options=Fn.prototype.options_,tr.getPlayers=function(){return Fn.players},tr.getPlayer=function(e){var t=Fn.players;if("string"==typeof e){var i=er(e),n=t[i];if(n)return n;i=Te("#"+i)}else i=e;if(K(i)){e=i.player,i=i.playerId;if(e||t[i])return e||t[i]}},tr.getAllPlayers=function(){return Object.keys(Fn.players).map(function(e){return Fn.players[e]}).filter(Boolean)},tr.players=Fn.players,tr.getComponent=pt.getComponent,tr.registerComponent=function(e,t){ji.isTech(t)&&h.warn("The "+e+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),pt.registerComponent.call(pt,e,t)},tr.getTech=ji.getTech,tr.registerTech=ji.registerTech,tr.use=function(e,t){Hi[e]=Hi[e]||[],Hi[e].push(t)},Object.defineProperty(tr,"middleware",{value:{},writeable:!1,enumerable:!0}),Object.defineProperty(tr.middleware,"TERMINATOR",{value:Vi,writeable:!1,enumerable:!0}),tr.browser=W,tr.TOUCH_ENABLED=F,tr.extend=function(e,t){var i,n=function(){e.apply(this,arguments)},r={};for(i in"object"==typeof(t=void 0===t?{}:t)?(t.constructor!==Object.prototype.constructor&&(n=t.constructor),r=t):"function"==typeof t&&(n=t),Zn(n,e),e&&(n.super_=e),r)r.hasOwnProperty(i)&&(n.prototype[i]=r[i]);return n},tr.mergeOptions=lt,tr.bind=Ve,tr.registerPlugin=Jn.registerPlugin,tr.deregisterPlugin=Jn.deregisterPlugin,tr.plugin=function(e,t){return h.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),Jn.registerPlugin(e,t)},tr.getPlugins=Jn.getPlugins,tr.getPlugin=Jn.getPlugin,tr.getPluginVersion=Jn.getPluginVersion,tr.addLanguage=function(e,t){var i;return e=(""+e).toLowerCase(),tr.options.languages=lt(tr.options.languages,((i={})[e]=t,i)),tr.options.languages[e]},tr.log=h,tr.createLogger=p,tr.createTimeRange=tr.createTimeRanges=vt,tr.formatTime=ln,tr.setFormatTime=function(e){un=e},tr.resetFormatTime=function(){un=on},tr.parseUrl=Rt,tr.isCrossOrigin=Ut,tr.EventTarget=ze,tr.on=Be,tr.one=He,tr.off=Fe,tr.trigger=je,tr.xhr=Jt,tr.TextTrack=ri,tr.AudioTrack=x,tr.VideoTrack=U,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach(function(e){tr[e]=function(){return h.warn("videojs."+e+"() is d