Smart Slider 3 - Version 3.2.12

Version Description

  • 14. December 2017. =
  • Feature: Smart Slider 3 in-app rating. Every feedback helps us to measure how we are doing :)
  • Feature: Custom Smart Slider field for Advanced Custom Fields plugin
  • Feature: Option to disable Slider shortcode when YOAST SEO generates XML sitemap
  • Feature: Images from subfolders date ordering
  • Feature: Web-Dorado Photo Gallery variables for non-images
  • Feature: Generator variables for Content, Row and Column backgrounds and URLs.
  • Feature: Simple type main animation now use transform for the animation
  • Fix: Background video and YouTube autoplays for supported mobiles (playsinline and muted)
  • Fix: Image from folder generator's ordering by file name
  • Fix: Proper loading of slider when fade on load setting disabled
  • Fix: Server side mobile detect fix in rare cases
  • Fix: Thumbnail border fix
  • Fix: Disable WordPress emoji in page builders preview
Download this release

Release Info

Developer nextendweb
Plugin Icon 128x128 Smart Slider 3
Version 3.2.12
Comparing to
See all releases

Code changes from version 3.2.10 to 3.2.12

Files changed (48) hide show
  1. includes/integrations/Divi.php +1 -1
  2. includes/integrations/Elementor.php +2 -1
  3. includes/integrations/VisualComposer.php +1 -1
  4. includes/integrations/acf.php +146 -0
  5. includes/integrations/beaver-builder/BeaverBuilder.php +2 -1
  6. includes/integrations/unyson/smartslider/includes/option-types.php +1 -1
  7. includes/smartslider3.php +24 -3
  8. includes/widget.php +2 -2
  9. library/media/dist/smartslider-backend.js +11 -7
  10. library/media/dist/smartslider-backend.min.js +3 -3
  11. library/media/dist/smartslider-frontend.js +31 -8
  12. library/media/dist/smartslider-frontend.min.js +5 -5
  13. library/media/plugins/type/simple/simple/dist/smartslider-simple-type-frontend.js +50 -19
  14. library/media/plugins/type/simple/simple/dist/smartslider-simple-type-frontend.min.js +1 -1
  15. library/media/plugins/widgetthumbnail/default/default/thumbnail.js +12 -5
  16. library/media/plugins/widgetthumbnail/default/default/thumbnail.min.js +1 -1
  17. library/smartslider/backend/controllers/Preview.php +2 -0
  18. library/smartslider/backend/controllers/Sliders.php +7 -5
  19. library/smartslider/backend/controllers/Slides.php +2 -0
  20. library/smartslider/backend/controllers/ajax/Sliders.php +7 -0
  21. library/smartslider/backend/inline/review.phtml +88 -0
  22. library/smartslider/backend/inline/slidemanager.phtml +1 -1
  23. library/smartslider/backend/inline/slidermanager.phtml +4 -10
  24. library/smartslider/backend/layouts/_mainmenu.php +1 -1
  25. library/smartslider/libraries/plugins/N2SliderWidgetAbstract.php +6 -2
  26. library/smartslider/libraries/slider/cache/slider.php +13 -1
  27. library/smartslider/libraries/slider/features/responsive.php +1 -1
  28. library/smartslider/libraries/slider/features/slidebackground.php +1 -0
  29. library/smartslider/libraries/slider/group.php +7 -3
  30. library/smartslider/libraries/slider/manager.php +1 -1
  31. library/smartslider/libraries/slider/slides/slide/component.php +4 -4
  32. library/smartslider/models/forms/settings/default.xml +1 -0
  33. library/smartslider/plugins/type/simple/simple/type.php +2 -1
  34. library/smartslider/plugins/widgetthumbnail/default/default.php +2 -2
  35. library/smartslider/smartslider3.php +3 -1
  36. library/wordpress/backend/inline/publish.phtml +1 -2
  37. nextend/library/applications/system/backend/views/help/index.phtml +2 -2
  38. nextend/library/applications/system/plugins/nextendfontservices/google/families.csv +5 -3
  39. nextend/library/applications/system/plugins/nextendfontservices/google/google.php +9 -3
  40. nextend/library/libraries/fonts/fonts.php +2 -2
  41. nextend/library/libraries/fonts/renderer.php +3 -5
  42. nextend/library/libraries/form/tab.php +1 -1
  43. nextend/media/dist/nextend-backend.css +101 -0
  44. nextend/media/dist/nextend-backend.min.css +1 -1
  45. nextend/media/dist/nextend-frontend.js +17 -15
  46. nextend/media/dist/nextend-frontend.min.js +1 -1
  47. nextend/media/dist/system-backend.js +11 -5
  48. nextend/media/dist/system-backend.min.js +1 -1
includes/integrations/Divi.php CHANGED
@@ -4,7 +4,7 @@ if (!defined('ABSPATH')) {
4
  }
5
 
6
  function Nextend_ET_Builder_Module_Smart_Slider_Field() {
7
- $output = sprintf('<input type="button" class="button button-upload" value="%1$s" onclick="return NextendSmartSliderSelectModal(jQuery(this).siblings(\'.regular-text\'));" />', n2_('Select Slider'));
8
 
9
  return $output;
10
  }
4
  }
5
 
6
  function Nextend_ET_Builder_Module_Smart_Slider_Field() {
7
+ $output = sprintf('<input type="button" class="button button-upload" value="%1$s" onclick="' . SmartSlider3::sliderSelectAction("jQuery(this).siblings('.regular-text')") . 'return false;" />', n2_('Select Slider'));
8
 
9
  return $output;
10
  }
includes/integrations/Elementor.php CHANGED
@@ -1,4 +1,5 @@
1
  <?php
 
2
  namespace Elementor;
3
 
4
  if (!defined('ABSPATH')) {
@@ -113,7 +114,7 @@ add_action('elementor/controls/controls_registered', function ($controls_manager
113
  <div class="elementor-control-field">
114
  <label class="elementor-control-title">{{{ data.label }}}</label>
115
  <div class="elementor-control-input-wrapper">
116
- <a style="margin-bottom:10px;" href="#" onclick="return NextendSmartSliderSelectModal(jQuery(this).siblings('input'));" class="button button-primary elementor-button elementor-button-smartslider" title="Select slider">Select slider</a>
117
  <input type="{{ data.input_type }}" title="{{ data.title }}" data-setting="{{ data.name }}""/>
118
  </div>
119
  </div>
1
  <?php
2
+
3
  namespace Elementor;
4
 
5
  if (!defined('ABSPATH')) {
114
  <div class="elementor-control-field">
115
  <label class="elementor-control-title">{{{ data.label }}}</label>
116
  <div class="elementor-control-input-wrapper">
117
+ <a style="margin-bottom:10px;" href="#" onclick="<?php echo \SmartSlider3::sliderSelectAction("jQuery(this).siblings('input')"); ?>return false;" class="button button-primary elementor-button elementor-button-smartslider" title="Select slider">Select slider</a>
118
  <input type="{{ data.input_type }}" title="{{ data.title }}" data-setting="{{ data.name }}""/>
119
  </div>
120
  </div>
includes/integrations/VisualComposer.php CHANGED
@@ -56,7 +56,7 @@ class NextendSmartSlider3VisualComposer {
56
  N2SSShortcodeInsert::addForced();
57
 
58
  return '<input name="' . $settings['param_name'] . '" class="wpb_vc_param_value wpb-textinput ' . $settings['param_name'] . ' ' . $settings['type'] . '" type="text" value="' . $value . '" style="width:100px;vertical-align:middle;"/>
59
- <a href="#" onclick="return NextendSmartSliderSelectModal(jQuery(this).siblings(\'input\'));" class="vc_general vc_ui-button vc_ui-button-default vc_ui-button-shape-rounded vc_ui-button-fw" title="Select slider">Select slider</a>';
60
  }
61
  }
62
 
56
  N2SSShortcodeInsert::addForced();
57
 
58
  return '<input name="' . $settings['param_name'] . '" class="wpb_vc_param_value wpb-textinput ' . $settings['param_name'] . ' ' . $settings['type'] . '" type="text" value="' . $value . '" style="width:100px;vertical-align:middle;"/>
59
+ <a href="#" onclick="' . SmartSlider3::sliderSelectAction("jQuery(this).siblings('input')") . 'return false;" class="vc_general vc_ui-button vc_ui-button-default vc_ui-button-shape-rounded vc_ui-button-fw" title="Select slider">Select slider</a>';
60
  }
61
  }
62
 
includes/integrations/acf.php ADDED
@@ -0,0 +1,146 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ add_action('acf/register_fields', array(
3
+ 'acf_field_smart_slider_3',
4
+ 'register_fields'
5
+ ));
6
+ add_action('acf/include_fields', array(
7
+ 'acf_field_smart_slider_3',
8
+ 'register_fields'
9
+ ));
10
+
11
+
12
+ class acf_field_smart_slider_3 extends acf_field {
13
+
14
+ public $label = 'Smart Slider 3';
15
+
16
+ public static function register_fields() {
17
+ new acf_field_smart_slider_3();
18
+ }
19
+
20
+ function __construct() {
21
+ $this->name = 'acf_smartslider3';
22
+
23
+ parent::__construct();
24
+ }
25
+
26
+ function load_value($value, $post_id, $field) {
27
+ return $value;
28
+ }
29
+
30
+ function update_value($value, $field, $post_id) {
31
+ return $value;
32
+ }
33
+
34
+ public function format_value($value, $field) {
35
+
36
+ if (!$value) {
37
+ return false;
38
+ }
39
+
40
+ return do_shortcode('[smartslider3 slider="' . $value . '"]');
41
+ }
42
+
43
+ public function format_value_for_api($value, $field) {
44
+
45
+ return $this->format_value($value, $field);
46
+ }
47
+
48
+ function load_field($field) {
49
+ return $field;
50
+ }
51
+
52
+ function update_field($field, $post_id) {
53
+ return $field;
54
+ }
55
+
56
+ public function create_field($field) {
57
+ $this->render_field($field);
58
+ }
59
+
60
+ public function render_field($field) {
61
+
62
+ N2base::getApplication('smartslider')
63
+ ->getApplicationType('backend');
64
+ N2Loader::import("models.Sliders", "smartslider");
65
+
66
+ $slidersModel = new N2SmartsliderSlidersModel();
67
+
68
+ $choices = array();
69
+ foreach ($slidersModel->getAll(0) AS $slider) {
70
+ if ($slider['type'] == 'group') {
71
+
72
+ $subChoices = array();
73
+ $subChoices[$slider['id']] = n2_('Whole group') . ' - ' . $slider['title'] . ' #' . $slider['id'];
74
+ foreach ($slidersModel->getAll($slider['id']) AS $_slider) {
75
+ $subChoices[$_slider['id']] = $_slider['title'] . ' #' . $_slider['id'];
76
+ }
77
+
78
+ $choices[$slider['id']] = array(
79
+ 'label' => $slider['title'] . ' #' . $slider['id'],
80
+ 'choices' => $subChoices
81
+ );
82
+ } else {
83
+ $choices[$slider['id']] = $slider['title'] . ' #' . $slider['id'];
84
+ }
85
+ }
86
+
87
+ ?>
88
+ <table style="width:100%;border:0;">
89
+ <tr>
90
+ <td style="white-space: nowrap;">
91
+ <a href="#" onclick="<?php echo SmartSlider3::sliderSelectAction("jQuery('#" . $field['id'] . "')"); ?>return false;" class="button" title="<?php echo n2_('Select slider'); ?>"><?php echo n2_('Select slider'); ?></a>
92
+ <span style="line-height:2;padding:10px;"><?php n2_e('OR'); ?></span>
93
+ </td>
94
+ <td style="width:90%;">
95
+ <select id="<?php echo $field['id']; ?>" class="<?php echo $field['class']; ?>" name="<?php echo $field['name']; ?>">
96
+ <?php if (!isset($field['required']) || !$field['required']): ?>
97
+ <option value=""><?php n2_e('None'); ?></option>
98
+ <?php endif; ?>
99
+ <?php
100
+ foreach ($choices AS $id => $choice) {
101
+ if (is_array($choice)) {
102
+ ?>
103
+ <optgroup label="<?php echo $choice['label']; ?>">
104
+ <?php
105
+ foreach ($choice['choices'] AS $_id => $_choice) {
106
+ ?>
107
+ <option <?php if ($_id == $field['value']){ ?>selected <?php } ?>value="<?php echo $_id; ?>"><?php echo $_choice; ?></option>
108
+ <?php
109
+ }
110
+ ?>
111
+ </optgroup>
112
+ <?php
113
+ } else {
114
+ ?>
115
+ <option <?php if ($id == $field['value']){ ?>selected <?php } ?>value="<?php echo $id; ?>"><?php echo $choice; ?></option>
116
+ <?php
117
+ }
118
+ }
119
+ ?>
120
+ </select>
121
+ </td>
122
+ </tr>
123
+ </table>
124
+ <?php
125
+ }
126
+
127
+ function create_options($field) {
128
+
129
+ }
130
+
131
+ function input_admin_enqueue_scripts() {
132
+
133
+ }
134
+
135
+ function input_admin_head() {
136
+
137
+ }
138
+
139
+ function field_group_admin_enqueue_scripts() {
140
+
141
+ }
142
+
143
+ function field_group_admin_head() {
144
+
145
+ }
146
+ }
includes/integrations/beaver-builder/BeaverBuilder.php CHANGED
@@ -83,7 +83,8 @@ function n2_fl_smart_slider_field($name, $value, $field) {
83
  ?>
84
  </select>
85
  <div style="line-height:2;padding:10px;"><?php n2_e('OR'); ?></div>
86
- <a style="" href="#" onclick="return NextendSmartSliderSelectModal(jQuery(this).siblings('select'));" class="fl-builder-smart-slider-select fl-builder-button fl-builder-button-small fl-builder-button-primary" title="Select slider"><?php echo n2_('Select slider'); ?></a>
 
87
  <script type="text/javascript">
88
  (function ($) {
89
  var value = $('select[name="<?php echo $name; ?>"]').val();
83
  ?>
84
  </select>
85
  <div style="line-height:2;padding:10px;"><?php n2_e('OR'); ?></div>
86
+
87
+ <a href="#" onclick="<?php echo SmartSlider3::sliderSelectAction("jQuery(this).siblings('select')"); ?>return false;" class="fl-builder-smart-slider-select fl-builder-button fl-builder-button-small fl-builder-button-primary" title="Select slider"><?php echo n2_('Select slider'); ?></a>
88
  <script type="text/javascript">
89
  (function ($) {
90
  var value = $('select[name="<?php echo $name; ?>"]').val();
includes/integrations/unyson/smartslider/includes/option-types.php CHANGED
@@ -49,7 +49,7 @@ class FW_Option_Type_SmartSliderChooser extends FW_Option_Type_Select {
49
  return N2Html::tag('div', array(), N2Html::link(n2_('Select slider'), '#', array(
50
  'style' => 'vertical-align:middle;',
51
  'class' => 'button button-primary',
52
- 'onclick' => 'return NextendSmartSliderSelectModal(jQuery(\'#fw-edit-options-modal-id\'));'
53
  )) . '<span style="margin: 0 10px; vertical-align:middle;">' . n2_('OR') . '</span>' . parent::_render($id, $option, $data));
54
  }
55
 
49
  return N2Html::tag('div', array(), N2Html::link(n2_('Select slider'), '#', array(
50
  'style' => 'vertical-align:middle;',
51
  'class' => 'button button-primary',
52
+ 'onclick' => SmartSlider3::sliderSelectAction("jQuery('#fw-edit-options-modal-id')") . 'return false;'
53
  )) . '<span style="margin: 0 10px; vertical-align:middle;">' . n2_('OR') . '</span>' . parent::_render($id, $option, $data));
54
  }
55
 
includes/smartslider3.php CHANGED
@@ -19,6 +19,8 @@ class SmartSlider3 {
19
 
20
  add_action('init', 'SmartSlider3::preRender');
21
 
 
 
22
  add_action('admin_menu', 'SmartSlider3::nextendAdminInit');
23
 
24
  add_action('network_admin_menu', 'SmartSlider3::nextendNetworkAdminInit');
@@ -34,6 +36,10 @@ class SmartSlider3 {
34
  require_once dirname(NEXTEND_SMARTSLIDER_3__FILE__) . DIRECTORY_SEPARATOR . 'includes/widget.php';
35
  require_once dirname(NEXTEND_SMARTSLIDER_3__FILE__) . DIRECTORY_SEPARATOR . 'editor' . DIRECTORY_SEPARATOR . 'shortcode.php';
36
 
 
 
 
 
37
  add_action('et_builder_ready', 'SmartSlider3::divi');
38
 
39
  add_action('vc_after_set_mode', 'SmartSlider3::visualComposer');
@@ -46,7 +52,6 @@ class SmartSlider3 {
46
 
47
  add_action('tailor_init', 'SmartSlider3::tailor');
48
 
49
- add_filter('wpseo_xml_sitemap_post_url', 'SmartSlider3::wpseo_xml_sitemap_post_url', 10, 2);
50
  add_filter('fw_extensions_locations', 'SmartSlider3::unyson_extension');
51
 
52
  if (class_exists('MPCEShortcode', false)) {
@@ -58,9 +63,17 @@ class SmartSlider3 {
58
  }
59
  }
60
 
 
 
 
 
 
 
61
  public static function unyson_extension($locations) {
62
- $path = dirname(__FILE__) . '/integrations/unyson';
63
- $locations[$path] = plugin_dir_url(__FILE__) . 'integrations/unyson';
 
 
64
 
65
  return $locations;
66
  }
@@ -89,6 +102,10 @@ class SmartSlider3 {
89
  if (current_user_can('smartslider_edit') && intval(N2SmartSliderSettings::get('wp-adminbar', 1))) {
90
  add_action('admin_bar_menu', 'SmartSlider3::admin_bar_menu', 81);
91
  }
 
 
 
 
92
  }
93
 
94
  public static function preRender() {
@@ -368,6 +385,10 @@ class SmartSlider3 {
368
  }
369
  }
370
  }
 
 
 
 
371
  }
372
 
373
  SmartSlider3::init();
19
 
20
  add_action('init', 'SmartSlider3::preRender');
21
 
22
+ add_action('load-toplevel_page_' . NEXTEND_SMARTSLIDER_3_URL_PATH, 'SmartSlider3::removeEmoji');
23
+
24
  add_action('admin_menu', 'SmartSlider3::nextendAdminInit');
25
 
26
  add_action('network_admin_menu', 'SmartSlider3::nextendNetworkAdminInit');
36
  require_once dirname(NEXTEND_SMARTSLIDER_3__FILE__) . DIRECTORY_SEPARATOR . 'includes/widget.php';
37
  require_once dirname(NEXTEND_SMARTSLIDER_3__FILE__) . DIRECTORY_SEPARATOR . 'editor' . DIRECTORY_SEPARATOR . 'shortcode.php';
38
 
39
+ if (class_exists('acf', false)) {
40
+ require_once dirname(__FILE__) . '/integrations/acf.php';
41
+ }
42
+
43
  add_action('et_builder_ready', 'SmartSlider3::divi');
44
 
45
  add_action('vc_after_set_mode', 'SmartSlider3::visualComposer');
52
 
53
  add_action('tailor_init', 'SmartSlider3::tailor');
54
 
 
55
  add_filter('fw_extensions_locations', 'SmartSlider3::unyson_extension');
56
 
57
  if (class_exists('MPCEShortcode', false)) {
63
  }
64
  }
65
 
66
+ public static function removeEmoji() {
67
+
68
+ remove_action('wp_head', 'print_emoji_detection_script', 7);
69
+ remove_action('admin_print_scripts', 'print_emoji_detection_script');
70
+ }
71
+
72
  public static function unyson_extension($locations) {
73
+ if (version_compare(fw()->manifest->get_version(), '2.6.0', '>=')) {
74
+ $path = dirname(__FILE__) . '/integrations/unyson';
75
+ $locations[$path] = plugin_dir_url(__FILE__) . 'integrations/unyson';
76
+ }
77
 
78
  return $locations;
79
  }
102
  if (current_user_can('smartslider_edit') && intval(N2SmartSliderSettings::get('wp-adminbar', 1))) {
103
  add_action('admin_bar_menu', 'SmartSlider3::admin_bar_menu', 81);
104
  }
105
+
106
+ if (N2SmartSliderSettings::get('yoast-sitemap', 1)) {
107
+ add_filter('wpseo_xml_sitemap_post_url', 'SmartSlider3::wpseo_xml_sitemap_post_url', 10, 2);
108
+ }
109
  }
110
 
111
  public static function preRender() {
385
  }
386
  }
387
  }
388
+
389
+ public static function sliderSelectAction($jQueryNode) {
390
+ return 'NextendSmartSliderSelectModal(' . $jQueryNode . ');';
391
+ }
392
  }
393
 
394
  SmartSlider3::init();
includes/widget.php CHANGED
@@ -22,7 +22,7 @@ class N2SS3Widget extends WP_Widget {
22
  ), 10000000000);
23
 
24
  // Enable shortcodes for text widgets
25
- add_filter( 'widget_text', 'do_shortcode' );
26
  }
27
 
28
  public static function register_widget() {
@@ -92,7 +92,7 @@ class N2SS3Widget extends WP_Widget {
92
  Smart Slider:<br>
93
  <input style="width:100px;vertical-align: top;" class="widefat" id="<?php echo $this->get_field_id('slider'); ?>" name="<?php echo $this->get_field_name('slider'); ?>" type="text" value="<?php echo esc_attr($instance['slider']); ?>">
94
 
95
- <a style="vertical-align: top;" href="#" onclick="return NextendSmartSliderSelectModal(jQuery(this).siblings('input'));" class="button button-primary elementor-button elementor-button-smartslider fl-builder-button fl-builder-button-large" title="Select slider">Select slider</a>
96
  </label>
97
  </p>
98
  <?php
22
  ), 10000000000);
23
 
24
  // Enable shortcodes for text widgets
25
+ add_filter('widget_text', 'do_shortcode');
26
  }
27
 
28
  public static function register_widget() {
92
  Smart Slider:<br>
93
  <input style="width:100px;vertical-align: top;" class="widefat" id="<?php echo $this->get_field_id('slider'); ?>" name="<?php echo $this->get_field_name('slider'); ?>" type="text" value="<?php echo esc_attr($instance['slider']); ?>">
94
 
95
+ <a style="vertical-align: top;" href="#" onclick="<?php echo SmartSlider3::sliderSelectAction("jQuery(this).siblings('input')"); ?>return false;" class="button button-primary elementor-button elementor-button-smartslider fl-builder-button fl-builder-button-large" title="Select slider">Select slider</a>
96
  </label>
97
  </p>
98
  <?php
library/media/dist/smartslider-backend.js CHANGED
@@ -11878,7 +11878,7 @@ N2Require('ContentAbstract', ['LayerContainer', 'ComponentAbstract'], ['smartSli
11878
 
11879
  ContentAbstract.prototype._syncbgThrottled = function () {
11880
  var background = '',
11881
- image = this.getProperty('bgimage');
11882
  if (image != '') {
11883
  var x = parseInt(this.getProperty('bgimagex'));
11884
  if (!isFinite(x)) {
@@ -11894,7 +11894,7 @@ N2Require('ContentAbstract', ['LayerContainer', 'ComponentAbstract'], ['smartSli
11894
  gradient = this.getProperty('bgcolorgradient'),
11895
  colorend = this.getProperty('bgcolorgradientend');
11896
 
11897
- if (N2Color.hex2alpha(color) != 0 || (gradient != 'off' && N2Color.hex2alpha(colorend) != 0 )) {
11898
  var after = '';
11899
  if (background != '') {
11900
  after = ',' + background;
@@ -13296,7 +13296,7 @@ N2Require('Row', ['LayerContainer', 'ComponentAbstract'], ['smartSlider'], funct
13296
 
13297
  Row.prototype._syncbgThrottled = function () {
13298
  var background = '',
13299
- image = this.getProperty('bgimage');
13300
  if (image != '') {
13301
  var x = parseInt(this.getProperty('bgimagex'));
13302
  if (!isFinite(x)) {
@@ -13647,7 +13647,8 @@ N2Require('ComponentSettings', [], ['smartSlider'], function ($, scope, smartSli
13647
  bgcolorgradient: $('#layercontent-background-gradient'),
13648
  bgcolorgradientend: $('#layercontent-background-color-end'),
13649
  opened: $('#layercontent-opened')
13650
- }
 
13651
 
13652
  this.forms.component.row = {
13653
  padding: $('#layerrow-padding'),
@@ -13666,7 +13667,8 @@ N2Require('ComponentSettings', [], ['smartSlider'], function ($, scope, smartSli
13666
  borderradius: $('#layerrow-border-radius'),
13667
  boxshadow: $('#layerrow-boxshadow'),
13668
  opened: $('#layerrow-opened')
13669
- }
 
13670
 
13671
  this.forms.component.col = {
13672
  maxwidth: $('#layercol-maxwidth'),
@@ -13688,8 +13690,10 @@ N2Require('ComponentSettings', [], ['smartSlider'], function ($, scope, smartSli
13688
  bordercolor: $('#layercol-border-color'),
13689
  opened: $('#layercol-opened'),
13690
  colwidth: $('#layercol-colwidth'),
13691
- order: $('#layercol-order'),
13692
- }
 
 
13693
  }
13694
 
13695
  ComponentSettings.prototype.changeActiveComponent = function (layer, componentType, placementType, properties) {
11878
 
11879
  ContentAbstract.prototype._syncbgThrottled = function () {
11880
  var background = '',
11881
+ image = nextend.smartSlider.generator.fill(this.getProperty('bgimage'));
11882
  if (image != '') {
11883
  var x = parseInt(this.getProperty('bgimagex'));
11884
  if (!isFinite(x)) {
11894
  gradient = this.getProperty('bgcolorgradient'),
11895
  colorend = this.getProperty('bgcolorgradientend');
11896
 
11897
+ if (N2Color.hex2alpha(color) != 0 || (gradient != 'off' && N2Color.hex2alpha(colorend) != 0)) {
11898
  var after = '';
11899
  if (background != '') {
11900
  after = ',' + background;
13296
 
13297
  Row.prototype._syncbgThrottled = function () {
13298
  var background = '',
13299
+ image = nextend.smartSlider.generator.fill(this.getProperty('bgimage'));
13300
  if (image != '') {
13301
  var x = parseInt(this.getProperty('bgimagex'));
13302
  if (!isFinite(x)) {
13647
  bgcolorgradient: $('#layercontent-background-gradient'),
13648
  bgcolorgradientend: $('#layercontent-background-color-end'),
13649
  opened: $('#layercontent-opened')
13650
+ };
13651
+ smartSlider.generator.registerField(this.forms.component.content.bgimage);
13652
 
13653
  this.forms.component.row = {
13654
  padding: $('#layerrow-padding'),
13667
  borderradius: $('#layerrow-border-radius'),
13668
  boxshadow: $('#layerrow-boxshadow'),
13669
  opened: $('#layerrow-opened')
13670
+ };
13671
+ smartSlider.generator.registerField(this.forms.component.row.bgimage);
13672
 
13673
  this.forms.component.col = {
13674
  maxwidth: $('#layercol-maxwidth'),
13690
  bordercolor: $('#layercol-border-color'),
13691
  opened: $('#layercol-opened'),
13692
  colwidth: $('#layercol-colwidth'),
13693
+ order: $('#layercol-order')
13694
+ };
13695
+ smartSlider.generator.registerField($('#col-linklayercol-link_0'));
13696
+ smartSlider.generator.registerField(this.forms.component.col.bgimage);
13697
  }
13698
 
13699
  ComponentSettings.prototype.changeActiveComponent = function (layer, componentType, placementType, properties) {
library/media/dist/smartslider-backend.min.js CHANGED
@@ -4,6 +4,6 @@ this.button=t('<a href="#" class="n2-button n2-button-normal n2-button-xs n2-rad
4
  }for(var s in e)this.deviceProperty[s][t]!==n&&""!==this.deviceProperty[s][t]||(this.deviceProperty[s][t]=e[s])}else{for(var s in e)this.deviceProperty[s][t]=e[s];for(var s in this.deviceProperty){var o=this._getDefault(s.toLowerCase()+t.toLowerCase());o!==n&&(this.deviceProperty[s][t]=o)}}this.property[t]=this.deviceProperty.desktopPortrait[t]},r.prototype.removeProperty=function(t){if(delete this.property[t],this.layer.removeData(t.toLowerCase()).removeAttr("data-"+t.toLowerCase()),this.isDeviceProp[t])for(var e in this.deviceProperty)delete this.deviceProperty[e][t],this.layer.removeData(e.toLowerCase()+t.toLowerCase()).removeAttr("data-"+e.toLowerCase()+t.toLowerCase());delete this.isDeviceProp[t],delete this.propertyScope[t]},r.prototype.removeProperties=function(t){for(var e=0;e<t.length;e++)this.removeProperty(t[e])},r.prototype.getPropertiesData=function(t){for(var e={},i=0;i<t.length;i++){var r=t[i];if(this.property[r]!==n&&(e[r]=this.property[r]),this.isDeviceProp[r])for(var s in this.deviceProperty)this.deviceProperty[s][r]!==n&&(e[s.toLowerCase()+r]=this.deviceProperty[s][r])}return e},r.prototype.setProperty=function(t,e,i){this.propertyScope[t]!==n&&("function"==typeof this.propertyScope[t]["setProperty"+t]?this.propertyScope[t]["setProperty"+t](t,e,i):this._setProperty(t,e,i))},r.prototype._setProperty=function(t,e,i){this.store(t,e,!0,i),"manager"!=i&&this.$.trigger("propertyChanged",[t,this.getProperty(t)])},r}),N2Require("CanvasManager",[],["smartSlider"],function(t,e,i,n){"use strict";function r(n,r,s){this.mode="desktopPortrait",this.slideEditManager=n,this.isStatic=r,this.ready=t.Deferred(),this.shouldPreventActivationBubble=!1,this.$=t(this),i.canvasManager=this,this.$highlight=t('<div class="n2-ss-layer-highlight n2-ss-layer-highlight-n" /><div class="n2-ss-layer-highlight n2-ss-layer-highlight-e" /><div class="n2-ss-layer-highlight n2-ss-layer-highlight-s" /><div class="n2-ss-layer-highlight n2-ss-layer-highlight-w" />'),this.initSelectMode(),this.layerWindow=new e.LayerWindow(this),this.layerOptions=new e.ComponentSettings(this),this.ui=new e.CanvasUserInterface(this),this.mainContainer=new e.MainContainer(this),this.itemEditor=new e.ItemManager(this,s),this.mainContainer.lateInit(),this._initDeviceModeChange(),this.canvasSettings=new e.CanvasSettings(this),this.layerOptions.startFeatures(),this.hotkeys(),this.addContextMenu(),this.mainContainer.refreshHasLayers();var o=t("#n2-ss-editor-mode .n2-radio-option"),a=t.proxy(function(t){switch(this.updateEditorMode(t),t){case"content":o.eq(0).addClass("n2-active"),o.eq(1).removeClass("n2-active");break;case"canvas":o.eq(0).removeClass("n2-active"),o.eq(1).addClass("n2-active")}},this);if(this.mainContent&&this.mainContent.container.getLayerCount())a("content");else{var l=this.mainContainer.container.getSortedLayers();if(this.mainContent&&l.length>1||!this.mainContent&&l.length>0)a("canvas");else{var h=t.jStorage.get("editormode");h||(h="content",t.jStorage.set("editormode",h)),a(h)}}o.on("click",t.proxy(function(e){o.removeClass("n2-active");var i=t(e.currentTarget),n=i.data("mode");i.addClass("n2-active"),n!=this.currentEditorMode&&(this.updateEditorMode(n),t.jStorage.set("editormode",n))},this)),this.isMultiDrag=!1}var s={16:0,38:0,40:0,37:0,39:0},o={97:"left",98:"center",99:"right",100:"left",101:"center",102:"right",103:"left",104:"center",105:"right"},a={97:"bottom",98:"bottom",99:"bottom",100:"middle",101:"middle",102:"middle",103:"top",104:"top",105:"top"},l={OFF:0,ON:1,GROUP:2};return r.prototype.updateEditorMode=function(e){this.currentEditorMode=e,t("body").attr("data-editormode",this.currentEditorMode)},r.prototype.getMode=function(){return this.mode},r.prototype.getResponsiveRatio=function(t){return"h"==t?i.frontend.responsive.lastRatios.slideW:"v"==t?i.frontend.responsive.lastRatios.slideH:0},r.prototype.setMainContent=function(t){this.mainContent=t},r.prototype.isGroup=function(t){return!1},r.prototype.isRow=function(t){return t instanceof e.Row},r.prototype.isCol=function(t){return t instanceof e.Col},r.prototype.isLayer=function(t){return t instanceof e.Layer},r.prototype.isContent=function(t){return t instanceof e.Content},r.prototype._initDeviceModeChange=function(){var e=t("#layerresettodesktop").on("click",t.proxy(this.__onResetToDesktopClick,this));this.resetToDesktopTRElement=e.closest("tr"),this.resetToDesktopGlobalElement=t("#n2-ss-layer-reset-to-desktop").on("click",t.proxy(function(){"block"==this.resetToDesktopTRElement.css("display")&&e.trigger("click")},this));var n=t("#n2-ss-layer-show-on"),r={},s=i.frontend.responsive.parameters.deviceModes;for(var o in s)s[o]&&(r[o]=t('<div class="n2-radio-option"><i class="n2-i n2-it n2-i-'+o+'"></i></div>').on("click",t.proxy(function(t){this.layerOptions.currentForm[t].data("field").onoff.trigger("click")},this,o)).appendTo(n));n.children().first().addClass("n2-first"),n.children().last().addClass("n2-last"),this.globalShowOnDeviceCB=function(t){"undefined"!=typeof r[t]&&r[t].toggleClass("n2-active",1==this.layerOptions.currentForm[t].val())},this.layerOptions.forms.global.desktopPortrait.on("nextendChange",t.proxy(this.globalShowOnDeviceCB,this,"desktopPortrait")),this.layerOptions.forms.global.desktopLandscape.on("nextendChange",t.proxy(this.globalShowOnDeviceCB,this,"desktopLandscape")),this.layerOptions.forms.global.tabletPortrait.on("nextendChange",t.proxy(this.globalShowOnDeviceCB,this,"tabletPortrait")),this.layerOptions.forms.global.tabletLandscape.on("nextendChange",t.proxy(this.globalShowOnDeviceCB,this,"tabletLandscape")),this.layerOptions.forms.global.mobilePortrait.on("nextendChange",t.proxy(this.globalShowOnDeviceCB,this,"mobilePortrait")),this.layerOptions.forms.global.mobileLandscape.on("nextendChange",t.proxy(this.globalShowOnDeviceCB,this,"mobileLandscape")),t("#layershow").data("field").setAvailableDevices(s),t("#layergroup-show").data("field").setAvailableDevices(s),this.__onChangeDeviceOrientation(),i.frontend.sliderElement.on("SliderDeviceOrientation",t.proxy(function(){this.__onChangeDeviceOrientation()},this)),this.ready.resolve()},r.prototype.refreshMode=function(){this.__onChangeDeviceOrientation(),i.frontend.responsive.reTriggerSliderDeviceOrientation()},r.prototype.__onChangeDeviceOrientation=function(){this.mode=i.frontend.responsive.getNormalizedModeString(),this.resetToDesktopTRElement.css("display","desktopPortrait"==this.mode?"none":""),this.resetToDesktopGlobalElement.css("display","desktopPortrait"==this.mode?"none":""),this.mainContainer.container.changeEditorModes(this.mode)},r.prototype.__onResetToDesktopClick=function(){if(this.mainContainer.getSelectedLayer()){var t=this.getMode();this.mainContainer.getSelectedLayer().resetMode(t)}},r.prototype.copyOrResetMode=function(t){var e=this.getMode();"desktopPortrait"==e?"desktopPortrait"!=t&&this.mainContainer.container.resetModes(t):t==e?this.mainContainer.container.resetModes(t):this.mainContainer.container.copyModes(e,t)},r.prototype.getSnap=function(){return this.canvasSettings.get("n2-ss-snap-to-enabled")?t(this.isStatic?".n2-ss-static-slide .n2-ss-layer.ui-resizable:not(.n2-ss-layer-locked):not(.n2-ss-layer-parent):not(.n2-ss-layer-selected):visible, .n2-ruler-user-guide":".n2-ss-slide.n2-ss-slide-active .n2-ss-layer.ui-resizable:not(.n2-ss-layer-locked):not(.n2-ss-layer-parent):not(.n2-ss-layer-selected):visible, .n2-ruler-user-guide"):!1},r.prototype.getHTML=function(){for(var e=t("<div></div>"),i=this.mainContainer.container.getAllLayers(),n=0;n<i.length;n++)e.append(i[n].getHTML(!0));return e.html()},r.prototype.getData=function(){return this.mainContainer.container.getData()},r.prototype.importLayers=function(e,i){var n=(this.mainContainer,t.extend(!0,[],e));i&&this.mainContainer.deleteLayers(),this._idTranslation={};for(var r=this.dataToLayers(n),s=0;s<r.length;s++)this.mainContainer.container.append(r[s]);if(this.refreshMode(),!this.mainContainer.getSelectedLayer()){var n=this.mainContainer.container.getSortedLayers();n.length>0&&n[0].activate()}},r.prototype.loadComponentWithNode=function(t,e,i,n){var r=t.container.append(e);return n&&this.refreshMode(),r},r.prototype.insertComponentWithNode=function(t,e,i,n,r){var s=t.container.insertAt(e,i);return r&&this.refreshMode(),s},r.prototype.fixActiveLayer=function(){var t=this.mainContainer.getSelectedLayer();(0==t||t.isDeleted)&&this.resetActiveLayer()},r.prototype.resetActiveLayer=function(){var t=this.mainContainer.container.getSortedLayers();t.length?t[t.length-1].activate():this.changeActiveLayer(null)},r.prototype.changeActiveLayer=function(e,i){var n=this.mainContainer.getSelectedLayer();n&&!n.isDeleted&&(n.$.off("propertyChanged.editor").off(".active"),n.deActivate()),this.mainContainer.activeLayer=e,i||this.exitSelectMode(),e&&(this.layerOptions.changeActiveComponent(e,e.type,e.placement.getType(),e.property),e.$.on({"propertyChanged.editor":t.proxy(this.layerOptions.onUpdateField,this.layerOptions),"placementChanged.active":t.proxy(function(t,i,n){this.layerOptions.changeActiveComponentPlacement(i,e.property)},this)})),this.$.trigger("activeLayerChanged")},r.prototype.highlight=function(t){this.$highlight.appendTo(t.layer)},r.prototype.deHighlight=function(t){this.$highlight.detach()},r.prototype["delete"]=function(){this.mainContainer.getSelectedLayer()&&this.doActionOnActiveLayer("delete")},r.prototype.duplicate=function(){this.mainContainer.getSelectedLayer()&&this.doActionOnActiveLayer("duplicate",[this.selectMode!=l.ON,!1])},r.prototype.copy=function(e){var i;if(e==n)if(1==this.selectMode)i=this.selectedLayers;else{var r=this.mainContainer.getSelectedLayer();r&&(i=this.isCol(r)||this.isContent(r)?r.container.getSortedLayers():[r])}else i=this.isCol(e)||this.isContent(e)?e.container.getSortedLayers():[e];var s=this.mainContainer.getLayerData(i);s.length&&t.jStorage.set("ss3layersclipboard",JSON.stringify(s))},r.prototype.paste=function(e){var i=t.jStorage.get("ss3layersclipboard");if(i){var r=JSON.parse(i);if(r.length){var s;s=e!==n&&e?this.isCol(e)||this.isContent(e)?e:e.group:this.mainContainer.getActiveGroup(),this.mainContainer.addLayers(r,s)}}},r.prototype.hasLayersOnClipboard=function(){return!!t.jStorage.get("ss3layersclipboard")},r.prototype.addContextMenu=function(){t("#n2-ss-0 .n2-ss-currently-edited-slide").nextendContextMenu({onShow:t.proxy(function(e,i){var n=t(e.target),r=n.closest(".n2-ss-layer"),s=r.data("layerObject");s||(s=this.mainContainer.getSelectedLayer()),s&&(this.isCol(s)||this.isContent(s)?i.addItem("Copy child layers","n2-i-copy",t.proxy(function(){this.copy(s)},this)):i.addItem("Copy layer","n2-i-copy",t.proxy(function(){this.selectMode==l.ON?this.copy():this.copy(s)},this))),this.hasLayersOnClipboard()&&i.addItem("Paste layer(s)","n2-i-paste",t.proxy(function(){this.paste(s)},this)),i.addItem("Copy slide","n2-i-copy",t.proxy(function(){this.slideEditManager.copySlide()},this)),this.slideEditManager.hasCopiedSlide()&&i.addItem("Paste slide","n2-i-paste",t.proxy(function(){this.slideEditManager.pasteSlide()},this))},this)})},r.prototype.initSelectMode=function(){this.selectMode=l.OFF,this.selectedLayers=[],t(".n2-ss-layer-list-top-bar .n2-button").on("mousedown",t.proxy(function(e){switch(e.preventDefault(),t(e.currentTarget).data("action")){case"delete":this["delete"]();break;case"duplicate":this.duplicate();break;case"group":this.createGroupFromSelected();break;case"cancel":this.exitSelectMode()}},this))},r.prototype.startSelection=function(t){t?(this.selectMode==l.ON&&this.exitSelectMode(),this.changeSelectMode(l.GROUP)):this.changeSelectMode(l.ON)},r.prototype.changeSelectMode=function(e){var i=this.selectMode;i!=e&&(i==l.ON?t("#n2-admin").removeClass("n2-ss-select-layer-mode-on"):i==l.GROUP&&t("#n2-admin").removeClass("n2-ss-select-layer-mode-group"),this.selectMode=e,i==l.GROUP&&e==l.ON&&this.selectedLayers[0].activate(null,null,!0),e==l.OFF?t("#n2-admin").removeClass("n2-ss-select-layer-mode"):(t("#n2-admin").addClass("n2-ss-select-layer-mode"),e==l.ON?t("#n2-admin").addClass("n2-ss-select-layer-mode-on"):e==l.GROUP&&t("#n2-admin").addClass("n2-ss-select-layer-mode-group")),this.selectMode==l.OFF?t("body").off(".n2-ss-selection"):t("body").on("mousedown.n2-ss-selection",t.proxy(function(t){3!=event.which&&"main"==nextend.context.getCurrentWindow()&&nextend.context.mouseDownArea===!1&&this.exitSelectMode()},this)))},r.prototype.endSelection=function(t){t&&this.selectMode==l.GROUP&&this.exitSelectMode()},r.prototype.selectLayer=function(t,e){if("layer"!=t.type)return!0;if(this.selectMode!=l.ON){var i=this.mainContainer.getSelectedLayer();if("layer"!=i.type)return t.activate(null),!0;this.startSelection(!1),e&&this.selectedLayers.push(i)}return this._selectLayer(t),!0},r.prototype._selectLayer=function(e){var i=t.inArray(e,this.selectedLayers);if(-1!=i){if(this.selectMode==l.ON&&this.selectedLayers.length<=1)return this.exitSelectMode(),!1;var n=this.selectedLayers[i];if(this.selectedLayers.splice(i,1),e.layerRow.removeClass("n2-selected"),e.layer.removeClass("n2-ss-layer-selected"),this.selectMode==l.ON&&this.selectedLayers.length<=1)return this.selectedLayers[0].activate(),this.exitSelectMode(),!1;n===this.mainContainer.getSelectedLayer()&&this.selectedLayers[0].activate(!1,null,!0)}else{for(var r=this.selectedLayers.length,s=0;s<this.selectedLayers.length;s++)if(e.layer.add(this.selectedLayers[s].layer).index(this.selectedLayers[s].layer)>0){r=s;break}this.selectedLayers.splice(r,0,e)}for(var s=0;s<this.selectedLayers.length;s++)this.selectedLayers[s].layerRow.addClass("n2-selected"),this.selectedLayers[s].layer.addClass("n2-ss-layer-selected")},r.prototype.addSelection=function(t,e){e||this.changeSelectMode(l.ON);for(var i=0;i<t.length;i++)this._selectLayer(t[i],!1)},r.prototype.exitSelectMode=function(){if(this.selectMode){for(var e=0;e<this.selectedLayers.length;e++)this.selectedLayers[e]!=this.mainContainer.getSelectedLayer()&&this.selectedLayers[e].layerRow.removeClass("n2-active"),this.selectedLayers[e].layerRow.removeClass("n2-selected"),this.selectedLayers[e].layer.removeClass("n2-ss-layer-selected");t("#n2-admin").removeClass("n2-ss-select-layer-mode"),this.selectedLayers=[],this.changeSelectMode(l.OFF)}},r.prototype.doActionOnActiveLayer=function(e,i){if(this.selectMode==l.ON)for(var n=t.extend([],this.selectedLayers),r=0;r<n.length;r++)n[r][e].apply(n[r],i);else{var s=this.mainContainer.getSelectedLayer();s&&s[e].apply(s,i)}},r.prototype.canvasDragStart=function(t,e){if(this.selectMode&&"canvas"==this.currentEditorMode&&"absolute"==e.mode){for(var i=!1,n=0;n<this.selectedLayers.length;n++){var r=this.selectedLayers[n],s=r.layer;if(s[0]!=e.layer.layer[0]){var o=s.css("display");"none"==o&&s.css("display",""),r._originalPosition=s.position(),"none"==o&&s.css("display","none")}else i=!0}i||this.exitSelectMode(),this.isMultiDrag=!0}},r.prototype.canvasDragMove=function(t,e){if(this.isMultiDrag===!0)for(var i={left:e.position.left+e.canvasOffset.left-e.originalOffset.left,top:e.position.top+e.canvasOffset.top-e.originalOffset.top},n=0;n<this.selectedLayers.length;n++){var r=this.selectedLayers[n];if(!this.isGroup(r)){var s=r.layer;s[0]!=e.layer.layer[0]&&(s.css({left:r._originalPosition.left+i.left,top:r._originalPosition.top+i.top,bottom:"auto",right:"auto"}),r.placement.doAction("triggerLayerResized"))}}},r.prototype.canvasDragStop=function(t,e){if(this.isMultiDrag===!0){for(var i=0;i<this.selectedLayers.length;i++){var n=this.selectedLayers[i];if(!this.isGroup(n)){var r=n.layer;if(r[0]!=e.layer.layer[0]){var s=r.css("display");"none"==s&&r.css("display","block");var o=parseInt(n.layer.css("left")),a=parseInt(n.layer.css("top"));n.placement.current.setPosition(o,a),n.placement.doAction("triggerLayerResized"),"none"==s&&r.css("display","none")}}}return this.isMultiDrag=!1,!0}return!1},r.prototype.historyDeleteGroup=function(t){t.getSelf()["delete"]()},r.prototype.historyCreateGroup=function(t){var i=new e.Group(this,this.mainContainer,{},null);i.create(),t.setSelf(i)},r.prototype.createGroupFromSelected=function(){var t;switch(this.selectMode){case l.ON:t=new e.Group(this,this.mainContainer,{},null),t.create(),i.history.addSimple(this,this.historyDeleteGroup,this.historyCreateGroup,[t]),t.addLayers(this.selectedLayers),this.exitSelectMode(),t.activate();break;case l.OFF:var n=this.mainContainer.getSelectedLayer();n.group instanceof e.Group?n.group.activate():(t=new e.Group(this,this.mainContainer,{},null),t.create(),i.history.addSimple(this,this.historyDeleteGroup,this.historyCreateGroup,[t]),t.addLayers([n]),t.activate());break;case l.GROUP:}},r.prototype.createRow=function(t){var i=new e.Row(this,t,{});return i.create(),i.hightlightStructure(),{layer:i}},r.prototype.createCol=function(t){var e=t,i=null;if(this.isCol(e))i=e.group.createCol();else if(this.isRow(e))i=e.createCol();else{if(!this.isCol(e.group))return this.createRow(t);i=e.group.group.createCol()}return i.activate(null),{layer:i}},r.prototype.preventActivationBubbling=function(){return this.shouldPreventActivationBubble?!1:(this.shouldPreventActivationBubble=!0,!0)},r.prototype.allowActivation=function(){this.shouldPreventActivationBubble=!1},r.prototype.hotkeys=function(){t(window).on({keydown:t.proxy(function(e){if(!("TEXTAREA"==e.target.tagName||"INPUT"==e.target.tagName||i.layerAnimationManager&&i.layerAnimationManager.timelineControl&&i.layerAnimationManager.timelineControl.isActivated())){var n=this.mainContainer.getSelectedLayer(),r=e.keyCode;if(r>=49&&57>=r){var l=e.originalEvent.location||e.originalEvent.keyLocation||0;3==l&&(r+=48)}if(n)if(46==r||8==r)this["delete"](),e.preventDefault();else if(35==r)this.duplicate(),e.preventDefault();else if(16==r)s[r]=1;else if(38==r){if(!s[r]){var h=t.proxy(function(){this.doActionOnActiveLayer("moveY",[-1*(s[16]?10:1)])},this);h(),s[r]=setInterval(h,100)}e.preventDefault()}else if(40==r){if(!s[r]){var h=t.proxy(function(){this.doActionOnActiveLayer("moveY",[s[16]?10:1])},this);h(),s[r]=setInterval(h,100)}e.preventDefault()}else if(37==r){if(!s[r]){var h=t.proxy(function(){this.doActionOnActiveLayer("moveX",[-1*(s[16]?10:1)])},this);h(),s[r]=setInterval(h,100)}e.preventDefault()}else if(39==r){if(!s[r]){var h=t.proxy(function(){this.doActionOnActiveLayer("moveX",[s[16]?10:1])},this);h(),s[r]=setInterval(h,100)}e.preventDefault()}else if(r>=97&&105>=r){var d=o[r],c=a[r],p=!1;this.layerOptions.forms.placement.absolute.align.val()==d&&this.layerOptions.forms.placement.absolute.valign.val()==c&&(p=!0),this.layerOptions.layerFeatures.horizontalAlign(d,p),this.layerOptions.layerFeatures.verticalAlign(c,p)}else if(65==r){e.preventDefault();var u=this.mainContainer.getSelectedLayer();u&&"absolute"==u.placement.getType()&&u.placement.current.fit()}(e.ctrlKey||e.metaKey)&&(90==r?e.shiftKey?i.history.redo()&&e.preventDefault():i.history.undo()&&e.preventDefault():71==r?(this.createGroupFromSelected(),e.preventDefault()):68==r?(e.preventDefault(),this.slideEditManager.copySlide()):70==r?(e.preventDefault(),this.slideEditManager.pasteSlide()):67==r?this.copy():86==r&&this.paste())}},this),keyup:t.proxy(function(t){"undefined"!=typeof s[t.keyCode]&&s[t.keyCode]&&(clearInterval(s[t.keyCode]),s[t.keyCode]=0)},this)})},r.prototype.getSelf=function(){return this},r}),N2Require("CanvasUserInterface",[],["smartSlider"],function(t,e,i,n){"use strict";function r(e){this.canvasManager=e,this.isShown=!t.jStorage.get("ssLayersShown",!1),this.tlHeight=t.jStorage.get("ssLayersHeight")||200,this.$container=t("#n2-ss-layers"),this.fixScroll(),this.switchLayerList(),this.topBar=t(".n2-ss-layer-list-top-bar").on("mousedown",t.proxy(this.resizeStart,this)),this.topBar.find(".n2-ss-layer-list-opener").on("click",t.proxy(function(t){t.preventDefault(),this.switchLayerList()},this)),t(".n2-ss-slide-show-layers").on("click",t.proxy(function(t){t.preventDefault(),this.switchLayerList()},this)),this.onResize(),t(window).on("resize",t.proxy(this.onResize,this))}return r.prototype.onResize=function(){var t=this.$container.height();this.paneLeft.height(t-48),this.paneRight.height(t-48)},r.prototype.onActivateLayer=function(t){var e=this.paneLeft.scrollTop(),i=0,n=t;do i+=n.layerRow.get(0).offsetTop,n=n.group;while(n!==this.canvasManager.mainContainer);(e>i||i>e+this.paneLeft.height()-40)&&(this.paneLeft.scrollTop(i),this.paneRight.scrollTop(i))},r.prototype.fixScroll=function(){this.paneLeft=t(".n2-ss-layers-sidebar-rows"),this.paneRight=t(".n2-ss-timeline-content-layers-container");var e=t.proxy(function(t){var e=this.paneLeft.scrollTop();t.originalEvent.deltaY>0?e+=40:e-=40,e=40*Math.round(e/40),this.paneLeft.scrollTop(e),this.paneRight.scrollTop(e),t.preventDefault()},this);this.paneLeft.on("mousewheel",e),this.paneLeft.on("scroll",t.proxy(function(t){var e=this.paneLeft.scrollTop();this.paneRight.scrollTop(e),t.preventDefault()},this)),this.paneRight.on("mousewheel",e)},r.prototype.resizeStart=function(e){this.isShown&&(e.target==this.topBar[0]||t(e.target).hasClass("n2-h2"))&&(e.preventDefault(),this.startY=e.clientY,this.height=this.$container.height(),t("body").on({"mousemove.n2-ss-tl-resize":t.proxy(this.resizeMove,this),"mouseup.n2-ss-tl-resize":t.proxy(this.resizeStop,this),"mouseleave.n2-ss-tl-resize":t.proxy(this.resizeStop,this)}))},r.prototype.resizeMove=function(t){t.preventDefault(),this.setTLHeight(this._calculateDesiredHeight(t))},r.prototype.resizeStop=function(e){e.preventDefault(),t("body").off(".n2-ss-tl-resize");var i=this._calculateDesiredHeight(e);this.setTLHeight(i),this.tlHeight=i,t.jStorage.set("ssLayersHeight",i),t("#n2-admin").triggerHandler("resize")},r.prototype._calculateDesiredHeight=function(t){var e=this.startY-t.clientY+this.height-48;return this.__calculateDesiredHeight(e)},r.prototype.__calculateDesiredHeight=function(t){return 40*Math.round(Math.min(Math.max(40,t),(window.innerHeight||document.documentElement.clientHeight)/2)/40)+48},r.prototype.switchLayerList=function(){this.isShown=!this.isShown,this.$container.toggleClass("n2-active",this.isShown),this.isShown?this.setTLHeight(this.tlHeight):this.setTLHeight(48),t.jStorage.set("ssLayersShown",this.isShown)},r.prototype.setTLHeight=function(t){t=Math.max(48,t),this.$container.height(t),t=this.$container.height(),this.paneLeft.height(t-48),this.paneRight.height(t-48),nextend.triggerResize()},r.prototype.activateAdd=function(t,e){this.$add.css({left:t,top:e}).appendTo(this.$container)},r}),N2Require("LayerFeatures",[],["smartSlider"],function(t,e,i,n){"use strict";function r(t,e){this.fields=t,this.canvasManager=e,this.initParentLinker(),this.initAlign(),this.initEvents()}var s={left:0,center:1,right:2,top:0,middle:1,bottom:2};return r.prototype.initParentLinker=function(){var e=this.fields.parentid.data("field");t("#n2-ss-layer-parent-linker").on({click:function(t){e.click(t)}})},r.prototype.initAlign=function(){this.layerDefault={align:null,valign:null};var e=t("#n2-ss-layer-horizontal-align .n2-radio-option"),i=t("#n2-ss-layer-vertical-align .n2-radio-option");e.add(i).on("click",t.proxy(function(n){if(n.ctrlKey||n.metaKey){var r=t(n.currentTarget),s=r.hasClass("n2-sub-active"),o=r.data("align");switch(o){case"left":case"center":case"right":e.removeClass("n2-sub-active"),s?(t.jStorage.set("ss-item-horizontal-align",null),this.layerDefault.align=null):(t.jStorage.set("ss-item-horizontal-align",o),this.layerDefault.align=o,r.addClass("n2-sub-active"));break;case"top":case"middle":case"bottom":i.removeClass("n2-sub-active"),s?(t.jStorage.set("ss-item-vertical-align",null),this.layerDefault.valign=null):(t.jStorage.set("ss-item-vertical-align",o),this.layerDefault.valign=o,r.addClass("n2-sub-active"))}}else if(this.canvasManager.mainContainer.getSelectedLayer()){var o=t(n.currentTarget).data("align");switch(o){case"left":case"center":case"right":this.horizontalAlign(o,!0);break;case"top":case"middle":case"bottom":this.verticalAlign(o,!0)}}},this)),this.fields.align.on("nextendChange",t.proxy(function(){switch(e.removeClass("n2-active"),this.fields.align.val()){case"left":e.eq(0).addClass("n2-active");break;case"center":e.eq(1).addClass("n2-active");break;case"right":e.eq(2).addClass("n2-active")}},this)),this.fields.valign.on("nextendChange",t.proxy(function(){switch(i.removeClass("n2-active"),this.fields.valign.val()){case"top":i.eq(0).addClass("n2-active");break;case"middle":i.eq(1).addClass("n2-active");break;case"bottom":i.eq(2).addClass("n2-active")}},this));var n=t.jStorage.get("ss-item-horizontal-align",null),r=t.jStorage.get("ss-item-vertical-align",null);null!=n&&(e.eq(s[n]).addClass("n2-sub-active"),this.layerDefault.align=n),null!=r&&(i.eq(s[r]).addClass("n2-sub-active"),this.layerDefault.valign=r)},r.prototype.horizontalAlign=function(t,e){this.fields.align.val()!=t?this.fields.align.data("field").options.eq(s[t]).trigger("click"):e&&this.fields.left.val(0).trigger("change")},r.prototype.verticalAlign=function(t,e){this.fields.valign.val()!=t?this.fields.valign.data("field").options.eq(s[t]).trigger("click"):e&&this.fields.top.val(0).trigger("change")},r.prototype.initEvents=function(){var e=t("#n2-tab-events"),i=e.find(".n2-h3"),n=i.html(),r=t('<div class="n2-editor-header n2-h2 n2-uc"><span>'+n+"</span></div>");i.replaceWith(r)},r}),N2Require("LayerWindow",[],["smartSlider"],function(t,e,i,n){"use strict";function r(e){this.isMinimized=!1,this.detachedPosition={left:t.jStorage.get("ssPanelLeft")||200,top:t.jStorage.get("ssPanelTop")||100,height:t.jStorage.get("ssPanelHeight")||400},this.hasBreadcrumb=!1,this.lastHeight=this.detachedPosition.height,this.admin=t("#n2-admin"),this.sidebar=t("#n2-ss-layer-window").on("mousedown",t.proxy(nextend.context.setMouseDownArea,nextend.context,"sidebarClicked")),this.title=this.sidebar.find(".n2-ss-layer-window-title-inner"),this.sidebarTD=this.sidebar.parent(),this.canvasManager=e,i.layerWindow=this,this.viewPanes={layerEdit:t("#n2-tabbed-slide-editor-settings > .n2-tabs").addClass("n2-scrollable")};for(var n in this.viewPanes)this.viewPanes[n].on("DOMMouseScroll mousewheel",function(e){var i=!1;e.originalEvent&&(e.originalEvent.wheelDelta&&(i=e.originalEvent.wheelDelta/-1<0),e.originalEvent.deltaY&&(i=e.originalEvent.deltaY<0),e.originalEvent.detail&&(i=e.originalEvent.detail<0));var n=function(){return e.stopPropagation(),e.preventDefault(),e.returnValue=!1,!1};return!i&&this.scrollHeight<=t(this).innerHeight()+this.scrollTop+1?n():i&&0>=this.scrollTop-1?n():void 0});this.panelHeading=t("#n2-tabbed-slide-editor-settings").find(".n2-sidebar-tab-switcher .n2-td");var r=this.sidebar.find(".n2-ss-layer-window-title-nav-left");t('<a href="#"><i class="n2-i n2-i-minimize n2-i-grey-opacity"></i></a>').on("click",t.proxy(function(t){t.preventDefault(),this.toggleMinimize()},this)).appendTo(r);var s=this.sidebar.find(".n2-ss-layer-window-title-nav-right");t('<a href="#"><i class="n2-i n2-i-closewindow n2-i-grey-opacity"></i></a>').on("click",t.proxy(function(t){t.preventDefault(),this.hide()},this)).appendTo(s),nextend.tooltip.add(s),this.$breadcrumb=t('<div class="n2-ss-layer-window-breadcrumb"></div>').insertAfter("#n2-tabbed-slide-editor-settings > .n2-sidebar-tab-switcher");var o=t("#n2-ss-add-sidebar");t(".n2-ss-add-layer-button").on("click",function(e){e.preventDefault(),t("#n2-ss-layers-switcher > .n2-labels .n2-td").eq(0).trigger("click"),o.toggleClass("n2-active")}),t(".n2-ss-core-item").on("click",function(t){o.removeClass("n2-active")});var a=t("#wpadminbar, .navbar-fixed-top").height()+t(".n2-top-bar").height();this.$verticalBarInner=t(".n2-ss-add-sidebar-inner").each(function(){var e=t(this);e.fixTo(e.parent(),{top:a})}),this.$resizeInnerContainer=t("#n2-ss-layers-switcher_0, #n2-ss-layers-switcher_1"),this.extraHeightToRemove=60,this.$resizeInnerContainer.length||(this.extraHeightToRemove=0,this.$resizeInnerContainer=this.$verticalBarInner),this.$resizeInnerContainer.css("overflow","auto"),this.detach(),t("#n2-admin").on("resize",t.proxy(this.resizeVerticalBar,this)),t(window).on("resize",t.proxy(this.onResize,this)),t(".n2-ss-slide-duplicate-layer").on("click",t.proxy(function(t){t.preventDefault(),this.duplicate()},this.canvasManager)),t(".n2-ss-slide-delete-layer").on("click",t.proxy(function(t){t.preventDefault(),this["delete"]()},this.canvasManager)),t("body").on("mousedown",t.proxy(function(t){"main"==nextend.context.getCurrentWindow()&&nextend.context.mouseDownArea===!1&&this.hide()},this));var l=t('<div id="n2-ss-devicespecific-settings"></div>'),h=nextend.smartSlider.frontend.responsive.parameters.deviceModes;for(var n in h)if(h[n]){var d=n.replace(/([A-Z])/g," $1").split(" "),c=d[0],p=d[1].toLowerCase();l.append('<i class="n2-i n2-it n2-i-mini-'+c+"-"+p+'" data-device="'+c+'" data-orientation="'+p+'"></i>')}var u={mouseenter:t.proxy(function(t){l.appendTo(t.currentTarget)},this),mouseleave:t.proxy(function(t){l.detach()},this)};this.sidebar.find("[data-devicespecific] label").prepend('<span class="n2-i n2-i-mini-desktop-portrait"></span>'),this.sidebar.find("[data-devicespecific] label").on(u),l.find(".n2-i").on({click:t.proxy(function(e){e.preventDefault();var i=t(e.currentTarget);t("#n2-ss-devices").find('[data-device="'+i.data("device")+'"][data-orientation="'+i.data("orientation")+'"]').trigger("click")},this)})}return r.prototype.toggleMinimize=function(){this.isMinimized=!this.isMinimized,this.sidebar.toggleClass("n2-ss-layer-window-minized",this.isMinimized),this.isMinimized||this.onResize()},r.prototype.show=function(e,i){this.setTitle(e),t("body").addClass("n2-ss-layer-edit-visible")},r.prototype._show=function(){t("body").addClass("n2-ss-layer-edit-visible")},r.prototype.hide=function(){t("body").removeClass("n2-ss-layer-edit-visible")},r.prototype.isVisible=function(){return t("body").hasClass("n2-ss-layer-edit-visible")},r.prototype.hideWithDeferred=function(e){t("body").hasClass("n2-ss-layer-edit-visible")&&(this.hide(),e.done(t.proxy(this._show,this)))},r.prototype.setTitle=function(t){this.title.html(t.getName()),this.updateGroupTitle(t)},r.prototype.updateGroupTitle=function(e){var i;for(this.$breadcrumb.html(""),i=0;5>i&&(t('<span class="n2-window-title-structure-nav"><span>'+e.label+'</span><span class="n2-i n2-it n2-i-mini-arrow-thin"></span></span>').on({mouseenter:t.proxy(function(){this.canvasManager.highlight(this)},e),mouseleave:t.proxy(function(){this.canvasManager.deHighlight(this)},e),click:t.proxy(function(t){this.canvasManager.deHighlight(this),this.activate(t)},e)}).prependTo(this.$breadcrumb),e.group&&e.group!==this.canvasManager.mainContainer);i++)e=e.group;this.hasBreadcrumb=i>0,this.$breadcrumb.toggleClass("n2-has-breadcrumb",this.hasBreadcrumb),this.onResize()},r.prototype.getLayerEditExcludedHeight=function(){return 85+(this.hasBreadcrumb?23:0)},r.prototype.resizeVerticalBar=function(){this.$resizeInnerContainer.height((window.innerHeight||document.documentElement.clientHeight)-(t("#n2-ss-layers").is(":visible")&&t("#n2-ss-layers").hasClass("n2-active")?t("#n2-ss-layers").height():0)-t("#wpadminbar, .navbar-fixed-top").height()-t(".n2-top-bar").height()-this.extraHeightToRemove)},r.prototype.onResize=function(){this.sidebar.css("display","block"),this.resizeVerticalBar();var t=window.innerHeight||document.documentElement.clientHeight,e=this.sidebar.height()-this.getLayerEditExcludedHeight();this.viewPanes.layerEdit.height(e);var i={},n=window.innerWidth||document.documentElement.clientWidth,r=this.sidebar[0].getBoundingClientRect();r.left<0?i.left=0:r.left+r.width>n&&(i.left=Math.max(0,n-r.width)),r.height>t-r.top&&(i.top=t-r.top-r.height+r.top,i.top<0&&(this.lastHeight=i.height=r.height+i.top,i.top=0)),this.sidebar.css(i),this.sidebar.css("display","")},r.prototype.detach=function(){this.sidebar.css(this.detachedPosition),this.sidebar.appendTo(this.admin),this.admin.addClass("n2-sidebar-hidden"),t(window).off(".n2-ss-panel"),this.sidebar.removeClass("n2-sidebar-fixed"),this.sidebar.draggable({distance:5,handle:".n2-ss-layer-window-title",containment:"window",stop:t.proxy(function(e,i){
5
  this.sidebar.css("height",this.lastHeight);var n=this.sidebar[0].getBoundingClientRect();this.detachedPosition.left=n.left,this.detachedPosition.top=n.top,t.jStorage.set("ssPanelLeft",n.left),t.jStorage.set("ssPanelTop",n.top)},this),scroll:!1}).resizable({distance:5,handles:"s",stop:t.proxy(function(e,i){this.lastHeight=this.detachedPosition.height=this.sidebar.height(),t.jStorage.set("ssPanelHeight",this.detachedPosition.height)},this),create:t.proxy(function(e,i){t(e.target).find(".ui-resizable-handle").addClass("n2-ss-layer-window-resizer")},this)}),this.onResize(),nextend.triggerResize()},r.prototype.switchTab=function(t){this.panelHeading.filter('[data-tab="'+t+'"]').trigger("click")},r}),N2Require("PositionDisplay",[],["smartSlider"],function(t,e,i,n){"use strict";function r(){this.currentSource="",t(window).ready(t.proxy(this.ready,this))}return r.prototype.ready=function(){this.$body=t("body"),this.$el=t('<div class="n2 n2-ss-position-display"/>').appendTo("body")},r.prototype.show=function(t){""==this.currentSource&&(this.currentSource=t,this.$el.addClass("n2-active"),this.$body.addClass("n2-position-display-active"))},r.prototype.update=function(t,e,i){this.currentSource==e&&this.$el.html(i).css({left:t.pageX+10,top:t.pageY+10})},r.prototype.hide=function(t){this.currentSource!=t&&t!==n||(this.$body.removeClass("n2-position-display-active"),this.$el.removeClass("n2-active"),this.currentSource="")},i.positionDisplay=new r,r}),N2Require("Ruler",[],["smartSlider"],function(t,e,i,n){"use strict";function r(e){this.showGuides=1,this.guides=[],this.container=t('<div class="n2-ruler-container" />').appendTo("#n2-ss-slide-canvas-container-inner .n2-ss-slider-outer-container"),this.scale=10,this.vertical=t('<div class="n2-ruler n2-ruler-vertical unselectable"></div>').appendTo(".n2-ss-slider-real-container"),this.horizontal=t('<div class="n2-ruler n2-ruler-horizontal unselectable"></div>').appendTo(this.container),this.verticalSpans=t(),this.horizontalSpans=t(),this.onResize(),nextend.smartSlider.frontend.sliderElement.on("SliderResize",t.proxy(this.onSliderResize,this)),t(window).on("resize",t.proxy(this.onResize,this)),this.horizontal.on("mousedown",t.proxy(function(t){this.showGuides&&new o(this,this.horizontal,t)},this)),this.vertical.on("mousedown",t.proxy(function(t){this.showGuides&&new a(this,this.vertical,t)},this));try{e=t.extend({vertical:[],horizontal:[]},JSON.parse(Base64.decode(e)));for(var i=0;i<e.horizontal.length;i++){var n=new o(this,this.horizontal);n.setPosition(e.horizontal[i])}for(var i=0;i<e.vertical.length;i++){var n=new a(this,this.vertical);n.setPosition(e.vertical[i])}}catch(r){}nextend.ruler=this,this.measureToolVertical(),this.measureToolHorizontal()}function s(e,i,n){this.ruler=e,this.container=i,this.position=0,this.guide=t('<div class="n2-ruler-guide n2-ruler-user-guide"><div class="n2-ruler-guide-border"></div><div class="n2-ruler-guide-handle"></div></div>').appendTo(i).on("mousedown",t.proxy(function(t){t.preventDefault(),t.stopPropagation(),nextend.smartSlider.canvasManager.canvasSettings.settings["n2-ss-lock-guides"]||this["delete"]()},this)),this.ruler.addGuide(this),n&&this.create(n)}function o(){s.prototype.constructor.apply(this,arguments)}function a(){s.prototype.constructor.apply(this,arguments)}return r.prototype.addGuide=function(t){this.guides.push(t)},r.prototype.removeGuide=function(e){this.guides.splice(t.inArray(e,this.guides),1)},r.prototype.clearGuides=function(){for(var t=this.guides.length-1;t>=0;t--)this.guides[t]["delete"]()},r.prototype.onSliderResize=function(t,e){this.onResize()},r.prototype.onResize=function(){var e=nextend.smartSlider.frontend.responsive.responsiveDimensions,i=Math.max(e.slider.width,t("#n2-ss-slide-canvas-container").outerWidth(!0)-40),n=Math.max(e.slider.height,t("#n2-ss-slide-canvas-container").outerHeight(!0));this.container.css({width:i+40,height:n+40});for(var r=this.horizontalSpans.length-3;r<i/this.scale;r++){var s=t("<span />").appendTo(this.horizontal);r%10==0?s.addClass("n2-ss-ruler-mark-large").append("<span>"+r/10*100+"</span>"):r%2==0&&s.addClass("n2-ss-ruler-mark-medium"),this.horizontalSpans=this.horizontalSpans.add(s)}for(var r=this.verticalSpans.length-3;r<n/this.scale;r++){var s=t("<span />").appendTo(this.vertical);r%10==0?s.addClass("n2-ss-ruler-mark-large").append("<span>"+r/10*100+"</span>"):r%2==0&&s.addClass("n2-ss-ruler-mark-medium"),this.verticalSpans=this.verticalSpans.add(s)}},r.prototype.toArray=function(){for(var t={horizontal:[],vertical:[]},e=0;e<this.guides.length;e++)this.guides[e]instanceof o?t.horizontal.push(this.guides[e].position):this.guides[e]instanceof a&&t.vertical.push(this.guides[e].position);return t},r.prototype.measureToolVertical=function(){var e=t('<div class="n2-ruler-guide" style="z-index:1;"><div class="n2-ruler-guide-border" style="border-color: #f00;"></div></div>').css("display","none").appendTo(this.vertical),n=!1,r=t.proxy(function(){n||(n=!0,e.css("display",""),i.positionDisplay.show("Guide"))},this),s=t.proxy(function(){n&&(n=!1,e.css("display","none"),i.positionDisplay.hide("Guide"))},this);this.vertical.on({mouseenter:t.proxy(function(n){if(this.showGuides){var o=0,a=Math.round(this.vertical.offset().top);r(),this.vertical.on("mousemove.n2-ruler-measure-tool",t.proxy(function(n){if(t(n.target).hasClass("n2-ruler-guide-border")&&t(n.target).parent()[0]!=e[0])s();else if(r(),o!=n.pageY){var l=n.pageY-a;e.css("top",l),i.positionDisplay.update(n,"Guide",l-40+"px"),o=n.pageY}},this))}},this),mouseleave:t.proxy(function(){this.vertical.off(".n2-ruler-measure-tool"),s()},this)})},r.prototype.measureToolHorizontal=function(){var e=t('<div class="n2-ruler-guide" style="z-index:1;"><div class="n2-ruler-guide-border" style="border-color: #f00;"></div></div>').css("display","none").appendTo(this.horizontal),n=!1,r=t.proxy(function(){n||(n=!0,e.css("display",""),i.positionDisplay.show("Guide"))},this),s=t.proxy(function(){n&&(n=!1,e.css("display","none"),i.positionDisplay.hide("Guide"))},this);this.horizontal.on({mouseenter:t.proxy(function(n){if(this.showGuides){var o=0,a=Math.round(this.horizontal.offset().left);r(),this.horizontal.on("mousemove.n2-ruler-measure-tool",t.proxy(function(n){if(t(n.target).hasClass("n2-ruler-guide-border")&&t(n.target).parent()[0]!=e[0])s();else if(r(),o!=n.pageX){var l=Math.max(n.pageX-a,40);e.css("left",l),i.positionDisplay.update(n,"Guide",l-40+"px"),o=n.pageX}},this))}},this),mouseleave:t.proxy(function(){this.horizontal.off(".n2-ruler-measure-tool"),s()},this)})},s.prototype._position=function(t,e){return Math.max(0,t)},s.prototype.setPosition=function(t){this.position=t,this.refresh()},s.prototype.refresh=function(){this.positionRender(this.position)},s.prototype["delete"]=function(){this.ruler.removeGuide(this),this.guide.remove()},o.prototype=Object.create(s.prototype),o.prototype.constructor=o,o.prototype.create=function(t){var e=Math.round(this.container.offset().left)+40;this.position=this._position(t.pageX-e,t),this.positionRender(this.position)},o.prototype.rawPositionRender=function(t){this.guide.css("left",Math.max(0,t)+40)},o.prototype.positionRender=function(t){this.guide.css("left",Math.max(0,t)+40)},a.prototype=Object.create(s.prototype),a.prototype.constructor=a,a.prototype.create=function(t){var e=Math.round(this.container.offset().top)+40;this.position=this._position(t.pageY-e,t),this.positionRender(this.position)},a.prototype.rawPositionRender=function(t){this.guide.css("top",Math.max(0,t)+40)},a.prototype.positionRender=function(t){this.guide.css("top",Math.max(0,t)+40)},r}),N2Require("CanvasSettings",[],["smartSlider"],function(t,e,i,n){"use strict";function r(e){this.canvasManager=e,this.settings={};var i=t("#n2-ss-slide-canvas-settings").on("mouseleave",t.proxy(function(){i.removeClass("n2-active")},this));i.find("> a").on("click",function(t){t.preventDefault(),i.toggleClass("n2-active")}),this.$settingsPanel=i.find(".n2-ss-settings-panel-inner"),this.snapTo(),this.roundTo(),this.colorScheme(),this.canvasManager.slideEditManager.options.isAddSample||this.ruler()}return r.prototype._addSettings=function(e,i,n,r){this.settings[e]=parseInt(t.jStorage.get(e,n));var s=t('<a href="">'+i+'<span class="n2-setting-tick"><i class="n2-i n2-it n2-i-tick2"></i></span></a>').on("click",t.proxy(function(i){i.preventDefault(),this.settings[e]=1==this.settings[e]?0:1,t.jStorage.set(e,this.settings[e]),s.toggleClass("n2-setting-enabled",1==this.settings[e]),r(this.settings[e],!1)},this)).appendTo(this.$settingsPanel);s.toggleClass("n2-setting-enabled",1==this.settings[e]),r(this.settings[e],!0)},r.prototype._addAction=function(e,i){t('<a href="" class="n2-panel-action">'+e+"</a>").on("click",t.proxy(function(t){t.preventDefault(),i()},this)).appendTo(this.$settingsPanel)},r.prototype.get=function(t){return this.settings[t]},r.prototype.snapTo=function(){this._addSettings("n2-ss-snap-to-enabled",n2_("Smart Snap"),1,t.proxy(function(t){for(var e=this.mainContainer.container.getSortedLayers(),i=0;i<e.length;i++)e[i].placement.doAction("snap")},this.canvasManager))},r.prototype.roundTo=function(){this._addSettings("n2-ss-round-to-enabled",n2_("Round to 5px"),1,function(t){1==t?nextend.roundTo=5:nextend.roundTo=1})},r.prototype.colorScheme=function(){var e=t("#n2-ss-slide-canvas-container");this._addSettings("n2-ss-theme-dark",n2_("Dark Mode"),0,function(t){e.toggleClass("n2-ss-theme-dark",1==t)})},r.prototype.ruler=function(){i.ruler=new e.Ruler(t("#slideguides").val());var n=t("#n2-ss-slide-canvas-container");this._addSettings("n2-ss-ruler-enabled",n2_("Ruler"),1,t.proxy(function(t){n.toggleClass("n2-ss-has-ruler",1==t),nextend.triggerResize()},this)),this._addSettings("n2-ss-show-guides",n2_("Show Guides"),1,t.proxy(function(t){nextend.ruler.showGuides=t,n.toggleClass("n2-ss-show-guides",1==t)},this)),this._addSettings("n2-ss-lock-guides",n2_("Lock Guides"),0,t.proxy(function(t){n.toggleClass("n2-ss-lock-guides",1==t)},this)),this._addAction("Clear Guides",t.proxy(function(){nextend.ruler.clearGuides()},this))},r}),N2Require("PlacementAbsolute",["PlacementAbstract"],["smartSlider"],function(t,e,i,n){"use strict";function r(t,i,n){this.type="absolute",this.transferredProperties={},e.PlacementAbstract.prototype.constructor.apply(this,arguments),this.doThrottledTheResize=this.doTheResize,this._triggerLayerResizedThrottled=NextendThrottle(this._triggerLayerResized,30),this.parentIsVisible=!0,this.children=[]}var s=function(){var t=0;return window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){var i,n=(new Date).getTime();return i=Math.max(0,16-(n-t)),t=n+i,setTimeout(function(){e(n+i)},i)}}(),o={raf:!1,ratios:null,isThrottled:!1,layers:[]},a=function(){o.raf===!1&&(o.raf=!0,s(function(){for(var t=0;t<o.layers.length;t++)o.layers[t].isDeleted||o.layers[t].doTheResize(o.ratios,!0,o.isThrottled);o={raf:!1,ratios:null,isThrottled:!1,layers:[]}}))};return r.prototype=Object.create(e.PlacementAbstract.prototype),r.prototype.constructor=r,r.prototype.start=function(){this.$layer=this.layer.layer,this.$layerRow=this.layer.layerRow},r.prototype.preActivation=function(t){if("normal"==t.type){var e=this.layer.getProperty("height");e>0&&(this.transferredProperties.height=e)}},r.prototype.activated=function(e){var i=this.$layer.data("parentid");if(i){var n=t("#"+i);n.length>0?this.activatedAfterParentReady(e):setTimeout(t.proxy(function(){this.activatedAfterParentReady(e)},this),300)}else this._activated(e)},r.prototype.activatedAfterParentReady=function(e){var i=this.$layer.data("parentid");if(i){var n=t("#"+i);if(n.length>0){var r=n.data("layerObject");r?r.readyDeferred.done(t.proxy(this._activated,this,e)):n.on("layerStarted",t.proxy(function(i,n){n.readyDeferred.done(t.proxy(this._activated,this,e))},this))}else this.$layer.data("parentid",""),this._activated(e)}else this._activated(e)},r.prototype._activated=function(e){this.loadProperties(t.extend(e,this.transferredProperties)),this.transferredProperties={},this.$layer.css("zIndex",""),this.___makeLayerAlign(),this.___makeLayerResizeable()},r.cleanLayer=function(t){var e=["desktopPortrait","desktopLandscape","tabletPortrait","tabletLandscape","mobilePortrait","mobileLandscape"];t.removeAttr("data-align").removeAttr("data-valign").css({left:"",top:"",right:"",bottom:"",width:"",height:"","text-align":""});for(var i=["parentid","responsiveposition","responsivesize","parentalign","parentvalign","align","valign","left","top","width","height"],n={},r=0;r<i.length;r++){var s=i[r].toLowerCase();n[s]=t.data(s),t.removeAttr(s),t.removeData(s);for(var o=0;o<e.length;o++){var a=e[o].toLowerCase();n[a+s]=t.data(a+s),t.removeAttr(a+s),t.removeData(a+s)}}return n},r.prototype.deActivated=function(t){this.$layer.removeAttr("data-align").removeAttr("data-valign").css({left:"",top:"",right:"",bottom:"",width:"",height:"","text-align":""}),this.alignMarker.remove(),this.$layer.nextendResizable("destroy"),this.$layer.off(".n2-ss-absolute"),this.$layer.triggerHandler("LayerUnavailable");var e=["parentid","responsiveposition","responsivesize","parentalign","parentvalign","align","valign","left","top","width","height"],i=this.layer.getPropertiesData(e);return this.layer.removeProperties(e),this.chainParent.remove(),i},r.prototype.loadProperties=function(e){this.layer.createProperty("parentid",null,this.layer.layer,this),this.layer.createProperty("responsiveposition",1,this.layer.layer,this),this.layer.createProperty("responsivesize",1,this.layer.layer,this),this.layer.createDeviceProperty("parentalign",{desktopPortrait:"center"},this.layer.layer,this),this.layer.createDeviceProperty("parentvalign",{desktopPortrait:"middle"},this.layer.layer,this),this.layer.createDeviceProperty("align",{desktopPortrait:e.align||"center"},this.layer.layer,this),this.layer.createDeviceProperty("valign",{desktopPortrait:e.valign||"middle"},this.layer.layer,this),this.layer.createDeviceProperty("left",{desktopPortrait:e.left||0},this.layer.layer,this),this.layer.createDeviceProperty("top",{desktopPortrait:e.top||0},this.layer.layer,this),this.layer.createDeviceProperty("width",{desktopPortrait:e.width||"auto"},this.layer.layer,this),this.layer.createDeviceProperty("height",{desktopPortrait:e.height||"auto"},this.layer.layer,this);var i=this.layer.layer;this.subscribeParentCallbacks={},this.layer.getProperty("parentid")&&this.subscribeParent(),i.attr({"data-align":this.layer.getProperty("align"),"data-valign":this.layer.getProperty("valign")});var n=null;this.chainParent=t('<div class="n2-ss-layer-chain-parent n2-button n2-button-icon n2-button-xs n2-radius-s n2-button-blue"><i class="n2-i n2-i-layerunlink"></i></div>').on({click:t.proxy(this.unlink,this),mouseenter:t.proxy(function(){n=t("#"+this.layer.getProperty("parentid")).addClass("n2-highlight")},this),mouseleave:t.proxy(function(){n&&(n.removeClass("n2-highlight"),n=null)},this)}).appendTo(this.$layer)},r.prototype.triggerLayerResized=function(t,e){t?this._triggerLayerResized(t,e):this._triggerLayerResizedThrottled(!0,e)},r.prototype._triggerLayerResized=function(t,e){this.layer.isDeleted||this.$layer.triggerHandler("LayerResized",[e||{slideW:this.canvasManager.getResponsiveRatio("h"),slideH:this.canvasManager.getResponsiveRatio("v")},t||!1])},r.prototype.___makeLayerAlign=function(){this.alignMarker=t('<div class="n2-ss-layer-cc" />').appendTo(this.$layer)},r.prototype.___makeLayerResizeable=function(){this._resizableJustClick=!1,this.$layer.nextendResizable({handles:"n, e, s, w, ne, se, sw, nw",_containment:this.canvasManager.mainContainer.layer,start:t.proxy(this.____makeLayerResizeableStart,this),resize:t.proxy(this.____makeLayerResizeableResize,this),stop:t.proxy(this.____makeLayerResizeableStop,this),create:t.proxy(function(){this.$layer.find(".ui-resizable-handle, .n2-ss-layer-cc").on({mousedown:t.proxy(function(t){this._resizableJustClick=[t.clientX,t.clientY]},this),mouseup:t.proxy(function(e){if(this._resizableJustClick&&Math.abs(Math.sqrt(Math.pow(this._resizableJustClick[0]-e.clientX,2)+Math.pow(this._resizableJustClick[1]-e.clientY,2)))<1){var i=t(e.currentTarget),n=this.canvasManager.layerOptions.layerFeatures;i.hasClass("ui-resizable-nw")?(n.horizontalAlign("left",!1),n.verticalAlign("top",!1)):i.hasClass("ui-resizable-w")?(n.horizontalAlign("left",!1),n.verticalAlign("middle",!1)):i.hasClass("ui-resizable-sw")?(n.horizontalAlign("left",!1),n.verticalAlign("bottom",!1)):i.hasClass("ui-resizable-n")?(n.horizontalAlign("center",!1),n.verticalAlign("top",!1)):i.hasClass("n2-ss-layer-cc")?(n.horizontalAlign("center",!1),n.verticalAlign("middle",!1)):i.hasClass("ui-resizable-s")?(n.horizontalAlign("center",!1),n.verticalAlign("bottom",!1)):i.hasClass("ui-resizable-ne")?(n.horizontalAlign("right",!1),n.verticalAlign("top",!1)):i.hasClass("ui-resizable-e")?(n.horizontalAlign("right",!1),n.verticalAlign("middle",!1)):i.hasClass("ui-resizable-se")&&(n.horizontalAlign("right",!1),n.verticalAlign("bottom",!1))}this._resizableJustClick=!1},this)})},this),smartguides:t.proxy(function(){return this.$layer.triggerHandler("LayerParent"),this.canvasManager.getSnap()},this),tolerance:5}).on({"mousedown.n2-ss-absolute":t.proxy(function(t){!this.layer.status!=e.ComponentAbstract.STATUS.LOCKED&&(i.positionDisplay.show("Canvas"),i.positionDisplay.update(t,"Canvas","W: "+parseInt(this.$layer.width())+"px<br />H: "+parseInt(this.$layer.height())+"px")),document.activeElement&&document.activeElement.blur()},this),"mouseup.n2-ss-absolute":t.proxy(function(t){i.positionDisplay.hide("Canvas")},this)})},r.prototype.____makeLayerResizeableStart=function(e,n){this.preventActivation=!0,this.resizableDeferred=t.Deferred(),this.canvasManager.layerWindow.hideWithDeferred(this.resizableDeferred),t("body").addClass("n2-ss-resize-layer"),this._resizableJustClick&&(this._resizableJustClick=!1),this.____makeLayerResizeableResize(e,n),i.positionDisplay.show("Canvas")},r.prototype.____makeLayerResizeableResize=function(t,e){i.positionDisplay.update(t,"Canvas","W: "+e.size.width+"px<br />H: "+e.size.height+"px"),this.triggerLayerResized()},r.prototype.____makeLayerResizeableStop=function(e,n){t("body").removeClass("n2-ss-resize-layer"),this.resizableDeferred.resolve();var r=!1;if("n"==n.axis||"s"==n.axis||n.originalSize.width==n.size.width){var s=this.layer.getProperty("width");this.layer.isDimensionPropertyAccepted(s)&&(r=!0,this._syncwidth())}var o=!1;if("e"==n.axis||"w"==n.axis||n.originalSize.height==n.size.height){var s=this.layer.getProperty("height");this.layer.isDimensionPropertyAccepted(s)&&(o=!0,this._syncheight())}var a=this.canvasManager.getResponsiveRatio("h"),l=this.canvasManager.getResponsiveRatio("v");parseInt(this.layer.getProperty("responsivesize"))||(a=l=1);var h=null;r||(h=Math.round(n.size.width*(1/a)));var d=null;o||(d=Math.round(n.size.height*(1/l))),this._setPosition(null,null,n.position.left,n.position.top,h,d,!0),this.triggerLayerResized(),this.$layer.triggerHandler("LayerUnParent"),i.positionDisplay.hide("Canvas"),setTimeout(t.proxy(function(){this.preventActivation=!1},this),80)},r.prototype._setPosition=function(t,e,n,r,s,o,a){var l=this.layer.getMode();null===t&&(t=this.layer.getProperty("align")),null===e&&(e=this.layer.getProperty("valign")),null===n?n=this.layer.getProperty("left"):a&&(n=this.calculatePositionLeft(t,n)),null===r?r=this.layer.getProperty("top"):a&&(r=this.calculatePositionTop(e,r)),null===s&&(s=this.layer.getProperty("width")),null===o&&(o=this.layer.getProperty("height"));var h=i.history.addValue(this.layer,this.layer.historyStoreOnPlacement,["historyStorePosition",l]);h&&h.setValues({align:this.layer.getRawProperty("align"),valign:this.layer.getRawProperty("valign"),left:this.layer.getRawProperty("left"),top:this.layer.getRawProperty("top"),width:this.layer.getRawProperty("width"),height:this.layer.getRawProperty("height")},{align:t,valign:e,left:n,top:r,width:s,height:o}),i.history.off(),this.layer.store("width",s,!0,"layer"),this.layer.$.trigger("propertyChanged",["width",s]),this.layer.store("height",o,!0,"layer"),this.layer.$.trigger("propertyChanged",["height",o]),this.layer.store("align",t,!0,"layer"),this.layer.$.trigger("propertyChanged",["align",t]),this.layer.store("valign",e,!0,"layer"),this.layer.$.trigger("propertyChanged",["valign",e]),this.layer.store("left",n,!0,"layer"),this.layer.$.trigger("propertyChanged",["left",n]),this.layer.store("top",r,!0,"layer"),this.layer.$.trigger("propertyChanged",["top",r]),i.history.on()},r.prototype.historyStorePosition=function(t,e){this.layer.historyStore(t.align,"align",e),this.layer.historyStore(t.valign,"valign",e),this.layer.historyStore(t.width,"width",e),this.layer.historyStore(t.height,"height",e),this.layer.historyStore(t.left,"left",e),this.layer.historyStore(t.top,"top",e),this.triggerLayerResized()},r.prototype.calculatePositionLeft=function(t,e){var i=this.canvasManager.getResponsiveRatio("h");parseInt(this.layer.getProperty("responsiveposition"))||(i=1);var n=this.parent,r={left:0,leftMultiplier:1};if(n&&n.is(":visible")){var s=n.position();switch(this.layer.getProperty("parentalign")){case"right":r.left=s.left+n.width();break;case"center":r.left=s.left+n.width()/2;break;default:r.left=s.left}}else switch(n=this.$layer.parent(),t){case"center":r.left+=n.width()/2;break;case"right":r.left+=n.width()}var e;switch(t){case"left":e=-Math.round((r.left-e)*(1/i));break;case"center":e=-Math.round((r.left-e-this.$layer.width()/2)*(1/i));break;case"right":e=-Math.round((r.left-e-this.$layer.width())*(1/i))}return e},r.prototype.calculatePositionTop=function(t,e){var i=this.canvasManager.getResponsiveRatio("v");parseInt(this.layer.getProperty("responsiveposition"))||(i=1);var n=this.parent,r={top:0,topMultiplier:1};if(n&&n.is(":visible")){var s=n.position();switch(this.layer.getProperty("parentvalign")){case"bottom":r.top=s.top+n.height();break;case"middle":r.top=s.top+n.height()/2;break;default:r.top=s.top}}else switch(n=this.$layer.parent(),t){case"middle":r.top+=n.height()/2;break;case"bottom":r.top+=n.height()}var e;switch(t){case"top":e=-Math.round((r.top-e)*(1/i));break;case"middle":e=-Math.round((r.top-e-this.$layer.height()/2)*(1/i));break;case"bottom":e=-Math.round((r.top-e-this.$layer.height())*(1/i))}return e},r.prototype.moveX=function(t){this._setPosition(null,null,this.layer.getProperty("left")+t,null,null,null,!1)},r.prototype.moveY=function(t){this._setPosition(null,null,null,this.layer.getProperty("top")+t,null,null,!1)},r.prototype.setPositionLeft=function(t){t=this.calculatePositionLeft(this.layer.getProperty("align"),t),this.layer.store("left",t,!0),this.layer.$.trigger("propertyChanged",["left",t])},r.prototype.setPositionTop=function(t){t=this.calculatePositionTop(this.layer.getProperty("valign"),t),this.layer.store("top",t,!0),this.layer.$.trigger("propertyChanged",["top",t])},r.prototype.setPosition=function(t,e){this.setPositionLeft(t),this.setPositionTop(e)},r.prototype.setDeviceBasedAlign=function(){var t=this.layer.getMode();"undefined"==typeof this.layer.deviceProperty[t].align&&this.layer.setProperty("align",this.layer.getProperty("align"),"layer"),"undefined"==typeof this.layer.deviceProperty[t].valign&&this.layer.setProperty("valign",this.layer.getProperty("valign"),"layer")},r.prototype.setPropertyresponsiveposition=r.prototype.setPropertyresponsivesize=function(t,e,i){this.layer._setProperty(t,parseInt(e),i)},r.prototype.setPropertywidth=r.prototype.setPropertyheight=function(e,i,n){var r=i;this.layer.isDimensionPropertyAccepted(i)||(r=~~i,r!=i&&this.layer.$.trigger("propertyChanged",[e,r])),setTimeout(t.proxy(function(){this.onResize(!1)},this),50),this.layer._setProperty(e,r,n)},r.prototype.setPropertyleft=r.prototype.setPropertytop=function(t,e,i){var n=~~e;n!=e&&this.layer.$.trigger("propertyChanged",[t,n]),this.layer._setProperty(t,n,i)},r.prototype.render=function(t){this["_sync"+t]()},r.prototype.renderWithModifier=function(t,e,i){try{"width"!=t&&"height"!=t||!this.layer.isDimensionPropertyAccepted(e)?this["_sync"+t](Math.round(e*i)):this["_sync"+t](e)}catch(n){console.error("_sync"+t)}},r.prototype.onResize=function(t){this.resize({slideW:this.canvasManager.getResponsiveRatio("h"),slideH:this.canvasManager.getResponsiveRatio("v")},t)},r.prototype.resize=function(t,e){this.parent&&!e||this.addToResizeCollection(this,t,!1)},r.prototype.addToResizeCollection=function(t,e,i){o.ratios=e,o.isThrottled=i;for(var n=0;n<o.layers.length;n++)if(o.layers[n]==this){o.layers.splice(n,1);break}o.layers.push(t),a(),this.triggerLayerResized(i,e)},r.prototype._syncresponsiveposition=function(){this.onResize(!1)},r.prototype._syncwidth=function(){var t=this.layer.getProperty("width");if(!this.layer.isDimensionPropertyAccepted(t)){if(parseInt(this.layer.getProperty("responsivesize"))){var e=this.canvasManager.getResponsiveRatio("h");t*=e}t+="px"}this.$layer.css("width",t)},r.prototype._syncheight=function(){var t=this.layer.getProperty("height");if(!this.layer.isDimensionPropertyAccepted(t)){if(parseInt(this.layer.getProperty("responsivesize"))){var e=this.canvasManager.getResponsiveRatio("v");t*=e}t+="px"}this.$layer.css("height",t)},r.prototype._syncparentalign=function(){var t=this.layer.getProperty("parentalign");this.$layer.data("parentalign",t);var e=this.getParent();e&&e.placement.current.onResize(!1)},r.prototype._syncparentvalign=function(){var t=this.layer.getProperty("parentvalign");this.$layer.data("parentvalign",t);var e=this.getParent();e&&e.placement.current.onResize(!1)},r.prototype._syncleft=function(){var t=this.layer.getProperty("left");if(parseInt(this.layer.getProperty("responsiveposition"))){var e=this.canvasManager.getResponsiveRatio("h");t*=e}if(this.parent&&this.parentIsVisible){var i=this.parent.position(),n=this.layer.getProperty("align"),r=this.layer.getProperty("parentalign"),s=0;switch(r){case"right":s=i.left+this.parent.width();break;case"center":s=i.left+this.parent.width()/2;break;default:s=i.left}switch(n){case"right":this.$layer.css({left:"auto",right:this.$layer.parent().width()-s-t+"px"});break;case"center":this.$layer.css({left:s+t-this.$layer.width()/2+"px",right:"auto"});break;default:this.$layer.css({left:s+t+"px",right:"auto"})}}else switch(this.layer.getProperty("align")){case"right":this.$layer.css({left:"auto",right:-t+"px"});break;case"center":this.$layer.css({left:this.$layer.parent().width()/2+t-this.$layer.width()/2+"px",right:"auto"});break;default:this.$layer.css({left:t+"px",right:"auto"})}this.triggerLayerResized()},r.prototype._synctop=function(){var t=this.layer.getProperty("top");if(parseInt(this.layer.getProperty("responsiveposition"))){var e=this.canvasManager.getResponsiveRatio("v");t*=e}if(this.parent&&this.parentIsVisible){var i=this.parent.position(),n=this.layer.getProperty("valign"),r=this.layer.getProperty("parentvalign"),s=0;switch(r){case"bottom":s=i.top+this.parent.height();break;case"middle":s=i.top+this.parent.height()/2;break;default:s=i.top}switch(n){case"bottom":this.$layer.css({top:"auto",bottom:this.$layer.parent().height()-s-t+"px"});break;case"middle":this.$layer.css({top:s+t-this.$layer.height()/2+"px",bottom:"auto"});break;default:this.$layer.css({top:s+t+"px",bottom:"auto"})}}else switch(this.layer.getProperty("valign")){case"bottom":this.$layer.css({top:"auto",bottom:-t+"px"});break;case"middle":this.$layer.css({top:this.$layer.parent().height()/2+t-this.$layer.height()/2+"px",bottom:"auto"});break;default:this.$layer.css({top:t+"px",bottom:"auto"})}this.triggerLayerResized()},r.prototype._syncresponsivesize=function(){this.onResize(!1)},r.prototype.historyStoreDoubleProp=function(t,e,i,n){var r=this.layer.getMode();e==r?(this.layer._setProperty(i,t.value,"history"),this.layer._setProperty(n,t.value2,"history")):(this.layer.deviceProperty[e][i]=t.value,this.layer.deviceProperty[e][n]=t.value2,this.layer.$.trigger("propertyChanged",[i,this.layer.getProperty(i)]),this.layer.$.trigger("propertyChanged",[n,this.layer.getProperty(n)]),this.layer.render(i,null,"history"),this.layer.render(n,null,"history"))},r.prototype.setPropertyalign=function(t,e,n){var r=this.layer.getProperty(t),s=this.layer.getRawProperty("left");i.history.off(),this.layer._setProperty(t,e,n),i.history.on();var o=i.history.addValue(this.layer,this.layer.historyStoreOnPlacement,["historyStoreDoubleProp",this.layer.getMode(),"align","left"]);o&&o.setValues({value:r,value2:s},{value:e,value2:this.layer.getRawProperty("left")})},r.prototype.setPropertyvalign=function(t,e,n){var r=this.layer.getProperty(t),s=this.layer.getRawProperty("top");i.history.off(),this.layer._setProperty(t,e,n),i.history.on();var o=i.history.addValue(this.layer,this.layer.historyStoreOnPlacement,["historyStoreDoubleProp",this.layer.getMode(),"valign","top"]);o&&o.setValues({value:r,value2:s},{value:e,value2:this.layer.getRawProperty("top")})},r.prototype._syncalign=function(t,e){var i=this.layer.getProperty("align");this.$layer.attr("data-align",i),"history"!=e&&i!=t&&this.setPositionLeft(this.$layer.position().left)},r.prototype._syncvalign=function(t,e){var i=this.layer.getProperty("valign");this.$layer.attr("data-valign",i),"history"!=e&&i!=t&&this.setPositionTop(this.$layer.position().top)},r.prototype.fit=function(){var t=this.$layer.get(0);this.$layer.position();if(t.scrollWidth>0&&t.scrollHeight>0){var e=!1;if(this.layer.item&&(e=this.layer.item.fitLayer()),!e){this.layer.setProperty("width","auto","layer"),this.layer.setProperty("height","auto","layer");var i=this.$layer.width();Math.abs(this.canvasManager.mainContainer.layer.width()-this.$layer.position().left-i)<2&&this.layer.setProperty("width",i,"layer")}}},r.prototype.hide=function(t){this.layer.store(t?t:this.layer.getMode(),0,!0)},r.prototype.show=function(t){this.layer.store(t?t:this.layer.getMode(),1,!0)},r.prototype.changeStatus=function(t,i){t==e.ComponentAbstract.STATUS.LOCKED&&this.layer.nextendResizable("enable"),i==e.ComponentAbstract.STATUS.LOCKED&&this.$layer.nextendResizable("disable")},r.prototype.getParent=function(){return t("#"+this.layer.getProperty("parentid")).data("layerObject")},r.prototype.subscribeParent=function(){var e=this,i=t("#"+this.layer.property.parentid);this.parent&&!i.is(this.parent)&&(this.parent.off(this.subscribeParentCallbacks),this.parent=!1),this.parent||(this.subscribeParentCallbacks={LayerResized:function(){e.resizeParent.apply(e,arguments)},LayerParent:function(){e.$layer.addClass("n2-ss-layer-parent"),e.$layer.triggerHandler("LayerParent")},LayerUnParent:function(){e.$layer.removeClass("n2-ss-layer-parent"),e.$layer.triggerHandler("LayerUnParent")},LayerDeleted:function(t){e.layer.setProperty("parentid","","layer")},LayerUnavailable:function(t){e.layer.setProperty("parentid","","layer"),e.layer.setProperty("left",0,"layer"),e.layer.setProperty("top",0,"layer")},LayerShowChange:function(t,i,n){e.layer.getMode()==i&&(e.parentIsVisible=n)},"n2-ss-activate":function(){e.$layerRow.addClass("n2-parent-active")},"n2-ss-deactivate":function(){e.$layerRow.removeClass("n2-parent-active")},LayerGetDataWithChildren:function(t,i,n){e.layer.getDataWithChildren(i,n)}},this.parent=i.on(this.subscribeParentCallbacks),this.parent.data("layerObject").placement.current.addChild(this),this.$layer.addClass("n2-ss-layer-has-parent"))},r.prototype.unSubscribeParent=function(t){if(this.$layerRow.removeClass("n2-parent-active"),this.$layer.removeClass("n2-ss-layer-has-parent"),this.parent&&(this.parent.off(this.subscribeParentCallbacks),this.parent=!1,this.subscribeParentCallbacks={},"delete"!=t)){var e=this.$layer.position();this._setPosition(null,null,e.left,e.top,null,null,!0)}},r.prototype.addChild=function(t){this.children.push(t)},r.prototype.removeChild=function(e){this.children.splice(t.inArray(e,this.children),1)},r.prototype.unlink=function(t){t&&t.preventDefault(),this.layer.setProperty("parentid","","layer")},r.prototype.parentPicked=function(t,e,i,n,r){this.layer.setProperty("parentid","","layer"),this.layer.setProperty("align",n,"layer"),
6
  this.layer.setProperty("valign",r,"layer"),this.layer.setProperty("parentalign",e,"layer"),this.layer.setProperty("parentvalign",i,"layer"),this.layer.setProperty("parentid",t.requestID(),"layer");var s;for(var o in this.layer.deviceProperty)"desktopPortrait"!=o&&(this.layer.deviceProperty[o].left=s,this.layer.deviceProperty[o].top=s,this.layer.deviceProperty[o].valign=s,this.layer.deviceProperty[o].align=s)},r.prototype._syncparentid=function(){var e=this.layer.getProperty("parentid");if(e&&""!=e)if(0==t("#"+e).length)this.layer.setProperty("parentid","","layer");else{this.$layer.attr("data-parentid",e).addClass("n2-ss-layer-has-parent"),this.subscribeParent();var i=this.$layer.position();this._setPosition(null,null,i.left,i.top,null,null,!0)}else this.$layer.removeAttr("data-parentid"),this.unSubscribeParent()},r.prototype.snap=function(){this.$layer.nextendResizable("option","smartguides",t.proxy(function(){return this.$layer.triggerHandler("LayerParent"),this.canvasManager.getSnap()},this))},r.prototype._renderModeProperties=function(t){this.$layer.attr("data-align",this.layer.property.align),this.$layer.attr("data-valign",this.layer.property.valign),t&&this.onResize(!0)},r.prototype.doLinearResize=function(t){this.doThrottledTheResize(t,!0)},r.prototype.doTheResize=function(t,e,i){this.render("width"),this.render("height"),this.render("left"),this.render("top"),e||this.triggerLayerResized(i,t)},r.prototype.resizeParent=function(t,e,i){this.addToResizeCollection(this,e,i)},r.prototype.updatePosition=function(){var t=this.parent;if("center"==this.layer.getProperty("align")){var e=0;e=t?t.position().left+t.width()/2:this.$layer.parent().width()/2;var i=this.canvasManager.getResponsiveRatio("h");parseInt(this.layer.getProperty("responsiveposition"))||(i=1),this.$layer.css("left",e-this.$layer.width()/2+this.layer.getProperty("left")*i)}if("middle"==this.layer.getProperty("valign")){var n=0;n=t?t.position().top+t.height()/2:this.$layer.parent().height()/2;var i=this.canvasManager.getResponsiveRatio("v");parseInt(this.layer.getProperty("responsiveposition"))||(i=1),this.$layer.css("top",n-this.$layer.height()/2+this.layer.getProperty("top")*i)}this.triggerLayerResized()},r.prototype.getIndex=function(){var t=parseInt(this.$layer.css("zIndex"));return isNaN(t)&&(t=0),t},r.prototype.renderIndex=function(t){},r.prototype.sync=function(){this._syncalign(null,"history"),this._syncvalign(null,"history"),this._syncwidth(),this._syncheight(),this._synctop(),this._syncleft(),this._syncparentid()},r.prototype["delete"]=function(){var t=this.layer.getProperty("parentid");t&&this.unSubscribeParent("delete")},r.prototype.isParentOrChild=function(){return this.parent||this.children.length>0},r}),N2Require("PlacementContent",["PlacementAbstract"],[],function(t,e,i){"use strict";function n(t,i,n){this.type="content",e.PlacementAbstract.prototype.constructor.apply(this,arguments)}return n.prototype=Object.create(e.PlacementAbstract.prototype),n.prototype.constructor=n,n}),N2Require("PlacementDefault",["PlacementAbstract"],["smartSlider"],function(t,e,i,n){"use strict";function r(t,i,n){this.type="default",e.PlacementAbstract.prototype.constructor.apply(this,arguments)}return r.prototype=Object.create(e.PlacementAbstract.prototype),r.prototype.constructor=r,r.prototype.start=function(){this.$layer=this.layer.layer},r.prototype.activated=function(t){this.startUISizing()},r.prototype.deActivated=function(t){this.$layer.nextendNormalSizing("destroy")},r.prototype.startUISizing=function(){var e=!1;this.layer.item&&this.layer.item.needSize&&(e=!0),this.$layer.nextendNormalSizing({start:t.proxy(function(t,e){i.positionDisplay.show("NormalSizing"),"maxwidth"==e&&this.layer.layer.addClass("n2-ss-has-maxwidth")},this),resizeMaxWidth:t.proxy(function(t,e){i.positionDisplay.update(t,"NormalSizing","Max-width: "+(0==e.value?"none":e.value+"px"))},this),stopMaxWidth:t.proxy(function(t,e){i.positionDisplay.hide("NormalSizing"),this.layer.setProperty("maxwidth",e.value)},this)})},r}),N2Require("PlacementNormal",["PlacementAbstract"],["smartSlider"],function(t,e,i,n){"use strict";function r(t,i,n){this.type="normal",this.transferredProperties={},e.PlacementAbstract.prototype.constructor.apply(this,arguments)}return r.prototype=Object.create(e.PlacementAbstract.prototype),r.prototype.constructor=r,r.prototype.start=function(){this.$layer=this.layer.layer},r.prototype.preActivation=function(t){if("absolute"==t.type&&this.layer.item&&this.layer.item.needSize){var e=this.layer.getProperty("height");e.match&&e.match(/[0-9]+%$/)?this.transferredProperties.height=Math.max(100,parseInt(this.$layer.parent().height()*parseInt(e)/100)):e>0&&(this.transferredProperties.height=e)}},r.prototype.activated=function(e){this.loadProperties(t.extend(e,this.transferredProperties)),this.transferredProperties={},this.layer.$.on("baseSizeUpdated.placementnormal",t.proxy(this._syncmargin,this)),this.layer.$.on("baseSizeUpdated.placementnormal",t.proxy(this._syncheight,this)),this.startUISpacing(),this.startUISizing(),this.$layer.on({mousedown:t.proxy(function(t){t.stopPropagation()})})},r.prototype.loadProperties=function(t){this.layer.createDeviceProperty("margin",{desktopPortrait:"0|*|0|*|0|*|0|*|px+"},this.layer.layer,this),this.layer.createDeviceProperty("height",{desktopPortrait:t.height||0},this.layer.layer,this),this.layer.createDeviceProperty("maxwidth",{desktopPortrait:0},this.layer.layer,this),this.layer.createDeviceProperty("selfalign",{desktopPortrait:"inherit"},this.layer.layer,this)},r.cleanLayer=function(t){var e=["desktopPortrait","desktopLandscape","tabletPortrait","tabletLandscape","mobilePortrait","mobileLandscape"];t.removeClass("n2-ss-has-maxwidth").removeAttr("data-cssselfalign").css({position:"",margin:"",height:"",maxWidth:""});for(var i=["margin","height","maxwidth","selfalign"],n={},r=0;r<i.length;r++){var s=i[r].toLowerCase();n[s]=t.data(s),t.removeAttr(s),t.removeData(s);for(var o=0;o<e.length;o++){var a=e[o].toLowerCase();n[s]=t.data(a+s),t.removeAttr(a+s),t.removeData(a+s)}}return n},r.prototype.deActivated=function(t){this.layer.$.off(".placementnormal"),this.$layer.nextendSpacing("destroy"),this.$layer.nextendNormalSizing("destroy"),this.layer.layer.removeClass("n2-ss-has-maxwidth"),this.layer.layer.removeAttr("data-cssselfalign");var e=["margin","height","maxwidth","selfalign"],i=this.layer.getPropertiesData(e);return this.layer.removeProperties(e),this.layer.layer.css({position:"",margin:"",height:"",maxWidth:""}),i},r.prototype._renderModeProperties=function(t){this._syncmargin(),this._syncheight(),this._syncmaxwidth(),this._syncselfalign()},r.prototype._syncmargin=function(){var t=this.layer.getProperty("margin").split("|*|"),e=t.pop(),i=this.layer.baseSize;if("px+"==e&&i>0){e="em";for(var n=0;n<t.length;n++)t[n]=parseInt(t[n])/i}var t=t.join(e+" ")+e;this.layer.layer.css("margin",t),this.layer.update(),this.$layer.nextendSpacing("option","current",t)},r.prototype.startUISpacing=function(){this.$layer.nextendSpacing({mode:"margin",sync:{n:"margin-top",e:"margin-right",s:"margin-bottom",w:"margin-left"},handles:"n, s, e, w",start:t.proxy(function(t,e){i.positionDisplay.show("Spacing")},this),spacing:t.proxy(function(t,e){var n="";for(var r in e.changed)n+="Margin "+r+": "+e.changed[r]+"px<br>";i.positionDisplay.update(t,"Spacing",n)},this),stop:t.proxy(this.onSpacingStop,this)})},r.prototype.onSpacingStop=function(e,n){i.positionDisplay.hide("Spacing");var r=this.layer.getProperty("margin").split("|*|"),s=1,o=1;"px+"==r[r.length-1]&&Math.abs(parseFloat(this.$layer.css("fontSize"))-this.layer.baseSize)>1&&(s=this.canvasManager.getResponsiveRatio("h"),o=this.canvasManager.getResponsiveRatio("v"));for(var a in n.changed){var l=n.changed[a];switch(a){case"top":r[0]=Math.round(l/o);break;case"right":r[1]=Math.round(l/s);break;case"bottom":r[2]=Math.round(l/o);break;case"left":r[3]=Math.round(l/s)}}this.layer.setProperty("margin",r.join("|*|")),t("#layernormal-margin").data("field").insideChange(r.join("|*|"))},r.prototype.startUISizing=function(){var e=!1;this.layer.item&&this.layer.item.needSize&&(e=!0),this.$layer.nextendNormalSizing({height:e,syncWidth:!0,start:t.proxy(function(t,e){i.positionDisplay.show("NormalSizing"),"maxwidth"==e&&this.layer.layer.addClass("n2-ss-has-maxwidth")},this),resizeMaxWidth:t.proxy(function(t,e){i.positionDisplay.update(t,"NormalSizing","Max-width: "+(0==e.value?"none":e.value+"px"))},this),stopMaxWidth:t.proxy(function(t,e){i.positionDisplay.hide("NormalSizing"),this.layer.setProperty("maxwidth",e.value)},this),resizeHeight:t.proxy(function(t,e){i.positionDisplay.update(t,"NormalSizing","Height: "+e.value+"px")},this),stopHeight:t.proxy(function(t,e){i.positionDisplay.hide("NormalSizing");var n=1;parseInt(this.$layer.css("fontSize"))!=this.layer.baseSize&&(n=this.canvasManager.getResponsiveRatio("h"));var r=Math.round(r/n);this.layer.setProperty("height",e.value)},this)})},r.prototype._syncheight=function(){var t=parseInt(this.layer.getProperty("height"));if(t>0){var e="px",i=this.layer.baseSize;i>0&&(e="em",t=parseInt(t)/i),this.layer.layer.css("height",t+e)}else this.layer.layer.css("height","");this.layer.update()},r.prototype._syncmaxwidth=function(){var t=parseInt(this.layer.getProperty("maxwidth"));0>=t||isNaN(t)?this.layer.layer.css("maxWidth","").removeClass("n2-ss-has-maxwidth"):this.layer.layer.css("maxWidth",t+"px").addClass("n2-ss-has-maxwidth"),this.layer.update()},r.prototype._syncselfalign=function(){this.layer.layer.attr("data-cssselfalign",this.layer.getProperty("selfalign"))},r.prototype.sync=function(){this._syncmargin(),this._syncheight(),this._syncmaxwidth()},r}),N2Require("Placement",[],[],function(t,e,i){"use strict";function n(t){this.layer=t,this.canvasManager=t.canvasManager,this.modes={},this.current=null,this.isTransferHandled=!1,this.updatePositionThrottled=NextendDeBounce(this.updatePosition,200)}return n.prototype.allow=function(t){switch(t){case"absolute":this.modes.absolute=new e.PlacementAbsolute(this,this.layer,this.canvasManager);break;case"normal":this.modes.normal=new e.PlacementNormal(this,this.layer,this.canvasManager);break;case"group":this.modes.absolute=new e.PlacementGroup(this,this.layer,this.canvasManager);break;case"content":this.modes.absolute=new e.PlacementContent(this,this.layer,this.canvasManager);break;case"default":this.modes["default"]=new e.PlacementDefault(this,this.layer,this.canvasManager)}},n.prototype.start=function(){for(var t in this.modes)this.modes[t].start()},n.prototype.setMode=function(t,e){var i=!1;if(e=e||{},"undefined"==typeof this.modes[t])throw new Exception("Layer placement("+t+") not allowed for the container",this.layer);if(this.current!=this.modes[t]){var n;this.current&&(this.modes[t].preActivation(this.current),n=this.current.type,i=this.current.deActivated(this.modes[t])),this.current=this.modes[t],this.layer.layer.attr("data-pm",this.current.type),this.current.activated(e),this.layer.$.triggerHandler("placementChanged",[this.current.type,n])}return i},n.prototype.doAction=function(t){try{return this.current[t].apply(this.current,Array.prototype.slice.call(arguments,1))}catch(e){}},n.prototype.getType=function(){return this.current.type},n.prototype.onResize=function(t){"function"==typeof this.current.onResize&&this.current.onResize(t)},n.prototype.updatePosition=function(){this.current.updatePosition()},n.prototype.getIndex=function(){return this.current.getIndex()},n.prototype.renderIndex=function(t){return this.current.renderIndex(t)},n.prototype.doLinearResize=function(t){this.current.doLinearResize(t)},n.prototype.sync=function(){this.current.sync()},n.prototype.renderModeProperties=function(t){var e=this.layer.getProperty("fontsize");this.layer.adjustFontSize(this.layer.getProperty("adaptivefont"),e,!1),this.current._renderModeProperties(t)},n.prototype["delete"]=function(){this.current["delete"]()},n}),N2Require("PlacementAbstract",["Placement"],[],function(t,e,i){"use strict";function n(t,e,i){this.placement=t,this.layer=e,this.canvasManager=i}return n.prototype.start=function(){},n.prototype.preActivation=function(t){},n.prototype.activated=function(){},n.prototype.deActivated=function(t){return!1},n.prototype.updatePosition=function(){this.layer.group.update()},n.prototype._renderModeProperties=function(t){},n.prototype._hide=function(){},n.prototype._show=function(){},n.prototype.snap=function(){return!1},n.prototype.getIndex=function(){return this.layer.layer.index()},n.prototype.renderIndex=function(t){},n.prototype.doLinearResize=function(t){},n.prototype.sync=function(){},n.prototype["delete"]=function(){},n.prototype.triggerLayerResized=function(t,e){},n.prototype.changeStatus=function(t,e){},n}),N2Require("Item",[],["smartSlider"],function(t,e,i,n){"use strict";function r(e,i,r){this.type===n&&(this.type=e.data("item")),this.needSize=this.constructor.needSize,this.self=this,this.$item=e,this.layer=i,this.itemEditor=r,this.fonts=[],this.styles=[],this.needFill=[],this.values=this.$item.data("itemvalues"),"object"!=typeof this.values&&(this.values=t.parseJSON(this.values)),this.pre="div#"+nextend.smartSlider.frontend.sliderElement.attr("id")+" ",this.defaultValues=r.getItemForm(this.type).values,this.added(),this.$item.data("item",this),this.$item.appendTo(this.layer.getContent()),this.layer.item=this,0===this.$item.children().length&&this.layer.readyDeferred.done(t.proxy(this.reRender,this)),t("<div/>").addClass("ui-helper ui-item-overlay").css("zIndex",89).appendTo(this.$item),this.$item.find("a").on("click",function(t){t.preventDefault()}),t(window).trigger("ItemCreated")}return r.needSize=!1,r.prototype.setSelf=function(t){this.self!=this&&this.self.setSelf(t),this.self=t},r.prototype.getSelf=function(){return this.self!=this&&(this.self=this.self.getSelf()),this.self},r.prototype.changeValue=function(e,i){this==this.itemEditor.activeItem?t("#item_"+this.type+e).data("field").insideChange(i):this.values[e]=i},r.prototype.activate=function(t,e,i){this.itemEditor.setActiveItem(this,e,i)&&(nextend.basicCSS.activate("ss3item"+this.type,this.values,{font:this.fonts,style:this.styles}),this.itemEditor.lastValues[this.type]=this.values)},r.prototype.deActivate=function(){nextend.basicCSS.deActivate()},r.prototype.render=function(e,i){this.layer.layer.triggerHandler("itemRender"),this.$item.html(""),this.parseAll(e),this._render(e),this.itemEditor.lastValues[this.type]=this.values=i,t("<div/>").addClass("ui-helper ui-item-overlay").css("zIndex",89).appendTo(this.$item);var n=this.getName(e);n=n===!1||""==n||"Layer"==n?this.type:n.replace(/[<>]/gi,""),this.layer.rename(n,!1),this.layer.update(),this.$item.find("a").on("click",function(t){t.preventDefault()})},r.prototype._render=function(t){},r.prototype.reRender=function(e){this.values=t.extend({},this.getDefault(),this.values,e),this.render(t.extend({},this.values),this.values)},r.prototype["delete"]=function(){this.$item.trigger("mouseleave"),this.$item.remove(),this.itemEditor.activeItem==this&&(this.itemEditor.activeItem=null)},r.prototype.getHTML=function(e){var i="";return i=e?"["+this.type+' values="'+Base64.encode(JSON.stringify(this.values))+'"]':t('<div class="n2-ss-item n2-ss-item-'+this.type+'"></div>').attr("data-item",this.type).attr("data-itemvalues",JSON.stringify(this.values))},r.prototype.getData=function(){return{type:this.type,values:this.values}},r.prototype.getDefault=function(){return{}},r.prototype.added=function(){},r.prototype.addedFont=function(e,i){var n=t("#item_"+this.type+i);n.length&&(this.fonts.push({mode:e,name:i,field:n.data("field"),def:this.defaultValues[i]}),t.when(nextend.fontManager.addVisualUsage(e,this.values[i],this.pre)).done(t.proxy(function(t){t||this.changeValue(i,"")},this)))},r.prototype.addedStyle=function(e,i){var n=t("#item_"+this.type+i);n.length&&(this.styles.push({mode:e,name:i,field:n.data("field"),def:this.defaultValues[i]}),t.when(nextend.styleManager.addVisualUsage(e,this.values[i],this.pre)).done(t.proxy(function(t){t||this.changeValue(i,"")},this)))},r.prototype.parseAll=function(t){for(var e=0;e<this.fonts.length;e++)t[this.fonts[e].name+"class"]=nextend.fontManager.getClass(t[this.fonts[e].name],this.fonts[e].mode)+" ";for(var e=0;e<this.styles.length;e++)t[this.styles[e].name+"class"]=nextend.styleManager.getClass(t[this.styles[e].name],this.styles[e].mode)+" ";for(var e=0;e<this.needFill.length;e++)"undefined"!=typeof t[this.needFill[e]]&&(t[this.needFill[e]]=nextend.smartSlider.generator.fill(t[this.needFill[e]]+""))},r.prototype.getName=function(t){return"Layer"},r.prototype.resizeLayerToImage=function(e){var n=this.layer;t("<img/>").attr("src",e).on("load",function(){var t=i.frontend.dimensions.slide,e=this.width,r=this.height,s=t.width,o=t.height;e>0&&r>0&&(e>s&&(r=r*s/e,e=s),r>o&&(e=e*o/r,r=o),nextend.smartSlider.history.off(),n.setProperty("width",e),n.setProperty("height",r),nextend.smartSlider.history.on())})},r.prototype.fitLayer=function(t){return!1},r}),N2Require("ItemManager",[],["smartSlider"],function(t,e,i,n){"use strict";function r(e,n){this.suppressChange=!1,this.activeItemOriginalData=null,this.canvasManager=e,this.lastValues={},this.startItems(),this.forms={},this.activeForm=!1,n.isUploadDisabled||i.frontend.sliderElement.fileupload({url:n.uploadUrl,pasteZone:!1,dropZone:i.frontend.sliderElement,dataType:"json",paramName:"image",add:function(t,e){e.formData={path:"/"+n.uploadDir},e.submit()},done:t.proxy(function(t,e){var i=e.result;if(i.data&&i.data.name){var n=this.createLayerItem(!1,{item:"image"});n.reRender({image:i.data.url}),n.activate(null,null,!0)}else NextendAjaxHelper.notification(i)},this),fail:function(t,e){NextendAjaxHelper.notification(e.jqXHR.responseJSON)},start:function(){NextendAjaxHelper.startLoading()},stop:function(){setTimeout(function(){NextendAjaxHelper.stopLoading()},100)}})}return r.prototype.setActiveItem=function(e,i,n){if(e!=this.activeItem||n){this.activeItemOriginalData=null;var r=e.type;this.activeForm&&this.activeForm.form.css("display","none"),this.activeItem&&this.activeItem.deActivate(),this.activeForm=this.getItemForm(r);var s=t.extend({},this.activeForm.values,e.values);this.activeItem=e,this.suppressChange=!0;for(var o in s){var a=t("#item_"+r+o).data("field");a&&a.insideChange(s[o])}return this.suppressChange=!1,this.activeForm.form.css("display","block"),this.focusFirst(i),!0}return!1},r.prototype.focusFirst=function(t){var e=this.activeForm.fields.eq(0).data("field");nextend.smartSlider.generator.isDynamicSlide()&&e.connectedField&&e.connectedField instanceof N2Classes.FormElementImage||this.activeForm.fields.eq(0).data("field").focus("undefined"!=typeof t&&t)},r.prototype.startItems=function(){t(".n2-ss-core-item").nextendCanvasItem({canvasUIManager:this.canvasManager.mainContainer.canvasUIManager,distance:5,$layer:function(){return this.element.clone()},onCreate:t.proxy(function(t,e,n,r){switch(n.layer.type){case"content":case"col":i.history.startBatch();var s=this.createLayerItem(n.layer,e.$layer.data(),"click");i.history.addControl("skipForwardUndos"),n.layer.container.insertLayerAt(s.layer,r),s.layer.changeGroup(!1,n.layer),i.history.endBatch();break;case"row":var o=n.layer.createCol();n.layer.moveCol(o.getIndex(),r),i.history.startBatch();var s=this.createLayerItem(o,e.$layer.data(),"click");i.history.addControl("skipForwardUndos"),o.container.insertLayerAt(s.layer,0),s.layer.changeGroup(!1,o),i.history.endBatch();break;default:var a=nextend.smartSlider.$currentSlideElement.offset(),s=this.createLayerItem(this.canvasManager.mainContainer,e.$layer.data(),"click");s.layer.placement.current.setPosition(t.pageX-a.left-20,t.pageY-a.top-20)}},this),start:function(){t("#n2-ss-add-sidebar").removeClass("n2-active")}}).on("click",t.proxy(function(e){this.createLayerItem(this.canvasManager.mainContainer.getActiveGroup(),t(e.currentTarget).data(),"click")},this)),t("[data-itemshortcut]").on({click:t.proxy(function(e){e.preventDefault(),t('.n2-ss-core-item[data-item="'+t(e.currentTarget).data("itemshortcut")+'"]').trigger("click")},this),mousedown:t.proxy(function(e){t('.n2-ss-core-item[data-item="'+t(e.currentTarget).data("itemshortcut")+'"]').trigger(e)},this)}),t("[data-structureshortcut]").on({click:t.proxy(function(e){e.preventDefault(),t(".n2-ss-add-layer-button").trigger("click"),t("#n2-ss-layers-switcher > .n2-labels .n2-td").eq(1).trigger("click")},this),mousedown:t.proxy(function(e){t('.n2-ss-core-item[data-type="'+t(e.currentTarget).data("structureshortcut")+'"]').trigger(e)},this)})},r.prototype.createLayerItem=function(n,r,s,o){n=n||this.canvasManager.mainContainer.getActiveGroup();var a=r.item;if("structure"==a){var l=new e.Row(this.canvasManager,n,{});return l.create(r.type),l.hightlightStructure(),{layer:l}}var h=this.getItemForm(a),d=t("<div></div>").attr("data-item",a).data("itemvalues",t.extend(!0,{},h.values,this.getLastValues(a))).addClass("n2-ss-item n2-ss-item-"+a),l=this._createLayer(d,n,t.extend(t(".n2-ss-core-item-"+a).data("layerproperties"),o));return s&&"click"==s?setTimeout(function(){l.layer.trigger("mousedown",["create"]).trigger("mouseup",["create"]).trigger("click",["create"])},500):l.activate(),i.layerWindow.switchTab("item"),i.history.addSimple(this,this.historyDelete,this.historyCreate,[n,l,r]),l.item},r.prototype.getLastValues=function(t){return this.lastValues[t]!==n?this.lastValues[t]:{}},r.prototype.getItemClass=function(t){var i="Item"+t.capitalize();return"undefined"==typeof e[i]?"Item":i},r.prototype._createLayer=function(t,i,n){var r=this.canvasManager.layerOptions.layerFeatures.layerDefault;for(var s in r)null!==r[s]&&(n[s]=r[s]);var o=new e.Layer(this.canvasManager,i,n);return o.create(function(e){return e._createLayer().append(t)}),o},r.prototype.getItemForm=function(e){if(this.forms[e]===n){var i=t("#smartslider-slide-toolbox-item-type-"+e),r={form:i,values:i.data("itemvalues"),fields:i.find('[name^="item_'+e+'"]'),fieldNameRegexp:new RegExp("item_"+e+"\\[(.*?)\\]","")};r.fields.on({nextendChange:t.proxy(this.updateCurrentItem,this),keydown:t.proxy(this.updateCurrentItemDeBounced,this)}),this.forms[e]=r}return this.forms[e]},r.prototype.updateCurrentItem=function(e){if(!this.suppressChange){null===this.activeItemOriginalData&&(this.activeItemOriginalData=t.extend({},this.activeItem.values));var n={},r={};if(this.activeForm.fields.each(t.proxy(function(e,i){var i=t(i),s=i.attr("name").match(this.activeForm.fieldNameRegexp)[1];r[s]=n[s]=i.val()},this)),e&&"nextendChange"==e.type){var s=i.history.addValue(this,this.historyUpdateCurrentItem,[this.activeItem]);s&&s.setValues(this.activeItemOriginalData,t.extend({},r)),this.activeItemOriginalData=null}this.activeItem.render(t.extend({},this.activeItem.getDefault(),n),r)}},r.prototype.historyUpdateCurrentItem=function(e,i){var n=i.getSelf();n.reRender(t.extend(!0,{},e)),n.values=e,this.activeItem==n&&n.activate(null,null,!0)},r.prototype.updateCurrentItemDeBounced=NextendDeBounce(function(t){this.updateCurrentItem(t)},100),r.prototype.historyDelete=function(t,e){e.getSelf()["delete"]()},r.prototype.historyCreate=function(t,e,i){var n=this.createLayerItem(t.getSelf(),i);e.setSelf(n.layer)},r.prototype.historyCreateStructure=function(t,e,i){var n=this.createLayerItem(t.getSelf(),i);e.setSelf(n.layer)},r.prototype.getSelf=function(){return this},r}),N2Require("PluginActivatable",[],[],function(t,e,i){"use strict";function n(){this.isActive=!1,this.preventActivation=!1}return n.prototype.activate=function(t,e,i){return this.preventActivation?!1:(document.activeElement&&document.activeElement.blur(),t&&(t.ctrlKey||t.metaKey)&&this.canvasManager.mainContainer.getSelectedLayer()?!this.select():t&&3==t.which&&this.canvasManager.selectMode?!1:(i||this.canvasManager.exitSelectMode(),t&&this.positionSidebar(),this.canvasManager.mainContainer.getSelectedLayer()!==this&&(this.layerRow.addClass("n2-active"),this.layer.addClass("n2-active"),this.layer.triggerHandler("n2-ss-activate"),this.canvasManager.changeActiveLayer(this,i),nextend.activeLayer=this.layer,this.canvasManager.ui.onActivateLayer(this)),this.isActive=!0,!0))},n.prototype.deActivate=function(){this.isActive=!1,this.layer===i&&console.error(),this.layer.removeClass("n2-active"),this.layerRow.removeClass("n2-active"),this.layer.triggerHandler("n2-ss-deactivate")},n}),N2Require("PluginEditableName",[],[],function(t,e,i){"use strict";function n(){}var r=300,s=null;return n.prototype.addProperties=function(t){this.createProperty("name",this.label,t),this.createProperty("nameSynced",1,t)},n.prototype.makeNameEditable=function(){this.layerTitleSpan.on({mouseup:t.proxy(function(e){s?(clearTimeout(s),s=null,this.editName()):(this.activate(e),s=setTimeout(t.proxy(function(){s=null},this),r))},this)})},n.prototype.editName=function(){var i=new e.InlineField;i.$input.on({valueChanged:t.proxy(function(t,e){this.rename(e,!0),this.layerTitleSpan.css("display","inline")},this),cancel:t.proxy(function(){this.layerTitleSpan.css("display","inline")},this)}),this.layerTitleSpan.css("display","none"),i.injectNode(this.layerTitle,this.property.name)},n.prototype.rename=function(t,e){if(this.property.nameSynced||e){if(e&&(this.property.nameSynced=0),""==t){if(e)return this.property.nameSynced=1,this.item.reRender(),!1;t="Layer #"+(this.group.getLayerCount()+1)}t=t.substr(0,35),this.property.name!=t&&(this.property.name=t,this.layerTitleSpan.html(t),this.$.trigger("layerRenamed",t))}},n}),N2Require("PluginShowOn",[],["smartSlider"],function(t,e,i,n){"use strict";function r(){}return r.prototype.addProperties=function(t){this.showsOnCurrent=!0,this.createProperty("generatorvisible","",t),this.createProperty("desktopPortrait",1,t),this.createProperty("desktopLandscape",1,t),this.createProperty("tabletPortrait",1,t),this.createProperty("tabletLandscape",1,t),this.createProperty("mobilePortrait",1,t),this.createProperty("mobileLandscape",1,t)},r.prototype._hide=function(){this.layer.css("display","none"),this.showsOnCurrent=!1,this.update()},r.prototype._show=function(){parseInt(this.property[this.canvasManager.getMode()])&&(this.layer.css("display",""),this.showsOnCurrent=!0),this.update()},r.prototype._syncdesktopPortrait=function(){var t=this.getProperty("desktopPortrait");this.__syncShowOnDevice("desktopPortrait",t)},r.prototype._syncdesktopLandscape=function(){var t=this.getProperty("desktopLandscape");this.__syncShowOnDevice("desktopLandscape",t)},r.prototype._synctabletPortrait=function(){var t=this.getProperty("tabletPortrait");this.__syncShowOnDevice("tabletPortrait",t)},r.prototype._synctabletLandscape=function(){var t=this.getProperty("tabletLandscape");this.__syncShowOnDevice("tabletLandscape",t)},r.prototype._syncmobilePortrait=function(){var t=this.getProperty("mobilePortrait");this.__syncShowOnDevice("mobilePortrait",t)},r.prototype._syncmobileLandscape=function(){var t=this.getProperty("mobileLandscape");this.__syncShowOnDevice("mobileLandscape",t)},r.prototype.__syncShowOnDevice=function(t,e){if(this.getMode()==t){var e=parseInt(e);e?this._show():this._hide(),this.layer.triggerHandler("LayerShowChange",[t,e]),this.placement.doAction("triggerLayerResized")}},r}),N2Require("Col",["ContentAbstract"],["smartSlider"],function(t,e,i,n){"use strict";function r(t,i,n){this.label="Col",this.type="col",this.innerContainer="> .n2-ss-layer-col",e.ContentAbstract.prototype.constructor.call(this,t,i,n),this.placement.allow("default")}return r.prototype=Object.create(e.ContentAbstract.prototype),r.prototype.constructor=r,r.prototype._createLayer=function(){return t('<div class="n2-ss-layer"><div class="n2-ss-layer-content n2-ss-layer-col"></div></div>').attr("data-type",this.type)},r.prototype.addProperties=function(t){e.ContentAbstract.prototype.addProperties.call(this,t),this.createProperty("colwidth","1",t),this.createProperty("link","#|*|_self",t),this.createProperty("borderradius",0,t),this.createProperty("boxshadow","0|*|0|*|0|*|0|*|00000080",t),this.createProperty("borderwidth","1|*|1|*|1|*|1",t),this.createProperty("borderstyle","none",t),this.createProperty("bordercolor","ffffffff",t),this.createDeviceProperty("order",{desktopPortrait:0},t)},r.prototype.create=function(){e.ContentAbstract.prototype.create.call(this),this._syncorder(),this._syncborder(),this._syncborderradius(),this._syncboxshadow(),this._onReady()},r.prototype.load=function(t){e.ContentAbstract.prototype.load.call(this,t),this._syncorder(),this._syncborder(),this._syncborderradius(),this._syncboxshadow(),this._onReady();var i=t.data("rowcolumns")+"";if(i!=n&&"resolved"==this.group.readyDeferred.state()){for(var r=i.split("+"),s=0;s<r.length;s++)r[s]=new Fraction(r[s]);this.group.setColsWidth(r)}},r.prototype.createRow=function(){this.$content=this.layer.find(".n2-ss-layer-content:first"),this.container=new e.LayerContainer(this,t('<ul class="n2-list n2-h4 n2-list-orderable" />'),"normal","> .n2-ss-layer",["row","layer"]),this.container.setLayerContainerElement(this.$content);var i=t('<div class="n2-button n2-button-icon n2-button-m n2-button-m-narrow" data-n2tip="'+n2_("Delete layer")+'"><i class="n2-i n2-i-delete n2-i-grey-opacity"></i></div>').on("click",t.proxy(this["delete"],this)),n=t('<div class="n2-button n2-button-icon n2-button-m n2-button-m-narrow" data-n2tip="'+n2_("Duplicate layer")+'"><i class="n2-i n2-i-duplicate n2-i-grey-opacity"></i></div>').on("click",t.proxy(function(){this.duplicate(!0,!1)},this));this._createLayerListRow([t('<div class="n2-actions"></div>').append(n).append(i)]).addClass("n2-ss-layer-content-row"),this.openerElement=t('<a href="#" class="n2-ss-layer-icon n2-button n2-button-icon n2-button-m"><i class="n2-i n2-i-col"></i></a>').insertBefore(this.layerTitleSpan).on("click",t.proxy(this.switchOpened,this)),this.container.$ul.appendTo(this.layerRow),this.readyDeferred.done(t.proxy(this._syncopened,this))},r.prototype._start=function(t){e.ContentAbstract.prototype._start.call(this,t),t&&this.highlight(2e3)},r.prototype.getRealOrder=function(){var t=this.getProperty("order");return 0==t?10:t},r.prototype._syncorder=function(){var t=this.getProperty("order");0==t?this.layer.css("order",""):this.layer.css("order",t),this.group.refreshUI()},r.prototype._synccolwidth=function(){this.layer.css("width",100*new Fraction(this.getProperty("colwidth")).valueOf()+"%"),this.group.refreshUI()},r.prototype._synclink=function(){},r.prototype._syncborderradius=function(){this.$content.css("border-radius",this.getProperty("borderradius")+"px")},r.prototype._syncborderwidth=r.prototype._syncbordercolor=r.prototype._syncborderstyle=function(){this._syncborder()},r.prototype._syncborder=function(){var t=this.getProperty("borderstyle");if("none"!=t){this.$content.css("border-color",N2Color.hex2rgbaCSS(this.getProperty("bordercolor"))),this.$content.css("border-style",this.getProperty("borderstyle"));var e=this.getProperty("borderwidth").split("|*|"),i="px";this.$content.css("border-width",e.join(i+" ")+i)}else this.$content.css("border","");this.update()},r.prototype._syncboxshadow=function(){var t=this.getProperty("boxshadow").split("|*|");0==t[0]&&0==t[1]&&0==t[2]&&0==t[3]||0==N2Color.hex2alpha(t[4])?this.$content.css("box-shadow",""):this.$content.css("box-shadow",t[0]+"px "+t[1]+"px "+t[2]+"px "+t[3]+"px "+N2Color.hex2rgbaCSS(t[4]))},r.prototype["delete"]=function(){this.group.container.getLayerCount()>1?this._delete():this.group["delete"]()},r.prototype.getHTML=function(t){var i=e.ComponentAbstract.prototype.getHTML.call(this,t);return i.attr("data-rowcolumns",this.group.getColumns()),i},r.prototype.renderModeProperties=function(t){this._syncorder(),e.ContentAbstract.prototype.renderModeProperties.call(this,t)},r.prototype.update=function(){this.group._syncwrapafter(),e.ComponentAbstract.prototype.update.call(this)},r});var dependencies=["LayerDataStorage","PluginEditableName"];N2Require("ComponentAbstract",dependencies,["smartSlider"],function(t,e,i,n){"use strict";function r(i,n,o){this.wraps={},this.counter=s++,
7
- window.layers[this.counter]=this,this.self=this,this.originalProperties=o||{},e.LayerDataStorage.prototype.constructor.call(this),this.readyDeferred=t.Deferred(),this.readyDeferred.done(t.proxy(this.onReady,this)),this.isDeleteStarted=!1,this.isDeleted=!1,this._lastClasses=!1,this.$=t(this),this.proxyRefreshBaseSize=t.proxy(this.refreshBaseSize,this),this.status=r.STATUS.UNDEFINED,this.canvasManager=i,this.group=n,e.PluginActivatable.prototype.constructor.call(this),this.placement=new e.Placement(this),this.readyDeferred.done(t.proxy(this.addUILabels,this))}var s=0;window.layers=[],r.STATUS={UNDEFINED:0,NORMAL:1,LOCKED:2,HIDDEN:3},r.STATUS_INV={0:"UNDEFINED",1:"NORMAL",2:"LOCKED",3:"HIDDEN"};for(var o in e.PluginActivatable.prototype)r.prototype[o]=e.PluginActivatable.prototype[o];for(var o in e.LayerDataStorage.prototype)r.prototype[o]=e.LayerDataStorage.prototype[o];for(var o in e.PluginEditableName.prototype)r.prototype[o]=e.PluginEditableName.prototype[o];for(var o in e.PluginShowOn.prototype)r.prototype[o]=e.PluginShowOn.prototype[o];return r.prototype.addUILabels=function(){this.markTimer=null,this.uiLabel=t('<div class="n2-ss-layer-ui-label-container"><div class="n2-ss-layer-ui-label n2-ss-layer-ui-label-self">'+this.getUILabel()+"</div></div>").appendTo(this.layer),nextend.tooltip.addElement(t('<div class="n2-ss-layer-ui-label n2-ss-layer-ui-label-up n2-ss-layer-ui-label-action"><i class="n2-i n2-i-uplevel"/></div>').on({mousedown:function(t){t.stopPropagation()},click:t.proxy(function(t){this.up(t)},this)}).appendTo(this.uiLabel),"Select parent"),t('<div class="n2-ss-layer-ui-label n2-ss-layer-ui-label-action"><i class="n2-i n2-i-mini-duplicate"/></div>').on({mousedown:function(t){t.stopPropagation()},click:t.proxy(function(){this.duplicate()},this)}).appendTo(this.uiLabel),t('<div class="n2-ss-layer-ui-label n2-ss-layer-ui-label-action"><i class="n2-i n2-i-mini-trash"/></div>').on({mousedown:function(t){t.stopPropagation()},click:t.proxy(function(){this["delete"]()},this)}).appendTo(this.uiLabel)},r.prototype.getUILabel=function(){return this.label},r.prototype.up=function(t){t.stopImmediatePropagation(),this.group.activate(t)},r.prototype.addProperties=function(t){this.createProperty("id",null,t,this),this.createProperty("class","",t),this.createProperty("crop","visible",t),this.createProperty("rotation",0,t),this.createProperty("parallax",0,t),this.createProperty("adaptivefont",0,t),this.createDeviceProperty("fontsize",{desktopPortrait:100},t),e.PluginShowOn.prototype.addProperties.call(this,t),e.PluginEditableName.prototype.addProperties.call(this,t)},r.prototype.getRootElement=function(){return this.layer},r.prototype.create=function(t,e){e=e||!1,e||this.addProperties(!1),"function"==typeof t?this.layer=t.call(null,this):this.layer=this._createLayer(),this.layer.addClass("n2-ss-layer-under-creation"),e&&this.addProperties(this.layer),this.layer.data("layerObject",this),this.layer.triggerHandler("layerStarted",[this]),this.group.container.insert(this),this.group.onChildCountChange(),this.$.triggerHandler("create"),this._start(!0)},r.prototype.load=function(t){this.addProperties(t),this.layer=t.data("layerObject",this),this.layer.triggerHandler("layerStarted",[this]),this.$.triggerHandler("load"),this._start(!1);var e=t.data("status");null!==e&&"undefined"!=typeof e?this.changeStatus(e):this.changeStatus(r.STATUS.NORMAL)},r.prototype._start=function(e){this.createRow();var i=this.layer.find("> .n2-ss-layer-mask");i.length&&(this.wraps.mask=i),this._synccrop(),this._syncrotation(),this.placement.start(),this.placement.setMode(this.group.container.allowedPlacementMode,this.originalProperties),this.setGroup(this.group),this.canvasManager.$.triggerHandler("layerCreated",this),e&&(this.refreshBaseSize(),this.$.triggerHandler("created")),setTimeout(t.proxy(function(){this.isDeleted||(this.placement.onResize(!0),this.layer.css("visibility",""),this.layer.removeClass("n2-ss-layer-under-creation"))},this),300)},r.prototype._onReady=function(){this.originalProperties={},this.readyDeferred.resolve(),this.layer.on({mouseover:t.proxy(this.markOver,this),mouseout:t.proxy(this.markOut,this)})},r.prototype.isReady=function(){return"resolved"==this.readyDeferred.state()},r.prototype.getName=function(){return this.property.name},r.prototype.setGroup=function(t){this.group.$.off("baseSizeUpdated",this.proxyRefreshBaseSize),this.group=t,this.placement.setMode(t.container.allowedPlacementMode),t.container.syncLayerRow(this),this.isReady()&&this.refreshBaseSize(),this.group.$.on("baseSizeUpdated",this.proxyRefreshBaseSize)},r.prototype.changeGroup=function(t,e){var i=this.group;i.$.off("baseSizeUpdated",this.proxyRefreshBaseSize),this.group=e;var n=this.placement.setMode(e.container.allowedPlacementMode);e.container.syncLayerRow(this),this.refreshBaseSize(),e.$.on("baseSizeUpdated",this.proxyRefreshBaseSize),this.userGroupChange(i,t,n,e,this.getIndex()),i.update()},r.prototype.userGroupChange=function(t,e,n,r,s){if(t==r)this.userIndexChange(e,s);else{var o=i.history.addValue(this,this.historyUserGroupChange,[]);o&&o.setValues({historyGroup:t,index:e,placementData:n},{historyGroup:r,index:s})}},r.prototype.historyUserGroupChange=function(t){var e=this.group,i=t.historyGroup.getSelf(),n=t.index;i.container.insertLayerAt(this,n),this.group.$.off("baseSizeUpdated",this.proxyRefreshBaseSize),this.group=i,t.placementData&&this.layer.data(t.placementData),this.placement.setMode(i.container.allowedPlacementMode),i.container.syncLayerRow(this),this.refreshBaseSize(),this.group.$.on("baseSizeUpdated",this.proxyRefreshBaseSize),i.onChildCountChange(),t.placementData&&this.placement.sync(),e.update()},r.prototype.userIndexChange=function(t,e){var n=i.history.addValue(this,this.historyUserIndexChange);n&&n.setValues(t,e),this.group.container.insertLayerAt(this,e)},r.prototype.historyUserIndexChange=function(t){this.group.container.insertLayerAt(this,t)},r.prototype._createLayerListRow=function(e){return this.layerRow=t('<li class="n2-ss-layerlist-row"></li>').data("layer",this).on({mousedown:t.proxy(nextend.context.setMouseDownArea,nextend.context,"layerRowClicked")}).appendTo(this.group.container.$ul),this.layerTitleSpan=t('<span class="n2-ucf">'+this.property.name+"</span>"),this.makeNameEditable(),this.layerTitle=t('<div class="n2-ss-layer-title"></div>').on({mouseenter:t.proxy(function(){this.canvasManager.highlight(this)},this),mouseleave:t.proxy(function(){this.canvasManager.deHighlight(this)},this)}).append(this.layerTitleSpan).append(e).appendTo(this.layerRow).on({mouseup:t.proxy(function(t){nextend.shouldPreventMouseUp||"DIV"!==t.target.tagName||this.activate(t)},this)}),nextend.tooltip.add(this.layerRow),this.layerRow.nextendLayerListItem({UIManager:this.canvasManager.mainContainer.layerListUIManager,layer:this,$item:this.layerRow}),this.layerRow},r.prototype.select=function(t){return this.canvasManager.selectLayer(this,!0)},r.prototype.update=function(){this.readyDeferred.done(t.proxy(this.placement.updatePositionThrottled,this.placement))},r.prototype.updateThrottled=function(){this.placement.updatePositionThrottled()},r.prototype.positionSidebar=function(){this.canvasManager.layerWindow.show(this,this.layer)},r.prototype.showEditor=function(){this.canvasManager.layerWindow._show()},r.prototype.highlight=function(e){e=e||2e3,this.isHighlighted&&(clearTimeout(this.isHighlighted),this.isHighlighted=!1),this.layer.addClass("n2-highlight"),this.isHighlighted=setTimeout(t.proxy(function(){this.layer.removeClass("n2-highlight")},this),e)},r.prototype.setPropertydesktopPortrait=r.prototype.setPropertydesktopLandscape=r.prototype.setPropertytabletPortrait=r.prototype.setPropertytabletLandscape=r.prototype.setPropertymobilePortrait=r.prototype.setPropertymobileLandscape=function(t,e,i){this._setProperty(t,parseInt(e),i)},r.prototype.getHTML=function(t){var i=this._createLayer();for(var r in this.property)"width"!=r&&"height"!=r&&"left"!=r&&"top"!=r&&i.attr("data-"+r.toLowerCase(),this.property[r]);for(var r in this.deviceProperty)for(var s in this.deviceProperty[r])i.attr("data-"+r.toLowerCase()+s,this.deviceProperty[r][s]);for(var r in this.deviceProperty.desktop)i.css(r,this.deviceProperty.desktop[r]+"px");if(this.container!=n){var o=i;this.innerContainer!=n&&(o=i.find(this.innerContainer)),o.append(this.container.getHTML(t))}var a=this.getProperty("id");return a&&""!=a&&i.attr("id",a),this.status>e.ComponentAbstract.STATUS.NORMAL&&i.attr("data-status",this.status),i},r.prototype.duplicate=function(e){var n=this.getHTML(!1);if("absolute"==this.placement.getType()){var r=n.attr("id");r&&(r=t.fn.uid(),n.attr("id",r),n.attr("data-id",r)),n.attr("data-parentid")?(n.data("desktopportraittop",0),n.data("desktopportraitleft",0)):(n.data("desktopportraittop",n.data("desktopportraittop")+40),n.data("desktopportraitleft",n.data("desktopportraitleft")+40)),n.attr("data-parentid","")}var s=this.canvasManager.insertComponentWithNode(this.group,n,this.getIndex()+1,!1,!0);return this.layerRow.trigger("mouseleave"),e&&s.activate(),i.history.addSimple(this,this.historyDeleteDuplicated,this.historyDuplicate,[s,s.container?s.container.getAllLayers():!1]),s},r.prototype.historyDeleteDuplicated=function(t){t.getSelf()["delete"]()},r.prototype.historyDuplicate=function(t,e){var i=this.duplicate(!1,!1);if(t.setSelf(i),e)for(var n=i.container.getAllLayers(),r=0;r<n.length;r++)e[r].setSelf(n[r])},r.prototype.historyDelete=function(){this["delete"]()},r.prototype.historyRestore=function(t,e,i,n){var r=this.canvasManager.insertComponentWithNode(this.group.getSelf(),t.clone(),i,!1,!0);if(this.setSelf(r),n)for(var s=r.container.getAllLayers(),o=0;o<s.length;o++)n[o].setSelf(s[o])},r.prototype["delete"]=function(){i.positionDisplay.hide(),nextend.tooltip.onLeave(),this._delete()},r.prototype._delete=function(){if(this.isDeleteStarted=!0,this.canvasManager.mainContainer.getSelectedLayer()==this&&this.canvasManager.layerWindow.hide(),this.isHighlighted&&(clearTimeout(this.isHighlighted),this.isHighlighted=!1),i.history.startBatch(),i.history.addSimple(this,this.historyRestore,this.historyDelete,[this.getHTML(!1),this.group,this.getIndex(),this.container?this.container.getAllLayers():!1]),this.deActivate(),this.container!=n){i.history.off();for(var t=this.container.getSortedLayers(),e=0;e<t.length;e++)t[e]._delete();i.history.on()}i.history.endBatch(),this.item!=n&&this.item["delete"](),this.placement["delete"](),this.layer.trigger("mouseup"),this.isDeleted=!0,this.canvasManager.mainContainer.layerDeleted(this),this.layer.triggerHandler("LayerDeleted"),this.getRootElement().remove(),this.layerRow.remove(),this.group.update(),this.group.$.off("baseSizeUpdated",this.proxyRefreshBaseSize),this.$.trigger("layerDeleted"),this.markTimer&&clearTimeout(this.markTimer),delete this.layer,delete this.itemEditor,this.group.onChildCountChange()},r.prototype.getData=function(i){var n={type:this.type,lastplacement:this.placement.getType()};this.status>e.ComponentAbstract.STATUS.NORMAL&&(n.status=this.status);var r=t.extend({},this.property);for(var s in this.deviceProperty)for(var o in this.deviceProperty[s]){delete r[o];var a=this.deviceProperty[s][o];if("undefined"!=typeof a){switch(o){case"width":case"height":this.isDimensionPropertyAccepted(a)||(a=parseFloat(a));break;case"fontsize":case"left":case"top":case"gutter":case"wrap":a=parseFloat(a)}n[s.toLowerCase()+o]=a}}for(var l in r)n[l.toLowerCase()]=r[l];return n},r.prototype.onChildCountChange=function(){},r.prototype.getDataWithChildren=function(e,i){return-1==t.inArray(this,i)&&(i.push(this),e.push(this.getData({layersIncluded:!0,itemsIncluded:!0})),this.layer.triggerHandler("LayerGetDataWithChildren",[e,i])),e},r.prototype.markOver=function(t){this.layer.addClass("n2-ss-mouse-over"),t.stopPropagation(),this.group.markEnter(),this.markTimer&&clearTimeout(this.markTimer),this.layer.addClass("n2-ss-mouse-over-delayed"),this.uiLabel.removeClass("invisible")},r.prototype.markOut=function(e){this.layer.removeClass("n2-ss-mouse-over"),e&&e.stopPropagation(),this.group.markLeave(),this.markTimer&&clearTimeout(this.markTimer),this.isActive||this.uiLabel.addClass("invisible"),this.markTimer=setTimeout(t.proxy(function(){this.layer.removeClass("n2-ss-mouse-over-delayed"),this.uiLabel.removeClass("invisible"),this.markTimer=null},this),10)},r.prototype.markEnter=function(t){this.layer.addClass("n2-ss-mouse-hover"),this.group.markEnter()},r.prototype.markLeave=function(t){this.layer.removeClass("n2-ss-mouse-hover"),this.group.markLeave()},r.prototype.formSetname=function(t,e){},r.prototype.formSetnameSynced=function(t,e){},r.prototype.formSetdesktopPortrait=function(t,e){t.currentForm.desktopPortrait.data("field").insideChange(e)},r.prototype.formSetdesktopLandscape=function(t,e){t.currentForm.desktopLandscape.data("field").insideChange(e)},r.prototype.formSettabletPortrait=function(t,e){t.currentForm.tabletPortrait.data("field").insideChange(e)},r.prototype.formSettabletLandscape=function(t,e){t.currentForm.tabletLandscape.data("field").insideChange(e)},r.prototype.formSetmobilePortrait=function(t,e){t.currentForm.mobilePortrait.data("field").insideChange(e)},r.prototype.formSetmobileLandscape=function(t,e){t.currentForm.mobileLandscape.data("field").insideChange(e)},r.prototype.sync=function(){if(this._syncid(),this.container)for(var t=this.container.getSortedLayers(),e=0;e<t.length;e++)t[e].sync();this.placement.sync()},r.prototype._syncid=function(){var t=this.getProperty("id");t&&""!=t?this.layer.attr("id",t):this.layer.removeAttr("id")},r.prototype.requestID=function(){var e=this.getProperty("id");return e||(e=t.fn.uid(),this.setProperty("id",e,"layer")),e},r.prototype._syncfontsize=function(){this.adjustFontSize(this.getProperty("adaptivefont"),this.getProperty("fontsize"),!0)},r.prototype._syncadaptivefont=function(){this.adjustFontSize(this.getProperty("adaptivefont"),this.getProperty("fontsize"),!0)},r.prototype.adjustFontSize=function(t,e,i){e=parseInt(e),parseInt(t)?this.layer.css("font-size",16*e/100+"px"):100!=e?this.layer.css("font-size",e+"%"):this.layer.css("font-size",""),this.refreshBaseSize(),i&&this.update()},r.prototype.refreshBaseSize=function(){var t=this.getFontSize();this.isAdaptiveFont()?this.baseSize=16*t/100:this.baseSize=this.group.baseSize*t/100,this.$.triggerHandler("baseSizeUpdated")},r.prototype.getFontSize=function(){return parseInt(this.getProperty("fontsize"))},r.prototype.isAdaptiveFont=function(){return parseInt(this.getProperty("adaptivefont"))},r.prototype._synccrop=function(){var t=this.getProperty("crop");"auto"==t&&(t="hidden"),"mask"==t?(t="hidden",this.addWrap("mask","<div class='n2-ss-layer-mask'></div>")):(this.removeWrap("mask"),this.layer.data("animatableselector",null)),this.layer.css("overflow",t)},r.prototype._syncrotation=function(){var t=parseFloat(this.getProperty("rotation"));if(t/360!=0){var e=this.addWrap("rotation","<div class='n2-ss-layer-rotation'></div>");NextendTween.set(e[0],{rotationZ:t})}else this.removeWrap("rotation")},r.prototype.addWrap=function(e,i){if(this.wraps[e]===n){var r=t(i);switch(this.wraps[e]=r,e){case"mask":r.appendTo(this.layer),this.wraps.rotation!==n?r.append(this.wraps.rotation):r.append(this.getContents()),this.layer.data("animatableselector",".n2-ss-layer-mask:first");break;case"rotation":this.wraps.mask!==n?r.appendTo(this.wraps.mask):r.appendTo(this.layer),r.append(this.getContents())}}return this.wraps[e]},r.prototype.removeWrap=function(t){if(this.wraps[t]!==n){switch(t){case"mask":this.wraps.rotation!==n?this.layer.append(this.wraps.rotation):this.layer.append(this.getContents());break;case"rotation":this.wraps.mask!==n?this.wraps.mask.append(this.getContents()):this.layer.append(this.getContents())}this.wraps[t].remove(),delete this.wraps[t]}},r.prototype.getContents=function(){return!1},r.prototype._syncclass=function(){this._lastClasses!==!1&&this.layer.removeClass(this._lastClasses);var t=this.getProperty("class");t&&""!=t?(this.layer.addClass(t),this._lastClasses=t):this._lastClasses=!1},r.prototype._syncparallax=function(){},r.prototype._syncgeneratorvisible=function(){},r.prototype._syncmouseenter=r.prototype._syncclick=r.prototype._syncmouseleave=r.prototype._syncplay=r.prototype._syncpause=r.prototype._syncstop=function(){},r.prototype.renderModeProperties=function(t){e.LayerDataStorage.prototype.renderModeProperties.call(this),this.placement.renderModeProperties(t)},r.prototype.getIndex=function(){return this.group.container.getLayerIndex(this.layer)},r.prototype.toString=function(){return this.type+" #"+this.counter},r.prototype.setSelf=function(t){t===n&&console.error(t),this.self!=this&&this.self.setSelf(t),this.self=t},r.prototype.getSelf=function(){return this.self!==this&&(this.self=this.self.getSelf()),this.self},r.prototype.historyStoreOnPlacement=function(){var t=Array.prototype.slice.call(arguments);t.splice(1,1),this.placement.current[arguments[1]].apply(this.placement.current,t)},r.prototype.getDroppable=function(){return!1},r.prototype.onCanvasUpdate=function(t,e,i){if(this.group==e)t!=i&&this.userIndexChange(t,i);else{var n;if(this.canvasManager.isCol(this.group))for(n=this;n&&(!n.placement||"absolute"!==n.placement.getType());)n=n.group;this.changeGroup(t,e),e.onChildCountChange();for(var r=this;r&&(!r.placement||"absolute"!==r.placement.getType());)r=r.group;n&&n!=r&&n.placement.updatePosition(),r&&r.placement.updatePosition()}},r.prototype.setStatusNormal=function(){this.changeStatus(r.STATUS.NORMAL)},r.prototype.changeStatus=function(t){var e=this.status;switch(t==this.status&&(t=r.STATUS.NORMAL),this.status){case r.STATUS.HIDDEN:this.getRootElement().removeAttr("data-visibility"),this.layerRow.removeClass("n2-ss-layer-status-hidden");break;case r.STATUS.LOCKED:this.layer.removeClass("n2-ss-layer-locked"),this.layerRow.removeClass("n2-ss-layer-status-locked")}switch(this.status=t,this.status){case r.STATUS.HIDDEN:this.getRootElement().attr("data-visibility","hidden"),this.layerRow.addClass("n2-ss-layer-status-hidden");break;case r.STATUS.LOCKED:this.layer.addClass("n2-ss-layer-locked"),this.layerRow.addClass("n2-ss-layer-status-locked")}this.placement.current.changeStatus(e,this.status)},r.prototype.moveX=function(t){"absolute"==this.placement.getType()&&this.placement.current.moveX(t)},r.prototype.moveY=function(t){"absolute"==this.placement.getType()&&this.placement.current.moveY(t)},r}),N2Require("Content",["ContentAbstract"],["smartSlider"],function(t,e,i,n){"use strict";function r(i,n,r){this.label=n2_("Content"),this.type="content",this.innerContainer="> .n2-ss-layer-content",this._defaults=t.extend({verticalalign:"center"},this._defaults),e.ContentAbstract.prototype.constructor.call(this,i,n,r),this.placement.allow("content"),i.setMainContent(this)}return r.prototype=Object.create(e.ContentAbstract.prototype),r.prototype.constructor=r,r.prototype.addUILabels=function(){this.markTimer=null,this.uiLabel=t('<div class="n2-ss-layer-ui-label-container"><div class="n2-ss-layer-ui-label n2-ss-layer-ui-label-self">'+this.getUILabel()+"</div></div>").appendTo(this.layer)},r.prototype.addProperties=function(t){e.ContentAbstract.prototype.addProperties.call(this,t),this.createDeviceProperty("selfalign",{desktopPortrait:"inherit"},t)},r.prototype.getRootElement=function(){return this.$outerSection},r.prototype.getBackgroundElement=function(){return this.$outerSection},r.prototype._createLayer=function(){return t('<div class="n2-ss-layer n2-ss-content-empty"><div class="n2-ss-section-main-content n2-ss-layer-content"></div></div>').attr("data-type",this.type)},r.prototype.createRow=function(){this.$outerSection=this.layer.parent(),this.$outerSection.hasClass("n2-ss-section-outer")||(this.$outerSection=t('<div class="n2-ss-section-outer"></div>').insertAfter(this.layer).append(this.layer)),this.$outerSection.data("layerObject",this),this.$content=this.layer.find(".n2-ss-layer-content:first");var i=t('<div class="n2-ss-layer-status"></div>'),n=t('<div class="n2-button n2-button-icon n2-button-m n2-button-m-narrow" data-n2tip="'+n2_("Delete layer")+'"><i class="n2-i n2-i-delete n2-i-grey-opacity"></i></div>').on("click",t.proxy(this["delete"],this));this.container=new e.LayerContainer(this,t('<ul class="n2-list n2-h4 n2-list-orderable" />'),"normal","> .n2-ss-layer",["row","layer"]),this.container.setLayerContainerElement(this.$content),t('<a href="#" class="n2-ss-sc-hide n2-button n2-button-icon n2-button-m"><i class="n2-i n2-i-eye"></i></a>').appendTo(i).on("click",t.proxy(function(t){t.preventDefault(),this.status==e.ComponentAbstract.STATUS.HIDDEN?this.setStatusNormal():this.changeStatus(e.ComponentAbstract.STATUS.HIDDEN)},this)),this._createLayerListRow([t('<div class="n2-actions-left"></div>').append(i),t('<div class="n2-actions"></div>').append(n)]).addClass("n2-ss-layer-content-row"),this.openerElement=t('<a href="#" class="n2-ss-layer-icon n2-button n2-button-icon n2-button-m"><i class="n2-i n2-i-col"></i></a>').insertBefore(this.layerTitleSpan).on("click",t.proxy(this.switchOpened,this)),this.container.$ul.appendTo(this.layerRow),this.readyDeferred.done(t.proxy(this._syncopened,this))},r.prototype.create=function(){this.originalProperties.adaptivefont=1,e.ContentAbstract.prototype.create.call(this),this._syncselfalign(),this._onReady()},r.prototype.load=function(t){e.ContentAbstract.prototype.load.call(this,t),this._syncselfalign(),this._onReady()},r.prototype._onReady=function(){e.ContentAbstract.prototype._onReady.call(this),this.startUISizing()},r.prototype.startUISizing=function(){this.layer.nextendNormalSizing({start:t.proxy(function(t,e){i.positionDisplay.show("NormalSizing"),"maxwidth"==e&&this.layer.addClass("n2-ss-has-maxwidth")},this),resizeMaxWidth:t.proxy(function(t,e){i.positionDisplay.update(t,"NormalSizing","Max-width: "+(0==e.value?"none":e.value+"px"))},this),stopMaxWidth:t.proxy(function(t,e){i.positionDisplay.hide("NormalSizing"),this.setProperty("maxwidth",e.value)},this)})},r.prototype["delete"]=function(){for(var t=this.container.getSortedLayers(),e=0;e<t.length;e++)t[e]["delete"]()},r.prototype.remove=function(){this._delete()},r.prototype.update=function(){nextend.smartSlider.frontend.responsive.doVerticalResize()},r.prototype.onChildCountChange=function(){var t=this.container.getSortedLayers();this.layer.toggleClass("n2-ss-content-empty",0==t.length)},r.prototype.renderModeProperties=function(t){e.ContentAbstract.prototype.renderModeProperties.call(this,t),this._syncselfalign()},r.prototype._syncselfalign=function(){this.layer.attr("data-cssselfalign",this.getProperty("selfalign"))},r.prototype.duplicate=function(t){console.error("Content can not be duplicated!")},r}),N2Require("ContentAbstract",["LayerContainer","ComponentAbstract"],["smartSlider"],function(t,e,i,n){"use strict";function r(i,n,r){this._defaults=t.extend({verticalalign:"flex-start"},this._defaults),this._syncbgThrottled=NextendThrottle(this._syncbgThrottled,50),e.ComponentAbstract.prototype.constructor.call(this,i,n,r)}return r.prototype=Object.create(e.ComponentAbstract.prototype),r.prototype.constructor=r,r.prototype.addProperties=function(t){this.createProperty("opened",1,t,this),e.ComponentAbstract.prototype.addProperties.call(this,t),this.createProperty("bgimage","",t),this.createProperty("bgimagex",50,t),this.createProperty("bgimagey",50,t),this.createProperty("bgimageparallax",0,t),this.createProperty("bgcolor","00000000",t),this.createProperty("bgcolorgradient","off",t),this.createProperty("bgcolorgradientend","00000000",t),this.createProperty("verticalalign",this._defaults.verticalalign,t),this.createDeviceProperty("maxwidth",{desktopPortrait:0},t),this.createDeviceProperty("inneralign",{desktopPortrait:"inherit"},t),this.createDeviceProperty("padding",{desktopPortrait:"10|*|10|*|10|*|10|*|px+"},t)},r.prototype.getBackgroundElement=function(){return this.$content},r.prototype.getPaddingElement=function(){return this.$content},r.prototype.create=function(){e.ComponentAbstract.prototype.create.call(this),this.initUI(),this._syncverticalalign(),this._syncmaxwidth(),this._syncpadding(),this._syncinneralign(),this._syncbgThrottled()},r.prototype.load=function(t){e.ComponentAbstract.prototype.load.call(this,t),this.initUI(),this._syncverticalalign(),this._syncmaxwidth(),this._syncpadding(),this._syncinneralign(),this._syncbgThrottled(),this.container.startWithExistingNodes()},r.prototype.initUI=function(){this.layer.on({mousedown:t.proxy(nextend.context.setMouseDownArea,nextend.context,"layerClicked"),click:t.proxy(function(t){!nextend.shouldPreventMouseUp&&this.canvasManager.preventActivationBubbling()&&this.activate(t)},this),dblclick:t.proxy(function(e){e.stopPropagation(),t('[data-tab="layer"]').trigger("click")},this)}),this.getPaddingElement().nextendSpacing({handles:"n, s, e, w",start:t.proxy(function(t,e){i.positionDisplay.show("Spacing")},this),spacing:t.proxy(function(t,e){var n="";for(var r in e.changed)n+="Padding "+r+": "+e.changed[r]+"px<br>";i.positionDisplay.update(t,"Spacing",n)},this),stop:t.proxy(this.onSpacingStop,this)})},r.prototype.onSpacingStop=function(e,n){i.positionDisplay.hide("Spacing");var r=this.getPadding().split("|*|"),s=1,o=1;"px+"==r[r.length-1]&&Math.abs(parseFloat(this.layer.css("fontSize"))-this.baseSize)>1&&(s=this.canvasManager.getResponsiveRatio("h"),o=this.canvasManager.getResponsiveRatio("v"));for(var a in n.changed){var l=n.changed[a];switch(a){case"top":r[0]=Math.round(l/o);break;case"right":r[1]=Math.round(l/s);break;case"bottom":r[2]=Math.round(l/o);break;case"left":r[3]=Math.round(l/s)}}this.setProperty("padding",r.join("|*|")),t("#layercol-padding").data("field").insideChange(r.join("|*|"))},r.prototype.switchOpened=function(t){t.preventDefault(),this.getProperty("opened")?this.setProperty("opened",0):this.setProperty("opened",1)},r.prototype._syncopened=function(){this.getProperty("opened")?(this.openerElement.removeClass("n2-closed"),this.container.$ul.css("display",""),this.layer.triggerHandler("opened")):(this.openerElement.addClass("n2-closed"),this.container.$ul.css("display","none"),this.layer.triggerHandler("closed"))},r.prototype.getPadding=function(){return this.getProperty("padding")},r.prototype._syncpadding=function(){var t=this.getPadding().split("|*|"),e=t.pop(),i=this.baseSize;if("px+"==e&&i>0){e="em";for(var n=0;n<t.length;n++)t[n]=parseInt(t[n])/i}var r=t.join(e+" ")+e;this.getPaddingElement().css("padding",r),this.update(),this.getPaddingElement().nextendSpacing("option","current",r)},r.prototype._syncmaxwidth=function(){var t=parseInt(this.getProperty("maxwidth"));0>=t||isNaN(t)?this.layer.css("maxWidth","").removeClass("n2-ss-has-maxwidth"):this.layer.css("maxWidth",t+"px").addClass("n2-ss-has-maxwidth"),this.update()},r.prototype.getInnerAlign=function(){return this.getProperty("inneralign")},r.prototype._syncinneralign=function(){this.layer.attr("data-csstextalign",this.getInnerAlign())},r.prototype.getVerticalAlign=function(){return this.getProperty("verticalalign")},r.prototype._syncverticalalign=function(){this.$content.attr("data-verticalalign",this.getVerticalAlign())},r.prototype._syncbgimage=r.prototype._syncbgimagex=r.prototype._syncbgimagey=r.prototype._syncbgimageparallax=r.prototype._syncbgcolor=r.prototype._syncbgcolorgradient=r.prototype._syncbgcolorgradientend=function(){this._syncbgThrottled()},r.prototype._syncbgThrottled=function(){var t="",e=this.getProperty("bgimage");if(""!=e){var i=parseInt(this.getProperty("bgimagex"));isFinite(i)||(i=50);var n=parseInt(this.getProperty("bgimagey"));isFinite(n)||(n=50),t+='url("'+nextend.imageHelper.fixed(e)+'") '+i+"% "+n+"% / cover no-repeat"+(1==this.getProperty("bgimageparallax")?" fixed":"")}var r=this.getProperty("bgcolor"),s=this.getProperty("bgcolorgradient"),o=this.getProperty("bgcolorgradientend");if(0!=N2Color.hex2alpha(r)||"off"!=s&&0!=N2Color.hex2alpha(o)){var a="";switch(""!=t&&(a=","+t),s){case"horizontal":this.getBackgroundElement().css("background","-moz-linear-gradient(left, "+N2Color.hex2rgbaCSS(r)+" 0%,"+N2Color.hex2rgbaCSS(o)+" 100%)"+a).css("background"," -webkit-linear-gradient(left, "+N2Color.hex2rgbaCSS(r)+" 0%,"+N2Color.hex2rgbaCSS(o)+" 100%)"+a).css("background","linear-gradient(to right, "+N2Color.hex2rgbaCSS(r)+" 0%,"+N2Color.hex2rgbaCSS(o)+" 100%)"+a);break;case"vertical":this.getBackgroundElement().css("background","-moz-linear-gradient(top, "+N2Color.hex2rgbaCSS(r)+" 0%,"+N2Color.hex2rgbaCSS(o)+" 100%)"+a).css("background"," -webkit-linear-gradient(top, "+N2Color.hex2rgbaCSS(r)+" 0%,"+N2Color.hex2rgbaCSS(o)+" 100%)"+a).css("background","linear-gradient(to bottom, "+N2Color.hex2rgbaCSS(r)+" 0%,"+N2Color.hex2rgbaCSS(o)+" 100%)"+a);break;case"diagonal1":this.getBackgroundElement().css("background","-moz-linear-gradient(45deg, "+N2Color.hex2rgbaCSS(r)+" 0%,"+N2Color.hex2rgbaCSS(o)+" 100%)"+a).css("background"," -webkit-linear-gradient(45deg, "+N2Color.hex2rgbaCSS(r)+" 0%,"+N2Color.hex2rgbaCSS(o)+" 100%)"+a).css("background","linear-gradient(45deg, "+N2Color.hex2rgbaCSS(r)+" 0%,"+N2Color.hex2rgbaCSS(o)+" 100%)"+a);break;case"diagonal2":this.getBackgroundElement().css("background","-moz-linear-gradient(-45deg, "+N2Color.hex2rgbaCSS(r)+" 0%,"+N2Color.hex2rgbaCSS(o)+" 100%)"+a).css("background"," -webkit-linear-gradient(-45deg, "+N2Color.hex2rgbaCSS(r)+" 0%,"+N2Color.hex2rgbaCSS(o)+" 100%)"+a).css("background","linear-gradient(-45deg, "+N2Color.hex2rgbaCSS(r)+" 0%,"+N2Color.hex2rgbaCSS(o)+" 100%)"+a);break;case"off":default:""!=t?t="linear-gradient("+N2Color.hex2rgbaCSS(r)+", "+N2Color.hex2rgbaCSS(r)+"),"+t:t+=N2Color.hex2rgbaCSS(r),this.getBackgroundElement().css("background",t)}}else this.getBackgroundElement().css("background",t)},r.prototype.getData=function(t){var i=e.ComponentAbstract.prototype.getData.call(this,t);return t.layersIncluded&&(i.layers=this.container.getData(t)),i},r.prototype.onChildCountChange=function(){this.layer.toggleClass("n2-ss-content-empty",0==this.container.getLayerCount()),this.update()},r.prototype.renderModeProperties=function(t){e.ComponentAbstract.prototype.renderModeProperties.call(this,t),this._syncmaxwidth(),this._syncpadding(),this._syncinneralign()},r.prototype.getDroppable=function(){return this.layer.is(":visible")&&this.status!=N2Classes.ComponentAbstract.STATUS.HIDDEN&&this.status!=N2Classes.ComponentAbstract.STATUS.LOCKED?{$container:this.$content,layer:this,placement:"normal",axis:"y"}:"hidden"},r.prototype.getLLDroppable=function(t){switch(t.type){case"layer":case"row":return{$container:this.container.$ul,layer:this}}return!1},r.prototype.getContents=function(){return this.$content},r}),N2Require("Layer",["ComponentAbstract"],["smartSlider"],function(t,e,i,n){"use strict";function r(i,n,r){this.label=n2_("Layer"),this.type="layer",this.parent=!1,this.itemEditor=i.itemEditor,e.ComponentAbstract.prototype.constructor.call(this,i,n,r),this.placement.allow("absolute"),this.placement.allow("normal"),this.$.on("load create",t.proxy(this.startItem,this))}return r.prototype=Object.create(e.ComponentAbstract.prototype),r.prototype.constructor=r,r.prototype.create=function(){e.ComponentAbstract.prototype.create.apply(this,arguments),this.initUI(),this._onReady()},r.prototype.load=function(t){e.ComponentAbstract.prototype.load.call(this,t),this.initUI(),this._onReady()},r.prototype.startItem=function(){var t=this.layer.find(".n2-ss-item");new(e[this.itemEditor.getItemClass(t.data("item"))])(t,this,this.itemEditor),this.layer.nextendCanvasItem({canvasUIManager:this.canvasManager.mainContainer.canvasUIManager,layer:this,$layer:this.layer}),this.item.needSize&&this.layer.addClass("n2-ss-layer-needsize")},r.prototype.initUI=function(){this.layer.on({mousedown:t.proxy(nextend.context.setMouseDownArea,nextend.context,"layerClicked"),click:t.proxy(function(t){this.canvasManager.preventActivationBubbling()&&this.activate(t)},this),dblclick:t.proxy(function(e){nextend.context.isPreventDblClick||(e.stopPropagation(),
8
- t('[data-tab="item"]').trigger("click"),this.item.itemEditor.focusFirst("dblclick"))},this)})},r.prototype.getContent=function(){var t=this.layer,e=t.data("animatableselector");return e&&(t=t.find(e)),t},r.prototype._createLayer=function(){return t('<div class="n2-ss-layer"></div>').attr("data-type",this.type)},r.prototype.createRow=function(){var i=t('<div class="n2-ss-layer-status"></div>'),n=t('<div class="n2-button n2-button-icon n2-button-m n2-button-m-narrow" data-n2tip="'+n2_("Delete layer")+'"><i class="n2-i n2-i-delete n2-i-grey-opacity"></i></div>').on("click",t.proxy(this["delete"],this)),r=t('<div class="n2-button n2-button-icon n2-button-m n2-button-m-narrow" data-n2tip="'+n2_("Duplicate layer")+'"><i class="n2-i n2-i-duplicate n2-i-grey-opacity"></i></div>').on("click",t.proxy(function(){this.duplicate(!0,!1)},this));t('<a href="#" class="n2-ss-sc-hide n2-button n2-button-icon n2-button-m"><i class="n2-i n2-i-eye"></i></a>').appendTo(i).on("click",t.proxy(function(t){t.preventDefault(),this.status==e.ComponentAbstract.STATUS.HIDDEN?this.setStatusNormal():this.changeStatus(e.ComponentAbstract.STATUS.HIDDEN)},this)),this._createLayerListRow([t('<div class="n2-actions-left"></div>').append(i),t('<div class="n2-actions"></div>').append(r).append(n)]).addClass("n2-ss-layer-layer-row")},r.prototype.activate=function(t,i,n){e.PluginActivatable.prototype.activate.call(this,t,i,n),this.item?this.item.activate(null,i):console.error("The layer do not have item on it!")},r.prototype.getHTML=function(t){var i=e.ComponentAbstract.prototype.getHTML.call(this,t),n=this.item.getHTML(t);return i.attr("style",i.attr("style")+this.getStyleText()).append(n),i},r.prototype.getData=function(t){var i=e.ComponentAbstract.prototype.getData.call(this,t);return t.itemsIncluded&&(i.item=this.item.getData()),i},r.prototype.getStyleText=function(){var t="",e=this.property.crop;return"auto"!=e&&"mask"!=e||(e="hidden"),t+="overflow:"+e+";"},r.prototype.getContents=function(){return this.item.$item},r.prototype.setSelf=function(t){this.self!=this&&this.self.setSelf(t),this.self=t,this.item.setSelf(t.item)},r.prototype.getSelf=function(){return this.self!==this&&(this.self=this.self.getSelf()),this.self},r}),N2Require("MainContainer",["LayerContainer"],["smartSlider"],function(t,e,i,n){"use strict";function r(n){this.baseSize=16,this.activeLayer=null,this.$=n.$,this.isActiveGroupBlurred=!0,this.isMainGroup=!0,this.canvasManager=n,this.layer=i.$currentSlideElement.find(".n2-ss-layers-container").addBack().last(),this.layer.nextendCanvas({mainContainer:this,tolerance:5,smartguides:t.proxy(function(t){return t.$layer.triggerHandler("LayerParent"),this.canvasManager.getSnap()},this),display:{hidden:!0,show:t.proxy(function(){i.positionDisplay.show("Canvas")},this),update:t.proxy(function(t,e){i.positionDisplay.update(t,"Canvas","L: "+parseInt(0|e.left)+"px<br />T: "+parseInt(0|e.top)+"px")},this),hide:t.proxy(function(){i.positionDisplay.hide("Canvas")},this)},start:t.proxy(function(t,e){this.canvasManager.canvasDragStart(t,e)},this),drag:t.proxy(function(t,e){this.canvasManager.canvasDragMove(t,e),e.layer&&e.layer.placement.current.triggerLayerResized()},this),stop:t.proxy(function(t,e){this.canvasManager.canvasDragStop(t,e),e.layer&&e.layer.placement.current.triggerLayerResized()},this)}),this.canvasUIManager=this.layer.data("uiNextendCanvas"),this.layer.nextendLayerList({mainContainer:this,$fixed:t("#n2-ss-layers"),$scrolled:t("#n2-ss-layer-list")}),this.layerListUIManager=this.layer.data("uiNextendLayerList"),this.layer.parent().prepend('<div class="n2-ss-slide-border n2-ss-slide-border-left" /><div class="n2-ss-slide-border n2-ss-slide-border-top" /><div class="n2-ss-slide-border n2-ss-slide-border-right" /><div class="n2-ss-slide-border n2-ss-slide-border-bottom" />'),this.container=new e.LayerContainer(this,t("#n2-ss-layer-list").find("ul"),"absolute","> .n2-ss-section-outer > .n2-ss-layer, > .n2-ss-layer, > .n2-ss-layer-group",["content","row","layer","group"]),this.layerRow=this.container.$ul,this.$.on("layerCreated",t.proxy(function(){this.refreshHasLayers()},this))}return r.prototype.lateInit=function(){this.container.startWithExistingNodes(),this.layer.parent().on("click",t.proxy(function(){this.canvasManager.shouldPreventActivationBubble?this.blurActiveGroup():this.unBlurActiveGroup(),this.canvasManager.allowActivation()},this)),i.frontend.sliderElement.on("SliderResize",t.proxy(this.onResize,this))},r.prototype.onResize=function(t,e){for(var i=this.getEverySortedLayers(),n=0;n<i.length;n++)i[n].placement.doLinearResize(e)},r.prototype.getEverySortedLayers=function(){for(var t=this.container.getChildLayersRecursive(!1),e={},i=t.length-1;i>=0;i--)"undefined"!=typeof t[i].property.parentid&&t[i].property.parentid&&("undefined"==typeof e[t[i].property.parentid]&&(e[t[i].property.parentid]=[]),e[t[i].property.parentid].push(t[i]),t.splice(i,1));for(var i=0;i<t.length;i++)"undefined"!=typeof t[i].property.id&&t[i].property.id&&"undefined"!=typeof e[t[i].property.id]&&(e[t[i].property.id].unshift(0),e[t[i].property.id].unshift(i+1),t.splice.apply(t,e[t[i].property.id]),delete e[t[i].property.id]);return t},r.prototype.deleteLayers=function(){for(var t=this.container.getSortedLayers(),e=0;e<t.length;e++)t[e]["delete"]()},r.prototype.blurActiveGroup=function(){this.isActiveGroupBlurred=!0},r.prototype.unBlurActiveGroup=function(){this.isActiveGroupBlurred=!1},r.prototype.getActiveGroup=function(){if(this.isActiveGroupBlurred){var t=this,e=this.activeLayer;switch(this.canvasManager.isGroup(e)||this.canvasManager.isCol(e)||this.canvasManager.isContent(e)?t=e:this.canvasManager.isRow(e)?t=e.container.getSortedLayers()[0]:e&&(t=e.group),this.canvasManager.currentEditorMode){case"content":t==this&&(t=this.canvasManager.mainContent);break;case"canvas":t==this.canvasManager.mainContent&&(t=this)}return t}switch(this.canvasManager.currentEditorMode){case"content":return this.canvasManager.mainContent}return this},r.prototype.getSelectedLayer=function(){return null==this.activeLayer?!1:this.activeLayer},r.prototype.getLayerData=function(t){if(t===n)return[];for(var e=[],i=[],r=0;r<t.length;r++)t[r].getDataWithChildren(e,i);return e},r.prototype.layerDeleted=function(t){for(var e=this.canvasManager.selectedLayers.length;e--;)t==this.canvasManager.selectedLayers[e]&&this.canvasManager.selectedLayers.splice(e,1);this._afterLayerDeletedDeBounced(t),this.refreshHasLayers()},r.prototype._afterLayerDeletedDeBounced=NextendDeBounce(function(t){this.activeLayer&&!this.activeLayer.isDeleted||this.canvasManager.resetActiveLayer()},50),r.prototype.refreshHasLayers=function(){t("body").toggleClass("n2-ss-has-layers",this.container.getLayerCount()>0),nextend.triggerResize()},r.prototype.getName=function(){return"Slide"},r.prototype.update=function(){},r.prototype.onChildCountChange=function(){},r.prototype.markEnter=function(t){},r.prototype.markLeave=function(t){},r.prototype.getSelf=function(){return this},r.prototype.createLayerAnimations=function(t,e){for(var i=[],n=this.container.getSortedLayers(),r=0;r<n.length;r++)i.push.apply(i,n[r].createLayerAnimations(t,e));return i},r.prototype.getDroppables=function(e){var i,n=this.canvasManager.currentEditorMode,r=[];if("canvas"==n){r.push(this.getDroppable()),i=this.container.getSortedLayers();var s=t.inArray(this.canvasManager.mainContent,i);s>-1&&i.splice(s,1)}else"content"==n&&(i=[this.canvasManager.mainContent]);for(var o=0;o<i.length;o++)if(i[o]!=e){var a=i[o].getDroppable();"object"==typeof a&&r.push(a),"hidden"!=a&&i[o].container&&r.push.apply(r,i[o].container.getDroppables(e))}return r},r.prototype.getLLDroppables=function(t){return this.container.getLLDroppables(t)},r.prototype.getDroppable=function(){return{$container:this.layer,layer:this,placement:"absolute"}},r.prototype.getLLDroppable=function(t){switch(t.type){case"layer":case"row":case"group":case"content":return{$container:this.container.$ul,layer:this}}return!1},r.prototype.replaceLayers=function(e){this._idTranslation={};var n=this.dataToLayers(t.extend(!0,[],e).reverse()),r=[];this.deleteLayers(),this.canvasManager.mainContent.remove();for(var s=0;s<n.length;s++)r.push(this.container.append(n[s]));return this.canvasManager.refreshMode(),this.container.layerContainerElement.n2imagesLoaded().always(t.proxy(this.canvasManager.refreshMode,this.canvasManager)),this.getSelectedLayer()||r.length>0&&r[0].activate(),i.history.isEnabled()&&i.history.addSimple(this,this.historyDeleteAll,this.historyReplaceLayers,[e,r,this.container.getAllLayers()]),r},r.prototype.historyDeleteAll=function(t,e){for(var i=0;i<e.length;i++)e[i].getSelf()["delete"]();this.canvasManager.mainContent.getSelf().remove()},r.prototype.historyReplaceLayers=function(t,e,i){this.replaceLayers(t);for(var n=this.container.getAllLayers(),r=0;r<i.length;r++)i[r].setSelf(n[r])},r.prototype.addLayers=function(e,n){this._idTranslation={};for(var r=this.dataToLayers(t.extend(!0,[],e)),s=[],o=0;o<r.length;o++)s.push(n.container.append(r[o]));return this.canvasManager.refreshMode(),i.history.addSimple(this,this.historyDeleteLayers,this.historyAddLayers,[e,s,n]),s},r.prototype.historyDeleteLayers=function(t,e,i){for(var n=0;n<e.length;n++)e[n].getSelf()["delete"]()},r.prototype.historyAddLayers=function(t,e,i){for(var n=this.addLayers(t,i.getSelf()),r=0;r<e.length;r++)e[r].setSelf(n[r])},r.prototype.dataToLayers=function(t,e){for(var i=[],n=0;n<t.length;n++)switch(t[n].type){case"group":console.error("Group data to layer not implemented!");break;case"row":i.push(this.buildRowNode(t[n],e));break;case"col":i.push(this.buildColNode(t[n],e));break;case"content":i.push(this.buildContentNode(t[n],e));break;case"layer":default:i.push(this.buildLayerNode(t[n],e))}return i},r.prototype._buildNodePrepareID=function(e,i){if(i.id){var n=t.fn.uid(),r=!1;"object"==typeof this._idTranslation[i.id]&&(r=this._idTranslation[i.id]),this._idTranslation[i.id]=n,i.id=n,e.attr("id",n),r&&r.resolve(i.id,n)}if(i.parentid)switch(typeof this._idTranslation[i.parentid]){case"string":i.parentid=this._idTranslation[i.parentid];break;case"undefined":this._idTranslation[i.parentid]=t.Deferred();case"object":this._idTranslation[i.parentid].done(t.proxy(function(t,e,i){t.data("parentid",i)},this,e));break;default:i.parentid=""}},r.prototype.buildContentNode=function(e,i){var r=t("<div class='n2-ss-layer' data-type='content'/>"),s=t("<div class='n2-ss-section-main-content n2-ss-layer-content' />").appendTo(r);for(var o in e)r.data(o,e[o]);return i!==n&&r.appendTo(i),this.dataToLayers(e.layers,s),r},r.prototype.buildRowNode=function(e,i){var r=t("<div class='n2-ss-layer' data-type='row'/>"),s=t("<div class='n2-ss-layer-row' />").appendTo(r);this._buildNodePrepareID(r,e);for(var o in e)r.data(o,e[o]);return i!==n&&r.appendTo(i),this.dataToLayers(e.cols,s),r},r.prototype.buildColNode=function(e,i){var r=t("<div class='n2-ss-layer' data-type='col'/>"),s=t("<div class='n2-ss-layer-col n2-ss-layer-content' />").appendTo(r);for(var o in e)r.data(o,e[o]);return i!==n&&r.appendTo(i),this.dataToLayers(e.layers,s),r},r.prototype.buildLayerNode=function(e,i){var r=t("<div class='n2-ss-layer' data-type='layer'></div>").attr("style",e.style),s=1;e.zIndex&&(s=e.zIndex),this._buildNodePrepareID(r,e),e.items!==n&&(e.item=e.items[0],delete e.items),t('<div class="n2-ss-item n2-ss-item-'+e.item.type+'"></div>').data("item",e.item.type).data("itemvalues",e.item.values).appendTo(r),delete e.style,delete e.item;for(var o in e)r.data(o,e[o]);return i!==n&&r.appendTo(i),r},r}),N2Require("Row",["LayerContainer","ComponentAbstract"],["smartSlider"],function(t,e,i,n){"use strict";function r(i,n,r){this.label=n2_("Row"),this.type="row",this._syncbgThrottled=NextendThrottle(this._syncbgThrottled,50),this.innerContainer="> .n2-ss-layer-row",this.columnsField=t("#layerrow-columns").data("field"),this.refreshUI=NextendDeBounce(this.refreshUI,100),e.ComponentAbstract.prototype.constructor.call(this,i,n,r),this.placement.allow("absolute"),this.placement.allow("normal")}return r.prototype=Object.create(e.ComponentAbstract.prototype),r.prototype.constructor=r,r.prototype.addProperties=function(t){this.createProperty("opened",1,t,this),e.ComponentAbstract.prototype.addProperties.call(this,t),this.createProperty("bgimage","",t),this.createProperty("bgimagex",50,t),this.createProperty("bgimagey",50,t),this.createProperty("bgimageparallax",0,t),this.createProperty("bgcolor","00000000",t),this.createProperty("bgcolorgradient","off",t),this.createProperty("bgcolorgradientend","00000000",t),this.createProperty("borderradius",0,t),this.createProperty("boxshadow","0|*|0|*|0|*|0|*|00000080",t),this.createProperty("fullwidth",1,t),this.createProperty("stretch",0,t),this.createDeviceProperty("inneralign",{desktopPortrait:"inherit"},t),this.createDeviceProperty("padding",{desktopPortrait:"10|*|10|*|10|*|10|*|px+"},t),this.createDeviceProperty("gutter",{desktopPortrait:20},t),this.createDeviceProperty("wrapafter",{desktopPortrait:0,mobilePortrait:1,mobileLandscape:1},t)},r.prototype.historyDeleteSelf=function(){this["delete"]()},r.prototype.historyCreateSelf=function(t,i,n){var r=new e.Row(this.canvasManager,t.getSelf(),{});r.create(i),this.setSelf(r);for(var s=r.container.getSortedLayers(),o=0;o<s.length;o++)n[o].setSelf(s[o])},r.prototype.create=function(n){var r,s=function(e){return t("<div class='n2-ss-layer' />").append(t("<div class='n2-ss-layer-row' />").append(e)).attr("data-type","row")},o=function(e){return t("<div class='n2-ss-layer' data-type='col'/>").append(t("<div class='n2-ss-layer-col n2-ss-layer-content' />").append(e))};switch(n){case"2col":r=function(t){return s([o(),o()])};break;case"2col-60-40":r=function(t){return s([o().data("colwidth","6/10"),o().data("colwidth","4/10")])};break;case"2col-40-60":r=function(t){return s([o().data("colwidth","4/10"),o().data("colwidth","6/10")])};break;case"2col-80-20":r=function(t){return s([o().data("colwidth","8/10"),o().data("colwidth","2/10")])};break;case"2col-20-80":r=function(t){return s([o().data("colwidth","2/10"),o().data("colwidth","8/10")])};break;case"3col":r=function(t){return s([o(),o(),o()])};break;case"3col-20-60-20":r=function(t){return s([o().data("colwidth","2/10"),o().data("colwidth","6/10"),o().data("colwidth","2/10")])};break;case"4col":r=function(t){return s([o(),o(),o(),o()])};break;case"special":r=function(t){var e=s([o(),o()]);return s([o().data("colwidth","1/5"),o(e).data("colwidth","4/5")])};break;default:r=function(t){return s([o()])}}"absolute"==this.group.container.allowedPlacementMode&&(this.originalProperties=t.extend({width:"100%",align:"center",valign:"top",top:20},this.originalProperties)),e.ComponentAbstract.prototype.create.call(this,r,!0),this.initUI(),this.container.startWithExistingNodes(),this._syncpadding(),this._syncinneralign(),this._syncfullwidth(),this._syncstretch(),this._syncbgThrottled(),this._syncborderradius(),this._syncboxshadow(),this.renderModeProperties(),this.container.renderModeProperties(),i.history.addSimple(this,this.historyDeleteSelf,this.historyCreateSelf,[this.group,n,this.container.getSortedLayers()]),this._onReady()},r.prototype.load=function(t){e.ComponentAbstract.prototype.load.call(this,t),this.initUI(),this.container.startWithExistingNodes(),this._syncpadding(),this._syncinneralign(),this._syncfullwidth(),this._syncstretch(),this._syncbgThrottled(),this._syncborderradius(),this._syncboxshadow(),this._onReady()},r.prototype.initUI=function(){this.layer.nextendCanvasItem({canvasUIManager:this.canvasManager.mainContainer.canvasUIManager,layer:this,$layer:this.layer}),this.layer.on({mousedown:t.proxy(nextend.context.setMouseDownArea,nextend.context,"layerClicked"),click:t.proxy(function(t){!nextend.shouldPreventMouseUp&&this.canvasManager.preventActivationBubbling()&&this.activate(t)},this),dblclick:t.proxy(function(e){e.stopPropagation(),t('[data-tab="row"]').trigger("click")},this)}),this.$row.nextendSpacing({handles:"n, s, e, w",start:t.proxy(function(t,e){i.positionDisplay.show("Spacing")},this),spacing:t.proxy(function(t,e){var n="";for(var r in e.changed)n+="Padding "+r+": "+e.changed[r]+"px<br>";i.positionDisplay.update(t,"Spacing",n)},this),stop:t.proxy(this.____makeLayerResizeableStop,this)}),this.$row.nextendColumns({columns:"1",gutter:this.getGutter(),start:t.proxy(function(t,e){i.positionDisplay.show("Columns")},this),colwidth:t.proxy(function(t,e){this.updateColumnWidth(e.currentPercent),i.positionDisplay.update(t,"Columns",Math.round(100*e.currentPercent[e.index])+"% &mdash; "+Math.round(100*e.currentPercent[e.index+1])+"%")},this),stop:t.proxy(function(t,e){i.positionDisplay.hide("Columns"),this.setRealColsWidth(e.currentFractions)},this)}),this.$row.sortable({distance:10,tolerance:"pointer",forceHelperSize:!0,forcePlaceholderSize:!0,items:"> .n2-ss-layer",handle:" > .n2-ss-layer-ui-label-container > .n2-ss-layer-ui-label-self",start:t.proxy(function(t,e){var i=this.getColumns().split("+");e.placeholder.css({width:100*new Fraction(i[e.item.data("layerObject").getIndex()]).valueOf()+"%",height:e.helper.height(),visibility:"visible",marginRight:this.getGutter()+"px",marginTop:this.getGutter()+"px"}),e.helper.hasClass("n2-ss-last-in-row")&&e.placeholder.addClass("n2-ss-last-in-row"),e.placeholder.css("order",e.helper.css("order")),e.placeholder.attr("data-r",e.helper.attr("data-r"))},this),stop:t.proxy(function(t,e){var i=e.item.data("layerObject"),n=e.item.prevAll(".n2-ss-layer, .n2-ss-layer-group").first().data("layerObject");this.$row.sortable("cancel");var r=i.getIndex(),s=0;n&&(s=n.getIndex(),r>s&&s++),r!=s&&this.moveCol(r,s)},this)})},r.prototype.____makeLayerResizeableStop=function(e,n){i.positionDisplay.hide("Spacing");var r=this.getPadding().split("|*|"),s=1,o=1;"px+"==r[r.length-1]&&Math.abs(parseFloat(this.layer.css("fontSize"))-this.baseSize)>1&&(s=this.canvasManager.getResponsiveRatio("h"),o=this.canvasManager.getResponsiveRatio("v"));for(var a in n.changed){var l=n.changed[a];switch(a){case"top":r[0]=Math.round(l/o);break;case"right":r[1]=Math.round(l/s);break;case"bottom":r[2]=Math.round(l/o);break;case"left":r[3]=Math.round(l/s)}}this.setProperty("padding",r.join("|*|")),t("#layerrow-padding").data("field").insideChange(r.join("|*|"))},r.prototype._createLayer=function(){return t('<div class="n2-ss-layer"><div class="n2-ss-layer-row"></div></div>').attr("data-type",this.type)},r.prototype.historyDeleteCol=function(t,e){e.getSelf()["delete"]()},r.prototype.historyCreateCol=function(t,e){var i=t.getSelf().createCol();e.setSelf(i)},r.prototype.createCol=function(){var t=new e.Col(this.canvasManager,this,{});return i.history.addSimple(this,this.historyDeleteCol,this.historyCreateCol,[this,t]),t.create(),this.isReady()&&this.placement.updatePosition(),t},r.prototype.createRow=function(){this.$row=this.layer.find(".n2-ss-layer-row:first"),this.container=new e.LayerContainer(this,t('<ul class="n2-list n2-h4 n2-list-orderable" />'),"default","> .n2-ss-layer",["col"]),this.container.setLayerContainerElement(this.$row);var i=t('<div class="n2-ss-layer-status"></div>'),n=t('<div class="n2-button n2-button-icon n2-button-m n2-button-m-narrow" data-n2tip="'+n2_("Delete layer")+'"><i class="n2-i n2-i-delete n2-i-grey-opacity"></i></div>').on("click",t.proxy(this["delete"],this)),r=t('<div class="n2-button n2-button-icon n2-button-m n2-button-m-narrow" data-n2tip="'+n2_("Duplicate layer")+'"><i class="n2-i n2-i-duplicate n2-i-grey-opacity"></i></div>').on("click",t.proxy(function(){this.duplicate(!0,!1)},this));t('<a href="#" class="n2-ss-sc-hide n2-button n2-button-icon n2-button-m"><i class="n2-i n2-i-eye"></i></a>').appendTo(i).on("click",t.proxy(function(t){t.preventDefault(),this.status==e.ComponentAbstract.STATUS.HIDDEN?this.setStatusNormal():this.changeStatus(e.ComponentAbstract.STATUS.HIDDEN)},this)),this._createLayerListRow([t('<div class="n2-actions-left"></div>').append(i),t('<div class="n2-actions"></div>').append(r).append(n)]).addClass("n2-ss-layer-row-row"),this.openerElement=t('<a href="#" class="n2-ss-layer-icon n2-button n2-button-icon n2-button-m"><i class="n2-i n2-i-row"></i></a>').insertBefore(this.layerTitleSpan).on("click",t.proxy(this.switchOpened,this)),this.container.$ul.appendTo(this.layerRow),this.readyDeferred.done(t.proxy(this._syncopened,this))},r.prototype.activate=function(){e.PluginActivatable.prototype.activate.apply(this,arguments),this.columnsField.setRow(this)},r.prototype.switchOpened=function(t){t.preventDefault(),this.getProperty("opened")?this.setProperty("opened",0):this.setProperty("opened",1)},r.prototype._syncopened=function(){this.getProperty("opened")?(this.openerElement.removeClass("n2-closed"),this.container.$ul.css("display",""),this.layer.triggerHandler("opened")):(this.openerElement.addClass("n2-closed"),this.container.$ul.css("display","none"),this.layer.triggerHandler("closed"))},r.prototype.getColumns=function(){for(var t=this.container.getSortedLayers(),e=[],i=0;i<t.length;i++)e.push(t[i].getProperty("colwidth"));return e.join("+")},r.prototype.getColumnsOrdered=function(){for(var t=this.getOrderedColumns(),e=[],i=0;i<t.length;i++)e.push(t[i].getProperty("colwidth"));return e.join("+")},r.prototype._synccolumns=function(){for(var t=this.container.getSortedLayers(),e=0;e<t.length;e++)t[e]._synccolwidth();this.update()},r.prototype.getPadding=function(){return this.getProperty("padding")},r.prototype._syncpadding=function(){var t=this.getPadding().split("|*|"),e=t.pop(),i=this.baseSize;if("px+"==e&&i>0){e="em";for(var n=0;n<t.length;n++)t[n]=parseInt(t[n])/i}var r=t.join(e+" ")+e;this.$row.css("padding",r),this.$row.nextendSpacing("option","current",r),this.update()},r.prototype.getGutter=function(){return this.getProperty("gutter")},r.prototype._syncgutter=function(){var t=this.getGutter()+"px",e=this.container.getSortedLayers();if(e.length>0)for(var i=e.length-1;i>=0;i--)e[i].layer.css("marginRight",t).css("marginTop",t);this.$row.nextendColumns("option","gutter",this.getGutter()),this.update()},r.prototype._syncwrapafter=function(){if(!this.isDeleted&&!this.isDeleteStarted){for(var e=parseInt(this.getProperty("wrapafter")),i=this.getOrderedColumns(),n=!1,r=i.length-1;r>=0;r--)i[r].showsOnCurrent||i.splice(r,1);var s=i.length;if(e>0&&s>e&&(n=!0),this.$row.find("> .n2-ss-row-break").remove(),this.$row.toggleClass("n2-ss-row-wrapped",n),n)for(var r=0;s>r;r++){var o=parseInt(r/e);if(i[r].layer.attr("data-r",o),(r+1)%e==0||r==s-1){var a=i[r].getProperty("order");0==a&&(a=10),t('<div class="n2-ss-row-break"/>').css("order",a).insertAfter(i[r].layer.addClass("n2-ss-last-in-row"))}else i[r].layer.removeClass("n2-ss-last-in-row")}else{for(var r=0;s>r;r++)i[r].layer.removeClass("n2-ss-last-in-row").attr("data-r",0);i.length>0?i[s-1].layer.addClass("n2-ss-last-in-row"):console.error("The row does not have col.")}this.update()}},r.prototype.getOrderedColumns=function(){return this.container.getSortedLayers().sort(function(t,e){return t.getRealOrder()-e.getRealOrder()})},r.prototype.getInnerAlign=function(){return this.getProperty("inneralign")},r.prototype._syncinneralign=function(){this.layer.attr("data-csstextalign",this.getInnerAlign())},r.prototype._syncfullwidth=function(){this.layer.toggleClass("n2-ss-autowidth",0==this.getProperty("fullwidth"))},r.prototype._syncstretch=function(){this.layer.toggleClass("n2-ss-stretch-layer",1==this.getProperty("stretch"))},r.prototype._syncborderradius=function(){this.$row.css("border-radius",this.getProperty("borderradius")+"px")},r.prototype._syncboxshadow=function(){var t=this.getProperty("boxshadow").split("|*|");0==t[0]&&0==t[1]&&0==t[2]&&0==t[3]||0==N2Color.hex2alpha(t[4])?this.$row.css("box-shadow",""):this.$row.css("box-shadow",t[0]+"px "+t[1]+"px "+t[2]+"px "+t[3]+"px "+N2Color.hex2rgbaCSS(t[4]))},r.prototype._syncbgimage=r.prototype._syncbgimagex=r.prototype._syncbgimagey=r.prototype._syncbgimageparallax=r.prototype._syncbgcolor=r.prototype._syncbgcolorgradient=r.prototype._syncbgcolorgradientend=function(){this._syncbgThrottled()},r.prototype._syncbgThrottled=function(){var t="",e=this.getProperty("bgimage");if(""!=e){var i=parseInt(this.getProperty("bgimagex"));isFinite(i)||(i=50);var n=parseInt(this.getProperty("bgimagey"));isFinite(n)||(n=50),t+='url("'+nextend.imageHelper.fixed(e)+'") '+i+"% "+n+"% / cover no-repeat"+(1==this.getProperty("bgimageparallax")?" fixed":"")}var r=this.getProperty("bgcolor"),s=this.getProperty("bgcolorgradient"),o=this.getProperty("bgcolorgradientend");if(0!=N2Color.hex2alpha(r)||"off"!=s&&0!=N2Color.hex2alpha(o)){var a="";switch(""!=t&&(a=","+t),s){case"horizontal":this.$row.css("background","-moz-linear-gradient(left, "+N2Color.hex2rgbaCSS(r)+" 0%,"+N2Color.hex2rgbaCSS(o)+" 100%)"+a).css("background"," -webkit-linear-gradient(left, "+N2Color.hex2rgbaCSS(r)+" 0%,"+N2Color.hex2rgbaCSS(o)+" 100%)"+a).css("background","linear-gradient(to right, "+N2Color.hex2rgbaCSS(r)+" 0%,"+N2Color.hex2rgbaCSS(o)+" 100%)"+a);break;case"vertical":this.$row.css("background","-moz-linear-gradient(top, "+N2Color.hex2rgbaCSS(r)+" 0%,"+N2Color.hex2rgbaCSS(o)+" 100%)"+a).css("background"," -webkit-linear-gradient(top, "+N2Color.hex2rgbaCSS(r)+" 0%,"+N2Color.hex2rgbaCSS(o)+" 100%)"+a).css("background","linear-gradient(to bottom, "+N2Color.hex2rgbaCSS(r)+" 0%,"+N2Color.hex2rgbaCSS(o)+" 100%)"+a);break;case"diagonal1":this.$row.css("background","-moz-linear-gradient(45deg, "+N2Color.hex2rgbaCSS(r)+" 0%,"+N2Color.hex2rgbaCSS(o)+" 100%)"+a).css("background"," -webkit-linear-gradient(45deg, "+N2Color.hex2rgbaCSS(r)+" 0%,"+N2Color.hex2rgbaCSS(o)+" 100%)"+a).css("background","linear-gradient(45deg, "+N2Color.hex2rgbaCSS(r)+" 0%,"+N2Color.hex2rgbaCSS(o)+" 100%)"+a);break;case"diagonal2":this.$row.css("background","-moz-linear-gradient(-45deg, "+N2Color.hex2rgbaCSS(r)+" 0%,"+N2Color.hex2rgbaCSS(o)+" 100%)"+a).css("background"," -webkit-linear-gradient(-45deg, "+N2Color.hex2rgbaCSS(r)+" 0%,"+N2Color.hex2rgbaCSS(o)+" 100%)"+a).css("background","linear-gradient(-45deg, "+N2Color.hex2rgbaCSS(r)+" 0%,"+N2Color.hex2rgbaCSS(o)+" 100%)"+a);break;case"off":default:""!=t?t="linear-gradient("+N2Color.hex2rgbaCSS(r)+", "+N2Color.hex2rgbaCSS(r)+"),"+t:t+=N2Color.hex2rgbaCSS(r),this.$row.css("background",t)}}else this.$row.css("background",t)},r.prototype.getData=function(t){var i=e.ComponentAbstract.prototype.getData.call(this,t);return t.itemsIncluded&&(i.cols=this.container.getData(t)),i},r.prototype.moveCol=function(t,e){if("desktopPortrait"==this.getMode()){this._moveCol(t,e);var n=i.history.addValue(this,this.historyMoveCol,[]);n&&n.setValues({oldIndex:e,newIndex:t},{oldIndex:t,newIndex:e})}else{var r=this.getOrderedColumns(),s=r[t];r.splice(t,1),r.splice(e,0,s);for(var o=0;o<r.length;o++)r[o].setProperty("order",o+1);this.refreshUI()}},r.prototype._moveCol=function(t,e){var i=this.container.getSortedLayers();e>t&&e++,this.container.insertLayerAt(i[t],e),this.refreshUI()},r.prototype.historyMoveCol=function(t){this._moveCol(t.oldIndex,t.newIndex)},r.prototype.setColsWidth=function(t){for(var e=this.container.getSortedLayers(),i=0;i<t.length;i++)e[i].setProperty("colwidth",t[i].toFraction());this.update(),this.refreshUI()},r.prototype.setRealColsWidth=function(t){for(var e=this.getOrderedColumns(),i=0;i<t.length;i++)e[i].setProperty("colwidth",t[i].toFraction());this.update(),this.refreshUI()},r.prototype.updateColumnWidth=function(t){for(var e=this.getOrderedColumns(),i=0;i<e.length;i++)e[i].layer.css("width",100*t[i]+"%");this.update()},r.prototype.activateColumn=function(t,e){this.container.getSortedLayers()[t].activate(e)},r.prototype.onChildCountChange=function(){if(!this.isDeleted&&!this.isDeleteStarted){var t=this.container.getSortedLayers(),e=t.length;if(e){for(var i=this.getColumns().split("+"),n=0,r=0;r<i.length;r++)n=new Fraction(i[r]).add(n);if(1!=n.valueOf())for(var r=0;e>r;r++)t[r].setProperty("colwidth","1/"+e);else for(var r=0;e>r;r++)t[r]._synccolwidth();this.refreshUI()}this._syncgutter(),this._syncwrapafter()}},r.prototype.renderModeProperties=function(t){e.ComponentAbstract.prototype.renderModeProperties.call(this,t),this._syncpadding(),this._syncinneralign(),this._syncwrapafter(),this._syncgutter(),this.isActive&&this.columnsField.setRow(this)},r.prototype.hightlightStructure=function(e){e=e||4e3,this.isStructureHighlighted&&(clearTimeout(this.isStructureHighlighted),this.isStructureHighlighted=!1),this.layer.addClass("n2-highlight-structure"),this.isStructureHighlighted=setTimeout(t.proxy(function(){this.isDeleted||this.layer.removeClass("n2-highlight-structure")},this),e)},r.prototype.refreshUI=function(){this.isDeleteStarted||(this.isActive&&this.columnsField.setRow(this),this._syncwrapafter(),this.$row.nextendColumns("option","columns",this.getColumnsOrdered()))},r.prototype.getDroppable=function(){return this.layer.is(":visible")&&this.status!=N2Classes.ComponentAbstract.STATUS.HIDDEN&&this.status!=N2Classes.ComponentAbstract.STATUS.LOCKED?{$container:this.$row,layer:this,placement:"normal",axis:"x"}:"hidden"},r.prototype.getLLDroppable=function(t){switch(t.type){case"col":if(t.group==this)return{$container:this.container.$ul,layer:this}}return!1},r.prototype.getContents=function(){return this.$row},r}),N2Require("ComponentSettings",[],["smartSlider"],function(t,e,i,n){"use strict";function r(e){this.componentType="undefined",this.placementType="undefined",t("html").attr("data-component",""),t("html").attr("data-placement",""),this.currentForm={},this.forms={undefined:null,placement:{absolute:{},normal:{},"default":{}},component:{content:{},layer:{},row:{},col:{},group:{}},global:{id:t("#layerid"),desktopPortrait:t("#layershow-desktop-portrait"),desktopLandscape:t("#layershow-desktop-landscape"),tabletPortrait:t("#layershow-tablet-portrait"),tabletLandscape:t("#layershow-tablet-landscape"),mobilePortrait:t("#layershow-mobile-portrait"),mobileLandscape:t("#layershow-mobile-landscape"),"class":t("#layerclass"),generatorvisible:t("#layergenerator-visible"),crop:t("#layercrop"),rotation:t("#layerrotation"),parallax:t("#layerparallax"),fontsize:t("#layerfont-size"),adaptivefont:t("#layeradaptive-font"),mouseenter:t("#layeronmouseenter"),click:t("#layeronclick"),mouseleave:t("#layeronmouseleave"),play:t("#layeronplay"),pause:t("#layeronpause"),stop:t("#layeronstop")}},this.canvasManager=e;var n=i.frontend.responsive;n.enabled("desktop","Landscape")||this.forms.global.desktopLandscape.closest(".n2-mixed-group").css("display","none"),n.enabled("tablet","Portrait")||this.forms.global.tabletPortrait.closest(".n2-mixed-group").css("display","none"),n.enabled("tablet","Landscape")||this.forms.global.tabletLandscape.closest(".n2-mixed-group").css("display","none"),n.enabled("mobile","Portrait")||this.forms.global.mobilePortrait.closest(".n2-mixed-group").css("display","none"),n.enabled("mobile","Landscape")||this.forms.global.mobileLandscape.closest(".n2-mixed-group").css("display","none"),this.forms.placement.absolute={parentid:t("#layerparentid"),parentalign:t("#layerparentalign"),parentvalign:t("#layerparentvalign"),left:t("#layerleft"),top:t("#layertop"),responsiveposition:t("#layerresponsive-position"),width:t("#layerwidth"),height:t("#layerheight"),responsivesize:t("#layerresponsive-size"),align:t("#layeralign"),valign:t("#layervalign")},this.forms.placement.normal={margin:t("#layernormal-margin"),height:t("#layernormal-height"),maxwidth:t("#layernormal-maxwidth"),selfalign:t("#layernormal-selfalign")},this.forms.component.content={maxwidth:t("#layercontent-maxwidth"),selfalign:t("#layercontent-selfalign"),padding:t("#layercontent-padding"),inneralign:t("#layercontent-inneralign"),verticalalign:t("#layercontent-verticalalign"),bgcolor:t("#layercontent-background-color"),bgimage:t("#layercontent-background-image"),bgimagex:t("#layercontent-background-focus-x"),bgimagey:t("#layercontent-background-focus-y"),bgimageparallax:t("#layercontent-background-parallax"),bgcolorgradient:t("#layercontent-background-gradient"),
9
- bgcolorgradientend:t("#layercontent-background-color-end"),opened:t("#layercontent-opened")},this.forms.component.row={padding:t("#layerrow-padding"),gutter:t("#layerrow-gutter"),fullwidth:t("#layerrow-fullwidth"),stretch:t("#layerrow-stretch"),wrapafter:t("#layerrow-wrap-after"),inneralign:t("#layerrow-inneralign"),bgimage:t("#layerrow-background-image"),bgimagex:t("#layerrow-background-focus-x"),bgimagey:t("#layerrow-background-focus-y"),bgimageparallax:t("#layerrow-background-parallax"),bgcolor:t("#layerrow-background-color"),bgcolorgradient:t("#layerrow-background-gradient"),bgcolorgradientend:t("#layerrow-background-color-end"),borderradius:t("#layerrow-border-radius"),boxshadow:t("#layerrow-boxshadow"),opened:t("#layerrow-opened")},this.forms.component.col={maxwidth:t("#layercol-maxwidth"),padding:t("#layercol-padding"),inneralign:t("#layercol-inneralign"),verticalalign:t("#layercol-verticalalign"),bgcolor:t("#layercol-background-color"),link:t("#layercol-link"),bgimage:t("#layercol-background-image"),bgimagex:t("#layercol-background-focus-x"),bgimagey:t("#layercol-background-focus-y"),bgimageparallax:t("#layercol-background-parallax"),bgcolorgradient:t("#layercol-background-gradient"),bgcolorgradientend:t("#layercol-background-color-end"),borderradius:t("#layercol-border-radius"),boxshadow:t("#layercol-boxshadow"),borderwidth:t("#layercol-border-width"),borderstyle:t("#layercol-border-style"),bordercolor:t("#layercol-border-color"),opened:t("#layercol-opened"),colwidth:t("#layercol-colwidth"),order:t("#layercol-order")}}return r.prototype.changeActiveComponent=function(e,i,n,r){if(this.currentLayer=e,this.componentType!=i){switch(t("html").attr("data-component",i),i){case"content":t("#n2-tabbed-slide-editor-settings").data("pane").showTabs(["content","animations","position"]);break;case"layer":t("#n2-tabbed-slide-editor-settings").data("pane").showTabs(["item","style","animations","position"]);break;case"group":t("#n2-tabbed-slide-editor-settings").data("pane").showTabs(["group","animations"]);break;case"row":t("#n2-tabbed-slide-editor-settings").data("pane").showTabs(["row","animations","position"]);break;case"col":t("#n2-tabbed-slide-editor-settings").data("pane").showTabs(["column","animations","position"])}this.componentType=i}this.changeActiveComponentPlacement(n),this.syncFields(r)},r.prototype.changeActiveComponentPlacement=function(e,i){this.placementType!=e&&(t("html").attr("data-placement",e),this.placementType=e),this.syncFields(i)},r.prototype.syncFields=function(e){if("object"==typeof e){this.currentForm=t.extend({},this.forms.global,this.forms.component[this.componentType],this.forms.placement[this.placementType]);for(var i in e)typeof e[i]!==n?this.updateField(i,e[i]):console.error("Value is undefined for: "+i);for(var r in this.currentForm)this.currentForm[r].off(".layeroptions").on("outsideChange.layeroptions",t.proxy(this.activeComponentPropertyChanged,this,r))}},r.prototype.onUpdateField=function(t,e,i){t.target==this.currentLayer&&this.updateField(e,i)},r.prototype.updateField=function(t,e){if("function"==typeof this.currentLayer["formSet"+t])this.currentLayer["formSet"+t](this,e);else if(this.currentForm[t]!==n){var i=this.currentForm[t].data("field");i!==n&&i.insideChange(e)}else console.error("field not available: "+t+":"+e,this.currentForm)},r.prototype.activeComponentPropertyChanged=function(t,e){if(this.currentLayer&&!this.currentLayer.isDeleted){var i=this.currentForm[t].val();this.currentLayer.setProperty(t,i,"manager")}else{var n=this.currentForm[t].data("field");"undefined"!=typeof n&&null!==n&&n.insideChange("")}},r.prototype.startFeatures=function(){this.layerFeatures=new e.LayerFeatures(this.forms.placement.absolute,this.canvasManager);var i=t("#n2-ss-layer-adaptive-font").on("click",t.proxy(function(){this.currentForm.adaptivefont.data("field").onoff.trigger("click")},this));this.forms.global.adaptivefont.on("nextendChange",t.proxy(function(){1==this.currentForm.adaptivefont.val()?i.addClass("n2-active"):i.removeClass("n2-active")},this)),new N2Classes.FormElementNumber("n2-ss-layer-font-size",-Number.MAX_VALUE,Number.MAX_VALUE),new N2Classes.FormElementAutocompleteSlider("n2-ss-layer-font-size",{min:50,max:300,step:5});var n=t("#n2-ss-layer-font-size").on("outsideChange",t.proxy(function(){var t=parseInt(n.val());this.currentForm.fontsize.val(t).trigger("change")},this));this.forms.global.fontsize.on("nextendChange",t.proxy(function(){n.data("field").insideChange(this.forms.global.fontsize.val())},this))},r}),N2Require("BgAnimationManager",[],[],function(t,e,i){function n(){this.type="backgroundanimation",NextendVisualManagerMultipleSelection.prototype.constructor.apply(this,arguments)}return n.prototype=Object.create(NextendVisualManagerMultipleSelection.prototype),n.prototype.constructor=n,n.prototype.loadDefaults=function(){NextendVisualManagerMultipleSelection.prototype.loadDefaults.apply(this,arguments),this.type="backgroundanimation",this.labels={visual:"Background animation",visuals:"Background animations"}},n.prototype.initController=function(){return new e.BgAnimationEditor},n.prototype.createVisual=function(t,e){return new NextendVisualWithSetRowMultipleSelection(t,e,this)},n}),N2Require("BgAnimationEditor",[],[],function(t,e,i){function n(){this.parameters={shiftedBackgroundAnimation:0},NextendVisualEditorController.prototype.constructor.call(this,!1),this.bgAnimationElement=t(".n2-bg-animation"),this.slides=t(".n2-bg-animation-slide"),this.bgImages=t(".n2-bg-animation-slide-bg"),NextendTween.set(this.bgImages,{rotationZ:1e-4}),this.directionTab=new N2Classes.FormElementRadio("n2-background-animation-preview-tabs",["0","1"]),this.directionTab.element.on("nextendChange.n2-editor",t.proxy(this.directionTabChanged,this)),nModernizr.csstransforms3d&&nModernizr.csstransformspreserve3d||nextend.notificationCenter.error("Background animations are not available in your browser. It works if the <i>transform-style: preserve-3d</i> feature available. ")}return n.prototype=Object.create(NextendVisualEditorController.prototype),n.prototype.constructor=n,n.prototype.loadDefaults=function(){NextendVisualEditorController.prototype.loadDefaults.call(this),this.type="backgroundanimation",this.current=0,this.animationProperties=!1,this.direction=0},n.prototype.get=function(){return null},n.prototype.load=function(t,e,i,n){this.lightbox.addClass("n2-editor-loaded")},n.prototype.setTabs=function(t){},n.prototype.directionTabChanged=function(){this.direction=parseInt(this.directionTab.element.val())},n.prototype.start=function(){this.animationProperties&&(this.timeline?this.timeline.play():this.next())},n.prototype.pause=function(){this.timeline&&this.timeline.pause()},n.prototype.next=function(){this.timeline=new NextendTimeline({paused:!0,onComplete:t.proxy(this.ended,this)});var e=this.bgImages.eq(this.current),i=this.bgImages.eq(1-this.current);nModernizr.csstransforms3d&&nModernizr.csstransformspreserve3d?(this.currentAnimation=new N2Classes["SmartSliderBackgroundAnimation"+this.animationProperties.type](this,e,i,this.animationProperties,1,this.direction),this.slides.eq(this.current).css("zIndex",2),this.slides.eq(1-this.current).css("zIndex",3),this.timeline.to(this.slides.eq(this.current),.5,{opacity:0},this.currentAnimation.getExtraDelay()),this.timeline.to(this.slides.eq(1-this.current),.5,{opacity:1},this.currentAnimation.getExtraDelay()),this.currentAnimation.postSetup()):(this.timeline.to(this.slides.eq(this.current),1.5,{opacity:0},0),this.timeline.to(this.slides.eq(1-this.current),1.5,{opacity:1},0)),this.current=1-this.current,this.timeline.play()},n.prototype.ended=function(){this.currentAnimation&&this.currentAnimation.ended(),this.next()},n.prototype.setAnimationProperties=function(t){var e=this.animationProperties;this.animationProperties=t,e||this.next()},n});
4
  }for(var s in e)this.deviceProperty[s][t]!==n&&""!==this.deviceProperty[s][t]||(this.deviceProperty[s][t]=e[s])}else{for(var s in e)this.deviceProperty[s][t]=e[s];for(var s in this.deviceProperty){var o=this._getDefault(s.toLowerCase()+t.toLowerCase());o!==n&&(this.deviceProperty[s][t]=o)}}this.property[t]=this.deviceProperty.desktopPortrait[t]},r.prototype.removeProperty=function(t){if(delete this.property[t],this.layer.removeData(t.toLowerCase()).removeAttr("data-"+t.toLowerCase()),this.isDeviceProp[t])for(var e in this.deviceProperty)delete this.deviceProperty[e][t],this.layer.removeData(e.toLowerCase()+t.toLowerCase()).removeAttr("data-"+e.toLowerCase()+t.toLowerCase());delete this.isDeviceProp[t],delete this.propertyScope[t]},r.prototype.removeProperties=function(t){for(var e=0;e<t.length;e++)this.removeProperty(t[e])},r.prototype.getPropertiesData=function(t){for(var e={},i=0;i<t.length;i++){var r=t[i];if(this.property[r]!==n&&(e[r]=this.property[r]),this.isDeviceProp[r])for(var s in this.deviceProperty)this.deviceProperty[s][r]!==n&&(e[s.toLowerCase()+r]=this.deviceProperty[s][r])}return e},r.prototype.setProperty=function(t,e,i){this.propertyScope[t]!==n&&("function"==typeof this.propertyScope[t]["setProperty"+t]?this.propertyScope[t]["setProperty"+t](t,e,i):this._setProperty(t,e,i))},r.prototype._setProperty=function(t,e,i){this.store(t,e,!0,i),"manager"!=i&&this.$.trigger("propertyChanged",[t,this.getProperty(t)])},r}),N2Require("CanvasManager",[],["smartSlider"],function(t,e,i,n){"use strict";function r(n,r,s){this.mode="desktopPortrait",this.slideEditManager=n,this.isStatic=r,this.ready=t.Deferred(),this.shouldPreventActivationBubble=!1,this.$=t(this),i.canvasManager=this,this.$highlight=t('<div class="n2-ss-layer-highlight n2-ss-layer-highlight-n" /><div class="n2-ss-layer-highlight n2-ss-layer-highlight-e" /><div class="n2-ss-layer-highlight n2-ss-layer-highlight-s" /><div class="n2-ss-layer-highlight n2-ss-layer-highlight-w" />'),this.initSelectMode(),this.layerWindow=new e.LayerWindow(this),this.layerOptions=new e.ComponentSettings(this),this.ui=new e.CanvasUserInterface(this),this.mainContainer=new e.MainContainer(this),this.itemEditor=new e.ItemManager(this,s),this.mainContainer.lateInit(),this._initDeviceModeChange(),this.canvasSettings=new e.CanvasSettings(this),this.layerOptions.startFeatures(),this.hotkeys(),this.addContextMenu(),this.mainContainer.refreshHasLayers();var o=t("#n2-ss-editor-mode .n2-radio-option"),a=t.proxy(function(t){switch(this.updateEditorMode(t),t){case"content":o.eq(0).addClass("n2-active"),o.eq(1).removeClass("n2-active");break;case"canvas":o.eq(0).removeClass("n2-active"),o.eq(1).addClass("n2-active")}},this);if(this.mainContent&&this.mainContent.container.getLayerCount())a("content");else{var l=this.mainContainer.container.getSortedLayers();if(this.mainContent&&l.length>1||!this.mainContent&&l.length>0)a("canvas");else{var h=t.jStorage.get("editormode");h||(h="content",t.jStorage.set("editormode",h)),a(h)}}o.on("click",t.proxy(function(e){o.removeClass("n2-active");var i=t(e.currentTarget),n=i.data("mode");i.addClass("n2-active"),n!=this.currentEditorMode&&(this.updateEditorMode(n),t.jStorage.set("editormode",n))},this)),this.isMultiDrag=!1}var s={16:0,38:0,40:0,37:0,39:0},o={97:"left",98:"center",99:"right",100:"left",101:"center",102:"right",103:"left",104:"center",105:"right"},a={97:"bottom",98:"bottom",99:"bottom",100:"middle",101:"middle",102:"middle",103:"top",104:"top",105:"top"},l={OFF:0,ON:1,GROUP:2};return r.prototype.updateEditorMode=function(e){this.currentEditorMode=e,t("body").attr("data-editormode",this.currentEditorMode)},r.prototype.getMode=function(){return this.mode},r.prototype.getResponsiveRatio=function(t){return"h"==t?i.frontend.responsive.lastRatios.slideW:"v"==t?i.frontend.responsive.lastRatios.slideH:0},r.prototype.setMainContent=function(t){this.mainContent=t},r.prototype.isGroup=function(t){return!1},r.prototype.isRow=function(t){return t instanceof e.Row},r.prototype.isCol=function(t){return t instanceof e.Col},r.prototype.isLayer=function(t){return t instanceof e.Layer},r.prototype.isContent=function(t){return t instanceof e.Content},r.prototype._initDeviceModeChange=function(){var e=t("#layerresettodesktop").on("click",t.proxy(this.__onResetToDesktopClick,this));this.resetToDesktopTRElement=e.closest("tr"),this.resetToDesktopGlobalElement=t("#n2-ss-layer-reset-to-desktop").on("click",t.proxy(function(){"block"==this.resetToDesktopTRElement.css("display")&&e.trigger("click")},this));var n=t("#n2-ss-layer-show-on"),r={},s=i.frontend.responsive.parameters.deviceModes;for(var o in s)s[o]&&(r[o]=t('<div class="n2-radio-option"><i class="n2-i n2-it n2-i-'+o+'"></i></div>').on("click",t.proxy(function(t){this.layerOptions.currentForm[t].data("field").onoff.trigger("click")},this,o)).appendTo(n));n.children().first().addClass("n2-first"),n.children().last().addClass("n2-last"),this.globalShowOnDeviceCB=function(t){"undefined"!=typeof r[t]&&r[t].toggleClass("n2-active",1==this.layerOptions.currentForm[t].val())},this.layerOptions.forms.global.desktopPortrait.on("nextendChange",t.proxy(this.globalShowOnDeviceCB,this,"desktopPortrait")),this.layerOptions.forms.global.desktopLandscape.on("nextendChange",t.proxy(this.globalShowOnDeviceCB,this,"desktopLandscape")),this.layerOptions.forms.global.tabletPortrait.on("nextendChange",t.proxy(this.globalShowOnDeviceCB,this,"tabletPortrait")),this.layerOptions.forms.global.tabletLandscape.on("nextendChange",t.proxy(this.globalShowOnDeviceCB,this,"tabletLandscape")),this.layerOptions.forms.global.mobilePortrait.on("nextendChange",t.proxy(this.globalShowOnDeviceCB,this,"mobilePortrait")),this.layerOptions.forms.global.mobileLandscape.on("nextendChange",t.proxy(this.globalShowOnDeviceCB,this,"mobileLandscape")),t("#layershow").data("field").setAvailableDevices(s),t("#layergroup-show").data("field").setAvailableDevices(s),this.__onChangeDeviceOrientation(),i.frontend.sliderElement.on("SliderDeviceOrientation",t.proxy(function(){this.__onChangeDeviceOrientation()},this)),this.ready.resolve()},r.prototype.refreshMode=function(){this.__onChangeDeviceOrientation(),i.frontend.responsive.reTriggerSliderDeviceOrientation()},r.prototype.__onChangeDeviceOrientation=function(){this.mode=i.frontend.responsive.getNormalizedModeString(),this.resetToDesktopTRElement.css("display","desktopPortrait"==this.mode?"none":""),this.resetToDesktopGlobalElement.css("display","desktopPortrait"==this.mode?"none":""),this.mainContainer.container.changeEditorModes(this.mode)},r.prototype.__onResetToDesktopClick=function(){if(this.mainContainer.getSelectedLayer()){var t=this.getMode();this.mainContainer.getSelectedLayer().resetMode(t)}},r.prototype.copyOrResetMode=function(t){var e=this.getMode();"desktopPortrait"==e?"desktopPortrait"!=t&&this.mainContainer.container.resetModes(t):t==e?this.mainContainer.container.resetModes(t):this.mainContainer.container.copyModes(e,t)},r.prototype.getSnap=function(){return this.canvasSettings.get("n2-ss-snap-to-enabled")?t(this.isStatic?".n2-ss-static-slide .n2-ss-layer.ui-resizable:not(.n2-ss-layer-locked):not(.n2-ss-layer-parent):not(.n2-ss-layer-selected):visible, .n2-ruler-user-guide":".n2-ss-slide.n2-ss-slide-active .n2-ss-layer.ui-resizable:not(.n2-ss-layer-locked):not(.n2-ss-layer-parent):not(.n2-ss-layer-selected):visible, .n2-ruler-user-guide"):!1},r.prototype.getHTML=function(){for(var e=t("<div></div>"),i=this.mainContainer.container.getAllLayers(),n=0;n<i.length;n++)e.append(i[n].getHTML(!0));return e.html()},r.prototype.getData=function(){return this.mainContainer.container.getData()},r.prototype.importLayers=function(e,i){var n=(this.mainContainer,t.extend(!0,[],e));i&&this.mainContainer.deleteLayers(),this._idTranslation={};for(var r=this.dataToLayers(n),s=0;s<r.length;s++)this.mainContainer.container.append(r[s]);if(this.refreshMode(),!this.mainContainer.getSelectedLayer()){var n=this.mainContainer.container.getSortedLayers();n.length>0&&n[0].activate()}},r.prototype.loadComponentWithNode=function(t,e,i,n){var r=t.container.append(e);return n&&this.refreshMode(),r},r.prototype.insertComponentWithNode=function(t,e,i,n,r){var s=t.container.insertAt(e,i);return r&&this.refreshMode(),s},r.prototype.fixActiveLayer=function(){var t=this.mainContainer.getSelectedLayer();(0==t||t.isDeleted)&&this.resetActiveLayer()},r.prototype.resetActiveLayer=function(){var t=this.mainContainer.container.getSortedLayers();t.length?t[t.length-1].activate():this.changeActiveLayer(null)},r.prototype.changeActiveLayer=function(e,i){var n=this.mainContainer.getSelectedLayer();n&&!n.isDeleted&&(n.$.off("propertyChanged.editor").off(".active"),n.deActivate()),this.mainContainer.activeLayer=e,i||this.exitSelectMode(),e&&(this.layerOptions.changeActiveComponent(e,e.type,e.placement.getType(),e.property),e.$.on({"propertyChanged.editor":t.proxy(this.layerOptions.onUpdateField,this.layerOptions),"placementChanged.active":t.proxy(function(t,i,n){this.layerOptions.changeActiveComponentPlacement(i,e.property)},this)})),this.$.trigger("activeLayerChanged")},r.prototype.highlight=function(t){this.$highlight.appendTo(t.layer)},r.prototype.deHighlight=function(t){this.$highlight.detach()},r.prototype["delete"]=function(){this.mainContainer.getSelectedLayer()&&this.doActionOnActiveLayer("delete")},r.prototype.duplicate=function(){this.mainContainer.getSelectedLayer()&&this.doActionOnActiveLayer("duplicate",[this.selectMode!=l.ON,!1])},r.prototype.copy=function(e){var i;if(e==n)if(1==this.selectMode)i=this.selectedLayers;else{var r=this.mainContainer.getSelectedLayer();r&&(i=this.isCol(r)||this.isContent(r)?r.container.getSortedLayers():[r])}else i=this.isCol(e)||this.isContent(e)?e.container.getSortedLayers():[e];var s=this.mainContainer.getLayerData(i);s.length&&t.jStorage.set("ss3layersclipboard",JSON.stringify(s))},r.prototype.paste=function(e){var i=t.jStorage.get("ss3layersclipboard");if(i){var r=JSON.parse(i);if(r.length){var s;s=e!==n&&e?this.isCol(e)||this.isContent(e)?e:e.group:this.mainContainer.getActiveGroup(),this.mainContainer.addLayers(r,s)}}},r.prototype.hasLayersOnClipboard=function(){return!!t.jStorage.get("ss3layersclipboard")},r.prototype.addContextMenu=function(){t("#n2-ss-0 .n2-ss-currently-edited-slide").nextendContextMenu({onShow:t.proxy(function(e,i){var n=t(e.target),r=n.closest(".n2-ss-layer"),s=r.data("layerObject");s||(s=this.mainContainer.getSelectedLayer()),s&&(this.isCol(s)||this.isContent(s)?i.addItem("Copy child layers","n2-i-copy",t.proxy(function(){this.copy(s)},this)):i.addItem("Copy layer","n2-i-copy",t.proxy(function(){this.selectMode==l.ON?this.copy():this.copy(s)},this))),this.hasLayersOnClipboard()&&i.addItem("Paste layer(s)","n2-i-paste",t.proxy(function(){this.paste(s)},this)),i.addItem("Copy slide","n2-i-copy",t.proxy(function(){this.slideEditManager.copySlide()},this)),this.slideEditManager.hasCopiedSlide()&&i.addItem("Paste slide","n2-i-paste",t.proxy(function(){this.slideEditManager.pasteSlide()},this))},this)})},r.prototype.initSelectMode=function(){this.selectMode=l.OFF,this.selectedLayers=[],t(".n2-ss-layer-list-top-bar .n2-button").on("mousedown",t.proxy(function(e){switch(e.preventDefault(),t(e.currentTarget).data("action")){case"delete":this["delete"]();break;case"duplicate":this.duplicate();break;case"group":this.createGroupFromSelected();break;case"cancel":this.exitSelectMode()}},this))},r.prototype.startSelection=function(t){t?(this.selectMode==l.ON&&this.exitSelectMode(),this.changeSelectMode(l.GROUP)):this.changeSelectMode(l.ON)},r.prototype.changeSelectMode=function(e){var i=this.selectMode;i!=e&&(i==l.ON?t("#n2-admin").removeClass("n2-ss-select-layer-mode-on"):i==l.GROUP&&t("#n2-admin").removeClass("n2-ss-select-layer-mode-group"),this.selectMode=e,i==l.GROUP&&e==l.ON&&this.selectedLayers[0].activate(null,null,!0),e==l.OFF?t("#n2-admin").removeClass("n2-ss-select-layer-mode"):(t("#n2-admin").addClass("n2-ss-select-layer-mode"),e==l.ON?t("#n2-admin").addClass("n2-ss-select-layer-mode-on"):e==l.GROUP&&t("#n2-admin").addClass("n2-ss-select-layer-mode-group")),this.selectMode==l.OFF?t("body").off(".n2-ss-selection"):t("body").on("mousedown.n2-ss-selection",t.proxy(function(t){3!=event.which&&"main"==nextend.context.getCurrentWindow()&&nextend.context.mouseDownArea===!1&&this.exitSelectMode()},this)))},r.prototype.endSelection=function(t){t&&this.selectMode==l.GROUP&&this.exitSelectMode()},r.prototype.selectLayer=function(t,e){if("layer"!=t.type)return!0;if(this.selectMode!=l.ON){var i=this.mainContainer.getSelectedLayer();if("layer"!=i.type)return t.activate(null),!0;this.startSelection(!1),e&&this.selectedLayers.push(i)}return this._selectLayer(t),!0},r.prototype._selectLayer=function(e){var i=t.inArray(e,this.selectedLayers);if(-1!=i){if(this.selectMode==l.ON&&this.selectedLayers.length<=1)return this.exitSelectMode(),!1;var n=this.selectedLayers[i];if(this.selectedLayers.splice(i,1),e.layerRow.removeClass("n2-selected"),e.layer.removeClass("n2-ss-layer-selected"),this.selectMode==l.ON&&this.selectedLayers.length<=1)return this.selectedLayers[0].activate(),this.exitSelectMode(),!1;n===this.mainContainer.getSelectedLayer()&&this.selectedLayers[0].activate(!1,null,!0)}else{for(var r=this.selectedLayers.length,s=0;s<this.selectedLayers.length;s++)if(e.layer.add(this.selectedLayers[s].layer).index(this.selectedLayers[s].layer)>0){r=s;break}this.selectedLayers.splice(r,0,e)}for(var s=0;s<this.selectedLayers.length;s++)this.selectedLayers[s].layerRow.addClass("n2-selected"),this.selectedLayers[s].layer.addClass("n2-ss-layer-selected")},r.prototype.addSelection=function(t,e){e||this.changeSelectMode(l.ON);for(var i=0;i<t.length;i++)this._selectLayer(t[i],!1)},r.prototype.exitSelectMode=function(){if(this.selectMode){for(var e=0;e<this.selectedLayers.length;e++)this.selectedLayers[e]!=this.mainContainer.getSelectedLayer()&&this.selectedLayers[e].layerRow.removeClass("n2-active"),this.selectedLayers[e].layerRow.removeClass("n2-selected"),this.selectedLayers[e].layer.removeClass("n2-ss-layer-selected");t("#n2-admin").removeClass("n2-ss-select-layer-mode"),this.selectedLayers=[],this.changeSelectMode(l.OFF)}},r.prototype.doActionOnActiveLayer=function(e,i){if(this.selectMode==l.ON)for(var n=t.extend([],this.selectedLayers),r=0;r<n.length;r++)n[r][e].apply(n[r],i);else{var s=this.mainContainer.getSelectedLayer();s&&s[e].apply(s,i)}},r.prototype.canvasDragStart=function(t,e){if(this.selectMode&&"canvas"==this.currentEditorMode&&"absolute"==e.mode){for(var i=!1,n=0;n<this.selectedLayers.length;n++){var r=this.selectedLayers[n],s=r.layer;if(s[0]!=e.layer.layer[0]){var o=s.css("display");"none"==o&&s.css("display",""),r._originalPosition=s.position(),"none"==o&&s.css("display","none")}else i=!0}i||this.exitSelectMode(),this.isMultiDrag=!0}},r.prototype.canvasDragMove=function(t,e){if(this.isMultiDrag===!0)for(var i={left:e.position.left+e.canvasOffset.left-e.originalOffset.left,top:e.position.top+e.canvasOffset.top-e.originalOffset.top},n=0;n<this.selectedLayers.length;n++){var r=this.selectedLayers[n];if(!this.isGroup(r)){var s=r.layer;s[0]!=e.layer.layer[0]&&(s.css({left:r._originalPosition.left+i.left,top:r._originalPosition.top+i.top,bottom:"auto",right:"auto"}),r.placement.doAction("triggerLayerResized"))}}},r.prototype.canvasDragStop=function(t,e){if(this.isMultiDrag===!0){for(var i=0;i<this.selectedLayers.length;i++){var n=this.selectedLayers[i];if(!this.isGroup(n)){var r=n.layer;if(r[0]!=e.layer.layer[0]){var s=r.css("display");"none"==s&&r.css("display","block");var o=parseInt(n.layer.css("left")),a=parseInt(n.layer.css("top"));n.placement.current.setPosition(o,a),n.placement.doAction("triggerLayerResized"),"none"==s&&r.css("display","none")}}}return this.isMultiDrag=!1,!0}return!1},r.prototype.historyDeleteGroup=function(t){t.getSelf()["delete"]()},r.prototype.historyCreateGroup=function(t){var i=new e.Group(this,this.mainContainer,{},null);i.create(),t.setSelf(i)},r.prototype.createGroupFromSelected=function(){var t;switch(this.selectMode){case l.ON:t=new e.Group(this,this.mainContainer,{},null),t.create(),i.history.addSimple(this,this.historyDeleteGroup,this.historyCreateGroup,[t]),t.addLayers(this.selectedLayers),this.exitSelectMode(),t.activate();break;case l.OFF:var n=this.mainContainer.getSelectedLayer();n.group instanceof e.Group?n.group.activate():(t=new e.Group(this,this.mainContainer,{},null),t.create(),i.history.addSimple(this,this.historyDeleteGroup,this.historyCreateGroup,[t]),t.addLayers([n]),t.activate());break;case l.GROUP:}},r.prototype.createRow=function(t){var i=new e.Row(this,t,{});return i.create(),i.hightlightStructure(),{layer:i}},r.prototype.createCol=function(t){var e=t,i=null;if(this.isCol(e))i=e.group.createCol();else if(this.isRow(e))i=e.createCol();else{if(!this.isCol(e.group))return this.createRow(t);i=e.group.group.createCol()}return i.activate(null),{layer:i}},r.prototype.preventActivationBubbling=function(){return this.shouldPreventActivationBubble?!1:(this.shouldPreventActivationBubble=!0,!0)},r.prototype.allowActivation=function(){this.shouldPreventActivationBubble=!1},r.prototype.hotkeys=function(){t(window).on({keydown:t.proxy(function(e){if(!("TEXTAREA"==e.target.tagName||"INPUT"==e.target.tagName||i.layerAnimationManager&&i.layerAnimationManager.timelineControl&&i.layerAnimationManager.timelineControl.isActivated())){var n=this.mainContainer.getSelectedLayer(),r=e.keyCode;if(r>=49&&57>=r){var l=e.originalEvent.location||e.originalEvent.keyLocation||0;3==l&&(r+=48)}if(n)if(46==r||8==r)this["delete"](),e.preventDefault();else if(35==r)this.duplicate(),e.preventDefault();else if(16==r)s[r]=1;else if(38==r){if(!s[r]){var h=t.proxy(function(){this.doActionOnActiveLayer("moveY",[-1*(s[16]?10:1)])},this);h(),s[r]=setInterval(h,100)}e.preventDefault()}else if(40==r){if(!s[r]){var h=t.proxy(function(){this.doActionOnActiveLayer("moveY",[s[16]?10:1])},this);h(),s[r]=setInterval(h,100)}e.preventDefault()}else if(37==r){if(!s[r]){var h=t.proxy(function(){this.doActionOnActiveLayer("moveX",[-1*(s[16]?10:1)])},this);h(),s[r]=setInterval(h,100)}e.preventDefault()}else if(39==r){if(!s[r]){var h=t.proxy(function(){this.doActionOnActiveLayer("moveX",[s[16]?10:1])},this);h(),s[r]=setInterval(h,100)}e.preventDefault()}else if(r>=97&&105>=r){var d=o[r],c=a[r],p=!1;this.layerOptions.forms.placement.absolute.align.val()==d&&this.layerOptions.forms.placement.absolute.valign.val()==c&&(p=!0),this.layerOptions.layerFeatures.horizontalAlign(d,p),this.layerOptions.layerFeatures.verticalAlign(c,p)}else if(65==r){e.preventDefault();var u=this.mainContainer.getSelectedLayer();u&&"absolute"==u.placement.getType()&&u.placement.current.fit()}(e.ctrlKey||e.metaKey)&&(90==r?e.shiftKey?i.history.redo()&&e.preventDefault():i.history.undo()&&e.preventDefault():71==r?(this.createGroupFromSelected(),e.preventDefault()):68==r?(e.preventDefault(),this.slideEditManager.copySlide()):70==r?(e.preventDefault(),this.slideEditManager.pasteSlide()):67==r?this.copy():86==r&&this.paste())}},this),keyup:t.proxy(function(t){"undefined"!=typeof s[t.keyCode]&&s[t.keyCode]&&(clearInterval(s[t.keyCode]),s[t.keyCode]=0)},this)})},r.prototype.getSelf=function(){return this},r}),N2Require("CanvasUserInterface",[],["smartSlider"],function(t,e,i,n){"use strict";function r(e){this.canvasManager=e,this.isShown=!t.jStorage.get("ssLayersShown",!1),this.tlHeight=t.jStorage.get("ssLayersHeight")||200,this.$container=t("#n2-ss-layers"),this.fixScroll(),this.switchLayerList(),this.topBar=t(".n2-ss-layer-list-top-bar").on("mousedown",t.proxy(this.resizeStart,this)),this.topBar.find(".n2-ss-layer-list-opener").on("click",t.proxy(function(t){t.preventDefault(),this.switchLayerList()},this)),t(".n2-ss-slide-show-layers").on("click",t.proxy(function(t){t.preventDefault(),this.switchLayerList()},this)),this.onResize(),t(window).on("resize",t.proxy(this.onResize,this))}return r.prototype.onResize=function(){var t=this.$container.height();this.paneLeft.height(t-48),this.paneRight.height(t-48)},r.prototype.onActivateLayer=function(t){var e=this.paneLeft.scrollTop(),i=0,n=t;do i+=n.layerRow.get(0).offsetTop,n=n.group;while(n!==this.canvasManager.mainContainer);(e>i||i>e+this.paneLeft.height()-40)&&(this.paneLeft.scrollTop(i),this.paneRight.scrollTop(i))},r.prototype.fixScroll=function(){this.paneLeft=t(".n2-ss-layers-sidebar-rows"),this.paneRight=t(".n2-ss-timeline-content-layers-container");var e=t.proxy(function(t){var e=this.paneLeft.scrollTop();t.originalEvent.deltaY>0?e+=40:e-=40,e=40*Math.round(e/40),this.paneLeft.scrollTop(e),this.paneRight.scrollTop(e),t.preventDefault()},this);this.paneLeft.on("mousewheel",e),this.paneLeft.on("scroll",t.proxy(function(t){var e=this.paneLeft.scrollTop();this.paneRight.scrollTop(e),t.preventDefault()},this)),this.paneRight.on("mousewheel",e)},r.prototype.resizeStart=function(e){this.isShown&&(e.target==this.topBar[0]||t(e.target).hasClass("n2-h2"))&&(e.preventDefault(),this.startY=e.clientY,this.height=this.$container.height(),t("body").on({"mousemove.n2-ss-tl-resize":t.proxy(this.resizeMove,this),"mouseup.n2-ss-tl-resize":t.proxy(this.resizeStop,this),"mouseleave.n2-ss-tl-resize":t.proxy(this.resizeStop,this)}))},r.prototype.resizeMove=function(t){t.preventDefault(),this.setTLHeight(this._calculateDesiredHeight(t))},r.prototype.resizeStop=function(e){e.preventDefault(),t("body").off(".n2-ss-tl-resize");var i=this._calculateDesiredHeight(e);this.setTLHeight(i),this.tlHeight=i,t.jStorage.set("ssLayersHeight",i),t("#n2-admin").triggerHandler("resize")},r.prototype._calculateDesiredHeight=function(t){var e=this.startY-t.clientY+this.height-48;return this.__calculateDesiredHeight(e)},r.prototype.__calculateDesiredHeight=function(t){return 40*Math.round(Math.min(Math.max(40,t),(window.innerHeight||document.documentElement.clientHeight)/2)/40)+48},r.prototype.switchLayerList=function(){this.isShown=!this.isShown,this.$container.toggleClass("n2-active",this.isShown),this.isShown?this.setTLHeight(this.tlHeight):this.setTLHeight(48),t.jStorage.set("ssLayersShown",this.isShown)},r.prototype.setTLHeight=function(t){t=Math.max(48,t),this.$container.height(t),t=this.$container.height(),this.paneLeft.height(t-48),this.paneRight.height(t-48),nextend.triggerResize()},r.prototype.activateAdd=function(t,e){this.$add.css({left:t,top:e}).appendTo(this.$container)},r}),N2Require("LayerFeatures",[],["smartSlider"],function(t,e,i,n){"use strict";function r(t,e){this.fields=t,this.canvasManager=e,this.initParentLinker(),this.initAlign(),this.initEvents()}var s={left:0,center:1,right:2,top:0,middle:1,bottom:2};return r.prototype.initParentLinker=function(){var e=this.fields.parentid.data("field");t("#n2-ss-layer-parent-linker").on({click:function(t){e.click(t)}})},r.prototype.initAlign=function(){this.layerDefault={align:null,valign:null};var e=t("#n2-ss-layer-horizontal-align .n2-radio-option"),i=t("#n2-ss-layer-vertical-align .n2-radio-option");e.add(i).on("click",t.proxy(function(n){if(n.ctrlKey||n.metaKey){var r=t(n.currentTarget),s=r.hasClass("n2-sub-active"),o=r.data("align");switch(o){case"left":case"center":case"right":e.removeClass("n2-sub-active"),s?(t.jStorage.set("ss-item-horizontal-align",null),this.layerDefault.align=null):(t.jStorage.set("ss-item-horizontal-align",o),this.layerDefault.align=o,r.addClass("n2-sub-active"));break;case"top":case"middle":case"bottom":i.removeClass("n2-sub-active"),s?(t.jStorage.set("ss-item-vertical-align",null),this.layerDefault.valign=null):(t.jStorage.set("ss-item-vertical-align",o),this.layerDefault.valign=o,r.addClass("n2-sub-active"))}}else if(this.canvasManager.mainContainer.getSelectedLayer()){var o=t(n.currentTarget).data("align");switch(o){case"left":case"center":case"right":this.horizontalAlign(o,!0);break;case"top":case"middle":case"bottom":this.verticalAlign(o,!0)}}},this)),this.fields.align.on("nextendChange",t.proxy(function(){switch(e.removeClass("n2-active"),this.fields.align.val()){case"left":e.eq(0).addClass("n2-active");break;case"center":e.eq(1).addClass("n2-active");break;case"right":e.eq(2).addClass("n2-active")}},this)),this.fields.valign.on("nextendChange",t.proxy(function(){switch(i.removeClass("n2-active"),this.fields.valign.val()){case"top":i.eq(0).addClass("n2-active");break;case"middle":i.eq(1).addClass("n2-active");break;case"bottom":i.eq(2).addClass("n2-active")}},this));var n=t.jStorage.get("ss-item-horizontal-align",null),r=t.jStorage.get("ss-item-vertical-align",null);null!=n&&(e.eq(s[n]).addClass("n2-sub-active"),this.layerDefault.align=n),null!=r&&(i.eq(s[r]).addClass("n2-sub-active"),this.layerDefault.valign=r)},r.prototype.horizontalAlign=function(t,e){this.fields.align.val()!=t?this.fields.align.data("field").options.eq(s[t]).trigger("click"):e&&this.fields.left.val(0).trigger("change")},r.prototype.verticalAlign=function(t,e){this.fields.valign.val()!=t?this.fields.valign.data("field").options.eq(s[t]).trigger("click"):e&&this.fields.top.val(0).trigger("change")},r.prototype.initEvents=function(){var e=t("#n2-tab-events"),i=e.find(".n2-h3"),n=i.html(),r=t('<div class="n2-editor-header n2-h2 n2-uc"><span>'+n+"</span></div>");i.replaceWith(r)},r}),N2Require("LayerWindow",[],["smartSlider"],function(t,e,i,n){"use strict";function r(e){this.isMinimized=!1,this.detachedPosition={left:t.jStorage.get("ssPanelLeft")||200,top:t.jStorage.get("ssPanelTop")||100,height:t.jStorage.get("ssPanelHeight")||400},this.hasBreadcrumb=!1,this.lastHeight=this.detachedPosition.height,this.admin=t("#n2-admin"),this.sidebar=t("#n2-ss-layer-window").on("mousedown",t.proxy(nextend.context.setMouseDownArea,nextend.context,"sidebarClicked")),this.title=this.sidebar.find(".n2-ss-layer-window-title-inner"),this.sidebarTD=this.sidebar.parent(),this.canvasManager=e,i.layerWindow=this,this.viewPanes={layerEdit:t("#n2-tabbed-slide-editor-settings > .n2-tabs").addClass("n2-scrollable")};for(var n in this.viewPanes)this.viewPanes[n].on("DOMMouseScroll mousewheel",function(e){var i=!1;e.originalEvent&&(e.originalEvent.wheelDelta&&(i=e.originalEvent.wheelDelta/-1<0),e.originalEvent.deltaY&&(i=e.originalEvent.deltaY<0),e.originalEvent.detail&&(i=e.originalEvent.detail<0));var n=function(){return e.stopPropagation(),e.preventDefault(),e.returnValue=!1,!1};return!i&&this.scrollHeight<=t(this).innerHeight()+this.scrollTop+1?n():i&&0>=this.scrollTop-1?n():void 0});this.panelHeading=t("#n2-tabbed-slide-editor-settings").find(".n2-sidebar-tab-switcher .n2-td");var r=this.sidebar.find(".n2-ss-layer-window-title-nav-left");t('<a href="#"><i class="n2-i n2-i-minimize n2-i-grey-opacity"></i></a>').on("click",t.proxy(function(t){t.preventDefault(),this.toggleMinimize()},this)).appendTo(r);var s=this.sidebar.find(".n2-ss-layer-window-title-nav-right");t('<a href="#"><i class="n2-i n2-i-closewindow n2-i-grey-opacity"></i></a>').on("click",t.proxy(function(t){t.preventDefault(),this.hide()},this)).appendTo(s),nextend.tooltip.add(s),this.$breadcrumb=t('<div class="n2-ss-layer-window-breadcrumb"></div>').insertAfter("#n2-tabbed-slide-editor-settings > .n2-sidebar-tab-switcher");var o=t("#n2-ss-add-sidebar");t(".n2-ss-add-layer-button").on("click",function(e){e.preventDefault(),t("#n2-ss-layers-switcher > .n2-labels .n2-td").eq(0).trigger("click"),o.toggleClass("n2-active")}),t(".n2-ss-core-item").on("click",function(t){o.removeClass("n2-active")});var a=t("#wpadminbar, .navbar-fixed-top").height()+t(".n2-top-bar").height();this.$verticalBarInner=t(".n2-ss-add-sidebar-inner").each(function(){var e=t(this);e.fixTo(e.parent(),{top:a})}),this.$resizeInnerContainer=t("#n2-ss-layers-switcher_0, #n2-ss-layers-switcher_1"),this.extraHeightToRemove=60,this.$resizeInnerContainer.length||(this.extraHeightToRemove=0,this.$resizeInnerContainer=this.$verticalBarInner),this.$resizeInnerContainer.css("overflow","auto"),this.detach(),t("#n2-admin").on("resize",t.proxy(this.resizeVerticalBar,this)),t(window).on("resize",t.proxy(this.onResize,this)),t(".n2-ss-slide-duplicate-layer").on("click",t.proxy(function(t){t.preventDefault(),this.duplicate()},this.canvasManager)),t(".n2-ss-slide-delete-layer").on("click",t.proxy(function(t){t.preventDefault(),this["delete"]()},this.canvasManager)),t("body").on("mousedown",t.proxy(function(t){"main"==nextend.context.getCurrentWindow()&&nextend.context.mouseDownArea===!1&&this.hide()},this));var l=t('<div id="n2-ss-devicespecific-settings"></div>'),h=nextend.smartSlider.frontend.responsive.parameters.deviceModes;for(var n in h)if(h[n]){var d=n.replace(/([A-Z])/g," $1").split(" "),c=d[0],p=d[1].toLowerCase();l.append('<i class="n2-i n2-it n2-i-mini-'+c+"-"+p+'" data-device="'+c+'" data-orientation="'+p+'"></i>')}var u={mouseenter:t.proxy(function(t){l.appendTo(t.currentTarget)},this),mouseleave:t.proxy(function(t){l.detach()},this)};this.sidebar.find("[data-devicespecific] label").prepend('<span class="n2-i n2-i-mini-desktop-portrait"></span>'),this.sidebar.find("[data-devicespecific] label").on(u),l.find(".n2-i").on({click:t.proxy(function(e){e.preventDefault();var i=t(e.currentTarget);t("#n2-ss-devices").find('[data-device="'+i.data("device")+'"][data-orientation="'+i.data("orientation")+'"]').trigger("click")},this)})}return r.prototype.toggleMinimize=function(){this.isMinimized=!this.isMinimized,this.sidebar.toggleClass("n2-ss-layer-window-minized",this.isMinimized),this.isMinimized||this.onResize()},r.prototype.show=function(e,i){this.setTitle(e),t("body").addClass("n2-ss-layer-edit-visible")},r.prototype._show=function(){t("body").addClass("n2-ss-layer-edit-visible")},r.prototype.hide=function(){t("body").removeClass("n2-ss-layer-edit-visible")},r.prototype.isVisible=function(){return t("body").hasClass("n2-ss-layer-edit-visible")},r.prototype.hideWithDeferred=function(e){t("body").hasClass("n2-ss-layer-edit-visible")&&(this.hide(),e.done(t.proxy(this._show,this)))},r.prototype.setTitle=function(t){this.title.html(t.getName()),this.updateGroupTitle(t)},r.prototype.updateGroupTitle=function(e){var i;for(this.$breadcrumb.html(""),i=0;5>i&&(t('<span class="n2-window-title-structure-nav"><span>'+e.label+'</span><span class="n2-i n2-it n2-i-mini-arrow-thin"></span></span>').on({mouseenter:t.proxy(function(){this.canvasManager.highlight(this)},e),mouseleave:t.proxy(function(){this.canvasManager.deHighlight(this)},e),click:t.proxy(function(t){this.canvasManager.deHighlight(this),this.activate(t)},e)}).prependTo(this.$breadcrumb),e.group&&e.group!==this.canvasManager.mainContainer);i++)e=e.group;this.hasBreadcrumb=i>0,this.$breadcrumb.toggleClass("n2-has-breadcrumb",this.hasBreadcrumb),this.onResize()},r.prototype.getLayerEditExcludedHeight=function(){return 85+(this.hasBreadcrumb?23:0)},r.prototype.resizeVerticalBar=function(){this.$resizeInnerContainer.height((window.innerHeight||document.documentElement.clientHeight)-(t("#n2-ss-layers").is(":visible")&&t("#n2-ss-layers").hasClass("n2-active")?t("#n2-ss-layers").height():0)-t("#wpadminbar, .navbar-fixed-top").height()-t(".n2-top-bar").height()-this.extraHeightToRemove)},r.prototype.onResize=function(){this.sidebar.css("display","block"),this.resizeVerticalBar();var t=window.innerHeight||document.documentElement.clientHeight,e=this.sidebar.height()-this.getLayerEditExcludedHeight();this.viewPanes.layerEdit.height(e);var i={},n=window.innerWidth||document.documentElement.clientWidth,r=this.sidebar[0].getBoundingClientRect();r.left<0?i.left=0:r.left+r.width>n&&(i.left=Math.max(0,n-r.width)),r.height>t-r.top&&(i.top=t-r.top-r.height+r.top,i.top<0&&(this.lastHeight=i.height=r.height+i.top,i.top=0)),this.sidebar.css(i),this.sidebar.css("display","")},r.prototype.detach=function(){this.sidebar.css(this.detachedPosition),this.sidebar.appendTo(this.admin),this.admin.addClass("n2-sidebar-hidden"),t(window).off(".n2-ss-panel"),this.sidebar.removeClass("n2-sidebar-fixed"),this.sidebar.draggable({distance:5,handle:".n2-ss-layer-window-title",containment:"window",stop:t.proxy(function(e,i){
5
  this.sidebar.css("height",this.lastHeight);var n=this.sidebar[0].getBoundingClientRect();this.detachedPosition.left=n.left,this.detachedPosition.top=n.top,t.jStorage.set("ssPanelLeft",n.left),t.jStorage.set("ssPanelTop",n.top)},this),scroll:!1}).resizable({distance:5,handles:"s",stop:t.proxy(function(e,i){this.lastHeight=this.detachedPosition.height=this.sidebar.height(),t.jStorage.set("ssPanelHeight",this.detachedPosition.height)},this),create:t.proxy(function(e,i){t(e.target).find(".ui-resizable-handle").addClass("n2-ss-layer-window-resizer")},this)}),this.onResize(),nextend.triggerResize()},r.prototype.switchTab=function(t){this.panelHeading.filter('[data-tab="'+t+'"]').trigger("click")},r}),N2Require("PositionDisplay",[],["smartSlider"],function(t,e,i,n){"use strict";function r(){this.currentSource="",t(window).ready(t.proxy(this.ready,this))}return r.prototype.ready=function(){this.$body=t("body"),this.$el=t('<div class="n2 n2-ss-position-display"/>').appendTo("body")},r.prototype.show=function(t){""==this.currentSource&&(this.currentSource=t,this.$el.addClass("n2-active"),this.$body.addClass("n2-position-display-active"))},r.prototype.update=function(t,e,i){this.currentSource==e&&this.$el.html(i).css({left:t.pageX+10,top:t.pageY+10})},r.prototype.hide=function(t){this.currentSource!=t&&t!==n||(this.$body.removeClass("n2-position-display-active"),this.$el.removeClass("n2-active"),this.currentSource="")},i.positionDisplay=new r,r}),N2Require("Ruler",[],["smartSlider"],function(t,e,i,n){"use strict";function r(e){this.showGuides=1,this.guides=[],this.container=t('<div class="n2-ruler-container" />').appendTo("#n2-ss-slide-canvas-container-inner .n2-ss-slider-outer-container"),this.scale=10,this.vertical=t('<div class="n2-ruler n2-ruler-vertical unselectable"></div>').appendTo(".n2-ss-slider-real-container"),this.horizontal=t('<div class="n2-ruler n2-ruler-horizontal unselectable"></div>').appendTo(this.container),this.verticalSpans=t(),this.horizontalSpans=t(),this.onResize(),nextend.smartSlider.frontend.sliderElement.on("SliderResize",t.proxy(this.onSliderResize,this)),t(window).on("resize",t.proxy(this.onResize,this)),this.horizontal.on("mousedown",t.proxy(function(t){this.showGuides&&new o(this,this.horizontal,t)},this)),this.vertical.on("mousedown",t.proxy(function(t){this.showGuides&&new a(this,this.vertical,t)},this));try{e=t.extend({vertical:[],horizontal:[]},JSON.parse(Base64.decode(e)));for(var i=0;i<e.horizontal.length;i++){var n=new o(this,this.horizontal);n.setPosition(e.horizontal[i])}for(var i=0;i<e.vertical.length;i++){var n=new a(this,this.vertical);n.setPosition(e.vertical[i])}}catch(r){}nextend.ruler=this,this.measureToolVertical(),this.measureToolHorizontal()}function s(e,i,n){this.ruler=e,this.container=i,this.position=0,this.guide=t('<div class="n2-ruler-guide n2-ruler-user-guide"><div class="n2-ruler-guide-border"></div><div class="n2-ruler-guide-handle"></div></div>').appendTo(i).on("mousedown",t.proxy(function(t){t.preventDefault(),t.stopPropagation(),nextend.smartSlider.canvasManager.canvasSettings.settings["n2-ss-lock-guides"]||this["delete"]()},this)),this.ruler.addGuide(this),n&&this.create(n)}function o(){s.prototype.constructor.apply(this,arguments)}function a(){s.prototype.constructor.apply(this,arguments)}return r.prototype.addGuide=function(t){this.guides.push(t)},r.prototype.removeGuide=function(e){this.guides.splice(t.inArray(e,this.guides),1)},r.prototype.clearGuides=function(){for(var t=this.guides.length-1;t>=0;t--)this.guides[t]["delete"]()},r.prototype.onSliderResize=function(t,e){this.onResize()},r.prototype.onResize=function(){var e=nextend.smartSlider.frontend.responsive.responsiveDimensions,i=Math.max(e.slider.width,t("#n2-ss-slide-canvas-container").outerWidth(!0)-40),n=Math.max(e.slider.height,t("#n2-ss-slide-canvas-container").outerHeight(!0));this.container.css({width:i+40,height:n+40});for(var r=this.horizontalSpans.length-3;r<i/this.scale;r++){var s=t("<span />").appendTo(this.horizontal);r%10==0?s.addClass("n2-ss-ruler-mark-large").append("<span>"+r/10*100+"</span>"):r%2==0&&s.addClass("n2-ss-ruler-mark-medium"),this.horizontalSpans=this.horizontalSpans.add(s)}for(var r=this.verticalSpans.length-3;r<n/this.scale;r++){var s=t("<span />").appendTo(this.vertical);r%10==0?s.addClass("n2-ss-ruler-mark-large").append("<span>"+r/10*100+"</span>"):r%2==0&&s.addClass("n2-ss-ruler-mark-medium"),this.verticalSpans=this.verticalSpans.add(s)}},r.prototype.toArray=function(){for(var t={horizontal:[],vertical:[]},e=0;e<this.guides.length;e++)this.guides[e]instanceof o?t.horizontal.push(this.guides[e].position):this.guides[e]instanceof a&&t.vertical.push(this.guides[e].position);return t},r.prototype.measureToolVertical=function(){var e=t('<div class="n2-ruler-guide" style="z-index:1;"><div class="n2-ruler-guide-border" style="border-color: #f00;"></div></div>').css("display","none").appendTo(this.vertical),n=!1,r=t.proxy(function(){n||(n=!0,e.css("display",""),i.positionDisplay.show("Guide"))},this),s=t.proxy(function(){n&&(n=!1,e.css("display","none"),i.positionDisplay.hide("Guide"))},this);this.vertical.on({mouseenter:t.proxy(function(n){if(this.showGuides){var o=0,a=Math.round(this.vertical.offset().top);r(),this.vertical.on("mousemove.n2-ruler-measure-tool",t.proxy(function(n){if(t(n.target).hasClass("n2-ruler-guide-border")&&t(n.target).parent()[0]!=e[0])s();else if(r(),o!=n.pageY){var l=n.pageY-a;e.css("top",l),i.positionDisplay.update(n,"Guide",l-40+"px"),o=n.pageY}},this))}},this),mouseleave:t.proxy(function(){this.vertical.off(".n2-ruler-measure-tool"),s()},this)})},r.prototype.measureToolHorizontal=function(){var e=t('<div class="n2-ruler-guide" style="z-index:1;"><div class="n2-ruler-guide-border" style="border-color: #f00;"></div></div>').css("display","none").appendTo(this.horizontal),n=!1,r=t.proxy(function(){n||(n=!0,e.css("display",""),i.positionDisplay.show("Guide"))},this),s=t.proxy(function(){n&&(n=!1,e.css("display","none"),i.positionDisplay.hide("Guide"))},this);this.horizontal.on({mouseenter:t.proxy(function(n){if(this.showGuides){var o=0,a=Math.round(this.horizontal.offset().left);r(),this.horizontal.on("mousemove.n2-ruler-measure-tool",t.proxy(function(n){if(t(n.target).hasClass("n2-ruler-guide-border")&&t(n.target).parent()[0]!=e[0])s();else if(r(),o!=n.pageX){var l=Math.max(n.pageX-a,40);e.css("left",l),i.positionDisplay.update(n,"Guide",l-40+"px"),o=n.pageX}},this))}},this),mouseleave:t.proxy(function(){this.horizontal.off(".n2-ruler-measure-tool"),s()},this)})},s.prototype._position=function(t,e){return Math.max(0,t)},s.prototype.setPosition=function(t){this.position=t,this.refresh()},s.prototype.refresh=function(){this.positionRender(this.position)},s.prototype["delete"]=function(){this.ruler.removeGuide(this),this.guide.remove()},o.prototype=Object.create(s.prototype),o.prototype.constructor=o,o.prototype.create=function(t){var e=Math.round(this.container.offset().left)+40;this.position=this._position(t.pageX-e,t),this.positionRender(this.position)},o.prototype.rawPositionRender=function(t){this.guide.css("left",Math.max(0,t)+40)},o.prototype.positionRender=function(t){this.guide.css("left",Math.max(0,t)+40)},a.prototype=Object.create(s.prototype),a.prototype.constructor=a,a.prototype.create=function(t){var e=Math.round(this.container.offset().top)+40;this.position=this._position(t.pageY-e,t),this.positionRender(this.position)},a.prototype.rawPositionRender=function(t){this.guide.css("top",Math.max(0,t)+40)},a.prototype.positionRender=function(t){this.guide.css("top",Math.max(0,t)+40)},r}),N2Require("CanvasSettings",[],["smartSlider"],function(t,e,i,n){"use strict";function r(e){this.canvasManager=e,this.settings={};var i=t("#n2-ss-slide-canvas-settings").on("mouseleave",t.proxy(function(){i.removeClass("n2-active")},this));i.find("> a").on("click",function(t){t.preventDefault(),i.toggleClass("n2-active")}),this.$settingsPanel=i.find(".n2-ss-settings-panel-inner"),this.snapTo(),this.roundTo(),this.colorScheme(),this.canvasManager.slideEditManager.options.isAddSample||this.ruler()}return r.prototype._addSettings=function(e,i,n,r){this.settings[e]=parseInt(t.jStorage.get(e,n));var s=t('<a href="">'+i+'<span class="n2-setting-tick"><i class="n2-i n2-it n2-i-tick2"></i></span></a>').on("click",t.proxy(function(i){i.preventDefault(),this.settings[e]=1==this.settings[e]?0:1,t.jStorage.set(e,this.settings[e]),s.toggleClass("n2-setting-enabled",1==this.settings[e]),r(this.settings[e],!1)},this)).appendTo(this.$settingsPanel);s.toggleClass("n2-setting-enabled",1==this.settings[e]),r(this.settings[e],!0)},r.prototype._addAction=function(e,i){t('<a href="" class="n2-panel-action">'+e+"</a>").on("click",t.proxy(function(t){t.preventDefault(),i()},this)).appendTo(this.$settingsPanel)},r.prototype.get=function(t){return this.settings[t]},r.prototype.snapTo=function(){this._addSettings("n2-ss-snap-to-enabled",n2_("Smart Snap"),1,t.proxy(function(t){for(var e=this.mainContainer.container.getSortedLayers(),i=0;i<e.length;i++)e[i].placement.doAction("snap")},this.canvasManager))},r.prototype.roundTo=function(){this._addSettings("n2-ss-round-to-enabled",n2_("Round to 5px"),1,function(t){1==t?nextend.roundTo=5:nextend.roundTo=1})},r.prototype.colorScheme=function(){var e=t("#n2-ss-slide-canvas-container");this._addSettings("n2-ss-theme-dark",n2_("Dark Mode"),0,function(t){e.toggleClass("n2-ss-theme-dark",1==t)})},r.prototype.ruler=function(){i.ruler=new e.Ruler(t("#slideguides").val());var n=t("#n2-ss-slide-canvas-container");this._addSettings("n2-ss-ruler-enabled",n2_("Ruler"),1,t.proxy(function(t){n.toggleClass("n2-ss-has-ruler",1==t),nextend.triggerResize()},this)),this._addSettings("n2-ss-show-guides",n2_("Show Guides"),1,t.proxy(function(t){nextend.ruler.showGuides=t,n.toggleClass("n2-ss-show-guides",1==t)},this)),this._addSettings("n2-ss-lock-guides",n2_("Lock Guides"),0,t.proxy(function(t){n.toggleClass("n2-ss-lock-guides",1==t)},this)),this._addAction("Clear Guides",t.proxy(function(){nextend.ruler.clearGuides()},this))},r}),N2Require("PlacementAbsolute",["PlacementAbstract"],["smartSlider"],function(t,e,i,n){"use strict";function r(t,i,n){this.type="absolute",this.transferredProperties={},e.PlacementAbstract.prototype.constructor.apply(this,arguments),this.doThrottledTheResize=this.doTheResize,this._triggerLayerResizedThrottled=NextendThrottle(this._triggerLayerResized,30),this.parentIsVisible=!0,this.children=[]}var s=function(){var t=0;return window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){var i,n=(new Date).getTime();return i=Math.max(0,16-(n-t)),t=n+i,setTimeout(function(){e(n+i)},i)}}(),o={raf:!1,ratios:null,isThrottled:!1,layers:[]},a=function(){o.raf===!1&&(o.raf=!0,s(function(){for(var t=0;t<o.layers.length;t++)o.layers[t].isDeleted||o.layers[t].doTheResize(o.ratios,!0,o.isThrottled);o={raf:!1,ratios:null,isThrottled:!1,layers:[]}}))};return r.prototype=Object.create(e.PlacementAbstract.prototype),r.prototype.constructor=r,r.prototype.start=function(){this.$layer=this.layer.layer,this.$layerRow=this.layer.layerRow},r.prototype.preActivation=function(t){if("normal"==t.type){var e=this.layer.getProperty("height");e>0&&(this.transferredProperties.height=e)}},r.prototype.activated=function(e){var i=this.$layer.data("parentid");if(i){var n=t("#"+i);n.length>0?this.activatedAfterParentReady(e):setTimeout(t.proxy(function(){this.activatedAfterParentReady(e)},this),300)}else this._activated(e)},r.prototype.activatedAfterParentReady=function(e){var i=this.$layer.data("parentid");if(i){var n=t("#"+i);if(n.length>0){var r=n.data("layerObject");r?r.readyDeferred.done(t.proxy(this._activated,this,e)):n.on("layerStarted",t.proxy(function(i,n){n.readyDeferred.done(t.proxy(this._activated,this,e))},this))}else this.$layer.data("parentid",""),this._activated(e)}else this._activated(e)},r.prototype._activated=function(e){this.loadProperties(t.extend(e,this.transferredProperties)),this.transferredProperties={},this.$layer.css("zIndex",""),this.___makeLayerAlign(),this.___makeLayerResizeable()},r.cleanLayer=function(t){var e=["desktopPortrait","desktopLandscape","tabletPortrait","tabletLandscape","mobilePortrait","mobileLandscape"];t.removeAttr("data-align").removeAttr("data-valign").css({left:"",top:"",right:"",bottom:"",width:"",height:"","text-align":""});for(var i=["parentid","responsiveposition","responsivesize","parentalign","parentvalign","align","valign","left","top","width","height"],n={},r=0;r<i.length;r++){var s=i[r].toLowerCase();n[s]=t.data(s),t.removeAttr(s),t.removeData(s);for(var o=0;o<e.length;o++){var a=e[o].toLowerCase();n[a+s]=t.data(a+s),t.removeAttr(a+s),t.removeData(a+s)}}return n},r.prototype.deActivated=function(t){this.$layer.removeAttr("data-align").removeAttr("data-valign").css({left:"",top:"",right:"",bottom:"",width:"",height:"","text-align":""}),this.alignMarker.remove(),this.$layer.nextendResizable("destroy"),this.$layer.off(".n2-ss-absolute"),this.$layer.triggerHandler("LayerUnavailable");var e=["parentid","responsiveposition","responsivesize","parentalign","parentvalign","align","valign","left","top","width","height"],i=this.layer.getPropertiesData(e);return this.layer.removeProperties(e),this.chainParent.remove(),i},r.prototype.loadProperties=function(e){this.layer.createProperty("parentid",null,this.layer.layer,this),this.layer.createProperty("responsiveposition",1,this.layer.layer,this),this.layer.createProperty("responsivesize",1,this.layer.layer,this),this.layer.createDeviceProperty("parentalign",{desktopPortrait:"center"},this.layer.layer,this),this.layer.createDeviceProperty("parentvalign",{desktopPortrait:"middle"},this.layer.layer,this),this.layer.createDeviceProperty("align",{desktopPortrait:e.align||"center"},this.layer.layer,this),this.layer.createDeviceProperty("valign",{desktopPortrait:e.valign||"middle"},this.layer.layer,this),this.layer.createDeviceProperty("left",{desktopPortrait:e.left||0},this.layer.layer,this),this.layer.createDeviceProperty("top",{desktopPortrait:e.top||0},this.layer.layer,this),this.layer.createDeviceProperty("width",{desktopPortrait:e.width||"auto"},this.layer.layer,this),this.layer.createDeviceProperty("height",{desktopPortrait:e.height||"auto"},this.layer.layer,this);var i=this.layer.layer;this.subscribeParentCallbacks={},this.layer.getProperty("parentid")&&this.subscribeParent(),i.attr({"data-align":this.layer.getProperty("align"),"data-valign":this.layer.getProperty("valign")});var n=null;this.chainParent=t('<div class="n2-ss-layer-chain-parent n2-button n2-button-icon n2-button-xs n2-radius-s n2-button-blue"><i class="n2-i n2-i-layerunlink"></i></div>').on({click:t.proxy(this.unlink,this),mouseenter:t.proxy(function(){n=t("#"+this.layer.getProperty("parentid")).addClass("n2-highlight")},this),mouseleave:t.proxy(function(){n&&(n.removeClass("n2-highlight"),n=null)},this)}).appendTo(this.$layer)},r.prototype.triggerLayerResized=function(t,e){t?this._triggerLayerResized(t,e):this._triggerLayerResizedThrottled(!0,e)},r.prototype._triggerLayerResized=function(t,e){this.layer.isDeleted||this.$layer.triggerHandler("LayerResized",[e||{slideW:this.canvasManager.getResponsiveRatio("h"),slideH:this.canvasManager.getResponsiveRatio("v")},t||!1])},r.prototype.___makeLayerAlign=function(){this.alignMarker=t('<div class="n2-ss-layer-cc" />').appendTo(this.$layer)},r.prototype.___makeLayerResizeable=function(){this._resizableJustClick=!1,this.$layer.nextendResizable({handles:"n, e, s, w, ne, se, sw, nw",_containment:this.canvasManager.mainContainer.layer,start:t.proxy(this.____makeLayerResizeableStart,this),resize:t.proxy(this.____makeLayerResizeableResize,this),stop:t.proxy(this.____makeLayerResizeableStop,this),create:t.proxy(function(){this.$layer.find(".ui-resizable-handle, .n2-ss-layer-cc").on({mousedown:t.proxy(function(t){this._resizableJustClick=[t.clientX,t.clientY]},this),mouseup:t.proxy(function(e){if(this._resizableJustClick&&Math.abs(Math.sqrt(Math.pow(this._resizableJustClick[0]-e.clientX,2)+Math.pow(this._resizableJustClick[1]-e.clientY,2)))<1){var i=t(e.currentTarget),n=this.canvasManager.layerOptions.layerFeatures;i.hasClass("ui-resizable-nw")?(n.horizontalAlign("left",!1),n.verticalAlign("top",!1)):i.hasClass("ui-resizable-w")?(n.horizontalAlign("left",!1),n.verticalAlign("middle",!1)):i.hasClass("ui-resizable-sw")?(n.horizontalAlign("left",!1),n.verticalAlign("bottom",!1)):i.hasClass("ui-resizable-n")?(n.horizontalAlign("center",!1),n.verticalAlign("top",!1)):i.hasClass("n2-ss-layer-cc")?(n.horizontalAlign("center",!1),n.verticalAlign("middle",!1)):i.hasClass("ui-resizable-s")?(n.horizontalAlign("center",!1),n.verticalAlign("bottom",!1)):i.hasClass("ui-resizable-ne")?(n.horizontalAlign("right",!1),n.verticalAlign("top",!1)):i.hasClass("ui-resizable-e")?(n.horizontalAlign("right",!1),n.verticalAlign("middle",!1)):i.hasClass("ui-resizable-se")&&(n.horizontalAlign("right",!1),n.verticalAlign("bottom",!1))}this._resizableJustClick=!1},this)})},this),smartguides:t.proxy(function(){return this.$layer.triggerHandler("LayerParent"),this.canvasManager.getSnap()},this),tolerance:5}).on({"mousedown.n2-ss-absolute":t.proxy(function(t){!this.layer.status!=e.ComponentAbstract.STATUS.LOCKED&&(i.positionDisplay.show("Canvas"),i.positionDisplay.update(t,"Canvas","W: "+parseInt(this.$layer.width())+"px<br />H: "+parseInt(this.$layer.height())+"px")),document.activeElement&&document.activeElement.blur()},this),"mouseup.n2-ss-absolute":t.proxy(function(t){i.positionDisplay.hide("Canvas")},this)})},r.prototype.____makeLayerResizeableStart=function(e,n){this.preventActivation=!0,this.resizableDeferred=t.Deferred(),this.canvasManager.layerWindow.hideWithDeferred(this.resizableDeferred),t("body").addClass("n2-ss-resize-layer"),this._resizableJustClick&&(this._resizableJustClick=!1),this.____makeLayerResizeableResize(e,n),i.positionDisplay.show("Canvas")},r.prototype.____makeLayerResizeableResize=function(t,e){i.positionDisplay.update(t,"Canvas","W: "+e.size.width+"px<br />H: "+e.size.height+"px"),this.triggerLayerResized()},r.prototype.____makeLayerResizeableStop=function(e,n){t("body").removeClass("n2-ss-resize-layer"),this.resizableDeferred.resolve();var r=!1;if("n"==n.axis||"s"==n.axis||n.originalSize.width==n.size.width){var s=this.layer.getProperty("width");this.layer.isDimensionPropertyAccepted(s)&&(r=!0,this._syncwidth())}var o=!1;if("e"==n.axis||"w"==n.axis||n.originalSize.height==n.size.height){var s=this.layer.getProperty("height");this.layer.isDimensionPropertyAccepted(s)&&(o=!0,this._syncheight())}var a=this.canvasManager.getResponsiveRatio("h"),l=this.canvasManager.getResponsiveRatio("v");parseInt(this.layer.getProperty("responsivesize"))||(a=l=1);var h=null;r||(h=Math.round(n.size.width*(1/a)));var d=null;o||(d=Math.round(n.size.height*(1/l))),this._setPosition(null,null,n.position.left,n.position.top,h,d,!0),this.triggerLayerResized(),this.$layer.triggerHandler("LayerUnParent"),i.positionDisplay.hide("Canvas"),setTimeout(t.proxy(function(){this.preventActivation=!1},this),80)},r.prototype._setPosition=function(t,e,n,r,s,o,a){var l=this.layer.getMode();null===t&&(t=this.layer.getProperty("align")),null===e&&(e=this.layer.getProperty("valign")),null===n?n=this.layer.getProperty("left"):a&&(n=this.calculatePositionLeft(t,n)),null===r?r=this.layer.getProperty("top"):a&&(r=this.calculatePositionTop(e,r)),null===s&&(s=this.layer.getProperty("width")),null===o&&(o=this.layer.getProperty("height"));var h=i.history.addValue(this.layer,this.layer.historyStoreOnPlacement,["historyStorePosition",l]);h&&h.setValues({align:this.layer.getRawProperty("align"),valign:this.layer.getRawProperty("valign"),left:this.layer.getRawProperty("left"),top:this.layer.getRawProperty("top"),width:this.layer.getRawProperty("width"),height:this.layer.getRawProperty("height")},{align:t,valign:e,left:n,top:r,width:s,height:o}),i.history.off(),this.layer.store("width",s,!0,"layer"),this.layer.$.trigger("propertyChanged",["width",s]),this.layer.store("height",o,!0,"layer"),this.layer.$.trigger("propertyChanged",["height",o]),this.layer.store("align",t,!0,"layer"),this.layer.$.trigger("propertyChanged",["align",t]),this.layer.store("valign",e,!0,"layer"),this.layer.$.trigger("propertyChanged",["valign",e]),this.layer.store("left",n,!0,"layer"),this.layer.$.trigger("propertyChanged",["left",n]),this.layer.store("top",r,!0,"layer"),this.layer.$.trigger("propertyChanged",["top",r]),i.history.on()},r.prototype.historyStorePosition=function(t,e){this.layer.historyStore(t.align,"align",e),this.layer.historyStore(t.valign,"valign",e),this.layer.historyStore(t.width,"width",e),this.layer.historyStore(t.height,"height",e),this.layer.historyStore(t.left,"left",e),this.layer.historyStore(t.top,"top",e),this.triggerLayerResized()},r.prototype.calculatePositionLeft=function(t,e){var i=this.canvasManager.getResponsiveRatio("h");parseInt(this.layer.getProperty("responsiveposition"))||(i=1);var n=this.parent,r={left:0,leftMultiplier:1};if(n&&n.is(":visible")){var s=n.position();switch(this.layer.getProperty("parentalign")){case"right":r.left=s.left+n.width();break;case"center":r.left=s.left+n.width()/2;break;default:r.left=s.left}}else switch(n=this.$layer.parent(),t){case"center":r.left+=n.width()/2;break;case"right":r.left+=n.width()}var e;switch(t){case"left":e=-Math.round((r.left-e)*(1/i));break;case"center":e=-Math.round((r.left-e-this.$layer.width()/2)*(1/i));break;case"right":e=-Math.round((r.left-e-this.$layer.width())*(1/i))}return e},r.prototype.calculatePositionTop=function(t,e){var i=this.canvasManager.getResponsiveRatio("v");parseInt(this.layer.getProperty("responsiveposition"))||(i=1);var n=this.parent,r={top:0,topMultiplier:1};if(n&&n.is(":visible")){var s=n.position();switch(this.layer.getProperty("parentvalign")){case"bottom":r.top=s.top+n.height();break;case"middle":r.top=s.top+n.height()/2;break;default:r.top=s.top}}else switch(n=this.$layer.parent(),t){case"middle":r.top+=n.height()/2;break;case"bottom":r.top+=n.height()}var e;switch(t){case"top":e=-Math.round((r.top-e)*(1/i));break;case"middle":e=-Math.round((r.top-e-this.$layer.height()/2)*(1/i));break;case"bottom":e=-Math.round((r.top-e-this.$layer.height())*(1/i))}return e},r.prototype.moveX=function(t){this._setPosition(null,null,this.layer.getProperty("left")+t,null,null,null,!1)},r.prototype.moveY=function(t){this._setPosition(null,null,null,this.layer.getProperty("top")+t,null,null,!1)},r.prototype.setPositionLeft=function(t){t=this.calculatePositionLeft(this.layer.getProperty("align"),t),this.layer.store("left",t,!0),this.layer.$.trigger("propertyChanged",["left",t])},r.prototype.setPositionTop=function(t){t=this.calculatePositionTop(this.layer.getProperty("valign"),t),this.layer.store("top",t,!0),this.layer.$.trigger("propertyChanged",["top",t])},r.prototype.setPosition=function(t,e){this.setPositionLeft(t),this.setPositionTop(e)},r.prototype.setDeviceBasedAlign=function(){var t=this.layer.getMode();"undefined"==typeof this.layer.deviceProperty[t].align&&this.layer.setProperty("align",this.layer.getProperty("align"),"layer"),"undefined"==typeof this.layer.deviceProperty[t].valign&&this.layer.setProperty("valign",this.layer.getProperty("valign"),"layer")},r.prototype.setPropertyresponsiveposition=r.prototype.setPropertyresponsivesize=function(t,e,i){this.layer._setProperty(t,parseInt(e),i)},r.prototype.setPropertywidth=r.prototype.setPropertyheight=function(e,i,n){var r=i;this.layer.isDimensionPropertyAccepted(i)||(r=~~i,r!=i&&this.layer.$.trigger("propertyChanged",[e,r])),setTimeout(t.proxy(function(){this.onResize(!1)},this),50),this.layer._setProperty(e,r,n)},r.prototype.setPropertyleft=r.prototype.setPropertytop=function(t,e,i){var n=~~e;n!=e&&this.layer.$.trigger("propertyChanged",[t,n]),this.layer._setProperty(t,n,i)},r.prototype.render=function(t){this["_sync"+t]()},r.prototype.renderWithModifier=function(t,e,i){try{"width"!=t&&"height"!=t||!this.layer.isDimensionPropertyAccepted(e)?this["_sync"+t](Math.round(e*i)):this["_sync"+t](e)}catch(n){console.error("_sync"+t)}},r.prototype.onResize=function(t){this.resize({slideW:this.canvasManager.getResponsiveRatio("h"),slideH:this.canvasManager.getResponsiveRatio("v")},t)},r.prototype.resize=function(t,e){this.parent&&!e||this.addToResizeCollection(this,t,!1)},r.prototype.addToResizeCollection=function(t,e,i){o.ratios=e,o.isThrottled=i;for(var n=0;n<o.layers.length;n++)if(o.layers[n]==this){o.layers.splice(n,1);break}o.layers.push(t),a(),this.triggerLayerResized(i,e)},r.prototype._syncresponsiveposition=function(){this.onResize(!1)},r.prototype._syncwidth=function(){var t=this.layer.getProperty("width");if(!this.layer.isDimensionPropertyAccepted(t)){if(parseInt(this.layer.getProperty("responsivesize"))){var e=this.canvasManager.getResponsiveRatio("h");t*=e}t+="px"}this.$layer.css("width",t)},r.prototype._syncheight=function(){var t=this.layer.getProperty("height");if(!this.layer.isDimensionPropertyAccepted(t)){if(parseInt(this.layer.getProperty("responsivesize"))){var e=this.canvasManager.getResponsiveRatio("v");t*=e}t+="px"}this.$layer.css("height",t)},r.prototype._syncparentalign=function(){var t=this.layer.getProperty("parentalign");this.$layer.data("parentalign",t);var e=this.getParent();e&&e.placement.current.onResize(!1)},r.prototype._syncparentvalign=function(){var t=this.layer.getProperty("parentvalign");this.$layer.data("parentvalign",t);var e=this.getParent();e&&e.placement.current.onResize(!1)},r.prototype._syncleft=function(){var t=this.layer.getProperty("left");if(parseInt(this.layer.getProperty("responsiveposition"))){var e=this.canvasManager.getResponsiveRatio("h");t*=e}if(this.parent&&this.parentIsVisible){var i=this.parent.position(),n=this.layer.getProperty("align"),r=this.layer.getProperty("parentalign"),s=0;switch(r){case"right":s=i.left+this.parent.width();break;case"center":s=i.left+this.parent.width()/2;break;default:s=i.left}switch(n){case"right":this.$layer.css({left:"auto",right:this.$layer.parent().width()-s-t+"px"});break;case"center":this.$layer.css({left:s+t-this.$layer.width()/2+"px",right:"auto"});break;default:this.$layer.css({left:s+t+"px",right:"auto"})}}else switch(this.layer.getProperty("align")){case"right":this.$layer.css({left:"auto",right:-t+"px"});break;case"center":this.$layer.css({left:this.$layer.parent().width()/2+t-this.$layer.width()/2+"px",right:"auto"});break;default:this.$layer.css({left:t+"px",right:"auto"})}this.triggerLayerResized()},r.prototype._synctop=function(){var t=this.layer.getProperty("top");if(parseInt(this.layer.getProperty("responsiveposition"))){var e=this.canvasManager.getResponsiveRatio("v");t*=e}if(this.parent&&this.parentIsVisible){var i=this.parent.position(),n=this.layer.getProperty("valign"),r=this.layer.getProperty("parentvalign"),s=0;switch(r){case"bottom":s=i.top+this.parent.height();break;case"middle":s=i.top+this.parent.height()/2;break;default:s=i.top}switch(n){case"bottom":this.$layer.css({top:"auto",bottom:this.$layer.parent().height()-s-t+"px"});break;case"middle":this.$layer.css({top:s+t-this.$layer.height()/2+"px",bottom:"auto"});break;default:this.$layer.css({top:s+t+"px",bottom:"auto"})}}else switch(this.layer.getProperty("valign")){case"bottom":this.$layer.css({top:"auto",bottom:-t+"px"});break;case"middle":this.$layer.css({top:this.$layer.parent().height()/2+t-this.$layer.height()/2+"px",bottom:"auto"});break;default:this.$layer.css({top:t+"px",bottom:"auto"})}this.triggerLayerResized()},r.prototype._syncresponsivesize=function(){this.onResize(!1)},r.prototype.historyStoreDoubleProp=function(t,e,i,n){var r=this.layer.getMode();e==r?(this.layer._setProperty(i,t.value,"history"),this.layer._setProperty(n,t.value2,"history")):(this.layer.deviceProperty[e][i]=t.value,this.layer.deviceProperty[e][n]=t.value2,this.layer.$.trigger("propertyChanged",[i,this.layer.getProperty(i)]),this.layer.$.trigger("propertyChanged",[n,this.layer.getProperty(n)]),this.layer.render(i,null,"history"),this.layer.render(n,null,"history"))},r.prototype.setPropertyalign=function(t,e,n){var r=this.layer.getProperty(t),s=this.layer.getRawProperty("left");i.history.off(),this.layer._setProperty(t,e,n),i.history.on();var o=i.history.addValue(this.layer,this.layer.historyStoreOnPlacement,["historyStoreDoubleProp",this.layer.getMode(),"align","left"]);o&&o.setValues({value:r,value2:s},{value:e,value2:this.layer.getRawProperty("left")})},r.prototype.setPropertyvalign=function(t,e,n){var r=this.layer.getProperty(t),s=this.layer.getRawProperty("top");i.history.off(),this.layer._setProperty(t,e,n),i.history.on();var o=i.history.addValue(this.layer,this.layer.historyStoreOnPlacement,["historyStoreDoubleProp",this.layer.getMode(),"valign","top"]);o&&o.setValues({value:r,value2:s},{value:e,value2:this.layer.getRawProperty("top")})},r.prototype._syncalign=function(t,e){var i=this.layer.getProperty("align");this.$layer.attr("data-align",i),"history"!=e&&i!=t&&this.setPositionLeft(this.$layer.position().left)},r.prototype._syncvalign=function(t,e){var i=this.layer.getProperty("valign");this.$layer.attr("data-valign",i),"history"!=e&&i!=t&&this.setPositionTop(this.$layer.position().top)},r.prototype.fit=function(){var t=this.$layer.get(0);this.$layer.position();if(t.scrollWidth>0&&t.scrollHeight>0){var e=!1;if(this.layer.item&&(e=this.layer.item.fitLayer()),!e){this.layer.setProperty("width","auto","layer"),this.layer.setProperty("height","auto","layer");var i=this.$layer.width();Math.abs(this.canvasManager.mainContainer.layer.width()-this.$layer.position().left-i)<2&&this.layer.setProperty("width",i,"layer")}}},r.prototype.hide=function(t){this.layer.store(t?t:this.layer.getMode(),0,!0)},r.prototype.show=function(t){this.layer.store(t?t:this.layer.getMode(),1,!0)},r.prototype.changeStatus=function(t,i){t==e.ComponentAbstract.STATUS.LOCKED&&this.layer.nextendResizable("enable"),i==e.ComponentAbstract.STATUS.LOCKED&&this.$layer.nextendResizable("disable")},r.prototype.getParent=function(){return t("#"+this.layer.getProperty("parentid")).data("layerObject")},r.prototype.subscribeParent=function(){var e=this,i=t("#"+this.layer.property.parentid);this.parent&&!i.is(this.parent)&&(this.parent.off(this.subscribeParentCallbacks),this.parent=!1),this.parent||(this.subscribeParentCallbacks={LayerResized:function(){e.resizeParent.apply(e,arguments)},LayerParent:function(){e.$layer.addClass("n2-ss-layer-parent"),e.$layer.triggerHandler("LayerParent")},LayerUnParent:function(){e.$layer.removeClass("n2-ss-layer-parent"),e.$layer.triggerHandler("LayerUnParent")},LayerDeleted:function(t){e.layer.setProperty("parentid","","layer")},LayerUnavailable:function(t){e.layer.setProperty("parentid","","layer"),e.layer.setProperty("left",0,"layer"),e.layer.setProperty("top",0,"layer")},LayerShowChange:function(t,i,n){e.layer.getMode()==i&&(e.parentIsVisible=n)},"n2-ss-activate":function(){e.$layerRow.addClass("n2-parent-active")},"n2-ss-deactivate":function(){e.$layerRow.removeClass("n2-parent-active")},LayerGetDataWithChildren:function(t,i,n){e.layer.getDataWithChildren(i,n)}},this.parent=i.on(this.subscribeParentCallbacks),this.parent.data("layerObject").placement.current.addChild(this),this.$layer.addClass("n2-ss-layer-has-parent"))},r.prototype.unSubscribeParent=function(t){if(this.$layerRow.removeClass("n2-parent-active"),this.$layer.removeClass("n2-ss-layer-has-parent"),this.parent&&(this.parent.off(this.subscribeParentCallbacks),this.parent=!1,this.subscribeParentCallbacks={},"delete"!=t)){var e=this.$layer.position();this._setPosition(null,null,e.left,e.top,null,null,!0)}},r.prototype.addChild=function(t){this.children.push(t)},r.prototype.removeChild=function(e){this.children.splice(t.inArray(e,this.children),1)},r.prototype.unlink=function(t){t&&t.preventDefault(),this.layer.setProperty("parentid","","layer")},r.prototype.parentPicked=function(t,e,i,n,r){this.layer.setProperty("parentid","","layer"),this.layer.setProperty("align",n,"layer"),
6
  this.layer.setProperty("valign",r,"layer"),this.layer.setProperty("parentalign",e,"layer"),this.layer.setProperty("parentvalign",i,"layer"),this.layer.setProperty("parentid",t.requestID(),"layer");var s;for(var o in this.layer.deviceProperty)"desktopPortrait"!=o&&(this.layer.deviceProperty[o].left=s,this.layer.deviceProperty[o].top=s,this.layer.deviceProperty[o].valign=s,this.layer.deviceProperty[o].align=s)},r.prototype._syncparentid=function(){var e=this.layer.getProperty("parentid");if(e&&""!=e)if(0==t("#"+e).length)this.layer.setProperty("parentid","","layer");else{this.$layer.attr("data-parentid",e).addClass("n2-ss-layer-has-parent"),this.subscribeParent();var i=this.$layer.position();this._setPosition(null,null,i.left,i.top,null,null,!0)}else this.$layer.removeAttr("data-parentid"),this.unSubscribeParent()},r.prototype.snap=function(){this.$layer.nextendResizable("option","smartguides",t.proxy(function(){return this.$layer.triggerHandler("LayerParent"),this.canvasManager.getSnap()},this))},r.prototype._renderModeProperties=function(t){this.$layer.attr("data-align",this.layer.property.align),this.$layer.attr("data-valign",this.layer.property.valign),t&&this.onResize(!0)},r.prototype.doLinearResize=function(t){this.doThrottledTheResize(t,!0)},r.prototype.doTheResize=function(t,e,i){this.render("width"),this.render("height"),this.render("left"),this.render("top"),e||this.triggerLayerResized(i,t)},r.prototype.resizeParent=function(t,e,i){this.addToResizeCollection(this,e,i)},r.prototype.updatePosition=function(){var t=this.parent;if("center"==this.layer.getProperty("align")){var e=0;e=t?t.position().left+t.width()/2:this.$layer.parent().width()/2;var i=this.canvasManager.getResponsiveRatio("h");parseInt(this.layer.getProperty("responsiveposition"))||(i=1),this.$layer.css("left",e-this.$layer.width()/2+this.layer.getProperty("left")*i)}if("middle"==this.layer.getProperty("valign")){var n=0;n=t?t.position().top+t.height()/2:this.$layer.parent().height()/2;var i=this.canvasManager.getResponsiveRatio("v");parseInt(this.layer.getProperty("responsiveposition"))||(i=1),this.$layer.css("top",n-this.$layer.height()/2+this.layer.getProperty("top")*i)}this.triggerLayerResized()},r.prototype.getIndex=function(){var t=parseInt(this.$layer.css("zIndex"));return isNaN(t)&&(t=0),t},r.prototype.renderIndex=function(t){},r.prototype.sync=function(){this._syncalign(null,"history"),this._syncvalign(null,"history"),this._syncwidth(),this._syncheight(),this._synctop(),this._syncleft(),this._syncparentid()},r.prototype["delete"]=function(){var t=this.layer.getProperty("parentid");t&&this.unSubscribeParent("delete")},r.prototype.isParentOrChild=function(){return this.parent||this.children.length>0},r}),N2Require("PlacementContent",["PlacementAbstract"],[],function(t,e,i){"use strict";function n(t,i,n){this.type="content",e.PlacementAbstract.prototype.constructor.apply(this,arguments)}return n.prototype=Object.create(e.PlacementAbstract.prototype),n.prototype.constructor=n,n}),N2Require("PlacementDefault",["PlacementAbstract"],["smartSlider"],function(t,e,i,n){"use strict";function r(t,i,n){this.type="default",e.PlacementAbstract.prototype.constructor.apply(this,arguments)}return r.prototype=Object.create(e.PlacementAbstract.prototype),r.prototype.constructor=r,r.prototype.start=function(){this.$layer=this.layer.layer},r.prototype.activated=function(t){this.startUISizing()},r.prototype.deActivated=function(t){this.$layer.nextendNormalSizing("destroy")},r.prototype.startUISizing=function(){var e=!1;this.layer.item&&this.layer.item.needSize&&(e=!0),this.$layer.nextendNormalSizing({start:t.proxy(function(t,e){i.positionDisplay.show("NormalSizing"),"maxwidth"==e&&this.layer.layer.addClass("n2-ss-has-maxwidth")},this),resizeMaxWidth:t.proxy(function(t,e){i.positionDisplay.update(t,"NormalSizing","Max-width: "+(0==e.value?"none":e.value+"px"))},this),stopMaxWidth:t.proxy(function(t,e){i.positionDisplay.hide("NormalSizing"),this.layer.setProperty("maxwidth",e.value)},this)})},r}),N2Require("PlacementNormal",["PlacementAbstract"],["smartSlider"],function(t,e,i,n){"use strict";function r(t,i,n){this.type="normal",this.transferredProperties={},e.PlacementAbstract.prototype.constructor.apply(this,arguments)}return r.prototype=Object.create(e.PlacementAbstract.prototype),r.prototype.constructor=r,r.prototype.start=function(){this.$layer=this.layer.layer},r.prototype.preActivation=function(t){if("absolute"==t.type&&this.layer.item&&this.layer.item.needSize){var e=this.layer.getProperty("height");e.match&&e.match(/[0-9]+%$/)?this.transferredProperties.height=Math.max(100,parseInt(this.$layer.parent().height()*parseInt(e)/100)):e>0&&(this.transferredProperties.height=e)}},r.prototype.activated=function(e){this.loadProperties(t.extend(e,this.transferredProperties)),this.transferredProperties={},this.layer.$.on("baseSizeUpdated.placementnormal",t.proxy(this._syncmargin,this)),this.layer.$.on("baseSizeUpdated.placementnormal",t.proxy(this._syncheight,this)),this.startUISpacing(),this.startUISizing(),this.$layer.on({mousedown:t.proxy(function(t){t.stopPropagation()})})},r.prototype.loadProperties=function(t){this.layer.createDeviceProperty("margin",{desktopPortrait:"0|*|0|*|0|*|0|*|px+"},this.layer.layer,this),this.layer.createDeviceProperty("height",{desktopPortrait:t.height||0},this.layer.layer,this),this.layer.createDeviceProperty("maxwidth",{desktopPortrait:0},this.layer.layer,this),this.layer.createDeviceProperty("selfalign",{desktopPortrait:"inherit"},this.layer.layer,this)},r.cleanLayer=function(t){var e=["desktopPortrait","desktopLandscape","tabletPortrait","tabletLandscape","mobilePortrait","mobileLandscape"];t.removeClass("n2-ss-has-maxwidth").removeAttr("data-cssselfalign").css({position:"",margin:"",height:"",maxWidth:""});for(var i=["margin","height","maxwidth","selfalign"],n={},r=0;r<i.length;r++){var s=i[r].toLowerCase();n[s]=t.data(s),t.removeAttr(s),t.removeData(s);for(var o=0;o<e.length;o++){var a=e[o].toLowerCase();n[s]=t.data(a+s),t.removeAttr(a+s),t.removeData(a+s)}}return n},r.prototype.deActivated=function(t){this.layer.$.off(".placementnormal"),this.$layer.nextendSpacing("destroy"),this.$layer.nextendNormalSizing("destroy"),this.layer.layer.removeClass("n2-ss-has-maxwidth"),this.layer.layer.removeAttr("data-cssselfalign");var e=["margin","height","maxwidth","selfalign"],i=this.layer.getPropertiesData(e);return this.layer.removeProperties(e),this.layer.layer.css({position:"",margin:"",height:"",maxWidth:""}),i},r.prototype._renderModeProperties=function(t){this._syncmargin(),this._syncheight(),this._syncmaxwidth(),this._syncselfalign()},r.prototype._syncmargin=function(){var t=this.layer.getProperty("margin").split("|*|"),e=t.pop(),i=this.layer.baseSize;if("px+"==e&&i>0){e="em";for(var n=0;n<t.length;n++)t[n]=parseInt(t[n])/i}var t=t.join(e+" ")+e;this.layer.layer.css("margin",t),this.layer.update(),this.$layer.nextendSpacing("option","current",t)},r.prototype.startUISpacing=function(){this.$layer.nextendSpacing({mode:"margin",sync:{n:"margin-top",e:"margin-right",s:"margin-bottom",w:"margin-left"},handles:"n, s, e, w",start:t.proxy(function(t,e){i.positionDisplay.show("Spacing")},this),spacing:t.proxy(function(t,e){var n="";for(var r in e.changed)n+="Margin "+r+": "+e.changed[r]+"px<br>";i.positionDisplay.update(t,"Spacing",n)},this),stop:t.proxy(this.onSpacingStop,this)})},r.prototype.onSpacingStop=function(e,n){i.positionDisplay.hide("Spacing");var r=this.layer.getProperty("margin").split("|*|"),s=1,o=1;"px+"==r[r.length-1]&&Math.abs(parseFloat(this.$layer.css("fontSize"))-this.layer.baseSize)>1&&(s=this.canvasManager.getResponsiveRatio("h"),o=this.canvasManager.getResponsiveRatio("v"));for(var a in n.changed){var l=n.changed[a];switch(a){case"top":r[0]=Math.round(l/o);break;case"right":r[1]=Math.round(l/s);break;case"bottom":r[2]=Math.round(l/o);break;case"left":r[3]=Math.round(l/s)}}this.layer.setProperty("margin",r.join("|*|")),t("#layernormal-margin").data("field").insideChange(r.join("|*|"))},r.prototype.startUISizing=function(){var e=!1;this.layer.item&&this.layer.item.needSize&&(e=!0),this.$layer.nextendNormalSizing({height:e,syncWidth:!0,start:t.proxy(function(t,e){i.positionDisplay.show("NormalSizing"),"maxwidth"==e&&this.layer.layer.addClass("n2-ss-has-maxwidth")},this),resizeMaxWidth:t.proxy(function(t,e){i.positionDisplay.update(t,"NormalSizing","Max-width: "+(0==e.value?"none":e.value+"px"))},this),stopMaxWidth:t.proxy(function(t,e){i.positionDisplay.hide("NormalSizing"),this.layer.setProperty("maxwidth",e.value)},this),resizeHeight:t.proxy(function(t,e){i.positionDisplay.update(t,"NormalSizing","Height: "+e.value+"px")},this),stopHeight:t.proxy(function(t,e){i.positionDisplay.hide("NormalSizing");var n=1;parseInt(this.$layer.css("fontSize"))!=this.layer.baseSize&&(n=this.canvasManager.getResponsiveRatio("h"));var r=Math.round(r/n);this.layer.setProperty("height",e.value)},this)})},r.prototype._syncheight=function(){var t=parseInt(this.layer.getProperty("height"));if(t>0){var e="px",i=this.layer.baseSize;i>0&&(e="em",t=parseInt(t)/i),this.layer.layer.css("height",t+e)}else this.layer.layer.css("height","");this.layer.update()},r.prototype._syncmaxwidth=function(){var t=parseInt(this.layer.getProperty("maxwidth"));0>=t||isNaN(t)?this.layer.layer.css("maxWidth","").removeClass("n2-ss-has-maxwidth"):this.layer.layer.css("maxWidth",t+"px").addClass("n2-ss-has-maxwidth"),this.layer.update()},r.prototype._syncselfalign=function(){this.layer.layer.attr("data-cssselfalign",this.layer.getProperty("selfalign"))},r.prototype.sync=function(){this._syncmargin(),this._syncheight(),this._syncmaxwidth()},r}),N2Require("Placement",[],[],function(t,e,i){"use strict";function n(t){this.layer=t,this.canvasManager=t.canvasManager,this.modes={},this.current=null,this.isTransferHandled=!1,this.updatePositionThrottled=NextendDeBounce(this.updatePosition,200)}return n.prototype.allow=function(t){switch(t){case"absolute":this.modes.absolute=new e.PlacementAbsolute(this,this.layer,this.canvasManager);break;case"normal":this.modes.normal=new e.PlacementNormal(this,this.layer,this.canvasManager);break;case"group":this.modes.absolute=new e.PlacementGroup(this,this.layer,this.canvasManager);break;case"content":this.modes.absolute=new e.PlacementContent(this,this.layer,this.canvasManager);break;case"default":this.modes["default"]=new e.PlacementDefault(this,this.layer,this.canvasManager)}},n.prototype.start=function(){for(var t in this.modes)this.modes[t].start()},n.prototype.setMode=function(t,e){var i=!1;if(e=e||{},"undefined"==typeof this.modes[t])throw new Exception("Layer placement("+t+") not allowed for the container",this.layer);if(this.current!=this.modes[t]){var n;this.current&&(this.modes[t].preActivation(this.current),n=this.current.type,i=this.current.deActivated(this.modes[t])),this.current=this.modes[t],this.layer.layer.attr("data-pm",this.current.type),this.current.activated(e),this.layer.$.triggerHandler("placementChanged",[this.current.type,n])}return i},n.prototype.doAction=function(t){try{return this.current[t].apply(this.current,Array.prototype.slice.call(arguments,1))}catch(e){}},n.prototype.getType=function(){return this.current.type},n.prototype.onResize=function(t){"function"==typeof this.current.onResize&&this.current.onResize(t)},n.prototype.updatePosition=function(){this.current.updatePosition()},n.prototype.getIndex=function(){return this.current.getIndex()},n.prototype.renderIndex=function(t){return this.current.renderIndex(t)},n.prototype.doLinearResize=function(t){this.current.doLinearResize(t)},n.prototype.sync=function(){this.current.sync()},n.prototype.renderModeProperties=function(t){var e=this.layer.getProperty("fontsize");this.layer.adjustFontSize(this.layer.getProperty("adaptivefont"),e,!1),this.current._renderModeProperties(t)},n.prototype["delete"]=function(){this.current["delete"]()},n}),N2Require("PlacementAbstract",["Placement"],[],function(t,e,i){"use strict";function n(t,e,i){this.placement=t,this.layer=e,this.canvasManager=i}return n.prototype.start=function(){},n.prototype.preActivation=function(t){},n.prototype.activated=function(){},n.prototype.deActivated=function(t){return!1},n.prototype.updatePosition=function(){this.layer.group.update()},n.prototype._renderModeProperties=function(t){},n.prototype._hide=function(){},n.prototype._show=function(){},n.prototype.snap=function(){return!1},n.prototype.getIndex=function(){return this.layer.layer.index()},n.prototype.renderIndex=function(t){},n.prototype.doLinearResize=function(t){},n.prototype.sync=function(){},n.prototype["delete"]=function(){},n.prototype.triggerLayerResized=function(t,e){},n.prototype.changeStatus=function(t,e){},n}),N2Require("Item",[],["smartSlider"],function(t,e,i,n){"use strict";function r(e,i,r){this.type===n&&(this.type=e.data("item")),this.needSize=this.constructor.needSize,this.self=this,this.$item=e,this.layer=i,this.itemEditor=r,this.fonts=[],this.styles=[],this.needFill=[],this.values=this.$item.data("itemvalues"),"object"!=typeof this.values&&(this.values=t.parseJSON(this.values)),this.pre="div#"+nextend.smartSlider.frontend.sliderElement.attr("id")+" ",this.defaultValues=r.getItemForm(this.type).values,this.added(),this.$item.data("item",this),this.$item.appendTo(this.layer.getContent()),this.layer.item=this,0===this.$item.children().length&&this.layer.readyDeferred.done(t.proxy(this.reRender,this)),t("<div/>").addClass("ui-helper ui-item-overlay").css("zIndex",89).appendTo(this.$item),this.$item.find("a").on("click",function(t){t.preventDefault()}),t(window).trigger("ItemCreated")}return r.needSize=!1,r.prototype.setSelf=function(t){this.self!=this&&this.self.setSelf(t),this.self=t},r.prototype.getSelf=function(){return this.self!=this&&(this.self=this.self.getSelf()),this.self},r.prototype.changeValue=function(e,i){this==this.itemEditor.activeItem?t("#item_"+this.type+e).data("field").insideChange(i):this.values[e]=i},r.prototype.activate=function(t,e,i){this.itemEditor.setActiveItem(this,e,i)&&(nextend.basicCSS.activate("ss3item"+this.type,this.values,{font:this.fonts,style:this.styles}),this.itemEditor.lastValues[this.type]=this.values)},r.prototype.deActivate=function(){nextend.basicCSS.deActivate()},r.prototype.render=function(e,i){this.layer.layer.triggerHandler("itemRender"),this.$item.html(""),this.parseAll(e),this._render(e),this.itemEditor.lastValues[this.type]=this.values=i,t("<div/>").addClass("ui-helper ui-item-overlay").css("zIndex",89).appendTo(this.$item);var n=this.getName(e);n=n===!1||""==n||"Layer"==n?this.type:n.replace(/[<>]/gi,""),this.layer.rename(n,!1),this.layer.update(),this.$item.find("a").on("click",function(t){t.preventDefault()})},r.prototype._render=function(t){},r.prototype.reRender=function(e){this.values=t.extend({},this.getDefault(),this.values,e),this.render(t.extend({},this.values),this.values)},r.prototype["delete"]=function(){this.$item.trigger("mouseleave"),this.$item.remove(),this.itemEditor.activeItem==this&&(this.itemEditor.activeItem=null)},r.prototype.getHTML=function(e){var i="";return i=e?"["+this.type+' values="'+Base64.encode(JSON.stringify(this.values))+'"]':t('<div class="n2-ss-item n2-ss-item-'+this.type+'"></div>').attr("data-item",this.type).attr("data-itemvalues",JSON.stringify(this.values))},r.prototype.getData=function(){return{type:this.type,values:this.values}},r.prototype.getDefault=function(){return{}},r.prototype.added=function(){},r.prototype.addedFont=function(e,i){var n=t("#item_"+this.type+i);n.length&&(this.fonts.push({mode:e,name:i,field:n.data("field"),def:this.defaultValues[i]}),t.when(nextend.fontManager.addVisualUsage(e,this.values[i],this.pre)).done(t.proxy(function(t){t||this.changeValue(i,"")},this)))},r.prototype.addedStyle=function(e,i){var n=t("#item_"+this.type+i);n.length&&(this.styles.push({mode:e,name:i,field:n.data("field"),def:this.defaultValues[i]}),t.when(nextend.styleManager.addVisualUsage(e,this.values[i],this.pre)).done(t.proxy(function(t){t||this.changeValue(i,"")},this)))},r.prototype.parseAll=function(t){for(var e=0;e<this.fonts.length;e++)t[this.fonts[e].name+"class"]=nextend.fontManager.getClass(t[this.fonts[e].name],this.fonts[e].mode)+" ";for(var e=0;e<this.styles.length;e++)t[this.styles[e].name+"class"]=nextend.styleManager.getClass(t[this.styles[e].name],this.styles[e].mode)+" ";for(var e=0;e<this.needFill.length;e++)"undefined"!=typeof t[this.needFill[e]]&&(t[this.needFill[e]]=nextend.smartSlider.generator.fill(t[this.needFill[e]]+""))},r.prototype.getName=function(t){return"Layer"},r.prototype.resizeLayerToImage=function(e){var n=this.layer;t("<img/>").attr("src",e).on("load",function(){var t=i.frontend.dimensions.slide,e=this.width,r=this.height,s=t.width,o=t.height;e>0&&r>0&&(e>s&&(r=r*s/e,e=s),r>o&&(e=e*o/r,r=o),nextend.smartSlider.history.off(),n.setProperty("width",e),n.setProperty("height",r),nextend.smartSlider.history.on())})},r.prototype.fitLayer=function(t){return!1},r}),N2Require("ItemManager",[],["smartSlider"],function(t,e,i,n){"use strict";function r(e,n){this.suppressChange=!1,this.activeItemOriginalData=null,this.canvasManager=e,this.lastValues={},this.startItems(),this.forms={},this.activeForm=!1,n.isUploadDisabled||i.frontend.sliderElement.fileupload({url:n.uploadUrl,pasteZone:!1,dropZone:i.frontend.sliderElement,dataType:"json",paramName:"image",add:function(t,e){e.formData={path:"/"+n.uploadDir},e.submit()},done:t.proxy(function(t,e){var i=e.result;if(i.data&&i.data.name){var n=this.createLayerItem(!1,{item:"image"});n.reRender({image:i.data.url}),n.activate(null,null,!0)}else NextendAjaxHelper.notification(i)},this),fail:function(t,e){NextendAjaxHelper.notification(e.jqXHR.responseJSON)},start:function(){NextendAjaxHelper.startLoading()},stop:function(){setTimeout(function(){NextendAjaxHelper.stopLoading()},100)}})}return r.prototype.setActiveItem=function(e,i,n){if(e!=this.activeItem||n){this.activeItemOriginalData=null;var r=e.type;this.activeForm&&this.activeForm.form.css("display","none"),this.activeItem&&this.activeItem.deActivate(),this.activeForm=this.getItemForm(r);var s=t.extend({},this.activeForm.values,e.values);this.activeItem=e,this.suppressChange=!0;for(var o in s){var a=t("#item_"+r+o).data("field");a&&a.insideChange(s[o])}return this.suppressChange=!1,this.activeForm.form.css("display","block"),this.focusFirst(i),!0}return!1},r.prototype.focusFirst=function(t){var e=this.activeForm.fields.eq(0).data("field");nextend.smartSlider.generator.isDynamicSlide()&&e.connectedField&&e.connectedField instanceof N2Classes.FormElementImage||this.activeForm.fields.eq(0).data("field").focus("undefined"!=typeof t&&t)},r.prototype.startItems=function(){t(".n2-ss-core-item").nextendCanvasItem({canvasUIManager:this.canvasManager.mainContainer.canvasUIManager,distance:5,$layer:function(){return this.element.clone()},onCreate:t.proxy(function(t,e,n,r){switch(n.layer.type){case"content":case"col":i.history.startBatch();var s=this.createLayerItem(n.layer,e.$layer.data(),"click");i.history.addControl("skipForwardUndos"),n.layer.container.insertLayerAt(s.layer,r),s.layer.changeGroup(!1,n.layer),i.history.endBatch();break;case"row":var o=n.layer.createCol();n.layer.moveCol(o.getIndex(),r),i.history.startBatch();var s=this.createLayerItem(o,e.$layer.data(),"click");i.history.addControl("skipForwardUndos"),o.container.insertLayerAt(s.layer,0),s.layer.changeGroup(!1,o),i.history.endBatch();break;default:var a=nextend.smartSlider.$currentSlideElement.offset(),s=this.createLayerItem(this.canvasManager.mainContainer,e.$layer.data(),"click");s.layer.placement.current.setPosition(t.pageX-a.left-20,t.pageY-a.top-20)}},this),start:function(){t("#n2-ss-add-sidebar").removeClass("n2-active")}}).on("click",t.proxy(function(e){this.createLayerItem(this.canvasManager.mainContainer.getActiveGroup(),t(e.currentTarget).data(),"click")},this)),t("[data-itemshortcut]").on({click:t.proxy(function(e){e.preventDefault(),t('.n2-ss-core-item[data-item="'+t(e.currentTarget).data("itemshortcut")+'"]').trigger("click")},this),mousedown:t.proxy(function(e){t('.n2-ss-core-item[data-item="'+t(e.currentTarget).data("itemshortcut")+'"]').trigger(e)},this)}),t("[data-structureshortcut]").on({click:t.proxy(function(e){e.preventDefault(),t(".n2-ss-add-layer-button").trigger("click"),t("#n2-ss-layers-switcher > .n2-labels .n2-td").eq(1).trigger("click")},this),mousedown:t.proxy(function(e){t('.n2-ss-core-item[data-type="'+t(e.currentTarget).data("structureshortcut")+'"]').trigger(e)},this)})},r.prototype.createLayerItem=function(n,r,s,o){n=n||this.canvasManager.mainContainer.getActiveGroup();var a=r.item;if("structure"==a){var l=new e.Row(this.canvasManager,n,{});return l.create(r.type),l.hightlightStructure(),{layer:l}}var h=this.getItemForm(a),d=t("<div></div>").attr("data-item",a).data("itemvalues",t.extend(!0,{},h.values,this.getLastValues(a))).addClass("n2-ss-item n2-ss-item-"+a),l=this._createLayer(d,n,t.extend(t(".n2-ss-core-item-"+a).data("layerproperties"),o));return s&&"click"==s?setTimeout(function(){l.layer.trigger("mousedown",["create"]).trigger("mouseup",["create"]).trigger("click",["create"])},500):l.activate(),i.layerWindow.switchTab("item"),i.history.addSimple(this,this.historyDelete,this.historyCreate,[n,l,r]),l.item},r.prototype.getLastValues=function(t){return this.lastValues[t]!==n?this.lastValues[t]:{}},r.prototype.getItemClass=function(t){var i="Item"+t.capitalize();return"undefined"==typeof e[i]?"Item":i},r.prototype._createLayer=function(t,i,n){var r=this.canvasManager.layerOptions.layerFeatures.layerDefault;for(var s in r)null!==r[s]&&(n[s]=r[s]);var o=new e.Layer(this.canvasManager,i,n);return o.create(function(e){return e._createLayer().append(t)}),o},r.prototype.getItemForm=function(e){if(this.forms[e]===n){var i=t("#smartslider-slide-toolbox-item-type-"+e),r={form:i,values:i.data("itemvalues"),fields:i.find('[name^="item_'+e+'"]'),fieldNameRegexp:new RegExp("item_"+e+"\\[(.*?)\\]","")};r.fields.on({nextendChange:t.proxy(this.updateCurrentItem,this),keydown:t.proxy(this.updateCurrentItemDeBounced,this)}),this.forms[e]=r}return this.forms[e]},r.prototype.updateCurrentItem=function(e){if(!this.suppressChange){null===this.activeItemOriginalData&&(this.activeItemOriginalData=t.extend({},this.activeItem.values));var n={},r={};if(this.activeForm.fields.each(t.proxy(function(e,i){var i=t(i),s=i.attr("name").match(this.activeForm.fieldNameRegexp)[1];r[s]=n[s]=i.val()},this)),e&&"nextendChange"==e.type){var s=i.history.addValue(this,this.historyUpdateCurrentItem,[this.activeItem]);s&&s.setValues(this.activeItemOriginalData,t.extend({},r)),this.activeItemOriginalData=null}this.activeItem.render(t.extend({},this.activeItem.getDefault(),n),r)}},r.prototype.historyUpdateCurrentItem=function(e,i){var n=i.getSelf();n.reRender(t.extend(!0,{},e)),n.values=e,this.activeItem==n&&n.activate(null,null,!0)},r.prototype.updateCurrentItemDeBounced=NextendDeBounce(function(t){this.updateCurrentItem(t)},100),r.prototype.historyDelete=function(t,e){e.getSelf()["delete"]()},r.prototype.historyCreate=function(t,e,i){var n=this.createLayerItem(t.getSelf(),i);e.setSelf(n.layer)},r.prototype.historyCreateStructure=function(t,e,i){var n=this.createLayerItem(t.getSelf(),i);e.setSelf(n.layer)},r.prototype.getSelf=function(){return this},r}),N2Require("PluginActivatable",[],[],function(t,e,i){"use strict";function n(){this.isActive=!1,this.preventActivation=!1}return n.prototype.activate=function(t,e,i){return this.preventActivation?!1:(document.activeElement&&document.activeElement.blur(),t&&(t.ctrlKey||t.metaKey)&&this.canvasManager.mainContainer.getSelectedLayer()?!this.select():t&&3==t.which&&this.canvasManager.selectMode?!1:(i||this.canvasManager.exitSelectMode(),t&&this.positionSidebar(),this.canvasManager.mainContainer.getSelectedLayer()!==this&&(this.layerRow.addClass("n2-active"),this.layer.addClass("n2-active"),this.layer.triggerHandler("n2-ss-activate"),this.canvasManager.changeActiveLayer(this,i),nextend.activeLayer=this.layer,this.canvasManager.ui.onActivateLayer(this)),this.isActive=!0,!0))},n.prototype.deActivate=function(){this.isActive=!1,this.layer===i&&console.error(),this.layer.removeClass("n2-active"),this.layerRow.removeClass("n2-active"),this.layer.triggerHandler("n2-ss-deactivate")},n}),N2Require("PluginEditableName",[],[],function(t,e,i){"use strict";function n(){}var r=300,s=null;return n.prototype.addProperties=function(t){this.createProperty("name",this.label,t),this.createProperty("nameSynced",1,t)},n.prototype.makeNameEditable=function(){this.layerTitleSpan.on({mouseup:t.proxy(function(e){s?(clearTimeout(s),s=null,this.editName()):(this.activate(e),s=setTimeout(t.proxy(function(){s=null},this),r))},this)})},n.prototype.editName=function(){var i=new e.InlineField;i.$input.on({valueChanged:t.proxy(function(t,e){this.rename(e,!0),this.layerTitleSpan.css("display","inline")},this),cancel:t.proxy(function(){this.layerTitleSpan.css("display","inline")},this)}),this.layerTitleSpan.css("display","none"),i.injectNode(this.layerTitle,this.property.name)},n.prototype.rename=function(t,e){if(this.property.nameSynced||e){if(e&&(this.property.nameSynced=0),""==t){if(e)return this.property.nameSynced=1,this.item.reRender(),!1;t="Layer #"+(this.group.getLayerCount()+1)}t=t.substr(0,35),this.property.name!=t&&(this.property.name=t,this.layerTitleSpan.html(t),this.$.trigger("layerRenamed",t))}},n}),N2Require("PluginShowOn",[],["smartSlider"],function(t,e,i,n){"use strict";function r(){}return r.prototype.addProperties=function(t){this.showsOnCurrent=!0,this.createProperty("generatorvisible","",t),this.createProperty("desktopPortrait",1,t),this.createProperty("desktopLandscape",1,t),this.createProperty("tabletPortrait",1,t),this.createProperty("tabletLandscape",1,t),this.createProperty("mobilePortrait",1,t),this.createProperty("mobileLandscape",1,t)},r.prototype._hide=function(){this.layer.css("display","none"),this.showsOnCurrent=!1,this.update()},r.prototype._show=function(){parseInt(this.property[this.canvasManager.getMode()])&&(this.layer.css("display",""),this.showsOnCurrent=!0),this.update()},r.prototype._syncdesktopPortrait=function(){var t=this.getProperty("desktopPortrait");this.__syncShowOnDevice("desktopPortrait",t)},r.prototype._syncdesktopLandscape=function(){var t=this.getProperty("desktopLandscape");this.__syncShowOnDevice("desktopLandscape",t)},r.prototype._synctabletPortrait=function(){var t=this.getProperty("tabletPortrait");this.__syncShowOnDevice("tabletPortrait",t)},r.prototype._synctabletLandscape=function(){var t=this.getProperty("tabletLandscape");this.__syncShowOnDevice("tabletLandscape",t)},r.prototype._syncmobilePortrait=function(){var t=this.getProperty("mobilePortrait");this.__syncShowOnDevice("mobilePortrait",t)},r.prototype._syncmobileLandscape=function(){var t=this.getProperty("mobileLandscape");this.__syncShowOnDevice("mobileLandscape",t)},r.prototype.__syncShowOnDevice=function(t,e){if(this.getMode()==t){var e=parseInt(e);e?this._show():this._hide(),this.layer.triggerHandler("LayerShowChange",[t,e]),this.placement.doAction("triggerLayerResized")}},r}),N2Require("Col",["ContentAbstract"],["smartSlider"],function(t,e,i,n){"use strict";function r(t,i,n){this.label="Col",this.type="col",this.innerContainer="> .n2-ss-layer-col",e.ContentAbstract.prototype.constructor.call(this,t,i,n),this.placement.allow("default")}return r.prototype=Object.create(e.ContentAbstract.prototype),r.prototype.constructor=r,r.prototype._createLayer=function(){return t('<div class="n2-ss-layer"><div class="n2-ss-layer-content n2-ss-layer-col"></div></div>').attr("data-type",this.type)},r.prototype.addProperties=function(t){e.ContentAbstract.prototype.addProperties.call(this,t),this.createProperty("colwidth","1",t),this.createProperty("link","#|*|_self",t),this.createProperty("borderradius",0,t),this.createProperty("boxshadow","0|*|0|*|0|*|0|*|00000080",t),this.createProperty("borderwidth","1|*|1|*|1|*|1",t),this.createProperty("borderstyle","none",t),this.createProperty("bordercolor","ffffffff",t),this.createDeviceProperty("order",{desktopPortrait:0},t)},r.prototype.create=function(){e.ContentAbstract.prototype.create.call(this),this._syncorder(),this._syncborder(),this._syncborderradius(),this._syncboxshadow(),this._onReady()},r.prototype.load=function(t){e.ContentAbstract.prototype.load.call(this,t),this._syncorder(),this._syncborder(),this._syncborderradius(),this._syncboxshadow(),this._onReady();var i=t.data("rowcolumns")+"";if(i!=n&&"resolved"==this.group.readyDeferred.state()){for(var r=i.split("+"),s=0;s<r.length;s++)r[s]=new Fraction(r[s]);this.group.setColsWidth(r)}},r.prototype.createRow=function(){this.$content=this.layer.find(".n2-ss-layer-content:first"),this.container=new e.LayerContainer(this,t('<ul class="n2-list n2-h4 n2-list-orderable" />'),"normal","> .n2-ss-layer",["row","layer"]),this.container.setLayerContainerElement(this.$content);var i=t('<div class="n2-button n2-button-icon n2-button-m n2-button-m-narrow" data-n2tip="'+n2_("Delete layer")+'"><i class="n2-i n2-i-delete n2-i-grey-opacity"></i></div>').on("click",t.proxy(this["delete"],this)),n=t('<div class="n2-button n2-button-icon n2-button-m n2-button-m-narrow" data-n2tip="'+n2_("Duplicate layer")+'"><i class="n2-i n2-i-duplicate n2-i-grey-opacity"></i></div>').on("click",t.proxy(function(){this.duplicate(!0,!1)},this));this._createLayerListRow([t('<div class="n2-actions"></div>').append(n).append(i)]).addClass("n2-ss-layer-content-row"),this.openerElement=t('<a href="#" class="n2-ss-layer-icon n2-button n2-button-icon n2-button-m"><i class="n2-i n2-i-col"></i></a>').insertBefore(this.layerTitleSpan).on("click",t.proxy(this.switchOpened,this)),this.container.$ul.appendTo(this.layerRow),this.readyDeferred.done(t.proxy(this._syncopened,this))},r.prototype._start=function(t){e.ContentAbstract.prototype._start.call(this,t),t&&this.highlight(2e3)},r.prototype.getRealOrder=function(){var t=this.getProperty("order");return 0==t?10:t},r.prototype._syncorder=function(){var t=this.getProperty("order");0==t?this.layer.css("order",""):this.layer.css("order",t),this.group.refreshUI()},r.prototype._synccolwidth=function(){this.layer.css("width",100*new Fraction(this.getProperty("colwidth")).valueOf()+"%"),this.group.refreshUI()},r.prototype._synclink=function(){},r.prototype._syncborderradius=function(){this.$content.css("border-radius",this.getProperty("borderradius")+"px")},r.prototype._syncborderwidth=r.prototype._syncbordercolor=r.prototype._syncborderstyle=function(){this._syncborder()},r.prototype._syncborder=function(){var t=this.getProperty("borderstyle");if("none"!=t){this.$content.css("border-color",N2Color.hex2rgbaCSS(this.getProperty("bordercolor"))),this.$content.css("border-style",this.getProperty("borderstyle"));var e=this.getProperty("borderwidth").split("|*|"),i="px";this.$content.css("border-width",e.join(i+" ")+i)}else this.$content.css("border","");this.update()},r.prototype._syncboxshadow=function(){var t=this.getProperty("boxshadow").split("|*|");0==t[0]&&0==t[1]&&0==t[2]&&0==t[3]||0==N2Color.hex2alpha(t[4])?this.$content.css("box-shadow",""):this.$content.css("box-shadow",t[0]+"px "+t[1]+"px "+t[2]+"px "+t[3]+"px "+N2Color.hex2rgbaCSS(t[4]))},r.prototype["delete"]=function(){this.group.container.getLayerCount()>1?this._delete():this.group["delete"]()},r.prototype.getHTML=function(t){var i=e.ComponentAbstract.prototype.getHTML.call(this,t);return i.attr("data-rowcolumns",this.group.getColumns()),i},r.prototype.renderModeProperties=function(t){this._syncorder(),e.ContentAbstract.prototype.renderModeProperties.call(this,t)},r.prototype.update=function(){this.group._syncwrapafter(),e.ComponentAbstract.prototype.update.call(this)},r});var dependencies=["LayerDataStorage","PluginEditableName"];N2Require("ComponentAbstract",dependencies,["smartSlider"],function(t,e,i,n){"use strict";function r(i,n,o){this.wraps={},this.counter=s++,
7
+ window.layers[this.counter]=this,this.self=this,this.originalProperties=o||{},e.LayerDataStorage.prototype.constructor.call(this),this.readyDeferred=t.Deferred(),this.readyDeferred.done(t.proxy(this.onReady,this)),this.isDeleteStarted=!1,this.isDeleted=!1,this._lastClasses=!1,this.$=t(this),this.proxyRefreshBaseSize=t.proxy(this.refreshBaseSize,this),this.status=r.STATUS.UNDEFINED,this.canvasManager=i,this.group=n,e.PluginActivatable.prototype.constructor.call(this),this.placement=new e.Placement(this),this.readyDeferred.done(t.proxy(this.addUILabels,this))}var s=0;window.layers=[],r.STATUS={UNDEFINED:0,NORMAL:1,LOCKED:2,HIDDEN:3},r.STATUS_INV={0:"UNDEFINED",1:"NORMAL",2:"LOCKED",3:"HIDDEN"};for(var o in e.PluginActivatable.prototype)r.prototype[o]=e.PluginActivatable.prototype[o];for(var o in e.LayerDataStorage.prototype)r.prototype[o]=e.LayerDataStorage.prototype[o];for(var o in e.PluginEditableName.prototype)r.prototype[o]=e.PluginEditableName.prototype[o];for(var o in e.PluginShowOn.prototype)r.prototype[o]=e.PluginShowOn.prototype[o];return r.prototype.addUILabels=function(){this.markTimer=null,this.uiLabel=t('<div class="n2-ss-layer-ui-label-container"><div class="n2-ss-layer-ui-label n2-ss-layer-ui-label-self">'+this.getUILabel()+"</div></div>").appendTo(this.layer),nextend.tooltip.addElement(t('<div class="n2-ss-layer-ui-label n2-ss-layer-ui-label-up n2-ss-layer-ui-label-action"><i class="n2-i n2-i-uplevel"/></div>').on({mousedown:function(t){t.stopPropagation()},click:t.proxy(function(t){this.up(t)},this)}).appendTo(this.uiLabel),"Select parent"),t('<div class="n2-ss-layer-ui-label n2-ss-layer-ui-label-action"><i class="n2-i n2-i-mini-duplicate"/></div>').on({mousedown:function(t){t.stopPropagation()},click:t.proxy(function(){this.duplicate()},this)}).appendTo(this.uiLabel),t('<div class="n2-ss-layer-ui-label n2-ss-layer-ui-label-action"><i class="n2-i n2-i-mini-trash"/></div>').on({mousedown:function(t){t.stopPropagation()},click:t.proxy(function(){this["delete"]()},this)}).appendTo(this.uiLabel)},r.prototype.getUILabel=function(){return this.label},r.prototype.up=function(t){t.stopImmediatePropagation(),this.group.activate(t)},r.prototype.addProperties=function(t){this.createProperty("id",null,t,this),this.createProperty("class","",t),this.createProperty("crop","visible",t),this.createProperty("rotation",0,t),this.createProperty("parallax",0,t),this.createProperty("adaptivefont",0,t),this.createDeviceProperty("fontsize",{desktopPortrait:100},t),e.PluginShowOn.prototype.addProperties.call(this,t),e.PluginEditableName.prototype.addProperties.call(this,t)},r.prototype.getRootElement=function(){return this.layer},r.prototype.create=function(t,e){e=e||!1,e||this.addProperties(!1),"function"==typeof t?this.layer=t.call(null,this):this.layer=this._createLayer(),this.layer.addClass("n2-ss-layer-under-creation"),e&&this.addProperties(this.layer),this.layer.data("layerObject",this),this.layer.triggerHandler("layerStarted",[this]),this.group.container.insert(this),this.group.onChildCountChange(),this.$.triggerHandler("create"),this._start(!0)},r.prototype.load=function(t){this.addProperties(t),this.layer=t.data("layerObject",this),this.layer.triggerHandler("layerStarted",[this]),this.$.triggerHandler("load"),this._start(!1);var e=t.data("status");null!==e&&"undefined"!=typeof e?this.changeStatus(e):this.changeStatus(r.STATUS.NORMAL)},r.prototype._start=function(e){this.createRow();var i=this.layer.find("> .n2-ss-layer-mask");i.length&&(this.wraps.mask=i),this._synccrop(),this._syncrotation(),this.placement.start(),this.placement.setMode(this.group.container.allowedPlacementMode,this.originalProperties),this.setGroup(this.group),this.canvasManager.$.triggerHandler("layerCreated",this),e&&(this.refreshBaseSize(),this.$.triggerHandler("created")),setTimeout(t.proxy(function(){this.isDeleted||(this.placement.onResize(!0),this.layer.css("visibility",""),this.layer.removeClass("n2-ss-layer-under-creation"))},this),300)},r.prototype._onReady=function(){this.originalProperties={},this.readyDeferred.resolve(),this.layer.on({mouseover:t.proxy(this.markOver,this),mouseout:t.proxy(this.markOut,this)})},r.prototype.isReady=function(){return"resolved"==this.readyDeferred.state()},r.prototype.getName=function(){return this.property.name},r.prototype.setGroup=function(t){this.group.$.off("baseSizeUpdated",this.proxyRefreshBaseSize),this.group=t,this.placement.setMode(t.container.allowedPlacementMode),t.container.syncLayerRow(this),this.isReady()&&this.refreshBaseSize(),this.group.$.on("baseSizeUpdated",this.proxyRefreshBaseSize)},r.prototype.changeGroup=function(t,e){var i=this.group;i.$.off("baseSizeUpdated",this.proxyRefreshBaseSize),this.group=e;var n=this.placement.setMode(e.container.allowedPlacementMode);e.container.syncLayerRow(this),this.refreshBaseSize(),e.$.on("baseSizeUpdated",this.proxyRefreshBaseSize),this.userGroupChange(i,t,n,e,this.getIndex()),i.update()},r.prototype.userGroupChange=function(t,e,n,r,s){if(t==r)this.userIndexChange(e,s);else{var o=i.history.addValue(this,this.historyUserGroupChange,[]);o&&o.setValues({historyGroup:t,index:e,placementData:n},{historyGroup:r,index:s})}},r.prototype.historyUserGroupChange=function(t){var e=this.group,i=t.historyGroup.getSelf(),n=t.index;i.container.insertLayerAt(this,n),this.group.$.off("baseSizeUpdated",this.proxyRefreshBaseSize),this.group=i,t.placementData&&this.layer.data(t.placementData),this.placement.setMode(i.container.allowedPlacementMode),i.container.syncLayerRow(this),this.refreshBaseSize(),this.group.$.on("baseSizeUpdated",this.proxyRefreshBaseSize),i.onChildCountChange(),t.placementData&&this.placement.sync(),e.update()},r.prototype.userIndexChange=function(t,e){var n=i.history.addValue(this,this.historyUserIndexChange);n&&n.setValues(t,e),this.group.container.insertLayerAt(this,e)},r.prototype.historyUserIndexChange=function(t){this.group.container.insertLayerAt(this,t)},r.prototype._createLayerListRow=function(e){return this.layerRow=t('<li class="n2-ss-layerlist-row"></li>').data("layer",this).on({mousedown:t.proxy(nextend.context.setMouseDownArea,nextend.context,"layerRowClicked")}).appendTo(this.group.container.$ul),this.layerTitleSpan=t('<span class="n2-ucf">'+this.property.name+"</span>"),this.makeNameEditable(),this.layerTitle=t('<div class="n2-ss-layer-title"></div>').on({mouseenter:t.proxy(function(){this.canvasManager.highlight(this)},this),mouseleave:t.proxy(function(){this.canvasManager.deHighlight(this)},this)}).append(this.layerTitleSpan).append(e).appendTo(this.layerRow).on({mouseup:t.proxy(function(t){nextend.shouldPreventMouseUp||"DIV"!==t.target.tagName||this.activate(t)},this)}),nextend.tooltip.add(this.layerRow),this.layerRow.nextendLayerListItem({UIManager:this.canvasManager.mainContainer.layerListUIManager,layer:this,$item:this.layerRow}),this.layerRow},r.prototype.select=function(t){return this.canvasManager.selectLayer(this,!0)},r.prototype.update=function(){this.readyDeferred.done(t.proxy(this.placement.updatePositionThrottled,this.placement))},r.prototype.updateThrottled=function(){this.placement.updatePositionThrottled()},r.prototype.positionSidebar=function(){this.canvasManager.layerWindow.show(this,this.layer)},r.prototype.showEditor=function(){this.canvasManager.layerWindow._show()},r.prototype.highlight=function(e){e=e||2e3,this.isHighlighted&&(clearTimeout(this.isHighlighted),this.isHighlighted=!1),this.layer.addClass("n2-highlight"),this.isHighlighted=setTimeout(t.proxy(function(){this.layer.removeClass("n2-highlight")},this),e)},r.prototype.setPropertydesktopPortrait=r.prototype.setPropertydesktopLandscape=r.prototype.setPropertytabletPortrait=r.prototype.setPropertytabletLandscape=r.prototype.setPropertymobilePortrait=r.prototype.setPropertymobileLandscape=function(t,e,i){this._setProperty(t,parseInt(e),i)},r.prototype.getHTML=function(t){var i=this._createLayer();for(var r in this.property)"width"!=r&&"height"!=r&&"left"!=r&&"top"!=r&&i.attr("data-"+r.toLowerCase(),this.property[r]);for(var r in this.deviceProperty)for(var s in this.deviceProperty[r])i.attr("data-"+r.toLowerCase()+s,this.deviceProperty[r][s]);for(var r in this.deviceProperty.desktop)i.css(r,this.deviceProperty.desktop[r]+"px");if(this.container!=n){var o=i;this.innerContainer!=n&&(o=i.find(this.innerContainer)),o.append(this.container.getHTML(t))}var a=this.getProperty("id");return a&&""!=a&&i.attr("id",a),this.status>e.ComponentAbstract.STATUS.NORMAL&&i.attr("data-status",this.status),i},r.prototype.duplicate=function(e){var n=this.getHTML(!1);if("absolute"==this.placement.getType()){var r=n.attr("id");r&&(r=t.fn.uid(),n.attr("id",r),n.attr("data-id",r)),n.attr("data-parentid")?(n.data("desktopportraittop",0),n.data("desktopportraitleft",0)):(n.data("desktopportraittop",n.data("desktopportraittop")+40),n.data("desktopportraitleft",n.data("desktopportraitleft")+40)),n.attr("data-parentid","")}var s=this.canvasManager.insertComponentWithNode(this.group,n,this.getIndex()+1,!1,!0);return this.layerRow.trigger("mouseleave"),e&&s.activate(),i.history.addSimple(this,this.historyDeleteDuplicated,this.historyDuplicate,[s,s.container?s.container.getAllLayers():!1]),s},r.prototype.historyDeleteDuplicated=function(t){t.getSelf()["delete"]()},r.prototype.historyDuplicate=function(t,e){var i=this.duplicate(!1,!1);if(t.setSelf(i),e)for(var n=i.container.getAllLayers(),r=0;r<n.length;r++)e[r].setSelf(n[r])},r.prototype.historyDelete=function(){this["delete"]()},r.prototype.historyRestore=function(t,e,i,n){var r=this.canvasManager.insertComponentWithNode(this.group.getSelf(),t.clone(),i,!1,!0);if(this.setSelf(r),n)for(var s=r.container.getAllLayers(),o=0;o<s.length;o++)n[o].setSelf(s[o])},r.prototype["delete"]=function(){i.positionDisplay.hide(),nextend.tooltip.onLeave(),this._delete()},r.prototype._delete=function(){if(this.isDeleteStarted=!0,this.canvasManager.mainContainer.getSelectedLayer()==this&&this.canvasManager.layerWindow.hide(),this.isHighlighted&&(clearTimeout(this.isHighlighted),this.isHighlighted=!1),i.history.startBatch(),i.history.addSimple(this,this.historyRestore,this.historyDelete,[this.getHTML(!1),this.group,this.getIndex(),this.container?this.container.getAllLayers():!1]),this.deActivate(),this.container!=n){i.history.off();for(var t=this.container.getSortedLayers(),e=0;e<t.length;e++)t[e]._delete();i.history.on()}i.history.endBatch(),this.item!=n&&this.item["delete"](),this.placement["delete"](),this.layer.trigger("mouseup"),this.isDeleted=!0,this.canvasManager.mainContainer.layerDeleted(this),this.layer.triggerHandler("LayerDeleted"),this.getRootElement().remove(),this.layerRow.remove(),this.group.update(),this.group.$.off("baseSizeUpdated",this.proxyRefreshBaseSize),this.$.trigger("layerDeleted"),this.markTimer&&clearTimeout(this.markTimer),delete this.layer,delete this.itemEditor,this.group.onChildCountChange()},r.prototype.getData=function(i){var n={type:this.type,lastplacement:this.placement.getType()};this.status>e.ComponentAbstract.STATUS.NORMAL&&(n.status=this.status);var r=t.extend({},this.property);for(var s in this.deviceProperty)for(var o in this.deviceProperty[s]){delete r[o];var a=this.deviceProperty[s][o];if("undefined"!=typeof a){switch(o){case"width":case"height":this.isDimensionPropertyAccepted(a)||(a=parseFloat(a));break;case"fontsize":case"left":case"top":case"gutter":case"wrap":a=parseFloat(a)}n[s.toLowerCase()+o]=a}}for(var l in r)n[l.toLowerCase()]=r[l];return n},r.prototype.onChildCountChange=function(){},r.prototype.getDataWithChildren=function(e,i){return-1==t.inArray(this,i)&&(i.push(this),e.push(this.getData({layersIncluded:!0,itemsIncluded:!0})),this.layer.triggerHandler("LayerGetDataWithChildren",[e,i])),e},r.prototype.markOver=function(t){this.layer.addClass("n2-ss-mouse-over"),t.stopPropagation(),this.group.markEnter(),this.markTimer&&clearTimeout(this.markTimer),this.layer.addClass("n2-ss-mouse-over-delayed"),this.uiLabel.removeClass("invisible")},r.prototype.markOut=function(e){this.layer.removeClass("n2-ss-mouse-over"),e&&e.stopPropagation(),this.group.markLeave(),this.markTimer&&clearTimeout(this.markTimer),this.isActive||this.uiLabel.addClass("invisible"),this.markTimer=setTimeout(t.proxy(function(){this.layer.removeClass("n2-ss-mouse-over-delayed"),this.uiLabel.removeClass("invisible"),this.markTimer=null},this),10)},r.prototype.markEnter=function(t){this.layer.addClass("n2-ss-mouse-hover"),this.group.markEnter()},r.prototype.markLeave=function(t){this.layer.removeClass("n2-ss-mouse-hover"),this.group.markLeave()},r.prototype.formSetname=function(t,e){},r.prototype.formSetnameSynced=function(t,e){},r.prototype.formSetdesktopPortrait=function(t,e){t.currentForm.desktopPortrait.data("field").insideChange(e)},r.prototype.formSetdesktopLandscape=function(t,e){t.currentForm.desktopLandscape.data("field").insideChange(e)},r.prototype.formSettabletPortrait=function(t,e){t.currentForm.tabletPortrait.data("field").insideChange(e)},r.prototype.formSettabletLandscape=function(t,e){t.currentForm.tabletLandscape.data("field").insideChange(e)},r.prototype.formSetmobilePortrait=function(t,e){t.currentForm.mobilePortrait.data("field").insideChange(e)},r.prototype.formSetmobileLandscape=function(t,e){t.currentForm.mobileLandscape.data("field").insideChange(e)},r.prototype.sync=function(){if(this._syncid(),this.container)for(var t=this.container.getSortedLayers(),e=0;e<t.length;e++)t[e].sync();this.placement.sync()},r.prototype._syncid=function(){var t=this.getProperty("id");t&&""!=t?this.layer.attr("id",t):this.layer.removeAttr("id")},r.prototype.requestID=function(){var e=this.getProperty("id");return e||(e=t.fn.uid(),this.setProperty("id",e,"layer")),e},r.prototype._syncfontsize=function(){this.adjustFontSize(this.getProperty("adaptivefont"),this.getProperty("fontsize"),!0)},r.prototype._syncadaptivefont=function(){this.adjustFontSize(this.getProperty("adaptivefont"),this.getProperty("fontsize"),!0)},r.prototype.adjustFontSize=function(t,e,i){e=parseInt(e),parseInt(t)?this.layer.css("font-size",16*e/100+"px"):100!=e?this.layer.css("font-size",e+"%"):this.layer.css("font-size",""),this.refreshBaseSize(),i&&this.update()},r.prototype.refreshBaseSize=function(){var t=this.getFontSize();this.isAdaptiveFont()?this.baseSize=16*t/100:this.baseSize=this.group.baseSize*t/100,this.$.triggerHandler("baseSizeUpdated")},r.prototype.getFontSize=function(){return parseInt(this.getProperty("fontsize"))},r.prototype.isAdaptiveFont=function(){return parseInt(this.getProperty("adaptivefont"))},r.prototype._synccrop=function(){var t=this.getProperty("crop");"auto"==t&&(t="hidden"),"mask"==t?(t="hidden",this.addWrap("mask","<div class='n2-ss-layer-mask'></div>")):(this.removeWrap("mask"),this.layer.data("animatableselector",null)),this.layer.css("overflow",t)},r.prototype._syncrotation=function(){var t=parseFloat(this.getProperty("rotation"));if(t/360!=0){var e=this.addWrap("rotation","<div class='n2-ss-layer-rotation'></div>");NextendTween.set(e[0],{rotationZ:t})}else this.removeWrap("rotation")},r.prototype.addWrap=function(e,i){if(this.wraps[e]===n){var r=t(i);switch(this.wraps[e]=r,e){case"mask":r.appendTo(this.layer),this.wraps.rotation!==n?r.append(this.wraps.rotation):r.append(this.getContents()),this.layer.data("animatableselector",".n2-ss-layer-mask:first");break;case"rotation":this.wraps.mask!==n?r.appendTo(this.wraps.mask):r.appendTo(this.layer),r.append(this.getContents())}}return this.wraps[e]},r.prototype.removeWrap=function(t){if(this.wraps[t]!==n){switch(t){case"mask":this.wraps.rotation!==n?this.layer.append(this.wraps.rotation):this.layer.append(this.getContents());break;case"rotation":this.wraps.mask!==n?this.wraps.mask.append(this.getContents()):this.layer.append(this.getContents())}this.wraps[t].remove(),delete this.wraps[t]}},r.prototype.getContents=function(){return!1},r.prototype._syncclass=function(){this._lastClasses!==!1&&this.layer.removeClass(this._lastClasses);var t=this.getProperty("class");t&&""!=t?(this.layer.addClass(t),this._lastClasses=t):this._lastClasses=!1},r.prototype._syncparallax=function(){},r.prototype._syncgeneratorvisible=function(){},r.prototype._syncmouseenter=r.prototype._syncclick=r.prototype._syncmouseleave=r.prototype._syncplay=r.prototype._syncpause=r.prototype._syncstop=function(){},r.prototype.renderModeProperties=function(t){e.LayerDataStorage.prototype.renderModeProperties.call(this),this.placement.renderModeProperties(t)},r.prototype.getIndex=function(){return this.group.container.getLayerIndex(this.layer)},r.prototype.toString=function(){return this.type+" #"+this.counter},r.prototype.setSelf=function(t){t===n&&console.error(t),this.self!=this&&this.self.setSelf(t),this.self=t},r.prototype.getSelf=function(){return this.self!==this&&(this.self=this.self.getSelf()),this.self},r.prototype.historyStoreOnPlacement=function(){var t=Array.prototype.slice.call(arguments);t.splice(1,1),this.placement.current[arguments[1]].apply(this.placement.current,t)},r.prototype.getDroppable=function(){return!1},r.prototype.onCanvasUpdate=function(t,e,i){if(this.group==e)t!=i&&this.userIndexChange(t,i);else{var n;if(this.canvasManager.isCol(this.group))for(n=this;n&&(!n.placement||"absolute"!==n.placement.getType());)n=n.group;this.changeGroup(t,e),e.onChildCountChange();for(var r=this;r&&(!r.placement||"absolute"!==r.placement.getType());)r=r.group;n&&n!=r&&n.placement.updatePosition(),r&&r.placement.updatePosition()}},r.prototype.setStatusNormal=function(){this.changeStatus(r.STATUS.NORMAL)},r.prototype.changeStatus=function(t){var e=this.status;switch(t==this.status&&(t=r.STATUS.NORMAL),this.status){case r.STATUS.HIDDEN:this.getRootElement().removeAttr("data-visibility"),this.layerRow.removeClass("n2-ss-layer-status-hidden");break;case r.STATUS.LOCKED:this.layer.removeClass("n2-ss-layer-locked"),this.layerRow.removeClass("n2-ss-layer-status-locked")}switch(this.status=t,this.status){case r.STATUS.HIDDEN:this.getRootElement().attr("data-visibility","hidden"),this.layerRow.addClass("n2-ss-layer-status-hidden");break;case r.STATUS.LOCKED:this.layer.addClass("n2-ss-layer-locked"),this.layerRow.addClass("n2-ss-layer-status-locked")}this.placement.current.changeStatus(e,this.status)},r.prototype.moveX=function(t){"absolute"==this.placement.getType()&&this.placement.current.moveX(t)},r.prototype.moveY=function(t){"absolute"==this.placement.getType()&&this.placement.current.moveY(t)},r}),N2Require("Content",["ContentAbstract"],["smartSlider"],function(t,e,i,n){"use strict";function r(i,n,r){this.label=n2_("Content"),this.type="content",this.innerContainer="> .n2-ss-layer-content",this._defaults=t.extend({verticalalign:"center"},this._defaults),e.ContentAbstract.prototype.constructor.call(this,i,n,r),this.placement.allow("content"),i.setMainContent(this)}return r.prototype=Object.create(e.ContentAbstract.prototype),r.prototype.constructor=r,r.prototype.addUILabels=function(){this.markTimer=null,this.uiLabel=t('<div class="n2-ss-layer-ui-label-container"><div class="n2-ss-layer-ui-label n2-ss-layer-ui-label-self">'+this.getUILabel()+"</div></div>").appendTo(this.layer)},r.prototype.addProperties=function(t){e.ContentAbstract.prototype.addProperties.call(this,t),this.createDeviceProperty("selfalign",{desktopPortrait:"inherit"},t)},r.prototype.getRootElement=function(){return this.$outerSection},r.prototype.getBackgroundElement=function(){return this.$outerSection},r.prototype._createLayer=function(){return t('<div class="n2-ss-layer n2-ss-content-empty"><div class="n2-ss-section-main-content n2-ss-layer-content"></div></div>').attr("data-type",this.type)},r.prototype.createRow=function(){this.$outerSection=this.layer.parent(),this.$outerSection.hasClass("n2-ss-section-outer")||(this.$outerSection=t('<div class="n2-ss-section-outer"></div>').insertAfter(this.layer).append(this.layer)),this.$outerSection.data("layerObject",this),this.$content=this.layer.find(".n2-ss-layer-content:first");var i=t('<div class="n2-ss-layer-status"></div>'),n=t('<div class="n2-button n2-button-icon n2-button-m n2-button-m-narrow" data-n2tip="'+n2_("Delete layer")+'"><i class="n2-i n2-i-delete n2-i-grey-opacity"></i></div>').on("click",t.proxy(this["delete"],this));this.container=new e.LayerContainer(this,t('<ul class="n2-list n2-h4 n2-list-orderable" />'),"normal","> .n2-ss-layer",["row","layer"]),this.container.setLayerContainerElement(this.$content),t('<a href="#" class="n2-ss-sc-hide n2-button n2-button-icon n2-button-m"><i class="n2-i n2-i-eye"></i></a>').appendTo(i).on("click",t.proxy(function(t){t.preventDefault(),this.status==e.ComponentAbstract.STATUS.HIDDEN?this.setStatusNormal():this.changeStatus(e.ComponentAbstract.STATUS.HIDDEN)},this)),this._createLayerListRow([t('<div class="n2-actions-left"></div>').append(i),t('<div class="n2-actions"></div>').append(n)]).addClass("n2-ss-layer-content-row"),this.openerElement=t('<a href="#" class="n2-ss-layer-icon n2-button n2-button-icon n2-button-m"><i class="n2-i n2-i-col"></i></a>').insertBefore(this.layerTitleSpan).on("click",t.proxy(this.switchOpened,this)),this.container.$ul.appendTo(this.layerRow),this.readyDeferred.done(t.proxy(this._syncopened,this))},r.prototype.create=function(){this.originalProperties.adaptivefont=1,e.ContentAbstract.prototype.create.call(this),this._syncselfalign(),this._onReady()},r.prototype.load=function(t){e.ContentAbstract.prototype.load.call(this,t),this._syncselfalign(),this._onReady()},r.prototype._onReady=function(){e.ContentAbstract.prototype._onReady.call(this),this.startUISizing()},r.prototype.startUISizing=function(){this.layer.nextendNormalSizing({start:t.proxy(function(t,e){i.positionDisplay.show("NormalSizing"),"maxwidth"==e&&this.layer.addClass("n2-ss-has-maxwidth")},this),resizeMaxWidth:t.proxy(function(t,e){i.positionDisplay.update(t,"NormalSizing","Max-width: "+(0==e.value?"none":e.value+"px"))},this),stopMaxWidth:t.proxy(function(t,e){i.positionDisplay.hide("NormalSizing"),this.setProperty("maxwidth",e.value)},this)})},r.prototype["delete"]=function(){for(var t=this.container.getSortedLayers(),e=0;e<t.length;e++)t[e]["delete"]()},r.prototype.remove=function(){this._delete()},r.prototype.update=function(){nextend.smartSlider.frontend.responsive.doVerticalResize()},r.prototype.onChildCountChange=function(){var t=this.container.getSortedLayers();this.layer.toggleClass("n2-ss-content-empty",0==t.length)},r.prototype.renderModeProperties=function(t){e.ContentAbstract.prototype.renderModeProperties.call(this,t),this._syncselfalign()},r.prototype._syncselfalign=function(){this.layer.attr("data-cssselfalign",this.getProperty("selfalign"))},r.prototype.duplicate=function(t){console.error("Content can not be duplicated!")},r}),N2Require("ContentAbstract",["LayerContainer","ComponentAbstract"],["smartSlider"],function(t,e,i,n){"use strict";function r(i,n,r){this._defaults=t.extend({verticalalign:"flex-start"},this._defaults),this._syncbgThrottled=NextendThrottle(this._syncbgThrottled,50),e.ComponentAbstract.prototype.constructor.call(this,i,n,r)}return r.prototype=Object.create(e.ComponentAbstract.prototype),r.prototype.constructor=r,r.prototype.addProperties=function(t){this.createProperty("opened",1,t,this),e.ComponentAbstract.prototype.addProperties.call(this,t),this.createProperty("bgimage","",t),this.createProperty("bgimagex",50,t),this.createProperty("bgimagey",50,t),this.createProperty("bgimageparallax",0,t),this.createProperty("bgcolor","00000000",t),this.createProperty("bgcolorgradient","off",t),this.createProperty("bgcolorgradientend","00000000",t),this.createProperty("verticalalign",this._defaults.verticalalign,t),this.createDeviceProperty("maxwidth",{desktopPortrait:0},t),this.createDeviceProperty("inneralign",{desktopPortrait:"inherit"},t),this.createDeviceProperty("padding",{desktopPortrait:"10|*|10|*|10|*|10|*|px+"},t)},r.prototype.getBackgroundElement=function(){return this.$content},r.prototype.getPaddingElement=function(){return this.$content},r.prototype.create=function(){e.ComponentAbstract.prototype.create.call(this),this.initUI(),this._syncverticalalign(),this._syncmaxwidth(),this._syncpadding(),this._syncinneralign(),this._syncbgThrottled()},r.prototype.load=function(t){e.ComponentAbstract.prototype.load.call(this,t),this.initUI(),this._syncverticalalign(),this._syncmaxwidth(),this._syncpadding(),this._syncinneralign(),this._syncbgThrottled(),this.container.startWithExistingNodes()},r.prototype.initUI=function(){this.layer.on({mousedown:t.proxy(nextend.context.setMouseDownArea,nextend.context,"layerClicked"),click:t.proxy(function(t){!nextend.shouldPreventMouseUp&&this.canvasManager.preventActivationBubbling()&&this.activate(t)},this),dblclick:t.proxy(function(e){e.stopPropagation(),t('[data-tab="layer"]').trigger("click")},this)}),this.getPaddingElement().nextendSpacing({handles:"n, s, e, w",start:t.proxy(function(t,e){i.positionDisplay.show("Spacing")},this),spacing:t.proxy(function(t,e){var n="";for(var r in e.changed)n+="Padding "+r+": "+e.changed[r]+"px<br>";i.positionDisplay.update(t,"Spacing",n)},this),stop:t.proxy(this.onSpacingStop,this)})},r.prototype.onSpacingStop=function(e,n){i.positionDisplay.hide("Spacing");var r=this.getPadding().split("|*|"),s=1,o=1;"px+"==r[r.length-1]&&Math.abs(parseFloat(this.layer.css("fontSize"))-this.baseSize)>1&&(s=this.canvasManager.getResponsiveRatio("h"),o=this.canvasManager.getResponsiveRatio("v"));for(var a in n.changed){var l=n.changed[a];switch(a){case"top":r[0]=Math.round(l/o);break;case"right":r[1]=Math.round(l/s);break;case"bottom":r[2]=Math.round(l/o);break;case"left":r[3]=Math.round(l/s)}}this.setProperty("padding",r.join("|*|")),t("#layercol-padding").data("field").insideChange(r.join("|*|"))},r.prototype.switchOpened=function(t){t.preventDefault(),this.getProperty("opened")?this.setProperty("opened",0):this.setProperty("opened",1)},r.prototype._syncopened=function(){this.getProperty("opened")?(this.openerElement.removeClass("n2-closed"),this.container.$ul.css("display",""),this.layer.triggerHandler("opened")):(this.openerElement.addClass("n2-closed"),this.container.$ul.css("display","none"),this.layer.triggerHandler("closed"))},r.prototype.getPadding=function(){return this.getProperty("padding")},r.prototype._syncpadding=function(){var t=this.getPadding().split("|*|"),e=t.pop(),i=this.baseSize;if("px+"==e&&i>0){e="em";for(var n=0;n<t.length;n++)t[n]=parseInt(t[n])/i}var r=t.join(e+" ")+e;this.getPaddingElement().css("padding",r),this.update(),this.getPaddingElement().nextendSpacing("option","current",r)},r.prototype._syncmaxwidth=function(){var t=parseInt(this.getProperty("maxwidth"));0>=t||isNaN(t)?this.layer.css("maxWidth","").removeClass("n2-ss-has-maxwidth"):this.layer.css("maxWidth",t+"px").addClass("n2-ss-has-maxwidth"),this.update()},r.prototype.getInnerAlign=function(){return this.getProperty("inneralign")},r.prototype._syncinneralign=function(){this.layer.attr("data-csstextalign",this.getInnerAlign())},r.prototype.getVerticalAlign=function(){return this.getProperty("verticalalign")},r.prototype._syncverticalalign=function(){this.$content.attr("data-verticalalign",this.getVerticalAlign())},r.prototype._syncbgimage=r.prototype._syncbgimagex=r.prototype._syncbgimagey=r.prototype._syncbgimageparallax=r.prototype._syncbgcolor=r.prototype._syncbgcolorgradient=r.prototype._syncbgcolorgradientend=function(){this._syncbgThrottled()},r.prototype._syncbgThrottled=function(){var t="",e=nextend.smartSlider.generator.fill(this.getProperty("bgimage"));if(""!=e){var i=parseInt(this.getProperty("bgimagex"));isFinite(i)||(i=50);var n=parseInt(this.getProperty("bgimagey"));isFinite(n)||(n=50),t+='url("'+nextend.imageHelper.fixed(e)+'") '+i+"% "+n+"% / cover no-repeat"+(1==this.getProperty("bgimageparallax")?" fixed":"")}var r=this.getProperty("bgcolor"),s=this.getProperty("bgcolorgradient"),o=this.getProperty("bgcolorgradientend");if(0!=N2Color.hex2alpha(r)||"off"!=s&&0!=N2Color.hex2alpha(o)){var a="";switch(""!=t&&(a=","+t),s){case"horizontal":this.getBackgroundElement().css("background","-moz-linear-gradient(left, "+N2Color.hex2rgbaCSS(r)+" 0%,"+N2Color.hex2rgbaCSS(o)+" 100%)"+a).css("background"," -webkit-linear-gradient(left, "+N2Color.hex2rgbaCSS(r)+" 0%,"+N2Color.hex2rgbaCSS(o)+" 100%)"+a).css("background","linear-gradient(to right, "+N2Color.hex2rgbaCSS(r)+" 0%,"+N2Color.hex2rgbaCSS(o)+" 100%)"+a);break;case"vertical":this.getBackgroundElement().css("background","-moz-linear-gradient(top, "+N2Color.hex2rgbaCSS(r)+" 0%,"+N2Color.hex2rgbaCSS(o)+" 100%)"+a).css("background"," -webkit-linear-gradient(top, "+N2Color.hex2rgbaCSS(r)+" 0%,"+N2Color.hex2rgbaCSS(o)+" 100%)"+a).css("background","linear-gradient(to bottom, "+N2Color.hex2rgbaCSS(r)+" 0%,"+N2Color.hex2rgbaCSS(o)+" 100%)"+a);break;case"diagonal1":this.getBackgroundElement().css("background","-moz-linear-gradient(45deg, "+N2Color.hex2rgbaCSS(r)+" 0%,"+N2Color.hex2rgbaCSS(o)+" 100%)"+a).css("background"," -webkit-linear-gradient(45deg, "+N2Color.hex2rgbaCSS(r)+" 0%,"+N2Color.hex2rgbaCSS(o)+" 100%)"+a).css("background","linear-gradient(45deg, "+N2Color.hex2rgbaCSS(r)+" 0%,"+N2Color.hex2rgbaCSS(o)+" 100%)"+a);break;case"diagonal2":this.getBackgroundElement().css("background","-moz-linear-gradient(-45deg, "+N2Color.hex2rgbaCSS(r)+" 0%,"+N2Color.hex2rgbaCSS(o)+" 100%)"+a).css("background"," -webkit-linear-gradient(-45deg, "+N2Color.hex2rgbaCSS(r)+" 0%,"+N2Color.hex2rgbaCSS(o)+" 100%)"+a).css("background","linear-gradient(-45deg, "+N2Color.hex2rgbaCSS(r)+" 0%,"+N2Color.hex2rgbaCSS(o)+" 100%)"+a);break;case"off":default:""!=t?t="linear-gradient("+N2Color.hex2rgbaCSS(r)+", "+N2Color.hex2rgbaCSS(r)+"),"+t:t+=N2Color.hex2rgbaCSS(r),this.getBackgroundElement().css("background",t)}}else this.getBackgroundElement().css("background",t)},r.prototype.getData=function(t){var i=e.ComponentAbstract.prototype.getData.call(this,t);return t.layersIncluded&&(i.layers=this.container.getData(t)),i},r.prototype.onChildCountChange=function(){this.layer.toggleClass("n2-ss-content-empty",0==this.container.getLayerCount()),this.update()},r.prototype.renderModeProperties=function(t){e.ComponentAbstract.prototype.renderModeProperties.call(this,t),this._syncmaxwidth(),this._syncpadding(),this._syncinneralign()},r.prototype.getDroppable=function(){return this.layer.is(":visible")&&this.status!=N2Classes.ComponentAbstract.STATUS.HIDDEN&&this.status!=N2Classes.ComponentAbstract.STATUS.LOCKED?{$container:this.$content,layer:this,placement:"normal",axis:"y"}:"hidden"},r.prototype.getLLDroppable=function(t){switch(t.type){case"layer":case"row":return{$container:this.container.$ul,layer:this}}return!1},r.prototype.getContents=function(){return this.$content},r}),N2Require("Layer",["ComponentAbstract"],["smartSlider"],function(t,e,i,n){"use strict";function r(i,n,r){this.label=n2_("Layer"),this.type="layer",this.parent=!1,this.itemEditor=i.itemEditor,e.ComponentAbstract.prototype.constructor.call(this,i,n,r),this.placement.allow("absolute"),this.placement.allow("normal"),this.$.on("load create",t.proxy(this.startItem,this))}return r.prototype=Object.create(e.ComponentAbstract.prototype),r.prototype.constructor=r,r.prototype.create=function(){e.ComponentAbstract.prototype.create.apply(this,arguments),this.initUI(),this._onReady()},r.prototype.load=function(t){e.ComponentAbstract.prototype.load.call(this,t),this.initUI(),this._onReady()},r.prototype.startItem=function(){var t=this.layer.find(".n2-ss-item");new(e[this.itemEditor.getItemClass(t.data("item"))])(t,this,this.itemEditor),this.layer.nextendCanvasItem({canvasUIManager:this.canvasManager.mainContainer.canvasUIManager,layer:this,$layer:this.layer}),this.item.needSize&&this.layer.addClass("n2-ss-layer-needsize")},r.prototype.initUI=function(){this.layer.on({mousedown:t.proxy(nextend.context.setMouseDownArea,nextend.context,"layerClicked"),click:t.proxy(function(t){this.canvasManager.preventActivationBubbling()&&this.activate(t)},this),dblclick:t.proxy(function(e){nextend.context.isPreventDblClick||(e.stopPropagation(),
8
+ t('[data-tab="item"]').trigger("click"),this.item.itemEditor.focusFirst("dblclick"))},this)})},r.prototype.getContent=function(){var t=this.layer,e=t.data("animatableselector");return e&&(t=t.find(e)),t},r.prototype._createLayer=function(){return t('<div class="n2-ss-layer"></div>').attr("data-type",this.type)},r.prototype.createRow=function(){var i=t('<div class="n2-ss-layer-status"></div>'),n=t('<div class="n2-button n2-button-icon n2-button-m n2-button-m-narrow" data-n2tip="'+n2_("Delete layer")+'"><i class="n2-i n2-i-delete n2-i-grey-opacity"></i></div>').on("click",t.proxy(this["delete"],this)),r=t('<div class="n2-button n2-button-icon n2-button-m n2-button-m-narrow" data-n2tip="'+n2_("Duplicate layer")+'"><i class="n2-i n2-i-duplicate n2-i-grey-opacity"></i></div>').on("click",t.proxy(function(){this.duplicate(!0,!1)},this));t('<a href="#" class="n2-ss-sc-hide n2-button n2-button-icon n2-button-m"><i class="n2-i n2-i-eye"></i></a>').appendTo(i).on("click",t.proxy(function(t){t.preventDefault(),this.status==e.ComponentAbstract.STATUS.HIDDEN?this.setStatusNormal():this.changeStatus(e.ComponentAbstract.STATUS.HIDDEN)},this)),this._createLayerListRow([t('<div class="n2-actions-left"></div>').append(i),t('<div class="n2-actions"></div>').append(r).append(n)]).addClass("n2-ss-layer-layer-row")},r.prototype.activate=function(t,i,n){e.PluginActivatable.prototype.activate.call(this,t,i,n),this.item?this.item.activate(null,i):console.error("The layer do not have item on it!")},r.prototype.getHTML=function(t){var i=e.ComponentAbstract.prototype.getHTML.call(this,t),n=this.item.getHTML(t);return i.attr("style",i.attr("style")+this.getStyleText()).append(n),i},r.prototype.getData=function(t){var i=e.ComponentAbstract.prototype.getData.call(this,t);return t.itemsIncluded&&(i.item=this.item.getData()),i},r.prototype.getStyleText=function(){var t="",e=this.property.crop;return"auto"!=e&&"mask"!=e||(e="hidden"),t+="overflow:"+e+";"},r.prototype.getContents=function(){return this.item.$item},r.prototype.setSelf=function(t){this.self!=this&&this.self.setSelf(t),this.self=t,this.item.setSelf(t.item)},r.prototype.getSelf=function(){return this.self!==this&&(this.self=this.self.getSelf()),this.self},r}),N2Require("MainContainer",["LayerContainer"],["smartSlider"],function(t,e,i,n){"use strict";function r(n){this.baseSize=16,this.activeLayer=null,this.$=n.$,this.isActiveGroupBlurred=!0,this.isMainGroup=!0,this.canvasManager=n,this.layer=i.$currentSlideElement.find(".n2-ss-layers-container").addBack().last(),this.layer.nextendCanvas({mainContainer:this,tolerance:5,smartguides:t.proxy(function(t){return t.$layer.triggerHandler("LayerParent"),this.canvasManager.getSnap()},this),display:{hidden:!0,show:t.proxy(function(){i.positionDisplay.show("Canvas")},this),update:t.proxy(function(t,e){i.positionDisplay.update(t,"Canvas","L: "+parseInt(0|e.left)+"px<br />T: "+parseInt(0|e.top)+"px")},this),hide:t.proxy(function(){i.positionDisplay.hide("Canvas")},this)},start:t.proxy(function(t,e){this.canvasManager.canvasDragStart(t,e)},this),drag:t.proxy(function(t,e){this.canvasManager.canvasDragMove(t,e),e.layer&&e.layer.placement.current.triggerLayerResized()},this),stop:t.proxy(function(t,e){this.canvasManager.canvasDragStop(t,e),e.layer&&e.layer.placement.current.triggerLayerResized()},this)}),this.canvasUIManager=this.layer.data("uiNextendCanvas"),this.layer.nextendLayerList({mainContainer:this,$fixed:t("#n2-ss-layers"),$scrolled:t("#n2-ss-layer-list")}),this.layerListUIManager=this.layer.data("uiNextendLayerList"),this.layer.parent().prepend('<div class="n2-ss-slide-border n2-ss-slide-border-left" /><div class="n2-ss-slide-border n2-ss-slide-border-top" /><div class="n2-ss-slide-border n2-ss-slide-border-right" /><div class="n2-ss-slide-border n2-ss-slide-border-bottom" />'),this.container=new e.LayerContainer(this,t("#n2-ss-layer-list").find("ul"),"absolute","> .n2-ss-section-outer > .n2-ss-layer, > .n2-ss-layer, > .n2-ss-layer-group",["content","row","layer","group"]),this.layerRow=this.container.$ul,this.$.on("layerCreated",t.proxy(function(){this.refreshHasLayers()},this))}return r.prototype.lateInit=function(){this.container.startWithExistingNodes(),this.layer.parent().on("click",t.proxy(function(){this.canvasManager.shouldPreventActivationBubble?this.blurActiveGroup():this.unBlurActiveGroup(),this.canvasManager.allowActivation()},this)),i.frontend.sliderElement.on("SliderResize",t.proxy(this.onResize,this))},r.prototype.onResize=function(t,e){for(var i=this.getEverySortedLayers(),n=0;n<i.length;n++)i[n].placement.doLinearResize(e)},r.prototype.getEverySortedLayers=function(){for(var t=this.container.getChildLayersRecursive(!1),e={},i=t.length-1;i>=0;i--)"undefined"!=typeof t[i].property.parentid&&t[i].property.parentid&&("undefined"==typeof e[t[i].property.parentid]&&(e[t[i].property.parentid]=[]),e[t[i].property.parentid].push(t[i]),t.splice(i,1));for(var i=0;i<t.length;i++)"undefined"!=typeof t[i].property.id&&t[i].property.id&&"undefined"!=typeof e[t[i].property.id]&&(e[t[i].property.id].unshift(0),e[t[i].property.id].unshift(i+1),t.splice.apply(t,e[t[i].property.id]),delete e[t[i].property.id]);return t},r.prototype.deleteLayers=function(){for(var t=this.container.getSortedLayers(),e=0;e<t.length;e++)t[e]["delete"]()},r.prototype.blurActiveGroup=function(){this.isActiveGroupBlurred=!0},r.prototype.unBlurActiveGroup=function(){this.isActiveGroupBlurred=!1},r.prototype.getActiveGroup=function(){if(this.isActiveGroupBlurred){var t=this,e=this.activeLayer;switch(this.canvasManager.isGroup(e)||this.canvasManager.isCol(e)||this.canvasManager.isContent(e)?t=e:this.canvasManager.isRow(e)?t=e.container.getSortedLayers()[0]:e&&(t=e.group),this.canvasManager.currentEditorMode){case"content":t==this&&(t=this.canvasManager.mainContent);break;case"canvas":t==this.canvasManager.mainContent&&(t=this)}return t}switch(this.canvasManager.currentEditorMode){case"content":return this.canvasManager.mainContent}return this},r.prototype.getSelectedLayer=function(){return null==this.activeLayer?!1:this.activeLayer},r.prototype.getLayerData=function(t){if(t===n)return[];for(var e=[],i=[],r=0;r<t.length;r++)t[r].getDataWithChildren(e,i);return e},r.prototype.layerDeleted=function(t){for(var e=this.canvasManager.selectedLayers.length;e--;)t==this.canvasManager.selectedLayers[e]&&this.canvasManager.selectedLayers.splice(e,1);this._afterLayerDeletedDeBounced(t),this.refreshHasLayers()},r.prototype._afterLayerDeletedDeBounced=NextendDeBounce(function(t){this.activeLayer&&!this.activeLayer.isDeleted||this.canvasManager.resetActiveLayer()},50),r.prototype.refreshHasLayers=function(){t("body").toggleClass("n2-ss-has-layers",this.container.getLayerCount()>0),nextend.triggerResize()},r.prototype.getName=function(){return"Slide"},r.prototype.update=function(){},r.prototype.onChildCountChange=function(){},r.prototype.markEnter=function(t){},r.prototype.markLeave=function(t){},r.prototype.getSelf=function(){return this},r.prototype.createLayerAnimations=function(t,e){for(var i=[],n=this.container.getSortedLayers(),r=0;r<n.length;r++)i.push.apply(i,n[r].createLayerAnimations(t,e));return i},r.prototype.getDroppables=function(e){var i,n=this.canvasManager.currentEditorMode,r=[];if("canvas"==n){r.push(this.getDroppable()),i=this.container.getSortedLayers();var s=t.inArray(this.canvasManager.mainContent,i);s>-1&&i.splice(s,1)}else"content"==n&&(i=[this.canvasManager.mainContent]);for(var o=0;o<i.length;o++)if(i[o]!=e){var a=i[o].getDroppable();"object"==typeof a&&r.push(a),"hidden"!=a&&i[o].container&&r.push.apply(r,i[o].container.getDroppables(e))}return r},r.prototype.getLLDroppables=function(t){return this.container.getLLDroppables(t)},r.prototype.getDroppable=function(){return{$container:this.layer,layer:this,placement:"absolute"}},r.prototype.getLLDroppable=function(t){switch(t.type){case"layer":case"row":case"group":case"content":return{$container:this.container.$ul,layer:this}}return!1},r.prototype.replaceLayers=function(e){this._idTranslation={};var n=this.dataToLayers(t.extend(!0,[],e).reverse()),r=[];this.deleteLayers(),this.canvasManager.mainContent.remove();for(var s=0;s<n.length;s++)r.push(this.container.append(n[s]));return this.canvasManager.refreshMode(),this.container.layerContainerElement.n2imagesLoaded().always(t.proxy(this.canvasManager.refreshMode,this.canvasManager)),this.getSelectedLayer()||r.length>0&&r[0].activate(),i.history.isEnabled()&&i.history.addSimple(this,this.historyDeleteAll,this.historyReplaceLayers,[e,r,this.container.getAllLayers()]),r},r.prototype.historyDeleteAll=function(t,e){for(var i=0;i<e.length;i++)e[i].getSelf()["delete"]();this.canvasManager.mainContent.getSelf().remove()},r.prototype.historyReplaceLayers=function(t,e,i){this.replaceLayers(t);for(var n=this.container.getAllLayers(),r=0;r<i.length;r++)i[r].setSelf(n[r])},r.prototype.addLayers=function(e,n){this._idTranslation={};for(var r=this.dataToLayers(t.extend(!0,[],e)),s=[],o=0;o<r.length;o++)s.push(n.container.append(r[o]));return this.canvasManager.refreshMode(),i.history.addSimple(this,this.historyDeleteLayers,this.historyAddLayers,[e,s,n]),s},r.prototype.historyDeleteLayers=function(t,e,i){for(var n=0;n<e.length;n++)e[n].getSelf()["delete"]()},r.prototype.historyAddLayers=function(t,e,i){for(var n=this.addLayers(t,i.getSelf()),r=0;r<e.length;r++)e[r].setSelf(n[r])},r.prototype.dataToLayers=function(t,e){for(var i=[],n=0;n<t.length;n++)switch(t[n].type){case"group":console.error("Group data to layer not implemented!");break;case"row":i.push(this.buildRowNode(t[n],e));break;case"col":i.push(this.buildColNode(t[n],e));break;case"content":i.push(this.buildContentNode(t[n],e));break;case"layer":default:i.push(this.buildLayerNode(t[n],e))}return i},r.prototype._buildNodePrepareID=function(e,i){if(i.id){var n=t.fn.uid(),r=!1;"object"==typeof this._idTranslation[i.id]&&(r=this._idTranslation[i.id]),this._idTranslation[i.id]=n,i.id=n,e.attr("id",n),r&&r.resolve(i.id,n)}if(i.parentid)switch(typeof this._idTranslation[i.parentid]){case"string":i.parentid=this._idTranslation[i.parentid];break;case"undefined":this._idTranslation[i.parentid]=t.Deferred();case"object":this._idTranslation[i.parentid].done(t.proxy(function(t,e,i){t.data("parentid",i)},this,e));break;default:i.parentid=""}},r.prototype.buildContentNode=function(e,i){var r=t("<div class='n2-ss-layer' data-type='content'/>"),s=t("<div class='n2-ss-section-main-content n2-ss-layer-content' />").appendTo(r);for(var o in e)r.data(o,e[o]);return i!==n&&r.appendTo(i),this.dataToLayers(e.layers,s),r},r.prototype.buildRowNode=function(e,i){var r=t("<div class='n2-ss-layer' data-type='row'/>"),s=t("<div class='n2-ss-layer-row' />").appendTo(r);this._buildNodePrepareID(r,e);for(var o in e)r.data(o,e[o]);return i!==n&&r.appendTo(i),this.dataToLayers(e.cols,s),r},r.prototype.buildColNode=function(e,i){var r=t("<div class='n2-ss-layer' data-type='col'/>"),s=t("<div class='n2-ss-layer-col n2-ss-layer-content' />").appendTo(r);for(var o in e)r.data(o,e[o]);return i!==n&&r.appendTo(i),this.dataToLayers(e.layers,s),r},r.prototype.buildLayerNode=function(e,i){var r=t("<div class='n2-ss-layer' data-type='layer'></div>").attr("style",e.style),s=1;e.zIndex&&(s=e.zIndex),this._buildNodePrepareID(r,e),e.items!==n&&(e.item=e.items[0],delete e.items),t('<div class="n2-ss-item n2-ss-item-'+e.item.type+'"></div>').data("item",e.item.type).data("itemvalues",e.item.values).appendTo(r),delete e.style,delete e.item;for(var o in e)r.data(o,e[o]);return i!==n&&r.appendTo(i),r},r}),N2Require("Row",["LayerContainer","ComponentAbstract"],["smartSlider"],function(t,e,i,n){"use strict";function r(i,n,r){this.label=n2_("Row"),this.type="row",this._syncbgThrottled=NextendThrottle(this._syncbgThrottled,50),this.innerContainer="> .n2-ss-layer-row",this.columnsField=t("#layerrow-columns").data("field"),this.refreshUI=NextendDeBounce(this.refreshUI,100),e.ComponentAbstract.prototype.constructor.call(this,i,n,r),this.placement.allow("absolute"),this.placement.allow("normal")}return r.prototype=Object.create(e.ComponentAbstract.prototype),r.prototype.constructor=r,r.prototype.addProperties=function(t){this.createProperty("opened",1,t,this),e.ComponentAbstract.prototype.addProperties.call(this,t),this.createProperty("bgimage","",t),this.createProperty("bgimagex",50,t),this.createProperty("bgimagey",50,t),this.createProperty("bgimageparallax",0,t),this.createProperty("bgcolor","00000000",t),this.createProperty("bgcolorgradient","off",t),this.createProperty("bgcolorgradientend","00000000",t),this.createProperty("borderradius",0,t),this.createProperty("boxshadow","0|*|0|*|0|*|0|*|00000080",t),this.createProperty("fullwidth",1,t),this.createProperty("stretch",0,t),this.createDeviceProperty("inneralign",{desktopPortrait:"inherit"},t),this.createDeviceProperty("padding",{desktopPortrait:"10|*|10|*|10|*|10|*|px+"},t),this.createDeviceProperty("gutter",{desktopPortrait:20},t),this.createDeviceProperty("wrapafter",{desktopPortrait:0,mobilePortrait:1,mobileLandscape:1},t)},r.prototype.historyDeleteSelf=function(){this["delete"]()},r.prototype.historyCreateSelf=function(t,i,n){var r=new e.Row(this.canvasManager,t.getSelf(),{});r.create(i),this.setSelf(r);for(var s=r.container.getSortedLayers(),o=0;o<s.length;o++)n[o].setSelf(s[o])},r.prototype.create=function(n){var r,s=function(e){return t("<div class='n2-ss-layer' />").append(t("<div class='n2-ss-layer-row' />").append(e)).attr("data-type","row")},o=function(e){return t("<div class='n2-ss-layer' data-type='col'/>").append(t("<div class='n2-ss-layer-col n2-ss-layer-content' />").append(e))};switch(n){case"2col":r=function(t){return s([o(),o()])};break;case"2col-60-40":r=function(t){return s([o().data("colwidth","6/10"),o().data("colwidth","4/10")])};break;case"2col-40-60":r=function(t){return s([o().data("colwidth","4/10"),o().data("colwidth","6/10")])};break;case"2col-80-20":r=function(t){return s([o().data("colwidth","8/10"),o().data("colwidth","2/10")])};break;case"2col-20-80":r=function(t){return s([o().data("colwidth","2/10"),o().data("colwidth","8/10")])};break;case"3col":r=function(t){return s([o(),o(),o()])};break;case"3col-20-60-20":r=function(t){return s([o().data("colwidth","2/10"),o().data("colwidth","6/10"),o().data("colwidth","2/10")])};break;case"4col":r=function(t){return s([o(),o(),o(),o()])};break;case"special":r=function(t){var e=s([o(),o()]);return s([o().data("colwidth","1/5"),o(e).data("colwidth","4/5")])};break;default:r=function(t){return s([o()])}}"absolute"==this.group.container.allowedPlacementMode&&(this.originalProperties=t.extend({width:"100%",align:"center",valign:"top",top:20},this.originalProperties)),e.ComponentAbstract.prototype.create.call(this,r,!0),this.initUI(),this.container.startWithExistingNodes(),this._syncpadding(),this._syncinneralign(),this._syncfullwidth(),this._syncstretch(),this._syncbgThrottled(),this._syncborderradius(),this._syncboxshadow(),this.renderModeProperties(),this.container.renderModeProperties(),i.history.addSimple(this,this.historyDeleteSelf,this.historyCreateSelf,[this.group,n,this.container.getSortedLayers()]),this._onReady()},r.prototype.load=function(t){e.ComponentAbstract.prototype.load.call(this,t),this.initUI(),this.container.startWithExistingNodes(),this._syncpadding(),this._syncinneralign(),this._syncfullwidth(),this._syncstretch(),this._syncbgThrottled(),this._syncborderradius(),this._syncboxshadow(),this._onReady()},r.prototype.initUI=function(){this.layer.nextendCanvasItem({canvasUIManager:this.canvasManager.mainContainer.canvasUIManager,layer:this,$layer:this.layer}),this.layer.on({mousedown:t.proxy(nextend.context.setMouseDownArea,nextend.context,"layerClicked"),click:t.proxy(function(t){!nextend.shouldPreventMouseUp&&this.canvasManager.preventActivationBubbling()&&this.activate(t)},this),dblclick:t.proxy(function(e){e.stopPropagation(),t('[data-tab="row"]').trigger("click")},this)}),this.$row.nextendSpacing({handles:"n, s, e, w",start:t.proxy(function(t,e){i.positionDisplay.show("Spacing")},this),spacing:t.proxy(function(t,e){var n="";for(var r in e.changed)n+="Padding "+r+": "+e.changed[r]+"px<br>";i.positionDisplay.update(t,"Spacing",n)},this),stop:t.proxy(this.____makeLayerResizeableStop,this)}),this.$row.nextendColumns({columns:"1",gutter:this.getGutter(),start:t.proxy(function(t,e){i.positionDisplay.show("Columns")},this),colwidth:t.proxy(function(t,e){this.updateColumnWidth(e.currentPercent),i.positionDisplay.update(t,"Columns",Math.round(100*e.currentPercent[e.index])+"% &mdash; "+Math.round(100*e.currentPercent[e.index+1])+"%")},this),stop:t.proxy(function(t,e){i.positionDisplay.hide("Columns"),this.setRealColsWidth(e.currentFractions)},this)}),this.$row.sortable({distance:10,tolerance:"pointer",forceHelperSize:!0,forcePlaceholderSize:!0,items:"> .n2-ss-layer",handle:" > .n2-ss-layer-ui-label-container > .n2-ss-layer-ui-label-self",start:t.proxy(function(t,e){var i=this.getColumns().split("+");e.placeholder.css({width:100*new Fraction(i[e.item.data("layerObject").getIndex()]).valueOf()+"%",height:e.helper.height(),visibility:"visible",marginRight:this.getGutter()+"px",marginTop:this.getGutter()+"px"}),e.helper.hasClass("n2-ss-last-in-row")&&e.placeholder.addClass("n2-ss-last-in-row"),e.placeholder.css("order",e.helper.css("order")),e.placeholder.attr("data-r",e.helper.attr("data-r"))},this),stop:t.proxy(function(t,e){var i=e.item.data("layerObject"),n=e.item.prevAll(".n2-ss-layer, .n2-ss-layer-group").first().data("layerObject");this.$row.sortable("cancel");var r=i.getIndex(),s=0;n&&(s=n.getIndex(),r>s&&s++),r!=s&&this.moveCol(r,s)},this)})},r.prototype.____makeLayerResizeableStop=function(e,n){i.positionDisplay.hide("Spacing");var r=this.getPadding().split("|*|"),s=1,o=1;"px+"==r[r.length-1]&&Math.abs(parseFloat(this.layer.css("fontSize"))-this.baseSize)>1&&(s=this.canvasManager.getResponsiveRatio("h"),o=this.canvasManager.getResponsiveRatio("v"));for(var a in n.changed){var l=n.changed[a];switch(a){case"top":r[0]=Math.round(l/o);break;case"right":r[1]=Math.round(l/s);break;case"bottom":r[2]=Math.round(l/o);break;case"left":r[3]=Math.round(l/s)}}this.setProperty("padding",r.join("|*|")),t("#layerrow-padding").data("field").insideChange(r.join("|*|"))},r.prototype._createLayer=function(){return t('<div class="n2-ss-layer"><div class="n2-ss-layer-row"></div></div>').attr("data-type",this.type)},r.prototype.historyDeleteCol=function(t,e){e.getSelf()["delete"]()},r.prototype.historyCreateCol=function(t,e){var i=t.getSelf().createCol();e.setSelf(i)},r.prototype.createCol=function(){var t=new e.Col(this.canvasManager,this,{});return i.history.addSimple(this,this.historyDeleteCol,this.historyCreateCol,[this,t]),t.create(),this.isReady()&&this.placement.updatePosition(),t},r.prototype.createRow=function(){this.$row=this.layer.find(".n2-ss-layer-row:first"),this.container=new e.LayerContainer(this,t('<ul class="n2-list n2-h4 n2-list-orderable" />'),"default","> .n2-ss-layer",["col"]),this.container.setLayerContainerElement(this.$row);var i=t('<div class="n2-ss-layer-status"></div>'),n=t('<div class="n2-button n2-button-icon n2-button-m n2-button-m-narrow" data-n2tip="'+n2_("Delete layer")+'"><i class="n2-i n2-i-delete n2-i-grey-opacity"></i></div>').on("click",t.proxy(this["delete"],this)),r=t('<div class="n2-button n2-button-icon n2-button-m n2-button-m-narrow" data-n2tip="'+n2_("Duplicate layer")+'"><i class="n2-i n2-i-duplicate n2-i-grey-opacity"></i></div>').on("click",t.proxy(function(){this.duplicate(!0,!1)},this));t('<a href="#" class="n2-ss-sc-hide n2-button n2-button-icon n2-button-m"><i class="n2-i n2-i-eye"></i></a>').appendTo(i).on("click",t.proxy(function(t){t.preventDefault(),this.status==e.ComponentAbstract.STATUS.HIDDEN?this.setStatusNormal():this.changeStatus(e.ComponentAbstract.STATUS.HIDDEN)},this)),this._createLayerListRow([t('<div class="n2-actions-left"></div>').append(i),t('<div class="n2-actions"></div>').append(r).append(n)]).addClass("n2-ss-layer-row-row"),this.openerElement=t('<a href="#" class="n2-ss-layer-icon n2-button n2-button-icon n2-button-m"><i class="n2-i n2-i-row"></i></a>').insertBefore(this.layerTitleSpan).on("click",t.proxy(this.switchOpened,this)),this.container.$ul.appendTo(this.layerRow),this.readyDeferred.done(t.proxy(this._syncopened,this))},r.prototype.activate=function(){e.PluginActivatable.prototype.activate.apply(this,arguments),this.columnsField.setRow(this)},r.prototype.switchOpened=function(t){t.preventDefault(),this.getProperty("opened")?this.setProperty("opened",0):this.setProperty("opened",1)},r.prototype._syncopened=function(){this.getProperty("opened")?(this.openerElement.removeClass("n2-closed"),this.container.$ul.css("display",""),this.layer.triggerHandler("opened")):(this.openerElement.addClass("n2-closed"),this.container.$ul.css("display","none"),this.layer.triggerHandler("closed"))},r.prototype.getColumns=function(){for(var t=this.container.getSortedLayers(),e=[],i=0;i<t.length;i++)e.push(t[i].getProperty("colwidth"));return e.join("+")},r.prototype.getColumnsOrdered=function(){for(var t=this.getOrderedColumns(),e=[],i=0;i<t.length;i++)e.push(t[i].getProperty("colwidth"));return e.join("+")},r.prototype._synccolumns=function(){for(var t=this.container.getSortedLayers(),e=0;e<t.length;e++)t[e]._synccolwidth();this.update()},r.prototype.getPadding=function(){return this.getProperty("padding")},r.prototype._syncpadding=function(){var t=this.getPadding().split("|*|"),e=t.pop(),i=this.baseSize;if("px+"==e&&i>0){e="em";for(var n=0;n<t.length;n++)t[n]=parseInt(t[n])/i}var r=t.join(e+" ")+e;this.$row.css("padding",r),this.$row.nextendSpacing("option","current",r),this.update()},r.prototype.getGutter=function(){return this.getProperty("gutter")},r.prototype._syncgutter=function(){var t=this.getGutter()+"px",e=this.container.getSortedLayers();if(e.length>0)for(var i=e.length-1;i>=0;i--)e[i].layer.css("marginRight",t).css("marginTop",t);this.$row.nextendColumns("option","gutter",this.getGutter()),this.update()},r.prototype._syncwrapafter=function(){if(!this.isDeleted&&!this.isDeleteStarted){for(var e=parseInt(this.getProperty("wrapafter")),i=this.getOrderedColumns(),n=!1,r=i.length-1;r>=0;r--)i[r].showsOnCurrent||i.splice(r,1);var s=i.length;if(e>0&&s>e&&(n=!0),this.$row.find("> .n2-ss-row-break").remove(),this.$row.toggleClass("n2-ss-row-wrapped",n),n)for(var r=0;s>r;r++){var o=parseInt(r/e);if(i[r].layer.attr("data-r",o),(r+1)%e==0||r==s-1){var a=i[r].getProperty("order");0==a&&(a=10),t('<div class="n2-ss-row-break"/>').css("order",a).insertAfter(i[r].layer.addClass("n2-ss-last-in-row"))}else i[r].layer.removeClass("n2-ss-last-in-row")}else{for(var r=0;s>r;r++)i[r].layer.removeClass("n2-ss-last-in-row").attr("data-r",0);i.length>0?i[s-1].layer.addClass("n2-ss-last-in-row"):console.error("The row does not have col.")}this.update()}},r.prototype.getOrderedColumns=function(){return this.container.getSortedLayers().sort(function(t,e){return t.getRealOrder()-e.getRealOrder()})},r.prototype.getInnerAlign=function(){return this.getProperty("inneralign")},r.prototype._syncinneralign=function(){this.layer.attr("data-csstextalign",this.getInnerAlign())},r.prototype._syncfullwidth=function(){this.layer.toggleClass("n2-ss-autowidth",0==this.getProperty("fullwidth"))},r.prototype._syncstretch=function(){this.layer.toggleClass("n2-ss-stretch-layer",1==this.getProperty("stretch"))},r.prototype._syncborderradius=function(){this.$row.css("border-radius",this.getProperty("borderradius")+"px")},r.prototype._syncboxshadow=function(){var t=this.getProperty("boxshadow").split("|*|");0==t[0]&&0==t[1]&&0==t[2]&&0==t[3]||0==N2Color.hex2alpha(t[4])?this.$row.css("box-shadow",""):this.$row.css("box-shadow",t[0]+"px "+t[1]+"px "+t[2]+"px "+t[3]+"px "+N2Color.hex2rgbaCSS(t[4]))},r.prototype._syncbgimage=r.prototype._syncbgimagex=r.prototype._syncbgimagey=r.prototype._syncbgimageparallax=r.prototype._syncbgcolor=r.prototype._syncbgcolorgradient=r.prototype._syncbgcolorgradientend=function(){this._syncbgThrottled()},r.prototype._syncbgThrottled=function(){var t="",e=nextend.smartSlider.generator.fill(this.getProperty("bgimage"));if(""!=e){var i=parseInt(this.getProperty("bgimagex"));isFinite(i)||(i=50);var n=parseInt(this.getProperty("bgimagey"));isFinite(n)||(n=50),t+='url("'+nextend.imageHelper.fixed(e)+'") '+i+"% "+n+"% / cover no-repeat"+(1==this.getProperty("bgimageparallax")?" fixed":"")}var r=this.getProperty("bgcolor"),s=this.getProperty("bgcolorgradient"),o=this.getProperty("bgcolorgradientend");if(0!=N2Color.hex2alpha(r)||"off"!=s&&0!=N2Color.hex2alpha(o)){var a="";switch(""!=t&&(a=","+t),s){case"horizontal":this.$row.css("background","-moz-linear-gradient(left, "+N2Color.hex2rgbaCSS(r)+" 0%,"+N2Color.hex2rgbaCSS(o)+" 100%)"+a).css("background"," -webkit-linear-gradient(left, "+N2Color.hex2rgbaCSS(r)+" 0%,"+N2Color.hex2rgbaCSS(o)+" 100%)"+a).css("background","linear-gradient(to right, "+N2Color.hex2rgbaCSS(r)+" 0%,"+N2Color.hex2rgbaCSS(o)+" 100%)"+a);break;case"vertical":this.$row.css("background","-moz-linear-gradient(top, "+N2Color.hex2rgbaCSS(r)+" 0%,"+N2Color.hex2rgbaCSS(o)+" 100%)"+a).css("background"," -webkit-linear-gradient(top, "+N2Color.hex2rgbaCSS(r)+" 0%,"+N2Color.hex2rgbaCSS(o)+" 100%)"+a).css("background","linear-gradient(to bottom, "+N2Color.hex2rgbaCSS(r)+" 0%,"+N2Color.hex2rgbaCSS(o)+" 100%)"+a);break;case"diagonal1":this.$row.css("background","-moz-linear-gradient(45deg, "+N2Color.hex2rgbaCSS(r)+" 0%,"+N2Color.hex2rgbaCSS(o)+" 100%)"+a).css("background"," -webkit-linear-gradient(45deg, "+N2Color.hex2rgbaCSS(r)+" 0%,"+N2Color.hex2rgbaCSS(o)+" 100%)"+a).css("background","linear-gradient(45deg, "+N2Color.hex2rgbaCSS(r)+" 0%,"+N2Color.hex2rgbaCSS(o)+" 100%)"+a);break;case"diagonal2":this.$row.css("background","-moz-linear-gradient(-45deg, "+N2Color.hex2rgbaCSS(r)+" 0%,"+N2Color.hex2rgbaCSS(o)+" 100%)"+a).css("background"," -webkit-linear-gradient(-45deg, "+N2Color.hex2rgbaCSS(r)+" 0%,"+N2Color.hex2rgbaCSS(o)+" 100%)"+a).css("background","linear-gradient(-45deg, "+N2Color.hex2rgbaCSS(r)+" 0%,"+N2Color.hex2rgbaCSS(o)+" 100%)"+a);break;case"off":default:""!=t?t="linear-gradient("+N2Color.hex2rgbaCSS(r)+", "+N2Color.hex2rgbaCSS(r)+"),"+t:t+=N2Color.hex2rgbaCSS(r),this.$row.css("background",t)}}else this.$row.css("background",t)},r.prototype.getData=function(t){var i=e.ComponentAbstract.prototype.getData.call(this,t);return t.itemsIncluded&&(i.cols=this.container.getData(t)),i},r.prototype.moveCol=function(t,e){if("desktopPortrait"==this.getMode()){this._moveCol(t,e);var n=i.history.addValue(this,this.historyMoveCol,[]);n&&n.setValues({oldIndex:e,newIndex:t},{oldIndex:t,newIndex:e})}else{var r=this.getOrderedColumns(),s=r[t];r.splice(t,1),r.splice(e,0,s);for(var o=0;o<r.length;o++)r[o].setProperty("order",o+1);this.refreshUI()}},r.prototype._moveCol=function(t,e){var i=this.container.getSortedLayers();e>t&&e++,this.container.insertLayerAt(i[t],e),this.refreshUI()},r.prototype.historyMoveCol=function(t){this._moveCol(t.oldIndex,t.newIndex)},r.prototype.setColsWidth=function(t){for(var e=this.container.getSortedLayers(),i=0;i<t.length;i++)e[i].setProperty("colwidth",t[i].toFraction());this.update(),this.refreshUI()},r.prototype.setRealColsWidth=function(t){for(var e=this.getOrderedColumns(),i=0;i<t.length;i++)e[i].setProperty("colwidth",t[i].toFraction());this.update(),this.refreshUI()},r.prototype.updateColumnWidth=function(t){for(var e=this.getOrderedColumns(),i=0;i<e.length;i++)e[i].layer.css("width",100*t[i]+"%");this.update()},r.prototype.activateColumn=function(t,e){this.container.getSortedLayers()[t].activate(e)},r.prototype.onChildCountChange=function(){if(!this.isDeleted&&!this.isDeleteStarted){var t=this.container.getSortedLayers(),e=t.length;if(e){for(var i=this.getColumns().split("+"),n=0,r=0;r<i.length;r++)n=new Fraction(i[r]).add(n);if(1!=n.valueOf())for(var r=0;e>r;r++)t[r].setProperty("colwidth","1/"+e);else for(var r=0;e>r;r++)t[r]._synccolwidth();this.refreshUI()}this._syncgutter(),this._syncwrapafter()}},r.prototype.renderModeProperties=function(t){e.ComponentAbstract.prototype.renderModeProperties.call(this,t),this._syncpadding(),this._syncinneralign(),this._syncwrapafter(),this._syncgutter(),this.isActive&&this.columnsField.setRow(this)},r.prototype.hightlightStructure=function(e){e=e||4e3,this.isStructureHighlighted&&(clearTimeout(this.isStructureHighlighted),this.isStructureHighlighted=!1),this.layer.addClass("n2-highlight-structure"),this.isStructureHighlighted=setTimeout(t.proxy(function(){this.isDeleted||this.layer.removeClass("n2-highlight-structure")},this),e)},r.prototype.refreshUI=function(){this.isDeleteStarted||(this.isActive&&this.columnsField.setRow(this),this._syncwrapafter(),this.$row.nextendColumns("option","columns",this.getColumnsOrdered()))},r.prototype.getDroppable=function(){return this.layer.is(":visible")&&this.status!=N2Classes.ComponentAbstract.STATUS.HIDDEN&&this.status!=N2Classes.ComponentAbstract.STATUS.LOCKED?{$container:this.$row,layer:this,placement:"normal",axis:"x"}:"hidden"},r.prototype.getLLDroppable=function(t){switch(t.type){case"col":if(t.group==this)return{$container:this.container.$ul,layer:this}}return!1},r.prototype.getContents=function(){return this.$row},r}),N2Require("ComponentSettings",[],["smartSlider"],function(t,e,i,n){"use strict";function r(e){this.componentType="undefined",this.placementType="undefined",t("html").attr("data-component",""),t("html").attr("data-placement",""),this.currentForm={},this.forms={undefined:null,placement:{absolute:{},normal:{},"default":{}},component:{content:{},layer:{},row:{},col:{},group:{}},global:{id:t("#layerid"),desktopPortrait:t("#layershow-desktop-portrait"),desktopLandscape:t("#layershow-desktop-landscape"),tabletPortrait:t("#layershow-tablet-portrait"),tabletLandscape:t("#layershow-tablet-landscape"),mobilePortrait:t("#layershow-mobile-portrait"),mobileLandscape:t("#layershow-mobile-landscape"),"class":t("#layerclass"),generatorvisible:t("#layergenerator-visible"),crop:t("#layercrop"),rotation:t("#layerrotation"),parallax:t("#layerparallax"),fontsize:t("#layerfont-size"),adaptivefont:t("#layeradaptive-font"),mouseenter:t("#layeronmouseenter"),click:t("#layeronclick"),mouseleave:t("#layeronmouseleave"),play:t("#layeronplay"),pause:t("#layeronpause"),stop:t("#layeronstop")}},this.canvasManager=e;var n=i.frontend.responsive;n.enabled("desktop","Landscape")||this.forms.global.desktopLandscape.closest(".n2-mixed-group").css("display","none"),n.enabled("tablet","Portrait")||this.forms.global.tabletPortrait.closest(".n2-mixed-group").css("display","none"),n.enabled("tablet","Landscape")||this.forms.global.tabletLandscape.closest(".n2-mixed-group").css("display","none"),n.enabled("mobile","Portrait")||this.forms.global.mobilePortrait.closest(".n2-mixed-group").css("display","none"),n.enabled("mobile","Landscape")||this.forms.global.mobileLandscape.closest(".n2-mixed-group").css("display","none"),this.forms.placement.absolute={parentid:t("#layerparentid"),parentalign:t("#layerparentalign"),parentvalign:t("#layerparentvalign"),left:t("#layerleft"),top:t("#layertop"),responsiveposition:t("#layerresponsive-position"),width:t("#layerwidth"),height:t("#layerheight"),responsivesize:t("#layerresponsive-size"),align:t("#layeralign"),valign:t("#layervalign")},this.forms.placement.normal={margin:t("#layernormal-margin"),height:t("#layernormal-height"),maxwidth:t("#layernormal-maxwidth"),selfalign:t("#layernormal-selfalign")},this.forms.component.content={maxwidth:t("#layercontent-maxwidth"),selfalign:t("#layercontent-selfalign"),padding:t("#layercontent-padding"),inneralign:t("#layercontent-inneralign"),verticalalign:t("#layercontent-verticalalign"),bgcolor:t("#layercontent-background-color"),bgimage:t("#layercontent-background-image"),bgimagex:t("#layercontent-background-focus-x"),bgimagey:t("#layercontent-background-focus-y"),bgimageparallax:t("#layercontent-background-parallax"),bgcolorgradient:t("#layercontent-background-gradient"),
9
+ bgcolorgradientend:t("#layercontent-background-color-end"),opened:t("#layercontent-opened")},i.generator.registerField(this.forms.component.content.bgimage),this.forms.component.row={padding:t("#layerrow-padding"),gutter:t("#layerrow-gutter"),fullwidth:t("#layerrow-fullwidth"),stretch:t("#layerrow-stretch"),wrapafter:t("#layerrow-wrap-after"),inneralign:t("#layerrow-inneralign"),bgimage:t("#layerrow-background-image"),bgimagex:t("#layerrow-background-focus-x"),bgimagey:t("#layerrow-background-focus-y"),bgimageparallax:t("#layerrow-background-parallax"),bgcolor:t("#layerrow-background-color"),bgcolorgradient:t("#layerrow-background-gradient"),bgcolorgradientend:t("#layerrow-background-color-end"),borderradius:t("#layerrow-border-radius"),boxshadow:t("#layerrow-boxshadow"),opened:t("#layerrow-opened")},i.generator.registerField(this.forms.component.row.bgimage),this.forms.component.col={maxwidth:t("#layercol-maxwidth"),padding:t("#layercol-padding"),inneralign:t("#layercol-inneralign"),verticalalign:t("#layercol-verticalalign"),bgcolor:t("#layercol-background-color"),link:t("#layercol-link"),bgimage:t("#layercol-background-image"),bgimagex:t("#layercol-background-focus-x"),bgimagey:t("#layercol-background-focus-y"),bgimageparallax:t("#layercol-background-parallax"),bgcolorgradient:t("#layercol-background-gradient"),bgcolorgradientend:t("#layercol-background-color-end"),borderradius:t("#layercol-border-radius"),boxshadow:t("#layercol-boxshadow"),borderwidth:t("#layercol-border-width"),borderstyle:t("#layercol-border-style"),bordercolor:t("#layercol-border-color"),opened:t("#layercol-opened"),colwidth:t("#layercol-colwidth"),order:t("#layercol-order")},i.generator.registerField(t("#col-linklayercol-link_0")),i.generator.registerField(this.forms.component.col.bgimage)}return r.prototype.changeActiveComponent=function(e,i,n,r){if(this.currentLayer=e,this.componentType!=i){switch(t("html").attr("data-component",i),i){case"content":t("#n2-tabbed-slide-editor-settings").data("pane").showTabs(["content","animations","position"]);break;case"layer":t("#n2-tabbed-slide-editor-settings").data("pane").showTabs(["item","style","animations","position"]);break;case"group":t("#n2-tabbed-slide-editor-settings").data("pane").showTabs(["group","animations"]);break;case"row":t("#n2-tabbed-slide-editor-settings").data("pane").showTabs(["row","animations","position"]);break;case"col":t("#n2-tabbed-slide-editor-settings").data("pane").showTabs(["column","animations","position"])}this.componentType=i}this.changeActiveComponentPlacement(n),this.syncFields(r)},r.prototype.changeActiveComponentPlacement=function(e,i){this.placementType!=e&&(t("html").attr("data-placement",e),this.placementType=e),this.syncFields(i)},r.prototype.syncFields=function(e){if("object"==typeof e){this.currentForm=t.extend({},this.forms.global,this.forms.component[this.componentType],this.forms.placement[this.placementType]);for(var i in e)typeof e[i]!==n?this.updateField(i,e[i]):console.error("Value is undefined for: "+i);for(var r in this.currentForm)this.currentForm[r].off(".layeroptions").on("outsideChange.layeroptions",t.proxy(this.activeComponentPropertyChanged,this,r))}},r.prototype.onUpdateField=function(t,e,i){t.target==this.currentLayer&&this.updateField(e,i)},r.prototype.updateField=function(t,e){if("function"==typeof this.currentLayer["formSet"+t])this.currentLayer["formSet"+t](this,e);else if(this.currentForm[t]!==n){var i=this.currentForm[t].data("field");i!==n&&i.insideChange(e)}else console.error("field not available: "+t+":"+e,this.currentForm)},r.prototype.activeComponentPropertyChanged=function(t,e){if(this.currentLayer&&!this.currentLayer.isDeleted){var i=this.currentForm[t].val();this.currentLayer.setProperty(t,i,"manager")}else{var n=this.currentForm[t].data("field");"undefined"!=typeof n&&null!==n&&n.insideChange("")}},r.prototype.startFeatures=function(){this.layerFeatures=new e.LayerFeatures(this.forms.placement.absolute,this.canvasManager);var i=t("#n2-ss-layer-adaptive-font").on("click",t.proxy(function(){this.currentForm.adaptivefont.data("field").onoff.trigger("click")},this));this.forms.global.adaptivefont.on("nextendChange",t.proxy(function(){1==this.currentForm.adaptivefont.val()?i.addClass("n2-active"):i.removeClass("n2-active")},this)),new N2Classes.FormElementNumber("n2-ss-layer-font-size",-Number.MAX_VALUE,Number.MAX_VALUE),new N2Classes.FormElementAutocompleteSlider("n2-ss-layer-font-size",{min:50,max:300,step:5});var n=t("#n2-ss-layer-font-size").on("outsideChange",t.proxy(function(){var t=parseInt(n.val());this.currentForm.fontsize.val(t).trigger("change")},this));this.forms.global.fontsize.on("nextendChange",t.proxy(function(){n.data("field").insideChange(this.forms.global.fontsize.val())},this))},r}),N2Require("BgAnimationManager",[],[],function(t,e,i){function n(){this.type="backgroundanimation",NextendVisualManagerMultipleSelection.prototype.constructor.apply(this,arguments)}return n.prototype=Object.create(NextendVisualManagerMultipleSelection.prototype),n.prototype.constructor=n,n.prototype.loadDefaults=function(){NextendVisualManagerMultipleSelection.prototype.loadDefaults.apply(this,arguments),this.type="backgroundanimation",this.labels={visual:"Background animation",visuals:"Background animations"}},n.prototype.initController=function(){return new e.BgAnimationEditor},n.prototype.createVisual=function(t,e){return new NextendVisualWithSetRowMultipleSelection(t,e,this)},n}),N2Require("BgAnimationEditor",[],[],function(t,e,i){function n(){this.parameters={shiftedBackgroundAnimation:0},NextendVisualEditorController.prototype.constructor.call(this,!1),this.bgAnimationElement=t(".n2-bg-animation"),this.slides=t(".n2-bg-animation-slide"),this.bgImages=t(".n2-bg-animation-slide-bg"),NextendTween.set(this.bgImages,{rotationZ:1e-4}),this.directionTab=new N2Classes.FormElementRadio("n2-background-animation-preview-tabs",["0","1"]),this.directionTab.element.on("nextendChange.n2-editor",t.proxy(this.directionTabChanged,this)),nModernizr.csstransforms3d&&nModernizr.csstransformspreserve3d||nextend.notificationCenter.error("Background animations are not available in your browser. It works if the <i>transform-style: preserve-3d</i> feature available. ")}return n.prototype=Object.create(NextendVisualEditorController.prototype),n.prototype.constructor=n,n.prototype.loadDefaults=function(){NextendVisualEditorController.prototype.loadDefaults.call(this),this.type="backgroundanimation",this.current=0,this.animationProperties=!1,this.direction=0},n.prototype.get=function(){return null},n.prototype.load=function(t,e,i,n){this.lightbox.addClass("n2-editor-loaded")},n.prototype.setTabs=function(t){},n.prototype.directionTabChanged=function(){this.direction=parseInt(this.directionTab.element.val())},n.prototype.start=function(){this.animationProperties&&(this.timeline?this.timeline.play():this.next())},n.prototype.pause=function(){this.timeline&&this.timeline.pause()},n.prototype.next=function(){this.timeline=new NextendTimeline({paused:!0,onComplete:t.proxy(this.ended,this)});var e=this.bgImages.eq(this.current),i=this.bgImages.eq(1-this.current);nModernizr.csstransforms3d&&nModernizr.csstransformspreserve3d?(this.currentAnimation=new N2Classes["SmartSliderBackgroundAnimation"+this.animationProperties.type](this,e,i,this.animationProperties,1,this.direction),this.slides.eq(this.current).css("zIndex",2),this.slides.eq(1-this.current).css("zIndex",3),this.timeline.to(this.slides.eq(this.current),.5,{opacity:0},this.currentAnimation.getExtraDelay()),this.timeline.to(this.slides.eq(1-this.current),.5,{opacity:1},this.currentAnimation.getExtraDelay()),this.currentAnimation.postSetup()):(this.timeline.to(this.slides.eq(this.current),1.5,{opacity:0},0),this.timeline.to(this.slides.eq(1-this.current),1.5,{opacity:1},0)),this.current=1-this.current,this.timeline.play()},n.prototype.ended=function(){this.currentAnimation&&this.currentAnimation.ended(),this.next()},n.prototype.setAnimationProperties=function(t){var e=this.animationProperties;this.animationProperties=t,e||this.next()},n});
library/media/dist/smartslider-frontend.js CHANGED
@@ -171,7 +171,7 @@ N2Require('SmartSliderLoad', [], [], function ($, scope, undefined) {
171
  this.$window = $(window);
172
 
173
  this.spinner = $('#' + this.id + '-spinner');
174
- };
175
 
176
 
177
  SmartSliderLoad.prototype.start = function () {
@@ -197,9 +197,7 @@ N2Require('SmartSliderLoad', [], [], function ($, scope, undefined) {
197
  this.showSlider();
198
 
199
  } else {
200
- this.smartSlider.responsive.ready.done($.proxy(function () {
201
- this._showSlider();
202
- }, this));
203
  }
204
  };
205
 
@@ -1379,6 +1377,8 @@ N2Require('SmartSliderWidgets', [], [], function ($, scope, undefined) {
1379
  html: this.sliderElement.find('.nextend-widget-html')
1380
  };
1381
 
 
 
1382
  var hasExcluded = false
1383
  for (var k in this.widgets) {
1384
  var exclude = this.widgets[k].attr('data-exclude-slides');
@@ -1657,6 +1657,7 @@ N2Require('SmartSliderBackgroundAnimationAbstract', [], [], function ($, scope,
1657
  top: 0,
1658
  left: 0
1659
  });
 
1660
 
1661
  this.containerElement.append(this.clonedImages.nextImage);
1662
  };
@@ -1667,6 +1668,7 @@ N2Require('SmartSliderBackgroundAnimationAbstract', [], [], function ($, scope,
1667
  top: 0,
1668
  left: 0
1669
  });
 
1670
 
1671
  this.containerElement.append(this.clonedImages.currentImage);
1672
  };
@@ -2620,6 +2622,7 @@ N2Require('SmartSliderBackgroundAnimationFluxAbstract', ['SmartSliderBackgroundA
2620
  height: this.h
2621
  });
2622
  this._clonedCurrent.find('.n2-ss-slide-background-video').remove();
 
2623
  }
2624
  return this._clonedCurrent;
2625
  };
@@ -2633,6 +2636,7 @@ N2Require('SmartSliderBackgroundAnimationFluxAbstract', ['SmartSliderBackgroundA
2633
  height: this.h
2634
  });
2635
  this._clonedNext.find('.n2-ss-slide-background-video').remove();
 
2636
  }
2637
  return this._clonedNext;
2638
  };
@@ -6060,6 +6064,13 @@ N2Require('SmartSliderResponsive', [], [], function ($, scope, undefined) {
6060
  for (var i = 0; i < this.verticalOffsetSelectors.length; i++) {
6061
  h += this.verticalOffsetSelectors.eq(i).outerHeight();
6062
  }
 
 
 
 
 
 
 
6063
  return h;
6064
  };
6065
 
@@ -6645,11 +6656,20 @@ N2Require('FrontendItemYouTube', [], [], function ($, scope, undefined) {
6645
  showinfo: 1,
6646
  modestbranding: 1,
6647
  reset: 0,
6648
- query: []
 
6649
  }, parameters);
6650
 
6651
- if (navigator.userAgent.toLowerCase().indexOf("android") > -1 || n2const.isIOS) {
6652
  this.parameters.autoplay = 0;
 
 
 
 
 
 
 
 
6653
  }
6654
 
6655
  if (this.parameters.autoplay == 1 || !hasImage || n2const.isMobile) {
@@ -6717,7 +6737,8 @@ N2Require('FrontendItemYouTube', [], [], function ($, scope, undefined) {
6717
  vq: this.parameters.vq,
6718
  start: this.parameters.start,
6719
  showinfo: this.parameters.showinfo,
6720
- modestbranding: this.parameters.modestbranding
 
6721
  };
6722
 
6723
  if (this.parameters.center == 1) {
@@ -6796,8 +6817,10 @@ N2Require('FrontendItemYouTube', [], [], function ($, scope, undefined) {
6796
  FrontendItemYouTube.prototype.onReady = function () {
6797
 
6798
  var volume = parseFloat(this.parameters.volume);
6799
- if (volume >= 0) {
6800
  this.setVolume(volume);
 
 
6801
  }
6802
 
6803
  if (this.parameters.autoplay == 1) {
171
  this.$window = $(window);
172
 
173
  this.spinner = $('#' + this.id + '-spinner');
174
+ }
175
 
176
 
177
  SmartSliderLoad.prototype.start = function () {
197
  this.showSlider();
198
 
199
  } else {
200
+ this.showSlider();
 
 
201
  }
202
  };
203
 
1377
  html: this.sliderElement.find('.nextend-widget-html')
1378
  };
1379
 
1380
+ this.$vertical = this.sliderElement.find('[data-position="above"],[data-position="below"]').not('.nextend-shadow');
1381
+
1382
  var hasExcluded = false
1383
  for (var k in this.widgets) {
1384
  var exclude = this.widgets[k].attr('data-exclude-slides');
1657
  top: 0,
1658
  left: 0
1659
  });
1660
+ NextendTween.set(this.clonedImages.nextImage, {transform: 'none'});
1661
 
1662
  this.containerElement.append(this.clonedImages.nextImage);
1663
  };
1668
  top: 0,
1669
  left: 0
1670
  });
1671
+ NextendTween.set(this.clonedImages.currentImage, {transform: 'none'});
1672
 
1673
  this.containerElement.append(this.clonedImages.currentImage);
1674
  };
2622
  height: this.h
2623
  });
2624
  this._clonedCurrent.find('.n2-ss-slide-background-video').remove();
2625
+ NextendTween.set(this._clonedCurrent, {transform: 'none'});
2626
  }
2627
  return this._clonedCurrent;
2628
  };
2636
  height: this.h
2637
  });
2638
  this._clonedNext.find('.n2-ss-slide-background-video').remove();
2639
+ NextendTween.set(this._clonedNext, {transform: 'none'});
2640
  }
2641
  return this._clonedNext;
2642
  };
6064
  for (var i = 0; i < this.verticalOffsetSelectors.length; i++) {
6065
  h += this.verticalOffsetSelectors.eq(i).outerHeight();
6066
  }
6067
+
6068
+ if (this.slider.widgets.$vertical) {
6069
+ for (var i = 0; i < this.slider.widgets.$vertical.length; i++) {
6070
+ h += this.slider.widgets.$vertical.eq(i).outerHeight();
6071
+ }
6072
+ }
6073
+
6074
  return h;
6075
  };
6076
 
6656
  showinfo: 1,
6657
  modestbranding: 1,
6658
  reset: 0,
6659
+ query: [],
6660
+ playsinline: 0
6661
  }, parameters);
6662
 
6663
+ if (this.parameters.autoplay == 1 && (navigator.userAgent.toLowerCase().indexOf("android") > -1 || n2const.isIOS)) {
6664
  this.parameters.autoplay = 0;
6665
+ try {
6666
+ if ('playsInline' in document.createElement('video')) {
6667
+ this.parameters.autoplay = 1;
6668
+ this.parameters.playsinline = 1;
6669
+ this.parameters.volume = 0;
6670
+ }
6671
+ } catch (e) {
6672
+ }
6673
  }
6674
 
6675
  if (this.parameters.autoplay == 1 || !hasImage || n2const.isMobile) {
6737
  vq: this.parameters.vq,
6738
  start: this.parameters.start,
6739
  showinfo: this.parameters.showinfo,
6740
+ modestbranding: this.parameters.modestbranding,
6741
+ playsinline: this.parameters.playsinline
6742
  };
6743
 
6744
  if (this.parameters.center == 1) {
6817
  FrontendItemYouTube.prototype.onReady = function () {
6818
 
6819
  var volume = parseFloat(this.parameters.volume);
6820
+ if (volume > 0) {
6821
  this.setVolume(volume);
6822
+ } else {
6823
+ this.player.mute();
6824
  }
6825
 
6826
  if (this.parameters.autoplay == 1) {
library/media/dist/smartslider-frontend.min.js CHANGED
@@ -1,5 +1,5 @@
1
- N2Require("SmartSliderBackgroundImages",[],[],function(e,t,i){function s(t){this.device=null,this.slider=t,this.lazyLoad=t.parameters.lazyLoad,this.lazyLoadNeighbor=t.parameters.lazyLoadNeighbor,this.deviceDeferred=e.Deferred(),this.slider.sliderElement.one("SliderDevice",e.proxy(this.onSlideDeviceChangedFirst,this)),this.slider.sliderElement.on("visibleSlidesChanged",e.proxy(this.onVisibleSlidesChanged,this)),this.slider.sliderElement.on("slideCountChanged",e.proxy(this.onVisibleSlidesChanged,this))}return s.prototype.whenWithProgress=function(t){for(var i=0,s=e.Deferred(),r=0;r<t.length;r++)e.when(t[r]).done(function(){s.notify(++i,t.length)});return e.when.apply(e,t).done(function(){s.resolveWith(null,arguments)}),s},s.prototype.getBackgroundImages=function(){for(var e=[],t=0;t<this.slider.realSlides.length;t++)e.push(this.slider.realSlides[t].backgroundImage);return e},s.prototype.onVisibleSlidesChanged=function(){1==this.lazyLoad?this.load=this.preLoadSlides(this.slider.getVisibleSlides(this.slider.currentSlide)):2==this.lazyLoad&&(this.load=this.preLoadSlides(this.slider.getVisibleSlides(this.slider.currentSlide)))},s.prototype.onSlideDeviceChangedFirst=function(t,i){this.onSlideDeviceChanged(t,i),this.deviceDeferred.resolve(),this.slider.sliderElement.on("SliderDevice",e.proxy(this.onSlideDeviceChanged,this)),this.preLoadSlides=this._preLoadSlides,1==this.lazyLoad?(this.preLoadSlides=this.preloadSlidesLazyNeighbor,this.load=this.preLoadSlides(this.slider.getVisibleSlides(this.slider.currentSlide))):2==this.lazyLoad?(e(window).on("load",e.proxy(this.preLoadAll,this)),this.load=this.preLoadSlides(this.slider.getVisibleSlides(this.slider.currentSlide))):this.load=this.whenWithProgress(this.preLoadAll())},s.prototype.onSlideDeviceChanged=function(e,t){this.device=t;for(var i=0;i<this.slider.realSlides.length;i++)this.slider.realSlides[i].backgroundImage&&this.slider.realSlides[i].backgroundImage.updateBackgroundToDevice(t)},s.prototype.preLoadAll=function(){for(var e=[],t=0;t<this.slider.realSlides.length;t++)e.push(this.slider.realSlides[t].preLoad());return e},s.prototype._preLoadSlides=function(t){var i=[];"[object Array]"!==Object.prototype.toString.call(t)&&(t=[t]);for(var s=0;s<t.length;s++)i.push(t[s].preLoad());return e.when.apply(e,i)},s.prototype.preloadSlidesLazyNeighbor=function(t){var i=[this._preLoadSlides(t)];if(this.lazyLoadNeighbor)for(var s=0,r=t[0].previousSlide,n=t[t.length-1].nextSlide;s<this.lazyLoadNeighbor;)i.push(r.preLoad()),r=r.previousSlide,i.push(n.preLoad()),n=n.nextSlide,s++;var o=e.Deferred();if("resolved"!=i[0].state()){var a=setTimeout(e.proxy(function(){this.slider.load.showSpinner("backgroundImage"+t[0].index),a=null},this),50);e.when.apply(e,i).done(e.proxy(function(){a?(clearTimeout(a),a=null):this.slider.load.removeSpinner("backgroundImage"+t[0].index),setTimeout(function(){o.resolve()},100)},this))}else setTimeout(function(){o.resolve()},100);return o},s.prototype.hack=function(){for(var e=0;e<this.slider.realSlides.length;e++)this.slider.realSlides[e].backgroundImage&&this.slider.realSlides[e].backgroundImage.hack()},s}),N2Require("SmartSliderLoad",[],[],function(e,t,i){function s(t,i){this.parameters=e.extend({fade:1,scroll:0},i),this.deferred=e.Deferred(),this.smartSlider=t,this.spinnerKey="fadePlaceholder",this.id=t.sliderElement.attr("id"),this.$window=e(window),this.spinner=e("#"+this.id+"-spinner")}return s.prototype.start=function(){if(this.parameters.scroll){var t=e(window);t.on("scroll."+this.id,e.proxy(this.onScroll,this)),this.onScroll()}else if(this.parameters.fade){this.loadingArea=e("#"+this.id+"-placeholder").eq(0),this.showSpinner("fadePlaceholder");var i=this.spinner.find(".n2-ss-spinner-counter");i.length&&this.smartSlider.backgroundImages.load.progress(e.proxy(function(e,t){i.html(Math.round(e/(t+1)*100)+"%")},this)),this.showSlider()}else this.smartSlider.responsive.ready.done(e.proxy(function(){this._showSlider()},this))},s.prototype.onScroll=function(){this.$window.scrollTop()+this.$window.height()>this.smartSlider.sliderElement.offset().top+100&&(this.$window.off("scroll."+this.id),this.showSlider())},s.prototype.loadLayerImages=function(){var t=e.Deferred();return this.smartSlider.sliderElement.find(".n2-ss-layers-container").n2imagesLoaded().always(function(){t.resolve()}),t},s.prototype.showSlider=function(){e.when(this.smartSlider.responsive.ready,this.smartSlider.backgroundImages.load,this.loadLayerImages()).always(e.proxy(function(){this._showSlider()},this))},s.prototype._showSlider=function(t){this.smartSlider.responsive.isReadyToResize=!0,e.when.apply(e,this.smartSlider.widgetDeferreds).done(e.proxy(function(){this.smartSlider.responsive.invalidateResponsiveState=!0,this.smartSlider.responsive.doResize(),this.smartSlider.mainAnimation&&this.smartSlider.mainAnimation.setToStarterSlide(this.smartSlider.starterSlide),this.smartSlider.starterSlide.setStarterSlide(),this.smartSlider.sliderElement.trigger("BeforeVisible"),this.smartSlider.responsive.alignElement.addClass("n2-ss-slider-align-visible"),this.smartSlider.sliderElement.addClass("n2-ss-loaded").removeClass("n2notransition"),this.removeSpinner("fadePlaceholder"),e("#"+this.id+"-placeholder").remove(),this.loadingArea=this.smartSlider.sliderElement,"function"==typeof t?t(this.deferred):this.deferred.resolve()},this))},s.prototype.loaded=function(e){this.deferred.done(e)},s.prototype.showSpinner=function(e){this.spinnerKey=e,this.spinner.appendTo(this.loadingArea).css("display","")},s.prototype.removeSpinner=function(e){this.spinnerKey==e&&(this.spinner.detach(),this.spinnerKey="")},s}),N2Require("scrollTracker",[],[],function(e,t,i){function s(){this.started=!1,this.items=[]}s.prototype.add=function(e,t,i){var s={$el:e,onVisible:t,onHide:i,state:"unknown"};this.items.push(s),this._onScroll(s,Math.max(document.documentElement.clientHeight,window.innerHeight)),this.started||this.start()},s.prototype.start=function(){this.started||(e(window).on("scroll.scrollTracker",e.proxy(this.onScroll,this)),this.started=!0)},s.prototype.onScroll=function(e){for(var t=Math.max(document.documentElement.clientHeight,window.innerHeight),i=0;i<this.items.length;i++)this._onScroll(this.items[i],t)},s.prototype._onScroll=function(e,t){var i=e.$el[0].getBoundingClientRect(),s=i.height>.7*t;!s&&(i.bottom-i.height<0||i.top-t+i.height>=0)||s&&(i.bottom<0||i.top>=i.height)?"hidden"!=e.state&&("function"==typeof e.onHide&&e.onHide(),e.state="hidden"):"visible"!=e.state&&("function"==typeof e.onVisible&&e.onVisible(),e.state="visible")},nextend.scrollTracker=new s}),N2Require("SmartSliderApi",[],[],function(e,t,i){function s(){this.sliders={},this.readys={},this._resetCounters=[]}return s.prototype.makeReady=function(e,t){if(this.sliders[e]=t,"undefined"!=typeof this.readys[e])for(var i=0;i<this.readys[e].length;i++)this.readys[e][i].call(t,t,t.sliderElement)},s.prototype.ready=function(e,t){"undefined"!=typeof this.sliders[e]?t.call(this.sliders[e],this.sliders[e],this.sliders[e].sliderElement):("undefined"==typeof this.readys[e]&&(this.readys[e]=[]),this.readys[e].push(t))},s.prototype.trigger=function(t,i){var s=n2(t),r=i.split(","),n=s.closest(".n2-ss-slide,.n2-ss-static-slide");if(r.length>1){-1==e.inArray(t,this._resetCounters)&&(this._resetCounters.push(t),n.on("layerAnimationSetStart.resetCounter",function(){s.data("eventCounter",0)}));var o=s.data("eventCounter")||0;i=r[o],o++,o>r.length-1&&(o=0),s.data("eventCounter",o)}n.triggerHandler(i)},s.prototype.applyAction=function(e,t){var i=n2(e).closest(".n2-ss-slider").data("ss");i[t].apply(i,Array.prototype.slice.call(arguments,2))},s.prototype.applyActionWithClick=function(){nextend.shouldPreventClick||this.applyAction.apply(this,arguments)},window.n2ss=new s,s}),N2Require("SmartSliderAbstract",[],[],function($,scope,undefined){function SmartSliderAbstract(e,t){this.startedDeferred=$.Deferred(),e instanceof n2&&(e="#"+e.attr("id"));var i=e.substr(1);return window[i]&&window[i]instanceof SmartSliderAbstract?!1:(this.isAdmin=!!t.admin,this.id=parseInt(i.replace("n2-ss-","")),window[i]=this,this.readyDeferred=$.Deferred(),void this.waitForExists(i,t))}return SmartSliderAbstract.prototype.kill=function(){this.killed=!0,$("#"+this.sliderElement.attr("id")+"-placeholder").remove(),this.sliderElement.closest(".n2-ss-align").remove()},SmartSliderAbstract.prototype.waitForExists=function(e,t){var i=$.Deferred(),s=function(){var t=$("#"+e);t.length?i.resolve(t):setTimeout(s,500)};i.done($.proxy(this.onSliderExists,this,e,t)),s()},SmartSliderAbstract.prototype.onSliderExists=function(e,t,i){if("SCRIPT"==i.prop("tagName")){var s=i.data("dependency"),r=i.data("delay"),n=$.proxy(function(){var s=$(i.html().replace(/<_s_c_r_i_p_t/g,"<script").replace(/<_\/_s_c_r_i_p_t/g,"</script"));i.replaceWith(s),this.waitForDimension($("#"+e),t),$(window).triggerHandler("n2Rocket",[this.sliderElement])},this);s&&$("#n2-ss-"+s).length?n2ss.ready(s,$.proxy(function(e){e.ready(n)},this)):r?setTimeout(n,r):n()}else this.waitForDimension(i,t)},SmartSliderAbstract.prototype.waitForDimension=function(e,t){var i=$.Deferred(),s=function(){var t=e.is(":visible");t?i.resolve():setTimeout(s,200)};s(),i.done($.proxy(this.onSliderHasDimension,this,e,t))},SmartSliderAbstract.prototype.onSliderHasDimension=function($sliderElement,parameters){if(this.killed=!1,this.responsive=!1,this.mainAnimationLastChangeTime=0,this.currentSlide=null,this.currentRealSlide=null,this.staticSlide=!1,this.isShuffled=!1,this.slides=[],this.visibleSlides=1,this.sliderElement=$sliderElement.data("ss",this),this.parameters=$.extend({admin:!1,playWhenVisible:1,playWhenVisibleAt:.5,perspective:1e3,callbacks:"",autoplay:{},blockrightclick:!1,maintainSession:0,align:"normal",controls:{drag:!1,touch:"horizontal",keyboard:!1,scroll:!1,tilt:!1},hardwareAcceleration:!0,layerMode:{playOnce:0,playFirstLayer:1,mode:"skippable",inAnimation:"mainInEnd"},foreverLayerAnimation:!1,parallax:{enabled:0,mobile:0,horizontal:"mouse",vertical:"mouse",origin:"enter"},load:{},mainanimation:{},randomize:{randomize:0,randomizeFirst:0},responsive:{},lazyload:{enabled:0},postBackgroundAnimations:!1,initCallbacks:[],dynamicHeight:0,lightbox:[],lightboxDeviceImages:[],titles:[],descriptions:[],"background.parallax.tablet":0,"background.parallax.mobile":0,allowBGImageAttachmentFixed:1,particlejs:0},parameters),!(this.isAdmin||parameters.responsive.desktop&&parameters.responsive.tablet&&parameters.responsive.mobile)){var md=new MobileDetect(window.navigator.userAgent,801),isTablet=!!md.tablet(),isMobile=!!md.phone();if(!parameters.responsive.mobile&&isMobile||!parameters.responsive.tablet&&isTablet||!parameters.responsive.desktop&&!isTablet&&!isMobile)return void this.kill()}this.firstSlideReady=$.Deferred();try{eval(this.parameters.callbacks)}catch(e){console.error(e)}this.startVisibilityCheck(),n2ss.makeReady(this.id,this),this.widgetDeferreds=[],this.sliderElement.on("addWidget",$.proxy(this.addWidget,this)),this.isAdmin&&(this.changeTo=function(){}),this.load=new scope.SmartSliderLoad(this,this.parameters.load),this.backgroundImages=new scope.SmartSliderBackgroundImages(this),this.__initSlides(),$.when(this.overrideFirstSlide()).done($.proxy(this.onFirstSlideInitialized,this)),navigator.userAgent.match("UCBrowser")&&$("html").addClass("n2-ucbrowser")},SmartSliderAbstract.prototype.overrideFirstSlide=function(){if("undefined"!=typeof window["ss"+this.id]){if("object"==typeof window["ss"+this.id])return window["ss"+this.id].done($.proxy(function(e){null!==e&&this.changeActiveBeforeLoad(e)},this));var e="undefined"!=typeof window["ss"+this.id]?parseInt(window["ss"+this.id]):null;null!==e&&this.changeActiveBeforeLoad(e)}else if(!this.isAdmin&&this.parameters.maintainSession&&"undefined"!=typeof sessionStorage){var t=sessionStorage.getItem("ss-"+this.id);null!==t&&this.changeActiveBeforeLoad(parseInt(t)),this.sliderElement.on("mainAnimationComplete",$.proxy(function(e,t,i,s){sessionStorage.setItem("ss-"+this.id,s)},this))}return!0},SmartSliderAbstract.prototype.changeActiveBeforeLoad=function(e){e>0&&e<this.realSlides.length&&this.starterSlide!=this.realSlides[e]&&(this.unsetActiveSlide(this.starterSlide),this.starterSlide=this.realSlides[e],this.setActiveSlide(this.realSlides[e]))},SmartSliderAbstract.prototype.startCurrentSlideIndex=function(){this.currentRealSlide=this.currentSlide=this.starterSlide,this.setActiveSlide(this.currentSlide),parseInt(this.parameters.carousel)?this.initCarousel():this.initNotCarousel()},SmartSliderAbstract.prototype.onFirstSlideInitialized=function(){for(var i=0;i<this.realSlides.length;i++)this.realSlides[i].setNext(this.realSlides[i+1>this.realSlides.length-1?0:i+1]);this.startCurrentSlideIndex(),this.firstSlideReady.resolve(this.currentSlide);for(var j=0;j<this.parameters.initCallbacks.length;j++)new Function("$",this.parameters.initCallbacks[j]).call(this,$);if(this.widgets=new scope.SmartSliderWidgets(this),this.sliderElement.on({universalenter:$.proxy(function(e){$(e.target).closest(".n2-full-screen-widget").length||(this.sliderElement.addClass("n2-hover"),this.widgets.setState("hover",!0))},this),universalleave:$.proxy(function(e){e.stopPropagation(),this.sliderElement.removeClass("n2-hover"),this.widgets.setState("hover",!1)},this)}),this.controls={},this.parameters.blockrightclick&&this.sliderElement.bind("contextmenu",function(e){e.preventDefault()}),this.initMainAnimation(),this.initResponsiveMode(),!this.killed){try{var removeHoverClassCB=$.proxy(function(){this.sliderElement.removeClass("n2-has-hover"),this.sliderElement[0].removeEventListener("touchstart",removeHoverClassCB,window.n2passiveEvents?{passive:!0}:!1)},this);this.sliderElement[0].addEventListener("touchstart",removeHoverClassCB,window.n2passiveEvents?{passive:!0}:!1)}catch(e){}if(this.initControls(),this.startedDeferred.resolve(this),!this.isAdmin){var event="click";this.hasTouch()&&(event="n2click"),this.sliderElement.find("[data-n2click]").each(function(i,el){var el=$(el);el.on(event,function(){eval(el.data("n2click"))})}),this.sliderElement.find("[data-click]").each(function(i,el){var el=$(el).on("click",function(){eval(el.data("click"))}).css("cursor","pointer")}),this.sliderElement.find("[data-n2middleclick]").on("mousedown",function(e){var el=$(this);2!=e.which&&4!=e.which||(e.preventDefault(),eval(el.data("n2middleclick")))}),this.sliderElement.find("[data-mouseenter]").each(function(i,el){var el=$(el).on("mouseenter",function(){eval(el.data("mouseenter"))})}),this.sliderElement.find("[data-mouseleave]").each(function(i,el){var el=$(el).on("mouseleave",function(){eval(el.data("mouseleave"))})}),this.sliderElement.find("[data-play]").each(function(i,el){var el=$(el).on("n2play",function(){eval(el.data("play"))})}),this.sliderElement.find("[data-pause]").each(function(i,el){var el=$(el).on("n2pause",function(){eval(el.data("pause"))})}),this.sliderElement.find("[data-stop]").each(function(i,el){var el=$(el).on("n2stop",function(){eval(el.data("stop"))})}),window.n2FocusAllowed==undefined&&(window.n2FocusAllowed=!1,$(window).on({keydown:function(){window.n2FocusAllowed=!0},keyup:function(){window.n2FocusAllowed=!1}})),this.sliderElement.find("a").on({focus:$.proxy(function(e){if(n2FocusAllowed){var t=this.findSlideByElement(e.currentTarget);t&&t!=this.currentRealSlide&&this.directionalChangeToReal(t.index)}},this)})}this.preReadyResolve(),this.sliderElement.find('[role="button"], [tabindex]').not("input,select,textarea").keypress(function(e){32!==e.charCode&&13!==e.charCode||(e.preventDefault(),$(e.target).click())}).on("mouseleave",function(e){$(e.currentTarget).blur()})}},SmartSliderAbstract.prototype.__initSlides=function(){for(var e=this.sliderElement.find(".n2-ss-slide"),t=0;t<e.length;t++)this.slides.push(new scope.FrontendSliderSlide(this,e.eq(t),t));this.starterSlide=this.slides[0];for(var t=0;t<this.slides.length;t++)this.slides[t].init(),1==this.slides[t].$element.data("first")&&(this.starterSlide=this.slides[t]);this.realSlides=this.slides,this.afterRawSlidesReady(),this.randomize(this.slides);var i=this.sliderElement.find(".n2-ss-static-slide");i.length&&(this.staticSlide=new scope.FrontendSliderStaticSlide(this,i))},SmartSliderAbstract.prototype.afterRawSlidesReady=function(){},SmartSliderAbstract.prototype.setVisibleSlides=function(e){e!=this.visibleSlides&&(this.visibleSlides=e,this.sliderElement.triggerHandler("visibleSlidesChanged"))},SmartSliderAbstract.prototype.getVisibleSlides=function(e){return 0==arguments.length&&(e=this.currentSlide),[e]},SmartSliderAbstract.prototype.findSlideBackground=function(e){return e.$element.find(".n2-ss-slide-background")},SmartSliderAbstract.prototype.getRealIndex=function(e){return e},SmartSliderAbstract.prototype.randomize=function(e){this.randomizeFirst(),this.parameters.randomize.randomize&&this.shuffleSlides(e)},SmartSliderAbstract.prototype.randomizeFirst=function(){this.parameters.randomize.randomizeFirst&&(this.unsetActiveSlide(this.starterSlide),this.starterSlide=this.realSlides[Math.floor(Math.random()*this.realSlides.length)],this.setActiveSlide(this.starterSlide),console.log("randomize first"))},SmartSliderAbstract.prototype.shuffleSlides=function(e){e.sort(function(){return.5-Math.random()});for(var t=e[0].$element.parent(),i=0;i<e.length;i++)e[i].$element.appendTo(t),e[i].setIndex(i);this.isShuffled=!0},SmartSliderAbstract.prototype.addWidget=function(e,t){this.widgetDeferreds.push(t)},SmartSliderAbstract.prototype.started=function(e){this.startedDeferred.done($.proxy(e,this))},SmartSliderAbstract.prototype.preReadyResolve=function(){setTimeout($.proxy(this._preReadyResolve,this),1)},SmartSliderAbstract.prototype._preReadyResolve=function(){this.load.start(),this.load.loaded($.proxy(this.readyResolve,this))},SmartSliderAbstract.prototype.readyResolve=function(){$(window).scroll(),this.readyDeferred.resolve()},SmartSliderAbstract.prototype.ready=function(e){this.readyDeferred.done($.proxy(e,this))},SmartSliderAbstract.prototype.startVisibilityCheck=function(){this.visibleDeferred=$.Deferred(),this.parameters.playWhenVisible?this.ready($.proxy(function(){$(window).on("scroll.n2-ss-visible"+this.id+" resize.n2-ss-visible"+this.id,$.proxy(this.checkIfVisible,this)),this.checkIfVisible()},this)):this.ready($.proxy(function(){this.visibleDeferred.resolve()},this))},SmartSliderAbstract.prototype.checkIfVisible=function(){var e=$(window).scrollTop(),t=$(window).height(),i=this.sliderElement.offset().top,s=i+Math.min(this.sliderElement.height(),t)*this.parameters.playWhenVisibleAt,r=i+Math.min(this.sliderElement.height(),t)*(1-this.parameters.playWhenVisibleAt);(this.isAdmin||s>=e&&e+t>=r)&&($(window).off("scroll.n2-ss-visible"+this.id+" resize.n2-ss-visible"+this.id,$.proxy(this.checkIfVisible,this)),this.visibleDeferred.resolve())},SmartSliderAbstract.prototype.visible=function(e){this.visibleDeferred.done($.proxy(e,this))},SmartSliderAbstract.prototype.isPlaying=function(){return"ended"!=this.mainAnimation.getState()},SmartSliderAbstract.prototype.focus=function(e){var t=$.Deferred();if("undefined"==typeof e&&(e=0),this.responsive.parameters.focusUser&&!e||this.responsive.parameters.focusAutoplay&&e){var i=this.sliderElement.offset().top-(this.responsive.verticalOffsetSelectors.height()||0);$(window).scrollTop()!=i?$("html, body").animate({scrollTop:i},400,$.proxy(function(){t.resolve()},this)):t.resolve()}else t.resolve();return t},SmartSliderAbstract.prototype.initNotCarousel=function(){this.next=function(e,t){var i=this.currentSlide.index+1;return i<this.slides.length?this.changeTo(i,!1,e,t):!1},this.previous=function(e,t){var i=this.currentSlide.index-1;return i>=0?this.changeTo(i,!0,e,t):!1},this.isChangePossible=function(e){var t=!1;return"next"==e?(t=this.currentSlide.index+1,t>=this.slides.length&&(t=!1)):"previous"==e&&(t=this.currentSlide.index-1,0>t&&(t=!1)),t!==!1&&t!=this.currentSlide.index};var e=$.proxy(function(e){0==e?this.widgets.setState("nonCarouselFirst",!0):this.widgets.setState("nonCarouselFirst",!1),e==this.slides.length-1?this.widgets.setState("nonCarouselLast",!0):this.widgets.setState("nonCarouselLast",!1)},this);this.startedDeferred.done($.proxy(function(){e(this.currentSlide.index)},this)),this.sliderElement.on("sliderSwitchTo",function(t,i){e(i)})},SmartSliderAbstract.prototype.isChangePossibleCarousel=function(e){var t=!1;return"next"==e?(t=this.currentSlide.index+1,t>=this.slides.length&&(t=0)):"previous"==e&&(t=this.currentSlide.index-1,0>t&&(t=this.slides.length-1)),t!==!1&&t!=this.currentSlide.index},SmartSliderAbstract.prototype.initCarousel=function(){this.next=this.nextCarousel,this.previous=this.previousCarousel,this.isChangePossible=this.isChangePossibleCarousel},SmartSliderAbstract.prototype.nextCarousel=function(e,t){var i=this.currentSlide.index+1;return i>=this.slides.length&&(i=0),this.changeTo(i,!1,e,t)},SmartSliderAbstract.prototype.previousCarousel=function(e,t){var i=this.currentSlide.index-1;return 0>i&&(i=this.slides.length-1),this.changeTo(i,!0,e,t)},SmartSliderAbstract.prototype.directionalChangeToReal=function(e){this.directionalChangeTo(e)},SmartSliderAbstract.prototype.directionalChangeTo=function(e){e>this.currentSlide.index?this.changeTo(e,!1):this.changeTo(e,!0)},SmartSliderAbstract.prototype.changeTo=function(e,t,i,s){if(e=parseInt(e),e!=this.currentSlide.index){this.sliderElement.trigger("sliderSwitchTo",[e,this.getRealIndex(e)]);var r=$.now();return $.when(this.backgroundImages.preLoadSlides(this.getVisibleSlides(this.slides[e])),this.focus(i)).done($.proxy(function(){if(this.mainAnimationLastChangeTime<=r){this.mainAnimationLastChangeTime=r;var n=this.mainAnimation.getState();if("ended"==n){"undefined"==typeof i&&(i=!1);var o=this.mainAnimation;"undefined"!=typeof s&&(o=s),this._changeTo(e,t,i,s),o.changeTo(this.currentSlide,this.slides[e],t,i),this._changeCurrentSlide(e)}else"playing"==n&&(this.sliderElement.off(".fastChange").one("mainAnimationComplete.fastChange",$.proxy(function(){this.changeTo.call(this,e,t,i,s)},this)),this.mainAnimation.timeScale(2*this.mainAnimation.timeScale()))}},this)),!0}return!1},SmartSliderAbstract.prototype._changeCurrentSlide=function(e){this.currentRealSlide=this.currentSlide=this.slides[e]},SmartSliderAbstract.prototype._changeTo=function(e,t,i,s){},SmartSliderAbstract.prototype.revertTo=function(e,t){this.unsetActiveSlide(this.slides[t]),this.setActiveSlide(this.slides[e]),this._changeCurrentSlide(e),this.sliderElement.trigger("sliderSwitchTo",[e,this.getRealIndex(e)])},SmartSliderAbstract.prototype.setActiveSlide=function(e){e.$element.addClass("n2-ss-slide-active")},SmartSliderAbstract.prototype.unsetActiveSlide=function(e){e.$element.removeClass("n2-ss-slide-active")},SmartSliderAbstract.prototype.findSlideByElement=function(e){e=$(e);for(var t=0;t<this.realSlides.length;t++)if(1===this.realSlides[t].$element.has(e).length)return this.realSlides[t];return!1},SmartSliderAbstract.prototype.findSlideIndexByElement=function(e){var t=this.findSlideByElement(e);return t?t:-1},SmartSliderAbstract.prototype.initMainAnimation=function(){this.mainAnimation=!1},SmartSliderAbstract.prototype.initResponsiveMode=function(){this.dimensions=this.responsive.responsiveDimensions},SmartSliderAbstract.prototype.hasTouch=function(){return"0"!=this.parameters.controls.touch&&this.slides.length>1},SmartSliderAbstract.prototype.initControls=function(){this.parameters.admin||(this.hasTouch()&&new scope.SmartSliderControlTouch(this,this.parameters.controls.touch,{fallbackToMouseEvents:this.parameters.controls.drag}),this.parameters.controls.keyboard&&("undefined"!=typeof this.controls.touch?new scope.SmartSliderControlKeyboard(this,this.controls.touch._direction.axis):new scope.SmartSliderControlKeyboard(this,"horizontal")),this.parameters.controls.scroll&&new scope.SmartSliderControlScroll(this),this.parameters.controls.tilt&&new scope.SmartSliderControlTilt(this),this.controlAutoplay=new scope.SmartSliderControlAutoplay(this,this.parameters.autoplay),this.controlFullscreen=new scope.SmartSliderControlFullscreen(this))},SmartSliderAbstract.prototype.getSlideIndex=function(e){return e},SmartSliderAbstract.prototype.slideToID=function(e,t){for(var i=0;i<this.realSlides.length;i++)if(this.realSlides[i].id==e)return this.slide(this.getSlideIndex(i),t);var s=$('[data-id="'+e+'"]').closest(".n2-ss-slider");if(s.length&&this.id==s.data("ss").id)return!0;if(s.length){var r=0;return"undefined"!=typeof n2ScrollOffsetSelector&&(r=n2(n2ScrollOffsetSelector).outerHeight()),n2("html, body").animate({scrollTop:s.offset().top-r},400),s.data("ss").slideToID(e,t)}},SmartSliderAbstract.prototype.slide=function(e,t){return e>=0&&e<this.slides.length?"undefined"==typeof t?parseInt(this.parameters.carousel)&&this.currentSlide.index==this.slides.length-1&&0==e?this.next():this.currentSlide.index>e?this.changeTo(e,!0):this.changeTo(e):this.changeTo(e,!t):!1},SmartSliderAbstract.prototype.startAutoplay=function(e){return"undefined"!=typeof this.controlAutoplay?(this.controlAutoplay.pauseAutoplayExtraPlayingEnded(e,"autoplayButton"),!0):!1},SmartSliderAbstract}),N2Require("SmartSliderWidgets",[],[],function($,scope,undefined){function SmartSliderWidgets(e){this.slider=e,this.sliderElement=e.sliderElement.on("BeforeVisible",$.proxy(this.onReady,this)),this.widgets={},this.excludedSlides={},this.states={hover:!1,nonCarouselFirst:!1,nonCarouselLast:!1,currentSlideIndex:-1}}return SmartSliderWidgets.prototype.setState=function(e,t){this.states[e]!=t&&(this.states[e]=t,this.onStateChange())},SmartSliderWidgets.prototype.onStateChange=function(){var e={};for(var t in this.widgets)this.widgets[t].hasClass("n2-ss-widget-display-hover")?this.states.hover?e[t]=!0:e[t]=!1:e[t]=!0,this.excludedSlides[t]!=undefined&&-1!=$.inArray(this.states.currentSlideIndex+1,this.excludedSlides[t])&&(e[t]=!1);this.states.nonCarouselFirst&&(e.previous=!1),this.states.nonCarouselLast&&(e.next=!1);for(var t in this.widgets)this.widgets[t].toggleClass("n2-ss-widget-hidden",!e[t])},SmartSliderWidgets.prototype.onReady=function(){this.dimensions=this.slider.dimensions,this.widgets={previous:this.sliderElement.find(".nextend-arrow-previous"),next:this.sliderElement.find(".nextend-arrow-next"),bullet:this.sliderElement.find(".n2-ss-control-bullet"),autoplay:this.sliderElement.find(".nextend-autoplay"),indicator:this.sliderElement.find(".nextend-indicator"),bar:this.sliderElement.find(".nextend-bar"),thumbnail:this.sliderElement.find(".nextend-thumbnail"),shadow:this.sliderElement.find(".nextend-shadow"),fullscreen:this.sliderElement.find(".nextend-fullscreen"),html:this.sliderElement.find(".nextend-widget-html")};var e=!1;for(var t in this.widgets){var i=this.widgets[t].attr("data-exclude-slides");if(i!=undefined){for(var s=i.split(","),r=s.length-1;r>=0;r--){var n=s[r].split("-");if(2==n.length){var o=parseInt(n[0]),a=parseInt(n[1]);if(a>=o)for(var l=o;a>=l;l++)s.push(l)}else s[r]=parseInt(s[r])}s.length>0&&(this.excludedSlides[t]=s,e=!0)}}if(e){var d=$.proxy(function(e,t){this.setState("currentSlideIndex",t)},this);d(null,this.slider.currentRealSlide.index),this.slider.sliderElement.on("sliderSwitchTo",d)}this.variableElementsDimension={width:this.sliderElement.find("[data-sswidth]"),height:this.sliderElement.find("[data-ssheight]")},this.variableElements={top:this.sliderElement.find("[data-sstop]"),right:this.sliderElement.find("[data-ssright]"),bottom:this.sliderElement.find("[data-ssbottom]"),left:this.sliderElement.find("[data-ssleft]")},this.slider.sliderElement.on("SliderAnimatedResize",$.proxy(this.onAnimatedResize,this)),this.slider.sliderElement.on("SliderResize",$.proxy(this.onResize,this)),this.slider.sliderElement.one("slideCountChanged",$.proxy(function(){this.onResize(this.slider.responsive.lastRatios)},this)),this.onResize(this.slider.responsive.lastRatios),this.onStateChange()},SmartSliderWidgets.prototype.onAnimatedResize=function(e,ratios,timeline,duration){for(var key in this.widgets){var el=this.widgets[key],visible=el.is(":visible");this.dimensions[key+"width"]=visible?el.outerWidth(!1):0,this.dimensions[key+"height"]=visible?el.outerHeight(!1):0}this.dimensions.width=this.dimensions.slider.width,this.dimensions.height=this.dimensions.slider.height,this.dimensions.outerwidth=this.sliderElement.parent().width(),this.dimensions.outerheight=this.sliderElement.parent().height(),this.dimensions.canvaswidth=this.dimensions.slide.width,this.dimensions.canvasheight=this.dimensions.slide.height,this.dimensions.margintop=this.dimensions.slider.marginTop,this.dimensions.marginright=this.dimensions.slider.marginRight,this.dimensions.marginbottom=this.dimensions.slider.marginBottom,this.dimensions.marginleft=this.dimensions.slider.marginLeft;var variableText="";for(var key in this.dimensions){var value=this.dimensions[key];if("object"==typeof value)for(var key2 in value)variableText+="var "+key+key2+" = "+value[key2]+";";else variableText+="var "+key+" = "+value+";"}eval(variableText);for(var k in this.variableElementsDimension)for(var i=0;i<this.variableElementsDimension[k].length;i++){var el=this.variableElementsDimension[k].eq(i);if(el.is(":visible")){var to={};try{to[k]=eval(el.data("ss"+k))+"px";for(var widget in this.widgets)this.widgets[widget].filter(el).length&&("width"==k?this.dimensions[widget+k]=el.outerWidth(!1):"height"==k&&(this.dimensions[widget+k]=el.outerHeight(!1)),eval(widget+k+" = "+this.dimensions[widget+k]+";"))}catch(e){console.log(el," position variable: "+e.message+": ",el.data("ss"+k))}timeline.to(el,duration,to,0)}}for(var k in this.variableElements)for(var i=0;i<this.variableElements[k].length;i++){var el=this.variableElements[k].eq(i);try{var to={};to[k]=eval(el.data("ss"+k))+"px",timeline.to(el,duration,to,0)}catch(e){console.log(el," position variable: "+e.message+": ",el.data("ss"+k))}}},SmartSliderWidgets.prototype.onResize=function(e,ratios,responsive,timeline){if(!timeline){for(var k in this.variableElements)for(var i=0;i<this.variableElements[k].length;i++){var last=this.variableElements[k].data("n2Last"+k);last>0&&this.variableElements[k].css(k,0)}for(var key in this.widgets){var el=this.widgets[key],visible=el.length&&el.is(":visible");el.length&&el.is(":visible")?(this.dimensions[key+"width"]=el.outerWidth(!1),this.dimensions[key+"height"]=el.outerHeight(!1)):(this.dimensions[key+"width"]=0,this.dimensions[key+"height"]=0)}for(var k in this.variableElements)for(var i=0;i<this.variableElements[k].length;i++){var last=this.variableElements[k].data("n2Last"+k);last>0&&this.variableElements[k].css(k,last)}this.dimensions.width=this.dimensions.slider.width,this.dimensions.height=this.dimensions.slider.height,this.dimensions.outerwidth=this.sliderElement.parent().width(),this.dimensions.outerheight=this.sliderElement.parent().height(),this.dimensions.canvaswidth=this.dimensions.slide.width,this.dimensions.canvasheight=this.dimensions.slide.height,this.dimensions.margintop=this.dimensions.slider.marginTop,this.dimensions.marginright=this.dimensions.slider.marginRight,this.dimensions.marginbottom=this.dimensions.slider.marginBottom,this.dimensions.marginleft=this.dimensions.slider.marginLeft;var variableText="";for(var key in this.dimensions){var value=this.dimensions[key];if("object"==typeof value)for(var key2 in value)variableText+="var "+key+key2+" = "+value[key2]+";";else variableText+="var "+key+" = "+value+";"}eval(variableText);for(var k in this.variableElementsDimension)for(var i=0;i<this.variableElementsDimension[k].length;i++){var el=this.variableElementsDimension[k].eq(i);if(el.is(":visible"))try{el.css(k,eval(el.data("ss"+k))+"px");for(var widget in this.widgets)this.widgets[widget].filter(el).length&&("width"==k?this.dimensions[widget+k]=el.outerWidth(!1):"height"==k&&(this.dimensions[widget+k]=el.outerHeight(!1)),eval(widget+k+" = "+this.dimensions[widget+k]+";"))}catch(e){console.log(el," position variable: "+e.message+": ",el.data("ss"+k))}}for(var k in this.variableElements)for(var i=0;i<this.variableElements[k].length;i++){
2
- var el=this.variableElements[k].eq(i);try{var value=eval(el.data("ss"+k));el.css(k,value+"px"),el.data("n2Last"+k,value)}catch(e){console.log(el," position variable: "+e.message+": ",el.data("ss"+k))}}this.slider.responsive.refreshStaticSizes()}},SmartSliderWidgets}),N2Require("SmartSliderBackgroundAnimationAbstract",[],[],function(e,t,i){function s(e,t,i,s,r,n){this.durationMultiplier=r,this.original={currentImage:t,nextImage:i},this.animationProperties=s,this.reversed=n,this.timeline=e.timeline,this.containerElement=e.bgAnimationElement,this.shiftedBackgroundAnimation=e.parameters.shiftedBackgroundAnimation,this.clonedImages={}}return s.prototype.postSetup=function(){},s.prototype.ended=function(){},s.prototype.revertEnded=function(){},s.prototype.placeNextImage=function(){this.clonedImages.nextImage=this.original.nextImage.clone().css({position:"absolute",top:0,left:0}),this.containerElement.append(this.clonedImages.nextImage)},s.prototype.placeCurrentImage=function(){this.clonedImages.currentImage=this.original.currentImage.clone().css({position:"absolute",top:0,left:0}),this.containerElement.append(this.clonedImages.currentImage)},s.prototype.hideOriginals=function(){this.original.currentImage.css("opacity",0),this.original.nextImage.css("opacity",0)},s.prototype.resetAll=function(){this.original.currentImage.css("opacity",1),this.original.nextImage.css("opacity",1),this.containerElement.html("")},s.prototype.getExtraDelay=function(){return 0},s}),N2Require("SmartSliderBackgroundAnimationCubic",["SmartSliderBackgroundAnimationTiled"],[],function(e,t,i){function s(){t.SmartSliderBackgroundAnimationTiled.prototype.constructor.apply(this,arguments)}return s.prototype=Object.create(t.SmartSliderBackgroundAnimationTiled.prototype),s.prototype.constructor=s,s.prototype.setup=function(){var i=e.extend(!0,{columns:1,rows:1,fullCube:!0,tiles:{delay:.2,sequence:"Parallel"},depth:50,main:{side:"Left",duration:.5,ease:"easeInOutCubic",direction:"horizontal",real3D:!0},pre:[],post:[]},this.animationProperties);i.fullCube=!0,this.reversed&&("undefined"!=typeof i.invert&&e.extend(!0,i.main,i.invert),"undefined"!=typeof i.invertTiles&&e.extend(i.tiles,i.invertTiles)),t.SmartSliderBackgroundAnimationTiled.prototype.setup.call(this,i)},s.prototype.renderTile=function(t,i,s,r,n,o){var a=r.depth;switch(a){case"width":a=i;break;case"height":a=s}switch(r.main.side){case"Top":case"Bottom":a=s;break;case"Left":case"Right":a=i}r.main.real3D&&NextendTween.set(t.get(0),{transformStyle:"preserve-3d"});var l=e('<div class="cuboid"></div>').css({position:"absolute",left:"0",top:"0",width:"100%",height:"100%"}).appendTo(t);NextendTween.set(l.get(0),{transformStyle:"preserve-3d",z:-a/2});var d=0;"horizontal"==r.main.direction&&(d=180);var h=this.getSide(l,i,s,0,0,-a/2,180,0,d),p={Back:h,BackInvert:h};return(r.fullCube||"vertical"==r.main.direction)&&(p.Bottom=this.getSide(l,i,a,0,s-a/2,0,-90,0,0),p.Top=this.getSide(l,i,a,0,-a/2,0,90,0,0)),p.Front=this.getSide(l,i,s,0,0,a/2,0,0,0),(r.fullCube||"horizontal"==r.main.direction)&&(p.Left=this.getSide(l,a,s,-a/2,0,0,0,-90,0),p.Right=this.getSide(l,a,s,i-a/2,0,0,0,90,0)),p.Front.append(this.clonedCurrent().clone().css({position:"absolute",top:-o+"px",left:-n+"px"})),p[r.main.side].append(this.clonedNext().clone().css({position:"absolute",top:-o+"px",left:-n+"px"})),l},s.prototype.getSide=function(t,i,s,r,n,o,a,l,d){var h=e('<div class="n2-3d-side"></div>').css({width:i,height:s}).appendTo(t);return NextendTween.set(h.get(0),{x:r,y:n,z:o,rotationX:a,rotationY:l,rotationZ:d,backfaceVisibility:"hidden"}),h},s.prototype.addAnimation=function(e,t){var i=e.duration;delete e.duration,this.timeline.to(t,i*this.durationMultiplier,e)},s.prototype.transform=function(e,t,i){for(var s=0;s<e.pre.length;s++){var r=e.pre[s],n=r.duration*this.durationMultiplier;this.timeline.to(t,n,r,i),i+=n}this["transform"+e.main.side](e.main,t,i),i+=e.main.duration;for(var s=0;s<e.post.length;s++){var r=e.post[s],n=r.duration*this.durationMultiplier;this.timeline.to(t,n,r,i),i+=n}},s.prototype.transformLeft=function(e,t,i){this._transform(e,t,i,0,90,0)},s.prototype.transformRight=function(e,t,i){this._transform(e,t,i,0,-90,0)},s.prototype.transformTop=function(e,t,i){this._transform(e,t,i,-90,0,0)},s.prototype.transformBottom=function(e,t,i){this._transform(e,t,i,90,0,0)},s.prototype.transformBack=function(e,t,i){"horizontal"==e.direction?this._transform(e,t,i,0,180,0):this._transform(e,t,i,180,0,0)},s.prototype.transformBackInvert=function(e,t,i){"horizontal"==e.direction?this._transform(e,t,i,0,-180,0):this._transform(e,t,i,-180,0,0)},s.prototype._transform=function(e,t,i,s,r,n){this.timeline.to(t,e.duration*this.durationMultiplier,{rotationX:s,rotationY:r,rotationZ:n,ease:e.ease},i)},s}),N2Require("SmartSliderBackgroundAnimationExplode",["SmartSliderBackgroundAnimationTiled"],[],function(e,t,i){function s(){t.SmartSliderBackgroundAnimationTiled.prototype.constructor.apply(this,arguments)}return s.prototype=Object.create(t.SmartSliderBackgroundAnimationTiled.prototype),s.prototype.constructor=s,s.prototype.setup=function(){var i=e.extend(!0,{columns:1,rows:1,reverse:!1,tiles:{delay:0,sequence:"Parallel"},main:{duration:.5,zIndex:2,current:{ease:"easeInOutCubic"}}},this.animationProperties);this.placeNextImage(),this.clonedImages.nextImage.css({overflow:"hidden",width:"100%",height:"100%"}),t.SmartSliderBackgroundAnimationTiled.prototype.setup.call(this,i)},s.prototype.renderTile=function(t,i,s,r,n,o){var a=e("<div></div>").css({position:"absolute",left:0,top:0,width:i,height:s,overflow:"hidden",zIndex:r.main.zIndex}).append(this.clonedCurrent().clone().css({position:"absolute",top:-o+"px",left:-n+"px"})).appendTo(t);return NextendTween.set(t.get(0),{transformPerspective:1e3,transformStyle:"preserve-3d"}),{current:a,tile:t}},s.prototype.transform=function(t,i,s){var r=e.extend(!0,{},t.main.current);r.rotationX=90*(3*Math.random()-1),r.rotationY=90*(3*Math.random()-1),r.rotationZ=90*(3*Math.random()-1),this.timeline.to(i.tile,t.main.duration*this.durationMultiplier,r,s)},s}),N2Require("SmartSliderBackgroundAnimationExplodeReversed",["SmartSliderBackgroundAnimationTiled"],[],function(e,t,i){function s(){t.SmartSliderBackgroundAnimationTiled.prototype.constructor.apply(this,arguments)}return s.prototype=Object.create(t.SmartSliderBackgroundAnimationTiled.prototype),s.prototype.constructor=s,s.prototype.setup=function(){var i=e.extend(!0,{columns:1,rows:1,reverse:!1,tiles:{delay:0,sequence:"Parallel"},main:{duration:.5,zIndex:2,current:{ease:"easeInOutCubic"}}},this.animationProperties);this.placeCurrentImage(),this.clonedImages.currentImage.css({overflow:"hidden",width:"100%",height:"100%"}),t.SmartSliderBackgroundAnimationTiled.prototype.setup.call(this,i)},s.prototype.renderTile=function(t,i,s,r,n,o){var a=e("<div></div>").css({position:"absolute",left:0,top:0,width:i,height:s,overflow:"hidden",zIndex:r.main.zIndex}).append(this.clonedNext().clone().css({position:"absolute",top:-o+"px",left:-n+"px"})).appendTo(t);return NextendTween.set(t.get(0),{transformPerspective:1e3,transformStyle:"preserve-3d"}),{next:a,tile:t}},s.prototype.transform=function(t,i,s){var r=e.extend(!0,{},t.main.current);r.rotationX=90*(3*Math.random()-1),r.rotationY=90*(3*Math.random()-1),r.rotationZ=30*(3*Math.random()-1),this.timeline.from(i.tile,t.main.duration*this.durationMultiplier,r,s)},s}),N2Require("SmartSliderBackgroundAnimationFlat",["SmartSliderBackgroundAnimationTiled"],[],function(e,t,i){function s(){t.SmartSliderBackgroundAnimationTiled.prototype.constructor.apply(this,arguments)}return s.prototype=Object.create(t.SmartSliderBackgroundAnimationTiled.prototype),s.prototype.constructor=s,s.prototype.setup=function(){var i=e.extend(!0,{columns:1,rows:1,tiles:{cropOuter:!1,crop:!0,delay:0,sequence:"Parallel"},main:{type:"next",duration:.5,real3D:!0,zIndex:1,current:{ease:"easeInOutCubic"},next:{ease:"easeInOutCubic"}}},this.animationProperties);this.reversed&&("undefined"!=typeof i.invert&&e.extend(!0,i.main,i.invert),"undefined"!=typeof i.invertTiles&&e.extend(i.tiles,i.invertTiles)),t.SmartSliderBackgroundAnimationTiled.prototype.setup.call(this,i),i.tiles.cropOuter&&this.container.css("overflow","hidden")},s.prototype.renderTile=function(t,i,s,r,n,o){r.tiles.crop&&t.css("overflow","hidden");var a=e("<div></div>").css({position:"absolute",left:0,top:0,width:i,height:s,overflow:"hidden",zIndex:r.main.zIndex}).append(this.clonedCurrent().clone().css({position:"absolute",top:-o+"px",left:-n+"px"})).appendTo(t),l=e("<div></div>").css({position:"absolute",left:0,top:0,width:i,height:s,overflow:"hidden",zIndex:1}).append(this.clonedNext().clone().css({position:"absolute",top:-o+"px",left:-n+"px"})).appendTo(t);return r.main.real3D&&(NextendTween.set(t.get(0),{transformStyle:"preserve-3d"}),NextendTween.set(a.get(0),{transformStyle:"preserve-3d"}),NextendTween.set(l.get(0),{transformStyle:"preserve-3d"})),{current:a,next:l}},s.prototype.transform=function(e,t,i){var s=e.main;"current"!=s.type&&"both"!=s.type||this.timeline.to(t.current,s.duration*this.durationMultiplier,s.current,i),"next"!=s.type&&"both"!=s.type||this.timeline.from(t.next,s.duration*this.durationMultiplier,s.next,i)},s}),N2Require("SmartSliderBackgroundAnimationSlixes",["SmartSliderBackgroundAnimationTiled"],[],function(e,t,i){function s(){t.SmartSliderBackgroundAnimationTiled.prototype.constructor.apply(this,arguments)}return s.prototype=Object.create(t.SmartSliderBackgroundAnimationTiled.prototype),s.prototype.constructor=s,s.prototype.setup=function(){var i=e.extend(!0,{columns:2,rows:2,main:{duration:2,zIndex:2}},this.animationProperties);this.placeNextImage(),this.clonedImages.nextImage.css({overflow:"hidden",width:"100%",height:"100%"}),t.SmartSliderBackgroundAnimationTiled.prototype.setup.call(this,i)},s.prototype.renderTile=function(t,i,s,r,n,o){this.container.css("overflow","hidden");var a=e("<div></div>").css({position:"absolute",left:0,top:0,width:i,height:s,overflow:"hidden",zIndex:r.main.zIndex}).append(this.clonedCurrent().clone().css({position:"absolute",top:-o+"px",left:-n+"px"})).appendTo(t);return NextendTween.set(t.get(0),{transformPerspective:1e3,transformStyle:"preserve-3d"}),{current:a,tile:t}},s.prototype.animate=function(t,i,s){this.timeline.to(s[0][0].tile,t.main.duration*this.durationMultiplier,{left:"-50%",ease:"easeInOutCubic"},0),this.timeline.to(s[0][1].tile,t.main.duration*this.durationMultiplier,{left:"-50%",ease:"easeInOutCubic"},.3),this.timeline.to(s[1][0].tile,t.main.duration*this.durationMultiplier,{left:"100%",ease:"easeInOutCubic"},.15),this.timeline.to(s[1][1].tile,t.main.duration*this.durationMultiplier,{left:"100%",ease:"easeInOutCubic"},.45),e("<div />").css({position:"absolute",left:0,top:0,width:"100%",height:"100%",overflow:"hidden"}).prependTo(this.clonedImages.nextImage.parent()).append(this.clonedImages.nextImage),this.timeline.fromTo(this.clonedImages.nextImage,t.main.duration*this.durationMultiplier,{scale:1.3},{scale:1},.45)},s}),N2Require("SmartSliderBackgroundAnimationTiled",["SmartSliderBackgroundAnimationFluxAbstract"],[],function(e,t,i){function s(){t.SmartSliderBackgroundAnimationFluxAbstract.prototype.constructor.apply(this,arguments),this.setup()}return s.prototype=Object.create(t.SmartSliderBackgroundAnimationFluxAbstract.prototype),s.prototype.constructor=s,s.prototype.setup=function(t){var i=e("<div></div>").css({position:"absolute",left:0,top:0,width:this.w,height:this.h});this.container=i,NextendTween.set(i.get(0),{force3D:!0,perspective:1e3});for(var s=[],r=[],n=t.columns,o=t.rows,a=Math.floor(this.w/n),l=Math.floor(this.h/o),d=this.w-n*a,h=Math.ceil(d/n),p=this.h-o*l,c=Math.ceil(p/o),u=0,m=0;n>m;m++){s[m]=[];var f=a,g=0;if(d>0){var y=d>=h?h:d;f+=y,d-=y}for(var v=p,S=0;o>S;S++){var b=l;if(v>0){var y=v>=c?c:v;b+=y,v-=y}var x=e('<div class="tile tile-'+m+"-"+S+'"></div>').css({position:"absolute",top:g+"px",left:u+"px",width:f+"px",height:b+"px",zIndex:-Math.abs(m-parseInt(n/2))+n-Math.abs(S-parseInt(o/2))}).appendTo(i),w=this.renderTile(x,f,b,t,u,g);r.push(w),s[m][S]=w,g+=b}u+=f}i.appendTo(this.containerElement),this.preSetup(),this.animate(t,r,s)},s.prototype.animate=function(t,i,s){this["sequence"+t.tiles.sequence](e.proxy(this.transform,this,t),i,s,t.tiles.delay*this.durationMultiplier)},s.prototype.sequenceParallel=function(e,t){e(t,null)},s.prototype.sequenceRandom=function(e,t,i,s){for(var r=this.timeline.totalDuration(),n=0;n<t.length;n++)e(t[n],r+Math.random()*s)},s.prototype.sequenceForwardCol=function(e,t,i,s){for(var r=this.timeline.totalDuration(),n=0;n<t.length;n++)e(t[n],r+s*n)},s.prototype.sequenceBackwardCol=function(e,t,i,s){for(var r=this.timeline.totalDuration(),n=t.length-1,o=0;o<t.length;o++)e(t[o],r+s*(n-o))},s.prototype.sequenceForwardRow=function(e,t,i,s){for(var r=this.timeline.totalDuration(),n=0,o=0;o<i[0].length;o++)for(var a=0;a<i.length;a++)e(i[a][o],r+s*n),n++},s.prototype.sequenceBackwardRow=function(e,t,i,s){for(var r=this.timeline.totalDuration(),n=t.length-1,o=0;o<i[0].length;o++)for(var a=0;a<i.length;a++)e(i[a][o],r+s*n),n--},s.prototype.sequenceForwardDiagonal=function(e,t,i,s){for(var r=this.timeline.totalDuration(),n=0;n<i[0].length;n++)for(var o=0;o<i.length;o++)e(i[o][n],r+s*(o+n))},s.prototype.sequenceBackwardDiagonal=function(e,t,i,s){for(var r=this.timeline.totalDuration(),n=i[0].length+i.length-2,o=0;o<i[0].length;o++)for(var a=0;a<i.length;a++)e(i[a][o],r+s*(n-a-o))},s}),N2Require("SmartSliderBackgroundAnimationTurn",["SmartSliderBackgroundAnimationFluxAbstract"],[],function(e,t,i){function s(){t.SmartSliderBackgroundAnimationFluxAbstract.prototype.constructor.apply(this,arguments);var i=e.extend(!0,{perspective:1.5*this.w,duration:.8,direction:"left"},this.animationProperties);this.reversed&&("left"==i.direction?i.direction="right":i.direction="left");var s=parseInt(this.w/2);this.clonedCurrent().css({position:"absolute",top:0,left:"left"==i.direction?-1*(this.w/2):0}),this.clonedNext().css({position:"absolute",top:0,left:"left"==i.direction?0:-1*(this.w/2)});var r=e('<div class="tab"></div>').css({width:s,height:this.h,position:"absolute",top:"0px",left:"left"==i.direction?s:"0","z-index":101});NextendTween.set(r,{transformStyle:"preserve-3d",transformOrigin:"left"==i.direction?"0px 0px":s+"px 0px"});var n=e('<div class="n2-ff-3d"></div>').append(this.clonedCurrent()).css({width:s,height:this.h,position:"absolute",top:0,left:0,"-webkit-transform":"translateZ(0.1px)",overflow:"hidden"}).appendTo(r);NextendTween.set(n,{backfaceVisibility:"hidden",transformStyle:"preserve-3d"});var o=e('<div class="n2-ff-3d"></div>').append(this.clonedNext()).appendTo(r).css({width:s,height:this.h,position:"absolute",top:0,left:0,overflow:"hidden"});NextendTween.set(o,{backfaceVisibility:"hidden",transformStyle:"preserve-3d",rotationY:180,rotationZ:0});var a=e("<div></div>").append(this.clonedCurrent().clone().css("left","left"==i.direction?0:-s)).css({position:"absolute",top:0,left:"left"==i.direction?"0":s,width:s,height:this.h,zIndex:100,overflow:"hidden"}),l=e('<div class="overlay"></div>').css({position:"absolute",top:0,left:"left"==i.direction?s:0,width:s,height:this.h,background:"#000",opacity:1,overflow:"hidden"}),d=e("<div></div>").css({width:this.w,height:this.h,position:"absolute",top:0,left:0}).append(r).append(a).append(l);NextendTween.set(d,{perspective:i.perspective,perspectiveOrigin:"50% 50%"}),this.placeNextImage(),this.clonedImages.nextImage.css({overflow:"hidden",width:"100%",height:"100%"}),this.containerElement.append(d),this.preSetup(),this.timeline.to(r.get(0),i.duration*this.durationMultiplier,{rotationY:"left"==i.direction?-180:180},0),this.timeline.to(l.get(0),i.duration*this.durationMultiplier,{opacity:0},0)}return s.prototype=Object.create(t.SmartSliderBackgroundAnimationFluxAbstract.prototype),s.prototype.constructor=s,s.prototype.getExtraDelay=function(){return 0},s}),N2Require("SmartSliderBackgroundAnimationFluxAbstract",["SmartSliderBackgroundAnimationAbstract"],[],function(e,t,i){function s(){this.shiftedPreSetup=!1,this._clonedCurrent=!1,this._clonedNext=!1,t.SmartSliderBackgroundAnimationAbstract.prototype.constructor.apply(this,arguments),this.w=this.original.currentImage.width(),this.h=this.original.currentImage.height()}return s.prototype=Object.create(t.SmartSliderBackgroundAnimationAbstract.prototype),s.prototype.constructor=s,s.prototype.clonedCurrent=function(){return this._clonedCurrent||(this._clonedCurrent=this.original.currentImage.clone().css({width:this.w,height:this.h}),this._clonedCurrent.find(".n2-ss-slide-background-video").remove()),this._clonedCurrent},s.prototype.clonedNext=function(){return this._clonedNext||(this._clonedNext=this.original.nextImage.clone().css({width:this.w,height:this.h}),this._clonedNext.find(".n2-ss-slide-background-video").remove()),this._clonedNext},s.prototype.preSetup=function(){0!=this.shiftedBackgroundAnimation?this.shiftedPreSetup=!0:this._preSetup()},s.prototype._preSetup=function(e){this.timeline.to(this.original.currentImage.get(0),this.getExtraDelay(),{opacity:0},0),this.original.nextImage.css("opacity",0)},s.prototype.postSetup=function(){this.timeline.to(this.original.nextImage.get(0),this.getExtraDelay(),{opacity:1})},s.prototype.getExtraDelay=function(){return.2},s.prototype.ended=function(){this.original.currentImage.css("opacity",1),this.containerElement.html("")},s.prototype.revertEnded=function(){this.original.nextImage.css("opacity",1),this.containerElement.html("")},s}),N2Require("SmartSliderMainAnimationAbstract",[],[],function(e,t,i){function s(t,i){this.state="ended",this.isTouch=!1,this.isReverseAllowed=!0,this.isReverseEnabled=!1,this.reverseSlideIndex=null,this.isNoAnimation=!1,this.slider=t,this.parameters=e.extend({duration:1500,ease:"easeInOutQuint"},i),this.parameters.duration/=1e3,this.sliderElement=t.sliderElement,this.timeline=new NextendTimeline({paused:!0}),this.sliderElement.on("mainAnimationStart",e.proxy(function(e,t,i,s){this._revertCurrentSlideIndex=i,this._revertNextSlideIndex=s},this))}return s.prototype.setToStarterSlide=function(e){},s.prototype.enableReverseMode=function(){this.isReverseEnabled=!0,this.reverseTimeline=new NextendTimeline({paused:!0}),this.sliderElement.triggerHandler("reverseModeEnabled",this.reverseSlideIndex)},s.prototype.disableReverseMode=function(){this.isReverseEnabled=!1},s.prototype.setTouch=function(e){this.isTouch=e},s.prototype.setTouchProgress=function(e){this.isReverseEnabled?this._setTouchProgressWithReverse(e):this._setTouchProgress(e)},s.prototype._setTouchProgress=function(e){"ended"!=this.state&&(0>=e?this.timeline.progress(Math.max(e,1e-6),!1):e>=0&&1>=e&&this.timeline.progress(e))},s.prototype._setTouchProgressWithReverse=function(e){0==e?(this.reverseTimeline.progress(0),this.timeline.progress(e,!1)):e>=0&&1>=e?(this.reverseTimeline.progress(0),this.timeline.progress(e)):0>e&&e>=-1&&(this.timeline.progress(0),this.reverseTimeline.progress(Math.abs(e)))},s.prototype.setTouchEnd=function(e,t,i){"ended"!=this.state&&(this.isReverseEnabled?this._setTouchEndWithReverse(e,t,i):this._setTouchEnd(e,t,i))},s.prototype._setTouchEnd=function(e,t,i){e&&t>0?(this.fixTouchDuration(this.timeline,t,i),this.timeline.play()):(this.revertCB(this.timeline),this.fixTouchDuration(this.timeline,1-t,i),this.timeline.reverse(),this.willRevertTo(this._revertCurrentSlideIndex,this._revertNextSlideIndex))},s.prototype._setTouchEndWithReverse=function(e,t,i){e?0>t&&this.reverseTimeline.totalDuration()>0?(this.fixTouchDuration(this.reverseTimeline,t,i),this.reverseTimeline.play(),this.willRevertTo(this.reverseSlideIndex,this._revertNextSlideIndex)):(this.willCleanSlideIndex(this.reverseSlideIndex),this.fixTouchDuration(this.timeline,t,i),this.timeline.play()):(0>t?(this.revertCB(this.reverseTimeline),this.fixTouchDuration(this.reverseTimeline,1-t,i),this.reverseTimeline.reverse()):(this.revertCB(this.timeline),this.fixTouchDuration(this.timeline,1-t,i),this.timeline.reverse()),this.willCleanSlideIndex(this.reverseSlideIndex),this.willRevertTo(this._revertCurrentSlideIndex,this._revertNextSlideIndex))},s.prototype.fixTouchDuration=function(e,t,i){var s=e.totalDuration(),r=Math.max(s/3,Math.min(s,i/Math.abs(t)/1e3));r!=s&&e.totalDuration(r)},s.prototype.getState=function(){return this.state},s.prototype.timeScale=function(){return arguments.length>0?(this.timeline.timeScale(arguments[0]),this):this.timeline.timeScale()},s.prototype.changeTo=function(t,i,s,r){if(this._initAnimation(t,i,s),this.state="initAnimation",this.timeline.paused(!0),this.timeline.eventCallback("onStart",this.onChangeToStart,[t,i,r],this),this.timeline.eventCallback("onComplete",this.onChangeToComplete,[t,i,r],this),this.timeline.eventCallback("onReverseComplete",null),this.revertCB=e.proxy(function(e){e.eventCallback("onReverseComplete",this.onReverseChangeToComplete,[i,t,r],this)},this),this.slider.parameters.dynamicHeight){var n=new NextendTimeline;this.slider.responsive.doResize(null,!1,n,i,.6),this.timeline.add(n)}this.isTouch||this.timeline.play()},s.prototype.willRevertTo=function(t,i){this.sliderElement.triggerHandler("mainAnimationWillRevertTo",[t,i]),this.sliderElement.one("mainAnimationComplete",e.proxy(this.revertTo,this,t,i))},s.prototype.revertTo=function(e,t){this.slider.revertTo(e,t),this.slider.slides[t].triggerHandler("mainAnimationStartInCancel")},s.prototype.willCleanSlideIndex=function(t){this.sliderElement.one("mainAnimationComplete",e.proxy(this.cleanSlideIndex,this,t))},s.prototype.cleanSlideIndex=function(){},s.prototype._initAnimation=function(e,t,i){},s.prototype.onChangeToStart=function(e,t,i){this.state="playing";var s=[this,e.index,t.index,i];this.sliderElement.trigger("mainAnimationStart",s),this.slider.slides[e.index].trigger("mainAnimationStartOut",s),this.slider.slides[t.index].trigger("mainAnimationStartIn",s)},s.prototype.onChangeToComplete=function(e,t,i){var s=[this,e.index,t.index,i];this.clearTimelines(),this.disableReverseMode(),this.slider.slides[e.index].trigger("mainAnimationCompleteOut",s),this.slider.slides[t.index].trigger("mainAnimationCompleteIn",s),this.state="ended",this.sliderElement.trigger("mainAnimationComplete",s)},s.prototype.onReverseChangeToComplete=function(e,t,i){s.prototype.onChangeToComplete.apply(this,arguments)},s.prototype.clearTimelines=function(){this.revertCB=function(){},this.timeline.clear(),this.timeline.timeScale(1)},s.prototype.getEase=function(){return this.isTouch?"linear":this.parameters.ease},s}),N2Require("SmartSliderControlAutoplay",[],[],function(e,t,i){"use strict";function s(t,i){this._paused=!0,this._wait=!1,this._disabled=!1,this._currentCount=0,this._progressEnabled=!1,this.timeline=null,this.hasButton=!1,this.deferredsMediaPlaying=null,this.deferredMouseLeave=null,this.deferredMouseEnter=null,this.mainAnimationDeferred=!0,this.autoplayDeferred=null,this.slider=t,this.parameters=e.extend({enabled:0,start:1,duration:8e3,autoplayToSlide:0,autoplayToSlideIndex:-1,allowReStart:0,pause:{mouse:"enter",click:!0,mediaStarted:!0},resume:{click:0,mouse:0,mediaEnded:!0}},i),this.parameters.enabled?(this.parameters.duration/=1e3,t.controls.autoplay=this,this.deferredsExtraPlaying={},this.slider.visible(e.proxy(this.onReady,this))):this.disable(),t.controls.autoplay=this}var r=!1;return s.prototype.onReady=function(){this.autoplayDeferred=e.Deferred();var t={_progress:0};this.timeline=NextendTween.to(t,this.getSlideDuration(this.slider.currentSlide.index),{_progress:1,paused:!0,onComplete:e.proxy(this.next,this)}),this._progressEnabled&&this.enableProgress();var i=this.slider.sliderElement;if(this.parameters.start?this.continueAutoplay():this.pauseAutoplayExtraPlaying(null,"autoplayButton"),i.on("mainAnimationStart.autoplay",e.proxy(this.onMainAnimationStart,this)),"0"!=this.parameters.pause.mouse)switch(i.on("touchend.autoplay",function(){r=!0,setTimeout(function(){r=!1},300)}),this.parameters.pause.mouse){case"enter":i.on("mouseenter.autoplay",e.proxy(this.pauseAutoplayMouseEnter,this)),i.on("mouseleave.autoplay",e.proxy(this.pauseAutoplayMouseEnterEnded,this));break;case"leave":i.on("mouseleave.autoplay",e.proxy(this.pauseAutoplayMouseLeave,this)),i.on("mouseenter.autoplay",e.proxy(this.pauseAutoplayMouseLeaveEnded,this))}if(this.parameters.pause.click&&!this.parameters.resume.click?i.on("universalclick.autoplay",e.proxy(this.pauseAutoplayUniversal,this)):!this.parameters.pause.click&&this.parameters.resume.click?i.on("universalclick.autoplay",e.proxy(function(e){this.pauseAutoplayExtraPlayingEnded(e,"autoplayButton")},this)):this.parameters.pause.click&&this.parameters.resume.click&&i.on("universalclick.autoplay",e.proxy(function(e){this._paused?this.pauseAutoplayExtraPlayingEnded(e,"autoplayButton"):this.pauseAutoplayUniversal(e)},this)),this.parameters.pause.mediaStarted&&(this.deferredsMediaPlaying={},i.on("mediaStarted.autoplay",e.proxy(this.pauseAutoplayMediaPlaying,this)),i.on("mediaEnded.autoplay",e.proxy(this.pauseAutoplayMediaPlayingEnded,this))),"0"!=this.parameters.resume.mouse)switch(this.parameters.resume.mouse){case"enter":this.hasButton&&"0"!=this.parameters.pause.mouse?i.on("mouseenter.autoplay",e.proxy(this.continueAutoplay,this)):i.on("mouseenter.autoplay",e.proxy(function(e){this.pauseAutoplayExtraPlayingEnded(e,"autoplayButton")},this));break;case"leave":this.hasButton&&"0"!=this.parameters.pause.mouse?i.on("mouseleave.autoplay",e.proxy(this.continueAutoplay,this)):i.on("mouseleave.autoplay",e.proxy(function(e){this.pauseAutoplayExtraPlayingEnded(e,"autoplayButton")},this))}this.parameters.resume.mediaEnded&&i.on("mediaEnded.autoplay",e.proxy(this.continueAutoplay,this)),i.on("autoplayExtraWait.autoplay",e.proxy(this.pauseAutoplayExtraPlaying,this)),i.on("autoplayExtraContinue.autoplay",e.proxy(this.pauseAutoplayExtraPlayingEnded,this)),this.slider.sliderElement.on("mainAnimationComplete.autoplay",e.proxy(this.onMainAnimationComplete,this))},s.prototype.enableProgress=function(){this.timeline&&this.timeline.eventCallback("onUpdate",e.proxy(this.onUpdate,this)),this._progressEnabled=!0},s.prototype.onMainAnimationStart=function(t,i,s,r,n){this.mainAnimationDeferred=e.Deferred(),this.deActivate(0,"wait");for(var o in this.deferredsMediaPlaying)this.deferredsMediaPlaying[o].resolve()},s.prototype.onMainAnimationComplete=function(e,t,i,s){this.parameters.autoplayToSlideIndex>=0&&this.parameters.autoplayToSlideIndex==this.slider.currentRealSlide.index+1&&this.limitAutoplay(),this.timeline.duration(this.getSlideDuration(s)),this.mainAnimationDeferred.resolve(),this.continueAutoplay()},s.prototype.getSlideDuration=function(e){var t=this.slider.realSlides[this.slider.getRealIndex(e)],i=t.minimumSlideDuration;return.3>i&&i<this.parameters.duration&&(i=this.parameters.duration),i},s.prototype.continueAutoplay=function(t){"pending"==this.autoplayDeferred.state()&&this.autoplayDeferred.reject();var i=[];for(var s in this.deferredsExtraPlaying)i.push(this.deferredsExtraPlaying[s]);for(var s in this.deferredsMediaPlaying)i.push(this.deferredsMediaPlaying[s]);this.deferredMouseEnter&&i.push(this.deferredMouseEnter),this.deferredMouseLeave&&i.push(this.deferredMouseLeave),i.push(this.mainAnimationDeferred),this.autoplayDeferred=e.Deferred(),this.autoplayDeferred.done(e.proxy(this._continueAutoplay,this)),e.when.apply(e,i).done(e.proxy(function(){"pending"==this.autoplayDeferred.state()&&this.autoplayDeferred.resolve()},this))},s.prototype._continueAutoplay=function(){!this._paused&&!this._wait||this._disabled||(this._paused=!1,this._wait=!1,this.slider.sliderElement.triggerHandler("autoplayStarted"),1==this.timeline.progress()&&this.timeline.pause(0,!1),this.startTimeout(null))},s.prototype.pauseAutoplayUniversal=function(e){this.pauseAutoplayExtraPlaying(e,"autoplayButton"),this.deActivate(null,"pause")},s.prototype.pauseAutoplayMouseEnter=function(){r||(this.autoplayDeferred.reject(),this.deferredMouseEnter=e.Deferred(),this.deActivate(null,"leave"==this.parameters.resume.mouse?"wait":"pause"))},s.prototype.pauseAutoplayMouseEnterEnded=function(){this.deferredMouseEnter&&this.deferredMouseEnter.resolve()},s.prototype.pauseAutoplayMouseLeave=function(){this.autoplayDeferred.reject(),this.deferredMouseLeave=e.Deferred(),this.deActivate(null,"enter"==this.parameters.resume.mouse?"wait":"pause")},s.prototype.pauseAutoplayMouseLeaveEnded=function(){this.deferredMouseLeave&&this.deferredMouseLeave.resolve()},s.prototype.pauseAutoplayMediaPlaying=function(t,i){"undefined"!=typeof this.deferredsMediaPlaying[i]&&this.autoplayDeferred.reject(),this.deferredsMediaPlaying[i]=e.Deferred(),this.deActivate(null,"wait")},s.prototype.pauseAutoplayMediaPlayingEnded=function(e,t){"undefined"!=typeof this.deferredsMediaPlaying[t]&&(this.autoplayDeferred.reject(),this.deferredsMediaPlaying[t].resolve(),delete this.deferredsMediaPlaying[t])},s.prototype.pauseAutoplayExtraPlaying=function(t,i){"undefined"!=typeof this.deferredsExtraPlaying[i]&&this.autoplayDeferred.reject(),this.deferredsExtraPlaying[i]=e.Deferred(),this.deActivate(null,"pause")},s.prototype.pauseAutoplayExtraPlayingEnded=function(e,t){"undefined"!=typeof this.deferredsExtraPlaying[t]&&(this.autoplayDeferred.reject(),this.deferredsExtraPlaying[t].resolve(),delete this.deferredsExtraPlaying[t]),this.continueAutoplay()},s.prototype.deActivate=function(e,t){"pause"==t?this._paused||(this._paused=!0,0!==e&&this.slider.sliderElement.triggerHandler("autoplayPaused")):"wait"==t&&(this._wait||(this._wait=!0,0!==e&&this.slider.sliderElement.triggerHandler("autoplayWait"))),this.timeline&&this.timeline.pause(e,!1)},s.prototype.disable=function(){this.deActivate(0,"pause"),this.slider.sliderElement.triggerHandler("autoplayPaused"),this.slider.sliderElement.triggerHandler("autoplayDisabled"),this.slider.sliderElement.off(".autoplay"),this._disabled=!0},s.prototype.startTimeout=function(e){this._paused||this._disabled||this.timeline.play(e)},s.prototype.next=function(){this.timeline.pause(),this._currentCount++,(this.parameters.autoplayToSlide>0&&this._currentCount>=this.parameters.autoplayToSlide||this.parameters.autoplayToSlideIndex>=0&&this.parameters.autoplayToSlideIndex==this.slider.currentRealSlide.index+2)&&this.limitAutoplay(),this.slider.nextCarousel(!0)},s.prototype.limitAutoplay=function(){this.parameters.allowReStart?(this._currentCount=0,this.slider.sliderElement.triggerHandler("autoplayExtraWait","autoplayButton")):this.disable()},s.prototype.onUpdate=function(){this.slider.sliderElement.triggerHandler("autoplay",this.timeline.progress())},s}),N2Require("SmartSliderControlFullscreen",[],[],function(e,t,i){"use strict";function s(t,i,s){this.slider=t,this.responsive=this.slider.responsive,this._type=this.responsive.parameters.type,this._forceFull=this.responsive.parameters.forceFull,this.forceFullpage="auto"==this._type||"fullwidth"==this._type||"fullpage"==this._type,this.forceFullpage&&(this._upscale=this.responsive.parameters.upscale,this._minimumHeightRatio=e.extend({},this.responsive.parameters.minimumHeightRatio),this._maximumHeightRatio=e.extend({},this.responsive.parameters.maximumHeightRatio)),this.isFullScreen=!1,this.fullParent=this.slider.sliderElement.closest(".n2-ss-align"),this.browserSpecific={};var r=this.slider.sliderElement[0];r.requestFullscreen?(this.browserSpecific.requestFullscreen="requestFullscreen",this.browserSpecific.event="fullscreenchange"):r.msRequestFullscreen?(this.browserSpecific.requestFullscreen="msRequestFullscreen",this.browserSpecific.event="MSFullscreenChange"):r.mozRequestFullScreen?(this.browserSpecific.requestFullscreen="mozRequestFullScreen",this.browserSpecific.event="mozfullscreenchange"):r.webkitRequestFullscreen?(this.browserSpecific.requestFullscreen="webkitRequestFullscreen",this.browserSpecific.event="webkitfullscreenchange"):(this.browserSpecific.requestFullscreen="nextendRequestFullscreen",this.browserSpecific.event="nextendfullscreenchange",this.fullParent[0][this.browserSpecific.requestFullscreen]=e.proxy(function(){
3
- this.fullParent.css({position:"fixed",left:0,top:0,width:"100%",height:"100%",backgroundColor:"#000",zIndex:1e6}),document.fullscreenElement=this.fullParent[0],this.triggerEvent(document,this.browserSpecific.event),e(window).trigger("resize")},this)),document.exitFullscreen?this.browserSpecific.exitFullscreen="exitFullscreen":document.msExitFullscreen?this.browserSpecific.exitFullscreen="msExitFullscreen":document.mozCancelFullScreen?this.browserSpecific.exitFullscreen="mozCancelFullScreen":document.webkitExitFullscreen?this.browserSpecific.exitFullscreen="webkitExitFullscreen":(this.browserSpecific.exitFullscreen="nextendExitFullscreen",this.fullParent[0][this.browserSpecific.exitFullscreen]=e.proxy(function(){this.fullParent.css({position:"",left:"",top:"",width:"",height:"",backgroundColor:"",zIndex:""}),document.fullscreenElement=null,this.triggerEvent(document,this.browserSpecific.event)},this)),document.addEventListener(this.browserSpecific.event,e.proxy(this.fullScreenChange,this))}return s.prototype.switchState=function(){this.isFullScreen=!this.isFullScreen,this.isFullScreen?this._fullScreen():this._normalScreen()},s.prototype.requestFullscreen=function(){return this.isFullScreen?!1:(this.isFullScreen=!0,this._fullScreen(),!0)},s.prototype.exitFullscreen=function(){return this.isFullScreen?(this.isFullScreen=!1,this._normalScreen(),!0):!1},s.prototype.triggerEvent=function(e,t){var i;document.createEvent?(i=document.createEvent("HTMLEvents"),i.initEvent(t,!0,!0)):document.createEventObject&&(i=document.createEventObject(),i.eventType=t),i.eventName=t,e.dispatchEvent?e.dispatchEvent(i):e.fireEvent&&htmlEvents["on"+t]?e.fireEvent("on"+i.eventType,i):e[t]?e[t]():e["on"+t]&&e["on"+t]()},s.prototype._fullScreen=function(){this.forceFullpage&&(this.responsive.parameters.type="fullpage",this.responsive.parameters.upscale=!0,this.responsive.parameters.forceFull=!1,this._marginLeft=this.responsive.containerElement[0].style.marginLeft,this.responsive.containerElement.css(nextend.rtl.marginLeft,0)),this.fullParent.css({width:"100%",height:"100%",backgroundColor:e("body").css("background-color")}).addClass("n2-ss-in-fullscreen"),this.fullParent.get(0)[this.browserSpecific.requestFullscreen]()},s.prototype._normalScreen=function(){document[this.browserSpecific.exitFullscreen]?document[this.browserSpecific.exitFullscreen]():this.fullParent[0][this.browserSpecific.exitFullscreen]&&this.fullParent[0][this.browserSpecific.exitFullscreen]()},s.prototype.fullScreenChange=function(){this.isDocumentInFullScreenMode()?(this.slider.sliderElement.triggerHandler("n2FullScreen"),e("html").addClass("n2-in-fullscreen"),this.isFullScreen=!0,e(window).trigger("resize")):this.forceFullpage&&(this.responsive.parameters.type=this._type,this.responsive.parameters.upscale=this._upscale,this.responsive.parameters.forceFull=this._forceFull,this.responsive.parameters.minimumHeightRatio=this._minimumHeightRatio,this.responsive.parameters.maximumHeightRatio=this._maximumHeightRatio,this.responsive.containerElement.css(nextend.rtl.marginLeft,this._marginLeft),this.fullParent.css({width:"",height:"",backgroundColor:""}).removeClass("n2-ss-in-fullscreen"),e("html").removeClass("n2-in-fullscreen"),e(window).trigger("resize"),this.isFullScreen=!1,this.slider.sliderElement.triggerHandler("n2ExitFullScreen"))},s.prototype.isDocumentInFullScreenMode=function(){return document.fullscreenElement&&null!==document.fullscreenElement||document.msFullscreenElement&&null!==document.msFullscreenElement||document.mozFullScreen||document.webkitIsFullScreen},s}),N2Require("SmartSliderControlKeyboard",[],[],function(e,t,i){"use strict";function s(t,i,r){this.slider=t,this.parameters=e.extend({},r),"vertical"==i?this.parseEvent=s.prototype.parseEventVertical:this.parseEvent=s.prototype.parseEventHorizontal,e(document).on("keydown",e.proxy(this.onKeyDown,this)),t.controls.keyboard=this}return s.prototype.isSliderOnScreen=function(){var t=this.slider.sliderElement.offset(),i=e(window).scrollTop(),s=this.slider.sliderElement.height();return t.top+.5*s>=i&&t.top-.5*s<=i+e(window).height()},s.prototype.onKeyDown=function(e){e.target.tagName.match(/BODY|DIV|IMG/)&&this.isSliderOnScreen()&&(e=e||window.event,this.parseEvent.call(this,e)&&(e.preventDefault(),e.stopImmediatePropagation()))},s.prototype.parseEventHorizontal=function(e){switch(e.keyCode){case 39:return this.slider[nextend.rtl.next](),!0;case 37:return this.slider[nextend.rtl.previous](),!0;default:return!1}},s.prototype.parseEventVertical=function(e){switch(e.keyCode){case 40:return this.slider.next(),!0;case 38:return this.slider.previous(),!0;default:return!1}},s}),N2Require("SmartSliderControlScroll",[],[],function(e,t,i){"use strict";function s(t){this.preventScroll=!1,this._preventScrollTimeout=null,this.slider=t,t.sliderElement.on("DOMMouseScroll mousewheel",e.proxy(this.onMouseWheel,this)),t.controls.scroll=this}return s.prototype.onMouseWheel=function(e){if(this.preventScroll)this.preventScrollTimeout(e);else{var t=!1;e.originalEvent&&(e.originalEvent.wheelDelta&&(t=e.originalEvent.wheelDelta/-1<0),e.originalEvent.deltaY&&(t=e.originalEvent.deltaY<0),e.originalEvent.detail&&(t=e.originalEvent.detail<0)),t?this.slider.previous()&&this.preventScrollTimeout(e):this.slider.next()&&this.preventScrollTimeout(e)}},s.prototype.preventScrollTimeout=function(t){null!==this._preventScrollTimeout&&clearTimeout(this._preventScrollTimeout),this.preventScroll=!0,t.preventDefault(),this._preventScrollTimeout=setTimeout(e.proxy(function(){this.preventScroll=!1,this._preventScrollTimeout=null},this),400)},s}),N2Require("SmartSliderControlTilt",[],[],function(e,t,i){"use strict";function s(t,i){return"undefined"==typeof window.DeviceOrientationEvent||"undefined"==typeof window.orientation?"Not supported":(this.timeout=null,this.slider=t,this.parameters=e.extend({duration:2e3},i),this.orientationchange(),window.addEventListener("orientationchange",e.proxy(this.orientationchange,this)),window.addEventListener("deviceorientation",e.proxy(this.handleOrientation,this),!0),void(t.controls.tilt=this))}return s.prototype.orientationchange=function(){switch(window.orientation){case-90:case 90:this.parseEvent=s.prototype.parseEventHorizontalLandscape;break;default:this.parseEvent=s.prototype.parseEventHorizontal}},s.prototype.clearTimeout=function(){this.timeout=null},s.prototype.handleOrientation=function(t){null==this.timeout&&this.parseEvent.call(this,t)&&(this.timeout=setTimeout(e.proxy(this.clearTimeout,this),this.parameters.duration),t.preventDefault())},s.prototype.parseEventHorizontal=function(e){return e.gamma>10?(this.slider.next(),!0):e.gamma<-10?(this.slider.previous(),!0):!1},s.prototype.parseEventHorizontalLandscape=function(e){return e.beta<-10?(this.slider.next(),!0):e.beta>10?(this.slider.previous(),!0):!1},s}),N2Require("SmartSliderControlTouch",[],[],function(e,t,i){"use strict";function s(t,i,s){this.currentAnimation=null,this.slider=t,this._animation=t.mainAnimation,this.parameters=e.extend({fallbackToMouseEvents:!0},s),this.swipeElement=this.slider.sliderElement.find("> .n2-ss-swipe-element"),"vertical"==i?this.setVertical():"horizontal"==i&&this.setHorizontal();var r=e.proxy(function(){var e=this;this._animation.isNoAnimation?N2EventBurrito(this.swipeElement.get(0),{mouse:this.parameters.fallbackToMouseEvents,axis:"horizontal"==i?"x":"y",start:function(){n=!1},move:function(t,i,s,r,o){var a=e._direction.measure(s);if(!o&&"unknown"!=a&&null===e.currentAnimation){if("ended"!=e._animation.state)return!1;e.distance=[0],e.swipeElement.addClass("n2-grabbing"),e.currentAnimation={direction:a};var l=e.slider.isChangePossible(e._direction[a]);if(!l)return e.currentAnimation=null,!1}if(e.currentAnimation){var d=e._direction.get(s,e.currentAnimation.direction);if(e.logDistance(d),(n||Math.abs(d)>e._direction.minDistance)&&t.cancelable)return n=!0,!0}return!1},end:function(t,i,s,r,n){if(null!==e.currentAnimation){var o=n?0:e.measureRealDirection();o&&e.slider[e._direction[e.currentAnimation.direction]](),e.swipeElement.removeClass("n2-grabbing"),e.currentAnimation=null}Math.abs(s.x)<10&&Math.abs(s.y)<10?e.onTap(t):nextend.preventClick()}}):N2EventBurrito(this.swipeElement.get(0),{mouse:this.parameters.fallbackToMouseEvents,axis:"horizontal"==i?"x":"y",start:function(e,t){n=!1},move:function(t,i,s,r,o){var a=e._direction.measure(s);if(!o&&"unknown"!=a&&null===e.currentAnimation){if("ended"!=e._animation.state)return!1;e.distance=[0],e.swipeElement.addClass("n2-grabbing"),e._animation.setTouch(e._direction.axis),e.currentAnimation={direction:a,percent:0};var l=e.slider[e._direction[a]](!1);if(!l)return e._animation.setTouch(!1),e.currentAnimation=null,!1}if(e.currentAnimation){var d=e._direction.get(s,e.currentAnimation.direction);if(e.logDistance(d),e.currentAnimation.percent<1){var h=Math.max(-.99999,Math.min(.99999,d/e.slider.dimensions.slider[e._property]));e.currentAnimation.percent=h,e._animation.setTouchProgress(h)}if((n||Math.abs(d)>e._direction.minDistance)&&t.cancelable)return n=!0,!0}return!1},end:function(t,i,s,r,n){if(null!==e.currentAnimation){var o=n?0:e.measureRealDirection(),a=e._animation.timeline.progress();1!=a&&e._animation.setTouchEnd(o,e.currentAnimation.percent,s.time),e.swipeElement.removeClass("n2-grabbing"),e._animation.setTouch(!1),e.currentAnimation=null}Math.abs(s.x)<10&&Math.abs(s.y)<10?e.onTap(t):nextend.preventClick()}})},this);if(navigator.userAgent.toLowerCase().indexOf("android")>-1){var o=this.swipeElement.parent();1!=o.css("opacity")?this.swipeElement.parent().one("transitionend",r):r()}else r();this.parameters.fallbackToMouseEvents||this.swipeElement.on("click",e.proxy(this.onTap,this)),this.parameters.fallbackToMouseEvents&&this.swipeElement.addClass("n2-grab"),t.controls.touch=this}var r=window.navigator.pointerEnabled||window.navigator.msPointerEnabled,n=!1,o=!1;return s.prototype.setHorizontal=function(){this._property="width",this._direction={left:nextend.rtl.next,right:nextend.rtl.previous,up:null,down:null,axis:"horizontal",minDistance:10,measure:function(e){return!n&&Math.abs(e.x)<10||0==e.x||Math.abs(e.x)<Math.abs(e.y)?"unknown":e.x<0?"left":"right"},get:function(e,t){return"left"==t?-e.x:e.x}},r&&(this.swipeElement.css("-ms-touch-action","pan-y"),this.swipeElement.css("touch-action","pan-y"))},s.prototype.setVertical=function(){this._property="height",this._direction={left:null,right:null,up:"next",down:"previous",axis:"vertical",minDistance:1,measure:function(e){return!n&&Math.abs(e.y)<1||0==e.y||Math.abs(e.y)<Math.abs(e.x)?"unknown":e.y<0?"up":"down"},get:function(e,t){return"up"==t?-e.y:e.y}},r&&(this.swipeElement.css("-ms-touch-action","pan-x"),this.swipeElement.css("touch-action","pan-x"))},s.prototype.logDistance=function(e){this.distance.length>3&&this.distance.shift(),this.distance.push(e)},s.prototype.measureRealDirection=function(){var e=this.distance[0],t=this.distance[this.distance.length-1];return t>=0&&e>t||0>t&&t>e?0:1},s.prototype.onTap=function(t){o||(e(t.target).trigger("n2click"),o=!0,setTimeout(function(){o=!1},500))},s}),N2Require("SmartSliderBackgroundImage",[],[],function(e,t,i){function s(t,i,s){this.loadStarted=!1,this.loadAllowed=!1,this.width=0,this.height=0,this.slide=t,this.element=i,this.$mask=this.element.find(".n2-ss-slide-background-mask"),this.manager=s,this.loadDeferred=e.Deferred(),this.currentSrc="",this.mode=i.data("mode"),this.opacity=i.data("opacity"),this.blur=i.data("blur"),this.x=i.data("x"),this.y=i.data("y"),this.hasImage=!1,this.$image=this.$mask.find("img"),this.$image.length?(this.hasImage=!0,this.startImageMode()):this.startColorMode()}return s.prototype.startColorMode=function(){this.loadDeferred.resolve()},s.prototype.startImageMode=function(){if("fixed"==this.mode&&(n2const.isPhone&&!this.slide.slider.parameters["background.parallax.mobile"]||n2const.isTablet&&!this.slide.slider.parameters["background.parallax.tablet"])&&(this.mode="fill"),this.$image.css("display","none"),this.$background=e('<div class="n2-ss-background-image"/>').css({opacity:this.opacity,backgroundPosition:this.x+"% "+this.y+"%"}).appendTo(this.$mask),window.n2FilterProperty&&(this.blur>0?this.$background.css({margin:"-"+2*this.blur+"px",padding:2*this.blur+"px"}).css(window.n2FilterProperty,"blur("+this.blur+"px)"):this.$background.css({margin:"",padding:""}).css(window.n2FilterProperty,"")),"fixed"==this.mode&&this.startFixed(),this.desktopSrc=this.element.data("desktop")||"",this.tabletSrc=this.element.data("tablet")||"",this.mobileSrc=this.element.data("mobile")||"",nextend.isRetina){var t=this.element.data("desktop-retina");t&&(this.desktopSrc=t),t=this.element.data("tablet-retina"),t&&(this.tabletSrc=t),t=this.element.data("mobile-retina"),t&&(this.mobileSrc=t)}},s.prototype.preLoad=function(){return this.loadStarted||(this.slide.$element.find("[data-lazysrc]").each(function(){var t=e(this);t.attr("src",t.data("lazysrc"))}),this.loadStarted=!0),"pending"==this.loadDeferred.state()&&(this.loadAllowed=!0,this.manager.deviceDeferred.done(e.proxy(function(){this.updateBackgroundToDevice(this.manager.device),this.$background.n2imagesLoaded({background:!0},e.proxy(function(e){var t=e.images[0].img;this.width=t.naturalWidth,this.height=t.naturalHeight,this.isLoaded=!0,this.loadDeferred.resolve(this.element)},this))},this))),this.loadDeferred},s.prototype.updateBackgroundToDevice=function(e){var t=this.desktopSrc;"mobile"==e.device?this.mobileSrc?t=this.mobileSrc:this.tabletSrc&&(t=this.tabletSrc):"tablet"==e.device&&this.tabletSrc&&(t=this.tabletSrc),t?this.setSrc(t):this.setSrc("")},s.prototype.setSrc=function(e){this.loadAllowed&&e!=this.currentSrc&&(""===e?this.$background.css("background-image",""):this.$background.css("background-image",'url("'+e+'")'),this.currentSrc=e)},s.prototype.startFixed=function(){n2const.isEdge||(this.slide.slider.parameters.allowBGImageAttachmentFixed&&!n2const.isIOS?(this.$background.css("background-repeat","repeat"),this.$background.css("position","static"),this.$background.css("background-attachment","fixed")):n2const.isIE||this.slide.slider.startedDeferred.done(e.proxy(function(){fixedBackground.addElement(this.$background,this.element)},this)))},s.prototype.hack=function(){NextendTween.set(this.element,{rotation:1e-4})},s}),N2Require("FrontendComponent",[],[],function(e,t,i){function s(e,i,s,r){this.wraps={},this.isVisible=!0,this.device="",this.children=[],this.slide=e,this.parent=i,this.$layer=s.data("layer",this);var n=this.$layer.find("> .n2-ss-layer-mask");n.length&&(this.wraps.mask=n);var o=this.$layer.find("> .n2-ss-layer-parallax");switch(o.length&&(this.wraps.parallax=o),s.data("pm")){case"absolute":this.placement=new t.FrontendPlacementAbsolute(this);break;case"normal":this.placement=new t.FrontendPlacementNormal(this);break;case"content":this.placement=new t.FrontendPlacementContent(this);break;default:this.placement=new t.FrontendPlacementDefault(this)}if(this.parallax=s.data("parallax"),this.baseSize=this.baseSize||100,this.isAdaptiveFont=this.get("adaptivefont"),this.refreshBaseSize(this.getDevice("fontsize")),r)for(var a=0;a<r.length;a++)switch(r.eq(a).data("type")){case"content":this.children.push(new t.FrontendComponentContent(this.slide,this,r.eq(a)));break;case"row":this.children.push(new t.FrontendComponentRow(this.slide,this,r.eq(a)));break;case"col":this.children.push(new t.FrontendComponentCol(this.slide,this,r.eq(a)));break;case"group":break;default:this.children.push(new t.FrontendComponentLayer(this.slide,this,r.eq(a)))}}return s.prototype.refreshBaseSize=function(e){this.isAdaptiveFont?this.baseSize=16*e/100:this.baseSize=this.parent.baseSize*e/100},s.prototype.start=function(){this.placement.start();for(var e=0;e<this.children.length;e++)this.children[e].start();var t=this.get("rotation")||0;if(t/360!=0){var i=this.addWrap("rotation","<div class='n2-ss-layer-rotation'></div>");NextendTween.set(i[0],{rotationZ:t})}},s.prototype.onDeviceChange=function(e){this.device=e;var t=this.isVisible;if(this.isVisible=this.getDevice(""),this.isVisible===i&&(this.isVisible=1),t&&!this.isVisible?(this.$layer.data("shows",0),this.$layer.css("display","none")):!t&&this.isVisible&&(this.$layer.data("shows",1),this.$layer.css("display","block")),this.isVisible){var s=this.getDevice("fontsize");this.refreshBaseSize(s),this.isAdaptiveFont?this.$layer.css("font-size",16*s/100+"px"):this.$layer.css("font-size",s+"%");for(var r=0;r<this.children.length;r++)this.children[r].onDeviceChange(e);this.placement.onDeviceChange(e),this.onAfterDeviceChange(e)}},s.prototype.onAfterDeviceChange=function(e){},s.prototype.onResize=function(e,t,i){if(this.isVisible||this.placement.alwaysResize){for(var s=0;s<this.children.length;s++)this.children[s].onResize(e,t,i);this.placement.onResize(e,t,i)}},s.prototype.getDevice=function(e,t){var s=this.$layer.data(this.device+e);return s!=i?s:"desktopportrait"!=this.device?this.$layer.data("desktopportrait"+e):t!==i?t:0},s.prototype.get=function(e){return this.$layer.data(e)},s.prototype.getParallaxNodes=function(){var e=[];if(this.isVisible){this.parallax&&e.push(this.$layer[0]);for(var t=0;t<this.children.length;t++)e.push.apply(e,this.children[t].getParallaxNodes())}return e},s.prototype.addWrap=function(t,s){if(this.wraps[t]===i){var r=e(s);switch(t){case"rotation":this.wraps.mask!==i?r.appendTo(this.wraps.mask):this.wraps.parallax!==i?r.appendTo(this.wraps.parallax):r.appendTo(this.$layer),r.append(this.getContents())}this.wraps[t]=r}return r},s.prototype.getContents=function(){return!1},s}),N2Require("FrontendPlacement",[],[],function(e,t,i){function s(e){this.layer=e,this.alwaysResize=!1}return s.prototype.start=function(){},s.prototype.onDeviceChange=function(e){},s.prototype.onResize=function(e,t,i){},s}),N2Require("FrontendSliderSlide",["FrontendComponentSlideAbstract"],[],function(e,t,i){function s(i,s,r){this.isStaticSlide=!1,this.originalIndex=r,this.index=r,this.localIndex=r,this.$element=s.data("slide",this),this.id=this.$element.data("id"),this.backgroundImage=!1,this.backgroundVideo=!1,this.slides=[this],i.parameters.admin?this.minimumSlideDuration=0:(this.minimumSlideDuration=s.data("slide-duration"),e.isNumeric(this.minimumSlideDuration)||(this.minimumSlideDuration=0));var n=s.find(".n2-ss-layers-container");t.FrontendComponentSlideAbstract.prototype.constructor.call(this,i,n)}return s.prototype=Object.create(t.FrontendComponentSlideAbstract.prototype),s.prototype.constructor=s,s.prototype.init=function(){t.FrontendComponentSlideAbstract.prototype.init.call(this);var e=this.slider.findSlideBackground(this);e.length>0&&(this.slider.isAdmin?this.backgroundImage=new t.SmartSliderBackgroundImageAdmin(this,e,this.slider.backgroundImages):this.backgroundImage=new t.SmartSliderBackgroundImage(this,e,this.slider.backgroundImages)),this.$element.data("slideBackground",this.backgroundImage);var i=this.backgroundImage.element.find(".n2-ss-slide-background-video");i.length>0&&(this.backgroundVideo=new t.SmartSliderBackgroundVideo(this,i))},s.prototype.setStarterSlide=function(){t.FrontendComponentSlideAbstract.prototype.setStarterSlide.call(this)},s.prototype.setIndex=function(e){this.localIndex=this.index=e},s.prototype.preLoad=function(){return this.backgroundImage?this.backgroundImage.preLoad():!0},s.prototype.setPrevious=function(e){this.previousSlide=e},s.prototype.setNext=function(e){this.nextSlide=e,e.setPrevious(this)},s.prototype.hasBackgroundVideo=function(){return this.backgroundVideo},s}),N2Require("FrontendComponentSlideAbstract",["FrontendComponent"],[],function(e,t,i){function s(i,s){this.baseSize=16,this.slider=i,this.isCurrentlyEdited()||(this.status=r.NOT_INITIALIZED,t.FrontendComponent.prototype.constructor.call(this,this,this,s,s.find("> .n2-ss-section-outer > .n2-ss-layer, > .n2-ss-layer, > .n2-ss-layer-group")),this.slider.sliderElement.on({SliderDeviceOrientation:e.proxy(function(e,t){this.onDeviceChange(t.device+t.orientation.toLowerCase())},this),SliderResize:e.proxy(function(e,t,i){this.onResize(t,i.responsiveDimensions)},this)}),t.FrontendComponent.prototype.start.call(this))}var r={NOT_INITIALIZED:-1,INITIALIZED:0,READY_TO_START:1,PLAYING:2,ENDED:3};return s.prototype=Object.create(t.FrontendComponent.prototype),s.prototype.constructor=s,s.prototype.isCurrentlyEdited=function(){return this.slider.parameters.admin&&this.$element.hasClass("n2-ss-currently-edited-slide")},s.prototype.trigger=function(){this.$element.trigger.apply(this.$element,[].slice.call(arguments))},s.prototype.triggerHandler=function(){return this.$element.triggerHandler.apply(this.$element,[].slice.call(arguments))},s.prototype.init=function(){!this.isCurrentlyEdited()},s.prototype.refreshBaseSize=function(e){},s.prototype.onResize=function(e,t){for(var i=0;i<this.children.length;i++)this.children[i].onResize(e,t,this.isStaticSlide)},s.prototype.hasLayers=function(){return this.children.length>0},s.prototype.onDeviceChange=function(e){this.device=e;for(var t=0;t<this.children.length;t++)this.children[t].onDeviceChange(e);this.placement.onDeviceChange(e)},s.prototype.setStarterSlide=function(){},s}),N2Require("FrontendSliderStaticSlide",["FrontendComponentSlideAbstract"],[],function(e,t,i){function s(e,i){this.isStaticSlide=!0,this.$element=i.data("slide",this),t.FrontendComponentSlideAbstract.prototype.constructor.call(this,e,i),this.init()}return s.prototype=Object.create(t.FrontendComponentSlideAbstract.prototype),s.prototype.constructor=s,s}),N2Require("FrontendPlacementAbsolute",["FrontendPlacement"],[],function(e,t,i){function s(e){return e.position()}function s(e){return{left:e.prop("offsetLeft"),top:e.prop("offsetTop")}}function r(e){this.linked=[],this.parentLayer=!1,this.$parent=!1,t.FrontendPlacement.prototype.constructor.apply(this,arguments)}return/(MSIE\ [0-7]\.\d+)/.test(navigator.userAgent),r.prototype=Object.create(t.FrontendPlacement.prototype),r.prototype.constructor=r,r.prototype.start=function(){var t=this.layer.get("parentid");t&&(this.$parent=e("#"+t),0==this.$parent.length?this.$parent=!1:(this.parentLayer=this.$parent.data("layer"),this.parentLayer.placement.addLinked(this),this.onResize=function(){}))},r.prototype.addLinked=function(e){this.linked.push(e),this.alwaysResize=!0},r.prototype.onResize=r.prototype.onResizeLinked=function(e,t,i){var r=this.layer.$layer,n=e.slideW,o=n,a=e.slideH,l=a;parseInt(this.layer.get("responsivesize"))||(o=l=1),r.css("width",this.getWidth(o)),r.css("height",this.getHeight(l)),parseInt(this.layer.get("responsiveposition"))||(n=a=1);var d=this.layer.getDevice("left")*n,h=this.layer.getDevice("top")*a,p=this.layer.getDevice("align"),c=this.layer.getDevice("valign"),u={left:"auto",top:"auto",right:"auto",bottom:"auto"};if(this.$parent&&this.$parent.data("layer").isVisible){var m=s(this.$parent),f={left:0,top:0};switch(this.layer.getDevice("parentalign")){case"right":f.left=m.left+this.$parent.width();break;case"center":f.left=m.left+this.$parent.width()/2;break;default:f.left=m.left}switch(p){case"right":u.right=r.parent().width()-f.left-d+"px";break;case"center":u.left=f.left+d-r.width()/2+"px";break;default:u.left=f.left+d+"px"}switch(this.layer.getDevice("parentvalign")){case"bottom":f.top=m.top+this.$parent.height();break;case"middle":f.top=m.top+this.$parent.height()/2;break;default:f.top=m.top}switch(c){case"bottom":u.bottom=r.parent().height()-f.top-h+"px";break;case"middle":u.top=f.top+h-r.height()/2+"px";break;default:u.top=f.top+h+"px"}}else{switch(p){case"right":u.right=-d+"px";break;case"center":u.left=(i?r.parent().width():t.slide.width)/2+d-r.width()/2+"px";break;default:u.left=d+"px"}switch(c){case"bottom":u.bottom=-h+"px";break;case"middle":u.top=(i?r.parent().height():t.slide.height)/2+h-r.height()/2+"px";break;default:u.top=h+"px"}}r.css(u);for(var g=0;g<this.linked.length;g++)this.linked[g].onResizeLinked(e,t,i)},r.prototype.getWidth=function(e){var t=this.layer.getDevice("width");return this.isDimensionPropertyAccepted(t)?t:t*e+"px"},r.prototype.getHeight=function(e){var t=this.layer.getDevice("height");return this.isDimensionPropertyAccepted(t)?t:t*e+"px"},r.prototype.isDimensionPropertyAccepted=function(e){return!(!(e+"").match(/[0-9]+%/)&&"auto"!=e)},r}),N2Require("FrontendPlacementContent",["FrontendPlacement"],[],function(e,t,i){function s(e){t.FrontendPlacement.prototype.constructor.apply(this,arguments)}return s.prototype=Object.create(t.FrontendPlacement.prototype),s.prototype.constructor=s,s}),N2Require("FrontendPlacementDefault",["FrontendPlacement"],[],function(e,t,i){function s(e){t.FrontendPlacement.prototype.constructor.apply(this,arguments)}return s.prototype=Object.create(t.FrontendPlacement.prototype),s.prototype.constructor=s,s}),N2Require("FrontendPlacementNormal",["FrontendPlacement"],[],function(e,t,i){function s(e){t.FrontendPlacement.prototype.constructor.apply(this,arguments)}return s.prototype=Object.create(t.FrontendPlacement.prototype),s.prototype.constructor=s,s.prototype.onDeviceChange=function(){this.updateMargin(),this.updateHeight(),this.updateMaxWidth(),this.updateSelfAlign()},s.prototype.updateMargin=function(){var e=this.layer.getDevice("margin").split("|*|"),t=e.pop(),i=this.layer.baseSize;if("px+"==t&&i>0){t="em";for(var s=0;s<e.length;s++)e[s]=parseInt(e[s])/i}this.layer.$layer.css("margin",e.join(t+" ")+t)},s.prototype.updateHeight=function(){var e=this.layer.getDevice("height"),t="px";if(e>0){var i=this.layer.baseSize;i>0&&(t="em",e=parseInt(e)/i),this.layer.$layer.css("height",e+t)}else this.layer.$layer.css("height","")},s.prototype.updateMaxWidth=function(){var e=parseInt(this.layer.getDevice("maxwidth"));0>=e||isNaN(e)?this.layer.$layer.css("maxWidth","").removeClass("n2-ss-has-maxwidth"):this.layer.$layer.css("maxWidth",e+"px").addClass("n2-ss-has-maxwidth")},s.prototype.updateSelfAlign=function(){this.layer.$layer.attr("data-cssselfalign",this.layer.getDevice("selfalign"))},s}),N2Require("FrontendComponentCol",["FrontendComponent"],[],function(e,t,i){function s(e,i,s){this.$content=s.find(".n2-ss-layer-col:first"),t.FrontendComponent.prototype.constructor.call(this,e,i,s,this.$content.find("> .n2-ss-layer"))}return s.prototype=Object.create(t.FrontendComponent.prototype),s.prototype.constructor=s,s.prototype.onDeviceChange=function(e){t.FrontendComponent.prototype.onDeviceChange.apply(this,arguments),this.updateOrder(),this.updatePadding(),this.updateInnerAlign(),this.updateMaxWidth()},s.prototype.updatePadding=function(){var e=this.getDevice("padding").split("|*|"),t=e.pop(),i=this.baseSize;if("px+"==t&&i>0){t="em";for(var s=0;s<e.length;s++)e[s]=parseInt(e[s])/i}this.$content.css("padding",e.join(t+" ")+t)},s.prototype.updateInnerAlign=function(){this.$layer.attr("data-csstextalign",this.getDevice("inneralign"))},s.prototype.updateMaxWidth=function(){var e=parseInt(this.getDevice("maxwidth"));0>=e||isNaN(e)?this.$layer.css("maxWidth","").removeClass("n2-ss-has-maxwidth"):this.$layer.css("maxWidth",e+"px").addClass("n2-ss-has-maxwidth")},s.prototype.getRealOrder=function(){var e=this.getDevice("order");return 0==e?10:e},s.prototype.updateOrder=function(){var e=this.getDevice("order");0==e?this.$layer.css("order",""):this.$layer.css("order",e)},s.prototype.getContents=function(){return this.$content},s}),N2Require("FrontendComponentContent",["FrontendComponent"],[],function(e,t,i){function s(e,i,s){this.$content=s.find("> .n2-ss-section-main-content"),t.FrontendComponent.prototype.constructor.call(this,e,i,s,this.$content.find("> .n2-ss-layer"))}return s.prototype=Object.create(t.FrontendComponent.prototype),s.prototype.constructor=s,s.prototype.onDeviceChange=function(e){t.FrontendComponent.prototype.onDeviceChange.apply(this,arguments),this.updatePadding(),this.updateInnerAlign(),this.updateMaxWidth(),this.updateSelfAlign()},s.prototype.updatePadding=function(){var e=this.getDevice("padding").split("|*|"),t=e.pop(),i=this.baseSize;if("px+"==t&&i>0){t="em";for(var s=0;s<e.length;s++)e[s]=parseInt(e[s])/i}this.$content.css("padding",e.join(t+" ")+t)},s.prototype.updateInnerAlign=function(){this.$layer.attr("data-csstextalign",this.getDevice("inneralign"))},s.prototype.updateMaxWidth=function(){var e=parseInt(this.getDevice("maxwidth"));0>=e||isNaN(e)?this.$layer.css("maxWidth","").removeClass("n2-ss-has-maxwidth"):this.$layer.css("maxWidth",e+"px").addClass("n2-ss-has-maxwidth")},s.prototype.updateSelfAlign=function(){this.$layer.attr("data-cssselfalign",this.getDevice("selfalign"))},s.prototype.getContents=function(){return this.$content},s}),N2Require("FrontendComponentLayer",["FrontendComponent"],[],function(e,t,i){function s(e,s,r){t.FrontendComponent.prototype.constructor.call(this,e,s,r),this.wraps.mask!==i?this.$item=this.wraps.mask.children():this.wraps.parallax!==i?this.$item=this.wraps.parallax.children():this.$item=r.children()}return s.prototype=Object.create(t.FrontendComponent.prototype),s.prototype.constructor=s,s.prototype.getContents=function(){return this.$item},s}),N2Require("FrontendComponentRow",["FrontendComponent"],[],function(e,t,i){function s(e,i,s){this.$row=s.find(".n2-ss-layer-row:first"),t.FrontendComponent.prototype.constructor.call(this,e,i,s,this.$row.find("> .n2-ss-layer"))}return s.prototype=Object.create(t.FrontendComponent.prototype),s.prototype.constructor=s,s.prototype.onDeviceChange=function(e){t.FrontendComponent.prototype.onDeviceChange.apply(this,arguments),this.updatePadding(),this.updateGutter(),this.updateInnerAlign()},s.prototype.onAfterDeviceChange=function(e){this.updateWrapAfter()},s.prototype.updatePadding=function(){var e=this.getDevice("padding").split("|*|"),t=e.pop(),i=this.baseSize;if("px+"==t&&i>0){t="em";for(var s=0;s<e.length;s++)e[s]=parseInt(e[s])/i}this.$row.css("padding",e.join(t+" ")+t)},s.prototype.updateInnerAlign=function(){this.$layer.attr("data-csstextalign",this.getDevice("inneralign"))},s.prototype.updateGutter=function(){var e=this.getDevice("gutter")+"px";if(this.children.length>0)for(var t=this.children.length-1;t>=0;t--)this.children[t].$layer.css(nextend.rtl.marginRight,e).css("marginTop",e)},s.prototype.getSortedColumns=function(){for(var t=e.extend([],this.children).sort(function(e,t){return e.getRealOrder()-t.getRealOrder()}),i=t.length-1;i>=0;i--)t[i].isVisible||t.splice(i,1);return t},s.prototype.updateWrapAfter=function(){var t=parseInt(this.getDevice("wrapafter")),i=this.getSortedColumns(),s=i.length,r=!1;if(0==s)return!1;if(t>0&&s>t&&(r=!0),this.$row.find("> .n2-ss-row-break").remove(),this.$row.toggleClass("n2-ss-row-wrapped",r),r)for(var n=0;s>n;n++){var o=parseInt(n/t);if(i[n].$layer.attr("data-r",o),(n+1)%t==0||n==s-1){i[n].$layer.addClass("n2-ss-last-in-row");var a=i[n].getDevice("order");0==a&&(a=10),e('<div class="n2-ss-row-break"/>').css("order",a).insertAfter(i[n].$layer),i[n].$layer}else i[n].$layer.removeClass("n2-ss-last-in-row")}else{for(var n=0;s>n;n++)i[n].$layer.removeClass("n2-ss-last-in-row").attr("data-r",0);i[s-1].$layer.addClass("n2-ss-last-in-row")}},s.prototype.getContents=function(){return this.$row},s}),N2Require("SmartSliderResponsive",[],[],function(e,t,i){function s(t,i){this.disableTransitions=!1,this.disableTransitionsTimeout=null,this.lastClientHeight=0,this.lastOrientation=0,this.invalidateResponsiveState=!0,this.parameters=e.extend({desktop:1,tablet:1,mobile:1,onResizeEnabled:!0,type:"auto",downscale:!0,upscale:!1,constrainRatio:!0,minimumHeight:0,maximumHeight:0,minimumHeightRatio:0,maximumHeightRatio:{desktopLandscape:0,desktopPortrait:0,mobileLandscape:0,mobilePortrait:0,tabletLandscape:0,tabletPortrait:0},maximumSlideWidth:0,maximumSlideWidthLandscape:0,maximumSlideWidthRatio:-1,maximumSlideWidthTablet:0,maximumSlideWidthTabletLandscape:0,maximumSlideWidthMobile:0,maximumSlideWidthMobileLandscape:0,maximumSlideWidthConstrainHeight:0,forceFull:0,forceFullOverflowX:"body",forceFullHorizontalSelector:"",verticalOffsetSelectors:"",focusUser:0,focusAutoplay:0,deviceModes:{desktopLandscape:1,desktopPortrait:0,mobileLandscape:0,
4
- mobilePortrait:0,tabletLandscape:0,tabletPortrait:0},normalizedDeviceModes:{unknownUnknown:["unknown","Unknown"],desktopPortrait:["desktop","Portrait"]},verticalRatioModifiers:{unknownUnknown:1,desktopLandscape:1,desktopPortrait:1,mobileLandscape:1,mobilePortrait:1,tabletLandscape:1,tabletPortrait:1},minimumFontSizes:{desktopLandscape:0,desktopPortrait:0,mobileLandscape:0,mobilePortrait:0,tabletLandscape:0,tabletPortrait:0},ratioToDevice:{Portrait:{tablet:0,mobile:0},Landscape:{tablet:0,mobile:0}},sliderWidthToDevice:{desktopLandscape:0,desktopPortrait:0,mobileLandscape:0,mobilePortrait:0,tabletLandscape:0,tabletPortrait:0},basedOn:"combined",desktopPortraitScreenWidth:1200,tabletPortraitScreenWidth:800,mobilePortraitScreenWidth:440,tabletLandscapeScreenWidth:1024,mobileLandscapeScreenWidth:740,orientationMode:"width_and_height",scrollFix:0,overflowHiddenPage:0},i),t.isAdmin&&(this.doResize=NextendThrottle(this.doResize,50)),this.loadDeferred=e.Deferred(),this.slider=t,this.sliderElement=t.sliderElement}var r=null,n=null;return s.OrientationMode={SCREEN:0,ADMIN_LANDSCAPE:1,ADMIN_PORTRAIT:2,SCREEN_WIDTH_ONLY:3},s.DeviceOrientation={UNKNOWN:0,LANDSCAPE:1,PORTRAIT:2},s._DeviceOrientation={0:"Unknown",1:"Landscape",2:"Portrait"},s.DeviceMode={UNKNOWN:0,DESKTOP:1,TABLET:2,MOBILE:3},s._DeviceMode={0:"unknown",1:"desktop",2:"tablet",3:"mobile"},s.prototype.start=function(){nextend.fontsDeferred==i?nextend.loadDeferred.always(e.proxy(function(){this.loadDeferred.resolve()},this)):nextend.fontsDeferred.always(e.proxy(function(){this.loadDeferred.resolve()},this)),this.normalizeTimeout=null,this.delayedResizeAdded=!1,this.deviceMode=s.DeviceMode.UNKNOWN,this.orientationMode=s.OrientationMode.SCREEN,this.orientation=s.DeviceOrientation.UNKNOWN,this.lastRatios={ratio:-1},this.lastRawRatios={ratio:-1},this.normalizedMode="unknownUnknown",this.widgetMargins={Top:[],Right:[],Bottom:[],Left:[]},this.staticSizes={paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0},this.enabledWidgetMargins=[],this.alignElement=this.slider.sliderElement.closest(".n2-ss-align");var t=this.ready=e.Deferred();switch(this.sliderElement.triggerHandler("SliderResponsiveStarted"),this.sliderElement.one("SliderResize",function(){t.resolve()}),this.containerElementPadding=this.sliderElement.parent(),this.containerElement=this.containerElementPadding.parent(),!this.slider.isAdmin&&this.parameters.overflowHiddenPage&&e("html, body").css("overflow","hidden"),"width"==this.parameters.orientationMode&&(this.orientationMode=s.OrientationMode.SCREEN_WIDTH_ONLY),nextend.smallestZoom=Math.min(Math.max(this.parameters.sliderWidthToDevice.mobilePortrait,120),320),this.parameters.basedOn){case"screen":break;default:if(null==r){var o=new MobileDetect(window.navigator.userAgent,801);r=!!o.tablet(),n=!!o.phone()}}if(this.verticalOffsetSelectors=e(this.parameters.verticalOffsetSelectors),this.storeDefaults(),this.parameters.minimumHeight>0&&(this.parameters.minimumHeightRatio=this.parameters.minimumHeight/this.responsiveDimensions.startHeight),this.parameters.maximumHeight>0&&this.parameters.maximumHeight>=this.parameters.minimumHeight&&(this.parameters.maximumHeightRatio={desktopPortrait:this.parameters.maximumHeight/this.responsiveDimensions.startHeight},this.parameters.maximumHeightRatio.desktopLandscape=this.parameters.maximumHeightRatio.desktopPortrait,this.parameters.maximumHeightRatio.tabletPortrait=this.parameters.maximumHeightRatio.desktopPortrait,this.parameters.maximumHeightRatio.tabletLandscape=this.parameters.maximumHeightRatio.desktopPortrait,this.parameters.maximumHeightRatio.mobilePortrait=this.parameters.maximumHeightRatio.desktopPortrait,this.parameters.maximumHeightRatio.mobileLandscape=this.parameters.maximumHeightRatio.desktopPortrait),this.parameters.maximumSlideWidth>0&&(this.parameters.maximumSlideWidthRatio={desktopPortrait:this.parameters.maximumSlideWidth/this.responsiveDimensions.startSlideWidth,desktopLandscape:this.parameters.maximumSlideWidthLandscape/this.responsiveDimensions.startSlideWidth,tabletPortrait:this.parameters.maximumSlideWidthTablet/this.responsiveDimensions.startSlideWidth,tabletLandscape:this.parameters.maximumSlideWidthTabletLandscape/this.responsiveDimensions.startSlideWidth,mobilePortrait:this.parameters.maximumSlideWidthMobile/this.responsiveDimensions.startSlideWidth,mobileLandscape:this.parameters.maximumSlideWidthMobileLandscape/this.responsiveDimensions.startSlideWidth},this.parameters.maximumSlideWidthConstrainHeight)){this.parameters.maximumHeightRatio=e.extend({},this.parameters.maximumSlideWidthRatio);for(var a in this.parameters.maximumHeightRatio)this.parameters.maximumHeightRatio[a]*=this.parameters.verticalRatioModifiers[a]}if("undefined"!=typeof nextend&&"undefined"!=typeof nextend.ssBeforeResponsive&&nextend.ssBeforeResponsive.call(this),this.onResize(),(this.parameters.onResizeEnabled||"adaptive"==this.parameters.type)&&(e(window).on({resize:e.proxy(this.onResize,this),orientationchange:e.proxy(this.onResize,this)}),this.sliderElement.on("SliderInternalResize",e.proxy(this.onResize,this)),this.parameters.scrollFix))try{var l=this;e('<iframe sandbox="allow-same-origin allow-scripts" style="height: 0; background-color: transparent; margin: 0; padding: 0; overflow: hidden; border-width: 0; position: absolute; width: 100%;"/>').on("load",function(t){e(t.target.contentWindow?t.target.contentWindow:t.target.contentDocument.defaultView).on("resize",function(){l.sliderElement.triggerHandler("SliderInternalResize")})}).insertBefore(this.containerElement)}catch(d){}},s.prototype.getOuterWidth=function(){return this.responsiveDimensions.startSliderWidth+this.responsiveDimensions.startSliderMarginLeft+this.responsiveDimensions.startSliderMarginRight},s.prototype.storeDefaults=function(){this.responsiveDimensions={startWidth:this.sliderElement.outerWidth(!0),startHeight:this.sliderElement.outerHeight(!0)},this.horizontalElements=[],this.verticalElements=[],this.init(),this.margins={top:this.responsiveDimensions.startSliderMarginTop,right:this.responsiveDimensions.startSliderMarginRight,bottom:this.responsiveDimensions.startSliderMarginBottom,left:this.responsiveDimensions.startSliderMarginLeft}},s.prototype.addHorizontalElement=function(e,i,s,r){s=s||"ratio";var n=new t.SmartSliderResponsiveElement(this,s,e,i,r);return this.horizontalElements.push(n),n},s.prototype.addVerticalElement=function(e,i,s,r){s=s||"ratio";var n=new t.SmartSliderResponsiveElement(this,s,e,i,r);return this.verticalElements.push(n),n},s.prototype.resizeHorizontalElements=function(e){for(var t=0;t<this.horizontalElements.length;t++){var i=this.horizontalElements[t];"undefined"==typeof e[i.ratioName]&&console.log("error with "+i.ratioName),i.resize(this.responsiveDimensions,e[i.ratioName],!1,0)}},s.prototype.updateVerticalRatios=function(e){return e},s.prototype._updateVerticalRatios=function(t){var i=this.responsiveDimensions.startSlideHeight*t.slideH,s=!1;return this.sliderElement.find(".n2-ss-section-main-content").addClass("n2-ss-section-main-content-calc").each(function(t,r){var n=e(r).outerHeight();n>i&&(s=!0,i=n)}).removeClass("n2-ss-section-main-content-calc"),s&&(t.slideH=i/this.responsiveDimensions.startSlideHeight,t.h=Math.max(t.h,t.slideH)),t},s.prototype.resizeVerticalElements=function(e,t,i){for(var s=0;s<this.verticalElements.length;s++){var r=this.verticalElements[s];"undefined"==typeof e[r.ratioName]&&console.log("error with "+r.ratioName),r.resize(this.responsiveDimensions,e[r.ratioName],t,i)}},s.prototype.getDeviceMode=function(){return s._DeviceMode[this.deviceMode]},s.prototype.getDeviceModeOrientation=function(){return s._DeviceMode[this.deviceMode]+s._DeviceOrientation[this.orientation]},s.prototype.onResize=function(t){this.slider.mainAnimation&&"ended"!=this.slider.mainAnimation.getState()?this.delayedResizeAdded||(this.delayedResizeAdded=!0,this.sliderElement.on("mainAnimationComplete.responsive",e.proxy(this._doDelayedResize,this))):this.doResize(t)},s.prototype._doDelayedResize=function(){this.doResize(),this.delayedResizeAdded=!1},s.prototype.doNormalizedResize=function(){this.normalizeTimeout&&clearTimeout(this.normalizeTimeout),this.normalizeTimeout=setTimeout(e.proxy(this.doResize,this),10)},s.prototype._getOrientation=function(){return this.orientationMode==s.OrientationMode.SCREEN?window.innerHeight<=window.innerWidth?s.DeviceOrientation.LANDSCAPE:s.DeviceOrientation.PORTRAIT:this.orientationMode==s.OrientationMode.ADMIN_PORTRAIT?s.DeviceOrientation.PORTRAIT:this.orientationMode==s.OrientationMode.ADMIN_LANDSCAPE?s.DeviceOrientation.LANDSCAPE:void 0},s.prototype._getDevice=function(){switch(this.parameters.basedOn){case"combined":return this._getDeviceDevice(this._getDeviceScreenWidth());case"device":return this._getDeviceDevice(s.DeviceMode.DESKTOP);case"screen":return this._getDeviceScreenWidth()}},s.prototype._getDeviceScreenWidth=function(){var e=window.innerWidth;if(this.orientation==s.DeviceOrientation.PORTRAIT){if(e<this.parameters.mobilePortraitScreenWidth)return s.DeviceMode.MOBILE;if(e<this.parameters.tabletPortraitScreenWidth)return s.DeviceMode.TABLET}else{if(e<this.parameters.mobileLandscapeScreenWidth)return s.DeviceMode.MOBILE;if(e<this.parameters.tabletLandscapeScreenWidth)return s.DeviceMode.TABLET}return s.DeviceMode.DESKTOP},s.prototype._getDeviceAndOrientationByScreenWidth=function(){var e=window.innerWidth;return e<this.parameters.mobilePortraitScreenWidth?[s.DeviceMode.MOBILE,s.DeviceOrientation.PORTRAIT]:e<this.parameters.mobileLandscapeScreenWidth?[s.DeviceMode.MOBILE,s.DeviceOrientation.LANDSCAPE]:e<this.parameters.tabletPortraitScreenWidth?[s.DeviceMode.TABLET,s.DeviceOrientation.PORTRAIT]:e<this.parameters.tabletLandscapeScreenWidth?[s.DeviceMode.TABLET,s.DeviceOrientation.LANDSCAPE]:e<this.parameters.desktopPortraitScreenWidth?[s.DeviceMode.DESKTOP,s.DeviceOrientation.PORTRAIT]:[s.DeviceMode.DESKTOP,s.DeviceOrientation.LANDSCAPE]},s.prototype._getDeviceDevice=function(e){return n===!0?s.DeviceMode.MOBILE:r&&e!=s.DeviceMode.MOBILE?s.DeviceMode.TABLET:e},s.prototype._getDeviceZoom=function(e){var t;this.orientationMode==s.OrientationMode.ADMIN_PORTRAIT?t=s.DeviceOrientation.PORTRAIT:this.orientationMode==s.OrientationMode.ADMIN_LANDSCAPE&&(t=s.DeviceOrientation.LANDSCAPE);var i=s.DeviceMode.DESKTOP;return e-this.parameters.ratioToDevice[s._DeviceOrientation[t]].mobile<.001?i=s.DeviceMode.MOBILE:e-this.parameters.ratioToDevice[s._DeviceOrientation[t]].tablet<.001&&(i=s.DeviceMode.TABLET),i},s.prototype.reTriggerSliderDeviceOrientation=function(){var e=this._normalizeMode(s._DeviceMode[this.deviceMode],s._DeviceOrientation[this.orientation]);this.sliderElement.trigger("SliderDeviceOrientation",{lastDevice:e[0],lastOrientation:e[1],device:e[0],orientation:e[1]})},s.prototype.doResize=function(t,i,r,n,o){if(this.disableTransitions||(this.disableTransitions=!0,this.sliderElement.addClass("n2notransition"),this.disableTransitionsTimeout&&clearTimeout(this.disableTransitionsTimeout),this.disableTransitionsTimeout=setTimeout(e.proxy(function(){this.sliderElement.removeClass("n2notransition"),this.disableTransitions=!1},this),500)),this.refreshMargin(),"center"==this.slider.parameters.align&&("fullpage"==this.parameters.type?this.alignElement.css("maxWidth","none"):this.alignElement.css("maxWidth",this.responsiveDimensions.startWidth)),!this.slider.isAdmin&&this.parameters.forceFull){"none"!=this.parameters.forceFullOverflowX&&e(this.parameters.forceFullOverflowX).css("overflow-x","hidden");var a=0,l=0;if(""!=this.parameters.forceFullHorizontalSelector){var d=this.sliderElement.closest(this.parameters.forceFullHorizontalSelector);d&&d.length>0&&(a=d.width(),l=d.offset().left)}var h,p=a>0?a:document.body.clientWidth||document.documentElement.clientWidth,c=this.containerElement.parent(),u=c[0].getBoundingClientRect();h=nextend.rtl.isRtl?p-(u.left+c.outerWidth()):u.left,this.containerElement.css(nextend.rtl.marginLeft,-h-parseInt(c.css("paddingLeft"))-parseInt(c.css("borderLeftWidth"))+l).width(p)}var m=this.containerElementPadding.width()/this.getOuterWidth(),f=!1,g=this.orientation,y=this.deviceMode,v=null,S=null;if(this.orientationMode==s.OrientationMode.SCREEN_WIDTH_ONLY){var b=this._getDeviceAndOrientationByScreenWidth();S=b[0],v=b[1]}else v=this._getOrientation();if(this.orientation!=v&&(this.orientation=v,f=!0,this.sliderElement.trigger("SliderOrientation",{lastOrientation:s._DeviceOrientation[g],orientation:s._DeviceOrientation[v]})),i||(this.orientationMode!=s.OrientationMode.SCREEN_WIDTH_ONLY&&(S=this._getDevice(m)),this.deviceMode!=S&&(this.deviceMode=S,this.sliderElement.removeClass("n2-ss-"+s._DeviceMode[y]).addClass("n2-ss-"+s._DeviceMode[S]),this.sliderElement.trigger("SliderDevice",{lastDevice:s._DeviceMode[y],device:s._DeviceMode[S]}),f=!0)),!this.slider.isAdmin&&"fullpage"==this.parameters.type){var x=0;if(window.matchMedia&&/Android|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent||navigator.vendor||window.opera)){var w,E=!1;t&&"orientationchange"==t.type&&(E=!0),w=n2const.isIOS?document.documentElement.clientHeight:window.innerHeight,window.matchMedia("(orientation: landscape)").matches?(x=Math.min(screen.width,w),90!=this.lastOrientation&&(E=!0,this.lastOrientation=90)):(x=Math.min(screen.height,w),0!=this.lastOrientation&&(E=!0,this.lastOrientation=0)),!E&&Math.abs(x-this.lastClientHeight)<100?x=this.lastClientHeight:this.lastClientHeight=x}else x=window.n2ClientHeight||document.documentElement.clientHeight||document.body.clientHeight;this.parameters.maximumHeightRatio[this.getDeviceModeOrientation()]=this.parameters.minimumHeightRatio=(x-this.getVerticalOffsetHeight())/this.responsiveDimensions.startHeight}if(f){var A=this._normalizeMode(s._DeviceMode[y],s._DeviceOrientation[g]),D=this._normalizeMode(s._DeviceMode[this.deviceMode],s._DeviceOrientation[this.orientation]);A[0]==D[0]&&A[1]==D[1]||(this.normalizedMode=D[0]+D[1],this.sliderElement.trigger("SliderDeviceOrientation",{lastDevice:A[0],lastOrientation:A[1],device:D[0],orientation:D[1]}))}var k=this.parameters.sliderWidthToDevice[this.normalizedMode]/this.parameters.sliderWidthToDevice.desktopPortrait;!this.parameters.downscale&&k>m?m=k:!this.parameters.upscale&&m>k&&(m=k),this._doResize(m,r,n,o),"center"==this.slider.parameters.align&&this.alignElement.css("maxWidth",this.responsiveDimensions.slider.width)},s.prototype._normalizeMode=function(e,t){return this.parameters.normalizedDeviceModes[e+t]},s.prototype.getNormalizedModeString=function(){var e=this._normalizeMode(s._DeviceMode[this.deviceMode],s._DeviceOrientation[this.orientation]);return e.join("")},s.prototype.getModeString=function(){return s._DeviceMode[this.deviceMode]+s._DeviceOrientation[this.orientation]},s.prototype.enabled=function(e,t){return this.parameters.deviceModes[e+t]},s.prototype._doResize=function(t,i,s,r){var n={ratio:t,w:t,h:t,slideW:t,slideH:t,fontRatio:1};this._buildRatios(n,this.slider.parameters.dynamicHeight,s),n.fontRatio=n.slideW;var o=!1;for(var a in n)if(n[a]!=this.lastRawRatios[a]){o=!0;break}(this.invalidateResponsiveState||o)&&(this.lastRawRatios=e.extend({},n),this.resizeHorizontalElements(n),this.finishResize(n,i,r))},s.prototype.finishResize=function(t,i,s){this.loadDeferred.done(e.proxy(function(){var r=e.proxy(function(){this.finishResize=this._finishResize,this.finishResize(t,i,s)},this);/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor)||/CriOS/.exec(window.navigator.userAgent)?setTimeout(r,200):r()},this)),this.invalidateResponsiveState=!1},s.prototype._finishResize=function(e,t,i){this.invalidateResponsiveState=!1,e=this.updateVerticalRatios(e),this.resizeVerticalElements(e,t,i),this.lastRatios=e,t?(this.sliderElement.trigger("SliderAnimatedResize",[e,t,i]),t.eventCallback("onComplete",function(){this.triggerResize(e,t)},[],this)):this.triggerResize(e,!1)},s.prototype.doVerticalResize=function(){var t=this.updateVerticalRatios(e.extend({},this.lastRawRatios)),i=!1;for(var s in t)if(t[s]!=this.lastRatios[s]){i=!0;break}i&&this.finishVerticalResize(t)},s.prototype.finishVerticalResize=function(t){this.loadDeferred.done(e.proxy(function(){this.finishVerticalResize=this._finishVerticalResize,this.finishVerticalResize(t)},this))},s.prototype._finishVerticalResize=function(e){this.resizeVerticalElements(e,!1,0),this.lastRatios=e,this.triggerResize(e,!1)},s.prototype.triggerResize=function(e,t){this.sliderElement.trigger("SliderResize",[e,this,t])},s.prototype._buildRatios=function(e,t,i){var s=this.getDeviceModeOrientation();this.parameters.maximumSlideWidthRatio[s]>0&&e.slideW>this.parameters.maximumSlideWidthRatio[s]&&(e.slideW=this.parameters.maximumSlideWidthRatio[s]),e.slideW=e.slideH=Math.min(e.slideW,e.slideH);var r=this.parameters.verticalRatioModifiers[s];if(e.slideH*=r,"fullpage"==this.parameters.type)e.h*=r,this.parameters.minimumHeightRatio>0&&(e.h=Math.max(e.h,this.parameters.minimumHeightRatio)),this.parameters.maximumHeightRatio[s]>0&&(e.h=Math.min(e.h,this.parameters.maximumHeightRatio[s])),this.slider.isAdmin?this.parameters.constrainRatio?(e.slideH=Math.min(e.slideH,e.h),e.slideH=e.slideW=Math.min(e.slideW,e.slideH)):(e.w=e.slideW,e.h=e.slideH):this.parameters.constrainRatio?(e.slideH=Math.min(e.slideH,e.h),e.slideH=e.slideW=Math.min(e.slideW,e.slideH)):(e.slideW=e.w,this.parameters.maximumSlideWidthRatio[s]>0&&e.slideW>this.parameters.maximumSlideWidthRatio[s]&&(e.slideW=this.parameters.maximumSlideWidthRatio[s]),e.slideH=e.h);else if(e.h*=r,this.parameters.minimumHeightRatio>0&&(e.h=Math.max(e.h,this.parameters.minimumHeightRatio)),this.parameters.maximumHeightRatio[s]>0&&(e.h=Math.min(e.h,this.parameters.maximumHeightRatio[s])),e.slideH=Math.min(e.slideH,e.h),e.slideW=e.slideH/r,"showcase"==this.slider.type&&(e.slideW=Math.min(e.slideW,e.w),e.slideH=Math.min(e.slideW,e.slideH)),t){var n=this.slider.currentSlide.backgroundImage;if("undefined"!=typeof i&&(n=i.backgroundImage),n.width>0&&n.height>0){var o=this.responsiveDimensions.startSlideWidth/n.width*(n.height/this.responsiveDimensions.startSlideHeight);-1!=o&&(e.slideH*=o,e.h*=o)}}this.sliderElement.triggerHandler("responsiveBuildRatios",[e])},s.prototype.setOrientation=function(e){"portrait"==e?this.orientationMode=s.OrientationMode.ADMIN_PORTRAIT:"landscape"==e&&(this.orientationMode=s.OrientationMode.ADMIN_LANDSCAPE)},s.prototype.setMode=function(e,t){var i;if(this.orientationMode==s.OrientationMode.ADMIN_PORTRAIT?i=s.DeviceOrientation.PORTRAIT:this.orientationMode==s.OrientationMode.ADMIN_LANDSCAPE&&(i=s.DeviceOrientation.LANDSCAPE),this==t){var r=this.parameters.sliderWidthToDevice[e+s._DeviceOrientation[i]];if("mobile"==e)switch(s._DeviceOrientation[i]){case"Portrait":r=Math.max(nextend.smallestZoom,320)}this.setSize(r)}},s.prototype.setSize=function(e){this.containerElement.width(e),this.doResize()},s.prototype.getVerticalOffsetHeight=function(){for(var e=0,t=0;t<this.verticalOffsetSelectors.length;t++)e+=this.verticalOffsetSelectors.eq(t).outerHeight();return e},s.prototype.addMargin=function(e,t){this.widgetMargins[e].push(t),t.isVisible()&&(this._addMarginSize(e,t.getSize()),this.enabledWidgetMargins.push(t)),this.doNormalizedResize()},s.prototype.addStaticMargin=function(e,t){"Bottom"!=e&&"Top"!=e&&(this.widgetStaticMargins||(this.widgetStaticMargins={Top:[],Right:[],Bottom:[],Left:[]}),this.widgetStaticMargins[e].push(t),this.doNormalizedResize())},s.prototype.refreshMargin=function(){for(var t in this.widgetMargins)for(var i=this.widgetMargins[t],s=i.length-1;s>=0;s--){var r=i[s];if(r.isVisible())-1==e.inArray(r,this.enabledWidgetMargins)&&(this._addMarginSize(t,r.getSize()),this.enabledWidgetMargins.push(r));else{var n=e.inArray(r,this.enabledWidgetMargins);-1!=n&&(this._addMarginSize(t,-r.getSize()),this.enabledWidgetMargins.splice(n,1))}}this.refreshStaticSizes()},s.prototype.refreshStaticSizes=function(){if(this.widgetStaticMargins){var e={paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0};for(var t in this.widgetStaticMargins)for(var i=this.widgetStaticMargins[t],s=i.length-1;s>=0;s--){var r=i[s];r.isVisible()&&(e["padding"+t]+=r.getSize())}for(var n in e)this.containerElementPadding.css(e);this.staticSizes=e}},s.prototype._addMarginSize=function(e,t){var i=null;switch(e){case"Top":case"Bottom":i=this._sliderVertical;break;default:i=this._sliderHorizontal}i.data["margin"+e]+=t,this.responsiveDimensions["startSliderMargin"+e]+=t},s}),N2Require("SmartSliderResponsiveElement",[],[],function(e,t,i){function s(e){return e.charAt(0).toUpperCase()+e.slice(1)}function r(t,i,s,r,n){this._lastRatio=1,this.responsive=t,this.ratioName=i,this.element=s,this._readyDeferred=e.Deferred(),"undefined"!=typeof n?this.name=n:this.name=null,this.data={},this.helper={parent:null,parentProps:null,fontSize:!1,centered:!1},this._lateInit(r)}return r.prototype._lateInit=function(t){this._cssProperties=t,this.reloadDefault(),-1!=e.inArray("fontSize",t)&&(this.data.fontSize=this.element.data("fontsize"),this.helper.fontSize={fontSize:this.element.data("fontsize"),desktopPortrait:this.element.data("minfontsizedesktopportrait"),desktopLandscape:this.element.data("minfontsizedesktoplandscape"),tabletPortrait:this.element.data("minfontsizetabletportrait"),tabletLandscape:this.element.data("minfontsizetabletlandscape"),mobilePortrait:this.element.data("minfontsizemobileportrait"),mobileLandscape:this.element.data("minfontsizemobilelandscape")},this.responsive.sliderElement.on("SliderDeviceOrientation",e.proxy(this.onModeChange,this))),this.resize=this._resize,this._readyDeferred.resolve()},r.prototype.reloadDefault=function(){for(var e=0;e<this._cssProperties.length;e++){var t=this._cssProperties[e];this.data[t]=parseInt(this.element.css(t))}if(this.name){var i=this.responsive.responsiveDimensions;for(var r in this.data)i["start"+s(this.name)+s(r)]=this.data[r]}},r.prototype.ready=function(e){this._readyDeferred.done(e)},r.prototype.resize=function(t,i){this.ready(e.proxy(this.resize,this,t,i)),this._lastRatio=i},r.prototype._resize=function(e,t,i,s){this.name&&"undefined"==typeof e[this.name]&&(e[this.name]={});var r={};for(var n in this.data){var o=this.data[n]*t;"function"==typeof this[n+"Prepare"]&&(o=this[n+"Prepare"](o)),this.name&&(e[this.name][n]=o),r[n]=o}if(i)i.to(this.element,s,r,0);else if(this.element.css(r),this.helper.centered){var a=this.getVerticalMargin(parseInt((this.helper.parent.height()-this.element.height())/2)),l=this.getHorizontalMargin(parseInt((this.helper.parent.width()-this.element.width())/2));this.element.css({marginLeft:l,marginRight:l,marginTop:a,marginBottom:a})}this._lastRatio=t},r.prototype.getHorizontalMargin=function(e){return e},r.prototype.getVerticalMargin=function(e){return e},r.prototype._refreshResize=function(){this.responsive.ready.done(e.proxy(function(){this._resize(this.responsive.responsiveDimensions,this.responsive.lastRatios[this.ratioName])},this))},r.prototype.widthPrepare=function(e){return Math.round(e)},r.prototype.heightPrepare=function(e){return Math.round(e)},r.prototype.marginLeftPrepare=function(e){return parseInt(e)},r.prototype.marginRightPrepare=function(e){return parseInt(e)},r.prototype.lineHeightPrepare=function(e){return e+"px"},r.prototype.borderLeftWidthPrepare=function(e){return parseInt(e)},r.prototype.borderRightWidthPrepare=function(e){return parseInt(e)},r.prototype.borderTopWidthPrepare=function(e){return parseInt(e)},r.prototype.borderBottomWidthPrepare=function(e){return parseInt(e)},r.prototype.fontSizePrepare=function(e){var t=this.responsive.getNormalizedModeString();return e<this.helper.fontSize[t]?this.helper.fontSize[t]:e},r.prototype.setCentered=function(){this.helper.parent=this.element.parent(),this.helper.centered=!0},r.prototype.unsetCentered=function(){this.helper.centered=!1},r.prototype.onModeChange=function(){this.setFontSizeByMode()},r.prototype.setFontSizeByMode=function(){this.element.css("fontSize",this.fontSizePrepare(this.data.fontSize*this._lastRatio))},r}),N2Require("FrontendItemVimeo",[],[],function(e,t,i){function s(t,i,s,r,n,o){this.state={scroll:!1,slide:!0,play:!1,continuePlay:!1},this.readyDeferred=e.Deferred(),this.slider=t,this.playerId=i,this.start=o,this.parameters=e.extend({vimeourl:"//vimeo.com/144598279",center:0,autoplay:"0",reset:"0",title:"1",byline:"1",portrait:"0",loop:"0",color:"00adef",volume:"-1"},r),navigator.userAgent.toLowerCase().indexOf("android")>-1&&(this.parameters.autoplay=0),1==this.parameters.autoplay||!n||n2const.isMobile?this.ready(e.proxy(this.initVimeoPlayer,this)):e("#"+this.playerId).on("click.vimeo n2click.vimeo",e.proxy(function(t){e(t.currentTarget).off(".vimeo"),t.preventDefault(),t.stopPropagation(),this.ready(e.proxy(function(){this.readyDeferred.done(e.proxy(function(){this.play()},this)),this.initVimeoPlayer()},this))},this))}return s.vimeoDeferred=null,s.prototype.ready=function(t){null===s.vimeoDeferred&&(s.vimeoDeferred=e.getScript("https://player.vimeo.com/api/player.js")),s.vimeoDeferred.done(t)},s.prototype.initVimeoPlayer=function(){var t=n2('<iframe id="'+this.playerId+'_video" src="https://player.vimeo.com/video/'+this.parameters.vimeocode+"?autoplay=0&_video&title="+this.parameters.title+"&byline="+this.parameters.byline+"&background="+this.parameters.background+"&portrait="+this.parameters.portrait+"&color="+this.parameters.color+"&loop="+this.parameters.loop+("-1"==this.parameters.quality?"":"&quality="+this.parameters.quality)+'" style="position: absolute; top:0; left: 0; width: 100%; height: 100%;" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>');e("#"+this.playerId).append(t),this.isStatic=t.closest(".n2-ss-static-slide").length,this.playerElement=t,this.player=new Vimeo.Player(t[0]),this.player.ready().then(e.proxy(this.onReady,this))},s.prototype.onReady=function(){var t=parseFloat(this.parameters.volume);t>=0&&this.setVolume(t),this.slide=this.slider.findSlideByElement(this.playerElement),1==this.parameters.center&&(this.onResize(),this.slider.sliderElement.on("SliderResize",e.proxy(this.onResize,this)));var i=this.playerElement.parent().parent();this.player.on("play",e.proxy(function(){this.isStatic||this.slider.sliderElement.trigger("mediaStarted",this.playerId),i.triggerHandler("n2play")},this)),this.player.on("pause",e.proxy(function(){i.triggerHandler("n2pause"),this.state.continuePlay?(this.state.continuePlay=!1,this.state.play=!0):this.state.play=!1},this)),this.player.on("ended",e.proxy(function(){this.isStatic||this.slider.sliderElement.trigger("mediaEnded",this.playerId),i.triggerHandler("n2stop"),this.state.play=!1},this)),this.isStatic||(this.slider.sliderElement.on("mainAnimationStart",e.proxy(function(t,i,s,r,n){-1==e.inArray(this.slide,this.slider.getVisibleSlides(this.slider.slides[r]))?(parseInt(this.parameters.reset)&&this.reset(),this.setState("slide",!1)):this.setState("slide",!0)},this)),nextend.scrollTracker.add(this.playerElement,e.proxy(function(){this.setState("scroll",!0)},this),e.proxy(function(){this.state.continuePlay=!0,this.setState("scroll",!1)},this))),1==this.parameters.autoplay&&this.slider.visible(e.proxy(this.initAutoplay,this)),this.playerElement.parent().css("background",""),this.readyDeferred.resolve()},s.prototype.onResize=function(){var e=52,t=this.playerElement.parent(),i=t.width()+e,s=t.height()+e,r=16/9,n={width:i,height:s,marginTop:0};n[nextend.rtl.marginLeft]=0,i/s>r?(n.height=i*r,n.marginTop=(s-n.height)/2):(n.width=s*r,n[nextend.rtl.marginLeft]=(i-n.width)/2),this.playerElement.css(n)},s.prototype.initAutoplay=function(){this.isStatic?(this.state.play=!0,this.setState("slide",!0)):(this.slider.sliderElement.on("mainAnimationComplete",e.proxy(function(t,i,s,r,n){e.inArray(this.slide,this.slider.getVisibleSlides(this.slider.slides[r]))>=0?(this.state.play=!0,this.setState("slide",!0)):this.setState("slide",!1)},this)),e.inArray(this.slide,this.slider.getVisibleSlides())>=0&&(this.state.play=!0,this.setState("slide",!0)))},s.prototype.setState=function(e,t){this.state[e]=t,this.state.play&&this.state.slide&&this.state.scroll?this.play():this.pause()},s.prototype.play=function(){this.slider.sliderElement.trigger("mediaStarted",this.playerId),0!=this.start&&this.player.setCurrentTime(this.start),this.player.play(),this.player.getCurrentTime().then(e.proxy(function(e){e<this.start&&0!=this.start&&this.player.setCurrentTime(this.start),this.player.play()},this))["catch"](e.proxy(function(e){this.player.play()},this))},s.prototype.pause=function(){this.player.pause()},s.prototype.reset=function(){this.player.setCurrentTime(this.start)},s.prototype.setVolume=function(e){this.player.setVolume(e)},s}),N2Require("FrontendItemYouTube",[],[],function(e,t,i){function s(t,i,s,r){this.state={scroll:!1,slide:!0,play:!1,continuePlay:!1},this.readyDeferred=e.Deferred(),this.slider=t,this.playerId=i,this.parameters=e.extend({youtubeurl:"//www.youtube.com/watch?v=MKmIwHAFjSU",youtubecode:"MKmIwHAFjSU",center:0,autoplay:"1",theme:"dark",related:"1",vq:"default",volume:"-1",loop:0,showinfo:1,modestbranding:1,reset:0,query:[]},s),(navigator.userAgent.toLowerCase().indexOf("android")>-1||n2const.isIOS)&&(this.parameters.autoplay=0),1==this.parameters.autoplay||!r||n2const.isMobile?this.ready(e.proxy(this.initYoutubePlayer,this)):e("#"+this.playerId).on("click.youtube n2click.youtube",e.proxy(function(t){e(t.currentTarget).off(".youtube"),t.preventDefault(),t.stopPropagation(),this.ready(e.proxy(function(){this.readyDeferred.done(e.proxy(function(){this.play()},this)),this.initYoutubePlayer()},this))},this))}return s.YTDeferred=null,s.prototype.ready=function(t){if(null===s.YTDeferred)if(s.YTDeferred=e.Deferred(),"undefined"==typeof YT){var i=function(){};"function"==typeof window.onYouTubeIframeAPIReady&&(i=window.onYouTubeIframeAPIReady),window.onYouTubeIframeAPIReady=function(){s.YTDeferred.resolve(),i()},e.getScript("https://www.youtube.com/iframe_api")}else if(YT.loaded)s.YTDeferred.resolve();else var r=setInterval(function(){YT.loaded&&(s.YTDeferred.resolve(),clearInterval(r))},200);s.YTDeferred.done(t)},s.prototype.initYoutubePlayer=function(){var t=e("#"+this.playerId),i=t.closest(".n2-ss-layer");this.isStatic=t.closest(".n2-ss-static-slide").length;var s={enablejsapi:1,origin:window.location.protocol+"//"+window.location.host,theme:this.parameters.theme,wmode:"opaque",rel:this.parameters.related,vq:this.parameters.vq,start:this.parameters.start,showinfo:this.parameters.showinfo,modestbranding:this.parameters.modestbranding};1==this.parameters.center&&(s.controls=0,s.showinfo=0),1!=this.parameters.controls&&(s.autohide=1,s.controls=0,s.showinfo=0),+(navigator.platform.toUpperCase().indexOf("MAC")>=0&&navigator.userAgent.search("Firefox")>-1)&&(s.html5=1);for(var r in this.parameters.query)this.parameters.query.hasOwnProperty(r)&&(s[r]=this.parameters.query[r]);this.player=new YT.Player(this.playerId,{videoId:this.parameters.youtubecode,wmode:"opaque",playerVars:s,events:{onReady:e.proxy(this.onReady,this),onStateChange:e.proxy(function(e){switch(e.data){case YT.PlayerState.PLAYING:this.isStatic||this.slider.sliderElement.trigger("mediaStarted",this.playerId),i.triggerHandler("n2play");break;case YT.PlayerState.PAUSED:i.triggerHandler("n2pause"),this.state.continuePlay?(this.state.continuePlay=!1,this.state.play=!0):this.state.play=!1;break;case YT.PlayerState.ENDED:1==this.parameters.loop?(this.player.seekTo(0),this.player.playVideo()):(this.isStatic||this.slider.sliderElement.trigger("mediaEnded",this.playerId),i.triggerHandler("n2stop"),this.state.play=!1)}},this)}}),this.playerElement=e("#"+this.playerId),this.slide=this.slider.findSlideByElement(this.playerElement),1==this.parameters.center&&(this.playerElement.parent().css("overflow","hidden"),this.onResize(),this.slider.sliderElement.on("SliderResize",e.proxy(this.onResize,this)))},s.prototype.onReady=function(){var t=parseFloat(this.parameters.volume);t>=0&&this.setVolume(t),1==this.parameters.autoplay&&this.slider.visible(e.proxy(this.initAutoplay,this)),
5
- this.isStatic||(this.slider.sliderElement.on("mainAnimationStart",e.proxy(function(t,i,s,r){-1==e.inArray(this.slide,this.slider.getVisibleSlides(this.slider.slides[r]))?this.setState("slide",!1):this.setState("slide",!0)},this)),parseInt(this.parameters.reset)&&this.slider.sliderElement.on("mainAnimationComplete",e.proxy(function(t,i,s,r){-1==e.inArray(this.slide,this.slider.getVisibleSlides(this.slider.slides[r]))&&this.player.seekTo(0)},this))),this.readyDeferred.resolve(),nextend.scrollTracker.add(this.playerElement,e.proxy(function(){this.setState("scroll",!0)},this),e.proxy(function(){this.state.continuePlay=!0,this.setState("scroll",!1)},this))},s.prototype.onResize=function(){var e=100,t=this.playerElement.parent(),i=t.width(),s=t.height()+e,r=16/9,n={width:i,height:s,marginTop:0};n[nextend.rtl.marginLeft]=0,i/s>r?(n.height=i*r,n.marginTop=(s-n.height)/2):(n.width=s*r,n[nextend.rtl.marginLeft]=(i-n.width)/2),this.playerElement.css(n)},s.prototype.initAutoplay=function(){this.isStatic?(this.state.play=!0,this.setState("slide",!0)):(this.state.slide=!1,this.slider.sliderElement.on("mainAnimationComplete",e.proxy(function(t,i,s,r){e.inArray(this.slide,this.slider.getVisibleSlides(this.slider.slides[r]))>=0?(this.state.play=!0,this.setState("slide",!0)):this.setState("slide",!1)},this)),e.inArray(this.slide,this.slider.getVisibleSlides())>=0&&(this.state.play=!0,this.setState("slide",!0)))},s.prototype.setState=function(e,t){this.state[e]=t,this.state.play&&this.state.slide&&this.state.scroll?this.play():this.pause()},s.prototype.play=function(){this.isStopped()&&(this.slider.sliderElement.trigger("mediaStarted",this.playerId),this.player.playVideo())},s.prototype.pause=function(){this.isStopped()||this.player.pauseVideo()},s.prototype.stop=function(){this.player.stopVideo()},s.prototype.isStopped=function(){var e=this.player.getPlayerState();switch(e){case-1:case 0:case 2:case 5:return!0;default:return!1}},s.prototype.setVolume=function(e){this.player.setVolume(100*e)},s});
1
+ N2Require("SmartSliderBackgroundImages",[],[],function(e,t,i){function s(t){this.device=null,this.slider=t,this.lazyLoad=t.parameters.lazyLoad,this.lazyLoadNeighbor=t.parameters.lazyLoadNeighbor,this.deviceDeferred=e.Deferred(),this.slider.sliderElement.one("SliderDevice",e.proxy(this.onSlideDeviceChangedFirst,this)),this.slider.sliderElement.on("visibleSlidesChanged",e.proxy(this.onVisibleSlidesChanged,this)),this.slider.sliderElement.on("slideCountChanged",e.proxy(this.onVisibleSlidesChanged,this))}return s.prototype.whenWithProgress=function(t){for(var i=0,s=e.Deferred(),r=0;r<t.length;r++)e.when(t[r]).done(function(){s.notify(++i,t.length)});return e.when.apply(e,t).done(function(){s.resolveWith(null,arguments)}),s},s.prototype.getBackgroundImages=function(){for(var e=[],t=0;t<this.slider.realSlides.length;t++)e.push(this.slider.realSlides[t].backgroundImage);return e},s.prototype.onVisibleSlidesChanged=function(){1==this.lazyLoad?this.load=this.preLoadSlides(this.slider.getVisibleSlides(this.slider.currentSlide)):2==this.lazyLoad&&(this.load=this.preLoadSlides(this.slider.getVisibleSlides(this.slider.currentSlide)))},s.prototype.onSlideDeviceChangedFirst=function(t,i){this.onSlideDeviceChanged(t,i),this.deviceDeferred.resolve(),this.slider.sliderElement.on("SliderDevice",e.proxy(this.onSlideDeviceChanged,this)),this.preLoadSlides=this._preLoadSlides,1==this.lazyLoad?(this.preLoadSlides=this.preloadSlidesLazyNeighbor,this.load=this.preLoadSlides(this.slider.getVisibleSlides(this.slider.currentSlide))):2==this.lazyLoad?(e(window).on("load",e.proxy(this.preLoadAll,this)),this.load=this.preLoadSlides(this.slider.getVisibleSlides(this.slider.currentSlide))):this.load=this.whenWithProgress(this.preLoadAll())},s.prototype.onSlideDeviceChanged=function(e,t){this.device=t;for(var i=0;i<this.slider.realSlides.length;i++)this.slider.realSlides[i].backgroundImage&&this.slider.realSlides[i].backgroundImage.updateBackgroundToDevice(t)},s.prototype.preLoadAll=function(){for(var e=[],t=0;t<this.slider.realSlides.length;t++)e.push(this.slider.realSlides[t].preLoad());return e},s.prototype._preLoadSlides=function(t){var i=[];"[object Array]"!==Object.prototype.toString.call(t)&&(t=[t]);for(var s=0;s<t.length;s++)i.push(t[s].preLoad());return e.when.apply(e,i)},s.prototype.preloadSlidesLazyNeighbor=function(t){var i=[this._preLoadSlides(t)];if(this.lazyLoadNeighbor)for(var s=0,r=t[0].previousSlide,n=t[t.length-1].nextSlide;s<this.lazyLoadNeighbor;)i.push(r.preLoad()),r=r.previousSlide,i.push(n.preLoad()),n=n.nextSlide,s++;var o=e.Deferred();if("resolved"!=i[0].state()){var a=setTimeout(e.proxy(function(){this.slider.load.showSpinner("backgroundImage"+t[0].index),a=null},this),50);e.when.apply(e,i).done(e.proxy(function(){a?(clearTimeout(a),a=null):this.slider.load.removeSpinner("backgroundImage"+t[0].index),setTimeout(function(){o.resolve()},100)},this))}else setTimeout(function(){o.resolve()},100);return o},s.prototype.hack=function(){for(var e=0;e<this.slider.realSlides.length;e++)this.slider.realSlides[e].backgroundImage&&this.slider.realSlides[e].backgroundImage.hack()},s}),N2Require("SmartSliderLoad",[],[],function(e,t,i){function s(t,i){this.parameters=e.extend({fade:1,scroll:0},i),this.deferred=e.Deferred(),this.smartSlider=t,this.spinnerKey="fadePlaceholder",this.id=t.sliderElement.attr("id"),this.$window=e(window),this.spinner=e("#"+this.id+"-spinner")}return s.prototype.start=function(){if(this.parameters.scroll){var t=e(window);t.on("scroll."+this.id,e.proxy(this.onScroll,this)),this.onScroll()}else if(this.parameters.fade){this.loadingArea=e("#"+this.id+"-placeholder").eq(0),this.showSpinner("fadePlaceholder");var i=this.spinner.find(".n2-ss-spinner-counter");i.length&&this.smartSlider.backgroundImages.load.progress(e.proxy(function(e,t){i.html(Math.round(e/(t+1)*100)+"%")},this)),this.showSlider()}else this.showSlider()},s.prototype.onScroll=function(){this.$window.scrollTop()+this.$window.height()>this.smartSlider.sliderElement.offset().top+100&&(this.$window.off("scroll."+this.id),this.showSlider())},s.prototype.loadLayerImages=function(){var t=e.Deferred();return this.smartSlider.sliderElement.find(".n2-ss-layers-container").n2imagesLoaded().always(function(){t.resolve()}),t},s.prototype.showSlider=function(){e.when(this.smartSlider.responsive.ready,this.smartSlider.backgroundImages.load,this.loadLayerImages()).always(e.proxy(function(){this._showSlider()},this))},s.prototype._showSlider=function(t){this.smartSlider.responsive.isReadyToResize=!0,e.when.apply(e,this.smartSlider.widgetDeferreds).done(e.proxy(function(){this.smartSlider.responsive.invalidateResponsiveState=!0,this.smartSlider.responsive.doResize(),this.smartSlider.mainAnimation&&this.smartSlider.mainAnimation.setToStarterSlide(this.smartSlider.starterSlide),this.smartSlider.starterSlide.setStarterSlide(),this.smartSlider.sliderElement.trigger("BeforeVisible"),this.smartSlider.responsive.alignElement.addClass("n2-ss-slider-align-visible"),this.smartSlider.sliderElement.addClass("n2-ss-loaded").removeClass("n2notransition"),this.removeSpinner("fadePlaceholder"),e("#"+this.id+"-placeholder").remove(),this.loadingArea=this.smartSlider.sliderElement,"function"==typeof t?t(this.deferred):this.deferred.resolve()},this))},s.prototype.loaded=function(e){this.deferred.done(e)},s.prototype.showSpinner=function(e){this.spinnerKey=e,this.spinner.appendTo(this.loadingArea).css("display","")},s.prototype.removeSpinner=function(e){this.spinnerKey==e&&(this.spinner.detach(),this.spinnerKey="")},s}),N2Require("scrollTracker",[],[],function(e,t,i){function s(){this.started=!1,this.items=[]}s.prototype.add=function(e,t,i){var s={$el:e,onVisible:t,onHide:i,state:"unknown"};this.items.push(s),this._onScroll(s,Math.max(document.documentElement.clientHeight,window.innerHeight)),this.started||this.start()},s.prototype.start=function(){this.started||(e(window).on("scroll.scrollTracker",e.proxy(this.onScroll,this)),this.started=!0)},s.prototype.onScroll=function(e){for(var t=Math.max(document.documentElement.clientHeight,window.innerHeight),i=0;i<this.items.length;i++)this._onScroll(this.items[i],t)},s.prototype._onScroll=function(e,t){var i=e.$el[0].getBoundingClientRect(),s=i.height>.7*t;!s&&(i.bottom-i.height<0||i.top-t+i.height>=0)||s&&(i.bottom<0||i.top>=i.height)?"hidden"!=e.state&&("function"==typeof e.onHide&&e.onHide(),e.state="hidden"):"visible"!=e.state&&("function"==typeof e.onVisible&&e.onVisible(),e.state="visible")},nextend.scrollTracker=new s}),N2Require("SmartSliderApi",[],[],function(e,t,i){function s(){this.sliders={},this.readys={},this._resetCounters=[]}return s.prototype.makeReady=function(e,t){if(this.sliders[e]=t,"undefined"!=typeof this.readys[e])for(var i=0;i<this.readys[e].length;i++)this.readys[e][i].call(t,t,t.sliderElement)},s.prototype.ready=function(e,t){"undefined"!=typeof this.sliders[e]?t.call(this.sliders[e],this.sliders[e],this.sliders[e].sliderElement):("undefined"==typeof this.readys[e]&&(this.readys[e]=[]),this.readys[e].push(t))},s.prototype.trigger=function(t,i){var s=n2(t),r=i.split(","),n=s.closest(".n2-ss-slide,.n2-ss-static-slide");if(r.length>1){-1==e.inArray(t,this._resetCounters)&&(this._resetCounters.push(t),n.on("layerAnimationSetStart.resetCounter",function(){s.data("eventCounter",0)}));var o=s.data("eventCounter")||0;i=r[o],o++,o>r.length-1&&(o=0),s.data("eventCounter",o)}n.triggerHandler(i)},s.prototype.applyAction=function(e,t){var i=n2(e).closest(".n2-ss-slider").data("ss");i[t].apply(i,Array.prototype.slice.call(arguments,2))},s.prototype.applyActionWithClick=function(){nextend.shouldPreventClick||this.applyAction.apply(this,arguments)},window.n2ss=new s,s}),N2Require("SmartSliderAbstract",[],[],function($,scope,undefined){function SmartSliderAbstract(e,t){this.startedDeferred=$.Deferred(),e instanceof n2&&(e="#"+e.attr("id"));var i=e.substr(1);return window[i]&&window[i]instanceof SmartSliderAbstract?!1:(this.isAdmin=!!t.admin,this.id=parseInt(i.replace("n2-ss-","")),window[i]=this,this.readyDeferred=$.Deferred(),void this.waitForExists(i,t))}return SmartSliderAbstract.prototype.kill=function(){this.killed=!0,$("#"+this.sliderElement.attr("id")+"-placeholder").remove(),this.sliderElement.closest(".n2-ss-align").remove()},SmartSliderAbstract.prototype.waitForExists=function(e,t){var i=$.Deferred(),s=function(){var t=$("#"+e);t.length?i.resolve(t):setTimeout(s,500)};i.done($.proxy(this.onSliderExists,this,e,t)),s()},SmartSliderAbstract.prototype.onSliderExists=function(e,t,i){if("SCRIPT"==i.prop("tagName")){var s=i.data("dependency"),r=i.data("delay"),n=$.proxy(function(){var s=$(i.html().replace(/<_s_c_r_i_p_t/g,"<script").replace(/<_\/_s_c_r_i_p_t/g,"</script"));i.replaceWith(s),this.waitForDimension($("#"+e),t),$(window).triggerHandler("n2Rocket",[this.sliderElement])},this);s&&$("#n2-ss-"+s).length?n2ss.ready(s,$.proxy(function(e){e.ready(n)},this)):r?setTimeout(n,r):n()}else this.waitForDimension(i,t)},SmartSliderAbstract.prototype.waitForDimension=function(e,t){var i=$.Deferred(),s=function(){var t=e.is(":visible");t?i.resolve():setTimeout(s,200)};s(),i.done($.proxy(this.onSliderHasDimension,this,e,t))},SmartSliderAbstract.prototype.onSliderHasDimension=function($sliderElement,parameters){if(this.killed=!1,this.responsive=!1,this.mainAnimationLastChangeTime=0,this.currentSlide=null,this.currentRealSlide=null,this.staticSlide=!1,this.isShuffled=!1,this.slides=[],this.visibleSlides=1,this.sliderElement=$sliderElement.data("ss",this),this.parameters=$.extend({admin:!1,playWhenVisible:1,playWhenVisibleAt:.5,perspective:1e3,callbacks:"",autoplay:{},blockrightclick:!1,maintainSession:0,align:"normal",controls:{drag:!1,touch:"horizontal",keyboard:!1,scroll:!1,tilt:!1},hardwareAcceleration:!0,layerMode:{playOnce:0,playFirstLayer:1,mode:"skippable",inAnimation:"mainInEnd"},foreverLayerAnimation:!1,parallax:{enabled:0,mobile:0,horizontal:"mouse",vertical:"mouse",origin:"enter"},load:{},mainanimation:{},randomize:{randomize:0,randomizeFirst:0},responsive:{},lazyload:{enabled:0},postBackgroundAnimations:!1,initCallbacks:[],dynamicHeight:0,lightbox:[],lightboxDeviceImages:[],titles:[],descriptions:[],"background.parallax.tablet":0,"background.parallax.mobile":0,allowBGImageAttachmentFixed:1,particlejs:0},parameters),!(this.isAdmin||parameters.responsive.desktop&&parameters.responsive.tablet&&parameters.responsive.mobile)){var md=new MobileDetect(window.navigator.userAgent,801),isTablet=!!md.tablet(),isMobile=!!md.phone();if(!parameters.responsive.mobile&&isMobile||!parameters.responsive.tablet&&isTablet||!parameters.responsive.desktop&&!isTablet&&!isMobile)return void this.kill()}this.firstSlideReady=$.Deferred();try{eval(this.parameters.callbacks)}catch(e){console.error(e)}this.startVisibilityCheck(),n2ss.makeReady(this.id,this),this.widgetDeferreds=[],this.sliderElement.on("addWidget",$.proxy(this.addWidget,this)),this.isAdmin&&(this.changeTo=function(){}),this.load=new scope.SmartSliderLoad(this,this.parameters.load),this.backgroundImages=new scope.SmartSliderBackgroundImages(this),this.__initSlides(),$.when(this.overrideFirstSlide()).done($.proxy(this.onFirstSlideInitialized,this)),navigator.userAgent.match("UCBrowser")&&$("html").addClass("n2-ucbrowser")},SmartSliderAbstract.prototype.overrideFirstSlide=function(){if("undefined"!=typeof window["ss"+this.id]){if("object"==typeof window["ss"+this.id])return window["ss"+this.id].done($.proxy(function(e){null!==e&&this.changeActiveBeforeLoad(e)},this));var e="undefined"!=typeof window["ss"+this.id]?parseInt(window["ss"+this.id]):null;null!==e&&this.changeActiveBeforeLoad(e)}else if(!this.isAdmin&&this.parameters.maintainSession&&"undefined"!=typeof sessionStorage){var t=sessionStorage.getItem("ss-"+this.id);null!==t&&this.changeActiveBeforeLoad(parseInt(t)),this.sliderElement.on("mainAnimationComplete",$.proxy(function(e,t,i,s){sessionStorage.setItem("ss-"+this.id,s)},this))}return!0},SmartSliderAbstract.prototype.changeActiveBeforeLoad=function(e){e>0&&e<this.realSlides.length&&this.starterSlide!=this.realSlides[e]&&(this.unsetActiveSlide(this.starterSlide),this.starterSlide=this.realSlides[e],this.setActiveSlide(this.realSlides[e]))},SmartSliderAbstract.prototype.startCurrentSlideIndex=function(){this.currentRealSlide=this.currentSlide=this.starterSlide,this.setActiveSlide(this.currentSlide),parseInt(this.parameters.carousel)?this.initCarousel():this.initNotCarousel()},SmartSliderAbstract.prototype.onFirstSlideInitialized=function(){for(var i=0;i<this.realSlides.length;i++)this.realSlides[i].setNext(this.realSlides[i+1>this.realSlides.length-1?0:i+1]);this.startCurrentSlideIndex(),this.firstSlideReady.resolve(this.currentSlide);for(var j=0;j<this.parameters.initCallbacks.length;j++)new Function("$",this.parameters.initCallbacks[j]).call(this,$);if(this.widgets=new scope.SmartSliderWidgets(this),this.sliderElement.on({universalenter:$.proxy(function(e){$(e.target).closest(".n2-full-screen-widget").length||(this.sliderElement.addClass("n2-hover"),this.widgets.setState("hover",!0))},this),universalleave:$.proxy(function(e){e.stopPropagation(),this.sliderElement.removeClass("n2-hover"),this.widgets.setState("hover",!1)},this)}),this.controls={},this.parameters.blockrightclick&&this.sliderElement.bind("contextmenu",function(e){e.preventDefault()}),this.initMainAnimation(),this.initResponsiveMode(),!this.killed){try{var removeHoverClassCB=$.proxy(function(){this.sliderElement.removeClass("n2-has-hover"),this.sliderElement[0].removeEventListener("touchstart",removeHoverClassCB,window.n2passiveEvents?{passive:!0}:!1)},this);this.sliderElement[0].addEventListener("touchstart",removeHoverClassCB,window.n2passiveEvents?{passive:!0}:!1)}catch(e){}if(this.initControls(),this.startedDeferred.resolve(this),!this.isAdmin){var event="click";this.hasTouch()&&(event="n2click"),this.sliderElement.find("[data-n2click]").each(function(i,el){var el=$(el);el.on(event,function(){eval(el.data("n2click"))})}),this.sliderElement.find("[data-click]").each(function(i,el){var el=$(el).on("click",function(){eval(el.data("click"))}).css("cursor","pointer")}),this.sliderElement.find("[data-n2middleclick]").on("mousedown",function(e){var el=$(this);2!=e.which&&4!=e.which||(e.preventDefault(),eval(el.data("n2middleclick")))}),this.sliderElement.find("[data-mouseenter]").each(function(i,el){var el=$(el).on("mouseenter",function(){eval(el.data("mouseenter"))})}),this.sliderElement.find("[data-mouseleave]").each(function(i,el){var el=$(el).on("mouseleave",function(){eval(el.data("mouseleave"))})}),this.sliderElement.find("[data-play]").each(function(i,el){var el=$(el).on("n2play",function(){eval(el.data("play"))})}),this.sliderElement.find("[data-pause]").each(function(i,el){var el=$(el).on("n2pause",function(){eval(el.data("pause"))})}),this.sliderElement.find("[data-stop]").each(function(i,el){var el=$(el).on("n2stop",function(){eval(el.data("stop"))})}),window.n2FocusAllowed==undefined&&(window.n2FocusAllowed=!1,$(window).on({keydown:function(){window.n2FocusAllowed=!0},keyup:function(){window.n2FocusAllowed=!1}})),this.sliderElement.find("a").on({focus:$.proxy(function(e){if(n2FocusAllowed){var t=this.findSlideByElement(e.currentTarget);t&&t!=this.currentRealSlide&&this.directionalChangeToReal(t.index)}},this)})}this.preReadyResolve(),this.sliderElement.find('[role="button"], [tabindex]').not("input,select,textarea").keypress(function(e){32!==e.charCode&&13!==e.charCode||(e.preventDefault(),$(e.target).click())}).on("mouseleave",function(e){$(e.currentTarget).blur()})}},SmartSliderAbstract.prototype.__initSlides=function(){for(var e=this.sliderElement.find(".n2-ss-slide"),t=0;t<e.length;t++)this.slides.push(new scope.FrontendSliderSlide(this,e.eq(t),t));this.starterSlide=this.slides[0];for(var t=0;t<this.slides.length;t++)this.slides[t].init(),1==this.slides[t].$element.data("first")&&(this.starterSlide=this.slides[t]);this.realSlides=this.slides,this.afterRawSlidesReady(),this.randomize(this.slides);var i=this.sliderElement.find(".n2-ss-static-slide");i.length&&(this.staticSlide=new scope.FrontendSliderStaticSlide(this,i))},SmartSliderAbstract.prototype.afterRawSlidesReady=function(){},SmartSliderAbstract.prototype.setVisibleSlides=function(e){e!=this.visibleSlides&&(this.visibleSlides=e,this.sliderElement.triggerHandler("visibleSlidesChanged"))},SmartSliderAbstract.prototype.getVisibleSlides=function(e){return 0==arguments.length&&(e=this.currentSlide),[e]},SmartSliderAbstract.prototype.findSlideBackground=function(e){return e.$element.find(".n2-ss-slide-background")},SmartSliderAbstract.prototype.getRealIndex=function(e){return e},SmartSliderAbstract.prototype.randomize=function(e){this.randomizeFirst(),this.parameters.randomize.randomize&&this.shuffleSlides(e)},SmartSliderAbstract.prototype.randomizeFirst=function(){this.parameters.randomize.randomizeFirst&&(this.unsetActiveSlide(this.starterSlide),this.starterSlide=this.realSlides[Math.floor(Math.random()*this.realSlides.length)],this.setActiveSlide(this.starterSlide),console.log("randomize first"))},SmartSliderAbstract.prototype.shuffleSlides=function(e){e.sort(function(){return.5-Math.random()});for(var t=e[0].$element.parent(),i=0;i<e.length;i++)e[i].$element.appendTo(t),e[i].setIndex(i);this.isShuffled=!0},SmartSliderAbstract.prototype.addWidget=function(e,t){this.widgetDeferreds.push(t)},SmartSliderAbstract.prototype.started=function(e){this.startedDeferred.done($.proxy(e,this))},SmartSliderAbstract.prototype.preReadyResolve=function(){setTimeout($.proxy(this._preReadyResolve,this),1)},SmartSliderAbstract.prototype._preReadyResolve=function(){this.load.start(),this.load.loaded($.proxy(this.readyResolve,this))},SmartSliderAbstract.prototype.readyResolve=function(){$(window).scroll(),this.readyDeferred.resolve()},SmartSliderAbstract.prototype.ready=function(e){this.readyDeferred.done($.proxy(e,this))},SmartSliderAbstract.prototype.startVisibilityCheck=function(){this.visibleDeferred=$.Deferred(),this.parameters.playWhenVisible?this.ready($.proxy(function(){$(window).on("scroll.n2-ss-visible"+this.id+" resize.n2-ss-visible"+this.id,$.proxy(this.checkIfVisible,this)),this.checkIfVisible()},this)):this.ready($.proxy(function(){this.visibleDeferred.resolve()},this))},SmartSliderAbstract.prototype.checkIfVisible=function(){var e=$(window).scrollTop(),t=$(window).height(),i=this.sliderElement.offset().top,s=i+Math.min(this.sliderElement.height(),t)*this.parameters.playWhenVisibleAt,r=i+Math.min(this.sliderElement.height(),t)*(1-this.parameters.playWhenVisibleAt);(this.isAdmin||s>=e&&e+t>=r)&&($(window).off("scroll.n2-ss-visible"+this.id+" resize.n2-ss-visible"+this.id,$.proxy(this.checkIfVisible,this)),this.visibleDeferred.resolve())},SmartSliderAbstract.prototype.visible=function(e){this.visibleDeferred.done($.proxy(e,this))},SmartSliderAbstract.prototype.isPlaying=function(){return"ended"!=this.mainAnimation.getState()},SmartSliderAbstract.prototype.focus=function(e){var t=$.Deferred();if("undefined"==typeof e&&(e=0),this.responsive.parameters.focusUser&&!e||this.responsive.parameters.focusAutoplay&&e){var i=this.sliderElement.offset().top-(this.responsive.verticalOffsetSelectors.height()||0);$(window).scrollTop()!=i?$("html, body").animate({scrollTop:i},400,$.proxy(function(){t.resolve()},this)):t.resolve()}else t.resolve();return t},SmartSliderAbstract.prototype.initNotCarousel=function(){this.next=function(e,t){var i=this.currentSlide.index+1;return i<this.slides.length?this.changeTo(i,!1,e,t):!1},this.previous=function(e,t){var i=this.currentSlide.index-1;return i>=0?this.changeTo(i,!0,e,t):!1},this.isChangePossible=function(e){var t=!1;return"next"==e?(t=this.currentSlide.index+1,t>=this.slides.length&&(t=!1)):"previous"==e&&(t=this.currentSlide.index-1,0>t&&(t=!1)),t!==!1&&t!=this.currentSlide.index};var e=$.proxy(function(e){0==e?this.widgets.setState("nonCarouselFirst",!0):this.widgets.setState("nonCarouselFirst",!1),e==this.slides.length-1?this.widgets.setState("nonCarouselLast",!0):this.widgets.setState("nonCarouselLast",!1)},this);this.startedDeferred.done($.proxy(function(){e(this.currentSlide.index)},this)),this.sliderElement.on("sliderSwitchTo",function(t,i){e(i)})},SmartSliderAbstract.prototype.isChangePossibleCarousel=function(e){var t=!1;return"next"==e?(t=this.currentSlide.index+1,t>=this.slides.length&&(t=0)):"previous"==e&&(t=this.currentSlide.index-1,0>t&&(t=this.slides.length-1)),t!==!1&&t!=this.currentSlide.index},SmartSliderAbstract.prototype.initCarousel=function(){this.next=this.nextCarousel,this.previous=this.previousCarousel,this.isChangePossible=this.isChangePossibleCarousel},SmartSliderAbstract.prototype.nextCarousel=function(e,t){var i=this.currentSlide.index+1;return i>=this.slides.length&&(i=0),this.changeTo(i,!1,e,t)},SmartSliderAbstract.prototype.previousCarousel=function(e,t){var i=this.currentSlide.index-1;return 0>i&&(i=this.slides.length-1),this.changeTo(i,!0,e,t)},SmartSliderAbstract.prototype.directionalChangeToReal=function(e){this.directionalChangeTo(e)},SmartSliderAbstract.prototype.directionalChangeTo=function(e){e>this.currentSlide.index?this.changeTo(e,!1):this.changeTo(e,!0)},SmartSliderAbstract.prototype.changeTo=function(e,t,i,s){if(e=parseInt(e),e!=this.currentSlide.index){this.sliderElement.trigger("sliderSwitchTo",[e,this.getRealIndex(e)]);var r=$.now();return $.when(this.backgroundImages.preLoadSlides(this.getVisibleSlides(this.slides[e])),this.focus(i)).done($.proxy(function(){if(this.mainAnimationLastChangeTime<=r){this.mainAnimationLastChangeTime=r;var n=this.mainAnimation.getState();if("ended"==n){"undefined"==typeof i&&(i=!1);var o=this.mainAnimation;"undefined"!=typeof s&&(o=s),this._changeTo(e,t,i,s),o.changeTo(this.currentSlide,this.slides[e],t,i),this._changeCurrentSlide(e)}else"playing"==n&&(this.sliderElement.off(".fastChange").one("mainAnimationComplete.fastChange",$.proxy(function(){this.changeTo.call(this,e,t,i,s)},this)),this.mainAnimation.timeScale(2*this.mainAnimation.timeScale()))}},this)),!0}return!1},SmartSliderAbstract.prototype._changeCurrentSlide=function(e){this.currentRealSlide=this.currentSlide=this.slides[e]},SmartSliderAbstract.prototype._changeTo=function(e,t,i,s){},SmartSliderAbstract.prototype.revertTo=function(e,t){this.unsetActiveSlide(this.slides[t]),this.setActiveSlide(this.slides[e]),this._changeCurrentSlide(e),this.sliderElement.trigger("sliderSwitchTo",[e,this.getRealIndex(e)])},SmartSliderAbstract.prototype.setActiveSlide=function(e){e.$element.addClass("n2-ss-slide-active")},SmartSliderAbstract.prototype.unsetActiveSlide=function(e){e.$element.removeClass("n2-ss-slide-active")},SmartSliderAbstract.prototype.findSlideByElement=function(e){e=$(e);for(var t=0;t<this.realSlides.length;t++)if(1===this.realSlides[t].$element.has(e).length)return this.realSlides[t];return!1},SmartSliderAbstract.prototype.findSlideIndexByElement=function(e){var t=this.findSlideByElement(e);return t?t:-1},SmartSliderAbstract.prototype.initMainAnimation=function(){this.mainAnimation=!1},SmartSliderAbstract.prototype.initResponsiveMode=function(){this.dimensions=this.responsive.responsiveDimensions},SmartSliderAbstract.prototype.hasTouch=function(){return"0"!=this.parameters.controls.touch&&this.slides.length>1},SmartSliderAbstract.prototype.initControls=function(){this.parameters.admin||(this.hasTouch()&&new scope.SmartSliderControlTouch(this,this.parameters.controls.touch,{fallbackToMouseEvents:this.parameters.controls.drag}),this.parameters.controls.keyboard&&("undefined"!=typeof this.controls.touch?new scope.SmartSliderControlKeyboard(this,this.controls.touch._direction.axis):new scope.SmartSliderControlKeyboard(this,"horizontal")),this.parameters.controls.scroll&&new scope.SmartSliderControlScroll(this),this.parameters.controls.tilt&&new scope.SmartSliderControlTilt(this),this.controlAutoplay=new scope.SmartSliderControlAutoplay(this,this.parameters.autoplay),this.controlFullscreen=new scope.SmartSliderControlFullscreen(this))},SmartSliderAbstract.prototype.getSlideIndex=function(e){return e},SmartSliderAbstract.prototype.slideToID=function(e,t){for(var i=0;i<this.realSlides.length;i++)if(this.realSlides[i].id==e)return this.slide(this.getSlideIndex(i),t);var s=$('[data-id="'+e+'"]').closest(".n2-ss-slider");if(s.length&&this.id==s.data("ss").id)return!0;if(s.length){var r=0;return"undefined"!=typeof n2ScrollOffsetSelector&&(r=n2(n2ScrollOffsetSelector).outerHeight()),n2("html, body").animate({scrollTop:s.offset().top-r},400),s.data("ss").slideToID(e,t)}},SmartSliderAbstract.prototype.slide=function(e,t){return e>=0&&e<this.slides.length?"undefined"==typeof t?parseInt(this.parameters.carousel)&&this.currentSlide.index==this.slides.length-1&&0==e?this.next():this.currentSlide.index>e?this.changeTo(e,!0):this.changeTo(e):this.changeTo(e,!t):!1},SmartSliderAbstract.prototype.startAutoplay=function(e){return"undefined"!=typeof this.controlAutoplay?(this.controlAutoplay.pauseAutoplayExtraPlayingEnded(e,"autoplayButton"),!0):!1},SmartSliderAbstract}),N2Require("SmartSliderWidgets",[],[],function($,scope,undefined){function SmartSliderWidgets(e){this.slider=e,this.sliderElement=e.sliderElement.on("BeforeVisible",$.proxy(this.onReady,this)),this.widgets={},this.excludedSlides={},this.states={hover:!1,nonCarouselFirst:!1,nonCarouselLast:!1,currentSlideIndex:-1}}return SmartSliderWidgets.prototype.setState=function(e,t){this.states[e]!=t&&(this.states[e]=t,this.onStateChange())},SmartSliderWidgets.prototype.onStateChange=function(){var e={};for(var t in this.widgets)this.widgets[t].hasClass("n2-ss-widget-display-hover")?this.states.hover?e[t]=!0:e[t]=!1:e[t]=!0,this.excludedSlides[t]!=undefined&&-1!=$.inArray(this.states.currentSlideIndex+1,this.excludedSlides[t])&&(e[t]=!1);this.states.nonCarouselFirst&&(e.previous=!1),this.states.nonCarouselLast&&(e.next=!1);for(var t in this.widgets)this.widgets[t].toggleClass("n2-ss-widget-hidden",!e[t])},SmartSliderWidgets.prototype.onReady=function(){this.dimensions=this.slider.dimensions,this.widgets={previous:this.sliderElement.find(".nextend-arrow-previous"),next:this.sliderElement.find(".nextend-arrow-next"),bullet:this.sliderElement.find(".n2-ss-control-bullet"),autoplay:this.sliderElement.find(".nextend-autoplay"),indicator:this.sliderElement.find(".nextend-indicator"),bar:this.sliderElement.find(".nextend-bar"),thumbnail:this.sliderElement.find(".nextend-thumbnail"),shadow:this.sliderElement.find(".nextend-shadow"),fullscreen:this.sliderElement.find(".nextend-fullscreen"),html:this.sliderElement.find(".nextend-widget-html")},this.$vertical=this.sliderElement.find('[data-position="above"],[data-position="below"]').not(".nextend-shadow");var e=!1;for(var t in this.widgets){var i=this.widgets[t].attr("data-exclude-slides");if(i!=undefined){for(var s=i.split(","),r=s.length-1;r>=0;r--){var n=s[r].split("-");if(2==n.length){var o=parseInt(n[0]),a=parseInt(n[1]);if(a>=o)for(var l=o;a>=l;l++)s.push(l)}else s[r]=parseInt(s[r])}s.length>0&&(this.excludedSlides[t]=s,e=!0)}}if(e){var d=$.proxy(function(e,t){this.setState("currentSlideIndex",t)},this);d(null,this.slider.currentRealSlide.index),this.slider.sliderElement.on("sliderSwitchTo",d)}this.variableElementsDimension={width:this.sliderElement.find("[data-sswidth]"),height:this.sliderElement.find("[data-ssheight]")},this.variableElements={top:this.sliderElement.find("[data-sstop]"),right:this.sliderElement.find("[data-ssright]"),bottom:this.sliderElement.find("[data-ssbottom]"),left:this.sliderElement.find("[data-ssleft]")},this.slider.sliderElement.on("SliderAnimatedResize",$.proxy(this.onAnimatedResize,this)),this.slider.sliderElement.on("SliderResize",$.proxy(this.onResize,this)),this.slider.sliderElement.one("slideCountChanged",$.proxy(function(){this.onResize(this.slider.responsive.lastRatios)},this)),this.onResize(this.slider.responsive.lastRatios),this.onStateChange()},SmartSliderWidgets.prototype.onAnimatedResize=function(e,ratios,timeline,duration){for(var key in this.widgets){var el=this.widgets[key],visible=el.is(":visible");this.dimensions[key+"width"]=visible?el.outerWidth(!1):0,this.dimensions[key+"height"]=visible?el.outerHeight(!1):0}this.dimensions.width=this.dimensions.slider.width,this.dimensions.height=this.dimensions.slider.height,this.dimensions.outerwidth=this.sliderElement.parent().width(),this.dimensions.outerheight=this.sliderElement.parent().height(),this.dimensions.canvaswidth=this.dimensions.slide.width,this.dimensions.canvasheight=this.dimensions.slide.height,this.dimensions.margintop=this.dimensions.slider.marginTop,this.dimensions.marginright=this.dimensions.slider.marginRight,this.dimensions.marginbottom=this.dimensions.slider.marginBottom,this.dimensions.marginleft=this.dimensions.slider.marginLeft;var variableText="";for(var key in this.dimensions){var value=this.dimensions[key];if("object"==typeof value)for(var key2 in value)variableText+="var "+key+key2+" = "+value[key2]+";";else variableText+="var "+key+" = "+value+";"}eval(variableText);for(var k in this.variableElementsDimension)for(var i=0;i<this.variableElementsDimension[k].length;i++){var el=this.variableElementsDimension[k].eq(i);if(el.is(":visible")){var to={};try{to[k]=eval(el.data("ss"+k))+"px";for(var widget in this.widgets)this.widgets[widget].filter(el).length&&("width"==k?this.dimensions[widget+k]=el.outerWidth(!1):"height"==k&&(this.dimensions[widget+k]=el.outerHeight(!1)),eval(widget+k+" = "+this.dimensions[widget+k]+";"))}catch(e){console.log(el," position variable: "+e.message+": ",el.data("ss"+k))}timeline.to(el,duration,to,0)}}for(var k in this.variableElements)for(var i=0;i<this.variableElements[k].length;i++){var el=this.variableElements[k].eq(i);try{var to={};to[k]=eval(el.data("ss"+k))+"px",timeline.to(el,duration,to,0)}catch(e){console.log(el," position variable: "+e.message+": ",el.data("ss"+k))}}},SmartSliderWidgets.prototype.onResize=function(e,ratios,responsive,timeline){if(!timeline){for(var k in this.variableElements)for(var i=0;i<this.variableElements[k].length;i++){var last=this.variableElements[k].data("n2Last"+k);last>0&&this.variableElements[k].css(k,0)}for(var key in this.widgets){var el=this.widgets[key],visible=el.length&&el.is(":visible");el.length&&el.is(":visible")?(this.dimensions[key+"width"]=el.outerWidth(!1),this.dimensions[key+"height"]=el.outerHeight(!1)):(this.dimensions[key+"width"]=0,this.dimensions[key+"height"]=0)}for(var k in this.variableElements)for(var i=0;i<this.variableElements[k].length;i++){var last=this.variableElements[k].data("n2Last"+k);last>0&&this.variableElements[k].css(k,last)}this.dimensions.width=this.dimensions.slider.width,this.dimensions.height=this.dimensions.slider.height,this.dimensions.outerwidth=this.sliderElement.parent().width(),this.dimensions.outerheight=this.sliderElement.parent().height(),this.dimensions.canvaswidth=this.dimensions.slide.width,this.dimensions.canvasheight=this.dimensions.slide.height,this.dimensions.margintop=this.dimensions.slider.marginTop,this.dimensions.marginright=this.dimensions.slider.marginRight,this.dimensions.marginbottom=this.dimensions.slider.marginBottom,this.dimensions.marginleft=this.dimensions.slider.marginLeft;var variableText="";for(var key in this.dimensions){var value=this.dimensions[key];if("object"==typeof value)for(var key2 in value)variableText+="var "+key+key2+" = "+value[key2]+";";else variableText+="var "+key+" = "+value+";"}eval(variableText);for(var k in this.variableElementsDimension)for(var i=0;i<this.variableElementsDimension[k].length;i++){var el=this.variableElementsDimension[k].eq(i);if(el.is(":visible"))try{el.css(k,eval(el.data("ss"+k))+"px");for(var widget in this.widgets)this.widgets[widget].filter(el).length&&("width"==k?this.dimensions[widget+k]=el.outerWidth(!1):"height"==k&&(this.dimensions[widget+k]=el.outerHeight(!1)),eval(widget+k+" = "+this.dimensions[widget+k]+";"))}catch(e){console.log(el," position variable: "+e.message+": ",el.data("ss"+k));
2
+ }}for(var k in this.variableElements)for(var i=0;i<this.variableElements[k].length;i++){var el=this.variableElements[k].eq(i);try{var value=eval(el.data("ss"+k));el.css(k,value+"px"),el.data("n2Last"+k,value)}catch(e){console.log(el," position variable: "+e.message+": ",el.data("ss"+k))}}this.slider.responsive.refreshStaticSizes()}},SmartSliderWidgets}),N2Require("SmartSliderBackgroundAnimationAbstract",[],[],function(e,t,i){function s(e,t,i,s,r,n){this.durationMultiplier=r,this.original={currentImage:t,nextImage:i},this.animationProperties=s,this.reversed=n,this.timeline=e.timeline,this.containerElement=e.bgAnimationElement,this.shiftedBackgroundAnimation=e.parameters.shiftedBackgroundAnimation,this.clonedImages={}}return s.prototype.postSetup=function(){},s.prototype.ended=function(){},s.prototype.revertEnded=function(){},s.prototype.placeNextImage=function(){this.clonedImages.nextImage=this.original.nextImage.clone().css({position:"absolute",top:0,left:0}),NextendTween.set(this.clonedImages.nextImage,{transform:"none"}),this.containerElement.append(this.clonedImages.nextImage)},s.prototype.placeCurrentImage=function(){this.clonedImages.currentImage=this.original.currentImage.clone().css({position:"absolute",top:0,left:0}),NextendTween.set(this.clonedImages.currentImage,{transform:"none"}),this.containerElement.append(this.clonedImages.currentImage)},s.prototype.hideOriginals=function(){this.original.currentImage.css("opacity",0),this.original.nextImage.css("opacity",0)},s.prototype.resetAll=function(){this.original.currentImage.css("opacity",1),this.original.nextImage.css("opacity",1),this.containerElement.html("")},s.prototype.getExtraDelay=function(){return 0},s}),N2Require("SmartSliderBackgroundAnimationCubic",["SmartSliderBackgroundAnimationTiled"],[],function(e,t,i){function s(){t.SmartSliderBackgroundAnimationTiled.prototype.constructor.apply(this,arguments)}return s.prototype=Object.create(t.SmartSliderBackgroundAnimationTiled.prototype),s.prototype.constructor=s,s.prototype.setup=function(){var i=e.extend(!0,{columns:1,rows:1,fullCube:!0,tiles:{delay:.2,sequence:"Parallel"},depth:50,main:{side:"Left",duration:.5,ease:"easeInOutCubic",direction:"horizontal",real3D:!0},pre:[],post:[]},this.animationProperties);i.fullCube=!0,this.reversed&&("undefined"!=typeof i.invert&&e.extend(!0,i.main,i.invert),"undefined"!=typeof i.invertTiles&&e.extend(i.tiles,i.invertTiles)),t.SmartSliderBackgroundAnimationTiled.prototype.setup.call(this,i)},s.prototype.renderTile=function(t,i,s,r,n,o){var a=r.depth;switch(a){case"width":a=i;break;case"height":a=s}switch(r.main.side){case"Top":case"Bottom":a=s;break;case"Left":case"Right":a=i}r.main.real3D&&NextendTween.set(t.get(0),{transformStyle:"preserve-3d"});var l=e('<div class="cuboid"></div>').css({position:"absolute",left:"0",top:"0",width:"100%",height:"100%"}).appendTo(t);NextendTween.set(l.get(0),{transformStyle:"preserve-3d",z:-a/2});var d=0;"horizontal"==r.main.direction&&(d=180);var h=this.getSide(l,i,s,0,0,-a/2,180,0,d),p={Back:h,BackInvert:h};return(r.fullCube||"vertical"==r.main.direction)&&(p.Bottom=this.getSide(l,i,a,0,s-a/2,0,-90,0,0),p.Top=this.getSide(l,i,a,0,-a/2,0,90,0,0)),p.Front=this.getSide(l,i,s,0,0,a/2,0,0,0),(r.fullCube||"horizontal"==r.main.direction)&&(p.Left=this.getSide(l,a,s,-a/2,0,0,0,-90,0),p.Right=this.getSide(l,a,s,i-a/2,0,0,0,90,0)),p.Front.append(this.clonedCurrent().clone().css({position:"absolute",top:-o+"px",left:-n+"px"})),p[r.main.side].append(this.clonedNext().clone().css({position:"absolute",top:-o+"px",left:-n+"px"})),l},s.prototype.getSide=function(t,i,s,r,n,o,a,l,d){var h=e('<div class="n2-3d-side"></div>').css({width:i,height:s}).appendTo(t);return NextendTween.set(h.get(0),{x:r,y:n,z:o,rotationX:a,rotationY:l,rotationZ:d,backfaceVisibility:"hidden"}),h},s.prototype.addAnimation=function(e,t){var i=e.duration;delete e.duration,this.timeline.to(t,i*this.durationMultiplier,e)},s.prototype.transform=function(e,t,i){for(var s=0;s<e.pre.length;s++){var r=e.pre[s],n=r.duration*this.durationMultiplier;this.timeline.to(t,n,r,i),i+=n}this["transform"+e.main.side](e.main,t,i),i+=e.main.duration;for(var s=0;s<e.post.length;s++){var r=e.post[s],n=r.duration*this.durationMultiplier;this.timeline.to(t,n,r,i),i+=n}},s.prototype.transformLeft=function(e,t,i){this._transform(e,t,i,0,90,0)},s.prototype.transformRight=function(e,t,i){this._transform(e,t,i,0,-90,0)},s.prototype.transformTop=function(e,t,i){this._transform(e,t,i,-90,0,0)},s.prototype.transformBottom=function(e,t,i){this._transform(e,t,i,90,0,0)},s.prototype.transformBack=function(e,t,i){"horizontal"==e.direction?this._transform(e,t,i,0,180,0):this._transform(e,t,i,180,0,0)},s.prototype.transformBackInvert=function(e,t,i){"horizontal"==e.direction?this._transform(e,t,i,0,-180,0):this._transform(e,t,i,-180,0,0)},s.prototype._transform=function(e,t,i,s,r,n){this.timeline.to(t,e.duration*this.durationMultiplier,{rotationX:s,rotationY:r,rotationZ:n,ease:e.ease},i)},s}),N2Require("SmartSliderBackgroundAnimationExplode",["SmartSliderBackgroundAnimationTiled"],[],function(e,t,i){function s(){t.SmartSliderBackgroundAnimationTiled.prototype.constructor.apply(this,arguments)}return s.prototype=Object.create(t.SmartSliderBackgroundAnimationTiled.prototype),s.prototype.constructor=s,s.prototype.setup=function(){var i=e.extend(!0,{columns:1,rows:1,reverse:!1,tiles:{delay:0,sequence:"Parallel"},main:{duration:.5,zIndex:2,current:{ease:"easeInOutCubic"}}},this.animationProperties);this.placeNextImage(),this.clonedImages.nextImage.css({overflow:"hidden",width:"100%",height:"100%"}),t.SmartSliderBackgroundAnimationTiled.prototype.setup.call(this,i)},s.prototype.renderTile=function(t,i,s,r,n,o){var a=e("<div></div>").css({position:"absolute",left:0,top:0,width:i,height:s,overflow:"hidden",zIndex:r.main.zIndex}).append(this.clonedCurrent().clone().css({position:"absolute",top:-o+"px",left:-n+"px"})).appendTo(t);return NextendTween.set(t.get(0),{transformPerspective:1e3,transformStyle:"preserve-3d"}),{current:a,tile:t}},s.prototype.transform=function(t,i,s){var r=e.extend(!0,{},t.main.current);r.rotationX=90*(3*Math.random()-1),r.rotationY=90*(3*Math.random()-1),r.rotationZ=90*(3*Math.random()-1),this.timeline.to(i.tile,t.main.duration*this.durationMultiplier,r,s)},s}),N2Require("SmartSliderBackgroundAnimationExplodeReversed",["SmartSliderBackgroundAnimationTiled"],[],function(e,t,i){function s(){t.SmartSliderBackgroundAnimationTiled.prototype.constructor.apply(this,arguments)}return s.prototype=Object.create(t.SmartSliderBackgroundAnimationTiled.prototype),s.prototype.constructor=s,s.prototype.setup=function(){var i=e.extend(!0,{columns:1,rows:1,reverse:!1,tiles:{delay:0,sequence:"Parallel"},main:{duration:.5,zIndex:2,current:{ease:"easeInOutCubic"}}},this.animationProperties);this.placeCurrentImage(),this.clonedImages.currentImage.css({overflow:"hidden",width:"100%",height:"100%"}),t.SmartSliderBackgroundAnimationTiled.prototype.setup.call(this,i)},s.prototype.renderTile=function(t,i,s,r,n,o){var a=e("<div></div>").css({position:"absolute",left:0,top:0,width:i,height:s,overflow:"hidden",zIndex:r.main.zIndex}).append(this.clonedNext().clone().css({position:"absolute",top:-o+"px",left:-n+"px"})).appendTo(t);return NextendTween.set(t.get(0),{transformPerspective:1e3,transformStyle:"preserve-3d"}),{next:a,tile:t}},s.prototype.transform=function(t,i,s){var r=e.extend(!0,{},t.main.current);r.rotationX=90*(3*Math.random()-1),r.rotationY=90*(3*Math.random()-1),r.rotationZ=30*(3*Math.random()-1),this.timeline.from(i.tile,t.main.duration*this.durationMultiplier,r,s)},s}),N2Require("SmartSliderBackgroundAnimationFlat",["SmartSliderBackgroundAnimationTiled"],[],function(e,t,i){function s(){t.SmartSliderBackgroundAnimationTiled.prototype.constructor.apply(this,arguments)}return s.prototype=Object.create(t.SmartSliderBackgroundAnimationTiled.prototype),s.prototype.constructor=s,s.prototype.setup=function(){var i=e.extend(!0,{columns:1,rows:1,tiles:{cropOuter:!1,crop:!0,delay:0,sequence:"Parallel"},main:{type:"next",duration:.5,real3D:!0,zIndex:1,current:{ease:"easeInOutCubic"},next:{ease:"easeInOutCubic"}}},this.animationProperties);this.reversed&&("undefined"!=typeof i.invert&&e.extend(!0,i.main,i.invert),"undefined"!=typeof i.invertTiles&&e.extend(i.tiles,i.invertTiles)),t.SmartSliderBackgroundAnimationTiled.prototype.setup.call(this,i),i.tiles.cropOuter&&this.container.css("overflow","hidden")},s.prototype.renderTile=function(t,i,s,r,n,o){r.tiles.crop&&t.css("overflow","hidden");var a=e("<div></div>").css({position:"absolute",left:0,top:0,width:i,height:s,overflow:"hidden",zIndex:r.main.zIndex}).append(this.clonedCurrent().clone().css({position:"absolute",top:-o+"px",left:-n+"px"})).appendTo(t),l=e("<div></div>").css({position:"absolute",left:0,top:0,width:i,height:s,overflow:"hidden",zIndex:1}).append(this.clonedNext().clone().css({position:"absolute",top:-o+"px",left:-n+"px"})).appendTo(t);return r.main.real3D&&(NextendTween.set(t.get(0),{transformStyle:"preserve-3d"}),NextendTween.set(a.get(0),{transformStyle:"preserve-3d"}),NextendTween.set(l.get(0),{transformStyle:"preserve-3d"})),{current:a,next:l}},s.prototype.transform=function(e,t,i){var s=e.main;"current"!=s.type&&"both"!=s.type||this.timeline.to(t.current,s.duration*this.durationMultiplier,s.current,i),"next"!=s.type&&"both"!=s.type||this.timeline.from(t.next,s.duration*this.durationMultiplier,s.next,i)},s}),N2Require("SmartSliderBackgroundAnimationSlixes",["SmartSliderBackgroundAnimationTiled"],[],function(e,t,i){function s(){t.SmartSliderBackgroundAnimationTiled.prototype.constructor.apply(this,arguments)}return s.prototype=Object.create(t.SmartSliderBackgroundAnimationTiled.prototype),s.prototype.constructor=s,s.prototype.setup=function(){var i=e.extend(!0,{columns:2,rows:2,main:{duration:2,zIndex:2}},this.animationProperties);this.placeNextImage(),this.clonedImages.nextImage.css({overflow:"hidden",width:"100%",height:"100%"}),t.SmartSliderBackgroundAnimationTiled.prototype.setup.call(this,i)},s.prototype.renderTile=function(t,i,s,r,n,o){this.container.css("overflow","hidden");var a=e("<div></div>").css({position:"absolute",left:0,top:0,width:i,height:s,overflow:"hidden",zIndex:r.main.zIndex}).append(this.clonedCurrent().clone().css({position:"absolute",top:-o+"px",left:-n+"px"})).appendTo(t);return NextendTween.set(t.get(0),{transformPerspective:1e3,transformStyle:"preserve-3d"}),{current:a,tile:t}},s.prototype.animate=function(t,i,s){this.timeline.to(s[0][0].tile,t.main.duration*this.durationMultiplier,{left:"-50%",ease:"easeInOutCubic"},0),this.timeline.to(s[0][1].tile,t.main.duration*this.durationMultiplier,{left:"-50%",ease:"easeInOutCubic"},.3),this.timeline.to(s[1][0].tile,t.main.duration*this.durationMultiplier,{left:"100%",ease:"easeInOutCubic"},.15),this.timeline.to(s[1][1].tile,t.main.duration*this.durationMultiplier,{left:"100%",ease:"easeInOutCubic"},.45),e("<div />").css({position:"absolute",left:0,top:0,width:"100%",height:"100%",overflow:"hidden"}).prependTo(this.clonedImages.nextImage.parent()).append(this.clonedImages.nextImage),this.timeline.fromTo(this.clonedImages.nextImage,t.main.duration*this.durationMultiplier,{scale:1.3},{scale:1},.45)},s}),N2Require("SmartSliderBackgroundAnimationTiled",["SmartSliderBackgroundAnimationFluxAbstract"],[],function(e,t,i){function s(){t.SmartSliderBackgroundAnimationFluxAbstract.prototype.constructor.apply(this,arguments),this.setup()}return s.prototype=Object.create(t.SmartSliderBackgroundAnimationFluxAbstract.prototype),s.prototype.constructor=s,s.prototype.setup=function(t){var i=e("<div></div>").css({position:"absolute",left:0,top:0,width:this.w,height:this.h});this.container=i,NextendTween.set(i.get(0),{force3D:!0,perspective:1e3});for(var s=[],r=[],n=t.columns,o=t.rows,a=Math.floor(this.w/n),l=Math.floor(this.h/o),d=this.w-n*a,h=Math.ceil(d/n),p=this.h-o*l,c=Math.ceil(p/o),u=0,m=0;n>m;m++){s[m]=[];var f=a,g=0;if(d>0){var y=d>=h?h:d;f+=y,d-=y}for(var v=p,S=0;o>S;S++){var b=l;if(v>0){var y=v>=c?c:v;b+=y,v-=y}var x=e('<div class="tile tile-'+m+"-"+S+'"></div>').css({position:"absolute",top:g+"px",left:u+"px",width:f+"px",height:b+"px",zIndex:-Math.abs(m-parseInt(n/2))+n-Math.abs(S-parseInt(o/2))}).appendTo(i),w=this.renderTile(x,f,b,t,u,g);r.push(w),s[m][S]=w,g+=b}u+=f}i.appendTo(this.containerElement),this.preSetup(),this.animate(t,r,s)},s.prototype.animate=function(t,i,s){this["sequence"+t.tiles.sequence](e.proxy(this.transform,this,t),i,s,t.tiles.delay*this.durationMultiplier)},s.prototype.sequenceParallel=function(e,t){e(t,null)},s.prototype.sequenceRandom=function(e,t,i,s){for(var r=this.timeline.totalDuration(),n=0;n<t.length;n++)e(t[n],r+Math.random()*s)},s.prototype.sequenceForwardCol=function(e,t,i,s){for(var r=this.timeline.totalDuration(),n=0;n<t.length;n++)e(t[n],r+s*n)},s.prototype.sequenceBackwardCol=function(e,t,i,s){for(var r=this.timeline.totalDuration(),n=t.length-1,o=0;o<t.length;o++)e(t[o],r+s*(n-o))},s.prototype.sequenceForwardRow=function(e,t,i,s){for(var r=this.timeline.totalDuration(),n=0,o=0;o<i[0].length;o++)for(var a=0;a<i.length;a++)e(i[a][o],r+s*n),n++},s.prototype.sequenceBackwardRow=function(e,t,i,s){for(var r=this.timeline.totalDuration(),n=t.length-1,o=0;o<i[0].length;o++)for(var a=0;a<i.length;a++)e(i[a][o],r+s*n),n--},s.prototype.sequenceForwardDiagonal=function(e,t,i,s){for(var r=this.timeline.totalDuration(),n=0;n<i[0].length;n++)for(var o=0;o<i.length;o++)e(i[o][n],r+s*(o+n))},s.prototype.sequenceBackwardDiagonal=function(e,t,i,s){for(var r=this.timeline.totalDuration(),n=i[0].length+i.length-2,o=0;o<i[0].length;o++)for(var a=0;a<i.length;a++)e(i[a][o],r+s*(n-a-o))},s}),N2Require("SmartSliderBackgroundAnimationTurn",["SmartSliderBackgroundAnimationFluxAbstract"],[],function(e,t,i){function s(){t.SmartSliderBackgroundAnimationFluxAbstract.prototype.constructor.apply(this,arguments);var i=e.extend(!0,{perspective:1.5*this.w,duration:.8,direction:"left"},this.animationProperties);this.reversed&&("left"==i.direction?i.direction="right":i.direction="left");var s=parseInt(this.w/2);this.clonedCurrent().css({position:"absolute",top:0,left:"left"==i.direction?-1*(this.w/2):0}),this.clonedNext().css({position:"absolute",top:0,left:"left"==i.direction?0:-1*(this.w/2)});var r=e('<div class="tab"></div>').css({width:s,height:this.h,position:"absolute",top:"0px",left:"left"==i.direction?s:"0","z-index":101});NextendTween.set(r,{transformStyle:"preserve-3d",transformOrigin:"left"==i.direction?"0px 0px":s+"px 0px"});var n=e('<div class="n2-ff-3d"></div>').append(this.clonedCurrent()).css({width:s,height:this.h,position:"absolute",top:0,left:0,"-webkit-transform":"translateZ(0.1px)",overflow:"hidden"}).appendTo(r);NextendTween.set(n,{backfaceVisibility:"hidden",transformStyle:"preserve-3d"});var o=e('<div class="n2-ff-3d"></div>').append(this.clonedNext()).appendTo(r).css({width:s,height:this.h,position:"absolute",top:0,left:0,overflow:"hidden"});NextendTween.set(o,{backfaceVisibility:"hidden",transformStyle:"preserve-3d",rotationY:180,rotationZ:0});var a=e("<div></div>").append(this.clonedCurrent().clone().css("left","left"==i.direction?0:-s)).css({position:"absolute",top:0,left:"left"==i.direction?"0":s,width:s,height:this.h,zIndex:100,overflow:"hidden"}),l=e('<div class="overlay"></div>').css({position:"absolute",top:0,left:"left"==i.direction?s:0,width:s,height:this.h,background:"#000",opacity:1,overflow:"hidden"}),d=e("<div></div>").css({width:this.w,height:this.h,position:"absolute",top:0,left:0}).append(r).append(a).append(l);NextendTween.set(d,{perspective:i.perspective,perspectiveOrigin:"50% 50%"}),this.placeNextImage(),this.clonedImages.nextImage.css({overflow:"hidden",width:"100%",height:"100%"}),this.containerElement.append(d),this.preSetup(),this.timeline.to(r.get(0),i.duration*this.durationMultiplier,{rotationY:"left"==i.direction?-180:180},0),this.timeline.to(l.get(0),i.duration*this.durationMultiplier,{opacity:0},0)}return s.prototype=Object.create(t.SmartSliderBackgroundAnimationFluxAbstract.prototype),s.prototype.constructor=s,s.prototype.getExtraDelay=function(){return 0},s}),N2Require("SmartSliderBackgroundAnimationFluxAbstract",["SmartSliderBackgroundAnimationAbstract"],[],function(e,t,i){function s(){this.shiftedPreSetup=!1,this._clonedCurrent=!1,this._clonedNext=!1,t.SmartSliderBackgroundAnimationAbstract.prototype.constructor.apply(this,arguments),this.w=this.original.currentImage.width(),this.h=this.original.currentImage.height()}return s.prototype=Object.create(t.SmartSliderBackgroundAnimationAbstract.prototype),s.prototype.constructor=s,s.prototype.clonedCurrent=function(){return this._clonedCurrent||(this._clonedCurrent=this.original.currentImage.clone().css({width:this.w,height:this.h}),this._clonedCurrent.find(".n2-ss-slide-background-video").remove(),NextendTween.set(this._clonedCurrent,{transform:"none"})),this._clonedCurrent},s.prototype.clonedNext=function(){return this._clonedNext||(this._clonedNext=this.original.nextImage.clone().css({width:this.w,height:this.h}),this._clonedNext.find(".n2-ss-slide-background-video").remove(),NextendTween.set(this._clonedNext,{transform:"none"})),this._clonedNext},s.prototype.preSetup=function(){0!=this.shiftedBackgroundAnimation?this.shiftedPreSetup=!0:this._preSetup()},s.prototype._preSetup=function(e){this.timeline.to(this.original.currentImage.get(0),this.getExtraDelay(),{opacity:0},0),this.original.nextImage.css("opacity",0)},s.prototype.postSetup=function(){this.timeline.to(this.original.nextImage.get(0),this.getExtraDelay(),{opacity:1})},s.prototype.getExtraDelay=function(){return.2},s.prototype.ended=function(){this.original.currentImage.css("opacity",1),this.containerElement.html("")},s.prototype.revertEnded=function(){this.original.nextImage.css("opacity",1),this.containerElement.html("")},s}),N2Require("SmartSliderMainAnimationAbstract",[],[],function(e,t,i){function s(t,i){this.state="ended",this.isTouch=!1,this.isReverseAllowed=!0,this.isReverseEnabled=!1,this.reverseSlideIndex=null,this.isNoAnimation=!1,this.slider=t,this.parameters=e.extend({duration:1500,ease:"easeInOutQuint"},i),this.parameters.duration/=1e3,this.sliderElement=t.sliderElement,this.timeline=new NextendTimeline({paused:!0}),this.sliderElement.on("mainAnimationStart",e.proxy(function(e,t,i,s){this._revertCurrentSlideIndex=i,this._revertNextSlideIndex=s},this))}return s.prototype.setToStarterSlide=function(e){},s.prototype.enableReverseMode=function(){this.isReverseEnabled=!0,this.reverseTimeline=new NextendTimeline({paused:!0}),this.sliderElement.triggerHandler("reverseModeEnabled",this.reverseSlideIndex)},s.prototype.disableReverseMode=function(){this.isReverseEnabled=!1},s.prototype.setTouch=function(e){this.isTouch=e},s.prototype.setTouchProgress=function(e){this.isReverseEnabled?this._setTouchProgressWithReverse(e):this._setTouchProgress(e)},s.prototype._setTouchProgress=function(e){"ended"!=this.state&&(0>=e?this.timeline.progress(Math.max(e,1e-6),!1):e>=0&&1>=e&&this.timeline.progress(e))},s.prototype._setTouchProgressWithReverse=function(e){0==e?(this.reverseTimeline.progress(0),this.timeline.progress(e,!1)):e>=0&&1>=e?(this.reverseTimeline.progress(0),this.timeline.progress(e)):0>e&&e>=-1&&(this.timeline.progress(0),this.reverseTimeline.progress(Math.abs(e)))},s.prototype.setTouchEnd=function(e,t,i){"ended"!=this.state&&(this.isReverseEnabled?this._setTouchEndWithReverse(e,t,i):this._setTouchEnd(e,t,i))},s.prototype._setTouchEnd=function(e,t,i){e&&t>0?(this.fixTouchDuration(this.timeline,t,i),this.timeline.play()):(this.revertCB(this.timeline),this.fixTouchDuration(this.timeline,1-t,i),this.timeline.reverse(),this.willRevertTo(this._revertCurrentSlideIndex,this._revertNextSlideIndex))},s.prototype._setTouchEndWithReverse=function(e,t,i){e?0>t&&this.reverseTimeline.totalDuration()>0?(this.fixTouchDuration(this.reverseTimeline,t,i),this.reverseTimeline.play(),this.willRevertTo(this.reverseSlideIndex,this._revertNextSlideIndex)):(this.willCleanSlideIndex(this.reverseSlideIndex),this.fixTouchDuration(this.timeline,t,i),this.timeline.play()):(0>t?(this.revertCB(this.reverseTimeline),this.fixTouchDuration(this.reverseTimeline,1-t,i),this.reverseTimeline.reverse()):(this.revertCB(this.timeline),this.fixTouchDuration(this.timeline,1-t,i),this.timeline.reverse()),this.willCleanSlideIndex(this.reverseSlideIndex),this.willRevertTo(this._revertCurrentSlideIndex,this._revertNextSlideIndex))},s.prototype.fixTouchDuration=function(e,t,i){var s=e.totalDuration(),r=Math.max(s/3,Math.min(s,i/Math.abs(t)/1e3));r!=s&&e.totalDuration(r)},s.prototype.getState=function(){return this.state},s.prototype.timeScale=function(){return arguments.length>0?(this.timeline.timeScale(arguments[0]),this):this.timeline.timeScale()},s.prototype.changeTo=function(t,i,s,r){if(this._initAnimation(t,i,s),this.state="initAnimation",this.timeline.paused(!0),this.timeline.eventCallback("onStart",this.onChangeToStart,[t,i,r],this),this.timeline.eventCallback("onComplete",this.onChangeToComplete,[t,i,r],this),this.timeline.eventCallback("onReverseComplete",null),this.revertCB=e.proxy(function(e){e.eventCallback("onReverseComplete",this.onReverseChangeToComplete,[i,t,r],this)},this),this.slider.parameters.dynamicHeight){var n=new NextendTimeline;this.slider.responsive.doResize(null,!1,n,i,.6),this.timeline.add(n)}this.isTouch||this.timeline.play()},s.prototype.willRevertTo=function(t,i){this.sliderElement.triggerHandler("mainAnimationWillRevertTo",[t,i]),this.sliderElement.one("mainAnimationComplete",e.proxy(this.revertTo,this,t,i))},s.prototype.revertTo=function(e,t){this.slider.revertTo(e,t),this.slider.slides[t].triggerHandler("mainAnimationStartInCancel")},s.prototype.willCleanSlideIndex=function(t){this.sliderElement.one("mainAnimationComplete",e.proxy(this.cleanSlideIndex,this,t))},s.prototype.cleanSlideIndex=function(){},s.prototype._initAnimation=function(e,t,i){},s.prototype.onChangeToStart=function(e,t,i){this.state="playing";var s=[this,e.index,t.index,i];this.sliderElement.trigger("mainAnimationStart",s),this.slider.slides[e.index].trigger("mainAnimationStartOut",s),this.slider.slides[t.index].trigger("mainAnimationStartIn",s)},s.prototype.onChangeToComplete=function(e,t,i){var s=[this,e.index,t.index,i];this.clearTimelines(),this.disableReverseMode(),this.slider.slides[e.index].trigger("mainAnimationCompleteOut",s),this.slider.slides[t.index].trigger("mainAnimationCompleteIn",s),this.state="ended",this.sliderElement.trigger("mainAnimationComplete",s)},s.prototype.onReverseChangeToComplete=function(e,t,i){s.prototype.onChangeToComplete.apply(this,arguments)},s.prototype.clearTimelines=function(){this.revertCB=function(){},this.timeline.clear(),this.timeline.timeScale(1)},s.prototype.getEase=function(){return this.isTouch?"linear":this.parameters.ease},s}),N2Require("SmartSliderControlAutoplay",[],[],function(e,t,i){"use strict";function s(t,i){this._paused=!0,this._wait=!1,this._disabled=!1,this._currentCount=0,this._progressEnabled=!1,this.timeline=null,this.hasButton=!1,this.deferredsMediaPlaying=null,this.deferredMouseLeave=null,this.deferredMouseEnter=null,this.mainAnimationDeferred=!0,this.autoplayDeferred=null,this.slider=t,this.parameters=e.extend({enabled:0,start:1,duration:8e3,autoplayToSlide:0,autoplayToSlideIndex:-1,allowReStart:0,pause:{mouse:"enter",click:!0,mediaStarted:!0},resume:{click:0,mouse:0,mediaEnded:!0}},i),this.parameters.enabled?(this.parameters.duration/=1e3,t.controls.autoplay=this,this.deferredsExtraPlaying={},this.slider.visible(e.proxy(this.onReady,this))):this.disable(),t.controls.autoplay=this}var r=!1;return s.prototype.onReady=function(){this.autoplayDeferred=e.Deferred();var t={_progress:0};this.timeline=NextendTween.to(t,this.getSlideDuration(this.slider.currentSlide.index),{_progress:1,paused:!0,onComplete:e.proxy(this.next,this)}),this._progressEnabled&&this.enableProgress();var i=this.slider.sliderElement;if(this.parameters.start?this.continueAutoplay():this.pauseAutoplayExtraPlaying(null,"autoplayButton"),i.on("mainAnimationStart.autoplay",e.proxy(this.onMainAnimationStart,this)),"0"!=this.parameters.pause.mouse)switch(i.on("touchend.autoplay",function(){r=!0,setTimeout(function(){r=!1},300)}),this.parameters.pause.mouse){case"enter":i.on("mouseenter.autoplay",e.proxy(this.pauseAutoplayMouseEnter,this)),i.on("mouseleave.autoplay",e.proxy(this.pauseAutoplayMouseEnterEnded,this));break;case"leave":i.on("mouseleave.autoplay",e.proxy(this.pauseAutoplayMouseLeave,this)),i.on("mouseenter.autoplay",e.proxy(this.pauseAutoplayMouseLeaveEnded,this))}if(this.parameters.pause.click&&!this.parameters.resume.click?i.on("universalclick.autoplay",e.proxy(this.pauseAutoplayUniversal,this)):!this.parameters.pause.click&&this.parameters.resume.click?i.on("universalclick.autoplay",e.proxy(function(e){this.pauseAutoplayExtraPlayingEnded(e,"autoplayButton")},this)):this.parameters.pause.click&&this.parameters.resume.click&&i.on("universalclick.autoplay",e.proxy(function(e){this._paused?this.pauseAutoplayExtraPlayingEnded(e,"autoplayButton"):this.pauseAutoplayUniversal(e)},this)),this.parameters.pause.mediaStarted&&(this.deferredsMediaPlaying={},i.on("mediaStarted.autoplay",e.proxy(this.pauseAutoplayMediaPlaying,this)),i.on("mediaEnded.autoplay",e.proxy(this.pauseAutoplayMediaPlayingEnded,this))),"0"!=this.parameters.resume.mouse)switch(this.parameters.resume.mouse){case"enter":this.hasButton&&"0"!=this.parameters.pause.mouse?i.on("mouseenter.autoplay",e.proxy(this.continueAutoplay,this)):i.on("mouseenter.autoplay",e.proxy(function(e){this.pauseAutoplayExtraPlayingEnded(e,"autoplayButton")},this));break;case"leave":this.hasButton&&"0"!=this.parameters.pause.mouse?i.on("mouseleave.autoplay",e.proxy(this.continueAutoplay,this)):i.on("mouseleave.autoplay",e.proxy(function(e){this.pauseAutoplayExtraPlayingEnded(e,"autoplayButton")},this))}this.parameters.resume.mediaEnded&&i.on("mediaEnded.autoplay",e.proxy(this.continueAutoplay,this)),i.on("autoplayExtraWait.autoplay",e.proxy(this.pauseAutoplayExtraPlaying,this)),i.on("autoplayExtraContinue.autoplay",e.proxy(this.pauseAutoplayExtraPlayingEnded,this)),this.slider.sliderElement.on("mainAnimationComplete.autoplay",e.proxy(this.onMainAnimationComplete,this))},s.prototype.enableProgress=function(){this.timeline&&this.timeline.eventCallback("onUpdate",e.proxy(this.onUpdate,this)),this._progressEnabled=!0},s.prototype.onMainAnimationStart=function(t,i,s,r,n){this.mainAnimationDeferred=e.Deferred(),this.deActivate(0,"wait");for(var o in this.deferredsMediaPlaying)this.deferredsMediaPlaying[o].resolve()},s.prototype.onMainAnimationComplete=function(e,t,i,s){this.parameters.autoplayToSlideIndex>=0&&this.parameters.autoplayToSlideIndex==this.slider.currentRealSlide.index+1&&this.limitAutoplay(),this.timeline.duration(this.getSlideDuration(s)),this.mainAnimationDeferred.resolve(),this.continueAutoplay()},s.prototype.getSlideDuration=function(e){var t=this.slider.realSlides[this.slider.getRealIndex(e)],i=t.minimumSlideDuration;return.3>i&&i<this.parameters.duration&&(i=this.parameters.duration),i},s.prototype.continueAutoplay=function(t){"pending"==this.autoplayDeferred.state()&&this.autoplayDeferred.reject();var i=[];for(var s in this.deferredsExtraPlaying)i.push(this.deferredsExtraPlaying[s]);for(var s in this.deferredsMediaPlaying)i.push(this.deferredsMediaPlaying[s]);this.deferredMouseEnter&&i.push(this.deferredMouseEnter),this.deferredMouseLeave&&i.push(this.deferredMouseLeave),i.push(this.mainAnimationDeferred),this.autoplayDeferred=e.Deferred(),this.autoplayDeferred.done(e.proxy(this._continueAutoplay,this)),e.when.apply(e,i).done(e.proxy(function(){"pending"==this.autoplayDeferred.state()&&this.autoplayDeferred.resolve()},this))},s.prototype._continueAutoplay=function(){!this._paused&&!this._wait||this._disabled||(this._paused=!1,this._wait=!1,this.slider.sliderElement.triggerHandler("autoplayStarted"),1==this.timeline.progress()&&this.timeline.pause(0,!1),this.startTimeout(null))},s.prototype.pauseAutoplayUniversal=function(e){this.pauseAutoplayExtraPlaying(e,"autoplayButton"),this.deActivate(null,"pause")},s.prototype.pauseAutoplayMouseEnter=function(){r||(this.autoplayDeferred.reject(),this.deferredMouseEnter=e.Deferred(),this.deActivate(null,"leave"==this.parameters.resume.mouse?"wait":"pause"))},s.prototype.pauseAutoplayMouseEnterEnded=function(){this.deferredMouseEnter&&this.deferredMouseEnter.resolve()},s.prototype.pauseAutoplayMouseLeave=function(){this.autoplayDeferred.reject(),this.deferredMouseLeave=e.Deferred(),this.deActivate(null,"enter"==this.parameters.resume.mouse?"wait":"pause")},s.prototype.pauseAutoplayMouseLeaveEnded=function(){this.deferredMouseLeave&&this.deferredMouseLeave.resolve()},s.prototype.pauseAutoplayMediaPlaying=function(t,i){"undefined"!=typeof this.deferredsMediaPlaying[i]&&this.autoplayDeferred.reject(),this.deferredsMediaPlaying[i]=e.Deferred(),this.deActivate(null,"wait")},s.prototype.pauseAutoplayMediaPlayingEnded=function(e,t){"undefined"!=typeof this.deferredsMediaPlaying[t]&&(this.autoplayDeferred.reject(),this.deferredsMediaPlaying[t].resolve(),delete this.deferredsMediaPlaying[t])},s.prototype.pauseAutoplayExtraPlaying=function(t,i){"undefined"!=typeof this.deferredsExtraPlaying[i]&&this.autoplayDeferred.reject(),this.deferredsExtraPlaying[i]=e.Deferred(),this.deActivate(null,"pause")},s.prototype.pauseAutoplayExtraPlayingEnded=function(e,t){"undefined"!=typeof this.deferredsExtraPlaying[t]&&(this.autoplayDeferred.reject(),this.deferredsExtraPlaying[t].resolve(),delete this.deferredsExtraPlaying[t]),this.continueAutoplay()},s.prototype.deActivate=function(e,t){"pause"==t?this._paused||(this._paused=!0,0!==e&&this.slider.sliderElement.triggerHandler("autoplayPaused")):"wait"==t&&(this._wait||(this._wait=!0,0!==e&&this.slider.sliderElement.triggerHandler("autoplayWait"))),this.timeline&&this.timeline.pause(e,!1)},s.prototype.disable=function(){this.deActivate(0,"pause"),this.slider.sliderElement.triggerHandler("autoplayPaused"),this.slider.sliderElement.triggerHandler("autoplayDisabled"),this.slider.sliderElement.off(".autoplay"),this._disabled=!0},s.prototype.startTimeout=function(e){this._paused||this._disabled||this.timeline.play(e)},s.prototype.next=function(){this.timeline.pause(),this._currentCount++,(this.parameters.autoplayToSlide>0&&this._currentCount>=this.parameters.autoplayToSlide||this.parameters.autoplayToSlideIndex>=0&&this.parameters.autoplayToSlideIndex==this.slider.currentRealSlide.index+2)&&this.limitAutoplay(),this.slider.nextCarousel(!0)},s.prototype.limitAutoplay=function(){this.parameters.allowReStart?(this._currentCount=0,this.slider.sliderElement.triggerHandler("autoplayExtraWait","autoplayButton")):this.disable()},s.prototype.onUpdate=function(){this.slider.sliderElement.triggerHandler("autoplay",this.timeline.progress())},s}),N2Require("SmartSliderControlFullscreen",[],[],function(e,t,i){"use strict";function s(t,i,s){this.slider=t,this.responsive=this.slider.responsive,this._type=this.responsive.parameters.type,this._forceFull=this.responsive.parameters.forceFull,this.forceFullpage="auto"==this._type||"fullwidth"==this._type||"fullpage"==this._type,this.forceFullpage&&(this._upscale=this.responsive.parameters.upscale,this._minimumHeightRatio=e.extend({},this.responsive.parameters.minimumHeightRatio),this._maximumHeightRatio=e.extend({},this.responsive.parameters.maximumHeightRatio)),this.isFullScreen=!1,this.fullParent=this.slider.sliderElement.closest(".n2-ss-align"),this.browserSpecific={};var r=this.slider.sliderElement[0];r.requestFullscreen?(this.browserSpecific.requestFullscreen="requestFullscreen",this.browserSpecific.event="fullscreenchange"):r.msRequestFullscreen?(this.browserSpecific.requestFullscreen="msRequestFullscreen",this.browserSpecific.event="MSFullscreenChange"):r.mozRequestFullScreen?(this.browserSpecific.requestFullscreen="mozRequestFullScreen",this.browserSpecific.event="mozfullscreenchange"):r.webkitRequestFullscreen?(this.browserSpecific.requestFullscreen="webkitRequestFullscreen",
3
+ this.browserSpecific.event="webkitfullscreenchange"):(this.browserSpecific.requestFullscreen="nextendRequestFullscreen",this.browserSpecific.event="nextendfullscreenchange",this.fullParent[0][this.browserSpecific.requestFullscreen]=e.proxy(function(){this.fullParent.css({position:"fixed",left:0,top:0,width:"100%",height:"100%",backgroundColor:"#000",zIndex:1e6}),document.fullscreenElement=this.fullParent[0],this.triggerEvent(document,this.browserSpecific.event),e(window).trigger("resize")},this)),document.exitFullscreen?this.browserSpecific.exitFullscreen="exitFullscreen":document.msExitFullscreen?this.browserSpecific.exitFullscreen="msExitFullscreen":document.mozCancelFullScreen?this.browserSpecific.exitFullscreen="mozCancelFullScreen":document.webkitExitFullscreen?this.browserSpecific.exitFullscreen="webkitExitFullscreen":(this.browserSpecific.exitFullscreen="nextendExitFullscreen",this.fullParent[0][this.browserSpecific.exitFullscreen]=e.proxy(function(){this.fullParent.css({position:"",left:"",top:"",width:"",height:"",backgroundColor:"",zIndex:""}),document.fullscreenElement=null,this.triggerEvent(document,this.browserSpecific.event)},this)),document.addEventListener(this.browserSpecific.event,e.proxy(this.fullScreenChange,this))}return s.prototype.switchState=function(){this.isFullScreen=!this.isFullScreen,this.isFullScreen?this._fullScreen():this._normalScreen()},s.prototype.requestFullscreen=function(){return this.isFullScreen?!1:(this.isFullScreen=!0,this._fullScreen(),!0)},s.prototype.exitFullscreen=function(){return this.isFullScreen?(this.isFullScreen=!1,this._normalScreen(),!0):!1},s.prototype.triggerEvent=function(e,t){var i;document.createEvent?(i=document.createEvent("HTMLEvents"),i.initEvent(t,!0,!0)):document.createEventObject&&(i=document.createEventObject(),i.eventType=t),i.eventName=t,e.dispatchEvent?e.dispatchEvent(i):e.fireEvent&&htmlEvents["on"+t]?e.fireEvent("on"+i.eventType,i):e[t]?e[t]():e["on"+t]&&e["on"+t]()},s.prototype._fullScreen=function(){this.forceFullpage&&(this.responsive.parameters.type="fullpage",this.responsive.parameters.upscale=!0,this.responsive.parameters.forceFull=!1,this._marginLeft=this.responsive.containerElement[0].style.marginLeft,this.responsive.containerElement.css(nextend.rtl.marginLeft,0)),this.fullParent.css({width:"100%",height:"100%",backgroundColor:e("body").css("background-color")}).addClass("n2-ss-in-fullscreen"),this.fullParent.get(0)[this.browserSpecific.requestFullscreen]()},s.prototype._normalScreen=function(){document[this.browserSpecific.exitFullscreen]?document[this.browserSpecific.exitFullscreen]():this.fullParent[0][this.browserSpecific.exitFullscreen]&&this.fullParent[0][this.browserSpecific.exitFullscreen]()},s.prototype.fullScreenChange=function(){this.isDocumentInFullScreenMode()?(this.slider.sliderElement.triggerHandler("n2FullScreen"),e("html").addClass("n2-in-fullscreen"),this.isFullScreen=!0,e(window).trigger("resize")):this.forceFullpage&&(this.responsive.parameters.type=this._type,this.responsive.parameters.upscale=this._upscale,this.responsive.parameters.forceFull=this._forceFull,this.responsive.parameters.minimumHeightRatio=this._minimumHeightRatio,this.responsive.parameters.maximumHeightRatio=this._maximumHeightRatio,this.responsive.containerElement.css(nextend.rtl.marginLeft,this._marginLeft),this.fullParent.css({width:"",height:"",backgroundColor:""}).removeClass("n2-ss-in-fullscreen"),e("html").removeClass("n2-in-fullscreen"),e(window).trigger("resize"),this.isFullScreen=!1,this.slider.sliderElement.triggerHandler("n2ExitFullScreen"))},s.prototype.isDocumentInFullScreenMode=function(){return document.fullscreenElement&&null!==document.fullscreenElement||document.msFullscreenElement&&null!==document.msFullscreenElement||document.mozFullScreen||document.webkitIsFullScreen},s}),N2Require("SmartSliderControlKeyboard",[],[],function(e,t,i){"use strict";function s(t,i,r){this.slider=t,this.parameters=e.extend({},r),"vertical"==i?this.parseEvent=s.prototype.parseEventVertical:this.parseEvent=s.prototype.parseEventHorizontal,e(document).on("keydown",e.proxy(this.onKeyDown,this)),t.controls.keyboard=this}return s.prototype.isSliderOnScreen=function(){var t=this.slider.sliderElement.offset(),i=e(window).scrollTop(),s=this.slider.sliderElement.height();return t.top+.5*s>=i&&t.top-.5*s<=i+e(window).height()},s.prototype.onKeyDown=function(e){e.target.tagName.match(/BODY|DIV|IMG/)&&this.isSliderOnScreen()&&(e=e||window.event,this.parseEvent.call(this,e)&&(e.preventDefault(),e.stopImmediatePropagation()))},s.prototype.parseEventHorizontal=function(e){switch(e.keyCode){case 39:return this.slider[nextend.rtl.next](),!0;case 37:return this.slider[nextend.rtl.previous](),!0;default:return!1}},s.prototype.parseEventVertical=function(e){switch(e.keyCode){case 40:return this.slider.next(),!0;case 38:return this.slider.previous(),!0;default:return!1}},s}),N2Require("SmartSliderControlScroll",[],[],function(e,t,i){"use strict";function s(t){this.preventScroll=!1,this._preventScrollTimeout=null,this.slider=t,t.sliderElement.on("DOMMouseScroll mousewheel",e.proxy(this.onMouseWheel,this)),t.controls.scroll=this}return s.prototype.onMouseWheel=function(e){if(this.preventScroll)this.preventScrollTimeout(e);else{var t=!1;e.originalEvent&&(e.originalEvent.wheelDelta&&(t=e.originalEvent.wheelDelta/-1<0),e.originalEvent.deltaY&&(t=e.originalEvent.deltaY<0),e.originalEvent.detail&&(t=e.originalEvent.detail<0)),t?this.slider.previous()&&this.preventScrollTimeout(e):this.slider.next()&&this.preventScrollTimeout(e)}},s.prototype.preventScrollTimeout=function(t){null!==this._preventScrollTimeout&&clearTimeout(this._preventScrollTimeout),this.preventScroll=!0,t.preventDefault(),this._preventScrollTimeout=setTimeout(e.proxy(function(){this.preventScroll=!1,this._preventScrollTimeout=null},this),400)},s}),N2Require("SmartSliderControlTilt",[],[],function(e,t,i){"use strict";function s(t,i){return"undefined"==typeof window.DeviceOrientationEvent||"undefined"==typeof window.orientation?"Not supported":(this.timeout=null,this.slider=t,this.parameters=e.extend({duration:2e3},i),this.orientationchange(),window.addEventListener("orientationchange",e.proxy(this.orientationchange,this)),window.addEventListener("deviceorientation",e.proxy(this.handleOrientation,this),!0),void(t.controls.tilt=this))}return s.prototype.orientationchange=function(){switch(window.orientation){case-90:case 90:this.parseEvent=s.prototype.parseEventHorizontalLandscape;break;default:this.parseEvent=s.prototype.parseEventHorizontal}},s.prototype.clearTimeout=function(){this.timeout=null},s.prototype.handleOrientation=function(t){null==this.timeout&&this.parseEvent.call(this,t)&&(this.timeout=setTimeout(e.proxy(this.clearTimeout,this),this.parameters.duration),t.preventDefault())},s.prototype.parseEventHorizontal=function(e){return e.gamma>10?(this.slider.next(),!0):e.gamma<-10?(this.slider.previous(),!0):!1},s.prototype.parseEventHorizontalLandscape=function(e){return e.beta<-10?(this.slider.next(),!0):e.beta>10?(this.slider.previous(),!0):!1},s}),N2Require("SmartSliderControlTouch",[],[],function(e,t,i){"use strict";function s(t,i,s){this.currentAnimation=null,this.slider=t,this._animation=t.mainAnimation,this.parameters=e.extend({fallbackToMouseEvents:!0},s),this.swipeElement=this.slider.sliderElement.find("> .n2-ss-swipe-element"),"vertical"==i?this.setVertical():"horizontal"==i&&this.setHorizontal();var r=e.proxy(function(){var e=this;this._animation.isNoAnimation?N2EventBurrito(this.swipeElement.get(0),{mouse:this.parameters.fallbackToMouseEvents,axis:"horizontal"==i?"x":"y",start:function(){n=!1},move:function(t,i,s,r,o){var a=e._direction.measure(s);if(!o&&"unknown"!=a&&null===e.currentAnimation){if("ended"!=e._animation.state)return!1;e.distance=[0],e.swipeElement.addClass("n2-grabbing"),e.currentAnimation={direction:a};var l=e.slider.isChangePossible(e._direction[a]);if(!l)return e.currentAnimation=null,!1}if(e.currentAnimation){var d=e._direction.get(s,e.currentAnimation.direction);if(e.logDistance(d),(n||Math.abs(d)>e._direction.minDistance)&&t.cancelable)return n=!0,!0}return!1},end:function(t,i,s,r,n){if(null!==e.currentAnimation){var o=n?0:e.measureRealDirection();o&&e.slider[e._direction[e.currentAnimation.direction]](),e.swipeElement.removeClass("n2-grabbing"),e.currentAnimation=null}Math.abs(s.x)<10&&Math.abs(s.y)<10?e.onTap(t):nextend.preventClick()}}):N2EventBurrito(this.swipeElement.get(0),{mouse:this.parameters.fallbackToMouseEvents,axis:"horizontal"==i?"x":"y",start:function(e,t){n=!1},move:function(t,i,s,r,o){var a=e._direction.measure(s);if(!o&&"unknown"!=a&&null===e.currentAnimation){if("ended"!=e._animation.state)return!1;e.distance=[0],e.swipeElement.addClass("n2-grabbing"),e._animation.setTouch(e._direction.axis),e.currentAnimation={direction:a,percent:0};var l=e.slider[e._direction[a]](!1);if(!l)return e._animation.setTouch(!1),e.currentAnimation=null,!1}if(e.currentAnimation){var d=e._direction.get(s,e.currentAnimation.direction);if(e.logDistance(d),e.currentAnimation.percent<1){var h=Math.max(-.99999,Math.min(.99999,d/e.slider.dimensions.slider[e._property]));e.currentAnimation.percent=h,e._animation.setTouchProgress(h)}if((n||Math.abs(d)>e._direction.minDistance)&&t.cancelable)return n=!0,!0}return!1},end:function(t,i,s,r,n){if(null!==e.currentAnimation){var o=n?0:e.measureRealDirection(),a=e._animation.timeline.progress();1!=a&&e._animation.setTouchEnd(o,e.currentAnimation.percent,s.time),e.swipeElement.removeClass("n2-grabbing"),e._animation.setTouch(!1),e.currentAnimation=null}Math.abs(s.x)<10&&Math.abs(s.y)<10?e.onTap(t):nextend.preventClick()}})},this);if(navigator.userAgent.toLowerCase().indexOf("android")>-1){var o=this.swipeElement.parent();1!=o.css("opacity")?this.swipeElement.parent().one("transitionend",r):r()}else r();this.parameters.fallbackToMouseEvents||this.swipeElement.on("click",e.proxy(this.onTap,this)),this.parameters.fallbackToMouseEvents&&this.swipeElement.addClass("n2-grab"),t.controls.touch=this}var r=window.navigator.pointerEnabled||window.navigator.msPointerEnabled,n=!1,o=!1;return s.prototype.setHorizontal=function(){this._property="width",this._direction={left:nextend.rtl.next,right:nextend.rtl.previous,up:null,down:null,axis:"horizontal",minDistance:10,measure:function(e){return!n&&Math.abs(e.x)<10||0==e.x||Math.abs(e.x)<Math.abs(e.y)?"unknown":e.x<0?"left":"right"},get:function(e,t){return"left"==t?-e.x:e.x}},r&&(this.swipeElement.css("-ms-touch-action","pan-y"),this.swipeElement.css("touch-action","pan-y"))},s.prototype.setVertical=function(){this._property="height",this._direction={left:null,right:null,up:"next",down:"previous",axis:"vertical",minDistance:1,measure:function(e){return!n&&Math.abs(e.y)<1||0==e.y||Math.abs(e.y)<Math.abs(e.x)?"unknown":e.y<0?"up":"down"},get:function(e,t){return"up"==t?-e.y:e.y}},r&&(this.swipeElement.css("-ms-touch-action","pan-x"),this.swipeElement.css("touch-action","pan-x"))},s.prototype.logDistance=function(e){this.distance.length>3&&this.distance.shift(),this.distance.push(e)},s.prototype.measureRealDirection=function(){var e=this.distance[0],t=this.distance[this.distance.length-1];return t>=0&&e>t||0>t&&t>e?0:1},s.prototype.onTap=function(t){o||(e(t.target).trigger("n2click"),o=!0,setTimeout(function(){o=!1},500))},s}),N2Require("SmartSliderBackgroundImage",[],[],function(e,t,i){function s(t,i,s){this.loadStarted=!1,this.loadAllowed=!1,this.width=0,this.height=0,this.slide=t,this.element=i,this.$mask=this.element.find(".n2-ss-slide-background-mask"),this.manager=s,this.loadDeferred=e.Deferred(),this.currentSrc="",this.mode=i.data("mode"),this.opacity=i.data("opacity"),this.blur=i.data("blur"),this.x=i.data("x"),this.y=i.data("y"),this.hasImage=!1,this.$image=this.$mask.find("img"),this.$image.length?(this.hasImage=!0,this.startImageMode()):this.startColorMode()}return s.prototype.startColorMode=function(){this.loadDeferred.resolve()},s.prototype.startImageMode=function(){if("fixed"==this.mode&&(n2const.isPhone&&!this.slide.slider.parameters["background.parallax.mobile"]||n2const.isTablet&&!this.slide.slider.parameters["background.parallax.tablet"])&&(this.mode="fill"),this.$image.css("display","none"),this.$background=e('<div class="n2-ss-background-image"/>').css({opacity:this.opacity,backgroundPosition:this.x+"% "+this.y+"%"}).appendTo(this.$mask),window.n2FilterProperty&&(this.blur>0?this.$background.css({margin:"-"+2*this.blur+"px",padding:2*this.blur+"px"}).css(window.n2FilterProperty,"blur("+this.blur+"px)"):this.$background.css({margin:"",padding:""}).css(window.n2FilterProperty,"")),"fixed"==this.mode&&this.startFixed(),this.desktopSrc=this.element.data("desktop")||"",this.tabletSrc=this.element.data("tablet")||"",this.mobileSrc=this.element.data("mobile")||"",nextend.isRetina){var t=this.element.data("desktop-retina");t&&(this.desktopSrc=t),t=this.element.data("tablet-retina"),t&&(this.tabletSrc=t),t=this.element.data("mobile-retina"),t&&(this.mobileSrc=t)}},s.prototype.preLoad=function(){return this.loadStarted||(this.slide.$element.find("[data-lazysrc]").each(function(){var t=e(this);t.attr("src",t.data("lazysrc"))}),this.loadStarted=!0),"pending"==this.loadDeferred.state()&&(this.loadAllowed=!0,this.manager.deviceDeferred.done(e.proxy(function(){this.updateBackgroundToDevice(this.manager.device),this.$background.n2imagesLoaded({background:!0},e.proxy(function(e){var t=e.images[0].img;this.width=t.naturalWidth,this.height=t.naturalHeight,this.isLoaded=!0,this.loadDeferred.resolve(this.element)},this))},this))),this.loadDeferred},s.prototype.updateBackgroundToDevice=function(e){var t=this.desktopSrc;"mobile"==e.device?this.mobileSrc?t=this.mobileSrc:this.tabletSrc&&(t=this.tabletSrc):"tablet"==e.device&&this.tabletSrc&&(t=this.tabletSrc),t?this.setSrc(t):this.setSrc("")},s.prototype.setSrc=function(e){this.loadAllowed&&e!=this.currentSrc&&(""===e?this.$background.css("background-image",""):this.$background.css("background-image",'url("'+e+'")'),this.currentSrc=e)},s.prototype.startFixed=function(){n2const.isEdge||(this.slide.slider.parameters.allowBGImageAttachmentFixed&&!n2const.isIOS?(this.$background.css("background-repeat","repeat"),this.$background.css("position","static"),this.$background.css("background-attachment","fixed")):n2const.isIE||this.slide.slider.startedDeferred.done(e.proxy(function(){fixedBackground.addElement(this.$background,this.element)},this)))},s.prototype.hack=function(){NextendTween.set(this.element,{rotation:1e-4})},s}),N2Require("FrontendComponent",[],[],function(e,t,i){function s(e,i,s,r){this.wraps={},this.isVisible=!0,this.device="",this.children=[],this.slide=e,this.parent=i,this.$layer=s.data("layer",this);var n=this.$layer.find("> .n2-ss-layer-mask");n.length&&(this.wraps.mask=n);var o=this.$layer.find("> .n2-ss-layer-parallax");switch(o.length&&(this.wraps.parallax=o),s.data("pm")){case"absolute":this.placement=new t.FrontendPlacementAbsolute(this);break;case"normal":this.placement=new t.FrontendPlacementNormal(this);break;case"content":this.placement=new t.FrontendPlacementContent(this);break;default:this.placement=new t.FrontendPlacementDefault(this)}if(this.parallax=s.data("parallax"),this.baseSize=this.baseSize||100,this.isAdaptiveFont=this.get("adaptivefont"),this.refreshBaseSize(this.getDevice("fontsize")),r)for(var a=0;a<r.length;a++)switch(r.eq(a).data("type")){case"content":this.children.push(new t.FrontendComponentContent(this.slide,this,r.eq(a)));break;case"row":this.children.push(new t.FrontendComponentRow(this.slide,this,r.eq(a)));break;case"col":this.children.push(new t.FrontendComponentCol(this.slide,this,r.eq(a)));break;case"group":break;default:this.children.push(new t.FrontendComponentLayer(this.slide,this,r.eq(a)))}}return s.prototype.refreshBaseSize=function(e){this.isAdaptiveFont?this.baseSize=16*e/100:this.baseSize=this.parent.baseSize*e/100},s.prototype.start=function(){this.placement.start();for(var e=0;e<this.children.length;e++)this.children[e].start();var t=this.get("rotation")||0;if(t/360!=0){var i=this.addWrap("rotation","<div class='n2-ss-layer-rotation'></div>");NextendTween.set(i[0],{rotationZ:t})}},s.prototype.onDeviceChange=function(e){this.device=e;var t=this.isVisible;if(this.isVisible=this.getDevice(""),this.isVisible===i&&(this.isVisible=1),t&&!this.isVisible?(this.$layer.data("shows",0),this.$layer.css("display","none")):!t&&this.isVisible&&(this.$layer.data("shows",1),this.$layer.css("display","block")),this.isVisible){var s=this.getDevice("fontsize");this.refreshBaseSize(s),this.isAdaptiveFont?this.$layer.css("font-size",16*s/100+"px"):this.$layer.css("font-size",s+"%");for(var r=0;r<this.children.length;r++)this.children[r].onDeviceChange(e);this.placement.onDeviceChange(e),this.onAfterDeviceChange(e)}},s.prototype.onAfterDeviceChange=function(e){},s.prototype.onResize=function(e,t,i){if(this.isVisible||this.placement.alwaysResize){for(var s=0;s<this.children.length;s++)this.children[s].onResize(e,t,i);this.placement.onResize(e,t,i)}},s.prototype.getDevice=function(e,t){var s=this.$layer.data(this.device+e);return s!=i?s:"desktopportrait"!=this.device?this.$layer.data("desktopportrait"+e):t!==i?t:0},s.prototype.get=function(e){return this.$layer.data(e)},s.prototype.getParallaxNodes=function(){var e=[];if(this.isVisible){this.parallax&&e.push(this.$layer[0]);for(var t=0;t<this.children.length;t++)e.push.apply(e,this.children[t].getParallaxNodes())}return e},s.prototype.addWrap=function(t,s){if(this.wraps[t]===i){var r=e(s);switch(t){case"rotation":this.wraps.mask!==i?r.appendTo(this.wraps.mask):this.wraps.parallax!==i?r.appendTo(this.wraps.parallax):r.appendTo(this.$layer),r.append(this.getContents())}this.wraps[t]=r}return r},s.prototype.getContents=function(){return!1},s}),N2Require("FrontendPlacement",[],[],function(e,t,i){function s(e){this.layer=e,this.alwaysResize=!1}return s.prototype.start=function(){},s.prototype.onDeviceChange=function(e){},s.prototype.onResize=function(e,t,i){},s}),N2Require("FrontendSliderSlide",["FrontendComponentSlideAbstract"],[],function(e,t,i){function s(i,s,r){this.isStaticSlide=!1,this.originalIndex=r,this.index=r,this.localIndex=r,this.$element=s.data("slide",this),this.id=this.$element.data("id"),this.backgroundImage=!1,this.backgroundVideo=!1,this.slides=[this],i.parameters.admin?this.minimumSlideDuration=0:(this.minimumSlideDuration=s.data("slide-duration"),e.isNumeric(this.minimumSlideDuration)||(this.minimumSlideDuration=0));var n=s.find(".n2-ss-layers-container");t.FrontendComponentSlideAbstract.prototype.constructor.call(this,i,n)}return s.prototype=Object.create(t.FrontendComponentSlideAbstract.prototype),s.prototype.constructor=s,s.prototype.init=function(){t.FrontendComponentSlideAbstract.prototype.init.call(this);var e=this.slider.findSlideBackground(this);e.length>0&&(this.slider.isAdmin?this.backgroundImage=new t.SmartSliderBackgroundImageAdmin(this,e,this.slider.backgroundImages):this.backgroundImage=new t.SmartSliderBackgroundImage(this,e,this.slider.backgroundImages)),this.$element.data("slideBackground",this.backgroundImage);var i=this.backgroundImage.element.find(".n2-ss-slide-background-video");i.length>0&&(this.backgroundVideo=new t.SmartSliderBackgroundVideo(this,i))},s.prototype.setStarterSlide=function(){t.FrontendComponentSlideAbstract.prototype.setStarterSlide.call(this)},s.prototype.setIndex=function(e){this.localIndex=this.index=e},s.prototype.preLoad=function(){return this.backgroundImage?this.backgroundImage.preLoad():!0},s.prototype.setPrevious=function(e){this.previousSlide=e},s.prototype.setNext=function(e){this.nextSlide=e,e.setPrevious(this)},s.prototype.hasBackgroundVideo=function(){return this.backgroundVideo},s}),N2Require("FrontendComponentSlideAbstract",["FrontendComponent"],[],function(e,t,i){function s(i,s){this.baseSize=16,this.slider=i,this.isCurrentlyEdited()||(this.status=r.NOT_INITIALIZED,t.FrontendComponent.prototype.constructor.call(this,this,this,s,s.find("> .n2-ss-section-outer > .n2-ss-layer, > .n2-ss-layer, > .n2-ss-layer-group")),this.slider.sliderElement.on({SliderDeviceOrientation:e.proxy(function(e,t){this.onDeviceChange(t.device+t.orientation.toLowerCase())},this),SliderResize:e.proxy(function(e,t,i){this.onResize(t,i.responsiveDimensions)},this)}),t.FrontendComponent.prototype.start.call(this))}var r={NOT_INITIALIZED:-1,INITIALIZED:0,READY_TO_START:1,PLAYING:2,ENDED:3};return s.prototype=Object.create(t.FrontendComponent.prototype),s.prototype.constructor=s,s.prototype.isCurrentlyEdited=function(){return this.slider.parameters.admin&&this.$element.hasClass("n2-ss-currently-edited-slide")},s.prototype.trigger=function(){this.$element.trigger.apply(this.$element,[].slice.call(arguments))},s.prototype.triggerHandler=function(){return this.$element.triggerHandler.apply(this.$element,[].slice.call(arguments))},s.prototype.init=function(){!this.isCurrentlyEdited()},s.prototype.refreshBaseSize=function(e){},s.prototype.onResize=function(e,t){for(var i=0;i<this.children.length;i++)this.children[i].onResize(e,t,this.isStaticSlide)},s.prototype.hasLayers=function(){return this.children.length>0},s.prototype.onDeviceChange=function(e){this.device=e;for(var t=0;t<this.children.length;t++)this.children[t].onDeviceChange(e);this.placement.onDeviceChange(e)},s.prototype.setStarterSlide=function(){},s}),N2Require("FrontendSliderStaticSlide",["FrontendComponentSlideAbstract"],[],function(e,t,i){function s(e,i){this.isStaticSlide=!0,this.$element=i.data("slide",this),t.FrontendComponentSlideAbstract.prototype.constructor.call(this,e,i),this.init()}return s.prototype=Object.create(t.FrontendComponentSlideAbstract.prototype),s.prototype.constructor=s,s}),N2Require("FrontendPlacementAbsolute",["FrontendPlacement"],[],function(e,t,i){function s(e){return e.position()}function s(e){return{left:e.prop("offsetLeft"),top:e.prop("offsetTop")}}function r(e){this.linked=[],this.parentLayer=!1,this.$parent=!1,t.FrontendPlacement.prototype.constructor.apply(this,arguments)}return/(MSIE\ [0-7]\.\d+)/.test(navigator.userAgent),r.prototype=Object.create(t.FrontendPlacement.prototype),r.prototype.constructor=r,r.prototype.start=function(){var t=this.layer.get("parentid");t&&(this.$parent=e("#"+t),0==this.$parent.length?this.$parent=!1:(this.parentLayer=this.$parent.data("layer"),this.parentLayer.placement.addLinked(this),this.onResize=function(){}))},r.prototype.addLinked=function(e){this.linked.push(e),this.alwaysResize=!0},r.prototype.onResize=r.prototype.onResizeLinked=function(e,t,i){var r=this.layer.$layer,n=e.slideW,o=n,a=e.slideH,l=a;parseInt(this.layer.get("responsivesize"))||(o=l=1),r.css("width",this.getWidth(o)),r.css("height",this.getHeight(l)),parseInt(this.layer.get("responsiveposition"))||(n=a=1);var d=this.layer.getDevice("left")*n,h=this.layer.getDevice("top")*a,p=this.layer.getDevice("align"),c=this.layer.getDevice("valign"),u={left:"auto",top:"auto",right:"auto",bottom:"auto"};if(this.$parent&&this.$parent.data("layer").isVisible){var m=s(this.$parent),f={left:0,top:0};switch(this.layer.getDevice("parentalign")){case"right":f.left=m.left+this.$parent.width();break;case"center":f.left=m.left+this.$parent.width()/2;break;default:f.left=m.left}switch(p){case"right":u.right=r.parent().width()-f.left-d+"px";break;case"center":u.left=f.left+d-r.width()/2+"px";break;default:u.left=f.left+d+"px"}switch(this.layer.getDevice("parentvalign")){case"bottom":f.top=m.top+this.$parent.height();break;case"middle":f.top=m.top+this.$parent.height()/2;break;default:f.top=m.top}switch(c){case"bottom":u.bottom=r.parent().height()-f.top-h+"px";break;case"middle":u.top=f.top+h-r.height()/2+"px";break;default:u.top=f.top+h+"px"}}else{switch(p){case"right":u.right=-d+"px";break;case"center":u.left=(i?r.parent().width():t.slide.width)/2+d-r.width()/2+"px";break;default:u.left=d+"px"}switch(c){case"bottom":u.bottom=-h+"px";break;case"middle":u.top=(i?r.parent().height():t.slide.height)/2+h-r.height()/2+"px";break;default:u.top=h+"px"}}r.css(u);for(var g=0;g<this.linked.length;g++)this.linked[g].onResizeLinked(e,t,i)},r.prototype.getWidth=function(e){var t=this.layer.getDevice("width");return this.isDimensionPropertyAccepted(t)?t:t*e+"px"},r.prototype.getHeight=function(e){var t=this.layer.getDevice("height");return this.isDimensionPropertyAccepted(t)?t:t*e+"px"},r.prototype.isDimensionPropertyAccepted=function(e){return!(!(e+"").match(/[0-9]+%/)&&"auto"!=e)},r}),N2Require("FrontendPlacementContent",["FrontendPlacement"],[],function(e,t,i){function s(e){t.FrontendPlacement.prototype.constructor.apply(this,arguments)}return s.prototype=Object.create(t.FrontendPlacement.prototype),s.prototype.constructor=s,s}),N2Require("FrontendPlacementDefault",["FrontendPlacement"],[],function(e,t,i){function s(e){t.FrontendPlacement.prototype.constructor.apply(this,arguments)}return s.prototype=Object.create(t.FrontendPlacement.prototype),s.prototype.constructor=s,s}),N2Require("FrontendPlacementNormal",["FrontendPlacement"],[],function(e,t,i){function s(e){t.FrontendPlacement.prototype.constructor.apply(this,arguments)}return s.prototype=Object.create(t.FrontendPlacement.prototype),s.prototype.constructor=s,s.prototype.onDeviceChange=function(){this.updateMargin(),this.updateHeight(),this.updateMaxWidth(),this.updateSelfAlign()},s.prototype.updateMargin=function(){var e=this.layer.getDevice("margin").split("|*|"),t=e.pop(),i=this.layer.baseSize;if("px+"==t&&i>0){t="em";for(var s=0;s<e.length;s++)e[s]=parseInt(e[s])/i}this.layer.$layer.css("margin",e.join(t+" ")+t)},s.prototype.updateHeight=function(){var e=this.layer.getDevice("height"),t="px";if(e>0){var i=this.layer.baseSize;i>0&&(t="em",e=parseInt(e)/i),this.layer.$layer.css("height",e+t)}else this.layer.$layer.css("height","")},s.prototype.updateMaxWidth=function(){var e=parseInt(this.layer.getDevice("maxwidth"));0>=e||isNaN(e)?this.layer.$layer.css("maxWidth","").removeClass("n2-ss-has-maxwidth"):this.layer.$layer.css("maxWidth",e+"px").addClass("n2-ss-has-maxwidth")},s.prototype.updateSelfAlign=function(){this.layer.$layer.attr("data-cssselfalign",this.layer.getDevice("selfalign"))},s}),N2Require("FrontendComponentCol",["FrontendComponent"],[],function(e,t,i){function s(e,i,s){this.$content=s.find(".n2-ss-layer-col:first"),t.FrontendComponent.prototype.constructor.call(this,e,i,s,this.$content.find("> .n2-ss-layer"))}return s.prototype=Object.create(t.FrontendComponent.prototype),s.prototype.constructor=s,s.prototype.onDeviceChange=function(e){t.FrontendComponent.prototype.onDeviceChange.apply(this,arguments),this.updateOrder(),this.updatePadding(),this.updateInnerAlign(),this.updateMaxWidth()},s.prototype.updatePadding=function(){var e=this.getDevice("padding").split("|*|"),t=e.pop(),i=this.baseSize;if("px+"==t&&i>0){t="em";for(var s=0;s<e.length;s++)e[s]=parseInt(e[s])/i}this.$content.css("padding",e.join(t+" ")+t)},s.prototype.updateInnerAlign=function(){this.$layer.attr("data-csstextalign",this.getDevice("inneralign"))},s.prototype.updateMaxWidth=function(){var e=parseInt(this.getDevice("maxwidth"));0>=e||isNaN(e)?this.$layer.css("maxWidth","").removeClass("n2-ss-has-maxwidth"):this.$layer.css("maxWidth",e+"px").addClass("n2-ss-has-maxwidth")},s.prototype.getRealOrder=function(){var e=this.getDevice("order");return 0==e?10:e},s.prototype.updateOrder=function(){var e=this.getDevice("order");0==e?this.$layer.css("order",""):this.$layer.css("order",e)},s.prototype.getContents=function(){return this.$content},s}),N2Require("FrontendComponentContent",["FrontendComponent"],[],function(e,t,i){function s(e,i,s){this.$content=s.find("> .n2-ss-section-main-content"),t.FrontendComponent.prototype.constructor.call(this,e,i,s,this.$content.find("> .n2-ss-layer"))}return s.prototype=Object.create(t.FrontendComponent.prototype),s.prototype.constructor=s,s.prototype.onDeviceChange=function(e){t.FrontendComponent.prototype.onDeviceChange.apply(this,arguments),this.updatePadding(),this.updateInnerAlign(),this.updateMaxWidth(),this.updateSelfAlign()},s.prototype.updatePadding=function(){var e=this.getDevice("padding").split("|*|"),t=e.pop(),i=this.baseSize;if("px+"==t&&i>0){t="em";for(var s=0;s<e.length;s++)e[s]=parseInt(e[s])/i}this.$content.css("padding",e.join(t+" ")+t)},s.prototype.updateInnerAlign=function(){this.$layer.attr("data-csstextalign",this.getDevice("inneralign"))},s.prototype.updateMaxWidth=function(){var e=parseInt(this.getDevice("maxwidth"));0>=e||isNaN(e)?this.$layer.css("maxWidth","").removeClass("n2-ss-has-maxwidth"):this.$layer.css("maxWidth",e+"px").addClass("n2-ss-has-maxwidth")},s.prototype.updateSelfAlign=function(){this.$layer.attr("data-cssselfalign",this.getDevice("selfalign"))},s.prototype.getContents=function(){return this.$content},s}),N2Require("FrontendComponentLayer",["FrontendComponent"],[],function(e,t,i){function s(e,s,r){t.FrontendComponent.prototype.constructor.call(this,e,s,r),this.wraps.mask!==i?this.$item=this.wraps.mask.children():this.wraps.parallax!==i?this.$item=this.wraps.parallax.children():this.$item=r.children()}return s.prototype=Object.create(t.FrontendComponent.prototype),s.prototype.constructor=s,s.prototype.getContents=function(){return this.$item},s}),N2Require("FrontendComponentRow",["FrontendComponent"],[],function(e,t,i){function s(e,i,s){this.$row=s.find(".n2-ss-layer-row:first"),t.FrontendComponent.prototype.constructor.call(this,e,i,s,this.$row.find("> .n2-ss-layer"))}return s.prototype=Object.create(t.FrontendComponent.prototype),s.prototype.constructor=s,s.prototype.onDeviceChange=function(e){t.FrontendComponent.prototype.onDeviceChange.apply(this,arguments),this.updatePadding(),this.updateGutter(),this.updateInnerAlign()},s.prototype.onAfterDeviceChange=function(e){this.updateWrapAfter()},s.prototype.updatePadding=function(){var e=this.getDevice("padding").split("|*|"),t=e.pop(),i=this.baseSize;if("px+"==t&&i>0){t="em";for(var s=0;s<e.length;s++)e[s]=parseInt(e[s])/i}this.$row.css("padding",e.join(t+" ")+t)},s.prototype.updateInnerAlign=function(){this.$layer.attr("data-csstextalign",this.getDevice("inneralign"))},s.prototype.updateGutter=function(){var e=this.getDevice("gutter")+"px";if(this.children.length>0)for(var t=this.children.length-1;t>=0;t--)this.children[t].$layer.css(nextend.rtl.marginRight,e).css("marginTop",e)},s.prototype.getSortedColumns=function(){for(var t=e.extend([],this.children).sort(function(e,t){return e.getRealOrder()-t.getRealOrder()}),i=t.length-1;i>=0;i--)t[i].isVisible||t.splice(i,1);return t},s.prototype.updateWrapAfter=function(){var t=parseInt(this.getDevice("wrapafter")),i=this.getSortedColumns(),s=i.length,r=!1;if(0==s)return!1;if(t>0&&s>t&&(r=!0),this.$row.find("> .n2-ss-row-break").remove(),this.$row.toggleClass("n2-ss-row-wrapped",r),r)for(var n=0;s>n;n++){var o=parseInt(n/t);if(i[n].$layer.attr("data-r",o),(n+1)%t==0||n==s-1){i[n].$layer.addClass("n2-ss-last-in-row");var a=i[n].getDevice("order");0==a&&(a=10),e('<div class="n2-ss-row-break"/>').css("order",a).insertAfter(i[n].$layer),i[n].$layer}else i[n].$layer.removeClass("n2-ss-last-in-row")}else{for(var n=0;s>n;n++)i[n].$layer.removeClass("n2-ss-last-in-row").attr("data-r",0);i[s-1].$layer.addClass("n2-ss-last-in-row")}},s.prototype.getContents=function(){return this.$row},s}),N2Require("SmartSliderResponsive",[],[],function(e,t,i){function s(t,i){this.disableTransitions=!1,this.disableTransitionsTimeout=null,this.lastClientHeight=0,this.lastOrientation=0,this.invalidateResponsiveState=!0,this.parameters=e.extend({desktop:1,tablet:1,mobile:1,onResizeEnabled:!0,type:"auto",downscale:!0,upscale:!1,constrainRatio:!0,minimumHeight:0,maximumHeight:0,minimumHeightRatio:0,maximumHeightRatio:{desktopLandscape:0,desktopPortrait:0,mobileLandscape:0,mobilePortrait:0,tabletLandscape:0,tabletPortrait:0},maximumSlideWidth:0,maximumSlideWidthLandscape:0,maximumSlideWidthRatio:-1,maximumSlideWidthTablet:0,maximumSlideWidthTabletLandscape:0,maximumSlideWidthMobile:0,maximumSlideWidthMobileLandscape:0,
4
+ maximumSlideWidthConstrainHeight:0,forceFull:0,forceFullOverflowX:"body",forceFullHorizontalSelector:"",verticalOffsetSelectors:"",focusUser:0,focusAutoplay:0,deviceModes:{desktopLandscape:1,desktopPortrait:0,mobileLandscape:0,mobilePortrait:0,tabletLandscape:0,tabletPortrait:0},normalizedDeviceModes:{unknownUnknown:["unknown","Unknown"],desktopPortrait:["desktop","Portrait"]},verticalRatioModifiers:{unknownUnknown:1,desktopLandscape:1,desktopPortrait:1,mobileLandscape:1,mobilePortrait:1,tabletLandscape:1,tabletPortrait:1},minimumFontSizes:{desktopLandscape:0,desktopPortrait:0,mobileLandscape:0,mobilePortrait:0,tabletLandscape:0,tabletPortrait:0},ratioToDevice:{Portrait:{tablet:0,mobile:0},Landscape:{tablet:0,mobile:0}},sliderWidthToDevice:{desktopLandscape:0,desktopPortrait:0,mobileLandscape:0,mobilePortrait:0,tabletLandscape:0,tabletPortrait:0},basedOn:"combined",desktopPortraitScreenWidth:1200,tabletPortraitScreenWidth:800,mobilePortraitScreenWidth:440,tabletLandscapeScreenWidth:1024,mobileLandscapeScreenWidth:740,orientationMode:"width_and_height",scrollFix:0,overflowHiddenPage:0},i),t.isAdmin&&(this.doResize=NextendThrottle(this.doResize,50)),this.loadDeferred=e.Deferred(),this.slider=t,this.sliderElement=t.sliderElement}var r=null,n=null;return s.OrientationMode={SCREEN:0,ADMIN_LANDSCAPE:1,ADMIN_PORTRAIT:2,SCREEN_WIDTH_ONLY:3},s.DeviceOrientation={UNKNOWN:0,LANDSCAPE:1,PORTRAIT:2},s._DeviceOrientation={0:"Unknown",1:"Landscape",2:"Portrait"},s.DeviceMode={UNKNOWN:0,DESKTOP:1,TABLET:2,MOBILE:3},s._DeviceMode={0:"unknown",1:"desktop",2:"tablet",3:"mobile"},s.prototype.start=function(){nextend.fontsDeferred==i?nextend.loadDeferred.always(e.proxy(function(){this.loadDeferred.resolve()},this)):nextend.fontsDeferred.always(e.proxy(function(){this.loadDeferred.resolve()},this)),this.normalizeTimeout=null,this.delayedResizeAdded=!1,this.deviceMode=s.DeviceMode.UNKNOWN,this.orientationMode=s.OrientationMode.SCREEN,this.orientation=s.DeviceOrientation.UNKNOWN,this.lastRatios={ratio:-1},this.lastRawRatios={ratio:-1},this.normalizedMode="unknownUnknown",this.widgetMargins={Top:[],Right:[],Bottom:[],Left:[]},this.staticSizes={paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0},this.enabledWidgetMargins=[],this.alignElement=this.slider.sliderElement.closest(".n2-ss-align");var t=this.ready=e.Deferred();switch(this.sliderElement.triggerHandler("SliderResponsiveStarted"),this.sliderElement.one("SliderResize",function(){t.resolve()}),this.containerElementPadding=this.sliderElement.parent(),this.containerElement=this.containerElementPadding.parent(),!this.slider.isAdmin&&this.parameters.overflowHiddenPage&&e("html, body").css("overflow","hidden"),"width"==this.parameters.orientationMode&&(this.orientationMode=s.OrientationMode.SCREEN_WIDTH_ONLY),nextend.smallestZoom=Math.min(Math.max(this.parameters.sliderWidthToDevice.mobilePortrait,120),320),this.parameters.basedOn){case"screen":break;default:if(null==r){var o=new MobileDetect(window.navigator.userAgent,801);r=!!o.tablet(),n=!!o.phone()}}if(this.verticalOffsetSelectors=e(this.parameters.verticalOffsetSelectors),this.storeDefaults(),this.parameters.minimumHeight>0&&(this.parameters.minimumHeightRatio=this.parameters.minimumHeight/this.responsiveDimensions.startHeight),this.parameters.maximumHeight>0&&this.parameters.maximumHeight>=this.parameters.minimumHeight&&(this.parameters.maximumHeightRatio={desktopPortrait:this.parameters.maximumHeight/this.responsiveDimensions.startHeight},this.parameters.maximumHeightRatio.desktopLandscape=this.parameters.maximumHeightRatio.desktopPortrait,this.parameters.maximumHeightRatio.tabletPortrait=this.parameters.maximumHeightRatio.desktopPortrait,this.parameters.maximumHeightRatio.tabletLandscape=this.parameters.maximumHeightRatio.desktopPortrait,this.parameters.maximumHeightRatio.mobilePortrait=this.parameters.maximumHeightRatio.desktopPortrait,this.parameters.maximumHeightRatio.mobileLandscape=this.parameters.maximumHeightRatio.desktopPortrait),this.parameters.maximumSlideWidth>0&&(this.parameters.maximumSlideWidthRatio={desktopPortrait:this.parameters.maximumSlideWidth/this.responsiveDimensions.startSlideWidth,desktopLandscape:this.parameters.maximumSlideWidthLandscape/this.responsiveDimensions.startSlideWidth,tabletPortrait:this.parameters.maximumSlideWidthTablet/this.responsiveDimensions.startSlideWidth,tabletLandscape:this.parameters.maximumSlideWidthTabletLandscape/this.responsiveDimensions.startSlideWidth,mobilePortrait:this.parameters.maximumSlideWidthMobile/this.responsiveDimensions.startSlideWidth,mobileLandscape:this.parameters.maximumSlideWidthMobileLandscape/this.responsiveDimensions.startSlideWidth},this.parameters.maximumSlideWidthConstrainHeight)){this.parameters.maximumHeightRatio=e.extend({},this.parameters.maximumSlideWidthRatio);for(var a in this.parameters.maximumHeightRatio)this.parameters.maximumHeightRatio[a]*=this.parameters.verticalRatioModifiers[a]}if("undefined"!=typeof nextend&&"undefined"!=typeof nextend.ssBeforeResponsive&&nextend.ssBeforeResponsive.call(this),this.onResize(),(this.parameters.onResizeEnabled||"adaptive"==this.parameters.type)&&(e(window).on({resize:e.proxy(this.onResize,this),orientationchange:e.proxy(this.onResize,this)}),this.sliderElement.on("SliderInternalResize",e.proxy(this.onResize,this)),this.parameters.scrollFix))try{var l=this;e('<iframe sandbox="allow-same-origin allow-scripts" style="height: 0; background-color: transparent; margin: 0; padding: 0; overflow: hidden; border-width: 0; position: absolute; width: 100%;"/>').on("load",function(t){e(t.target.contentWindow?t.target.contentWindow:t.target.contentDocument.defaultView).on("resize",function(){l.sliderElement.triggerHandler("SliderInternalResize")})}).insertBefore(this.containerElement)}catch(d){}},s.prototype.getOuterWidth=function(){return this.responsiveDimensions.startSliderWidth+this.responsiveDimensions.startSliderMarginLeft+this.responsiveDimensions.startSliderMarginRight},s.prototype.storeDefaults=function(){this.responsiveDimensions={startWidth:this.sliderElement.outerWidth(!0),startHeight:this.sliderElement.outerHeight(!0)},this.horizontalElements=[],this.verticalElements=[],this.init(),this.margins={top:this.responsiveDimensions.startSliderMarginTop,right:this.responsiveDimensions.startSliderMarginRight,bottom:this.responsiveDimensions.startSliderMarginBottom,left:this.responsiveDimensions.startSliderMarginLeft}},s.prototype.addHorizontalElement=function(e,i,s,r){s=s||"ratio";var n=new t.SmartSliderResponsiveElement(this,s,e,i,r);return this.horizontalElements.push(n),n},s.prototype.addVerticalElement=function(e,i,s,r){s=s||"ratio";var n=new t.SmartSliderResponsiveElement(this,s,e,i,r);return this.verticalElements.push(n),n},s.prototype.resizeHorizontalElements=function(e){for(var t=0;t<this.horizontalElements.length;t++){var i=this.horizontalElements[t];"undefined"==typeof e[i.ratioName]&&console.log("error with "+i.ratioName),i.resize(this.responsiveDimensions,e[i.ratioName],!1,0)}},s.prototype.updateVerticalRatios=function(e){return e},s.prototype._updateVerticalRatios=function(t){var i=this.responsiveDimensions.startSlideHeight*t.slideH,s=!1;return this.sliderElement.find(".n2-ss-section-main-content").addClass("n2-ss-section-main-content-calc").each(function(t,r){var n=e(r).outerHeight();n>i&&(s=!0,i=n)}).removeClass("n2-ss-section-main-content-calc"),s&&(t.slideH=i/this.responsiveDimensions.startSlideHeight,t.h=Math.max(t.h,t.slideH)),t},s.prototype.resizeVerticalElements=function(e,t,i){for(var s=0;s<this.verticalElements.length;s++){var r=this.verticalElements[s];"undefined"==typeof e[r.ratioName]&&console.log("error with "+r.ratioName),r.resize(this.responsiveDimensions,e[r.ratioName],t,i)}},s.prototype.getDeviceMode=function(){return s._DeviceMode[this.deviceMode]},s.prototype.getDeviceModeOrientation=function(){return s._DeviceMode[this.deviceMode]+s._DeviceOrientation[this.orientation]},s.prototype.onResize=function(t){this.slider.mainAnimation&&"ended"!=this.slider.mainAnimation.getState()?this.delayedResizeAdded||(this.delayedResizeAdded=!0,this.sliderElement.on("mainAnimationComplete.responsive",e.proxy(this._doDelayedResize,this))):this.doResize(t)},s.prototype._doDelayedResize=function(){this.doResize(),this.delayedResizeAdded=!1},s.prototype.doNormalizedResize=function(){this.normalizeTimeout&&clearTimeout(this.normalizeTimeout),this.normalizeTimeout=setTimeout(e.proxy(this.doResize,this),10)},s.prototype._getOrientation=function(){return this.orientationMode==s.OrientationMode.SCREEN?window.innerHeight<=window.innerWidth?s.DeviceOrientation.LANDSCAPE:s.DeviceOrientation.PORTRAIT:this.orientationMode==s.OrientationMode.ADMIN_PORTRAIT?s.DeviceOrientation.PORTRAIT:this.orientationMode==s.OrientationMode.ADMIN_LANDSCAPE?s.DeviceOrientation.LANDSCAPE:void 0},s.prototype._getDevice=function(){switch(this.parameters.basedOn){case"combined":return this._getDeviceDevice(this._getDeviceScreenWidth());case"device":return this._getDeviceDevice(s.DeviceMode.DESKTOP);case"screen":return this._getDeviceScreenWidth()}},s.prototype._getDeviceScreenWidth=function(){var e=window.innerWidth;if(this.orientation==s.DeviceOrientation.PORTRAIT){if(e<this.parameters.mobilePortraitScreenWidth)return s.DeviceMode.MOBILE;if(e<this.parameters.tabletPortraitScreenWidth)return s.DeviceMode.TABLET}else{if(e<this.parameters.mobileLandscapeScreenWidth)return s.DeviceMode.MOBILE;if(e<this.parameters.tabletLandscapeScreenWidth)return s.DeviceMode.TABLET}return s.DeviceMode.DESKTOP},s.prototype._getDeviceAndOrientationByScreenWidth=function(){var e=window.innerWidth;return e<this.parameters.mobilePortraitScreenWidth?[s.DeviceMode.MOBILE,s.DeviceOrientation.PORTRAIT]:e<this.parameters.mobileLandscapeScreenWidth?[s.DeviceMode.MOBILE,s.DeviceOrientation.LANDSCAPE]:e<this.parameters.tabletPortraitScreenWidth?[s.DeviceMode.TABLET,s.DeviceOrientation.PORTRAIT]:e<this.parameters.tabletLandscapeScreenWidth?[s.DeviceMode.TABLET,s.DeviceOrientation.LANDSCAPE]:e<this.parameters.desktopPortraitScreenWidth?[s.DeviceMode.DESKTOP,s.DeviceOrientation.PORTRAIT]:[s.DeviceMode.DESKTOP,s.DeviceOrientation.LANDSCAPE]},s.prototype._getDeviceDevice=function(e){return n===!0?s.DeviceMode.MOBILE:r&&e!=s.DeviceMode.MOBILE?s.DeviceMode.TABLET:e},s.prototype._getDeviceZoom=function(e){var t;this.orientationMode==s.OrientationMode.ADMIN_PORTRAIT?t=s.DeviceOrientation.PORTRAIT:this.orientationMode==s.OrientationMode.ADMIN_LANDSCAPE&&(t=s.DeviceOrientation.LANDSCAPE);var i=s.DeviceMode.DESKTOP;return e-this.parameters.ratioToDevice[s._DeviceOrientation[t]].mobile<.001?i=s.DeviceMode.MOBILE:e-this.parameters.ratioToDevice[s._DeviceOrientation[t]].tablet<.001&&(i=s.DeviceMode.TABLET),i},s.prototype.reTriggerSliderDeviceOrientation=function(){var e=this._normalizeMode(s._DeviceMode[this.deviceMode],s._DeviceOrientation[this.orientation]);this.sliderElement.trigger("SliderDeviceOrientation",{lastDevice:e[0],lastOrientation:e[1],device:e[0],orientation:e[1]})},s.prototype.doResize=function(t,i,r,n,o){if(this.disableTransitions||(this.disableTransitions=!0,this.sliderElement.addClass("n2notransition"),this.disableTransitionsTimeout&&clearTimeout(this.disableTransitionsTimeout),this.disableTransitionsTimeout=setTimeout(e.proxy(function(){this.sliderElement.removeClass("n2notransition"),this.disableTransitions=!1},this),500)),this.refreshMargin(),"center"==this.slider.parameters.align&&("fullpage"==this.parameters.type?this.alignElement.css("maxWidth","none"):this.alignElement.css("maxWidth",this.responsiveDimensions.startWidth)),!this.slider.isAdmin&&this.parameters.forceFull){"none"!=this.parameters.forceFullOverflowX&&e(this.parameters.forceFullOverflowX).css("overflow-x","hidden");var a=0,l=0;if(""!=this.parameters.forceFullHorizontalSelector){var d=this.sliderElement.closest(this.parameters.forceFullHorizontalSelector);d&&d.length>0&&(a=d.width(),l=d.offset().left)}var h,p=a>0?a:document.body.clientWidth||document.documentElement.clientWidth,c=this.containerElement.parent(),u=c[0].getBoundingClientRect();h=nextend.rtl.isRtl?p-(u.left+c.outerWidth()):u.left,this.containerElement.css(nextend.rtl.marginLeft,-h-parseInt(c.css("paddingLeft"))-parseInt(c.css("borderLeftWidth"))+l).width(p)}var m=this.containerElementPadding.width()/this.getOuterWidth(),f=!1,g=this.orientation,y=this.deviceMode,v=null,S=null;if(this.orientationMode==s.OrientationMode.SCREEN_WIDTH_ONLY){var b=this._getDeviceAndOrientationByScreenWidth();S=b[0],v=b[1]}else v=this._getOrientation();if(this.orientation!=v&&(this.orientation=v,f=!0,this.sliderElement.trigger("SliderOrientation",{lastOrientation:s._DeviceOrientation[g],orientation:s._DeviceOrientation[v]})),i||(this.orientationMode!=s.OrientationMode.SCREEN_WIDTH_ONLY&&(S=this._getDevice(m)),this.deviceMode!=S&&(this.deviceMode=S,this.sliderElement.removeClass("n2-ss-"+s._DeviceMode[y]).addClass("n2-ss-"+s._DeviceMode[S]),this.sliderElement.trigger("SliderDevice",{lastDevice:s._DeviceMode[y],device:s._DeviceMode[S]}),f=!0)),!this.slider.isAdmin&&"fullpage"==this.parameters.type){var x=0;if(window.matchMedia&&/Android|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent||navigator.vendor||window.opera)){var w,E=!1;t&&"orientationchange"==t.type&&(E=!0),w=n2const.isIOS?document.documentElement.clientHeight:window.innerHeight,window.matchMedia("(orientation: landscape)").matches?(x=Math.min(screen.width,w),90!=this.lastOrientation&&(E=!0,this.lastOrientation=90)):(x=Math.min(screen.height,w),0!=this.lastOrientation&&(E=!0,this.lastOrientation=0)),!E&&Math.abs(x-this.lastClientHeight)<100?x=this.lastClientHeight:this.lastClientHeight=x}else x=window.n2ClientHeight||document.documentElement.clientHeight||document.body.clientHeight;this.parameters.maximumHeightRatio[this.getDeviceModeOrientation()]=this.parameters.minimumHeightRatio=(x-this.getVerticalOffsetHeight())/this.responsiveDimensions.startHeight}if(f){var A=this._normalizeMode(s._DeviceMode[y],s._DeviceOrientation[g]),D=this._normalizeMode(s._DeviceMode[this.deviceMode],s._DeviceOrientation[this.orientation]);A[0]==D[0]&&A[1]==D[1]||(this.normalizedMode=D[0]+D[1],this.sliderElement.trigger("SliderDeviceOrientation",{lastDevice:A[0],lastOrientation:A[1],device:D[0],orientation:D[1]}))}var k=this.parameters.sliderWidthToDevice[this.normalizedMode]/this.parameters.sliderWidthToDevice.desktopPortrait;!this.parameters.downscale&&k>m?m=k:!this.parameters.upscale&&m>k&&(m=k),this._doResize(m,r,n,o),"center"==this.slider.parameters.align&&this.alignElement.css("maxWidth",this.responsiveDimensions.slider.width)},s.prototype._normalizeMode=function(e,t){return this.parameters.normalizedDeviceModes[e+t]},s.prototype.getNormalizedModeString=function(){var e=this._normalizeMode(s._DeviceMode[this.deviceMode],s._DeviceOrientation[this.orientation]);return e.join("")},s.prototype.getModeString=function(){return s._DeviceMode[this.deviceMode]+s._DeviceOrientation[this.orientation]},s.prototype.enabled=function(e,t){return this.parameters.deviceModes[e+t]},s.prototype._doResize=function(t,i,s,r){var n={ratio:t,w:t,h:t,slideW:t,slideH:t,fontRatio:1};this._buildRatios(n,this.slider.parameters.dynamicHeight,s),n.fontRatio=n.slideW;var o=!1;for(var a in n)if(n[a]!=this.lastRawRatios[a]){o=!0;break}(this.invalidateResponsiveState||o)&&(this.lastRawRatios=e.extend({},n),this.resizeHorizontalElements(n),this.finishResize(n,i,r))},s.prototype.finishResize=function(t,i,s){this.loadDeferred.done(e.proxy(function(){var r=e.proxy(function(){this.finishResize=this._finishResize,this.finishResize(t,i,s)},this);/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor)||/CriOS/.exec(window.navigator.userAgent)?setTimeout(r,200):r()},this)),this.invalidateResponsiveState=!1},s.prototype._finishResize=function(e,t,i){this.invalidateResponsiveState=!1,e=this.updateVerticalRatios(e),this.resizeVerticalElements(e,t,i),this.lastRatios=e,t?(this.sliderElement.trigger("SliderAnimatedResize",[e,t,i]),t.eventCallback("onComplete",function(){this.triggerResize(e,t)},[],this)):this.triggerResize(e,!1)},s.prototype.doVerticalResize=function(){var t=this.updateVerticalRatios(e.extend({},this.lastRawRatios)),i=!1;for(var s in t)if(t[s]!=this.lastRatios[s]){i=!0;break}i&&this.finishVerticalResize(t)},s.prototype.finishVerticalResize=function(t){this.loadDeferred.done(e.proxy(function(){this.finishVerticalResize=this._finishVerticalResize,this.finishVerticalResize(t)},this))},s.prototype._finishVerticalResize=function(e){this.resizeVerticalElements(e,!1,0),this.lastRatios=e,this.triggerResize(e,!1)},s.prototype.triggerResize=function(e,t){this.sliderElement.trigger("SliderResize",[e,this,t])},s.prototype._buildRatios=function(e,t,i){var s=this.getDeviceModeOrientation();this.parameters.maximumSlideWidthRatio[s]>0&&e.slideW>this.parameters.maximumSlideWidthRatio[s]&&(e.slideW=this.parameters.maximumSlideWidthRatio[s]),e.slideW=e.slideH=Math.min(e.slideW,e.slideH);var r=this.parameters.verticalRatioModifiers[s];if(e.slideH*=r,"fullpage"==this.parameters.type)e.h*=r,this.parameters.minimumHeightRatio>0&&(e.h=Math.max(e.h,this.parameters.minimumHeightRatio)),this.parameters.maximumHeightRatio[s]>0&&(e.h=Math.min(e.h,this.parameters.maximumHeightRatio[s])),this.slider.isAdmin?this.parameters.constrainRatio?(e.slideH=Math.min(e.slideH,e.h),e.slideH=e.slideW=Math.min(e.slideW,e.slideH)):(e.w=e.slideW,e.h=e.slideH):this.parameters.constrainRatio?(e.slideH=Math.min(e.slideH,e.h),e.slideH=e.slideW=Math.min(e.slideW,e.slideH)):(e.slideW=e.w,this.parameters.maximumSlideWidthRatio[s]>0&&e.slideW>this.parameters.maximumSlideWidthRatio[s]&&(e.slideW=this.parameters.maximumSlideWidthRatio[s]),e.slideH=e.h);else if(e.h*=r,this.parameters.minimumHeightRatio>0&&(e.h=Math.max(e.h,this.parameters.minimumHeightRatio)),this.parameters.maximumHeightRatio[s]>0&&(e.h=Math.min(e.h,this.parameters.maximumHeightRatio[s])),e.slideH=Math.min(e.slideH,e.h),e.slideW=e.slideH/r,"showcase"==this.slider.type&&(e.slideW=Math.min(e.slideW,e.w),e.slideH=Math.min(e.slideW,e.slideH)),t){var n=this.slider.currentSlide.backgroundImage;if("undefined"!=typeof i&&(n=i.backgroundImage),n.width>0&&n.height>0){var o=this.responsiveDimensions.startSlideWidth/n.width*(n.height/this.responsiveDimensions.startSlideHeight);-1!=o&&(e.slideH*=o,e.h*=o)}}this.sliderElement.triggerHandler("responsiveBuildRatios",[e])},s.prototype.setOrientation=function(e){"portrait"==e?this.orientationMode=s.OrientationMode.ADMIN_PORTRAIT:"landscape"==e&&(this.orientationMode=s.OrientationMode.ADMIN_LANDSCAPE)},s.prototype.setMode=function(e,t){var i;if(this.orientationMode==s.OrientationMode.ADMIN_PORTRAIT?i=s.DeviceOrientation.PORTRAIT:this.orientationMode==s.OrientationMode.ADMIN_LANDSCAPE&&(i=s.DeviceOrientation.LANDSCAPE),this==t){var r=this.parameters.sliderWidthToDevice[e+s._DeviceOrientation[i]];if("mobile"==e)switch(s._DeviceOrientation[i]){case"Portrait":r=Math.max(nextend.smallestZoom,320)}this.setSize(r)}},s.prototype.setSize=function(e){this.containerElement.width(e),this.doResize()},s.prototype.getVerticalOffsetHeight=function(){for(var e=0,t=0;t<this.verticalOffsetSelectors.length;t++)e+=this.verticalOffsetSelectors.eq(t).outerHeight();if(this.slider.widgets.$vertical)for(var t=0;t<this.slider.widgets.$vertical.length;t++)e+=this.slider.widgets.$vertical.eq(t).outerHeight();return e},s.prototype.addMargin=function(e,t){this.widgetMargins[e].push(t),t.isVisible()&&(this._addMarginSize(e,t.getSize()),this.enabledWidgetMargins.push(t)),this.doNormalizedResize()},s.prototype.addStaticMargin=function(e,t){"Bottom"!=e&&"Top"!=e&&(this.widgetStaticMargins||(this.widgetStaticMargins={Top:[],Right:[],Bottom:[],Left:[]}),this.widgetStaticMargins[e].push(t),this.doNormalizedResize())},s.prototype.refreshMargin=function(){for(var t in this.widgetMargins)for(var i=this.widgetMargins[t],s=i.length-1;s>=0;s--){var r=i[s];if(r.isVisible())-1==e.inArray(r,this.enabledWidgetMargins)&&(this._addMarginSize(t,r.getSize()),this.enabledWidgetMargins.push(r));else{var n=e.inArray(r,this.enabledWidgetMargins);-1!=n&&(this._addMarginSize(t,-r.getSize()),this.enabledWidgetMargins.splice(n,1))}}this.refreshStaticSizes()},s.prototype.refreshStaticSizes=function(){if(this.widgetStaticMargins){var e={paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0};for(var t in this.widgetStaticMargins)for(var i=this.widgetStaticMargins[t],s=i.length-1;s>=0;s--){var r=i[s];r.isVisible()&&(e["padding"+t]+=r.getSize())}for(var n in e)this.containerElementPadding.css(e);this.staticSizes=e}},s.prototype._addMarginSize=function(e,t){var i=null;switch(e){case"Top":case"Bottom":i=this._sliderVertical;break;default:i=this._sliderHorizontal}i.data["margin"+e]+=t,this.responsiveDimensions["startSliderMargin"+e]+=t},s}),N2Require("SmartSliderResponsiveElement",[],[],function(e,t,i){function s(e){return e.charAt(0).toUpperCase()+e.slice(1)}function r(t,i,s,r,n){this._lastRatio=1,this.responsive=t,this.ratioName=i,this.element=s,this._readyDeferred=e.Deferred(),"undefined"!=typeof n?this.name=n:this.name=null,this.data={},this.helper={parent:null,parentProps:null,fontSize:!1,centered:!1},this._lateInit(r)}return r.prototype._lateInit=function(t){this._cssProperties=t,this.reloadDefault(),-1!=e.inArray("fontSize",t)&&(this.data.fontSize=this.element.data("fontsize"),this.helper.fontSize={fontSize:this.element.data("fontsize"),desktopPortrait:this.element.data("minfontsizedesktopportrait"),desktopLandscape:this.element.data("minfontsizedesktoplandscape"),tabletPortrait:this.element.data("minfontsizetabletportrait"),tabletLandscape:this.element.data("minfontsizetabletlandscape"),mobilePortrait:this.element.data("minfontsizemobileportrait"),mobileLandscape:this.element.data("minfontsizemobilelandscape")},this.responsive.sliderElement.on("SliderDeviceOrientation",e.proxy(this.onModeChange,this))),this.resize=this._resize,this._readyDeferred.resolve()},r.prototype.reloadDefault=function(){for(var e=0;e<this._cssProperties.length;e++){var t=this._cssProperties[e];this.data[t]=parseInt(this.element.css(t))}if(this.name){var i=this.responsive.responsiveDimensions;for(var r in this.data)i["start"+s(this.name)+s(r)]=this.data[r]}},r.prototype.ready=function(e){this._readyDeferred.done(e)},r.prototype.resize=function(t,i){this.ready(e.proxy(this.resize,this,t,i)),this._lastRatio=i},r.prototype._resize=function(e,t,i,s){this.name&&"undefined"==typeof e[this.name]&&(e[this.name]={});var r={};for(var n in this.data){var o=this.data[n]*t;"function"==typeof this[n+"Prepare"]&&(o=this[n+"Prepare"](o)),this.name&&(e[this.name][n]=o),r[n]=o}if(i)i.to(this.element,s,r,0);else if(this.element.css(r),this.helper.centered){var a=this.getVerticalMargin(parseInt((this.helper.parent.height()-this.element.height())/2)),l=this.getHorizontalMargin(parseInt((this.helper.parent.width()-this.element.width())/2));this.element.css({marginLeft:l,marginRight:l,marginTop:a,marginBottom:a})}this._lastRatio=t},r.prototype.getHorizontalMargin=function(e){return e},r.prototype.getVerticalMargin=function(e){return e},r.prototype._refreshResize=function(){this.responsive.ready.done(e.proxy(function(){this._resize(this.responsive.responsiveDimensions,this.responsive.lastRatios[this.ratioName])},this))},r.prototype.widthPrepare=function(e){return Math.round(e)},r.prototype.heightPrepare=function(e){return Math.round(e)},r.prototype.marginLeftPrepare=function(e){return parseInt(e)},r.prototype.marginRightPrepare=function(e){return parseInt(e)},r.prototype.lineHeightPrepare=function(e){return e+"px"},r.prototype.borderLeftWidthPrepare=function(e){return parseInt(e)},r.prototype.borderRightWidthPrepare=function(e){return parseInt(e)},r.prototype.borderTopWidthPrepare=function(e){return parseInt(e)},r.prototype.borderBottomWidthPrepare=function(e){return parseInt(e)},r.prototype.fontSizePrepare=function(e){var t=this.responsive.getNormalizedModeString();return e<this.helper.fontSize[t]?this.helper.fontSize[t]:e},r.prototype.setCentered=function(){this.helper.parent=this.element.parent(),this.helper.centered=!0},r.prototype.unsetCentered=function(){this.helper.centered=!1},r.prototype.onModeChange=function(){this.setFontSizeByMode()},r.prototype.setFontSizeByMode=function(){this.element.css("fontSize",this.fontSizePrepare(this.data.fontSize*this._lastRatio))},r}),N2Require("FrontendItemVimeo",[],[],function(e,t,i){function s(t,i,s,r,n,o){this.state={scroll:!1,slide:!0,play:!1,continuePlay:!1},this.readyDeferred=e.Deferred(),this.slider=t,this.playerId=i,this.start=o,this.parameters=e.extend({vimeourl:"//vimeo.com/144598279",center:0,autoplay:"0",reset:"0",title:"1",byline:"1",portrait:"0",loop:"0",color:"00adef",volume:"-1"},r),navigator.userAgent.toLowerCase().indexOf("android")>-1&&(this.parameters.autoplay=0),1==this.parameters.autoplay||!n||n2const.isMobile?this.ready(e.proxy(this.initVimeoPlayer,this)):e("#"+this.playerId).on("click.vimeo n2click.vimeo",e.proxy(function(t){e(t.currentTarget).off(".vimeo"),t.preventDefault(),t.stopPropagation(),this.ready(e.proxy(function(){this.readyDeferred.done(e.proxy(function(){this.play()},this)),this.initVimeoPlayer()},this))},this))}return s.vimeoDeferred=null,s.prototype.ready=function(t){null===s.vimeoDeferred&&(s.vimeoDeferred=e.getScript("https://player.vimeo.com/api/player.js")),s.vimeoDeferred.done(t)},s.prototype.initVimeoPlayer=function(){var t=n2('<iframe id="'+this.playerId+'_video" src="https://player.vimeo.com/video/'+this.parameters.vimeocode+"?autoplay=0&_video&title="+this.parameters.title+"&byline="+this.parameters.byline+"&background="+this.parameters.background+"&portrait="+this.parameters.portrait+"&color="+this.parameters.color+"&loop="+this.parameters.loop+("-1"==this.parameters.quality?"":"&quality="+this.parameters.quality)+'" style="position: absolute; top:0; left: 0; width: 100%; height: 100%;" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>');e("#"+this.playerId).append(t),this.isStatic=t.closest(".n2-ss-static-slide").length,this.playerElement=t,this.player=new Vimeo.Player(t[0]),this.player.ready().then(e.proxy(this.onReady,this))},s.prototype.onReady=function(){var t=parseFloat(this.parameters.volume);t>=0&&this.setVolume(t),this.slide=this.slider.findSlideByElement(this.playerElement),1==this.parameters.center&&(this.onResize(),this.slider.sliderElement.on("SliderResize",e.proxy(this.onResize,this)));var i=this.playerElement.parent().parent();this.player.on("play",e.proxy(function(){this.isStatic||this.slider.sliderElement.trigger("mediaStarted",this.playerId),i.triggerHandler("n2play")},this)),this.player.on("pause",e.proxy(function(){i.triggerHandler("n2pause"),this.state.continuePlay?(this.state.continuePlay=!1,this.state.play=!0):this.state.play=!1},this)),this.player.on("ended",e.proxy(function(){this.isStatic||this.slider.sliderElement.trigger("mediaEnded",this.playerId),i.triggerHandler("n2stop"),this.state.play=!1},this)),this.isStatic||(this.slider.sliderElement.on("mainAnimationStart",e.proxy(function(t,i,s,r,n){-1==e.inArray(this.slide,this.slider.getVisibleSlides(this.slider.slides[r]))?(parseInt(this.parameters.reset)&&this.reset(),this.setState("slide",!1)):this.setState("slide",!0)},this)),nextend.scrollTracker.add(this.playerElement,e.proxy(function(){this.setState("scroll",!0)},this),e.proxy(function(){this.state.continuePlay=!0,this.setState("scroll",!1)},this))),1==this.parameters.autoplay&&this.slider.visible(e.proxy(this.initAutoplay,this)),this.playerElement.parent().css("background",""),this.readyDeferred.resolve()},s.prototype.onResize=function(){var e=52,t=this.playerElement.parent(),i=t.width()+e,s=t.height()+e,r=16/9,n={width:i,height:s,marginTop:0};n[nextend.rtl.marginLeft]=0,i/s>r?(n.height=i*r,n.marginTop=(s-n.height)/2):(n.width=s*r,n[nextend.rtl.marginLeft]=(i-n.width)/2),this.playerElement.css(n)},s.prototype.initAutoplay=function(){this.isStatic?(this.state.play=!0,this.setState("slide",!0)):(this.slider.sliderElement.on("mainAnimationComplete",e.proxy(function(t,i,s,r,n){e.inArray(this.slide,this.slider.getVisibleSlides(this.slider.slides[r]))>=0?(this.state.play=!0,this.setState("slide",!0)):this.setState("slide",!1)},this)),e.inArray(this.slide,this.slider.getVisibleSlides())>=0&&(this.state.play=!0,this.setState("slide",!0)))},s.prototype.setState=function(e,t){this.state[e]=t,this.state.play&&this.state.slide&&this.state.scroll?this.play():this.pause()},s.prototype.play=function(){this.slider.sliderElement.trigger("mediaStarted",this.playerId),0!=this.start&&this.player.setCurrentTime(this.start),this.player.play(),this.player.getCurrentTime().then(e.proxy(function(e){e<this.start&&0!=this.start&&this.player.setCurrentTime(this.start),this.player.play()},this))["catch"](e.proxy(function(e){this.player.play()},this))},s.prototype.pause=function(){this.player.pause()},s.prototype.reset=function(){this.player.setCurrentTime(this.start)},s.prototype.setVolume=function(e){this.player.setVolume(e)},s}),N2Require("FrontendItemYouTube",[],[],function(e,t,i){function s(t,i,s,r){if(this.state={scroll:!1,slide:!0,play:!1,continuePlay:!1},this.readyDeferred=e.Deferred(),this.slider=t,this.playerId=i,this.parameters=e.extend({youtubeurl:"//www.youtube.com/watch?v=MKmIwHAFjSU",youtubecode:"MKmIwHAFjSU",center:0,autoplay:"1",theme:"dark",related:"1",vq:"default",volume:"-1",loop:0,showinfo:1,modestbranding:1,reset:0,query:[],playsinline:0},s),1==this.parameters.autoplay&&(navigator.userAgent.toLowerCase().indexOf("android")>-1||n2const.isIOS)){this.parameters.autoplay=0;try{"playsInline"in document.createElement("video")&&(this.parameters.autoplay=1,this.parameters.playsinline=1,this.parameters.volume=0)}catch(n){}}1==this.parameters.autoplay||!r||n2const.isMobile?this.ready(e.proxy(this.initYoutubePlayer,this)):e("#"+this.playerId).on("click.youtube n2click.youtube",e.proxy(function(t){e(t.currentTarget).off(".youtube"),t.preventDefault(),t.stopPropagation(),this.ready(e.proxy(function(){this.readyDeferred.done(e.proxy(function(){this.play()},this)),this.initYoutubePlayer()},this))},this))}return s.YTDeferred=null,s.prototype.ready=function(t){if(null===s.YTDeferred)if(s.YTDeferred=e.Deferred(),"undefined"==typeof YT){var i=function(){};"function"==typeof window.onYouTubeIframeAPIReady&&(i=window.onYouTubeIframeAPIReady),window.onYouTubeIframeAPIReady=function(){s.YTDeferred.resolve(),i()},e.getScript("https://www.youtube.com/iframe_api")}else if(YT.loaded)s.YTDeferred.resolve();else var r=setInterval(function(){YT.loaded&&(s.YTDeferred.resolve(),clearInterval(r))},200);s.YTDeferred.done(t)},s.prototype.initYoutubePlayer=function(){var t=e("#"+this.playerId),i=t.closest(".n2-ss-layer");this.isStatic=t.closest(".n2-ss-static-slide").length;var s={enablejsapi:1,origin:window.location.protocol+"//"+window.location.host,theme:this.parameters.theme,wmode:"opaque",rel:this.parameters.related,vq:this.parameters.vq,start:this.parameters.start,showinfo:this.parameters.showinfo,modestbranding:this.parameters.modestbranding,playsinline:this.parameters.playsinline};1==this.parameters.center&&(s.controls=0,s.showinfo=0),1!=this.parameters.controls&&(s.autohide=1,s.controls=0,s.showinfo=0),+(navigator.platform.toUpperCase().indexOf("MAC")>=0&&navigator.userAgent.search("Firefox")>-1)&&(s.html5=1);for(var r in this.parameters.query)this.parameters.query.hasOwnProperty(r)&&(s[r]=this.parameters.query[r]);this.player=new YT.Player(this.playerId,{videoId:this.parameters.youtubecode,wmode:"opaque",playerVars:s,events:{onReady:e.proxy(this.onReady,this),onStateChange:e.proxy(function(e){switch(e.data){case YT.PlayerState.PLAYING:this.isStatic||this.slider.sliderElement.trigger("mediaStarted",this.playerId),i.triggerHandler("n2play");break;case YT.PlayerState.PAUSED:i.triggerHandler("n2pause"),this.state.continuePlay?(this.state.continuePlay=!1,this.state.play=!0):this.state.play=!1;break;case YT.PlayerState.ENDED:
5
+ 1==this.parameters.loop?(this.player.seekTo(0),this.player.playVideo()):(this.isStatic||this.slider.sliderElement.trigger("mediaEnded",this.playerId),i.triggerHandler("n2stop"),this.state.play=!1)}},this)}}),this.playerElement=e("#"+this.playerId),this.slide=this.slider.findSlideByElement(this.playerElement),1==this.parameters.center&&(this.playerElement.parent().css("overflow","hidden"),this.onResize(),this.slider.sliderElement.on("SliderResize",e.proxy(this.onResize,this)))},s.prototype.onReady=function(){var t=parseFloat(this.parameters.volume);t>0?this.setVolume(t):this.player.mute(),1==this.parameters.autoplay&&this.slider.visible(e.proxy(this.initAutoplay,this)),this.isStatic||(this.slider.sliderElement.on("mainAnimationStart",e.proxy(function(t,i,s,r){-1==e.inArray(this.slide,this.slider.getVisibleSlides(this.slider.slides[r]))?this.setState("slide",!1):this.setState("slide",!0)},this)),parseInt(this.parameters.reset)&&this.slider.sliderElement.on("mainAnimationComplete",e.proxy(function(t,i,s,r){-1==e.inArray(this.slide,this.slider.getVisibleSlides(this.slider.slides[r]))&&this.player.seekTo(0)},this))),this.readyDeferred.resolve(),nextend.scrollTracker.add(this.playerElement,e.proxy(function(){this.setState("scroll",!0)},this),e.proxy(function(){this.state.continuePlay=!0,this.setState("scroll",!1)},this))},s.prototype.onResize=function(){var e=100,t=this.playerElement.parent(),i=t.width(),s=t.height()+e,r=16/9,n={width:i,height:s,marginTop:0};n[nextend.rtl.marginLeft]=0,i/s>r?(n.height=i*r,n.marginTop=(s-n.height)/2):(n.width=s*r,n[nextend.rtl.marginLeft]=(i-n.width)/2),this.playerElement.css(n)},s.prototype.initAutoplay=function(){this.isStatic?(this.state.play=!0,this.setState("slide",!0)):(this.state.slide=!1,this.slider.sliderElement.on("mainAnimationComplete",e.proxy(function(t,i,s,r){e.inArray(this.slide,this.slider.getVisibleSlides(this.slider.slides[r]))>=0?(this.state.play=!0,this.setState("slide",!0)):this.setState("slide",!1)},this)),e.inArray(this.slide,this.slider.getVisibleSlides())>=0&&(this.state.play=!0,this.setState("slide",!0)))},s.prototype.setState=function(e,t){this.state[e]=t,this.state.play&&this.state.slide&&this.state.scroll?this.play():this.pause()},s.prototype.play=function(){this.isStopped()&&(this.slider.sliderElement.trigger("mediaStarted",this.playerId),this.player.playVideo())},s.prototype.pause=function(){this.isStopped()||this.player.pauseVideo()},s.prototype.stop=function(){this.player.stopVideo()},s.prototype.isStopped=function(){var e=this.player.getPlayerState();switch(e){case-1:case 0:case 2:case 5:return!0;default:return!1}},s.prototype.setVolume=function(e){this.player.setVolume(100*e)},s});
library/media/plugins/type/simple/simple/dist/smartslider-simple-type-frontend.js CHANGED
@@ -92,20 +92,24 @@ N2Require('SmartSliderMainAnimationSimple', ['SmartSliderMainAnimationAbstract']
92
  * @private
93
  */
94
  SmartSliderMainAnimationSimple.prototype._hideSlide = function (slide) {
95
- var obj = {};
96
- obj[nextend.rtl.left] = '-100000px';
97
- NextendTween.set(slide.$element, obj);
98
  if (slide.backgroundImage) {
99
- NextendTween.set(slide.backgroundImage.element, obj);
 
 
100
  }
101
  };
102
 
103
  SmartSliderMainAnimationSimple.prototype._showSlide = function (slide) {
104
- var obj = {};
105
- obj[nextend.rtl.left] = 0;
106
- NextendTween.set(slide.$element.get(0), obj);
107
  if (slide.backgroundImage) {
108
- NextendTween.set(slide.backgroundImage.element, obj);
 
 
109
  }
110
  };
111
 
@@ -433,11 +437,15 @@ N2Require('SmartSliderMainAnimationSimple', ['SmartSliderMainAnimationAbstract']
433
  parallaxProperty = '';
434
 
435
  if (direction == 'horizontal') {
436
- property = nextend.rtl.left;
437
  parallaxProperty = 'width';
438
  originalPropertyValue = propertyValue = this.slider.dimensions.slideouter.width;
 
 
 
 
439
  } else if (direction == 'vertical') {
440
- property = 'top';
441
  parallaxProperty = 'height';
442
  originalPropertyValue = propertyValue = this.slider.dimensions.slideouter.height;
443
  }
@@ -469,9 +477,14 @@ N2Require('SmartSliderMainAnimationSimple', ['SmartSliderMainAnimationAbstract']
469
  currentSlide.backgroundImage.element.css('zIndex', 24);
470
  }
471
  propertyValue *= parallax;
472
- nextSlide.$element.css(property, propertyValue);
 
 
 
473
  if (nextSlide.backgroundImage) {
474
- nextSlide.backgroundImage.element.css(property, propertyValue);
 
 
475
  }
476
 
477
  nextSlide.$element.addClass('n2-ss-parallax-clip');
@@ -511,11 +524,17 @@ N2Require('SmartSliderMainAnimationSimple', ['SmartSliderMainAnimationAbstract']
511
  currentSlideToImage[property] = -propertyValue;
512
  }
513
  } else {
514
- nextSlide.$element.css(property, propertyValue);
 
 
515
  if (nextSlide.backgroundImage) {
516
- nextSlide.backgroundImage.element.css(property, propertyValue);
 
 
517
  }
 
518
  nextSlideFrom[property] = propertyValue;
 
519
 
520
  currentSlideTo[property] = -propertyValue;
521
  currentSlideToImage[property] = -propertyValue;
@@ -719,6 +738,13 @@ N2Require('SmartSliderFrontendBackgroundAnimation', ['SmartSliderMainAnimationSi
719
  this.isReverseAllowed = false;
720
 
721
  this.bgAnimationElement = this.sliderElement.find('.n2-ss-background-animation');
 
 
 
 
 
 
 
722
  this.backgroundAnimations = $.extend({
723
  global: 0,
724
  speed: 'normal'
@@ -885,7 +911,7 @@ N2Require('SmartSliderResponsiveSimple', ['SmartSliderResponsive'], [], function
885
  if (parallax != 1) {
886
  this.addHorizontalElement(backgroundImages[i].element, ['width'], 'w');
887
  this.addVerticalElement(backgroundImages[i].element, ['height'], 'h');
888
-
889
  this.addHorizontalElement(backgroundImages[i].$mask, ['width'], 'w');
890
  this.addVerticalElement(backgroundImages[i].$mask, ['height'], 'h');
891
  }
@@ -894,11 +920,16 @@ N2Require('SmartSliderResponsiveSimple', ['SmartSliderResponsive'], [], function
894
 
895
  var video = this.sliderElement.find('.n2-ss-slider-background-video');
896
  if (video.length) {
897
- if (video[0].videoWidth > 0) {
898
- this.videoPlayerReady(video);
 
 
 
 
 
 
899
  } else {
900
- video[0].addEventListener('error', $.proxy(this.videoPlayerError, this, video), true);
901
- video[0].addEventListener('canplay', $.proxy(this.videoPlayerReady, this, video));
902
  }
903
  }
904
  };
92
  * @private
93
  */
94
  SmartSliderMainAnimationSimple.prototype._hideSlide = function (slide) {
95
+ NextendTween.set(slide.$element, {
96
+ x: -100000 * nextend.rtl.modifier
97
+ });
98
  if (slide.backgroundImage) {
99
+ NextendTween.set(slide.backgroundImage.element, {
100
+ x: -100000 * nextend.rtl.modifier
101
+ });
102
  }
103
  };
104
 
105
  SmartSliderMainAnimationSimple.prototype._showSlide = function (slide) {
106
+ NextendTween.set(slide.$element.get(0), {
107
+ x: 0
108
+ });
109
  if (slide.backgroundImage) {
110
+ NextendTween.set(slide.backgroundImage.element, {
111
+ x: 0
112
+ });
113
  }
114
  };
115
 
437
  parallaxProperty = '';
438
 
439
  if (direction == 'horizontal') {
440
+ property = 'x';
441
  parallaxProperty = 'width';
442
  originalPropertyValue = propertyValue = this.slider.dimensions.slideouter.width;
443
+
444
+ if (nextend.rtl.isRtl) {
445
+ reversed = !reversed;
446
+ }
447
  } else if (direction == 'vertical') {
448
+ property = 'y';
449
  parallaxProperty = 'height';
450
  originalPropertyValue = propertyValue = this.slider.dimensions.slideouter.height;
451
  }
477
  currentSlide.backgroundImage.element.css('zIndex', 24);
478
  }
479
  propertyValue *= parallax;
480
+
481
+ var o1 = {};
482
+ o1[property] = propertyValue;
483
+ NextendTween.set(nextSlide.$element, o1);
484
  if (nextSlide.backgroundImage) {
485
+ var o2 = {};
486
+ o2[property] = propertyValue;
487
+ NextendTween.set(nextSlide.backgroundImage.element, o2);
488
  }
489
 
490
  nextSlide.$element.addClass('n2-ss-parallax-clip');
524
  currentSlideToImage[property] = -propertyValue;
525
  }
526
  } else {
527
+ var o3 = {};
528
+ o3[property] = propertyValue;
529
+ NextendTween.set(nextSlide.$element, o3);
530
  if (nextSlide.backgroundImage) {
531
+ var o4 = {};
532
+ o4[property] = propertyValue;
533
+ NextendTween.set(nextSlide.backgroundImage.element, o4);
534
  }
535
+
536
  nextSlideFrom[property] = propertyValue;
537
+ nextSlideFromImage[property] = propertyValue;
538
 
539
  currentSlideTo[property] = -propertyValue;
540
  currentSlideToImage[property] = -propertyValue;
738
  this.isReverseAllowed = false;
739
 
740
  this.bgAnimationElement = this.sliderElement.find('.n2-ss-background-animation');
741
+
742
+ if (this.slider.parameters.perspective > 0) {
743
+ NextendTween.set(this.bgAnimationElement, {
744
+ perspective: this.slider.parameters.perspective
745
+ });
746
+ }
747
+
748
  this.backgroundAnimations = $.extend({
749
  global: 0,
750
  speed: 'normal'
911
  if (parallax != 1) {
912
  this.addHorizontalElement(backgroundImages[i].element, ['width'], 'w');
913
  this.addVerticalElement(backgroundImages[i].element, ['height'], 'h');
914
+
915
  this.addHorizontalElement(backgroundImages[i].$mask, ['width'], 'w');
916
  this.addVerticalElement(backgroundImages[i].$mask, ['height'], 'h');
917
  }
920
 
921
  var video = this.sliderElement.find('.n2-ss-slider-background-video');
922
  if (video.length) {
923
+ var isVideoAutoplaySupported = !(/Mobi/.test(navigator.userAgent)) || ('playsInline' in document.createElement('video') || ('webkit-playsinline' in document.createElement('video'))) || (navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./) && parseInt(navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./)[2]) >= 53);
924
+ if (isVideoAutoplaySupported) {
925
+ if (video[0].videoWidth > 0) {
926
+ this.videoPlayerReady(video);
927
+ } else {
928
+ video[0].addEventListener('error', $.proxy(this.videoPlayerError, this, video), true);
929
+ video[0].addEventListener('canplay', $.proxy(this.videoPlayerReady, this, video));
930
+ }
931
  } else {
932
+ this.videoPlayerError(video);
 
933
  }
934
  }
935
  };
library/media/plugins/type/simple/simple/dist/smartslider-simple-type-frontend.min.js CHANGED
@@ -1 +1 @@
1
- N2Require("SmartSliderMainAnimationSimple",["SmartSliderMainAnimationAbstract"],[],function(e,t,i){function n(i,n){switch(this.postBackgroundAnimation=!1,this._currentBackgroundAnimation=!1,this.reverseSlideIndex=null,n=e.extend({delay:0,parallax:.45,type:"horizontal",shiftedBackgroundAnimation:"auto"},n),n.delay/=1e3,t.SmartSliderMainAnimationAbstract.prototype.constructor.apply(this,arguments),this.parameters.type){case"no":this.animation=this._mainAnimationNo,this.isNoAnimation=!0;break;case"fade":this.animation=this._mainAnimationFade;break;case"crossfade":this.animation=this._mainAnimationCrossFade;break;case"vertical":1==this.parameters.parallax?this.animation=this._mainAnimationVertical:this.animation=this._mainAnimationVerticalParallax;break;case"vertical-reversed":1==this.parameters.parallax?this.animation=this._mainAnimationVerticalReversed:this.animation=this._mainAnimationVerticalReversedParallax;break;case"horizontal-reversed":1==this.parameters.parallax?this.animation=this._mainAnimationHorizontalReversed:this.animation=this._mainAnimationHorizontalReversedParallax;break;default:1==this.parameters.parallax?this.animation=this._mainAnimationHorizontal:this.animation=this._mainAnimationHorizontalParallax}}return n.prototype=Object.create(t.SmartSliderMainAnimationAbstract.prototype),n.prototype.constructor=n,n.prototype.setToStarterSlide=function(e){this.setActiveSlide(e)},n.prototype.changeTo=function(e,i,n,a){this.postBackgroundAnimation&&this.postBackgroundAnimation.prepareToSwitchSlide(e,i),t.SmartSliderMainAnimationAbstract.prototype.changeTo.apply(this,arguments)},n.prototype.setActiveSlide=function(e){for(var t=0;t<this.slider.slides.length;t++)this.slider.slides[t]!=e&&this._hideSlide(this.slider.slides[t])},n.prototype._hideSlide=function(e){var t={};t[nextend.rtl.left]="-100000px",NextendTween.set(e.$element,t),e.backgroundImage&&NextendTween.set(e.backgroundImage.element,t)},n.prototype._showSlide=function(e){var t={};t[nextend.rtl.left]=0,NextendTween.set(e.$element.get(0),t),e.backgroundImage&&NextendTween.set(e.backgroundImage.element,t)},n.prototype.cleanSlideIndex=function(e){this._hideSlide(this.slider.slides[e])},n.prototype.revertTo=function(e,i){this.slider.slides[i].$element.css("zIndex",""),this._hideSlide(this.slider.slides[i]),t.SmartSliderMainAnimationAbstract.prototype.revertTo.apply(this,arguments)},n.prototype._initAnimation=function(e,t,i){this.animation(e,t,i)},n.prototype.onBackwardChangeToComplete=function(e,t,i){this.reverseSlideIndex=null,this.onChangeToComplete(e,t,i)},n.prototype.onChangeToComplete=function(e,i,n){null!==this.reverseSlideIndex&&(this.slider.slides[this.reverseSlideIndex].triggerHandler("mainAnimationStartInCancel"),this.reverseSlideIndex=null),this._hideSlide(e),t.SmartSliderMainAnimationAbstract.prototype.onChangeToComplete.apply(this,arguments)},n.prototype.onReverseChangeToComplete=function(e,i,n){this._hideSlide(e),t.SmartSliderMainAnimationAbstract.prototype.onReverseChangeToComplete.apply(this,arguments)},n.prototype._mainAnimationNo=function(t,i){this._showSlide(i),this.slider.unsetActiveSlide(t),i.$element.css("opacity",0),i.backgroundImage&&i.backgroundImage.element.css("opacity",0),this.slider.setActiveSlide(i);var n=this.timeline.totalDuration(),a=this.getExtraDelay();this._currentBackgroundAnimation&&this.parameters.shiftedBackgroundAnimation&&this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup(),0==n&&(n=1e-5,a+=n),this.timeline.set(t.$element,{opacity:0},a),!this._currentBackgroundAnimation&&t.backgroundImage&&this.timeline.set(t.backgroundImage.element,{opacity:0},a),this.timeline.set(i.$element,{opacity:1},n),!this._currentBackgroundAnimation&&i.backgroundImage&&this.timeline.set(i.backgroundImage.element,{opacity:1},n),this.sliderElement.on("mainAnimationComplete.n2-simple-no",e.proxy(function(e,t,i,n){this.sliderElement.off("mainAnimationComplete.n2-simple-no");var a=this.slider.slides[i],r=this.slider.slides[n];a.$element.css("opacity",""),!this._currentBackgroundAnimation&&a.backgroundImage&&a.backgroundImage.element.css("opacity",""),r.$element.css("opacity",""),!this._currentBackgroundAnimation&&r.backgroundImage&&r.backgroundImage.element.css("opacity","")},this))},n.prototype._mainAnimationFade=function(t,i){t.$element.css("zIndex",23),t.backgroundImage&&t.backgroundImage.element.css("zIndex",23),i.$element.css("opacity",0),this._showSlide(i),this.slider.unsetActiveSlide(t),this.slider.setActiveSlide(i);var n=this.adjustMainAnimation();if(0!=this.parameters.shiftedBackgroundAnimation){var a=!1,r=!1;"auto"==this.parameters.shiftedBackgroundAnimation?t.hasLayers()?a=!0:r=!0:a=!0,this._currentBackgroundAnimation&&a?(this.timeline.shiftChildren(n.outDuration-n.extraDelay),this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup()):r&&(this.timeline.shiftChildren(n.extraDelay),this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup())}this.timeline.to(t.$element.get(0),n.outDuration,{opacity:0,ease:this.getEase()},n.outDelay),!this._currentBackgroundAnimation&&t.backgroundImage&&this.timeline.to(t.backgroundImage.element,n.outDuration,{opacity:0,ease:this.getEase()},n.outDelay),this.timeline.to(i.$element.get(0),n.inDuration,{opacity:1,ease:this.getEase()},n.inDelay),!this._currentBackgroundAnimation&&i.backgroundImage&&i.backgroundImage.element.css("opacity",1),this.sliderElement.on("mainAnimationComplete.n2-simple-fade",e.proxy(function(e,t,i,n){this.sliderElement.off("mainAnimationComplete.n2-simple-fade");var a=this.slider.slides[i],r=this.slider.slides[n];a.$element.css({zIndex:"",opacity:""}),!this._currentBackgroundAnimation&&a.backgroundImage&&a.backgroundImage.element.css({zIndex:"",opacity:""}),r.$element.css("opacity",""),!this._currentBackgroundAnimation&&r.backgroundImage&&r.backgroundImage.element.css("opacity","")},this))},n.prototype._mainAnimationCrossFade=function(t,i){t.$element.css("zIndex",23),t.backgroundImage&&t.backgroundImage.element.css("zIndex",23),i.$element.css("opacity",0),i.backgroundImage&&i.backgroundImage.element.css("opacity",0),this._showSlide(i),this.slider.unsetActiveSlide(t),this.slider.setActiveSlide(i);var n=this.adjustMainAnimation();if(0!=this.parameters.shiftedBackgroundAnimation){var a=!1,r=!1;"auto"==this.parameters.shiftedBackgroundAnimation?t.hasLayers()?a=!0:r=!0:a=!0,this._currentBackgroundAnimation&&a?(this.timeline.shiftChildren(n.outDuration-n.extraDelay),this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup()):r&&(this.timeline.shiftChildren(n.extraDelay),this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup())}this.timeline.to(t.$element.get(0),n.outDuration,{opacity:0,ease:this.getEase()},n.outDelay),!this._currentBackgroundAnimation&&t.backgroundImage&&this.timeline.to(t.backgroundImage.element.get(0),n.outDuration,{opacity:0,ease:this.getEase()},n.outDelay),this.timeline.to(i.$element.get(0),n.inDuration,{opacity:1,ease:this.getEase()},n.inDelay),!this._currentBackgroundAnimation&&i.backgroundImage&&this.timeline.to(i.backgroundImage.element.get(0),n.inDuration,{opacity:1,ease:this.getEase()},n.inDelay),this.sliderElement.on("mainAnimationComplete.n2-simple-fade",e.proxy(function(e,t,i,n){this.sliderElement.off("mainAnimationComplete.n2-simple-fade");var a=this.slider.slides[i],r=this.slider.slides[n];a.$element.css({zIndex:"",opacity:""}),!this._currentBackgroundAnimation&&a.backgroundImage&&a.backgroundImage.element.css({zIndex:"",opacity:""}),r.$element.css("opacity",""),!this._currentBackgroundAnimation&&r.backgroundImage&&r.backgroundImage.element.css("opacity","")},this))},n.prototype._mainAnimationHorizontal=function(e,t,i){this.__mainAnimationDirection(e,t,"horizontal",1,i)},n.prototype._mainAnimationVertical=function(e,t,i){this._showSlide(t),this.__mainAnimationDirection(e,t,"vertical",1,i)},n.prototype._mainAnimationHorizontalParallax=function(e,t,i){this.__mainAnimationDirection(e,t,"horizontal",this.parameters.parallax,i)},n.prototype._mainAnimationVerticalParallax=function(e,t,i){this._showSlide(t),this.__mainAnimationDirection(e,t,"vertical",this.parameters.parallax,i)},n.prototype._mainAnimationHorizontalReversed=function(e,t,i){this.__mainAnimationDirection(e,t,"horizontal",1,!i)},n.prototype._mainAnimationVerticalReversed=function(e,t,i){this._showSlide(t),this.__mainAnimationDirection(e,t,"vertical",1,!i)},n.prototype._mainAnimationHorizontalReversedParallax=function(e,t,i){this.__mainAnimationDirection(e,t,"horizontal",this.parameters.parallax,!i)},n.prototype._mainAnimationVerticalReversedParallax=function(e,t,i){this._showSlide(t),this.__mainAnimationDirection(e,t,"vertical",this.parameters.parallax,!i)},n.prototype.__mainAnimationDirection=function(t,i,n,a,r){var s="",o=0,d=0,l="";"horizontal"==n?(s=nextend.rtl.left,l="width",d=o=this.slider.dimensions.slideouter.width):"vertical"==n&&(s="top",l="height",d=o=this.slider.dimensions.slideouter.height),r&&(o*=-1);var m={},c={ease:this.getEase()},h={},u={ease:this.getEase()},p={ease:this.getEase()},g={ease:this.getEase()};1!=a?r?(t.$element.css("zIndex",24),t.backgroundImage&&t.backgroundImage.element.css("zIndex",24),t.$element.addClass("n2-ss-parallax-clip"),c[l]=-o,u[l]=-o,o*=a,m[s]=o,m[l]=-o,h[s]=o,h[l]=-o,p[l]=-o,p[s]=d,g[s]=-o):(t.$element.css("zIndex",24),t.backgroundImage&&t.backgroundImage.element.css("zIndex",24),o*=a,i.$element.css(s,o),i.backgroundImage&&i.backgroundImage.element.css(s,o),i.$element.addClass("n2-ss-parallax-clip"),m[s]=d,m[l]=o,c[l]=d,h[s]=o,p[l]=o,g[l]=o,p[s]=-o,g[s]=-o):(i.$element.css(s,o),i.backgroundImage&&i.backgroundImage.element.css(s,o),m[s]=o,p[s]=-o,g[s]=-o),i.$element.css("zIndex",23),i.backgroundImage&&i.backgroundImage.element.css("zIndex",23),(r||1==a)&&(t.$element.css("zIndex",22),t.backgroundImage&&t.backgroundImage.element.css("zIndex",22)),this.slider.unsetActiveSlide(t),this.slider.setActiveSlide(i);var A=this.adjustMainAnimation();if(c[s]=0,u[s]=0,this.timeline.fromTo(i.$element.get(0),A.inDuration,m,c,A.inDelay),i.backgroundImage&&this.timeline.fromTo(i.backgroundImage.element,A.inDuration,h,u,A.inDelay),0!=this.parameters.shiftedBackgroundAnimation){var y=!1,k=!1;"auto"==this.parameters.shiftedBackgroundAnimation?t.hasLayers()?y=!0:k=!0:y=!0,this._currentBackgroundAnimation&&y?(this.timeline.shiftChildren(A.outDuration-A.extraDelay),this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup()):k&&(this.timeline.shiftChildren(A.extraDelay),this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup())}if(this.timeline.to(t.$element.get(0),A.outDuration,p,A.outDelay),t.backgroundImage&&this.timeline.to(t.backgroundImage.element,A.outDuration,g,A.outDelay),this.isTouch&&this.isReverseAllowed&&1==a){var f=r?t.index+1:t.index-1;if(0>f?f=this.slider.parameters.carousel?this.slider.slides.length-1:t.index:f>=this.slider.slides.length&&(f=this.slider.parameters.carousel?0:t.index),f!=i.index){if(f!=t.index){this.reverseSlideIndex=f,this.enableReverseMode();var S=this.slider.slides[f];"vertical"==n&&this._showSlide(S),S.$element.css(s,o);var b={},_={ease:this.getEase()},v={},I={ease:this.getEase()};_[s]=0,b[s]=-o,I[s]=o,v[s]=0,S.$element.trigger("mainAnimationStartIn",[this,t.index,S.index,!1]),this.reverseTimeline.paused(!0),this.reverseTimeline.eventCallback("onComplete",this.onBackwardChangeToComplete,[t,S,!1],this),this.reverseTimeline.fromTo(S.$element.get(0),A.inDuration,b,_,A.inDelay),S.backgroundImage&&this.reverseTimeline.fromTo(S.backgroundImage.element,A.inDuration,b,_,A.inDelay),this.reverseTimeline.fromTo(t.$element.get(0),A.inDuration,v,I,A.inDelay),t.backgroundImage&&this.reverseTimeline.fromTo(t.backgroundImage.element,A.inDuration,v,I,A.inDelay)}}else this.reverseSlideIndex=null}this.sliderElement.on("mainAnimationComplete.n2-simple-fade",e.proxy(function(e,t,i,n){this.sliderElement.off("mainAnimationComplete.n2-simple-fade");var a=this.slider.slides[i],r=this.slider.slides[n];r.$element.css("zIndex","").css(s,"").removeClass("n2-ss-parallax-clip"),r.backgroundImage&&r.backgroundImage.element.css("zIndex","").css(s,""),a.$element.css("zIndex","").css(l,"").removeClass("n2-ss-parallax-clip"),a.backgroundImage&&a.backgroundImage.element.css("zIndex","").css(l,"")},this))},n.prototype.getExtraDelay=function(){return 0},n.prototype.adjustMainAnimation=function(){var e=this.parameters.duration,t=this.parameters.delay,i=this.timeline.totalDuration(),n=this.getExtraDelay();if(i>0){var a=e+t;if(!(a>i))return{inDuration:e,outDuration:e,inDelay:i-e,outDelay:n,extraDelay:n};e=e*i/a,t=t*i/a,n>t&&(e-=n-t,t=n)}else t+=n;return{inDuration:e,outDuration:e,inDelay:t,outDelay:t,extraDelay:n}},n.prototype.hasBackgroundAnimation=function(){return!1},n}),N2Require("SmartSliderFrontendBackgroundAnimation",["SmartSliderMainAnimationSimple"],[],function(e,t,i){function n(i,n,a){this._currentBackgroundAnimation=!1,t.SmartSliderMainAnimationSimple.prototype.constructor.call(this,i,n),this.isReverseAllowed=!1,this.bgAnimationElement=this.sliderElement.find(".n2-ss-background-animation"),this.backgroundAnimations=e.extend({global:0,speed:"normal"},a),this.backgroundImages=i.backgroundImages.getBackgroundImages(),i.backgroundImages.hack()}return n.prototype=Object.create(t.SmartSliderMainAnimationSimple.prototype),n.prototype.constructor=n,n.prototype.getBackgroundAnimation=function(e,t){if(t.hasBackgroundVideo()||e.hasBackgroundVideo())return!1;var i=this.backgroundAnimations.global,n=this.backgroundAnimations.speed;if(t.backgroundAnimation){var a=t.backgroundAnimation;i=a.animation,n=a.speed}return i?[i[Math.floor(Math.random()*i.length)],n]:!1},n.prototype._initAnimation=function(i,n,a){this._currentBackgroundAnimation=!1;var r=i.backgroundImage,s=n.backgroundImage;if(r&&s){var o=this.getBackgroundAnimation(i,n);if(o!==!1){var d=1;switch(o[1]){case"superSlow":d=3;break;case"slow":d=1.5;break;case"fast":d=.75;break;case"superFast":d=.5}return this._currentBackgroundAnimation=new t["SmartSliderBackgroundAnimation"+o[0].type](this,r.element,s.element,o[0],d,a),t.SmartSliderMainAnimationSimple.prototype._initAnimation.apply(this,arguments),this._currentBackgroundAnimation.postSetup(),void this.timeline.set(e("<div />"),{opacity:1,onComplete:e.proxy(function(){this._currentBackgroundAnimation&&(this._currentBackgroundAnimation.ended(),this._currentBackgroundAnimation=!1)},this)})}}t.SmartSliderMainAnimationSimple.prototype._initAnimation.apply(this,arguments)},n.prototype.onChangeToComplete=function(e,i){this._currentBackgroundAnimation&&(this._currentBackgroundAnimation.ended(),this._currentBackgroundAnimation=!1),t.SmartSliderMainAnimationSimple.prototype.onChangeToComplete.apply(this,arguments)},n.prototype.onReverseChangeToComplete=function(e,i,n){this._currentBackgroundAnimation&&(this._currentBackgroundAnimation.revertEnded(),this._currentBackgroundAnimation=!1),t.SmartSliderMainAnimationSimple.prototype.onReverseChangeToComplete.apply(this,arguments)},n.prototype.getExtraDelay=function(){return this._currentBackgroundAnimation?this._currentBackgroundAnimation.getExtraDelay():0},n.prototype.hasBackgroundAnimation=function(){return this._currentBackgroundAnimation},n}),N2Require("SmartSliderResponsiveSimple",["SmartSliderResponsive"],[],function(e,t,i){function n(){this.round=1,t.SmartSliderResponsive.prototype.constructor.apply(this,arguments)}return n.prototype=Object.create(t.SmartSliderResponsive.prototype),n.prototype.constructor=n,n.prototype.init=function(){this.sliderElement.find(".n2-ss-section-main-content").length&&(this.updateVerticalRatios=this._updateVerticalRatios),this._sliderHorizontal=this.addHorizontalElement(this.sliderElement,["width","marginLeft","marginRight"],"w","slider"),this.addHorizontalElement(this.sliderElement.find(".n2-ss-slider-1"),["width","paddingLeft","paddingRight","borderLeftWidth","borderRightWidth"],"w"),this._sliderVertical=this.addVerticalElement(this.sliderElement,["marginTop","marginBottom"],"h"),this.addHorizontalElement(this.sliderElement,["fontSize"],"fontRatio","slider"),this.addVerticalElement(this.sliderElement.find(".n2-ss-slider-1"),["height","paddingTop","paddingBottom","borderTopWidth","borderBottomWidth"],"h","slider"),this.addHorizontalElement(this.sliderElement.find(".n2-ss-slide"),["width"],"w","slideouter"),this.addVerticalElement(this.sliderElement.find(".n2-ss-slide"),["height"],"h","slideouter");var t=this.sliderElement.find(".n2-ss-layers-container");this.addHorizontalElement(t,["width"],"slideW","slide"),this.addVerticalElement(t,["height"],"slideH","slide").setCentered();for(var i=this.slider.parameters.mainanimation.parallax,n=this.slider.backgroundImages.getBackgroundImages(),a=0;a<n.length;a++)1!=i&&(this.addHorizontalElement(n[a].element,["width"],"w"),this.addVerticalElement(n[a].element,["height"],"h"),this.addHorizontalElement(n[a].$mask,["width"],"w"),this.addVerticalElement(n[a].$mask,["height"],"h"));var r=this.sliderElement.find(".n2-ss-slider-background-video");r.length&&(r[0].videoWidth>0?this.videoPlayerReady(r):(r[0].addEventListener("error",e.proxy(this.videoPlayerError,this,r),!0),r[0].addEventListener("canplay",e.proxy(this.videoPlayerReady,this,r))))},n.prototype.videoPlayerError=function(e){e.remove()},n.prototype.videoPlayerReady=function(t){t.data("ratio",t[0].videoWidth/t[0].videoHeight),t.addClass("n2-active"),this.slider.ready(e.proxy(function(){this.slider.sliderElement.on("SliderResize",e.proxy(this.resizeVideo,this,t)),this.resizeVideo(t)},this))},n.prototype.resizeVideo=function(e){var t=e.data("mode"),i=e.data("ratio"),n=this.slider.dimensions.slideouter||this.slider.dimensions.slide,a=n.width/n.height;"fill"==t?a>i?e.css({width:"100%",height:"auto"}):e.css({width:"auto",height:"100%"}):"fit"==t&&(i>a?e.css({width:"100%",height:"auto"}):e.css({width:"auto",height:"100%"})),e.css("marginTop",0).css(nextend.rtl.marginLeft,0),this.center(e)},n.prototype.center=function(e){var t=e.parent();e.css({marginTop:parseInt((t.height()-e.height())/2)}),e.css(nextend.rtl.marginLeft,parseInt((t.width()-e.width())/2))},n}),N2Require("SmartSliderSimple",["SmartSliderAbstract"],[],function(e,t,i){function n(i,n){this.type="simple",t.SmartSliderAbstract.prototype.constructor.call(this,i,e.extend({bgAnimations:0,carousel:1},n))}return n.prototype=Object.create(t.SmartSliderAbstract.prototype),n.prototype.constructor=n,n.prototype.initResponsiveMode=function(){this.responsive=new t.SmartSliderResponsiveSimple(this,this.parameters.responsive),this.responsive.start(),t.SmartSliderAbstract.prototype.initResponsiveMode.call(this),this.$backgroundsContainer=this.sliderElement.find(".n2-ss-slide-backgrounds")},n.prototype.initMainAnimation=function(){nModernizr.csstransforms3d&&nModernizr.csstransformspreserve3d&&this.parameters.bgAnimations?this.mainAnimation=new t.SmartSliderFrontendBackgroundAnimation(this,this.parameters.mainanimation,this.parameters.bgAnimations):this.mainAnimation=new t.SmartSliderMainAnimationSimple(this,this.parameters.mainanimation)},n.prototype.afterRawSlidesReady=function(){if(this.parameters.postBackgroundAnimations&&this.parameters.postBackgroundAnimations.slides){for(var e=0;e<this.slides.length;e++)this.slides[e].postBackgroundAnimation=this.parameters.postBackgroundAnimations.slides[e];delete this.parameters.postBackgroundAnimations.slides}if(this.parameters.bgAnimations&&this.parameters.bgAnimations.slides){for(var t=0;t<this.slides.length;t++)this.slides[t].backgroundAnimation=this.parameters.bgAnimations.slides[t];delete this.parameters.bgAnimations.slides}},n.prototype.findSlideBackground=function(e){var i=t.SmartSliderAbstract.prototype.findSlideBackground.call(this,e);return i.appendTo(this.sliderElement.find(".n2-ss-slide-backgrounds")),i},n});
1
+ N2Require("SmartSliderMainAnimationSimple",["SmartSliderMainAnimationAbstract"],[],function(e,t,i){function n(i,n){switch(this.postBackgroundAnimation=!1,this._currentBackgroundAnimation=!1,this.reverseSlideIndex=null,n=e.extend({delay:0,parallax:.45,type:"horizontal",shiftedBackgroundAnimation:"auto"},n),n.delay/=1e3,t.SmartSliderMainAnimationAbstract.prototype.constructor.apply(this,arguments),this.parameters.type){case"no":this.animation=this._mainAnimationNo,this.isNoAnimation=!0;break;case"fade":this.animation=this._mainAnimationFade;break;case"crossfade":this.animation=this._mainAnimationCrossFade;break;case"vertical":1==this.parameters.parallax?this.animation=this._mainAnimationVertical:this.animation=this._mainAnimationVerticalParallax;break;case"vertical-reversed":1==this.parameters.parallax?this.animation=this._mainAnimationVerticalReversed:this.animation=this._mainAnimationVerticalReversedParallax;break;case"horizontal-reversed":1==this.parameters.parallax?this.animation=this._mainAnimationHorizontalReversed:this.animation=this._mainAnimationHorizontalReversedParallax;break;default:1==this.parameters.parallax?this.animation=this._mainAnimationHorizontal:this.animation=this._mainAnimationHorizontalParallax}}return n.prototype=Object.create(t.SmartSliderMainAnimationAbstract.prototype),n.prototype.constructor=n,n.prototype.setToStarterSlide=function(e){this.setActiveSlide(e)},n.prototype.changeTo=function(e,i,n,a){this.postBackgroundAnimation&&this.postBackgroundAnimation.prepareToSwitchSlide(e,i),t.SmartSliderMainAnimationAbstract.prototype.changeTo.apply(this,arguments)},n.prototype.setActiveSlide=function(e){for(var t=0;t<this.slider.slides.length;t++)this.slider.slides[t]!=e&&this._hideSlide(this.slider.slides[t])},n.prototype._hideSlide=function(e){NextendTween.set(e.$element,{x:-1e5*nextend.rtl.modifier}),e.backgroundImage&&NextendTween.set(e.backgroundImage.element,{x:-1e5*nextend.rtl.modifier})},n.prototype._showSlide=function(e){NextendTween.set(e.$element.get(0),{x:0}),e.backgroundImage&&NextendTween.set(e.backgroundImage.element,{x:0})},n.prototype.cleanSlideIndex=function(e){this._hideSlide(this.slider.slides[e])},n.prototype.revertTo=function(e,i){this.slider.slides[i].$element.css("zIndex",""),this._hideSlide(this.slider.slides[i]),t.SmartSliderMainAnimationAbstract.prototype.revertTo.apply(this,arguments)},n.prototype._initAnimation=function(e,t,i){this.animation(e,t,i)},n.prototype.onBackwardChangeToComplete=function(e,t,i){this.reverseSlideIndex=null,this.onChangeToComplete(e,t,i)},n.prototype.onChangeToComplete=function(e,i,n){null!==this.reverseSlideIndex&&(this.slider.slides[this.reverseSlideIndex].triggerHandler("mainAnimationStartInCancel"),this.reverseSlideIndex=null),this._hideSlide(e),t.SmartSliderMainAnimationAbstract.prototype.onChangeToComplete.apply(this,arguments)},n.prototype.onReverseChangeToComplete=function(e,i,n){this._hideSlide(e),t.SmartSliderMainAnimationAbstract.prototype.onReverseChangeToComplete.apply(this,arguments)},n.prototype._mainAnimationNo=function(t,i){this._showSlide(i),this.slider.unsetActiveSlide(t),i.$element.css("opacity",0),i.backgroundImage&&i.backgroundImage.element.css("opacity",0),this.slider.setActiveSlide(i);var n=this.timeline.totalDuration(),a=this.getExtraDelay();this._currentBackgroundAnimation&&this.parameters.shiftedBackgroundAnimation&&this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup(),0==n&&(n=1e-5,a+=n),this.timeline.set(t.$element,{opacity:0},a),!this._currentBackgroundAnimation&&t.backgroundImage&&this.timeline.set(t.backgroundImage.element,{opacity:0},a),this.timeline.set(i.$element,{opacity:1},n),!this._currentBackgroundAnimation&&i.backgroundImage&&this.timeline.set(i.backgroundImage.element,{opacity:1},n),this.sliderElement.on("mainAnimationComplete.n2-simple-no",e.proxy(function(e,t,i,n){this.sliderElement.off("mainAnimationComplete.n2-simple-no");var a=this.slider.slides[i],r=this.slider.slides[n];a.$element.css("opacity",""),!this._currentBackgroundAnimation&&a.backgroundImage&&a.backgroundImage.element.css("opacity",""),r.$element.css("opacity",""),!this._currentBackgroundAnimation&&r.backgroundImage&&r.backgroundImage.element.css("opacity","")},this))},n.prototype._mainAnimationFade=function(t,i){t.$element.css("zIndex",23),t.backgroundImage&&t.backgroundImage.element.css("zIndex",23),i.$element.css("opacity",0),this._showSlide(i),this.slider.unsetActiveSlide(t),this.slider.setActiveSlide(i);var n=this.adjustMainAnimation();if(0!=this.parameters.shiftedBackgroundAnimation){var a=!1,r=!1;"auto"==this.parameters.shiftedBackgroundAnimation?t.hasLayers()?a=!0:r=!0:a=!0,this._currentBackgroundAnimation&&a?(this.timeline.shiftChildren(n.outDuration-n.extraDelay),this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup()):r&&(this.timeline.shiftChildren(n.extraDelay),this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup())}this.timeline.to(t.$element.get(0),n.outDuration,{opacity:0,ease:this.getEase()},n.outDelay),!this._currentBackgroundAnimation&&t.backgroundImage&&this.timeline.to(t.backgroundImage.element,n.outDuration,{opacity:0,ease:this.getEase()},n.outDelay),this.timeline.to(i.$element.get(0),n.inDuration,{opacity:1,ease:this.getEase()},n.inDelay),!this._currentBackgroundAnimation&&i.backgroundImage&&i.backgroundImage.element.css("opacity",1),this.sliderElement.on("mainAnimationComplete.n2-simple-fade",e.proxy(function(e,t,i,n){this.sliderElement.off("mainAnimationComplete.n2-simple-fade");var a=this.slider.slides[i],r=this.slider.slides[n];a.$element.css({zIndex:"",opacity:""}),!this._currentBackgroundAnimation&&a.backgroundImage&&a.backgroundImage.element.css({zIndex:"",opacity:""}),r.$element.css("opacity",""),!this._currentBackgroundAnimation&&r.backgroundImage&&r.backgroundImage.element.css("opacity","")},this))},n.prototype._mainAnimationCrossFade=function(t,i){t.$element.css("zIndex",23),t.backgroundImage&&t.backgroundImage.element.css("zIndex",23),i.$element.css("opacity",0),i.backgroundImage&&i.backgroundImage.element.css("opacity",0),this._showSlide(i),this.slider.unsetActiveSlide(t),this.slider.setActiveSlide(i);var n=this.adjustMainAnimation();if(0!=this.parameters.shiftedBackgroundAnimation){var a=!1,r=!1;"auto"==this.parameters.shiftedBackgroundAnimation?t.hasLayers()?a=!0:r=!0:a=!0,this._currentBackgroundAnimation&&a?(this.timeline.shiftChildren(n.outDuration-n.extraDelay),this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup()):r&&(this.timeline.shiftChildren(n.extraDelay),this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup())}this.timeline.to(t.$element.get(0),n.outDuration,{opacity:0,ease:this.getEase()},n.outDelay),!this._currentBackgroundAnimation&&t.backgroundImage&&this.timeline.to(t.backgroundImage.element.get(0),n.outDuration,{opacity:0,ease:this.getEase()},n.outDelay),this.timeline.to(i.$element.get(0),n.inDuration,{opacity:1,ease:this.getEase()},n.inDelay),!this._currentBackgroundAnimation&&i.backgroundImage&&this.timeline.to(i.backgroundImage.element.get(0),n.inDuration,{opacity:1,ease:this.getEase()},n.inDelay),this.sliderElement.on("mainAnimationComplete.n2-simple-fade",e.proxy(function(e,t,i,n){this.sliderElement.off("mainAnimationComplete.n2-simple-fade");var a=this.slider.slides[i],r=this.slider.slides[n];a.$element.css({zIndex:"",opacity:""}),!this._currentBackgroundAnimation&&a.backgroundImage&&a.backgroundImage.element.css({zIndex:"",opacity:""}),r.$element.css("opacity",""),!this._currentBackgroundAnimation&&r.backgroundImage&&r.backgroundImage.element.css("opacity","")},this))},n.prototype._mainAnimationHorizontal=function(e,t,i){this.__mainAnimationDirection(e,t,"horizontal",1,i)},n.prototype._mainAnimationVertical=function(e,t,i){this._showSlide(t),this.__mainAnimationDirection(e,t,"vertical",1,i)},n.prototype._mainAnimationHorizontalParallax=function(e,t,i){this.__mainAnimationDirection(e,t,"horizontal",this.parameters.parallax,i)},n.prototype._mainAnimationVerticalParallax=function(e,t,i){this._showSlide(t),this.__mainAnimationDirection(e,t,"vertical",this.parameters.parallax,i)},n.prototype._mainAnimationHorizontalReversed=function(e,t,i){this.__mainAnimationDirection(e,t,"horizontal",1,!i)},n.prototype._mainAnimationVerticalReversed=function(e,t,i){this._showSlide(t),this.__mainAnimationDirection(e,t,"vertical",1,!i)},n.prototype._mainAnimationHorizontalReversedParallax=function(e,t,i){this.__mainAnimationDirection(e,t,"horizontal",this.parameters.parallax,!i)},n.prototype._mainAnimationVerticalReversedParallax=function(e,t,i){this._showSlide(t),this.__mainAnimationDirection(e,t,"vertical",this.parameters.parallax,!i)},n.prototype.__mainAnimationDirection=function(t,i,n,a,r){var s="",o=0,d=0,l="";"horizontal"==n?(s="x",l="width",d=o=this.slider.dimensions.slideouter.width,nextend.rtl.isRtl&&(r=!r)):"vertical"==n&&(s="y",l="height",d=o=this.slider.dimensions.slideouter.height),r&&(o*=-1);var m={},c={ease:this.getEase()},h={},u={ease:this.getEase()},p={ease:this.getEase()},g={ease:this.getEase()};if(1!=a)if(r)t.$element.css("zIndex",24),t.backgroundImage&&t.backgroundImage.element.css("zIndex",24),t.$element.addClass("n2-ss-parallax-clip"),c[l]=-o,u[l]=-o,o*=a,m[s]=o,m[l]=-o,h[s]=o,h[l]=-o,p[l]=-o,p[s]=d,g[s]=-o;else{t.$element.css("zIndex",24),t.backgroundImage&&t.backgroundImage.element.css("zIndex",24),o*=a;var A={};if(A[s]=o,NextendTween.set(i.$element,A),i.backgroundImage){var y={};y[s]=o,NextendTween.set(i.backgroundImage.element,y)}i.$element.addClass("n2-ss-parallax-clip"),m[s]=d,m[l]=o,c[l]=d,h[s]=o,p[l]=o,g[l]=o,p[s]=-o,g[s]=-o}else{var k={};if(k[s]=o,NextendTween.set(i.$element,k),i.backgroundImage){var f={};f[s]=o,NextendTween.set(i.backgroundImage.element,f)}m[s]=o,h[s]=o,p[s]=-o,g[s]=-o}i.$element.css("zIndex",23),i.backgroundImage&&i.backgroundImage.element.css("zIndex",23),(r||1==a)&&(t.$element.css("zIndex",22),t.backgroundImage&&t.backgroundImage.element.css("zIndex",22)),this.slider.unsetActiveSlide(t),this.slider.setActiveSlide(i);var S=this.adjustMainAnimation();if(c[s]=0,u[s]=0,this.timeline.fromTo(i.$element.get(0),S.inDuration,m,c,S.inDelay),i.backgroundImage&&this.timeline.fromTo(i.backgroundImage.element,S.inDuration,h,u,S.inDelay),0!=this.parameters.shiftedBackgroundAnimation){var v=!1,b=!1;"auto"==this.parameters.shiftedBackgroundAnimation?t.hasLayers()?v=!0:b=!0:v=!0,this._currentBackgroundAnimation&&v?(this.timeline.shiftChildren(S.outDuration-S.extraDelay),this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup()):b&&(this.timeline.shiftChildren(S.extraDelay),this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup())}if(this.timeline.to(t.$element.get(0),S.outDuration,p,S.outDelay),t.backgroundImage&&this.timeline.to(t.backgroundImage.element,S.outDuration,g,S.outDelay),this.isTouch&&this.isReverseAllowed&&1==a){var _=r?t.index+1:t.index-1;if(0>_?_=this.slider.parameters.carousel?this.slider.slides.length-1:t.index:_>=this.slider.slides.length&&(_=this.slider.parameters.carousel?0:t.index),_!=i.index){if(_!=t.index){this.reverseSlideIndex=_,this.enableReverseMode();var x=this.slider.slides[_];"vertical"==n&&this._showSlide(x),x.$element.css(s,o);var I={},B={ease:this.getEase()},D={},E={ease:this.getEase()};B[s]=0,I[s]=-o,E[s]=o,D[s]=0,x.$element.trigger("mainAnimationStartIn",[this,t.index,x.index,!1]),this.reverseTimeline.paused(!0),this.reverseTimeline.eventCallback("onComplete",this.onBackwardChangeToComplete,[t,x,!1],this),this.reverseTimeline.fromTo(x.$element.get(0),S.inDuration,I,B,S.inDelay),x.backgroundImage&&this.reverseTimeline.fromTo(x.backgroundImage.element,S.inDuration,I,B,S.inDelay),this.reverseTimeline.fromTo(t.$element.get(0),S.inDuration,D,E,S.inDelay),t.backgroundImage&&this.reverseTimeline.fromTo(t.backgroundImage.element,S.inDuration,D,E,S.inDelay)}}else this.reverseSlideIndex=null}this.sliderElement.on("mainAnimationComplete.n2-simple-fade",e.proxy(function(e,t,i,n){this.sliderElement.off("mainAnimationComplete.n2-simple-fade");var a=this.slider.slides[i],r=this.slider.slides[n];r.$element.css("zIndex","").css(s,"").removeClass("n2-ss-parallax-clip"),r.backgroundImage&&r.backgroundImage.element.css("zIndex","").css(s,""),a.$element.css("zIndex","").css(l,"").removeClass("n2-ss-parallax-clip"),a.backgroundImage&&a.backgroundImage.element.css("zIndex","").css(l,"")},this))},n.prototype.getExtraDelay=function(){return 0},n.prototype.adjustMainAnimation=function(){var e=this.parameters.duration,t=this.parameters.delay,i=this.timeline.totalDuration(),n=this.getExtraDelay();if(i>0){var a=e+t;if(!(a>i))return{inDuration:e,outDuration:e,inDelay:i-e,outDelay:n,extraDelay:n};e=e*i/a,t=t*i/a,n>t&&(e-=n-t,t=n)}else t+=n;return{inDuration:e,outDuration:e,inDelay:t,outDelay:t,extraDelay:n}},n.prototype.hasBackgroundAnimation=function(){return!1},n}),N2Require("SmartSliderFrontendBackgroundAnimation",["SmartSliderMainAnimationSimple"],[],function(e,t,i){function n(i,n,a){this._currentBackgroundAnimation=!1,t.SmartSliderMainAnimationSimple.prototype.constructor.call(this,i,n),this.isReverseAllowed=!1,this.bgAnimationElement=this.sliderElement.find(".n2-ss-background-animation"),this.slider.parameters.perspective>0&&NextendTween.set(this.bgAnimationElement,{perspective:this.slider.parameters.perspective}),this.backgroundAnimations=e.extend({global:0,speed:"normal"},a),this.backgroundImages=i.backgroundImages.getBackgroundImages(),i.backgroundImages.hack()}return n.prototype=Object.create(t.SmartSliderMainAnimationSimple.prototype),n.prototype.constructor=n,n.prototype.getBackgroundAnimation=function(e,t){if(t.hasBackgroundVideo()||e.hasBackgroundVideo())return!1;var i=this.backgroundAnimations.global,n=this.backgroundAnimations.speed;if(t.backgroundAnimation){var a=t.backgroundAnimation;i=a.animation,n=a.speed}return i?[i[Math.floor(Math.random()*i.length)],n]:!1},n.prototype._initAnimation=function(i,n,a){this._currentBackgroundAnimation=!1;var r=i.backgroundImage,s=n.backgroundImage;if(r&&s){var o=this.getBackgroundAnimation(i,n);if(o!==!1){var d=1;switch(o[1]){case"superSlow":d=3;break;case"slow":d=1.5;break;case"fast":d=.75;break;case"superFast":d=.5}return this._currentBackgroundAnimation=new t["SmartSliderBackgroundAnimation"+o[0].type](this,r.element,s.element,o[0],d,a),t.SmartSliderMainAnimationSimple.prototype._initAnimation.apply(this,arguments),this._currentBackgroundAnimation.postSetup(),void this.timeline.set(e("<div />"),{opacity:1,onComplete:e.proxy(function(){this._currentBackgroundAnimation&&(this._currentBackgroundAnimation.ended(),this._currentBackgroundAnimation=!1)},this)})}}t.SmartSliderMainAnimationSimple.prototype._initAnimation.apply(this,arguments)},n.prototype.onChangeToComplete=function(e,i){this._currentBackgroundAnimation&&(this._currentBackgroundAnimation.ended(),this._currentBackgroundAnimation=!1),t.SmartSliderMainAnimationSimple.prototype.onChangeToComplete.apply(this,arguments)},n.prototype.onReverseChangeToComplete=function(e,i,n){this._currentBackgroundAnimation&&(this._currentBackgroundAnimation.revertEnded(),this._currentBackgroundAnimation=!1),t.SmartSliderMainAnimationSimple.prototype.onReverseChangeToComplete.apply(this,arguments)},n.prototype.getExtraDelay=function(){return this._currentBackgroundAnimation?this._currentBackgroundAnimation.getExtraDelay():0},n.prototype.hasBackgroundAnimation=function(){return this._currentBackgroundAnimation},n}),N2Require("SmartSliderResponsiveSimple",["SmartSliderResponsive"],[],function(e,t,i){function n(){this.round=1,t.SmartSliderResponsive.prototype.constructor.apply(this,arguments)}return n.prototype=Object.create(t.SmartSliderResponsive.prototype),n.prototype.constructor=n,n.prototype.init=function(){this.sliderElement.find(".n2-ss-section-main-content").length&&(this.updateVerticalRatios=this._updateVerticalRatios),this._sliderHorizontal=this.addHorizontalElement(this.sliderElement,["width","marginLeft","marginRight"],"w","slider"),this.addHorizontalElement(this.sliderElement.find(".n2-ss-slider-1"),["width","paddingLeft","paddingRight","borderLeftWidth","borderRightWidth"],"w"),this._sliderVertical=this.addVerticalElement(this.sliderElement,["marginTop","marginBottom"],"h"),this.addHorizontalElement(this.sliderElement,["fontSize"],"fontRatio","slider"),this.addVerticalElement(this.sliderElement.find(".n2-ss-slider-1"),["height","paddingTop","paddingBottom","borderTopWidth","borderBottomWidth"],"h","slider"),this.addHorizontalElement(this.sliderElement.find(".n2-ss-slide"),["width"],"w","slideouter"),this.addVerticalElement(this.sliderElement.find(".n2-ss-slide"),["height"],"h","slideouter");var t=this.sliderElement.find(".n2-ss-layers-container");this.addHorizontalElement(t,["width"],"slideW","slide"),this.addVerticalElement(t,["height"],"slideH","slide").setCentered();for(var i=this.slider.parameters.mainanimation.parallax,n=this.slider.backgroundImages.getBackgroundImages(),a=0;a<n.length;a++)1!=i&&(this.addHorizontalElement(n[a].element,["width"],"w"),this.addVerticalElement(n[a].element,["height"],"h"),this.addHorizontalElement(n[a].$mask,["width"],"w"),this.addVerticalElement(n[a].$mask,["height"],"h"));var r=this.sliderElement.find(".n2-ss-slider-background-video");if(r.length){var s=!/Mobi/.test(navigator.userAgent)||"playsInline"in document.createElement("video")||"webkit-playsinline"in document.createElement("video")||navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./)&&parseInt(navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./)[2])>=53;s?r[0].videoWidth>0?this.videoPlayerReady(r):(r[0].addEventListener("error",e.proxy(this.videoPlayerError,this,r),!0),r[0].addEventListener("canplay",e.proxy(this.videoPlayerReady,this,r))):this.videoPlayerError(r)}},n.prototype.videoPlayerError=function(e){e.remove()},n.prototype.videoPlayerReady=function(t){t.data("ratio",t[0].videoWidth/t[0].videoHeight),t.addClass("n2-active"),this.slider.ready(e.proxy(function(){this.slider.sliderElement.on("SliderResize",e.proxy(this.resizeVideo,this,t)),this.resizeVideo(t)},this))},n.prototype.resizeVideo=function(e){var t=e.data("mode"),i=e.data("ratio"),n=this.slider.dimensions.slideouter||this.slider.dimensions.slide,a=n.width/n.height;"fill"==t?a>i?e.css({width:"100%",height:"auto"}):e.css({width:"auto",height:"100%"}):"fit"==t&&(i>a?e.css({width:"100%",height:"auto"}):e.css({width:"auto",height:"100%"})),e.css("marginTop",0).css(nextend.rtl.marginLeft,0),this.center(e)},n.prototype.center=function(e){var t=e.parent();e.css({marginTop:parseInt((t.height()-e.height())/2)}),e.css(nextend.rtl.marginLeft,parseInt((t.width()-e.width())/2))},n}),N2Require("SmartSliderSimple",["SmartSliderAbstract"],[],function(e,t,i){function n(i,n){this.type="simple",t.SmartSliderAbstract.prototype.constructor.call(this,i,e.extend({bgAnimations:0,carousel:1},n))}return n.prototype=Object.create(t.SmartSliderAbstract.prototype),n.prototype.constructor=n,n.prototype.initResponsiveMode=function(){this.responsive=new t.SmartSliderResponsiveSimple(this,this.parameters.responsive),this.responsive.start(),t.SmartSliderAbstract.prototype.initResponsiveMode.call(this),this.$backgroundsContainer=this.sliderElement.find(".n2-ss-slide-backgrounds")},n.prototype.initMainAnimation=function(){nModernizr.csstransforms3d&&nModernizr.csstransformspreserve3d&&this.parameters.bgAnimations?this.mainAnimation=new t.SmartSliderFrontendBackgroundAnimation(this,this.parameters.mainanimation,this.parameters.bgAnimations):this.mainAnimation=new t.SmartSliderMainAnimationSimple(this,this.parameters.mainanimation)},n.prototype.afterRawSlidesReady=function(){if(this.parameters.postBackgroundAnimations&&this.parameters.postBackgroundAnimations.slides){for(var e=0;e<this.slides.length;e++)this.slides[e].postBackgroundAnimation=this.parameters.postBackgroundAnimations.slides[e];delete this.parameters.postBackgroundAnimations.slides}if(this.parameters.bgAnimations&&this.parameters.bgAnimations.slides){for(var t=0;t<this.slides.length;t++)this.slides[t].backgroundAnimation=this.parameters.bgAnimations.slides[t];delete this.parameters.bgAnimations.slides}},n.prototype.findSlideBackground=function(e){var i=t.SmartSliderAbstract.prototype.findSlideBackground.call(this,e);return i.appendTo(this.sliderElement.find(".n2-ss-slide-backgrounds")),i},n});
library/media/plugins/widgetthumbnail/default/default/thumbnail.js CHANGED
@@ -73,8 +73,12 @@ N2Require('SmartSliderWidgetThumbnailDefault', [], [], function ($, scope, undef
73
  }
74
 
75
  this.thumbnailDimension = {
 
76
  width: this.dots.outerWidth(true),
77
- height: this.dots.outerHeight(true)
 
 
 
78
  };
79
 
80
  this.thumbnailDimension.widthMargin = this.thumbnailDimension.width - this.dots.outerWidth();
@@ -215,12 +219,15 @@ N2Require('SmartSliderWidgetThumbnailDefault', [], [], function ($, scope, undef
215
 
216
  if (this.ratio != ratio) {
217
  var css = {};
218
- css[variables.prop] = parseInt(this.thumbnailDimension[variables.prop] * ratio - this.thumbnailDimension[variables.prop + 'Margin']);
219
- var scrollerDimension = css[variables.invProp] = parseInt((this.thumbnailDimension[variables.invProp] - this.parameters['captionSize'] - this.thumbnailDimension[variables.prop + 'Margin']) * ratio + this.parameters['captionSize']);
220
  this.dots.css(css);
 
 
 
221
  css = {};
222
- css[variables.prop] = parseInt(this.imageDimension[variables.prop] * ratio);
223
- css[variables.invProp] = parseInt(this.imageDimension[variables.invProp] * ratio);
224
  this.images.css(css);
225
 
226
  this.bar.css(variables.invProp, 'auto');
73
  }
74
 
75
  this.thumbnailDimension = {
76
+ widthLocal: this.dots.width(),
77
  width: this.dots.outerWidth(true),
78
+ height: this.dots.outerHeight(true),
79
+ widthBorder: parseInt(this.dots.css('borderLeftWidth')) + parseInt(this.dots.css('borderRightWidth')),
80
+ heightBorder: parseInt(this.dots.css('borderTopWidth')) + parseInt(this.dots.css('borderBottomWidth'))
81
+
82
  };
83
 
84
  this.thumbnailDimension.widthMargin = this.thumbnailDimension.width - this.dots.outerWidth();
219
 
220
  if (this.ratio != ratio) {
221
  var css = {};
222
+ css[variables.prop] = parseInt(this.thumbnailDimension[variables.prop] * ratio - this.thumbnailDimension[variables.prop + 'Margin'] - this.thumbnailDimension[variables.prop + 'Border']);
223
+ css[variables.invProp] = parseInt((this.thumbnailDimension[variables.invProp] - this.parameters['captionSize']) * ratio - this.thumbnailDimension[variables.prop + 'Margin'] + this.parameters['captionSize'] - this.thumbnailDimension[variables.invProp + 'Border']);
224
  this.dots.css(css);
225
+
226
+ var localRatio = this.dots.width() / this.thumbnailDimension.widthLocal;
227
+
228
  css = {};
229
+ css[variables.prop] = Math.ceil(this.imageDimension[variables.prop] * localRatio);
230
+ css[variables.invProp] = Math.ceil(this.imageDimension[variables.invProp] * localRatio);
231
  this.images.css(css);
232
 
233
  this.bar.css(variables.invProp, 'auto');
library/media/plugins/widgetthumbnail/default/default/thumbnail.min.js CHANGED
@@ -1 +1 @@
1
- N2Require("SmartSliderWidgetThumbnailDefault",[],[],function(i,t,s){"use strict";function e(t,s){this.slider=window[t],this.slider.started(i.proxy(this.start,this,t,s))}return e.prototype.start=function(t,s){if(this.slider.sliderElement.data("thumbnail"))return!1;this.slider.sliderElement.data("thumbnail",this),this.parameters=i.extend({captionSize:0,minimumThumbnailCount:1.5,invertGroupDirection:0},s),this.ratio=1,this.hidden=!1,this.forceHidden=!1,this.forceHiddenCB=null,this.group=2,this.itemPerPane=1,this.currentI=0,this.offset=0,this.horizontal={prop:"width",Prop:"Width",sideProp:nextend.rtl.left,invProp:"height"},this.vertical={prop:"height",Prop:"Height",sideProp:"top",invProp:"width"},this.group=parseInt(s.group),this.orientation=s.orientation,"vertical"==this.orientation&&(this.goToDot=this._goToDot),this.outerBar=this.slider.sliderElement.find(".nextend-thumbnail-default"),this.bar=this.outerBar.find(".nextend-thumbnail-inner"),this.scroller=this.bar.find(".nextend-thumbnail-scroller");var e="universalclick";if("mouseenter"==s.action&&(e="mouseenter"),this.dots=this.scroller.find("> div").on(e,i.proxy(this.onDotClick,this)),this.images=this.dots.find(".n2-ss-thumb-image"),nextend.rtl.isRtl?(this.previous=this.outerBar.find(".nextend-thumbnail-next").on("click",i.proxy(this.previousPane,this)),this.next=this.outerBar.find(".nextend-thumbnail-previous").on("click",i.proxy(this.nextPane,this))):(this.previous=this.outerBar.find(".nextend-thumbnail-previous").on("click",i.proxy(this.previousPane,this)),this.next=this.outerBar.find(".nextend-thumbnail-next").on("click",i.proxy(this.nextPane,this))),this.slider.isShuffled){for(var o=0;o<this.slider.realSlides.length;o++){var r=this.slider.realSlides[o];this.dots.eq(r.originalIndex).appendTo(this.scroller)}this.dots=this.scroller.find("> div")}if(this.thumbnailDimension={width:this.dots.outerWidth(!0),height:this.dots.outerHeight(!0)},this.thumbnailDimension.widthMargin=this.thumbnailDimension.width-this.dots.outerWidth(),this.thumbnailDimension.heightMargin=this.thumbnailDimension.height-this.dots.outerHeight(),this.imageDimension={width:this.images.outerWidth(!0),height:this.images.outerHeight(!0)},this.sideDimension=.25*this.thumbnailDimension[this[this.orientation].prop],"horizontal"==this.orientation?(this.scroller.height(this.thumbnailDimension.height*this.group),this.bar.height(this.scroller.outerHeight(!0))):(this.scroller.width(this.thumbnailDimension.width*this.group),this.bar.width(this.scroller.outerWidth(!0))),this.slider.sliderElement.on({BeforeVisible:i.proxy(this.onReady,this),sliderSwitchTo:i.proxy(this.onSlideSwitch,this)}),this.slider.firstSlideReady.done(i.proxy(this.onFirstSlideSet,this)),0==s.overlay){var h=!1;switch(s.area){case 1:h="Top";break;case 12:h="Bottom";break;case 5:h="Left";break;case 8:h="Right"}h&&(this.offset=parseFloat(this.outerBar.data("offset")),this.slider.responsive.addStaticMargin(h,this))}},e.prototype.onFirstSlideSet=function(i){this.activateDots(i.index),this.goToDot(i.index)},e.prototype.onReady=function(){this.slider.sliderElement.on("SliderResize",i.proxy(this.onSliderResize,this)),this.onSliderResize()},e.prototype.onSliderResize=function(){null!==this.forceHiddenCB&&this.forceHiddenCB.call(this),this.adjustScrollerSize();var i=this.slider.currentSlide.index;this.activateDots(i),this.goToDot(i)},e.prototype.adjustScrollerSize=function(){var i=this[this.orientation].prop,t=Math.ceil(this.dots.length/this.group)*this.thumbnailDimension[i]*this.ratio,s=this.scroller["outer"+this[this.orientation].Prop]()-this.scroller[i](),e=this.slider.dimensions["thumbnail"+i];e>=t+s?this.scroller[i](e-s):this.scroller[i](t),"horizontal"==this.orientation?this.scroller.height(this.dots.outerHeight(!0)*this.group):this.scroller.width(this.dots.outerWidth(!0)*this.group)},e.prototype.onDotClick=function(i){this.slider.directionalChangeToReal(this.dots.index(i.currentTarget))},e.prototype.onSlideSwitch=function(i,t,s){this.activateDots(t),this.goToDot(s)},e.prototype.activateDots=function(i){this.dots.filter(".n2-active").removeClass("n2-active");for(var t=this.slider.slides[i].slides,s=0;s<t.length;s++)this.dots.eq(t[s].index).addClass("n2-active")},e.prototype.previousPane=function(){this.goToDot(this.currentI-this.itemPerPane*this.group)},e.prototype.nextPane=function(){this.goToDot(this.currentI+this.itemPerPane*this.group)},e.prototype.goToDot=function(i){var t=this[this.orientation],s=1,e=this.slider.dimensions["thumbnail"+t.prop],o=this.sideDimension,r=e-2*o,h=r/this.thumbnailDimension[t.prop];if(h<=this.parameters.minimumThumbnailCount&&(o=.1*e,r=e-2*o,s=r/(this.parameters.minimumThumbnailCount*this.thumbnailDimension[t.prop]),h=r/(this.thumbnailDimension[t.prop]*s)),this.ratio!=s){var n={};n[t.prop]=parseInt(this.thumbnailDimension[t.prop]*s-this.thumbnailDimension[t.prop+"Margin"]);n[t.invProp]=parseInt((this.thumbnailDimension[t.invProp]-this.parameters.captionSize-this.thumbnailDimension[t.prop+"Margin"])*s+this.parameters.captionSize);this.dots.css(n),n={},n[t.prop]=parseInt(this.imageDimension[t.prop]*s),n[t.invProp]=parseInt(this.imageDimension[t.invProp]*s),this.images.css(n),this.bar.css(t.invProp,"auto"),this.ratio=s,this.slider.responsive.doNormalizedResize(),this.adjustScrollerSize()}h=Math.floor(h),i=Math.max(0,Math.min(this.dots.length-1,i));var a,l={};a=this.parameters.invertGroupDirection?Math.floor(i%Math.ceil(this.dots.length/this.group)/h):Math.floor(i/this.group/h);var d=-(this.scroller["outer"+t.Prop]()-e);a==Math.floor((this.dots.length-1)/this.group/h)?(l[t.sideProp]=-(a*h*this.thumbnailDimension[t.prop]*s),0==a?this.previous.removeClass("n2-active"):this.previous.addClass("n2-active"),this.next.removeClass("n2-active")):a>0?(l[t.sideProp]=-(a*h*this.thumbnailDimension[t.prop]*s-o),this.previous.addClass("n2-active"),this.next.addClass("n2-active")):(l[t.sideProp]=0,this.previous.removeClass("n2-active"),this.next.addClass("n2-active")),d>=l[t.sideProp]&&(l[t.sideProp]=d,this.next.removeClass("n2-active")),NextendTween.to(this.scroller,.5,l).play(),this.currentI=i,this.itemPerPane=h},e.prototype._goToDot=function(t){if(!this.forceHidden){var s=this[this.orientation],e=this.slider.dimensions["thumbnail"+s.prop],o=(e-2*this.sideDimension)/this.thumbnailDimension[s.prop];if(0!=e&&o<this.parameters.minimumThumbnailCount-.5?this.hidden||("horizontal"==this.orientation?this.outerBar.css("height",0):this.outerBar.css("width",0),this.hidden=!0,this.forceHidden=!0,setTimeout(i.proxy(function(){this.forceHiddenCB=function(){this.forceHiddenCB=null,this.forceHidden=!1}},this),300),this.slider.responsive.doNormalizedResize()):this.hidden&&o>=this.parameters.minimumThumbnailCount+.5&&(this.hidden=!1,"horizontal"==this.orientation?this.outerBar.css("height",""):this.outerBar.css("width",""),this.slider.responsive.doNormalizedResize()),!this.hidden){o=Math.floor(o),t=Math.max(0,Math.min(this.dots.length-1,t));var r,h={};r=this.parameters.invertGroupDirection?Math.floor(t%Math.ceil(this.dots.length/this.group)/o):Math.floor(t/this.group/o);var n=-(this.scroller["outer"+s.Prop]()-e);r==Math.floor((this.dots.length-1)/this.group/o)?(h[s.sideProp]=-(r*o*this.thumbnailDimension[s.prop]),0==r?this.previous.removeClass("n2-active"):this.previous.addClass("n2-active"),this.next.removeClass("n2-active")):r>0?(h[s.sideProp]=-(r*o*this.thumbnailDimension[s.prop]-this.sideDimension),this.previous.addClass("n2-active"),this.next.addClass("n2-active")):(h[s.sideProp]=0,this.previous.removeClass("n2-active"),this.next.addClass("n2-active")),n>=h[s.sideProp]&&(h[s.sideProp]=n,this.next.removeClass("n2-active")),NextendTween.to(this.scroller,.5,h).play()}this.currentI=t,this.itemPerPane=o}},e.prototype.isVisible=function(){return this.outerBar.is(":visible")},e.prototype.getSize=function(){return"horizontal"==this.orientation?this.outerBar.height()+this.offset:this.outerBar.width()+this.offset},e});
1
+ N2Require("SmartSliderWidgetThumbnailDefault",[],[],function(i,t,s){"use strict";function e(t,s){this.slider=window[t],this.slider.started(i.proxy(this.start,this,t,s))}return e.prototype.start=function(t,s){if(this.slider.sliderElement.data("thumbnail"))return!1;this.slider.sliderElement.data("thumbnail",this),this.parameters=i.extend({captionSize:0,minimumThumbnailCount:1.5,invertGroupDirection:0},s),this.ratio=1,this.hidden=!1,this.forceHidden=!1,this.forceHiddenCB=null,this.group=2,this.itemPerPane=1,this.currentI=0,this.offset=0,this.horizontal={prop:"width",Prop:"Width",sideProp:nextend.rtl.left,invProp:"height"},this.vertical={prop:"height",Prop:"Height",sideProp:"top",invProp:"width"},this.group=parseInt(s.group),this.orientation=s.orientation,"vertical"==this.orientation&&(this.goToDot=this._goToDot),this.outerBar=this.slider.sliderElement.find(".nextend-thumbnail-default"),this.bar=this.outerBar.find(".nextend-thumbnail-inner"),this.scroller=this.bar.find(".nextend-thumbnail-scroller");var e="universalclick";if("mouseenter"==s.action&&(e="mouseenter"),this.dots=this.scroller.find("> div").on(e,i.proxy(this.onDotClick,this)),this.images=this.dots.find(".n2-ss-thumb-image"),nextend.rtl.isRtl?(this.previous=this.outerBar.find(".nextend-thumbnail-next").on("click",i.proxy(this.previousPane,this)),this.next=this.outerBar.find(".nextend-thumbnail-previous").on("click",i.proxy(this.nextPane,this))):(this.previous=this.outerBar.find(".nextend-thumbnail-previous").on("click",i.proxy(this.previousPane,this)),this.next=this.outerBar.find(".nextend-thumbnail-next").on("click",i.proxy(this.nextPane,this))),this.slider.isShuffled){for(var o=0;o<this.slider.realSlides.length;o++){var r=this.slider.realSlides[o];this.dots.eq(r.originalIndex).appendTo(this.scroller)}this.dots=this.scroller.find("> div")}if(this.thumbnailDimension={widthLocal:this.dots.width(),width:this.dots.outerWidth(!0),height:this.dots.outerHeight(!0),widthBorder:parseInt(this.dots.css("borderLeftWidth"))+parseInt(this.dots.css("borderRightWidth")),heightBorder:parseInt(this.dots.css("borderTopWidth"))+parseInt(this.dots.css("borderBottomWidth"))},this.thumbnailDimension.widthMargin=this.thumbnailDimension.width-this.dots.outerWidth(),this.thumbnailDimension.heightMargin=this.thumbnailDimension.height-this.dots.outerHeight(),this.imageDimension={width:this.images.outerWidth(!0),height:this.images.outerHeight(!0)},this.sideDimension=.25*this.thumbnailDimension[this[this.orientation].prop],"horizontal"==this.orientation?(this.scroller.height(this.thumbnailDimension.height*this.group),this.bar.height(this.scroller.outerHeight(!0))):(this.scroller.width(this.thumbnailDimension.width*this.group),this.bar.width(this.scroller.outerWidth(!0))),this.slider.sliderElement.on({BeforeVisible:i.proxy(this.onReady,this),sliderSwitchTo:i.proxy(this.onSlideSwitch,this)}),this.slider.firstSlideReady.done(i.proxy(this.onFirstSlideSet,this)),0==s.overlay){var h=!1;switch(s.area){case 1:h="Top";break;case 12:h="Bottom";break;case 5:h="Left";break;case 8:h="Right"}h&&(this.offset=parseFloat(this.outerBar.data("offset")),this.slider.responsive.addStaticMargin(h,this))}},e.prototype.onFirstSlideSet=function(i){this.activateDots(i.index),this.goToDot(i.index)},e.prototype.onReady=function(){this.slider.sliderElement.on("SliderResize",i.proxy(this.onSliderResize,this)),this.onSliderResize()},e.prototype.onSliderResize=function(){null!==this.forceHiddenCB&&this.forceHiddenCB.call(this),this.adjustScrollerSize();var i=this.slider.currentSlide.index;this.activateDots(i),this.goToDot(i)},e.prototype.adjustScrollerSize=function(){var i=this[this.orientation].prop,t=Math.ceil(this.dots.length/this.group)*this.thumbnailDimension[i]*this.ratio,s=this.scroller["outer"+this[this.orientation].Prop]()-this.scroller[i](),e=this.slider.dimensions["thumbnail"+i];e>=t+s?this.scroller[i](e-s):this.scroller[i](t),"horizontal"==this.orientation?this.scroller.height(this.dots.outerHeight(!0)*this.group):this.scroller.width(this.dots.outerWidth(!0)*this.group)},e.prototype.onDotClick=function(i){this.slider.directionalChangeToReal(this.dots.index(i.currentTarget))},e.prototype.onSlideSwitch=function(i,t,s){this.activateDots(t),this.goToDot(s)},e.prototype.activateDots=function(i){this.dots.filter(".n2-active").removeClass("n2-active");for(var t=this.slider.slides[i].slides,s=0;s<t.length;s++)this.dots.eq(t[s].index).addClass("n2-active")},e.prototype.previousPane=function(){this.goToDot(this.currentI-this.itemPerPane*this.group)},e.prototype.nextPane=function(){this.goToDot(this.currentI+this.itemPerPane*this.group)},e.prototype.goToDot=function(i){var t=this[this.orientation],s=1,e=this.slider.dimensions["thumbnail"+t.prop],o=this.sideDimension,r=e-2*o,h=r/this.thumbnailDimension[t.prop];if(h<=this.parameters.minimumThumbnailCount&&(o=.1*e,r=e-2*o,s=r/(this.parameters.minimumThumbnailCount*this.thumbnailDimension[t.prop]),h=r/(this.thumbnailDimension[t.prop]*s)),this.ratio!=s){var n={};n[t.prop]=parseInt(this.thumbnailDimension[t.prop]*s-this.thumbnailDimension[t.prop+"Margin"]-this.thumbnailDimension[t.prop+"Border"]),n[t.invProp]=parseInt((this.thumbnailDimension[t.invProp]-this.parameters.captionSize)*s-this.thumbnailDimension[t.prop+"Margin"]+this.parameters.captionSize-this.thumbnailDimension[t.invProp+"Border"]),this.dots.css(n);var a=this.dots.width()/this.thumbnailDimension.widthLocal;n={},n[t.prop]=Math.ceil(this.imageDimension[t.prop]*a),n[t.invProp]=Math.ceil(this.imageDimension[t.invProp]*a),this.images.css(n),this.bar.css(t.invProp,"auto"),this.ratio=s,this.slider.responsive.doNormalizedResize(),this.adjustScrollerSize()}h=Math.floor(h),i=Math.max(0,Math.min(this.dots.length-1,i));var d,l={};d=this.parameters.invertGroupDirection?Math.floor(i%Math.ceil(this.dots.length/this.group)/h):Math.floor(i/this.group/h);var p=-(this.scroller["outer"+t.Prop]()-e);d==Math.floor((this.dots.length-1)/this.group/h)?(l[t.sideProp]=-(d*h*this.thumbnailDimension[t.prop]*s),0==d?this.previous.removeClass("n2-active"):this.previous.addClass("n2-active"),this.next.removeClass("n2-active")):d>0?(l[t.sideProp]=-(d*h*this.thumbnailDimension[t.prop]*s-o),this.previous.addClass("n2-active"),this.next.addClass("n2-active")):(l[t.sideProp]=0,this.previous.removeClass("n2-active"),this.next.addClass("n2-active")),p>=l[t.sideProp]&&(l[t.sideProp]=p,this.next.removeClass("n2-active")),NextendTween.to(this.scroller,.5,l).play(),this.currentI=i,this.itemPerPane=h},e.prototype._goToDot=function(t){if(!this.forceHidden){var s=this[this.orientation],e=this.slider.dimensions["thumbnail"+s.prop],o=(e-2*this.sideDimension)/this.thumbnailDimension[s.prop];if(0!=e&&o<this.parameters.minimumThumbnailCount-.5?this.hidden||("horizontal"==this.orientation?this.outerBar.css("height",0):this.outerBar.css("width",0),this.hidden=!0,this.forceHidden=!0,setTimeout(i.proxy(function(){this.forceHiddenCB=function(){this.forceHiddenCB=null,this.forceHidden=!1}},this),300),this.slider.responsive.doNormalizedResize()):this.hidden&&o>=this.parameters.minimumThumbnailCount+.5&&(this.hidden=!1,"horizontal"==this.orientation?this.outerBar.css("height",""):this.outerBar.css("width",""),this.slider.responsive.doNormalizedResize()),!this.hidden){o=Math.floor(o),t=Math.max(0,Math.min(this.dots.length-1,t));var r,h={};r=this.parameters.invertGroupDirection?Math.floor(t%Math.ceil(this.dots.length/this.group)/o):Math.floor(t/this.group/o);var n=-(this.scroller["outer"+s.Prop]()-e);r==Math.floor((this.dots.length-1)/this.group/o)?(h[s.sideProp]=-(r*o*this.thumbnailDimension[s.prop]),0==r?this.previous.removeClass("n2-active"):this.previous.addClass("n2-active"),this.next.removeClass("n2-active")):r>0?(h[s.sideProp]=-(r*o*this.thumbnailDimension[s.prop]-this.sideDimension),this.previous.addClass("n2-active"),this.next.addClass("n2-active")):(h[s.sideProp]=0,this.previous.removeClass("n2-active"),this.next.addClass("n2-active")),n>=h[s.sideProp]&&(h[s.sideProp]=n,this.next.removeClass("n2-active")),NextendTween.to(this.scroller,.5,h).play()}this.currentI=t,this.itemPerPane=o}},e.prototype.isVisible=function(){return this.outerBar.is(":visible")},e.prototype.getSize=function(){return"horizontal"==this.orientation?this.outerBar.height()+this.offset:this.outerBar.width()+this.offset},e});
library/smartslider/backend/controllers/Preview.php CHANGED
@@ -17,6 +17,8 @@ class N2SmartsliderBackendPreviewController extends N2SmartSliderController
17
  ), 'smartslider');
18
 
19
  $this->sliderId = N2Request::getInt('sliderid');
 
 
20
  }
21
 
22
  public function actionIndex() {
17
  ), 'smartslider');
18
 
19
  $this->sliderId = N2Request::getInt('sliderid');
20
+
21
+ N2SS3::$forceDesktop = true;
22
  }
23
 
24
  public function actionIndex() {
library/smartslider/backend/controllers/Sliders.php CHANGED
@@ -182,18 +182,20 @@ class N2SmartsliderBackendSlidersController extends N2SmartSliderController {
182
 
183
  }
184
 
185
- public function actionHidePromoLike() {
186
  if ($this->validateToken()) {
187
- $this->appType->app->storage->set('free', 'promoLike', 1);
188
  }
 
189
  $this->redirectToSliders();
190
  }
191
 
192
- public function actionHidePromoUpgrade() {
 
193
  if ($this->validateToken()) {
194
- $this->appType->app->storage->set('free', 'promoUpgrade', 1);
195
  }
196
-
197
  $this->redirectToSliders();
198
  }
199
  }
182
 
183
  }
184
 
185
+ public function actionHidePromoUpgrade() {
186
  if ($this->validateToken()) {
187
+ $this->appType->app->storage->set('free', 'promoUpgrade', 1);
188
  }
189
+
190
  $this->redirectToSliders();
191
  }
192
 
193
+ public function actionHideReview() {
194
+
195
  if ($this->validateToken()) {
196
+ $this->appType->app->storage->set('free', 'review', 1);
197
  }
198
+
199
  $this->redirectToSliders();
200
  }
201
  }
library/smartslider/backend/controllers/Slides.php CHANGED
@@ -20,6 +20,8 @@ class N2SmartsliderBackendSlidesController extends N2SmartSliderController {
20
  'Loop animation',
21
  'Out animation'
22
  ));
 
 
23
  }
24
 
25
  private function initAdminSlider() {
20
  'Loop animation',
21
  'Out animation'
22
  ));
23
+
24
+ N2SS3::$forceDesktop = true;
25
  }
26
 
27
  private function initAdminSlider() {
library/smartslider/backend/controllers/ajax/Sliders.php CHANGED
@@ -50,4 +50,11 @@ class N2SmartsliderBackendSlidersControllerAjax extends N2SmartSliderControllerA
50
  public function actionListGroups() {
51
  }
52
 
 
 
 
 
 
 
 
53
  }
50
  public function actionListGroups() {
51
  }
52
 
53
+ public function actionHideReview() {
54
+ $this->validateToken();
55
+
56
+ $this->appType->app->storage->set('free', 'review', 1);
57
+
58
+ $this->response->respond();
59
+ }
60
  }
library/smartslider/backend/inline/review.phtml ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <div class="n2-box n2-box-promo n2-box-promo-light n2-box-review" data-stars="0">
2
+ <div class="n2-box-review-bigstar"></div>
3
+ <div class="n2-box-review-label" data-star="0">Rate your experience!</div>
4
+ <div class="n2-box-review-label" data-star="1">Hated it</div>
5
+ <div class="n2-box-review-label" data-star="2">Disliked it</div>
6
+ <div class="n2-box-review-label" data-star="3">It was ok</div>
7
+ <div class="n2-box-review-label" data-star="4">Liked it</div>
8
+ <div class="n2-box-review-label" data-star="5">Loved it</div>
9
+ <div class="n2-box-review-stars-container">
10
+ <div class="n2-box-review-star" data-star="1" data-href="https://smartslider3.com/suggestion/?utm_campaign=<?php echo N2SS3::$campaign; ?>&utm_source=dashboard-review-1&utm_medium=smartslider-<?php echo N2Platform::getPlatform() . '-' . N2SS3::$plan; ?>"></div>
11
+ <div class="n2-box-review-star" data-star="2" data-href="https://smartslider3.com/suggestion/?utm_campaign=<?php echo N2SS3::$campaign; ?>&utm_source=dashboard-review-2&utm_medium=smartslider-<?php echo N2Platform::getPlatform() . '-' . N2SS3::$plan; ?>"></div>
12
+ <div class="n2-box-review-star" data-star="3" data-href="https://smartslider3.com/satisfied-customer/?utm_campaign=<?php echo N2SS3::$campaign; ?>&utm_source=dashboard-review-3&utm_medium=smartslider-<?php echo N2Platform::getPlatform() . '-' . N2SS3::$plan; ?>"></div>
13
+ <div class="n2-box-review-star" data-star="4" data-href="https://smartslider3.com/satisfied-customer/?utm_campaign=<?php echo N2SS3::$campaign; ?>&utm_source=dashboard-review-4&utm_medium=smartslider-<?php echo N2Platform::getPlatform() . '-' . N2SS3::$plan; ?>"></div>
14
+ <div class="n2-box-review-star" data-star="5"></div>
15
+ </div>
16
+ <a href="<?php echo $this->appType->router->createUrl(array(
17
+ 'sliders/HideReview',
18
+ N2Form::tokenizeUrl()
19
+ )); ?>" class="n2-close"></a>
20
+ </div>
21
+ <?php
22
+ $reviewUrl = 'https://smartslider3.com/redirect/wordpress-review.html?utm_campaign=' . N2SS3::$campaign . '&utm_source=dashboard-review-5&utm_medium=smartslider-' . N2Platform::getPlatform() . '-' . N2SS3::$plan;
23
+ ?>
24
+ <script type="text/javascript">
25
+ nextend.ready(function ($) {
26
+
27
+ var $box = $('.n2-box-review'),
28
+ dismissReviewUrl = '<?php echo $this->appType->router->createAjaxUrl(array(
29
+ 'sliders/HideReview',
30
+ N2Form::tokenizeUrl()
31
+ )); ?>',
32
+ hideBox = function () {
33
+ $box.remove();
34
+ NextendAjaxHelper.ajax({
35
+ type: "POST",
36
+ url: dismissReviewUrl
37
+ })
38
+ };
39
+ $box.find('.n2-box-review-star').on({
40
+ mouseenter: function () {
41
+ $box.attr('data-stars', $(this).data('star'));
42
+ },
43
+ click: function (e) {
44
+ e.preventDefault();
45
+
46
+ var star = parseInt($(this).data('star'));
47
+ if (star < 5) {
48
+ var win = window.open($(this).data('href'), '_blank');
49
+ hideBox();
50
+ win.focus();
51
+ } else {
52
+ this.createSliderModal = new NextendModal({
53
+ zero: {
54
+ size: [600, 460],
55
+ title: n2_('Let us know how we’re doing!'),
56
+ back: false,
57
+ close: true,
58
+ content: '<div class="n2-modal-review-star-5"></div><div class="n2-modal-review-details">Awesome! If you’re happy with Smart Slider 3 and can<br> take a minute please leave us a review. It will be a<br> tremendous help for us! Thank you very much!</div>',
59
+ controls: [
60
+ '<a href="<?php echo $reviewUrl; ?>" target="_blank" class="n2-button n2-button-normal n2-button-l n2-radius-s n2-button-green n2-uc n2-h4">' + n2_('ok, you deserve it') + '</a>'
61
+ ],
62
+ fn: {
63
+ show: function () {
64
+ this.controls.find('.n2-button').on('click', $.proxy(function (e) {
65
+ this.hide();
66
+ }, this));
67
+ },
68
+ hide: hideBox
69
+ }
70
+ }
71
+ }, true);
72
+ }
73
+ }
74
+ });
75
+ $box.find('.n2-box-review-stars-container').on({
76
+ mouseleave: function () {
77
+ $box.attr('data-stars', 0);
78
+ }
79
+ });
80
+ $box.find('.n2-close').on({
81
+ click: function (e) {
82
+ e.preventDefault();
83
+ hideBox();
84
+ }
85
+ });
86
+ });
87
+
88
+ </script>
library/smartslider/backend/inline/slidemanager.phtml CHANGED
@@ -183,7 +183,7 @@ $router = N2Base::getApplication('smartslider')
183
  <a class="n2-box n2-box-small n2-box-slide-dummy n2-h3" href="#"><?php printf(n2_('Slide #%d'), 1); ?></a>
184
  <a class="n2-box n2-box-small n2-box-slide-dummy n2-h3" href="#"><?php printf(n2_('Slide #%d'), 2); ?></a>
185
  <a class="n2-box n2-box-small n2-box-slide-dummy n2-h3" href="#"><?php printf(n2_('Slide #%d'), 3); ?></a>
186
- <div class="n2-box n2-box-small n2-box-slide-drag-images n2-h6" href="#"><?php n2_e("Drop your images here!"); ?></div>
187
 
188
  <a class="n2-box n2-box-slide-drag-upload n2-h2 n2-uc"
189
  href="#"><?php echo n2_('Drop images to create slides'); ?></a>
183
  <a class="n2-box n2-box-small n2-box-slide-dummy n2-h3" href="#"><?php printf(n2_('Slide #%d'), 1); ?></a>
184
  <a class="n2-box n2-box-small n2-box-slide-dummy n2-h3" href="#"><?php printf(n2_('Slide #%d'), 2); ?></a>
185
  <a class="n2-box n2-box-small n2-box-slide-dummy n2-h3" href="#"><?php printf(n2_('Slide #%d'), 3); ?></a>
186
+ <div class="n2-box n2-box-small n2-box-slide-drag-images n2-h6"><?php n2_e("Drop your images here!"); ?></div>
187
 
188
  <a class="n2-box n2-box-slide-drag-upload n2-h2 n2-uc"
189
  href="#"><?php echo n2_('Drop images to create slides'); ?></a>
library/smartslider/backend/inline/slidermanager.phtml CHANGED
@@ -120,6 +120,10 @@ $router = N2Base::getApplication('smartslider')
120
  echo N2Html::tag('div', array('class' => 'n2-box n2-box-full n2-box-template-library n2-h3 n2-uc'), N2Html::link(n2_('Template library'), '#', array(
121
  'class' => 'n2-ss-add-sample-slider n2-button n2-button-l n2-button-blue n2-radius-s n2-uc n2-h3'
122
  )));
 
 
 
 
123
 
124
  $parameters = array();
125
  if (N2Platform::$isWordpress) {
@@ -135,16 +139,6 @@ $router = N2Base::getApplication('smartslider')
135
  foreach ($sliders AS $sliderObj) {
136
  echo N2SmartsliderSlidersModel::box($sliderObj, $this->widget, $this->appType);
137
  }
138
-
139
- if (count($sliders) > 2 && !N2Base::getApplication('smartslider')->storage->get('free', 'promoLike')) {
140
-
141
- echo N2Html::tag('div', array(
142
- 'class' => 'n2-box n2-box-promo n2-box-promo-light'
143
- ), '<img src="' . N2ImageHelper::fixed('$ss$/admin/images/do-you-like.png') . '" /><a href="' . $this->appType->router->createUrl(array(
144
- 'sliders/hidePromoLike',
145
- N2Form::tokenizeUrl()
146
- )) . '" class="n2-close"></a><span>' . n2_('Do you like Smart Slider 3?') . '</span><div class="n2-box-promo-buttons"><a href="https://smartslider3.com/satisfied-customer/?utm_campaign=' . N2SS3::$campaign . '&utm_source=dashboard-satisfied&utm_medium=smartslider-' . N2Platform::getPlatform() . '-' . N2SS3::$plan . '" target="_blank" class="n2-button n2-button-normal n2-button-s n2-button-green n2-radius-s n2-uc n2-h5">' . n2_('Yes') . '</a><a href="https://smartslider3.com/suggestion/?utm_campaign=' . N2SS3::$campaign . '&utm_source=dashboard-not-satisfied&utm_medium=smartslider-' . N2Platform::getPlatform() . '-' . N2SS3::$plan . '" target="_blank" class="n2-button n2-button-normal n2-button-s n2-button-red n2-radius-s n2-uc n2-h5">' . n2_('No') . '</a></div>');
147
- }
148
  if (!N2Base::getApplication('smartslider')->storage->get('free', 'promoUpgrade')) {
149
  echo N2Html::tag('div', array(
150
  'class' => 'n2-box n2-box-promo n2-box-promo-dark'
120
  echo N2Html::tag('div', array('class' => 'n2-box n2-box-full n2-box-template-library n2-h3 n2-uc'), N2Html::link(n2_('Template library'), '#', array(
121
  'class' => 'n2-ss-add-sample-slider n2-button n2-button-l n2-button-blue n2-radius-s n2-uc n2-h3'
122
  )));
123
+ if (count($sliders) > 2 && !N2Base::getApplication('smartslider')->storage->get('free', 'review')) {
124
+ include dirname(__FILE__) . '/review.phtml';
125
+ }
126
+
127
 
128
  $parameters = array();
129
  if (N2Platform::$isWordpress) {
139
  foreach ($sliders AS $sliderObj) {
140
  echo N2SmartsliderSlidersModel::box($sliderObj, $this->widget, $this->appType);
141
  }
 
 
 
 
 
 
 
 
 
 
142
  if (!N2Base::getApplication('smartslider')->storage->get('free', 'promoUpgrade')) {
143
  echo N2Html::tag('div', array(
144
  'class' => 'n2-box n2-box-promo n2-box-promo-dark'
library/smartslider/backend/layouts/_mainmenu.php CHANGED
@@ -31,7 +31,7 @@ $help = N2Html::link(n2_('Docs'), 'https://smartslider3.helpscoutdocs.com/?utm_c
31
  )) . N2Html::link(n2_('Support'), 'https://smartslider3.com/contact-us/?utm_campaign=' . N2SS3::$campaign . '&utm_source=dashboard-write-support&utm_medium=smartslider-' . N2Platform::getPlatform() . '-' . N2SS3::$plan, array(
32
  'target' => '_blank',
33
  'class' => 'n2-h4'
34
- )) . N2Html::link(n2_('Newsletter'), 'https://nextendweb.us6.list-manage.com/subscribe?u=a41cdf5c66c6a26c1002f5296&id=1cf1f54d9b?utm_campaign=' . N2SS3::$campaign . '&utm_source=dashboard-subscribe-newsletter&utm_medium=smartslider-' . N2Platform::getPlatform() . '-' . N2SS3::$plan, array(
35
  'target' => '_blank',
36
  'class' => 'n2-h4'
37
  ));
31
  )) . N2Html::link(n2_('Support'), 'https://smartslider3.com/contact-us/?utm_campaign=' . N2SS3::$campaign . '&utm_source=dashboard-write-support&utm_medium=smartslider-' . N2Platform::getPlatform() . '-' . N2SS3::$plan, array(
32
  'target' => '_blank',
33
  'class' => 'n2-h4'
34
+ )) . N2Html::link(n2_('Newsletter'), 'https://smartslider3.com/subscribe?u=a41cdf5c66c6a26c1002f5296&id=1cf1f54d9b?utm_campaign=' . N2SS3::$campaign . '&utm_source=dashboard-subscribe-newsletter&utm_medium=smartslider-' . N2Platform::getPlatform() . '-' . N2SS3::$plan, array(
35
  'target' => '_blank',
36
  'class' => 'n2-h4'
37
  ));
library/smartslider/libraries/plugins/N2SliderWidgetAbstract.php CHANGED
@@ -39,12 +39,16 @@ class N2SSPluginWidgetAbstract extends N2PluginBase {
39
  if ($mode == 'above') {
40
  return array(
41
  'margin-bottom:' . $params->get($key . 'position-offset', 0) . 'px;',
42
- array()
 
 
43
  );
44
  } else if ($mode == 'below') {
45
  return array(
46
  'margin-top:' . $params->get($key . 'position-offset', 0) . 'px;',
47
- array()
 
 
48
  );
49
  }
50
  $attributes = array();
39
  if ($mode == 'above') {
40
  return array(
41
  'margin-bottom:' . $params->get($key . 'position-offset', 0) . 'px;',
42
+ array(
43
+ 'data-position' => 'above'
44
+ )
45
  );
46
  } else if ($mode == 'below') {
47
  return array(
48
  'margin-top:' . $params->get($key . 'position-offset', 0) . 'px;',
49
+ array(
50
+ 'data-position' => 'below'
51
+ )
52
  );
53
  }
54
  $attributes = array();
library/smartslider/libraries/slider/cache/slider.php CHANGED
@@ -20,6 +20,18 @@ class N2CacheManifestSlider extends N2CacheManifest {
20
  }
21
  $fileName = $fileName . mt_rand(1, $variations);
22
 
 
 
 
 
 
 
 
 
 
 
 
 
23
  if ($this->exists($this->getManifestKey('data'))) {
24
  $data = json_decode($this->get($this->getManifestKey('data')), true);
25
  $fileName = $this->extendFileName($fileName, $data);
@@ -46,7 +58,7 @@ class N2CacheManifestSlider extends N2CacheManifest {
46
  if ($this->isExtended) {
47
  return $fileName;
48
  }
49
-
50
  $this->isExtended = true;
51
 
52
  $generators = $manifestData['generator'];
20
  }
21
  $fileName = $fileName . mt_rand(1, $variations);
22
 
23
+ if (N2SmartSliderSettings::get('serversidemobiledetect', '0') == '1') {
24
+ N2Loader::import('libraries.mobiledetect');
25
+
26
+ if (N2MobileDetect::$current['isMobile']) {
27
+ $fileName .= '-mobile';
28
+ } else if (N2MobileDetect::$current['isTablet']) {
29
+ $fileName .= '-tablet';
30
+ } else {
31
+ $fileName .= '-desktop';
32
+ }
33
+ }
34
+
35
  if ($this->exists($this->getManifestKey('data'))) {
36
  $data = json_decode($this->get($this->getManifestKey('data')), true);
37
  $fileName = $this->extendFileName($fileName, $data);
58
  if ($this->isExtended) {
59
  return $fileName;
60
  }
61
+
62
  $this->isExtended = true;
63
 
64
  $generators = $manifestData['generator'];
library/smartslider/libraries/slider/features/responsive.php CHANGED
@@ -395,7 +395,7 @@ class N2SmartSliderFeatureResponsive {
395
  }
396
 
397
  $properties['responsive'] = array(
398
- 'desktop' => N2Platform::$isAdmin ? 1 : $this->desktop,
399
  'tablet' => $this->tablet,
400
  'mobile' => $this->mobile,
401
 
395
  }
396
 
397
  $properties['responsive'] = array(
398
+ 'desktop' => N2SS3::$forceDesktop ? 1 : $this->desktop,
399
  'tablet' => $this->tablet,
400
  'mobile' => $this->mobile,
401
 
library/smartslider/libraries/slider/features/slidebackground.php CHANGED
@@ -238,6 +238,7 @@ class N2SmartSliderFeatureSlideBackground {
238
  }
239
 
240
  private function makeBackgroundVideo($slide) {
 
241
  return '';
242
  }
243
  }
238
  }
239
 
240
  private function makeBackgroundVideo($slide) {
241
+
242
  return '';
243
  }
244
  }
library/smartslider/libraries/slider/group.php CHANGED
@@ -8,6 +8,7 @@ class N2SmartSliderTypeGroup extends N2SmartSliderType {
8
 
9
  ob_start();
10
  $this->renderType();
 
11
  return ob_get_clean();
12
  }
13
 
@@ -16,9 +17,12 @@ class N2SmartSliderTypeGroup extends N2SmartSliderType {
16
  $xref = new N2SmartsliderSlidersXrefModel();
17
  $rows = $xref->getSliders($this->slider->data->get('id'));
18
  foreach ($rows AS $row) {
19
- $slider = new N2SmartSliderManager($row['slider_id']);
20
- echo $slider->render();
21
- $this->earlier = min($slider->slider->getNextCacheRefresh(), $this->earlier);
 
 
 
22
  }
23
  }
24
 
8
 
9
  ob_start();
10
  $this->renderType();
11
+
12
  return ob_get_clean();
13
  }
14
 
17
  $xref = new N2SmartsliderSlidersXrefModel();
18
  $rows = $xref->getSliders($this->slider->data->get('id'));
19
  foreach ($rows AS $row) {
20
+ $slider = new N2SmartSliderManager($row['slider_id']);
21
+ $sliderHTML = $slider->render();
22
+ echo $sliderHTML;
23
+ if (!empty($sliderHTML)) {
24
+ $this->earlier = min($slider->slider->getNextCacheRefresh(), $this->earlier);
25
+ }
26
  }
27
  }
28
 
library/smartslider/libraries/slider/manager.php CHANGED
@@ -31,7 +31,7 @@ class N2SmartSliderManager {
31
 
32
  public function render($cache = false) {
33
 
34
- if (!$this->slider->isAdmin && N2SmartSliderSettings::get('serversidemobiledetect', '0') == '1') {
35
  if (!$this->slider->canDisplayOnCurrentDevice()) {
36
  return '';
37
  }
31
 
32
  public function render($cache = false) {
33
 
34
+ if (!N2Platform::$isAdmin && N2SmartSliderSettings::get('serversidemobiledetect', '0') == '1') {
35
  if (!$this->slider->canDisplayOnCurrentDevice()) {
36
  return '';
37
  }
library/smartslider/libraries/slider/slides/slide/component.php CHANGED
@@ -260,7 +260,7 @@ abstract class N2SSSlideComponent {
260
  $click = $this->data->get('click');
261
  if (!empty($click)) {
262
  $this->attributes['data-click'] = $this->pluginAnimationParseEventCode($click, $sliderId);
263
- $this->attributes['style'] .= 'cursor:pointer;';
264
  }
265
  $mouseenter = $this->data->get('mouseenter');
266
  if (!empty($mouseenter)) {
@@ -366,10 +366,10 @@ abstract class N2SSSlideComponent {
366
 
367
  protected function renderBackground() {
368
  $background = '';
369
- $image = $this->data->get('bgimage');
370
  if ($image != '') {
371
- $x = intval($this->data->get('bgimagex', 50));
372
- $y = intval($this->data->get('bgimagey', 50));
373
  $background .= 'URL("' . N2ImageHelper::fixed($image) . '") ' . $x . '% ' . $y . '% / cover no-repeat' . ($this->data->get('bgimageparallax', 0) ? ' fixed' : '');
374
  }
375
 
260
  $click = $this->data->get('click');
261
  if (!empty($click)) {
262
  $this->attributes['data-click'] = $this->pluginAnimationParseEventCode($click, $sliderId);
263
+ $this->attributes['style'] .= 'cursor:pointer;';
264
  }
265
  $mouseenter = $this->data->get('mouseenter');
266
  if (!empty($mouseenter)) {
366
 
367
  protected function renderBackground() {
368
  $background = '';
369
+ $image = $this->slide->fill($this->data->get('bgimage'));
370
  if ($image != '') {
371
+ $x = intval($this->data->get('bgimagex', 50));
372
+ $y = intval($this->data->get('bgimagey', 50));
373
  $background .= 'URL("' . N2ImageHelper::fixed($image) . '") ' . $x . '% ' . $y . '% / cover no-repeat' . ($this->data->get('bgimageparallax', 0) ? ' fixed' : '');
374
  }
375
 
library/smartslider/models/forms/settings/default.xml CHANGED
@@ -15,6 +15,7 @@
15
  <param type="onoff" name="preview-new-window" label="Open preview in new window" default="0"/>
16
  <param type="onoff" name="editor-icon" label="Show editor icon" default="1"/>
17
  <param type="onoff" name="wp-adminbar" label="Show in WordPress admin bar" default="1"/>
 
18
  <param type="onoff" name="force-rtl-backend" label="Force Joomla RTL backend" default="0"/>
19
  </params>
20
  <params name="reponsive" label="Responsive mode">
15
  <param type="onoff" name="preview-new-window" label="Open preview in new window" default="0"/>
16
  <param type="onoff" name="editor-icon" label="Show editor icon" default="1"/>
17
  <param type="onoff" name="wp-adminbar" label="Show in WordPress admin bar" default="1"/>
18
+ <param type="onoff" name="yoast-sitemap" label="YOAST SEO sitemap - add images" default="1"/>
19
  <param type="onoff" name="force-rtl-backend" label="Force Joomla RTL backend" default="0"/>
20
  </params>
21
  <params name="reponsive" label="Responsive mode">
library/smartslider/plugins/type/simple/simple/type.php CHANGED
@@ -192,7 +192,8 @@ class N2SmartSliderTypeSimple extends N2SmartSliderType {
192
  'class' => 'n2-ss-slider-background-video n2-ow',
193
  'data-mode' => $params->get('backgroundVideoMode', 'fill'),
194
  'playsinline' => 1,
195
- 'webkit-playsinline' => 1
 
196
  ), N2Html::tag("source", array(
197
  "src" => $mp4,
198
  "type" => "video/mp4"
192
  'class' => 'n2-ss-slider-background-video n2-ow',
193
  'data-mode' => $params->get('backgroundVideoMode', 'fill'),
194
  'playsinline' => 1,
195
+ 'webkit-playsinline' => 1,
196
+ 'data-keepplaying' => 1
197
  ), N2Html::tag("source", array(
198
  "src" => $mp4,
199
  "type" => "video/mp4"
library/smartslider/plugins/widgetthumbnail/default/default.php CHANGED
@@ -200,10 +200,10 @@ class N2SSPluginWidgetThumbnailDefault extends N2SSPluginWidgetAbstract {
200
  }
201
 
202
  if ($showImage) {
203
- $imgstyle = "width: {$width}px; height: {$height}px;";
204
  $image = N2Html::tag('div', array(
205
  'class' => 'n2-ss-thumb-image n2-ow',
206
- 'style' => "background-image: URL('" . $slider->features->optimize->optimizeThumbnail($slide->getThumbnail()) . "');" . $imgstyle . $thumbnailCode
207
  ), $slide->getThumbnailTypeHTML());
208
  }
209
 
200
  }
201
 
202
  if ($showImage) {
203
+ $imgStyle = "width: {$width}px; height: {$height}px;";
204
  $image = N2Html::tag('div', array(
205
  'class' => 'n2-ss-thumb-image n2-ow',
206
+ 'style' => "background-image: URL('" . $slider->features->optimize->optimizeThumbnail($slide->getThumbnail()) . "');" . $imgStyle . $thumbnailCode
207
  ), $slide->getThumbnailTypeHTML());
208
  }
209
 
library/smartslider/smartslider3.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  class N2SS3 {
4
 
5
- public static $version = '3.2.10';
6
 
7
  public static $plan = 'pro';
8
 
@@ -12,6 +12,8 @@ class N2SS3 {
12
 
13
  public static $source = '';
14
 
 
 
15
  public static function shouldSkipLicenseModal() {
16
  return true;
17
 
2
 
3
  class N2SS3 {
4
 
5
+ public static $version = '3.2.12';
6
 
7
  public static $plan = 'pro';
8
 
12
 
13
  public static $source = '';
14
 
15
+ public static $forceDesktop = false;
16
+
17
  public static function shouldSkipLicenseModal() {
18
  return true;
19
 
library/wordpress/backend/inline/publish.phtml CHANGED
@@ -10,8 +10,7 @@
10
  <div class="n2-h2"><?php n2_e('Page or Post editor'); ?></div>
11
 
12
  <div class="n2-h4"><?php n2_e('Insert it into an existing post with the icon:'); ?></div>
13
- <img
14
- src="<?php echo N2ImageHelper::fixed('$ss$/admin/images/wordpress-publish.png') ?>"/>
15
  </div>
16
  <div class="n2-td n2-last">
17
  <div class="n2-h2"><?php n2_e('PHP code'); ?></div>
10
  <div class="n2-h2"><?php n2_e('Page or Post editor'); ?></div>
11
 
12
  <div class="n2-h4"><?php n2_e('Insert it into an existing post with the icon:'); ?></div>
13
+ <img src="<?php echo N2ImageHelper::fixed('$ss$/admin/images/wordpress-publish.png') ?>" alt="Publish slider"/>
 
14
  </div>
15
  <div class="n2-td n2-last">
16
  <div class="n2-h2"><?php n2_e('PHP code'); ?></div>
nextend/library/applications/system/backend/views/help/index.phtml CHANGED
@@ -3,8 +3,8 @@
3
  <div class="n2-form-tab " id="n2-tab-general"><div class="n2-h2 n2-content-box-title-bg">Help</div>
4
  <table>
5
  <colgroup>
6
- <col class="n2-label-col">
7
- <col class="n2-element-col">
8
  </colgroup>
9
  <tbody>
10
  <tr>
3
  <div class="n2-form-tab " id="n2-tab-general"><div class="n2-h2 n2-content-box-title-bg">Help</div>
4
  <table>
5
  <colgroup>
6
+ <col class="n2-label-col" />
7
+ <col class="n2-element-col" />
8
  </colgroup>
9
  <tbody>
10
  <tr>
nextend/library/applications/system/plugins/nextendfontservices/google/families.csv CHANGED
@@ -94,6 +94,9 @@ Baloo Tammudu
94
  Baloo Thambi
95
  Balthazar
96
  Bangers
 
 
 
97
  Barrio
98
  Basic
99
  Battambang
@@ -232,9 +235,6 @@ Doppio One
232
  Dorsa
233
  Dosis
234
  Dr Sugiyama
235
- Droid Sans
236
- Droid Sans Mono
237
- Droid Serif
238
  Duru Sans
239
  Dynalight
240
  EB Garamond
@@ -755,6 +755,7 @@ Source Serif Pro
755
  Space Mono
756
  Special Elite
757
  Spectral
 
758
  Spicy Rice
759
  Spinnaker
760
  Spirax
@@ -825,6 +826,7 @@ Viga
825
  Voces
826
  Volkhov
827
  Vollkorn
 
828
  Voltaire
829
  Waiting for the Sunrise
830
  Wallpoet
94
  Baloo Thambi
95
  Balthazar
96
  Bangers
97
+ Barlow
98
+ Barlow Condensed
99
+ Barlow Semi Condensed
100
  Barrio
101
  Basic
102
  Battambang
235
  Dorsa
236
  Dosis
237
  Dr Sugiyama
 
 
 
238
  Duru Sans
239
  Dynalight
240
  EB Garamond
755
  Space Mono
756
  Special Elite
757
  Spectral
758
+ Spectral SC
759
  Spicy Rice
760
  Spinnaker
761
  Spirax
826
  Voces
827
  Volkhov
828
  Vollkorn
829
+ Vollkorn SC
830
  Voltaire
831
  Waiting for the Sunrise
832
  Wallpoet
nextend/library/applications/system/plugins/nextendfontservices/google/google.php CHANGED
@@ -23,6 +23,8 @@ console.log(JSON.stringify(f));
23
  for ($i = 0; $i < count($lines); $i++) {
24
  self::$fonts[strtolower($lines[$i])] = $lines[$i];
25
  }
 
 
26
  }
27
 
28
 
@@ -111,12 +113,16 @@ console.log(JSON.stringify(f));
111
  }
112
 
113
  function onFontFamily($family) {
114
- $family = strtolower($family);
115
- if (isset(self::$fonts[$family])) {
116
  foreach (self::$styles AS $style) {
117
- N2GoogleFonts::addFont(self::$fonts[$family], $style);
118
  }
 
 
119
  }
 
 
120
  }
121
  }
122
 
23
  for ($i = 0; $i < count($lines); $i++) {
24
  self::$fonts[strtolower($lines[$i])] = $lines[$i];
25
  }
26
+ self::$fonts['droid sans'] = 'Noto Sans';
27
+ self::$fonts['droid serif'] = 'Noto Serif';
28
  }
29
 
30
 
113
  }
114
 
115
  function onFontFamily($family) {
116
+ $familyLower = strtolower($family);
117
+ if (isset(self::$fonts[$familyLower])) {
118
  foreach (self::$styles AS $style) {
119
+ N2GoogleFonts::addFont(self::$fonts[$familyLower], $style);
120
  }
121
+
122
+ return self::$fonts[$familyLower];
123
  }
124
+
125
+ return $family;
126
  }
127
  }
128
 
nextend/library/libraries/fonts/fonts.php CHANGED
@@ -25,8 +25,8 @@ class N2Fonts {
25
  "'Covered By Your Grace'",
26
  "'Crafty Girls'",
27
  "'Dancing Script'",
28
- "'Droid Sans'",
29
- "'Droid Serif'",
30
  "'Francois One'",
31
  "'Fredoka One'",
32
  "'Gloria Hallelujah'",
25
  "'Covered By Your Grace'",
26
  "'Crafty Girls'",
27
  "'Dancing Script'",
28
+ "'Noto Sans'",
29
+ "'Noto Serif'",
30
  "'Francois One'",
31
  "'Fredoka One'",
32
  "'Gloria Hallelujah'",
nextend/library/libraries/fonts/renderer.php CHANGED
@@ -311,7 +311,7 @@ class N2FontStyle {
311
  $hex = N2Color::hex82hex($v);
312
  $style = 'color: #' . $hex[0] . ';';
313
  if ($hex[1] != 'ff') {
314
- $rgba = N2Color::hex2rgba($v);
315
  $style .= 'color: RGBA(' . $rgba[0] . ',' . $rgba[1] . ',' . $rgba[2] . ',' . round($rgba[3] / 127, 2) . ');';
316
  }
317
 
@@ -447,11 +447,9 @@ class N2FontStyle {
447
  private function getFamily($family) {
448
  static $cache = array();
449
  if (!isset($cache[$family])) {
450
- N2Pluggable::doAction('fontFamily', array($family));
451
- $cache[$family] = '';
452
  }
453
-
454
- return "'" . $family . "'";
455
  }
456
  }
457
 
311
  $hex = N2Color::hex82hex($v);
312
  $style = 'color: #' . $hex[0] . ';';
313
  if ($hex[1] != 'ff') {
314
+ $rgba = N2Color::hex2rgba($v);
315
  $style .= 'color: RGBA(' . $rgba[0] . ',' . $rgba[1] . ',' . $rgba[2] . ',' . round($rgba[3] / 127, 2) . ');';
316
  }
317
 
447
  private function getFamily($family) {
448
  static $cache = array();
449
  if (!isset($cache[$family])) {
450
+ $cache[$family] = N2Pluggable::applyFilters('fontFamily', $family);
 
451
  }
452
+ return "'" . $cache[$family] . "'";
 
453
  }
454
  }
455
 
nextend/library/libraries/form/tab.php CHANGED
@@ -105,7 +105,7 @@ class N2Tab {
105
 
106
  function decorateGroupStart() {
107
  echo "<table>";
108
- echo N2Html::tag('colgroup', array(), N2Html::tag('col', array('class' => 'n2-label-col')) . N2Html::tag('col', array('class' => 'n2-element-col')));
109
  }
110
 
111
  function decorateGroupEnd() {
105
 
106
  function decorateGroupStart() {
107
  echo "<table>";
108
+ echo N2Html::tag('colgroup', array(), N2Html::tag('col', array('class' => 'n2-label-col'), '', false) . N2Html::tag('col', array('class' => 'n2-element-col'), '', false));
109
  }
110
 
111
  function decorateGroupEnd() {
nextend/media/dist/nextend-backend.css CHANGED
@@ -5766,6 +5766,10 @@ html[dir="rtl"] .n2-list li > .n2-actions {
5766
  background: transparent;
5767
  }
5768
 
 
 
 
 
5769
  .n2-box-promo-overlay,
5770
  .n2-box-promo-overlay:HOVER,
5771
  .n2-box-promo-overlay:FOCUS,
@@ -5832,6 +5836,103 @@ html[dir="rtl"] .n2-list li > .n2-actions {
5832
 
5833
  .n2-box-promo-buttons .n2-button + .n2-button {
5834
  margin-left: 20px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5835
  }
5836
 
5837
 
5766
  background: transparent;
5767
  }
5768
 
5769
+ .n2-box-promo-light {
5770
+ background: #fff;
5771
+ }
5772
+
5773
  .n2-box-promo-overlay,
5774
  .n2-box-promo-overlay:HOVER,
5775
  .n2-box-promo-overlay:FOCUS,
5836
 
5837
  .n2-box-promo-buttons .n2-button + .n2-button {
5838
  margin-left: 20px;
5839
+ }
5840
+
5841
+ .n2-box-review {
5842
+ text-align: center;
5843
+ }
5844
+
5845
+ .n2-box-review-bigstar {
5846
+ width: 170px;
5847
+ height: 105px;
5848
+ margin: 0 auto;
5849
+ background-image: url('../images/stars-big.png');
5850
+ }
5851
+
5852
+ [data-stars="1"] .n2-box-review-bigstar {
5853
+ background-position: 0 -105px;
5854
+ }
5855
+
5856
+ [data-stars="2"] .n2-box-review-bigstar {
5857
+ background-position: 0 -210px;
5858
+ }
5859
+
5860
+ [data-stars="3"] .n2-box-review-bigstar {
5861
+ background-position: 0 -315px;
5862
+ }
5863
+
5864
+ [data-stars="4"] .n2-box-review-bigstar {
5865
+ background-position: 0 -420px;
5866
+ }
5867
+
5868
+ [data-stars="5"] .n2-box-review-bigstar {
5869
+ background-position: 0 -525px;
5870
+ }
5871
+
5872
+ .n2-box-review-label {
5873
+ color: #7b8898;
5874
+ font-size: 15px;
5875
+ line-height: 22px;
5876
+ height: 22px;
5877
+ overflow: hidden;
5878
+ display: none;
5879
+ }
5880
+
5881
+ [data-stars="0"] .n2-box-review-label[data-star="0"],
5882
+ [data-stars="1"] .n2-box-review-label[data-star="1"],
5883
+ [data-stars="2"] .n2-box-review-label[data-star="2"],
5884
+ [data-stars="3"] .n2-box-review-label[data-star="3"],
5885
+ [data-stars="4"] .n2-box-review-label[data-star="4"],
5886
+ [data-stars="5"] .n2-box-review-label[data-star="5"] {
5887
+ display: block;
5888
+ }
5889
+
5890
+ .n2-box-review-stars-container {
5891
+ width: 170px;
5892
+ height: 34px;
5893
+ margin: 0 auto;
5894
+ }
5895
+
5896
+ .n2-box-review-star {
5897
+ cursor: pointer;
5898
+ transition: transform 0.4s;
5899
+ vertical-align: top;
5900
+ float: left;
5901
+ width: 34px;
5902
+ height: 34px;
5903
+ background-image: url('../images/stars-small.png');
5904
+ }
5905
+
5906
+ [data-stars="1"] .n2-box-review-star[data-star="1"],
5907
+ [data-stars="2"] .n2-box-review-star[data-star="1"],
5908
+ [data-stars="2"] .n2-box-review-star[data-star="2"],
5909
+ [data-stars="3"] .n2-box-review-star[data-star="1"],
5910
+ [data-stars="3"] .n2-box-review-star[data-star="2"],
5911
+ [data-stars="3"] .n2-box-review-star[data-star="3"],
5912
+ [data-stars="4"] .n2-box-review-star[data-star="1"],
5913
+ [data-stars="4"] .n2-box-review-star[data-star="2"],
5914
+ [data-stars="4"] .n2-box-review-star[data-star="3"],
5915
+ [data-stars="4"] .n2-box-review-star[data-star="4"],
5916
+ [data-stars="5"] .n2-box-review-star[data-star="1"],
5917
+ [data-stars="5"] .n2-box-review-star[data-star="2"],
5918
+ [data-stars="5"] .n2-box-review-star[data-star="3"],
5919
+ [data-stars="5"] .n2-box-review-star[data-star="4"],
5920
+ [data-stars="5"] .n2-box-review-star[data-star="5"] {
5921
+ background-position: 0 -34px;
5922
+ transform: scale(1.3);
5923
+ }
5924
+
5925
+ .n2-modal-review-star-5 {
5926
+ width: 560px;
5927
+ height: 241px;
5928
+ background: url(../images/star-5.png);
5929
+ }
5930
+
5931
+ .n2-modal-review-details {
5932
+ font-size: 14px;
5933
+ line-height: 28px;
5934
+ color: #7b8898;
5935
+ text-align: center;
5936
  }
5937
 
5938
 
nextend/media/dist/nextend-backend.min.css CHANGED
@@ -1,4 +1,4 @@
1
- @font-face{font-family:'Nextend';src:url(../fonts/Nextend.eot?jk6d47);src:url(../fonts/Nextend.eot?jk6d47#iefix) format('embedded-opentype'),url(../fonts/Nextend.ttf?jk6d47) format('truetype'),url(../fonts/Nextend.woff?jk6d47) format('woff');font-weight:400;font-style:normal}.n2-i{font-family:'Nextend'!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.n2-i-slidelibrary:before{content:"\e97d"}.n2-i-newslide:before{content:"\e981"}.n2-i-canvas:before{content:"\e916"}.n2-i-builder:before{content:"\e97c"}.n2-i-minimize:before{content:"\e914"}.n2-i-maximize:before{content:"\e915"}.n2-i-vertical-align-top:before{content:"\e96c"}.n2-i-vertical-align-space-between:before{content:"\e97a"}.n2-i-vertical-align-space-around:before{content:"\e97b"}.n2-i-vertical-align-center:before{content:"\e97e"}.n2-i-vertical-align-bottom:before{content:"\e97f"}.n2-i-mini-desktop-portrait:before{content:"\e980"}.n2-i-uplevel:before{content:"\e979"}.n2-i-hidedesktoplandscape:before{content:"\e95a"}.n2-i-mini-arrow-thin:before{content:"\e926"}.n2-i-mini-move:before{content:"\e973"}.n2-i-color:before{content:"\e95b"}.n2-i-col:before{content:"\e95c"}.n2-i-structure-Sb:before{content:"\e95d"}.n2-i-structure-Sa:before{content:"\e95e"}.n2-i-structure-4a:before{content:"\e95f"}.n2-i-structure-3b:before{content:"\e960"}.n2-i-structure-3a:before{content:"\e961"}.n2-i-structure-2e:before{content:"\e962"}.n2-i-structure-2d:before{content:"\e963"}.n2-i-structure-2c:before{content:"\e964"}.n2-i-structure-2b:before{content:"\e965"}.n2-i-structure-2a:before{content:"\e966"}.n2-i-structure-1a:before{content:"\e967"}.n2-i-mini-tablet-portrait:before{content:"\e968"}.n2-i-mini-tablet-landscape:before{content:"\e969"}.n2-i-mini-mobile-portrait:before{content:"\e96a"}.n2-i-mini-mobile-landscape:before{content:"\e96b"}.n2-i-mini-desktop-landscape:before{content:"\e96d"}.n2-i-video:before{content:"\e96e"}.n2-i-stretch:before{content:"\e96f"}.n2-i-row:before{content:"\e970"}.n2-i-none:before{content:"\e971"}.n2-i-mini-trash:before{content:"\e972"}.n2-i-mini-duplicate:before{content:"\e974"}.n2-i-mini-arrow-up:before{content:"\e975"}.n2-i-mini-arrow-right:before{content:"\e976"}.n2-i-mini-arrow-left:before{content:"\e977"}.n2-i-mini-arrow-down:before{content:"\e978"}.n2-i-chainsmall:before{content:"\e949"}.n2-i-reset2:before{content:"\e946"}.n2-i-save:before{content:"\e947"}.n2-i-clearanimation:before{content:"\e948"}.n2-i-magnet:before{content:"\e936"}.n2-i-layerlist:before{content:"\e935"}.n2-i-layer-text:before{content:"\e920"}.n2-i-layer-image:before{content:"\e931"}.n2-i-layer-heading:before{content:"\e932"}.n2-i-layer-button:before{content:"\e933"}.n2-i-settings:before{content:"\e934"}.n2-i-selectarrow:before{content:"\e930"}.n2-i-closewindow:before{content:"\e90a"}.n2-i-selected:before{content:"\e90b"}.n2-i-layerlistopen:before{content:"\e92b"}.n2-i-layerlistclose:before{content:"\e92c"}.n2-i-backtoslider:before{content:"\e92e"}.n2-i-addlayer2:before{content:"\e92f"}.n2-i-newdrag:before{content:"\e913"}.n2-i-addlayer:before{content:"\e917"}.n2-i-listlayer:before{content:"\e918"}.n2-i-closelayer:before{content:"\e919"}.n2-i-copy:before{content:"\e907"}.n2-i-paste:before{content:"\e908"}.n2-i-undo:before{content:"\e905"}.n2-i-redo:before{content:"\e906"}.n2-i-sortdate2:before{content:"\e900"}.n2-i-sortdate1:before{content:"\e901"}.n2-i-sortalphabetic2:before{content:"\e902"}.n2-i-sortalphabetic1:before{content:"\e903"}.n2-i-hide:before{content:"\e60e"}.n2-i-adaptive:before{content:"\e64e"}.n2-i-reset:before{content:"\e64f"}.n2-i-fontmodifier:before{content:"\e650"}.n2-i-sun:before{content:"\e651"}.n2-i-layerunlink:before{content:"\e64b"}.n2-i-layerlink:before{content:"\e64d"}.n2-i-moon:before{content:"\e64c"}.n2-i-horizontal-right:before{content:"\e645"}.n2-i-horizontal-center:before{content:"\e646"}.n2-i-horizontal-left:before{content:"\e647"}.n2-i-vertical-bottom:before{content:"\e648"}.n2-i-vertical-middle:before{content:"\e649"}.n2-i-vertical-top:before{content:"\e64a"}.n2-i-bulb:before{content:"\e643"}.n2-i-unlock:before{content:"\e63f"}.n2-i-anim-out:before{content:"\e640"}.n2-i-anim-in:before{content:"\e641"}.n2-i-anim-loop:before{content:"\e642"}.n2-i-more:before{content:"\e639"}.n2-i-buttonarrow:before{content:"\e638"}.n2-i-list:before{content:"\e635"}.n2-i-link:before{content:"\e636"}.n2-i-play:before{content:"\e605"}.n2-i-pause:before{content:"\e606"}.n2-i-stop:before{content:"\e607"}.n2-i-snapcenter:before{content:"\e62e"}.n2-i-snapgrid:before{content:"\e62f"}.n2-i-snaplayer:before{content:"\e630"}.n2-i-snapnone:before{content:"\e631"}.n2-i-plus:before{content:"\e632"}.n2-i-minus:before{content:"\e633"}.n2-i-bold:before{content:"\e601"}.n2-i-unpublished:before{content:"\e62d"}.n2-i-published:before{content:"\e60c"}.n2-i-underline:before{content:"\e602"}.n2-i-italic:before{content:"\e615"}.n2-i-empty:before{content:"\e62c"}.n2-i-tick:before{content:"\e600"}.n2-i-star:before{content:"\e603"}.n2-i-right:before{content:"\e604"}.n2-i-order:before{content:"\e608"}.n2-i-lock:before{content:"\e609"}.n2-i-left:before{content:"\e60a"}.n2-i-justify:before{content:"\e60b"}.n2-i-info:before{content:"\e60d"}.n2-i-eye:before{content:"\e60f"}.n2-i-edit:before{content:"\e610"}.n2-i-duplicate:before{content:"\e611"}.n2-i-delete:before{content:"\e612"}.n2-i-close:before{content:"\e613"}.n2-i-center:before{content:"\e614"}.n2-i-emptyslide:before{content:"\e91b"}.n2-i-addslide:before{content:"\e91c"}.n2-i-staraction:before{content:"\e91d"}.n2-i-breadcrumbarrow:before{content:"\e91e"}.n2-i-animation:before{content:"\e91f"}.n2-i-folderclosed:before{content:"\e921"}.n2-i-folderopened:before{content:"\e922"}.n2-i-hide2:before{content:"\e923"}.n2-i-select:before{content:"\e924"}.n2-i-hidedesktopportrait:before{content:"\e925"}.n2-i-hidetabletlandscape:before{content:"\e927"}.n2-i-hidetabletportrait:before{content:"\e928"}.n2-i-hidemobilelandscape:before{content:"\e929"}.n2-i-hidemobileportrait:before{content:"\e92a"}.n2-i-backgroundedit:before{content:"\e909"}.n2-i-backgroundmanage:before{content:"\e90c"}.n2-i-backgroundposition:before{content:"\e90d"}.n2-i-viewmini:before{content:"\e90e"}.n2-i-viewgrid:before{content:"\e90f"}.n2-i-viewlist:before{content:"\e910"}.n2-i-more2:before{content:"\e911"}.n2-i-tick2:before{content:"\e912"}.n2-i-group:before{content:"\e957"}.n2-i-group-up:before{content:"\e958"}.n2-i-group-insert:before{content:"\e959"}.n2-i-add-sample:before{content:"\e951"}.n2-i-add-new:before{content:"\e952"}.n2-i-progressbar-layer:before{content:"\e982"}.n2-i-imagebox-layer:before{content:"\e983"}.n2-i-counter-layer:before{content:"\e984"}.n2-i-circlecounter-layer:before{content:"\e985"}.n2-i-audio-layer:before{content:"\e986"}.n2-i-a-license:before{content:"\e953"}.n2-i-a-import:before{content:"\e954"}.n2-i-a-deauthorize:before{content:"\e955"}.n2-i-a-clear:before{content:"\e956"}.n2-i-imagearea-layer:before{content:"\e950"}.n2-i-window-settings:before{content:"\e94c"}.n2-i-window-animation:before{content:"\e94d"}.n2-i-window-design:before{content:"\e94e"}.n2-i-window-layer:before{content:"\e94f"}.n2-i-dashboard:before{content:"\e94a"}.n2-i-slider2:before{content:"\e94b"}.n2-i-area-layer:before{content:"\e937"}.n2-i-iframe-layer:before{content:"\e938"}.n2-i-input-layer:before{content:"\e939"}.n2-i-html-layer:before{content:"\e93a"}.n2-i-video-layer:before{content:"\e93b"}.n2-i-vimeo-layer:before{content:"\e93c"}.n2-i-youtube-layer:before{content:"\e93d"}.n2-i-list-layer:before{content:"\e93e"}.n2-i-transition-layer:before{content:"\e93f"}.n2-i-caption-layer:before{content:"\e940"}.n2-i-icon-layer:before{content:"\e941"}.n2-i-button-layer:before{content:"\e942"}.n2-i-image-layer:before{content:"\e943"}.n2-i-text-layer:before{content:"\e944"}.n2-i-heading-layer:before{content:"\e945"}.n2-i-preview:before{content:"\e92d"}.n2-i-slides:before{content:"\e91a"}.n2-i-slideedit:before{content:"\e904"}.n2-i-help:before{content:"\e644"}.n2-i-v-tablet-landscape:before{content:"\e63a"}.n2-i-v-mobile-landscape:before{content:"\e63b"}.n2-i-v-desktop-landscape:before{content:"\e63c"}.n2-i-bulk:before{content:"\e634"}.n2-i-notification:before{content:"\e637"}.n2-i-v-tablet:before{content:"\e616"}.n2-i-v-mobile:before{content:"\e617"}.n2-i-v-desktop:before{content:"\e618"}.n2-i-v-all:before{content:"\e619"}.n2-i-smart:before{content:"\e61a"}.n2-i-slider:before{content:"\e61b"}.n2-i-s-open:before{content:"\e61c"}.n2-i-s-close:before{content:"\e61d"}.n2-i-next:before{content:"\e61e"}.n2-i-n-success:before{content:"\e61f"}.n2-i-n-notice:before{content:"\e620"}.n2-i-n-error:before{content:"\e621"}.n2-i-n-close:before{content:"\e622"}.n2-i-drag:before{content:"\e623"}.n2-i-a-text:before{content:"\e624"}.n2-i-a-refresh:before{content:"\e625"}.n2-i-a-html:before{content:"\e626"}.n2-i-a-export:before{content:"\e627"}.n2-i-a-duplicate:before{content:"\e628"}.n2-i-a-deletes:before{content:"\e629"}.n2-i-a-delete:before{content:"\e62a"}.n2-i-a-back:before{content:"\e62b"}.n2-i-up:before{content:"\e63e"}.n2-i-folder:before{content:"\e63d"}.n2{box-sizing:initial}.n2,.n2 .ui-widget,.n2 td,.n2 th,html[dir=rtl] .n2{font-family:"Montserrat",Arial,sans-serif;-webkit-font-smoothing:antialiased;font-size:12px}.n2 a:ACTIVE,.n2 a:FOCUS,.n2 a:LINK,.n2 a:VISITED{text-decoration:none}.n2-h1{font-size:26px}.n2-h2{font-size:20px}.n2-h3{font-size:14px}.n2-h4{font-size:12px}.n2-h5,input[type].n2-h5,select.n2-h5,textarea.n2-h5{font-size:11px}.n2-h6{font-size:10px}.n2-b{font-weight:700}.n2-uc{text-transform:uppercase}.n2-ucf{text-transform:capitalize}.n2-i+span,.n2-i+span+span,.n2-i+span+span+span{vertical-align:middle}.n2-actions-left>a,.n2-actions-left>a:HOVER,.n2-i-grey-opacity,.n2-i-grey-opacity:HOVER{color:#b2bfc9}.n2-active>.n2-i-star{color:#c68c1e}.n2-active>.n2-i-unpublished:before{content:"\e60c"}.n2-active>.n2-i-unpublished,.n2-active>.n2-i-unpublished:HOVER{color:#6fbc49}.n2-button .n2-i,.n2-i.n2-it{line-height:inherit;vertical-align:top}.n2-description,.n2-description p{font-size:12px;color:#6b7989}.n2-description ol{font-size:11px}div.n2-description ul{padding-left:20px;font-size:12px;list-style-type:disc}#wpbody-content{padding-bottom:0!important}#wpfooter{display:none}#wpbody-content #n2-admin{margin:10px 20px 0 0}html[dir=rtl] #wpbody-content #n2-admin{margin:10px 0 0 20px}#wpbody-content #n2-admin a:focus{box-shadow:none}#content-box #toolbar-box{display:none}.n2 input:focus,.n2 select:focus,.n2 textarea:focus{background:0 0}.n2 ul{padding:0}.n2 dt{font-weight:400}#status,.admin .subhead-collapse,.admin header.header{display:none}div#system-debug,div.container-main{padding-bottom:0}.admin #content{margin-top:20px}.n2 button,.n2 input,.n2 label,.n2 select,.n2 textarea{line-height:inherit}.n2 *:focus{box-shadow:none}#n2-admin img{display:inline}#system-message-container,.ui-helper-hidden{display:none}.n2 td{vertical-align:inherit}.n2 .thumb{margin-top:0}body.n2-platform-native{padding:10px;font-size:13px;line-height:1.4em;overflow:auto}.n2 hr,iframe{border:0}.ui-helper-hidden-accessible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}#n2-admin{min-width:980px;background-color:#e9edf0}.n2 hr{border-top:1px solid #ccd1d6;border-bottom:1px solid #fafafa}.n2 a{-moz-transition:none;-webkit-transition:none;-o-transition:color 0s ease-in;transition:none;outline:0}.n2-clickable{cursor:pointer}.n2-table{display:table;width:100%;border-spacing:0;border-collapse:collapse}.n2-table.n2-content{border-collapse:separate}.n2-table-auto{width:auto}.n2-table-fixed{table-layout:fixed}.n2-tr{display:table-row}.n2-td{display:table-cell;vertical-align:top}.n2-table-fancy,.n2-table-pane{width:100%;text-align:center;border-spacing:0}.n2-table-pane{table-layout:fixed;border-collapse:separate}.n2-table-fancy{border-collapse:collapse;border:2px solid #a1aeb5;border-radius:5px}.n2-table-fancy tr:nth-child(odd){background-color:#f2f5fa}.n2-table-fancy td{border:1px solid #e0e3e6;padding:10px;text-align:left;font-size:11px}html[dir=rtl] .n2-table-fancy td{text-align:right}.n2-table-fancy-wrap{border:2px solid #a1aeb5;border-radius:5px}.n2-table-fancy-wrap .n2-table-fancy{border:0}.n2-table-fancy-wrap .n2-table-fancy td{border:0;border-bottom:1px solid #e0e3e6}.n2-table-pane td{padding:0}.n2-inline-block{display:inline-block;vertical-align:top}.n2-left{float:left}.n2-right,html[dir=rtl] .n2-left{float:right}html[dir=rtl] .n2-right{float:left}.n2-clear{clear:both}.n2-blue-bg,.n2-blue-logo-bg{background-color:#0c92df}.n2-sidebar-base-bg{background-color:#4d5d70}.n2-sidebar-header-bg{background-color:#485769}.n2-sidebar-list-bg{background-color:#212d3a}.n2-sidebar-tab-bg{background-color:#202934}.n2-sidebar-parameter-label-bg{background-color:#212d3a}.n2-sidebar-tab-switcher{border-bottom:1px solid #2c3540}.n2-sidebar-tab-switcher .n2-td{color:#b2bfc9;text-align:center;height:60px;line-height:60px;cursor:pointer}.n2-sidebar-tab-switcher .n2-td.n2-active{color:#fff}.n2-sidebar-pane-sizer{top:0;left:0;height:15px;width:100%;cursor:ns-resize;background:#212d3a;text-align:center;color:#4d5d70;font-size:32px;line-height:15px}.n2-content-base-bg{background-color:#e9edf0}.n2-content-box-title-bg{background-color:#f2f5fa}.n2-border-radius{-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.n2-border-radius-tr{-webkit-border-top-right-radius:3px;-moz-border-radius-topright:3px;border-top-right-radius:3px}html[dir=rtl] .n2-border-radius-tr{-webkit-border-top-right-radius:0;-moz-border-radius-topright:0;border-top-right-radius:0}.n2-border-radius-tl,html[dir=rtl] .n2-border-radius-tr{-webkit-border-top-left-radius:3px;-moz-border-radius-topleft:3px;border-top-left-radius:3px}html[dir=rtl] .n2-border-radius-tl{-webkit-border-top-right-radius:3px;-moz-border-radius-topright:3px;border-top-right-radius:3px;-webkit-border-top-left-radius:0;-moz-border-radius-topleft:0;border-top-left-radius:0}.n2-border-radius-br{-webkit-border-bottom-right-radius:3px;-moz-border-radius-bottomright:3px;border-bottom-right-radius:3px}html[dir=rtl] .n2-border-radius-br{-webkit-border-bottom-right-radius:0;-moz-border-radius-bottomright:0;border-bottom-right-radius:0}.n2-border-radius-bl,html[dir=rtl] .n2-border-radius-br{-webkit-border-bottom-left-radius:3px;-moz-border-radius-bottomleft:3px;border-bottom-left-radius:3px}html[dir=rtl] .n2-border-radius-bl{-webkit-border-bottom-right-radius:3px;-moz-border-radius-bottomright:3px;border-bottom-right-radius:3px;-webkit-border-bottom-left-radius:0;-moz-border-radius-bottomleft:0;border-bottom-left-radius:0}.n2-a,.n2-a:ACTIVE,.n2-a:FOCUS,.n2-a:HOVER,.n2-a:VISITED{color:#08c}#n2-ss-redo,#n2-ss-undo{opacity:.5}#n2-ss-redo.n2-active,#n2-ss-undo.n2-active{opacity:1}#n2-ss-undo+#n2-ss-redo{margin-left:-15px}.n2-top-bar-menu .n2-button-icon{margin:12px 2px 0}.n2-expert-switch{display:inline-block;height:36px;margin-right:20px;vertical-align:top;position:relative;overflow:hidden;padding:0 30px;text-align:right}.n2-expert-switch .n2-expert-expert,.n2-expert-switch .n2-expert-simple{display:inline-block;height:100%;position:relative;line-height:36px;color:#b2bfc9;transition:top .3s,opacity .3s}.n2-expert-switch .n2-expert-simple{top:-36px;opacity:1}.n2-expert-switch .n2-expert-expert{top:-10px;opacity:0}.n2-expert-switch.n2-active .n2-expert-simple{top:-26px;opacity:0}.n2-expert-switch.n2-active .n2-expert-expert{top:0;opacity:1}.n2-expert-switch .n2-expert-bar{position:absolute;top:5px;right:8px;width:8px;height:24px;background:#6b7986;border-radius:4px;transition:background .3s}.n2-expert-switch.n2-active .n2-expert-bar{background:#51b82d}.n2-expert-switch .n2-expert-dot{position:absolute;top:-1px;left:-3px;width:14px;height:14px;border-radius:7px;background:#fff;transition:top .3s}.n2-expert-switch.n2-active .n2-expert-dot{top:10px}.n2-button-play{text-align:left;padding:0}.n2-button-play .n2-i,.n2-button-play span{vertical-align:middle}.n2-button-play span{display:inline-block;padding:0 20px;border-left:1px solid #1582c2}.n2-header{display:flex;justify-content:space-between;flex:1;height:70px;z-index:11;border-top-right-radius:5px;overflow:hidden}.n2-logo{width:339px;border-right:1px solid #1681c1;border-top-left-radius:5px}.n2-logo a{display:inline-block;width:100%;height:100%;text-align:center}.n2-logo a img{margin-top:9px}.n2-header-breadcrumbs{align-self:center}.n2-header-menu{text-align:right;white-space:nowrap}.n2-header-right>*{color:RGBA(255,255,255,.7);line-height:23px;display:inline-block;height:100%;padding:0 24px;vertical-align:top;font-size:13px}.n2-header-menu>*{line-height:70px}.n2-header-menu .n2-menu-has-sub .n2-menu-sub{display:none;position:absolute;right:5px;bottom:0;line-height:26px;white-space:nowrap}html[dir=rtl] .n2-header-menu .n2-menu-has-sub .n2-menu-sub{left:5px;right:auto}.n2-header-menu .n2-menu-has-sub:HOVER .n2-menu-sub{display:block}.n2-header-menu .n2-menu-has-sub .n2-menu-sub *{color:RGBA(255,255,255,.7)!important;padding:0 10px;font-size:11px}.n2-header-breadcrumbs>a{max-width:250px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.n2-header-breadcrumbs>span{padding:0;margin:0 -10px}.n2-header-right>.n2-h4,.n2-header-right>.n2-h4:ACTIVE,.n2-header-right>.n2-h4:FOCUS,.n2-header-right>.n2-h4:LINK,.n2-header-right>.n2-h4:VISITED{color:RGBA(255,255,255,.7);text-decoration:none}.n2-header-right .n2-h4.n2-active{color:#fff}.n2-sidebar{width:439px;border-right:1px solid #212d3a}.n2-sidebar-hidden>.n2-content .n2-sidebar{display:none}.n2-sidebar>:first-child{border-top:1px solid #2c3540}.n2-lightbox .n2-sidebar>:first-child{border-top:0}.n2-sidebar-fixed{position:fixed;top:0}.admin-bar .n2-sidebar-fixed{top:32px}.admin .n2-sidebar-fixed{top:31px}.n2-content-area{position:relative;border:1px solid #a3adb7;border-width:0 1px 1px 0;min-height:1000px;width:100%}.n2-sidebar-hidden .n2-content-area{border-width:0 1px 1px;-webkit-border-bottom-left-radius:3px;-moz-border-radius-bottomleft:3px;border-bottom-left-radius:3px}.n2-top-bar{position:relative;top:0;height:60px;z-index:1020;margin-right:-1px;border-bottom:1px solid #1c2329;display:flex;flex-wrap:nowrap;flex-flow:row;justify-content:space-between}.n2-sidebar-hidden .n2-top-bar{margin-left:-1px}.n2-top-bar>*{flex:1 0 auto}.n2-top-bar-middle{text-align:center;display:inline-block;height:100%}.n2-top-bar .n2-back{margin:0}.n2-top-bar .n2-back a{border-right:1px solid #1c2329;line-height:17px;padding-bottom:7px;color:#80a3b5}.n2-top-bar .n2-back a:before{font-family:'Nextend'!important;display:block;color:#80a3b5;font-size:32px;text-align:center;line-height:25px;margin-top:11px}.n2-top-bar-menu{line-height:60px;height:60px;overflow:hidden}.n2-top-bar-menu .n2-form-dark{margin-top:16px;height:28px;line-height:28px;overflow:hidden}.n2-top-bar-menu>.n2-h4{display:inline-block;line-height:60px;padding:0;color:#b2bfc9;font-size:10px;min-width:80px;text-align:center}.n2-top-bar-menu>.n2-h4.n2-active{color:#ebeced;cursor:default}.n2-top-bar-menu span{color:#b2bfc9;padding:0 10px}@media all and (max-width:800px){.n2-top-bar-menu>.n2-h4{display:none}}.n2-top-bar .n2-save-mode{color:#b2bfc9;font-size:12px}.n2-top-bar .n2-save-mode i{margin:0 10px;padding:0}.n2-top-bar .n2-form-dark .n2-form-element-radio-tab{vertical-align:middle}.n2-top-bar-actions{margin:12px 1px 0;white-space:nowrap;text-align:right}.n2-top-bar-actions .n2-button{margin-right:20px;vertical-align:top}html[dir=rtl] .n2-top-bar-actions .n2-button{margin-right:0;margin-left:20px}.n2-heading-bar{z-index:9;position:relative;background-color:#fff;border-bottom:1px solid #e0e6ed;padding:35px 0;display:flex}.n2-heading-bar-left{flex:1;align-self:center}.n2-heading{position:relative;color:#6b7989;line-height:40px;margin:0 30px}.n2-heading span{position:absolute;font-size:11px;left:2px;bottom:-26px}.n2-heading-menu{position:absolute;bottom:0;left:10px}html[dir=rtl] .n2-heading-menu{left:auto;right:10px}.n2-heading-menu>div{display:inline-block;padding:0 20px;color:#7b8898;cursor:pointer;line-height:34px}.n2-heading-menu>div.n2-active{color:#0c92df}.n2-heading-menu>div.n2-button{color:#fff;line-height:28px}.n2-heading-actions{white-space:nowrap;align-self:center}.n2-heading-actions-label{color:#6b7989;vertical-align:middle;line-height:32px}.n2-heading-actions a,.n2-heading-actions a:HOVER,.n2-heading-actions a:focus{display:inline-block;padding:10px;color:#b0b9bf;vertical-align:middle;font-size:32px}.n2-underline{position:relative}.n2-has-underline>.n2-underline:after{content:"";position:absolute;width:0;height:3px;bottom:-10px;left:0;background-color:#0c92df}.n2-active>.n2-underline:after{width:100%}.n2-controls-panel{line-height:28px}.n2-controls-panel .n2-panel-heading{padding-right:11px;color:#7b8898}.n2-panel-option a{display:inline-block;background-color:#a1aeb5;color:#fff;padding:0 24px;border-right:1px solid #b9c3c9}.n2-panel-option.n2-first a{-webkit-border-top-left-radius:3px;-webkit-border-bottom-left-radius:3px;-moz-border-radius-topleft:3px;-moz-border-radius-bottomleft:3px;border-top-left-radius:3px;border-bottom-left-radius:3px}.n2-panel-option.n2-last a{border-right:0;-webkit-border-top-right-radius:3px;-webkit-border-bottom-right-radius:3px;-moz-border-radius-topright:3px;-moz-border-radius-bottomright:3px;border-top-right-radius:3px;border-bottom-right-radius:3px}.n2-panel-option.n2-active a{background-color:#0c92df}.n2-modal{position:fixed;top:0;left:0;width:100%;height:100%;z-index:100002;background-color:RGBA(43,52,63,.9)}.n2-modal-window{position:absolute;top:50%;left:50%;background-color:#fff;z-index:1}.n2-modal-title{line-height:59px;color:#6b7989;border-bottom:1px solid #ccd1d6;overflow:hidden;border-top-left-radius:3px;border-top-right-radius:3px}.n2-modal-title .n2-h2{text-align:center;margin:0 58px;height:59px;overflow:hidden}.n2-modal-title .n2-i{position:absolute;top:0;cursor:pointer;font-size:32px;color:#a1aeb5}.n2-modal-title .n2-i-a-back,.n2-modal-title .n2-i-a-deletes{margin:13px}.n2-modal-title .n2-i-a-deletes{right:0}.n2-modal-title .n2-i-a-back.n2-hidden,.n2-modal-title .n2-i-a-deletes.n2-hidden{display:none}.n2-modal-title .n2-i-a-back{left:0}.n2-modal-content{padding:0 20px 20px;color:#7b8898}.n2-modal-content h3.n2-center,.n2-modal-content p,.n2-tr.n2-modal-controls-1 .n2-td{text-align:center}.n2-modal-content .n2-form{margin:0 -10px}.n2-modal-content .n2-td{padding:0 10px}.n2-modal-controls{position:absolute;left:0;bottom:0;width:100%;margin:20px 0}.n2-modal-controls .n2-table{width:100%}.n2-modal-controls .n2-td{padding:0 20px}.n2-tr.n2-modal-controls-2 .n2-td{width:50%}.n2-tr.n2-modal-controls-2 .n2-modal-controls-0{text-align:right}.n2-tr.n2-modal-controls-2 .n2-modal-controls-1{text-align:left}.n2-modal-controls-side .n2-tr.n2-modal-controls-2 .n2-modal-controls-0{text-align:left;vertical-align:middle}.n2-modal-controls-side .n2-tr.n2-modal-controls-2 .n2-modal-controls-1{text-align:right}.n2-modal-content .n2-table-pane{margin:20px 0}.n2-modal-content .n2-table-pane td{cursor:pointer;padding:20px;border:3px solid #fff;border-radius:3px;transition:all .3s}.n2-modal-content .n2-table-pane td:HOVER{border-color:#dee1e5}.n2-modal-content h3{color:#7b8898;font-weight:400;margin:20px 0 10px}.n2-modal-content p{font-size:11px}.n2-modal-active{overflow:hidden!important}.n2-modal-simple{cursor:pointer}.n2-modal-simple .n2-modal-window{left:0;top:0;cursor:default;width:100%;height:100%}.n2-modal-simple .n2-i-a-deletes{position:absolute;top:19px;right:30px;color:#a4b0b7;font-size:32px;z-index:2}.n2-lb-header{position:relative;background-color:#fff;border-bottom:1px solid #e0e6ed;z-index:10}.n2-modal-simple-header{line-height:40px;padding:15px 30px;color:#6b7989;font-size:24px}.n2-modal-simple .n2-modal-simple-header{padding:20px 30px 0}.n2-modal .n2-mixed-label{margin:20px 0 10px}.n2-modal .n2-mixed-label label{color:#7b8898;font-weight:400;font-size:14px}.n2-modal-radio{text-align:left;margin:0 -20px;overflow:auto}.n2-modal-radio-option{width:112px;height:70px;display:inline-block;margin:0 35px 50px;cursor:pointer;background-position:0 0;text-align:center}.n2-modal-radio-option.n2-active{cursor:default;background-position:0 -80px}.n2-modal-radio-option div{color:#7b8898;margin:75px -20px 0}.n2-modal-radio-option.n2-active div{color:#0c92df}.n2-modal iframe{max-width:none;border:0}.n2-lightbox-heading{color:#fff;line-height:61px;text-align:center;border-bottom:1px solid #2e3742;border-right:0}.n2-sidebar-row{line-height:58px;border-bottom:1px solid #333e4a;padding:0 10px}.n2-sets-header .n2-td{padding:0 10px}.n2-sets-header .n2-td>*{vertical-align:middle}.n2-sets-header .n2-h3,.n2-sets-header .n2-h4{color:#b2bfc9}.n2-sets-header .n2-form{display:inline-block;margin:0}.n2-sets-header .n2-form .n2-form-element-list{margin-bottom:0}.n2-sidebar-heading .n2-h3{color:#fff;margin:0 10px}.n2-lightbox-container{display:none;position:fixed;top:0;left:0;width:100%;height:100%;background:RGBA(43,52,63,.9);padding:20px;z-index:100002;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.n2-lightbox-container .n2-lightbox{width:100%;height:100%;overflow:hidden}.n2-lightbox-container .n2-content-area,.n2-lightbox-sidebar-list{overflow:auto}.n2-lightbox-container .n2-top-bar{margin-right:0}.n2-lightbox-container .n2-content-area{min-height:0}.n2-lightbox-no-sidebar .n2-blue-logo-bg{background:#3c4958;padding:0 30px;text-align:left}.n2-lightbox-no-sidebar .n2-sidebar{border-right-color:#3c4958}.n2-visual-editor-preview-tab,.n2-visual-editor-tabs{text-align:right;vertical-align:middle}html[dir=rtl] .n2-manage-set,html[dir=rtl] .n2-visual-editor-preview-tab,html[dir=rtl] .n2-visual-editor-tabs{text-align:left}.n2-visual-editor-preview-tab .n2-form-element-radio-tab,.n2-visual-editor-tabs .n2-form-element-radio-tab{vertical-align:baseline}.n2-editor-background-color{display:inline-block;height:28px;vertical-align:middle}#n2-font-editor-preview,#n2-style-editor-preview{padding:20px}#n2-animation-editor-preview{position:relative;height:500px;resize:vertical;overflow:hidden}.n2-animation-preview-box{position:absolute;top:50%;left:50%;background-color:#000;background-size:cover}#n2-animation-editor-tab-add,#n2-animation-editor-tab-delete{padding:0;width:28px;vertical-align:middle}.n2-ss-dashboard{max-width:1240px}.n2-form-tab.n2-editor-preview-box{background-color:#ced3d5}.n2-manage-set{text-align:right}.n2-browse-container{height:100%;overflow:auto;margin:0 -20px;transition:opacity .4s;opacity:1}.n2-browse-container.n2-drag-over{opacity:.3}.n2-browse-container .n2-browse-box{position:relative;width:140px;height:140px;border-radius:3px;float:left;margin:10px;cursor:pointer;text-align:center;color:#cdd3d7;overflow:hidden}.n2-browse-container .n2-browse-box>.n2-i{font-size:48px;line-height:134px}.n2-browse-container .n2-browse-upload{margin:7px;width:300px;overflow:hidden;border:3px dashed #dbe0e3}.n2-browse-container .n2-browse-upload div{text-align:center;line-height:30px;margin-top:32px;color:#7b8898}.n2-browse-container .n2-browse-upload input{font-size:200px;height:200px;position:absolute;left:0;top:0;opacity:0;cursor:pointer}.n2-browse-container .n2-browse-directory{box-shadow:0 0 0 3px #dbe0e3}.n2-browse-container .n2-browse-image{background-size:contain;background-repeat:no-repeat;background-color:#f3f5f7}.n2-browse-container .n2-browse-image.n2-active{box-shadow:0 0 0 3px #0c92df}.n2-browse-container .n2-browse-image .n2-button{position:absolute;top:5px;right:5px;padding:0;width:24px;display:none}.n2-browse-container .n2-browse-image.n2-active .n2-button{display:inline-block}.n2-browse-container .n2-browse-box .n2-browse-title{position:absolute;left:0;bottom:0;width:124px;padding:5px;height:30px;line-height:30px;text-align:center;color:#95a0ad;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.n2-browse-container .n2-browse-image .n2-browse-title{color:#e8ebed;background-color:#212d3a;background-color:RGBA(43,52,63,.9);width:130px}.sumome-badge-hint{display:none}.n2-result{margin-bottom:20px}.n2-ss-back-to:before{font-family:'Nextend'!important;font-size:16px;vertical-align:top;content:"\e92e";margin:0 4px;color:#7b8898}.n2-ui-autocomplete.ui-autocomplete{z-index:1000000;max-height:300px;overflow:auto;position:absolute;background:#fff;border:2px solid #0c92df;color:#7b8898;font-size:11px;margin:5px 0;border-radius:0;box-shadow:none;list-style-type:none;padding:0}.n2-ui-autocomplete .ui-menu-item{line-height:20px;padding:0 5px;cursor:pointer}.n2-ui-autocomplete .ui-menu-item.ui-state-focus{background:#e9edf0;border:0;margin:0;color:#7b8898;font-weight:400}.n2-nav{position:relative;z-index:11;display:flex}.n2 .ui-slider .ui-slider-handle:focus{outline:none}.n2-form{margin-bottom:20px;border-top:1px solid transparent;margin-top:-1px}.n2-form-dark .n2-content-box-title-bg{background-color:#4d5d70}.n2-form-tab{background:#fff;margin:20px 20px 0;border:1px solid #ccd1d6;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.n2-form-dark .n2-form-tab{background:#4d5d70;margin:0;border:0}.n2-form-tab>.n2-description{margin:20px}.n2-form-dark .n2-form-tab>table{border-bottom:1px solid #303b47}.n2-form-tab .n2-heading-controls,.n2-form-tab>.n2-h2{position:relative;padding:0 20px;color:#6b7989;line-height:54px;border-bottom:1px solid #ccd1d6;z-index:2}.n2-form-tab .n2-heading-controls{min-height:54px}.n2-form-tab table{width:100%;border-spacing:0;border-collapse:collapse;table-layout:fixed;margin-top:-1px}.n2-form-tab-horizontal{padding:20px 20px 0}.n2-form .n2-hidden,.n2-hidden{display:none!important}.n2-label-col{width:251px}.n2-form-dark .n2-label-col{width:136px}.n2-label{width:210px;background-color:#f9fafb;border:1px solid #dee1e5;border-width:1px 1px 0 0;padding:14px 20px;line-height:20px;color:#7b8898;font-size:12px}.n2-label label{color:#7b8898;display:inline-block;margin:0;font-size:100%}.n2-form-element-mixed label .n2-i,.n2-label label .n2-i{font-size:16px;vertical-align:middle}.n2-label label[data-n2tip]:after{font-family:'Nextend'!important;content:"\e620";font-size:16px;vertical-align:top;margin:0 5px;color:#b0b9bf}html[dir=rtl] .n2-label{border-width:1px 0 0 1px}.n2-form-dark .n2-label{width:102px;background-color:#3c4958;border-color:#303b47;color:#b2bfc9}.n2-form-dark .n2-label label{color:#b2bfc9}.n2-documentation,.n2-documentation:ACTIVE,.n2-documentation:FOCUS,.n2-documentation:HOVER{display:inline-block;color:#b9c3c9}.n2-i-info{vertical-align:middle;font-size:16px;margin:0;padding:10px 5px}.n2-form-dark .n2-i-info{color:RGBA(150,167,180,.8)}.n2-element{border-top:1px solid #dee1e5;padding:10px 10px 0}.n2-form-dark .n2-element{border-top:1px solid #414e5e}.n2-element>div{position:relative}.n2-element .n2-element-plain{margin-bottom:10px;color:#6b7989;font-size:12px}.n2 input,.n2 select,.n2 textarea{padding:0;width:auto;box-shadow:none;transition:none;font-family:"Montserrat",Arial,sans-serif}.n2-form input[disabled],.n2-form input[readonly],.n2-form select[disabled],.n2-form select[readonly],.n2-form textarea[disabled],.n2-form textarea[readonly]{background:0 0}.n2-form input,.n2-form textarea{box-sizing:border-box}.n2-form-element-button,.n2-form-element-button:active,.n2-form-element-button:hover,.n2-form-element-button:link,.n2-form-element-button:visited{vertical-align:top;display:inline-block;height:28px;line-height:28px;background-color:#51b82d;color:#fff;padding:0 11px;margin:-2px -2px -2px 0;border-top-right-radius:3px;border-bottom-right-radius:3px}.n2-form-element-button-inverted,.n2-form-element-button-inverted:active,.n2-form-element-button-inverted:hover,.n2-form-element-button-inverted:link,.n2-form-element-button-inverted:visited,html[dir=rtl] .n2-form-element-button,html[dir=rtl] .n2-form-element-button:active,html[dir=rtl] .n2-form-element-button:hover,html[dir=rtl] .n2-form-element-button:link,html[dir=rtl] .n2-form-element-button:visited{margin:-2px 0 -2px -2px;border-radius:0;border-top-left-radius:3px;border-bottom-left-radius:3px}html[dir=rtl] .n2-form-element-button-inverted,html[dir=rtl] .n2-form-element-button-inverted:active,html[dir=rtl] .n2-form-element-button-inverted:hover,html[dir=rtl] .n2-form-element-button-inverted:link,html[dir=rtl] .n2-form-element-button-inverted:visited{margin:-2px -2px -2px 0;border-radius:0;border-top-right-radius:3px;border-bottom-right-radius:3px}.n2-form-element-button-inverted.n2-icon-button:active,.n2-form-element-button-inverted.n2-icon-button:hover,.n2-form-element-button-inverted.n2-icon-button:link,.n2-form-element-button-inverted.n2-icon-button:visited,.n2-form-element-button.n2-icon-button{font-size:16px;min-width:28px;padding:0;text-align:center}.n2-form-element-clear,.n2-form-element-clear:active,.n2-form-element-clear:hover,.n2-form-element-clear:link,.n2-form-element-clear:visited{display:inline-block;height:24px;line-height:24px;width:28px;vertical-align:top;font-size:16px;text-align:center}.n2-form-element-text{display:inline-block;border:2px solid #a1aeb5;margin:0 10px;background:#fff;white-space:nowrap;vertical-align:top;height:24px}.n2-form-dark .n2-form-element-text{border-color:#28313a;background:#303b47}.n2-form .n2-form-element-text{margin-bottom:10px}.n2-form-element-text.focus{border-color:#0c92df}.n2-form-element-option-chooser input[type],.n2-form-element-text input,.n2-form-element-text input:focus,.n2-form-element-text input[type],.n2-form-element-text input[type]:focus{display:inline-block;margin:0 5px;padding:0;border:0;box-shadow:none;height:24px;line-height:24px;color:#7b8898;vertical-align:top}.n2-form-dark .n2-form-element-text input,.n2-form-dark .n2-form-element-text input:focus{background:#303b47;color:#b2bfc9}.n2-form-element-autocomplete.n2-form-element-number .ui-autocomplete .ui-menu-item,.n2-form-element-number input{text-align:center}.n2-form-element-text .n2-text-sub-label,.n2-form-element-text .n2-text-unit{display:inline-block;padding:0 5px;background-color:#a1aeb5;height:24px;line-height:24px;vertical-align:top;color:#fff}.n2-form-element-text .n2-text-unit,html[dir=rtl] .n2-form-element-text .n2-text-sub-label{margin-right:-2px;margin-left:0}.n2-form-element-text .n2-text-sub-label,html[dir=rtl] .n2-form-element-text .n2-text-unit{margin-right:0;margin-left:-2px}.n2-form-dark .n2-form-element-text .n2-text-sub-label,.n2-form-dark .n2-form-element-text .n2-text-unit{background:#28313a;color:#9aa7b2}.n2-form-element-text.focus .n2-text-sub-label,.n2-form-element-text.focus .n2-text-unit{background-color:#0c92df;color:#fff}.n2-form-element-text .n2-form-element-preview{display:inline-block;margin:1px;width:20px;height:20px;background-size:cover;border:1px solid rgba(0,0,0,.2);vertical-align:top}.n2-form-element-connected .n2-form-element-text{position:relative;border-top-right-radius:0;border-bottom-right-radius:0;margin-right:0;border-right-width:1px}.n2-form-element-connected .n2-form-element-text+.n2-form-element-text{margin-left:0;border-top-left-radius:0;border-bottom-left-radius:0;border-left-width:1px}.n2-form-element-connected-marginpadding{margin-left:10px}.n2-form-element-connected-marginpadding .n2-text-sub-label{display:inline-block;border:2px solid #28313a;border-right-width:1px;background:#28313a;height:24px;line-height:24px;color:#9aa7b2;vertical-align:top;padding:0 5px;border-top-left-radius:3px;border-bottom-left-radius:3px;font-size:16px;cursor:pointer}.n2-form-element-connected-marginpadding.n2-values-linked .n2-text-sub-label .n2-i:before{content:'\e64d'}.n2-form-element-connected-marginpadding .n2-form-element-text{position:relative;border-radius:0;margin-right:0;margin-left:0;border-left-width:1px;border-right-width:1px}.n2-form-element-connected-marginpadding.n2-values-linked .n2-form-element-text+.n2-form-element-text{display:none}.n2-form-element-text .n2-ui-slider-container{display:none;position:absolute;top:24px;width:100%;min-width:70px;border:2px solid #a1aeb5;border-radius:3px;background-color:#fff;margin:0 -2px;z-index:2}.n2-form-dark .n2-form-element-text .n2-ui-slider-container{border:2px solid #28313a;background:#303b47}.n2-form-element-text.focus .n2-ui-slider-container{border:2px solid #0c92df}.n2-form-element-text.n2-active .n2-ui-slider-container,.n2-form-element-text:HOVER .n2-ui-slider-container{display:block}.n2-form-element-text .ui-slider{position:relative;background:#a1aeb5;height:6px;margin:10px;border-radius:10px}.n2-form-dark .n2-form-element-text .ui-slider{background:#526a80}.n2-form-element-text .ui-slider .ui-slider-handle{position:absolute;top:0;z-index:2;width:10px;height:10px;-ms-touch-action:none;touch-action:none;background:#fff;border:2px solid #a1aeb5;margin:-4px -7px 0;border-radius:50px;cursor:ew-resize}.n2-form-dark .n2-form-element-text .ui-slider .ui-slider-handle{border:2px solid #526a80}.n2-form-element-file input[type=file],.n2-form-element-file input[type=file]:focus{padding:0;height:24px;line-height:24px;margin:0}.n2-form-element-preview-fixed{position:relative;height:96px;border:2px solid #303b47;background-position:50% 50%;background-size:contain;background-repeat:no-repeat;margin:0 10px;overflow:hidden;cursor:pointer;width:300px}.n2-form-element-preview-fixed .n2-button{display:none;position:absolute;top:3px;left:3px}.n2-form-element-preview-fixed:HOVER .n2-button{display:block}.n2-form-element-preview-fixed+div{display:inline-block}.n2-form-element-autocomplete .ui-autocomplete{position:absolute;min-width:100%!important;background:#fff;border:2px solid #0c92df;color:#7b8898;font-size:11px;margin:5px 0;border-radius:0;box-shadow:none;list-style-type:none;z-index:1000}.n2-form-element-autocomplete .ui-autocomplete .ui-menu-item{line-height:20px;padding:0 5px;cursor:pointer}.n2-form-element-autocomplete .ui-autocomplete .ui-menu-item.ui-state-focus{background:#e9edf0;border:0;margin:0;color:#7b8898;font-weight:400}.n2-form-element-autocomplete.ui-front{z-index:auto}.n2-form-element-textarea{display:inline-block;border:2px solid #a1aeb5;margin:0 10px}.n2-form .n2-form-element-textarea{margin-bottom:10px}.n2-form-dark .n2-form-element-textarea{border-color:#28313a;background-color:#303b47}.n2-form-element-textarea.focus{border-color:#0c92df}.n2-form-element-textarea textarea,.n2-form-element-textarea textarea:focus{margin:0;padding:2px 6px;border:0;display:inline-block;color:#7b8898;vertical-align:top;min-height:24px}.n2-form-dark .n2-form-element-textarea textarea,.n2-form-dark .n2-form-element-textarea textarea:focus{background:#303b47;color:#b2bfc9}.n2-textarea-rich{background:#4d5d70;border-bottom:2px solid #28313a;height:32px;color:#fff;font-size:16px;line-height:32px}.n2-textarea-rich>div{display:inline-block;width:32px;text-align:center;border-right:2px solid #28313a;cursor:pointer}.n2-form-element-option-chooser{display:inline-block;border:2px solid #a1aeb5;margin:0 10px;background:#fff}.n2-form .n2-form-element-option-chooser{margin-bottom:10px}.n2-form-dark .n2-form-element-option-chooser{border-color:#28313a;background:#303b47}.n2-form-element-option-chooser input{display:inline-block;margin:0 5px;border:0;box-shadow:none;height:24px;line-height:24px;color:#7b8898;width:120px}.n2-form-dark .n2-form-element-option-chooser input{background:#303b47;color:#b2bfc9}.n2-form-element-color input{text-transform:uppercase;width:50px;text-align:center}.n2-form-element-color-alpha input{width:70px}.n2-form-element-connected,.n2-form-element-mixed,.n2-form-element-onoff,.n2-form-element-onoff *{display:inline-block}.n2-form-element-mixed .n2-mixed-group{display:inline-block;vertical-align:top}.n2-form-element-mixed .n2-mixed-label{line-height:14px}.n2-form-element-mixed label{margin:0 10px;color:#7b8898;font-size:10px;display:inline-block}.n2-form-dark .n2-form-element-mixed label{color:#b2bfc9}.n2-mixed-element>div{position:relative}.n2-form-element-onoff{position:relative;background:#9aa8af;width:44px;height:24px;margin:2px 10px;-webkit-border-radius:12px;-moz-border-radius:12px;border-radius:12px;overflow:hidden;cursor:pointer}.n2-form .n2-form-element-onoff{margin-bottom:7px}.n2-form-element-onoff.n2-onoff-on{background:#51b82d}.n2-form-element-onoff .n2-onoff-slider{position:absolute;top:3px;left:0;width:88px;height:18px;-webkit-transition:left .25s;transition:left .25s}.n2-form-element-onoff .n2-onoff-slider *{vertical-align:top}.n2-form-element-onoff.n2-onoff-on .n2-onoff-slider{left:-18px}html[dir=rtl] .n2-form-element-onoff .n2-onoff-slider{left:-44px}html[dir=rtl] .n2-form-element-onoff.n2-onoff-on .n2-onoff-slider{left:-26px}.n2-form-element-onoff .n2-onoff-no{font-size:16px}.n2-form-element-onoff .n2-onoff-no,.n2-form-element-onoff .n2-onoff-yes{width:14px;line-height:18px;color:#fff}.n2-form-element-onoff .n2-onoff-slider .n2-i{line-height:inherit}.n2-form-element-onoff .n2-onoff-no{margin:0 4px}.n2-form-element-onoff .n2-onoff-yes{font-size:14px;margin:0 3px}.n2-form-element-onoff .n2-onoff-round{width:18px;height:18px;background-color:#fff;-webkit-border-radius:9px;-moz-border-radius:9px;border-radius:9px;box-shadow:0 0 0 1px RGBA(0,0,0,.1)}.n2-form-element-onoff-button{display:inline-block;border-radius:3px;background-color:#909ca3;line-height:28px;overflow:hidden;cursor:pointer}.n2-form-element-onoff-button .n2-onoffb-label{display:inline-block;color:#fff;font-size:11px;padding:0 10px;line-height:28px}.n2-form-element-onoff-button .n2-onoffb-container{background-color:#a1aeb5;width:32px;height:28px;display:inline-block}.n2-form-element-onoff-button *{vertical-align:top;display:inline-block}.n2-form-element-onoff-button .n2-onoffb-slider{position:relative;border-radius:4px;background-color:#6b7986;width:20px;height:8px;margin:10px 6px}.n2-form-element-onoff-button.n2-onoff-on .n2-onoffb-slider{background-color:#40b618}.n2-form-element-onoff-button .n2-onoffb-round{position:absolute;left:10px;top:-1px;border-radius:5px;width:10px;height:10px;background:#fff;-webkit-transition:left .25s;transition:left .25s}.n2-form-element-onoff-button.n2-onoff-on .n2-onoffb-round{left:0}.n2-form-element-switcher,.n2-form-element-switcher *{display:inline-block}.n2-form-element-switcher{margin:0 10px}.n2-form .n2-form-element-switcher{margin-bottom:10px}.n2-form-element-switcher .n2-switcher-unit{background-color:#a1aeb5;line-height:28px;color:#fff;padding:0 8px;cursor:pointer;border-right:1px solid #b9c3c9}.n2-form-dark .n2-form-element-switcher .n2-switcher-unit{border-color:#28313a;background-color:#303b47;color:#9aa7b2}.n2-form-element-switcher .n2-switcher-unit.n2-active{background-color:#0c92df;cursor:default;color:#fff}.n2-form-element-switcher .n2-switcher-unit.n2-first{-webkit-border-top-left-radius:3px;-webkit-border-bottom-left-radius:3px;-moz-border-radius-topleft:3px;-moz-border-radius-bottomleft:3px;border-top-left-radius:3px;border-bottom-left-radius:3px}.n2-form-element-switcher .n2-switcher-unit.n2-last{-webkit-border-top-right-radius:3px;-webkit-border-bottom-right-radius:3px;-moz-border-radius-topright:3px;-moz-border-radius-bottomright:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-right:0}.n2-form-element-units{display:inline-block;position:relative;color:#fff}.n2-form-dark .n2-form-element-units{color:#9aa7b2}.n2-form-element-units .n2-element-current-unit{display:inline-block;padding:0 5px;background-color:#a1aeb5;height:24px;line-height:24px;vertical-align:top;border:2px solid #a1aeb5;border-top-right-radius:3px;border-bottom-right-radius:3px}.n2-form-dark .n2-form-element-units .n2-element-current-unit{background-color:#28313a;border:2px solid #28313a}.n2-element-units{display:none;position:absolute;left:0;top:28px;line-height:28px;background-color:#a1aeb5;padding:0 7px;z-index:10000}.n2-form-dark .n2-element-units{background-color:#28313a}.n2-form-element-units:HOVER .n2-element-units{display:block}.n2-element-units>*{cursor:pointer;text-align:center}.n2-form .n2-form-element-radio{margin-bottom:10px}.n2-form-element-radio,.n2-form-element-radio *{display:inline-block}.n2-form-element-radio .n2-radio-option{color:#7b8898;margin:5px 10px;cursor:pointer;line-height:18px;vertical-align:top}.n2-form-dark .n2-form-element-radio .n2-radio-option{color:#b2bfc9}.n2-form-element-radio .n2-radio-option.n2-active{cursor:default}.n2-form-element-radio .n2-radio-option-marker{width:14px;height:14px;border:2px solid #bcc6cb;-webkit-border-radius:14px;-moz-border-radius:14px;border-radius:14px;margin-right:5px;-webkit-transition:border-color .25s,background-color .25s;transition:border-color .25s,background-color .25s;background-color:#fff;font-size:12px;line-height:14px;color:#fff;vertical-align:top;text-align:center}html[dir=rtl] .n2-form-element-radio .n2-radio-option-marker{margin-left:5px;margin-right:0}.n2-form-dark .n2-form-element-radio .n2-radio-option-marker{border-color:#28313a;background-color:#4d5d70}.n2-form-element-radio .n2-radio-option-marker .n2-i{-webkit-transition:opacity .25s;transition:opacity .25s;opacity:0}.n2-form-element-radio .n2-radio-option.n2-active .n2-radio-option-marker{border-color:#6fbc49;background-color:#6fbc49}.n2-form-element-radio .n2-radio-option.n2-active .n2-radio-option-marker .n2-i{opacity:1}.n2-form-element-radio .n2-radio-option.n2-active .n2-radio-option-marker+span{vertical-align:top}.n2-imagelist .n2-form-element-radio,.n2-imagelist img{max-width:100%}.n2-imagelist .n2-radio-option{border:4px solid #b8c2cd;padding:4px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;vertical-align:middle}.n2-imagelist .n2-imagelist-option{line-height:0;background:#b8c2cd;max-width:94%}.n2-white .n2-imagelist .n2-imagelist-option{background:#fff}.n2-imagelist .n2-radio-option.n2-active{border-color:#0c92df}.n2-imagelistlabel .n2-radio-option{position:relative;width:110px;height:70px;background:center 0 no-repeat;padding:0;border:0;border-radius:0;margin-top:10px;margin-bottom:10px}.n2-imagelistlabel .n2-radio-option span{text-align:center;position:absolute;bottom:-8px;left:0;display:block;width:100%;line-height:20px}.n2-imagelistlabel .n2-radio-option.n2-active{background-position:center -70px;color:#0c92df}.n2-form-element-radio-tab{margin:0 10px;line-height:28px;vertical-align:middle!important;height:28px;display:inline-block}.n2-form .n2-form-element-radio-tab{margin-bottom:10px}.n2-form-element-radio-tab>div{float:left}.n2-form-element-radio-tab .n2-radio-option,.n2-form-element-radio-tab .n2-radio-option-label{padding:0 10px;text-align:center;background:#8e9ea7;color:#fff;vertical-align:top;text-transform:uppercase}.n2-form-element-radio-tab .n2-radio-option{cursor:pointer}.n2-form-element-radio-tab .n2-radio-option-label{background:#909ca3;cursor:default}.n2-form-dark .n2-form-element-radio-tab .n2-radio-option{background:#28313a;color:#9aa7b2}.n2-form-element-radio-tab .n2-radio-option.n2-active{background:#0c92df;color:#fff}.n2-form-element-radio-tab .n2-radio-option-label.n2-first,.n2-form-element-radio-tab .n2-radio-option.n2-first{-webkit-border-top-left-radius:3px;-webkit-border-bottom-left-radius:3px;-moz-border-radius-topleft:3px;-moz-border-radius-bottomleft:3px;border-top-left-radius:3px;border-bottom-left-radius:3px}.n2-form-element-radio-tab .n2-radio-option-label.n2-last,.n2-form-element-radio-tab .n2-radio-option.n2-last{-webkit-border-top-right-radius:3px;-webkit-border-bottom-right-radius:3px;-moz-border-radius-topright:3px;-moz-border-radius-bottomright:3px;border-top-right-radius:3px;border-bottom-right-radius:3px}.n2-form-element-list{margin:0 10px;display:inline-block}.n2-form .n2-form-element-list{margin-bottom:10px}.n2 .n2-form-element-list select{padding:0;margin:0;height:24px;border:2px solid #b9c3c9;background:0 0;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.n2 .n2-form-element-list select[multiple]{height:auto}.n2 .n2-form-dark .n2-form-element-list select{border:2px solid #28313a;background:#303b47;color:#b2bfc9}.n2 .n2-form-element-list select:focus{box-shadow:none}.n2 .n2-form-element-list select{font-weight:400;font-size:12px;color:#7b8898}.n2 .n2-form-element-list select option{padding:0 5px}.n2-form-element-single-button{margin:0 10px}.n2-form .n2-form-element-checkbox,.n2-form .n2-form-element-single-button{margin-bottom:10px}.n2-form-element-checkbox{display:inline-block;margin:0 10px;white-space:nowrap}.n2-checkbox-option{display:inline-block;margin:0 3px;background:#8e9ea7;cursor:pointer;line-height:28px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.n2-checkbox-option.n2-first{margin-left:0}.n2-checkbox-option.n2-last{margin-right:0}.n2-form-dark .n2-checkbox-option{background:#28313a;color:#9aa7b2}.n2-form-element-decoration{display:inline-block}.n2-form-element-decoration .n2-checkbox-option,.n2-form-element-icon-radio .n2-radio-option,.n2-form-element-textalign .n2-radio-option{width:28px;height:28px;line-height:28px;text-align:center;font-size:16px;color:#fff;padding:0}.n2-form-dark .n2-form-element-decoration .n2-checkbox-option,.n2-form-dark .n2-form-element-icon-radio .n2-radio-option{color:#9aa7b2}.n2-checkbox-option.n2-active,.n2-form-dark .n2-checkbox-option.n2-active,.n2-form-dark .n2-form-element-icon-radio .n2-radio-option.n2-active{background:#0c92df;color:#fff}.n2-form-element-img+a,.n2-form-element-img+a+a{margin-right:10px}.n2-form-element-icon{display:inline-block;margin:0 10px;white-space:nowrap}.n2-form .n2-form-element-icon{margin-bottom:10px}.n2-form-element-icon .n2-form-element-preview{margin-right:3px;border:0;width:22px;height:22px;text-align:center;line-height:22px}.n2-form-element-icon .n2-form-element-preview>.n2i{color:#fff;font-size:22px;vertical-align:top}.n2-icons-modal .n2-modal-content{overflow:auto!important}.n2-icons-modal .n2-icon{display:inline-block;margin:5px;width:32px;height:32px;cursor:pointer;font-size:24px;line-height:32px;text-align:center;color:#000}.n2-icons-modal .n2-modal-content{}.n2-icons-modal .n2-modal-content .n2-form-tab:last-child{margin-bottom:40px}.n2-subform-image .n2-subform-image-option{display:inline-block;width:150px;height:120px;padding:30px 3%;color:#7b8898}.n2-subform-image .n2-subform-image-option .n2-subform-image-element{width:150px;height:90px;cursor:pointer}.n2-subform-image .n2-subform-image-option.n2-active .n2-subform-image-element{background-position:0 -100px;cursor:default}.n2-subform-image .n2-subform-image-option .n2-subform-image-title{text-align:center;margin-top:10px}.n2-subform-image .n2-subform-image-option.n2-active{color:#0c92df}.n2-subform-image.n2-small .n2-subform-image-option .n2-subform-image-element{width:100px;height:70px}.n2-subform-image.n2-small .n2-subform-image-option.n2-active .n2-subform-image-element{background-position:0 -80px}.n2-subform-image.n2-small .n2-subform-image-option{width:100px;height:100px}.n2-subform-image .n2-subform-image-option-simple{display:inline-block;width:190px;height:120px;border-radius:3px;border:5px solid #a1aeb5;margin:25px;padding:0;vertical-align:top}.n2-subform-image .n2-subform-image-option-simple.n2-active{border-color:#0c92df}.n2-subform-image .n2-subform-image-option-simple div.n2-subform-image-element{width:100%;height:100%;background-repeat:repeat-y}.n2-subform-image .n2-subform-image-option-simple.n2-active div.n2-subform-image-element{background-position:0 -120px}.n2-subform-2-rows{max-height:360px;overflow:auto;margin:-10px -10px 0}.n2-form-matrix{border-bottom-width:1px;border-radius:3px}.n2-form-matrix .n2-form-tab{border-radius:0}.n2-form-matrix>.n2-h2{padding:0}.n2-form-matrix .n2-form-matrix-menu{cursor:pointer;display:inline-block;margin:0 20px;vertical-align:top;line-height:60px;font-size:14px;color:#b2bfc9}.n2-form-matrix .n2-form-matrix-menu.n2-active{color:#fff}.n2-form-matrix .n2-form-matrix-menu.n2-has-underline>.n2-underline::after{bottom:-10px;color:#0c92df}#n2-css-basiccss.n2-basiccss-show-preset-list #n2-tab-basiccssfont,#n2-css-basiccss.n2-basiccss-show-preset-list #n2-tab-basiccssstyle,.n2-form-matrix-pane{display:none}.n2-form-matrix>.n2-form-matrix-views{z-index:4;padding:0 20px;background:#212d3a;margin:-1px -1px 0;border-top-left-radius:3px;border-top-right-radius:3px}#n2-tab-basiccssfont.n2-css-has-font,#n2-tab-basiccssstyle.n2-css-has-style,.n2-form-matrix-pane.n2-active{display:block}.n2-form-matrix-pane .n2-form{margin-bottom:0}.n2-form-matrix-pane .n2-form-tab{border-width:0 0 1px;margin:0}.n2-form-matrix-pane .n2-form-tab>.n2-h2{font-size:14px}#n2-tab-basiccssfont,#n2-tab-basiccssstyle{display:none;background:#3c4958}#n2-tab-basiccssfont>.n2-h2,#n2-tab-basiccssstyle>.n2-h2,.n2-editor-header.n2-h2{padding:0;line-height:43px;background:#28313a;border-bottom:1px solid #20282f}#n2-tab-basiccssfont>.n2-h2,#n2-tab-basiccssstyle>.n2-h2{margin-bottom:5px}.n2-editor-header>span{position:relative;font-size:11px;display:inline-block;vertical-align:top;color:#b2bfc9}.n2-css-name{color:#b2bfc9}.n2-css-name,.n2-css-tab,.n2-editor-header .n2-ss-button-container,.n2-editor-header .n2-ss-button-container-left{position:relative;font-size:11px;display:inline-block;vertical-align:top}.n2-editor-header .n2-ss-button-container{float:right;color:#fff}.n2-editor-header .n2-ss-button-container-left{color:#fff;float:left}.n2-css-tab{float:right;color:#fff}.n2-editor-header .n2-ss-button-container-left>*{margin-left:10px;vertical-align:middle}#n2-tab-basiccssfont .n2-css-tab,#n2-tab-basiccssstyle .n2-css-tab{overflow:hidden;height:24px;line-height:24px;border-radius:3px;margin:10px 10px 0 0}#n2-tab-basiccssfont .n2-css-tab-reset,#n2-tab-basiccssstyle .n2-css-tab-reset{display:none;float:right;margin:10px 10px 0 0}#n2-tab-basiccssfont.n2-css-show-reset .n2-css-tab-reset,#n2-tab-basiccssstyle.n2-css-show-reset .n2-css-tab-reset{display:inline-block}.n2-css-tab>*,.n2-editor-header .n2-ss-button-container>*{display:inline-block;padding:0 10px}.n2-editor-header .n2-ss-button-container{margin-right:10px}.n2-css-tab>.n2-button,.n2-editor-header .n2-ss-button-container>.n2-button{height:24px;line-height:24px;padding:0}.n2-editor-header .n2-ss-button-container>.n2-button-icon{height:28px;line-height:28px;width:28px;vertical-align:middle}.n2-css-tab>.n2-button-normal,.n2-editor-header .n2-ss-button-container>.n2-button-normal{padding:0 15px}.n2-css-name-label,.n2-editor-header>span{padding:0 10px}.n2-css-name .n2-css-name-list{display:none}.n2-css-name.n2-multiple .n2-css-name-label:after{content:"\e638";font-family:'Nextend'!important;vertical-align:top;margin:0 0 0 5px}.n2-css-name.n2-multiple .n2-css-name-list{position:absolute;left:0;top:34px;background:#28313a;white-space:nowrap}.n2-css-name.n2-multiple:HOVER .n2-css-name-list{display:block}.n2-css-name.n2-multiple .n2-css-name-list>*{white-space:nowrap;display:block;padding:0 10px;cursor:pointer}.n2-css-name.n2-multiple .n2-css-name-list>*:HOVER{background:#303b47}.n2-css-tab span{background:#6b7986;cursor:pointer;height:24px;line-height:24px}.n2-css-tab span.n2-active{background:#0c92df;cursor:default}#n2-tab-basiccssfont #layerfamily{max-width:none!important}#n2-tab-basiccsspresets{display:none}#n2-css-basiccss.n2-basiccss-show-preset-list #n2-tab-basiccsspresets{display:block}#n2-tab-basiccsspresets div div{line-height:30px;background-color:#303b47;border-bottom:1px solid RGBA(0,0,0,.2);color:#fff;cursor:pointer;padding:0 20px}#n2-tab-basiccsspresets div div:HOVER{background:#1681c1}.n2-basiccss-more{background:#303b47;line-height:28px;height:28px;vertical-align:top;margin-top:15px;float:right;margin-right:23px;color:#9aa7b2}.n2-notification-center-modal{background-color:RGBA(43,52,63,.9);width:100%;height:100%;position:fixed;left:0;top:0;display:none;z-index:2147483646}.n2-notification-center-modal.n2-active,.n2-notification-center-modal.n2-active .n2-notification-center{display:block}.n2-notification-center{display:none;position:absolute;top:61px;right:0;width:370px;background:#fff;border:1px solid #ccd1d6;border-top:0;opacity:0}.n2-notification-center-modal .n2-notification-center{display:none;position:absolute;left:50%;right:auto;top:50%;margin-left:-185px;margin-top:-63px;opacity:1}.n2-notification-settings{position:relative;background:#f2f5fa;border-top:1px solid #ccd1d6;height:44px}.n2-notification-clear{position:absolute;left:10px;top:10px}.n2-notification-important{position:absolute;right:10px;top:13px;cursor:pointer}.n2-notification-important span{vertical-align:top;padding:0 10px;color:#6b7989}.n2-checkbox{display:inline-block;width:14px;height:14px;background:#f2f5fa;border:2px solid #b9c3c9;border-radius:2px;vertical-align:top}.n2-checkbox .n2-i{color:#f2f5fa;font-size:14px;margin:0;padding:0;vertical-align:top}.n2-active>.n2-checkbox{background:#6fbc49;border-color:#6fbc49}.n2-active>.n2-checkbox .n2-i{color:#fff}.n2-notification-message{border-top:1px solid #ccd1d6}.n2-notification-message .n2-td{padding:22px 0}.n2-notification-message .n2-first{width:62px}.n2-notification-message .n2-i{vertical-align:middle;margin:0 10px;font-size:32px}.n2-notification-message h4{margin:0}.n2-notification-message p{color:#7b8898;margin:0}.n2-notification-message-error,.n2-notification-message-error h4{color:#c54633}.n2-notification-message-success,.n2-notification-message-success h4{color:#50aa31}.n2-notification-message-notice,.n2-notification-message-notice h4{color:#0c92df}.n2-notification-empty{color:#7b8898;margin:20px;text-align:center}.n2-loader-overlay{display:none;position:fixed;width:100%;height:100%;left:0;top:0;z-index:2147483647;background-color:RGBA(43,52,63,.9)}.n2-loader-overlay.n2-active{display:block}.n2-loader{position:absolute;left:50%;top:50%;margin-left:-20px;margin-top:-20px;border:10px solid rgba(255,255,255,.2);border-left-color:#fff;-webkit-animation:n2-load 1.1s infinite linear;animation:n2-load 1.1s infinite linear;overflow:hidden}.n2-loader,.n2-loader:after{border-radius:50%;width:40px;height:40px}@-webkit-keyframes n2-load{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes n2-load{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.n2-sp-container{position:absolute;top:0;left:0;display:inline-block;*display:inline;*zoom:1;z-index:2147483647;overflow:hidden}.n2-sp-container.n2-sp-flat,.n2-sp-top{position:relative}.n2-sp-top{width:100%;display:inline-block}.n2-sp-top-inner{left:0;right:0;margin-bottom:5px}.n2-sp-color,.n2-sp-hue,.n2-sp-top-inner{position:absolute;top:0;bottom:0}.n2-sp-color{margin-right:5px;left:0;right:20%}.n2-sp-hue{right:0;left:84%;height:100%;box-shadow:0 0 1px 1px rgba(0,0,0,.2)inset}.n2-sp-fill{padding-top:80%}.n2-sp-sat,.n2-sp-val{position:absolute;top:0;left:0;right:0;bottom:0;box-shadow:0 0 1px 1px rgba(0,0,0,.2)inset}.n2-sp-alpha-enabled .n2-sp-top{margin-bottom:18px}.n2-sp-alpha-enabled .n2-sp-alpha{display:block}.n2-sp-alpha-handle{position:absolute;top:-4px;bottom:-4px;width:7px;left:50%;cursor:pointer;box-shadow:0 0 0 1px RGBA(0,0,0,.4);background:#fff;border-radius:2px}.n2-sp-alpha{display:none;bottom:-14px;right:0;left:0;height:8px}.n2-sp-alpha-inner{background:-moz-linear-gradient(left,rgba(0,0,0,0)25%,#000 100%);background:-webkit-gradient(linear,left top,right top,color-stop(25%,rgba(0,0,0,0)),color-stop(100%,#000));background:-webkit-linear-gradient(left,rgba(0,0,0,0)25%,#000 100%);background:-o-linear-gradient(left,rgba(0,0,0,0)25%,#000 100%);background:-ms-linear-gradient(left,rgba(0,0,0,0)25%,#000 100%);background:linear-gradient(to right,rgba(0,0,0,0)25%,#000 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#000000', GradientType=1);box-shadow:0 0 1px 1px rgba(0,0,0,.2)inset}.n2-sp-alpha,.n2-sp-alpha-handle,.n2-sp-container,.n2-sp-container button,.n2-sp-container.n2-sp-dragging .n2-sp-input,.n2-sp-dragger,.n2-sp-preview,.n2-sp-replacer,.n2-sp-slider{-webkit-user-select:none;-moz-user-select:-moz-none;-o-user-select:none;user-select:none}.n2-sp-container.n2-sp-buttons-disabled .n2-sp-button-container,.n2-sp-container.n2-sp-input-disabled .n2-sp-input-container,.n2-sp-initial-disabled .n2-sp-initial,.n2-sp-palette-disabled .n2-sp-palette-container,.n2-sp-palette-only .n2-sp-picker-container{display:none}.n2-sp-sat{background-image:-webkit-gradient(linear,0 0,100% 0,from(#fff),to(rgba(204,154,129,0)));background-image:-webkit-linear-gradient(left,#fff,rgba(204,154,129,0));background-image:-moz-linear-gradient(left,#fff,rgba(204,154,129,0));background-image:-o-linear-gradient(left,#fff,rgba(204,154,129,0));background-image:-ms-linear-gradient(left,#fff,rgba(204,154,129,0));background-image:linear-gradient(to right,#fff,rgba(204,154,129,0));-ms-filter:"progid:DXImageTransform.Microsoft.gradient(GradientType = 1, startColorstr=#FFFFFFFF, endColorstr=#00CC9A81)";filter:progid:DXImageTransform.Microsoft.gradient(GradientType=1, startColorstr='#FFFFFFFF', endColorstr='#00CC9A81')}.n2-sp-val{background-image:-webkit-gradient(linear,0 100%,0 0,from(#000),to(rgba(204,154,129,0)));background-image:-webkit-linear-gradient(bottom,#000,rgba(204,154,129,0));background-image:-moz-linear-gradient(bottom,#000,rgba(204,154,129,0));background-image:-o-linear-gradient(bottom,#000,rgba(204,154,129,0));background-image:-ms-linear-gradient(bottom,#000,rgba(204,154,129,0));background-image:linear-gradient(to top,#000,rgba(204,154,129,0));-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr=#00CC9A81, endColorstr=#FF000000)";filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00CC9A81', endColorstr='#FF000000')}.n2-sp-hue{background:-moz-linear-gradient(top,red 0%,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%);background:-ms-linear-gradient(top,red 0%,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%);background:-o-linear-gradient(top,red 0%,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%);background:-webkit-gradient(linear,left top,left bottom,from(red),color-stop(.17,#ff0),color-stop(.33,#0f0),color-stop(.5,#0ff),color-stop(.67,#00f),color-stop(.83,#f0f),to(red));background:-webkit-linear-gradient(top,red 0%,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}.n2-sp-1{height:17%;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0000', endColorstr='#ffff00')}.n2-sp-2{height:16%;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffff00', endColorstr='#00ff00')}.n2-sp-3{height:17%;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00ff00', endColorstr='#00ffff')}.n2-sp-4{height:17%;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00ffff', endColorstr='#0000ff')}.n2-sp-5{height:16%;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#0000ff', endColorstr='#ff00ff')}.n2-sp-6{height:17%;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff00ff', endColorstr='#ff0000')}.n2-sp-cf:after,.n2-sp-cf:before{content:"";display:table}.n2-sp-cf:after{clear:both}.n2-sp-cf{*zoom:1}@media (max-device-width:480px){.n2-sp-color{right:40%}.n2-sp-hue{left:63%}.n2-sp-fill{padding-top:60%}}.n2-sp-dragger,.n2-sp-slider{position:absolute;top:0;cursor:pointer;background:#fff;box-shadow:0 0 0 1px RGBA(0,0,0,.4)}.n2-sp-dragger{width:12px;transform:translateX(6px) translateY(6px);border-radius:12px;height:12px;left:0}.n2-sp-slider{height:6px;left:-2px;right:-2px;border-radius:2px;transform:translateY(3px)}.n2-sp-container{border-radius:3px;background-color:#fff;padding:0;border:2px solid #b9c3c9}.n2-sp-color,.n2-sp-container,.n2-sp-container button,.n2-sp-container input,.n2-sp-hue{font:12px "Lucida Grande","Lucida Sans Unicode","Lucida Sans",Geneva,Verdana,sans-serif;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box}.n2-sp-top{margin-bottom:3px}.n2-sp-input-container{float:right;width:100px;margin-bottom:4px}.n2-sp-initial-disabled .n2-sp-input-container{width:100%}.n2-sp-input{font-size:12px!important;border:1px inset;padding:4px 5px;margin:0;width:100%;background:0 0;border-radius:3px;color:#222}.n2-sp-input:focus{border:1px solid orange}.n2-sp-input.n2-sp-validation-error{border:1px solid red;background:#fdd}.n2-sp-palette-container,.n2-sp-picker-container{float:left;position:relative;padding:10px 10px 300px;margin-bottom:-295px}.n2-sp-picker-container{width:172px}.n2-sp-palette-container{border-right:solid 1px #ccc}.n2-sp-palette-row{float:left}.n2-sp-palette-row-selection{border-left:1px solid rgba(0,0,0,.2);margin-left:7px;padding-left:5px}.n2-sp-palette .n2-sp-thumb-el{display:block;position:relative;clear:left;float:left;cursor:pointer}.n2-sp-palette .n2-sp-thumb-el.n2-sp-thumb-active,.n2-sp-palette .n2-sp-thumb-el:hover{border-color:orange}.n2-sp-initial{float:left;border:solid 1px #333}.n2-sp-initial span{width:30px;height:25px;border:none;display:block;float:left;margin:0}.n2-sp-button-container{float:right}.n2-sp-replacer{margin:0;overflow:hidden;cursor:pointer;padding:2px;border-radius:3px;display:inline-block;*zoom:1;*display:inline;color:#333;vertical-align:top}.n2-sp-replacer.n2-sp-active,.n2-sp-replacer:hover{border-color:#d8d8d8;color:#111}.n2-sp-replacer.n2-sp-disabled{cursor:default;border-color:silver;color:silver}.n2-sp-dd{display:none;height:8px;line-height:8px;width:8px;background-color:#d8d8d8;font-size:7px;margin:13px 0 0 -9px;position:relative;-webkit-border-top-left-radius:3px;-moz-border-radius-topleft:3px;border-top-left-radius:3px;float:left;text-align:center}.n2-sp-preview{width:20px;height:20px;border-radius:3px;float:left;z-index:0;overflow:hidden}.n2-sp-palette{*width:220px;max-width:220px}.n2-sp-palette .n2-sp-thumb-el{width:20px;height:20px;margin:4px;border:0}.n2-sp-palette .n2-sp-thumb-inner{width:20px;height:20px}.n2-sp-container{padding-bottom:0}.n2-sp-container button{background-color:#eee;background-image:-webkit-linear-gradient(top,#eee,#ccc);background-image:-moz-linear-gradient(top,#eee,#ccc);background-image:-o-linear-gradient(top,#eee,#ccc);background-image:-ms-linear-gradient(top,#eee,#ccc);background-image:linear-gradient(to bottom,#eee,#ccc);border:1px solid #ccc;border-bottom:1px solid #bbb;border-radius:3px;color:#333;font-size:14px;line-height:1;padding:5px 4px;text-align:center;text-shadow:0 1px 0 #eee;vertical-align:middle}.n2-sp-container button:hover{background-color:#ddd;background-image:-webkit-linear-gradient(top,#ddd,#bbb);background-image:-moz-linear-gradient(top,#ddd,#bbb);background-image:-o-linear-gradient(top,#ddd,#bbb);background-image:-ms-linear-gradient(top,#ddd,#bbb);background-image:linear-gradient(to bottom,#ddd,#bbb);border:1px solid #bbb;border-bottom:1px solid #999;cursor:pointer;text-shadow:0 1px 0 #ddd}.n2-sp-container button:active{border:1px solid #aaa;border-bottom:1px solid #888;-webkit-box-shadow:inset 0 0 5px 2px #aaa,0 1px 0 0 #eee;-moz-box-shadow:inset 0 0 5px 2px #aaa,0 1px 0 0 #eee;-ms-box-shadow:inset 0 0 5px 2px #aaa,0 1px 0 0 #eee;-o-box-shadow:inset 0 0 5px 2px #aaa,0 1px 0 0 #eee;box-shadow:inset 0 0 5px 2px #aaa,0 1px 0 0 #eee}.n2-sp-cancel{font-size:11px;color:#d93f3f!important;padding:2px;margin:0 5px 0 0;vertical-align:middle;text-decoration:none}.n2-sp-cancel:hover{color:#d93f3f!important;text-decoration:underline}.n2-sp-palette span.n2-sp-thumb-active,.n2-sp-palette span:hover{border-color:rgba(0,0,0,.5)}.n2-sp-alpha,.n2-sp-preview,.n2-sp-thumb-el{position:relative;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==)}.n2-sp-alpha-inner,.n2-sp-preview-inner,.n2-sp-thumb-inner{display:block;position:absolute;top:0;left:0;bottom:0;right:0}.n2-sp-thumb-inner{border-radius:3px}.n2-sp-preview-inner,.n2-sp-thumb-inner{border:solid 1px RGBA(0,0,0,.2)}.n2-sp-palette .n2-sp-thumb-inner{background-position:50% 50%;background-repeat:no-repeat}.n2-sp-palette .n2-sp-thumb-light.n2-sp-thumb-active .n2-sp-thumb-inner{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAIVJREFUeNpiYBhsgJFMffxAXABlN5JruT4Q3wfi/0DsT64h8UD8HmpIPCWG/KemIfOJCUB+Aoacx6EGBZyHBqI+WsDCwuQ9mhxeg2A210Ntfo8klk9sOMijaURm7yc1UP2RNCMbKE9ODK1HM6iegYLkfx8pligC9lCD7KmRof0ZhjQACDAAceovrtpVBRkAAAAASUVORK5CYII=)}.n2-sp-palette .n2-sp-thumb-dark.n2-sp-thumb-active .n2-sp-thumb-inner{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjEwMPRyoQAAAMdJREFUOE+tkgsNwzAMRMugEAahEAahEAZhEAqlEAZhEAohEAYh81X2dIm8fKpEspLGvudPOsUYpxE2BIJCroJmEW9qJ+MKaBFhEMNabSy9oIcIPwrB+afvAUFoK4H0tMaQ3XtlrggDhOVVMuT4E5MMG0FBbCEYzjYT7OxLEvIHQLY2zWwQ3D+9luyOQTfKDiFD3iUIfPk8VqrKjgAiSfGFPecrg6HN6m/iBcwiDAo7WiBeawa+Kwh7tZoSCGLMqwlSAzVDhoK+6vH4G0P5wdkAAAAASUVORK5CYII=)}.n2-vt{vertical-align:top}.n2-vm{vertical-align:middle}.n2-radius-s{-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.n2-radius-m{-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}.n2-radius-l{-webkit-border-radius:500px;-moz-border-radius:500px;border-radius:500px}.n2-tooltip{position:absolute;left:-10000px;top:-10000px;margin-top:-9000000px;opacity:0;z-index:100000;border-radius:3px;line-height:16px;padding:4px 6px;color:#fff;font-size:10px;background:RGBA(32,41,52,.95)}.n2-tooltip.n2-active{opacity:1;margin:10px}.n2-position-display-active .n2-tooltip{display:none}.n2-button{display:inline-block;text-align:center;cursor:pointer}.n2-button,.n2-button-inner,.n2-button-inner:ACTIVE,.n2-button-inner:FOCUS,.n2-button-inner:LINK,.n2-button-inner:VISITED,.n2-button:ACTIVE,.n2-button:FOCUS,.n2-button:LINK,.n2-button:VISITED{color:#fff;text-decoration:none}.n2-button-darker,.n2-button-darker:ACTIVE,.n2-button-darker:FOCUS,.n2-button-darker:LINK,.n2-button-darker:VISITED{color:#b2bfc9}.n2-button-wide{display:block;margin:10px 20px}.n2-button-icon{font-size:16px}.n2-button-icon.n2-h32{font-size:32px}.n2-button-with-actions{position:relative}.n2-button-with-actions .n2-button-inner{display:inline-block;height:100%;padding:0 20px;line-height:inherit}.n2-button-with-actions .n2-button-menu-open{position:relative;width:36px;height:100%;display:inline-block;vertical-align:top;background:RGBA(0,0,0,.1);border-left:1px solid RGBA(0,0,0,.1)}.n2-button-menu-open .n2-button-menu{display:none;position:absolute;right:0;top:36px;z-index:3}html[dir=rtl] .n2-button-menu-open .n2-button-menu{right:auto;left:0}.n2-button-menu-inner{margin-top:5px;box-shadow:0 0 5px 0 RGBA(0,0,0,.3);padding:5px 0;background-color:#fff;border-radius:5px}.n2-box-generator .n2-button-menu-inner{max-height:150px;overflow-y:auto;overflow-x:hidden}.n2-button-menu-open.n2-active .n2-button-menu{display:block}.n2-button-xs{height:18px;line-height:18px}.n2-button-xs.n2-button-normal{padding:0 5px}.n2-button-s{height:24px;line-height:24px}.n2-button-s.n2-button-normal,.n2-button-s.n2-button-with-actions .n2-button-inner{padding:0 10px}.n2-button-s .n2-button-menu-open{width:25px}.n2-button-s .n2-button-menu-open .n2-button-menu{top:24px}.n2-button-s.n2-button-icon{width:24px}.n2-button-m{height:28px;line-height:28px}.n2-button-m.n2-button-normal{padding:0 10px}.n2-button-m.n2-button-with-actions .n2-button-inner{padding:0 16px}.n2-button-m .n2-button-menu-open,.n2-button-m.n2-button-icon{width:28px}.n2-button-m .n2-button-menu-open .n2-button-menu{top:28px}.n2-button-m-narrow.n2-button-icon{width:20px}.n2-button-l{height:36px;line-height:36px}.n2-button-l.n2-button-normal{padding:0 15px;min-width:70px}.n2-button-l.n2-button-icon{width:36px}.n2-button-xl{height:50px;line-height:50px}.n2-button-xl,.n2-button-xl.n2-button-normal{padding:0 44px}.n2-button-grey{background:#6b7986}.n2-button-blue,.n2-button-blue-active.n2-active{background:#0c92df}.n2-button-green{background:#51b82d}.n2-button-red{background:#c54633}.n2-button-purple{background:#5f39c2}.n2-button-menu a{display:block;text-align:left;color:#7b8898;line-height:30px;padding:0 20px;white-space:nowrap}.n2-button-menu a:active,.n2-button-menu a:focus,.n2-button-menu a:hover{color:#7b8898}.n2-button-menu a:HOVER{background:#e9edf0}.n2-button-menu a.n2-separator{border-bottom:2px solid #ccd1d6}.n2-button-plain{background:0 0!important;color:#7b8898;height:26px;line-height:26px}.n2-button-plain .n2-button-inner{color:#7b8898;padding:0 5px!important}.n2-button-plain.n2-button-with-actions .n2-button-menu-open{border-left:0;background:0 0}.n2-button-plain .n2-button-inner:active,.n2-button-plain .n2-button-inner:focus,.n2-button-plain .n2-button-inner:link,.n2-button-plain .n2-button-inner:visited,.n2-button-plain:active,.n2-button-plain:focus,.n2-button-plain:link,.n2-button-plain:visited{color:#7b8898}.n2-button-plain.n2-button-with-actions .n2-button-menu-open{width:16px}.n2-button-plain.n2-button-with-actions .n2-button-menu-open .n2-button-menu{top:20px}.n2-button-with-icon{border:2px solid #e0e6ed;color:#6b7989;margin:5px;padding:0 10px}.n2-button-with-icon:ACTIVE,.n2-button-with-icon:FOCUS,.n2-button-with-icon:LINK,.n2-button-with-icon:VISITED{color:#6b7989}.n2-color-red,.n2-color-red.n2-button-plain:visited,.n2-color-red:active,.n2-color-red:focus,.n2-color-red:link{color:#c44e3d!important}.n2-color-blue,.n2-color-blue.n2-button-plain:visited,.n2-color-blue:active,.n2-color-blue:focus,.n2-color-blue:link{color:#0c92df!important}.n2-definition-list,.n2-list{margin:0;padding:0}.n2-definition-list dt{position:relative;line-height:59px;height:59px;background:#303b47;border-bottom:1px solid RGBA(0,0,0,.2);overflow:hidden}.n2-definition-list dt>a{display:block;padding:0 20px;color:#b2bfc9}.n2-definition-list dt>a .n2-i{margin-right:10px;vertical-align:middle;font-size:32px}html[dir=rtl] .n2-definition-list dt>a .n2-i{margin-right:0;margin-left:10px}.n2-definition-list dt .n2-id{display:block;width:70px;position:absolute;left:0;bottom:5px;text-align:center;line-height:11px;color:#8b99a6}.n2-definition-list dt>.n2-actions{display:block;position:absolute;top:0;right:0;background-color:#303b47;font-size:16px;line-height:16px;padding:22px 20px 0}.n2-definition-list dt.n2-open>.n2-actions{background-color:#3c4958}.n2-definition-list dt>.n2-actions a{display:inline-block;padding:0 5px}.n2-definition-list dt>.n2-actions a .n2-i,.n2-list li .n2-actions>* .n2-i{vertical-align:middle}html[dir=rtl] .n2-definition-list dt>.n2-actions,html[dir=rtl] .n2-list li>.n2-actions{right:auto;left:0}.n2-definition-list dd{margin:0}.n2-list li,.n2-list li>a{color:#b2bfc9;display:block}.n2-list li{position:relative;margin:0;line-height:39px;background-color:#303b47;border-bottom:1px solid RGBA(0,0,0,.2)}.n2-list li>a{padding:0 20px}.n2-list li>a .n2-i{vertical-align:middle;padding:7px;margin-left:-7px;font-size:16px}.n2-list li.n2-active{background:#1681c1}.n2-list li.n2-active>a{color:#fff;vertical-align:middle}.n2-list .n2-list-checkbox.n2-active .n2-i,.n2-list li.n2-active>.n2-actions .n2-i{color:#fff}.n2-list li .n2-actions{position:absolute;top:0;right:0;padding:2px 3px 0;line-height:24px}.n2-list li .n2-actions-left>*,.n2-list li .n2-actions>*{display:inline-block;margin:0 2px}.n2-list li.n2-button-container{padding:22px 20px}.n2-list .n2-list-checkbox{display:inline-block;width:16px;height:16px;background:#343f4c;vertical-align:top;border:2px solid #212d3a;border-radius:2px;line-height:16px;margin:10px 10px 0 0}.n2-list .n2-list-checkbox .n2-i{color:#343f4c;font-size:16px;margin:0;padding:0;vertical-align:top}.n2-list .n2-list-checkbox.n2-active{background:#6fbc49;border-color:#6fbc49}.n2-box{float:left;display:inline-block;position:relative;width:270px;height:180px;margin:15px;border-radius:3px;background-color:#212d3a;background-size:cover;background-position:50% 50%;opacity:1;transition:opacity .6s;box-shadow:0 0 5px RGBA(0,0,0,.05)}.n2-box.n2-active{box-shadow:0 0 0 3px #0c92df}.n2-ss-box-just-added{opacity:0}.n2-box-small{width:200px;height:135px;margin:10px}.n2-box.ui-sortable-helper{transform:scale(.8);opacity:.8}.n2-box-sortable-placeholder{height:200px;margin:5px 0;width:0;box-shadow:0 0 0 2px #0c92df;float:left;display:inline-block}.n2-box-sortable-placeholder-small{height:145px}.n2-box img{position:absolute;clip:rect(0,270px,180px,0);border-radius:3px;width:100%}.n2-box-small img{clip:rect(0,200px,95px,0)}.n2-box .n2-box-overlay{position:absolute;left:0;top:0;z-index:3;width:100%;height:100%;background-color:rgba(32,41,52,.9);text-align:center;line-height:130px;border-radius:3px}.n2-box-small .n2-box-overlay{line-height:100px}.n2-box-overlay .n2-button{line-height:28px;height:28px}.n2-box .n2-box-placeholder{position:absolute;left:0;bottom:0;height:50px;background:#fff;background:#212d3a;border-bottom-left-radius:3px;border-bottom-right-radius:3px;width:100%;z-index:9;display:flex;justify-content:space-between}.n2-box-small .n2-box-placeholder{height:40px}.n2-box-placeholder>*{margin:auto 0}.n2-box-placeholder-title{margin:auto 10px;overflow:hidden;max-height:100%}.n2-box-placeholder-buttons{white-space:nowrap;margin:auto 10px}.n2-box-placeholder-button{text-align:center;margin:auto}.n2-box-placeholder-title,.n2-box-placeholder-title a{color:#cedae2;line-height:16px}.n2-box-small .n2-box-placeholder-title,.n2-box-small .n2-box-placeholder-title a{line-height:20px}.n2-box .n2-box-lt{position:absolute;left:5px;top:5px;width:50%;text-align:left;z-index:4}.n2-box .n2-box-rt{position:absolute;right:5px;top:5px;width:50%;text-align:right}.n2-box .n2-box-lb{position:absolute;left:5px;bottom:55px;width:50%}.n2-box-small .n2-box-lb{bottom:45px}.n2-box .n2-box-lb>*{white-space:nowrap}.n2-box .n2-box-rb{position:absolute;right:5px;bottom:55px;text-align:right}.n2-box-small .n2-box-rb{bottom:45px}.n2-box .n2-box-center{position:absolute;left:0;top:74px;width:100%;text-align:center;z-index:4}.n2-box>.n2-on-hover{display:none}.n2-box:HOVER>.n2-on-hover{display:block}.n2-ss-box-select{display:none;border-radius:3px;border:2px solid #8793a2;width:16px;height:16px;text-align:center}.n2-box:HOVER .n2-ss-box-select{display:block}.n2-box.n2-selected .n2-ss-box-select{display:block;border-color:#1999e3;background-color:#1999e3}.n2-box.n2-selected .n2-ss-box-select .n2-i{display:inline-block;color:#fff;font-size:16px;line-height:16px;margin:0 -2px}.n2-bulk-select{margin:0 10px}.n2-box .n2-ss-box-select .n2-i,.n2-bulk-actions{display:none}.n2-ss-has-box-selection .n2-heading-actions{visibility:hidden}.n2-ss-has-box-selection .n2-bulk-actions{display:inline-block}.n2-ss-has-box-selection .n2-box-selectable{opacity:.5}.n2-ss-has-box-selection .n2-box-selectable.n2-selected{opacity:1}.n2-ss-has-box-selection .n2-ss-box-select{display:inline-block}.n2-box-menu{display:none;z-index:9}.n2-box-menu.n2-inited{display:inline-block;position:absolute;top:5px;right:5px;text-align:right}.n2-box-menu .n2-button{float:right}.n2-box-menu .n2-box-menu-content{display:none}.n2-box-menu.n2-active .n2-box-menu-content{margin-top:3px;display:block;clear:both;float:right;background:#fff;border-radius:5px;line-height:30px;text-align:left;box-shadow:0 0 5px 0 RGBA(0,0,0,.3);padding:5px 0;white-space:nowrap}.n2-box-menu.n2-active .n2-box-menu-content ul{margin:0;list-style-type:none}.n2-box-menu.n2-active .n2-box-menu-content li{padding:0 20px;margin:0;color:#7b8898;line-height:30px}.n2-box-menu.n2-active .n2-box-menu-content li:HOVER{background-color:#e9edf0}.n2-box-menu.n2-active .n2-box-menu-content li.n2-ss-delete{color:#c44e3d}.n2-box-full>a{width:100%;height:180px;padding:0}.n2-box-full>a:before{display:block;font-family:'Nextend'!important;font-size:74px;line-height:90px;content:"\e952";margin-top:35px}.n2-box-promo{background:0 0}.n2-box-promo-overlay,.n2-box-promo-overlay:FOCUS,.n2-box-promo-overlay:HOVER,.n2-box-promo-overlay:VISITED{position:absolute;display:block;width:100%;height:100%;color:#fff;text-align:center}.n2-box-promo .n2-close{position:absolute;right:10px;top:10px;cursor:pointer;display:none;z-index:3}.n2-box-promo:hover .n2-close{display:block}.n2-box-promo .n2-close:before{font-family:'Nextend'!important;content:"\e90a";font-size:16px}.n2-box-promo-light .n2-close:before{color:#7b8898}.n2-box-promo-dark .n2-close:before{color:#fff}.n2-box-promo span{display:block;position:absolute;bottom:50px;width:100%;line-height:23px;text-align:center;font-size:12px}.n2-box-promo-light span{color:#7b8898}.n2-box-promo-dark span{color:#eff7fb}.n2-box-promo-buttons{position:absolute;bottom:17px;width:100%;text-align:center}.n2-box-promo-buttons .n2-button+.n2-button{margin-left:20px}.nextend-tab-tabbed{width:100%;overflow:hidden}.nextend-tab-tabbed .nextend-tab-tabbed-panes{-webkit-transition:all 400ms ease-in-out;-moz-transition:all 400ms ease-in-out;-ms-transition:all 400ms ease-in-out;-o-transition:all 400ms ease-in-out;transition:all 400ms ease-in-out}.nextend-tab-tabbed .nextend-tab-tabbed-pane{float:left}.xdsoft_datetimepicker{background:#fff;border-radius:5px;border:2px solid #a1aeb5;color:#333;padding:2px 8px 8px 0;position:absolute;z-index:9999;-moz-box-sizing:border-box;box-sizing:border-box;display:none}.xdsoft_datetimepicker iframe{position:absolute;left:0;top:0;width:75px;height:210px;background:0 0;border:none}.xdsoft_datetimepicker button{border:none!important}.xdsoft_noselect{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.xdsoft_noselect::selection{background:0 0}.xdsoft_noselect::-moz-selection{background:0 0}.xdsoft_datetimepicker.xdsoft_inline{display:inline-block;position:static}.xdsoft_datetimepicker *{-moz-box-sizing:border-box;box-sizing:border-box;padding:0;margin:0}.xdsoft_datetimepicker .xdsoft_datepicker,.xdsoft_datetimepicker .xdsoft_timepicker{display:none}.xdsoft_datetimepicker .xdsoft_datepicker.active,.xdsoft_datetimepicker .xdsoft_timepicker.active{display:block}.xdsoft_datetimepicker .xdsoft_datepicker{width:224px;float:left;margin-left:8px}.xdsoft_datetimepicker.xdsoft_showweeks .xdsoft_datepicker{width:256px}.xdsoft_datetimepicker .xdsoft_timepicker{width:58px;float:left;text-align:center;margin-left:8px;margin-top:0}.xdsoft_datetimepicker .xdsoft_datepicker.active+.xdsoft_timepicker{margin-top:8px;margin-bottom:3px}.xdsoft_datetimepicker .xdsoft_mounthpicker{position:relative;text-align:center}.xdsoft_datetimepicker .xdsoft_label i,.xdsoft_datetimepicker .xdsoft_next,.xdsoft_datetimepicker .xdsoft_prev,.xdsoft_datetimepicker .xdsoft_today_button{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAAeCAYAAADaW7vzAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6Q0NBRjI1NjM0M0UwMTFFNDk4NkFGMzJFQkQzQjEwRUIiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6Q0NBRjI1NjQ0M0UwMTFFNDk4NkFGMzJFQkQzQjEwRUIiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpDQ0FGMjU2MTQzRTAxMUU0OTg2QUYzMkVCRDNCMTBFQiIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpDQ0FGMjU2MjQzRTAxMUU0OTg2QUYzMkVCRDNCMTBFQiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PoNEP54AAAIOSURBVHja7Jq9TsMwEMcxrZD4WpBYeKUCe+kTMCACHZh4BFfHO/AAIHZGFhYkBBsSEqxsLCAgXKhbXYOTxh9pfJVP+qutnZ5s/5Lz2Y5I03QhWji2GIcgAokWgfCxNvcOCCGKqiSqhUp0laHOne05vdEyGMfkdxJDVjgwDlEQgYQBgx+ULJaWSXXS6r/ER5FBVR8VfGftTKcITNs+a1XpcFoExREIDF14AVIFxgQUS+h520cdud6wNkC0UBw6BCO/HoCYwBhD8QCkQ/x1mwDyD4plh4D6DDV0TAGyo4HcawLIBBSLDkHeH0Mg2yVP3l4TQMZQDDsEOl/MgHQqhMNuE0D+oBh0CIr8MAKyazBH9WyBuKxDWgbXfjNf32TZ1KWm/Ap1oSk/R53UtQ5xTh3LUlMmT8gt6g51Q9p+SobxgJQ/qmsfZhWywGFSl0yBjCLJCMgXail3b7+rumdVJ2YRss4cN+r6qAHDkPWjPjdJCF4n9RmAD/V9A/Wp4NQassDjwlB6XBiCxcJQWmZZb8THFilfy/lfrTvLghq2TqTHrRMTKNJ0sIhdo15RT+RpyWwFdY96UZ/LdQKBGjcXpcc1AlSFEfLmouD+1knuxBDUVrvOBmoOC/rEcN7OQxKVeJTCiAdUzUJhA2Oez9QTkp72OTVcxDcXY8iKNkxGAJXmJCOQwOa6dhyXsOa6XwEGAKdeb5ET3rQdAAAAAElFTkSuQmCC)}.xdsoft_datetimepicker .xdsoft_label i{opacity:.5;background-position:-92px -19px;display:inline-block;width:9px;height:20px;vertical-align:middle}.xdsoft_datetimepicker .xdsoft_prev{float:left;background-position:-20px 0}.xdsoft_datetimepicker .xdsoft_today_button{float:left;background-position:-70px 0;margin-left:5px}.xdsoft_datetimepicker .xdsoft_next{float:right;background-position:0 0}.xdsoft_datetimepicker .xdsoft_next,.xdsoft_datetimepicker .xdsoft_prev,.xdsoft_datetimepicker .xdsoft_today_button{background-color:transparent;background-repeat:no-repeat;border:0 none currentColor;cursor:pointer;display:block;height:30px;opacity:.5;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";outline:medium none currentColor;overflow:hidden;padding:0;position:relative;text-indent:100%;white-space:nowrap;width:20px}.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_next,.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_prev{float:none;height:15px;width:30px;display:block;margin-left:14px}.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_next{background-position:-40px -15px;margin-top:7px}.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_prev{background-position:-40px 0;margin-bottom:7px;margin-top:0}.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box{height:151px;overflow:hidden;border-bottom:1px solid #ddd}.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box>div>div{background:#f9fafb;border-top:1px solid #dee1e5;color:#7b8898;font-size:12px;text-align:center;border-collapse:collapse;cursor:pointer;border-bottom-width:0;height:25px;line-height:25px}.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box>div>div:first-child{border-top-width:0}.xdsoft_datetimepicker .xdsoft_next:hover,.xdsoft_datetimepicker .xdsoft_prev:hover,.xdsoft_datetimepicker .xdsoft_today_button:hover{opacity:1;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"}.xdsoft_datetimepicker .xdsoft_label{display:inline;position:relative;z-index:9999;margin:0;padding:5px 3px;font-size:14px;line-height:20px;background-color:#fff;float:left;width:182px;text-align:center;cursor:pointer;color:#6b7989}.xdsoft_datetimepicker .xdsoft_label:hover i{opacity:1}.xdsoft_datetimepicker .xdsoft_label>.xdsoft_select{border:2px solid #a1aeb5;border-radius:3px;position:absolute;right:0;top:30px;z-index:101;display:none;background:#fff;max-height:160px;overflow-y:hidden}.xdsoft_datetimepicker .xdsoft_label>.xdsoft_select.xdsoft_monthselect{right:-7px}.xdsoft_datetimepicker .xdsoft_label>.xdsoft_select.xdsoft_yearselect{right:2px}.xdsoft_datetimepicker .xdsoft_label>.xdsoft_select>div>.xdsoft_option:hover{color:#fff;background:#51b82d}.xdsoft_datetimepicker .xdsoft_label>.xdsoft_select>div>.xdsoft_option{padding:2px 13px 2px 5px;text-decoration:none!important}.xdsoft_datetimepicker .xdsoft_label>.xdsoft_select>div>.xdsoft_option.xdsoft_current{background:#0c92df;color:#fff}.xdsoft_datetimepicker .xdsoft_month{width:100px;text-align:right}.xdsoft_datetimepicker .xdsoft_calendar{clear:both}.xdsoft_datetimepicker .xdsoft_year{width:48px;margin-left:5px}.xdsoft_datetimepicker .xdsoft_calendar table{border-collapse:collapse;width:100%}.xdsoft_datetimepicker .xdsoft_calendar td>div{padding-right:5px}.xdsoft_datetimepicker .xdsoft_calendar td,.xdsoft_datetimepicker .xdsoft_calendar th{width:14.2857142%;background:#f9fafb;border:1px solid #dee1e5;color:#7b8898;font-size:12px;text-align:right;vertical-align:middle;padding:0;border-collapse:collapse;cursor:pointer;height:25px}.xdsoft_datetimepicker .xdsoft_calendar th{background:#f2f5fa;text-align:center;color:#999;cursor:default;font-weight:400}.xdsoft_datetimepicker.xdsoft_showweeks .xdsoft_calendar td,.xdsoft_datetimepicker.xdsoft_showweeks .xdsoft_calendar th{width:12.5%}.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_today{color:#0c92df}.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current,.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_default,.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box>div>div.xdsoft_current{background:#0c92df;color:#fff}.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_disabled,.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_other_month,.xdsoft_datetimepicker .xdsoft_time_box>div>div.xdsoft_disabled{opacity:.5;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"}.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_other_month.xdsoft_disabled{opacity:.2;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=20)"}.xdsoft_datetimepicker .xdsoft_calendar td:hover,.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box>div>div:hover{color:#fff!important;background:#51b82d!important}.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_disabled:hover,.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box>div>div.xdsoft_disabled:hover{color:inherit!important;background:inherit!important}.xdsoft_datetimepicker .xdsoft_copyright{color:#ccc!important;font-size:10px;clear:both;float:none;margin-left:8px}.xdsoft_datetimepicker .xdsoft_copyright a{color:#eee!important}.xdsoft_datetimepicker .xdsoft_copyright a:hover{color:#aaa!important}.xdsoft_time_box{position:relative;border:1px solid #ccc}.xdsoft_scrollbar>.xdsoft_scroller{background:#ccc!important;height:20px;border-radius:3px}.xdsoft_scrollbar{position:absolute;width:7px;right:2px;top:0;bottom:0;cursor:pointer}.xdsoft_scroller_box{position:relative}
2
  /*!
3
  * jQuery UI Resizable 1.10.2
4
  * http://jqueryui.com
1
+ @font-face{font-family:'Nextend';src:url(../fonts/Nextend.eot?jk6d47);src:url(../fonts/Nextend.eot?jk6d47#iefix) format('embedded-opentype'),url(../fonts/Nextend.ttf?jk6d47) format('truetype'),url(../fonts/Nextend.woff?jk6d47) format('woff');font-weight:400;font-style:normal}.n2-i{font-family:'Nextend'!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.n2-i-slidelibrary:before{content:"\e97d"}.n2-i-newslide:before{content:"\e981"}.n2-i-canvas:before{content:"\e916"}.n2-i-builder:before{content:"\e97c"}.n2-i-minimize:before{content:"\e914"}.n2-i-maximize:before{content:"\e915"}.n2-i-vertical-align-top:before{content:"\e96c"}.n2-i-vertical-align-space-between:before{content:"\e97a"}.n2-i-vertical-align-space-around:before{content:"\e97b"}.n2-i-vertical-align-center:before{content:"\e97e"}.n2-i-vertical-align-bottom:before{content:"\e97f"}.n2-i-mini-desktop-portrait:before{content:"\e980"}.n2-i-uplevel:before{content:"\e979"}.n2-i-hidedesktoplandscape:before{content:"\e95a"}.n2-i-mini-arrow-thin:before{content:"\e926"}.n2-i-mini-move:before{content:"\e973"}.n2-i-color:before{content:"\e95b"}.n2-i-col:before{content:"\e95c"}.n2-i-structure-Sb:before{content:"\e95d"}.n2-i-structure-Sa:before{content:"\e95e"}.n2-i-structure-4a:before{content:"\e95f"}.n2-i-structure-3b:before{content:"\e960"}.n2-i-structure-3a:before{content:"\e961"}.n2-i-structure-2e:before{content:"\e962"}.n2-i-structure-2d:before{content:"\e963"}.n2-i-structure-2c:before{content:"\e964"}.n2-i-structure-2b:before{content:"\e965"}.n2-i-structure-2a:before{content:"\e966"}.n2-i-structure-1a:before{content:"\e967"}.n2-i-mini-tablet-portrait:before{content:"\e968"}.n2-i-mini-tablet-landscape:before{content:"\e969"}.n2-i-mini-mobile-portrait:before{content:"\e96a"}.n2-i-mini-mobile-landscape:before{content:"\e96b"}.n2-i-mini-desktop-landscape:before{content:"\e96d"}.n2-i-video:before{content:"\e96e"}.n2-i-stretch:before{content:"\e96f"}.n2-i-row:before{content:"\e970"}.n2-i-none:before{content:"\e971"}.n2-i-mini-trash:before{content:"\e972"}.n2-i-mini-duplicate:before{content:"\e974"}.n2-i-mini-arrow-up:before{content:"\e975"}.n2-i-mini-arrow-right:before{content:"\e976"}.n2-i-mini-arrow-left:before{content:"\e977"}.n2-i-mini-arrow-down:before{content:"\e978"}.n2-i-chainsmall:before{content:"\e949"}.n2-i-reset2:before{content:"\e946"}.n2-i-save:before{content:"\e947"}.n2-i-clearanimation:before{content:"\e948"}.n2-i-magnet:before{content:"\e936"}.n2-i-layerlist:before{content:"\e935"}.n2-i-layer-text:before{content:"\e920"}.n2-i-layer-image:before{content:"\e931"}.n2-i-layer-heading:before{content:"\e932"}.n2-i-layer-button:before{content:"\e933"}.n2-i-settings:before{content:"\e934"}.n2-i-selectarrow:before{content:"\e930"}.n2-i-closewindow:before{content:"\e90a"}.n2-i-selected:before{content:"\e90b"}.n2-i-layerlistopen:before{content:"\e92b"}.n2-i-layerlistclose:before{content:"\e92c"}.n2-i-backtoslider:before{content:"\e92e"}.n2-i-addlayer2:before{content:"\e92f"}.n2-i-newdrag:before{content:"\e913"}.n2-i-addlayer:before{content:"\e917"}.n2-i-listlayer:before{content:"\e918"}.n2-i-closelayer:before{content:"\e919"}.n2-i-copy:before{content:"\e907"}.n2-i-paste:before{content:"\e908"}.n2-i-undo:before{content:"\e905"}.n2-i-redo:before{content:"\e906"}.n2-i-sortdate2:before{content:"\e900"}.n2-i-sortdate1:before{content:"\e901"}.n2-i-sortalphabetic2:before{content:"\e902"}.n2-i-sortalphabetic1:before{content:"\e903"}.n2-i-hide:before{content:"\e60e"}.n2-i-adaptive:before{content:"\e64e"}.n2-i-reset:before{content:"\e64f"}.n2-i-fontmodifier:before{content:"\e650"}.n2-i-sun:before{content:"\e651"}.n2-i-layerunlink:before{content:"\e64b"}.n2-i-layerlink:before{content:"\e64d"}.n2-i-moon:before{content:"\e64c"}.n2-i-horizontal-right:before{content:"\e645"}.n2-i-horizontal-center:before{content:"\e646"}.n2-i-horizontal-left:before{content:"\e647"}.n2-i-vertical-bottom:before{content:"\e648"}.n2-i-vertical-middle:before{content:"\e649"}.n2-i-vertical-top:before{content:"\e64a"}.n2-i-bulb:before{content:"\e643"}.n2-i-unlock:before{content:"\e63f"}.n2-i-anim-out:before{content:"\e640"}.n2-i-anim-in:before{content:"\e641"}.n2-i-anim-loop:before{content:"\e642"}.n2-i-more:before{content:"\e639"}.n2-i-buttonarrow:before{content:"\e638"}.n2-i-list:before{content:"\e635"}.n2-i-link:before{content:"\e636"}.n2-i-play:before{content:"\e605"}.n2-i-pause:before{content:"\e606"}.n2-i-stop:before{content:"\e607"}.n2-i-snapcenter:before{content:"\e62e"}.n2-i-snapgrid:before{content:"\e62f"}.n2-i-snaplayer:before{content:"\e630"}.n2-i-snapnone:before{content:"\e631"}.n2-i-plus:before{content:"\e632"}.n2-i-minus:before{content:"\e633"}.n2-i-bold:before{content:"\e601"}.n2-i-unpublished:before{content:"\e62d"}.n2-i-published:before{content:"\e60c"}.n2-i-underline:before{content:"\e602"}.n2-i-italic:before{content:"\e615"}.n2-i-empty:before{content:"\e62c"}.n2-i-tick:before{content:"\e600"}.n2-i-star:before{content:"\e603"}.n2-i-right:before{content:"\e604"}.n2-i-order:before{content:"\e608"}.n2-i-lock:before{content:"\e609"}.n2-i-left:before{content:"\e60a"}.n2-i-justify:before{content:"\e60b"}.n2-i-info:before{content:"\e60d"}.n2-i-eye:before{content:"\e60f"}.n2-i-edit:before{content:"\e610"}.n2-i-duplicate:before{content:"\e611"}.n2-i-delete:before{content:"\e612"}.n2-i-close:before{content:"\e613"}.n2-i-center:before{content:"\e614"}.n2-i-emptyslide:before{content:"\e91b"}.n2-i-addslide:before{content:"\e91c"}.n2-i-staraction:before{content:"\e91d"}.n2-i-breadcrumbarrow:before{content:"\e91e"}.n2-i-animation:before{content:"\e91f"}.n2-i-folderclosed:before{content:"\e921"}.n2-i-folderopened:before{content:"\e922"}.n2-i-hide2:before{content:"\e923"}.n2-i-select:before{content:"\e924"}.n2-i-hidedesktopportrait:before{content:"\e925"}.n2-i-hidetabletlandscape:before{content:"\e927"}.n2-i-hidetabletportrait:before{content:"\e928"}.n2-i-hidemobilelandscape:before{content:"\e929"}.n2-i-hidemobileportrait:before{content:"\e92a"}.n2-i-backgroundedit:before{content:"\e909"}.n2-i-backgroundmanage:before{content:"\e90c"}.n2-i-backgroundposition:before{content:"\e90d"}.n2-i-viewmini:before{content:"\e90e"}.n2-i-viewgrid:before{content:"\e90f"}.n2-i-viewlist:before{content:"\e910"}.n2-i-more2:before{content:"\e911"}.n2-i-tick2:before{content:"\e912"}.n2-i-group:before{content:"\e957"}.n2-i-group-up:before{content:"\e958"}.n2-i-group-insert:before{content:"\e959"}.n2-i-add-sample:before{content:"\e951"}.n2-i-add-new:before{content:"\e952"}.n2-i-progressbar-layer:before{content:"\e982"}.n2-i-imagebox-layer:before{content:"\e983"}.n2-i-counter-layer:before{content:"\e984"}.n2-i-circlecounter-layer:before{content:"\e985"}.n2-i-audio-layer:before{content:"\e986"}.n2-i-a-license:before{content:"\e953"}.n2-i-a-import:before{content:"\e954"}.n2-i-a-deauthorize:before{content:"\e955"}.n2-i-a-clear:before{content:"\e956"}.n2-i-imagearea-layer:before{content:"\e950"}.n2-i-window-settings:before{content:"\e94c"}.n2-i-window-animation:before{content:"\e94d"}.n2-i-window-design:before{content:"\e94e"}.n2-i-window-layer:before{content:"\e94f"}.n2-i-dashboard:before{content:"\e94a"}.n2-i-slider2:before{content:"\e94b"}.n2-i-area-layer:before{content:"\e937"}.n2-i-iframe-layer:before{content:"\e938"}.n2-i-input-layer:before{content:"\e939"}.n2-i-html-layer:before{content:"\e93a"}.n2-i-video-layer:before{content:"\e93b"}.n2-i-vimeo-layer:before{content:"\e93c"}.n2-i-youtube-layer:before{content:"\e93d"}.n2-i-list-layer:before{content:"\e93e"}.n2-i-transition-layer:before{content:"\e93f"}.n2-i-caption-layer:before{content:"\e940"}.n2-i-icon-layer:before{content:"\e941"}.n2-i-button-layer:before{content:"\e942"}.n2-i-image-layer:before{content:"\e943"}.n2-i-text-layer:before{content:"\e944"}.n2-i-heading-layer:before{content:"\e945"}.n2-i-preview:before{content:"\e92d"}.n2-i-slides:before{content:"\e91a"}.n2-i-slideedit:before{content:"\e904"}.n2-i-help:before{content:"\e644"}.n2-i-v-tablet-landscape:before{content:"\e63a"}.n2-i-v-mobile-landscape:before{content:"\e63b"}.n2-i-v-desktop-landscape:before{content:"\e63c"}.n2-i-bulk:before{content:"\e634"}.n2-i-notification:before{content:"\e637"}.n2-i-v-tablet:before{content:"\e616"}.n2-i-v-mobile:before{content:"\e617"}.n2-i-v-desktop:before{content:"\e618"}.n2-i-v-all:before{content:"\e619"}.n2-i-smart:before{content:"\e61a"}.n2-i-slider:before{content:"\e61b"}.n2-i-s-open:before{content:"\e61c"}.n2-i-s-close:before{content:"\e61d"}.n2-i-next:before{content:"\e61e"}.n2-i-n-success:before{content:"\e61f"}.n2-i-n-notice:before{content:"\e620"}.n2-i-n-error:before{content:"\e621"}.n2-i-n-close:before{content:"\e622"}.n2-i-drag:before{content:"\e623"}.n2-i-a-text:before{content:"\e624"}.n2-i-a-refresh:before{content:"\e625"}.n2-i-a-html:before{content:"\e626"}.n2-i-a-export:before{content:"\e627"}.n2-i-a-duplicate:before{content:"\e628"}.n2-i-a-deletes:before{content:"\e629"}.n2-i-a-delete:before{content:"\e62a"}.n2-i-a-back:before{content:"\e62b"}.n2-i-up:before{content:"\e63e"}.n2-i-folder:before{content:"\e63d"}.n2{box-sizing:initial}.n2,.n2 .ui-widget,.n2 td,.n2 th,html[dir=rtl] .n2{font-family:"Montserrat",Arial,sans-serif;-webkit-font-smoothing:antialiased;font-size:12px}.n2 a:ACTIVE,.n2 a:FOCUS,.n2 a:LINK,.n2 a:VISITED{text-decoration:none}.n2-h1{font-size:26px}.n2-h2{font-size:20px}.n2-h3{font-size:14px}.n2-h4{font-size:12px}.n2-h5,input[type].n2-h5,select.n2-h5,textarea.n2-h5{font-size:11px}.n2-h6{font-size:10px}.n2-b{font-weight:700}.n2-uc{text-transform:uppercase}.n2-ucf{text-transform:capitalize}.n2-i+span,.n2-i+span+span,.n2-i+span+span+span{vertical-align:middle}.n2-actions-left>a,.n2-actions-left>a:HOVER,.n2-i-grey-opacity,.n2-i-grey-opacity:HOVER{color:#b2bfc9}.n2-active>.n2-i-star{color:#c68c1e}.n2-active>.n2-i-unpublished:before{content:"\e60c"}.n2-active>.n2-i-unpublished,.n2-active>.n2-i-unpublished:HOVER{color:#6fbc49}.n2-button .n2-i,.n2-i.n2-it{line-height:inherit;vertical-align:top}.n2-description,.n2-description p{font-size:12px;color:#6b7989}.n2-description ol{font-size:11px}div.n2-description ul{padding-left:20px;font-size:12px;list-style-type:disc}#wpbody-content{padding-bottom:0!important}#wpfooter{display:none}#wpbody-content #n2-admin{margin:10px 20px 0 0}html[dir=rtl] #wpbody-content #n2-admin{margin:10px 0 0 20px}#wpbody-content #n2-admin a:focus{box-shadow:none}#content-box #toolbar-box{display:none}.n2 input:focus,.n2 select:focus,.n2 textarea:focus{background:0 0}.n2 ul{padding:0}.n2 dt{font-weight:400}#status,.admin .subhead-collapse,.admin header.header{display:none}div#system-debug,div.container-main{padding-bottom:0}.admin #content{margin-top:20px}.n2 button,.n2 input,.n2 label,.n2 select,.n2 textarea{line-height:inherit}.n2 *:focus{box-shadow:none}#n2-admin img{display:inline}#system-message-container,.ui-helper-hidden{display:none}.n2 td{vertical-align:inherit}.n2 .thumb{margin-top:0}body.n2-platform-native{padding:10px;font-size:13px;line-height:1.4em;overflow:auto}.n2 hr,iframe{border:0}.ui-helper-hidden-accessible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}#n2-admin{min-width:980px;background-color:#e9edf0}.n2 hr{border-top:1px solid #ccd1d6;border-bottom:1px solid #fafafa}.n2 a{-moz-transition:none;-webkit-transition:none;-o-transition:color 0s ease-in;transition:none;outline:0}.n2-clickable{cursor:pointer}.n2-table{display:table;width:100%;border-spacing:0;border-collapse:collapse}.n2-table.n2-content{border-collapse:separate}.n2-table-auto{width:auto}.n2-table-fixed{table-layout:fixed}.n2-tr{display:table-row}.n2-td{display:table-cell;vertical-align:top}.n2-table-fancy,.n2-table-pane{width:100%;text-align:center;border-spacing:0}.n2-table-pane{table-layout:fixed;border-collapse:separate}.n2-table-fancy{border-collapse:collapse;border:2px solid #a1aeb5;border-radius:5px}.n2-table-fancy tr:nth-child(odd){background-color:#f2f5fa}.n2-table-fancy td{border:1px solid #e0e3e6;padding:10px;text-align:left;font-size:11px}html[dir=rtl] .n2-table-fancy td{text-align:right}.n2-table-fancy-wrap{border:2px solid #a1aeb5;border-radius:5px}.n2-table-fancy-wrap .n2-table-fancy{border:0}.n2-table-fancy-wrap .n2-table-fancy td{border:0;border-bottom:1px solid #e0e3e6}.n2-table-pane td{padding:0}.n2-inline-block{display:inline-block;vertical-align:top}.n2-left{float:left}.n2-right,html[dir=rtl] .n2-left{float:right}html[dir=rtl] .n2-right{float:left}.n2-clear{clear:both}.n2-blue-bg,.n2-blue-logo-bg{background-color:#0c92df}.n2-sidebar-base-bg{background-color:#4d5d70}.n2-sidebar-header-bg{background-color:#485769}.n2-sidebar-list-bg{background-color:#212d3a}.n2-sidebar-tab-bg{background-color:#202934}.n2-sidebar-parameter-label-bg{background-color:#212d3a}.n2-sidebar-tab-switcher{border-bottom:1px solid #2c3540}.n2-sidebar-tab-switcher .n2-td{color:#b2bfc9;text-align:center;height:60px;line-height:60px;cursor:pointer}.n2-sidebar-tab-switcher .n2-td.n2-active{color:#fff}.n2-sidebar-pane-sizer{top:0;left:0;height:15px;width:100%;cursor:ns-resize;background:#212d3a;text-align:center;color:#4d5d70;font-size:32px;line-height:15px}.n2-content-base-bg{background-color:#e9edf0}.n2-content-box-title-bg{background-color:#f2f5fa}.n2-border-radius{-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.n2-border-radius-tr{-webkit-border-top-right-radius:3px;-moz-border-radius-topright:3px;border-top-right-radius:3px}html[dir=rtl] .n2-border-radius-tr{-webkit-border-top-right-radius:0;-moz-border-radius-topright:0;border-top-right-radius:0}.n2-border-radius-tl,html[dir=rtl] .n2-border-radius-tr{-webkit-border-top-left-radius:3px;-moz-border-radius-topleft:3px;border-top-left-radius:3px}html[dir=rtl] .n2-border-radius-tl{-webkit-border-top-right-radius:3px;-moz-border-radius-topright:3px;border-top-right-radius:3px;-webkit-border-top-left-radius:0;-moz-border-radius-topleft:0;border-top-left-radius:0}.n2-border-radius-br{-webkit-border-bottom-right-radius:3px;-moz-border-radius-bottomright:3px;border-bottom-right-radius:3px}html[dir=rtl] .n2-border-radius-br{-webkit-border-bottom-right-radius:0;-moz-border-radius-bottomright:0;border-bottom-right-radius:0}.n2-border-radius-bl,html[dir=rtl] .n2-border-radius-br{-webkit-border-bottom-left-radius:3px;-moz-border-radius-bottomleft:3px;border-bottom-left-radius:3px}html[dir=rtl] .n2-border-radius-bl{-webkit-border-bottom-right-radius:3px;-moz-border-radius-bottomright:3px;border-bottom-right-radius:3px;-webkit-border-bottom-left-radius:0;-moz-border-radius-bottomleft:0;border-bottom-left-radius:0}.n2-a,.n2-a:ACTIVE,.n2-a:FOCUS,.n2-a:HOVER,.n2-a:VISITED{color:#08c}#n2-ss-redo,#n2-ss-undo{opacity:.5}#n2-ss-redo.n2-active,#n2-ss-undo.n2-active{opacity:1}#n2-ss-undo+#n2-ss-redo{margin-left:-15px}.n2-top-bar-menu .n2-button-icon{margin:12px 2px 0}.n2-expert-switch{display:inline-block;height:36px;margin-right:20px;vertical-align:top;position:relative;overflow:hidden;padding:0 30px;text-align:right}.n2-expert-switch .n2-expert-expert,.n2-expert-switch .n2-expert-simple{display:inline-block;height:100%;position:relative;line-height:36px;color:#b2bfc9;transition:top .3s,opacity .3s}.n2-expert-switch .n2-expert-simple{top:-36px;opacity:1}.n2-expert-switch .n2-expert-expert{top:-10px;opacity:0}.n2-expert-switch.n2-active .n2-expert-simple{top:-26px;opacity:0}.n2-expert-switch.n2-active .n2-expert-expert{top:0;opacity:1}.n2-expert-switch .n2-expert-bar{position:absolute;top:5px;right:8px;width:8px;height:24px;background:#6b7986;border-radius:4px;transition:background .3s}.n2-expert-switch.n2-active .n2-expert-bar{background:#51b82d}.n2-expert-switch .n2-expert-dot{position:absolute;top:-1px;left:-3px;width:14px;height:14px;border-radius:7px;background:#fff;transition:top .3s}.n2-expert-switch.n2-active .n2-expert-dot{top:10px}.n2-button-play{text-align:left;padding:0}.n2-button-play .n2-i,.n2-button-play span{vertical-align:middle}.n2-button-play span{display:inline-block;padding:0 20px;border-left:1px solid #1582c2}.n2-header{display:flex;justify-content:space-between;flex:1;height:70px;z-index:11;border-top-right-radius:5px;overflow:hidden}.n2-logo{width:339px;border-right:1px solid #1681c1;border-top-left-radius:5px}.n2-logo a{display:inline-block;width:100%;height:100%;text-align:center}.n2-logo a img{margin-top:9px}.n2-header-breadcrumbs{align-self:center}.n2-header-menu{text-align:right;white-space:nowrap}.n2-header-right>*{color:RGBA(255,255,255,.7);line-height:23px;display:inline-block;height:100%;padding:0 24px;vertical-align:top;font-size:13px}.n2-header-menu>*{line-height:70px}.n2-header-menu .n2-menu-has-sub .n2-menu-sub{display:none;position:absolute;right:5px;bottom:0;line-height:26px;white-space:nowrap}html[dir=rtl] .n2-header-menu .n2-menu-has-sub .n2-menu-sub{left:5px;right:auto}.n2-header-menu .n2-menu-has-sub:HOVER .n2-menu-sub{display:block}.n2-header-menu .n2-menu-has-sub .n2-menu-sub *{color:RGBA(255,255,255,.7)!important;padding:0 10px;font-size:11px}.n2-header-breadcrumbs>a{max-width:250px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.n2-header-breadcrumbs>span{padding:0;margin:0 -10px}.n2-header-right>.n2-h4,.n2-header-right>.n2-h4:ACTIVE,.n2-header-right>.n2-h4:FOCUS,.n2-header-right>.n2-h4:LINK,.n2-header-right>.n2-h4:VISITED{color:RGBA(255,255,255,.7);text-decoration:none}.n2-header-right .n2-h4.n2-active{color:#fff}.n2-sidebar{width:439px;border-right:1px solid #212d3a}.n2-sidebar-hidden>.n2-content .n2-sidebar{display:none}.n2-sidebar>:first-child{border-top:1px solid #2c3540}.n2-lightbox .n2-sidebar>:first-child{border-top:0}.n2-sidebar-fixed{position:fixed;top:0}.admin-bar .n2-sidebar-fixed{top:32px}.admin .n2-sidebar-fixed{top:31px}.n2-content-area{position:relative;border:1px solid #a3adb7;border-width:0 1px 1px 0;min-height:1000px;width:100%}.n2-sidebar-hidden .n2-content-area{border-width:0 1px 1px;-webkit-border-bottom-left-radius:3px;-moz-border-radius-bottomleft:3px;border-bottom-left-radius:3px}.n2-top-bar{position:relative;top:0;height:60px;z-index:1020;margin-right:-1px;border-bottom:1px solid #1c2329;display:flex;flex-wrap:nowrap;flex-flow:row;justify-content:space-between}.n2-sidebar-hidden .n2-top-bar{margin-left:-1px}.n2-top-bar>*{flex:1 0 auto}.n2-top-bar-middle{text-align:center;display:inline-block;height:100%}.n2-top-bar .n2-back{margin:0}.n2-top-bar .n2-back a{border-right:1px solid #1c2329;line-height:17px;padding-bottom:7px;color:#80a3b5}.n2-top-bar .n2-back a:before{font-family:'Nextend'!important;display:block;color:#80a3b5;font-size:32px;text-align:center;line-height:25px;margin-top:11px}.n2-top-bar-menu{line-height:60px;height:60px;overflow:hidden}.n2-top-bar-menu .n2-form-dark{margin-top:16px;height:28px;line-height:28px;overflow:hidden}.n2-top-bar-menu>.n2-h4{display:inline-block;line-height:60px;padding:0;color:#b2bfc9;font-size:10px;min-width:80px;text-align:center}.n2-top-bar-menu>.n2-h4.n2-active{color:#ebeced;cursor:default}.n2-top-bar-menu span{color:#b2bfc9;padding:0 10px}@media all and (max-width:800px){.n2-top-bar-menu>.n2-h4{display:none}}.n2-top-bar .n2-save-mode{color:#b2bfc9;font-size:12px}.n2-top-bar .n2-save-mode i{margin:0 10px;padding:0}.n2-top-bar .n2-form-dark .n2-form-element-radio-tab{vertical-align:middle}.n2-top-bar-actions{margin:12px 1px 0;white-space:nowrap;text-align:right}.n2-top-bar-actions .n2-button{margin-right:20px;vertical-align:top}html[dir=rtl] .n2-top-bar-actions .n2-button{margin-right:0;margin-left:20px}.n2-heading-bar{z-index:9;position:relative;background-color:#fff;border-bottom:1px solid #e0e6ed;padding:35px 0;display:flex}.n2-heading-bar-left{flex:1;align-self:center}.n2-heading{position:relative;color:#6b7989;line-height:40px;margin:0 30px}.n2-heading span{position:absolute;font-size:11px;left:2px;bottom:-26px}.n2-heading-menu{position:absolute;bottom:0;left:10px}html[dir=rtl] .n2-heading-menu{left:auto;right:10px}.n2-heading-menu>div{display:inline-block;padding:0 20px;color:#7b8898;cursor:pointer;line-height:34px}.n2-heading-menu>div.n2-active{color:#0c92df}.n2-heading-menu>div.n2-button{color:#fff;line-height:28px}.n2-heading-actions{white-space:nowrap;align-self:center}.n2-heading-actions-label{color:#6b7989;vertical-align:middle;line-height:32px}.n2-heading-actions a,.n2-heading-actions a:HOVER,.n2-heading-actions a:focus{display:inline-block;padding:10px;color:#b0b9bf;vertical-align:middle;font-size:32px}.n2-underline{position:relative}.n2-has-underline>.n2-underline:after{content:"";position:absolute;width:0;height:3px;bottom:-10px;left:0;background-color:#0c92df}.n2-active>.n2-underline:after{width:100%}.n2-controls-panel{line-height:28px}.n2-controls-panel .n2-panel-heading{padding-right:11px;color:#7b8898}.n2-panel-option a{display:inline-block;background-color:#a1aeb5;color:#fff;padding:0 24px;border-right:1px solid #b9c3c9}.n2-panel-option.n2-first a{-webkit-border-top-left-radius:3px;-webkit-border-bottom-left-radius:3px;-moz-border-radius-topleft:3px;-moz-border-radius-bottomleft:3px;border-top-left-radius:3px;border-bottom-left-radius:3px}.n2-panel-option.n2-last a{border-right:0;-webkit-border-top-right-radius:3px;-webkit-border-bottom-right-radius:3px;-moz-border-radius-topright:3px;-moz-border-radius-bottomright:3px;border-top-right-radius:3px;border-bottom-right-radius:3px}.n2-panel-option.n2-active a{background-color:#0c92df}.n2-modal{position:fixed;top:0;left:0;width:100%;height:100%;z-index:100002;background-color:RGBA(43,52,63,.9)}.n2-modal-window{position:absolute;top:50%;left:50%;background-color:#fff;z-index:1}.n2-modal-title{line-height:59px;color:#6b7989;border-bottom:1px solid #ccd1d6;overflow:hidden;border-top-left-radius:3px;border-top-right-radius:3px}.n2-modal-title .n2-h2{text-align:center;margin:0 58px;height:59px;overflow:hidden}.n2-modal-title .n2-i{position:absolute;top:0;cursor:pointer;font-size:32px;color:#a1aeb5}.n2-modal-title .n2-i-a-back,.n2-modal-title .n2-i-a-deletes{margin:13px}.n2-modal-title .n2-i-a-deletes{right:0}.n2-modal-title .n2-i-a-back.n2-hidden,.n2-modal-title .n2-i-a-deletes.n2-hidden{display:none}.n2-modal-title .n2-i-a-back{left:0}.n2-modal-content{padding:0 20px 20px;color:#7b8898}.n2-modal-content h3.n2-center,.n2-modal-content p,.n2-tr.n2-modal-controls-1 .n2-td{text-align:center}.n2-modal-content .n2-form{margin:0 -10px}.n2-modal-content .n2-td{padding:0 10px}.n2-modal-controls{position:absolute;left:0;bottom:0;width:100%;margin:20px 0}.n2-modal-controls .n2-table{width:100%}.n2-modal-controls .n2-td{padding:0 20px}.n2-tr.n2-modal-controls-2 .n2-td{width:50%}.n2-tr.n2-modal-controls-2 .n2-modal-controls-0{text-align:right}.n2-tr.n2-modal-controls-2 .n2-modal-controls-1{text-align:left}.n2-modal-controls-side .n2-tr.n2-modal-controls-2 .n2-modal-controls-0{text-align:left;vertical-align:middle}.n2-modal-controls-side .n2-tr.n2-modal-controls-2 .n2-modal-controls-1{text-align:right}.n2-modal-content .n2-table-pane{margin:20px 0}.n2-modal-content .n2-table-pane td{cursor:pointer;padding:20px;border:3px solid #fff;border-radius:3px;transition:all .3s}.n2-modal-content .n2-table-pane td:HOVER{border-color:#dee1e5}.n2-modal-content h3{color:#7b8898;font-weight:400;margin:20px 0 10px}.n2-modal-content p{font-size:11px}.n2-modal-active{overflow:hidden!important}.n2-modal-simple{cursor:pointer}.n2-modal-simple .n2-modal-window{left:0;top:0;cursor:default;width:100%;height:100%}.n2-modal-simple .n2-i-a-deletes{position:absolute;top:19px;right:30px;color:#a4b0b7;font-size:32px;z-index:2}.n2-lb-header{position:relative;background-color:#fff;border-bottom:1px solid #e0e6ed;z-index:10}.n2-modal-simple-header{line-height:40px;padding:15px 30px;color:#6b7989;font-size:24px}.n2-modal-simple .n2-modal-simple-header{padding:20px 30px 0}.n2-modal .n2-mixed-label{margin:20px 0 10px}.n2-modal .n2-mixed-label label{color:#7b8898;font-weight:400;font-size:14px}.n2-modal-radio{text-align:left;margin:0 -20px;overflow:auto}.n2-modal-radio-option{width:112px;height:70px;display:inline-block;margin:0 35px 50px;cursor:pointer;background-position:0 0;text-align:center}.n2-modal-radio-option.n2-active{cursor:default;background-position:0 -80px}.n2-modal-radio-option div{color:#7b8898;margin:75px -20px 0}.n2-modal-radio-option.n2-active div{color:#0c92df}.n2-modal iframe{max-width:none;border:0}.n2-lightbox-heading{color:#fff;line-height:61px;text-align:center;border-bottom:1px solid #2e3742;border-right:0}.n2-sidebar-row{line-height:58px;border-bottom:1px solid #333e4a;padding:0 10px}.n2-sets-header .n2-td{padding:0 10px}.n2-sets-header .n2-td>*{vertical-align:middle}.n2-sets-header .n2-h3,.n2-sets-header .n2-h4{color:#b2bfc9}.n2-sets-header .n2-form{display:inline-block;margin:0}.n2-sets-header .n2-form .n2-form-element-list{margin-bottom:0}.n2-sidebar-heading .n2-h3{color:#fff;margin:0 10px}.n2-lightbox-container{display:none;position:fixed;top:0;left:0;width:100%;height:100%;background:RGBA(43,52,63,.9);padding:20px;z-index:100002;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.n2-lightbox-container .n2-lightbox{width:100%;height:100%;overflow:hidden}.n2-lightbox-container .n2-content-area,.n2-lightbox-sidebar-list{overflow:auto}.n2-lightbox-container .n2-top-bar{margin-right:0}.n2-lightbox-container .n2-content-area{min-height:0}.n2-lightbox-no-sidebar .n2-blue-logo-bg{background:#3c4958;padding:0 30px;text-align:left}.n2-lightbox-no-sidebar .n2-sidebar{border-right-color:#3c4958}.n2-visual-editor-preview-tab,.n2-visual-editor-tabs{text-align:right;vertical-align:middle}html[dir=rtl] .n2-manage-set,html[dir=rtl] .n2-visual-editor-preview-tab,html[dir=rtl] .n2-visual-editor-tabs{text-align:left}.n2-visual-editor-preview-tab .n2-form-element-radio-tab,.n2-visual-editor-tabs .n2-form-element-radio-tab{vertical-align:baseline}.n2-editor-background-color{display:inline-block;height:28px;vertical-align:middle}#n2-font-editor-preview,#n2-style-editor-preview{padding:20px}#n2-animation-editor-preview{position:relative;height:500px;resize:vertical;overflow:hidden}.n2-animation-preview-box{position:absolute;top:50%;left:50%;background-color:#000;background-size:cover}#n2-animation-editor-tab-add,#n2-animation-editor-tab-delete{padding:0;width:28px;vertical-align:middle}.n2-ss-dashboard{max-width:1240px}.n2-form-tab.n2-editor-preview-box{background-color:#ced3d5}.n2-manage-set{text-align:right}.n2-browse-container{height:100%;overflow:auto;margin:0 -20px;transition:opacity .4s;opacity:1}.n2-browse-container.n2-drag-over{opacity:.3}.n2-browse-container .n2-browse-box{position:relative;width:140px;height:140px;border-radius:3px;float:left;margin:10px;cursor:pointer;text-align:center;color:#cdd3d7;overflow:hidden}.n2-browse-container .n2-browse-box>.n2-i{font-size:48px;line-height:134px}.n2-browse-container .n2-browse-upload{margin:7px;width:300px;overflow:hidden;border:3px dashed #dbe0e3}.n2-browse-container .n2-browse-upload div{text-align:center;line-height:30px;margin-top:32px;color:#7b8898}.n2-browse-container .n2-browse-upload input{font-size:200px;height:200px;position:absolute;left:0;top:0;opacity:0;cursor:pointer}.n2-browse-container .n2-browse-directory{box-shadow:0 0 0 3px #dbe0e3}.n2-browse-container .n2-browse-image{background-size:contain;background-repeat:no-repeat;background-color:#f3f5f7}.n2-browse-container .n2-browse-image.n2-active{box-shadow:0 0 0 3px #0c92df}.n2-browse-container .n2-browse-image .n2-button{position:absolute;top:5px;right:5px;padding:0;width:24px;display:none}.n2-browse-container .n2-browse-image.n2-active .n2-button{display:inline-block}.n2-browse-container .n2-browse-box .n2-browse-title{position:absolute;left:0;bottom:0;width:124px;padding:5px;height:30px;line-height:30px;text-align:center;color:#95a0ad;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.n2-browse-container .n2-browse-image .n2-browse-title{color:#e8ebed;background-color:#212d3a;background-color:RGBA(43,52,63,.9);width:130px}.sumome-badge-hint{display:none}.n2-result{margin-bottom:20px}.n2-ss-back-to:before{font-family:'Nextend'!important;font-size:16px;vertical-align:top;content:"\e92e";margin:0 4px;color:#7b8898}.n2-ui-autocomplete.ui-autocomplete{z-index:1000000;max-height:300px;overflow:auto;position:absolute;background:#fff;border:2px solid #0c92df;color:#7b8898;font-size:11px;margin:5px 0;border-radius:0;box-shadow:none;list-style-type:none;padding:0}.n2-ui-autocomplete .ui-menu-item{line-height:20px;padding:0 5px;cursor:pointer}.n2-ui-autocomplete .ui-menu-item.ui-state-focus{background:#e9edf0;border:0;margin:0;color:#7b8898;font-weight:400}.n2-nav{position:relative;z-index:11;display:flex}.n2 .ui-slider .ui-slider-handle:focus{outline:none}.n2-form{margin-bottom:20px;border-top:1px solid transparent;margin-top:-1px}.n2-form-dark .n2-content-box-title-bg{background-color:#4d5d70}.n2-form-tab{background:#fff;margin:20px 20px 0;border:1px solid #ccd1d6;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.n2-form-dark .n2-form-tab{background:#4d5d70;margin:0;border:0}.n2-form-tab>.n2-description{margin:20px}.n2-form-dark .n2-form-tab>table{border-bottom:1px solid #303b47}.n2-form-tab .n2-heading-controls,.n2-form-tab>.n2-h2{position:relative;padding:0 20px;color:#6b7989;line-height:54px;border-bottom:1px solid #ccd1d6;z-index:2}.n2-form-tab .n2-heading-controls{min-height:54px}.n2-form-tab table{width:100%;border-spacing:0;border-collapse:collapse;table-layout:fixed;margin-top:-1px}.n2-form-tab-horizontal{padding:20px 20px 0}.n2-form .n2-hidden,.n2-hidden{display:none!important}.n2-label-col{width:251px}.n2-form-dark .n2-label-col{width:136px}.n2-label{width:210px;background-color:#f9fafb;border:1px solid #dee1e5;border-width:1px 1px 0 0;padding:14px 20px;line-height:20px;color:#7b8898;font-size:12px}.n2-label label{color:#7b8898;display:inline-block;margin:0;font-size:100%}.n2-form-element-mixed label .n2-i,.n2-label label .n2-i{font-size:16px;vertical-align:middle}.n2-label label[data-n2tip]:after{font-family:'Nextend'!important;content:"\e620";font-size:16px;vertical-align:top;margin:0 5px;color:#b0b9bf}html[dir=rtl] .n2-label{border-width:1px 0 0 1px}.n2-form-dark .n2-label{width:102px;background-color:#3c4958;border-color:#303b47;color:#b2bfc9}.n2-form-dark .n2-label label{color:#b2bfc9}.n2-documentation,.n2-documentation:ACTIVE,.n2-documentation:FOCUS,.n2-documentation:HOVER{display:inline-block;color:#b9c3c9}.n2-i-info{vertical-align:middle;font-size:16px;margin:0;padding:10px 5px}.n2-form-dark .n2-i-info{color:RGBA(150,167,180,.8)}.n2-element{border-top:1px solid #dee1e5;padding:10px 10px 0}.n2-form-dark .n2-element{border-top:1px solid #414e5e}.n2-element>div{position:relative}.n2-element .n2-element-plain{margin-bottom:10px;color:#6b7989;font-size:12px}.n2 input,.n2 select,.n2 textarea{padding:0;width:auto;box-shadow:none;transition:none;font-family:"Montserrat",Arial,sans-serif}.n2-form input[disabled],.n2-form input[readonly],.n2-form select[disabled],.n2-form select[readonly],.n2-form textarea[disabled],.n2-form textarea[readonly]{background:0 0}.n2-form input,.n2-form textarea{box-sizing:border-box}.n2-form-element-button,.n2-form-element-button:active,.n2-form-element-button:hover,.n2-form-element-button:link,.n2-form-element-button:visited{vertical-align:top;display:inline-block;height:28px;line-height:28px;background-color:#51b82d;color:#fff;padding:0 11px;margin:-2px -2px -2px 0;border-top-right-radius:3px;border-bottom-right-radius:3px}.n2-form-element-button-inverted,.n2-form-element-button-inverted:active,.n2-form-element-button-inverted:hover,.n2-form-element-button-inverted:link,.n2-form-element-button-inverted:visited,html[dir=rtl] .n2-form-element-button,html[dir=rtl] .n2-form-element-button:active,html[dir=rtl] .n2-form-element-button:hover,html[dir=rtl] .n2-form-element-button:link,html[dir=rtl] .n2-form-element-button:visited{margin:-2px 0 -2px -2px;border-radius:0;border-top-left-radius:3px;border-bottom-left-radius:3px}html[dir=rtl] .n2-form-element-button-inverted,html[dir=rtl] .n2-form-element-button-inverted:active,html[dir=rtl] .n2-form-element-button-inverted:hover,html[dir=rtl] .n2-form-element-button-inverted:link,html[dir=rtl] .n2-form-element-button-inverted:visited{margin:-2px -2px -2px 0;border-radius:0;border-top-right-radius:3px;border-bottom-right-radius:3px}.n2-form-element-button-inverted.n2-icon-button:active,.n2-form-element-button-inverted.n2-icon-button:hover,.n2-form-element-button-inverted.n2-icon-button:link,.n2-form-element-button-inverted.n2-icon-button:visited,.n2-form-element-button.n2-icon-button{font-size:16px;min-width:28px;padding:0;text-align:center}.n2-form-element-clear,.n2-form-element-clear:active,.n2-form-element-clear:hover,.n2-form-element-clear:link,.n2-form-element-clear:visited{display:inline-block;height:24px;line-height:24px;width:28px;vertical-align:top;font-size:16px;text-align:center}.n2-form-element-text{display:inline-block;border:2px solid #a1aeb5;margin:0 10px;background:#fff;white-space:nowrap;vertical-align:top;height:24px}.n2-form-dark .n2-form-element-text{border-color:#28313a;background:#303b47}.n2-form .n2-form-element-text{margin-bottom:10px}.n2-form-element-text.focus{border-color:#0c92df}.n2-form-element-option-chooser input[type],.n2-form-element-text input,.n2-form-element-text input:focus,.n2-form-element-text input[type],.n2-form-element-text input[type]:focus{display:inline-block;margin:0 5px;padding:0;border:0;box-shadow:none;height:24px;line-height:24px;color:#7b8898;vertical-align:top}.n2-form-dark .n2-form-element-text input,.n2-form-dark .n2-form-element-text input:focus{background:#303b47;color:#b2bfc9}.n2-form-element-autocomplete.n2-form-element-number .ui-autocomplete .ui-menu-item,.n2-form-element-number input{text-align:center}.n2-form-element-text .n2-text-sub-label,.n2-form-element-text .n2-text-unit{display:inline-block;padding:0 5px;background-color:#a1aeb5;height:24px;line-height:24px;vertical-align:top;color:#fff}.n2-form-element-text .n2-text-unit,html[dir=rtl] .n2-form-element-text .n2-text-sub-label{margin-right:-2px;margin-left:0}.n2-form-element-text .n2-text-sub-label,html[dir=rtl] .n2-form-element-text .n2-text-unit{margin-right:0;margin-left:-2px}.n2-form-dark .n2-form-element-text .n2-text-sub-label,.n2-form-dark .n2-form-element-text .n2-text-unit{background:#28313a;color:#9aa7b2}.n2-form-element-text.focus .n2-text-sub-label,.n2-form-element-text.focus .n2-text-unit{background-color:#0c92df;color:#fff}.n2-form-element-text .n2-form-element-preview{display:inline-block;margin:1px;width:20px;height:20px;background-size:cover;border:1px solid rgba(0,0,0,.2);vertical-align:top}.n2-form-element-connected .n2-form-element-text{position:relative;border-top-right-radius:0;border-bottom-right-radius:0;margin-right:0;border-right-width:1px}.n2-form-element-connected .n2-form-element-text+.n2-form-element-text{margin-left:0;border-top-left-radius:0;border-bottom-left-radius:0;border-left-width:1px}.n2-form-element-connected-marginpadding{margin-left:10px}.n2-form-element-connected-marginpadding .n2-text-sub-label{display:inline-block;border:2px solid #28313a;border-right-width:1px;background:#28313a;height:24px;line-height:24px;color:#9aa7b2;vertical-align:top;padding:0 5px;border-top-left-radius:3px;border-bottom-left-radius:3px;font-size:16px;cursor:pointer}.n2-form-element-connected-marginpadding.n2-values-linked .n2-text-sub-label .n2-i:before{content:'\e64d'}.n2-form-element-connected-marginpadding .n2-form-element-text{position:relative;border-radius:0;margin-right:0;margin-left:0;border-left-width:1px;border-right-width:1px}.n2-form-element-connected-marginpadding.n2-values-linked .n2-form-element-text+.n2-form-element-text{display:none}.n2-form-element-text .n2-ui-slider-container{display:none;position:absolute;top:24px;width:100%;min-width:70px;border:2px solid #a1aeb5;border-radius:3px;background-color:#fff;margin:0 -2px;z-index:2}.n2-form-dark .n2-form-element-text .n2-ui-slider-container{border:2px solid #28313a;background:#303b47}.n2-form-element-text.focus .n2-ui-slider-container{border:2px solid #0c92df}.n2-form-element-text.n2-active .n2-ui-slider-container,.n2-form-element-text:HOVER .n2-ui-slider-container{display:block}.n2-form-element-text .ui-slider{position:relative;background:#a1aeb5;height:6px;margin:10px;border-radius:10px}.n2-form-dark .n2-form-element-text .ui-slider{background:#526a80}.n2-form-element-text .ui-slider .ui-slider-handle{position:absolute;top:0;z-index:2;width:10px;height:10px;-ms-touch-action:none;touch-action:none;background:#fff;border:2px solid #a1aeb5;margin:-4px -7px 0;border-radius:50px;cursor:ew-resize}.n2-form-dark .n2-form-element-text .ui-slider .ui-slider-handle{border:2px solid #526a80}.n2-form-element-file input[type=file],.n2-form-element-file input[type=file]:focus{padding:0;height:24px;line-height:24px;margin:0}.n2-form-element-preview-fixed{position:relative;height:96px;border:2px solid #303b47;background-position:50% 50%;background-size:contain;background-repeat:no-repeat;margin:0 10px;overflow:hidden;cursor:pointer;width:300px}.n2-form-element-preview-fixed .n2-button{display:none;position:absolute;top:3px;left:3px}.n2-form-element-preview-fixed:HOVER .n2-button{display:block}.n2-form-element-preview-fixed+div{display:inline-block}.n2-form-element-autocomplete .ui-autocomplete{position:absolute;min-width:100%!important;background:#fff;border:2px solid #0c92df;color:#7b8898;font-size:11px;margin:5px 0;border-radius:0;box-shadow:none;list-style-type:none;z-index:1000}.n2-form-element-autocomplete .ui-autocomplete .ui-menu-item{line-height:20px;padding:0 5px;cursor:pointer}.n2-form-element-autocomplete .ui-autocomplete .ui-menu-item.ui-state-focus{background:#e9edf0;border:0;margin:0;color:#7b8898;font-weight:400}.n2-form-element-autocomplete.ui-front{z-index:auto}.n2-form-element-textarea{display:inline-block;border:2px solid #a1aeb5;margin:0 10px}.n2-form .n2-form-element-textarea{margin-bottom:10px}.n2-form-dark .n2-form-element-textarea{border-color:#28313a;background-color:#303b47}.n2-form-element-textarea.focus{border-color:#0c92df}.n2-form-element-textarea textarea,.n2-form-element-textarea textarea:focus{margin:0;padding:2px 6px;border:0;display:inline-block;color:#7b8898;vertical-align:top;min-height:24px}.n2-form-dark .n2-form-element-textarea textarea,.n2-form-dark .n2-form-element-textarea textarea:focus{background:#303b47;color:#b2bfc9}.n2-textarea-rich{background:#4d5d70;border-bottom:2px solid #28313a;height:32px;color:#fff;font-size:16px;line-height:32px}.n2-textarea-rich>div{display:inline-block;width:32px;text-align:center;border-right:2px solid #28313a;cursor:pointer}.n2-form-element-option-chooser{display:inline-block;border:2px solid #a1aeb5;margin:0 10px;background:#fff}.n2-form .n2-form-element-option-chooser{margin-bottom:10px}.n2-form-dark .n2-form-element-option-chooser{border-color:#28313a;background:#303b47}.n2-form-element-option-chooser input{display:inline-block;margin:0 5px;border:0;box-shadow:none;height:24px;line-height:24px;color:#7b8898;width:120px}.n2-form-dark .n2-form-element-option-chooser input{background:#303b47;color:#b2bfc9}.n2-form-element-color input{text-transform:uppercase;width:50px;text-align:center}.n2-form-element-color-alpha input{width:70px}.n2-form-element-connected,.n2-form-element-mixed,.n2-form-element-onoff,.n2-form-element-onoff *{display:inline-block}.n2-form-element-mixed .n2-mixed-group{display:inline-block;vertical-align:top}.n2-form-element-mixed .n2-mixed-label{line-height:14px}.n2-form-element-mixed label{margin:0 10px;color:#7b8898;font-size:10px;display:inline-block}.n2-form-dark .n2-form-element-mixed label{color:#b2bfc9}.n2-mixed-element>div{position:relative}.n2-form-element-onoff{position:relative;background:#9aa8af;width:44px;height:24px;margin:2px 10px;-webkit-border-radius:12px;-moz-border-radius:12px;border-radius:12px;overflow:hidden;cursor:pointer}.n2-form .n2-form-element-onoff{margin-bottom:7px}.n2-form-element-onoff.n2-onoff-on{background:#51b82d}.n2-form-element-onoff .n2-onoff-slider{position:absolute;top:3px;left:0;width:88px;height:18px;-webkit-transition:left .25s;transition:left .25s}.n2-form-element-onoff .n2-onoff-slider *{vertical-align:top}.n2-form-element-onoff.n2-onoff-on .n2-onoff-slider{left:-18px}html[dir=rtl] .n2-form-element-onoff .n2-onoff-slider{left:-44px}html[dir=rtl] .n2-form-element-onoff.n2-onoff-on .n2-onoff-slider{left:-26px}.n2-form-element-onoff .n2-onoff-no{font-size:16px}.n2-form-element-onoff .n2-onoff-no,.n2-form-element-onoff .n2-onoff-yes{width:14px;line-height:18px;color:#fff}.n2-form-element-onoff .n2-onoff-slider .n2-i{line-height:inherit}.n2-form-element-onoff .n2-onoff-no{margin:0 4px}.n2-form-element-onoff .n2-onoff-yes{font-size:14px;margin:0 3px}.n2-form-element-onoff .n2-onoff-round{width:18px;height:18px;background-color:#fff;-webkit-border-radius:9px;-moz-border-radius:9px;border-radius:9px;box-shadow:0 0 0 1px RGBA(0,0,0,.1)}.n2-form-element-onoff-button{display:inline-block;border-radius:3px;background-color:#909ca3;line-height:28px;overflow:hidden;cursor:pointer}.n2-form-element-onoff-button .n2-onoffb-label{display:inline-block;color:#fff;font-size:11px;padding:0 10px;line-height:28px}.n2-form-element-onoff-button .n2-onoffb-container{background-color:#a1aeb5;width:32px;height:28px;display:inline-block}.n2-form-element-onoff-button *{vertical-align:top;display:inline-block}.n2-form-element-onoff-button .n2-onoffb-slider{position:relative;border-radius:4px;background-color:#6b7986;width:20px;height:8px;margin:10px 6px}.n2-form-element-onoff-button.n2-onoff-on .n2-onoffb-slider{background-color:#40b618}.n2-form-element-onoff-button .n2-onoffb-round{position:absolute;left:10px;top:-1px;border-radius:5px;width:10px;height:10px;background:#fff;-webkit-transition:left .25s;transition:left .25s}.n2-form-element-onoff-button.n2-onoff-on .n2-onoffb-round{left:0}.n2-form-element-switcher,.n2-form-element-switcher *{display:inline-block}.n2-form-element-switcher{margin:0 10px}.n2-form .n2-form-element-switcher{margin-bottom:10px}.n2-form-element-switcher .n2-switcher-unit{background-color:#a1aeb5;line-height:28px;color:#fff;padding:0 8px;cursor:pointer;border-right:1px solid #b9c3c9}.n2-form-dark .n2-form-element-switcher .n2-switcher-unit{border-color:#28313a;background-color:#303b47;color:#9aa7b2}.n2-form-element-switcher .n2-switcher-unit.n2-active{background-color:#0c92df;cursor:default;color:#fff}.n2-form-element-switcher .n2-switcher-unit.n2-first{-webkit-border-top-left-radius:3px;-webkit-border-bottom-left-radius:3px;-moz-border-radius-topleft:3px;-moz-border-radius-bottomleft:3px;border-top-left-radius:3px;border-bottom-left-radius:3px}.n2-form-element-switcher .n2-switcher-unit.n2-last{-webkit-border-top-right-radius:3px;-webkit-border-bottom-right-radius:3px;-moz-border-radius-topright:3px;-moz-border-radius-bottomright:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-right:0}.n2-form-element-units{display:inline-block;position:relative;color:#fff}.n2-form-dark .n2-form-element-units{color:#9aa7b2}.n2-form-element-units .n2-element-current-unit{display:inline-block;padding:0 5px;background-color:#a1aeb5;height:24px;line-height:24px;vertical-align:top;border:2px solid #a1aeb5;border-top-right-radius:3px;border-bottom-right-radius:3px}.n2-form-dark .n2-form-element-units .n2-element-current-unit{background-color:#28313a;border:2px solid #28313a}.n2-element-units{display:none;position:absolute;left:0;top:28px;line-height:28px;background-color:#a1aeb5;padding:0 7px;z-index:10000}.n2-form-dark .n2-element-units{background-color:#28313a}.n2-form-element-units:HOVER .n2-element-units{display:block}.n2-element-units>*{cursor:pointer;text-align:center}.n2-form .n2-form-element-radio{margin-bottom:10px}.n2-form-element-radio,.n2-form-element-radio *{display:inline-block}.n2-form-element-radio .n2-radio-option{color:#7b8898;margin:5px 10px;cursor:pointer;line-height:18px;vertical-align:top}.n2-form-dark .n2-form-element-radio .n2-radio-option{color:#b2bfc9}.n2-form-element-radio .n2-radio-option.n2-active{cursor:default}.n2-form-element-radio .n2-radio-option-marker{width:14px;height:14px;border:2px solid #bcc6cb;-webkit-border-radius:14px;-moz-border-radius:14px;border-radius:14px;margin-right:5px;-webkit-transition:border-color .25s,background-color .25s;transition:border-color .25s,background-color .25s;background-color:#fff;font-size:12px;line-height:14px;color:#fff;vertical-align:top;text-align:center}html[dir=rtl] .n2-form-element-radio .n2-radio-option-marker{margin-left:5px;margin-right:0}.n2-form-dark .n2-form-element-radio .n2-radio-option-marker{border-color:#28313a;background-color:#4d5d70}.n2-form-element-radio .n2-radio-option-marker .n2-i{-webkit-transition:opacity .25s;transition:opacity .25s;opacity:0}.n2-form-element-radio .n2-radio-option.n2-active .n2-radio-option-marker{border-color:#6fbc49;background-color:#6fbc49}.n2-form-element-radio .n2-radio-option.n2-active .n2-radio-option-marker .n2-i{opacity:1}.n2-form-element-radio .n2-radio-option.n2-active .n2-radio-option-marker+span{vertical-align:top}.n2-imagelist .n2-form-element-radio,.n2-imagelist img{max-width:100%}.n2-imagelist .n2-radio-option{border:4px solid #b8c2cd;padding:4px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;vertical-align:middle}.n2-imagelist .n2-imagelist-option{line-height:0;background:#b8c2cd;max-width:94%}.n2-white .n2-imagelist .n2-imagelist-option{background:#fff}.n2-imagelist .n2-radio-option.n2-active{border-color:#0c92df}.n2-imagelistlabel .n2-radio-option{position:relative;width:110px;height:70px;background:center 0 no-repeat;padding:0;border:0;border-radius:0;margin-top:10px;margin-bottom:10px}.n2-imagelistlabel .n2-radio-option span{text-align:center;position:absolute;bottom:-8px;left:0;display:block;width:100%;line-height:20px}.n2-imagelistlabel .n2-radio-option.n2-active{background-position:center -70px;color:#0c92df}.n2-form-element-radio-tab{margin:0 10px;line-height:28px;vertical-align:middle!important;height:28px;display:inline-block}.n2-form .n2-form-element-radio-tab{margin-bottom:10px}.n2-form-element-radio-tab>div{float:left}.n2-form-element-radio-tab .n2-radio-option,.n2-form-element-radio-tab .n2-radio-option-label{padding:0 10px;text-align:center;background:#8e9ea7;color:#fff;vertical-align:top;text-transform:uppercase}.n2-form-element-radio-tab .n2-radio-option{cursor:pointer}.n2-form-element-radio-tab .n2-radio-option-label{background:#909ca3;cursor:default}.n2-form-dark .n2-form-element-radio-tab .n2-radio-option{background:#28313a;color:#9aa7b2}.n2-form-element-radio-tab .n2-radio-option.n2-active{background:#0c92df;color:#fff}.n2-form-element-radio-tab .n2-radio-option-label.n2-first,.n2-form-element-radio-tab .n2-radio-option.n2-first{-webkit-border-top-left-radius:3px;-webkit-border-bottom-left-radius:3px;-moz-border-radius-topleft:3px;-moz-border-radius-bottomleft:3px;border-top-left-radius:3px;border-bottom-left-radius:3px}.n2-form-element-radio-tab .n2-radio-option-label.n2-last,.n2-form-element-radio-tab .n2-radio-option.n2-last{-webkit-border-top-right-radius:3px;-webkit-border-bottom-right-radius:3px;-moz-border-radius-topright:3px;-moz-border-radius-bottomright:3px;border-top-right-radius:3px;border-bottom-right-radius:3px}.n2-form-element-list{margin:0 10px;display:inline-block}.n2-form .n2-form-element-list{margin-bottom:10px}.n2 .n2-form-element-list select{padding:0;margin:0;height:24px;border:2px solid #b9c3c9;background:0 0;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.n2 .n2-form-element-list select[multiple]{height:auto}.n2 .n2-form-dark .n2-form-element-list select{border:2px solid #28313a;background:#303b47;color:#b2bfc9}.n2 .n2-form-element-list select:focus{box-shadow:none}.n2 .n2-form-element-list select{font-weight:400;font-size:12px;color:#7b8898}.n2 .n2-form-element-list select option{padding:0 5px}.n2-form-element-single-button{margin:0 10px}.n2-form .n2-form-element-checkbox,.n2-form .n2-form-element-single-button{margin-bottom:10px}.n2-form-element-checkbox{display:inline-block;margin:0 10px;white-space:nowrap}.n2-checkbox-option{display:inline-block;margin:0 3px;background:#8e9ea7;cursor:pointer;line-height:28px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.n2-checkbox-option.n2-first{margin-left:0}.n2-checkbox-option.n2-last{margin-right:0}.n2-form-dark .n2-checkbox-option{background:#28313a;color:#9aa7b2}.n2-form-element-decoration{display:inline-block}.n2-form-element-decoration .n2-checkbox-option,.n2-form-element-icon-radio .n2-radio-option,.n2-form-element-textalign .n2-radio-option{width:28px;height:28px;line-height:28px;text-align:center;font-size:16px;color:#fff;padding:0}.n2-form-dark .n2-form-element-decoration .n2-checkbox-option,.n2-form-dark .n2-form-element-icon-radio .n2-radio-option{color:#9aa7b2}.n2-checkbox-option.n2-active,.n2-form-dark .n2-checkbox-option.n2-active,.n2-form-dark .n2-form-element-icon-radio .n2-radio-option.n2-active{background:#0c92df;color:#fff}.n2-form-element-img+a,.n2-form-element-img+a+a{margin-right:10px}.n2-form-element-icon{display:inline-block;margin:0 10px;white-space:nowrap}.n2-form .n2-form-element-icon{margin-bottom:10px}.n2-form-element-icon .n2-form-element-preview{margin-right:3px;border:0;width:22px;height:22px;text-align:center;line-height:22px}.n2-form-element-icon .n2-form-element-preview>.n2i{color:#fff;font-size:22px;vertical-align:top}.n2-icons-modal .n2-modal-content{overflow:auto!important}.n2-icons-modal .n2-icon{display:inline-block;margin:5px;width:32px;height:32px;cursor:pointer;font-size:24px;line-height:32px;text-align:center;color:#000}.n2-icons-modal .n2-modal-content{}.n2-icons-modal .n2-modal-content .n2-form-tab:last-child{margin-bottom:40px}.n2-subform-image .n2-subform-image-option{display:inline-block;width:150px;height:120px;padding:30px 3%;color:#7b8898}.n2-subform-image .n2-subform-image-option .n2-subform-image-element{width:150px;height:90px;cursor:pointer}.n2-subform-image .n2-subform-image-option.n2-active .n2-subform-image-element{background-position:0 -100px;cursor:default}.n2-subform-image .n2-subform-image-option .n2-subform-image-title{text-align:center;margin-top:10px}.n2-subform-image .n2-subform-image-option.n2-active{color:#0c92df}.n2-subform-image.n2-small .n2-subform-image-option .n2-subform-image-element{width:100px;height:70px}.n2-subform-image.n2-small .n2-subform-image-option.n2-active .n2-subform-image-element{background-position:0 -80px}.n2-subform-image.n2-small .n2-subform-image-option{width:100px;height:100px}.n2-subform-image .n2-subform-image-option-simple{display:inline-block;width:190px;height:120px;border-radius:3px;border:5px solid #a1aeb5;margin:25px;padding:0;vertical-align:top}.n2-subform-image .n2-subform-image-option-simple.n2-active{border-color:#0c92df}.n2-subform-image .n2-subform-image-option-simple div.n2-subform-image-element{width:100%;height:100%;background-repeat:repeat-y}.n2-subform-image .n2-subform-image-option-simple.n2-active div.n2-subform-image-element{background-position:0 -120px}.n2-subform-2-rows{max-height:360px;overflow:auto;margin:-10px -10px 0}.n2-form-matrix{border-bottom-width:1px;border-radius:3px}.n2-form-matrix .n2-form-tab{border-radius:0}.n2-form-matrix>.n2-h2{padding:0}.n2-form-matrix .n2-form-matrix-menu{cursor:pointer;display:inline-block;margin:0 20px;vertical-align:top;line-height:60px;font-size:14px;color:#b2bfc9}.n2-form-matrix .n2-form-matrix-menu.n2-active{color:#fff}.n2-form-matrix .n2-form-matrix-menu.n2-has-underline>.n2-underline::after{bottom:-10px;color:#0c92df}#n2-css-basiccss.n2-basiccss-show-preset-list #n2-tab-basiccssfont,#n2-css-basiccss.n2-basiccss-show-preset-list #n2-tab-basiccssstyle,.n2-form-matrix-pane{display:none}.n2-form-matrix>.n2-form-matrix-views{z-index:4;padding:0 20px;background:#212d3a;margin:-1px -1px 0;border-top-left-radius:3px;border-top-right-radius:3px}#n2-tab-basiccssfont.n2-css-has-font,#n2-tab-basiccssstyle.n2-css-has-style,.n2-form-matrix-pane.n2-active{display:block}.n2-form-matrix-pane .n2-form{margin-bottom:0}.n2-form-matrix-pane .n2-form-tab{border-width:0 0 1px;margin:0}.n2-form-matrix-pane .n2-form-tab>.n2-h2{font-size:14px}#n2-tab-basiccssfont,#n2-tab-basiccssstyle{display:none;background:#3c4958}#n2-tab-basiccssfont>.n2-h2,#n2-tab-basiccssstyle>.n2-h2,.n2-editor-header.n2-h2{padding:0;line-height:43px;background:#28313a;border-bottom:1px solid #20282f}#n2-tab-basiccssfont>.n2-h2,#n2-tab-basiccssstyle>.n2-h2{margin-bottom:5px}.n2-editor-header>span{position:relative;font-size:11px;display:inline-block;vertical-align:top;color:#b2bfc9}.n2-css-name{color:#b2bfc9}.n2-css-name,.n2-css-tab,.n2-editor-header .n2-ss-button-container,.n2-editor-header .n2-ss-button-container-left{position:relative;font-size:11px;display:inline-block;vertical-align:top}.n2-editor-header .n2-ss-button-container{float:right;color:#fff}.n2-editor-header .n2-ss-button-container-left{color:#fff;float:left}.n2-css-tab{float:right;color:#fff}.n2-editor-header .n2-ss-button-container-left>*{margin-left:10px;vertical-align:middle}#n2-tab-basiccssfont .n2-css-tab,#n2-tab-basiccssstyle .n2-css-tab{overflow:hidden;height:24px;line-height:24px;border-radius:3px;margin:10px 10px 0 0}#n2-tab-basiccssfont .n2-css-tab-reset,#n2-tab-basiccssstyle .n2-css-tab-reset{display:none;float:right;margin:10px 10px 0 0}#n2-tab-basiccssfont.n2-css-show-reset .n2-css-tab-reset,#n2-tab-basiccssstyle.n2-css-show-reset .n2-css-tab-reset{display:inline-block}.n2-css-tab>*,.n2-editor-header .n2-ss-button-container>*{display:inline-block;padding:0 10px}.n2-editor-header .n2-ss-button-container{margin-right:10px}.n2-css-tab>.n2-button,.n2-editor-header .n2-ss-button-container>.n2-button{height:24px;line-height:24px;padding:0}.n2-editor-header .n2-ss-button-container>.n2-button-icon{height:28px;line-height:28px;width:28px;vertical-align:middle}.n2-css-tab>.n2-button-normal,.n2-editor-header .n2-ss-button-container>.n2-button-normal{padding:0 15px}.n2-css-name-label,.n2-editor-header>span{padding:0 10px}.n2-css-name .n2-css-name-list{display:none}.n2-css-name.n2-multiple .n2-css-name-label:after{content:"\e638";font-family:'Nextend'!important;vertical-align:top;margin:0 0 0 5px}.n2-css-name.n2-multiple .n2-css-name-list{position:absolute;left:0;top:34px;background:#28313a;white-space:nowrap}.n2-css-name.n2-multiple:HOVER .n2-css-name-list{display:block}.n2-css-name.n2-multiple .n2-css-name-list>*{white-space:nowrap;display:block;padding:0 10px;cursor:pointer}.n2-css-name.n2-multiple .n2-css-name-list>*:HOVER{background:#303b47}.n2-css-tab span{background:#6b7986;cursor:pointer;height:24px;line-height:24px}.n2-css-tab span.n2-active{background:#0c92df;cursor:default}#n2-tab-basiccssfont #layerfamily{max-width:none!important}#n2-tab-basiccsspresets{display:none}#n2-css-basiccss.n2-basiccss-show-preset-list #n2-tab-basiccsspresets{display:block}#n2-tab-basiccsspresets div div{line-height:30px;background-color:#303b47;border-bottom:1px solid RGBA(0,0,0,.2);color:#fff;cursor:pointer;padding:0 20px}#n2-tab-basiccsspresets div div:HOVER{background:#1681c1}.n2-basiccss-more{background:#303b47;line-height:28px;height:28px;vertical-align:top;margin-top:15px;float:right;margin-right:23px;color:#9aa7b2}.n2-notification-center-modal{background-color:RGBA(43,52,63,.9);width:100%;height:100%;position:fixed;left:0;top:0;display:none;z-index:2147483646}.n2-notification-center-modal.n2-active,.n2-notification-center-modal.n2-active .n2-notification-center{display:block}.n2-notification-center{display:none;position:absolute;top:61px;right:0;width:370px;background:#fff;border:1px solid #ccd1d6;border-top:0;opacity:0}.n2-notification-center-modal .n2-notification-center{display:none;position:absolute;left:50%;right:auto;top:50%;margin-left:-185px;margin-top:-63px;opacity:1}.n2-notification-settings{position:relative;background:#f2f5fa;border-top:1px solid #ccd1d6;height:44px}.n2-notification-clear{position:absolute;left:10px;top:10px}.n2-notification-important{position:absolute;right:10px;top:13px;cursor:pointer}.n2-notification-important span{vertical-align:top;padding:0 10px;color:#6b7989}.n2-checkbox{display:inline-block;width:14px;height:14px;background:#f2f5fa;border:2px solid #b9c3c9;border-radius:2px;vertical-align:top}.n2-checkbox .n2-i{color:#f2f5fa;font-size:14px;margin:0;padding:0;vertical-align:top}.n2-active>.n2-checkbox{background:#6fbc49;border-color:#6fbc49}.n2-active>.n2-checkbox .n2-i{color:#fff}.n2-notification-message{border-top:1px solid #ccd1d6}.n2-notification-message .n2-td{padding:22px 0}.n2-notification-message .n2-first{width:62px}.n2-notification-message .n2-i{vertical-align:middle;margin:0 10px;font-size:32px}.n2-notification-message h4{margin:0}.n2-notification-message p{color:#7b8898;margin:0}.n2-notification-message-error,.n2-notification-message-error h4{color:#c54633}.n2-notification-message-success,.n2-notification-message-success h4{color:#50aa31}.n2-notification-message-notice,.n2-notification-message-notice h4{color:#0c92df}.n2-notification-empty{color:#7b8898;margin:20px;text-align:center}.n2-loader-overlay{display:none;position:fixed;width:100%;height:100%;left:0;top:0;z-index:2147483647;background-color:RGBA(43,52,63,.9)}.n2-loader-overlay.n2-active{display:block}.n2-loader{position:absolute;left:50%;top:50%;margin-left:-20px;margin-top:-20px;border:10px solid rgba(255,255,255,.2);border-left-color:#fff;-webkit-animation:n2-load 1.1s infinite linear;animation:n2-load 1.1s infinite linear;overflow:hidden}.n2-loader,.n2-loader:after{border-radius:50%;width:40px;height:40px}@-webkit-keyframes n2-load{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes n2-load{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.n2-sp-container{position:absolute;top:0;left:0;display:inline-block;*display:inline;*zoom:1;z-index:2147483647;overflow:hidden}.n2-sp-container.n2-sp-flat,.n2-sp-top{position:relative}.n2-sp-top{width:100%;display:inline-block}.n2-sp-top-inner{left:0;right:0;margin-bottom:5px}.n2-sp-color,.n2-sp-hue,.n2-sp-top-inner{position:absolute;top:0;bottom:0}.n2-sp-color{margin-right:5px;left:0;right:20%}.n2-sp-hue{right:0;left:84%;height:100%;box-shadow:0 0 1px 1px rgba(0,0,0,.2)inset}.n2-sp-fill{padding-top:80%}.n2-sp-sat,.n2-sp-val{position:absolute;top:0;left:0;right:0;bottom:0;box-shadow:0 0 1px 1px rgba(0,0,0,.2)inset}.n2-sp-alpha-enabled .n2-sp-top{margin-bottom:18px}.n2-sp-alpha-enabled .n2-sp-alpha{display:block}.n2-sp-alpha-handle{position:absolute;top:-4px;bottom:-4px;width:7px;left:50%;cursor:pointer;box-shadow:0 0 0 1px RGBA(0,0,0,.4);background:#fff;border-radius:2px}.n2-sp-alpha{display:none;bottom:-14px;right:0;left:0;height:8px}.n2-sp-alpha-inner{background:-moz-linear-gradient(left,rgba(0,0,0,0)25%,#000 100%);background:-webkit-gradient(linear,left top,right top,color-stop(25%,rgba(0,0,0,0)),color-stop(100%,#000));background:-webkit-linear-gradient(left,rgba(0,0,0,0)25%,#000 100%);background:-o-linear-gradient(left,rgba(0,0,0,0)25%,#000 100%);background:-ms-linear-gradient(left,rgba(0,0,0,0)25%,#000 100%);background:linear-gradient(to right,rgba(0,0,0,0)25%,#000 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#000000', GradientType=1);box-shadow:0 0 1px 1px rgba(0,0,0,.2)inset}.n2-sp-alpha,.n2-sp-alpha-handle,.n2-sp-container,.n2-sp-container button,.n2-sp-container.n2-sp-dragging .n2-sp-input,.n2-sp-dragger,.n2-sp-preview,.n2-sp-replacer,.n2-sp-slider{-webkit-user-select:none;-moz-user-select:-moz-none;-o-user-select:none;user-select:none}.n2-sp-container.n2-sp-buttons-disabled .n2-sp-button-container,.n2-sp-container.n2-sp-input-disabled .n2-sp-input-container,.n2-sp-initial-disabled .n2-sp-initial,.n2-sp-palette-disabled .n2-sp-palette-container,.n2-sp-palette-only .n2-sp-picker-container{display:none}.n2-sp-sat{background-image:-webkit-gradient(linear,0 0,100% 0,from(#fff),to(rgba(204,154,129,0)));background-image:-webkit-linear-gradient(left,#fff,rgba(204,154,129,0));background-image:-moz-linear-gradient(left,#fff,rgba(204,154,129,0));background-image:-o-linear-gradient(left,#fff,rgba(204,154,129,0));background-image:-ms-linear-gradient(left,#fff,rgba(204,154,129,0));background-image:linear-gradient(to right,#fff,rgba(204,154,129,0));-ms-filter:"progid:DXImageTransform.Microsoft.gradient(GradientType = 1, startColorstr=#FFFFFFFF, endColorstr=#00CC9A81)";filter:progid:DXImageTransform.Microsoft.gradient(GradientType=1, startColorstr='#FFFFFFFF', endColorstr='#00CC9A81')}.n2-sp-val{background-image:-webkit-gradient(linear,0 100%,0 0,from(#000),to(rgba(204,154,129,0)));background-image:-webkit-linear-gradient(bottom,#000,rgba(204,154,129,0));background-image:-moz-linear-gradient(bottom,#000,rgba(204,154,129,0));background-image:-o-linear-gradient(bottom,#000,rgba(204,154,129,0));background-image:-ms-linear-gradient(bottom,#000,rgba(204,154,129,0));background-image:linear-gradient(to top,#000,rgba(204,154,129,0));-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr=#00CC9A81, endColorstr=#FF000000)";filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00CC9A81', endColorstr='#FF000000')}.n2-sp-hue{background:-moz-linear-gradient(top,red 0%,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%);background:-ms-linear-gradient(top,red 0%,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%);background:-o-linear-gradient(top,red 0%,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%);background:-webkit-gradient(linear,left top,left bottom,from(red),color-stop(.17,#ff0),color-stop(.33,#0f0),color-stop(.5,#0ff),color-stop(.67,#00f),color-stop(.83,#f0f),to(red));background:-webkit-linear-gradient(top,red 0%,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}.n2-sp-1{height:17%;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0000', endColorstr='#ffff00')}.n2-sp-2{height:16%;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffff00', endColorstr='#00ff00')}.n2-sp-3{height:17%;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00ff00', endColorstr='#00ffff')}.n2-sp-4{height:17%;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00ffff', endColorstr='#0000ff')}.n2-sp-5{height:16%;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#0000ff', endColorstr='#ff00ff')}.n2-sp-6{height:17%;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff00ff', endColorstr='#ff0000')}.n2-sp-cf:after,.n2-sp-cf:before{content:"";display:table}.n2-sp-cf:after{clear:both}.n2-sp-cf{*zoom:1}@media (max-device-width:480px){.n2-sp-color{right:40%}.n2-sp-hue{left:63%}.n2-sp-fill{padding-top:60%}}.n2-sp-dragger,.n2-sp-slider{position:absolute;top:0;cursor:pointer;background:#fff;box-shadow:0 0 0 1px RGBA(0,0,0,.4)}.n2-sp-dragger{width:12px;transform:translateX(6px) translateY(6px);border-radius:12px;height:12px;left:0}.n2-sp-slider{height:6px;left:-2px;right:-2px;border-radius:2px;transform:translateY(3px)}.n2-sp-container{border-radius:3px;background-color:#fff;padding:0;border:2px solid #b9c3c9}.n2-sp-color,.n2-sp-container,.n2-sp-container button,.n2-sp-container input,.n2-sp-hue{font:12px "Lucida Grande","Lucida Sans Unicode","Lucida Sans",Geneva,Verdana,sans-serif;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box}.n2-sp-top{margin-bottom:3px}.n2-sp-input-container{float:right;width:100px;margin-bottom:4px}.n2-sp-initial-disabled .n2-sp-input-container{width:100%}.n2-sp-input{font-size:12px!important;border:1px inset;padding:4px 5px;margin:0;width:100%;background:0 0;border-radius:3px;color:#222}.n2-sp-input:focus{border:1px solid orange}.n2-sp-input.n2-sp-validation-error{border:1px solid red;background:#fdd}.n2-sp-palette-container,.n2-sp-picker-container{float:left;position:relative;padding:10px 10px 300px;margin-bottom:-295px}.n2-sp-picker-container{width:172px}.n2-sp-palette-container{border-right:solid 1px #ccc}.n2-sp-palette-row{float:left}.n2-sp-palette-row-selection{border-left:1px solid rgba(0,0,0,.2);margin-left:7px;padding-left:5px}.n2-sp-palette .n2-sp-thumb-el{display:block;position:relative;clear:left;float:left;cursor:pointer}.n2-sp-palette .n2-sp-thumb-el.n2-sp-thumb-active,.n2-sp-palette .n2-sp-thumb-el:hover{border-color:orange}.n2-sp-initial{float:left;border:solid 1px #333}.n2-sp-initial span{width:30px;height:25px;border:none;display:block;float:left;margin:0}.n2-sp-button-container{float:right}.n2-sp-replacer{margin:0;overflow:hidden;cursor:pointer;padding:2px;border-radius:3px;display:inline-block;*zoom:1;*display:inline;color:#333;vertical-align:top}.n2-sp-replacer.n2-sp-active,.n2-sp-replacer:hover{border-color:#d8d8d8;color:#111}.n2-sp-replacer.n2-sp-disabled{cursor:default;border-color:silver;color:silver}.n2-sp-dd{display:none;height:8px;line-height:8px;width:8px;background-color:#d8d8d8;font-size:7px;margin:13px 0 0 -9px;position:relative;-webkit-border-top-left-radius:3px;-moz-border-radius-topleft:3px;border-top-left-radius:3px;float:left;text-align:center}.n2-sp-preview{width:20px;height:20px;border-radius:3px;float:left;z-index:0;overflow:hidden}.n2-sp-palette{*width:220px;max-width:220px}.n2-sp-palette .n2-sp-thumb-el{width:20px;height:20px;margin:4px;border:0}.n2-sp-palette .n2-sp-thumb-inner{width:20px;height:20px}.n2-sp-container{padding-bottom:0}.n2-sp-container button{background-color:#eee;background-image:-webkit-linear-gradient(top,#eee,#ccc);background-image:-moz-linear-gradient(top,#eee,#ccc);background-image:-o-linear-gradient(top,#eee,#ccc);background-image:-ms-linear-gradient(top,#eee,#ccc);background-image:linear-gradient(to bottom,#eee,#ccc);border:1px solid #ccc;border-bottom:1px solid #bbb;border-radius:3px;color:#333;font-size:14px;line-height:1;padding:5px 4px;text-align:center;text-shadow:0 1px 0 #eee;vertical-align:middle}.n2-sp-container button:hover{background-color:#ddd;background-image:-webkit-linear-gradient(top,#ddd,#bbb);background-image:-moz-linear-gradient(top,#ddd,#bbb);background-image:-o-linear-gradient(top,#ddd,#bbb);background-image:-ms-linear-gradient(top,#ddd,#bbb);background-image:linear-gradient(to bottom,#ddd,#bbb);border:1px solid #bbb;border-bottom:1px solid #999;cursor:pointer;text-shadow:0 1px 0 #ddd}.n2-sp-container button:active{border:1px solid #aaa;border-bottom:1px solid #888;-webkit-box-shadow:inset 0 0 5px 2px #aaa,0 1px 0 0 #eee;-moz-box-shadow:inset 0 0 5px 2px #aaa,0 1px 0 0 #eee;-ms-box-shadow:inset 0 0 5px 2px #aaa,0 1px 0 0 #eee;-o-box-shadow:inset 0 0 5px 2px #aaa,0 1px 0 0 #eee;box-shadow:inset 0 0 5px 2px #aaa,0 1px 0 0 #eee}.n2-sp-cancel{font-size:11px;color:#d93f3f!important;padding:2px;margin:0 5px 0 0;vertical-align:middle;text-decoration:none}.n2-sp-cancel:hover{color:#d93f3f!important;text-decoration:underline}.n2-sp-palette span.n2-sp-thumb-active,.n2-sp-palette span:hover{border-color:rgba(0,0,0,.5)}.n2-sp-alpha,.n2-sp-preview,.n2-sp-thumb-el{position:relative;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==)}.n2-sp-alpha-inner,.n2-sp-preview-inner,.n2-sp-thumb-inner{display:block;position:absolute;top:0;left:0;bottom:0;right:0}.n2-sp-thumb-inner{border-radius:3px}.n2-sp-preview-inner,.n2-sp-thumb-inner{border:solid 1px RGBA(0,0,0,.2)}.n2-sp-palette .n2-sp-thumb-inner{background-position:50% 50%;background-repeat:no-repeat}.n2-sp-palette .n2-sp-thumb-light.n2-sp-thumb-active .n2-sp-thumb-inner{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAIVJREFUeNpiYBhsgJFMffxAXABlN5JruT4Q3wfi/0DsT64h8UD8HmpIPCWG/KemIfOJCUB+Aoacx6EGBZyHBqI+WsDCwuQ9mhxeg2A210Ntfo8klk9sOMijaURm7yc1UP2RNCMbKE9ODK1HM6iegYLkfx8pligC9lCD7KmRof0ZhjQACDAAceovrtpVBRkAAAAASUVORK5CYII=)}.n2-sp-palette .n2-sp-thumb-dark.n2-sp-thumb-active .n2-sp-thumb-inner{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjEwMPRyoQAAAMdJREFUOE+tkgsNwzAMRMugEAahEAahEAZhEAqlEAZhEAohEAYh81X2dIm8fKpEspLGvudPOsUYpxE2BIJCroJmEW9qJ+MKaBFhEMNabSy9oIcIPwrB+afvAUFoK4H0tMaQ3XtlrggDhOVVMuT4E5MMG0FBbCEYzjYT7OxLEvIHQLY2zWwQ3D+9luyOQTfKDiFD3iUIfPk8VqrKjgAiSfGFPecrg6HN6m/iBcwiDAo7WiBeawa+Kwh7tZoSCGLMqwlSAzVDhoK+6vH4G0P5wdkAAAAASUVORK5CYII=)}.n2-vt{vertical-align:top}.n2-vm{vertical-align:middle}.n2-radius-s{-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.n2-radius-m{-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}.n2-radius-l{-webkit-border-radius:500px;-moz-border-radius:500px;border-radius:500px}.n2-tooltip{position:absolute;left:-10000px;top:-10000px;margin-top:-9000000px;opacity:0;z-index:100000;border-radius:3px;line-height:16px;padding:4px 6px;color:#fff;font-size:10px;background:RGBA(32,41,52,.95)}.n2-tooltip.n2-active{opacity:1;margin:10px}.n2-position-display-active .n2-tooltip{display:none}.n2-button{display:inline-block;text-align:center;cursor:pointer}.n2-button,.n2-button-inner,.n2-button-inner:ACTIVE,.n2-button-inner:FOCUS,.n2-button-inner:LINK,.n2-button-inner:VISITED,.n2-button:ACTIVE,.n2-button:FOCUS,.n2-button:LINK,.n2-button:VISITED{color:#fff;text-decoration:none}.n2-button-darker,.n2-button-darker:ACTIVE,.n2-button-darker:FOCUS,.n2-button-darker:LINK,.n2-button-darker:VISITED{color:#b2bfc9}.n2-button-wide{display:block;margin:10px 20px}.n2-button-icon{font-size:16px}.n2-button-icon.n2-h32{font-size:32px}.n2-button-with-actions{position:relative}.n2-button-with-actions .n2-button-inner{display:inline-block;height:100%;padding:0 20px;line-height:inherit}.n2-button-with-actions .n2-button-menu-open{position:relative;width:36px;height:100%;display:inline-block;vertical-align:top;background:RGBA(0,0,0,.1);border-left:1px solid RGBA(0,0,0,.1)}.n2-button-menu-open .n2-button-menu{display:none;position:absolute;right:0;top:36px;z-index:3}html[dir=rtl] .n2-button-menu-open .n2-button-menu{right:auto;left:0}.n2-button-menu-inner{margin-top:5px;box-shadow:0 0 5px 0 RGBA(0,0,0,.3);padding:5px 0;background-color:#fff;border-radius:5px}.n2-box-generator .n2-button-menu-inner{max-height:150px;overflow-y:auto;overflow-x:hidden}.n2-button-menu-open.n2-active .n2-button-menu{display:block}.n2-button-xs{height:18px;line-height:18px}.n2-button-xs.n2-button-normal{padding:0 5px}.n2-button-s{height:24px;line-height:24px}.n2-button-s.n2-button-normal,.n2-button-s.n2-button-with-actions .n2-button-inner{padding:0 10px}.n2-button-s .n2-button-menu-open{width:25px}.n2-button-s .n2-button-menu-open .n2-button-menu{top:24px}.n2-button-s.n2-button-icon{width:24px}.n2-button-m{height:28px;line-height:28px}.n2-button-m.n2-button-normal{padding:0 10px}.n2-button-m.n2-button-with-actions .n2-button-inner{padding:0 16px}.n2-button-m .n2-button-menu-open,.n2-button-m.n2-button-icon{width:28px}.n2-button-m .n2-button-menu-open .n2-button-menu{top:28px}.n2-button-m-narrow.n2-button-icon{width:20px}.n2-button-l{height:36px;line-height:36px}.n2-button-l.n2-button-normal{padding:0 15px;min-width:70px}.n2-button-l.n2-button-icon{width:36px}.n2-button-xl{height:50px;line-height:50px}.n2-button-xl,.n2-button-xl.n2-button-normal{padding:0 44px}.n2-button-grey{background:#6b7986}.n2-button-blue,.n2-button-blue-active.n2-active{background:#0c92df}.n2-button-green{background:#51b82d}.n2-button-red{background:#c54633}.n2-button-purple{background:#5f39c2}.n2-button-menu a{display:block;text-align:left;color:#7b8898;line-height:30px;padding:0 20px;white-space:nowrap}.n2-button-menu a:active,.n2-button-menu a:focus,.n2-button-menu a:hover{color:#7b8898}.n2-button-menu a:HOVER{background:#e9edf0}.n2-button-menu a.n2-separator{border-bottom:2px solid #ccd1d6}.n2-button-plain{background:0 0!important;color:#7b8898;height:26px;line-height:26px}.n2-button-plain .n2-button-inner{color:#7b8898;padding:0 5px!important}.n2-button-plain.n2-button-with-actions .n2-button-menu-open{border-left:0;background:0 0}.n2-button-plain .n2-button-inner:active,.n2-button-plain .n2-button-inner:focus,.n2-button-plain .n2-button-inner:link,.n2-button-plain .n2-button-inner:visited,.n2-button-plain:active,.n2-button-plain:focus,.n2-button-plain:link,.n2-button-plain:visited{color:#7b8898}.n2-button-plain.n2-button-with-actions .n2-button-menu-open{width:16px}.n2-button-plain.n2-button-with-actions .n2-button-menu-open .n2-button-menu{top:20px}.n2-button-with-icon{border:2px solid #e0e6ed;color:#6b7989;margin:5px;padding:0 10px}.n2-button-with-icon:ACTIVE,.n2-button-with-icon:FOCUS,.n2-button-with-icon:LINK,.n2-button-with-icon:VISITED{color:#6b7989}.n2-color-red,.n2-color-red.n2-button-plain:visited,.n2-color-red:active,.n2-color-red:focus,.n2-color-red:link{color:#c44e3d!important}.n2-color-blue,.n2-color-blue.n2-button-plain:visited,.n2-color-blue:active,.n2-color-blue:focus,.n2-color-blue:link{color:#0c92df!important}.n2-definition-list,.n2-list{margin:0;padding:0}.n2-definition-list dt{position:relative;line-height:59px;height:59px;background:#303b47;border-bottom:1px solid RGBA(0,0,0,.2);overflow:hidden}.n2-definition-list dt>a{display:block;padding:0 20px;color:#b2bfc9}.n2-definition-list dt>a .n2-i{margin-right:10px;vertical-align:middle;font-size:32px}html[dir=rtl] .n2-definition-list dt>a .n2-i{margin-right:0;margin-left:10px}.n2-definition-list dt .n2-id{display:block;width:70px;position:absolute;left:0;bottom:5px;text-align:center;line-height:11px;color:#8b99a6}.n2-definition-list dt>.n2-actions{display:block;position:absolute;top:0;right:0;background-color:#303b47;font-size:16px;line-height:16px;padding:22px 20px 0}.n2-definition-list dt.n2-open>.n2-actions{background-color:#3c4958}.n2-definition-list dt>.n2-actions a{display:inline-block;padding:0 5px}.n2-definition-list dt>.n2-actions a .n2-i,.n2-list li .n2-actions>* .n2-i{vertical-align:middle}html[dir=rtl] .n2-definition-list dt>.n2-actions,html[dir=rtl] .n2-list li>.n2-actions{right:auto;left:0}.n2-definition-list dd{margin:0}.n2-list li,.n2-list li>a{color:#b2bfc9;display:block}.n2-list li{position:relative;margin:0;line-height:39px;background-color:#303b47;border-bottom:1px solid RGBA(0,0,0,.2)}.n2-list li>a{padding:0 20px}.n2-list li>a .n2-i{vertical-align:middle;padding:7px;margin-left:-7px;font-size:16px}.n2-list li.n2-active{background:#1681c1}.n2-list li.n2-active>a{color:#fff;vertical-align:middle}.n2-list .n2-list-checkbox.n2-active .n2-i,.n2-list li.n2-active>.n2-actions .n2-i{color:#fff}.n2-list li .n2-actions{position:absolute;top:0;right:0;padding:2px 3px 0;line-height:24px}.n2-list li .n2-actions-left>*,.n2-list li .n2-actions>*{display:inline-block;margin:0 2px}.n2-list li.n2-button-container{padding:22px 20px}.n2-list .n2-list-checkbox{display:inline-block;width:16px;height:16px;background:#343f4c;vertical-align:top;border:2px solid #212d3a;border-radius:2px;line-height:16px;margin:10px 10px 0 0}.n2-list .n2-list-checkbox .n2-i{color:#343f4c;font-size:16px;margin:0;padding:0;vertical-align:top}.n2-list .n2-list-checkbox.n2-active{background:#6fbc49;border-color:#6fbc49}.n2-box{float:left;display:inline-block;position:relative;width:270px;height:180px;margin:15px;border-radius:3px;background-color:#212d3a;background-size:cover;background-position:50% 50%;opacity:1;transition:opacity .6s;box-shadow:0 0 5px RGBA(0,0,0,.05)}.n2-box.n2-active{box-shadow:0 0 0 3px #0c92df}.n2-ss-box-just-added{opacity:0}.n2-box-small{width:200px;height:135px;margin:10px}.n2-box.ui-sortable-helper{transform:scale(.8);opacity:.8}.n2-box-sortable-placeholder{height:200px;margin:5px 0;width:0;box-shadow:0 0 0 2px #0c92df;float:left;display:inline-block}.n2-box-sortable-placeholder-small{height:145px}.n2-box img{position:absolute;clip:rect(0,270px,180px,0);border-radius:3px;width:100%}.n2-box-small img{clip:rect(0,200px,95px,0)}.n2-box .n2-box-overlay{position:absolute;left:0;top:0;z-index:3;width:100%;height:100%;background-color:rgba(32,41,52,.9);text-align:center;line-height:130px;border-radius:3px}.n2-box-small .n2-box-overlay{line-height:100px}.n2-box-overlay .n2-button{line-height:28px;height:28px}.n2-box .n2-box-placeholder{position:absolute;left:0;bottom:0;height:50px;background:#fff;background:#212d3a;border-bottom-left-radius:3px;border-bottom-right-radius:3px;width:100%;z-index:9;display:flex;justify-content:space-between}.n2-box-small .n2-box-placeholder{height:40px}.n2-box-placeholder>*{margin:auto 0}.n2-box-placeholder-title{margin:auto 10px;overflow:hidden;max-height:100%}.n2-box-placeholder-buttons{white-space:nowrap;margin:auto 10px}.n2-box-placeholder-button{text-align:center;margin:auto}.n2-box-placeholder-title,.n2-box-placeholder-title a{color:#cedae2;line-height:16px}.n2-box-small .n2-box-placeholder-title,.n2-box-small .n2-box-placeholder-title a{line-height:20px}.n2-box .n2-box-lt{position:absolute;left:5px;top:5px;width:50%;text-align:left;z-index:4}.n2-box .n2-box-rt{position:absolute;right:5px;top:5px;width:50%;text-align:right}.n2-box .n2-box-lb{position:absolute;left:5px;bottom:55px;width:50%}.n2-box-small .n2-box-lb{bottom:45px}.n2-box .n2-box-lb>*{white-space:nowrap}.n2-box .n2-box-rb{position:absolute;right:5px;bottom:55px;text-align:right}.n2-box-small .n2-box-rb{bottom:45px}.n2-box .n2-box-center{position:absolute;left:0;top:74px;width:100%;text-align:center;z-index:4}.n2-box>.n2-on-hover{display:none}.n2-box:HOVER>.n2-on-hover{display:block}.n2-ss-box-select{display:none;border-radius:3px;border:2px solid #8793a2;width:16px;height:16px;text-align:center}.n2-box:HOVER .n2-ss-box-select{display:block}.n2-box.n2-selected .n2-ss-box-select{display:block;border-color:#1999e3;background-color:#1999e3}.n2-box.n2-selected .n2-ss-box-select .n2-i{display:inline-block;color:#fff;font-size:16px;line-height:16px;margin:0 -2px}.n2-bulk-select{margin:0 10px}.n2-box .n2-ss-box-select .n2-i,.n2-bulk-actions{display:none}.n2-ss-has-box-selection .n2-heading-actions{visibility:hidden}.n2-ss-has-box-selection .n2-bulk-actions{display:inline-block}.n2-ss-has-box-selection .n2-box-selectable{opacity:.5}.n2-ss-has-box-selection .n2-box-selectable.n2-selected{opacity:1}.n2-ss-has-box-selection .n2-ss-box-select{display:inline-block}.n2-box-menu{display:none;z-index:9}.n2-box-menu.n2-inited{display:inline-block;position:absolute;top:5px;right:5px;text-align:right}.n2-box-menu .n2-button{float:right}.n2-box-menu .n2-box-menu-content{display:none}.n2-box-menu.n2-active .n2-box-menu-content{margin-top:3px;display:block;clear:both;float:right;background:#fff;border-radius:5px;line-height:30px;text-align:left;box-shadow:0 0 5px 0 RGBA(0,0,0,.3);padding:5px 0;white-space:nowrap}.n2-box-menu.n2-active .n2-box-menu-content ul{margin:0;list-style-type:none}.n2-box-menu.n2-active .n2-box-menu-content li{padding:0 20px;margin:0;color:#7b8898;line-height:30px}.n2-box-menu.n2-active .n2-box-menu-content li:HOVER{background-color:#e9edf0}.n2-box-menu.n2-active .n2-box-menu-content li.n2-ss-delete{color:#c44e3d}.n2-box-full>a{width:100%;height:180px;padding:0}.n2-box-full>a:before{display:block;font-family:'Nextend'!important;font-size:74px;line-height:90px;content:"\e952";margin-top:35px}.n2-box-promo{background:0 0}.n2-box-promo-light{background:#fff}.n2-box-promo-overlay,.n2-box-promo-overlay:FOCUS,.n2-box-promo-overlay:HOVER,.n2-box-promo-overlay:VISITED{position:absolute;display:block;width:100%;height:100%;color:#fff;text-align:center}.n2-box-promo .n2-close{position:absolute;right:10px;top:10px;cursor:pointer;display:none;z-index:3}.n2-box-promo:hover .n2-close{display:block}.n2-box-promo .n2-close:before{font-family:'Nextend'!important;content:"\e90a";font-size:16px}.n2-box-promo-light .n2-close:before{color:#7b8898}.n2-box-promo-dark .n2-close:before{color:#fff}.n2-box-promo span{display:block;position:absolute;bottom:50px;width:100%;line-height:23px;text-align:center;font-size:12px}.n2-box-promo-light span{color:#7b8898}.n2-box-promo-dark span{color:#eff7fb}.n2-box-promo-buttons{position:absolute;bottom:17px;width:100%;text-align:center}.n2-box-promo-buttons .n2-button+.n2-button{margin-left:20px}.n2-box-review{text-align:center}.n2-box-review-bigstar{width:170px;height:105px;margin:0 auto;background-image:url(../images/stars-big.png)}[data-stars="1"] .n2-box-review-bigstar{background-position:0 -105px}[data-stars="2"] .n2-box-review-bigstar{background-position:0 -210px}[data-stars="3"] .n2-box-review-bigstar{background-position:0 -315px}[data-stars="4"] .n2-box-review-bigstar{background-position:0 -420px}[data-stars="5"] .n2-box-review-bigstar{background-position:0 -525px}.n2-box-review-label{color:#7b8898;font-size:15px;line-height:22px;height:22px;overflow:hidden;display:none}[data-stars="0"] .n2-box-review-label[data-star="0"],[data-stars="1"] .n2-box-review-label[data-star="1"],[data-stars="2"] .n2-box-review-label[data-star="2"],[data-stars="3"] .n2-box-review-label[data-star="3"],[data-stars="4"] .n2-box-review-label[data-star="4"],[data-stars="5"] .n2-box-review-label[data-star="5"]{display:block}.n2-box-review-stars-container{width:170px;height:34px;margin:0 auto}.n2-box-review-star{cursor:pointer;transition:transform .4s;vertical-align:top;float:left;width:34px;height:34px;background-image:url(../images/stars-small.png)}[data-stars="1"] .n2-box-review-star[data-star="1"],[data-stars="2"] .n2-box-review-star[data-star="1"],[data-stars="2"] .n2-box-review-star[data-star="2"],[data-stars="3"] .n2-box-review-star[data-star="1"],[data-stars="3"] .n2-box-review-star[data-star="2"],[data-stars="3"] .n2-box-review-star[data-star="3"],[data-stars="4"] .n2-box-review-star[data-star="1"],[data-stars="4"] .n2-box-review-star[data-star="2"],[data-stars="4"] .n2-box-review-star[data-star="3"],[data-stars="4"] .n2-box-review-star[data-star="4"],[data-stars="5"] .n2-box-review-star[data-star="1"],[data-stars="5"] .n2-box-review-star[data-star="2"],[data-stars="5"] .n2-box-review-star[data-star="3"],[data-stars="5"] .n2-box-review-star[data-star="4"],[data-stars="5"] .n2-box-review-star[data-star="5"]{background-position:0 -34px;transform:scale(1.3)}.n2-modal-review-star-5{width:560px;height:241px;background:url(../images/star-5.png)}.n2-modal-review-details{font-size:14px;line-height:28px;color:#7b8898;text-align:center}.nextend-tab-tabbed{width:100%;overflow:hidden}.nextend-tab-tabbed .nextend-tab-tabbed-panes{-webkit-transition:all 400ms ease-in-out;-moz-transition:all 400ms ease-in-out;-ms-transition:all 400ms ease-in-out;-o-transition:all 400ms ease-in-out;transition:all 400ms ease-in-out}.nextend-tab-tabbed .nextend-tab-tabbed-pane{float:left}.xdsoft_datetimepicker{background:#fff;border-radius:5px;border:2px solid #a1aeb5;color:#333;padding:2px 8px 8px 0;position:absolute;z-index:9999;-moz-box-sizing:border-box;box-sizing:border-box;display:none}.xdsoft_datetimepicker iframe{position:absolute;left:0;top:0;width:75px;height:210px;background:0 0;border:none}.xdsoft_datetimepicker button{border:none!important}.xdsoft_noselect{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.xdsoft_noselect::selection{background:0 0}.xdsoft_noselect::-moz-selection{background:0 0}.xdsoft_datetimepicker.xdsoft_inline{display:inline-block;position:static}.xdsoft_datetimepicker *{-moz-box-sizing:border-box;box-sizing:border-box;padding:0;margin:0}.xdsoft_datetimepicker .xdsoft_datepicker,.xdsoft_datetimepicker .xdsoft_timepicker{display:none}.xdsoft_datetimepicker .xdsoft_datepicker.active,.xdsoft_datetimepicker .xdsoft_timepicker.active{display:block}.xdsoft_datetimepicker .xdsoft_datepicker{width:224px;float:left;margin-left:8px}.xdsoft_datetimepicker.xdsoft_showweeks .xdsoft_datepicker{width:256px}.xdsoft_datetimepicker .xdsoft_timepicker{width:58px;float:left;text-align:center;margin-left:8px;margin-top:0}.xdsoft_datetimepicker .xdsoft_datepicker.active+.xdsoft_timepicker{margin-top:8px;margin-bottom:3px}.xdsoft_datetimepicker .xdsoft_mounthpicker{position:relative;text-align:center}.xdsoft_datetimepicker .xdsoft_label i,.xdsoft_datetimepicker .xdsoft_next,.xdsoft_datetimepicker .xdsoft_prev,.xdsoft_datetimepicker .xdsoft_today_button{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAAeCAYAAADaW7vzAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6Q0NBRjI1NjM0M0UwMTFFNDk4NkFGMzJFQkQzQjEwRUIiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6Q0NBRjI1NjQ0M0UwMTFFNDk4NkFGMzJFQkQzQjEwRUIiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpDQ0FGMjU2MTQzRTAxMUU0OTg2QUYzMkVCRDNCMTBFQiIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpDQ0FGMjU2MjQzRTAxMUU0OTg2QUYzMkVCRDNCMTBFQiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PoNEP54AAAIOSURBVHja7Jq9TsMwEMcxrZD4WpBYeKUCe+kTMCACHZh4BFfHO/AAIHZGFhYkBBsSEqxsLCAgXKhbXYOTxh9pfJVP+qutnZ5s/5Lz2Y5I03QhWji2GIcgAokWgfCxNvcOCCGKqiSqhUp0laHOne05vdEyGMfkdxJDVjgwDlEQgYQBgx+ULJaWSXXS6r/ER5FBVR8VfGftTKcITNs+a1XpcFoExREIDF14AVIFxgQUS+h520cdud6wNkC0UBw6BCO/HoCYwBhD8QCkQ/x1mwDyD4plh4D6DDV0TAGyo4HcawLIBBSLDkHeH0Mg2yVP3l4TQMZQDDsEOl/MgHQqhMNuE0D+oBh0CIr8MAKyazBH9WyBuKxDWgbXfjNf32TZ1KWm/Ap1oSk/R53UtQ5xTh3LUlMmT8gt6g51Q9p+SobxgJQ/qmsfZhWywGFSl0yBjCLJCMgXail3b7+rumdVJ2YRss4cN+r6qAHDkPWjPjdJCF4n9RmAD/V9A/Wp4NQassDjwlB6XBiCxcJQWmZZb8THFilfy/lfrTvLghq2TqTHrRMTKNJ0sIhdo15RT+RpyWwFdY96UZ/LdQKBGjcXpcc1AlSFEfLmouD+1knuxBDUVrvOBmoOC/rEcN7OQxKVeJTCiAdUzUJhA2Oez9QTkp72OTVcxDcXY8iKNkxGAJXmJCOQwOa6dhyXsOa6XwEGAKdeb5ET3rQdAAAAAElFTkSuQmCC)}.xdsoft_datetimepicker .xdsoft_label i{opacity:.5;background-position:-92px -19px;display:inline-block;width:9px;height:20px;vertical-align:middle}.xdsoft_datetimepicker .xdsoft_prev{float:left;background-position:-20px 0}.xdsoft_datetimepicker .xdsoft_today_button{float:left;background-position:-70px 0;margin-left:5px}.xdsoft_datetimepicker .xdsoft_next{float:right;background-position:0 0}.xdsoft_datetimepicker .xdsoft_next,.xdsoft_datetimepicker .xdsoft_prev,.xdsoft_datetimepicker .xdsoft_today_button{background-color:transparent;background-repeat:no-repeat;border:0 none currentColor;cursor:pointer;display:block;height:30px;opacity:.5;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";outline:medium none currentColor;overflow:hidden;padding:0;position:relative;text-indent:100%;white-space:nowrap;width:20px}.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_next,.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_prev{float:none;height:15px;width:30px;display:block;margin-left:14px}.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_next{background-position:-40px -15px;margin-top:7px}.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_prev{background-position:-40px 0;margin-bottom:7px;margin-top:0}.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box{height:151px;overflow:hidden;border-bottom:1px solid #ddd}.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box>div>div{background:#f9fafb;border-top:1px solid #dee1e5;color:#7b8898;font-size:12px;text-align:center;border-collapse:collapse;cursor:pointer;border-bottom-width:0;height:25px;line-height:25px}.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box>div>div:first-child{border-top-width:0}.xdsoft_datetimepicker .xdsoft_next:hover,.xdsoft_datetimepicker .xdsoft_prev:hover,.xdsoft_datetimepicker .xdsoft_today_button:hover{opacity:1;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"}.xdsoft_datetimepicker .xdsoft_label{display:inline;position:relative;z-index:9999;margin:0;padding:5px 3px;font-size:14px;line-height:20px;background-color:#fff;float:left;width:182px;text-align:center;cursor:pointer;color:#6b7989}.xdsoft_datetimepicker .xdsoft_label:hover i{opacity:1}.xdsoft_datetimepicker .xdsoft_label>.xdsoft_select{border:2px solid #a1aeb5;border-radius:3px;position:absolute;right:0;top:30px;z-index:101;display:none;background:#fff;max-height:160px;overflow-y:hidden}.xdsoft_datetimepicker .xdsoft_label>.xdsoft_select.xdsoft_monthselect{right:-7px}.xdsoft_datetimepicker .xdsoft_label>.xdsoft_select.xdsoft_yearselect{right:2px}.xdsoft_datetimepicker .xdsoft_label>.xdsoft_select>div>.xdsoft_option:hover{color:#fff;background:#51b82d}.xdsoft_datetimepicker .xdsoft_label>.xdsoft_select>div>.xdsoft_option{padding:2px 13px 2px 5px;text-decoration:none!important}.xdsoft_datetimepicker .xdsoft_label>.xdsoft_select>div>.xdsoft_option.xdsoft_current{background:#0c92df;color:#fff}.xdsoft_datetimepicker .xdsoft_month{width:100px;text-align:right}.xdsoft_datetimepicker .xdsoft_calendar{clear:both}.xdsoft_datetimepicker .xdsoft_year{width:48px;margin-left:5px}.xdsoft_datetimepicker .xdsoft_calendar table{border-collapse:collapse;width:100%}.xdsoft_datetimepicker .xdsoft_calendar td>div{padding-right:5px}.xdsoft_datetimepicker .xdsoft_calendar td,.xdsoft_datetimepicker .xdsoft_calendar th{width:14.2857142%;background:#f9fafb;border:1px solid #dee1e5;color:#7b8898;font-size:12px;text-align:right;vertical-align:middle;padding:0;border-collapse:collapse;cursor:pointer;height:25px}.xdsoft_datetimepicker .xdsoft_calendar th{background:#f2f5fa;text-align:center;color:#999;cursor:default;font-weight:400}.xdsoft_datetimepicker.xdsoft_showweeks .xdsoft_calendar td,.xdsoft_datetimepicker.xdsoft_showweeks .xdsoft_calendar th{width:12.5%}.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_today{color:#0c92df}.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current,.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_default,.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box>div>div.xdsoft_current{background:#0c92df;color:#fff}.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_disabled,.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_other_month,.xdsoft_datetimepicker .xdsoft_time_box>div>div.xdsoft_disabled{opacity:.5;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"}.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_other_month.xdsoft_disabled{opacity:.2;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=20)"}.xdsoft_datetimepicker .xdsoft_calendar td:hover,.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box>div>div:hover{color:#fff!important;background:#51b82d!important}.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_disabled:hover,.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box>div>div.xdsoft_disabled:hover{color:inherit!important;background:inherit!important}.xdsoft_datetimepicker .xdsoft_copyright{color:#ccc!important;font-size:10px;clear:both;float:none;margin-left:8px}.xdsoft_datetimepicker .xdsoft_copyright a{color:#eee!important}.xdsoft_datetimepicker .xdsoft_copyright a:hover{color:#aaa!important}.xdsoft_time_box{position:relative;border:1px solid #ccc}.xdsoft_scrollbar>.xdsoft_scroller{background:#ccc!important;height:20px;border-radius:3px}.xdsoft_scrollbar{position:absolute;width:7px;right:2px;top:0;bottom:0;cursor:pointer}.xdsoft_scroller_box{position:relative}
2
  /*!
3
  * jQuery UI Resizable 1.10.2
4
  * http://jqueryui.com
nextend/media/dist/nextend-frontend.js CHANGED
@@ -101,21 +101,23 @@ try {
101
  } catch (e) {
102
  }
103
 
104
- nextend.triggerResize = (function ($) {
105
- var delay = 100,
106
- timeout = null,
107
- $window = $(window);
108
-
109
- return function () {
110
- if (timeout) {
111
- clearTimeout(timeout);
112
- }
113
- timeout = setTimeout(function () {
114
- $window.trigger('resize');
115
- timeout = null;
116
- }, delay);
117
- };
118
- })(n2);
 
 
119
 
120
 
121
  nextend.shouldPreventClick = false;
101
  } catch (e) {
102
  }
103
 
104
+ window.n2jQuery.ready(function () {
105
+ nextend.triggerResize = (function ($) {
106
+ var delay = 100,
107
+ timeout = null,
108
+ $window = $(window);
109
+
110
+ return function () {
111
+ if (timeout) {
112
+ clearTimeout(timeout);
113
+ }
114
+ timeout = setTimeout(function () {
115
+ $window.trigger('resize');
116
+ timeout = null;
117
+ }, delay);
118
+ };
119
+ })(n2);
120
+ });
121
 
122
 
123
  nextend.shouldPreventClick = false;
nextend/media/dist/nextend-frontend.min.js CHANGED
@@ -1,3 +1,3 @@
1
- function N2EventBurrito(e,t){function n(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}function i(e,t,n,i){return t?(e.addEventListener?e.addEventListener(t,n,i):e.attachEvent("on"+t,n),{remove:function(){r(e,t,n,i)}}):void 0}function r(e,t,n,i){t&&(e.removeEventListener?e.removeEventListener(t,n,i):e.detachEvent("on"+t,n))}function o(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function a(e){if(P={x:(p?e.clientX:e.touches[0].clientX)-b.x,y:(p?e.clientY:e.touches[0].clientY)-b.y,time:Number(new Date)-b.time},P.time-m[m.length-1].time){for(var t=0;t<m.length-1&&P.time-m[t].time>80;t++);A={x:(P.x-m[t].x)/(P.time-m[t].time),y:(P.y-m[t].y)/(P.time-m[t].time)},m.length>=5&&m.shift(),m.push({x:P.x,y:P.y,time:P.time})}}function s(e,t){G=!0,p=t,g[p](e)||B(e.target)||(i(document,C[p][1],T,"touchmove"==C[p][1]?{passive:!1}:!1),i(document,C[p][2],l,!1),i(document,C[p][3],l,!1),h.preventDefault&&p&&o(e),b={x:p?e.clientX:e.touches[0].clientX,y:p?e.clientY:e.touches[0].clientY,time:Number(new Date)},S=void 0,d=!1,P={x:0,y:0,time:0},A={x:0,y:0},m=[{x:0,y:0,time:0}],h.start(e,b),T(e))}function T(e){"x"==h.axis&&(!h.preventScroll&&S||g[p](e))||B(e.target)||(a(e),(Math.abs(P.x)>h.clickTolerance||Math.abs(P.y)>h.clickTolerance)&&(G=!1),void 0===S&&3!==p&&(S=Math.abs(P.x)<Math.abs(P.y)&&!h.preventScroll)||h.move(e,b,P,A,d)&&h.preventDefault&&o(e))}function l(e){p&&a(e),!G&&e.target&&e.target.blur&&e.target.blur(),r(document,C[p][1],T,"touchmove"==C[p][1]?{passive:!1}:!1),r(document,C[p][2],l,!1),r(document,C[p][3],l,!1),h.end(e,b,P,A,d),d=!1}function u(){(!n2const.isIOS||n2const.IOSVersion<10)&&M.push(i(document,"scroll",function(e){d=!0})),M.push(i(e,C[v][0],function(e){s(e,v)})),M.push(i(e,"dragstart",o)),h.mouse&&!v&&M.push(i(e,C[3][0],function(e){s(e,3)})),M.push(i(e,"click",function(e){G?h.click(e):o(e)}))}var c=function(){return!0},h={preventDefault:!0,clickTolerance:0,preventScroll:!1,mouse:!0,axis:"x",start:c,move:c,end:c,click:c};t&&n(h,t);var S,d,p,f={pointerEvents:!!window.navigator.pointerEnabled,msPointerEvents:!!window.navigator.msPointerEnabled},b={},P={},A={},m=[],M=[],G=!0,v=f.pointerEvents?1:f.msPointerEvents?2:0,C=[["touchstart","touchmove","touchend","touchcancel"],["pointerdown","pointermove","pointerup","pointercancel"],["MSPointerDown","MSPointerMove","MSPointerUp","MSPointerCancel"],["mousedown","mousemove","mouseup",!1]],g=[function(e){return e.touches&&e.touches.length>1||e.scale&&1!==e.scale},function(e){return!e.isPrimary||e.buttons&&1!==e.buttons||!h.mouse&&"touch"!==e.pointerType&&"pen"!==e.pointerType},function(e){return!e.isPrimary||e.buttons&&1!==e.buttons||!h.mouse&&e.pointerType!==e.MSPOINTER_TYPE_TOUCH&&e.pointerType!==e.MSPOINTER_TYPE_PEN},function(e){return e.buttons&&1!==e.buttons}],B=function(e){var t=e.tagName;return!("INPUT"!=t&&"TEXTAREA"!=t&&"SELECT"!=t&&"BUTTON"!=t&&"VIDEO"!=t&&!n2(e).hasClass("n2-scrollable")&&!n2(e).closest(".n2-scrollable").length)};return u(),{getClicksAllowed:function(){return G},kill:function(){for(var e=M.length-1;e>=0;e--)M[e].remove()}}}if(window.n2c=function(e){var t=!1,n={logs:[],errors:[],warns:[],infos:[]};return{log:function(){n.logs.push(arguments),t&&e.log&&e.log.apply(e,arguments)},warn:function(){n.warns.push(arguments),t&&e.warn&&e.warn.apply(e,arguments)},error:function(){n.errors.push(arguments),t&&e.error&&e.error.apply(e,arguments)},info:function(i){n.infos.push(arguments),t&&e.info&&e.info.apply(e,arguments)},debug:function(e){t=e},logArray:function(){return n}}}(window.console),window.n2const={isIOS:/iPad|iPhone|iPod/.test(navigator.platform),isEdge:/Edge\/\d./i.test(navigator.userAgent),isFirefox:navigator.userAgent.toLowerCase().indexOf("firefox")>-1,isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Silk/i.test(navigator.userAgent),isPhone:/Android/i.test(navigator.userAgent)&&/mobile/i.test(navigator.userAgent)||/webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),isTablet:/Android|iPad|tablet|Silk/i.test(navigator.userAgent),isIE:function(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var n=e.indexOf("Trident/");if(n>0){var i=e.indexOf("rv:");return parseInt(e.substring(i+3,e.indexOf(".",i)),10)}var r=e.indexOf("Edge/");return r>0?parseInt(e.substring(r+5,e.indexOf(".",r)),10):!1}()},window.n2const.isIOS){var match=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);match?window.n2const.IOSVersion=match[1]:window.n2const.IOSVersion=100}window.n2const.isPhone&&(window.n2const.isTablet=!1),nextend.isRetina=function(){return window.matchMedia&&(window.matchMedia("only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx), only screen and (min-resolution: 75.6dpcm)").matches||window.matchMedia("only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2/1), only screen and (min--moz-device-pixel-ratio: 2), only screen and (min-device-pixel-ratio: 2)").matches)||window.devicePixelRatio&&window.devicePixelRatio>=2}(),String.prototype.capitalize=function(){return this.charAt(0).toUpperCase()+this.slice(1)},window.n2passiveEvents=!1;try{var opts=Object.defineProperty({},"passive",{get:function(){window.n2passiveEvents=!0}});window.addEventListener("test",null,opts)}catch(e){}nextend.triggerResize=function(e){var t=100,n=null,i=e(window);return function(){n&&clearTimeout(n),n=setTimeout(function(){i.trigger("resize"),n=null},t)}}(n2),nextend.shouldPreventClick=!1,nextend.preventClick=function(){nextend.shouldPreventClick||(nextend.shouldPreventClick=!0,setTimeout(function(){nextend.shouldPreventClick=!1},300))},nextend.shouldPreventMouseUp=!1,nextend.preventMouseUp=function(){nextend.shouldPreventMouseUp||(nextend.shouldPreventMouseUp=!0,setTimeout(function(){nextend.shouldPreventMouseUp=!1},300))};var isRtl=!1;"rtl"==document.documentElement.getAttribute("dir")?(isRtl=!0,nextend.rtl={isRtl:!0,marginLeft:"marginRight",marginRight:"marginLeft",left:"right",right:"left",next:"previous",previous:"next",modifier:-1}):(document.documentElement.setAttribute("dir","ltr"),nextend.rtl={isRtl:!1,marginLeft:"marginLeft",marginRight:"marginRight",left:"left",right:"right",next:"next",previous:"previous",modifier:1}),nextend.isRTL=function(){return isRtl},Array.prototype.filter||(Array.prototype.filter=function(e){"use strict";if(void 0===this||null===this)throw new TypeError;var t=Object(this),n=t.length>>>0;if("function"!=typeof e)throw new TypeError;for(var i=[],r=arguments[1],o=0;n>o;o++)if(o in t){var a=t[o];e.call(r,a,o,t)&&i.push(a)}return i}),"function"!=typeof Object.create&&(Object.create=function(){var e=function(){};return function(t){if(arguments.length>1)throw Error("Second argument not supported");if("object"!=typeof t)throw TypeError("Argument must be an object");e.prototype=t;var n=new e;return e.prototype=null,n}}()),window.Base64=function(){},Base64.prototype.encode=function(e){return Base64.encode(e)},Base64.prototype.decode=function(e){return Base64.decode(e)},Base64._keyStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Base64.encode=function(e){var t,n,i,r,o,a,s,T="",l=0;for(e=Base64._utf8_encode(e);l<e.length;)t=e.charCodeAt(l++),n=e.charCodeAt(l++),i=e.charCodeAt(l++),r=t>>2,o=(3&t)<<4|n>>4,a=(15&n)<<2|i>>6,s=63&i,isNaN(n)?a=s=64:isNaN(i)&&(s=64),T=T+this._keyStr.charAt(r)+this._keyStr.charAt(o)+this._keyStr.charAt(a)+this._keyStr.charAt(s);return T},Base64.decode=function(e){var t,n,i,r,o,a,s,T="",l=0;for(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");l<e.length;)r=this._keyStr.indexOf(e.charAt(l++)),o=this._keyStr.indexOf(e.charAt(l++)),a=this._keyStr.indexOf(e.charAt(l++)),s=this._keyStr.indexOf(e.charAt(l++)),t=r<<2|o>>4,n=(15&o)<<4|a>>2,i=(3&a)<<6|s,T+=String.fromCharCode(t),64!=a&&(T+=String.fromCharCode(n)),64!=s&&(T+=String.fromCharCode(i));return T=Base64._utf8_decode(T)},Base64._utf8_encode=function(e){e=e.replace(/\r\n/g,"\n");for(var t="",n=0;n<e.length;n++){var i=e.charCodeAt(n);128>i?t+=String.fromCharCode(i):i>127&&2048>i?(t+=String.fromCharCode(i>>6|192),t+=String.fromCharCode(63&i|128)):(t+=String.fromCharCode(i>>12|224),t+=String.fromCharCode(i>>6&63|128),t+=String.fromCharCode(63&i|128))}return t},Base64._utf8_decode=function(e){for(var t="",n=0,i=c1=c2=0;n<e.length;)i=e.charCodeAt(n),128>i?(t+=String.fromCharCode(i),n++):i>191&&224>i?(c2=e.charCodeAt(n+1),t+=String.fromCharCode((31&i)<<6|63&c2),n+=2):(c2=e.charCodeAt(n+1),c3=e.charCodeAt(n+2),t+=String.fromCharCode((15&i)<<12|(63&c2)<<6|63&c3),n+=3);return t},!function(e,t){e(function(){"use strict";function e(e,t){return null!=e&&null!=t&&e.toLowerCase()===t.toLowerCase()}function n(e,t){var n,i,r=e.length;if(!r||!t)return!1;for(n=t.toLowerCase(),i=0;r>i;++i)if(n===e[i].toLowerCase())return!0;return!1}function i(e){for(var t in e)s.call(e,t)&&(e[t]=new RegExp(e[t],"i"))}function r(e,t){this.ua=e||"",this._cache={},this.maxPhoneWidth=t||600}var o={};o.mobileDetectRules={phones:{iPhone:"\\biPhone\\b|\\biPod\\b",BlackBerry:"BlackBerry|\\bBB10\\b|rim[0-9]+",HTC:"HTC|HTC.*(Sensation|Evo|Vision|Explorer|6800|8100|8900|A7272|S510e|C110e|Legend|Desire|T8282)|APX515CKT|Qtek9090|APA9292KT|HD_mini|Sensation.*Z710e|PG86100|Z715e|Desire.*(A8181|HD)|ADR6200|ADR6400L|ADR6425|001HT|Inspire 4G|Android.*\\bEVO\\b|T-Mobile G1|Z520m",Nexus:"Nexus One|Nexus S|Galaxy.*Nexus|Android.*Nexus.*Mobile|Nexus 4|Nexus 5|Nexus 6",Dell:"Dell.*Streak|Dell.*Aero|Dell.*Venue|DELL.*Venue Pro|Dell Flash|Dell Smoke|Dell Mini 3iX|XCD28|XCD35|\\b001DL\\b|\\b101DL\\b|\\bGS01\\b",Motorola:"Motorola|DROIDX|DROID BIONIC|\\bDroid\\b.*Build|Android.*Xoom|HRI39|MOT-|A1260|A1680|A555|A853|A855|A953|A955|A956|Motorola.*ELECTRIFY|Motorola.*i1|i867|i940|MB200|MB300|MB501|MB502|MB508|MB511|MB520|MB525|MB526|MB611|MB612|MB632|MB810|MB855|MB860|MB861|MB865|MB870|ME501|ME502|ME511|ME525|ME600|ME632|ME722|ME811|ME860|ME863|ME865|MT620|MT710|MT716|MT720|MT810|MT870|MT917|Motorola.*TITANIUM|WX435|WX445|XT300|XT301|XT311|XT316|XT317|XT319|XT320|XT390|XT502|XT530|XT531|XT532|XT535|XT603|XT610|XT611|XT615|XT681|XT701|XT702|XT711|XT720|XT800|XT806|XT860|XT862|XT875|XT882|XT883|XT894|XT901|XT907|XT909|XT910|XT912|XT928|XT926|XT915|XT919|XT925|XT1021|\\bMoto E\\b",Samsung:"Samsung|SM-G9250|GT-19300|SGH-I337|BGT-S5230|GT-B2100|GT-B2700|GT-B2710|GT-B3210|GT-B3310|GT-B3410|GT-B3730|GT-B3740|GT-B5510|GT-B5512|GT-B5722|GT-B6520|GT-B7300|GT-B7320|GT-B7330|GT-B7350|GT-B7510|GT-B7722|GT-B7800|GT-C3010|GT-C3011|GT-C3060|GT-C3200|GT-C3212|GT-C3212I|GT-C3262|GT-C3222|GT-C3300|GT-C3300K|GT-C3303|GT-C3303K|GT-C3310|GT-C3322|GT-C3330|GT-C3350|GT-C3500|GT-C3510|GT-C3530|GT-C3630|GT-C3780|GT-C5010|GT-C5212|GT-C6620|GT-C6625|GT-C6712|GT-E1050|GT-E1070|GT-E1075|GT-E1080|GT-E1081|GT-E1085|GT-E1087|GT-E1100|GT-E1107|GT-E1110|GT-E1120|GT-E1125|GT-E1130|GT-E1160|GT-E1170|GT-E1175|GT-E1180|GT-E1182|GT-E1200|GT-E1210|GT-E1225|GT-E1230|GT-E1390|GT-E2100|GT-E2120|GT-E2121|GT-E2152|GT-E2220|GT-E2222|GT-E2230|GT-E2232|GT-E2250|GT-E2370|GT-E2550|GT-E2652|GT-E3210|GT-E3213|GT-I5500|GT-I5503|GT-I5700|GT-I5800|GT-I5801|GT-I6410|GT-I6420|GT-I7110|GT-I7410|GT-I7500|GT-I8000|GT-I8150|GT-I8160|GT-I8190|GT-I8320|GT-I8330|GT-I8350|GT-I8530|GT-I8700|GT-I8703|GT-I8910|GT-I9000|GT-I9001|GT-I9003|GT-I9010|GT-I9020|GT-I9023|GT-I9070|GT-I9082|GT-I9100|GT-I9103|GT-I9220|GT-I9250|GT-I9300|GT-I9305|GT-I9500|GT-I9505|GT-M3510|GT-M5650|GT-M7500|GT-M7600|GT-M7603|GT-M8800|GT-M8910|GT-N7000|GT-S3110|GT-S3310|GT-S3350|GT-S3353|GT-S3370|GT-S3650|GT-S3653|GT-S3770|GT-S3850|GT-S5210|GT-S5220|GT-S5229|GT-S5230|GT-S5233|GT-S5250|GT-S5253|GT-S5260|GT-S5263|GT-S5270|GT-S5300|GT-S5330|GT-S5350|GT-S5360|GT-S5363|GT-S5369|GT-S5380|GT-S5380D|GT-S5560|GT-S5570|GT-S5600|GT-S5603|GT-S5610|GT-S5620|GT-S5660|GT-S5670|GT-S5690|GT-S5750|GT-S5780|GT-S5830|GT-S5839|GT-S6102|GT-S6500|GT-S7070|GT-S7200|GT-S7220|GT-S7230|GT-S7233|GT-S7250|GT-S7500|GT-S7530|GT-S7550|GT-S7562|GT-S7710|GT-S8000|GT-S8003|GT-S8500|GT-S8530|GT-S8600|SCH-A310|SCH-A530|SCH-A570|SCH-A610|SCH-A630|SCH-A650|SCH-A790|SCH-A795|SCH-A850|SCH-A870|SCH-A890|SCH-A930|SCH-A950|SCH-A970|SCH-A990|SCH-I100|SCH-I110|SCH-I400|SCH-I405|SCH-I500|SCH-I510|SCH-I515|SCH-I600|SCH-I730|SCH-I760|SCH-I770|SCH-I830|SCH-I910|SCH-I920|SCH-I959|SCH-LC11|SCH-N150|SCH-N300|SCH-R100|SCH-R300|SCH-R351|SCH-R400|SCH-R410|SCH-T300|SCH-U310|SCH-U320|SCH-U350|SCH-U360|SCH-U365|SCH-U370|SCH-U380|SCH-U410|SCH-U430|SCH-U450|SCH-U460|SCH-U470|SCH-U490|SCH-U540|SCH-U550|SCH-U620|SCH-U640|SCH-U650|SCH-U660|SCH-U700|SCH-U740|SCH-U750|SCH-U810|SCH-U820|SCH-U900|SCH-U940|SCH-U960|SCS-26UC|SGH-A107|SGH-A117|SGH-A127|SGH-A137|SGH-A157|SGH-A167|SGH-A177|SGH-A187|SGH-A197|SGH-A227|SGH-A237|SGH-A257|SGH-A437|SGH-A517|SGH-A597|SGH-A637|SGH-A657|SGH-A667|SGH-A687|SGH-A697|SGH-A707|SGH-A717|SGH-A727|SGH-A737|SGH-A747|SGH-A767|SGH-A777|SGH-A797|SGH-A817|SGH-A827|SGH-A837|SGH-A847|SGH-A867|SGH-A877|SGH-A887|SGH-A897|SGH-A927|SGH-B100|SGH-B130|SGH-B200|SGH-B220|SGH-C100|SGH-C110|SGH-C120|SGH-C130|SGH-C140|SGH-C160|SGH-C170|SGH-C180|SGH-C200|SGH-C207|SGH-C210|SGH-C225|SGH-C230|SGH-C417|SGH-C450|SGH-D307|SGH-D347|SGH-D357|SGH-D407|SGH-D415|SGH-D780|SGH-D807|SGH-D980|SGH-E105|SGH-E200|SGH-E315|SGH-E316|SGH-E317|SGH-E335|SGH-E590|SGH-E635|SGH-E715|SGH-E890|SGH-F300|SGH-F480|SGH-I200|SGH-I300|SGH-I320|SGH-I550|SGH-I577|SGH-I600|SGH-I607|SGH-I617|SGH-I627|SGH-I637|SGH-I677|SGH-I700|SGH-I717|SGH-I727|SGH-i747M|SGH-I777|SGH-I780|SGH-I827|SGH-I847|SGH-I857|SGH-I896|SGH-I897|SGH-I900|SGH-I907|SGH-I917|SGH-I927|SGH-I937|SGH-I997|SGH-J150|SGH-J200|SGH-L170|SGH-L700|SGH-M110|SGH-M150|SGH-M200|SGH-N105|SGH-N500|SGH-N600|SGH-N620|SGH-N625|SGH-N700|SGH-N710|SGH-P107|SGH-P207|SGH-P300|SGH-P310|SGH-P520|SGH-P735|SGH-P777|SGH-Q105|SGH-R210|SGH-R220|SGH-R225|SGH-S105|SGH-S307|SGH-T109|SGH-T119|SGH-T139|SGH-T209|SGH-T219|SGH-T229|SGH-T239|SGH-T249|SGH-T259|SGH-T309|SGH-T319|SGH-T329|SGH-T339|SGH-T349|SGH-T359|SGH-T369|SGH-T379|SGH-T409|SGH-T429|SGH-T439|SGH-T459|SGH-T469|SGH-T479|SGH-T499|SGH-T509|SGH-T519|SGH-T539|SGH-T559|SGH-T589|SGH-T609|SGH-T619|SGH-T629|SGH-T639|SGH-T659|SGH-T669|SGH-T679|SGH-T709|SGH-T719|SGH-T729|SGH-T739|SGH-T746|SGH-T749|SGH-T759|SGH-T769|SGH-T809|SGH-T819|SGH-T839|SGH-T919|SGH-T929|SGH-T939|SGH-T959|SGH-T989|SGH-U100|SGH-U200|SGH-U800|SGH-V205|SGH-V206|SGH-X100|SGH-X105|SGH-X120|SGH-X140|SGH-X426|SGH-X427|SGH-X475|SGH-X495|SGH-X497|SGH-X507|SGH-X600|SGH-X610|SGH-X620|SGH-X630|SGH-X700|SGH-X820|SGH-X890|SGH-Z130|SGH-Z150|SGH-Z170|SGH-ZX10|SGH-ZX20|SHW-M110|SPH-A120|SPH-A400|SPH-A420|SPH-A460|SPH-A500|SPH-A560|SPH-A600|SPH-A620|SPH-A660|SPH-A700|SPH-A740|SPH-A760|SPH-A790|SPH-A800|SPH-A820|SPH-A840|SPH-A880|SPH-A900|SPH-A940|SPH-A960|SPH-D600|SPH-D700|SPH-D710|SPH-D720|SPH-I300|SPH-I325|SPH-I330|SPH-I350|SPH-I500|SPH-I600|SPH-I700|SPH-L700|SPH-M100|SPH-M220|SPH-M240|SPH-M300|SPH-M305|SPH-M320|SPH-M330|SPH-M350|SPH-M360|SPH-M370|SPH-M380|SPH-M510|SPH-M540|SPH-M550|SPH-M560|SPH-M570|SPH-M580|SPH-M610|SPH-M620|SPH-M630|SPH-M800|SPH-M810|SPH-M850|SPH-M900|SPH-M910|SPH-M920|SPH-M930|SPH-N100|SPH-N200|SPH-N240|SPH-N300|SPH-N400|SPH-Z400|SWC-E100|SCH-i909|GT-N7100|GT-N7105|SCH-I535|SM-N900A|SGH-I317|SGH-T999L|GT-S5360B|GT-I8262|GT-S6802|GT-S6312|GT-S6310|GT-S5312|GT-S5310|GT-I9105|GT-I8510|GT-S6790N|SM-G7105|SM-N9005|GT-S5301|GT-I9295|GT-I9195|SM-C101|GT-S7392|GT-S7560|GT-B7610|GT-I5510|GT-S7582|GT-S7530E|GT-I8750|SM-G9006V|SM-G9008V|SM-G9009D|SM-G900A|SM-G900D|SM-G900F|SM-G900H|SM-G900I|SM-G900J|SM-G900K|SM-G900L|SM-G900M|SM-G900P|SM-G900R4|SM-G900S|SM-G900T|SM-G900V|SM-G900W8|SHV-E160K|SCH-P709|SCH-P729|SM-T2558|GT-I9205",LG:"\\bLG\\b;|LG[- ]?(C800|C900|E400|E610|E900|E-900|F160|F180K|F180L|F180S|730|855|L160|LS740|LS840|LS970|LU6200|MS690|MS695|MS770|MS840|MS870|MS910|P500|P700|P705|VM696|AS680|AS695|AX840|C729|E970|GS505|272|C395|E739BK|E960|L55C|L75C|LS696|LS860|P769BK|P350|P500|P509|P870|UN272|US730|VS840|VS950|LN272|LN510|LS670|LS855|LW690|MN270|MN510|P509|P769|P930|UN200|UN270|UN510|UN610|US670|US740|US760|UX265|UX840|VN271|VN530|VS660|VS700|VS740|VS750|VS910|VS920|VS930|VX9200|VX11000|AX840A|LW770|P506|P925|P999|E612|D955|D802)",Sony:"SonyST|SonyLT|SonyEricsson|SonyEricssonLT15iv|LT18i|E10i|LT28h|LT26w|SonyEricssonMT27i|C5303|C6902|C6903|C6906|C6943|D2533",Asus:"Asus.*Galaxy|PadFone.*Mobile",Micromax:"Micromax.*\\b(A210|A92|A88|A72|A111|A110Q|A115|A116|A110|A90S|A26|A51|A35|A54|A25|A27|A89|A68|A65|A57|A90)\\b",Palm:"PalmSource|Palm",Vertu:"Vertu|Vertu.*Ltd|Vertu.*Ascent|Vertu.*Ayxta|Vertu.*Constellation(F|Quest)?|Vertu.*Monika|Vertu.*Signature",Pantech:"PANTECH|IM-A850S|IM-A840S|IM-A830L|IM-A830K|IM-A830S|IM-A820L|IM-A810K|IM-A810S|IM-A800S|IM-T100K|IM-A725L|IM-A780L|IM-A775C|IM-A770K|IM-A760S|IM-A750K|IM-A740S|IM-A730S|IM-A720L|IM-A710K|IM-A690L|IM-A690S|IM-A650S|IM-A630K|IM-A600S|VEGA PTL21|PT003|P8010|ADR910L|P6030|P6020|P9070|P4100|P9060|P5000|CDM8992|TXT8045|ADR8995|IS11PT|P2030|P6010|P8000|PT002|IS06|CDM8999|P9050|PT001|TXT8040|P2020|P9020|P2000|P7040|P7000|C790",Fly:"IQ230|IQ444|IQ450|IQ440|IQ442|IQ441|IQ245|IQ256|IQ236|IQ255|IQ235|IQ245|IQ275|IQ240|IQ285|IQ280|IQ270|IQ260|IQ250",Wiko:"KITE 4G|HIGHWAY|GETAWAY|STAIRWAY|DARKSIDE|DARKFULL|DARKNIGHT|DARKMOON|SLIDE|WAX 4G|RAINBOW|BLOOM|SUNSET|GOA|LENNY|BARRY|IGGY|OZZY|CINK FIVE|CINK PEAX|CINK PEAX 2|CINK SLIM|CINK SLIM 2|CINK +|CINK KING|CINK PEAX|CINK SLIM|SUBLIM",iMobile:"i-mobile (IQ|i-STYLE|idea|ZAA|Hitz)",SimValley:"\\b(SP-80|XT-930|SX-340|XT-930|SX-310|SP-360|SP60|SPT-800|SP-120|SPT-800|SP-140|SPX-5|SPX-8|SP-100|SPX-8|SPX-12)\\b",Wolfgang:"AT-B24D|AT-AS50HD|AT-AS40W|AT-AS55HD|AT-AS45q2|AT-B26D|AT-AS50Q",Alcatel:"Alcatel",Nintendo:"Nintendo 3DS",Amoi:"Amoi",INQ:"INQ",GenericPhone:"Tapatalk|PDA;|SAGEM|\\bmmp\\b|pocket|\\bpsp\\b|symbian|Smartphone|smartfon|treo|up.browser|up.link|vodafone|\\bwap\\b|nokia|Series40|Series60|S60|SonyEricsson|N900|MAUI.*WAP.*Browser"},tablets:{iPad:"iPad|iPad.*Mobile",NexusTablet:"Android.*Nexus[\\s]+(7|9|10)",SamsungTablet:"SAMSUNG.*Tablet|Galaxy.*Tab|SC-01C|GT-P1000|GT-P1003|GT-P1010|GT-P3105|GT-P6210|GT-P6800|GT-P6810|GT-P7100|GT-P7300|GT-P7310|GT-P7500|GT-P7510|SCH-I800|SCH-I815|SCH-I905|SGH-I957|SGH-I987|SGH-T849|SGH-T859|SGH-T869|SPH-P100|GT-P3100|GT-P3108|GT-P3110|GT-P5100|GT-P5110|GT-P6200|GT-P7320|GT-P7511|GT-N8000|GT-P8510|SGH-I497|SPH-P500|SGH-T779|SCH-I705|SCH-I915|GT-N8013|GT-P3113|GT-P5113|GT-P8110|GT-N8010|GT-N8005|GT-N8020|GT-P1013|GT-P6201|GT-P7501|GT-N5100|GT-N5105|GT-N5110|SHV-E140K|SHV-E140L|SHV-E140S|SHV-E150S|SHV-E230K|SHV-E230L|SHV-E230S|SHW-M180K|SHW-M180L|SHW-M180S|SHW-M180W|SHW-M300W|SHW-M305W|SHW-M380K|SHW-M380S|SHW-M380W|SHW-M430W|SHW-M480K|SHW-M480S|SHW-M480W|SHW-M485W|SHW-M486W|SHW-M500W|GT-I9228|SCH-P739|SCH-I925|GT-I9200|GT-P5200|GT-P5210|GT-P5210X|SM-T311|SM-T310|SM-T310X|SM-T210|SM-T210R|SM-T211|SM-P600|SM-P601|SM-P605|SM-P900|SM-P901|SM-T217|SM-T217A|SM-T217S|SM-P6000|SM-T3100|SGH-I467|XE500|SM-T110|GT-P5220|GT-I9200X|GT-N5110X|GT-N5120|SM-P905|SM-T111|SM-T2105|SM-T315|SM-T320|SM-T320X|SM-T321|SM-T520|SM-T525|SM-T530NU|SM-T230NU|SM-T330NU|SM-T900|XE500T1C|SM-P605V|SM-P905V|SM-T337V|SM-T537V|SM-T707V|SM-T807V|SM-P600X|SM-P900X|SM-T210X|SM-T230|SM-T230X|SM-T325|GT-P7503|SM-T531|SM-T330|SM-T530|SM-T705|SM-T705C|SM-T535|SM-T331|SM-T800|SM-T700|SM-T537|SM-T807|SM-P907A|SM-T337A|SM-T537A|SM-T707A|SM-T807A|SM-T237|SM-T807P|SM-P607T|SM-T217T|SM-T337T|SM-T807T|SM-T116NQ|SM-P550|SM-T350|SM-T550|SM-T9000|SM-P9000|SM-T705Y|SM-T805|GT-P3113|SM-T710|SM-T810|SM-T360|SM-T533",Kindle:"Kindle|Silk.*Accelerated|Android.*\\b(KFOT|KFTT|KFJWI|KFJWA|KFOTE|KFSOWI|KFTHWI|KFTHWA|KFAPWI|KFAPWA|WFJWAE|KFSAWA|KFSAWI|KFASWI)\\b",SurfaceTablet:"Windows NT [0-9.]+; ARM;.*(Tablet|ARMBJS)",HPTablet:"HP Slate (7|8|10)|HP ElitePad 900|hp-tablet|EliteBook.*Touch|HP 8|Slate 21|HP SlateBook 10",AsusTablet:"^.*PadFone((?!Mobile).)*$|Transformer|TF101|TF101G|TF300T|TF300TG|TF300TL|TF700T|TF700KL|TF701T|TF810C|ME171|ME301T|ME302C|ME371MG|ME370T|ME372MG|ME172V|ME173X|ME400C|Slider SL101|\\bK00F\\b|\\bK00C\\b|\\bK00E\\b|\\bK00L\\b|TX201LA|ME176C|ME102A|\\bM80TA\\b|ME372CL|ME560CG|ME372CG|ME302KL| K010 | K017 |ME572C|ME103K|ME170C|ME171C|\\bME70C\\b|ME581C|ME581CL|ME8510C|ME181C",BlackBerryTablet:"PlayBook|RIM Tablet",HTCtablet:"HTC_Flyer_P512|HTC Flyer|HTC Jetstream|HTC-P715a|HTC EVO View 4G|PG41200|PG09410",MotorolaTablet:"xoom|sholest|MZ615|MZ605|MZ505|MZ601|MZ602|MZ603|MZ604|MZ606|MZ607|MZ608|MZ609|MZ615|MZ616|MZ617",NookTablet:"Android.*Nook|NookColor|nook browser|BNRV200|BNRV200A|BNTV250|BNTV250A|BNTV400|BNTV600|LogicPD Zoom2",AcerTablet:"Android.*; \\b(A100|A101|A110|A200|A210|A211|A500|A501|A510|A511|A700|A701|W500|W500P|W501|W501P|W510|W511|W700|G100|G100W|B1-A71|B1-710|B1-711|A1-810|A1-811|A1-830)\\b|W3-810|\\bA3-A10\\b|\\bA3-A11\\b",ToshibaTablet:"Android.*(AT100|AT105|AT200|AT205|AT270|AT275|AT300|AT305|AT1S5|AT500|AT570|AT700|AT830)|TOSHIBA.*FOLIO",LGTablet:"\\bL-06C|LG-V909|LG-V900|LG-V700|LG-V510|LG-V500|LG-V410|LG-V400|LG-VK810\\b",FujitsuTablet:"Android.*\\b(F-01D|F-02F|F-05E|F-10D|M532|Q572)\\b",PrestigioTablet:"PMP3170B|PMP3270B|PMP3470B|PMP7170B|PMP3370B|PMP3570C|PMP5870C|PMP3670B|PMP5570C|PMP5770D|PMP3970B|PMP3870C|PMP5580C|PMP5880D|PMP5780D|PMP5588C|PMP7280C|PMP7280C3G|PMP7280|PMP7880D|PMP5597D|PMP5597|PMP7100D|PER3464|PER3274|PER3574|PER3884|PER5274|PER5474|PMP5097CPRO|PMP5097|PMP7380D|PMP5297C|PMP5297C_QUAD|PMP812E|PMP812E3G|PMP812F|PMP810E|PMP880TD|PMT3017|PMT3037|PMT3047|PMT3057|PMT7008|PMT5887|PMT5001|PMT5002",LenovoTablet:"Idea(Tab|Pad)( A1|A10| K1|)|ThinkPad([ ]+)?Tablet|Lenovo.*(S2109|S2110|S5000|S6000|K3011|A3000|A3500|A1000|A2107|A2109|A1107|A5500|A7600|B6000|B8000|B8080)(-|)(FL|F|HV|H|)",DellTablet:"Venue 11|Venue 8|Venue 7|Dell Streak 10|Dell Streak 7",YarvikTablet:"Android.*\\b(TAB210|TAB211|TAB224|TAB250|TAB260|TAB264|TAB310|TAB360|TAB364|TAB410|TAB411|TAB420|TAB424|TAB450|TAB460|TAB461|TAB464|TAB465|TAB467|TAB468|TAB07-100|TAB07-101|TAB07-150|TAB07-151|TAB07-152|TAB07-200|TAB07-201-3G|TAB07-210|TAB07-211|TAB07-212|TAB07-214|TAB07-220|TAB07-400|TAB07-485|TAB08-150|TAB08-200|TAB08-201-3G|TAB08-201-30|TAB09-100|TAB09-211|TAB09-410|TAB10-150|TAB10-201|TAB10-211|TAB10-400|TAB10-410|TAB13-201|TAB274EUK|TAB275EUK|TAB374EUK|TAB462EUK|TAB474EUK|TAB9-200)\\b",MedionTablet:"Android.*\\bOYO\\b|LIFE.*(P9212|P9514|P9516|S9512)|LIFETAB",ArnovaTablet:"AN10G2|AN7bG3|AN7fG3|AN8G3|AN8cG3|AN7G3|AN9G3|AN7dG3|AN7dG3ST|AN7dG3ChildPad|AN10bG3|AN10bG3DT|AN9G2",IntensoTablet:"INM8002KP|INM1010FP|INM805ND|Intenso Tab|TAB1004",IRUTablet:"M702pro",MegafonTablet:"MegaFon V9|\\bZTE V9\\b|Android.*\\bMT7A\\b",EbodaTablet:"E-Boda (Supreme|Impresspeed|Izzycomm|Essential)",AllViewTablet:"Allview.*(Viva|Alldro|City|Speed|All TV|Frenzy|Quasar|Shine|TX1|AX1|AX2)",ArchosTablet:"\\b(101G9|80G9|A101IT)\\b|Qilive 97R|Archos5|\\bARCHOS (70|79|80|90|97|101|FAMILYPAD|)(b|)(G10| Cobalt| TITANIUM(HD|)| Xenon| Neon|XSK| 2| XS 2| PLATINUM| CARBON|GAMEPAD)\\b",AinolTablet:"NOVO7|NOVO8|NOVO10|Novo7Aurora|Novo7Basic|NOVO7PALADIN|novo9-Spark",SonyTablet:"Sony.*Tablet|Xperia Tablet|Sony Tablet S|SO-03E|SGPT12|SGPT13|SGPT114|SGPT121|SGPT122|SGPT123|SGPT111|SGPT112|SGPT113|SGPT131|SGPT132|SGPT133|SGPT211|SGPT212|SGPT213|SGP311|SGP312|SGP321|EBRD1101|EBRD1102|EBRD1201|SGP351|SGP341|SGP511|SGP512|SGP521|SGP541|SGP551|SGP621|SGP612|SOT31",PhilipsTablet:"\\b(PI2010|PI3000|PI3100|PI3105|PI3110|PI3205|PI3210|PI3900|PI4010|PI7000|PI7100)\\b",CubeTablet:"Android.*(K8GT|U9GT|U10GT|U16GT|U17GT|U18GT|U19GT|U20GT|U23GT|U30GT)|CUBE U8GT",CobyTablet:"MID1042|MID1045|MID1125|MID1126|MID7012|MID7014|MID7015|MID7034|MID7035|MID7036|MID7042|MID7048|MID7127|MID8042|MID8048|MID8127|MID9042|MID9740|MID9742|MID7022|MID7010",MIDTablet:"M9701|M9000|M9100|M806|M1052|M806|T703|MID701|MID713|MID710|MID727|MID760|MID830|MID728|MID933|MID125|MID810|MID732|MID120|MID930|MID800|MID731|MID900|MID100|MID820|MID735|MID980|MID130|MID833|MID737|MID960|MID135|MID860|MID736|MID140|MID930|MID835|MID733",MSITablet:"MSI \\b(Primo 73K|Primo 73L|Primo 81L|Primo 77|Primo 93|Primo 75|Primo 76|Primo 73|Primo 81|Primo 91|Primo 90|Enjoy 71|Enjoy 7|Enjoy 10)\\b",SMiTTablet:"Android.*(\\bMID\\b|MID-560|MTV-T1200|MTV-PND531|MTV-P1101|MTV-PND530)",RockChipTablet:"Android.*(RK2818|RK2808A|RK2918|RK3066)|RK2738|RK2808A",FlyTablet:"IQ310|Fly Vision",bqTablet:"Android.*(bq)?.*(Elcano|Curie|Edison|Maxwell|Kepler|Pascal|Tesla|Hypatia|Platon|Newton|Livingstone|Cervantes|Avant|Aquaris E10)|Maxwell.*Lite|Maxwell.*Plus",HuaweiTablet:"MediaPad|MediaPad 7 Youth|IDEOS S7|S7-201c|S7-202u|S7-101|S7-103|S7-104|S7-105|S7-106|S7-201|S7-Slim",NecTablet:"\\bN-06D|\\bN-08D",PantechTablet:"Pantech.*P4100",BronchoTablet:"Broncho.*(N701|N708|N802|a710)",VersusTablet:"TOUCHPAD.*[78910]|\\bTOUCHTAB\\b",ZyncTablet:"z1000|Z99 2G|z99|z930|z999|z990|z909|Z919|z900",PositivoTablet:"TB07STA|TB10STA|TB07FTA|TB10FTA",NabiTablet:"Android.*\\bNabi",KoboTablet:"Kobo Touch|\\bK080\\b|\\bVox\\b Build|\\bArc\\b Build",DanewTablet:"DSlide.*\\b(700|701R|702|703R|704|802|970|971|972|973|974|1010|1012)\\b",TexetTablet:"NaviPad|TB-772A|TM-7045|TM-7055|TM-9750|TM-7016|TM-7024|TM-7026|TM-7041|TM-7043|TM-7047|TM-8041|TM-9741|TM-9747|TM-9748|TM-9751|TM-7022|TM-7021|TM-7020|TM-7011|TM-7010|TM-7023|TM-7025|TM-7037W|TM-7038W|TM-7027W|TM-9720|TM-9725|TM-9737W|TM-1020|TM-9738W|TM-9740|TM-9743W|TB-807A|TB-771A|TB-727A|TB-725A|TB-719A|TB-823A|TB-805A|TB-723A|TB-715A|TB-707A|TB-705A|TB-709A|TB-711A|TB-890HD|TB-880HD|TB-790HD|TB-780HD|TB-770HD|TB-721HD|TB-710HD|TB-434HD|TB-860HD|TB-840HD|TB-760HD|TB-750HD|TB-740HD|TB-730HD|TB-722HD|TB-720HD|TB-700HD|TB-500HD|TB-470HD|TB-431HD|TB-430HD|TB-506|TB-504|TB-446|TB-436|TB-416|TB-146SE|TB-126SE",PlaystationTablet:"Playstation.*(Portable|Vita)",TrekstorTablet:"ST10416-1|VT10416-1|ST70408-1|ST702xx-1|ST702xx-2|ST80208|ST97216|ST70104-2|VT10416-2|ST10216-2A|SurfTab",PyleAudioTablet:"\\b(PTBL10CEU|PTBL10C|PTBL72BC|PTBL72BCEU|PTBL7CEU|PTBL7C|PTBL92BC|PTBL92BCEU|PTBL9CEU|PTBL9CUK|PTBL9C)\\b",AdvanTablet:"Android.* \\b(E3A|T3X|T5C|T5B|T3E|T3C|T3B|T1J|T1F|T2A|T1H|T1i|E1C|T1-E|T5-A|T4|E1-B|T2Ci|T1-B|T1-D|O1-A|E1-A|T1-A|T3A|T4i)\\b ",DanyTechTablet:"Genius Tab G3|Genius Tab S2|Genius Tab Q3|Genius Tab G4|Genius Tab Q4|Genius Tab G-II|Genius TAB GII|Genius TAB GIII|Genius Tab S1",GalapadTablet:"Android.*\\bG1\\b",MicromaxTablet:"Funbook|Micromax.*\\b(P250|P560|P360|P362|P600|P300|P350|P500|P275)\\b",KarbonnTablet:"Android.*\\b(A39|A37|A34|ST8|ST10|ST7|Smart Tab3|Smart Tab2)\\b",AllFineTablet:"Fine7 Genius|Fine7 Shine|Fine7 Air|Fine8 Style|Fine9 More|Fine10 Joy|Fine11 Wide",PROSCANTablet:"\\b(PEM63|PLT1023G|PLT1041|PLT1044|PLT1044G|PLT1091|PLT4311|PLT4311PL|PLT4315|PLT7030|PLT7033|PLT7033D|PLT7035|PLT7035D|PLT7044K|PLT7045K|PLT7045KB|PLT7071KG|PLT7072|PLT7223G|PLT7225G|PLT7777G|PLT7810K|PLT7849G|PLT7851G|PLT7852G|PLT8015|PLT8031|PLT8034|PLT8036|PLT8080K|PLT8082|PLT8088|PLT8223G|PLT8234G|PLT8235G|PLT8816K|PLT9011|PLT9045K|PLT9233G|PLT9735|PLT9760G|PLT9770G)\\b",YONESTablet:"BQ1078|BC1003|BC1077|RK9702|BC9730|BC9001|IT9001|BC7008|BC7010|BC708|BC728|BC7012|BC7030|BC7027|BC7026",ChangJiaTablet:"TPC7102|TPC7103|TPC7105|TPC7106|TPC7107|TPC7201|TPC7203|TPC7205|TPC7210|TPC7708|TPC7709|TPC7712|TPC7110|TPC8101|TPC8103|TPC8105|TPC8106|TPC8203|TPC8205|TPC8503|TPC9106|TPC9701|TPC97101|TPC97103|TPC97105|TPC97106|TPC97111|TPC97113|TPC97203|TPC97603|TPC97809|TPC97205|TPC10101|TPC10103|TPC10106|TPC10111|TPC10203|TPC10205|TPC10503",GUTablet:"TX-A1301|TX-M9002|Q702|kf026",PointOfViewTablet:"TAB-P506|TAB-navi-7-3G-M|TAB-P517|TAB-P-527|TAB-P701|TAB-P703|TAB-P721|TAB-P731N|TAB-P741|TAB-P825|TAB-P905|TAB-P925|TAB-PR945|TAB-PL1015|TAB-P1025|TAB-PI1045|TAB-P1325|TAB-PROTAB[0-9]+|TAB-PROTAB25|TAB-PROTAB26|TAB-PROTAB27|TAB-PROTAB26XL|TAB-PROTAB2-IPS9|TAB-PROTAB30-IPS9|TAB-PROTAB25XXL|TAB-PROTAB26-IPS10|TAB-PROTAB30-IPS10",OvermaxTablet:"OV-(SteelCore|NewBase|Basecore|Baseone|Exellen|Quattor|EduTab|Solution|ACTION|BasicTab|TeddyTab|MagicTab|Stream|TB-08|TB-09)",HCLTablet:"HCL.*Tablet|Connect-3G-2.0|Connect-2G-2.0|ME Tablet U1|ME Tablet U2|ME Tablet G1|ME Tablet X1|ME Tablet Y2|ME Tablet Sync",DPSTablet:"DPS Dream 9|DPS Dual 7",VistureTablet:"V97 HD|i75 3G|Visture V4( HD)?|Visture V5( HD)?|Visture V10",CrestaTablet:"CTP(-)?810|CTP(-)?818|CTP(-)?828|CTP(-)?838|CTP(-)?888|CTP(-)?978|CTP(-)?980|CTP(-)?987|CTP(-)?988|CTP(-)?989",MediatekTablet:"\\bMT8125|MT8389|MT8135|MT8377\\b",ConcordeTablet:"Concorde([ ]+)?Tab|ConCorde ReadMan",GoCleverTablet:"GOCLEVER TAB|A7GOCLEVER|M1042|M7841|M742|R1042BK|R1041|TAB A975|TAB A7842|TAB A741|TAB A741L|TAB M723G|TAB M721|TAB A1021|TAB I921|TAB R721|TAB I720|TAB T76|TAB R70|TAB R76.2|TAB R106|TAB R83.2|TAB M813G|TAB I721|GCTA722|TAB I70|TAB I71|TAB S73|TAB R73|TAB R74|TAB R93|TAB R75|TAB R76.1|TAB A73|TAB A93|TAB A93.2|TAB T72|TAB R83|TAB R974|TAB R973|TAB A101|TAB A103|TAB A104|TAB A104.2|R105BK|M713G|A972BK|TAB A971|TAB R974.2|TAB R104|TAB R83.3|TAB A1042",ModecomTablet:"FreeTAB 9000|FreeTAB 7.4|FreeTAB 7004|FreeTAB 7800|FreeTAB 2096|FreeTAB 7.5|FreeTAB 1014|FreeTAB 1001 |FreeTAB 8001|FreeTAB 9706|FreeTAB 9702|FreeTAB 7003|FreeTAB 7002|FreeTAB 1002|FreeTAB 7801|FreeTAB 1331|FreeTAB 1004|FreeTAB 8002|FreeTAB 8014|FreeTAB 9704|FreeTAB 1003",VoninoTablet:"\\b(Argus[ _]?S|Diamond[ _]?79HD|Emerald[ _]?78E|Luna[ _]?70C|Onyx[ _]?S|Onyx[ _]?Z|Orin[ _]?HD|Orin[ _]?S|Otis[ _]?S|SpeedStar[ _]?S|Magnet[ _]?M9|Primus[ _]?94[ _]?3G|Primus[ _]?94HD|Primus[ _]?QS|Android.*\\bQ8\\b|Sirius[ _]?EVO[ _]?QS|Sirius[ _]?QS|Spirit[ _]?S)\\b",ECSTablet:"V07OT2|TM105A|S10OT1|TR10CS1",StorexTablet:"eZee[_']?(Tab|Go)[0-9]+|TabLC7|Looney Tunes Tab",VodafoneTablet:"SmartTab([ ]+)?[0-9]+|SmartTabII10|SmartTabII7",EssentielBTablet:"Smart[ ']?TAB[ ]+?[0-9]+|Family[ ']?TAB2",RossMoorTablet:"RM-790|RM-997|RMD-878G|RMD-974R|RMT-705A|RMT-701|RME-601|RMT-501|RMT-711",iMobileTablet:"i-mobile i-note",TolinoTablet:"tolino tab [0-9.]+|tolino shine",AudioSonicTablet:"\\bC-22Q|T7-QC|T-17B|T-17P\\b",AMPETablet:"Android.* A78 ",SkkTablet:"Android.* (SKYPAD|PHOENIX|CYCLOPS)",TecnoTablet:"TECNO P9",JXDTablet:"Android.*\\b(F3000|A3300|JXD5000|JXD3000|JXD2000|JXD300B|JXD300|S5800|S7800|S602b|S5110b|S7300|S5300|S602|S603|S5100|S5110|S601|S7100a|P3000F|P3000s|P101|P200s|P1000m|P200m|P9100|P1000s|S6600b|S908|P1000|P300|S18|S6600|S9100)\\b",iJoyTablet:"Tablet (Spirit 7|Essentia|Galatea|Fusion|Onix 7|Landa|Titan|Scooby|Deox|Stella|Themis|Argon|Unique 7|Sygnus|Hexen|Finity 7|Cream|Cream X2|Jade|Neon 7|Neron 7|Kandy|Scape|Saphyr 7|Rebel|Biox|Rebel|Rebel 8GB|Myst|Draco 7|Myst|Tab7-004|Myst|Tadeo Jones|Tablet Boing|Arrow|Draco Dual Cam|Aurix|Mint|Amity|Revolution|Finity 9|Neon 9|T9w|Amity 4GB Dual Cam|Stone 4GB|Stone 8GB|Andromeda|Silken|X2|Andromeda II|Halley|Flame|Saphyr 9,7|Touch 8|Planet|Triton|Unique 10|Hexen 10|Memphis 4GB|Memphis 8GB|Onix 10)",FX2Tablet:"FX2 PAD7|FX2 PAD10",XoroTablet:"KidsPAD 701|PAD[ ]?712|PAD[ ]?714|PAD[ ]?716|PAD[ ]?717|PAD[ ]?718|PAD[ ]?720|PAD[ ]?721|PAD[ ]?722|PAD[ ]?790|PAD[ ]?792|PAD[ ]?900|PAD[ ]?9715D|PAD[ ]?9716DR|PAD[ ]?9718DR|PAD[ ]?9719QR|PAD[ ]?9720QR|TelePAD1030|Telepad1032|TelePAD730|TelePAD731|TelePAD732|TelePAD735Q|TelePAD830|TelePAD9730|TelePAD795|MegaPAD 1331|MegaPAD 1851|MegaPAD 2151",ViewsonicTablet:"ViewPad 10pi|ViewPad 10e|ViewPad 10s|ViewPad E72|ViewPad7|ViewPad E100|ViewPad 7e|ViewSonic VB733|VB100a",OdysTablet:"LOOX|XENO10|ODYS[ -](Space|EVO|Xpress|NOON)|\\bXELIO\\b|Xelio10Pro|XELIO7PHONETAB|XELIO10EXTREME|XELIOPT2|NEO_QUAD10",CaptivaTablet:"CAPTIVA PAD",IconbitTablet:"NetTAB|NT-3702|NT-3702S|NT-3702S|NT-3603P|NT-3603P|NT-0704S|NT-0704S|NT-3805C|NT-3805C|NT-0806C|NT-0806C|NT-0909T|NT-0909T|NT-0907S|NT-0907S|NT-0902S|NT-0902S",TeclastTablet:"T98 4G|\\bP80\\b|\\bX90HD\\b|X98 Air|X98 Air 3G|\\bX89\\b|P80 3G|\\bX80h\\b|P98 Air|\\bX89HD\\b|P98 3G|\\bP90HD\\b|P89 3G|X98 3G|\\bP70h\\b|P79HD 3G|G18d 3G|\\bP79HD\\b|\\bP89s\\b|\\bA88\\b|\\bP10HD\\b|\\bP19HD\\b|G18 3G|\\bP78HD\\b|\\bA78\\b|\\bP75\\b|G17s 3G|G17h 3G|\\bP85t\\b|\\bP90\\b|\\bP11\\b|\\bP98t\\b|\\bP98HD\\b|\\bG18d\\b|\\bP85s\\b|\\bP11HD\\b|\\bP88s\\b|\\bA80HD\\b|\\bA80se\\b|\\bA10h\\b|\\bP89\\b|\\bP78s\\b|\\bG18\\b|\\bP85\\b|\\bA70h\\b|\\bA70\\b|\\bG17\\b|\\bP18\\b|\\bA80s\\b|\\bA11s\\b|\\bP88HD\\b|\\bA80h\\b|\\bP76s\\b|\\bP76h\\b|\\bP98\\b|\\bA10HD\\b|\\bP78\\b|\\bP88\\b|\\bA11\\b|\\bA10t\\b|\\bP76a\\b|\\bP76t\\b|\\bP76e\\b|\\bP85HD\\b|\\bP85a\\b|\\bP86\\b|\\bP75HD\\b|\\bP76v\\b|\\bA12\\b|\\bP75a\\b|\\bA15\\b|\\bP76Ti\\b|\\bP81HD\\b|\\bA10\\b|\\bT760VE\\b|\\bT720HD\\b|\\bP76\\b|\\bP73\\b|\\bP71\\b|\\bP72\\b|\\bT720SE\\b|\\bC520Ti\\b|\\bT760\\b|\\bT720VE\\b|T720-3GE|T720-WiFi",
2
  OndaTablet:"\\b(V975i|Vi30|VX530|V701|Vi60|V701s|Vi50|V801s|V719|Vx610w|VX610W|V819i|Vi10|VX580W|Vi10|V711s|V813|V811|V820w|V820|Vi20|V711|VI30W|V712|V891w|V972|V819w|V820w|Vi60|V820w|V711|V813s|V801|V819|V975s|V801|V819|V819|V818|V811|V712|V975m|V101w|V961w|V812|V818|V971|V971s|V919|V989|V116w|V102w|V973|Vi40)\\b[\\s]+",JaytechTablet:"TPC-PA762",BlaupunktTablet:"Endeavour 800NG|Endeavour 1010",DigmaTablet:"\\b(iDx10|iDx9|iDx8|iDx7|iDxD7|iDxD8|iDsQ8|iDsQ7|iDsQ8|iDsD10|iDnD7|3TS804H|iDsQ11|iDj7|iDs10)\\b",EvolioTablet:"ARIA_Mini_wifi|Aria[ _]Mini|Evolio X10|Evolio X7|Evolio X8|\\bEvotab\\b|\\bNeura\\b",LavaTablet:"QPAD E704|\\bIvoryS\\b|E-TAB IVORY|\\bE-TAB\\b",CelkonTablet:"CT695|CT888|CT[\\s]?910|CT7 Tab|CT9 Tab|CT3 Tab|CT2 Tab|CT1 Tab|C820|C720|\\bCT-1\\b",WolderTablet:"miTab \\b(DIAMOND|SPACE|BROOKLYN|NEO|FLY|MANHATTAN|FUNK|EVOLUTION|SKY|GOCAR|IRON|GENIUS|POP|MINT|EPSILON|BROADWAY|JUMP|HOP|LEGEND|NEW AGE|LINE|ADVANCE|FEEL|FOLLOW|LIKE|LINK|LIVE|THINK|FREEDOM|CHICAGO|CLEVELAND|BALTIMORE-GH|IOWA|BOSTON|SEATTLE|PHOENIX|DALLAS|IN 101|MasterChef)\\b",MiTablet:"\\bMI PAD\\b|\\bHM NOTE 1W\\b",NibiruTablet:"Nibiru M1|Nibiru Jupiter One",NexoTablet:"NEXO NOVA|NEXO 10|NEXO AVIO|NEXO FREE|NEXO GO|NEXO EVO|NEXO 3G|NEXO SMART|NEXO KIDDO|NEXO MOBI",LeaderTablet:"TBLT10Q|TBLT10I|TBL-10WDKB|TBL-10WDKBO2013|TBL-W230V2|TBL-W450|TBL-W500|SV572|TBLT7I|TBA-AC7-8G|TBLT79|TBL-8W16|TBL-10W32|TBL-10WKB|TBL-W100",UbislateTablet:"UbiSlate[\\s]?7C",PocketBookTablet:"Pocketbook",Hudl:"Hudl HT7S3",TelstraTablet:"T-Hub2",GenericTablet:"Android.*\\b97D\\b|Tablet(?!.*PC)|BNTV250A|MID-WCDMA|LogicPD Zoom2|\\bA7EB\\b|CatNova8|A1_07|CT704|CT1002|\\bM721\\b|rk30sdk|\\bEVOTAB\\b|M758A|ET904|ALUMIUM10|Smartfren Tab|Endeavour 1010|Tablet-PC-4|Tagi Tab|\\bM6pro\\b|CT1020W|arc 10HD|\\bJolla\\b|\\bTP750\\b"},oss:{AndroidOS:"Android",BlackBerryOS:"blackberry|\\bBB10\\b|rim tablet os",PalmOS:"PalmOS|avantgo|blazer|elaine|hiptop|palm|plucker|xiino",SymbianOS:"Symbian|SymbOS|Series60|Series40|SYB-[0-9]+|\\bS60\\b",WindowsMobileOS:"Windows CE.*(PPC|Smartphone|Mobile|[0-9]{3}x[0-9]{3})|Window Mobile|Windows Phone [0-9.]+|WCE;",WindowsPhoneOS:"Windows Phone 8.1|Windows Phone 8.0|Windows Phone OS|XBLWP7|ZuneWP7|Windows NT 6.[23]; ARM;",iOS:"\\biPhone.*Mobile|\\biPod|\\biPad",MeeGoOS:"MeeGo",MaemoOS:"Maemo",JavaOS:"J2ME/|\\bMIDP\\b|\\bCLDC\\b",webOS:"webOS|hpwOS",badaOS:"\\bBada\\b",BREWOS:"BREW"},uas:{Chrome:"\\bCrMo\\b|CriOS|Android.*Chrome/[.0-9]* (Mobile)?",Dolfin:"\\bDolfin\\b",Opera:"Opera.*Mini|Opera.*Mobi|Android.*Opera|Mobile.*OPR/[0-9.]+|Coast/[0-9.]+",Skyfire:"Skyfire",IE:"IEMobile|MSIEMobile",Firefox:"fennec|firefox.*maemo|(Mobile|Tablet).*Firefox|Firefox.*Mobile",Bolt:"bolt",TeaShark:"teashark",Blazer:"Blazer",Safari:"Version.*Mobile.*Safari|Safari.*Mobile|MobileSafari",Tizen:"Tizen",UCBrowser:"UC.*Browser|UCWEB",baiduboxapp:"baiduboxapp",baidubrowser:"baidubrowser",DiigoBrowser:"DiigoBrowser",Puffin:"Puffin",Mercury:"\\bMercury\\b",ObigoBrowser:"Obigo",NetFront:"NF-Browser",GenericBrowser:"NokiaBrowser|OviBrowser|OneBrowser|TwonkyBeamBrowser|SEMC.*Browser|FlyFlow|Minimo|NetFront|Novarra-Vision|MQQBrowser|MicroMessenger"},props:{Mobile:"Mobile/[VER]",Build:"Build/[VER]",Version:"Version/[VER]",VendorID:"VendorID/[VER]",iPad:"iPad.*CPU[a-z ]+[VER]",iPhone:"iPhone.*CPU[a-z ]+[VER]",iPod:"iPod.*CPU[a-z ]+[VER]",Kindle:"Kindle/[VER]",Chrome:["Chrome/[VER]","CriOS/[VER]","CrMo/[VER]"],Coast:["Coast/[VER]"],Dolfin:"Dolfin/[VER]",Firefox:"Firefox/[VER]",Fennec:"Fennec/[VER]",IE:["IEMobile/[VER];","IEMobile [VER]","MSIE [VER];","Trident/[0-9.]+;.*rv:[VER]"],NetFront:"NetFront/[VER]",NokiaBrowser:"NokiaBrowser/[VER]",Opera:[" OPR/[VER]","Opera Mini/[VER]","Version/[VER]"],"Opera Mini":"Opera Mini/[VER]","Opera Mobi":"Version/[VER]","UC Browser":"UC Browser[VER]",MQQBrowser:"MQQBrowser/[VER]",MicroMessenger:"MicroMessenger/[VER]",baiduboxapp:"baiduboxapp/[VER]",baidubrowser:"baidubrowser/[VER]",Iron:"Iron/[VER]",Safari:["Version/[VER]","Safari/[VER]"],Skyfire:"Skyfire/[VER]",Tizen:"Tizen/[VER]",Webkit:"webkit[ /][VER]",Gecko:"Gecko/[VER]",Trident:"Trident/[VER]",Presto:"Presto/[VER]",iOS:" \\bi?OS\\b [VER][ ;]{1}",Android:"Android [VER]",BlackBerry:["BlackBerry[\\w]+/[VER]","BlackBerry.*Version/[VER]","Version/[VER]"],BREW:"BREW [VER]",Java:"Java/[VER]","Windows Phone OS":["Windows Phone OS [VER]","Windows Phone [VER]"],"Windows Phone":"Windows Phone [VER]","Windows CE":"Windows CE/[VER]","Windows NT":"Windows NT [VER]",Symbian:["SymbianOS/[VER]","Symbian/[VER]"],webOS:["webOS/[VER]","hpwOS/[VER];"]},utils:{Bot:"Googlebot|facebookexternalhit|AdsBot-Google|Google Keyword Suggestion|Facebot|YandexBot|bingbot|ia_archiver|AhrefsBot|Ezooms|GSLFbot|WBSearchBot|Twitterbot|TweetmemeBot|Twikle|PaperLiBot|Wotbox|UnwindFetchor|Exabot|MJ12bot|YandexImages|TurnitinBot|Pingdom",MobileBot:"Googlebot-Mobile|AdsBot-Google-Mobile|YahooSeeker/M1A1-R2D2",DesktopMode:"WPDesktop",TV:"SonyDTV|HbbTV",WebKit:"(webkit)[ /]([\\w.]+)",Console:"\\b(Nintendo|Nintendo WiiU|Nintendo 3DS|PLAYSTATION|Xbox)\\b",Watch:"SM-V700"}},o.detectMobileBrowsers={fullPattern:/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i,shortPattern:/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,tabletPattern:/android|ipad|playbook|silk/i};var a,s=Object.prototype.hasOwnProperty;return o.FALLBACK_PHONE="UnknownPhone",o.FALLBACK_TABLET="UnknownTablet",o.FALLBACK_MOBILE="UnknownMobile",a="isArray"in Array?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},function(){var e,t,n,r,T,l,u=o.mobileDetectRules;for(e in u.props)if(s.call(u.props,e)){for(t=u.props[e],a(t)||(t=[t]),T=t.length,r=0;T>r;++r)n=t[r],l=n.indexOf("[VER]"),l>=0&&(n=n.substring(0,l)+"([\\w._\\+]+)"+n.substring(l+5)),t[r]=new RegExp(n,"i");u.props[e]=t}i(u.oss),i(u.phones),i(u.tablets),i(u.uas),i(u.utils),u.oss0={WindowsPhoneOS:u.oss.WindowsPhoneOS,WindowsMobileOS:u.oss.WindowsMobileOS}}(),o.findMatch=function(e,t){for(var n in e)if(s.call(e,n)&&e[n].test(t))return n;return null},o.findMatches=function(e,t){var n=[];for(var i in e)s.call(e,i)&&e[i].test(t)&&n.push(i);return n},o.getVersionStr=function(e,t){var n,i,r,a,T=o.mobileDetectRules.props;if(s.call(T,e))for(n=T[e],r=n.length,i=0;r>i;++i)if(a=n[i].exec(t),null!==a)return a[1];return null},o.getVersion=function(e,t){var n=o.getVersionStr(e,t);return n?o.prepareVersionNo(n):NaN},o.prepareVersionNo=function(e){var t;return t=e.split(/[a-z._ \/\-]/i),1===t.length&&(e=t[0]),t.length>1&&(e=t[0]+".",t.shift(),e+=t.join("")),Number(e)},o.isMobileFallback=function(e){return o.detectMobileBrowsers.fullPattern.test(e)||o.detectMobileBrowsers.shortPattern.test(e.substr(0,4))},o.isTabletFallback=function(e){return o.detectMobileBrowsers.tabletPattern.test(e)},o.prepareDetectionCache=function(e,n,i){if(e.mobile===t){var a,s,T;return(s=o.findMatch(o.mobileDetectRules.tablets,n))?(e.mobile=e.tablet=s,void(e.phone=null)):(a=o.findMatch(o.mobileDetectRules.phones,n))?(e.mobile=e.phone=a,void(e.tablet=null)):void(o.isMobileFallback(n)?(T=r.isPhoneSized(i),T===t?(e.mobile=o.FALLBACK_MOBILE,e.tablet=e.phone=null):T?(e.mobile=e.phone=o.FALLBACK_PHONE,e.tablet=null):(e.mobile=e.tablet=o.FALLBACK_TABLET,e.phone=null)):o.isTabletFallback(n)?(e.mobile=e.tablet=o.FALLBACK_TABLET,e.phone=null):e.mobile=e.tablet=e.phone=null)}},o.mobileGrade=function(e){var t=null!==e.mobile();return e.os("iOS")&&e.version("iPad")>=4.3||e.os("iOS")&&e.version("iPhone")>=3.1||e.os("iOS")&&e.version("iPod")>=3.1||e.version("Android")>2.1&&e.is("Webkit")||e.version("Windows Phone OS")>=7||e.is("BlackBerry")&&e.version("BlackBerry")>=6||e.match("Playbook.*Tablet")||e.version("webOS")>=1.4&&e.match("Palm|Pre|Pixi")||e.match("hp.*TouchPad")||e.is("Firefox")&&e.version("Firefox")>=12||e.is("Chrome")&&e.is("AndroidOS")&&e.version("Android")>=4||e.is("Skyfire")&&e.version("Skyfire")>=4.1&&e.is("AndroidOS")&&e.version("Android")>=2.3||e.is("Opera")&&e.version("Opera Mobi")>11&&e.is("AndroidOS")||e.is("MeeGoOS")||e.is("Tizen")||e.is("Dolfin")&&e.version("Bada")>=2||(e.is("UC Browser")||e.is("Dolfin"))&&e.version("Android")>=2.3||e.match("Kindle Fire")||e.is("Kindle")&&e.version("Kindle")>=3||e.is("AndroidOS")&&e.is("NookTablet")||e.version("Chrome")>=11&&!t||e.version("Safari")>=5&&!t||e.version("Firefox")>=4&&!t||e.version("MSIE")>=7&&!t||e.version("Opera")>=10&&!t?"A":e.os("iOS")&&e.version("iPad")<4.3||e.os("iOS")&&e.version("iPhone")<3.1||e.os("iOS")&&e.version("iPod")<3.1||e.is("Blackberry")&&e.version("BlackBerry")>=5&&e.version("BlackBerry")<6||e.version("Opera Mini")>=5&&e.version("Opera Mini")<=6.5&&(e.version("Android")>=2.3||e.is("iOS"))||e.match("NokiaN8|NokiaC7|N97.*Series60|Symbian/3")||e.version("Opera Mobi")>=11&&e.is("SymbianOS")?"B":(e.version("BlackBerry")<5||e.match("MSIEMobile|Windows CE.*Mobile")||e.version("Windows Mobile")<=5.2,"C")},o.detectOS=function(e){return o.findMatch(o.mobileDetectRules.oss0,e)||o.findMatch(o.mobileDetectRules.oss,e)},o.getDeviceSmallerSide=function(){return window.screen.width<window.screen.height?window.screen.width:window.screen.height},r.prototype={constructor:r,mobile:function(){return o.prepareDetectionCache(this._cache,this.ua,this.maxPhoneWidth),this._cache.mobile},phone:function(){return o.prepareDetectionCache(this._cache,this.ua,this.maxPhoneWidth),this._cache.phone},tablet:function(){return o.prepareDetectionCache(this._cache,this.ua,this.maxPhoneWidth),this._cache.tablet},userAgent:function(){return this._cache.userAgent===t&&(this._cache.userAgent=o.findMatch(o.mobileDetectRules.uas,this.ua)),this._cache.userAgent},userAgents:function(){return this._cache.userAgents===t&&(this._cache.userAgents=o.findMatches(o.mobileDetectRules.uas,this.ua)),this._cache.userAgents},os:function(){return this._cache.os===t&&(this._cache.os=o.detectOS(this.ua)),this._cache.os},version:function(e){return o.getVersion(e,this.ua)},versionStr:function(e){return o.getVersionStr(e,this.ua)},is:function(t){return n(this.userAgents(),t)||e(t,this.os())||e(t,this.phone())||e(t,this.tablet())||n(o.findMatches(o.mobileDetectRules.utils,this.ua),t)},match:function(e){return e instanceof RegExp||(e=new RegExp(e,"i")),e.test(this.ua)},isPhoneSized:function(e){return r.isPhoneSized(e||this.maxPhoneWidth)},mobileGrade:function(){return this._cache.grade===t&&(this._cache.grade=o.mobileGrade(this)),this._cache.grade}},"undefined"!=typeof window&&window.screen?r.isPhoneSized=function(e){return 0>e?t:o.getDeviceSmallerSide()<=e}:r.isPhoneSized=function(){},r._impl=o,r})}(function(e){return function(e){window.MobileDetect=e()}}()),function(){"use strict";function e(){}function t(e,t){for(var n=e.length;n--;)if(e[n].listener===t)return n;return-1}function n(e){return function(){return this[e].apply(this,arguments)}}var i=e.prototype,r=this,o=r.EventEmitter;i.getListeners=function(e){var t,n,i=this._getEvents();if("object"==typeof e){t={};for(n in i)i.hasOwnProperty(n)&&e.test(n)&&(t[n]=i[n])}else t=i[e]||(i[e]=[]);return t},i.flattenListeners=function(e){var t,n=[];for(t=0;t<e.length;t+=1)n.push(e[t].listener);return n},i.getListenersAsObject=function(e){var t,n=this.getListeners(e);return n instanceof Array&&(t={},t[e]=n),t||n},i.addListener=function(e,n){var i,r=this.getListenersAsObject(e),o="object"==typeof n;for(i in r)r.hasOwnProperty(i)&&-1===t(r[i],n)&&r[i].push(o?n:{listener:n,once:!1});return this},i.on=n("addListener"),i.addOnceListener=function(e,t){return this.addListener(e,{listener:t,once:!0})},i.once=n("addOnceListener"),i.defineEvent=function(e){return this.getListeners(e),this},i.defineEvents=function(e){for(var t=0;t<e.length;t+=1)this.defineEvent(e[t]);return this},i.removeListener=function(e,n){var i,r,o=this.getListenersAsObject(e);for(r in o)o.hasOwnProperty(r)&&(i=t(o[r],n),-1!==i&&o[r].splice(i,1));return this},i.off=n("removeListener"),i.addListeners=function(e,t){return this.manipulateListeners(!1,e,t)},i.removeListeners=function(e,t){return this.manipulateListeners(!0,e,t)},i.manipulateListeners=function(e,t,n){var i,r,o=e?this.removeListener:this.addListener,a=e?this.removeListeners:this.addListeners;if("object"!=typeof t||t instanceof RegExp)for(i=n.length;i--;)o.call(this,t,n[i]);else for(i in t)t.hasOwnProperty(i)&&(r=t[i])&&("function"==typeof r?o.call(this,i,r):a.call(this,i,r));return this},i.removeEvent=function(e){var t,n=typeof e,i=this._getEvents();if("string"===n)delete i[e];else if("object"===n)for(t in i)i.hasOwnProperty(t)&&e.test(t)&&delete i[t];else delete this._events;return this},i.removeAllListeners=n("removeEvent"),i.emitEvent=function(e,t){var n,i,r,o,a=this.getListenersAsObject(e);for(r in a)if(a.hasOwnProperty(r))for(i=a[r].length;i--;)n=a[r][i],n.once===!0&&this.removeListener(e,n.listener),o=n.listener.apply(this,t||[]),o===this._getOnceReturnValue()&&this.removeListener(e,n.listener);return this},i.trigger=n("emitEvent"),i.emit=function(e){var t=Array.prototype.slice.call(arguments,1);return this.emitEvent(e,t)},i.setOnceReturnValue=function(e){return this._onceReturnValue=e,this},i._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0},i._getEvents=function(){return this._events||(this._events={})},e.noConflict=function(){return r.EventEmitter=o,e},this.EventEmitter=e}.call(this),function(e){function t(t){var n=e.event;return n.target=n.target||n.srcElement||t,n}var n=document.documentElement,i=function(){};n.addEventListener?i=function(e,t,n){e.addEventListener(t,n,!1)}:n.attachEvent&&(i=function(e,n,i){e[n+i]=i.handleEvent?function(){var n=t(e);i.handleEvent.call(i,n)}:function(){var n=t(e);i.call(e,n)},e.attachEvent("on"+n,e[n+i])});var r=function(){};n.removeEventListener?r=function(e,t,n){e.removeEventListener(t,n,!1)}:n.detachEvent&&(r=function(e,t,n){e.detachEvent("on"+t,e[t+n]);try{delete e[t+n]}catch(i){e[t+n]=void 0}});var o={bind:i,unbind:r};e.eventie=o}(this),function(e,t){"use strict";e.imagesLoaded=t(e,e.EventEmitter,e.eventie)}(window,function(e,t,n){function i(e,t){for(var n in t)e[n]=t[n];return e}function r(e){return"[object Array]"==c.call(e)}function o(e){var t=[];if(r(e))t=e;else if("number"==typeof e.length)for(var n=0;n<e.length;n++)t.push(e[n]);else t.push(e);return t}function a(e,t,n){if(!(this instanceof a))return new a(e,t,n);"string"==typeof e&&(e=document.querySelectorAll(e)),this.elements=o(e),this.options=i({},this.options),"function"==typeof t?n=t:i(this.options,t),n&&this.on("always",n),this.getImages(),l&&(this.jqDeferred=new l.Deferred);var r=this;setTimeout(function(){r.check()})}function s(e){this.img=e}function T(e,t){this.url=e,this.element=t,this.img=new Image}var l=e.n2,u=e.console,c=Object.prototype.toString;a.prototype=new t,a.prototype.options={},a.prototype.getImages=function(){this.images=[];for(var e=0;e<this.elements.length;e++){var t=this.elements[e];this.addElementImages(t)}},a.prototype.addElementImages=function(e){"IMG"==e.nodeName&&this.addImage(e),this.options.background===!0&&this.addElementBackgroundImages(e);var t=e.nodeType;if(t&&h[t]){for(var n=e.querySelectorAll("img"),i=0;i<n.length;i++){var r=n[i];this.addImage(r)}if("string"==typeof this.options.background){var o=e.querySelectorAll(this.options.background);for(i=0;i<o.length;i++){var a=o[i];this.addElementBackgroundImages(a)}}}};var h={1:!0,9:!0,11:!0};a.prototype.addElementBackgroundImages=function(e){var t=S(e),n=/url\(["]*([^"\)]+)["]*\)/gi,i=n.exec(t.backgroundImage);if(!i){var r=/url\([']*([^'\)]+)[']*\)/gi;i=r.exec(t.backgroundImage)}for(;null!==i;){var o=i&&i[1];o&&this.addBackground(o,e),i=n.exec(t.backgroundImage)}};var S=e.getComputedStyle||function(e){return e.currentStyle};return a.prototype.addImage=function(e){var t=new s(e);this.images.push(t)},a.prototype.addBackground=function(e,t){var n=new T(e,t);this.images.push(n)},a.prototype.check=function(){function e(e,n,i){setTimeout(function(){t.progress(e,n,i)})}var t=this;if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();for(var n=0;n<this.images.length;n++){var i=this.images[n];i.once("progress",e),i.check()}},a.prototype.progress=function(e,t,n){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded,this.emit("progress",this,e,t),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,e),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&u&&u.log("progress: "+n,e,t)},a.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emit(e,this),this.emit("always",this),this.jqDeferred){var t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},s.prototype=new t,s.prototype.check=function(){var e=this.getIsImageComplete();return e?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,n.bind(this.proxyImage,"load",this),n.bind(this.proxyImage,"error",this),n.bind(this.img,"load",this),n.bind(this.img,"error",this),void(this.proxyImage.src=this.img.src))},s.prototype.getIsImageComplete=function(){return this.img.complete&&void 0!==this.img.naturalWidth},s.prototype.confirm=function(e,t){this.isLoaded=e,this.emit("progress",this,this.img,t)},s.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},s.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},s.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},s.prototype.unbindEvents=function(){n.unbind(this.proxyImage,"load",this),n.unbind(this.proxyImage,"error",this),n.unbind(this.img,"load",this),n.unbind(this.img,"error",this)},T.prototype=new s,T.prototype.check=function(){n.bind(this.img,"load",this),n.bind(this.img,"error",this),this.img.src=this.url;var e=this.getIsImageComplete();e&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},T.prototype.unbindEvents=function(){n.unbind(this.img,"load",this),n.unbind(this.img,"error",this)},T.prototype.confirm=function(e,t){this.isLoaded=e,this.emit("progress",this,this.element,t)},a.makeJQueryPlugin=function(e){e=n2,e&&(l=e,l.fn.n2imagesLoaded=function(e,t){var n=new a(this,e,t);return n.jqDeferred.promise(l(this))})},a.makeJQueryPlugin(),a}),function(e){e.event.special.universalclick={add:function(t){var n=e(this),i=!1,r=null,o=function(){i=!0,r&&clearTimeout(r),r=setTimeout(function(){i=!1},400)},a=0,s=0;try{var T=function(e){a=e.touches[0].clientX,s=e.touches[0].clientY};n[0]._touchstart=T,n[0].addEventListener("touchstart",T,window.n2passiveEvents?{passive:!0}:!1),n.on("touchend.universalclick",function(e){Math.abs(e.originalEvent.changedTouches[0].clientX-a)<10&&Math.abs(e.originalEvent.changedTouches[0].clientY-s)<10&&(i||(o(),t.handler.apply(this,arguments)))}).on("click.universalclick",function(e){i||(o(),t.handler.apply(this,arguments))})}catch(l){console.error(l)}},remove:function(){e(this).off(".universalclick");try{this.removeEventListener("touchstart",this._touchstart,window.n2passiveEvents?{passive:!0}:!1),delete this._touchstart}catch(t){}}};var t=[],n=!1,i=function(n){for(var i=e(n.target),r=t.length-1;r>=0;r--)t[r].is(i)||0!=t[r].find(i).length||t[r].trigger("universal_leave")},r=function(){if(!n){n=!0;try{e("body").get(0).addEventListener("touchstart",i,window.n2passiveEvents?{passive:!0}:!1)}catch(t){}}},o=function(){if(n){try{e("body").get(0).removeEventListener("touchstart",i,window.n2passiveEvents?{passive:!0}:!1)}catch(t){}n=!1}},a=function(n){-1==e.inArray(n,t)&&t.push(n),1==t.length&&r()},s=function(n){var i=e.inArray(n,t);i>=0&&(t.splice(i,1),0==t.length&&o())};e.event.special.universalenter={add:function(t){var n=e(this),i=!1,r=null,o=function(){i=!0,r&&(clearTimeout(r),r=null),r=setTimeout(function(){i=!1},400)},T=!1;t.data&&(T=t.data.leaveOnSecond);var l=null,u=function(e){i||(o(),"touchstart"==e.type?T?l?n.trigger("universal_leave"):(a(n),t.handler.apply(this,arguments),l=setTimeout(function(){n.trigger("universal_leave")},5e3)):(l&&(clearTimeout(l),l=null),a(n),t.handler.apply(this,arguments),l=setTimeout(function(){n.trigger("universal_leave")},5e3)):(t.handler.apply(this,arguments),n.on("mouseleave.universalleave",function(){n.off(".universalleave").trigger("universalleave")})))};n.on("universal_leave.universalenter",function(e){e.stopPropagation(),clearTimeout(l),l=null,s(n),n.trigger("universalleave")}).on("mouseenter.universalenter",u);try{n[0]._mouseenter=u,n[0].addEventListener("touchstart",u,window.n2passiveEvents?{passive:!0}:!1)}catch(c){}},remove:function(){e(this).off(".universalenter .universalleave");try{this.removeEventListener("touchstart",this._mouseenter,window.n2passiveEvents?{passive:!0}:!1),delete this._mouseenter}catch(t){}}}}(n2);var tmpModernizr=null;"undefined"!=typeof window.Modernizr&&(tmpModernizr=window.Modernizr),!function(e,t,n){function i(e,t){return typeof e===t}function r(){var e,t,n,r,o,a,s;for(var T in A)if(A.hasOwnProperty(T)){if(e=[],t=A[T],t.name&&(e.push(t.name.toLowerCase()),t.options&&t.options.aliases&&t.options.aliases.length))for(n=0;n<t.options.aliases.length;n++)e.push(t.options.aliases[n].toLowerCase());for(r=i(t.fn,"function")?t.fn():t.fn,o=0;o<e.length;o++)a=e[o],s=a.split("."),1===s.length?M[s[0]]=r:(!M[s[0]]||M[s[0]]instanceof Boolean||(M[s[0]]=new Boolean(M[s[0]])),M[s[0]][s[1]]=r),y.push((r?"":"no-")+s.join("-"))}}function o(e){return e.replace(/([a-z])-([a-z])/g,function(e,t,n){return t+n.toUpperCase()}).replace(/^-/,"")}function a(e){var t=v.className,n=M._config.classPrefix||"";if(I&&(t=t.baseVal),M._config.enableJSClass){new RegExp("(^|\\s)"+n+"no-js(\\s|$)")}M._config.enableClasses&&(t+=" "+n+e.join(" "+n),I?v.className.baseVal=t:v.className=t)}function s(e,t){if("object"==typeof e)for(var n in e)B(e,n)&&s(n,e[n]);else{e=e.toLowerCase();var i=e.split("."),r=M[i[0]];if(2==i.length&&(r=r[i[1]]),"undefined"!=typeof r)return M;t="function"==typeof t?t():t,1==i.length?M[i[0]]=t:(!M[i[0]]||M[i[0]]instanceof Boolean||(M[i[0]]=new Boolean(M[i[0]])),M[i[0]][i[1]]=t),a([(t&&0!=t?"":"no-")+i.join("-")]),M._trigger(e,t)}return M}function T(e,t){return!!~(""+e).indexOf(t)}function l(){return"function"!=typeof t.createElement?t.createElement(arguments[0]):I?t.createElementNS.call(t,"http://www.w3.org/2000/svg",arguments[0]):t.createElement.apply(t,arguments)}function u(){var e=t.body;return e||(e=l(I?"svg":"body"),e.fake=!0),e}function c(e,n,i,r){var o,a,s,T,c="modernizr",h=l("div"),S=u();if(parseInt(i,10))for(;i--;)s=l("div"),s.id=r?r[i]:c+(i+1),h.appendChild(s);return o=l("style"),o.type="text/css",o.id="s"+c,(S.fake?S:h).appendChild(o),S.appendChild(h),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(t.createTextNode(e)),h.id=c,S.fake&&(S.style.background="",S.style.overflow="hidden",T=v.style.overflow,v.style.overflow="hidden",v.appendChild(S)),a=n(h,e),S.fake?(S.parentNode.removeChild(S),v.style.overflow=T,v.offsetHeight):h.parentNode.removeChild(h),!!a}function h(e,t){return function(){return e.apply(t,arguments)}}function S(e,t,n){var r;for(var o in e)if(e[o]in t)return n===!1?e[o]:(r=t[e[o]],i(r,"function")?h(r,n||t):r);return!1}function d(e){return e.replace(/([A-Z])/g,function(e,t){return"-"+t.toLowerCase()}).replace(/^ms-/,"-ms-")}function p(t,i){var r=t.length;if("CSS"in e&&"supports"in e.CSS){for(;r--;)if(e.CSS.supports(d(t[r]),i))return!0;return!1}if("CSSSupportsRule"in e){for(var o=[];r--;)o.push("("+d(t[r])+":"+i+")");return o=o.join(" or "),c("@supports ("+o+") { #modernizr { position: absolute; } }",function(e){return"absolute"==getComputedStyle(e,null).position})}return n}function f(e,t,r,a){function s(){c&&(delete k.style,delete k.modElem)}if(a=i(a,"undefined")?!1:a,!i(r,"undefined")){var u=p(e,r);if(!i(u,"undefined"))return u}for(var c,h,S,d,f,b=["modernizr","tspan"];!k.style;)c=!0,k.modElem=l(b.shift()),k.style=k.modElem.style;for(S=e.length,h=0;S>h;h++)if(d=e[h],f=k.style[d],T(d,"-")&&(d=o(d)),k.style[d]!==n){if(a||i(r,"undefined"))return s(),"pfx"==t?d:!0;try{k.style[d]=r}catch(P){}if(k.style[d]!=f)return s(),"pfx"==t?d:!0}return s(),!1}function b(e,t,n,r,o){var a=e.charAt(0).toUpperCase()+e.slice(1),s=(e+" "+w.join(a+" ")+a).split(" ");return i(t,"string")||i(t,"undefined")?f(s,t,r,o):(s=(e+" "+g.join(a+" ")+a).split(" "),S(s,t,n))}function P(e,t,i){return b(e,n,n,t,i)}var A=[],m={_version:"3.2.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,t){var n=this;setTimeout(function(){t(n[e])},0)},addTest:function(e,t,n){A.push({name:e,fn:t,options:n})},addAsyncTest:function(e){A.push({name:null,fn:e})}},M=function(){};M.prototype=m,M=new M;var G=m._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):[];m._prefixes=G;var v=t.documentElement,C="Moz O ms Webkit",g=m._config.usePrefixes?C.toLowerCase().split(" "):[];m._domPrefixes=g;var B;!function(){var e={}.hasOwnProperty;B=i(e,"undefined")||i(e.call,"undefined")?function(e,t){return t in e&&i(e.constructor.prototype[t],"undefined")}:function(t,n){return e.call(t,n)}}();var y=[],H="CSS"in e&&"supports"in e.CSS,E="supportsCSS"in e;M.addTest("supports",H||E);var I="svg"===v.nodeName.toLowerCase();m._l={},m.on=function(e,t){this._l[e]||(this._l[e]=[]),this._l[e].push(t),M.hasOwnProperty(e)&&setTimeout(function(){M._trigger(e,M[e])},0)},m._trigger=function(e,t){if(this._l[e]){var n=this._l[e];setTimeout(function(){var e,i;for(e=0;e<n.length;e++)(i=n[e])(t)},0),delete this._l[e]}},M._q.push(function(){m.addTest=s}),I||!function(e,t){function n(e,t){var n=e.createElement("p"),i=e.getElementsByTagName("head")[0]||e.documentElement;return n.innerHTML="x<style>"+t+"</style>",i.insertBefore(n.lastChild,i.firstChild)}function i(){var e=A.elements;return"string"==typeof e?e.split(" "):e}function r(e,t){var n=A.elements;"string"!=typeof n&&(n=n.join(" ")),"string"!=typeof e&&(e=e.join(" ")),A.elements=n+" "+e,l(t)}function o(e){var t=P[e[f]];return t||(t={},b++,e[f]=b,P[b]=t),t}function a(e,n,i){if(n||(n=t),c)return n.createElement(e);i||(i=o(n));var r;return r=i.cache[e]?i.cache[e].cloneNode():p.test(e)?(i.cache[e]=i.createElem(e)).cloneNode():i.createElem(e),!r.canHaveChildren||d.test(e)||r.tagUrn?r:i.frag.appendChild(r)}function s(e,n){if(e||(e=t),c)return e.createDocumentFragment();n=n||o(e);for(var r=n.frag.cloneNode(),a=0,s=i(),T=s.length;T>a;a++)r.createElement(s[a]);return r}function T(e,t){t.cache||(t.cache={},t.createElem=e.createElement,t.createFrag=e.createDocumentFragment,t.frag=t.createFrag()),e.createElement=function(n){return A.shivMethods?a(n,e,t):t.createElem(n)},e.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+i().join().replace(/[\w\-:]+/g,function(e){return t.createElem(e),t.frag.createElement(e),'c("'+e+'")'})+");return n}")(A,t.frag)}function l(e){e||(e=t);var i=o(e);return!A.shivCSS||u||i.hasCSS||(i.hasCSS=!!n(e,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),c||T(e,i),e}var u,c,h="3.7.3",S=e.html5||{},d=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,p=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,f="_html5shiv",b=0,P={};!function(){try{var e=t.createElement("a");e.innerHTML="<xyz></xyz>",u="hidden"in e,c=1==e.childNodes.length||function(){t.createElement("a");var e=t.createDocumentFragment();return"undefined"==typeof e.cloneNode||"undefined"==typeof e.createDocumentFragment||"undefined"==typeof e.createElement}()}catch(n){u=!0,c=!0}}();var A={elements:S.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:h,shivCSS:S.shivCSS!==!1,supportsUnknownElements:c,shivMethods:S.shivMethods!==!1,type:"default",shivDocument:l,createElement:a,createDocumentFragment:s,addElements:r};e.html5=A,l(t),"object"==typeof module&&module.exports&&(module.exports=A)}("undefined"!=typeof e?e:this,t);var w=m._config.usePrefixes?C.split(" "):[];m._cssomPrefixes=w;var _=function(t){var i,r=G.length,o=e.CSSRule;if("undefined"==typeof o)return n;if(!t)return!1;if(t=t.replace(/^@/,""),i=t.replace(/-/g,"_").toUpperCase()+"_RULE",i in o)return"@"+t;for(var a=0;r>a;a++){var s=G[a],T=s.toUpperCase()+"_"+i;if(T in o)return"@-"+s.toLowerCase()+"-"+t}return!1};m.atRule=_;var D=m.testStyles=c,N={elem:l("modernizr")};M._q.push(function(){delete N.elem});var k={style:N.elem.style};M._q.unshift(function(){delete k.style}),m.testProp=function(e,t,i){return f([e],n,t,i)},m.testAllProps=b,m.prefixed=function(e,t,n){return 0===e.indexOf("@")?_(e):(-1!=e.indexOf("-")&&(e=o(e)),t?b(e,t,n):b(e,"pfx"))},m.testAllProps=P,M.addTest("csstransforms3d",function(){var e=!!P("perspective","1px",!0),t=M._config.usePrefixes;if(e&&(!t||"webkitPerspective"in v.style)){var n,i="#modernizr{width:0;height:0}";M.supports?n="@supports (perspective: 1px)":(n="@media (transform-3d)",t&&(n+=",(-webkit-transform-3d)")),n+="{#modernizr{width:7px;height:18px;margin:0;padding:0;border:0}}",D(i+n,function(t){e=7===t.offsetWidth&&18===t.offsetHeight})}return e}),r(),a(y),delete m.addTest,delete m.addAsyncTest;for(var O=0;O<M._q.length;O++)M._q[O]();e.Modernizr=M}(window,document),Modernizr.addTest("csstransformspreserve3d",function(){var e,t=Modernizr.prefixed("transformStyle"),n="preserve-3d";return t?(t=t.replace(/([A-Z])/g,function(e,t){return"-"+t.toLowerCase()}).replace(/^ms-/,"-ms-"),Modernizr.testStyles("#modernizr{"+t+":"+n+";}",function(n,i){window.getComputedStyle?(e=getComputedStyle(n,null),e=e?e.getPropertyValue(t):""):e=""}),e===n):!1}),window.nModernizr=window.Modernizr,tmpModernizr&&(window.Modernizr=tmpModernizr),Array.prototype.indexOf||(Array.prototype.indexOf=function(e,t){null==t?t=0:0>t&&(t=Math.max(0,this.length+t));for(var n=t,i=this.length;i>n;n++)if(this[n]===e)return n;return-1}),function(){function e(){this._isTicking=!1,this._isMobile=!1,this._lastTick=0,this._ticks=[],this._postTickCallbacks=[];var e=function(){var e=0;return window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){var n,i=(new Date).getTime();return n=Math.max(0,16-(i-e)),e=i+n,setTimeout(function(){
3
  t(i+n)},n)}}();this._raf=window.requestAnimationFrame||e;var t=this;this._isMobile||void 0===document.hidden||document.addEventListener("visibilitychange",function(){document.hidden?(this._raf=function(e){return setTimeout(function(){e(t.now())},16)},t._tick(t.now())):t._raf=window.requestAnimationFrame||e})}var t=function(e){for(var t,n,i=arguments,r=i.length;r>1&&e.length;)for(t=i[--r];-1!==(n=e.indexOf(t));)e.splice(n,1);return e};e.prototype.addTick=function(e){-1==this._ticks.indexOf(e)&&this._ticks.push(e),this._isTicking||(this._isTicking=!0,this._raf.call(null,this.getTickStart()))},e.prototype.removeTick=function(e){t(this._ticks,e),0===this._ticks.length&&this._isTicking&&(this._lastTick=0,this._isTicking=!1)},e.prototype._tickStart=function(e){this._lastTick=e,this._isTicking&&(this._lastTick=e,this._raf.call(null,this.getTick()))},e.prototype._tick=function(e){var t=(e-this._lastTick)/1e3;if(0!=t){for(var n=0;n<this._ticks.length;n++)this._ticks[n].call(null,t);this.postTick()}this._continueTick(e)},e.prototype._continueTick=function(e){this._isTicking&&(this._lastTick=e,this._raf.call(null,this.getTick()))},e.prototype.getTick=function(){var e=this;return function(){e._tick.apply(e,arguments)}},e.prototype.getTickStart=function(){var e=this;return function(){e._tickStart.apply(e,arguments)}},e.prototype.now=function(){return performance.now()},e.prototype.postTick=function(){for(var e=0;e<this._postTickCallbacks.length;e++)this._postTickCallbacks[e]();this._postTickCallbacks=[]},e.prototype.addPostTick=function(e){this._postTickCallbacks.push(e)},window.N2A={RAF:new e,isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},isFunction:function(e){return"function"==typeof e},isString:function(e){return"string"==typeof e}}}(),function(){function e(e){this._tickCallback=null,this._progress=0,this._delayTimeout=!1,this._delay=0,this._duration=4,this._timeScale=1,this._isPlaying=!1,this._startTime=0,this._eventCallbacks={},this._immediateRender=!0,this._timeline=null,this._isCompleted=!1,this._isStarted=!1,this._isReversed=!1,this.toParams=e,this.initParameters()}e.prototype.initParameters=function(){this.parseParameters(this.toParams),"object"!=typeof this.toParams&&this.paused(!1)},e.prototype.parseParameters=function(e){e&&(e.delay&&(this.delay(e.delay),delete e.delay),"undefined"!=typeof e.duration&&(this.duration(e.duration),delete e.duration),e.onComplete&&(this.eventCallback("onComplete",e.onComplete),delete e.onComplete),e.onStart&&(this.eventCallback("onStart",e.onStart),delete e.onStart),e.onUpdate&&(this.eventCallback("onUpdate",e.onUpdate),delete e.onUpdate),e.immediateRender&&(this._immediateRender=e.immediateRender,delete e.immediateRender),e.paused&&this.paused(!0))},e.prototype.setTimeline=function(e){this._timeline=e},e.prototype._tick=function(e){var t=this._progress;this._isReversed?(this._progress-=e/this._duration*this._timeScale,1!=t&&this._isStarted?this._progress<=0?(this._progress=0,this._isPlaying=!1,N2A.RAF.removeTick(this.getTickCallback()),this._onUpdate(),this._onReverseComplete()):this._onUpdate():this._onReverseStart()):(this._progress+=e/this._duration*this._timeScale,0!=t&&this._isStarted?this._progress>=1?(this._progress=1,this._isPlaying=!1,N2A.RAF.removeTick(this.getTickCallback()),this._onUpdate(),this._onComplete()):this._onUpdate():this._onStart())},e.prototype._onStart=function(){this._isStarted=!0,this._isPlaying=!1,this._isCompleted=!1,this.trigger("onStart"),this._onUpdate()},e.prototype._onUpdate=function(){this.trigger("onUpdate")},e.prototype._onComplete=function(){this._isCompleted=!0,this._onUpdate(),this.trigger("onComplete")},e.prototype._onReverseComplete=function(){this._isCompleted=!0,this._isReversed=!1,this._onUpdate(),this.trigger("onReverseComplete")},e.prototype._onReverseStart=function(){this._isStarted=!0,this._isPlaying=!1,this._isCompleted=!1,this.trigger("onReverseStart"),this._onUpdate()},e.prototype.getTickCallback=function(){if(!this._tickCallback){var e=this;this._tickCallback=function(){e._tick.apply(e,arguments)}}return this._tickCallback},e.prototype._clearDelayTimeout=function(){this._delayTimeout&&(clearTimeout(this._delayTimeout),this._delayTimeout=!1)},e.prototype._timeToProgress=function(e){return e/this._duration*this._timeScale},e.prototype.delay=function(){if(arguments.length>0){var e=parseFloat(arguments[0]);return!isNaN(e)&&e!=1/0&&e||(e=0),this._delay=Math.max(0,e),this}return this._delay},e.prototype.duration=function(){if(arguments.length>0){var e=parseFloat(arguments[0]);return!isNaN(e)&&e!=1/0&&e||(e=0),this._duration=Math.max(0,e),this}return this._duration},e.prototype.eventCallback=function(e){return arguments.length>3?this._eventCallbacks[e]=[arguments[1],arguments[2],arguments[3]]:arguments.length>2?this._eventCallbacks[e]=[arguments[1],arguments[2],this]:arguments.length>1&&(this._eventCallbacks[e]=[arguments[1],[],this]),this._eventCallbacks[e]},e.prototype.pause=function(){return this._isPlaying=!1,N2A.RAF.removeTick(this.getTickCallback()),arguments.length>0&&null!=arguments[0]&&this.progress(this._timeToProgress(arguments[0])),this},e.prototype.paused=function(){return arguments.length>0?(arguments[0]?this._isPlaying&&this.pause():this._isPlaying||this.play(),this):!this._isPlaying},e.prototype.play=function(){var e=!0;arguments.length>0&&null!=arguments[0]&&(e=!1,this._progress=this._timeToProgress(arguments[0])),this._play(e)},e.prototype._play=function(e){if(this._progress<1)if(0==this._progress&&e&&this._delay>0){if(!this._delayTimeout){var t=this;this._delayTimeout=setTimeout(function(){t.__play.apply(t,arguments)},1e3*this._delay)}}else this.__play();else this._isCompleted||(this._isReversed?this._onReverseComplete():this._onComplete())},e.prototype.__play=function(){this._clearDelayTimeout(),this._isPlaying||(N2A.RAF.addTick(this.getTickCallback()),this._isPlaying=!0)},e.prototype.progress=function(){if(arguments.length>0){var e=parseFloat(arguments[0]);return isNaN(e)&&(e=0),e=Math.min(1,Math.max(0,e)),this._progress=e,this._isPlaying||(this._isStarted||this._onStart(),this._onUpdate()),this}return this._progress},e.prototype.reverse=function(){this._isReversed=!0,0!=this.progress()&&this.play()},e.prototype.restart=function(){return arguments.length>0&&arguments[0]?(this.pause(0),this.play(),this):(this.play(0),this)},e.prototype.seek=function(e){null!=e&&(this._progress=this._timeToProgress(arguments[0]),this._isPlaying||this._onUpdate())},e.prototype.startTime=function(){if(arguments.length>0){var e=parseFloat(arguments[0]);return isNaN(e)&&(e=0),this._startTime=Math.max(0,e),this}return this._startTime},e.prototype.timeScale=function(){if(arguments.length>0){var e=parseFloat(arguments[0]);return isNaN(e)&&(e=1),e=Math.max(.01,e),this._timeScale!=e&&(this._timeScale=e),this}return this._timeScale},e.prototype.trigger=function(e){"object"==typeof this._eventCallbacks[e]&&this._eventCallbacks[e][0].apply(this._eventCallbacks[e][2],this._eventCallbacks[e][1])},e.prototype.totalDuration=function(){if(arguments.length>0){var e=parseFloat(arguments[0]);return isNaN(e)&&(e=0),e=Math.max(0,e),this.timeScale(this._duration/e),this}return this._duration*this._timeScale},e.prototype.reset=function(){this._isCompleted=!1,this._isStarted=!1,this.progress(0)},N2A.Animation=e}(),function(e){function t(){this.clearStack()}function n(e){return e.n2Transform||(e.n2Transform=new i),e.n2Transform}function i(e){this.data={x:0,y:0,z:0,rotationX:0,rotationY:0,rotationZ:0,scaleX:1,scaleY:1,scaleZ:1,scale:1}}var r={};t.prototype.set=function(t,n,i,r){t.length||(t=[t]);for(var o=0;o<t.length;o++){var a=t[o],s=e.inArray(a,this.elements);-1==s&&(s=this.elements.push(a)-1,this.stack[s]={}),""!=r&&(i+=r),this.stack[s][n]=i}if(!this.registeredToTick){var T=this;N2A.RAF.addPostTick(function(){T.flush()}),this.registeredToTick=!0,N2A.RAF._isTicking||N2A.RAF.postTick()}},t.prototype.flush=function(){for(var e=0;e<this.elements.length;e++){var t=this.elements[e];for(var n in this.prepareStack(t,this.stack[e])){var i=nModernizr.prefixed(n);i&&(t.style[i]=this.stack[e][n])}}this.clearStack()},t.prototype.prepareStack=function(e,t){for(var n in t)"undefined"!=typeof r[n]&&r[n](e).prepare(t);return t},t.prototype.clearStack=function(){this.registeredToTick=!1,this.elements=[],this.stack=[]};t.prototype.makeTransitionData=function(e,t,n,i){var r,o,a,s,T;if(t.match(/transformOrigin|perspective/)){if(i)return{startValue:i,endValue:i,unit:"",range:0};if(n)return{startValue:n,endValue:n,unit:"",range:0}}return"undefined"==typeof n&&(n=this.getProperty(e,t)),s=this.separateValue(t,n),n=s[0],o=s[1],"undefined"==typeof i&&(i=this.getProperty(e,t)),T=this.separateValue(t,i),i=T[0],a=T[1],r=a||o,a!=r&&(i=this.transformUnit(e,t,i,a,r)),o!=r&&(n=this.transformUnit(e,t,n,o,r)),{startValue:n,endValue:i,unit:r,range:i-n}},t.prototype.getProperty=function(t,n){if("undefined"!=typeof r[n])return r[n](t).get(n);var i=nModernizr.prefixed(n);if(i){var o=e(t).css(n);return"auto"==o?0:o}},t.prototype.transformUnit=function(e,t,n,i,r){if(0==n)return 0;var o="";switch(t){case"left":case"right":o="width";break;case"top":case"bottom":o="height";break;default:o=t}if("px"==i&&"%"==r){var a=this.getProperty(e.parent(),o),s=this.separateValue(o,a);return n/s[0]*100}if("%"==i&&"px"==r){var a=this.getProperty(e.parent(),o),s=this.separateValue(o,a);return n/100*s[0]}return n},t.prototype.parsePropertyValue=function(e,t){var n=void 0,i=void 0;return N2A.isArray(t)?(n=t[0],i=t[1]):n=t,N2A.isFunction(n)&&(n=n.call(e)),N2A.isFunction(i)&&(i=i.call(e)),[n||0,i]},t.prototype.separateValue=function(e,t){var n,i;return i=(t||"0").toString().toLowerCase().replace(/[%A-z]+$/,function(e){return n=e,""}),n||(n=this.getUnitType(e)),[parseFloat(i),n]},t.prototype.getUnitType=function(e){return/(^(x|y|z|rotationX|rotationY|rotationZ|scale|scaleX|scaleY|opacity)$)/i.test(e)?"":"px"},N2A.CSS=t,r.x=n,r.y=n,r.z=n,r.rotationX=n,r.rotationY=n,r.rotationZ=n,r.scale=n,r.scaleX=n,r.scaleY=n,r.scaleZ=n,i.prototype.get=function(e){return this.data[e]};var o=Math.PI/180;i.prototype.prepare=function(e){"undefined"!=typeof e.scale&&(e.scaleX=e.scale,e.scaleY=e.scale,delete e.scale);for(var t in this.data)"undefined"!=typeof e[t]&&(this.data[t]=e[t],delete e[t]);return this.data.scale=this.data.scaleX,e.transform=this.matrix3d(this.data.x,this.data.y,this.data.z,this.data.scaleX,this.data.scaleY,this.data.rotationX,this.data.rotationY,this.data.rotationZ),e},i.prototype.matrix3d=function(e,t,n,i,r,a,s,T){var l=Math.cos(a*o),u=Math.sin(a*o),c=Math.cos(s*o),h=Math.sin(s*o),S=Math.cos(T*o),d=Math.sin(T*o),p=new Array(16);return p[0]=c*S*i,p[1]=d,p[2]=h,p[3]=0,p[4]=-1*d,p[5]=l*S*r,p[6]=u,p[7]=0,p[8]=-1*h,p[9]=-1*u,p[10]=c*l,p[11]=0,p[12]=e,p[13]=t,p[14]=n,p[15]=1,"matrix3d("+p[0]+","+p[1]+","+p[2]+","+p[3]+","+p[4]+","+p[5]+","+p[6]+","+p[7]+","+p[8]+","+p[9]+","+p[10]+","+p[11]+","+p[12]+","+p[13]+","+p[14]+","+p[15]+")"}}(n2),function(e){function t(t,r){this.ease="linear",this._tweenContainer=null,this._setContainer=null;var o,a=null;switch(arguments.length){case 4:a=e.extend(!0,{},arguments[2]),o=arguments[3],o?(this._mode=i.FROMTO,o=e.extend(!0,{},o)):this._mode=i.FROM;break;default:this._mode=i.TO,a={},o=e.extend(!0,{},arguments[2])}if(this._target=e(t),this.fromParams=a,N2A.Animation.call(this,o),this.parseParameters({duration:r}),(this._mode==i.FROM||this._mode==i.FROMTO)&&this._immediateRender){null===this._tweenContainer&&this._makeTweenContainer(this.fromParams,this.toParams);for(var s in this._tweenContainer){var T=this._tweenContainer[s];n.set(this._target,s,T.startValue,T.unit)}for(var s in this._setContainer){var T=this._setContainer[s];n.set(this._target,s,T.endValue,T.unit)}}}var n=new N2A.CSS,i={FROM:1,FROMTO:2,TO:3};t.prototype=Object.create(N2A.Animation.prototype),t.prototype.constructor=t,t.prototype.initParameters=function(){this.parseParameters(this.fromParams),N2A.Animation.prototype.initParameters.apply(this,arguments)},t.prototype.parseParameters=function(e){e&&(e.ease&&(this.ease=e.ease,delete e.ease),N2A.Animation.prototype.parseParameters.apply(this,arguments))},t.prototype._onStart=function(){null===this._tweenContainer&&this._makeTweenContainer(this.fromParams,this.toParams);for(var e in this._setContainer){var t=this._setContainer[e];n.set(this._target,e,t.endValue,t.unit)}N2A.Animation.prototype._onStart.call(this)},t.prototype._onUpdate=function(){for(var e in this._tweenContainer){var t=this._tweenContainer[e];n.set(this._target,e,N2A.easings[this.ease](this._progress,t.startValue,t.range*this._progress,1),t.unit)}N2A.Animation.prototype._onUpdate.call(this)},t.prototype._makeTweenContainer=function(e,t){if(this._setContainer={},this._tweenContainer={},t)for(var i in t){var r=n.makeTransitionData(this._target,i,e[i],t[i]);0==r.range?this._setContainer[i]=r:this._tweenContainer[i]=r}else for(var i in e){var r=n.makeTransitionData(this._target,i,e[i]);0==r.range?this._setContainer[i]=r:this._tweenContainer[i]=r}},t.set=function(t,i){for(var r in i)n.set(e(t),r,i[r],"")},t.to=function(e,n,i){return new t(e,n,i)},t.fromTo=function(e,n,i,r){return new t(e,n,i,r)},t.from=function(e,n,i){return new t(e,n,i,null)},window.NextendTween=t}(n2),function(e){function t(t){this.originalParams=e.extend(!0,{},t),this._tweens=[],N2A.Animation.call(this,t),this._duration=0}t.prototype=Object.create(N2A.Animation.prototype),t.prototype.constructor=t,t.prototype._onUpdate=function(){if(this.tweensContainer)for(var e=0;e<this.tweensContainer.length;e++){var t=this.tweensContainer[e],n=Math.min(1,(this._progress-t.startProgress)/(t.endProgress-t.startProgress));t.tween._isCompleted&&n<=t.endProgress&&t.tween.reset(),!t.tween._isStarted&&n>=0&&0==t.tween.progress()&&t.tween._onStart(),t.tween._isStarted&&(1!=n||t.tween._isCompleted?n>=0&&1>n?t.tween.progress(n):0>n&&0!=t.tween.progress()&&t.tween.progress(0):(t.tween.progress(n),t.tween._onComplete()))}N2A.Animation.prototype._onUpdate.call(this),N2A.RAF._isTicking||N2A.RAF.postTick()},t.prototype.addTween=function(e){e.pause(),e.setTimeline(this);var t=0;t=arguments.length>1?this._parsePosition(arguments[1]):this._parsePosition();var n=e.delay();n>0&&(t+=n,e.delay(0)),e.startTime(t),this._tweens.push(e);var i=e.totalDuration()+t;i>this._duration&&(this._duration=i),this.makeCache()},t.prototype.clear=function(){this.paused()||this.pause(),t.call(this,this.originalParams)},t.prototype.add=function(e,t){this.addTween(e,t)},t.prototype.set=function(e,t,n){this.addTween(NextendTween.to(e,.05,t),n)},t.prototype.to=function(e,t,n,i){this.addTween(NextendTween.to(e,t,n),i)},t.prototype.fromTo=function(e,t,n,i,r){this.addTween(NextendTween.fromTo(e,t,n,i),r)},t.prototype.from=function(e,t,n,i){this.addTween(NextendTween.from(e,t,n),i)},t.prototype._play=function(){if(0==this._progress)for(var e=0;e<this._tweens.length;e++)this._tweens[e].pause(0);N2A.Animation.prototype._play.apply(this,arguments)},t.prototype._parsePosition=function(){var e="+=0";arguments.length>0&&"undefined"!=typeof arguments[0]&&!isNaN(arguments[0])&&(e=arguments[0]);var t=0;switch(typeof e){case"string":switch(e.substr(0,2)){case"+=":t=this.duration()+parseFloat(e.substr(2));break;case"-=":t=this.duration()-parseFloat(e.substr(2))}break;default:t=parseFloat(e)}return Math.max(0,t)},t.prototype.makeCache=function(){var e=this.totalDuration();this.tweensContainer=[];for(var t=0;t<this._tweens.length;t++){var n=this._tweens[t],i=n.startTime()/e,r=(n.startTime()+n.totalDuration())/e;this.tweensContainer.push({tween:n,startProgress:i,endProgress:r,range:r-i})}},window.NextendTimeline=t}(n2),function(){N2A.easings={linear:function(e,t,n,i){return n+t},easeInQuad:function(e,t,n,i){return n*(e/=i)*e+t},easeOutQuad:function(e,t,n,i){return-n*(e/=i)*(e-2)+t},easeInOutQuad:function(e,t,n,i){return(e/=i/2)<1?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t},easeInCubic:function(e,t,n,i){return n*(e/=i)*e*e+t},easeOutCubic:function(e,t,n,i){return n*((e=e/i-1)*e*e+1)+t},easeInOutCubic:function(e,t,n,i){return(e/=i/2)<1?n/2*e*e*e+t:n/2*((e-=2)*e*e+2)+t},easeInQuart:function(e,t,n,i){return n*(e/=i)*e*e*e+t},easeOutQuart:function(e,t,n,i){return-n*((e=e/i-1)*e*e*e-1)+t},easeInOutQuart:function(e,t,n,i){return(e/=i/2)<1?n/2*e*e*e*e+t:-n/2*((e-=2)*e*e*e-2)+t},easeInQuint:function(e,t,n,i){return n*(e/=i)*e*e*e*e+t},easeOutQuint:function(e,t,n,i){return n*((e=e/i-1)*e*e*e*e+1)+t},easeInOutQuint:function(e,t,n,i){return(e/=i/2)<1?n/2*e*e*e*e*e+t:n/2*((e-=2)*e*e*e*e+2)+t},easeInSine:function(e,t,n,i){return-n*Math.cos(e/i*(Math.PI/2))+n+t},easeOutSine:function(e,t,n,i){return n*Math.sin(e/i*(Math.PI/2))+t},easeInOutSine:function(e,t,n,i){return-n/2*(Math.cos(Math.PI*e/i)-1)+t},easeInExpo:function(e,t,n,i){return 0==e?t:n*Math.pow(2,10*(e/i-1))+t},easeOutExpo:function(e,t,n,i){return e==i?t+n:n*(-Math.pow(2,-10*e/i)+1)+t},easeInOutExpo:function(e,t,n,i){return 0==e?t:e==i?t+n:(e/=i/2)<1?n/2*Math.pow(2,10*(e-1))+t:n/2*(-Math.pow(2,-10*--e)+2)+t},easeInCirc:function(e,t,n,i){return-n*(Math.sqrt(1-(e/=i)*e)-1)+t},easeOutCirc:function(e,t,n,i){return n*Math.sqrt(1-(e=e/i-1)*e)+t},easeInOutCirc:function(e,t,n,i){return(e/=i/2)<1?-n/2*(Math.sqrt(1-e*e)-1)+t:n/2*(Math.sqrt(1-(e-=2)*e)+1)+t},easeInElastic:function(e,t,n,i){var r=1.70158,o=0,a=n;if(0==e)return t;if(1==(e/=i))return t+n;if(o||(o=.3*i),a<Math.abs(n)){a=n;var r=o/4}else var r=o/(2*Math.PI)*Math.asin(n/a);return-(a*Math.pow(2,10*(e-=1))*Math.sin((e*i-r)*(2*Math.PI)/o))+t},easeOutElastic:function(e,t,n,i){var r=1.70158,o=0,a=n;if(0==e)return t;if(1==(e/=i))return t+n;if(o||(o=.3*i),a<Math.abs(n)){a=n;var r=o/4}else var r=o/(2*Math.PI)*Math.asin(n/a);return a*Math.pow(2,-10*e)*Math.sin((e*i-r)*(2*Math.PI)/o)+n+t},easeInOutElastic:function(e,t,n,i){var r=1.70158,o=0,a=n;if(0==e)return t;if(2==(e/=i/2))return t+n;if(o||(o=i*(.3*1.5)),a<Math.abs(n)){a=n;var r=o/4}else var r=o/(2*Math.PI)*Math.asin(n/a);return 1>e?-.5*(a*Math.pow(2,10*(e-=1))*Math.sin((e*i-r)*(2*Math.PI)/o))+t:a*Math.pow(2,-10*(e-=1))*Math.sin((e*i-r)*(2*Math.PI)/o)*.5+n+t},easeInBack:function(e,t,n,i,r){return void 0==r&&(r=1.70158),n*(e/=i)*e*((r+1)*e-r)+t},easeOutBack:function(e,t,n,i,r){return void 0==r&&(r=1.70158),n*((e=e/i-1)*e*((r+1)*e+r)+1)+t},easeInOutBack:function(e,t,n,i,r){return void 0==r&&(r=1.70158),(e/=i/2)<1?n/2*(e*e*(((r*=1.525)+1)*e-r))+t:n/2*((e-=2)*e*(((r*=1.525)+1)*e+r)+2)+t},easeInBounce:function(e,t,n,i){return n-N2A.easing.easeOutBounce(i-e,0,n,i)+t},easeOutBounce:function(e,t,n,i){return(e/=i)<1/2.75?n*(7.5625*e*e)+t:2/2.75>e?n*(7.5625*(e-=1.5/2.75)*e+.75)+t:2.5/2.75>e?n*(7.5625*(e-=2.25/2.75)*e+.9375)+t:n*(7.5625*(e-=2.625/2.75)*e+.984375)+t},easeInOutBounce:function(e,t,n,i){return i/2>e?.5*N2A.easing.easeInBounce(2*e,0,n,i)+t:.5*N2A.easing.easeOutBounce(2*e-i,0,n,i)+.5*n+t}}}(n2);
1
+ function N2EventBurrito(e,t){function n(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}function i(e,t,n,i){return t?(e.addEventListener?e.addEventListener(t,n,i):e.attachEvent("on"+t,n),{remove:function(){r(e,t,n,i)}}):void 0}function r(e,t,n,i){t&&(e.removeEventListener?e.removeEventListener(t,n,i):e.detachEvent("on"+t,n))}function o(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function a(e){if(P={x:(p?e.clientX:e.touches[0].clientX)-b.x,y:(p?e.clientY:e.touches[0].clientY)-b.y,time:Number(new Date)-b.time},P.time-m[m.length-1].time){for(var t=0;t<m.length-1&&P.time-m[t].time>80;t++);A={x:(P.x-m[t].x)/(P.time-m[t].time),y:(P.y-m[t].y)/(P.time-m[t].time)},m.length>=5&&m.shift(),m.push({x:P.x,y:P.y,time:P.time})}}function s(e,t){G=!0,p=t,g[p](e)||B(e.target)||(i(document,C[p][1],T,"touchmove"==C[p][1]?{passive:!1}:!1),i(document,C[p][2],l,!1),i(document,C[p][3],l,!1),h.preventDefault&&p&&o(e),b={x:p?e.clientX:e.touches[0].clientX,y:p?e.clientY:e.touches[0].clientY,time:Number(new Date)},S=void 0,d=!1,P={x:0,y:0,time:0},A={x:0,y:0},m=[{x:0,y:0,time:0}],h.start(e,b),T(e))}function T(e){"x"==h.axis&&(!h.preventScroll&&S||g[p](e))||B(e.target)||(a(e),(Math.abs(P.x)>h.clickTolerance||Math.abs(P.y)>h.clickTolerance)&&(G=!1),void 0===S&&3!==p&&(S=Math.abs(P.x)<Math.abs(P.y)&&!h.preventScroll)||h.move(e,b,P,A,d)&&h.preventDefault&&o(e))}function l(e){p&&a(e),!G&&e.target&&e.target.blur&&e.target.blur(),r(document,C[p][1],T,"touchmove"==C[p][1]?{passive:!1}:!1),r(document,C[p][2],l,!1),r(document,C[p][3],l,!1),h.end(e,b,P,A,d),d=!1}function u(){(!n2const.isIOS||n2const.IOSVersion<10)&&M.push(i(document,"scroll",function(e){d=!0})),M.push(i(e,C[v][0],function(e){s(e,v)})),M.push(i(e,"dragstart",o)),h.mouse&&!v&&M.push(i(e,C[3][0],function(e){s(e,3)})),M.push(i(e,"click",function(e){G?h.click(e):o(e)}))}var c=function(){return!0},h={preventDefault:!0,clickTolerance:0,preventScroll:!1,mouse:!0,axis:"x",start:c,move:c,end:c,click:c};t&&n(h,t);var S,d,p,f={pointerEvents:!!window.navigator.pointerEnabled,msPointerEvents:!!window.navigator.msPointerEnabled},b={},P={},A={},m=[],M=[],G=!0,v=f.pointerEvents?1:f.msPointerEvents?2:0,C=[["touchstart","touchmove","touchend","touchcancel"],["pointerdown","pointermove","pointerup","pointercancel"],["MSPointerDown","MSPointerMove","MSPointerUp","MSPointerCancel"],["mousedown","mousemove","mouseup",!1]],g=[function(e){return e.touches&&e.touches.length>1||e.scale&&1!==e.scale},function(e){return!e.isPrimary||e.buttons&&1!==e.buttons||!h.mouse&&"touch"!==e.pointerType&&"pen"!==e.pointerType},function(e){return!e.isPrimary||e.buttons&&1!==e.buttons||!h.mouse&&e.pointerType!==e.MSPOINTER_TYPE_TOUCH&&e.pointerType!==e.MSPOINTER_TYPE_PEN},function(e){return e.buttons&&1!==e.buttons}],B=function(e){var t=e.tagName;return!("INPUT"!=t&&"TEXTAREA"!=t&&"SELECT"!=t&&"BUTTON"!=t&&"VIDEO"!=t&&!n2(e).hasClass("n2-scrollable")&&!n2(e).closest(".n2-scrollable").length)};return u(),{getClicksAllowed:function(){return G},kill:function(){for(var e=M.length-1;e>=0;e--)M[e].remove()}}}if(window.n2c=function(e){var t=!1,n={logs:[],errors:[],warns:[],infos:[]};return{log:function(){n.logs.push(arguments),t&&e.log&&e.log.apply(e,arguments)},warn:function(){n.warns.push(arguments),t&&e.warn&&e.warn.apply(e,arguments)},error:function(){n.errors.push(arguments),t&&e.error&&e.error.apply(e,arguments)},info:function(i){n.infos.push(arguments),t&&e.info&&e.info.apply(e,arguments)},debug:function(e){t=e},logArray:function(){return n}}}(window.console),window.n2const={isIOS:/iPad|iPhone|iPod/.test(navigator.platform),isEdge:/Edge\/\d./i.test(navigator.userAgent),isFirefox:navigator.userAgent.toLowerCase().indexOf("firefox")>-1,isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Silk/i.test(navigator.userAgent),isPhone:/Android/i.test(navigator.userAgent)&&/mobile/i.test(navigator.userAgent)||/webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),isTablet:/Android|iPad|tablet|Silk/i.test(navigator.userAgent),isIE:function(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var n=e.indexOf("Trident/");if(n>0){var i=e.indexOf("rv:");return parseInt(e.substring(i+3,e.indexOf(".",i)),10)}var r=e.indexOf("Edge/");return r>0?parseInt(e.substring(r+5,e.indexOf(".",r)),10):!1}()},window.n2const.isIOS){var match=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);match?window.n2const.IOSVersion=match[1]:window.n2const.IOSVersion=100}window.n2const.isPhone&&(window.n2const.isTablet=!1),nextend.isRetina=function(){return window.matchMedia&&(window.matchMedia("only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx), only screen and (min-resolution: 75.6dpcm)").matches||window.matchMedia("only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2/1), only screen and (min--moz-device-pixel-ratio: 2), only screen and (min-device-pixel-ratio: 2)").matches)||window.devicePixelRatio&&window.devicePixelRatio>=2}(),String.prototype.capitalize=function(){return this.charAt(0).toUpperCase()+this.slice(1)},window.n2passiveEvents=!1;try{var opts=Object.defineProperty({},"passive",{get:function(){window.n2passiveEvents=!0}});window.addEventListener("test",null,opts)}catch(e){}window.n2jQuery.ready(function(){nextend.triggerResize=function(e){var t=100,n=null,i=e(window);return function(){n&&clearTimeout(n),n=setTimeout(function(){i.trigger("resize"),n=null},t)}}(n2)}),nextend.shouldPreventClick=!1,nextend.preventClick=function(){nextend.shouldPreventClick||(nextend.shouldPreventClick=!0,setTimeout(function(){nextend.shouldPreventClick=!1},300))},nextend.shouldPreventMouseUp=!1,nextend.preventMouseUp=function(){nextend.shouldPreventMouseUp||(nextend.shouldPreventMouseUp=!0,setTimeout(function(){nextend.shouldPreventMouseUp=!1},300))};var isRtl=!1;"rtl"==document.documentElement.getAttribute("dir")?(isRtl=!0,nextend.rtl={isRtl:!0,marginLeft:"marginRight",marginRight:"marginLeft",left:"right",right:"left",next:"previous",previous:"next",modifier:-1}):(document.documentElement.setAttribute("dir","ltr"),nextend.rtl={isRtl:!1,marginLeft:"marginLeft",marginRight:"marginRight",left:"left",right:"right",next:"next",previous:"previous",modifier:1}),nextend.isRTL=function(){return isRtl},Array.prototype.filter||(Array.prototype.filter=function(e){"use strict";if(void 0===this||null===this)throw new TypeError;var t=Object(this),n=t.length>>>0;if("function"!=typeof e)throw new TypeError;for(var i=[],r=arguments[1],o=0;n>o;o++)if(o in t){var a=t[o];e.call(r,a,o,t)&&i.push(a)}return i}),"function"!=typeof Object.create&&(Object.create=function(){var e=function(){};return function(t){if(arguments.length>1)throw Error("Second argument not supported");if("object"!=typeof t)throw TypeError("Argument must be an object");e.prototype=t;var n=new e;return e.prototype=null,n}}()),window.Base64=function(){},Base64.prototype.encode=function(e){return Base64.encode(e)},Base64.prototype.decode=function(e){return Base64.decode(e)},Base64._keyStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Base64.encode=function(e){var t,n,i,r,o,a,s,T="",l=0;for(e=Base64._utf8_encode(e);l<e.length;)t=e.charCodeAt(l++),n=e.charCodeAt(l++),i=e.charCodeAt(l++),r=t>>2,o=(3&t)<<4|n>>4,a=(15&n)<<2|i>>6,s=63&i,isNaN(n)?a=s=64:isNaN(i)&&(s=64),T=T+this._keyStr.charAt(r)+this._keyStr.charAt(o)+this._keyStr.charAt(a)+this._keyStr.charAt(s);return T},Base64.decode=function(e){var t,n,i,r,o,a,s,T="",l=0;for(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");l<e.length;)r=this._keyStr.indexOf(e.charAt(l++)),o=this._keyStr.indexOf(e.charAt(l++)),a=this._keyStr.indexOf(e.charAt(l++)),s=this._keyStr.indexOf(e.charAt(l++)),t=r<<2|o>>4,n=(15&o)<<4|a>>2,i=(3&a)<<6|s,T+=String.fromCharCode(t),64!=a&&(T+=String.fromCharCode(n)),64!=s&&(T+=String.fromCharCode(i));return T=Base64._utf8_decode(T)},Base64._utf8_encode=function(e){e=e.replace(/\r\n/g,"\n");for(var t="",n=0;n<e.length;n++){var i=e.charCodeAt(n);128>i?t+=String.fromCharCode(i):i>127&&2048>i?(t+=String.fromCharCode(i>>6|192),t+=String.fromCharCode(63&i|128)):(t+=String.fromCharCode(i>>12|224),t+=String.fromCharCode(i>>6&63|128),t+=String.fromCharCode(63&i|128))}return t},Base64._utf8_decode=function(e){for(var t="",n=0,i=c1=c2=0;n<e.length;)i=e.charCodeAt(n),128>i?(t+=String.fromCharCode(i),n++):i>191&&224>i?(c2=e.charCodeAt(n+1),t+=String.fromCharCode((31&i)<<6|63&c2),n+=2):(c2=e.charCodeAt(n+1),c3=e.charCodeAt(n+2),t+=String.fromCharCode((15&i)<<12|(63&c2)<<6|63&c3),n+=3);return t},!function(e,t){e(function(){"use strict";function e(e,t){return null!=e&&null!=t&&e.toLowerCase()===t.toLowerCase()}function n(e,t){var n,i,r=e.length;if(!r||!t)return!1;for(n=t.toLowerCase(),i=0;r>i;++i)if(n===e[i].toLowerCase())return!0;return!1}function i(e){for(var t in e)s.call(e,t)&&(e[t]=new RegExp(e[t],"i"))}function r(e,t){this.ua=e||"",this._cache={},this.maxPhoneWidth=t||600}var o={};o.mobileDetectRules={phones:{iPhone:"\\biPhone\\b|\\biPod\\b",BlackBerry:"BlackBerry|\\bBB10\\b|rim[0-9]+",HTC:"HTC|HTC.*(Sensation|Evo|Vision|Explorer|6800|8100|8900|A7272|S510e|C110e|Legend|Desire|T8282)|APX515CKT|Qtek9090|APA9292KT|HD_mini|Sensation.*Z710e|PG86100|Z715e|Desire.*(A8181|HD)|ADR6200|ADR6400L|ADR6425|001HT|Inspire 4G|Android.*\\bEVO\\b|T-Mobile G1|Z520m",Nexus:"Nexus One|Nexus S|Galaxy.*Nexus|Android.*Nexus.*Mobile|Nexus 4|Nexus 5|Nexus 6",Dell:"Dell.*Streak|Dell.*Aero|Dell.*Venue|DELL.*Venue Pro|Dell Flash|Dell Smoke|Dell Mini 3iX|XCD28|XCD35|\\b001DL\\b|\\b101DL\\b|\\bGS01\\b",Motorola:"Motorola|DROIDX|DROID BIONIC|\\bDroid\\b.*Build|Android.*Xoom|HRI39|MOT-|A1260|A1680|A555|A853|A855|A953|A955|A956|Motorola.*ELECTRIFY|Motorola.*i1|i867|i940|MB200|MB300|MB501|MB502|MB508|MB511|MB520|MB525|MB526|MB611|MB612|MB632|MB810|MB855|MB860|MB861|MB865|MB870|ME501|ME502|ME511|ME525|ME600|ME632|ME722|ME811|ME860|ME863|ME865|MT620|MT710|MT716|MT720|MT810|MT870|MT917|Motorola.*TITANIUM|WX435|WX445|XT300|XT301|XT311|XT316|XT317|XT319|XT320|XT390|XT502|XT530|XT531|XT532|XT535|XT603|XT610|XT611|XT615|XT681|XT701|XT702|XT711|XT720|XT800|XT806|XT860|XT862|XT875|XT882|XT883|XT894|XT901|XT907|XT909|XT910|XT912|XT928|XT926|XT915|XT919|XT925|XT1021|\\bMoto E\\b",Samsung:"Samsung|SM-G9250|GT-19300|SGH-I337|BGT-S5230|GT-B2100|GT-B2700|GT-B2710|GT-B3210|GT-B3310|GT-B3410|GT-B3730|GT-B3740|GT-B5510|GT-B5512|GT-B5722|GT-B6520|GT-B7300|GT-B7320|GT-B7330|GT-B7350|GT-B7510|GT-B7722|GT-B7800|GT-C3010|GT-C3011|GT-C3060|GT-C3200|GT-C3212|GT-C3212I|GT-C3262|GT-C3222|GT-C3300|GT-C3300K|GT-C3303|GT-C3303K|GT-C3310|GT-C3322|GT-C3330|GT-C3350|GT-C3500|GT-C3510|GT-C3530|GT-C3630|GT-C3780|GT-C5010|GT-C5212|GT-C6620|GT-C6625|GT-C6712|GT-E1050|GT-E1070|GT-E1075|GT-E1080|GT-E1081|GT-E1085|GT-E1087|GT-E1100|GT-E1107|GT-E1110|GT-E1120|GT-E1125|GT-E1130|GT-E1160|GT-E1170|GT-E1175|GT-E1180|GT-E1182|GT-E1200|GT-E1210|GT-E1225|GT-E1230|GT-E1390|GT-E2100|GT-E2120|GT-E2121|GT-E2152|GT-E2220|GT-E2222|GT-E2230|GT-E2232|GT-E2250|GT-E2370|GT-E2550|GT-E2652|GT-E3210|GT-E3213|GT-I5500|GT-I5503|GT-I5700|GT-I5800|GT-I5801|GT-I6410|GT-I6420|GT-I7110|GT-I7410|GT-I7500|GT-I8000|GT-I8150|GT-I8160|GT-I8190|GT-I8320|GT-I8330|GT-I8350|GT-I8530|GT-I8700|GT-I8703|GT-I8910|GT-I9000|GT-I9001|GT-I9003|GT-I9010|GT-I9020|GT-I9023|GT-I9070|GT-I9082|GT-I9100|GT-I9103|GT-I9220|GT-I9250|GT-I9300|GT-I9305|GT-I9500|GT-I9505|GT-M3510|GT-M5650|GT-M7500|GT-M7600|GT-M7603|GT-M8800|GT-M8910|GT-N7000|GT-S3110|GT-S3310|GT-S3350|GT-S3353|GT-S3370|GT-S3650|GT-S3653|GT-S3770|GT-S3850|GT-S5210|GT-S5220|GT-S5229|GT-S5230|GT-S5233|GT-S5250|GT-S5253|GT-S5260|GT-S5263|GT-S5270|GT-S5300|GT-S5330|GT-S5350|GT-S5360|GT-S5363|GT-S5369|GT-S5380|GT-S5380D|GT-S5560|GT-S5570|GT-S5600|GT-S5603|GT-S5610|GT-S5620|GT-S5660|GT-S5670|GT-S5690|GT-S5750|GT-S5780|GT-S5830|GT-S5839|GT-S6102|GT-S6500|GT-S7070|GT-S7200|GT-S7220|GT-S7230|GT-S7233|GT-S7250|GT-S7500|GT-S7530|GT-S7550|GT-S7562|GT-S7710|GT-S8000|GT-S8003|GT-S8500|GT-S8530|GT-S8600|SCH-A310|SCH-A530|SCH-A570|SCH-A610|SCH-A630|SCH-A650|SCH-A790|SCH-A795|SCH-A850|SCH-A870|SCH-A890|SCH-A930|SCH-A950|SCH-A970|SCH-A990|SCH-I100|SCH-I110|SCH-I400|SCH-I405|SCH-I500|SCH-I510|SCH-I515|SCH-I600|SCH-I730|SCH-I760|SCH-I770|SCH-I830|SCH-I910|SCH-I920|SCH-I959|SCH-LC11|SCH-N150|SCH-N300|SCH-R100|SCH-R300|SCH-R351|SCH-R400|SCH-R410|SCH-T300|SCH-U310|SCH-U320|SCH-U350|SCH-U360|SCH-U365|SCH-U370|SCH-U380|SCH-U410|SCH-U430|SCH-U450|SCH-U460|SCH-U470|SCH-U490|SCH-U540|SCH-U550|SCH-U620|SCH-U640|SCH-U650|SCH-U660|SCH-U700|SCH-U740|SCH-U750|SCH-U810|SCH-U820|SCH-U900|SCH-U940|SCH-U960|SCS-26UC|SGH-A107|SGH-A117|SGH-A127|SGH-A137|SGH-A157|SGH-A167|SGH-A177|SGH-A187|SGH-A197|SGH-A227|SGH-A237|SGH-A257|SGH-A437|SGH-A517|SGH-A597|SGH-A637|SGH-A657|SGH-A667|SGH-A687|SGH-A697|SGH-A707|SGH-A717|SGH-A727|SGH-A737|SGH-A747|SGH-A767|SGH-A777|SGH-A797|SGH-A817|SGH-A827|SGH-A837|SGH-A847|SGH-A867|SGH-A877|SGH-A887|SGH-A897|SGH-A927|SGH-B100|SGH-B130|SGH-B200|SGH-B220|SGH-C100|SGH-C110|SGH-C120|SGH-C130|SGH-C140|SGH-C160|SGH-C170|SGH-C180|SGH-C200|SGH-C207|SGH-C210|SGH-C225|SGH-C230|SGH-C417|SGH-C450|SGH-D307|SGH-D347|SGH-D357|SGH-D407|SGH-D415|SGH-D780|SGH-D807|SGH-D980|SGH-E105|SGH-E200|SGH-E315|SGH-E316|SGH-E317|SGH-E335|SGH-E590|SGH-E635|SGH-E715|SGH-E890|SGH-F300|SGH-F480|SGH-I200|SGH-I300|SGH-I320|SGH-I550|SGH-I577|SGH-I600|SGH-I607|SGH-I617|SGH-I627|SGH-I637|SGH-I677|SGH-I700|SGH-I717|SGH-I727|SGH-i747M|SGH-I777|SGH-I780|SGH-I827|SGH-I847|SGH-I857|SGH-I896|SGH-I897|SGH-I900|SGH-I907|SGH-I917|SGH-I927|SGH-I937|SGH-I997|SGH-J150|SGH-J200|SGH-L170|SGH-L700|SGH-M110|SGH-M150|SGH-M200|SGH-N105|SGH-N500|SGH-N600|SGH-N620|SGH-N625|SGH-N700|SGH-N710|SGH-P107|SGH-P207|SGH-P300|SGH-P310|SGH-P520|SGH-P735|SGH-P777|SGH-Q105|SGH-R210|SGH-R220|SGH-R225|SGH-S105|SGH-S307|SGH-T109|SGH-T119|SGH-T139|SGH-T209|SGH-T219|SGH-T229|SGH-T239|SGH-T249|SGH-T259|SGH-T309|SGH-T319|SGH-T329|SGH-T339|SGH-T349|SGH-T359|SGH-T369|SGH-T379|SGH-T409|SGH-T429|SGH-T439|SGH-T459|SGH-T469|SGH-T479|SGH-T499|SGH-T509|SGH-T519|SGH-T539|SGH-T559|SGH-T589|SGH-T609|SGH-T619|SGH-T629|SGH-T639|SGH-T659|SGH-T669|SGH-T679|SGH-T709|SGH-T719|SGH-T729|SGH-T739|SGH-T746|SGH-T749|SGH-T759|SGH-T769|SGH-T809|SGH-T819|SGH-T839|SGH-T919|SGH-T929|SGH-T939|SGH-T959|SGH-T989|SGH-U100|SGH-U200|SGH-U800|SGH-V205|SGH-V206|SGH-X100|SGH-X105|SGH-X120|SGH-X140|SGH-X426|SGH-X427|SGH-X475|SGH-X495|SGH-X497|SGH-X507|SGH-X600|SGH-X610|SGH-X620|SGH-X630|SGH-X700|SGH-X820|SGH-X890|SGH-Z130|SGH-Z150|SGH-Z170|SGH-ZX10|SGH-ZX20|SHW-M110|SPH-A120|SPH-A400|SPH-A420|SPH-A460|SPH-A500|SPH-A560|SPH-A600|SPH-A620|SPH-A660|SPH-A700|SPH-A740|SPH-A760|SPH-A790|SPH-A800|SPH-A820|SPH-A840|SPH-A880|SPH-A900|SPH-A940|SPH-A960|SPH-D600|SPH-D700|SPH-D710|SPH-D720|SPH-I300|SPH-I325|SPH-I330|SPH-I350|SPH-I500|SPH-I600|SPH-I700|SPH-L700|SPH-M100|SPH-M220|SPH-M240|SPH-M300|SPH-M305|SPH-M320|SPH-M330|SPH-M350|SPH-M360|SPH-M370|SPH-M380|SPH-M510|SPH-M540|SPH-M550|SPH-M560|SPH-M570|SPH-M580|SPH-M610|SPH-M620|SPH-M630|SPH-M800|SPH-M810|SPH-M850|SPH-M900|SPH-M910|SPH-M920|SPH-M930|SPH-N100|SPH-N200|SPH-N240|SPH-N300|SPH-N400|SPH-Z400|SWC-E100|SCH-i909|GT-N7100|GT-N7105|SCH-I535|SM-N900A|SGH-I317|SGH-T999L|GT-S5360B|GT-I8262|GT-S6802|GT-S6312|GT-S6310|GT-S5312|GT-S5310|GT-I9105|GT-I8510|GT-S6790N|SM-G7105|SM-N9005|GT-S5301|GT-I9295|GT-I9195|SM-C101|GT-S7392|GT-S7560|GT-B7610|GT-I5510|GT-S7582|GT-S7530E|GT-I8750|SM-G9006V|SM-G9008V|SM-G9009D|SM-G900A|SM-G900D|SM-G900F|SM-G900H|SM-G900I|SM-G900J|SM-G900K|SM-G900L|SM-G900M|SM-G900P|SM-G900R4|SM-G900S|SM-G900T|SM-G900V|SM-G900W8|SHV-E160K|SCH-P709|SCH-P729|SM-T2558|GT-I9205",LG:"\\bLG\\b;|LG[- ]?(C800|C900|E400|E610|E900|E-900|F160|F180K|F180L|F180S|730|855|L160|LS740|LS840|LS970|LU6200|MS690|MS695|MS770|MS840|MS870|MS910|P500|P700|P705|VM696|AS680|AS695|AX840|C729|E970|GS505|272|C395|E739BK|E960|L55C|L75C|LS696|LS860|P769BK|P350|P500|P509|P870|UN272|US730|VS840|VS950|LN272|LN510|LS670|LS855|LW690|MN270|MN510|P509|P769|P930|UN200|UN270|UN510|UN610|US670|US740|US760|UX265|UX840|VN271|VN530|VS660|VS700|VS740|VS750|VS910|VS920|VS930|VX9200|VX11000|AX840A|LW770|P506|P925|P999|E612|D955|D802)",Sony:"SonyST|SonyLT|SonyEricsson|SonyEricssonLT15iv|LT18i|E10i|LT28h|LT26w|SonyEricssonMT27i|C5303|C6902|C6903|C6906|C6943|D2533",Asus:"Asus.*Galaxy|PadFone.*Mobile",Micromax:"Micromax.*\\b(A210|A92|A88|A72|A111|A110Q|A115|A116|A110|A90S|A26|A51|A35|A54|A25|A27|A89|A68|A65|A57|A90)\\b",Palm:"PalmSource|Palm",Vertu:"Vertu|Vertu.*Ltd|Vertu.*Ascent|Vertu.*Ayxta|Vertu.*Constellation(F|Quest)?|Vertu.*Monika|Vertu.*Signature",Pantech:"PANTECH|IM-A850S|IM-A840S|IM-A830L|IM-A830K|IM-A830S|IM-A820L|IM-A810K|IM-A810S|IM-A800S|IM-T100K|IM-A725L|IM-A780L|IM-A775C|IM-A770K|IM-A760S|IM-A750K|IM-A740S|IM-A730S|IM-A720L|IM-A710K|IM-A690L|IM-A690S|IM-A650S|IM-A630K|IM-A600S|VEGA PTL21|PT003|P8010|ADR910L|P6030|P6020|P9070|P4100|P9060|P5000|CDM8992|TXT8045|ADR8995|IS11PT|P2030|P6010|P8000|PT002|IS06|CDM8999|P9050|PT001|TXT8040|P2020|P9020|P2000|P7040|P7000|C790",Fly:"IQ230|IQ444|IQ450|IQ440|IQ442|IQ441|IQ245|IQ256|IQ236|IQ255|IQ235|IQ245|IQ275|IQ240|IQ285|IQ280|IQ270|IQ260|IQ250",Wiko:"KITE 4G|HIGHWAY|GETAWAY|STAIRWAY|DARKSIDE|DARKFULL|DARKNIGHT|DARKMOON|SLIDE|WAX 4G|RAINBOW|BLOOM|SUNSET|GOA|LENNY|BARRY|IGGY|OZZY|CINK FIVE|CINK PEAX|CINK PEAX 2|CINK SLIM|CINK SLIM 2|CINK +|CINK KING|CINK PEAX|CINK SLIM|SUBLIM",iMobile:"i-mobile (IQ|i-STYLE|idea|ZAA|Hitz)",SimValley:"\\b(SP-80|XT-930|SX-340|XT-930|SX-310|SP-360|SP60|SPT-800|SP-120|SPT-800|SP-140|SPX-5|SPX-8|SP-100|SPX-8|SPX-12)\\b",Wolfgang:"AT-B24D|AT-AS50HD|AT-AS40W|AT-AS55HD|AT-AS45q2|AT-B26D|AT-AS50Q",Alcatel:"Alcatel",Nintendo:"Nintendo 3DS",Amoi:"Amoi",INQ:"INQ",GenericPhone:"Tapatalk|PDA;|SAGEM|\\bmmp\\b|pocket|\\bpsp\\b|symbian|Smartphone|smartfon|treo|up.browser|up.link|vodafone|\\bwap\\b|nokia|Series40|Series60|S60|SonyEricsson|N900|MAUI.*WAP.*Browser"},tablets:{iPad:"iPad|iPad.*Mobile",NexusTablet:"Android.*Nexus[\\s]+(7|9|10)",SamsungTablet:"SAMSUNG.*Tablet|Galaxy.*Tab|SC-01C|GT-P1000|GT-P1003|GT-P1010|GT-P3105|GT-P6210|GT-P6800|GT-P6810|GT-P7100|GT-P7300|GT-P7310|GT-P7500|GT-P7510|SCH-I800|SCH-I815|SCH-I905|SGH-I957|SGH-I987|SGH-T849|SGH-T859|SGH-T869|SPH-P100|GT-P3100|GT-P3108|GT-P3110|GT-P5100|GT-P5110|GT-P6200|GT-P7320|GT-P7511|GT-N8000|GT-P8510|SGH-I497|SPH-P500|SGH-T779|SCH-I705|SCH-I915|GT-N8013|GT-P3113|GT-P5113|GT-P8110|GT-N8010|GT-N8005|GT-N8020|GT-P1013|GT-P6201|GT-P7501|GT-N5100|GT-N5105|GT-N5110|SHV-E140K|SHV-E140L|SHV-E140S|SHV-E150S|SHV-E230K|SHV-E230L|SHV-E230S|SHW-M180K|SHW-M180L|SHW-M180S|SHW-M180W|SHW-M300W|SHW-M305W|SHW-M380K|SHW-M380S|SHW-M380W|SHW-M430W|SHW-M480K|SHW-M480S|SHW-M480W|SHW-M485W|SHW-M486W|SHW-M500W|GT-I9228|SCH-P739|SCH-I925|GT-I9200|GT-P5200|GT-P5210|GT-P5210X|SM-T311|SM-T310|SM-T310X|SM-T210|SM-T210R|SM-T211|SM-P600|SM-P601|SM-P605|SM-P900|SM-P901|SM-T217|SM-T217A|SM-T217S|SM-P6000|SM-T3100|SGH-I467|XE500|SM-T110|GT-P5220|GT-I9200X|GT-N5110X|GT-N5120|SM-P905|SM-T111|SM-T2105|SM-T315|SM-T320|SM-T320X|SM-T321|SM-T520|SM-T525|SM-T530NU|SM-T230NU|SM-T330NU|SM-T900|XE500T1C|SM-P605V|SM-P905V|SM-T337V|SM-T537V|SM-T707V|SM-T807V|SM-P600X|SM-P900X|SM-T210X|SM-T230|SM-T230X|SM-T325|GT-P7503|SM-T531|SM-T330|SM-T530|SM-T705|SM-T705C|SM-T535|SM-T331|SM-T800|SM-T700|SM-T537|SM-T807|SM-P907A|SM-T337A|SM-T537A|SM-T707A|SM-T807A|SM-T237|SM-T807P|SM-P607T|SM-T217T|SM-T337T|SM-T807T|SM-T116NQ|SM-P550|SM-T350|SM-T550|SM-T9000|SM-P9000|SM-T705Y|SM-T805|GT-P3113|SM-T710|SM-T810|SM-T360|SM-T533",Kindle:"Kindle|Silk.*Accelerated|Android.*\\b(KFOT|KFTT|KFJWI|KFJWA|KFOTE|KFSOWI|KFTHWI|KFTHWA|KFAPWI|KFAPWA|WFJWAE|KFSAWA|KFSAWI|KFASWI)\\b",SurfaceTablet:"Windows NT [0-9.]+; ARM;.*(Tablet|ARMBJS)",HPTablet:"HP Slate (7|8|10)|HP ElitePad 900|hp-tablet|EliteBook.*Touch|HP 8|Slate 21|HP SlateBook 10",AsusTablet:"^.*PadFone((?!Mobile).)*$|Transformer|TF101|TF101G|TF300T|TF300TG|TF300TL|TF700T|TF700KL|TF701T|TF810C|ME171|ME301T|ME302C|ME371MG|ME370T|ME372MG|ME172V|ME173X|ME400C|Slider SL101|\\bK00F\\b|\\bK00C\\b|\\bK00E\\b|\\bK00L\\b|TX201LA|ME176C|ME102A|\\bM80TA\\b|ME372CL|ME560CG|ME372CG|ME302KL| K010 | K017 |ME572C|ME103K|ME170C|ME171C|\\bME70C\\b|ME581C|ME581CL|ME8510C|ME181C",BlackBerryTablet:"PlayBook|RIM Tablet",HTCtablet:"HTC_Flyer_P512|HTC Flyer|HTC Jetstream|HTC-P715a|HTC EVO View 4G|PG41200|PG09410",MotorolaTablet:"xoom|sholest|MZ615|MZ605|MZ505|MZ601|MZ602|MZ603|MZ604|MZ606|MZ607|MZ608|MZ609|MZ615|MZ616|MZ617",NookTablet:"Android.*Nook|NookColor|nook browser|BNRV200|BNRV200A|BNTV250|BNTV250A|BNTV400|BNTV600|LogicPD Zoom2",AcerTablet:"Android.*; \\b(A100|A101|A110|A200|A210|A211|A500|A501|A510|A511|A700|A701|W500|W500P|W501|W501P|W510|W511|W700|G100|G100W|B1-A71|B1-710|B1-711|A1-810|A1-811|A1-830)\\b|W3-810|\\bA3-A10\\b|\\bA3-A11\\b",ToshibaTablet:"Android.*(AT100|AT105|AT200|AT205|AT270|AT275|AT300|AT305|AT1S5|AT500|AT570|AT700|AT830)|TOSHIBA.*FOLIO",LGTablet:"\\bL-06C|LG-V909|LG-V900|LG-V700|LG-V510|LG-V500|LG-V410|LG-V400|LG-VK810\\b",FujitsuTablet:"Android.*\\b(F-01D|F-02F|F-05E|F-10D|M532|Q572)\\b",PrestigioTablet:"PMP3170B|PMP3270B|PMP3470B|PMP7170B|PMP3370B|PMP3570C|PMP5870C|PMP3670B|PMP5570C|PMP5770D|PMP3970B|PMP3870C|PMP5580C|PMP5880D|PMP5780D|PMP5588C|PMP7280C|PMP7280C3G|PMP7280|PMP7880D|PMP5597D|PMP5597|PMP7100D|PER3464|PER3274|PER3574|PER3884|PER5274|PER5474|PMP5097CPRO|PMP5097|PMP7380D|PMP5297C|PMP5297C_QUAD|PMP812E|PMP812E3G|PMP812F|PMP810E|PMP880TD|PMT3017|PMT3037|PMT3047|PMT3057|PMT7008|PMT5887|PMT5001|PMT5002",LenovoTablet:"Idea(Tab|Pad)( A1|A10| K1|)|ThinkPad([ ]+)?Tablet|Lenovo.*(S2109|S2110|S5000|S6000|K3011|A3000|A3500|A1000|A2107|A2109|A1107|A5500|A7600|B6000|B8000|B8080)(-|)(FL|F|HV|H|)",DellTablet:"Venue 11|Venue 8|Venue 7|Dell Streak 10|Dell Streak 7",YarvikTablet:"Android.*\\b(TAB210|TAB211|TAB224|TAB250|TAB260|TAB264|TAB310|TAB360|TAB364|TAB410|TAB411|TAB420|TAB424|TAB450|TAB460|TAB461|TAB464|TAB465|TAB467|TAB468|TAB07-100|TAB07-101|TAB07-150|TAB07-151|TAB07-152|TAB07-200|TAB07-201-3G|TAB07-210|TAB07-211|TAB07-212|TAB07-214|TAB07-220|TAB07-400|TAB07-485|TAB08-150|TAB08-200|TAB08-201-3G|TAB08-201-30|TAB09-100|TAB09-211|TAB09-410|TAB10-150|TAB10-201|TAB10-211|TAB10-400|TAB10-410|TAB13-201|TAB274EUK|TAB275EUK|TAB374EUK|TAB462EUK|TAB474EUK|TAB9-200)\\b",MedionTablet:"Android.*\\bOYO\\b|LIFE.*(P9212|P9514|P9516|S9512)|LIFETAB",ArnovaTablet:"AN10G2|AN7bG3|AN7fG3|AN8G3|AN8cG3|AN7G3|AN9G3|AN7dG3|AN7dG3ST|AN7dG3ChildPad|AN10bG3|AN10bG3DT|AN9G2",IntensoTablet:"INM8002KP|INM1010FP|INM805ND|Intenso Tab|TAB1004",IRUTablet:"M702pro",MegafonTablet:"MegaFon V9|\\bZTE V9\\b|Android.*\\bMT7A\\b",EbodaTablet:"E-Boda (Supreme|Impresspeed|Izzycomm|Essential)",AllViewTablet:"Allview.*(Viva|Alldro|City|Speed|All TV|Frenzy|Quasar|Shine|TX1|AX1|AX2)",ArchosTablet:"\\b(101G9|80G9|A101IT)\\b|Qilive 97R|Archos5|\\bARCHOS (70|79|80|90|97|101|FAMILYPAD|)(b|)(G10| Cobalt| TITANIUM(HD|)| Xenon| Neon|XSK| 2| XS 2| PLATINUM| CARBON|GAMEPAD)\\b",AinolTablet:"NOVO7|NOVO8|NOVO10|Novo7Aurora|Novo7Basic|NOVO7PALADIN|novo9-Spark",SonyTablet:"Sony.*Tablet|Xperia Tablet|Sony Tablet S|SO-03E|SGPT12|SGPT13|SGPT114|SGPT121|SGPT122|SGPT123|SGPT111|SGPT112|SGPT113|SGPT131|SGPT132|SGPT133|SGPT211|SGPT212|SGPT213|SGP311|SGP312|SGP321|EBRD1101|EBRD1102|EBRD1201|SGP351|SGP341|SGP511|SGP512|SGP521|SGP541|SGP551|SGP621|SGP612|SOT31",PhilipsTablet:"\\b(PI2010|PI3000|PI3100|PI3105|PI3110|PI3205|PI3210|PI3900|PI4010|PI7000|PI7100)\\b",CubeTablet:"Android.*(K8GT|U9GT|U10GT|U16GT|U17GT|U18GT|U19GT|U20GT|U23GT|U30GT)|CUBE U8GT",CobyTablet:"MID1042|MID1045|MID1125|MID1126|MID7012|MID7014|MID7015|MID7034|MID7035|MID7036|MID7042|MID7048|MID7127|MID8042|MID8048|MID8127|MID9042|MID9740|MID9742|MID7022|MID7010",MIDTablet:"M9701|M9000|M9100|M806|M1052|M806|T703|MID701|MID713|MID710|MID727|MID760|MID830|MID728|MID933|MID125|MID810|MID732|MID120|MID930|MID800|MID731|MID900|MID100|MID820|MID735|MID980|MID130|MID833|MID737|MID960|MID135|MID860|MID736|MID140|MID930|MID835|MID733",MSITablet:"MSI \\b(Primo 73K|Primo 73L|Primo 81L|Primo 77|Primo 93|Primo 75|Primo 76|Primo 73|Primo 81|Primo 91|Primo 90|Enjoy 71|Enjoy 7|Enjoy 10)\\b",SMiTTablet:"Android.*(\\bMID\\b|MID-560|MTV-T1200|MTV-PND531|MTV-P1101|MTV-PND530)",RockChipTablet:"Android.*(RK2818|RK2808A|RK2918|RK3066)|RK2738|RK2808A",FlyTablet:"IQ310|Fly Vision",bqTablet:"Android.*(bq)?.*(Elcano|Curie|Edison|Maxwell|Kepler|Pascal|Tesla|Hypatia|Platon|Newton|Livingstone|Cervantes|Avant|Aquaris E10)|Maxwell.*Lite|Maxwell.*Plus",HuaweiTablet:"MediaPad|MediaPad 7 Youth|IDEOS S7|S7-201c|S7-202u|S7-101|S7-103|S7-104|S7-105|S7-106|S7-201|S7-Slim",NecTablet:"\\bN-06D|\\bN-08D",PantechTablet:"Pantech.*P4100",BronchoTablet:"Broncho.*(N701|N708|N802|a710)",VersusTablet:"TOUCHPAD.*[78910]|\\bTOUCHTAB\\b",ZyncTablet:"z1000|Z99 2G|z99|z930|z999|z990|z909|Z919|z900",PositivoTablet:"TB07STA|TB10STA|TB07FTA|TB10FTA",NabiTablet:"Android.*\\bNabi",KoboTablet:"Kobo Touch|\\bK080\\b|\\bVox\\b Build|\\bArc\\b Build",DanewTablet:"DSlide.*\\b(700|701R|702|703R|704|802|970|971|972|973|974|1010|1012)\\b",TexetTablet:"NaviPad|TB-772A|TM-7045|TM-7055|TM-9750|TM-7016|TM-7024|TM-7026|TM-7041|TM-7043|TM-7047|TM-8041|TM-9741|TM-9747|TM-9748|TM-9751|TM-7022|TM-7021|TM-7020|TM-7011|TM-7010|TM-7023|TM-7025|TM-7037W|TM-7038W|TM-7027W|TM-9720|TM-9725|TM-9737W|TM-1020|TM-9738W|TM-9740|TM-9743W|TB-807A|TB-771A|TB-727A|TB-725A|TB-719A|TB-823A|TB-805A|TB-723A|TB-715A|TB-707A|TB-705A|TB-709A|TB-711A|TB-890HD|TB-880HD|TB-790HD|TB-780HD|TB-770HD|TB-721HD|TB-710HD|TB-434HD|TB-860HD|TB-840HD|TB-760HD|TB-750HD|TB-740HD|TB-730HD|TB-722HD|TB-720HD|TB-700HD|TB-500HD|TB-470HD|TB-431HD|TB-430HD|TB-506|TB-504|TB-446|TB-436|TB-416|TB-146SE|TB-126SE",PlaystationTablet:"Playstation.*(Portable|Vita)",TrekstorTablet:"ST10416-1|VT10416-1|ST70408-1|ST702xx-1|ST702xx-2|ST80208|ST97216|ST70104-2|VT10416-2|ST10216-2A|SurfTab",PyleAudioTablet:"\\b(PTBL10CEU|PTBL10C|PTBL72BC|PTBL72BCEU|PTBL7CEU|PTBL7C|PTBL92BC|PTBL92BCEU|PTBL9CEU|PTBL9CUK|PTBL9C)\\b",AdvanTablet:"Android.* \\b(E3A|T3X|T5C|T5B|T3E|T3C|T3B|T1J|T1F|T2A|T1H|T1i|E1C|T1-E|T5-A|T4|E1-B|T2Ci|T1-B|T1-D|O1-A|E1-A|T1-A|T3A|T4i)\\b ",DanyTechTablet:"Genius Tab G3|Genius Tab S2|Genius Tab Q3|Genius Tab G4|Genius Tab Q4|Genius Tab G-II|Genius TAB GII|Genius TAB GIII|Genius Tab S1",GalapadTablet:"Android.*\\bG1\\b",MicromaxTablet:"Funbook|Micromax.*\\b(P250|P560|P360|P362|P600|P300|P350|P500|P275)\\b",KarbonnTablet:"Android.*\\b(A39|A37|A34|ST8|ST10|ST7|Smart Tab3|Smart Tab2)\\b",AllFineTablet:"Fine7 Genius|Fine7 Shine|Fine7 Air|Fine8 Style|Fine9 More|Fine10 Joy|Fine11 Wide",PROSCANTablet:"\\b(PEM63|PLT1023G|PLT1041|PLT1044|PLT1044G|PLT1091|PLT4311|PLT4311PL|PLT4315|PLT7030|PLT7033|PLT7033D|PLT7035|PLT7035D|PLT7044K|PLT7045K|PLT7045KB|PLT7071KG|PLT7072|PLT7223G|PLT7225G|PLT7777G|PLT7810K|PLT7849G|PLT7851G|PLT7852G|PLT8015|PLT8031|PLT8034|PLT8036|PLT8080K|PLT8082|PLT8088|PLT8223G|PLT8234G|PLT8235G|PLT8816K|PLT9011|PLT9045K|PLT9233G|PLT9735|PLT9760G|PLT9770G)\\b",YONESTablet:"BQ1078|BC1003|BC1077|RK9702|BC9730|BC9001|IT9001|BC7008|BC7010|BC708|BC728|BC7012|BC7030|BC7027|BC7026",ChangJiaTablet:"TPC7102|TPC7103|TPC7105|TPC7106|TPC7107|TPC7201|TPC7203|TPC7205|TPC7210|TPC7708|TPC7709|TPC7712|TPC7110|TPC8101|TPC8103|TPC8105|TPC8106|TPC8203|TPC8205|TPC8503|TPC9106|TPC9701|TPC97101|TPC97103|TPC97105|TPC97106|TPC97111|TPC97113|TPC97203|TPC97603|TPC97809|TPC97205|TPC10101|TPC10103|TPC10106|TPC10111|TPC10203|TPC10205|TPC10503",GUTablet:"TX-A1301|TX-M9002|Q702|kf026",PointOfViewTablet:"TAB-P506|TAB-navi-7-3G-M|TAB-P517|TAB-P-527|TAB-P701|TAB-P703|TAB-P721|TAB-P731N|TAB-P741|TAB-P825|TAB-P905|TAB-P925|TAB-PR945|TAB-PL1015|TAB-P1025|TAB-PI1045|TAB-P1325|TAB-PROTAB[0-9]+|TAB-PROTAB25|TAB-PROTAB26|TAB-PROTAB27|TAB-PROTAB26XL|TAB-PROTAB2-IPS9|TAB-PROTAB30-IPS9|TAB-PROTAB25XXL|TAB-PROTAB26-IPS10|TAB-PROTAB30-IPS10",OvermaxTablet:"OV-(SteelCore|NewBase|Basecore|Baseone|Exellen|Quattor|EduTab|Solution|ACTION|BasicTab|TeddyTab|MagicTab|Stream|TB-08|TB-09)",HCLTablet:"HCL.*Tablet|Connect-3G-2.0|Connect-2G-2.0|ME Tablet U1|ME Tablet U2|ME Tablet G1|ME Tablet X1|ME Tablet Y2|ME Tablet Sync",DPSTablet:"DPS Dream 9|DPS Dual 7",VistureTablet:"V97 HD|i75 3G|Visture V4( HD)?|Visture V5( HD)?|Visture V10",CrestaTablet:"CTP(-)?810|CTP(-)?818|CTP(-)?828|CTP(-)?838|CTP(-)?888|CTP(-)?978|CTP(-)?980|CTP(-)?987|CTP(-)?988|CTP(-)?989",MediatekTablet:"\\bMT8125|MT8389|MT8135|MT8377\\b",ConcordeTablet:"Concorde([ ]+)?Tab|ConCorde ReadMan",GoCleverTablet:"GOCLEVER TAB|A7GOCLEVER|M1042|M7841|M742|R1042BK|R1041|TAB A975|TAB A7842|TAB A741|TAB A741L|TAB M723G|TAB M721|TAB A1021|TAB I921|TAB R721|TAB I720|TAB T76|TAB R70|TAB R76.2|TAB R106|TAB R83.2|TAB M813G|TAB I721|GCTA722|TAB I70|TAB I71|TAB S73|TAB R73|TAB R74|TAB R93|TAB R75|TAB R76.1|TAB A73|TAB A93|TAB A93.2|TAB T72|TAB R83|TAB R974|TAB R973|TAB A101|TAB A103|TAB A104|TAB A104.2|R105BK|M713G|A972BK|TAB A971|TAB R974.2|TAB R104|TAB R83.3|TAB A1042",ModecomTablet:"FreeTAB 9000|FreeTAB 7.4|FreeTAB 7004|FreeTAB 7800|FreeTAB 2096|FreeTAB 7.5|FreeTAB 1014|FreeTAB 1001 |FreeTAB 8001|FreeTAB 9706|FreeTAB 9702|FreeTAB 7003|FreeTAB 7002|FreeTAB 1002|FreeTAB 7801|FreeTAB 1331|FreeTAB 1004|FreeTAB 8002|FreeTAB 8014|FreeTAB 9704|FreeTAB 1003",VoninoTablet:"\\b(Argus[ _]?S|Diamond[ _]?79HD|Emerald[ _]?78E|Luna[ _]?70C|Onyx[ _]?S|Onyx[ _]?Z|Orin[ _]?HD|Orin[ _]?S|Otis[ _]?S|SpeedStar[ _]?S|Magnet[ _]?M9|Primus[ _]?94[ _]?3G|Primus[ _]?94HD|Primus[ _]?QS|Android.*\\bQ8\\b|Sirius[ _]?EVO[ _]?QS|Sirius[ _]?QS|Spirit[ _]?S)\\b",ECSTablet:"V07OT2|TM105A|S10OT1|TR10CS1",StorexTablet:"eZee[_']?(Tab|Go)[0-9]+|TabLC7|Looney Tunes Tab",VodafoneTablet:"SmartTab([ ]+)?[0-9]+|SmartTabII10|SmartTabII7",EssentielBTablet:"Smart[ ']?TAB[ ]+?[0-9]+|Family[ ']?TAB2",RossMoorTablet:"RM-790|RM-997|RMD-878G|RMD-974R|RMT-705A|RMT-701|RME-601|RMT-501|RMT-711",iMobileTablet:"i-mobile i-note",TolinoTablet:"tolino tab [0-9.]+|tolino shine",AudioSonicTablet:"\\bC-22Q|T7-QC|T-17B|T-17P\\b",AMPETablet:"Android.* A78 ",SkkTablet:"Android.* (SKYPAD|PHOENIX|CYCLOPS)",TecnoTablet:"TECNO P9",JXDTablet:"Android.*\\b(F3000|A3300|JXD5000|JXD3000|JXD2000|JXD300B|JXD300|S5800|S7800|S602b|S5110b|S7300|S5300|S602|S603|S5100|S5110|S601|S7100a|P3000F|P3000s|P101|P200s|P1000m|P200m|P9100|P1000s|S6600b|S908|P1000|P300|S18|S6600|S9100)\\b",iJoyTablet:"Tablet (Spirit 7|Essentia|Galatea|Fusion|Onix 7|Landa|Titan|Scooby|Deox|Stella|Themis|Argon|Unique 7|Sygnus|Hexen|Finity 7|Cream|Cream X2|Jade|Neon 7|Neron 7|Kandy|Scape|Saphyr 7|Rebel|Biox|Rebel|Rebel 8GB|Myst|Draco 7|Myst|Tab7-004|Myst|Tadeo Jones|Tablet Boing|Arrow|Draco Dual Cam|Aurix|Mint|Amity|Revolution|Finity 9|Neon 9|T9w|Amity 4GB Dual Cam|Stone 4GB|Stone 8GB|Andromeda|Silken|X2|Andromeda II|Halley|Flame|Saphyr 9,7|Touch 8|Planet|Triton|Unique 10|Hexen 10|Memphis 4GB|Memphis 8GB|Onix 10)",FX2Tablet:"FX2 PAD7|FX2 PAD10",XoroTablet:"KidsPAD 701|PAD[ ]?712|PAD[ ]?714|PAD[ ]?716|PAD[ ]?717|PAD[ ]?718|PAD[ ]?720|PAD[ ]?721|PAD[ ]?722|PAD[ ]?790|PAD[ ]?792|PAD[ ]?900|PAD[ ]?9715D|PAD[ ]?9716DR|PAD[ ]?9718DR|PAD[ ]?9719QR|PAD[ ]?9720QR|TelePAD1030|Telepad1032|TelePAD730|TelePAD731|TelePAD732|TelePAD735Q|TelePAD830|TelePAD9730|TelePAD795|MegaPAD 1331|MegaPAD 1851|MegaPAD 2151",ViewsonicTablet:"ViewPad 10pi|ViewPad 10e|ViewPad 10s|ViewPad E72|ViewPad7|ViewPad E100|ViewPad 7e|ViewSonic VB733|VB100a",OdysTablet:"LOOX|XENO10|ODYS[ -](Space|EVO|Xpress|NOON)|\\bXELIO\\b|Xelio10Pro|XELIO7PHONETAB|XELIO10EXTREME|XELIOPT2|NEO_QUAD10",CaptivaTablet:"CAPTIVA PAD",IconbitTablet:"NetTAB|NT-3702|NT-3702S|NT-3702S|NT-3603P|NT-3603P|NT-0704S|NT-0704S|NT-3805C|NT-3805C|NT-0806C|NT-0806C|NT-0909T|NT-0909T|NT-0907S|NT-0907S|NT-0902S|NT-0902S",TeclastTablet:"T98 4G|\\bP80\\b|\\bX90HD\\b|X98 Air|X98 Air 3G|\\bX89\\b|P80 3G|\\bX80h\\b|P98 Air|\\bX89HD\\b|P98 3G|\\bP90HD\\b|P89 3G|X98 3G|\\bP70h\\b|P79HD 3G|G18d 3G|\\bP79HD\\b|\\bP89s\\b|\\bA88\\b|\\bP10HD\\b|\\bP19HD\\b|G18 3G|\\bP78HD\\b|\\bA78\\b|\\bP75\\b|G17s 3G|G17h 3G|\\bP85t\\b|\\bP90\\b|\\bP11\\b|\\bP98t\\b|\\bP98HD\\b|\\bG18d\\b|\\bP85s\\b|\\bP11HD\\b|\\bP88s\\b|\\bA80HD\\b|\\bA80se\\b|\\bA10h\\b|\\bP89\\b|\\bP78s\\b|\\bG18\\b|\\bP85\\b|\\bA70h\\b|\\bA70\\b|\\bG17\\b|\\bP18\\b|\\bA80s\\b|\\bA11s\\b|\\bP88HD\\b|\\bA80h\\b|\\bP76s\\b|\\bP76h\\b|\\bP98\\b|\\bA10HD\\b|\\bP78\\b|\\bP88\\b|\\bA11\\b|\\bA10t\\b|\\bP76a\\b|\\bP76t\\b|\\bP76e\\b|\\bP85HD\\b|\\bP85a\\b|\\bP86\\b|\\bP75HD\\b|\\bP76v\\b|\\bA12\\b|\\bP75a\\b|\\bA15\\b|\\bP76Ti\\b|\\bP81HD\\b|\\bA10\\b|\\bT760VE\\b|\\bT720HD\\b|\\bP76\\b|\\bP73\\b|\\bP71\\b|\\bP72\\b|\\bT720SE\\b|\\bC520Ti\\b|\\bT760\\b|\\bT720VE\\b|T720-3GE|T720-WiFi",
2
  OndaTablet:"\\b(V975i|Vi30|VX530|V701|Vi60|V701s|Vi50|V801s|V719|Vx610w|VX610W|V819i|Vi10|VX580W|Vi10|V711s|V813|V811|V820w|V820|Vi20|V711|VI30W|V712|V891w|V972|V819w|V820w|Vi60|V820w|V711|V813s|V801|V819|V975s|V801|V819|V819|V818|V811|V712|V975m|V101w|V961w|V812|V818|V971|V971s|V919|V989|V116w|V102w|V973|Vi40)\\b[\\s]+",JaytechTablet:"TPC-PA762",BlaupunktTablet:"Endeavour 800NG|Endeavour 1010",DigmaTablet:"\\b(iDx10|iDx9|iDx8|iDx7|iDxD7|iDxD8|iDsQ8|iDsQ7|iDsQ8|iDsD10|iDnD7|3TS804H|iDsQ11|iDj7|iDs10)\\b",EvolioTablet:"ARIA_Mini_wifi|Aria[ _]Mini|Evolio X10|Evolio X7|Evolio X8|\\bEvotab\\b|\\bNeura\\b",LavaTablet:"QPAD E704|\\bIvoryS\\b|E-TAB IVORY|\\bE-TAB\\b",CelkonTablet:"CT695|CT888|CT[\\s]?910|CT7 Tab|CT9 Tab|CT3 Tab|CT2 Tab|CT1 Tab|C820|C720|\\bCT-1\\b",WolderTablet:"miTab \\b(DIAMOND|SPACE|BROOKLYN|NEO|FLY|MANHATTAN|FUNK|EVOLUTION|SKY|GOCAR|IRON|GENIUS|POP|MINT|EPSILON|BROADWAY|JUMP|HOP|LEGEND|NEW AGE|LINE|ADVANCE|FEEL|FOLLOW|LIKE|LINK|LIVE|THINK|FREEDOM|CHICAGO|CLEVELAND|BALTIMORE-GH|IOWA|BOSTON|SEATTLE|PHOENIX|DALLAS|IN 101|MasterChef)\\b",MiTablet:"\\bMI PAD\\b|\\bHM NOTE 1W\\b",NibiruTablet:"Nibiru M1|Nibiru Jupiter One",NexoTablet:"NEXO NOVA|NEXO 10|NEXO AVIO|NEXO FREE|NEXO GO|NEXO EVO|NEXO 3G|NEXO SMART|NEXO KIDDO|NEXO MOBI",LeaderTablet:"TBLT10Q|TBLT10I|TBL-10WDKB|TBL-10WDKBO2013|TBL-W230V2|TBL-W450|TBL-W500|SV572|TBLT7I|TBA-AC7-8G|TBLT79|TBL-8W16|TBL-10W32|TBL-10WKB|TBL-W100",UbislateTablet:"UbiSlate[\\s]?7C",PocketBookTablet:"Pocketbook",Hudl:"Hudl HT7S3",TelstraTablet:"T-Hub2",GenericTablet:"Android.*\\b97D\\b|Tablet(?!.*PC)|BNTV250A|MID-WCDMA|LogicPD Zoom2|\\bA7EB\\b|CatNova8|A1_07|CT704|CT1002|\\bM721\\b|rk30sdk|\\bEVOTAB\\b|M758A|ET904|ALUMIUM10|Smartfren Tab|Endeavour 1010|Tablet-PC-4|Tagi Tab|\\bM6pro\\b|CT1020W|arc 10HD|\\bJolla\\b|\\bTP750\\b"},oss:{AndroidOS:"Android",BlackBerryOS:"blackberry|\\bBB10\\b|rim tablet os",PalmOS:"PalmOS|avantgo|blazer|elaine|hiptop|palm|plucker|xiino",SymbianOS:"Symbian|SymbOS|Series60|Series40|SYB-[0-9]+|\\bS60\\b",WindowsMobileOS:"Windows CE.*(PPC|Smartphone|Mobile|[0-9]{3}x[0-9]{3})|Window Mobile|Windows Phone [0-9.]+|WCE;",WindowsPhoneOS:"Windows Phone 8.1|Windows Phone 8.0|Windows Phone OS|XBLWP7|ZuneWP7|Windows NT 6.[23]; ARM;",iOS:"\\biPhone.*Mobile|\\biPod|\\biPad",MeeGoOS:"MeeGo",MaemoOS:"Maemo",JavaOS:"J2ME/|\\bMIDP\\b|\\bCLDC\\b",webOS:"webOS|hpwOS",badaOS:"\\bBada\\b",BREWOS:"BREW"},uas:{Chrome:"\\bCrMo\\b|CriOS|Android.*Chrome/[.0-9]* (Mobile)?",Dolfin:"\\bDolfin\\b",Opera:"Opera.*Mini|Opera.*Mobi|Android.*Opera|Mobile.*OPR/[0-9.]+|Coast/[0-9.]+",Skyfire:"Skyfire",IE:"IEMobile|MSIEMobile",Firefox:"fennec|firefox.*maemo|(Mobile|Tablet).*Firefox|Firefox.*Mobile",Bolt:"bolt",TeaShark:"teashark",Blazer:"Blazer",Safari:"Version.*Mobile.*Safari|Safari.*Mobile|MobileSafari",Tizen:"Tizen",UCBrowser:"UC.*Browser|UCWEB",baiduboxapp:"baiduboxapp",baidubrowser:"baidubrowser",DiigoBrowser:"DiigoBrowser",Puffin:"Puffin",Mercury:"\\bMercury\\b",ObigoBrowser:"Obigo",NetFront:"NF-Browser",GenericBrowser:"NokiaBrowser|OviBrowser|OneBrowser|TwonkyBeamBrowser|SEMC.*Browser|FlyFlow|Minimo|NetFront|Novarra-Vision|MQQBrowser|MicroMessenger"},props:{Mobile:"Mobile/[VER]",Build:"Build/[VER]",Version:"Version/[VER]",VendorID:"VendorID/[VER]",iPad:"iPad.*CPU[a-z ]+[VER]",iPhone:"iPhone.*CPU[a-z ]+[VER]",iPod:"iPod.*CPU[a-z ]+[VER]",Kindle:"Kindle/[VER]",Chrome:["Chrome/[VER]","CriOS/[VER]","CrMo/[VER]"],Coast:["Coast/[VER]"],Dolfin:"Dolfin/[VER]",Firefox:"Firefox/[VER]",Fennec:"Fennec/[VER]",IE:["IEMobile/[VER];","IEMobile [VER]","MSIE [VER];","Trident/[0-9.]+;.*rv:[VER]"],NetFront:"NetFront/[VER]",NokiaBrowser:"NokiaBrowser/[VER]",Opera:[" OPR/[VER]","Opera Mini/[VER]","Version/[VER]"],"Opera Mini":"Opera Mini/[VER]","Opera Mobi":"Version/[VER]","UC Browser":"UC Browser[VER]",MQQBrowser:"MQQBrowser/[VER]",MicroMessenger:"MicroMessenger/[VER]",baiduboxapp:"baiduboxapp/[VER]",baidubrowser:"baidubrowser/[VER]",Iron:"Iron/[VER]",Safari:["Version/[VER]","Safari/[VER]"],Skyfire:"Skyfire/[VER]",Tizen:"Tizen/[VER]",Webkit:"webkit[ /][VER]",Gecko:"Gecko/[VER]",Trident:"Trident/[VER]",Presto:"Presto/[VER]",iOS:" \\bi?OS\\b [VER][ ;]{1}",Android:"Android [VER]",BlackBerry:["BlackBerry[\\w]+/[VER]","BlackBerry.*Version/[VER]","Version/[VER]"],BREW:"BREW [VER]",Java:"Java/[VER]","Windows Phone OS":["Windows Phone OS [VER]","Windows Phone [VER]"],"Windows Phone":"Windows Phone [VER]","Windows CE":"Windows CE/[VER]","Windows NT":"Windows NT [VER]",Symbian:["SymbianOS/[VER]","Symbian/[VER]"],webOS:["webOS/[VER]","hpwOS/[VER];"]},utils:{Bot:"Googlebot|facebookexternalhit|AdsBot-Google|Google Keyword Suggestion|Facebot|YandexBot|bingbot|ia_archiver|AhrefsBot|Ezooms|GSLFbot|WBSearchBot|Twitterbot|TweetmemeBot|Twikle|PaperLiBot|Wotbox|UnwindFetchor|Exabot|MJ12bot|YandexImages|TurnitinBot|Pingdom",MobileBot:"Googlebot-Mobile|AdsBot-Google-Mobile|YahooSeeker/M1A1-R2D2",DesktopMode:"WPDesktop",TV:"SonyDTV|HbbTV",WebKit:"(webkit)[ /]([\\w.]+)",Console:"\\b(Nintendo|Nintendo WiiU|Nintendo 3DS|PLAYSTATION|Xbox)\\b",Watch:"SM-V700"}},o.detectMobileBrowsers={fullPattern:/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i,shortPattern:/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,tabletPattern:/android|ipad|playbook|silk/i};var a,s=Object.prototype.hasOwnProperty;return o.FALLBACK_PHONE="UnknownPhone",o.FALLBACK_TABLET="UnknownTablet",o.FALLBACK_MOBILE="UnknownMobile",a="isArray"in Array?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},function(){var e,t,n,r,T,l,u=o.mobileDetectRules;for(e in u.props)if(s.call(u.props,e)){for(t=u.props[e],a(t)||(t=[t]),T=t.length,r=0;T>r;++r)n=t[r],l=n.indexOf("[VER]"),l>=0&&(n=n.substring(0,l)+"([\\w._\\+]+)"+n.substring(l+5)),t[r]=new RegExp(n,"i");u.props[e]=t}i(u.oss),i(u.phones),i(u.tablets),i(u.uas),i(u.utils),u.oss0={WindowsPhoneOS:u.oss.WindowsPhoneOS,WindowsMobileOS:u.oss.WindowsMobileOS}}(),o.findMatch=function(e,t){for(var n in e)if(s.call(e,n)&&e[n].test(t))return n;return null},o.findMatches=function(e,t){var n=[];for(var i in e)s.call(e,i)&&e[i].test(t)&&n.push(i);return n},o.getVersionStr=function(e,t){var n,i,r,a,T=o.mobileDetectRules.props;if(s.call(T,e))for(n=T[e],r=n.length,i=0;r>i;++i)if(a=n[i].exec(t),null!==a)return a[1];return null},o.getVersion=function(e,t){var n=o.getVersionStr(e,t);return n?o.prepareVersionNo(n):NaN},o.prepareVersionNo=function(e){var t;return t=e.split(/[a-z._ \/\-]/i),1===t.length&&(e=t[0]),t.length>1&&(e=t[0]+".",t.shift(),e+=t.join("")),Number(e)},o.isMobileFallback=function(e){return o.detectMobileBrowsers.fullPattern.test(e)||o.detectMobileBrowsers.shortPattern.test(e.substr(0,4))},o.isTabletFallback=function(e){return o.detectMobileBrowsers.tabletPattern.test(e)},o.prepareDetectionCache=function(e,n,i){if(e.mobile===t){var a,s,T;return(s=o.findMatch(o.mobileDetectRules.tablets,n))?(e.mobile=e.tablet=s,void(e.phone=null)):(a=o.findMatch(o.mobileDetectRules.phones,n))?(e.mobile=e.phone=a,void(e.tablet=null)):void(o.isMobileFallback(n)?(T=r.isPhoneSized(i),T===t?(e.mobile=o.FALLBACK_MOBILE,e.tablet=e.phone=null):T?(e.mobile=e.phone=o.FALLBACK_PHONE,e.tablet=null):(e.mobile=e.tablet=o.FALLBACK_TABLET,e.phone=null)):o.isTabletFallback(n)?(e.mobile=e.tablet=o.FALLBACK_TABLET,e.phone=null):e.mobile=e.tablet=e.phone=null)}},o.mobileGrade=function(e){var t=null!==e.mobile();return e.os("iOS")&&e.version("iPad")>=4.3||e.os("iOS")&&e.version("iPhone")>=3.1||e.os("iOS")&&e.version("iPod")>=3.1||e.version("Android")>2.1&&e.is("Webkit")||e.version("Windows Phone OS")>=7||e.is("BlackBerry")&&e.version("BlackBerry")>=6||e.match("Playbook.*Tablet")||e.version("webOS")>=1.4&&e.match("Palm|Pre|Pixi")||e.match("hp.*TouchPad")||e.is("Firefox")&&e.version("Firefox")>=12||e.is("Chrome")&&e.is("AndroidOS")&&e.version("Android")>=4||e.is("Skyfire")&&e.version("Skyfire")>=4.1&&e.is("AndroidOS")&&e.version("Android")>=2.3||e.is("Opera")&&e.version("Opera Mobi")>11&&e.is("AndroidOS")||e.is("MeeGoOS")||e.is("Tizen")||e.is("Dolfin")&&e.version("Bada")>=2||(e.is("UC Browser")||e.is("Dolfin"))&&e.version("Android")>=2.3||e.match("Kindle Fire")||e.is("Kindle")&&e.version("Kindle")>=3||e.is("AndroidOS")&&e.is("NookTablet")||e.version("Chrome")>=11&&!t||e.version("Safari")>=5&&!t||e.version("Firefox")>=4&&!t||e.version("MSIE")>=7&&!t||e.version("Opera")>=10&&!t?"A":e.os("iOS")&&e.version("iPad")<4.3||e.os("iOS")&&e.version("iPhone")<3.1||e.os("iOS")&&e.version("iPod")<3.1||e.is("Blackberry")&&e.version("BlackBerry")>=5&&e.version("BlackBerry")<6||e.version("Opera Mini")>=5&&e.version("Opera Mini")<=6.5&&(e.version("Android")>=2.3||e.is("iOS"))||e.match("NokiaN8|NokiaC7|N97.*Series60|Symbian/3")||e.version("Opera Mobi")>=11&&e.is("SymbianOS")?"B":(e.version("BlackBerry")<5||e.match("MSIEMobile|Windows CE.*Mobile")||e.version("Windows Mobile")<=5.2,"C")},o.detectOS=function(e){return o.findMatch(o.mobileDetectRules.oss0,e)||o.findMatch(o.mobileDetectRules.oss,e)},o.getDeviceSmallerSide=function(){return window.screen.width<window.screen.height?window.screen.width:window.screen.height},r.prototype={constructor:r,mobile:function(){return o.prepareDetectionCache(this._cache,this.ua,this.maxPhoneWidth),this._cache.mobile},phone:function(){return o.prepareDetectionCache(this._cache,this.ua,this.maxPhoneWidth),this._cache.phone},tablet:function(){return o.prepareDetectionCache(this._cache,this.ua,this.maxPhoneWidth),this._cache.tablet},userAgent:function(){return this._cache.userAgent===t&&(this._cache.userAgent=o.findMatch(o.mobileDetectRules.uas,this.ua)),this._cache.userAgent},userAgents:function(){return this._cache.userAgents===t&&(this._cache.userAgents=o.findMatches(o.mobileDetectRules.uas,this.ua)),this._cache.userAgents},os:function(){return this._cache.os===t&&(this._cache.os=o.detectOS(this.ua)),this._cache.os},version:function(e){return o.getVersion(e,this.ua)},versionStr:function(e){return o.getVersionStr(e,this.ua)},is:function(t){return n(this.userAgents(),t)||e(t,this.os())||e(t,this.phone())||e(t,this.tablet())||n(o.findMatches(o.mobileDetectRules.utils,this.ua),t)},match:function(e){return e instanceof RegExp||(e=new RegExp(e,"i")),e.test(this.ua)},isPhoneSized:function(e){return r.isPhoneSized(e||this.maxPhoneWidth)},mobileGrade:function(){return this._cache.grade===t&&(this._cache.grade=o.mobileGrade(this)),this._cache.grade}},"undefined"!=typeof window&&window.screen?r.isPhoneSized=function(e){return 0>e?t:o.getDeviceSmallerSide()<=e}:r.isPhoneSized=function(){},r._impl=o,r})}(function(e){return function(e){window.MobileDetect=e()}}()),function(){"use strict";function e(){}function t(e,t){for(var n=e.length;n--;)if(e[n].listener===t)return n;return-1}function n(e){return function(){return this[e].apply(this,arguments)}}var i=e.prototype,r=this,o=r.EventEmitter;i.getListeners=function(e){var t,n,i=this._getEvents();if("object"==typeof e){t={};for(n in i)i.hasOwnProperty(n)&&e.test(n)&&(t[n]=i[n])}else t=i[e]||(i[e]=[]);return t},i.flattenListeners=function(e){var t,n=[];for(t=0;t<e.length;t+=1)n.push(e[t].listener);return n},i.getListenersAsObject=function(e){var t,n=this.getListeners(e);return n instanceof Array&&(t={},t[e]=n),t||n},i.addListener=function(e,n){var i,r=this.getListenersAsObject(e),o="object"==typeof n;for(i in r)r.hasOwnProperty(i)&&-1===t(r[i],n)&&r[i].push(o?n:{listener:n,once:!1});return this},i.on=n("addListener"),i.addOnceListener=function(e,t){return this.addListener(e,{listener:t,once:!0})},i.once=n("addOnceListener"),i.defineEvent=function(e){return this.getListeners(e),this},i.defineEvents=function(e){for(var t=0;t<e.length;t+=1)this.defineEvent(e[t]);return this},i.removeListener=function(e,n){var i,r,o=this.getListenersAsObject(e);for(r in o)o.hasOwnProperty(r)&&(i=t(o[r],n),-1!==i&&o[r].splice(i,1));return this},i.off=n("removeListener"),i.addListeners=function(e,t){return this.manipulateListeners(!1,e,t)},i.removeListeners=function(e,t){return this.manipulateListeners(!0,e,t)},i.manipulateListeners=function(e,t,n){var i,r,o=e?this.removeListener:this.addListener,a=e?this.removeListeners:this.addListeners;if("object"!=typeof t||t instanceof RegExp)for(i=n.length;i--;)o.call(this,t,n[i]);else for(i in t)t.hasOwnProperty(i)&&(r=t[i])&&("function"==typeof r?o.call(this,i,r):a.call(this,i,r));return this},i.removeEvent=function(e){var t,n=typeof e,i=this._getEvents();if("string"===n)delete i[e];else if("object"===n)for(t in i)i.hasOwnProperty(t)&&e.test(t)&&delete i[t];else delete this._events;return this},i.removeAllListeners=n("removeEvent"),i.emitEvent=function(e,t){var n,i,r,o,a=this.getListenersAsObject(e);for(r in a)if(a.hasOwnProperty(r))for(i=a[r].length;i--;)n=a[r][i],n.once===!0&&this.removeListener(e,n.listener),o=n.listener.apply(this,t||[]),o===this._getOnceReturnValue()&&this.removeListener(e,n.listener);return this},i.trigger=n("emitEvent"),i.emit=function(e){var t=Array.prototype.slice.call(arguments,1);return this.emitEvent(e,t)},i.setOnceReturnValue=function(e){return this._onceReturnValue=e,this},i._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0},i._getEvents=function(){return this._events||(this._events={})},e.noConflict=function(){return r.EventEmitter=o,e},this.EventEmitter=e}.call(this),function(e){function t(t){var n=e.event;return n.target=n.target||n.srcElement||t,n}var n=document.documentElement,i=function(){};n.addEventListener?i=function(e,t,n){e.addEventListener(t,n,!1)}:n.attachEvent&&(i=function(e,n,i){e[n+i]=i.handleEvent?function(){var n=t(e);i.handleEvent.call(i,n)}:function(){var n=t(e);i.call(e,n)},e.attachEvent("on"+n,e[n+i])});var r=function(){};n.removeEventListener?r=function(e,t,n){e.removeEventListener(t,n,!1)}:n.detachEvent&&(r=function(e,t,n){e.detachEvent("on"+t,e[t+n]);try{delete e[t+n]}catch(i){e[t+n]=void 0}});var o={bind:i,unbind:r};e.eventie=o}(this),function(e,t){"use strict";e.imagesLoaded=t(e,e.EventEmitter,e.eventie)}(window,function(e,t,n){function i(e,t){for(var n in t)e[n]=t[n];return e}function r(e){return"[object Array]"==c.call(e)}function o(e){var t=[];if(r(e))t=e;else if("number"==typeof e.length)for(var n=0;n<e.length;n++)t.push(e[n]);else t.push(e);return t}function a(e,t,n){if(!(this instanceof a))return new a(e,t,n);"string"==typeof e&&(e=document.querySelectorAll(e)),this.elements=o(e),this.options=i({},this.options),"function"==typeof t?n=t:i(this.options,t),n&&this.on("always",n),this.getImages(),l&&(this.jqDeferred=new l.Deferred);var r=this;setTimeout(function(){r.check()})}function s(e){this.img=e}function T(e,t){this.url=e,this.element=t,this.img=new Image}var l=e.n2,u=e.console,c=Object.prototype.toString;a.prototype=new t,a.prototype.options={},a.prototype.getImages=function(){this.images=[];for(var e=0;e<this.elements.length;e++){var t=this.elements[e];this.addElementImages(t)}},a.prototype.addElementImages=function(e){"IMG"==e.nodeName&&this.addImage(e),this.options.background===!0&&this.addElementBackgroundImages(e);var t=e.nodeType;if(t&&h[t]){for(var n=e.querySelectorAll("img"),i=0;i<n.length;i++){var r=n[i];this.addImage(r)}if("string"==typeof this.options.background){var o=e.querySelectorAll(this.options.background);for(i=0;i<o.length;i++){var a=o[i];this.addElementBackgroundImages(a)}}}};var h={1:!0,9:!0,11:!0};a.prototype.addElementBackgroundImages=function(e){var t=S(e),n=/url\(["]*([^"\)]+)["]*\)/gi,i=n.exec(t.backgroundImage);if(!i){var r=/url\([']*([^'\)]+)[']*\)/gi;i=r.exec(t.backgroundImage)}for(;null!==i;){var o=i&&i[1];o&&this.addBackground(o,e),i=n.exec(t.backgroundImage)}};var S=e.getComputedStyle||function(e){return e.currentStyle};return a.prototype.addImage=function(e){var t=new s(e);this.images.push(t)},a.prototype.addBackground=function(e,t){var n=new T(e,t);this.images.push(n)},a.prototype.check=function(){function e(e,n,i){setTimeout(function(){t.progress(e,n,i)})}var t=this;if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();for(var n=0;n<this.images.length;n++){var i=this.images[n];i.once("progress",e),i.check()}},a.prototype.progress=function(e,t,n){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded,this.emit("progress",this,e,t),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,e),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&u&&u.log("progress: "+n,e,t)},a.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emit(e,this),this.emit("always",this),this.jqDeferred){var t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},s.prototype=new t,s.prototype.check=function(){var e=this.getIsImageComplete();return e?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,n.bind(this.proxyImage,"load",this),n.bind(this.proxyImage,"error",this),n.bind(this.img,"load",this),n.bind(this.img,"error",this),void(this.proxyImage.src=this.img.src))},s.prototype.getIsImageComplete=function(){return this.img.complete&&void 0!==this.img.naturalWidth},s.prototype.confirm=function(e,t){this.isLoaded=e,this.emit("progress",this,this.img,t)},s.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},s.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},s.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},s.prototype.unbindEvents=function(){n.unbind(this.proxyImage,"load",this),n.unbind(this.proxyImage,"error",this),n.unbind(this.img,"load",this),n.unbind(this.img,"error",this)},T.prototype=new s,T.prototype.check=function(){n.bind(this.img,"load",this),n.bind(this.img,"error",this),this.img.src=this.url;var e=this.getIsImageComplete();e&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},T.prototype.unbindEvents=function(){n.unbind(this.img,"load",this),n.unbind(this.img,"error",this)},T.prototype.confirm=function(e,t){this.isLoaded=e,this.emit("progress",this,this.element,t)},a.makeJQueryPlugin=function(e){e=n2,e&&(l=e,l.fn.n2imagesLoaded=function(e,t){var n=new a(this,e,t);return n.jqDeferred.promise(l(this))})},a.makeJQueryPlugin(),a}),function(e){e.event.special.universalclick={add:function(t){var n=e(this),i=!1,r=null,o=function(){i=!0,r&&clearTimeout(r),r=setTimeout(function(){i=!1},400)},a=0,s=0;try{var T=function(e){a=e.touches[0].clientX,s=e.touches[0].clientY};n[0]._touchstart=T,n[0].addEventListener("touchstart",T,window.n2passiveEvents?{passive:!0}:!1),n.on("touchend.universalclick",function(e){Math.abs(e.originalEvent.changedTouches[0].clientX-a)<10&&Math.abs(e.originalEvent.changedTouches[0].clientY-s)<10&&(i||(o(),t.handler.apply(this,arguments)))}).on("click.universalclick",function(e){i||(o(),t.handler.apply(this,arguments))})}catch(l){console.error(l)}},remove:function(){e(this).off(".universalclick");try{this.removeEventListener("touchstart",this._touchstart,window.n2passiveEvents?{passive:!0}:!1),delete this._touchstart}catch(t){}}};var t=[],n=!1,i=function(n){for(var i=e(n.target),r=t.length-1;r>=0;r--)t[r].is(i)||0!=t[r].find(i).length||t[r].trigger("universal_leave")},r=function(){if(!n){n=!0;try{e("body").get(0).addEventListener("touchstart",i,window.n2passiveEvents?{passive:!0}:!1)}catch(t){}}},o=function(){if(n){try{e("body").get(0).removeEventListener("touchstart",i,window.n2passiveEvents?{passive:!0}:!1)}catch(t){}n=!1}},a=function(n){-1==e.inArray(n,t)&&t.push(n),1==t.length&&r()},s=function(n){var i=e.inArray(n,t);i>=0&&(t.splice(i,1),0==t.length&&o())};e.event.special.universalenter={add:function(t){var n=e(this),i=!1,r=null,o=function(){i=!0,r&&(clearTimeout(r),r=null),r=setTimeout(function(){i=!1},400)},T=!1;t.data&&(T=t.data.leaveOnSecond);var l=null,u=function(e){i||(o(),"touchstart"==e.type?T?l?n.trigger("universal_leave"):(a(n),t.handler.apply(this,arguments),l=setTimeout(function(){n.trigger("universal_leave")},5e3)):(l&&(clearTimeout(l),l=null),a(n),t.handler.apply(this,arguments),l=setTimeout(function(){n.trigger("universal_leave")},5e3)):(t.handler.apply(this,arguments),n.on("mouseleave.universalleave",function(){n.off(".universalleave").trigger("universalleave")})))};n.on("universal_leave.universalenter",function(e){e.stopPropagation(),clearTimeout(l),l=null,s(n),n.trigger("universalleave")}).on("mouseenter.universalenter",u);try{n[0]._mouseenter=u,n[0].addEventListener("touchstart",u,window.n2passiveEvents?{passive:!0}:!1)}catch(c){}},remove:function(){e(this).off(".universalenter .universalleave");try{this.removeEventListener("touchstart",this._mouseenter,window.n2passiveEvents?{passive:!0}:!1),delete this._mouseenter}catch(t){}}}}(n2);var tmpModernizr=null;"undefined"!=typeof window.Modernizr&&(tmpModernizr=window.Modernizr),!function(e,t,n){function i(e,t){return typeof e===t}function r(){var e,t,n,r,o,a,s;for(var T in A)if(A.hasOwnProperty(T)){if(e=[],t=A[T],t.name&&(e.push(t.name.toLowerCase()),t.options&&t.options.aliases&&t.options.aliases.length))for(n=0;n<t.options.aliases.length;n++)e.push(t.options.aliases[n].toLowerCase());for(r=i(t.fn,"function")?t.fn():t.fn,o=0;o<e.length;o++)a=e[o],s=a.split("."),1===s.length?M[s[0]]=r:(!M[s[0]]||M[s[0]]instanceof Boolean||(M[s[0]]=new Boolean(M[s[0]])),M[s[0]][s[1]]=r),y.push((r?"":"no-")+s.join("-"))}}function o(e){return e.replace(/([a-z])-([a-z])/g,function(e,t,n){return t+n.toUpperCase()}).replace(/^-/,"")}function a(e){var t=v.className,n=M._config.classPrefix||"";if(I&&(t=t.baseVal),M._config.enableJSClass){new RegExp("(^|\\s)"+n+"no-js(\\s|$)")}M._config.enableClasses&&(t+=" "+n+e.join(" "+n),I?v.className.baseVal=t:v.className=t)}function s(e,t){if("object"==typeof e)for(var n in e)B(e,n)&&s(n,e[n]);else{e=e.toLowerCase();var i=e.split("."),r=M[i[0]];if(2==i.length&&(r=r[i[1]]),"undefined"!=typeof r)return M;t="function"==typeof t?t():t,1==i.length?M[i[0]]=t:(!M[i[0]]||M[i[0]]instanceof Boolean||(M[i[0]]=new Boolean(M[i[0]])),M[i[0]][i[1]]=t),a([(t&&0!=t?"":"no-")+i.join("-")]),M._trigger(e,t)}return M}function T(e,t){return!!~(""+e).indexOf(t)}function l(){return"function"!=typeof t.createElement?t.createElement(arguments[0]):I?t.createElementNS.call(t,"http://www.w3.org/2000/svg",arguments[0]):t.createElement.apply(t,arguments)}function u(){var e=t.body;return e||(e=l(I?"svg":"body"),e.fake=!0),e}function c(e,n,i,r){var o,a,s,T,c="modernizr",h=l("div"),S=u();if(parseInt(i,10))for(;i--;)s=l("div"),s.id=r?r[i]:c+(i+1),h.appendChild(s);return o=l("style"),o.type="text/css",o.id="s"+c,(S.fake?S:h).appendChild(o),S.appendChild(h),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(t.createTextNode(e)),h.id=c,S.fake&&(S.style.background="",S.style.overflow="hidden",T=v.style.overflow,v.style.overflow="hidden",v.appendChild(S)),a=n(h,e),S.fake?(S.parentNode.removeChild(S),v.style.overflow=T,v.offsetHeight):h.parentNode.removeChild(h),!!a}function h(e,t){return function(){return e.apply(t,arguments)}}function S(e,t,n){var r;for(var o in e)if(e[o]in t)return n===!1?e[o]:(r=t[e[o]],i(r,"function")?h(r,n||t):r);return!1}function d(e){return e.replace(/([A-Z])/g,function(e,t){return"-"+t.toLowerCase()}).replace(/^ms-/,"-ms-")}function p(t,i){var r=t.length;if("CSS"in e&&"supports"in e.CSS){for(;r--;)if(e.CSS.supports(d(t[r]),i))return!0;return!1}if("CSSSupportsRule"in e){for(var o=[];r--;)o.push("("+d(t[r])+":"+i+")");return o=o.join(" or "),c("@supports ("+o+") { #modernizr { position: absolute; } }",function(e){return"absolute"==getComputedStyle(e,null).position})}return n}function f(e,t,r,a){function s(){c&&(delete k.style,delete k.modElem)}if(a=i(a,"undefined")?!1:a,!i(r,"undefined")){var u=p(e,r);if(!i(u,"undefined"))return u}for(var c,h,S,d,f,b=["modernizr","tspan"];!k.style;)c=!0,k.modElem=l(b.shift()),k.style=k.modElem.style;for(S=e.length,h=0;S>h;h++)if(d=e[h],f=k.style[d],T(d,"-")&&(d=o(d)),k.style[d]!==n){if(a||i(r,"undefined"))return s(),"pfx"==t?d:!0;try{k.style[d]=r}catch(P){}if(k.style[d]!=f)return s(),"pfx"==t?d:!0}return s(),!1}function b(e,t,n,r,o){var a=e.charAt(0).toUpperCase()+e.slice(1),s=(e+" "+w.join(a+" ")+a).split(" ");return i(t,"string")||i(t,"undefined")?f(s,t,r,o):(s=(e+" "+g.join(a+" ")+a).split(" "),S(s,t,n))}function P(e,t,i){return b(e,n,n,t,i)}var A=[],m={_version:"3.2.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,t){var n=this;setTimeout(function(){t(n[e])},0)},addTest:function(e,t,n){A.push({name:e,fn:t,options:n})},addAsyncTest:function(e){A.push({name:null,fn:e})}},M=function(){};M.prototype=m,M=new M;var G=m._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):[];m._prefixes=G;var v=t.documentElement,C="Moz O ms Webkit",g=m._config.usePrefixes?C.toLowerCase().split(" "):[];m._domPrefixes=g;var B;!function(){var e={}.hasOwnProperty;B=i(e,"undefined")||i(e.call,"undefined")?function(e,t){return t in e&&i(e.constructor.prototype[t],"undefined")}:function(t,n){return e.call(t,n)}}();var y=[],H="CSS"in e&&"supports"in e.CSS,E="supportsCSS"in e;M.addTest("supports",H||E);var I="svg"===v.nodeName.toLowerCase();m._l={},m.on=function(e,t){this._l[e]||(this._l[e]=[]),this._l[e].push(t),M.hasOwnProperty(e)&&setTimeout(function(){M._trigger(e,M[e])},0)},m._trigger=function(e,t){if(this._l[e]){var n=this._l[e];setTimeout(function(){var e,i;for(e=0;e<n.length;e++)(i=n[e])(t)},0),delete this._l[e]}},M._q.push(function(){m.addTest=s}),I||!function(e,t){function n(e,t){var n=e.createElement("p"),i=e.getElementsByTagName("head")[0]||e.documentElement;return n.innerHTML="x<style>"+t+"</style>",i.insertBefore(n.lastChild,i.firstChild)}function i(){var e=A.elements;return"string"==typeof e?e.split(" "):e}function r(e,t){var n=A.elements;"string"!=typeof n&&(n=n.join(" ")),"string"!=typeof e&&(e=e.join(" ")),A.elements=n+" "+e,l(t)}function o(e){var t=P[e[f]];return t||(t={},b++,e[f]=b,P[b]=t),t}function a(e,n,i){if(n||(n=t),c)return n.createElement(e);i||(i=o(n));var r;return r=i.cache[e]?i.cache[e].cloneNode():p.test(e)?(i.cache[e]=i.createElem(e)).cloneNode():i.createElem(e),!r.canHaveChildren||d.test(e)||r.tagUrn?r:i.frag.appendChild(r)}function s(e,n){if(e||(e=t),c)return e.createDocumentFragment();n=n||o(e);for(var r=n.frag.cloneNode(),a=0,s=i(),T=s.length;T>a;a++)r.createElement(s[a]);return r}function T(e,t){t.cache||(t.cache={},t.createElem=e.createElement,t.createFrag=e.createDocumentFragment,t.frag=t.createFrag()),e.createElement=function(n){return A.shivMethods?a(n,e,t):t.createElem(n)},e.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+i().join().replace(/[\w\-:]+/g,function(e){return t.createElem(e),t.frag.createElement(e),'c("'+e+'")'})+");return n}")(A,t.frag)}function l(e){e||(e=t);var i=o(e);return!A.shivCSS||u||i.hasCSS||(i.hasCSS=!!n(e,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),c||T(e,i),e}var u,c,h="3.7.3",S=e.html5||{},d=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,p=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,f="_html5shiv",b=0,P={};!function(){try{var e=t.createElement("a");e.innerHTML="<xyz></xyz>",u="hidden"in e,c=1==e.childNodes.length||function(){t.createElement("a");var e=t.createDocumentFragment();return"undefined"==typeof e.cloneNode||"undefined"==typeof e.createDocumentFragment||"undefined"==typeof e.createElement}()}catch(n){u=!0,c=!0}}();var A={elements:S.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:h,shivCSS:S.shivCSS!==!1,supportsUnknownElements:c,shivMethods:S.shivMethods!==!1,type:"default",shivDocument:l,createElement:a,createDocumentFragment:s,addElements:r};e.html5=A,l(t),"object"==typeof module&&module.exports&&(module.exports=A)}("undefined"!=typeof e?e:this,t);var w=m._config.usePrefixes?C.split(" "):[];m._cssomPrefixes=w;var _=function(t){var i,r=G.length,o=e.CSSRule;if("undefined"==typeof o)return n;if(!t)return!1;if(t=t.replace(/^@/,""),i=t.replace(/-/g,"_").toUpperCase()+"_RULE",i in o)return"@"+t;for(var a=0;r>a;a++){var s=G[a],T=s.toUpperCase()+"_"+i;if(T in o)return"@-"+s.toLowerCase()+"-"+t}return!1};m.atRule=_;var D=m.testStyles=c,N={elem:l("modernizr")};M._q.push(function(){delete N.elem});var k={style:N.elem.style};M._q.unshift(function(){delete k.style}),m.testProp=function(e,t,i){return f([e],n,t,i)},m.testAllProps=b,m.prefixed=function(e,t,n){return 0===e.indexOf("@")?_(e):(-1!=e.indexOf("-")&&(e=o(e)),t?b(e,t,n):b(e,"pfx"))},m.testAllProps=P,M.addTest("csstransforms3d",function(){var e=!!P("perspective","1px",!0),t=M._config.usePrefixes;if(e&&(!t||"webkitPerspective"in v.style)){var n,i="#modernizr{width:0;height:0}";M.supports?n="@supports (perspective: 1px)":(n="@media (transform-3d)",t&&(n+=",(-webkit-transform-3d)")),n+="{#modernizr{width:7px;height:18px;margin:0;padding:0;border:0}}",D(i+n,function(t){e=7===t.offsetWidth&&18===t.offsetHeight})}return e}),r(),a(y),delete m.addTest,delete m.addAsyncTest;for(var O=0;O<M._q.length;O++)M._q[O]();e.Modernizr=M}(window,document),Modernizr.addTest("csstransformspreserve3d",function(){var e,t=Modernizr.prefixed("transformStyle"),n="preserve-3d";return t?(t=t.replace(/([A-Z])/g,function(e,t){return"-"+t.toLowerCase()}).replace(/^ms-/,"-ms-"),Modernizr.testStyles("#modernizr{"+t+":"+n+";}",function(n,i){window.getComputedStyle?(e=getComputedStyle(n,null),e=e?e.getPropertyValue(t):""):e=""}),e===n):!1}),window.nModernizr=window.Modernizr,tmpModernizr&&(window.Modernizr=tmpModernizr),Array.prototype.indexOf||(Array.prototype.indexOf=function(e,t){null==t?t=0:0>t&&(t=Math.max(0,this.length+t));for(var n=t,i=this.length;i>n;n++)if(this[n]===e)return n;return-1}),function(){function e(){this._isTicking=!1,this._isMobile=!1,this._lastTick=0,this._ticks=[],this._postTickCallbacks=[];var e=function(){var e=0;return window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){var n,i=(new Date).getTime();return n=Math.max(0,16-(i-e)),e=i+n,setTimeout(function(){
3
  t(i+n)},n)}}();this._raf=window.requestAnimationFrame||e;var t=this;this._isMobile||void 0===document.hidden||document.addEventListener("visibilitychange",function(){document.hidden?(this._raf=function(e){return setTimeout(function(){e(t.now())},16)},t._tick(t.now())):t._raf=window.requestAnimationFrame||e})}var t=function(e){for(var t,n,i=arguments,r=i.length;r>1&&e.length;)for(t=i[--r];-1!==(n=e.indexOf(t));)e.splice(n,1);return e};e.prototype.addTick=function(e){-1==this._ticks.indexOf(e)&&this._ticks.push(e),this._isTicking||(this._isTicking=!0,this._raf.call(null,this.getTickStart()))},e.prototype.removeTick=function(e){t(this._ticks,e),0===this._ticks.length&&this._isTicking&&(this._lastTick=0,this._isTicking=!1)},e.prototype._tickStart=function(e){this._lastTick=e,this._isTicking&&(this._lastTick=e,this._raf.call(null,this.getTick()))},e.prototype._tick=function(e){var t=(e-this._lastTick)/1e3;if(0!=t){for(var n=0;n<this._ticks.length;n++)this._ticks[n].call(null,t);this.postTick()}this._continueTick(e)},e.prototype._continueTick=function(e){this._isTicking&&(this._lastTick=e,this._raf.call(null,this.getTick()))},e.prototype.getTick=function(){var e=this;return function(){e._tick.apply(e,arguments)}},e.prototype.getTickStart=function(){var e=this;return function(){e._tickStart.apply(e,arguments)}},e.prototype.now=function(){return performance.now()},e.prototype.postTick=function(){for(var e=0;e<this._postTickCallbacks.length;e++)this._postTickCallbacks[e]();this._postTickCallbacks=[]},e.prototype.addPostTick=function(e){this._postTickCallbacks.push(e)},window.N2A={RAF:new e,isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},isFunction:function(e){return"function"==typeof e},isString:function(e){return"string"==typeof e}}}(),function(){function e(e){this._tickCallback=null,this._progress=0,this._delayTimeout=!1,this._delay=0,this._duration=4,this._timeScale=1,this._isPlaying=!1,this._startTime=0,this._eventCallbacks={},this._immediateRender=!0,this._timeline=null,this._isCompleted=!1,this._isStarted=!1,this._isReversed=!1,this.toParams=e,this.initParameters()}e.prototype.initParameters=function(){this.parseParameters(this.toParams),"object"!=typeof this.toParams&&this.paused(!1)},e.prototype.parseParameters=function(e){e&&(e.delay&&(this.delay(e.delay),delete e.delay),"undefined"!=typeof e.duration&&(this.duration(e.duration),delete e.duration),e.onComplete&&(this.eventCallback("onComplete",e.onComplete),delete e.onComplete),e.onStart&&(this.eventCallback("onStart",e.onStart),delete e.onStart),e.onUpdate&&(this.eventCallback("onUpdate",e.onUpdate),delete e.onUpdate),e.immediateRender&&(this._immediateRender=e.immediateRender,delete e.immediateRender),e.paused&&this.paused(!0))},e.prototype.setTimeline=function(e){this._timeline=e},e.prototype._tick=function(e){var t=this._progress;this._isReversed?(this._progress-=e/this._duration*this._timeScale,1!=t&&this._isStarted?this._progress<=0?(this._progress=0,this._isPlaying=!1,N2A.RAF.removeTick(this.getTickCallback()),this._onUpdate(),this._onReverseComplete()):this._onUpdate():this._onReverseStart()):(this._progress+=e/this._duration*this._timeScale,0!=t&&this._isStarted?this._progress>=1?(this._progress=1,this._isPlaying=!1,N2A.RAF.removeTick(this.getTickCallback()),this._onUpdate(),this._onComplete()):this._onUpdate():this._onStart())},e.prototype._onStart=function(){this._isStarted=!0,this._isPlaying=!1,this._isCompleted=!1,this.trigger("onStart"),this._onUpdate()},e.prototype._onUpdate=function(){this.trigger("onUpdate")},e.prototype._onComplete=function(){this._isCompleted=!0,this._onUpdate(),this.trigger("onComplete")},e.prototype._onReverseComplete=function(){this._isCompleted=!0,this._isReversed=!1,this._onUpdate(),this.trigger("onReverseComplete")},e.prototype._onReverseStart=function(){this._isStarted=!0,this._isPlaying=!1,this._isCompleted=!1,this.trigger("onReverseStart"),this._onUpdate()},e.prototype.getTickCallback=function(){if(!this._tickCallback){var e=this;this._tickCallback=function(){e._tick.apply(e,arguments)}}return this._tickCallback},e.prototype._clearDelayTimeout=function(){this._delayTimeout&&(clearTimeout(this._delayTimeout),this._delayTimeout=!1)},e.prototype._timeToProgress=function(e){return e/this._duration*this._timeScale},e.prototype.delay=function(){if(arguments.length>0){var e=parseFloat(arguments[0]);return!isNaN(e)&&e!=1/0&&e||(e=0),this._delay=Math.max(0,e),this}return this._delay},e.prototype.duration=function(){if(arguments.length>0){var e=parseFloat(arguments[0]);return!isNaN(e)&&e!=1/0&&e||(e=0),this._duration=Math.max(0,e),this}return this._duration},e.prototype.eventCallback=function(e){return arguments.length>3?this._eventCallbacks[e]=[arguments[1],arguments[2],arguments[3]]:arguments.length>2?this._eventCallbacks[e]=[arguments[1],arguments[2],this]:arguments.length>1&&(this._eventCallbacks[e]=[arguments[1],[],this]),this._eventCallbacks[e]},e.prototype.pause=function(){return this._isPlaying=!1,N2A.RAF.removeTick(this.getTickCallback()),arguments.length>0&&null!=arguments[0]&&this.progress(this._timeToProgress(arguments[0])),this},e.prototype.paused=function(){return arguments.length>0?(arguments[0]?this._isPlaying&&this.pause():this._isPlaying||this.play(),this):!this._isPlaying},e.prototype.play=function(){var e=!0;arguments.length>0&&null!=arguments[0]&&(e=!1,this._progress=this._timeToProgress(arguments[0])),this._play(e)},e.prototype._play=function(e){if(this._progress<1)if(0==this._progress&&e&&this._delay>0){if(!this._delayTimeout){var t=this;this._delayTimeout=setTimeout(function(){t.__play.apply(t,arguments)},1e3*this._delay)}}else this.__play();else this._isCompleted||(this._isReversed?this._onReverseComplete():this._onComplete())},e.prototype.__play=function(){this._clearDelayTimeout(),this._isPlaying||(N2A.RAF.addTick(this.getTickCallback()),this._isPlaying=!0)},e.prototype.progress=function(){if(arguments.length>0){var e=parseFloat(arguments[0]);return isNaN(e)&&(e=0),e=Math.min(1,Math.max(0,e)),this._progress=e,this._isPlaying||(this._isStarted||this._onStart(),this._onUpdate()),this}return this._progress},e.prototype.reverse=function(){this._isReversed=!0,0!=this.progress()&&this.play()},e.prototype.restart=function(){return arguments.length>0&&arguments[0]?(this.pause(0),this.play(),this):(this.play(0),this)},e.prototype.seek=function(e){null!=e&&(this._progress=this._timeToProgress(arguments[0]),this._isPlaying||this._onUpdate())},e.prototype.startTime=function(){if(arguments.length>0){var e=parseFloat(arguments[0]);return isNaN(e)&&(e=0),this._startTime=Math.max(0,e),this}return this._startTime},e.prototype.timeScale=function(){if(arguments.length>0){var e=parseFloat(arguments[0]);return isNaN(e)&&(e=1),e=Math.max(.01,e),this._timeScale!=e&&(this._timeScale=e),this}return this._timeScale},e.prototype.trigger=function(e){"object"==typeof this._eventCallbacks[e]&&this._eventCallbacks[e][0].apply(this._eventCallbacks[e][2],this._eventCallbacks[e][1])},e.prototype.totalDuration=function(){if(arguments.length>0){var e=parseFloat(arguments[0]);return isNaN(e)&&(e=0),e=Math.max(0,e),this.timeScale(this._duration/e),this}return this._duration*this._timeScale},e.prototype.reset=function(){this._isCompleted=!1,this._isStarted=!1,this.progress(0)},N2A.Animation=e}(),function(e){function t(){this.clearStack()}function n(e){return e.n2Transform||(e.n2Transform=new i),e.n2Transform}function i(e){this.data={x:0,y:0,z:0,rotationX:0,rotationY:0,rotationZ:0,scaleX:1,scaleY:1,scaleZ:1,scale:1}}var r={};t.prototype.set=function(t,n,i,r){t.length||(t=[t]);for(var o=0;o<t.length;o++){var a=t[o],s=e.inArray(a,this.elements);-1==s&&(s=this.elements.push(a)-1,this.stack[s]={}),""!=r&&(i+=r),this.stack[s][n]=i}if(!this.registeredToTick){var T=this;N2A.RAF.addPostTick(function(){T.flush()}),this.registeredToTick=!0,N2A.RAF._isTicking||N2A.RAF.postTick()}},t.prototype.flush=function(){for(var e=0;e<this.elements.length;e++){var t=this.elements[e];for(var n in this.prepareStack(t,this.stack[e])){var i=nModernizr.prefixed(n);i&&(t.style[i]=this.stack[e][n])}}this.clearStack()},t.prototype.prepareStack=function(e,t){for(var n in t)"undefined"!=typeof r[n]&&r[n](e).prepare(t);return t},t.prototype.clearStack=function(){this.registeredToTick=!1,this.elements=[],this.stack=[]};t.prototype.makeTransitionData=function(e,t,n,i){var r,o,a,s,T;if(t.match(/transformOrigin|perspective/)){if(i)return{startValue:i,endValue:i,unit:"",range:0};if(n)return{startValue:n,endValue:n,unit:"",range:0}}return"undefined"==typeof n&&(n=this.getProperty(e,t)),s=this.separateValue(t,n),n=s[0],o=s[1],"undefined"==typeof i&&(i=this.getProperty(e,t)),T=this.separateValue(t,i),i=T[0],a=T[1],r=a||o,a!=r&&(i=this.transformUnit(e,t,i,a,r)),o!=r&&(n=this.transformUnit(e,t,n,o,r)),{startValue:n,endValue:i,unit:r,range:i-n}},t.prototype.getProperty=function(t,n){if("undefined"!=typeof r[n])return r[n](t).get(n);var i=nModernizr.prefixed(n);if(i){var o=e(t).css(n);return"auto"==o?0:o}},t.prototype.transformUnit=function(e,t,n,i,r){if(0==n)return 0;var o="";switch(t){case"left":case"right":o="width";break;case"top":case"bottom":o="height";break;default:o=t}if("px"==i&&"%"==r){var a=this.getProperty(e.parent(),o),s=this.separateValue(o,a);return n/s[0]*100}if("%"==i&&"px"==r){var a=this.getProperty(e.parent(),o),s=this.separateValue(o,a);return n/100*s[0]}return n},t.prototype.parsePropertyValue=function(e,t){var n=void 0,i=void 0;return N2A.isArray(t)?(n=t[0],i=t[1]):n=t,N2A.isFunction(n)&&(n=n.call(e)),N2A.isFunction(i)&&(i=i.call(e)),[n||0,i]},t.prototype.separateValue=function(e,t){var n,i;return i=(t||"0").toString().toLowerCase().replace(/[%A-z]+$/,function(e){return n=e,""}),n||(n=this.getUnitType(e)),[parseFloat(i),n]},t.prototype.getUnitType=function(e){return/(^(x|y|z|rotationX|rotationY|rotationZ|scale|scaleX|scaleY|opacity)$)/i.test(e)?"":"px"},N2A.CSS=t,r.x=n,r.y=n,r.z=n,r.rotationX=n,r.rotationY=n,r.rotationZ=n,r.scale=n,r.scaleX=n,r.scaleY=n,r.scaleZ=n,i.prototype.get=function(e){return this.data[e]};var o=Math.PI/180;i.prototype.prepare=function(e){"undefined"!=typeof e.scale&&(e.scaleX=e.scale,e.scaleY=e.scale,delete e.scale);for(var t in this.data)"undefined"!=typeof e[t]&&(this.data[t]=e[t],delete e[t]);return this.data.scale=this.data.scaleX,e.transform=this.matrix3d(this.data.x,this.data.y,this.data.z,this.data.scaleX,this.data.scaleY,this.data.rotationX,this.data.rotationY,this.data.rotationZ),e},i.prototype.matrix3d=function(e,t,n,i,r,a,s,T){var l=Math.cos(a*o),u=Math.sin(a*o),c=Math.cos(s*o),h=Math.sin(s*o),S=Math.cos(T*o),d=Math.sin(T*o),p=new Array(16);return p[0]=c*S*i,p[1]=d,p[2]=h,p[3]=0,p[4]=-1*d,p[5]=l*S*r,p[6]=u,p[7]=0,p[8]=-1*h,p[9]=-1*u,p[10]=c*l,p[11]=0,p[12]=e,p[13]=t,p[14]=n,p[15]=1,"matrix3d("+p[0]+","+p[1]+","+p[2]+","+p[3]+","+p[4]+","+p[5]+","+p[6]+","+p[7]+","+p[8]+","+p[9]+","+p[10]+","+p[11]+","+p[12]+","+p[13]+","+p[14]+","+p[15]+")"}}(n2),function(e){function t(t,r){this.ease="linear",this._tweenContainer=null,this._setContainer=null;var o,a=null;switch(arguments.length){case 4:a=e.extend(!0,{},arguments[2]),o=arguments[3],o?(this._mode=i.FROMTO,o=e.extend(!0,{},o)):this._mode=i.FROM;break;default:this._mode=i.TO,a={},o=e.extend(!0,{},arguments[2])}if(this._target=e(t),this.fromParams=a,N2A.Animation.call(this,o),this.parseParameters({duration:r}),(this._mode==i.FROM||this._mode==i.FROMTO)&&this._immediateRender){null===this._tweenContainer&&this._makeTweenContainer(this.fromParams,this.toParams);for(var s in this._tweenContainer){var T=this._tweenContainer[s];n.set(this._target,s,T.startValue,T.unit)}for(var s in this._setContainer){var T=this._setContainer[s];n.set(this._target,s,T.endValue,T.unit)}}}var n=new N2A.CSS,i={FROM:1,FROMTO:2,TO:3};t.prototype=Object.create(N2A.Animation.prototype),t.prototype.constructor=t,t.prototype.initParameters=function(){this.parseParameters(this.fromParams),N2A.Animation.prototype.initParameters.apply(this,arguments)},t.prototype.parseParameters=function(e){e&&(e.ease&&(this.ease=e.ease,delete e.ease),N2A.Animation.prototype.parseParameters.apply(this,arguments))},t.prototype._onStart=function(){null===this._tweenContainer&&this._makeTweenContainer(this.fromParams,this.toParams);for(var e in this._setContainer){var t=this._setContainer[e];n.set(this._target,e,t.endValue,t.unit)}N2A.Animation.prototype._onStart.call(this)},t.prototype._onUpdate=function(){for(var e in this._tweenContainer){var t=this._tweenContainer[e];n.set(this._target,e,N2A.easings[this.ease](this._progress,t.startValue,t.range*this._progress,1),t.unit)}N2A.Animation.prototype._onUpdate.call(this)},t.prototype._makeTweenContainer=function(e,t){if(this._setContainer={},this._tweenContainer={},t)for(var i in t){var r=n.makeTransitionData(this._target,i,e[i],t[i]);0==r.range?this._setContainer[i]=r:this._tweenContainer[i]=r}else for(var i in e){var r=n.makeTransitionData(this._target,i,e[i]);0==r.range?this._setContainer[i]=r:this._tweenContainer[i]=r}},t.set=function(t,i){for(var r in i)n.set(e(t),r,i[r],"")},t.to=function(e,n,i){return new t(e,n,i)},t.fromTo=function(e,n,i,r){return new t(e,n,i,r)},t.from=function(e,n,i){return new t(e,n,i,null)},window.NextendTween=t}(n2),function(e){function t(t){this.originalParams=e.extend(!0,{},t),this._tweens=[],N2A.Animation.call(this,t),this._duration=0}t.prototype=Object.create(N2A.Animation.prototype),t.prototype.constructor=t,t.prototype._onUpdate=function(){if(this.tweensContainer)for(var e=0;e<this.tweensContainer.length;e++){var t=this.tweensContainer[e],n=Math.min(1,(this._progress-t.startProgress)/(t.endProgress-t.startProgress));t.tween._isCompleted&&n<=t.endProgress&&t.tween.reset(),!t.tween._isStarted&&n>=0&&0==t.tween.progress()&&t.tween._onStart(),t.tween._isStarted&&(1!=n||t.tween._isCompleted?n>=0&&1>n?t.tween.progress(n):0>n&&0!=t.tween.progress()&&t.tween.progress(0):(t.tween.progress(n),t.tween._onComplete()))}N2A.Animation.prototype._onUpdate.call(this),N2A.RAF._isTicking||N2A.RAF.postTick()},t.prototype.addTween=function(e){e.pause(),e.setTimeline(this);var t=0;t=arguments.length>1?this._parsePosition(arguments[1]):this._parsePosition();var n=e.delay();n>0&&(t+=n,e.delay(0)),e.startTime(t),this._tweens.push(e);var i=e.totalDuration()+t;i>this._duration&&(this._duration=i),this.makeCache()},t.prototype.clear=function(){this.paused()||this.pause(),t.call(this,this.originalParams)},t.prototype.add=function(e,t){this.addTween(e,t)},t.prototype.set=function(e,t,n){this.addTween(NextendTween.to(e,.05,t),n)},t.prototype.to=function(e,t,n,i){this.addTween(NextendTween.to(e,t,n),i)},t.prototype.fromTo=function(e,t,n,i,r){this.addTween(NextendTween.fromTo(e,t,n,i),r)},t.prototype.from=function(e,t,n,i){this.addTween(NextendTween.from(e,t,n),i)},t.prototype._play=function(){if(0==this._progress)for(var e=0;e<this._tweens.length;e++)this._tweens[e].pause(0);N2A.Animation.prototype._play.apply(this,arguments)},t.prototype._parsePosition=function(){var e="+=0";arguments.length>0&&"undefined"!=typeof arguments[0]&&!isNaN(arguments[0])&&(e=arguments[0]);var t=0;switch(typeof e){case"string":switch(e.substr(0,2)){case"+=":t=this.duration()+parseFloat(e.substr(2));break;case"-=":t=this.duration()-parseFloat(e.substr(2))}break;default:t=parseFloat(e)}return Math.max(0,t)},t.prototype.makeCache=function(){var e=this.totalDuration();this.tweensContainer=[];for(var t=0;t<this._tweens.length;t++){var n=this._tweens[t],i=n.startTime()/e,r=(n.startTime()+n.totalDuration())/e;this.tweensContainer.push({tween:n,startProgress:i,endProgress:r,range:r-i})}},window.NextendTimeline=t}(n2),function(){N2A.easings={linear:function(e,t,n,i){return n+t},easeInQuad:function(e,t,n,i){return n*(e/=i)*e+t},easeOutQuad:function(e,t,n,i){return-n*(e/=i)*(e-2)+t},easeInOutQuad:function(e,t,n,i){return(e/=i/2)<1?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t},easeInCubic:function(e,t,n,i){return n*(e/=i)*e*e+t},easeOutCubic:function(e,t,n,i){return n*((e=e/i-1)*e*e+1)+t},easeInOutCubic:function(e,t,n,i){return(e/=i/2)<1?n/2*e*e*e+t:n/2*((e-=2)*e*e+2)+t},easeInQuart:function(e,t,n,i){return n*(e/=i)*e*e*e+t},easeOutQuart:function(e,t,n,i){return-n*((e=e/i-1)*e*e*e-1)+t},easeInOutQuart:function(e,t,n,i){return(e/=i/2)<1?n/2*e*e*e*e+t:-n/2*((e-=2)*e*e*e-2)+t},easeInQuint:function(e,t,n,i){return n*(e/=i)*e*e*e*e+t},easeOutQuint:function(e,t,n,i){return n*((e=e/i-1)*e*e*e*e+1)+t},easeInOutQuint:function(e,t,n,i){return(e/=i/2)<1?n/2*e*e*e*e*e+t:n/2*((e-=2)*e*e*e*e+2)+t},easeInSine:function(e,t,n,i){return-n*Math.cos(e/i*(Math.PI/2))+n+t},easeOutSine:function(e,t,n,i){return n*Math.sin(e/i*(Math.PI/2))+t},easeInOutSine:function(e,t,n,i){return-n/2*(Math.cos(Math.PI*e/i)-1)+t},easeInExpo:function(e,t,n,i){return 0==e?t:n*Math.pow(2,10*(e/i-1))+t},easeOutExpo:function(e,t,n,i){return e==i?t+n:n*(-Math.pow(2,-10*e/i)+1)+t},easeInOutExpo:function(e,t,n,i){return 0==e?t:e==i?t+n:(e/=i/2)<1?n/2*Math.pow(2,10*(e-1))+t:n/2*(-Math.pow(2,-10*--e)+2)+t},easeInCirc:function(e,t,n,i){return-n*(Math.sqrt(1-(e/=i)*e)-1)+t},easeOutCirc:function(e,t,n,i){return n*Math.sqrt(1-(e=e/i-1)*e)+t},easeInOutCirc:function(e,t,n,i){return(e/=i/2)<1?-n/2*(Math.sqrt(1-e*e)-1)+t:n/2*(Math.sqrt(1-(e-=2)*e)+1)+t},easeInElastic:function(e,t,n,i){var r=1.70158,o=0,a=n;if(0==e)return t;if(1==(e/=i))return t+n;if(o||(o=.3*i),a<Math.abs(n)){a=n;var r=o/4}else var r=o/(2*Math.PI)*Math.asin(n/a);return-(a*Math.pow(2,10*(e-=1))*Math.sin((e*i-r)*(2*Math.PI)/o))+t},easeOutElastic:function(e,t,n,i){var r=1.70158,o=0,a=n;if(0==e)return t;if(1==(e/=i))return t+n;if(o||(o=.3*i),a<Math.abs(n)){a=n;var r=o/4}else var r=o/(2*Math.PI)*Math.asin(n/a);return a*Math.pow(2,-10*e)*Math.sin((e*i-r)*(2*Math.PI)/o)+n+t},easeInOutElastic:function(e,t,n,i){var r=1.70158,o=0,a=n;if(0==e)return t;if(2==(e/=i/2))return t+n;if(o||(o=i*(.3*1.5)),a<Math.abs(n)){a=n;var r=o/4}else var r=o/(2*Math.PI)*Math.asin(n/a);return 1>e?-.5*(a*Math.pow(2,10*(e-=1))*Math.sin((e*i-r)*(2*Math.PI)/o))+t:a*Math.pow(2,-10*(e-=1))*Math.sin((e*i-r)*(2*Math.PI)/o)*.5+n+t},easeInBack:function(e,t,n,i,r){return void 0==r&&(r=1.70158),n*(e/=i)*e*((r+1)*e-r)+t},easeOutBack:function(e,t,n,i,r){return void 0==r&&(r=1.70158),n*((e=e/i-1)*e*((r+1)*e+r)+1)+t},easeInOutBack:function(e,t,n,i,r){return void 0==r&&(r=1.70158),(e/=i/2)<1?n/2*(e*e*(((r*=1.525)+1)*e-r))+t:n/2*((e-=2)*e*(((r*=1.525)+1)*e+r)+2)+t},easeInBounce:function(e,t,n,i){return n-N2A.easing.easeOutBounce(i-e,0,n,i)+t},easeOutBounce:function(e,t,n,i){return(e/=i)<1/2.75?n*(7.5625*e*e)+t:2/2.75>e?n*(7.5625*(e-=1.5/2.75)*e+.75)+t:2.5/2.75>e?n*(7.5625*(e-=2.25/2.75)*e+.9375)+t:n*(7.5625*(e-=2.625/2.75)*e+.984375)+t},easeInOutBounce:function(e,t,n,i){return i/2>e?.5*N2A.easing.easeInBounce(2*e,0,n,i)+t:.5*N2A.easing.easeOutBounce(2*e-i,0,n,i)+.5*n+t}}}(n2);
nextend/media/dist/system-backend.js CHANGED
@@ -3800,8 +3800,11 @@
3800
  target.fontFamily = families.join(',');
3801
  };
3802
  NextendFontRenderer.prototype.getFamily = function (family) {
3803
- $(window).trigger('n2Family', [family]);
3804
- return "'" + family + "'";
 
 
 
3805
  };
3806
 
3807
  NextendFontRenderer.prototype.makeStylelineheight = function (value, target) {
@@ -4869,14 +4872,17 @@ N2Require('Icons', [], [], function ($, scope, undefined) {
4869
  }
4870
 
4871
  NextendFontServiceGoogle.prototype.loadFamily = function (e, family) {
4872
- family = family.toLowerCase()
4873
- if (typeof this.fonts[family] !== 'undefined') {
4874
  $('<link />').attr({
4875
  rel: 'stylesheet',
4876
  type: 'text/css',
4877
- href: '//fonts.googleapis.com/css?family=' + encodeURIComponent(this.fonts[family] + ':' + this.style) + '&subset=' + encodeURIComponent(this.subset)
4878
  }).appendTo($('head'));
 
 
4879
  }
 
4880
  };
4881
 
4882
  scope.NextendFontServiceGoogle = NextendFontServiceGoogle;
3800
  target.fontFamily = families.join(',');
3801
  };
3802
  NextendFontRenderer.prototype.getFamily = function (family) {
3803
+ var translatedFamily = $(window).triggerHandler('n2Family', [family]);
3804
+ if (translatedFamily === undefined) {
3805
+ translatedFamily = family;
3806
+ }
3807
+ return "'" + translatedFamily + "'";
3808
  };
3809
 
3810
  NextendFontRenderer.prototype.makeStylelineheight = function (value, target) {
4872
  }
4873
 
4874
  NextendFontServiceGoogle.prototype.loadFamily = function (e, family) {
4875
+ var familyLower = family.toLowerCase();
4876
+ if (typeof this.fonts[familyLower] !== 'undefined') {
4877
  $('<link />').attr({
4878
  rel: 'stylesheet',
4879
  type: 'text/css',
4880
+ href: '//fonts.googleapis.com/css?family=' + encodeURIComponent(this.fonts[familyLower] + ':' + this.style) + '&subset=' + encodeURIComponent(this.subset)
4881
  }).appendTo($('head'));
4882
+
4883
+ return this.fonts[familyLower];
4884
  }
4885
+ return family;
4886
  };
4887
 
4888
  scope.NextendFontServiceGoogle = NextendFontServiceGoogle;
nextend/media/dist/system-backend.min.js CHANGED
@@ -1,3 +1,3 @@
1
  !function(e,t){function i(t){this.loadDefaults(),this.$=e(this),window.nextend[this.type+"Manager"]=this,this.modals=this.initModals(),this.lightbox=e("#n2-lightbox-"+this.type),this.notificationStack=new NextendNotificationCenterStack(this.lightbox.find(".n2-top-bar")),this.visualListContainer=this.lightbox.find(".n2-lightbox-sidebar-list"),this.parameters=t,this.visuals={},this.controller=this.initController(),this.controller&&(this.renderer=this.controller.renderer),this.firstLoadVisuals(t.visuals),e(".n2-"+this.type+"-save-as-new").on("click",e.proxy(this.saveAsNew,this)),this.cancelButton=e("#n2-"+this.type+"-editor-cancel").on("click",e.proxy(this.hide,this)),this.saveButton=e("#n2-"+this.type+"-editor-save").off("click").on("click",e.proxy(this.setVisual,this))}function n(){i.prototype.constructor.apply(this,arguments)}function o(){n.prototype.constructor.apply(this,arguments)}function r(){o.prototype.constructor.apply(this,arguments),this.linkedButton=e("#n2-"+this.type+"-editor-set-as-linked"),this.setMode(0)}function a(t){window.nextend[this.type+"Manager"]=this,this._lateInit=e.proxy(function(e){n.prototype.constructor.call(this,e)},this,t)}function s(e,t){this.id=e.id,this.visualManager=t,this.setValue(e.value,!1),this.visual=e,this.visualManager.visuals[this.id]=this}function l(e,t,i){this.set=t,s.prototype.constructor.call(this,e,i)}function d(){l.prototype.constructor.apply(this,arguments)}function h(e,t,i){this.checked=!1,e.system=1,e.editable=0,d.prototype.constructor.apply(this,arguments)}i.prototype.setTitle=function(e){this.lightbox.find(".n2-logo").html(e)},i.prototype.loadDefaults=function(){this.mode="linked",this.labels={visual:n2_("visual"),visuals:n2_("visuals")},this.visualLoadDeferreds={},this.showParameters=!1},i.prototype.initModals=function(){return new NextendVisualManagerModals(this)},i.prototype.firstLoadVisuals=function(e){for(var t in e)this.sets[t].loadVisuals(e[t])},i.prototype.initController=function(){},i.prototype.getVisual=function(t){if(parseInt(t)>0){if("undefined"!=typeof this.visuals[t])return this.visuals[t];if("undefined"!=typeof this.visualLoadDeferreds[t])return this.visualLoadDeferreds[t];var i=e.Deferred();return this.visualLoadDeferreds[t]=i,this._loadVisualFromServer(t).done(e.proxy(function(){i.resolve(this.visuals[t]),delete this.visualLoadDeferreds[t]},this)).fail(e.proxy(function(){i.resolve({id:-1,name:n2_("Empty")}),delete this.visualLoadDeferreds[t]},this)),i}try{var n=t;return"{"!=n[0]&&(n=Base64.decode(n)),JSON.parse(n),{id:0,name:n2_("Static")}}catch(o){return{id:-1,name:n2_("Empty")}}},i.prototype._loadVisualFromServer=function(t){return NextendAjaxHelper.ajax({type:"POST",url:NextendAjaxHelper.makeAjaxUrl(this.parameters.ajaxUrl,{nextendaction:"loadVisual"}),data:{visualId:t},dataType:"json"}).done(e.proxy(function(e){},this))},i.prototype.show=function(t,i,n){NextendEsc.add(e.proxy(function(){return this.hide(),!0},this)),this.notificationStack.enableStack(),this.showParameters=e.extend({previewMode:!1,previewHTML:!1},n),e("body").css("overflow","hidden"),this.lightbox.css("display","block"),e(window).on("resize."+this.type+"Manager",e.proxy(this.resize,this)),this.resize(),this.loadDataToController(t),this.controller.show(),this.$.on("save",i),this._show()},i.prototype._show=function(){e(":focus").blur(),e(window).on({"keydown.visual":e.proxy(function(e){"TEXTAREA"!=e.target.tagName&&"INPUT"!=e.target.tagName&&13==e.keyCode&&this.saveButton.trigger("click")},this)})},i.prototype.setAndClose=function(e){this.$.trigger("save",[e])},i.prototype.hide=function(t){this.controller.pause(),this.notificationStack.popStack(),"undefined"!=typeof t&&(t.preventDefault(),NextendEsc.pop()),this.controller.close(),this.$.off("save"),e(window).off("resize."+this.type+"Manager"),e("body").css("overflow",""),this.lightbox.css("display","none"),e(window).off("keydown.visual")},i.prototype.resize=function(){var e=this.lightbox.height(),t=this.lightbox.find(".n2-sidebar");t.find(".n2-lightbox-sidebar-list").height(e-1-t.find(".n2-logo").outerHeight()-t.find(".n2-sidebar-row").outerHeight()-t.find(".n2-save-as-new-container").parent().height());var i=this.lightbox.find(".n2-content-area");i.height(e-1-i.siblings(".n2-top-bar, .n2-table").outerHeight())},i.prototype.getDataFromController=function(t,i,n){return this.showParameters=e.extend({previewMode:!1,previewHTML:!1},i),this.loadDataToController(t,n)},i.prototype.loadDataToController=function(t){this.isVisualData(t)?e.when(this.getVisual(t)).done(e.proxy(function(e){e.id>0?e.activate():console.error(t+" visual is not found linked")},this)):console.error(t+" visual not found")},i.prototype.isVisualData=function(e){return parseInt(e)>0},i.prototype.setVisual=function(e){switch(e.preventDefault(),this.mode){case 0:break;case"static":this.modals.getLinkedOverwriteOrSaveAs().show("saveAsNew");break;case"linked":default:this.activeVisual?this.activeVisual.compare(this.controller.get("set"))?(this.setAndClose(this.activeVisual.id),this.hide(e)):this.activeVisual&&!this.activeVisual.isEditable()?this.modals.getLinkedOverwriteOrSaveAs().show("saveAsNew"):this.modals.getLinkedOverwriteOrSaveAs().show():this.modals.getLinkedOverwriteOrSaveAs().show("saveAsNew")}},i.prototype.saveAsNew=function(e){e.preventDefault(),this.modals.getSaveAs().show()},i.prototype._saveAsNew=function(t){return NextendAjaxHelper.ajax({type:"POST",url:NextendAjaxHelper.makeAjaxUrl(this.parameters.ajaxUrl,{nextendaction:"addVisual"}),data:{setId:this.setsSelector.val(),value:Base64.encode(JSON.stringify({name:t,data:this.controller.get("saveAsNew")}))},dataType:"json"}).done(e.proxy(function(e){var t=e.data.visual;this.changeActiveVisual(this.sets[t.referencekey].addVisual(t))},this))},i.prototype.saveActiveVisual=function(t){return NextendAjaxHelper.ajax({type:"POST",url:NextendAjaxHelper.makeAjaxUrl(this.parameters.ajaxUrl,{nextendaction:"changeVisual"}),data:{visualId:this.activeVisual.id,value:this.getBase64(t)},dataType:"json"}).done(e.proxy(function(e){this.activeVisual.setValue(e.data.visual.value,!0)},this))},i.prototype.changeActiveVisual=function(e){this.activeVisual&&(this.activeVisual.notActive(),this.activeVisual=!1),e&&("static"==this.mode&&this.setMode("linked"),e.active(),this.activeVisual=e)},i.prototype.getBase64=function(e){return Base64.encode(JSON.stringify({name:e,data:this.controller.get("set")}))},i.prototype.removeRules=function(e,t){this.renderer.deleteRules(e,this.parameters.renderer.pre,"."+this.getClass(t.id,e))},t.NextendVisualManagerCore=i,n.prototype=Object.create(i.prototype),n.prototype.constructor=n,n.prototype.firstLoadVisuals=function(t){this.sets={},this.setsByReference={},this.setsSelector=e("#"+this.parameters.setsIdentifier+"sets_select");for(var i=0;i<this.parameters.sets.length;i++)this.newVisualSet(this.parameters.sets[i]);this.initSetsManager();for(var n in t)this.sets[n].loadVisuals(t[n]);this.activeSet=this.sets[this.setsSelector.val()],this.activeSet.active(),this.setsSelector.on("change",e.proxy(function(){this.activeSet.notActive(),this.activeSet=this.sets[this.setsSelector.val()],this.activeSet.active()},this))},n.prototype.initSetsManager=function(){new NextendVisualSetsManager(this)},n.prototype._loadVisualFromServer=function(t){return NextendAjaxHelper.ajax({type:"POST",url:NextendAjaxHelper.makeAjaxUrl(this.parameters.ajaxUrl,{nextendaction:"loadSetByVisualId"}),data:{visualId:t},dataType:"json"}).done(e.proxy(function(e){this.sets[e.data.set.setId].loadVisuals(e.data.set.visuals)},this))},n.prototype.changeSet=function(e){this.setsSelector.val()!=e&&this.setsSelector.val(e).trigger("change")},n.prototype.changeSetById=function(e){"undefined"!=typeof this.sets[e]&&this.changeSet(e)},n.prototype.newVisualSet=function(e){return new NextendVisualSet(e,this)},t.NextendVisualManagerVisibleSets=n,o.prototype=Object.create(n.prototype),o.prototype.constructor=o,o.prototype.initSetsManager=function(){new NextendVisualSetsManagerEditable(this)},t.NextendVisualManagerEditableSets=o,r.prototype=Object.create(o.prototype),r.prototype.constructor=r,r.prototype.setMode=function(t){if("static"==t&&this.changeActiveVisual(null),this.mode!=t){switch(t){case 0:this.cancelButton.css("display","none"),this.saveButton.off("click");break;case"static":default:this.cancelButton.css("display","inline-block"),this.saveButton.off("click").on("click",e.proxy(this.setVisualAsStatic,this)),this.linkedButton.off("click").on("click",e.proxy(this.setVisualAsLinked,this))}this.mode=t}},r.prototype.loadDataToController=function(t,i){if(parseInt(t)>0)e.when(this.getVisual(t)).done(e.proxy(function(e){e.id>0?(this.setMode("linked"),e.activate(!1,i)):(this.setMode("static"),"function"==typeof i?this.controller.asyncVisualData("",this.showParameters,i):this.controller.load("",!1,this.showParameters))},this));else{var n="";this.setMode("static");try{n=this.getStaticData(t)}catch(o){}"function"==typeof i?this.controller.asyncVisualData(n,this.showParameters,i):this.controller.load(n,!1,this.showParameters)}},r.prototype.getStaticData=function(e){var t=e;"{"!=t[0]&&(t=Base64.decode(t));var i=JSON.parse(t).data;return"undefined"==typeof i?"":i},r.prototype.setVisualAsLinked=function(e){this.setVisual(e)},r.prototype.setVisualAsStatic=function(e){e.preventDefault(),this.setAndClose(this.getBase64(n2_("Static"))),this.hide(e)},t.NextendVisualManagerSetsAndMore=r,a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.prototype.lateInit=function(){this.inited||(this.inited=!0,this._lateInit())},a.prototype.show=function(t,i,n){this.lateInit(),this.notificationStack.enableStack(),NextendEsc.add(e.proxy(function(){return this.hide(),!0},this)),e("body").css("overflow","hidden"),this.lightbox.css("display","block"),e(window).on("resize."+this.type+"Manager",e.proxy(this.resize,this)),this.resize();var o=0;if(""!=t)for(var r=t.split("||"),a=!1;o<r.length;o++)e.when(this.getVisual(r[o])).done(function(e){e&&e.check&&(e.check(),a||(a=!0,e.activate()))});this.$.on("save",i),this.controller.start(n),0==o&&e.when(this.activeSet._loadVisuals()).done(e.proxy(function(){for(var e in this.activeSet.visuals){this.activeSet.visuals[e].activate();break}},this)),this._show()},a.prototype.setVisual=function(e){e.preventDefault(),this.setAndClose(this.getAsString()),this.hide(e)},a.prototype.getAsString=function(){var e=[];for(var t in this.sets){var i=this.sets[t];for(var n in i.visuals)i.visuals[n].checked&&e.push(i.visuals[n].id)}return 0==e.length&&this.activeVisual&&e.push(this.activeVisual.id),e.join("||")},a.prototype.hide=function(e){n.prototype.hide.apply(this,arguments);for(var t in this.sets){var i=this.sets[t];for(var o in i.visuals)i.visuals[o].unCheck()}},t.NextendVisualManagerMultipleSelection=a,s.prototype.compare=function(e){for(var t=Math.max(this.value.length,e.length),i=0;t>i;i++)if(!this._compareTab("undefined"==typeof this.value[i]?{}:this.value[i],"undefined"==typeof e[i]?{}:e[i]))return!1;return!0},s.prototype._compareTab=function(e,t){var i=Object.getOwnPropertyNames(e),n=Object.getOwnPropertyNames(t);if(0===e.length&&0===n.length)return!0;if(i.length!=n.length)return!1;for(var o=0;o<i.length;o++){var r=i[o];if(e[r]!==t[r])return!1}return!0},s.prototype.setValue=function(e,t){var i=null;if("string"==typeof e){var n=e;"{"!=n[0]?(this.base64=n,n=Base64.decode(n)):this.base64=Base64.encode(n),i=JSON.parse(n)}else i=e;this.name=i.name,this.value=i.data,t&&this.render()},s.prototype.isSystem=function(){return 1==this.visual.system},s.prototype.isEditable=function(){return 1==this.visual.editable},s.prototype.activate=function(e,t){e&&e.preventDefault(),this.visualManager.changeActiveVisual(this),"function"==typeof t?this.visualManager.controller.asyncVisualData(this.value,this.visualManager.showParameters,t):this.visualManager.controller.load(this.value,!1,this.visualManager.showParameters)},s.prototype.active=function(){},s.prototype.notActive=function(){},s.prototype["delete"]=function(t){t&&t.preventDefault(),NextendDeleteModal("n2-visual",this.name,e.proxy(function(){this._delete()},this))},s.prototype._delete=function(){return NextendAjaxHelper.ajax({type:"POST",url:NextendAjaxHelper.makeAjaxUrl(this.visualManager.parameters.ajaxUrl,{nextendaction:"deleteVisual"}),data:{visualId:this.id},dataType:"json"}).done(e.proxy(function(e){e.data.visual;this.visualManager.activeVisual&&this.id==this.visualManager.activeVisual.id&&this.visualManager.changeActiveVisual(null),this.removeRules(),delete this.visualManager.visuals[this.id],delete this.set.visuals[this.id],this.row.remove(),this.visualManager.$.trigger("visualDelete",[this.id])},this))},s.prototype.removeRules=function(){},s.prototype.render=function(){},s.prototype.isUsed=function(){return!1},t.NextendVisualCore=s,l.prototype=Object.create(s.prototype),l.prototype.constructor=l,l.prototype.active=function(){var e=this.set.set.id;this.visualManager.changeSet(e),s.prototype.active.call(this)},t.NextendVisualWithSet=l,d.prototype=Object.create(l.prototype),d.prototype.constructor=d,d.prototype.createRow=function(){return this.row=e("<li></li>").append(e('<a href="#">'+this.name+"</a>").on("click",e.proxy(this.activate,this))),this.isSystem()||this.row.append(e('<span class="n2-actions"></span>').append(e('<div class="n2-button n2-button-icon n2-button-s" href="#"><i class="n2-i n2-i-delete n2-i-grey-opacity"></i></div>').on("click",e.proxy(this["delete"],this)))),this.row},d.prototype.setValue=function(e,t){l.prototype.setValue.call(this,e,t),this.row&&this.row.find("> a").html(this.name)},d.prototype.active=function(){this.row.addClass("n2-active"),l.prototype.active.call(this)},d.prototype.notActive=function(){this.row.removeClass("n2-active"),l.prototype.notActive.call(this)},t.NextendVisualWithSetRow=d,h.prototype=Object.create(d.prototype),h.prototype.constructor=h,h.prototype.createRow=function(){var t=d.prototype.createRow.call(this);return this.checkbox=e('<div class="n2-list-checkbox"><i class="n2-i n2-i-tick"></i></div>').on("click",e.proxy(this.checkOrUnCheck,this)).prependTo(t.find("a")),t},h.prototype.setValue=function(e,t){this.name=e.name,this.value=e.data,this.row&&this.row.find("> a").html(this.name),t&&this.render()},h.prototype.activate=function(e,t){e&&e.preventDefault(),this.visualManager.changeActiveVisual(this),this.visualManager.controller.setAnimationProperties(this.value)},h.prototype.checkOrUnCheck=function(e){e.preventDefault(),e.stopPropagation(),this.checked?this.unCheck():this.check()},h.prototype.check=function(){this.checked=!0,this.checkbox.addClass("n2-active"),this.activate()},h.prototype.unCheck=function(){this.checked=!1,this.checkbox.removeClass("n2-active"),this.activate()},t.NextendVisualWithSetRowMultipleSelection=h}(n2,window),function(e,t){function i(e){this.visualManager=e,this.linkedOverwriteOrSaveAs=null,this.saveAs=null}i.prototype.getLinkedOverwriteOrSaveAs=function(){if(null==this.linkedOverwriteOrSaveAs){var t=this;this.linkedOverwriteOrSaveAs=new NextendModal({zero:{size:[500,140],title:"",back:!1,close:!0,content:"",controls:['<a href="#" class="n2-button n2-button-normal n2-button-l n2-radius-s n2-button-grey n2-uc n2-h4">'+n2_("Save as new")+"</a>",'<a href="#" class="n2-button n2-button-normal n2-button-l n2-radius-s n2-button-green n2-uc n2-h4">'+n2_("Overwrite current")+"</a>"],fn:{show:function(){this.title.html(n2_printf(n2_("%s changed - %s"),t.visualManager.labels.visual,t.visualManager.activeVisual.name)),t.visualManager.activeVisual&&!t.visualManager.activeVisual.isEditable()?this.loadPane("saveAsNew"):(this.controls.find(".n2-button-green").on("click",e.proxy(function(i){i.preventDefault(),t.visualManager.saveActiveVisual(t.visualManager.activeVisual.name).done(e.proxy(function(){this.hide(i),t.visualManager.setAndClose(t.visualManager.activeVisual.id),t.visualManager.hide()},this))},this)),this.controls.find(".n2-button-grey").on("click",e.proxy(function(e){e.preventDefault(),this.loadPane("saveAsNew")},this)))}}},saveAsNew:{size:[500,220],title:n2_("Save as"),back:"zero",close:!0,content:'<form class="n2-form"></form>',controls:['<a href="#" class="n2-button n2-button-normal n2-button-l n2-radius-s n2-button-green n2-uc n2-h4">'+n2_("Save as new")+"</a>"],fn:{show:function(){var i=this.controls.find(".n2-button"),n=(this.content.find(".n2-form").on("submit",function(e){e.preventDefault(),i.trigger("click")}).append(this.createInput(n2_("Name"),"n2-visual-name","width: 446px;")),this.content.find("#n2-visual-name").focus());t.visualManager.activeVisual&&n.val(t.visualManager.activeVisual.name),i.on("click",e.proxy(function(i){i.preventDefault();var o=n.val();""==o?nextend.notificationCenter.error(n2_("Please fill the name field!")):t.visualManager._saveAsNew(o).done(e.proxy(function(){this.hide(i),t.visualManager.setAndClose(t.visualManager.activeVisual.id),t.visualManager.hide()},this))},this))}}}},!1)}return this.linkedOverwriteOrSaveAs},i.prototype.getSaveAs=function(){if(null===this.saveAs){var t=this;this.saveAs=new NextendModal({zero:{size:[500,220],title:n2_("Save as"),back:!1,close:!0,content:'<form class="n2-form"></form>',controls:['<a href="#" class="n2-button n2-button-normal n2-button-l n2-radius-s n2-button-green n2-uc n2-h4">'+n2_("Save as new")+"</a>"],fn:{show:function(){var i=this.controls.find(".n2-button"),n=(this.content.find(".n2-form").on("submit",function(e){e.preventDefault(),i.trigger("click")}).append(this.createInput(n2_("Name"),"n2-visual-name","width: 446px;")),this.content.find("#n2-visual-name").focus());t.visualManager.activeVisual&&n.val(t.visualManager.activeVisual.name),i.on("click",e.proxy(function(i){i.preventDefault();var o=n.val();""==o?nextend.notificationCenter.error(n2_("Please fill the name field!")):t.visualManager._saveAsNew(o).done(e.proxy(this.hide,this,i))},this))}}}},!1)}return this.saveAs},t.NextendVisualManagerModals=i}(n2,window),function(e,t){function i(t){this.visualManager=t,this.$=e(this)}function n(t){this.modal=null,i.prototype.constructor.apply(this,arguments),this.$.on({setAdded:function(e,i){new o(i,t)},setChanged:function(e,i){t.sets[i.id].rename(i.value)},setDeleted:function(e,i){t.sets[i.id]["delete"](),t.setsSelector.trigger("change")}}),this.manageButton=e("#"+t.parameters.setsIdentifier+"-manage").on("click",e.proxy(this.showManageSets,this))}function o(t,i){this.set=t,this.visualManager=i,this.visualList=e('<ul class="n2-list n2-h4"></ul>'),this.visualManager.sets[t.id]=this,""!=t.referencekey&&(this.visualManager.setsByReference[t.referencekey]=t),this.option=e('<option value="'+t.id+'">'+t.value+"</option>").appendTo(this.visualManager.setsSelector)}t.NextendVisualSetsManager=i,n.prototype=Object.create(i.prototype),n.prototype.constructor=n,n.prototype.isSetAllowedToEdit=function(e){return-1!=e&&"undefined"!=typeof this.visualManager.sets[e]&&0!=this.visualManager.sets[e].set.editable},n.prototype.createVisualSet=function(t){return NextendAjaxHelper.ajax({type:"POST",url:NextendAjaxHelper.makeAjaxUrl(this.visualManager.parameters.ajaxUrl,{nextendaction:"createSet"}),data:{name:t},dataType:"json"}).done(e.proxy(function(e){this.$.trigger("setAdded",e.data.set)},this))},n.prototype.renameVisualSet=function(t,i){return NextendAjaxHelper.ajax({type:"POST",url:NextendAjaxHelper.makeAjaxUrl(this.visualManager.parameters.ajaxUrl,{nextendaction:"renameSet"}),data:{setId:t,name:i},dataType:"json"}).done(e.proxy(function(e){this.$.trigger("setChanged",e.data.set),nextend.notificationCenter.success(n2_("Set renamed"))},this))},n.prototype.deleteVisualSet=function(t){var i=e.Deferred(),n=this.visualManager.sets[t],o=[];return e.when(n._loadVisuals()).done(e.proxy(function(){for(var r in n.visuals)o.push(n.visuals[r]._delete());e.when.apply(e,o).then(e.proxy(function(){NextendAjaxHelper.ajax({type:"POST",url:NextendAjaxHelper.makeAjaxUrl(this.visualManager.parameters.ajaxUrl,{nextendaction:"deleteSet"}),data:{setId:t},dataType:"json"}).done(e.proxy(function(e){i.resolve(),this.$.trigger("setDeleted",e.data.set)},this))},this))},this)).fail(function(){i.reject()}),i.fail(function(){nextend.notificationCenter.error(n2_("Unable to delete the set"))})},n.prototype.showManageSets=function(){var t=this.visualManager,i=this;null===this.modal&&(this.modal=new NextendModal({zero:{size:[500,390],title:n2_("Sets"),back:!1,close:!0,content:"",controls:['<a href="#" class="n2-add-new n2-button n2-button-normal n2-button-l n2-radius-s n2-button-green n2-uc n2-h4">'+n2_("Add new")+"</a>"],fn:{show:function(){this.title.html(n2_printf(n2_("%s sets"),t.labels.visual)),this.createHeading(n2_("Sets")).appendTo(this.content);var n=[];for(var o in t.sets){var r=t.sets[o].set.id;i.isSetAllowedToEdit(r)?n.push([t.sets[o].set.value,e('<div class="n2-button n2-button-normal n2-button-xs n2-radius-s n2-button-grey n2-uc n2-h5">'+n2_("Rename")+"</div>").on("click",{id:r},e.proxy(function(e){this.loadPane("rename",!1,!1,[e.data.id])},this)),e('<div class="n2-button n2-button-normal n2-button-xs n2-radius-s n2-button-red n2-uc n2-h5">'+n2_("Delete")+"</div>").on("click",{id:r},e.proxy(function(e){this.loadPane("delete",!1,!1,[e.data.id])},this))]):n.push([t.sets[o].set.value,"",""])}this.createTable(n,["width:100%;","",""]).appendTo(this.createTableWrap().appendTo(this.content)),this.controls.find(".n2-add-new").on("click",e.proxy(function(e){e.preventDefault(),this.loadPane("addNew")},this))}}},addNew:{title:n2_("Create set"),size:[500,220],back:"zero",close:!0,content:'<form class="n2-form"></form>',controls:['<a href="#" class="n2-button n2-button-normal n2-button-l n2-radius-s n2-button-green n2-uc n2-h4">'+n2_("Add")+"</a>"],fn:{show:function(){var n=this.controls.find(".n2-button"),o=(this.content.find(".n2-form").on("submit",function(e){e.preventDefault(),n.trigger("click")}).append(this.createInput(n2_("Name"),"n2-visual-name","width: 446px;")),this.content.find("#n2-visual-name").focus());n.on("click",e.proxy(function(n){var r=o.val();""==r?nextend.notificationCenter.error(n2_("Please fill the name field!")):i.createVisualSet(r).done(e.proxy(function(e){this.hide(n),nextend.notificationCenter.success(n2_("Set added")),t.setsSelector.val(e.data.set.id).trigger("change")},this))},this))}}},rename:{title:n2_("Rename set"),size:[500,220],back:"zero",close:!0,content:'<form class="n2-form"></form>',controls:['<a href="#" class="n2-button n2-button-normal n2-button-l n2-radius-s n2-button-green n2-uc n2-h4">'+n2_("Rename")+"</a>"],fn:{show:function(n){var o=this.controls.find(".n2-button"),r=(this.content.find(".n2-form").on("submit",function(e){e.preventDefault(),o.trigger("click")}).append(this.createInput(n2_("Name"),"n2-visual-name","width: 446px;")),this.content.find("#n2-visual-name").val(t.sets[n].set.value).focus());o.on("click",e.proxy(function(){var t=r.val();""==t?nextend.notificationCenter.error(n2_("Please fill the name field!")):i.renameVisualSet(n,t).done(e.proxy(this.goBack,this))},this))}}},"delete":{title:n2_("Delete set"),size:[500,190],back:"zero",close:!0,content:"",controls:['<a href="#" class="n2-button n2-button-normal n2-button-l n2-radius-s n2-button-grey n2-uc n2-h4">'+n2_("Cancel")+"</a>",'<a href="#" class="n2-button n2-button-normal n2-button-l n2-radius-s n2-button-red n2-uc n2-h4">'+n2_("Yes")+"</a>"],fn:{show:function(n){this.createCenteredSubHeading(n2_printf(n2_("Do you really want to delete the set and all associated %s?"),t.labels.visuals)).appendTo(this.content),this.controls.find(".n2-button-grey").on("click",e.proxy(function(e){e.preventDefault(),this.goBack()},this)),this.controls.find(".n2-button-red").html('Yes, delete "'+t.sets[n].set.value+'"').on("click",e.proxy(function(t){t.preventDefault(),i.deleteVisualSet(n).done(e.proxy(this.goBack,this))},this))}}}},!1)),this.modal.show(!1,[this.visualManager.setsSelector.val()])},t.NextendVisualSetsManagerEditable=n,o.prototype.active=function(){e.when(this._loadVisuals()).done(e.proxy(function(){this.visualList.appendTo(this.visualManager.visualListContainer)},this))},o.prototype.notActive=function(){this.visualList.detach()},o.prototype.loadVisuals=function(e){if("undefined"==typeof this.visuals){this.visuals={};for(var t=0;t<e.length;t++)this.addVisual(e[t])}},o.prototype._loadVisuals=function(){return null==this.visuals?NextendAjaxHelper.ajax({type:"POST",url:NextendAjaxHelper.makeAjaxUrl(this.visualManager.parameters.ajaxUrl,{nextendaction:"loadVisualsForSet"}),data:{setId:this.set.id},dataType:"json"}).done(e.proxy(function(e){this.loadVisuals(e.data.visuals)},this)):!0},o.prototype.addVisual=function(e){return"undefined"==typeof this.visuals[e.id]&&(this.visuals[e.id]=this.visualManager.createVisual(e,this),this.visualList.append(this.visuals[e.id].createRow())),this.visuals[e.id]},o.prototype.rename=function(e){this.set.value=e,this.option.html(e)},o.prototype["delete"]=function(){this.option.remove(),delete this.visualManager.sets[this.set.id]},t.NextendVisualSet=o}(n2,window),function(e,t){"use strict";function i(){this.loadDefaults(),this.lightbox=e("#n2-lightbox-"+this.type)}function n(){i.prototype.constructor.apply(this,arguments),this.editor=this.initEditor(),this.editor.$.on("change",e.proxy(this.propertyChanged,this))}function o(t){n.prototype.constructor.apply(this,arguments),this.previewModesList=t,this.initPreviewModes(),t&&(this.renderer=this.initRenderer(),this.clearTabButton=this.lightbox.find(".n2-editor-clear-tab").on("click",e.proxy(this.clearCurrentTab,this)),this.tabField=new N2Classes.FormElementRadio("n2-"+this.type+"-editor-tabs",["0"]),this.tabField.element.on("nextendChange.n2-editor",e.proxy(this.tabChanged,this)),this.previewModeField=new N2Classes.FormElementRadio("n2-"+this.type+"-editor-preview-mode",["0"]),this.previewModeField.element.on("nextendChange.n2-editor",e.proxy(this.previewModeChanged,this)),this.previewModeField.options.eq(0).html(this.previewModesList[0].label))}function r(){this.fields={},this.$=e(this)}function a(e){this.editorController=e}i.prototype.loadDefaults=function(){this.type="",this._style=!1,this.isChanged=!1,this.visible=!1},i.prototype.init=function(){this.lightbox=e("#n2-lightbox-"+this.type)},i.prototype.pause=function(){},i.prototype.getEmptyVisual=function(){return[]},i.prototype.get=function(){return this.currentVisual},i.prototype.load=function(e,t,i){this.isChanged=!1,this.lightbox.addClass("n2-editor-loaded"),""==e&&(e=this.getEmptyVisual()),this._load(e,t,i)},i.prototype._load=function(t,i,n){this.currentVisual=e.extend(!0,{},t)},i.prototype.addStyle=function(t){this._style&&this._style.remove(),this._style=e("<style>"+t+"</style>").appendTo("head")},i.prototype.show=function(){this.visible=!0,nextend.context.addWindow("visual")},i.prototype.close=function(){this.visible=!1,nextend.context.removeWindow()},t.NextendVisualEditorControllerBase=i,n.prototype=Object.create(i.prototype),n.prototype.constructor=n,n.prototype.initEditor=function(){return new r},n.prototype.propertyChanged=function(e,t,i){this.isChanged=!0,this.currentVisual[t]=i},n.prototype._load=function(e,t,n){i.prototype._load.apply(this,arguments),this.loadToEditor()},n.prototype.loadToEditor=function(){this.editor.load(this.currentVisual)},t.NextendVisualEditorControllerWithEditor=n,o.prototype=Object.create(n.prototype),o.prototype.constructor=o,o.prototype.loadDefaults=function(){n.prototype.loadDefaults.call(this),this.currentPreviewMode="0",this.currentTabIndex=0,this._renderTimeout=0,this._delayStart=0},o.prototype.initPreviewModes=function(){},o.prototype.initRenderer=function(){},o.prototype._load=function(t,i,n){this.currentVisual=[];for(var o=0;o<t.length;o++)this.currentVisual[o]=e.extend(!0,this.getCleanVisual(),t[o]);if(this.localModePreview={},n.previewMode===!1)this.availablePreviewMode=!1;else{this.availablePreviewMode=n.previewMode,i===!1&&(i=this.getTabs());for(var o=this.currentVisual.length;o<i.length;o++)this.currentVisual[o]=this.getCleanVisual();n.previewHTML!==!1&&""!=n.previewHTML&&(this.localModePreview[n.previewMode]=n.previewHTML)}if(this.currentTabs=i,i===!1){i=[];for(var o=0;o<this.currentVisual.length;o++)i.push("#"+o)}this.setTabs(i)},o.prototype.asyncVisualData=function(t,i,n){""==t&&(t=this.getEmptyVisual());for(var o=this.previewModesList[i.previewMode].tabs,r=[],a=0;a<t.length;a++)r[a]=e.extend(!0,this.getCleanVisual(),t[a]);for(var a=r.length;a<o.length;a++)r[a]=this.getCleanVisual();n(r,o)},o.prototype.getCleanVisual=function(){return{}},o.prototype.getTabs=function(){return this.previewModesList[this.availablePreviewMode].tabs},o.prototype.setTabs=function(e){this.tabField.insideChange("0");for(var t=this.tabField.values.length-1;t>0;t--)this.tabField.removeTabOption(this.tabField.values[t]);this.tabField.options.eq(0).html(e[0]);for(var t=1;t<e.length;t++)this.tabField.addTabOption(t+"",e[t]);this.makePreviewModes()},o.prototype.tabChanged=function(){document.activeElement&&document.activeElement.blur();var t=this.tabField.element.val();this.currentTabIndex=t,"undefined"==typeof this.currentVisual[t]&&(this.currentVisual[t]={});var i=e.extend({},this.currentVisual[0]);0!=t?(e.extend(i,this.currentVisual[t]),this.clearTabButton.css("display","")):this.clearTabButton.css("display","none"),this.editor.load(i),this._tabChanged()},o.prototype._tabChanged=function(){this._renderPreview()},o.prototype.clearCurrentTab=function(e){e&&e.preventDefault(),this.currentVisual[this.currentTabIndex]={},this.tabChanged(),this._renderPreview()},o.prototype.makePreviewModes=function(){var e=[];if(this.availablePreviewMode===!1){var t=this.tabField.options.length;"undefined"!=typeof this.previewModes[t]&&(e=this.previewModes[t]),this.setPreviewModes(e)}else e=[this.previewModesList[this.availablePreviewMode]],this.setPreviewModes(e,this.availablePreviewMode)},o.prototype.setPreviewModes=function(e,t){for(var i=this.previewModeField.values.length-1;i>0;i--)this.previewModeField.removeTabOption(this.previewModeField.values[i]);for(var i=0;i<e.length;i++)this.previewModeField.addTabOption(e[i].id,e[i].label);"undefined"==typeof t&&(t="0"),this.previewModeField.insideChange(t)},o.prototype.previewModeChanged=function(){var e=this.previewModeField.element.val();if(this.currentTabs===!1)if(0==e)for(var t=0;t<this.currentVisual.length;t++)this.tabField.options.eq(t).html("#"+t);else{var i=this.previewModesList[e].tabs;if(i)for(var t=0;t<this.currentVisual.length;t++)this.tabField.options.eq(t).html(i[t])}this.currentPreviewMode=e,this._renderPreview(),this.setPreview(e)},o.prototype.setPreview=function(e){},o.prototype.propertyChanged=function(e,t,i){this.isChanged=!0,this.currentVisual[this.currentTabIndex][t]=i,this.renderPreview()},o.prototype.renderPreview=function(){var t=e.now();this._renderTimeout?(clearTimeout(this._renderTimeout),t-this._delayStart>100&&(this._renderPreview(),this._delayStart=t)):this._delayStart=t,this._renderTimeout=setTimeout(e.proxy(this._renderPreview,this),33)},o.prototype._renderPreview=function(){this._renderTimeout=!1},t.NextendVisualEditorController=o,r.prototype.load=function(e){this._off(),this._on()},r.prototype._on=function(){for(var e in this.fields)this.fields[e].element.on(this.fields[e].events)},r.prototype._off=function(){for(var e in this.fields)this.fields[e].element.off(".n2-editor")},r.prototype.trigger=function(e,t){this.$.trigger("change",[e,t])},t.NextendVisualEditor=r,a.prototype.deleteRules=function(e,t,i){var n=this.editorController.previewModesList[e],o=new RegExp("@pre","g"),r=new RegExp("@selector","g");for(var a in n.selectors){var s=a.replace(o,t).replace(r,i);nextend.css.deleteRule(s)}},a.prototype.getCSS=function(t,i,n,o,r){var a="",s=this.editorController.previewModesList[t],l=new RegExp("@pre","g"),d=new RegExp("@selector","g");for(var h in s.selectors){var p=h.replace(l,i).replace(d,n);a+=p+"{\n"+s.selectors[h]+"}\n","undefined"!=typeof r.deleteRule&&nextend.css.deleteRule(p)}if(0==t){var u=o[r.activeTab];0!=r.activeTab&&(u=e.extend({},o[0],u)),a=a.replace(new RegExp("@tab[0-9]*","g"),this.render(u));
2
  }else if(s.renderOptions.combined)for(var c=0;c<o.length;c++)a=a.replace(new RegExp("@tab"+c,"g"),this.render(o[c]));else for(var c=0;c<o.length;c++)o[c]=e.extend({},o[c]),a=a.replace(new RegExp("@tab"+c,"g"),this.render(o[c]));return a},a.prototype.render=function(e){var t=this.makeVisualData(e),i="",n="";"undefined"!=typeof t.raw&&(n=t.raw,delete t.raw);for(var o in t)i+=this.deCase(o)+": "+t[o]+";\n";return i+=n},a.prototype.makeVisualData=function(e){var t={};for(var i in e)e.hasOwnProperty(i)&&"function"!=typeof e[i]&&this["makeStyle"+i](e[i],t);return t},a.prototype.deCase=function(e){return e.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()})},t.NextendVisualRenderer=a}(n2,window),function(e,t){function i(){NextendVisualManagerSetsAndMore.prototype.constructor.apply(this,arguments)}function n(){NextendVisualWithSetRow.prototype.constructor.apply(this,arguments)}i.prototype=Object.create(NextendVisualManagerSetsAndMore.prototype),i.prototype.constructor=i,i.prototype.loadDefaults=function(){NextendVisualManagerSetsAndMore.prototype.loadDefaults.apply(this,arguments),this.type="animation",this.labels={visual:n2_("animation"),visuals:n2_("animations")},this.availableFeatures={repeatable:0,specialZero:0,repeat:0,playEvent:0,pauseEvent:0,stopEvent:0,instantOut:0,repeatSelfOnly:0}},i.prototype.initController=function(){return new NextendAnimationEditorController(this.parameters.renderer.modes)},i.prototype.show=function(t,i,n,o){this.currentFeatures=e.extend({},this.availableFeatures,t),NextendVisualManagerSetsAndMore.prototype.show.call(this,i.animations,n,o),this.controller.loadTransformOrigin(i.transformOrigin),this.currentFeatures.repeatable?(this.controller.featureRepeatable(1),i.repeatable||(i.repeatable=0),this.controller.loadRepeatable(i.repeatable)):this.controller.featureRepeatable(0),this.currentFeatures.specialZero?(this.controller.featureSpecialZero(1),i.specialZero||(i.specialZero=0),this.controller.loadSpecialZero(i.specialZero)):this.controller.featureSpecialZero(0),this.currentFeatures.instantOut?(this.controller.featureInstantOut(1),i.instantOut||(i.instantOut=0),this.controller.loadInstantOut(i.instantOut)):this.controller.featureInstantOut(0),this.currentFeatures.repeat?(this.controller.featureRepeat(1),i.repeatCount||(i.repeatCount=0),this.controller.loadRepeatCount(i.repeatCount),i.repeatStartDelay||(i.repeatStartDelay=0),this.controller.loadRepeatStartDelay(i.repeatStartDelay)):this.controller.featureRepeat(0),this.currentFeatures.playEvent?(this.controller.featurePlayEvent(1),i.playEvent||(i.playEvent=""),this.controller.loadPlayEvent(i.playEvent)):this.controller.featurePlayEvent(0),this.currentFeatures.pauseEvent?(this.controller.featurePauseEvent(1),i.pauseEvent||(i.pauseEvent=""),this.controller.loadPauseEvent(i.pauseEvent)):this.controller.featurePauseEvent(0),this.currentFeatures.repeatSelfOnly?(this.controller.featureRepeatSelfOnly(1),i.repeatSelfOnly||(i.repeatSelfOnly=0),this.controller.loadRepeatSelfOnly(i.repeatSelfOnly)):this.controller.featureRepeatSelfOnly(0),this.currentFeatures.stopEvent?(this.controller.featureStopEvent(1),i.stopEvent||(i.stopEvent=""),this.controller.loadStopEvent(i.stopEvent)):this.controller.featureStopEvent(0),0==i.animations.length&&e.when(this.activeSet._loadVisuals()).done(e.proxy(function(){for(var e in this.activeSet.visuals){this.activeSet.visuals[e].activate();break}},this))},i.prototype.setAndClose=function(e){1==e.length&&this.isEquivalent(e[0],this.controller.getEmptyAnimation())&&(e=[]);var t={transformOrigin:this.controller.transformOrigin,animations:e};this.currentFeatures.repeatable&&(t.repeatable=this.controller.repeatable),this.currentFeatures.repeatSelfOnly&&(t.repeatSelfOnly=this.controller.repeatSelfOnly),this.currentFeatures.specialZero&&(t.specialZero=this.controller.specialZero),this.currentFeatures.instantOut&&(t.instantOut=this.controller.instantOut),this.currentFeatures.repeat&&(t.repeatCount=this.controller.repeatCount,t.repeatStartDelay=this.controller.repeatStartDelay),this.currentFeatures.playEvent&&(t.playEvent=this.controller.playEvent),this.currentFeatures.pauseEvent&&(t.pauseEvent=this.controller.pauseEvent),this.currentFeatures.stopEvent&&(t.stopEvent=this.controller.stopEvent),this.$.trigger("save",t)},i.prototype.createVisual=function(e,t){return new n(e,t,this)},i.prototype.setVisualAsStatic=function(e){e.preventDefault(),this.setAndClose(this.controller.get("save")),this.hide(e)},i.prototype.setMode=function(e){NextendVisualManagerSetsAndMore.prototype.setMode.call(this,"static")},i.prototype.getStaticData=function(e){return e},i.prototype.isEquivalent=function(e,t){var i=Object.getOwnPropertyNames(e),n=Object.getOwnPropertyNames(t);if(i.length!=n.length)return!1;for(var o=0;o<i.length;o++){var r=i[o];if(e[r]!==t[r])return!1}return!0},t.NextendAnimationManager=i,n.prototype=Object.create(NextendVisualWithSetRow.prototype),n.prototype.constructor=n,n.prototype.activate=function(e){"undefined"!=typeof e&&e.preventDefault(),this.visualManager.changeActiveVisual(this),"undefined"!=typeof this.value.specialZero&&this.visualManager.controller.loadSpecialZero(this.value.specialZero),"undefined"!=typeof this.value.transformOrigin&&this.visualManager.controller.loadTransformOrigin(this.value.transformOrigin),this.visualManager.controller.load(this.value.animations,!1,this.visualManager.showParameters)},t.NextendAnimation=n}(n2,window),function(e,t){function i(){this.timeline=new NextendTimeline,this.initTabOrdering(),NextendVisualEditorController.prototype.constructor.apply(this,arguments),e("#n2-animation-editor-tab-add").on("click",e.proxy(this.addTab,this)),e("#n2-animation-editor-tab-delete").on("click",e.proxy(this.deleteCurrentTab,this)),this.preview=e('<div class="n2-animation-preview-box" style="background-image: url('+nextend.imageHelper.getRepeatedPlaceholder()+')"></div>').appendTo(e("#n2-animation-editor-preview")),this.setPreviewSize(400,100),this.initBackgroundColor()}function n(){NextendVisualEditor.prototype.constructor.apply(this,arguments),this.fields={name:{element:e("#n2-animation-editorname"),events:{"outsideChange.n2-editor":e.proxy(this.changeName,this)}},duration:{element:e("#n2-animation-editorduration"),events:{"outsideChange.n2-editor":e.proxy(this.changeDuration,this)}},delay:{element:e("#n2-animation-editordelay"),events:{"outsideChange.n2-editor":e.proxy(this.changeDelay,this)}},easing:{element:e("#n2-animation-editoreasing"),events:{"outsideChange.n2-editor":e.proxy(this.changeEasing,this)}},opacity:{element:e("#n2-animation-editoropacity"),events:{"outsideChange.n2-editor":e.proxy(this.changeOpacity,this)}},offset:{element:e("#n2-animation-editoroffset"),events:{"outsideChange.n2-editor":e.proxy(this.changeOffset,this)}},rotate:{element:e("#n2-animation-editorrotate"),events:{"outsideChange.n2-editor":e.proxy(this.changeRotate,this)}},scale:{element:e("#n2-animation-editorscale"),events:{"outsideChange.n2-editor":e.proxy(this.changeScale,this)}},skew:{element:e("#n2-animation-editorskew"),events:{"outsideChange.n2-editor":e.proxy(this.changeSkew,this)}},n2blur:{element:e("#n2-animation-editorn2blur"),events:{"outsideChange.n2-editor":e.proxy(this.changeN2blur,this)}},specialZero:{element:e("#n2-animation-editorspecial-zero"),events:{"outsideChange.n2-editor":e.proxy(this.changeSpecialZero,this)}},repeatCount:{element:e("#n2-animation-editorrepeat-count"),events:{"outsideChange.n2-editor":e.proxy(this.changeRepeatCount,this)}},repeatStartDelay:{element:e("#n2-animation-editorrepeat-start-delay"),events:{"outsideChange.n2-editor":e.proxy(this.changeRepeatStartDelay,this)}},transformOrigin:{element:e("#n2-animation-editortransformorigin"),events:{"outsideChange.n2-editor":e.proxy(this.changeTransformOrigin,this)}},playEvent:{element:e("#n2-animation-editorplay"),events:{"outsideChange.n2-editor":e.proxy(this.changePlayEvent,this)}},pauseEvent:{element:e("#n2-animation-editorpause"),events:{"outsideChange.n2-editor":e.proxy(this.changePauseEvent,this)}},stopEvent:{element:e("#n2-animation-editorstop"),events:{"outsideChange.n2-editor":e.proxy(this.changeStopEvent,this)}},repeatable:{element:e("#n2-animation-editorrepeatable"),events:{"outsideChange.n2-editor":e.proxy(this.changeRepeatable,this)}},repeatSelfOnly:{element:e("#n2-animation-editorrepeat-self-only"),events:{"outsideChange.n2-editor":e.proxy(this.changeRepeatSelfOnly,this)}},instantOut:{element:e("#n2-animation-editorinstant-out"),events:{"outsideChange.n2-editor":e.proxy(this.changeInstantOut,this)}}}}var o={opacity:1,x:0,y:0,z:0,rotationX:0,rotationY:0,rotationZ:0,scaleX:1,scaleY:1,scaleZ:1,skewX:0,n2blur:0};i.prototype=Object.create(NextendVisualEditorController.prototype),i.prototype.constructor=i,i.prototype.loadDefaults=function(){NextendVisualEditorController.prototype.loadDefaults.call(this),this.type="animation",this.group="in",this.mode=0,this.playing=!1,this.specialZero=0,this.transformOrigin="0|*|0|*|0",this.playEvent="",this.pauseEvent="",this.stopEvent="",this.repeatable=0,this.instantOut=0},i.prototype.setPreviewSize=function(e,t){return this.preview.css({width:e,height:t,marginLeft:-e/2,marginTop:-t/2}),this},i.prototype.setGroup=function(e){return this.group=e,this},i.prototype.initPreviewModes=function(){this.previewModes=[this.previewModesList.solo]},i.prototype.makePreviewModes=function(){this.tabField.options.length>0?this.setPreviewModes(this.previewModes):this.setPreviewModes([])},i.prototype.initRenderer=function(){return new NextendVisualRenderer(this)},i.prototype.initEditor=function(){var t=new n;return t.$.on("nameChanged",e.proxy(this.animationNameChanged,this)),t},i.prototype.pause=function(){this.clearTimeline()},i.prototype.get=function(e){return"saveAsNew"==e?{specialZero:this.specialZero,transformOrigin:this.transformOrigin,animations:this.currentVisual}:this.currentVisual},i.prototype.getEmptyAnimation=function(){return{name:"Animation",duration:.8,delay:0,ease:"easeOutCubic",opacity:1,x:0,y:0,z:0,rotationX:0,rotationY:0,rotationZ:0,scaleX:1,scaleY:1,scaleZ:1,skewX:0,n2blur:0}},i.prototype.getEmptyVisual=function(){return[this.getEmptyAnimation()]},i.prototype.initBackgroundColor=function(){new N2Classes.FormElementText("n2-animation-editor-background-color"),new N2Classes.FormElementColor("n2-animation-editor-background-color",0);var t=this.lightbox.find(".n2-editor-preview-box");e("#n2-animation-editor-background-color").on("nextendChange",function(){t.css("background","#"+e(this).val())})},i.prototype._renderPreview=function(){NextendVisualEditorController.prototype._renderPreview.call(this),this.visible&&this.refreshTimeline()},i.prototype.setPreview=function(e){this.visible&&this.refreshTimeline()},i.prototype.getPreviewCssClass=function(){return"n2-"+this.type+"-editor-preview"},i.prototype._load=function(t,i,n){n.previewMode=!0,t.splice(1);for(var o=0;o<t.length;o++)t[o]=e.extend({},this.getEmptyAnimation(),t[o]);NextendVisualEditorController.prototype._load.call(this,t,i,n)},i.prototype.initTabOrdering=function(){var t=-1,i=e("#n2-animation-editor-tabs").parent();i.sortable({items:".n2-radio-option",start:e.proxy(function(e,i){t=this.tabField.options.index(i.item)},this),update:e.proxy(function(e,n){var o=n.item.index();i.sortable("cancel");var r=this.currentVisual[t];this.currentVisual.splice(t,1),this.currentVisual.splice(o,0,r);for(var a=0;a<this.currentVisual.length;a++)this.tabField.options.eq(a).html(this.currentVisual[a].name);this.tabField.options.eq(o).trigger("click"),t=-1,"solo"!=this.currentPreviewMode?this.refreshTimeline():this._tabChanged()},this)})},i.prototype.getTabs=function(){for(var e=[],t=0;t<this.currentVisual.length;t++)e.push(this.currentVisual[t].name);return e},i.prototype._tabChanged=function(){"solo"==this.currentPreviewMode&&this.refreshTimeline()},i.prototype.clearCurrentTab=function(e){e&&e.preventDefault()},i.prototype.addTab=function(e,t){e&&e.preventDefault();var i=this.tabField.values.length;t!==!0&&1==i||(this.currentVisual[i]=this.getEmptyAnimation(),this.tabField.addTabOption(i+"",this.currentVisual[i].name),this.tabField.options.eq(i).trigger("click"),"solo"!=this.currentPreviewMode&&this.refreshTimeline())},i.prototype.deleteCurrentTab=function(e){e&&e.preventDefault(),this.deleteTab(this.currentTabIndex),this.currentTabIndex=Math.min(this.currentTabIndex,this.currentVisual.length-1),this.tabField.options.eq(this.currentTabIndex).trigger("click")},i.prototype.deleteTab=function(e){if(this.currentVisual.length>1){this.tabField.removeTabOption(this.tabField.values[e]),this.tabField.values=[];for(var t=0;t<this.tabField.options.length;t++)this.tabField.values.push(t+"");this.currentVisual.splice(e,1)}else this.addTab(null,!0),this.deleteTab(0);"solo"!=this.currentPreviewMode&&this.refreshTimeline()},i.prototype.animationNameChanged=function(e,t){this.tabField.options.eq(this.currentTabIndex).html(t)},i.prototype.show=function(){NextendVisualEditorController.prototype.show.call(this),this.refreshTimeline()},i.prototype.hide=function(){this.clearTimeline(),NextendVisualEditorController.prototype.hide.call(this)},i.prototype.createTimeline=function(){this.timeline&&this.timeline.pause(0),this.timeline=new NextendTimeline({paused:1}),this.timeline.eventCallback("onComplete",e.proxy(function(){this.timeline.play(0,!1)},this)),this.timeline.set(this.preview.get(0),{transformOrigin:this.transformOrigin.split("|*|").join("% ")+"px"},0);var t=[];switch(this.currentPreviewMode){case"solo":t.push(e.extend({},this.currentVisual[this.currentTabIndex]));break;default:e.extend(!0,t,this.currentVisual)}for(var i=0;i<t.length;i++)t[i].delay>.5&&(t[i].delay=.5);switch(this.group){case"in":this.buildTimelineIn(this.timeline,this.preview.get(0),t,1);break;case"loop":"solo"==this.currentPreviewMode?this.buildTimelineOut(this.timeline,this.preview.get(0),t,1):this.buildTimelineLoop(this.timeline,this.preview.get(0),t,1);break;case"out":this.buildTimelineOut(this.timeline,this.preview.get(0),t,1);break;default:console.log(this.group+" animation is not supported!")}this.timeline.totalDuration()>0&&this.timeline.play()},i.prototype.refreshTimeline=NextendDeBounce(function(){this.clearTimeline(),this.createTimeline()},50),i.prototype.clearTimeline=function(){this.timeline&&(this.timeline.pause(),this.repeatTimeout&&clearTimeout(this.repeatTimeout),this.timeline.progress(1,!0))},i.prototype.setCurrentZero=function(t){NextendTween.set(t,e.extend({},this.currentZero))},i.prototype.buildTimelineIn=function(e,t,i,n){this.currentZero=o,"in"==this.group&&("solo"!=this.currentPreviewMode||this.currentTabIndex==this.currentVisual.length-1)&&this.specialZero&&i.length>0&&(this.currentZero=i.pop(),delete this.currentZero.name,this.currentZero.x=this.currentZero.x*n,this.currentZero.y=this.currentZero.y*n,this.currentZero.z=this.currentZero.z*n,this.currentZero.rotationX=-this.currentZero.rotationX,this.currentZero.rotationY=-this.currentZero.rotationY,this.currentZero.rotationZ=-this.currentZero.rotationZ,this.setCurrentZero(t));var r=0,a=this._buildAnimationChainIn(i,n,this.currentZero),s=0;if(a.length>0)for(e.fromTo(t,a[s].duration,a[s].from,a[s].to,r),r+=a[s].duration+a[s].to.delay,s++;s<a.length;s++)e.to(t,a[s].duration,a[s].to,r),r+=a[s].duration+a[s].to.delay},i.prototype._buildAnimationChainIn=function(t,i,n){for(var o=[{from:n}],r=t.length-1;r>=0;r--){var a=t[r],s=a.delay,l=a.duration,d=a.ease;delete a.delay,delete a.duration,delete a.ease,delete a.name;var h=o[0].from;a.x=-a.x*i,a.y=-a.y*i,a.z=-a.z*i,a.rotationX=-a.rotationX,a.rotationY=-a.rotationY,a.rotationZ=-a.rotationZ,o.unshift({duration:l,from:a,to:e.extend({},h,{ease:d,delay:s})})}return o.pop(),o},i.prototype.buildTimelineLoop=function(e,t,i,n){var o=this._buildAnimationChainLoop(i,n),r=0;if(o.length>0)for(e.fromTo(t,o[r].duration,o[r].from,o[r].to),r++;r<o.length;r++)e.to(t,o[r].duration,o[r].to)},i.prototype._buildAnimationChainLoop=function(t,i){if(delete t[0].name,1==t.length){var n=t[0],r=e.extend({},o);if(r.duration=n.duration,r.ease=n.ease,(360==n.rotationX||360==n.rotationY||360==n.rotationZ)&&1==n.opacity&&0==n.x&&0==n.y&&0==n.z&&1==n.scaleX&&1==n.scaleY&&1==n.scaleZ&&0==n.skewX&&0==n.n2blur)return[{duration:t[0].duration,from:e.extend({},o),to:t[0]}];t.unshift(r)}var a=0,s=[{duration:t[a].duration,to:t[a]}];for(a++;a<t.length;a++){var r=t[a],l=r.duration;delete r.duration,delete r.name;var d=e.extend({},s[s.length-1].to);delete d.delay,delete d.ease,r.x=r.x*i,r.y=r.y*i,r.z=r.z*i,s.push({duration:l,from:d,to:r})}return s.push({duration:s[0].duration,from:e.extend({},s[s.length-1].to),to:e.extend({},s[0].to)}),s.shift(),s},i.prototype.buildTimelineOut=function(e,t,i,n){var o=0,r=this._buildAnimationChainOut(i,n),a=0;if(r.length>0)for(e.fromTo(t,r[a].duration,r[a].from,r[a].to,o),o+=r[a].duration+r[a].to.delay,a++;a<r.length;a++)e.to(t,r[a].duration,r[a].to,o),o+=r[a].duration+r[a].to.delay},i.prototype._buildAnimationChainOut=function(t,i){for(var n=[{to:o}],r=0;r<t.length;r++){var a=t[r],s=a.duration;delete a.duration,delete a.name;var l=e.extend({},n[n.length-1].to);delete l.delay,delete l.ease,a.x=a.x*i,a.y=a.y*i,a.z=a.z*i,n.push({duration:s,from:l,to:a})}return n.shift(),n},i.prototype.loadSpecialZero=function(e){this.editor.fields.specialZero.element.data("field").insideChange(e),this.refreshSpecialZero(e)},i.prototype.refreshSpecialZero=function(e){this.specialZero=parseInt(e)?1:0,this.refreshTimeline()},i.prototype.loadRepeatCount=function(e){this.editor.fields.repeatCount.element.data("field").insideChange(e),this.refreshRepeatCount(e)},i.prototype.refreshRepeatCount=function(e){this.repeatCount=Math.max(0,parseInt(e))},i.prototype.loadRepeatStartDelay=function(e){this.editor.fields.repeatStartDelay.element.data("field").insideChange(1e3*e),this.refreshRepeatStartDelay(e)},i.prototype.refreshRepeatStartDelay=function(e){this.repeatStartDelay=Math.max(0,parseFloat(e))},i.prototype.loadTransformOrigin=function(e){this.editor.fields.transformOrigin.element.data("field").insideChange(e),this.refreshTransformOrigin(e)},i.prototype.refreshTransformOrigin=function(e){this.transformOrigin=e,NextendTween.set(this.preview.parent().get(0),{perspective:"1000px"}),this.refreshTimeline()},i.prototype.loadPlayEvent=function(e){this.editor.fields.playEvent.element.data("field").insideChange(e),this.refreshPlayEvent(e)},i.prototype.refreshPlayEvent=function(e){this.playEvent=e},i.prototype.loadPauseEvent=function(e){this.editor.fields.pauseEvent.element.data("field").insideChange(e),this.refreshPauseEvent(e)},i.prototype.refreshPauseEvent=function(e){this.pauseEvent=e},i.prototype.loadStopEvent=function(e){this.editor.fields.stopEvent.element.data("field").insideChange(e),this.refreshStopEvent(e)},i.prototype.refreshStopEvent=function(e){this.stopEvent=e},i.prototype.loadRepeatable=function(e){this.editor.fields.repeatable.element.data("field").insideChange(e),this.refreshRepeatable(e)},i.prototype.refreshRepeatable=function(e){this.repeatable=e},i.prototype.loadRepeatSelfOnly=function(e){this.editor.fields.repeatSelfOnly.element.data("field").insideChange(e),this.refreshRepeatSelfOnly(e)},i.prototype.refreshRepeatSelfOnly=function(e){this.repeatSelfOnly=e},i.prototype.loadInstantOut=function(e){this.editor.fields.instantOut.element.data("field").insideChange(e),this.refreshInstantOut(e)},i.prototype.refreshInstantOut=function(e){this.instantOut=e},i.prototype.featureSpecialZero=function(e){var t=this.editor.fields.specialZero.element.closest("tr");e?t.removeClass("n2-hidden"):t.addClass("n2-hidden")},i.prototype.featureRepeat=function(e){var t=this.editor.fields.repeatCount.element.closest("tr").add(this.editor.fields.repeatStartDelay.element.closest("tr"));e?t.removeClass("n2-hidden"):t.addClass("n2-hidden")},i.prototype.featurePlayEvent=function(e){var t=this.editor.fields.playEvent.element.closest(".n2-mixed-group");e?t.removeClass("n2-hidden"):t.addClass("n2-hidden")},i.prototype.featurePauseEvent=function(e){var t=this.editor.fields.pauseEvent.element.closest(".n2-mixed-group");e?t.removeClass("n2-hidden"):t.addClass("n2-hidden")},i.prototype.featureStopEvent=function(e){var t=this.editor.fields.stopEvent.element.closest(".n2-mixed-group");e?t.removeClass("n2-hidden"):t.addClass("n2-hidden")},i.prototype.featureRepeatable=function(e){var t=this.editor.fields.repeatable.element.closest(".n2-mixed-group");e?t.removeClass("n2-hidden"):t.addClass("n2-hidden")},i.prototype.featureRepeatSelfOnly=function(e){var t=this.editor.fields.repeatSelfOnly.element.closest(".n2-mixed-group");e?t.removeClass("n2-hidden"):t.addClass("n2-hidden")},i.prototype.featureInstantOut=function(e){var t=this.editor.fields.instantOut.element.closest(".n2-mixed-group");e?t.removeClass("n2-hidden"):t.addClass("n2-hidden")},t.NextendAnimationEditorController=i,n.prototype=Object.create(NextendVisualEditor.prototype),n.prototype.constructor=n,n.prototype.load=function(e){this._off(),this.fields.name.element.data("field").insideChange(e.name),this.fields.duration.element.data("field").insideChange(1e3*e.duration),this.fields.delay.element.data("field").insideChange(1e3*e.delay),this.fields.easing.element.data("field").insideChange(e.ease),this.fields.opacity.element.data("field").insideChange(100*e.opacity),this.fields.offset.element.data("field").insideChange(e.x+"|*|"+e.y+"|*|"+e.z),this.fields.rotate.element.data("field").insideChange(e.rotationX+"|*|"+e.rotationY+"|*|"+e.rotationZ),this.fields.scale.element.data("field").insideChange(100*e.scaleX+"|*|"+100*e.scaleY+"|*|"+100*e.scaleZ),this.fields.skew.element.data("field").insideChange(e.skewX),this.fields.n2blur.element.data("field").insideChange(e.n2blur),this.fields.specialZero.element.data("field").insideChange(nextend.animationManager.controller.specialZero),this.fields.repeatCount.element.data("field").insideChange(nextend.animationManager.controller.repeatCount),this.fields.repeatStartDelay.element.data("field").insideChange(1e3*nextend.animationManager.controller.repeatStartDelay),this.fields.transformOrigin.element.data("field").insideChange(nextend.animationManager.controller.transformOrigin),this.fields.playEvent.element.data("field").insideChange(nextend.animationManager.controller.playEvent),this.fields.pauseEvent.element.data("field").insideChange(nextend.animationManager.controller.pauseEvent),this.fields.stopEvent.element.data("field").insideChange(nextend.animationManager.controller.stopEvent),this.fields.repeatable.element.data("field").insideChange(nextend.animationManager.controller.repeatable),this.fields.repeatSelfOnly.element.data("field").insideChange(nextend.animationManager.controller.repeatSelfOnly),this.fields.instantOut.element.data("field").insideChange(nextend.animationManager.controller.instantOut),this._on()},n.prototype.changeName=function(){this.trigger("name",this.fields.name.element.val()),this.$.trigger("nameChanged",this.fields.name.element.val())},n.prototype.changeDuration=function(){this.trigger("duration",this.fields.duration.element.val()/1e3)},n.prototype.changeDelay=function(){this.trigger("delay",this.fields.delay.element.val()/1e3)},n.prototype.changeEasing=function(){this.trigger("ease",this.fields.easing.element.val())},n.prototype.changeOpacity=function(){this.trigger("opacity",this.fields.opacity.element.val()/100)},n.prototype.changeOffset=function(){var e=this.fields.offset.element.val().split("|*|");this.trigger("x",e[0]),this.trigger("y",e[1]),this.trigger("z",e[2])},n.prototype.changeRotate=function(){var e=this.fields.rotate.element.val().split("|*|");this.trigger("rotationX",e[0]),this.trigger("rotationY",e[1]),this.trigger("rotationZ",e[2])},n.prototype.changeScale=function(){var e=this.fields.scale.element.val().split("|*|");this.trigger("scaleX",e[0]/100),this.trigger("scaleY",e[1]/100),this.trigger("scaleZ",e[2]/100)},n.prototype.changeSkew=function(){this.trigger("skewX",this.fields.skew.element.val())},n.prototype.changeN2blur=function(){this.trigger("n2blur",this.fields.n2blur.element.val())},n.prototype.changeTransformOrigin=function(){nextend.animationManager.controller.refreshTransformOrigin(this.fields.transformOrigin.element.val())},n.prototype.changeSpecialZero=function(){nextend.animationManager.controller.refreshSpecialZero(this.fields.specialZero.element.val())},n.prototype.changeRepeatCount=function(){nextend.animationManager.controller.refreshRepeatCount(this.fields.repeatCount.element.val())},n.prototype.changeRepeatStartDelay=function(){nextend.animationManager.controller.refreshRepeatStartDelay(this.fields.repeatStartDelay.element.val()/1e3)},n.prototype.changePlayEvent=function(){nextend.animationManager.controller.refreshPlayEvent(this.fields.playEvent.element.val())},n.prototype.changePauseEvent=function(){nextend.animationManager.controller.refreshPauseEvent(this.fields.pauseEvent.element.val())},n.prototype.changeStopEvent=function(){nextend.animationManager.controller.refreshStopEvent(this.fields.stopEvent.element.val())},n.prototype.changeRepeatable=function(){nextend.animationManager.controller.refreshRepeatable(this.fields.repeatable.element.val())},n.prototype.changeRepeatSelfOnly=function(){nextend.animationManager.controller.refreshRepeatSelfOnly(this.fields.repeatSelfOnly.element.val())},n.prototype.changeInstantOut=function(){nextend.animationManager.controller.refreshInstantOut(this.fields.instantOut.element.val())},t.NextendAnimationEditor=n}(n2,window),function(e,t,i){function n(t,i){this.url=t,this.uploadAllowed=parseInt(i),this.currentPath=e.jStorage.get("browsePath","");var n=null;this.node=e('<div class="n2-browse-container"/>').on("dragover",function(t){null!==n?(clearTimeout(n),n=null):e(t.currentTarget).addClass("n2-drag-over"),n=setTimeout(function(){e(t.currentTarget).removeClass("n2-drag-over"),n=null},400)}),nextend.browse=this}var o={};n.prototype.clear=function(){this.uploadAllowed&&this.node.find("#n2-browse-upload").fileupload("destroy"),this.node.empty()},n.prototype.getNode=function(t,i){return this.clear(),this.mode=t,"multiple"==t&&(this.selected=[]),this.callback=i,this._loadPath(this.getCurrentFolder(),e.proxy(this._renderBoxes,this)),this.node},n.prototype._renderBoxes=function(t){this.clear(),this.uploadAllowed&&(this.node.append(e('<div class="n2-browse-box n2-browse-upload"><div class="n2-h4">'+n2_("Drop files anywhere to upload or")+' <br> <a class="n2-button n2-button-normal n2-button-m n2-radius-s n2-button-grey n2-uc n2-h4" href="#">'+n2_("Select files")+'</a></div><input id="n2-browse-upload" type="file" name="image" multiple></div>')),this.node.find("#n2-browse-upload").fileupload({url:NextendAjaxHelper.makeAjaxUrl(this.url,{nextendaction:"upload"}),sequentialUploads:!0,dropZone:this.node,pasteZone:!1,dataType:"json",paramName:"image",add:e.proxy(function(t,i){var n=e('<div class="n2-browse-box n2-browse-image"><div class="n2-button n2-button-icon n2-button-s n2-button-blue n2-radius-s"><i class="n2-i n2-it n2-i-tick"></i></div><div class="n2-browse-title">0%</div></div>'),o=this.node.find(".n2-browse-image");o.length>0?n.insertBefore(o.eq(0)):n.appendTo(this.node),i.box=n,i.formData={path:this.currentPath},i.submit()},this),progress:function(e,t){var i=parseInt(t.loaded/t.total*100,10);t.box.find(".n2-browse-title").html(i+"%")},done:e.proxy(function(t,i){var n=i.result;if(n.data&&n.data.name){o[n.data.path].data.files[n.data.name]=n.data.url,i.box.on("click",e.proxy(this.clickImage,this,n.data.url)).find(".n2-browse-title").html(n.data.name);var r=n.data.url.split(".").pop();"mp4"!=r&&"mp3"!=r&&i.box.css("background-image","url("+encodeURI(nextend.imageHelper.fixed(n.data.url))+")"),"multiple"==this.mode&&(this.selected.push(n.data.url),i.box.addClass("n2-active"))}else i.box.destroy();NextendAjaxHelper.notification(n)},this),fail:e.proxy(function(e,t){t.box.remove(),NextendAjaxHelper.notification(t.jqXHR.responseJSON)},this)}),e.jStorage.set("browsePath",this.getCurrentFolder())),""!=t.path&&this.node.append(e('<div class="n2-browse-box n2-browse-directory"><i class="n2-i n2-it n2-i-up"></i></div>').on("click",e.proxy(function(t){this._loadPath(t,e.proxy(this._renderBoxes,this))},this,t.path+"/..")));for(var i in t.directories)t.directories.hasOwnProperty(i)&&this.node.append(e('<div class="n2-browse-box n2-browse-directory"><i class="n2-i n2-it n2-i-folder"></i><div class="n2-browse-title">'+i+"</div></div>").on("click",e.proxy(function(t){this._loadPath(t,e.proxy(this._renderBoxes,this))},this,t.directories[i])));for(var i in t.files)if(t.files.hasOwnProperty(i)){var n=e('<div class="n2-browse-box n2-browse-image"><div class="n2-button n2-button-icon n2-button-s n2-button-blue n2-radius-s"><i class="n2-i n2-it n2-i-tick"></i></div><div class="n2-browse-title">'+i+"</div></div>").on("click",e.proxy(this.clickImage,this,t.files[i])),r=t.files[i].split(".").pop();"mp4"!=r&&"mp3"!=r&&n.css("background-image","url("+encodeURI(nextend.imageHelper.fixed(t.files[i]))+")"),this.node.append(n),"multiple"==this.mode&&-1!=e.inArray(t.files[i],this.selected)&&n.addClass("n2-active")}},n.prototype._loadPath=function(t,i){"undefined"==typeof o[t]&&(o[t]=NextendAjaxHelper.ajax({type:"POST",url:NextendAjaxHelper.makeAjaxUrl(this.url),data:{path:t},dataType:"json"})),e.when(o[t]).done(e.proxy(function(e){this.currentPath=e.data.path,o[e.data.path]=e,o[t]=e,i(e.data)},this))},n.prototype.clickImage=function(t,i){if("single"==this.mode)this.callback(t);else if("multiple"==this.mode){var n=e.inArray(t,this.selected);-1==n?(e(i.currentTarget).addClass("n2-active"),this.selected.push(t)):(e(i.currentTarget).removeClass("n2-active"),this.selected.splice(n,1))}},n.prototype.getSelected=function(){return this.selected},n.prototype.getCurrentFolder=function(){return this.currentPath},t.NextendBrowse=n}(n2,window),function(e,t){function i(){NextendVisualManagerSetsAndMore.prototype.constructor.apply(this,arguments)}function n(){NextendVisualWithSetRow.prototype.constructor.apply(this,arguments)}i.prototype=Object.create(NextendVisualManagerSetsAndMore.prototype),i.prototype.constructor=i,i.prototype.loadDefaults=function(){NextendVisualManagerSetsAndMore.prototype.loadDefaults.apply(this,arguments),this.type="font",this.labels={visual:n2_("font"),visuals:n2_("fonts")},this.styleClassName="",this.styleClassName2=""},i.prototype.initController=function(){return new NextendFontEditorController(this.parameters.renderer.modes,this.parameters.defaultFamily)},i.prototype.addVisualUsage=function(e,t,i){if(parseInt(t)>0)return this._addLinkedFont(e,t,i);try{return this._renderStaticFont(e,t,i),!0}catch(n){return!1}},i.prototype._addLinkedFont=function(t,i,n){var o=this.parameters.renderer.usedFonts,r=e.Deferred();return e.when(this.getVisual(i)).done(e.proxy(function(i){i.id>0?("undefined"==typeof n?"undefined"==typeof o[i.id]?(o[i.id]=[t],this.renderLinkedFont(t,i,n)):-1==e.inArray(t,o[i.id])&&(o[i.id].push(t),this.renderLinkedFont(t,i,n)):this.renderLinkedFont(t,i,n),r.resolve(!0)):r.resolve(!1)},this)).fail(function(){r.resolve(!1)}),r},i.prototype.renderLinkedFont=function(e,t,i){"undefined"==typeof i&&(i=this.parameters.renderer.pre),nextend.css.add(this.renderer.getCSS(e,i,"."+this.getClass(t.id,e),t.value,{deleteRule:!0}))},i.prototype._renderStaticFont=function(e,t,i){"undefined"==typeof i&&(i=this.parameters.renderer.pre);var n=t;"{"!=n[0]&&(n=Base64.decode(n)),nextend.css.add(this.renderer.getCSS(e,i,"."+this.getClass(t,e),JSON.parse(n).data,{}))},i.prototype.removeUsedFont=function(t,i){var n=this.parameters.renderer.usedFonts;if("undefined"!=typeof n[i]){var o=e.inArray(t,n[i]);o>-1&&n[i].splice(o,1)}},i.prototype.getClass=function(e,t){return parseInt(e)>0?"n2-font-"+e+"-"+t:""==e?"":("{"==e&&(e=Base64.encode(e)),"n2-font-"+md5(e)+"-"+t)},i.prototype.createVisual=function(e,t){return new n(e,t,this)},i.prototype.setConnectedStyle=function(t){this.styleClassName=e("#"+t).data("field").renderStyle()},i.prototype.setConnectedStyle2=function(t){this.styleClassName2=e("#"+t).data("field").renderStyle();
3
- },t.NextendFontManager=i,n.prototype=Object.create(NextendVisualWithSetRow.prototype),n.prototype.constructor=n,n.prototype.removeRules=function(){var e=this.isUsed();if(e)for(var t=0;t<e.length;t++)this.visualManager.removeRules(e[t],this)},n.prototype.render=function(){var e=this.isUsed();if(e)for(var t=0;t<e.length;t++)this.visualManager.renderLinkedFont(e[t],this)},n.prototype.isUsed=function(){return"undefined"!=typeof this.visualManager.parameters.renderer.usedFonts[this.id]?this.visualManager.parameters.renderer.usedFonts[this.id]:!1},t.NextendFont=n}(n2,window),function($,scope){function NextendFontEditorController(e,t){this.defaultFamily=t,NextendVisualEditorController.prototype.constructor.apply(this,arguments),this.fontSize=16,this.preview=$("#n2-font-editor-preview").css("fontSize","16px"),this.initBackgroundColor()}function NextendFontEditor(){NextendVisualEditor.prototype.constructor.apply(this,arguments),this.fields={family:{element:$("#n2-font-editorfamily"),events:{"nextendChange.n2-editor":$.proxy(this.changeFamily,this)}},color:{element:$("#n2-font-editorcolor"),events:{"outsideChange.n2-editor":$.proxy(this.changeColor,this)}},size:{element:$("#n2-font-editorsize"),events:{"outsideChange.n2-editor":$.proxy(this.changeSize,this)}},lineHeight:{element:$("#n2-font-editorlineheight"),events:{"outsideChange.n2-editor":$.proxy(this.changeLineHeight,this)}},weight:{element:$("#n2-font-editorweight"),events:{"outsideChange.n2-editor":$.proxy(this.changeWeight,this)}},decoration:{element:$("#n2-font-editordecoration"),events:{"outsideChange.n2-editor":$.proxy(this.changeDecoration,this)}},align:{element:$("#n2-font-editortextalign"),events:{"outsideChange.n2-editor":$.proxy(this.changeAlign,this)}},shadow:{element:$("#n2-font-editortshadow"),events:{"outsideChange.n2-editor":$.proxy(this.changeShadow,this)}},letterSpacing:{element:$("#n2-font-editorletterspacing"),events:{"outsideChange.n2-editor":$.proxy(this.changeLetterSpacing,this)}},wordSpacing:{element:$("#n2-font-editorwordspacing"),events:{"outsideChange.n2-editor":$.proxy(this.changeWordSpacing,this)}},textTransform:{element:$("#n2-font-editortexttransform"),events:{"outsideChange.n2-editor":$.proxy(this.changeTextTransform,this)}},css:{element:$("#n2-font-editorextracss"),events:{"outsideChange.n2-editor":$.proxy(this.changeCSS,this)}}}}function NextendFontRenderer(){NextendVisualRenderer.prototype.constructor.apply(this,arguments)}NextendFontEditorController.prototype=Object.create(NextendVisualEditorController.prototype),NextendFontEditorController.prototype.constructor=NextendFontEditorController,NextendFontEditorController.prototype.loadDefaults=function(){NextendVisualEditorController.prototype.loadDefaults.call(this),this.type="font",this.preview=null,this.fontSize=14},NextendFontEditorController.prototype.initPreviewModes=function(){this.previewModes={1:[this.previewModesList.simple],2:[this.previewModesList.link,this.previewModesList.hover,this.previewModesList.accordionslidetitle],3:[this.previewModesList.paragraph,this.previewModesList.list]}},NextendFontEditorController.prototype.initRenderer=function(){return new NextendFontRenderer(this)},NextendFontEditorController.prototype.initEditor=function(){return new NextendFontEditor},NextendFontEditorController.prototype._load=function(e,t,i){e.length&&(e[0]=$.extend({},this.getEmptyFont(),e[0])),NextendVisualEditorController.prototype._load.call(this,e,t,i)},NextendFontEditorController.prototype.asyncVisualData=function(e,t,i){e.length&&(e[0]=$.extend({},this.getEmptyFont(),e[0])),NextendVisualEditorController.prototype.asyncVisualData.call(this,e,t,i)},NextendFontEditorController.prototype.getEmptyFont=function(){return{color:"000000ff",size:"14||px",tshadow:"0|*|0|*|0|*|000000ff",afont:this.defaultFamily,lineheight:"1.5",bold:0,italic:0,underline:0,align:"left",letterspacing:"normal",wordspacing:"normal",texttransform:"none",extra:""}},NextendFontEditorController.prototype.getCleanVisual=function(){return{extra:""}},NextendFontEditorController.prototype.getEmptyVisual=function(){return[this.getEmptyFont()]},NextendFontEditorController.prototype.initBackgroundColor=function(){new N2Classes.FormElementText("n2-font-editor-background-color"),new N2Classes.FormElementColor("n2-font-editor-background-color",0);var e=this.lightbox.find(".n2-editor-preview-box");$("#n2-font-editor-background-color").on("nextendChange",function(){e.css("background","#"+$(this).val())})},NextendFontEditorController.prototype._renderPreview=function(){NextendVisualEditorController.prototype._renderPreview.call(this),this.addStyle(this.renderer.getCSS(this.currentPreviewMode,"","."+this.getPreviewCssClass(),this.currentVisual,{activeTab:this.currentTabIndex}))},NextendFontEditorController.prototype.setPreview=function(mode){var html="";html="undefined"!=typeof this.localModePreview[mode]?this.localModePreview[mode]:this.previewModesList[mode].preview;var fontClassName=this.getPreviewCssClass(),styleClassName=nextend.fontManager.styleClassName,styleClassName2=nextend.fontManager.styleClassName2;html=html.replace(/\{([^]*?)\}/g,function(match,script){return eval(script)}),this.preview.html(html)},NextendFontEditorController.prototype.getPreviewCssClass=function(){return"n2-"+this.type+"-editor-preview"},scope.NextendFontEditorController=NextendFontEditorController,NextendFontEditor.prototype=Object.create(NextendVisualEditor.prototype),NextendFontEditor.prototype.constructor=NextendFontEditor,NextendFontEditor.prototype.load=function(e){this._off();var t=e.afont.split("||");this.fields.family.element.data("field").insideChange(t[0]),this.fields.color.element.data("field").insideChange(e.color),this.fields.size.element.data("field").insideChange(e.size.split("||").join("|*|")),this.fields.lineHeight.element.data("field").insideChange(e.lineheight),this.fields.weight.element.data("field").insideChange(e.bold),this.fields.decoration.element.data("field").insideChange([1==e.italic?"italic":"",1==e.underline?"underline":""].join("||")),this.fields.align.element.data("field").insideChange(e.align),this.fields.shadow.element.data("field").insideChange(e.tshadow.replace(/\|\|px/g,"")),this.fields.letterSpacing.element.data("field").insideChange(e.letterspacing),this.fields.wordSpacing.element.data("field").insideChange(e.wordspacing),this.fields.textTransform.element.data("field").insideChange(e.texttransform),this.fields.css.element.data("field").insideChange(e.extra),this._on()},NextendFontEditor.prototype.changeFamily=function(){this.trigger("afont",this.fields.family.element.val())},NextendFontEditor.prototype.changeColor=function(){this.trigger("color",this.fields.color.element.val())},NextendFontEditor.prototype.changeSize=function(){this.trigger("size",this.fields.size.element.val().replace("|*|","||"))},NextendFontEditor.prototype.changeLineHeight=function(){this.trigger("lineheight",this.fields.lineHeight.element.val())},NextendFontEditor.prototype.changeWeight=function(){this.trigger("weight",this.fields.weight.element.val())},NextendFontEditor.prototype.changeDecoration=function(){var e=this.fields.decoration.element.val(),t=0;-1!=e.indexOf("italic")&&(t=1),this.trigger("italic",t);var i=0;-1!=e.indexOf("underline")&&(i=1),this.trigger("underline",i)},NextendFontEditor.prototype.changeAlign=function(){this.trigger("align",this.fields.align.element.val())},NextendFontEditor.prototype.changeShadow=function(){this.trigger("tshadow",this.fields.shadow.element.val())},NextendFontEditor.prototype.changeLetterSpacing=function(){this.trigger("letterspacing",this.fields.letterSpacing.element.val())},NextendFontEditor.prototype.changeWordSpacing=function(){this.trigger("wordspacing",this.fields.wordSpacing.element.val())},NextendFontEditor.prototype.changeTextTransform=function(){this.trigger("texttransform",this.fields.textTransform.element.val())},NextendFontEditor.prototype.changeCSS=function(){this.trigger("extra",this.fields.css.element.val())},scope.NextendFontEditor=NextendFontEditor,NextendFontRenderer.prototype=Object.create(NextendVisualRenderer.prototype),NextendFontRenderer.prototype.constructor=NextendFontRenderer,NextendFontRenderer.prototype.getCSS=function(e,t,i,n,o){if(n=$.extend([],n),n[0]=$.extend(this.editorController.getEmptyFont(),n[0]),this.editorController.previewModesList[e].renderOptions.combined)for(var r=1;r<n.length;r++)n[r]=$.extend({},n[r-1],n[r]),n[r].size==n[0].size&&(n[r].size="100||%");return NextendVisualRenderer.prototype.getCSS.call(this,e,t,i,n,o)},NextendFontRenderer.prototype.makeStylecolor=function(e,t){t.color="#"+e.substr(0,6)+";\ncolor: "+N2Color.hex2rgbaCSS(e)},NextendFontRenderer.prototype.makeStylesize=function(e,t){var i=e.split("||");"px"==i[1]?t.fontSize=i[0]/this.editorController.fontSize*100+"%":t.fontSize=e.replace("||","")},NextendFontRenderer.prototype.makeStyletshadow=function(e,t){var i=e.split("|*|");"0"==i[0]&&"0"==i[1]&&"0"==i[2]?t.textShadow="none":t.textShadow=i[0]+"px "+i[1]+"px "+i[2]+"px "+N2Color.hex2rgbaCSS(i[3])},NextendFontRenderer.prototype.makeStyleafont=function(e,t){for(var i=e.split(","),n=0;n<i.length;n++)i[n]=this.getFamily(i[n].replace(/^\s+|\s+$/gm,"").replace(/"|'/gm,""));t.fontFamily=i.join(",")},NextendFontRenderer.prototype.getFamily=function(e){return $(window).trigger("n2Family",[e]),"'"+e+"'"},NextendFontRenderer.prototype.makeStylelineheight=function(e,t){t.lineHeight=e},NextendFontRenderer.prototype.makeStyleweight=NextendFontRenderer.prototype.makeStylebold=function(e,t){1==e?t.fontWeight="bold":e>1?t.fontWeight=e:t.fontWeight="normal"},NextendFontRenderer.prototype.makeStyleitalic=function(e,t){1==e?t.fontStyle="italic":t.fontStyle="normal"},NextendFontRenderer.prototype.makeStyleunderline=function(e,t){1==e?t.textDecoration="underline":t.textDecoration="none"},NextendFontRenderer.prototype.makeStylealign=function(e,t){t.textAlign=e},NextendFontRenderer.prototype.makeStyleletterspacing=function(e,t){t.letterSpacing=e},NextendFontRenderer.prototype.makeStylewordspacing=function(e,t){t.wordSpacing=e},NextendFontRenderer.prototype.makeStyletexttransform=function(e,t){t.textTransform=e},NextendFontRenderer.prototype.makeStyleextra=function(e,t){t.raw=e},scope.NextendFontRenderer=NextendFontRenderer}(n2,window),N2Require("Icons",[],[],function(e,t,i){function n(e){t.Icons=this,this.data=e,this.keys={};for(var i in this.data)this.keys[this.data[i].id]=this.data[i]}n.prototype.render=function(t){var n=t.split(":");if(2!=n.length)return!1;var o=n[0],r=n[1];if(this.keys[o]==i)return!1;var a=this.keys[o];return a.data[r]==i?!1:(a.isLoaded==i&&(e("head").append("<link rel='stylesheet' href='"+a.css+"' type='text/css' media='screen'>"),a.isLoaded=!0),a.isLigature?{"class":a["class"],ligature:r}:{"class":a["class"]+" "+a.prefix+r,ligature:""})},n.prototype._render=function(e,t){return e.isLigature?'<i class="n2i '+e["class"]+'">'+t+"</i>":'<i class="n2i '+e["class"]+" "+e.prefix+t+'"></i>'};var o=!1;return n.prototype.showModal=function(t){if(o=t,this.modal==i){var n=e("<div></div>"),r=e('<input class="n2-h5" placeholder="'+n2_("Search")+'" type="text" name="search-icon" value="" style="width:280px;"/>').appendTo(e('<div class="n2-form-element-text n2-border-radius" style="margin: 10px 0 0 20px;"/>').appendTo(n));for(var a in this.data){var s=this.data[a];s.isLoaded==i&&(e("head").append("<link rel='stylesheet' href='"+s.css+"' type='text/css' media='screen'>"),s.isLoaded=!0);var l=e('<div class="n2-form-tab "></div>').appendTo(n);l.append('<div class="n2-h2 n2-content-box-title-bg">'+s.label+"</div>");var d=e('<div class="n2-description"></div>').appendTo(l);for(var h in s.data)e('<div class="n2-icon" data-identifier="'+s.id+":"+h+'" data-kw="'+s.data[h].kw.toLowerCase()+'">'+this._render(s,h)+"</div>").on("click",e.proxy(function(t){o(e(t.currentTarget).data("identifier")),this.modal.hide(t)},this)).appendTo(d)}var p=n.find(".n2-icon");r.on("keyup",e.proxy(function(t){var i=e(t.target).val();if(i.length<=1)p.css("display","");else{var n=p.filter("[data-kw*='"+i+"']");p.not(n).css("display","none"),n.css("display","")}},this)),this.modal=new NextendModal({zero:{size:[1200,600],fit:!0,title:"Icons",back:!1,close:!0,content:n}},!1),this.modal.setCustomClass("n2-icons-modal")}this.modal.show()},n}),function(e,t){function i(){this.referenceKeys={},NextendVisualManagerCore.prototype.constructor.apply(this,arguments)}function n(){NextendVisualCore.prototype.constructor.apply(this,arguments)}i.prototype=Object.create(NextendVisualManagerCore.prototype),i.prototype.constructor=i,i.prototype.loadDefaults=function(){NextendVisualManagerCore.prototype.loadDefaults.apply(this,arguments),this.type="image",this.labels={visual:n2_("image"),visuals:n2_("images")},this.fontClassName=""},i.prototype.initController=function(){return new NextendImageEditorController},i.prototype.createVisual=function(e){return new n(e,this)},i.prototype.firstLoadVisuals=function(e){for(var t=0;t<e.length;t++)this.referenceKeys[e[t].hash]=this.visuals[e[t].id]=this.createVisual(e[t])},i.prototype.getVisual=function(t){if(""!=t){var i=md5(t);if("undefined"!=typeof this.referenceKeys[i])return this.referenceKeys[i];if("undefined"!=typeof this.visualLoadDeferreds[i])return this.visualLoadDeferreds[i];var n=e.Deferred();return this.visualLoadDeferreds[i]=n,this._loadVisualFromServer(t).done(e.proxy(function(){n.resolve(this.referenceKeys[i]),delete this.visualLoadDeferreds[i]},this)).fail(e.proxy(function(){n.resolve({id:-1,name:n2_("Empty")}),delete this.visualLoadDeferreds[i]},this)),n}nextend.notificationCenter.error("The image is empty",{timeout:3})},i.prototype._loadVisualFromServer=function(t){return NextendAjaxHelper.ajax({type:"POST",url:NextendAjaxHelper.makeAjaxUrl(this.parameters.ajaxUrl,{nextendaction:"loadVisualForImage"}),data:{image:t},dataType:"json"}).done(e.proxy(function(e){var t=e.data.visual;this.referenceKeys[t.hash]=this.visuals[t.id]=this.createVisual(t)},this))},i.prototype.isVisualData=function(e){return""!=e},i.prototype.setVisual=function(t){t.preventDefault(),this.controller.isChanged?this.saveActiveVisual(this.activeVisual.name).done(e.proxy(function(i){e(window).trigger(i.data.visual.hash,this.activeVisual.value),this.hide(t)},this)):this.hide(t)},i.prototype.getBase64=function(){return Base64.encode(JSON.stringify(this.controller.get("set")))},i.prototype.loadDataToController=function(t){this.isVisualData(t)?e.when(this.getVisual(t)).done(e.proxy(function(e){e.id>0?e.activate():console.error(t+" visual is not found linked")},this)):(this.hide(),nextend.notificationCenter.error("Image field can not be empty!"))},t.NextendImageManager=i,n.prototype=Object.create(NextendVisualCore.prototype),n.prototype.constructor=n,n.prototype.setValue=function(e,t){this.base64=e,this.value=JSON.parse(Base64.decode(e))},n.prototype.activate=function(e){"undefined"!=typeof e&&e.preventDefault(),this.visualManager.changeActiveVisual(this),this.visualManager.controller.load(this,!1,this.visualManager.showParameters)},t.NextendImage=n}(n2,window),function(e,t){function i(){NextendVisualEditorControllerWithEditor.prototype.constructor.apply(this,arguments)}function n(){this.previews=null,this.desktopImage="",NextendVisualEditor.prototype.constructor.apply(this,arguments),this.fields={"desktop-size":{element:e("#n2-image-editordesktop-size"),events:{"nextendChange.n2-editor":e.proxy(this.changeSize,this,"desktop")}},"desktop-retina-image":{element:e("#n2-image-editordesktop-retina-image"),events:{"nextendChange.n2-editor":e.proxy(this.changeImage,this,"desktop-retina")}},"desktop-retina-size":{element:e("#n2-image-editordesktop-retina-size"),events:{"nextendChange.n2-editor":e.proxy(this.changeSize,this,"desktop-retina")}},"tablet-image":{element:e("#n2-image-editortablet-image"),events:{"nextendChange.n2-editor":e.proxy(this.changeImage,this,"tablet")}},"tablet-size":{element:e("#n2-image-editortablet-size"),events:{"nextendChange.n2-editor":e.proxy(this.changeSize,this,"tablet")}},"tablet-retina-image":{element:e("#n2-image-editortablet-retina-image"),events:{"nextendChange.n2-editor":e.proxy(this.changeImage,this,"tablet-retina")}},"tablet-retina-size":{element:e("#n2-image-editortablet-retina-size"),events:{"nextendChange.n2-editor":e.proxy(this.changeSize,this,"tablet-retina")}},"mobile-image":{element:e("#n2-image-editormobile-image"),events:{"nextendChange.n2-editor":e.proxy(this.changeImage,this,"mobile")}},"mobile-size":{element:e("#n2-image-editormobile-size"),events:{"nextendChange.n2-editor":e.proxy(this.changeSize,this,"mobile")}},"mobile-retina-image":{element:e("#n2-image-editormobile-retina-image"),events:{"nextendChange.n2-editor":e.proxy(this.changeImage,this,"mobile-retina")}},"mobile-retina-size":{element:e("#n2-image-editormobile-retina-size"),events:{"nextendChange.n2-editor":e.proxy(this.changeSize,this,"mobile-retina")}}},this.previews={desktop:e("#n2-image-editordesktop-preview"),"desktop-retina":e("#n2-image-editordesktop-retina-preview"),tablet:e("#n2-image-editortablet-preview"),"tablet-retina":e("#n2-image-editortablet-retina-preview"),mobile:e("#n2-image-editormobile-preview"),"mobile-retina":e("#n2-image-editormobile-retina-preview")};e(this.buttonGenerate()).on("click",e.proxy(this.generateImage,this,"tablet")).insertAfter(this.fields["tablet-image"].element.parent()),e(this.buttonGenerate()).on("click",e.proxy(this.generateImage,this,"mobile")).insertAfter(this.fields["mobile-image"].element.parent())}i.prototype=Object.create(NextendVisualEditorControllerWithEditor.prototype),i.prototype.constructor=i,i.prototype.loadDefaults=function(){NextendVisualEditorControllerWithEditor.prototype.loadDefaults.call(this),this.type="image",this.currentImage=""},i.prototype.get=function(e){return this.currentVisual},i.prototype.getEmptyVisual=function(){return{desktop:{size:"0|*|0"},"desktop-retina":{image:"",size:"0|*|0"},tablet:{image:"",size:"0|*|0"},"tablet-retina":{image:"",size:"0|*|0"},mobile:{image:"",size:"0|*|0"},"mobile-retina":{image:"",size:"0|*|0"}}},i.prototype.initEditor=function(){return new n},i.prototype._load=function(e,t,i){this.currentImage=e.visual.image,NextendVisualEditorControllerWithEditor.prototype._load.call(this,e.value,t,i)},i.prototype.loadToEditor=function(){this.currentVisual=e.extend({},this.getEmptyVisual(),this.currentVisual),this.editor.load(this.currentImage,this.currentVisual)},i.prototype.propertyChanged=function(e,t,i,n){this.isChanged=!0,this.currentVisual[t][i]=n},t.NextendImageEditorController=i,n.prototype=Object.create(NextendVisualEditor.prototype),n.prototype.constructor=n,n.prototype.load=function(t,i){this._off();for(var n in this.fields){var o=[n.substring(0,n.lastIndexOf("-")),n.substring(n.lastIndexOf("-")+1)];this.fields[n].element.data("field").insideChange(i[o[0]][o[1]])}this.desktopImage=t,this.makePreview("desktop",t),"0|*|0"==i.desktop.size&&this.getImageSize(t).done(e.proxy(function(e,t){this.fields["desktop-size"].element.data("field").insideChange(e+"|*|"+t)},this));for(var n in i)"undefined"!=typeof i[n].image&&this.makePreview(n,i[n].image);this._on()},n.prototype.changeImage=function(t,i,n){var o=n.element.val();this.makePreview(t,o)?this.getImageSize(o).done(e.proxy(function(e,i){this.fields[t+"-size"].element.data("field").insideChange(e+"|*|"+i)},this)):this.fields[t+"-size"].element.data("field").insideChange("0|*|0"),this.trigger(t,"image",o)},n.prototype.changeSize=function(e,t,i){this.trigger(e,"size",i.element.val())},n.prototype.makePreview=function(e,t){return t?(this.previews[e].html('<img style="max-width:100%; max-height: 300px;" src="'+nextend.imageHelper.fixed(t)+'" />'),!0):(this.previews[e].html(""),!1)},n.prototype.getImageSize=function(t){var i=e.Deferred(),n=new Image;return n.onload=function(){i.resolve(n.width,n.height)},n.src=nextend.imageHelper.fixed(t),(n.complete||4===n.readyState)&&n.onload(),i},n.prototype.buttonGenerate=function(){return'<a href="#" class="n2-button n2-button-normal n2-button-m n2-radius-s n2-button-grey n2-h5 n2-uc">'+n2_("Generate")+"</a>"},n.prototype.generateImage=function(t){var i=this.desktopImage;return""==i?(nextend.notificationCenter.error(n2_("Desktop image is empty!"),{timeout:3}),!1):NextendAjaxHelper.ajax({type:"POST",url:NextendAjaxHelper.makeAjaxUrl(nextend.imageManager.parameters.ajaxUrl,{nextendaction:"generateImage"}),data:{device:t,image:i},dataType:"json"}).done(e.proxy(function(e){var i=e.data.image;this.fields[t+"-image"].element.data("field").insideChange(nextend.imageHelper.make(i))},this))},n.prototype.trigger=function(e,t,i){this.$.trigger("change",[e,t,i])},t.NextendImageEditor=n}(n2,window),function(e,t){function i(){NextendVisualManagerSetsAndMore.prototype.constructor.apply(this,arguments)}function n(){NextendVisualWithSetRow.prototype.constructor.apply(this,arguments)}i.prototype=Object.create(NextendVisualManagerSetsAndMore.prototype),i.prototype.constructor=i,i.prototype.loadDefaults=function(){NextendVisualManagerSetsAndMore.prototype.loadDefaults.apply(this,arguments),this.type="style",this.labels={visual:n2_("style"),visuals:n2_("styles")},this.styleClassName2="",this.fontClassName="",this.fontClassName2=""},i.prototype.initController=function(){return new NextendStyleEditorController(this.parameters.renderer.modes)},i.prototype.addVisualUsage=function(e,t,i){if(parseInt(t)>0)return this._addLinkedStyle(e,t,i);try{return this._renderStaticStyle(e,t,i),!0}catch(n){return!1}},i.prototype._addLinkedStyle=function(t,i,n){var o=this.parameters.renderer.usedStyles,r=e.Deferred();return e.when(this.getVisual(i)).done(e.proxy(function(i){i.id>0?("undefined"==typeof n?"undefined"==typeof o[i.id]?(o[i.id]=[t],this.renderLinkedStyle(t,i,n)):-1==e.inArray(t,o[i.id])&&(o[i.id].push(t),this.renderLinkedStyle(t,i,n)):this.renderLinkedStyle(t,i,n),r.resolve(!0)):r.resolve(!1)},this)).fail(function(){r.resolve(!1)}),r},i.prototype.renderLinkedStyle=function(e,t,i){"undefined"==typeof i&&(i=this.parameters.renderer.pre),nextend.css.add(this.renderer.getCSS(e,i,"."+this.getClass(t.id,e),t.value,{deleteRule:!0}))},i.prototype._renderStaticStyle=function(e,t,i){"undefined"==typeof i&&(i=this.parameters.renderer.pre);var n=t;"{"!=n[0]&&(n=Base64.decode(n)),nextend.css.add(this.renderer.getCSS(e,i,"."+this.getClass(t,e),JSON.parse(n).data,{}))},i.prototype.removeUsedStyle=function(t,i){var n=this.parameters.renderer.usedStyles;if("undefined"!=typeof n[i]){var o=e.inArray(t,n[i]);o>-1&&n[i].splice(o,1)}},i.prototype.getClass=function(e,t){return parseInt(e)>0?"n2-style-"+e+"-"+t:""==e?"":"n2-style-"+md5(e)+"-"+t},i.prototype.createVisual=function(e,t){return new n(e,t,this)},i.prototype.setConnectedStyle=function(t){this.styleClassName2=e("#"+t).data("field").renderStyle()},i.prototype.setConnectedFont=function(t){this.fontClassName=e("#"+t).data("field").renderFont()},i.prototype.setConnectedFont2=function(t){this.fontClassName2=e("#"+t).data("field").renderFont()},t.NextendStyleManager=i,n.prototype=Object.create(NextendVisualWithSetRow.prototype),n.prototype.constructor=n,n.prototype.removeRules=function(){var e=this.isUsed();if(e)for(var t=0;t<e.length;t++)this.visualManager.removeRules(e[t],this)},n.prototype.render=function(){var e=this.isUsed();if(e)for(var t=0;t<e.length;t++)this.visualManager.renderLinkedStyle(e[t],this)},n.prototype.isUsed=function(){return"undefined"!=typeof this.visualManager.parameters.renderer.usedStyles[this.id]?this.visualManager.parameters.renderer.usedStyles[this.id]:!1},t.NextendStyle=n}(n2,window),function($,scope){function NextendStyleEditorController(){NextendVisualEditorController.prototype.constructor.apply(this,arguments),this.preview=$("#n2-style-editor-preview").css("fontSize","16px"),this.initBackgroundColor()}function NextendStyleEditor(){NextendVisualEditor.prototype.constructor.apply(this,arguments),this.fields={backgroundColor:{element:$("#n2-style-editorbackgroundcolor"),events:{"nextendChange.n2-editor":$.proxy(this.changeBackgroundColor,this)}},opacity:{element:$("#n2-style-editoropacity"),events:{"outsideChange.n2-editor":$.proxy(this.changeOpacity,this)}},padding:{element:$("#n2-style-editorpadding"),events:{"outsideChange.n2-editor":$.proxy(this.changePadding,this)}},boxShadow:{element:$("#n2-style-editorboxshadow"),events:{"outsideChange.n2-editor":$.proxy(this.changeBoxShadow,this)}},border:{element:$("#n2-style-editorborder"),events:{"outsideChange.n2-editor":$.proxy(this.changeBorder,this)}},borderRadius:{element:$("#n2-style-editorborderradius"),events:{"outsideChange.n2-editor":$.proxy(this.changeBorderRadius,this)}},extracss:{element:$("#n2-style-editorextracss"),events:{"outsideChange.n2-editor":$.proxy(this.changeExtraCSS,this)}}}}function NextendStyleRenderer(){NextendVisualRenderer.prototype.constructor.apply(this,arguments)}NextendStyleEditorController.prototype=Object.create(NextendVisualEditorController.prototype),NextendStyleEditorController.prototype.constructor=NextendStyleEditorController,NextendStyleEditorController.prototype.loadDefaults=function(){NextendVisualEditorController.prototype.loadDefaults.call(this),this.type="style",this.preview=null},NextendStyleEditorController.prototype.initPreviewModes=function(){this.previewModes={2:[this.previewModesList.button,this.previewModesList.box],3:[this.previewModesList.paragraph]}},NextendStyleEditorController.prototype.initRenderer=function(){return new NextendStyleRenderer(this)},NextendStyleEditorController.prototype.initEditor=function(){return new NextendStyleEditor},NextendStyleEditorController.prototype._load=function(e,t,i){e.length&&(e[0]=$.extend({},this.getEmptyStyle(),e[0])),NextendVisualEditorController.prototype._load.call(this,e,t,i)},NextendStyleEditorController.prototype.asyncVisualData=function(e,t,i){e.length&&(e[0]=$.extend({},this.getEmptyStyle(),e[0])),NextendVisualEditorController.prototype.asyncVisualData.call(this,e,t,i)},NextendStyleEditorController.prototype.getEmptyStyle=function(){return{backgroundcolor:"ffffff00",opacity:100,padding:"0|*|0|*|0|*|0|*|px",boxshadow:"0|*|0|*|0|*|0|*|000000ff",border:"0|*|solid|*|000000ff",borderradius:"0",extra:""}},NextendStyleEditorController.prototype.getCleanVisual=function(){return{extra:""}},NextendStyleEditorController.prototype.getEmptyVisual=function(){return[this.getEmptyStyle()]},NextendStyleEditorController.prototype.initBackgroundColor=function(){new N2Classes.FormElementText("n2-style-editor-background-color"),new N2Classes.FormElementColor("n2-style-editor-background-color",0);var e=this.lightbox.find(".n2-editor-preview-box");$("#n2-style-editor-background-color").on("nextendChange",function(){e.css("background","#"+$(this).val())})},NextendStyleEditorController.prototype._renderPreview=function(){NextendVisualEditorController.prototype._renderPreview.call(this),this.addStyle(this.renderer.getCSS(this.currentPreviewMode,"","."+this.getPreviewCssClass(),this.currentVisual,{activeTab:this.currentTabIndex}))},NextendStyleEditorController.prototype.setPreview=function(mode){var html="";html="undefined"!=typeof this.localModePreview[mode]&&""!=this.localModePreview[mode]?this.localModePreview[mode]:this.previewModesList[mode].preview;var styleClassName=this.getPreviewCssClass(),fontClassName=nextend.styleManager.fontClassName,fontClassName2=nextend.styleManager.fontClassName2,styleClassName2=nextend.styleManager.styleClassName2;html=html.replace(/\{([^]*?)\}/g,function(match,script){return eval(script)}),this.preview.html(html)},NextendStyleEditorController.prototype.getPreviewCssClass=function(){return"n2-"+this.type+"-editor-preview"},scope.NextendStyleEditorController=NextendStyleEditorController,NextendStyleEditor.prototype=Object.create(NextendVisualEditor.prototype),NextendStyleEditor.prototype.constructor=NextendStyleEditor,NextendStyleEditor.prototype.load=function(e){this._off(),this.fields.backgroundColor.element.data("field").insideChange(e.backgroundcolor),this.fields.opacity.element.data("field").insideChange(e.opacity),this.fields.padding.element.data("field").insideChange(e.padding),this.fields.boxShadow.element.data("field").insideChange(e.boxshadow),this.fields.border.element.data("field").insideChange(e.border),this.fields.borderRadius.element.data("field").insideChange(e.borderradius),this.fields.extracss.element.data("field").insideChange(e.extra),this._on()},NextendStyleEditor.prototype.changeBackgroundColor=function(){this.trigger("backgroundcolor",this.fields.backgroundColor.element.val())},NextendStyleEditor.prototype.changeOpacity=function(){this.trigger("opacity",this.fields.opacity.element.val())},NextendStyleEditor.prototype.changePadding=function(){this.trigger("padding",this.fields.padding.element.val())},NextendStyleEditor.prototype.changeBoxShadow=function(){this.trigger("boxshadow",this.fields.boxShadow.element.val())},NextendStyleEditor.prototype.changeBorder=function(){this.trigger("border",this.fields.border.element.val())},NextendStyleEditor.prototype.changeBorderRadius=function(){this.trigger("borderradius",this.fields.borderRadius.element.val())},NextendStyleEditor.prototype.changeExtraCSS=function(){this.trigger("extra",this.fields.extracss.element.val())},scope.NextendStyleEditor=NextendStyleEditor,NextendStyleRenderer.prototype=Object.create(NextendVisualRenderer.prototype),NextendStyleRenderer.prototype.constructor=NextendStyleRenderer,NextendStyleRenderer.prototype.getCSS=function(e,t,i,n,o){return n[0]=$.extend(this.editorController.getEmptyStyle(),n[0]),NextendVisualRenderer.prototype.getCSS.call(this,e,t,i,n,o)},NextendStyleRenderer.prototype.makeStylebackgroundcolor=function(e,t){t.background="#"+e.substr(0,6)+";\n background: "+N2Color.hex2rgbaCSS(e)},NextendStyleRenderer.prototype.makeStyleopacity=function(e,t){t.opacity=parseInt(e)/100},NextendStyleRenderer.prototype.makeStylepadding=function(e,t){for(var i=e.split("|*|"),n=i.pop(),o=0;o<i.length;o++)i[o]+=n;t.padding=i.join(" ")},NextendStyleRenderer.prototype.makeStyleboxshadow=function(e,t){var i=e.split("|*|");"0"==i[0]&&"0"==i[1]&&"0"==i[2]&&"0"==i[3]?t.boxShadow="none":t.boxShadow=i[0]+"px "+i[1]+"px "+i[2]+"px "+i[3]+"px "+N2Color.hex2rgbaCSS(i[4])},NextendStyleRenderer.prototype.makeStyleborder=function(e,t){var i=e.split("|*|");t.borderWidth=i[0]+"px",t.borderStyle=i[1],t.borderColor="#"+i[2].substr(0,6)+";\n border-color:"+N2Color.hex2rgbaCSS(i[2])},NextendStyleRenderer.prototype.makeStyleborderradius=function(e,t){var i=e.split("|*|");i.push(""),t.borderRadius=e+"px"},NextendStyleRenderer.prototype.makeStyleextra=function(e,t){t.raw=e}}(n2,window),function(e,t){function i(t,i,n){this.style=t,this.subset=i,this.fonts=n,e(window).on("n2Family",e.proxy(this.loadFamily,this))}i.prototype.loadFamily=function(t,i){i=i.toLowerCase(),"undefined"!=typeof this.fonts[i]&&e("<link />").attr({rel:"stylesheet",type:"text/css",href:"//fonts.googleapis.com/css?family="+encodeURIComponent(this.fonts[i]+":"+this.style)+"&subset="+encodeURIComponent(this.subset)}).appendTo(e("head"))},t.NextendFontServiceGoogle=i}(n2,window);
1
  !function(e,t){function i(t){this.loadDefaults(),this.$=e(this),window.nextend[this.type+"Manager"]=this,this.modals=this.initModals(),this.lightbox=e("#n2-lightbox-"+this.type),this.notificationStack=new NextendNotificationCenterStack(this.lightbox.find(".n2-top-bar")),this.visualListContainer=this.lightbox.find(".n2-lightbox-sidebar-list"),this.parameters=t,this.visuals={},this.controller=this.initController(),this.controller&&(this.renderer=this.controller.renderer),this.firstLoadVisuals(t.visuals),e(".n2-"+this.type+"-save-as-new").on("click",e.proxy(this.saveAsNew,this)),this.cancelButton=e("#n2-"+this.type+"-editor-cancel").on("click",e.proxy(this.hide,this)),this.saveButton=e("#n2-"+this.type+"-editor-save").off("click").on("click",e.proxy(this.setVisual,this))}function n(){i.prototype.constructor.apply(this,arguments)}function o(){n.prototype.constructor.apply(this,arguments)}function r(){o.prototype.constructor.apply(this,arguments),this.linkedButton=e("#n2-"+this.type+"-editor-set-as-linked"),this.setMode(0)}function a(t){window.nextend[this.type+"Manager"]=this,this._lateInit=e.proxy(function(e){n.prototype.constructor.call(this,e)},this,t)}function s(e,t){this.id=e.id,this.visualManager=t,this.setValue(e.value,!1),this.visual=e,this.visualManager.visuals[this.id]=this}function l(e,t,i){this.set=t,s.prototype.constructor.call(this,e,i)}function d(){l.prototype.constructor.apply(this,arguments)}function h(e,t,i){this.checked=!1,e.system=1,e.editable=0,d.prototype.constructor.apply(this,arguments)}i.prototype.setTitle=function(e){this.lightbox.find(".n2-logo").html(e)},i.prototype.loadDefaults=function(){this.mode="linked",this.labels={visual:n2_("visual"),visuals:n2_("visuals")},this.visualLoadDeferreds={},this.showParameters=!1},i.prototype.initModals=function(){return new NextendVisualManagerModals(this)},i.prototype.firstLoadVisuals=function(e){for(var t in e)this.sets[t].loadVisuals(e[t])},i.prototype.initController=function(){},i.prototype.getVisual=function(t){if(parseInt(t)>0){if("undefined"!=typeof this.visuals[t])return this.visuals[t];if("undefined"!=typeof this.visualLoadDeferreds[t])return this.visualLoadDeferreds[t];var i=e.Deferred();return this.visualLoadDeferreds[t]=i,this._loadVisualFromServer(t).done(e.proxy(function(){i.resolve(this.visuals[t]),delete this.visualLoadDeferreds[t]},this)).fail(e.proxy(function(){i.resolve({id:-1,name:n2_("Empty")}),delete this.visualLoadDeferreds[t]},this)),i}try{var n=t;return"{"!=n[0]&&(n=Base64.decode(n)),JSON.parse(n),{id:0,name:n2_("Static")}}catch(o){return{id:-1,name:n2_("Empty")}}},i.prototype._loadVisualFromServer=function(t){return NextendAjaxHelper.ajax({type:"POST",url:NextendAjaxHelper.makeAjaxUrl(this.parameters.ajaxUrl,{nextendaction:"loadVisual"}),data:{visualId:t},dataType:"json"}).done(e.proxy(function(e){},this))},i.prototype.show=function(t,i,n){NextendEsc.add(e.proxy(function(){return this.hide(),!0},this)),this.notificationStack.enableStack(),this.showParameters=e.extend({previewMode:!1,previewHTML:!1},n),e("body").css("overflow","hidden"),this.lightbox.css("display","block"),e(window).on("resize."+this.type+"Manager",e.proxy(this.resize,this)),this.resize(),this.loadDataToController(t),this.controller.show(),this.$.on("save",i),this._show()},i.prototype._show=function(){e(":focus").blur(),e(window).on({"keydown.visual":e.proxy(function(e){"TEXTAREA"!=e.target.tagName&&"INPUT"!=e.target.tagName&&13==e.keyCode&&this.saveButton.trigger("click")},this)})},i.prototype.setAndClose=function(e){this.$.trigger("save",[e])},i.prototype.hide=function(t){this.controller.pause(),this.notificationStack.popStack(),"undefined"!=typeof t&&(t.preventDefault(),NextendEsc.pop()),this.controller.close(),this.$.off("save"),e(window).off("resize."+this.type+"Manager"),e("body").css("overflow",""),this.lightbox.css("display","none"),e(window).off("keydown.visual")},i.prototype.resize=function(){var e=this.lightbox.height(),t=this.lightbox.find(".n2-sidebar");t.find(".n2-lightbox-sidebar-list").height(e-1-t.find(".n2-logo").outerHeight()-t.find(".n2-sidebar-row").outerHeight()-t.find(".n2-save-as-new-container").parent().height());var i=this.lightbox.find(".n2-content-area");i.height(e-1-i.siblings(".n2-top-bar, .n2-table").outerHeight())},i.prototype.getDataFromController=function(t,i,n){return this.showParameters=e.extend({previewMode:!1,previewHTML:!1},i),this.loadDataToController(t,n)},i.prototype.loadDataToController=function(t){this.isVisualData(t)?e.when(this.getVisual(t)).done(e.proxy(function(e){e.id>0?e.activate():console.error(t+" visual is not found linked")},this)):console.error(t+" visual not found")},i.prototype.isVisualData=function(e){return parseInt(e)>0},i.prototype.setVisual=function(e){switch(e.preventDefault(),this.mode){case 0:break;case"static":this.modals.getLinkedOverwriteOrSaveAs().show("saveAsNew");break;case"linked":default:this.activeVisual?this.activeVisual.compare(this.controller.get("set"))?(this.setAndClose(this.activeVisual.id),this.hide(e)):this.activeVisual&&!this.activeVisual.isEditable()?this.modals.getLinkedOverwriteOrSaveAs().show("saveAsNew"):this.modals.getLinkedOverwriteOrSaveAs().show():this.modals.getLinkedOverwriteOrSaveAs().show("saveAsNew")}},i.prototype.saveAsNew=function(e){e.preventDefault(),this.modals.getSaveAs().show()},i.prototype._saveAsNew=function(t){return NextendAjaxHelper.ajax({type:"POST",url:NextendAjaxHelper.makeAjaxUrl(this.parameters.ajaxUrl,{nextendaction:"addVisual"}),data:{setId:this.setsSelector.val(),value:Base64.encode(JSON.stringify({name:t,data:this.controller.get("saveAsNew")}))},dataType:"json"}).done(e.proxy(function(e){var t=e.data.visual;this.changeActiveVisual(this.sets[t.referencekey].addVisual(t))},this))},i.prototype.saveActiveVisual=function(t){return NextendAjaxHelper.ajax({type:"POST",url:NextendAjaxHelper.makeAjaxUrl(this.parameters.ajaxUrl,{nextendaction:"changeVisual"}),data:{visualId:this.activeVisual.id,value:this.getBase64(t)},dataType:"json"}).done(e.proxy(function(e){this.activeVisual.setValue(e.data.visual.value,!0)},this))},i.prototype.changeActiveVisual=function(e){this.activeVisual&&(this.activeVisual.notActive(),this.activeVisual=!1),e&&("static"==this.mode&&this.setMode("linked"),e.active(),this.activeVisual=e)},i.prototype.getBase64=function(e){return Base64.encode(JSON.stringify({name:e,data:this.controller.get("set")}))},i.prototype.removeRules=function(e,t){this.renderer.deleteRules(e,this.parameters.renderer.pre,"."+this.getClass(t.id,e))},t.NextendVisualManagerCore=i,n.prototype=Object.create(i.prototype),n.prototype.constructor=n,n.prototype.firstLoadVisuals=function(t){this.sets={},this.setsByReference={},this.setsSelector=e("#"+this.parameters.setsIdentifier+"sets_select");for(var i=0;i<this.parameters.sets.length;i++)this.newVisualSet(this.parameters.sets[i]);this.initSetsManager();for(var n in t)this.sets[n].loadVisuals(t[n]);this.activeSet=this.sets[this.setsSelector.val()],this.activeSet.active(),this.setsSelector.on("change",e.proxy(function(){this.activeSet.notActive(),this.activeSet=this.sets[this.setsSelector.val()],this.activeSet.active()},this))},n.prototype.initSetsManager=function(){new NextendVisualSetsManager(this)},n.prototype._loadVisualFromServer=function(t){return NextendAjaxHelper.ajax({type:"POST",url:NextendAjaxHelper.makeAjaxUrl(this.parameters.ajaxUrl,{nextendaction:"loadSetByVisualId"}),data:{visualId:t},dataType:"json"}).done(e.proxy(function(e){this.sets[e.data.set.setId].loadVisuals(e.data.set.visuals)},this))},n.prototype.changeSet=function(e){this.setsSelector.val()!=e&&this.setsSelector.val(e).trigger("change")},n.prototype.changeSetById=function(e){"undefined"!=typeof this.sets[e]&&this.changeSet(e)},n.prototype.newVisualSet=function(e){return new NextendVisualSet(e,this)},t.NextendVisualManagerVisibleSets=n,o.prototype=Object.create(n.prototype),o.prototype.constructor=o,o.prototype.initSetsManager=function(){new NextendVisualSetsManagerEditable(this)},t.NextendVisualManagerEditableSets=o,r.prototype=Object.create(o.prototype),r.prototype.constructor=r,r.prototype.setMode=function(t){if("static"==t&&this.changeActiveVisual(null),this.mode!=t){switch(t){case 0:this.cancelButton.css("display","none"),this.saveButton.off("click");break;case"static":default:this.cancelButton.css("display","inline-block"),this.saveButton.off("click").on("click",e.proxy(this.setVisualAsStatic,this)),this.linkedButton.off("click").on("click",e.proxy(this.setVisualAsLinked,this))}this.mode=t}},r.prototype.loadDataToController=function(t,i){if(parseInt(t)>0)e.when(this.getVisual(t)).done(e.proxy(function(e){e.id>0?(this.setMode("linked"),e.activate(!1,i)):(this.setMode("static"),"function"==typeof i?this.controller.asyncVisualData("",this.showParameters,i):this.controller.load("",!1,this.showParameters))},this));else{var n="";this.setMode("static");try{n=this.getStaticData(t)}catch(o){}"function"==typeof i?this.controller.asyncVisualData(n,this.showParameters,i):this.controller.load(n,!1,this.showParameters)}},r.prototype.getStaticData=function(e){var t=e;"{"!=t[0]&&(t=Base64.decode(t));var i=JSON.parse(t).data;return"undefined"==typeof i?"":i},r.prototype.setVisualAsLinked=function(e){this.setVisual(e)},r.prototype.setVisualAsStatic=function(e){e.preventDefault(),this.setAndClose(this.getBase64(n2_("Static"))),this.hide(e)},t.NextendVisualManagerSetsAndMore=r,a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.prototype.lateInit=function(){this.inited||(this.inited=!0,this._lateInit())},a.prototype.show=function(t,i,n){this.lateInit(),this.notificationStack.enableStack(),NextendEsc.add(e.proxy(function(){return this.hide(),!0},this)),e("body").css("overflow","hidden"),this.lightbox.css("display","block"),e(window).on("resize."+this.type+"Manager",e.proxy(this.resize,this)),this.resize();var o=0;if(""!=t)for(var r=t.split("||"),a=!1;o<r.length;o++)e.when(this.getVisual(r[o])).done(function(e){e&&e.check&&(e.check(),a||(a=!0,e.activate()))});this.$.on("save",i),this.controller.start(n),0==o&&e.when(this.activeSet._loadVisuals()).done(e.proxy(function(){for(var e in this.activeSet.visuals){this.activeSet.visuals[e].activate();break}},this)),this._show()},a.prototype.setVisual=function(e){e.preventDefault(),this.setAndClose(this.getAsString()),this.hide(e)},a.prototype.getAsString=function(){var e=[];for(var t in this.sets){var i=this.sets[t];for(var n in i.visuals)i.visuals[n].checked&&e.push(i.visuals[n].id)}return 0==e.length&&this.activeVisual&&e.push(this.activeVisual.id),e.join("||")},a.prototype.hide=function(e){n.prototype.hide.apply(this,arguments);for(var t in this.sets){var i=this.sets[t];for(var o in i.visuals)i.visuals[o].unCheck()}},t.NextendVisualManagerMultipleSelection=a,s.prototype.compare=function(e){for(var t=Math.max(this.value.length,e.length),i=0;t>i;i++)if(!this._compareTab("undefined"==typeof this.value[i]?{}:this.value[i],"undefined"==typeof e[i]?{}:e[i]))return!1;return!0},s.prototype._compareTab=function(e,t){var i=Object.getOwnPropertyNames(e),n=Object.getOwnPropertyNames(t);if(0===e.length&&0===n.length)return!0;if(i.length!=n.length)return!1;for(var o=0;o<i.length;o++){var r=i[o];if(e[r]!==t[r])return!1}return!0},s.prototype.setValue=function(e,t){var i=null;if("string"==typeof e){var n=e;"{"!=n[0]?(this.base64=n,n=Base64.decode(n)):this.base64=Base64.encode(n),i=JSON.parse(n)}else i=e;this.name=i.name,this.value=i.data,t&&this.render()},s.prototype.isSystem=function(){return 1==this.visual.system},s.prototype.isEditable=function(){return 1==this.visual.editable},s.prototype.activate=function(e,t){e&&e.preventDefault(),this.visualManager.changeActiveVisual(this),"function"==typeof t?this.visualManager.controller.asyncVisualData(this.value,this.visualManager.showParameters,t):this.visualManager.controller.load(this.value,!1,this.visualManager.showParameters)},s.prototype.active=function(){},s.prototype.notActive=function(){},s.prototype["delete"]=function(t){t&&t.preventDefault(),NextendDeleteModal("n2-visual",this.name,e.proxy(function(){this._delete()},this))},s.prototype._delete=function(){return NextendAjaxHelper.ajax({type:"POST",url:NextendAjaxHelper.makeAjaxUrl(this.visualManager.parameters.ajaxUrl,{nextendaction:"deleteVisual"}),data:{visualId:this.id},dataType:"json"}).done(e.proxy(function(e){e.data.visual;this.visualManager.activeVisual&&this.id==this.visualManager.activeVisual.id&&this.visualManager.changeActiveVisual(null),this.removeRules(),delete this.visualManager.visuals[this.id],delete this.set.visuals[this.id],this.row.remove(),this.visualManager.$.trigger("visualDelete",[this.id])},this))},s.prototype.removeRules=function(){},s.prototype.render=function(){},s.prototype.isUsed=function(){return!1},t.NextendVisualCore=s,l.prototype=Object.create(s.prototype),l.prototype.constructor=l,l.prototype.active=function(){var e=this.set.set.id;this.visualManager.changeSet(e),s.prototype.active.call(this)},t.NextendVisualWithSet=l,d.prototype=Object.create(l.prototype),d.prototype.constructor=d,d.prototype.createRow=function(){return this.row=e("<li></li>").append(e('<a href="#">'+this.name+"</a>").on("click",e.proxy(this.activate,this))),this.isSystem()||this.row.append(e('<span class="n2-actions"></span>').append(e('<div class="n2-button n2-button-icon n2-button-s" href="#"><i class="n2-i n2-i-delete n2-i-grey-opacity"></i></div>').on("click",e.proxy(this["delete"],this)))),this.row},d.prototype.setValue=function(e,t){l.prototype.setValue.call(this,e,t),this.row&&this.row.find("> a").html(this.name)},d.prototype.active=function(){this.row.addClass("n2-active"),l.prototype.active.call(this)},d.prototype.notActive=function(){this.row.removeClass("n2-active"),l.prototype.notActive.call(this)},t.NextendVisualWithSetRow=d,h.prototype=Object.create(d.prototype),h.prototype.constructor=h,h.prototype.createRow=function(){var t=d.prototype.createRow.call(this);return this.checkbox=e('<div class="n2-list-checkbox"><i class="n2-i n2-i-tick"></i></div>').on("click",e.proxy(this.checkOrUnCheck,this)).prependTo(t.find("a")),t},h.prototype.setValue=function(e,t){this.name=e.name,this.value=e.data,this.row&&this.row.find("> a").html(this.name),t&&this.render()},h.prototype.activate=function(e,t){e&&e.preventDefault(),this.visualManager.changeActiveVisual(this),this.visualManager.controller.setAnimationProperties(this.value)},h.prototype.checkOrUnCheck=function(e){e.preventDefault(),e.stopPropagation(),this.checked?this.unCheck():this.check()},h.prototype.check=function(){this.checked=!0,this.checkbox.addClass("n2-active"),this.activate()},h.prototype.unCheck=function(){this.checked=!1,this.checkbox.removeClass("n2-active"),this.activate()},t.NextendVisualWithSetRowMultipleSelection=h}(n2,window),function(e,t){function i(e){this.visualManager=e,this.linkedOverwriteOrSaveAs=null,this.saveAs=null}i.prototype.getLinkedOverwriteOrSaveAs=function(){if(null==this.linkedOverwriteOrSaveAs){var t=this;this.linkedOverwriteOrSaveAs=new NextendModal({zero:{size:[500,140],title:"",back:!1,close:!0,content:"",controls:['<a href="#" class="n2-button n2-button-normal n2-button-l n2-radius-s n2-button-grey n2-uc n2-h4">'+n2_("Save as new")+"</a>",'<a href="#" class="n2-button n2-button-normal n2-button-l n2-radius-s n2-button-green n2-uc n2-h4">'+n2_("Overwrite current")+"</a>"],fn:{show:function(){this.title.html(n2_printf(n2_("%s changed - %s"),t.visualManager.labels.visual,t.visualManager.activeVisual.name)),t.visualManager.activeVisual&&!t.visualManager.activeVisual.isEditable()?this.loadPane("saveAsNew"):(this.controls.find(".n2-button-green").on("click",e.proxy(function(i){i.preventDefault(),t.visualManager.saveActiveVisual(t.visualManager.activeVisual.name).done(e.proxy(function(){this.hide(i),t.visualManager.setAndClose(t.visualManager.activeVisual.id),t.visualManager.hide()},this))},this)),this.controls.find(".n2-button-grey").on("click",e.proxy(function(e){e.preventDefault(),this.loadPane("saveAsNew")},this)))}}},saveAsNew:{size:[500,220],title:n2_("Save as"),back:"zero",close:!0,content:'<form class="n2-form"></form>',controls:['<a href="#" class="n2-button n2-button-normal n2-button-l n2-radius-s n2-button-green n2-uc n2-h4">'+n2_("Save as new")+"</a>"],fn:{show:function(){var i=this.controls.find(".n2-button"),n=(this.content.find(".n2-form").on("submit",function(e){e.preventDefault(),i.trigger("click")}).append(this.createInput(n2_("Name"),"n2-visual-name","width: 446px;")),this.content.find("#n2-visual-name").focus());t.visualManager.activeVisual&&n.val(t.visualManager.activeVisual.name),i.on("click",e.proxy(function(i){i.preventDefault();var o=n.val();""==o?nextend.notificationCenter.error(n2_("Please fill the name field!")):t.visualManager._saveAsNew(o).done(e.proxy(function(){this.hide(i),t.visualManager.setAndClose(t.visualManager.activeVisual.id),t.visualManager.hide()},this))},this))}}}},!1)}return this.linkedOverwriteOrSaveAs},i.prototype.getSaveAs=function(){if(null===this.saveAs){var t=this;this.saveAs=new NextendModal({zero:{size:[500,220],title:n2_("Save as"),back:!1,close:!0,content:'<form class="n2-form"></form>',controls:['<a href="#" class="n2-button n2-button-normal n2-button-l n2-radius-s n2-button-green n2-uc n2-h4">'+n2_("Save as new")+"</a>"],fn:{show:function(){var i=this.controls.find(".n2-button"),n=(this.content.find(".n2-form").on("submit",function(e){e.preventDefault(),i.trigger("click")}).append(this.createInput(n2_("Name"),"n2-visual-name","width: 446px;")),this.content.find("#n2-visual-name").focus());t.visualManager.activeVisual&&n.val(t.visualManager.activeVisual.name),i.on("click",e.proxy(function(i){i.preventDefault();var o=n.val();""==o?nextend.notificationCenter.error(n2_("Please fill the name field!")):t.visualManager._saveAsNew(o).done(e.proxy(this.hide,this,i))},this))}}}},!1)}return this.saveAs},t.NextendVisualManagerModals=i}(n2,window),function(e,t){function i(t){this.visualManager=t,this.$=e(this)}function n(t){this.modal=null,i.prototype.constructor.apply(this,arguments),this.$.on({setAdded:function(e,i){new o(i,t)},setChanged:function(e,i){t.sets[i.id].rename(i.value)},setDeleted:function(e,i){t.sets[i.id]["delete"](),t.setsSelector.trigger("change")}}),this.manageButton=e("#"+t.parameters.setsIdentifier+"-manage").on("click",e.proxy(this.showManageSets,this))}function o(t,i){this.set=t,this.visualManager=i,this.visualList=e('<ul class="n2-list n2-h4"></ul>'),this.visualManager.sets[t.id]=this,""!=t.referencekey&&(this.visualManager.setsByReference[t.referencekey]=t),this.option=e('<option value="'+t.id+'">'+t.value+"</option>").appendTo(this.visualManager.setsSelector)}t.NextendVisualSetsManager=i,n.prototype=Object.create(i.prototype),n.prototype.constructor=n,n.prototype.isSetAllowedToEdit=function(e){return-1!=e&&"undefined"!=typeof this.visualManager.sets[e]&&0!=this.visualManager.sets[e].set.editable},n.prototype.createVisualSet=function(t){return NextendAjaxHelper.ajax({type:"POST",url:NextendAjaxHelper.makeAjaxUrl(this.visualManager.parameters.ajaxUrl,{nextendaction:"createSet"}),data:{name:t},dataType:"json"}).done(e.proxy(function(e){this.$.trigger("setAdded",e.data.set)},this))},n.prototype.renameVisualSet=function(t,i){return NextendAjaxHelper.ajax({type:"POST",url:NextendAjaxHelper.makeAjaxUrl(this.visualManager.parameters.ajaxUrl,{nextendaction:"renameSet"}),data:{setId:t,name:i},dataType:"json"}).done(e.proxy(function(e){this.$.trigger("setChanged",e.data.set),nextend.notificationCenter.success(n2_("Set renamed"))},this))},n.prototype.deleteVisualSet=function(t){var i=e.Deferred(),n=this.visualManager.sets[t],o=[];return e.when(n._loadVisuals()).done(e.proxy(function(){for(var r in n.visuals)o.push(n.visuals[r]._delete());e.when.apply(e,o).then(e.proxy(function(){NextendAjaxHelper.ajax({type:"POST",url:NextendAjaxHelper.makeAjaxUrl(this.visualManager.parameters.ajaxUrl,{nextendaction:"deleteSet"}),data:{setId:t},dataType:"json"}).done(e.proxy(function(e){i.resolve(),this.$.trigger("setDeleted",e.data.set)},this))},this))},this)).fail(function(){i.reject()}),i.fail(function(){nextend.notificationCenter.error(n2_("Unable to delete the set"))})},n.prototype.showManageSets=function(){var t=this.visualManager,i=this;null===this.modal&&(this.modal=new NextendModal({zero:{size:[500,390],title:n2_("Sets"),back:!1,close:!0,content:"",controls:['<a href="#" class="n2-add-new n2-button n2-button-normal n2-button-l n2-radius-s n2-button-green n2-uc n2-h4">'+n2_("Add new")+"</a>"],fn:{show:function(){this.title.html(n2_printf(n2_("%s sets"),t.labels.visual)),this.createHeading(n2_("Sets")).appendTo(this.content);var n=[];for(var o in t.sets){var r=t.sets[o].set.id;i.isSetAllowedToEdit(r)?n.push([t.sets[o].set.value,e('<div class="n2-button n2-button-normal n2-button-xs n2-radius-s n2-button-grey n2-uc n2-h5">'+n2_("Rename")+"</div>").on("click",{id:r},e.proxy(function(e){this.loadPane("rename",!1,!1,[e.data.id])},this)),e('<div class="n2-button n2-button-normal n2-button-xs n2-radius-s n2-button-red n2-uc n2-h5">'+n2_("Delete")+"</div>").on("click",{id:r},e.proxy(function(e){this.loadPane("delete",!1,!1,[e.data.id])},this))]):n.push([t.sets[o].set.value,"",""])}this.createTable(n,["width:100%;","",""]).appendTo(this.createTableWrap().appendTo(this.content)),this.controls.find(".n2-add-new").on("click",e.proxy(function(e){e.preventDefault(),this.loadPane("addNew")},this))}}},addNew:{title:n2_("Create set"),size:[500,220],back:"zero",close:!0,content:'<form class="n2-form"></form>',controls:['<a href="#" class="n2-button n2-button-normal n2-button-l n2-radius-s n2-button-green n2-uc n2-h4">'+n2_("Add")+"</a>"],fn:{show:function(){var n=this.controls.find(".n2-button"),o=(this.content.find(".n2-form").on("submit",function(e){e.preventDefault(),n.trigger("click")}).append(this.createInput(n2_("Name"),"n2-visual-name","width: 446px;")),this.content.find("#n2-visual-name").focus());n.on("click",e.proxy(function(n){var r=o.val();""==r?nextend.notificationCenter.error(n2_("Please fill the name field!")):i.createVisualSet(r).done(e.proxy(function(e){this.hide(n),nextend.notificationCenter.success(n2_("Set added")),t.setsSelector.val(e.data.set.id).trigger("change")},this))},this))}}},rename:{title:n2_("Rename set"),size:[500,220],back:"zero",close:!0,content:'<form class="n2-form"></form>',controls:['<a href="#" class="n2-button n2-button-normal n2-button-l n2-radius-s n2-button-green n2-uc n2-h4">'+n2_("Rename")+"</a>"],fn:{show:function(n){var o=this.controls.find(".n2-button"),r=(this.content.find(".n2-form").on("submit",function(e){e.preventDefault(),o.trigger("click")}).append(this.createInput(n2_("Name"),"n2-visual-name","width: 446px;")),this.content.find("#n2-visual-name").val(t.sets[n].set.value).focus());o.on("click",e.proxy(function(){var t=r.val();""==t?nextend.notificationCenter.error(n2_("Please fill the name field!")):i.renameVisualSet(n,t).done(e.proxy(this.goBack,this))},this))}}},"delete":{title:n2_("Delete set"),size:[500,190],back:"zero",close:!0,content:"",controls:['<a href="#" class="n2-button n2-button-normal n2-button-l n2-radius-s n2-button-grey n2-uc n2-h4">'+n2_("Cancel")+"</a>",'<a href="#" class="n2-button n2-button-normal n2-button-l n2-radius-s n2-button-red n2-uc n2-h4">'+n2_("Yes")+"</a>"],fn:{show:function(n){this.createCenteredSubHeading(n2_printf(n2_("Do you really want to delete the set and all associated %s?"),t.labels.visuals)).appendTo(this.content),this.controls.find(".n2-button-grey").on("click",e.proxy(function(e){e.preventDefault(),this.goBack()},this)),this.controls.find(".n2-button-red").html('Yes, delete "'+t.sets[n].set.value+'"').on("click",e.proxy(function(t){t.preventDefault(),i.deleteVisualSet(n).done(e.proxy(this.goBack,this))},this))}}}},!1)),this.modal.show(!1,[this.visualManager.setsSelector.val()])},t.NextendVisualSetsManagerEditable=n,o.prototype.active=function(){e.when(this._loadVisuals()).done(e.proxy(function(){this.visualList.appendTo(this.visualManager.visualListContainer)},this))},o.prototype.notActive=function(){this.visualList.detach()},o.prototype.loadVisuals=function(e){if("undefined"==typeof this.visuals){this.visuals={};for(var t=0;t<e.length;t++)this.addVisual(e[t])}},o.prototype._loadVisuals=function(){return null==this.visuals?NextendAjaxHelper.ajax({type:"POST",url:NextendAjaxHelper.makeAjaxUrl(this.visualManager.parameters.ajaxUrl,{nextendaction:"loadVisualsForSet"}),data:{setId:this.set.id},dataType:"json"}).done(e.proxy(function(e){this.loadVisuals(e.data.visuals)},this)):!0},o.prototype.addVisual=function(e){return"undefined"==typeof this.visuals[e.id]&&(this.visuals[e.id]=this.visualManager.createVisual(e,this),this.visualList.append(this.visuals[e.id].createRow())),this.visuals[e.id]},o.prototype.rename=function(e){this.set.value=e,this.option.html(e)},o.prototype["delete"]=function(){this.option.remove(),delete this.visualManager.sets[this.set.id]},t.NextendVisualSet=o}(n2,window),function(e,t){"use strict";function i(){this.loadDefaults(),this.lightbox=e("#n2-lightbox-"+this.type)}function n(){i.prototype.constructor.apply(this,arguments),this.editor=this.initEditor(),this.editor.$.on("change",e.proxy(this.propertyChanged,this))}function o(t){n.prototype.constructor.apply(this,arguments),this.previewModesList=t,this.initPreviewModes(),t&&(this.renderer=this.initRenderer(),this.clearTabButton=this.lightbox.find(".n2-editor-clear-tab").on("click",e.proxy(this.clearCurrentTab,this)),this.tabField=new N2Classes.FormElementRadio("n2-"+this.type+"-editor-tabs",["0"]),this.tabField.element.on("nextendChange.n2-editor",e.proxy(this.tabChanged,this)),this.previewModeField=new N2Classes.FormElementRadio("n2-"+this.type+"-editor-preview-mode",["0"]),this.previewModeField.element.on("nextendChange.n2-editor",e.proxy(this.previewModeChanged,this)),this.previewModeField.options.eq(0).html(this.previewModesList[0].label))}function r(){this.fields={},this.$=e(this)}function a(e){this.editorController=e}i.prototype.loadDefaults=function(){this.type="",this._style=!1,this.isChanged=!1,this.visible=!1},i.prototype.init=function(){this.lightbox=e("#n2-lightbox-"+this.type)},i.prototype.pause=function(){},i.prototype.getEmptyVisual=function(){return[]},i.prototype.get=function(){return this.currentVisual},i.prototype.load=function(e,t,i){this.isChanged=!1,this.lightbox.addClass("n2-editor-loaded"),""==e&&(e=this.getEmptyVisual()),this._load(e,t,i)},i.prototype._load=function(t,i,n){this.currentVisual=e.extend(!0,{},t)},i.prototype.addStyle=function(t){this._style&&this._style.remove(),this._style=e("<style>"+t+"</style>").appendTo("head")},i.prototype.show=function(){this.visible=!0,nextend.context.addWindow("visual")},i.prototype.close=function(){this.visible=!1,nextend.context.removeWindow()},t.NextendVisualEditorControllerBase=i,n.prototype=Object.create(i.prototype),n.prototype.constructor=n,n.prototype.initEditor=function(){return new r},n.prototype.propertyChanged=function(e,t,i){this.isChanged=!0,this.currentVisual[t]=i},n.prototype._load=function(e,t,n){i.prototype._load.apply(this,arguments),this.loadToEditor()},n.prototype.loadToEditor=function(){this.editor.load(this.currentVisual)},t.NextendVisualEditorControllerWithEditor=n,o.prototype=Object.create(n.prototype),o.prototype.constructor=o,o.prototype.loadDefaults=function(){n.prototype.loadDefaults.call(this),this.currentPreviewMode="0",this.currentTabIndex=0,this._renderTimeout=0,this._delayStart=0},o.prototype.initPreviewModes=function(){},o.prototype.initRenderer=function(){},o.prototype._load=function(t,i,n){this.currentVisual=[];for(var o=0;o<t.length;o++)this.currentVisual[o]=e.extend(!0,this.getCleanVisual(),t[o]);if(this.localModePreview={},n.previewMode===!1)this.availablePreviewMode=!1;else{this.availablePreviewMode=n.previewMode,i===!1&&(i=this.getTabs());for(var o=this.currentVisual.length;o<i.length;o++)this.currentVisual[o]=this.getCleanVisual();n.previewHTML!==!1&&""!=n.previewHTML&&(this.localModePreview[n.previewMode]=n.previewHTML)}if(this.currentTabs=i,i===!1){i=[];for(var o=0;o<this.currentVisual.length;o++)i.push("#"+o)}this.setTabs(i)},o.prototype.asyncVisualData=function(t,i,n){""==t&&(t=this.getEmptyVisual());for(var o=this.previewModesList[i.previewMode].tabs,r=[],a=0;a<t.length;a++)r[a]=e.extend(!0,this.getCleanVisual(),t[a]);for(var a=r.length;a<o.length;a++)r[a]=this.getCleanVisual();n(r,o)},o.prototype.getCleanVisual=function(){return{}},o.prototype.getTabs=function(){return this.previewModesList[this.availablePreviewMode].tabs},o.prototype.setTabs=function(e){this.tabField.insideChange("0");for(var t=this.tabField.values.length-1;t>0;t--)this.tabField.removeTabOption(this.tabField.values[t]);this.tabField.options.eq(0).html(e[0]);for(var t=1;t<e.length;t++)this.tabField.addTabOption(t+"",e[t]);this.makePreviewModes()},o.prototype.tabChanged=function(){document.activeElement&&document.activeElement.blur();var t=this.tabField.element.val();this.currentTabIndex=t,"undefined"==typeof this.currentVisual[t]&&(this.currentVisual[t]={});var i=e.extend({},this.currentVisual[0]);0!=t?(e.extend(i,this.currentVisual[t]),this.clearTabButton.css("display","")):this.clearTabButton.css("display","none"),this.editor.load(i),this._tabChanged()},o.prototype._tabChanged=function(){this._renderPreview()},o.prototype.clearCurrentTab=function(e){e&&e.preventDefault(),this.currentVisual[this.currentTabIndex]={},this.tabChanged(),this._renderPreview()},o.prototype.makePreviewModes=function(){var e=[];if(this.availablePreviewMode===!1){var t=this.tabField.options.length;"undefined"!=typeof this.previewModes[t]&&(e=this.previewModes[t]),this.setPreviewModes(e)}else e=[this.previewModesList[this.availablePreviewMode]],this.setPreviewModes(e,this.availablePreviewMode)},o.prototype.setPreviewModes=function(e,t){for(var i=this.previewModeField.values.length-1;i>0;i--)this.previewModeField.removeTabOption(this.previewModeField.values[i]);for(var i=0;i<e.length;i++)this.previewModeField.addTabOption(e[i].id,e[i].label);"undefined"==typeof t&&(t="0"),this.previewModeField.insideChange(t)},o.prototype.previewModeChanged=function(){var e=this.previewModeField.element.val();if(this.currentTabs===!1)if(0==e)for(var t=0;t<this.currentVisual.length;t++)this.tabField.options.eq(t).html("#"+t);else{var i=this.previewModesList[e].tabs;if(i)for(var t=0;t<this.currentVisual.length;t++)this.tabField.options.eq(t).html(i[t])}this.currentPreviewMode=e,this._renderPreview(),this.setPreview(e)},o.prototype.setPreview=function(e){},o.prototype.propertyChanged=function(e,t,i){this.isChanged=!0,this.currentVisual[this.currentTabIndex][t]=i,this.renderPreview()},o.prototype.renderPreview=function(){var t=e.now();this._renderTimeout?(clearTimeout(this._renderTimeout),t-this._delayStart>100&&(this._renderPreview(),this._delayStart=t)):this._delayStart=t,this._renderTimeout=setTimeout(e.proxy(this._renderPreview,this),33)},o.prototype._renderPreview=function(){this._renderTimeout=!1},t.NextendVisualEditorController=o,r.prototype.load=function(e){this._off(),this._on()},r.prototype._on=function(){for(var e in this.fields)this.fields[e].element.on(this.fields[e].events)},r.prototype._off=function(){for(var e in this.fields)this.fields[e].element.off(".n2-editor")},r.prototype.trigger=function(e,t){this.$.trigger("change",[e,t])},t.NextendVisualEditor=r,a.prototype.deleteRules=function(e,t,i){var n=this.editorController.previewModesList[e],o=new RegExp("@pre","g"),r=new RegExp("@selector","g");for(var a in n.selectors){var s=a.replace(o,t).replace(r,i);nextend.css.deleteRule(s)}},a.prototype.getCSS=function(t,i,n,o,r){var a="",s=this.editorController.previewModesList[t],l=new RegExp("@pre","g"),d=new RegExp("@selector","g");for(var h in s.selectors){var p=h.replace(l,i).replace(d,n);a+=p+"{\n"+s.selectors[h]+"}\n","undefined"!=typeof r.deleteRule&&nextend.css.deleteRule(p)}if(0==t){var u=o[r.activeTab];0!=r.activeTab&&(u=e.extend({},o[0],u)),a=a.replace(new RegExp("@tab[0-9]*","g"),this.render(u));
2
  }else if(s.renderOptions.combined)for(var c=0;c<o.length;c++)a=a.replace(new RegExp("@tab"+c,"g"),this.render(o[c]));else for(var c=0;c<o.length;c++)o[c]=e.extend({},o[c]),a=a.replace(new RegExp("@tab"+c,"g"),this.render(o[c]));return a},a.prototype.render=function(e){var t=this.makeVisualData(e),i="",n="";"undefined"!=typeof t.raw&&(n=t.raw,delete t.raw);for(var o in t)i+=this.deCase(o)+": "+t[o]+";\n";return i+=n},a.prototype.makeVisualData=function(e){var t={};for(var i in e)e.hasOwnProperty(i)&&"function"!=typeof e[i]&&this["makeStyle"+i](e[i],t);return t},a.prototype.deCase=function(e){return e.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()})},t.NextendVisualRenderer=a}(n2,window),function(e,t){function i(){NextendVisualManagerSetsAndMore.prototype.constructor.apply(this,arguments)}function n(){NextendVisualWithSetRow.prototype.constructor.apply(this,arguments)}i.prototype=Object.create(NextendVisualManagerSetsAndMore.prototype),i.prototype.constructor=i,i.prototype.loadDefaults=function(){NextendVisualManagerSetsAndMore.prototype.loadDefaults.apply(this,arguments),this.type="animation",this.labels={visual:n2_("animation"),visuals:n2_("animations")},this.availableFeatures={repeatable:0,specialZero:0,repeat:0,playEvent:0,pauseEvent:0,stopEvent:0,instantOut:0,repeatSelfOnly:0}},i.prototype.initController=function(){return new NextendAnimationEditorController(this.parameters.renderer.modes)},i.prototype.show=function(t,i,n,o){this.currentFeatures=e.extend({},this.availableFeatures,t),NextendVisualManagerSetsAndMore.prototype.show.call(this,i.animations,n,o),this.controller.loadTransformOrigin(i.transformOrigin),this.currentFeatures.repeatable?(this.controller.featureRepeatable(1),i.repeatable||(i.repeatable=0),this.controller.loadRepeatable(i.repeatable)):this.controller.featureRepeatable(0),this.currentFeatures.specialZero?(this.controller.featureSpecialZero(1),i.specialZero||(i.specialZero=0),this.controller.loadSpecialZero(i.specialZero)):this.controller.featureSpecialZero(0),this.currentFeatures.instantOut?(this.controller.featureInstantOut(1),i.instantOut||(i.instantOut=0),this.controller.loadInstantOut(i.instantOut)):this.controller.featureInstantOut(0),this.currentFeatures.repeat?(this.controller.featureRepeat(1),i.repeatCount||(i.repeatCount=0),this.controller.loadRepeatCount(i.repeatCount),i.repeatStartDelay||(i.repeatStartDelay=0),this.controller.loadRepeatStartDelay(i.repeatStartDelay)):this.controller.featureRepeat(0),this.currentFeatures.playEvent?(this.controller.featurePlayEvent(1),i.playEvent||(i.playEvent=""),this.controller.loadPlayEvent(i.playEvent)):this.controller.featurePlayEvent(0),this.currentFeatures.pauseEvent?(this.controller.featurePauseEvent(1),i.pauseEvent||(i.pauseEvent=""),this.controller.loadPauseEvent(i.pauseEvent)):this.controller.featurePauseEvent(0),this.currentFeatures.repeatSelfOnly?(this.controller.featureRepeatSelfOnly(1),i.repeatSelfOnly||(i.repeatSelfOnly=0),this.controller.loadRepeatSelfOnly(i.repeatSelfOnly)):this.controller.featureRepeatSelfOnly(0),this.currentFeatures.stopEvent?(this.controller.featureStopEvent(1),i.stopEvent||(i.stopEvent=""),this.controller.loadStopEvent(i.stopEvent)):this.controller.featureStopEvent(0),0==i.animations.length&&e.when(this.activeSet._loadVisuals()).done(e.proxy(function(){for(var e in this.activeSet.visuals){this.activeSet.visuals[e].activate();break}},this))},i.prototype.setAndClose=function(e){1==e.length&&this.isEquivalent(e[0],this.controller.getEmptyAnimation())&&(e=[]);var t={transformOrigin:this.controller.transformOrigin,animations:e};this.currentFeatures.repeatable&&(t.repeatable=this.controller.repeatable),this.currentFeatures.repeatSelfOnly&&(t.repeatSelfOnly=this.controller.repeatSelfOnly),this.currentFeatures.specialZero&&(t.specialZero=this.controller.specialZero),this.currentFeatures.instantOut&&(t.instantOut=this.controller.instantOut),this.currentFeatures.repeat&&(t.repeatCount=this.controller.repeatCount,t.repeatStartDelay=this.controller.repeatStartDelay),this.currentFeatures.playEvent&&(t.playEvent=this.controller.playEvent),this.currentFeatures.pauseEvent&&(t.pauseEvent=this.controller.pauseEvent),this.currentFeatures.stopEvent&&(t.stopEvent=this.controller.stopEvent),this.$.trigger("save",t)},i.prototype.createVisual=function(e,t){return new n(e,t,this)},i.prototype.setVisualAsStatic=function(e){e.preventDefault(),this.setAndClose(this.controller.get("save")),this.hide(e)},i.prototype.setMode=function(e){NextendVisualManagerSetsAndMore.prototype.setMode.call(this,"static")},i.prototype.getStaticData=function(e){return e},i.prototype.isEquivalent=function(e,t){var i=Object.getOwnPropertyNames(e),n=Object.getOwnPropertyNames(t);if(i.length!=n.length)return!1;for(var o=0;o<i.length;o++){var r=i[o];if(e[r]!==t[r])return!1}return!0},t.NextendAnimationManager=i,n.prototype=Object.create(NextendVisualWithSetRow.prototype),n.prototype.constructor=n,n.prototype.activate=function(e){"undefined"!=typeof e&&e.preventDefault(),this.visualManager.changeActiveVisual(this),"undefined"!=typeof this.value.specialZero&&this.visualManager.controller.loadSpecialZero(this.value.specialZero),"undefined"!=typeof this.value.transformOrigin&&this.visualManager.controller.loadTransformOrigin(this.value.transformOrigin),this.visualManager.controller.load(this.value.animations,!1,this.visualManager.showParameters)},t.NextendAnimation=n}(n2,window),function(e,t){function i(){this.timeline=new NextendTimeline,this.initTabOrdering(),NextendVisualEditorController.prototype.constructor.apply(this,arguments),e("#n2-animation-editor-tab-add").on("click",e.proxy(this.addTab,this)),e("#n2-animation-editor-tab-delete").on("click",e.proxy(this.deleteCurrentTab,this)),this.preview=e('<div class="n2-animation-preview-box" style="background-image: url('+nextend.imageHelper.getRepeatedPlaceholder()+')"></div>').appendTo(e("#n2-animation-editor-preview")),this.setPreviewSize(400,100),this.initBackgroundColor()}function n(){NextendVisualEditor.prototype.constructor.apply(this,arguments),this.fields={name:{element:e("#n2-animation-editorname"),events:{"outsideChange.n2-editor":e.proxy(this.changeName,this)}},duration:{element:e("#n2-animation-editorduration"),events:{"outsideChange.n2-editor":e.proxy(this.changeDuration,this)}},delay:{element:e("#n2-animation-editordelay"),events:{"outsideChange.n2-editor":e.proxy(this.changeDelay,this)}},easing:{element:e("#n2-animation-editoreasing"),events:{"outsideChange.n2-editor":e.proxy(this.changeEasing,this)}},opacity:{element:e("#n2-animation-editoropacity"),events:{"outsideChange.n2-editor":e.proxy(this.changeOpacity,this)}},offset:{element:e("#n2-animation-editoroffset"),events:{"outsideChange.n2-editor":e.proxy(this.changeOffset,this)}},rotate:{element:e("#n2-animation-editorrotate"),events:{"outsideChange.n2-editor":e.proxy(this.changeRotate,this)}},scale:{element:e("#n2-animation-editorscale"),events:{"outsideChange.n2-editor":e.proxy(this.changeScale,this)}},skew:{element:e("#n2-animation-editorskew"),events:{"outsideChange.n2-editor":e.proxy(this.changeSkew,this)}},n2blur:{element:e("#n2-animation-editorn2blur"),events:{"outsideChange.n2-editor":e.proxy(this.changeN2blur,this)}},specialZero:{element:e("#n2-animation-editorspecial-zero"),events:{"outsideChange.n2-editor":e.proxy(this.changeSpecialZero,this)}},repeatCount:{element:e("#n2-animation-editorrepeat-count"),events:{"outsideChange.n2-editor":e.proxy(this.changeRepeatCount,this)}},repeatStartDelay:{element:e("#n2-animation-editorrepeat-start-delay"),events:{"outsideChange.n2-editor":e.proxy(this.changeRepeatStartDelay,this)}},transformOrigin:{element:e("#n2-animation-editortransformorigin"),events:{"outsideChange.n2-editor":e.proxy(this.changeTransformOrigin,this)}},playEvent:{element:e("#n2-animation-editorplay"),events:{"outsideChange.n2-editor":e.proxy(this.changePlayEvent,this)}},pauseEvent:{element:e("#n2-animation-editorpause"),events:{"outsideChange.n2-editor":e.proxy(this.changePauseEvent,this)}},stopEvent:{element:e("#n2-animation-editorstop"),events:{"outsideChange.n2-editor":e.proxy(this.changeStopEvent,this)}},repeatable:{element:e("#n2-animation-editorrepeatable"),events:{"outsideChange.n2-editor":e.proxy(this.changeRepeatable,this)}},repeatSelfOnly:{element:e("#n2-animation-editorrepeat-self-only"),events:{"outsideChange.n2-editor":e.proxy(this.changeRepeatSelfOnly,this)}},instantOut:{element:e("#n2-animation-editorinstant-out"),events:{"outsideChange.n2-editor":e.proxy(this.changeInstantOut,this)}}}}var o={opacity:1,x:0,y:0,z:0,rotationX:0,rotationY:0,rotationZ:0,scaleX:1,scaleY:1,scaleZ:1,skewX:0,n2blur:0};i.prototype=Object.create(NextendVisualEditorController.prototype),i.prototype.constructor=i,i.prototype.loadDefaults=function(){NextendVisualEditorController.prototype.loadDefaults.call(this),this.type="animation",this.group="in",this.mode=0,this.playing=!1,this.specialZero=0,this.transformOrigin="0|*|0|*|0",this.playEvent="",this.pauseEvent="",this.stopEvent="",this.repeatable=0,this.instantOut=0},i.prototype.setPreviewSize=function(e,t){return this.preview.css({width:e,height:t,marginLeft:-e/2,marginTop:-t/2}),this},i.prototype.setGroup=function(e){return this.group=e,this},i.prototype.initPreviewModes=function(){this.previewModes=[this.previewModesList.solo]},i.prototype.makePreviewModes=function(){this.tabField.options.length>0?this.setPreviewModes(this.previewModes):this.setPreviewModes([])},i.prototype.initRenderer=function(){return new NextendVisualRenderer(this)},i.prototype.initEditor=function(){var t=new n;return t.$.on("nameChanged",e.proxy(this.animationNameChanged,this)),t},i.prototype.pause=function(){this.clearTimeline()},i.prototype.get=function(e){return"saveAsNew"==e?{specialZero:this.specialZero,transformOrigin:this.transformOrigin,animations:this.currentVisual}:this.currentVisual},i.prototype.getEmptyAnimation=function(){return{name:"Animation",duration:.8,delay:0,ease:"easeOutCubic",opacity:1,x:0,y:0,z:0,rotationX:0,rotationY:0,rotationZ:0,scaleX:1,scaleY:1,scaleZ:1,skewX:0,n2blur:0}},i.prototype.getEmptyVisual=function(){return[this.getEmptyAnimation()]},i.prototype.initBackgroundColor=function(){new N2Classes.FormElementText("n2-animation-editor-background-color"),new N2Classes.FormElementColor("n2-animation-editor-background-color",0);var t=this.lightbox.find(".n2-editor-preview-box");e("#n2-animation-editor-background-color").on("nextendChange",function(){t.css("background","#"+e(this).val())})},i.prototype._renderPreview=function(){NextendVisualEditorController.prototype._renderPreview.call(this),this.visible&&this.refreshTimeline()},i.prototype.setPreview=function(e){this.visible&&this.refreshTimeline()},i.prototype.getPreviewCssClass=function(){return"n2-"+this.type+"-editor-preview"},i.prototype._load=function(t,i,n){n.previewMode=!0,t.splice(1);for(var o=0;o<t.length;o++)t[o]=e.extend({},this.getEmptyAnimation(),t[o]);NextendVisualEditorController.prototype._load.call(this,t,i,n)},i.prototype.initTabOrdering=function(){var t=-1,i=e("#n2-animation-editor-tabs").parent();i.sortable({items:".n2-radio-option",start:e.proxy(function(e,i){t=this.tabField.options.index(i.item)},this),update:e.proxy(function(e,n){var o=n.item.index();i.sortable("cancel");var r=this.currentVisual[t];this.currentVisual.splice(t,1),this.currentVisual.splice(o,0,r);for(var a=0;a<this.currentVisual.length;a++)this.tabField.options.eq(a).html(this.currentVisual[a].name);this.tabField.options.eq(o).trigger("click"),t=-1,"solo"!=this.currentPreviewMode?this.refreshTimeline():this._tabChanged()},this)})},i.prototype.getTabs=function(){for(var e=[],t=0;t<this.currentVisual.length;t++)e.push(this.currentVisual[t].name);return e},i.prototype._tabChanged=function(){"solo"==this.currentPreviewMode&&this.refreshTimeline()},i.prototype.clearCurrentTab=function(e){e&&e.preventDefault()},i.prototype.addTab=function(e,t){e&&e.preventDefault();var i=this.tabField.values.length;t!==!0&&1==i||(this.currentVisual[i]=this.getEmptyAnimation(),this.tabField.addTabOption(i+"",this.currentVisual[i].name),this.tabField.options.eq(i).trigger("click"),"solo"!=this.currentPreviewMode&&this.refreshTimeline())},i.prototype.deleteCurrentTab=function(e){e&&e.preventDefault(),this.deleteTab(this.currentTabIndex),this.currentTabIndex=Math.min(this.currentTabIndex,this.currentVisual.length-1),this.tabField.options.eq(this.currentTabIndex).trigger("click")},i.prototype.deleteTab=function(e){if(this.currentVisual.length>1){this.tabField.removeTabOption(this.tabField.values[e]),this.tabField.values=[];for(var t=0;t<this.tabField.options.length;t++)this.tabField.values.push(t+"");this.currentVisual.splice(e,1)}else this.addTab(null,!0),this.deleteTab(0);"solo"!=this.currentPreviewMode&&this.refreshTimeline()},i.prototype.animationNameChanged=function(e,t){this.tabField.options.eq(this.currentTabIndex).html(t)},i.prototype.show=function(){NextendVisualEditorController.prototype.show.call(this),this.refreshTimeline()},i.prototype.hide=function(){this.clearTimeline(),NextendVisualEditorController.prototype.hide.call(this)},i.prototype.createTimeline=function(){this.timeline&&this.timeline.pause(0),this.timeline=new NextendTimeline({paused:1}),this.timeline.eventCallback("onComplete",e.proxy(function(){this.timeline.play(0,!1)},this)),this.timeline.set(this.preview.get(0),{transformOrigin:this.transformOrigin.split("|*|").join("% ")+"px"},0);var t=[];switch(this.currentPreviewMode){case"solo":t.push(e.extend({},this.currentVisual[this.currentTabIndex]));break;default:e.extend(!0,t,this.currentVisual)}for(var i=0;i<t.length;i++)t[i].delay>.5&&(t[i].delay=.5);switch(this.group){case"in":this.buildTimelineIn(this.timeline,this.preview.get(0),t,1);break;case"loop":"solo"==this.currentPreviewMode?this.buildTimelineOut(this.timeline,this.preview.get(0),t,1):this.buildTimelineLoop(this.timeline,this.preview.get(0),t,1);break;case"out":this.buildTimelineOut(this.timeline,this.preview.get(0),t,1);break;default:console.log(this.group+" animation is not supported!")}this.timeline.totalDuration()>0&&this.timeline.play()},i.prototype.refreshTimeline=NextendDeBounce(function(){this.clearTimeline(),this.createTimeline()},50),i.prototype.clearTimeline=function(){this.timeline&&(this.timeline.pause(),this.repeatTimeout&&clearTimeout(this.repeatTimeout),this.timeline.progress(1,!0))},i.prototype.setCurrentZero=function(t){NextendTween.set(t,e.extend({},this.currentZero))},i.prototype.buildTimelineIn=function(e,t,i,n){this.currentZero=o,"in"==this.group&&("solo"!=this.currentPreviewMode||this.currentTabIndex==this.currentVisual.length-1)&&this.specialZero&&i.length>0&&(this.currentZero=i.pop(),delete this.currentZero.name,this.currentZero.x=this.currentZero.x*n,this.currentZero.y=this.currentZero.y*n,this.currentZero.z=this.currentZero.z*n,this.currentZero.rotationX=-this.currentZero.rotationX,this.currentZero.rotationY=-this.currentZero.rotationY,this.currentZero.rotationZ=-this.currentZero.rotationZ,this.setCurrentZero(t));var r=0,a=this._buildAnimationChainIn(i,n,this.currentZero),s=0;if(a.length>0)for(e.fromTo(t,a[s].duration,a[s].from,a[s].to,r),r+=a[s].duration+a[s].to.delay,s++;s<a.length;s++)e.to(t,a[s].duration,a[s].to,r),r+=a[s].duration+a[s].to.delay},i.prototype._buildAnimationChainIn=function(t,i,n){for(var o=[{from:n}],r=t.length-1;r>=0;r--){var a=t[r],s=a.delay,l=a.duration,d=a.ease;delete a.delay,delete a.duration,delete a.ease,delete a.name;var h=o[0].from;a.x=-a.x*i,a.y=-a.y*i,a.z=-a.z*i,a.rotationX=-a.rotationX,a.rotationY=-a.rotationY,a.rotationZ=-a.rotationZ,o.unshift({duration:l,from:a,to:e.extend({},h,{ease:d,delay:s})})}return o.pop(),o},i.prototype.buildTimelineLoop=function(e,t,i,n){var o=this._buildAnimationChainLoop(i,n),r=0;if(o.length>0)for(e.fromTo(t,o[r].duration,o[r].from,o[r].to),r++;r<o.length;r++)e.to(t,o[r].duration,o[r].to)},i.prototype._buildAnimationChainLoop=function(t,i){if(delete t[0].name,1==t.length){var n=t[0],r=e.extend({},o);if(r.duration=n.duration,r.ease=n.ease,(360==n.rotationX||360==n.rotationY||360==n.rotationZ)&&1==n.opacity&&0==n.x&&0==n.y&&0==n.z&&1==n.scaleX&&1==n.scaleY&&1==n.scaleZ&&0==n.skewX&&0==n.n2blur)return[{duration:t[0].duration,from:e.extend({},o),to:t[0]}];t.unshift(r)}var a=0,s=[{duration:t[a].duration,to:t[a]}];for(a++;a<t.length;a++){var r=t[a],l=r.duration;delete r.duration,delete r.name;var d=e.extend({},s[s.length-1].to);delete d.delay,delete d.ease,r.x=r.x*i,r.y=r.y*i,r.z=r.z*i,s.push({duration:l,from:d,to:r})}return s.push({duration:s[0].duration,from:e.extend({},s[s.length-1].to),to:e.extend({},s[0].to)}),s.shift(),s},i.prototype.buildTimelineOut=function(e,t,i,n){var o=0,r=this._buildAnimationChainOut(i,n),a=0;if(r.length>0)for(e.fromTo(t,r[a].duration,r[a].from,r[a].to,o),o+=r[a].duration+r[a].to.delay,a++;a<r.length;a++)e.to(t,r[a].duration,r[a].to,o),o+=r[a].duration+r[a].to.delay},i.prototype._buildAnimationChainOut=function(t,i){for(var n=[{to:o}],r=0;r<t.length;r++){var a=t[r],s=a.duration;delete a.duration,delete a.name;var l=e.extend({},n[n.length-1].to);delete l.delay,delete l.ease,a.x=a.x*i,a.y=a.y*i,a.z=a.z*i,n.push({duration:s,from:l,to:a})}return n.shift(),n},i.prototype.loadSpecialZero=function(e){this.editor.fields.specialZero.element.data("field").insideChange(e),this.refreshSpecialZero(e)},i.prototype.refreshSpecialZero=function(e){this.specialZero=parseInt(e)?1:0,this.refreshTimeline()},i.prototype.loadRepeatCount=function(e){this.editor.fields.repeatCount.element.data("field").insideChange(e),this.refreshRepeatCount(e)},i.prototype.refreshRepeatCount=function(e){this.repeatCount=Math.max(0,parseInt(e))},i.prototype.loadRepeatStartDelay=function(e){this.editor.fields.repeatStartDelay.element.data("field").insideChange(1e3*e),this.refreshRepeatStartDelay(e)},i.prototype.refreshRepeatStartDelay=function(e){this.repeatStartDelay=Math.max(0,parseFloat(e))},i.prototype.loadTransformOrigin=function(e){this.editor.fields.transformOrigin.element.data("field").insideChange(e),this.refreshTransformOrigin(e)},i.prototype.refreshTransformOrigin=function(e){this.transformOrigin=e,NextendTween.set(this.preview.parent().get(0),{perspective:"1000px"}),this.refreshTimeline()},i.prototype.loadPlayEvent=function(e){this.editor.fields.playEvent.element.data("field").insideChange(e),this.refreshPlayEvent(e)},i.prototype.refreshPlayEvent=function(e){this.playEvent=e},i.prototype.loadPauseEvent=function(e){this.editor.fields.pauseEvent.element.data("field").insideChange(e),this.refreshPauseEvent(e)},i.prototype.refreshPauseEvent=function(e){this.pauseEvent=e},i.prototype.loadStopEvent=function(e){this.editor.fields.stopEvent.element.data("field").insideChange(e),this.refreshStopEvent(e)},i.prototype.refreshStopEvent=function(e){this.stopEvent=e},i.prototype.loadRepeatable=function(e){this.editor.fields.repeatable.element.data("field").insideChange(e),this.refreshRepeatable(e)},i.prototype.refreshRepeatable=function(e){this.repeatable=e},i.prototype.loadRepeatSelfOnly=function(e){this.editor.fields.repeatSelfOnly.element.data("field").insideChange(e),this.refreshRepeatSelfOnly(e)},i.prototype.refreshRepeatSelfOnly=function(e){this.repeatSelfOnly=e},i.prototype.loadInstantOut=function(e){this.editor.fields.instantOut.element.data("field").insideChange(e),this.refreshInstantOut(e)},i.prototype.refreshInstantOut=function(e){this.instantOut=e},i.prototype.featureSpecialZero=function(e){var t=this.editor.fields.specialZero.element.closest("tr");e?t.removeClass("n2-hidden"):t.addClass("n2-hidden")},i.prototype.featureRepeat=function(e){var t=this.editor.fields.repeatCount.element.closest("tr").add(this.editor.fields.repeatStartDelay.element.closest("tr"));e?t.removeClass("n2-hidden"):t.addClass("n2-hidden")},i.prototype.featurePlayEvent=function(e){var t=this.editor.fields.playEvent.element.closest(".n2-mixed-group");e?t.removeClass("n2-hidden"):t.addClass("n2-hidden")},i.prototype.featurePauseEvent=function(e){var t=this.editor.fields.pauseEvent.element.closest(".n2-mixed-group");e?t.removeClass("n2-hidden"):t.addClass("n2-hidden")},i.prototype.featureStopEvent=function(e){var t=this.editor.fields.stopEvent.element.closest(".n2-mixed-group");e?t.removeClass("n2-hidden"):t.addClass("n2-hidden")},i.prototype.featureRepeatable=function(e){var t=this.editor.fields.repeatable.element.closest(".n2-mixed-group");e?t.removeClass("n2-hidden"):t.addClass("n2-hidden")},i.prototype.featureRepeatSelfOnly=function(e){var t=this.editor.fields.repeatSelfOnly.element.closest(".n2-mixed-group");e?t.removeClass("n2-hidden"):t.addClass("n2-hidden")},i.prototype.featureInstantOut=function(e){var t=this.editor.fields.instantOut.element.closest(".n2-mixed-group");e?t.removeClass("n2-hidden"):t.addClass("n2-hidden")},t.NextendAnimationEditorController=i,n.prototype=Object.create(NextendVisualEditor.prototype),n.prototype.constructor=n,n.prototype.load=function(e){this._off(),this.fields.name.element.data("field").insideChange(e.name),this.fields.duration.element.data("field").insideChange(1e3*e.duration),this.fields.delay.element.data("field").insideChange(1e3*e.delay),this.fields.easing.element.data("field").insideChange(e.ease),this.fields.opacity.element.data("field").insideChange(100*e.opacity),this.fields.offset.element.data("field").insideChange(e.x+"|*|"+e.y+"|*|"+e.z),this.fields.rotate.element.data("field").insideChange(e.rotationX+"|*|"+e.rotationY+"|*|"+e.rotationZ),this.fields.scale.element.data("field").insideChange(100*e.scaleX+"|*|"+100*e.scaleY+"|*|"+100*e.scaleZ),this.fields.skew.element.data("field").insideChange(e.skewX),this.fields.n2blur.element.data("field").insideChange(e.n2blur),this.fields.specialZero.element.data("field").insideChange(nextend.animationManager.controller.specialZero),this.fields.repeatCount.element.data("field").insideChange(nextend.animationManager.controller.repeatCount),this.fields.repeatStartDelay.element.data("field").insideChange(1e3*nextend.animationManager.controller.repeatStartDelay),this.fields.transformOrigin.element.data("field").insideChange(nextend.animationManager.controller.transformOrigin),this.fields.playEvent.element.data("field").insideChange(nextend.animationManager.controller.playEvent),this.fields.pauseEvent.element.data("field").insideChange(nextend.animationManager.controller.pauseEvent),this.fields.stopEvent.element.data("field").insideChange(nextend.animationManager.controller.stopEvent),this.fields.repeatable.element.data("field").insideChange(nextend.animationManager.controller.repeatable),this.fields.repeatSelfOnly.element.data("field").insideChange(nextend.animationManager.controller.repeatSelfOnly),this.fields.instantOut.element.data("field").insideChange(nextend.animationManager.controller.instantOut),this._on()},n.prototype.changeName=function(){this.trigger("name",this.fields.name.element.val()),this.$.trigger("nameChanged",this.fields.name.element.val())},n.prototype.changeDuration=function(){this.trigger("duration",this.fields.duration.element.val()/1e3)},n.prototype.changeDelay=function(){this.trigger("delay",this.fields.delay.element.val()/1e3)},n.prototype.changeEasing=function(){this.trigger("ease",this.fields.easing.element.val())},n.prototype.changeOpacity=function(){this.trigger("opacity",this.fields.opacity.element.val()/100)},n.prototype.changeOffset=function(){var e=this.fields.offset.element.val().split("|*|");this.trigger("x",e[0]),this.trigger("y",e[1]),this.trigger("z",e[2])},n.prototype.changeRotate=function(){var e=this.fields.rotate.element.val().split("|*|");this.trigger("rotationX",e[0]),this.trigger("rotationY",e[1]),this.trigger("rotationZ",e[2])},n.prototype.changeScale=function(){var e=this.fields.scale.element.val().split("|*|");this.trigger("scaleX",e[0]/100),this.trigger("scaleY",e[1]/100),this.trigger("scaleZ",e[2]/100)},n.prototype.changeSkew=function(){this.trigger("skewX",this.fields.skew.element.val())},n.prototype.changeN2blur=function(){this.trigger("n2blur",this.fields.n2blur.element.val())},n.prototype.changeTransformOrigin=function(){nextend.animationManager.controller.refreshTransformOrigin(this.fields.transformOrigin.element.val())},n.prototype.changeSpecialZero=function(){nextend.animationManager.controller.refreshSpecialZero(this.fields.specialZero.element.val())},n.prototype.changeRepeatCount=function(){nextend.animationManager.controller.refreshRepeatCount(this.fields.repeatCount.element.val())},n.prototype.changeRepeatStartDelay=function(){nextend.animationManager.controller.refreshRepeatStartDelay(this.fields.repeatStartDelay.element.val()/1e3)},n.prototype.changePlayEvent=function(){nextend.animationManager.controller.refreshPlayEvent(this.fields.playEvent.element.val())},n.prototype.changePauseEvent=function(){nextend.animationManager.controller.refreshPauseEvent(this.fields.pauseEvent.element.val())},n.prototype.changeStopEvent=function(){nextend.animationManager.controller.refreshStopEvent(this.fields.stopEvent.element.val())},n.prototype.changeRepeatable=function(){nextend.animationManager.controller.refreshRepeatable(this.fields.repeatable.element.val())},n.prototype.changeRepeatSelfOnly=function(){nextend.animationManager.controller.refreshRepeatSelfOnly(this.fields.repeatSelfOnly.element.val())},n.prototype.changeInstantOut=function(){nextend.animationManager.controller.refreshInstantOut(this.fields.instantOut.element.val())},t.NextendAnimationEditor=n}(n2,window),function(e,t,i){function n(t,i){this.url=t,this.uploadAllowed=parseInt(i),this.currentPath=e.jStorage.get("browsePath","");var n=null;this.node=e('<div class="n2-browse-container"/>').on("dragover",function(t){null!==n?(clearTimeout(n),n=null):e(t.currentTarget).addClass("n2-drag-over"),n=setTimeout(function(){e(t.currentTarget).removeClass("n2-drag-over"),n=null},400)}),nextend.browse=this}var o={};n.prototype.clear=function(){this.uploadAllowed&&this.node.find("#n2-browse-upload").fileupload("destroy"),this.node.empty()},n.prototype.getNode=function(t,i){return this.clear(),this.mode=t,"multiple"==t&&(this.selected=[]),this.callback=i,this._loadPath(this.getCurrentFolder(),e.proxy(this._renderBoxes,this)),this.node},n.prototype._renderBoxes=function(t){this.clear(),this.uploadAllowed&&(this.node.append(e('<div class="n2-browse-box n2-browse-upload"><div class="n2-h4">'+n2_("Drop files anywhere to upload or")+' <br> <a class="n2-button n2-button-normal n2-button-m n2-radius-s n2-button-grey n2-uc n2-h4" href="#">'+n2_("Select files")+'</a></div><input id="n2-browse-upload" type="file" name="image" multiple></div>')),this.node.find("#n2-browse-upload").fileupload({url:NextendAjaxHelper.makeAjaxUrl(this.url,{nextendaction:"upload"}),sequentialUploads:!0,dropZone:this.node,pasteZone:!1,dataType:"json",paramName:"image",add:e.proxy(function(t,i){var n=e('<div class="n2-browse-box n2-browse-image"><div class="n2-button n2-button-icon n2-button-s n2-button-blue n2-radius-s"><i class="n2-i n2-it n2-i-tick"></i></div><div class="n2-browse-title">0%</div></div>'),o=this.node.find(".n2-browse-image");o.length>0?n.insertBefore(o.eq(0)):n.appendTo(this.node),i.box=n,i.formData={path:this.currentPath},i.submit()},this),progress:function(e,t){var i=parseInt(t.loaded/t.total*100,10);t.box.find(".n2-browse-title").html(i+"%")},done:e.proxy(function(t,i){var n=i.result;if(n.data&&n.data.name){o[n.data.path].data.files[n.data.name]=n.data.url,i.box.on("click",e.proxy(this.clickImage,this,n.data.url)).find(".n2-browse-title").html(n.data.name);var r=n.data.url.split(".").pop();"mp4"!=r&&"mp3"!=r&&i.box.css("background-image","url("+encodeURI(nextend.imageHelper.fixed(n.data.url))+")"),"multiple"==this.mode&&(this.selected.push(n.data.url),i.box.addClass("n2-active"))}else i.box.destroy();NextendAjaxHelper.notification(n)},this),fail:e.proxy(function(e,t){t.box.remove(),NextendAjaxHelper.notification(t.jqXHR.responseJSON)},this)}),e.jStorage.set("browsePath",this.getCurrentFolder())),""!=t.path&&this.node.append(e('<div class="n2-browse-box n2-browse-directory"><i class="n2-i n2-it n2-i-up"></i></div>').on("click",e.proxy(function(t){this._loadPath(t,e.proxy(this._renderBoxes,this))},this,t.path+"/..")));for(var i in t.directories)t.directories.hasOwnProperty(i)&&this.node.append(e('<div class="n2-browse-box n2-browse-directory"><i class="n2-i n2-it n2-i-folder"></i><div class="n2-browse-title">'+i+"</div></div>").on("click",e.proxy(function(t){this._loadPath(t,e.proxy(this._renderBoxes,this))},this,t.directories[i])));for(var i in t.files)if(t.files.hasOwnProperty(i)){var n=e('<div class="n2-browse-box n2-browse-image"><div class="n2-button n2-button-icon n2-button-s n2-button-blue n2-radius-s"><i class="n2-i n2-it n2-i-tick"></i></div><div class="n2-browse-title">'+i+"</div></div>").on("click",e.proxy(this.clickImage,this,t.files[i])),r=t.files[i].split(".").pop();"mp4"!=r&&"mp3"!=r&&n.css("background-image","url("+encodeURI(nextend.imageHelper.fixed(t.files[i]))+")"),this.node.append(n),"multiple"==this.mode&&-1!=e.inArray(t.files[i],this.selected)&&n.addClass("n2-active")}},n.prototype._loadPath=function(t,i){"undefined"==typeof o[t]&&(o[t]=NextendAjaxHelper.ajax({type:"POST",url:NextendAjaxHelper.makeAjaxUrl(this.url),data:{path:t},dataType:"json"})),e.when(o[t]).done(e.proxy(function(e){this.currentPath=e.data.path,o[e.data.path]=e,o[t]=e,i(e.data)},this))},n.prototype.clickImage=function(t,i){if("single"==this.mode)this.callback(t);else if("multiple"==this.mode){var n=e.inArray(t,this.selected);-1==n?(e(i.currentTarget).addClass("n2-active"),this.selected.push(t)):(e(i.currentTarget).removeClass("n2-active"),this.selected.splice(n,1))}},n.prototype.getSelected=function(){return this.selected},n.prototype.getCurrentFolder=function(){return this.currentPath},t.NextendBrowse=n}(n2,window),function(e,t){function i(){NextendVisualManagerSetsAndMore.prototype.constructor.apply(this,arguments)}function n(){NextendVisualWithSetRow.prototype.constructor.apply(this,arguments)}i.prototype=Object.create(NextendVisualManagerSetsAndMore.prototype),i.prototype.constructor=i,i.prototype.loadDefaults=function(){NextendVisualManagerSetsAndMore.prototype.loadDefaults.apply(this,arguments),this.type="font",this.labels={visual:n2_("font"),visuals:n2_("fonts")},this.styleClassName="",this.styleClassName2=""},i.prototype.initController=function(){return new NextendFontEditorController(this.parameters.renderer.modes,this.parameters.defaultFamily)},i.prototype.addVisualUsage=function(e,t,i){if(parseInt(t)>0)return this._addLinkedFont(e,t,i);try{return this._renderStaticFont(e,t,i),!0}catch(n){return!1}},i.prototype._addLinkedFont=function(t,i,n){var o=this.parameters.renderer.usedFonts,r=e.Deferred();return e.when(this.getVisual(i)).done(e.proxy(function(i){i.id>0?("undefined"==typeof n?"undefined"==typeof o[i.id]?(o[i.id]=[t],this.renderLinkedFont(t,i,n)):-1==e.inArray(t,o[i.id])&&(o[i.id].push(t),this.renderLinkedFont(t,i,n)):this.renderLinkedFont(t,i,n),r.resolve(!0)):r.resolve(!1)},this)).fail(function(){r.resolve(!1)}),r},i.prototype.renderLinkedFont=function(e,t,i){"undefined"==typeof i&&(i=this.parameters.renderer.pre),nextend.css.add(this.renderer.getCSS(e,i,"."+this.getClass(t.id,e),t.value,{deleteRule:!0}))},i.prototype._renderStaticFont=function(e,t,i){"undefined"==typeof i&&(i=this.parameters.renderer.pre);var n=t;"{"!=n[0]&&(n=Base64.decode(n)),nextend.css.add(this.renderer.getCSS(e,i,"."+this.getClass(t,e),JSON.parse(n).data,{}))},i.prototype.removeUsedFont=function(t,i){var n=this.parameters.renderer.usedFonts;if("undefined"!=typeof n[i]){var o=e.inArray(t,n[i]);o>-1&&n[i].splice(o,1)}},i.prototype.getClass=function(e,t){return parseInt(e)>0?"n2-font-"+e+"-"+t:""==e?"":("{"==e&&(e=Base64.encode(e)),"n2-font-"+md5(e)+"-"+t)},i.prototype.createVisual=function(e,t){return new n(e,t,this)},i.prototype.setConnectedStyle=function(t){this.styleClassName=e("#"+t).data("field").renderStyle()},i.prototype.setConnectedStyle2=function(t){this.styleClassName2=e("#"+t).data("field").renderStyle();
3
+ },t.NextendFontManager=i,n.prototype=Object.create(NextendVisualWithSetRow.prototype),n.prototype.constructor=n,n.prototype.removeRules=function(){var e=this.isUsed();if(e)for(var t=0;t<e.length;t++)this.visualManager.removeRules(e[t],this)},n.prototype.render=function(){var e=this.isUsed();if(e)for(var t=0;t<e.length;t++)this.visualManager.renderLinkedFont(e[t],this)},n.prototype.isUsed=function(){return"undefined"!=typeof this.visualManager.parameters.renderer.usedFonts[this.id]?this.visualManager.parameters.renderer.usedFonts[this.id]:!1},t.NextendFont=n}(n2,window),function($,scope){function NextendFontEditorController(e,t){this.defaultFamily=t,NextendVisualEditorController.prototype.constructor.apply(this,arguments),this.fontSize=16,this.preview=$("#n2-font-editor-preview").css("fontSize","16px"),this.initBackgroundColor()}function NextendFontEditor(){NextendVisualEditor.prototype.constructor.apply(this,arguments),this.fields={family:{element:$("#n2-font-editorfamily"),events:{"nextendChange.n2-editor":$.proxy(this.changeFamily,this)}},color:{element:$("#n2-font-editorcolor"),events:{"outsideChange.n2-editor":$.proxy(this.changeColor,this)}},size:{element:$("#n2-font-editorsize"),events:{"outsideChange.n2-editor":$.proxy(this.changeSize,this)}},lineHeight:{element:$("#n2-font-editorlineheight"),events:{"outsideChange.n2-editor":$.proxy(this.changeLineHeight,this)}},weight:{element:$("#n2-font-editorweight"),events:{"outsideChange.n2-editor":$.proxy(this.changeWeight,this)}},decoration:{element:$("#n2-font-editordecoration"),events:{"outsideChange.n2-editor":$.proxy(this.changeDecoration,this)}},align:{element:$("#n2-font-editortextalign"),events:{"outsideChange.n2-editor":$.proxy(this.changeAlign,this)}},shadow:{element:$("#n2-font-editortshadow"),events:{"outsideChange.n2-editor":$.proxy(this.changeShadow,this)}},letterSpacing:{element:$("#n2-font-editorletterspacing"),events:{"outsideChange.n2-editor":$.proxy(this.changeLetterSpacing,this)}},wordSpacing:{element:$("#n2-font-editorwordspacing"),events:{"outsideChange.n2-editor":$.proxy(this.changeWordSpacing,this)}},textTransform:{element:$("#n2-font-editortexttransform"),events:{"outsideChange.n2-editor":$.proxy(this.changeTextTransform,this)}},css:{element:$("#n2-font-editorextracss"),events:{"outsideChange.n2-editor":$.proxy(this.changeCSS,this)}}}}function NextendFontRenderer(){NextendVisualRenderer.prototype.constructor.apply(this,arguments)}NextendFontEditorController.prototype=Object.create(NextendVisualEditorController.prototype),NextendFontEditorController.prototype.constructor=NextendFontEditorController,NextendFontEditorController.prototype.loadDefaults=function(){NextendVisualEditorController.prototype.loadDefaults.call(this),this.type="font",this.preview=null,this.fontSize=14},NextendFontEditorController.prototype.initPreviewModes=function(){this.previewModes={1:[this.previewModesList.simple],2:[this.previewModesList.link,this.previewModesList.hover,this.previewModesList.accordionslidetitle],3:[this.previewModesList.paragraph,this.previewModesList.list]}},NextendFontEditorController.prototype.initRenderer=function(){return new NextendFontRenderer(this)},NextendFontEditorController.prototype.initEditor=function(){return new NextendFontEditor},NextendFontEditorController.prototype._load=function(e,t,i){e.length&&(e[0]=$.extend({},this.getEmptyFont(),e[0])),NextendVisualEditorController.prototype._load.call(this,e,t,i)},NextendFontEditorController.prototype.asyncVisualData=function(e,t,i){e.length&&(e[0]=$.extend({},this.getEmptyFont(),e[0])),NextendVisualEditorController.prototype.asyncVisualData.call(this,e,t,i)},NextendFontEditorController.prototype.getEmptyFont=function(){return{color:"000000ff",size:"14||px",tshadow:"0|*|0|*|0|*|000000ff",afont:this.defaultFamily,lineheight:"1.5",bold:0,italic:0,underline:0,align:"left",letterspacing:"normal",wordspacing:"normal",texttransform:"none",extra:""}},NextendFontEditorController.prototype.getCleanVisual=function(){return{extra:""}},NextendFontEditorController.prototype.getEmptyVisual=function(){return[this.getEmptyFont()]},NextendFontEditorController.prototype.initBackgroundColor=function(){new N2Classes.FormElementText("n2-font-editor-background-color"),new N2Classes.FormElementColor("n2-font-editor-background-color",0);var e=this.lightbox.find(".n2-editor-preview-box");$("#n2-font-editor-background-color").on("nextendChange",function(){e.css("background","#"+$(this).val())})},NextendFontEditorController.prototype._renderPreview=function(){NextendVisualEditorController.prototype._renderPreview.call(this),this.addStyle(this.renderer.getCSS(this.currentPreviewMode,"","."+this.getPreviewCssClass(),this.currentVisual,{activeTab:this.currentTabIndex}))},NextendFontEditorController.prototype.setPreview=function(mode){var html="";html="undefined"!=typeof this.localModePreview[mode]?this.localModePreview[mode]:this.previewModesList[mode].preview;var fontClassName=this.getPreviewCssClass(),styleClassName=nextend.fontManager.styleClassName,styleClassName2=nextend.fontManager.styleClassName2;html=html.replace(/\{([^]*?)\}/g,function(match,script){return eval(script)}),this.preview.html(html)},NextendFontEditorController.prototype.getPreviewCssClass=function(){return"n2-"+this.type+"-editor-preview"},scope.NextendFontEditorController=NextendFontEditorController,NextendFontEditor.prototype=Object.create(NextendVisualEditor.prototype),NextendFontEditor.prototype.constructor=NextendFontEditor,NextendFontEditor.prototype.load=function(e){this._off();var t=e.afont.split("||");this.fields.family.element.data("field").insideChange(t[0]),this.fields.color.element.data("field").insideChange(e.color),this.fields.size.element.data("field").insideChange(e.size.split("||").join("|*|")),this.fields.lineHeight.element.data("field").insideChange(e.lineheight),this.fields.weight.element.data("field").insideChange(e.bold),this.fields.decoration.element.data("field").insideChange([1==e.italic?"italic":"",1==e.underline?"underline":""].join("||")),this.fields.align.element.data("field").insideChange(e.align),this.fields.shadow.element.data("field").insideChange(e.tshadow.replace(/\|\|px/g,"")),this.fields.letterSpacing.element.data("field").insideChange(e.letterspacing),this.fields.wordSpacing.element.data("field").insideChange(e.wordspacing),this.fields.textTransform.element.data("field").insideChange(e.texttransform),this.fields.css.element.data("field").insideChange(e.extra),this._on()},NextendFontEditor.prototype.changeFamily=function(){this.trigger("afont",this.fields.family.element.val())},NextendFontEditor.prototype.changeColor=function(){this.trigger("color",this.fields.color.element.val())},NextendFontEditor.prototype.changeSize=function(){this.trigger("size",this.fields.size.element.val().replace("|*|","||"))},NextendFontEditor.prototype.changeLineHeight=function(){this.trigger("lineheight",this.fields.lineHeight.element.val())},NextendFontEditor.prototype.changeWeight=function(){this.trigger("weight",this.fields.weight.element.val())},NextendFontEditor.prototype.changeDecoration=function(){var e=this.fields.decoration.element.val(),t=0;-1!=e.indexOf("italic")&&(t=1),this.trigger("italic",t);var i=0;-1!=e.indexOf("underline")&&(i=1),this.trigger("underline",i)},NextendFontEditor.prototype.changeAlign=function(){this.trigger("align",this.fields.align.element.val())},NextendFontEditor.prototype.changeShadow=function(){this.trigger("tshadow",this.fields.shadow.element.val())},NextendFontEditor.prototype.changeLetterSpacing=function(){this.trigger("letterspacing",this.fields.letterSpacing.element.val())},NextendFontEditor.prototype.changeWordSpacing=function(){this.trigger("wordspacing",this.fields.wordSpacing.element.val())},NextendFontEditor.prototype.changeTextTransform=function(){this.trigger("texttransform",this.fields.textTransform.element.val())},NextendFontEditor.prototype.changeCSS=function(){this.trigger("extra",this.fields.css.element.val())},scope.NextendFontEditor=NextendFontEditor,NextendFontRenderer.prototype=Object.create(NextendVisualRenderer.prototype),NextendFontRenderer.prototype.constructor=NextendFontRenderer,NextendFontRenderer.prototype.getCSS=function(e,t,i,n,o){if(n=$.extend([],n),n[0]=$.extend(this.editorController.getEmptyFont(),n[0]),this.editorController.previewModesList[e].renderOptions.combined)for(var r=1;r<n.length;r++)n[r]=$.extend({},n[r-1],n[r]),n[r].size==n[0].size&&(n[r].size="100||%");return NextendVisualRenderer.prototype.getCSS.call(this,e,t,i,n,o)},NextendFontRenderer.prototype.makeStylecolor=function(e,t){t.color="#"+e.substr(0,6)+";\ncolor: "+N2Color.hex2rgbaCSS(e)},NextendFontRenderer.prototype.makeStylesize=function(e,t){var i=e.split("||");"px"==i[1]?t.fontSize=i[0]/this.editorController.fontSize*100+"%":t.fontSize=e.replace("||","")},NextendFontRenderer.prototype.makeStyletshadow=function(e,t){var i=e.split("|*|");"0"==i[0]&&"0"==i[1]&&"0"==i[2]?t.textShadow="none":t.textShadow=i[0]+"px "+i[1]+"px "+i[2]+"px "+N2Color.hex2rgbaCSS(i[3])},NextendFontRenderer.prototype.makeStyleafont=function(e,t){for(var i=e.split(","),n=0;n<i.length;n++)i[n]=this.getFamily(i[n].replace(/^\s+|\s+$/gm,"").replace(/"|'/gm,""));t.fontFamily=i.join(",")},NextendFontRenderer.prototype.getFamily=function(e){var t=$(window).triggerHandler("n2Family",[e]);return void 0===t&&(t=e),"'"+t+"'"},NextendFontRenderer.prototype.makeStylelineheight=function(e,t){t.lineHeight=e},NextendFontRenderer.prototype.makeStyleweight=NextendFontRenderer.prototype.makeStylebold=function(e,t){1==e?t.fontWeight="bold":e>1?t.fontWeight=e:t.fontWeight="normal"},NextendFontRenderer.prototype.makeStyleitalic=function(e,t){1==e?t.fontStyle="italic":t.fontStyle="normal"},NextendFontRenderer.prototype.makeStyleunderline=function(e,t){1==e?t.textDecoration="underline":t.textDecoration="none"},NextendFontRenderer.prototype.makeStylealign=function(e,t){t.textAlign=e},NextendFontRenderer.prototype.makeStyleletterspacing=function(e,t){t.letterSpacing=e},NextendFontRenderer.prototype.makeStylewordspacing=function(e,t){t.wordSpacing=e},NextendFontRenderer.prototype.makeStyletexttransform=function(e,t){t.textTransform=e},NextendFontRenderer.prototype.makeStyleextra=function(e,t){t.raw=e},scope.NextendFontRenderer=NextendFontRenderer}(n2,window),N2Require("Icons",[],[],function(e,t,i){function n(e){t.Icons=this,this.data=e,this.keys={};for(var i in this.data)this.keys[this.data[i].id]=this.data[i]}n.prototype.render=function(t){var n=t.split(":");if(2!=n.length)return!1;var o=n[0],r=n[1];if(this.keys[o]==i)return!1;var a=this.keys[o];return a.data[r]==i?!1:(a.isLoaded==i&&(e("head").append("<link rel='stylesheet' href='"+a.css+"' type='text/css' media='screen'>"),a.isLoaded=!0),a.isLigature?{"class":a["class"],ligature:r}:{"class":a["class"]+" "+a.prefix+r,ligature:""})},n.prototype._render=function(e,t){return e.isLigature?'<i class="n2i '+e["class"]+'">'+t+"</i>":'<i class="n2i '+e["class"]+" "+e.prefix+t+'"></i>'};var o=!1;return n.prototype.showModal=function(t){if(o=t,this.modal==i){var n=e("<div></div>"),r=e('<input class="n2-h5" placeholder="'+n2_("Search")+'" type="text" name="search-icon" value="" style="width:280px;"/>').appendTo(e('<div class="n2-form-element-text n2-border-radius" style="margin: 10px 0 0 20px;"/>').appendTo(n));for(var a in this.data){var s=this.data[a];s.isLoaded==i&&(e("head").append("<link rel='stylesheet' href='"+s.css+"' type='text/css' media='screen'>"),s.isLoaded=!0);var l=e('<div class="n2-form-tab "></div>').appendTo(n);l.append('<div class="n2-h2 n2-content-box-title-bg">'+s.label+"</div>");var d=e('<div class="n2-description"></div>').appendTo(l);for(var h in s.data)e('<div class="n2-icon" data-identifier="'+s.id+":"+h+'" data-kw="'+s.data[h].kw.toLowerCase()+'">'+this._render(s,h)+"</div>").on("click",e.proxy(function(t){o(e(t.currentTarget).data("identifier")),this.modal.hide(t)},this)).appendTo(d)}var p=n.find(".n2-icon");r.on("keyup",e.proxy(function(t){var i=e(t.target).val();if(i.length<=1)p.css("display","");else{var n=p.filter("[data-kw*='"+i+"']");p.not(n).css("display","none"),n.css("display","")}},this)),this.modal=new NextendModal({zero:{size:[1200,600],fit:!0,title:"Icons",back:!1,close:!0,content:n}},!1),this.modal.setCustomClass("n2-icons-modal")}this.modal.show()},n}),function(e,t){function i(){this.referenceKeys={},NextendVisualManagerCore.prototype.constructor.apply(this,arguments)}function n(){NextendVisualCore.prototype.constructor.apply(this,arguments)}i.prototype=Object.create(NextendVisualManagerCore.prototype),i.prototype.constructor=i,i.prototype.loadDefaults=function(){NextendVisualManagerCore.prototype.loadDefaults.apply(this,arguments),this.type="image",this.labels={visual:n2_("image"),visuals:n2_("images")},this.fontClassName=""},i.prototype.initController=function(){return new NextendImageEditorController},i.prototype.createVisual=function(e){return new n(e,this)},i.prototype.firstLoadVisuals=function(e){for(var t=0;t<e.length;t++)this.referenceKeys[e[t].hash]=this.visuals[e[t].id]=this.createVisual(e[t])},i.prototype.getVisual=function(t){if(""!=t){var i=md5(t);if("undefined"!=typeof this.referenceKeys[i])return this.referenceKeys[i];if("undefined"!=typeof this.visualLoadDeferreds[i])return this.visualLoadDeferreds[i];var n=e.Deferred();return this.visualLoadDeferreds[i]=n,this._loadVisualFromServer(t).done(e.proxy(function(){n.resolve(this.referenceKeys[i]),delete this.visualLoadDeferreds[i]},this)).fail(e.proxy(function(){n.resolve({id:-1,name:n2_("Empty")}),delete this.visualLoadDeferreds[i]},this)),n}nextend.notificationCenter.error("The image is empty",{timeout:3})},i.prototype._loadVisualFromServer=function(t){return NextendAjaxHelper.ajax({type:"POST",url:NextendAjaxHelper.makeAjaxUrl(this.parameters.ajaxUrl,{nextendaction:"loadVisualForImage"}),data:{image:t},dataType:"json"}).done(e.proxy(function(e){var t=e.data.visual;this.referenceKeys[t.hash]=this.visuals[t.id]=this.createVisual(t)},this))},i.prototype.isVisualData=function(e){return""!=e},i.prototype.setVisual=function(t){t.preventDefault(),this.controller.isChanged?this.saveActiveVisual(this.activeVisual.name).done(e.proxy(function(i){e(window).trigger(i.data.visual.hash,this.activeVisual.value),this.hide(t)},this)):this.hide(t)},i.prototype.getBase64=function(){return Base64.encode(JSON.stringify(this.controller.get("set")))},i.prototype.loadDataToController=function(t){this.isVisualData(t)?e.when(this.getVisual(t)).done(e.proxy(function(e){e.id>0?e.activate():console.error(t+" visual is not found linked")},this)):(this.hide(),nextend.notificationCenter.error("Image field can not be empty!"))},t.NextendImageManager=i,n.prototype=Object.create(NextendVisualCore.prototype),n.prototype.constructor=n,n.prototype.setValue=function(e,t){this.base64=e,this.value=JSON.parse(Base64.decode(e))},n.prototype.activate=function(e){"undefined"!=typeof e&&e.preventDefault(),this.visualManager.changeActiveVisual(this),this.visualManager.controller.load(this,!1,this.visualManager.showParameters)},t.NextendImage=n}(n2,window),function(e,t){function i(){NextendVisualEditorControllerWithEditor.prototype.constructor.apply(this,arguments)}function n(){this.previews=null,this.desktopImage="",NextendVisualEditor.prototype.constructor.apply(this,arguments),this.fields={"desktop-size":{element:e("#n2-image-editordesktop-size"),events:{"nextendChange.n2-editor":e.proxy(this.changeSize,this,"desktop")}},"desktop-retina-image":{element:e("#n2-image-editordesktop-retina-image"),events:{"nextendChange.n2-editor":e.proxy(this.changeImage,this,"desktop-retina")}},"desktop-retina-size":{element:e("#n2-image-editordesktop-retina-size"),events:{"nextendChange.n2-editor":e.proxy(this.changeSize,this,"desktop-retina")}},"tablet-image":{element:e("#n2-image-editortablet-image"),events:{"nextendChange.n2-editor":e.proxy(this.changeImage,this,"tablet")}},"tablet-size":{element:e("#n2-image-editortablet-size"),events:{"nextendChange.n2-editor":e.proxy(this.changeSize,this,"tablet")}},"tablet-retina-image":{element:e("#n2-image-editortablet-retina-image"),events:{"nextendChange.n2-editor":e.proxy(this.changeImage,this,"tablet-retina")}},"tablet-retina-size":{element:e("#n2-image-editortablet-retina-size"),events:{"nextendChange.n2-editor":e.proxy(this.changeSize,this,"tablet-retina")}},"mobile-image":{element:e("#n2-image-editormobile-image"),events:{"nextendChange.n2-editor":e.proxy(this.changeImage,this,"mobile")}},"mobile-size":{element:e("#n2-image-editormobile-size"),events:{"nextendChange.n2-editor":e.proxy(this.changeSize,this,"mobile")}},"mobile-retina-image":{element:e("#n2-image-editormobile-retina-image"),events:{"nextendChange.n2-editor":e.proxy(this.changeImage,this,"mobile-retina")}},"mobile-retina-size":{element:e("#n2-image-editormobile-retina-size"),events:{"nextendChange.n2-editor":e.proxy(this.changeSize,this,"mobile-retina")}}},this.previews={desktop:e("#n2-image-editordesktop-preview"),"desktop-retina":e("#n2-image-editordesktop-retina-preview"),tablet:e("#n2-image-editortablet-preview"),"tablet-retina":e("#n2-image-editortablet-retina-preview"),mobile:e("#n2-image-editormobile-preview"),"mobile-retina":e("#n2-image-editormobile-retina-preview")};e(this.buttonGenerate()).on("click",e.proxy(this.generateImage,this,"tablet")).insertAfter(this.fields["tablet-image"].element.parent()),e(this.buttonGenerate()).on("click",e.proxy(this.generateImage,this,"mobile")).insertAfter(this.fields["mobile-image"].element.parent())}i.prototype=Object.create(NextendVisualEditorControllerWithEditor.prototype),i.prototype.constructor=i,i.prototype.loadDefaults=function(){NextendVisualEditorControllerWithEditor.prototype.loadDefaults.call(this),this.type="image",this.currentImage=""},i.prototype.get=function(e){return this.currentVisual},i.prototype.getEmptyVisual=function(){return{desktop:{size:"0|*|0"},"desktop-retina":{image:"",size:"0|*|0"},tablet:{image:"",size:"0|*|0"},"tablet-retina":{image:"",size:"0|*|0"},mobile:{image:"",size:"0|*|0"},"mobile-retina":{image:"",size:"0|*|0"}}},i.prototype.initEditor=function(){return new n},i.prototype._load=function(e,t,i){this.currentImage=e.visual.image,NextendVisualEditorControllerWithEditor.prototype._load.call(this,e.value,t,i)},i.prototype.loadToEditor=function(){this.currentVisual=e.extend({},this.getEmptyVisual(),this.currentVisual),this.editor.load(this.currentImage,this.currentVisual)},i.prototype.propertyChanged=function(e,t,i,n){this.isChanged=!0,this.currentVisual[t][i]=n},t.NextendImageEditorController=i,n.prototype=Object.create(NextendVisualEditor.prototype),n.prototype.constructor=n,n.prototype.load=function(t,i){this._off();for(var n in this.fields){var o=[n.substring(0,n.lastIndexOf("-")),n.substring(n.lastIndexOf("-")+1)];this.fields[n].element.data("field").insideChange(i[o[0]][o[1]])}this.desktopImage=t,this.makePreview("desktop",t),"0|*|0"==i.desktop.size&&this.getImageSize(t).done(e.proxy(function(e,t){this.fields["desktop-size"].element.data("field").insideChange(e+"|*|"+t)},this));for(var n in i)"undefined"!=typeof i[n].image&&this.makePreview(n,i[n].image);this._on()},n.prototype.changeImage=function(t,i,n){var o=n.element.val();this.makePreview(t,o)?this.getImageSize(o).done(e.proxy(function(e,i){this.fields[t+"-size"].element.data("field").insideChange(e+"|*|"+i)},this)):this.fields[t+"-size"].element.data("field").insideChange("0|*|0"),this.trigger(t,"image",o)},n.prototype.changeSize=function(e,t,i){this.trigger(e,"size",i.element.val())},n.prototype.makePreview=function(e,t){return t?(this.previews[e].html('<img style="max-width:100%; max-height: 300px;" src="'+nextend.imageHelper.fixed(t)+'" />'),!0):(this.previews[e].html(""),!1)},n.prototype.getImageSize=function(t){var i=e.Deferred(),n=new Image;return n.onload=function(){i.resolve(n.width,n.height)},n.src=nextend.imageHelper.fixed(t),(n.complete||4===n.readyState)&&n.onload(),i},n.prototype.buttonGenerate=function(){return'<a href="#" class="n2-button n2-button-normal n2-button-m n2-radius-s n2-button-grey n2-h5 n2-uc">'+n2_("Generate")+"</a>"},n.prototype.generateImage=function(t){var i=this.desktopImage;return""==i?(nextend.notificationCenter.error(n2_("Desktop image is empty!"),{timeout:3}),!1):NextendAjaxHelper.ajax({type:"POST",url:NextendAjaxHelper.makeAjaxUrl(nextend.imageManager.parameters.ajaxUrl,{nextendaction:"generateImage"}),data:{device:t,image:i},dataType:"json"}).done(e.proxy(function(e){var i=e.data.image;this.fields[t+"-image"].element.data("field").insideChange(nextend.imageHelper.make(i))},this))},n.prototype.trigger=function(e,t,i){this.$.trigger("change",[e,t,i])},t.NextendImageEditor=n}(n2,window),function(e,t){function i(){NextendVisualManagerSetsAndMore.prototype.constructor.apply(this,arguments)}function n(){NextendVisualWithSetRow.prototype.constructor.apply(this,arguments)}i.prototype=Object.create(NextendVisualManagerSetsAndMore.prototype),i.prototype.constructor=i,i.prototype.loadDefaults=function(){NextendVisualManagerSetsAndMore.prototype.loadDefaults.apply(this,arguments),this.type="style",this.labels={visual:n2_("style"),visuals:n2_("styles")},this.styleClassName2="",this.fontClassName="",this.fontClassName2=""},i.prototype.initController=function(){return new NextendStyleEditorController(this.parameters.renderer.modes)},i.prototype.addVisualUsage=function(e,t,i){if(parseInt(t)>0)return this._addLinkedStyle(e,t,i);try{return this._renderStaticStyle(e,t,i),!0}catch(n){return!1}},i.prototype._addLinkedStyle=function(t,i,n){var o=this.parameters.renderer.usedStyles,r=e.Deferred();return e.when(this.getVisual(i)).done(e.proxy(function(i){i.id>0?("undefined"==typeof n?"undefined"==typeof o[i.id]?(o[i.id]=[t],this.renderLinkedStyle(t,i,n)):-1==e.inArray(t,o[i.id])&&(o[i.id].push(t),this.renderLinkedStyle(t,i,n)):this.renderLinkedStyle(t,i,n),r.resolve(!0)):r.resolve(!1)},this)).fail(function(){r.resolve(!1)}),r},i.prototype.renderLinkedStyle=function(e,t,i){"undefined"==typeof i&&(i=this.parameters.renderer.pre),nextend.css.add(this.renderer.getCSS(e,i,"."+this.getClass(t.id,e),t.value,{deleteRule:!0}))},i.prototype._renderStaticStyle=function(e,t,i){"undefined"==typeof i&&(i=this.parameters.renderer.pre);var n=t;"{"!=n[0]&&(n=Base64.decode(n)),nextend.css.add(this.renderer.getCSS(e,i,"."+this.getClass(t,e),JSON.parse(n).data,{}))},i.prototype.removeUsedStyle=function(t,i){var n=this.parameters.renderer.usedStyles;if("undefined"!=typeof n[i]){var o=e.inArray(t,n[i]);o>-1&&n[i].splice(o,1)}},i.prototype.getClass=function(e,t){return parseInt(e)>0?"n2-style-"+e+"-"+t:""==e?"":"n2-style-"+md5(e)+"-"+t},i.prototype.createVisual=function(e,t){return new n(e,t,this)},i.prototype.setConnectedStyle=function(t){this.styleClassName2=e("#"+t).data("field").renderStyle()},i.prototype.setConnectedFont=function(t){this.fontClassName=e("#"+t).data("field").renderFont()},i.prototype.setConnectedFont2=function(t){this.fontClassName2=e("#"+t).data("field").renderFont()},t.NextendStyleManager=i,n.prototype=Object.create(NextendVisualWithSetRow.prototype),n.prototype.constructor=n,n.prototype.removeRules=function(){var e=this.isUsed();if(e)for(var t=0;t<e.length;t++)this.visualManager.removeRules(e[t],this)},n.prototype.render=function(){var e=this.isUsed();if(e)for(var t=0;t<e.length;t++)this.visualManager.renderLinkedStyle(e[t],this)},n.prototype.isUsed=function(){return"undefined"!=typeof this.visualManager.parameters.renderer.usedStyles[this.id]?this.visualManager.parameters.renderer.usedStyles[this.id]:!1},t.NextendStyle=n}(n2,window),function($,scope){function NextendStyleEditorController(){NextendVisualEditorController.prototype.constructor.apply(this,arguments),this.preview=$("#n2-style-editor-preview").css("fontSize","16px"),this.initBackgroundColor()}function NextendStyleEditor(){NextendVisualEditor.prototype.constructor.apply(this,arguments),this.fields={backgroundColor:{element:$("#n2-style-editorbackgroundcolor"),events:{"nextendChange.n2-editor":$.proxy(this.changeBackgroundColor,this)}},opacity:{element:$("#n2-style-editoropacity"),events:{"outsideChange.n2-editor":$.proxy(this.changeOpacity,this)}},padding:{element:$("#n2-style-editorpadding"),events:{"outsideChange.n2-editor":$.proxy(this.changePadding,this)}},boxShadow:{element:$("#n2-style-editorboxshadow"),events:{"outsideChange.n2-editor":$.proxy(this.changeBoxShadow,this)}},border:{element:$("#n2-style-editorborder"),events:{"outsideChange.n2-editor":$.proxy(this.changeBorder,this)}},borderRadius:{element:$("#n2-style-editorborderradius"),events:{"outsideChange.n2-editor":$.proxy(this.changeBorderRadius,this)}},extracss:{element:$("#n2-style-editorextracss"),events:{"outsideChange.n2-editor":$.proxy(this.changeExtraCSS,this)}}}}function NextendStyleRenderer(){NextendVisualRenderer.prototype.constructor.apply(this,arguments)}NextendStyleEditorController.prototype=Object.create(NextendVisualEditorController.prototype),NextendStyleEditorController.prototype.constructor=NextendStyleEditorController,NextendStyleEditorController.prototype.loadDefaults=function(){NextendVisualEditorController.prototype.loadDefaults.call(this),this.type="style",this.preview=null},NextendStyleEditorController.prototype.initPreviewModes=function(){this.previewModes={2:[this.previewModesList.button,this.previewModesList.box],3:[this.previewModesList.paragraph]}},NextendStyleEditorController.prototype.initRenderer=function(){return new NextendStyleRenderer(this)},NextendStyleEditorController.prototype.initEditor=function(){return new NextendStyleEditor},NextendStyleEditorController.prototype._load=function(e,t,i){e.length&&(e[0]=$.extend({},this.getEmptyStyle(),e[0])),NextendVisualEditorController.prototype._load.call(this,e,t,i)},NextendStyleEditorController.prototype.asyncVisualData=function(e,t,i){e.length&&(e[0]=$.extend({},this.getEmptyStyle(),e[0])),NextendVisualEditorController.prototype.asyncVisualData.call(this,e,t,i)},NextendStyleEditorController.prototype.getEmptyStyle=function(){return{backgroundcolor:"ffffff00",opacity:100,padding:"0|*|0|*|0|*|0|*|px",boxshadow:"0|*|0|*|0|*|0|*|000000ff",border:"0|*|solid|*|000000ff",borderradius:"0",extra:""}},NextendStyleEditorController.prototype.getCleanVisual=function(){return{extra:""}},NextendStyleEditorController.prototype.getEmptyVisual=function(){return[this.getEmptyStyle()]},NextendStyleEditorController.prototype.initBackgroundColor=function(){new N2Classes.FormElementText("n2-style-editor-background-color"),new N2Classes.FormElementColor("n2-style-editor-background-color",0);var e=this.lightbox.find(".n2-editor-preview-box");$("#n2-style-editor-background-color").on("nextendChange",function(){e.css("background","#"+$(this).val())})},NextendStyleEditorController.prototype._renderPreview=function(){NextendVisualEditorController.prototype._renderPreview.call(this),this.addStyle(this.renderer.getCSS(this.currentPreviewMode,"","."+this.getPreviewCssClass(),this.currentVisual,{activeTab:this.currentTabIndex}))},NextendStyleEditorController.prototype.setPreview=function(mode){var html="";html="undefined"!=typeof this.localModePreview[mode]&&""!=this.localModePreview[mode]?this.localModePreview[mode]:this.previewModesList[mode].preview;var styleClassName=this.getPreviewCssClass(),fontClassName=nextend.styleManager.fontClassName,fontClassName2=nextend.styleManager.fontClassName2,styleClassName2=nextend.styleManager.styleClassName2;html=html.replace(/\{([^]*?)\}/g,function(match,script){return eval(script)}),this.preview.html(html)},NextendStyleEditorController.prototype.getPreviewCssClass=function(){return"n2-"+this.type+"-editor-preview"},scope.NextendStyleEditorController=NextendStyleEditorController,NextendStyleEditor.prototype=Object.create(NextendVisualEditor.prototype),NextendStyleEditor.prototype.constructor=NextendStyleEditor,NextendStyleEditor.prototype.load=function(e){this._off(),this.fields.backgroundColor.element.data("field").insideChange(e.backgroundcolor),this.fields.opacity.element.data("field").insideChange(e.opacity),this.fields.padding.element.data("field").insideChange(e.padding),this.fields.boxShadow.element.data("field").insideChange(e.boxshadow),this.fields.border.element.data("field").insideChange(e.border),this.fields.borderRadius.element.data("field").insideChange(e.borderradius),this.fields.extracss.element.data("field").insideChange(e.extra),this._on()},NextendStyleEditor.prototype.changeBackgroundColor=function(){this.trigger("backgroundcolor",this.fields.backgroundColor.element.val())},NextendStyleEditor.prototype.changeOpacity=function(){this.trigger("opacity",this.fields.opacity.element.val())},NextendStyleEditor.prototype.changePadding=function(){this.trigger("padding",this.fields.padding.element.val())},NextendStyleEditor.prototype.changeBoxShadow=function(){this.trigger("boxshadow",this.fields.boxShadow.element.val())},NextendStyleEditor.prototype.changeBorder=function(){this.trigger("border",this.fields.border.element.val())},NextendStyleEditor.prototype.changeBorderRadius=function(){this.trigger("borderradius",this.fields.borderRadius.element.val())},NextendStyleEditor.prototype.changeExtraCSS=function(){this.trigger("extra",this.fields.extracss.element.val())},scope.NextendStyleEditor=NextendStyleEditor,NextendStyleRenderer.prototype=Object.create(NextendVisualRenderer.prototype),NextendStyleRenderer.prototype.constructor=NextendStyleRenderer,NextendStyleRenderer.prototype.getCSS=function(e,t,i,n,o){return n[0]=$.extend(this.editorController.getEmptyStyle(),n[0]),NextendVisualRenderer.prototype.getCSS.call(this,e,t,i,n,o)},NextendStyleRenderer.prototype.makeStylebackgroundcolor=function(e,t){t.background="#"+e.substr(0,6)+";\n background: "+N2Color.hex2rgbaCSS(e)},NextendStyleRenderer.prototype.makeStyleopacity=function(e,t){t.opacity=parseInt(e)/100},NextendStyleRenderer.prototype.makeStylepadding=function(e,t){for(var i=e.split("|*|"),n=i.pop(),o=0;o<i.length;o++)i[o]+=n;t.padding=i.join(" ")},NextendStyleRenderer.prototype.makeStyleboxshadow=function(e,t){var i=e.split("|*|");"0"==i[0]&&"0"==i[1]&&"0"==i[2]&&"0"==i[3]?t.boxShadow="none":t.boxShadow=i[0]+"px "+i[1]+"px "+i[2]+"px "+i[3]+"px "+N2Color.hex2rgbaCSS(i[4])},NextendStyleRenderer.prototype.makeStyleborder=function(e,t){var i=e.split("|*|");t.borderWidth=i[0]+"px",t.borderStyle=i[1],t.borderColor="#"+i[2].substr(0,6)+";\n border-color:"+N2Color.hex2rgbaCSS(i[2])},NextendStyleRenderer.prototype.makeStyleborderradius=function(e,t){var i=e.split("|*|");i.push(""),t.borderRadius=e+"px"},NextendStyleRenderer.prototype.makeStyleextra=function(e,t){t.raw=e}}(n2,window),function(e,t){function i(t,i,n){this.style=t,this.subset=i,this.fonts=n,e(window).on("n2Family",e.proxy(this.loadFamily,this))}i.prototype.loadFamily=function(t,i){var n=i.toLowerCase();return"undefined"!=typeof this.fonts[n]?(e("<link />").attr({rel:"stylesheet",type:"text/css",href:"//fonts.googleapis.com/css?family="+encodeURIComponent(this.fonts[n]+":"+this.style)+"&subset="+encodeURIComponent(this.subset)}).appendTo(e("head")),this.fonts[n]):i},t.Nex