Ivory Search – WordPress Search Plugin - Version 4.6.1

Version Description

  • Fixed - Broken AJAX search results scrollbar.
  • Fixed - Security issue in plugin settings (Thanks to Jinson Varghese Behanan from Astra Security).
  • Improved - Do not search special character stopwords.
Download this release

Release Info

Developer vinod dalvi
Plugin Icon 128x128 Ivory Search – WordPress Search Plugin
Version 4.6.1
Comparing to
See all releases

Code changes from version 4.6 to 4.6.1

add-search-to-menu.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Ivory Search
4
  * Plugin URI: https://ivorysearch.com
5
  * Description: The WordPress Search plugin that includes Search Form Customizer, WooCommerce Search, Image Search, Search Shortcode, AJAX Search & Live Search support!
6
- * Version: 4.6
7
  * Author: Ivory Search
8
  * Author URI: https://ivorysearch.com/
9
  * License: GPL2+
@@ -108,7 +108,7 @@ final class Ivory_Search {
108
  private function define_constants() {
109
 
110
  if ( ! defined( 'IS_VERSION' ) ) {
111
- define( 'IS_VERSION', '4.6' );
112
  }
113
  if ( ! defined( 'IS_PLUGIN_FILE' ) ) {
114
  define( 'IS_PLUGIN_FILE', __FILE__ );
3
  * Plugin Name: Ivory Search
4
  * Plugin URI: https://ivorysearch.com
5
  * Description: The WordPress Search plugin that includes Search Form Customizer, WooCommerce Search, Image Search, Search Shortcode, AJAX Search & Live Search support!
6
+ * Version: 4.6.1
7
  * Author: Ivory Search
8
  * Author URI: https://ivorysearch.com/
9
  * License: GPL2+
108
  private function define_constants() {
109
 
110
  if ( ! defined( 'IS_VERSION' ) ) {
111
+ define( 'IS_VERSION', '4.6.1' );
112
  }
113
  if ( ! defined( 'IS_PLUGIN_FILE' ) ) {
114
  define( 'IS_PLUGIN_FILE', __FILE__ );
admin/class-is-editor.php CHANGED
@@ -41,7 +41,21 @@ class IS_Search_Editor
41
  if ( isset( $_GET['post'] ) && is_numeric( $_GET['post'] ) ) {
42
  $url = esc_url( menu_page_url( 'ivory-search', false ) ) . '&post=' . $_GET['post'] . '&action=edit';
43
  }
44
- $tab = ( isset( $_GET['tab'] ) ? $_GET['tab'] : 'includes' );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
  foreach ( $this->panels as $id => $panel ) {
46
  $class = ( $tab == $id ? 'active' : '' );
47
  echo sprintf(
41
  if ( isset( $_GET['post'] ) && is_numeric( $_GET['post'] ) ) {
42
  $url = esc_url( menu_page_url( 'ivory-search', false ) ) . '&post=' . $_GET['post'] . '&action=edit';
43
  }
44
+ $tab = 'includes';
45
+ switch ( $_GET['tab'] ) {
46
+ case 'excludes':
47
+ $tab = 'excludes';
48
+ break;
49
+ case 'customize':
50
+ $tab = 'customize';
51
+ break;
52
+ case 'ajax':
53
+ $tab = 'ajax';
54
+ break;
55
+ case 'options':
56
+ $tab = 'options';
57
+ break;
58
+ }
59
  foreach ( $this->panels as $id => $panel ) {
60
  $class = ( $tab == $id ? 'active' : '' );
61
  echo sprintf(
admin/class-is-settings-fields.php CHANGED
@@ -153,8 +153,17 @@ class IS_Settings_Fields
153
 
154
  }
155
 
 
 
 
 
 
 
 
 
 
156
 
157
- if ( !isset( $_GET['tab'] ) || 'settings' === $_GET['tab'] ) {
158
  add_settings_section(
159
  'ivory_search_settings',
160
  '',
@@ -220,7 +229,7 @@ class IS_Settings_Fields
220
  register_setting( 'ivory_search', 'is_settings' );
221
  } else {
222
 
223
- if ( isset( $_GET['tab'] ) && 'menu-search' === $_GET['tab'] ) {
224
  add_settings_section(
225
  'ivory_search_section',
226
  '',
@@ -237,7 +246,7 @@ class IS_Settings_Fields
237
  register_setting( 'ivory_search', 'is_menu_search' );
238
  } else {
239
 
240
- if ( isset( $_GET['tab'] ) && 'analytics' === $_GET['tab'] ) {
241
  add_settings_section(
242
  'ivory_search_analytics',
243
  '',
153
 
154
  }
155
 
156
+ $tab = 'settings';
157
+ switch ( $_GET['tab'] ) {
158
+ case 'menu-search':
159
+ $tab = 'menu-search';
160
+ break;
161
+ case 'analytics':
162
+ $tab = 'analytics';
163
+ break;
164
+ }
165
 
166
+ if ( 'settings' === $tab ) {
167
  add_settings_section(
168
  'ivory_search_settings',
169
  '',
229
  register_setting( 'ivory_search', 'is_settings' );
230
  } else {
231
 
232
+ if ( 'menu-search' === $tab ) {
233
  add_settings_section(
234
  'ivory_search_section',
235
  '',
246
  register_setting( 'ivory_search', 'is_menu_search' );
247
  } else {
248
 
249
+ if ( 'analytics' === $tab ) {
250
  add_settings_section(
251
  'ivory_search_analytics',
252
  '',
admin/partials/search-form.php CHANGED
@@ -45,7 +45,21 @@ if ( ! defined( 'ABSPATH' ) ) {
45
  $disabled = ' disabled="disabled"';
46
  }
47
 
48
- $tab = isset( $_GET['tab'] ) ? $_GET['tab'] : 'includes';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49
  ?>
50
 
51
  <form method="post" action="<?php echo esc_url( add_query_arg( array( 'post' => $post_id, 'tab' => $tab ), menu_page_url( 'ivory-search', false ) ) ); ?>" id="is-admin-form-element"<?php do_action( 'is_post_edit_form_tag' ); ?>>
45
  $disabled = ' disabled="disabled"';
46
  }
47
 
48
+ $tab = 'includes';
49
+ switch ( $_GET['tab'] ) {
50
+ case 'excludes':
51
+ $tab = 'excludes';
52
+ break;
53
+ case 'customize':
54
+ $tab = 'customize';
55
+ break;
56
+ case 'ajax':
57
+ $tab = 'ajax';
58
+ break;
59
+ case 'options':
60
+ $tab = 'options';
61
+ break;
62
+ }
63
  ?>
64
 
65
  <form method="post" action="<?php echo esc_url( add_query_arg( array( 'post' => $post_id, 'tab' => $tab ), menu_page_url( 'ivory-search', false ) ) ); ?>" id="is-admin-form-element"<?php do_action( 'is_post_edit_form_tag' ); ?>>
admin/partials/settings-form.php CHANGED
@@ -51,7 +51,15 @@ if ( ! defined( 'ABSPATH' ) ) {
51
  ),
52
  );
53
 
54
- $tab = isset( $_GET['tab'] ) ? $_GET['tab'] : 'settings';
 
 
 
 
 
 
 
 
55
  $url = esc_url( menu_page_url( 'ivory-search-settings', false ) );
56
  ?>
57
  <ul id="search-form-editor-tabs">
51
  ),
52
  );
53
 
54
+ $tab = 'settings';
55
+ switch ( $_GET['tab'] ) {
56
+ case 'menu-search':
57
+ $tab = 'menu-search';
58
+ break;
59
+ case 'analytics':
60
+ $tab = 'analytics';
61
+ break;
62
+ }
63
  $url = esc_url( menu_page_url( 'ivory-search-settings', false ) );
64
  ?>
65
  <ul id="search-form-editor-tabs">
languages/add-search-to-menu.pot CHANGED
@@ -2,7 +2,7 @@
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: Ivory Search\n"
5
- "POT-Creation-Date: 2021-03-17 10:29+0530\n"
6
  "PO-Revision-Date: 2020-03-17 21:05+0530\n"
7
  "Last-Translator: \n"
8
  "Language-Team: Ivory Search <admin@ivorysearch.com>\n"
@@ -21,7 +21,7 @@ msgstr ""
21
  msgid "The changes you made will be lost if you navigate away from this page."
22
  msgstr ""
23
 
24
- #: ../admin/class-is-admin.php:138 ../admin/class-is-settings-fields.php:362
25
  #: ../admin/partials/search-form.php:23
26
  msgid "Edit Search Form"
27
  msgstr ""
@@ -40,8 +40,8 @@ msgid "Docs"
40
  msgstr ""
41
 
42
  #: ../admin/class-is-admin.php:182 ../admin/class-is-help.php:111
43
- #: ../admin/partials/search-form.php:204
44
- #: ../admin/partials/settings-form.php:107
45
  msgid "Support"
46
  msgstr ""
47
 
@@ -196,11 +196,11 @@ msgstr ""
196
  msgid "Upgrade to Pro Plus to Access"
197
  msgstr ""
198
 
199
- #: ../admin/class-is-editor.php:61
200
  msgid "The requested section does not exist."
201
  msgstr ""
202
 
203
- #: ../admin/class-is-editor.php:97 ../admin/partials/search-form.php:114
204
  #: ../includes/class-is-admin-public.php:186
205
  #: ../includes/class-is-search-form.php:469
206
  #: ../includes/class-is-search-form.php:538 ../public/class-is-public.php:207
@@ -208,756 +208,756 @@ msgstr ""
208
  msgid "Search"
209
  msgstr ""
210
 
211
- #: ../admin/class-is-editor.php:99 ../admin/partials/search-form.php:119
212
  msgid "Exclude"
213
  msgstr ""
214
 
215
- #: ../admin/class-is-editor.php:118 ../admin/partials/search-form.php:116
216
  msgid "Configure Searchable Content"
217
  msgstr ""
218
 
219
- #: ../admin/class-is-editor.php:126
220
  msgid "Post Types"
221
  msgstr ""
222
 
223
- #: ../admin/class-is-editor.php:127 ../admin/class-is-editor.php:410
224
- #: ../admin/class-is-editor.php:770 ../admin/class-is-editor.php:1137
225
- #: ../admin/class-is-editor.php:1360 ../admin/class-is-editor.php:1455
226
- #: ../admin/class-is-editor.php:1571 ../admin/class-is-settings-fields.php:106
227
  msgid "Expand All"
228
  msgstr ""
229
 
230
- #: ../admin/class-is-editor.php:127 ../admin/class-is-editor.php:410
231
- #: ../admin/class-is-editor.php:771 ../admin/class-is-editor.php:1137
232
- #: ../admin/class-is-editor.php:1360 ../admin/class-is-editor.php:1455
233
- #: ../admin/class-is-editor.php:1571 ../admin/class-is-settings-fields.php:106
234
  msgid "Collapse All"
235
  msgstr ""
236
 
237
- #: ../admin/class-is-editor.php:131
238
  msgid "Search selected post types."
239
  msgstr ""
240
 
241
- #: ../admin/class-is-editor.php:146 ../admin/class-is-editor.php:148
242
  msgid "Select Post Types"
243
  msgstr ""
244
 
245
- #: ../admin/class-is-editor.php:167
246
  msgid "No post types registered on the site."
247
  msgstr ""
248
 
249
- #: ../admin/class-is-editor.php:173
250
  msgid "Do not display post_type in the search URL"
251
  msgstr ""
252
 
253
- #: ../admin/class-is-editor.php:185 ../admin/class-is-editor.php:1129
254
  msgid "( WooCommerce )"
255
  msgstr ""
256
 
257
- #: ../admin/class-is-editor.php:187 ../admin/class-is-editor.php:1131
258
  msgid "( Images, Videos, Audios, Docs, PDFs, Files & Attachments )"
259
  msgstr ""
260
 
261
- #: ../admin/class-is-editor.php:229 ../admin/class-is-editor.php:279
262
- #: ../admin/class-is-editor.php:304 ../admin/class-is-editor.php:355
263
- #: ../admin/class-is-editor.php:1180 ../admin/class-is-editor.php:1235
264
- #: ../admin/class-is-editor.php:1259 ../admin/class-is-editor.php:1306
265
  msgid "Search.."
266
  msgstr ""
267
 
268
- #: ../admin/class-is-editor.php:233 ../admin/class-is-editor.php:1184
269
  msgid "Load All"
270
  msgstr ""
271
 
272
- #: ../admin/class-is-editor.php:238 ../admin/class-is-editor.php:1190
273
  #, php-format
274
  msgid "No %s created."
275
  msgstr ""
276
 
277
- #: ../admin/class-is-editor.php:240 ../admin/class-is-editor.php:289
278
- #: ../admin/class-is-editor.php:314 ../admin/class-is-editor.php:363
279
- #: ../admin/class-is-editor.php:1192 ../admin/class-is-editor.php:1244
280
- #: ../admin/class-is-editor.php:1270 ../admin/class-is-editor.php:1314
281
  msgid ""
282
  "Hold down the control (ctrl) or command button to select multiple options."
283
  msgstr ""
284
 
285
- #: ../admin/class-is-editor.php:248
286
  #, php-format
287
  msgid ""
288
  "The %s are not searchable as the search form is configured to only search "
289
  "specific posts of another post type."
290
  msgstr ""
291
 
292
- #: ../admin/class-is-editor.php:252
293
  #, php-format
294
  msgid "Search all %s"
295
  msgstr ""
296
 
297
- #: ../admin/class-is-editor.php:254
298
  #, php-format
299
  msgid "Search only selected %s"
300
  msgstr ""
301
 
302
- #: ../admin/class-is-editor.php:293
303
  #, php-format
304
  msgid "Search %s of all taxonomies (%s categories, tags & terms %s)"
305
  msgstr ""
306
 
307
- #: ../admin/class-is-editor.php:295
308
  #, php-format
309
  msgid "Search %s of only selected taxonomies (%s categories, tags & terms %s)"
310
  msgstr ""
311
 
312
- #: ../admin/class-is-editor.php:318
313
  #, php-format
314
  msgid "Search selected %s custom fields values"
315
  msgstr ""
316
 
317
- #: ../admin/class-is-editor.php:330
318
  msgid "Search product SKU"
319
  msgstr ""
320
 
321
- #: ../admin/class-is-editor.php:333
322
  msgid "Search product variation"
323
  msgstr ""
324
 
325
- #: ../admin/class-is-editor.php:365
326
  msgid "Selected File Types :"
327
  msgstr ""
328
 
329
- #: ../admin/class-is-editor.php:373 ../admin/class-is-editor.php:1324
330
  msgid "Search all MIME types"
331
  msgstr ""
332
 
333
- #: ../admin/class-is-editor.php:375
334
  msgid "Search only selected MIME types"
335
  msgstr ""
336
 
337
- #: ../admin/class-is-editor.php:380
338
  msgid "Search Images"
339
  msgstr ""
340
 
341
- #: ../admin/class-is-editor.php:382
342
  msgid "Search Videos"
343
  msgstr ""
344
 
345
- #: ../admin/class-is-editor.php:384
346
  msgid "Search Audios"
347
  msgstr ""
348
 
349
- #: ../admin/class-is-editor.php:386
350
  msgid "Search Text Files"
351
  msgstr ""
352
 
353
- #: ../admin/class-is-editor.php:388
354
  msgid "Search PDF Files"
355
  msgstr ""
356
 
357
- #: ../admin/class-is-editor.php:390
358
  msgid "Search Document Files"
359
  msgstr ""
360
 
361
- #: ../admin/class-is-editor.php:397
362
  #, php-format
363
  msgid ""
364
  "This search form is configured in the %s section to not search specific MIME "
365
  "types."
366
  msgstr ""
367
 
368
- #: ../admin/class-is-editor.php:400 ../admin/class-is-editor.php:1350
369
  msgid ""
370
  "You are using WordPress version less than 4.9 which does not support "
371
  "searching by MIME type."
372
  msgstr ""
373
 
374
- #: ../admin/class-is-editor.php:409 ../admin/class-is-editor.php:1359
375
  msgid "Extras"
376
  msgstr ""
377
 
378
- #: ../admin/class-is-editor.php:414
379
  msgid "Search Content"
380
  msgstr ""
381
 
382
- #: ../admin/class-is-editor.php:419
383
  #, php-format
384
  msgid "Search post title %s( File title )%s"
385
  msgstr ""
386
 
387
- #: ../admin/class-is-editor.php:422
388
  #, php-format
389
  msgid "Search post content %s( File description )%s"
390
  msgstr ""
391
 
392
- #: ../admin/class-is-editor.php:425
393
  #, php-format
394
  msgid "Search post excerpt %s( File caption )%s"
395
  msgstr ""
396
 
397
- #: ../admin/class-is-editor.php:428
398
  #, php-format
399
  msgid "Search category/tag title %s( Displays posts of the category/tag )%s"
400
  msgstr ""
401
 
402
- #: ../admin/class-is-editor.php:431
403
  #, php-format
404
  msgid ""
405
  "Search category/tag description %s( Displays posts of the category/tag )%s"
406
  msgstr ""
407
 
408
- #: ../admin/class-is-editor.php:452
409
  msgid ""
410
  "Note: The below option is disabled and set to OR as you have configured the "
411
  "search form to search multiple taxonomies."
412
  msgstr ""
413
 
414
- #: ../admin/class-is-editor.php:457
415
  msgid "AND - Search posts having all the above selected category terms"
416
  msgstr ""
417
 
418
- #: ../admin/class-is-editor.php:459
419
  msgid "OR - Search posts having any one of the above selected category terms"
420
  msgstr ""
421
 
422
- #: ../admin/class-is-editor.php:465 ../admin/class-is-editor.php:1423
423
  msgid "Post Status"
424
  msgstr ""
425
 
426
- #: ../admin/class-is-editor.php:469
427
  msgid "Search posts having selected post statuses."
428
  msgstr ""
429
 
430
- #: ../admin/class-is-editor.php:486
431
  msgid "Select Post Status"
432
  msgstr ""
433
 
434
- #: ../admin/class-is-editor.php:505 ../admin/class-is-editor.php:1364
435
  msgid "Authors"
436
  msgstr ""
437
 
438
- #: ../admin/class-is-editor.php:509
439
  msgid "Search posts created by selected authors."
440
  msgstr ""
441
 
442
- #: ../admin/class-is-editor.php:528 ../admin/class-is-editor.php:530
443
  msgid "Searches all author posts"
444
  msgstr ""
445
 
446
- #: ../admin/class-is-editor.php:558
447
  #, php-format
448
  msgid ""
449
  "This search form is configured in the %s section to not search for specific "
450
  "author posts."
451
  msgstr ""
452
 
453
- #: ../admin/class-is-editor.php:566
454
  msgid "Search author Display Name and display the posts created by that author"
455
  msgstr ""
456
 
457
- #: ../admin/class-is-editor.php:571
458
  msgid "Comments"
459
  msgstr ""
460
 
461
- #: ../admin/class-is-editor.php:580
462
  msgid "Search posts having number of comments"
463
  msgstr ""
464
 
465
- #: ../admin/class-is-editor.php:590
466
  msgid "NA"
467
  msgstr ""
468
 
469
- #: ../admin/class-is-editor.php:601
470
  msgid "Search approved comment content"
471
  msgstr ""
472
 
473
- #: ../admin/class-is-editor.php:606
474
  msgid "Password Protected"
475
  msgstr ""
476
 
477
- #: ../admin/class-is-editor.php:612
478
  msgid "Search posts with or without passwords"
479
  msgstr ""
480
 
481
- #: ../admin/class-is-editor.php:614
482
  msgid "Search posts with passwords"
483
  msgstr ""
484
 
485
- #: ../admin/class-is-editor.php:616
486
  msgid "Search posts without passwords"
487
  msgstr ""
488
 
489
- #: ../admin/class-is-editor.php:620 ../admin/class-is-editor.php:857
490
- #: ../admin/class-is-editor.php:1076 ../admin/class-is-list-table.php:33
491
  msgid "Date"
492
  msgstr ""
493
 
494
- #: ../admin/class-is-editor.php:624
495
  msgid "Search posts created only in the specified date range."
496
  msgstr ""
497
 
498
- #: ../admin/class-is-editor.php:630
499
  msgid "From"
500
  msgstr ""
501
 
502
- #: ../admin/class-is-editor.php:630
503
  msgid "To"
504
  msgstr ""
505
 
506
- #: ../admin/class-is-editor.php:654 ../admin/partials/search-form.php:126
507
  msgid "Design Search Form Colors, Text and Style"
508
  msgstr ""
509
 
510
- #: ../admin/class-is-editor.php:661 ../admin/class-is-editor.php:678
511
  msgid "Enable Search Form Customization"
512
  msgstr ""
513
 
514
- #: ../admin/class-is-editor.php:674 ../includes/class-is-search-form.php:564
515
  msgid "Customizer"
516
  msgstr ""
517
 
518
- #: ../admin/class-is-editor.php:680
519
  msgid ""
520
  "Use below customizer to customize search form colors, text and search form "
521
  "style."
522
  msgstr ""
523
 
524
- #: ../admin/class-is-editor.php:688
525
  msgid "Search Form Customizer"
526
  msgstr ""
527
 
528
- #: ../admin/class-is-editor.php:736 ../public/class-is-ajax.php:68
529
  msgid "Nothing found"
530
  msgstr ""
531
 
532
- #: ../admin/class-is-editor.php:739
533
  msgid "View All"
534
  msgstr ""
535
 
536
- #: ../admin/class-is-editor.php:743
537
  msgid "More Results.."
538
  msgstr ""
539
 
540
- #: ../admin/class-is-editor.php:754 ../admin/partials/search-form.php:131
541
  msgid "Configure AJAX Search"
542
  msgstr ""
543
 
544
- #: ../admin/class-is-editor.php:761 ../admin/class-is-editor.php:775
545
- #: ../admin/class-is-editor.php:957
546
  msgid "Enable AJAX Search"
547
  msgstr ""
548
 
549
- #: ../admin/class-is-editor.php:768
550
  msgid "AJAX Search Results"
551
  msgstr ""
552
 
553
- #: ../admin/class-is-editor.php:776
554
  msgid "Display selected content in the search results."
555
  msgstr ""
556
 
557
- #: ../admin/class-is-editor.php:783
558
  msgid "Description"
559
  msgstr ""
560
 
561
- #: ../admin/class-is-editor.php:791
562
  msgid "Excerpt"
563
  msgstr ""
564
 
565
- #: ../admin/class-is-editor.php:797
566
  msgid "Content"
567
  msgstr ""
568
 
569
- #: ../admin/class-is-editor.php:805
570
  msgid "Description Length."
571
  msgstr ""
572
 
573
- #: ../admin/class-is-editor.php:813
574
  msgid "Image"
575
  msgstr ""
576
 
577
- #: ../admin/class-is-editor.php:824
578
  msgid "Categories"
579
  msgstr ""
580
 
581
- #: ../admin/class-is-editor.php:835
582
  msgid "Tags"
583
  msgstr ""
584
 
585
- #: ../admin/class-is-editor.php:846
586
  msgid "Author"
587
  msgstr ""
588
 
589
- #: ../admin/class-is-editor.php:864
590
  msgid "Minimum number of characters required to run ajax search."
591
  msgstr ""
592
 
593
- #: ../admin/class-is-editor.php:869
594
  msgid "Search results box max height."
595
  msgstr ""
596
 
597
- #: ../admin/class-is-editor.php:872
598
  msgid "Configure the plugin text displayed in the search results."
599
  msgstr ""
600
 
601
- #: ../admin/class-is-editor.php:877
602
  msgid "Text when there is no search results. HTML tags is allowed."
603
  msgstr ""
604
 
605
- #: ../admin/class-is-editor.php:886
606
  msgid "Show 'More Results..' text in the bottom of the search results box"
607
  msgstr ""
608
 
609
- #: ../admin/class-is-editor.php:894
610
  msgid "Text for the \"More Results..\"."
611
  msgstr ""
612
 
613
- #: ../admin/class-is-editor.php:903
614
  msgid "Redirect to search results page clicking on the 'More Results..' text"
615
  msgstr ""
616
 
617
- #: ../admin/class-is-editor.php:913
618
  msgid ""
619
  "View All Result - Show link to search results page at the bottom of search "
620
  "results block."
621
  msgstr ""
622
 
623
- #: ../admin/class-is-editor.php:922
624
  msgid ""
625
  "Text for the \"View All\" which shown at the bottom of the search result."
626
  msgstr ""
627
 
628
- #: ../admin/class-is-editor.php:927
629
  msgid "Configure how the search button should work clicking on it."
630
  msgstr ""
631
 
632
- #: ../admin/class-is-editor.php:933
633
  msgid "Search button displays search results page"
634
  msgstr ""
635
 
636
- #: ../admin/class-is-editor.php:940
637
  msgid "Search button displays ajax search results"
638
  msgstr ""
639
 
640
- #: ../admin/class-is-editor.php:948 ../admin/class-is-help.php:136
641
  msgid "WooCommerce"
642
  msgstr ""
643
 
644
- #: ../admin/class-is-editor.php:955
645
  #, php-format
646
  msgid ""
647
  "Please first configure this search form in the %s section to search "
648
  "WooCommerce product post type."
649
  msgstr ""
650
 
651
- #: ../admin/class-is-editor.php:958
652
  msgid "Display selected WooCommerce content in the search results."
653
  msgstr ""
654
 
655
- #: ../admin/class-is-editor.php:965 ../admin/class-is-editor.php:1077
656
  msgid "Price"
657
  msgstr ""
658
 
659
- #: ../admin/class-is-editor.php:976
660
  msgid "Hide Price for Out of Stock Products"
661
  msgstr ""
662
 
663
- #: ../admin/class-is-editor.php:987
664
  msgid "Sale Badge"
665
  msgstr ""
666
 
667
- #: ../admin/class-is-editor.php:998
668
  msgid "SKU"
669
  msgstr ""
670
 
671
- #: ../admin/class-is-editor.php:1009
672
  msgid "Stock Status"
673
  msgstr ""
674
 
675
- #: ../admin/class-is-editor.php:1020 ../public/class-is-ajax.php:417
676
  msgid "Featured Icon"
677
  msgstr ""
678
 
679
- #: ../admin/class-is-editor.php:1031
680
  msgid "Matching Categories"
681
  msgstr ""
682
 
683
- #: ../admin/class-is-editor.php:1042
684
  msgid "Matching Tags"
685
  msgstr ""
686
 
687
- #: ../admin/class-is-editor.php:1053
688
  msgid "Details Box"
689
  msgstr ""
690
 
691
- #: ../admin/class-is-editor.php:1059
692
  msgid "Below options only apply to matching categories or tags."
693
  msgstr ""
694
 
695
- #: ../admin/class-is-editor.php:1061
696
  msgid "Product List"
697
  msgstr ""
698
 
699
- #: ../admin/class-is-editor.php:1064
700
  msgid "All Product"
701
  msgstr ""
702
 
703
- #: ../admin/class-is-editor.php:1065
704
  msgid "Featured Products"
705
  msgstr ""
706
 
707
- #: ../admin/class-is-editor.php:1066
708
  msgid "On-sale Products</option>"
709
  msgstr ""
710
 
711
- #: ../admin/class-is-editor.php:1073
712
  msgid "Order by"
713
  msgstr ""
714
 
715
- #: ../admin/class-is-editor.php:1078
716
  msgid "Random"
717
  msgstr ""
718
 
719
- #: ../admin/class-is-editor.php:1079
720
  msgid "Sales"
721
  msgstr ""
722
 
723
- #: ../admin/class-is-editor.php:1086
724
  msgid "Order"
725
  msgstr ""
726
 
727
- #: ../admin/class-is-editor.php:1089
728
  msgid "ASC"
729
  msgstr ""
730
 
731
- #: ../admin/class-is-editor.php:1090
732
  msgid "DESC"
733
  msgstr ""
734
 
735
- #: ../admin/class-is-editor.php:1109 ../admin/partials/search-form.php:121
736
  msgid "Exclude Content From Search"
737
  msgstr ""
738
 
739
- #: ../admin/class-is-editor.php:1201
740
  #, php-format
741
  msgid ""
742
  "The search form is configured in the %s section to only search specific "
743
  "posts of another post type."
744
  msgstr ""
745
 
746
- #: ../admin/class-is-editor.php:1206
747
  #, php-format
748
  msgid "Do not exclude any %s from search"
749
  msgstr ""
750
 
751
- #: ../admin/class-is-editor.php:1208
752
  #, php-format
753
  msgid "Exclude selected %s from search"
754
  msgstr ""
755
 
756
- #: ../admin/class-is-editor.php:1211
757
  #, php-format
758
  msgid ""
759
  "The search form is configured in the %1$s section to only search specific "
760
  "%2$s."
761
  msgstr ""
762
 
763
- #: ../admin/class-is-editor.php:1248
764
  #, php-format
765
  msgid ""
766
  "Do not exclude any %s from search of any taxonomies (%s categories, tags & "
767
  "terms %s)"
768
  msgstr ""
769
 
770
- #: ../admin/class-is-editor.php:1250
771
  #, php-format
772
  msgid ""
773
  "Exclude %s from search of selected taxonomies (%s categories, tags & terms "
774
  "%s)"
775
  msgstr ""
776
 
777
- #: ../admin/class-is-editor.php:1274
778
  #, php-format
779
  msgid "Exclude %s from search having selected custom fields"
780
  msgstr ""
781
 
782
- #: ../admin/class-is-editor.php:1286
783
  msgid "Exclude 'Out of Stock' products from search"
784
  msgstr ""
785
 
786
- #: ../admin/class-is-editor.php:1316
787
  msgid "Excluded File Types :"
788
  msgstr ""
789
 
790
- #: ../admin/class-is-editor.php:1326
791
  msgid "Exclude selected MIME types from search"
792
  msgstr ""
793
 
794
- #: ../admin/class-is-editor.php:1330
795
  msgid "Exclude Images"
796
  msgstr ""
797
 
798
- #: ../admin/class-is-editor.php:1332
799
  msgid "Exclude Videos"
800
  msgstr ""
801
 
802
- #: ../admin/class-is-editor.php:1334
803
  msgid "Exclude Audios"
804
  msgstr ""
805
 
806
- #: ../admin/class-is-editor.php:1336
807
  msgid "Exclude Text Files"
808
  msgstr ""
809
 
810
- #: ../admin/class-is-editor.php:1338
811
  msgid "Exclude PDF Files"
812
  msgstr ""
813
 
814
- #: ../admin/class-is-editor.php:1340
815
  msgid "Exclude Document Files"
816
  msgstr ""
817
 
818
- #: ../admin/class-is-editor.php:1347
819
  #, php-format
820
  msgid ""
821
  "This search form is configured in the %s section to search specific "
822
  "attachments."
823
  msgstr ""
824
 
825
- #: ../admin/class-is-editor.php:1368
826
  msgid "Exclude posts from search created by selected authors."
827
  msgstr ""
828
 
829
- #: ../admin/class-is-editor.php:1387 ../admin/class-is-editor.php:1389
830
  msgid "Search all author posts"
831
  msgstr ""
832
 
833
- #: ../admin/class-is-editor.php:1417
834
  #, php-format
835
  msgid ""
836
  "This search form is configured in the %s section to search posts created by "
837
  "specific authors."
838
  msgstr ""
839
 
840
- #: ../admin/class-is-editor.php:1427
841
  msgid "Exclude posts from search having selected post statuses."
842
  msgstr ""
843
 
844
- #: ../admin/class-is-editor.php:1432
845
  msgid "Exclude sticky posts from search"
846
  msgstr ""
847
 
848
- #: ../admin/class-is-editor.php:1447 ../admin/partials/search-form.php:136
849
  msgid "Advanced Search Form Options"
850
  msgstr ""
851
 
852
- #: ../admin/class-is-editor.php:1454
853
  msgid "Posts Per Page"
854
  msgstr ""
855
 
856
- #: ../admin/class-is-editor.php:1458
857
  msgid "Display selected number of posts in search results."
858
  msgstr ""
859
 
860
- #: ../admin/class-is-editor.php:1475
861
  msgid "Order Search Results"
862
  msgstr ""
863
 
864
- #: ../admin/class-is-editor.php:1478
865
  msgid "Display posts on search results page ordered by selected options."
866
  msgstr ""
867
 
868
- #: ../admin/class-is-editor.php:1503
869
  msgid "Highlight Search Terms"
870
  msgstr ""
871
 
872
- #: ../admin/class-is-editor.php:1509
873
  msgid "Highlight searched terms on search results page"
874
  msgstr ""
875
 
876
- #: ../admin/class-is-editor.php:1512
877
  msgid "Select text highlight color"
878
  msgstr ""
879
 
880
- #: ../admin/class-is-editor.php:1518
881
  msgid "Search All Or Any Search Terms"
882
  msgstr ""
883
 
884
- #: ../admin/class-is-editor.php:1522
885
  msgid ""
886
  "Select whether to search posts having all or any of the words being searched."
887
  msgstr ""
888
 
889
- #: ../admin/class-is-editor.php:1527
890
  msgid "OR - Display content having any of the search terms"
891
  msgstr ""
892
 
893
- #: ../admin/class-is-editor.php:1529
894
  msgid "AND - Display content having all the search terms"
895
  msgstr ""
896
 
897
- #: ../admin/class-is-editor.php:1535
898
  msgid "Fuzzy Matching"
899
  msgstr ""
900
 
901
- #: ../admin/class-is-editor.php:1538
902
  msgid ""
903
  "Select whether to search posts having whole or partial word being searched."
904
  msgstr ""
905
 
906
- #: ../admin/class-is-editor.php:1543
907
  msgid "Whole - Search posts that include the whole search term"
908
  msgstr ""
909
 
910
- #: ../admin/class-is-editor.php:1545
911
  msgid ""
912
  "Partial - Also search words in the posts that begins or ends with the search "
913
  "term"
914
  msgstr ""
915
 
916
- #: ../admin/class-is-editor.php:1551
917
  msgid "Keyword Stemming"
918
  msgstr ""
919
 
920
- #: ../admin/class-is-editor.php:1555
921
  msgid "Select whether to search the base word of a searched keyword."
922
  msgstr ""
923
 
924
- #: ../admin/class-is-editor.php:1556
925
  msgid ""
926
  "For Example: If you search \"doing\" then it also searches base word of "
927
  "\"doing\" that is \"do\" in the specified post types."
928
  msgstr ""
929
 
930
- #: ../admin/class-is-editor.php:1557
931
  msgid "Not recommended to use when Fuzzy Matching option is set to Whole."
932
  msgstr ""
933
 
934
- #: ../admin/class-is-editor.php:1563
935
  msgid "Also search base word of searched keyword"
936
  msgstr ""
937
 
938
- #: ../admin/class-is-editor.php:1570
939
  msgid "Others"
940
  msgstr ""
941
 
942
- #: ../admin/class-is-editor.php:1576
943
  msgid "Display sticky posts to the start of the search results page"
944
  msgstr ""
945
 
946
- #: ../admin/class-is-editor.php:1580
947
  msgid "Display search form only for site administrator"
948
  msgstr ""
949
 
950
- #: ../admin/class-is-editor.php:1584
951
  msgid "Disable this search form"
952
  msgstr ""
953
 
954
- #: ../admin/class-is-editor.php:1587
955
  msgid ""
956
  "Select whether to display an error when user perform search without any "
957
  "search word."
958
  msgstr ""
959
 
960
- #: ../admin/class-is-editor.php:1591
961
  msgid "Display an error for empty search query"
962
  msgstr ""
963
 
@@ -971,7 +971,7 @@ msgid "Available Actions"
971
  msgstr ""
972
 
973
  #: ../admin/class-is-help.php:45 ../admin/class-is-help.php:87
974
- #: ../admin/partials/search-form.php:134
975
  msgid "Options"
976
  msgstr ""
977
 
@@ -991,8 +991,8 @@ msgid ""
991
  msgstr ""
992
 
993
  #: ../admin/class-is-help.php:79 ../admin/class-is-list-table.php:154
994
- #: ../admin/class-is-settings-fields.php:446
995
- #: ../admin/class-is-settings-fields.php:476
996
  #: ../includes/class-is-search-form.php:560 ../includes/class-is-widget.php:83
997
  msgid "Edit"
998
  msgstr ""
@@ -1004,7 +1004,7 @@ msgid ""
1004
  msgstr ""
1005
 
1006
  #: ../admin/class-is-help.php:80 ../admin/class-is-list-table.php:164
1007
- #: ../admin/partials/search-form.php:188
1008
  msgid "Duplicate"
1009
  msgstr ""
1010
 
@@ -1015,7 +1015,7 @@ msgid ""
1015
  msgstr ""
1016
 
1017
  #: ../admin/class-is-help.php:81 ../admin/class-is-list-table.php:115
1018
- #: ../admin/class-is-list-table.php:178 ../admin/partials/search-form.php:173
1019
  msgid "Delete"
1020
  msgstr ""
1021
 
@@ -1106,7 +1106,7 @@ msgstr ""
1106
  msgid "For more information:"
1107
  msgstr ""
1108
 
1109
- #: ../admin/class-is-help.php:112 ../admin/partials/settings-form.php:109
1110
  msgid "Give us a rating"
1111
  msgstr ""
1112
 
@@ -1124,7 +1124,7 @@ msgstr ""
1124
  msgid "Edit &#8220;%s&#8221;"
1125
  msgstr ""
1126
 
1127
- #: ../admin/class-is-list-table.php:177 ../admin/partials/search-form.php:173
1128
  msgid ""
1129
  "You are about to delete this search form.\n"
1130
  " 'Cancel' to stop, 'OK' to delete."
@@ -1143,376 +1143,376 @@ msgstr ""
1143
  msgid "d/m/Y"
1144
  msgstr ""
1145
 
1146
- #: ../admin/class-is-settings-fields.php:144
1147
  msgid "Custom CSS"
1148
  msgstr ""
1149
 
1150
- #: ../admin/class-is-settings-fields.php:145
1151
  msgid "Stopwords"
1152
  msgstr ""
1153
 
1154
- #: ../admin/class-is-settings-fields.php:146
1155
  msgid "Synonyms"
1156
  msgstr ""
1157
 
1158
- #: ../admin/class-is-settings-fields.php:147
1159
  msgid "Header Search"
1160
  msgstr ""
1161
 
1162
- #: ../admin/class-is-settings-fields.php:148
1163
  msgid "Footer Search"
1164
  msgstr ""
1165
 
1166
- #: ../admin/class-is-settings-fields.php:149
1167
  msgid "Mobile Search"
1168
  msgstr ""
1169
 
1170
- #: ../admin/class-is-settings-fields.php:150
1171
  msgid "Plugin Files"
1172
  msgstr ""
1173
 
1174
- #: ../admin/class-is-settings-fields.php:151
1175
  msgid "Advanced"
1176
  msgstr ""
1177
 
1178
- #: ../admin/class-is-settings-fields.php:159
1179
  msgid "Menu Search Settings"
1180
  msgstr ""
1181
 
1182
- #: ../admin/class-is-settings-fields.php:166
1183
- #: ../admin/class-is-settings-fields.php:187
1184
  msgid "Search Analytics"
1185
  msgstr ""
1186
 
1187
- #: ../admin/class-is-settings-fields.php:177
1188
  msgid "Configure Menu Search"
1189
  msgstr ""
1190
 
1191
- #: ../admin/class-is-settings-fields.php:197
1192
  msgid "Advanced Website Search Settings"
1193
  msgstr ""
1194
 
1195
- #: ../admin/class-is-settings-fields.php:209
1196
  msgid "Display search form on selected menu locations."
1197
  msgstr ""
1198
 
1199
- #: ../admin/class-is-settings-fields.php:225
1200
  #, php-format
1201
  msgid "No menu assigned to navigation menu location in the %sMenus screen%s."
1202
  msgstr ""
1203
 
1204
- #: ../admin/class-is-settings-fields.php:228
1205
  msgid "Navigation menu location is not registered on the site."
1206
  msgstr ""
1207
 
1208
- #: ../admin/class-is-settings-fields.php:237
1209
  msgid "Display search form on selected menus."
1210
  msgstr ""
1211
 
1212
- #: ../admin/class-is-settings-fields.php:252
1213
  #, php-format
1214
  msgid "No menu created in the %sMenus screen%s."
1215
  msgstr ""
1216
 
1217
- #: ../admin/class-is-settings-fields.php:273
1218
  msgid "Display search form at the start of the navigation menu"
1219
  msgstr ""
1220
 
1221
- #: ../admin/class-is-settings-fields.php:279
1222
  msgid "Select menu search form style."
1223
  msgstr ""
1224
 
1225
- #: ../admin/class-is-settings-fields.php:283
1226
  msgid "Default"
1227
  msgstr ""
1228
 
1229
- #: ../admin/class-is-settings-fields.php:284
1230
  msgid "Dropdown"
1231
  msgstr ""
1232
 
1233
- #: ../admin/class-is-settings-fields.php:285
1234
  msgid "Sliding"
1235
  msgstr ""
1236
 
1237
- #: ../admin/class-is-settings-fields.php:286
1238
  msgid "Full Width"
1239
  msgstr ""
1240
 
1241
- #: ../admin/class-is-settings-fields.php:287
1242
  msgid "Popup"
1243
  msgstr ""
1244
 
1245
- #: ../admin/class-is-settings-fields.php:314
1246
  msgid "Select menu magnifier icon color."
1247
  msgstr ""
1248
 
1249
- #: ../admin/class-is-settings-fields.php:327
1250
  msgid "Display search form close icon"
1251
  msgstr ""
1252
 
1253
- #: ../admin/class-is-settings-fields.php:334
1254
  msgid "Add menu title to display in place of search icon."
1255
  msgstr ""
1256
 
1257
- #: ../admin/class-is-settings-fields.php:344
1258
  msgid "Select search form that will control menu search functionality."
1259
  msgstr ""
1260
 
1261
- #: ../admin/class-is-settings-fields.php:355
1262
- #: ../admin/class-is-settings-fields.php:438
1263
- #: ../admin/class-is-settings-fields.php:470
1264
  msgid "None"
1265
  msgstr ""
1266
 
1267
- #: ../admin/class-is-settings-fields.php:364
1268
- #: ../admin/class-is-settings-fields.php:448
1269
- #: ../admin/class-is-settings-fields.php:478 ../includes/class-is-widget.php:85
1270
  msgid "Create New"
1271
  msgstr ""
1272
 
1273
- #: ../admin/class-is-settings-fields.php:372
1274
  msgid "Add class to search form menu item."
1275
  msgstr ""
1276
 
1277
- #: ../admin/class-is-settings-fields.php:378
1278
  msgid "Add multiple classes seperated by space."
1279
  msgstr ""
1280
 
1281
- #: ../admin/class-is-settings-fields.php:384
1282
  msgid ""
1283
  "Add Google Custom Search( CSE ) search form code that will replace default "
1284
  "search form."
1285
  msgstr ""
1286
 
1287
- #: ../admin/class-is-settings-fields.php:402
1288
  msgid "Enabled"
1289
  msgstr ""
1290
 
1291
- #: ../admin/class-is-settings-fields.php:403
1292
  msgid "Disabled"
1293
  msgstr ""
1294
 
1295
- #: ../admin/class-is-settings-fields.php:404
1296
  msgid "Google Analytics tracking for searches"
1297
  msgstr ""
1298
 
1299
- #: ../admin/class-is-settings-fields.php:405
1300
  msgid "Search Analytics uses Google Analytics to track searches."
1301
  msgstr ""
1302
 
1303
- #: ../admin/class-is-settings-fields.php:406
1304
  #, php-format
1305
  msgid "You need %s Google Analytics %s to be installed on your site."
1306
  msgstr ""
1307
 
1308
- #: ../admin/class-is-settings-fields.php:407
1309
  msgid ""
1310
  "Data will be visible inside Google Analytics 'Events' and 'Site Search' "
1311
  "report."
1312
  msgstr ""
1313
 
1314
- #: ../admin/class-is-settings-fields.php:408
1315
  msgid "Events will be as below:"
1316
  msgstr ""
1317
 
1318
- #: ../admin/class-is-settings-fields.php:409
1319
  msgid "Category - Results Found / Nothing Found"
1320
  msgstr ""
1321
 
1322
- #: ../admin/class-is-settings-fields.php:410
1323
  msgid "Action - Ivory Search - ID"
1324
  msgstr ""
1325
 
1326
- #: ../admin/class-is-settings-fields.php:411
1327
  msgid "Label - Value of search term"
1328
  msgstr ""
1329
 
1330
- #: ../admin/class-is-settings-fields.php:412
1331
  #, php-format
1332
  msgid ""
1333
  "Need to %s activate Site Search feature %s inside Google Analytics to "
1334
  "display data inside 'Site Search' report."
1335
  msgstr ""
1336
 
1337
- #: ../admin/class-is-settings-fields.php:413
1338
  msgid ""
1339
  "Enable Site search Tracking option in Site Search Settings and set its "
1340
  "parameters as below."
1341
  msgstr ""
1342
 
1343
- #: ../admin/class-is-settings-fields.php:414
1344
  msgid "Query parameter - s"
1345
  msgstr ""
1346
 
1347
- #: ../admin/class-is-settings-fields.php:415
1348
  msgid "Category parameter - id / result"
1349
  msgstr ""
1350
 
1351
- #: ../admin/class-is-settings-fields.php:426
1352
  msgid "Select search form to display in site header( Not Menu )."
1353
  msgstr ""
1354
 
1355
- #: ../admin/class-is-settings-fields.php:451
1356
  msgid ""
1357
  "Please note that the above option displays search form in site header and "
1358
  "not in navigation menu."
1359
  msgstr ""
1360
 
1361
- #: ../admin/class-is-settings-fields.php:459
1362
  msgid "Select search form to display in site footer."
1363
  msgstr ""
1364
 
1365
- #: ../admin/class-is-settings-fields.php:494
1366
  msgid "Display search form in site header on mobile devices"
1367
  msgstr ""
1368
 
1369
- #: ../admin/class-is-settings-fields.php:497
1370
  msgid ""
1371
  "If this site uses cache then please select the below option to display "
1372
  "search form on mobile."
1373
  msgstr ""
1374
 
1375
- #: ../admin/class-is-settings-fields.php:504
1376
  msgid "This site uses cache"
1377
  msgstr ""
1378
 
1379
- #: ../admin/class-is-settings-fields.php:513
1380
  msgid "Add custom CSS code."
1381
  msgstr ""
1382
 
1383
- #: ../admin/class-is-settings-fields.php:526
1384
  msgid "Add Stopwords that will not be searched."
1385
  msgstr ""
1386
 
1387
- #: ../admin/class-is-settings-fields.php:531
1388
  msgid "Please separate multiple words with commas."
1389
  msgstr ""
1390
 
1391
- #: ../admin/class-is-settings-fields.php:540
1392
  msgid "Add synonyms to make the searches find better results."
1393
  msgstr ""
1394
 
1395
- #: ../admin/class-is-settings-fields.php:542
1396
  msgid ""
1397
  "If you add bird = crow to the list of synonyms, searches for bird "
1398
  "automatically become a search for bird crow and will thus match to posts "
1399
  "that include either bird or crow."
1400
  msgstr ""
1401
 
1402
- #: ../admin/class-is-settings-fields.php:547
1403
  msgid "The format here is key = value"
1404
  msgstr ""
1405
 
1406
- #: ../admin/class-is-settings-fields.php:548
1407
  msgid "Please add every synonyms key = value pairs on new line."
1408
  msgstr ""
1409
 
1410
- #: ../admin/class-is-settings-fields.php:550
1411
  msgid ""
1412
  "This only works for search forms configured to search any of the search "
1413
  "terms(OR) and not all search terms(AND) in the search form Options."
1414
  msgstr ""
1415
 
1416
- #: ../admin/class-is-settings-fields.php:559
1417
  msgid ""
1418
  "Enable below options to disable loading of plugin CSS and JavaScript files."
1419
  msgstr ""
1420
 
1421
- #: ../admin/class-is-settings-fields.php:563
1422
  msgid "Do not load plugin CSS files"
1423
  msgstr ""
1424
 
1425
- #: ../admin/class-is-settings-fields.php:564
1426
  msgid "Do not load plugin JavaScript files"
1427
  msgstr ""
1428
 
1429
- #: ../admin/class-is-settings-fields.php:580
1430
  msgid ""
1431
  "If checked, you have to add following plugin file code into your child theme "
1432
  "CSS file."
1433
  msgstr ""
1434
 
1435
- #: ../admin/class-is-settings-fields.php:585
1436
  msgid ""
1437
  "If checked, you have to add following plugin files code into your child "
1438
  "theme JavaScript file."
1439
  msgstr ""
1440
 
1441
- #: ../admin/class-is-settings-fields.php:602
1442
  msgid "Warning: Use with caution."
1443
  msgstr ""
1444
 
1445
- #: ../admin/class-is-settings-fields.php:607
1446
  msgid ""
1447
  "Do not use Default Search Form to control WordPress default search "
1448
  "functionality"
1449
  msgstr ""
1450
 
1451
- #: ../admin/class-is-settings-fields.php:616
1452
  msgid "Disable search functionality on entire website"
1453
  msgstr ""
1454
 
1455
- #: ../admin/class-is-settings-fields.php:626
1456
  msgid ""
1457
  "Display easy edit links of search form on the website frontend to the admin "
1458
  "users"
1459
  msgstr ""
1460
 
1461
- #: ../admin/partials/search-form.php:68
1462
  msgid "Add title"
1463
  msgstr ""
1464
 
1465
- #: ../admin/partials/search-form.php:80
1466
  msgid "Editing the title of Default Search Form is restricted"
1467
  msgstr ""
1468
 
1469
- #: ../admin/partials/search-form.php:92
1470
  msgid ""
1471
  "Copy this shortcode and paste it into your post, page, or text widget "
1472
  "content:"
1473
  msgstr ""
1474
 
1475
- #: ../admin/partials/search-form.php:95
1476
  msgid "Please save search form to generate shortcode"
1477
  msgstr ""
1478
 
1479
- #: ../admin/partials/search-form.php:100
1480
  msgid "Click to copy shortcode"
1481
  msgstr ""
1482
 
1483
- #: ../admin/partials/search-form.php:124
1484
  msgid "Design"
1485
  msgstr ""
1486
 
1487
- #: ../admin/partials/search-form.php:129
1488
  msgid "AJAX"
1489
  msgstr ""
1490
 
1491
- #: ../admin/partials/search-form.php:182
1492
  msgid "Save"
1493
  msgstr ""
1494
 
1495
- #: ../admin/partials/search-form.php:192
1496
  msgid "Reset"
1497
  msgstr ""
1498
 
1499
- #: ../admin/partials/search-form.php:192
1500
  msgid ""
1501
  "You are about to reset this search form.\n"
1502
  " 'Cancel' to stop, 'OK' to reset."
1503
  msgstr ""
1504
 
1505
- #: ../admin/partials/search-form.php:203
1506
- #: ../admin/partials/settings-form.php:106
1507
  msgid "Documentation"
1508
  msgstr ""
1509
 
1510
- #: ../admin/partials/search-form.php:205
1511
- #: ../admin/partials/settings-form.php:108
1512
  msgid "Contact Us"
1513
  msgstr ""
1514
 
1515
- #: ../admin/partials/search-form.php:206
1516
  msgid "Rate Ivory Search"
1517
  msgstr ""
1518
 
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: Ivory Search\n"
5
+ "POT-Creation-Date: 2021-03-30 12:11+0530\n"
6
  "PO-Revision-Date: 2020-03-17 21:05+0530\n"
7
  "Last-Translator: \n"
8
  "Language-Team: Ivory Search <admin@ivorysearch.com>\n"
21
  msgid "The changes you made will be lost if you navigate away from this page."
22
  msgstr ""
23
 
24
+ #: ../admin/class-is-admin.php:138 ../admin/class-is-settings-fields.php:372
25
  #: ../admin/partials/search-form.php:23
26
  msgid "Edit Search Form"
27
  msgstr ""
40
  msgstr ""
41
 
42
  #: ../admin/class-is-admin.php:182 ../admin/class-is-help.php:111
43
+ #: ../admin/partials/search-form.php:218
44
+ #: ../admin/partials/settings-form.php:115
45
  msgid "Support"
46
  msgstr ""
47
 
196
  msgid "Upgrade to Pro Plus to Access"
197
  msgstr ""
198
 
199
+ #: ../admin/class-is-editor.php:75
200
  msgid "The requested section does not exist."
201
  msgstr ""
202
 
203
+ #: ../admin/class-is-editor.php:111 ../admin/partials/search-form.php:128
204
  #: ../includes/class-is-admin-public.php:186
205
  #: ../includes/class-is-search-form.php:469
206
  #: ../includes/class-is-search-form.php:538 ../public/class-is-public.php:207
208
  msgid "Search"
209
  msgstr ""
210
 
211
+ #: ../admin/class-is-editor.php:113 ../admin/partials/search-form.php:133
212
  msgid "Exclude"
213
  msgstr ""
214
 
215
+ #: ../admin/class-is-editor.php:132 ../admin/partials/search-form.php:130
216
  msgid "Configure Searchable Content"
217
  msgstr ""
218
 
219
+ #: ../admin/class-is-editor.php:140
220
  msgid "Post Types"
221
  msgstr ""
222
 
223
+ #: ../admin/class-is-editor.php:141 ../admin/class-is-editor.php:424
224
+ #: ../admin/class-is-editor.php:784 ../admin/class-is-editor.php:1151
225
+ #: ../admin/class-is-editor.php:1374 ../admin/class-is-editor.php:1469
226
+ #: ../admin/class-is-editor.php:1585 ../admin/class-is-settings-fields.php:106
227
  msgid "Expand All"
228
  msgstr ""
229
 
230
+ #: ../admin/class-is-editor.php:141 ../admin/class-is-editor.php:424
231
+ #: ../admin/class-is-editor.php:785 ../admin/class-is-editor.php:1151
232
+ #: ../admin/class-is-editor.php:1374 ../admin/class-is-editor.php:1469
233
+ #: ../admin/class-is-editor.php:1585 ../admin/class-is-settings-fields.php:106
234
  msgid "Collapse All"
235
  msgstr ""
236
 
237
+ #: ../admin/class-is-editor.php:145
238
  msgid "Search selected post types."
239
  msgstr ""
240
 
241
+ #: ../admin/class-is-editor.php:160 ../admin/class-is-editor.php:162
242
  msgid "Select Post Types"
243
  msgstr ""
244
 
245
+ #: ../admin/class-is-editor.php:181
246
  msgid "No post types registered on the site."
247
  msgstr ""
248
 
249
+ #: ../admin/class-is-editor.php:187
250
  msgid "Do not display post_type in the search URL"
251
  msgstr ""
252
 
253
+ #: ../admin/class-is-editor.php:199 ../admin/class-is-editor.php:1143
254
  msgid "( WooCommerce )"
255
  msgstr ""
256
 
257
+ #: ../admin/class-is-editor.php:201 ../admin/class-is-editor.php:1145
258
  msgid "( Images, Videos, Audios, Docs, PDFs, Files & Attachments )"
259
  msgstr ""
260
 
261
+ #: ../admin/class-is-editor.php:243 ../admin/class-is-editor.php:293
262
+ #: ../admin/class-is-editor.php:318 ../admin/class-is-editor.php:369
263
+ #: ../admin/class-is-editor.php:1194 ../admin/class-is-editor.php:1249
264
+ #: ../admin/class-is-editor.php:1273 ../admin/class-is-editor.php:1320
265
  msgid "Search.."
266
  msgstr ""
267
 
268
+ #: ../admin/class-is-editor.php:247 ../admin/class-is-editor.php:1198
269
  msgid "Load All"
270
  msgstr ""
271
 
272
+ #: ../admin/class-is-editor.php:252 ../admin/class-is-editor.php:1204
273
  #, php-format
274
  msgid "No %s created."
275
  msgstr ""
276
 
277
+ #: ../admin/class-is-editor.php:254 ../admin/class-is-editor.php:303
278
+ #: ../admin/class-is-editor.php:328 ../admin/class-is-editor.php:377
279
+ #: ../admin/class-is-editor.php:1206 ../admin/class-is-editor.php:1258
280
+ #: ../admin/class-is-editor.php:1284 ../admin/class-is-editor.php:1328
281
  msgid ""
282
  "Hold down the control (ctrl) or command button to select multiple options."
283
  msgstr ""
284
 
285
+ #: ../admin/class-is-editor.php:262
286
  #, php-format
287
  msgid ""
288
  "The %s are not searchable as the search form is configured to only search "
289
  "specific posts of another post type."
290
  msgstr ""
291
 
292
+ #: ../admin/class-is-editor.php:266
293
  #, php-format
294
  msgid "Search all %s"
295
  msgstr ""
296
 
297
+ #: ../admin/class-is-editor.php:268
298
  #, php-format
299
  msgid "Search only selected %s"
300
  msgstr ""
301
 
302
+ #: ../admin/class-is-editor.php:307
303
  #, php-format
304
  msgid "Search %s of all taxonomies (%s categories, tags & terms %s)"
305
  msgstr ""
306
 
307
+ #: ../admin/class-is-editor.php:309
308
  #, php-format
309
  msgid "Search %s of only selected taxonomies (%s categories, tags & terms %s)"
310
  msgstr ""
311
 
312
+ #: ../admin/class-is-editor.php:332
313
  #, php-format
314
  msgid "Search selected %s custom fields values"
315
  msgstr ""
316
 
317
+ #: ../admin/class-is-editor.php:344
318
  msgid "Search product SKU"
319
  msgstr ""
320
 
321
+ #: ../admin/class-is-editor.php:347
322
  msgid "Search product variation"
323
  msgstr ""
324
 
325
+ #: ../admin/class-is-editor.php:379
326
  msgid "Selected File Types :"
327
  msgstr ""
328
 
329
+ #: ../admin/class-is-editor.php:387 ../admin/class-is-editor.php:1338
330
  msgid "Search all MIME types"
331
  msgstr ""
332
 
333
+ #: ../admin/class-is-editor.php:389
334
  msgid "Search only selected MIME types"
335
  msgstr ""
336
 
337
+ #: ../admin/class-is-editor.php:394
338
  msgid "Search Images"
339
  msgstr ""
340
 
341
+ #: ../admin/class-is-editor.php:396
342
  msgid "Search Videos"
343
  msgstr ""
344
 
345
+ #: ../admin/class-is-editor.php:398
346
  msgid "Search Audios"
347
  msgstr ""
348
 
349
+ #: ../admin/class-is-editor.php:400
350
  msgid "Search Text Files"
351
  msgstr ""
352
 
353
+ #: ../admin/class-is-editor.php:402
354
  msgid "Search PDF Files"
355
  msgstr ""
356
 
357
+ #: ../admin/class-is-editor.php:404
358
  msgid "Search Document Files"
359
  msgstr ""
360
 
361
+ #: ../admin/class-is-editor.php:411
362
  #, php-format
363
  msgid ""
364
  "This search form is configured in the %s section to not search specific MIME "
365
  "types."
366
  msgstr ""
367
 
368
+ #: ../admin/class-is-editor.php:414 ../admin/class-is-editor.php:1364
369
  msgid ""
370
  "You are using WordPress version less than 4.9 which does not support "
371
  "searching by MIME type."
372
  msgstr ""
373
 
374
+ #: ../admin/class-is-editor.php:423 ../admin/class-is-editor.php:1373
375
  msgid "Extras"
376
  msgstr ""
377
 
378
+ #: ../admin/class-is-editor.php:428
379
  msgid "Search Content"
380
  msgstr ""
381
 
382
+ #: ../admin/class-is-editor.php:433
383
  #, php-format
384
  msgid "Search post title %s( File title )%s"
385
  msgstr ""
386
 
387
+ #: ../admin/class-is-editor.php:436
388
  #, php-format
389
  msgid "Search post content %s( File description )%s"
390
  msgstr ""
391
 
392
+ #: ../admin/class-is-editor.php:439
393
  #, php-format
394
  msgid "Search post excerpt %s( File caption )%s"
395
  msgstr ""
396
 
397
+ #: ../admin/class-is-editor.php:442
398
  #, php-format
399
  msgid "Search category/tag title %s( Displays posts of the category/tag )%s"
400
  msgstr ""
401
 
402
+ #: ../admin/class-is-editor.php:445
403
  #, php-format
404
  msgid ""
405
  "Search category/tag description %s( Displays posts of the category/tag )%s"
406
  msgstr ""
407
 
408
+ #: ../admin/class-is-editor.php:466
409
  msgid ""
410
  "Note: The below option is disabled and set to OR as you have configured the "
411
  "search form to search multiple taxonomies."
412
  msgstr ""
413
 
414
+ #: ../admin/class-is-editor.php:471
415
  msgid "AND - Search posts having all the above selected category terms"
416
  msgstr ""
417
 
418
+ #: ../admin/class-is-editor.php:473
419
  msgid "OR - Search posts having any one of the above selected category terms"
420
  msgstr ""
421
 
422
+ #: ../admin/class-is-editor.php:479 ../admin/class-is-editor.php:1437
423
  msgid "Post Status"
424
  msgstr ""
425
 
426
+ #: ../admin/class-is-editor.php:483
427
  msgid "Search posts having selected post statuses."
428
  msgstr ""
429
 
430
+ #: ../admin/class-is-editor.php:500
431
  msgid "Select Post Status"
432
  msgstr ""
433
 
434
+ #: ../admin/class-is-editor.php:519 ../admin/class-is-editor.php:1378
435
  msgid "Authors"
436
  msgstr ""
437
 
438
+ #: ../admin/class-is-editor.php:523
439
  msgid "Search posts created by selected authors."
440
  msgstr ""
441
 
442
+ #: ../admin/class-is-editor.php:542 ../admin/class-is-editor.php:544
443
  msgid "Searches all author posts"
444
  msgstr ""
445
 
446
+ #: ../admin/class-is-editor.php:572
447
  #, php-format
448
  msgid ""
449
  "This search form is configured in the %s section to not search for specific "
450
  "author posts."
451
  msgstr ""
452
 
453
+ #: ../admin/class-is-editor.php:580
454
  msgid "Search author Display Name and display the posts created by that author"
455
  msgstr ""
456
 
457
+ #: ../admin/class-is-editor.php:585
458
  msgid "Comments"
459
  msgstr ""
460
 
461
+ #: ../admin/class-is-editor.php:594
462
  msgid "Search posts having number of comments"
463
  msgstr ""
464
 
465
+ #: ../admin/class-is-editor.php:604
466
  msgid "NA"
467
  msgstr ""
468
 
469
+ #: ../admin/class-is-editor.php:615
470
  msgid "Search approved comment content"
471
  msgstr ""
472
 
473
+ #: ../admin/class-is-editor.php:620
474
  msgid "Password Protected"
475
  msgstr ""
476
 
477
+ #: ../admin/class-is-editor.php:626
478
  msgid "Search posts with or without passwords"
479
  msgstr ""
480
 
481
+ #: ../admin/class-is-editor.php:628
482
  msgid "Search posts with passwords"
483
  msgstr ""
484
 
485
+ #: ../admin/class-is-editor.php:630
486
  msgid "Search posts without passwords"
487
  msgstr ""
488
 
489
+ #: ../admin/class-is-editor.php:634 ../admin/class-is-editor.php:871
490
+ #: ../admin/class-is-editor.php:1090 ../admin/class-is-list-table.php:33
491
  msgid "Date"
492
  msgstr ""
493
 
494
+ #: ../admin/class-is-editor.php:638
495
  msgid "Search posts created only in the specified date range."
496
  msgstr ""
497
 
498
+ #: ../admin/class-is-editor.php:644
499
  msgid "From"
500
  msgstr ""
501
 
502
+ #: ../admin/class-is-editor.php:644
503
  msgid "To"
504
  msgstr ""
505
 
506
+ #: ../admin/class-is-editor.php:668 ../admin/partials/search-form.php:140
507
  msgid "Design Search Form Colors, Text and Style"
508
  msgstr ""
509
 
510
+ #: ../admin/class-is-editor.php:675 ../admin/class-is-editor.php:692
511
  msgid "Enable Search Form Customization"
512
  msgstr ""
513
 
514
+ #: ../admin/class-is-editor.php:688 ../includes/class-is-search-form.php:564
515
  msgid "Customizer"
516
  msgstr ""
517
 
518
+ #: ../admin/class-is-editor.php:694
519
  msgid ""
520
  "Use below customizer to customize search form colors, text and search form "
521
  "style."
522
  msgstr ""
523
 
524
+ #: ../admin/class-is-editor.php:702
525
  msgid "Search Form Customizer"
526
  msgstr ""
527
 
528
+ #: ../admin/class-is-editor.php:750 ../public/class-is-ajax.php:68
529
  msgid "Nothing found"
530
  msgstr ""
531
 
532
+ #: ../admin/class-is-editor.php:753
533
  msgid "View All"
534
  msgstr ""
535
 
536
+ #: ../admin/class-is-editor.php:757
537
  msgid "More Results.."
538
  msgstr ""
539
 
540
+ #: ../admin/class-is-editor.php:768 ../admin/partials/search-form.php:145
541
  msgid "Configure AJAX Search"
542
  msgstr ""
543
 
544
+ #: ../admin/class-is-editor.php:775 ../admin/class-is-editor.php:789
545
+ #: ../admin/class-is-editor.php:971
546
  msgid "Enable AJAX Search"
547
  msgstr ""
548
 
549
+ #: ../admin/class-is-editor.php:782
550
  msgid "AJAX Search Results"
551
  msgstr ""
552
 
553
+ #: ../admin/class-is-editor.php:790
554
  msgid "Display selected content in the search results."
555
  msgstr ""
556
 
557
+ #: ../admin/class-is-editor.php:797
558
  msgid "Description"
559
  msgstr ""
560
 
561
+ #: ../admin/class-is-editor.php:805
562
  msgid "Excerpt"
563
  msgstr ""
564
 
565
+ #: ../admin/class-is-editor.php:811
566
  msgid "Content"
567
  msgstr ""
568
 
569
+ #: ../admin/class-is-editor.php:819
570
  msgid "Description Length."
571
  msgstr ""
572
 
573
+ #: ../admin/class-is-editor.php:827
574
  msgid "Image"
575
  msgstr ""
576
 
577
+ #: ../admin/class-is-editor.php:838
578
  msgid "Categories"
579
  msgstr ""
580
 
581
+ #: ../admin/class-is-editor.php:849
582
  msgid "Tags"
583
  msgstr ""
584
 
585
+ #: ../admin/class-is-editor.php:860
586
  msgid "Author"
587
  msgstr ""
588
 
589
+ #: ../admin/class-is-editor.php:878
590
  msgid "Minimum number of characters required to run ajax search."
591
  msgstr ""
592
 
593
+ #: ../admin/class-is-editor.php:883
594
  msgid "Search results box max height."
595
  msgstr ""
596
 
597
+ #: ../admin/class-is-editor.php:886
598
  msgid "Configure the plugin text displayed in the search results."
599
  msgstr ""
600
 
601
+ #: ../admin/class-is-editor.php:891
602
  msgid "Text when there is no search results. HTML tags is allowed."
603
  msgstr ""
604
 
605
+ #: ../admin/class-is-editor.php:900
606
  msgid "Show 'More Results..' text in the bottom of the search results box"
607
  msgstr ""
608
 
609
+ #: ../admin/class-is-editor.php:908
610
  msgid "Text for the \"More Results..\"."
611
  msgstr ""
612
 
613
+ #: ../admin/class-is-editor.php:917
614
  msgid "Redirect to search results page clicking on the 'More Results..' text"
615
  msgstr ""
616
 
617
+ #: ../admin/class-is-editor.php:927
618
  msgid ""
619
  "View All Result - Show link to search results page at the bottom of search "
620
  "results block."
621
  msgstr ""
622
 
623
+ #: ../admin/class-is-editor.php:936
624
  msgid ""
625
  "Text for the \"View All\" which shown at the bottom of the search result."
626
  msgstr ""
627
 
628
+ #: ../admin/class-is-editor.php:941
629
  msgid "Configure how the search button should work clicking on it."
630
  msgstr ""
631
 
632
+ #: ../admin/class-is-editor.php:947
633
  msgid "Search button displays search results page"
634
  msgstr ""
635
 
636
+ #: ../admin/class-is-editor.php:954
637
  msgid "Search button displays ajax search results"
638
  msgstr ""
639
 
640
+ #: ../admin/class-is-editor.php:962 ../admin/class-is-help.php:136
641
  msgid "WooCommerce"
642
  msgstr ""
643
 
644
+ #: ../admin/class-is-editor.php:969
645
  #, php-format
646
  msgid ""
647
  "Please first configure this search form in the %s section to search "
648
  "WooCommerce product post type."
649
  msgstr ""
650
 
651
+ #: ../admin/class-is-editor.php:972
652
  msgid "Display selected WooCommerce content in the search results."
653
  msgstr ""
654
 
655
+ #: ../admin/class-is-editor.php:979 ../admin/class-is-editor.php:1091
656
  msgid "Price"
657
  msgstr ""
658
 
659
+ #: ../admin/class-is-editor.php:990
660
  msgid "Hide Price for Out of Stock Products"
661
  msgstr ""
662
 
663
+ #: ../admin/class-is-editor.php:1001
664
  msgid "Sale Badge"
665
  msgstr ""
666
 
667
+ #: ../admin/class-is-editor.php:1012
668
  msgid "SKU"
669
  msgstr ""
670
 
671
+ #: ../admin/class-is-editor.php:1023
672
  msgid "Stock Status"
673
  msgstr ""
674
 
675
+ #: ../admin/class-is-editor.php:1034 ../public/class-is-ajax.php:417
676
  msgid "Featured Icon"
677
  msgstr ""
678
 
679
+ #: ../admin/class-is-editor.php:1045
680
  msgid "Matching Categories"
681
  msgstr ""
682
 
683
+ #: ../admin/class-is-editor.php:1056
684
  msgid "Matching Tags"
685
  msgstr ""
686
 
687
+ #: ../admin/class-is-editor.php:1067
688
  msgid "Details Box"
689
  msgstr ""
690
 
691
+ #: ../admin/class-is-editor.php:1073
692
  msgid "Below options only apply to matching categories or tags."
693
  msgstr ""
694
 
695
+ #: ../admin/class-is-editor.php:1075
696
  msgid "Product List"
697
  msgstr ""
698
 
699
+ #: ../admin/class-is-editor.php:1078
700
  msgid "All Product"
701
  msgstr ""
702
 
703
+ #: ../admin/class-is-editor.php:1079
704
  msgid "Featured Products"
705
  msgstr ""
706
 
707
+ #: ../admin/class-is-editor.php:1080
708
  msgid "On-sale Products</option>"
709
  msgstr ""
710
 
711
+ #: ../admin/class-is-editor.php:1087
712
  msgid "Order by"
713
  msgstr ""
714
 
715
+ #: ../admin/class-is-editor.php:1092
716
  msgid "Random"
717
  msgstr ""
718
 
719
+ #: ../admin/class-is-editor.php:1093
720
  msgid "Sales"
721
  msgstr ""
722
 
723
+ #: ../admin/class-is-editor.php:1100
724
  msgid "Order"
725
  msgstr ""
726
 
727
+ #: ../admin/class-is-editor.php:1103
728
  msgid "ASC"
729
  msgstr ""
730
 
731
+ #: ../admin/class-is-editor.php:1104
732
  msgid "DESC"
733
  msgstr ""
734
 
735
+ #: ../admin/class-is-editor.php:1123 ../admin/partials/search-form.php:135
736
  msgid "Exclude Content From Search"
737
  msgstr ""
738
 
739
+ #: ../admin/class-is-editor.php:1215
740
  #, php-format
741
  msgid ""
742
  "The search form is configured in the %s section to only search specific "
743
  "posts of another post type."
744
  msgstr ""
745
 
746
+ #: ../admin/class-is-editor.php:1220
747
  #, php-format
748
  msgid "Do not exclude any %s from search"
749
  msgstr ""
750
 
751
+ #: ../admin/class-is-editor.php:1222
752
  #, php-format
753
  msgid "Exclude selected %s from search"
754
  msgstr ""
755
 
756
+ #: ../admin/class-is-editor.php:1225
757
  #, php-format
758
  msgid ""
759
  "The search form is configured in the %1$s section to only search specific "
760
  "%2$s."
761
  msgstr ""
762
 
763
+ #: ../admin/class-is-editor.php:1262
764
  #, php-format
765
  msgid ""
766
  "Do not exclude any %s from search of any taxonomies (%s categories, tags & "
767
  "terms %s)"
768
  msgstr ""
769
 
770
+ #: ../admin/class-is-editor.php:1264
771
  #, php-format
772
  msgid ""
773
  "Exclude %s from search of selected taxonomies (%s categories, tags & terms "
774
  "%s)"
775
  msgstr ""
776
 
777
+ #: ../admin/class-is-editor.php:1288
778
  #, php-format
779
  msgid "Exclude %s from search having selected custom fields"
780
  msgstr ""
781
 
782
+ #: ../admin/class-is-editor.php:1300
783
  msgid "Exclude 'Out of Stock' products from search"
784
  msgstr ""
785
 
786
+ #: ../admin/class-is-editor.php:1330
787
  msgid "Excluded File Types :"
788
  msgstr ""
789
 
790
+ #: ../admin/class-is-editor.php:1340
791
  msgid "Exclude selected MIME types from search"
792
  msgstr ""
793
 
794
+ #: ../admin/class-is-editor.php:1344
795
  msgid "Exclude Images"
796
  msgstr ""
797
 
798
+ #: ../admin/class-is-editor.php:1346
799
  msgid "Exclude Videos"
800
  msgstr ""
801
 
802
+ #: ../admin/class-is-editor.php:1348
803
  msgid "Exclude Audios"
804
  msgstr ""
805
 
806
+ #: ../admin/class-is-editor.php:1350
807
  msgid "Exclude Text Files"
808
  msgstr ""
809
 
810
+ #: ../admin/class-is-editor.php:1352
811
  msgid "Exclude PDF Files"
812
  msgstr ""
813
 
814
+ #: ../admin/class-is-editor.php:1354
815
  msgid "Exclude Document Files"
816
  msgstr ""
817
 
818
+ #: ../admin/class-is-editor.php:1361
819
  #, php-format
820
  msgid ""
821
  "This search form is configured in the %s section to search specific "
822
  "attachments."
823
  msgstr ""
824
 
825
+ #: ../admin/class-is-editor.php:1382
826
  msgid "Exclude posts from search created by selected authors."
827
  msgstr ""
828
 
829
+ #: ../admin/class-is-editor.php:1401 ../admin/class-is-editor.php:1403
830
  msgid "Search all author posts"
831
  msgstr ""
832
 
833
+ #: ../admin/class-is-editor.php:1431
834
  #, php-format
835
  msgid ""
836
  "This search form is configured in the %s section to search posts created by "
837
  "specific authors."
838
  msgstr ""
839
 
840
+ #: ../admin/class-is-editor.php:1441
841
  msgid "Exclude posts from search having selected post statuses."
842
  msgstr ""
843
 
844
+ #: ../admin/class-is-editor.php:1446
845
  msgid "Exclude sticky posts from search"
846
  msgstr ""
847
 
848
+ #: ../admin/class-is-editor.php:1461 ../admin/partials/search-form.php:150
849
  msgid "Advanced Search Form Options"
850
  msgstr ""
851
 
852
+ #: ../admin/class-is-editor.php:1468
853
  msgid "Posts Per Page"
854
  msgstr ""
855
 
856
+ #: ../admin/class-is-editor.php:1472
857
  msgid "Display selected number of posts in search results."
858
  msgstr ""
859
 
860
+ #: ../admin/class-is-editor.php:1489
861
  msgid "Order Search Results"
862
  msgstr ""
863
 
864
+ #: ../admin/class-is-editor.php:1492
865
  msgid "Display posts on search results page ordered by selected options."
866
  msgstr ""
867
 
868
+ #: ../admin/class-is-editor.php:1517
869
  msgid "Highlight Search Terms"
870
  msgstr ""
871
 
872
+ #: ../admin/class-is-editor.php:1523
873
  msgid "Highlight searched terms on search results page"
874
  msgstr ""
875
 
876
+ #: ../admin/class-is-editor.php:1526
877
  msgid "Select text highlight color"
878
  msgstr ""
879
 
880
+ #: ../admin/class-is-editor.php:1532
881
  msgid "Search All Or Any Search Terms"
882
  msgstr ""
883
 
884
+ #: ../admin/class-is-editor.php:1536
885
  msgid ""
886
  "Select whether to search posts having all or any of the words being searched."
887
  msgstr ""
888
 
889
+ #: ../admin/class-is-editor.php:1541
890
  msgid "OR - Display content having any of the search terms"
891
  msgstr ""
892
 
893
+ #: ../admin/class-is-editor.php:1543
894
  msgid "AND - Display content having all the search terms"
895
  msgstr ""
896
 
897
+ #: ../admin/class-is-editor.php:1549
898
  msgid "Fuzzy Matching"
899
  msgstr ""
900
 
901
+ #: ../admin/class-is-editor.php:1552
902
  msgid ""
903
  "Select whether to search posts having whole or partial word being searched."
904
  msgstr ""
905
 
906
+ #: ../admin/class-is-editor.php:1557
907
  msgid "Whole - Search posts that include the whole search term"
908
  msgstr ""
909
 
910
+ #: ../admin/class-is-editor.php:1559
911
  msgid ""
912
  "Partial - Also search words in the posts that begins or ends with the search "
913
  "term"
914
  msgstr ""
915
 
916
+ #: ../admin/class-is-editor.php:1565
917
  msgid "Keyword Stemming"
918
  msgstr ""
919
 
920
+ #: ../admin/class-is-editor.php:1569
921
  msgid "Select whether to search the base word of a searched keyword."
922
  msgstr ""
923
 
924
+ #: ../admin/class-is-editor.php:1570
925
  msgid ""
926
  "For Example: If you search \"doing\" then it also searches base word of "
927
  "\"doing\" that is \"do\" in the specified post types."
928
  msgstr ""
929
 
930
+ #: ../admin/class-is-editor.php:1571
931
  msgid "Not recommended to use when Fuzzy Matching option is set to Whole."
932
  msgstr ""
933
 
934
+ #: ../admin/class-is-editor.php:1577
935
  msgid "Also search base word of searched keyword"
936
  msgstr ""
937
 
938
+ #: ../admin/class-is-editor.php:1584
939
  msgid "Others"
940
  msgstr ""
941
 
942
+ #: ../admin/class-is-editor.php:1590
943
  msgid "Display sticky posts to the start of the search results page"
944
  msgstr ""
945
 
946
+ #: ../admin/class-is-editor.php:1594
947
  msgid "Display search form only for site administrator"
948
  msgstr ""
949
 
950
+ #: ../admin/class-is-editor.php:1598
951
  msgid "Disable this search form"
952
  msgstr ""
953
 
954
+ #: ../admin/class-is-editor.php:1601
955
  msgid ""
956
  "Select whether to display an error when user perform search without any "
957
  "search word."
958
  msgstr ""
959
 
960
+ #: ../admin/class-is-editor.php:1605
961
  msgid "Display an error for empty search query"
962
  msgstr ""
963
 
971
  msgstr ""
972
 
973
  #: ../admin/class-is-help.php:45 ../admin/class-is-help.php:87
974
+ #: ../admin/partials/search-form.php:148
975
  msgid "Options"
976
  msgstr ""
977
 
991
  msgstr ""
992
 
993
  #: ../admin/class-is-help.php:79 ../admin/class-is-list-table.php:154
994
+ #: ../admin/class-is-settings-fields.php:456
995
+ #: ../admin/class-is-settings-fields.php:486
996
  #: ../includes/class-is-search-form.php:560 ../includes/class-is-widget.php:83
997
  msgid "Edit"
998
  msgstr ""
1004
  msgstr ""
1005
 
1006
  #: ../admin/class-is-help.php:80 ../admin/class-is-list-table.php:164
1007
+ #: ../admin/partials/search-form.php:202
1008
  msgid "Duplicate"
1009
  msgstr ""
1010
 
1015
  msgstr ""
1016
 
1017
  #: ../admin/class-is-help.php:81 ../admin/class-is-list-table.php:115
1018
+ #: ../admin/class-is-list-table.php:178 ../admin/partials/search-form.php:187
1019
  msgid "Delete"
1020
  msgstr ""
1021
 
1106
  msgid "For more information:"
1107
  msgstr ""
1108
 
1109
+ #: ../admin/class-is-help.php:112 ../admin/partials/settings-form.php:117
1110
  msgid "Give us a rating"
1111
  msgstr ""
1112
 
1124
  msgid "Edit &#8220;%s&#8221;"
1125
  msgstr ""
1126
 
1127
+ #: ../admin/class-is-list-table.php:177 ../admin/partials/search-form.php:187
1128
  msgid ""
1129
  "You are about to delete this search form.\n"
1130
  " 'Cancel' to stop, 'OK' to delete."
1143
  msgid "d/m/Y"
1144
  msgstr ""
1145
 
1146
+ #: ../admin/class-is-settings-fields.php:154
1147
  msgid "Custom CSS"
1148
  msgstr ""
1149
 
1150
+ #: ../admin/class-is-settings-fields.php:155
1151
  msgid "Stopwords"
1152
  msgstr ""
1153
 
1154
+ #: ../admin/class-is-settings-fields.php:156
1155
  msgid "Synonyms"
1156
  msgstr ""
1157
 
1158
+ #: ../admin/class-is-settings-fields.php:157
1159
  msgid "Header Search"
1160
  msgstr ""
1161
 
1162
+ #: ../admin/class-is-settings-fields.php:158
1163
  msgid "Footer Search"
1164
  msgstr ""
1165
 
1166
+ #: ../admin/class-is-settings-fields.php:159
1167
  msgid "Mobile Search"
1168
  msgstr ""
1169
 
1170
+ #: ../admin/class-is-settings-fields.php:160
1171
  msgid "Plugin Files"
1172
  msgstr ""
1173
 
1174
+ #: ../admin/class-is-settings-fields.php:161
1175
  msgid "Advanced"
1176
  msgstr ""
1177
 
1178
+ #: ../admin/class-is-settings-fields.php:169
1179
  msgid "Menu Search Settings"
1180
  msgstr ""
1181
 
1182
+ #: ../admin/class-is-settings-fields.php:176
1183
+ #: ../admin/class-is-settings-fields.php:197
1184
  msgid "Search Analytics"
1185
  msgstr ""
1186
 
1187
+ #: ../admin/class-is-settings-fields.php:187
1188
  msgid "Configure Menu Search"
1189
  msgstr ""
1190
 
1191
+ #: ../admin/class-is-settings-fields.php:207
1192
  msgid "Advanced Website Search Settings"
1193
  msgstr ""
1194
 
1195
+ #: ../admin/class-is-settings-fields.php:219
1196
  msgid "Display search form on selected menu locations."
1197
  msgstr ""
1198
 
1199
+ #: ../admin/class-is-settings-fields.php:235
1200
  #, php-format
1201
  msgid "No menu assigned to navigation menu location in the %sMenus screen%s."
1202
  msgstr ""
1203
 
1204
+ #: ../admin/class-is-settings-fields.php:238
1205
  msgid "Navigation menu location is not registered on the site."
1206
  msgstr ""
1207
 
1208
+ #: ../admin/class-is-settings-fields.php:247
1209
  msgid "Display search form on selected menus."
1210
  msgstr ""
1211
 
1212
+ #: ../admin/class-is-settings-fields.php:262
1213
  #, php-format
1214
  msgid "No menu created in the %sMenus screen%s."
1215
  msgstr ""
1216
 
1217
+ #: ../admin/class-is-settings-fields.php:283
1218
  msgid "Display search form at the start of the navigation menu"
1219
  msgstr ""
1220
 
1221
+ #: ../admin/class-is-settings-fields.php:289
1222
  msgid "Select menu search form style."
1223
  msgstr ""
1224
 
1225
+ #: ../admin/class-is-settings-fields.php:293
1226
  msgid "Default"
1227
  msgstr ""
1228
 
1229
+ #: ../admin/class-is-settings-fields.php:294
1230
  msgid "Dropdown"
1231
  msgstr ""
1232
 
1233
+ #: ../admin/class-is-settings-fields.php:295
1234
  msgid "Sliding"
1235
  msgstr ""
1236
 
1237
+ #: ../admin/class-is-settings-fields.php:296
1238
  msgid "Full Width"
1239
  msgstr ""
1240
 
1241
+ #: ../admin/class-is-settings-fields.php:297
1242
  msgid "Popup"
1243
  msgstr ""
1244
 
1245
+ #: ../admin/class-is-settings-fields.php:324
1246
  msgid "Select menu magnifier icon color."
1247
  msgstr ""
1248
 
1249
+ #: ../admin/class-is-settings-fields.php:337
1250
  msgid "Display search form close icon"
1251
  msgstr ""
1252
 
1253
+ #: ../admin/class-is-settings-fields.php:344
1254
  msgid "Add menu title to display in place of search icon."
1255
  msgstr ""
1256
 
1257
+ #: ../admin/class-is-settings-fields.php:354
1258
  msgid "Select search form that will control menu search functionality."
1259
  msgstr ""
1260
 
1261
+ #: ../admin/class-is-settings-fields.php:365
1262
+ #: ../admin/class-is-settings-fields.php:448
1263
+ #: ../admin/class-is-settings-fields.php:480
1264
  msgid "None"
1265
  msgstr ""
1266
 
1267
+ #: ../admin/class-is-settings-fields.php:374
1268
+ #: ../admin/class-is-settings-fields.php:458
1269
+ #: ../admin/class-is-settings-fields.php:488 ../includes/class-is-widget.php:85
1270
  msgid "Create New"
1271
  msgstr ""
1272
 
1273
+ #: ../admin/class-is-settings-fields.php:382
1274
  msgid "Add class to search form menu item."
1275
  msgstr ""
1276
 
1277
+ #: ../admin/class-is-settings-fields.php:388
1278
  msgid "Add multiple classes seperated by space."
1279
  msgstr ""
1280
 
1281
+ #: ../admin/class-is-settings-fields.php:394
1282
  msgid ""
1283
  "Add Google Custom Search( CSE ) search form code that will replace default "
1284
  "search form."
1285
  msgstr ""
1286
 
1287
+ #: ../admin/class-is-settings-fields.php:412
1288
  msgid "Enabled"
1289
  msgstr ""
1290
 
1291
+ #: ../admin/class-is-settings-fields.php:413
1292
  msgid "Disabled"
1293
  msgstr ""
1294
 
1295
+ #: ../admin/class-is-settings-fields.php:414
1296
  msgid "Google Analytics tracking for searches"
1297
  msgstr ""
1298
 
1299
+ #: ../admin/class-is-settings-fields.php:415
1300
  msgid "Search Analytics uses Google Analytics to track searches."
1301
  msgstr ""
1302
 
1303
+ #: ../admin/class-is-settings-fields.php:416
1304
  #, php-format
1305
  msgid "You need %s Google Analytics %s to be installed on your site."
1306
  msgstr ""
1307
 
1308
+ #: ../admin/class-is-settings-fields.php:417
1309
  msgid ""
1310
  "Data will be visible inside Google Analytics 'Events' and 'Site Search' "
1311
  "report."
1312
  msgstr ""
1313
 
1314
+ #: ../admin/class-is-settings-fields.php:418
1315
  msgid "Events will be as below:"
1316
  msgstr ""
1317
 
1318
+ #: ../admin/class-is-settings-fields.php:419
1319
  msgid "Category - Results Found / Nothing Found"
1320
  msgstr ""
1321
 
1322
+ #: ../admin/class-is-settings-fields.php:420
1323
  msgid "Action - Ivory Search - ID"
1324
  msgstr ""
1325
 
1326
+ #: ../admin/class-is-settings-fields.php:421
1327
  msgid "Label - Value of search term"
1328
  msgstr ""
1329
 
1330
+ #: ../admin/class-is-settings-fields.php:422
1331
  #, php-format
1332
  msgid ""
1333
  "Need to %s activate Site Search feature %s inside Google Analytics to "
1334
  "display data inside 'Site Search' report."
1335
  msgstr ""
1336
 
1337
+ #: ../admin/class-is-settings-fields.php:423
1338
  msgid ""
1339
  "Enable Site search Tracking option in Site Search Settings and set its "
1340
  "parameters as below."
1341
  msgstr ""
1342
 
1343
+ #: ../admin/class-is-settings-fields.php:424
1344
  msgid "Query parameter - s"
1345
  msgstr ""
1346
 
1347
+ #: ../admin/class-is-settings-fields.php:425
1348
  msgid "Category parameter - id / result"
1349
  msgstr ""
1350
 
1351
+ #: ../admin/class-is-settings-fields.php:436
1352
  msgid "Select search form to display in site header( Not Menu )."
1353
  msgstr ""
1354
 
1355
+ #: ../admin/class-is-settings-fields.php:461
1356
  msgid ""
1357
  "Please note that the above option displays search form in site header and "
1358
  "not in navigation menu."
1359
  msgstr ""
1360
 
1361
+ #: ../admin/class-is-settings-fields.php:469
1362
  msgid "Select search form to display in site footer."
1363
  msgstr ""
1364
 
1365
+ #: ../admin/class-is-settings-fields.php:504
1366
  msgid "Display search form in site header on mobile devices"
1367
  msgstr ""
1368
 
1369
+ #: ../admin/class-is-settings-fields.php:507
1370
  msgid ""
1371
  "If this site uses cache then please select the below option to display "
1372
  "search form on mobile."
1373
  msgstr ""
1374
 
1375
+ #: ../admin/class-is-settings-fields.php:514
1376
  msgid "This site uses cache"
1377
  msgstr ""
1378
 
1379
+ #: ../admin/class-is-settings-fields.php:523
1380
  msgid "Add custom CSS code."
1381
  msgstr ""
1382
 
1383
+ #: ../admin/class-is-settings-fields.php:536
1384
  msgid "Add Stopwords that will not be searched."
1385
  msgstr ""
1386
 
1387
+ #: ../admin/class-is-settings-fields.php:541
1388
  msgid "Please separate multiple words with commas."
1389
  msgstr ""
1390
 
1391
+ #: ../admin/class-is-settings-fields.php:550
1392
  msgid "Add synonyms to make the searches find better results."
1393
  msgstr ""
1394
 
1395
+ #: ../admin/class-is-settings-fields.php:552
1396
  msgid ""
1397
  "If you add bird = crow to the list of synonyms, searches for bird "
1398
  "automatically become a search for bird crow and will thus match to posts "
1399
  "that include either bird or crow."
1400
  msgstr ""
1401
 
1402
+ #: ../admin/class-is-settings-fields.php:557
1403
  msgid "The format here is key = value"
1404
  msgstr ""
1405
 
1406
+ #: ../admin/class-is-settings-fields.php:558
1407
  msgid "Please add every synonyms key = value pairs on new line."
1408
  msgstr ""
1409
 
1410
+ #: ../admin/class-is-settings-fields.php:560
1411
  msgid ""
1412
  "This only works for search forms configured to search any of the search "
1413
  "terms(OR) and not all search terms(AND) in the search form Options."
1414
  msgstr ""
1415
 
1416
+ #: ../admin/class-is-settings-fields.php:569
1417
  msgid ""
1418
  "Enable below options to disable loading of plugin CSS and JavaScript files."
1419
  msgstr ""
1420
 
1421
+ #: ../admin/class-is-settings-fields.php:573
1422
  msgid "Do not load plugin CSS files"
1423
  msgstr ""
1424
 
1425
+ #: ../admin/class-is-settings-fields.php:574
1426
  msgid "Do not load plugin JavaScript files"
1427
  msgstr ""
1428
 
1429
+ #: ../admin/class-is-settings-fields.php:590
1430
  msgid ""
1431
  "If checked, you have to add following plugin file code into your child theme "
1432
  "CSS file."
1433
  msgstr ""
1434
 
1435
+ #: ../admin/class-is-settings-fields.php:595
1436
  msgid ""
1437
  "If checked, you have to add following plugin files code into your child "
1438
  "theme JavaScript file."
1439
  msgstr ""
1440
 
1441
+ #: ../admin/class-is-settings-fields.php:612
1442
  msgid "Warning: Use with caution."
1443
  msgstr ""
1444
 
1445
+ #: ../admin/class-is-settings-fields.php:617
1446
  msgid ""
1447
  "Do not use Default Search Form to control WordPress default search "
1448
  "functionality"
1449
  msgstr ""
1450
 
1451
+ #: ../admin/class-is-settings-fields.php:626
1452
  msgid "Disable search functionality on entire website"
1453
  msgstr ""
1454
 
1455
+ #: ../admin/class-is-settings-fields.php:636
1456
  msgid ""
1457
  "Display easy edit links of search form on the website frontend to the admin "
1458
  "users"
1459
  msgstr ""
1460
 
1461
+ #: ../admin/partials/search-form.php:82
1462
  msgid "Add title"
1463
  msgstr ""
1464
 
1465
+ #: ../admin/partials/search-form.php:94
1466
  msgid "Editing the title of Default Search Form is restricted"
1467
  msgstr ""
1468
 
1469
+ #: ../admin/partials/search-form.php:106
1470
  msgid ""
1471
  "Copy this shortcode and paste it into your post, page, or text widget "
1472
  "content:"
1473
  msgstr ""
1474
 
1475
+ #: ../admin/partials/search-form.php:109
1476
  msgid "Please save search form to generate shortcode"
1477
  msgstr ""
1478
 
1479
+ #: ../admin/partials/search-form.php:114
1480
  msgid "Click to copy shortcode"
1481
  msgstr ""
1482
 
1483
+ #: ../admin/partials/search-form.php:138
1484
  msgid "Design"
1485
  msgstr ""
1486
 
1487
+ #: ../admin/partials/search-form.php:143
1488
  msgid "AJAX"
1489
  msgstr ""
1490
 
1491
+ #: ../admin/partials/search-form.php:196
1492
  msgid "Save"
1493
  msgstr ""
1494
 
1495
+ #: ../admin/partials/search-form.php:206
1496
  msgid "Reset"
1497
  msgstr ""
1498
 
1499
+ #: ../admin/partials/search-form.php:206
1500
  msgid ""
1501
  "You are about to reset this search form.\n"
1502
  " 'Cancel' to stop, 'OK' to reset."
1503
  msgstr ""
1504
 
1505
+ #: ../admin/partials/search-form.php:217
1506
+ #: ../admin/partials/settings-form.php:114
1507
  msgid "Documentation"
1508
  msgstr ""
1509
 
1510
+ #: ../admin/partials/search-form.php:219
1511
+ #: ../admin/partials/settings-form.php:116
1512
  msgid "Contact Us"
1513
  msgstr ""
1514
 
1515
+ #: ../admin/partials/search-form.php:220
1516
  msgid "Rate Ivory Search"
1517
  msgstr ""
1518
 
public/class-is-ajax.php CHANGED
@@ -385,7 +385,7 @@ class IS_Ajax {
385
  }
386
  $is_markup = apply_filters( 'is_customize_image_markup', false );
387
  if ( $is_markup ) {
388
- do_action( 'is_image_markup', $image, $field );
389
  } else if ( isset( $field['show_image'] ) && $field['show_image'] ) { ?>
390
  <div class="left-section">
391
  <div class="thumbnail">
385
  }
386
  $is_markup = apply_filters( 'is_customize_image_markup', false );
387
  if ( $is_markup ) {
388
+ do_action( 'is_image_markup', $image, $field, $temp_id );
389
  } else if ( isset( $field['show_image'] ) && $field['show_image'] ) { ?>
390
  <div class="left-section">
391
  <div class="thumbnail">
public/class-is-public.php CHANGED
@@ -379,7 +379,7 @@ class IS_Public
379
  $q['s'] = preg_replace( '/\\b(' . implode( '|', $stopwords ) . ')\\b/', '', $q['s'] );
380
  $query->query_vars['s'] = trim( preg_replace( '/\\s\\s+/', ' ', str_replace( "\n", " ", $q['s'] ) ) );
381
 
382
- if ( empty($query->query_vars['s']) ) {
383
  $query->is_home = false;
384
  $query->is_404 = true;
385
  $query->set( 'post__in', array( 9999999999 ) );
379
  $q['s'] = preg_replace( '/\\b(' . implode( '|', $stopwords ) . ')\\b/', '', $q['s'] );
380
  $query->query_vars['s'] = trim( preg_replace( '/\\s\\s+/', ' ', str_replace( "\n", " ", $q['s'] ) ) );
381
 
382
+ if ( empty($query->query_vars['s']) || 1 == strlen( $query->query_vars['s'] ) && preg_match( '/[^a-zA-Z\\d]/', $query->query_vars['s'] ) ) {
383
  $query->is_home = false;
384
  $query->is_404 = true;
385
  $query->set( 'post__in', array( 9999999999 ) );
public/js/ivory-ajax-search.js CHANGED
@@ -350,5 +350,5 @@
350
  /* == jquery mousewheel plugin == Version: 3.1.13, License: MIT License (MIT) */
351
  !function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a:a(jQuery)}(function(a){function b(b){var g=b||window.event,h=i.call(arguments,1),j=0,l=0,m=0,n=0,o=0,p=0;if(b=a.event.fix(g),b.type="mousewheel","detail"in g&&(m=-1*g.detail),"wheelDelta"in g&&(m=g.wheelDelta),"wheelDeltaY"in g&&(m=g.wheelDeltaY),"wheelDeltaX"in g&&(l=-1*g.wheelDeltaX),"axis"in g&&g.axis===g.HORIZONTAL_AXIS&&(l=-1*m,m=0),j=0===m?l:m,"deltaY"in g&&(m=-1*g.deltaY,j=m),"deltaX"in g&&(l=g.deltaX,0===m&&(j=-1*l)),0!==m||0!==l){if(1===g.deltaMode){var q=a.data(this,"mousewheel-line-height");j*=q,m*=q,l*=q}else if(2===g.deltaMode){var r=a.data(this,"mousewheel-page-height");j*=r,m*=r,l*=r}if(n=Math.max(Math.abs(m),Math.abs(l)),(!f||f>n)&&(f=n,d(g,n)&&(f/=40)),d(g,n)&&(j/=40,l/=40,m/=40),j=Math[j>=1?"floor":"ceil"](j/f),l=Math[l>=1?"floor":"ceil"](l/f),m=Math[m>=1?"floor":"ceil"](m/f),k.settings.normalizeOffset&&this.getBoundingClientRect){var s=this.getBoundingClientRect();o=b.clientX-s.left,p=b.clientY-s.top}return b.deltaX=l,b.deltaY=m,b.deltaFactor=f,b.offsetX=o,b.offsetY=p,b.deltaMode=0,h.unshift(b,j,l,m),e&&clearTimeout(e),e=setTimeout(c,200),(a.event.dispatch||a.event.handle).apply(this,h)}}function c(){f=null}function d(a,b){return k.settings.adjustOldDeltas&&"mousewheel"===a.type&&b%120===0}var e,f,g=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],h="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],i=Array.prototype.slice;if(a.event.fixHooks)for(var j=g.length;j;)a.event.fixHooks[g[--j]]=a.event.mouseHooks;var k=a.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var c=h.length;c;)this.addEventListener(h[--c],b,!1);else this.onmousewheel=b;a.data(this,"mousewheel-line-height",k.getLineHeight(this)),a.data(this,"mousewheel-page-height",k.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var c=h.length;c;)this.removeEventListener(h[--c],b,!1);else this.onmousewheel=null;a.removeData(this,"mousewheel-line-height"),a.removeData(this,"mousewheel-page-height")},getLineHeight:function(b){var c=a(b),d=c["offsetParent"in a.fn?"offsetParent":"parent"]();return d.length||(d=a("body")),parseInt(d.css("fontSize"),10)||parseInt(c.css("fontSize"),10)||16},getPageHeight:function(b){return a(b).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})});!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a:a(jQuery)}(function(a){function b(b){var g=b||window.event,h=i.call(arguments,1),j=0,l=0,m=0,n=0,o=0,p=0;if(b=a.event.fix(g),b.type="mousewheel","detail"in g&&(m=-1*g.detail),"wheelDelta"in g&&(m=g.wheelDelta),"wheelDeltaY"in g&&(m=g.wheelDeltaY),"wheelDeltaX"in g&&(l=-1*g.wheelDeltaX),"axis"in g&&g.axis===g.HORIZONTAL_AXIS&&(l=-1*m,m=0),j=0===m?l:m,"deltaY"in g&&(m=-1*g.deltaY,j=m),"deltaX"in g&&(l=g.deltaX,0===m&&(j=-1*l)),0!==m||0!==l){if(1===g.deltaMode){var q=a.data(this,"mousewheel-line-height");j*=q,m*=q,l*=q}else if(2===g.deltaMode){var r=a.data(this,"mousewheel-page-height");j*=r,m*=r,l*=r}if(n=Math.max(Math.abs(m),Math.abs(l)),(!f||f>n)&&(f=n,d(g,n)&&(f/=40)),d(g,n)&&(j/=40,l/=40,m/=40),j=Math[j>=1?"floor":"ceil"](j/f),l=Math[l>=1?"floor":"ceil"](l/f),m=Math[m>=1?"floor":"ceil"](m/f),k.settings.normalizeOffset&&this.getBoundingClientRect){var s=this.getBoundingClientRect();o=b.clientX-s.left,p=b.clientY-s.top}return b.deltaX=l,b.deltaY=m,b.deltaFactor=f,b.offsetX=o,b.offsetY=p,b.deltaMode=0,h.unshift(b,j,l,m),e&&clearTimeout(e),e=setTimeout(c,200),(a.event.dispatch||a.event.handle).apply(this,h)}}function c(){f=null}function d(a,b){return k.settings.adjustOldDeltas&&"mousewheel"===a.type&&b%120===0}var e,f,g=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],h="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],i=Array.prototype.slice;if(a.event.fixHooks)for(var j=g.length;j;)a.event.fixHooks[g[--j]]=a.event.mouseHooks;var k=a.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var c=h.length;c;)this.addEventListener(h[--c],b,!1);else this.onmousewheel=b;a.data(this,"mousewheel-line-height",k.getLineHeight(this)),a.data(this,"mousewheel-page-height",k.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var c=h.length;c;)this.removeEventListener(h[--c],b,!1);else this.onmousewheel=null;a.removeData(this,"mousewheel-line-height"),a.removeData(this,"mousewheel-page-height")},getLineHeight:function(b){var c=a(b),d=c["offsetParent"in a.fn?"offsetParent":"parent"]();return d.length||(d=a("body")),parseInt(d.css("fontSize"),10)||parseInt(c.css("fontSize"),10)||16},getPageHeight:function(b){return a(b).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})});
352
  /* == malihu jquery custom scrollbar plugin == Version: 3.1.5, License: MIT License (MIT) */
353
- !function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"undefined"!=typeof module&&module.exports?module.exports=e:e(jQuery,window,document)}(function(e){!function(t){var o="function"==typeof define&&define.amd,a="undefined"!=typeof module&&module.exports,n="https:"==document.location.protocol?"https:":"http:",i="cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.13/jquery.mousewheel.min.js";o||(a?require("jquery-mousewheel")(e):e.event.special.mousewheel||e("head").append(decodeURI("%3Cscript src="+n+"//"+i+"%3E%3C/script%3E"))),t()}(function(){var t,o="mCustomScrollbar",a="mCS",n=".mCustomScrollbar",i={setTop:0,setLeft:0,axis:"y",scrollbarPosition:"inside",scrollInertia:950,autoDraggerLength:!0,alwaysShowScrollbar:0,snapOffset:0,mouseWheel:{enable:!0,scrollAmount:"auto",axis:"y",deltaFactor:"auto",disableOver:["select","option","keygen","datalist","textarea"]},scrollButtons:{scrollType:"stepless",scrollAmount:"auto"},keyboard:{enable:!0,scrollType:"stepless",scrollAmount:"auto"},contentTouchScroll:25,documentTouchScroll:!0,advanced:{autoScrollOnFocus:"input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']",updateOnContentResize:!0,updateOnImageLoad:"auto",autoUpdateTimeout:60},theme:"light",callbacks:{onTotalScrollOffset:0,onTotalScrollBackOffset:0,alwaysTriggerOffsets:!0}},r=0,l={},s=window.attachEvent&&!window.addEventListener?1:0,c=!1,d=["mCSB_dragger_onDrag","mCSB_scrollTools_onDrag","mCS_img_loaded","mCS_disabled","mCS_destroyed","mCS_no_scrollbar","mCS-autoHide","mCS-dir-rtl","mCS_no_scrollbar_y","mCS_no_scrollbar_x","mCS_y_hidden","mCS_x_hidden","mCSB_draggerContainer","mCSB_buttonUp","mCSB_buttonDown","mCSB_buttonLeft","mCSB_buttonRight"],u={init:function(t){var t=e.extend(!0,{},i,t),o=f.call(this);if(t.live){var s=t.liveSelector||this.selector||n,c=e(s);if("off"===t.live)return void m(s);l[s]=setTimeout(function(){c.mCustomScrollbar(t),"once"===t.live&&c.length&&m(s)},500)}else m(s);return t.setWidth=t.set_width?t.set_width:t.setWidth,t.setHeight=t.set_height?t.set_height:t.setHeight,t.axis=t.horizontalScroll?"x":p(t.axis),t.scrollInertia=t.scrollInertia>0&&t.scrollInertia<17?17:t.scrollInertia,"object"!=typeof t.mouseWheel&&1==t.mouseWheel&&(t.mouseWheel={enable:!0,scrollAmount:"auto",axis:"y",preventDefault:!1,deltaFactor:"auto",normalizeDelta:!1,invert:!1}),t.mouseWheel.scrollAmount=t.mouseWheelPixels?t.mouseWheelPixels:t.mouseWheel.scrollAmount,t.mouseWheel.normalizeDelta=t.advanced.normalizeMouseWheelDelta?t.advanced.normalizeMouseWheelDelta:t.mouseWheel.normalizeDelta,t.scrollButtons.scrollType=g(t.scrollButtons.scrollType),h(t),e(o).each(function(){var o=e(this);if(!o.data(a)){o.data(a,{idx:++r,opt:t,scrollRatio:{y:null,x:null},overflowed:null,contentReset:{y:null,x:null},bindEvents:!1,tweenRunning:!1,sequential:{},langDir:o.css("direction"),cbOffsets:null,trigger:null,poll:{size:{o:0,n:0},img:{o:0,n:0},change:{o:0,n:0}}});var n=o.data(a),i=n.opt,l=o.data("mcs-axis"),s=o.data("mcs-scrollbar-position"),c=o.data("mcs-theme");l&&(i.axis=l),s&&(i.scrollbarPosition=s),c&&(i.theme=c,h(i)),v.call(this),n&&i.callbacks.onCreate&&"function"==typeof i.callbacks.onCreate&&i.callbacks.onCreate.call(this),e("#mCSB_"+n.idx+"_container img:not(."+d[2]+")").addClass(d[2]),u.update.call(null,o)}})},update:function(t,o){var n=t||f.call(this);return e(n).each(function(){var t=e(this);if(t.data(a)){var n=t.data(a),i=n.opt,r=e("#mCSB_"+n.idx+"_container"),l=e("#mCSB_"+n.idx),s=[e("#mCSB_"+n.idx+"_dragger_vertical"),e("#mCSB_"+n.idx+"_dragger_horizontal")];if(!r.length)return;n.tweenRunning&&Q(t),o&&n&&i.callbacks.onBeforeUpdate&&"function"==typeof i.callbacks.onBeforeUpdate&&i.callbacks.onBeforeUpdate.call(this),t.hasClass(d[3])&&t.removeClass(d[3]),t.hasClass(d[4])&&t.removeClass(d[4]),l.css("max-height","none"),l.height()!==t.height()&&l.css("max-height",t.height()),_.call(this),"y"===i.axis||i.advanced.autoExpandHorizontalScroll||r.css("width",x(r)),n.overflowed=y.call(this),M.call(this),i.autoDraggerLength&&S.call(this),b.call(this),T.call(this);var c=[Math.abs(r[0].offsetTop),Math.abs(r[0].offsetLeft)];"x"!==i.axis&&(n.overflowed[0]?s[0].height()>s[0].parent().height()?B.call(this):(G(t,c[0].toString(),{dir:"y",dur:0,overwrite:"none"}),n.contentReset.y=null):(B.call(this),"y"===i.axis?k.call(this):"yx"===i.axis&&n.overflowed[1]&&G(t,c[1].toString(),{dir:"x",dur:0,overwrite:"none"}))),"y"!==i.axis&&(n.overflowed[1]?s[1].width()>s[1].parent().width()?B.call(this):(G(t,c[1].toString(),{dir:"x",dur:0,overwrite:"none"}),n.contentReset.x=null):(B.call(this),"x"===i.axis?k.call(this):"yx"===i.axis&&n.overflowed[0]&&G(t,c[0].toString(),{dir:"y",dur:0,overwrite:"none"}))),o&&n&&(2===o&&i.callbacks.onImageLoad&&"function"==typeof i.callbacks.onImageLoad?i.callbacks.onImageLoad.call(this):3===o&&i.callbacks.onSelectorChange&&"function"==typeof i.callbacks.onSelectorChange?i.callbacks.onSelectorChange.call(this):i.callbacks.onUpdate&&"function"==typeof i.callbacks.onUpdate&&i.callbacks.onUpdate.call(this)),N.call(this)}})},scrollTo:function(t,o){if("undefined"!=typeof t&&null!=t){var n=f.call(this);return e(n).each(function(){var n=e(this);if(n.data(a)){var i=n.data(a),r=i.opt,l={trigger:"external",scrollInertia:r.scrollInertia,scrollEasing:"mcsEaseInOut",moveDragger:!1,timeout:60,callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},s=e.extend(!0,{},l,o),c=Y.call(this,t),d=s.scrollInertia>0&&s.scrollInertia<17?17:s.scrollInertia;c[0]=X.call(this,c[0],"y"),c[1]=X.call(this,c[1],"x"),s.moveDragger&&(c[0]*=i.scrollRatio.y,c[1]*=i.scrollRatio.x),s.dur=ne()?0:d,setTimeout(function(){null!==c[0]&&"undefined"!=typeof c[0]&&"x"!==r.axis&&i.overflowed[0]&&(s.dir="y",s.overwrite="all",G(n,c[0].toString(),s)),null!==c[1]&&"undefined"!=typeof c[1]&&"y"!==r.axis&&i.overflowed[1]&&(s.dir="x",s.overwrite="none",G(n,c[1].toString(),s))},s.timeout)}})}},stop:function(){var t=f.call(this);return e(t).each(function(){var t=e(this);t.data(a)&&Q(t)})},disable:function(t){var o=f.call(this);return e(o).each(function(){var o=e(this);if(o.data(a)){o.data(a);N.call(this,"remove"),k.call(this),t&&B.call(this),M.call(this,!0),o.addClass(d[3])}})},destroy:function(){var t=f.call(this);return e(t).each(function(){var n=e(this);if(n.data(a)){var i=n.data(a),r=i.opt,l=e("#mCSB_"+i.idx),s=e("#mCSB_"+i.idx+"_container"),c=e(".mCSB_"+i.idx+"_scrollbar");r.live&&m(r.liveSelector||e(t).selector),N.call(this,"remove"),k.call(this),B.call(this),n.removeData(a),$(this,"mcs"),c.remove(),s.find("img."+d[2]).removeClass(d[2]),l.replaceWith(s.contents()),n.removeClass(o+" _"+a+"_"+i.idx+" "+d[6]+" "+d[7]+" "+d[5]+" "+d[3]).addClass(d[4])}})}},f=function(){return"object"!=typeof e(this)||e(this).length<1?n:this},h=function(t){var o=["rounded","rounded-dark","rounded-dots","rounded-dots-dark"],a=["rounded-dots","rounded-dots-dark","3d","3d-dark","3d-thick","3d-thick-dark","inset","inset-dark","inset-2","inset-2-dark","inset-3","inset-3-dark"],n=["minimal","minimal-dark"],i=["minimal","minimal-dark"],r=["minimal","minimal-dark"];t.autoDraggerLength=e.inArray(t.theme,o)>-1?!1:t.autoDraggerLength,t.autoExpandScrollbar=e.inArray(t.theme,a)>-1?!1:t.autoExpandScrollbar,t.scrollButtons.enable=e.inArray(t.theme,n)>-1?!1:t.scrollButtons.enable,t.autoHideScrollbar=e.inArray(t.theme,i)>-1?!0:t.autoHideScrollbar,t.scrollbarPosition=e.inArray(t.theme,r)>-1?"outside":t.scrollbarPosition},m=function(e){l[e]&&(clearTimeout(l[e]),$(l,e))},p=function(e){return"yx"===e||"xy"===e||"auto"===e?"yx":"x"===e||"horizontal"===e?"x":"y"},g=function(e){return"stepped"===e||"pixels"===e||"step"===e||"click"===e?"stepped":"stepless"},v=function(){var t=e(this),n=t.data(a),i=n.opt,r=i.autoExpandScrollbar?" "+d[1]+"_expand":"",l=["<div id='mCSB_"+n.idx+"_scrollbar_vertical' class='mCSB_scrollTools mCSB_"+n.idx+"_scrollbar mCS-"+i.theme+" mCSB_scrollTools_vertical"+r+"'><div class='"+d[12]+"'><div id='mCSB_"+n.idx+"_dragger_vertical' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>","<div id='mCSB_"+n.idx+"_scrollbar_horizontal' class='mCSB_scrollTools mCSB_"+n.idx+"_scrollbar mCS-"+i.theme+" mCSB_scrollTools_horizontal"+r+"'><div class='"+d[12]+"'><div id='mCSB_"+n.idx+"_dragger_horizontal' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>"],s="yx"===i.axis?"mCSB_vertical_horizontal":"x"===i.axis?"mCSB_horizontal":"mCSB_vertical",c="yx"===i.axis?l[0]+l[1]:"x"===i.axis?l[1]:l[0],u="yx"===i.axis?"<div id='mCSB_"+n.idx+"_container_wrapper' class='mCSB_container_wrapper' />":"",f=i.autoHideScrollbar?" "+d[6]:"",h="x"!==i.axis&&"rtl"===n.langDir?" "+d[7]:"";i.setWidth&&t.css("width",i.setWidth),i.setHeight&&t.css("height",i.setHeight),i.setLeft="y"!==i.axis&&"rtl"===n.langDir?"989999px":i.setLeft,t.addClass(o+" _"+a+"_"+n.idx+f+h).wrapInner("<div id='mCSB_"+n.idx+"' class='mCustomScrollBox mCS-"+i.theme+" "+s+"'><div id='mCSB_"+n.idx+"_container' class='mCSB_container' style='position:relative; top:"+i.setTop+"; left:"+i.setLeft+";' dir='"+n.langDir+"' /></div>");var m=e("#mCSB_"+n.idx),p=e("#mCSB_"+n.idx+"_container");"y"===i.axis||i.advanced.autoExpandHorizontalScroll||p.css("width",x(p)),"outside"===i.scrollbarPosition?("static"===t.css("position")&&t.css("position","relative"),t.css("overflow","visible"),m.addClass("mCSB_outside").after(c)):(m.addClass("mCSB_inside").append(c),p.wrap(u)),w.call(this);var g=[e("#mCSB_"+n.idx+"_dragger_vertical"),e("#mCSB_"+n.idx+"_dragger_horizontal")];g[0].css("min-height",g[0].height()),g[1].css("min-width",g[1].width())},x=function(t){var o=[t[0].scrollWidth,Math.max.apply(Math,t.children().map(function(){return e(this).outerWidth(!0)}).get())],a=t.parent().width();return o[0]>a?o[0]:o[1]>a?o[1]:"100%"},_=function(){var t=e(this),o=t.data(a),n=o.opt,i=e("#mCSB_"+o.idx+"_container");if(n.advanced.autoExpandHorizontalScroll&&"y"!==n.axis){i.css({width:"auto","min-width":0,"overflow-x":"scroll"});var r=Math.ceil(i[0].scrollWidth);3===n.advanced.autoExpandHorizontalScroll||2!==n.advanced.autoExpandHorizontalScroll&&r>i.parent().width()?i.css({width:r,"min-width":"100%","overflow-x":"inherit"}):i.css({"overflow-x":"inherit",position:"absolute"}).wrap("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />").css({width:Math.ceil(i[0].getBoundingClientRect().right+.4)-Math.floor(i[0].getBoundingClientRect().left),"min-width":"100%",position:"relative"}).unwrap()}},w=function(){var t=e(this),o=t.data(a),n=o.opt,i=e(".mCSB_"+o.idx+"_scrollbar:first"),r=oe(n.scrollButtons.tabindex)?"tabindex='"+n.scrollButtons.tabindex+"'":"",l=["<a href='#' class='"+d[13]+"' "+r+" />","<a href='#' class='"+d[14]+"' "+r+" />","<a href='#' class='"+d[15]+"' "+r+" />","<a href='#' class='"+d[16]+"' "+r+" />"],s=["x"===n.axis?l[2]:l[0],"x"===n.axis?l[3]:l[1],l[2],l[3]];n.scrollButtons.enable&&i.prepend(s[0]).append(s[1]).next(".mCSB_scrollTools").prepend(s[2]).append(s[3])},S=function(){var t=e(this),o=t.data(a),n=e("#mCSB_"+o.idx),i=e("#mCSB_"+o.idx+"_container"),r=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")],l=[n.height()/i.outerHeight(!1),n.width()/i.outerWidth(!1)],c=[parseInt(r[0].css("min-height")),Math.round(l[0]*r[0].parent().height()),parseInt(r[1].css("min-width")),Math.round(l[1]*r[1].parent().width())],d=s&&c[1]<c[0]?c[0]:c[1],u=s&&c[3]<c[2]?c[2]:c[3];r[0].css({height:d,"max-height":r[0].parent().height()-10}).find(".mCSB_dragger_bar").css({"line-height":c[0]+"px"}),r[1].css({width:u,"max-width":r[1].parent().width()-10})},b=function(){var t=e(this),o=t.data(a),n=e("#mCSB_"+o.idx),i=e("#mCSB_"+o.idx+"_container"),r=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")],l=[i.outerHeight(!1)-n.height(),i.outerWidth(!1)-n.width()],s=[l[0]/(r[0].parent().height()-r[0].height()),l[1]/(r[1].parent().width()-r[1].width())];o.scrollRatio={y:s[0],x:s[1]}},C=function(e,t,o){var a=o?d[0]+"_expanded":"",n=e.closest(".mCSB_scrollTools");"active"===t?(e.toggleClass(d[0]+" "+a),n.toggleClass(d[1]),e[0]._draggable=e[0]._draggable?0:1):e[0]._draggable||("hide"===t?(e.removeClass(d[0]),n.removeClass(d[1])):(e.addClass(d[0]),n.addClass(d[1])))},y=function(){var t=e(this),o=t.data(a),n=e("#mCSB_"+o.idx),i=e("#mCSB_"+o.idx+"_container"),r=null==o.overflowed?i.height():i.outerHeight(!1),l=null==o.overflowed?i.width():i.outerWidth(!1),s=i[0].scrollHeight,c=i[0].scrollWidth;return s>r&&(r=s),c>l&&(l=c),[r>n.height(),l>n.width()]},B=function(){var t=e(this),o=t.data(a),n=o.opt,i=e("#mCSB_"+o.idx),r=e("#mCSB_"+o.idx+"_container"),l=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")];if(Q(t),("x"!==n.axis&&!o.overflowed[0]||"y"===n.axis&&o.overflowed[0])&&(l[0].add(r).css("top",0),G(t,"_resetY")),"y"!==n.axis&&!o.overflowed[1]||"x"===n.axis&&o.overflowed[1]){var s=dx=0;"rtl"===o.langDir&&(s=i.width()-r.outerWidth(!1),dx=Math.abs(s/o.scrollRatio.x)),r.css("left",s),l[1].css("left",dx),G(t,"_resetX")}},T=function(){function t(){r=setTimeout(function(){e.event.special.mousewheel?(clearTimeout(r),W.call(o[0])):t()},100)}var o=e(this),n=o.data(a),i=n.opt;if(!n.bindEvents){if(I.call(this),i.contentTouchScroll&&D.call(this),E.call(this),i.mouseWheel.enable){var r;t()}P.call(this),U.call(this),i.advanced.autoScrollOnFocus&&H.call(this),i.scrollButtons.enable&&F.call(this),i.keyboard.enable&&q.call(this),n.bindEvents=!0}},k=function(){var t=e(this),o=t.data(a),n=o.opt,i=a+"_"+o.idx,r=".mCSB_"+o.idx+"_scrollbar",l=e("#mCSB_"+o.idx+",#mCSB_"+o.idx+"_container,#mCSB_"+o.idx+"_container_wrapper,"+r+" ."+d[12]+",#mCSB_"+o.idx+"_dragger_vertical,#mCSB_"+o.idx+"_dragger_horizontal,"+r+">a"),s=e("#mCSB_"+o.idx+"_container");n.advanced.releaseDraggableSelectors&&l.add(e(n.advanced.releaseDraggableSelectors)),n.advanced.extraDraggableSelectors&&l.add(e(n.advanced.extraDraggableSelectors)),o.bindEvents&&(e(document).add(e(!A()||top.document)).unbind("."+i),l.each(function(){e(this).unbind("."+i)}),clearTimeout(t[0]._focusTimeout),$(t[0],"_focusTimeout"),clearTimeout(o.sequential.step),$(o.sequential,"step"),clearTimeout(s[0].onCompleteTimeout),$(s[0],"onCompleteTimeout"),o.bindEvents=!1)},M=function(t){var o=e(this),n=o.data(a),i=n.opt,r=e("#mCSB_"+n.idx+"_container_wrapper"),l=r.length?r:e("#mCSB_"+n.idx+"_container"),s=[e("#mCSB_"+n.idx+"_scrollbar_vertical"),e("#mCSB_"+n.idx+"_scrollbar_horizontal")],c=[s[0].find(".mCSB_dragger"),s[1].find(".mCSB_dragger")];"x"!==i.axis&&(n.overflowed[0]&&!t?(s[0].add(c[0]).add(s[0].children("a")).css("display","block"),l.removeClass(d[8]+" "+d[10])):(i.alwaysShowScrollbar?(2!==i.alwaysShowScrollbar&&c[0].css("display","none"),l.removeClass(d[10])):(s[0].css("display","none"),l.addClass(d[10])),l.addClass(d[8]))),"y"!==i.axis&&(n.overflowed[1]&&!t?(s[1].add(c[1]).add(s[1].children("a")).css("display","block"),l.removeClass(d[9]+" "+d[11])):(i.alwaysShowScrollbar?(2!==i.alwaysShowScrollbar&&c[1].css("display","none"),l.removeClass(d[11])):(s[1].css("display","none"),l.addClass(d[11])),l.addClass(d[9]))),n.overflowed[0]||n.overflowed[1]?o.removeClass(d[5]):o.addClass(d[5])},O=function(t){var o=t.type,a=t.target.ownerDocument!==document&&null!==frameElement?[e(frameElement).offset().top,e(frameElement).offset().left]:null,n=A()&&t.target.ownerDocument!==top.document&&null!==frameElement?[e(t.view.frameElement).offset().top,e(t.view.frameElement).offset().left]:[0,0];switch(o){case"pointerdown":case"MSPointerDown":case"pointermove":case"MSPointerMove":case"pointerup":case"MSPointerUp":return a?[t.originalEvent.pageY-a[0]+n[0],t.originalEvent.pageX-a[1]+n[1],!1]:[t.originalEvent.pageY,t.originalEvent.pageX,!1];case"touchstart":case"touchmove":case"touchend":var i=t.originalEvent.touches[0]||t.originalEvent.changedTouches[0],r=t.originalEvent.touches.length||t.originalEvent.changedTouches.length;return t.target.ownerDocument!==document?[i.screenY,i.screenX,r>1]:[i.pageY,i.pageX,r>1];default:return a?[t.pageY-a[0]+n[0],t.pageX-a[1]+n[1],!1]:[t.pageY,t.pageX,!1]}},I=function(){function t(e,t,a,n){if(h[0].idleTimer=d.scrollInertia<233?250:0,o.attr("id")===f[1])var i="x",s=(o[0].offsetLeft-t+n)*l.scrollRatio.x;else var i="y",s=(o[0].offsetTop-e+a)*l.scrollRatio.y;G(r,s.toString(),{dir:i,drag:!0})}var o,n,i,r=e(this),l=r.data(a),d=l.opt,u=a+"_"+l.idx,f=["mCSB_"+l.idx+"_dragger_vertical","mCSB_"+l.idx+"_dragger_horizontal"],h=e("#mCSB_"+l.idx+"_container"),m=e("#"+f[0]+",#"+f[1]),p=d.advanced.releaseDraggableSelectors?m.add(e(d.advanced.releaseDraggableSelectors)):m,g=d.advanced.extraDraggableSelectors?e(!A()||top.document).add(e(d.advanced.extraDraggableSelectors)):e(!A()||top.document);m.bind("contextmenu."+u,function(e){e.preventDefault()}).bind("mousedown."+u+" touchstart."+u+" pointerdown."+u+" MSPointerDown."+u,function(t){if(t.stopImmediatePropagation(),t.preventDefault(),ee(t)){c=!0,s&&(document.onselectstart=function(){return!1}),L.call(h,!1),Q(r),o=e(this);var a=o.offset(),l=O(t)[0]-a.top,u=O(t)[1]-a.left,f=o.height()+a.top,m=o.width()+a.left;f>l&&l>0&&m>u&&u>0&&(n=l,i=u),C(o,"active",d.autoExpandScrollbar)}}).bind("touchmove."+u,function(e){e.stopImmediatePropagation(),e.preventDefault();var a=o.offset(),r=O(e)[0]-a.top,l=O(e)[1]-a.left;t(n,i,r,l)}),e(document).add(g).bind("mousemove."+u+" pointermove."+u+" MSPointerMove."+u,function(e){if(o){var a=o.offset(),r=O(e)[0]-a.top,l=O(e)[1]-a.left;if(n===r&&i===l)return;t(n,i,r,l)}}).add(p).bind("mouseup."+u+" touchend."+u+" pointerup."+u+" MSPointerUp."+u,function(){o&&(C(o,"active",d.autoExpandScrollbar),o=null),c=!1,s&&(document.onselectstart=null),L.call(h,!0)})},D=function(){function o(e){if(!te(e)||c||O(e)[2])return void(t=0);t=1,b=0,C=0,d=1,y.removeClass("mCS_touch_action");var o=I.offset();u=O(e)[0]-o.top,f=O(e)[1]-o.left,z=[O(e)[0],O(e)[1]]}function n(e){if(te(e)&&!c&&!O(e)[2]&&(T.documentTouchScroll||e.preventDefault(),e.stopImmediatePropagation(),(!C||b)&&d)){g=K();var t=M.offset(),o=O(e)[0]-t.top,a=O(e)[1]-t.left,n="mcsLinearOut";if(E.push(o),W.push(a),z[2]=Math.abs(O(e)[0]-z[0]),z[3]=Math.abs(O(e)[1]-z[1]),B.overflowed[0])var i=D[0].parent().height()-D[0].height(),r=u-o>0&&o-u>-(i*B.scrollRatio.y)&&(2*z[3]<z[2]||"yx"===T.axis);if(B.overflowed[1])var l=D[1].parent().width()-D[1].width(),h=f-a>0&&a-f>-(l*B.scrollRatio.x)&&(2*z[2]<z[3]||"yx"===T.axis);r||h?(U||e.preventDefault(),b=1):(C=1,y.addClass("mCS_touch_action")),U&&e.preventDefault(),w="yx"===T.axis?[u-o,f-a]:"x"===T.axis?[null,f-a]:[u-o,null],I[0].idleTimer=250,B.overflowed[0]&&s(w[0],R,n,"y","all",!0),B.overflowed[1]&&s(w[1],R,n,"x",L,!0)}}function i(e){if(!te(e)||c||O(e)[2])return void(t=0);t=1,e.stopImmediatePropagation(),Q(y),p=K();var o=M.offset();h=O(e)[0]-o.top,m=O(e)[1]-o.left,E=[],W=[]}function r(e){if(te(e)&&!c&&!O(e)[2]){d=0,e.stopImmediatePropagation(),b=0,C=0,v=K();var t=M.offset(),o=O(e)[0]-t.top,a=O(e)[1]-t.left;if(!(v-g>30)){_=1e3/(v-p);var n="mcsEaseOut",i=2.5>_,r=i?[E[E.length-2],W[W.length-2]]:[0,0];x=i?[o-r[0],a-r[1]]:[o-h,a-m];var u=[Math.abs(x[0]),Math.abs(x[1])];_=i?[Math.abs(x[0]/4),Math.abs(x[1]/4)]:[_,_];var f=[Math.abs(I[0].offsetTop)-x[0]*l(u[0]/_[0],_[0]),Math.abs(I[0].offsetLeft)-x[1]*l(u[1]/_[1],_[1])];w="yx"===T.axis?[f[0],f[1]]:"x"===T.axis?[null,f[1]]:[f[0],null],S=[4*u[0]+T.scrollInertia,4*u[1]+T.scrollInertia];var y=parseInt(T.contentTouchScroll)||0;w[0]=u[0]>y?w[0]:0,w[1]=u[1]>y?w[1]:0,B.overflowed[0]&&s(w[0],S[0],n,"y",L,!1),B.overflowed[1]&&s(w[1],S[1],n,"x",L,!1)}}}function l(e,t){var o=[1.5*t,2*t,t/1.5,t/2];return e>90?t>4?o[0]:o[3]:e>60?t>3?o[3]:o[2]:e>30?t>8?o[1]:t>6?o[0]:t>4?t:o[2]:t>8?t:o[3]}function s(e,t,o,a,n,i){e&&G(y,e.toString(),{dur:t,scrollEasing:o,dir:a,overwrite:n,drag:i})}var d,u,f,h,m,p,g,v,x,_,w,S,b,C,y=e(this),B=y.data(a),T=B.opt,k=a+"_"+B.idx,M=e("#mCSB_"+B.idx),I=e("#mCSB_"+B.idx+"_container"),D=[e("#mCSB_"+B.idx+"_dragger_vertical"),e("#mCSB_"+B.idx+"_dragger_horizontal")],E=[],W=[],R=0,L="yx"===T.axis?"none":"all",z=[],P=I.find("iframe"),H=["touchstart."+k+" pointerdown."+k+" MSPointerDown."+k,"touchmove."+k+" pointermove."+k+" MSPointerMove."+k,"touchend."+k+" pointerup."+k+" MSPointerUp."+k],U=void 0!==document.body.style.touchAction&&""!==document.body.style.touchAction;I.bind(H[0],function(e){o(e)}).bind(H[1],function(e){n(e)}),M.bind(H[0],function(e){i(e)}).bind(H[2],function(e){r(e)}),P.length&&P.each(function(){e(this).bind("load",function(){A(this)&&e(this.contentDocument||this.contentWindow.document).bind(H[0],function(e){o(e),i(e)}).bind(H[1],function(e){n(e)}).bind(H[2],function(e){r(e)})})})},E=function(){function o(){return window.getSelection?window.getSelection().toString():document.selection&&"Control"!=document.selection.type?document.selection.createRange().text:0}function n(e,t,o){d.type=o&&i?"stepped":"stepless",d.scrollAmount=10,j(r,e,t,"mcsLinearOut",o?60:null)}var i,r=e(this),l=r.data(a),s=l.opt,d=l.sequential,u=a+"_"+l.idx,f=e("#mCSB_"+l.idx+"_container"),h=f.parent();f.bind("mousedown."+u,function(){t||i||(i=1,c=!0)}).add(document).bind("mousemove."+u,function(e){if(!t&&i&&o()){var a=f.offset(),r=O(e)[0]-a.top+f[0].offsetTop,c=O(e)[1]-a.left+f[0].offsetLeft;r>0&&r<h.height()&&c>0&&c<h.width()?d.step&&n("off",null,"stepped"):("x"!==s.axis&&l.overflowed[0]&&(0>r?n("on",38):r>h.height()&&n("on",40)),"y"!==s.axis&&l.overflowed[1]&&(0>c?n("on",37):c>h.width()&&n("on",39)))}}).bind("mouseup."+u+" dragend."+u,function(){t||(i&&(i=0,n("off",null)),c=!1)})},W=function(){function t(t,a){if(Q(o),!z(o,t.target)){var r="auto"!==i.mouseWheel.deltaFactor?parseInt(i.mouseWheel.deltaFactor):s&&t.deltaFactor<100?100:t.deltaFactor||100,d=i.scrollInertia;if("x"===i.axis||"x"===i.mouseWheel.axis)var u="x",f=[Math.round(r*n.scrollRatio.x),parseInt(i.mouseWheel.scrollAmount)],h="auto"!==i.mouseWheel.scrollAmount?f[1]:f[0]>=l.width()?.9*l.width():f[0],m=Math.abs(e("#mCSB_"+n.idx+"_container")[0].offsetLeft),p=c[1][0].offsetLeft,g=c[1].parent().width()-c[1].width(),v="y"===i.mouseWheel.axis?t.deltaY||a:t.deltaX;else var u="y",f=[Math.round(r*n.scrollRatio.y),parseInt(i.mouseWheel.scrollAmount)],h="auto"!==i.mouseWheel.scrollAmount?f[1]:f[0]>=l.height()?.9*l.height():f[0],m=Math.abs(e("#mCSB_"+n.idx+"_container")[0].offsetTop),p=c[0][0].offsetTop,g=c[0].parent().height()-c[0].height(),v=t.deltaY||a;"y"===u&&!n.overflowed[0]||"x"===u&&!n.overflowed[1]||((i.mouseWheel.invert||t.webkitDirectionInvertedFromDevice)&&(v=-v),i.mouseWheel.normalizeDelta&&(v=0>v?-1:1),(v>0&&0!==p||0>v&&p!==g||i.mouseWheel.preventDefault)&&(t.stopImmediatePropagation(),t.preventDefault()),t.deltaFactor<5&&!i.mouseWheel.normalizeDelta&&(h=t.deltaFactor,d=17),G(o,(m-v*h).toString(),{dir:u,dur:d}))}}if(e(this).data(a)){var o=e(this),n=o.data(a),i=n.opt,r=a+"_"+n.idx,l=e("#mCSB_"+n.idx),c=[e("#mCSB_"+n.idx+"_dragger_vertical"),e("#mCSB_"+n.idx+"_dragger_horizontal")],d=e("#mCSB_"+n.idx+"_container").find("iframe");d.length&&d.each(function(){e(this).bind("load",function(){A(this)&&e(this.contentDocument||this.contentWindow.document).bind("mousewheel."+r,function(e,o){t(e,o)})})}),l.bind("mousewheel."+r,function(e,o){t(e,o)})}},R=new Object,A=function(t){var o=!1,a=!1,n=null;if(void 0===t?a="#empty":void 0!==e(t).attr("id")&&(a=e(t).attr("id")),a!==!1&&void 0!==R[a])return R[a];if(t){try{var i=t.contentDocument||t.contentWindow.document;n=i.body.innerHTML}catch(r){}o=null!==n}else{try{var i=top.document;n=i.body.innerHTML}catch(r){}o=null!==n}return a!==!1&&(R[a]=o),o},L=function(e){var t=this.find("iframe");if(t.length){var o=e?"auto":"none";t.css("pointer-events",o)}},z=function(t,o){var n=o.nodeName.toLowerCase(),i=t.data(a).opt.mouseWheel.disableOver,r=["select","textarea"];return e.inArray(n,i)>-1&&!(e.inArray(n,r)>-1&&!e(o).is(":focus"))},P=function(){var t,o=e(this),n=o.data(a),i=a+"_"+n.idx,r=e("#mCSB_"+n.idx+"_container"),l=r.parent(),s=e(".mCSB_"+n.idx+"_scrollbar ."+d[12]);s.bind("mousedown."+i+" touchstart."+i+" pointerdown."+i+" MSPointerDown."+i,function(o){c=!0,e(o.target).hasClass("mCSB_dragger")||(t=1)}).bind("touchend."+i+" pointerup."+i+" MSPointerUp."+i,function(){c=!1}).bind("click."+i,function(a){if(t&&(t=0,e(a.target).hasClass(d[12])||e(a.target).hasClass("mCSB_draggerRail"))){Q(o);var i=e(this),s=i.find(".mCSB_dragger");if(i.parent(".mCSB_scrollTools_horizontal").length>0){if(!n.overflowed[1])return;var c="x",u=a.pageX>s.offset().left?-1:1,f=Math.abs(r[0].offsetLeft)-u*(.9*l.width())}else{if(!n.overflowed[0])return;var c="y",u=a.pageY>s.offset().top?-1:1,f=Math.abs(r[0].offsetTop)-u*(.9*l.height())}G(o,f.toString(),{dir:c,scrollEasing:"mcsEaseInOut"})}})},H=function(){var t=e(this),o=t.data(a),n=o.opt,i=a+"_"+o.idx,r=e("#mCSB_"+o.idx+"_container"),l=r.parent();r.bind("focusin."+i,function(){var o=e(document.activeElement),a=r.find(".mCustomScrollBox").length,i=0;o.is(n.advanced.autoScrollOnFocus)&&(Q(t),clearTimeout(t[0]._focusTimeout),t[0]._focusTimer=a?(i+17)*a:0,t[0]._focusTimeout=setTimeout(function(){var e=[ae(o)[0],ae(o)[1]],a=[r[0].offsetTop,r[0].offsetLeft],s=[a[0]+e[0]>=0&&a[0]+e[0]<l.height()-o.outerHeight(!1),a[1]+e[1]>=0&&a[0]+e[1]<l.width()-o.outerWidth(!1)],c="yx"!==n.axis||s[0]||s[1]?"all":"none";"x"===n.axis||s[0]||G(t,e[0].toString(),{dir:"y",scrollEasing:"mcsEaseInOut",overwrite:c,dur:i}),"y"===n.axis||s[1]||G(t,e[1].toString(),{dir:"x",scrollEasing:"mcsEaseInOut",overwrite:c,dur:i})},t[0]._focusTimer))})},U=function(){var t=e(this),o=t.data(a),n=a+"_"+o.idx,i=e("#mCSB_"+o.idx+"_container").parent();i.bind("scroll."+n,function(){0===i.scrollTop()&&0===i.scrollLeft()||e(".mCSB_"+o.idx+"_scrollbar").css("visibility","hidden")})},F=function(){var t=e(this),o=t.data(a),n=o.opt,i=o.sequential,r=a+"_"+o.idx,l=".mCSB_"+o.idx+"_scrollbar",s=e(l+">a");s.bind("contextmenu."+r,function(e){e.preventDefault()}).bind("mousedown."+r+" touchstart."+r+" pointerdown."+r+" MSPointerDown."+r+" mouseup."+r+" touchend."+r+" pointerup."+r+" MSPointerUp."+r+" mouseout."+r+" pointerout."+r+" MSPointerOut."+r+" click."+r,function(a){function r(e,o){i.scrollAmount=n.scrollButtons.scrollAmount,j(t,e,o)}if(a.preventDefault(),ee(a)){var l=e(this).attr("class");switch(i.type=n.scrollButtons.scrollType,a.type){case"mousedown":case"touchstart":case"pointerdown":case"MSPointerDown":if("stepped"===i.type)return;c=!0,o.tweenRunning=!1,r("on",l);break;case"mouseup":case"touchend":case"pointerup":case"MSPointerUp":case"mouseout":case"pointerout":case"MSPointerOut":if("stepped"===i.type)return;c=!1,i.dir&&r("off",l);break;case"click":if("stepped"!==i.type||o.tweenRunning)return;r("on",l)}}})},q=function(){function t(t){function a(e,t){r.type=i.keyboard.scrollType,r.scrollAmount=i.keyboard.scrollAmount,"stepped"===r.type&&n.tweenRunning||j(o,e,t)}switch(t.type){case"blur":n.tweenRunning&&r.dir&&a("off",null);break;case"keydown":case"keyup":var l=t.keyCode?t.keyCode:t.which,s="on";if("x"!==i.axis&&(38===l||40===l)||"y"!==i.axis&&(37===l||39===l)){if((38===l||40===l)&&!n.overflowed[0]||(37===l||39===l)&&!n.overflowed[1])return;"keyup"===t.type&&(s="off"),e(document.activeElement).is(u)||(t.preventDefault(),t.stopImmediatePropagation(),a(s,l))}else if(33===l||34===l){if((n.overflowed[0]||n.overflowed[1])&&(t.preventDefault(),t.stopImmediatePropagation()),"keyup"===t.type){Q(o);var f=34===l?-1:1;if("x"===i.axis||"yx"===i.axis&&n.overflowed[1]&&!n.overflowed[0])var h="x",m=Math.abs(c[0].offsetLeft)-f*(.9*d.width());else var h="y",m=Math.abs(c[0].offsetTop)-f*(.9*d.height());G(o,m.toString(),{dir:h,scrollEasing:"mcsEaseInOut"})}}else if((35===l||36===l)&&!e(document.activeElement).is(u)&&((n.overflowed[0]||n.overflowed[1])&&(t.preventDefault(),t.stopImmediatePropagation()),"keyup"===t.type)){if("x"===i.axis||"yx"===i.axis&&n.overflowed[1]&&!n.overflowed[0])var h="x",m=35===l?Math.abs(d.width()-c.outerWidth(!1)):0;else var h="y",m=35===l?Math.abs(d.height()-c.outerHeight(!1)):0;G(o,m.toString(),{dir:h,scrollEasing:"mcsEaseInOut"})}}}var o=e(this),n=o.data(a),i=n.opt,r=n.sequential,l=a+"_"+n.idx,s=e("#mCSB_"+n.idx),c=e("#mCSB_"+n.idx+"_container"),d=c.parent(),u="input,textarea,select,datalist,keygen,[contenteditable='true']",f=c.find("iframe"),h=["blur."+l+" keydown."+l+" keyup."+l];f.length&&f.each(function(){e(this).bind("load",function(){A(this)&&e(this.contentDocument||this.contentWindow.document).bind(h[0],function(e){t(e)})})}),s.attr("tabindex","0").bind(h[0],function(e){t(e)})},j=function(t,o,n,i,r){function l(e){u.snapAmount&&(f.scrollAmount=u.snapAmount instanceof Array?"x"===f.dir[0]?u.snapAmount[1]:u.snapAmount[0]:u.snapAmount);var o="stepped"!==f.type,a=r?r:e?o?p/1.5:g:1e3/60,n=e?o?7.5:40:2.5,s=[Math.abs(h[0].offsetTop),Math.abs(h[0].offsetLeft)],d=[c.scrollRatio.y>10?10:c.scrollRatio.y,c.scrollRatio.x>10?10:c.scrollRatio.x],m="x"===f.dir[0]?s[1]+f.dir[1]*(d[1]*n):s[0]+f.dir[1]*(d[0]*n),v="x"===f.dir[0]?s[1]+f.dir[1]*parseInt(f.scrollAmount):s[0]+f.dir[1]*parseInt(f.scrollAmount),x="auto"!==f.scrollAmount?v:m,_=i?i:e?o?"mcsLinearOut":"mcsEaseInOut":"mcsLinear",w=!!e;return e&&17>a&&(x="x"===f.dir[0]?s[1]:s[0]),G(t,x.toString(),{dir:f.dir[0],scrollEasing:_,dur:a,onComplete:w}),e?void(f.dir=!1):(clearTimeout(f.step),void(f.step=setTimeout(function(){l()},a)))}function s(){clearTimeout(f.step),$(f,"step"),Q(t)}var c=t.data(a),u=c.opt,f=c.sequential,h=e("#mCSB_"+c.idx+"_container"),m="stepped"===f.type,p=u.scrollInertia<26?26:u.scrollInertia,g=u.scrollInertia<1?17:u.scrollInertia;switch(o){case"on":if(f.dir=[n===d[16]||n===d[15]||39===n||37===n?"x":"y",n===d[13]||n===d[15]||38===n||37===n?-1:1],Q(t),oe(n)&&"stepped"===f.type)return;l(m);break;case"off":s(),(m||c.tweenRunning&&f.dir)&&l(!0)}},Y=function(t){var o=e(this).data(a).opt,n=[];return"function"==typeof t&&(t=t()),t instanceof Array?n=t.length>1?[t[0],t[1]]:"x"===o.axis?[null,t[0]]:[t[0],null]:(n[0]=t.y?t.y:t.x||"x"===o.axis?null:t,n[1]=t.x?t.x:t.y||"y"===o.axis?null:t),"function"==typeof n[0]&&(n[0]=n[0]()),"function"==typeof n[1]&&(n[1]=n[1]()),n},X=function(t,o){if(null!=t&&"undefined"!=typeof t){var n=e(this),i=n.data(a),r=i.opt,l=e("#mCSB_"+i.idx+"_container"),s=l.parent(),c=typeof t;o||(o="x"===r.axis?"x":"y");var d="x"===o?l.outerWidth(!1)-s.width():l.outerHeight(!1)-s.height(),f="x"===o?l[0].offsetLeft:l[0].offsetTop,h="x"===o?"left":"top";switch(c){case"function":return t();case"object":var m=t.jquery?t:e(t);if(!m.length)return;return"x"===o?ae(m)[1]:ae(m)[0];case"string":case"number":if(oe(t))return Math.abs(t);if(-1!==t.indexOf("%"))return Math.abs(d*parseInt(t)/100);if(-1!==t.indexOf("-="))return Math.abs(f-parseInt(t.split("-=")[1]));if(-1!==t.indexOf("+=")){var p=f+parseInt(t.split("+=")[1]);return p>=0?0:Math.abs(p)}if(-1!==t.indexOf("px")&&oe(t.split("px")[0]))return Math.abs(t.split("px")[0]);if("top"===t||"left"===t)return 0;if("bottom"===t)return Math.abs(s.height()-l.outerHeight(!1));if("right"===t)return Math.abs(s.width()-l.outerWidth(!1));if("first"===t||"last"===t){var m=l.find(":"+t);return"x"===o?ae(m)[1]:ae(m)[0]}return e(t).length?"x"===o?ae(e(t))[1]:ae(e(t))[0]:(l.css(h,t),void u.update.call(null,n[0]))}}},N=function(t){function o(){return clearTimeout(f[0].autoUpdate),0===l.parents("html").length?void(l=null):void(f[0].autoUpdate=setTimeout(function(){return c.advanced.updateOnSelectorChange&&(s.poll.change.n=i(),s.poll.change.n!==s.poll.change.o)?(s.poll.change.o=s.poll.change.n,void r(3)):c.advanced.updateOnContentResize&&(s.poll.size.n=l[0].scrollHeight+l[0].scrollWidth+f[0].offsetHeight+l[0].offsetHeight+l[0].offsetWidth,s.poll.size.n!==s.poll.size.o)?(s.poll.size.o=s.poll.size.n,void r(1)):!c.advanced.updateOnImageLoad||"auto"===c.advanced.updateOnImageLoad&&"y"===c.axis||(s.poll.img.n=f.find("img").length,s.poll.img.n===s.poll.img.o)?void((c.advanced.updateOnSelectorChange||c.advanced.updateOnContentResize||c.advanced.updateOnImageLoad)&&o()):(s.poll.img.o=s.poll.img.n,void f.find("img").each(function(){n(this)}))},c.advanced.autoUpdateTimeout))}function n(t){function o(e,t){return function(){
354
  return t.apply(e,arguments)}}function a(){this.onload=null,e(t).addClass(d[2]),r(2)}if(e(t).hasClass(d[2]))return void r();var n=new Image;n.onload=o(n,a),n.src=t.src}function i(){c.advanced.updateOnSelectorChange===!0&&(c.advanced.updateOnSelectorChange="*");var e=0,t=f.find(c.advanced.updateOnSelectorChange);return c.advanced.updateOnSelectorChange&&t.length>0&&t.each(function(){e+=this.offsetHeight+this.offsetWidth}),e}function r(e){clearTimeout(f[0].autoUpdate),u.update.call(null,l[0],e)}var l=e(this),s=l.data(a),c=s.opt,f=e("#mCSB_"+s.idx+"_container");return t?(clearTimeout(f[0].autoUpdate),void $(f[0],"autoUpdate")):void o()},V=function(e,t,o){return Math.round(e/t)*t-o},Q=function(t){var o=t.data(a),n=e("#mCSB_"+o.idx+"_container,#mCSB_"+o.idx+"_container_wrapper,#mCSB_"+o.idx+"_dragger_vertical,#mCSB_"+o.idx+"_dragger_horizontal");n.each(function(){Z.call(this)})},G=function(t,o,n){function i(e){return s&&c.callbacks[e]&&"function"==typeof c.callbacks[e]}function r(){return[c.callbacks.alwaysTriggerOffsets||w>=S[0]+y,c.callbacks.alwaysTriggerOffsets||-B>=w]}function l(){var e=[h[0].offsetTop,h[0].offsetLeft],o=[x[0].offsetTop,x[0].offsetLeft],a=[h.outerHeight(!1),h.outerWidth(!1)],i=[f.height(),f.width()];t[0].mcs={content:h,top:e[0],left:e[1],draggerTop:o[0],draggerLeft:o[1],topPct:Math.round(100*Math.abs(e[0])/(Math.abs(a[0])-i[0])),leftPct:Math.round(100*Math.abs(e[1])/(Math.abs(a[1])-i[1])),direction:n.dir}}var s=t.data(a),c=s.opt,d={trigger:"internal",dir:"y",scrollEasing:"mcsEaseOut",drag:!1,dur:c.scrollInertia,overwrite:"all",callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},n=e.extend(d,n),u=[n.dur,n.drag?0:n.dur],f=e("#mCSB_"+s.idx),h=e("#mCSB_"+s.idx+"_container"),m=h.parent(),p=c.callbacks.onTotalScrollOffset?Y.call(t,c.callbacks.onTotalScrollOffset):[0,0],g=c.callbacks.onTotalScrollBackOffset?Y.call(t,c.callbacks.onTotalScrollBackOffset):[0,0];if(s.trigger=n.trigger,0===m.scrollTop()&&0===m.scrollLeft()||(e(".mCSB_"+s.idx+"_scrollbar").css("visibility","visible"),m.scrollTop(0).scrollLeft(0)),"_resetY"!==o||s.contentReset.y||(i("onOverflowYNone")&&c.callbacks.onOverflowYNone.call(t[0]),s.contentReset.y=1),"_resetX"!==o||s.contentReset.x||(i("onOverflowXNone")&&c.callbacks.onOverflowXNone.call(t[0]),s.contentReset.x=1),"_resetY"!==o&&"_resetX"!==o){if(!s.contentReset.y&&t[0].mcs||!s.overflowed[0]||(i("onOverflowY")&&c.callbacks.onOverflowY.call(t[0]),s.contentReset.x=null),!s.contentReset.x&&t[0].mcs||!s.overflowed[1]||(i("onOverflowX")&&c.callbacks.onOverflowX.call(t[0]),s.contentReset.x=null),c.snapAmount){var v=c.snapAmount instanceof Array?"x"===n.dir?c.snapAmount[1]:c.snapAmount[0]:c.snapAmount;o=V(o,v,c.snapOffset)}switch(n.dir){case"x":var x=e("#mCSB_"+s.idx+"_dragger_horizontal"),_="left",w=h[0].offsetLeft,S=[f.width()-h.outerWidth(!1),x.parent().width()-x.width()],b=[o,0===o?0:o/s.scrollRatio.x],y=p[1],B=g[1],T=y>0?y/s.scrollRatio.x:0,k=B>0?B/s.scrollRatio.x:0;break;case"y":var x=e("#mCSB_"+s.idx+"_dragger_vertical"),_="top",w=h[0].offsetTop,S=[f.height()-h.outerHeight(!1),x.parent().height()-x.height()],b=[o,0===o?0:o/s.scrollRatio.y],y=p[0],B=g[0],T=y>0?y/s.scrollRatio.y:0,k=B>0?B/s.scrollRatio.y:0}b[1]<0||0===b[0]&&0===b[1]?b=[0,0]:b[1]>=S[1]?b=[S[0],S[1]]:b[0]=-b[0],t[0].mcs||(l(),i("onInit")&&c.callbacks.onInit.call(t[0])),clearTimeout(h[0].onCompleteTimeout),J(x[0],_,Math.round(b[1]),u[1],n.scrollEasing),!s.tweenRunning&&(0===w&&b[0]>=0||w===S[0]&&b[0]<=S[0])||J(h[0],_,Math.round(b[0]),u[0],n.scrollEasing,n.overwrite,{onStart:function(){n.callbacks&&n.onStart&&!s.tweenRunning&&(i("onScrollStart")&&(l(),c.callbacks.onScrollStart.call(t[0])),s.tweenRunning=!0,C(x),s.cbOffsets=r())},onUpdate:function(){n.callbacks&&n.onUpdate&&i("whileScrolling")&&(l(),c.callbacks.whileScrolling.call(t[0]))},onComplete:function(){if(n.callbacks&&n.onComplete){"yx"===c.axis&&clearTimeout(h[0].onCompleteTimeout);var e=h[0].idleTimer||0;h[0].onCompleteTimeout=setTimeout(function(){i("onScroll")&&(l(),c.callbacks.onScroll.call(t[0])),i("onTotalScroll")&&b[1]>=S[1]-T&&s.cbOffsets[0]&&(l(),c.callbacks.onTotalScroll.call(t[0])),i("onTotalScrollBack")&&b[1]<=k&&s.cbOffsets[1]&&(l(),c.callbacks.onTotalScrollBack.call(t[0])),s.tweenRunning=!1,h[0].idleTimer=0,C(x,"hide")},e)}}})}},J=function(e,t,o,a,n,i,r){function l(){S.stop||(x||m.call(),x=K()-v,s(),x>=S.time&&(S.time=x>S.time?x+f-(x-S.time):x+f-1,S.time<x+1&&(S.time=x+1)),S.time<a?S.id=h(l):g.call())}function s(){a>0?(S.currVal=u(S.time,_,b,a,n),w[t]=Math.round(S.currVal)+"px"):w[t]=o+"px",p.call()}function c(){f=1e3/60,S.time=x+f,h=window.requestAnimationFrame?window.requestAnimationFrame:function(e){return s(),setTimeout(e,.01)},S.id=h(l)}function d(){null!=S.id&&(window.requestAnimationFrame?window.cancelAnimationFrame(S.id):clearTimeout(S.id),S.id=null)}function u(e,t,o,a,n){switch(n){case"linear":case"mcsLinear":return o*e/a+t;case"mcsLinearOut":return e/=a,e--,o*Math.sqrt(1-e*e)+t;case"easeInOutSmooth":return e/=a/2,1>e?o/2*e*e+t:(e--,-o/2*(e*(e-2)-1)+t);case"easeInOutStrong":return e/=a/2,1>e?o/2*Math.pow(2,10*(e-1))+t:(e--,o/2*(-Math.pow(2,-10*e)+2)+t);case"easeInOut":case"mcsEaseInOut":return e/=a/2,1>e?o/2*e*e*e+t:(e-=2,o/2*(e*e*e+2)+t);case"easeOutSmooth":return e/=a,e--,-o*(e*e*e*e-1)+t;case"easeOutStrong":return o*(-Math.pow(2,-10*e/a)+1)+t;case"easeOut":case"mcsEaseOut":default:var i=(e/=a)*e,r=i*e;return t+o*(.499999999999997*r*i+-2.5*i*i+5.5*r+-6.5*i+4*e)}}e._mTween||(e._mTween={top:{},left:{}});var f,h,r=r||{},m=r.onStart||function(){},p=r.onUpdate||function(){},g=r.onComplete||function(){},v=K(),x=0,_=e.offsetTop,w=e.style,S=e._mTween[t];"left"===t&&(_=e.offsetLeft);var b=o-_;S.stop=0,"none"!==i&&d(),c()},K=function(){return window.performance&&window.performance.now?window.performance.now():window.performance&&window.performance.webkitNow?window.performance.webkitNow():Date.now?Date.now():(new Date).getTime()},Z=function(){var e=this;e._mTween||(e._mTween={top:{},left:{}});for(var t=["top","left"],o=0;o<t.length;o++){var a=t[o];e._mTween[a].id&&(window.requestAnimationFrame?window.cancelAnimationFrame(e._mTween[a].id):clearTimeout(e._mTween[a].id),e._mTween[a].id=null,e._mTween[a].stop=1)}},$=function(e,t){try{delete e[t]}catch(o){e[t]=null}},ee=function(e){return!(e.which&&1!==e.which)},te=function(e){var t=e.originalEvent.pointerType;return!(t&&"touch"!==t&&2!==t)},oe=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},ae=function(e){var t=e.parents(".mCSB_container");return[e.offset().top-t.offset().top,e.offset().left-t.offset().left]},ne=function(){function e(){var e=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var t=0;t<e.length;t++)if(e[t]+"Hidden"in document)return e[t]+"Hidden";return null}var t=e();return t?document[t]:!1};e.fn[o]=function(t){return u[t]?u[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void e.error("Method "+t+" does not exist"):u.init.apply(this,arguments)},e[o]=function(t){return u[t]?u[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void e.error("Method "+t+" does not exist"):u.init.apply(this,arguments)},e[o].defaults=i,window[o]=!0,e(window).bind("load",function(){e(n)[o](),e.extend(e.expr[":"],{mcsInView:e.expr[":"].mcsInView||function(t){var o,a,n=e(t),i=n.parents(".mCSB_container");if(i.length)return o=i.parent(),a=[i[0].offsetTop,i[0].offsetLeft],a[0]+ae(n)[0]>=0&&a[0]+ae(n)[0]<o.height()-n.outerHeight(!1)&&a[1]+ae(n)[1]>=0&&a[1]+ae(n)[1]<o.width()-n.outerWidth(!1)},mcsInSight:e.expr[":"].mcsInSight||function(t,o,a){var n,i,r,l,s=e(t),c=s.parents(".mCSB_container"),d="exact"===a[3]?[[1,0],[1,0]]:[[.9,.1],[.6,.4]];if(c.length)return n=[s.outerHeight(!1),s.outerWidth(!1)],r=[c[0].offsetTop+ae(s)[0],c[0].offsetLeft+ae(s)[1]],i=[c.parent()[0].offsetHeight,c.parent()[0].offsetWidth],l=[n[0]<i[0]?d[0]:d[1],n[1]<i[1]?d[0]:d[1]],r[0]-i[0]*l[0][0]<0&&r[0]+n[0]-i[0]*l[0][1]>=0&&r[1]-i[1]*l[1][0]<0&&r[1]+n[1]-i[1]*l[1][1]>=0},mcsOverflow:e.expr[":"].mcsOverflow||function(t){var o=e(t).data(a);if(o)return o.overflowed[0]||o.overflowed[1]}})})})});
350
  /* == jquery mousewheel plugin == Version: 3.1.13, License: MIT License (MIT) */
351
  !function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a:a(jQuery)}(function(a){function b(b){var g=b||window.event,h=i.call(arguments,1),j=0,l=0,m=0,n=0,o=0,p=0;if(b=a.event.fix(g),b.type="mousewheel","detail"in g&&(m=-1*g.detail),"wheelDelta"in g&&(m=g.wheelDelta),"wheelDeltaY"in g&&(m=g.wheelDeltaY),"wheelDeltaX"in g&&(l=-1*g.wheelDeltaX),"axis"in g&&g.axis===g.HORIZONTAL_AXIS&&(l=-1*m,m=0),j=0===m?l:m,"deltaY"in g&&(m=-1*g.deltaY,j=m),"deltaX"in g&&(l=g.deltaX,0===m&&(j=-1*l)),0!==m||0!==l){if(1===g.deltaMode){var q=a.data(this,"mousewheel-line-height");j*=q,m*=q,l*=q}else if(2===g.deltaMode){var r=a.data(this,"mousewheel-page-height");j*=r,m*=r,l*=r}if(n=Math.max(Math.abs(m),Math.abs(l)),(!f||f>n)&&(f=n,d(g,n)&&(f/=40)),d(g,n)&&(j/=40,l/=40,m/=40),j=Math[j>=1?"floor":"ceil"](j/f),l=Math[l>=1?"floor":"ceil"](l/f),m=Math[m>=1?"floor":"ceil"](m/f),k.settings.normalizeOffset&&this.getBoundingClientRect){var s=this.getBoundingClientRect();o=b.clientX-s.left,p=b.clientY-s.top}return b.deltaX=l,b.deltaY=m,b.deltaFactor=f,b.offsetX=o,b.offsetY=p,b.deltaMode=0,h.unshift(b,j,l,m),e&&clearTimeout(e),e=setTimeout(c,200),(a.event.dispatch||a.event.handle).apply(this,h)}}function c(){f=null}function d(a,b){return k.settings.adjustOldDeltas&&"mousewheel"===a.type&&b%120===0}var e,f,g=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],h="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],i=Array.prototype.slice;if(a.event.fixHooks)for(var j=g.length;j;)a.event.fixHooks[g[--j]]=a.event.mouseHooks;var k=a.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var c=h.length;c;)this.addEventListener(h[--c],b,!1);else this.onmousewheel=b;a.data(this,"mousewheel-line-height",k.getLineHeight(this)),a.data(this,"mousewheel-page-height",k.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var c=h.length;c;)this.removeEventListener(h[--c],b,!1);else this.onmousewheel=null;a.removeData(this,"mousewheel-line-height"),a.removeData(this,"mousewheel-page-height")},getLineHeight:function(b){var c=a(b),d=c["offsetParent"in a.fn?"offsetParent":"parent"]();return d.length||(d=a("body")),parseInt(d.css("fontSize"),10)||parseInt(c.css("fontSize"),10)||16},getPageHeight:function(b){return a(b).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})});!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a:a(jQuery)}(function(a){function b(b){var g=b||window.event,h=i.call(arguments,1),j=0,l=0,m=0,n=0,o=0,p=0;if(b=a.event.fix(g),b.type="mousewheel","detail"in g&&(m=-1*g.detail),"wheelDelta"in g&&(m=g.wheelDelta),"wheelDeltaY"in g&&(m=g.wheelDeltaY),"wheelDeltaX"in g&&(l=-1*g.wheelDeltaX),"axis"in g&&g.axis===g.HORIZONTAL_AXIS&&(l=-1*m,m=0),j=0===m?l:m,"deltaY"in g&&(m=-1*g.deltaY,j=m),"deltaX"in g&&(l=g.deltaX,0===m&&(j=-1*l)),0!==m||0!==l){if(1===g.deltaMode){var q=a.data(this,"mousewheel-line-height");j*=q,m*=q,l*=q}else if(2===g.deltaMode){var r=a.data(this,"mousewheel-page-height");j*=r,m*=r,l*=r}if(n=Math.max(Math.abs(m),Math.abs(l)),(!f||f>n)&&(f=n,d(g,n)&&(f/=40)),d(g,n)&&(j/=40,l/=40,m/=40),j=Math[j>=1?"floor":"ceil"](j/f),l=Math[l>=1?"floor":"ceil"](l/f),m=Math[m>=1?"floor":"ceil"](m/f),k.settings.normalizeOffset&&this.getBoundingClientRect){var s=this.getBoundingClientRect();o=b.clientX-s.left,p=b.clientY-s.top}return b.deltaX=l,b.deltaY=m,b.deltaFactor=f,b.offsetX=o,b.offsetY=p,b.deltaMode=0,h.unshift(b,j,l,m),e&&clearTimeout(e),e=setTimeout(c,200),(a.event.dispatch||a.event.handle).apply(this,h)}}function c(){f=null}function d(a,b){return k.settings.adjustOldDeltas&&"mousewheel"===a.type&&b%120===0}var e,f,g=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],h="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],i=Array.prototype.slice;if(a.event.fixHooks)for(var j=g.length;j;)a.event.fixHooks[g[--j]]=a.event.mouseHooks;var k=a.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var c=h.length;c;)this.addEventListener(h[--c],b,!1);else this.onmousewheel=b;a.data(this,"mousewheel-line-height",k.getLineHeight(this)),a.data(this,"mousewheel-page-height",k.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var c=h.length;c;)this.removeEventListener(h[--c],b,!1);else this.onmousewheel=null;a.removeData(this,"mousewheel-line-height"),a.removeData(this,"mousewheel-page-height")},getLineHeight:function(b){var c=a(b),d=c["offsetParent"in a.fn?"offsetParent":"parent"]();return d.length||(d=a("body")),parseInt(d.css("fontSize"),10)||parseInt(c.css("fontSize"),10)||16},getPageHeight:function(b){return a(b).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})});
352
  /* == malihu jquery custom scrollbar plugin == Version: 3.1.5, License: MIT License (MIT) */
353
+ !function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"undefined"!=typeof module&&module.exports?module.exports=e:e(jQuery,window,document)}(function(e){!function(t){var o="function"==typeof define&&define.amd,a="undefined"!=typeof module&&module.exports,n="https:"==document.location.protocol?"https:":"http:",i="cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.13/jquery.mousewheel.min.js";o||(a?require("jquery-mousewheel")(e):e.event.special.mousewheel||e("head").append(decodeURI("%3Cscript src="+n+"//"+i+"%3E%3C/script%3E"))),t()}(function(){var t,o="mCustomScrollbar",a="mCS",n=".mCustomScrollbar",i={setTop:0,setLeft:0,axis:"y",scrollbarPosition:"inside",scrollInertia:950,autoDraggerLength:!0,alwaysShowScrollbar:0,snapOffset:0,mouseWheel:{enable:!0,scrollAmount:"auto",axis:"y",deltaFactor:"auto",disableOver:["select","option","keygen","datalist","textarea"]},scrollButtons:{scrollType:"stepless",scrollAmount:"auto"},keyboard:{enable:!0,scrollType:"stepless",scrollAmount:"auto"},contentTouchScroll:25,documentTouchScroll:!0,advanced:{autoScrollOnFocus:"input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']",updateOnContentResize:!0,updateOnImageLoad:"auto",autoUpdateTimeout:60},theme:"light",callbacks:{onTotalScrollOffset:0,onTotalScrollBackOffset:0,alwaysTriggerOffsets:!0}},r=0,l={},s=window.attachEvent&&!window.addEventListener?1:0,c=!1,d=["mCSB_dragger_onDrag","mCSB_scrollTools_onDrag","mCS_img_loaded","mCS_disabled","mCS_destroyed","mCS_no_scrollbar","mCS-autoHide","mCS-dir-rtl","mCS_no_scrollbar_y","mCS_no_scrollbar_x","mCS_y_hidden","mCS_x_hidden","mCSB_draggerContainer","mCSB_buttonUp","mCSB_buttonDown","mCSB_buttonLeft","mCSB_buttonRight"],u={init:function(t){var t=e.extend(!0,{},i,t),o=f.call(this);if(t.live){var s=t.liveSelector||this.selector||n,c=e(s);if("off"===t.live)return void m(s);l[s]=setTimeout(function(){c.mCustomScrollbar(t),"once"===t.live&&c.length&&m(s)},500)}else m(s);return t.setWidth=t.set_width?t.set_width:t.setWidth,t.setHeight=t.set_height?t.set_height:t.setHeight,t.axis=t.horizontalScroll?"x":p(t.axis),t.scrollInertia=t.scrollInertia>0&&t.scrollInertia<17?17:t.scrollInertia,"object"!=typeof t.mouseWheel&&1==t.mouseWheel&&(t.mouseWheel={enable:!0,scrollAmount:"auto",axis:"y",preventDefault:!1,deltaFactor:"auto",normalizeDelta:!1,invert:!1}),t.mouseWheel.scrollAmount=t.mouseWheelPixels?t.mouseWheelPixels:t.mouseWheel.scrollAmount,t.mouseWheel.normalizeDelta=t.advanced.normalizeMouseWheelDelta?t.advanced.normalizeMouseWheelDelta:t.mouseWheel.normalizeDelta,t.scrollButtons.scrollType=g(t.scrollButtons.scrollType),h(t),e(o).each(function(){var o=e(this);if(!o.data(a)){o.data(a,{idx:++r,opt:t,scrollRatio:{y:null,x:null},overflowed:null,contentReset:{y:null,x:null},bindEvents:!1,tweenRunning:!1,sequential:{},langDir:o.css("direction"),cbOffsets:null,trigger:null,poll:{size:{o:0,n:0},img:{o:0,n:0},change:{o:0,n:0}}});var n=o.data(a),i=n.opt,l=o.data("mcs-axis"),s=o.data("mcs-scrollbar-position"),c=o.data("mcs-theme");l&&(i.axis=l),s&&(i.scrollbarPosition=s),c&&(i.theme=c,h(i)),v.call(this),n&&i.callbacks.onCreate&&"function"==typeof i.callbacks.onCreate&&i.callbacks.onCreate.call(this),e("#mCSB_"+n.idx+"_container img:not(."+d[2]+")").addClass(d[2]),u.update.call(null,o)}})},update:function(t,o){var n=t||f.call(this);return e(n).each(function(){var t=e(this);if(t.data(a)){var n=t.data(a),i=n.opt,r=e("#mCSB_"+n.idx+"_container"),l=e("#mCSB_"+n.idx),s=[e("#mCSB_"+n.idx+"_dragger_vertical"),e("#mCSB_"+n.idx+"_dragger_horizontal")];if(!r.length)return;n.tweenRunning&&Q(t),o&&n&&i.callbacks.onBeforeUpdate&&"function"==typeof i.callbacks.onBeforeUpdate&&i.callbacks.onBeforeUpdate.call(this),t.hasClass(d[3])&&t.removeClass(d[3]),t.hasClass(d[4])&&t.removeClass(d[4]),l.css("max-height","none"),l.height()!==t.height()&&l.css("max-height",t.height()),_.call(this),"y"===i.axis||i.advanced.autoExpandHorizontalScroll||r.css("width",x(r)),n.overflowed=y.call(this),M.call(this),i.autoDraggerLength&&S.call(this),b.call(this),T.call(this);var c=[Math.abs(r[0].offsetTop),Math.abs(r[0].offsetLeft)];"x"!==i.axis&&(n.overflowed[0]?s[0].height()>s[0].parent().height()?B.call(this):(G(t,c[0].toString(),{dir:"y",dur:0,overwrite:"none"}),n.contentReset.y=null):(B.call(this),"y"===i.axis?k.call(this):"yx"===i.axis&&n.overflowed[1]&&G(t,c[1].toString(),{dir:"x",dur:0,overwrite:"none"}))),"y"!==i.axis&&(n.overflowed[1]?s[1].width()>s[1].parent().width()?B.call(this):(G(t,c[1].toString(),{dir:"x",dur:0,overwrite:"none"}),n.contentReset.x=null):(B.call(this),"x"===i.axis?k.call(this):"yx"===i.axis&&n.overflowed[0]&&G(t,c[0].toString(),{dir:"y",dur:0,overwrite:"none"}))),o&&n&&(2===o&&i.callbacks.onImageLoad&&"function"==typeof i.callbacks.onImageLoad?i.callbacks.onImageLoad.call(this):3===o&&i.callbacks.onSelectorChange&&"function"==typeof i.callbacks.onSelectorChange?i.callbacks.onSelectorChange.call(this):i.callbacks.onUpdate&&"function"==typeof i.callbacks.onUpdate&&i.callbacks.onUpdate.call(this)),N.call(this)}})},scrollTo:function(t,o){if("undefined"!=typeof t&&null!=t){var n=f.call(this);return e(n).each(function(){var n=e(this);if(n.data(a)){var i=n.data(a),r=i.opt,l={trigger:"external",scrollInertia:r.scrollInertia,scrollEasing:"mcsEaseInOut",moveDragger:!1,timeout:60,callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},s=e.extend(!0,{},l,o),c=Y.call(this,t),d=s.scrollInertia>0&&s.scrollInertia<17?17:s.scrollInertia;c[0]=X.call(this,c[0],"y"),c[1]=X.call(this,c[1],"x"),s.moveDragger&&(c[0]*=i.scrollRatio.y,c[1]*=i.scrollRatio.x),s.dur=ne()?0:d,setTimeout(function(){null!==c[0]&&"undefined"!=typeof c[0]&&"x"!==r.axis&&i.overflowed[0]&&(s.dir="y",s.overwrite="all",G(n,c[0].toString(),s)),null!==c[1]&&"undefined"!=typeof c[1]&&"y"!==r.axis&&i.overflowed[1]&&(s.dir="x",s.overwrite="none",G(n,c[1].toString(),s))},s.timeout)}})}},stop:function(){var t=f.call(this);return e(t).each(function(){var t=e(this);t.data(a)&&Q(t)})},disable:function(t){var o=f.call(this);return e(o).each(function(){var o=e(this);if(o.data(a)){o.data(a);N.call(this,"remove"),k.call(this),t&&B.call(this),M.call(this,!0),o.addClass(d[3])}})},destroy:function(){var t=f.call(this);return e(t).each(function(){var n=e(this);if(n.data(a)){var i=n.data(a),r=i.opt,l=e("#mCSB_"+i.idx),s=e("#mCSB_"+i.idx+"_container"),c=e(".mCSB_"+i.idx+"_scrollbar");r.live&&m(r.liveSelector||e(t).selector),N.call(this,"remove"),k.call(this),B.call(this),n.removeData(a),$(this,"mcs"),c.remove(),s.find("img."+d[2]).removeClass(d[2]),l.replaceWith(s.contents()),n.removeClass(o+" _"+a+"_"+i.idx+" "+d[6]+" "+d[7]+" "+d[5]+" "+d[3]).addClass(d[4])}})}},f=function(){return"object"!=typeof e(this)||e(this).length<1?n:this},h=function(t){var o=["rounded","rounded-dark","rounded-dots","rounded-dots-dark"],a=["rounded-dots","rounded-dots-dark","3d","3d-dark","3d-thick","3d-thick-dark","inset","inset-dark","inset-2","inset-2-dark","inset-3","inset-3-dark"],n=["minimal","minimal-dark"],i=["minimal","minimal-dark"],r=["minimal","minimal-dark"];t.autoDraggerLength=e.inArray(t.theme,o)>-1?!1:t.autoDraggerLength,t.autoExpandScrollbar=e.inArray(t.theme,a)>-1?!1:t.autoExpandScrollbar,t.scrollButtons.enable=e.inArray(t.theme,n)>-1?!1:t.scrollButtons.enable,t.autoHideScrollbar=e.inArray(t.theme,i)>-1?!0:t.autoHideScrollbar,t.scrollbarPosition=e.inArray(t.theme,r)>-1?"outside":t.scrollbarPosition},m=function(e){l[e]&&(clearTimeout(l[e]),$(l,e))},p=function(e){return"yx"===e||"xy"===e||"auto"===e?"yx":"x"===e||"horizontal"===e?"x":"y"},g=function(e){return"stepped"===e||"pixels"===e||"step"===e||"click"===e?"stepped":"stepless"},v=function(){var t=e(this),n=t.data(a),i=n.opt,r=i.autoExpandScrollbar?" "+d[1]+"_expand":"",l=["<div id='mCSB_"+n.idx+"_scrollbar_vertical' class='mCSB_scrollTools mCSB_"+n.idx+"_scrollbar mCS-"+i.theme+" mCSB_scrollTools_vertical"+r+"'><div class='"+d[12]+"'><div id='mCSB_"+n.idx+"_dragger_vertical' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar' /></div></div><div class='mCSB_draggerRail' /></div>","<div id='mCSB_"+n.idx+"_scrollbar_horizontal' class='mCSB_scrollTools mCSB_"+n.idx+"_scrollbar mCS-"+i.theme+" mCSB_scrollTools_horizontal"+r+"'><div class='"+d[12]+"'><div id='mCSB_"+n.idx+"_dragger_horizontal' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>"],s="yx"===i.axis?"mCSB_vertical_horizontal":"x"===i.axis?"mCSB_horizontal":"mCSB_vertical",c="yx"===i.axis?l[0]+l[1]:"x"===i.axis?l[1]:l[0],u="yx"===i.axis?"<div id='mCSB_"+n.idx+"_container_wrapper' class='mCSB_container_wrapper' />":"",f=i.autoHideScrollbar?" "+d[6]:"",h="x"!==i.axis&&"rtl"===n.langDir?" "+d[7]:"";i.setWidth&&t.css("width",i.setWidth),i.setHeight&&t.css("height",i.setHeight),i.setLeft="y"!==i.axis&&"rtl"===n.langDir?"989999px":i.setLeft,t.addClass(o+" _"+a+"_"+n.idx+f+h).wrapInner("<div id='mCSB_"+n.idx+"' class='mCustomScrollBox mCS-"+i.theme+" "+s+"'><div id='mCSB_"+n.idx+"_container' class='mCSB_container' style='position:relative; top:"+i.setTop+"; left:"+i.setLeft+";' dir='"+n.langDir+"' /></div>");var m=e("#mCSB_"+n.idx),p=e("#mCSB_"+n.idx+"_container");"y"===i.axis||i.advanced.autoExpandHorizontalScroll||p.css("width",x(p)),"outside"===i.scrollbarPosition?("static"===t.css("position")&&t.css("position","relative"),t.css("overflow","visible"),m.addClass("mCSB_outside").after(c)):(m.addClass("mCSB_inside").append(c),p.wrap(u)),w.call(this);var g=[e("#mCSB_"+n.idx+"_dragger_vertical"),e("#mCSB_"+n.idx+"_dragger_horizontal")];g[0].css("min-height",g[0].height()),g[1].css("min-width",g[1].width())},x=function(t){var o=[t[0].scrollWidth,Math.max.apply(Math,t.children().map(function(){return e(this).outerWidth(!0)}).get())],a=t.parent().width();return o[0]>a?o[0]:o[1]>a?o[1]:"100%"},_=function(){var t=e(this),o=t.data(a),n=o.opt,i=e("#mCSB_"+o.idx+"_container");if(n.advanced.autoExpandHorizontalScroll&&"y"!==n.axis){i.css({width:"auto","min-width":0,"overflow-x":"scroll"});var r=Math.ceil(i[0].scrollWidth);3===n.advanced.autoExpandHorizontalScroll||2!==n.advanced.autoExpandHorizontalScroll&&r>i.parent().width()?i.css({width:r,"min-width":"100%","overflow-x":"inherit"}):i.css({"overflow-x":"inherit",position:"absolute"}).wrap("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />").css({width:Math.ceil(i[0].getBoundingClientRect().right+.4)-Math.floor(i[0].getBoundingClientRect().left),"min-width":"100%",position:"relative"}).unwrap()}},w=function(){var t=e(this),o=t.data(a),n=o.opt,i=e(".mCSB_"+o.idx+"_scrollbar:first"),r=oe(n.scrollButtons.tabindex)?"tabindex='"+n.scrollButtons.tabindex+"'":"",l=["<a href='#' class='"+d[13]+"' "+r+" />","<a href='#' class='"+d[14]+"' "+r+" />","<a href='#' class='"+d[15]+"' "+r+" />","<a href='#' class='"+d[16]+"' "+r+" />"],s=["x"===n.axis?l[2]:l[0],"x"===n.axis?l[3]:l[1],l[2],l[3]];n.scrollButtons.enable&&i.prepend(s[0]).append(s[1]).next(".mCSB_scrollTools").prepend(s[2]).append(s[3])},S=function(){var t=e(this),o=t.data(a),n=e("#mCSB_"+o.idx),i=e("#mCSB_"+o.idx+"_container"),r=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")],l=[n.height()/i.outerHeight(!1),n.width()/i.outerWidth(!1)],c=[parseInt(r[0].css("min-height")),Math.round(l[0]*r[0].parent().height()),parseInt(r[1].css("min-width")),Math.round(l[1]*r[1].parent().width())],d=s&&c[1]<c[0]?c[0]:c[1],u=s&&c[3]<c[2]?c[2]:c[3];r[0].css({height:d,"max-height":r[0].parent().height()-10}).find(".mCSB_dragger_bar").css({"line-height":c[0]+"px"}),r[1].css({width:u,"max-width":r[1].parent().width()-10})},b=function(){var t=e(this),o=t.data(a),n=e("#mCSB_"+o.idx),i=e("#mCSB_"+o.idx+"_container"),r=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")],l=[i.outerHeight(!1)-n.height(),i.outerWidth(!1)-n.width()],s=[l[0]/(r[0].parent().height()-r[0].height()),l[1]/(r[1].parent().width()-r[1].width())];o.scrollRatio={y:s[0],x:s[1]}},C=function(e,t,o){var a=o?d[0]+"_expanded":"",n=e.closest(".mCSB_scrollTools");"active"===t?(e.toggleClass(d[0]+" "+a),n.toggleClass(d[1]),e[0]._draggable=e[0]._draggable?0:1):e[0]._draggable||("hide"===t?(e.removeClass(d[0]),n.removeClass(d[1])):(e.addClass(d[0]),n.addClass(d[1])))},y=function(){var t=e(this),o=t.data(a),n=e("#mCSB_"+o.idx),i=e("#mCSB_"+o.idx+"_container"),r=null==o.overflowed?i.height():i.outerHeight(!1),l=null==o.overflowed?i.width():i.outerWidth(!1),s=i[0].scrollHeight,c=i[0].scrollWidth;return s>r&&(r=s),c>l&&(l=c),[r>n.height(),l>n.width()]},B=function(){var t=e(this),o=t.data(a),n=o.opt,i=e("#mCSB_"+o.idx),r=e("#mCSB_"+o.idx+"_container"),l=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")];if(Q(t),("x"!==n.axis&&!o.overflowed[0]||"y"===n.axis&&o.overflowed[0])&&(l[0].add(r).css("top",0),G(t,"_resetY")),"y"!==n.axis&&!o.overflowed[1]||"x"===n.axis&&o.overflowed[1]){var s=dx=0;"rtl"===o.langDir&&(s=i.width()-r.outerWidth(!1),dx=Math.abs(s/o.scrollRatio.x)),r.css("left",s),l[1].css("left",dx),G(t,"_resetX")}},T=function(){function t(){r=setTimeout(function(){e.event.special.mousewheel?(clearTimeout(r),W.call(o[0])):t()},100)}var o=e(this),n=o.data(a),i=n.opt;if(!n.bindEvents){if(I.call(this),i.contentTouchScroll&&D.call(this),E.call(this),i.mouseWheel.enable){var r;t()}P.call(this),U.call(this),i.advanced.autoScrollOnFocus&&H.call(this),i.scrollButtons.enable&&F.call(this),i.keyboard.enable&&q.call(this),n.bindEvents=!0}},k=function(){var t=e(this),o=t.data(a),n=o.opt,i=a+"_"+o.idx,r=".mCSB_"+o.idx+"_scrollbar",l=e("#mCSB_"+o.idx+",#mCSB_"+o.idx+"_container,#mCSB_"+o.idx+"_container_wrapper,"+r+" ."+d[12]+",#mCSB_"+o.idx+"_dragger_vertical,#mCSB_"+o.idx+"_dragger_horizontal,"+r+">a"),s=e("#mCSB_"+o.idx+"_container");n.advanced.releaseDraggableSelectors&&l.add(e(n.advanced.releaseDraggableSelectors)),n.advanced.extraDraggableSelectors&&l.add(e(n.advanced.extraDraggableSelectors)),o.bindEvents&&(e(document).add(e(!A()||top.document)).unbind("."+i),l.each(function(){e(this).unbind("."+i)}),clearTimeout(t[0]._focusTimeout),$(t[0],"_focusTimeout"),clearTimeout(o.sequential.step),$(o.sequential,"step"),clearTimeout(s[0].onCompleteTimeout),$(s[0],"onCompleteTimeout"),o.bindEvents=!1)},M=function(t){var o=e(this),n=o.data(a),i=n.opt,r=e("#mCSB_"+n.idx+"_container_wrapper"),l=r.length?r:e("#mCSB_"+n.idx+"_container"),s=[e("#mCSB_"+n.idx+"_scrollbar_vertical"),e("#mCSB_"+n.idx+"_scrollbar_horizontal")],c=[s[0].find(".mCSB_dragger"),s[1].find(".mCSB_dragger")];"x"!==i.axis&&(n.overflowed[0]&&!t?(s[0].add(c[0]).add(s[0].children("a")).css("display","block"),l.removeClass(d[8]+" "+d[10])):(i.alwaysShowScrollbar?(2!==i.alwaysShowScrollbar&&c[0].css("display","none"),l.removeClass(d[10])):(s[0].css("display","none"),l.addClass(d[10])),l.addClass(d[8]))),"y"!==i.axis&&(n.overflowed[1]&&!t?(s[1].add(c[1]).add(s[1].children("a")).css("display","block"),l.removeClass(d[9]+" "+d[11])):(i.alwaysShowScrollbar?(2!==i.alwaysShowScrollbar&&c[1].css("display","none"),l.removeClass(d[11])):(s[1].css("display","none"),l.addClass(d[11])),l.addClass(d[9]))),n.overflowed[0]||n.overflowed[1]?o.removeClass(d[5]):o.addClass(d[5])},O=function(t){var o=t.type,a=t.target.ownerDocument!==document&&null!==frameElement?[e(frameElement).offset().top,e(frameElement).offset().left]:null,n=A()&&t.target.ownerDocument!==top.document&&null!==frameElement?[e(t.view.frameElement).offset().top,e(t.view.frameElement).offset().left]:[0,0];switch(o){case"pointerdown":case"MSPointerDown":case"pointermove":case"MSPointerMove":case"pointerup":case"MSPointerUp":return a?[t.originalEvent.pageY-a[0]+n[0],t.originalEvent.pageX-a[1]+n[1],!1]:[t.originalEvent.pageY,t.originalEvent.pageX,!1];case"touchstart":case"touchmove":case"touchend":var i=t.originalEvent.touches[0]||t.originalEvent.changedTouches[0],r=t.originalEvent.touches.length||t.originalEvent.changedTouches.length;return t.target.ownerDocument!==document?[i.screenY,i.screenX,r>1]:[i.pageY,i.pageX,r>1];default:return a?[t.pageY-a[0]+n[0],t.pageX-a[1]+n[1],!1]:[t.pageY,t.pageX,!1]}},I=function(){function t(e,t,a,n){if(h[0].idleTimer=d.scrollInertia<233?250:0,o.attr("id")===f[1])var i="x",s=(o[0].offsetLeft-t+n)*l.scrollRatio.x;else var i="y",s=(o[0].offsetTop-e+a)*l.scrollRatio.y;G(r,s.toString(),{dir:i,drag:!0})}var o,n,i,r=e(this),l=r.data(a),d=l.opt,u=a+"_"+l.idx,f=["mCSB_"+l.idx+"_dragger_vertical","mCSB_"+l.idx+"_dragger_horizontal"],h=e("#mCSB_"+l.idx+"_container"),m=e("#"+f[0]+",#"+f[1]),p=d.advanced.releaseDraggableSelectors?m.add(e(d.advanced.releaseDraggableSelectors)):m,g=d.advanced.extraDraggableSelectors?e(!A()||top.document).add(e(d.advanced.extraDraggableSelectors)):e(!A()||top.document);m.bind("contextmenu."+u,function(e){e.preventDefault()}).bind("mousedown."+u+" touchstart."+u+" pointerdown."+u+" MSPointerDown."+u,function(t){if(t.stopImmediatePropagation(),t.preventDefault(),ee(t)){c=!0,s&&(document.onselectstart=function(){return!1}),L.call(h,!1),Q(r),o=e(this);var a=o.offset(),l=O(t)[0]-a.top,u=O(t)[1]-a.left,f=o.height()+a.top,m=o.width()+a.left;f>l&&l>0&&m>u&&u>0&&(n=l,i=u),C(o,"active",d.autoExpandScrollbar)}}).bind("touchmove."+u,function(e){e.stopImmediatePropagation(),e.preventDefault();var a=o.offset(),r=O(e)[0]-a.top,l=O(e)[1]-a.left;t(n,i,r,l)}),e(document).add(g).bind("mousemove."+u+" pointermove."+u+" MSPointerMove."+u,function(e){if(o){var a=o.offset(),r=O(e)[0]-a.top,l=O(e)[1]-a.left;if(n===r&&i===l)return;t(n,i,r,l)}}).add(p).bind("mouseup."+u+" touchend."+u+" pointerup."+u+" MSPointerUp."+u,function(){o&&(C(o,"active",d.autoExpandScrollbar),o=null),c=!1,s&&(document.onselectstart=null),L.call(h,!0)})},D=function(){function o(e){if(!te(e)||c||O(e)[2])return void(t=0);t=1,b=0,C=0,d=1,y.removeClass("mCS_touch_action");var o=I.offset();u=O(e)[0]-o.top,f=O(e)[1]-o.left,z=[O(e)[0],O(e)[1]]}function n(e){if(te(e)&&!c&&!O(e)[2]&&(T.documentTouchScroll||e.preventDefault(),e.stopImmediatePropagation(),(!C||b)&&d)){g=K();var t=M.offset(),o=O(e)[0]-t.top,a=O(e)[1]-t.left,n="mcsLinearOut";if(E.push(o),W.push(a),z[2]=Math.abs(O(e)[0]-z[0]),z[3]=Math.abs(O(e)[1]-z[1]),B.overflowed[0])var i=D[0].parent().height()-D[0].height(),r=u-o>0&&o-u>-(i*B.scrollRatio.y)&&(2*z[3]<z[2]||"yx"===T.axis);if(B.overflowed[1])var l=D[1].parent().width()-D[1].width(),h=f-a>0&&a-f>-(l*B.scrollRatio.x)&&(2*z[2]<z[3]||"yx"===T.axis);r||h?(U||e.preventDefault(),b=1):(C=1,y.addClass("mCS_touch_action")),U&&e.preventDefault(),w="yx"===T.axis?[u-o,f-a]:"x"===T.axis?[null,f-a]:[u-o,null],I[0].idleTimer=250,B.overflowed[0]&&s(w[0],R,n,"y","all",!0),B.overflowed[1]&&s(w[1],R,n,"x",L,!0)}}function i(e){if(!te(e)||c||O(e)[2])return void(t=0);t=1,e.stopImmediatePropagation(),Q(y),p=K();var o=M.offset();h=O(e)[0]-o.top,m=O(e)[1]-o.left,E=[],W=[]}function r(e){if(te(e)&&!c&&!O(e)[2]){d=0,e.stopImmediatePropagation(),b=0,C=0,v=K();var t=M.offset(),o=O(e)[0]-t.top,a=O(e)[1]-t.left;if(!(v-g>30)){_=1e3/(v-p);var n="mcsEaseOut",i=2.5>_,r=i?[E[E.length-2],W[W.length-2]]:[0,0];x=i?[o-r[0],a-r[1]]:[o-h,a-m];var u=[Math.abs(x[0]),Math.abs(x[1])];_=i?[Math.abs(x[0]/4),Math.abs(x[1]/4)]:[_,_];var f=[Math.abs(I[0].offsetTop)-x[0]*l(u[0]/_[0],_[0]),Math.abs(I[0].offsetLeft)-x[1]*l(u[1]/_[1],_[1])];w="yx"===T.axis?[f[0],f[1]]:"x"===T.axis?[null,f[1]]:[f[0],null],S=[4*u[0]+T.scrollInertia,4*u[1]+T.scrollInertia];var y=parseInt(T.contentTouchScroll)||0;w[0]=u[0]>y?w[0]:0,w[1]=u[1]>y?w[1]:0,B.overflowed[0]&&s(w[0],S[0],n,"y",L,!1),B.overflowed[1]&&s(w[1],S[1],n,"x",L,!1)}}}function l(e,t){var o=[1.5*t,2*t,t/1.5,t/2];return e>90?t>4?o[0]:o[3]:e>60?t>3?o[3]:o[2]:e>30?t>8?o[1]:t>6?o[0]:t>4?t:o[2]:t>8?t:o[3]}function s(e,t,o,a,n,i){e&&G(y,e.toString(),{dur:t,scrollEasing:o,dir:a,overwrite:n,drag:i})}var d,u,f,h,m,p,g,v,x,_,w,S,b,C,y=e(this),B=y.data(a),T=B.opt,k=a+"_"+B.idx,M=e("#mCSB_"+B.idx),I=e("#mCSB_"+B.idx+"_container"),D=[e("#mCSB_"+B.idx+"_dragger_vertical"),e("#mCSB_"+B.idx+"_dragger_horizontal")],E=[],W=[],R=0,L="yx"===T.axis?"none":"all",z=[],P=I.find("iframe"),H=["touchstart."+k+" pointerdown."+k+" MSPointerDown."+k,"touchmove."+k+" pointermove."+k+" MSPointerMove."+k,"touchend."+k+" pointerup."+k+" MSPointerUp."+k],U=void 0!==document.body.style.touchAction&&""!==document.body.style.touchAction;I.bind(H[0],function(e){o(e)}).bind(H[1],function(e){n(e)}),M.bind(H[0],function(e){i(e)}).bind(H[2],function(e){r(e)}),P.length&&P.each(function(){e(this).bind("load",function(){A(this)&&e(this.contentDocument||this.contentWindow.document).bind(H[0],function(e){o(e),i(e)}).bind(H[1],function(e){n(e)}).bind(H[2],function(e){r(e)})})})},E=function(){function o(){return window.getSelection?window.getSelection().toString():document.selection&&"Control"!=document.selection.type?document.selection.createRange().text:0}function n(e,t,o){d.type=o&&i?"stepped":"stepless",d.scrollAmount=10,j(r,e,t,"mcsLinearOut",o?60:null)}var i,r=e(this),l=r.data(a),s=l.opt,d=l.sequential,u=a+"_"+l.idx,f=e("#mCSB_"+l.idx+"_container"),h=f.parent();f.bind("mousedown."+u,function(){t||i||(i=1,c=!0)}).add(document).bind("mousemove."+u,function(e){if(!t&&i&&o()){var a=f.offset(),r=O(e)[0]-a.top+f[0].offsetTop,c=O(e)[1]-a.left+f[0].offsetLeft;r>0&&r<h.height()&&c>0&&c<h.width()?d.step&&n("off",null,"stepped"):("x"!==s.axis&&l.overflowed[0]&&(0>r?n("on",38):r>h.height()&&n("on",40)),"y"!==s.axis&&l.overflowed[1]&&(0>c?n("on",37):c>h.width()&&n("on",39)))}}).bind("mouseup."+u+" dragend."+u,function(){t||(i&&(i=0,n("off",null)),c=!1)})},W=function(){function t(t,a){if(Q(o),!z(o,t.target)){var r="auto"!==i.mouseWheel.deltaFactor?parseInt(i.mouseWheel.deltaFactor):s&&t.deltaFactor<100?100:t.deltaFactor||100,d=i.scrollInertia;if("x"===i.axis||"x"===i.mouseWheel.axis)var u="x",f=[Math.round(r*n.scrollRatio.x),parseInt(i.mouseWheel.scrollAmount)],h="auto"!==i.mouseWheel.scrollAmount?f[1]:f[0]>=l.width()?.9*l.width():f[0],m=Math.abs(e("#mCSB_"+n.idx+"_container")[0].offsetLeft),p=c[1][0].offsetLeft,g=c[1].parent().width()-c[1].width(),v="y"===i.mouseWheel.axis?t.deltaY||a:t.deltaX;else var u="y",f=[Math.round(r*n.scrollRatio.y),parseInt(i.mouseWheel.scrollAmount)],h="auto"!==i.mouseWheel.scrollAmount?f[1]:f[0]>=l.height()?.9*l.height():f[0],m=Math.abs(e("#mCSB_"+n.idx+"_container")[0].offsetTop),p=c[0][0].offsetTop,g=c[0].parent().height()-c[0].height(),v=t.deltaY||a;"y"===u&&!n.overflowed[0]||"x"===u&&!n.overflowed[1]||((i.mouseWheel.invert||t.webkitDirectionInvertedFromDevice)&&(v=-v),i.mouseWheel.normalizeDelta&&(v=0>v?-1:1),(v>0&&0!==p||0>v&&p!==g||i.mouseWheel.preventDefault)&&(t.stopImmediatePropagation(),t.preventDefault()),t.deltaFactor<5&&!i.mouseWheel.normalizeDelta&&(h=t.deltaFactor,d=17),G(o,(m-v*h).toString(),{dir:u,dur:d}))}}if(e(this).data(a)){var o=e(this),n=o.data(a),i=n.opt,r=a+"_"+n.idx,l=e("#mCSB_"+n.idx),c=[e("#mCSB_"+n.idx+"_dragger_vertical"),e("#mCSB_"+n.idx+"_dragger_horizontal")],d=e("#mCSB_"+n.idx+"_container").find("iframe");d.length&&d.each(function(){e(this).bind("load",function(){A(this)&&e(this.contentDocument||this.contentWindow.document).bind("mousewheel."+r,function(e,o){t(e,o)})})}),l.bind("mousewheel."+r,function(e,o){t(e,o)})}},R=new Object,A=function(t){var o=!1,a=!1,n=null;if(void 0===t?a="#empty":void 0!==e(t).attr("id")&&(a=e(t).attr("id")),a!==!1&&void 0!==R[a])return R[a];if(t){try{var i=t.contentDocument||t.contentWindow.document;n=i.body.innerHTML}catch(r){}o=null!==n}else{try{var i=top.document;n=i.body.innerHTML}catch(r){}o=null!==n}return a!==!1&&(R[a]=o),o},L=function(e){var t=this.find("iframe");if(t.length){var o=e?"auto":"none";t.css("pointer-events",o)}},z=function(t,o){var n=o.nodeName.toLowerCase(),i=t.data(a).opt.mouseWheel.disableOver,r=["select","textarea"];return e.inArray(n,i)>-1&&!(e.inArray(n,r)>-1&&!e(o).is(":focus"))},P=function(){var t,o=e(this),n=o.data(a),i=a+"_"+n.idx,r=e("#mCSB_"+n.idx+"_container"),l=r.parent(),s=e(".mCSB_"+n.idx+"_scrollbar ."+d[12]);s.bind("mousedown."+i+" touchstart."+i+" pointerdown."+i+" MSPointerDown."+i,function(o){c=!0,e(o.target).hasClass("mCSB_dragger")||(t=1)}).bind("touchend."+i+" pointerup."+i+" MSPointerUp."+i,function(){c=!1}).bind("click."+i,function(a){if(t&&(t=0,e(a.target).hasClass(d[12])||e(a.target).hasClass("mCSB_draggerRail"))){Q(o);var i=e(this),s=i.find(".mCSB_dragger");if(i.parent(".mCSB_scrollTools_horizontal").length>0){if(!n.overflowed[1])return;var c="x",u=a.pageX>s.offset().left?-1:1,f=Math.abs(r[0].offsetLeft)-u*(.9*l.width())}else{if(!n.overflowed[0])return;var c="y",u=a.pageY>s.offset().top?-1:1,f=Math.abs(r[0].offsetTop)-u*(.9*l.height())}G(o,f.toString(),{dir:c,scrollEasing:"mcsEaseInOut"})}})},H=function(){var t=e(this),o=t.data(a),n=o.opt,i=a+"_"+o.idx,r=e("#mCSB_"+o.idx+"_container"),l=r.parent();r.bind("focusin."+i,function(){var o=e(document.activeElement),a=r.find(".mCustomScrollBox").length,i=0;o.is(n.advanced.autoScrollOnFocus)&&(Q(t),clearTimeout(t[0]._focusTimeout),t[0]._focusTimer=a?(i+17)*a:0,t[0]._focusTimeout=setTimeout(function(){var e=[ae(o)[0],ae(o)[1]],a=[r[0].offsetTop,r[0].offsetLeft],s=[a[0]+e[0]>=0&&a[0]+e[0]<l.height()-o.outerHeight(!1),a[1]+e[1]>=0&&a[0]+e[1]<l.width()-o.outerWidth(!1)],c="yx"!==n.axis||s[0]||s[1]?"all":"none";"x"===n.axis||s[0]||G(t,e[0].toString(),{dir:"y",scrollEasing:"mcsEaseInOut",overwrite:c,dur:i}),"y"===n.axis||s[1]||G(t,e[1].toString(),{dir:"x",scrollEasing:"mcsEaseInOut",overwrite:c,dur:i})},t[0]._focusTimer))})},U=function(){var t=e(this),o=t.data(a),n=a+"_"+o.idx,i=e("#mCSB_"+o.idx+"_container").parent();i.bind("scroll."+n,function(){0===i.scrollTop()&&0===i.scrollLeft()||e(".mCSB_"+o.idx+"_scrollbar").css("visibility","hidden")})},F=function(){var t=e(this),o=t.data(a),n=o.opt,i=o.sequential,r=a+"_"+o.idx,l=".mCSB_"+o.idx+"_scrollbar",s=e(l+">a");s.bind("contextmenu."+r,function(e){e.preventDefault()}).bind("mousedown."+r+" touchstart."+r+" pointerdown."+r+" MSPointerDown."+r+" mouseup."+r+" touchend."+r+" pointerup."+r+" MSPointerUp."+r+" mouseout."+r+" pointerout."+r+" MSPointerOut."+r+" click."+r,function(a){function r(e,o){i.scrollAmount=n.scrollButtons.scrollAmount,j(t,e,o)}if(a.preventDefault(),ee(a)){var l=e(this).attr("class");switch(i.type=n.scrollButtons.scrollType,a.type){case"mousedown":case"touchstart":case"pointerdown":case"MSPointerDown":if("stepped"===i.type)return;c=!0,o.tweenRunning=!1,r("on",l);break;case"mouseup":case"touchend":case"pointerup":case"MSPointerUp":case"mouseout":case"pointerout":case"MSPointerOut":if("stepped"===i.type)return;c=!1,i.dir&&r("off",l);break;case"click":if("stepped"!==i.type||o.tweenRunning)return;r("on",l)}}})},q=function(){function t(t){function a(e,t){r.type=i.keyboard.scrollType,r.scrollAmount=i.keyboard.scrollAmount,"stepped"===r.type&&n.tweenRunning||j(o,e,t)}switch(t.type){case"blur":n.tweenRunning&&r.dir&&a("off",null);break;case"keydown":case"keyup":var l=t.keyCode?t.keyCode:t.which,s="on";if("x"!==i.axis&&(38===l||40===l)||"y"!==i.axis&&(37===l||39===l)){if((38===l||40===l)&&!n.overflowed[0]||(37===l||39===l)&&!n.overflowed[1])return;"keyup"===t.type&&(s="off"),e(document.activeElement).is(u)||(t.preventDefault(),t.stopImmediatePropagation(),a(s,l))}else if(33===l||34===l){if((n.overflowed[0]||n.overflowed[1])&&(t.preventDefault(),t.stopImmediatePropagation()),"keyup"===t.type){Q(o);var f=34===l?-1:1;if("x"===i.axis||"yx"===i.axis&&n.overflowed[1]&&!n.overflowed[0])var h="x",m=Math.abs(c[0].offsetLeft)-f*(.9*d.width());else var h="y",m=Math.abs(c[0].offsetTop)-f*(.9*d.height());G(o,m.toString(),{dir:h,scrollEasing:"mcsEaseInOut"})}}else if((35===l||36===l)&&!e(document.activeElement).is(u)&&((n.overflowed[0]||n.overflowed[1])&&(t.preventDefault(),t.stopImmediatePropagation()),"keyup"===t.type)){if("x"===i.axis||"yx"===i.axis&&n.overflowed[1]&&!n.overflowed[0])var h="x",m=35===l?Math.abs(d.width()-c.outerWidth(!1)):0;else var h="y",m=35===l?Math.abs(d.height()-c.outerHeight(!1)):0;G(o,m.toString(),{dir:h,scrollEasing:"mcsEaseInOut"})}}}var o=e(this),n=o.data(a),i=n.opt,r=n.sequential,l=a+"_"+n.idx,s=e("#mCSB_"+n.idx),c=e("#mCSB_"+n.idx+"_container"),d=c.parent(),u="input,textarea,select,datalist,keygen,[contenteditable='true']",f=c.find("iframe"),h=["blur."+l+" keydown."+l+" keyup."+l];f.length&&f.each(function(){e(this).bind("load",function(){A(this)&&e(this.contentDocument||this.contentWindow.document).bind(h[0],function(e){t(e)})})}),s.attr("tabindex","0").bind(h[0],function(e){t(e)})},j=function(t,o,n,i,r){function l(e){u.snapAmount&&(f.scrollAmount=u.snapAmount instanceof Array?"x"===f.dir[0]?u.snapAmount[1]:u.snapAmount[0]:u.snapAmount);var o="stepped"!==f.type,a=r?r:e?o?p/1.5:g:1e3/60,n=e?o?7.5:40:2.5,s=[Math.abs(h[0].offsetTop),Math.abs(h[0].offsetLeft)],d=[c.scrollRatio.y>10?10:c.scrollRatio.y,c.scrollRatio.x>10?10:c.scrollRatio.x],m="x"===f.dir[0]?s[1]+f.dir[1]*(d[1]*n):s[0]+f.dir[1]*(d[0]*n),v="x"===f.dir[0]?s[1]+f.dir[1]*parseInt(f.scrollAmount):s[0]+f.dir[1]*parseInt(f.scrollAmount),x="auto"!==f.scrollAmount?v:m,_=i?i:e?o?"mcsLinearOut":"mcsEaseInOut":"mcsLinear",w=!!e;return e&&17>a&&(x="x"===f.dir[0]?s[1]:s[0]),G(t,x.toString(),{dir:f.dir[0],scrollEasing:_,dur:a,onComplete:w}),e?void(f.dir=!1):(clearTimeout(f.step),void(f.step=setTimeout(function(){l()},a)))}function s(){clearTimeout(f.step),$(f,"step"),Q(t)}var c=t.data(a),u=c.opt,f=c.sequential,h=e("#mCSB_"+c.idx+"_container"),m="stepped"===f.type,p=u.scrollInertia<26?26:u.scrollInertia,g=u.scrollInertia<1?17:u.scrollInertia;switch(o){case"on":if(f.dir=[n===d[16]||n===d[15]||39===n||37===n?"x":"y",n===d[13]||n===d[15]||38===n||37===n?-1:1],Q(t),oe(n)&&"stepped"===f.type)return;l(m);break;case"off":s(),(m||c.tweenRunning&&f.dir)&&l(!0)}},Y=function(t){var o=e(this).data(a).opt,n=[];return"function"==typeof t&&(t=t()),t instanceof Array?n=t.length>1?[t[0],t[1]]:"x"===o.axis?[null,t[0]]:[t[0],null]:(n[0]=t.y?t.y:t.x||"x"===o.axis?null:t,n[1]=t.x?t.x:t.y||"y"===o.axis?null:t),"function"==typeof n[0]&&(n[0]=n[0]()),"function"==typeof n[1]&&(n[1]=n[1]()),n},X=function(t,o){if(null!=t&&"undefined"!=typeof t){var n=e(this),i=n.data(a),r=i.opt,l=e("#mCSB_"+i.idx+"_container"),s=l.parent(),c=typeof t;o||(o="x"===r.axis?"x":"y");var d="x"===o?l.outerWidth(!1)-s.width():l.outerHeight(!1)-s.height(),f="x"===o?l[0].offsetLeft:l[0].offsetTop,h="x"===o?"left":"top";switch(c){case"function":return t();case"object":var m=t.jquery?t:e(t);if(!m.length)return;return"x"===o?ae(m)[1]:ae(m)[0];case"string":case"number":if(oe(t))return Math.abs(t);if(-1!==t.indexOf("%"))return Math.abs(d*parseInt(t)/100);if(-1!==t.indexOf("-="))return Math.abs(f-parseInt(t.split("-=")[1]));if(-1!==t.indexOf("+=")){var p=f+parseInt(t.split("+=")[1]);return p>=0?0:Math.abs(p)}if(-1!==t.indexOf("px")&&oe(t.split("px")[0]))return Math.abs(t.split("px")[0]);if("top"===t||"left"===t)return 0;if("bottom"===t)return Math.abs(s.height()-l.outerHeight(!1));if("right"===t)return Math.abs(s.width()-l.outerWidth(!1));if("first"===t||"last"===t){var m=l.find(":"+t);return"x"===o?ae(m)[1]:ae(m)[0]}return e(t).length?"x"===o?ae(e(t))[1]:ae(e(t))[0]:(l.css(h,t),void u.update.call(null,n[0]))}}},N=function(t){function o(){return clearTimeout(f[0].autoUpdate),0===l.parents("html").length?void(l=null):void(f[0].autoUpdate=setTimeout(function(){return c.advanced.updateOnSelectorChange&&(s.poll.change.n=i(),s.poll.change.n!==s.poll.change.o)?(s.poll.change.o=s.poll.change.n,void r(3)):c.advanced.updateOnContentResize&&(s.poll.size.n=l[0].scrollHeight+l[0].scrollWidth+f[0].offsetHeight+l[0].offsetHeight+l[0].offsetWidth,s.poll.size.n!==s.poll.size.o)?(s.poll.size.o=s.poll.size.n,void r(1)):!c.advanced.updateOnImageLoad||"auto"===c.advanced.updateOnImageLoad&&"y"===c.axis||(s.poll.img.n=f.find("img").length,s.poll.img.n===s.poll.img.o)?void((c.advanced.updateOnSelectorChange||c.advanced.updateOnContentResize||c.advanced.updateOnImageLoad)&&o()):(s.poll.img.o=s.poll.img.n,void f.find("img").each(function(){n(this)}))},c.advanced.autoUpdateTimeout))}function n(t){function o(e,t){return function(){
354
  return t.apply(e,arguments)}}function a(){this.onload=null,e(t).addClass(d[2]),r(2)}if(e(t).hasClass(d[2]))return void r();var n=new Image;n.onload=o(n,a),n.src=t.src}function i(){c.advanced.updateOnSelectorChange===!0&&(c.advanced.updateOnSelectorChange="*");var e=0,t=f.find(c.advanced.updateOnSelectorChange);return c.advanced.updateOnSelectorChange&&t.length>0&&t.each(function(){e+=this.offsetHeight+this.offsetWidth}),e}function r(e){clearTimeout(f[0].autoUpdate),u.update.call(null,l[0],e)}var l=e(this),s=l.data(a),c=s.opt,f=e("#mCSB_"+s.idx+"_container");return t?(clearTimeout(f[0].autoUpdate),void $(f[0],"autoUpdate")):void o()},V=function(e,t,o){return Math.round(e/t)*t-o},Q=function(t){var o=t.data(a),n=e("#mCSB_"+o.idx+"_container,#mCSB_"+o.idx+"_container_wrapper,#mCSB_"+o.idx+"_dragger_vertical,#mCSB_"+o.idx+"_dragger_horizontal");n.each(function(){Z.call(this)})},G=function(t,o,n){function i(e){return s&&c.callbacks[e]&&"function"==typeof c.callbacks[e]}function r(){return[c.callbacks.alwaysTriggerOffsets||w>=S[0]+y,c.callbacks.alwaysTriggerOffsets||-B>=w]}function l(){var e=[h[0].offsetTop,h[0].offsetLeft],o=[x[0].offsetTop,x[0].offsetLeft],a=[h.outerHeight(!1),h.outerWidth(!1)],i=[f.height(),f.width()];t[0].mcs={content:h,top:e[0],left:e[1],draggerTop:o[0],draggerLeft:o[1],topPct:Math.round(100*Math.abs(e[0])/(Math.abs(a[0])-i[0])),leftPct:Math.round(100*Math.abs(e[1])/(Math.abs(a[1])-i[1])),direction:n.dir}}var s=t.data(a),c=s.opt,d={trigger:"internal",dir:"y",scrollEasing:"mcsEaseOut",drag:!1,dur:c.scrollInertia,overwrite:"all",callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},n=e.extend(d,n),u=[n.dur,n.drag?0:n.dur],f=e("#mCSB_"+s.idx),h=e("#mCSB_"+s.idx+"_container"),m=h.parent(),p=c.callbacks.onTotalScrollOffset?Y.call(t,c.callbacks.onTotalScrollOffset):[0,0],g=c.callbacks.onTotalScrollBackOffset?Y.call(t,c.callbacks.onTotalScrollBackOffset):[0,0];if(s.trigger=n.trigger,0===m.scrollTop()&&0===m.scrollLeft()||(e(".mCSB_"+s.idx+"_scrollbar").css("visibility","visible"),m.scrollTop(0).scrollLeft(0)),"_resetY"!==o||s.contentReset.y||(i("onOverflowYNone")&&c.callbacks.onOverflowYNone.call(t[0]),s.contentReset.y=1),"_resetX"!==o||s.contentReset.x||(i("onOverflowXNone")&&c.callbacks.onOverflowXNone.call(t[0]),s.contentReset.x=1),"_resetY"!==o&&"_resetX"!==o){if(!s.contentReset.y&&t[0].mcs||!s.overflowed[0]||(i("onOverflowY")&&c.callbacks.onOverflowY.call(t[0]),s.contentReset.x=null),!s.contentReset.x&&t[0].mcs||!s.overflowed[1]||(i("onOverflowX")&&c.callbacks.onOverflowX.call(t[0]),s.contentReset.x=null),c.snapAmount){var v=c.snapAmount instanceof Array?"x"===n.dir?c.snapAmount[1]:c.snapAmount[0]:c.snapAmount;o=V(o,v,c.snapOffset)}switch(n.dir){case"x":var x=e("#mCSB_"+s.idx+"_dragger_horizontal"),_="left",w=h[0].offsetLeft,S=[f.width()-h.outerWidth(!1),x.parent().width()-x.width()],b=[o,0===o?0:o/s.scrollRatio.x],y=p[1],B=g[1],T=y>0?y/s.scrollRatio.x:0,k=B>0?B/s.scrollRatio.x:0;break;case"y":var x=e("#mCSB_"+s.idx+"_dragger_vertical"),_="top",w=h[0].offsetTop,S=[f.height()-h.outerHeight(!1),x.parent().height()-x.height()],b=[o,0===o?0:o/s.scrollRatio.y],y=p[0],B=g[0],T=y>0?y/s.scrollRatio.y:0,k=B>0?B/s.scrollRatio.y:0}b[1]<0||0===b[0]&&0===b[1]?b=[0,0]:b[1]>=S[1]?b=[S[0],S[1]]:b[0]=-b[0],t[0].mcs||(l(),i("onInit")&&c.callbacks.onInit.call(t[0])),clearTimeout(h[0].onCompleteTimeout),J(x[0],_,Math.round(b[1]),u[1],n.scrollEasing),!s.tweenRunning&&(0===w&&b[0]>=0||w===S[0]&&b[0]<=S[0])||J(h[0],_,Math.round(b[0]),u[0],n.scrollEasing,n.overwrite,{onStart:function(){n.callbacks&&n.onStart&&!s.tweenRunning&&(i("onScrollStart")&&(l(),c.callbacks.onScrollStart.call(t[0])),s.tweenRunning=!0,C(x),s.cbOffsets=r())},onUpdate:function(){n.callbacks&&n.onUpdate&&i("whileScrolling")&&(l(),c.callbacks.whileScrolling.call(t[0]))},onComplete:function(){if(n.callbacks&&n.onComplete){"yx"===c.axis&&clearTimeout(h[0].onCompleteTimeout);var e=h[0].idleTimer||0;h[0].onCompleteTimeout=setTimeout(function(){i("onScroll")&&(l(),c.callbacks.onScroll.call(t[0])),i("onTotalScroll")&&b[1]>=S[1]-T&&s.cbOffsets[0]&&(l(),c.callbacks.onTotalScroll.call(t[0])),i("onTotalScrollBack")&&b[1]<=k&&s.cbOffsets[1]&&(l(),c.callbacks.onTotalScrollBack.call(t[0])),s.tweenRunning=!1,h[0].idleTimer=0,C(x,"hide")},e)}}})}},J=function(e,t,o,a,n,i,r){function l(){S.stop||(x||m.call(),x=K()-v,s(),x>=S.time&&(S.time=x>S.time?x+f-(x-S.time):x+f-1,S.time<x+1&&(S.time=x+1)),S.time<a?S.id=h(l):g.call())}function s(){a>0?(S.currVal=u(S.time,_,b,a,n),w[t]=Math.round(S.currVal)+"px"):w[t]=o+"px",p.call()}function c(){f=1e3/60,S.time=x+f,h=window.requestAnimationFrame?window.requestAnimationFrame:function(e){return s(),setTimeout(e,.01)},S.id=h(l)}function d(){null!=S.id&&(window.requestAnimationFrame?window.cancelAnimationFrame(S.id):clearTimeout(S.id),S.id=null)}function u(e,t,o,a,n){switch(n){case"linear":case"mcsLinear":return o*e/a+t;case"mcsLinearOut":return e/=a,e--,o*Math.sqrt(1-e*e)+t;case"easeInOutSmooth":return e/=a/2,1>e?o/2*e*e+t:(e--,-o/2*(e*(e-2)-1)+t);case"easeInOutStrong":return e/=a/2,1>e?o/2*Math.pow(2,10*(e-1))+t:(e--,o/2*(-Math.pow(2,-10*e)+2)+t);case"easeInOut":case"mcsEaseInOut":return e/=a/2,1>e?o/2*e*e*e+t:(e-=2,o/2*(e*e*e+2)+t);case"easeOutSmooth":return e/=a,e--,-o*(e*e*e*e-1)+t;case"easeOutStrong":return o*(-Math.pow(2,-10*e/a)+1)+t;case"easeOut":case"mcsEaseOut":default:var i=(e/=a)*e,r=i*e;return t+o*(.499999999999997*r*i+-2.5*i*i+5.5*r+-6.5*i+4*e)}}e._mTween||(e._mTween={top:{},left:{}});var f,h,r=r||{},m=r.onStart||function(){},p=r.onUpdate||function(){},g=r.onComplete||function(){},v=K(),x=0,_=e.offsetTop,w=e.style,S=e._mTween[t];"left"===t&&(_=e.offsetLeft);var b=o-_;S.stop=0,"none"!==i&&d(),c()},K=function(){return window.performance&&window.performance.now?window.performance.now():window.performance&&window.performance.webkitNow?window.performance.webkitNow():Date.now?Date.now():(new Date).getTime()},Z=function(){var e=this;e._mTween||(e._mTween={top:{},left:{}});for(var t=["top","left"],o=0;o<t.length;o++){var a=t[o];e._mTween[a].id&&(window.requestAnimationFrame?window.cancelAnimationFrame(e._mTween[a].id):clearTimeout(e._mTween[a].id),e._mTween[a].id=null,e._mTween[a].stop=1)}},$=function(e,t){try{delete e[t]}catch(o){e[t]=null}},ee=function(e){return!(e.which&&1!==e.which)},te=function(e){var t=e.originalEvent.pointerType;return!(t&&"touch"!==t&&2!==t)},oe=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},ae=function(e){var t=e.parents(".mCSB_container");return[e.offset().top-t.offset().top,e.offset().left-t.offset().left]},ne=function(){function e(){var e=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var t=0;t<e.length;t++)if(e[t]+"Hidden"in document)return e[t]+"Hidden";return null}var t=e();return t?document[t]:!1};e.fn[o]=function(t){return u[t]?u[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void e.error("Method "+t+" does not exist"):u.init.apply(this,arguments)},e[o]=function(t){return u[t]?u[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void e.error("Method "+t+" does not exist"):u.init.apply(this,arguments)},e[o].defaults=i,window[o]=!0,e(window).bind("load",function(){e(n)[o](),e.extend(e.expr[":"],{mcsInView:e.expr[":"].mcsInView||function(t){var o,a,n=e(t),i=n.parents(".mCSB_container");if(i.length)return o=i.parent(),a=[i[0].offsetTop,i[0].offsetLeft],a[0]+ae(n)[0]>=0&&a[0]+ae(n)[0]<o.height()-n.outerHeight(!1)&&a[1]+ae(n)[1]>=0&&a[1]+ae(n)[1]<o.width()-n.outerWidth(!1)},mcsInSight:e.expr[":"].mcsInSight||function(t,o,a){var n,i,r,l,s=e(t),c=s.parents(".mCSB_container"),d="exact"===a[3]?[[1,0],[1,0]]:[[.9,.1],[.6,.4]];if(c.length)return n=[s.outerHeight(!1),s.outerWidth(!1)],r=[c[0].offsetTop+ae(s)[0],c[0].offsetLeft+ae(s)[1]],i=[c.parent()[0].offsetHeight,c.parent()[0].offsetWidth],l=[n[0]<i[0]?d[0]:d[1],n[1]<i[1]?d[0]:d[1]],r[0]-i[0]*l[0][0]<0&&r[0]+n[0]-i[0]*l[0][1]>=0&&r[1]-i[1]*l[1][0]<0&&r[1]+n[1]-i[1]*l[1][1]>=0},mcsOverflow:e.expr[":"].mcsOverflow||function(t){var o=e(t).data(a);if(o)return o.overflowed[0]||o.overflowed[1]}})})})});
public/js/ivory-ajax-search.min.js CHANGED
@@ -1 +1 @@
1
- !function(e){"use strict";e(document).ready(function(){var t,a=null,i="",o=-1,s=e(document.activeElement).closest("form");function n(a,s){s||(s=1);var n=e(a),r=n.val()||"",l=n.parents(".is-ajax-search"),c=l.attr("data-min-no-for-search")||"",d=l.attr("data-result-box-max-height")||"400",h=e(l).attr("data-form-id");if(e(".is-form-id-"+h+" .is-search-input").val(r),""===i||i!==r.trim()||o!==h)i=r.trim(),o=h;else if(1===s)return void e("#is-ajax-search-result-"+h).show();if(1===s&&l.addClass("processing"),r.length>=c){if(1===s){if(e("#is-ajax-search-result-"+h+", #is-ajax-search-details-"+h).hide(),l.hasClass("is-form-style-1")){var u=l.find(".is-search-submit").outerWidth()+5;l.find(".is-loader-image").css("right",u+"px")}l.find(".is-loader-image").show()}var f={action:"is_ajax_load_posts",page:s,security:IvoryAjaxVars.ajax_nonce},m=l.serialize()+"&"+e.param(f);0===l.find('input[name="id"]').length&&(m+="&id="+h),t&&4!==t.readystate&&t.abort(),t=e.ajax({url:IvoryAjaxVars.ajaxurl,data:m,type:"POST",success:function(t){if("undefined"!=typeof IvorySearchVars&&void 0!==IvorySearchVars.is_analytics_enabled){var a=e(t).find(".is-ajax-search-no-result").length?"Nothing Found":"Results Found";ivory_search_analytics(h,r,a)}if(l.find(".is-loader-image").hide(),l.removeClass("processing"),1===s){var i=l.offset(),o=l.innerHeight(),n=l.outerWidth();n=n<500?500:n,0===e("#is-ajax-search-result-"+h).length&&e("body").append('<div id="is-ajax-search-result-'+h+'" class="is-ajax-search-result"></div>'),e("#is-ajax-search-result-"+h).css({width:n-10+"px"});var c=e("#is-ajax-search-result-"+h).outerWidth(),u=e(window).width(),f=0;if(i.left+c>u&&(f=i.left+c-u),e("#is-ajax-search-result-"+h).css({top:i.top+o+"px",left:i.left-f+"px",width:n-10+"px"}),e("#is-ajax-search-result-"+h).show().html(t),0!==e("#is-ajax-search-details-"+h).length&&e("body > #is-ajax-search-details-"+h).remove(),0!==e("#is-ajax-search-result-"+h+" .is-ajax-search-details").length){e("body").append('<div id="is-ajax-search-details-'+h+'" class="is-ajax-search-details">'+e("#is-ajax-search-result-"+h+" .is-ajax-search-details").html()+"</div>"),e("#is-ajax-search-result-"+h+" .is-ajax-search-details").remove();var m=e("#is-ajax-search-details-"+h).outerWidth(),p=i.left+c;if(i.left+c+m>u+30){var g=i.left-(f+m);g>-30&&(p=g)}e("#is-ajax-search-details-"+h).css({top:i.top+o+"px",left:p+"px"})}}else e("#is-ajax-search-result-"+h+" .is-show-more-results").remove(),e("#is-ajax-search-result-"+h+" .is-ajax-search-posts").append(t),0!==e("#is-ajax-search-result-"+h+" .is-ajax-search-posts .is-show-more-results").length&&(e("#is-ajax-search-result-"+h).append(e("#is-ajax-search-result-"+h+" .is-ajax-search-posts .is-show-more-results")[0].outerHTML),e("#is-ajax-search-result-"+h+" .is-ajax-search-posts .is-show-more-results").remove()),e("#is-ajax-search-details-"+h+" .is-ajax-search-posts-details").append(e("#is-ajax-search-result-"+h+" .is-ajax-search-items .is-ajax-search-posts-details").html()),e("#is-ajax-search-result-"+h+" .is-ajax-search-items .is-ajax-search-details").remove();var x=r.trim().split(" ");if(0!=x.length&&e.isFunction(e.fn.is_highlight)){var v,w,_,S=[".is-ajax-search-result"],b=jQuery.support.opacity?"mark":"span";for(_ in S)if(0!=(v=e(S[_])).length){for(w in x)v.is_highlight(x[w],b,"is-highlight term-"+w),v.find("*").is_highlight(x[w],b,"is-highlight term-"+w);break}}e("#is-ajax-search-result-"+h+" .is-ajax-search-items, #is-ajax-search-details-"+h+" .is-ajax-search-items").css("max-height",d+"px"),e.mCustomScrollbar.defaults.scrollButtons.enable=!0,e("#is-ajax-search-result-"+h+" .is-ajax-search-items, #is-ajax-search-details-"+h+" .is-ajax-search-items").mCustomScrollbar({theme:"dark-thick"}),e(".is-ajax-search-result .is-ajax-search-post a").on("click",function(t){e("#is-popup-wrapper, .is-ajax-search-result, .is-ajax-search-details").fadeOut("slow")})},error:function(e,t,a){console.log(e.statusText),"abort"!==e.statusText&&console.log("AJAX request aborted")}})}else e("#is-ajax-search-result-"+h).hide(),l.removeClass("processing")}e("body").on("mouseover",".is-ajax-search-tags > div, .is-ajax-search-categories > div, .is-ajax-search-post.is-product",function(t){var a=e(window).outerWidth();if(parseInt(a)>=910){var i=e(this).attr("data-id")||"",o=e(t.target).closest(".is-ajax-search-result").attr("id").split(/[-]+/).pop(),s=e("#is-ajax-search-result-"+o).offset(),n=e(".is-form-id-"+o).attr("data-result-box-max-height")||"400";e("#is-ajax-search-details-"+o).css({top:s.top+"px"}),e("#is-ajax-search-details-"+o+" .is-ajax-search-items").css("height",n+"px"),e("#is-ajax-search-details-"+o+" .mCSB_container > div").css("min-height",n+"px"),e(this).parents("div").hasClass("is-ajax-search-tags")&&e("#is-ajax-search-details-"+o+" .is-ajax-search-tags-details").length&&e("#is-ajax-search-details-"+o+' .is-ajax-search-tags-details > div[data-id="'+i+'"]').length?(e("#is-ajax-search-details-"+o+" .is-ajax-search-tags-details, #is-ajax-search-details-"+o).show(),e("#is-ajax-search-details-"+o+" .is-ajax-search-categories-details, #is-ajax-search-details-"+o+" .is-ajax-search-posts-details").hide(),e("#is-ajax-search-details-"+o+" .is-ajax-search-tags-details").find(" > div ").hide(),e("#is-ajax-search-details-"+o+" .is-ajax-search-tags-details").find(' > div[data-id="'+i+'"] ').show()):e(this).parents("div").hasClass("is-ajax-search-categories")&&e("#is-ajax-search-details-"+o+" .is-ajax-search-categories-details").length&&e("#is-ajax-search-details-"+o+' .is-ajax-search-categories-details > div[data-id="'+i+'"]').length?(e("#is-ajax-search-details-"+o+" .is-ajax-search-categories-details, #is-ajax-search-details-"+o).show(),e("#is-ajax-search-details-"+o+" .is-ajax-search-tags-details, #is-ajax-search-details-"+o+" .is-ajax-search-posts-details").hide(),e("#is-ajax-search-details-"+o+" .is-ajax-search-categories-details").find("> div ").hide(),e("#is-ajax-search-details-"+o+" .is-ajax-search-categories-details").find('> div[data-id="'+i+'"] ').show()):e(this).parents("div").hasClass("is-ajax-search-posts")&&(e("#is-ajax-search-details-"+o+" .is-ajax-search-tags-details, #is-ajax-search-details-"+o+" .is-ajax-search-categories-details").hide(),e("#is-ajax-search-details-"+o+" .is-ajax-search-posts-details").find("> div ").hide(),e("#is-ajax-search-details-"+o+" .is-ajax-search-posts-details, #is-ajax-search-details-"+o).show(),e("#is-ajax-search-details-"+o+" .is-ajax-search-posts-details").find('> div[data-id="'+i+'"] ').show())}}),e(".is-ajax-search .is-search-input").on("focusin, click",function(t){if(s=e(this).closest("form"),""!==e(this).val()&&0===e(t.target).closest("form.processing").length){var a=e(t.target).closest(".is-ajax-search").attr("data-form-id"),i=e(t.target).closest(".is-ajax-search").outerWidth();i=i<500?500:i,e("#is-ajax-search-result-"+a).css({width:i-10+"px"});var o=e(t.target).closest(".is-ajax-search").offset(),n=e(t.target).closest(".is-ajax-search").innerHeight(),r=e("#is-ajax-search-result-"+a).outerWidth(),l=e(window).width(),c=0;if(o.left+r>l&&(c=o.left+r-l),e("#is-ajax-search-result-"+a).css({top:o.top+n+"px",left:o.left-c+"px"}),e(".is-ajax-search-result, .is-ajax-search-details").hide(),e("#is-ajax-search-result-"+a).show(),0!==e("#is-ajax-search-details-"+a).length){var d=e("#is-ajax-search-details-"+a).outerWidth(),h=o.left+r;if(o.left+r+d>l+30){var u=o.left-(c+d);u>-30&&(h=u)}e("#is-ajax-search-details-"+a).css({top:o.top+n+"px",left:h+"px"})}}}),e("body").on("mousedown",function(t){0===t.button&&"s"!==e(t.target).attr("name")&&0===e(t.target).closest(".is-ajax-search-result").length&&0===e(t.target).closest(".is-ajax-search-details").length&&(e(".is-ajax-search-result, .is-ajax-search-details").hide(),s=!1)}),e(".is-disable-submit .is-search-submit").on("click",function(t){return e(this).parent().find(".is-search-input").trigger("keyup"),t.stopPropagation(),t.preventDefault(),!1}),e("form.is-disable-submit").on("submit",function(t){return e(this).find(".is-search-input").trigger("keyup"),t.stopPropagation(),t.preventDefault(),!1}),e(document).on("click",".is-show-more-results",function(t){var a=e(t.target).closest(".is-ajax-search-result").attr("id").split(/[-]+/).pop();e(this).hasClass("redirect-tosr")?e(".is-form-id-"+a).submit():(e(this).find(".is-show-more-results-text").hide(),e(this).find(".is-load-more-image").show(),n(e(".is-form-id-"+a+" .is-search-input"),e(this).attr("data-page")||""))}),e(window).on("resize scroll",function(){if(e(s).hasClass("is-ajax-search")&&""!==e(s).find(".is-search-input").val()){var t=e(s).attr("data-form-id");if(0!==e("#is-ajax-search-result-"+t).length){var a=e(s).offset(),i=e(s).innerHeight(),o=e("#is-ajax-search-result-"+t).outerWidth(),n=e(window).width(),r=0;if(a.left+o>n&&(r=a.left+o-n),e("#is-ajax-search-result-"+t).css({top:a.top+i+"px",left:a.left-r+"px"}),e("#is-ajax-search-result-"+t).show(),0!==e("#is-ajax-search-details-"+t).length){var l=e("#is-ajax-search-details-"+t).outerWidth(),c=a.left+o;if(a.left+o+l>n+30){var d=a.left-(r+l);d>-30&&(c=d)}e("#is-ajax-search-details-"+t).css({top:a.top+i+"px",left:c+"px"})}}}}),e(".is-ajax-search .is-search-input").on("paste",function(){e(this).trigger("keyup")}),e(".is-ajax-search").each(function(t,i){e(i).find(".is-search-input").on("keyup",function(t){if(s=e(this).closest("form"),32!==t.which){var i=this;window.clearTimeout(a),a=window.setTimeout(function(){a=null,n(i)},500)}})})})}(jQuery),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e:e(jQuery)}(function(e){function t(t){var n=t||window.event,r=l.call(arguments,1),c=0,h=0,u=0,f=0,m=0,p=0;if((t=e.event.fix(n)).type="mousewheel","detail"in n&&(u=-1*n.detail),"wheelDelta"in n&&(u=n.wheelDelta),"wheelDeltaY"in n&&(u=n.wheelDeltaY),"wheelDeltaX"in n&&(h=-1*n.wheelDeltaX),"axis"in n&&n.axis===n.HORIZONTAL_AXIS&&(h=-1*u,u=0),c=0===u?h:u,"deltaY"in n&&(c=u=-1*n.deltaY),"deltaX"in n&&(h=n.deltaX,0===u&&(c=-1*h)),0!==u||0!==h){if(1===n.deltaMode){var g=e.data(this,"mousewheel-line-height");c*=g,u*=g,h*=g}else if(2===n.deltaMode){var x=e.data(this,"mousewheel-page-height");c*=x,u*=x,h*=x}if(f=Math.max(Math.abs(u),Math.abs(h)),(!s||s>f)&&(s=f,i(n,f)&&(s/=40)),i(n,f)&&(c/=40,h/=40,u/=40),c=Math[c>=1?"floor":"ceil"](c/s),h=Math[h>=1?"floor":"ceil"](h/s),u=Math[u>=1?"floor":"ceil"](u/s),d.settings.normalizeOffset&&this.getBoundingClientRect){var v=this.getBoundingClientRect();m=t.clientX-v.left,p=t.clientY-v.top}return t.deltaX=h,t.deltaY=u,t.deltaFactor=s,t.offsetX=m,t.offsetY=p,t.deltaMode=0,r.unshift(t,c,h,u),o&&clearTimeout(o),o=setTimeout(a,200),(e.event.dispatch||e.event.handle).apply(this,r)}}function a(){s=null}function i(e,t){return d.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120==0}var o,s,n=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],r="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],l=Array.prototype.slice;if(e.event.fixHooks)for(var c=n.length;c;)e.event.fixHooks[n[--c]]=e.event.mouseHooks;var d=e.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var a=r.length;a;)this.addEventListener(r[--a],t,!1);else this.onmousewheel=t;e.data(this,"mousewheel-line-height",d.getLineHeight(this)),e.data(this,"mousewheel-page-height",d.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var a=r.length;a;)this.removeEventListener(r[--a],t,!1);else this.onmousewheel=null;e.removeData(this,"mousewheel-line-height"),e.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var a=e(t),i=a["offsetParent"in e.fn?"offsetParent":"parent"]();return i.length||(i=e("body")),parseInt(i.css("fontSize"),10)||parseInt(a.css("fontSize"),10)||16},getPageHeight:function(t){return e(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};e.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})}),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e:e(jQuery)}(function(e){function t(t){var n=t||window.event,r=l.call(arguments,1),c=0,h=0,u=0,f=0,m=0,p=0;if((t=e.event.fix(n)).type="mousewheel","detail"in n&&(u=-1*n.detail),"wheelDelta"in n&&(u=n.wheelDelta),"wheelDeltaY"in n&&(u=n.wheelDeltaY),"wheelDeltaX"in n&&(h=-1*n.wheelDeltaX),"axis"in n&&n.axis===n.HORIZONTAL_AXIS&&(h=-1*u,u=0),c=0===u?h:u,"deltaY"in n&&(c=u=-1*n.deltaY),"deltaX"in n&&(h=n.deltaX,0===u&&(c=-1*h)),0!==u||0!==h){if(1===n.deltaMode){var g=e.data(this,"mousewheel-line-height");c*=g,u*=g,h*=g}else if(2===n.deltaMode){var x=e.data(this,"mousewheel-page-height");c*=x,u*=x,h*=x}if(f=Math.max(Math.abs(u),Math.abs(h)),(!s||s>f)&&(s=f,i(n,f)&&(s/=40)),i(n,f)&&(c/=40,h/=40,u/=40),c=Math[c>=1?"floor":"ceil"](c/s),h=Math[h>=1?"floor":"ceil"](h/s),u=Math[u>=1?"floor":"ceil"](u/s),d.settings.normalizeOffset&&this.getBoundingClientRect){var v=this.getBoundingClientRect();m=t.clientX-v.left,p=t.clientY-v.top}return t.deltaX=h,t.deltaY=u,t.deltaFactor=s,t.offsetX=m,t.offsetY=p,t.deltaMode=0,r.unshift(t,c,h,u),o&&clearTimeout(o),o=setTimeout(a,200),(e.event.dispatch||e.event.handle).apply(this,r)}}function a(){s=null}function i(e,t){return d.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120==0}var o,s,n=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],r="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],l=Array.prototype.slice;if(e.event.fixHooks)for(var c=n.length;c;)e.event.fixHooks[n[--c]]=e.event.mouseHooks;var d=e.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var a=r.length;a;)this.addEventListener(r[--a],t,!1);else this.onmousewheel=t;e.data(this,"mousewheel-line-height",d.getLineHeight(this)),e.data(this,"mousewheel-page-height",d.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var a=r.length;a;)this.removeEventListener(r[--a],t,!1);else this.onmousewheel=null;e.removeData(this,"mousewheel-line-height"),e.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var a=e(t),i=a["offsetParent"in e.fn?"offsetParent":"parent"]();return i.length||(i=e("body")),parseInt(i.css("fontSize"),10)||parseInt(a.css("fontSize"),10)||16},getPageHeight:function(t){return e(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};e.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})}),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"undefined"!=typeof module&&module.exports?module.exports=e:e(jQuery,window,document)}(function(e){var t,a,i;t="function"==typeof define&&define.amd,a="undefined"!=typeof module&&module.exports,i="https:"==document.location.protocol?"https:":"http:",t||(a?require("jquery-mousewheel")(e):e.event.special.mousewheel||e("head").append(decodeURI("%3Cscript src="+i+"//cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.13/jquery.mousewheel.min.js%3E%3C/script%3E"))),function(){var t,a="mCustomScrollbar",i="mCS",o=".mCustomScrollbar",s={setTop:0,setLeft:0,axis:"y",scrollbarPosition:"inside",scrollInertia:950,autoDraggerLength:!0,alwaysShowScrollbar:0,snapOffset:0,mouseWheel:{enable:!0,scrollAmount:"auto",axis:"y",deltaFactor:"auto",disableOver:["select","option","keygen","datalist","textarea"]},scrollButtons:{scrollType:"stepless",scrollAmount:"auto"},keyboard:{enable:!0,scrollType:"stepless",scrollAmount:"auto"},contentTouchScroll:25,documentTouchScroll:!0,advanced:{autoScrollOnFocus:"input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']",updateOnContentResize:!0,updateOnImageLoad:"auto",autoUpdateTimeout:60},theme:"light",callbacks:{onTotalScrollOffset:0,onTotalScrollBackOffset:0,alwaysTriggerOffsets:!0}},n=0,r={},l=window.attachEvent&&!window.addEventListener?1:0,c=!1,d=["mCSB_dragger_onDrag","mCSB_scrollTools_onDrag","mCS_img_loaded","mCS_disabled","mCS_destroyed","mCS_no_scrollbar","mCS-autoHide","mCS-dir-rtl","mCS_no_scrollbar_y","mCS_no_scrollbar_x","mCS_y_hidden","mCS_x_hidden","mCSB_draggerContainer","mCSB_buttonUp","mCSB_buttonDown","mCSB_buttonLeft","mCSB_buttonRight"],h={init:function(t){var t=e.extend(!0,{},s,t),a=u.call(this);if(t.live){var l=t.liveSelector||this.selector||o,c=e(l);if("off"===t.live)return void m(l);r[l]=setTimeout(function(){c.mCustomScrollbar(t),"once"===t.live&&c.length&&m(l)},500)}else m(l);return t.setWidth=t.set_width?t.set_width:t.setWidth,t.setHeight=t.set_height?t.set_height:t.setHeight,t.axis=t.horizontalScroll?"x":p(t.axis),t.scrollInertia=t.scrollInertia>0&&t.scrollInertia<17?17:t.scrollInertia,"object"!=typeof t.mouseWheel&&1==t.mouseWheel&&(t.mouseWheel={enable:!0,scrollAmount:"auto",axis:"y",preventDefault:!1,deltaFactor:"auto",normalizeDelta:!1,invert:!1}),t.mouseWheel.scrollAmount=t.mouseWheelPixels?t.mouseWheelPixels:t.mouseWheel.scrollAmount,t.mouseWheel.normalizeDelta=t.advanced.normalizeMouseWheelDelta?t.advanced.normalizeMouseWheelDelta:t.mouseWheel.normalizeDelta,t.scrollButtons.scrollType=g(t.scrollButtons.scrollType),f(t),e(a).each(function(){var a=e(this);if(!a.data(i)){a.data(i,{idx:++n,opt:t,scrollRatio:{y:null,x:null},overflowed:null,contentReset:{y:null,x:null},bindEvents:!1,tweenRunning:!1,sequential:{},langDir:a.css("direction"),cbOffsets:null,trigger:null,poll:{size:{o:0,n:0},img:{o:0,n:0},change:{o:0,n:0}}});var o=a.data(i),s=o.opt,r=a.data("mcs-axis"),l=a.data("mcs-scrollbar-position"),c=a.data("mcs-theme");r&&(s.axis=r),l&&(s.scrollbarPosition=l),c&&(s.theme=c,f(s)),x.call(this),o&&s.callbacks.onCreate&&"function"==typeof s.callbacks.onCreate&&s.callbacks.onCreate.call(this),e("#mCSB_"+o.idx+"_container img:not(."+d[2]+")").addClass(d[2]),h.update.call(null,a)}})},update:function(t,a){var o=t||u.call(this);return e(o).each(function(){var t=e(this);if(t.data(i)){var o=t.data(i),s=o.opt,n=e("#mCSB_"+o.idx+"_container"),r=e("#mCSB_"+o.idx),l=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")];if(!n.length)return;o.tweenRunning&&V(t),a&&o&&s.callbacks.onBeforeUpdate&&"function"==typeof s.callbacks.onBeforeUpdate&&s.callbacks.onBeforeUpdate.call(this),t.hasClass(d[3])&&t.removeClass(d[3]),t.hasClass(d[4])&&t.removeClass(d[4]),r.css("max-height","none"),r.height()!==t.height()&&r.css("max-height",t.height()),w.call(this),"y"===s.axis||s.advanced.autoExpandHorizontalScroll||n.css("width",v(n)),o.overflowed=C.call(this),M.call(this),s.autoDraggerLength&&S.call(this),b.call(this),B.call(this);var c=[Math.abs(n[0].offsetTop),Math.abs(n[0].offsetLeft)];"x"!==s.axis&&(o.overflowed[0]?l[0].height()>l[0].parent().height()?j.call(this):(Q(t,c[0].toString(),{dir:"y",dur:0,overwrite:"none"}),o.contentReset.y=null):(j.call(this),"y"===s.axis?T.call(this):"yx"===s.axis&&o.overflowed[1]&&Q(t,c[1].toString(),{dir:"x",dur:0,overwrite:"none"}))),"y"!==s.axis&&(o.overflowed[1]?l[1].width()>l[1].parent().width()?j.call(this):(Q(t,c[1].toString(),{dir:"x",dur:0,overwrite:"none"}),o.contentReset.x=null):(j.call(this),"x"===s.axis?T.call(this):"yx"===s.axis&&o.overflowed[0]&&Q(t,c[0].toString(),{dir:"y",dur:0,overwrite:"none"}))),a&&o&&(2===a&&s.callbacks.onImageLoad&&"function"==typeof s.callbacks.onImageLoad?s.callbacks.onImageLoad.call(this):3===a&&s.callbacks.onSelectorChange&&"function"==typeof s.callbacks.onSelectorChange?s.callbacks.onSelectorChange.call(this):s.callbacks.onUpdate&&"function"==typeof s.callbacks.onUpdate&&s.callbacks.onUpdate.call(this)),N.call(this)}})},scrollTo:function(t,a){if(void 0!==t&&null!=t){var o=u.call(this);return e(o).each(function(){var o=e(this);if(o.data(i)){var s=o.data(i),n=s.opt,r={trigger:"external",scrollInertia:n.scrollInertia,scrollEasing:"mcsEaseInOut",moveDragger:!1,timeout:60,callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},l=e.extend(!0,{},r,a),c=F.call(this,t),d=l.scrollInertia>0&&l.scrollInertia<17?17:l.scrollInertia;c[0]=q.call(this,c[0],"y"),c[1]=q.call(this,c[1],"x"),l.moveDragger&&(c[0]*=s.scrollRatio.y,c[1]*=s.scrollRatio.x),l.dur=ie()?0:d,setTimeout(function(){null!==c[0]&&void 0!==c[0]&&"x"!==n.axis&&s.overflowed[0]&&(l.dir="y",l.overwrite="all",Q(o,c[0].toString(),l)),null!==c[1]&&void 0!==c[1]&&"y"!==n.axis&&s.overflowed[1]&&(l.dir="x",l.overwrite="none",Q(o,c[1].toString(),l))},l.timeout)}})}},stop:function(){var t=u.call(this);return e(t).each(function(){var t=e(this);t.data(i)&&V(t)})},disable:function(t){var a=u.call(this);return e(a).each(function(){var a=e(this);a.data(i)&&(a.data(i),N.call(this,"remove"),T.call(this),t&&j.call(this),M.call(this,!0),a.addClass(d[3]))})},destroy:function(){var t=u.call(this);return e(t).each(function(){var o=e(this);if(o.data(i)){var s=o.data(i),n=s.opt,r=e("#mCSB_"+s.idx),l=e("#mCSB_"+s.idx+"_container"),c=e(".mCSB_"+s.idx+"_scrollbar");n.live&&m(n.liveSelector||e(t).selector),N.call(this,"remove"),T.call(this),j.call(this),o.removeData(i),K(this,"mcs"),c.remove(),l.find("img."+d[2]).removeClass(d[2]),r.replaceWith(l.contents()),o.removeClass(a+" _"+i+"_"+s.idx+" "+d[6]+" "+d[7]+" "+d[5]+" "+d[3]).addClass(d[4])}})}},u=function(){return"object"!=typeof e(this)||e(this).length<1?o:this},f=function(t){t.autoDraggerLength=!(e.inArray(t.theme,["rounded","rounded-dark","rounded-dots","rounded-dots-dark"])>-1)&&t.autoDraggerLength,t.autoExpandScrollbar=!(e.inArray(t.theme,["rounded-dots","rounded-dots-dark","3d","3d-dark","3d-thick","3d-thick-dark","inset","inset-dark","inset-2","inset-2-dark","inset-3","inset-3-dark"])>-1)&&t.autoExpandScrollbar,t.scrollButtons.enable=!(e.inArray(t.theme,["minimal","minimal-dark"])>-1)&&t.scrollButtons.enable,t.autoHideScrollbar=e.inArray(t.theme,["minimal","minimal-dark"])>-1||t.autoHideScrollbar,t.scrollbarPosition=e.inArray(t.theme,["minimal","minimal-dark"])>-1?"outside":t.scrollbarPosition},m=function(e){r[e]&&(clearTimeout(r[e]),K(r,e))},p=function(e){return"yx"===e||"xy"===e||"auto"===e?"yx":"x"===e||"horizontal"===e?"x":"y"},g=function(e){return"stepped"===e||"pixels"===e||"step"===e||"click"===e?"stepped":"stepless"},x=function(){var t=e(this),o=t.data(i),s=o.opt,n=s.autoExpandScrollbar?" "+d[1]+"_expand":"",r=["<div id='mCSB_"+o.idx+"_scrollbar_vertical' class='mCSB_scrollTools mCSB_"+o.idx+"_scrollbar mCS-"+s.theme+" mCSB_scrollTools_vertical"+n+"'><div class='"+d[12]+"'><div id='mCSB_"+o.idx+"_dragger_vertical' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>","<div id='mCSB_"+o.idx+"_scrollbar_horizontal' class='mCSB_scrollTools mCSB_"+o.idx+"_scrollbar mCS-"+s.theme+" mCSB_scrollTools_horizontal"+n+"'><div class='"+d[12]+"'><div id='mCSB_"+o.idx+"_dragger_horizontal' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>"],l="yx"===s.axis?"mCSB_vertical_horizontal":"x"===s.axis?"mCSB_horizontal":"mCSB_vertical",c="yx"===s.axis?r[0]+r[1]:"x"===s.axis?r[1]:r[0],h="yx"===s.axis?"<div id='mCSB_"+o.idx+"_container_wrapper' class='mCSB_container_wrapper' />":"",u=s.autoHideScrollbar?" "+d[6]:"",f="x"!==s.axis&&"rtl"===o.langDir?" "+d[7]:"";s.setWidth&&t.css("width",s.setWidth),s.setHeight&&t.css("height",s.setHeight),s.setLeft="y"!==s.axis&&"rtl"===o.langDir?"989999px":s.setLeft,t.addClass(a+" _"+i+"_"+o.idx+u+f).wrapInner("<div id='mCSB_"+o.idx+"' class='mCustomScrollBox mCS-"+s.theme+" "+l+"'><div id='mCSB_"+o.idx+"_container' class='mCSB_container' style='position:relative; top:"+s.setTop+"; left:"+s.setLeft+";' dir='"+o.langDir+"' /></div>");var m=e("#mCSB_"+o.idx),p=e("#mCSB_"+o.idx+"_container");"y"===s.axis||s.advanced.autoExpandHorizontalScroll||p.css("width",v(p)),"outside"===s.scrollbarPosition?("static"===t.css("position")&&t.css("position","relative"),t.css("overflow","visible"),m.addClass("mCSB_outside").after(c)):(m.addClass("mCSB_inside").append(c),p.wrap(h)),_.call(this);var g=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")];g[0].css("min-height",g[0].height()),g[1].css("min-width",g[1].width())},v=function(t){var a=[t[0].scrollWidth,Math.max.apply(Math,t.children().map(function(){return e(this).outerWidth(!0)}).get())],i=t.parent().width();return a[0]>i?a[0]:a[1]>i?a[1]:"100%"},w=function(){var t=e(this),a=t.data(i),o=a.opt,s=e("#mCSB_"+a.idx+"_container");if(o.advanced.autoExpandHorizontalScroll&&"y"!==o.axis){s.css({width:"auto","min-width":0,"overflow-x":"scroll"});var n=Math.ceil(s[0].scrollWidth);3===o.advanced.autoExpandHorizontalScroll||2!==o.advanced.autoExpandHorizontalScroll&&n>s.parent().width()?s.css({width:n,"min-width":"100%","overflow-x":"inherit"}):s.css({"overflow-x":"inherit",position:"absolute"}).wrap("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />").css({width:Math.ceil(s[0].getBoundingClientRect().right+.4)-Math.floor(s[0].getBoundingClientRect().left),"min-width":"100%",position:"relative"}).unwrap()}},_=function(){var t=e(this),a=t.data(i),o=a.opt,s=e(".mCSB_"+a.idx+"_scrollbar:first"),n=te(o.scrollButtons.tabindex)?"tabindex='"+o.scrollButtons.tabindex+"'":"",r=["<a href='#' class='"+d[13]+"' "+n+" />","<a href='#' class='"+d[14]+"' "+n+" />","<a href='#' class='"+d[15]+"' "+n+" />","<a href='#' class='"+d[16]+"' "+n+" />"],l=["x"===o.axis?r[2]:r[0],"x"===o.axis?r[3]:r[1],r[2],r[3]];o.scrollButtons.enable&&s.prepend(l[0]).append(l[1]).next(".mCSB_scrollTools").prepend(l[2]).append(l[3])},S=function(){var t=e(this),a=t.data(i),o=e("#mCSB_"+a.idx),s=e("#mCSB_"+a.idx+"_container"),n=[e("#mCSB_"+a.idx+"_dragger_vertical"),e("#mCSB_"+a.idx+"_dragger_horizontal")],r=[o.height()/s.outerHeight(!1),o.width()/s.outerWidth(!1)],c=[parseInt(n[0].css("min-height")),Math.round(r[0]*n[0].parent().height()),parseInt(n[1].css("min-width")),Math.round(r[1]*n[1].parent().width())],d=l&&c[1]<c[0]?c[0]:c[1],h=l&&c[3]<c[2]?c[2]:c[3];n[0].css({height:d,"max-height":n[0].parent().height()-10}).find(".mCSB_dragger_bar").css({"line-height":c[0]+"px"}),n[1].css({width:h,"max-width":n[1].parent().width()-10})},b=function(){var t=e(this),a=t.data(i),o=e("#mCSB_"+a.idx),s=e("#mCSB_"+a.idx+"_container"),n=[e("#mCSB_"+a.idx+"_dragger_vertical"),e("#mCSB_"+a.idx+"_dragger_horizontal")],r=[s.outerHeight(!1)-o.height(),s.outerWidth(!1)-o.width()],l=[r[0]/(n[0].parent().height()-n[0].height()),r[1]/(n[1].parent().width()-n[1].width())];a.scrollRatio={y:l[0],x:l[1]}},y=function(e,t,a){var i=a?d[0]+"_expanded":"",o=e.closest(".mCSB_scrollTools");"active"===t?(e.toggleClass(d[0]+" "+i),o.toggleClass(d[1]),e[0]._draggable=e[0]._draggable?0:1):e[0]._draggable||("hide"===t?(e.removeClass(d[0]),o.removeClass(d[1])):(e.addClass(d[0]),o.addClass(d[1])))},C=function(){var t=e(this),a=t.data(i),o=e("#mCSB_"+a.idx),s=e("#mCSB_"+a.idx+"_container"),n=null==a.overflowed?s.height():s.outerHeight(!1),r=null==a.overflowed?s.width():s.outerWidth(!1),l=s[0].scrollHeight,c=s[0].scrollWidth;return l>n&&(n=l),c>r&&(r=c),[n>o.height(),r>o.width()]},j=function(){var t=e(this),a=t.data(i),o=a.opt,s=e("#mCSB_"+a.idx),n=e("#mCSB_"+a.idx+"_container"),r=[e("#mCSB_"+a.idx+"_dragger_vertical"),e("#mCSB_"+a.idx+"_dragger_horizontal")];if(V(t),("x"!==o.axis&&!a.overflowed[0]||"y"===o.axis&&a.overflowed[0])&&(r[0].add(n).css("top",0),Q(t,"_resetY")),"y"!==o.axis&&!a.overflowed[1]||"x"===o.axis&&a.overflowed[1]){var l=dx=0;"rtl"===a.langDir&&(l=s.width()-n.outerWidth(!1),dx=Math.abs(l/a.scrollRatio.x)),n.css("left",l),r[1].css("left",dx),Q(t,"_resetX")}},B=function(){var t,a=e(this),o=a.data(i),s=o.opt;o.bindEvents||(D.call(this),s.contentTouchScroll&&O.call(this),I.call(this),s.mouseWheel.enable&&function i(){t=setTimeout(function(){e.event.special.mousewheel?(clearTimeout(t),E.call(a[0])):i()},100)}(),z.call(this),P.call(this),s.advanced.autoScrollOnFocus&&H.call(this),s.scrollButtons.enable&&X.call(this),s.keyboard.enable&&Y.call(this),o.bindEvents=!0)},T=function(){var t=e(this),a=t.data(i),o=a.opt,s=i+"_"+a.idx,n=".mCSB_"+a.idx+"_scrollbar",r=e("#mCSB_"+a.idx+",#mCSB_"+a.idx+"_container,#mCSB_"+a.idx+"_container_wrapper,"+n+" ."+d[12]+",#mCSB_"+a.idx+"_dragger_vertical,#mCSB_"+a.idx+"_dragger_horizontal,"+n+">a"),l=e("#mCSB_"+a.idx+"_container");o.advanced.releaseDraggableSelectors&&r.add(e(o.advanced.releaseDraggableSelectors)),o.advanced.extraDraggableSelectors&&r.add(e(o.advanced.extraDraggableSelectors)),a.bindEvents&&(e(document).add(e(!L()||top.document)).unbind("."+s),r.each(function(){e(this).unbind("."+s)}),clearTimeout(t[0]._focusTimeout),K(t[0],"_focusTimeout"),clearTimeout(a.sequential.step),K(a.sequential,"step"),clearTimeout(l[0].onCompleteTimeout),K(l[0],"onCompleteTimeout"),a.bindEvents=!1)},M=function(t){var a=e(this),o=a.data(i),s=o.opt,n=e("#mCSB_"+o.idx+"_container_wrapper"),r=n.length?n:e("#mCSB_"+o.idx+"_container"),l=[e("#mCSB_"+o.idx+"_scrollbar_vertical"),e("#mCSB_"+o.idx+"_scrollbar_horizontal")],c=[l[0].find(".mCSB_dragger"),l[1].find(".mCSB_dragger")];"x"!==s.axis&&(o.overflowed[0]&&!t?(l[0].add(c[0]).add(l[0].children("a")).css("display","block"),r.removeClass(d[8]+" "+d[10])):(s.alwaysShowScrollbar?(2!==s.alwaysShowScrollbar&&c[0].css("display","none"),r.removeClass(d[10])):(l[0].css("display","none"),r.addClass(d[10])),r.addClass(d[8]))),"y"!==s.axis&&(o.overflowed[1]&&!t?(l[1].add(c[1]).add(l[1].children("a")).css("display","block"),r.removeClass(d[9]+" "+d[11])):(s.alwaysShowScrollbar?(2!==s.alwaysShowScrollbar&&c[1].css("display","none"),r.removeClass(d[11])):(l[1].css("display","none"),r.addClass(d[11])),r.addClass(d[9]))),o.overflowed[0]||o.overflowed[1]?a.removeClass(d[5]):a.addClass(d[5])},k=function(t){var a=t.type,i=t.target.ownerDocument!==document&&null!==frameElement?[e(frameElement).offset().top,e(frameElement).offset().left]:null,o=L()&&t.target.ownerDocument!==top.document&&null!==frameElement?[e(t.view.frameElement).offset().top,e(t.view.frameElement).offset().left]:[0,0];switch(a){case"pointerdown":case"MSPointerDown":case"pointermove":case"MSPointerMove":case"pointerup":case"MSPointerUp":return i?[t.originalEvent.pageY-i[0]+o[0],t.originalEvent.pageX-i[1]+o[1],!1]:[t.originalEvent.pageY,t.originalEvent.pageX,!1];case"touchstart":case"touchmove":case"touchend":var s=t.originalEvent.touches[0]||t.originalEvent.changedTouches[0],n=t.originalEvent.touches.length||t.originalEvent.changedTouches.length;return t.target.ownerDocument!==document?[s.screenY,s.screenX,n>1]:[s.pageY,s.pageX,n>1];default:return i?[t.pageY-i[0]+o[0],t.pageX-i[1]+o[1],!1]:[t.pageY,t.pageX,!1]}},D=function(){function t(e,t,i,o){if(f[0].idleTimer=d.scrollInertia<233?250:0,a.attr("id")===u[1])var s="x",l=(a[0].offsetLeft-t+o)*r.scrollRatio.x;else var s="y",l=(a[0].offsetTop-e+i)*r.scrollRatio.y;Q(n,l.toString(),{dir:s,drag:!0})}var a,o,s,n=e(this),r=n.data(i),d=r.opt,h=i+"_"+r.idx,u=["mCSB_"+r.idx+"_dragger_vertical","mCSB_"+r.idx+"_dragger_horizontal"],f=e("#mCSB_"+r.idx+"_container"),m=e("#"+u[0]+",#"+u[1]),p=d.advanced.releaseDraggableSelectors?m.add(e(d.advanced.releaseDraggableSelectors)):m,g=d.advanced.extraDraggableSelectors?e(!L()||top.document).add(e(d.advanced.extraDraggableSelectors)):e(!L()||top.document);m.bind("contextmenu."+h,function(e){e.preventDefault()}).bind("mousedown."+h+" touchstart."+h+" pointerdown."+h+" MSPointerDown."+h,function(t){if(t.stopImmediatePropagation(),t.preventDefault(),$(t)){c=!0,l&&(document.onselectstart=function(){return!1}),R.call(f,!1),V(n);var i=(a=e(this)).offset(),r=k(t)[0]-i.top,h=k(t)[1]-i.left,u=a.height()+i.top,m=a.width()+i.left;u>r&&r>0&&m>h&&h>0&&(o=r,s=h),y(a,"active",d.autoExpandScrollbar)}}).bind("touchmove."+h,function(e){e.stopImmediatePropagation(),e.preventDefault();var i=a.offset(),n=k(e)[0]-i.top,r=k(e)[1]-i.left;t(o,s,n,r)}),e(document).add(g).bind("mousemove."+h+" pointermove."+h+" MSPointerMove."+h,function(e){if(a){var i=a.offset(),n=k(e)[0]-i.top,r=k(e)[1]-i.left;if(o===n&&s===r)return;t(o,s,n,r)}}).add(p).bind("mouseup."+h+" touchend."+h+" pointerup."+h+" MSPointerUp."+h,function(){a&&(y(a,"active",d.autoExpandScrollbar),a=null),c=!1,l&&(document.onselectstart=null),R.call(f,!0)})},O=function(){function a(e){if(!ee(e)||c||k(e)[2])t=0;else{t=1,b=0,y=0,d=1,C.removeClass("mCS_touch_action");var a=D.offset();h=k(e)[0]-a.top,u=k(e)[1]-a.left,A=[k(e)[0],k(e)[1]]}}function o(e){if(ee(e)&&!c&&!k(e)[2]&&(B.documentTouchScroll||e.preventDefault(),e.stopImmediatePropagation(),(!y||b)&&d)){g=J();var t=M.offset(),a=k(e)[0]-t.top,i=k(e)[1]-t.left,o="mcsLinearOut";if(I.push(a),E.push(i),A[2]=Math.abs(k(e)[0]-A[0]),A[3]=Math.abs(k(e)[1]-A[1]),j.overflowed[0])var s=O[0].parent().height()-O[0].height(),n=h-a>0&&a-h>-s*j.scrollRatio.y&&(2*A[3]<A[2]||"yx"===B.axis);if(j.overflowed[1])var r=O[1].parent().width()-O[1].width(),f=u-i>0&&i-u>-r*j.scrollRatio.x&&(2*A[2]<A[3]||"yx"===B.axis);n||f?(P||e.preventDefault(),b=1):(y=1,C.addClass("mCS_touch_action")),P&&e.preventDefault(),_="yx"===B.axis?[h-a,u-i]:"x"===B.axis?[null,u-i]:[h-a,null],D[0].idleTimer=250,j.overflowed[0]&&l(_[0],W,o,"y","all",!0),j.overflowed[1]&&l(_[1],W,o,"x",R,!0)}}function s(e){if(!ee(e)||c||k(e)[2])t=0;else{t=1,e.stopImmediatePropagation(),V(C),p=J();var a=M.offset();f=k(e)[0]-a.top,m=k(e)[1]-a.left,I=[],E=[]}}function n(e){if(ee(e)&&!c&&!k(e)[2]){d=0,e.stopImmediatePropagation(),b=0,y=0,x=J();var t=M.offset(),a=k(e)[0]-t.top,i=k(e)[1]-t.left;if(!(x-g>30)){var o="mcsEaseOut",s=2.5>(w=1e3/(x-p)),n=s?[I[I.length-2],E[E.length-2]]:[0,0];v=s?[a-n[0],i-n[1]]:[a-f,i-m];var h=[Math.abs(v[0]),Math.abs(v[1])];w=s?[Math.abs(v[0]/4),Math.abs(v[1]/4)]:[w,w];var u=[Math.abs(D[0].offsetTop)-v[0]*r(h[0]/w[0],w[0]),Math.abs(D[0].offsetLeft)-v[1]*r(h[1]/w[1],w[1])];_="yx"===B.axis?[u[0],u[1]]:"x"===B.axis?[null,u[1]]:[u[0],null],S=[4*h[0]+B.scrollInertia,4*h[1]+B.scrollInertia];var C=parseInt(B.contentTouchScroll)||0;_[0]=h[0]>C?_[0]:0,_[1]=h[1]>C?_[1]:0,j.overflowed[0]&&l(_[0],S[0],o,"y",R,!1),j.overflowed[1]&&l(_[1],S[1],o,"x",R,!1)}}}function r(e,t){var a=[1.5*t,2*t,t/1.5,t/2];return e>90?t>4?a[0]:a[3]:e>60?t>3?a[3]:a[2]:e>30?t>8?a[1]:t>6?a[0]:t>4?t:a[2]:t>8?t:a[3]}function l(e,t,a,i,o,s){e&&Q(C,e.toString(),{dur:t,scrollEasing:a,dir:i,overwrite:o,drag:s})}var d,h,u,f,m,p,g,x,v,w,_,S,b,y,C=e(this),j=C.data(i),B=j.opt,T=i+"_"+j.idx,M=e("#mCSB_"+j.idx),D=e("#mCSB_"+j.idx+"_container"),O=[e("#mCSB_"+j.idx+"_dragger_vertical"),e("#mCSB_"+j.idx+"_dragger_horizontal")],I=[],E=[],W=0,R="yx"===B.axis?"none":"all",A=[],z=D.find("iframe"),H=["touchstart."+T+" pointerdown."+T+" MSPointerDown."+T,"touchmove."+T+" pointermove."+T+" MSPointerMove."+T,"touchend."+T+" pointerup."+T+" MSPointerUp."+T],P=void 0!==document.body.style.touchAction&&""!==document.body.style.touchAction;D.bind(H[0],function(e){a(e)}).bind(H[1],function(e){o(e)}),M.bind(H[0],function(e){s(e)}).bind(H[2],function(e){n(e)}),z.length&&z.each(function(){e(this).bind("load",function(){L(this)&&e(this.contentDocument||this.contentWindow.document).bind(H[0],function(e){a(e),s(e)}).bind(H[1],function(e){o(e)}).bind(H[2],function(e){n(e)})})})},I=function(){function a(e,t,a){l.type=a&&o?"stepped":"stepless",l.scrollAmount=10,U(s,e,t,"mcsLinearOut",a?60:null)}var o,s=e(this),n=s.data(i),r=n.opt,l=n.sequential,d=i+"_"+n.idx,h=e("#mCSB_"+n.idx+"_container"),u=h.parent();h.bind("mousedown."+d,function(){t||o||(o=1,c=!0)}).add(document).bind("mousemove."+d,function(e){if(!t&&o&&(window.getSelection?window.getSelection().toString():document.selection&&"Control"!=document.selection.type&&document.selection.createRange().text)){var i=h.offset(),s=k(e)[0]-i.top+h[0].offsetTop,c=k(e)[1]-i.left+h[0].offsetLeft;s>0&&s<u.height()&&c>0&&c<u.width()?l.step&&a("off",null,"stepped"):("x"!==r.axis&&n.overflowed[0]&&(0>s?a("on",38):s>u.height()&&a("on",40)),"y"!==r.axis&&n.overflowed[1]&&(0>c?a("on",37):c>u.width()&&a("on",39)))}}).bind("mouseup."+d+" dragend."+d,function(){t||(o&&(o=0,a("off",null)),c=!1)})},E=function(){function t(t,i){if(V(a),!A(a,t.target)){var n="auto"!==s.mouseWheel.deltaFactor?parseInt(s.mouseWheel.deltaFactor):l&&t.deltaFactor<100?100:t.deltaFactor||100,d=s.scrollInertia;if("x"===s.axis||"x"===s.mouseWheel.axis)var h="x",u=[Math.round(n*o.scrollRatio.x),parseInt(s.mouseWheel.scrollAmount)],f="auto"!==s.mouseWheel.scrollAmount?u[1]:u[0]>=r.width()?.9*r.width():u[0],m=Math.abs(e("#mCSB_"+o.idx+"_container")[0].offsetLeft),p=c[1][0].offsetLeft,g=c[1].parent().width()-c[1].width(),x="y"===s.mouseWheel.axis?t.deltaY||i:t.deltaX;else var h="y",u=[Math.round(n*o.scrollRatio.y),parseInt(s.mouseWheel.scrollAmount)],f="auto"!==s.mouseWheel.scrollAmount?u[1]:u[0]>=r.height()?.9*r.height():u[0],m=Math.abs(e("#mCSB_"+o.idx+"_container")[0].offsetTop),p=c[0][0].offsetTop,g=c[0].parent().height()-c[0].height(),x=t.deltaY||i;"y"===h&&!o.overflowed[0]||"x"===h&&!o.overflowed[1]||((s.mouseWheel.invert||t.webkitDirectionInvertedFromDevice)&&(x=-x),s.mouseWheel.normalizeDelta&&(x=0>x?-1:1),(x>0&&0!==p||0>x&&p!==g||s.mouseWheel.preventDefault)&&(t.stopImmediatePropagation(),t.preventDefault()),t.deltaFactor<5&&!s.mouseWheel.normalizeDelta&&(f=t.deltaFactor,d=17),Q(a,(m-x*f).toString(),{dir:h,dur:d}))}}if(e(this).data(i)){var a=e(this),o=a.data(i),s=o.opt,n=i+"_"+o.idx,r=e("#mCSB_"+o.idx),c=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")],d=e("#mCSB_"+o.idx+"_container").find("iframe");d.length&&d.each(function(){e(this).bind("load",function(){L(this)&&e(this.contentDocument||this.contentWindow.document).bind("mousewheel."+n,function(e,a){t(e,a)})})}),r.bind("mousewheel."+n,function(e,a){t(e,a)})}},W=new Object,L=function(t){var a=!1,i=!1,o=null;if(void 0===t?i="#empty":void 0!==e(t).attr("id")&&(i=e(t).attr("id")),!1!==i&&void 0!==W[i])return W[i];if(t){try{var s=t.contentDocument||t.contentWindow.document;o=s.body.innerHTML}catch(e){}a=null!==o}else{try{var s=top.document;o=s.body.innerHTML}catch(e){}a=null!==o}return!1!==i&&(W[i]=a),a},R=function(e){var t=this.find("iframe");if(t.length){var a=e?"auto":"none";t.css("pointer-events",a)}},A=function(t,a){var o=a.nodeName.toLowerCase(),s=t.data(i).opt.mouseWheel.disableOver;return e.inArray(o,s)>-1&&!(e.inArray(o,["select","textarea"])>-1&&!e(a).is(":focus"))},z=function(){var t,a=e(this),o=a.data(i),s=i+"_"+o.idx,n=e("#mCSB_"+o.idx+"_container"),r=n.parent(),l=e(".mCSB_"+o.idx+"_scrollbar ."+d[12]);l.bind("mousedown."+s+" touchstart."+s+" pointerdown."+s+" MSPointerDown."+s,function(a){c=!0,e(a.target).hasClass("mCSB_dragger")||(t=1)}).bind("touchend."+s+" pointerup."+s+" MSPointerUp."+s,function(){c=!1}).bind("click."+s,function(i){if(t&&(t=0,e(i.target).hasClass(d[12])||e(i.target).hasClass("mCSB_draggerRail"))){V(a);var s=e(this),l=s.find(".mCSB_dragger");if(s.parent(".mCSB_scrollTools_horizontal").length>0){if(!o.overflowed[1])return;var c="x",h=i.pageX>l.offset().left?-1:1,u=Math.abs(n[0].offsetLeft)-h*(.9*r.width())}else{if(!o.overflowed[0])return;var c="y",h=i.pageY>l.offset().top?-1:1,u=Math.abs(n[0].offsetTop)-h*(.9*r.height())}Q(a,u.toString(),{dir:c,scrollEasing:"mcsEaseInOut"})}})},H=function(){var t=e(this),a=t.data(i),o=a.opt,s=i+"_"+a.idx,n=e("#mCSB_"+a.idx+"_container"),r=n.parent();n.bind("focusin."+s,function(){var a=e(document.activeElement),i=n.find(".mCustomScrollBox").length;a.is(o.advanced.autoScrollOnFocus)&&(V(t),clearTimeout(t[0]._focusTimeout),t[0]._focusTimer=i?17*i:0,t[0]._focusTimeout=setTimeout(function(){var e=[ae(a)[0],ae(a)[1]],i=[n[0].offsetTop,n[0].offsetLeft],s=[i[0]+e[0]>=0&&i[0]+e[0]<r.height()-a.outerHeight(!1),i[1]+e[1]>=0&&i[0]+e[1]<r.width()-a.outerWidth(!1)],l="yx"!==o.axis||s[0]||s[1]?"all":"none";"x"===o.axis||s[0]||Q(t,e[0].toString(),{dir:"y",scrollEasing:"mcsEaseInOut",overwrite:l,dur:0}),"y"===o.axis||s[1]||Q(t,e[1].toString(),{dir:"x",scrollEasing:"mcsEaseInOut",overwrite:l,dur:0})},t[0]._focusTimer))})},P=function(){var t=e(this),a=t.data(i),o=i+"_"+a.idx,s=e("#mCSB_"+a.idx+"_container").parent();s.bind("scroll."+o,function(){0===s.scrollTop()&&0===s.scrollLeft()||e(".mCSB_"+a.idx+"_scrollbar").css("visibility","hidden")})},X=function(){var t=e(this),a=t.data(i),o=a.opt,s=a.sequential,n=i+"_"+a.idx,r=".mCSB_"+a.idx+"_scrollbar",l=e(r+">a");l.bind("contextmenu."+n,function(e){e.preventDefault()}).bind("mousedown."+n+" touchstart."+n+" pointerdown."+n+" MSPointerDown."+n+" mouseup."+n+" touchend."+n+" pointerup."+n+" MSPointerUp."+n+" mouseout."+n+" pointerout."+n+" MSPointerOut."+n+" click."+n,function(i){function n(e,a){s.scrollAmount=o.scrollButtons.scrollAmount,U(t,e,a)}if(i.preventDefault(),$(i)){var r=e(this).attr("class");switch(s.type=o.scrollButtons.scrollType,i.type){case"mousedown":case"touchstart":case"pointerdown":case"MSPointerDown":if("stepped"===s.type)return;c=!0,a.tweenRunning=!1,n("on",r);break;case"mouseup":case"touchend":case"pointerup":case"MSPointerUp":case"mouseout":case"pointerout":case"MSPointerOut":if("stepped"===s.type)return;c=!1,s.dir&&n("off",r);break;case"click":if("stepped"!==s.type||a.tweenRunning)return;n("on",r)}}})},Y=function(){function t(t){function i(e,t){n.type=s.keyboard.scrollType,n.scrollAmount=s.keyboard.scrollAmount,"stepped"===n.type&&o.tweenRunning||U(a,e,t)}switch(t.type){case"blur":o.tweenRunning&&n.dir&&i("off",null);break;case"keydown":case"keyup":var r=t.keyCode?t.keyCode:t.which,l="on";if("x"!==s.axis&&(38===r||40===r)||"y"!==s.axis&&(37===r||39===r)){if((38===r||40===r)&&!o.overflowed[0]||(37===r||39===r)&&!o.overflowed[1])return;"keyup"===t.type&&(l="off"),e(document.activeElement).is(h)||(t.preventDefault(),t.stopImmediatePropagation(),i(l,r))}else if(33===r||34===r){if((o.overflowed[0]||o.overflowed[1])&&(t.preventDefault(),t.stopImmediatePropagation()),"keyup"===t.type){V(a);var u=34===r?-1:1;if("x"===s.axis||"yx"===s.axis&&o.overflowed[1]&&!o.overflowed[0])var f="x",m=Math.abs(c[0].offsetLeft)-u*(.9*d.width());else var f="y",m=Math.abs(c[0].offsetTop)-u*(.9*d.height());Q(a,m.toString(),{dir:f,scrollEasing:"mcsEaseInOut"})}}else if((35===r||36===r)&&!e(document.activeElement).is(h)&&((o.overflowed[0]||o.overflowed[1])&&(t.preventDefault(),t.stopImmediatePropagation()),"keyup"===t.type)){if("x"===s.axis||"yx"===s.axis&&o.overflowed[1]&&!o.overflowed[0])var f="x",m=35===r?Math.abs(d.width()-c.outerWidth(!1)):0;else var f="y",m=35===r?Math.abs(d.height()-c.outerHeight(!1)):0;Q(a,m.toString(),{dir:f,scrollEasing:"mcsEaseInOut"})}}}var a=e(this),o=a.data(i),s=o.opt,n=o.sequential,r=i+"_"+o.idx,l=e("#mCSB_"+o.idx),c=e("#mCSB_"+o.idx+"_container"),d=c.parent(),h="input,textarea,select,datalist,keygen,[contenteditable='true']",u=c.find("iframe"),f=["blur."+r+" keydown."+r+" keyup."+r];u.length&&u.each(function(){e(this).bind("load",function(){L(this)&&e(this.contentDocument||this.contentWindow.document).bind(f[0],function(e){t(e)})})}),l.attr("tabindex","0").bind(f[0],function(e){t(e)})},U=function(t,a,o,s,n){function r(e){c.snapAmount&&(h.scrollAmount=c.snapAmount instanceof Array?"x"===h.dir[0]?c.snapAmount[1]:c.snapAmount[0]:c.snapAmount);var a="stepped"!==h.type,i=n||(e?a?m/1.5:p:1e3/60),o=e?a?7.5:40:2.5,d=[Math.abs(u[0].offsetTop),Math.abs(u[0].offsetLeft)],f=[l.scrollRatio.y>10?10:l.scrollRatio.y,l.scrollRatio.x>10?10:l.scrollRatio.x],g="x"===h.dir[0]?d[1]+h.dir[1]*(f[1]*o):d[0]+h.dir[1]*(f[0]*o),x="x"===h.dir[0]?d[1]+h.dir[1]*parseInt(h.scrollAmount):d[0]+h.dir[1]*parseInt(h.scrollAmount),v="auto"!==h.scrollAmount?x:g,w=s||(e?a?"mcsLinearOut":"mcsEaseInOut":"mcsLinear"),_=!!e;return e&&17>i&&(v="x"===h.dir[0]?d[1]:d[0]),Q(t,v.toString(),{dir:h.dir[0],scrollEasing:w,dur:i,onComplete:_}),e?void(h.dir=!1):(clearTimeout(h.step),void(h.step=setTimeout(function(){r()},i)))}var l=t.data(i),c=l.opt,h=l.sequential,u=e("#mCSB_"+l.idx+"_container"),f="stepped"===h.type,m=c.scrollInertia<26?26:c.scrollInertia,p=c.scrollInertia<1?17:c.scrollInertia;switch(a){case"on":if(h.dir=[o===d[16]||o===d[15]||39===o||37===o?"x":"y",o===d[13]||o===d[15]||38===o||37===o?-1:1],V(t),te(o)&&"stepped"===h.type)return;r(f);break;case"off":clearTimeout(h.step),K(h,"step"),V(t),(f||l.tweenRunning&&h.dir)&&r(!0)}},F=function(t){var a=e(this).data(i).opt,o=[];return"function"==typeof t&&(t=t()),t instanceof Array?o=t.length>1?[t[0],t[1]]:"x"===a.axis?[null,t[0]]:[t[0],null]:(o[0]=t.y?t.y:t.x||"x"===a.axis?null:t,o[1]=t.x?t.x:t.y||"y"===a.axis?null:t),"function"==typeof o[0]&&(o[0]=o[0]()),"function"==typeof o[1]&&(o[1]=o[1]()),o},q=function(t,a){if(null!=t&&void 0!==t){var o=e(this),s=o.data(i),n=s.opt,r=e("#mCSB_"+s.idx+"_container"),l=r.parent(),c=typeof t;a||(a="x"===n.axis?"x":"y");var d="x"===a?r.outerWidth(!1)-l.width():r.outerHeight(!1)-l.height(),u="x"===a?r[0].offsetLeft:r[0].offsetTop,f="x"===a?"left":"top";switch(c){case"function":return t();case"object":var m=t.jquery?t:e(t);if(!m.length)return;return"x"===a?ae(m)[1]:ae(m)[0];case"string":case"number":if(te(t))return Math.abs(t);if(-1!==t.indexOf("%"))return Math.abs(d*parseInt(t)/100);if(-1!==t.indexOf("-="))return Math.abs(u-parseInt(t.split("-=")[1]));if(-1!==t.indexOf("+=")){var p=u+parseInt(t.split("+=")[1]);return p>=0?0:Math.abs(p)}if(-1!==t.indexOf("px")&&te(t.split("px")[0]))return Math.abs(t.split("px")[0]);if("top"===t||"left"===t)return 0;if("bottom"===t)return Math.abs(l.height()-r.outerHeight(!1));if("right"===t)return Math.abs(l.width()-r.outerWidth(!1));if("first"===t||"last"===t){var m=r.find(":"+t);return"x"===a?ae(m)[1]:ae(m)[0]}return e(t).length?"x"===a?ae(e(t))[1]:ae(e(t))[0]:(r.css(f,t),void h.update.call(null,o[0]))}}},N=function(t){function a(e){clearTimeout(r[0].autoUpdate),h.update.call(null,o[0],e)}var o=e(this),s=o.data(i),n=s.opt,r=e("#mCSB_"+s.idx+"_container");return t?(clearTimeout(r[0].autoUpdate),void K(r[0],"autoUpdate")):void function t(){return clearTimeout(r[0].autoUpdate),0===o.parents("html").length?void(o=null):void(r[0].autoUpdate=setTimeout(function(){return n.advanced.updateOnSelectorChange&&(s.poll.change.n=function(){!0===n.advanced.updateOnSelectorChange&&(n.advanced.updateOnSelectorChange="*");var e=0,t=r.find(n.advanced.updateOnSelectorChange);return n.advanced.updateOnSelectorChange&&t.length>0&&t.each(function(){e+=this.offsetHeight+this.offsetWidth}),e}(),s.poll.change.n!==s.poll.change.o)?(s.poll.change.o=s.poll.change.n,void a(3)):n.advanced.updateOnContentResize&&(s.poll.size.n=o[0].scrollHeight+o[0].scrollWidth+r[0].offsetHeight+o[0].offsetHeight+o[0].offsetWidth,s.poll.size.n!==s.poll.size.o)?(s.poll.size.o=s.poll.size.n,void a(1)):!n.advanced.updateOnImageLoad||"auto"===n.advanced.updateOnImageLoad&&"y"===n.axis||(s.poll.img.n=r.find("img").length,s.poll.img.n===s.poll.img.o)?void((n.advanced.updateOnSelectorChange||n.advanced.updateOnContentResize||n.advanced.updateOnImageLoad)&&t()):(s.poll.img.o=s.poll.img.n,void r.find("img").each(function(){!function(t){if(e(t).hasClass(d[2]))a();else{var i=new Image;i.onload=function(e,t){return function(){return t.apply(e,arguments)}}(i,function(){this.onload=null,e(t).addClass(d[2]),a(2)}),i.src=t.src}}(this)}))},n.advanced.autoUpdateTimeout))}()},V=function(t){var a=t.data(i),o=e("#mCSB_"+a.idx+"_container,#mCSB_"+a.idx+"_container_wrapper,#mCSB_"+a.idx+"_dragger_vertical,#mCSB_"+a.idx+"_dragger_horizontal");o.each(function(){G.call(this)})},Q=function(t,a,o){function s(e){return r&&l.callbacks[e]&&"function"==typeof l.callbacks[e]}function n(){var e=[u[0].offsetTop,u[0].offsetLeft],a=[x[0].offsetTop,x[0].offsetLeft],i=[u.outerHeight(!1),u.outerWidth(!1)],s=[h.height(),h.width()];t[0].mcs={content:u,top:e[0],left:e[1],draggerTop:a[0],draggerLeft:a[1],topPct:Math.round(100*Math.abs(e[0])/(Math.abs(i[0])-s[0])),leftPct:Math.round(100*Math.abs(e[1])/(Math.abs(i[1])-s[1])),direction:o.dir}}var r=t.data(i),l=r.opt,c={trigger:"internal",dir:"y",scrollEasing:"mcsEaseOut",drag:!1,dur:l.scrollInertia,overwrite:"all",callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},o=e.extend(c,o),d=[o.dur,o.drag?0:o.dur],h=e("#mCSB_"+r.idx),u=e("#mCSB_"+r.idx+"_container"),f=u.parent(),m=l.callbacks.onTotalScrollOffset?F.call(t,l.callbacks.onTotalScrollOffset):[0,0],p=l.callbacks.onTotalScrollBackOffset?F.call(t,l.callbacks.onTotalScrollBackOffset):[0,0];if(r.trigger=o.trigger,0===f.scrollTop()&&0===f.scrollLeft()||(e(".mCSB_"+r.idx+"_scrollbar").css("visibility","visible"),f.scrollTop(0).scrollLeft(0)),"_resetY"!==a||r.contentReset.y||(s("onOverflowYNone")&&l.callbacks.onOverflowYNone.call(t[0]),r.contentReset.y=1),"_resetX"!==a||r.contentReset.x||(s("onOverflowXNone")&&l.callbacks.onOverflowXNone.call(t[0]),r.contentReset.x=1),"_resetY"!==a&&"_resetX"!==a){if(!r.contentReset.y&&t[0].mcs||!r.overflowed[0]||(s("onOverflowY")&&l.callbacks.onOverflowY.call(t[0]),r.contentReset.x=null),!r.contentReset.x&&t[0].mcs||!r.overflowed[1]||(s("onOverflowX")&&l.callbacks.onOverflowX.call(t[0]),r.contentReset.x=null),l.snapAmount){var g=l.snapAmount instanceof Array?"x"===o.dir?l.snapAmount[1]:l.snapAmount[0]:l.snapAmount;a=function(e,t,a){return Math.round(e/t)*t-a}(a,g,l.snapOffset)}switch(o.dir){case"x":var x=e("#mCSB_"+r.idx+"_dragger_horizontal"),v="left",w=u[0].offsetLeft,_=[h.width()-u.outerWidth(!1),x.parent().width()-x.width()],S=[a,0===a?0:a/r.scrollRatio.x],b=m[1],C=p[1],j=b>0?b/r.scrollRatio.x:0,B=C>0?C/r.scrollRatio.x:0;break;case"y":var x=e("#mCSB_"+r.idx+"_dragger_vertical"),v="top",w=u[0].offsetTop,_=[h.height()-u.outerHeight(!1),x.parent().height()-x.height()],S=[a,0===a?0:a/r.scrollRatio.y],b=m[0],C=p[0],j=b>0?b/r.scrollRatio.y:0,B=C>0?C/r.scrollRatio.y:0}S[1]<0||0===S[0]&&0===S[1]?S=[0,0]:S[1]>=_[1]?S=[_[0],_[1]]:S[0]=-S[0],t[0].mcs||(n(),s("onInit")&&l.callbacks.onInit.call(t[0])),clearTimeout(u[0].onCompleteTimeout),Z(x[0],v,Math.round(S[1]),d[1],o.scrollEasing),!r.tweenRunning&&(0===w&&S[0]>=0||w===_[0]&&S[0]<=_[0])||Z(u[0],v,Math.round(S[0]),d[0],o.scrollEasing,o.overwrite,{onStart:function(){o.callbacks&&o.onStart&&!r.tweenRunning&&(s("onScrollStart")&&(n(),l.callbacks.onScrollStart.call(t[0])),r.tweenRunning=!0,y(x),r.cbOffsets=[l.callbacks.alwaysTriggerOffsets||w>=_[0]+b,l.callbacks.alwaysTriggerOffsets||-C>=w])},onUpdate:function(){o.callbacks&&o.onUpdate&&s("whileScrolling")&&(n(),l.callbacks.whileScrolling.call(t[0]))},onComplete:function(){if(o.callbacks&&o.onComplete){"yx"===l.axis&&clearTimeout(u[0].onCompleteTimeout);var e=u[0].idleTimer||0;u[0].onCompleteTimeout=setTimeout(function(){s("onScroll")&&(n(),l.callbacks.onScroll.call(t[0])),s("onTotalScroll")&&S[1]>=_[1]-j&&r.cbOffsets[0]&&(n(),l.callbacks.onTotalScroll.call(t[0])),s("onTotalScrollBack")&&S[1]<=B&&r.cbOffsets[1]&&(n(),l.callbacks.onTotalScrollBack.call(t[0])),r.tweenRunning=!1,u[0].idleTimer=0,y(x,"hide")},e)}}})}},Z=function(e,t,a,i,o,s,n){function r(){v.stop||(p||h.call(),p=J()-m,l(),p>=v.time&&(v.time=p>v.time?p+c-(p-v.time):p+c-1,v.time<p+1&&(v.time=p+1)),v.time<i?v.id=d(r):f.call())}function l(){i>0?(v.currVal=function(e,t,a,i,o){switch(o){case"linear":case"mcsLinear":return a*e/i+t;case"mcsLinearOut":return e/=i,e--,a*Math.sqrt(1-e*e)+t;case"easeInOutSmooth":return 1>(e/=i/2)?a/2*e*e+t:-a/2*(--e*(e-2)-1)+t;case"easeInOutStrong":return 1>(e/=i/2)?a/2*Math.pow(2,10*(e-1))+t:(e--,a/2*(2-Math.pow(2,-10*e))+t);case"easeInOut":case"mcsEaseInOut":return 1>(e/=i/2)?a/2*e*e*e+t:a/2*((e-=2)*e*e+2)+t;case"easeOutSmooth":return e/=i,-a*(--e*e*e*e-1)+t;case"easeOutStrong":return a*(1-Math.pow(2,-10*e/i))+t;case"easeOut":case"mcsEaseOut":default:var s=(e/=i)*e,n=s*e;return t+a*(.499999999999997*n*s+-2.5*s*s+5.5*n+-6.5*s+4*e)}}(v.time,g,w,i,o),x[t]=Math.round(v.currVal)+"px"):x[t]=a+"px",u.call()}e._mTween||(e._mTween={top:{},left:{}});var c,d,n=n||{},h=n.onStart||function(){},u=n.onUpdate||function(){},f=n.onComplete||function(){},m=J(),p=0,g=e.offsetTop,x=e.style,v=e._mTween[t];"left"===t&&(g=e.offsetLeft);var w=a-g;v.stop=0,"none"!==s&&null!=v.id&&(window.requestAnimationFrame?window.cancelAnimationFrame(v.id):clearTimeout(v.id),v.id=null),c=1e3/60,v.time=p+c,d=window.requestAnimationFrame?window.requestAnimationFrame:function(e){return l(),setTimeout(e,.01)},v.id=d(r)},J=function(){return window.performance&&window.performance.now?window.performance.now():window.performance&&window.performance.webkitNow?window.performance.webkitNow():Date.now?Date.now():(new Date).getTime()},G=function(){var e=this;e._mTween||(e._mTween={top:{},left:{}});for(var t=["top","left"],a=0;a<t.length;a++){var i=t[a];e._mTween[i].id&&(window.requestAnimationFrame?window.cancelAnimationFrame(e._mTween[i].id):clearTimeout(e._mTween[i].id),e._mTween[i].id=null,e._mTween[i].stop=1)}},K=function(e,t){try{delete e[t]}catch(a){e[t]=null}},$=function(e){return!(e.which&&1!==e.which)},ee=function(e){var t=e.originalEvent.pointerType;return!(t&&"touch"!==t&&2!==t)},te=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},ae=function(e){var t=e.parents(".mCSB_container");return[e.offset().top-t.offset().top,e.offset().left-t.offset().left]},ie=function(){var e=function(){var e=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var t=0;t<e.length;t++)if(e[t]+"Hidden"in document)return e[t]+"Hidden";return null}();return!!e&&document[e]};e.fn[a]=function(t){return h[t]?h[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void e.error("Method "+t+" does not exist"):h.init.apply(this,arguments)},e[a]=function(t){return h[t]?h[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void e.error("Method "+t+" does not exist"):h.init.apply(this,arguments)},e[a].defaults=s,window[a]=!0,e(window).bind("load",function(){e(o)[a](),e.extend(e.expr[":"],{mcsInView:e.expr[":"].mcsInView||function(t){var a,i,o=e(t),s=o.parents(".mCSB_container");if(s.length)return a=s.parent(),(i=[s[0].offsetTop,s[0].offsetLeft])[0]+ae(o)[0]>=0&&i[0]+ae(o)[0]<a.height()-o.outerHeight(!1)&&i[1]+ae(o)[1]>=0&&i[1]+ae(o)[1]<a.width()-o.outerWidth(!1)},mcsInSight:e.expr[":"].mcsInSight||function(t,a,i){var o,s,n,r,l=e(t),c=l.parents(".mCSB_container"),d="exact"===i[3]?[[1,0],[1,0]]:[[.9,.1],[.6,.4]];if(c.length)return o=[l.outerHeight(!1),l.outerWidth(!1)],n=[c[0].offsetTop+ae(l)[0],c[0].offsetLeft+ae(l)[1]],s=[c.parent()[0].offsetHeight,c.parent()[0].offsetWidth],n[0]-s[0]*(r=[o[0]<s[0]?d[0]:d[1],o[1]<s[1]?d[0]:d[1]])[0][0]<0&&n[0]+o[0]-s[0]*r[0][1]>=0&&n[1]-s[1]*r[1][0]<0&&n[1]+o[1]-s[1]*r[1][1]>=0},mcsOverflow:e.expr[":"].mcsOverflow||function(t){var a=e(t).data(i);if(a)return a.overflowed[0]||a.overflowed[1]}})})}()});
1
+ !function(e){"use strict";e(document).ready(function(){var t,a=null,i="",o=-1,s=e(document.activeElement).closest("form");function n(a,s){s||(s=1);var n=e(a),r=n.val()||"",l=n.parents(".is-ajax-search"),c=l.attr("data-min-no-for-search")||"",d=l.attr("data-result-box-max-height")||"400",h=e(l).attr("data-form-id");if(e(".is-form-id-"+h+" .is-search-input").val(r),""===i||i!==r.trim()||o!==h)i=r.trim(),o=h;else if(1===s)return void e("#is-ajax-search-result-"+h).show();if(1===s&&l.addClass("processing"),r.length>=c){if(1===s){if(e("#is-ajax-search-result-"+h+", #is-ajax-search-details-"+h).hide(),l.hasClass("is-form-style-1")){var u=l.find(".is-search-submit").outerWidth()+5;l.find(".is-loader-image").css("right",u+"px")}l.find(".is-loader-image").show()}var f={action:"is_ajax_load_posts",page:s,security:IvoryAjaxVars.ajax_nonce},m=l.serialize()+"&"+e.param(f);0===l.find('input[name="id"]').length&&(m+="&id="+h),t&&4!==t.readystate&&t.abort(),t=e.ajax({url:IvoryAjaxVars.ajaxurl,data:m,type:"POST",success:function(t){if("undefined"!=typeof IvorySearchVars&&void 0!==IvorySearchVars.is_analytics_enabled){var a=e(t).find(".is-ajax-search-no-result").length?"Nothing Found":"Results Found";ivory_search_analytics(h,r,a)}if(l.find(".is-loader-image").hide(),l.removeClass("processing"),1===s){var i=l.offset(),o=l.innerHeight(),n=l.outerWidth();n=n<500?500:n,0===e("#is-ajax-search-result-"+h).length&&e("body").append('<div id="is-ajax-search-result-'+h+'" class="is-ajax-search-result"></div>'),e("#is-ajax-search-result-"+h).css({width:n-10+"px"});var c=e("#is-ajax-search-result-"+h).outerWidth(),u=e(window).width(),f=0;if(i.left+c>u&&(f=i.left+c-u),e("#is-ajax-search-result-"+h).css({top:i.top+o+"px",left:i.left-f+"px",width:n-10+"px"}),e("#is-ajax-search-result-"+h).show().html(t),0!==e("#is-ajax-search-details-"+h).length&&e("body > #is-ajax-search-details-"+h).remove(),0!==e("#is-ajax-search-result-"+h+" .is-ajax-search-details").length){e("body").append('<div id="is-ajax-search-details-'+h+'" class="is-ajax-search-details">'+e("#is-ajax-search-result-"+h+" .is-ajax-search-details").html()+"</div>"),e("#is-ajax-search-result-"+h+" .is-ajax-search-details").remove();var m=e("#is-ajax-search-details-"+h).outerWidth(),p=i.left+c;if(i.left+c+m>u+30){var g=i.left-(f+m);g>-30&&(p=g)}e("#is-ajax-search-details-"+h).css({top:i.top+o+"px",left:p+"px"})}}else e("#is-ajax-search-result-"+h+" .is-show-more-results").remove(),e("#is-ajax-search-result-"+h+" .is-ajax-search-posts").append(t),0!==e("#is-ajax-search-result-"+h+" .is-ajax-search-posts .is-show-more-results").length&&(e("#is-ajax-search-result-"+h).append(e("#is-ajax-search-result-"+h+" .is-ajax-search-posts .is-show-more-results")[0].outerHTML),e("#is-ajax-search-result-"+h+" .is-ajax-search-posts .is-show-more-results").remove()),e("#is-ajax-search-details-"+h+" .is-ajax-search-posts-details").append(e("#is-ajax-search-result-"+h+" .is-ajax-search-items .is-ajax-search-posts-details").html()),e("#is-ajax-search-result-"+h+" .is-ajax-search-items .is-ajax-search-details").remove();var x=r.trim().split(" ");if(0!=x.length&&e.isFunction(e.fn.is_highlight)){var v,w,_,S=[".is-ajax-search-result"],b=jQuery.support.opacity?"mark":"span";for(_ in S)if(0!=(v=e(S[_])).length){for(w in x)v.is_highlight(x[w],b,"is-highlight term-"+w),v.find("*").is_highlight(x[w],b,"is-highlight term-"+w);break}}e("#is-ajax-search-result-"+h+" .is-ajax-search-items, #is-ajax-search-details-"+h+" .is-ajax-search-items").css("max-height",d+"px"),e.mCustomScrollbar.defaults.scrollButtons.enable=!0,e("#is-ajax-search-result-"+h+" .is-ajax-search-items, #is-ajax-search-details-"+h+" .is-ajax-search-items").mCustomScrollbar({theme:"dark-thick"}),e(".is-ajax-search-result .is-ajax-search-post a").on("click",function(t){e("#is-popup-wrapper, .is-ajax-search-result, .is-ajax-search-details").fadeOut("slow")})},error:function(e,t,a){console.log(e.statusText),"abort"!==e.statusText&&console.log("AJAX request aborted")}})}else e("#is-ajax-search-result-"+h).hide(),l.removeClass("processing")}e("body").on("mouseover",".is-ajax-search-tags > div, .is-ajax-search-categories > div, .is-ajax-search-post.is-product",function(t){var a=e(window).outerWidth();if(parseInt(a)>=910){var i=e(this).attr("data-id")||"",o=e(t.target).closest(".is-ajax-search-result").attr("id").split(/[-]+/).pop(),s=e("#is-ajax-search-result-"+o).offset(),n=e(".is-form-id-"+o).attr("data-result-box-max-height")||"400";e("#is-ajax-search-details-"+o).css({top:s.top+"px"}),e("#is-ajax-search-details-"+o+" .is-ajax-search-items").css("height",n+"px"),e("#is-ajax-search-details-"+o+" .mCSB_container > div").css("min-height",n+"px"),e(this).parents("div").hasClass("is-ajax-search-tags")&&e("#is-ajax-search-details-"+o+" .is-ajax-search-tags-details").length&&e("#is-ajax-search-details-"+o+' .is-ajax-search-tags-details > div[data-id="'+i+'"]').length?(e("#is-ajax-search-details-"+o+" .is-ajax-search-tags-details, #is-ajax-search-details-"+o).show(),e("#is-ajax-search-details-"+o+" .is-ajax-search-categories-details, #is-ajax-search-details-"+o+" .is-ajax-search-posts-details").hide(),e("#is-ajax-search-details-"+o+" .is-ajax-search-tags-details").find(" > div ").hide(),e("#is-ajax-search-details-"+o+" .is-ajax-search-tags-details").find(' > div[data-id="'+i+'"] ').show()):e(this).parents("div").hasClass("is-ajax-search-categories")&&e("#is-ajax-search-details-"+o+" .is-ajax-search-categories-details").length&&e("#is-ajax-search-details-"+o+' .is-ajax-search-categories-details > div[data-id="'+i+'"]').length?(e("#is-ajax-search-details-"+o+" .is-ajax-search-categories-details, #is-ajax-search-details-"+o).show(),e("#is-ajax-search-details-"+o+" .is-ajax-search-tags-details, #is-ajax-search-details-"+o+" .is-ajax-search-posts-details").hide(),e("#is-ajax-search-details-"+o+" .is-ajax-search-categories-details").find("> div ").hide(),e("#is-ajax-search-details-"+o+" .is-ajax-search-categories-details").find('> div[data-id="'+i+'"] ').show()):e(this).parents("div").hasClass("is-ajax-search-posts")&&(e("#is-ajax-search-details-"+o+" .is-ajax-search-tags-details, #is-ajax-search-details-"+o+" .is-ajax-search-categories-details").hide(),e("#is-ajax-search-details-"+o+" .is-ajax-search-posts-details").find("> div ").hide(),e("#is-ajax-search-details-"+o+" .is-ajax-search-posts-details, #is-ajax-search-details-"+o).show(),e("#is-ajax-search-details-"+o+" .is-ajax-search-posts-details").find('> div[data-id="'+i+'"] ').show())}}),e(".is-ajax-search .is-search-input").on("focusin, click",function(t){if(s=e(this).closest("form"),""!==e(this).val()&&0===e(t.target).closest("form.processing").length){var a=e(t.target).closest(".is-ajax-search").attr("data-form-id"),i=e(t.target).closest(".is-ajax-search").outerWidth();i=i<500?500:i,e("#is-ajax-search-result-"+a).css({width:i-10+"px"});var o=e(t.target).closest(".is-ajax-search").offset(),n=e(t.target).closest(".is-ajax-search").innerHeight(),r=e("#is-ajax-search-result-"+a).outerWidth(),l=e(window).width(),c=0;if(o.left+r>l&&(c=o.left+r-l),e("#is-ajax-search-result-"+a).css({top:o.top+n+"px",left:o.left-c+"px"}),e(".is-ajax-search-result, .is-ajax-search-details").hide(),e("#is-ajax-search-result-"+a).show(),0!==e("#is-ajax-search-details-"+a).length){var d=e("#is-ajax-search-details-"+a).outerWidth(),h=o.left+r;if(o.left+r+d>l+30){var u=o.left-(c+d);u>-30&&(h=u)}e("#is-ajax-search-details-"+a).css({top:o.top+n+"px",left:h+"px"})}}}),e("body").on("mousedown",function(t){0===t.button&&"s"!==e(t.target).attr("name")&&0===e(t.target).closest(".is-ajax-search-result").length&&0===e(t.target).closest(".is-ajax-search-details").length&&(e(".is-ajax-search-result, .is-ajax-search-details").hide(),s=!1)}),e(".is-disable-submit .is-search-submit").on("click",function(t){return e(this).parent().find(".is-search-input").trigger("keyup"),t.stopPropagation(),t.preventDefault(),!1}),e("form.is-disable-submit").on("submit",function(t){return e(this).find(".is-search-input").trigger("keyup"),t.stopPropagation(),t.preventDefault(),!1}),e(document).on("click",".is-show-more-results",function(t){var a=e(t.target).closest(".is-ajax-search-result").attr("id").split(/[-]+/).pop();e(this).hasClass("redirect-tosr")?e(".is-form-id-"+a).submit():(e(this).find(".is-show-more-results-text").hide(),e(this).find(".is-load-more-image").show(),n(e(".is-form-id-"+a+" .is-search-input"),e(this).attr("data-page")||""))}),e(window).on("resize scroll",function(){if(e(s).hasClass("is-ajax-search")&&""!==e(s).find(".is-search-input").val()){var t=e(s).attr("data-form-id");if(0!==e("#is-ajax-search-result-"+t).length){var a=e(s).offset(),i=e(s).innerHeight(),o=e("#is-ajax-search-result-"+t).outerWidth(),n=e(window).width(),r=0;if(a.left+o>n&&(r=a.left+o-n),e("#is-ajax-search-result-"+t).css({top:a.top+i+"px",left:a.left-r+"px"}),e("#is-ajax-search-result-"+t).show(),0!==e("#is-ajax-search-details-"+t).length){var l=e("#is-ajax-search-details-"+t).outerWidth(),c=a.left+o;if(a.left+o+l>n+30){var d=a.left-(r+l);d>-30&&(c=d)}e("#is-ajax-search-details-"+t).css({top:a.top+i+"px",left:c+"px"})}}}}),e(".is-ajax-search .is-search-input").on("paste",function(){e(this).trigger("keyup")}),e(".is-ajax-search").each(function(t,i){e(i).find(".is-search-input").on("keyup",function(t){if(s=e(this).closest("form"),32!==t.which){var i=this;window.clearTimeout(a),a=window.setTimeout(function(){a=null,n(i)},500)}})})})}(jQuery),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e:e(jQuery)}(function(e){function t(t){var n=t||window.event,r=l.call(arguments,1),c=0,h=0,u=0,f=0,m=0,p=0;if((t=e.event.fix(n)).type="mousewheel","detail"in n&&(u=-1*n.detail),"wheelDelta"in n&&(u=n.wheelDelta),"wheelDeltaY"in n&&(u=n.wheelDeltaY),"wheelDeltaX"in n&&(h=-1*n.wheelDeltaX),"axis"in n&&n.axis===n.HORIZONTAL_AXIS&&(h=-1*u,u=0),c=0===u?h:u,"deltaY"in n&&(c=u=-1*n.deltaY),"deltaX"in n&&(h=n.deltaX,0===u&&(c=-1*h)),0!==u||0!==h){if(1===n.deltaMode){var g=e.data(this,"mousewheel-line-height");c*=g,u*=g,h*=g}else if(2===n.deltaMode){var x=e.data(this,"mousewheel-page-height");c*=x,u*=x,h*=x}if(f=Math.max(Math.abs(u),Math.abs(h)),(!s||s>f)&&(s=f,i(n,f)&&(s/=40)),i(n,f)&&(c/=40,h/=40,u/=40),c=Math[c>=1?"floor":"ceil"](c/s),h=Math[h>=1?"floor":"ceil"](h/s),u=Math[u>=1?"floor":"ceil"](u/s),d.settings.normalizeOffset&&this.getBoundingClientRect){var v=this.getBoundingClientRect();m=t.clientX-v.left,p=t.clientY-v.top}return t.deltaX=h,t.deltaY=u,t.deltaFactor=s,t.offsetX=m,t.offsetY=p,t.deltaMode=0,r.unshift(t,c,h,u),o&&clearTimeout(o),o=setTimeout(a,200),(e.event.dispatch||e.event.handle).apply(this,r)}}function a(){s=null}function i(e,t){return d.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120==0}var o,s,n=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],r="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],l=Array.prototype.slice;if(e.event.fixHooks)for(var c=n.length;c;)e.event.fixHooks[n[--c]]=e.event.mouseHooks;var d=e.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var a=r.length;a;)this.addEventListener(r[--a],t,!1);else this.onmousewheel=t;e.data(this,"mousewheel-line-height",d.getLineHeight(this)),e.data(this,"mousewheel-page-height",d.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var a=r.length;a;)this.removeEventListener(r[--a],t,!1);else this.onmousewheel=null;e.removeData(this,"mousewheel-line-height"),e.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var a=e(t),i=a["offsetParent"in e.fn?"offsetParent":"parent"]();return i.length||(i=e("body")),parseInt(i.css("fontSize"),10)||parseInt(a.css("fontSize"),10)||16},getPageHeight:function(t){return e(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};e.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})}),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e:e(jQuery)}(function(e){function t(t){var n=t||window.event,r=l.call(arguments,1),c=0,h=0,u=0,f=0,m=0,p=0;if((t=e.event.fix(n)).type="mousewheel","detail"in n&&(u=-1*n.detail),"wheelDelta"in n&&(u=n.wheelDelta),"wheelDeltaY"in n&&(u=n.wheelDeltaY),"wheelDeltaX"in n&&(h=-1*n.wheelDeltaX),"axis"in n&&n.axis===n.HORIZONTAL_AXIS&&(h=-1*u,u=0),c=0===u?h:u,"deltaY"in n&&(c=u=-1*n.deltaY),"deltaX"in n&&(h=n.deltaX,0===u&&(c=-1*h)),0!==u||0!==h){if(1===n.deltaMode){var g=e.data(this,"mousewheel-line-height");c*=g,u*=g,h*=g}else if(2===n.deltaMode){var x=e.data(this,"mousewheel-page-height");c*=x,u*=x,h*=x}if(f=Math.max(Math.abs(u),Math.abs(h)),(!s||s>f)&&(s=f,i(n,f)&&(s/=40)),i(n,f)&&(c/=40,h/=40,u/=40),c=Math[c>=1?"floor":"ceil"](c/s),h=Math[h>=1?"floor":"ceil"](h/s),u=Math[u>=1?"floor":"ceil"](u/s),d.settings.normalizeOffset&&this.getBoundingClientRect){var v=this.getBoundingClientRect();m=t.clientX-v.left,p=t.clientY-v.top}return t.deltaX=h,t.deltaY=u,t.deltaFactor=s,t.offsetX=m,t.offsetY=p,t.deltaMode=0,r.unshift(t,c,h,u),o&&clearTimeout(o),o=setTimeout(a,200),(e.event.dispatch||e.event.handle).apply(this,r)}}function a(){s=null}function i(e,t){return d.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120==0}var o,s,n=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],r="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],l=Array.prototype.slice;if(e.event.fixHooks)for(var c=n.length;c;)e.event.fixHooks[n[--c]]=e.event.mouseHooks;var d=e.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var a=r.length;a;)this.addEventListener(r[--a],t,!1);else this.onmousewheel=t;e.data(this,"mousewheel-line-height",d.getLineHeight(this)),e.data(this,"mousewheel-page-height",d.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var a=r.length;a;)this.removeEventListener(r[--a],t,!1);else this.onmousewheel=null;e.removeData(this,"mousewheel-line-height"),e.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var a=e(t),i=a["offsetParent"in e.fn?"offsetParent":"parent"]();return i.length||(i=e("body")),parseInt(i.css("fontSize"),10)||parseInt(a.css("fontSize"),10)||16},getPageHeight:function(t){return e(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};e.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})}),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"undefined"!=typeof module&&module.exports?module.exports=e:e(jQuery,window,document)}(function(e){var t,a,i;t="function"==typeof define&&define.amd,a="undefined"!=typeof module&&module.exports,i="https:"==document.location.protocol?"https:":"http:",t||(a?require("jquery-mousewheel")(e):e.event.special.mousewheel||e("head").append(decodeURI("%3Cscript src="+i+"//cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.13/jquery.mousewheel.min.js%3E%3C/script%3E"))),function(){var t,a="mCustomScrollbar",i="mCS",o=".mCustomScrollbar",s={setTop:0,setLeft:0,axis:"y",scrollbarPosition:"inside",scrollInertia:950,autoDraggerLength:!0,alwaysShowScrollbar:0,snapOffset:0,mouseWheel:{enable:!0,scrollAmount:"auto",axis:"y",deltaFactor:"auto",disableOver:["select","option","keygen","datalist","textarea"]},scrollButtons:{scrollType:"stepless",scrollAmount:"auto"},keyboard:{enable:!0,scrollType:"stepless",scrollAmount:"auto"},contentTouchScroll:25,documentTouchScroll:!0,advanced:{autoScrollOnFocus:"input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']",updateOnContentResize:!0,updateOnImageLoad:"auto",autoUpdateTimeout:60},theme:"light",callbacks:{onTotalScrollOffset:0,onTotalScrollBackOffset:0,alwaysTriggerOffsets:!0}},n=0,r={},l=window.attachEvent&&!window.addEventListener?1:0,c=!1,d=["mCSB_dragger_onDrag","mCSB_scrollTools_onDrag","mCS_img_loaded","mCS_disabled","mCS_destroyed","mCS_no_scrollbar","mCS-autoHide","mCS-dir-rtl","mCS_no_scrollbar_y","mCS_no_scrollbar_x","mCS_y_hidden","mCS_x_hidden","mCSB_draggerContainer","mCSB_buttonUp","mCSB_buttonDown","mCSB_buttonLeft","mCSB_buttonRight"],h={init:function(t){var t=e.extend(!0,{},s,t),a=u.call(this);if(t.live){var l=t.liveSelector||this.selector||o,c=e(l);if("off"===t.live)return void m(l);r[l]=setTimeout(function(){c.mCustomScrollbar(t),"once"===t.live&&c.length&&m(l)},500)}else m(l);return t.setWidth=t.set_width?t.set_width:t.setWidth,t.setHeight=t.set_height?t.set_height:t.setHeight,t.axis=t.horizontalScroll?"x":p(t.axis),t.scrollInertia=t.scrollInertia>0&&t.scrollInertia<17?17:t.scrollInertia,"object"!=typeof t.mouseWheel&&1==t.mouseWheel&&(t.mouseWheel={enable:!0,scrollAmount:"auto",axis:"y",preventDefault:!1,deltaFactor:"auto",normalizeDelta:!1,invert:!1}),t.mouseWheel.scrollAmount=t.mouseWheelPixels?t.mouseWheelPixels:t.mouseWheel.scrollAmount,t.mouseWheel.normalizeDelta=t.advanced.normalizeMouseWheelDelta?t.advanced.normalizeMouseWheelDelta:t.mouseWheel.normalizeDelta,t.scrollButtons.scrollType=g(t.scrollButtons.scrollType),f(t),e(a).each(function(){var a=e(this);if(!a.data(i)){a.data(i,{idx:++n,opt:t,scrollRatio:{y:null,x:null},overflowed:null,contentReset:{y:null,x:null},bindEvents:!1,tweenRunning:!1,sequential:{},langDir:a.css("direction"),cbOffsets:null,trigger:null,poll:{size:{o:0,n:0},img:{o:0,n:0},change:{o:0,n:0}}});var o=a.data(i),s=o.opt,r=a.data("mcs-axis"),l=a.data("mcs-scrollbar-position"),c=a.data("mcs-theme");r&&(s.axis=r),l&&(s.scrollbarPosition=l),c&&(s.theme=c,f(s)),x.call(this),o&&s.callbacks.onCreate&&"function"==typeof s.callbacks.onCreate&&s.callbacks.onCreate.call(this),e("#mCSB_"+o.idx+"_container img:not(."+d[2]+")").addClass(d[2]),h.update.call(null,a)}})},update:function(t,a){var o=t||u.call(this);return e(o).each(function(){var t=e(this);if(t.data(i)){var o=t.data(i),s=o.opt,n=e("#mCSB_"+o.idx+"_container"),r=e("#mCSB_"+o.idx),l=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")];if(!n.length)return;o.tweenRunning&&V(t),a&&o&&s.callbacks.onBeforeUpdate&&"function"==typeof s.callbacks.onBeforeUpdate&&s.callbacks.onBeforeUpdate.call(this),t.hasClass(d[3])&&t.removeClass(d[3]),t.hasClass(d[4])&&t.removeClass(d[4]),r.css("max-height","none"),r.height()!==t.height()&&r.css("max-height",t.height()),w.call(this),"y"===s.axis||s.advanced.autoExpandHorizontalScroll||n.css("width",v(n)),o.overflowed=C.call(this),M.call(this),s.autoDraggerLength&&S.call(this),b.call(this),B.call(this);var c=[Math.abs(n[0].offsetTop),Math.abs(n[0].offsetLeft)];"x"!==s.axis&&(o.overflowed[0]?l[0].height()>l[0].parent().height()?j.call(this):(Q(t,c[0].toString(),{dir:"y",dur:0,overwrite:"none"}),o.contentReset.y=null):(j.call(this),"y"===s.axis?T.call(this):"yx"===s.axis&&o.overflowed[1]&&Q(t,c[1].toString(),{dir:"x",dur:0,overwrite:"none"}))),"y"!==s.axis&&(o.overflowed[1]?l[1].width()>l[1].parent().width()?j.call(this):(Q(t,c[1].toString(),{dir:"x",dur:0,overwrite:"none"}),o.contentReset.x=null):(j.call(this),"x"===s.axis?T.call(this):"yx"===s.axis&&o.overflowed[0]&&Q(t,c[0].toString(),{dir:"y",dur:0,overwrite:"none"}))),a&&o&&(2===a&&s.callbacks.onImageLoad&&"function"==typeof s.callbacks.onImageLoad?s.callbacks.onImageLoad.call(this):3===a&&s.callbacks.onSelectorChange&&"function"==typeof s.callbacks.onSelectorChange?s.callbacks.onSelectorChange.call(this):s.callbacks.onUpdate&&"function"==typeof s.callbacks.onUpdate&&s.callbacks.onUpdate.call(this)),N.call(this)}})},scrollTo:function(t,a){if(void 0!==t&&null!=t){var o=u.call(this);return e(o).each(function(){var o=e(this);if(o.data(i)){var s=o.data(i),n=s.opt,r={trigger:"external",scrollInertia:n.scrollInertia,scrollEasing:"mcsEaseInOut",moveDragger:!1,timeout:60,callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},l=e.extend(!0,{},r,a),c=F.call(this,t),d=l.scrollInertia>0&&l.scrollInertia<17?17:l.scrollInertia;c[0]=q.call(this,c[0],"y"),c[1]=q.call(this,c[1],"x"),l.moveDragger&&(c[0]*=s.scrollRatio.y,c[1]*=s.scrollRatio.x),l.dur=ie()?0:d,setTimeout(function(){null!==c[0]&&void 0!==c[0]&&"x"!==n.axis&&s.overflowed[0]&&(l.dir="y",l.overwrite="all",Q(o,c[0].toString(),l)),null!==c[1]&&void 0!==c[1]&&"y"!==n.axis&&s.overflowed[1]&&(l.dir="x",l.overwrite="none",Q(o,c[1].toString(),l))},l.timeout)}})}},stop:function(){var t=u.call(this);return e(t).each(function(){var t=e(this);t.data(i)&&V(t)})},disable:function(t){var a=u.call(this);return e(a).each(function(){var a=e(this);a.data(i)&&(a.data(i),N.call(this,"remove"),T.call(this),t&&j.call(this),M.call(this,!0),a.addClass(d[3]))})},destroy:function(){var t=u.call(this);return e(t).each(function(){var o=e(this);if(o.data(i)){var s=o.data(i),n=s.opt,r=e("#mCSB_"+s.idx),l=e("#mCSB_"+s.idx+"_container"),c=e(".mCSB_"+s.idx+"_scrollbar");n.live&&m(n.liveSelector||e(t).selector),N.call(this,"remove"),T.call(this),j.call(this),o.removeData(i),K(this,"mcs"),c.remove(),l.find("img."+d[2]).removeClass(d[2]),r.replaceWith(l.contents()),o.removeClass(a+" _"+i+"_"+s.idx+" "+d[6]+" "+d[7]+" "+d[5]+" "+d[3]).addClass(d[4])}})}},u=function(){return"object"!=typeof e(this)||e(this).length<1?o:this},f=function(t){t.autoDraggerLength=!(e.inArray(t.theme,["rounded","rounded-dark","rounded-dots","rounded-dots-dark"])>-1)&&t.autoDraggerLength,t.autoExpandScrollbar=!(e.inArray(t.theme,["rounded-dots","rounded-dots-dark","3d","3d-dark","3d-thick","3d-thick-dark","inset","inset-dark","inset-2","inset-2-dark","inset-3","inset-3-dark"])>-1)&&t.autoExpandScrollbar,t.scrollButtons.enable=!(e.inArray(t.theme,["minimal","minimal-dark"])>-1)&&t.scrollButtons.enable,t.autoHideScrollbar=e.inArray(t.theme,["minimal","minimal-dark"])>-1||t.autoHideScrollbar,t.scrollbarPosition=e.inArray(t.theme,["minimal","minimal-dark"])>-1?"outside":t.scrollbarPosition},m=function(e){r[e]&&(clearTimeout(r[e]),K(r,e))},p=function(e){return"yx"===e||"xy"===e||"auto"===e?"yx":"x"===e||"horizontal"===e?"x":"y"},g=function(e){return"stepped"===e||"pixels"===e||"step"===e||"click"===e?"stepped":"stepless"},x=function(){var t=e(this),o=t.data(i),s=o.opt,n=s.autoExpandScrollbar?" "+d[1]+"_expand":"",r=["<div id='mCSB_"+o.idx+"_scrollbar_vertical' class='mCSB_scrollTools mCSB_"+o.idx+"_scrollbar mCS-"+s.theme+" mCSB_scrollTools_vertical"+n+"'><div class='"+d[12]+"'><div id='mCSB_"+o.idx+"_dragger_vertical' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar' /></div></div><div class='mCSB_draggerRail' /></div>","<div id='mCSB_"+o.idx+"_scrollbar_horizontal' class='mCSB_scrollTools mCSB_"+o.idx+"_scrollbar mCS-"+s.theme+" mCSB_scrollTools_horizontal"+n+"'><div class='"+d[12]+"'><div id='mCSB_"+o.idx+"_dragger_horizontal' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>"],l="yx"===s.axis?"mCSB_vertical_horizontal":"x"===s.axis?"mCSB_horizontal":"mCSB_vertical",c="yx"===s.axis?r[0]+r[1]:"x"===s.axis?r[1]:r[0],h="yx"===s.axis?"<div id='mCSB_"+o.idx+"_container_wrapper' class='mCSB_container_wrapper' />":"",u=s.autoHideScrollbar?" "+d[6]:"",f="x"!==s.axis&&"rtl"===o.langDir?" "+d[7]:"";s.setWidth&&t.css("width",s.setWidth),s.setHeight&&t.css("height",s.setHeight),s.setLeft="y"!==s.axis&&"rtl"===o.langDir?"989999px":s.setLeft,t.addClass(a+" _"+i+"_"+o.idx+u+f).wrapInner("<div id='mCSB_"+o.idx+"' class='mCustomScrollBox mCS-"+s.theme+" "+l+"'><div id='mCSB_"+o.idx+"_container' class='mCSB_container' style='position:relative; top:"+s.setTop+"; left:"+s.setLeft+";' dir='"+o.langDir+"' /></div>");var m=e("#mCSB_"+o.idx),p=e("#mCSB_"+o.idx+"_container");"y"===s.axis||s.advanced.autoExpandHorizontalScroll||p.css("width",v(p)),"outside"===s.scrollbarPosition?("static"===t.css("position")&&t.css("position","relative"),t.css("overflow","visible"),m.addClass("mCSB_outside").after(c)):(m.addClass("mCSB_inside").append(c),p.wrap(h)),_.call(this);var g=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")];g[0].css("min-height",g[0].height()),g[1].css("min-width",g[1].width())},v=function(t){var a=[t[0].scrollWidth,Math.max.apply(Math,t.children().map(function(){return e(this).outerWidth(!0)}).get())],i=t.parent().width();return a[0]>i?a[0]:a[1]>i?a[1]:"100%"},w=function(){var t=e(this),a=t.data(i),o=a.opt,s=e("#mCSB_"+a.idx+"_container");if(o.advanced.autoExpandHorizontalScroll&&"y"!==o.axis){s.css({width:"auto","min-width":0,"overflow-x":"scroll"});var n=Math.ceil(s[0].scrollWidth);3===o.advanced.autoExpandHorizontalScroll||2!==o.advanced.autoExpandHorizontalScroll&&n>s.parent().width()?s.css({width:n,"min-width":"100%","overflow-x":"inherit"}):s.css({"overflow-x":"inherit",position:"absolute"}).wrap("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />").css({width:Math.ceil(s[0].getBoundingClientRect().right+.4)-Math.floor(s[0].getBoundingClientRect().left),"min-width":"100%",position:"relative"}).unwrap()}},_=function(){var t=e(this),a=t.data(i),o=a.opt,s=e(".mCSB_"+a.idx+"_scrollbar:first"),n=te(o.scrollButtons.tabindex)?"tabindex='"+o.scrollButtons.tabindex+"'":"",r=["<a href='#' class='"+d[13]+"' "+n+" />","<a href='#' class='"+d[14]+"' "+n+" />","<a href='#' class='"+d[15]+"' "+n+" />","<a href='#' class='"+d[16]+"' "+n+" />"],l=["x"===o.axis?r[2]:r[0],"x"===o.axis?r[3]:r[1],r[2],r[3]];o.scrollButtons.enable&&s.prepend(l[0]).append(l[1]).next(".mCSB_scrollTools").prepend(l[2]).append(l[3])},S=function(){var t=e(this),a=t.data(i),o=e("#mCSB_"+a.idx),s=e("#mCSB_"+a.idx+"_container"),n=[e("#mCSB_"+a.idx+"_dragger_vertical"),e("#mCSB_"+a.idx+"_dragger_horizontal")],r=[o.height()/s.outerHeight(!1),o.width()/s.outerWidth(!1)],c=[parseInt(n[0].css("min-height")),Math.round(r[0]*n[0].parent().height()),parseInt(n[1].css("min-width")),Math.round(r[1]*n[1].parent().width())],d=l&&c[1]<c[0]?c[0]:c[1],h=l&&c[3]<c[2]?c[2]:c[3];n[0].css({height:d,"max-height":n[0].parent().height()-10}).find(".mCSB_dragger_bar").css({"line-height":c[0]+"px"}),n[1].css({width:h,"max-width":n[1].parent().width()-10})},b=function(){var t=e(this),a=t.data(i),o=e("#mCSB_"+a.idx),s=e("#mCSB_"+a.idx+"_container"),n=[e("#mCSB_"+a.idx+"_dragger_vertical"),e("#mCSB_"+a.idx+"_dragger_horizontal")],r=[s.outerHeight(!1)-o.height(),s.outerWidth(!1)-o.width()],l=[r[0]/(n[0].parent().height()-n[0].height()),r[1]/(n[1].parent().width()-n[1].width())];a.scrollRatio={y:l[0],x:l[1]}},y=function(e,t,a){var i=a?d[0]+"_expanded":"",o=e.closest(".mCSB_scrollTools");"active"===t?(e.toggleClass(d[0]+" "+i),o.toggleClass(d[1]),e[0]._draggable=e[0]._draggable?0:1):e[0]._draggable||("hide"===t?(e.removeClass(d[0]),o.removeClass(d[1])):(e.addClass(d[0]),o.addClass(d[1])))},C=function(){var t=e(this),a=t.data(i),o=e("#mCSB_"+a.idx),s=e("#mCSB_"+a.idx+"_container"),n=null==a.overflowed?s.height():s.outerHeight(!1),r=null==a.overflowed?s.width():s.outerWidth(!1),l=s[0].scrollHeight,c=s[0].scrollWidth;return l>n&&(n=l),c>r&&(r=c),[n>o.height(),r>o.width()]},j=function(){var t=e(this),a=t.data(i),o=a.opt,s=e("#mCSB_"+a.idx),n=e("#mCSB_"+a.idx+"_container"),r=[e("#mCSB_"+a.idx+"_dragger_vertical"),e("#mCSB_"+a.idx+"_dragger_horizontal")];if(V(t),("x"!==o.axis&&!a.overflowed[0]||"y"===o.axis&&a.overflowed[0])&&(r[0].add(n).css("top",0),Q(t,"_resetY")),"y"!==o.axis&&!a.overflowed[1]||"x"===o.axis&&a.overflowed[1]){var l=dx=0;"rtl"===a.langDir&&(l=s.width()-n.outerWidth(!1),dx=Math.abs(l/a.scrollRatio.x)),n.css("left",l),r[1].css("left",dx),Q(t,"_resetX")}},B=function(){var t,a=e(this),o=a.data(i),s=o.opt;o.bindEvents||(D.call(this),s.contentTouchScroll&&O.call(this),I.call(this),s.mouseWheel.enable&&function i(){t=setTimeout(function(){e.event.special.mousewheel?(clearTimeout(t),E.call(a[0])):i()},100)}(),z.call(this),P.call(this),s.advanced.autoScrollOnFocus&&H.call(this),s.scrollButtons.enable&&X.call(this),s.keyboard.enable&&Y.call(this),o.bindEvents=!0)},T=function(){var t=e(this),a=t.data(i),o=a.opt,s=i+"_"+a.idx,n=".mCSB_"+a.idx+"_scrollbar",r=e("#mCSB_"+a.idx+",#mCSB_"+a.idx+"_container,#mCSB_"+a.idx+"_container_wrapper,"+n+" ."+d[12]+",#mCSB_"+a.idx+"_dragger_vertical,#mCSB_"+a.idx+"_dragger_horizontal,"+n+">a"),l=e("#mCSB_"+a.idx+"_container");o.advanced.releaseDraggableSelectors&&r.add(e(o.advanced.releaseDraggableSelectors)),o.advanced.extraDraggableSelectors&&r.add(e(o.advanced.extraDraggableSelectors)),a.bindEvents&&(e(document).add(e(!L()||top.document)).unbind("."+s),r.each(function(){e(this).unbind("."+s)}),clearTimeout(t[0]._focusTimeout),K(t[0],"_focusTimeout"),clearTimeout(a.sequential.step),K(a.sequential,"step"),clearTimeout(l[0].onCompleteTimeout),K(l[0],"onCompleteTimeout"),a.bindEvents=!1)},M=function(t){var a=e(this),o=a.data(i),s=o.opt,n=e("#mCSB_"+o.idx+"_container_wrapper"),r=n.length?n:e("#mCSB_"+o.idx+"_container"),l=[e("#mCSB_"+o.idx+"_scrollbar_vertical"),e("#mCSB_"+o.idx+"_scrollbar_horizontal")],c=[l[0].find(".mCSB_dragger"),l[1].find(".mCSB_dragger")];"x"!==s.axis&&(o.overflowed[0]&&!t?(l[0].add(c[0]).add(l[0].children("a")).css("display","block"),r.removeClass(d[8]+" "+d[10])):(s.alwaysShowScrollbar?(2!==s.alwaysShowScrollbar&&c[0].css("display","none"),r.removeClass(d[10])):(l[0].css("display","none"),r.addClass(d[10])),r.addClass(d[8]))),"y"!==s.axis&&(o.overflowed[1]&&!t?(l[1].add(c[1]).add(l[1].children("a")).css("display","block"),r.removeClass(d[9]+" "+d[11])):(s.alwaysShowScrollbar?(2!==s.alwaysShowScrollbar&&c[1].css("display","none"),r.removeClass(d[11])):(l[1].css("display","none"),r.addClass(d[11])),r.addClass(d[9]))),o.overflowed[0]||o.overflowed[1]?a.removeClass(d[5]):a.addClass(d[5])},k=function(t){var a=t.type,i=t.target.ownerDocument!==document&&null!==frameElement?[e(frameElement).offset().top,e(frameElement).offset().left]:null,o=L()&&t.target.ownerDocument!==top.document&&null!==frameElement?[e(t.view.frameElement).offset().top,e(t.view.frameElement).offset().left]:[0,0];switch(a){case"pointerdown":case"MSPointerDown":case"pointermove":case"MSPointerMove":case"pointerup":case"MSPointerUp":return i?[t.originalEvent.pageY-i[0]+o[0],t.originalEvent.pageX-i[1]+o[1],!1]:[t.originalEvent.pageY,t.originalEvent.pageX,!1];case"touchstart":case"touchmove":case"touchend":var s=t.originalEvent.touches[0]||t.originalEvent.changedTouches[0],n=t.originalEvent.touches.length||t.originalEvent.changedTouches.length;return t.target.ownerDocument!==document?[s.screenY,s.screenX,n>1]:[s.pageY,s.pageX,n>1];default:return i?[t.pageY-i[0]+o[0],t.pageX-i[1]+o[1],!1]:[t.pageY,t.pageX,!1]}},D=function(){function t(e,t,i,o){if(f[0].idleTimer=d.scrollInertia<233?250:0,a.attr("id")===u[1])var s="x",l=(a[0].offsetLeft-t+o)*r.scrollRatio.x;else var s="y",l=(a[0].offsetTop-e+i)*r.scrollRatio.y;Q(n,l.toString(),{dir:s,drag:!0})}var a,o,s,n=e(this),r=n.data(i),d=r.opt,h=i+"_"+r.idx,u=["mCSB_"+r.idx+"_dragger_vertical","mCSB_"+r.idx+"_dragger_horizontal"],f=e("#mCSB_"+r.idx+"_container"),m=e("#"+u[0]+",#"+u[1]),p=d.advanced.releaseDraggableSelectors?m.add(e(d.advanced.releaseDraggableSelectors)):m,g=d.advanced.extraDraggableSelectors?e(!L()||top.document).add(e(d.advanced.extraDraggableSelectors)):e(!L()||top.document);m.bind("contextmenu."+h,function(e){e.preventDefault()}).bind("mousedown."+h+" touchstart."+h+" pointerdown."+h+" MSPointerDown."+h,function(t){if(t.stopImmediatePropagation(),t.preventDefault(),$(t)){c=!0,l&&(document.onselectstart=function(){return!1}),R.call(f,!1),V(n);var i=(a=e(this)).offset(),r=k(t)[0]-i.top,h=k(t)[1]-i.left,u=a.height()+i.top,m=a.width()+i.left;u>r&&r>0&&m>h&&h>0&&(o=r,s=h),y(a,"active",d.autoExpandScrollbar)}}).bind("touchmove."+h,function(e){e.stopImmediatePropagation(),e.preventDefault();var i=a.offset(),n=k(e)[0]-i.top,r=k(e)[1]-i.left;t(o,s,n,r)}),e(document).add(g).bind("mousemove."+h+" pointermove."+h+" MSPointerMove."+h,function(e){if(a){var i=a.offset(),n=k(e)[0]-i.top,r=k(e)[1]-i.left;if(o===n&&s===r)return;t(o,s,n,r)}}).add(p).bind("mouseup."+h+" touchend."+h+" pointerup."+h+" MSPointerUp."+h,function(){a&&(y(a,"active",d.autoExpandScrollbar),a=null),c=!1,l&&(document.onselectstart=null),R.call(f,!0)})},O=function(){function a(e){if(!ee(e)||c||k(e)[2])t=0;else{t=1,b=0,y=0,d=1,C.removeClass("mCS_touch_action");var a=D.offset();h=k(e)[0]-a.top,u=k(e)[1]-a.left,A=[k(e)[0],k(e)[1]]}}function o(e){if(ee(e)&&!c&&!k(e)[2]&&(B.documentTouchScroll||e.preventDefault(),e.stopImmediatePropagation(),(!y||b)&&d)){g=J();var t=M.offset(),a=k(e)[0]-t.top,i=k(e)[1]-t.left,o="mcsLinearOut";if(I.push(a),E.push(i),A[2]=Math.abs(k(e)[0]-A[0]),A[3]=Math.abs(k(e)[1]-A[1]),j.overflowed[0])var s=O[0].parent().height()-O[0].height(),n=h-a>0&&a-h>-s*j.scrollRatio.y&&(2*A[3]<A[2]||"yx"===B.axis);if(j.overflowed[1])var r=O[1].parent().width()-O[1].width(),f=u-i>0&&i-u>-r*j.scrollRatio.x&&(2*A[2]<A[3]||"yx"===B.axis);n||f?(P||e.preventDefault(),b=1):(y=1,C.addClass("mCS_touch_action")),P&&e.preventDefault(),_="yx"===B.axis?[h-a,u-i]:"x"===B.axis?[null,u-i]:[h-a,null],D[0].idleTimer=250,j.overflowed[0]&&l(_[0],W,o,"y","all",!0),j.overflowed[1]&&l(_[1],W,o,"x",R,!0)}}function s(e){if(!ee(e)||c||k(e)[2])t=0;else{t=1,e.stopImmediatePropagation(),V(C),p=J();var a=M.offset();f=k(e)[0]-a.top,m=k(e)[1]-a.left,I=[],E=[]}}function n(e){if(ee(e)&&!c&&!k(e)[2]){d=0,e.stopImmediatePropagation(),b=0,y=0,x=J();var t=M.offset(),a=k(e)[0]-t.top,i=k(e)[1]-t.left;if(!(x-g>30)){var o="mcsEaseOut",s=2.5>(w=1e3/(x-p)),n=s?[I[I.length-2],E[E.length-2]]:[0,0];v=s?[a-n[0],i-n[1]]:[a-f,i-m];var h=[Math.abs(v[0]),Math.abs(v[1])];w=s?[Math.abs(v[0]/4),Math.abs(v[1]/4)]:[w,w];var u=[Math.abs(D[0].offsetTop)-v[0]*r(h[0]/w[0],w[0]),Math.abs(D[0].offsetLeft)-v[1]*r(h[1]/w[1],w[1])];_="yx"===B.axis?[u[0],u[1]]:"x"===B.axis?[null,u[1]]:[u[0],null],S=[4*h[0]+B.scrollInertia,4*h[1]+B.scrollInertia];var C=parseInt(B.contentTouchScroll)||0;_[0]=h[0]>C?_[0]:0,_[1]=h[1]>C?_[1]:0,j.overflowed[0]&&l(_[0],S[0],o,"y",R,!1),j.overflowed[1]&&l(_[1],S[1],o,"x",R,!1)}}}function r(e,t){var a=[1.5*t,2*t,t/1.5,t/2];return e>90?t>4?a[0]:a[3]:e>60?t>3?a[3]:a[2]:e>30?t>8?a[1]:t>6?a[0]:t>4?t:a[2]:t>8?t:a[3]}function l(e,t,a,i,o,s){e&&Q(C,e.toString(),{dur:t,scrollEasing:a,dir:i,overwrite:o,drag:s})}var d,h,u,f,m,p,g,x,v,w,_,S,b,y,C=e(this),j=C.data(i),B=j.opt,T=i+"_"+j.idx,M=e("#mCSB_"+j.idx),D=e("#mCSB_"+j.idx+"_container"),O=[e("#mCSB_"+j.idx+"_dragger_vertical"),e("#mCSB_"+j.idx+"_dragger_horizontal")],I=[],E=[],W=0,R="yx"===B.axis?"none":"all",A=[],z=D.find("iframe"),H=["touchstart."+T+" pointerdown."+T+" MSPointerDown."+T,"touchmove."+T+" pointermove."+T+" MSPointerMove."+T,"touchend."+T+" pointerup."+T+" MSPointerUp."+T],P=void 0!==document.body.style.touchAction&&""!==document.body.style.touchAction;D.bind(H[0],function(e){a(e)}).bind(H[1],function(e){o(e)}),M.bind(H[0],function(e){s(e)}).bind(H[2],function(e){n(e)}),z.length&&z.each(function(){e(this).bind("load",function(){L(this)&&e(this.contentDocument||this.contentWindow.document).bind(H[0],function(e){a(e),s(e)}).bind(H[1],function(e){o(e)}).bind(H[2],function(e){n(e)})})})},I=function(){function a(e,t,a){l.type=a&&o?"stepped":"stepless",l.scrollAmount=10,U(s,e,t,"mcsLinearOut",a?60:null)}var o,s=e(this),n=s.data(i),r=n.opt,l=n.sequential,d=i+"_"+n.idx,h=e("#mCSB_"+n.idx+"_container"),u=h.parent();h.bind("mousedown."+d,function(){t||o||(o=1,c=!0)}).add(document).bind("mousemove."+d,function(e){if(!t&&o&&(window.getSelection?window.getSelection().toString():document.selection&&"Control"!=document.selection.type&&document.selection.createRange().text)){var i=h.offset(),s=k(e)[0]-i.top+h[0].offsetTop,c=k(e)[1]-i.left+h[0].offsetLeft;s>0&&s<u.height()&&c>0&&c<u.width()?l.step&&a("off",null,"stepped"):("x"!==r.axis&&n.overflowed[0]&&(0>s?a("on",38):s>u.height()&&a("on",40)),"y"!==r.axis&&n.overflowed[1]&&(0>c?a("on",37):c>u.width()&&a("on",39)))}}).bind("mouseup."+d+" dragend."+d,function(){t||(o&&(o=0,a("off",null)),c=!1)})},E=function(){function t(t,i){if(V(a),!A(a,t.target)){var n="auto"!==s.mouseWheel.deltaFactor?parseInt(s.mouseWheel.deltaFactor):l&&t.deltaFactor<100?100:t.deltaFactor||100,d=s.scrollInertia;if("x"===s.axis||"x"===s.mouseWheel.axis)var h="x",u=[Math.round(n*o.scrollRatio.x),parseInt(s.mouseWheel.scrollAmount)],f="auto"!==s.mouseWheel.scrollAmount?u[1]:u[0]>=r.width()?.9*r.width():u[0],m=Math.abs(e("#mCSB_"+o.idx+"_container")[0].offsetLeft),p=c[1][0].offsetLeft,g=c[1].parent().width()-c[1].width(),x="y"===s.mouseWheel.axis?t.deltaY||i:t.deltaX;else var h="y",u=[Math.round(n*o.scrollRatio.y),parseInt(s.mouseWheel.scrollAmount)],f="auto"!==s.mouseWheel.scrollAmount?u[1]:u[0]>=r.height()?.9*r.height():u[0],m=Math.abs(e("#mCSB_"+o.idx+"_container")[0].offsetTop),p=c[0][0].offsetTop,g=c[0].parent().height()-c[0].height(),x=t.deltaY||i;"y"===h&&!o.overflowed[0]||"x"===h&&!o.overflowed[1]||((s.mouseWheel.invert||t.webkitDirectionInvertedFromDevice)&&(x=-x),s.mouseWheel.normalizeDelta&&(x=0>x?-1:1),(x>0&&0!==p||0>x&&p!==g||s.mouseWheel.preventDefault)&&(t.stopImmediatePropagation(),t.preventDefault()),t.deltaFactor<5&&!s.mouseWheel.normalizeDelta&&(f=t.deltaFactor,d=17),Q(a,(m-x*f).toString(),{dir:h,dur:d}))}}if(e(this).data(i)){var a=e(this),o=a.data(i),s=o.opt,n=i+"_"+o.idx,r=e("#mCSB_"+o.idx),c=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")],d=e("#mCSB_"+o.idx+"_container").find("iframe");d.length&&d.each(function(){e(this).bind("load",function(){L(this)&&e(this.contentDocument||this.contentWindow.document).bind("mousewheel."+n,function(e,a){t(e,a)})})}),r.bind("mousewheel."+n,function(e,a){t(e,a)})}},W=new Object,L=function(t){var a=!1,i=!1,o=null;if(void 0===t?i="#empty":void 0!==e(t).attr("id")&&(i=e(t).attr("id")),!1!==i&&void 0!==W[i])return W[i];if(t){try{var s=t.contentDocument||t.contentWindow.document;o=s.body.innerHTML}catch(e){}a=null!==o}else{try{var s=top.document;o=s.body.innerHTML}catch(e){}a=null!==o}return!1!==i&&(W[i]=a),a},R=function(e){var t=this.find("iframe");if(t.length){var a=e?"auto":"none";t.css("pointer-events",a)}},A=function(t,a){var o=a.nodeName.toLowerCase(),s=t.data(i).opt.mouseWheel.disableOver;return e.inArray(o,s)>-1&&!(e.inArray(o,["select","textarea"])>-1&&!e(a).is(":focus"))},z=function(){var t,a=e(this),o=a.data(i),s=i+"_"+o.idx,n=e("#mCSB_"+o.idx+"_container"),r=n.parent(),l=e(".mCSB_"+o.idx+"_scrollbar ."+d[12]);l.bind("mousedown."+s+" touchstart."+s+" pointerdown."+s+" MSPointerDown."+s,function(a){c=!0,e(a.target).hasClass("mCSB_dragger")||(t=1)}).bind("touchend."+s+" pointerup."+s+" MSPointerUp."+s,function(){c=!1}).bind("click."+s,function(i){if(t&&(t=0,e(i.target).hasClass(d[12])||e(i.target).hasClass("mCSB_draggerRail"))){V(a);var s=e(this),l=s.find(".mCSB_dragger");if(s.parent(".mCSB_scrollTools_horizontal").length>0){if(!o.overflowed[1])return;var c="x",h=i.pageX>l.offset().left?-1:1,u=Math.abs(n[0].offsetLeft)-h*(.9*r.width())}else{if(!o.overflowed[0])return;var c="y",h=i.pageY>l.offset().top?-1:1,u=Math.abs(n[0].offsetTop)-h*(.9*r.height())}Q(a,u.toString(),{dir:c,scrollEasing:"mcsEaseInOut"})}})},H=function(){var t=e(this),a=t.data(i),o=a.opt,s=i+"_"+a.idx,n=e("#mCSB_"+a.idx+"_container"),r=n.parent();n.bind("focusin."+s,function(){var a=e(document.activeElement),i=n.find(".mCustomScrollBox").length;a.is(o.advanced.autoScrollOnFocus)&&(V(t),clearTimeout(t[0]._focusTimeout),t[0]._focusTimer=i?17*i:0,t[0]._focusTimeout=setTimeout(function(){var e=[ae(a)[0],ae(a)[1]],i=[n[0].offsetTop,n[0].offsetLeft],s=[i[0]+e[0]>=0&&i[0]+e[0]<r.height()-a.outerHeight(!1),i[1]+e[1]>=0&&i[0]+e[1]<r.width()-a.outerWidth(!1)],l="yx"!==o.axis||s[0]||s[1]?"all":"none";"x"===o.axis||s[0]||Q(t,e[0].toString(),{dir:"y",scrollEasing:"mcsEaseInOut",overwrite:l,dur:0}),"y"===o.axis||s[1]||Q(t,e[1].toString(),{dir:"x",scrollEasing:"mcsEaseInOut",overwrite:l,dur:0})},t[0]._focusTimer))})},P=function(){var t=e(this),a=t.data(i),o=i+"_"+a.idx,s=e("#mCSB_"+a.idx+"_container").parent();s.bind("scroll."+o,function(){0===s.scrollTop()&&0===s.scrollLeft()||e(".mCSB_"+a.idx+"_scrollbar").css("visibility","hidden")})},X=function(){var t=e(this),a=t.data(i),o=a.opt,s=a.sequential,n=i+"_"+a.idx,r=".mCSB_"+a.idx+"_scrollbar",l=e(r+">a");l.bind("contextmenu."+n,function(e){e.preventDefault()}).bind("mousedown."+n+" touchstart."+n+" pointerdown."+n+" MSPointerDown."+n+" mouseup."+n+" touchend."+n+" pointerup."+n+" MSPointerUp."+n+" mouseout."+n+" pointerout."+n+" MSPointerOut."+n+" click."+n,function(i){function n(e,a){s.scrollAmount=o.scrollButtons.scrollAmount,U(t,e,a)}if(i.preventDefault(),$(i)){var r=e(this).attr("class");switch(s.type=o.scrollButtons.scrollType,i.type){case"mousedown":case"touchstart":case"pointerdown":case"MSPointerDown":if("stepped"===s.type)return;c=!0,a.tweenRunning=!1,n("on",r);break;case"mouseup":case"touchend":case"pointerup":case"MSPointerUp":case"mouseout":case"pointerout":case"MSPointerOut":if("stepped"===s.type)return;c=!1,s.dir&&n("off",r);break;case"click":if("stepped"!==s.type||a.tweenRunning)return;n("on",r)}}})},Y=function(){function t(t){function i(e,t){n.type=s.keyboard.scrollType,n.scrollAmount=s.keyboard.scrollAmount,"stepped"===n.type&&o.tweenRunning||U(a,e,t)}switch(t.type){case"blur":o.tweenRunning&&n.dir&&i("off",null);break;case"keydown":case"keyup":var r=t.keyCode?t.keyCode:t.which,l="on";if("x"!==s.axis&&(38===r||40===r)||"y"!==s.axis&&(37===r||39===r)){if((38===r||40===r)&&!o.overflowed[0]||(37===r||39===r)&&!o.overflowed[1])return;"keyup"===t.type&&(l="off"),e(document.activeElement).is(h)||(t.preventDefault(),t.stopImmediatePropagation(),i(l,r))}else if(33===r||34===r){if((o.overflowed[0]||o.overflowed[1])&&(t.preventDefault(),t.stopImmediatePropagation()),"keyup"===t.type){V(a);var u=34===r?-1:1;if("x"===s.axis||"yx"===s.axis&&o.overflowed[1]&&!o.overflowed[0])var f="x",m=Math.abs(c[0].offsetLeft)-u*(.9*d.width());else var f="y",m=Math.abs(c[0].offsetTop)-u*(.9*d.height());Q(a,m.toString(),{dir:f,scrollEasing:"mcsEaseInOut"})}}else if((35===r||36===r)&&!e(document.activeElement).is(h)&&((o.overflowed[0]||o.overflowed[1])&&(t.preventDefault(),t.stopImmediatePropagation()),"keyup"===t.type)){if("x"===s.axis||"yx"===s.axis&&o.overflowed[1]&&!o.overflowed[0])var f="x",m=35===r?Math.abs(d.width()-c.outerWidth(!1)):0;else var f="y",m=35===r?Math.abs(d.height()-c.outerHeight(!1)):0;Q(a,m.toString(),{dir:f,scrollEasing:"mcsEaseInOut"})}}}var a=e(this),o=a.data(i),s=o.opt,n=o.sequential,r=i+"_"+o.idx,l=e("#mCSB_"+o.idx),c=e("#mCSB_"+o.idx+"_container"),d=c.parent(),h="input,textarea,select,datalist,keygen,[contenteditable='true']",u=c.find("iframe"),f=["blur."+r+" keydown."+r+" keyup."+r];u.length&&u.each(function(){e(this).bind("load",function(){L(this)&&e(this.contentDocument||this.contentWindow.document).bind(f[0],function(e){t(e)})})}),l.attr("tabindex","0").bind(f[0],function(e){t(e)})},U=function(t,a,o,s,n){function r(e){c.snapAmount&&(h.scrollAmount=c.snapAmount instanceof Array?"x"===h.dir[0]?c.snapAmount[1]:c.snapAmount[0]:c.snapAmount);var a="stepped"!==h.type,i=n||(e?a?m/1.5:p:1e3/60),o=e?a?7.5:40:2.5,d=[Math.abs(u[0].offsetTop),Math.abs(u[0].offsetLeft)],f=[l.scrollRatio.y>10?10:l.scrollRatio.y,l.scrollRatio.x>10?10:l.scrollRatio.x],g="x"===h.dir[0]?d[1]+h.dir[1]*(f[1]*o):d[0]+h.dir[1]*(f[0]*o),x="x"===h.dir[0]?d[1]+h.dir[1]*parseInt(h.scrollAmount):d[0]+h.dir[1]*parseInt(h.scrollAmount),v="auto"!==h.scrollAmount?x:g,w=s||(e?a?"mcsLinearOut":"mcsEaseInOut":"mcsLinear"),_=!!e;return e&&17>i&&(v="x"===h.dir[0]?d[1]:d[0]),Q(t,v.toString(),{dir:h.dir[0],scrollEasing:w,dur:i,onComplete:_}),e?void(h.dir=!1):(clearTimeout(h.step),void(h.step=setTimeout(function(){r()},i)))}var l=t.data(i),c=l.opt,h=l.sequential,u=e("#mCSB_"+l.idx+"_container"),f="stepped"===h.type,m=c.scrollInertia<26?26:c.scrollInertia,p=c.scrollInertia<1?17:c.scrollInertia;switch(a){case"on":if(h.dir=[o===d[16]||o===d[15]||39===o||37===o?"x":"y",o===d[13]||o===d[15]||38===o||37===o?-1:1],V(t),te(o)&&"stepped"===h.type)return;r(f);break;case"off":clearTimeout(h.step),K(h,"step"),V(t),(f||l.tweenRunning&&h.dir)&&r(!0)}},F=function(t){var a=e(this).data(i).opt,o=[];return"function"==typeof t&&(t=t()),t instanceof Array?o=t.length>1?[t[0],t[1]]:"x"===a.axis?[null,t[0]]:[t[0],null]:(o[0]=t.y?t.y:t.x||"x"===a.axis?null:t,o[1]=t.x?t.x:t.y||"y"===a.axis?null:t),"function"==typeof o[0]&&(o[0]=o[0]()),"function"==typeof o[1]&&(o[1]=o[1]()),o},q=function(t,a){if(null!=t&&void 0!==t){var o=e(this),s=o.data(i),n=s.opt,r=e("#mCSB_"+s.idx+"_container"),l=r.parent(),c=typeof t;a||(a="x"===n.axis?"x":"y");var d="x"===a?r.outerWidth(!1)-l.width():r.outerHeight(!1)-l.height(),u="x"===a?r[0].offsetLeft:r[0].offsetTop,f="x"===a?"left":"top";switch(c){case"function":return t();case"object":var m=t.jquery?t:e(t);if(!m.length)return;return"x"===a?ae(m)[1]:ae(m)[0];case"string":case"number":if(te(t))return Math.abs(t);if(-1!==t.indexOf("%"))return Math.abs(d*parseInt(t)/100);if(-1!==t.indexOf("-="))return Math.abs(u-parseInt(t.split("-=")[1]));if(-1!==t.indexOf("+=")){var p=u+parseInt(t.split("+=")[1]);return p>=0?0:Math.abs(p)}if(-1!==t.indexOf("px")&&te(t.split("px")[0]))return Math.abs(t.split("px")[0]);if("top"===t||"left"===t)return 0;if("bottom"===t)return Math.abs(l.height()-r.outerHeight(!1));if("right"===t)return Math.abs(l.width()-r.outerWidth(!1));if("first"===t||"last"===t){var m=r.find(":"+t);return"x"===a?ae(m)[1]:ae(m)[0]}return e(t).length?"x"===a?ae(e(t))[1]:ae(e(t))[0]:(r.css(f,t),void h.update.call(null,o[0]))}}},N=function(t){function a(e){clearTimeout(r[0].autoUpdate),h.update.call(null,o[0],e)}var o=e(this),s=o.data(i),n=s.opt,r=e("#mCSB_"+s.idx+"_container");return t?(clearTimeout(r[0].autoUpdate),void K(r[0],"autoUpdate")):void function t(){return clearTimeout(r[0].autoUpdate),0===o.parents("html").length?void(o=null):void(r[0].autoUpdate=setTimeout(function(){return n.advanced.updateOnSelectorChange&&(s.poll.change.n=function(){!0===n.advanced.updateOnSelectorChange&&(n.advanced.updateOnSelectorChange="*");var e=0,t=r.find(n.advanced.updateOnSelectorChange);return n.advanced.updateOnSelectorChange&&t.length>0&&t.each(function(){e+=this.offsetHeight+this.offsetWidth}),e}(),s.poll.change.n!==s.poll.change.o)?(s.poll.change.o=s.poll.change.n,void a(3)):n.advanced.updateOnContentResize&&(s.poll.size.n=o[0].scrollHeight+o[0].scrollWidth+r[0].offsetHeight+o[0].offsetHeight+o[0].offsetWidth,s.poll.size.n!==s.poll.size.o)?(s.poll.size.o=s.poll.size.n,void a(1)):!n.advanced.updateOnImageLoad||"auto"===n.advanced.updateOnImageLoad&&"y"===n.axis||(s.poll.img.n=r.find("img").length,s.poll.img.n===s.poll.img.o)?void((n.advanced.updateOnSelectorChange||n.advanced.updateOnContentResize||n.advanced.updateOnImageLoad)&&t()):(s.poll.img.o=s.poll.img.n,void r.find("img").each(function(){!function(t){if(e(t).hasClass(d[2]))a();else{var i=new Image;i.onload=function(e,t){return function(){return t.apply(e,arguments)}}(i,function(){this.onload=null,e(t).addClass(d[2]),a(2)}),i.src=t.src}}(this)}))},n.advanced.autoUpdateTimeout))}()},V=function(t){var a=t.data(i),o=e("#mCSB_"+a.idx+"_container,#mCSB_"+a.idx+"_container_wrapper,#mCSB_"+a.idx+"_dragger_vertical,#mCSB_"+a.idx+"_dragger_horizontal");o.each(function(){G.call(this)})},Q=function(t,a,o){function s(e){return r&&l.callbacks[e]&&"function"==typeof l.callbacks[e]}function n(){var e=[u[0].offsetTop,u[0].offsetLeft],a=[x[0].offsetTop,x[0].offsetLeft],i=[u.outerHeight(!1),u.outerWidth(!1)],s=[h.height(),h.width()];t[0].mcs={content:u,top:e[0],left:e[1],draggerTop:a[0],draggerLeft:a[1],topPct:Math.round(100*Math.abs(e[0])/(Math.abs(i[0])-s[0])),leftPct:Math.round(100*Math.abs(e[1])/(Math.abs(i[1])-s[1])),direction:o.dir}}var r=t.data(i),l=r.opt,c={trigger:"internal",dir:"y",scrollEasing:"mcsEaseOut",drag:!1,dur:l.scrollInertia,overwrite:"all",callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},o=e.extend(c,o),d=[o.dur,o.drag?0:o.dur],h=e("#mCSB_"+r.idx),u=e("#mCSB_"+r.idx+"_container"),f=u.parent(),m=l.callbacks.onTotalScrollOffset?F.call(t,l.callbacks.onTotalScrollOffset):[0,0],p=l.callbacks.onTotalScrollBackOffset?F.call(t,l.callbacks.onTotalScrollBackOffset):[0,0];if(r.trigger=o.trigger,0===f.scrollTop()&&0===f.scrollLeft()||(e(".mCSB_"+r.idx+"_scrollbar").css("visibility","visible"),f.scrollTop(0).scrollLeft(0)),"_resetY"!==a||r.contentReset.y||(s("onOverflowYNone")&&l.callbacks.onOverflowYNone.call(t[0]),r.contentReset.y=1),"_resetX"!==a||r.contentReset.x||(s("onOverflowXNone")&&l.callbacks.onOverflowXNone.call(t[0]),r.contentReset.x=1),"_resetY"!==a&&"_resetX"!==a){if(!r.contentReset.y&&t[0].mcs||!r.overflowed[0]||(s("onOverflowY")&&l.callbacks.onOverflowY.call(t[0]),r.contentReset.x=null),!r.contentReset.x&&t[0].mcs||!r.overflowed[1]||(s("onOverflowX")&&l.callbacks.onOverflowX.call(t[0]),r.contentReset.x=null),l.snapAmount){var g=l.snapAmount instanceof Array?"x"===o.dir?l.snapAmount[1]:l.snapAmount[0]:l.snapAmount;a=function(e,t,a){return Math.round(e/t)*t-a}(a,g,l.snapOffset)}switch(o.dir){case"x":var x=e("#mCSB_"+r.idx+"_dragger_horizontal"),v="left",w=u[0].offsetLeft,_=[h.width()-u.outerWidth(!1),x.parent().width()-x.width()],S=[a,0===a?0:a/r.scrollRatio.x],b=m[1],C=p[1],j=b>0?b/r.scrollRatio.x:0,B=C>0?C/r.scrollRatio.x:0;break;case"y":var x=e("#mCSB_"+r.idx+"_dragger_vertical"),v="top",w=u[0].offsetTop,_=[h.height()-u.outerHeight(!1),x.parent().height()-x.height()],S=[a,0===a?0:a/r.scrollRatio.y],b=m[0],C=p[0],j=b>0?b/r.scrollRatio.y:0,B=C>0?C/r.scrollRatio.y:0}S[1]<0||0===S[0]&&0===S[1]?S=[0,0]:S[1]>=_[1]?S=[_[0],_[1]]:S[0]=-S[0],t[0].mcs||(n(),s("onInit")&&l.callbacks.onInit.call(t[0])),clearTimeout(u[0].onCompleteTimeout),Z(x[0],v,Math.round(S[1]),d[1],o.scrollEasing),!r.tweenRunning&&(0===w&&S[0]>=0||w===_[0]&&S[0]<=_[0])||Z(u[0],v,Math.round(S[0]),d[0],o.scrollEasing,o.overwrite,{onStart:function(){o.callbacks&&o.onStart&&!r.tweenRunning&&(s("onScrollStart")&&(n(),l.callbacks.onScrollStart.call(t[0])),r.tweenRunning=!0,y(x),r.cbOffsets=[l.callbacks.alwaysTriggerOffsets||w>=_[0]+b,l.callbacks.alwaysTriggerOffsets||-C>=w])},onUpdate:function(){o.callbacks&&o.onUpdate&&s("whileScrolling")&&(n(),l.callbacks.whileScrolling.call(t[0]))},onComplete:function(){if(o.callbacks&&o.onComplete){"yx"===l.axis&&clearTimeout(u[0].onCompleteTimeout);var e=u[0].idleTimer||0;u[0].onCompleteTimeout=setTimeout(function(){s("onScroll")&&(n(),l.callbacks.onScroll.call(t[0])),s("onTotalScroll")&&S[1]>=_[1]-j&&r.cbOffsets[0]&&(n(),l.callbacks.onTotalScroll.call(t[0])),s("onTotalScrollBack")&&S[1]<=B&&r.cbOffsets[1]&&(n(),l.callbacks.onTotalScrollBack.call(t[0])),r.tweenRunning=!1,u[0].idleTimer=0,y(x,"hide")},e)}}})}},Z=function(e,t,a,i,o,s,n){function r(){v.stop||(p||h.call(),p=J()-m,l(),p>=v.time&&(v.time=p>v.time?p+c-(p-v.time):p+c-1,v.time<p+1&&(v.time=p+1)),v.time<i?v.id=d(r):f.call())}function l(){i>0?(v.currVal=function(e,t,a,i,o){switch(o){case"linear":case"mcsLinear":return a*e/i+t;case"mcsLinearOut":return e/=i,e--,a*Math.sqrt(1-e*e)+t;case"easeInOutSmooth":return 1>(e/=i/2)?a/2*e*e+t:-a/2*(--e*(e-2)-1)+t;case"easeInOutStrong":return 1>(e/=i/2)?a/2*Math.pow(2,10*(e-1))+t:(e--,a/2*(2-Math.pow(2,-10*e))+t);case"easeInOut":case"mcsEaseInOut":return 1>(e/=i/2)?a/2*e*e*e+t:a/2*((e-=2)*e*e+2)+t;case"easeOutSmooth":return e/=i,-a*(--e*e*e*e-1)+t;case"easeOutStrong":return a*(1-Math.pow(2,-10*e/i))+t;case"easeOut":case"mcsEaseOut":default:var s=(e/=i)*e,n=s*e;return t+a*(.499999999999997*n*s+-2.5*s*s+5.5*n+-6.5*s+4*e)}}(v.time,g,w,i,o),x[t]=Math.round(v.currVal)+"px"):x[t]=a+"px",u.call()}e._mTween||(e._mTween={top:{},left:{}});var c,d,n=n||{},h=n.onStart||function(){},u=n.onUpdate||function(){},f=n.onComplete||function(){},m=J(),p=0,g=e.offsetTop,x=e.style,v=e._mTween[t];"left"===t&&(g=e.offsetLeft);var w=a-g;v.stop=0,"none"!==s&&null!=v.id&&(window.requestAnimationFrame?window.cancelAnimationFrame(v.id):clearTimeout(v.id),v.id=null),c=1e3/60,v.time=p+c,d=window.requestAnimationFrame?window.requestAnimationFrame:function(e){return l(),setTimeout(e,.01)},v.id=d(r)},J=function(){return window.performance&&window.performance.now?window.performance.now():window.performance&&window.performance.webkitNow?window.performance.webkitNow():Date.now?Date.now():(new Date).getTime()},G=function(){var e=this;e._mTween||(e._mTween={top:{},left:{}});for(var t=["top","left"],a=0;a<t.length;a++){var i=t[a];e._mTween[i].id&&(window.requestAnimationFrame?window.cancelAnimationFrame(e._mTween[i].id):clearTimeout(e._mTween[i].id),e._mTween[i].id=null,e._mTween[i].stop=1)}},K=function(e,t){try{delete e[t]}catch(a){e[t]=null}},$=function(e){return!(e.which&&1!==e.which)},ee=function(e){var t=e.originalEvent.pointerType;return!(t&&"touch"!==t&&2!==t)},te=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},ae=function(e){var t=e.parents(".mCSB_container");return[e.offset().top-t.offset().top,e.offset().left-t.offset().left]},ie=function(){var e=function(){var e=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var t=0;t<e.length;t++)if(e[t]+"Hidden"in document)return e[t]+"Hidden";return null}();return!!e&&document[e]};e.fn[a]=function(t){return h[t]?h[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void e.error("Method "+t+" does not exist"):h.init.apply(this,arguments)},e[a]=function(t){return h[t]?h[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void e.error("Method "+t+" does not exist"):h.init.apply(this,arguments)},e[a].defaults=s,window[a]=!0,e(window).bind("load",function(){e(o)[a](),e.extend(e.expr[":"],{mcsInView:e.expr[":"].mcsInView||function(t){var a,i,o=e(t),s=o.parents(".mCSB_container");if(s.length)return a=s.parent(),(i=[s[0].offsetTop,s[0].offsetLeft])[0]+ae(o)[0]>=0&&i[0]+ae(o)[0]<a.height()-o.outerHeight(!1)&&i[1]+ae(o)[1]>=0&&i[1]+ae(o)[1]<a.width()-o.outerWidth(!1)},mcsInSight:e.expr[":"].mcsInSight||function(t,a,i){var o,s,n,r,l=e(t),c=l.parents(".mCSB_container"),d="exact"===i[3]?[[1,0],[1,0]]:[[.9,.1],[.6,.4]];if(c.length)return o=[l.outerHeight(!1),l.outerWidth(!1)],n=[c[0].offsetTop+ae(l)[0],c[0].offsetLeft+ae(l)[1]],s=[c.parent()[0].offsetHeight,c.parent()[0].offsetWidth],n[0]-s[0]*(r=[o[0]<s[0]?d[0]:d[1],o[1]<s[1]?d[0]:d[1]])[0][0]<0&&n[0]+o[0]-s[0]*r[0][1]>=0&&n[1]-s[1]*r[1][0]<0&&n[1]+o[1]-s[1]*r[1][1]>=0},mcsOverflow:e.expr[":"].mcsOverflow||function(t){var a=e(t).data(i);if(a)return a.overflowed[0]||a.overflowed[1]}})})}()});
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: search, woocommerce search, image search, ajax search, search shortcode, l
5
  Requires at least: 3.9
6
  Tested up to: 5.7
7
  Requires PHP: 5.2.4
8
- Stable tag: 4.6
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -193,6 +193,11 @@ Yes we do. We try our best to help free users with customisation requests and we
193
 
194
  == Changelog ==
195
 
 
 
 
 
 
196
  = 4.6 =
197
  * Fixed - AJAX search results was not scrolling on search form scroll.
198
  * Fixed - Stopwords was not excluding from search.
5
  Requires at least: 3.9
6
  Tested up to: 5.7
7
  Requires PHP: 5.2.4
8
+ Stable tag: 4.6.1
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
193
 
194
  == Changelog ==
195
 
196
+ = 4.6.1 =
197
+ * Fixed - Broken AJAX search results scrollbar.
198
+ * Fixed - Security issue in plugin settings (Thanks to Jinson Varghese Behanan from Astra Security).
199
+ * Improved - Do not search special character stopwords.
200
+
201
  = 4.6 =
202
  * Fixed - AJAX search results was not scrolling on search form scroll.
203
  * Fixed - Stopwords was not excluding from search.