Crayon Syntax Highlighter - Version 2.1.2

Version Description

  • ADDED:
    • R language
    • TinyMCE is automatically added to the comment box when the Tag Editor is enabled on the frontend
    • SQL Management Studio 2012 Theme
  • FIXED:
    • bbPress Tag Editor button wasn't showing
    • Slashes are now added to post content before legacy tag conversion, since wp_update_post removes them
    • PowerShell improvements
    • Empty directory path on some pages
    • Expanding uses absolute positioning, so it will stay on top of other elements
    • When expanded the toolbar controls move left for easier toggling
    • CSS conflicts with wordpress themes causing line-height and font-size overrides to be ignored
Download this release

Release Info

Developer akarmenia
Plugin Icon wp plugin Crayon Syntax Highlighter
Version 2.1.2
Comparing to
See all releases

Code changes from version 2.1.0 to 2.1.2

Files changed (50) hide show
  1. crayon_fonts.class.php +18 -11
  2. crayon_formatter.class.php +2 -2
  3. crayon_langs.class.php +8 -2
  4. crayon_resource.class.php +73 -9
  5. crayon_settings_wp.class.php +4 -2
  6. crayon_themes.class.php +6 -45
  7. crayon_wp.class.php +20 -7
  8. css/crayon_style.css +21 -0
  9. css/global_style.css +1 -1
  10. js/crayon.js +258 -208
  11. js/jquery-ui/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
  12. js/jquery-ui/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
  13. js/jquery-ui/images/ui-bg_flat_10_000000_40x100.png +0 -0
  14. js/jquery-ui/images/ui-bg_highlight-soft_100_dbf1ff_1x100.png +0 -0
  15. js/jquery-ui/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
  16. js/jquery-ui/images/ui-bg_highlight-soft_60_dedede_1x100.png +0 -0
  17. js/jquery-ui/images/ui-bg_highlight-soft_65_f2f2f2_1x100.png +0 -0
  18. js/jquery-ui/images/ui-bg_highlight-soft_75_fefc95_1x100.png +0 -0
  19. js/jquery-ui/images/ui-bg_inset-soft_100_f2f2f2_1x100.png +0 -0
  20. js/jquery-ui/images/ui-icons_0879ef_256x240.png +0 -0
  21. js/jquery-ui/images/ui-icons_222222_256x240.png +0 -0
  22. js/jquery-ui/images/ui-icons_228ef1_256x240.png +0 -0
  23. js/jquery-ui/images/ui-icons_474747_256x240.png +0 -0
  24. js/jquery-ui/images/ui-icons_616161_256x240.png +0 -0
  25. js/jquery-ui/images/ui-icons_ffd27a_256x240.png +0 -0
  26. js/jquery-ui/images/ui-icons_ffffff_256x240.png +0 -0
  27. js/jquery-ui/jquery-ui.css +0 -383
  28. js/jquery-ui/jquery-ui.js +0 -6
  29. js/test.html +0 -14
  30. langs/arduino/arduino.txt +6 -4
  31. langs/arduino/enity.txt +2 -0
  32. langs/arduino/keywords.txt +7 -0
  33. langs/arduino/statement.txt +51 -0
  34. langs/arduino/types.txt +13 -0
  35. langs/default/default.txt +1 -1
  36. langs/ps/ps.txt +9 -9
  37. langs/python/python.txt +1 -1
  38. langs/r/r.txt +21 -0
  39. langs/r/reserved.txt +11 -0
  40. langs/r/statement.txt +3 -0
  41. langs/r/type.txt +6 -0
  42. readme.txt +29 -38
  43. themes/arduino-ide/arduino-ide.css +171 -0
  44. themes/ssms2012/ssms2012.css +170 -0
  45. trans/crayon-syntax-highlighter-tr_TR.mo +0 -0
  46. trans/crayon-syntax-highlighter-tr_TR.po +300 -296
  47. util/sample/r.txt +14 -0
  48. util/tag-editor/crayon_tag_editor.js +14 -10
  49. util/tag-editor/crayon_tag_editor_wp.class.php +17 -13
  50. util/theme-editor/theme_editor.php +18 -19
crayon_fonts.class.php CHANGED
@@ -3,7 +3,7 @@ require_once ('global.php');
3
  require_once (CRAYON_RESOURCE_PHP);
4
 
5
  /* Manages fonts once they are loaded. */
6
- class CrayonFonts extends CrayonUsedResourceCollection {
7
  // Properties and Constants ===============================================
8
 
9
  const DEFAULT_FONT = 'monaco';
@@ -13,17 +13,24 @@ class CrayonFonts extends CrayonUsedResourceCollection {
13
 
14
  function __construct() {
15
  $this->set_default(self::DEFAULT_FONT, self::DEFAULT_FONT_NAME);
16
- $this->directory(CRAYON_FONT_PATH);
17
- }
 
18
 
19
- // XXX Override
20
- public function path($id) {
21
- return CRAYON_FONT_PATH . "$id.css";
22
- }
23
-
24
- // XXX Override
25
- public function get_url($id) {
26
- return CrayonGlobalSettings::plugin_path() . CrayonUtil::pathf(CRAYON_FONT_DIR) . $id . '.css';
 
 
 
 
 
27
  }
 
28
  }
29
  ?>
3
  require_once (CRAYON_RESOURCE_PHP);
4
 
5
  /* Manages fonts once they are loaded. */
6
+ class CrayonFonts extends CrayonUserResourceCollection {
7
  // Properties and Constants ===============================================
8
 
9
  const DEFAULT_FONT = 'monaco';
13
 
14
  function __construct() {
15
  $this->set_default(self::DEFAULT_FONT, self::DEFAULT_FONT_NAME);
16
+ $this->directory(CRAYON_FONT_PATH);
17
+ $this->relative_directory(CRAYON_FONT_DIR);
18
+ $this->extension('css');
19
 
20
+ CrayonLog::debug("Setting font directories");
21
+ $upload = CrayonGlobalSettings::upload_path();
22
+ if ($upload) {
23
+ $this->user_directory($upload . CRAYON_FONT_DIR);
24
+ if (!is_dir($this->user_directory())) {
25
+ CrayonGlobalSettings::mkdir($this->user_directory());
26
+ CrayonLog::debug($this->user_directory(), "THEME DIR");
27
+ }
28
+ } else {
29
+ CrayonLog::syslog("Upload directory is empty: " . $upload);
30
+ }
31
+ CrayonLog::debug($this->directory());
32
+ CrayonLog::debug($this->user_directory());
33
  }
34
+
35
  }
36
  ?>
crayon_formatter.class.php CHANGED
@@ -460,8 +460,8 @@ class CrayonFormatter {
460
 
461
  if ($print_nums !== FALSE) {
462
  $output .= '
463
- <td class="crayon-nums '.$num_vis.'" data-settings="'.$num_settings.'" style="'.$font_style.'">
464
- <div class="crayon-nums-content">'.$print_nums.'</div>
465
  </td>';
466
  }
467
  // XXX
460
 
461
  if ($print_nums !== FALSE) {
462
  $output .= '
463
+ <td class="crayon-nums '.$num_vis.'" data-settings="'.$num_settings.'">
464
+ <div class="crayon-nums-content" style="'.$font_style.'">'.$print_nums.'</div>
465
  </td>';
466
  }
467
  // XXX
crayon_langs.class.php CHANGED
@@ -253,12 +253,12 @@ class CrayonLangs extends CrayonResourceCollection {
253
  /* Compare two languages by name */
254
  public static function langcmp($a, $b) {
255
  $a = strtolower($a->name());
256
- $b = strtolower($b->name());
257
  if ($a == $b) {
258
  return 0;
259
  } else {
260
  return ($a < $b) ? -1 : 1;
261
- }
262
  }
263
 
264
  public static function sort_by_name($langs) {
@@ -321,6 +321,12 @@ class CrayonLang extends CrayonVersionResource {
321
  $this->modes = CrayonParser::modes();
322
  }
323
 
 
 
 
 
 
 
324
  function ext($ext = NULL) {
325
  if ($ext === NULL) {
326
  return $this->ext;
253
  /* Compare two languages by name */
254
  public static function langcmp($a, $b) {
255
  $a = strtolower($a->name());
256
+ $b = strtolower($b->name());
257
  if ($a == $b) {
258
  return 0;
259
  } else {
260
  return ($a < $b) ? -1 : 1;
261
+ }
262
  }
263
 
264
  public static function sort_by_name($langs) {
321
  $this->modes = CrayonParser::modes();
322
  }
323
 
324
+ // Override
325
+ function clean_id($id) {
326
+ $id = CrayonUtil::space_to_hyphen( strtolower(trim($id)) );
327
+ return preg_replace('/[^\w-+#]/msi', '', $id);
328
+ }
329
+
330
  function ext($ext = NULL) {
331
  if ($ext === NULL) {
332
  return $this->ext;
crayon_resource.class.php CHANGED
@@ -221,13 +221,13 @@ class CrayonResourceCollection {
221
  }
222
  }
223
 
224
- public function get_url($id) {
225
  return '';
226
  }
227
 
228
  public function get_css($id, $ver = NULL) {
229
  $resource = $this->get($id);
230
- return '<link rel="stylesheet" type="text/css" href="' . $this->get_url($resource->id()) . ($ver ? "?ver=$ver" : '') . '" />' . CRAYON_NL;
231
  }
232
  }
233
 
@@ -275,12 +275,12 @@ class CrayonUsedResourceCollection extends CrayonResourceCollection {
275
  public function resource_instance($id, $name = NULL) {
276
  return new CrayonUsedResource($id, $name);
277
  }
278
-
279
  public function get_used_css() {
280
  $used = $this->get_used();
281
  $css = array();
282
  foreach ($used as $resource) {
283
- $url = $this->get_url($resource->id());
284
  $css[$resource->id()] = $url;
285
  }
286
  return $css;
@@ -290,6 +290,10 @@ class CrayonUsedResourceCollection extends CrayonResourceCollection {
290
  class CrayonUserResourceCollection extends CrayonUsedResourceCollection {
291
  private $user_dir = '';
292
  private $curr_dir = NULL;
 
 
 
 
293
 
294
  // XXX Override
295
  public function resource_instance($id, $name = NULL) {
@@ -306,6 +310,20 @@ class CrayonUserResourceCollection extends CrayonUsedResourceCollection {
306
  }
307
  }
308
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
309
  public function load_resources($dir = NULL) {
310
  $this->curr_dir = $this->directory();
311
  parent::load_resources($this->curr_dir);
@@ -318,6 +336,54 @@ class CrayonUserResourceCollection extends CrayonUsedResourceCollection {
318
  return $this->curr_dir;
319
  }
320
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
321
  }
322
 
323
  class CrayonResource {
@@ -325,7 +391,7 @@ class CrayonResource {
325
  private $name = '';
326
 
327
  function __construct($id, $name = NULL) {
328
- $id = self::clean_id($id);
329
  CrayonUtil::str($this->id, $id);
330
  ( empty($name) ) ? $this->name( $this->clean_name($this->id) ) : $this->name($name);
331
  }
@@ -346,14 +412,12 @@ class CrayonResource {
346
  }
347
  }
348
 
349
- // Override
350
- static function clean_id($id) {
351
  $id = CrayonUtil::space_to_hyphen( strtolower(trim($id)) );
352
  return preg_replace('#[^\w-]#msi', '', $id);
353
  }
354
 
355
- // Override
356
- static function clean_name($id) {
357
  $id = CrayonUtil::hyphen_to_space( strtolower(trim($id)) );
358
  return CrayonUtil::ucwords($id);
359
  }
221
  }
222
  }
223
 
224
+ public function url($id) {
225
  return '';
226
  }
227
 
228
  public function get_css($id, $ver = NULL) {
229
  $resource = $this->get($id);
230
+ return '<link rel="stylesheet" type="text/css" href="' . $this->url($resource->id()) . ($ver ? "?ver=$ver" : '') . '" />' . CRAYON_NL;
231
  }
232
  }
233
 
275
  public function resource_instance($id, $name = NULL) {
276
  return new CrayonUsedResource($id, $name);
277
  }
278
+
279
  public function get_used_css() {
280
  $used = $this->get_used();
281
  $css = array();
282
  foreach ($used as $resource) {
283
+ $url = $this->url($resource->id());
284
  $css[$resource->id()] = $url;
285
  }
286
  return $css;
290
  class CrayonUserResourceCollection extends CrayonUsedResourceCollection {
291
  private $user_dir = '';
292
  private $curr_dir = NULL;
293
+ // TODO better to use a base dir and relative
294
+ private $relative_directory = NULL;
295
+ // TODO move this higher up inheritance
296
+ private $extension = '';
297
 
298
  // XXX Override
299
  public function resource_instance($id, $name = NULL) {
310
  }
311
  }
312
 
313
+ public function relative_directory($relative_directory = NULL) {
314
+ if ($relative_directory == NULL) {
315
+ return $this->relative_directory;
316
+ }
317
+ $this->relative_directory = $relative_directory;
318
+ }
319
+
320
+ public function extension($extension = NULL) {
321
+ if ($extension == NULL) {
322
+ return $this->extension;
323
+ }
324
+ $this->extension = $extension;
325
+ }
326
+
327
  public function load_resources($dir = NULL) {
328
  $this->curr_dir = $this->directory();
329
  parent::load_resources($this->curr_dir);
336
  return $this->curr_dir;
337
  }
338
 
339
+ public function dir_is_user($id, $user = NULL) {
340
+ if ($user === NULL) {
341
+ if ($this->is_state_loading()) {
342
+ // We seem to be loading resources - use current directory
343
+ $user = $this->current_directory() == $this->user_directory();
344
+ } else {
345
+ $theme = $this->get($id);
346
+ if ($theme) {
347
+ $user = $theme->user();
348
+ } else {
349
+ $user = FALSE;
350
+ }
351
+ }
352
+ }
353
+ return $user;
354
+ }
355
+
356
+ public function dirpath($user = NULL) {
357
+ $path = $user ? $this->user_directory() : $this->directory();
358
+ return CrayonUtil::path_slash($path);
359
+ }
360
+
361
+ public function dirpath_for_id($id, $user = NULL) {
362
+ $user = $this->dir_is_user($id, $user);
363
+ return $this->dirpath($user) . $id;
364
+ }
365
+
366
+ public function dirurl($user = NULL) {
367
+ $path = $user ? CrayonGlobalSettings::upload_url() : CrayonGlobalSettings::plugin_path();
368
+ return CrayonUtil::path_slash($path . $this->relative_directory());
369
+ }
370
+
371
+ // XXX Override
372
+ public function path($id, $user = NULL) {
373
+ $user = $this->dir_is_user($id, $user);
374
+ return $this->dirpath($user) . $this->filename($id, $user);
375
+ }
376
+
377
+ // XXX Override
378
+ public function url($id, $user = NULL) {
379
+ $user = $this->dir_is_user($id, $user);
380
+ return $this->dirurl($user) . $this->filename($id, $user);
381
+ }
382
+
383
+ public function filename($id, $user = NULL) {
384
+ return "$id.$this->extension";
385
+ }
386
+
387
  }
388
 
389
  class CrayonResource {
391
  private $name = '';
392
 
393
  function __construct($id, $name = NULL) {
394
+ $id = $this->clean_id($id);
395
  CrayonUtil::str($this->id, $id);
396
  ( empty($name) ) ? $this->name( $this->clean_name($this->id) ) : $this->name($name);
397
  }
412
  }
413
  }
414
 
415
+ function clean_id($id) {
 
416
  $id = CrayonUtil::space_to_hyphen( strtolower(trim($id)) );
417
  return preg_replace('#[^\w-]#msi', '', $id);
418
  }
419
 
420
+ function clean_name($id) {
 
421
  $id = CrayonUtil::hyphen_to_space( strtolower(trim($id)) );
422
  return CrayonUtil::ucwords($id);
423
  }
crayon_settings_wp.class.php CHANGED
@@ -149,8 +149,8 @@ class CrayonSettingsWP {
149
  'stockThemes' => $stockThemes,
150
  'userThemes' => $userThemes,
151
  'defaultTheme' => CrayonThemes::DEFAULT_THEME,
152
- 'themesURL' => CrayonThemes::dir_url(),
153
- 'userThemesURL' => CrayonThemes::dir_url(true),
154
  'sampleCode' => self::SAMPLE_CODE,
155
  'dialogFunction' => 'wpdialog'
156
  );
@@ -1014,6 +1014,8 @@ class Human {
1014
  }
1015
  $fonts_array = CrayonResources::fonts()->get_array();
1016
  self::dropdown(CrayonSettings::FONT, FALSE, TRUE, TRUE, $fonts_array);
 
 
1017
  echo '<span class="crayon-span-10"></span>';
1018
  self::checkbox(array(CrayonSettings::FONT_SIZE_ENABLE, crayon__('Custom Font Size') . ' '), FALSE);
1019
  self::textbox(array('id' => CrayonSettings::FONT_SIZE, 'size' => 2));
149
  'stockThemes' => $stockThemes,
150
  'userThemes' => $userThemes,
151
  'defaultTheme' => CrayonThemes::DEFAULT_THEME,
152
+ 'themesURL' => CrayonResources::themes()->dirurl(false),
153
+ 'userThemesURL' => CrayonResources::themes()->dirurl(true),
154
  'sampleCode' => self::SAMPLE_CODE,
155
  'dialogFunction' => 'wpdialog'
156
  );
1014
  }
1015
  $fonts_array = CrayonResources::fonts()->get_array();
1016
  self::dropdown(CrayonSettings::FONT, FALSE, TRUE, TRUE, $fonts_array);
1017
+ echo '<span class="crayon-span-5"></span>';
1018
+ echo '<a href="http://bit.ly/Yr2Xv6" target="_blank">', crayon__('Add More') , '</a>';
1019
  echo '<span class="crayon-span-10"></span>';
1020
  self::checkbox(array(CrayonSettings::FONT_SIZE_ENABLE, crayon__('Custom Font Size') . ' '), FALSE);
1021
  self::textbox(array('id' => CrayonSettings::FONT_SIZE, 'size' => 2));
crayon_themes.class.php CHANGED
@@ -15,7 +15,11 @@ class CrayonThemes extends CrayonUserResourceCollection {
15
  // Methods ================================================================
16
 
17
  function __construct() {
 
18
  $this->directory(CRAYON_THEME_PATH);
 
 
 
19
  CrayonLog::debug("Setting theme directories");
20
  $upload = CrayonGlobalSettings::upload_path();
21
  if ($upload) {
@@ -29,54 +33,11 @@ class CrayonThemes extends CrayonUserResourceCollection {
29
  }
30
  CrayonLog::debug($this->directory());
31
  CrayonLog::debug($this->user_directory());
32
- $this->set_default(self::DEFAULT_THEME, self::DEFAULT_THEME_NAME);
33
  }
34
 
35
  // XXX Override
36
- public function path($id, $user = NULL) {
37
- return $this->dirpath($id, $user) . "$id.css";
38
- }
39
-
40
- public function dirpath($id, $user = NULL) {
41
- $path = NULL;
42
- if ($user === NULL) {
43
- if ($this->is_state_loading()) {
44
- // We seem to be loading resources - use current directory
45
- $user = $this->current_directory() == $this->user_directory();
46
- } else {
47
- $theme = $this->get($id);
48
- if ($theme) {
49
- $user = $theme->user();
50
- } else {
51
- $user = FALSE;
52
- }
53
- }
54
- }
55
- $path = $user ? $this->user_directory() : $this->directory();
56
- return CrayonUtil::path_slash($path . $id);
57
- }
58
-
59
- // XXX Override
60
- public function get_url($id, $user = NULL) {
61
- if ($user === NULL) {
62
- if ($this->is_state_loading()) {
63
- // We seem to be loading resources - use current directory
64
- $user = $this->current_directory() == $this->user_directory();
65
- } else {
66
- $theme = $this->get($id);
67
- if ($theme) {
68
- $user = $theme->user();
69
- } else {
70
- $user = FALSE;
71
- }
72
- }
73
- }
74
- return self::dir_url($user) . $id . '/' . $id . '.css';
75
- }
76
-
77
- public static function dir_url($user = FALSE) {
78
- $path = $user ? CrayonGlobalSettings::upload_url() : CrayonGlobalSettings::plugin_path();
79
- return $path . CrayonUtil::pathf(CRAYON_THEME_DIR);
80
  }
81
 
82
  }
15
  // Methods ================================================================
16
 
17
  function __construct() {
18
+ $this->set_default(self::DEFAULT_THEME, self::DEFAULT_THEME_NAME);
19
  $this->directory(CRAYON_THEME_PATH);
20
+ $this->relative_directory(CRAYON_THEME_DIR);
21
+ $this->extension('css');
22
+
23
  CrayonLog::debug("Setting theme directories");
24
  $upload = CrayonGlobalSettings::upload_path();
25
  if ($upload) {
33
  }
34
  CrayonLog::debug($this->directory());
35
  CrayonLog::debug($this->user_directory());
 
36
  }
37
 
38
  // XXX Override
39
+ public function filename($id, $user = NULL) {
40
+ return CrayonUtil::path_slash($id) . parent::filename($id, $user);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41
  }
42
 
43
  }
crayon_wp.class.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Crayon Syntax Highlighter
4
  Plugin URI: http://aramk.com/projects/crayon-syntax-highlighter
5
  Description: Supports multiple languages, themes, highlighting from a URL, local file or post text.
6
- Version: 2.1.0
7
  Author: Aram Kocharyan
8
  Author URI: http://aramk.com/
9
  Text Domain: crayon-syntax-highlighter
@@ -189,13 +189,10 @@ class CrayonWP {
189
 
190
  /* For manually highlighting code, useful for other PHP contexts */
191
  public static function highlight($code) {
192
- $crayon_str = '';
193
-
194
  $captures = CrayonWP::capture_crayons(0, $code);
195
  $the_captures = $captures['capture'];
196
  $the_content = $captures['content'];
197
- foreach ($the_captures as $capture) {
198
- $id = $capture['id'];
199
  $atts = $capture['atts'];
200
  $no_enqueue = array(
201
  CrayonSettings::ENQUEUE_THEMES => FALSE,
@@ -886,6 +883,7 @@ class CrayonWP {
886
 
887
  public static function crayon_theme_css() {
888
  global $CRAYON_VERSION;
 
889
  $css = CrayonResources::themes()->get_used_css();
890
  foreach ($css as $theme => $url) {
891
  wp_enqueue_style('crayon-theme-' . $theme, $url, array(), $CRAYON_VERSION);
@@ -894,6 +892,7 @@ class CrayonWP {
894
 
895
  public static function crayon_font_css() {
896
  global $CRAYON_VERSION;
 
897
  $css = CrayonResources::fonts()->get_used_css();
898
  foreach ($css as $font_id => $url) {
899
  wp_enqueue_style('crayon-font-' . $font_id, $url, array(), $CRAYON_VERSION);
@@ -1147,7 +1146,7 @@ class CrayonWP {
1147
  if ($post_captures['has_captured'] === TRUE) {
1148
  $post_obj = array();
1149
  $post_obj['ID'] = $postID;
1150
- $post_obj['post_content'] = $post_captures['content'];
1151
  wp_update_post($post_obj);
1152
  CrayonLog::syslog("Converted Crayons in post ID $postID to pre tags", 'CONVERT');
1153
  }
@@ -1188,6 +1187,16 @@ class CrayonWP {
1188
  return str_replace($original, CrayonUtil::html_element('pre', $code, $newAtts), $wp_content);
1189
  }
1190
 
 
 
 
 
 
 
 
 
 
 
1191
  }
1192
 
1193
  // Only if WP is loaded
@@ -1228,7 +1237,11 @@ if (defined('ABSPATH')) {
1228
  add_filter('get_the_excerpt', 'CrayonWP::post_get_excerpt', 100);
1229
  add_filter('the_excerpt', 'CrayonWP::post_excerpt', 100);
1230
 
1231
- add_action('template_redirect', 'CrayonWP::wp_head');
 
 
 
 
1232
  } else {
1233
  // Update between versions
1234
  CrayonWP::update();
3
  Plugin Name: Crayon Syntax Highlighter
4
  Plugin URI: http://aramk.com/projects/crayon-syntax-highlighter
5
  Description: Supports multiple languages, themes, highlighting from a URL, local file or post text.
6
+ Version: 2.1.2
7
  Author: Aram Kocharyan
8
  Author URI: http://aramk.com/
9
  Text Domain: crayon-syntax-highlighter
189
 
190
  /* For manually highlighting code, useful for other PHP contexts */
191
  public static function highlight($code) {
 
 
192
  $captures = CrayonWP::capture_crayons(0, $code);
193
  $the_captures = $captures['capture'];
194
  $the_content = $captures['content'];
195
+ foreach ($the_captures as $id => $capture) {
 
196
  $atts = $capture['atts'];
197
  $no_enqueue = array(
198
  CrayonSettings::ENQUEUE_THEMES => FALSE,
883
 
884
  public static function crayon_theme_css() {
885
  global $CRAYON_VERSION;
886
+ CrayonSettingsWP::load_settings();
887
  $css = CrayonResources::themes()->get_used_css();
888
  foreach ($css as $theme => $url) {
889
  wp_enqueue_style('crayon-theme-' . $theme, $url, array(), $CRAYON_VERSION);
892
 
893
  public static function crayon_font_css() {
894
  global $CRAYON_VERSION;
895
+ CrayonSettingsWP::load_settings();
896
  $css = CrayonResources::fonts()->get_used_css();
897
  foreach ($css as $font_id => $url) {
898
  wp_enqueue_style('crayon-font-' . $font_id, $url, array(), $CRAYON_VERSION);
1146
  if ($post_captures['has_captured'] === TRUE) {
1147
  $post_obj = array();
1148
  $post_obj['ID'] = $postID;
1149
+ $post_obj['post_content'] = addslashes($post_captures['content']);
1150
  wp_update_post($post_obj);
1151
  CrayonLog::syslog("Converted Crayons in post ID $postID to pre tags", 'CONVERT');
1152
  }
1187
  return str_replace($original, CrayonUtil::html_element('pre', $code, $newAtts), $wp_content);
1188
  }
1189
 
1190
+ // Add TinyMCE to comments
1191
+ public static function tinymce_comment_enable($args) {
1192
+ if (function_exists('wp_editor')) {
1193
+ ob_start();
1194
+ wp_editor('', 'comment', array('tinymce'));
1195
+ $args['comment_field'] = ob_get_clean();
1196
+ }
1197
+ return $args;
1198
+ }
1199
+
1200
  }
1201
 
1202
  // Only if WP is loaded
1237
  add_filter('get_the_excerpt', 'CrayonWP::post_get_excerpt', 100);
1238
  add_filter('the_excerpt', 'CrayonWP::post_excerpt', 100);
1239
 
1240
+ add_action('template_redirect', 'CrayonWP::wp_head', 0);
1241
+
1242
+ if (CrayonGlobalSettings::val(CrayonSettings::TAG_EDITOR_FRONT)) {
1243
+ add_filter('comment_form_defaults', 'CrayonWP::tinymce_comment_enable');
1244
+ }
1245
  } else {
1246
  // Update between versions
1247
  CrayonWP::update();
css/crayon_style.css CHANGED
@@ -361,6 +361,27 @@ This has been disabled to allow more flexibility in changing font sizes.
361
  right: 0;
362
  }
363
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
364
  .crayon-syntax .crayon-plain-wrap {
365
  height: auto !important;
366
  padding: 0 !important;
361
  right: 0;
362
  }
363
 
364
+ .crayon-syntax.crayon-expanded {
365
+ position: absolute !important;
366
+ margin: 0 !important;
367
+ }
368
+
369
+ .crayon-placeholder {
370
+ width: 100% !important;
371
+ }
372
+
373
+ .crayon-toolbar-visible .crayon-toolbar {
374
+ position: relative !important;
375
+ margin-top: 0 !important;
376
+ display: block !important;
377
+ }
378
+
379
+ .crayon-syntax.crayon-expanded .crayon-toolbar .crayon-tools {
380
+ position: relative;
381
+ right: auto;
382
+ float: left !important;
383
+ }
384
+
385
  .crayon-syntax .crayon-plain-wrap {
386
  height: auto !important;
387
  padding: 0 !important;
css/global_style.css CHANGED
@@ -268,4 +268,4 @@
268
 
269
  .wp_themeSkin span.mce_crayon_tinymce {
270
  background: url(images/crayon_tinymce.png);
271
- }
268
 
269
  .wp_themeSkin span.mce_crayon_tinymce {
270
  background: url(images/crayon_tinymce.png);
271
+ }
js/crayon.js CHANGED
@@ -64,6 +64,8 @@
64
  var CRAYON_NUMS_BUTTON = '.crayon-nums-button';
65
  var CRAYON_WRAP_BUTTON = '.crayon-wrap-button';
66
  var CRAYON_EXPAND_BUTTON = '.crayon-expand-button';
 
 
67
  var CRAYON_POPUP_BUTTON = '.crayon-popup-button';
68
  var CRAYON_COPY_BUTTON = '.crayon-copy-button';
69
  var CRAYON_PLAIN_BUTTON = '.crayon-plain-button';
@@ -74,14 +76,15 @@
74
 
75
  CrayonSyntax = new function () {
76
  var base = this;
77
- var crayon = new Object();
78
  var settings;
79
  var strings;
80
  var currUID = 0;
 
81
 
82
  base.init = function () {
83
- if (typeof crayon == 'undefined') {
84
- crayon = new Object();
85
  }
86
  settings = CrayonSyntaxSettings;
87
  strings = CrayonSyntaxStrings;
@@ -126,36 +129,36 @@
126
  var copyButton = c.find(CRAYON_COPY_BUTTON);
127
  var plainButton = c.find(CRAYON_PLAIN_BUTTON);
128
 
129
- crayon[uid] = c;
130
- crayon[uid].toolbar = toolbar;
131
- crayon[uid].plain = plain;
132
- crayon[uid].info = info;
133
- crayon[uid].main = main;
134
- crayon[uid].table = table;
135
- crayon[uid].code = code;
136
- crayon[uid].title = title;
137
- crayon[uid].tools = tools;
138
- crayon[uid].nums = nums;
139
- crayon[uid].nums_content = numsContent;
140
- crayon[uid].numsButton = numsButton;
141
- crayon[uid].wrapButton = wrapButton;
142
- crayon[uid].expandButton = expandButton;
143
- crayon[uid].popup_button = popupButton;
144
- crayon[uid].copy_button = copyButton;
145
- crayon[uid].plainButton = plainButton;
146
- crayon[uid].numsVisible = true;
147
- crayon[uid].wrapped = false;
148
- crayon[uid].plainVisible = false;
149
-
150
- crayon[uid].toolbar_delay = 0;
151
- crayon[uid].time = 1;
152
 
153
  // Set plain
154
  $(CRAYON_PLAIN).css('z-index', 0);
155
 
156
  // XXX Remember CSS dimensions
157
  var mainStyle = main.style();
158
- crayon[uid].main_style = {
159
  'height': mainStyle && mainStyle.height || '',
160
  'max-height': mainStyle && mainStyle.maxHeight || '',
161
  'min-height': mainStyle && mainStyle.minHeight || '',
@@ -166,8 +169,8 @@
166
 
167
  var load_timer;
168
  var i = 0;
169
- crayon[uid].loading = true;
170
- crayon[uid].scrollBlockFix = false;
171
 
172
  // Register click events
173
  numsButton.click(function () {
@@ -200,12 +203,12 @@
200
  updateNumsButton(uid);
201
  }
202
 
203
- if (typeof crayon[uid].expanded == 'undefined') {
204
  // Determine if we should enable code expanding toggling
205
- if (Math.abs(crayon[uid].main.width() - crayon[uid].table.width()) < 10) {
206
- crayon[uid].expandButton.hide();
207
  } else {
208
- crayon[uid].expandButton.show();
209
  }
210
  }
211
 
@@ -213,7 +216,7 @@
213
  if (/*last_num_width != nums.width() ||*/ i == 5) {
214
  clearInterval(load_timer);
215
  //crayon[uid].removeClass(CRAYON_LOADING);
216
- crayon[uid].loading = false;
217
  }
218
  i++;
219
  };
@@ -221,7 +224,7 @@
221
  fixScrollBlank(uid);
222
 
223
  // Add ref to num for each line
224
- $(CRAYON_NUM, crayon[uid]).each(function () {
225
  var lineID = $(this).attr('data-line');
226
  var line = $('#' + lineID);
227
  var height = line.style('height');
@@ -235,10 +238,10 @@
235
  main.css('z-index', 1);
236
 
237
  // Disable certain features for touchscreen devices
238
- crayon.touchscreen = (c.filter('[data-settings~="touchscreen"]').length != 0);
239
 
240
  // Used to hide info
241
- if (!crayon.touchscreen) {
242
  main.click(function () {
243
  crayonInfo(uid, '', false);
244
  });
@@ -252,7 +255,7 @@
252
 
253
  // Used for code popup
254
  if (c.filter('[data-settings~="no-popup"]').length == 0) {
255
- crayon[uid].popup_settings = popupWindow(popupButton, {
256
  height: screen.height - 200,
257
  width: screen.width - 100,
258
  top: 75,
@@ -269,12 +272,12 @@
269
 
270
  plain.css('opacity', 0);
271
 
272
- crayon[uid].toolbar_visible = true;
273
- crayon[uid].toolbarMouseover = false;
274
  // If a toolbar with mouseover was found
275
- if (toolbar.filter('[data-settings~="mouseover"]').length != 0 && !crayon.touchscreen) {
276
- crayon[uid].toolbarMouseover = true;
277
- crayon[uid].toolbar_visible = false;
278
 
279
  toolbar.css('margin-top', '-' + toolbar.height() + 'px');
280
  toolbar.hide();
@@ -298,7 +301,7 @@
298
  }
299
  // Enable delay on mouseout
300
  if (toolbar.filter('[data-settings~="delay"]').length != 0) {
301
- crayon[uid].toolbar_delay = 500;
302
  }
303
  // Use .hover() for chrome, but in firefox mouseover/mouseout worked best
304
  c.mouseenter(function () {
@@ -307,7 +310,7 @@
307
  .mouseleave(function () {
308
  toggleToolbar(uid, false);
309
  });
310
- } else if (crayon.touchscreen) {
311
  toolbar.show();
312
  }
313
 
@@ -317,7 +320,7 @@
317
  }
318
 
319
  // Plain show events
320
- if (plain.length != 0 && !crayon.touchscreen) {
321
  if (plain.filter('[data-settings~="dblclick"]').length != 0) {
322
  main.dblclick(function () {
323
  CrayonSyntax.togglePlain(uid);
@@ -344,7 +347,7 @@
344
  // Scrollbar show events
345
  var expand = c.filter('[data-settings~="expand"]').length != 0;
346
  // crayon[uid].mouse_expand = expand;
347
- if (!crayon.touchscreen && c.filter('[data-settings~="scroll-mouseover"]').length != 0) {
348
  // Disable on touchscreen devices and when set to mouseover
349
  main.css('overflow', 'hidden');
350
  plain.css('overflow', 'hidden');
@@ -369,16 +372,16 @@
369
 
370
  // Disable animations
371
  if (c.filter('[data-settings~="disable-anim"]').length != 0) {
372
- crayon[uid].time = 0;
373
  }
374
 
375
  // Wrap
376
  if (c.filter('[data-settings~="wrap"]').length != 0) {
377
- crayon[uid].wrapped = true;
378
  }
379
 
380
  // Determine if Mac
381
- crayon[uid].mac = c.hasClass('crayon-os-mac');
382
 
383
  // Update clickable buttons
384
  updateNumsButton(uid);
@@ -387,9 +390,9 @@
387
  };
388
 
389
  var makeUID = function (uid) {
390
- CrayonUtil.log(crayon);
391
- if (typeof crayon[uid] == 'undefined') {
392
- crayon[uid] = $('#' + uid);
393
  CrayonUtil.log('make ' + uid);
394
  return true;
395
  }
@@ -403,20 +406,20 @@
403
  };
404
 
405
  var codePopup = function (uid) {
406
- if (typeof crayon[uid] == 'undefined') {
407
  return makeUID(uid);
408
  }
409
- var settings = crayon[uid].popup_settings;
410
  if (settings.data) {
411
  // Already done
412
  return;
413
  }
414
 
415
- var clone = crayon[uid].clone(true);
416
  clone.removeClass('crayon-wrapped');
417
 
418
  // Unwrap
419
- if (crayon[uid].wrapped) {
420
  $(CRAYON_NUM, clone).each(function () {
421
  var line_id = $(this).attr('data-line');
422
  var line = $('#' + line_id);
@@ -431,7 +434,7 @@
431
  clone.find(CRAYON_MAIN).css('height', '');
432
 
433
  var code = '';
434
- if (crayon[uid].plainVisible) {
435
  code = clone.find(CRAYON_PLAIN);
436
  } else {
437
  code = clone.find(CRAYON_MAIN);
@@ -443,27 +446,27 @@
443
 
444
  base.minimize = function (uid) {
445
  var button = $('<div class="crayon-minimize crayon-button"><div>');
446
- crayon[uid].tools.append(button);
447
  // TODO translate
448
- crayon[uid].origTitle = crayon[uid].title.html();
449
- if (!crayon[uid].origTitle) {
450
- crayon[uid].title.html(strings.minimize);
451
  };
452
  var cls = 'crayon-minimized';
453
  var show = function () {
454
- crayon[uid].toolbarPreventHide = false;
455
  button.remove();
456
- crayon[uid].removeClass(cls);
457
- crayon[uid].title.html(crayon[uid].origTitle);
458
- var toolbar = crayon[uid].toolbar;
459
  if (toolbar.filter('[data-settings~="never-show"]').length != 0) {
460
  toolbar.remove();
461
  }
462
  };
463
- crayon[uid].toolbar.click(show);
464
  button.click(show);
465
- crayon[uid].addClass(cls);
466
- crayon[uid].toolbarPreventHide = true;
467
  toggleToolbar(uid, undefined, undefined, 0);
468
  }
469
 
@@ -502,16 +505,16 @@
502
  };
503
 
504
  base.copyPlain = function (uid, hover) {
505
- if (typeof crayon[uid] == 'undefined') {
506
  return makeUID(uid);
507
  }
508
 
509
- var plain = crayon[uid].plain;
510
 
511
  base.togglePlain(uid, true, true);
512
  toggleToolbar(uid, true);
513
 
514
- var key = crayon[uid].mac ? '\u2318' : 'CTRL';
515
  var text = strings.copy;
516
  text = text.replace(/%s/, key + '+C');
517
  text = text.replace(/%s/, key + '+V');
@@ -520,11 +523,11 @@
520
  };
521
 
522
  var crayonInfo = function (uid, text, show) {
523
- if (typeof crayon[uid] == 'undefined') {
524
  return makeUID(uid);
525
  }
526
 
527
- var info = crayon[uid].info;
528
 
529
  if (typeof text == 'undefined') {
530
  text = '';
@@ -551,7 +554,7 @@
551
 
552
  var retina = function (uid) {
553
  if (window.devicePixelRatio > 1) {
554
- var buttons = $('.crayon-button', crayon[uid].toolbar);
555
  buttons.each(function () {
556
  var lowres = $(this).css('background-image');
557
  var highres = lowres.replace(/\.(?=[^\.]+$)/g, '@2x.');
@@ -616,12 +619,12 @@
616
  };
617
 
618
  base.togglePlain = function (uid, hover, select) {
619
- if (typeof crayon[uid] == 'undefined') {
620
  return makeUID(uid);
621
  }
622
 
623
- var main = crayon[uid].main;
624
- var plain = crayon[uid].plain;
625
 
626
  if ((main.is(':animated') || plain.is(':animated')) && typeof hover == 'undefined') {
627
  return;
@@ -648,16 +651,16 @@
648
  }
649
  }
650
 
651
- crayon[uid].plainVisible = (hidden == plain);
652
 
653
  // Remember scroll positions of visible
654
- crayon[uid].top = visible.scrollTop();
655
- crayon[uid].left = visible.scrollLeft();
656
 
657
  /* Used to detect a change in overflow when the mouse moves out
658
  * of the Crayon. If it does, then overflow has already been changed,
659
  * no need to revert it after toggling plain. */
660
- crayon[uid].scrollChanged = false;
661
 
662
  // Hide scrollbars during toggle to avoid Chrome weird draw error
663
  // visible.css('overflow', 'hidden');
@@ -686,15 +689,15 @@
686
  }
687
 
688
  // Refresh scrollbar draw
689
- hidden.scrollTop(crayon[uid].top + 1);
690
- hidden.scrollTop(crayon[uid].top);
691
- hidden.scrollLeft(crayon[uid].left + 1);
692
- hidden.scrollLeft(crayon[uid].left);
693
  });
694
 
695
  // Restore scroll positions to hidden
696
- hidden.scrollTop(crayon[uid].top);
697
- hidden.scrollLeft(crayon[uid].left);
698
 
699
  updatePlainButton(uid);
700
 
@@ -704,15 +707,15 @@
704
  };
705
 
706
  base.toggleNums = function (uid, hide, instant) {
707
- if (typeof crayon[uid] == 'undefined') {
708
  makeUID(uid);
709
  return false;
710
  }
711
 
712
- if (crayon[uid].table.is(':animated')) {
713
  return false;
714
  }
715
- var numsWidth = Math.round(crayon[uid].nums_content.width() + 1);
716
  var negWidth = '-' + numsWidth + 'px';
717
 
718
  // Force hiding
@@ -721,41 +724,41 @@
721
  numHidden = false;
722
  } else {
723
  // Check hiding
724
- numHidden = (crayon[uid].table.css('margin-left') == negWidth);
725
  }
726
 
727
  var numMargin;
728
  if (numHidden) {
729
  // Show
730
  numMargin = '0px';
731
- crayon[uid].numsVisible = true;
732
  } else {
733
  // Hide
734
- crayon[uid].table.css('margin-left', '0px');
735
- crayon[uid].numsVisible = false;
736
  numMargin = negWidth;
737
  }
738
 
739
  if (typeof instant != 'undefined') {
740
- crayon[uid].table.css('margin-left', numMargin);
741
  updateNumsButton(uid);
742
  return false;
743
  }
744
 
745
  // Stop jerking animation from scrollbar appearing for a split second due to
746
  // change in width. Prevents scrollbar disappearing if already visible.
747
- h_scroll_visible = (crayon[uid].table.width() + pxToInt(crayon[uid].table.css('margin-left')) > crayon[uid].main.width());
748
- v_scroll_visible = (crayon[uid].table.height() > crayon[uid].main.height());
749
  if (!h_scroll_visible && !v_scroll_visible) {
750
- crayon[uid].main.css('overflow', 'hidden');
751
  }
752
- crayon[uid].table.animate({
753
  marginLeft: numMargin
754
  }, animt(200, uid), function () {
755
- if (typeof crayon[uid] != 'undefined') {
756
  updateNumsButton(uid);
757
  if (!h_scroll_visible && !v_scroll_visible) {
758
- crayon[uid].main.css('overflow', 'auto');
759
  }
760
  }
761
  });
@@ -763,42 +766,42 @@
763
  };
764
 
765
  base.toggleWrap = function (uid) {
766
- crayon[uid].wrapped = !crayon[uid].wrapped;
767
  updateWrap(uid);
768
  };
769
 
770
  base.toggleExpand = function (uid) {
771
- var expand = !CrayonUtil.setDefault(crayon[uid].expanded, false);
772
  toggleExpand(uid, expand);
773
  };
774
 
775
  var updateWrap = function (uid, restore) {
776
  restore = CrayonUtil.setDefault(restore, true);
777
- if (crayon[uid].wrapped) {
778
- crayon[uid].addClass(CRAYON_WRAPPED);
779
  } else {
780
- crayon[uid].removeClass(CRAYON_WRAPPED);
781
  }
782
  updateWrapButton(uid);
783
- if (!crayon[uid].expanded && restore) {
784
  restoreDimensions(uid);
785
  }
786
- crayon[uid].wrapTimes = 0;
787
- clearInterval(crayon[uid].wrapTimer);
788
- crayon[uid].wrapTimer = setInterval(function () {
789
- if (crayon[uid].is(':visible')) {
790
  // XXX if hidden the height can't be determined
791
  reconsileLines(uid);
792
- crayon[uid].wrapTimes++;
793
- if (crayon[uid].wrapTimes == 5) {
794
- clearInterval(crayon[uid].wrapTimer);
795
  }
796
  }
797
  }, 200);
798
  };
799
 
800
  var fixTableWidth = function (uid) {
801
- if (typeof crayon[uid] == 'undefined') {
802
  makeUID(uid);
803
  return false;
804
  }
@@ -818,128 +821,145 @@
818
  };
819
 
820
  var updateNumsButton = function (uid) {
821
- if (typeof crayon[uid] == 'undefined' || typeof crayon[uid].numsVisible == 'undefined') {
822
  return;
823
  }
824
- if (crayon[uid].numsVisible) {
825
- crayon[uid].numsButton.removeClass(UNPRESSED);
826
- crayon[uid].numsButton.addClass(PRESSED);
827
  } else {
828
  // TODO doesn't work on iPhone
829
- crayon[uid].numsButton.removeClass(PRESSED);
830
- crayon[uid].numsButton.addClass(UNPRESSED);
831
  }
832
  };
833
 
834
  var updateWrapButton = function (uid) {
835
- if (typeof crayon[uid] == 'undefined' || typeof crayon[uid].wrapped == 'undefined') {
836
  return;
837
  }
838
- if (crayon[uid].wrapped) {
839
- crayon[uid].wrapButton.removeClass(UNPRESSED);
840
- crayon[uid].wrapButton.addClass(PRESSED);
841
  } else {
842
  // TODO doesn't work on iPhone
843
- crayon[uid].wrapButton.removeClass(PRESSED);
844
- crayon[uid].wrapButton.addClass(UNPRESSED);
845
  }
846
  };
847
 
848
  var updateExpandButton = function (uid) {
849
- if (typeof crayon[uid] == 'undefined' || typeof crayon[uid].expanded == 'undefined') {
850
  return;
851
  }
852
 
853
- if (crayon[uid].expanded) {
854
- crayon[uid].expandButton.removeClass(UNPRESSED);
855
- crayon[uid].expandButton.addClass(PRESSED);
856
  } else {
857
  // TODO doesn't work on iPhone
858
- crayon[uid].expandButton.removeClass(PRESSED);
859
- crayon[uid].expandButton.addClass(UNPRESSED);
860
  }
861
  };
862
 
863
  var updatePlainButton = function (uid) {
864
- if (typeof crayon[uid] == 'undefined' || typeof crayon[uid].plainVisible == 'undefined') {
865
  return;
866
  }
867
 
868
- if (crayon[uid].plainVisible) {
869
- crayon[uid].plainButton.removeClass(UNPRESSED);
870
- crayon[uid].plainButton.addClass(PRESSED);
871
  } else {
872
  // TODO doesn't work on iPhone
873
- crayon[uid].plainButton.removeClass(PRESSED);
874
- crayon[uid].plainButton.addClass(UNPRESSED);
875
  }
876
  };
877
 
878
  var toggleToolbar = function (uid, show, animTime, hideDelay) {
879
- if (typeof crayon[uid] == 'undefined') {
880
  return makeUID(uid);
881
- } else if (!crayon[uid].toolbarMouseover) {
882
  return;
883
- } else if (show == false && crayon[uid].toolbarPreventHide) {
884
  return;
885
- } else if (crayon.touchscreen) {
886
  return;
887
  }
888
- var toolbar = crayon[uid].toolbar;
889
 
890
  if (typeof hideDelay == 'undefined') {
891
- hideDelay = crayon[uid].toolbar_delay;
892
  }
893
 
894
  crayonSlide(uid, toolbar, show, animTime, hideDelay, function () {
895
- crayon[uid].toolbar_visible = show;
896
  });
897
  };
898
 
899
  var initSize = function (uid) {
900
- if (typeof crayon[uid].initialSize == 'undefined') {
901
  // Shared for scrollbars and expanding
902
- crayon[uid].initialSize = {width: crayon[uid].main.width(), height: crayon[uid].main.height()};
903
  // If toolbar is always showing, make room for it
904
- if (crayon[uid].toolbarMouseover == false) {
905
- crayon[uid].initialSize.height += crayon[uid].toolbar.height();
906
  }
907
  }
908
  };
909
 
 
 
 
 
 
 
910
  var toggleExpand = function (uid, expand) {
911
- if (typeof crayon[uid] == 'undefined') {
912
  return makeUID(uid);
913
  }
914
  if (typeof expand == 'undefined') {
915
  return;
916
  }
917
 
918
- var main = crayon[uid].main;
919
- var plain = crayon[uid].plain;
920
 
921
  if (expand) {
922
- if (typeof crayon[uid].expanded == 'undefined') {
923
  initSize(uid);
924
- crayon[uid].finalSize = {width: crayon[uid].table.width(), height: crayon[uid].table.height()};
 
925
  // If toolbar is always showing, make room for it
926
- if (crayon[uid].toolbarMouseover == false) {
927
- crayon[uid].finalSize.height += crayon[uid].toolbar.height();
928
  }
929
  // Ensure we don't shrink
930
- crayon[uid].finalSize.width = CrayonUtil.setMin(crayon[uid].finalSize.width, crayon[uid].initialSize.width);
931
- crayon[uid].finalSize.height = CrayonUtil.setMin(crayon[uid].finalSize.height, crayon[uid].initialSize.height);
932
- crayon[uid].diffSize = {
933
- width: crayon[uid].finalSize.width - crayon[uid].initialSize.width,
934
- height: crayon[uid].finalSize.height - crayon[uid].initialSize.height
935
  };
936
- crayon[uid].expandTime = CrayonUtil.setRange(crayon[uid].diffSize.width / 3, 300, 800);
937
- crayon[uid].expanded = false;
 
 
 
 
 
 
 
 
 
938
  }
939
 
940
- var initialSize = crayon[uid].initialSize;
941
- var diffSize = crayon[uid].diffSize;
942
- var finalSize = crayon[uid].finalSize;
 
943
 
944
  var expandHeight = {
945
  'height': 'auto',
@@ -952,42 +972,57 @@
952
  'max-width': 'none'
953
  };
954
 
955
- crayon[uid].width(crayon[uid].width());
956
- crayon[uid].css({
957
  'min-width': 'none',
958
  'max-width': 'none'
959
  });
960
  var newSize = {
961
  width: finalSize.width
962
  };
963
- if (finalSize.height > crayon[uid].toolbar.height() * 2) {
964
  newSize.height = finalSize.height;
965
- crayon[uid].height(crayon[uid].height());
966
  }
967
 
968
  main.css(expandHeight);
969
  main.css(expandWidth);
970
- crayon[uid].stop(true);
971
 
972
- crayon[uid].animate(newSize, animt(crayon[uid].expandTime, uid), function () {
973
- crayon[uid].expanded = true;
974
  updateExpandButton(uid);
975
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
976
  } else {
977
- var initialSize = crayon[uid].initialSize;
978
- var delay = crayon[uid].toolbar_delay;
979
  if (initialSize) {
980
- crayon[uid].stop(true);
981
- if (!crayon[uid].expanded) {
982
- crayon[uid].delay(delay);
983
  }
984
  var newSize = {
985
  width: initialSize.width
986
  };
987
- if (crayon[uid].style('height') != 'auto') {
988
  newSize.height = initialSize.height;
989
  }
990
- crayon[uid].animate(newSize, animt(crayon[uid].expandTime, uid), function () {
991
  expandFinish(uid);
992
  });
993
  } else {
@@ -995,6 +1030,13 @@
995
  expandFinish(uid);
996
  }, delay);
997
  }
 
 
 
 
 
 
 
998
  }
999
 
1000
  reconsileDimensions(uid);
@@ -1003,25 +1045,33 @@
1003
  }
1004
  };
1005
 
 
 
 
 
 
 
 
 
1006
  var expandFinish = function(uid) {
1007
- crayon[uid].expanded = false;
1008
  restoreDimensions(uid);
1009
  updateExpandButton(uid);
1010
- if (crayon[uid].wrapped) {
1011
  updateWrap(uid);
1012
  }
1013
  };
1014
 
1015
  var toggle_scroll = function (uid, show, expand) {
1016
- if (typeof crayon[uid] == 'undefined') {
1017
  return makeUID(uid);
1018
  }
1019
  if (typeof show == 'undefined') {
1020
  return;
1021
  }
1022
 
1023
- var main = crayon[uid].main;
1024
- var plain = crayon[uid].plain;
1025
 
1026
  initSize(uid);
1027
 
@@ -1031,64 +1081,64 @@
1031
  // Show scrollbars
1032
  main.css('overflow', 'auto');
1033
  plain.css('overflow', 'auto');
1034
- if (typeof crayon[uid].top != 'undefined') {
1035
  visible = (main.css('z-index') == 1 ? main : plain);
1036
  // Browser will not render until scrollbar moves, move it manually
1037
- visible.scrollTop(crayon[uid].top - 1);
1038
- visible.scrollTop(crayon[uid].top);
1039
- visible.scrollLeft(crayon[uid].left - 1);
1040
- visible.scrollLeft(crayon[uid].left);
1041
  }
1042
  } else {
1043
  // Hide scrollbars
1044
  visible = (main.css('z-index') == 1 ? main : plain);
1045
- crayon[uid].top = visible.scrollTop();
1046
- crayon[uid].left = visible.scrollLeft();
1047
  main.css('overflow', 'hidden');
1048
  plain.css('overflow', 'hidden');
1049
 
1050
- if (!crayon[uid].expanded) {
1051
  restoreDimensions(uid);
1052
  }
1053
  }
1054
  // Register that overflow has changed
1055
- crayon[uid].scrollChanged = true;
1056
  fixScrollBlank(uid);
1057
  };
1058
 
1059
  /* Fix weird draw error, causes blank area to appear where scrollbar once was. */
1060
  var fixScrollBlank = function (uid) {
1061
  // Scrollbar draw error in Chrome
1062
- crayon[uid].table.style('width', '100%', 'important');
1063
  var redraw = setTimeout(function () {
1064
- crayon[uid].table.style('width', '');
1065
  clearInterval(redraw);
1066
  }, 10);
1067
  };
1068
 
1069
  var restoreDimensions = function (uid) {
1070
  // Restore dimensions
1071
- var main = crayon[uid].main;
1072
- var mainStyle = crayon[uid].main_style;
1073
  main.css(mainStyle);
1074
  // Width styles also apply to crayon
1075
- crayon[uid].css('height', 'auto');
1076
- crayon[uid].css('width', mainStyle['width']);
1077
- crayon[uid].css('max-width', mainStyle['max-width']);
1078
- crayon[uid].css('min-width', mainStyle['min-width']);
1079
  };
1080
 
1081
  var reconsileDimensions = function (uid) {
1082
  // Reconsile dimensions
1083
- crayon[uid].plain.height(crayon[uid].main.height());
1084
  };
1085
 
1086
  var reconsileLines = function (uid) {
1087
- $(CRAYON_NUM, crayon[uid]).each(function () {
1088
  var lineID = $(this).attr('data-line');
1089
  var line = $('#' + lineID);
1090
  var height = null;
1091
- if (crayon[uid].wrapped) {
1092
  line.css('height', '');
1093
  height = line.height();
1094
  height = height ? height : '';
@@ -1114,7 +1164,7 @@
1114
  return 0;
1115
  }
1116
  }
1117
- return x * crayon[uid].time;
1118
  };
1119
 
1120
  var isNumber = function (x) {
64
  var CRAYON_NUMS_BUTTON = '.crayon-nums-button';
65
  var CRAYON_WRAP_BUTTON = '.crayon-wrap-button';
66
  var CRAYON_EXPAND_BUTTON = '.crayon-expand-button';
67
+ var CRAYON_EXPANDED = 'crayon-expanded crayon-toolbar-visible';
68
+ var CRAYON_PLACEHOLDER = 'crayon-placeholder';
69
  var CRAYON_POPUP_BUTTON = '.crayon-popup-button';
70
  var CRAYON_COPY_BUTTON = '.crayon-copy-button';
71
  var CRAYON_PLAIN_BUTTON = '.crayon-plain-button';
76
 
77
  CrayonSyntax = new function () {
78
  var base = this;
79
+ var crayons = new Object();
80
  var settings;
81
  var strings;
82
  var currUID = 0;
83
+ var touchscreen;
84
 
85
  base.init = function () {
86
+ if (typeof crayons == 'undefined') {
87
+ crayons = new Object();
88
  }
89
  settings = CrayonSyntaxSettings;
90
  strings = CrayonSyntaxStrings;
129
  var copyButton = c.find(CRAYON_COPY_BUTTON);
130
  var plainButton = c.find(CRAYON_PLAIN_BUTTON);
131
 
132
+ crayons[uid] = c;
133
+ crayons[uid].toolbar = toolbar;
134
+ crayons[uid].plain = plain;
135
+ crayons[uid].info = info;
136
+ crayons[uid].main = main;
137
+ crayons[uid].table = table;
138
+ crayons[uid].code = code;
139
+ crayons[uid].title = title;
140
+ crayons[uid].tools = tools;
141
+ crayons[uid].nums = nums;
142
+ crayons[uid].nums_content = numsContent;
143
+ crayons[uid].numsButton = numsButton;
144
+ crayons[uid].wrapButton = wrapButton;
145
+ crayons[uid].expandButton = expandButton;
146
+ crayons[uid].popup_button = popupButton;
147
+ crayons[uid].copy_button = copyButton;
148
+ crayons[uid].plainButton = plainButton;
149
+ crayons[uid].numsVisible = true;
150
+ crayons[uid].wrapped = false;
151
+ crayons[uid].plainVisible = false;
152
+
153
+ crayons[uid].toolbar_delay = 0;
154
+ crayons[uid].time = 1;
155
 
156
  // Set plain
157
  $(CRAYON_PLAIN).css('z-index', 0);
158
 
159
  // XXX Remember CSS dimensions
160
  var mainStyle = main.style();
161
+ crayons[uid].main_style = {
162
  'height': mainStyle && mainStyle.height || '',
163
  'max-height': mainStyle && mainStyle.maxHeight || '',
164
  'min-height': mainStyle && mainStyle.minHeight || '',
169
 
170
  var load_timer;
171
  var i = 0;
172
+ crayons[uid].loading = true;
173
+ crayons[uid].scrollBlockFix = false;
174
 
175
  // Register click events
176
  numsButton.click(function () {
203
  updateNumsButton(uid);
204
  }
205
 
206
+ if (typeof crayons[uid].expanded == 'undefined') {
207
  // Determine if we should enable code expanding toggling
208
+ if (Math.abs(crayons[uid].main.width() - crayons[uid].table.width()) < 10) {
209
+ crayons[uid].expandButton.hide();
210
  } else {
211
+ crayons[uid].expandButton.show();
212
  }
213
  }
214
 
216
  if (/*last_num_width != nums.width() ||*/ i == 5) {
217
  clearInterval(load_timer);
218
  //crayon[uid].removeClass(CRAYON_LOADING);
219
+ crayons[uid].loading = false;
220
  }
221
  i++;
222
  };
224
  fixScrollBlank(uid);
225
 
226
  // Add ref to num for each line
227
+ $(CRAYON_NUM, crayons[uid]).each(function () {
228
  var lineID = $(this).attr('data-line');
229
  var line = $('#' + lineID);
230
  var height = line.style('height');
238
  main.css('z-index', 1);
239
 
240
  // Disable certain features for touchscreen devices
241
+ touchscreen = (c.filter('[data-settings~="touchscreen"]').length != 0);
242
 
243
  // Used to hide info
244
+ if (!touchscreen) {
245
  main.click(function () {
246
  crayonInfo(uid, '', false);
247
  });
255
 
256
  // Used for code popup
257
  if (c.filter('[data-settings~="no-popup"]').length == 0) {
258
+ crayons[uid].popup_settings = popupWindow(popupButton, {
259
  height: screen.height - 200,
260
  width: screen.width - 100,
261
  top: 75,
272
 
273
  plain.css('opacity', 0);
274
 
275
+ crayons[uid].toolbar_visible = true;
276
+ crayons[uid].toolbarMouseover = false;
277
  // If a toolbar with mouseover was found
278
+ if (toolbar.filter('[data-settings~="mouseover"]').length != 0 && !touchscreen) {
279
+ crayons[uid].toolbarMouseover = true;
280
+ crayons[uid].toolbar_visible = false;
281
 
282
  toolbar.css('margin-top', '-' + toolbar.height() + 'px');
283
  toolbar.hide();
301
  }
302
  // Enable delay on mouseout
303
  if (toolbar.filter('[data-settings~="delay"]').length != 0) {
304
+ crayons[uid].toolbar_delay = 500;
305
  }
306
  // Use .hover() for chrome, but in firefox mouseover/mouseout worked best
307
  c.mouseenter(function () {
310
  .mouseleave(function () {
311
  toggleToolbar(uid, false);
312
  });
313
+ } else if (touchscreen) {
314
  toolbar.show();
315
  }
316
 
320
  }
321
 
322
  // Plain show events
323
+ if (plain.length != 0 && !touchscreen) {
324
  if (plain.filter('[data-settings~="dblclick"]').length != 0) {
325
  main.dblclick(function () {
326
  CrayonSyntax.togglePlain(uid);
347
  // Scrollbar show events
348
  var expand = c.filter('[data-settings~="expand"]').length != 0;
349
  // crayon[uid].mouse_expand = expand;
350
+ if (!touchscreen && c.filter('[data-settings~="scroll-mouseover"]').length != 0) {
351
  // Disable on touchscreen devices and when set to mouseover
352
  main.css('overflow', 'hidden');
353
  plain.css('overflow', 'hidden');
372
 
373
  // Disable animations
374
  if (c.filter('[data-settings~="disable-anim"]').length != 0) {
375
+ crayons[uid].time = 0;
376
  }
377
 
378
  // Wrap
379
  if (c.filter('[data-settings~="wrap"]').length != 0) {
380
+ crayons[uid].wrapped = true;
381
  }
382
 
383
  // Determine if Mac
384
+ crayons[uid].mac = c.hasClass('crayon-os-mac');
385
 
386
  // Update clickable buttons
387
  updateNumsButton(uid);
390
  };
391
 
392
  var makeUID = function (uid) {
393
+ CrayonUtil.log(crayons);
394
+ if (typeof crayons[uid] == 'undefined') {
395
+ crayons[uid] = $('#' + uid);
396
  CrayonUtil.log('make ' + uid);
397
  return true;
398
  }
406
  };
407
 
408
  var codePopup = function (uid) {
409
+ if (typeof crayons[uid] == 'undefined') {
410
  return makeUID(uid);
411
  }
412
+ var settings = crayons[uid].popup_settings;
413
  if (settings.data) {
414
  // Already done
415
  return;
416
  }
417
 
418
+ var clone = crayons[uid].clone(true);
419
  clone.removeClass('crayon-wrapped');
420
 
421
  // Unwrap
422
+ if (crayons[uid].wrapped) {
423
  $(CRAYON_NUM, clone).each(function () {
424
  var line_id = $(this).attr('data-line');
425
  var line = $('#' + line_id);
434
  clone.find(CRAYON_MAIN).css('height', '');
435
 
436
  var code = '';
437
+ if (crayons[uid].plainVisible) {
438
  code = clone.find(CRAYON_PLAIN);
439
  } else {
440
  code = clone.find(CRAYON_MAIN);
446
 
447
  base.minimize = function (uid) {
448
  var button = $('<div class="crayon-minimize crayon-button"><div>');
449
+ crayons[uid].tools.append(button);
450
  // TODO translate
451
+ crayons[uid].origTitle = crayons[uid].title.html();
452
+ if (!crayons[uid].origTitle) {
453
+ crayons[uid].title.html(strings.minimize);
454
  };
455
  var cls = 'crayon-minimized';
456
  var show = function () {
457
+ crayons[uid].toolbarPreventHide = false;
458
  button.remove();
459
+ crayons[uid].removeClass(cls);
460
+ crayons[uid].title.html(crayons[uid].origTitle);
461
+ var toolbar = crayons[uid].toolbar;
462
  if (toolbar.filter('[data-settings~="never-show"]').length != 0) {
463
  toolbar.remove();
464
  }
465
  };
466
+ crayons[uid].toolbar.click(show);
467
  button.click(show);
468
+ crayons[uid].addClass(cls);
469
+ crayons[uid].toolbarPreventHide = true;
470
  toggleToolbar(uid, undefined, undefined, 0);
471
  }
472
 
505
  };
506
 
507
  base.copyPlain = function (uid, hover) {
508
+ if (typeof crayons[uid] == 'undefined') {
509
  return makeUID(uid);
510
  }
511
 
512
+ var plain = crayons[uid].plain;
513
 
514
  base.togglePlain(uid, true, true);
515
  toggleToolbar(uid, true);
516
 
517
+ var key = crayons[uid].mac ? '\u2318' : 'CTRL';
518
  var text = strings.copy;
519
  text = text.replace(/%s/, key + '+C');
520
  text = text.replace(/%s/, key + '+V');
523
  };
524
 
525
  var crayonInfo = function (uid, text, show) {
526
+ if (typeof crayons[uid] == 'undefined') {
527
  return makeUID(uid);
528
  }
529
 
530
+ var info = crayons[uid].info;
531
 
532
  if (typeof text == 'undefined') {
533
  text = '';
554
 
555
  var retina = function (uid) {
556
  if (window.devicePixelRatio > 1) {
557
+ var buttons = $('.crayon-button', crayons[uid].toolbar);
558
  buttons.each(function () {
559
  var lowres = $(this).css('background-image');
560
  var highres = lowres.replace(/\.(?=[^\.]+$)/g, '@2x.');
619
  };
620
 
621
  base.togglePlain = function (uid, hover, select) {
622
+ if (typeof crayons[uid] == 'undefined') {
623
  return makeUID(uid);
624
  }
625
 
626
+ var main = crayons[uid].main;
627
+ var plain = crayons[uid].plain;
628
 
629
  if ((main.is(':animated') || plain.is(':animated')) && typeof hover == 'undefined') {
630
  return;
651
  }
652
  }
653
 
654
+ crayons[uid].plainVisible = (hidden == plain);
655
 
656
  // Remember scroll positions of visible
657
+ crayons[uid].top = visible.scrollTop();
658
+ crayons[uid].left = visible.scrollLeft();
659
 
660
  /* Used to detect a change in overflow when the mouse moves out
661
  * of the Crayon. If it does, then overflow has already been changed,
662
  * no need to revert it after toggling plain. */
663
+ crayons[uid].scrollChanged = false;
664
 
665
  // Hide scrollbars during toggle to avoid Chrome weird draw error
666
  // visible.css('overflow', 'hidden');
689
  }
690
 
691
  // Refresh scrollbar draw
692
+ hidden.scrollTop(crayons[uid].top + 1);
693
+ hidden.scrollTop(crayons[uid].top);
694
+ hidden.scrollLeft(crayons[uid].left + 1);
695
+ hidden.scrollLeft(crayons[uid].left);
696
  });
697
 
698
  // Restore scroll positions to hidden
699
+ hidden.scrollTop(crayons[uid].top);
700
+ hidden.scrollLeft(crayons[uid].left);
701
 
702
  updatePlainButton(uid);
703
 
707
  };
708
 
709
  base.toggleNums = function (uid, hide, instant) {
710
+ if (typeof crayons[uid] == 'undefined') {
711
  makeUID(uid);
712
  return false;
713
  }
714
 
715
+ if (crayons[uid].table.is(':animated')) {
716
  return false;
717
  }
718
+ var numsWidth = Math.round(crayons[uid].nums_content.width() + 1);
719
  var negWidth = '-' + numsWidth + 'px';
720
 
721
  // Force hiding
724
  numHidden = false;
725
  } else {
726
  // Check hiding
727
+ numHidden = (crayons[uid].table.css('margin-left') == negWidth);
728
  }
729
 
730
  var numMargin;
731
  if (numHidden) {
732
  // Show
733
  numMargin = '0px';
734
+ crayons[uid].numsVisible = true;
735
  } else {
736
  // Hide
737
+ crayons[uid].table.css('margin-left', '0px');
738
+ crayons[uid].numsVisible = false;
739
  numMargin = negWidth;
740
  }
741
 
742
  if (typeof instant != 'undefined') {
743
+ crayons[uid].table.css('margin-left', numMargin);
744
  updateNumsButton(uid);
745
  return false;
746
  }
747
 
748
  // Stop jerking animation from scrollbar appearing for a split second due to
749
  // change in width. Prevents scrollbar disappearing if already visible.
750
+ h_scroll_visible = (crayons[uid].table.width() + pxToInt(crayons[uid].table.css('margin-left')) > crayons[uid].main.width());
751
+ v_scroll_visible = (crayons[uid].table.height() > crayons[uid].main.height());
752
  if (!h_scroll_visible && !v_scroll_visible) {
753
+ crayons[uid].main.css('overflow', 'hidden');
754
  }
755
+ crayons[uid].table.animate({
756
  marginLeft: numMargin
757
  }, animt(200, uid), function () {
758
+ if (typeof crayons[uid] != 'undefined') {
759
  updateNumsButton(uid);
760
  if (!h_scroll_visible && !v_scroll_visible) {
761
+ crayons[uid].main.css('overflow', 'auto');
762
  }
763
  }
764
  });
766
  };
767
 
768
  base.toggleWrap = function (uid) {
769
+ crayons[uid].wrapped = !crayons[uid].wrapped;
770
  updateWrap(uid);
771
  };
772
 
773
  base.toggleExpand = function (uid) {
774
+ var expand = !CrayonUtil.setDefault(crayons[uid].expanded, false);
775
  toggleExpand(uid, expand);
776
  };
777
 
778
  var updateWrap = function (uid, restore) {
779
  restore = CrayonUtil.setDefault(restore, true);
780
+ if (crayons[uid].wrapped) {
781
+ crayons[uid].addClass(CRAYON_WRAPPED);
782
  } else {
783
+ crayons[uid].removeClass(CRAYON_WRAPPED);
784
  }
785
  updateWrapButton(uid);
786
+ if (!crayons[uid].expanded && restore) {
787
  restoreDimensions(uid);
788
  }
789
+ crayons[uid].wrapTimes = 0;
790
+ clearInterval(crayons[uid].wrapTimer);
791
+ crayons[uid].wrapTimer = setInterval(function () {
792
+ if (crayons[uid].is(':visible')) {
793
  // XXX if hidden the height can't be determined
794
  reconsileLines(uid);
795
+ crayons[uid].wrapTimes++;
796
+ if (crayons[uid].wrapTimes == 5) {
797
+ clearInterval(crayons[uid].wrapTimer);
798
  }
799
  }
800
  }, 200);
801
  };
802
 
803
  var fixTableWidth = function (uid) {
804
+ if (typeof crayons[uid] == 'undefined') {
805
  makeUID(uid);
806
  return false;
807
  }
821
  };
822
 
823
  var updateNumsButton = function (uid) {
824
+ if (typeof crayons[uid] == 'undefined' || typeof crayons[uid].numsVisible == 'undefined') {
825
  return;
826
  }
827
+ if (crayons[uid].numsVisible) {
828
+ crayons[uid].numsButton.removeClass(UNPRESSED);
829
+ crayons[uid].numsButton.addClass(PRESSED);
830
  } else {
831
  // TODO doesn't work on iPhone
832
+ crayons[uid].numsButton.removeClass(PRESSED);
833
+ crayons[uid].numsButton.addClass(UNPRESSED);
834
  }
835
  };
836
 
837
  var updateWrapButton = function (uid) {
838
+ if (typeof crayons[uid] == 'undefined' || typeof crayons[uid].wrapped == 'undefined') {
839
  return;
840
  }
841
+ if (crayons[uid].wrapped) {
842
+ crayons[uid].wrapButton.removeClass(UNPRESSED);
843
+ crayons[uid].wrapButton.addClass(PRESSED);
844
  } else {
845
  // TODO doesn't work on iPhone
846
+ crayons[uid].wrapButton.removeClass(PRESSED);
847
+ crayons[uid].wrapButton.addClass(UNPRESSED);
848
  }
849
  };
850
 
851
  var updateExpandButton = function (uid) {
852
+ if (typeof crayons[uid] == 'undefined' || typeof crayons[uid].expanded == 'undefined') {
853
  return;
854
  }
855
 
856
+ if (crayons[uid].expanded) {
857
+ crayons[uid].expandButton.removeClass(UNPRESSED);
858
+ crayons[uid].expandButton.addClass(PRESSED);
859
  } else {
860
  // TODO doesn't work on iPhone
861
+ crayons[uid].expandButton.removeClass(PRESSED);
862
+ crayons[uid].expandButton.addClass(UNPRESSED);
863
  }
864
  };
865
 
866
  var updatePlainButton = function (uid) {
867
+ if (typeof crayons[uid] == 'undefined' || typeof crayons[uid].plainVisible == 'undefined') {
868
  return;
869
  }
870
 
871
+ if (crayons[uid].plainVisible) {
872
+ crayons[uid].plainButton.removeClass(UNPRESSED);
873
+ crayons[uid].plainButton.addClass(PRESSED);
874
  } else {
875
  // TODO doesn't work on iPhone
876
+ crayons[uid].plainButton.removeClass(PRESSED);
877
+ crayons[uid].plainButton.addClass(UNPRESSED);
878
  }
879
  };
880
 
881
  var toggleToolbar = function (uid, show, animTime, hideDelay) {
882
+ if (typeof crayons[uid] == 'undefined') {
883
  return makeUID(uid);
884
+ } else if (!crayons[uid].toolbarMouseover) {
885
  return;
886
+ } else if (show == false && crayons[uid].toolbarPreventHide) {
887
  return;
888
+ } else if (touchscreen) {
889
  return;
890
  }
891
+ var toolbar = crayons[uid].toolbar;
892
 
893
  if (typeof hideDelay == 'undefined') {
894
+ hideDelay = crayons[uid].toolbar_delay;
895
  }
896
 
897
  crayonSlide(uid, toolbar, show, animTime, hideDelay, function () {
898
+ crayons[uid].toolbar_visible = show;
899
  });
900
  };
901
 
902
  var initSize = function (uid) {
903
+ if (typeof crayons[uid].initialSize == 'undefined') {
904
  // Shared for scrollbars and expanding
905
+ crayons[uid].initialSize = {width: crayons[uid].main.width(), height: crayons[uid].main.height()};
906
  // If toolbar is always showing, make room for it
907
+ if (crayons[uid].toolbarMouseover == false) {
908
+ crayons[uid].initialSize.height += crayons[uid].toolbar.height();
909
  }
910
  }
911
  };
912
 
913
+ var initPosition = function (uid) {
914
+ if (typeof crayons[uid].initialPosition == 'undefined') {
915
+ crayons[uid].initialPosition = crayons[uid].position();
916
+ }
917
+ };
918
+
919
  var toggleExpand = function (uid, expand) {
920
+ if (typeof crayons[uid] == 'undefined') {
921
  return makeUID(uid);
922
  }
923
  if (typeof expand == 'undefined') {
924
  return;
925
  }
926
 
927
+ var main = crayons[uid].main;
928
+ var plain = crayons[uid].plain;
929
 
930
  if (expand) {
931
+ if (typeof crayons[uid].expanded == 'undefined') {
932
  initSize(uid);
933
+ initPosition(uid);
934
+ crayons[uid].finalSize = {width: crayons[uid].table.width(), height: crayons[uid].table.height()};
935
  // If toolbar is always showing, make room for it
936
+ if (crayons[uid].toolbarMouseover == false) {
937
+ crayons[uid].finalSize.height += crayons[uid].toolbar.height();
938
  }
939
  // Ensure we don't shrink
940
+ crayons[uid].finalSize.width = CrayonUtil.setMin(crayons[uid].finalSize.width, crayons[uid].initialSize.width);
941
+ crayons[uid].finalSize.height = CrayonUtil.setMin(crayons[uid].finalSize.height, crayons[uid].initialSize.height);
942
+ crayons[uid].diffSize = {
943
+ width: crayons[uid].finalSize.width - crayons[uid].initialSize.width,
944
+ height: crayons[uid].finalSize.height - crayons[uid].initialSize.height
945
  };
946
+ crayons[uid].expandTime = CrayonUtil.setRange(crayons[uid].diffSize.width / 3, 300, 800);
947
+ crayons[uid].expanded = false;
948
+
949
+ var placeHolderSize = crayons[uid].finalSize;
950
+ placeHolderSize.height += crayons[uid].toolbar.height();
951
+ crayons[uid].placeholder = $('<div></div>');
952
+ crayons[uid].placeholder.addClass(CRAYON_PLACEHOLDER);
953
+ crayons[uid].placeholder.css(placeHolderSize);
954
+ // crayon[uid].placeholder.hide();
955
+ crayons[uid].before(crayons[uid].placeholder);
956
+ $(window).bind('resize', placeholderResize);
957
  }
958
 
959
+ var initialSize = crayons[uid].initialSize;
960
+ var initialPosition = crayons[uid].initialPosition;
961
+ var diffSize = crayons[uid].diffSize;
962
+ var finalSize = crayons[uid].finalSize;
963
 
964
  var expandHeight = {
965
  'height': 'auto',
972
  'max-width': 'none'
973
  };
974
 
975
+ crayons[uid].width(crayons[uid].width());
976
+ crayons[uid].css({
977
  'min-width': 'none',
978
  'max-width': 'none'
979
  });
980
  var newSize = {
981
  width: finalSize.width
982
  };
983
+ if (finalSize.height > crayons[uid].toolbar.height() * 2) {
984
  newSize.height = finalSize.height;
985
+ crayons[uid].height(crayons[uid].height());
986
  }
987
 
988
  main.css(expandHeight);
989
  main.css(expandWidth);
990
+ crayons[uid].stop(true);
991
 
992
+ crayons[uid].animate(newSize, animt(crayons[uid].expandTime, uid), function () {
993
+ crayons[uid].expanded = true;
994
  updateExpandButton(uid);
995
  });
996
+
997
+ crayons[uid].placeholder.show();
998
+ $('body').prepend(crayons[uid]);
999
+ //crayon[uid].css(initialPosition);
1000
+ // $(window).bind('resize', placeholderResize);
1001
+ // var i = 0;
1002
+ // var timer = setInterval(function () {
1003
+ // placeholderResize();
1004
+ // i++;
1005
+ // if (i >= 5) {
1006
+ // clearInterval(timer);
1007
+ // }
1008
+ // }, 50);
1009
+ crayons[uid].addClass(CRAYON_EXPANDED);
1010
+ placeholderResize();
1011
  } else {
1012
+ var initialSize = crayons[uid].initialSize;
1013
+ var delay = crayons[uid].toolbar_delay;
1014
  if (initialSize) {
1015
+ crayons[uid].stop(true);
1016
+ if (!crayons[uid].expanded) {
1017
+ crayons[uid].delay(delay);
1018
  }
1019
  var newSize = {
1020
  width: initialSize.width
1021
  };
1022
+ if (crayons[uid].style('height') != 'auto') {
1023
  newSize.height = initialSize.height;
1024
  }
1025
+ crayons[uid].animate(newSize, animt(crayons[uid].expandTime, uid), function () {
1026
  expandFinish(uid);
1027
  });
1028
  } else {
1030
  expandFinish(uid);
1031
  }, delay);
1032
  }
1033
+
1034
+ crayons[uid].placeholder.hide();
1035
+ crayons[uid].placeholder.before(crayons[uid]);
1036
+ crayons[uid].css({left: 'auto', top: 'auto'});
1037
+ //$(window).unbind('resize', crayon[uid].placeholderResize);
1038
+
1039
+ crayons[uid].removeClass(CRAYON_EXPANDED);
1040
  }
1041
 
1042
  reconsileDimensions(uid);
1045
  }
1046
  };
1047
 
1048
+ var placeholderResize = function () {
1049
+ for (uid in crayons) {
1050
+ if (crayons[uid].hasClass(CRAYON_EXPANDED)) {
1051
+ crayons[uid].css(crayons[uid].placeholder.position());
1052
+ }
1053
+ }
1054
+ };
1055
+
1056
  var expandFinish = function(uid) {
1057
+ crayons[uid].expanded = false;
1058
  restoreDimensions(uid);
1059
  updateExpandButton(uid);
1060
+ if (crayons[uid].wrapped) {
1061
  updateWrap(uid);
1062
  }
1063
  };
1064
 
1065
  var toggle_scroll = function (uid, show, expand) {
1066
+ if (typeof crayons[uid] == 'undefined') {
1067
  return makeUID(uid);
1068
  }
1069
  if (typeof show == 'undefined') {
1070
  return;
1071
  }
1072
 
1073
+ var main = crayons[uid].main;
1074
+ var plain = crayons[uid].plain;
1075
 
1076
  initSize(uid);
1077
 
1081
  // Show scrollbars
1082
  main.css('overflow', 'auto');
1083
  plain.css('overflow', 'auto');
1084
+ if (typeof crayons[uid].top != 'undefined') {
1085
  visible = (main.css('z-index') == 1 ? main : plain);
1086
  // Browser will not render until scrollbar moves, move it manually
1087
+ visible.scrollTop(crayons[uid].top - 1);
1088
+ visible.scrollTop(crayons[uid].top);
1089
+ visible.scrollLeft(crayons[uid].left - 1);
1090
+ visible.scrollLeft(crayons[uid].left);
1091
  }
1092
  } else {
1093
  // Hide scrollbars
1094
  visible = (main.css('z-index') == 1 ? main : plain);
1095
+ crayons[uid].top = visible.scrollTop();
1096
+ crayons[uid].left = visible.scrollLeft();
1097
  main.css('overflow', 'hidden');
1098
  plain.css('overflow', 'hidden');
1099
 
1100
+ if (!crayons[uid].expanded) {
1101
  restoreDimensions(uid);
1102
  }
1103
  }
1104
  // Register that overflow has changed
1105
+ crayons[uid].scrollChanged = true;
1106
  fixScrollBlank(uid);
1107
  };
1108
 
1109
  /* Fix weird draw error, causes blank area to appear where scrollbar once was. */
1110
  var fixScrollBlank = function (uid) {
1111
  // Scrollbar draw error in Chrome
1112
+ crayons[uid].table.style('width', '100%', 'important');
1113
  var redraw = setTimeout(function () {
1114
+ crayons[uid].table.style('width', '');
1115
  clearInterval(redraw);
1116
  }, 10);
1117
  };
1118
 
1119
  var restoreDimensions = function (uid) {
1120
  // Restore dimensions
1121
+ var main = crayons[uid].main;
1122
+ var mainStyle = crayons[uid].main_style;
1123
  main.css(mainStyle);
1124
  // Width styles also apply to crayon
1125
+ crayons[uid].css('height', 'auto');
1126
+ crayons[uid].css('width', mainStyle['width']);
1127
+ crayons[uid].css('max-width', mainStyle['max-width']);
1128
+ crayons[uid].css('min-width', mainStyle['min-width']);
1129
  };
1130
 
1131
  var reconsileDimensions = function (uid) {
1132
  // Reconsile dimensions
1133
+ crayons[uid].plain.height(crayons[uid].main.height());
1134
  };
1135
 
1136
  var reconsileLines = function (uid) {
1137
+ $(CRAYON_NUM, crayons[uid]).each(function () {
1138
  var lineID = $(this).attr('data-line');
1139
  var line = $('#' + lineID);
1140
  var height = null;
1141
+ if (crayons[uid].wrapped) {
1142
  line.css('height', '');
1143
  height = line.height();
1144
  height = height ? height : '';
1164
  return 0;
1165
  }
1166
  }
1167
+ return x * crayons[uid].time;
1168
  };
1169
 
1170
  var isNumber = function (x) {
js/jquery-ui/images/ui-bg_diagonals-thick_18_b81900_40x40.png DELETED
Binary file
js/jquery-ui/images/ui-bg_diagonals-thick_20_666666_40x40.png DELETED
Binary file
js/jquery-ui/images/ui-bg_flat_10_000000_40x100.png DELETED
Binary file
js/jquery-ui/images/ui-bg_highlight-soft_100_dbf1ff_1x100.png DELETED
Binary file
js/jquery-ui/images/ui-bg_highlight-soft_100_eeeeee_1x100.png DELETED
Binary file
js/jquery-ui/images/ui-bg_highlight-soft_60_dedede_1x100.png DELETED
Binary file
js/jquery-ui/images/ui-bg_highlight-soft_65_f2f2f2_1x100.png DELETED
Binary file
js/jquery-ui/images/ui-bg_highlight-soft_75_fefc95_1x100.png DELETED
Binary file
js/jquery-ui/images/ui-bg_inset-soft_100_f2f2f2_1x100.png DELETED
Binary file
js/jquery-ui/images/ui-icons_0879ef_256x240.png DELETED
Binary file
js/jquery-ui/images/ui-icons_222222_256x240.png DELETED
Binary file
js/jquery-ui/images/ui-icons_228ef1_256x240.png DELETED
Binary file
js/jquery-ui/images/ui-icons_474747_256x240.png DELETED
Binary file
js/jquery-ui/images/ui-icons_616161_256x240.png DELETED
Binary file
js/jquery-ui/images/ui-icons_ffd27a_256x240.png DELETED
Binary file
js/jquery-ui/images/ui-icons_ffffff_256x240.png DELETED
Binary file
js/jquery-ui/jquery-ui.css DELETED
@@ -1,383 +0,0 @@
1
- /*! jQuery UI - v1.9.1 - 2012-11-23
2
- * http://jqueryui.com
3
- * Includes: jquery.ui.core.css, jquery.ui.resizable.css, jquery.ui.selectable.css, jquery.ui.accordion.css, jquery.ui.button.css, jquery.ui.dialog.css, jquery.ui.menu.css, jquery.ui.slider.css, jquery.ui.spinner.css, jquery.ui.tabs.css
4
- * To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=sans-serif&fwDefault=bold&fsDefault=12px&cornerRadius=4px&bgColorHeader=dedede&bgTextureHeader=03_highlight_soft.png&bgImgOpacityHeader=60&borderColorHeader=b3b3b3&fcHeader=474747&iconColorHeader=ffffff&bgColorContent=eeeeee&bgTextureContent=03_highlight_soft.png&bgImgOpacityContent=100&borderColorContent=dddddd&fcContent=333333&iconColorContent=222222&bgColorDefault=f2f2f2&bgTextureDefault=05_inset_soft.png&bgImgOpacityDefault=100&borderColorDefault=ababab&fcDefault=545454&iconColorDefault=616161&bgColorHover=dbf1ff&bgTextureHover=03_highlight_soft.png&bgImgOpacityHover=100&borderColorHover=5f9cd8&fcHover=00467a&iconColorHover=474747&bgColorActive=f2f2f2&bgTextureActive=03_highlight_soft.png&bgImgOpacityActive=65&borderColorActive=8f8f8f&fcActive=4f4f4f&iconColorActive=0879ef&bgColorHighlight=fefc95&bgTextureHighlight=03_highlight_soft.png&bgImgOpacityHighlight=75&borderColorHighlight=fed22f&fcHighlight=363636&iconColorHighlight=228ef1&bgColorError=b81900&bgTextureError=08_diagonals_thick.png&bgImgOpacityError=18&borderColorError=cd0a0a&fcError=ffffff&iconColorError=ffd27a&bgColorOverlay=666666&bgTextureOverlay=08_diagonals_thick.png&bgImgOpacityOverlay=20&opacityOverlay=50&bgColorShadow=000000&bgTextureShadow=01_flat.png&bgImgOpacityShadow=10&opacityShadow=20&thicknessShadow=5px&offsetTopShadow=-5px&offsetLeftShadow=-5px&cornerRadiusShadow=5px
5
- * Copyright (c) 2012 jQuery Foundation and other contributors Licensed MIT */
6
-
7
- /* Layout helpers
8
- ----------------------------------*/
9
- .ui-helper-hidden { display: none; }
10
- .ui-helper-hidden-accessible { position: absolute !important; clip: rect(1px 1px 1px 1px); clip: rect(1px,1px,1px,1px); }
11
- .ui-helper-reset { margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; }
12
- /*.ui-helper-clearfix:before, .ui-helper-clearfix:after { content: ""; display: table; }
13
- .ui-helper-clearfix:after { clear: both; }*/
14
- .ui-helper-clearfix { zoom: 1; }
15
- .ui-helper-zfix { width: 100%; height: 100%; top: 0; left: 0; position: absolute; opacity: 0; filter:Alpha(Opacity=0); }
16
-
17
-
18
- /* Interaction Cues
19
- ----------------------------------*/
20
- .ui-state-disabled { cursor: default !important; }
21
-
22
-
23
- /* Icons
24
- ----------------------------------*/
25
-
26
- /* states and images */
27
- .ui-icon { display: block; text-indent: -99999px; overflow: hidden; background-repeat: no-repeat; }
28
-
29
-
30
- /* Misc visuals
31
- ----------------------------------*/
32
-
33
- /* Overlays */
34
- .ui-widget-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
35
- .ui-resizable { position: relative;}
36
- .ui-resizable-handle { position: absolute;font-size: 0.1px; display: block; }
37
- .ui-resizable-disabled .ui-resizable-handle, .ui-resizable-autohide .ui-resizable-handle { display: none; }
38
- .ui-resizable-n { cursor: n-resize; height: 7px; width: 100%; top: -5px; left: 0; }
39
- .ui-resizable-s { cursor: s-resize; height: 7px; width: 100%; bottom: -5px; left: 0; }
40
- .ui-resizable-e { cursor: e-resize; width: 7px; right: -5px; top: 0; height: 100%; }
41
- .ui-resizable-w { cursor: w-resize; width: 7px; left: -5px; top: 0; height: 100%; }
42
- .ui-resizable-se { cursor: se-resize; width: 12px; height: 12px; right: 1px; bottom: 1px; }
43
- .ui-resizable-sw { cursor: sw-resize; width: 9px; height: 9px; left: -5px; bottom: -5px; }
44
- .ui-resizable-nw { cursor: nw-resize; width: 9px; height: 9px; left: -5px; top: -5px; }
45
- .ui-resizable-ne { cursor: ne-resize; width: 9px; height: 9px; right: -5px; top: -5px;}.ui-selectable-helper { position: absolute; z-index: 100; border:1px dotted black; }
46
- .ui-accordion .ui-accordion-header { display: block; cursor: pointer; position: relative; margin-top: 2px; padding: .5em .5em .5em .7em; zoom: 1; }
47
- .ui-accordion .ui-accordion-icons { padding-left: 2.2em; }
48
- .ui-accordion .ui-accordion-noicons { padding-left: .7em; }
49
- .ui-accordion .ui-accordion-icons .ui-accordion-icons { padding-left: 2.2em; }
50
- .ui-accordion .ui-accordion-header .ui-accordion-header-icon { position: absolute; left: .5em; top: 50%; margin-top: -8px; }
51
- .ui-accordion .ui-accordion-content { padding: 1em 2.2em; border-top: 0; overflow: auto; zoom: 1; }
52
- .ui-button { display: inline-block; position: relative; padding: 0; margin-right: .1em; cursor: pointer; text-align: center; zoom: 1; overflow: visible; } /* the overflow property removes extra width in IE */
53
- .ui-button, .ui-button:link, .ui-button:visited, .ui-button:hover, .ui-button:active { text-decoration: none; }
54
- .ui-button-icon-only { width: 2.2em; } /* to make room for the icon, a width needs to be set here */
55
- button.ui-button-icon-only { width: 2.4em; } /* button elements seem to need a little more width */
56
- .ui-button-icons-only { width: 3.4em; }
57
- button.ui-button-icons-only { width: 3.7em; }
58
-
59
- /*button text element */
60
- .ui-button .ui-button-text { display: block; line-height: 1.4; }
61
- .ui-button-text-only .ui-button-text { padding: .4em 1em; }
62
- .ui-button-icon-only .ui-button-text, .ui-button-icons-only .ui-button-text { padding: .4em; text-indent: -9999999px; }
63
- .ui-button-text-icon-primary .ui-button-text, .ui-button-text-icons .ui-button-text { padding: .4em 1em .4em 2.1em; }
64
- .ui-button-text-icon-secondary .ui-button-text, .ui-button-text-icons .ui-button-text { padding: .4em 2.1em .4em 1em; }
65
- .ui-button-text-icons .ui-button-text { padding-left: 2.1em; padding-right: 2.1em; }
66
- /* no icon support for input elements, provide padding by default */
67
- input.ui-button { padding: .4em 1em; }
68
-
69
- /*button icon element(s) */
70
- .ui-button-icon-only .ui-icon, .ui-button-text-icon-primary .ui-icon, .ui-button-text-icon-secondary .ui-icon, .ui-button-text-icons .ui-icon, .ui-button-icons-only .ui-icon { position: absolute; top: 50%; margin-top: -8px; }
71
- .ui-button-icon-only .ui-icon { left: 50%; margin-left: -8px; }
72
- .ui-button-text-icon-primary .ui-button-icon-primary, .ui-button-text-icons .ui-button-icon-primary, .ui-button-icons-only .ui-button-icon-primary { left: .5em; }
73
- .ui-button-text-icon-secondary .ui-button-icon-secondary, .ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { right: .5em; }
74
- .ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { right: .5em; }
75
-
76
- /*button sets*/
77
- .ui-buttonset { margin-right: 7px; }
78
- .ui-buttonset .ui-button { margin-left: 0; margin-right: -.3em; }
79
-
80
- /* workarounds */
81
- button.ui-button::-moz-focus-inner { border: 0; padding: 0; } /* reset extra padding in Firefox */
82
- .ui-dialog { position: absolute; padding: .2em; width: 300px; overflow: hidden; }
83
- .ui-dialog .ui-dialog-titlebar { padding: .4em 1em; height: 20px; /*background: #666;*/ color: #666; position: relative; }
84
- .ui-dialog .ui-dialog-title { float: left; margin: .1em 16px .1em 0; }
85
- .ui-dialog .ui-dialog-titlebar-close { position: absolute; right: .3em; top: 50%; width: 19px; margin: -10px 0 0 0; padding: 1px; height: 18px; }
86
- .ui-dialog .ui-dialog-titlebar-close span { display: block; margin: 1px; }
87
- .ui-dialog .ui-dialog-titlebar-close:hover, .ui-dialog .ui-dialog-titlebar-close:focus { padding: 0; }
88
- .ui-dialog .ui-dialog-content { position: relative; border: 0; padding: .5em 1em; background: none; overflow: auto; zoom: 1; }
89
- .ui-dialog .ui-dialog-buttonpane { text-align: left; border-width: 1px 0 0 0; background-image: none; margin: .5em 0 0 0; padding: .3em 1em .5em .4em; }
90
- .ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset { float: right; }
91
- .ui-dialog .ui-dialog-buttonpane button { margin: .5em .4em .5em 0; cursor: pointer; }
92
- .ui-dialog .ui-resizable-se { width: 14px; height: 14px; right: 3px; bottom: 3px; }
93
- .ui-draggable .ui-dialog-titlebar { cursor: move; }
94
- .ui-menu { list-style:none; padding: 2px; margin: 0; display:block; outline: none; }
95
- .ui-menu .ui-menu { margin-top: -3px; position: absolute; }
96
- .ui-menu .ui-menu-item { margin: 0; padding: 0; zoom: 1; width: 100%; }
97
- .ui-menu .ui-menu-divider { margin: 5px -2px 5px -2px; height: 0; font-size: 0; line-height: 0; border-width: 1px 0 0 0; }
98
- .ui-menu .ui-menu-item a { text-decoration: none; display: block; padding: 2px .4em; line-height: 1.5; zoom: 1; font-weight: normal; }
99
- .ui-menu .ui-menu-item a.ui-state-focus,
100
- .ui-menu .ui-menu-item a.ui-state-active { font-weight: normal; margin: -1px; }
101
-
102
- .ui-menu .ui-state-disabled { font-weight: normal; margin: .4em 0 .2em; line-height: 1.5; }
103
- .ui-menu .ui-state-disabled a { cursor: default; }
104
-
105
- /* icon support */
106
- .ui-menu-icons { position: relative; }
107
- .ui-menu-icons .ui-menu-item a { position: relative; padding-left: 2em; }
108
-
109
- /* left-aligned */
110
- .ui-menu .ui-icon { position: absolute; top: .2em; left: .2em; }
111
-
112
- /* right-aligned */
113
- .ui-menu .ui-menu-icon { position: static; float: right; }
114
- .ui-slider { position: relative; text-align: left; }
115
- .ui-slider .ui-slider-handle { position: absolute; z-index: 2; width: 1.2em; height: 1.2em; cursor: default; }
116
- .ui-slider .ui-slider-range { position: absolute; z-index: 1; font-size: .7em; display: block; border: 0; background-position: 0 0; }
117
-
118
- .ui-slider-horizontal { height: .8em; }
119
- .ui-slider-horizontal .ui-slider-handle { top: -.3em; margin-left: -.6em; }
120
- .ui-slider-horizontal .ui-slider-range { top: 0; height: 100%; }
121
- .ui-slider-horizontal .ui-slider-range-min { left: 0; }
122
- .ui-slider-horizontal .ui-slider-range-max { right: 0; }
123
-
124
- .ui-slider-vertical { width: .8em; height: 100px; }
125
- .ui-slider-vertical .ui-slider-handle { left: -.3em; margin-left: 0; margin-bottom: -.6em; }
126
- .ui-slider-vertical .ui-slider-range { left: 0; width: 100%; }
127
- .ui-slider-vertical .ui-slider-range-min { bottom: 0; }
128
- .ui-slider-vertical .ui-slider-range-max { top: 0; }.ui-spinner { position:relative; display: inline-block; overflow: hidden; padding: 0; vertical-align: middle; }
129
- .ui-spinner-input { border: none; background: none; padding: 0; margin: .2em 0; vertical-align: middle; margin-left: .4em; margin-right: 22px; }
130
- .ui-spinner-button { width: 16px; height: 50%; font-size: .5em; padding: 0; margin: 0; text-align: center; position: absolute; cursor: default; display: block; overflow: hidden; right: 0; }
131
- .ui-spinner a.ui-spinner-button { border-top: none; border-bottom: none; border-right: none; } /* more specificity required here to overide default borders */
132
- .ui-spinner .ui-icon { position: absolute; margin-top: -8px; top: 50%; left: 0; } /* vertical centre icon */
133
- .ui-spinner-up { top: 0; }
134
- .ui-spinner-down { bottom: 0; }
135
-
136
- /* TR overrides */
137
- .ui-spinner .ui-icon-triangle-1-s {
138
- /* need to fix icons sprite */
139
- background-position:-65px -16px;
140
- }
141
- .ui-tabs { position: relative; padding: .2em; zoom: 1; } /* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */
142
- .ui-tabs .ui-tabs-nav { margin: 0; padding: .2em .2em 0; }
143
- .ui-tabs .ui-tabs-nav li { list-style: none; float: left; position: relative; top: 0; margin: 1px .2em 0 0; border-bottom: 0; padding: 0; white-space: nowrap; }
144
- .ui-tabs .ui-tabs-nav li a { float: left; padding: .5em 1em; text-decoration: none; }
145
- .ui-tabs .ui-tabs-nav li.ui-tabs-active { margin-bottom: -1px; padding-bottom: 1px; }
146
- .ui-tabs .ui-tabs-nav li.ui-tabs-active a, .ui-tabs .ui-tabs-nav li.ui-state-disabled a, .ui-tabs .ui-tabs-nav li.ui-tabs-loading a { cursor: text; }
147
- .ui-tabs .ui-tabs-nav li a, .ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active a { cursor: pointer; } /* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */
148
- .ui-tabs .ui-tabs-panel { display: block; border-width: 0; padding: 1em 1.4em; background: none; }
149
-
150
- /* Component containers
151
- ----------------------------------*/
152
- .ui-widget { font-family: sans-serif; font-size: 12px; }
153
- .ui-widget .ui-widget { font-size: 1em; }
154
- .ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button { font-family: sans-serif; font-size: 1em; }
155
- .ui-widget-content { border: 1px solid #dddddd; background: #f5f5f5 50% top repeat-x; color: #333333; }
156
- .ui-widget-content a { color: #333333; }
157
- .ui-widget-header { border: 1px solid #b3b3b3; background: #ccc; color: #474747; font-weight: bold; }
158
- .ui-widget-header a { color: #474747; }
159
-
160
- /* Interaction states
161
- ----------------------------------*/
162
- .ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default { border: 1px solid #ababab; background: #f2f2f2 url(images/ui-bg_inset-soft_100_f2f2f2_1x100.png) 50% 50% repeat-x; font-weight: bold; color: #545454; }
163
- .ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited { color: #545454; text-decoration: none; }
164
- .ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus { border: 1px solid #5f9cd8; background: #dbf1ff url(images/ui-bg_highlight-soft_100_dbf1ff_1x100.png) 50% 50% repeat-x; font-weight: bold; color: #00467a; }
165
- .ui-state-hover a, .ui-state-hover a:hover, .ui-state-hover a:link, .ui-state-hover a:visited { color: #00467a; text-decoration: none; }
166
- .ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active { border: 1px solid #8f8f8f; background: #f2f2f2 url(images/ui-bg_highlight-soft_65_f2f2f2_1x100.png) 50% 50% repeat-x; font-weight: bold; color: #4f4f4f; }
167
- .ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited { color: #4f4f4f; text-decoration: none; }
168
-
169
- /* Interaction Cues
170
- ----------------------------------*/
171
- .ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight {border: 1px solid #fed22f; background: #fefc95 url(images/ui-bg_highlight-soft_75_fefc95_1x100.png) 50% top repeat-x; color: #363636; }
172
- .ui-state-highlight a, .ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a { color: #363636; }
173
- .ui-state-error, .ui-widget-content .ui-state-error, .ui-widget-header .ui-state-error {border: 1px solid #cd0a0a; background: #b81900 url(images/ui-bg_diagonals-thick_18_b81900_40x40.png) 50% 50% repeat; color: #ffffff; }
174
- .ui-state-error a, .ui-widget-content .ui-state-error a, .ui-widget-header .ui-state-error a { color: #ffffff; }
175
- .ui-state-error-text, .ui-widget-content .ui-state-error-text, .ui-widget-header .ui-state-error-text { color: #ffffff; }
176
- .ui-priority-primary, .ui-widget-content .ui-priority-primary, .ui-widget-header .ui-priority-primary { font-weight: bold; }
177
- .ui-priority-secondary, .ui-widget-content .ui-priority-secondary, .ui-widget-header .ui-priority-secondary { opacity: .7; filter:Alpha(Opacity=70); font-weight: normal; }
178
- .ui-state-disabled, .ui-widget-content .ui-state-disabled, .ui-widget-header .ui-state-disabled { opacity: .35; filter:Alpha(Opacity=35); background-image: none; }
179
- .ui-state-disabled .ui-icon { filter:Alpha(Opacity=35); } /* For IE8 - See #6059 */
180
-
181
- /* Icons
182
- ----------------------------------*/
183
-
184
- /* states and images */
185
- .ui-icon { width: 16px; height: 16px; background-image: url(images/ui-icons_222222_256x240.png); }
186
- .ui-widget-content .ui-icon {background-image: url(images/ui-icons_222222_256x240.png); }
187
- .ui-widget-header .ui-icon {background-image: url(images/ui-icons_ffffff_256x240.png); }
188
- .ui-state-default .ui-icon { background-image: url(images/ui-icons_616161_256x240.png); }
189
- .ui-state-hover .ui-icon, .ui-state-focus .ui-icon {background-image: url(images/ui-icons_474747_256x240.png); }
190
- .ui-state-active .ui-icon {background-image: url(images/ui-icons_0879ef_256x240.png); }
191
- .ui-state-highlight .ui-icon {background-image: url(images/ui-icons_228ef1_256x240.png); }
192
- .ui-state-error .ui-icon, .ui-state-error-text .ui-icon {background-image: url(images/ui-icons_ffd27a_256x240.png); }
193
-
194
- /* positioning */
195
- .ui-icon-carat-1-n { background-position: 0 0; }
196
- .ui-icon-carat-1-ne { background-position: -16px 0; }
197
- .ui-icon-carat-1-e { background-position: -32px 0; }
198
- .ui-icon-carat-1-se { background-position: -48px 0; }
199
- .ui-icon-carat-1-s { background-position: -64px 0; }
200
- .ui-icon-carat-1-sw { background-position: -80px 0; }
201
- .ui-icon-carat-1-w { background-position: -96px 0; }
202
- .ui-icon-carat-1-nw { background-position: -112px 0; }
203
- .ui-icon-carat-2-n-s { background-position: -128px 0; }
204
- .ui-icon-carat-2-e-w { background-position: -144px 0; }
205
- .ui-icon-triangle-1-n { background-position: 0 -16px; }
206
- .ui-icon-triangle-1-ne { background-position: -16px -16px; }
207
- .ui-icon-triangle-1-e { background-position: -32px -16px; }
208
- .ui-icon-triangle-1-se { background-position: -48px -16px; }
209
- .ui-icon-triangle-1-s { background-position: -64px -16px; }
210
- .ui-icon-triangle-1-sw { background-position: -80px -16px; }
211
- .ui-icon-triangle-1-w { background-position: -96px -16px; }
212
- .ui-icon-triangle-1-nw { background-position: -112px -16px; }
213
- .ui-icon-triangle-2-n-s { background-position: -128px -16px; }
214
- .ui-icon-triangle-2-e-w { background-position: -144px -16px; }
215
- .ui-icon-arrow-1-n { background-position: 0 -32px; }
216
- .ui-icon-arrow-1-ne { background-position: -16px -32px; }
217
- .ui-icon-arrow-1-e { background-position: -32px -32px; }
218
- .ui-icon-arrow-1-se { background-position: -48px -32px; }
219
- .ui-icon-arrow-1-s { background-position: -64px -32px; }
220
- .ui-icon-arrow-1-sw { background-position: -80px -32px; }
221
- .ui-icon-arrow-1-w { background-position: -96px -32px; }
222
- .ui-icon-arrow-1-nw { background-position: -112px -32px; }
223
- .ui-icon-arrow-2-n-s { background-position: -128px -32px; }
224
- .ui-icon-arrow-2-ne-sw { background-position: -144px -32px; }
225
- .ui-icon-arrow-2-e-w { background-position: -160px -32px; }
226
- .ui-icon-arrow-2-se-nw { background-position: -176px -32px; }
227
- .ui-icon-arrowstop-1-n { background-position: -192px -32px; }
228
- .ui-icon-arrowstop-1-e { background-position: -208px -32px; }
229
- .ui-icon-arrowstop-1-s { background-position: -224px -32px; }
230
- .ui-icon-arrowstop-1-w { background-position: -240px -32px; }
231
- .ui-icon-arrowthick-1-n { background-position: 0 -48px; }
232
- .ui-icon-arrowthick-1-ne { background-position: -16px -48px; }
233
- .ui-icon-arrowthick-1-e { background-position: -32px -48px; }
234
- .ui-icon-arrowthick-1-se { background-position: -48px -48px; }
235
- .ui-icon-arrowthick-1-s { background-position: -64px -48px; }
236
- .ui-icon-arrowthick-1-sw { background-position: -80px -48px; }
237
- .ui-icon-arrowthick-1-w { background-position: -96px -48px; }
238
- .ui-icon-arrowthick-1-nw { background-position: -112px -48px; }
239
- .ui-icon-arrowthick-2-n-s { background-position: -128px -48px; }
240
- .ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; }
241
- .ui-icon-arrowthick-2-e-w { background-position: -160px -48px; }
242
- .ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; }
243
- .ui-icon-arrowthickstop-1-n { background-position: -192px -48px; }
244
- .ui-icon-arrowthickstop-1-e { background-position: -208px -48px; }
245
- .ui-icon-arrowthickstop-1-s { background-position: -224px -48px; }
246
- .ui-icon-arrowthickstop-1-w { background-position: -240px -48px; }
247
- .ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; }
248
- .ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; }
249
- .ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; }
250
- .ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; }
251
- .ui-icon-arrowreturn-1-w { background-position: -64px -64px; }
252
- .ui-icon-arrowreturn-1-n { background-position: -80px -64px; }
253
- .ui-icon-arrowreturn-1-e { background-position: -96px -64px; }
254
- .ui-icon-arrowreturn-1-s { background-position: -112px -64px; }
255
- .ui-icon-arrowrefresh-1-w { background-position: -128px -64px; }
256
- .ui-icon-arrowrefresh-1-n { background-position: -144px -64px; }
257
- .ui-icon-arrowrefresh-1-e { background-position: -160px -64px; }
258
- .ui-icon-arrowrefresh-1-s { background-position: -176px -64px; }
259
- .ui-icon-arrow-4 { background-position: 0 -80px; }
260
- .ui-icon-arrow-4-diag { background-position: -16px -80px; }
261
- .ui-icon-extlink { background-position: -32px -80px; }
262
- .ui-icon-newwin { background-position: -48px -80px; }
263
- .ui-icon-refresh { background-position: -64px -80px; }
264
- .ui-icon-shuffle { background-position: -80px -80px; }
265
- .ui-icon-transfer-e-w { background-position: -96px -80px; }
266
- .ui-icon-transferthick-e-w { background-position: -112px -80px; }
267
- .ui-icon-folder-collapsed { background-position: 0 -96px; }
268
- .ui-icon-folder-open { background-position: -16px -96px; }
269
- .ui-icon-document { background-position: -32px -96px; }
270
- .ui-icon-document-b { background-position: -48px -96px; }
271
- .ui-icon-note { background-position: -64px -96px; }
272
- .ui-icon-mail-closed { background-position: -80px -96px; }
273
- .ui-icon-mail-open { background-position: -96px -96px; }
274
- .ui-icon-suitcase { background-position: -112px -96px; }
275
- .ui-icon-comment { background-position: -128px -96px; }
276
- .ui-icon-person { background-position: -144px -96px; }
277
- .ui-icon-print { background-position: -160px -96px; }
278
- .ui-icon-trash { background-position: -176px -96px; }
279
- .ui-icon-locked { background-position: -192px -96px; }
280
- .ui-icon-unlocked { background-position: -208px -96px; }
281
- .ui-icon-bookmark { background-position: -224px -96px; }
282
- .ui-icon-tag { background-position: -240px -96px; }
283
- .ui-icon-home { background-position: 0 -112px; }
284
- .ui-icon-flag { background-position: -16px -112px; }
285
- .ui-icon-calendar { background-position: -32px -112px; }
286
- .ui-icon-cart { background-position: -48px -112px; }
287
- .ui-icon-pencil { background-position: -64px -112px; }
288
- .ui-icon-clock { background-position: -80px -112px; }
289
- .ui-icon-disk { background-position: -96px -112px; }
290
- .ui-icon-calculator { background-position: -112px -112px; }
291
- .ui-icon-zoomin { background-position: -128px -112px; }
292
- .ui-icon-zoomout { background-position: -144px -112px; }
293
- .ui-icon-search { background-position: -160px -112px; }
294
- .ui-icon-wrench { background-position: -176px -112px; }
295
- .ui-icon-gear { background-position: -192px -112px; }
296
- .ui-icon-heart { background-position: -208px -112px; }
297
- .ui-icon-star { background-position: -224px -112px; }
298
- .ui-icon-link { background-position: -240px -112px; }
299
- .ui-icon-cancel { background-position: 0 -128px; }
300
- .ui-icon-plus { background-position: -16px -128px; }
301
- .ui-icon-plusthick { background-position: -32px -128px; }
302
- .ui-icon-minus { background-position: -48px -128px; }
303
- .ui-icon-minusthick { background-position: -64px -128px; }
304
- .ui-icon-close { background-position: -80px -128px; }
305
- .ui-icon-closethick { background-position: -96px -128px; }
306
- .ui-icon-key { background-position: -112px -128px; }
307
- .ui-icon-lightbulb { background-position: -128px -128px; }
308
- .ui-icon-scissors { background-position: -144px -128px; }
309
- .ui-icon-clipboard { background-position: -160px -128px; }
310
- .ui-icon-copy { background-position: -176px -128px; }
311
- .ui-icon-contact { background-position: -192px -128px; }
312
- .ui-icon-image { background-position: -208px -128px; }
313
- .ui-icon-video { background-position: -224px -128px; }
314
- .ui-icon-script { background-position: -240px -128px; }
315
- .ui-icon-alert { background-position: 0 -144px; }
316
- .ui-icon-info { background-position: -16px -144px; }
317
- .ui-icon-notice { background-position: -32px -144px; }
318
- .ui-icon-help { background-position: -48px -144px; }
319
- .ui-icon-check { background-position: -64px -144px; }
320
- .ui-icon-bullet { background-position: -80px -144px; }
321
- .ui-icon-radio-on { background-position: -96px -144px; }
322
- .ui-icon-radio-off { background-position: -112px -144px; }
323
- .ui-icon-pin-w { background-position: -128px -144px; }
324
- .ui-icon-pin-s { background-position: -144px -144px; }
325
- .ui-icon-play { background-position: 0 -160px; }
326
- .ui-icon-pause { background-position: -16px -160px; }
327
- .ui-icon-seek-next { background-position: -32px -160px; }
328
- .ui-icon-seek-prev { background-position: -48px -160px; }
329
- .ui-icon-seek-end { background-position: -64px -160px; }
330
- .ui-icon-seek-start { background-position: -80px -160px; }
331
- /* ui-icon-seek-first is deprecated, use ui-icon-seek-start instead */
332
- .ui-icon-seek-first { background-position: -80px -160px; }
333
- .ui-icon-stop { background-position: -96px -160px; }
334
- .ui-icon-eject { background-position: -112px -160px; }
335
- .ui-icon-volume-off { background-position: -128px -160px; }
336
- .ui-icon-volume-on { background-position: -144px -160px; }
337
- .ui-icon-power { background-position: 0 -176px; }
338
- .ui-icon-signal-diag { background-position: -16px -176px; }
339
- .ui-icon-signal { background-position: -32px -176px; }
340
- .ui-icon-battery-0 { background-position: -48px -176px; }
341
- .ui-icon-battery-1 { background-position: -64px -176px; }
342
- .ui-icon-battery-2 { background-position: -80px -176px; }
343
- .ui-icon-battery-3 { background-position: -96px -176px; }
344
- .ui-icon-circle-plus { background-position: 0 -192px; }
345
- .ui-icon-circle-minus { background-position: -16px -192px; }
346
- .ui-icon-circle-close { background-position: -32px -192px; }
347
- .ui-icon-circle-triangle-e { background-position: -48px -192px; }
348
- .ui-icon-circle-triangle-s { background-position: -64px -192px; }
349
- .ui-icon-circle-triangle-w { background-position: -80px -192px; }
350
- .ui-icon-circle-triangle-n { background-position: -96px -192px; }
351
- .ui-icon-circle-arrow-e { background-position: -112px -192px; }
352
- .ui-icon-circle-arrow-s { background-position: -128px -192px; }
353
- .ui-icon-circle-arrow-w { background-position: -144px -192px; }
354
- .ui-icon-circle-arrow-n { background-position: -160px -192px; }
355
- .ui-icon-circle-zoomin { background-position: -176px -192px; }
356
- .ui-icon-circle-zoomout { background-position: -192px -192px; }
357
- .ui-icon-circle-check { background-position: -208px -192px; }
358
- .ui-icon-circlesmall-plus { background-position: 0 -208px; }
359
- .ui-icon-circlesmall-minus { background-position: -16px -208px; }
360
- .ui-icon-circlesmall-close { background-position: -32px -208px; }
361
- .ui-icon-squaresmall-plus { background-position: -48px -208px; }
362
- .ui-icon-squaresmall-minus { background-position: -64px -208px; }
363
- .ui-icon-squaresmall-close { background-position: -80px -208px; }
364
- .ui-icon-grip-dotted-vertical { background-position: 0 -224px; }
365
- .ui-icon-grip-dotted-horizontal { background-position: -16px -224px; }
366
- .ui-icon-grip-solid-vertical { background-position: -32px -224px; }
367
- .ui-icon-grip-solid-horizontal { background-position: -48px -224px; }
368
- .ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; }
369
- .ui-icon-grip-diagonal-se { background-position: -80px -224px; }
370
-
371
-
372
- /* Misc visuals
373
- ----------------------------------*/
374
-
375
- /* Corner radius */
376
- .ui-corner-all, .ui-corner-top, .ui-corner-left, .ui-corner-tl { -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px; -khtml-border-top-left-radius: 4px; border-top-left-radius: 4px; }
377
- .ui-corner-all, .ui-corner-top, .ui-corner-right, .ui-corner-tr { -moz-border-radius-topright: 4px; -webkit-border-top-right-radius: 4px; -khtml-border-top-right-radius: 4px; border-top-right-radius: 4px; }
378
- .ui-corner-all, .ui-corner-bottom, .ui-corner-left, .ui-corner-bl { -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: 4px; -khtml-border-bottom-left-radius: 4px; border-bottom-left-radius: 4px; }
379
- .ui-corner-all, .ui-corner-bottom, .ui-corner-right, .ui-corner-br { -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; -khtml-border-bottom-right-radius: 4px; border-bottom-right-radius: 4px; }
380
-
381
- /* Overlays */
382
- .ui-widget-overlay { background: #666666; opacity: .5;filter:Alpha(Opacity=50); }
383
- .ui-widget-shadow { margin: -5px 0 0 -5px; padding: 5px; background: #000000 url(images/ui-bg_flat_10_000000_40x100.png) 50% 50% repeat-x; opacity: .2;filter:Alpha(Opacity=20); -moz-border-radius: 5px; -khtml-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
js/jquery-ui/jquery-ui.js DELETED
@@ -1,6 +0,0 @@
1
- /*! jQuery UI - v1.9.1 - 2012-11-23
2
- * http://jqueryui.com
3
- * Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.position.js, jquery.ui.draggable.js, jquery.ui.droppable.js, jquery.ui.resizable.js, jquery.ui.selectable.js, jquery.ui.sortable.js, jquery.ui.accordion.js, jquery.ui.button.js, jquery.ui.dialog.js, jquery.ui.menu.js, jquery.ui.slider.js, jquery.ui.spinner.js, jquery.ui.tabs.js
4
- * Copyright (c) 2012 jQuery Foundation and other contributors Licensed MIT */
5
-
6
- (function(e,t){function i(t,n){var r,i,o,u=t.nodeName.toLowerCase();return"area"===u?(r=t.parentNode,i=r.name,!t.href||!i||r.nodeName.toLowerCase()!=="map"?!1:(o=e("img[usemap=#"+i+"]")[0],!!o&&s(o))):(/input|select|textarea|button|object/.test(u)?!t.disabled:"a"===u?t.href||n:n)&&s(t)}function s(t){return e.expr.filters.visible(t)&&!e(t).parents().andSelf().filter(function(){return e.css(this,"visibility")==="hidden"}).length}var n=0,r=/^ui-id-\d+$/;e.ui=e.ui||{};if(e.ui.version)return;e.extend(e.ui,{version:"1.9.1",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),e.fn.extend({_focus:e.fn.focus,focus:function(t,n){return typeof t=="number"?this.each(function(){var r=this;setTimeout(function(){e(r).focus(),n&&n.call(r)},t)}):this._focus.apply(this,arguments)},scrollParent:function(){var t;return e.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?t=this.parents().filter(function(){return/(relative|absolute|fixed)/.test(e.css(this,"position"))&&/(auto|scroll)/.test(e.css(this,"overflow")+e.css(this,"overflow-y")+e.css(this,"overflow-x"))}).eq(0):t=this.parents().filter(function(){return/(auto|scroll)/.test(e.css(this,"overflow")+e.css(this,"overflow-y")+e.css(this,"overflow-x"))}).eq(0),/fixed/.test(this.css("position"))||!t.length?e(document):t},zIndex:function(n){if(n!==t)return this.css("zIndex",n);if(this.length){var r=e(this[0]),i,s;while(r.length&&r[0]!==document){i=r.css("position");if(i==="absolute"||i==="relative"||i==="fixed"){s=parseInt(r.css("zIndex"),10);if(!isNaN(s)&&s!==0)return s}r=r.parent()}}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++n)})},removeUniqueId:function(){return this.each(function(){r.test(this.id)&&e(this).removeAttr("id")})}}),e("<a>").outerWidth(1).jquery||e.each(["Width","Height"],function(n,r){function u(t,n,r,s){return e.each(i,function(){n-=parseFloat(e.css(t,"padding"+this))||0,r&&(n-=parseFloat(e.css(t,"border"+this+"Width"))||0),s&&(n-=parseFloat(e.css(t,"margin"+this))||0)}),n}var i=r==="Width"?["Left","Right"]:["Top","Bottom"],s=r.toLowerCase(),o={innerWidth:e.fn.innerWidth,innerHeight:e.fn.innerHeight,outerWidth:e.fn.outerWidth,outerHeight:e.fn.outerHeight};e.fn["inner"+r]=function(n){return n===t?o["inner"+r].call(this):this.each(function(){e(this).css(s,u(this,n)+"px")})},e.fn["outer"+r]=function(t,n){return typeof t!="number"?o["outer"+r].call(this,t):this.each(function(){e(this).css(s,u(this,t,!0,n)+"px")})}}),e.extend(e.expr[":"],{data:e.expr.createPseudo?e.expr.createPseudo(function(t){return function(n){return!!e.data(n,t)}}):function(t,n,r){return!!e.data(t,r[3])},focusable:function(t){return i(t,!isNaN(e.attr(t,"tabindex")))},tabbable:function(t){var n=e.attr(t,"tabindex"),r=isNaN(n);return(r||n>=0)&&i(t,!r)}}),e(function(){var t=document.body,n=t.appendChild(n=document.createElement("div"));n.offsetHeight,e.extend(n.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0}),e.support.minHeight=n.offsetHeight===100,e.support.selectstart="onselectstart"in n,t.removeChild(n).style.display="none"}),function(){var t=/msie ([\w.]+)/.exec(navigator.userAgent.toLowerCase())||[];e.ui.ie=t.length?!0:!1,e.ui.ie6=parseFloat(t[1],10)===6}(),e.fn.extend({disableSelection:function(){return this.bind((e.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(e){e.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),e.extend(e.ui,{plugin:{add:function(t,n,r){var i,s=e.ui[t].prototype;for(i in r)s.plugins[i]=s.plugins[i]||[],s.plugins[i].push([n,r[i]])},call:function(e,t,n){var r,i=e.plugins[t];if(!i||!e.element[0].parentNode||e.element[0].parentNode.nodeType===11)return;for(r=0;r<i.length;r++)e.options[i[r][0]]&&i[r][1].apply(e.element,n)}},contains:e.contains,hasScroll:function(t,n){if(e(t).css("overflow")==="hidden")return!1;var r=n&&n==="left"?"scrollLeft":"scrollTop",i=!1;return t[r]>0?!0:(t[r]=1,i=t[r]>0,t[r]=0,i)},isOverAxis:function(e,t,n){return e>t&&e<t+n},isOver:function(t,n,r,i,s,o){return e.ui.isOverAxis(t,r,s)&&e.ui.isOverAxis(n,i,o)}})})(jQuery);(function(e,t){var n=0,r=Array.prototype.slice,i=e.cleanData;e.cleanData=function(t){for(var n=0,r;(r=t[n])!=null;n++)try{e(r).triggerHandler("remove")}catch(s){}i(t)},e.widget=function(t,n,r){var i,s,o,u,a=t.split(".")[0];t=t.split(".")[1],i=a+"-"+t,r||(r=n,n=e.Widget),e.expr[":"][i.toLowerCase()]=function(t){return!!e.data(t,i)},e[a]=e[a]||{},s=e[a][t],o=e[a][t]=function(e,t){if(!this._createWidget)return new o(e,t);arguments.length&&this._createWidget(e,t)},e.extend(o,s,{version:r.version,_proto:e.extend({},r),_childConstructors:[]}),u=new n,u.options=e.widget.extend({},u.options),e.each(r,function(t,i){e.isFunction(i)&&(r[t]=function(){var e=function(){return n.prototype[t].apply(this,arguments)},r=function(e){return n.prototype[t].apply(this,e)};return function(){var t=this._super,n=this._superApply,s;return this._super=e,this._superApply=r,s=i.apply(this,arguments),this._super=t,this._superApply=n,s}}())}),o.prototype=e.widget.extend(u,{widgetEventPrefix:u.widgetEventPrefix||t},r,{constructor:o,namespace:a,widgetName:t,widgetBaseClass:i,widgetFullName:i}),s?(e.each(s._childConstructors,function(t,n){var r=n.prototype;e.widget(r.namespace+"."+r.widgetName,o,n._proto)}),delete s._childConstructors):n._childConstructors.push(o),e.widget.bridge(t,o)},e.widget.extend=function(n){var i=r.call(arguments,1),s=0,o=i.length,u,a;for(;s<o;s++)for(u in i[s])a=i[s][u],i[s].hasOwnProperty(u)&&a!==t&&(e.isPlainObject(a)?n[u]=e.isPlainObject(n[u])?e.widget.extend({},n[u],a):e.widget.extend({},a):n[u]=a);return n},e.widget.bridge=function(n,i){var s=i.prototype.widgetFullName;e.fn[n]=function(o){var u=typeof o=="string",a=r.call(arguments,1),f=this;return o=!u&&a.length?e.widget.extend.apply(null,[o].concat(a)):o,u?this.each(function(){var r,i=e.data(this,s);if(!i)return e.error("cannot call methods on "+n+" prior to initialization; "+"attempted to call method '"+o+"'");if(!e.isFunction(i[o])||o.charAt(0)==="_")return e.error("no such method '"+o+"' for "+n+" widget instance");r=i[o].apply(i,a);if(r!==i&&r!==t)return f=r&&r.jquery?f.pushStack(r.get()):r,!1}):this.each(function(){var t=e.data(this,s);t?t.option(o||{})._init():new i(o,this)}),f}},e.Widget=function(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(t,r){r=e(r||this.defaultElement||this)[0],this.element=e(r),this.uuid=n++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=e.widget.extend({},this.options,this._getCreateOptions(),t),this.bindings=e(),this.hoverable=e(),this.focusable=e(),r!==this&&(e.data(r,this.widgetName,this),e.data(r,this.widgetFullName,this),this._on(this.element,{remove:function(e){e.target===r&&this.destroy()}}),this.document=e(r.style?r.ownerDocument:r.document||r),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:e.noop,_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(e.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled "+"ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:e.noop,widget:function(){return this.element},option:function(n,r){var i=n,s,o,u;if(arguments.length===0)return e.widget.extend({},this.options);if(typeof n=="string"){i={},s=n.split("."),n=s.shift();if(s.length){o=i[n]=e.widget.extend({},this.options[n]);for(u=0;u<s.length-1;u++)o[s[u]]=o[s[u]]||{},o=o[s[u]];n=s.pop();if(r===t)return o[n]===t?null:o[n];o[n]=r}else{if(r===t)return this.options[n]===t?null:this.options[n];i[n]=r}}return this._setOptions(i),this},_setOptions:function(e){var t;for(t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return this.options[e]=t,e==="disabled"&&(this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!t).attr("aria-disabled",t),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_on:function(t,n){var r,i=this;n?(t=r=e(t),this.bindings=this.bindings.add(t)):(n=t,t=this.element,r=this.widget()),e.each(n,function(n,s){function o(){if(i.options.disabled===!0||e(this).hasClass("ui-state-disabled"))return;return(typeof s=="string"?i[s]:s).apply(i,arguments)}typeof s!="string"&&(o.guid=s.guid=s.guid||o.guid||e.guid++);var u=n.match(/^(\w+)\s*(.*)$/),a=u[1]+i.eventNamespace,f=u[2];f?r.delegate(f,a,o):t.bind(a,o)})},_off:function(e,t){t=(t||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.unbind(t).undelegate(t)},_delay:function(e,t){function n(){return(typeof e=="string"?r[e]:e).apply(r,arguments)}var r=this;return setTimeout(n,t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){e(t.currentTarget).addClass("ui-state-hover")},mouseleave:function(t){e(t.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){e(t.currentTarget).addClass("ui-state-focus")},focusout:function(t){e(t.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(t,n,r){var i,s,o=this.options[t];r=r||{},n=e.Event(n),n.type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),n.target=this.element[0],s=n.originalEvent;if(s)for(i in s)i in n||(n[i]=s[i]);return this.element.trigger(n,r),!(e.isFunction(o)&&o.apply(this.element[0],[n].concat(r))===!1||n.isDefaultPrevented())}},e.each({show:"fadeIn",hide:"fadeOut"},function(t,n){e.Widget.prototype["_"+t]=function(r,i,s){typeof i=="string"&&(i={effect:i});var o,u=i?i===!0||typeof i=="number"?n:i.effect||n:t;i=i||{},typeof i=="number"&&(i={duration:i}),o=!e.isEmptyObject(i),i.complete=s,i.delay&&r.delay(i.delay),o&&e.effects&&(e.effects.effect[u]||e.uiBackCompat!==!1&&e.effects[u])?r[t](i):u!==t&&r[u]?r[u](i.duration,i.easing,s):r.queue(function(n){e(this)[t](),s&&s.call(r[0]),n()})}}),e.uiBackCompat!==!1&&(e.Widget.prototype._getCreateOptions=function(){return e.metadata&&e.metadata.get(this.element[0])[this.widgetName]})})(jQuery);(function(e,t){var n=!1;e(document).mouseup(function(e){n=!1}),e.widget("ui.mouse",{version:"1.9.1",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.bind("mousedown."+this.widgetName,function(e){return t._mouseDown(e)}).bind("click."+this.widgetName,function(n){if(!0===e.data(n.target,t.widgetName+".preventClickEvent"))return e.removeData(n.target,t.widgetName+".preventClickEvent"),n.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName),this._mouseMoveDelegate&&e(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(t){if(n)return;this._mouseStarted&&this._mouseUp(t),this._mouseDownEvent=t;var r=this,i=t.which===1,s=typeof this.options.cancel=="string"&&t.target.nodeName?e(t.target).closest(this.options.cancel).length:!1;if(!i||s||!this._mouseCapture(t))return!0;this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){r.mouseDelayMet=!0},this.options.delay));if(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)){this._mouseStarted=this._mouseStart(t)!==!1;if(!this._mouseStarted)return t.preventDefault(),!0}return!0===e.data(t.target,this.widgetName+".preventClickEvent")&&e.removeData(t.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return r._mouseMove(e)},this._mouseUpDelegate=function(e){return r._mouseUp(e)},e(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),t.preventDefault(),n=!0,!0},_mouseMove:function(t){return!e.ui.ie||document.documentMode>=9||!!t.button?this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,t)!==!1,this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted):this._mouseUp(t)},_mouseUp:function(t){return e(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,t.target===this._mouseDownEvent.target&&e.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t)),!1},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(e){return this.mouseDelayMet},_mouseStart:function(e){},_mouseDrag:function(e){},_mouseStop:function(e){},_mouseCapture:function(e){return!0}})})(jQuery);(function(e,t){function h(e,t,n){return[parseInt(e[0],10)*(l.test(e[0])?t/100:1),parseInt(e[1],10)*(l.test(e[1])?n/100:1)]}function p(t,n){return parseInt(e.css(t,n),10)||0}e.ui=e.ui||{};var n,r=Math.max,i=Math.abs,s=Math.round,o=/left|center|right/,u=/top|center|bottom/,a=/[\+\-]\d+%?/,f=/^\w+/,l=/%$/,c=e.fn.position;e.position={scrollbarWidth:function(){if(n!==t)return n;var r,i,s=e("<div style='display:block;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),o=s.children()[0];return e("body").append(s),r=o.offsetWidth,s.css("overflow","scroll"),i=o.offsetWidth,r===i&&(i=s[0].clientWidth),s.remove(),n=r-i},getScrollInfo:function(t){var n=t.isWindow?"":t.element.css("overflow-x"),r=t.isWindow?"":t.element.css("overflow-y"),i=n==="scroll"||n==="auto"&&t.width<t.element[0].scrollWidth,s=r==="scroll"||r==="auto"&&t.height<t.element[0].scrollHeight;return{width:i?e.position.scrollbarWidth():0,height:s?e.position.scrollbarWidth():0}},getWithinInfo:function(t){var n=e(t||window),r=e.isWindow(n[0]);return{element:n,isWindow:r,offset:n.offset()||{left:0,top:0},scrollLeft:n.scrollLeft(),scrollTop:n.scrollTop(),width:r?n.width():n.outerWidth(),height:r?n.height():n.outerHeight()}}},e.fn.position=function(t){if(!t||!t.of)return c.apply(this,arguments);t=e.extend({},t);var n,l,d,v,m,g=e(t.of),y=e.position.getWithinInfo(t.within),b=e.position.getScrollInfo(y),w=g[0],E=(t.collision||"flip").split(" "),S={};return w.nodeType===9?(l=g.width(),d=g.height(),v={top:0,left:0}):e.isWindow(w)?(l=g.width(),d=g.height(),v={top:g.scrollTop(),left:g.scrollLeft()}):w.preventDefault?(t.at="left top",l=d=0,v={top:w.pageY,left:w.pageX}):(l=g.outerWidth(),d=g.outerHeight(),v=g.offset()),m=e.extend({},v),e.each(["my","at"],function(){var e=(t[this]||"").split(" "),n,r;e.length===1&&(e=o.test(e[0])?e.concat(["center"]):u.test(e[0])?["center"].concat(e):["center","center"]),e[0]=o.test(e[0])?e[0]:"center",e[1]=u.test(e[1])?e[1]:"center",n=a.exec(e[0]),r=a.exec(e[1]),S[this]=[n?n[0]:0,r?r[0]:0],t[this]=[f.exec(e[0])[0],f.exec(e[1])[0]]}),E.length===1&&(E[1]=E[0]),t.at[0]==="right"?m.left+=l:t.at[0]==="center"&&(m.left+=l/2),t.at[1]==="bottom"?m.top+=d:t.at[1]==="center"&&(m.top+=d/2),n=h(S.at,l,d),m.left+=n[0],m.top+=n[1],this.each(function(){var o,u,a=e(this),f=a.outerWidth(),c=a.outerHeight(),w=p(this,"marginLeft"),x=p(this,"marginTop"),T=f+w+p(this,"marginRight")+b.width,N=c+x+p(this,"marginBottom")+b.height,C=e.extend({},m),k=h(S.my,a.outerWidth(),a.outerHeight());t.my[0]==="right"?C.left-=f:t.my[0]==="center"&&(C.left-=f/2),t.my[1]==="bottom"?C.top-=c:t.my[1]==="center"&&(C.top-=c/2),C.left+=k[0],C.top+=k[1],e.support.offsetFractions||(C.left=s(C.left),C.top=s(C.top)),o={marginLeft:w,marginTop:x},e.each(["left","top"],function(r,i){e.ui.position[E[r]]&&e.ui.position[E[r]][i](C,{targetWidth:l,targetHeight:d,elemWidth:f,elemHeight:c,collisionPosition:o,collisionWidth:T,collisionHeight:N,offset:[n[0]+k[0],n[1]+k[1]],my:t.my,at:t.at,within:y,elem:a})}),e.fn.bgiframe&&a.bgiframe(),t.using&&(u=function(e){var n=v.left-C.left,s=n+l-f,o=v.top-C.top,u=o+d-c,h={target:{element:g,left:v.left,top:v.top,width:l,height:d},element:{element:a,left:C.left,top:C.top,width:f,height:c},horizontal:s<0?"left":n>0?"right":"center",vertical:u<0?"top":o>0?"bottom":"middle"};l<f&&i(n+s)<l&&(h.horizontal="center"),d<c&&i(o+u)<d&&(h.vertical="middle"),r(i(n),i(s))>r(i(o),i(u))?h.important="horizontal":h.important="vertical",t.using.call(this,e,h)}),a.offset(e.extend(C,{using:u}))})},e.ui.position={fit:{left:function(e,t){var n=t.within,i=n.isWindow?n.scrollLeft:n.offset.left,s=n.width,o=e.left-t.collisionPosition.marginLeft,u=i-o,a=o+t.collisionWidth-s-i,f;t.collisionWidth>s?u>0&&a<=0?(f=e.left+u+t.collisionWidth-s-i,e.left+=u-f):a>0&&u<=0?e.left=i:u>a?e.left=i+s-t.collisionWidth:e.left=i:u>0?e.left+=u:a>0?e.left-=a:e.left=r(e.left-o,e.left)},top:function(e,t){var n=t.within,i=n.isWindow?n.scrollTop:n.offset.top,s=t.within.height,o=e.top-t.collisionPosition.marginTop,u=i-o,a=o+t.collisionHeight-s-i,f;t.collisionHeight>s?u>0&&a<=0?(f=e.top+u+t.collisionHeight-s-i,e.top+=u-f):a>0&&u<=0?e.top=i:u>a?e.top=i+s-t.collisionHeight:e.top=i:u>0?e.top+=u:a>0?e.top-=a:e.top=r(e.top-o,e.top)}},flip:{left:function(e,t){var n=t.within,r=n.offset.left+n.scrollLeft,s=n.width,o=n.isWindow?n.scrollLeft:n.offset.left,u=e.left-t.collisionPosition.marginLeft,a=u-o,f=u+t.collisionWidth-s-o,l=t.my[0]==="left"?-t.elemWidth:t.my[0]==="right"?t.elemWidth:0,c=t.at[0]==="left"?t.targetWidth:t.at[0]==="right"?-t.targetWidth:0,h=-2*t.offset[0],p,d;if(a<0){p=e.left+l+c+h+t.collisionWidth-s-r;if(p<0||p<i(a))e.left+=l+c+h}else if(f>0){d=e.left-t.collisionPosition.marginLeft+l+c+h-o;if(d>0||i(d)<f)e.left+=l+c+h}},top:function(e,t){var n=t.within,r=n.offset.top+n.scrollTop,s=n.height,o=n.isWindow?n.scrollTop:n.offset.top,u=e.top-t.collisionPosition.marginTop,a=u-o,f=u+t.collisionHeight-s-o,l=t.my[1]==="top",c=l?-t.elemHeight:t.my[1]==="bottom"?t.elemHeight:0,h=t.at[1]==="top"?t.targetHeight:t.at[1]==="bottom"?-t.targetHeight:0,p=-2*t.offset[1],d,v;a<0?(v=e.top+c+h+p+t.collisionHeight-s-r,e.top+c+h+p>a&&(v<0||v<i(a))&&(e.top+=c+h+p)):f>0&&(d=e.top-t.collisionPosition.marginTop+c+h+p-o,e.top+c+h+p>f&&(d>0||i(d)<f)&&(e.top+=c+h+p))}},flipfit:{left:function(){e.ui.position.flip.left.apply(this,arguments),e.ui.position.fit.left.apply(this,arguments)},top:function(){e.ui.position.flip.top.apply(this,arguments),e.ui.position.fit.top.apply(this,arguments)}}},function(){var t,n,r,i,s,o=document.getElementsByTagName("body")[0],u=document.createElement("div");t=document.createElement(o?"div":"body"),r={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},o&&e.extend(r,{position:"absolute",left:"-1000px",top:"-1000px"});for(s in r)t.style[s]=r[s];t.appendChild(u),n=o||document.documentElement,n.insertBefore(t,n.firstChild),u.style.cssText="position: absolute; left: 10.7432222px;",i=e(u).offset().left,e.support.offsetFractions=i>10&&i<11,t.innerHTML="",n.removeChild(t)}(),e.uiBackCompat!==!1&&function(e){var n=e.fn.position;e.fn.position=function(r){if(!r||!r.offset)return n.call(this,r);var i=r.offset.split(" "),s=r.at.split(" ");return i.length===1&&(i[1]=i[0]),/^\d/.test(i[0])&&(i[0]="+"+i[0]),/^\d/.test(i[1])&&(i[1]="+"+i[1]),s.length===1&&(/left|center|right/.test(s[0])?s[1]="center":(s[1]=s[0],s[0]="center")),n.call(this,e.extend(r,{at:s[0]+i[0]+" "+s[1]+i[1],offset:t}))}}(jQuery)})(jQuery);(function(e,t){e.widget("ui.draggable",e.ui.mouse,{version:"1.9.1",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1},_create:function(){this.options.helper=="original"&&!/^(?:r|a|f)/.test(this.element.css("position"))&&(this.element[0].style.position="relative"),this.options.addClasses&&this.element.addClass("ui-draggable"),this.options.disabled&&this.element.addClass("ui-draggable-disabled"),this._mouseInit()},_destroy:function(){this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mouseDestroy()},_mouseCapture:function(t){var n=this.options;return this.helper||n.disabled||e(t.target).is(".ui-resizable-handle")?!1:(this.handle=this._getHandle(t),this.handle?(e(n.iframeFix===!0?"iframe":n.iframeFix).each(function(){e('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(e(this).offset()).appendTo("body")}),!0):!1)},_mouseStart:function(t){var n=this.options;return this.helper=this._createHelper(t),this.helper.addClass("ui-draggable-dragging"),this._cacheHelperProportions(),e.ui.ddmanager&&(e.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(),this.offset=this.positionAbs=this.element.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},e.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,n.cursorAt&&this._adjustOffsetFromHelper(n.cursorAt),n.containment&&this._setContainment(),this._trigger("start",t)===!1?(this._clear(),!1):(this._cacheHelperProportions(),e.ui.ddmanager&&!n.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),e.ui.ddmanager&&e.ui.ddmanager.dragStart(this,t),!0)},_mouseDrag:function(t,n){this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute");if(!n){var r=this._uiHash();if(this._trigger("drag",t,r)===!1)return this._mouseUp({}),!1;this.position=r.position}if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";return e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var n=!1;e.ui.ddmanager&&!this.options.dropBehaviour&&(n=e.ui.ddmanager.drop(this,t)),this.dropped&&(n=this.dropped,this.dropped=!1);var r=this.element[0],i=!1;while(r&&(r=r.parentNode))r==document&&(i=!0);if(!i&&this.options.helper==="original")return!1;if(this.options.revert=="invalid"&&!n||this.options.revert=="valid"&&n||this.options.revert===!0||e.isFunction(this.options.revert)&&this.options.revert.call(this.element,n)){var s=this;e(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){s._trigger("stop",t)!==!1&&s._clear()})}else this._trigger("stop",t)!==!1&&this._clear();return!1},_mouseUp:function(t){return e("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)}),e.ui.ddmanager&&e.ui.ddmanager.dragStop(this,t),e.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(t){var n=!this.options.handle||!e(this.options.handle,this.element).length?!0:!1;return e(this.options.handle,this.element).find("*").andSelf().each(function(){this==t.target&&(n=!0)}),n},_createHelper:function(t){var n=this.options,r=e.isFunction(n.helper)?e(n.helper.apply(this.element[0],[t])):n.helper=="clone"?this.element.clone().removeAttr("id"):this.element;return r.parents("body").length||r.appendTo(n.appendTo=="parent"?this.element[0].parentNode:n.appendTo),r[0]!=this.element[0]&&!/(fixed|absolute)/.test(r.css("position"))&&r.css("position","absolute"),r},_adjustOffsetFromHelper:function(t){typeof t=="string"&&(t=t.split(" ")),e.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&e.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop());if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&e.ui.ie)t={top:0,left:0};return{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var e=this.element.position();return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:e.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t=this.options;t.containment=="parent"&&(t.containment=this.helper[0].parentNode);if(t.containment=="document"||t.containment=="window")this.containment=[t.containment=="document"?0:e(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,t.containment=="document"?0:e(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,(t.containment=="document"?0:e(window).scrollLeft())+e(t.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(t.containment=="document"?0:e(window).scrollTop())+(e(t.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(t.containment)&&t.containment.constructor!=Array){var n=e(t.containment),r=n[0];if(!r)return;var i=n.offset(),s=e(r).css("overflow")!="hidden";this.containment=[(parseInt(e(r).css("borderLeftWidth"),10)||0)+(parseInt(e(r).css("paddingLeft"),10)||0),(parseInt(e(r).css("borderTopWidth"),10)||0)+(parseInt(e(r).css("paddingTop"),10)||0),(s?Math.max(r.scrollWidth,r.offsetWidth):r.offsetWidth)-(parseInt(e(r).css("borderLeftWidth"),10)||0)-(parseInt(e(r).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(s?Math.max(r.scrollHeight,r.offsetHeight):r.offsetHeight)-(parseInt(e(r).css("borderTopWidth"),10)||0)-(parseInt(e(r).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relative_container=n}else t.containment.constructor==Array&&(this.containment=t.containment)},_convertPositionTo:function(t,n){n||(n=this.position);var r=t=="absolute"?1:-1,i=this.options,s=this.cssPosition!="absolute"||this.scrollParent[0]!=document&&!!e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,o=/(html|body)/i.test(s[0].tagName);return{top:n.top+this.offset.relative.top*r+this.offset.parent.top*r-(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():o?0:s.scrollTop())*r,left:n.left+this.offset.relative.left*r+this.offset.parent.left*r-(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():o?0:s.scrollLeft())*r}},_generatePosition:function(t){var n=this.options,r=this.cssPosition!="absolute"||this.scrollParent[0]!=document&&!!e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,i=/(html|body)/i.test(r[0].tagName),s=t.pageX,o=t.pageY;if(this.originalPosition){var u;if(this.containment){if(this.relative_container){var a=this.relative_container.offset();u=[this.containment[0]+a.left,this.containment[1]+a.top,this.containment[2]+a.left,this.containment[3]+a.top]}else u=this.containment;t.pageX-this.offset.click.left<u[0]&&(s=u[0]+this.offset.click.left),t.pageY-this.offset.click.top<u[1]&&(o=u[1]+this.offset.click.top),t.pageX-this.offset.click.left>u[2]&&(s=u[2]+this.offset.click.left),t.pageY-this.offset.click.top>u[3]&&(o=u[3]+this.offset.click.top)}if(n.grid){var f=n.grid[1]?this.originalPageY+Math.round((o-this.originalPageY)/n.grid[1])*n.grid[1]:this.originalPageY;o=u?f-this.offset.click.top<u[1]||f-this.offset.click.top>u[3]?f-this.offset.click.top<u[1]?f+n.grid[1]:f-n.grid[1]:f:f;var l=n.grid[0]?this.originalPageX+Math.round((s-this.originalPageX)/n.grid[0])*n.grid[0]:this.originalPageX;s=u?l-this.offset.click.left<u[0]||l-this.offset.click.left>u[2]?l-this.offset.click.left<u[0]?l+n.grid[0]:l-n.grid[0]:l:l}}return{top:o-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():i?0:r.scrollTop()),left:s-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():i?0:r.scrollLeft())}},_clear:function(){this.helper.removeClass("ui-draggable-dragging"),this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval&&this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1},_trigger:function(t,n,r){return r=r||this._uiHash(),e.ui.plugin.call(this,t,[n,r]),t=="drag"&&(this.positionAbs=this._convertPositionTo("absolute")),e.Widget.prototype._trigger.call(this,t,n,r)},plugins:{},_uiHash:function(e){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),e.ui.plugin.add("draggable","connectToSortable",{start:function(t,n){var r=e(this).data("draggable"),i=r.options,s=e.extend({},n,{item:r.element});r.sortables=[],e(i.connectToSortable).each(function(){var n=e.data(this,"sortable");n&&!n.options.disabled&&(r.sortables.push({instance:n,shouldRevert:n.options.revert}),n.refreshPositions(),n._trigger("activate",t,s))})},stop:function(t,n){var r=e(this).data("draggable"),i=e.extend({},n,{item:r.element});e.each(r.sortables,function(){this.instance.isOver?(this.instance.isOver=0,r.cancelHelperRemoval=!0,this.instance.cancelHelperRemoval=!1,this.shouldRevert&&(this.instance.options.revert=!0),this.instance._mouseStop(t),this.instance.options.helper=this.instance.options._helper,r.options.helper=="original"&&this.instance.currentItem.css({top:"auto",left:"auto"})):(this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",t,i))})},drag:function(t,n){var r=e(this).data("draggable"),i=this,s=function(t){var n=this.offset.click.top,r=this.offset.click.left,i=this.positionAbs.top,s=this.positionAbs.left,o=t.height,u=t.width,a=t.top,f=t.left;return e.ui.isOver(i+n,s+r,a,f,o,u)};e.each(r.sortables,function(s){var o=!1,u=this;this.instance.positionAbs=r.positionAbs,this.instance.helperProportions=r.helperProportions,this.instance.offset.click=r.offset.click,this.instance._intersectsWith(this.instance.containerCache)&&(o=!0,e.each(r.sortables,function(){return this.instance.positionAbs=r.positionAbs,this.instance.helperProportions=r.helperProportions,this.instance.offset.click=r.offset.click,this!=u&&this.instance._intersectsWith(this.instance.containerCache)&&e.ui.contains(u.instance.element[0],this.instance.element[0])&&(o=!1),o})),o?(this.instance.isOver||(this.instance.isOver=1,this.instance.currentItem=e(i).clone().removeAttr("id").appendTo(this.instance.element).data("sortable-item",!0),this.instance.options._helper=this.instance.options.helper,this.instance.options.helper=function(){return n.helper[0]},t.target=this.instance.currentItem[0],this.instance._mouseCapture(t,!0),this.instance._mouseStart(t,!0,!0),this.instance.offset.click.top=r.offset.click.top,this.instance.offset.click.left=r.offset.click.left,this.instance.offset.parent.left-=r.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=r.offset.parent.top-this.instance.offset.parent.top,r._trigger("toSortable",t),r.dropped=this.instance.element,r.currentItem=r.element,this.instance.fromOutside=r),this.instance.currentItem&&this.instance._mouseDrag(t)):this.instance.isOver&&(this.instance.isOver=0,this.instance.cancelHelperRemoval=!0,this.instance.options.revert=!1,this.instance._trigger("out",t,this.instance._uiHash(this.instance)),this.instance._mouseStop(t,!0),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&&this.instance.placeholder.remove(),r._trigger("fromSortable",t),r.dropped=!1)})}}),e.ui.plugin.add("draggable","cursor",{start:function(t,n){var r=e("body"),i=e(this).data("draggable").options;r.css("cursor")&&(i._cursor=r.css("cursor")),r.css("cursor",i.cursor)},stop:function(t,n){var r=e(this).data("draggable").options;r._cursor&&e("body").css("cursor",r._cursor)}}),e.ui.plugin.add("draggable","opacity",{start:function(t,n){var r=e(n.helper),i=e(this).data("draggable").options;r.css("opacity")&&(i._opacity=r.css("opacity")),r.css("opacity",i.opacity)},stop:function(t,n){var r=e(this).data("draggable").options;r._opacity&&e(n.helper).css("opacity",r._opacity)}}),e.ui.plugin.add("draggable","scroll",{start:function(t,n){var r=e(this).data("draggable");r.scrollParent[0]!=document&&r.scrollParent[0].tagName!="HTML"&&(r.overflowOffset=r.scrollParent.offset())},drag:function(t,n){var r=e(this).data("draggable"),i=r.options,s=!1;if(r.scrollParent[0]!=document&&r.scrollParent[0].tagName!="HTML"){if(!i.axis||i.axis!="x")r.overflowOffset.top+r.scrollParent[0].offsetHeight-t.pageY<i.scrollSensitivity?r.scrollParent[0].scrollTop=s=r.scrollParent[0].scrollTop+i.scrollSpeed:t.pageY-r.overflowOffset.top<i.scrollSensitivity&&(r.scrollParent[0].scrollTop=s=r.scrollParent[0].scrollTop-i.scrollSpeed);if(!i.axis||i.axis!="y")r.overflowOffset.left+r.scrollParent[0].offsetWidth-t.pageX<i.scrollSensitivity?r.scrollParent[0].scrollLeft=s=r.scrollParent[0].scrollLeft+i.scrollSpeed:t.pageX-r.overflowOffset.left<i.scrollSensitivity&&(r.scrollParent[0].scrollLeft=s=r.scrollParent[0].scrollLeft-i.scrollSpeed)}else{if(!i.axis||i.axis!="x")t.pageY-e(document).scrollTop()<i.scrollSensitivity?s=e(document).scrollTop(e(document).scrollTop()-i.scrollSpeed):e(window).height()-(t.pageY-e(document).scrollTop())<i.scrollSensitivity&&(s=e(document).scrollTop(e(document).scrollTop()+i.scrollSpeed));if(!i.axis||i.axis!="y")t.pageX-e(document).scrollLeft()<i.scrollSensitivity?s=e(document).scrollLeft(e(document).scrollLeft()-i.scrollSpeed):e(window).width()-(t.pageX-e(document).scrollLeft())<i.scrollSensitivity&&(s=e(document).scrollLeft(e(document).scrollLeft()+i.scrollSpeed))}s!==!1&&e.ui.ddmanager&&!i.dropBehaviour&&e.ui.ddmanager.prepareOffsets(r,t)}}),e.ui.plugin.add("draggable","snap",{start:function(t,n){var r=e(this).data("draggable"),i=r.options;r.snapElements=[],e(i.snap.constructor!=String?i.snap.items||":data(draggable)":i.snap).each(function(){var t=e(this),n=t.offset();this!=r.element[0]&&r.snapElements.push({item:this,width:t.outerWidth(),height:t.outerHeight(),top:n.top,left:n.left})})},drag:function(t,n){var r=e(this).data("draggable"),i=r.options,s=i.snapTolerance,o=n.offset.left,u=o+r.helperProportions.width,a=n.offset.top,f=a+r.helperProportions.height;for(var l=r.snapElements.length-1;l>=0;l--){var c=r.snapElements[l].left,h=c+r.snapElements[l].width,p=r.snapElements[l].top,d=p+r.snapElements[l].height;if(!(c-s<o&&o<h+s&&p-s<a&&a<d+s||c-s<o&&o<h+s&&p-s<f&&f<d+s||c-s<u&&u<h+s&&p-s<a&&a<d+s||c-s<u&&u<h+s&&p-s<f&&f<d+s)){r.snapElements[l].snapping&&r.options.snap.release&&r.options.snap.release.call(r.element,t,e.extend(r._uiHash(),{snapItem:r.snapElements[l].item})),r.snapElements[l].snapping=!1;continue}if(i.snapMode!="inner"){var v=Math.abs(p-f)<=s,m=Math.abs(d-a)<=s,g=Math.abs(c-u)<=s,y=Math.abs(h-o)<=s;v&&(n.position.top=r._convertPositionTo("relative",{top:p-r.helperProportions.height,left:0}).top-r.margins.top),m&&(n.position.top=r._convertPositionTo("relative",{top:d,left:0}).top-r.margins.top),g&&(n.position.left=r._convertPositionTo("relative",{top:0,left:c-r.helperProportions.width}).left-r.margins.left),y&&(n.position.left=r._convertPositionTo("relative",{top:0,left:h}).left-r.margins.left)}var b=v||m||g||y;if(i.snapMode!="outer"){var v=Math.abs(p-a)<=s,m=Math.abs(d-f)<=s,g=Math.abs(c-o)<=s,y=Math.abs(h-u)<=s;v&&(n.position.top=r._convertPositionTo("relative",{top:p,left:0}).top-r.margins.top),m&&(n.position.top=r._convertPositionTo("relative",{top:d-r.helperProportions.height,left:0}).top-r.margins.top),g&&(n.position.left=r._convertPositionTo("relative",{top:0,left:c}).left-r.margins.left),y&&(n.position.left=r._convertPositionTo("relative",{top:0,left:h-r.helperProportions.width}).left-r.margins.left)}!r.snapElements[l].snapping&&(v||m||g||y||b)&&r.options.snap.snap&&r.options.snap.snap.call(r.element,t,e.extend(r._uiHash(),{snapItem:r.snapElements[l].item})),r.snapElements[l].snapping=v||m||g||y||b}}}),e.ui.plugin.add("draggable","stack",{start:function(t,n){var r=e(this).data("draggable").options,i=e.makeArray(e(r.stack)).sort(function(t,n){return(parseInt(e(t).css("zIndex"),10)||0)-(parseInt(e(n).css("zIndex"),10)||0)});if(!i.length)return;var s=parseInt(i[0].style.zIndex)||0;e(i).each(function(e){this.style.zIndex=s+e}),this[0].style.zIndex=s+i.length}}),e.ui.plugin.add("draggable","zIndex",{start:function(t,n){var r=e(n.helper),i=e(this).data("draggable").options;r.css("zIndex")&&(i._zIndex=r.css("zIndex")),r.css("zIndex",i.zIndex)},stop:function(t,n){var r=e(this).data("draggable").options;r._zIndex&&e(n.helper).css("zIndex",r._zIndex)}})})(jQuery);(function(e,t){e.widget("ui.droppable",{version:"1.9.1",widgetEventPrefix:"drop",options:{accept:"*",activeClass:!1,addClasses:!0,greedy:!1,hoverClass:!1,scope:"default",tolerance:"intersect"},_create:function(){var t=this.options,n=t.accept;this.isover=0,this.isout=1,this.accept=e.isFunction(n)?n:function(e){return e.is(n)},this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight},e.ui.ddmanager.droppables[t.scope]=e.ui.ddmanager.droppables[t.scope]||[],e.ui.ddmanager.droppables[t.scope].push(this),t.addClasses&&this.element.addClass("ui-droppable")},_destroy:function(){var t=e.ui.ddmanager.droppables[this.options.scope];for(var n=0;n<t.length;n++)t[n]==this&&t.splice(n,1);this.element.removeClass("ui-droppable ui-droppable-disabled")},_setOption:function(t,n){t=="accept"&&(this.accept=e.isFunction(n)?n:function(e){return e.is(n)}),e.Widget.prototype._setOption.apply(this,arguments)},_activate:function(t){var n=e.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass),n&&this._trigger("activate",t,this.ui(n))},_deactivate:function(t){var n=e.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass),n&&this._trigger("deactivate",t,this.ui(n))},_over:function(t){var n=e.ui.ddmanager.current;if(!n||(n.currentItem||n.element)[0]==this.element[0])return;this.accept.call(this.element[0],n.currentItem||n.element)&&(this.options.hoverClass&&this.element.addClass(this.options.hoverClass),this._trigger("over",t,this.ui(n)))},_out:function(t){var n=e.ui.ddmanager.current;if(!n||(n.currentItem||n.element)[0]==this.element[0])return;this.accept.call(this.element[0],n.currentItem||n.element)&&(this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("out",t,this.ui(n)))},_drop:function(t,n){var r=n||e.ui.ddmanager.current;if(!r||(r.currentItem||r.element)[0]==this.element[0])return!1;var i=!1;return this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function(){var t=e.data(this,"droppable");if(t.options.greedy&&!t.options.disabled&&t.options.scope==r.options.scope&&t.accept.call(t.element[0],r.currentItem||r.element)&&e.ui.intersect(r,e.extend(t,{offset:t.element.offset()}),t.options.tolerance))return i=!0,!1}),i?!1:this.accept.call(this.element[0],r.currentItem||r.element)?(this.options.activeClass&&this.element.removeClass(this.options.activeClass),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("drop",t,this.ui(r)),this.element):!1},ui:function(e){return{draggable:e.currentItem||e.element,helper:e.helper,position:e.position,offset:e.positionAbs}}}),e.ui.intersect=function(t,n,r){if(!n.offset)return!1;var i=(t.positionAbs||t.position.absolute).left,s=i+t.helperProportions.width,o=(t.positionAbs||t.position.absolute).top,u=o+t.helperProportions.height,a=n.offset.left,f=a+n.proportions.width,l=n.offset.top,c=l+n.proportions.height;switch(r){case"fit":return a<=i&&s<=f&&l<=o&&u<=c;case"intersect":return a<i+t.helperProportions.width/2&&s-t.helperProportions.width/2<f&&l<o+t.helperProportions.height/2&&u-t.helperProportions.height/2<c;case"pointer":var h=(t.positionAbs||t.position.absolute).left+(t.clickOffset||t.offset.click).left,p=(t.positionAbs||t.position.absolute).top+(t.clickOffset||t.offset.click).top,d=e.ui.isOver(p,h,l,a,n.proportions.height,n.proportions.width);return d;case"touch":return(o>=l&&o<=c||u>=l&&u<=c||o<l&&u>c)&&(i>=a&&i<=f||s>=a&&s<=f||i<a&&s>f);default:return!1}},e.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(t,n){var r=e.ui.ddmanager.droppables[t.options.scope]||[],i=n?n.type:null,s=(t.currentItem||t.element).find(":data(droppable)").andSelf();e:for(var o=0;o<r.length;o++){if(r[o].options.disabled||t&&!r[o].accept.call(r[o].element[0],t.currentItem||t.element))continue;for(var u=0;u<s.length;u++)if(s[u]==r[o].element[0]){r[o].proportions.height=0;continue e}r[o].visible=r[o].element.css("display")!="none";if(!r[o].visible)continue;i=="mousedown"&&r[o]._activate.call(r[o],n),r[o].offset=r[o].element.offset(),r[o].proportions={width:r[o].element[0].offsetWidth,height:r[o].element[0].offsetHeight}}},drop:function(t,n){var r=!1;return e.each(e.ui.ddmanager.droppables[t.options.scope]||[],function(){if(!this.options)return;!this.options.disabled&&this.visible&&e.ui.intersect(t,this,this.options.tolerance)&&(r=this._drop.call(this,n)||r),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],t.currentItem||t.element)&&(this.isout=1,this.isover=0,this._deactivate.call(this,n))}),r},dragStart:function(t,n){t.element.parentsUntil("body").bind("scroll.droppable",function(){t.options.refreshPositions||e.ui.ddmanager.prepareOffsets(t,n)})},drag:function(t,n){t.options.refreshPositions&&e.ui.ddmanager.prepareOffsets(t,n),e.each(e.ui.ddmanager.droppables[t.options.scope]||[],function(){if(this.options.disabled||this.greedyChild||!this.visible)return;var r=e.ui.intersect(t,this,this.options.tolerance),i=!r&&this.isover==1?"isout":r&&this.isover==0?"isover":null;if(!i)return;var s;if(this.options.greedy){var o=this.options.scope,u=this.element.parents(":data(droppable)").filter(function(){return e.data(this,"droppable").options.scope===o});u.length&&(s=e.data(u[0],"droppable"),s.greedyChild=i=="isover"?1:0)}s&&i=="isover"&&(s.isover=0,s.isout=1,s._out.call(s,n)),this[i]=1,this[i=="isout"?"isover":"isout"]=0,this[i=="isover"?"_over":"_out"].call(this,n),s&&i=="isout"&&(s.isout=0,s.isover=1,s._over.call(s,n))})},dragStop:function(t,n){t.element.parentsUntil("body").unbind("scroll.droppable"),t.options.refreshPositions||e.ui.ddmanager.prepareOffsets(t,n)}}})(jQuery);(function(e,t){e.widget("ui.resizable",e.ui.mouse,{version:"1.9.1",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1e3},_create:function(){var t=this,n=this.options;this.element.addClass("ui-resizable"),e.extend(this,{_aspectRatio:!!n.aspectRatio,aspectRatio:n.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:n.helper||n.ghost||n.animate?n.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)&&(this.element.wrap(e('<div class="ui-wrapper" style="overflow: hidden;"></div>').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("resizable",this.element.data("resizable")),this.elementIsWrapper=!0,this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")}),this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0}),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css({margin:this.originalElement.css("margin")}),this._proportionallyResize()),this.handles=n.handles||(e(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se");if(this.handles.constructor==String){this.handles=="all"&&(this.handles="n,e,s,w,se,sw,ne,nw");var r=this.handles.split(",");this.handles={};for(var i=0;i<r.length;i++){var s=e.trim(r[i]),o="ui-resizable-"+s,u=e('<div class="ui-resizable-handle '+o+'"></div>');u.css({zIndex:n.zIndex}),"se"==s&&u.addClass("ui-icon ui-icon-gripsmall-diagonal-se"),this.handles[s]=".ui-resizable-"+s,this.element.append(u)}}this._renderAxis=function(t){t=t||this.element;for(var n in this.handles){this.handles[n].constructor==String&&(this.handles[n]=e(this.handles[n],this.element).show());if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var r=e(this.handles[n],this.element),i=0;i=/sw|ne|nw|se|n|s/.test(n)?r.outerHeight():r.outerWidth();var s=["padding",/ne|nw|n/.test(n)?"Top":/se|sw|s/.test(n)?"Bottom":/^e$/.test(n)?"Right":"Left"].join("");t.css(s,i),this._proportionallyResize()}if(!e(this.handles[n]).length)continue}},this._renderAxis(this.element),this._handles=e(".ui-resizable-handle",this.element).disableSelection(),this._handles.mouseover(function(){if(!t.resizing){if(this.className)var e=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);t.axis=e&&e[1]?e[1]:"se"}}),n.autoHide&&(this._handles.hide(),e(this.element).addClass("ui-resizable-autohide").mouseenter(function(){if(n.disabled)return;e(this).removeClass("ui-resizable-autohide"),t._handles.show()}).mouseleave(function(){if(n.disabled)return;t.resizing||(e(this).addClass("ui-resizable-autohide"),t._handles.hide())})),this._mouseInit()},_destroy:function(){this._mouseDestroy();var t=function(t){e(t).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").removeData("ui-resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};if(this.elementIsWrapper){t(this.element);var n=this.element;this.originalElement.css({position:n.css("position"),width:n.outerWidth(),height:n.outerHeight(),top:n.css("top"),left:n.css("left")}).insertAfter(n),n.remove()}return this.originalElement.css("resize",this.originalResizeStyle),t(this.originalElement),this},_mouseCapture:function(t){var n=!1;for(var r in this.handles)e(this.handles[r])[0]==t.target&&(n=!0);return!this.options.disabled&&n},_mouseStart:function(t){var r=this.options,i=this.element.position(),s=this.element;this.resizing=!0,this.documentScroll={top:e(document).scrollTop(),left:e(document).scrollLeft()},(s.is(".ui-draggable")||/absolute/.test(s.css("position")))&&s.css({position:"absolute",top:i.top,left:i.left}),this._renderProxy();var o=n(this.helper.css("left")),u=n(this.helper.css("top"));r.containment&&(o+=e(r.containment).scrollLeft()||0,u+=e(r.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:o,top:u},this.size=this._helper?{width:s.outerWidth(),height:s.outerHeight()}:{width:s.width(),height:s.height()},this.originalSize=this._helper?{width:s.outerWidth(),height:s.outerHeight()}:{width:s.width(),height:s.height()},this.originalPosition={left:o,top:u},this.sizeDiff={width:s.outerWidth()-s.width(),height:s.outerHeight()-s.height()},this.originalMousePosition={left:t.pageX,top:t.pageY},this.aspectRatio=typeof r.aspectRatio=="number"?r.aspectRatio:this.originalSize.width/this.originalSize.height||1;var a=e(".ui-resizable-"+this.axis).css("cursor");return e("body").css("cursor",a=="auto"?this.axis+"-resize":a),s.addClass("ui-resizable-resizing"),this._propagate("start",t),!0},_mouseDrag:function(e){var t=this.helper,n=this.options,r={},i=this,s=this.originalMousePosition,o=this.axis,u=e.pageX-s.left||0,a=e.pageY-s.top||0,f=this._change[o];if(!f)return!1;var l=f.apply(this,[e,u,a]);this._updateVirtualBoundaries(e.shiftKey);if(this._aspectRatio||e.shiftKey)l=this._updateRatio(l,e);return l=this._respectSize(l,e),this._propagate("resize",e),t.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"}),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),this._updateCache(l),this._trigger("resize",e,this.ui()),!1},_mouseStop:function(t){this.resizing=!1;var n=this.options,r=this;if(this._helper){var i=this._proportionallyResizeElements,s=i.length&&/textarea/i.test(i[0].nodeName),o=s&&e.ui.hasScroll(i[0],"left")?0:r.sizeDiff.height,u=s?0:r.sizeDiff.width,a={width:r.helper.width()-u,height:r.helper.height()-o},f=parseInt(r.element.css("left"),10)+(r.position.left-r.originalPosition.left)||null,l=parseInt(r.element.css("top"),10)+(r.position.top-r.originalPosition.top)||null;n.animate||this.element.css(e.extend(a,{top:l,left:f})),r.helper.height(r.size.height),r.helper.width(r.size.width),this._helper&&!n.animate&&this._proportionallyResize()}return e("body").css("cursor","auto"),this.element.removeClass("ui-resizable-resizing"),this._propagate("stop",t),this._helper&&this.helper.remove(),!1},_updateVirtualBoundaries:function(e){var t=this.options,n,i,s,o,u;u={minWidth:r(t.minWidth)?t.minWidth:0,maxWidth:r(t.maxWidth)?t.maxWidth:Infinity,minHeight:r(t.minHeight)?t.minHeight:0,maxHeight:r(t.maxHeight)?t.maxHeight:Infinity};if(this._aspectRatio||e)n=u.minHeight*this.aspectRatio,s=u.minWidth/this.aspectRatio,i=u.maxHeight*this.aspectRatio,o=u.maxWidth/this.aspectRatio,n>u.minWidth&&(u.minWidth=n),s>u.minHeight&&(u.minHeight=s),i<u.maxWidth&&(u.maxWidth=i),o<u.maxHeight&&(u.maxHeight=o);this._vBoundaries=u},_updateCache:function(e){var t=this.options;this.offset=this.helper.offset(),r(e.left)&&(this.position.left=e.left),r(e.top)&&(this.position.top=e.top),r(e.height)&&(this.size.height=e.height),r(e.width)&&(this.size.width=e.width)},_updateRatio:function(e,t){var n=this.options,i=this.position,s=this.size,o=this.axis;return r(e.height)?e.width=e.height*this.aspectRatio:r(e.width)&&(e.height=e.width/this.aspectRatio),o=="sw"&&(e.left=i.left+(s.width-e.width),e.top=null),o=="nw"&&(e.top=i.top+(s.height-e.height),e.left=i.left+(s.width-e.width)),e},_respectSize:function(e,t){var n=this.helper,i=this._vBoundaries,s=this._aspectRatio||t.shiftKey,o=this.axis,u=r(e.width)&&i.maxWidth&&i.maxWidth<e.width,a=r(e.height)&&i.maxHeight&&i.maxHeight<e.height,f=r(e.width)&&i.minWidth&&i.minWidth>e.width,l=r(e.height)&&i.minHeight&&i.minHeight>e.height;f&&(e.width=i.minWidth),l&&(e.height=i.minHeight),u&&(e.width=i.maxWidth),a&&(e.height=i.maxHeight);var c=this.originalPosition.left+this.originalSize.width,h=this.position.top+this.size.height,p=/sw|nw|w/.test(o),d=/nw|ne|n/.test(o);f&&p&&(e.left=c-i.minWidth),u&&p&&(e.left=c-i.maxWidth),l&&d&&(e.top=h-i.minHeight),a&&d&&(e.top=h-i.maxHeight);var v=!e.width&&!e.height;return v&&!e.left&&e.top?e.top=null:v&&!e.top&&e.left&&(e.left=null),e},_proportionallyResize:function(){var t=this.options;if(!this._proportionallyResizeElements.length)return;var n=this.helper||this.element;for(var r=0;r<this._proportionallyResizeElements.length;r++){var i=this._proportionallyResizeElements[r];if(!this.borderDif){var s=[i.css("borderTopWidth"),i.css("borderRightWidth"),i.css("borderBottomWidth"),i.css("borderLeftWidth")],o=[i.css("paddingTop"),i.css("paddingRight"),i.css("paddingBottom"),i.css("paddingLeft")];this.borderDif=e.map(s,function(e,t){var n=parseInt(e,10)||0,r=parseInt(o[t],10)||0;return n+r})}i.css({height:n.height()-this.borderDif[0]-this.borderDif[2]||0,width:n.width()-this.borderDif[1]-this.borderDif[3]||0})}},_renderProxy:function(){var t=this.element,n=this.options;this.elementOffset=t.offset();if(this._helper){this.helper=this.helper||e('<div style="overflow:hidden;"></div>');var r=e.ui.ie6?1:0,i=e.ui.ie6?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+i,height:this.element.outerHeight()+i,position:"absolute",left:this.elementOffset.left-r+"px",top:this.elementOffset.top-r+"px",zIndex:++n.zIndex}),this.helper.appendTo("body").disableSelection()}else this.helper=this.element},_change:{e:function(e,t,n){return{width:this.originalSize.width+t}},w:function(e,t,n){var r=this.options,i=this.originalSize,s=this.originalPosition;return{left:s.left+t,width:i.width-t}},n:function(e,t,n){var r=this.options,i=this.originalSize,s=this.originalPosition;return{top:s.top+n,height:i.height-n}},s:function(e,t,n){return{height:this.originalSize.height+n}},se:function(t,n,r){return e.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[t,n,r]))},sw:function(t,n,r){return e.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[t,n,r]))},ne:function(t,n,r){return e.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[t,n,r]))},nw:function(t,n,r){return e.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[t,n,r]))}},_propagate:function(t,n){e.ui.plugin.call(this,t,[n,this.ui()]),t!="resize"&&this._trigger(t,n,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),e.ui.plugin.add("resizable","alsoResize",{start:function(t,n){var r=e(this).data("resizable"),i=r.options,s=function(t){e(t).each(function(){var t=e(this);t.data("resizable-alsoresize",{width:parseInt(t.width(),10),height:parseInt(t.height(),10),left:parseInt(t.css("left"),10),top:parseInt(t.css("top"),10)})})};typeof i.alsoResize=="object"&&!i.alsoResize.parentNode?i.alsoResize.length?(i.alsoResize=i.alsoResize[0],s(i.alsoResize)):e.each(i.alsoResize,function(e){s(e)}):s(i.alsoResize)},resize:function(t,n){var r=e(this).data("resizable"),i=r.options,s=r.originalSize,o=r.originalPosition,u={height:r.size.height-s.height||0,width:r.size.width-s.width||0,top:r.position.top-o.top||0,left:r.position.left-o.left||0},a=function(t,r){e(t).each(function(){var t=e(this),i=e(this).data("resizable-alsoresize"),s={},o=r&&r.length?r:t.parents(n.originalElement[0]).length?["width","height"]:["width","height","top","left"];e.each(o,function(e,t){var n=(i[t]||0)+(u[t]||0);n&&n>=0&&(s[t]=n||null)}),t.css(s)})};typeof i.alsoResize=="object"&&!i.alsoResize.nodeType?e.each(i.alsoResize,function(e,t){a(e,t)}):a(i.alsoResize)},stop:function(t,n){e(this).removeData("resizable-alsoresize")}}),e.ui.plugin.add("resizable","animate",{stop:function(t,n){var r=e(this).data("resizable"),i=r.options,s=r._proportionallyResizeElements,o=s.length&&/textarea/i.test(s[0].nodeName),u=o&&e.ui.hasScroll(s[0],"left")?0:r.sizeDiff.height,a=o?0:r.sizeDiff.width,f={width:r.size.width-a,height:r.size.height-u},l=parseInt(r.element.css("left"),10)+(r.position.left-r.originalPosition.left)||null,c=parseInt(r.element.css("top"),10)+(r.position.top-r.originalPosition.top)||null;r.element.animate(e.extend(f,c&&l?{top:c,left:l}:{}),{duration:i.animateDuration,easing:i.animateEasing,step:function(){var n={width:parseInt(r.element.css("width"),10),height:parseInt(r.element.css("height"),10),top:parseInt(r.element.css("top"),10),left:parseInt(r.element.css("left"),10)};s&&s.length&&e(s[0]).css({width:n.width,height:n.height}),r._updateCache(n),r._propagate("resize",t)}})}}),e.ui.plugin.add("resizable","containment",{start:function(t,r){var i=e(this).data("resizable"),s=i.options,o=i.element,u=s.containment,a=u instanceof e?u.get(0):/parent/.test(u)?o.parent().get(0):u;if(!a)return;i.containerElement=e(a);if(/document/.test(u)||u==document)i.containerOffset={left:0,top:0},i.containerPosition={left:0,top:0},i.parentData={element:e(document),left:0,top:0,width:e(document).width(),height:e(document).height()||document.body.parentNode.scrollHeight};else{var f=e(a),l=[];e(["Top","Right","Left","Bottom"]).each(function(e,t){l[e]=n(f.css("padding"+t))}),i.containerOffset=f.offset(),i.containerPosition=f.position(),i.containerSize={height:f.innerHeight()-l[3],width:f.innerWidth()-l[1]};var c=i.containerOffset,h=i.containerSize.height,p=i.containerSize.width,d=e.ui.hasScroll(a,"left")?a.scrollWidth:p,v=e.ui.hasScroll(a)?a.scrollHeight:h;i.parentData={element:a,left:c.left,top:c.top,width:d,height:v}}},resize:function(t,n){var r=e(this).data("resizable"),i=r.options,s=r.containerSize,o=r.containerOffset,u=r.size,a=r.position,f=r._aspectRatio||t.shiftKey,l={top:0,left:0},c=r.containerElement;c[0]!=document&&/static/.test(c.css("position"))&&(l=o),a.left<(r._helper?o.left:0)&&(r.size.width=r.size.width+(r._helper?r.position.left-o.left:r.position.left-l.left),f&&(r.size.height=r.size.width/r.aspectRatio),r.position.left=i.helper?o.left:0),a.top<(r._helper?o.top:0)&&(r.size.height=r.size.height+(r._helper?r.position.top-o.top:r.position.top),f&&(r.size.width=r.size.height*r.aspectRatio),r.position.top=r._helper?o.top:0),r.offset.left=r.parentData.left+r.position.left,r.offset.top=r.parentData.top+r.position.top;var h=Math.abs((r._helper?r.offset.left-l.left:r.offset.left-l.left)+r.sizeDiff.width),p=Math.abs((r._helper?r.offset.top-l.top:r.offset.top-o.top)+r.sizeDiff.height),d=r.containerElement.get(0)==r.element.parent().get(0),v=/relative|absolute/.test(r.containerElement.css("position"));d&&v&&(h-=r.parentData.left),h+r.size.width>=r.parentData.width&&(r.size.width=r.parentData.width-h,f&&(r.size.height=r.size.width/r.aspectRatio)),p+r.size.height>=r.parentData.height&&(r.size.height=r.parentData.height-p,f&&(r.size.width=r.size.height*r.aspectRatio))},stop:function(t,n){var r=e(this).data("resizable"),i=r.options,s=r.position,o=r.containerOffset,u=r.containerPosition,a=r.containerElement,f=e(r.helper),l=f.offset(),c=f.outerWidth()-r.sizeDiff.width,h=f.outerHeight()-r.sizeDiff.height;r._helper&&!i.animate&&/relative/.test(a.css("position"))&&e(this).css({left:l.left-u.left-o.left,width:c,height:h}),r._helper&&!i.animate&&/static/.test(a.css("position"))&&e(this).css({left:l.left-u.left-o.left,width:c,height:h})}}),e.ui.plugin.add("resizable","ghost",{start:function(t,n){var r=e(this).data("resizable"),i=r.options,s=r.size;r.ghost=r.originalElement.clone(),r.ghost.css({opacity:.25,display:"block",position:"relative",height:s.height,width:s.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof i.ghost=="string"?i.ghost:""),r.ghost.appendTo(r.helper)},resize:function(t,n){var r=e(this).data("resizable"),i=r.options;r.ghost&&r.ghost.css({position:"relative",height:r.size.height,width:r.size.width})},stop:function(t,n){var r=e(this).data("resizable"),i=r.options;r.ghost&&r.helper&&r.helper.get(0).removeChild(r.ghost.get(0))}}),e.ui.plugin.add("resizable","grid",{resize:function(t,n){var r=e(this).data("resizable"),i=r.options,s=r.size,o=r.originalSize,u=r.originalPosition,a=r.axis,f=i._aspectRatio||t.shiftKey;i.grid=typeof i.grid=="number"?[i.grid,i.grid]:i.grid;var l=Math.round((s.width-o.width)/(i.grid[0]||1))*(i.grid[0]||1),c=Math.round((s.height-o.height)/(i.grid[1]||1))*(i.grid[1]||1);/^(se|s|e)$/.test(a)?(r.size.width=o.width+l,r.size.height=o.height+c):/^(ne)$/.test(a)?(r.size.width=o.width+l,r.size.height=o.height+c,r.position.top=u.top-c):/^(sw)$/.test(a)?(r.size.width=o.width+l,r.size.height=o.height+c,r.position.left=u.left-l):(r.size.width=o.width+l,r.size.height=o.height+c,r.position.top=u.top-c,r.position.left=u.left-l)}});var n=function(e){return parseInt(e,10)||0},r=function(e){return!isNaN(parseInt(e,10))}})(jQuery);(function(e,t){e.widget("ui.selectable",e.ui.mouse,{version:"1.9.1",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch"},_create:function(){var t=this;this.element.addClass("ui-selectable"),this.dragged=!1;var n;this.refresh=function(){n=e(t.options.filter,t.element[0]),n.addClass("ui-selectee"),n.each(function(){var t=e(this),n=t.offset();e.data(this,"selectable-item",{element:this,$element:t,left:n.left,top:n.top,right:n.left+t.outerWidth(),bottom:n.top+t.outerHeight(),startselected:!1,selected:t.hasClass("ui-selected"),selecting:t.hasClass("ui-selecting"),unselecting:t.hasClass("ui-unselecting")})})},this.refresh(),this.selectees=n.addClass("ui-selectee"),this._mouseInit(),this.helper=e("<div class='ui-selectable-helper'></div>")},_destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item"),this.element.removeClass("ui-selectable ui-selectable-disabled"),this._mouseDestroy()},_mouseStart:function(t){var n=this;this.opos=[t.pageX,t.pageY];if(this.options.disabled)return;var r=this.options;this.selectees=e(r.filter,this.element[0]),this._trigger("start",t),e(r.appendTo).append(this.helper),this.helper.css({left:t.clientX,top:t.clientY,width:0,height:0}),r.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var r=e.data(this,"selectable-item");r.startselected=!0,!t.metaKey&&!t.ctrlKey&&(r.$element.removeClass("ui-selected"),r.selected=!1,r.$element.addClass("ui-unselecting"),r.unselecting=!0,n._trigger("unselecting",t,{unselecting:r.element}))}),e(t.target).parents().andSelf().each(function(){var r=e.data(this,"selectable-item");if(r){var i=!t.metaKey&&!t.ctrlKey||!r.$element.hasClass("ui-selected");return r.$element.removeClass(i?"ui-unselecting":"ui-selected").addClass(i?"ui-selecting":"ui-unselecting"),r.unselecting=!i,r.selecting=i,r.selected=i,i?n._trigger("selecting",t,{selecting:r.element}):n._trigger("unselecting",t,{unselecting:r.element}),!1}})},_mouseDrag:function(t){var n=this;this.dragged=!0;if(this.options.disabled)return;var r=this.options,i=this.opos[0],s=this.opos[1],o=t.pageX,u=t.pageY;if(i>o){var a=o;o=i,i=a}if(s>u){var a=u;u=s,s=a}return this.helper.css({left:i,top:s,width:o-i,height:u-s}),this.selectees.each(function(){var a=e.data(this,"selectable-item");if(!a||a.element==n.element[0])return;var f=!1;r.tolerance=="touch"?f=!(a.left>o||a.right<i||a.top>u||a.bottom<s):r.tolerance=="fit"&&(f=a.left>i&&a.right<o&&a.top>s&&a.bottom<u),f?(a.selected&&(a.$element.removeClass("ui-selected"),a.selected=!1),a.unselecting&&(a.$element.removeClass("ui-unselecting"),a.unselecting=!1),a.selecting||(a.$element.addClass("ui-selecting"),a.selecting=!0,n._trigger("selecting",t,{selecting:a.element}))):(a.selecting&&((t.metaKey||t.ctrlKey)&&a.startselected?(a.$element.removeClass("ui-selecting"),a.selecting=!1,a.$element.addClass("ui-selected"),a.selected=!0):(a.$element.removeClass("ui-selecting"),a.selecting=!1,a.startselected&&(a.$element.addClass("ui-unselecting"),a.unselecting=!0),n._trigger("unselecting",t,{unselecting:a.element}))),a.selected&&!t.metaKey&&!t.ctrlKey&&!a.startselected&&(a.$element.removeClass("ui-selected"),a.selected=!1,a.$element.addClass("ui-unselecting"),a.unselecting=!0,n._trigger("unselecting",t,{unselecting:a.element})))}),!1},_mouseStop:function(t){var n=this;this.dragged=!1;var r=this.options;return e(".ui-unselecting",this.element[0]).each(function(){var r=e.data(this,"selectable-item");r.$element.removeClass("ui-unselecting"),r.unselecting=!1,r.startselected=!1,n._trigger("unselected",t,{unselected:r.element})}),e(".ui-selecting",this.element[0]).each(function(){var r=e.data(this,"selectable-item");r.$element.removeClass("ui-selecting").addClass("ui-selected"),r.selecting=!1,r.selected=!0,r.startselected=!0,n._trigger("selected",t,{selected:r.element})}),this._trigger("stop",t),this.helper.remove(),!1}})})(jQuery);(function(e,t){e.widget("ui.sortable",e.ui.mouse,{version:"1.9.1",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3},_create:function(){var e=this.options;this.containerCache={},this.element.addClass("ui-sortable"),this.refresh(),this.floating=this.items.length?e.axis==="x"||/left|right/.test(this.items[0].item.css("float"))||/inline|table-cell/.test(this.items[0].item.css("display")):!1,this.offset=this.element.offset(),this._mouseInit(),this.ready=!0},_destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled"),this._mouseDestroy();for(var e=this.items.length-1;e>=0;e--)this.items[e].item.removeData(this.widgetName+"-item");return this},_setOption:function(t,n){t==="disabled"?(this.options[t]=n,this.widget().toggleClass("ui-sortable-disabled",!!n)):e.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(t,n){var r=this;if(this.reverting)return!1;if(this.options.disabled||this.options.type=="static")return!1;this._refreshItems(t);var i=null,s=e(t.target).parents().each(function(){if(e.data(this,r.widgetName+"-item")==r)return i=e(this),!1});e.data(t.target,r.widgetName+"-item")==r&&(i=e(t.target));if(!i)return!1;if(this.options.handle&&!n){var o=!1;e(this.options.handle,i).find("*").andSelf().each(function(){this==t.target&&(o=!0)});if(!o)return!1}return this.currentItem=i,this._removeCurrentsFromItems(),!0},_mouseStart:function(t,n,r){var i=this.options;this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(t),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},e.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!=this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),i.containment&&this._setContainment(),i.cursor&&(e("body").css("cursor")&&(this._storedCursor=e("body").css("cursor")),e("body").css("cursor",i.cursor)),i.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",i.opacity)),i.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",i.zIndex)),this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",t,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions();if(!r)for(var s=this.containers.length-1;s>=0;s--)this.containers[s]._trigger("activate",t,this._uiHash(this));return e.ui.ddmanager&&(e.ui.ddmanager.current=this),e.ui.ddmanager&&!i.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(t),!0},_mouseDrag:function(t){this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs);if(this.options.scroll){var n=this.options,r=!1;this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-t.pageY<n.scrollSensitivity?this.scrollParent[0].scrollTop=r=this.scrollParent[0].scrollTop+n.scrollSpeed:t.pageY-this.overflowOffset.top<n.scrollSensitivity&&(this.scrollParent[0].scrollTop=r=this.scrollParent[0].scrollTop-n.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-t.pageX<n.scrollSensitivity?this.scrollParent[0].scrollLeft=r=this.scrollParent[0].scrollLeft+n.scrollSpeed:t.pageX-this.overflowOffset.left<n.scrollSensitivity&&(this.scrollParent[0].scrollLeft=r=this.scrollParent[0].scrollLeft-n.scrollSpeed)):(t.pageY-e(document).scrollTop()<n.scrollSensitivity?r=e(document).scrollTop(e(document).scrollTop()-n.scrollSpeed):e(window).height()-(t.pageY-e(document).scrollTop())<n.scrollSensitivity&&(r=e(document).scrollTop(e(document).scrollTop()+n.scrollSpeed)),t.pageX-e(document).scrollLeft()<n.scrollSensitivity?r=e(document).scrollLeft(e(document).scrollLeft()-n.scrollSpeed):e(window).width()-(t.pageX-e(document).scrollLeft())<n.scrollSensitivity&&(r=e(document).scrollLeft(e(document).scrollLeft()+n.scrollSpeed))),r!==!1&&e.ui.ddmanager&&!n.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t)}this.positionAbs=this._convertPositionTo("absolute");if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";for(var i=this.items.length-1;i>=0;i--){var s=this.items[i],o=s.item[0],u=this._intersectsWithPointer(s);if(!u)continue;if(s.instance!==this.currentContainer)continue;if(o!=this.currentItem[0]&&this.placeholder[u==1?"next":"prev"]()[0]!=o&&!e.contains(this.placeholder[0],o)&&(this.options.type=="semi-dynamic"?!e.contains(this.element[0],o):!0)){this.direction=u==1?"down":"up";if(this.options.tolerance!="pointer"&&!this._intersectsWithSides(s))break;this._rearrange(t,s),this._trigger("change",t,this._uiHash());break}}return this._contactContainers(t),e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),this._trigger("sort",t,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(t,n){if(!t)return;e.ui.ddmanager&&!this.options.dropBehaviour&&e.ui.ddmanager.drop(this,t);if(this.options.revert){var r=this,i=this.placeholder.offset();this.reverting=!0,e(this.helper).animate({left:i.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:i.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){r._clear(t)})}else this._clear(t,n);return!1},cancel:function(){if(this.dragging){this._mouseUp({target:null}),this.options.helper=="original"?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var t=this.containers.length-1;t>=0;t--)this.containers[t]._trigger("deactivate",null,this._uiHash(this)),this.containers[t].containerCache.over&&(this.containers[t]._trigger("out",null,this._uiHash(this)),this.containers[t].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.options.helper!="original"&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),e.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?e(this.domPosition.prev).after(this.currentItem):e(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(t){var n=this._getItemsAsjQuery(t&&t.connected),r=[];return t=t||{},e(n).each(function(){var n=(e(t.item||this).attr(t.attribute||"id")||"").match(t.expression||/(.+)[-=_](.+)/);n&&r.push((t.key||n[1]+"[]")+"="+(t.key&&t.expression?n[1]:n[2]))}),!r.length&&t.key&&r.push(t.key+"="),r.join("&")},toArray:function(t){var n=this._getItemsAsjQuery(t&&t.connected),r=[];return t=t||{},n.each(function(){r.push(e(t.item||this).attr(t.attribute||"id")||"")}),r},_intersectsWith:function(e){var t=this.positionAbs.left,n=t+this.helperProportions.width,r=this.positionAbs.top,i=r+this.helperProportions.height,s=e.left,o=s+e.width,u=e.top,a=u+e.height,f=this.offset.click.top,l=this.offset.click.left,c=r+f>u&&r+f<a&&t+l>s&&t+l<o;return this.options.tolerance=="pointer"||this.options.forcePointerForContainers||this.options.tolerance!="pointer"&&this.helperProportions[this.floating?"width":"height"]>e[this.floating?"width":"height"]?c:s<t+this.helperProportions.width/2&&n-this.helperProportions.width/2<o&&u<r+this.helperProportions.height/2&&i-this.helperProportions.height/2<a},_intersectsWithPointer:function(t){var n=this.options.axis==="x"||e.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,t.top,t.height),r=this.options.axis==="y"||e.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,t.left,t.width),i=n&&r,s=this._getDragVerticalDirection(),o=this._getDragHorizontalDirection();return i?this.floating?o&&o=="right"||s=="down"?2:1:s&&(s=="down"?2:1):!1},_intersectsWithSides:function(t){var n=e.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),r=e.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),i=this._getDragVerticalDirection(),s=this._getDragHorizontalDirection();return this.floating&&s?s=="right"&&r||s=="left"&&!r:i&&(i=="down"&&n||i=="up"&&!n)},_getDragVerticalDirection:function(){var e=this.positionAbs.top-this.lastPositionAbs.top;return e!=0&&(e>0?"down":"up")},_getDragHorizontalDirection:function(){var e=this.positionAbs.left-this.lastPositionAbs.left;return e!=0&&(e>0?"right":"left")},refresh:function(e){return this._refreshItems(e),this.refreshPositions(),this},_connectWith:function(){var e=this.options;return e.connectWith.constructor==String?[e.connectWith]:e.connectWith},_getItemsAsjQuery:function(t){var n=[],r=[],i=this._connectWith();if(i&&t)for(var s=i.length-1;s>=0;s--){var o=e(i[s]);for(var u=o.length-1;u>=0;u--){var a=e.data(o[u],this.widgetName);a&&a!=this&&!a.options.disabled&&r.push([e.isFunction(a.options.items)?a.options.items.call(a.element):e(a.options.items,a.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),a])}}r.push([e.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):e(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);for(var s=r.length-1;s>=0;s--)r[s][0].each(function(){n.push(this)});return e(n)},_removeCurrentsFromItems:function(){var t=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=e.grep(this.items,function(e){for(var n=0;n<t.length;n++)if(t[n]==e.item[0])return!1;return!0})},_refreshItems:function(t){this.items=[],this.containers=[this];var n=this.items,r=[[e.isFunction(this.options.items)?this.options.items.call(this.element[0],t,{item:this.currentItem}):e(this.options.items,this.element),this]],i=this._connectWith();if(i&&this.ready)for(var s=i.length-1;s>=0;s--){var o=e(i[s]);for(var u=o.length-1;u>=0;u--){var a=e.data(o[u],this.widgetName);a&&a!=this&&!a.options.disabled&&(r.push([e.isFunction(a.options.items)?a.options.items.call(a.element[0],t,{item:this.currentItem}):e(a.options.items,a.element),a]),this.containers.push(a))}}for(var s=r.length-1;s>=0;s--){var f=r[s][1],l=r[s][0];for(var u=0,c=l.length;u<c;u++){var h=e(l[u]);h.data(this.widgetName+"-item",f),n.push({item:h,instance:f,width:0,height:0,left:0,top:0})}}},refreshPositions:function(t){this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset());for(var n=this.items.length-1;n>=0;n--){var r=this.items[n];if(r.instance!=this.currentContainer&&this.currentContainer&&r.item[0]!=this.currentItem[0])continue;var i=this.options.toleranceElement?e(this.options.toleranceElement,r.item):r.item;t||(r.width=i.outerWidth(),r.height=i.outerHeight());var s=i.offset();r.left=s.left,r.top=s.top}if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(var n=this.containers.length-1;n>=0;n--){var s=this.containers[n].element.offset();this.containers[n].containerCache.left=s.left,this.containers[n].containerCache.top=s.top,this.containers[n].containerCache.width=this.containers[n].element.outerWidth(),this.containers[n].containerCache.height=this.containers[n].element.outerHeight()}return this},_createPlaceholder:function(t){t=t||this;var n=t.options;if(!n.placeholder||n.placeholder.constructor==String){var r=n.placeholder;n.placeholder={element:function(){var n=e(document.createElement(t.currentItem[0].nodeName)).addClass(r||t.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];return r||(n.style.visibility="hidden"),n},update:function(e,i){if(r&&!n.forcePlaceholderSize)return;i.height()||i.height(t.currentItem.innerHeight()-parseInt(t.currentItem.css("paddingTop")||0,10)-parseInt(t.currentItem.css("paddingBottom")||0,10)),i.width()||i.width(t.currentItem.innerWidth()-parseInt(t.currentItem.css("paddingLeft")||0,10)-parseInt(t.currentItem.css("paddingRight")||0,10))}}}t.placeholder=e(n.placeholder.element.call(t.element,t.currentItem)),t.currentItem.after(t.placeholder),n.placeholder.update(t,t.placeholder)},_contactContainers:function(t){var n=null,r=null;for(var i=this.containers.length-1;i>=0;i--){if(e.contains(this.currentItem[0],this.containers[i].element[0]))continue;if(this._intersectsWith(this.containers[i].containerCache)){if(n&&e.contains(this.containers[i].element[0],n.element[0]))continue;n=this.containers[i],r=i}else this.containers[i].containerCache.over&&(this.containers[i]._trigger("out",t,this._uiHash(this)),this.containers[i].containerCache.over=0)}if(!n)return;if(this.containers.length===1)this.containers[r]._trigger("over",t,this._uiHash(this)),this.containers[r].containerCache.over=1;else{var s=1e4,o=null,u=this.containers[r].floating?"left":"top",a=this.containers[r].floating?"width":"height",f=this.positionAbs[u]+this.offset.click[u];for(var l=this.items.length-1;l>=0;l--){if(!e.contains(this.containers[r].element[0],this.items[l].item[0]))continue;if(this.items[l].item[0]==this.currentItem[0])continue;var c=this.items[l].item.offset()[u],h=!1;Math.abs(c-f)>Math.abs(c+this.items[l][a]-f)&&(h=!0,c+=this.items[l][a]),Math.abs(c-f)<s&&(s=Math.abs(c-f),o=this.items[l],this.direction=h?"up":"down")}if(!o&&!this.options.dropOnEmpty)return;this.currentContainer=this.containers[r],o?this._rearrange(t,o,null,!0):this._rearrange(t,null,this.containers[r].element,!0),this._trigger("change",t,this._uiHash()),this.containers[r]._trigger("change",t,this._uiHash(this)),this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[r]._trigger("over",t,this._uiHash(this)),this.containers[r].containerCache.over=1}},_createHelper:function(t){var n=this.options,r=e.isFunction(n.helper)?e(n.helper.apply(this.element[0],[t,this.currentItem])):n.helper=="clone"?this.currentItem.clone():this.currentItem;return r.parents("body").length||e(n.appendTo!="parent"?n.appendTo:this.currentItem[0].parentNode)[0].appendChild(r[0]),r[0]==this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),(r[0].style.width==""||n.forceHelperSize)&&r.width(this.currentItem.width()),(r[0].style.height==""||n.forceHelperSize)&&r.height(this.currentItem.height()),r},_adjustOffsetFromHelper:function(t){typeof t=="string"&&(t=t.split(" ")),e.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&e.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop());if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&e.ui.ie)t={top:0,left:0};return{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var e=this.currentItem.position();return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:e.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t=this.options;t.containment=="parent"&&(t.containment=this.helper[0].parentNode);if(t.containment=="document"||t.containment=="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,e(t.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(e(t.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(t.containment)){var n=e(t.containment)[0],r=e(t.containment).offset(),i=e(n).css("overflow")!="hidden";this.containment=[r.left+(parseInt(e(n).css("borderLeftWidth"),10)||0)+(parseInt(e(n).css("paddingLeft"),10)||0)-this.margins.left,r.top+(parseInt(e(n).css("borderTopWidth"),10)||0)+(parseInt(e(n).css("paddingTop"),10)||0)-this.margins.top,r.left+(i?Math.max(n.scrollWidth,n.offsetWidth):n.offsetWidth)-(parseInt(e(n).css("borderLeftWidth"),10)||0)-(parseInt(e(n).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,r.top+(i?Math.max(n.scrollHeight,n.offsetHeight):n.offsetHeight)-(parseInt(e(n).css("borderTopWidth"),10)||0)-(parseInt(e(n).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(t,n){n||(n=this.position);var r=t=="absolute"?1:-1,i=this.options,s=this.cssPosition!="absolute"||this.scrollParent[0]!=document&&!!e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,o=/(html|body)/i.test(s[0].tagName);return{top:n.top+this.offset.relative.top*r+this.offset.parent.top*r-(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():o?0:s.scrollTop())*r,left:n.left+this.offset.relative.left*r+this.offset.parent.left*r-(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():o?0:s.scrollLeft())*r}},_generatePosition:function(t){var n=this.options,r=this.cssPosition!="absolute"||this.scrollParent[0]!=document&&!!e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,i=/(html|body)/i.test(r[0].tagName);this.cssPosition=="relative"&&(this.scrollParent[0]==document||this.scrollParent[0]==this.offsetParent[0])&&(this.offset.relative=this._getRelativeOffset());var s=t.pageX,o=t.pageY;if(this.originalPosition){this.containment&&(t.pageX-this.offset.click.left<this.containment[0]&&(s=this.containment[0]+this.offset.click.left),t.pageY-this.offset.click.top<this.containment[1]&&(o=this.containment[1]+this.offset.click.top),t.pageX-this.offset.click.left>this.containment[2]&&(s=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3]&&(o=this.containment[3]+this.offset.click.top));if(n.grid){var u=this.originalPageY+Math.round((o-this.originalPageY)/n.grid[1])*n.grid[1];o=this.containment?u-this.offset.click.top<this.containment[1]||u-this.offset.click.top>this.containment[3]?u-this.offset.click.top<this.containment[1]?u+n.grid[1]:u-n.grid[1]:u:u;var a=this.originalPageX+Math.round((s-this.originalPageX)/n.grid[0])*n.grid[0];s=this.containment?a-this.offset.click.left<this.containment[0]||a-this.offset.click.left>this.containment[2]?a-this.offset.click.left<this.containment[0]?a+n.grid[0]:a-n.grid[0]:a:a}}return{top:o-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():i?0:r.scrollTop()),left:s-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():i?0:r.scrollLeft())}},_rearrange:function(e,t,n,r){n?n[0].appendChild(this.placeholder[0]):t.item[0].parentNode.insertBefore(this.placeholder[0],this.direction=="down"?t.item[0]:t.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var i=this.counter;this._delay(function(){i==this.counter&&this.refreshPositions(!r)})},_clear:function(t,n){this.reverting=!1;var r=[];!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null;if(this.helper[0]==this.currentItem[0]){for(var i in this._storedCSS)if(this._storedCSS[i]=="auto"||this._storedCSS[i]=="static")this._storedCSS[i]="";this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();this.fromOutside&&!n&&r.push(function(e){this._trigger("receive",e,this._uiHash(this.fromOutside))}),(this.fromOutside||this.domPosition.prev!=this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!=this.currentItem.parent()[0])&&!n&&r.push(function(e){this._trigger("update",e,this._uiHash())}),this!==this.currentContainer&&(n||(r.push(function(e){this._trigger("remove",e,this._uiHash())}),r.push(function(e){return function(t){e._trigger("receive",t,this._uiHash(this))}}.call(this,this.currentContainer)),r.push(function(e){return function(t){e._trigger("update",t,this._uiHash(this))}}.call(this,this.currentContainer))));for(var i=this.containers.length-1;i>=0;i--)n||r.push(function(e){return function(t){e._trigger("deactivate",t,this._uiHash(this))}}.call(this,this.containers[i])),this.containers[i].containerCache.over&&(r.push(function(e){return function(t){e._trigger("out",t,this._uiHash(this))}}.call(this,this.containers[i])),this.containers[i].containerCache.over=0);this._storedCursor&&e("body").css("cursor",this._storedCursor),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex",this._storedZIndex=="auto"?"":this._storedZIndex),this.dragging=!1;if(this.cancelHelperRemoval){if(!n){this._trigger("beforeStop",t,this._uiHash());for(var i=0;i<r.length;i++)r[i].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!1}n||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.helper[0]!=this.currentItem[0]&&this.helper.remove(),this.helper=null;if(!n){for(var i=0;i<r.length;i++)r[i].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!0},_trigger:function(){e.Widget.prototype._trigger.apply(this,arguments)===!1&&this.cancel()},_uiHash:function(t){var n=t||this;return{helper:n.helper,placeholder:n.placeholder||e([]),position:n.position,originalPosition:n.originalPosition,offset:n.positionAbs,item:n.currentItem,sender:t?t.element:null}}})})(jQuery);(function(e,t){var n=0,r={},i={};r.height=r.paddingTop=r.paddingBottom=r.borderTopWidth=r.borderBottomWidth="hide",i.height=i.paddingTop=i.paddingBottom=i.borderTopWidth=i.borderBottomWidth="show",e.widget("ui.accordion",{version:"1.9.1",options:{active:0,animate:{},collapsible:!1,event:"click",header:"> li > :first-child,> :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},_create:function(){var t=this.accordionId="ui-accordion-"+(this.element.attr("id")||++n),r=this.options;this.prevShow=this.prevHide=e(),this.element.addClass("ui-accordion ui-widget ui-helper-reset"),this.headers=this.element.find(r.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all"),this._hoverable(this.headers),this._focusable(this.headers),this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom").hide(),!r.collapsible&&(r.active===!1||r.active==null)&&(r.active=0),r.active<0&&(r.active+=this.headers.length),this.active=this._findActive(r.active).addClass("ui-accordion-header-active ui-state-active").toggleClass("ui-corner-all ui-corner-top"),this.active.next().addClass("ui-accordion-content-active").show(),this._createIcons(),this.refresh(),this.element.attr("role","tablist"),this.headers.attr("role","tab").each(function(n){var r=e(this),i=r.attr("id"),s=r.next(),o=s.attr("id");i||(i=t+"-header-"+n,r.attr("id",i)),o||(o=t+"-panel-"+n,s.attr("id",o)),r.attr("aria-controls",o),s.attr("aria-labelledby",i)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false",tabIndex:-1}).next().attr({"aria-expanded":"false","aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true",tabIndex:0}).next().attr({"aria-expanded":"true","aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._on(this.headers,{keydown:"_keydown"}),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._setupEvents(r.event)},_getCreateEventData:function(){return{header:this.active,content:this.active.length?this.active.next():e()}},_createIcons:function(){var t=this.options.icons;t&&(e("<span>").addClass("ui-accordion-header-icon ui-icon "+t.header).prependTo(this.headers),this.active.children(".ui-accordion-header-icon").removeClass(t.header).addClass(t.activeHeader),this.headers.addClass("ui-accordion-icons"))},_destroyIcons:function(){this.headers.removeClass("ui-accordion-icons").children(".ui-accordion-header-icon").remove()},_destroy:function(){var e;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role"),this.headers.removeClass("ui-accordion-header ui-accordion-header-active ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-selected").removeAttr("aria-controls").removeAttr("tabIndex").each(function(){/^ui-accordion/.test(this.id)&&this.removeAttribute("id")}),this._destroyIcons(),e=this.headers.next().css("display","").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled").each(function(){/^ui-accordion/.test(this.id)&&this.removeAttribute("id")}),this.options.heightStyle!=="content"&&e.css("height","")},_setOption:function(e,t){if(e==="active"){this._activate(t);return}e==="event"&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(t)),this._super(e,t),e==="collapsible"&&!t&&this.options.active===!1&&this._activate(0),e==="icons"&&(this._destroyIcons(),t&&this._createIcons()),e==="disabled"&&this.headers.add(this.headers.next()).toggleClass("ui-state-disabled",!!t)},_keydown:function(t){if(t.altKey||t.ctrlKey)return;var n=e.ui.keyCode,r=this.headers.length,i=this.headers.index(t.target),s=!1;switch(t.keyCode){case n.RIGHT:case n.DOWN:s=this.headers[(i+1)%r];break;case n.LEFT:case n.UP:s=this.headers[(i-1+r)%r];break;case n.SPACE:case n.ENTER:this._eventHandler(t);break;case n.HOME:s=this.headers[0];break;case n.END:s=this.headers[r-1]}s&&(e(t.target).attr("tabIndex",-1),e(s).attr("tabIndex",0),s.focus(),t.preventDefault())},_panelKeyDown:function(t){t.keyCode===e.ui.keyCode.UP&&t.ctrlKey&&e(t.currentTarget).prev().focus()},refresh:function(){var t,n,r=this.options.heightStyle,i=this.element.parent();r==="fill"?(e.support.minHeight||(n=i.css("overflow"),i.css("overflow","hidden")),t=i.height(),this.element.siblings(":visible").each(function(){var n=e(this),r=n.css("position");if(r==="absolute"||r==="fixed")return;t-=n.outerHeight(!0)}),n&&i.css("overflow",n),this.headers.each(function(){t-=e(this).outerHeight(!0)}),this.headers.next().each(function(){e(this).height(Math.max(0,t-e(this).innerHeight()+e(this).height()))}).css("overflow","auto")):r==="auto"&&(t=0,this.headers.next().each(function(){t=Math.max(t,e(this).height("").height())}).height(t))},_activate:function(t){var n=this._findActive(t)[0];if(n===this.active[0])return;n=n||this.active[0],this._eventHandler({target:n,currentTarget:n,preventDefault:e.noop})},_findActive:function(t){return typeof t=="number"?this.headers.eq(t):e()},_setupEvents:function(t){var n={};if(!t)return;e.each(t.split(" "),function(e,t){n[t]="_eventHandler"}),this._on(this.headers,n)},_eventHandler:function(t){var n=this.options,r=this.active,i=e(t.currentTarget),s=i[0]===r[0],o=s&&n.collapsible,u=o?e():i.next(),a=r.next(),f={oldHeader:r,oldPanel:a,newHeader:o?e():i,newPanel:u};t.preventDefault();if(s&&!n.collapsible||this._trigger("beforeActivate",t,f)===!1)return;n.active=o?!1:this.headers.index(i),this.active=s?e():i,this._toggle(f),r.removeClass("ui-accordion-header-active ui-state-active"),n.icons&&r.children(".ui-accordion-header-icon").removeClass(n.icons.activeHeader).addClass(n.icons.header),s||(i.removeClass("ui-corner-all").addClass("ui-accordion-header-active ui-state-active ui-corner-top"),n.icons&&i.children(".ui-accordion-header-icon").removeClass(n.icons.header).addClass(n.icons.activeHeader),i.next().addClass("ui-accordion-content-active"))},_toggle:function(t){var n=t.newPanel,r=this.prevShow.length?this.prevShow:t.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=n,this.prevHide=r,this.options.animate?this._animate(n,r,t):(r.hide(),n.show(),this._toggleComplete(t)),r.attr({"aria-expanded":"false","aria-hidden":"true"}),r.prev().attr("aria-selected","false"),n.length&&r.length?r.prev().attr("tabIndex",-1):n.length&&this.headers.filter(function(){return e(this).attr("tabIndex")===0}).attr("tabIndex",-1),n.attr({"aria-expanded":"true","aria-hidden":"false"}).prev().attr({"aria-selected":"true",tabIndex:0})},_animate:function(e,t,n){var s,o,u,a=this,f=0,l=e.length&&(!t.length||e.index()<t.index()),c=this.options.animate||{},h=l&&c.down||c,p=function(){a._toggleComplete(n)};typeof h=="number"&&(u=h),typeof h=="string"&&(o=h),o=o||h.easing||c.easing,u=u||h.duration||c.duration;if(!t.length)return e.animate(i,u,o,p);if(!e.length)return t.animate(r,u,o,p);s=e.show().outerHeight(),t.animate(r,{duration:u,easing:o,step:function(e,t){t.now=Math.round(e)}}),e.hide().animate(i,{duration:u,easing:o,complete:p,step:function(e,n){n.now=Math.round(e),n.prop!=="height"?f+=n.now:a.options.heightStyle!=="content"&&(n.now=Math.round(s-t.outerHeight()-f),f=0)}})},_toggleComplete:function(e){var t=e.oldPanel;t.removeClass("ui-accordion-content-active").prev().removeClass("ui-corner-top").addClass("ui-corner-all"),t.length&&(t.parent()[0].className=t.parent()[0].className),this._trigger("activate",null,e)}}),e.uiBackCompat!==!1&&(function(e,t){e.extend(t.options,{navigation:!1,navigationFilter:function(){return this.href.toLowerCase()===location.href.toLowerCase()}});var n=t._create;t._create=function(){if(this.options.navigation){var t=this,r=this.element.find(this.options.header),i=r.next(),s=r.add(i).find("a").filter(this.options.navigationFilter)[0];s&&r.add(i).each(function(n){if(e.contains(this,s))return t.options.active=Math.floor(n/2),!1})}n.call(this)}}(jQuery,jQuery.ui.accordion.prototype),function(e,t){e.extend(t.options,{heightStyle:null,autoHeight:!0,clearStyle:!1,fillSpace:!1});var n=t._create,r=t._setOption;e.extend(t,{_create:function(){this.options.heightStyle=this.options.heightStyle||this._mergeHeightStyle(),n.call(this)},_setOption:function(e){if(e==="autoHeight"||e==="clearStyle"||e==="fillSpace")this.options.heightStyle=this._mergeHeightStyle();r.apply(this,arguments)},_mergeHeightStyle:function(){var e=this.options;if(e.fillSpace)return"fill";if(e.clearStyle)return"content";if(e.autoHeight)return"auto"}})}(jQuery,jQuery.ui.accordion.prototype),function(e,t){e.extend(t.options.icons,{activeHeader:null,headerSelected:"ui-icon-triangle-1-s"});var n=t._createIcons;t._createIcons=function(){this.options.icons&&(this.options.icons.activeHeader=this.options.icons.activeHeader||this.options.icons.headerSelected),n.call(this)}}(jQuery,jQuery.ui.accordion.prototype),function(e,t){t.activate=t._activate;var n=t._findActive;t._findActive=function(e){return e===-1&&(e=!1),e&&typeof e!="number"&&(e=this.headers.index(this.headers.filter(e)),e===-1&&(e=!1)),n.call(this,e)}}(jQuery,jQuery.ui.accordion.prototype),jQuery.ui.accordion.prototype.resize=jQuery.ui.accordion.prototype.refresh,function(e,t){e.extend(t.options,{change:null,changestart:null});var n=t._trigger;t._trigger=function(e,t,r){var i=n.apply(this,arguments);return i?(e==="beforeActivate"?i=n.call(this,"changestart",t,{oldHeader:r.oldHeader,oldContent:r.oldPanel,newHeader:r.newHeader,newContent:r.newPanel}):e==="activate"&&(i=n.call(this,"change",t,{oldHeader:r.oldHeader,oldContent:r.oldPanel,newHeader:r.newHeader,newContent:r.newPanel})),i):!1}}(jQuery,jQuery.ui.accordion.prototype),function(e,t){e.extend(t.options,{animate:null,animated:"slide"});var n=t._create;t._create=function(){var e=this.options;e.animate===null&&(e.animated?e.animated==="slide"?e.animate=300:e.animated==="bounceslide"?e.animate={duration:200,down:{easing:"easeOutBounce",duration:1e3}}:e.animate=e.animated:e.animate=!1),n.call(this)}}(jQuery,jQuery.ui.accordion.prototype))})(jQuery);(function(e,t){var n,r,i,s,o="ui-button ui-widget ui-state-default ui-corner-all",u="ui-state-hover ui-state-active ",a="ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only",f=function(){var t=e(this).find(":ui-button");setTimeout(function(){t.button("refresh")},1)},l=function(t){var n=t.name,r=t.form,i=e([]);return n&&(r?i=e(r).find("[name='"+n+"']"):i=e("[name='"+n+"']",t.ownerDocument).filter(function(){return!this.form})),i};e.widget("ui.button",{version:"1.9.1",defaultElement:"<button>",options:{disabled:null,text:!0,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset"+this.eventNamespace).bind("reset"+this.eventNamespace,f),typeof this.options.disabled!="boolean"?this.options.disabled=!!this.element.prop("disabled"):this.element.prop("disabled",this.options.disabled),this._determineButtonType(),this.hasTitle=!!this.buttonElement.attr("title");var t=this,u=this.options,a=this.type==="checkbox"||this.type==="radio",c="ui-state-hover"+(a?"":" ui-state-active"),h="ui-state-focus";u.label===null&&(u.label=this.type==="input"?this.buttonElement.val():this.buttonElement.html()),this.buttonElement.addClass(o).attr("role","button").bind("mouseenter"+this.eventNamespace,function(){if(u.disabled)return;e(this).addClass("ui-state-hover"),this===n&&e(this).addClass("ui-state-active")}).bind("mouseleave"+this.eventNamespace,function(){if(u.disabled)return;e(this).removeClass(c)}).bind("click"+this.eventNamespace,function(e){u.disabled&&(e.preventDefault(),e.stopImmediatePropagation())}),this.element.bind("focus"+this.eventNamespace,function(){t.buttonElement.addClass(h)}).bind("blur"+this.eventNamespace,function(){t.buttonElement.removeClass(h)}),a&&(this.element.bind("change"+this.eventNamespace,function(){if(s)return;t.refresh()}),this.buttonElement.bind("mousedown"+this.eventNamespace,function(e){if(u.disabled)return;s=!1,r=e.pageX,i=e.pageY}).bind("mouseup"+this.eventNamespace,function(e){if(u.disabled)return;if(r!==e.pageX||i!==e.pageY)s=!0})),this.type==="checkbox"?this.buttonElement.bind("click"+this.eventNamespace,function(){if(u.disabled||s)return!1;e(this).toggleClass("ui-state-active"),t.buttonElement.attr("aria-pressed",t.element[0].checked)}):this.type==="radio"?this.buttonElement.bind("click"+this.eventNamespace,function(){if(u.disabled||s)return!1;e(this).addClass("ui-state-active"),t.buttonElement.attr("aria-pressed","true");var n=t.element[0];l(n).not(n).map(function(){return e(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed","false")}):(this.buttonElement.bind("mousedown"+this.eventNamespace,function(){if(u.disabled)return!1;e(this).addClass("ui-state-active"),n=this,t.document.one("mouseup",function(){n=null})}).bind("mouseup"+this.eventNamespace,function(){if(u.disabled)return!1;e(this).removeClass("ui-state-active")}).bind("keydown"+this.eventNamespace,function(t){if(u.disabled)return!1;(t.keyCode===e.ui.keyCode.SPACE||t.keyCode===e.ui.keyCode.ENTER)&&e(this).addClass("ui-state-active")}).bind("keyup"+this.eventNamespace,function(){e(this).removeClass("ui-state-active")}),this.buttonElement.is("a")&&this.buttonElement.keyup(function(t){t.keyCode===e.ui.keyCode.SPACE&&e(this).click()})),this._setOption("disabled",u.disabled),this._resetButton()},_determineButtonType:function(){var e,t,n;this.element.is("[type=checkbox]")?this.type="checkbox":this.element.is("[type=radio]")?this.type="radio":this.element.is("input")?this.type="input":this.type="button",this.type==="checkbox"||this.type==="radio"?(e=this.element.parents().last(),t="label[for='"+this.element.attr("id")+"']",this.buttonElement=e.find(t),this.buttonElement.length||(e=e.length?e.siblings():this.element.siblings(),this.buttonElement=e.filter(t),this.buttonElement.length||(this.buttonElement=e.find(t))),this.element.addClass("ui-helper-hidden-accessible"),n=this.element.is(":checked"),n&&this.buttonElement.addClass("ui-state-active"),this.buttonElement.prop("aria-pressed",n)):this.buttonElement=this.element},widget:function(){return this.buttonElement},_destroy:function(){this.element.removeClass("ui-helper-hidden-accessible"),this.buttonElement.removeClass(o+" "+u+" "+a).removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html()),this.hasTitle||this.buttonElement.removeAttr("title")},_setOption:function(e,t){this._super(e,t);if(e==="disabled"){t?this.element.prop("disabled",!0):this.element.prop("disabled",!1);return}this._resetButton()},refresh:function(){var t=this.element.is(":disabled")||this.element.hasClass("ui-button-disabled");t!==this.options.disabled&&this._setOption("disabled",t),this.type==="radio"?l(this.element[0]).each(function(){e(this).is(":checked")?e(this).button("widget").addClass("ui-state-active").attr("aria-pressed","true"):e(this).button("widget").removeClass("ui-state-active").attr("aria-pressed","false")}):this.type==="checkbox"&&(this.element.is(":checked")?this.buttonElement.addClass("ui-state-active").attr("aria-pressed","true"):this.buttonElement.removeClass("ui-state-active").attr("aria-pressed","false"))},_resetButton:function(){if(this.type==="input"){this.options.label&&this.element.val(this.options.label);return}var t=this.buttonElement.removeClass(a),n=e("<span></span>",this.document[0]).addClass("ui-button-text").html(this.options.label).appendTo(t.empty()).text(),r=this.options.icons,i=r.primary&&r.secondary,s=[];r.primary||r.secondary?(this.options.text&&s.push("ui-button-text-icon"+(i?"s":r.primary?"-primary":"-secondary")),r.primary&&t.prepend("<span class='ui-button-icon-primary ui-icon "+r.primary+"'></span>"),r.secondary&&t.append("<span class='ui-button-icon-secondary ui-icon "+r.secondary+"'></span>"),this.options.text||(s.push(i?"ui-button-icons-only":"ui-button-icon-only"),this.hasTitle||t.attr("title",e.trim(n)))):s.push("ui-button-text-only"),t.addClass(s.join(" "))}}),e.widget("ui.buttonset",{version:"1.9.1",options:{items:"button, input[type=button], input[type=submit], input[type=reset], input[type=checkbox], input[type=radio], a, :data(button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(e,t){e==="disabled"&&this.buttons.button("option",e,t),this._super(e,t)},refresh:function(){var t=this.element.css("direction")==="rtl";this.buttons=this.element.find(this.options.items).filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return e(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass(t?"ui-corner-right":"ui-corner-left").end().filter(":last").addClass(t?"ui-corner-left":"ui-corner-right").end().end()},_destroy:function(){this.element.removeClass("ui-buttonset"),this.buttons.map(function(){return e(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy")}})})(jQuery);(function(e,t){var n="ui-dialog ui-widget ui-widget-content ui-corner-all ",r={buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},i={maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0};e.widget("ui.dialog",{version:"1.9.1",options:{autoOpen:!0,buttons:{},closeOnEscape:!0,closeText:"close",dialogClass:"",draggable:!0,hide:null,height:"auto",maxHeight:!1,maxWidth:!1,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(t){var n=e(this).css(t).offset().top;n<0&&e(this).css("top",t.top-n)}},resizable:!0,show:null,stack:!0,title:"",width:300,zIndex:1e3},_create:function(){this.originalTitle=this.element.attr("title"),typeof this.originalTitle!="string"&&(this.originalTitle=""),this.oldPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.options.title=this.options.title||this.originalTitle;var t=this,r=this.options,i=r.title||"&#160;",s,o,u,a,f;s=(this.uiDialog=e("<div>")).addClass(n+r.dialogClass).css({display:"none",outline:0,zIndex:r.zIndex}).attr("tabIndex",-1).keydown(function(n){r.closeOnEscape&&!n.isDefaultPrevented()&&n.keyCode&&n.keyCode===e.ui.keyCode.ESCAPE&&(t.close(n),n.preventDefault())}).mousedown(function(e){t.moveToTop(!1,e)}).appendTo("body"),this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(s),o=(this.uiDialogTitlebar=e("<div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").bind("mousedown",function(){s.focus()}).prependTo(s),u=e("<a href='#'></a>").addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").click(function(e){e.preventDefault(),t.close(e)}).appendTo(o),(this.uiDialogTitlebarCloseText=e("<span>")).addClass("ui-icon ui-icon-closethick").text(r.closeText).appendTo(u),a=e("<span>").uniqueId().addClass("ui-dialog-title").html(i).prependTo(o),f=(this.uiDialogButtonPane=e("<div>")).addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),(this.uiButtonSet=e("<div>")).addClass("ui-dialog-buttonset").appendTo(f),s.attr({role:"dialog","aria-labelledby":a.attr("id")}),o.find("*").add(o).disableSelection(),this._hoverable(u),this._focusable(u),r.draggable&&e.fn.draggable&&this._makeDraggable(),r.resizable&&e.fn.resizable&&this._makeResizable(),this._createButtons(r.buttons),this._isOpen=!1,e.fn.bgiframe&&s.bgiframe(),this._on(s,{keydown:function(t){if(!r.modal||t.keyCode!==e.ui.keyCode.TAB)return;var n=e(":tabbable",s),i=n.filter(":first"),o=n.filter(":last");if(t.target===o[0]&&!t.shiftKey)return i.focus(1),!1;if(t.target===i[0]&&t.shiftKey)return o.focus(1),!1}})},_init:function(){this.options.autoOpen&&this.open()},_destroy:function(){var e,t=this.oldPosition;this.overlay&&this.overlay.destroy(),this.uiDialog.hide(),this.element.removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body"),this.uiDialog.remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),e=t.parent.children().eq(t.index),e.length&&e[0]!==this.element[0]?e.before(this.element):t.parent.append(this.element)},widget:function(){return this.uiDialog},close:function(t){var n=this,r,i;if(!this._isOpen)return;if(!1===this._trigger("beforeClose",t))return;return this._isOpen=!1,this.overlay&&this.overlay.destroy(),this.options.hide?this._hide(this.uiDialog,this.options.hide,function(){n._trigger("close",t)}):(this.uiDialog.hide(),this._trigger("close",t)),e.ui.dialog.overlay.resize(),this.options.modal&&(r=0,e(".ui-dialog").each(function(){this!==n.uiDialog[0]&&(i=e(this).css("z-index"),isNaN(i)||(r=Math.max(r,i)))}),e.ui.dialog.maxZ=r),this},isOpen:function(){return this._isOpen},moveToTop:function(t,n){var r=this.options,i;return r.modal&&!t||!r.stack&&!r.modal?this._trigger("focus",n):(r.zIndex>e.ui.dialog.maxZ&&(e.ui.dialog.maxZ=r.zIndex),this.overlay&&(e.ui.dialog.maxZ+=1,e.ui.dialog.overlay.maxZ=e.ui.dialog.maxZ,this.overlay.$el.css("z-index",e.ui.dialog.overlay.maxZ)),i={scrollTop:this.element.scrollTop(),scrollLeft:this.element.scrollLeft()},e.ui.dialog.maxZ+=1,this.uiDialog.css("z-index",e.ui.dialog.maxZ),this.element.attr(i),this._trigger("focus",n),this)},open:function(){if(this._isOpen)return;var t,n=this.options,r=this.uiDialog;return this._size(),this._position(n.position),r.show(n.show),this.overlay=n.modal?new e.ui.dialog.overlay(this):null,this.moveToTop(!0),t=this.element.find(":tabbable"),t.length||(t=this.uiDialogButtonPane.find(":tabbable"),t.length||(t=r)),t.eq(0).focus(),this._isOpen=!0,this._trigger("open"),this},_createButtons:function(t){var n=this,r=!1;this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),typeof t=="object"&&t!==null&&e.each(t,function(){return!(r=!0)}),r?(e.each(t,function(t,r){r=e.isFunction(r)?{click:r,text:t}:r;var i=e("<button type='button'></button>").attr(r,!0).unbind("click").click(function(){r.click.apply(n.element[0],arguments)}).appendTo(n.uiButtonSet);e.fn.button&&i.button()}),this.uiDialog.addClass("ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog)):this.uiDialog.removeClass("ui-dialog-buttons")},_makeDraggable:function(){function r(e){return{position:e.position,offset:e.offset}}var t=this,n=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(n,i){e(this).addClass("ui-dialog-dragging"),t._trigger("dragStart",n,r(i))},drag:function(e,n){t._trigger("drag",e,r(n))},stop:function(i,s){n.position=[s.position.left-t.document.scrollLeft(),s.position.top-t.document.scrollTop()],e(this).removeClass("ui-dialog-dragging"),t._trigger("dragStop",i,r(s)),e.ui.dialog.overlay.resize()}})},_makeResizable:function(n){function u(e){return{originalPosition:e.originalPosition,originalSize:e.originalSize,position:e.position,size:e.size}}n=n===t?this.options.resizable:n;var r=this,i=this.options,s=this.uiDialog.css("position"),o=typeof n=="string"?n:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:i.maxWidth,maxHeight:i.maxHeight,minWidth:i.minWidth,minHeight:this._minHeight(),handles:o,start:function(t,n){e(this).addClass("ui-dialog-resizing"),r._trigger("resizeStart",t,u(n))},resize:function(e,t){r._trigger("resize",e,u(t))},stop:function(t,n){e(this).removeClass("ui-dialog-resizing"),i.height=e(this).height(),i.width=e(this).width(),r._trigger("resizeStop",t,u(n)),e.ui.dialog.overlay.resize()}}).css("position",s).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_minHeight:function(){var e=this.options;return e.height==="auto"?e.minHeight:Math.min(e.minHeight,e.height)},_position:function(t){var n=[],r=[0,0],i;if(t){if(typeof t=="string"||typeof t=="object"&&"0"in t)n=t.split?t.split(" "):[t[0],t[1]],n.length===1&&(n[1]=n[0]),e.each(["left","top"],function(e,t){+n[e]===n[e]&&(r[e]=n[e],n[e]=t)}),t={my:n[0]+(r[0]<0?r[0]:"+"+r[0])+" "+n[1]+(r[1]<0?r[1]:"+"+r[1]),at:n.join(" ")};t=e.extend({},e.ui.dialog.prototype.options.position,t)}else t=e.ui.dialog.prototype.options.position;i=this.uiDialog.is(":visible"),i||this.uiDialog.show(),this.uiDialog.position(t),i||this.uiDialog.hide()},_setOptions:function(t){var n=this,s={},o=!1;e.each(t,function(e,t){n._setOption(e,t),e in r&&(o=!0),e in i&&(s[e]=t)}),o&&this._size(),this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option",s)},_setOption:function(t,r){var i,s,o=this.uiDialog;switch(t){case"buttons":this._createButtons(r);break;case"closeText":this.uiDialogTitlebarCloseText.text(""+r);break;case"dialogClass":o.removeClass(this.options.dialogClass).addClass(n+r);break;case"disabled":r?o.addClass("ui-dialog-disabled"):o.removeClass("ui-dialog-disabled");break;case"draggable":i=o.is(":data(draggable)"),i&&!r&&o.draggable("destroy"),!i&&r&&this._makeDraggable();break;case"position":this._position(r);break;case"resizable":s=o.is(":data(resizable)"),s&&!r&&o.resizable("destroy"),s&&typeof r=="string"&&o.resizable("option","handles",r),!s&&r!==!1&&this._makeResizable(r);break;case"title":e(".ui-dialog-title",this.uiDialogTitlebar).html(""+(r||"&#160;"))}this._super(t,r)},_size:function(){var t,n,r,i=this.options,s=this.uiDialog.is(":visible");this.element.show().css({width:"auto",minHeight:0,height:0}),i.minWidth>i.width&&(i.width=i.minWidth),t=this.uiDialog.css({height:"auto",width:i.width}).outerHeight(),n=Math.max(0,i.minHeight-t),i.height==="auto"?e.support.minHeight?this.element.css({minHeight:n,height:"auto"}):(this.uiDialog.show(),r=this.element.css("height","auto").height(),s||this.uiDialog.hide(),this.element.height(Math.max(r,n))):this.element.height(Math.max(i.height-t,0)),this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}}),e.extend(e.ui.dialog,{uuid:0,maxZ:0,getTitleId:function(e){var t=e.attr("id");return t||(this.uuid+=1,t=this.uuid),"ui-dialog-title-"+t},overlay:function(t){this.$el=e.ui.dialog.overlay.create(t)}}),e.extend(e.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:e.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(e){return e+".dialog-overlay"}).join(" "),create:function(t){this.instances.length===0&&(setTimeout(function(){e.ui.dialog.overlay.instances.length&&e(document).bind(e.ui.dialog.overlay.events,function(t){if(e(t.target).zIndex()<e.ui.dialog.overlay.maxZ)return!1})},1),e(window).bind("resize.dialog-overlay",e.ui.dialog.overlay.resize));var n=this.oldInstances.pop()||e("<div>").addClass("ui-widget-overlay");return e(document).bind("keydown.dialog-overlay",function(r){var i=e.ui.dialog.overlay.instances;i.length!==0&&i[i.length-1]===n&&t.options.closeOnEscape&&!r.isDefaultPrevented()&&r.keyCode&&r.keyCode===e.ui.keyCode.ESCAPE&&(t.close(r),r.preventDefault())}),n.appendTo(document.body).css({width:this.width(),height:this.height()}),e.fn.bgiframe&&n.bgiframe(),this.instances.push(n),n},destroy:function(t){var n=e.inArray(t,this.instances),r=0;n!==-1&&this.oldInstances.push(this.instances.splice(n,1)[0]),this.instances.length===0&&e([document,window]).unbind(".dialog-overlay"),t.height(0).width(0).remove(),e.each(this.instances,function(){r=Math.max(r,this.css("z-index"))}),this.maxZ=r},height:function(){var t,n;return e.ui.ie?(t=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight),n=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight),t<n?e(window).height()+"px":t+"px"):e(document).height()+"px"},width:function(){var t,n;return e.ui.ie?(t=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),n=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth),t<n?e(window).width()+"px":t+"px"):e(document).width()+"px"},resize:function(){var t=e([]);e.each(e.ui.dialog.overlay.instances,function(){t=t.add(this)}),t.css({width:0,height:0}).css({width:e.ui.dialog.overlay.width(),height:e.ui.dialog.overlay.height()})}}),e.extend(e.ui.dialog.overlay.prototype,{destroy:function(){e.ui.dialog.overlay.destroy(this.$el)}})})(jQuery);(function(e,t){var n=!1;e.widget("ui.menu",{version:"1.9.1",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content ui-corner-all").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}).bind("click"+this.eventNamespace,e.proxy(function(e){this.options.disabled&&e.preventDefault()},this)),this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true"),this._on({"mousedown .ui-menu-item > a":function(e){e.preventDefault()},"click .ui-state-disabled > a":function(e){e.preventDefault()},"click .ui-menu-item:has(a)":function(t){var r=e(t.target).closest(".ui-menu-item");!n&&r.not(".ui-state-disabled").length&&(n=!0,this.select(t),r.has(".ui-menu").length?this.expand(t):this.element.is(":focus")||(this.element.trigger("focus",[!0]),this.active&&this.active.parents(".ui-menu").length===1&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(t){var n=e(t.currentTarget);n.siblings().children(".ui-state-active").removeClass("ui-state-active"),this.focus(t,n)},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(e,t){var n=this.active||this.element.children(".ui-menu-item").eq(0);t||this.focus(e,n)},blur:function(t){this._delay(function(){e.contains(this.element[0],this.document[0].activeElement)||this.collapseAll(t)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){e(t.target).closest(".ui-menu").length||this.collapseAll(t),n=!1}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").andSelf().removeClass("ui-menu ui-widget ui-widget-content ui-corner-all ui-menu-icons").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show(),this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").children("a").removeUniqueId().removeClass("ui-corner-all ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var t=e(this);t.data("ui-menu-submenu-carat")&&t.remove()}),this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(t){function a(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}var n,r,i,s,o,u=!0;switch(t.keyCode){case e.ui.keyCode.PAGE_UP:this.previousPage(t);break;case e.ui.keyCode.PAGE_DOWN:this.nextPage(t);break;case e.ui.keyCode.HOME:this._move("first","first",t);break;case e.ui.keyCode.END:this._move("last","last",t);break;case e.ui.keyCode.UP:this.previous(t);break;case e.ui.keyCode.DOWN:this.next(t);break;case e.ui.keyCode.LEFT:this.collapse(t);break;case e.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(t);break;case e.ui.keyCode.ENTER:case e.ui.keyCode.SPACE:this._activate(t);break;case e.ui.keyCode.ESCAPE:this.collapse(t);break;default:u=!1,r=this.previousFilter||"",i=String.fromCharCode(t.keyCode),s=!1,clearTimeout(this.filterTimer),i===r?s=!0:i=r+i,o=new RegExp("^"+a(i),"i"),n=this.activeMenu.children(".ui-menu-item").filter(function(){return o.test(e(this).children("a").text())}),n=s&&n.index(this.active.next())!==-1?this.active.nextAll(".ui-menu-item"):n,n.length||(i=String.fromCharCode(t.keyCode),o=new RegExp("^"+a(i),"i"),n=this.activeMenu.children(".ui-menu-item").filter(function(){return o.test(e(this).children("a").text())})),n.length?(this.focus(t,n),n.length>1?(this.previousFilter=i,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter):delete this.previousFilter}u&&t.preventDefault()},_activate:function(e){this.active.is(".ui-state-disabled")||(this.active.children("a[aria-haspopup='true']").length?this.expand(e):this.select(e))},refresh:function(){var t,n=this.options.icons.submenu,r=this.element.find(this.options.menus+":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-corner-all").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"});t=r.add(this.element),t.children(":not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","presentation").children("a").uniqueId().addClass("ui-corner-all").attr({tabIndex:-1,role:this._itemRole()}),t.children(":not(.ui-menu-item)").each(function(){var t=e(this);/[^\-—–\s]/.test(t.text())||t.addClass("ui-widget-content ui-menu-divider")}),t.children(".ui-state-disabled").attr("aria-disabled","true"),r.each(function(){var t=e(this),r=t.prev("a"),i=e("<span>").addClass("ui-menu-icon ui-icon "+n).data("ui-menu-submenu-carat",!0);r.attr("aria-haspopup","true").prepend(i),t.attr("aria-labelledby",r.attr("id"))}),this.active&&!e.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},focus:function(e,t){var n,r;this.blur(e,e&&e.type==="focus"),this._scrollIntoView(t),this.active=t.first(),r=this.active.children("a").addClass("ui-state-focus"),this.options.role&&this.element.attr("aria-activedescendant",r.attr("id")),this.active.parent().closest(".ui-menu-item").children("a:first").addClass("ui-state-active"),e&&e.type==="keydown"?this._close():this.timer=this._delay(function(){this._close()},this.delay),n=t.children(".ui-menu"),n.length&&/^mouse/.test(e.type)&&this._startOpening(n),this.activeMenu=t.parent(),this._trigger("focus",e,{item:t})},_scrollIntoView:function(t){var n,r,i,s,o,u;this._hasScroll()&&(n=parseFloat(e.css(this.activeMenu[0],"borderTopWidth"))||0,r=parseFloat(e.css(this.activeMenu[0],"paddingTop"))||0,i=t.offset().top-this.activeMenu.offset().top-n-r,s=this.activeMenu.scrollTop(),o=this.activeMenu.height(),u=t.height(),i<0?this.activeMenu.scrollTop(s+i):i+u>o&&this.activeMenu.scrollTop(s+i-o+u))},blur:function(e,t){t||clearTimeout(this.timer);if(!this.active)return;this.active.children("a").removeClass("ui-state-focus"),this.active=null,this._trigger("blur",e,{item:this.active})},_startOpening:function(e){clearTimeout(this.timer);if(e.attr("aria-hidden")!=="true")return;this.timer=this._delay(function(){this._close(),this._open(e)},this.delay)},_open:function(t){var n=e.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(t.parents(".ui-menu")).hide().attr("aria-hidden","true"),t.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(n)},collapseAll:function(t,n){clearTimeout(this.timer),this.timer=this._delay(function(){var r=n?this.element:e(t&&t.target).closest(this.element.find(".ui-menu"));r.length||(r=this.element),this._close(r),this.blur(t),this.activeMenu=r},this.delay)},_close:function(e){e||(e=this.active?this.active.parent():this.element),e.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false").end().find("a.ui-state-active").removeClass("ui-state-active")},collapse:function(e){var t=this.active&&this.active.parent().closest(".ui-menu-item",this.element);t&&t.length&&(this._close(),this.focus(e,t))},expand:function(e){var t=this.active&&this.active.children(".ui-menu ").children(".ui-menu-item").first();t&&t.length&&(this._open(t.parent()),this._delay(function(){this.focus(e,t)}))},next:function(e){this._move("next","first",e)},previous:function(e){this._move("prev","last",e)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(e,t,n){var r;this.active&&(e==="first"||e==="last"?r=this.active[e==="first"?"prevAll":"nextAll"](".ui-menu-item").eq(-1):r=this.active[e+"All"](".ui-menu-item").eq(0));if(!r||!r.length||!this.active)r=this.activeMenu.children(".ui-menu-item")[t]();this.focus(n,r)},nextPage:function(t){var n,r,i;if(!this.active){this.next(t);return}if(this.isLastItem())return;this._hasScroll()?(r=this.active.offset().top,i=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return n=e(this),n.offset().top-r-i<0}),this.focus(t,n)):this.focus(t,this.activeMenu.children(".ui-menu-item")[this.active?"last":"first"]())},previousPage:function(t){var n,r,i;if(!this.active){this.next(t);return}if(this.isFirstItem())return;this._hasScroll()?(r=this.active.offset().top,i=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return n=e(this),n.offset().top-r+i>0}),this.focus(t,n)):this.focus(t,this.activeMenu.children(".ui-menu-item").first())},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(t){this.active=this.active||e(t.target).closest(".ui-menu-item");var n={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(t,!0),this._trigger("select",t,n)}})})(jQuery);(function(e,t){var n=5;e.widget("ui.slider",e.ui.mouse,{version:"1.9.1",widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null},_create:function(){var t,r,i=this.options,s=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),o="<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'></a>",u=[];this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget"+" ui-widget-content"+" ui-corner-all"+(i.disabled?" ui-slider-disabled ui-disabled":"")),this.range=e([]),i.range&&(i.range===!0&&(i.values||(i.values=[this._valueMin(),this._valueMin()]),i.values.length&&i.values.length!==2&&(i.values=[i.values[0],i.values[0]])),this.range=e("<div></div>").appendTo(this.element).addClass("ui-slider-range ui-widget-header"+(i.range==="min"||i.range==="max"?" ui-slider-range-"+i.range:""))),r=i.values&&i.values.length||1;for(t=s.length;t<r;t++)u.push(o);this.handles=s.add(e(u.join("")).appendTo(this.element)),this.handle=this.handles.eq(0),this.handles.add(this.range).filter("a").click(function(e){e.preventDefault()}).mouseenter(function(){i.disabled||e(this).addClass("ui-state-hover")}).mouseleave(function(){e(this).removeClass("ui-state-hover")}).focus(function(){i.disabled?e(this).blur():(e(".ui-slider .ui-state-focus").removeClass("ui-state-focus"),e(this).addClass("ui-state-focus"))}).blur(function(){e(this).removeClass("ui-state-focus")}),this.handles.each(function(t){e(this).data("ui-slider-handle-index",t)}),this._on(this.handles,{keydown:function(t){var r,i,s,o,u=e(t.target).data("ui-slider-handle-index");switch(t.keyCode){case e.ui.keyCode.HOME:case e.ui.keyCode.END:case e.ui.keyCode.PAGE_UP:case e.ui.keyCode.PAGE_DOWN:case e.ui.keyCode.UP:case e.ui.keyCode.RIGHT:case e.ui.keyCode.DOWN:case e.ui.keyCode.LEFT:t.preventDefault();if(!this._keySliding){this._keySliding=!0,e(t.target).addClass("ui-state-active"),r=this._start(t,u);if(r===!1)return}}o=this.options.step,this.options.values&&this.options.values.length?i=s=this.values(u):i=s=this.value();switch(t.keyCode){case e.ui.keyCode.HOME:s=this._valueMin();break;case e.ui.keyCode.END:s=this._valueMax();break;case e.ui.keyCode.PAGE_UP:s=this._trimAlignValue(i+(this._valueMax()-this._valueMin())/n);break;case e.ui.keyCode.PAGE_DOWN:s=this._trimAlignValue(i-(this._valueMax()-this._valueMin())/n);break;case e.ui.keyCode.UP:case e.ui.keyCode.RIGHT:if(i===this._valueMax())return;s=this._trimAlignValue(i+o);break;case e.ui.keyCode.DOWN:case e.ui.keyCode.LEFT:if(i===this._valueMin())return;s=this._trimAlignValue(i-o)}this._slide(t,u,s)},keyup:function(t){var n=e(t.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(t,n),this._change(t,n),e(t.target).removeClass("ui-state-active"))}}),this._refreshValue(),this._animateOff=!1},_destroy:function(){this.handles.remove(),this.range.remove(),this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all"),this._mouseDestroy()},_mouseCapture:function(t){var n,r,i,s,o,u,a,f,l=this,c=this.options;return c.disabled?!1:(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),n={x:t.pageX,y:t.pageY},r=this._normValueFromMouse(n),i=this._valueMax()-this._valueMin()+1,this.handles.each(function(t){var n=Math.abs(r-l.values(t));i>n&&(i=n,s=e(this),o=t)}),c.range===!0&&this.values(1)===c.min&&(o+=1,s=e(this.handles[o])),u=this._start(t,o),u===!1?!1:(this._mouseSliding=!0,this._handleIndex=o,s.addClass("ui-state-active").focus(),a=s.offset(),f=!e(t.target).parents().andSelf().is(".ui-slider-handle"),this._clickOffset=f?{left:0,top:0}:{left:t.pageX-a.left-s.width()/2,top:t.pageY-a.top-s.height()/2-(parseInt(s.css("borderTopWidth"),10)||0)-(parseInt(s.css("borderBottomWidth"),10)||0)+(parseInt(s.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(t,o,r),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(e){var t={x:e.pageX,y:e.pageY},n=this._normValueFromMouse(t);return this._slide(e,this._handleIndex,n),!1},_mouseStop:function(e){return this.handles.removeClass("ui-state-active"),this._mouseSliding=!1,this._stop(e,this._handleIndex),this._change(e,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(e){var t,n,r,i,s;return this.orientation==="horizontal"?(t=this.elementSize.width,n=e.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(t=this.elementSize.height,n=e.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),r=n/t,r>1&&(r=1),r<0&&(r=0),this.orientation==="vertical"&&(r=1-r),i=this._valueMax()-this._valueMin(),s=this._valueMin()+r*i,this._trimAlignValue(s)},_start:function(e,t){var n={handle:this.handles[t],value:this.value()};return this.options.values&&this.options.values.length&&(n.value=this.values(t),n.values=this.values()),this._trigger("start",e,n)},_slide:function(e,t,n){var r,i,s;this.options.values&&this.options.values.length?(r=this.values(t?0:1),this.options.values.length===2&&this.options.range===!0&&(t===0&&n>r||t===1&&n<r)&&(n=r),n!==this.values(t)&&(i=this.values(),i[t]=n,s=this._trigger("slide",e,{handle:this.handles[t],value:n,values:i}),r=this.values(t?0:1),s!==!1&&this.values(t,n,!0))):n!==this.value()&&(s=this._trigger("slide",e,{handle:this.handles[t],value:n}),s!==!1&&this.value(n))},_stop:function(e,t){var n={handle:this.handles[t],value:this.value()};this.options.values&&this.options.values.length&&(n.value=this.values(t),n.values=this.values()),this._trigger("stop",e,n)},_change:function(e,t){if(!this._keySliding&&!this._mouseSliding){var n={handle:this.handles[t],value:this.value()};this.options.values&&this.options.values.length&&(n.value=this.values(t),n.values=this.values()),this._trigger("change",e,n)}},value:function(e){if(arguments.length){this.options.value=this._trimAlignValue(e),this._refreshValue(),this._change(null,0);return}return this._value()},values:function(t,n){var r,i,s;if(arguments.length>1){this.options.values[t]=this._trimAlignValue(n),this._refreshValue(),this._change(null,t);return}if(!arguments.length)return this._values();if(!e.isArray(arguments[0]))return this.options.values&&this.options.values.length?this._values(t):this.value();r=this.options.values,i=arguments[0];for(s=0;s<r.length;s+=1)r[s]=this._trimAlignValue(i[s]),this._change(null,s);this._refreshValue()},_setOption:function(t,n){var r,i=0;e.isArray(this.options.values)&&(i=this.options.values.length),e.Widget.prototype._setOption.apply(this,arguments);switch(t){case"disabled":n?(this.handles.filter(".ui-state-focus").blur(),this.handles.removeClass("ui-state-hover"),this.handles.prop("disabled",!0),this.element.addClass("ui-disabled")):(this.handles.prop("disabled",!1),this.element.removeClass("ui-disabled"));break;case"orientation":this._detectOrientation(),this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation),this._refreshValue();break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":this._animateOff=!0,this._refreshValue();for(r=0;r<i;r+=1)this._change(null,r);this._animateOff=!1;break;case"min":case"max":this._animateOff=!0,this._refreshValue(),this._animateOff=!1}},_value:function(){var e=this.options.value;return e=this._trimAlignValue(e),e},_values:function(e){var t,n,r;if(arguments.length)return t=this.options.values[e],t=this._trimAlignValue(t),t;n=this.options.values.slice();for(r=0;r<n.length;r+=1)n[r]=this._trimAlignValue(n[r]);return n},_trimAlignValue:function(e){if(e<=this._valueMin())return this._valueMin();if(e>=this._valueMax())return this._valueMax();var t=this.options.step>0?this.options.step:1,n=(e-this._valueMin())%t,r=e-n;return Math.abs(n)*2>=t&&(r+=n>0?t:-t),parseFloat(r.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var t,n,r,i,s,o=this.options.range,u=this.options,a=this,f=this._animateOff?!1:u.animate,l={};this.options.values&&this.options.values.length?this.handles.each(function(r){n=(a.values(r)-a._valueMin())/(a._valueMax()-a._valueMin())*100,l[a.orientation==="horizontal"?"left":"bottom"]=n+"%",e(this).stop(1,1)[f?"animate":"css"](l,u.animate),a.options.range===!0&&(a.orientation==="horizontal"?(r===0&&a.range.stop(1,1)[f?"animate":"css"]({left:n+"%"},u.animate),r===1&&a.range[f?"animate":"css"]({width:n-t+"%"},{queue:!1,duration:u.animate})):(r===0&&a.range.stop(1,1)[f?"animate":"css"]({bottom:n+"%"},u.animate),r===1&&a.range[f?"animate":"css"]({height:n-t+"%"},{queue:!1,duration:u.animate}))),t=n}):(r=this.value(),i=this._valueMin(),s=this._valueMax(),n=s!==i?(r-i)/(s-i)*100:0,l[this.orientation==="horizontal"?"left":"bottom"]=n+"%",this.handle.stop(1,1)[f?"animate":"css"](l,u.animate),o==="min"&&this.orientation==="horizontal"&&this.range.stop(1,1)[f?"animate":"css"]({width:n+"%"},u.animate),o==="max"&&this.orientation==="horizontal"&&this.range[f?"animate":"css"]({width:100-n+"%"},{queue:!1,duration:u.animate}),o==="min"&&this.orientation==="vertical"&&this.range.stop(1,1)[f?"animate":"css"]({height:n+"%"},u.animate),o==="max"&&this.orientation==="vertical"&&this.range[f?"animate":"css"]({height:100-n+"%"},{queue:!1,duration:u.animate}))}})})(jQuery);(function(e){function t(e){return function(){var t=this.element.val();e.apply(this,arguments),this._refresh(),t!==this.element.val()&&this._trigger("change")}}e.widget("ui.spinner",{version:"1.9.1",defaultElement:"<input>",widgetEventPrefix:"spin",options:{culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var t={},n=this.element;return e.each(["min","max","step"],function(e,r){var i=n.attr(r);i!==undefined&&i.length&&(t[r]=i)}),t},_events:{keydown:function(e){this._start(e)&&this._keydown(e)&&e.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(e){if(this.cancelBlur){delete this.cancelBlur;return}this._refresh(),this.previous!==this.element.val()&&this._trigger("change",e)},mousewheel:function(e,t){if(!t)return;if(!this.spinning&&!this._start(e))return!1;this._spin((t>0?1:-1)*this.options.step,e),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(e)},100),e.preventDefault()},"mousedown .ui-spinner-button":function(t){function r(){var e=this.element[0]===this.document[0].activeElement;e||(this.element.focus(),this.previous=n,this._delay(function(){this.previous=n}))}var n;n=this.element[0]===this.document[0].activeElement?this.previous:this.element.val(),t.preventDefault(),r.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,r.call(this)});if(this._start(t)===!1)return;this._repeat(null,e(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(t){if(!e(t.currentTarget).hasClass("ui-state-active"))return;if(this._start(t)===!1)return!1;this._repeat(null,e(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseleave .ui-spinner-button":"_stop"},_draw:function(){var e=this.uiSpinner=this.element.addClass("ui-spinner-input").attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml());this.element.attr("role","spinbutton"),this.buttons=e.find(".ui-spinner-button").attr("tabIndex",-1).button().removeClass("ui-corner-all"),this.buttons.height()>Math.ceil(e.height()*.5)&&e.height()>0&&e.height(e.height()),this.options.disabled&&this.disable()},_keydown:function(t){var n=this.options,r=e.ui.keyCode;switch(t.keyCode){case r.UP:return this._repeat(null,1,t),!0;case r.DOWN:return this._repeat(null,-1,t),!0;case r.PAGE_UP:return this._repeat(null,n.page,t),!0;case r.PAGE_DOWN:return this._repeat(null,-n.page,t),!0}return!1},_uiSpinnerHtml:function(){return"<span class='ui-spinner ui-widget ui-widget-content ui-corner-all'></span>"},_buttonHtml:function(){return"<a class='ui-spinner-button ui-spinner-up ui-corner-tr'><span class='ui-icon "+this.options.icons.up+"'>&#9650;</span>"+"</a>"+"<a class='ui-spinner-button ui-spinner-down ui-corner-br'>"+"<span class='ui-icon "+this.options.icons.down+"'>&#9660;</span>"+"</a>"},_start:function(e){return!this.spinning&&this._trigger("start",e)===!1?!1:(this.counter||(this.counter=1),this.spinning=!0,!0)},_repeat:function(e,t,n){e=e||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,t,n)},e),this._spin(t*this.options.step,n)},_spin:function(e,t){var n=this.value()||0;this.counter||(this.counter=1),n=this._adjustValue(n+e*this._increment(this.counter));if(!this.spinning||this._trigger("spin",t,{value:n})!==!1)this._value(n),this.counter++},_increment:function(t){var n=this.options.incremental;return n?e.isFunction(n)?n(t):Math.floor(t*t*t/5e4-t*t/500+17*t/200+1):1},_precision:function(){var e=this._precisionOf(this.options.step);return this.options.min!==null&&(e=Math.max(e,this._precisionOf(this.options.min))),e},_precisionOf:function(e){var t=e.toString(),n=t.indexOf(".");return n===-1?0:t.length-n-1},_adjustValue:function(e){var t,n,r=this.options;return t=r.min!==null?r.min:0,n=e-t,n=Math.round(n/r.step)*r.step,e=t+n,e=parseFloat(e.toFixed(this._precision())),r.max!==null&&e>r.max?r.max:r.min!==null&&e<r.min?r.min:e},_stop:function(e){if(!this.spinning)return;clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",e)},_setOption:function(e,t){if(e==="culture"||e==="numberFormat"){var n=this._parse(this.element.val());this.options[e]=t,this.element.val(this._format(n));return}(e==="max"||e==="min"||e==="step")&&typeof t=="string"&&(t=this._parse(t)),this._super(e,t),e==="disabled"&&(t?(this.element.prop("disabled",!0),this.buttons.button("disable")):(this.element.prop("disabled",!1),this.buttons.button("enable")))},_setOptions:t(function(e){this._super(e),this._value(this.element.val())}),_parse:function(e){return typeof e=="string"&&e!==""&&(e=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(e,10,this.options.culture):+e),e===""||isNaN(e)?null:e},_format:function(e){return e===""?"":window.Globalize&&this.options.numberFormat?Globalize.format(e,this.options.numberFormat,this.options.culture):e},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},_value:function(e,t){var n;e!==""&&(n=this._parse(e),n!==null&&(t||(n=this._adjustValue(n)),e=this._format(n))),this.element.val(e),this._refresh()},_destroy:function(){this.element.removeClass("ui-spinner-input").prop("disabled",!1).removeAttr("autocomplete").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:t(function(e){this._stepUp(e)}),_stepUp:function(e){this._spin((e||1)*this.options.step)},stepDown:t(function(e){this._stepDown(e)}),_stepDown:function(e){this._spin((e||1)*-this.options.step)},pageUp:t(function(e){this._stepUp((e||1)*this.options.page)}),pageDown:t(function(e){this._stepDown((e||1)*this.options.page)}),value:function(e){if(!arguments.length)return this._parse(this.element.val());t(this._value).call(this,e)},widget:function(){return this.uiSpinner}})})(jQuery);(function(e,t){function i(){return++n}function s(e){return e.hash.length>1&&e.href.replace(r,"")===location.href.replace(r,"")}var n=0,r=/#.*$/;e.widget("ui.tabs",{version:"1.9.1",delay:300,options:{active:null,collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_create:function(){var t=this,n=this.options,r=n.active,i=location.hash.substring(1);this.running=!1,this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all").toggleClass("ui-tabs-collapsible",n.collapsible).delegate(".ui-tabs-nav > li","mousedown"+this.eventNamespace,function(t){e(this).is(".ui-state-disabled")&&t.preventDefault()}).delegate(".ui-tabs-anchor","focus"+this.eventNamespace,function(){e(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this._processTabs();if(r===null){i&&this.tabs.each(function(t,n){if(e(n).attr("aria-controls")===i)return r=t,!1}),r===null&&(r=this.tabs.index(this.tabs.filter(".ui-tabs-active")));if(r===null||r===-1)r=this.tabs.length?0:!1}r!==!1&&(r=this.tabs.index(this.tabs.eq(r)),r===-1&&(r=n.collapsible?!1:0)),n.active=r,!n.collapsible&&n.active===!1&&this.anchors.length&&(n.active=0),e.isArray(n.disabled)&&(n.disabled=e.unique(n.disabled.concat(e.map(this.tabs.filter(".ui-state-disabled"),function(e){return t.tabs.index(e)}))).sort()),this.options.active!==!1&&this.anchors.length?this.active=this._findActive(this.options.active):this.active=e(),this._refresh(),this.active.length&&this.load(n.active)},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):e()}},_tabKeydown:function(t){var n=e(this.document[0].activeElement).closest("li"),r=this.tabs.index(n),i=!0;if(this._handlePageNav(t))return;switch(t.keyCode){case e.ui.keyCode.RIGHT:case e.ui.keyCode.DOWN:r++;break;case e.ui.keyCode.UP:case e.ui.keyCode.LEFT:i=!1,r--;break;case e.ui.keyCode.END:r=this.anchors.length-1;break;case e.ui.keyCode.HOME:r=0;break;case e.ui.keyCode.SPACE:t.preventDefault(),clearTimeout(this.activating),this._activate(r);return;case e.ui.keyCode.ENTER:t.preventDefault(),clearTimeout(this.activating),this._activate(r===this.options.active?!1:r);return;default:return}t.preventDefault(),clearTimeout(this.activating),r=this._focusNextTab(r,i),t.ctrlKey||(n.attr("aria-selected","false"),this.tabs.eq(r).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",r)},this.delay))},_panelKeydown:function(t){if(this._handlePageNav(t))return;t.ctrlKey&&t.keyCode===e.ui.keyCode.UP&&(t.preventDefault(),this.active.focus())},_handlePageNav:function(t){if(t.altKey&&t.keyCode===e.ui.keyCode.PAGE_UP)return this._activate(this._focusNextTab(this.options.active-1,!1)),!0;if(t.altKey&&t.keyCode===e.ui.keyCode.PAGE_DOWN)return this._activate(this._focusNextTab(this.options.active+1,!0)),!0},_findNextTab:function(t,n){function i(){return t>r&&(t=0),t<0&&(t=r),t}var r=this.tabs.length-1;while(e.inArray(i(),this.options.disabled)!==-1)t=n?t+1:t-1;return t},_focusNextTab:function(e,t){return e=this._findNextTab(e,t),this.tabs.eq(e).focus(),e},_setOption:function(e,t){if(e==="active"){this._activate(t);return}if(e==="disabled"){this._setupDisabled(t);return}this._super(e,t),e==="collapsible"&&(this.element.toggleClass("ui-tabs-collapsible",t),!t&&this.options.active===!1&&this._activate(0)),e==="event"&&this._setupEvents(t),e==="heightStyle"&&this._setupHeightStyle(t)},_tabId:function(e){return e.attr("aria-controls")||"ui-tabs-"+i()},_sanitizeSelector:function(e){return e?e.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var t=this.options,n=this.tablist.children(":has(a[href])");t.disabled=e.map(n.filter(".ui-state-disabled"),function(e){return n.index(e)}),this._processTabs(),t.active===!1||!this.anchors.length?(t.active=!1,this.active=e()):this.active.length&&!e.contains(this.tablist[0],this.active[0])?this.tabs.length===t.disabled.length?(t.active=!1,this.active=e()):this._activate(this._findNextTab(Math.max(0,t.active-1),!1)):t.active=this.tabs.index(this.active),this._refresh()},_refresh:function(){this._setupDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-expanded":"false","aria-hidden":"true"}),this.active.length?(this.active.addClass("ui-tabs-active ui-state-active").attr({"aria-selected":"true",tabIndex:0}),this._getPanelForTab(this.active).show().attr({"aria-expanded":"true","aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var t=this;this.tablist=this._getList().addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").attr("role","tablist"),this.tabs=this.tablist.find("> li:has(a[href])").addClass("ui-state-default ui-corner-top").attr({role:"tab",tabIndex:-1}),this.anchors=this.tabs.map(function(){return e("a",this)[0]}).addClass("ui-tabs-anchor").attr({role:"presentation",tabIndex:-1}),this.panels=e(),this.anchors.each(function(n,r){var i,o,u,a=e(r).uniqueId().attr("id"),f=e(r).closest("li"),l=f.attr("aria-controls");s(r)?(i=r.hash,o=t.element.find(t._sanitizeSelector(i))):(u=t._tabId(f),i="#"+u,o=t.element.find(i),o.length||(o=t._createPanel(u),o.insertAfter(t.panels[n-1]||t.tablist)),o.attr("aria-live","polite")),o.length&&(t.panels=t.panels.add(o)),l&&f.data("ui-tabs-aria-controls",l),f.attr({"aria-controls":i.substring(1),"aria-labelledby":a}),o.attr("aria-labelledby",a)}),this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").attr("role","tabpanel")},_getList:function(){return this.element.find("ol,ul").eq(0)},_createPanel:function(t){return e("<div>").attr("id",t).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",!0)},_setupDisabled:function(t){e.isArray(t)&&(t.length?t.length===this.anchors.length&&(t=!0):t=!1);for(var n=0,r;r=this.tabs[n];n++)t===!0||e.inArray(n,t)!==-1?e(r).addClass("ui-state-disabled").attr("aria-disabled","true"):e(r).removeClass("ui-state-disabled").removeAttr("aria-disabled");this.options.disabled=t},_setupEvents:function(t){var n={click:function(e){e.preventDefault()}};t&&e.each(t.split(" "),function(e,t){n[t]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(this.anchors,n),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(t){var n,r,i=this.element.parent();t==="fill"?(e.support.minHeight||(r=i.css("overflow"),i.css("overflow","hidden")),n=i.height(),this.element.siblings(":visible").each(function(){var t=e(this),r=t.css("position");if(r==="absolute"||r==="fixed")return;n-=t.outerHeight(!0)}),r&&i.css("overflow",r),this.element.children().not(this.panels).each(function(){n-=e(this).outerHeight(!0)}),this.panels.each(function(){e(this).height(Math.max(0,n-e(this).innerHeight()+e(this).height()))}).css("overflow","auto")):t==="auto"&&(n=0,this.panels.each(function(){n=Math.max(n,e(this).height("").height())}).height(n))},_eventHandler:function(t){var n=this.options,r=this.active,i=e(t.currentTarget),s=i.closest("li"),o=s[0]===r[0],u=o&&n.collapsible,a=u?e():this._getPanelForTab(s),f=r.length?this._getPanelForTab(r):e(),l={oldTab:r,oldPanel:f,newTab:u?e():s,newPanel:a};t.preventDefault();if(s.hasClass("ui-state-disabled")||s.hasClass("ui-tabs-loading")||this.running||o&&!n.collapsible||this._trigger("beforeActivate",t,l)===!1)return;n.active=u?!1:this.tabs.index(s),this.active=o?e():s,this.xhr&&this.xhr.abort(),!f.length&&!a.length&&e.error("jQuery UI Tabs: Mismatching fragment identifier."),a.length&&this.load(this.tabs.index(s),t),this._toggle(t,l)},_toggle:function(t,n){function o(){r.running=!1,r._trigger("activate",t,n)}function u(){n.newTab.closest("li").addClass("ui-tabs-active ui-state-active"),i.length&&r.options.show?r._show(i,r.options.show,o):(i.show(),o())}var r=this,i=n.newPanel,s=n.oldPanel;this.running=!0,s.length&&this.options.hide?this._hide(s,this.options.hide,function(){n.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),u()}):(n.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),s.hide(),u()),s.attr({"aria-expanded":"false","aria-hidden":"true"}),n.oldTab.attr("aria-selected","false"),i.length&&s.length?n.oldTab.attr("tabIndex",-1):i.length&&this.tabs.filter(function(){return e(this).attr("tabIndex")===0}).attr("tabIndex",-1),i.attr({"aria-expanded":"true","aria-hidden":"false"}),n.newTab.attr({"aria-selected":"true",tabIndex:0})},_activate:function(t){var n,r=this._findActive(t);if(r[0]===this.active[0])return;r.length||(r=this.active),n=r.find(".ui-tabs-anchor")[0],this._eventHandler({target:n,currentTarget:n,preventDefault:e.noop})},_findActive:function(t){return t===!1?e():this.tabs.eq(t)},_getIndex:function(e){return typeof e=="string"&&(e=this.anchors.index(this.anchors.filter("[href$='"+e+"']"))),e},_destroy:function(){this.xhr&&this.xhr.abort(),this.element.removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible"),this.tablist.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").removeAttr("role"),this.anchors.removeClass("ui-tabs-anchor").removeAttr("role").removeAttr("tabIndex").removeData("href.tabs").removeData("load.tabs").removeUniqueId(),this.tabs.add(this.panels).each(function(){e.data(this,"ui-tabs-destroy")?e(this).remove():e(this).removeClass("ui-state-default ui-state-active ui-state-disabled ui-corner-top ui-corner-bottom ui-widget-content ui-tabs-active ui-tabs-panel").removeAttr("tabIndex").removeAttr("aria-live").removeAttr("aria-busy").removeAttr("aria-selected").removeAttr("aria-labelledby").removeAttr("aria-hidden").removeAttr("aria-expanded").removeAttr("role")}),this.tabs.each(function(){var t=e(this),n=t.data("ui-tabs-aria-controls");n?t.attr("aria-controls",n):t.removeAttr("aria-controls")}),this.options.heightStyle!=="content"&&this.panels.css("height","")},enable:function(n){var r=this.options.disabled;if(r===!1)return;n===t?r=!1:(n=this._getIndex(n),e.isArray(r)?r=e.map(r,function(e){return e!==n?e:null}):r=e.map(this.tabs,function(e,t){return t!==n?t:null})),this._setupDisabled(r)},disable:function(n){var r=this.options.disabled;if(r===!0)return;if(n===t)r=!0;else{n=this._getIndex(n);if(e.inArray(n,r)!==-1)return;e.isArray(r)?r=e.merge([n],r).sort():r=[n]}this._setupDisabled(r)},load:function(t,n){t=this._getIndex(t);var r=this,i=this.tabs.eq(t),o=i.find(".ui-tabs-anchor"),u=this._getPanelForTab(i),a={tab:i,panel:u};if(s(o[0]))return;this.xhr=e.ajax(this._ajaxSettings(o,n,a)),this.xhr&&this.xhr.statusText!=="canceled"&&(i.addClass("ui-tabs-loading"),u.attr("aria-busy","true"),this.xhr.success(function(e){setTimeout(function(){u.html(e),r._trigger("load",n,a)},1)}).complete(function(e,t){setTimeout(function(){t==="abort"&&r.panels.stop(!1,!0),i.removeClass("ui-tabs-loading"),u.removeAttr("aria-busy"),e===r.xhr&&delete r.xhr},1)}))},_ajaxSettings:function(t,n,r){var i=this;return{url:t.attr("href"),beforeSend:function(t,s){return i._trigger("beforeLoad",n,e.extend({jqXHR:t,ajaxSettings:s},r))}}},_getPanelForTab:function(t){var n=e(t).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+n))}}),e.uiBackCompat!==!1&&(e.ui.tabs.prototype._ui=function(e,t){return{tab:e,panel:t,index:this.anchors.index(e)}},e.widget("ui.tabs",e.ui.tabs,{url:function(e,t){this.anchors.eq(e).attr("href",t)}}),e.widget("ui.tabs",e.ui.tabs,{options:{ajaxOptions:null,cache:!1},_create:function(){this._super();var t=this;this._on({tabsbeforeload:function(n,r){if(e.data(r.tab[0],"cache.tabs")){n.preventDefault();return}r.jqXHR.success(function(){t.options.cache&&e.data(r.tab[0],"cache.tabs",!0)})}})},_ajaxSettings:function(t,n,r){var i=this.options.ajaxOptions;return e.extend({},i,{error:function(e,t){try{i.error(e,t,r.tab.closest("li").index(),r.tab[0])}catch(n){}}},this._superApply(arguments))},_setOption:function(e,t){e==="cache"&&t===!1&&this.anchors.removeData("cache.tabs"),this._super(e,t)},_destroy:function(){this.anchors.removeData("cache.tabs"),this._super()},url:function(e){this.anchors.eq(e).removeData("cache.tabs"),this._superApply(arguments)}}),e.widget("ui.tabs",e.ui.tabs,{abort:function(){this.xhr&&this.xhr.abort()}}),e.widget("ui.tabs",e.ui.tabs,{options:{spinner:"<em>Loading&#8230;</em>"},_create:function(){this._super(),this._on({tabsbeforeload:function(e,t){if(e.target!==this.element[0]||!this.options.spinner)return;var n=t.tab.find("span"),r=n.html();n.html(this.options.spinner),t.jqXHR.complete(function(){n.html(r)})}})}}),e.widget("ui.tabs",e.ui.tabs,{options:{enable:null,disable:null},enable:function(t){var n=this.options,r;if(t&&n.disabled===!0||e.isArray(n.disabled)&&e.inArray(t,n.disabled)!==-1)r=!0;this._superApply(arguments),r&&this._trigger("enable",null,this._ui(this.anchors[t],this.panels[t]))},disable:function(t){var n=this.options,r;if(t&&n.disabled===!1||e.isArray(n.disabled)&&e.inArray(t,n.disabled)===-1)r=!0;this._superApply(arguments),r&&this._trigger("disable",null,this._ui(this.anchors[t],this.panels[t]))}}),e.widget("ui.tabs",e.ui.tabs,{options:{add:null,remove:null,tabTemplate:"<li><a href='#{href}'><span>#{label}</span></a></li>"},add:function(n,r,i){i===t&&(i=this.anchors.length);var s,o,u=this.options,a=e(u.tabTemplate.replace(/#\{href\}/g,n).replace(/#\{label\}/g,r)),f=n.indexOf("#")?this._tabId(a):n.replace("#","");return a.addClass("ui-state-default ui-corner-top").data("ui-tabs-destroy",!0),a.attr("aria-controls",f),s=i>=this.tabs.length,o=this.element.find("#"+f),o.length||(o=this._createPanel(f),s?i>0?o.insertAfter(this.panels.eq(-1)):o.appendTo(this.element):o.insertBefore(this.panels[i])),o.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").hide(),s?a.appendTo(this.tablist):a.insertBefore(this.tabs[i]),u.disabled=e.map(u.disabled,function(e){return e>=i?++e:e}),this.refresh(),this.tabs.length===1&&u.active===!1&&this.option("active",0),this._trigger("add",null,this._ui(this.anchors[i],this.panels[i])),this},remove:function(t){t=this._getIndex(t);var n=this.options,r=this.tabs.eq(t).remove(),i=this._getPanelForTab(r).remove();return r.hasClass("ui-tabs-active")&&this.anchors.length>2&&this._activate(t+(t+1<this.anchors.length?1:-1)),n.disabled=e.map(e.grep(n.disabled,function(e){return e!==t}),function(e){return e>=t?--e:e}),this.refresh(),this._trigger("remove",null,this._ui(r.find("a")[0],i[0])),this}}),e.widget("ui.tabs",e.ui.tabs,{length:function(){return this.anchors.length}}),e.widget("ui.tabs",e.ui.tabs,{options:{idPrefix:"ui-tabs-"},_tabId:function(t){var n=t.is("li")?t.find("a[href]"):t;return n=n[0],e(n).closest("li").attr("aria-controls")||n.title&&n.title.replace(/\s/g,"_").replace(/[^\w\u00c0-\uFFFF\-]/g,"")||this.options.idPrefix+i()}}),e.widget("ui.tabs",e.ui.tabs,{options:{panelTemplate:"<div></div>"},_createPanel:function(t){return e(this.options.panelTemplate).attr("id",t).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",!0)}}),e.widget("ui.tabs",e.ui.tabs,{_create:function(){var e=this.options;e.active===null&&e.selected!==t&&(e.active=e.selected===-1?!1:e.selected),this._super(),e.selected=e.active,e.selected===!1&&(e.selected=-1)},_setOption:function(e,t){if(e!=="selected")return this._super(e,t);var n=this.options;this._super("active",t===-1?!1:t),n.selected=n.active,n.selected===!1&&(n.selected=-1)},_eventHandler:function(){this._superApply(arguments),this.options.selected=this.options.active,this.options.selected===!1&&(this.options.selected=-1)}}),e.widget("ui.tabs",e.ui.tabs,{options:{show:null,select:null},_create:function(){this._super(),this.options.active!==!1&&this._trigger("show",null,this._ui(this.active.find(".ui-tabs-anchor")[0],this._getPanelForTab(this.active)[0]))},_trigger:function(e,t,n){var r=this._superApply(arguments);return r?(e==="beforeActivate"&&n.newTab.length?r=this._super("select",t,{tab:n.newTab.find(".ui-tabs-anchor")[0],panel:n.newPanel[0],index:n.newTab.closest("li").index()}):e==="activate"&&n.newTab.length&&(r=this._super("show",t,{tab:n.newTab.find(".ui-tabs-anchor")[0],panel:n.newPanel[0],index:n.newTab.closest("li").index()})),r):!1}}),e.widget("ui.tabs",e.ui.tabs,{select:function(e){e=this._getIndex(e);if(e===-1){if(!this.options.collapsible||this.options.selected===-1)return;e=this.options.selected}this.anchors.eq(e).trigger(this.options.event+this.eventNamespace)}}),function(){var t=0;e.widget("ui.tabs",e.ui.tabs,{options:{cookie:null},_create:function(){var e=this.options,t;e.active==null&&e.cookie&&(t=parseInt(this._cookie(),10),t===-1&&(t=!1),e.active=t),this._super()},_cookie:function(n){var r=[this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+ ++t)];return arguments.length&&(r.push(n===!1?-1:n),r.push(this.options.cookie)),e.cookie.apply(null,r)},_refresh:function(){this._super(),this.options.cookie&&this._cookie(this.options.active,this.options.cookie)},_eventHandler:function(){this._superApply(arguments),this.options.cookie&&this._cookie(this.options.active,this.options.cookie)},_destroy:function(){this._super(),this.options.cookie&&this._cookie(null,this.options.cookie)}})}(),e.widget("ui.tabs",e.ui.tabs,{_trigger:function(t,n,r){var i=e.extend({},r);return t==="load"&&(i.panel=i.panel[0],i.tab=i.tab.find(".ui-tabs-anchor")[0]),this._super(t,n,i)}}),e.widget("ui.tabs",e.ui.tabs,{options:{fx:null},_getFx:function(){var t,n,r=this.options.fx;return r&&(e.isArray(r)?(t=r[0],n=r[1]):t=n=r),r?{show:n,hide:t}:null},_toggle:function(e,t){function o(){n.running=!1,n._trigger("activate",e,t)}function u(){t.newTab.closest("li").addClass("ui-tabs-active ui-state-active"),r.length&&s.show?r.animate(s.show,s.show.duration,function(){o()}):(r.show(),o())}var n=this,r=t.newPanel,i=t.oldPanel,s=this._getFx();if(!s)return this._super(e,t);n.running=!0,i.length&&s.hide?i.animate(s.hide,s.hide.duration,function(){t.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),u()}):(t.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),i.hide(),u())}}))})(jQuery);
 
 
 
 
 
 
js/test.html DELETED
@@ -1,14 +0,0 @@
1
- <script src="tinycolor-min.js"></script>
2
-
3
- <script>
4
-
5
- function lighten(color) {
6
- var hsv = color.toHsv();
7
- hsv.v = (hsv.v + 0.3) % 1;
8
- return tinycolor(hsv);
9
- }
10
-
11
- blue = tinycolor("blue");
12
- console.log(lighten(blue).toHexString());
13
-
14
- </script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
langs/arduino/arduino.txt CHANGED
@@ -8,15 +8,17 @@
8
  COMMENT (?default)
9
  PREPROCESSOR (?default)
10
  STRING (?default)
 
 
11
 
12
- STATEMENT (?default)|\b(?alt:statement.txt)\b
13
  RESERVED (?default)|\b(?alt:reserved.txt)\b|\b(?alt:reserved2.txt)\b
14
- TYPE (?default)
15
  MODIFIER (?default)|\b(?alt:modifier.txt)\b
16
 
17
- ENTITY (?default)
18
  VARIABLE (?default)
19
  CONSTANT ((?-i)\b[A-Z_]*\b(?i))|((?default))
20
  IDENTIFIER (?default)
21
  OPERATOR (?default)
22
- SYMBOL (?default)
8
  COMMENT (?default)
9
  PREPROCESSOR (?default)
10
  STRING (?default)
11
+
12
+ KEYWORD \b(?alt:keywords.txt)\b
13
 
14
+ STATEMENT \b(?alt:statement.txt)\b
15
  RESERVED (?default)|\b(?alt:reserved.txt)\b|\b(?alt:reserved2.txt)\b
16
+ TYPE \b(?alt:types.txt)\b
17
  MODIFIER (?default)|\b(?alt:modifier.txt)\b
18
 
19
+ ENTITY \b(?alt:enity.txt)\b
20
  VARIABLE (?default)
21
  CONSTANT ((?-i)\b[A-Z_]*\b(?i))|((?default))
22
  IDENTIFIER (?default)
23
  OPERATOR (?default)
24
+ SYMBOL (?default)
langs/arduino/enity.txt ADDED
@@ -0,0 +1,2 @@
 
 
1
+ println
2
+ print
langs/arduino/keywords.txt ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ INPUT
2
+ INPUT_PULLUP
3
+ OUTPUT
4
+ LOW
5
+ HIGH
6
+ false
7
+ true
langs/arduino/statement.txt CHANGED
@@ -1,2 +1,53 @@
1
  setup
2
  loop
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  setup
2
  loop
3
+ sizeof
4
+ if
5
+ else
6
+ for
7
+ switch
8
+ case
9
+ while
10
+ do
11
+ break
12
+ continue
13
+ return
14
+ goto
15
+ pinMode
16
+ digitalWrite
17
+ digitalRead
18
+ analogReference
19
+ analogRead
20
+ analogWrite
21
+ tone
22
+ noTone
23
+ shiftOut
24
+ shiftIn
25
+ pulseInO
26
+ millis
27
+ micros
28
+ delay
29
+ delayMicroseconds
30
+ min
31
+ max
32
+ abs
33
+ constrain
34
+ map
35
+ pow
36
+ sqrt
37
+ sin
38
+ cos
39
+ tan
40
+ randomSeed
41
+ random
42
+ lowByte
43
+ highByte
44
+ bitRead
45
+ bitWrite
46
+ bitSet
47
+ bitClear
48
+ bit
49
+ attachInterrupt
50
+ detachInterrupt
51
+ interrupts
52
+ noInterrupts
53
+ serial
langs/arduino/types.txt ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ void
2
+ boolean
3
+ char
4
+ unsigned
5
+ byte
6
+ int
7
+ word
8
+ long
9
+ float
10
+ double
11
+ string
12
+ String
13
+ array
langs/default/default.txt CHANGED
@@ -7,7 +7,7 @@
7
 
8
  COMMENT (/\*.*?\*/)|(//.*?$)
9
  PREPROCESSOR (#.*?$)
10
- STRING ((?<!\\)".*?(?<!\\)")|((?<!\\)'.*?(?<!\\)')
11
 
12
  STATEMENT \b(?alt:statement.txt)\b
13
  RESERVED \b(?<![:\.])(?alt:reserved.txt)\b
7
 
8
  COMMENT (/\*.*?\*/)|(//.*?$)
9
  PREPROCESSOR (#.*?$)
10
+ STRING ((?<!\\)".*?")|((?<!\\)'.*?')
11
 
12
  STATEMENT \b(?alt:statement.txt)\b
13
  RESERVED \b(?<![:\.])(?alt:reserved.txt)\b
langs/ps/ps.txt CHANGED
@@ -5,16 +5,16 @@
5
  NAME PowerShell
6
  VERSION 1.8.2
7
 
8
- COMMENT (#.*?$)|(<#.*#>)
9
- STRING (?default)
10
-
11
- FUNCTIONS:RESERVED \b(?alt:reserved.txt)\b
12
- STATEMENT \b(?alt:statement.txt)\b
13
- TYPE \b(?alt:type.txt)\b
14
 
15
- ENTITY (?default)
16
- VARIABLE \$[A-Za-z_]\w*\b
17
- OPTION:VARIABLE -\w+\b
18
  IDENTIFIER (?default)
19
  CONSTANT (?default)
20
  OPERATOR (?default)
5
  NAME PowerShell
6
  VERSION 1.8.2
7
 
8
+ COMMENT (#.*?$)|(<#.*#>)
9
+ STRING (?default)
10
+
11
+ FUNCTIONS:RESERVED (\b(?alt:reserved.txt)\b)|((?-i)[A-Z]\w+-[A-Z]\w+(?i))
12
+ STATEMENT \b(?alt:statement.txt)\b
13
+ TYPE \b(?alt:type.txt)\b
14
 
15
+ ENTITY (?default)
16
+ VARIABLE \$[A-Za-z_]\w*\b
17
+ OPTION:VARIABLE -\w+\b
18
  IDENTIFIER (?default)
19
  CONSTANT (?default)
20
  OPERATOR (?default)
langs/python/python.txt CHANGED
@@ -8,7 +8,7 @@
8
  VERSION 1.1
9
 
10
  COMMENT (#.*?$)
11
- STRING (?:(?<!\\)""".*?(?<!\\)""")|(?:(?<!\\)'''.*?(?<!\\)''')|((?<!\\)".*?(?<!\\)")|((?<!\\)'.*?(?<!\\)')
12
 
13
  FUNCTION:KEYWORD \b(?alt:function.txt)\b
14
  MODULE:KEYWORD \b(?alt:module.txt)\b
8
  VERSION 1.1
9
 
10
  COMMENT (#.*?$)
11
+ STRING (?:(?<!\\)""".*?(?<!\\)""")|(?:(?<!\\)'''.*?(?<!\\)''')|(?default)
12
 
13
  FUNCTION:KEYWORD \b(?alt:function.txt)\b
14
  MODULE:KEYWORD \b(?alt:module.txt)\b
langs/r/r.txt ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ### R LANGUAGE ###
2
+
3
+ # ELEMENT_NAME [optional-css-class] REGULAR_EXPRESSION
4
+
5
+ NAME R
6
+ VERSION 1.0.0
7
+
8
+ COMMENT #.*?$
9
+ STRING (?default)
10
+
11
+ STATEMENT (?default)|\b(?alt:statement.txt)\b
12
+ RESERVED (?default)|\b(?alt:reserved.txt)\b
13
+ TYPE (?default)
14
+ TYPE_LITERAL:TYPE (?i)NA|T|F|Inf|NaN(?-i)
15
+
16
+ ENTITY (?default)
17
+ VARIABLE (?default)
18
+ IDENTIFIER (?default)
19
+ CONSTANT (?default)
20
+ OPERATOR (?default)
21
+ SYMBOL (?default)
langs/r/reserved.txt ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ stop
2
+ warning
3
+ require
4
+ library
5
+ attach
6
+ detach
7
+ source
8
+ setMethod
9
+ setGeneric
10
+ setGroupGeneric
11
+ setClass
langs/r/statement.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ repeat
2
+ tryCatch
3
+
langs/r/type.txt ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ _Imaginary
2
+ _Complex
3
+ intmax_t
4
+ struct
5
+ union
6
+ _Bool
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=AW99E
4
  License: GPLv2 or later
5
  Tags: syntax highlighter, syntax, highlighter, highlighting, crayon, code highlighter, bbpress
6
  Requires at least: 3.0
7
- Tested up to: 3.5
8
  Stable tag: trunk
9
 
10
  Syntax Highlighter supporting multiple languages, themes, fonts, highlighting from a URL, local file or post text.
@@ -107,6 +107,7 @@ See the <a href="http://aramk.com/projects/crayon-language-file-specification/"
107
  * PostgreSQL (thanks to <a href="http://bitorchestra.com/" target="_blank">Bitorchestra</a>)
108
  * PowerShell
109
  * Python
 
110
  * Ruby
111
  * Scheme (thanks to <a href="https://github.com/harry75369" target="_blank">Harry75369</a>)
112
  * Shell (Unix)
@@ -182,6 +183,8 @@ A handful of articles from others written about Crayon, thanks guys!
182
 
183
  Thanks to all those who donate to my project, your support keeps the Crayons going!
184
 
 
 
185
  * Nico Hartung, (http://www.loggn.de/), Germany
186
  * Joseph DeVenuta, USA
187
  * Iván Prego García, Spain
@@ -219,43 +222,7 @@ Thanks to all those who donate to my project, your support keeps the Crayons goi
219
 
220
  == Frequently Asked Questions ==
221
 
222
- = How do I use the Tag Editor? =
223
-
224
- The <a href="http://aramk.com/projects/crayon-tag-editor/" target="_blank">Tag Editor</a> provides a dialog box to add Crayons easily.
225
-
226
- = How do I use it manually? =
227
-
228
- <code>[crayon lang="php"] your code [/crayon]</code>
229
- <code>[crayon url="http://example.com/code.txt" /]</code>
230
- <code>[crayon url="/relative-path-added-to-local-path-defined-in-settings/code.java" /]</code>
231
-
232
- You can use &lt;pre&gt;:
233
-
234
- <code>&lt;pre lang="php"&gt; your code &lt;/pre&gt;</code>
235
-
236
- You can use an HTML5 compliant &lt;pre&gt; (recommended):
237
-
238
- <code>&lt;pre class="lang:php mark:1-4,3" title="some title"&gt; your code &lt;/pre&gt;</code>
239
-
240
- You can also use Mini Tags:
241
-
242
- <code>[php theme="twilight"]your code[/php]</code>
243
-
244
- <code>[php url="https://raw.github.com/somefile.php" /]</code>
245
-
246
- Please see the <a href="http://aramk.com/projects/crayon-syntax-highlighter/" target="_blank">documentation</a> for more details.
247
-
248
- = Why are the controls not working? =
249
-
250
- Make sure jQuery is included in your theme ONCE and before all its dependents (see Installation).
251
-
252
- = Why am I only seeing [crayon-3ffr7fa34a321/]? =
253
-
254
- Your theme is being naughty. Find where it prints the content/excerpt on that page in the PHP and make sure to add this line before printing:
255
-
256
- $output = apply_filters('the_content', $output);
257
-
258
- This ensures that the content can be filtered by plugins, such as Crayon. Otherwise, Crayon detects and creates the code but can't replace those funny looking tags in the content.
259
 
260
  = Support =
261
 
@@ -271,6 +238,30 @@ Contact me at http://twitter.com/crayonsyntax or crayon.syntax@gmail.com.
271
 
272
  == Changelog ==
273
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
274
  = 2.1.0 =
275
  * ADDED:
276
  * Arduino language
4
  License: GPLv2 or later
5
  Tags: syntax highlighter, syntax, highlighter, highlighting, crayon, code highlighter, bbpress
6
  Requires at least: 3.0
7
+ Tested up to: 3.5.1
8
  Stable tag: trunk
9
 
10
  Syntax Highlighter supporting multiple languages, themes, fonts, highlighting from a URL, local file or post text.
107
  * PostgreSQL (thanks to <a href="http://bitorchestra.com/" target="_blank">Bitorchestra</a>)
108
  * PowerShell
109
  * Python
110
+ * R
111
  * Ruby
112
  * Scheme (thanks to <a href="https://github.com/harry75369" target="_blank">Harry75369</a>)
113
  * Shell (Unix)
183
 
184
  Thanks to all those who donate to my project, your support keeps the Crayons going!
185
 
186
+ * Raam Dev, (http://raamdev.com/), USA
187
+ * Scot Ranney, (http://scotsscripts.com/), USA
188
  * Nico Hartung, (http://www.loggn.de/), Germany
189
  * Joseph DeVenuta, USA
190
  * Iván Prego García, Spain
222
 
223
  == Frequently Asked Questions ==
224
 
225
+ Please see the <a href="http://aramk.com/projects/crayon-syntax-highlighter/" target="_blank">documentation</a> for all the details.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
226
 
227
  = Support =
228
 
238
 
239
  == Changelog ==
240
 
241
+ = 2.1.2 =
242
+ * ADDED:
243
+ * R language
244
+ * TinyMCE is automatically added to the comment box when the Tag Editor is enabled on the frontend
245
+ * SQL Management Studio 2012 Theme
246
+ * FIXED:
247
+ * bbPress Tag Editor button wasn't showing
248
+ * Slashes are now added to post content before legacy tag conversion, since wp_update_post removes them
249
+ * PowerShell improvements
250
+ * Empty directory path on some pages
251
+ * Expanding uses absolute positioning, so it will stay on top of other elements
252
+ * When expanded the toolbar controls move left for easier toggling
253
+ * CSS conflicts with wordpress themes causing line-height and font-size overrides to be ignored
254
+
255
+ = 2.1.1 =
256
+ * ADDED:
257
+ * Arduino IDE theme thanks to LukaszWiecek (http://wordpress.org/support/topic/arduino-code-support)
258
+ * User Fonts can be added to wp-content/crayon-syntax-highlighter/uploads/fonts/somefont.css
259
+ * FIXED:
260
+ * Issues with resource management, preventing loading of user CSS themes and performing theme editor functions
261
+ * C#, C++ id issues preventing them loading
262
+ * Tag Editor duplicate loading issue prevented close dialog on HTML view
263
+ * Arduino language updates thanks to LukaszWiecek (http://wordpress.org/support/topic/arduino-code-support)
264
+
265
  = 2.1.0 =
266
  * ADDED:
267
  * Arduino language
themes/arduino-ide/arduino-ide.css ADDED
@@ -0,0 +1,171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ Name: Arduino IDE
3
+ Description: Version: 1.0
4
+ Author: Łukasz Więcek
5
+ Url: http://majsterkowo.pl
6
+ */
7
+ .crayon-theme-arduino-ide {
8
+ border-width: 1px !important;
9
+ text-shadow: none !important;
10
+ background: #fdfdfd !important;
11
+ border-color: #ddd !important;
12
+ border-style: solid !important;
13
+ }
14
+ .crayon-theme-arduino-ide-inline {
15
+ border-width: 1px !important;
16
+ border-color: #ddd !important;
17
+ background: #f9f9f9 !important;
18
+ border-style: solid !important;
19
+ }
20
+ .crayon-theme-arduino-ide .crayon-table .crayon-nums {
21
+ background: #fdfdfd !important;
22
+ color: #d4d4d4 !important;
23
+ }
24
+ .crayon-theme-arduino-ide *::selection {
25
+ background: transparent !important;
26
+ }
27
+ .crayon-theme-arduino-ide .crayon-code *::selection {
28
+ background: #ddeeff !important;
29
+ color: #316ba5 !important;
30
+ }
31
+ .crayon-theme-arduino-ide .crayon-striped-line {
32
+ background: #fafafa !important;
33
+ }
34
+ .crayon-theme-arduino-ide .crayon-striped-num {
35
+ background: #fafafa !important;
36
+ color: #d4d4d4 !important;
37
+ }
38
+ .crayon-theme-arduino-ide .crayon-marked-line {
39
+ border-width: 1px !important;
40
+ border-color: #f9f9f9 !important;
41
+ background: #f0f0f0 !important;
42
+ }
43
+ .crayon-theme-arduino-ide .crayon-marked-num {
44
+ color: #d4d4d4 !important;
45
+ background: #f0f0f0 !important;
46
+ border-width: 1px !important;
47
+ border-color: #f9f9f9 !important;
48
+ }
49
+ .crayon-theme-arduino-ide .crayon-marked-line.crayon-striped-line {
50
+ background: #ececec !important;
51
+ }
52
+ .crayon-theme-arduino-ide .crayon-marked-num.crayon-striped-num {
53
+ background: #ececec !important;
54
+ color: #d4d4d4 !important;
55
+ }
56
+ .crayon-theme-arduino-ide .crayon-marked-line.crayon-top {
57
+ border-top-style: solid !important;
58
+ }
59
+ .crayon-theme-arduino-ide .crayon-marked-num.crayon-top {
60
+ border-top-style: solid !important;
61
+ }
62
+ .crayon-theme-arduino-ide .crayon-marked-line.crayon-bottom {
63
+ border-bottom-style: solid !important;
64
+ }
65
+ .crayon-theme-arduino-ide .crayon-marked-num.crayon-bottom {
66
+ border-bottom-style: solid !important;
67
+ }
68
+ .crayon-theme-arduino-ide .crayon-info {
69
+ background: #faf9d7 !important;
70
+ border-bottom-width: 1px !important;
71
+ border-bottom-color: #b1af5e !important;
72
+ border-bottom-style: solid !important;
73
+ color: #7e7d34 !important;
74
+ }
75
+ .crayon-theme-arduino-ide .crayon-toolbar {
76
+ background: #eeeeee !important;
77
+ border-bottom-width: 1px !important;
78
+ border-bottom-color: #dddddd !important;
79
+ border-bottom-style: solid !important;
80
+ }
81
+ .crayon-theme-arduino-ide .crayon-toolbar > div {
82
+ float: left !important;
83
+ }
84
+ .crayon-theme-arduino-ide .crayon-toolbar .crayon-tools {
85
+ float: right !important;
86
+ }
87
+ .crayon-theme-arduino-ide .crayon-title {
88
+ color: #999999 !important;
89
+ }
90
+ .crayon-theme-arduino-ide .crayon-language {
91
+ color: #999 !important;
92
+ }
93
+ .crayon-theme-arduino-ide a.crayon-button {
94
+ background-color: transparent !important;
95
+ }
96
+ .crayon-theme-arduino-ide a.crayon-button:hover {
97
+ background-color: #dddddd !important;
98
+ color: #666;
99
+ }
100
+ .crayon-theme-arduino-ide a.crayon-button.crayon-pressed:hover {
101
+ background-color: #eeeeee !important;
102
+ color: #666;
103
+ }
104
+ .crayon-theme-arduino-ide a.crayon-button.crayon-pressed {
105
+ background-color: #dddddd !important;
106
+ color: #FFF;
107
+ }
108
+ .crayon-theme-arduino-ide a.crayon-button.crayon-pressed:active {
109
+ background-color: #dddddd !important;
110
+ color: #FFF;
111
+ }
112
+ .crayon-theme-arduino-ide a.crayon-button:active {
113
+ background-color: #dddddd !important;
114
+ color: #FFF;
115
+ }
116
+ .crayon-theme-arduino-ide .crayon-pre .c {
117
+ color: #888888 !important;
118
+ }
119
+ .crayon-theme-arduino-ide .crayon-pre .s {
120
+ color: #006699 !important;
121
+ }
122
+ .crayon-theme-arduino-ide .crayon-pre .p {
123
+ color: #222222 !important;
124
+ }
125
+ .crayon-theme-arduino-ide .crayon-pre .ta {
126
+ color: #e91e1e !important;
127
+ }
128
+ .crayon-theme-arduino-ide .crayon-pre .k {
129
+ color: #006699 !important;
130
+ }
131
+ .crayon-theme-arduino-ide .crayon-pre .st {
132
+ color: #cc6600 !important;
133
+ font-weight: bold !important;
134
+ }
135
+ .crayon-theme-arduino-ide .crayon-pre .r {
136
+ color: #cc6600 !important;
137
+ }
138
+ .crayon-theme-arduino-ide .crayon-pre .t {
139
+ color: #CC6600 !important;
140
+ }
141
+ .crayon-theme-arduino-ide .crayon-pre .m {
142
+ color: #cc6600 !important;
143
+ }
144
+ .crayon-theme-arduino-ide .crayon-pre .i {
145
+ color: #222222 !important;
146
+ }
147
+ .crayon-theme-arduino-ide .crayon-pre .e {
148
+ color: #cc6600 !important;
149
+ }
150
+ .crayon-theme-arduino-ide .crayon-pre .v {
151
+ color: #222222 !important;
152
+ }
153
+ .crayon-theme-arduino-ide .crayon-pre .cn {
154
+ color: #222222 !important;
155
+ }
156
+ .crayon-theme-arduino-ide .crayon-pre .o {
157
+ color: #222222 !important;
158
+ }
159
+ .crayon-theme-arduino-ide .crayon-pre .sy {
160
+ color: #333 !important;
161
+ }
162
+ .crayon-theme-arduino-ide .crayon-pre .n {
163
+ color: #666 !important;
164
+ font-style: italic !important;
165
+ }
166
+ .crayon-theme-arduino-ide .crayon-pre .f {
167
+ color: #999 !important;
168
+ }
169
+ .crayon-theme-arduino-ide .crayon-pre .h {
170
+ color: #006fe0 !important;
171
+ }
themes/ssms2012/ssms2012.css ADDED
@@ -0,0 +1,170 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ Name: Ssms2012
3
+ Description: Similar to SQL Management Studio 2012
4
+ Version: 1.0
5
+ Author: Vedran Kesegić
6
+ URL: http://www.sqlxdetails.com
7
+ */
8
+ .crayon-theme-ssms2012 {
9
+ border-width: 1px !important;
10
+ border-color: #999 !important;
11
+ border-style: solid !important;
12
+ text-shadow: none !important;
13
+ background: #ffffff !important;
14
+ }
15
+ .crayon-theme-ssms2012-inline {
16
+ border-width: 1px !important;
17
+ border-color: #ddd !important;
18
+ border-style: solid !important;
19
+ background: #fafafa !important;
20
+ }
21
+ .crayon-theme-ssms2012 .crayon-table .crayon-nums {
22
+ background: #dfefff !important;
23
+ color: #5499de !important;
24
+ }
25
+ .crayon-theme-ssms2012 *::selection {
26
+ background: transparent !important;
27
+ }
28
+ .crayon-theme-ssms2012 .crayon-code *::selection {
29
+ background: #ddeeff !important;
30
+ color: #316ba5 !important;
31
+ }
32
+ .crayon-theme-ssms2012 .crayon-striped-line {
33
+ }
34
+ .crayon-theme-ssms2012 .crayon-striped-num {
35
+ background: #c8e1fa !important;
36
+ color: #317cc5 !important;
37
+ }
38
+ .crayon-theme-ssms2012 .crayon-marked-line {
39
+ background: #fffee2 !important;
40
+ border-width: 1px !important;
41
+ border-color: #e9e579 !important;
42
+ }
43
+ .crayon-theme-ssms2012 .crayon-marked-num {
44
+ color: #1561ac !important;
45
+ background: #b3d3f4 !important;
46
+ border-width: 1px !important;
47
+ border-color: #5999d9 !important;
48
+ }
49
+ .crayon-theme-ssms2012 .crayon-marked-line.crayon-striped-line {
50
+ background: #faf8d1 !important;
51
+ }
52
+ .crayon-theme-ssms2012 .crayon-marked-num.crayon-striped-num {
53
+ background: #9ec5ec !important;
54
+ color: #105395 !important;
55
+ }
56
+ .crayon-theme-ssms2012 .crayon-marked-line.crayon-top {
57
+ border-top-style: solid !important;
58
+ }
59
+ .crayon-theme-ssms2012 .crayon-marked-num.crayon-top {
60
+ border-top-style: solid !important;
61
+ }
62
+ .crayon-theme-ssms2012 .crayon-marked-line.crayon-bottom {
63
+ border-bottom-style: solid !important;
64
+ }
65
+ .crayon-theme-ssms2012 .crayon-marked-num.crayon-bottom {
66
+ border-bottom-style: solid !important;
67
+ }
68
+ .crayon-theme-ssms2012 .crayon-info {
69
+ background: #faf9d7 !important;
70
+ border-bottom-width: 1px !important;
71
+ border-bottom-color: #b1af5e !important;
72
+ border-bottom-style: solid !important;
73
+ color: #7e7d34 !important;
74
+ }
75
+ .crayon-theme-ssms2012 .crayon-toolbar {
76
+ background: #DDD !important;
77
+ border-bottom-width: 1px !important;
78
+ border-bottom-color: #BBB !important;
79
+ border-bottom-style: solid !important;
80
+ }
81
+ .crayon-theme-ssms2012 .crayon-toolbar > div {
82
+ float: left !important;
83
+ }
84
+ .crayon-theme-ssms2012 .crayon-toolbar .crayon-tools {
85
+ float: right !important;
86
+ }
87
+ .crayon-theme-ssms2012 .crayon-title {
88
+ color: #333 !important;
89
+ }
90
+ .crayon-theme-ssms2012 .crayon-language {
91
+ color: #999 !important;
92
+ }
93
+ .crayon-theme-ssms2012 .crayon-button {
94
+ background-color: transparent !important;
95
+ }
96
+ .crayon-theme-ssms2012 .crayon-button:hover {
97
+ background-color: #EEE !important;
98
+ color: #666;
99
+ }
100
+ .crayon-theme-ssms2012 .crayon-button.crayon-pressed:hover {
101
+ background-color: #EEE !important;
102
+ color: #666;
103
+ }
104
+ .crayon-theme-ssms2012 .crayon-button.crayon-pressed {
105
+ background-color: #BCBCBC !important;
106
+ color: #FFF;
107
+ }
108
+ .crayon-theme-ssms2012 .crayon-button.crayon-pressed:active {
109
+ background-color: #BCBCBC !important;
110
+ color: #FFF;
111
+ }
112
+ .crayon-theme-ssms2012 .crayon-button:active {
113
+ background-color: #BCBCBC !important;
114
+ color: #FFF;
115
+ }
116
+ .crayon-theme-ssms2012 .crayon-pre .c {
117
+ color: #008000 !important;
118
+ }
119
+ .crayon-theme-ssms2012 .crayon-pre .s {
120
+ color: #ff0000 !important;
121
+ }
122
+ .crayon-theme-ssms2012 .crayon-pre .p {
123
+ color: #b85c00 !important;
124
+ }
125
+ .crayon-theme-ssms2012 .crayon-pre .ta {
126
+ color: #FF0000 !important;
127
+ }
128
+ .crayon-theme-ssms2012 .crayon-pre .k {
129
+ color: #0000ff !important;
130
+ }
131
+ .crayon-theme-ssms2012 .crayon-pre .st {
132
+ color: #800080 !important;
133
+ }
134
+ .crayon-theme-ssms2012 .crayon-pre .r {
135
+ color: #800080 !important;
136
+ }
137
+ .crayon-theme-ssms2012 .crayon-pre .t {
138
+ color: #800080 !important;
139
+ }
140
+ .crayon-theme-ssms2012 .crayon-pre .m {
141
+ color: #800080 !important;
142
+ }
143
+ .crayon-theme-ssms2012 .crayon-pre .i {
144
+ color: #008080 !important;
145
+ }
146
+ .crayon-theme-ssms2012 .crayon-pre .e {
147
+ color: #ff00ff !important;
148
+ }
149
+ .crayon-theme-ssms2012 .crayon-pre .v {
150
+ color: #002D7A !important;
151
+ }
152
+ .crayon-theme-ssms2012 .crayon-pre .cn {
153
+ color: #000000 !important;
154
+ }
155
+ .crayon-theme-ssms2012 .crayon-pre .o {
156
+ color: #808080 !important;
157
+ }
158
+ .crayon-theme-ssms2012 .crayon-pre .sy {
159
+ color: #333 !important;
160
+ }
161
+ .crayon-theme-ssms2012 .crayon-pre .n {
162
+ color: #666 !important;
163
+ font-style: italic !important;
164
+ }
165
+ .crayon-theme-ssms2012 .crayon-pre .f {
166
+ color: #999 !important;
167
+ }
168
+ .crayon-theme-ssms2012 .crayon-pre .h {
169
+ color: #006fe0 !important;
170
+ }
trans/crayon-syntax-highlighter-tr_TR.mo CHANGED
Binary file
trans/crayon-syntax-highlighter-tr_TR.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: crayon-syntax-highlighter\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2013-01-11 14:56+0200\n"
6
  "PO-Revision-Date: \n"
7
  "Last-Translator: HakanEr <hakanerwptr@gmail.com>\n"
8
  "Language-Team: hakaner <hakanerwptr@gmail.com>\n"
@@ -22,504 +22,504 @@ msgstr ""
22
  "X-Poedit-SearchPath-1: ..\n"
23
 
24
  # @ crayon-syntax-highlighter
25
- #: ../crayon_formatter.class.php:274
 
 
 
 
 
26
  msgid "Toggle Plain Code"
27
  msgstr "Düz Koda Geç"
28
 
29
  # @ crayon-syntax-highlighter
30
- #: ../crayon_formatter.class.php:275
31
  msgid "Toggle Line Wrap"
32
  msgstr "Satır Sarımına Geç"
33
 
34
  # @ crayon-syntax-highlighter
35
- #: ../crayon_formatter.class.php:276
36
  msgid "Expand Code"
37
  msgstr "Kodu Genişlet"
38
 
39
  # @ crayon-syntax-highlighter
40
- #: ../crayon_formatter.class.php:278
41
- #, php-format
42
- msgid "Press %s to Copy, %s to Paste"
43
- msgstr "%s ile Kopyala, %s ile Yapıştır"
44
-
45
- # @ crayon-syntax-highlighter
46
- #: ../crayon_formatter.class.php:278
47
- msgid "Copy Plain Code"
48
- msgstr "Düz Kodu Kopyala"
49
-
50
- # @ crayon-syntax-highlighter
51
- #: ../crayon_formatter.class.php:280
52
  msgid "Open Code In New Window"
53
  msgstr "Kodu Yeni Pencerede Aç"
54
 
55
  # @ crayon-syntax-highlighter
56
- #: ../crayon_formatter.class.php:282
57
- msgid "Toggle Line Numbers"
58
- msgstr "Satır Numaralarına Geç"
59
-
60
- # @ crayon-syntax-highlighter
61
- #: ../crayon_formatter.class.php:285
62
  msgid "Contains Mixed Languages"
63
  msgstr "Karışık Diller içerir"
64
 
65
  # @ crayon-syntax-highlighter
66
- #: ../crayon_settings.class.php:145
67
  msgid "Hourly"
68
  msgstr "Saatlik"
69
 
70
  # @ crayon-syntax-highlighter
71
- #: ../crayon_settings.class.php:145
72
  msgid "Daily"
73
  msgstr "Günlük"
74
 
75
  # @ crayon-syntax-highlighter
76
- #: ../crayon_settings.class.php:146
77
  msgid "Weekly"
78
  msgstr "Haftalık"
79
 
80
  # @ crayon-syntax-highlighter
81
- #: ../crayon_settings.class.php:146
82
  msgid "Monthly"
83
  msgstr "Aylık"
84
 
85
  # @ crayon-syntax-highlighter
86
- #: ../crayon_settings.class.php:147
87
  msgid "Immediately"
88
  msgstr "Hemen"
89
 
90
  # @ crayon-syntax-highlighter
91
- #: ../crayon_settings.class.php:157 ../crayon_settings.class.php:161
92
  msgid "Max"
93
  msgstr "Max"
94
 
95
  # @ crayon-syntax-highlighter
96
- #: ../crayon_settings.class.php:157 ../crayon_settings.class.php:161
97
  msgid "Min"
98
  msgstr "Min"
99
 
100
  # @ crayon-syntax-highlighter
101
- #: ../crayon_settings.class.php:157 ../crayon_settings.class.php:161
102
  msgid "Static"
103
  msgstr "Sabit"
104
 
105
  # @ crayon-syntax-highlighter
106
- #: ../crayon_settings.class.php:159 ../crayon_settings.class.php:163
107
- #: ../crayon_settings_wp.class.php:722 ../crayon_settings_wp.class.php:731
108
- #: ../crayon_settings_wp.class.php:1005
109
  msgid "Pixels"
110
  msgstr "Piksel"
111
 
112
  # @ crayon-syntax-highlighter
113
- #: ../crayon_settings.class.php:159 ../crayon_settings.class.php:163
114
  msgid "Percent"
115
  msgstr "Yüzde"
116
 
117
  # @ crayon-syntax-highlighter
118
- #: ../crayon_settings.class.php:172
119
  msgid "None"
120
  msgstr "Yok"
121
 
122
  # @ crayon-syntax-highlighter
123
- #: ../crayon_settings.class.php:172
124
  msgid "Left"
125
  msgstr "Sol"
126
 
127
  # @ crayon-syntax-highlighter
128
- #: ../crayon_settings.class.php:172
129
  msgid "Center"
130
  msgstr "Merkez"
131
 
132
  # @ crayon-syntax-highlighter
133
- #: ../crayon_settings.class.php:172
134
  msgid "Right"
135
  msgstr "Sağ"
136
 
137
  # @ crayon-syntax-highlighter
138
- #: ../crayon_settings.class.php:174 ../crayon_settings.class.php:198
139
  msgid "On MouseOver"
140
  msgstr "Fare Üstündeyken"
141
 
142
  # @ crayon-syntax-highlighter
143
- #: ../crayon_settings.class.php:174 ../crayon_settings.class.php:180
144
  msgid "Always"
145
  msgstr "Herzaman"
146
 
147
  # @ crayon-syntax-highlighter
148
- #: ../crayon_settings.class.php:174 ../crayon_settings.class.php:180
149
  msgid "Never"
150
  msgstr "Asla"
151
 
152
  # @ crayon-syntax-highlighter
153
- #: ../crayon_settings.class.php:180
154
  msgid "When Found"
155
  msgstr "Bulunduğunda"
156
 
157
  # @ crayon-syntax-highlighter
158
- #: ../crayon_settings.class.php:198
159
  msgid "On Double Click"
160
  msgstr "Çift Tık ile aç"
161
 
162
  # @ crayon-syntax-highlighter
163
- #: ../crayon_settings.class.php:198
164
  msgid "On Single Click"
165
  msgstr "Tek Tık ile aç"
166
 
167
  # @ crayon-syntax-highlighter
168
- #: ../crayon_settings.class.php:198
169
  msgid "Disable Mouse Events"
170
  msgstr "Fare Etkinliği Devre Dışı"
171
 
172
  # @ crayon-syntax-highlighter
173
- #: ../crayon_settings.class.php:205
174
  msgid "An error has occurred. Please try again later."
175
  msgstr "Bir hata meydana geldi. Daha sonra tekrar deneyin."
176
 
177
  # @ crayon-syntax-highlighter
178
- #: ../crayon_settings_wp.class.php:51 ../crayon_settings_wp.class.php:189
179
- #: ../crayon_settings_wp.class.php:1195
180
- #: ../util/tag-editor/crayon_tag_editor_wp.class.php:245
181
  msgid "Settings"
182
  msgstr "Ayarlar"
183
 
184
- #: ../crayon_settings_wp.class.php:157
 
 
 
 
 
 
 
 
 
 
 
185
  msgid "Prompt"
186
  msgstr "Komut İstemi"
187
 
188
- #: ../crayon_settings_wp.class.php:158
189
  msgid "Value"
190
  msgstr "Değer"
191
 
192
- #: ../crayon_settings_wp.class.php:159
193
  msgid "Alert"
194
  msgstr "İkaz"
195
 
196
  # @ crayon-syntax-highlighter
197
- #: ../crayon_settings_wp.class.php:160 ../crayon_settings_wp.class.php:868
198
  msgid "No"
199
  msgstr "Hayır"
200
 
201
- #: ../crayon_settings_wp.class.php:161 ../crayon_settings_wp.class.php:868
202
  msgid "Yes"
203
  msgstr "Evet"
204
 
205
- #: ../crayon_settings_wp.class.php:162
206
  msgid "Confirm"
207
  msgstr "Onayla"
208
 
209
  # @ crayon-syntax-highlighter
210
- #: ../crayon_settings_wp.class.php:163
211
  msgid "Change Code"
212
  msgstr "Kodu Değiştir"
213
 
214
  # @ crayon-syntax-highlighter
215
- #: ../crayon_settings_wp.class.php:171
216
  msgid "You do not have sufficient permissions to access this page."
217
  msgstr "Bu sayfaya erişmek için yeterli izinlere sahip değilsiniz."
218
 
219
  # @ crayon-syntax-highlighter
220
- #: ../crayon_settings_wp.class.php:204
221
  msgid "Save Changes"
222
  msgstr "Kaydet"
223
 
224
  # @ crayon-syntax-highlighter
225
- #: ../crayon_settings_wp.class.php:211
226
  msgid "Reset Settings"
227
  msgstr "Ayarları Sıfırla"
228
 
229
  # @ crayon-syntax-highlighter
230
- #: ../crayon_settings_wp.class.php:458
231
  msgid "General"
232
  msgstr "Genel"
233
 
234
  # @ crayon-syntax-highlighter
235
- #: ../crayon_settings_wp.class.php:459
236
  msgid "Theme"
237
  msgstr "Tema"
238
 
239
  # @ crayon-syntax-highlighter
240
- #: ../crayon_settings_wp.class.php:460
241
  msgid "Font"
242
  msgstr "Font"
243
 
244
  # @ crayon-syntax-highlighter
245
- #: ../crayon_settings_wp.class.php:461
246
  msgid "Metrics"
247
  msgstr "Ölçüler"
248
 
249
  # @ crayon-syntax-highlighter
250
- #: ../crayon_settings_wp.class.php:462
251
- #: ../util/theme-editor/theme_editor.php:273
252
  msgid "Toolbar"
253
  msgstr "Araç Çubuğu"
254
 
255
  # @ crayon-syntax-highlighter
256
- #: ../crayon_settings_wp.class.php:463
257
- #: ../util/theme-editor/theme_editor.php:271
258
  msgid "Lines"
259
  msgstr "Satırlar"
260
 
261
  # @ crayon-syntax-highlighter
262
- #: ../crayon_settings_wp.class.php:464
263
- #: ../util/tag-editor/crayon_tag_editor_wp.class.php:205
264
  msgid "Code"
265
  msgstr "Kod"
266
 
267
  # @ crayon-syntax-highlighter
268
- #: ../crayon_settings_wp.class.php:465
269
  msgid "Tags"
270
  msgstr "Etiketler"
271
 
272
  # @ crayon-syntax-highlighter
273
- #: ../crayon_settings_wp.class.php:466
274
  msgid "Languages"
275
  msgstr "Diller"
276
 
277
  # @ crayon-syntax-highlighter
278
- #: ../crayon_settings_wp.class.php:467
279
  msgid "Files"
280
  msgstr "Dosyalar"
281
 
282
- #: ../crayon_settings_wp.class.php:468
283
  msgid "Posts"
284
  msgstr "Yazılar"
285
 
286
  # @ crayon-syntax-highlighter
287
- #: ../crayon_settings_wp.class.php:469
288
  msgid "Tag Editor"
289
  msgstr "Etiket Düzenleyici"
290
 
291
  # @ crayon-syntax-highlighter
292
- #: ../crayon_settings_wp.class.php:470
293
  msgid "Misc"
294
  msgstr "Çeşitli"
295
 
296
  # @ crayon-syntax-highlighter
297
- #: ../crayon_settings_wp.class.php:473
298
  msgid "Debug"
299
  msgstr "Hata Ayıklama"
300
 
301
  # @ crayon-syntax-highlighter
302
- #: ../crayon_settings_wp.class.php:474
303
  msgid "Errors"
304
  msgstr "Hatalar"
305
 
306
  # @ crayon-syntax-highlighter
307
- #: ../crayon_settings_wp.class.php:475
308
  msgid "Log"
309
  msgstr "Günlük"
310
 
311
  # @ crayon-syntax-highlighter
312
- #: ../crayon_settings_wp.class.php:478
313
  msgid "About"
314
  msgstr "Hakkında"
315
 
316
  # @ crayon-syntax-highlighter
317
- #: ../crayon_settings_wp.class.php:699
318
  msgid "Height"
319
  msgstr "Yükseklik"
320
 
321
  # @ crayon-syntax-highlighter
322
- #: ../crayon_settings_wp.class.php:705
323
  msgid "Width"
324
  msgstr "Genişlik"
325
 
326
  # @ crayon-syntax-highlighter
327
- #: ../crayon_settings_wp.class.php:711
328
  msgid "Top Margin"
329
  msgstr "Üst Boşluk"
330
 
331
  # @ crayon-syntax-highlighter
332
- #: ../crayon_settings_wp.class.php:712
333
  msgid "Bottom Margin"
334
  msgstr "Alt Boşluk"
335
 
336
  # @ crayon-syntax-highlighter
337
- #: ../crayon_settings_wp.class.php:713 ../crayon_settings_wp.class.php:718
338
  msgid "Left Margin"
339
  msgstr "Sol Boşluk"
340
 
341
  # @ crayon-syntax-highlighter
342
- #: ../crayon_settings_wp.class.php:714 ../crayon_settings_wp.class.php:718
343
  msgid "Right Margin"
344
  msgstr "Sağ Boşluk"
345
 
346
  # @ crayon-syntax-highlighter
347
- #: ../crayon_settings_wp.class.php:724
348
  msgid "Horizontal Alignment"
349
  msgstr "Yatay Hizalama"
350
 
351
  # @ crayon-syntax-highlighter
352
- #: ../crayon_settings_wp.class.php:727
353
  msgid "Allow floating elements to surround Crayon"
354
  msgstr "Geçişli elementleri Crayon çevrelemeye izin ver"
355
 
356
  # @ crayon-syntax-highlighter
357
- #: ../crayon_settings_wp.class.php:729
358
  msgid "Inline Margin"
359
  msgstr "Satıriçi Boşluk"
360
 
361
  # @ crayon-syntax-highlighter
362
- #: ../crayon_settings_wp.class.php:737
363
  msgid "Display the Toolbar"
364
  msgstr "Araç çubuğunu göster"
365
 
366
  # @ crayon-syntax-highlighter
367
- #: ../crayon_settings_wp.class.php:740
368
  msgid "Overlay the toolbar on code rather than push it down when possible"
369
  msgstr "Araç çubuğunu mümkünse kodları aşağı itmek yerine üstte göster"
370
 
371
  # @ crayon-syntax-highlighter
372
- #: ../crayon_settings_wp.class.php:741
373
  msgid "Toggle the toolbar on single click when it is overlayed"
374
  msgstr "Araç çubuğu üste çıktığında tek tıkla gizle"
375
 
376
  # @ crayon-syntax-highlighter
377
- #: ../crayon_settings_wp.class.php:742
378
  msgid "Delay hiding the toolbar on MouseOut"
379
  msgstr "Fare dışa çıktığında araç çubuğunu gizlemek için bekle"
380
 
381
  # @ crayon-syntax-highlighter
382
- #: ../crayon_settings_wp.class.php:744
383
  msgid "Display the title when provided"
384
  msgstr "Varsa başlığı görüntüle"
385
 
386
  # @ crayon-syntax-highlighter
387
- #: ../crayon_settings_wp.class.php:745
388
  msgid "Display the language"
389
  msgstr "Dilleri göster"
390
 
391
  # @ crayon-syntax-highlighter
392
- #: ../crayon_settings_wp.class.php:752
393
  msgid "Display striped code lines"
394
  msgstr "Şeritli kod satırını göster"
395
 
396
  # @ crayon-syntax-highlighter
397
- #: ../crayon_settings_wp.class.php:753
398
  msgid "Enable line marking for important lines"
399
  msgstr "Önemli satırlar için satır işaretleme etkin"
400
 
401
- #: ../crayon_settings_wp.class.php:754
402
  msgid "Enable line ranges for showing only parts of code"
403
  msgstr "Kodun sadece bir parçasını gösteren satır aralıklarını etkinleştir"
404
 
405
  # @ crayon-syntax-highlighter
406
- #: ../crayon_settings_wp.class.php:755
407
  msgid "Display line numbers by default"
408
  msgstr "Varsayılan olarak satır numaralarını göster"
409
 
410
  # @ crayon-syntax-highlighter
411
- #: ../crayon_settings_wp.class.php:756
412
  msgid "Enable line number toggling"
413
  msgstr "Satır numaraları geçişi etkin"
414
 
415
  # @ crayon-syntax-highlighter
416
- #: ../crayon_settings_wp.class.php:757
417
  msgid "Wrap lines by default"
418
  msgstr "Varsayılan olarak satırları sar"
419
 
420
  # @ crayon-syntax-highlighter
421
- #: ../crayon_settings_wp.class.php:758
422
  msgid "Enable line wrap toggling"
423
  msgstr "Satır sarıma geçişi etkin"
424
 
425
  # @ crayon-syntax-highlighter
426
- #: ../crayon_settings_wp.class.php:759
427
  msgid "Start line numbers from"
428
  msgstr "Satır numarasını buradan başlat"
429
 
430
  # @ crayon-syntax-highlighter
431
- #: ../crayon_settings_wp.class.php:770
432
  msgid "When no language is provided, use the fallback"
433
  msgstr "Belirlenmiş bir dil olmadığında son çareyi kullan"
434
 
435
  # @ crayon-syntax-highlighter
436
- #: ../crayon_settings_wp.class.php:776
437
  #, php-format
438
  msgid "%d language has been detected."
439
  msgstr "%d dil tespit edildi."
440
 
441
  # @ crayon-syntax-highlighter
442
- #: ../crayon_settings_wp.class.php:777
443
  msgid "Parsing was successful"
444
  msgstr "Ayrıştırma başarılı"
445
 
446
  # @ crayon-syntax-highlighter
447
- #: ../crayon_settings_wp.class.php:777
448
  msgid "Parsing was unsuccessful"
449
  msgstr "Ayrıştırma başarılı değil"
450
 
451
  # @ crayon-syntax-highlighter
452
- #: ../crayon_settings_wp.class.php:783
453
  #, php-format
454
  msgid "The selected language with id %s could not be loaded"
455
  msgstr "ID %s ile seçilen dil yüklenemedi"
456
 
457
  # @ crayon-syntax-highlighter
458
- #: ../crayon_settings_wp.class.php:786
459
  msgid "Show Languages"
460
  msgstr "Dilleri Göster"
461
 
462
- #: ../crayon_settings_wp.class.php:822
463
  msgid "Show Crayon Posts"
464
  msgstr "Crayon Yazıları Göster"
465
 
466
- #: ../crayon_settings_wp.class.php:823
467
  msgid "Refresh"
468
  msgstr "Yenile"
469
 
470
- #: ../crayon_settings_wp.class.php:848
471
  msgid "ID"
472
  msgstr "ID"
473
 
474
  # @ crayon-syntax-highlighter
475
- #: ../crayon_settings_wp.class.php:848
476
- #: ../util/tag-editor/crayon_tag_editor_wp.class.php:182
477
- #: ../util/theme-editor/theme_editor.php:287
478
  msgid "Title"
479
  msgstr "Başlık"
480
 
481
- #: ../crayon_settings_wp.class.php:848
482
  msgid "Posted"
483
  msgstr "Yayınlandı"
484
 
485
- #: ../crayon_settings_wp.class.php:848
486
  msgid "Modifed"
487
  msgstr "Değiştirildi"
488
 
489
- #: ../crayon_settings_wp.class.php:848
490
  msgid "Contains Legacy Tags?"
491
  msgstr "Eski Etiketleri İçersin?"
492
 
493
- #: ../crayon_settings_wp.class.php:963
494
  msgid "Edit"
495
  msgstr "Düzenle"
496
 
497
- #: ../crayon_settings_wp.class.php:963
498
- #: ../util/theme-editor/theme_editor.php:184
499
  msgid "Duplicate"
500
  msgstr "Çoğalt"
501
 
502
- #: ../crayon_settings_wp.class.php:963
503
  msgid "Submit"
504
  msgstr "Gönder"
505
 
506
- #: ../crayon_settings_wp.class.php:964
507
- #: ../util/theme-editor/theme_editor.php:181
508
  msgid "Delete"
509
  msgstr "Sil"
510
 
511
  # @ crayon-syntax-highlighter
512
- #: ../crayon_settings_wp.class.php:966
513
  msgid "Loading..."
514
  msgstr "Yükleniyor..."
515
 
516
- #: ../crayon_settings_wp.class.php:968
517
  msgid "Duplicate a Stock Theme into a User Theme to allow editing."
518
  msgstr ""
519
  "Düzenleyebilmek için, bir Kullanıcı Teması içine bir Hazır Tema çoğaltın."
520
 
521
  # @ crayon-syntax-highlighter
522
- #: ../crayon_settings_wp.class.php:979
523
  #, php-format
524
  msgid ""
525
  "Change the %1$sfallback language%2$s to change the sample code or %3$schange "
@@ -529,114 +529,138 @@ msgstr ""
529
  "el ile%4$s değiştirin. 5-7 satırlar işaretli."
530
 
531
  # @ crayon-syntax-highlighter
532
- #: ../crayon_settings_wp.class.php:986
533
  msgid "Enable Live Preview"
534
  msgstr "Ön izleme etkin"
535
 
536
  # @ crayon-syntax-highlighter
537
- #: ../crayon_settings_wp.class.php:988
538
  msgid "Enqueue themes in the header (more efficient)."
539
  msgstr "Temaları header içinde kuyrukla (daha etkin)."
540
 
541
  # @ crayon-syntax-highlighter
542
- #: ../crayon_settings_wp.class.php:991
543
  #, php-format
544
  msgid "The selected theme with id %s could not be loaded"
545
  msgstr "ID %s ile seçilen tema yüklenemedi"
546
 
547
  # @ crayon-syntax-highlighter
548
- #: ../crayon_settings_wp.class.php:1003
549
  msgid "Custom Font Size"
550
  msgstr "Kişisel Font Boyutu"
551
 
552
  # @ crayon-syntax-highlighter
553
- #: ../crayon_settings_wp.class.php:1008
554
  #, php-format
555
  msgid "The selected font with id %s could not be loaded"
556
  msgstr "ID %s ile seçilen font yüklenemedi"
557
 
558
  # @ crayon-syntax-highlighter
559
- #: ../crayon_settings_wp.class.php:1014
560
  msgid "Enqueue fonts in the header (more efficient)."
561
  msgstr "Fontları header içinde kuyrukla (daha etkin)."
562
 
563
  # @ crayon-syntax-highlighter
564
- #: ../crayon_settings_wp.class.php:1019
565
  msgid "Enable plain code view and display"
566
  msgstr "Düz kod görünümü ve görüntüleme etkin"
567
 
568
  # @ crayon-syntax-highlighter
569
- #: ../crayon_settings_wp.class.php:1022
570
  msgid "Enable plain code toggling"
571
  msgstr "Düz kod geçişi etkin"
572
 
573
  # @ crayon-syntax-highlighter
574
- #: ../crayon_settings_wp.class.php:1023
575
  msgid "Show the plain code by default"
576
  msgstr "Düz kodu varsayılan olarak göster"
577
 
578
  # @ crayon-syntax-highlighter
579
- #: ../crayon_settings_wp.class.php:1024
580
  msgid "Enable code copy/paste"
581
  msgstr "Kod kopyala/yapıştır etkin"
582
 
583
  # @ crayon-syntax-highlighter
584
- #: ../crayon_settings_wp.class.php:1026
585
  msgid "Enable opening code in a window"
586
  msgstr "Kodları bir pencerede açma etkin"
587
 
588
  # @ crayon-syntax-highlighter
589
- #: ../crayon_settings_wp.class.php:1027
590
  msgid "Always display scrollbars"
591
  msgstr "Kaydırma çubuğu her zaman göster"
592
 
593
- #: ../crayon_settings_wp.class.php:1028
 
 
 
 
594
  msgid "Expand code beyond page borders on mouseover"
595
  msgstr "Fare üzerindeyken sayfa sınırları dışında kodu genişlet"
596
 
597
- #: ../crayon_settings_wp.class.php:1029
598
  msgid "Enable code expanding toggling when possible"
599
  msgstr "Mümkün olduğunda kod genişletme geçişlerini etkinleştir"
600
 
601
  # @ crayon-syntax-highlighter
602
- #: ../crayon_settings_wp.class.php:1032
603
  msgid "Decode HTML entities in code"
604
  msgstr "HTML varlıkları kod içinde çöz"
605
 
606
  # @ crayon-syntax-highlighter
607
- #: ../crayon_settings_wp.class.php:1034
608
  msgid "Decode HTML entities in attributes"
609
  msgstr "HTML varlıkları nitelikler içinde çöz"
610
 
611
  # @ crayon-syntax-highlighter
612
- #: ../crayon_settings_wp.class.php:1036
613
  msgid "Remove whitespace surrounding the shortcode content"
614
  msgstr "Kısakod içeriğini çevreleyen beyaz alanları kaldır"
615
 
616
  # @ crayon-syntax-highlighter
617
- #: ../crayon_settings_wp.class.php:1038
618
  msgid "Allow Mixed Language Highlighting with delimiters and tags."
619
  msgstr "Sınırlayıcılar ve etiketler ile Karışık Dil Vurgulamaya izin ver."
620
 
621
  # @ crayon-syntax-highlighter
622
- #: ../crayon_settings_wp.class.php:1040
623
  msgid "Show Mixed Language Icon (+)"
624
  msgstr "Karışık Dil Simgesini Göster (+)"
625
 
626
  # @ crayon-syntax-highlighter
627
- #: ../crayon_settings_wp.class.php:1042
628
  msgid "Tab size in spaces"
629
  msgstr "Boşluk sekme boyutu"
630
 
631
- #: ../crayon_settings_wp.class.php:1044
632
  msgid "Blank lines before code:"
633
  msgstr "Kod öncesi boş satırlar:"
634
 
635
- #: ../crayon_settings_wp.class.php:1046
636
  msgid "Blank lines after code:"
637
  msgstr "Kod sonrası boş satırlar:"
638
 
639
- #: ../crayon_settings_wp.class.php:1051
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
640
  #, php-format
641
  msgid ""
642
  "Using this markup for Mini Tags and Inline tags is now %sdepreciated%s! Use "
@@ -647,37 +671,22 @@ msgstr ""
647
  "kullanın ve eski etiketleri dönüştürün."
648
 
649
  # @ crayon-syntax-highlighter
650
- #: ../crayon_settings_wp.class.php:1052
651
  msgid "Capture Mini Tags like [php][/php] as Crayons."
652
  msgstr "Crayons olarak [php][/php] gibi küçük etiketleri yakala."
653
 
654
  # @ crayon-syntax-highlighter
655
- #: ../crayon_settings_wp.class.php:1053
656
  msgid "Capture Inline Tags like {php}{/php} inside sentences."
657
  msgstr "Cümle içinde {php}{/php} gibi satıriçi etiketleri yakalayın."
658
 
659
  # @ crayon-syntax-highlighter
660
- #: ../crayon_settings_wp.class.php:1054
661
- msgid "Wrap Inline Tags"
662
- msgstr "Satıriçi Etiketleri Sar"
663
-
664
- # @ crayon-syntax-highlighter
665
- #: ../crayon_settings_wp.class.php:1055
666
- msgid "Capture `backquotes` as &lt;code&gt;"
667
- msgstr "&lt;code&gt; olarak `backquotes` yakalayın"
668
-
669
- # @ crayon-syntax-highlighter
670
- #: ../crayon_settings_wp.class.php:1056
671
- msgid "Capture &lt;pre&gt; tags as Crayons"
672
- msgstr "&lt;pre&gt; etiketleri Crayons olarak yakala"
673
-
674
- # @ crayon-syntax-highlighter
675
- #: ../crayon_settings_wp.class.php:1057
676
  msgid "Enable [plain][/plain] tag."
677
  msgstr "[plain][/plain] etiketi etkin."
678
 
679
  # @ crayon-syntax-highlighter
680
- #: ../crayon_settings_wp.class.php:1062
681
  msgid ""
682
  "When loading local files and a relative path is given for the URL, use the "
683
  "absolute path"
@@ -686,24 +695,24 @@ msgstr ""
686
  "yolu kullan"
687
 
688
  # @ crayon-syntax-highlighter
689
- #: ../crayon_settings_wp.class.php:1065
690
  msgid "Followed by your relative URL."
691
  msgstr "Bağlantılı URL tarafından izlendi."
692
 
693
- #: ../crayon_settings_wp.class.php:1072
694
  msgid "Convert Legacy Tags"
695
  msgstr "Eski Etiketleri Dönüştür"
696
 
697
- #: ../crayon_settings_wp.class.php:1075
698
  msgid "No Legacy Tags Found"
699
  msgstr "Eski Etiketler Bulunamadı"
700
 
701
- #: ../crayon_settings_wp.class.php:1079
702
  msgid "Encode"
703
  msgstr "Kodla"
704
 
705
  # @ crayon-syntax-highlighter
706
- #: ../crayon_settings_wp.class.php:1081
707
  #, php-format
708
  msgid ""
709
  "Use %s to separate setting names from values in the &lt;pre&gt; class "
@@ -712,7 +721,7 @@ msgstr ""
712
  "%s kullanarak &lt;pre&gt; sınıf niteliği içinde ayar adlarını değerlerden "
713
  "ayır"
714
 
715
- #: ../crayon_settings_wp.class.php:1084
716
  msgid ""
717
  "Display the Tag Editor in any TinyMCE instances on the frontend (e.g. "
718
  "bbPress)"
@@ -720,254 +729,245 @@ msgstr ""
720
  "Önyüzdeki herhangi bir TinyMCE örneğinde Etiket Düzenleyicisini göster (örn. "
721
  "bbPress)"
722
 
723
- #: ../crayon_settings_wp.class.php:1085
724
  msgid "Display Tag Editor settings on the frontend"
725
  msgstr "Önyüzde Etiket Düzenleyici ayarlarını göster"
726
 
727
  # @ crayon-syntax-highlighter
728
- #: ../crayon_settings_wp.class.php:1089
729
  msgid "Clear the cache used to store remote code requests"
730
  msgstr "Uzak kod isteklerini depolamak için ön belleği temizle"
731
 
732
  # @ crayon-syntax-highlighter
733
- #: ../crayon_settings_wp.class.php:1091
734
  msgid "Clear Now"
735
  msgstr "Şimdi Temizle"
736
 
737
  # @ crayon-syntax-highlighter
738
- #: ../crayon_settings_wp.class.php:1092
739
  msgid "Attempt to load Crayon's CSS and JavaScript only when needed"
740
  msgstr "Sadece ihtiyaç olduğunda Crayon CSS ve JavaScript yüklemeyi dene"
741
 
742
  # @ crayon-syntax-highlighter
743
- #: ../crayon_settings_wp.class.php:1093
744
  msgid "Disable enqueuing for page templates that may contain The Loop."
745
  msgstr "Döngü içeren sayfa şablonları için kuyruklama devre dışı."
746
 
747
  # @ crayon-syntax-highlighter
748
- #: ../crayon_settings_wp.class.php:1094
749
  msgid "Allow Crayons inside comments"
750
  msgstr "Yorum içinde Crayons izini verin"
751
 
752
  # @ crayon-syntax-highlighter
753
- #: ../crayon_settings_wp.class.php:1095
754
  msgid "Remove Crayons from excerpts"
755
  msgstr "Crayon'ı alıntılardan çıkar"
756
 
757
  # @ crayon-syntax-highlighter
758
- #: ../crayon_settings_wp.class.php:1096
759
  msgid "Load Crayons only from the main Wordpress query"
760
  msgstr "Sadece ana Wordpress sorgusundan Crayons yükle"
761
 
762
  # @ crayon-syntax-highlighter
763
- #: ../crayon_settings_wp.class.php:1097
764
  msgid "Disable mouse gestures for touchscreen devices (eg. MouseOver)"
765
  msgstr ""
766
  "Dokunmatik cihazlar için fare hareketlerini devre dışı bırak (örn. Fare "
767
  "Üzerinde)"
768
 
769
  # @ crayon-syntax-highlighter
770
- #: ../crayon_settings_wp.class.php:1098
771
  msgid "Disable animations"
772
  msgstr "Animasyonlar devre dışı"
773
 
774
  # @ crayon-syntax-highlighter
775
- #: ../crayon_settings_wp.class.php:1099
776
  msgid "Disable runtime stats"
777
  msgstr "İşlem istatistikleri devre dışı"
778
 
779
  # @ crayon-syntax-highlighter
780
- #: ../crayon_settings_wp.class.php:1105
781
  msgid "Log errors for individual Crayons"
782
  msgstr "Özgün Crayons hataları günlükle"
783
 
784
  # @ crayon-syntax-highlighter
785
- #: ../crayon_settings_wp.class.php:1106
786
  msgid "Log system-wide errors"
787
  msgstr "Sistem-geneli hataları günlükle"
788
 
789
  # @ crayon-syntax-highlighter
790
- #: ../crayon_settings_wp.class.php:1107
791
  msgid "Display custom message for errors"
792
  msgstr "Hatalar için kişisel mesaj göster"
793
 
794
  # @ crayon-syntax-highlighter
795
- #: ../crayon_settings_wp.class.php:1119
796
  msgid "Show Log"
797
  msgstr "Günlüğü Göster"
798
 
799
  # @ crayon-syntax-highlighter
800
- #: ../crayon_settings_wp.class.php:1119
801
  msgid "Hide Log"
802
  msgstr "Günlüğü Gizle"
803
 
804
  # @ crayon-syntax-highlighter
805
- #: ../crayon_settings_wp.class.php:1121
806
  msgid "Clear Log"
807
  msgstr "Günlüğü Temizle"
808
 
809
  # @ crayon-syntax-highlighter
810
- #: ../crayon_settings_wp.class.php:1122
811
  msgid "Email Admin"
812
  msgstr "Yönetici E-Posta"
813
 
814
  # @ crayon-syntax-highlighter
815
- #: ../crayon_settings_wp.class.php:1124
816
  msgid "Email Developer"
817
  msgstr "Geliştirici E-Posta"
818
 
819
  # @ crayon-syntax-highlighter
820
- #: ../crayon_settings_wp.class.php:1126
821
  msgid "The log is currently empty."
822
  msgstr "Günlük şu anda boş."
823
 
824
  # @ crayon-syntax-highlighter
825
- #: ../crayon_settings_wp.class.php:1128
826
  msgid "The log file exists and is writable."
827
  msgstr "Günlük dosyası var ve yazılabilir."
828
 
829
  # @ crayon-syntax-highlighter
830
- #: ../crayon_settings_wp.class.php:1128
831
  msgid "The log file exists and is not writable."
832
  msgstr "Günlük dosyası var ve yazılabilir değil."
833
 
834
  # @ crayon-syntax-highlighter
835
- #: ../crayon_settings_wp.class.php:1130
836
  msgid "The log file does not exist and is not writable."
837
  msgstr "Günlük dosyası yok ve yazılabilir değil."
838
 
839
  # @ crayon-syntax-highlighter
840
- #: ../crayon_settings_wp.class.php:1140
841
  msgid "Version"
842
  msgstr "Sürüm"
843
 
844
  # @ crayon-syntax-highlighter
845
- #: ../crayon_settings_wp.class.php:1142
846
  msgid "Developer"
847
  msgstr "Geliştirici"
848
 
849
  # @ crayon-syntax-highlighter
850
- #: ../crayon_settings_wp.class.php:1143
851
  msgid "Translators"
852
  msgstr "Çevirmenler"
853
 
854
  # @ crayon-syntax-highlighter
855
- #: ../crayon_settings_wp.class.php:1179
856
- msgid ""
857
- "The result of innumerable hours of hard work over many months. It's an "
858
- "ongoing project, keep me motivated!"
859
- msgstr ""
860
- "Aylar boyu sıkı çalışma ve sayısız saatlerin sonucudur. Bu devam eden bir "
861
- "projedir, motivasyonumu arttırın!"
862
-
863
- # @ crayon-syntax-highlighter
864
- #: ../crayon_settings_wp.class.php:1189
865
  msgid "?"
866
  msgstr "?"
867
 
868
  # @ crayon-syntax-highlighter
869
- #: ../crayon_settings_wp.class.php:1196
870
- #: ../util/theme-editor/theme_editor.php:309
871
  msgid "Theme Editor"
872
  msgstr "Tema Düzenleyici"
873
 
874
  # @ crayon-syntax-highlighter
875
- #: ../crayon_settings_wp.class.php:1197
876
  msgid "Donate"
877
  msgstr "Bağış"
878
 
879
  # @ crayon-syntax-highlighter
880
- #: ../util/tag-editor/crayon_tag_editor_wp.class.php:64
881
  msgid "Add Crayon Code"
882
  msgstr "Crayon Kod Ekle"
883
 
884
  # @ crayon-syntax-highlighter
885
- #: ../util/tag-editor/crayon_tag_editor_wp.class.php:65
886
  msgid "Edit Crayon Code"
887
  msgstr "Crayon Kodu Düzenle"
888
 
889
  # @ crayon-syntax-highlighter
890
- #: ../util/tag-editor/crayon_tag_editor_wp.class.php:66
891
  msgid "Add"
892
  msgstr "Ekle"
893
 
894
  # @ crayon-syntax-highlighter
895
- #: ../util/tag-editor/crayon_tag_editor_wp.class.php:67
896
- #: ../util/theme-editor/theme_editor.php:325
897
  msgid "Save"
898
  msgstr "Kaydet"
899
 
900
- #: ../util/tag-editor/crayon_tag_editor_wp.class.php:173
901
  msgid "OK"
902
  msgstr "Tamam"
903
 
904
- #: ../util/tag-editor/crayon_tag_editor_wp.class.php:175
905
  msgid "Cancel"
906
  msgstr "İptal"
907
 
908
  # @ crayon-syntax-highlighter
909
- #: ../util/tag-editor/crayon_tag_editor_wp.class.php:184
910
  msgid "A short description"
911
  msgstr "Kısa açıklama"
912
 
913
  # @ crayon-syntax-highlighter
914
- #: ../util/tag-editor/crayon_tag_editor_wp.class.php:186
915
- #: ../util/theme-editor/theme_editor.php:291
916
  msgid "Inline"
917
  msgstr "Satıriçi"
918
 
919
  # @ crayon-syntax-highlighter
920
- #: ../util/tag-editor/crayon_tag_editor_wp.class.php:188
921
  msgid "Don't Highlight"
922
  msgstr "Vurgulama"
923
 
924
  # @ crayon-syntax-highlighter
925
- #: ../util/tag-editor/crayon_tag_editor_wp.class.php:193
926
- #: ../util/theme-editor/theme_editor.php:295
927
  msgid "Language"
928
  msgstr "Dil"
929
 
930
- #: ../util/tag-editor/crayon_tag_editor_wp.class.php:196
931
  msgid "Line Range"
932
  msgstr "Satır Aralığı"
933
 
934
  # @ crayon-syntax-highlighter
935
- #: ../util/tag-editor/crayon_tag_editor_wp.class.php:197
936
  msgid "(e.g. 3-5 or 3)"
937
  msgstr "(örn. 1,2,3-5)"
938
 
939
  # @ crayon-syntax-highlighter
940
- #: ../util/tag-editor/crayon_tag_editor_wp.class.php:198
941
  msgid "Marked Lines"
942
  msgstr "İşaretli Satırlar"
943
 
944
  # @ crayon-syntax-highlighter
945
- #: ../util/tag-editor/crayon_tag_editor_wp.class.php:199
946
  msgid "(e.g. 1,2,3-5)"
947
  msgstr "(örn. 1,2,3-5)"
948
 
949
  # @ crayon-syntax-highlighter
950
- #: ../util/tag-editor/crayon_tag_editor_wp.class.php:208
951
  msgid "Clear"
952
  msgstr "Temizle"
953
 
954
  # @ crayon-syntax-highlighter
955
- #: ../util/tag-editor/crayon_tag_editor_wp.class.php:212
956
  msgid "Paste your code here, or type it in manually."
957
  msgstr "Kodu buraya yapıştır, ya da onu el ile yaz."
958
 
959
  # @ crayon-syntax-highlighter
960
- #: ../util/tag-editor/crayon_tag_editor_wp.class.php:216
961
  msgid "URL"
962
  msgstr "URL"
963
 
964
  # @ crayon-syntax-highlighter
965
- #: ../util/tag-editor/crayon_tag_editor_wp.class.php:218
966
  msgid "Relative local path or absolute URL"
967
  msgstr "İlgili yerel yol veya tam URL"
968
 
969
  # @ crayon-syntax-highlighter
970
- #: ../util/tag-editor/crayon_tag_editor_wp.class.php:221
971
  msgid ""
972
  "If the URL fails to load, the code above will be shown instead. If no code "
973
  "exists, an error is shown."
@@ -976,7 +976,7 @@ msgstr ""
976
  "herhangi bir kod yoksa, bir hata görünür."
977
 
978
  # @ crayon-syntax-highlighter
979
- #: ../util/tag-editor/crayon_tag_editor_wp.class.php:223
980
  #, php-format
981
  msgid ""
982
  "If a relative local path is given it will be appended to %s - which is "
@@ -986,17 +986,17 @@ msgstr ""
986
  "Ayarlar &gt; Dosyalar%s içinde belirtildiği gibi."
987
 
988
  # @ crayon-syntax-highlighter
989
- #: ../util/tag-editor/crayon_tag_editor_wp.class.php:250
990
  msgid "Change the following settings to override their global values."
991
  msgstr "Genel değerleri geçersiz kılmak için aşağıdaki ayarları değiştirin."
992
 
993
  # @ crayon-syntax-highlighter
994
- #: ../util/tag-editor/crayon_tag_editor_wp.class.php:252
995
  msgid "Only changes (shown yellow) are applied."
996
  msgstr "Sadece değişiklikler (sarı ile gösterilir) uygulanır."
997
 
998
  # @ crayon-syntax-highlighter
999
- #: ../util/tag-editor/crayon_tag_editor_wp.class.php:254
1000
  #, php-format
1001
  msgid ""
1002
  "Future changes to the global settings under %sCrayon &gt; Settings%s won't "
@@ -1005,243 +1005,247 @@ msgstr ""
1005
  "%sCrayon &gt; Ayarlar%s altındaki genel ayarların gelecek değişiklikleri, "
1006
  "geçersiz ayarları etkilemez."
1007
 
1008
- #: ../util/theme-editor/theme_editor.php:177
1009
  msgid "User-Defined Theme"
1010
  msgstr "Kullanıcı-Tanımlı Tema"
1011
 
1012
  # @ crayon-syntax-highlighter
1013
- #: ../util/theme-editor/theme_editor.php:178
1014
  msgid "Stock Theme"
1015
  msgstr "Hazır Tema"
1016
 
1017
- #: ../util/theme-editor/theme_editor.php:179
1018
  msgid "Success!"
1019
  msgstr "Başarılı!"
1020
 
1021
- #: ../util/theme-editor/theme_editor.php:180
1022
  msgid "Failed!"
1023
  msgstr "Başarısız!"
1024
 
1025
- #: ../util/theme-editor/theme_editor.php:182
1026
  #, php-format
1027
  msgid "Are you sure you want to delete the \"%s\" theme?"
1028
  msgstr "\"%s\" temasını silmek istediğinizden emin misiniz?"
1029
 
1030
- #: ../util/theme-editor/theme_editor.php:183
1031
  msgid "Delete failed!"
1032
  msgstr "Silme başarısız!"
1033
 
1034
- #: ../util/theme-editor/theme_editor.php:185
1035
  msgid "New Name"
1036
  msgstr "Yeni İsim"
1037
 
1038
- #: ../util/theme-editor/theme_editor.php:186
1039
  msgid "Duplicate failed!"
1040
  msgstr "Çoğaltma başarısız!"
1041
 
1042
- #: ../util/theme-editor/theme_editor.php:187
1043
  msgid "Please check the log for details."
1044
  msgstr "Lütfen ayrıntılar için günlüğü kontrol edin."
1045
 
1046
- #: ../util/theme-editor/theme_editor.php:188
1047
  msgid "Are you sure you want to discard all changes?"
1048
  msgstr "Tüm değişiklikleri iptal etmek istediğinizden emin misiniz?"
1049
 
1050
- #: ../util/theme-editor/theme_editor.php:189
1051
  #, php-format
1052
  msgid "Editing Theme: %s"
1053
  msgstr "Tema Düzenleme: %s"
1054
 
1055
- #: ../util/theme-editor/theme_editor.php:190
1056
  #, php-format
1057
  msgid "Creating Theme: %s"
1058
  msgstr "Tema Oluşturma: %s"
1059
 
1060
- #: ../util/theme-editor/theme_editor.php:191
1061
  msgid "Submit Your Theme"
1062
  msgstr "Temanızı Gönderin"
1063
 
1064
- #: ../util/theme-editor/theme_editor.php:192
1065
  msgid "Submit your User Theme for inclusion as a Stock Theme in Crayon!"
1066
  msgstr ""
1067
  "Crayon içine bir Hazır Tema olarak eklenmesi için Kullanıcı Temanızı "
1068
  "gönderin!"
1069
 
1070
- #: ../util/theme-editor/theme_editor.php:193
1071
  msgid "Message"
1072
  msgstr "Mesaj"
1073
 
1074
- #: ../util/theme-editor/theme_editor.php:194
1075
  msgid "Please include this theme in Crayon!"
1076
  msgstr "Lütfen bu temayı Crayon içine dahil edin!"
1077
 
1078
  # @ crayon-syntax-highlighter
1079
- #: ../util/theme-editor/theme_editor.php:195
1080
  msgid "Submit was successful."
1081
  msgstr "Gönderme başarılı."
1082
 
1083
- #: ../util/theme-editor/theme_editor.php:196
1084
  msgid "Submit failed!"
1085
  msgstr "Gönderme başarısız!"
1086
 
1087
- #: ../util/theme-editor/theme_editor.php:268
1088
  msgid "Information"
1089
  msgstr "Bilgi"
1090
 
1091
  # @ crayon-syntax-highlighter
1092
- #: ../util/theme-editor/theme_editor.php:269
1093
  msgid "Highlighting"
1094
  msgstr "Vurgulama"
1095
 
1096
- #: ../util/theme-editor/theme_editor.php:270
1097
  msgid "Frame"
1098
  msgstr "Çerçeve"
1099
 
1100
  # @ crayon-syntax-highlighter
1101
- #: ../util/theme-editor/theme_editor.php:272
1102
  msgid "Line Numbers"
1103
  msgstr "Satır Numaralarına Geç"
1104
 
1105
- #: ../util/theme-editor/theme_editor.php:275
1106
  msgid "Background"
1107
  msgstr "Arkaplan"
1108
 
1109
- #: ../util/theme-editor/theme_editor.php:276
1110
  msgid "Text"
1111
  msgstr "Metin"
1112
 
1113
- #: ../util/theme-editor/theme_editor.php:277
1114
  msgid "Border"
1115
  msgstr "Kenarlık"
1116
 
1117
- #: ../util/theme-editor/theme_editor.php:278
1118
  msgid "Top Border"
1119
  msgstr "Üst Kenar"
1120
 
1121
  # @ crayon-syntax-highlighter
1122
- #: ../util/theme-editor/theme_editor.php:279
1123
  msgid "Bottom Border"
1124
  msgstr "Alt Kenarlık"
1125
 
1126
- #: ../util/theme-editor/theme_editor.php:281
 
 
 
 
1127
  msgid "Hover"
1128
  msgstr "Vurgu"
1129
 
1130
- #: ../util/theme-editor/theme_editor.php:282
1131
  msgid "Active"
1132
  msgstr "Aktif"
1133
 
1134
- #: ../util/theme-editor/theme_editor.php:283
1135
  msgid "Pressed"
1136
  msgstr "Sıkıştırıldı"
1137
 
1138
- #: ../util/theme-editor/theme_editor.php:284
1139
  msgid "Pressed & Hover"
1140
  msgstr "Sıkıştırma & Vurgu"
1141
 
1142
- #: ../util/theme-editor/theme_editor.php:285
1143
  msgid "Pressed & Active"
1144
  msgstr "Sıkıştırma & Aktif"
1145
 
1146
- #: ../util/theme-editor/theme_editor.php:288
1147
  msgid "Buttons"
1148
  msgstr "Butonlar"
1149
 
1150
- #: ../util/theme-editor/theme_editor.php:290
1151
  msgid "Normal"
1152
  msgstr "Normal"
1153
 
1154
- #: ../util/theme-editor/theme_editor.php:292
1155
  msgid "Striped"
1156
  msgstr "Şeritli"
1157
 
1158
  # @ crayon-syntax-highlighter
1159
- #: ../util/theme-editor/theme_editor.php:293
1160
  msgid "Marked"
1161
  msgstr "İşaretlendi"
1162
 
1163
- #: ../util/theme-editor/theme_editor.php:294
1164
  msgid "Striped & Marked"
1165
  msgstr "Şeritli & İşaretli"
1166
 
1167
  # @ crayon-syntax-highlighter
1168
- #: ../util/theme-editor/theme_editor.php:324
1169
  msgid "Back To Settings"
1170
  msgstr "Ayarlara Geri Dön"
1171
 
1172
- #: ../util/theme-editor/theme_editor.php:363
1173
  msgid "Comment"
1174
  msgstr "Yorum"
1175
 
1176
- #: ../util/theme-editor/theme_editor.php:364
1177
  msgid "String"
1178
  msgstr "Dize"
1179
 
1180
- #: ../util/theme-editor/theme_editor.php:365
1181
  msgid "Preprocessor"
1182
  msgstr "Ön işlemci"
1183
 
1184
  # @ crayon-syntax-highlighter
1185
- #: ../util/theme-editor/theme_editor.php:366
1186
  msgid "Tag"
1187
  msgstr "Etiket"
1188
 
1189
- #: ../util/theme-editor/theme_editor.php:367
1190
  msgid "Keyword"
1191
  msgstr "Anahtar kelime"
1192
 
1193
- #: ../util/theme-editor/theme_editor.php:368
1194
  msgid "Statement"
1195
  msgstr "Açıklama"
1196
 
1197
- #: ../util/theme-editor/theme_editor.php:369
1198
  msgid "Reserved"
1199
  msgstr "Rezerve"
1200
 
1201
- #: ../util/theme-editor/theme_editor.php:370
1202
  msgid "Type"
1203
  msgstr "Tür"
1204
 
1205
- #: ../util/theme-editor/theme_editor.php:371
1206
  msgid "Modifier"
1207
  msgstr "Değiştirici"
1208
 
1209
- #: ../util/theme-editor/theme_editor.php:372
1210
  msgid "Identifier"
1211
  msgstr "Tanımlayıcı"
1212
 
1213
- #: ../util/theme-editor/theme_editor.php:373
1214
  msgid "Entity"
1215
  msgstr "Öğe"
1216
 
1217
- #: ../util/theme-editor/theme_editor.php:374
1218
  msgid "Variable"
1219
  msgstr "Değişken"
1220
 
1221
- #: ../util/theme-editor/theme_editor.php:375
1222
  msgid "Constant"
1223
  msgstr "Sabit"
1224
 
1225
- #: ../util/theme-editor/theme_editor.php:376
1226
  msgid "Operator"
1227
  msgstr "Operatör"
1228
 
1229
- #: ../util/theme-editor/theme_editor.php:377
1230
  msgid "Symbol"
1231
  msgstr "Sembol"
1232
 
1233
- #: ../util/theme-editor/theme_editor.php:378
1234
  msgid "Notation"
1235
  msgstr "Notasyon"
1236
 
1237
- #: ../util/theme-editor/theme_editor.php:379
1238
  msgid "Faded"
1239
  msgstr "Soluk"
1240
 
1241
- #: ../util/theme-editor/theme_editor.php:380
1242
  msgid "HTML"
1243
  msgstr "HTML"
1244
 
1245
- #: ../util/theme-editor/theme_editor.php:507
1246
  msgid "(Used for Copy/Paste)"
1247
  msgstr "(Kopyala/Yapıştır için kullanılır)"
2
  msgstr ""
3
  "Project-Id-Version: crayon-syntax-highlighter\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2013-01-24 16:29+0200\n"
6
  "PO-Revision-Date: \n"
7
  "Last-Translator: HakanEr <hakanerwptr@gmail.com>\n"
8
  "Language-Team: hakaner <hakanerwptr@gmail.com>\n"
22
  "X-Poedit-SearchPath-1: ..\n"
23
 
24
  # @ crayon-syntax-highlighter
25
+ #: ../crayon_formatter.class.php:283
26
+ msgid "Toggle Line Numbers"
27
+ msgstr "Satır Numaralarına Geç"
28
+
29
+ # @ crayon-syntax-highlighter
30
+ #: ../crayon_formatter.class.php:287
31
  msgid "Toggle Plain Code"
32
  msgstr "Düz Koda Geç"
33
 
34
  # @ crayon-syntax-highlighter
35
+ #: ../crayon_formatter.class.php:291
36
  msgid "Toggle Line Wrap"
37
  msgstr "Satır Sarımına Geç"
38
 
39
  # @ crayon-syntax-highlighter
40
+ #: ../crayon_formatter.class.php:295 ../crayon_formatter.class.php:299
41
  msgid "Expand Code"
42
  msgstr "Kodu Genişlet"
43
 
44
  # @ crayon-syntax-highlighter
45
+ #: ../crayon_formatter.class.php:303
 
 
 
 
 
 
 
 
 
 
 
46
  msgid "Open Code In New Window"
47
  msgstr "Kodu Yeni Pencerede Aç"
48
 
49
  # @ crayon-syntax-highlighter
50
+ #: ../crayon_formatter.class.php:330
 
 
 
 
 
51
  msgid "Contains Mixed Languages"
52
  msgstr "Karışık Diller içerir"
53
 
54
  # @ crayon-syntax-highlighter
55
+ #: ../crayon_settings.class.php:147
56
  msgid "Hourly"
57
  msgstr "Saatlik"
58
 
59
  # @ crayon-syntax-highlighter
60
+ #: ../crayon_settings.class.php:147
61
  msgid "Daily"
62
  msgstr "Günlük"
63
 
64
  # @ crayon-syntax-highlighter
65
+ #: ../crayon_settings.class.php:148
66
  msgid "Weekly"
67
  msgstr "Haftalık"
68
 
69
  # @ crayon-syntax-highlighter
70
+ #: ../crayon_settings.class.php:148
71
  msgid "Monthly"
72
  msgstr "Aylık"
73
 
74
  # @ crayon-syntax-highlighter
75
+ #: ../crayon_settings.class.php:149
76
  msgid "Immediately"
77
  msgstr "Hemen"
78
 
79
  # @ crayon-syntax-highlighter
80
+ #: ../crayon_settings.class.php:159 ../crayon_settings.class.php:163
81
  msgid "Max"
82
  msgstr "Max"
83
 
84
  # @ crayon-syntax-highlighter
85
+ #: ../crayon_settings.class.php:159 ../crayon_settings.class.php:163
86
  msgid "Min"
87
  msgstr "Min"
88
 
89
  # @ crayon-syntax-highlighter
90
+ #: ../crayon_settings.class.php:159 ../crayon_settings.class.php:163
91
  msgid "Static"
92
  msgstr "Sabit"
93
 
94
  # @ crayon-syntax-highlighter
95
+ #: ../crayon_settings.class.php:161 ../crayon_settings.class.php:165
96
+ #: ../crayon_settings_wp.class.php:737 ../crayon_settings_wp.class.php:746
97
+ #: ../crayon_settings_wp.class.php:1020
98
  msgid "Pixels"
99
  msgstr "Piksel"
100
 
101
  # @ crayon-syntax-highlighter
102
+ #: ../crayon_settings.class.php:161 ../crayon_settings.class.php:165
103
  msgid "Percent"
104
  msgstr "Yüzde"
105
 
106
  # @ crayon-syntax-highlighter
107
+ #: ../crayon_settings.class.php:174
108
  msgid "None"
109
  msgstr "Yok"
110
 
111
  # @ crayon-syntax-highlighter
112
+ #: ../crayon_settings.class.php:174
113
  msgid "Left"
114
  msgstr "Sol"
115
 
116
  # @ crayon-syntax-highlighter
117
+ #: ../crayon_settings.class.php:174
118
  msgid "Center"
119
  msgstr "Merkez"
120
 
121
  # @ crayon-syntax-highlighter
122
+ #: ../crayon_settings.class.php:174
123
  msgid "Right"
124
  msgstr "Sağ"
125
 
126
  # @ crayon-syntax-highlighter
127
+ #: ../crayon_settings.class.php:176 ../crayon_settings.class.php:200
128
  msgid "On MouseOver"
129
  msgstr "Fare Üstündeyken"
130
 
131
  # @ crayon-syntax-highlighter
132
+ #: ../crayon_settings.class.php:176 ../crayon_settings.class.php:182
133
  msgid "Always"
134
  msgstr "Herzaman"
135
 
136
  # @ crayon-syntax-highlighter
137
+ #: ../crayon_settings.class.php:176 ../crayon_settings.class.php:182
138
  msgid "Never"
139
  msgstr "Asla"
140
 
141
  # @ crayon-syntax-highlighter
142
+ #: ../crayon_settings.class.php:182
143
  msgid "When Found"
144
  msgstr "Bulunduğunda"
145
 
146
  # @ crayon-syntax-highlighter
147
+ #: ../crayon_settings.class.php:200
148
  msgid "On Double Click"
149
  msgstr "Çift Tık ile aç"
150
 
151
  # @ crayon-syntax-highlighter
152
+ #: ../crayon_settings.class.php:200
153
  msgid "On Single Click"
154
  msgstr "Tek Tık ile aç"
155
 
156
  # @ crayon-syntax-highlighter
157
+ #: ../crayon_settings.class.php:200
158
  msgid "Disable Mouse Events"
159
  msgstr "Fare Etkinliği Devre Dışı"
160
 
161
  # @ crayon-syntax-highlighter
162
+ #: ../crayon_settings.class.php:207
163
  msgid "An error has occurred. Please try again later."
164
  msgstr "Bir hata meydana geldi. Daha sonra tekrar deneyin."
165
 
166
  # @ crayon-syntax-highlighter
167
+ #: ../crayon_settings_wp.class.php:52 ../crayon_settings_wp.class.php:193
168
+ #: ../crayon_settings_wp.class.php:1210
169
+ #: ../util/tag-editor/crayon_tag_editor_wp.class.php:242
170
  msgid "Settings"
171
  msgstr "Ayarlar"
172
 
173
+ # @ crayon-syntax-highlighter
174
+ #: ../crayon_settings_wp.class.php:124
175
+ #, php-format
176
+ msgid "Press %s to Copy, %s to Paste"
177
+ msgstr "%s ile Kopyala, %s ile Yapıştır"
178
+
179
+ # @ crayon-syntax-highlighter
180
+ #: ../crayon_settings_wp.class.php:125
181
+ msgid "Click To Expand Code"
182
+ msgstr "Kodu Genişletmek İçin Tıkla"
183
+
184
+ #: ../crayon_settings_wp.class.php:161
185
  msgid "Prompt"
186
  msgstr "Komut İstemi"
187
 
188
+ #: ../crayon_settings_wp.class.php:162
189
  msgid "Value"
190
  msgstr "Değer"
191
 
192
+ #: ../crayon_settings_wp.class.php:163
193
  msgid "Alert"
194
  msgstr "İkaz"
195
 
196
  # @ crayon-syntax-highlighter
197
+ #: ../crayon_settings_wp.class.php:164 ../crayon_settings_wp.class.php:883
198
  msgid "No"
199
  msgstr "Hayır"
200
 
201
+ #: ../crayon_settings_wp.class.php:165 ../crayon_settings_wp.class.php:883
202
  msgid "Yes"
203
  msgstr "Evet"
204
 
205
+ #: ../crayon_settings_wp.class.php:166
206
  msgid "Confirm"
207
  msgstr "Onayla"
208
 
209
  # @ crayon-syntax-highlighter
210
+ #: ../crayon_settings_wp.class.php:167
211
  msgid "Change Code"
212
  msgstr "Kodu Değiştir"
213
 
214
  # @ crayon-syntax-highlighter
215
+ #: ../crayon_settings_wp.class.php:175
216
  msgid "You do not have sufficient permissions to access this page."
217
  msgstr "Bu sayfaya erişmek için yeterli izinlere sahip değilsiniz."
218
 
219
  # @ crayon-syntax-highlighter
220
+ #: ../crayon_settings_wp.class.php:208
221
  msgid "Save Changes"
222
  msgstr "Kaydet"
223
 
224
  # @ crayon-syntax-highlighter
225
+ #: ../crayon_settings_wp.class.php:215
226
  msgid "Reset Settings"
227
  msgstr "Ayarları Sıfırla"
228
 
229
  # @ crayon-syntax-highlighter
230
+ #: ../crayon_settings_wp.class.php:473
231
  msgid "General"
232
  msgstr "Genel"
233
 
234
  # @ crayon-syntax-highlighter
235
+ #: ../crayon_settings_wp.class.php:474
236
  msgid "Theme"
237
  msgstr "Tema"
238
 
239
  # @ crayon-syntax-highlighter
240
+ #: ../crayon_settings_wp.class.php:475
241
  msgid "Font"
242
  msgstr "Font"
243
 
244
  # @ crayon-syntax-highlighter
245
+ #: ../crayon_settings_wp.class.php:476
246
  msgid "Metrics"
247
  msgstr "Ölçüler"
248
 
249
  # @ crayon-syntax-highlighter
250
+ #: ../crayon_settings_wp.class.php:477
251
+ #: ../util/theme-editor/theme_editor.php:289
252
  msgid "Toolbar"
253
  msgstr "Araç Çubuğu"
254
 
255
  # @ crayon-syntax-highlighter
256
+ #: ../crayon_settings_wp.class.php:478
257
+ #: ../util/theme-editor/theme_editor.php:287
258
  msgid "Lines"
259
  msgstr "Satırlar"
260
 
261
  # @ crayon-syntax-highlighter
262
+ #: ../crayon_settings_wp.class.php:479
263
+ #: ../util/tag-editor/crayon_tag_editor_wp.class.php:202
264
  msgid "Code"
265
  msgstr "Kod"
266
 
267
  # @ crayon-syntax-highlighter
268
+ #: ../crayon_settings_wp.class.php:480
269
  msgid "Tags"
270
  msgstr "Etiketler"
271
 
272
  # @ crayon-syntax-highlighter
273
+ #: ../crayon_settings_wp.class.php:481
274
  msgid "Languages"
275
  msgstr "Diller"
276
 
277
  # @ crayon-syntax-highlighter
278
+ #: ../crayon_settings_wp.class.php:482
279
  msgid "Files"
280
  msgstr "Dosyalar"
281
 
282
+ #: ../crayon_settings_wp.class.php:483
283
  msgid "Posts"
284
  msgstr "Yazılar"
285
 
286
  # @ crayon-syntax-highlighter
287
+ #: ../crayon_settings_wp.class.php:484
288
  msgid "Tag Editor"
289
  msgstr "Etiket Düzenleyici"
290
 
291
  # @ crayon-syntax-highlighter
292
+ #: ../crayon_settings_wp.class.php:485
293
  msgid "Misc"
294
  msgstr "Çeşitli"
295
 
296
  # @ crayon-syntax-highlighter
297
+ #: ../crayon_settings_wp.class.php:488
298
  msgid "Debug"
299
  msgstr "Hata Ayıklama"
300
 
301
  # @ crayon-syntax-highlighter
302
+ #: ../crayon_settings_wp.class.php:489
303
  msgid "Errors"
304
  msgstr "Hatalar"
305
 
306
  # @ crayon-syntax-highlighter
307
+ #: ../crayon_settings_wp.class.php:490
308
  msgid "Log"
309
  msgstr "Günlük"
310
 
311
  # @ crayon-syntax-highlighter
312
+ #: ../crayon_settings_wp.class.php:493
313
  msgid "About"
314
  msgstr "Hakkında"
315
 
316
  # @ crayon-syntax-highlighter
317
+ #: ../crayon_settings_wp.class.php:714
318
  msgid "Height"
319
  msgstr "Yükseklik"
320
 
321
  # @ crayon-syntax-highlighter
322
+ #: ../crayon_settings_wp.class.php:720
323
  msgid "Width"
324
  msgstr "Genişlik"
325
 
326
  # @ crayon-syntax-highlighter
327
+ #: ../crayon_settings_wp.class.php:726
328
  msgid "Top Margin"
329
  msgstr "Üst Boşluk"
330
 
331
  # @ crayon-syntax-highlighter
332
+ #: ../crayon_settings_wp.class.php:727
333
  msgid "Bottom Margin"
334
  msgstr "Alt Boşluk"
335
 
336
  # @ crayon-syntax-highlighter
337
+ #: ../crayon_settings_wp.class.php:728 ../crayon_settings_wp.class.php:733
338
  msgid "Left Margin"
339
  msgstr "Sol Boşluk"
340
 
341
  # @ crayon-syntax-highlighter
342
+ #: ../crayon_settings_wp.class.php:729 ../crayon_settings_wp.class.php:733
343
  msgid "Right Margin"
344
  msgstr "Sağ Boşluk"
345
 
346
  # @ crayon-syntax-highlighter
347
+ #: ../crayon_settings_wp.class.php:739
348
  msgid "Horizontal Alignment"
349
  msgstr "Yatay Hizalama"
350
 
351
  # @ crayon-syntax-highlighter
352
+ #: ../crayon_settings_wp.class.php:742
353
  msgid "Allow floating elements to surround Crayon"
354
  msgstr "Geçişli elementleri Crayon çevrelemeye izin ver"
355
 
356
  # @ crayon-syntax-highlighter
357
+ #: ../crayon_settings_wp.class.php:744
358
  msgid "Inline Margin"
359
  msgstr "Satıriçi Boşluk"
360
 
361
  # @ crayon-syntax-highlighter
362
+ #: ../crayon_settings_wp.class.php:752
363
  msgid "Display the Toolbar"
364
  msgstr "Araç çubuğunu göster"
365
 
366
  # @ crayon-syntax-highlighter
367
+ #: ../crayon_settings_wp.class.php:755
368
  msgid "Overlay the toolbar on code rather than push it down when possible"
369
  msgstr "Araç çubuğunu mümkünse kodları aşağı itmek yerine üstte göster"
370
 
371
  # @ crayon-syntax-highlighter
372
+ #: ../crayon_settings_wp.class.php:756
373
  msgid "Toggle the toolbar on single click when it is overlayed"
374
  msgstr "Araç çubuğu üste çıktığında tek tıkla gizle"
375
 
376
  # @ crayon-syntax-highlighter
377
+ #: ../crayon_settings_wp.class.php:757
378
  msgid "Delay hiding the toolbar on MouseOut"
379
  msgstr "Fare dışa çıktığında araç çubuğunu gizlemek için bekle"
380
 
381
  # @ crayon-syntax-highlighter
382
+ #: ../crayon_settings_wp.class.php:759
383
  msgid "Display the title when provided"
384
  msgstr "Varsa başlığı görüntüle"
385
 
386
  # @ crayon-syntax-highlighter
387
+ #: ../crayon_settings_wp.class.php:760
388
  msgid "Display the language"
389
  msgstr "Dilleri göster"
390
 
391
  # @ crayon-syntax-highlighter
392
+ #: ../crayon_settings_wp.class.php:767
393
  msgid "Display striped code lines"
394
  msgstr "Şeritli kod satırını göster"
395
 
396
  # @ crayon-syntax-highlighter
397
+ #: ../crayon_settings_wp.class.php:768
398
  msgid "Enable line marking for important lines"
399
  msgstr "Önemli satırlar için satır işaretleme etkin"
400
 
401
+ #: ../crayon_settings_wp.class.php:769
402
  msgid "Enable line ranges for showing only parts of code"
403
  msgstr "Kodun sadece bir parçasını gösteren satır aralıklarını etkinleştir"
404
 
405
  # @ crayon-syntax-highlighter
406
+ #: ../crayon_settings_wp.class.php:770
407
  msgid "Display line numbers by default"
408
  msgstr "Varsayılan olarak satır numaralarını göster"
409
 
410
  # @ crayon-syntax-highlighter
411
+ #: ../crayon_settings_wp.class.php:771
412
  msgid "Enable line number toggling"
413
  msgstr "Satır numaraları geçişi etkin"
414
 
415
  # @ crayon-syntax-highlighter
416
+ #: ../crayon_settings_wp.class.php:772
417
  msgid "Wrap lines by default"
418
  msgstr "Varsayılan olarak satırları sar"
419
 
420
  # @ crayon-syntax-highlighter
421
+ #: ../crayon_settings_wp.class.php:773
422
  msgid "Enable line wrap toggling"
423
  msgstr "Satır sarıma geçişi etkin"
424
 
425
  # @ crayon-syntax-highlighter
426
+ #: ../crayon_settings_wp.class.php:774
427
  msgid "Start line numbers from"
428
  msgstr "Satır numarasını buradan başlat"
429
 
430
  # @ crayon-syntax-highlighter
431
+ #: ../crayon_settings_wp.class.php:785
432
  msgid "When no language is provided, use the fallback"
433
  msgstr "Belirlenmiş bir dil olmadığında son çareyi kullan"
434
 
435
  # @ crayon-syntax-highlighter
436
+ #: ../crayon_settings_wp.class.php:791
437
  #, php-format
438
  msgid "%d language has been detected."
439
  msgstr "%d dil tespit edildi."
440
 
441
  # @ crayon-syntax-highlighter
442
+ #: ../crayon_settings_wp.class.php:792
443
  msgid "Parsing was successful"
444
  msgstr "Ayrıştırma başarılı"
445
 
446
  # @ crayon-syntax-highlighter
447
+ #: ../crayon_settings_wp.class.php:792
448
  msgid "Parsing was unsuccessful"
449
  msgstr "Ayrıştırma başarılı değil"
450
 
451
  # @ crayon-syntax-highlighter
452
+ #: ../crayon_settings_wp.class.php:798
453
  #, php-format
454
  msgid "The selected language with id %s could not be loaded"
455
  msgstr "ID %s ile seçilen dil yüklenemedi"
456
 
457
  # @ crayon-syntax-highlighter
458
+ #: ../crayon_settings_wp.class.php:801
459
  msgid "Show Languages"
460
  msgstr "Dilleri Göster"
461
 
462
+ #: ../crayon_settings_wp.class.php:837
463
  msgid "Show Crayon Posts"
464
  msgstr "Crayon Yazıları Göster"
465
 
466
+ #: ../crayon_settings_wp.class.php:838
467
  msgid "Refresh"
468
  msgstr "Yenile"
469
 
470
+ #: ../crayon_settings_wp.class.php:863
471
  msgid "ID"
472
  msgstr "ID"
473
 
474
  # @ crayon-syntax-highlighter
475
+ #: ../crayon_settings_wp.class.php:863
476
+ #: ../util/tag-editor/crayon_tag_editor_wp.class.php:179
477
+ #: ../util/theme-editor/theme_editor.php:304
478
  msgid "Title"
479
  msgstr "Başlık"
480
 
481
+ #: ../crayon_settings_wp.class.php:863
482
  msgid "Posted"
483
  msgstr "Yayınlandı"
484
 
485
+ #: ../crayon_settings_wp.class.php:863
486
  msgid "Modifed"
487
  msgstr "Değiştirildi"
488
 
489
+ #: ../crayon_settings_wp.class.php:863
490
  msgid "Contains Legacy Tags?"
491
  msgstr "Eski Etiketleri İçersin?"
492
 
493
+ #: ../crayon_settings_wp.class.php:978
494
  msgid "Edit"
495
  msgstr "Düzenle"
496
 
497
+ #: ../crayon_settings_wp.class.php:978
498
+ #: ../util/theme-editor/theme_editor.php:198
499
  msgid "Duplicate"
500
  msgstr "Çoğalt"
501
 
502
+ #: ../crayon_settings_wp.class.php:978
503
  msgid "Submit"
504
  msgstr "Gönder"
505
 
506
+ #: ../crayon_settings_wp.class.php:979
507
+ #: ../util/theme-editor/theme_editor.php:195
508
  msgid "Delete"
509
  msgstr "Sil"
510
 
511
  # @ crayon-syntax-highlighter
512
+ #: ../crayon_settings_wp.class.php:981
513
  msgid "Loading..."
514
  msgstr "Yükleniyor..."
515
 
516
+ #: ../crayon_settings_wp.class.php:983
517
  msgid "Duplicate a Stock Theme into a User Theme to allow editing."
518
  msgstr ""
519
  "Düzenleyebilmek için, bir Kullanıcı Teması içine bir Hazır Tema çoğaltın."
520
 
521
  # @ crayon-syntax-highlighter
522
+ #: ../crayon_settings_wp.class.php:994
523
  #, php-format
524
  msgid ""
525
  "Change the %1$sfallback language%2$s to change the sample code or %3$schange "
529
  "el ile%4$s değiştirin. 5-7 satırlar işaretli."
530
 
531
  # @ crayon-syntax-highlighter
532
+ #: ../crayon_settings_wp.class.php:1001
533
  msgid "Enable Live Preview"
534
  msgstr "Ön izleme etkin"
535
 
536
  # @ crayon-syntax-highlighter
537
+ #: ../crayon_settings_wp.class.php:1003
538
  msgid "Enqueue themes in the header (more efficient)."
539
  msgstr "Temaları header içinde kuyrukla (daha etkin)."
540
 
541
  # @ crayon-syntax-highlighter
542
+ #: ../crayon_settings_wp.class.php:1006
543
  #, php-format
544
  msgid "The selected theme with id %s could not be loaded"
545
  msgstr "ID %s ile seçilen tema yüklenemedi"
546
 
547
  # @ crayon-syntax-highlighter
548
+ #: ../crayon_settings_wp.class.php:1018
549
  msgid "Custom Font Size"
550
  msgstr "Kişisel Font Boyutu"
551
 
552
  # @ crayon-syntax-highlighter
553
+ #: ../crayon_settings_wp.class.php:1023
554
  #, php-format
555
  msgid "The selected font with id %s could not be loaded"
556
  msgstr "ID %s ile seçilen font yüklenemedi"
557
 
558
  # @ crayon-syntax-highlighter
559
+ #: ../crayon_settings_wp.class.php:1029
560
  msgid "Enqueue fonts in the header (more efficient)."
561
  msgstr "Fontları header içinde kuyrukla (daha etkin)."
562
 
563
  # @ crayon-syntax-highlighter
564
+ #: ../crayon_settings_wp.class.php:1034
565
  msgid "Enable plain code view and display"
566
  msgstr "Düz kod görünümü ve görüntüleme etkin"
567
 
568
  # @ crayon-syntax-highlighter
569
+ #: ../crayon_settings_wp.class.php:1037
570
  msgid "Enable plain code toggling"
571
  msgstr "Düz kod geçişi etkin"
572
 
573
  # @ crayon-syntax-highlighter
574
+ #: ../crayon_settings_wp.class.php:1038
575
  msgid "Show the plain code by default"
576
  msgstr "Düz kodu varsayılan olarak göster"
577
 
578
  # @ crayon-syntax-highlighter
579
+ #: ../crayon_settings_wp.class.php:1039
580
  msgid "Enable code copy/paste"
581
  msgstr "Kod kopyala/yapıştır etkin"
582
 
583
  # @ crayon-syntax-highlighter
584
+ #: ../crayon_settings_wp.class.php:1041
585
  msgid "Enable opening code in a window"
586
  msgstr "Kodları bir pencerede açma etkin"
587
 
588
  # @ crayon-syntax-highlighter
589
+ #: ../crayon_settings_wp.class.php:1042
590
  msgid "Always display scrollbars"
591
  msgstr "Kaydırma çubuğu her zaman göster"
592
 
593
+ #: ../crayon_settings_wp.class.php:1043
594
+ msgid "Minimize code"
595
+ msgstr "Kodu küçült"
596
+
597
+ #: ../crayon_settings_wp.class.php:1044
598
  msgid "Expand code beyond page borders on mouseover"
599
  msgstr "Fare üzerindeyken sayfa sınırları dışında kodu genişlet"
600
 
601
+ #: ../crayon_settings_wp.class.php:1045
602
  msgid "Enable code expanding toggling when possible"
603
  msgstr "Mümkün olduğunda kod genişletme geçişlerini etkinleştir"
604
 
605
  # @ crayon-syntax-highlighter
606
+ #: ../crayon_settings_wp.class.php:1048
607
  msgid "Decode HTML entities in code"
608
  msgstr "HTML varlıkları kod içinde çöz"
609
 
610
  # @ crayon-syntax-highlighter
611
+ #: ../crayon_settings_wp.class.php:1050
612
  msgid "Decode HTML entities in attributes"
613
  msgstr "HTML varlıkları nitelikler içinde çöz"
614
 
615
  # @ crayon-syntax-highlighter
616
+ #: ../crayon_settings_wp.class.php:1052
617
  msgid "Remove whitespace surrounding the shortcode content"
618
  msgstr "Kısakod içeriğini çevreleyen beyaz alanları kaldır"
619
 
620
  # @ crayon-syntax-highlighter
621
+ #: ../crayon_settings_wp.class.php:1054
622
  msgid "Allow Mixed Language Highlighting with delimiters and tags."
623
  msgstr "Sınırlayıcılar ve etiketler ile Karışık Dil Vurgulamaya izin ver."
624
 
625
  # @ crayon-syntax-highlighter
626
+ #: ../crayon_settings_wp.class.php:1056
627
  msgid "Show Mixed Language Icon (+)"
628
  msgstr "Karışık Dil Simgesini Göster (+)"
629
 
630
  # @ crayon-syntax-highlighter
631
+ #: ../crayon_settings_wp.class.php:1058
632
  msgid "Tab size in spaces"
633
  msgstr "Boşluk sekme boyutu"
634
 
635
+ #: ../crayon_settings_wp.class.php:1060
636
  msgid "Blank lines before code:"
637
  msgstr "Kod öncesi boş satırlar:"
638
 
639
+ #: ../crayon_settings_wp.class.php:1062
640
  msgid "Blank lines after code:"
641
  msgstr "Kod sonrası boş satırlar:"
642
 
643
+ # @ crayon-syntax-highlighter
644
+ #: ../crayon_settings_wp.class.php:1067
645
+ msgid "Capture Inline Tags"
646
+ msgstr "Satır içi Etiketleri Yakala"
647
+
648
+ # @ crayon-syntax-highlighter
649
+ #: ../crayon_settings_wp.class.php:1068
650
+ msgid "Wrap Inline Tags"
651
+ msgstr "Satıriçi Etiketleri Sar"
652
+
653
+ # @ crayon-syntax-highlighter
654
+ #: ../crayon_settings_wp.class.php:1069
655
+ msgid "Capture `backquotes` as &lt;code&gt;"
656
+ msgstr "&lt;code&gt; olarak `backquotes` yakalayın"
657
+
658
+ # @ crayon-syntax-highlighter
659
+ #: ../crayon_settings_wp.class.php:1070
660
+ msgid "Capture &lt;pre&gt; tags as Crayons"
661
+ msgstr "&lt;pre&gt; etiketleri Crayons olarak yakala"
662
+
663
+ #: ../crayon_settings_wp.class.php:1072
664
  #, php-format
665
  msgid ""
666
  "Using this markup for Mini Tags and Inline tags is now %sdepreciated%s! Use "
671
  "kullanın ve eski etiketleri dönüştürün."
672
 
673
  # @ crayon-syntax-highlighter
674
+ #: ../crayon_settings_wp.class.php:1073
675
  msgid "Capture Mini Tags like [php][/php] as Crayons."
676
  msgstr "Crayons olarak [php][/php] gibi küçük etiketleri yakala."
677
 
678
  # @ crayon-syntax-highlighter
679
+ #: ../crayon_settings_wp.class.php:1074
680
  msgid "Capture Inline Tags like {php}{/php} inside sentences."
681
  msgstr "Cümle içinde {php}{/php} gibi satıriçi etiketleri yakalayın."
682
 
683
  # @ crayon-syntax-highlighter
684
+ #: ../crayon_settings_wp.class.php:1075
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
685
  msgid "Enable [plain][/plain] tag."
686
  msgstr "[plain][/plain] etiketi etkin."
687
 
688
  # @ crayon-syntax-highlighter
689
+ #: ../crayon_settings_wp.class.php:1080
690
  msgid ""
691
  "When loading local files and a relative path is given for the URL, use the "
692
  "absolute path"
695
  "yolu kullan"
696
 
697
  # @ crayon-syntax-highlighter
698
+ #: ../crayon_settings_wp.class.php:1083
699
  msgid "Followed by your relative URL."
700
  msgstr "Bağlantılı URL tarafından izlendi."
701
 
702
+ #: ../crayon_settings_wp.class.php:1090
703
  msgid "Convert Legacy Tags"
704
  msgstr "Eski Etiketleri Dönüştür"
705
 
706
+ #: ../crayon_settings_wp.class.php:1093
707
  msgid "No Legacy Tags Found"
708
  msgstr "Eski Etiketler Bulunamadı"
709
 
710
+ #: ../crayon_settings_wp.class.php:1097
711
  msgid "Encode"
712
  msgstr "Kodla"
713
 
714
  # @ crayon-syntax-highlighter
715
+ #: ../crayon_settings_wp.class.php:1099
716
  #, php-format
717
  msgid ""
718
  "Use %s to separate setting names from values in the &lt;pre&gt; class "
721
  "%s kullanarak &lt;pre&gt; sınıf niteliği içinde ayar adlarını değerlerden "
722
  "ayır"
723
 
724
+ #: ../crayon_settings_wp.class.php:1102
725
  msgid ""
726
  "Display the Tag Editor in any TinyMCE instances on the frontend (e.g. "
727
  "bbPress)"
729
  "Önyüzdeki herhangi bir TinyMCE örneğinde Etiket Düzenleyicisini göster (örn. "
730
  "bbPress)"
731
 
732
+ #: ../crayon_settings_wp.class.php:1103
733
  msgid "Display Tag Editor settings on the frontend"
734
  msgstr "Önyüzde Etiket Düzenleyici ayarlarını göster"
735
 
736
  # @ crayon-syntax-highlighter
737
+ #: ../crayon_settings_wp.class.php:1107
738
  msgid "Clear the cache used to store remote code requests"
739
  msgstr "Uzak kod isteklerini depolamak için ön belleği temizle"
740
 
741
  # @ crayon-syntax-highlighter
742
+ #: ../crayon_settings_wp.class.php:1109
743
  msgid "Clear Now"
744
  msgstr "Şimdi Temizle"
745
 
746
  # @ crayon-syntax-highlighter
747
+ #: ../crayon_settings_wp.class.php:1110
748
  msgid "Attempt to load Crayon's CSS and JavaScript only when needed"
749
  msgstr "Sadece ihtiyaç olduğunda Crayon CSS ve JavaScript yüklemeyi dene"
750
 
751
  # @ crayon-syntax-highlighter
752
+ #: ../crayon_settings_wp.class.php:1111
753
  msgid "Disable enqueuing for page templates that may contain The Loop."
754
  msgstr "Döngü içeren sayfa şablonları için kuyruklama devre dışı."
755
 
756
  # @ crayon-syntax-highlighter
757
+ #: ../crayon_settings_wp.class.php:1112
758
  msgid "Allow Crayons inside comments"
759
  msgstr "Yorum içinde Crayons izini verin"
760
 
761
  # @ crayon-syntax-highlighter
762
+ #: ../crayon_settings_wp.class.php:1113
763
  msgid "Remove Crayons from excerpts"
764
  msgstr "Crayon'ı alıntılardan çıkar"
765
 
766
  # @ crayon-syntax-highlighter
767
+ #: ../crayon_settings_wp.class.php:1114
768
  msgid "Load Crayons only from the main Wordpress query"
769
  msgstr "Sadece ana Wordpress sorgusundan Crayons yükle"
770
 
771
  # @ crayon-syntax-highlighter
772
+ #: ../crayon_settings_wp.class.php:1115
773
  msgid "Disable mouse gestures for touchscreen devices (eg. MouseOver)"
774
  msgstr ""
775
  "Dokunmatik cihazlar için fare hareketlerini devre dışı bırak (örn. Fare "
776
  "Üzerinde)"
777
 
778
  # @ crayon-syntax-highlighter
779
+ #: ../crayon_settings_wp.class.php:1116
780
  msgid "Disable animations"
781
  msgstr "Animasyonlar devre dışı"
782
 
783
  # @ crayon-syntax-highlighter
784
+ #: ../crayon_settings_wp.class.php:1117
785
  msgid "Disable runtime stats"
786
  msgstr "İşlem istatistikleri devre dışı"
787
 
788
  # @ crayon-syntax-highlighter
789
+ #: ../crayon_settings_wp.class.php:1123
790
  msgid "Log errors for individual Crayons"
791
  msgstr "Özgün Crayons hataları günlükle"
792
 
793
  # @ crayon-syntax-highlighter
794
+ #: ../crayon_settings_wp.class.php:1124
795
  msgid "Log system-wide errors"
796
  msgstr "Sistem-geneli hataları günlükle"
797
 
798
  # @ crayon-syntax-highlighter
799
+ #: ../crayon_settings_wp.class.php:1125
800
  msgid "Display custom message for errors"
801
  msgstr "Hatalar için kişisel mesaj göster"
802
 
803
  # @ crayon-syntax-highlighter
804
+ #: ../crayon_settings_wp.class.php:1137
805
  msgid "Show Log"
806
  msgstr "Günlüğü Göster"
807
 
808
  # @ crayon-syntax-highlighter
809
+ #: ../crayon_settings_wp.class.php:1137
810
  msgid "Hide Log"
811
  msgstr "Günlüğü Gizle"
812
 
813
  # @ crayon-syntax-highlighter
814
+ #: ../crayon_settings_wp.class.php:1139
815
  msgid "Clear Log"
816
  msgstr "Günlüğü Temizle"
817
 
818
  # @ crayon-syntax-highlighter
819
+ #: ../crayon_settings_wp.class.php:1140
820
  msgid "Email Admin"
821
  msgstr "Yönetici E-Posta"
822
 
823
  # @ crayon-syntax-highlighter
824
+ #: ../crayon_settings_wp.class.php:1142
825
  msgid "Email Developer"
826
  msgstr "Geliştirici E-Posta"
827
 
828
  # @ crayon-syntax-highlighter
829
+ #: ../crayon_settings_wp.class.php:1144
830
  msgid "The log is currently empty."
831
  msgstr "Günlük şu anda boş."
832
 
833
  # @ crayon-syntax-highlighter
834
+ #: ../crayon_settings_wp.class.php:1146
835
  msgid "The log file exists and is writable."
836
  msgstr "Günlük dosyası var ve yazılabilir."
837
 
838
  # @ crayon-syntax-highlighter
839
+ #: ../crayon_settings_wp.class.php:1146
840
  msgid "The log file exists and is not writable."
841
  msgstr "Günlük dosyası var ve yazılabilir değil."
842
 
843
  # @ crayon-syntax-highlighter
844
+ #: ../crayon_settings_wp.class.php:1148
845
  msgid "The log file does not exist and is not writable."
846
  msgstr "Günlük dosyası yok ve yazılabilir değil."
847
 
848
  # @ crayon-syntax-highlighter
849
+ #: ../crayon_settings_wp.class.php:1158
850
  msgid "Version"
851
  msgstr "Sürüm"
852
 
853
  # @ crayon-syntax-highlighter
854
+ #: ../crayon_settings_wp.class.php:1160
855
  msgid "Developer"
856
  msgstr "Geliştirici"
857
 
858
  # @ crayon-syntax-highlighter
859
+ #: ../crayon_settings_wp.class.php:1161
860
  msgid "Translators"
861
  msgstr "Çevirmenler"
862
 
863
  # @ crayon-syntax-highlighter
864
+ #: ../crayon_settings_wp.class.php:1204
 
 
 
 
 
 
 
 
 
865
  msgid "?"
866
  msgstr "?"
867
 
868
  # @ crayon-syntax-highlighter
869
+ #: ../crayon_settings_wp.class.php:1211
870
+ #: ../util/theme-editor/theme_editor.php:326
871
  msgid "Theme Editor"
872
  msgstr "Tema Düzenleyici"
873
 
874
  # @ crayon-syntax-highlighter
875
+ #: ../crayon_settings_wp.class.php:1212
876
  msgid "Donate"
877
  msgstr "Bağış"
878
 
879
  # @ crayon-syntax-highlighter
880
+ #: ../util/tag-editor/crayon_tag_editor_wp.class.php:62
881
  msgid "Add Crayon Code"
882
  msgstr "Crayon Kod Ekle"
883
 
884
  # @ crayon-syntax-highlighter
885
+ #: ../util/tag-editor/crayon_tag_editor_wp.class.php:63
886
  msgid "Edit Crayon Code"
887
  msgstr "Crayon Kodu Düzenle"
888
 
889
  # @ crayon-syntax-highlighter
890
+ #: ../util/tag-editor/crayon_tag_editor_wp.class.php:64
891
  msgid "Add"
892
  msgstr "Ekle"
893
 
894
  # @ crayon-syntax-highlighter
895
+ #: ../util/tag-editor/crayon_tag_editor_wp.class.php:65
896
+ #: ../util/theme-editor/theme_editor.php:342
897
  msgid "Save"
898
  msgstr "Kaydet"
899
 
900
+ #: ../util/tag-editor/crayon_tag_editor_wp.class.php:170
901
  msgid "OK"
902
  msgstr "Tamam"
903
 
904
+ #: ../util/tag-editor/crayon_tag_editor_wp.class.php:172
905
  msgid "Cancel"
906
  msgstr "İptal"
907
 
908
  # @ crayon-syntax-highlighter
909
+ #: ../util/tag-editor/crayon_tag_editor_wp.class.php:181
910
  msgid "A short description"
911
  msgstr "Kısa açıklama"
912
 
913
  # @ crayon-syntax-highlighter
914
+ #: ../util/tag-editor/crayon_tag_editor_wp.class.php:183
915
+ #: ../util/theme-editor/theme_editor.php:308
916
  msgid "Inline"
917
  msgstr "Satıriçi"
918
 
919
  # @ crayon-syntax-highlighter
920
+ #: ../util/tag-editor/crayon_tag_editor_wp.class.php:185
921
  msgid "Don't Highlight"
922
  msgstr "Vurgulama"
923
 
924
  # @ crayon-syntax-highlighter
925
+ #: ../util/tag-editor/crayon_tag_editor_wp.class.php:190
926
+ #: ../util/theme-editor/theme_editor.php:312
927
  msgid "Language"
928
  msgstr "Dil"
929
 
930
+ #: ../util/tag-editor/crayon_tag_editor_wp.class.php:193
931
  msgid "Line Range"
932
  msgstr "Satır Aralığı"
933
 
934
  # @ crayon-syntax-highlighter
935
+ #: ../util/tag-editor/crayon_tag_editor_wp.class.php:194
936
  msgid "(e.g. 3-5 or 3)"
937
  msgstr "(örn. 1,2,3-5)"
938
 
939
  # @ crayon-syntax-highlighter
940
+ #: ../util/tag-editor/crayon_tag_editor_wp.class.php:195
941
  msgid "Marked Lines"
942
  msgstr "İşaretli Satırlar"
943
 
944
  # @ crayon-syntax-highlighter
945
+ #: ../util/tag-editor/crayon_tag_editor_wp.class.php:196
946
  msgid "(e.g. 1,2,3-5)"
947
  msgstr "(örn. 1,2,3-5)"
948
 
949
  # @ crayon-syntax-highlighter
950
+ #: ../util/tag-editor/crayon_tag_editor_wp.class.php:205
951
  msgid "Clear"
952
  msgstr "Temizle"
953
 
954
  # @ crayon-syntax-highlighter
955
+ #: ../util/tag-editor/crayon_tag_editor_wp.class.php:209
956
  msgid "Paste your code here, or type it in manually."
957
  msgstr "Kodu buraya yapıştır, ya da onu el ile yaz."
958
 
959
  # @ crayon-syntax-highlighter
960
+ #: ../util/tag-editor/crayon_tag_editor_wp.class.php:213
961
  msgid "URL"
962
  msgstr "URL"
963
 
964
  # @ crayon-syntax-highlighter
965
+ #: ../util/tag-editor/crayon_tag_editor_wp.class.php:215
966
  msgid "Relative local path or absolute URL"
967
  msgstr "İlgili yerel yol veya tam URL"
968
 
969
  # @ crayon-syntax-highlighter
970
+ #: ../util/tag-editor/crayon_tag_editor_wp.class.php:218
971
  msgid ""
972
  "If the URL fails to load, the code above will be shown instead. If no code "
973
  "exists, an error is shown."
976
  "herhangi bir kod yoksa, bir hata görünür."
977
 
978
  # @ crayon-syntax-highlighter
979
+ #: ../util/tag-editor/crayon_tag_editor_wp.class.php:220
980
  #, php-format
981
  msgid ""
982
  "If a relative local path is given it will be appended to %s - which is "
986
  "Ayarlar &gt; Dosyalar%s içinde belirtildiği gibi."
987
 
988
  # @ crayon-syntax-highlighter
989
+ #: ../util/tag-editor/crayon_tag_editor_wp.class.php:247
990
  msgid "Change the following settings to override their global values."
991
  msgstr "Genel değerleri geçersiz kılmak için aşağıdaki ayarları değiştirin."
992
 
993
  # @ crayon-syntax-highlighter
994
+ #: ../util/tag-editor/crayon_tag_editor_wp.class.php:249
995
  msgid "Only changes (shown yellow) are applied."
996
  msgstr "Sadece değişiklikler (sarı ile gösterilir) uygulanır."
997
 
998
  # @ crayon-syntax-highlighter
999
+ #: ../util/tag-editor/crayon_tag_editor_wp.class.php:251
1000
  #, php-format
1001
  msgid ""
1002
  "Future changes to the global settings under %sCrayon &gt; Settings%s won't "
1005
  "%sCrayon &gt; Ayarlar%s altındaki genel ayarların gelecek değişiklikleri, "
1006
  "geçersiz ayarları etkilemez."
1007
 
1008
+ #: ../util/theme-editor/theme_editor.php:191
1009
  msgid "User-Defined Theme"
1010
  msgstr "Kullanıcı-Tanımlı Tema"
1011
 
1012
  # @ crayon-syntax-highlighter
1013
+ #: ../util/theme-editor/theme_editor.php:192
1014
  msgid "Stock Theme"
1015
  msgstr "Hazır Tema"
1016
 
1017
+ #: ../util/theme-editor/theme_editor.php:193
1018
  msgid "Success!"
1019
  msgstr "Başarılı!"
1020
 
1021
+ #: ../util/theme-editor/theme_editor.php:194
1022
  msgid "Failed!"
1023
  msgstr "Başarısız!"
1024
 
1025
+ #: ../util/theme-editor/theme_editor.php:196
1026
  #, php-format
1027
  msgid "Are you sure you want to delete the \"%s\" theme?"
1028
  msgstr "\"%s\" temasını silmek istediğinizden emin misiniz?"
1029
 
1030
+ #: ../util/theme-editor/theme_editor.php:197
1031
  msgid "Delete failed!"
1032
  msgstr "Silme başarısız!"
1033
 
1034
+ #: ../util/theme-editor/theme_editor.php:199
1035
  msgid "New Name"
1036
  msgstr "Yeni İsim"
1037
 
1038
+ #: ../util/theme-editor/theme_editor.php:200
1039
  msgid "Duplicate failed!"
1040
  msgstr "Çoğaltma başarısız!"
1041
 
1042
+ #: ../util/theme-editor/theme_editor.php:201
1043
  msgid "Please check the log for details."
1044
  msgstr "Lütfen ayrıntılar için günlüğü kontrol edin."
1045
 
1046
+ #: ../util/theme-editor/theme_editor.php:202
1047
  msgid "Are you sure you want to discard all changes?"
1048
  msgstr "Tüm değişiklikleri iptal etmek istediğinizden emin misiniz?"
1049
 
1050
+ #: ../util/theme-editor/theme_editor.php:203
1051
  #, php-format
1052
  msgid "Editing Theme: %s"
1053
  msgstr "Tema Düzenleme: %s"
1054
 
1055
+ #: ../util/theme-editor/theme_editor.php:204
1056
  #, php-format
1057
  msgid "Creating Theme: %s"
1058
  msgstr "Tema Oluşturma: %s"
1059
 
1060
+ #: ../util/theme-editor/theme_editor.php:205
1061
  msgid "Submit Your Theme"
1062
  msgstr "Temanızı Gönderin"
1063
 
1064
+ #: ../util/theme-editor/theme_editor.php:206
1065
  msgid "Submit your User Theme for inclusion as a Stock Theme in Crayon!"
1066
  msgstr ""
1067
  "Crayon içine bir Hazır Tema olarak eklenmesi için Kullanıcı Temanızı "
1068
  "gönderin!"
1069
 
1070
+ #: ../util/theme-editor/theme_editor.php:207
1071
  msgid "Message"
1072
  msgstr "Mesaj"
1073
 
1074
+ #: ../util/theme-editor/theme_editor.php:208
1075
  msgid "Please include this theme in Crayon!"
1076
  msgstr "Lütfen bu temayı Crayon içine dahil edin!"
1077
 
1078
  # @ crayon-syntax-highlighter
1079
+ #: ../util/theme-editor/theme_editor.php:209
1080
  msgid "Submit was successful."
1081
  msgstr "Gönderme başarılı."
1082
 
1083
+ #: ../util/theme-editor/theme_editor.php:210
1084
  msgid "Submit failed!"
1085
  msgstr "Gönderme başarısız!"
1086
 
1087
+ #: ../util/theme-editor/theme_editor.php:284
1088
  msgid "Information"
1089
  msgstr "Bilgi"
1090
 
1091
  # @ crayon-syntax-highlighter
1092
+ #: ../util/theme-editor/theme_editor.php:285
1093
  msgid "Highlighting"
1094
  msgstr "Vurgulama"
1095
 
1096
+ #: ../util/theme-editor/theme_editor.php:286
1097
  msgid "Frame"
1098
  msgstr "Çerçeve"
1099
 
1100
  # @ crayon-syntax-highlighter
1101
+ #: ../util/theme-editor/theme_editor.php:288
1102
  msgid "Line Numbers"
1103
  msgstr "Satır Numaralarına Geç"
1104
 
1105
+ #: ../util/theme-editor/theme_editor.php:291
1106
  msgid "Background"
1107
  msgstr "Arkaplan"
1108
 
1109
+ #: ../util/theme-editor/theme_editor.php:292
1110
  msgid "Text"
1111
  msgstr "Metin"
1112
 
1113
+ #: ../util/theme-editor/theme_editor.php:293
1114
  msgid "Border"
1115
  msgstr "Kenarlık"
1116
 
1117
+ #: ../util/theme-editor/theme_editor.php:294
1118
  msgid "Top Border"
1119
  msgstr "Üst Kenar"
1120
 
1121
  # @ crayon-syntax-highlighter
1122
+ #: ../util/theme-editor/theme_editor.php:295
1123
  msgid "Bottom Border"
1124
  msgstr "Alt Kenarlık"
1125
 
1126
+ #: ../util/theme-editor/theme_editor.php:296
1127
+ msgid "Right Border"
1128
+ msgstr "Sağ Kenarlık"
1129
+
1130
+ #: ../util/theme-editor/theme_editor.php:298
1131
  msgid "Hover"
1132
  msgstr "Vurgu"
1133
 
1134
+ #: ../util/theme-editor/theme_editor.php:299
1135
  msgid "Active"
1136
  msgstr "Aktif"
1137
 
1138
+ #: ../util/theme-editor/theme_editor.php:300
1139
  msgid "Pressed"
1140
  msgstr "Sıkıştırıldı"
1141
 
1142
+ #: ../util/theme-editor/theme_editor.php:301
1143
  msgid "Pressed & Hover"
1144
  msgstr "Sıkıştırma & Vurgu"
1145
 
1146
+ #: ../util/theme-editor/theme_editor.php:302
1147
  msgid "Pressed & Active"
1148
  msgstr "Sıkıştırma & Aktif"
1149
 
1150
+ #: ../util/theme-editor/theme_editor.php:305
1151
  msgid "Buttons"
1152
  msgstr "Butonlar"
1153
 
1154
+ #: ../util/theme-editor/theme_editor.php:307
1155
  msgid "Normal"
1156
  msgstr "Normal"
1157
 
1158
+ #: ../util/theme-editor/theme_editor.php:309
1159
  msgid "Striped"
1160
  msgstr "Şeritli"
1161
 
1162
  # @ crayon-syntax-highlighter
1163
+ #: ../util/theme-editor/theme_editor.php:310
1164
  msgid "Marked"
1165
  msgstr "İşaretlendi"
1166
 
1167
+ #: ../util/theme-editor/theme_editor.php:311
1168
  msgid "Striped & Marked"
1169
  msgstr "Şeritli & İşaretli"
1170
 
1171
  # @ crayon-syntax-highlighter
1172
+ #: ../util/theme-editor/theme_editor.php:341
1173
  msgid "Back To Settings"
1174
  msgstr "Ayarlara Geri Dön"
1175
 
1176
+ #: ../util/theme-editor/theme_editor.php:380
1177
  msgid "Comment"
1178
  msgstr "Yorum"
1179
 
1180
+ #: ../util/theme-editor/theme_editor.php:381
1181
  msgid "String"
1182
  msgstr "Dize"
1183
 
1184
+ #: ../util/theme-editor/theme_editor.php:382
1185
  msgid "Preprocessor"
1186
  msgstr "Ön işlemci"
1187
 
1188
  # @ crayon-syntax-highlighter
1189
+ #: ../util/theme-editor/theme_editor.php:383
1190
  msgid "Tag"
1191
  msgstr "Etiket"
1192
 
1193
+ #: ../util/theme-editor/theme_editor.php:384
1194
  msgid "Keyword"
1195
  msgstr "Anahtar kelime"
1196
 
1197
+ #: ../util/theme-editor/theme_editor.php:385
1198
  msgid "Statement"
1199
  msgstr "Açıklama"
1200
 
1201
+ #: ../util/theme-editor/theme_editor.php:386
1202
  msgid "Reserved"
1203
  msgstr "Rezerve"
1204
 
1205
+ #: ../util/theme-editor/theme_editor.php:387
1206
  msgid "Type"
1207
  msgstr "Tür"
1208
 
1209
+ #: ../util/theme-editor/theme_editor.php:388
1210
  msgid "Modifier"
1211
  msgstr "Değiştirici"
1212
 
1213
+ #: ../util/theme-editor/theme_editor.php:389
1214
  msgid "Identifier"
1215
  msgstr "Tanımlayıcı"
1216
 
1217
+ #: ../util/theme-editor/theme_editor.php:390
1218
  msgid "Entity"
1219
  msgstr "Öğe"
1220
 
1221
+ #: ../util/theme-editor/theme_editor.php:391
1222
  msgid "Variable"
1223
  msgstr "Değişken"
1224
 
1225
+ #: ../util/theme-editor/theme_editor.php:392
1226
  msgid "Constant"
1227
  msgstr "Sabit"
1228
 
1229
+ #: ../util/theme-editor/theme_editor.php:393
1230
  msgid "Operator"
1231
  msgstr "Operatör"
1232
 
1233
+ #: ../util/theme-editor/theme_editor.php:394
1234
  msgid "Symbol"
1235
  msgstr "Sembol"
1236
 
1237
+ #: ../util/theme-editor/theme_editor.php:395
1238
  msgid "Notation"
1239
  msgstr "Notasyon"
1240
 
1241
+ #: ../util/theme-editor/theme_editor.php:396
1242
  msgid "Faded"
1243
  msgstr "Soluk"
1244
 
1245
+ #: ../util/theme-editor/theme_editor.php:397
1246
  msgid "HTML"
1247
  msgstr "HTML"
1248
 
1249
+ #: ../util/theme-editor/theme_editor.php:530
1250
  msgid "(Used for Copy/Paste)"
1251
  msgstr "(Kopyala/Yapıştır için kullanılır)"
util/sample/r.txt ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ library(caTools) # external package providing write.gif function
2
+ jet.colors <- colorRampPalette(c("#00007F", "blue", "#007FFF", "cyan", "#7FFF7F",
3
+ "yellow", "#FF7F00", "red", "#7F0000"))
4
+ m <- 1200 # define size
5
+ C <- complex( real=rep(seq(-1.8,0.6, length.out=m), each=m ),
6
+ imag=rep(seq(-1.2,1.2, length.out=m), m ) )
7
+ C <- matrix(C,m,m) # reshape as square matrix of complex numbers
8
+ Z <- 0 # initialize Z to zero
9
+ X <- array(0, c(m,m,20)) # initialize output 3D array
10
+ for (k in 1:20) { # loop with 20 iterations
11
+ Z <- Z^2+C # the central difference equation
12
+ X[,,k] <- exp(-abs(Z)) # capture results
13
+ }
14
+ write.gif(X, "Mandelbrot.gif", col=jet.colors, delay=100)
util/tag-editor/crayon_tag_editor.js CHANGED
@@ -24,17 +24,12 @@
24
  var s, gs, util;
25
 
26
  // CSS
27
- var dialog, code, clear, submit;
28
 
29
  base.init = function() {
30
  s = CrayonTagEditorSettings;
31
  gs = CrayonSyntaxSettings;
32
  util = CrayonUtil;
33
-
34
- $(s.cancel_css).live('click', function () {
35
- $.crayonFancybox.close();
36
- return false;
37
- });
38
  };
39
 
40
  base.bind = function(button) {
@@ -44,7 +39,6 @@
44
  }
45
 
46
  base.loadDialog();
47
- util.initFancybox();
48
  $(button).crayonFancybox({
49
  href : s.content_css,
50
  margin : [40,10,40,10],
@@ -79,7 +73,9 @@
79
  } else {
80
  return;
81
  }
82
-
 
 
83
  // Load the editor content
84
  CrayonUtil.getAJAX({action : 'crayon-tag-editor', is_admin : gs.is_admin}, function(data) {
85
  dialog = $('<div id="'+s.css+'"></div>');
@@ -89,6 +85,7 @@
89
  base.setOrigValues();
90
 
91
  submit = dialog.find(s.submit_css);
 
92
 
93
  code = $(s.code_css);
94
  clear = $('#crayon-te-clear');
@@ -203,16 +200,23 @@
203
  inputHTML = args.input;
204
  outputHTML = args.output;
205
  editor_name = args.editor_str;
 
206
  var currNode = args.node;
207
  is_inline = false;
208
 
209
  // Unbind submit
210
  submit.unbind();
211
- submit.click(function() {
212
  base.submitButton();
213
- return false;
214
  });
215
  base.setSubmitText(s.submit_add);
 
 
 
 
 
 
216
 
217
  if (base.isCrayon(currNode)) {
218
  currCrayon = $(currNode);
24
  var s, gs, util;
25
 
26
  // CSS
27
+ var dialog, code, clear, submit, cancel;
28
 
29
  base.init = function() {
30
  s = CrayonTagEditorSettings;
31
  gs = CrayonSyntaxSettings;
32
  util = CrayonUtil;
 
 
 
 
 
33
  };
34
 
35
  base.bind = function(button) {
39
  }
40
 
41
  base.loadDialog();
 
42
  $(button).crayonFancybox({
43
  href : s.content_css,
44
  margin : [40,10,40,10],
73
  } else {
74
  return;
75
  }
76
+
77
+ util.initFancybox();
78
+
79
  // Load the editor content
80
  CrayonUtil.getAJAX({action : 'crayon-tag-editor', is_admin : gs.is_admin}, function(data) {
81
  dialog = $('<div id="'+s.css+'"></div>');
85
  base.setOrigValues();
86
 
87
  submit = dialog.find(s.submit_css);
88
+ cancel = dialog.find(s.cancel_css);
89
 
90
  code = $(s.code_css);
91
  clear = $('#crayon-te-clear');
200
  inputHTML = args.input;
201
  outputHTML = args.output;
202
  editor_name = args.editor_str;
203
+ var currNode = args.node;
204
  var currNode = args.node;
205
  is_inline = false;
206
 
207
  // Unbind submit
208
  submit.unbind();
209
+ submit.click(function(e) {
210
  base.submitButton();
211
+ e.preventDefault();
212
  });
213
  base.setSubmitText(s.submit_add);
214
+
215
+ cancel.unbind();
216
+ cancel.click(function (e) {
217
+ base.hide();
218
+ e.preventDefault();
219
+ });
220
 
221
  if (base.isCrayon(currNode)) {
222
  currCrayon = $(currNode);
util/tag-editor/crayon_tag_editor_wp.class.php CHANGED
@@ -70,6 +70,18 @@ class CrayonTagEditorWP {
70
  }
71
  }
72
 
 
 
 
 
 
 
 
 
 
 
 
 
73
  public static function init_tinymce($init) {
74
  if (!array_key_exists('extended_valid_elements', $init)) {
75
  $init['extended_valid_elements'] = '';
@@ -80,21 +92,14 @@ class CrayonTagEditorWP {
80
 
81
  public static function addbuttons() {
82
  // Add only in Rich Editor mode
83
- //if ( get_user_option('rich_editing') == 'true') {
84
  add_filter('mce_external_plugins', 'CrayonTagEditorWP::add_plugin');
85
  add_filter('mce_buttons', 'CrayonTagEditorWP::register_buttons');
 
86
  }
87
 
88
- public static function enqueue_resources() {
89
- global $CRAYON_VERSION;
90
- self::init_settings();
91
- $path = dirname(dirname(__FILE__));
92
- wp_enqueue_style('crayon_fancybox', plugins_url(CRAYON_CSS_FANCYBOX, $path), array(), $CRAYON_VERSION);
93
- wp_enqueue_script('crayon_fancybox', plugins_url(CRAYON_JS_FANCYBOX, $path), array('jquery'), $CRAYON_VERSION);
94
- wp_enqueue_script('crayon_te_js', plugins_url(CRAYON_TAG_EDITOR_JS, __FILE__), array('crayon_fancybox', 'crayon_util_js'), $CRAYON_VERSION);
95
- wp_enqueue_script('crayon_qt_js', plugins_url(CRAYON_QUICKTAGS_JS, __FILE__), array('quicktags', 'crayon_te_js'), $CRAYON_VERSION, TRUE);
96
- wp_localize_script('crayon_te_js', 'CrayonTagEditorSettings', self::$settings);
97
- CrayonSettingsWP::other_scripts();
98
  }
99
 
100
  public static function register_buttons($buttons) {
@@ -102,7 +107,6 @@ class CrayonTagEditorWP {
102
  return $buttons;
103
  }
104
 
105
- // Load the TinyMCE plugin : editor_plugin.js (wp2.5)
106
  public static function add_plugin($plugin_array) {
107
  $plugin_array['crayon_tinymce'] = plugins_url(CRAYON_TINYMCE_JS, __FILE__);
108
  return $plugin_array;
@@ -233,7 +237,7 @@ class CrayonTagEditorWP {
233
  <td colspan="2"><?php
234
  $admin = isset($_GET['is_admin']) ? intval($_GET['is_admin']) : is_admin();
235
  if (!$admin && !CrayonGlobalSettings::val(CrayonSettings::TAG_EDITOR_SETTINGS)) {
236
- exit;
237
  }
238
  ?>
239
  <hr/>
70
  }
71
  }
72
 
73
+ public static function enqueue_resources() {
74
+ global $CRAYON_VERSION;
75
+ self::init_settings();
76
+ $path = dirname(dirname(__FILE__));
77
+ wp_enqueue_style('crayon_fancybox', plugins_url(CRAYON_CSS_FANCYBOX, $path), array(), $CRAYON_VERSION);
78
+ wp_enqueue_script('crayon_fancybox', plugins_url(CRAYON_JS_FANCYBOX, $path), array('jquery'), $CRAYON_VERSION);
79
+ wp_enqueue_script('crayon_te_js', plugins_url(CRAYON_TAG_EDITOR_JS, __FILE__), array('crayon_fancybox', 'crayon_util_js'), $CRAYON_VERSION);
80
+ wp_enqueue_script('crayon_qt_js', plugins_url(CRAYON_QUICKTAGS_JS, __FILE__), array('quicktags', 'crayon_te_js'), $CRAYON_VERSION, TRUE);
81
+ wp_localize_script('crayon_te_js', 'CrayonTagEditorSettings', self::$settings);
82
+ CrayonSettingsWP::other_scripts();
83
+ }
84
+
85
  public static function init_tinymce($init) {
86
  if (!array_key_exists('extended_valid_elements', $init)) {
87
  $init['extended_valid_elements'] = '';
92
 
93
  public static function addbuttons() {
94
  // Add only in Rich Editor mode
 
95
  add_filter('mce_external_plugins', 'CrayonTagEditorWP::add_plugin');
96
  add_filter('mce_buttons', 'CrayonTagEditorWP::register_buttons');
97
+ add_filter('bbp_before_get_the_content_parse_args', 'CrayonTagEditorWP::bbp_get_the_content_args');
98
  }
99
 
100
+ public static function bbp_get_the_content_args($args) {
101
+ // Turn off "teeny" to allow the bbPress TinyMCE to display external plugins
102
+ return array_merge($args, array('teeny' => false));
 
 
 
 
 
 
 
103
  }
104
 
105
  public static function register_buttons($buttons) {
107
  return $buttons;
108
  }
109
 
 
110
  public static function add_plugin($plugin_array) {
111
  $plugin_array['crayon_tinymce'] = plugins_url(CRAYON_TINYMCE_JS, __FILE__);
112
  return $plugin_array;
237
  <td colspan="2"><?php
238
  $admin = isset($_GET['is_admin']) ? intval($_GET['is_admin']) : is_admin();
239
  if (!$admin && !CrayonGlobalSettings::val(CrayonSettings::TAG_EDITOR_SETTINGS)) {
240
+ exit();
241
  }
242
  ?>
243
  <hr/>
util/theme-editor/theme_editor.php CHANGED
@@ -169,6 +169,7 @@ class CrayonThemeEditorWP {
169
  }
170
 
171
  public static function initSettings() {
 
172
  self::initFields();
173
  self::initStrings();
174
  if (self::$settings === NULL) {
@@ -648,11 +649,13 @@ class CrayonThemeEditorWP {
648
  // If in DEBUG mode, then allow editing stock themes.
649
  $user = $oldTheme !== NULL && $allow_edit_stock_theme ? $oldTheme->user() : TRUE;
650
  $oldPath = CrayonResources::themes()->path($oldID);
651
- $oldDir = CrayonResources::themes()->dirpath($oldID);
652
- $newID = CrayonResource::clean_id($name);
653
- $name = CrayonResource::clean_name($newID);
 
 
654
  $newPath = CrayonResources::themes()->path($newID, $user);
655
- $newDir = CrayonResources::themes()->dirpath($newID, $user);
656
 
657
  $exists = CrayonResources::themes()->is_loaded($newID) || (is_file($newPath) && is_file($oldPath));
658
  if ($exists && $oldPath != $newPath) {
@@ -668,17 +671,15 @@ class CrayonThemeEditorWP {
668
  }
669
 
670
  // Create the new path if needed
671
- if (!is_file($newPath)) {
672
- if (!is_dir($newDir)) {
673
- wp_mkdir_p($newDir);
674
- $imageSrc = $oldDir . 'images';
675
- if (is_dir($imageSrc)) {
676
- try {
677
- // Copy image folder
678
- CrayonUtil::copyDir($imageSrc, $newDir . 'images', 'wp_mkdir_p');
679
- } catch (Exception $e) {
680
- CrayonLog::syslog($e->getMessage(), "THEME SAVE");
681
- }
682
  }
683
  }
684
  }
@@ -689,8 +690,6 @@ class CrayonThemeEditorWP {
689
  if (!is_file($oldPath) || strpos($css, CrayonThemes::CSS_PREFIX . $oldID) === FALSE) {
690
  // The old path/id is no longer valid - something has gone wrong - we should refresh afterwards
691
  $refresh = TRUE;
692
- // Forces the ids to be updated
693
- $replaceID = '[\w-]+';
694
  }
695
  // XXX This is case sensitive to avoid modifying text, but it means that CSS must be in lowercase
696
  $css = preg_replace('#(?<=' . CrayonThemes::CSS_PREFIX . ')' . $replaceID . '\b#ms', $newID, $css);
@@ -751,7 +750,7 @@ class CrayonThemeEditorWP {
751
  public static function delete() {
752
  CrayonSettingsWP::load_settings();
753
  $id = $_POST['id'];
754
- $dir = CrayonResources::themes()->dirpath($id);
755
  if (is_dir($dir) && CrayonResources::themes()->exists($id)) {
756
  try {
757
  CrayonUtil::deleteDir($dir);
@@ -773,7 +772,7 @@ class CrayonThemeEditorWP {
773
  CrayonSettingsWP::load_settings();
774
  $id = $_POST['id'];
775
  $message = $_POST['message'];
776
- $dir = CrayonResources::themes()->dirpath($id);
777
  $dest = $dir . 'tmp';
778
  wp_mkdir_p($dest);
779
 
169
  }
170
 
171
  public static function initSettings() {
172
+ CrayonSettingsWP::load_settings();
173
  self::initFields();
174
  self::initStrings();
175
  if (self::$settings === NULL) {
649
  // If in DEBUG mode, then allow editing stock themes.
650
  $user = $oldTheme !== NULL && $allow_edit_stock_theme ? $oldTheme->user() : TRUE;
651
  $oldPath = CrayonResources::themes()->path($oldID);
652
+ $oldDir = CrayonResources::themes()->dirpath_for_id($oldID);
653
+ // Create an instance to use functions, since late static binding is only available in 5.3 (PHP kinda sucks)
654
+ $theme = CrayonResources::themes()->resource_instance('');
655
+ $newID = $theme->clean_id($name);
656
+ $name = $theme->clean_name($newID);
657
  $newPath = CrayonResources::themes()->path($newID, $user);
658
+ $newDir = CrayonResources::themes()->dirpath_for_id($newID, $user);
659
 
660
  $exists = CrayonResources::themes()->is_loaded($newID) || (is_file($newPath) && is_file($oldPath));
661
  if ($exists && $oldPath != $newPath) {
671
  }
672
 
673
  // Create the new path if needed
674
+ if (!is_dir($newDir)) {
675
+ wp_mkdir_p($newDir);
676
+ $imageSrc = $oldDir . 'images';
677
+ if (is_dir($imageSrc)) {
678
+ try {
679
+ // Copy image folder
680
+ CrayonUtil::copyDir($imageSrc, $newDir . 'images', 'wp_mkdir_p');
681
+ } catch (Exception $e) {
682
+ CrayonLog::syslog($e->getMessage(), "THEME SAVE");
 
 
683
  }
684
  }
685
  }
690
  if (!is_file($oldPath) || strpos($css, CrayonThemes::CSS_PREFIX . $oldID) === FALSE) {
691
  // The old path/id is no longer valid - something has gone wrong - we should refresh afterwards
692
  $refresh = TRUE;
 
 
693
  }
694
  // XXX This is case sensitive to avoid modifying text, but it means that CSS must be in lowercase
695
  $css = preg_replace('#(?<=' . CrayonThemes::CSS_PREFIX . ')' . $replaceID . '\b#ms', $newID, $css);
750
  public static function delete() {
751
  CrayonSettingsWP::load_settings();
752
  $id = $_POST['id'];
753
+ $dir = CrayonResources::themes()->dirpath_for_id($id);
754
  if (is_dir($dir) && CrayonResources::themes()->exists($id)) {
755
  try {
756
  CrayonUtil::deleteDir($dir);
772
  CrayonSettingsWP::load_settings();
773
  $id = $_POST['id'];
774
  $message = $_POST['message'];
775
+ $dir = CrayonResources::themes()->dirpath_for_id($id);
776
  $dest = $dir . 'tmp';
777
  wp_mkdir_p($dest);
778