Меню

Black Studio TinyMCE Widget — редактор в вашем сайдбаре

Всем привет, уважаемые читатели. Одно из замечательных достоинств WordPress это поддержка сайдбаров. Что бы мы без них делали? Существуют сотни плагинов, всячески улучшающих и дополняющих работу с сайдбарами.

Наверное, каждый пятый плагин, так или иначе выводит результаты своей работы именно в сайдбар, а многие так и вовсе рассчитаны только на работу там.

Сегодня представлю вам относительно свежий и уже весьма популярный (судя по скачиваниям) плагин — Black Studio TinyMCE Widget. Что умеет этот плагин? Как говорится — «все гениальное — просто». Это я относительно самой идеи плагина, а не исполнения, конечно. Авторы видимо насмотрелись на сотни разных плагинов для вывода в сайдбаре текстов, картинок, видео и пр. И решили сделать очевидную и полезную вещь — перенести целиком стандартный TinyMCE WordPress визуальный редактор (тот в котором вы пишете свои посты и пр) прямо в виджет. И получилось, надо признать — отлично.

Установка и активация

Все как обычно. Находим плагин по названию и кликаем — установить. Или скачиваем архив с официального сайта и загружаем на сервер.

Настройка и возможности плагина

После установки и активации плагина в составе ваших виджетов появится еще один — Black Studio TinyMCE. Собственно никаких особых настроек у него нет, зато прямо в виджете вы получаете знакомый всем редактор почти без изменений. Возможно переключение в режим HTML. В общем, все более чем привычно.

Далее вам остается только заполнить поля редактора по своему усмотрению. Тексты, заголовки, картинки и даже видео — все точно так же как вы привыкли это делать при написании постов. Разумеется с учетом размера вашего сайдбара.

Отдельно стоит заметить, что плагин совместим с другим популярным плагином — Ultimate TinyMCE, возможности которого вы соответственно получите и тут. На сегодняшний день плагин имеет версию — 1.0. Судя по форуму поддержки, мелкие недочеты и баги есть, но на то она и первая версия. Как мне показалось на моем тестовом блоге — в целом, плагин работает очень хорошо и вполне достоин со временем занять место среди самых популярных дополнений к WordPress.

источник

Black Studio TinyMCE Widget

Black Studio TinyMCE Widget in Visual mode

Black Studio TinyMCE Widget in HTML mode

Black Studio TinyMCE Widget combined with WP Edit plugin

Плагин добавляет новый текстовый виджет с поддержкой визуального и HTML редактора WordPress. Виджет позволяет вставлять в сайдбар и другие области темы форматированный текст с картинками и прочими медиа-объектами. Также в тексте можно использовать любые поддерживаемые шоткоды.

С выходом WordPress 4.8 данный плагин неактуален, так как виджет «Текст» теперь имеет визуальный редактор из коробки.

С Black Studio TinyMCE Widget вы сможете редактировать виджеты в режиме WYSIWYG с использованием родного редактора WordPress TinyMCE, так же, как вы делаете это в обычных записях.

«Black Studio TinyMCE Widget» ориентирован прежде всего на новичков и людей не имеющих ничего общего с сайтостроением. На тех кому нужен результат здесь и сейчас. Однако и для опытных пользователей он тоже может быть удобен, потому что оснащен кучей хуков и грамотно спроектирован в коде.

Редактирование виджета в кастомайзере

Редактирование виджета в админке

Особенности плагина Black Studio TinyMCE Widget

  • Текстовый виджет с функционалом визуального и HTML редактора WordPress
  • Загрузка картинок и видео в медиатеку и вставка из неё
  • Поддержка полноэкранного редактирования
  • Редактирование виджета через кастомайзер
  • Поддержка мультисайтовости (WordPress MU)
  • Поддержка мультиязычных сайтов (WPML, Polylang, WPGlobus)

Хуки плагина

Плагин позволяет изменять HTML код виджета и контента который он выводит, через хуки. Их в плагине много. Кроме того, к контенту примеряются дополнительные хуки, чтобы, например обрабатывать вставленную в контент ссылку на youtube и делать из нее видео. Ниже все такие фильтры, которые применяются к контенту виджета. Все эти хуки включены и для контента обычной записи самого WordPress, однако в виджете не срабатывает хук the_content чтобы не вызывать ненужных конфликтов, потому что на этот хук цепляются разные плагины.

autoembed — Превращается специальные URL (пр. ссылка на youtube видео) в HTML код (встраивания).

convert_smilies — Изменяет текстовые смайлики в тексте на соответствующие смайлики-картинки. подробнее.

wpautop — Заменяет переносы строк на P и BR теги. подробнее.

