Version Description
- Extra debug logging and error diagnostics
- Forcefully clear output buffers before Ajax flush
- Bumped WordPress version to 4.7
- Experimental wildcard text domain support
Download this release
Release Info
Developer | timwhitlock |
Plugin | Loco Translate |
Version | 2.0.11 |
Comparing to | |
See all releases |
Code changes from version 2.0.10 to 2.0.11
- languages/loco.pot +10 -10
- lib/compiled/gettext.php +1 -1
- loco.php +2 -2
- pub/css/admin.css +1 -1
- pub/css/editor.css +1 -1
- pub/css/poview.css +1 -1
- pub/css/skins/blue.css +1 -1
- pub/css/skins/coffee.css +1 -1
- pub/css/skins/ectoplasm.css +1 -1
- pub/css/skins/light.css +1 -1
- pub/css/skins/midnight.css +1 -1
- pub/css/skins/ocean.css +1 -1
- pub/css/skins/sunrise.css +1 -1
- pub/js/min/admin.js +160 -160
- readme.txt +10 -4
- src/admin/init/InitPotController.php +1 -1
- src/error/AdminNotices.php +18 -4
- src/error/Debug.php +8 -0
- src/error/Exception.php +60 -2
- src/error/Notice.php +8 -0
- src/error/Success.php +8 -0
- src/error/Warning.php +8 -0
- src/mvc/AjaxRouter.php +7 -6
- src/output/Buffer.php +60 -25
- src/package/Debugger.php +14 -1
- src/package/Listener.php +1 -1
- src/package/Plugin.php +23 -7
- src/package/Project.php +6 -1
languages/loco.pot
CHANGED
@@ -3,7 +3,7 @@ msgid ""
|
|
3 |
msgstr ""
|
4 |
"Project-Id-Version: PACKAGE VERSION\n"
|
5 |
"Report-Msgid-Bugs-To: \n"
|
6 |
-
"POT-Creation-Date: 2016-
|
7 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
8 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
9 |
"Language-Team: \n"
|
@@ -100,7 +100,7 @@ msgstr ""
|
|
100 |
msgid "Debug"
|
101 |
msgstr ""
|
102 |
|
103 |
-
#: src/error/Exception.php:
|
104 |
msgid "Error"
|
105 |
msgstr ""
|
106 |
|
@@ -411,20 +411,20 @@ msgstr ""
|
|
411 |
msgid "Page not found"
|
412 |
msgstr ""
|
413 |
|
414 |
-
#: src/mvc/AjaxRouter.php:
|
415 |
#, php-format
|
416 |
msgid "Ajax route not found: \"%s\""
|
417 |
msgstr ""
|
418 |
|
419 |
-
#: src/mvc/AjaxRouter.php:
|
420 |
msgid "Ajax controller returned empty JSON"
|
421 |
msgstr ""
|
422 |
|
423 |
-
#: src/mvc/AjaxRouter.php:
|
424 |
msgid "Download action not found"
|
425 |
msgstr ""
|
426 |
|
427 |
-
#: src/mvc/AjaxRouter.php:
|
428 |
msgid "Download controller returned empty output"
|
429 |
msgstr ""
|
430 |
|
@@ -433,7 +433,7 @@ msgstr ""
|
|
433 |
msgid "Just now"
|
434 |
msgstr ""
|
435 |
|
436 |
-
#: src/output/Buffer.php:
|
437 |
#, php-format
|
438 |
msgid "Loco interrupted by output from %s:%u"
|
439 |
msgstr ""
|
@@ -446,14 +446,14 @@ msgstr ""
|
|
446 |
msgid "WordPress Core"
|
447 |
msgstr ""
|
448 |
|
449 |
-
#: src/package/Debugger.php:
|
450 |
#, php-format
|
451 |
msgid "One string extracted from source code for \"%2$s\""
|
452 |
msgid_plural "%s strings extracted from source code for \"%s\""
|
453 |
msgstr[0] ""
|
454 |
msgstr[1] ""
|
455 |
|
456 |
-
#: src/package/Debugger.php:
|
457 |
#, php-format
|
458 |
msgid "Configured domain has no extractable strings"
|
459 |
msgid_plural "%u configured domains have no extractable strings"
|
@@ -468,7 +468,7 @@ msgstr ""
|
|
468 |
msgid "Visit official site"
|
469 |
msgstr ""
|
470 |
|
471 |
-
#: src/package/Plugin.php:
|
472 |
#, php-format
|
473 |
msgid "Plugin not found: %s"
|
474 |
msgstr ""
|
3 |
msgstr ""
|
4 |
"Project-Id-Version: PACKAGE VERSION\n"
|
5 |
"Report-Msgid-Bugs-To: \n"
|
6 |
+
"POT-Creation-Date: 2016-12-22 12:03+0000\n"
|
7 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
8 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
9 |
"Language-Team: \n"
|
100 |
msgid "Debug"
|
101 |
msgstr ""
|
102 |
|
103 |
+
#: src/error/Exception.php:89 src/js/Strings.php:59
|
104 |
msgid "Error"
|
105 |
msgstr ""
|
106 |
|
411 |
msgid "Page not found"
|
412 |
msgstr ""
|
413 |
|
414 |
+
#: src/mvc/AjaxRouter.php:153
|
415 |
#, php-format
|
416 |
msgid "Ajax route not found: \"%s\""
|
417 |
msgstr ""
|
418 |
|
419 |
+
#: src/mvc/AjaxRouter.php:158
|
420 |
msgid "Ajax controller returned empty JSON"
|
421 |
msgstr ""
|
422 |
|
423 |
+
#: src/mvc/AjaxRouter.php:185
|
424 |
msgid "Download action not found"
|
425 |
msgstr ""
|
426 |
|
427 |
+
#: src/mvc/AjaxRouter.php:190
|
428 |
msgid "Download controller returned empty output"
|
429 |
msgstr ""
|
430 |
|
433 |
msgid "Just now"
|
434 |
msgstr ""
|
435 |
|
436 |
+
#: src/output/Buffer.php:84
|
437 |
#, php-format
|
438 |
msgid "Loco interrupted by output from %s:%u"
|
439 |
msgstr ""
|
446 |
msgid "WordPress Core"
|
447 |
msgstr ""
|
448 |
|
449 |
+
#: src/package/Debugger.php:181
|
450 |
#, php-format
|
451 |
msgid "One string extracted from source code for \"%2$s\""
|
452 |
msgid_plural "%s strings extracted from source code for \"%s\""
|
453 |
msgstr[0] ""
|
454 |
msgstr[1] ""
|
455 |
|
456 |
+
#: src/package/Debugger.php:199
|
457 |
#, php-format
|
458 |
msgid "Configured domain has no extractable strings"
|
459 |
msgid_plural "%u configured domains have no extractable strings"
|
468 |
msgid "Visit official site"
|
469 |
msgstr ""
|
470 |
|
471 |
+
#: src/package/Plugin.php:201
|
472 |
#, php-format
|
473 |
msgid "Plugin not found: %s"
|
474 |
msgstr ""
|
lib/compiled/gettext.php
CHANGED
@@ -14,7 +14,7 @@ class LocoMoParser { private $bin; private $be; private $n; private $o; private
|
|
14 |
function loco_parse_mo( $src ){ $mo = new LocoMoParser($src); return $mo->parse(); }
|
15 |
function loco_parse_comment($comment){ if( '*' === $comment{1} ){ $lines = array(); $junk = "\r\t/ *"; foreach( explode("\n", $comment) as $line ){ if( $line = trim($line,$junk) ){ $lines[] = trim($line,$junk); } } return implode("\n", $lines); } return trim( $comment,"/ \n\r\t" ); }
|
16 |
function loco_parse_wp_comment( $block ){ $header = array(); if( '*' === $block{1} ){ $junk = "\r\t/ *"; foreach( explode("\n", $block) as $line ){ if( false !== ( $i = strpos($line,':') ) ){ $key = substr($line,0,$i); $val = substr($line,++$i); $header[ trim($key,$junk) ] = trim($val,$junk); } } } return $header; }
|
17 |
-
abstract class LocoExtractor { private $rules; private $exp = array(); private $reg = array(); private $dom = array(); private $wp = array(); private $dflt = ''; abstract public function decapse( $raw ); abstract public function fsniff( $str ); public function __construct( array $rules ){ $this->rules = $rules; } public function getTotal(){ return count( $this->exp ); } public function getDomainCounts(){ return $this->dom; } public function setDomain( $default ){ $this->dflt = (string) $default; return $this; } public function headerize( array $tags, $domain = '' ){ if( isset($this->wp[$domain]) ){ $this->wp[$domain] += $tags; } else { $this->wp[$domain] = $tags; } return $this; } public function extract( LocoTokensInterface $tokens, $fileref ){ $n = 0; $comment = ''; foreach( $tokens as $tok ){ if( is_string($tok) ){ $s = $tok; $t = null; } else { $t = $tok[0]; $s = $tok[1]; if( T_WHITESPACE === $t ){ throw new RuntimeException( get_class($tokens).' should not allow whitespace through' ); } } if( isset($args) ){ if( ')' === $s ){ if( 0 === --$depth ){ if( isset($arg) ){ $args[] = $arg; } $this->push( $rule, $args, $comment, $ref ); unset($args,$arg); $comment = ''; $n++; } } else if( '(' === $s ){ $depth++; } else if( ',' === $s ){ if( isset($arg) ){ $args[] = $arg; unset($arg); } } else if( isset($arg) ){ $arg[] = $tok; } else { $arg = array( $tok ); } } else if( T_COMMENT === $t || T_DOC_COMMENT === $t ){ if( $this->wp && 0 === $n && ( $header = loco_parse_wp_comment($s) ) ){ foreach( $this->wp as $domain => $tags ){ foreach( array_intersect_key($header,$tags) as $tag => $source ){ $this->pushMeta( $source, $tags[$tag], $domain ); } } } else { $comment = $s; } } else if( T_STRING === $t && isset($this->rules[$s]) && '(' === $tokens->advance() ){ $rule = $this->rules[$s]; $args = array(); $ref = $fileref ? $fileref.':'.$tok[2]: ''; $depth = 1; } else if( $comment ){ if( false === stripos($comment, 'translators:') && false === strpos($comment, 'xgettext:') ){ $comment = ''; } } } return $this->exp; } public function pushMeta( $source, $notes = '', $domain = null ){ if( ! $domain ){ $domain = $this->dflt; } $entry = array( 'id' => '', 'source' => $source, 'target' => '', 'notes' => $notes, ); if( $domain ){ $entry['domain'] = $domain; $key = $source."\1".$domain; } else { $key = $source; } $this->pushMsgid( $key, $entry, $domain ); return $this; } private function pushMsgid( $key, array $entry, $domain ){ if( isset($this->reg[$key]) ){ $index = $this->reg[$key]; $a = array(); isset($this->exp[$index]['refs']) and $a[] = $this->exp[$index]['refs']; isset($entry['refs']) and $a[] = $entry['refs']; $a && $this->exp[$index]['refs'] = implode(" ", $a ); $a = array(); isset($this->exp[$index]['notes']) and $a[] = $this->exp[$index]['notes']; isset($entry['notes']) and $a[] = $entry['notes']; $a && $this->exp[$index]['notes'] = implode("\n", $a ); } else { $index = count($this->exp); $this->reg[$key] = $index; $this->exp[] = $entry; if( isset($this->dom[$domain]) ){ $this->dom[$domain]++; } else { $this->dom[$domain] = 1; } } return $index; } private function push( $rule, array $args, $comment = '', $ref = '' ){ $s = strpos( $rule, 's'); $p = strpos( $rule, 'p'); $c = strpos( $rule, 'c'); $d = strpos( $rule, 'd'); foreach( $args as $i => $tokens ){ if( 1 === count($tokens) && is_array($tokens[0]) && T_CONSTANT_ENCAPSED_STRING === $tokens[0][0] ){ $args[$i] = $this->decapse( $tokens[0][1] ); } else { $args[$i] = null; } } if( ! isset($args[$s]) ){ return null; } $key = $msgid = $args[$s]; if( ! is_string($msgid) ){ return null; } $entry = array( 'id' => '', 'source' => $msgid, 'target' => '', ); if( is_int($c) && isset($args[$c]) ){ $entry['context'] = $context = $args[$c]; $key .= "\0". $context; } else if( ! isset($msgid{0}) ){ return null; } else { $context = null; } if( $ref ){ $entry['refs'] = $ref; } if( is_int($d) &&
|
18 |
interface LocoTokensInterface extends Iterator { public function advance(); }
|
19 |
class LocoPHPTokens implements LocoTokensInterface { private $i; private $tokens; private $skip_tokens = array(); private $skip_strings = array(); private $literal_tokens = array(); public function __construct( array $tokens ){ $this->tokens = $tokens; $this->rewind(); } public function literal(){ foreach( func_get_args() as $t ){ $this->literal_tokens[ $t ] = 1; } return $this; } public function ignore(){ foreach( func_get_args() as $t ){ if( is_int($t) ){ $this->skip_tokens[$t] = true; } else { $this->skip_strings[$t] = true; } } return $this; } public function export(){ $arr = array(); foreach( $this as $tok ){ $arr[] = $tok; } return $arr; } public function advance(){ $this->next(); return $this->current(); } public function pop(){ $tok = array_pop( $this->tokens ); $this->rewind(); return $tok; } public function shift(){ $tok = array_shift( $this->tokens); $this->rewind(); return $tok; } public function rewind(){ $this->i = ( false === reset($this->tokens) ? null : key($this->tokens) ); } public function valid(){ while( isset($this->i) ){ $tok = $this->tokens[$this->i]; if( is_array($tok) ){ if( isset($this->skip_tokens[$tok[0]]) ){ $this->next(); } else { return true; } } else if( isset($this->skip_strings[$tok]) ){ $this->next(); } else { return true; } } return false; } public function key(){ return $this->i; } public function next(){ $this->i = ( false === next($this->tokens) ? null : key($this->tokens) ); } public function current(){ if( ! $this->valid() ){ return false; } $tok = $this->tokens[$this->i]; if( is_array($tok) && isset($this->literal_tokens[$tok[0]]) ){ return $tok[1]; } return $tok; } public function __toString(){ $s = ''; foreach( $this as $token ){ $s .= is_array($token) ? $token[1] : $token; } return $s; } }
|
20 |
function loco_sniff_php_printf( $s ){ $n = 0; while( $s && false !== ( $i = strpos($s,'%') ) ){ if( 0 !== $i ){ $s = substr( $s, $i ); } if( ! preg_match('/^%(?:\\d+\\$)?[-+]?(?:\'.)?[ 0]*-?\\d*(?:\\.\d+)?[bcdeEfFgGosuxX%]/', $s, $r ) ){ return 0; } $s = substr( $s, strlen($r[0]) ); $n++; } return $n; }
|
14 |
function loco_parse_mo( $src ){ $mo = new LocoMoParser($src); return $mo->parse(); }
|
15 |
function loco_parse_comment($comment){ if( '*' === $comment{1} ){ $lines = array(); $junk = "\r\t/ *"; foreach( explode("\n", $comment) as $line ){ if( $line = trim($line,$junk) ){ $lines[] = trim($line,$junk); } } return implode("\n", $lines); } return trim( $comment,"/ \n\r\t" ); }
|
16 |
function loco_parse_wp_comment( $block ){ $header = array(); if( '*' === $block{1} ){ $junk = "\r\t/ *"; foreach( explode("\n", $block) as $line ){ if( false !== ( $i = strpos($line,':') ) ){ $key = substr($line,0,$i); $val = substr($line,++$i); $header[ trim($key,$junk) ] = trim($val,$junk); } } } return $header; }
|
17 |
+
abstract class LocoExtractor { private $rules; private $exp = array(); private $reg = array(); private $dom = array(); private $wp = array(); private $dflt = ''; abstract public function decapse( $raw ); abstract public function fsniff( $str ); public function __construct( array $rules ){ $this->rules = $rules; } public function getTotal(){ return count( $this->exp ); } public function getDomainCounts(){ return $this->dom; } public function setDomain( $default ){ $this->dflt = (string) $default; return $this; } public function headerize( array $tags, $domain = '' ){ if( isset($this->wp[$domain]) ){ $this->wp[$domain] += $tags; } else { $this->wp[$domain] = $tags; } return $this; } public function extract( LocoTokensInterface $tokens, $fileref ){ $n = 0; $comment = ''; foreach( $tokens as $tok ){ if( is_string($tok) ){ $s = $tok; $t = null; } else { $t = $tok[0]; $s = $tok[1]; if( T_WHITESPACE === $t ){ throw new RuntimeException( get_class($tokens).' should not allow whitespace through' ); } } if( isset($args) ){ if( ')' === $s ){ if( 0 === --$depth ){ if( isset($arg) ){ $args[] = $arg; } $this->push( $rule, $args, $comment, $ref ); unset($args,$arg); $comment = ''; $n++; } } else if( '(' === $s ){ $depth++; } else if( ',' === $s ){ if( isset($arg) ){ $args[] = $arg; unset($arg); } } else if( isset($arg) ){ $arg[] = $tok; } else { $arg = array( $tok ); } } else if( T_COMMENT === $t || T_DOC_COMMENT === $t ){ if( $this->wp && 0 === $n && ( $header = loco_parse_wp_comment($s) ) ){ foreach( $this->wp as $domain => $tags ){ foreach( array_intersect_key($header,$tags) as $tag => $source ){ $this->pushMeta( $source, $tags[$tag], $domain ); } } } else { $comment = $s; } } else if( T_STRING === $t && isset($this->rules[$s]) && '(' === $tokens->advance() ){ $rule = $this->rules[$s]; $args = array(); $ref = $fileref ? $fileref.':'.$tok[2]: ''; $depth = 1; } else if( $comment ){ if( false === stripos($comment, 'translators:') && false === strpos($comment, 'xgettext:') ){ $comment = ''; } } } return $this->exp; } public function pushMeta( $source, $notes = '', $domain = null ){ if( ! $domain ){ $domain = $this->dflt; } $entry = array( 'id' => '', 'source' => $source, 'target' => '', 'notes' => $notes, ); if( $domain ){ $entry['domain'] = $domain; $key = $source."\1".$domain; } else { $key = $source; } $this->pushMsgid( $key, $entry, $domain ); return $this; } private function pushMsgid( $key, array $entry, $domain ){ if( isset($this->reg[$key]) ){ $index = $this->reg[$key]; $a = array(); isset($this->exp[$index]['refs']) and $a[] = $this->exp[$index]['refs']; isset($entry['refs']) and $a[] = $entry['refs']; $a && $this->exp[$index]['refs'] = implode(" ", $a ); $a = array(); isset($this->exp[$index]['notes']) and $a[] = $this->exp[$index]['notes']; isset($entry['notes']) and $a[] = $entry['notes']; $a && $this->exp[$index]['notes'] = implode("\n", $a ); } else { $index = count($this->exp); $this->reg[$key] = $index; $this->exp[] = $entry; if( isset($this->dom[$domain]) ){ $this->dom[$domain]++; } else { $this->dom[$domain] = 1; } } return $index; } private function push( $rule, array $args, $comment = '', $ref = '' ){ $s = strpos( $rule, 's'); $p = strpos( $rule, 'p'); $c = strpos( $rule, 'c'); $d = strpos( $rule, 'd'); foreach( $args as $i => $tokens ){ if( 1 === count($tokens) && is_array($tokens[0]) && T_CONSTANT_ENCAPSED_STRING === $tokens[0][0] ){ $args[$i] = $this->decapse( $tokens[0][1] ); } else { $args[$i] = null; } } if( ! isset($args[$s]) ){ return null; } $key = $msgid = $args[$s]; if( ! is_string($msgid) ){ return null; } $entry = array( 'id' => '', 'source' => $msgid, 'target' => '', ); if( is_int($c) && isset($args[$c]) ){ $entry['context'] = $context = $args[$c]; $key .= "\0". $context; } else if( ! isset($msgid{0}) ){ return null; } else { $context = null; } if( $ref ){ $entry['refs'] = $ref; } if( is_int($d) && array_key_exists($d,$args) ){ $domain = $args[$d]; if( is_null($domain) ){ $domain = ''; } } else { $domain = $this->dflt; } if( $domain ){ $entry['domain'] = $domain; $key .= "\1".$domain; } $parse_printf = true; if( $comment ){ if( preg_match('/xgettext:\s*((?:no-)?\w+)-format/', $comment, $r ) ){ $entry['format'] = $r[1]; if( 'no-' === substr($r[1],0,3) ){ $parse_printf = false; } else { $parse_printf = null; } $comment = str_replace( $r[0], '', $comment ); } $comment = loco_parse_comment($comment); if( preg_match('/^translators:\s+/i', $comment, $r ) ){ $comment = substr( $comment, strlen($r[0]) ); } $entry['notes'] = $comment; } if( $parse_printf && ( $format = $this->fsniff($msgid) ) ){ $entry['format'] = $format; } $index = $this->pushMsgid( $key, $entry, $domain ); if( is_int($p) && isset($args[$p]) ){ $msgid_plural = $args[$p]; $entry = array( 'id' => '', 'source' => $msgid_plural, 'target' => '', 'plural' => 1, 'parent' => $index, ); if( false !== $parse_printf && ( $format = $this->fsniff($msgid_plural) ) ){ $entry['format'] = $format; } $pkey = $key."\2"; if( isset($this->reg[$pkey]) ){ $plural_index = $this->reg[$pkey]; $this->exp[$plural_index] = $entry; } else { $plural_index = count($this->exp); $this->reg[$pkey] = $plural_index; $this->exp[] = $entry; } } return $index; } public function filter( $domain ){ $map = array(); $newOffset = 1; $matchAll = '*' === $domain; $raw = array( array( 'id' => '', 'source' => '', 'target' => '', 'domain' => $matchAll ? '' : $domain, ) ); foreach( $this->exp as $oldOffset => $r ){ if( isset($r['parent']) ){ if( isset($map[$r['parent']]) ){ $r['parent'] = $map[ $r['parent'] ]; $raw[ $newOffset++ ] = $r; } } else { if( $matchAll ){ $match = true; } else if( isset($r['domain']) ){ $match = $domain === $r['domain']; } else { $match = $domain === ''; } if( $match ){ $map[ $oldOffset ] = $newOffset; $raw[ $newOffset++ ] = $r; } } } return $raw; } }
|
18 |
interface LocoTokensInterface extends Iterator { public function advance(); }
|
19 |
class LocoPHPTokens implements LocoTokensInterface { private $i; private $tokens; private $skip_tokens = array(); private $skip_strings = array(); private $literal_tokens = array(); public function __construct( array $tokens ){ $this->tokens = $tokens; $this->rewind(); } public function literal(){ foreach( func_get_args() as $t ){ $this->literal_tokens[ $t ] = 1; } return $this; } public function ignore(){ foreach( func_get_args() as $t ){ if( is_int($t) ){ $this->skip_tokens[$t] = true; } else { $this->skip_strings[$t] = true; } } return $this; } public function export(){ $arr = array(); foreach( $this as $tok ){ $arr[] = $tok; } return $arr; } public function advance(){ $this->next(); return $this->current(); } public function pop(){ $tok = array_pop( $this->tokens ); $this->rewind(); return $tok; } public function shift(){ $tok = array_shift( $this->tokens); $this->rewind(); return $tok; } public function rewind(){ $this->i = ( false === reset($this->tokens) ? null : key($this->tokens) ); } public function valid(){ while( isset($this->i) ){ $tok = $this->tokens[$this->i]; if( is_array($tok) ){ if( isset($this->skip_tokens[$tok[0]]) ){ $this->next(); } else { return true; } } else if( isset($this->skip_strings[$tok]) ){ $this->next(); } else { return true; } } return false; } public function key(){ return $this->i; } public function next(){ $this->i = ( false === next($this->tokens) ? null : key($this->tokens) ); } public function current(){ if( ! $this->valid() ){ return false; } $tok = $this->tokens[$this->i]; if( is_array($tok) && isset($this->literal_tokens[$tok[0]]) ){ return $tok[1]; } return $tok; } public function __toString(){ $s = ''; foreach( $this as $token ){ $s .= is_array($token) ? $token[1] : $token; } return $s; } }
|
20 |
function loco_sniff_php_printf( $s ){ $n = 0; while( $s && false !== ( $i = strpos($s,'%') ) ){ if( 0 !== $i ){ $s = substr( $s, $i ); } if( ! preg_match('/^%(?:\\d+\\$)?[-+]?(?:\'.)?[ 0]*-?\\d*(?:\\.\d+)?[bcdeEfFgGosuxX%]/', $s, $r ) ){ return 0; } $s = substr( $s, strlen($r[0]) ); $n++; } return $n; }
|
loco.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Loco Translate
|
|
4 |
Plugin URI: https://wordpress.org/plugins/loco-translate/
|
5 |
Description: Translate themes and plugins directly in WordPress
|
6 |
Author: Tim Whitlock
|
7 |
-
Version: 2.0.
|
8 |
Author URI: https://localise.biz/wordpress/plugin
|
9 |
Text Domain: loco
|
10 |
Domain Path: /languages/
|
@@ -45,7 +45,7 @@ function loco_plugin_file(){
|
|
45 |
* @return string
|
46 |
*/
|
47 |
function loco_plugin_version(){
|
48 |
-
return '2.0.
|
49 |
}
|
50 |
|
51 |
|
4 |
Plugin URI: https://wordpress.org/plugins/loco-translate/
|
5 |
Description: Translate themes and plugins directly in WordPress
|
6 |
Author: Tim Whitlock
|
7 |
+
Version: 2.0.11
|
8 |
Author URI: https://localise.biz/wordpress/plugin
|
9 |
Text Domain: loco
|
10 |
Domain Path: /languages/
|
45 |
* @return string
|
46 |
*/
|
47 |
function loco_plugin_version(){
|
48 |
+
return '2.0.11';
|
49 |
}
|
50 |
|
51 |
|
pub/css/admin.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
@font-face{font-family:'loco';src:url("../font/loco.eot");src:url("../font/loco.eot?#iefix") format("embedded-opentype"),url("../font/loco.woff") format("woff"),url("../font/loco.ttf") format("truetype"),url("../font/loco.svg#loco") format("svg");font-weight:normal;font-style:normal}.tipsy{font-size:11px;position:absolute;padding:5px;z-index:500001;opacity:0;-webkit-transition:opacity 0.15s linear;-o-transition:opacity 0.15s linear;transition:opacity 0.15s linear}.tipsy.in{opacity:1}.tipsy-inner{background-color:#000;color:#FFF;white-space:nowrap;padding:6px 8px;line-height:1.3em;text-align:center;-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;-o-border-radius:3px;border-radius:3px;-webkit-font-smoothing:subpixel-antialiased}.tipsy-arrow{position:absolute;width:0;height:0;line-height:0;border:5px dashed #000}.tipsy-n .tipsy-arrow{top:0px;left:50%;margin-left:-5px;border-bottom-style:solid;border-top:none;border-left-color:transparent;border-right-color:transparent}.tipsy-nw .tipsy-arrow{top:0;left:10px;border-bottom-style:solid;border-top:none;border-left-color:transparent;border-right-color:transparent}.tipsy-ne .tipsy-arrow{top:0;right:10px;border-bottom-style:solid;border-top:none;border-left-color:transparent;border-right-color:transparent}.tipsy-s .tipsy-arrow{bottom:0;left:50%;margin-left:-5px;border-top-style:solid;border-bottom:none;border-left-color:transparent;border-right-color:transparent}.tipsy-sw .tipsy-arrow{bottom:0;left:10px;border-top-style:solid;border-bottom:none;border-left-color:transparent;border-right-color:transparent}.tipsy-se .tipsy-arrow{bottom:0;right:10px;border-top-style:solid;border-bottom:none;border-left-color:transparent;border-right-color:transparent}.tipsy-e .tipsy-arrow{right:0;top:50%;margin-top:-5px;border-left-style:solid;border-right:none;border-top-color:transparent;border-bottom-color:transparent}.tipsy-w .tipsy-arrow{left:0;top:50%;margin-top:-5px;border-right-style:solid;border-left:none;border-top-color:transparent;border-bottom-color:transparent}#loco.wrap .selector{text-align:left;display:inline-block;white-space:nowrap}#loco.wrap .selectoradd a,#loco.wrap .selector .handle{cursor:default;display:block;position:relative;border-top:solid 1px #fff;border-right:solid 1px #ddd;border-bottom:solid 1px #ddd;border-left:solid 1px #fff;padding:0.3em 0.5em;color:#666;height:1.3em;overflow:hidden;white-space:normal}#loco.wrap .selectorsep{display:inline-block;border:solid 1px transparent}#loco.wrap .selectorsep:before{display:block;position:relative;padding:0.3em 0.5em;color:#999;height:1.3em;overflow:hidden}#loco.wrap .selectorsep>*{display:block;line-height:1em;color:#666;height:1.3em;overflow:hidden}#loco.wrap .selector .handle{outline:none}#loco.wrap .selector .handle .prefix{padding-right:0.6ex}#loco.wrap .selector .handle .region,#loco.wrap .selector .handle .lang-ca,#loco.wrap .selector .handle .lang-eo,#loco.wrap .selector .handle .lang-eu,#loco.wrap .selector .handle .variant-wales,#loco.wrap .selector .handle .region-gb.lang-cy,#loco.wrap .selector .handle .variant-scotland,#loco.wrap .selector .handle .region-gb.lang-gd,#loco.wrap .selector .handle .lang,#loco.wrap .selector .handle .icon-16{margin:0 5px 0 0}#loco.wrap .selector .handle:after{font-family:loco;padding-left:0.5em;padding-right:0.2em;font-size:1.3em;color:#ccc;float:right}#loco.wrap .selector .handle:focus:after,#loco.wrap .selector .handle:hover:after{color:#666}#loco.wrap .selector.no-title .handle .label{display:none}#loco.wrap .selector.no-caret .handle:after{display:none}#loco.wrap .selector.dummy .handle{border-color:transparent}#loco.wrap .selector.dummy .handle:after{display:none}#loco.wrap .selector .icon:before{color:#666}#loco.wrap .selector .lang,#loco.wrap .selector .region,#loco.wrap .selector .lang-ca,#loco.wrap .selector .lang-eo,#loco.wrap .selector .lang-eu,#loco.wrap .selector .variant-wales,#loco.wrap .selector .region-gb.lang-cy,#loco.wrap .selector .variant-scotland,#loco.wrap .selector .region-gb.lang-gd{vertical-align:middle}#loco.wrap .selectoradd{float:left;clear:none;position:relative}#loco.wrap .selectoradd>*{display:block;float:left;clear:none}#loco.wrap .selectoradd>a.has-icon{width:1.3em}#loco.wrap .selectoradd>a.has-icon:before{color:#999;display:inline;padding-left:0;padding-right:0;line-height:1.4em}#loco.wrap .selectoradd>a.has-icon:hover:after{color:#2e892e}#loco.wrap .selectoradd input[type="text"]{padding:0.3em 0.5em;-webkit-border-radius:0;-moz-border-radius:0;-ms-border-radius:0;-o-border-radius:0;border-radius:0}#loco.wrap .selectorsep{display:inline-block}#loco.wrap .selectorsep span{padding:0.3em 0.5em;color:#666;height:1.3em}#loco.wrap .selector ul,#loco.wrap .selector li{display:block;position:relative;cursor:default;padding:0;margin:0}#loco.wrap .selector ul{z-index:5;position:absolute;left:0;top:0;margin-top:2px;background:#f5f5f5;box-shadow:0 10px 5px rgba(0,0,0,0.2);border:solid 1px #ccc}#loco.wrap .selector.up ul{margin-top:0}#loco.wrap .selector li{padding:0.3em 0.5em}#loco.wrap .selector.multi li input{display:none}#loco.wrap .selector.multi li.checked{background:#eee}#loco.wrap .selector li.active{background:#eee !important}#loco.wrap .selector li.over{background:#ccc !important;color:#fff;text-shadow:1px 1px #aaa}#loco.wrap .selector li.over .label{color:#fff}#loco.wrap .selector .label{display:inline-block;font:inherit;color:inherit;padding:0 0.5em;margin:0}#loco.wrap .selector li .icon,#loco.wrap .selector .handle .icon{display:inline-block;min-width:1.2em;text-align:center;font-size:14px;vertical-align:middle}#loco.wrap .selector li .icon.no-icon,#loco.wrap .selector .handle .icon.no-icon{display:none}#loco.wrap .selector .icon-16{vertical-align:text-top}#loco.wrap .selector.ticked .icon.no-icon{font-size:12px;display:inline-block}#loco.wrap .selector.ticked .active .icon.no-icon:before{content:"\2713"}#loco.wrap .selectoradd a:hover,#loco.wrap .selector a.handle:focus,#loco.wrap .selector a.handle:hover{color:#000;border-color:#999}#loco.wrap .selector.active .handle{border-color:#999;background-color:#eee;color:#999}#loco.wrap .selector.active .handle:after{color:#999}#loco.wrap .selector.disabled{padding:0.3em 0.5em;border-top:solid 1px #fff;border-right:solid 1px #ddd;border-bottom:solid 1px #ddd;border-left:solid 1px #fff;color:#666;height:1.3em;cursor:default;cursor:no-drop;cursor:not-allowed}#loco.wrap .selector.disabled:after{font-family:loco;padding-left:0.5em;padding-right:0.3em;line-height:1em;vertical-align:middle}#loco.wrap .selector li.disabled,#loco.wrap .selector li.disabled.over{color:#aaa;text-shadow:1px 1px #fff;pointer-events:none}#loco.wrap .selector li.disabled *{cursor:text}#loco.wrap .selector li.disabled .icon:before{color:#aaa}#loco.wrap .selector li.disabled .flag,#loco.wrap .selector li.disabled .icon-16{opacity:0.4}#loco.wrap .selector.lefty ul{left:auto;right:0}#loco.wrap .selector.lefty ul .icon,#loco.wrap .selector.lefty ul .icon-32{display:block;float:right;clear:none}#loco.wrap .selector.lefty ul .label{padding-right:32px;padding-left:0}#loco.wrap div.auto-comp-wrap{width:100%}#loco.wrap div.auto-comp-wrap input{display:inline-block}#loco.wrap div.auto-comp-wrap.loading input{background:transparent url(../img/ajax-loader.gif?v=2.0.8) right 2px no-repeat}#loco.wrap div.auto-comp-drop{color:#333333;background:#FFFFFF;border-top:none;position:absolute;width:100%;top:0;left:0;z-index:99;-webkit-box-shadow:0 5px 5px rgba(0,0,0,0.4);-moz-box-shadow:0 5px 5px rgba(0,0,0,0.4);box-shadow:0 5px 5px rgba(0,0,0,0.4)}#loco.wrap div.auto-comp-result{padding:5px 10px;cursor:pointer;background:#F0F0F0;border-top:solid 1px #FFF;border-bottom:solid 1px #DDD}#loco.wrap div.auto-comp-result:first-child{border-top:solid 1px #DDD}#loco.wrap div.auto-comp-result>*{display:inline-block;vertical-align:middle;line-height:normal}#loco.wrap div.auto-comp-result .icon:before{padding-right:5px}#loco.wrap div.auto-comp-result:hover{background:#A8A8A8;color:#FFFFFF;border-top-color:#A8A8A8;border-bottom-color:#999999}#loco.wrap div.auto-comp-result.selected{background:#666666 !important;color:#FFFFFF;border-top-color:#666666;border-bottom-color:#666666}#loco.wrap div.auto-comp-result .lang,#loco.wrap div.auto-comp-result .region,#loco.wrap div.auto-comp-result .lang-ca,#loco.wrap div.auto-comp-result .lang-eo,#loco.wrap div.auto-comp-result .lang-eu,#loco.wrap div.auto-comp-result .variant-wales,#loco.wrap div.auto-comp-result .region-gb.lang-cy,#loco.wrap div.auto-comp-result .variant-scotland,#loco.wrap div.auto-comp-result .region-gb.lang-gd{margin-right:5px}#loco.wrap div.auto-comp-wrap.error a.icon.clear:before{color:#cc0000;opacity:1}#loco.wrap div.auto-comp-wrap.error input[type="text"]{border-color:#cc0000;color:#cc0000}#loco.wrap div.auto-comp-wrap.error input[type="text"]:focus{-webkit-box-shadow:0 0 0.5em 0 rgba(153,0,0,0.5);-moz-box-shadow:0 0 0.5em 0 rgba(153,0,0,0.5);box-shadow:0 0 0.5em 0 rgba(153,0,0,0.5)}@font-face{#loco.wrap{font-family:'loco';src:url("../fonts/loco.eot");src:url("../fonts/loco.eot?#iefix") format("embedded-opentype"),url("../fonts/loco.ttf") format("truetype"),url("../fonts/loco.woff") format("woff"),url("../fonts/loco.svg#loco") format("svg");font-weight:normal;font-style:normal}}#loco.wrap .icon,#loco.wrap .loco-font,#loco.wrap .wp-list-table th.loco-sort.loco-asc:after,#loco.wrap .wp-list-table th.loco-sort.loco-desc:after,#loco.wrap .has-icon:before{font-family:'loco';speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#loco.wrap .has-icon:before{display:inline-block;padding-right:0.3em}#loco.wrap a.icon-help{cursor:help}#loco.wrap a.icon-help span{display:none}#loco.wrap .icon-bullist:before{content:"\e00a"}#loco.wrap .icon-numlist:before{content:"\e00b"}#loco.wrap .icon-indent:before{content:"\e00c"}#loco.wrap .icon-outdent:before{content:"\e00d"}#loco.wrap .icon-link:before{content:"\e011"}#loco.wrap .icon-unlink:before{content:"\e012"}#loco.wrap .icon-bold:before{content:"\42"}#loco.wrap .icon-italic:before{content:"\49"}#loco.wrap .icon-translate:before{content:"\f326"}#loco.wrap .icon-proj:before{content:"\e900"}#loco.wrap .icon-plural:before{content:"\73"}#loco.wrap .icon-max:before{content:"\e901"}#loco.wrap .icon-min:before{content:"\e902"}#loco.wrap .icon-sort:before{content:"\e903"}#loco.wrap .icon-checkbox-checked:before,#loco.wrap .selector.multi li.checked .icon-checkbox:before{content:"\2611"}#loco.wrap .icon-checkbox-unchecked:before{content:"\2610"}#loco.wrap .icon-checkbox-partial:before{content:"\2609"}#loco.wrap .icon-radio-checked:before{content:"\26ab"}#loco.wrap .icon-radio-unchecked:before{content:"\26aa"}#loco.wrap .icon-ext:before{content:"\2b08"}#loco.wrap .icon-star:before{content:"\e612"}#loco.wrap .icon-user:before{content:"\e620"}#loco.wrap .icon-ok:before,#loco.wrap .notice-success>.has-icon:before,#loco.wrap .notice-success p>strong.has-icon:before{content:"\2713"}#loco.wrap .icon-remove:before{content:"\d7"}#loco.wrap .icon-cog:before{content:"\e61b"}#loco.wrap .icon-trash:before{content:"\e60f"}#loco.wrap .icon-time:before{content:"\e62d"}#loco.wrap .icon-download:before{content:"\e608"}#loco.wrap .icon-revert:before{content:"\e635"}#loco.wrap .icon-sync:before{content:"\e634"}#loco.wrap .icon-lock:before,#loco.wrap .selector.disabled:after,#loco.wrap .notice-locked>.has-icon:before,#loco.wrap .notice-locked p>strong.has-icon:before{content:"\e604"}#loco.wrap .icon-flag:before{content:"\e60e"}#loco.wrap .icon-tag:before{content:"\e622"}#loco.wrap .icon-tags:before{content:"\e623"}#loco.wrap .icon-print:before{content:"\e62a"}#loco.wrap .icon-camera:before{content:"\e629"}#loco.wrap .icon-pencil:before{content:"\e61e"}#loco.wrap .icon-add:before{content:"\e60c"}#loco.wrap .icon-del:before{content:"\e60d"}#loco.wrap .icon-clear:before,#loco.wrap a.icon.clear:before{content:"\e615"}#loco.wrap .icon-ok-sign:before{content:"\2714"}#loco.wrap .icon-help:before{content:"\3f"}#loco.wrap .icon-info:before,#loco.wrap .notice-info>.has-icon:before,#loco.wrap .notice-info p>strong.has-icon:before{content:"\2139"}#loco.wrap .icon-cancel:before{content:"\e605"}#loco.wrap .icon-warn:before,#loco.wrap .notice-warning>.has-icon:before,#loco.wrap .notice-warning p>strong.has-icon:before,#loco.wrap .notice-error>.has-icon:before,#loco.wrap .notice-error p>strong.has-icon:before{content:"\e62e"}#loco.wrap .icon-comment:before{content:"\e613"}#loco.wrap .icon-bar-chart:before{content:"\e624"}#loco.wrap .icon-key:before{content:"\e606"}#loco.wrap .icon-cogs:before{content:"\e61c"}#loco.wrap .icon-comments:before{content:"\e614"}#loco.wrap .icon-signout:before{content:"\e61a"}#loco.wrap .icon-signin:before{content:"\e619"}#loco.wrap .icon-upload:before{content:"\e609"}#loco.wrap .icon-twitter:before{content:"\1f426"}#loco.wrap .icon-facebook:before{content:"\e630"}#loco.wrap .icon-github:before{content:"\e633"}#loco.wrap .icon-feed:before{content:"\e628"}#loco.wrap .icon-globe:before{content:"\e61d"}#loco.wrap .icon-wrench:before,#loco.wrap .notice-debug>.has-icon:before,#loco.wrap .notice-debug p>strong.has-icon:before{content:"\e626"}#loco.wrap .icon-group:before{content:"\e61f"}#loco.wrap .icon-cloud:before{content:"\e607"}#loco.wrap .icon-copy:before{content:"\e62b"}#loco.wrap .icon-save:before{content:"\e610"}#loco.wrap .icon-menu:before{content:"\e600"}#loco.wrap .icon-table:before{content:"\e627"}#loco.wrap .icon-caret-down:before,#loco.wrap .selector .handle:after{content:"\25bc"}#loco.wrap .icon-caret-up:before,#loco.wrap .selector.active .handle:after{content:"\25b2"}#loco.wrap .icon-caret-right:before{content:"\25b6"}#loco.wrap .icon-mail:before{content:"\e603"}#loco.wrap .icon-cloud-upload:before{content:"\e617"}#loco.wrap .icon-file:before{content:"\e611"}#loco.wrap .icon-circle-white:before{content:"\26ac"}#loco.wrap .icon-circle-black:before{content:"\25cf"}#loco.wrap .icon-eraser:before{content:"\e636"}#loco.wrap .icon-unlock:before{content:"\e616"}#loco.wrap .icon-apple:before{content:"\e60b"}#loco.wrap .icon-android:before{content:"\e60a"}#loco.wrap .icon-back:before{content:"\2b05"}#loco.wrap .icon-next:before{content:"\2794"}#loco.wrap .icon-arrow-up:before{content:"\f062"}#loco.wrap .icon-ccard:before{content:"\f09d"}#loco.wrap .icon-caret-left:before{content:"\25c0"}#loco.wrap .icon-pro:before{content:"\26a1"}#loco.wrap .icon-code:before{content:"\f121"}#loco.wrap .icon-hellip:before{content:"\2026"}#loco.wrap .icon-vellip:before{content:"\205e"}#loco.wrap .icon-collapse:before{content:"\f147"}#loco.wrap .icon-expand:before{content:"\f196"}#loco.wrap .icon-wordpress:before{content:"\f19a"}#loco.wrap .icon-database:before{content:"\f1c0"}#loco.wrap .icon-pilcrow:before{content:"\b6"}#loco.wrap .icon-flag.is-untranslated:before{content:"×"}#loco.wrap .icon-flag.status-0:before,#loco.wrap .icon-flag.is-translated:before{content:"✓"}#loco.wrap .icon-flag.status-1:before,#loco.wrap .icon-flag.is-incorrect:before{content:""}#loco.wrap .icon-flag.status-2:before,#loco.wrap .icon-flag.is-provisional:before{content:""}#loco.wrap .icon-flag.status-3:before,#loco.wrap .icon-flag.is-unapproved:before{content:""}#loco.wrap .icon-flag.status-4:before,#loco.wrap .icon-flag.is-fuzzy:before{content:""}#loco.wrap .icon-flag.status-5:before,#loco.wrap .icon-flag.is-incomplete:before{content:""}#loco.wrap .icon-flag.status-6:before,#loco.wrap .icon-flag.is-rejected:before{content:""}#loco.wrap .lang,#loco.wrap .region,#loco.wrap .lang-ca,#loco.wrap .lang-eo,#loco.wrap .lang-eu,#loco.wrap .variant-wales,#loco.wrap .region-gb.lang-cy,#loco.wrap .variant-scotland,#loco.wrap .region-gb.lang-gd{color:#fff;background:#2e892e;display:inline-block;text-transform:uppercase;overflow:hidden;font-family:Verdana,Arial,sans-serif;font-size:9px;font-weight:normal;font-style:normal;line-height:12px;text-align:center;white-space:normal;text-shadow:none}#loco.wrap .lang{width:20px;height:12px;line-height:12px;vertical-align:middle}#loco.wrap .lang:before{content:attr(lang)}#loco.wrap .lang-el{background-color:#1D48A3}#loco.wrap .lang-el:before{content:"\0395\03BB"}#loco.wrap .region,#loco.wrap .lang-ca,#loco.wrap .lang-eo,#loco.wrap .lang-eu,#loco.wrap .variant-wales,#loco.wrap .region-gb.lang-cy,#loco.wrap .variant-scotland,#loco.wrap .region-gb.lang-gd{width:16px;height:12px;margin:0 2px;background-image:url(../img/flags.png?v=2.0.8);background-repeat:no-repeat;background-color:transparent}#loco.wrap .region:before,#loco.wrap .lang-ca:before,#loco.wrap .lang-eo:before,#loco.wrap .lang-eu:before,#loco.wrap .variant-wales:before,#loco.wrap .region-gb.lang-cy:before,#loco.wrap .variant-scotland:before,#loco.wrap .region-gb.lang-gd:before{content:"\0A";display:none}#loco.wrap .lang-zh{background-color:#B90000}#loco.wrap .lang-zh.script-hans:before{content:"\4E2D\56FD"}#loco.wrap .lang-zh.script-hant:before{content:"\4E2D\570B"}#loco.wrap .__{background-position:0 0}#loco.wrap .lang-ca{background-position:0 -12px}#loco.wrap .lang-eo{background-position:0 -24px}#loco.wrap .lang-eu{background-position:0 -36px}#loco.wrap .region-ad{background-position:0 -48px}#loco.wrap .region-ae{background-position:0 -60px}#loco.wrap .region-af{background-position:0 -72px}#loco.wrap .region-ag{background-position:0 -84px}#loco.wrap .region-ai{background-position:0 -96px}#loco.wrap .region-al{background-position:0 -108px}#loco.wrap .region-am{background-position:0 -120px}#loco.wrap .region-an{background-position:0 -132px}#loco.wrap .region-ao{background-position:0 -144px}#loco.wrap .region-aq{background-position:0 -156px}#loco.wrap .region-ar{background-position:0 -173px}#loco.wrap .region-as{background-position:0 -185px}#loco.wrap .region-at{background-position:0 -197px}#loco.wrap .region-au{background-position:0 -209px}#loco.wrap .region-aw{background-position:0 -221px}#loco.wrap .region-ax{background-position:0 -233px}#loco.wrap .region-az{background-position:0 -245px}#loco.wrap .region-ba{background-position:0 -257px}#loco.wrap .region-bb{background-position:0 -269px}#loco.wrap .region-bd{background-position:0 -281px}#loco.wrap .region-be{background-position:0 -293px}#loco.wrap .region-bf{background-position:0 -305px}#loco.wrap .region-bg{background-position:0 -317px}#loco.wrap .region-bh{background-position:0 -329px}#loco.wrap .region-bi{background-position:0 -341px}#loco.wrap .region-bj{background-position:0 -353px}#loco.wrap .region-bl{background-position:0 -365px}#loco.wrap .region-bm{background-position:0 -382px}#loco.wrap .region-bn{background-position:0 -394px}#loco.wrap .region-bo{background-position:0 -406px}#loco.wrap .region-bq{background-position:0 -418px}#loco.wrap .region-br{background-position:0 -430px}#loco.wrap .region-bs{background-position:0 -442px}#loco.wrap .region-bt{background-position:0 -454px}#loco.wrap .region-bv{background-position:0 -466px}#loco.wrap .region-bw{background-position:0 -478px}#loco.wrap .region-by{background-position:0 -490px}#loco.wrap .region-bz{background-position:0 -502px}#loco.wrap .region-ca{background-position:0 -514px}#loco.wrap .region-cc{background-position:0 -526px}#loco.wrap .region-cd{background-position:0 -538px}#loco.wrap .region-cf{background-position:0 -550px}#loco.wrap .region-cg{background-position:0 -562px}#loco.wrap .region-ch{background-position:0 -574px}#loco.wrap .region-ci{background-position:0 -586px}#loco.wrap .region-ck{background-position:0 -598px}#loco.wrap .region-cl{background-position:0 -610px}#loco.wrap .region-cm{background-position:0 -622px}#loco.wrap .region-cn{background-position:0 -634px}#loco.wrap .region-co{background-position:0 -646px}#loco.wrap .region-cr{background-position:0 -658px}#loco.wrap .region-cs{background-position:0 -670px}#loco.wrap .region-cu{background-position:0 -682px}#loco.wrap .region-cv{background-position:0 -694px}#loco.wrap .region-cw{background-position:0 -706px}#loco.wrap .region-cx{background-position:0 -723px}#loco.wrap .region-cy{background-position:0 -735px}#loco.wrap .region-cz{background-position:0 -747px}#loco.wrap .region-de{background-position:0 -759px}#loco.wrap .region-dj{background-position:0 -771px}#loco.wrap .region-dk{background-position:0 -783px}#loco.wrap .region-dm{background-position:0 -795px}#loco.wrap .region-do{background-position:0 -807px}#loco.wrap .region-dz{background-position:0 -819px}#loco.wrap .region-ec{background-position:0 -831px}#loco.wrap .region-ee{background-position:0 -843px}#loco.wrap .region-eg{background-position:0 -855px}#loco.wrap .region-eh{background-position:0 -867px}#loco.wrap .region-er{background-position:0 -879px}#loco.wrap .region-es{background-position:0 -891px}#loco.wrap .region-et{background-position:0 -903px}#loco.wrap .region-fi{background-position:0 -915px}#loco.wrap .region-fj{background-position:0 -927px}#loco.wrap .region-fk{background-position:0 -939px}#loco.wrap .region-fm{background-position:0 -951px}#loco.wrap .region-fo{background-position:0 -963px}#loco.wrap .region-fr{background-position:0 -975px}#loco.wrap .region-ga{background-position:0 -987px}#loco.wrap .region-gb{background-position:0 -999px}#loco.wrap .region-gd{background-position:0 -1011px}#loco.wrap .region-ge{background-position:0 -1023px}#loco.wrap .region-gf{background-position:0 -1035px}#loco.wrap .region-gg{background-position:0 -1047px}#loco.wrap .region-gh{background-position:0 -1064px}#loco.wrap .region-gi{background-position:0 -1076px}#loco.wrap .region-gl{background-position:0 -1088px}#loco.wrap .region-gm{background-position:0 -1100px}#loco.wrap .region-gn{background-position:0 -1112px}#loco.wrap .region-gp{background-position:0 -1124px}#loco.wrap .region-gq{background-position:0 -1136px}#loco.wrap .region-gr{background-position:0 -1148px}#loco.wrap .region-gs{background-position:0 -1160px}#loco.wrap .region-gt{background-position:0 -1172px}#loco.wrap .region-gu{background-position:0 -1184px}#loco.wrap .region-gw{background-position:0 -1196px}#loco.wrap .region-gy{background-position:0 -1208px}#loco.wrap .region-hk{background-position:0 -1220px}#loco.wrap .region-hm{background-position:0 -1232px}#loco.wrap .region-hn{background-position:0 -1244px}#loco.wrap .region-hr{background-position:0 -1256px}#loco.wrap .region-ht{background-position:0 -1268px}#loco.wrap .region-hu{background-position:0 -1280px}#loco.wrap .region-id{background-position:0 -1292px}#loco.wrap .region-ie{background-position:0 -1304px}#loco.wrap .region-il{background-position:0 -1316px}#loco.wrap .region-im{background-position:0 -1328px}#loco.wrap .region-in{background-position:0 -1345px}#loco.wrap .region-io{background-position:0 -1357px}#loco.wrap .region-iq{background-position:0 -1369px}#loco.wrap .region-ir{background-position:0 -1381px}#loco.wrap .region-is{background-position:0 -1393px}#loco.wrap .region-it{background-position:0 -1405px}#loco.wrap .region-je{background-position:0 -1417px}#loco.wrap .region-jm{background-position:0 -1434px}#loco.wrap .region-jo{background-position:0 -1446px}#loco.wrap .region-jp{background-position:0 -1458px}#loco.wrap .region-ke{background-position:0 -1470px}#loco.wrap .region-kg{background-position:0 -1482px}#loco.wrap .region-kh{background-position:0 -1494px}#loco.wrap .region-ki{background-position:0 -1506px}#loco.wrap .region-km{background-position:0 -1518px}#loco.wrap .region-kn{background-position:0 -1530px}#loco.wrap .region-kp{background-position:0 -1542px}#loco.wrap .region-kr{background-position:0 -1554px}#loco.wrap .region-kw{background-position:0 -1566px}#loco.wrap .region-ky{background-position:0 -1578px}#loco.wrap .region-kz{background-position:0 -1590px}#loco.wrap .region-la{background-position:0 -1602px}#loco.wrap .region-lb{background-position:0 -1614px}#loco.wrap .region-lc{background-position:0 -1626px}#loco.wrap .region-li{background-position:0 -1638px}#loco.wrap .region-lk{background-position:0 -1650px}#loco.wrap .region-lr{background-position:0 -1662px}#loco.wrap .region-ls{background-position:0 -1674px}#loco.wrap .region-lt{background-position:0 -1686px}#loco.wrap .region-lu{background-position:0 -1698px}#loco.wrap .region-lv{background-position:0 -1710px}#loco.wrap .region-ly{background-position:0 -1722px}#loco.wrap .region-ma{background-position:0 -1734px}#loco.wrap .region-mc{background-position:0 -1746px}#loco.wrap .region-md{background-position:0 -1758px}#loco.wrap .region-me{background-position:0 -1770px}#loco.wrap .region-mf{background-position:0 -1783px}#loco.wrap .region-mg{background-position:0 -1800px}#loco.wrap .region-mh{background-position:0 -1812px}#loco.wrap .region-mk{background-position:0 -1824px}#loco.wrap .region-ml{background-position:0 -1836px}#loco.wrap .region-mm{background-position:0 -1848px}#loco.wrap .region-mn{background-position:0 -1860px}#loco.wrap .region-mo{background-position:0 -1872px}#loco.wrap .region-mp{background-position:0 -1884px}#loco.wrap .region-mq{background-position:0 -1896px}#loco.wrap .region-mr{background-position:0 -1908px}#loco.wrap .region-ms{background-position:0 -1920px}#loco.wrap .region-mt{background-position:0 -1932px}#loco.wrap .region-mu{background-position:0 -1944px}#loco.wrap .region-mv{background-position:0 -1956px}#loco.wrap .region-mw{background-position:0 -1968px}#loco.wrap .region-mx{background-position:0 -1980px}#loco.wrap .region-my{background-position:0 -1992px}#loco.wrap .region-mz{background-position:0 -2004px}#loco.wrap .region-na{background-position:0 -2016px}#loco.wrap .region-nc{background-position:0 -2028px}#loco.wrap .region-ne{background-position:0 -2040px}#loco.wrap .region-nf{background-position:0 -2052px}#loco.wrap .region-ng{background-position:0 -2064px}#loco.wrap .region-ni{background-position:0 -2076px}#loco.wrap .region-nl{background-position:0 -2088px}#loco.wrap .region-no{background-position:0 -2100px}#loco.wrap .region-np{background-position:0 -2112px}#loco.wrap .region-nr{background-position:0 -2124px}#loco.wrap .region-nu{background-position:0 -2136px}#loco.wrap .region-nz{background-position:0 -2148px}#loco.wrap .region-om{background-position:0 -2160px}#loco.wrap .region-pa{background-position:0 -2172px}#loco.wrap .region-pe{background-position:0 -2184px}#loco.wrap .region-pf{background-position:0 -2196px}#loco.wrap .region-pg{background-position:0 -2208px}#loco.wrap .region-ph{background-position:0 -2220px}#loco.wrap .region-pk{background-position:0 -2232px}#loco.wrap .region-pl{background-position:0 -2244px}#loco.wrap .region-pm{background-position:0 -2256px}#loco.wrap .region-pn{background-position:0 -2268px}#loco.wrap .region-pr{background-position:0 -2280px}#loco.wrap .region-ps{background-position:0 -2292px}#loco.wrap .region-pt{background-position:0 -2304px}#loco.wrap .region-pw{background-position:0 -2316px}#loco.wrap .region-py{background-position:0 -2328px}#loco.wrap .region-qa{background-position:0 -2340px}#loco.wrap .region-re{background-position:0 -2352px}#loco.wrap .region-ro{background-position:0 -2364px}#loco.wrap .region-rs{background-position:0 -2376px}#loco.wrap .region-ru{background-position:0 -2388px}#loco.wrap .region-rw{background-position:0 -2400px}#loco.wrap .region-sa{background-position:0 -2412px}#loco.wrap .region-sb{background-position:0 -2424px}#loco.wrap .region-sc{background-position:0 -2436px}#loco.wrap .region-sd{background-position:0 -2448px}#loco.wrap .region-se{background-position:0 -2460px}#loco.wrap .region-sg{background-position:0 -2472px}#loco.wrap .region-sh{background-position:0 -2484px}#loco.wrap .region-si{background-position:0 -2496px}#loco.wrap .region-sj{background-position:0 -2508px}#loco.wrap .region-sk{background-position:0 -2520px}#loco.wrap .region-sl{background-position:0 -2532px}#loco.wrap .region-sm{background-position:0 -2544px}#loco.wrap .region-sn{background-position:0 -2556px}#loco.wrap .region-so{background-position:0 -2568px}#loco.wrap .region-sr{background-position:0 -2580px}#loco.wrap .region-ss{background-position:0 -2592px}#loco.wrap .region-st{background-position:0 -2609px}#loco.wrap .region-sv{background-position:0 -2621px}#loco.wrap .region-sx{background-position:0 -2633px}#loco.wrap .region-sy{background-position:0 -2650px}#loco.wrap .region-sz{background-position:0 -2662px}#loco.wrap .region-tc{background-position:0 -2674px}#loco.wrap .region-td{background-position:0 -2686px}#loco.wrap .region-tf{background-position:0 -2698px}#loco.wrap .region-tg{background-position:0 -2710px}#loco.wrap .region-th{background-position:0 -2722px}#loco.wrap .region-tj{background-position:0 -2734px}#loco.wrap .region-tk{background-position:0 -2746px}#loco.wrap .region-tl{background-position:0 -2758px}#loco.wrap .region-tm{background-position:0 -2770px}#loco.wrap .region-tn{background-position:0 -2782px}#loco.wrap .region-to{background-position:0 -2794px}#loco.wrap .region-tr{background-position:0 -2806px}#loco.wrap .region-tt{background-position:0 -2818px}#loco.wrap .region-tv{background-position:0 -2830px}#loco.wrap .region-tw{background-position:0 -2842px}#loco.wrap .region-tz{background-position:0 -2854px}#loco.wrap .region-ua{background-position:0 -2866px}#loco.wrap .region-ug{background-position:0 -2878px}#loco.wrap .region-um{background-position:0 -2890px}#loco.wrap .region-us{background-position:0 -2902px}#loco.wrap .region-uy{background-position:0 -2914px}#loco.wrap .region-uz{background-position:0 -2926px}#loco.wrap .region-va{background-position:0 -2938px}#loco.wrap .region-vc{background-position:0 -2950px}#loco.wrap .region-ve{background-position:0 -2962px}#loco.wrap .region-vg{background-position:0 -2974px}#loco.wrap .region-vi{background-position:0 -2986px}#loco.wrap .region-vn{background-position:0 -2998px}#loco.wrap .region-vu{background-position:0 -3010px}#loco.wrap .region-wf{background-position:0 -3022px}#loco.wrap .region-ws{background-position:0 -3034px}#loco.wrap .region-ye{background-position:0 -3046px}#loco.wrap .region-yt{background-position:0 -3058px}#loco.wrap .region-za{background-position:0 -3070px}#loco.wrap .region-zm{background-position:0 -3082px}#loco.wrap .region-zw{background-position:0 -3094px}#loco.wrap .variant-scotland,#loco.wrap .region-gb.lang-gd{background-position:0 -3106px}#loco.wrap .variant-wales,#loco.wrap .region-gb.lang-cy{background-position:0 -3118px}#loco.wrap .x-eu{background-position:0 -3130px}#loco.wrap span.lang code{display:none}#loco.wrap .icon-bullist:before{content:"\e00a"}#loco.wrap .icon-numlist:before{content:"\e00b"}#loco.wrap .icon-indent:before{content:"\e00c"}#loco.wrap .icon-outdent:before{content:"\e00d"}#loco.wrap .icon-link:before{content:"\e011"}#loco.wrap .icon-unlink:before{content:"\e012"}#loco.wrap .icon-bold:before{content:"\42"}#loco.wrap .icon-italic:before{content:"\49"}#loco.wrap .icon-translate:before{content:"\f326"}#loco.wrap .icon-proj:before{content:"\e900"}#loco.wrap .icon-plural:before{content:"\73"}#loco.wrap .icon-max:before{content:"\e901"}#loco.wrap .icon-min:before{content:"\e902"}#loco.wrap .icon-sort:before{content:"\e903"}#loco.wrap .icon-checkbox-checked:before,#loco.wrap .selector.multi li.checked .icon-checkbox:before{content:"\2611"}#loco.wrap .icon-checkbox-unchecked:before{content:"\2610"}#loco.wrap .icon-checkbox-partial:before{content:"\2609"}#loco.wrap .icon-radio-checked:before{content:"\26ab"}#loco.wrap .icon-radio-unchecked:before{content:"\26aa"}#loco.wrap .icon-ext:before{content:"\2b08"}#loco.wrap .icon-star:before{content:"\e612"}#loco.wrap .icon-user:before{content:"\e620"}#loco.wrap .icon-ok:before,#loco.wrap .notice-success>.has-icon:before,#loco.wrap .notice-success p>strong.has-icon:before{content:"\2713"}#loco.wrap .icon-remove:before{content:"\d7"}#loco.wrap .icon-cog:before{content:"\e61b"}#loco.wrap .icon-trash:before{content:"\e60f"}#loco.wrap .icon-time:before{content:"\e62d"}#loco.wrap .icon-download:before{content:"\e608"}#loco.wrap .icon-revert:before{content:"\e635"}#loco.wrap .icon-sync:before{content:"\e634"}#loco.wrap .icon-lock:before,#loco.wrap .selector.disabled:after,#loco.wrap .notice-locked>.has-icon:before,#loco.wrap .notice-locked p>strong.has-icon:before{content:"\e604"}#loco.wrap .icon-flag:before{content:"\e60e"}#loco.wrap .icon-tag:before{content:"\e622"}#loco.wrap .icon-tags:before{content:"\e623"}#loco.wrap .icon-print:before{content:"\e62a"}#loco.wrap .icon-camera:before{content:"\e629"}#loco.wrap .icon-pencil:before{content:"\e61e"}#loco.wrap .icon-add:before{content:"\e60c"}#loco.wrap .icon-del:before{content:"\e60d"}#loco.wrap .icon-clear:before,#loco.wrap a.icon.clear:before{content:"\e615"}#loco.wrap .icon-ok-sign:before{content:"\2714"}#loco.wrap .icon-help:before{content:"\3f"}#loco.wrap .icon-info:before,#loco.wrap .notice-info>.has-icon:before,#loco.wrap .notice-info p>strong.has-icon:before{content:"\2139"}#loco.wrap .icon-cancel:before{content:"\e605"}#loco.wrap .icon-warn:before,#loco.wrap .notice-warning>.has-icon:before,#loco.wrap .notice-warning p>strong.has-icon:before,#loco.wrap .notice-error>.has-icon:before,#loco.wrap .notice-error p>strong.has-icon:before{content:"\e62e"}#loco.wrap .icon-comment:before{content:"\e613"}#loco.wrap .icon-bar-chart:before{content:"\e624"}#loco.wrap .icon-key:before{content:"\e606"}#loco.wrap .icon-cogs:before{content:"\e61c"}#loco.wrap .icon-comments:before{content:"\e614"}#loco.wrap .icon-signout:before{content:"\e61a"}#loco.wrap .icon-signin:before{content:"\e619"}#loco.wrap .icon-upload:before{content:"\e609"}#loco.wrap .icon-twitter:before{content:"\1f426"}#loco.wrap .icon-facebook:before{content:"\e630"}#loco.wrap .icon-github:before{content:"\e633"}#loco.wrap .icon-feed:before{content:"\e628"}#loco.wrap .icon-globe:before{content:"\e61d"}#loco.wrap .icon-wrench:before,#loco.wrap .notice-debug>.has-icon:before,#loco.wrap .notice-debug p>strong.has-icon:before{content:"\e626"}#loco.wrap .icon-group:before{content:"\e61f"}#loco.wrap .icon-cloud:before{content:"\e607"}#loco.wrap .icon-copy:before{content:"\e62b"}#loco.wrap .icon-save:before{content:"\e610"}#loco.wrap .icon-menu:before{content:"\e600"}#loco.wrap .icon-table:before{content:"\e627"}#loco.wrap .icon-caret-down:before,#loco.wrap .selector .handle:after{content:"\25bc"}#loco.wrap .icon-caret-up:before,#loco.wrap .selector.active .handle:after{content:"\25b2"}#loco.wrap .icon-caret-right:before{content:"\25b6"}#loco.wrap .icon-mail:before{content:"\e603"}#loco.wrap .icon-cloud-upload:before{content:"\e617"}#loco.wrap .icon-file:before{content:"\e611"}#loco.wrap .icon-circle-white:before{content:"\26ac"}#loco.wrap .icon-circle-black:before{content:"\25cf"}#loco.wrap .icon-eraser:before{content:"\e636"}#loco.wrap .icon-unlock:before{content:"\e616"}#loco.wrap .icon-apple:before{content:"\e60b"}#loco.wrap .icon-android:before{content:"\e60a"}#loco.wrap .icon-back:before{content:"\2b05"}#loco.wrap .icon-next:before{content:"\2794"}#loco.wrap .icon-arrow-up:before{content:"\f062"}#loco.wrap .icon-ccard:before{content:"\f09d"}#loco.wrap .icon-caret-left:before{content:"\25c0"}#loco.wrap .icon-pro:before{content:"\26a1"}#loco.wrap .icon-code:before{content:"\f121"}#loco.wrap .icon-hellip:before{content:"\2026"}#loco.wrap .icon-vellip:before{content:"\205e"}#loco.wrap .icon-collapse:before{content:"\f147"}#loco.wrap .icon-expand:before{content:"\f196"}#loco.wrap .icon-wordpress:before{content:"\f19a"}#loco.wrap .icon-database:before{content:"\f1c0"}#loco.wrap .icon-pilcrow:before{content:"\b6"}#loco.wrap .icon,#loco.wrap .has-icon:before,#loco.wrap .has-dashicon:before{speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#loco.wrap .icon,#loco.wrap .has-icon:before{font-family:'loco'}#loco.wrap .has-dashicon:before{font-family:'dashicons';font-size:1.4em}#loco.wrap .has-icon:before,#loco.wrap .has-dashicon:before,#loco.wrap .has-icon>span{display:inline-block;vertical-align:middle}#loco.wrap .only-icon{text-align:center}#loco.wrap .only-icon:before{text-align:center}#loco.wrap .only-icon span{display:none}#loco.wrap h1 ul,#loco.wrap h1 li{margin:0;padding:0}#loco.wrap h1 li{display:inline-block}#loco.wrap h1 li:after{content:"/";color:#999;text-shadow:none;display:inline-block}#loco.wrap h1 li a{text-decoration:none}#loco.wrap h1 li:last-child:after{content:""}#loco.wrap h1 li:last-child a{color:inherit;pointer-events:none;cursor:auto}#loco.wrap h2 span{color:#999;font-weight:normal}#loco.wrap h3 .loco-meta{font-size:14px;font-weight:normal}#loco.wrap .wp-list-table td:first-child .icon{width:16px;display:inline-block;text-align:center}#loco.wrap .wp-list-table td{white-space:nowrap}#loco.wrap .wp-list-table th.loco-sort{cursor:pointer}#loco.wrap .wp-list-table th.loco-sort:hover{color:#000}#loco.wrap .wp-list-table th.loco-sort.loco-asc:after,#loco.wrap .wp-list-table th.loco-sort.loco-desc:after{padding:0 0 0 4px;color:#999}#loco.wrap .wp-list-table th.loco-sort.loco-desc:after{content:"\25bc"}#loco.wrap .wp-list-table th.loco-sort.loco-asc:after{content:"\25b2"}#loco.wrap form.loco-filter{display:block;margin-bottom:5px}#loco.wrap form.loco-filter .icon-filter{color:#999}#loco.wrap nav.above-list-table{margin-bottom:1em}#loco.wrap nav.above-list-table a{display:inline-block;margin-right:1em}#loco.wrap .wp-core-ui button.inverted,#loco.wrap .wp-core-ui button.inverted:hover{background:-moz-linear-gradient(top, #ccc 0%, #e0e0e0 5%, #fefefe 100%);background:-webkit-linear-gradient(top, #ccc 0%, #e0e0e0 5%, #fefefe 100%);background:linear-gradient(to bottom, #ccc 0%, #e0e0e0 5%, #fefefe 100%);-webkit-box-shadow:0 1px 0 #fff;-moz-box-shadow:0 1px 0 #fff;box-shadow:0 1px 0 #fff;border-color:#bbb}#loco.wrap .wp-core-ui button:active,#loco.wrap .wp-core-ui button.inverted:active{border-color:#5b9dd9}#loco.wrap .loco-clearable{display:inline-block;vertical-align:middle;position:relative}#loco.wrap .loco-clearable a.clear,#loco.wrap .auto-comp-wrap a.clear{top:0;right:0;outline:none;margin:0;border:solid 1px transparent;padding:5px 5px;position:absolute;font-size:1em;line-height:normal;text-decoration:none}#loco.wrap .loco-clearable a.clear:before,#loco.wrap .auto-comp-wrap a.clear:before{vertical-align:middle;padding:0;color:#999}#loco.wrap .loco-clearable a.clear:hover:before,#loco.wrap .auto-comp-wrap a.clear:hover:before{color:#333}#loco.wrap .loco-clearable a.clear span,#loco.wrap .auto-comp-wrap a.clear span{display:none}#loco.wrap .loco-clearable ::-ms-clear,#loco.wrap .auto-comp-wrap ::-ms-clear{display:none}#loco.wrap div.progress{color:#000}#loco.wrap div.progress *{height:100%;overflow:hidden;white-space:nowrap}#loco.wrap div.progress .t{background-color:#ddd;border:1px solid #ccc}#loco.wrap div.progress .t .bar{float:left;clear:none;background-color:#3db63d}#loco.wrap div.progress .t .bar.f{background-color:#bd2c00}#loco.wrap div.progress .l{display:block}#loco.wrap td div.progress .t{border:none}#loco.wrap td div.progress .l{display:none}#loco.wrap code.path{color:#333;margin:0;padding:0;display:inline;background:transparent}#loco.wrap .notice,#loco.wrap .panel{background:#fff;position:relative;margin:1em 0;padding:1px 12px}#loco.wrap .notice-generic{border-color:#ddd}#loco.wrap .notice-success>.has-icon,#loco.wrap .notice-success p>strong.has-icon{color:#000}#loco.wrap .notice-warning{border-color:#FFA500}#loco.wrap .notice-error{border-color:#dc3232}#loco.wrap .notice-debug{border-color:#00a0d2}#loco.wrap .notice-danger{border-color:#dc3232}#loco.wrap .notice-locked{border-color:#FFA500}#loco.wrap .notice>p>a.button.has-icon:before{width:1.5em}#loco.wrap .notice>p>em{color:#d54e21;font-style:normal}#loco.wrap ul.problems li{font-style:italic}#loco.wrap input.regular-text,#loco.wrap textarea.regular-text{width:25em}#loco.wrap .button{text-decoration:none}#loco.wrap .button-link{padding:0 10px 1px}#loco.wrap .button-danger{background:#ba0000;border-color:#990000 #660000 #660000;-webkit-box-shadow:0 1px 0 #600;-moz-box-shadow:0 1px 0 #600;box-shadow:0 1px 0 #600;color:#fff;text-shadow:0 -1px 1px #660000, 1px 0 1px #660000, 0 1px 1px #660000, -1px 0 1px #660000}#loco.wrap .button-success{background:#00B500;border-color:#090 #2e892e #2e892e;-webkit-box-shadow:0 1px 0 #2e892e;-moz-box-shadow:0 1px 0 #2e892e;box-shadow:0 1px 0 #2e892e;color:#fff;text-shadow:0 -1px 1px #2e892e,1px 0 1px #2e892e,0 1px 1px #2e892e,-1px 0 1px #2e892e}#loco.wrap .button-success:hover{background:#3db63d}#loco.wrap form button.loading.button-large{padding-left:0}#loco.wrap form button.loading.button-large:before{width:16px;height:16px;margin:0 4px;content:" ";font-size:16px;line-height:1;display:inline-block;vertical-align:sub}#loco.wrap ::-webkit-input-placeholder{color:#ccc}#loco.wrap :-moz-placeholder{color:#ccc;opacity:1}#loco.wrap ::-moz-placeholder{color:#ccc;opacity:1}#loco.wrap :-ms-input-placeholder{color:#ccc}#loco.wrap .ielt10 .placeheld{color:#ccc}#loco.wrap a.has-raquo:after{content:" \BB"}.js #wpbody-content>.notice{display:none}.js #wpbody-content>.notice.inline{display:block}.js #loco.wrap .jshide{display:none !important}#loco.wrap .invis{visibility:hidden}.form-table tr{vertical-align:top}.form-table tr.compact td{padding-top:0}#loco-fs p{line-height:22px}#loco-fs a.button,#loco-fs button[type="button"]{display:block;float:right;margin-left:4px}.loco-modal.request-filesystem-credentials-dialog{top:15% !important;max-height:85% !important}.loco-modal.request-filesystem-credentials-dialog .ftp-password>label>em:last-child{display:none}.ui-dialog-content>div.loading{height:100%;background:transparent url(../img/spin-modal.gif?v=2.0.8) center center no-repeat}#loco-credit>*{vertical-align:middle}#loco-credit>a{display:inline-block;position:relative;overflow:hidden;background:transparent url(../img/logo-foot.gif?v=2.0.8) 0 0 no-repeat;height:30px;width:100px;text-indent:200px;-webkit-transition-duration:0s;transition-duration:0s}#loco-credit>a:hover{background-position:0 -35px}#loco-content{position:relative}#footer-upgrade span:before{color:#CCC;content:" | ";display:inline;padding-left:0.5em;padding-right:0.5em}#footer-upgrade span:first-child:before{content:"";display:none}dl.debug dt{font-weight:bold}dl.debug dt,dl.debug dd{white-space:pre}.wrap #loco-editor .is-table .wg-tr:nth-child(even){background-color:rgba(0,115,170,0.05)}.wrap #loco-editor .wg-split-x>nav.wg-tabs>a.active,.wrap #loco-editor .is-table .wg-cols>div>div.selected{background-color:#0073aa}.wrap #loco-editor .is-editable>.wg-content>textarea:focus,.wrap #loco-editor .is-editable>.wg-content.has-focus .ace_scroller,.wrap #loco-editor .is-editable>.wg-content.has-focus .mce-content-body{border-color:#5b9dd9;-webkit-box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8);-moz-box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8);box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8)}form button.loading.button-primary[disabled]:before{background:transparent url(../img/skins/fresh/spin-primary-button.gif?v=2.0.8) 0 0 no-repeat !important}
|
1 |
+
@font-face{font-family:'loco';src:url("../font/loco.eot");src:url("../font/loco.eot?#iefix") format("embedded-opentype"),url("../font/loco.woff") format("woff"),url("../font/loco.ttf") format("truetype"),url("../font/loco.svg#loco") format("svg");font-weight:normal;font-style:normal}.tipsy{font-size:11px;position:absolute;padding:5px;z-index:500001;opacity:0;-webkit-transition:opacity 0.15s linear;-o-transition:opacity 0.15s linear;transition:opacity 0.15s linear}.tipsy.in{opacity:1}.tipsy-inner{background-color:#000;color:#FFF;white-space:nowrap;padding:6px 8px;line-height:1.3em;text-align:center;-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;-o-border-radius:3px;border-radius:3px;-webkit-font-smoothing:subpixel-antialiased}.tipsy-arrow{position:absolute;width:0;height:0;line-height:0;border:5px dashed #000}.tipsy-n .tipsy-arrow{top:0px;left:50%;margin-left:-5px;border-bottom-style:solid;border-top:none;border-left-color:transparent;border-right-color:transparent}.tipsy-nw .tipsy-arrow{top:0;left:10px;border-bottom-style:solid;border-top:none;border-left-color:transparent;border-right-color:transparent}.tipsy-ne .tipsy-arrow{top:0;right:10px;border-bottom-style:solid;border-top:none;border-left-color:transparent;border-right-color:transparent}.tipsy-s .tipsy-arrow{bottom:0;left:50%;margin-left:-5px;border-top-style:solid;border-bottom:none;border-left-color:transparent;border-right-color:transparent}.tipsy-sw .tipsy-arrow{bottom:0;left:10px;border-top-style:solid;border-bottom:none;border-left-color:transparent;border-right-color:transparent}.tipsy-se .tipsy-arrow{bottom:0;right:10px;border-top-style:solid;border-bottom:none;border-left-color:transparent;border-right-color:transparent}.tipsy-e .tipsy-arrow{right:0;top:50%;margin-top:-5px;border-left-style:solid;border-right:none;border-top-color:transparent;border-bottom-color:transparent}.tipsy-w .tipsy-arrow{left:0;top:50%;margin-top:-5px;border-right-style:solid;border-left:none;border-top-color:transparent;border-bottom-color:transparent}#loco.wrap .selector{text-align:left;display:inline-block;white-space:nowrap}#loco.wrap .selectoradd a,#loco.wrap .selector .handle{cursor:default;display:block;position:relative;border-top:solid 1px #fff;border-right:solid 1px #ddd;border-bottom:solid 1px #ddd;border-left:solid 1px #fff;padding:0.3em 0.5em;color:#666;height:1.3em;overflow:hidden;white-space:normal}#loco.wrap .selectorsep{display:inline-block;border:solid 1px transparent}#loco.wrap .selectorsep:before{display:block;position:relative;padding:0.3em 0.5em;color:#999;height:1.3em;overflow:hidden}#loco.wrap .selectorsep>*{display:block;line-height:1em;color:#666;height:1.3em;overflow:hidden}#loco.wrap .selector .handle{outline:none}#loco.wrap .selector .handle .prefix{padding-right:0.6ex}#loco.wrap .selector .handle .region,#loco.wrap .selector .handle .lang-ca,#loco.wrap .selector .handle .lang-eo,#loco.wrap .selector .handle .lang-eu,#loco.wrap .selector .handle .variant-wales,#loco.wrap .selector .handle .region-gb.lang-cy,#loco.wrap .selector .handle .variant-scotland,#loco.wrap .selector .handle .region-gb.lang-gd,#loco.wrap .selector .handle .lang,#loco.wrap .selector .handle .icon-16{margin:0 5px 0 0}#loco.wrap .selector .handle:after{font-family:loco;padding-left:0.5em;padding-right:0.2em;font-size:1.3em;color:#ccc;float:right}#loco.wrap .selector .handle:focus:after,#loco.wrap .selector .handle:hover:after{color:#666}#loco.wrap .selector.no-title .handle .label{display:none}#loco.wrap .selector.no-caret .handle:after{display:none}#loco.wrap .selector.dummy .handle{border-color:transparent}#loco.wrap .selector.dummy .handle:after{display:none}#loco.wrap .selector .icon:before{color:#666}#loco.wrap .selector .lang,#loco.wrap .selector .region,#loco.wrap .selector .lang-ca,#loco.wrap .selector .lang-eo,#loco.wrap .selector .lang-eu,#loco.wrap .selector .variant-wales,#loco.wrap .selector .region-gb.lang-cy,#loco.wrap .selector .variant-scotland,#loco.wrap .selector .region-gb.lang-gd{vertical-align:middle}#loco.wrap .selectoradd{float:left;clear:none;position:relative}#loco.wrap .selectoradd>*{display:block;float:left;clear:none}#loco.wrap .selectoradd>a.has-icon{width:1.3em}#loco.wrap .selectoradd>a.has-icon:before{color:#999;display:inline;padding-left:0;padding-right:0;line-height:1.4em}#loco.wrap .selectoradd>a.has-icon:hover:after{color:#2e892e}#loco.wrap .selectoradd input[type="text"]{padding:0.3em 0.5em;-webkit-border-radius:0;-moz-border-radius:0;-ms-border-radius:0;-o-border-radius:0;border-radius:0}#loco.wrap .selectorsep{display:inline-block}#loco.wrap .selectorsep span{padding:0.3em 0.5em;color:#666;height:1.3em}#loco.wrap .selector ul,#loco.wrap .selector li{display:block;position:relative;cursor:default;padding:0;margin:0}#loco.wrap .selector ul{z-index:5;position:absolute;left:0;top:0;margin-top:2px;background:#f5f5f5;box-shadow:0 10px 5px rgba(0,0,0,0.2);border:solid 1px #ccc}#loco.wrap .selector.up ul{margin-top:0}#loco.wrap .selector li{padding:0.3em 0.5em}#loco.wrap .selector.multi li input{display:none}#loco.wrap .selector.multi li.checked{background:#eee}#loco.wrap .selector li.active{background:#eee !important}#loco.wrap .selector li.over{background:#ccc !important;color:#fff;text-shadow:1px 1px #aaa}#loco.wrap .selector li.over .label{color:#fff}#loco.wrap .selector .label{display:inline-block;font:inherit;color:inherit;padding:0 0.5em;margin:0}#loco.wrap .selector li .icon,#loco.wrap .selector .handle .icon{display:inline-block;min-width:1.2em;text-align:center;font-size:14px;vertical-align:middle}#loco.wrap .selector li .icon.no-icon,#loco.wrap .selector .handle .icon.no-icon{display:none}#loco.wrap .selector .icon-16{vertical-align:text-top}#loco.wrap .selector.ticked .icon.no-icon{font-size:12px;display:inline-block}#loco.wrap .selector.ticked .active .icon.no-icon:before{content:"\2713"}#loco.wrap .selectoradd a:hover,#loco.wrap .selector a.handle:focus,#loco.wrap .selector a.handle:hover{color:#000;border-color:#999}#loco.wrap .selector.active .handle{border-color:#999;background-color:#eee;color:#999}#loco.wrap .selector.active .handle:after{color:#999}#loco.wrap .selector.disabled{padding:0.3em 0.5em;border-top:solid 1px #fff;border-right:solid 1px #ddd;border-bottom:solid 1px #ddd;border-left:solid 1px #fff;color:#666;height:1.3em;cursor:default;cursor:no-drop;cursor:not-allowed}#loco.wrap .selector.disabled:after{font-family:loco;padding-left:0.5em;padding-right:0.3em;line-height:1em;vertical-align:middle}#loco.wrap .selector li.disabled,#loco.wrap .selector li.disabled.over{color:#aaa;text-shadow:1px 1px #fff;pointer-events:none}#loco.wrap .selector li.disabled *{cursor:text}#loco.wrap .selector li.disabled .icon:before{color:#aaa}#loco.wrap .selector li.disabled .flag,#loco.wrap .selector li.disabled .icon-16{opacity:0.4}#loco.wrap .selector.lefty ul{left:auto;right:0}#loco.wrap .selector.lefty ul .icon,#loco.wrap .selector.lefty ul .icon-32{display:block;float:right;clear:none}#loco.wrap .selector.lefty ul .label{padding-right:32px;padding-left:0}#loco.wrap div.auto-comp-wrap{width:100%}#loco.wrap div.auto-comp-wrap input{display:inline-block}#loco.wrap div.auto-comp-wrap.loading input{background:transparent url(../img/ajax-loader.gif?v=2.0.11) right 2px no-repeat}#loco.wrap div.auto-comp-drop{color:#333333;background:#FFFFFF;border-top:none;position:absolute;width:100%;top:0;left:0;z-index:99;-webkit-box-shadow:0 5px 5px rgba(0,0,0,0.4);-moz-box-shadow:0 5px 5px rgba(0,0,0,0.4);box-shadow:0 5px 5px rgba(0,0,0,0.4)}#loco.wrap div.auto-comp-result{padding:5px 10px;cursor:pointer;background:#F0F0F0;border-top:solid 1px #FFF;border-bottom:solid 1px #DDD}#loco.wrap div.auto-comp-result:first-child{border-top:solid 1px #DDD}#loco.wrap div.auto-comp-result>*{display:inline-block;vertical-align:middle;line-height:normal}#loco.wrap div.auto-comp-result .icon:before{padding-right:5px}#loco.wrap div.auto-comp-result:hover{background:#A8A8A8;color:#FFFFFF;border-top-color:#A8A8A8;border-bottom-color:#999999}#loco.wrap div.auto-comp-result.selected{background:#666666 !important;color:#FFFFFF;border-top-color:#666666;border-bottom-color:#666666}#loco.wrap div.auto-comp-result .lang,#loco.wrap div.auto-comp-result .region,#loco.wrap div.auto-comp-result .lang-ca,#loco.wrap div.auto-comp-result .lang-eo,#loco.wrap div.auto-comp-result .lang-eu,#loco.wrap div.auto-comp-result .variant-wales,#loco.wrap div.auto-comp-result .region-gb.lang-cy,#loco.wrap div.auto-comp-result .variant-scotland,#loco.wrap div.auto-comp-result .region-gb.lang-gd{margin-right:5px}#loco.wrap div.auto-comp-wrap.error a.icon.clear:before{color:#cc0000;opacity:1}#loco.wrap div.auto-comp-wrap.error input[type="text"]{border-color:#cc0000;color:#cc0000}#loco.wrap div.auto-comp-wrap.error input[type="text"]:focus{-webkit-box-shadow:0 0 0.5em 0 rgba(153,0,0,0.5);-moz-box-shadow:0 0 0.5em 0 rgba(153,0,0,0.5);box-shadow:0 0 0.5em 0 rgba(153,0,0,0.5)}@font-face{#loco.wrap{font-family:'loco';src:url("../fonts/loco.eot");src:url("../fonts/loco.eot?#iefix") format("embedded-opentype"),url("../fonts/loco.ttf") format("truetype"),url("../fonts/loco.woff") format("woff"),url("../fonts/loco.svg#loco") format("svg");font-weight:normal;font-style:normal}}#loco.wrap .icon,#loco.wrap .loco-font,#loco.wrap .wp-list-table th.loco-sort.loco-asc:after,#loco.wrap .wp-list-table th.loco-sort.loco-desc:after,#loco.wrap .has-icon:before{font-family:'loco';speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#loco.wrap .has-icon:before{display:inline-block;padding-right:0.3em}#loco.wrap a.icon-help{cursor:help}#loco.wrap a.icon-help span{display:none}#loco.wrap .icon-bullist:before{content:"\e00a"}#loco.wrap .icon-numlist:before{content:"\e00b"}#loco.wrap .icon-indent:before{content:"\e00c"}#loco.wrap .icon-outdent:before{content:"\e00d"}#loco.wrap .icon-link:before{content:"\e011"}#loco.wrap .icon-unlink:before{content:"\e012"}#loco.wrap .icon-bold:before{content:"\42"}#loco.wrap .icon-italic:before{content:"\49"}#loco.wrap .icon-translate:before{content:"\f326"}#loco.wrap .icon-proj:before{content:"\e900"}#loco.wrap .icon-plural:before{content:"\73"}#loco.wrap .icon-max:before{content:"\e901"}#loco.wrap .icon-min:before{content:"\e902"}#loco.wrap .icon-sort:before{content:"\e903"}#loco.wrap .icon-checkbox-checked:before,#loco.wrap .selector.multi li.checked .icon-checkbox:before{content:"\2611"}#loco.wrap .icon-checkbox-unchecked:before{content:"\2610"}#loco.wrap .icon-checkbox-partial:before{content:"\2609"}#loco.wrap .icon-radio-checked:before{content:"\26ab"}#loco.wrap .icon-radio-unchecked:before{content:"\26aa"}#loco.wrap .icon-ext:before{content:"\2b08"}#loco.wrap .icon-star:before{content:"\e612"}#loco.wrap .icon-user:before{content:"\e620"}#loco.wrap .icon-ok:before,#loco.wrap .notice-success>.has-icon:before,#loco.wrap .notice-success p>strong.has-icon:before{content:"\2713"}#loco.wrap .icon-remove:before{content:"\d7"}#loco.wrap .icon-cog:before{content:"\e61b"}#loco.wrap .icon-trash:before{content:"\e60f"}#loco.wrap .icon-time:before{content:"\e62d"}#loco.wrap .icon-download:before{content:"\e608"}#loco.wrap .icon-revert:before{content:"\e635"}#loco.wrap .icon-sync:before{content:"\e634"}#loco.wrap .icon-lock:before,#loco.wrap .selector.disabled:after,#loco.wrap .notice-locked>.has-icon:before,#loco.wrap .notice-locked p>strong.has-icon:before{content:"\e604"}#loco.wrap .icon-flag:before{content:"\e60e"}#loco.wrap .icon-tag:before{content:"\e622"}#loco.wrap .icon-tags:before{content:"\e623"}#loco.wrap .icon-print:before{content:"\e62a"}#loco.wrap .icon-camera:before{content:"\e629"}#loco.wrap .icon-pencil:before{content:"\e61e"}#loco.wrap .icon-add:before{content:"\e60c"}#loco.wrap .icon-del:before{content:"\e60d"}#loco.wrap .icon-clear:before,#loco.wrap a.icon.clear:before{content:"\e615"}#loco.wrap .icon-ok-sign:before{content:"\2714"}#loco.wrap .icon-help:before{content:"\3f"}#loco.wrap .icon-info:before,#loco.wrap .notice-info>.has-icon:before,#loco.wrap .notice-info p>strong.has-icon:before{content:"\2139"}#loco.wrap .icon-cancel:before{content:"\e605"}#loco.wrap .icon-warn:before,#loco.wrap .notice-warning>.has-icon:before,#loco.wrap .notice-warning p>strong.has-icon:before,#loco.wrap .notice-error>.has-icon:before,#loco.wrap .notice-error p>strong.has-icon:before{content:"\e62e"}#loco.wrap .icon-comment:before{content:"\e613"}#loco.wrap .icon-bar-chart:before{content:"\e624"}#loco.wrap .icon-key:before{content:"\e606"}#loco.wrap .icon-cogs:before{content:"\e61c"}#loco.wrap .icon-comments:before{content:"\e614"}#loco.wrap .icon-signout:before{content:"\e61a"}#loco.wrap .icon-signin:before{content:"\e619"}#loco.wrap .icon-upload:before{content:"\e609"}#loco.wrap .icon-twitter:before{content:"\1f426"}#loco.wrap .icon-facebook:before{content:"\e630"}#loco.wrap .icon-github:before{content:"\e633"}#loco.wrap .icon-feed:before{content:"\e628"}#loco.wrap .icon-globe:before{content:"\e61d"}#loco.wrap .icon-wrench:before,#loco.wrap .notice-debug>.has-icon:before,#loco.wrap .notice-debug p>strong.has-icon:before{content:"\e626"}#loco.wrap .icon-group:before{content:"\e61f"}#loco.wrap .icon-cloud:before{content:"\e607"}#loco.wrap .icon-copy:before{content:"\e62b"}#loco.wrap .icon-save:before{content:"\e610"}#loco.wrap .icon-menu:before{content:"\e600"}#loco.wrap .icon-table:before{content:"\e627"}#loco.wrap .icon-caret-down:before,#loco.wrap .selector .handle:after{content:"\25bc"}#loco.wrap .icon-caret-up:before,#loco.wrap .selector.active .handle:after{content:"\25b2"}#loco.wrap .icon-caret-right:before{content:"\25b6"}#loco.wrap .icon-mail:before{content:"\e603"}#loco.wrap .icon-cloud-upload:before{content:"\e617"}#loco.wrap .icon-file:before{content:"\e611"}#loco.wrap .icon-circle-white:before{content:"\26ac"}#loco.wrap .icon-circle-black:before{content:"\25cf"}#loco.wrap .icon-eraser:before{content:"\e636"}#loco.wrap .icon-unlock:before{content:"\e616"}#loco.wrap .icon-apple:before{content:"\e60b"}#loco.wrap .icon-android:before{content:"\e60a"}#loco.wrap .icon-back:before{content:"\2b05"}#loco.wrap .icon-next:before{content:"\2794"}#loco.wrap .icon-arrow-up:before{content:"\f062"}#loco.wrap .icon-ccard:before{content:"\f09d"}#loco.wrap .icon-caret-left:before{content:"\25c0"}#loco.wrap .icon-pro:before{content:"\26a1"}#loco.wrap .icon-code:before{content:"\f121"}#loco.wrap .icon-hellip:before{content:"\2026"}#loco.wrap .icon-vellip:before{content:"\205e"}#loco.wrap .icon-collapse:before{content:"\f147"}#loco.wrap .icon-expand:before{content:"\f196"}#loco.wrap .icon-wordpress:before{content:"\f19a"}#loco.wrap .icon-database:before{content:"\f1c0"}#loco.wrap .icon-pilcrow:before{content:"\b6"}#loco.wrap .icon-flag.is-untranslated:before{content:"×"}#loco.wrap .icon-flag.status-0:before,#loco.wrap .icon-flag.is-translated:before{content:"✓"}#loco.wrap .icon-flag.status-1:before,#loco.wrap .icon-flag.is-incorrect:before{content:""}#loco.wrap .icon-flag.status-2:before,#loco.wrap .icon-flag.is-provisional:before{content:""}#loco.wrap .icon-flag.status-3:before,#loco.wrap .icon-flag.is-unapproved:before{content:""}#loco.wrap .icon-flag.status-4:before,#loco.wrap .icon-flag.is-fuzzy:before{content:""}#loco.wrap .icon-flag.status-5:before,#loco.wrap .icon-flag.is-incomplete:before{content:""}#loco.wrap .icon-flag.status-6:before,#loco.wrap .icon-flag.is-rejected:before{content:""}#loco.wrap .lang,#loco.wrap .region,#loco.wrap .lang-ca,#loco.wrap .lang-eo,#loco.wrap .lang-eu,#loco.wrap .variant-wales,#loco.wrap .region-gb.lang-cy,#loco.wrap .variant-scotland,#loco.wrap .region-gb.lang-gd{color:#fff;background:#2e892e;display:inline-block;text-transform:uppercase;overflow:hidden;font-family:Verdana,Arial,sans-serif;font-size:9px;font-weight:normal;font-style:normal;line-height:12px;text-align:center;white-space:normal;text-shadow:none}#loco.wrap .lang{width:20px;height:12px;line-height:12px;vertical-align:middle}#loco.wrap .lang:before{content:attr(lang)}#loco.wrap .lang-el{background-color:#1D48A3}#loco.wrap .lang-el:before{content:"\0395\03BB"}#loco.wrap .region,#loco.wrap .lang-ca,#loco.wrap .lang-eo,#loco.wrap .lang-eu,#loco.wrap .variant-wales,#loco.wrap .region-gb.lang-cy,#loco.wrap .variant-scotland,#loco.wrap .region-gb.lang-gd{width:16px;height:12px;margin:0 2px;background-image:url(../img/flags.png?v=2.0.11);background-repeat:no-repeat;background-color:transparent}#loco.wrap .region:before,#loco.wrap .lang-ca:before,#loco.wrap .lang-eo:before,#loco.wrap .lang-eu:before,#loco.wrap .variant-wales:before,#loco.wrap .region-gb.lang-cy:before,#loco.wrap .variant-scotland:before,#loco.wrap .region-gb.lang-gd:before{content:"\0A";display:none}#loco.wrap .lang-zh{background-color:#B90000}#loco.wrap .lang-zh.script-hans:before{content:"\4E2D\56FD"}#loco.wrap .lang-zh.script-hant:before{content:"\4E2D\570B"}#loco.wrap .__{background-position:0 0}#loco.wrap .lang-ca{background-position:0 -12px}#loco.wrap .lang-eo{background-position:0 -24px}#loco.wrap .lang-eu{background-position:0 -36px}#loco.wrap .region-ad{background-position:0 -48px}#loco.wrap .region-ae{background-position:0 -60px}#loco.wrap .region-af{background-position:0 -72px}#loco.wrap .region-ag{background-position:0 -84px}#loco.wrap .region-ai{background-position:0 -96px}#loco.wrap .region-al{background-position:0 -108px}#loco.wrap .region-am{background-position:0 -120px}#loco.wrap .region-an{background-position:0 -132px}#loco.wrap .region-ao{background-position:0 -144px}#loco.wrap .region-aq{background-position:0 -156px}#loco.wrap .region-ar{background-position:0 -173px}#loco.wrap .region-as{background-position:0 -185px}#loco.wrap .region-at{background-position:0 -197px}#loco.wrap .region-au{background-position:0 -209px}#loco.wrap .region-aw{background-position:0 -221px}#loco.wrap .region-ax{background-position:0 -233px}#loco.wrap .region-az{background-position:0 -245px}#loco.wrap .region-ba{background-position:0 -257px}#loco.wrap .region-bb{background-position:0 -269px}#loco.wrap .region-bd{background-position:0 -281px}#loco.wrap .region-be{background-position:0 -293px}#loco.wrap .region-bf{background-position:0 -305px}#loco.wrap .region-bg{background-position:0 -317px}#loco.wrap .region-bh{background-position:0 -329px}#loco.wrap .region-bi{background-position:0 -341px}#loco.wrap .region-bj{background-position:0 -353px}#loco.wrap .region-bl{background-position:0 -365px}#loco.wrap .region-bm{background-position:0 -382px}#loco.wrap .region-bn{background-position:0 -394px}#loco.wrap .region-bo{background-position:0 -406px}#loco.wrap .region-bq{background-position:0 -418px}#loco.wrap .region-br{background-position:0 -430px}#loco.wrap .region-bs{background-position:0 -442px}#loco.wrap .region-bt{background-position:0 -454px}#loco.wrap .region-bv{background-position:0 -466px}#loco.wrap .region-bw{background-position:0 -478px}#loco.wrap .region-by{background-position:0 -490px}#loco.wrap .region-bz{background-position:0 -502px}#loco.wrap .region-ca{background-position:0 -514px}#loco.wrap .region-cc{background-position:0 -526px}#loco.wrap .region-cd{background-position:0 -538px}#loco.wrap .region-cf{background-position:0 -550px}#loco.wrap .region-cg{background-position:0 -562px}#loco.wrap .region-ch{background-position:0 -574px}#loco.wrap .region-ci{background-position:0 -586px}#loco.wrap .region-ck{background-position:0 -598px}#loco.wrap .region-cl{background-position:0 -610px}#loco.wrap .region-cm{background-position:0 -622px}#loco.wrap .region-cn{background-position:0 -634px}#loco.wrap .region-co{background-position:0 -646px}#loco.wrap .region-cr{background-position:0 -658px}#loco.wrap .region-cs{background-position:0 -670px}#loco.wrap .region-cu{background-position:0 -682px}#loco.wrap .region-cv{background-position:0 -694px}#loco.wrap .region-cw{background-position:0 -706px}#loco.wrap .region-cx{background-position:0 -723px}#loco.wrap .region-cy{background-position:0 -735px}#loco.wrap .region-cz{background-position:0 -747px}#loco.wrap .region-de{background-position:0 -759px}#loco.wrap .region-dj{background-position:0 -771px}#loco.wrap .region-dk{background-position:0 -783px}#loco.wrap .region-dm{background-position:0 -795px}#loco.wrap .region-do{background-position:0 -807px}#loco.wrap .region-dz{background-position:0 -819px}#loco.wrap .region-ec{background-position:0 -831px}#loco.wrap .region-ee{background-position:0 -843px}#loco.wrap .region-eg{background-position:0 -855px}#loco.wrap .region-eh{background-position:0 -867px}#loco.wrap .region-er{background-position:0 -879px}#loco.wrap .region-es{background-position:0 -891px}#loco.wrap .region-et{background-position:0 -903px}#loco.wrap .region-fi{background-position:0 -915px}#loco.wrap .region-fj{background-position:0 -927px}#loco.wrap .region-fk{background-position:0 -939px}#loco.wrap .region-fm{background-position:0 -951px}#loco.wrap .region-fo{background-position:0 -963px}#loco.wrap .region-fr{background-position:0 -975px}#loco.wrap .region-ga{background-position:0 -987px}#loco.wrap .region-gb{background-position:0 -999px}#loco.wrap .region-gd{background-position:0 -1011px}#loco.wrap .region-ge{background-position:0 -1023px}#loco.wrap .region-gf{background-position:0 -1035px}#loco.wrap .region-gg{background-position:0 -1047px}#loco.wrap .region-gh{background-position:0 -1064px}#loco.wrap .region-gi{background-position:0 -1076px}#loco.wrap .region-gl{background-position:0 -1088px}#loco.wrap .region-gm{background-position:0 -1100px}#loco.wrap .region-gn{background-position:0 -1112px}#loco.wrap .region-gp{background-position:0 -1124px}#loco.wrap .region-gq{background-position:0 -1136px}#loco.wrap .region-gr{background-position:0 -1148px}#loco.wrap .region-gs{background-position:0 -1160px}#loco.wrap .region-gt{background-position:0 -1172px}#loco.wrap .region-gu{background-position:0 -1184px}#loco.wrap .region-gw{background-position:0 -1196px}#loco.wrap .region-gy{background-position:0 -1208px}#loco.wrap .region-hk{background-position:0 -1220px}#loco.wrap .region-hm{background-position:0 -1232px}#loco.wrap .region-hn{background-position:0 -1244px}#loco.wrap .region-hr{background-position:0 -1256px}#loco.wrap .region-ht{background-position:0 -1268px}#loco.wrap .region-hu{background-position:0 -1280px}#loco.wrap .region-id{background-position:0 -1292px}#loco.wrap .region-ie{background-position:0 -1304px}#loco.wrap .region-il{background-position:0 -1316px}#loco.wrap .region-im{background-position:0 -1328px}#loco.wrap .region-in{background-position:0 -1345px}#loco.wrap .region-io{background-position:0 -1357px}#loco.wrap .region-iq{background-position:0 -1369px}#loco.wrap .region-ir{background-position:0 -1381px}#loco.wrap .region-is{background-position:0 -1393px}#loco.wrap .region-it{background-position:0 -1405px}#loco.wrap .region-je{background-position:0 -1417px}#loco.wrap .region-jm{background-position:0 -1434px}#loco.wrap .region-jo{background-position:0 -1446px}#loco.wrap .region-jp{background-position:0 -1458px}#loco.wrap .region-ke{background-position:0 -1470px}#loco.wrap .region-kg{background-position:0 -1482px}#loco.wrap .region-kh{background-position:0 -1494px}#loco.wrap .region-ki{background-position:0 -1506px}#loco.wrap .region-km{background-position:0 -1518px}#loco.wrap .region-kn{background-position:0 -1530px}#loco.wrap .region-kp{background-position:0 -1542px}#loco.wrap .region-kr{background-position:0 -1554px}#loco.wrap .region-kw{background-position:0 -1566px}#loco.wrap .region-ky{background-position:0 -1578px}#loco.wrap .region-kz{background-position:0 -1590px}#loco.wrap .region-la{background-position:0 -1602px}#loco.wrap .region-lb{background-position:0 -1614px}#loco.wrap .region-lc{background-position:0 -1626px}#loco.wrap .region-li{background-position:0 -1638px}#loco.wrap .region-lk{background-position:0 -1650px}#loco.wrap .region-lr{background-position:0 -1662px}#loco.wrap .region-ls{background-position:0 -1674px}#loco.wrap .region-lt{background-position:0 -1686px}#loco.wrap .region-lu{background-position:0 -1698px}#loco.wrap .region-lv{background-position:0 -1710px}#loco.wrap .region-ly{background-position:0 -1722px}#loco.wrap .region-ma{background-position:0 -1734px}#loco.wrap .region-mc{background-position:0 -1746px}#loco.wrap .region-md{background-position:0 -1758px}#loco.wrap .region-me{background-position:0 -1770px}#loco.wrap .region-mf{background-position:0 -1783px}#loco.wrap .region-mg{background-position:0 -1800px}#loco.wrap .region-mh{background-position:0 -1812px}#loco.wrap .region-mk{background-position:0 -1824px}#loco.wrap .region-ml{background-position:0 -1836px}#loco.wrap .region-mm{background-position:0 -1848px}#loco.wrap .region-mn{background-position:0 -1860px}#loco.wrap .region-mo{background-position:0 -1872px}#loco.wrap .region-mp{background-position:0 -1884px}#loco.wrap .region-mq{background-position:0 -1896px}#loco.wrap .region-mr{background-position:0 -1908px}#loco.wrap .region-ms{background-position:0 -1920px}#loco.wrap .region-mt{background-position:0 -1932px}#loco.wrap .region-mu{background-position:0 -1944px}#loco.wrap .region-mv{background-position:0 -1956px}#loco.wrap .region-mw{background-position:0 -1968px}#loco.wrap .region-mx{background-position:0 -1980px}#loco.wrap .region-my{background-position:0 -1992px}#loco.wrap .region-mz{background-position:0 -2004px}#loco.wrap .region-na{background-position:0 -2016px}#loco.wrap .region-nc{background-position:0 -2028px}#loco.wrap .region-ne{background-position:0 -2040px}#loco.wrap .region-nf{background-position:0 -2052px}#loco.wrap .region-ng{background-position:0 -2064px}#loco.wrap .region-ni{background-position:0 -2076px}#loco.wrap .region-nl{background-position:0 -2088px}#loco.wrap .region-no{background-position:0 -2100px}#loco.wrap .region-np{background-position:0 -2112px}#loco.wrap .region-nr{background-position:0 -2124px}#loco.wrap .region-nu{background-position:0 -2136px}#loco.wrap .region-nz{background-position:0 -2148px}#loco.wrap .region-om{background-position:0 -2160px}#loco.wrap .region-pa{background-position:0 -2172px}#loco.wrap .region-pe{background-position:0 -2184px}#loco.wrap .region-pf{background-position:0 -2196px}#loco.wrap .region-pg{background-position:0 -2208px}#loco.wrap .region-ph{background-position:0 -2220px}#loco.wrap .region-pk{background-position:0 -2232px}#loco.wrap .region-pl{background-position:0 -2244px}#loco.wrap .region-pm{background-position:0 -2256px}#loco.wrap .region-pn{background-position:0 -2268px}#loco.wrap .region-pr{background-position:0 -2280px}#loco.wrap .region-ps{background-position:0 -2292px}#loco.wrap .region-pt{background-position:0 -2304px}#loco.wrap .region-pw{background-position:0 -2316px}#loco.wrap .region-py{background-position:0 -2328px}#loco.wrap .region-qa{background-position:0 -2340px}#loco.wrap .region-re{background-position:0 -2352px}#loco.wrap .region-ro{background-position:0 -2364px}#loco.wrap .region-rs{background-position:0 -2376px}#loco.wrap .region-ru{background-position:0 -2388px}#loco.wrap .region-rw{background-position:0 -2400px}#loco.wrap .region-sa{background-position:0 -2412px}#loco.wrap .region-sb{background-position:0 -2424px}#loco.wrap .region-sc{background-position:0 -2436px}#loco.wrap .region-sd{background-position:0 -2448px}#loco.wrap .region-se{background-position:0 -2460px}#loco.wrap .region-sg{background-position:0 -2472px}#loco.wrap .region-sh{background-position:0 -2484px}#loco.wrap .region-si{background-position:0 -2496px}#loco.wrap .region-sj{background-position:0 -2508px}#loco.wrap .region-sk{background-position:0 -2520px}#loco.wrap .region-sl{background-position:0 -2532px}#loco.wrap .region-sm{background-position:0 -2544px}#loco.wrap .region-sn{background-position:0 -2556px}#loco.wrap .region-so{background-position:0 -2568px}#loco.wrap .region-sr{background-position:0 -2580px}#loco.wrap .region-ss{background-position:0 -2592px}#loco.wrap .region-st{background-position:0 -2609px}#loco.wrap .region-sv{background-position:0 -2621px}#loco.wrap .region-sx{background-position:0 -2633px}#loco.wrap .region-sy{background-position:0 -2650px}#loco.wrap .region-sz{background-position:0 -2662px}#loco.wrap .region-tc{background-position:0 -2674px}#loco.wrap .region-td{background-position:0 -2686px}#loco.wrap .region-tf{background-position:0 -2698px}#loco.wrap .region-tg{background-position:0 -2710px}#loco.wrap .region-th{background-position:0 -2722px}#loco.wrap .region-tj{background-position:0 -2734px}#loco.wrap .region-tk{background-position:0 -2746px}#loco.wrap .region-tl{background-position:0 -2758px}#loco.wrap .region-tm{background-position:0 -2770px}#loco.wrap .region-tn{background-position:0 -2782px}#loco.wrap .region-to{background-position:0 -2794px}#loco.wrap .region-tr{background-position:0 -2806px}#loco.wrap .region-tt{background-position:0 -2818px}#loco.wrap .region-tv{background-position:0 -2830px}#loco.wrap .region-tw{background-position:0 -2842px}#loco.wrap .region-tz{background-position:0 -2854px}#loco.wrap .region-ua{background-position:0 -2866px}#loco.wrap .region-ug{background-position:0 -2878px}#loco.wrap .region-um{background-position:0 -2890px}#loco.wrap .region-us{background-position:0 -2902px}#loco.wrap .region-uy{background-position:0 -2914px}#loco.wrap .region-uz{background-position:0 -2926px}#loco.wrap .region-va{background-position:0 -2938px}#loco.wrap .region-vc{background-position:0 -2950px}#loco.wrap .region-ve{background-position:0 -2962px}#loco.wrap .region-vg{background-position:0 -2974px}#loco.wrap .region-vi{background-position:0 -2986px}#loco.wrap .region-vn{background-position:0 -2998px}#loco.wrap .region-vu{background-position:0 -3010px}#loco.wrap .region-wf{background-position:0 -3022px}#loco.wrap .region-ws{background-position:0 -3034px}#loco.wrap .region-ye{background-position:0 -3046px}#loco.wrap .region-yt{background-position:0 -3058px}#loco.wrap .region-za{background-position:0 -3070px}#loco.wrap .region-zm{background-position:0 -3082px}#loco.wrap .region-zw{background-position:0 -3094px}#loco.wrap .variant-scotland,#loco.wrap .region-gb.lang-gd{background-position:0 -3106px}#loco.wrap .variant-wales,#loco.wrap .region-gb.lang-cy{background-position:0 -3118px}#loco.wrap .x-eu{background-position:0 -3130px}#loco.wrap span.lang code{display:none}#loco.wrap .icon-bullist:before{content:"\e00a"}#loco.wrap .icon-numlist:before{content:"\e00b"}#loco.wrap .icon-indent:before{content:"\e00c"}#loco.wrap .icon-outdent:before{content:"\e00d"}#loco.wrap .icon-link:before{content:"\e011"}#loco.wrap .icon-unlink:before{content:"\e012"}#loco.wrap .icon-bold:before{content:"\42"}#loco.wrap .icon-italic:before{content:"\49"}#loco.wrap .icon-translate:before{content:"\f326"}#loco.wrap .icon-proj:before{content:"\e900"}#loco.wrap .icon-plural:before{content:"\73"}#loco.wrap .icon-max:before{content:"\e901"}#loco.wrap .icon-min:before{content:"\e902"}#loco.wrap .icon-sort:before{content:"\e903"}#loco.wrap .icon-checkbox-checked:before,#loco.wrap .selector.multi li.checked .icon-checkbox:before{content:"\2611"}#loco.wrap .icon-checkbox-unchecked:before{content:"\2610"}#loco.wrap .icon-checkbox-partial:before{content:"\2609"}#loco.wrap .icon-radio-checked:before{content:"\26ab"}#loco.wrap .icon-radio-unchecked:before{content:"\26aa"}#loco.wrap .icon-ext:before{content:"\2b08"}#loco.wrap .icon-star:before{content:"\e612"}#loco.wrap .icon-user:before{content:"\e620"}#loco.wrap .icon-ok:before,#loco.wrap .notice-success>.has-icon:before,#loco.wrap .notice-success p>strong.has-icon:before{content:"\2713"}#loco.wrap .icon-remove:before{content:"\d7"}#loco.wrap .icon-cog:before{content:"\e61b"}#loco.wrap .icon-trash:before{content:"\e60f"}#loco.wrap .icon-time:before{content:"\e62d"}#loco.wrap .icon-download:before{content:"\e608"}#loco.wrap .icon-revert:before{content:"\e635"}#loco.wrap .icon-sync:before{content:"\e634"}#loco.wrap .icon-lock:before,#loco.wrap .selector.disabled:after,#loco.wrap .notice-locked>.has-icon:before,#loco.wrap .notice-locked p>strong.has-icon:before{content:"\e604"}#loco.wrap .icon-flag:before{content:"\e60e"}#loco.wrap .icon-tag:before{content:"\e622"}#loco.wrap .icon-tags:before{content:"\e623"}#loco.wrap .icon-print:before{content:"\e62a"}#loco.wrap .icon-camera:before{content:"\e629"}#loco.wrap .icon-pencil:before{content:"\e61e"}#loco.wrap .icon-add:before{content:"\e60c"}#loco.wrap .icon-del:before{content:"\e60d"}#loco.wrap .icon-clear:before,#loco.wrap a.icon.clear:before{content:"\e615"}#loco.wrap .icon-ok-sign:before{content:"\2714"}#loco.wrap .icon-help:before{content:"\3f"}#loco.wrap .icon-info:before,#loco.wrap .notice-info>.has-icon:before,#loco.wrap .notice-info p>strong.has-icon:before{content:"\2139"}#loco.wrap .icon-cancel:before{content:"\e605"}#loco.wrap .icon-warn:before,#loco.wrap .notice-warning>.has-icon:before,#loco.wrap .notice-warning p>strong.has-icon:before,#loco.wrap .notice-error>.has-icon:before,#loco.wrap .notice-error p>strong.has-icon:before{content:"\e62e"}#loco.wrap .icon-comment:before{content:"\e613"}#loco.wrap .icon-bar-chart:before{content:"\e624"}#loco.wrap .icon-key:before{content:"\e606"}#loco.wrap .icon-cogs:before{content:"\e61c"}#loco.wrap .icon-comments:before{content:"\e614"}#loco.wrap .icon-signout:before{content:"\e61a"}#loco.wrap .icon-signin:before{content:"\e619"}#loco.wrap .icon-upload:before{content:"\e609"}#loco.wrap .icon-twitter:before{content:"\1f426"}#loco.wrap .icon-facebook:before{content:"\e630"}#loco.wrap .icon-github:before{content:"\e633"}#loco.wrap .icon-feed:before{content:"\e628"}#loco.wrap .icon-globe:before{content:"\e61d"}#loco.wrap .icon-wrench:before,#loco.wrap .notice-debug>.has-icon:before,#loco.wrap .notice-debug p>strong.has-icon:before{content:"\e626"}#loco.wrap .icon-group:before{content:"\e61f"}#loco.wrap .icon-cloud:before{content:"\e607"}#loco.wrap .icon-copy:before{content:"\e62b"}#loco.wrap .icon-save:before{content:"\e610"}#loco.wrap .icon-menu:before{content:"\e600"}#loco.wrap .icon-table:before{content:"\e627"}#loco.wrap .icon-caret-down:before,#loco.wrap .selector .handle:after{content:"\25bc"}#loco.wrap .icon-caret-up:before,#loco.wrap .selector.active .handle:after{content:"\25b2"}#loco.wrap .icon-caret-right:before{content:"\25b6"}#loco.wrap .icon-mail:before{content:"\e603"}#loco.wrap .icon-cloud-upload:before{content:"\e617"}#loco.wrap .icon-file:before{content:"\e611"}#loco.wrap .icon-circle-white:before{content:"\26ac"}#loco.wrap .icon-circle-black:before{content:"\25cf"}#loco.wrap .icon-eraser:before{content:"\e636"}#loco.wrap .icon-unlock:before{content:"\e616"}#loco.wrap .icon-apple:before{content:"\e60b"}#loco.wrap .icon-android:before{content:"\e60a"}#loco.wrap .icon-back:before{content:"\2b05"}#loco.wrap .icon-next:before{content:"\2794"}#loco.wrap .icon-arrow-up:before{content:"\f062"}#loco.wrap .icon-ccard:before{content:"\f09d"}#loco.wrap .icon-caret-left:before{content:"\25c0"}#loco.wrap .icon-pro:before{content:"\26a1"}#loco.wrap .icon-code:before{content:"\f121"}#loco.wrap .icon-hellip:before{content:"\2026"}#loco.wrap .icon-vellip:before{content:"\205e"}#loco.wrap .icon-collapse:before{content:"\f147"}#loco.wrap .icon-expand:before{content:"\f196"}#loco.wrap .icon-wordpress:before{content:"\f19a"}#loco.wrap .icon-database:before{content:"\f1c0"}#loco.wrap .icon-pilcrow:before{content:"\b6"}#loco.wrap .icon,#loco.wrap .has-icon:before,#loco.wrap .has-dashicon:before{speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#loco.wrap .icon,#loco.wrap .has-icon:before{font-family:'loco'}#loco.wrap .has-dashicon:before{font-family:'dashicons';font-size:1.4em}#loco.wrap .has-icon:before,#loco.wrap .has-dashicon:before,#loco.wrap .has-icon>span{display:inline-block;vertical-align:middle}#loco.wrap .only-icon{text-align:center}#loco.wrap .only-icon:before{text-align:center}#loco.wrap .only-icon span{display:none}#loco.wrap h1 ul,#loco.wrap h1 li{margin:0;padding:0}#loco.wrap h1 li{display:inline-block}#loco.wrap h1 li:after{content:"/";color:#999;text-shadow:none;display:inline-block}#loco.wrap h1 li a{text-decoration:none}#loco.wrap h1 li:last-child:after{content:""}#loco.wrap h1 li:last-child a{color:inherit;pointer-events:none;cursor:auto}#loco.wrap h2 span{color:#999;font-weight:normal}#loco.wrap h3 .loco-meta{font-size:14px;font-weight:normal}#loco.wrap .wp-list-table td:first-child .icon{width:16px;display:inline-block;text-align:center}#loco.wrap .wp-list-table td{white-space:nowrap}#loco.wrap .wp-list-table th.loco-sort{cursor:pointer}#loco.wrap .wp-list-table th.loco-sort:hover{color:#000}#loco.wrap .wp-list-table th.loco-sort.loco-asc:after,#loco.wrap .wp-list-table th.loco-sort.loco-desc:after{padding:0 0 0 4px;color:#999}#loco.wrap .wp-list-table th.loco-sort.loco-desc:after{content:"\25bc"}#loco.wrap .wp-list-table th.loco-sort.loco-asc:after{content:"\25b2"}#loco.wrap form.loco-filter{display:block;margin-bottom:5px}#loco.wrap form.loco-filter .icon-filter{color:#999}#loco.wrap nav.above-list-table{margin-bottom:1em}#loco.wrap nav.above-list-table a{display:inline-block;margin-right:1em}#loco.wrap .wp-core-ui button.inverted,#loco.wrap .wp-core-ui button.inverted:hover{background:-moz-linear-gradient(top, #ccc 0%, #e0e0e0 5%, #fefefe 100%);background:-webkit-linear-gradient(top, #ccc 0%, #e0e0e0 5%, #fefefe 100%);background:linear-gradient(to bottom, #ccc 0%, #e0e0e0 5%, #fefefe 100%);-webkit-box-shadow:0 1px 0 #fff;-moz-box-shadow:0 1px 0 #fff;box-shadow:0 1px 0 #fff;border-color:#bbb}#loco.wrap .wp-core-ui button:active,#loco.wrap .wp-core-ui button.inverted:active{border-color:#5b9dd9}#loco.wrap .loco-clearable{display:inline-block;vertical-align:middle;position:relative}#loco.wrap .loco-clearable a.clear,#loco.wrap .auto-comp-wrap a.clear{top:0;right:0;outline:none;margin:0;border:solid 1px transparent;padding:5px 5px;position:absolute;font-size:1em;line-height:normal;text-decoration:none}#loco.wrap .loco-clearable a.clear:before,#loco.wrap .auto-comp-wrap a.clear:before{vertical-align:middle;padding:0;color:#999}#loco.wrap .loco-clearable a.clear:hover:before,#loco.wrap .auto-comp-wrap a.clear:hover:before{color:#333}#loco.wrap .loco-clearable a.clear span,#loco.wrap .auto-comp-wrap a.clear span{display:none}#loco.wrap .loco-clearable ::-ms-clear,#loco.wrap .auto-comp-wrap ::-ms-clear{display:none}#loco.wrap div.progress{color:#000}#loco.wrap div.progress *{height:100%;overflow:hidden;white-space:nowrap}#loco.wrap div.progress .t{background-color:#ddd;border:1px solid #ccc}#loco.wrap div.progress .t .bar{float:left;clear:none;background-color:#3db63d}#loco.wrap div.progress .t .bar.f{background-color:#bd2c00}#loco.wrap div.progress .l{display:block}#loco.wrap td div.progress .t{border:none}#loco.wrap td div.progress .l{display:none}#loco.wrap code.path{color:#333;margin:0;padding:0;display:inline;background:transparent}#loco.wrap .notice,#loco.wrap .panel{background:#fff;position:relative;margin:1em 0;padding:1px 12px}#loco.wrap .notice-generic{border-color:#ddd}#loco.wrap .notice-success>.has-icon,#loco.wrap .notice-success p>strong.has-icon{color:#000}#loco.wrap .notice-warning{border-color:#FFA500}#loco.wrap .notice-error{border-color:#dc3232}#loco.wrap .notice-debug{border-color:#00a0d2}#loco.wrap .notice-danger{border-color:#dc3232}#loco.wrap .notice-locked{border-color:#FFA500}#loco.wrap .notice>p>a.button.has-icon:before{width:1.5em}#loco.wrap .notice>p>em{color:#d54e21;font-style:normal}#loco.wrap ul.problems li{font-style:italic}#loco.wrap input.regular-text,#loco.wrap textarea.regular-text{width:25em}#loco.wrap .button{text-decoration:none}#loco.wrap .button-link{padding:0 10px 1px}#loco.wrap .button-danger{background:#ba0000;border-color:#990000 #660000 #660000;-webkit-box-shadow:0 1px 0 #600;-moz-box-shadow:0 1px 0 #600;box-shadow:0 1px 0 #600;color:#fff;text-shadow:0 -1px 1px #660000, 1px 0 1px #660000, 0 1px 1px #660000, -1px 0 1px #660000}#loco.wrap .button-success{background:#00B500;border-color:#090 #2e892e #2e892e;-webkit-box-shadow:0 1px 0 #2e892e;-moz-box-shadow:0 1px 0 #2e892e;box-shadow:0 1px 0 #2e892e;color:#fff;text-shadow:0 -1px 1px #2e892e,1px 0 1px #2e892e,0 1px 1px #2e892e,-1px 0 1px #2e892e}#loco.wrap .button-success:hover{background:#3db63d}#loco.wrap form button.loading.button-large{padding-left:0}#loco.wrap form button.loading.button-large:before{width:16px;height:16px;margin:0 4px;content:" ";font-size:16px;line-height:1;display:inline-block;vertical-align:sub}#loco.wrap ::-webkit-input-placeholder{color:#ccc}#loco.wrap :-moz-placeholder{color:#ccc;opacity:1}#loco.wrap ::-moz-placeholder{color:#ccc;opacity:1}#loco.wrap :-ms-input-placeholder{color:#ccc}#loco.wrap .ielt10 .placeheld{color:#ccc}#loco.wrap a.has-raquo:after{content:" \BB"}.js #wpbody-content>.notice{display:none}.js #wpbody-content>.notice.inline{display:block}.js #loco.wrap .jshide{display:none !important}#loco.wrap .invis{visibility:hidden}.form-table tr{vertical-align:top}.form-table tr.compact td{padding-top:0}#loco-fs p{line-height:22px}#loco-fs a.button,#loco-fs button[type="button"]{display:block;float:right;margin-left:4px}.loco-modal.request-filesystem-credentials-dialog{top:15% !important;max-height:85% !important}.loco-modal.request-filesystem-credentials-dialog .ftp-password>label>em:last-child{display:none}.ui-dialog-content>div.loading{height:100%;background:transparent url(../img/spin-modal.gif?v=2.0.11) center center no-repeat}#loco-credit>*{vertical-align:middle}#loco-credit>a{display:inline-block;position:relative;overflow:hidden;background:transparent url(../img/logo-foot.gif?v=2.0.11) 0 0 no-repeat;height:30px;width:100px;text-indent:200px;-webkit-transition-duration:0s;transition-duration:0s}#loco-credit>a:hover{background-position:0 -35px}#loco-content{position:relative}#footer-upgrade span:before{color:#CCC;content:" | ";display:inline;padding-left:0.5em;padding-right:0.5em}#footer-upgrade span:first-child:before{content:"";display:none}dl.debug dt{font-weight:bold}dl.debug dt,dl.debug dd{white-space:pre}.wrap #loco-editor .is-table .wg-tr:nth-child(even){background-color:rgba(0,115,170,0.05)}.wrap #loco-editor .wg-split-x>nav.wg-tabs>a.active,.wrap #loco-editor .is-table .wg-cols>div>div.selected{background-color:#0073aa}.wrap #loco-editor .is-editable>.wg-content>textarea:focus,.wrap #loco-editor .is-editable>.wg-content.has-focus .ace_scroller,.wrap #loco-editor .is-editable>.wg-content.has-focus .mce-content-body{border-color:#5b9dd9;-webkit-box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8);-moz-box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8);box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8)}form button.loading.button-primary[disabled]:before{background:transparent url(../img/skins/fresh/spin-primary-button.gif?v=2.0.11) 0 0 no-repeat !important}
|
pub/css/editor.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
#loco-editor{border:solid 1px #ccc}#loco-editor ._ajax_loader_f2{background:transparent url(../img/ajax-loader-f2.gif?v=2.0.8) 0 0 no-repeat;min-height:16px}#loco-editor ._ajax_loader_f2x4{background:transparent url(../img/ajax-loader-f2-x4.gif?v=2.0.8) 0 0 no-repeat;min-height:75px}@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2 / 1), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx){#loco-editor ._ajax_loader_f2{background-image:url(../img/ajax-loader-f2-x2.gif?v=2.0.8);background-size:16px}}#loco-editor ._green_glow_inner,#loco-editor .is-editable>.wg-content>textarea:focus,#loco-editor .is-editable>.wg-content.has-focus .ace_scroller,#loco-editor .is-editable>.wg-content.has-focus .wysihtml-editor,#loco-editor .is-editable>.wg-content.has-focus .mce-content-body{-webkit-box-shadow:inset 0 0 10px 0 #3db63d;-moz-box-shadow:inset 0 0 10px 0 #3db63d;box-shadow:inset 0 0 10px 0 #3db63d}#loco-editor ._green_glow_outer{-webkit-box-shadow:0 0 0.5em 0 #3db63d;-moz-box-shadow:0 0 0.5em 0 #3db63d;box-shadow:0 0 0.5em 0 #3db63d}#loco-editor div.ta-mirror{position:absolute;top:0;border:solid 1px transparent;color:transparent;padding:0.4em 0.6em;pointer-events:none}#loco-editor div.ta-mirror span{position:relative}#loco-editor div.ta-mirror span:after{color:#ccc;white-space:pre;display:inline-block;position:absolute;top:0;line-height:normal}#loco-editor div.ta-mirror .crlf:after{content:"\00AC"}#loco-editor div.ta-mirror .eof:after{content:"\00B6"}#loco-editor div.ta-mirror .x20:after{content:"\00B7";color:#aaa}#loco-editor div.ta-mirror .x9:after{content:"\27F6"}#loco-editor div.ta-mirror,#loco-editor .has-mirror textarea{white-space:pre-wrap;word-wrap:break-word;word-spacing:0px}#loco-editor .has-mirror ::-webkit-input-placeholder{color:transparent}#loco-editor .has-mirror :-moz-placeholder{color:transparent;opacity:1}#loco-editor .has-mirror ::-moz-placeholder{color:transparent;opacity:1}#loco-editor .has-mirror :-ms-input-placeholder{color:transparent}#loco-editor .has-mirror .ielt10 .placeheld{color:transparent}#loco-editor div.ta-mirror{left:0;text-align:left}#loco-editor div.ta-mirror span:after{left:0}#loco-editor div.ta-mirror .eol:after{padding-left:0.2em}#loco-editor [dir="RTL"] div.ta-mirror{left:auto;right:0;text-align:right}#loco-editor [dir="RTL"] div.ta-mirror span:after{right:0}#loco-editor [dir="RTL"] div.ta-mirror .eol:after{padding-left:0;padding-right:0.2em}#loco-editor .has-proxy>textarea{display:none !important}#loco-editor .has-proxy .ace_editor{height:100%;font-size:13px !important;line-height:1.4 !important}#loco-editor .has-proxy .ace_editor .ace_marker-layer .ace_bracket{display:none}#loco-editor .has-proxy .ace_print-margin{display:none}#loco-editor .ace_printf{color:#b90690;background-color:#edf1be}#loco-editor .no-php-format .ace_printf{color:inherit;background-color:transparent}#loco-editor .resizer{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:0 0 6px 0;background:#f0f0f0 url(../img/wg/splity.png?v=2.0.8) center bottom no-repeat;border:1px solid #ddd;overflow:hidden;cursor:move;cursor:row-resize;cursor:s-resize}#loco-editor .resizer>*{height:100%;border:none}#loco-editor ._ajax_loader_f2{background:transparent url(../img/ajax-loader-f2.gif?v=2.0.8) 0 0 no-repeat;min-height:16px}#loco-editor ._ajax_loader_f2x4{background:transparent url(../img/ajax-loader-f2-x4.gif?v=2.0.8) 0 0 no-repeat;min-height:75px}@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2 / 1), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx){#loco-editor ._ajax_loader_f2{background-image:url(../img/ajax-loader-f2-x2.gif?v=2.0.8);background-size:16px}}#loco-editor ._green_glow_inner,#loco-editor .is-editable>.wg-content>textarea:focus,#loco-editor .is-editable>.wg-content.has-focus .ace_scroller,#loco-editor .is-editable>.wg-content.has-focus .wysihtml-editor,#loco-editor .is-editable>.wg-content.has-focus .mce-content-body{-webkit-box-shadow:inset 0 0 10px 0 #3db63d;-moz-box-shadow:inset 0 0 10px 0 #3db63d;box-shadow:inset 0 0 10px 0 #3db63d}#loco-editor ._green_glow_outer{-webkit-box-shadow:0 0 0.5em 0 #3db63d;-moz-box-shadow:0 0 0.5em 0 #3db63d;box-shadow:0 0 0.5em 0 #3db63d}#loco-editor .wg-cell,#loco-editor .wg-cell>div{clear:both;position:relative;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#loco-editor .wg-cell{left:0;top:0;padding:0;margin:0;overflow:hidden}#loco-editor .wg-split{background:#eee}#loco-editor .wg-body:after{content:".";display:block;clear:both;visibility:hidden;line-height:0;height:0}#loco-editor .wg-split-x>div>.not-first>*{margin-left:6px}#loco-editor .wg-split-y>div>.not-first>*{margin-top:6px}#loco-editor .wg-split>div>.has-title .wg-content{margin-top:0}#loco-editor .wg-split-x>div>.wg-cell{float:left;clear:none;height:100%}#loco-editor .wg-split-x>div{cursor:move;cursor:ew-resize;cursor:col-resize}#loco-editor .wg-split>div>.not-first:before{display:block;position:absolute;overflow:hidden;content:" "}#loco-editor .wg-split-x>div>.not-first:before{width:6px;height:100%;background:transparent url(../img/wg/splitx.png?v=2.0.8) center center no-repeat}#loco-editor .wg-split-y>div{cursor:move;cursor:ns-resize;cursor:row-resize}#loco-editor .wg-split-y>div>.not-first:before{height:6px;width:100%;background:transparent url(../img/wg/splity.png?v=2.0.8) center center no-repeat}#loco-editor .wg-split>div.locked{cursor:default}#loco-editor .wg-split-x>div.locked>.not-first>*{margin-left:1px}#loco-editor .wg-split-y>div.locked>.not-first>*{margin-top:1px}#loco-editor .wg-split>div.locked>.not-first:before{display:none}#loco-editor .has-title>header{background:#e2e2e2;cursor:default !important;margin:0;white-space:nowrap}#loco-editor .wg-content{background:#fff;cursor:default;padding:4px 6px;overflow:hidden;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#loco-editor .wg-toolbar{top:0;right:0;margin-top:6px;position:absolute}#loco-editor .wg-toolbar>span{color:#fff;background:#000;display:block;padding:0 6px;cursor:default !important}#loco-editor .wg-toolbar>span:active{color:#000;background-color:#fff}#loco-editor .wg-content,#loco-editor .wg-tbody>div{overflow:scroll;overflow-x:hidden;overflow-y:auto}#loco-editor .is-table{background-color:#fff}#loco-editor .is-table .wg-thead .has-title>header{font-weight:normal;background:transparent;padding:4px 0;margin:0 0 0 10px}#loco-editor .is-table .wg-thead>div>.not-first:before{background-position:center center}#loco-editor .is-table .wg-thead{background:#e2e2e2;border-bottom:solid 1px #ccc}#loco-editor .is-table .wg-tbody{background-image:url(data:image/gif;base64,R0lGODlhAQAsAIABAPz8/P///yH5BAEAAAEALAAAAAABACwAAAIIjI+pAe0PIygAOw==);position:relative}#loco-editor .is-table .wg-cols{outline:none}#loco-editor .is-table .wg-cols>div{float:left;clear:none}#loco-editor .is-table .wg-cols>div>div{white-space:nowrap;line-height:1.7em;padding-left:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;-o-text-overflow:ellipsis;-ms-text-overflow:ellipsis;background-color:#fff}#loco-editor .is-table .wg-cols>div>div:nth-child(even){background-color:#f7f7f7}#loco-editor .is-table .wg-cols>div>div.selected{background-color:#3db63d;color:#fff}#loco-editor .is-table .wg-cols>div:first-child>div{padding-left:4px}#loco-editor .is-table .wg-dead{clear:both}#loco-editor .is-field>.wg-content{cursor:text;outline:none;padding:0;line-height:normal;overflow:hidden;overflow-y:hidden}#loco-editor .is-field>.wg-content>div,#loco-editor .is-field>.wg-content>textarea{font-size:14px;line-height:1.4;border:1px solid #ddd;width:100%;height:100%;padding:8px 10px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-border-radius:0;-moz-border-radius:0;-ms-border-radius:0;-o-border-radius:0;border-radius:0}#loco-editor .is-field>.wg-content textarea{resize:none;overflow:auto;display:block}#loco-editor .is-field>.wg-content>.ace_editor{padding:0;border-width:0}#loco-editor .is-field>.wg-content>div[contenteditable]{overflow:scroll;overflow-x:hidden;overflow-y:auto}#loco-editor .is-readonly>.wg-content{cursor:default}#loco-editor .is-readonly>.wg-content>div,#loco-editor .is-readonly>.wg-content>textarea,#loco-editor .is-readonly>.wg-content>textarea[readonly]{background:#f8f8f8;text-shadow:0 1px #fff;color:inherit}#loco-editor .is-readonly>.wg-content .ace_scroller{cursor:default;background:#f8f8f8}#loco-editor .is-readonly>.wg-content .ace_cursor-layer{display:none}#loco-editor .is-editable>.wg-content[dir="RTL"] .ace_editor .ace_line{direction:ltr;unicode-bidi:bidi-override}#loco-editor .wg-split-x>nav.wg-tabs{white-space:nowrap;text-align:center;cursor:default}#loco-editor .wg-split-x>nav.wg-tabs>a{display:inline-block;padding:0.5em 1em;margin-top:0.2em;color:#000;text-decoration:none;-webkit-border-radius:0.2em 0.2em 0 0;-moz-border-radius:0.2em 0.2em 0 0;-ms-border-radius:0.2em 0.2em 0 0;-o-border-radius:0.2em 0.2em 0 0;border-radius:0.2em 0.2em 0 0;background-color:#f3f7fd}#loco-editor .wg-split-x>nav.wg-tabs>a:hover{background-color:#fff}#loco-editor .wg-split-x>nav.wg-tabs>a.active{background-color:#3db63d;color:#fff}#loco-editor .wg-split>div>.has-nav>.wg-body{margin-top:0px}#loco-editor .wg-dead{visibility:hidden}@media all and (max-width: 768px){#loco-editor .wg-split-x>div>.not-first>*{margin-left:20px}#loco-editor .wg-split-y>div>.not-first>*{margin-top:20px}#loco-editor .wg-split-x>div>.not-first:before{width:20px}#loco-editor .wg-split-y>div>.not-first:before{height:20px}#loco-editor .is-table .wg-thead header{padding-left:20px}}#loco-editor .is-table .po-fuzzy{color:#b59829;font-weight:bold}#loco-editor .is-table .po-empty{color:#1f507a;font-weight:bold}#loco-editor .is-table .po-flagged{color:#CC0000}#loco-editor .is-table .wg-cols>div:first-child>div:before{font-family:loco;vertical-align:inherit;display:inline-block;content:" ";width:1.3em;line-height:1}#loco-editor .is-table .wg-cols>div:first-child>div.po-flagged:before{content:""}#loco-editor .is-table .wg-cols>div:first-child>div.po-flag-2:before{content:""}#loco-editor .is-table .wg-cols>div:first-child>div.po-flag-3:before{content:""}#loco-editor .is-table .wg-cols>div:first-child>div.po-fuzzy:before,#loco-editor .is-table .wg-cols>div:first-child>div.po-flag-4:before{content:""}#loco-editor .is-table .wg-cols>div:first-child>div.po-flag-5:before{content:""}#loco-editor .is-table .wg-cols>div:first-child>div.po-flag-6:before{content:""}#loco-editor .is-table .wg-cols>div:first-child>div.po-comment:before{content:"\e613";color:#999}#loco-editor .is-table .wg-cols>div:first-child>div.po-unsaved:before{content:"\e612";color:#f1d040}#loco-editor .is-table .wg-cols>div:first-child>div.selected:before{color:#fff !important}#loco-editor #po-list .wg-content{padding:0}#loco-editor #po-source>.wg-body>.has-title>header{background:transparent;font-weight:normal;float:left;clear:none;min-width:3.4em}#loco-editor #po-source>.wg-body>.has-title>.wg-content{clear:none}#loco-editor #po-source p.notes{color:#666;margin:0 0 0.5em 0;font-size:12px;line-height:1.2em}#loco-editor #po-source>p.notes{margin:0;padding:4px 6px;cursor:default !important}#loco-editor .has-title>header{font-weight:bold;line-height:1.2em;font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;padding:4px 6px}#loco-editor .has-title>header .lang{margin-right:6px;margin-bottom:1px}#loco-editor #po-source>.wg-body>.has-title>h2{min-width:4.5em}#loco-editor .is-table .wg-td{font-size:13px}#loco-editor-inner{min-height:600px;font-size:14px;clear:both}#loco-editor-inner h2{color:#000;line-height:1}#loco.wrap #loco-toolbar{font-size:14px;height:50px}#loco.wrap #loco-toolbar form{display:block;float:left;clear:none;padding:0;margin:0}#loco.wrap #loco-toolbar form.aux{float:right;margin-right:5px}#loco.wrap #loco-toolbar fieldset{display:block;position:relative;float:left;clear:none}#loco.wrap #loco-toolbar button,#loco.wrap #loco-toolbar input[type="text"]{display:block;position:relative;float:left;clear:none;margin:5px 0 0 5px;height:36px;text-align:left;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#loco.wrap #loco-toolbar input[type="text"]{padding:0 10px;font-size:14px;line-height:normal}#loco.wrap #loco-toolbar .invalid input[type="text"]:focus{border-color:#cc0000;-webkit-box-shadow:0 0 2px rgba(153,0,0,0.5);-moz-box-shadow:0 0 2px rgba(153,0,0,0.5);box-shadow:0 0 2px rgba(153,0,0,0.5)}#loco.wrap #loco-toolbar .loco-clearable{padding:0 20px}#loco.wrap #loco-toolbar .loco-clearable.invalid a.clear:before{color:#cc0000}#loco.wrap #loco-toolbar .loco-clearable a.clear{right:25px;line-height:2}#loco.wrap #loco-toolbar .loco-clearable a.clear:focus{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}#loco.wrap #loco-toolbar .loco-clearable a.clear:hover:before{color:#cc0000}#loco.wrap #loco-toolbar .loco-clearable a.clear:active:before{color:#000}#loco.wrap #loco-toolbar button{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}#loco.wrap #loco-toolbar button.has-icon:before{width:16px;padding:0}#loco.wrap #loco-toolbar button.has-icon.loading:before{content:" ";height:16px;background:transparent url(../img/spin-editor-button.gif?v=2.0.8) 0 0 no-repeat}#loco.wrap #loco-toolbar button.only-icon{width:40px}
|
1 |
+
#loco-editor{border:solid 1px #ccc}#loco-editor ._ajax_loader_f2{background:transparent url(../img/ajax-loader-f2.gif?v=2.0.11) 0 0 no-repeat;min-height:16px}#loco-editor ._ajax_loader_f2x4{background:transparent url(../img/ajax-loader-f2-x4.gif?v=2.0.11) 0 0 no-repeat;min-height:75px}@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2 / 1), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx){#loco-editor ._ajax_loader_f2{background-image:url(../img/ajax-loader-f2-x2.gif?v=2.0.11);background-size:16px}}#loco-editor ._green_glow_inner,#loco-editor .is-editable>.wg-content>textarea:focus,#loco-editor .is-editable>.wg-content.has-focus .ace_scroller,#loco-editor .is-editable>.wg-content.has-focus .wysihtml-editor,#loco-editor .is-editable>.wg-content.has-focus .mce-content-body{-webkit-box-shadow:inset 0 0 10px 0 #3db63d;-moz-box-shadow:inset 0 0 10px 0 #3db63d;box-shadow:inset 0 0 10px 0 #3db63d}#loco-editor ._green_glow_outer{-webkit-box-shadow:0 0 0.5em 0 #3db63d;-moz-box-shadow:0 0 0.5em 0 #3db63d;box-shadow:0 0 0.5em 0 #3db63d}#loco-editor div.ta-mirror{position:absolute;top:0;border:solid 1px transparent;color:transparent;padding:0.4em 0.6em;pointer-events:none}#loco-editor div.ta-mirror span{position:relative}#loco-editor div.ta-mirror span:after{color:#ccc;white-space:pre;display:inline-block;position:absolute;top:0;line-height:normal}#loco-editor div.ta-mirror .crlf:after{content:"\00AC"}#loco-editor div.ta-mirror .eof:after{content:"\00B6"}#loco-editor div.ta-mirror .x20:after{content:"\00B7";color:#aaa}#loco-editor div.ta-mirror .x9:after{content:"\27F6"}#loco-editor div.ta-mirror,#loco-editor .has-mirror textarea{white-space:pre-wrap;word-wrap:break-word;word-spacing:0px}#loco-editor .has-mirror ::-webkit-input-placeholder{color:transparent}#loco-editor .has-mirror :-moz-placeholder{color:transparent;opacity:1}#loco-editor .has-mirror ::-moz-placeholder{color:transparent;opacity:1}#loco-editor .has-mirror :-ms-input-placeholder{color:transparent}#loco-editor .has-mirror .ielt10 .placeheld{color:transparent}#loco-editor div.ta-mirror{left:0;text-align:left}#loco-editor div.ta-mirror span:after{left:0}#loco-editor div.ta-mirror .eol:after{padding-left:0.2em}#loco-editor [dir="RTL"] div.ta-mirror{left:auto;right:0;text-align:right}#loco-editor [dir="RTL"] div.ta-mirror span:after{right:0}#loco-editor [dir="RTL"] div.ta-mirror .eol:after{padding-left:0;padding-right:0.2em}#loco-editor .has-proxy>textarea{display:none !important}#loco-editor .has-proxy .ace_editor{height:100%;font-size:13px !important;line-height:1.4 !important}#loco-editor .has-proxy .ace_editor .ace_marker-layer .ace_bracket{display:none}#loco-editor .has-proxy .ace_print-margin{display:none}#loco-editor .ace_printf{color:#b90690;background-color:#edf1be}#loco-editor .no-php-format .ace_printf{color:inherit;background-color:transparent}#loco-editor .resizer{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:0 0 6px 0;background:#f0f0f0 url(../img/wg/splity.png?v=2.0.11) center bottom no-repeat;border:1px solid #ddd;overflow:hidden;cursor:move;cursor:row-resize;cursor:s-resize}#loco-editor .resizer>*{height:100%;border:none}#loco-editor ._ajax_loader_f2{background:transparent url(../img/ajax-loader-f2.gif?v=2.0.11) 0 0 no-repeat;min-height:16px}#loco-editor ._ajax_loader_f2x4{background:transparent url(../img/ajax-loader-f2-x4.gif?v=2.0.11) 0 0 no-repeat;min-height:75px}@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2 / 1), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx){#loco-editor ._ajax_loader_f2{background-image:url(../img/ajax-loader-f2-x2.gif?v=2.0.11);background-size:16px}}#loco-editor ._green_glow_inner,#loco-editor .is-editable>.wg-content>textarea:focus,#loco-editor .is-editable>.wg-content.has-focus .ace_scroller,#loco-editor .is-editable>.wg-content.has-focus .wysihtml-editor,#loco-editor .is-editable>.wg-content.has-focus .mce-content-body{-webkit-box-shadow:inset 0 0 10px 0 #3db63d;-moz-box-shadow:inset 0 0 10px 0 #3db63d;box-shadow:inset 0 0 10px 0 #3db63d}#loco-editor ._green_glow_outer{-webkit-box-shadow:0 0 0.5em 0 #3db63d;-moz-box-shadow:0 0 0.5em 0 #3db63d;box-shadow:0 0 0.5em 0 #3db63d}#loco-editor .wg-cell,#loco-editor .wg-cell>div{clear:both;position:relative;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#loco-editor .wg-cell{left:0;top:0;padding:0;margin:0;overflow:hidden}#loco-editor .wg-split{background:#eee}#loco-editor .wg-body:after{content:".";display:block;clear:both;visibility:hidden;line-height:0;height:0}#loco-editor .wg-split-x>div>.not-first>*{margin-left:6px}#loco-editor .wg-split-y>div>.not-first>*{margin-top:6px}#loco-editor .wg-split>div>.has-title .wg-content{margin-top:0}#loco-editor .wg-split-x>div>.wg-cell{float:left;clear:none;height:100%}#loco-editor .wg-split-x>div{cursor:move;cursor:ew-resize;cursor:col-resize}#loco-editor .wg-split>div>.not-first:before{display:block;position:absolute;overflow:hidden;content:" "}#loco-editor .wg-split-x>div>.not-first:before{width:6px;height:100%;background:transparent url(../img/wg/splitx.png?v=2.0.11) center center no-repeat}#loco-editor .wg-split-y>div{cursor:move;cursor:ns-resize;cursor:row-resize}#loco-editor .wg-split-y>div>.not-first:before{height:6px;width:100%;background:transparent url(../img/wg/splity.png?v=2.0.11) center center no-repeat}#loco-editor .wg-split>div.locked{cursor:default}#loco-editor .wg-split-x>div.locked>.not-first>*{margin-left:1px}#loco-editor .wg-split-y>div.locked>.not-first>*{margin-top:1px}#loco-editor .wg-split>div.locked>.not-first:before{display:none}#loco-editor .has-title>header{background:#e2e2e2;cursor:default !important;margin:0;white-space:nowrap}#loco-editor .wg-content{background:#fff;cursor:default;padding:4px 6px;overflow:hidden;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#loco-editor .wg-toolbar{top:0;right:0;margin-top:6px;position:absolute}#loco-editor .wg-toolbar>span{color:#fff;background:#000;display:block;padding:0 6px;cursor:default !important}#loco-editor .wg-toolbar>span:active{color:#000;background-color:#fff}#loco-editor .wg-content,#loco-editor .wg-tbody>div{overflow:scroll;overflow-x:hidden;overflow-y:auto}#loco-editor .is-table{background-color:#fff}#loco-editor .is-table .wg-thead .has-title>header{font-weight:normal;background:transparent;padding:4px 0;margin:0 0 0 10px}#loco-editor .is-table .wg-thead>div>.not-first:before{background-position:center center}#loco-editor .is-table .wg-thead{background:#e2e2e2;border-bottom:solid 1px #ccc}#loco-editor .is-table .wg-tbody{background-image:url(data:image/gif;base64,R0lGODlhAQAsAIABAPz8/P///yH5BAEAAAEALAAAAAABACwAAAIIjI+pAe0PIygAOw==);position:relative}#loco-editor .is-table .wg-cols{outline:none}#loco-editor .is-table .wg-cols>div{float:left;clear:none}#loco-editor .is-table .wg-cols>div>div{white-space:nowrap;line-height:1.7em;padding-left:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;-o-text-overflow:ellipsis;-ms-text-overflow:ellipsis;background-color:#fff}#loco-editor .is-table .wg-cols>div>div:nth-child(even){background-color:#f7f7f7}#loco-editor .is-table .wg-cols>div>div.selected{background-color:#3db63d;color:#fff}#loco-editor .is-table .wg-cols>div:first-child>div{padding-left:4px}#loco-editor .is-table .wg-dead{clear:both}#loco-editor .is-field>.wg-content{cursor:text;outline:none;padding:0;line-height:normal;overflow:hidden;overflow-y:hidden}#loco-editor .is-field>.wg-content>div,#loco-editor .is-field>.wg-content>textarea{font-size:14px;line-height:1.4;border:1px solid #ddd;width:100%;height:100%;padding:8px 10px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-border-radius:0;-moz-border-radius:0;-ms-border-radius:0;-o-border-radius:0;border-radius:0}#loco-editor .is-field>.wg-content textarea{resize:none;overflow:auto;display:block}#loco-editor .is-field>.wg-content>.ace_editor{padding:0;border-width:0}#loco-editor .is-field>.wg-content>div[contenteditable]{overflow:scroll;overflow-x:hidden;overflow-y:auto}#loco-editor .is-readonly>.wg-content{cursor:default}#loco-editor .is-readonly>.wg-content>div,#loco-editor .is-readonly>.wg-content>textarea,#loco-editor .is-readonly>.wg-content>textarea[readonly]{background:#f8f8f8;text-shadow:0 1px #fff;color:inherit}#loco-editor .is-readonly>.wg-content .ace_scroller{cursor:default;background:#f8f8f8}#loco-editor .is-readonly>.wg-content .ace_cursor-layer{display:none}#loco-editor .is-editable>.wg-content[dir="RTL"] .ace_editor .ace_line{direction:ltr;unicode-bidi:bidi-override}#loco-editor .wg-split-x>nav.wg-tabs{white-space:nowrap;text-align:center;cursor:default}#loco-editor .wg-split-x>nav.wg-tabs>a{display:inline-block;padding:0.5em 1em;margin-top:0.2em;color:#000;text-decoration:none;-webkit-border-radius:0.2em 0.2em 0 0;-moz-border-radius:0.2em 0.2em 0 0;-ms-border-radius:0.2em 0.2em 0 0;-o-border-radius:0.2em 0.2em 0 0;border-radius:0.2em 0.2em 0 0;background-color:#f3f7fd}#loco-editor .wg-split-x>nav.wg-tabs>a:hover{background-color:#fff}#loco-editor .wg-split-x>nav.wg-tabs>a.active{background-color:#3db63d;color:#fff}#loco-editor .wg-split>div>.has-nav>.wg-body{margin-top:0px}#loco-editor .wg-dead{visibility:hidden}@media all and (max-width: 768px){#loco-editor .wg-split-x>div>.not-first>*{margin-left:20px}#loco-editor .wg-split-y>div>.not-first>*{margin-top:20px}#loco-editor .wg-split-x>div>.not-first:before{width:20px}#loco-editor .wg-split-y>div>.not-first:before{height:20px}#loco-editor .is-table .wg-thead header{padding-left:20px}}#loco-editor .is-table .po-fuzzy{color:#b59829;font-weight:bold}#loco-editor .is-table .po-empty{color:#1f507a;font-weight:bold}#loco-editor .is-table .po-flagged{color:#CC0000}#loco-editor .is-table .wg-cols>div:first-child>div:before{font-family:loco;vertical-align:inherit;display:inline-block;content:" ";width:1.3em;line-height:1}#loco-editor .is-table .wg-cols>div:first-child>div.po-flagged:before{content:""}#loco-editor .is-table .wg-cols>div:first-child>div.po-flag-2:before{content:""}#loco-editor .is-table .wg-cols>div:first-child>div.po-flag-3:before{content:""}#loco-editor .is-table .wg-cols>div:first-child>div.po-fuzzy:before,#loco-editor .is-table .wg-cols>div:first-child>div.po-flag-4:before{content:""}#loco-editor .is-table .wg-cols>div:first-child>div.po-flag-5:before{content:""}#loco-editor .is-table .wg-cols>div:first-child>div.po-flag-6:before{content:""}#loco-editor .is-table .wg-cols>div:first-child>div.po-comment:before{content:"\e613";color:#999}#loco-editor .is-table .wg-cols>div:first-child>div.po-unsaved:before{content:"\e612";color:#f1d040}#loco-editor .is-table .wg-cols>div:first-child>div.selected:before{color:#fff !important}#loco-editor #po-list .wg-content{padding:0}#loco-editor #po-source>.wg-body>.has-title>header{background:transparent;font-weight:normal;float:left;clear:none;min-width:3.4em}#loco-editor #po-source>.wg-body>.has-title>.wg-content{clear:none}#loco-editor #po-source p.notes{color:#666;margin:0 0 0.5em 0;font-size:12px;line-height:1.2em}#loco-editor #po-source>p.notes{margin:0;padding:4px 6px;cursor:default !important}#loco-editor .has-title>header{font-weight:bold;line-height:1.2em;font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;padding:4px 6px}#loco-editor .has-title>header .lang{margin-right:6px;margin-bottom:1px}#loco-editor #po-source>.wg-body>.has-title>h2{min-width:4.5em}#loco-editor .is-table .wg-td{font-size:13px}#loco-editor-inner{min-height:600px;font-size:14px;clear:both}#loco-editor-inner h2{color:#000;line-height:1}#loco.wrap #loco-toolbar{font-size:14px;height:50px}#loco.wrap #loco-toolbar form{display:block;float:left;clear:none;padding:0;margin:0}#loco.wrap #loco-toolbar form.aux{float:right;margin-right:5px}#loco.wrap #loco-toolbar fieldset{display:block;position:relative;float:left;clear:none}#loco.wrap #loco-toolbar button,#loco.wrap #loco-toolbar input[type="text"]{display:block;position:relative;float:left;clear:none;margin:5px 0 0 5px;height:36px;text-align:left;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#loco.wrap #loco-toolbar input[type="text"]{padding:0 10px;font-size:14px;line-height:normal}#loco.wrap #loco-toolbar .invalid input[type="text"]:focus{border-color:#cc0000;-webkit-box-shadow:0 0 2px rgba(153,0,0,0.5);-moz-box-shadow:0 0 2px rgba(153,0,0,0.5);box-shadow:0 0 2px rgba(153,0,0,0.5)}#loco.wrap #loco-toolbar .loco-clearable{padding:0 20px}#loco.wrap #loco-toolbar .loco-clearable.invalid a.clear:before{color:#cc0000}#loco.wrap #loco-toolbar .loco-clearable a.clear{right:25px;line-height:2}#loco.wrap #loco-toolbar .loco-clearable a.clear:focus{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}#loco.wrap #loco-toolbar .loco-clearable a.clear:hover:before{color:#cc0000}#loco.wrap #loco-toolbar .loco-clearable a.clear:active:before{color:#000}#loco.wrap #loco-toolbar button{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}#loco.wrap #loco-toolbar button.has-icon:before{width:16px;padding:0}#loco.wrap #loco-toolbar button.has-icon.loading:before{content:" ";height:16px;background:transparent url(../img/spin-editor-button.gif?v=2.0.11) 0 0 no-repeat}#loco.wrap #loco-toolbar button.only-icon{width:40px}
|
pub/css/poview.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
#loco.wrap #loco-po{padding-right:0;overflow:auto}#loco.wrap #loco-po.loading{min-height:100px;background:#fff url(../img/spin-modal.gif?v=2.0.
|
1 |
+
#loco.wrap #loco-po{padding-right:0;overflow:auto}#loco.wrap #loco-po.loading{min-height:100px;background:#fff url(../img/spin-modal.gif?v=2.0.11) center center no-repeat}#loco.wrap #loco-po.loading ol.msgcat{display:none}ol.msgcat{margin-left:3em}ol.msgcat li{color:#aaa;margin:0;padding:0 0 0 1em;font:normal 12px/16px 'Monaco','Menlo','Ubuntu Mono','Consolas','source-code-pro',monospace;border-left:1px solid #EEE}ol.msgcat li>*{color:#333;white-space:pre}ol.msgcat li>.po-comment{color:#3CC200}ol.msgcat li>.po-refs{color:#0073aa}ol.msgcat li>.po-refs a{color:inherit;text-decoration:none}ol.msgcat li>.po-refs a:hover{text-decoration:underline}ol.msgcat li>.po-flags{color:#77904a}ol.msgcat li>.po-flags em{font-style:normal}ol.msgcat li>.po-word{color:#000}ol.msgcat li>.po-junk{font-style:italic;color:#CCC}ol.msgcat li>.po-string>span{color:#C931C7}.loco-modal{min-width:90% !important;min-height:100px}#loco-po-ref ol li{color:#aaa;margin:0;white-space:pre;padding:0 0 0 1em;font:normal 12px/17px Consolas,Monaco,monospace;background:transparent;border-left:1px solid #EEE}#loco-po-ref ol li code{margin:0;padding:0;display:inline;background:inherit}#loco-po-ref ol li.highlighted{color:#666;background-color:#f8eec7}#loco-po-ref ol li.highlighted code.T_CONSTANT_ENCAPSED_STRING{color:#C931C7}
|
pub/css/skins/blue.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.wrap #loco-editor .is-table .wg-tr:nth-child(even){background-color:rgba(9,100,132,0.05)}.wrap #loco-editor .wg-split-x>nav.wg-tabs>a.active,.wrap #loco-editor .is-table .wg-cols>div>div.selected{background-color:#096484}.wrap #loco-editor .is-editable>.wg-content>textarea:focus,.wrap #loco-editor .is-editable>.wg-content.has-focus .ace_scroller,.wrap #loco-editor .is-editable>.wg-content.has-focus .mce-content-body{border-color:#5b9dd9;-webkit-box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8);-moz-box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8);box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8)}form button.loading.button-primary[disabled]:before{background:transparent url(../../img/skins/blue/spin-primary-button.gif?v=2.0.
|
1 |
+
.wrap #loco-editor .is-table .wg-tr:nth-child(even){background-color:rgba(9,100,132,0.05)}.wrap #loco-editor .wg-split-x>nav.wg-tabs>a.active,.wrap #loco-editor .is-table .wg-cols>div>div.selected{background-color:#096484}.wrap #loco-editor .is-editable>.wg-content>textarea:focus,.wrap #loco-editor .is-editable>.wg-content.has-focus .ace_scroller,.wrap #loco-editor .is-editable>.wg-content.has-focus .mce-content-body{border-color:#5b9dd9;-webkit-box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8);-moz-box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8);box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8)}form button.loading.button-primary[disabled]:before{background:transparent url(../../img/skins/blue/spin-primary-button.gif?v=2.0.11) 0 0 no-repeat !important}
|
pub/css/skins/coffee.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.wrap #loco-editor .is-table .wg-tr:nth-child(even){background-color:rgba(199,165,137,0.05)}.wrap #loco-editor .wg-split-x>nav.wg-tabs>a.active,.wrap #loco-editor .is-table .wg-cols>div>div.selected{background-color:#c7a589}.wrap #loco-editor .is-editable>.wg-content>textarea:focus,.wrap #loco-editor .is-editable>.wg-content.has-focus .ace_scroller,.wrap #loco-editor .is-editable>.wg-content.has-focus .mce-content-body{border-color:#5b9dd9;-webkit-box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8);-moz-box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8);box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8)}form button.loading.button-primary[disabled]:before{background:transparent url(../../img/skins/coffee/spin-primary-button.gif?v=2.0.
|
1 |
+
.wrap #loco-editor .is-table .wg-tr:nth-child(even){background-color:rgba(199,165,137,0.05)}.wrap #loco-editor .wg-split-x>nav.wg-tabs>a.active,.wrap #loco-editor .is-table .wg-cols>div>div.selected{background-color:#c7a589}.wrap #loco-editor .is-editable>.wg-content>textarea:focus,.wrap #loco-editor .is-editable>.wg-content.has-focus .ace_scroller,.wrap #loco-editor .is-editable>.wg-content.has-focus .mce-content-body{border-color:#5b9dd9;-webkit-box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8);-moz-box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8);box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8)}form button.loading.button-primary[disabled]:before{background:transparent url(../../img/skins/coffee/spin-primary-button.gif?v=2.0.11) 0 0 no-repeat !important}
|
pub/css/skins/ectoplasm.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.wrap #loco-editor .is-table .wg-tr:nth-child(even){background-color:rgba(163,183,69,0.05)}.wrap #loco-editor .wg-split-x>nav.wg-tabs>a.active,.wrap #loco-editor .is-table .wg-cols>div>div.selected{background-color:#a3b745}.wrap #loco-editor .is-editable>.wg-content>textarea:focus,.wrap #loco-editor .is-editable>.wg-content.has-focus .ace_scroller,.wrap #loco-editor .is-editable>.wg-content.has-focus .mce-content-body{border-color:#5b9dd9;-webkit-box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8);-moz-box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8);box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8)}form button.loading.button-primary[disabled]:before{background:transparent url(../../img/skins/ectoplasm/spin-primary-button.gif?v=2.0.
|
1 |
+
.wrap #loco-editor .is-table .wg-tr:nth-child(even){background-color:rgba(163,183,69,0.05)}.wrap #loco-editor .wg-split-x>nav.wg-tabs>a.active,.wrap #loco-editor .is-table .wg-cols>div>div.selected{background-color:#a3b745}.wrap #loco-editor .is-editable>.wg-content>textarea:focus,.wrap #loco-editor .is-editable>.wg-content.has-focus .ace_scroller,.wrap #loco-editor .is-editable>.wg-content.has-focus .mce-content-body{border-color:#5b9dd9;-webkit-box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8);-moz-box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8);box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8)}form button.loading.button-primary[disabled]:before{background:transparent url(../../img/skins/ectoplasm/spin-primary-button.gif?v=2.0.11) 0 0 no-repeat !important}
|
pub/css/skins/light.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.wrap #loco-editor .is-table .wg-tr:nth-child(even){background-color:rgba(136,136,136,0.05)}.wrap #loco-editor .wg-split-x>nav.wg-tabs>a.active,.wrap #loco-editor .is-table .wg-cols>div>div.selected{background-color:#888}.wrap #loco-editor .is-editable>.wg-content>textarea:focus,.wrap #loco-editor .is-editable>.wg-content.has-focus .ace_scroller,.wrap #loco-editor .is-editable>.wg-content.has-focus .mce-content-body{border-color:#5b9dd9;-webkit-box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8);-moz-box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8);box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8)}form button.loading.button-primary[disabled]:before{background:transparent url(../../img/skins/light/spin-primary-button.gif?v=2.0.
|
1 |
+
.wrap #loco-editor .is-table .wg-tr:nth-child(even){background-color:rgba(136,136,136,0.05)}.wrap #loco-editor .wg-split-x>nav.wg-tabs>a.active,.wrap #loco-editor .is-table .wg-cols>div>div.selected{background-color:#888}.wrap #loco-editor .is-editable>.wg-content>textarea:focus,.wrap #loco-editor .is-editable>.wg-content.has-focus .ace_scroller,.wrap #loco-editor .is-editable>.wg-content.has-focus .mce-content-body{border-color:#5b9dd9;-webkit-box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8);-moz-box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8);box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8)}form button.loading.button-primary[disabled]:before{background:transparent url(../../img/skins/light/spin-primary-button.gif?v=2.0.11) 0 0 no-repeat !important}
|
pub/css/skins/midnight.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.wrap #loco-editor .is-table .wg-tr:nth-child(even){background-color:rgba(225,77,67,0.05)}.wrap #loco-editor .wg-split-x>nav.wg-tabs>a.active,.wrap #loco-editor .is-table .wg-cols>div>div.selected{background-color:#e14d43}.wrap #loco-editor .is-editable>.wg-content>textarea:focus,.wrap #loco-editor .is-editable>.wg-content.has-focus .ace_scroller,.wrap #loco-editor .is-editable>.wg-content.has-focus .mce-content-body{border-color:#5b9dd9;-webkit-box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8);-moz-box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8);box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8)}form button.loading.button-primary[disabled]:before{background:transparent url(../../img/skins/midnight/spin-primary-button.gif?v=2.0.
|
1 |
+
.wrap #loco-editor .is-table .wg-tr:nth-child(even){background-color:rgba(225,77,67,0.05)}.wrap #loco-editor .wg-split-x>nav.wg-tabs>a.active,.wrap #loco-editor .is-table .wg-cols>div>div.selected{background-color:#e14d43}.wrap #loco-editor .is-editable>.wg-content>textarea:focus,.wrap #loco-editor .is-editable>.wg-content.has-focus .ace_scroller,.wrap #loco-editor .is-editable>.wg-content.has-focus .mce-content-body{border-color:#5b9dd9;-webkit-box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8);-moz-box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8);box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8)}form button.loading.button-primary[disabled]:before{background:transparent url(../../img/skins/midnight/spin-primary-button.gif?v=2.0.11) 0 0 no-repeat !important}
|
pub/css/skins/ocean.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.wrap #loco-editor .is-table .wg-tr:nth-child(even){background-color:rgba(158,186,160,0.05)}.wrap #loco-editor .wg-split-x>nav.wg-tabs>a.active,.wrap #loco-editor .is-table .wg-cols>div>div.selected{background-color:#9ebaa0}.wrap #loco-editor .is-editable>.wg-content>textarea:focus,.wrap #loco-editor .is-editable>.wg-content.has-focus .ace_scroller,.wrap #loco-editor .is-editable>.wg-content.has-focus .mce-content-body{border-color:#5b9dd9;-webkit-box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8);-moz-box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8);box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8)}form button.loading.button-primary[disabled]:before{background:transparent url(../../img/skins/ocean/spin-primary-button.gif?v=2.0.
|
1 |
+
.wrap #loco-editor .is-table .wg-tr:nth-child(even){background-color:rgba(158,186,160,0.05)}.wrap #loco-editor .wg-split-x>nav.wg-tabs>a.active,.wrap #loco-editor .is-table .wg-cols>div>div.selected{background-color:#9ebaa0}.wrap #loco-editor .is-editable>.wg-content>textarea:focus,.wrap #loco-editor .is-editable>.wg-content.has-focus .ace_scroller,.wrap #loco-editor .is-editable>.wg-content.has-focus .mce-content-body{border-color:#5b9dd9;-webkit-box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8);-moz-box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8);box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8)}form button.loading.button-primary[disabled]:before{background:transparent url(../../img/skins/ocean/spin-primary-button.gif?v=2.0.11) 0 0 no-repeat !important}
|
pub/css/skins/sunrise.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.wrap #loco-editor .is-table .wg-tr:nth-child(even){background-color:rgba(221,130,59,0.05)}.wrap #loco-editor .wg-split-x>nav.wg-tabs>a.active,.wrap #loco-editor .is-table .wg-cols>div>div.selected{background-color:#dd823b}.wrap #loco-editor .is-editable>.wg-content>textarea:focus,.wrap #loco-editor .is-editable>.wg-content.has-focus .ace_scroller,.wrap #loco-editor .is-editable>.wg-content.has-focus .mce-content-body{border-color:#5b9dd9;-webkit-box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8);-moz-box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8);box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8)}form button.loading.button-primary[disabled]:before{background:transparent url(../../img/skins/sunrise/spin-primary-button.gif?v=2.0.
|
1 |
+
.wrap #loco-editor .is-table .wg-tr:nth-child(even){background-color:rgba(221,130,59,0.05)}.wrap #loco-editor .wg-split-x>nav.wg-tabs>a.active,.wrap #loco-editor .is-table .wg-cols>div>div.selected{background-color:#dd823b}.wrap #loco-editor .is-editable>.wg-content>textarea:focus,.wrap #loco-editor .is-editable>.wg-content.has-focus .ace_scroller,.wrap #loco-editor .is-editable>.wg-content.has-focus .mce-content-body{border-color:#5b9dd9;-webkit-box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8);-moz-box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8);box-shadow:inset 0 0 0.6em rgba(30,140,190,0.8)}form button.loading.button-primary[disabled]:before{background:transparent url(../../img/skins/sunrise/spin-primary-button.gif?v=2.0.11) 0 0 no-repeat !important}
|
pub/js/min/admin.js
CHANGED
@@ -1,41 +1,41 @@
|
|
1 |
-
(function(
|
2 |
-
""}b=
|
3 |
-
b!=b?b=0:0!=b&&Infinity!=b&&-Infinity!=b&&(b=(0<b||-1)*Math.floor(Math.abs(b))));if(b>=a)return-1;for(b=0<=b?b:Math.max(a-Math.abs(b),0);b<a;b++)if(b in g&&g[b]===c)return b;return-1});return f}({},
|
4 |
-
e)return"%";g=a[b++];return String(g)||""})};return f}({},
|
5 |
-
".google-analytics.com/ga.js";var e=h.getElementsByTagName("script")[0];e.parentNode.insertBefore(a,e)}return f};f.event=function(a,e,
|
6 |
-
function(){(a[g].q=a[g].q||[]).push(arguments)};a[g].l=1*new Date;m=e.createElement(
|
7 |
-
function(a,d){var e={hitType:"pageview",page:a||location.pathname+location.hash,title:d||h.title};e.location=location.protocol+"//"+location.hostname+e.page;g&&
|
8 |
-
var b,g=location.hostname,a="/help"===location.pathname.substr(0,5);f.init=function(a){!b&&a&&(g=a.host||(a.host=g),b=a.legacy?
|
9 |
-
d.setAttribute("target","_blank");
|
10 |
-
clearTimeout(
|
11 |
-
d=function(a,d){f=h('<input type="button" value="'+d.label+'" class="butt '+(d.css||"")+'" />');f.click(function(a){"function"===typeof d.callback&&d.callback(a,{close:
|
12 |
-
d,e,
|
13 |
-
function(f,c,
|
14 |
-
|
15 |
-
|
16 |
-
return f};f.html=function(a){D();c.innerShiv&&(a=innerShiv(a,!1));return
|
17 |
-
e||"icon").attr("lang",b);
|
18 |
-
[f]);return f};f.listen=function(a){D().on("overlayClosed",a);return f};f.unlisten=function(a){D().off("overlayClosed",a);return f};return f}({},
|
19 |
-
f.text=function(a,d){d.data("tipsy").setTitle(a)};var b,g;f.delays();h(
|
20 |
e=d[0].offsetWidth,b=d[0].offsetHeight,g="function"==typeof this.options.gravity?this.options.gravity.call(this.$element[0]):this.options.gravity,c;switch(g.charAt(0)){case "n":c={top:a.top+a.height+this.options.offset,left:a.left+a.width/2-e/2};break;case "s":c={top:a.top-b-this.options.offset,left:a.left+a.width/2-e/2};break;case "e":c={top:a.top+a.height/2-b/2,left:a.left-e-this.options.offset};break;case "w":c={top:a.top+a.height/2-b/2,left:a.left+a.width+this.options.offset}}2==g.length&&("w"==
|
21 |
g.charAt(1)?c.left=a.left+a.width/2-15:c.left=a.left+a.width/2-e+15);d.css(c).addClass("tipsy-"+g);d.find(".tipsy-arrow")[0].className="tipsy-arrow tipsy-arrow-"+g.charAt(0);this.options.className&&d.addClass("function"==typeof this.options.className?this.options.className.call(this.$element[0]):this.options.className);d.addClass("in")}},hide:function(){this.tip().remove()},fixTitle:function(){var a=this.$element,d=a.attr("title")||"";(d||"string"!==typeof a.attr("original-title"))&&a.attr("original-title",
|
22 |
d).removeAttr("title")},getTitle:function(){var a,d=this.$element,e=this.options;this.fixTitle();"string"==typeof e.title?a=d.attr("title"==e.title?"original-title":e.title):"function"==typeof e.title&&(a=e.title.call(d[0]));return(a=(""+a).replace(/(^\s*|\s*$)/,""))||e.fallback},setTitle:function(a){var d=this.$element;d.attr("default-title")||d.attr("default-title",this.getTitle());null==a&&(a=d.attr("default-title")||this.getTitle());d.attr("original-title",a);if(this.$tip)this.$tip.find(".tipsy-inner")[this.options.html?
|
23 |
"html":"text"](a)},tip:function(){this.$tip||(this.$tip=h('<div class="tipsy"></div>').html('<div class="tipsy-arrow"></div><div class="tipsy-inner"></div>'),this.$tip.data("tipsy-pointee",this.$element[0]));return this.$tip},validate:function(){this.$element[0].parentNode||(this.hide(),this.options=this.$element=null)},enable:function(){this.enabled=!0},disable:function(){this.hide();this.enabled=!1},toggleEnabled:function(){this.enabled=!this.enabled}};h.fn.tipsy=function(a){function d(d){var e=
|
24 |
-
h.data(d,"tipsy");e||(e=new
|
25 |
-
"live":"bind",c="hover"==a.trigger?"mouseleave":"blur";this[g]("hover"==a.trigger?"mouseenter":"focus",e)[g](c,b)}return this};h.fn.tipsy.defaults={className:null,delayIn:0,delayOut:0,fade:!1,fallback:"",gravity:"n",html:!1,live:!1,offset:0,opacity:0.8,title:"title",trigger:"hover",anchor:null};h.fn.tipsy.revalidate=function(){h(".tipsy").each(function(){var a=h.data(this,"tipsy-pointee"),d;if(!(d=!a)){a:{for(;a=a.parentNode;)if(a==
|
26 |
-
function(a,d){return h.metadata?h.extend({},d,h(a).metadata()):d};h.fn.tipsy.autoNS=function(){return h(this).offset().top>h(
|
27 |
-
a&&(b="e");h(c).height()+h(
|
28 |
-
e;a=b.responseText;g=b.status;if(!a&&0===g)return null;try{d=h.parseJSON(a)||{}}catch(
|
29 |
-
[a]),
|
30 |
-
/^\s+Fatal error/.test(a.responseText)?"Fatal server error from Ajax request":"Bad Ajax response";else{var h=f.errorData(a,d,b);h&&h.error&&(
|
31 |
-
"function"===typeof g&&!1===g(a&&a.data?a.data:a,null,d,b)?e():a&&a.data?
|
32 |
-
d&&B())return
|
33 |
-
Number(c.getAttribute("tabindex"));if(isNaN(v)||100>v)continue a;h(c).focus();break a}}function d(){
|
34 |
-
g,d,c,"modal "+e)}return
|
35 |
-
v,f){var B=b&&b.html;if(!B)return b&&b.redirect?(
|
36 |
-
2],
|
37 |
-
" macro has no run function");
|
38 |
-
"";e();return!1});a(f.value);h(f).on("input blur focus",function(){e();return!0}).after(
|
39 |
"\u1ea5":"a","\u1ea7":"a","\u1eab":"a","\u1ea9":"a","\u01ce":"a","\u00e5":"a","\u01fb":"a","\u00e4":"a","\u01df":"a","\u00e3":"a","\u0227":"a","\u01e1":"a","\u0105":"a","\u0101":"a","\u1ea3":"a","\u0201":"a","\u0203":"a","\u1ea1":"a","\u1eb7":"a","\u1ead":"a","\u1e01":"a","\u01fd":"\u00e6","\u01e3":"\u00e6","\u1e03":"b","\u1e05":"b","\u1e07":"b","\u0107":"c","\u0109":"c","\u010d":"c","\u010b":"c","\u00e7":"c","\u1e09":"c","\u010f":"d","\u1e0b":"d","\u1e11":"d","\u0111":"d","\u1e0d":"d","\u1e13":"d",
|
40 |
"\u1e0f":"d","\u00f0":"d","\ua77a":"d","\u01c6":"\u01f3","\u00e9":"e","\u00e8":"e","\u0115":"e","\u00ea":"e","\u1ebf":"e","\u1ec1":"e","\u1ec5":"e","\u1ec3":"e","\u011b":"e","\u00eb":"e","\u1ebd":"e","\u0117":"e","\u0229":"e","\u1e1d":"e","\u0119":"e","\u0113":"e","\u1e17":"e","\u1e15":"e","\u1ebb":"e","\u0205":"e","\u0207":"e","\u1eb9":"e","\u1ec7":"e","\u1e19":"e","\u1e1b":"e","\u1e1f":"f","\ua77c":"f","\u01f5":"g","\u011f":"g","\u011d":"g","\u01e7":"g","\u0121":"g","\u0123":"g","\u1e21":"g","\ua7a1":"g",
|
41 |
"\u1d79":"g","\u0125":"h","\u021f":"h","\u1e27":"h","\u1e23":"h","\u1e29":"h","\u0127":"h","\u210f":"h","\u1e25":"h","\u1e2b":"h","\u1e96":"h","\u00ed":"i","\u00ec":"i","\u012d":"i","\u00ee":"i","\u01d0":"i","\u00ef":"i","\u1e2f":"i","\u0129":"i","\u012f":"i","\u012b":"i","\u1ec9":"i","\u0209":"i","\u020b":"i","\u1ecb":"i","\u1e2d":"i","\u0135":"j","\u01f0":"j","\u1e31":"k","\u01e9":"k","\u0137":"k","\ua7a3":"k","\u1e33":"k","\u1e35":"k","\u013a":"l","\u013e":"l","\u013c":"l","\u0142":"l","\u1e37":"l",
|
@@ -47,157 +47,157 @@ v,f){var B=b&&b.html;if(!B)return b&&b.redirect?(q=m.pop()||null,u(b.redirect,e,
|
|
47 |
"\u1f72":"\u03b5","\u1f20":"\u03b7","\u1f24":"\u03b7","\u1f94":"\u03b7","\u1f22":"\u03b7","\u1f92":"\u03b7","\u1f26":"\u03b7","\u1f96":"\u03b7","\u1f90":"\u03b7","\u1f21":"\u03b7","\u1f25":"\u03b7","\u1f95":"\u03b7","\u1f23":"\u03b7","\u1f93":"\u03b7","\u1f27":"\u03b7","\u1f97":"\u03b7","\u1f91":"\u03b7","\u03ae":"\u03b7","\u1f75":"\u03b7","\u1fc4":"\u03b7","\u1f74":"\u03b7","\u1fc2":"\u03b7","\u1fc6":"\u03b7","\u1fc7":"\u03b7","\u1fc3":"\u03b7","\u1f30":"\u03b9","\u1f34":"\u03b9","\u1f32":"\u03b9",
|
48 |
"\u1f36":"\u03b9","\u1f31":"\u03b9","\u1f35":"\u03b9","\u1f33":"\u03b9","\u1f37":"\u03b9","\u03af":"\u03b9","\u1f77":"\u03b9","\u1f76":"\u03b9","\u1fd0":"\u03b9","\u1fd6":"\u03b9","\u03ca":"\u03b9","\u0390":"\u03b9","\u1fd3":"\u03b9","\u1fd2":"\u03b9","\u1fd7":"\u03b9","\u1fd1":"\u03b9","\u1f40":"\u03bf","\u1f44":"\u03bf","\u1f42":"\u03bf","\u1f41":"\u03bf","\u1f45":"\u03bf","\u1f43":"\u03bf","\u03cc":"\u03bf","\u1f79":"\u03bf","\u1f78":"\u03bf","\u1fe4":"\u03c1","\u1fe5":"\u03c1","\u1f50":"\u03c5",
|
49 |
"\u1f54":"\u03c5","\u1f52":"\u03c5","\u1f56":"\u03c5","\u1f51":"\u03c5","\u1f55":"\u03c5","\u1f53":"\u03c5","\u1f57":"\u03c5","\u03cd":"\u03c5","\u1f7b":"\u03c5","\u1f7a":"\u03c5","\u1fe0":"\u03c5","\u1fe6":"\u03c5","\u03cb":"\u03c5","\u03b0":"\u03c5","\u1fe3":"\u03c5","\u1fe2":"\u03c5","\u1fe7":"\u03c5","\u1fe1":"\u03c5","\u1f60":"\u03c9","\u1f64":"\u03c9","\u1fa4":"\u03c9","\u1f62":"\u03c9","\u1fa2":"\u03c9","\u1f66":"\u03c9","\u1fa6":"\u03c9","\u1fa0":"\u03c9","\u1f61":"\u03c9","\u1f65":"\u03c9",
|
50 |
-
"\u1fa5":"\u03c9","\u1f63":"\u03c9","\u1fa3":"\u03c9","\u1f67":"\u03c9","\u1fa7":"\u03c9","\u1fa1":"\u03c9","\u03ce":"\u03c9","\u1f7d":"\u03c9","\u1ff4":"\u03c9","\u1f7c":"\u03c9","\u1ff2":"\u03c9","\u1ff6":"\u03c9","\u1ff7":"\u03c9","\u1ff3":"\u03c9","\u0491":"\u0433","\u0450":"\u0435","\u0451":"\u0435","\u04c2":"\u0436","\u045d":"\u0438","\u04e3":"\u0438","\u04ef":"\u0443"});
|
51 |
-
c)}function g(a,d,e){for(var b=a.split(
|
52 |
-
0;b:for(;
|
53 |
-
c)},clear:function(){c=[];b.clear();return this}}};return f}({},
|
54 |
-
isNaN(e)||(d+=e));a-=2;
|
55 |
-
g[
|
56 |
-
b=e.data()||{label:"Error"},g=b.value,f=b.label;d(g);I.val(f);
|
57 |
-
v.attr("autocomplete","off");U.append(v).append(
|
58 |
-
h.parseJSON(
|
59 |
-
a([]),this;d={dataType:"json",url:this.url+encodeURIComponent(b)};
|
60 |
-
d,e){if(e=e||a.getElement(d))e.off().mouseup(function(e){e.stopPropagation();a.selectIndex(d,!0);return!1}).mouseover(function(){h(this).addClass("over");a.hover=d;return!0}).mouseout(function(){h(this).removeClass("over");a.hover=-1;return!0}),e=null;return a}function g(a){if(a){var d,e=a[0],b=e.id,g=e.title,c=[],f=[],
|
61 |
-
|
62 |
-
b&&d.attr("id",b);g&&a.hasClass("hastip")&&(d.attr("title",g),
|
63 |
-
c=g.prototype;c.enable=function(){var a=this;a.handle.click(function(a){a.preventDefault();return!1}).mouseover(function(d){return a.onRollover(d)}).mouseout(function(d){return a.onRollout(d)}).mousedown(function(d){return a.onPress(d)}).keydown(function(d){return a.onKeydown(d)});h(
|
64 |
-
this.over?(this.close(),a.stopPropagation(),a.preventDefault(),!1):!0:(this.open(),a.stopPropagation(),a.preventDefault(),this.handle.focus(),!1)};c.onRelease=function(a){this.active&&!this.over&&this.close();return!0};c.onGlobalKeydown=function(a){if(this.active)switch(a.keyCode){case 27:return this.close(),
|
65 |
-
c.onKeydown=function(a){return this.active||40!==a.keyCode?!0:(this.open(),
|
66 |
-1!==this.hover&&(this.getElement(this.hover).removeClass("over"),this.hover=-1);a.removeClass("active");d&&d.enable()};c.hoverItem=function(a,d){-1!==this.hover&&this.getElement(this.hover).removeClass("over");this.hover=a;-1!==a&&(d=d||this.getElement(a),d.addClass("over"))};c.hoverNext=function(a){var d=this.options.length;if(d){d-=1;if(-1==this.hover)a=0<a?0:d;else{a=this.hover+a;if(0>a){this.close();return}a>d&&(a=0)}this.hoverItem(a)}};c.enableChange=function(a){this.eventName=a;this.eventData=
|
67 |
-
[].slice.call(arguments,1);return this};c.enableConfirm=function(a){this.confirm=a;return this};c.clearOptions=function(){this.index={};this.length=0;this.options=[];this.list.html("");this.hidden.val("");this.idx=this.hover=-1;return this};c.destroy=function(){this.clearOptions();this.hidden.remove()};c.addOption=function(a,d,e,
|
68 |
-
g?g=g.split("-").shift():e&&-1!==e.indexOf("lang-"+a)&&(g=a);g&&f.attr("lang",g);
|
69 |
-
a)};c.reIndex=function(){this.index={};this.length=0;for(var a=this.options.length;0!==a--;)this.index[this.options[a].value]=a,this.length++};c.selectValue=function(a,d){return this.selectIndex(this.index[a],d)};c.selectIndex=function(a,d){var e=this.options[a];if(e){var b=this,g=b.idx,c=e.value,f=e.icon||b.defaultIcon,
|
70 |
-
d?"function"===typeof b.confirm?b.confirm.call(null,e,function(a){a&&
|
71 |
b=[a].concat(this.eventData||[]);this.wrapper.trigger(e,b);d&&d(a);return this};c.beforeChange=function(a){var d=h.Event("locoBeforeSelect");this.wrapper.trigger(d,[a]);return!d.isDefaultPrevented()};c.renameOption=function(a,d){var e=this.index[a],b=this.options[e];b&&(b.text=d,this.getElement(e).find("span.label").text(d),e===this.idx&&this.setLabel(d));return this};c.removeOption=function(a){var d=this.index[a],e=this.options[d];e&&(a=this.val(),this.getElement(d).remove(),this.options.splice(d,
|
72 |
-
1),this.reIndex(),a===e.value?this.selectIndex(0,!0):this.selectValue(a,!1))};c.getElement=function(a){return this.list.find("li").eq(a)};c.getWrapper=function(){return this.wrapper};c.persist=function(a){var d=this.id||this.name,e=a.fetch(d);null!=e&&this.selectValue(e,!0);this.save=function(e){a.store(d,e)};return this};c.listen=function(a){return this.on(this.eventName||"change",a)};c.on=function(a,d){this.wrapper.on(a,d);return this};c=null;return f}({},
|
73 |
-
[],a=h([]);this.hidden=a;this.selected=g;this.selectedIcon="icon icon-checkbox";this.constructor.call(this,b);this.wrapper.addClass("multi");for(var d,e,
|
74 |
-
|
75 |
-
e=!1,
|
76 |
-
"ga.js"),d=
|
77 |
-
c.find("select.selector").each(function(a,d){d.hasAttribute("multiple")?
|
78 |
-
b(a);a.trigger("locoAhah")});return!1}))}});d=e=
|
79 |
-
/[<>&]/g;
|
80 |
return!0}function e(){""===a.value&&(a.value=c,b.addClass("placeheld"));return!0}var b=h(a);if(!b.hasClass("auto-comp")){var c=b.attr("placeholder");if(c)return b.focus(d).blur(e),e(),{kill:function(){d();b.off("focus",d).off("blur",e)}}}}var b=f.enable=function(a){function d(a,d){d.getAttribute("data-was-disabled")||(d.disabled=!1)}a.find(".button").removeClass("loading");a.find("button").each(d);a.find("input").each(d);a.find("select").each(d);a.find("textarea").each(d);c.attachEvent&&a.hasClass("has-placeholders")&&
|
81 |
f.placeholders(a);delete a._disabled},g=f.disable=function(a){function d(a,d){d.disabled?d.setAttribute("data-was-disabled","true"):d.disabled=!0}a._disabled||(a.find(".button").addClass("loading"),a.find("button").each(d),a.find("input").each(d),a.find("select").each(d),a.find("textarea").each(d),a._disabled=!0)};f.jsonify=function(a,d,e){a instanceof jQuery||(a=h(a));a.disable||(h.fn.disable=function(){g(this);return this},h.fn.enable=function(){b(this);this.placehold&&this.placehold();return this});
|
82 |
-
var c="";a.find('[type="submit"]').click(function(a){a&&a.target&&a.target.name&&(c=encodeURIComponent(a.target.name)+"="+encodeURIComponent(a.target.value));return!0});a.submit(function(b){if(b&&b.isDefaultPrevented&&b.isDefaultPrevented()||e&&!1===e(b))return!1;var g=a.serialize(),g=g.replace(/%0D%0A/g,"%0A");c&&(g&&(g+="&"),g+=c,c="");a.disable();var f=
|
83 |
-
b.stopPropagation();return!1})};f.revealify=function(a){a=a.closest("form");a.find("div[data-reveal-if]").each(function(d,b){function c(a){var d;
|
84 |
-
f=a[0][
|
85 |
-
b=[];a.find("input[placeholder]").each(function(a,c){"password"!==c.type&&(d=
|
86 |
-
h(c).triggerHandler("resize")})})}function g(a,d){function e(d){
|
87 |
-
d=h(e.el("strong","has-icon")).text(d+": ");c.append(d).append(b).appendTo(a);return a}function d(d,b,e,
|
88 |
-
5E3)};f.log=function(){c.console&&console.log&&console.log.apply(console,arguments)};f.debug=function(a,d){c.console&&console.error&&(console.error("Loco Error: "+a),d&&console.debug&&console.debug(d))};f.clear=function(){for(var a=-1,d,b=
|
89 |
-
function(f,c,
|
90 |
-
""),
|
91 |
-
a;return f};f.submit=function(a,d,b){function c(){f.removeClass("loading");
|
92 |
-
(m+="&"+
|
93 |
-
|
94 |
-
a.toLowerCase();if(a=RegExp.$5)e.extension=a;return e};c=
|
95 |
-
b+"-"+c.toLowerCase()]);return g.join(" ")};c.isRTL=function(){return!!a[String(this.script||this.lang).toLowerCase()]};c=null;return f}({},
|
96 |
-
e+" must be defined"),f=!1);return f};f.init=function(d,e){var c,f=new a;if(d)for(c=d.length;0!==c--;)f[d[c]]=b;if(e)for(c=e.length;0!==c--;)f[e[c]]=new g;return f};f.validate=function(a){var b=/function (\w+)\(/.exec(a.toString())?RegExp.$1:"";a.prototype._validate(b||"Object")};return f}({},
|
97 |
-
c[a+"CancelRequestAnimationFrame"])break;
|
98 |
-
"touch")===a.pointerType)return f(a)}}b.addEventListener(d,e,c);return{unbind:function(){b.removeEventListener(d,e,c)}}}function b(a){a.preventDefault();a.stopPropagation();return!1}var g,a=!!c.navigator.msPointerEnabled,d=a?"MSPointerDown":"touchstart",e=a?"MSPointerMove":"touchmove",
|
99 |
-
function g(b){a.removeEventListener(b,h[b],!1)}var h={};h[d]=function(a){
|
100 |
-
v=[],D=[],G=[];w[d]=function(a){
|
101 |
-
|
102 |
-
b,!1)};f.move=function(a,b){return
|
103 |
-
a).split(/(?:\r\n|\r|\n)/).join('<span class="eol crlf"></span>\r\n')+'<span class="eol eof"></span>';return!0}function a(a,b){return'<span class="x'+a.charCodeAt(0).toString(16)+'">'+a+"</span>"}var d=c.parentNode,e=d.insertBefore(
|
104 |
-
e=null;h(d).removeClass("has-mirror")}}};return f}({},
|
105 |
-
(e||a)+'"');f()}if(e&&c[e])"function"===typeof d&&d(c[e]);else if(null!=b[a])b[a].push(d);else{b[a]=[d];var m=setTimeout(
|
106 |
-
e);break}b=g=c||"/static"}return b+a};return f}({},
|
107 |
{token:"constant.language",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"},{token:"printf",regex:"%(?:\\d+\\$)?[-+]?(?:'.)?[ 0]*-?\\d*(?:\\.d+)?[bcdeEfFgGosuxX%]"},{token:"printf",regex:"%(?:\\d+\\$)?[-,'+#0 (]*\\d*(?:\\.\\d+|\\.\\*)?[sScCuidoxXfFeEgGaAbBpn%@]"},{defaultToken:"text"}]}}function c(){this.HighlightRules=b}a=a.require;var f=a("ace/lib/oop");f.inherits(b,a("ace/mode/text_highlight_rules").TextHighlightRules);f.inherits(c,a("ace/mode/text").Mode);return new c}f.init=
|
108 |
-
function(d,e){var c,f=!1,
|
109 |
-
|
110 |
-
return this},focus:function(){return this}}};return f}({},
|
111 |
-
d){function e(a){c=a;d?
|
112 |
-
fixed_toolbar_container:"#"+
|
113 |
-
classes:"aligncenter"},strikethrough:{inline:"del"}},fix_list_elements:!0,entities:"38,amp,60,lt,62,gt,160,nbsp",entity_encoding:"named",keep_styles:!1,init_instance_callback:e})});return{val:function(a){null==c?h(
|
114 |
-
c;b(a);a.setMode("readonly")}d=null;return this},focus:function(){c&&d&&c.focus();return this},invs:function(a){a=a||!1;
|
115 |
-
m.trigger("editBlur");
|
116 |
a.readOnly?d.disable():d.enable();return d};TextAreaPrototype=b.prototype;TextAreaPrototype.destroy=function(){this.unlisten();this.e=null};TextAreaPrototype.reload=function(a,b){b?this.l||this.enable():this.l&&this.disable();return this.val(a||"")};TextAreaPrototype.val=function(a){var b=this.e;if(null==a)return b.value;var e=this.p||this.l;e?e.val(a):b.value!==a&&(b.value=a,h(b).triggerHandler("input"));return this};TextAreaPrototype.fire=function(){this.l&&this.l.fire();return this};TextAreaPrototype.focus=
|
117 |
function(){var a=this.p;a?a.focus():h(this.e).focus()};TextAreaPrototype.focused=function(){return g&&g===this.el};TextAreaPrototype.parent=function(){return this.e.parentNode};TextAreaPrototype.attr=function(a,b){var e=this.e;if(1===arguments.length)return e.getAttribute(a);null==b?e.removeAttribute(a):e.setAttribute(a,b);return this};TextAreaPrototype.editable=function(){return!!this.l};TextAreaPrototype.enable=function(){var a=this.p;this.e.removeAttribute("readonly");this.listen();a&&a.enable&&
|
118 |
-
a.enable(this.l);return this};TextAreaPrototype.disable=function(){var a=this.p;this.e.setAttribute("readonly",!0);this.unlisten();a&&a.disable&&a.disable();return this};TextAreaPrototype.listen=function(){var a=this.l;a&&a.kill();this.l=
|
119 |
-
"mirror.js").init(this.e)),this.i=a;return this};TextAreaPrototype.getInvs=function(){return this.i||!1};TextAreaPrototype.setMode=function(a){var b=this.p;a!==(this.m||"")&&(this.m=a,b&&b.kill(),this.p=b="code"===a?
|
120 |
-
a);return this};TextAreaPrototype.redraw=function(a){var b=this.p;b&&b.resize&&!a&&b.resize()};TextAreaPrototype=null;return f}({},
|
121 |
-
a.redraw();return!0}}function e(a){return function(b){var d;d=b.keyCode;if(40===d)d=1;else if(38===d)d=-1;else return!0;if(b.shiftKey||b.ctrlKey||b.metaKey||b.altKey)return!0;a.selectNext(d);b.stopPropagation();b.preventDefault();return!1}}function
|
122 |
-
|
123 |
-
this.render();h(c).attr("tabindex","-1").on("keydown",e(this)).on("mousedown",a(this)).on("scroll",d(this));return this};m.clear=function(){for(var a=this.pages||[],b=a.length;0!==b--;)a[b].destroy();this.pages=[];this.sy=this.mx=this.mn=this.vh=null;void 0;return this};m.render=function(){for(var a,b,d=[],e=-1,c=this.rows||[],f=this.f,g=f?!0:!1,
|
124 |
-
e,a=c[a],a.page=b,b.rows.push(a);b&&100!==b.size()&&b.sleepH(22);this.pages=d;this.mx=this.mn=null;this.redrawDirty();this.redraw();null==h?null!=v&&(a=c[v])&&a.page&&(delete this._r,this.select(v,!0)):(a=c[h])&&a.page?this.select(h,!0):(this.deselect(),this._r=h);return this};m.resize=function(){var a=-1,b=this.ww||(this.ww=[]),d=this.w,e=d.cells[0],c=e.body.childNodes,f=c.length,g=this.pages||[],
|
125 |
-
this.redrawDirty()&&this.redraw()}};m.redrawDirty=function(){var a=!1,b=this.root,d=b.scrollTop,b=b.clientHeight;this.sy!==d&&(a=!0,this.sy=d);this.vh!==b&&(a=!0,this.vh=b);return a};m.redraw=function(){for(var a=0,b=-1,d=null,e=null,c=this.ww,f=this.sy,g=this.vh,
|
126 |
g.rendered&&g.sleep()}this.mn=d}if(h!==e){if(null!==h&&e<h)for(b=h;b>e;b--)g=m[b],g.rendered&&g.sleep();this.mx=e}};m.selected=function(){return this.r};m.thead=function(){return this.w.cells[0]};m.tbody=function(){return this.w.cells[1]};m.tr=function(a){return(a=this.rows[a])?a.cells():[]};m.td=function(a,b){return this.tr(a)[b]};m.next=function(a,b,d){null==d&&(d=this.r);for(var e,c=this.rows,f=d,g=c.length;d!==(f+=a);)if(0<=f&&g>f){if(e=c[f],e.page)break}else if(b&&g)f=1===a?-1:g,b=!1;else{f=
|
127 |
-
null;break}return f};m.selectNext=function(a,b,d){a=this.next(a,b);null!=a&&this.r!==a&&this.select(a,d);return this};m.deselect=function(a){var b=this.r;null!=b&&(this.r=null,h(this.tr(b)).removeClass("selected"),this.w.fire("wgRowDeselect",[b,a]));return this};m.select=function(a,b){var d=this.rows[a],e=d&&d.page;if(!e)return this.deselect(!1),
|
128 |
-
|
129 |
-
b=e.cloneNode(!1),b.textContent=c[f]||"\u00a0",b.$r=g,a[f].appendChild(b);this._=null;this.c=d}else for(d=this.c;0!==f--;)a[f].appendChild(d[f]);this.rendered=!0;return this};m.cells=function(){return this.c||[]};m.data=function(){return this.d||[]};m.destroy=function(){this.page=null;this.rendered=!1};m=null;m=
|
130 |
-
this.live:this.dead).offsetTop};m.height=function(){var a=this.h;null==a&&(this.h=a=this.rendered?this.live.firstChild.offsetHeight:this.dead.offsetHight);a||
|
131 |
d=this.dead;d.style.height=String(a)+"px";b.parentNode.replaceChild(d,b);this.rendered=!1;this.h=a;return this};m.sleepH=function(a){a*=this.rows.length;var b=this.dead;b&&(b.style.height=String(a)+"px");this.rendered||(this.h=a);return this};m.widths=function(a){for(var b=this.live.childNodes,d=a.length;0!==d--;)b[d].style.width=a[d];return this};m.destroy=function(){var a=this.rendered?this.live:this.dead,b=this.rows,d=b.length;for(a.parentNode.removeChild(a);0!==d--;)b[d].destroy()};m=null;return f}({},
|
132 |
-
|
133 |
-
b);if(!B)return!0;h(
|
134 |
-
b&&b.redraw();a&&a.redraw();return
|
135 |
-
c=
|
136 |
-
arguments)};c._split=function(a,b){(this.length||this.field)&&this.clear();for(var d=-1,e,c=b.length,f=1/c,g=0;++d<c;){e=m.el();this.body.appendChild(e);for(var
|
137 |
-
c.clear=function(){for(var a=this.el,b=this.cells,d=this.field,e=this.body,c=this.nav,f=this.length||0;0!==f--;)delete
|
138 |
-
|
139 |
a.push("not-first");this.dir&&(a.push("wg-split"),2===this.dir?a.push("wg-split-y"):a.push("wg-split-x"));this.t&&a.push("has-title");this.nav&&a.push("has-nav");this.field&&(a.push("is-field"),this.field.editable()?a.push("is-editable"):a.push("is-readonly"));a=a.join(" ");a!==this._css&&(this._css=a,this.el.className=a);return this};c.redraw=function(a){this.restyle();var b=this.el,d=this.body,e=this.field;if(d){var c=b.clientHeight||0,f=d.offsetTop||0,c=f>c?0:c-f;this._h!==c&&(this._h=c,d.style.height=
|
140 |
-
String(c)+"px",e&&e.redraw(a))}for(var d=this.length,f=1,g=this.nav,
|
141 |
-
typeof a?h(e)._html(a):a&&this.append(a);this.redraw();return this};c.textarea=function(a,b){var d=this.field;if(d){var e=d.editable();d.reload(a,b);e!==b&&this.restyle()}else this.length&&this.clear(),e=m.el("textarea"),e.setAttribute("wrap","virtual"),e.value=a,this.contents(e),d=
|
142 |
a.isRTL())};c._locale=function(a,b,d){var e=this.body;if(d||a!==this.lang)this.lang=a,e&&e.setAttribute("lang",a);if(d||b!==this.rtl)this.rtl=b,e&&e.setAttribute("dir",b?"RTL":"LTR");return this};c.editable=function(){var a=this.field;if(!a||!a.editable())for(var b=-1,d=this.length;++b<d&&!(a=this.cells[b].editable()););return a};c.eachTextarea=function(a){var b=this.field;b?a(b):this.each(function(b){b.eachTextarea(a)});return this};c.append=function(a){a&&(a.nodeType?m.init(this.body.appendChild(a)):
|
143 |
m.init(h(a).appendTo(this.body)));return this};c.prepend=function(a){var b=this.body;if(a.nodeType){var d=b.firstChild;m.init(d?b.insertBefore(a,d):b.appendChild(a))}else m.init(h(a).prependTo(b));return this};c.before=function(a){var b=this.body;a.nodeType?m.init(this.el.insertBefore(a,b)):m.init(h(a).insertBefore(b));return this};c.header=function(a,b){if(null==a&&null==b)return this.el.getElementsByTagName("header")[0];this.t=m.txt(a||"");this.el.insertBefore(m.el("header",b),this.body).appendChild(this.t);
|
144 |
-
this.redraw();return this};c.title=function(a){var b=this.t;if(b)return b.nodeValue=a||"",b;this.header(a);return this.t};c.titled=function(){var a=this.t;return a&&a.nodeValue};c.bodyY=function(){return e(this.body,this.el)};c.scrollY=function(a){if(T===a)return this.body.scrollTop;this.body.scrollTop=a};c.tabulate=function(a){return this.table=
|
145 |
-
d=c.scrollTop;var f=e(a,c);if(d>f)d=f;else{var g=c.clientHeight,f=f+h(a).outerHeight();if(g+d<f)d=f-g;else return}b?c.scrollTop=d:h(c).stop(!0).animate({scrollTop:d},250)};c.navigize=function(b,d){function e(a){var b=f[a],d=
|
146 |
-
if(null==d)return!0;if(null!=
|
147 |
-
function(b){return new
|
148 |
this.length++);this[a]=c;return a};c.get=function(b){return this[this.ords[b]]};c.has=function(b){return null!=this.ords[b]};c.del=function(b){this.cut(this.ords[b],1)};c.cut=function(b,c){c=c||1;var a=[].splice.call(this,b,c);this.keys.splice(b,c);this.reIndex(this.keys);return a};c.each=function(b){for(var c=-1,a=this.keys,d=this.length;++c<d;)b(a[c],this[c],c);return this};c.sort=function(b){for(var c=-1,a=this.length,d,e=this.keys,f=this.ords,h=[];++c<a;)h[c]=[this[c],e[c]];h.sort(function(a,
|
149 |
-
d){return b(a[0],d[0])});for(c=0;c<a;c++)d=h[c],this[c]=d[0],d=d[1],e[c]=d,f[d]=c;return this};c=null;return f}({},
|
150 |
-
"locale.js").cast(d),c.length||(c=h("<span></span>").prependTo(b)),c.attr("lang",d.lang).attr("class",d.getIcon()||"lang region region-"+(d.region||"zz").toLowerCase())):(c.remove(),d="en");a.locale(d);return b}function g(){this.dirty=0}var a="poUpdate",d="changing",e="changed",
|
151 |
-
return function(b){a.innerHTML=b;return a.textContent}}(),w=g.prototype=
|
152 |
-
":";b[
|
153 |
-
this;b.listCell=a;a.on("wgRowSelect",function(a,d){b.loadMessage(b.po.row(d));return!0}).on("wgRowDeselect",function(a,d,c){c||b.loadNothing();return!0})};w.setSourceCell=function(a){this.sourceCell=a;var b=a.find("p.notes");b.length||(b=h('<p class="notes"></p>').insertAfter(a.header()).hide());this.notesPara=b};w.setTargetCell=function(a){this.targetCell=a};w.next=function(a,b,d){for(var c=this.listTable,e=c.selected(),f=e,g,
|
154 |
g.translated(0)))continue;break}null!=e&&c.select(e,!0);return e};w.current=function(a){var b=this.active;if("undefined"===typeof a)return b;a?a.is(b)?this.pasteMessage(a):this.loadMessage(a):this.unloadActive();return this};w.getTargetEditable=function(){return this.editable.target&&this.targetCell&&this.targetCell.editable()};w.getSourceEditable=function(){return this.editable.source&&this.sourceCell&&this.sourceCell.editable()};w.getContextEditable=function(){return this.editable.context&&this.contextCell&&
|
155 |
this.contextCell.editable()};w.getFirstEditable=function(){return this.getTargetEditable()||this.getSourceEditable()||this.getContextEditable()};w.searchable=function(a){a&&(this.dict=a,this.po&&this.rebuildSearch());return this.dict&&!0};w.rebuildSearch=function(){var a=-1,b=this.po.rows,d=b.length,c=this.dict;for(c.clear();++a<d;)c.add(a,b[a].toText());this.lastSearch="";this.lastFound=d};w.filtered=function(){return this.lastSearch||""};w.filter=function(a,b){var d,c=this.listTable,e=this.lastFound,
|
156 |
f=this.lastSearch;if(a){if(f===a)return e||0;if(f&&!e&&0===a.indexOf(f))return 0;d=this.dict.find(a)}f=this.lastSearch=a;e=this.lastFound=d?d.length:this.po.length;d?c.filter(d):c.unfilter();b||this.fire("poFilter",[f,e]);return e};w.unsave=function(a,b){var d=!1;if(a=a||self.active){if(d=a.saved(b))this.dirty++,a.unsave(b),this.fire("poUnsaved",[a,b]);this.markUnsaved(a)}return d};w.markUnsaved=function(a){var b=this.po.indexOf(a),b=this.listTable.tr(b),d=b[0].className;changedStyle=d.replace(/(?:^| +)po-[a-z]+/g,
|
157 |
-
"")+" "+
|
158 |
-
f.isRTL(),
|
159 |
c.tbody().$(g?"addClass":"removeClass",["is-rtl"]),a.targetLocale=f,a.fire("poLoad"),!!e.length;d&&d.clear().header("Error").contents("Invalid messages list")};w.load=function(a,b){this.po=a;this.dict&&this.rebuildSearch();this.reload()&&(-1!==b?this.listTable.select(b||0):this.active&&this.unloadActive())};w.pasteMessage=function(a){var b,d=0;if(b=this.sourceCell)b.eachTextarea(function(b){b.val(a.source(null,d++))}),this.updateListCell(a,"source");(b=this.contextCell)&&b.eachTextarea(function(b){b.val(a.context())});
|
160 |
-
if(b=this.targetCell)d=0,b.eachTextarea(function(b){b.val(a.translation(d++))}),this.updateListCell(a,"target");return this};w.loadMessage=function(c){function f(g){var h,m=g,
|
161 |
-
g.lock()):g.textarea(Z,R).setMode(
|
162 |
-
b,d){if(d||
|
163 |
-
h);0===h&&
|
164 |
-
function(a,b){c.comment(b);
|
165 |
-
|
166 |
null);return this};w.loadNothing=function(){var a,b=this.t,d=this.mode||"",c=this.inv||!1;this.unloadActive();(a=this.commentCell)&&a.textarea("",!1);if(a=this.sourceCell)a.textarea("",!1).setMode(d).setMode(d).setInvs(c),a.title(b._x("Source text not loaded","Editor")+":");if(a=this.contextCell)a.textarea("",!1).setMode(d).setMode(d).setInvs(c),a.title(b._x("Context not loaded","Editor")+":");if(a=this.targetCell)a.textarea("",!1).setMode(d).setMode(d).setInvs(c),a.title(b._x("Translation not loaded",
|
167 |
-
"Editor")+":");this.fire("poSelected",[null])};w.updateListCell=function(a,b){var d=this.getListColumns()[b],c=this.getListEntry(a)[d||0],e=this.po.indexOf(a);if(d=this.listTable.td(e,d))d.textContent=c};w.cellText=function(a){if(-1!==a.indexOf("<")||-1!==a.indexOf("&"))a=C(a);return a.replace(
|
168 |
[d,b,c])||(d.fuzzy(c,b),this.fire(a,[d])&&this.unsave(d,c));return e};w.add=function(b,d){var c,e=this.po.get(b,d);e?c=this.po.indexOf(e):(c=this.po.length,e=this.po.add(b,d),this.load(this.po,-1),this.fire("poAdd",[e]),this.fire(a,[e]));this.lastSearch&&this.filter("");this.listTable.select(c);return e};w.del=function(b){if(b=b||this.active){var d=this.lastSearch,c=this.po.del(b);null!=c&&(this.unsave(b),this.fire("poDel",[b]),this.fire(a,[b]),this.reload(),this.dict&&this.rebuildSearch(),this.active&&
|
169 |
this.active.equals(b)&&this.unloadActive(),this.po.length&&(d&&this.filter(d),this.active||(c=Math.min(c,this.po.length-1),this.listTable.select(c))))}};w.setMono=function(a){return this.setMode(a?"code":this.html?"html":"")};w.setMode=function(a){this.mode!==a&&(this.mode=a,this.callTextareas(function(b){b.setMode(a)}));return this};w.getMono=function(){return"code"===this.mode};w.setInvs=function(a){(this.inv||!1)!==a&&(this.inv=a,this.callTextareas(function(b){b.setInvs(a)}),this.fire("poInvs",
|
170 |
-
[a]));return this};w.getInvs=function(){return this.inv||!1};w.callTextareas=function(a){var b=this.targetCell;b&&b.eachTextarea(a);(b=this.contextCell)&&b.eachTextarea(a);(b=this.sourceCell)&&b.eachTextarea(a);return this};w=null;return f}({},
|
171 |
-
d=a[0],e=a[1],a=e.splitx("po-trans","po-comment"),f=a[0],h=a[1].header("Loading.."),a=f.splity("po-source","po-target"),f=a[0].header("Loading.."),a=a[1].header("Loading..");b.distribute([0.34]);e.distribute([0.8]);c.setListCell(d);c.setSourceCell(f);c.setTargetCell(a);c.commentCell=h;c.editable.source=!1;return c};c=
|
172 |
target:1}};c.getListEntry=function(b){if(!b)return["",""];var c=this.cellText,a=[c(b.id||b.source()||""),c(b.translation()||"")];if(b=b.context())a[0]+=" [ "+c(b)+" ]";return a};c.stats=function(){var b=this.po.length,c=0,a=0,d=0;this.po.each(function(b,f){f.translation()?f.fuzzy()?d++:c++:a++});return{t:b,p:String(c?Math.round(100*(c/b)):0)+"%",f:d,u:a}};c.unlock=function(){this._unlocked||(this._unlocked=this.targetLocale,delete this.targetLocale,this.po&&this.po.unlock(),this.editable={source:!0,
|
173 |
context:!0,target:!1},this.contextCell=this.targetCell,delete this.targetCell,this.fire("poLock",[!1]),this.active&&this.loadMessage(this.active))};c.lock=function(){var b;this._unlocked&&(b=this.targetLocale=this._unlocked,delete this._unlocked,this.po&&this.po.lock(b),this.editable={source:!1,context:!1,target:!0},this.targetCell=this.contextCell,delete this.contextCell,this.fire("poLock",[!0,b]),this.active&&this.loadMessage(this.active))};c.locked=function(){return!this._unlocked};return f}({},
|
174 |
-
|
175 |
-
b.setInvs(!b.getInvs())}};f.init=function(a,d){function e(d){if(d.isDefaultPrevented()||!d.metaKey&&!d.ctrlKey)return!0;var c=d.which;if(!f[c])return!0;var e=g[c];if(!e)throw Error("command undefined #"+c);if(d.altKey||d.shiftKey&&!b[c]||!1===e(d,a))return!0;d.stopPropagation();d.preventDefault();return!1}var f={};h(d||c).on("keydown",e);return{add:function(a,b){g[
|
176 |
-
e);a=d=f=null}}};return f}({},
|
177 |
-
null==b&&(b=79);0!==b&&(a=
|
178 |
-
return"#: "+b}}};return f}({},
|
179 |
function(b){this.rows.each(b);return this};c.indexOf=function(b){"object"!==typeof b&&(b=this.get(b));if(!b)return-1;null==b.idx&&(b.idx=this.rows.indexOf(b.hash()));return b.idx};c.get=function(b){return this.rows&&this.rows.get(b)};c.del=function(b){b=this.indexOf(b);if(-1!==b){var c=this.rows.cut(b,1);if(c&&c.length)return this.length=this.rows.length,this.rows.each(function(a,b,c){b.idx=c}),b}};c.reIndex=function(b,c){var a=this.indexOf(b),d=b.hash(),e=this.rows.indexOf(d);return e===a?a:-1!==
|
180 |
-
e?(c=(c||0)+1,b.source("Error, duplicate "+String(c)+": "+b.source()),this.reIndex(b,c)):this.rows.key(a,d)};c=null;return f}({},
|
181 |
b)return c[b]||0;for(b=c.length;0!==b--;)if(c[b])return!0;return!1};c.flags=function(){for(var b,c={},a=[],d=this.flg||[],e=d.length;0!==e--;)b=d[e],c[b]||(c[b]=!0,a.push(b));return a};c.flaggedAs=function(b,c){var a=this.flg||[];if(null!=c)return b===a[c]||0;for(var d=a.length;0!==d--;)if(a[d]===b)return!0;return!1};c.fuzzy=function(b,c){var a=this.flaggedAs(4,b);null!=c&&this.flag(c?4:0,b);return a};c.source=function(b,c){if(null==b)return this.src[c||0]||"";this.src[c||0]=b;return this};c.plural=
|
182 |
function(b,c){if(null==b)return this.src[c||1]||"";this.src[c||1]=b||"";return this};c.each=function(b){for(var c=-1,a=this.src,d=this.msg,e=Math.max(a.length,d.length);++c<e;)b(c,a[c],d[c]);return this};c.pluralized=function(){return 1<this.src.length||1<this.msg.length};c.translate=function(b,c){this.msg[c||0]=b||"";return this};c.untranslate=function(b){null!=b&&(this.msg[b]="");for(b=0;b<this.msg.length;b++)this.msg[b]="";return this};c.translation=function(b){return this.msg[b||0]||""};c.translated=
|
183 |
function(b){if(null!=b)return!!this.translation(b);var c=this.msg.length;for(b=0;b<c;b++)if(!this.msg[b])return!1;return!0};c.comment=function(b){if(null==b)return this.cmt;this.cmt=b||"";return this};c.notes=function(b){if(null==b)return this.xcmt;this.xcmt=b||"";return this};c.refs=function(b){if(null==b)return this.ref;this.ref=b||"";return this};c.format=function(b){if(null==b)return this.fmt;this.fmt=b;return this};c.context=function(b){if(null==b)return this.ctx||"";this.ctx=b||"";return this};
|
184 |
c.toString=c.toText=function(){return this.src.concat(this.msg,[this.id,this.ctx]).join(" ")};c.weight=function(){var b=0;this.translation()||(b+=2);this.fuzzy()&&(b+=1);return b};c.equals=function(b){return this===b||this.hash()===b.hash()};c.hash=function(){return this.id};c.normalize=function(){for(var b=this.msg.length;0!==b--;)this.msg[b]=this.src[b]||""};c.disabled=function(b){return!!(this.lck||[])[b||0]};c.disable=function(b){(this.lck||(this.lck=[]))[b||0]=!0;return this};c.saved=function(b){var c=
|
185 |
-
this.drt;if(!c)return!0;if(null!=b)return!c[b];for(b=c.length;0!==b--;)if(c[b])return!1;return!0};c.unsave=function(b){(this.drt||(this.drt=[]))[b||0]=!0;return this};c.save=function(b){var c=this.drt;null==b?this.drt=null:c[b]=!1;return this};c.is=function(b){return b&&(b===this||b.idx===this.idx)};c.isHTML=function(b){if(null==b)return this.htm||!1;this.htm=b};c=null;return f}({},
|
186 |
-
"POT-Creation-Date":a||"","PO-Revision-Date":a||"","Last-Translator":"","Language-Team":"",Language:"","Plural-Forms":"","MIME-Version":"1.0","Content-Type":"text/plain; charset=UTF-8","Content-Transfer-Encoding":"8bit"}}function b(a,b){var
|
187 |
-
c=
|
188 |
-
a){for(b in a)
|
189 |
-
c.add=function(a,b){a instanceof d||(a=new d(a));b&&a.context(b);var c=a.hash();if(this.rows.get(c))throw Error("Duplicate message at index "+this.indexOf(a));a.idx=this.rows.add(c,a);this.length=this.rows.length;return a};c.load=function(a){for(var b=-1,c,f,g,h,
|
190 |
-
|
191 |
-
for(i=0;3>i;i++)for(b=c[i],a=-1;++a<b.length;)try{this.add(b[a])}catch(d){}return this};c.merge=function(a){var b,c=a.header("POT-Creation-Date"),d=this.rows,f=[],h=[],
|
192 |
-
b=[],c=[],f=this.headers(),g=!this.loc,h=
|
193 |
"format.js").create(void 0))};c.cat=function(a,b){var c,d=[],f;(f=this.cmt)&&d.push(a.prefix(f,"# "));(f=this.xcmt)&&d.push(a.prefix(f,"#. "));c=this.ref;if(f=this._id)c+=(c?" ":"")+"loco:"+f;c&&/\S/.test(c)&&d.push(a.refs(c));!b&&this.fuzzy()&&d.push("#, fuzzy");(f=this.fmt)?d.push("#, "+f+"-format"):null!=f&&d.push("#, no-c-format");(f=this.ctx)&&d.push(a.pair("msgctxt",f));d.push(a.pair("msgid",this.src[0]));if(null==this.src[1])d.push(a.pair("msgstr",b?"":this.msg[0]));else for(c=-1,d.push(a.pair("msgid_plural",
|
194 |
-
this.src[1]));++c<this.msg.length;)d.push(a.pair("msgstr["+c+"]",b?"":this.msg[c]));return d.join("\n")};c.compare=function(a,b){var c=this.weight(),d=a.weight();if(c>d)return 1;if(c<d)return-1;if(b){c=this.hash().toLowerCase();d=a.hash().toLowerCase();if(c<d)return 1;if(c>d)return-1}return 0};c=c=null;return f}({},
|
195 |
-
!0);
|
196 |
-
else if(c=c.prompt){var g;D||(h(
|
197 |
-
function
|
198 |
-
C=a.path;w=a.auth;m(a);return this},listen:function(a){
|
199 |
-
function(a){function b(a){var c=-1,d=a.length;for(h("tr",
|
200 |
-
|
201 |
-
Number(g)}k[e]=g}d[a]=k;
|
202 |
-
F.notices=
|
203 |
-
"fsconn.js");h("#loco.wrap table.wp-list-table").each(function(f,c){
|
1 |
+
(function(q,y,h,T){var n=function(){var f={};return{register:function(c,h){f[c]=h},require:function(c,h){var l=f[c];if(!l)throw Error('CommonJS error: failed to require("'+h+'")');return l}}}();n.register("$1",function(f,c,h){function l(b){var g=typeof b;if("string"===g)if(/[^ <>!=()%^&|?:n0-9]/.test(b))console.error("Invalid plural: "+b);else return new Function("n","return "+b);"function"!==g&&(b=function(a){return 1!=a});return b}f.init=function(b){function g(d,e,k){return(d=a[d])&&d[k]?d[k]:e||
|
2 |
+
""}b=l(b);var a={};return{_:function(a){return g(a,a,0)},_x:function(a,e){return g(e+"\u0004"+a,a,0)},_n:function(a,e,k){k=Number(b(k));isNaN(k)&&(k=0);return g(a,i?e:a,k)},load:function(d){a=d||{};return this},pluraleq:function(a){b=l(a);return this}}};return f}({},q,y));n.register("$2",function(f,c,h){Array.prototype.indexOf||(Array.prototype.indexOf=function(c){if(null==this)throw new TypeError;var b,g=Object(this),a=g.length>>>0;if(0===a)return-1;b=0;1<arguments.length&&(b=Number(arguments[1]),
|
3 |
+
b!=b?b=0:0!=b&&Infinity!=b&&-Infinity!=b&&(b=(0<b||-1)*Math.floor(Math.abs(b))));if(b>=a)return-1;for(b=0<=b?b:Math.max(a-Math.abs(b),0);b<a;b++)if(b in g&&g[b]===c)return b;return-1});return f}({},q,y));n.register("$3",function(f,c,h){f.trim=function(c,b){for(b||(b=" \n");c&&-1!==b.indexOf(c.substr(0,1));)c=c.substr(1);for(;c&&-1!==b.indexOf(c.substr(-1));)c=c.substr(0,c.length-1);return c};f.sprintf=function(c){var b=0,g,a=[].slice.call(arguments,1);return c.replace(/%(s|u|%)/g,function(d,e){if("%"===
|
4 |
+
e)return"%";g=a[b++];return String(g)||""})};return f}({},q,y));n.register("$34",function(f,c,h){function l(d){a||c._gat&&(a=_gat._createTracker(b,"loco"));if(a){var e=d.shift();a[e].apply(a,d)}else g&&g.push(d);return f}var b,g,a;f._init=function(a){if(b=a.code){g=c._gaq||(c._gaq=[]);g.push(["_setAccount",b]);g.push(["_trackPageview"]);g.push(["_setDomainName",a.host]);a=h.createElement("script");a.type="text/javascript";a.async=!0;a.src=("https:"==h.location.protocol?"https://ssl":"http://www")+
|
5 |
+
".google-analytics.com/ga.js";var e=h.getElementsByTagName("script")[0];e.parentNode.insertBefore(a,e)}return f};f.event=function(a,e,k,b){return l(["_trackEvent",a||"",e||"",k||"",b||0])};f.page=function(a,e){return l(["_trackPageview",{page:a||location.pathname+location.hash,title:e||h.title}])};return f}({},q,y));n.register("$35",function(f,c,h){function l(a,d){if(b)b[a](d);else c.ga&&ga(a,d);return f}var b,g;f._init=function(a){a.code&&(function(a,e,k,b,g,m,p){a.GoogleAnalyticsObject=g;a[g]=a[g]||
|
6 |
+
function(){(a[g].q=a[g].q||[]).push(arguments)};a[g].l=1*new Date;m=e.createElement(k);p=e.getElementsByTagName(k)[0];m.async=1;m.src=b;p.parentNode.insertBefore(m,p)}(c,h,"script","//www.google-analytics.com/analytics.js","ga"),ga("create",a.code,{alwaysSendReferrer:!0,userId:a.user}),a.custom&&l("set",a.custom),f.page(),ga(function(a){b=a}));return f};f.event=function(a,d,e,k){return l("send",{hitType:"event",eventCategory:a||"",eventAction:d||"",eventLabel:e||"",eventValue:Number(k||0)})};f.page=
|
7 |
+
function(a,d){var e={hitType:"pageview",page:a||location.pathname+location.hash,title:d||h.title};e.location=location.protocol+"//"+location.hostname+e.page;g&&l("set",{referrer:g});g=e.location;return l("send",e)};f.reset=function(){g=location.href;l("set",{page:location.pathname+location.hash,title:h.title,location:g});return f};return f}({},q,y));n.register("$28",function(f,c,I){function l(a,e){h(a).click(function(a){b&&b.event(e,"click",this.getAttribute("href")||"");return!0});a=null;return f}
|
8 |
+
var b,g=location.hostname,a="/help"===location.pathname.substr(0,5);f.init=function(a){!b&&a&&(g=a.host||(a.host=g),b=a.legacy?n.require("$34","legacy.js"):n.require("$35","universal.js"),b._init(a));return f};f.link=function(d){for(var e=d.getAttribute("href");e&&"#"!==e;){if(0===e.indexOf("#"))return l(d,"anchor");if("/help"===e.substr(0,5)&&!a)d.setAttribute("target","_blank");else if(0===e.indexOf("http")||0===e.indexOf("//")){if(-1!==e.indexOf(g)&&/^(https?:)*\/\/([^\/]+)/.exec(e)&&g===RegExp.$2)break;
|
9 |
+
d.setAttribute("target","_blank");l(d,"external")}break}return f};f.page=function(){b&&b.page.apply(b,arguments);return f};f.event=function(){b&&b.event.apply(b,arguments);return f};f.reset=function(){b&&b.reset&&b.reset();return f};return f}({},q,y));n.register("$31",function(f,c,n){function l(a,d,e,k,b){function s(){c&&clearTimeout(c);r&&r.fadeOut(400,function(){h(this).remove();r=null});return!1}function m(){p();-1!==k&&(c=setTimeout(s,k||2E3));r.off("mouseleave").on("mouseenter",p)}function p(){c&&
|
10 |
+
clearTimeout(c);c=null;r.off("mouseenter").on("mouseleave",m)}var c;g||(g=n.createElement("div"),g.id="growls",n.body.appendChild(g));var r=h('<div class="growl growl-'+e+'"><div><a class="close" href="#"><span>X</span></a><span class="badge"></span><p class="message"></p><small class="caption"></small></div></div>');r.find("p").text(a||"Empty message");d?r.find("small").text(d):r.find("small").remove();if(b.length){b.push({label:"Cancel",callback:s,css:"cancel"});var f,t=h('<form action="#" class="dialog"></form>');
|
11 |
+
d=function(a,d){f=h('<input type="button" value="'+d.label+'" class="butt '+(d.css||"")+'" />');f.click(function(a){"function"===typeof d.callback&&d.callback(a,{close:s})});t.append(f);return f};for(a=0;a<b.length;a++)d(a,b[a]);r.append(t)}h(g).prepend(r.hide().fadeIn(400));r.find("a").click(s);m()}var b,g;f.init=function(){if(!b)return b=c.alert,c.alert=function(a){a=String(a).split("\n");var d=a[1]&&a.slice(1).join("\n");f.alert(a[0],d)},f};f.debug=function(a){b(a);return f};f.alert=function(a,
|
12 |
+
d,e,k,g){try{return l(a,d||"",e||"alert",k||4E3,g||[]),!0}catch(s){return a+="\n\n--\n"+(s.message||s),b.call(c,a),!1}};f.success=function(a,d,e){return f.alert(a,d,"success",e||2E3)};f.dialog=function(a,d,e,b){return f.alert(a,d,b||"alert",-1,e)};f.login=function(a,d,e,b){f.dialog(d||"You're not logged in",e||"Please log in to continue",[{label:b||"Log in",callback:function(d,e){location.assign(a||"/session/auth/login?r="+encodeURIComponent(location.href))}}])};return f}({},q,y));n.register("$36",
|
13 |
+
function(f,c,n){function l(a){return 27===a.keyCode&&r&&B?(H(),a.preventDefault(),!1):!0}function b(a){if(r){a=c.innerWidth;var d=c.innerHeight;a!==C&&(C=a,G(w));d!==v&&(v=d,A&&g())}return!0}function g(){var a=e.outerHeight(!0)-A.clientHeight;A.style.maxHeight=String(v-a)+"px"}function a(a){a?(s.show(),k.addClass("has-title")):(s.hide(),k.removeClass("has-title"))}var d,e,k,u,s,m,p,A,r=!1,B=!1,t=!1,E,z,C,w,v,D=f.init=function(){if(!d){d=h('<div id="overlay"></div>');e=h('<div class="overlay-frame"></div>');
|
14 |
+
k=h('<div class="overlay-container"></div>');s=h('<div class="overlay-title"><span class="icon"></span><span class="title">Untitled</span></div>');m=h("<nav></nav>");p=h('<a class="overlay-close" href="#"><span>x</span></a>');u=h('<div class="overlay-bg"></div>');d.append(e.append(k)).append(u).prependTo(n.body);h(n).on("keydown",l);h(c).resize(b);C=c.innerWidth;v=c.innerHeight;z=k.outerWidth(!0)-k.width()+(e.innerWidth()-e.width());E=parseInt(k.css("width"));if(!E||isNaN(E))E=k.width();m.hide().prependTo(e);
|
15 |
+
s.append(p.hide()).hide().prependTo(e);d.hide()}return d},G=f.width=function(a){var d=D();if(null===a)e.css("width",""),k.css("width","");else{a=a||E||640;x=a+z;w=a;var b=C;x>b?(x=b,a=x-z,d.addClass("spill")):d.removeClass("spill");e.css("width",x+"px");k.css("width",a+"px")}return f};f.autoSize=function(){var a=D(),d=E||0;k.children().each(function(a,e){d=Math.max(d,h(e).outerWidth(!0))});G(d);if(A=a.find("div.overlay-scroll")[0])v=c.innerHeight,g();return f};f.css=function(a){D().attr("class",a);
|
16 |
+
return f};f.html=function(a){D();c.innerShiv&&(a=innerShiv(a,!1));return k.html(a)};f.append=function(a){D();a instanceof jQuery||(a=h(a));k.append(a);return f};var H=f.close=function(a){if(r){var e=function(){D().hide();h(n.body).removeClass("has-overlay");r=!1;k.html("");r=null;d.trigger("overlayClosed",[f])};null==a&&(a=300);d.trigger("overlayClosing",[f]);a?d.fadeOut(a,e):e()}return f};f.title=function(d,e){D();var b="",k=s.find("span");e&&/^lang lang-(\w+)/.exec(e)&&(b=RegExp.$1);k.eq(0).attr("class",
|
17 |
+
e||"icon").attr("lang",b);t=d||"";k.eq(1).text(t);null!=d?a(!0):B||a(!1);return f};f.enableClose=function(){D();B=!0;p.off("click").on("click",function(a){H();return!1});a(!0);p.show();return f};f.disableClose=function(){D();B=!1;p.hide();r&&t||a(!1);return f};f.enableNav=function(a){m.append(a);m.show();return f};f.disableNav=function(){m.html("").hide();return f};f.open=function(){D();k.html("");G(E);d.attr("class","");h(n.body).addClass("has-overlay");D().show();r=!0;f.title(null);B&&a(!0);d.trigger("overlayOpened",
|
18 |
+
[f]);return f};f.listen=function(a){D().on("overlayClosed",a);return f};f.unlisten=function(a){D().off("overlayClosed",a);return f};return f}({},q,y));n.register("$11",function(f,c,n){function l(a,d){this.$element=h(a);this.options=d;this.enabled=!0;this.fixTitle()}f.init=function(a,d){var e={fade:!0,offset:5,delayIn:b,delayOut:g,anchor:a.attr("data-anchor"),gravity:a.attr("data-gravity")||"s"};d&&(e=h.extend({},e,d));a.tipsy(e)};f.delays=function(a,d){b=a||150;g=d||100};f.kill=function(){h("div.tipsy").remove()};
|
19 |
+
f.text=function(a,d){d.data("tipsy").setTitle(a)};var b,g;f.delays();h(n.body).on("overlayOpened overlayClosing",function(a){f.kill();return!0});l.prototype={show:function(){var a=this.getTitle();if(a&&this.enabled){var d=this.tip();d.find(".tipsy-inner")[this.options.html?"html":"text"](a);d[0].className="tipsy";d.remove().css({top:0,left:0}).prependTo(n.body);var a=(a=this.options.anchor)?this.$element.find(a):this.$element,a=h.extend({},a.offset(),{width:a[0].offsetWidth,height:a[0].offsetHeight}),
|
20 |
e=d[0].offsetWidth,b=d[0].offsetHeight,g="function"==typeof this.options.gravity?this.options.gravity.call(this.$element[0]):this.options.gravity,c;switch(g.charAt(0)){case "n":c={top:a.top+a.height+this.options.offset,left:a.left+a.width/2-e/2};break;case "s":c={top:a.top-b-this.options.offset,left:a.left+a.width/2-e/2};break;case "e":c={top:a.top+a.height/2-b/2,left:a.left-e-this.options.offset};break;case "w":c={top:a.top+a.height/2-b/2,left:a.left+a.width+this.options.offset}}2==g.length&&("w"==
|
21 |
g.charAt(1)?c.left=a.left+a.width/2-15:c.left=a.left+a.width/2-e+15);d.css(c).addClass("tipsy-"+g);d.find(".tipsy-arrow")[0].className="tipsy-arrow tipsy-arrow-"+g.charAt(0);this.options.className&&d.addClass("function"==typeof this.options.className?this.options.className.call(this.$element[0]):this.options.className);d.addClass("in")}},hide:function(){this.tip().remove()},fixTitle:function(){var a=this.$element,d=a.attr("title")||"";(d||"string"!==typeof a.attr("original-title"))&&a.attr("original-title",
|
22 |
d).removeAttr("title")},getTitle:function(){var a,d=this.$element,e=this.options;this.fixTitle();"string"==typeof e.title?a=d.attr("title"==e.title?"original-title":e.title):"function"==typeof e.title&&(a=e.title.call(d[0]));return(a=(""+a).replace(/(^\s*|\s*$)/,""))||e.fallback},setTitle:function(a){var d=this.$element;d.attr("default-title")||d.attr("default-title",this.getTitle());null==a&&(a=d.attr("default-title")||this.getTitle());d.attr("original-title",a);if(this.$tip)this.$tip.find(".tipsy-inner")[this.options.html?
|
23 |
"html":"text"](a)},tip:function(){this.$tip||(this.$tip=h('<div class="tipsy"></div>').html('<div class="tipsy-arrow"></div><div class="tipsy-inner"></div>'),this.$tip.data("tipsy-pointee",this.$element[0]));return this.$tip},validate:function(){this.$element[0].parentNode||(this.hide(),this.options=this.$element=null)},enable:function(){this.enabled=!0},disable:function(){this.hide();this.enabled=!1},toggleEnabled:function(){this.enabled=!this.enabled}};h.fn.tipsy=function(a){function d(d){var e=
|
24 |
+
h.data(d,"tipsy");e||(e=new l(d,h.fn.tipsy.elementOptions(d,a)),h.data(d,"tipsy",e));return e}function e(){var e=d(this),b=a.delayIn;e.hoverState="in";0==b?e.show():(e.fixTitle(),setTimeout(function(){"in"==e.hoverState&&e.show()},b))}function b(){var e=d(this),k=a.delayOut;e.hoverState="out";0==k?e.hide():(e.tip().removeClass("in"),setTimeout(function(){"out"==e.hoverState&&e.hide()},k))}a=h.extend({},h.fn.tipsy.defaults,a);a.live||this.each(function(){d(this)});if("manual"!=a.trigger){var g=a.live?
|
25 |
+
"live":"bind",c="hover"==a.trigger?"mouseleave":"blur";this[g]("hover"==a.trigger?"mouseenter":"focus",e)[g](c,b)}return this};h.fn.tipsy.defaults={className:null,delayIn:0,delayOut:0,fade:!1,fallback:"",gravity:"n",html:!1,live:!1,offset:0,opacity:0.8,title:"title",trigger:"hover",anchor:null};h.fn.tipsy.revalidate=function(){h(".tipsy").each(function(){var a=h.data(this,"tipsy-pointee"),d;if(!(d=!a)){a:{for(;a=a.parentNode;)if(a==n){a=!0;break a}a=!1}d=!a}d&&h(this).remove()})};h.fn.tipsy.elementOptions=
|
26 |
+
function(a,d){return h.metadata?h.extend({},d,h(a).metadata()):d};h.fn.tipsy.autoNS=function(){return h(this).offset().top>h(n).scrollTop()+h(c).height()/2?"s":"n"};h.fn.tipsy.autoWE=function(){return h(this).offset().left>h(n).scrollLeft()+h(c).width()/2?"e":"w"};h.fn.tipsy.autoBounds=function(a,d){return function(){var e=d[0],b=1<d.length?d[1]:!1,g=h(n).scrollTop()+a,s=h(n).scrollLeft()+a,m=h(this);m.offset().top<g&&(e="n");m.offset().left<s&&(b="w");h(c).width()+h(n).scrollLeft()-m.offset().left<
|
27 |
+
a&&(b="e");h(c).height()+h(n).scrollTop()-m.offset().top<a&&(e="s");return e+(b?b:"")}};return f}({},q,y));n.register("$21",function(f,c,I){var l={401:"You've been logged out",422:"Invalid data sent to server",404:"Not Found",500:"Server Error",502:"Bad Gateway",503:"Service unavailable",504:"Gateway timeout"};f.getErrors=function(){return l};f.jsonLink=function(b){if(!b)return"";b=b.split("?");b[0]=b[0].replace(/(\.[a-z0-9]{1,4})?$/i,".json");return b.join("?")};f.errorData=function(b,g,a){var d,
|
28 |
+
e;a=b.responseText;g=b.status;if(!a&&0===g)return null;try{d=h.parseJSON(a)||{}}catch(k){d={},e=l[b.status]||k.message||k}d.error=e||d.error||d.statusText||b.statusText||l[g]||"Unknown Error";return d};f.ajax=function(b,g,a,d){function e(){a&&a()}function k(a){a.alert&&alert(a.alert);var b=a.success;b&&n.require("$31","growl.js").success.apply(this,b.push?b:[b]);b=d||h(I.body);b.trigger("locoAjaxSuccess",[a]);var k=a.events;if(k&&k.length)for(var g,r=n.require("$28","ga.js");g=k.shift();)b.trigger(g,
|
29 |
+
[a]),r.event("ajax",g);if(b=a.download)c.location.assign(b);else if(b=a.redirect)if(0===b.indexOf("/modal/"))a.modal={url:b};else return c.location.assign(b),!1;else if(a.reload)return c.location.reload(),!1;(b=a.modal)&&n.require("$29","modal.js").replace(b);e();return!0}function u(a,d,b){if("abort"!==d){var u=a.status,r;if(401===u)n.require("$31","growl.js").login(),g&&!1===g(null,l[u],u,a)&&e();else{if("parsererror"===d)c.console&&console.error&&console.error(u,a.responseText),r=404===u?"Ajax service not found":
|
30 |
+
/^\s+Fatal error/.test(a.responseText)?"Fatal server error from Ajax request":"Bad Ajax response";else{var h=f.errorData(a,d,b);h&&h.error&&(r=h.error)}"function"===typeof g&&!1===g(null,r,u,a)?e():h&&h.data&&!k(h.data)||(alert(r||"Unknown Ajax error"),e())}}}(b.headers||(b.headers={}))["X-Loco-Csrf"]=c.loco&&F.csrf||"";b.error=u;b.success=function(a,d,b){if(!a||"object"!==typeof a)return u(b,"unknown");(a.status||a.error)&&alert(a.error||a.statusText||b.statusText||l[a.status]||"Unknown Error");
|
31 |
+
"function"===typeof g&&!1===g(a&&a.data?a.data:a,null,d,b)?e():a&&a.data?k(a.data):e()};-1!==b.url.indexOf(".json")&&(b.dataType="json");return h.ajax(b)};return f}({},q,y));n.register("$29",function(f,c,I){function l(a){a.stopPropagation();a.preventDefault();return!1}function b(){k||(k=n.require("$36","overlay.js"),k.listen(d));return k}function g(){var a=m.length-1,d=m[a],e=h('<a class="has-icon icon-back" data-gravity="w">Back</a>').attr("href",d[0]).attr("title",d[1]).click(function(e){if(m[a]===
|
32 |
+
d&&B())return l(e)});k.enableNav(e);n.require("$11","tooltip.js").init(e)}function a(a,d){b().autoSize();var e=k.init();n.require("$17","html.js").init(e);m.length&&g();e.find("[data-script]").each(function(a,e){e=h(e);for(var b=-1,k,g=e.attr("data-script").split(" ");++b<g.length;)k=g[b],s[k]?s[k](e,d||{}):alert("Unknown script "+k)});e.trigger("locoModalLoaded",[k,a||"",d||{}]);var c,p=e.find("form")[0],v;if(p)a:for(e=0;e<p.elements.length;e++)switch(c=p.elements[e],c.type){case "text":case "email":case "textarea":v=
|
33 |
+
Number(c.getAttribute("tabindex"));if(isNaN(v)||100>v)continue a;h(c).focus();break a}}function d(){p=null;m=[];return!0}function e(a){var d=h(a.currentTarget),e=d.attr("data-modal");if("back"===e){if(B())return l(a);e="close"}if("close"===e){r();var b=d.attr("href");if(b&&-1!==b.indexOf("#!"))return!0}else{var k="submit"===a.type,g=d.attr("title")||d.attr("data-title"),b=d.attr("href")||d.attr("action"),c=k?d.serialize():"",d=k?d.attr("method"):"get";e||(e=b.split("/").slice(1,4).join("-"));A(b,
|
34 |
+
g,d,c,"modal "+e)}return l(a)}var k,u=n.require("$28","ga.js"),s={},m=[],p,A=f.load=function(d,e,g,c,r){var v=p;p=[].slice.call(arguments);v&&d!==v[0]&&(m.push(v),d+=-1===d.indexOf("?")?"?":"&",d+="r="+encodeURIComponent(v[0]));b().open().title("Loading ..").disableClose().disableNav().css("modal").html('<div class="loading"></div>');r&&k.width(null).css(r).autoSize();var v=d.split("#"),s=v[1];s&&(d=v[0]);var v=n.require("$21","http.js"),B={type:g||"get",data:c||"",url:v.jsonLink(d)};v.ajax(B,function(b,
|
35 |
+
v,f){var B=b&&b.html;if(!B)return b&&b.redirect?(p=m.pop()||null,A(b.redirect,e,g,c,r)):(b=h('<h3 class="error"></h3>').text(v||"Unknown error"),k.enableClose().title("Error "+f||"?").html("").append(b)),!1;e=b.title||e||"Untitled";p&&(p[1]=e);k.enableClose().title(e,b.icon).html(B);f=b.js||{};s&&(f["#"]=s);a(d,f);u.page(d,e);k.init().one("overlayClosed",function(){u.reset()});return!0});return f},r=f.close=function(){b().close();return f},B=f.back=function(){if(previous=m.pop())return p=m[m.length-
|
36 |
+
2],A.apply(null,previous),!0};f.reload=function(){p&&A.apply(null,p)};f.initLink=function(a){a.click(e)};f.initForm=function(a){h(a).submit(e)};f.replace=function(d){b();var e=d&&d.html,g=d&&d.url,c=d&&d.title,p=d&&d.action;if(g)d=d&&d.css||g.split("/").slice(1,4).join("-"),A(g,c,"","",d);else if(e)k.open().html(e),c&&k.enableClose().title(c),a("",d&&d.js);else if("function"===typeof f[p])f[p]()};f.find=function(a){return b().init().find(a)};f.script=function(a,d){if(d){if("function"!==typeof d.run)throw Error(a+
|
37 |
+
" macro has no run function");s[a]=d.run;return f}return s[a]};return f}({},q,y));n.register("$8",function(f,c,n){f.listen=function(f,b){function g(){A[k?"show":"hide"]()}function a(a){p&&f.setAttribute("size",a.length||1);k=a;g();return a}function d(){u=null;b(k)}function e(){var e=f.value;m&&e===m&&(e="");e!==k&&(u&&clearTimeout(u),a(e),s?u=setTimeout(d,s):d())}var k,u;f=f instanceof jQuery?f[0]:f;var s=150,m=c.attachEvent&&f.getAttribute("placeholder"),p=1===Number(f.size),A=h('<a href="#clear" tabindex="-1" class="icon clear"><span>clear</span></a>').click(function(a){f.value=
|
38 |
+
"";e();return!1});a(f.value);h(f).on("input blur focus",function(){e();return!0}).after(A);g();return{delay:function(a){s=a},ping:function(b){b?(u&&clearTimeout(u),b=f.value,m&&b===m&&(b=""),a(b),d(),b=void 0):b=e();return b},val:function(d){if(null==d)return k;u&&clearTimeout(u);f.value=a(d);g()},el:function(){return f},blur:function(a){return h(f).on("blur",a)}}};return f}({},q,y));n.register("$20",{"\u00e1":"a","\u00e0":"a","\u0103":"a","\u1eaf":"a","\u1eb1":"a","\u1eb5":"a","\u1eb3":"a","\u00e2":"a",
|
39 |
"\u1ea5":"a","\u1ea7":"a","\u1eab":"a","\u1ea9":"a","\u01ce":"a","\u00e5":"a","\u01fb":"a","\u00e4":"a","\u01df":"a","\u00e3":"a","\u0227":"a","\u01e1":"a","\u0105":"a","\u0101":"a","\u1ea3":"a","\u0201":"a","\u0203":"a","\u1ea1":"a","\u1eb7":"a","\u1ead":"a","\u1e01":"a","\u01fd":"\u00e6","\u01e3":"\u00e6","\u1e03":"b","\u1e05":"b","\u1e07":"b","\u0107":"c","\u0109":"c","\u010d":"c","\u010b":"c","\u00e7":"c","\u1e09":"c","\u010f":"d","\u1e0b":"d","\u1e11":"d","\u0111":"d","\u1e0d":"d","\u1e13":"d",
|
40 |
"\u1e0f":"d","\u00f0":"d","\ua77a":"d","\u01c6":"\u01f3","\u00e9":"e","\u00e8":"e","\u0115":"e","\u00ea":"e","\u1ebf":"e","\u1ec1":"e","\u1ec5":"e","\u1ec3":"e","\u011b":"e","\u00eb":"e","\u1ebd":"e","\u0117":"e","\u0229":"e","\u1e1d":"e","\u0119":"e","\u0113":"e","\u1e17":"e","\u1e15":"e","\u1ebb":"e","\u0205":"e","\u0207":"e","\u1eb9":"e","\u1ec7":"e","\u1e19":"e","\u1e1b":"e","\u1e1f":"f","\ua77c":"f","\u01f5":"g","\u011f":"g","\u011d":"g","\u01e7":"g","\u0121":"g","\u0123":"g","\u1e21":"g","\ua7a1":"g",
|
41 |
"\u1d79":"g","\u0125":"h","\u021f":"h","\u1e27":"h","\u1e23":"h","\u1e29":"h","\u0127":"h","\u210f":"h","\u1e25":"h","\u1e2b":"h","\u1e96":"h","\u00ed":"i","\u00ec":"i","\u012d":"i","\u00ee":"i","\u01d0":"i","\u00ef":"i","\u1e2f":"i","\u0129":"i","\u012f":"i","\u012b":"i","\u1ec9":"i","\u0209":"i","\u020b":"i","\u1ecb":"i","\u1e2d":"i","\u0135":"j","\u01f0":"j","\u1e31":"k","\u01e9":"k","\u0137":"k","\ua7a3":"k","\u1e33":"k","\u1e35":"k","\u013a":"l","\u013e":"l","\u013c":"l","\u0142":"l","\u1e37":"l",
|
47 |
"\u1f72":"\u03b5","\u1f20":"\u03b7","\u1f24":"\u03b7","\u1f94":"\u03b7","\u1f22":"\u03b7","\u1f92":"\u03b7","\u1f26":"\u03b7","\u1f96":"\u03b7","\u1f90":"\u03b7","\u1f21":"\u03b7","\u1f25":"\u03b7","\u1f95":"\u03b7","\u1f23":"\u03b7","\u1f93":"\u03b7","\u1f27":"\u03b7","\u1f97":"\u03b7","\u1f91":"\u03b7","\u03ae":"\u03b7","\u1f75":"\u03b7","\u1fc4":"\u03b7","\u1f74":"\u03b7","\u1fc2":"\u03b7","\u1fc6":"\u03b7","\u1fc7":"\u03b7","\u1fc3":"\u03b7","\u1f30":"\u03b9","\u1f34":"\u03b9","\u1f32":"\u03b9",
|
48 |
"\u1f36":"\u03b9","\u1f31":"\u03b9","\u1f35":"\u03b9","\u1f33":"\u03b9","\u1f37":"\u03b9","\u03af":"\u03b9","\u1f77":"\u03b9","\u1f76":"\u03b9","\u1fd0":"\u03b9","\u1fd6":"\u03b9","\u03ca":"\u03b9","\u0390":"\u03b9","\u1fd3":"\u03b9","\u1fd2":"\u03b9","\u1fd7":"\u03b9","\u1fd1":"\u03b9","\u1f40":"\u03bf","\u1f44":"\u03bf","\u1f42":"\u03bf","\u1f41":"\u03bf","\u1f45":"\u03bf","\u1f43":"\u03bf","\u03cc":"\u03bf","\u1f79":"\u03bf","\u1f78":"\u03bf","\u1fe4":"\u03c1","\u1fe5":"\u03c1","\u1f50":"\u03c5",
|
49 |
"\u1f54":"\u03c5","\u1f52":"\u03c5","\u1f56":"\u03c5","\u1f51":"\u03c5","\u1f55":"\u03c5","\u1f53":"\u03c5","\u1f57":"\u03c5","\u03cd":"\u03c5","\u1f7b":"\u03c5","\u1f7a":"\u03c5","\u1fe0":"\u03c5","\u1fe6":"\u03c5","\u03cb":"\u03c5","\u03b0":"\u03c5","\u1fe3":"\u03c5","\u1fe2":"\u03c5","\u1fe7":"\u03c5","\u1fe1":"\u03c5","\u1f60":"\u03c9","\u1f64":"\u03c9","\u1fa4":"\u03c9","\u1f62":"\u03c9","\u1fa2":"\u03c9","\u1f66":"\u03c9","\u1fa6":"\u03c9","\u1fa0":"\u03c9","\u1f61":"\u03c9","\u1f65":"\u03c9",
|
50 |
+
"\u1fa5":"\u03c9","\u1f63":"\u03c9","\u1fa3":"\u03c9","\u1f67":"\u03c9","\u1fa7":"\u03c9","\u1fa1":"\u03c9","\u03ce":"\u03c9","\u1f7d":"\u03c9","\u1ff4":"\u03c9","\u1f7c":"\u03c9","\u1ff2":"\u03c9","\u1ff6":"\u03c9","\u1ff7":"\u03c9","\u1ff3":"\u03c9","\u0491":"\u0433","\u0450":"\u0435","\u0451":"\u0435","\u04c2":"\u0436","\u045d":"\u0438","\u04e3":"\u0438","\u04ef":"\u0443"});n.register("$7",function(f,c,h){f.init=function(){function c(a){return f[a]||a}function b(a){return String(a||"").toLowerCase().replace(e,
|
51 |
+
c)}function g(a,d,e){for(var b=a.split(k),g=b.length;0!==g--;)(a=b[g])&&null==e[a]&&(d.push(a),e[a]=!0);return d}function a(a,e){for(var k=[],c={},f,u=e.length;0!==u--;)(f=e[u])&&g(b(f),k,c);d[a]=k}var d=[],e=/[^a-z0-9]/g,k=/[\-_\s.?!;:,*^+=~`"(){}<>\[\]\/\\\u00a0\u1680\u180e\u2000-\u206f\u2e00-\u2e7f\u3000-\u303f]+/,f=n.require("$20","flatten.json");return{find:function(a,e){var k=[],c=-1,f=d,u=f.length,t,h,z,C,l,v,D=g(b(a),[],{}),G=D.length,n=e?!0:!1;a:for(;++c<u;)if(z=f[c],null!=z&&(C=z.length)){l=
|
52 |
+
0;b:for(;l<G;l++){v=D[l];for(t=0;t<C;t++)if(h=z[t],0===h.indexOf(v))continue b;continue a}k.push(n?e[c]:c)}return k},add:function(a,e){d[a]=g(b(e),[],{})},push:function(e){a(d.length,e)},index:function(d,e){a(d,e)},size:function(){return d.length},clear:function(){d=[]},remove:function(a){d[a]=null}}};return f}({},q,y));n.register("$22",function(f,c,h){f.create=function(){var c=[],b=n.require("$7","fulltext.js").init();return{add:function(g,a){b.add(c.length,a);c.push(g);return this},find:function(g){return b.find(g,
|
53 |
+
c)},clear:function(){c=[];b.clear();return this}}};return f}({},q,y));n.register("$10",function(f,c,q){function l(b){-1===b.indexOf("?")&&(b="/auto/"+b+".json?q=");this.url=b;this.dead={}}function b(){this.dict=n.require("$22","dict.js").create()}f.init=function(g){function a(){if("hint"!==G){var a=v.val()&&!(J&&J.val())&&null==C&&!t;U[a?"addClass":"removeClass"]("error")}}function d(a){J&&J.val(a)}function e(){q.show();var a=v.outerWidth(!1),d=v.outerHeight(!1),e=v.css("margin-top");e&&(e=parseInt(e),
|
54 |
+
isNaN(e)||(d+=e));a-=2;q.css("top",d+"px").css("width",a+"px");t=!0}function k(){q.hide();t=!1}function c(){q.html("");k();B=0;w=C=null}function f(d){c();var b;for(b=0;b<d.length;b++){var k=b,g=d[b],v=g.value,t=g.lang||v.lang,r=h('<span class="label"></span>').text(g.label),A=h('<div class="auto-comp-result"></div>'),s=void 0,z=void 0;if(z=g.icon)s=h("<span></span>").attr("class",z).appendTo(A),t?(s.attr("lang",t),g.lang=t):-1!==z.indexOf("lang-"+v)&&(s.attr("lang",v),g.lang=v);for(z in g)A.data(z,
|
55 |
+
g[z]);A.append(r);m(k,A)}(B=d.length)?(E&&e(),p(0)):(p(null),a(),U.trigger("locoAutonone",[]))}function m(a,d){q.append(d);d.click(function(e){e.stopPropagation();p(a,d);r();return!1});return d}function p(a,e){w&&(w.removeClass("selected"),w=null);C=null;null==a?d(""):(e||(e=q.find("div.auto-comp-result").eq(a)),e.length&&(e.addClass("selected"),C=a,w=e))}function A(a){if(B){var d=B-1;null==C?a=0<a?0:d:(a=C+a,0>a?a=d:a>d&&(a=0));return p(a)}}function r(){if(null==C)I.val(""),d("");else{var e=q.find("div.auto-comp-result").eq(C),
|
56 |
+
b=e.data()||{label:"Error"},g=b.value,f=b.label;d(g);I.val(f);k();e=e.clone();e.data(b);c();m(0,e);B=1;p(0,e);a();e.trigger("locoAutocomp",[g,f,e])}}var B=0,t=!1,E=!1,z=g.form,C=null,w=null,v=h(g),D=v.attr("name"),G=v.attr("data-mode"),H=v.attr("data-provider"),J="hint"!==G&&h('<input type="hidden" value="" name="'+D+'" />').appendTo(z),U=h('<div class="auto-comp-wrap"></div>').replaceAll(v),q=h('<div class="auto-comp-drop"></div>');H&&(H=new l(H));J&&v.attr("name","_"+D);v.attr("autocomplete")||
|
57 |
+
v.attr("autocomplete","off");U.append(v).append(q);k();v.focus(function(a){E=!0;1<B&&e()}).blur(function(d){E=!1;a()}).keydown(function(a){function d(){a.preventDefault();a.stopPropagation();return!1}switch(a.keyCode){case 27:t&&(a.stopPropagation(),k(),v.blur());break;case 40:B&&(t?A(1):e());break;case 38:t&&A(-1);break;case 13:if(t)return r(),d();if(!C&&"hint"!==G)return d()}return!0});var I=n.require("$8","LocoTextListener.js").listen(v,function(a){H&&H.fetch(a,f)});(z=v.attr("data-pre"))&&(z=
|
58 |
+
h.parseJSON(z))&&z.value&&z.label?(f([z]),r()):!g.value||J&&J.val()||!H||H.fetch(g.value,function(a){f(a);r()});return{$:v,val:function(){return J&&J.val()},clear:c,reset:function(){c();v.val("");d("");I.ping()},force:function(a,e){c();d(e||"");I.val(a)},preload:function(a){B&&c();H=new b;var d,e;for(d in a)e=a[d],H.add(e)},mode:function(a){G=a},provide:function(a){H=new l(a)}}};l.prototype.fetch=function(b,a){if(!b)return a&&a([]),this.dead={},this;var d,e=this.dead;for(d in e)if(0===b.indexOf(d))return a&&
|
59 |
+
a([]),this;d={dataType:"json",url:this.url+encodeURIComponent(b)};n.require("$21","http.js").ajax(d,function(d){var c=d&&d.results;c&&(a&&d.query&&d.query===b&&a(d.results),c.length||(e[b]=0));return!0});return this};b.prototype.add=function(b){var a=b.fulltext||b.label||b.value;a&&this.dict.add(b,a)};b.prototype.fetch=function(b,a){var d=b?this.dict.find(b):[];a&&a(d);return this};return f}({},q,y));n.register("$9",function(f,c,q){function l(a){a.stopPropagation();a.preventDefault();return!1}function b(a,
|
60 |
+
d,e){if(e=e||a.getElement(d))e.off().mouseup(function(e){e.stopPropagation();a.selectIndex(d,!0);return!1}).mouseover(function(){h(this).addClass("over");a.hover=d;return!0}).mouseout(function(){h(this).removeClass("over");a.hover=-1;return!0}),e=null;return a}function g(a){if(a){var d,e=a[0],b=e.id,g=e.title,c=[],f=[],p=-1,A=e.options.length,r,B=this.selectedIcon||"";this.id=b||"";this.name=e.name||"";this.prefix=e.getAttribute("data-prefix");for(this.defaultIcon=e.getAttribute("data-icon")||"icon no-icon";++p<
|
61 |
+
A;)d=e.options[p],r=d.disabled,d.selected&&c.push(p),d=h(d),f.push([d.val(),d.text(),d.attr("data-icon")||B,r,d.attr("lang")]);this.hidden||(this.hidden=h('<input type="hidden" name="'+this.name+'" value="" />').appendTo(e.form));this.list=h('<ul class="clearfix"></ul>');this.icon=h('<span class="icon"> </span>');this.selection=h('<span class="label"></span>');this.handle=h('<a class="handle" href="#"></a>').attr("tabindex",a.attr("tabindex")||"").append(this.icon).append(this.selection);d=h('<div class="selector"></div>').addClass(e.className).append(this.handle).append(this.list).replaceAll(e);
|
62 |
+
b&&d.attr("id",b);g&&a.hasClass("hastip")&&(d.attr("title",g),n.require("$11","tooltip.js").init(d,{gravity:a.attr("data-gravity")||"s",anchor:a.attr("data-anchor")}));this.wrapper=d;this.up=d.hasClass("up");for(this.clearOptions();d=f.shift();)this.addOption.apply(this,d);this.enable();this.close();if(A=c.length)for(p=0;p<A;p++)this.selectIndex(c[p]);else p=e.selectedIndex,null!=p&&0<=p&&this.selectIndex(p)}}f.create=function(a){return new g(a)};f.extend=function(a){a.parent=g;a.prototype=new g};
|
63 |
+
c=g.prototype;c.enable=function(){var a=this;a.handle.click(function(a){a.preventDefault();return!1}).mouseover(function(d){return a.onRollover(d)}).mouseout(function(d){return a.onRollout(d)}).mousedown(function(d){return a.onPress(d)}).keydown(function(d){return a.onKeydown(d)});h(q).mouseup(function(d){return a.onRelease(d)}).keydown(function(d){return a.onGlobalKeydown(d)})};c.onRollover=function(a){return this.over=!0};c.onRollout=function(a){this.over=!1;return!0};c.onPress=function(a){return this.active?
|
64 |
+
this.over?(this.close(),a.stopPropagation(),a.preventDefault(),!1):!0:(this.open(),a.stopPropagation(),a.preventDefault(),this.handle.focus(),!1)};c.onRelease=function(a){this.active&&!this.over&&this.close();return!0};c.onGlobalKeydown=function(a){if(this.active)switch(a.keyCode){case 27:return this.close(),l(a);case 40:return this.hoverNext(1),l(a);case 38:return this.hoverNext(-1),l(a);case 13:if(-1!=this.hover)return this.selectIndex(this.hover,!0),this.hoverItem(-1),this.close(),l(a)}return!0};
|
65 |
+
c.onKeydown=function(a){return this.active||40!==a.keyCode?!0:(this.open(),l(a))};c.open=function(){var a=this.list,d=this.handle,e=this.wrapper,b=e.data("tipsy"),g=d.outerWidth()||0,c=a.outerWidth()||0;this.active=!0;this.hover=-1;e.addClass("active");a.show();this.up?a.css("top","-"+a.outerHeight()+"px"):a.css("top",d.outerHeight()+"px");b&&b.disable();g>c&&(g-=c-a.width(),a.css("min-width",String(g)+"px"))};c.close=function(){var a=this.wrapper,d=a.data("tipsy");this.list.hide();this.active=!1;
|
66 |
-1!==this.hover&&(this.getElement(this.hover).removeClass("over"),this.hover=-1);a.removeClass("active");d&&d.enable()};c.hoverItem=function(a,d){-1!==this.hover&&this.getElement(this.hover).removeClass("over");this.hover=a;-1!==a&&(d=d||this.getElement(a),d.addClass("over"))};c.hoverNext=function(a){var d=this.options.length;if(d){d-=1;if(-1==this.hover)a=0<a?0:d;else{a=this.hover+a;if(0>a){this.close();return}a>d&&(a=0)}this.hoverItem(a)}};c.enableChange=function(a){this.eventName=a;this.eventData=
|
67 |
+
[].slice.call(arguments,1);return this};c.enableConfirm=function(a){this.confirm=a;return this};c.clearOptions=function(){this.index={};this.length=0;this.options=[];this.list.html("");this.hidden.val("");this.idx=this.hover=-1;return this};c.destroy=function(){this.clearOptions();this.hidden.remove()};c.addOption=function(a,d,e,k,g){var c=this.options.length,f=h("<span></span>").addClass(e||"icon no-icon"),p=h('<span class="label"></span>').text(d||a),p=h("<li></li>").append(f).append(p).appendTo(this.list);
|
68 |
+
g?g=g.split("-").shift():e&&-1!==e.indexOf("lang-"+a)&&(g=a);g&&f.attr("lang",g);p.attr("data-option",c);this.options[c]={value:a,text:d,lang:g||"",icon:e};this.index[a]=c;this.length=c+1;k?this.disableIndex(c):b(this,c,p);return c};c.disableOption=function(a){return this.disableIndex(this.index[a])};c.disableIndex=function(a){(a=this.getElement(a))&&a.addClass("disabled").off();return this};c.enableOption=function(a){return this.enableIndex(this.index[a])};c.enableIndex=function(a){return b(this,
|
69 |
+
a)};c.reIndex=function(){this.index={};this.length=0;for(var a=this.options.length;0!==a--;)this.index[this.options[a].value]=a,this.length++};c.selectValue=function(a,d){return this.selectIndex(this.index[a],d)};c.selectIndex=function(a,d){var e=this.options[a];if(e){var b=this,g=b.idx,c=e.value,f=e.icon||b.defaultIcon,p=function(){null!=g&&b.getElement(g).removeClass("active");b.getElement(a).addClass("active");b.setLabel(e.text).setIcon(f,e.lang);b.hidden.val(c);b.idx=a;d&&b.change()};g===a?b.hidden.val(c):
|
70 |
+
d?"function"===typeof b.confirm?b.confirm.call(null,e,function(a){a&&p()}):b.beforeChange(c)&&p():p();b.active&&b.close()}return this};c.setLabel=function(a){this.selection.text(a);this.prefix&&this.selection.prepend(h('<span class="prefix"></span>').text(this.prefix));return this};c.setIcon=function(a,d){this.icon.attr("class",a).attr("lang",d||"");return this};c.val=function(){var a=this.options[this.idx];return a&&a.value};c.change=function(){var a=this.val(),d=this.save,e=this.eventName||"change",
|
71 |
b=[a].concat(this.eventData||[]);this.wrapper.trigger(e,b);d&&d(a);return this};c.beforeChange=function(a){var d=h.Event("locoBeforeSelect");this.wrapper.trigger(d,[a]);return!d.isDefaultPrevented()};c.renameOption=function(a,d){var e=this.index[a],b=this.options[e];b&&(b.text=d,this.getElement(e).find("span.label").text(d),e===this.idx&&this.setLabel(d));return this};c.removeOption=function(a){var d=this.index[a],e=this.options[d];e&&(a=this.val(),this.getElement(d).remove(),this.options.splice(d,
|
72 |
+
1),this.reIndex(),a===e.value?this.selectIndex(0,!0):this.selectValue(a,!1))};c.getElement=function(a){return this.list.find("li").eq(a)};c.getWrapper=function(){return this.wrapper};c.persist=function(a){var d=this.id||this.name,e=a.fetch(d);null!=e&&this.selectValue(e,!0);this.save=function(e){a.store(d,e)};return this};c.listen=function(a){return this.on(this.eventName||"change",a)};c.on=function(a,d){this.wrapper.on(a,d);return this};c=null;return f}({},q,y));n.register("$30",function(f,c,q){function l(b){var g=
|
73 |
+
[],a=h([]);this.hidden=a;this.selected=g;this.selectedIcon="icon icon-checkbox";this.constructor.call(this,b);this.wrapper.addClass("multi");for(var d,e,k,c=h('<input type="checkbox" name="'+this.name+'[]" />')[0],f=this.options,m=f.length,p=-1;++p<m;)d=this.getElement(p)[0],k=c.cloneNode(!0),g[p]&&(k.checked=!0),k.setAttribute("value",f[p].value),a.push(d.appendChild(k));(e=this.defaultIcon)&&this.setIcon(e);(e=b.attr("title"))?this.setLabel(e):this.wrapper.addClass("no-title")}f.create=function(b){return new l(b)};
|
74 |
+
n.require("$9","LocoSelector.js").extend(l);c=l.prototype;c.selectIndex=function(b,g){return this.setIndexState(b,!this.selected[b],g)};c.setIndexState=function(b,g,a){var d=this.options[b],e=this.getElement(b),k=this.hidden[b],c=this.selected;d&&g!==c[b]&&(c[b]=g,e[g?"addClass":"removeClass"]("checked"),k&&(k.checked=g),a&&this.change());return this};c.selectValue=function(b,g){if(null==b.pop)return l.parent.prototype.selectValue.call(this,b,g);for(var a=this.selected.slice(),d=this.options.length,
|
75 |
+
e=!1,k=-1,c=-1;++k<d;)a[k]&&(e=!0),a[k]=!1;if(d=b.length)for(;++c<d;)k=this.index[b[c]],!1===a[k]&&(e=a[k]=!0);if(e){for(k in a)this.setIndexState(k,a[k]);g&&this.change()}return this};c.val=function(){for(var b=[],c=this.options,a=this.selected,d=a.length,e=-1;++e<d;)a[e]&&b.push(c[e].value);return b};c=null;return f}({},q,y));n.register("$17",function(f,c,q){var l=c.ieVersion;f.ie=function(b){return b?l<=b:l};var b=f.init=function(c){c?c instanceof jQuery||(c=h(c)):c=h(q.body);var a=n.require("$28",
|
76 |
+
"ga.js"),d=n.require("$18","forms.js"),e=n.require("$29","modal.js"),k=n.require("$10","LocoAutoComplete.js"),u=n.require("$9","LocoSelector.js"),s=n.require("$30","LocoMultiSelector.js"),m=n.require("$11","tooltip.js");c.find("form").each(function(a,b){var c=h(b);l&&10>l&&d.placeholders(c);b.getAttribute("data-modal")?e.initForm(b):b.action&&0!==c.attr("action").indexOf("#")&&!b.target&&d.jsonify(b);c.hasClass("hasreveal")&&d.revealify(c);c.find("input.auto-comp").each(function(a,d){k.init(d)});
|
77 |
+
c.find("select.selector").each(function(a,d){d.hasAttribute("multiple")?s.create(h(d)):u.create(h(d))});c.find("button.hastip").each(function(a,d){m.init(h(d))})});c.find("a").each(function(d,k){-1!==k.className.indexOf("hastip")&&m.init(h(k));if(-1!==k.href.indexOf("/modal/")||k.getAttribute("data-modal"))e.initLink(h(k));else{a.link(k);var c=k.getAttribute("data-ajax-target");c&&(c=h("#"+c),h(k).click(function(a){a.preventDefault();c.addClass("loading");h.get(k.href,function(a){a=f.$(a).replaceAll(c);
|
78 |
+
b(a);a.trigger("locoAhah")});return!1}))}});d=e=k=c=null;return f};f.$=function(b){return h(c.innerShiv?innerShiv(b,!1):b)};h.fn._html=function(g){return null!=g?(g=this.html(c.innerShiv?innerShiv(g,!1):g),b(this),g):j.html()};h.fn.macro=function(b,a){if("function"!==typeof b.run)throw Error("macro has no run function");b.run(this,a||{});return this};f.el=function(b,a){var d=q.createElement(b||"div");a&&(d.className=a);return d};f.txt=function(b){return q.createTextNode(b||"")};f.h=function(){function b(){e=
|
79 |
+
/[<>&]/g;k=/(\r\n|\n|\r)/g;c=/(?:https?):\/\/([a-zA-Z0-9\-_\.\?%~&;=\/]+(?:#.*)?)/g;b=null}function a(a){return"&#"+a.charCodeAt(0)+";"}function d(a,d){return'<a href="'+a+'">'+d+"</a>"}var e,k,c;return function(f,m){b&&b();var p=f.replace(e,a);m&&(p=p.replace(k,"<br />").replace(c,d));return p}}();f.noop=function(b){b&&(b.preventDefault(),b.stopPropagation(),h(b.target).blur());return!1};return f}({},q,y));n.register("$18",function(f,c,q){function l(a){function d(){a.value===c&&(a.value="",b.removeClass("placeheld"));
|
80 |
return!0}function e(){""===a.value&&(a.value=c,b.addClass("placeheld"));return!0}var b=h(a);if(!b.hasClass("auto-comp")){var c=b.attr("placeholder");if(c)return b.focus(d).blur(e),e(),{kill:function(){d();b.off("focus",d).off("blur",e)}}}}var b=f.enable=function(a){function d(a,d){d.getAttribute("data-was-disabled")||(d.disabled=!1)}a.find(".button").removeClass("loading");a.find("button").each(d);a.find("input").each(d);a.find("select").each(d);a.find("textarea").each(d);c.attachEvent&&a.hasClass("has-placeholders")&&
|
81 |
f.placeholders(a);delete a._disabled},g=f.disable=function(a){function d(a,d){d.disabled?d.setAttribute("data-was-disabled","true"):d.disabled=!0}a._disabled||(a.find(".button").addClass("loading"),a.find("button").each(d),a.find("input").each(d),a.find("select").each(d),a.find("textarea").each(d),a._disabled=!0)};f.jsonify=function(a,d,e){a instanceof jQuery||(a=h(a));a.disable||(h.fn.disable=function(){g(this);return this},h.fn.enable=function(){b(this);this.placehold&&this.placehold();return this});
|
82 |
+
var c="";a.find('[type="submit"]').click(function(a){a&&a.target&&a.target.name&&(c=encodeURIComponent(a.target.name)+"="+encodeURIComponent(a.target.value));return!0});a.submit(function(b){if(b&&b.isDefaultPrevented&&b.isDefaultPrevented()||e&&!1===e(b))return!1;var g=a.serialize(),g=g.replace(/%0D%0A/g,"%0A");c&&(g&&(g+="&"),g+=c,c="");a.disable();var f=n.require("$21","http.js"),g={url:f.jsonLink(a.attr("action")),type:a.attr("method"),data:g};f.ajax(g,d,function(){a.enable()},a);b.preventDefault();
|
83 |
+
b.stopPropagation();return!1})};f.revealify=function(a){a=a.closest("form");a.find("div[data-reveal-if]").each(function(d,b){function c(a){var d;t=t||a.target;if("."===r)d=Boolean(t&&t[B]),p&&(d=!d);else{var b,e=h(t.form).serializeArray();for(b in e)e[b].name===A&&(d=e[b].value);d=p?B!==d:B===d}if(d!==m)if(m=d,a)g[m?"slideDown":"slideUp"](200);else g[m?"show":"hide"]();return!0}var g=h(b),f=/^(\!?)([_\w\-\[\]]+)(\.|!?=)(.*)$/.exec(g.attr("data-reveal-if"));if(f){var m,p=f[1],A=f[2],r=f[3],B=f[4],
|
84 |
+
f=a[0][A];if(f.type||null==f.length)f=[f];d=f.length;for(var t;0!==d--;)t=f[d],c(),h(t).change(c).removeClass("jshide");f=f=t=null}});a=null};f.linkify=function(a){var d=a.getAttribute("data-icon");if(d){var b=h(a),c=h("<a> </a>");c.attr("href",a.form.action);c.attr("class",b.attr("class"));c.attr("tabindex",b.attr("tabindex"));b.attr("tabindex","-1");c.text(b.val());d&&h("<span></span>").prependTo(c).addClass(d);b.hide().after(c);c.click(function(a){b.click();return!1})}};f.placeholders=function(a){var d,
|
85 |
+
b=[];a.find("input[placeholder]").each(function(a,c){"password"!==c.type&&(d=l(c))&&b.push(d)});b.length&&(a.submit(function(){for(var a in b)b[a].kill()}),a.addClass("has-placeholders"),d=i=null)};return f}({},q,y));n.register("$4",function(f,c,q){function l(a,d,b){function e(){c();k=setTimeout(d,b)}function c(){k&&clearTimeout(k);k=null}var k;e();h(a).mouseenter(c).mouseleave(e);return{die:function(){c();h(a).off("mouseenter mouseleave")}}}function b(a,d){a.fadeTo(d,0,function(){a.slideUp(d,function(){a.remove();
|
86 |
+
h(c).triggerHandler("resize")})})}function g(a,d){function e(d){k[f]=null;b(h(a),250);g&&g.die();var c;if(c=d)d.stopPropagation(),d.preventDefault(),c=!1;return c}var g,f;h('<button type="button" class="notice-dismiss" href="#"> </a>').prependTo(a).click(e);h(c).triggerHandler("resize");u();f=k.length;k.push(e);d&&(g=l(a,e,d))}function a(a,d,b){var e=n.require("$17","html.js");a=h('<div class="notice notice-'+a+'" loco-notice inline></div>').prependTo(h("#loco-notices"));var c=h(e.el("p"));b=h(e.el("span")).text(b);
|
87 |
+
d=h(e.el("strong","has-icon")).text(d+": ");c.append(d).append(b).appendTo(a);return a}function d(d,b,e,k){d=a(e,b,d).hide().fadeIn(500);h(c).triggerHandler("resize");g(d,k);return f}function e(){h("#loco-notices").find("div.notice").each(function(a,d){g(d,!1)})}var k=[],u=Date.now||function(){return(new Date).getTime()},s,m,p,A;f.error=function(a){return d(a,s,"error")};f.warning=function(a){return d(a,m,"warning")};f.info=function(a){return d(a,p,"info")};f.success=function(a){return d(a,A,"success",
|
88 |
+
5E3)};f.log=function(){c.console&&console.log&&console.log.apply(console,arguments)};f.debug=function(a,d){c.console&&console.error&&(console.error("Loco Error: "+a),d&&console.debug&&console.debug(d))};f.clear=function(){for(var a=-1,d,b=k,e=b.length;++a<e;)(d=b[a])&&d();k=[];return f};f.create=a;f.raise=function(a){var d=f;(d[a.type]||d.error).call(d,a.message)};f.init=function(a){s=a._("Error");m=a._("Warning");p=a._("Notice");A=a._("OK");setTimeout(e,1E3);return f};return f}({},q,y));n.register("$5",
|
89 |
+
function(f,c,q){function l(d,b,c,f){function m(a,b,k){var f=g||{_:function(a){return a}},m=a.responseText,z=h("<pre>"+m+"</pre>").text();z&&(z=z.replace(/(^\s+|\s+$)/g,""));z||(z=m);p.debug("Ajax failure for "+d,{status:a.status,error:b,message:k,output:m});p.log(f._("Provide the following text when reporting a problem")+":\n--8<--\n",z,"\n------");"parsererror"===b?(m=f._("Check console output for debugging information"),(z=z.split(/[\r\n]/)[0])?(z=z.replace(/ +in +\S+ on line \d+/,""),z=z.replace(/^[()! ]+Fatal error:\s*/,
|
90 |
+
""),p.error(z+".\n"+m)):p.error(f._("Server returned invalid data")+". "+m)):p.error(k||f._("Unknown error"));c&&c(a,b,k)}f.url=a;f.dataType="json";f.error=m;f.success=function(a,d,e){var c=a&&a.data,f=a&&a.notices,g=f&&f.length;for(!c||a.error?m(e,d,a&&a.error&&a.error.message):b&&b(c,d,e);g--;)p.raise(f[g])};var p=n.require("$4","notices.js").clear();return h.ajax(f)}var b={},g,a=c.ajaxurl||"/wp-admin/admin-ajax.php",d=c.encodeURIComponent;f.init=function(a){b=a.nonces||b;return f};f.localise=function(a){g=
|
91 |
+
a;return f};f.submit=function(a,d,b){function c(){f.removeClass("loading");n.require("$18","forms.js").enable(f)}var f=h(a),g=f.serialize();f.addClass("loading");n.require("$18","forms.js").disable(f);return l(a.route.value,function(a,b,e){c();d&&d(a,b,e)},function(a,d,e){c();b&&b(a,d,e)},{type:a.method,data:g})};f.post=function(a,k,f,g){var m;(m=b[a])||(c.console&&console.debug&&console.debug('No nonce for "'+a+'"'),m="");m="action=loco_json&route="+d(a)+"&loco-nonce="+d(m);(k=k?h.param(k):"")&&
|
92 |
+
(m+="&"+k);return l(a,f,g,{type:"post",data:m})};f.setNonce=function(a,d){b[a]=d;return f};return f}({},q,y));n.register("$19",{arab:1,aran:1,hebr:1,nkoo:1,syrc:1,syrn:1,syrj:1,syre:1,samr:1,mand:1,mend:1,thaa:1,adlm:1,cprt:1,phnx:1,armi:1,prti:1,phli:1,phlp:1,phlv:1,avst:1,mani:1,khar:1,orkh:1,ital:1,lydi:1,ar:1,ary:1,ckb:1,dv:1,fa:1,he:1,nqo:1,ps:1,ur:1,yi:1});n.register("$6",function(f,c,h){function l(){}var b,g,a=n.require("$19","rtl.json");f.init=function(){return new l};f.cast=function(a){return a instanceof
|
93 |
+
l?a:"string"===typeof a?f.parse(a):f.clone(a)};f.clone=function(a){var b,c=new l;for(b in a)c[b]=a[b];return c};f.parse=function(a){b||(g=/[-_+]/,b=/^([a-z]{2,3})(?:-([a-z]{4}))?(?:-([a-z]{2}|[0-9]{3}))?(?:-([0-9][a-z0-9]{3,8}|[a-z0-9]{5,8}))?(?:-([a-z]-[-a-z]+))?$/i);a=String(a).split(g).join("-");if(!b.exec(a))return null;var e=new l;e.lang=RegExp.$1.toLowerCase();if(a=RegExp.$2)e.script=a.charAt(0).toUpperCase()+a.substr(1).toLowerCase();if(a=RegExp.$3)e.region=a.toUpperCase();if(a=RegExp.$4)e.variant=
|
94 |
+
a.toLowerCase();if(a=RegExp.$5)e.extension=a;return e};c=l.prototype;c.isValid=function(){return!!this.lang};c.isKnown=function(){var a=this.lang;return!(!a||"zxx"===a)};c.toString=function(a){a=a||"-";var b,c=this.lang||"zxx";if(b=this.script)c+=a+b;if(b=this.region)c+=a+b;if(b=this.variant)c+=a+b;if(b=this.extension)c+=a+b;return c};c.getIcon=function(){for(var a=4,b,c,f=["variant","region","script","lang"],g=[];0!==a--;)if(b=f[a],c=this[b])1===a&&3===c.length?g.push("region-m49"):g=g.concat([b,
|
95 |
+
b+"-"+c.toLowerCase()]);return g.join(" ")};c.isRTL=function(){return!!a[String(this.script||this.lang).toLowerCase()]};c=null;return f}({},q,y));n.register("$32",function(f,c,h){function l(a){c.console&&console.error&&console.error(a)}function b(){l("Method not implemented")}function g(){}function a(a){}g.prototype.toString=function(){return"[Undefined]"};a.prototype._validate=function(a){var e,c,f=!0;for(e in this)c=this[e],c===b?(l(a+"."+e+"() must be implemented"),f=!1):c instanceof g&&(l(a+"."+
|
96 |
+
e+" must be defined"),f=!1);return f};f.init=function(d,e){var c,f=new a;if(d)for(c=d.length;0!==c--;)f[d[c]]=b;if(e)for(c=e.length;0!==c--;)f[e[c]]=new g;return f};f.validate=function(a){var b=/function (\w+)\(/.exec(a.toString())?RegExp.$1:"";a.prototype._validate(b||"Object")};return f}({},q,y));n.register("$40",function(f,c,h){var l=c.requestAnimationFrame,b=c.cancelAnimationFrame,g=0;if(!l||!b)for(var a in{ms:1,moz:1,webkit:1,o:1})if(l=c[a+"RequestAnimationFrame"])if(b=c[a+"CancelAnimationFrame"]||
|
97 |
+
c[a+"CancelRequestAnimationFrame"])break;l&&b||(l=function(a){var b=d();timeToCall=Math.max(0,16-(b-g));nextTime=b+timeToCall;timerId=c.setTimeout(function(){a(nextTime)},timeToCall);g=nextTime;return timerId},b=function(a){clearTimeout(a)});var d=Date.now||function(){return(new Date).getTime()};f.loop=function(a,d){function c(){g=l(c,d);a(f++)}var f=0,g;c();return{stop:function(){g&&b(g);g=null}}};return f}({},q,y));n.register("$37",function(f,c,h){function l(b,d,e,c){if(a){var f=e;e=function(a){if((a.MSPOINTER_TYPE_TOUCH||
|
98 |
+
"touch")===a.pointerType)return f(a)}}b.addEventListener(d,e,c);return{unbind:function(){b.removeEventListener(d,e,c)}}}function b(a){a.preventDefault();a.stopPropagation();return!1}var g,a=!!c.navigator.msPointerEnabled,d=a?"MSPointerDown":"touchstart",e=a?"MSPointerMove":"touchmove",k=a?"MSPointerUp":"touchend";f.ok=function(a){null==g&&(g="function"===typeof h.body.addEventListener);g&&a&&a(f);return g};f.ms=function(){return a};f.dragger=function(a,c){function f(b){a.addEventListener(b,h[b],!1)}
|
99 |
+
function g(b){a.removeEventListener(b,h[b],!1)}var h={};h[d]=function(a){u(a,function(b,e){e.type=d;c(a,e,t)});f(e);f(k);return!0};h[k]=function(a){g(e);g(k);u(a,function(b,d){d.type=k;c(a,d,t)});return!0};h[e]=function(a){u(a,function(b,d){d.type=e;c(a,d,t)});return b(a)};f(d);var t={kill:function(){g(d);g(e);g(k);a=t=c=null}};return t};f.swiper=function(c,f,g){function h(a){c.addEventListener(a,w[a],!1)}function l(a){c.removeEventListener(a,w[a],!1)}function t(){E&&E.stop();E=null}var E,z,C,w={},
|
100 |
+
v=[],D=[],G=[];w[d]=function(a){z=!1;t();var b=s();u(a,function(a,d){v[a]=b;D[a]=d.clientX;G[a]=d.clientY});C=c.scrollLeft;return!0};w[k]=function(a){u(a,function(a,b){var d=s()-v[a],e=D[a]-b.clientX,d=Math.abs(e)/d;f(d,e?0>e?-1:1:0)});C=null;return!0};w[e]=function(a){var d,e;null==C||u(a,function(a,b){d=D[a]-b.clientX;e=G[a]-b.clientY});if(e&&Math.abs(e)>Math.abs(d))return z=!0;d&&(z=!0,c.scrollLeft=Math.max(0,C+d));return b(a)};if(!a||g)h(d),h(e),h(k),a&&(c.className+=" mstouch");return{kill:function(){l(d);
|
101 |
+
l(e);l(k);t()},swiped:function(){return z},ms:function(){return a},snap:function(b){a&&!g&&(c.style["-ms-scroll-snap-points-x"]="snapInterval(0px,"+b+"px)",c.style["-ms-scroll-snap-type"]="mandatory",c.style["-ms-scroll-chaining"]="none")},scroll:function(a,b,d){t();var e=c.scrollLeft,f=a>e?1:-1,g=Math[1===f?"min":"max"],k=Math.round(16*b*f);return E=n.require("$40","fps.js").loop(function(b){b&&(e=Math.max(0,g(a,e+k)),c.scrollLeft=e,a===e&&(t(),d&&d(e)))},c)}}};f.start=function(a,b){return l(a,d,
|
102 |
+
b,!1)};f.move=function(a,b){return l(a,e,b,!1)};f.end=function(a,b){return l(a,k,b,!1)};var u=f.each=function(b,d){if(a)(b.MSPOINTER_TYPE_TOUCH||"touch")===b.pointerType&&d(0,b);else for(var e=-1,c=(b.originalEvent||b).changedTouches||[];++e<c.length;)d(e,c[e])},s=Date.now||function(){return(new Date).getTime()};return f}({},q,y));n.register("$41",function(f,c,n){f.init=function(c){function b(){e.style.top=String(-c.scrollTop)+"px";return!0}function f(){var b=e;b.textContent=c.value;b.innerHTML=b.innerHTML.replace(/[ \t]/g,
|
103 |
+
a).split(/(?:\r\n|\r|\n)/).join('<span class="eol crlf"></span>\r\n')+'<span class="eol eof"></span>';return!0}function a(a,b){return'<span class="x'+a.charCodeAt(0).toString(16)+'">'+a+"</span>"}var d=c.parentNode,e=d.insertBefore(n.createElement("div"),c);h(c).on("input",f).on("scroll",b);h(d).addClass("has-mirror");e.className="ta-mirror";var k=c.offsetWidth-c.clientWidth;2<k&&(e.style.marginRight=String(k-2)+"px");f();b();return{kill:function(){h(c).off("input",f).off("scroll",b);d.removeChild(e);
|
104 |
+
e=null;h(d).removeClass("has-mirror")}}};return f}({},q,y));n.register("$44",function(f,c,h){function l(a,d){for(var e=0,f=-1,g=d&&c[d],h=b[a]||[],m=h.length;++f<m;)callback=h[f],"function"===typeof callback&&(callback(g),e++);return e}var b={},g;f.load=function(a,d,e){function f(){m&&(clearTimeout(m),m=null);p&&(p.onreadystatechange=null,p=p=p.onload=null);a&&(delete b[a],a=null)}function g(b,d){var c=p&&p.readyState;if(d||!c||"loaded"===c||"complete"===c)d||l(a,e),f()}function s(){if(0===l(a))throw Error('Failed to load "'+
|
105 |
+
(e||a)+'"');f()}if(e&&c[e])"function"===typeof d&&d(c[e]);else if(null!=b[a])b[a].push(d);else{b[a]=[d];var m=setTimeout(s,4E3),p=h.createElement("script");p.setAttribute("src",a);p.setAttribute("async","true");p.onreadystatechange=g;p.onload=g;p.onerror=s;p.onabort=f;h.getElementsByTagName("head")[0].appendChild(p)}};f.stat=function(a){var b;if(!(b=g)){for(var e,c,f=h.getElementsByTagName("script"),s=-1,m=f.length;++s<m;)if(b=f[s].getAttribute("src"))if(e=b.indexOf("/lib/vendor"),-1!==e){c=b.substr(0,
|
106 |
+
e);break}b=g=c||"/static"}return b+a};return f}({},q,y));n.register("$42",function(f,c,q){function l(a,b){a.setReadOnly(!1);a.on("change",function(a,d){return b.val(d.getValue())});a.on("focus",function(a,d){return b.focus()});a.on("blur",function(a,d){return b.blur()})}function b(a){a.off("change");a.off("focus");a.off("blur")}function g(a){b(a);a.setReadOnly(!0);a.setHighlightGutterLine(!1);a.setHighlightActiveLine(!1)}function a(a){function b(){this.$rules={start:[{token:"empty_line",regex:"^$"},
|
107 |
{token:"constant.language",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"},{token:"printf",regex:"%(?:\\d+\\$)?[-+]?(?:'.)?[ 0]*-?\\d*(?:\\.d+)?[bcdeEfFgGosuxX%]"},{token:"printf",regex:"%(?:\\d+\\$)?[-,'+#0 (]*\\d*(?:\\.\\d+|\\.\\*)?[sScCuidoxXfFeEgGaAbBpn%@]"},{defaultToken:"text"}]}}function c(){this.HighlightRules=b}a=a.require;var f=a("ace/lib/oop");f.inherits(b,a("ace/mode/text_highlight_rules").TextHighlightRules);f.inherits(c,a("ace/mode/text").Mode);return new c}f.init=
|
108 |
+
function(d,e){var c,f=!1,s=d.parentNode,m=s.appendChild(q.createElement("div"));h(s).addClass("has-proxy has-ace");n.require("$44","remote.js").load("https://cdnjs.cloudflare.com/ajax/libs/ace/1.2.5/ace.js",function(b){if(m){if(!b)throw Error("Failed to load code editor");c=b.edit(m);var h=c.session,r=c.renderer;c.$blockScrolling=Infinity;c.setShowInvisibles(f);c.setWrapBehavioursEnabled(!1);c.setBehavioursEnabled(!1);c.setHighlightActiveLine(!1);h.setUseSoftTabs(!1);r.setShowGutter(!0);r.setPadding(10);
|
109 |
+
r.setScrollMargin(8);h.setMode(a(b));c.setValue(d.value,-1);h.setUseWrapMode(!0);e?l(c,e):g(c)}},"ace");return{kill:function(){c&&(b(c),c.destroy(),c=null);m&&(s.removeChild(m),h(s).removeClass("has-proxy has-ace"),m=null);return this},disable:function(){c&&g(c);e=null;return this},enable:function(a){e=a;c&&l(c,a);return this},resize:function(){c&&c.resize();return this},val:function(a){c&&a!==c.getValue()&&c.setValue(a,-1);return this},invs:function(a){a=a||!1;f!==a&&(f=a,c&&c.setShowInvisibles(a));
|
110 |
+
return this},focus:function(){return this}}};return f}({},q,y));n.register("$43",function(f,c,q){function l(a,b){function e(){return b.val(a.getContent())}a.on("input",e);a.on("change",e);a.on("focus",function(a){return b.focus()});a.on("blur",function(a){return b.blur()});a.setMode("design")}function b(a){a.off("input");a.off("change");a.off("focus");a.off("blur")}var g=0;f.load=function(a){var b=n.require("$44","remote.js");b.load(b.stat("/lib/tinymce.min.js"),a,"tinymce");return f};f.init=function(a,
|
111 |
+
d){function e(a){c=a;d?l(a,d):(b(a),a.setMode("readonly"));h(p).removeClass("loading")}var c,u=!1,s=a.parentNode,m=s.parentNode,p=s.appendChild(q.createElement("div")),A=m.insertBefore(q.createElement("nav"),s);h(s).addClass("has-proxy has-mce");h(p).html(a.value).addClass("mce-content-body loading");A.id="_tb"+String(++g);f.load(function(a){if(!a)throw Error("Failed to load HTML editor");p&&a.init({inline:!0,target:p,hidden_input:!1,theme:"modern",skin:!1,plugins:"link",browser_spellcheck:!0,menubar:!1,
|
112 |
+
fixed_toolbar_container:"#"+A.id,toolbar:"formatselect | bold italic link unlink | bullist numlist outdent indent",block_formats:"Paragraph=p;Heading 1=h1;Heading 2=h2;Heading 3=h4;Heading 4=h4;Heading 5=h5;Heading 6=h6;",forced_root_block:"p",relative_urls:!1,convert_urls:!1,remove_script_host:!1,document_base_url:"",allow_script_urls:!1,formats:{alignleft:{classes:"alignleft"},alignright:{selector:"p,h1,h2,h3,h4,span,strong,em,a",classes:"alignright"},aligncenter:{selector:"p,h1,h2,h3,h4,span,strong,em,a",
|
113 |
+
classes:"aligncenter"},strikethrough:{inline:"del"}},fix_list_elements:!0,entities:"38,amp,60,lt,62,gt,160,nbsp",entity_encoding:"named",keep_styles:!1,init_instance_callback:e})});return{val:function(a){null==c?h(p).html(a):c.getContent()!==a&&c.setContent(a);return this},kill:function(){c&&(b(c),c.destroy(),c=null);p&&(s.removeChild(p),h(s).removeClass("has-proxy has-mce"),p=null);A&&(m.removeChild(A),A=null);return this},enable:function(a){d=a;c&&l(c,a);return this},disable:function(){if(c){var a=
|
114 |
+
c;b(a);a.setMode("readonly")}d=null;return this},focus:function(){c&&d&&c.focus();return this},invs:function(a){a=a||!1;u!==a&&(u=a,h(s)[a?"addClass":"removeClass"]("show-invs"));return this}}};return f}({},q,y));n.register("$38",function(f,c,q){function l(a){function b(){s&&m.off("input",e);s=!1;return!0}function e(){var b=a.value;b!==A&&(m.trigger("changing",[b,A]),A=b)}function c(){g=a;r=A;s||m.on("input",e);s=!0;m.trigger("editFocus");p.addClass("has-focus");return!0}function f(){g===a&&(g=null);
|
115 |
+
m.trigger("editBlur");p.removeClass("has-focus");b();e();r!==A&&m.trigger("changed",[A]);return!0}var s=!1,m=h(a),p=h(a.parentNode),A=a.value,r;m.blur(f).focus(c);return{val:function(b){A!==b&&(a.value=b,s?(m.triggerHandler("input"),A=b):e());return!0},kill:function(){b();m.off("blur",f).off("focus",c)},fire:function(){A=null;e()},ping:e,blur:f,focus:c}}function b(a){this.e=a}var g;f._new=function(a){return new b(a)};f.init=function(a){var d=new b(a);a.disabled?(a.removeAttribute("disabled"),d.disable()):
|
116 |
a.readOnly?d.disable():d.enable();return d};TextAreaPrototype=b.prototype;TextAreaPrototype.destroy=function(){this.unlisten();this.e=null};TextAreaPrototype.reload=function(a,b){b?this.l||this.enable():this.l&&this.disable();return this.val(a||"")};TextAreaPrototype.val=function(a){var b=this.e;if(null==a)return b.value;var e=this.p||this.l;e?e.val(a):b.value!==a&&(b.value=a,h(b).triggerHandler("input"));return this};TextAreaPrototype.fire=function(){this.l&&this.l.fire();return this};TextAreaPrototype.focus=
|
117 |
function(){var a=this.p;a?a.focus():h(this.e).focus()};TextAreaPrototype.focused=function(){return g&&g===this.el};TextAreaPrototype.parent=function(){return this.e.parentNode};TextAreaPrototype.attr=function(a,b){var e=this.e;if(1===arguments.length)return e.getAttribute(a);null==b?e.removeAttribute(a):e.setAttribute(a,b);return this};TextAreaPrototype.editable=function(){return!!this.l};TextAreaPrototype.enable=function(){var a=this.p;this.e.removeAttribute("readonly");this.listen();a&&a.enable&&
|
118 |
+
a.enable(this.l);return this};TextAreaPrototype.disable=function(){var a=this.p;this.e.setAttribute("readonly",!0);this.unlisten();a&&a.disable&&a.disable();return this};TextAreaPrototype.listen=function(){var a=this.l;a&&a.kill();this.l=l(this.e);return this};TextAreaPrototype.unlisten=function(){this.l&&this.l.kill();this.l=null;return this};TextAreaPrototype.setInvs=function(a,b){var e=this.i||!1;if(b||e!==a)this._i&&(this._i.kill(),delete this._i),(e=this.p)?e.invs&&e.invs(a):a&&(this._i=n.require("$41",
|
119 |
+
"mirror.js").init(this.e)),this.i=a;return this};TextAreaPrototype.getInvs=function(){return this.i||!1};TextAreaPrototype.setMode=function(a){var b=this.p;a!==(this.m||"")&&(this.m=a,b&&b.kill(),this.p=b="code"===a?n.require("$42","ace.js").init(this.e,this.l):"html"===a?n.require("$43","mce.js").init(this.e,this.l):null,this.setInvs(this.i,!0),g&&this.focus());return this};TextAreaPrototype.name=function(a){this.e.setAttribute("name",a);return this};TextAreaPrototype.placeholder=function(a){this.e.setAttribute("placeholder",
|
120 |
+
a);return this};TextAreaPrototype.redraw=function(a){var b=this.p;b&&b.resize&&!a&&b.resize()};TextAreaPrototype=null;return f}({},q,y));n.register("$39",function(f,c,n){function l(a){var b=c.console;b&&b.error&&b.error(a)}function b(a){var b=n.createElement("div");a&&b.setAttribute("class",a);return b}function g(a){return function(){a.resize();return this}}function a(a){return function(b){var d=b.target.$r;if(null==d)return!0;a.select(d);b.stopPropagation();b.preventDefault();return!1}}function d(a){return function(){a.redrawDirty()&&
|
121 |
+
a.redraw();return!0}}function e(a){return function(b){var d;d=b.keyCode;if(40===d)d=1;else if(38===d)d=-1;else return!0;if(b.shiftKey||b.ctrlKey||b.metaKey||b.altKey)return!0;a.selectNext(d);b.stopPropagation();b.preventDefault();return!1}}function k(a){this.w=a}function u(a,b,d){var e=n.createElement("div");e.className=d||"";this._=e;this.d=b;this.i=a;this.length=b.length}function s(a){this.live=a;this.rows=[]}f.create=function(a){return new k(a)};var m=k.prototype;m.init=function(c){var f=this.w,
|
122 |
+
k=f.id,m=f.splity(k+"-thead",k+"-tbody"),t=m[0],m=m[1],E=[],z=[];t.css.push("wg-thead");m.css.push("wg-tbody");c.eachCol(function(a,b){E.push(k+"-col"+a);z.push(b)});for(var s=b(),l=-1,v=E.length,D=b("wg-cols"),G=t.splitx.apply(t,E);++l<v;)G[l].header(z[l]),D.appendChild(s.cloneNode(!1));var n=[];c.eachRow(function(a,b,d){n[a]=new u(a,b,d)});c=m.body;this.rows=n;this.cols=D;this.root=c;t.redraw=g(this);t=m.fixed=G[0].bodyY()||20;f.lock().resize(t,m);f.css.push("is-table");f.restyle();this.redrawDirty();
|
123 |
+
this.render();h(c).attr("tabindex","-1").on("keydown",e(this)).on("mousedown",a(this)).on("scroll",d(this));return this};m.clear=function(){for(var a=this.pages||[],b=a.length;0!==b--;)a[b].destroy();this.pages=[];this.sy=this.mx=this.mn=this.vh=null;void 0;return this};m.render=function(){for(var a,b,d=[],e=-1,c=this.rows||[],f=this.f,g=f?!0:!1,k=g?f.length:c.length,h=this.r,v=this._r,m=this.root,u=this.cols;++e<k;)0===e%100&&(b=u.cloneNode(!0),b=new s(b),b.h=2200,b.insert(m),d.push(b)),a=g?f[e]:
|
124 |
+
e,a=c[a],a.page=b,b.rows.push(a);b&&100!==b.size()&&b.sleepH(22);this.pages=d;this.mx=this.mn=null;this.redrawDirty();this.redraw();null==h?null!=v&&(a=c[v])&&a.page&&(delete this._r,this.select(v,!0)):(a=c[h])&&a.page?this.select(h,!0):(this.deselect(),this._r=h);return this};m.resize=function(){var a=-1,b=this.ww||(this.ww=[]),d=this.w,e=d.cells[0],c=e.body.childNodes,f=c.length,g=this.pages||[],k=g.length;for(d.redraw.call(e);++a<f;)b[a]=c[a].style.width;if(k){d=this.mx;for(a=this.mn;a<=d;a++)g[a].widths(b);
|
125 |
+
this.redrawDirty()&&this.redraw()}};m.redrawDirty=function(){var a=!1,b=this.root,d=b.scrollTop,b=b.clientHeight;this.sy!==d&&(a=!0,this.sy=d);this.vh!==b&&(a=!0,this.vh=b);return a};m.redraw=function(){for(var a=0,b=-1,d=null,e=null,c=this.ww,f=this.sy,g=this.vh,k=this.mn,h=this.mx,v=Math.max(0,f-100),f=g+f+100,m=this.pages||[],u=m.length;++b<u&&!(a>f);)g=m[b],a+=g.height(),a<v||(null===d&&(d=b),e=b,g.rendered||g.render(c));if(k!==d){if(null!==k&&d>k)for(b=k;b<d;b++){g=m[b];if(!g)throw Error("Shit!");
|
126 |
g.rendered&&g.sleep()}this.mn=d}if(h!==e){if(null!==h&&e<h)for(b=h;b>e;b--)g=m[b],g.rendered&&g.sleep();this.mx=e}};m.selected=function(){return this.r};m.thead=function(){return this.w.cells[0]};m.tbody=function(){return this.w.cells[1]};m.tr=function(a){return(a=this.rows[a])?a.cells():[]};m.td=function(a,b){return this.tr(a)[b]};m.next=function(a,b,d){null==d&&(d=this.r);for(var e,c=this.rows,f=d,g=c.length;d!==(f+=a);)if(0<=f&&g>f){if(e=c[f],e.page)break}else if(b&&g)f=1===a?-1:g,b=!1;else{f=
|
127 |
+
null;break}return f};m.selectNext=function(a,b,d){a=this.next(a,b);null!=a&&this.r!==a&&this.select(a,d);return this};m.deselect=function(a){var b=this.r;null!=b&&(this.r=null,h(this.tr(b)).removeClass("selected"),this.w.fire("wgRowDeselect",[b,a]));return this};m.select=function(a,b){var d=this.rows[a],e=d&&d.page;if(!e)return this.deselect(!1),l("Row is filtered out"),this;this.deselect(!0);var c,f=this.w.cells[1];e.rendered||(c=e.top(),f.scrollY(c),this.redrawDirty()&&this.redraw());if(!d.rendered)return e.rendered||
|
128 |
+
l("Failed to render page"),l("Row ["+a+"] not rendered"),this;e=d.cells();h(e).addClass("selected");this.r=a;b||(c=f.scrollY(),h(this.root).focus(),c!==f.scrollY()&&f.scrollY(c));f.scrollTo(e[0],!0);this.w.fire("wgRowSelect",[a,d.data()]);return this};m.unfilter=function(){this.f&&(this.f=null,this.clear().render());return this};m.filter=function(a){this.f=a;return this.clear().render()};m=null;m=u.prototype;m.render=function(a){var b,d=[],e=this._,c=this.d,f=this.length,g=this.i;if(e){for(;0!==f--;)d[f]=
|
129 |
+
b=e.cloneNode(!1),b.textContent=c[f]||"\u00a0",b.$r=g,a[f].appendChild(b);this._=null;this.c=d}else for(d=this.c;0!==f--;)a[f].appendChild(d[f]);this.rendered=!0;return this};m.cells=function(){return this.c||[]};m.data=function(){return this.d||[]};m.destroy=function(){this.page=null;this.rendered=!1};m=null;m=s.prototype;m.size=function(){return this.rows.length};m.insert=function(a){var d=this.h,e=b("wg-dead");e.style.height=String(d)+"px";a.appendChild(e);return this.dead=e};m.top=function(){return(this.rendered?
|
130 |
+
this.live:this.dead).offsetTop};m.height=function(){var a=this.h;null==a&&(this.h=a=this.rendered?this.live.firstChild.offsetHeight:this.dead.offsetHight);a||l("row has zero height");return a};m.render=function(a){for(var b,d=-1,e=this.rows,c=e.length,f=this.dead,g=this.live,k=g.childNodes;++d<c;)b=e[d],b.rendered||b.render(k);c=a.length;for(d=0;d<c;d++)k[d].style.width=a[d];f.parentNode.replaceChild(g,f);this.rendered=!0;this.h=null;return this};m.sleep=function(){var a=this.height(),b=this.live,
|
131 |
d=this.dead;d.style.height=String(a)+"px";b.parentNode.replaceChild(d,b);this.rendered=!1;this.h=a;return this};m.sleepH=function(a){a*=this.rows.length;var b=this.dead;b&&(b.style.height=String(a)+"px");this.rendered||(this.h=a);return this};m.widths=function(a){for(var b=this.live.childNodes,d=a.length;0!==d--;)b[d].style.width=a[d];return this};m.destroy=function(){var a=this.rendered?this.live:this.dead,b=this.rows,d=b.length;for(a.parentNode.removeChild(a);0!==d--;)b[d].destroy()};m=null;return f}({},
|
132 |
+
q,y));n.register("$33",function(f,c,q){function l(a,b){var c=a.id,f=c&&A[c],g=f&&f.parent();if(!f||!g)return null;var v=g.dir===p,c=v?"X":"Y",k="page"+c,v=v?d:e,h=v(g.el),c=b["offset"+c],m=g.el,u=m.className;null==c&&(c=b[k]-v(a));c&&(h+=c);m.className=u+" is-resizing";return{done:function(){m.className=u},move:function(a){g.resize(a[k]-h,f);return!0}}}function b(b,d){function e(){h(q).off("mousemove",c);B&&(B.done(),B=null);return!0}function c(a){B?B.move(a):e();return!0}if(B)return!0;B=l(b.target,
|
133 |
+
b);if(!B)return!0;h(q).one("mouseup",e).on("mousemove",c);return a(b)}function g(a,b){var d=b.type;"touchmove"===d?B&&B.move(b):"touchstart"===d?B=l(a.target,b):"touchend"===d&&B&&(B.done(),B=null)}function a(a){a.stopPropagation();a.preventDefault();return!1}function d(a,b){b||(b=q.body);for(var d=a.offsetLeft||0;(a=a.offsetParent)&&a!==b;)d+=a.offsetLeft||0;return d}function e(a,b){b||(b=q.body);for(var d=a.offsetTop||0;(a=a.offsetParent)&&a!==b;)d+=a.offsetTop||0;return d}function k(a){var b=r;
|
134 |
+
b&&b.redraw();a&&a.redraw();return r=a}function u(a,b){var d=h(b).on("editFocus",function(){d.trigger("wgFocus",[k(a)])}).on("editBlur",function(){d.trigger("wgBlur",[k(null)])})}function s(a){var b=a.id,d=a.className;this.id=b;this.el=a;this.pos=this.index=0;this.css=[d||"wg-root","wg-cell"];this._cn=d;A[b]=this;this.clear()}var m=n.require("$17","html.js"),p=1,A={},r,B=!1;f.init=function(a){var d=new s(a);d.redraw();n.require("$37","touch.js").ok(function(b){b.dragger(a,g)});h(a).mousedown(b);return d};
|
135 |
+
c=s.prototype;c.fire=function(a,b){var d=h.Event(a);d.cell=this;h(this.el).trigger(d,b);return this};c.each=function(a){for(var b=-1,d=this.cells,e=d.length;++b<e;)a(d[b],b);return this};c.on=function(){return this.$("on",arguments)};c.off=function(){return this.$("off",arguments)};c.find=function(a){return h(this.el).find(a)};c.$=function(a,b){h.fn[a].apply(h(this.el),b);return this};c.parent=function(){return this.pid&&A[this.pid]};c.splitx=function(){return this._split(p,arguments)};c.splity=function(){return this._split(2,
|
136 |
+
arguments)};c._split=function(a,b){(this.length||this.field)&&this.clear();for(var d=-1,e,c=b.length,f=1/c,g=0;++d<c;){e=m.el();this.body.appendChild(e);for(var k=e,h=b[d],u=h,l=1;A[h];)h=u+"-"+ ++l;k.id=h;e=new s(e);e.index=d;e.pid=this.id;e.pos=g;g+=f;this.cells.push(e);this.length++}this.dir=a;this.redraw();return this.cells};c.destroy=function(){this.clear();delete A[this.id];var a=this.el;a.innerHTML="";a.className=this._cn||"";h(a).off();return this};c.exists=function(){return this===A[this.id]};
|
137 |
+
c.clear=function(){for(var a=this.el,b=this.cells,d=this.field,e=this.body,c=this.nav,f=this.length||0;0!==f--;)delete A[b[f].destroy().id];this.cells=[];this.length=0;c&&(a.removeChild(c),this.nav=null);e&&(d&&(m.ie()&&h(e).triggerHandler("blur"),d.destroy(),this.field=null),this.table&&(this.table=null),a.removeChild(e));this.body=a.appendChild(m.el("","wg-body"));this._h=null;return this};c.resize=function(a,b){if(!b&&(b=this.cells[1],!b))return;var d=b.index,e=this.cells;this.parent();var c=h(this.el)[this.dir===
|
138 |
+
p?"width":"height"](),f=e[d+1],d=e[d-1];pad=(b.body||b.el.firstChild).offsetTop||0;max=(f?f.pos*c:c)-pad;min=d?d.pos*c:0;b.pos=Math.min(max,Math.max(min,a))/c;this.redraw();return this};c.distribute=function(a){for(var b,d=0,e=this.cells,c=a.length;d<c;)b=a[d],e[++d].pos=Math.max(0,Math.min(1,b));this.redraw();return this};c.distribution=function(){for(var a=[],b=0,d=this.cells,e=d.length-1;b<e;)a[b]=d[++b].pos;return a};c.restyle=function(){var a=this.css.concat();0===this.index?a.push("first"):
|
139 |
a.push("not-first");this.dir&&(a.push("wg-split"),2===this.dir?a.push("wg-split-y"):a.push("wg-split-x"));this.t&&a.push("has-title");this.nav&&a.push("has-nav");this.field&&(a.push("is-field"),this.field.editable()?a.push("is-editable"):a.push("is-readonly"));a=a.join(" ");a!==this._css&&(this._css=a,this.el.className=a);return this};c.redraw=function(a){this.restyle();var b=this.el,d=this.body,e=this.field;if(d){var c=b.clientHeight||0,f=d.offsetTop||0,c=f>c?0:c-f;this._h!==c&&(this._h=c,d.style.height=
|
140 |
+
String(c)+"px",e&&e.redraw(a))}for(var d=this.length,f=1,g=this.nav,k=2===this.dir?"height":"width";0!==d--;)e=this.cells[d],g?c=1:(e.fixed&&(e.pos=e.fixed/h(b)[k]()),c=f-e.pos,f=e.pos),e.el.style[k]=String(100*c)+"%",e.redraw(a);return this};c.contents=function(a,b){var d=this.el,e=this.body;if(null==a)return e.innerHTML;this.length?this.clear():e&&(d.removeChild(e),e=null);e||(this.body=e=d.appendChild(m.el("",b||"wg-content")),this._h=null,(d=this.lang)&&this._locale(d,this.rtl,!0));"string"===
|
141 |
+
typeof a?h(e)._html(a):a&&this.append(a);this.redraw();return this};c.textarea=function(a,b){var d=this.field;if(d){var e=d.editable();d.reload(a,b);e!==b&&this.restyle()}else this.length&&this.clear(),e=m.el("textarea"),e.setAttribute("wrap","virtual"),e.value=a,this.contents(e),d=n.require("$38","field.js")._new(e)[b?"enable":"disable"](),u(this,e),this.field=d,this.restyle();this.lang||this.locale("en");return d};c.locale=function(a){a=n.require("$6","locale.js").cast(a);return this._locale(String(a),
|
142 |
a.isRTL())};c._locale=function(a,b,d){var e=this.body;if(d||a!==this.lang)this.lang=a,e&&e.setAttribute("lang",a);if(d||b!==this.rtl)this.rtl=b,e&&e.setAttribute("dir",b?"RTL":"LTR");return this};c.editable=function(){var a=this.field;if(!a||!a.editable())for(var b=-1,d=this.length;++b<d&&!(a=this.cells[b].editable()););return a};c.eachTextarea=function(a){var b=this.field;b?a(b):this.each(function(b){b.eachTextarea(a)});return this};c.append=function(a){a&&(a.nodeType?m.init(this.body.appendChild(a)):
|
143 |
m.init(h(a).appendTo(this.body)));return this};c.prepend=function(a){var b=this.body;if(a.nodeType){var d=b.firstChild;m.init(d?b.insertBefore(a,d):b.appendChild(a))}else m.init(h(a).prependTo(b));return this};c.before=function(a){var b=this.body;a.nodeType?m.init(this.el.insertBefore(a,b)):m.init(h(a).insertBefore(b));return this};c.header=function(a,b){if(null==a&&null==b)return this.el.getElementsByTagName("header")[0];this.t=m.txt(a||"");this.el.insertBefore(m.el("header",b),this.body).appendChild(this.t);
|
144 |
+
this.redraw();return this};c.title=function(a){var b=this.t;if(b)return b.nodeValue=a||"",b;this.header(a);return this.t};c.titled=function(){var a=this.t;return a&&a.nodeValue};c.bodyY=function(){return e(this.body,this.el)};c.scrollY=function(a){if(T===a)return this.body.scrollTop;this.body.scrollTop=a};c.tabulate=function(a){return this.table=n.require("$39","wgtable.js").create(this).init(a)};c.lock=function(){this.body.className+=" locked";return this};c.scrollTo=function(a,b){var d,c=this.body;
|
145 |
+
d=c.scrollTop;var f=e(a,c);if(d>f)d=f;else{var g=c.clientHeight,f=f+h(a).outerHeight();if(g+d<f)d=f-g;else return}b?c.scrollTop=d:h(c).stop(!0).animate({scrollTop:d},250)};c.navigize=function(b,d){function e(a){var b=f[a],d=u[a],c=h(b.el).show();d.addClass("active");k=a;l.data("idx",a);b.fire("wgTabSelect",[a]);return c}var c=this,f=c.cells,g=c.nav,k,u=[];g&&c.el.removeChild(g);var g=c.nav=c.el.insertBefore(m.el("nav","wg-tabs"),c.body),l=h(g).on("click",function(b){var d=h(b.target).data("idx");
|
146 |
+
if(null==d)return!0;if(null!=k){var g=u[k];h(f[k].el).hide();g.removeClass("active")}e(d);c.redraw();return a(b)});null==d&&(d=l.data("idx")||0);c.each(function(a,d){u[d]=h('<a href="#'+a.id+'"></a>').data("idx",d).text(b[d]).appendTo(l);a.pos=0;h(a.el).hide()});e(f[d]?d:0);c.lock();c.redraw();return c};c.navigated=function(){var a=this.nav;if(a)return h(a).data("idx")};c=null;return f}({},q,y));n.register("$24",function(f,c,h){function l(b){this.reIndex([]);if(b)for(var c in b)this.add(c,b[c])}f.init=
|
147 |
+
function(b){return new l(b)};c=l.prototype;c.reIndex=function(b){for(var c={},a=-1,d=b.length;++a<d;)c[b[a]]=a;this.keys=b;this.length=a;this.ords=c};c.key=function(b,c){if(null==c)return this.keys[b];var a=this.keys[b],d=this.ords[c];if(c!==a){if(null!=d)throw Error("Clash with item at ["+d+"]");this.keys[b]=c;delete this.ords[a];this.ords[c]=b}return b};c.indexOf=function(b){b=this.ords[b];return null==b?-1:b};c.add=function(b,c){var a=this.ords[b];null==a&&(this.keys[this.length]=b,a=this.ords[b]=
|
148 |
this.length++);this[a]=c;return a};c.get=function(b){return this[this.ords[b]]};c.has=function(b){return null!=this.ords[b]};c.del=function(b){this.cut(this.ords[b],1)};c.cut=function(b,c){c=c||1;var a=[].splice.call(this,b,c);this.keys.splice(b,c);this.reIndex(this.keys);return a};c.each=function(b){for(var c=-1,a=this.keys,d=this.length;++c<d;)b(a[c],this[c],c);return this};c.sort=function(b){for(var c=-1,a=this.length,d,e=this.keys,f=this.ords,h=[];++c<a;)h[c]=[this[c],e[c]];h.sort(function(a,
|
149 |
+
d){return b(a[0],d[0])});for(c=0;c<a;c++)d=h[c],this[c]=d[0],d=d[1],e[c]=d,f[d]=c;return this};c=null;return f}({},q,y));n.register("$23",function(f,c,q){function l(a){var b=[];a&&(a.saved()||b.push("po-unsaved"),a.fuzzy()?b.push("po-fuzzy"):a.flagged()&&(b.push("po-flagged"),b.push("po-flag-"+a.flags().join(" po-flag-"))),a.translation()||b.push("po-empty"),a.comment()&&b.push("po-comment"));return b.join(" ")}function b(a,b,d){b=h(a.title(b).parentNode);var c=b.find("span.lang");d?(d=n.require("$6",
|
150 |
+
"locale.js").cast(d),c.length||(c=h("<span></span>").prependTo(b)),c.attr("lang",d.lang).attr("class",d.getIcon()||"lang region region-"+(d.region||"zz").toLowerCase())):(c.remove(),d="en");a.locale(d);return b}function g(){this.dirty=0}var a="poUpdate",d="changing",e="changed",k=0,u=1,s=2,m=3,p=4,A=5,r=/^\s+/,B,t,y=n.require("$3","string.js").sprintf,z=n.require("$17","html.js");f.extend=function(a){return a.prototype=new g};f.localise=function(a){t=a;return f};var C=function(){var a=q.createElement("p");
|
151 |
+
return function(b){a.innerHTML=b;return a.textContent}}(),w=g.prototype=n.require("$32","abstract.js").init(["getListColumns","getListHeadings","getListEntry"],["editable","t"]);w.init=function(){this.localise();this.editable={source:!0,target:!0};this.mode="";this.html=!1;return this};w.localise=function(a){a||(a=t||n.require("$1","t.js").init());var b=[];b[k]=a._x("Source text","Editor")+":";b[m]=a._x("%s translation","Editor")+":";b[p]=a._x("Context","Editor")+":";b[A]=a._x("Comments","Editor")+
|
152 |
+
":";b[u]=a._x("Single","Editor")+":";b[s]=a._x("Plural","Editor")+":";this.labels=b;this.t=a;return this};w.setRootCell=function(a){function b(a){d.redraw(!0,a);return!0}var d=n.require("$33","wingrid.js").init(a);h(c).on("resize",b);this.redraw=b;h(a).on("wgFocus wgBlur",function(a,b){B=b});this.destroy=function(){d.destroy();h(c).off("resize",b)};this.rootDiv=a;return d};g.prototype.$=function(){return h(this.rootDiv)};w.on=function(a,b){return h(this.rootDiv).on(a,b)};w.setListCell=function(a){var b=
|
153 |
+
this;b.listCell=a;a.on("wgRowSelect",function(a,d){b.loadMessage(b.po.row(d));return!0}).on("wgRowDeselect",function(a,d,c){c||b.loadNothing();return!0})};w.setSourceCell=function(a){this.sourceCell=a;var b=a.find("p.notes");b.length||(b=h('<p class="notes"></p>').insertAfter(a.header()).hide());this.notesPara=b};w.setTargetCell=function(a){this.targetCell=a};w.next=function(a,b,d){for(var c=this.listTable,e=c.selected(),f=e,g,k=this.po;null!=(e=c.next(a,d,e));){if(f===e){e=null;break}if(b&&(g=k.row(e),
|
154 |
g.translated(0)))continue;break}null!=e&&c.select(e,!0);return e};w.current=function(a){var b=this.active;if("undefined"===typeof a)return b;a?a.is(b)?this.pasteMessage(a):this.loadMessage(a):this.unloadActive();return this};w.getTargetEditable=function(){return this.editable.target&&this.targetCell&&this.targetCell.editable()};w.getSourceEditable=function(){return this.editable.source&&this.sourceCell&&this.sourceCell.editable()};w.getContextEditable=function(){return this.editable.context&&this.contextCell&&
|
155 |
this.contextCell.editable()};w.getFirstEditable=function(){return this.getTargetEditable()||this.getSourceEditable()||this.getContextEditable()};w.searchable=function(a){a&&(this.dict=a,this.po&&this.rebuildSearch());return this.dict&&!0};w.rebuildSearch=function(){var a=-1,b=this.po.rows,d=b.length,c=this.dict;for(c.clear();++a<d;)c.add(a,b[a].toText());this.lastSearch="";this.lastFound=d};w.filtered=function(){return this.lastSearch||""};w.filter=function(a,b){var d,c=this.listTable,e=this.lastFound,
|
156 |
f=this.lastSearch;if(a){if(f===a)return e||0;if(f&&!e&&0===a.indexOf(f))return 0;d=this.dict.find(a)}f=this.lastSearch=a;e=this.lastFound=d?d.length:this.po.length;d?c.filter(d):c.unfilter();b||this.fire("poFilter",[f,e]);return e};w.unsave=function(a,b){var d=!1;if(a=a||self.active){if(d=a.saved(b))this.dirty++,a.unsave(b),this.fire("poUnsaved",[a,b]);this.markUnsaved(a)}return d};w.markUnsaved=function(a){var b=this.po.indexOf(a),b=this.listTable.tr(b),d=b[0].className;changedStyle=d.replace(/(?:^| +)po-[a-z]+/g,
|
157 |
+
"")+" "+l(a);changedStyle!==d&&h(b).attr("class",changedStyle)};w.save=function(a){var b=this.po;if(this.dirty||a)b.each(function(a,b){b.save()}),this.listCell.find("div.po-unsaved").removeClass("po-unsaved"),this.dirty=0,this.fire("poSave");return b};w.fire=function(a,b){var d=this.on;if(d&&d[a]&&(d=d[a].apply(this,b||[]),!1===d))return!1;d=h.Event(a);h(this.rootDiv).trigger(d,b);return!d.isDefaultPrevented()};w.reload=function(){var a=this,b,d=a.listCell,c=a.listTable,e=a.po,f=e&&e.locale(),g=f&&
|
158 |
+
f.isRTL(),k=e&&e.length||0;if(e&&e.row)return a.lastSearch&&(a.lastSearch="",a.lastFound=k,a.fire("poFilter",[a.lastSearch,a.lastFound])),c&&(b=c.thead().distribution()),c=a.listTable=d.tabulate({length:k,getRow:function(b){return a.getListEntry(e.row(b))},getCss:function(b){return a.getListEntry(e.row(b))},eachCol:function(b){for(var d=-1,e=a.getListHeadings(),c=e.length;++d<c;)b(d,e[d])},eachRow:function(b){var d=0;e.each(function(e,c){b(d++,a.getListEntry(c),l(c))})}}),b&&c.thead().distribute(b),
|
159 |
c.tbody().$(g?"addClass":"removeClass",["is-rtl"]),a.targetLocale=f,a.fire("poLoad"),!!e.length;d&&d.clear().header("Error").contents("Invalid messages list")};w.load=function(a,b){this.po=a;this.dict&&this.rebuildSearch();this.reload()&&(-1!==b?this.listTable.select(b||0):this.active&&this.unloadActive())};w.pasteMessage=function(a){var b,d=0;if(b=this.sourceCell)b.eachTextarea(function(b){b.val(a.source(null,d++))}),this.updateListCell(a,"source");(b=this.contextCell)&&b.eachTextarea(function(b){b.val(a.context())});
|
160 |
+
if(b=this.targetCell)d=0,b.eachTextarea(function(b){b.val(a.translation(d++))}),this.updateListCell(a,"target");return this};w.loadMessage=function(c){function f(g){var h,m=g,l=g.id,m=!1;h=K[k];g.off();N&&(P?(P=z.h(P,!0),N.html(P).show(),z.init(N),m=!0):N.text()&&(m=!0,N.text("").hide()));g.titled()!==h&&b(g,h,r.sourceLocale||"en");m&&g.clear();Q?(h=g.splity(l+"-singular",l+"-plural"),m=h[0],h=h[1],m.header(K[u]).textarea(Z,R).setMode(t).setInvs(C),h.header(K[s]).textarea(Q,R).setMode(t).setInvs(C),
|
161 |
+
g.lock()):g.textarea(Z,R).setMode(t).setInvs(C);R&&g.on(d,function(a,b){Q&&a.target.name===l+"-plural"?c.plural(b):(c.source(b),r.updateListCell(c,"source"));r.unsave(c,M)}).on(e,function(b){Q&&b.target.name===l+"-plural"||r.po.reIndex(c);r.dict&&r.rebuildSearch();r.fire(a,[c])})}function g(f,k,h){f.off();var u=k.isKnown()&&k.label||"Target",u=y(K[m],u);f.titled()!==u&&b(f,u,k);if(c.pluralized()){var l=[],p=k.plurals||["One","Other"],s=n.require("$24","collection.js").init();for(c.each(function(a,
|
162 |
+
b,d){if(d||p[a])l.push(p[a]||"Form "+a),s.add("plural-"+a,d)});(u=l.length)<k.nplurals;)l.push(p[u]||"Form "+s.length),s.add("plural-"+u,c.translation(u));children=f.splitx.apply(f,s.keys);f.each(function(a,b){var d=L&&!c.disabled(b);a.textarea(s[b],d).setMode(t).setInvs(C)});f.navigize(l,h||null).on("wgTabSelect",function(a,b){var d=L&&a.cell.editable();d&&d.focus();h=b;r.fire("poTab",[b])})}else h=0,L=L&&!c.disabled(0),f.textarea(c.translation(),L).setMode(t).setInvs(C);L&&f.on(d,function(a,b,d){c.translate(b,
|
163 |
+
h);0===h&&r.updateListCell(c,"target");c.fuzzy(h)?r.fuzzy(!1,c,h):r.unsave(c,h);""===b?r.fire("poEmpty",[!0,c,h]):""===d&&r.fire("poEmpty",[!1,c,h])}).on(e,function(b){r.dict&&r.rebuildSearch();r.fire(a,[c])})}function l(f){f.off();b(f,K[p]);f.textarea(c.context(),!0).setMode(t).setInvs(C);T&&f.on(d,function(a,b){c.context(b);r.updateListCell(c,"source");r.unsave(c,M)}).on(e,function(){r.po.reIndex(c);r.dict&&r.rebuildSearch();r.fire(a,[c])})}function q(a){var e=K[A];a.titled()!==e&&b(a,e);a.off().on(d,
|
164 |
+
function(a,b){c.comment(b);r.fire("poComment",[c,b]);r.unsave(c,M)}).textarea(c.comment(),!0)}var r=this,t=r.mode,w=c.isHTML(),C=r.inv||!1,I=this.fmt||null,F=c.format()||null,S=c.is(r.active),M=0,W=r.sourceCell,V=r.targetCell,X=r.contextCell,Y=r.commentCell,N=r.notesPara,L=r.editable.target,R=r.editable.source,T=r.editable.context,Z=c.source()||"",Q=c.plural()||"",P=c.notes(),O=B,$=r.targetLocale,K=r.labels;r.html!==w&&(r.html=w,"code"!==r.mode&&(t=w?"html":"",r.setMode(t)));r.active=c;W&&f(W);X&&
|
165 |
+
l(X);V&&$&&(M=V.navigated()||0,g(V,$,M));Y&&q(Y);O&&(O.exists()||(O=O.parent()),(w=O.editable())&&w.focus());I!==F&&(w=h(r.rootDiv),F&&w.addClass(F+"-format"),I&&w.removeClass(I+"-format"),this.fmt=F);S||r.fire("poSelected",[c])};w.unloadActive=function(){var a;(a=this.notesPara)&&a.text("").hide();(a=this.sourceCell)&&a.off().clear();(a=this.contextCell)&&a.off().clear();(a=this.targetCell)&&a.off().clear();(a=this.commentCell)&&a.off();this.active&&(this.fire("poDeselected",[this.active]),this.active=
|
166 |
null);return this};w.loadNothing=function(){var a,b=this.t,d=this.mode||"",c=this.inv||!1;this.unloadActive();(a=this.commentCell)&&a.textarea("",!1);if(a=this.sourceCell)a.textarea("",!1).setMode(d).setMode(d).setInvs(c),a.title(b._x("Source text not loaded","Editor")+":");if(a=this.contextCell)a.textarea("",!1).setMode(d).setMode(d).setInvs(c),a.title(b._x("Context not loaded","Editor")+":");if(a=this.targetCell)a.textarea("",!1).setMode(d).setMode(d).setInvs(c),a.title(b._x("Translation not loaded",
|
167 |
+
"Editor")+":");this.fire("poSelected",[null])};w.updateListCell=function(a,b){var d=this.getListColumns()[b],c=this.getListEntry(a)[d||0],e=this.po.indexOf(a);if(d=this.listTable.td(e,d))d.textContent=c};w.cellText=function(a){if(-1!==a.indexOf("<")||-1!==a.indexOf("&"))a=C(a);return a.replace(r,"")||"\u00a0"};w.fuzzy=function(b,d,c){if(!d){d=this.active;if(!d)return null;null==c&&(c=this.targetCell&&this.targetCell.navigated()||0)}var e=d.fuzzy(c);null==b||e==b||b&&!d.translated(c)||!this.fire("poFuzzy",
|
168 |
[d,b,c])||(d.fuzzy(c,b),this.fire(a,[d])&&this.unsave(d,c));return e};w.add=function(b,d){var c,e=this.po.get(b,d);e?c=this.po.indexOf(e):(c=this.po.length,e=this.po.add(b,d),this.load(this.po,-1),this.fire("poAdd",[e]),this.fire(a,[e]));this.lastSearch&&this.filter("");this.listTable.select(c);return e};w.del=function(b){if(b=b||this.active){var d=this.lastSearch,c=this.po.del(b);null!=c&&(this.unsave(b),this.fire("poDel",[b]),this.fire(a,[b]),this.reload(),this.dict&&this.rebuildSearch(),this.active&&
|
169 |
this.active.equals(b)&&this.unloadActive(),this.po.length&&(d&&this.filter(d),this.active||(c=Math.min(c,this.po.length-1),this.listTable.select(c))))}};w.setMono=function(a){return this.setMode(a?"code":this.html?"html":"")};w.setMode=function(a){this.mode!==a&&(this.mode=a,this.callTextareas(function(b){b.setMode(a)}));return this};w.getMono=function(){return"code"===this.mode};w.setInvs=function(a){(this.inv||!1)!==a&&(this.inv=a,this.callTextareas(function(b){b.setInvs(a)}),this.fire("poInvs",
|
170 |
+
[a]));return this};w.getInvs=function(){return this.inv||!1};w.callTextareas=function(a){var b=this.targetCell;b&&b.eachTextarea(a);(b=this.contextCell)&&b.eachTextarea(a);(b=this.sourceCell)&&b.eachTextarea(a);return this};w=null;return f}({},q,y));n.register("$12",function(f,c,h){function l(){this.init()._validate();this.sourceLocale={lang:"en",label:"English",plurals:["One","Other"]}}c=n.require("$23","base.js");f.init=function(b){var c=new l;b=c.setRootCell(b);var a=b.splity("po-list","po-edit"),
|
171 |
+
d=a[0],e=a[1],a=e.splitx("po-trans","po-comment"),f=a[0],h=a[1].header("Loading.."),a=f.splity("po-source","po-target"),f=a[0].header("Loading.."),a=a[1].header("Loading..");b.distribute([0.34]);e.distribute([0.8]);c.setListCell(d);c.setSourceCell(f);c.setTargetCell(a);c.commentCell=h;c.editable.source=!1;return c};c=l.prototype=c.extend(l);c.getListHeadings=function(){var b=this.t||{_x:function(b){return b}};return[b._x("Source text","Editor"),b._x("Translation","Editor")]};c.getListColumns=function(){return{source:0,
|
172 |
target:1}};c.getListEntry=function(b){if(!b)return["",""];var c=this.cellText,a=[c(b.id||b.source()||""),c(b.translation()||"")];if(b=b.context())a[0]+=" [ "+c(b)+" ]";return a};c.stats=function(){var b=this.po.length,c=0,a=0,d=0;this.po.each(function(b,f){f.translation()?f.fuzzy()?d++:c++:a++});return{t:b,p:String(c?Math.round(100*(c/b)):0)+"%",f:d,u:a}};c.unlock=function(){this._unlocked||(this._unlocked=this.targetLocale,delete this.targetLocale,this.po&&this.po.unlock(),this.editable={source:!0,
|
173 |
context:!0,target:!1},this.contextCell=this.targetCell,delete this.targetCell,this.fire("poLock",[!1]),this.active&&this.loadMessage(this.active))};c.lock=function(){var b;this._unlocked&&(b=this.targetLocale=this._unlocked,delete this._unlocked,this.po&&this.po.lock(b),this.editable={source:!1,context:!1,target:!0},this.targetCell=this.contextCell,delete this.contextCell,this.fire("poLock",[!0,b]),this.active&&this.loadMessage(this.active))};c.locked=function(){return!this._unlocked};return f}({},
|
174 |
+
q,y));n.register("$13",function(f,c,n){var l={copy:66,clear:75,save:83,fuzzy:85,next:40,prev:38,enter:13,invis:73},b={38:!0,40:!0,73:!0},g={66:function(a,b){var c=b.current();c&&(c.normalize(),b.pasteMessage(c))},75:function(a,b){var c=b.current();c&&(c.untranslate(),b.pasteMessage(c))},85:function(a,b){b.fuzzy(!b.fuzzy())},13:function(a,b){b.getFirstEditable()&&b.next(1,!0,!0)},40:function(a,b){var c=a.shiftKey;b.next(1,c,c)},38:function(a,b){var c=a.shiftKey;b.next(-1,c,c)},73:function(a,b){if(!a.shiftKey)return!1;
|
175 |
+
b.setInvs(!b.getInvs())}};f.init=function(a,d){function e(d){if(d.isDefaultPrevented()||!d.metaKey&&!d.ctrlKey)return!0;var c=d.which;if(!f[c])return!0;var e=g[c];if(!e)throw Error("command undefined #"+c);if(d.altKey||d.shiftKey&&!b[c]||!1===e(d,a))return!0;d.stopPropagation();d.preventDefault();return!1}var f={};h(d||c).on("keydown",e);return{add:function(a,b){g[l[a]]=b;return this},enable:function(){var a,b;for(b in arguments)a=l[arguments[b]],f[a]=!0;return this},disable:function(){h(d||c).off("keydown",
|
176 |
+
e);a=d=f=null}}};return f}({},q,y));n.register("$25",function(f,c,h){function l(b,c){var a=RegExp("^.{0,"+(b-1)+"}["+c+"]"),d=RegExp("^[^"+c+"]+");return function(c,f){for(var g=c.length,h;g>b;){h=a.exec(c)||d.exec(c);if(null==h)break;h=h[0];f.push(h);h=h.length;g-=h;c=c.substr(h)}0!==g&&f.push(c);return f}}f.create=function(b){function c(a){return n[a]||"\\"+a}var a,d,e=/(?:\r\n|[\r\n\v\f\u2028\u2029])/g,f=/[ \r\n]+/g,h=/[\t\v\f\x07\x08\\\"]/g,n={"\t":"\\t","\v":"\\v","\f":"\\f","\u0007":"\\a","\b":"\\b"};
|
177 |
+
null==b&&(b=79);0!==b&&(a=l(b-3," "),d=l(b-2,"-\u2013 \\.,:;\\?!\\)\\]\\}\\>"));return{pair:function(a,f){if(!f)return a+' ""';f=f.replace(h,c);var k=0;f=f.replace(e,function(){k++;return"\\n\n"});if(!(k||b&&b<f.length+a.length+3))return a+' "'+f+'"';var l=[a+' "'],n=f.split("\n");if(d)for(var s=-1,q=n.length;++s<q;)d(n[s],l);else l=l.concat(n);return l.join('"\n"')+'"'},prefix:function(a,b){var d=a.split(e);return b+d.join("\n"+b)},refs:function(b){b=b.replace(f," ",b);a&&(b=a(b,[]).join("\n#: "));
|
178 |
+
return"#: "+b}}};return f}({},q,y));n.register("$26",function(f,c,h){function l(){}f.extend=function(b){return b.prototype=new l};c=l.prototype=n.require("$32","abstract.js").init(["add","load"]);c.row=function(b){return this.rows[b]};c.lock=function(b){return this.locale(b||{lang:"zxx",label:"Unknown",nplurals:1,pluraleq:"n!=1"})};c.unlock=function(){var b=this.loc;this.loc=null;return b};c.locale=function(b){var c=n.require("$6","locale.js");null==b?b=this.loc:this.loc=b=c.cast(b);return b};c.each=
|
179 |
function(b){this.rows.each(b);return this};c.indexOf=function(b){"object"!==typeof b&&(b=this.get(b));if(!b)return-1;null==b.idx&&(b.idx=this.rows.indexOf(b.hash()));return b.idx};c.get=function(b){return this.rows&&this.rows.get(b)};c.del=function(b){b=this.indexOf(b);if(-1!==b){var c=this.rows.cut(b,1);if(c&&c.length)return this.length=this.rows.length,this.rows.each(function(a,b,c){b.idx=c}),b}};c.reIndex=function(b,c){var a=this.indexOf(b),d=b.hash(),e=this.rows.indexOf(d);return e===a?a:-1!==
|
180 |
+
e?(c=(c||0)+1,b.source("Error, duplicate "+String(c)+": "+b.source()),this.reIndex(b,c)):this.rows.key(a,d)};c=null;return f}({},q,y));n.register("$27",function(f,c,h){function l(){this.id=this._id=this.ref=this.cmt=this.xcmt=""}f.extend=function(b){return b.prototype=new l};c=l.prototype;c.flag=function(b,c){var a=this.flg||(this.flg=[]);if(null!=c)a[c]=b;else for(var d=Math.max(a.length,this.src.length,this.msg.length);0!==d--;)a[d]=b;return this};c.flagged=function(b){var c=this.flg||[];if(null!=
|
181 |
b)return c[b]||0;for(b=c.length;0!==b--;)if(c[b])return!0;return!1};c.flags=function(){for(var b,c={},a=[],d=this.flg||[],e=d.length;0!==e--;)b=d[e],c[b]||(c[b]=!0,a.push(b));return a};c.flaggedAs=function(b,c){var a=this.flg||[];if(null!=c)return b===a[c]||0;for(var d=a.length;0!==d--;)if(a[d]===b)return!0;return!1};c.fuzzy=function(b,c){var a=this.flaggedAs(4,b);null!=c&&this.flag(c?4:0,b);return a};c.source=function(b,c){if(null==b)return this.src[c||0]||"";this.src[c||0]=b;return this};c.plural=
|
182 |
function(b,c){if(null==b)return this.src[c||1]||"";this.src[c||1]=b||"";return this};c.each=function(b){for(var c=-1,a=this.src,d=this.msg,e=Math.max(a.length,d.length);++c<e;)b(c,a[c],d[c]);return this};c.pluralized=function(){return 1<this.src.length||1<this.msg.length};c.translate=function(b,c){this.msg[c||0]=b||"";return this};c.untranslate=function(b){null!=b&&(this.msg[b]="");for(b=0;b<this.msg.length;b++)this.msg[b]="";return this};c.translation=function(b){return this.msg[b||0]||""};c.translated=
|
183 |
function(b){if(null!=b)return!!this.translation(b);var c=this.msg.length;for(b=0;b<c;b++)if(!this.msg[b])return!1;return!0};c.comment=function(b){if(null==b)return this.cmt;this.cmt=b||"";return this};c.notes=function(b){if(null==b)return this.xcmt;this.xcmt=b||"";return this};c.refs=function(b){if(null==b)return this.ref;this.ref=b||"";return this};c.format=function(b){if(null==b)return this.fmt;this.fmt=b;return this};c.context=function(b){if(null==b)return this.ctx||"";this.ctx=b||"";return this};
|
184 |
c.toString=c.toText=function(){return this.src.concat(this.msg,[this.id,this.ctx]).join(" ")};c.weight=function(){var b=0;this.translation()||(b+=2);this.fuzzy()&&(b+=1);return b};c.equals=function(b){return this===b||this.hash()===b.hash()};c.hash=function(){return this.id};c.normalize=function(){for(var b=this.msg.length;0!==b--;)this.msg[b]=this.src[b]||""};c.disabled=function(b){return!!(this.lck||[])[b||0]};c.disable=function(b){(this.lck||(this.lck=[]))[b||0]=!0;return this};c.saved=function(b){var c=
|
185 |
+
this.drt;if(!c)return!0;if(null!=b)return!c[b];for(b=c.length;0!==b--;)if(c[b])return!1;return!0};c.unsave=function(b){(this.drt||(this.drt=[]))[b||0]=!0;return this};c.save=function(b){var c=this.drt;null==b?this.drt=null:c[b]=!1;return this};c.is=function(b){return b&&(b===this||b.idx===this.idx)};c.isHTML=function(b){if(null==b)return this.htm||!1;this.htm=b};c=null;return f}({},q,y));n.register("$14",function(f,c,h){function l(a){return{"Project-Id-Version":"PACKAGE VERSION","Report-Msgid-Bugs-To":"",
|
186 |
+
"POT-Creation-Date":a||"","PO-Revision-Date":a||"","Last-Translator":"","Language-Team":"",Language:"","Plural-Forms":"","MIME-Version":"1.0","Content-Type":"text/plain; charset=UTF-8","Content-Transfer-Encoding":"8bit"}}function b(a,b){var c=a||"";b&&(c+="\x00"+b);return c}function g(){return n.require("$24","collection.js").init()}function a(a){this.locale(a);this.length=0;this.rows=g();this.head=l(this.now())}function d(a,b){this.src=[a||""];this.msg=[b||""]}f.create=function(b){return new a(b)};
|
187 |
+
c=n.require("$26","messages.js").extend(a);c.now=function(){function a(b,c){for(var d=String(b);d.length<c;)d="0"+d;return d}var b=new Date,c=b.getUTCFullYear(),d=b.getUTCMonth()+1,f=b.getUTCDate(),g=b.getUTCHours(),b=b.getUTCMinutes();return a(c,4)+"-"+a(d,2)+"-"+a(f,2)+" "+a(g,2)+":"+a(b,2)+"+0000"};c.header=function(a,b){var c=this.head||(this.head={});if(null==b)return this.headers()[a]||"";c[a]=b||"";return this};c.headers=function(a){var b,c=this.now(),d=this.head||(this.head=l(c));if(null!=
|
188 |
+
a){for(b in a)d[b]=a[b];return this}var f=this.locale();a={};for(b in d)a[b]=String(d[b]);f?(a.Language=String(f)||"zxx",a["Language-Team"]=f.label||a.Language,a["Plural-Forms"]="nplurals="+(f.nplurals||"2")+"; plural="+(f.pluraleq||"n!=1"),a["PO-Revision-Date"]=c):(a.Language="",a["Plural-Forms"]="nplurals=INTEGER; plural=EXPRESSION",a["POT-Creation-Date"]=c,a["PO-Revision-Date"]="YEAR-MO-DA HO:MI+ZONE");a["X-Generator"]="Loco - https://localise.biz/";return a};c.get=function(a,c){var d=b(a,c);return this.rows.get(d)};
|
189 |
+
c.add=function(a,b){a instanceof d||(a=new d(a));b&&a.context(b);var c=a.hash();if(this.rows.get(c))throw Error("Duplicate message at index "+this.indexOf(a));a.idx=this.rows.add(c,a);this.length=this.rows.length;return a};c.load=function(a){for(var b=-1,c,f,g,h,l,n,q=[],t=[],y=[],z=[];++b<a.length;)c=a[b],null==c.parent?(f=c.source||c.id,g=c.target||"",h=c.context,f||h?(l=new d(f,g),l._id=c._id,h&&l.context(h),c.flag&&l.flag(c.flag,0),c.comment&&l.comment(c.comment),c.notes&&l.notes(c.notes),c.refs&&
|
190 |
+
l.refs(c.refs),null!==c.format&&l.format(c.format),c.message=l,l.translation()?l.fuzzy()?y.push(l):t.push(l):z.push(l)):0===b&&"object"===typeof g&&(this.head=g)):q.push(c);for(b=-1;++b<q.length;)try{c=q[b];f=c.source||c.id;l=a[c.parent]&&a[c.parent].message;if(!l)throw Error("parent missing for plural "+f);n=c.plural;1===n&&l.plural(f);c.flag&&l.flag(c.flag,n);l.translate(c.target||"",n);c.format&&!l.format()&&l.format(c.format)}catch(C){}return this._add(z,y,t)};c._add=function(a,b,c){c=[a,b,c];
|
191 |
+
for(i=0;3>i;i++)for(b=c[i],a=-1;++a<b.length;)try{this.add(b[a])}catch(d){}return this};c.merge=function(a){var b,c=a.header("POT-Creation-Date"),d=this.rows,f=[],h=[],l=[],n=[],q=[];a=a.rows;this.rows.each(function(b,c){null==a.get(b)&&q.push(c)});a.each(function(a,c){try{(b=d.get(a))?(b.ref=c.ref,b.fmt=c.fmt):(b=c,n.push(b)),b.translation()?b.fuzzy()?h.push(b):l.push(b):f.push(b)}catch(e){}});this.rows=g();this._add(f,h,l);c&&this.header("POT-Creation-Date",c);return{add:n,del:q}};c.toString=function(){var a,
|
192 |
+
b=[],c=[],f=this.headers(),g=!this.loc,h=n.require("$25","format.js").create(void 0);for(a in f)c.push(a+": "+f[a]);c=new d("",c.join("\n"));g&&c.fuzzy(0,!0);b.push(c.toString());b.push("");this.rows.each(function(a,c){a&&(b.push(c.cat(h,g)),b.push(""))});return b.join("\n")};c=n.require("$27","message.js").extend(d);c.hash=function(){return b(this.source(),this.context())};c.source=function(a,b){if(null==a)return this.src[0];this.src[0]=a;null!=b&&this.plural(b);return this};c.toString=function(){return this.cat(n.require("$25",
|
193 |
"format.js").create(void 0))};c.cat=function(a,b){var c,d=[],f;(f=this.cmt)&&d.push(a.prefix(f,"# "));(f=this.xcmt)&&d.push(a.prefix(f,"#. "));c=this.ref;if(f=this._id)c+=(c?" ":"")+"loco:"+f;c&&/\S/.test(c)&&d.push(a.refs(c));!b&&this.fuzzy()&&d.push("#, fuzzy");(f=this.fmt)?d.push("#, "+f+"-format"):null!=f&&d.push("#, no-c-format");(f=this.ctx)&&d.push(a.pair("msgctxt",f));d.push(a.pair("msgid",this.src[0]));if(null==this.src[1])d.push(a.pair("msgstr",b?"":this.msg[0]));else for(c=-1,d.push(a.pair("msgid_plural",
|
194 |
+
this.src[1]));++c<this.msg.length;)d.push(a.pair("msgstr["+c+"]",b?"":this.msg[c]));return d.join("\n")};c.compare=function(a,b){var c=this.weight(),d=a.weight();if(c>d)return 1;if(c<d)return-1;if(b){c=this.hash().toLowerCase();d=a.hash().toLowerCase();if(c<d)return 1;if(c>d)return-1}return 0};c=c=null;return f}({},q,y));n.register("$15",function(f,c,n){f.init=function(f){function b(){D&&D.dialog("close");h(f).find('input[type="submit"]').attr("disabled",!1);h(r).addClass("jshide");q&&q(!0)}function g(){h(f).find('input[type="submit"]').attr("disabled",
|
195 |
+
!0);q&&q(!1)}function a(a){var b,c;for(b in p)c=p[b],a[b]?a[b].value=c:h('<input type="hidden" />').attr("name",b).appendTo(a).val(c)}function d(a){a.preventDefault();a=h(a.target).serializeArray();m(a);t=!0;return!1}function e(a){a.preventDefault();D.dialog("close");return!1}function k(a){a.preventDefault();D.dialog("open");return!1}function n(c){p=c.authed&&c.creds;B=c.method;if(p)"direct"!==B&&(a(f),t&&c.success&&z.notices.success(c.success)),y=!0,b();else if(y=!1,c.reason)z.notices.info(c.reason);
|
196 |
+
else if(c=c.prompt){var g;D||(h(r).find("button.button-small").click(k),D=h('<div id="loco-fs-creds"></div>').dialog({dialogClass:"request-filesystem-credentials-dialog loco-modal",minWidth:480,modal:!0,autoOpen:!1,closeOnEscape:!0}));g=D;g.html(c).find("form").submit(d);g.dialog("option","title",g.find("h2").remove().text());g.find("button.cancel-button").show().click(e);g.find('input[type="submit"]').addClass("button-primary");h(r).removeClass("jshide")}else z.notices.error("Server didn't return credentials, nor a prompt for credentials")}
|
197 |
+
function s(){b()}function m(a){t=!1;a.path=C;a.auth=w;z.ajax.setNonce("fsConnect",v).post("fsConnect",a,n,s);return a}var p,q,r=f,B=null,t=!1,y=!1,z=c.locoScope,C=f.path.value,w=f.auth.value,v=f["loco-nonce"].value,D;f.connection_type?(p={},p.connection_type=f.connection_type.value,y=!0):C&&w&&(g(),m({}));return{applyCreds:function(b){if(b.nodeType)a(b);else{var c,d=p||{};for(c in d)b[c]=d[c]}return this},setForm:function(b){f=b;y||g();a(b);return this},connect:function(){var a=h(f).serializeArray();
|
198 |
+
C=a.path;w=a.auth;m(a);return this},listen:function(a){q=a;y&&a(!0);return this}}};return f}({},q,y));n.register("$16",function(f,c,q){function l(c,f,h,l){f="n"===h?g(f):a(f);l&&(f=d(f));return b([].sort,[f])(c)}function b(a,b){return function(c){a.apply(c,b);return c}}function g(a){return function(b,c){var d=b&&b[a]||0,f=c&&c[a]||0;return d===f?0:d>f?1:-1}}function a(a){return function(b,c){return(b&&b[a]||"").localeCompare(c&&c[a]||"")}}function d(a){return function(b,c){return-1*a(b,c)}}f.init=
|
199 |
+
function(a){function b(a){var c=-1,d=a.length;for(h("tr",t).remove();++c<d;)t.appendChild(a[c].$)}function c(a){q=a?z.find(a,d):d.slice(0);y&&(a=f[y],q=l(q,y,a.type,a.desc));b(q)}var d=[],f=[],g=0,q,r,y,t=a.getElementsByTagName("tbody")[0],E=a.getElementsByTagName("thead")[0],z=n.require("$7","fulltext.js").init();E&&t&&(h("th",E).each(function(a,c){var e=c.getAttribute("data-sort-type");e&&(a=g,h(c).addClass("loco-sort").click(function(c){c.preventDefault();c=a;var e=f[c],g=e.type,n=!(e.desc=!e.desc);
|
200 |
+
q=l(q||d.slice(0),c,g,n);b(q);r&&r.removeClass("loco-desc loco-asc");r=h(e.$).addClass(n?"loco-desc":"loco-asc").removeClass(n?"loco-asc":"loco-desc");y=c;return!1}),f[g]={$:c,type:e});c.hasAttribute("colspan")?g+=Number(c.getAttribute("colspan")):g++}),h("tr",t).each(function(a,b){var c,e,g,h=[],k={_:a,$:b},l=b.getElementsByTagName("td");for(e in f){c=l[e];(g=c.textContent.replace(/(^\s+|\s+$)/g,""))&&h.push(g);c.hasAttribute("data-sort-value")&&(g=c.getAttribute("data-sort-value"));switch(f[e].type){case "n":g=
|
201 |
+
Number(g)}k[e]=g}d[a]=k;z.index(a,h)}),a=h('form.loco-filter input[type="text"]',a.parentNode),a.length&&(a=a[0],E=h(a.form),1<d.length?n.require("$8","LocoTextListener.js").listen(a,c):E.hide(),E.on("submit",function(a){a.preventDefault();return!1})))};return f}({},q,y));var F=q.locoScope||(q.locoScope={});q=q.locoConf||(q.locoConf={});y=n.require("$1","t.js").init();var S=q.wplang;n.require("$2","array.js");F.l10n=y;y.load(q.wpl10n);S&&y.pluraleq(S.pluraleq);F.string=n.require("$3","string.js");
|
202 |
+
F.notices=n.require("$4","notices.js").init(y);F.ajax=n.require("$5","ajax.js").init(q).localise(y);F.locale=n.require("$6","locale.js");F.fulltext=n.require("$7","fulltext.js");F.watchtext=n.require("$8","LocoTextListener.js").listen;F.selector=n.require("$9","LocoSelector.js").create;F.autocomp=n.require("$10","LocoAutoComplete.js").init;F.tooltip=n.require("$11","tooltip.js");F.po={ed:n.require("$12","poedit.js"),kbd:n.require("$13","hotkeys.js"),init:n.require("$14","po.js").create};F.fs=n.require("$15",
|
203 |
+
"fsconn.js");h("#loco.wrap table.wp-list-table").each(function(f,c){n.require("$16","tables.js").init(c)})})(window,document,window.jQuery);
|
readme.txt
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
=== Plugin Name ===
|
2 |
Contributors: timwhitlock
|
3 |
-
Tags: translation, translators, localization, localisation, l10n, i18n, Gettext, PO, MO, productivity
|
4 |
Requires at least: 4.1
|
5 |
-
Tested up to: 4.
|
6 |
-
Stable tag: 2.0.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -85,6 +85,12 @@ Help is provided via the [plugin support forum](https://wordpress.org/support/pl
|
|
85 |
|
86 |
== Changelog ==
|
87 |
|
|
|
|
|
|
|
|
|
|
|
|
|
88 |
= 2.0.10 =
|
89 |
* Allows missing domain argument in plugin_locale filter
|
90 |
* Reverted editor changes that disabled readonly text
|
@@ -150,7 +156,7 @@ Help is provided via the [plugin support forum](https://wordpress.org/support/pl
|
|
150 |
|
151 |
== Upgrade Notice ==
|
152 |
|
153 |
-
= 2.0.
|
154 |
* Various bug fixes and improvements
|
155 |
|
156 |
|
1 |
=== Plugin Name ===
|
2 |
Contributors: timwhitlock
|
3 |
+
Tags: translation, translators, localization, localisation, l10n, i18n, Gettext, PO, MO, productivity, multilingual
|
4 |
Requires at least: 4.1
|
5 |
+
Tested up to: 4.7
|
6 |
+
Stable tag: 2.0.11
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
85 |
|
86 |
== Changelog ==
|
87 |
|
88 |
+
= 2.0.11 =
|
89 |
+
* Extra debug logging and error diagnostics
|
90 |
+
* Forcefully clear output buffers before Ajax flush
|
91 |
+
* Bumped WordPress version to 4.7
|
92 |
+
* Experimental wildcard text domain support
|
93 |
+
|
94 |
= 2.0.10 =
|
95 |
* Allows missing domain argument in plugin_locale filter
|
96 |
* Reverted editor changes that disabled readonly text
|
156 |
|
157 |
== Upgrade Notice ==
|
158 |
|
159 |
+
= 2.0.11 =
|
160 |
* Various bug fixes and improvements
|
161 |
|
162 |
|
src/admin/init/InitPotController.php
CHANGED
@@ -90,12 +90,12 @@ class Loco_admin_init_InitPotController extends Loco_admin_bundle_BaseController
|
|
90 |
foreach( $sources as $sourceFile ){
|
91 |
$nfiles++;
|
92 |
$fsize = $sourceFile->size();
|
|
|
93 |
if( $fsize > $max ){
|
94 |
$nskip += 1;
|
95 |
}
|
96 |
else {
|
97 |
$bytes += $fsize;
|
98 |
-
$largest = max( $largest, $fsize );
|
99 |
}
|
100 |
}
|
101 |
$this->set( 'scan', new Loco_mvc_ViewParams( array (
|
90 |
foreach( $sources as $sourceFile ){
|
91 |
$nfiles++;
|
92 |
$fsize = $sourceFile->size();
|
93 |
+
$largest = max( $largest, $fsize );
|
94 |
if( $fsize > $max ){
|
95 |
$nskip += 1;
|
96 |
}
|
97 |
else {
|
98 |
$bytes += $fsize;
|
|
|
99 |
}
|
100 |
}
|
101 |
$this->set( 'scan', new Loco_mvc_ViewParams( array (
|
src/error/AdminNotices.php
CHANGED
@@ -19,7 +19,6 @@ class Loco_error_AdminNotices extends Loco_hooks_Hookable {
|
|
19 |
private $inline = false;
|
20 |
|
21 |
|
22 |
-
|
23 |
/**
|
24 |
* @return Loco_error_AdminNotices
|
25 |
*/
|
@@ -43,6 +42,19 @@ class Loco_error_AdminNotices extends Loco_hooks_Hookable {
|
|
43 |
if( did_action('admin_notices') ){
|
44 |
$notices->on_admin_notices();
|
45 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
return $error;
|
47 |
}
|
48 |
|
@@ -66,7 +78,7 @@ class Loco_error_AdminNotices extends Loco_hooks_Hookable {
|
|
66 |
|
67 |
|
68 |
/**
|
69 |
-
* Raise a generic
|
70 |
* @return Loco_error_Notice
|
71 |
*/
|
72 |
public static function info( $message ){
|
@@ -114,7 +126,6 @@ class Loco_error_AdminNotices extends Loco_hooks_Hookable {
|
|
114 |
return $data;
|
115 |
}
|
116 |
|
117 |
-
|
118 |
|
119 |
/**
|
120 |
* @return void
|
@@ -170,11 +181,14 @@ class Loco_error_AdminNotices extends Loco_hooks_Hookable {
|
|
170 |
|
171 |
|
172 |
/**
|
|
|
173 |
* Make sure we always see notices if hooks didn't fire
|
174 |
*/
|
175 |
public function __destruct(){
|
176 |
$this->inline = false;
|
177 |
-
|
|
|
|
|
178 |
}
|
179 |
|
180 |
}
|
19 |
private $inline = false;
|
20 |
|
21 |
|
|
|
22 |
/**
|
23 |
* @return Loco_error_AdminNotices
|
24 |
*/
|
42 |
if( did_action('admin_notices') ){
|
43 |
$notices->on_admin_notices();
|
44 |
}
|
45 |
+
// if exception wasn't thrown we have to do some work to establish where it was invoked
|
46 |
+
if( __FILE__ === $error->getFile() ){
|
47 |
+
$stack = debug_backtrace();
|
48 |
+
$error->setCallee( $stack[1] );
|
49 |
+
}
|
50 |
+
// Log everything of debug verbosity level or lower if enabled
|
51 |
+
if( $error->getLevel() < Loco_error_Exception::LEVEL_INFO ){
|
52 |
+
if( loco_debugging() && ini_get('error_log') ){
|
53 |
+
$file = new Loco_fs_File( $error->getRealFile() );
|
54 |
+
$path = $file->getRelativePath( loco_plugin_root() );
|
55 |
+
error_log( sprintf('[Loco.%s] "%s" in %s:%u', $error->getType(), $error->getMessage(), $path, $error->getRealLine() ), 0 );
|
56 |
+
}
|
57 |
+
}
|
58 |
return $error;
|
59 |
}
|
60 |
|
78 |
|
79 |
|
80 |
/**
|
81 |
+
* Raise a generic info message
|
82 |
* @return Loco_error_Notice
|
83 |
*/
|
84 |
public static function info( $message ){
|
126 |
return $data;
|
127 |
}
|
128 |
|
|
|
129 |
|
130 |
/**
|
131 |
* @return void
|
181 |
|
182 |
|
183 |
/**
|
184 |
+
* @internal
|
185 |
* Make sure we always see notices if hooks didn't fire
|
186 |
*/
|
187 |
public function __destruct(){
|
188 |
$this->inline = false;
|
189 |
+
if( ! loco_doing_ajax() ){
|
190 |
+
$this->flush();
|
191 |
+
}
|
192 |
}
|
193 |
|
194 |
}
|
src/error/Debug.php
CHANGED
@@ -19,4 +19,12 @@ class Loco_error_Debug extends Loco_error_Exception {
|
|
19 |
return __('Debug','loco');
|
20 |
}
|
21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
}
|
19 |
return __('Debug','loco');
|
20 |
}
|
21 |
|
22 |
+
|
23 |
+
/**
|
24 |
+
* {@inheritdoc}
|
25 |
+
*/
|
26 |
+
public function getLevel(){
|
27 |
+
return Loco_error_Exception::LEVEL_DEBUG;
|
28 |
+
}
|
29 |
+
|
30 |
}
|
src/error/Exception.php
CHANGED
@@ -4,14 +4,63 @@
|
|
4 |
*/
|
5 |
class Loco_error_Exception extends Exception implements JsonSerializable {
|
6 |
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
/**
|
9 |
* Get view template for rendering error to HTML.
|
10 |
* @return string path relative to root tpl directory
|
11 |
*/
|
12 |
public function getTemplate(){
|
13 |
return 'admin/errors/generic';
|
14 |
-
}
|
15 |
|
16 |
|
17 |
/**
|
@@ -23,6 +72,15 @@ class Loco_error_Exception extends Exception implements JsonSerializable {
|
|
23 |
}
|
24 |
|
25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
/**
|
27 |
* Get localized notice level name
|
28 |
* @return string
|
4 |
*/
|
5 |
class Loco_error_Exception extends Exception implements JsonSerializable {
|
6 |
|
7 |
+
const LEVEL_ERROR = 0;
|
8 |
+
const LEVEL_WARNING = 1;
|
9 |
+
const LEVEL_DEBUG = 2;
|
10 |
+
const LEVEL_INFO = 3;
|
11 |
+
|
12 |
+
|
13 |
+
/**
|
14 |
+
* Override file in which exception was thrown
|
15 |
+
* @var string
|
16 |
+
*/
|
17 |
+
private $_file;
|
18 |
+
|
19 |
+
/**
|
20 |
+
* Override line number from where exception was thrown
|
21 |
+
* @var int
|
22 |
+
*/
|
23 |
+
private $_line;
|
24 |
+
|
25 |
+
|
26 |
+
/**
|
27 |
+
* {@inheritdoc}
|
28 |
+
*/
|
29 |
+
public function getRealFile(){
|
30 |
+
$file = $this->_file or $file = parent::getFile();
|
31 |
+
return $file;
|
32 |
+
}
|
33 |
+
|
34 |
+
|
35 |
+
/**
|
36 |
+
* {@inheritdoc}
|
37 |
+
*/
|
38 |
+
public function getRealLine(){
|
39 |
+
$line = $this->_line or $line = parent::getLine();
|
40 |
+
return $line;
|
41 |
+
}
|
42 |
+
|
43 |
+
|
44 |
+
|
45 |
+
/**
|
46 |
+
* @internal
|
47 |
+
* @return Loco_error_Exception
|
48 |
+
*/
|
49 |
+
public function setCallee( array $callee ){
|
50 |
+
$this->_file = $callee['file'];
|
51 |
+
$this->_line = $callee['line'];
|
52 |
+
return $this;
|
53 |
+
}
|
54 |
+
|
55 |
+
|
56 |
+
|
57 |
/**
|
58 |
* Get view template for rendering error to HTML.
|
59 |
* @return string path relative to root tpl directory
|
60 |
*/
|
61 |
public function getTemplate(){
|
62 |
return 'admin/errors/generic';
|
63 |
+
}
|
64 |
|
65 |
|
66 |
/**
|
72 |
}
|
73 |
|
74 |
|
75 |
+
/**
|
76 |
+
* Get verbosity level
|
77 |
+
* @return int
|
78 |
+
*/
|
79 |
+
public function getLevel(){
|
80 |
+
return self::LEVEL_ERROR;
|
81 |
+
}
|
82 |
+
|
83 |
+
|
84 |
/**
|
85 |
* Get localized notice level name
|
86 |
* @return string
|
src/error/Notice.php
CHANGED
@@ -19,4 +19,12 @@ class Loco_error_Notice extends Loco_error_Exception {
|
|
19 |
return __('Notice','loco');
|
20 |
}
|
21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
}
|
19 |
return __('Notice','loco');
|
20 |
}
|
21 |
|
22 |
+
|
23 |
+
/**
|
24 |
+
* {@inheritdoc}
|
25 |
+
*/
|
26 |
+
public function getLevel(){
|
27 |
+
return Loco_error_Exception::LEVEL_INFO;
|
28 |
+
}
|
29 |
+
|
30 |
}
|
src/error/Success.php
CHANGED
@@ -19,4 +19,12 @@ class Loco_error_Success extends Loco_error_Exception {
|
|
19 |
return __('OK','loco');
|
20 |
}
|
21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
}
|
19 |
return __('OK','loco');
|
20 |
}
|
21 |
|
22 |
+
|
23 |
+
/**
|
24 |
+
* {@inheritdoc}
|
25 |
+
*/
|
26 |
+
public function getLevel(){
|
27 |
+
return Loco_error_Exception::LEVEL_INFO;
|
28 |
+
}
|
29 |
+
|
30 |
}
|
src/error/Warning.php
CHANGED
@@ -19,4 +19,12 @@ class Loco_error_Warning extends Loco_error_Exception {
|
|
19 |
return __('Warning','loco');
|
20 |
}
|
21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
}
|
19 |
return __('Warning','loco');
|
20 |
}
|
21 |
|
22 |
+
|
23 |
+
/**
|
24 |
+
* {@inheritdoc}
|
25 |
+
*/
|
26 |
+
public function getLevel(){
|
27 |
+
return Loco_error_Exception::LEVEL_WARNING;
|
28 |
+
}
|
29 |
+
|
30 |
}
|
src/mvc/AjaxRouter.php
CHANGED
@@ -84,6 +84,10 @@ class Loco_mvc_AjaxRouter extends Loco_hooks_Hookable {
|
|
84 |
*/
|
85 |
public function on_wp_ajax_loco_json(){
|
86 |
$json = $this->renderAjax();
|
|
|
|
|
|
|
|
|
87 |
header('Content-Length: '.strlen($json), true );
|
88 |
header('Content-Type: application/json; charset=UTF-8', true );
|
89 |
// avoid hijacking of exit via wp_die_ajax_handler. Tests call renderAjax directly.
|
@@ -165,11 +169,11 @@ class Loco_mvc_AjaxRouter extends Loco_hooks_Hookable {
|
|
165 |
$this->buffer->close();
|
166 |
$this->buffer = null;
|
167 |
}
|
168 |
-
|
169 |
return $json;
|
170 |
}
|
171 |
-
|
172 |
-
|
|
|
173 |
/**
|
174 |
* Execute ajax controller to render something other than JSON
|
175 |
* @return string|Exception
|
@@ -189,14 +193,11 @@ class Loco_mvc_AjaxRouter extends Loco_hooks_Hookable {
|
|
189 |
catch( Exception $e ){
|
190 |
$data = $e;
|
191 |
}
|
192 |
-
|
193 |
if( $this->buffer ){
|
194 |
$this->buffer->close();
|
195 |
$this->buffer = null;
|
196 |
}
|
197 |
-
|
198 |
return $data;
|
199 |
}
|
200 |
-
|
201 |
|
202 |
}
|
84 |
*/
|
85 |
public function on_wp_ajax_loco_json(){
|
86 |
$json = $this->renderAjax();
|
87 |
+
// avoid outputing junk in JSON stream
|
88 |
+
Loco_output_Buffer::clear();
|
89 |
+
Loco_output_Buffer::check();
|
90 |
+
// output stream is clear, we can flush JSON
|
91 |
header('Content-Length: '.strlen($json), true );
|
92 |
header('Content-Type: application/json; charset=UTF-8', true );
|
93 |
// avoid hijacking of exit via wp_die_ajax_handler. Tests call renderAjax directly.
|
169 |
$this->buffer->close();
|
170 |
$this->buffer = null;
|
171 |
}
|
|
|
172 |
return $json;
|
173 |
}
|
174 |
+
|
175 |
+
|
176 |
+
|
177 |
/**
|
178 |
* Execute ajax controller to render something other than JSON
|
179 |
* @return string|Exception
|
193 |
catch( Exception $e ){
|
194 |
$data = $e;
|
195 |
}
|
|
|
196 |
if( $this->buffer ){
|
197 |
$this->buffer->close();
|
198 |
$this->buffer = null;
|
199 |
}
|
|
|
200 |
return $data;
|
201 |
}
|
|
|
202 |
|
203 |
}
|
src/output/Buffer.php
CHANGED
@@ -1,15 +1,13 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* For buffering accidental output caused by themes and other plugins.
|
4 |
-
*
|
5 |
-
* TODO collect raised notices?
|
6 |
*/
|
7 |
class Loco_output_Buffer {
|
8 |
-
|
9 |
|
10 |
/**
|
11 |
-
* The
|
12 |
-
* @var int usually
|
13 |
*/
|
14 |
private $ob_level;
|
15 |
|
@@ -42,18 +40,45 @@ class Loco_output_Buffer {
|
|
42 |
* Ensure buffers closed if something terminates before we close gracefully
|
43 |
*/
|
44 |
public function __destruct(){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
if( is_int($this->ob_level) ){
|
46 |
-
|
|
|
|
|
47 |
}
|
|
|
48 |
}
|
49 |
|
50 |
|
51 |
|
52 |
/**
|
53 |
-
*
|
|
|
|
|
54 |
*/
|
55 |
-
public function
|
56 |
-
// Check if output has been generated before we've had a chance to buffer it
|
57 |
if( headers_sent($file,$line) ){
|
58 |
$file = str_replace( trailingslashit( loco_constant('ABSPATH') ), '', $file );
|
59 |
$message = sprintf( __('Loco interrupted by output from %s:%u','loco'), $file, $line );
|
@@ -64,20 +89,18 @@ class Loco_output_Buffer {
|
|
64 |
}
|
65 |
// @codeCoverageIgnoreEnd
|
66 |
}
|
67 |
-
$this->ob_level = ob_get_level();
|
68 |
-
ob_start();
|
69 |
-
return $this;
|
70 |
}
|
71 |
|
72 |
|
73 |
|
74 |
/**
|
75 |
-
* @
|
|
|
|
|
76 |
*/
|
77 |
-
|
78 |
-
|
79 |
-
$
|
80 |
-
$this->output = '';
|
81 |
while( $level = ob_get_level() ){
|
82 |
// avoid "impossible" infinite loop
|
83 |
// @codeCoverageIgnoreStart
|
@@ -85,17 +108,29 @@ class Loco_output_Buffer {
|
|
85 |
throw new Exception('Failed to close output buffer');
|
86 |
}
|
87 |
// @codeCoverageIgnoreEnd
|
88 |
-
|
89 |
-
if( $level <= $this->ob_level ){
|
90 |
break;
|
91 |
}
|
92 |
-
$
|
93 |
-
|
94 |
$last = $level;
|
95 |
}
|
96 |
-
|
97 |
-
$this->ob_level = null;
|
98 |
-
return $this;
|
99 |
}
|
100 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
101 |
}
|
1 |
<?php
|
2 |
/**
|
3 |
* For buffering accidental output caused by themes and other plugins.
|
4 |
+
* Also used in template rendering.
|
|
|
5 |
*/
|
6 |
class Loco_output_Buffer {
|
|
|
7 |
|
8 |
/**
|
9 |
+
* The output buffering level opened by this instance
|
10 |
+
* @var int usually 1 unless another buffer was opened before this one.
|
11 |
*/
|
12 |
private $ob_level;
|
13 |
|
40 |
* Ensure buffers closed if something terminates before we close gracefully
|
41 |
*/
|
42 |
public function __destruct(){
|
43 |
+
$this->close();
|
44 |
+
}
|
45 |
+
|
46 |
+
|
47 |
+
|
48 |
+
/**
|
49 |
+
* @return Loco_output_Buffer
|
50 |
+
*/
|
51 |
+
public function open(){
|
52 |
+
self::check();
|
53 |
+
if( ! ob_start() ){
|
54 |
+
throw new RuntimeException('Failed to start output buffering');
|
55 |
+
}
|
56 |
+
$this->ob_level = ob_get_level();
|
57 |
+
return $this;
|
58 |
+
}
|
59 |
+
|
60 |
+
|
61 |
+
|
62 |
+
/**
|
63 |
+
* @return Loco_output_Buffer
|
64 |
+
*/
|
65 |
+
public function close(){
|
66 |
if( is_int($this->ob_level) ){
|
67 |
+
// collect output from our nested buffers
|
68 |
+
$this->output = self::flush( $this->ob_level );
|
69 |
+
$this->ob_level = null;
|
70 |
}
|
71 |
+
return $this;
|
72 |
}
|
73 |
|
74 |
|
75 |
|
76 |
/**
|
77 |
+
* Check the current script has not produced unbuffered output
|
78 |
+
* @throws Loco_error_Exception
|
79 |
+
* @return void
|
80 |
*/
|
81 |
+
public static function check(){
|
|
|
82 |
if( headers_sent($file,$line) ){
|
83 |
$file = str_replace( trailingslashit( loco_constant('ABSPATH') ), '', $file );
|
84 |
$message = sprintf( __('Loco interrupted by output from %s:%u','loco'), $file, $line );
|
89 |
}
|
90 |
// @codeCoverageIgnoreEnd
|
91 |
}
|
|
|
|
|
|
|
92 |
}
|
93 |
|
94 |
|
95 |
|
96 |
/**
|
97 |
+
* @internal
|
98 |
+
* @param int highest buffer to flush
|
99 |
+
* @return string
|
100 |
*/
|
101 |
+
private static function flush( $min ){
|
102 |
+
$last = -1;
|
103 |
+
$output = '';
|
|
|
104 |
while( $level = ob_get_level() ){
|
105 |
// avoid "impossible" infinite loop
|
106 |
// @codeCoverageIgnoreStart
|
108 |
throw new Exception('Failed to close output buffer');
|
109 |
}
|
110 |
// @codeCoverageIgnoreEnd
|
111 |
+
if( $level < $min ){
|
|
|
112 |
break;
|
113 |
}
|
114 |
+
$output .= ob_get_contents();
|
115 |
+
ob_get_clean();
|
116 |
$last = $level;
|
117 |
}
|
118 |
+
return $output;
|
|
|
|
|
119 |
}
|
120 |
+
|
121 |
+
|
122 |
+
|
123 |
+
/**
|
124 |
+
* Destroy all output buffers
|
125 |
+
* @return void
|
126 |
+
*/
|
127 |
+
public static function clear(){
|
128 |
+
$junk = self::flush(0);
|
129 |
+
if( $bytes = strlen($junk) ){
|
130 |
+
do_action( 'loco_buffer_cleared', $junk );
|
131 |
+
$message = sprintf("Cleared %s of buffered output", Loco_mvc_FileParams::renderBytes($bytes) );
|
132 |
+
Loco_error_AdminNotices::debug( $message );
|
133 |
+
}
|
134 |
+
}
|
135 |
+
|
136 |
}
|
src/package/Debugger.php
CHANGED
@@ -55,7 +55,20 @@ class Loco_package_Debugger implements IteratorAggregate {
|
|
55 |
// self-declarations provided by author in file headers
|
56 |
$native = $bundle->getHeaderInfo();
|
57 |
if( $value = $native->TextDomain ){
|
58 |
-
$this->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
59 |
}
|
60 |
else {
|
61 |
$this->warn("Author doesn't define the TextDomain header");
|
55 |
// self-declarations provided by author in file headers
|
56 |
$native = $bundle->getHeaderInfo();
|
57 |
if( $value = $native->TextDomain ){
|
58 |
+
$this->info('WordPress says primary text domain is "%s"', $value);
|
59 |
+
// WordPress 4.6 changes mean this header could be a fallback and not actually declared by author
|
60 |
+
if( $bundle->isPlugin() ){
|
61 |
+
$map = array ( 'TextDomain' => 'Text Domain' );
|
62 |
+
$raw = get_file_data( $bundle->getBootstrapPath(), $map, 'plugin' );
|
63 |
+
if( empty($raw['TextDomain']) ){
|
64 |
+
$this->warn('Author doesn\'t define the TextDomain header, WordPress guessed it');
|
65 |
+
}
|
66 |
+
}
|
67 |
+
// Warn if WordPress-assumed text domain is not configured. plugin/theme headers won't be translated
|
68 |
+
$domains = $bundle->getDomains();
|
69 |
+
if( ! isset($domains[$value]) ){
|
70 |
+
$this->warn('Expected text domain "%s" is not configured', $value );
|
71 |
+
}
|
72 |
}
|
73 |
else {
|
74 |
$this->warn("Author doesn't define the TextDomain header");
|
src/package/Listener.php
CHANGED
@@ -128,7 +128,7 @@ class Loco_package_Listener extends Loco_hooks_Hookable {
|
|
128 |
|
129 |
|
130 |
/**
|
131 |
-
* Get
|
132 |
* @param string theme or plugin relative path
|
133 |
*/
|
134 |
public function getDomain( $handle ){
|
128 |
|
129 |
|
130 |
/**
|
131 |
+
* Get primary Text Domain that's uniquely assigned to a bundle
|
132 |
* @param string theme or plugin relative path
|
133 |
*/
|
134 |
public function getDomain( $handle ){
|
src/package/Plugin.php
CHANGED
@@ -64,6 +64,17 @@ class Loco_package_Plugin extends Loco_package_Bundle {
|
|
64 |
Loco_error_AdminNotices::debug( sprintf('Plugin conflict on %s', $handle) );
|
65 |
continue;
|
66 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
67 |
$data['basedir'] = $base;
|
68 |
$cached[$handle] = $data;
|
69 |
}
|
@@ -80,7 +91,7 @@ class Loco_package_Plugin extends Loco_package_Bundle {
|
|
80 |
|
81 |
/**
|
82 |
* Get raw plugin data from WordPress registry, plus additional "basedir" field for resolving handle to actual file.
|
83 |
-
* @return
|
84 |
*/
|
85 |
public static function get_plugin( $handle ){
|
86 |
$search = self::get_plugins();
|
@@ -96,7 +107,7 @@ class Loco_package_Plugin extends Loco_package_Bundle {
|
|
96 |
if( empty($data['Name']) ){
|
97 |
return null;
|
98 |
}
|
99 |
-
// basedir is added by our get_plugins function, but filtered arrays
|
100 |
if( ! array_key_exists('basedir',$data) ){
|
101 |
Loco_error_AdminNotices::debug( sprintf('"basedir" property required to resolve %s',$handle) );
|
102 |
return null;
|
@@ -198,16 +209,21 @@ class Loco_package_Plugin extends Loco_package_Bundle {
|
|
198 |
// handle and name is enough data to construct empty bundle
|
199 |
$bundle = new Loco_package_Plugin( $handle, $data['Name'] );
|
200 |
|
201 |
-
//
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
if(
|
206 |
$data['TextDomain'] = $domain;
|
207 |
if( empty($data['DomainPath']) ){
|
208 |
$data['DomainPath'] = $listener->getDomainPath($domain);
|
209 |
}
|
210 |
}
|
|
|
|
|
|
|
|
|
|
|
211 |
}
|
212 |
|
213 |
// do initial configuration of bundle from metadata
|
64 |
Loco_error_AdminNotices::debug( sprintf('Plugin conflict on %s', $handle) );
|
65 |
continue;
|
66 |
}
|
67 |
+
// WordPress 4.6 introduced TextDomain header fallback @37562 see https://core.trac.wordpress.org/changeset/37562/
|
68 |
+
// if we don't force the original text domain header we can't know if a bundle is misconfigured. This leads to silent errors.
|
69 |
+
// this has a performance overhead, and also results in "unconfigured" messages that users may not have had in previous releases.
|
70 |
+
/*/ TODO perhaps implement a plugin setting that forces original headers
|
71 |
+
$file = new Loco_fs_File($base.'/'.$handle);
|
72 |
+
if( $file->exists() ){
|
73 |
+
$map = array( 'TextDomain' => 'Text Domain' );
|
74 |
+
$raw = get_file_data( $file->getPath(), $map, 'plugin' );
|
75 |
+
$data['TextDomain'] = $raw['TextDomain'];
|
76 |
+
}*/
|
77 |
+
// set resolved base directory before caching our copy of plugin data
|
78 |
$data['basedir'] = $base;
|
79 |
$cached[$handle] = $data;
|
80 |
}
|
91 |
|
92 |
/**
|
93 |
* Get raw plugin data from WordPress registry, plus additional "basedir" field for resolving handle to actual file.
|
94 |
+
* @return array
|
95 |
*/
|
96 |
public static function get_plugin( $handle ){
|
97 |
$search = self::get_plugins();
|
107 |
if( empty($data['Name']) ){
|
108 |
return null;
|
109 |
}
|
110 |
+
// basedir is added by our get_plugins function, but filtered arrays could be broken
|
111 |
if( ! array_key_exists('basedir',$data) ){
|
112 |
Loco_error_AdminNotices::debug( sprintf('"basedir" property required to resolve %s',$handle) );
|
113 |
return null;
|
209 |
// handle and name is enough data to construct empty bundle
|
210 |
$bundle = new Loco_package_Plugin( $handle, $data['Name'] );
|
211 |
|
212 |
+
// check if listener heard the real text domain, but only use when none declared
|
213 |
+
// This will not longer happen since WP 4.6 header fallback, but we could warn about it
|
214 |
+
$listener = Loco_package_Listener::singleton();
|
215 |
+
if( $domain = $listener->getDomain($handle) ){
|
216 |
+
if( empty($data['TextDomain']) ){
|
217 |
$data['TextDomain'] = $domain;
|
218 |
if( empty($data['DomainPath']) ){
|
219 |
$data['DomainPath'] = $listener->getDomainPath($domain);
|
220 |
}
|
221 |
}
|
222 |
+
// ideally would only warn on certain pages, but unsure where to place this logic other than here
|
223 |
+
// TODO possibly allow bundle to hold errors/warnings as part of its config.
|
224 |
+
else if( $data['TextDomain'] !== $domain ){
|
225 |
+
Loco_error_AdminNotices::debug( sprintf("Plugin loaded text domain '%s' but WordPress knows it as '%s'",$domain, $data['TextDomain']) );
|
226 |
+
}
|
227 |
}
|
228 |
|
229 |
// do initial configuration of bundle from metadata
|
src/package/Project.php
CHANGED
@@ -103,7 +103,12 @@ class Loco_package_Project {
|
|
103 |
$this->name = $name;
|
104 |
$this->bundle = $bundle;
|
105 |
$this->domain = $domain;
|
106 |
-
|
|
|
|
|
|
|
|
|
|
|
107 |
// sources
|
108 |
$this->sfiles = new Loco_fs_FileList;
|
109 |
$this->spaths = new Loco_fs_FileList;
|
103 |
$this->name = $name;
|
104 |
$this->bundle = $bundle;
|
105 |
$this->domain = $domain;
|
106 |
+
// take default slug from domain, avoiding wildcard
|
107 |
+
$slug = $domain->getName();
|
108 |
+
if( '*' === $slug ){
|
109 |
+
$slug = '';
|
110 |
+
}
|
111 |
+
$this->slug = $slug;
|
112 |
// sources
|
113 |
$this->sfiles = new Loco_fs_FileList;
|
114 |
$this->spaths = new Loco_fs_FileList;
|