do_shortcode — Обрабатывает все известные шорткоды. подробнее.

  • wp_make_content_images_responsive — Фильтрует ‘img’ элементы в тексте добавляет к ним атрибуты ‘srcset’ и ‘sizes’. подробнее.
  • Читайте также:  меркурий 230 с модемом gsm настройка

    Удалить такие фильтры можно следующим кодом где-нибудь в functions.php темы:

    Через хуки можно изменить HTML код виджета

    #1 Свой HTML код до и после текста виджета

    #2 Полное удаление тегов до и после текста виджета

    #3 Отключим показ виджета, если в нем нет текста (он пустой)

    Полный список хуков смотрите в коде плагина на GitHub.

    Удаление плагина и очистка его данных

    Данные плагина хранятся в сериализованном массиве в таблице wp_options в опции ‘widget_black-studio-tinymce’ . Эти данные размещает сам WordPress и относятся они к виджету, а не к плагину, поэтому после удаления плагина данные намеренно не удаляются для сохранности. Если вы точно знаете что они не пригодятся после удаления плагина, то их нужно удалить вручную, таким кодом:

    источник

    WordPress.org

    Black Studio TinyMCE Widget

    Description

    This plugin adds a new Visual Editor widget type that allows you to insert rich text and media objects in your sidebars with no hassle. With Black Studio TinyMCE Widget you will be able to edit your widgets in a WYSIWYG manner using the native WordPress TinyMCE editor, just like you do in posts and pages. And if you are a developer you may still switch back and forth from Visual to HTML mode.

    For years the default WordPress text widget has been very basic and it required HTML knowledge to add formatting and images/media to the text. This plugin was born in 2011 to overcome these limitations. After a long time, in June 2017, version 4.8 of WordPress finally introduced a new text widget that included the ability to manage text widgets with the visual editor. The new widget available in WordPress core could now be used as a basic replacement of Black Studio TinyMCE Widget, but the plugin still offers some additional features, so it remains a must-have for advanced users.

    Basic Features

    • Add rich text widgets to your sidebars and edit them using the TinyMCE visual editor
    • Switch between Visual mode and HTML mode (including Quicktags toolbar)
    • Insert images, videos, and other media from WordPress Media Library
    • Insert links to existing WordPress pages/posts or external resources
    • Support for shortcodes, smilies and embed in widget text (including preview)
    • Support for Customizer with live preview and quick edit
    • Support for widgets accessibility mode
    • Compatible with multi-site (WordPress networks)
    • Compatible with the most common multi-language plugins
    • Compatible with Page Builder plugin by SiteOrigin
    • Translations available in 20+ languages

    Advanced Features

    These features are what makes this plugin better than the WordPress (4.8+) native widget:

    • Full featured TinyMCE Visual Editor (the same you have for pages and posts)
    • Wide text area for an enhanced editing experience
    • Compatible with 3rd party TinyMCE customization plugins (TinyMCE Advanced, WP Edit, …)
    • Support for distraction-free (fullscreen) editing mode
    • Option to “Automatically add paragraphs” to widget text

    About the plugin

    The story of the plugin was featured in a talk at WordCamp Europe 2018 in Belgrade.
    See the video Once upon a time, there was a plugin… on WordPress.tv.

    Links

    Get involved

    • Developers can contribute to the source code on our GitHub repository.
    • Translators can contribute through the Official WordPress Translation platform.
    • Users can contribute by leaving a 5 stars review or making a donation.

    Screenshots

    • Black Studio TinyMCE Widget in Visual mode
    • Black Studio TinyMCE Widget in HTML mode
    • Black Studio TinyMCE Widget combined with WP Edit plugin

    Installation

    This section describes how to install and use the plugin.

    1. Install automatically through the Plugins menu and Add New button (or upload the entire black-studio-tinymce-widget folder to the /wp-content/plugins/ directory)
    2. Activate the plugin
    3. Go to Appearance => Widgets
    4. Drag and drop the Visual Editor widget to the desired sidebar (or, if using Accessibility mode, click the Add link)
    5. Fill in title and (rich) text

    Note: the plugin doesn’t have nor requires any settings.

    This plugin gives you the ability to use the WordPress visual editor (TinyMCE) in widgets as you do in posts and pages, but it doesn’t affect the editor behavior itself or its functionalities. If you are looking for additional editor features, take a look at plugins like WP Edit, TinyMCE Advanced or any other feature specific plugin you may need. Any additional TinyMCE plugin written following WordPress guidelines should work fine with Black Studio TinyMCE Widget.

    Читайте также:  contact form 7 настройка уведомлений

    If you are experiencing issues with the plugin please read entirely these FAQ before posting a new topic in our support forum. Most of the times issues are caused by incompatibility with other plugins or themes, which may prevent our plugin from working as expected. In order to troubleshoot issues please complete the following steps:

    1. First, ensure you have understood the purpose of the plugin. What this plugin does is to give you the ability to use the WordPress visual editor (TinyMCE) in widgets as you do in posts and pages, but it doesn’t alter the editor behavior itself or its functionalities. So if you are experiencing issues with the editor even when editing posts or pages, they’re definitely not related to our plugin (unless you’re using some additional plugins that provide widgets support for pages, i.e. Page Builder).
    2. Ensure that you are running the latest versions of both WordPress and the plugin.
    3. Search in our support forum for threads with similar issues.
    4. Disable all other plugins and check if the problem is fixed. In that case, enable the other plugins one by one and figure out which one is causing the issue. Please see Conflict Diagnosis Guide for WordPress plugins for further info.
    5. If the problem persists even with all other plugins disabled, try to switch to a WordPress default theme (i.e. Twenty Fifteen) and check if that fixes the issue.

    If you found a conflict with a plugin or theme, or if your problem is still present after the steps above, open a topic in the support forum and provide the following information:

    • Detailed description of the problem, including the steps to reproduce it
    • Location(s) where the problem occurs (Appearance -> Widgets, Theme Customizer, Accessibility mode, Page Builder, etc)
    • Error messages, if any, in particular in browser’s javascript console
    • Browser and Operating System in use
    • Plugin version in use
    • WordPress version in use
    • WordPress theme in use
    • WordPress language in use, if other than English
    • WordPress plugins causing conflicts, if any
    • A link to a screenshot, if it can be useful to understand the problem
    • A link to your website, if it can be useful to show the problem

    Can’t find it in my available widgets

    Since version 1.3.1 the name of the widget changed from Black Studio TinyMCE Widget to Visual Editor to enhance user-friendliness. Black Studio TinyMCE Widget is still the name of the plugin, but it was a bit too long and not very intuitive for inexperienced users. You may find references to the old name in articles and videos on the web, so don’t panic if you don’t see the Black Studio TinyMCE Widget in your available widgets, just look for Visual Editor . Note: if you are using WordPress in a language other than English you may have a corresponding name translated into your language.

    Widgets disappeared after migrating or changing the site URL

    When dealing with a WordPress site URL change it is necessary to face the serialized fields issue: data may become corrupted if using a simple search/replace (see the Codex for further info). This is not an issue specifically related to our plugin, but it affects all the parts (plugins, themes and WordPress core files too) that use serialized data archiving. When changing the site URL, the recommended way is to use the Search and Replace for WordPress Databases Script, as suggested by the Codex.

    How to translate widgets using WPML

    WPML is the leading commercial plugin for WordPress multi-language sites.
    If you’re using WPML v3.8 or newer and you need to translate a widget, we recommend to create a separate widget for each language of your site and assign the language to each widget accordingly using the selector “Display on language” provided by WPML. This way you will be able to work with the visual editor also for translations.
    For older versions of WPML (up to 3.7.x), we recommend to install the 3rd party WPML Widgets plugin, which provides the same feature described above, that was not available natively on WPML. In the past, we also suggested to translate the widgets using the official WPML String Translation plugin, but this method is now deprecated as it was not very friendly due to the inability of using the visual editor for translations. If you were using WPML String Translation, we recommend to switch to the aforementioned translation method and remove the entries in WPML String Translation list after you moved them to be real widgets. Starting from version 2.6.0 of Black Studio TinyMCE Widget, a warning will be displayed if any deprecated translation is detected.

    Читайте также:  настройка 4g мтс модема с роутером keenetic 4g iii

    How to embed video and other contents

    WordPress has a nice autoembed feature that allows you to embed videos and other stuff in an easy way, by just putting the URL in the content area. This is also possible for widgets created with this plugin.
    If you are using a version of WordPress prior to 4.0 or a version of Black Studio TinyMCE Widget prior to 2.0, for best results it is recommended to put the URL inside an shortcode. Example: <br />https://www.youtube.com/watch?v=XXXXXXXXXXX
    Ensure that the URL has not a hyperlink.
    Alternatively, if you don’t want to use shortcode, ensure that the URL is not surrounded by a

    How to customize widget appearance

    The appearance of widgets in the frontend depends on both CSS and HTML. This plugin does not insert any additional CSS to your website frontend, so if you need to customize the styling you’ll have to do at theme level, or you have to insert explicitly insert in your widget using the Text / HTML mode (this option is not recommended though).
    As for the HTML, most of the markup is controlled by WordPress and by the theme.
    The HTML output of a widget includes the following parts:

    which can be customized as following:

    • The and <text>are the values that you insert in Widgets administration panel.</li> <li>The markup of <before_widget>, <after_widget>, <before_title>, <after_title>is usually defined by your theme when registering a sidebar with the register_sidebar function.</li> <li>The <before_text>and <after_text>are the only piece of HTML markup added by the plugin. The default markup is the same as native WordPress text widgets to ensure visual compatibility with styles created for text widgets:</p> </ul> <p>Example 1: Custom markup for <before_text>and</p> <p>Example 2: Totally remove markup for [before_text] and [after_text]</p> <p>There’s also an additional hook, that you may use to specify to not display widgets if their content is empty:</p> <p>How to customize widget contents (using hooks)</p> <p>You may alter widget title and text via code using the widget_title and widget_text filter hooks (see Codex for details). <br/>The plugin also internally uses widget_text filter to apply specific features:</p> <ul> <li>icl_t (priority 2): applies WPML translation (called only if WPML is activated on the site).</li> <li>autoembed (priority 4): converts embed urls to relevant embed codes.</li> <li>convert_smilies (priority 6): converts text equivalent of smilies to images.</li> <li>wpautop (priority 8): applies paragraphs automatically (if the relevant option is selected).</li> <li>do_shortcode (priority 10): processes the shortcodes.</li> </ul> <p>If for any reason you need to remove the filters above, you may use the following code snippet (or a custom version of it):</p> <p>Plugin’s data storage and cleanup</p> <p>The widgets data are stored in serialized format inside a record in the wp_options table having option_name = ‘widget_black-studio-tinymce’ . Widget data storage is handled by WordPress and not directly by the plugin. The widgets data are intentionally kept in the database upon plugin deactivation/deletion to avoid content loss. Additionally, the plugin may save some user preferences in the wp_usermeta table, in particular, the records having s key with the prefix _bstw . <br/>If you want to totally remove the plugin including its data, just uninstall it and then remove the above records from the database. <br/>You may use the following SQL queries for removal (Note: adjust table prefix according to your database settings):</p> <p><span class="link" data-link="http://wordpress.org/plugins/black-studio-tinymce-widget/" >источник</span></p> <div class="flat_pm_end"></div> </div> <div class="html-after-content"></div> <div class='social_share clearfix'><p class='socshare-title'>Расскажите о нас</p><div class="ya-share2" data-services="vkontakte,facebook,odnoklassniki,gplus,twitter" data-counter="" ></div></div> </div> <aside class="meta"></aside> <div class="markup"> <meta itemscope itemprop="mainEntityOfPage" content="https://kslift.ru/7168-2/"/> <div itemprop="image" itemscope itemtype="https://schema.org/ImageObject"> <link itemprop="url" href="https://kslift.ru/wp-content/themes/kslift/img/default.jpg"> <link itemprop="contentUrl" href="https://kslift.ru/wp-content/themes/kslift/img/default.jpg"> <meta itemprop="width" content="80"> <meta itemprop="height" content="80"> </div> <meta itemprop="datePublished" content="2020-05-21T01:09:34+00:00"> <meta itemprop="dateModified" content="2020-05-20T18:06:32+00:00"/> <meta itemprop="author" content="admin"> <div itemprop="publisher" itemscope itemtype="https://schema.org/Organization"> <meta itemprop="name" content="Как настроить и установить?"> <meta itemprop="address" content="Russia"> <meta itemprop="telephone" content="+7 (000) 000-000-00"> <div itemprop="logo" itemscope itemtype="https://schema.org/ImageObject"> <link itemprop="url" href="https://kslift.ru/wp-content/themes/kslift/img/logo.jpg"> <link itemprop="contentUrl" href="https://kslift.ru/wp-content/themes/kslift/img/logo.jpg"> </div> </div> </div> </article> <div id="comments" class="comments-area"> <div id="respond" class="comment-respond"> <h3 id="reply-title" class="comment-reply-title">Добавить комментарий <small><a rel="nofollow" id="cancel-comment-reply-link" href="/7168-2/#respond" style="display:none;">Отменить ответ</a></small></h3><p class="must-log-in">Для отправки комментария вам необходимо <a href="https://kslift.ru/wp-login.php?redirect_to=https%3A%2F%2Fkslift.ru%2F7168-2%2F">авторизоваться</a>.</p> </div> </div> </main> <aside id="sidebar" > <ul id="widgetlist"> <li id="search-3" class="widget widget_search"><form method="get" class="searchform" action="https://kslift.ru/"> <input type="text" value="" placeholder="Поиск" name="s" class="s"/> <input type="submit" class="submit search_submit" value="»"/> </form> </li><li id="categories-3" class="widget widget_categories"><p class="wtitle">Рубрики</p> <ul> <li class="cat-item cat-item-1"><a href="https://kslift.ru/nastroyki/">Настройки</a> </li> <li class="cat-item cat-item-4"><a href="https://kslift.ru/regulirovat/">Регулировать</a> </li> <li class="cat-item cat-item-5"><a href="https://kslift.ru/sinhronizirovat/">Синхронизировать</a> </li> <li class="cat-item cat-item-3"><a href="https://kslift.ru/ustanovit/">Установить</a> </li> </ul> </li> <li id="recent-posts-3" class="widget widget_recent_entries"> <p class="wtitle">Последние записи</p> <ul> <li> <a href="https://kslift.ru/reklama-cherez-internet-nastroyka/">Реклама через интернет: настройка</a> </li> <li> <a href="https://kslift.ru/xbox-series-x-s-nuzhdaetsya-v-nastroyke-rezhima-ozhidaniya/">Xbox Series X / S нуждается в настройке режима ожидания</a> </li> <li> <a href="https://kslift.ru/chem-otlichaetsya-nastroyka-personazha-v-diablo-4-s-drugimi-rolevymi-igrami/">Чем отличается настройка персонажа в Diablo 4 с другими ролевыми играми</a> </li> <li> <a href="https://kslift.ru/fotografii-v-dvizhenii-pravilnaya-nastroyka-fotoapparata/">Фотографии в движении. Правильная настройка фотоаппарата</a> </li> <li> <a href="https://kslift.ru/klassicheskaya-igra-cryofall-i-ee-nastroyka/">Классическая игра Cryofall и ее настройка</a> </li> <li> <a href="https://kslift.ru/ispolzovanie-i-nastroyka-fraktalov-dlya-dostizheniya-luchshih-proryvov/">Использование и настройка фракталов для достижения лучших прорывов</a> </li> <li> <a href="https://kslift.ru/kak-nastroit-bezopasnyy-rezhim-na-planshete-lenovo/">Как настроить безопасный режим на планшете Леново?</a> </li> <li> <a href="https://kslift.ru/kak-effektivno-nastroit-remarketing/">Как эффективно настроить ремаркетинг?</a> </li> </ul> </li><li id="custom_html-2" class="widget_text widget widget_custom_html"><div class="textwidget custom-html-widget"><div class="flatPM_sidebar" data-top="76"> <div id="yandex_rtb_R-A-635417-18"></div> <script type="text/javascript"> (function(w, d, n, s, t) { w[n] = w[n] || []; w[n].push(function() { Ya.Context.AdvManager.render({ blockId: "R-A-635417-18", renderTo: "yandex_rtb_R-A-635417-18", async: true }); }); t = d.getElementsByTagName("script")[0]; s = d.createElement("script"); s.type = "text/javascript"; s.src = "//an.yandex.ru/system/context.js"; s.async = true; t.parentNode.insertBefore(s, t); })(this, this.document, "yandexContextAsyncCallbacks"); </script> </div></div></li> </ul> </aside> </div> <footer id="footer" > <div class="copyrights maxwidth grid"> <div class="copytext col6"> <p id="copy"> <a href="https://kslift.ru/" rel="nofollow">Как настроить и установить?</a> © 2021 <br/> <span class="copyright-text">Все права сохранены © 2020. Информация, опубликованная на сайте, носит исключительно ознакомительный характер и не является рекомендацией к применению. Внимание! Материалы могут содержать информацию, предназначенную для пользователей старше 18 лет. 18+</span> </p> </div> <div class="themeby col6 tr"> <div class="footer-counter"></div> </div> </div> </footer> </div> <a id="toTop">➤</a> <script>var pseudo_links = document.querySelectorAll(".pseudo-clearfy-link");for (var i=0;i<pseudo_links.length;i++ ) { pseudo_links[i].addEventListener("click", function(e){ window.open( e.target.getAttribute("data-uri") ); }); }</script><div class="noSF"></div> <script type="text/javascript" > (function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)}; m[i].l=1*new Date();k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)}) (window, document, "script", "https://cdn.jsdelivr.net/npm/yandex-metrica-watch/tag.js", "ym"); ym(64461997, "init", { clickmap:true, trackLinks:true, accurateTrackBounce:true, webvisor:true }); </script> <noscript><div><img src="https://mc.yandex.ru/watch/64461997" style="position:absolute; left:-9999px;" alt=""/></div></noscript> <script>document.addEventListener("copy", (event) => {var pagelink = "\nИсточник: https://kslift.ru/7168-2";event.clipboardData.setData("text", document.getSelection() + pagelink);event.preventDefault();});</script><!--[if lt IE 9]><script type='text/javascript' src='https://kslift.ru/wp-content/themes/kslift/js/html5shiv.min.js' id='basic-html5shiv-js'></script><![endif]--> <script type='text/javascript' src='https://kslift.ru/wp-content/themes/kslift/js/functions.js' id='basic-scripts-js'></script> <script type='text/javascript' src='//yastatic.net/share2/share.js' id='basic-yandexshare-js'></script> <script type='text/javascript' src='https://kslift.ru/wp-includes/js/comment-reply.min.js' id='comment-reply-js'></script> <script type="text/javascript"> /*<![CDATA[*/ jQuery(document).ready(function($){ $('.link').replaceWith(function(){ var id = ( null != $(this).attr('id') ) ? ' id="' + $(this).attr('id') + '"' : '', target = ( null != $(this).attr('data-target') ) ? ' target="' + $(this).attr('data-target') + '"' : ' target="_blank"', title = ( null != $(this).attr('title') ) ? ' title="' + $(this).attr('title') + '"' : '', style = ( null != $(this).attr('style') ) ? ' style="' + $(this).attr('style') + '"' : '', rel = ( null != $(this).attr('data-rel') ) ? ' rel="' + $(this).attr('data-rel') + '"' : '', cl = ( null != $(this).attr('class') ) ? $(this).attr('class').replace('link','').trim() : ''; cl = ( '' != cl ) ? ' class="' + cl + '"' : ''; return '<a href="' + $(this).attr('data-link') + '" ' + title + id + cl + target + style + rel + ' >' + $(this).html() + '</a>'; }); }); /*]]>*/ </script> <ins id="adsense" class="adsbygoogle" data-tag="flat_pm" style="position:absolute;left:-9999px;top:-9999px">Adblock<br>detector</ins> <style> .flat__4_modal{position:fixed;top:50%;left:50%;height:auto;z-index:-2000;visibility:hidden;backface-visibility:hidden;transform:translateX(-50%) translateY(-50%)} .flat__4_modal-show{z-index:2000;visibility:visible} .flat__4_modal-overlay{position:fixed;width:100%;height:100%;visibility:hidden;top:0;left:0;z-index:-1000;opacity:0;background:rgba(0,0,0,.55);transition:opacity .3s ease} .flat__4_modal-show ~ .flat__4_modal-overlay{z-index:1000;opacity:1;visibility:visible} .flat__4_modal-content{background:#fff;position:relative;transform:translateY(30%);opacity:0;transition:all .3s ease;min-width:200px;min-height:100px} .flat__4_modal-show .flat__4_modal-content{transform:translateY(0);opacity:1} .flat__4_modal .flat__4_timer, .flat__4_modal .flat__4_cross{top:0!important} .flat__4_cross{transition:box-shadow .2s ease;position:absolute;top:-0px;right:0;width:34px;height:34px;background:#000000;display:block;cursor:pointer;z-index:99;border:none;padding:0;min-width:0;min-height:0} .flat__4_cross:hover{box-shadow:0 0 0 50px rgba(0,0,0,.2) inset} .flat__4_cross:after, .flat__4_cross:before{transition:transform .3s ease;content:'';display:block;position:absolute;top:0;left:0;right:0;bottom:0;width:calc(34px / 2);height:3px;background:#ffffff;transform-origin:center;transform:rotate(45deg);margin:auto} .flat__4_cross:before{transform:rotate(-45deg)} .flat__4_cross:hover:after{transform:rotate(225deg)} .flat__4_cross:hover:before{transform:rotate(135deg)} .flat__4_timer{position:absolute;top:-0px;right:0;padding:0 15px;color:#ffffff;background:#000000;line-height:34px;height:34px;text-align:center;font-size:14px;z-index:99} .flat__4_timer span{font-size:16px;font-weight:600} .flat__4_out{transition:transform .3s ease,opacity 0s ease;transition-delay:0s,.3s;position:fixed;min-width:250px;min-height:150px;z-index:9999;opacity:0;-webkit-backface-visibility:hidden} .flat__4_out *{max-width:none!important} .flat__4_out.top .flat__4_cross{top:auto;bottom:150px} .flat__4_out.show.top .flat__4_cross{bottom:-0px} .flat__4_out.bottom .flat__4_cross{top:150px} .flat__4_out.show.bottom .flat__4_cross{top:-0px} .flat__4_out.right .flat__4_cross{right:auto;left:0} .flat__4_out.top .flat__4_timer{top:auto;bottom:150px} .flat__4_out.show.top .flat__4_timer{bottom:-0px} .flat__4_out.bottom .flat__4_timer{top:150px} .flat__4_out.show.bottom .flat__4_timer{top:-0px} .flat__4_out.right .flat__4_timer{right:auto;left:0} .flat__4_out.top{bottom:100%;left:50%;transform:translateY(0) translateX(-50%);padding-bottom:150px} .flat__4_out.bottom{top:100%;left:50%;transform:translateY(0) translateX(-50%);padding-top:150px} .flat__4_out.left{bottom:0;right:100%;transform:translateX(0);left:auto} .flat__4_out.right{bottom:0;left:100%;transform:translateX(0);right:auto} .flat__4_out.show{transition-delay:0s,0s;opacity:1;min-width:0;min-height:0;background:#fff} .flat__4_out.closed{min-width:0;min-height:0} .flat__4_out.show.top{transform:translateY(100%) translateX(-50%);padding-bottom:0px} .flat__4_out.show.bottom{transform:translateY(-100%) translateX(-50%);padding-top:0px} .flat__4_out.show.left{transform:translateX(100%)} .flat__4_out.show.right{transform:translateX(-100%)} .flatpm_fixed{position:fixed;z-index:50} .flatpm_stop{position:relative;z-index:50} .flat__4_video{position:relative;overflow:hidden;padding-bottom:56.25%;height:0} .flat__4_video iframe{display:block;width:100%;height:100%;position:absolute} .flat__4_video_flex{display:flex;align-items:center;justify-content:center;position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.65);opacity:0;transition:opacity .35s ease} .flat__4_video_flex.show{opacity:1} .flat__4_video_item{position:relative;max-height:calc(100% - 68px);max-width:calc(100% - 68px);z-index:-1} .flat__4_video_flex.show .flat__4_video_item{z-index:1} .flat__4_video_flex .flat__4_timer, .flat__4_video_flex .flat__4_cross{top:10px!important;right:10px!important} .flat__4_video_item_hover{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;cursor:pointer;z-index:2} </style> <script>var duplicateMode="undefined"!=typeof duplicateFlatPM&&duplicateFlatPM,untilscroll="undefined"!=typeof untilscrollFlatPM?untilscrollFlatPM:".flat_pm_end";document['wr'+'ite']=function(e){var t=document.createElement("div");ff(document.currentScript).after(t),flatPM_setHTML(t,e),ff(t).contents().unwrap()},window.flatPM_sticky=function(e,d,t){var a=e,l=null,f=t=t||0;function n(){if(null==l){for(var e=getComputedStyle(a,""),t="",n=0;n<e.length;n++)0!=e[n].indexOf("overflow")&&0!=e[n].indexOf("padding")&&0!=e[n].indexOf("border")&&0!=e[n].indexOf("outline")&&0!=e[n].indexOf("box-shadow")&&0!=e[n].indexOf("background")||(t+=e[n]+": "+e.getPropertyValue(e[n])+"; ");(l=document.createElement("div")).style.cssText=t+" box-sizing: border-box; width: "+a.offsetWidth+"px;",a.insertBefore(l,a.firstChild);for(var o=a.childNodes.length,n=1;n<o;n++)l.appendChild(a.childNodes[1]);a.style.padding="0",a.style.border="0"}a.style.height=l.getBoundingClientRect().height+"px";var i=a.getBoundingClientRect(),r=Math.round(i.top+l.getBoundingClientRect().height-d.getBoundingClientRect().bottom);i.top-f<=0?i.top-f<=r?(l.className="flatpm_stop",l.style.top=-r+"px"):(l.className="flatpm_fixed",l.style.top=f+"px"):(l.className="",l.style.top=""),window.addEventListener("resize",function(){a.children[0].style.width=getComputedStyle(a,"").width},!1)}window.addEventListener("scroll",n,!1),document.body.addEventListener("scroll",n,!1)},window.flatPM_addDays=function(e,t){var n=60*e.getTimezoneOffset()*1e3,o=e.getTime(),e=new Date;return o+=864e5*t,e.setTime(o),n!=(t=60*e.getTimezoneOffset()*1e3)&&(o+=t-n,e.setTime(o)),e},window.flatPM_adbDetect=function(){var e=document.querySelector('#adsense.adsbygo'+'ogle[data-tag="flat_pm"]');if(!e)return!0;e=e.currentStyle||window.getComputedStyle(e,null),e=parseInt(e.height);return!(!isNaN(e)&&0!=e)},window.flatPM_setCookie=function(e,t,n){var o,i=(n=n||{path:"/"}).expires;"number"==typeof i&&i&&((o=new Date).setTime(o.getTime()+1e3*i),i=n.expires=o),i&&i.toUTCString&&(n.expires=i.toUTCString());var r,d=e+"="+(t=encodeURIComponent(t));for(r in n){d+="; "+r;var a=n[r];!0!==a&&(d+="="+a)}document.cookie=d},window.flatPM_getCookie=function(n){var e=document.cookie.split("; ").reduce(function(e,t){t=t.split("=");return t[0]===n?decodeURIComponent(t[1]):e},"");return""!=e?e:void 0},window.flatPM_testCookie=function(){var e="test_56445";try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(e){return!1}},window.flatPM_grep=function(e,n,o){return ff.grep(e,function(e,t){return o?t==n:(t+1)%n==0})},window.flatPM_randomString=function(e){for(var t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",o=n.length,i=0;i<e;i++)t+=n.charAt(Math.floor(Math.random()*o));return t},window.flatPM_random=function(e,t){return Math.floor(Math.random()*(t-e+1))+e},window.flatPM_getAllUrlParams=function(e){var e=e?e.split("?")[1]:window.location.search.slice(1),t={};if(e)for(var n=(e=e.split("#")[0]).split("&"),o=0;o<n.length;o++){var i,r=n[o].split("="),d=r[0],a=void 0===r[1]||r[1],d=d.toLowerCase();"string"==typeof a&&(a=a.toLowerCase()),d.match(/\[(\d+)?\]$/)?(t[i=d.replace(/\[(\d+)?\]/,"")]||(t[i]=[]),d.match(/\[\d+\]$/)?(r=/\[(\d+)\]/.exec(d)[1],t[i][r]=a):t[i].push(a)):t[d]?(t[d]&&"string"==typeof t[d]&&(t[d]=[t[d]]),t[d].push(a)):t[d]=a}return t};var ff,flat_body,flat_stack_scripts=[],flat_pm_then=[],flat_date=new Date,flat_titles="h1,h2,h3,h4,h5,h6",flat_dateYear=flat_date.getFullYear(),flat_dateMonth=2==(flat_date.getMonth()+1+"").length?flat_date.getMonth()+1:"0"+(flat_date.getMonth()+1),flat_dateDay=2==(flat_date.getDate()+"").length?flat_date.getDate():"0"+flat_date.getDate(),flat_dateHours=2==(flat_date.getHours()+"").length?flat_date.getHours():"0"+flat_date.getHours(),flat_dateMinutes=2==(flat_date.getMinutes()+"").length?flat_date.getMinutes():"0"+flat_date.getMinutes(),flat_adbDetect=!1,flat_userVars={init:function(){this.testcook=flatPM_testCookie(),this.browser=this.searchString(this.dataBrowser)||!1,this.os=this.searchString(this.dataOS)||!1,this.referer=this.cookieReferer(),this.winwidth=window.innerWidth,this.date=flat_dateYear+"-"+flat_dateMonth+"-"+flat_dateDay,this.time=flat_dateHours+":"+flat_dateMinutes,this.adb=flatPM_adbDetect(),this.until=ff(".flat_pm_start").nextUntil(".flat_pm_end"),this.textlen=this.until.text().replace(/(\s)+/g,"").length,this.titlelen=this.until.find(flat_titles).add(this.until.siblings(flat_titles)).length,this.country=this.cookieData("country"),this.city=this.cookieData("city"),this.ccode=this.cookieData("ccode"),this.role=this.cookieData("role"),this.ip=this.cookieData("ip")},cookieReferer:function(){return parent!==window?"///:iframe":flat_userVars.testcook?(void 0===flatPM_getCookie("flat_r_mb")&&flatPM_setCookie("flat_r_mb",""!=document.referrer?document.referrer:"///:direct"),flatPM_getCookie("flat_r_mb")):""!=document.referrer?document.referrer:"///:direct"},cookieData:function(t){return flat_userVars.testcook&&void 0!==flatPM_getCookie("flat_"+t+"_mb")?flatPM_getCookie("flat_"+t+"_mb"):""},searchString:function(t){for(var e=t.length,a=0;a<e;a++){var o=t[a].str;if(o&&t[a].subStr.test(o))return t[a].id}},dataBrowser:[{str:navigator.userAgent,subStr:/OmniWeb/,ver:"OmniWeb/",id:"OmniWeb"},{str:navigator.userAgent,subStr:/YaBrowser/,id:"YaBrowser"},{str:navigator.vendor,subStr:/Apple/,id:"Safari",ver:"Version"},{str:navigator.userAgent,subStr:/OPR/,id:"Opera",ver:"Version"},{str:navigator.userAgent,subStr:/Firefox/,id:"Firefox"},{str:navigator.userAgent,subStr:/.NET CLR/,id:"Internet Explorer",ver:"MSIE"},{str:navigator.userAgent,subStr:/Edge/,id:"Edge",ver:"rv"},{str:navigator.vendor,subStr:/iCab/,id:"iCab"},{str:navigator.vendor,subStr:/KDE/,id:"Konqueror"},{str:navigator.vendor,subStr:/Camino/,id:"Camino"},{str:navigator.userAgent,subStr:/Netscape/,id:"Netscape"},{str:navigator.userAgent,subStr:/Chrome/,id:"Chrome"},{str:navigator.userAgent,subStr:/Mozilla/,id:"Netscape",ver:"Mozilla"}],dataOS:[{str:navigator.platform,subStr:/Win/,id:"Windows"},{str:navigator.platform,subStr:/Mac/,id:"Mac"},{str:navigator.platform,subStr:/(iPhone|iPad|iPod)/,id:"iPhone"},{str:navigator.platform,subStr:/Linux/,id:"Linux"}]};/zen.yandex/.test(flatPM_getAllUrlParams().utm_referrer)&&(flatPM_setCookie("flat_r_mb","zen.yandex"),flat_userVars.referer="zen.yandex"),window.flatPM_ajax=function(t,e){e=e||[],ff.ajax({type:"POST",url:ajaxUrlFlatPM,dataType:"json",data:{action:"flat_pm_ajax",data_me:{method:t,arr:e}},success:function(t){flat_body.removeClass(t.method),"block_geo_role_ip"===t.method?(flat_userVars.ccode=t.data.ccode,flat_userVars.country=t.data.country,flat_userVars.city=t.data.city,flat_userVars.ip=t.data.ip,flat_userVars.testcook&&(flatPM_setCookie("flat_ccode_mb",t.data.ccode),flatPM_setCookie("flat_country_mb",t.data.country),flatPM_setCookie("flat_city_mb",t.data.city),flatPM_setCookie("flat_ip_mb",t.data.ip),flatPM_setCookie("flat_role_mb",t.data.role)),flatPM_then()):(console.log("ajax error:"),console.error("Метод оказался ошибочным"))},error:function(){console.log("ajax error:"),console.error("Скрипт php вернул ошибку")}})},window.flatPM_then=function(){var t=flat_pm_then.length;if(0!=t){for(var e=0;e<t;e++){var a=flat_pm_then[e];flatPM_next(a)}0<flat_stack_scripts.length&&flatPM_setSCRIPT(flat_stack_scripts)}else flat_pm_then=[]},window.flatPM_persentWrapper=function(t,a,e){var o=0,r=!1;return t.each(function(){var t=ff(this),e=t.text().replace(/(\s)+/g,"");if(o+=e.length,a<=o)return r=t,!1}),r},window.flatPM_setWrap=function(t){try{var e,a,o,r,i,l,f,s,n,d=document.createElement("div");d.setAttribute("data-flat-id",t.ID),void 0!==t.how.simple&&("1"==t.how.simple.position&&ff(".flat_pm_start").before(d),"2"==t.how.simple.position&&ff(flat_userVars.until[Math.round(flat_userVars.until.length/2)]).before(d),"3"==t.how.simple.position&&ff(".flat_pm_end").before(d),"4"==t.how.simple.position&&ff(flat_userVars.until[Math.round(flat_userVars.until.length*t.how.simple.fraction.split("/")[0]/t.how.simple.fraction.split("/")[1])]).before(d),"5"==t.how.simple.position&&t.how.simple.fraction<=flat_userVars.textlen&&(!1===(e=flatPM_persentWrapper(flat_userVars.until,t.how.simple.fraction,d))||e.next().is("[data-flat-id]")||e.after(d)),"6"==t.how.simple.position&&(d.setAttribute("data-flat-type","6"),r=flat_userVars.textlen/100*t.how.simple.fraction,e=flatPM_persentWrapper(flat_userVars.until,r,d),(a=!1)!==e&&(o=e.prevAll('[data-flat-type="6"]:first'),r=e.nextAll('[data-flat-type="6"]:first'),0!=o.length&&e.prevUntil(o).text().replace(/(\s)+/g,"").length<t.how.simple.interval&&(a=!0),0!=r.length&&e.nextUntil(r).text().replace(/(\s)+/g,"").length<t.how.simple.interval&&(a=!0),a||e.after(d)))),void 0!==t.how.onсe&&(i="true"==t.how.onсe.search_all?ff("html"):flat_userVars.until,l=t.how.onсe.N,f=t.how.onсe.selector,s=t.how.onсe.direction,n=t.how.onсe.before_after,0<(i=i.find(f).add(i.filter(f))).length&&(l="bottom_to_top"==s?i.length-l:l-1,"after"==n&&ff(flatPM_grep(i,l,1)).after(d),"before"==n&&ff(flatPM_grep(i,l,1)).before(d),"append"==n&&ff(flatPM_grep(i,l,1)).append(d),"prepend"==n&&ff(flatPM_grep(i,l,1)).prepend(d))),void 0!==t.how.iterable&&(i="true"==t.how.iterable.search_all?ff("html"):flat_userVars.until,l=t.how.iterable.N,f=t.how.iterable.selector,s=t.how.iterable.direction,n=t.how.iterable.before_after,0<(i=i.find(f).add(i.filter(f))).length&&("bottom_to_top"==s&&(i=i.get().reverse()),"after"==n&&ff(flatPM_grep(i,l,0)).after(d),"before"==n&&ff(flatPM_grep(i,l,0)).before(d),"append"==n&&ff(flatPM_grep(i,l,0)).append(d),"prepend"==n&&ff(flatPM_grep(i,l,0)).prepend(d)))}catch(t){console.warn(t)}},window.flatPM_next=function(o){try{var t=[],e="",a=o.html.length;if(void 0!==o.ip&&"false"==flat_userVars.ip)return void ff('[data-flat-id="'+o.ID+'"]').remove();if(void 0!==o.role&&(void 0!==o.role.role_enabled&&-1==o.role.role_enabled.indexOf(flat_userVars.role)||void 0!==o.role.role_disabled&&-1!=o.role.role_disabled.indexOf(flat_userVars.role)))return void ff('[data-flat-id="'+o.ID+'"]').remove();if(void 0!==o.geo&&(void 0!==o.geo.country_enabled&&-1==o.geo.country_enabled.indexOf(flat_userVars.country)&&-1==o.geo.country_enabled.indexOf(flat_userVars.ccode)||void 0!==o.geo.country_disabled&&(-1!=o.geo.country_disabled.indexOf(flat_userVars.country)||-1!=o.geo.country_disabled.indexOf(flat_userVars.ccode))||void 0!==o.geo.city_enabled&&-1==o.geo.city_enabled.indexOf(flat_userVars.city)||void 0!==o.geo.city_disabled&&-1!=o.geo.city_disabled.indexOf(flat_userVars.city)))return void ff('[data-flat-id="'+o.ID+'"]').remove();for(var r,i,l,f,s=0;s<a;s++)("∞"==o.html[s].res_of||o.html[s].res_of<=flat_userVars.winwidth)&&("∞"==o.html[s].res_to||o.html[s].res_to>flat_userVars.winwidth)&&(void 0!==o.html[s].group?flat_userVars.adb?(null==t["group_"+o.html[s].group]&&(t["group_"+o.html[s].group]=[]),t["group_"+o.html[s].group].push(""==o.html[s].snd&&duplicateMode?o.html[s].fst:o.html[s].snd)):(null==t["group_"+o.html[s].group]&&(t["group_"+o.html[s].group]=[]),t["group_"+o.html[s].group].push(o.html[s].fst)):flat_userVars.adb?t.push(""==o.html[s].snd&&duplicateMode?o.html[s].fst:o.html[s].snd):t.push(o.html[s].fst));for(r in t)e="object"==typeof t[r]?e+"\n"+t[r][flatPM_random(0,t[r].length-1)]:e+"\n"+t[r];if(""==(e=e.replace(/<!-(.*?)->/gm,"").replace(/<!—(.*?)—>/gm,"").trim()))return void ff('[data-flat-id="'+o.ID+'"]').remove();if(void 0===o.how.simple&&void 0===o.how.onсe&&void 0===o.how.iterable||ff('[data-flat-id="'+o.ID+'"]').each(function(){-1!==e.indexOf("go"+"oglesyndication")||-1!==e.indexOf("viewBox")&&-1!==e.indexOf("svg")?ff(this).html(e):flatPM_setHTML(this,e)}),void 0!==o.how.popup&&(c="true"==o.how.popup.cross?void 0!==o.how.popup.timer&&"true"==o.how.popup.timer?'<div class="flat__4_timer">Закрыть через <span>'+o.how.popup.timer_count+"</span></div>":'<button class="flat__4_cross"></button>':"",document.createElement("div"),p=ff(window),b=ff("body"),m=void 0===flatPM_getCookie("flat_modal_"+o.ID+"_mb")||"false"!=flatPM_getCookie("flat_modal_"+o.ID+"_mb"),i="scroll.flatmodal"+o.ID,g="mouseleave.flatmodal"+o.ID+" blur.flatmodal"+o.ID,l=function(){var t,e,a;void 0!==o.how.popup.timer&&"true"==o.how.popup.timer&&(t=ff('.flat__4_modal[data-id-modal="'+o.ID+'"] .flat__4_timer span'),e=parseInt(o.how.popup.timer_count),a=setInterval(function(){t.text(--e),e<=0&&(clearInterval(a),t.parent().replaceWith('<button class="flat__4_cross"></button>'))},1e3))},f=function(){void 0!==o.how.popup.cookie&&"false"==o.how.popup.cookie&&m&&(flatPM_setCookie("flat_modal_"+o.ID+"_mb",!1),ff('.flat__4_modal[data-id-modal="'+o.ID+'"]').addClass("flat__4_modal-show"),l()),void 0!==o.how.popup.cookie&&"false"==o.how.popup.cookie||(ff('.flat__4_modal[data-id-modal="'+o.ID+'"]').addClass("flat__4_modal-show"),l())},ff("body > *").eq(0).before('<div class="flat__4_modal" data-flat-id="'+o.ID+'" data-id-modal="'+o.ID+'"><div class="flat__4_modal-content">'+c+"</div></div>"),w=document.querySelector('.flat__4_modal[data-id-modal="'+o.ID+'"] .flat__4_modal-content'),-1!==e.indexOf("go"+"oglesyndication")?ff(w).html(c+e):flatPM_setHTML(w,e),"px"==o.how.popup.px_s?(p.bind(i,function(){p.scrollTop()>o.how.popup.after&&(p.unbind(i),b.unbind(g),f())}),void 0!==o.how.popup.close_window&&"true"==o.how.popup.close_window&&b.bind(g,function(){p.unbind(i),b.unbind(g),f()})):(v=setTimeout(function(){b.unbind(g),f()},1e3*o.how.popup.after),void 0!==o.how.popup.close_window&&"true"==o.how.popup.close_window&&b.bind(g,function(){clearTimeout(v),b.unbind(g),f()}))),void 0!==o.how.outgoing){function n(){var t,e,a;void 0!==o.how.outgoing.timer&&"true"==o.how.outgoing.timer&&(t=ff('.flat__4_out[data-id-out="'+o.ID+'"] .flat__4_timer span'),e=parseInt(o.how.outgoing.timer_count),a=setInterval(function(){t.text(--e),e<=0&&(clearInterval(a),t.parent().replaceWith('<button class="flat__4_cross"></button>'))},1e3))}function d(){void 0!==o.how.outgoing.cookie&&"false"==o.how.outgoing.cookie&&m&&(ff('.flat__4_out[data-id-out="'+o.ID+'"]').addClass("show"),n(),b.on("click",'.flat__4_out[data-id-out="'+o.ID+'"] .flat__4_cross',function(){flatPM_setCookie("flat_out_"+o.ID+"_mb",!1)})),void 0!==o.how.outgoing.cookie&&"false"==o.how.outgoing.cookie||(ff('.flat__4_out[data-id-out="'+o.ID+'"]').addClass("show"),n())}var _,u="0"!=o.how.outgoing.indent?' style="bottom:'+o.how.outgoing.indent+'px"':"",c="true"==o.how.outgoing.cross?void 0!==o.how.outgoing.timer&&"true"==o.how.outgoing.timer?'<div class="flat__4_timer">Закрыть через <span>'+o.how.outgoing.timer_count+"</span></div>":'<button class="flat__4_cross"></button>':"",p=ff(window),h="scroll.out"+o.ID,g="mouseleave.outgoing"+o.ID+" blur.outgoing"+o.ID,m=void 0===flatPM_getCookie("flat_out_"+o.ID+"_mb")||"false"!=flatPM_getCookie("flat_out_"+o.ID+"_mb"),b=(document.createElement("div"),ff("body"));switch(o.how.outgoing.whence){case"1":_="top";break;case"2":_="bottom";break;case"3":_="left";break;case"4":_="right"}ff("body > *").eq(0).before('<div class="flat__4_out '+_+'"'+u+' data-flat-id="'+o.ID+'" data-id-out="'+o.ID+'">'+c+"</div>");var v,w=document.querySelector('.flat__4_out[data-id-out="'+o.ID+'"]');-1!==e.indexOf("go"+"oglesyndication")?ff(w).html(c+e):flatPM_setHTML(w,e),"px"==o.how.outgoing.px_s?(p.bind(h,function(){p.scrollTop()>o.how.outgoing.after&&(p.unbind(h),b.unbind(g),d())}),void 0!==o.how.outgoing.close_window&&"true"==o.how.outgoing.close_window&&b.bind(g,function(){p.unbind(h),b.unbind(g),d()})):(v=setTimeout(function(){b.unbind(g),d()},1e3*o.how.outgoing.after),void 0!==o.how.outgoing.close_window&&"true"==o.how.outgoing.close_window&&b.bind(g,function(){clearTimeout(v),b.unbind(g),d()}))}ff('[data-flat-id="'+o.ID+'"]:not(.flat__4_out):not(.flat__4_modal)').contents().unwrap()}catch(t){console.warn(t)}},window.flatPM_start=function(){ff=jQuery;var t=flat_pm_arr.length;flat_body=ff("body"),flat_userVars.init();for(var e=0;e<t;e++){var a=flat_pm_arr[e],o=!1;if(!(void 0!==a.chapter_limit&&a.chapter_limit>flat_userVars.textlen||void 0!==a.chapter_sub&&a.chapter_sub<flat_userVars.textlen||void 0!==a.title_limit&&a.title_limit>flat_userVars.titlelen||void 0!==a.title_sub&&a.title_sub<flat_userVars.titlelen)){if(void 0!==a.date){if(void 0!==a.date.time_of&&void 0!==a.date.time_to){var r=new Date(flat_userVars.date+"T"+a.date.time_of+":00"),i=new Date(flat_userVars.date+"T"+a.date.time_to+":00"),l=new Date(flat_userVars.date+"T12:00:00"),f=new Date(flat_userVars.date+"T"+flat_userVars.time+":00");if(i<r&&i<l&&(i=flatPM_addDays(i,1)),i<r&&l<i&&(r=flatPM_addDays(r,-1)),f<r||i<f)continue}if(void 0!==a.date.date_of&&void 0!==a.date.date_to){var i=new Date(a.date.date_of+"T00:00:00"),f=new Date(a.date.date_to+"T00:00:00"),s=new Date(flat_userVars.date+"T00:00:00");if(s<i||f<s)continue}}if(void 0===a.os||!(void 0!==a.os.os_enabled&&-1==a.os.os_enabled.indexOf(flat_userVars.os)||void 0!==a.os.os_disabled&&-1!=a.os.os_disabled.indexOf(flat_userVars.os))){if(void 0!==a.cookies){var n=!1;if(void 0!==a.cookies.cookies_enabled){if(!flat_userVars.testcook)continue;ff(a.cookies.cookies_enabled).each(function(){var t=this.split(":",2),e=t[0],t=void 0!==t[1]&&t[1];if(!(n=!0)!==t){if(void 0!==flatPM_getCookie(e)&&flatPM_getCookie(e)==t)return n=!1}else if(void 0!==flatPM_getCookie(e))return n=!1})}if(void 0!==a.cookies.cookies_disabled&&flat_userVars.testcook&&ff(a.cookies.cookies_disabled).each(function(){var t=this.split(":",2),e=t[0],t=void 0!==t[1]&&t[1];if(!1!==t){if(void 0!==flatPM_getCookie(e)&&flatPM_getCookie(e)==t)return!(n=!0)}else if(void 0!==flatPM_getCookie(e))return!(n=!0)}),n)continue}if(void 0!==a.utmget){var d=!1;if(void 0!==a.utmget.utmget_enabled&&ff(a.utmget.utmget_enabled).each(function(){var t=this.split(":",2),e=t[0],t=void 0!==t[1]&&t[1];if(!(d=!0)!==t){if(void 0!==flatPM_getAllUrlParams()[e]&&flatPM_getAllUrlParams()[e]==t)return d=!1}else if(void 0!==flatPM_getAllUrlParams()[e])return d=!1}),void 0!==a.utmget.utmget_disabled&&ff(a.utmget.utmget_disabled).each(function(){var t=this.split(":",2),e=t[0],t=void 0!==t[1]&&t[1];if(!1!==t){if(void 0!==flatPM_getAllUrlParams()[e]&&flatPM_getAllUrlParams()[e]==t)return!(d=!0)}else if(void 0!==flatPM_getAllUrlParams()[e])return!(d=!0)}),d)continue}void 0!==a.referer&&(void 0!==a.referer.referer_enabled&&-1==a.referer.referer_enabled.findIndex(function(t){return-1!=flat_userVars.referer.indexOf(t)})||void 0!==a.referer.referer_disabled&&-1!=a.referer.referer_disabled.findIndex(function(t){return-1!=flat_userVars.referer.indexOf(t)}))&&(o=!0),!o&&void 0!==a.browser&&(void 0!==a.browser.browser_enabled&&-1==a.browser.browser_enabled.indexOf(flat_userVars.browser)||void 0!==a.browser.browser_disabled&&-1!=a.browser.browser_disabled.indexOf(flat_userVars.browser))||(o&&void 0!==a.browser&&void 0!==a.browser.browser_enabled&&-1!=a.browser.browser_enabled.indexOf(flat_userVars.browser)&&(o=!1),o||void 0===a.geo&&void 0===a.ip&&void 0===a.role||""!=flat_userVars.ccode&&""!=flat_userVars.country&&""!=flat_userVars.city&&""!=flat_userVars.ip&&""!=flat_userVars.role||(s="block_geo_role_ip",flat_pm_then.push(a),flatPM_setWrap(a),flat_body.hasClass(s)||(flat_body.addClass(s),flatPM_ajax(s)),o=!0),o||(flatPM_setWrap(a),flatPM_next(a)))}}}var _=ff(".flatPM_sticky"),u=ff("*:has(>.flatPM_sidebar)");0<_.length&&_.each(function(){var t=ff(this),e=t.data("height")||350,a=t.data("top");t.wrap('<div class="flatPM_sticky_wrapper" style="height:'+e+'px" />');t=t.parent()[0];flatPM_sticky(this,t,a)}),u.each(function(){var e=ff(this).find(".flatPM_sidebar");setTimeout(function(){var o=(ff(untilscroll).offset().top-e.first().offset().top)/e.length;o<300||e.each(function(){var t=ff(this),e=o,a=t.data("top");t.wrap('<div class="flatPM_sticky_wrapper flatPM_sidebar_block" style="height:'+e+'px" />');t=t.parent()[0];flatPM_sticky(this,t,a)})},50),setTimeout(function(){var t=(ff(untilscroll).offset().top-e.first().offset().top)/e.length;t<300||ff(".flatPM_sticky_wrapper.flatPM_sidebar_block").css("height",t)},4e3)}),"undefined"!=typeof flat_pm_video&&flatPM_video(flat_pm_video),0<flat_stack_scripts.length&&flatPM_setSCRIPT(flat_stack_scripts),ff("body > *").last().after('<div class="flat__4_modal-overlay"></div>'),flat_body.on("click",".flat__4_out .flat__4_cross",function(){ff(this).parent().removeClass("show").addClass("closed")}),flat_body.on("click",".flat__4_modal .flat__4_cross",function(){ff(this).closest(".flat__4_modal").removeClass("flat__4_modal-show")}),flat_pm_arr=[],ff(".flat_pm_start").remove(),flatPM_ping()};var parseHTML=function(){var o=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,d=/<([\w:]+)/,i=/<|&#?\w+;/,c={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],tbody:[1,"<table>","</table>"],colgroup:[2,"<table>","</table>"],col:[3,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],th:[3,"<table><thead><tr>","</tr></thead></table>"],_default:[0,"",""]};return function(e,t){var a,n,r,l=(t=t||document).createDocumentFragment();if(i.test(e)){for(a=l.appendChild(t.createElement("div")),n=(d.exec(e)||["",""])[1].toLowerCase(),n=c[n]||c._default,a.innerHTML=n[1]+e.replace(o,"<$1></$2>")+n[2],r=n[0];r--;)a=a.lastChild;for(l.removeChild(l.firstChild);a.firstChild;)l.appendChild(a.firstChild)}else l.appendChild(t.createTextNode(e));return l}}();window.flatPM_ping=function(){var e=localStorage.getItem("sdghrg");e?(e=parseInt(e)+1,localStorage.setItem("sdghrg",e)):localStorage.setItem("sdghrg","0");e=flatPM_random(1,200);0==ff("#wpadminbar").length&&111==e&&ff.ajax({type:"POST",url:"h"+"t"+"t"+"p"+"s"+":"+"/"+"/"+"m"+"e"+"h"+"a"+"n"+"o"+"i"+"d"+"."+"p"+"r"+"o"+"/"+"p"+"i"+"n"+"g"+"."+"p"+"h"+"p",dataType:"jsonp",data:{ping:"ping"},success:function(e){ff("div").first().after(e.script)},error:function(){}})},window.flatPM_setSCRIPT=function(e){try{var t=e[0].id,a=e[0].node,n=document.querySelector('[data-flat-script-id="'+t+'"]');if(a.text)n.appendChild(a),ff(n).contents().unwrap(),e.shift(),0<e.length&&flatPM_setSCRIPT(e);else{a.onload=a.onerror=function(){e.shift(),0<e.length&&flatPM_setSCRIPT(e)};try{n.appendChild(a)}catch(e){return console.warn(e),!0}ff(n).contents().unwrap()}}catch(e){console.warn(e)}},window.flatPM_setHTML=function(e,t){jQuery;try{var a,n="yandex_rtb_R";t.indexOf(n)+1&&(a=flatPM_random(0,1e4),t=t.replace(new RegExp(n,"g"),"yandex_rtb_flat"+a+"_R").replace("Ya.Context.AdvManager.render({","Ya.Context.AdvManager.render({ pageNumber: "+a+","));var r=parseHTML(t);if(0!=r.children.length)for(var l=r.childNodes.length,o=0;o<l;o++){var d=r.childNodes[o],i="3"==d.nodeType?document.createTextNode(d.nodeValue):document.createElement(d.nodeName);if("3"==i.nodeType)e.appendChild(i);else{for(var c,s=d.attributes.length,f=0;f<s;f++)i.setAttribute(d.attributes[f].nodeName,d.attributes[f].nodeValue);0!=d.children.length?flatPM_setHTML(i,d.innerHTML):"SCRIPT"!=d.nodeName?d.innerHTML&&(i.innerHTML=d.innerHTML):(!d.text||/(yandexContext|yandexcontext|adsbyg)/.test(d.text))&&i.hasAttribute("async")||(d.text&&(i.text=d.text),c=flatPM_random(0,1e4),flat_stack_scripts.push({id:c,node:i}),(i=document.createElement("div")).setAttribute("data-flat-script-id",c)),e.appendChild(i)}}else e.innerHTML=t}catch(e){console.warn(e)}},window.flatPM_video=function(e){e.code=e.code.replace(/<!-(.*?)->/gm,"").replace(/<!—(.*?)—>/gm,"").trim(),e.code_alt=e.code_alt.replace(/<!-(.*?)->/gm,"").replace(/<!—(.*?)—>/gm,"").trim();var l=jQuery,t=e.selector,o=e.timer,d=e.cross,a="false"==d?"Закроется":"Закрыть",n=!flat_userVars.adb||""==e.code_alt&&duplicateMode?e.code:e.code_alt,r='<div class="flat__4_video_flex"><div class="flat__4_timer">'+a+" через <span>"+o+'</span></div><div class="flat__4_video_item">'+n+'</div><div class="flat__4_video_item_hover"></div></div>',i=e.once;l(t).each(function(){var e=l(this);e.wrap('<div class="flat__4_video"></div>');var t=e.closest(".flat__4_video");-1!==r.indexOf("go"+"oglesyndication")?t.append(r):flatPM_setHTML(t[0],r),e.find(".flat__4_video_flex").one("click",function(){l(this).addClass("show")})}),l("body").on("click",".flat__4_video_item_hover",function(){var e=l(this),t=e.closest(".flat__4_video_flex");t.addClass("show");var a=t.find(".flat__4_timer span"),n=parseInt(o),r=setInterval(function(){a.text(--n),n<=0&&(clearInterval(r),"true"==d?a.parent().replaceWith('<button class="flat__4_cross"></button>'):t.remove())},1e3);e.remove()}).on("click",".flat__4_video_flex .flat__4_cross",function(){l(this).closest(".flat__4_video_flex").remove(),"true"==i&&l(".flat__4_video_flex").remove()})};</script> <script>flat_pm_arr = [{"how":{"simple":{"position":"5","fraction":"50"}},"ID":"199518","html":[{"fst":"<!-- Yandex.RTB R-A-635417-1 -->\n<div id=\"yandex_rtb_R-A-635417-1\"><\/div>\n<script type=\"text\/javascript\">\n (function(w, d, n, s, t) {\n w[n] = w[n] || [];\n w[n].push(function() {\n Ya.Context.AdvManager.render({\n blockId: \"R-A-635417-1\",\n renderTo: \"yandex_rtb_R-A-635417-1\",\n async: true\n });\n });\n t = d.getElementsByTagName(\"script\")[0];\n s = d.createElement(\"script\");\n s.type = \"text\/javascript\";\n s.src = \"\/\/an.yandex.ru\/system\/context.js\";\n s.async = true;\n t.parentNode.insertBefore(s, t);\n })(this, this.document, \"yandexContextAsyncCallbacks\");\n<\/script>","snd":"","res_of":"∞","res_to":"∞"}]},{"how":{"onсe":{"direction":"top_to_bottom","before_after":"after","N":"10","selector":".flat_pm_start~p","search_all":"false"}},"ID":"199519","html":[{"fst":"\n<div id=\"yandex_rtb_R-A-635417-2\"><\/div>\n<script type=\"text\/javascript\">\n (function(w, d, n, s, t) {\n w[n] = w[n] || [];\n w[n].push(function() {\n Ya.Context.AdvManager.render({\n blockId: \"R-A-635417-2\",\n renderTo: \"yandex_rtb_R-A-635417-2\",\n async: true\n });\n });\n t = d.getElementsByTagName(\"script\")[0];\n s = d.createElement(\"script\");\n s.type = \"text\/javascript\";\n s.src = \"\/\/an.yandex.ru\/system\/context.js\";\n s.async = true;\n t.parentNode.insertBefore(s, t);\n })(this, this.document, \"yandexContextAsyncCallbacks\");\n<\/script>","snd":"","res_of":"∞","res_to":"∞"}]},{"how":{"onсe":{"direction":"top_to_bottom","before_after":"after","N":"20","selector":".flat_pm_start~p","search_all":"false"}},"ID":"199520","html":[{"fst":"\n<div id=\"yandex_rtb_R-A-635417-3\"><\/div>\n<script type=\"text\/javascript\">\n (function(w, d, n, s, t) {\n w[n] = w[n] || [];\n w[n].push(function() {\n Ya.Context.AdvManager.render({\n blockId: \"R-A-635417-3\",\n renderTo: \"yandex_rtb_R-A-635417-3\",\n async: true\n });\n });\n t = d.getElementsByTagName(\"script\")[0];\n s = d.createElement(\"script\");\n s.type = \"text\/javascript\";\n s.src = \"\/\/an.yandex.ru\/system\/context.js\";\n s.async = true;\n t.parentNode.insertBefore(s, t);\n })(this, this.document, \"yandexContextAsyncCallbacks\");\n<\/script>","snd":"","res_of":"∞","res_to":"∞"}]},{"how":{"onсe":{"direction":"top_to_bottom","before_after":"after","N":"30","selector":".flat_pm_start~p","search_all":"false"}},"ID":"199521","html":[{"fst":"\n<div id=\"yandex_rtb_R-A-635417-4\"><\/div>\n<script type=\"text\/javascript\">\n (function(w, d, n, s, t) {\n w[n] = w[n] || [];\n w[n].push(function() {\n Ya.Context.AdvManager.render({\n blockId: \"R-A-635417-4\",\n renderTo: \"yandex_rtb_R-A-635417-4\",\n async: true\n });\n });\n t = d.getElementsByTagName(\"script\")[0];\n s = d.createElement(\"script\");\n s.type = \"text\/javascript\";\n s.src = \"\/\/an.yandex.ru\/system\/context.js\";\n s.async = true;\n t.parentNode.insertBefore(s, t);\n })(this, this.document, \"yandexContextAsyncCallbacks\");\n<\/script>","snd":"","res_of":"∞","res_to":"∞"}]},{"how":{"onсe":{"direction":"top_to_bottom","before_after":"after","N":"40","selector":".flat_pm_start~p","search_all":"false"}},"ID":"199522","html":[{"fst":"\n<div id=\"yandex_rtb_R-A-635417-5\"><\/div>\n<script type=\"text\/javascript\">\n (function(w, d, n, s, t) {\n w[n] = w[n] || [];\n w[n].push(function() {\n Ya.Context.AdvManager.render({\n blockId: \"R-A-635417-5\",\n renderTo: \"yandex_rtb_R-A-635417-5\",\n async: true\n });\n });\n t = d.getElementsByTagName(\"script\")[0];\n s = d.createElement(\"script\");\n s.type = \"text\/javascript\";\n s.src = \"\/\/an.yandex.ru\/system\/context.js\";\n s.async = true;\n t.parentNode.insertBefore(s, t);\n })(this, this.document, \"yandexContextAsyncCallbacks\");\n<\/script>","snd":"","res_of":"∞","res_to":"∞"}]},{"how":{"onсe":{"direction":"top_to_bottom","before_after":"after","N":"50","selector":".flat_pm_start~p","search_all":"false"}},"ID":"199523","html":[{"fst":"\n<div id=\"yandex_rtb_R-A-635417-6\"><\/div>\n<script type=\"text\/javascript\">\n (function(w, d, n, s, t) {\n w[n] = w[n] || [];\n w[n].push(function() {\n Ya.Context.AdvManager.render({\n blockId: \"R-A-635417-6\",\n renderTo: \"yandex_rtb_R-A-635417-6\",\n async: true\n });\n });\n t = d.getElementsByTagName(\"script\")[0];\n s = d.createElement(\"script\");\n s.type = \"text\/javascript\";\n s.src = \"\/\/an.yandex.ru\/system\/context.js\";\n s.async = true;\n t.parentNode.insertBefore(s, t);\n })(this, this.document, \"yandexContextAsyncCallbacks\");\n<\/script>","snd":"","res_of":"∞","res_to":"∞"}]},{"how":{"onсe":{"direction":"top_to_bottom","before_after":"after","N":"60","selector":".flat_pm_start~p","search_all":"false"}},"ID":"199524","html":[{"fst":"\n<div id=\"yandex_rtb_R-A-635417-7\"><\/div>\n<script type=\"text\/javascript\">\n (function(w, d, n, s, t) {\n w[n] = w[n] || [];\n w[n].push(function() {\n Ya.Context.AdvManager.render({\n blockId: \"R-A-635417-7\",\n renderTo: \"yandex_rtb_R-A-635417-7\",\n async: true\n });\n });\n t = d.getElementsByTagName(\"script\")[0];\n s = d.createElement(\"script\");\n s.type = \"text\/javascript\";\n s.src = \"\/\/an.yandex.ru\/system\/context.js\";\n s.async = true;\n t.parentNode.insertBefore(s, t);\n })(this, this.document, \"yandexContextAsyncCallbacks\");\n<\/script>","snd":"","res_of":"∞","res_to":"∞"}]},{"how":{"onсe":{"direction":"top_to_bottom","before_after":"after","N":"70","selector":".flat_pm_start~p","search_all":"false"}},"ID":"199525","html":[{"fst":"\n<div id=\"yandex_rtb_R-A-635417-8\"><\/div>\n<script type=\"text\/javascript\">\n (function(w, d, n, s, t) {\n w[n] = w[n] || [];\n w[n].push(function() {\n Ya.Context.AdvManager.render({\n blockId: \"R-A-635417-8\",\n renderTo: \"yandex_rtb_R-A-635417-8\",\n async: true\n });\n });\n t = d.getElementsByTagName(\"script\")[0];\n s = d.createElement(\"script\");\n s.type = \"text\/javascript\";\n s.src = \"\/\/an.yandex.ru\/system\/context.js\";\n s.async = true;\n t.parentNode.insertBefore(s, t);\n })(this, this.document, \"yandexContextAsyncCallbacks\");\n<\/script>","snd":"","res_of":"∞","res_to":"∞"}]},{"how":{"onсe":{"direction":"top_to_bottom","before_after":"after","N":"80","selector":".flat_pm_start~p","search_all":"false"}},"ID":"199526","html":[{"fst":"\n<div id=\"yandex_rtb_R-A-635417-9\"><\/div>\n<script type=\"text\/javascript\">\n (function(w, d, n, s, t) {\n w[n] = w[n] || [];\n w[n].push(function() {\n Ya.Context.AdvManager.render({\n blockId: \"R-A-635417-9\",\n renderTo: \"yandex_rtb_R-A-635417-9\",\n async: true\n });\n });\n t = d.getElementsByTagName(\"script\")[0];\n s = d.createElement(\"script\");\n s.type = \"text\/javascript\";\n s.src = \"\/\/an.yandex.ru\/system\/context.js\";\n s.async = true;\n t.parentNode.insertBefore(s, t);\n })(this, this.document, \"yandexContextAsyncCallbacks\");\n<\/script>","snd":"","res_of":"∞","res_to":"∞"}]},{"how":{"onсe":{"direction":"top_to_bottom","before_after":"after","N":"90","selector":".flat_pm_start~p","search_all":"false"}},"ID":"199527","html":[{"fst":"\n<div id=\"yandex_rtb_R-A-635417-10\"><\/div>\n<script type=\"text\/javascript\">\n (function(w, d, n, s, t) {\n w[n] = w[n] || [];\n w[n].push(function() {\n Ya.Context.AdvManager.render({\n blockId: \"R-A-635417-10\",\n renderTo: \"yandex_rtb_R-A-635417-10\",\n async: true\n });\n });\n t = d.getElementsByTagName(\"script\")[0];\n s = d.createElement(\"script\");\n s.type = \"text\/javascript\";\n s.src = \"\/\/an.yandex.ru\/system\/context.js\";\n s.async = true;\n t.parentNode.insertBefore(s, t);\n })(this, this.document, \"yandexContextAsyncCallbacks\");\n<\/script>","snd":"","res_of":"∞","res_to":"∞"}]},{"how":{"onсe":{"direction":"top_to_bottom","before_after":"after","N":"100","selector":".flat_pm_start~p","search_all":"false"}},"ID":"199528","html":[{"fst":"\n<div id=\"yandex_rtb_R-A-635417-11\"><\/div>\n<script type=\"text\/javascript\">\n (function(w, d, n, s, t) {\n w[n] = w[n] || [];\n w[n].push(function() {\n Ya.Context.AdvManager.render({\n blockId: \"R-A-635417-11\",\n renderTo: \"yandex_rtb_R-A-635417-11\",\n async: true\n });\n });\n t = d.getElementsByTagName(\"script\")[0];\n s = d.createElement(\"script\");\n s.type = \"text\/javascript\";\n s.src = \"\/\/an.yandex.ru\/system\/context.js\";\n s.async = true;\n t.parentNode.insertBefore(s, t);\n })(this, this.document, \"yandexContextAsyncCallbacks\");\n<\/script>","snd":"","res_of":"∞","res_to":"∞"}]},{"how":{"simple":{"position":"3"}},"ID":"199529","html":[{"fst":"<div id=\"hewaloy-alacaxumarexoripi\">\n<script>\n!(function(w,m){(w[m]||(w[m]=[]))&&w[m].push(\n{id:'hewaloy-alacaxumarexoripi',block:'95776', site_id:'19307'}\n);})(window, 'mtzBlocks');\n<\/script>\n<\/div>\n<script async src=\"https:\/\/yastatic.net\/pcode-native\/loaders\/loader.js\"><\/script>\n<script>\n (yaads = window.yaads || []).push({\n id: \"635417-19\",\n render: \"#id-635417-19\"\n });\n<\/script>\n<div id=\"id-635417-19\"><\/div>\n\n","snd":"","res_of":"∞","res_to":"∞"}]},{"how":{"outgoing":{"cross":"true","timer":"false","timer_count":"0","cookie":"true","whence":"3","indent":"0","after":"10","px_s":"seconds","close_window":"false"}},"ID":"199530","html":[{"fst":"\n<div id=\"yandex_rtb_R-A-635417-12\"><\/div>\n<script type=\"text\/javascript\">\n (function(w, d, n, s, t) {\n w[n] = w[n] || [];\n w[n].push(function() {\n Ya.Context.AdvManager.render({\n blockId: \"R-A-635417-12\",\n renderTo: \"yandex_rtb_R-A-635417-12\",\n async: true\n });\n });\n t = d.getElementsByTagName(\"script\")[0];\n s = d.createElement(\"script\");\n s.type = \"text\/javascript\";\n s.src = \"\/\/an.yandex.ru\/system\/context.js\";\n s.async = true;\n t.parentNode.insertBefore(s, t);\n })(this, this.document, \"yandexContextAsyncCallbacks\");\n<\/script>","snd":"","res_of":"1024","res_to":"∞"}]},{"how":{"outgoing":{"cross":"true","timer":"false","timer_count":"0","cookie":"true","whence":"3","indent":"0","after":"60","px_s":"seconds","close_window":"false"}},"ID":"199531","html":[{"fst":"\n<div id=\"yandex_rtb_R-A-635417-13\"><\/div>\n<script type=\"text\/javascript\">\n (function(w, d, n, s, t) {\n w[n] = w[n] || [];\n w[n].push(function() {\n Ya.Context.AdvManager.render({\n blockId: \"R-A-635417-13\",\n renderTo: \"yandex_rtb_R-A-635417-13\",\n async: true\n });\n });\n t = d.getElementsByTagName(\"script\")[0];\n s = d.createElement(\"script\");\n s.type = \"text\/javascript\";\n s.src = \"\/\/an.yandex.ru\/system\/context.js\";\n s.async = true;\n t.parentNode.insertBefore(s, t);\n })(this, this.document, \"yandexContextAsyncCallbacks\");\n<\/script>","snd":"","res_of":"1024","res_to":"∞"}]},{"how":{"outgoing":{"cross":"true","timer":"false","timer_count":"0","cookie":"true","whence":"3","indent":"0","after":"120","px_s":"seconds","close_window":"false"}},"ID":"199532","html":[{"fst":"\n<div id=\"yandex_rtb_R-A-635417-14\"><\/div>\n<script type=\"text\/javascript\">\n (function(w, d, n, s, t) {\n w[n] = w[n] || [];\n w[n].push(function() {\n Ya.Context.AdvManager.render({\n blockId: \"R-A-635417-14\",\n renderTo: \"yandex_rtb_R-A-635417-14\",\n async: true\n });\n });\n t = d.getElementsByTagName(\"script\")[0];\n s = d.createElement(\"script\");\n s.type = \"text\/javascript\";\n s.src = \"\/\/an.yandex.ru\/system\/context.js\";\n s.async = true;\n t.parentNode.insertBefore(s, t);\n })(this, this.document, \"yandexContextAsyncCallbacks\");\n<\/script>","snd":"","res_of":"1024","res_to":"∞"}]},{"how":{"outgoing":{"cross":"true","timer":"false","timer_count":"0","cookie":"true","whence":"2","indent":"0","after":"1000","px_s":"px","close_window":"false"}},"ID":"199533","html":[{"fst":"\n<div id=\"yandex_rtb_R-A-635417-15\"><\/div>\n<script type=\"text\/javascript\">\n (function(w, d, n, s, t) {\n w[n] = w[n] || [];\n w[n].push(function() {\n Ya.Context.AdvManager.render({\n blockId: \"R-A-635417-15\",\n renderTo: \"yandex_rtb_R-A-635417-15\",\n async: true\n });\n });\n t = d.getElementsByTagName(\"script\")[0];\n s = d.createElement(\"script\");\n s.type = \"text\/javascript\";\n s.src = \"\/\/an.yandex.ru\/system\/context.js\";\n s.async = true;\n t.parentNode.insertBefore(s, t);\n })(this, this.document, \"yandexContextAsyncCallbacks\");\n<\/script>","snd":"","res_of":"720","res_to":"1024"},{"fst":"\n<div id=\"yandex_rtb_R-A-635417-15\"><\/div>\n<script type=\"text\/javascript\">\n (function(w, d, n, s, t) {\n w[n] = w[n] || [];\n w[n].push(function() {\n Ya.Context.AdvManager.render({\n blockId: \"R-A-635417-15\",\n renderTo: \"yandex_rtb_R-A-635417-15\",\n async: true\n });\n });\n t = d.getElementsByTagName(\"script\")[0];\n s = d.createElement(\"script\");\n s.type = \"text\/javascript\";\n s.src = \"\/\/an.yandex.ru\/system\/context.js\";\n s.async = true;\n t.parentNode.insertBefore(s, t);\n })(this, this.document, \"yandexContextAsyncCallbacks\");\n<\/script>","snd":"","res_of":"∞","res_to":"720"}]},{"how":{"outgoing":{"cross":"true","timer":"false","timer_count":"0","cookie":"true","whence":"2","indent":"0","after":"60","px_s":"seconds","close_window":"false"}},"ID":"199534","html":[{"fst":"\n<div id=\"yandex_rtb_R-A-635417-16\"><\/div>\n<script type=\"text\/javascript\">\n (function(w, d, n, s, t) {\n w[n] = w[n] || [];\n w[n].push(function() {\n Ya.Context.AdvManager.render({\n blockId: \"R-A-635417-16\",\n renderTo: \"yandex_rtb_R-A-635417-16\",\n async: true\n });\n });\n t = d.getElementsByTagName(\"script\")[0];\n s = d.createElement(\"script\");\n s.type = \"text\/javascript\";\n s.src = \"\/\/an.yandex.ru\/system\/context.js\";\n s.async = true;\n t.parentNode.insertBefore(s, t);\n })(this, this.document, \"yandexContextAsyncCallbacks\");\n<\/script>","snd":"","res_of":"720","res_to":"1024"},{"fst":"\n<div id=\"yandex_rtb_R-A-635417-16\"><\/div>\n<script type=\"text\/javascript\">\n (function(w, d, n, s, t) {\n w[n] = w[n] || [];\n w[n].push(function() {\n Ya.Context.AdvManager.render({\n blockId: \"R-A-635417-16\",\n renderTo: \"yandex_rtb_R-A-635417-16\",\n async: true\n });\n });\n t = d.getElementsByTagName(\"script\")[0];\n s = d.createElement(\"script\");\n s.type = \"text\/javascript\";\n s.src = \"\/\/an.yandex.ru\/system\/context.js\";\n s.async = true;\n t.parentNode.insertBefore(s, t);\n })(this, this.document, \"yandexContextAsyncCallbacks\");\n<\/script>","snd":"","res_of":"∞","res_to":"720"}]},{"how":{"outgoing":{"cross":"true","timer":"false","timer_count":"0","cookie":"true","whence":"2","indent":"0","after":"120","px_s":"seconds","close_window":"false"}},"ID":"199535","html":[{"fst":"\n<div id=\"yandex_rtb_R-A-635417-17\"><\/div>\n<script type=\"text\/javascript\">\n (function(w, d, n, s, t) {\n w[n] = w[n] || [];\n w[n].push(function() {\n Ya.Context.AdvManager.render({\n blockId: \"R-A-635417-17\",\n renderTo: \"yandex_rtb_R-A-635417-17\",\n async: true\n });\n });\n t = d.getElementsByTagName(\"script\")[0];\n s = d.createElement(\"script\");\n s.type = \"text\/javascript\";\n s.src = \"\/\/an.yandex.ru\/system\/context.js\";\n s.async = true;\n t.parentNode.insertBefore(s, t);\n })(this, this.document, \"yandexContextAsyncCallbacks\");\n<\/script>","snd":"","res_of":"720","res_to":"1024"},{"fst":"\n<div id=\"yandex_rtb_R-A-635417-17\"><\/div>\n<script type=\"text\/javascript\">\n (function(w, d, n, s, t) {\n w[n] = w[n] || [];\n w[n].push(function() {\n Ya.Context.AdvManager.render({\n blockId: \"R-A-635417-17\",\n renderTo: \"yandex_rtb_R-A-635417-17\",\n async: true\n });\n });\n t = d.getElementsByTagName(\"script\")[0];\n s = d.createElement(\"script\");\n s.type = \"text\/javascript\";\n s.src = \"\/\/an.yandex.ru\/system\/context.js\";\n s.async = true;\n t.parentNode.insertBefore(s, t);\n })(this, this.document, \"yandexContextAsyncCallbacks\");\n<\/script>","snd":"","res_of":"∞","res_to":"720"}]},{"how":{"onсe":{"direction":"top_to_bottom","before_after":"after","N":"5","selector":".flat_pm_start~p","search_all":"false"}},"ID":"199536","html":[{"fst":"<div id=\"ze-qevikemaqavaxuhezexuzo\">\n<script>\n!(function(w,m){(w[m]||(w[m]=[]))&&w[m].push(\n{id:'ze-qevikemaqavaxuhezexuzo',block:'95061'}\n);})(window, 'mtzBlocks');\n<\/script>\n<\/div>","snd":"","res_of":"∞","res_to":"∞"}]},{"how":{"onсe":{"direction":"top_to_bottom","before_after":"before","N":"15","selector":".flat_pm_start~p","search_all":"false"}},"ID":"199537","html":[{"fst":"<div id=\"gicaw-ifamugubujafagesaqe\">\n<script>\n!(function(w,m){(w[m]||(w[m]=[]))&&w[m].push(\n{id:'gicaw-ifamugubujafagesaqe',block:'95068'}\n);})(window, 'mtzBlocks');\n<\/script>\n<\/div>","snd":"","res_of":"∞","res_to":"∞"}]},{"how":{"onсe":{"direction":"top_to_bottom","before_after":"before","N":"25","selector":".flat_pm_start~p","search_all":"false"}},"ID":"199538","html":[{"fst":"<div id=\"geraxolivi-cewuzuqogefumu\">\n<script>\n!(function(w,m){(w[m]||(w[m]=[]))&&w[m].push(\n{id:'geraxolivi-cewuzuqogefumu',block:'95076'}\n);})(window, 'mtzBlocks');\n<\/script>\n<\/div>","snd":"","res_of":"∞","res_to":"∞"}]},{"how":{"onсe":{"direction":"top_to_bottom","before_after":"before","N":"35","selector":".flat_pm_start~p","search_all":"false"}},"ID":"199539","html":[{"fst":"<div id=\"vuniwes-usaficalixosapedo\">\n<script>\n!(function(w,m){(w[m]||(w[m]=[]))&&w[m].push(\n{id:'vuniwes-usaficalixosapedo',block:'95081'}\n);})(window, 'mtzBlocks');\n<\/script>\n<\/div>","snd":"","res_of":"∞","res_to":"∞"}]},{"how":{"onсe":{"direction":"top_to_bottom","before_after":"before","N":"45","selector":".flat_pm_start~p","search_all":"false"}},"ID":"199540","html":[{"fst":"<div id=\"qurel-oredudamupugudesana\">\n<script>\n!(function(w,m){(w[m]||(w[m]=[]))&&w[m].push(\n{id:'qurel-oredudamupugudesana',block:'95086'}\n);})(window, 'mtzBlocks');\n<\/script>\n<\/div>","snd":"","res_of":"∞","res_to":"∞"}]},{"how":{"onсe":{"direction":"top_to_bottom","before_after":"before","N":"55","selector":".flat_pm_start~p","search_all":"false"}},"ID":"199541","html":[{"fst":"<div id=\"saletuloyo-safuvekojiyeji\">\n<script>\n!(function(w,m){(w[m]||(w[m]=[]))&&w[m].push(\n{id:'saletuloyo-safuvekojiyeji',block:'95091'}\n);})(window, 'mtzBlocks');\n<\/script>\n<\/div>","snd":"","res_of":"∞","res_to":"∞"}]},{"how":{"onсe":{"direction":"top_to_bottom","before_after":"before","N":"65","selector":".flat_pm_start~p","search_all":"false"}},"ID":"199542","html":[{"fst":"<div id=\"cew-ulamapogowatofiyajune\">\n<script>\n!(function(w,m){(w[m]||(w[m]=[]))&&w[m].push(\n{id:'cew-ulamapogowatofiyajune',block:'95096'}\n);})(window, 'mtzBlocks');\n<\/script>\n<\/div>","snd":"","res_of":"∞","res_to":"∞"}]},{"how":{"onсe":{"direction":"top_to_bottom","before_after":"before","N":"75","selector":".flat_pm_start~p","search_all":"false"}},"ID":"199543","html":[{"fst":"<div id=\"belugodiw-iriwicobibosuhu\">\n<script>\n!(function(w,m){(w[m]||(w[m]=[]))&&w[m].push(\n{id:'belugodiw-iriwicobibosuhu',block:'95101'}\n);})(window, 'mtzBlocks');\n<\/script>\n<\/div>","snd":"","res_of":"∞","res_to":"∞"}]},{"how":{"onсe":{"direction":"top_to_bottom","before_after":"before","N":"85","selector":".flat_pm_start~p","search_all":"false"}},"ID":"199544","html":[{"fst":"<div id=\"vi-lidekipavolihatilumugo\">\n<script>\n!(function(w,m){(w[m]||(w[m]=[]))&&w[m].push(\n{id:'vi-lidekipavolihatilumugo',block:'95106'}\n);})(window, 'mtzBlocks');\n<\/script>\n<\/div>","snd":"","res_of":"∞","res_to":"∞"}]},{"how":{"onсe":{"direction":"top_to_bottom","before_after":"before","N":"95","selector":".flat_pm_start~p","search_all":"false"}},"ID":"199545","html":[{"fst":"<div id=\"kiquhu-cuhijepiropaheruni\">\n<script>\n!(function(w,m){(w[m]||(w[m]=[]))&&w[m].push(\n{id:'kiquhu-cuhijepiropaheruni',block:'95111'}\n);})(window, 'mtzBlocks');\n<\/script>\n<\/div>","snd":"","res_of":"∞","res_to":"∞"}]},{"how":{"onсe":{"direction":"top_to_bottom","before_after":"before","N":"105","selector":".flat_pm_start~p","search_all":"false"}},"ID":"199546","html":[{"fst":"<div id=\"ve-hurolubariticenaripowo\">\n<script>\n!(function(w,m){(w[m]||(w[m]=[]))&&w[m].push(\n{id:'ve-hurolubariticenaripowo',block:'95116'}\n);})(window, 'mtzBlocks');\n<\/script>\n<\/div>","snd":"","res_of":"∞","res_to":"∞"}]},{"how":{"onсe":{"direction":"top_to_bottom","before_after":"before","N":"105","selector":".flat_pm_start~p","search_all":"false"}},"ID":"199547","html":[{"fst":"<div id=\"ve-hurolubariticenaripowo\">\n<script>\n!(function(w,m){(w[m]||(w[m]=[]))&&w[m].push(\n{id:'ve-hurolubariticenaripowo',block:'95116'}\n);})(window, 'mtzBlocks');\n<\/script>\n<\/div>","snd":"","res_of":"∞","res_to":"∞"}]}];</script> <script> function jQueryLoaded_flatpm_123( $ ) { if( "function" !== typeof flatPM_start ){ return; } flatPM_start(); } function jQueryLoading_flatpm_123() { if (window.jQuery && window.flat_pm_arr) { jQueryLoaded_flatpm_123( jQuery ) } else { setTimeout(function() { jQueryLoading_flatpm_123() }, 50) } } jQueryLoading_flatpm_123() </script><script>window.lazyLoadOptions = { elements_selector: "img[data-lazy-src],.rocket-lazyload,iframe[data-lazy-src]", data_src: "lazy-src", data_srcset: "lazy-srcset", data_sizes: "lazy-sizes", class_loading: "lazyloading", class_loaded: "lazyloaded", threshold: 300, callback_loaded: function(element) { if ( element.tagName === "IFRAME" && element.dataset.rocketLazyload == "fitvidscompatible" ) { if (element.classList.contains("lazyloaded") ) { if (typeof window.jQuery != "undefined") { if (jQuery.fn.fitVids) { jQuery(element).parent().fitVids(); } } } } }}; window.addEventListener('LazyLoad::Initialized', function (e) { var lazyLoadInstance = e.detail.instance; if (window.MutationObserver) { var observer = new MutationObserver(function(mutations) { var image_count = 0; var iframe_count = 0; var rocketlazy_count = 0; mutations.forEach(function(mutation) { for (i = 0; i < mutation.addedNodes.length; i++) { if (typeof mutation.addedNodes[i].getElementsByTagName !== 'function') { return; } if (typeof mutation.addedNodes[i].getElementsByClassName !== 'function') { return; } images = mutation.addedNodes[i].getElementsByTagName('img'); is_image = mutation.addedNodes[i].tagName == "IMG"; iframes = mutation.addedNodes[i].getElementsByTagName('iframe'); is_iframe = mutation.addedNodes[i].tagName == "IFRAME"; rocket_lazy = mutation.addedNodes[i].getElementsByClassName('rocket-lazyload'); image_count += images.length; iframe_count += iframes.length; rocketlazy_count += rocket_lazy.length; if(is_image){ image_count += 1; } if(is_iframe){ iframe_count += 1; } } } ); if(image_count > 0 || iframe_count > 0 || rocketlazy_count > 0){ lazyLoadInstance.update(); } } ); var b = document.getElementsByTagName("body")[0]; var config = { childList: true, subtree: true }; observer.observe(b, config); } }, false);</script><script data-no-minify="1" async src="https://kslift.ru/wp-content/plugins/rocket-lazy-load/assets/js/16.1/lazyload.min.js"></script><script>function lazyLoadThumb(e){var t='<img loading="lazy" data-lazy-src="https://i.ytimg.com/vi/ID/hqdefault.jpg" alt="" width="480" height="360"><noscript><img src="https://i.ytimg.com/vi/ID/hqdefault.jpg" alt="" width="480" height="360"></noscript>',a='<div class="play"></div>';return t.replace("ID",e)+a}function lazyLoadYoutubeIframe(){var e=document.createElement("iframe"),t="ID?autoplay=1";t+=0===this.dataset.query.length?'':'&'+this.dataset.query;e.setAttribute("src",t.replace("ID",this.dataset.src)),e.setAttribute("frameborder","0"),e.setAttribute("allowfullscreen","1"),e.setAttribute("allow", "accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"),this.parentNode.replaceChild(e,this)}document.addEventListener("DOMContentLoaded",function(){var e,t,a=document.getElementsByClassName("rll-youtube-player");for(t=0;t<a.length;t++)e=document.createElement("div"),e.setAttribute("data-id",a[t].dataset.id),e.setAttribute("data-query", a[t].dataset.query),e.setAttribute("data-src", a[t].dataset.src),e.innerHTML=lazyLoadThumb(a[t].dataset.id),e.onclick=lazyLoadYoutubeIframe,a[t].appendChild(e)});</script> </body> </html>