From 045544a1cd16e42c9ea37b23abdf35b2e95669d8 Mon Sep 17 00:00:00 2001 From: Sergey Lukashenko Date: Tue, 18 Mar 2025 21:51:21 +0300 Subject: [PATCH] Added basic data --- .gitlab-ci.yml | 21 + Dockerfile | 16 + README.md | 93 - nginx.conf | 53 + web/CW-Shed-1.54.user.js | 4212 ++++++ web/cw.js | 4212 ++++++ web/data/CW_Shed.meta.js | 4 + web/data/action_end.mp3 | Bin 0 -> 19792 bytes web/data/chat_mention.mp3 | Bin 0 -> 42337 bytes web/data/ihrv.mp3 | Bin 0 -> 59666 bytes web/data/item_names.json | 675 + web/data/jquery-3.4.1.min.js | 2 + web/data/jquery-ui.js | 18706 ++++++++++++++++++++++++ web/data/jquery.scrollintoview.min.js | 11 + web/data/lock.mp3 | Bin 0 -> 17930 bytes web/data/minus.png | Bin 0 -> 106 bytes web/data/plus.png | Bin 0 -> 130 bytes web/data/refresh.mp3 | Bin 0 -> 50282 bytes web/data/river_achievements.json | 377 + web/data/targeted.png | Bin 0 -> 508 bytes web/data/unlock.mp3 | Bin 0 -> 11661 bytes web/data/untargeted.png | Bin 0 -> 341 bytes 22 files changed, 28289 insertions(+), 93 deletions(-) create mode 100644 .gitlab-ci.yml create mode 100644 Dockerfile delete mode 100644 README.md create mode 100644 nginx.conf create mode 100644 web/CW-Shed-1.54.user.js create mode 100644 web/cw.js create mode 100644 web/data/CW_Shed.meta.js create mode 100644 web/data/action_end.mp3 create mode 100644 web/data/chat_mention.mp3 create mode 100644 web/data/ihrv.mp3 create mode 100644 web/data/item_names.json create mode 100644 web/data/jquery-3.4.1.min.js create mode 100644 web/data/jquery-ui.js create mode 100644 web/data/jquery.scrollintoview.min.js create mode 100644 web/data/lock.mp3 create mode 100644 web/data/minus.png create mode 100644 web/data/plus.png create mode 100644 web/data/refresh.mp3 create mode 100644 web/data/river_achievements.json create mode 100644 web/data/targeted.png create mode 100644 web/data/unlock.mp3 create mode 100644 web/data/untargeted.png diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..871d1cb --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,21 @@ +stages: + - build + +variables: + DOCKER_IMAGE: $DOCKER_REGISTRY/cwshed:latest +build: + stage: build + image: docker:20.10.24 + services: + - docker:20.10.24-dind + script: + # Docker Registry + - echo "$DOCKER_PASSWORD" | docker login $DOCKER_REGISTRY -u "$DOCKER_USERNAME" --password-stdin + + # Docker- + - docker build -t $DOCKER_IMAGE . + + # Docker- + - docker push $DOCKER_IMAGE + only: + - main diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ff6ea64 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +# Use the official nginx base image +FROM nginx + +# Copy the site files from the local /web folder to the container's /usr/share/nginx/html folder +COPY ./web /usr/share/nginx/html + +# Copy the custom nginx config file +COPY nginx.conf /etc/nginx/nginx.conf + +# Expose port 80 for HTTP traffic +EXPOSE 80 +# Expose port 443 for HTTPs traffic +EXPOSE 443 + +# Start the nginx server +CMD ["nginx", "-g", "daemon off;"] \ No newline at end of file diff --git a/README.md b/README.md deleted file mode 100644 index 3921a6a..0000000 --- a/README.md +++ /dev/null @@ -1,93 +0,0 @@ -# Cwshed Clone - - - -## Getting started - -To make it easy for you to get started with GitLab, here's a list of recommended next steps. - -Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)! - -## Add your files - -- [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files -- [ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command: - -``` -cd existing_repo -git remote add origin https://git.nyan404.ru/nyan404/cwshed-clone.git -git branch -M main -git push -uf origin main -``` - -## Integrate with your tools - -- [ ] [Set up project integrations](https://git.nyan404.ru/nyan404/cwshed-clone/-/settings/integrations) - -## Collaborate with your team - -- [ ] [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/) -- [ ] [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html) -- [ ] [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically) -- [ ] [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/) -- [ ] [Set auto-merge](https://docs.gitlab.com/ee/user/project/merge_requests/merge_when_pipeline_succeeds.html) - -## Test and Deploy - -Use the built-in continuous integration in GitLab. - -- [ ] [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/index.html) -- [ ] [Analyze your code for known vulnerabilities with Static Application Security Testing (SAST)](https://docs.gitlab.com/ee/user/application_security/sast/) -- [ ] [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html) -- [ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/) -- [ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html) - -*** - -# Editing this README - -When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thanks to [makeareadme.com](https://www.makeareadme.com/) for this template. - -## Suggestions for a good README - -Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information. - -## Name -Choose a self-explaining name for your project. - -## Description -Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors. - -## Badges -On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge. - -## Visuals -Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method. - -## Installation -Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection. - -## Usage -Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README. - -## Support -Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc. - -## Roadmap -If you have ideas for releases in the future, it is a good idea to list them in the README. - -## Contributing -State if you are open to contributions and what your requirements are for accepting them. - -For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self. - -You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser. - -## Authors and acknowledgment -Show your appreciation to those who have contributed to the project. - -## License -For open source projects, say how it is licensed. - -## Project status -If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers. diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..0ed6bba --- /dev/null +++ b/nginx.conf @@ -0,0 +1,53 @@ +user nginx; +worker_processes auto; + +error_log /var/log/nginx/error.log warn; +pid /var/run/nginx.pid; + +events { + worker_connections 2048; # Увеличено для поддержки большего количества одновременных соединений + multi_accept on; # Позволяет принимать несколько новых соединений за раз +} + +http { + include /etc/nginx/mime.types; + default_type application/octet-stream; + + log_format main '$remote_addr - $remote_user [$time_local] "$request" ' + '$status $body_bytes_sent "$http_referer" ' + '"$http_user_agent" "$http_x_forwarded_for"'; + + access_log /var/log/nginx/access.log main; + + sendfile on; + tcp_nopush on; + tcp_nodelay on; + + keepalive_timeout 30; + client_max_body_size 10M; + + gzip on; # Включает сжатие для ускорения загрузки + gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript; + gzip_min_length 1000; + gzip_comp_level 2; + + server { + listen 80; + server_name localhost; + + root /usr/share/nginx/html; + index index.html index.htm; + + location / { + try_files $uri $uri/ =404; + autoindex on; + autoindex_exact_size off; + autoindex_localtime on; + } + + error_page 500 502 503 504 /50x.html; + location = /50x.html { + root /usr/share/nginx/html; + } + } +} diff --git a/web/CW-Shed-1.54.user.js b/web/CW-Shed-1.54.user.js new file mode 100644 index 0000000..31b4edb --- /dev/null +++ b/web/CW-Shed-1.54.user.js @@ -0,0 +1,4212 @@ +// ==UserScript== +// @name CW: Shed +// @version 1.54 +// @description Сборник небольших дополнений к игре CatWar +// @author ReiReiRei +// @copyright 2020-2025, Тис (https://catwar.net/cat406811) +// @license MIT; https://opensource.org/licenses/MIT +// @updateURL https://reireirei72.github.io/zero-t-18883/shed/CW_Shed.meta.js +// @match *://catwar.net/* +// @match *://catwar.su/* +// @grant GM_xmlhttpRequest +// @grant GM.xmlHttpRequest +// @require https://reireirei72.github.io/zero-t-18883/shed/jquery-3.4.1.min.js +// @require https://raw.githubusercontent.com/litera/jquery-scrollintoview/master/jquery.scrollintoview.min.js +// @require https://reireirei72.github.io/zero-t-18883/shed/jquery-ui.js +// ==/UserScript== +(function (window, document, $) { + 'use strict'; + if (typeof $ === 'undefined') return; + const version = '1.54'; + const domain = location.host.split('.').pop(); + const MutationObserver = window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver; + const isDesktop = !$('meta[name=viewport]').length; + const defaults = { +'on_customChat' : false // Кастомный чат +,'on_chatReverse' : false // "Перевернуть" чат +,'on_actNotif' : false // Уведомления на действия +, 'on_newDM' : false // уведомления на новые лс +, 'on_newChat' : false // уведомления на новое соо в чате (не игровой) +, 'on_chatMention' : false // уведомления на упоминание имени в чате +, 'on_blockNotif' : false // уведомления при нажатии/отжатии блока +, 'on_smellTimerNotif' : true // уведомление при окончании таймера нюха +, 'on_paramInfo' : true // Информация о параметрах при нажатии +, 'on_idDM' : true // Включены по умолчанию: ID в личных сообщениях +, 'on_idCatMouth' : true // ID котов во рту при выборе +, 'on_idItemMouth' : true // ID предметов (и уникальные, и обычные) + инфо +, 'on_idChat' : false // ID в чате Игровой +, 'on_teamFights' : false // Команды в боережиме +, 'on_huntText' : true // Охота с текстом движения дичи +, 'on_huntMobileBtns' : true // Стиль, добавляющий кнопки охоте на телефонах +, 'on_huntMobileFix' : false // Стиль, фиксящий охоту на телефонах +, 'on_cleanerHistory' : false // лог чистки +, 'on_charInline' : true // душевые в одну строчку +, 'on_charHide' : false // скрыть душевых в игровой +, 'on_catsDown' : false // коты внизу клетки +, 'on_nickHighlight' : false // подсвечивание (кастомных) имен в чате +, 'on_moveFightLog' : false // кнопка (и возможность) перемещения лога бр +, 'on_shortFightLog' : false // сокращение лога бр +, 'on_reports' : true // отчеты в блогах +, 'on_oldDialogue' : false // старый вид диалогов (1 колонка в выборе) +, 'on_smellTimer' : false // таймер нюха +, 'on_cuMovesNote' : true // Окно заметок для ВТ +, 'on_settLink' : true // Ссылка на настройки в игровой +, 'on_extraInfo' : false // Доп. инфо о котиках +, 'on_deletionWarning' : false // Предупреждение об удалении +, 'on_historyCleanWarning' : false // Предупреждение о чистке истории TODO +, 'on_localTimer' : 0 // Отображение системного времени в игровой (0 - выключен, 1 - локальное, 2 - московское) + //Громкость звуков +, 'sound_notifEaten' : 0.2 // Звук, когда тебя подняли +, 'sound_notifBeaten' : 0.2 // Звук, когда тебя атакуют +, 'sound_notifEndAct' : 0.1 // Звук, когда заканчивается действие +, 'sound_newDM' : 0.1 // Звук при получении ЛС +, 'sound_newChat' : 0.1 // Звук при получении соо в Чате +, 'sound_chatMention' : 0.3 // Звук при упоминании имени игрока в чате (жёлтым) +, 'sound_blockStart' : 0.1 // Звук при нажатии блока +, 'sound_blockEnd' : 0.1 // Звук при отжатии блока +, 'sound_ttRefresh' : 0.2 // Звук при смене карты +, 'sound_smellTimer' : 0.1 // Звук при окончании таймера нюха + //Настройки лога чистки +, 'clean_id' : true // Писать в логе ID поднятого +, 'clean_underscore' : false // Подчеркивать "поднял/опустил" +, 'clean_title' : true // Писать в логе должность поднятого +, 'clean_status' : false // Писать в логе должность поднятого +, 'clean_location' : true // Писать в логе локацию, где подняли и где отпустили +, 'clean_action' : false // Писать в логе проверку на действие + //Массивы +, 'cm_blocked' : [] //Список игроков, от которых не получать уведомления на упоминание в чате +, 'nickListArray' : [] //Список ников игрока + //Настройки команд в БР +, 'tf_max_height' : 100 // макс высота блока с командами +, 'fight_log_max_height' : 70 // высота лога бр +, 'tf_color_g_team1' : "#41cd70" // зелёный цвет команды 1 (основная) в командах бр +, 'tf_color_g_team2' : "#429dde" // зелёный цвет команды 2 в командах бр +, 'tf_color_g_team3' : "#f6c739" // зелёный цвет команды 3 в командах бр +, 'tf_color_g_team4' : "#ee91d7" // зелёный цвет команды 4 в командах бр +, 'tf_color_r_team1' : "#cd4141" // красный цвет команды 1 (основная) в командах бр +, 'tf_color_r_team2' : "#cd4141" // красный цвет команды 2 в командах бр +, 'tf_color_r_team3' : "#cd4141" // красный цвет команды 3 в командах бр +, 'tf_color_r_team4' : "#cd4141" // красный цвет команды 4 в командах бр + //Умолчания действий (УВЕДОМЛЕНИЯ) +, 'notif_eaten' : true // Уведомлять, когда тебя съели +, 'notif_attack' : false // Уведомлять, когда тебя ввели в БР через Т2/Т3 + //Умолчания действий - ЗВУК +, 'snd_act_move' : true // Переход +, 'snd_act_eat' : false // Еда +, 'snd_act_need' : true // Нужда +, 'snd_act_drink' : true // Жажда +, 'snd_act_dig' : true // Копать +, 'snd_act_sleep' : true // Спать +, 'snd_act_sniff' : true // Нюхать +, 'snd_act_digin' : true // Закапывать +, 'snd_act_clean' : true // Вылизывать(ся) +, 'snd_act_swim' : true // Поплавать +, 'snd_act_fill_moss' : true // Наполнить водой мох +, 'snd_act_dive' : true // Нырять +, 'snd_act_murr' : true // Помурлыкать +, 'snd_act_tails' : false // Переплести хвосты +, 'snd_act_cheek' : false // Потереться щекой о щёку +, 'snd_act_ground' : false // Повалять по земле +, 'snd_act_rub' : false // Потереться носом о нос +, 'snd_act_calm' : false // Выход из бр +, 'snd_act_watch' : true // Осматривать окрестности +, 'snd_act_marking' : false // Метить территорию +, 'snd_act_clawscratch' : false // Точить когти +, 'snd_act_rug' : false // Чистить ковёр +, 'snd_act_attention' : false // Привлекать внимание +, 'snd_act_domestsleep' : false // Сон в лежанке +, 'snd_act_domesthunt' : false // Грандиозная охота +, 'snd_act_checkup' : false // Осмотреть кота +, 'snd_act_loottr' : true // осмотреть дупло +, 'snd_act_lootcr' : true // осмотреть расщелину + //Умолчания действий - ТЕКСТ +, 'txt_act_move' : true // Переход +, 'txt_act_eat' : true // Еда +, 'txt_act_need' : true // Нужда +, 'txt_act_drink' : true // Жажда +, 'txt_act_dig' : true // Копать +, 'txt_act_sleep' : true // Спать +, 'txt_act_sniff' : true // Нюхать +, 'txt_act_digin' : true // Закапывать +, 'txt_act_clean' : true // Вылизывать(ся) +, 'txt_act_swim' : true // Поплавать +, 'txt_act_fill_moss' : true // Наполнить водой мох +, 'txt_act_dive' : true // Нырять +, 'txt_act_murr' : true // Помурлыкать +, 'txt_act_tails' : true // Переплести хвосты +, 'txt_act_cheek' : true // Потереться щекой о щёку +, 'txt_act_ground' : true // Повалять по земле +, 'txt_act_rub' : true // Потереться носом о нос +, 'txt_act_calm' : true // Выход из бр +, 'txt_act_watch' : true // Осматривать окрестности +, 'txt_act_marking' : true // Метить территорию +, 'txt_act_clawscratch' : true // Точить когти +, 'txt_act_rug' : true // Чистить ковёр +, 'txt_act_attention' : true // Привлекать внимание +, 'txt_act_domestsleep' : true // Сон в лежанке +, 'txt_act_domesthunt' : true // Грандиозная охота +, 'txt_act_checkup' : true // Осмотреть кота +, 'txt_act_loottr' : true // осмотреть дупло +, 'txt_act_lootcr' : true // осмотреть расщелину +, 'my_id' : '' // Айди для отчетов + //Минное поле +, 'on_treeTechies' : false // минное поле +, 'tt_folded' : false // сворачивать минное поле +, 'tt_dark_theme' : false // темная тема +, 'tt_show_volume' : true // показывать громкость веток в чате +, 'tt_clean_confirm' : true // подтверждение очистки +, 'tt_notif_refresh' : false // звук при обновлении локи +, 'tt_window_top' : 20 // положение окна относительно верхней части +, 'tt_window_left' : 20 // положение окна относительно левой части +, 'tt_pagenamesArray' : ['1А', '2А', '3А', '4А', '5А', '6А', '1Б', '2Б', '3Б', '4Б', '5Б', '6Б', '1В', '2В', '3В', '4В', '5В', '6В', '1Г', '2Г', '3Г', '4Г', '5Г', '6Г'] //Список названий +, 'tt_pageenabledArray' : [true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true] //Список включенных , страниц +, 'tt_foldersnamesArray' : ['А', 'Б', 'В', 'Г'] //имена вкладок +, 'tt_foldersenabledArray' : [true, true, true, true] //включение вкладок + //CSS +, 'on_css_quicksettings' : false // быстрые настройки +, 'on_csslocation' : false // замена фона на определенный +, 'on_css_defects' : false // светить дефекты (но не грязь) +, 'on_css_defects_dirt' : false // светить дефекты (грязь) +, 'on_css_removesky' : false // убрать небо +, 'on_css_oldicons' : false // старые иконки +, 'on_css_coloredparam' : false // цветные параметры и навыки +, 'on_css_cellshade' : false // сетка +, 'on_css_bgpic' : false // картинка на заднем фоне +, 'on_css_bghuntpic' : false // картинка на заднем фоне охоты +, 'on_css_highlightmove' : false // подсветка переходов при наведении +, 'on_css_maxopacity' : false // непрозрачные мертвецы +, 'on_css_hideTooltip' : false // скрыть табличку (для кача лу) +, 'on_css_daylight' : false // всегда день +, 'on_css_alternativeDivideGUI' : false // Альтернативный интерфейс разделения травы +, 'on_css_itemHighlight' : false // Альтернативный интерфейс разделения травы + +, 'css_itemHighlightArray' : ['13','15','17','19','20','21','22','23','25','26','78','106','108','109','110','111','112','115','116','119','126','565','566','655','3993','4010','4011'] // предметы, которые нужно подсвечивать в Игровой +, 'css_itemHighlightColor' : '#eeeeee' // предметы, которые нужно подсвечивать в Игровой +, 'css_bgpicURL' : 'https://catwar.' + domain + '/cw3/spacoj/0.jpg' // картинка на заднем плане игровой +, 'css_huntbgpicURL' : 'https://catwar.' + domain + '/cw3/jagd_img/bg1.png' // картинка на заднем плане игровой +, 'css_locURL' : 'https://catwar.' + domain + '/cw3/spacoj/170.jpg' // на какой фон заменять +, 'css_cellshadeColor' : '#ffffff' // сетка цвет +, 'css_cellshadeOpacity' : 0.1 // сетка прозрачность +, 'css_theme' : 'theme_classic' // тема +, 'css_cp_pattern' : true // узор в навыках и параметрах +, 'css_cp_colors' : ['#ac23bf', '#d860ea', '#5e1268', '#6f2f79', '#dfab04', '#f0d142', '#845406', '#886921', '#28afd0', '#2bedee', '#165f75', '#157a7d', '#51d74c', '#89df4b', '#327327', '#54842d', '#d22c28', '#ee8761', '#841921', '#913733', '#a65b32', '#f09662', '#62351c', '#804c2d', '#379034', '#51bb39', '#1b4d1b', '#336b24'] // цвета +, 'on_css_hideChat' : false // скрыть чат + }; + const globals = {}; //Настройки + for (var key in defaults) { + let settings = getSettings(key); + if (settings === null) { + globals[key] = defaults[key]; + } + else { + if (Array.isArray(defaults[key])) { + try { + globals[key] = JSON.parse(settings); + } catch(e) { + console.log('CWShed: Ошибка при загрузке настройки ' + key) + console.log(settings) + console.error(e) + } + } + else { + globals[key] = settings; + } + } + } + const sounds = {}; + sounds.new_message = '/new_message.mp3'; + sounds.action_notif = 'https://reireirei72.github.io/zero-t-18883/shed/action_end.mp3'; + sounds.chat_mention = 'https://reireirei72.github.io/zero-t-18883/shed/chat_mention.mp3'; + sounds.alert_attacked = 'https://d.zaix.ru/ihrv.mp3'; + sounds.tt_refresh = 'https://reireirei72.github.io/zero-t-18883/shed/refresh.wav'; //изменить потом + sounds.block_start = 'https://reireirei72.github.io/zero-t-18883/shed/lock.mp3'; + sounds.block_end = 'https://reireirei72.github.io/zero-t-18883/shed/unlock.mp3'; + const audioGlobal = new Audio(); + audioGlobal.autoplay = false; + audioGlobal.loop = false; + + function playAudio(src, vlm) { + let audio = audioGlobal; + audio.src = src; + audio.volume = vlm; + audio.play(); + } + + function getSettings(key) { //Получение настроек + let setting = 'cws_sett_' + key; + let val = window.localStorage.getItem(setting); + switch (val) { + case null: + return null; + case 'true': + return true; + case 'false': + return false; + default: + return val; + } + } + var error_tm; + + function error(t) { + $("#error").text(t).show(); + clearTimeout(error_tm); + error_tm = setTimeout(function () { + hideError() + }, 10000); + } + + function hideError() { + clearTimeout(error_tm); + $("#error").fadeOut(500); + } + + function setSettings(key, val) { + let setting = 'cws_sett_' + key; + window.localStorage.setItem(setting, val); + } + + function removeSettings(key) { + let setting = 'cws_sett_' + key; + window.localStorage.removeItem(setting); + } + + function addCSS(css) { + $('head').append(``); + } + + function leadZero(num) { + return (num < 10) ? '0' + num : num; + } + const pageurl = window.location.href; + const isCW3 = (/^https:\/\/\w?\.?catwar.(su|net)\/cw3(?!(\/kns|\/jagd))/.test(pageurl)); + const isSite = !(/^https:\/\/\w?\.?catwar.(su|net)\/cw3(\/kns|\/jagd)?.*/.test(pageurl)); + const isDM = (/^https:\/\/\w?\.?catwar.(su|net)\/ls/.test(pageurl)); + const isHunt = (/^https:\/\/\w?\.?catwar.(su|net)\/cw3\/jagd/.test(pageurl)); + const isSett = (/^https:\/\/\w?\.?catwar.(su|net)\/settings/.test(pageurl)); + const isMyCat = (/^https:\/\/\w?\.?catwar.(su|net)\/$/.test(pageurl)); + const isBlog = (/^https:\/\/\w?\.?catwar.(su|net)\/blog\d+/.test(pageurl)); + const isCUMoves = (/^https:\/\/\w?\.?catwar.(su|net)\/moves$/.test(pageurl)); + const isProfile = (/^https:\/\/\w?\.?catwar.(su|net)\/cat(\d+|\/)/.test(pageurl)); + + try { + if (isCW3) cw3(); + if (isSite) site(); + if (isDM) dm(); + if (isSett) sett(); + if (isHunt) hunt(); + if (isMyCat) myCat(); + if (isBlog) blog(); + if (isProfile) profile(); + if (isCUMoves) cumoves(); + } + catch (err) { + window.console.error('CW:Shed error: ', err); + } + + if (!isDesktop) { // фиксы дизайнов + addCSS(`.tag_edit, .tag_save { + font-size: 130%; + } + .tag_remove, .tag_cancel { + font-size: 120% + } + #tag_quest { + padding: 7px + } + #tag_add { + padding: 9px; + }`); + } + + function site() { // Весь сайт, кроме Игровой и её разделов + if (globals.on_deletionWarning) { + const el = $('.other_cats_list').first(); + if (el.length) { + el.children().each(function (e) { + const href = $(this).attr('href'); + const data = /login2\?id=(\d+)/.exec(href); + let response = '[???]'; + if (data && data[1]) { + response = ''; + const id = +data[1]; + let cat_data = getSettings(`reg_${id}`); + if (cat_data) { + cat_data = JSON.parse(cat_data); + let date = new Date(); + date.setTime(date.getTime() + (date.getTimezoneOffset() + 180) * 60 * 1000); + let diff = Math.floor(date.getTime() / 1000) - cat_data.regTime; + diff = Math.floor(diff / 86400); // days alive + let count = 45; // Время жизни + if (diff > 365) { + count = 120; + } + let lastOnline = new Date(); + lastOnline.setTime(cat_data.lastOnline * 1000); + let inactive = Math.ceil((date - lastOnline) / (86400 * 1000)); + let ttl = count - inactive; + if (ttl < 7) { + response = `[!!!]`; + } + } + } + const text = $(this).text(); + $(this).html(`${text} ${response}`); + }); + } + } + } + function cw3() { //Игровая + if (globals.on_settLink) { + $('.small').first().append(` | Настройки модов`); //Настройки мода + } + if (no(globals.on_links)) { + return; + } + if (globals.on_historyCleanWarning) { + $(document).ready(function () { + const istElem = $('#ist'); + addCSS(`#history_clean { display: none; }`); + $('Очистить историю').insertAfter('#history_block > #ist + br'); + if (istElem.text() == 'История очищена.') { + $('#cws_history_clean').css('display', 'none'); + } + $('body').on('click', '#cws_history_clean', function(e) { + e.preventDefault(); + if (confirm('Точно очистить историю?')) { + $('#history_clean')[0].click(); + } + }); + var observer = new MutationObserver(function(mutationsList, observer) { + const ist = $('#ist').text(); + $('#cws_history_clean').css('display', (istElem.text() == 'История очищена.' ? 'none' : 'inline')); + }); + observer.observe(window.document.getElementById('ist'), {characterData: false, childList: true, attributes: false}); + + }); + } + if (globals.on_css_alternativeDivideGUI) { + $("body").on('click', '#reveal_info li:has(.select_teil)', function () { + $(this).find('.select_teil')[0].click(); + }); + addCSS(`#reveal_info > ul:has(.select_teil) { display: flex; flex-flow: row wrap; margin: 0; padding: 0; } +#reveal_info > ul:has(.select_teil) > li { display: block; width: 70px; height: calc(70px + 1.25em); position: relative; background-repeat: no-repeat; margin: 0 0 .2em .5em; cursor: pointer; } +#reveal_info > ul:has(.select_teil) > li > a { display: block; position: absolute; text-decoration: none; width: 70px; bottom: 0; text-align: center; } +#reveal_info > ul:has(.select_teil) > li:nth-child(1) { background-image: url(/cw3/things/120.png); } +#reveal_info > ul:has(.select_teil) > li:nth-child(2) { background-image: url(/cw3/things/121.png); } +#reveal_info > ul:has(.select_teil) > li:nth-child(3) { background-image: url(/cw3/things/122.png); } +#reveal_info > ul:has(.select_teil) > li:nth-child(4) { background-image: url(/cw3/things/123.png); } +#reveal_info > ul:has(.select_teil) > li:nth-child(5) { background-image: url(/cw3/things/124.png); } +#reveal_info > ul:has(.select_teil) > li:nth-child(6) { background-image: url(/cw3/things/125.png); }`); + } + if (globals.on_extraInfo) { + $.fn.reveal=function(options){var defaults={animation:'fadeAndPop',animationspeed:300,closeonbackgroundclick:true,dismissmodalclass:'close-reveal-modal'}; + var options=$.extend({},defaults,options);return this.each(function(){var modal=$(this),topMeasure=parseInt(modal.css('top')),topOffset=modal.height() + +topMeasure,locked=false,modalBG=$('.reveal-modal-bg');if(modalBG.length==0){modalBG=$('
').insertAfter(modal)} modal.bind( + 'reveal:open',function(){modalBG.unbind('click.modalEvent');$('.'+options.dismissmodalclass).unbind('click.modalEvent');if(!locked){lockModal();if + (options.animation=="fadeAndPop"){modal.css({'top':$(document).scrollTop()-topOffset,'opacity':0,'visibility':'visible'});modalBG.fadeIn(options. + animationspeed/2);modal.delay(options.animationspeed/2).animate({"top":$(document).scrollTop()+topMeasure+'px',"opacity":1},options.animationspeed, + unlockModal())}if(options.animation=="fade"){modal.css({'opacity':0,'visibility':'visible','top':$(document).scrollTop()+topMeasure});modalBG.fadeIn( + options.animationspeed/2);modal.delay(options.animationspeed/2).animate({"opacity":1},options.animationspeed,unlockModal())}if(options.animation=="none") + {modal.css({'visibility':'visible','top':$(document).scrollTop()+topMeasure});modalBG.css({"display":"block"});unlockModal()}}modal.unbind('reveal:open')} + );modal.bind('reveal:close',function(){if(!locked){lockModal();if(options.animation=="fadeAndPop"){modalBG.delay(options.animationspeed).fadeOut(options. + animationspeed);modal.animate({"top":$(document).scrollTop()-topOffset+'px',"opacity":0},options.animationspeed/2,function(){modal.remove();unlockModal()} + )}if(options.animation=="fade"){modalBG.delay(options.animationspeed).fadeOut(options.animationspeed);modal.animate({"opacity":0},options.animationspeed, + function(){modal.remove();unlockModal()})}if(options.animation=="none"){modal.remove();modalBG.css({'display':'none'})}}modal.unbind('reveal:close')}); + modal.trigger('reveal:open');var closeButton=$('.'+options.dismissmodalclass).bind('click.modalEvent',function(){modal.trigger('reveal:close')}); + if(options.closeonbackgroundclick){modalBG.css({"cursor":"pointer"});modalBG.bind('click.modalEvent',function(){modal.trigger('reveal:close')})}$('body') + .keyup(function(e){if(e.which===27){modal.trigger('reveal:close')}});function unlockModal(){locked=false}function lockModal(){locked=true}})} + const cws_showModal = function(t, e) { + $("#app").append('

' + + t + '

' + + e + '
×
'); + $("#reveal").reveal(); + } + const cws_catsInfo = {}; + $('body').on('mouseenter', '.cat', function () { + const cat = $(this); + let el = cat.find('.d'); + const link = cat.find('a').first(); + const catName = link.text(); + const cat_id = /\d+/.exec(link.attr('href'))[0]; + const defects = {}; + let el_composited, el_costume, size; + el.children().each(function (e) { + const bgImg = $(this).css('background-image'); + size = $(this).css('background-size'); + const isDefects = bgImg.indexOf('defects') > -1; + if (bgImg.indexOf('defects') > -1) { + const data = /cats\/-?\d+\/defects\/([a-z]+).*(\d+)\.png/.exec(bgImg) + if (data) { + const name = data[1], val = +(data[2]); + defects[name] = val; + } + } else if (bgImg.indexOf('composited') > -1) { + el_composited = $(this); + } else if (bgImg.indexOf('costume') > -1 && el_costume === undefined) { + el_costume = $(this); + } + }); + let image = "none"; + const hasGenerated = (el_composited !== undefined); + if (hasGenerated) { // take composited + image = /(composited\/[\da-f]{16})\.png/.exec(el_composited.css('background-image'))[1]; + } else if (el_costume !== undefined) { // take FIRST COSTUME + image = /(cats\/-?\d+\/costume\/\d+)\.png/.exec(el_costume.css('background-image'))[1]; + } + const pol = !!(/Его запах/.exec(cat.html())); + cws_catsInfo[cat_id] = { + "name" : catName, + hasGenerated, + image, + defects, + size, + pol, + }; + if (!cat.find('.cws-show-more').length) { + cat.find('.online').before(`Подробнее
`); + } else { + cat.find('.cws-show-more').data('id', cat_id); + } + }); + $('body').on('click', '.cws-show-more', function (e) { + e.preventDefault(); + let text = "Ничего не нашли грустно..."; + let title = "Информация"; + const id = $(this).data('id'); + const info = cws_catsInfo[id]; + if (info) { + title = `${info.name}`; + text = ``; + text += ``; + text += ``; + text += ``; + text += ``; + text += `
`; + text += `
Пол: ${info.pol ? "кот" : "кошка"}
`; + text += `Рост: ${info.size}${+(info.size.replace('%', '')) == 101 ? " (надута)" : ""}
`; + if (Object.keys(info.defects).length > 0) { + const defects_list = { + "poisoning" : { + name : "Отравления", + states : { "1" : "недомогание", "2" : "лёгкое отравление", "3" : "сильное отравление", "4" : "смертельное отравление", } + }, + "wound" : { + name : "Раны", + states : { "1" : "царапины", "2" : "лёгкие раны", "3" : "глубокие раны", "4" : "смертельные раны", } + }, + "drown" : { + name : "Травмы от утопления", + states : { "1" : "cсадины", "2" : "небольшие кровоподтёки", "3" : "сильные травмы", "4" : "смертельные травмы", } + }, + "disease" : { + name : "Болезнь", + states : { "1" : "кашель", "2" : "", "3" : "", "4" : "", } + }, + "trauma" : { + name : "Переломы", + states : { "1" : "синяки", "2" : "лёгкие ушибы", "3" : "сильные ушибы", "4" : "смертельные ушибы", } + }, + "dirt" : { + name : "Грязь", + states : { "1" : "грязные лапы", "2" : "грязевые пятна", "3" : "клещи", "4" : "блохи", } + }, + }; + const defects = []; + for (const defect in info.defects) { + const value = info.defects[defect]; + const name = defects_list[defect] && defects_list[defect].name || defect; + const flavor = defects_list[defect] && defects_list[defect].states[value] || "неизвестно"; + defects.push(`${name}: ${value} стадия (${flavor})`); + } + text += defects.join("
"); + } else { + text += `Здоров${info.pol ? "" : "а"}`; + } + text += `
`; + } + cws_showModal(title, text); + }); + } + if (globals.on_smellTimer) { + $(document).ready(function () { + $('.small').first().append(` | Нюх через: 0 с`); + let smellActive = 0; + let smellOtherActive = 0; + let firstNote = ""; + let rang = true; + + function smellTimerTick() { + let val = parseInt($('#cws_smell_timer').attr('value')); + if (val) { + rang = false; + val--; + $('#cws_smell_timer').attr('value', val); + let str = ''; + let hr = parseInt(val / 3600); + let mi = parseInt((val - hr * 3600) / 60); + let se = parseInt(val - (hr * 3600 + mi * 60)); + str += (hr) ? hr + ' ч ' : ''; + str += (mi || hr) ? mi + ' мин ' : ''; + str += se + ' с'; + $('#cws_smell_timer').html(str); + } + else if (globals.on_smellTimerNotif && !rang) { + playAudio(sounds.action_notif, globals.sound_smellTimer); + rang = true; + } + } + setInterval(smellTimerTick, 1000); + //TODO: сделать так, чтоб таймер не запускался вообще, пока есть действие нюха, т.е. value != 0 + let firstClick = setInterval(function () { //господи я ненавижу варовскую привычку сначала создавать элемент а потом вставлять в него данные + if ($('#smell_icon').length) { + firstNote = $('#error').html(); + $('#smell_icon').click(); + clearInterval(firstClick); + } + }, 500); + + $("body").on('DOMNodeInserted', '#dein', 'a[data-id=14]', function () { + let isActive = $('#dein a[data-id=14]').length; + if (!smellOtherActive && isActive) { //Отменено действие нюха + $('#cws_smell_timer').attr('value', 0); + $('#cws_smell_timer').html('0 с'); + } + smellOtherActive = isActive; + }); + const smell_timer = {"0": 3600,"1": 3600,"2": 3600,"3": 3600,"4": 1800,"5": 1200,"6": 900,"7": 720,"8": 600,"9": 0}; + $("body").on('DOMNodeRemoved', '#dein', 'a[data-id=14]', function () { + let isActive = $('#dein a[data-id=14]').length; + if (smellOtherActive && !isActive) { //Нажато действие нюха + let smell_lv = $('#smell b').text(), + smell_time = smell_timer[smell_lv], + str = '', + mi = smell_time / 60, + se = smell_time - mi * 60; + str += (mi) ? mi + ' мин ' : ''; + str += se + ' с'; + $('#cws_smell_timer').attr('value', smell_time); + $('#cws_smell_timer').html(str); + } + smellOtherActive = isActive; + }); + + $("body").on('DOMSubtreeModified', '#error', function () { + let html = $(this).html(); + if (html && html.indexOf('Следующее обнюхивание') !== -1) { + let text = html.replace('Следующее обнюхивание будет доступно через ', ''); + let smellMin = (text.match(/(\d+) мин/g) == null) ? 0 : parseInt(text.match(/(\d+) мин/g)[0].replace(/\D/g, '')); + let smellSec = parseInt(text.match(/(\d+) с/g)[0].replace(/\D/g, '')); + let totalSec = smellMin * 60 + smellSec; + $('#cws_smell_timer').attr('value', totalSec); + $('#cws_smell_timer').html(smellMin + ' мин ' + smellSec + ' с'); + if (firstNote !== "") { //Чтоб не перекрывало уведомления о ранах, голоде и т.д. + $('#error').html(firstNote); + firstNote = ""; + } + } + else if (html.indexOf('Час уже прошёл') !== -1 && firstNote !== "") { + $('#error').html(firstNote); + firstNote = ""; + } + }); + }); + } + if (globals.on_oldDialogue) { + $(document).ready(function () { + $("body").on('DOMNodeInserted', '#text', function () { + $(this).attr('size', 1); + }); + }); + } + if (globals.on_catsDown) { //опускаем котов вниз вместе со стрелами + $(document).ready(function () { + $('head').append(``); + $("body").on('DOMSubtreeModified DOMNodeInserted', '.catWithArrow', function (e) { + let $arrow = $(this).find('.arrow'); + let topval = $arrow.css('top'); + if (topval) { + let int_topval = parseInt(topval.replace('px', '')); + if (int_topval > 0) { + $arrow.css('bottom', topval); + $arrow.css('top', ''); + } + } + }); + }); + } + if (globals.on_charInline) { + addCSS(`.other_cats_list + br {display: none;}.other_cats_list::after {content: " ||";}.other_cats_list {border: none;}`); + } + if (+globals.on_localTimer) { + const getTimeStr = function() { + const date = new Date(); + if (+globals.on_localTimer == 2) { + date.setTime(date.getTime() + (date.getTimezoneOffset() + 180) * 60 * 1000); + } + return date.toLocaleTimeString() + "   " + + ['Вс', 'Пн', 'Вт', 'Ср', 'Чт', 'Пт', 'Сб'][date.getDay()] + ', ' + + date.getDate() + ' ' + ['января', 'февраля', 'марта', 'апреля', 'мая', 'июня', 'июля', 'августа', 'сентября', 'октября', 'ноября', 'декабря'][date.getMonth()]; + } + if (isDesktop) { + addCSS(`#cws_localTimer {color: #d7d7d7;background-color: #00000096;padding: 0 1em;font-size: 12px;line-height:2.2}#tr_tos > td {display: flex;justify-content: space-between;}`); + } else { + addCSS(`#cws_localTimer {color: #d7d7d7;background-color: #00000096;padding: 0 1em 0.3em 1em;font-size: 12px}`); + } + $('#tr_tos > td').append('
' + getTimeStr() + '
'); + setInterval(function () { + $('#cws_localTimer').html(getTimeStr()); + }, 1000); + } + if (globals.on_charHide) { + addCSS(`.other_cats_list {display: none;}.other_cats_list + br {display: none;}`); + } + if (globals.on_newDM) { + let newDM = 0; + const dm_observer = new MutationObserver(function(mutations) { + mutations.forEach(function(mutationRecord) { + if (mutationRecord.type === "characterData") { + let newDMtmp = $("#newls").text(); + if (newDMtmp !== undefined) { + newDMtmp = (newDMtmp === '') ? 0 : +(newDMtmp.replace(/\D/gi, '')); + if (newDMtmp > newDM) { + playAudio(sounds.new_message, globals.sound_newDM); + } + newDM = newDMtmp; + } + } + }); + }); + dm_observer.observe(document.getElementById('newls'), { subtree: true, characterData: true }); + } + if (globals.on_newChat) { + let newChat = 0; + $('body').on('DOMSubtreeModified', '#newchat', function () { // deprecated, todo: remove/update + let newChattmp = $(this).html(); + if (newChattmp !== undefined) { + newChattmp = (newChattmp === '') ? 0 : parseInt(newChattmp.replace(/\D/gi, '')); + if (newChattmp > newChat) { + playAudio(sounds.new_message, globals.sound_newChat); + } + newChat = newChattmp; + } + }); + } + if (globals.on_customChat) { + let messages = 1; + if (isDesktop) { + addCSS('#cws_chat_msg {width: 1000px;} .chat_text {width: 935px;}'); + } + else { + addCSS('#cws_chat_msg {width: 100% !important;} .chat_text {line-break: anywhere;}'); + } + addCSS(`#chat_msg {display: none;}#cws_chat_msg {overflow: auto;height: 275px;}.cws_chat_wrapper{display: -webkit-flex;padding: 0 .25em;display: flex;} + .cws_chat_msg {-webkit-flex: auto;flex: auto;-webkit-flex-direction: row;flex-direction: row;}.cws_chat_report {width: 42px;}.cws_chat_report {-webkit-touch-callout: none; + -webkit-user-select: none;-khtml-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none;}`); + // варомод (почему вы просите добавить совместимость меня, когда совместимость проще добавить тому кто сделал эту компактную игровую?) + const hvo_settings = JSON.parse(window.localStorage.getItem('cwmod_settings') || '{}'); + if (hvo_settings.cw3_compact) { + addCSS(`#cws_chat_msg { width: auto !important; height: 350px; padding: 2px; }`); + } + if (globals.on_chatReverse) { + $('

').insertBefore('#chat_form'); + } + else { + $('

').insertAfter('#chat_form'); + } + let scroll = false; // была прокрутка до предыдущих сообщений + const chatTarget = document.getElementById('chat_msg'); + const chatObserver = new MutationObserver(function (mutationsList, observer) { + let name_heard = false; + let last_mutation = mutationsList[mutationsList.length - 1].target; + let msg_new = last_mutation.children.length; + let msg_blocks = last_mutation.children; + for (let i = messages + 1; i <= msg_new; i++) { // Добавление во временный чат новых сообщений + let block = msg_blocks[msg_new - i]; + if (block.nodeName == "SPAN") { + let msg = block.getElementsByClassName('chat_text')[0], + classList = msg.classList.value, + text = msg.querySelectorAll('span')[0].innerHTML, + nick = msg.getElementsByClassName('nick')[0].outerHTML, + bot_resp = msg.querySelectorAll('b + span')[0], + bot_msg = (bot_resp === undefined) ? '' : bot_resp.outerHTML, + report = block.querySelectorAll('td[style="width: 42px;"]')[0], + cat_id = report.querySelectorAll('a[href^="/cat"]')[0].getAttribute('href'), + silent_bot = msg.querySelectorAll('.nick[style*="italic"]').length, + cat_title = ''; + cat_id = parseInt(cat_id.replace(/\D/g, '')); + let cat_id_format = (globals.on_idChat && !silent_bot) ? ` [${cat_id}]` : ''; + let has_nickname = false; + if (globals.on_nickHighlight) { // Покрасить ники в myname + $.each(globals.nickListArray, function (index, key) { + let expr = new RegExp('^(' + key + ')[^А-ЯЁёA-Za-z0-9]|[^А-ЯЁёA-Za-z0-9>](' + key + ')[^А-ЯЁёA-Za-z0-9<]|[^А-ЯЁёA-Za-z0-9](' + key + ')$|^(' + key + ')$', "ig"); + if (text.match(expr)) { //есть имя и оно ещё не внутри тега + let matchAll = text.matchAll(expr); + matchAll = Array.from(matchAll); // теперь массив + $.each(matchAll, function (index, value) { + let replacer = value[1] || value[2] || value[3] || value[4]; //То, что было найдено (4 местоположения key, 4 варианта регулярки) + text = text.replace(value[0], value[0].replace(replacer, '­' + replacer + '­')); + has_nickname = true; + }); + } + }); + } + if (globals.on_chatMention && !name_heard) { // Если в текущем сообщении есть myname и !name_heard - проиграть звук и выставить name_heard = true + let has_myname = msg.getElementsByClassName('myname').length; + if (has_myname || has_nickname) { + let is_bot = msg.getElementsByTagName('i').length; + if (jQuery.inArray(cat_id, globals.cm_blocked) == -1 && !is_bot) { //ЕСЛИ НЕ В МАССИВЕ ИГНОРИРУЕМЫХ и не бот + playAudio(sounds.chat_mention, globals.sound_chatMention); + name_heard = true; // чтоб не спамило звуки, когда загружаешь страницу а там чел твое имя 228 раз написал + } + } + } + // Если надо свапнуть (и ID включены, иначе будет жирный пробел перед должностью) + let result = `
+
+ ${text} - ${nick}${cat_title} ${cat_id_format} + ${bot_msg} + +
+
${report.outerHTML}
+
`; + if (globals.on_chatReverse) { + $('#cws_chat_msg').append(result); + $('#cws_chat_msg').append('
'); + if (!scroll) { + $('#cws_chat_msg')[0].scrollTop = $('#cws_chat_msg')[0].scrollHeight; + } + } + else { + $('#cws_chat_msg').prepend(result); + $('#cws_chat_msg').prepend('
'); + } + } + } + messages = mutationsList[mutationsList.length - 1].target.children.length; + }); + chatObserver.observe(chatTarget, { + childList: true + }); + + $('#cws_chat_msg').on('click', '.nick', function () { // потому что клик на ник с ориг чата работает только на ориг чат фу бе + let $text = $('#text'); + $text.val($text.val() + $(this).text() + ', '); + $text.focus(); + }); + $('#cws_chat_msg').on('click', '.msg_report', function () { // потому что клик на жалобу с ориг чата тоже работает только на ориг чат + let id = $(this).data('id'); + $('#chat_msg .msg_report[data-id="' + id + '"]')[0].click(); // почему вообще нельзя одновременно кликнуть на несколько элементов массива это глупо jq + }); + if (globals.on_chatReverse) { + $('#cws_chat_msg').on('scroll', function () { // потому что клик на жалобу с ориг чата тоже работает только на ориг чат + let $e = $('#cws_chat_msg'); + if ($e.scrollTop() + $e.height() >= $e[0].scrollHeight - 45) { // прокручено до конца + scroll = false; + } + else { + scroll = true; + } + }); + } + + } + if (globals.on_idItemMouth) { + let item_names_json = {}; + $(document).ready(function () { + $.getJSON("https://reireirei72.github.io/zero-t-18883/shed/item_names.json?" + Date.now(), function (response) { //Подгрузка имен предметов из json файла + item_names_json = response; + $("#thdey > ul").append('
  • Название предмета: [ Неизвестно ] [?]
  • '); + $("body").on('click', "#itemList .itemInMouth", function () { + if ($(this).hasClass("active_thing")) { + let item_id = $(this).find("img").attr("src").replace(/\D/g, ""); + let name = item_names_json[item_id] || "[ Неизвестно ]"; + $("#item_name_ide").html(name); + $("#item_id_ide").html(item_id); + } + }); + }); + }); + } + if (globals.on_idCatMouth) { + $(document).ready(function () { + $("#ctdey > ul").append('
  • ID кота: [ Не определено ]
  • '); + $("body").on('click', "#itemList .catrot", function () { + if ($(this).hasClass("active_thing")) { + $("#cat_id_ide").html($(this).attr('id')); + } + }); + }); + } + if (globals.on_actNotif) { + function which_action(text) { + const act_detect = { + "move": "Переход", + "eat": [" дичь", "Перекусывать"], + "need": "Делаем свои дела", + "drink": "Пьём ещё", + "dig": "Копать", + "sleep": "Сон", + "sniff": "нюх", + "digin": "Закапывать", + "clean": "Вылизывать", + "swim": "Плавать", + "fill_moss": "Наполнять мох", + "dive": "Нырять", + "murr": "Мурлыкать", + "tails": "Переплетаем хвосты", + "cheek": "Трёмся щекой", + "ground": "Валяем по земле", + "rub": "Тереться носом о нос", + "calm": "Успокаиваться", + "watch": "Осматривать окрестности", + "marking": "Помечать территорию", + "clawscratch": "Точить когти", + "rug": "Чистить ковёр", + "attention": "Привлекать внимание", + "domestsleep": "Спать ", + "domesthunt": "Грандиозно охотиться ", + "checkup": "Осматривать к", + "loottr": "Осматривать дупло", + "lootcr": "Осматривать расщелину" + }; + const act_flav_text = { + "move": "Переход", + "eat": "Поедание дичи", + "need": "Справление нужды", + "drink": "Питьё", + "dig": "Копание", + "sleep": "Сон", + "sniff": "Нюх", + "digin": "Закапывание", + "clean": "Вылизывание", + "swim": "Плавание", + "fill_moss": "Наполнение мха", + "dive": "Ныряние", + "murr": "Мурлыкаем", + "tails": "Переплетаем хвосты", + "cheek": "Трёмся щекой", + "ground": "Валяем по земле", + "rub": "Трёмся носом о нос", + "calm": "Выход из боевой стойки", + "watch": "Осмотр окрестностей", + "marking": "Пометка территории", + "clawscratch": "Затачивание когтей", + "rug": "Чистка ковра", + "attention": "Привлечение внимания", + "domestsleep": "Сон в лежанке", + "domesthunt": "Грандиозная охота", + "checkup": "Осмотр целителем", + "loottr": "Осмотр дупла", + "lootcr": "Осмотр расщелины" + }; + let wh_act = { + txt: null, + snd: false + }; + $.each(act_detect, function (actid, acttext) { + if (!(acttext instanceof Array)) {acttext = [acttext];} + for (let textinstance in acttext) { + if (text.indexOf(acttext[textinstance]) !== -1) { + if (globals["txt_act_" + actid]) wh_act.txt = act_flav_text[actid]; + if (globals["snd_act_" + actid]) wh_act.snd = true; + return wh_act; + } + } + + }); + return wh_act; + } + let rang = false; + let move_ok = false; // можно проигрывать звук + let action = which_action($("#block_mess").text() || ""); + var actionNotificationObserver = new MutationObserver(function(mutations) { + mutations.forEach(function(mutationRecord) { + if (mutationRecord.type === "characterData") { + let match = $('#block_mess').text().match(/(\d+\sч\s)?(\d+\sмин\s)?(\d+\sс)/u); + if (match) { + let time = match[0].trim(); + action = which_action($("#block_mess").text() || ""); + if (time == '7 с' || time == '6 с') move_ok = true; //Действие длится хотя бы 7 секунд -С МОМЕНТА ОТКРЫТИЯ ИГРОВОЙ- + if (action.txt !== null) $('title').text(time + " / " + action.txt); //Сменить титульник, если текст на это действие включен + let datenow = new Date(); + if (!action.snd) rang = true; //Реагировать только на нужные навыки ("звук был" = да) + if ((time === '3 с' || time === '2 с' || time === '1 с') && !rang && move_ok) { //Свернутая вкладка обновляется каждые 2-3 секунды, F // До конца действия 1-3 сек, звука ещё не было/звук включен, звук можно проигрывать + playAudio(sounds.action_notif, globals.sound_notifEndAct); + rang = true; + move_ok = false; + } + } else { + $('title').text('Игровая / CatWar'); + rang = false; + move_ok = false; + } + } + }); + }); + const actParentNode = document.getElementById('tr_actions').children[0]; + actionNotificationObserver.observe(actParentNode, { subtree: true, childList: true, characterData: true, characterDataOldValue: true, }); + } + if (globals.notif_eaten) { //Уведомления, когда вас поднимают + var pickNotificationObserver = new MutationObserver(function(mutations) { + mutations.forEach(function(mutationRecord) { + if (mutationRecord.type === "characterData") { + if ($("#block_mess").html().indexOf("Вы не сможете выбраться") !== -1) { + $('title').text("Во рту"); + playAudio(sounds.action_notif, globals.sound_notifEaten); + } + if ($("#block_mess").html() === "" && !globals.on_actNotif) { //Если пуст, действий нет (нужно, если нет уведомлений на действия) + $('title').text('Игровая / CatWar'); + } + } + }); + }); + const actParentNode = document.getElementById('tr_actions').children[0]; + pickNotificationObserver.observe(actParentNode, { subtree: true, childList: true, characterData: true, characterDataOldValue: true, }); + } + if (globals.notif_attack) { + const attackObserver = new MutationObserver(function(mutations) { + let last_note = $($("#ist").html().split('.')).get(-2); + if (last_note !== undefined) { + if (last_note.indexOf("в боевую стойку, поскольку на меня напал") !== -1) { + playAudio(sounds.alert_attacked, globals.sound_notifBeaten); + } + } + }); + attackObserver.observe(document.getElementById('ist'), { characterData: false, childList: true, attributes: false }); + } + if (globals.on_moveFightLog) { + $('#app').ready(function () { //Возможность перетаскивать панель лога боя + $('head').append(``); + $("#fightPanel").prepend(``); + $("#fightPanel").draggable({ + handle: "#fightPanelHandle" + }); + }); + } + if (globals.on_blockNotif) { + let block = false; + $('#app').ready(function () { + $('#block').on('load', function () { + if ($(this).attr('src') == 'symbole/lock.png') { //locked + block = true; + playAudio(sounds.block_start, globals.sound_blockStart); + } + else if (block) { //unlocked + block = false; + playAudio(sounds.block_end, globals.sound_blockEnd); + } + }); + }); + } + if (globals.fight_log_max_height != 70) { + $('#fightLog').css('height', globals.fight_log_max_height); + } + if (globals.on_shortFightLog) { + $(document).ready(function () { + let prev_log = ''; + let prev_class = ''; + var shortLogObserver = new MutationObserver(function(mutations) { + mutations.forEach(function(mutationRecord) { + if (mutationRecord.type === "childList") { + mutationRecord.addedNodes.forEach((node) => { + if (node.nodeType === Node.ELEMENT_NODE && node.nodeName === "SPAN" && !node.classList.contains("cws-hit-count")) { + let this_log = node.textContent, this_class = node.getAttribute("class"); + if (this_log == prev_log && prev_class == this_class) { + node.remove(); + $('#fightLog > br:first-child').remove(); + let $to_change = $('.cws-hit-count').first(); + let count = +($to_change.attr('count')); + count++; + $to_change.attr('count', count); + $to_change.html(' (х' + count + ')'); + } else { + $('').insertAfter(node); + } + prev_log = this_log; + prev_class = this_class; + } + }); + } + }); + }); + shortLogObserver.observe(document.getElementById('fightLog'), { subtree: true, childList: true }); + }); + } + if (globals.on_teamFights) { + $('head').append(``); //Определение цветов команд + $('head').append(``); //Заготовка раскраски команд + $("#app").ready(function () { + let ids = {}; //Список айди + $("#fightPanel").append(`
    + + + + + + +
    ИмяКоманда
    + +
    `); //Добавление списка в панель бр + $("#refresh-team").on("click", function () { //Кнопка "Обновить" + $('#fightColors > tr').each(function () { //Удалить старое + let id = $(this).attr('id').match(/\d+/)[0]; + if (!$("#arrow" + id).length) { //если не существует кота из списка в боережиме + $("#team_member_" + id).remove(); + delete ids[id]; + } + }); + $('.arrow').each(function () { + let id = $(this).attr('id').match(/\d+/)[0]; + if (!ids[id]) { //Добавить новое + ids[id] = 1; //team 1 + let name = $(".cat_tooltip a[href='/cat" + id + "']").html(); + $("#fightColors").append(`${name} + + + + + `); + } + }); + }); + $(document).on('change', '.cws-team-chk', function () { //Изменение команды при клике + let id = $(this).attr('id').match(/\d+/)[0]; + ids[id] = parseInt($(this).val()); + let style = '\n'; //Формирование нового стиля + $.each(ids, function (id, team) { + style += `#arrow${id} .arrow_green {background: var(--team${team}g);}\n#arrow${id} .arrow_red {background: var(--team${team}r);}\n`; + }); + $('#cws_team_fights').html(style); + }); + }); + } + if (globals.on_cleanerHistory) { + let titles = {}; + let statuses = {}; + const convert = { + "Котёнок": "котёнка", + "Оруженосец": "оруженосца", + "Старший оруженосец": "старшего оруженосца", + "Ученица целителя": "ученицу целителя", + "Ученик целителя": "ученика целителя", + "Целительница": "целительницу", + "Целитель": "целителя", + "Воительница": "воительницу", + "Воитель": "воителя", + "Старшая воительница": "старшую воительницу", + "Старший воитель": "старшего воителя", + "Старейшина": "старейшину", + "Глашатая": "глашатую", + "Глашатай": "глашатая", + "Предводительница": "предводительницу", + "Предводитель": "предводителя", + "Будущая стражница": "будущую стражницу", + "Будущий страж": "будущего стража", + "Будущая охотница": "будущую охотницу", + "Будущий охотник": "будущего охотника", + "Стражница": "стражницу", + "Страж": "стража", + "Охотница": "охотницу", + "Охотник": "охотника", + "Врачеватель": "врачевателя", + "Ученица врачевателя": "ученицу врачевателя", + "Ученик врачевателя": "ученика врачевателя", + "Ученица": "ученицу", + "Ученик": "ученика", + "Молодой воин": "молодого воина", + "Воин": "воина", + "Старший воин": "старшего воина", + "Учитель": "учителя", + "Воин света": "воина света", + "Слышащая": "слышащую", + "Слышащий": "слышащего", + "Ученица слышащего": "ученицу слышащего", + "Ученик слышащего": "ученика слышащего", + "Доверенная": "доверенную", + "Доверенный": "доверенного", + "Наследница": "наследницу", + "Наследник": "наследника", + "Хранитель моря": "хранителя моря", + "Верховная хранительница покоя": "верховную хранительницу покоя", + "Верховный хранитель покоя": "верховного хранителя покоя", + "Верховная добытчица": "верховную добытчицу", + "Верховный добытчик": "верховного добытчика", + "Верховная жрица": "верховную жрицу", + "Верховный жрец": "верховного жреца", + "Глава Верховного Совета": "главу Верховного Совета", + "Советница верховного жреца": "советницу верховного жреца", + "Советник верховного жреца": "советника верховного жреца", + "Советница верховного хранителя покоя": "советницу верховного хранителя покоя", + "Советник верховного хранителя покоя": "советника верховного хранителя покоя", + "Советница верховного добытчика": "советницу верховного добытчика", + "Советник верховного добытчика": "советника верховного добытчика", + "Лунная жрица": "лунную жрицу", + "Лунный жрец": "лунного жреца", + "Добытчица": "добытчицу", + "Добытчик": "добытчика", + "Хранительница покоя": "хранительницу покоя", + "Хранитель покоя": "хранителя покоя", + "Ученица хранителей покоя": "ученицу хранителей покоя", + "Ученик хранителей покоя": "ученика хранителей покоя", + "Ученица добытчиков": "ученицу добытчиков", + "Ученик добытчиков": "ученика добытчиков", + "Старец": "старца", + "Королева": "королеву", + "Наследник хранителя": "наследника хранителя", + "Хранительница солнца": "хранительницу солнца", + "Хранитель солнца": "хранителя солнца", + "Заместительница глашатая": "заместительницу глашатая", + "Заместитель глашатая": "заместителя глашатая", + "Восходящая": "восходящую", + "Восходящий": "восходящего", + "Командор серых стражей": "командора серых стражей", + "Ведущая": "ведущую", + "Ведущий": "ведущего", + "Ученица Луны": "ученицу Луны", + "Ученик Луны": "ученика Луны", + "Королева": "королеву", + "Заботливый отец": "заботливого отца", + "Ведущая воительница": "ведущую воительницу", + "Ведущий воитель": "ведущего воителя", + "Молодая воительница": "молодую воительницу", + "Молодой воин": "молодого воина", + "Помощница ученика врачевателя": "помощницу ученика врачевателя", + "Помощник ученика врачевателя": "помощника ученика врачевателя", + "Старший оруженосец": "старшего оруженосца", + "Переходящая": "переходящую", + "Переходящий": "переходящего", + "Советница": "советницу", + "Советник": "советника", + "Воспитанник": "воспитанника", + "Воспитанница": "воспитанницу", + "Старший воспитанник": "старшего воспитанника", + "Старший воспитанница": "старшую воспитанницу", + "Вождь": "вождя", + "Мудрец": "мудреца", + "Искусник": "искусника", + "Наместник": "наместника", + "Пилигрим": "пилигрима", + "Ловец": "ловца", + "Шаман": "шамана", + "Кормилица": "кормилицу", + "Воевода": "воеводу" + }; + + function title_convert(title) { + return convert[title] || title; + } + if (globals.clean_title || globals.clean_status) { + $(document).ready(function () { + const catsCagesObserver = new MutationObserver(function(mutations) { + mutations.forEach(function(mutationRecord) { + if (mutationRecord.type === "childList") { + mutationRecord.removedNodes.forEach((node) => { + if (node.nodeType === Node.ELEMENT_NODE && node.classList.contains("catWithArrow")) { + const linkNode = node.querySelector('.cat_tooltip > u > a'); + if (linkNode) { + let href = linkNode.getAttribute('href'); + if (href !== undefined) { + let cat_id = href.replace(/\D/g, ''); + if (titles[cat_id] === undefined) { + let titleElem = node.innerHTML.match(/
    ([^<]+)<\/i><\/small><\/div>/ui); + if (titleElem !== null && titleElem[1]) { + titles[cat_id] = titleElem[1]; + } + } + let status = node.querySelector('.online').textContent; // [ На удалении ] + let is_punished = node.querySelector('div[style*="costume/295."]'); // Подстилки? + if (is_punished) { + status = "[ В подстилках ]"; + } + statuses[cat_id] = status; + } + } + } + }); + } + }); + }); + catsCagesObserver.observe(document.getElementById('cages'), { subtree: true, childList: true, attributes: false }); + }); + } + let first_load = true; + let cl_history = (window.localStorage.getItem('cws_cleaner_history_log') !== null) ? window.localStorage.getItem('cws_cleaner_history_log') : 'История очищена.'; + cl_history = ((globals.clean_underscore) ? cl_history.replace(/ (Подняла?|Опустила?) /ig, ' $1 ') : cl_history.replace(/ (Подняла?|Опустила?)<\/u> /ig, ' $1 ')); + $("#ist").ready(function () { + // ДОБАВЛЕНИЕ ЛОГА ЧИСТИЛЬЩИКОВ + $('

    Деятельность в чистильщиках:

    ' + cl_history + '
    Очистить историю чистки').insertAfter("#history_clean"); + let prev_ist, prev_prev_ist; + + const cleanHistObserver = new MutationObserver(function(mutations) { + if (first_load) { + first_load = false; + } else { + const testDate = new Date(); + console.log('cleanHistObserver triggered at', testDate.getTime()); + let last_ist = $("#ist").html().split('.'); + last_ist = last_ist[last_ist.length - 2]; + if (last_ist !== undefined) { + console.log('Последняя запись в истории:', last_ist); + let clean_id = last_ist.match(/cat(\d+)/); + if (clean_id) { + clean_id = clean_id[1]; + } + last_ist = last_ist.trim().replace(/(<([^>]+)>)/ig, ''); + if (((last_ist.indexOf("Поднял") !== -1) || (last_ist.indexOf("Опустил") !== -1)) && ((last_ist.indexOf("кота") !== -1) || (last_ist.indexOf("кошку") !== -1))) { //Если есть "поднял(а)/опустил(а) кота/кошку" + console.log('В последней записи найдено "Поднял/опустил", ID жертвы:', clean_id); + let hist_str = ' ' + ((globals.clean_underscore) ? last_ist.replace(/(Подняла*|Опустила*)/, '$1') : last_ist); + if (globals.clean_id) { + hist_str += ' (' + clean_id + ')'; + } //Записать ID + if (globals.clean_status && (last_ist.indexOf("Поднял") !== -1) && statuses[clean_id] !== undefined) { + hist_str += ' ' + statuses[clean_id]; + } + if (globals.clean_location) { + hist_str += ' в локации «' + $("#location").html() + '»'; + } //Записать локацию + hist_str += '.'; + if ((globals.clean_action) && // следить за проверками + (last_ist.indexOf("Поднял") !== -1) && + (prev_prev_ist !== undefined) && // поза-позапрошлая запись есть + (prev_ist.indexOf("Отменил") !== -1) && //Отменил действие + (prev_prev_ist.indexOf("по имени") !== -1) && //Перед этим взаимодействуя с кем-то + (prev_prev_ist.indexOf("Поднял") === -1) && //Не поднял и не опустил + (prev_prev_ist.indexOf("Опустил") === -1)) { + let clean_curr_name = last_ist.match(/ по имени ([А-Яа-яЁё ]+)/u) || ['', '']; + let clean_check_name = prev_prev_ist.match(/ по имени ([А-Яа-яЁё ]+)/u) || ['', '']; + if (clean_check_name[1] !== '' && clean_check_name[1] == clean_curr_name[1]) { //Имя проверенного и имя поднятого одинаковые + let their_pol = (last_ist.indexOf("кошку") !== -1) ? 'кошку' : 'кота'; + let ur_pol = (last_ist.indexOf("Подняла") !== -1) ? 'Проверила' : 'Проверил'; + hist_str = ' ' + ur_pol + ' ' + their_pol + ' по имени ' + clean_check_name[1] + '.' + hist_str; + } + } + if (globals.clean_title && titles[clean_id]) { //Поменять на должность + hist_str = hist_str.replace(/(кота|кошку)/g, title_convert(titles[clean_id])); + } + console.log('Добавляем к истории чистки запись:', hist_str); + if ($("#location").html() != '[ Загружается… ]' && hist_str !== undefined) { //ок? + $('#cleaner_block').append(hist_str); + window.localStorage.setItem('cws_cleaner_history_log', $('#cleaner_block').html()); + } + } + prev_prev_ist = prev_ist; + prev_ist = last_ist; + } + } + }); + cleanHistObserver.observe(document.getElementById('ist'), { characterData: false, childList: true, attributes: false }); + $('#erase_cleaner').on('click', function () { + $('#cleaner_block').html("История очищена."); + window.localStorage.setItem('cws_cleaner_history_log', 'История очищена.'); + }); + }); + } + if (globals.on_treeTechies) { + if (globals.tt_notif_refresh) { + $("#ist").ready(function () { + let last_note, note_first = true; + const treeRefreshObserver = new MutationObserver(function(mutations) { + last_note = $($("#ist").html().split('.')).get(-2); //Последняя запись в истории + if (last_note !== undefined) { + if (/Услышала? оглушительн/.test(last_note) && !note_first) { + playAudio(sounds.tt_refresh, globals.sound_ttRefresh); + } + note_first = false; //История была уже прочитана 1 раз, и страница не только что загрузилась + } + }); + treeRefreshObserver.observe(document.getElementById('ist'), { characterData: false, childList: true, attributes: false }); + }); + } + $('#app').ready(function () { + $('head').append(``); + if (globals.tt_dark_theme) { + $('head').append(``); + } + if (globals.tt_show_volume) { + $('head').append(``); + } + const tt_field_def = ` + + + + +`; + let tt_fields = getSettings('tt_fields') === null ? [tt_field_def, tt_field_def, tt_field_def, tt_field_def, tt_field_def, tt_field_def, tt_field_def, tt_field_def, tt_field_def, tt_field_def, + tt_field_def, tt_field_def, tt_field_def, tt_field_def, tt_field_def, tt_field_def, tt_field_def, tt_field_def, tt_field_def, tt_field_def, + tt_field_def, tt_field_def, tt_field_def, tt_field_def + ] : JSON.parse(getSettings('tt_fields')); + let mines_html = `
    +
    Минное поле
    +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    +
    + + +
    +
    `; + for (let i = 0; i <= 3; i++) { + if (globals.tt_foldersenabledArray[i] || !i) { + mines_html += ` + `; + } + } + mines_html += `
    `; + for (let i = 0; i <= 5; i++) { + if (globals.tt_pageenabledArray[i] || !i) { + mines_html += ` + `; + } + } + for (let i = 6; i <= 23; i++) { + let k = parseInt(i / 6.0); + if (globals.tt_pageenabledArray[i] && globals.tt_foldersenabledArray[k]) { + mines_html += ` + `; + } + } + mines_html += `
    ${tt_fields[0]}
    `; + for (let i = 1; i <= 23; i++) { + if (globals.tt_pageenabledArray[i]) { + mines_html += `${tt_fields[i]}`; + } + } + mines_html += `
    `; + $('#app').append(mines_html); + let proj = false; //свитч переноса + let page = 0; //страница + let text = '0'; + let mark = 'cws-tt-safe'; + $("#cws_treeTechies").draggable({ + containment: "document", + handle: "#cws_treeTechiesHandle", + drag: function () { + let offset = $(this).offset(); + let xPos = offset.left; + let yPos = offset.top; + setSettings('tt_window_left', offset.left); + setSettings('tt_window_top', offset.top); + } + + }); + + let selFolder = getSettings('tt_selected_folder'); + if (selFolder !== null) { + if (!$('#cws_tt_folder' + selFolder).length) { + selFolder = '0'; + } + $('#cws_tt_folder' + selFolder).click(); + $('.cws-tt-page-lbl').hide(); + $('.cws-tt-page-lbl[folder=' + selFolder + ']').show(); + $('.cws-tt-page-lbl[folder=' + selFolder + ']')[0].click(); + let pageid = $('.cws-tt-page-lbl[folder=' + selFolder + ']').attr('for'); + let $pageinp = $('#' + pageid + ''); + $('.cws-tt-table[page=' + page + ']').hide(); + page = $pageinp.val(); + $('.cws-tt-table[page=' + page + ']').show(); + } + + function tt_setStyle($elem, style) { + $elem.removeClass('cws-tt-safe cws-tt-unsafe cws-tt-move').addClass(style); + if (proj) { + let col = $elem.index(); + let row = $elem.parent().index(); + $('#cages > tbody > tr').eq(row).children().eq(col).removeClass('cws-tt-safe cws-tt-unsafe cws-tt-move').addClass(style); + } + } + + function tt_draw() { + $('.cws-tt-table[page=' + page + '] td.cws-tt-safe, .cws-tt-table[page=' + page + '] td.cws-tt-unsafe, .cws-tt-table[page=' + page + '] td.cws-tt-move').each(function () { + let col = $(this).index(); + let row = $(this).parent().index(); + $('#cages > tbody > tr').eq(row).children().eq(col).addClass($(this)[0].classList.value); + /*if ($(this).hasClass('cws-tt-safe') || $(this).hasClass('cws-tt-safe-def')) { + $('#cages > tbody > tr').eq(row).children().eq(col).addClass('cws-tt-safe'); + } + else if ($(this).hasClass('cws-tt-unsafe')) { + $('#cages > tbody > tr').eq(row).children().eq(col).addClass('cws-tt-unsafe'); + } + else if ($(this).hasClass('cws-tt-move')) { + $('#cages > tbody > tr').eq(row).children().eq(col).addClass('cws-tt-move'); + }*/ + }) + } + $('body').on('change', 'input[name="cws_tt_page"]', function () { + $('.cws-tt-table[page=' + page + ']').hide(); + page = $(this).val(); + $('.cws-tt-table[page=' + page + ']').show(); + if (proj) { + $('#cages > tbody > tr > td.cws-tt-safe').each(function () { + $(this).removeClass('cws-tt-safe') + }); + $('#cages > tbody > tr > td.cws-tt-unsafe').each(function () { + $(this).removeClass('cws-tt-unsafe') + }); + $('#cages > tbody > tr > td.cws-tt-move').each(function () { + $(this).removeClass('cws-tt-move') + }); + tt_draw(); + } + }); + $('body').on('change', 'input[name="cws_tt_folder"]', function () { + let folder = $(this).val(); + setSettings('tt_selected_folder', folder); + $('.cws-tt-page-lbl').hide(); + $('.cws-tt-page-lbl[folder=' + folder + ']').show(); + $('.cws-tt-page-lbl[folder=' + folder + ']')[0].click(); + }); + $('body').on('change', 'input[name="cws_tt_cell"]', function () { + text = $(this).val(); + mark = $(this).attr('mark'); + }); + $('body').on('click', '.cws-tt-table td', function () { + $(this).html(text).removeClass('cws-tt-safe cws-tt-unsafe cws-tt-move').addClass(mark); + if (proj) { + let col = $(this).index(); + let row = $(this).parent().index(); + $('#cages > tbody > tr').eq(row).children().eq(col).removeClass('cws-tt-safe cws-tt-unsafe cws-tt-move').addClass(mark); + } + tt_fields[page] = $('.cws-tt-table[page=' + page + ']').html(); + setSettings('tt_fields', JSON.stringify(tt_fields)); + }); + $('body').on('click', '#cws_tt_clear_btn', function () { + let ok = true; + if (globals.tt_clean_confirm) { + ok = confirm('Очистить поле?'); + } + if (ok) { + $('.cws-tt-table .cws-tt-safe-def').removeClass('cws-tt-safe-def'); // remove later + $('.cws-tt-table[page=' + page + '] td:not(.cws-tt-move)').each(function () { + $(this).html(''); + tt_setStyle($(this), ''); + }); + tt_fields[page] = $('.cws-tt-table[page=' + page + ']').html(); + setSettings('tt_fields', JSON.stringify(tt_fields)); + } + }); + $('body').on('click', '#cws_treeTechiesFold', function () { + $('#cws_treeTechies').toggleClass('folded'); + $('.cws-tt-fold-minus').toggleClass('cws-tt-fold-hidden'); + $('.cws-tt-fold-plus').toggleClass('cws-tt-fold-hidden'); + }); + $('body').on('change', '#cws_tt_show', function () { + if ($(this).prop('checked')) { + proj = true; //вкл свитч переноса + tt_draw(); + } + else { + proj = false; + $('#cages > tbody > tr > td.cws-tt-safe').removeClass('cws-tt-safe'); + $('#cages > tbody > tr > td.cws-tt-unsafe').removeClass('cws-tt-unsafe'); + $('#cages > tbody > tr > td.cws-tt-move').removeClass('cws-tt-move'); + } + }); + }); + } + if (globals.on_paramInfo) { + function timeConv(sec) { + let str = ""; + let hr = parseInt(sec / 3600); + let mi = parseInt((sec - hr * 3600) / 60); + let se = parseInt(sec - (hr * 3600 + mi * 60)); + str += ((hr) ? hr + " ч " : ""); + str += ((mi) ? mi + " мин " : ""); + str += ((se) ? se + " с" : ""); + return str.trim(); + } + $('body').on('click', '#dream_table .symbole', function () { + let green = $('#dream td:first-child').attr('style').replace(/[^\d\.]/g, ''); + let moving = ($('#dream td:first-child').attr('style').indexOf('overflow') !== -1); + if (!moving) { + let perc = Math.round(green / 150 * 10000) / 100; + error(`Сонливость: ${perc}% (${green}px).${(green<150)?` Спать${(green != '0')?` примерно ${timeConv((150-green)*20)}`:` 50 мин или более`}.`:''}`); + } + }); + $('body').on('click', '#hunger_table .symbole', function () { + let green = $('#hunger td:first-child').attr('style').replace(/[^\d\.]/g, ''); + let moving = ($('#hunger td:first-child').attr('style').indexOf('overflow') !== -1); + if (!moving) { + let perc = Math.round(green / 150 * 10000) / 100; + error("Голод: " + perc + "% (" + green + "px)."); + } + }); + $('body').on('click', '#thirst_table .symbole', function () { + let green = $('#thirst td:first-child').attr('style').replace(/[^\d\.]/g, ''); + let moving = ($('#thirst td:first-child').attr('style').indexOf('overflow') !== -1); + if (!moving) { + let perc = Math.round(green / 150 * 10000) / 100; + error(`Жажда: ${perc}% (${green}px).${(green<150)?` Пить примерно ${timeConv((150-green)*60)}.`:''}`); + } + }); + $('body').on('click', '#need_table .symbole', function () { + let green = $('#need td:first-child').attr('style').replace(/[^\d\.]/g, ''); + let moving = ($('#need td:first-child').attr('style').indexOf('overflow') !== -1); + if (!moving) { + let min = (150 - green) / 2; + let perc = Math.round(green / 150 * 10000) / 100; + error(`Нужда: ${perc}% (${green}px).${(green<150)?` Справлять нужду${(green != '0')?` примерно ${timeConv(Math.trunc(min)*60)}${(Number.isInteger(min))?'':' 30 с'}`:` 1 ч 15 мин или более`}.`:''}`); + } + }); + $('body').on('click', '#clean_table .symbole', function () { + let green = $('#clean td:first-child').attr('style').replace(/[^\d\.]/g, ''); + let moving = ($('#clean td:first-child').attr('style').indexOf('overflow') !== -1); + if (!moving) { + let fleas = (green < 75) ? true : false; + let perc = Math.round(green / 150 * 10000) / 100; + let red = 150 - green; + red = (red % 3) ? red : red - 0.5; + let time = (red - 1) / 1.5 * 100 + 100; + error(`Чистота: ${perc}% (${green}px).${(green<150)?` Вылизываться ${(fleas)?'уже поздно':timeConv(time)}.`:''}`); + } + }); + } + for (let i = 0; i < globals.css_itemHighlightArray.length; i++) { + globals.css_itemHighlightArray[i] = globals.css_itemHighlightArray[i].trim(); + } + var checkItemHighlightCage = function(style_value) { + let style = (style_value || '').split(';'); + const styleBody = `content: '';position: absolute;width: 100%;height: 100%;-webkit-filter: drop-shadow(3px 3px 0px ${globals.css_itemHighlightColor}); + -moz-filter: drop-shadow(3px 3px 0px ${globals.css_itemHighlightColor});-ms-filter: drop-shadow(3px 3px 0px ${globals.css_itemHighlightColor}); + -o-filter: drop-shadow(3px 3px 0px ${globals.css_itemHighlightColor});filter: drop-shadow(3px 3px 0px ${globals.css_itemHighlightColor});`; + for (let i = 0; i < style.length; i++) { + let now = style[i].split(':'); + if (now.length == 2 && now[0] == 'background') { + let nowItems = now[1].split(','); + let nowItemsGenerated = []; + let nowUniqueKey = 'cws_itemHighlight'; + for (let j = 0; j < nowItems.length; j++) { + let nowItem = nowItems[j]; + let nowItemType = ((nowItem.match(/things\/(\d+)\.png/u) || ['', 0])[1]) + ''; + nowUniqueKey += '_' + nowItemType; + if (globals.css_itemHighlightArray.includes(nowItemType)) { + nowItemsGenerated.push(nowItem); + } + } + if (nowItemsGenerated.length) { + if (!$('#' + nowUniqueKey).length) { + if (globals.on_css_itemHighlight_data == undefined) { + globals.on_css_itemHighlight_data = ''; + } + const data = ``; + globals.on_css_itemHighlight_data += data; + $('head').append(data); + } + } + } + } + } + var itemHighlightObserver = new MutationObserver(function(mutations) { + mutations.forEach(function(mutationRecord) { + checkItemHighlightCage(mutationRecord.target.attributes.style.value); + }); + }); + if (globals.on_css_itemHighlight) { + for (let target of document.getElementsByClassName('cage_items')) { + itemHighlightObserver.observe(target, { attributes : true, attributeFilter : ['style'] }); + } + } + const css_texts = { + 'on_csslocation': ``, + 'on_css_cellshade': ``, + 'on_css_removesky': ``, + 'on_css_oldicons': ``, + 'on_css_coloredparam': ``, + 'on_css_highlightmove': ``, + 'on_css_maxopacity': ``, + 'on_css_hideTooltip': ``, + 'on_css_daylight': ``, + 'on_css_defects': ``, + 'on_css_defects_dirt': ``, + 'on_css_hideChat': ``, + 'on_css_itemHighlight' : ``, + }; + $.each(css_texts, function (index, value) { + if (globals[index]) { + $('head').append(css_texts[index]); + if (globals[index + '_data']) { + $('head').append(globals[index + '_data']); + } + } + }); + + if (globals.on_css_quicksettings) { + addCSS(`#cws_quick_settings_block {user-select:none;}`); + $('#family').append(`

    Настройки CW:S

    +
    +${globals.on_treeTechies?`
    `:''} +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    + +
    `); + $('body').on('change', '#on_treeTechies', function () { + $('#cws_treeTechies').toggleClass('hidden'); + }); + $('body').on('change', '.cwa-chk', function () { + let id = $(this).attr('id'); + let ischkd = $(this).prop('checked'); + if (ischkd) { + $('head').append(css_texts[id]); + if (globals[id + '_data']) { + $('head').append(globals[id + '_data']); + } + if (id == 'on_css_itemHighlight') { + itemHighlightObserver.disconnect(); + for (let target of document.getElementsByClassName('cage_items')) { + itemHighlightObserver.observe(target, { attributes : true, attributeFilter : ['style'] }); + } + $('.cage_items').each(function() { + checkItemHighlightCage($(this).attr('style')); + }); + } + } else { + $('#cwsstyle_' + id + ', .' + id).remove(); + if (id == 'on_css_itemHighlight') { + itemHighlightObserver.disconnect(); + } + } + setSettings(id, ischkd); + }); + } + } + + function myCat() { + $(document).ready(function () { + let id = $('#pr table tr:first-child td:last-child a').attr('href').replace('cat', ''); + setSettings('thine', id); + }); + if (globals.on_deletionWarning) { + const id = +($('#id_icon').parent().parent().children().last().text()); + const moons = +($('#age_icon').parent().parent().children().last().text().replace(/[^\d\.]/ig, '')); + const age = Math.floor(moons * 4 * 86400 * 1000); + let date = new Date(); + date.setTime(date.getTime() + (date.getTimezoneOffset() + 180) * 60 * 1000 - age - 86400 * 1000); + // Текущая дата по московскому времени минус возраст и минус дополнительные сутки из-за того, что регистрация в ночное время + // может калькулировать возраст по лунам на день позже + const dateNow = new Date(); + dateNow.setTime(dateNow.getTime() + (dateNow.getTimezoneOffset() + 180) * 60 * 1000); + const obj = {}; + setSettings(`reg_${id}`, JSON.stringify({ + regTime: Math.floor(date.getTime() / 1000), + lastOnline: Math.floor(dateNow.getTime() / 1000) + })); + } + if (!globals.charListArray || !globals.charListArray.length) { //Если массив ни разу не заполнялся + $(document).ready(function () { + let autoCCArr = []; + $('a[href*="/login2?"]').each(function () { + let id = $(this).attr('href').split('=')[1]; + let name = $(this).html(); + if (id && name) { + autoCCArr.push({ + 'id': id, + 'name': name + }); + } + }); + let id = $('#pr a[href*="cat"] > b').html(); + let name = $('#pr > big').html(); + if (id && name) { + autoCCArr.push({ + 'id': id, + 'name': name + }); + } + window.localStorage.setItem('cws_sett_charListArray', JSON.stringify(autoCCArr)); + }); + } + } + + function profile() { + $.getJSON("https://reireirei72.github.io/zero-t-18883/shed/river_achievements.json?" + Date.now(), function (data) { + const achievements = data, + elem = ``, + inner = `Ачивка "{name}" +
    Тип: {type}
    +{condition}`; + const top_el_id = isDesktop ? '#branch' : '#site_table'; + let $achievement = $(`${top_el_id} > .parsed:first tbody > tr img[src*="i.yapx.cc"], ` + + `${top_el_id} > .parsed:first > img[src*="i.yapx.cc"], ` + + `${top_el_id} > .parsed:first tbody > tr img[src*="i.ibb.co"], ` + + `${top_el_id} > .parsed:first > img[src*="i.ibb.co"]`), + $body = $('body'), + old_code = ""; + const linkRegex = /(i\.yapx\.cc\/([\w\d]+)\.png|i\.ibb\.co\/([\d\w]+\/[\d\w_-]+)\.png)/; + $(document).ready(function () { + $achievement.last().after(elem); + $achievement.each(function (index) { // Добавить титул к каждой ачивке + let code = $(this).attr('src').match(linkRegex); + if (code !== null) { + code = code[2] || code[3]; + let name = (achievements[code] === undefined) ? "" : achievements[code].name; + $(this).prop('title', name); + } + }); + $achievement.on('click', function () { // инфоблок + let code = $(this).attr('src').match(linkRegex); + if (code !== null) { + code = code[2] || code[3]; + if (code == old_code && $('#cws_achievement').css('display') != 'none') { + $('#cws_achievement').hide(200); + } + else if (achievements[code] !== undefined) { + let this_achievement = achievements[code]; + let info = inner + .replace("{name}", this_achievement.name) + .replace("{type}", this_achievement.type) + .replace("{condition}", this_achievement.condition); + $('#cws_achievement').html(info).show(200); + old_code = code; + } + } + }); + }); + }); + } + + function dm() { //ЛС игрока + if (globals.on_idDM) { + function add_id() { + let id = $('#msg_login').attr('href'); + if (id !== undefined) { + id = id.replace(/\D/ig, ''); + $(' [' + id + ']').insertAfter($('#msg_login')); + } + } + $(document).ready(function () { + add_id(); // on load + $('#main').bind("DOMSubtreeModified", function () { + if (!$('#cws_msg_id').length) { + add_id(); // on click + } + }); + }); + } + } + + function hunt() { + if (globals.on_css_bghuntpic) { + $('head').append(``); + } + if (!isDesktop) { + if (globals.on_huntMobileBtns) { + addCSS(`#select_type:after { + content: " (переверните телефон на бок)"; + font-style: italic; +} +#select_type { + width: 80%; + margin-left: 10%; + margin-top: 5%; + text-align: center; +} +input { + left: 5%; + width: 90%; +} +#cws_buttons { + position: absolute; + top: 10px; + left: 0px; +} +.mod_btn { + position: absolute; + z-index: 9999; + font-family: Verdana; + font-size: 2.5em; + height: 1.5em; + width: 1.5em; + border-radius: 5em; + background-size: 75% !important; + background: #333 center no-repeat; + color: white; + opacity: .8; + bottom:0;right:0; + user-select: none; + text-align: center; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; +} +#w_btn { + top: 0em; + left: 2.25em; + background-image: url('https://i.imgur.com/y0e39Ai.png'); +} +#d_btn { + top: 2.3em; + left: 4.25em; + background-image: url('https://i.imgur.com/g6WcMvn.png'); +} +#a_btn { + top: 2.3em; + left: .25em; + background-image: url('https://i.imgur.com/JgywWPS.png'); +} +#s_btn { + top: 4.6em; + left: 2.25em; + background-image: url('https://i.imgur.com/BPRewfC.png'); +} +#q_btn { + top: .7em; + left: .75em; + background-image: url('https://i.imgur.com/JgywWPS.png'); +} +#e_btn { + top: .7em; + left: 3.75em; + background-image: url('https://i.imgur.com/y0e39Ai.png'); +} +#z_btn { + top: 3.9em; + left: .75em; + background-image: url('https://i.imgur.com/BPRewfC.png'); +} +#x_btn { + top: 3.9em; + left: 3.75em; + background-image: url('https://i.imgur.com/g6WcMvn.png'); +} +#q_btn, #e_btn, #x_btn, #z_btn {transform: rotate(45deg);} +#oben, #links, #rechts, #unten {display: none;}`); + $("#main").ready(function () { + $("#main").append(`
    + + + + + + +
    `); + $('.mod_btn').on("mousedown touchstart", function (e) { + e.preventDefault(); + let code = $(this).data('code'); + $('#main').trigger( + jQuery.Event('keydown', { + keyCode: code, + which: code + }) + ); + }); + $('.mod_btn').on("mouseup touchend", function (e) { + e.preventDefault(); + let code = $(this).data('code'); + $('#main').trigger( + jQuery.Event('keyup', { + keyCode: code, + which: code + }) + ); + }); + }); + } + if (globals.on_huntMobileFix) { + addCSS(`body { + position: fixed; + height: 100%; + width: 100%; + transform: scale(.8); +} +html { + height: 100%; + width: 100%; +} +#smell { + position: absolute; + bottom: calc(10px - 10%); + left: -10%; +} +#cws_buttons { + position: absolute; + top: calc(10px - 12.5%); + left: -12.5%; + transform: scale(.9); +}`); + } + } + + if (globals.on_huntText) { + addCSS(`#smell { + text-align: center; + display:flex; + flex-direction: column; + align-items:center; + justify-content:center; + } + #cws_hunt_txt { + background-color: white; +height: 2.3em; + } +#cws_timer, #cws_hunt_txt {width: 100%;}`); + + let color_old = -1; + setInterval(function () { + if ($('#smell').attr('style')) { + if (!$('#cws_hunt_txt').length) { + $('#smell').append('
    00:00
    ') + } + let color_new = parseInt($('#smell').css('background-color').split('(').pop().split(',')[0]); + let a = color_new - color_old + if (color_old != -1) { + let text = (a < 0) ? "Дальше" : "Ближе"; + if (color_new === 0) text = "Слишком далеко"; + if ((a !== 0) || (color_new === 0 && !$('#cws_hunt_txt').html())) $('#cws_hunt_txt').html(text); + } + color_old = color_new; + } + }, 100); + setInterval(function () { + if ($('#cws_timer').length) { + let sec = parseInt($('#cws_timer').data('sec')), + min; + $('#cws_timer').data('sec', ++sec); + min = parseInt(sec / 60); + sec = sec - min * 60; + $('#cws_timer').text(leadZero(min) + ':' + leadZero(sec)); + } + }, 1000); + } + } + + function blog() { + if (globals.on_reports) { + $(document).ready(function () { + addCSS(`.inp-button {background-color: #333;color: #fff;border: 1px solid #000;font-family: Verdana;font-size: .9em;}`); + const blogID = +(pageurl.replace(/\D/g, '')); + let date; + date = new Date(); + date.setTime(date.getTime() + (date.getTimezoneOffset() + 180) * 60 * 1000); + const date_str = date.getFullYear() + '-' + leadZero(date.getMonth() + 1) + '-' + leadZero(date.getDate()); + let my_id_div = `
    Ваш ID: 
    `; + + function rememberMyID(my_id) { + if ($('#remember_id').prop('checked') && !isNaN(my_id) && my_id) { // запомнить + setSettings('my_id', my_id); + } + } + addCSS(`/*.cws_tabs_content { display: none; } .cws_tabs_content.active { display: block; }*/ +.cws_tabs_caption { + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-flex-wrap: wrap; + -ms-flex-wrap: wrap; + flex-wrap: wrap; + list-style: none; + position: relative; + margin: 0; + padding-inline-start:0px; +} +.cws_tabs_caption li { + padding: 1px 12px; + margin: 0 2px 0 0; + background: #333; + color: #FFF; + position: relative; + border: solid #000; + border-width: 1px; + text-align: center; +} +.cws_tabs_caption li:not(.active) { + cursor: pointer; +} +.cws_tabs_caption li:not(.active):hover { + background: #444; + border-color: #666; +} +.cws_tabs_caption .active { + background: #444; + color: #fff; + border-color: #666; +}`); + /*РЕКА*/ + if (blogID == 13664) { // Охрана границ + let patr_time = 21, + doz_time = leadZero(date.getHours()), + patr_date = new Date(date), + doz_date = new Date(date); + let hour = date.getHours(), + minute = date.getMinutes(); + if (hour < 12) { + patr_date.setDate(patr_date.getDate() - 1); + } // yesterday + if (hour >= 12) { + patr_time = 12; + } + if (hour >= 15) { + patr_time = 15; + } + if (hour >= 18) { + patr_time = 18; + } + if (hour >= 21) { + patr_time = 21; + } + const patr_date_str = patr_date.getFullYear() + '-' + leadZero(patr_date.getMonth() + 1) + '-' + leadZero(patr_date.getDate()); + $('#send_comment').append(` +
    +

    Автоматическое заполнение отчётов

    +
    +${my_id_div} +
    +
    +
      +
    • Дозор
    • +
    • Патруль
    • +
    + +
    +
    +

    Дозор

    + + +
    Дата начала:
    +
    + +
    +
    +
    +

    Исключения из дозора

    + + + + + + + + + + + + + +
    Дата начала:
    Время начала:
    Освобождён: + + +
    Нарушение: + + + +
    + + + +
    +
    + + +
    `); + $('#r03_patr').on('click', function (e) { + let myid = parseInt($('#cws_blog_myid').val()); // id пишущего отчет + rememberMyID(myid); + myid = (isNaN(myid)) ? 'Некорректный ID ведущего' : masking(myid, '[cat%ID%] [%ID%]'); + let mar = $('.cws-input[name=r03_patr_mar]:checked').val(); + if (mar === undefined) { + mar = 'Не выбран маршрут'; + } + let arr_members = strToArr($('#cws_patr_members').val()); + let id_arr = []; + let name_error = false; // ошибка в имени участника + arr_members.forEach((element) => { + let name = element.trim(); + let tmp = nameToID(name); + if (parseInt(tmp)) { + id_arr.push(name + ' [' + tmp + ']'); + } + else { + name_error = true; + } + }) + let date = splitDateStr($("#r03_patr_date").val()); // дата + let hr = parseInt($("#r03_patr_time").val().split(":")[0]); + let txt = `[u][b]Патруль[/b][/u] +[b]Дата и время:[/b] ${date.day}.${date.month}, ${leadZero(hr)}:00; +[b]Маршрут:[/b] ${mar}; +[b]Ведущий:[/b] ${myid}; +[b]Участники:[/b] ${id_arr.join(', ')};`; + if (name_error) { + txt += `\n! ! ! В отчёте какая-то ошибка с именем (минимум одно из имён не было найдено). Проверьте его перед тем, как отправить.` + } + let val = $('#comment').val(); + if (val) { + val += "\n\n"; + } + $('#comment').val(val + txt).scrollintoview(); + }); + $('#r03_doz').on('click', function (e) { + let date = splitDateStr($("#r03_doz_date").val()), + txt = '[u][b]Дозор[/b][/u]\n[b]Дата:[/b] ' + date.day + '.' + date.month + ';\n[b]Время:[/b] ', + my_id = parseInt($('#cws_blog_myid').val()), + som_text = $('#r03_doz_text').val().trim(), + name_error = false, + locations = [], + time, + nextTime, + sign, + found, + pattern, + places = { + "КЗ": "Камышовые заросли", + "ТБ": "Травянистый берег", + "РЛ": "Редколесье", + "РО": "Разрушенная ограда", + "РД": "Расколотое дерево", + "ЛР": "Лесной ручеёк", + "ВЛ": "Валежник", + "ИТ": "Илистая тропа", + "ОС": "Одинокий склон", + "НК": "Нагретые камни", + "ДБ": "Дубрава", + "МЗ": "Мшистые земли", + "ГТ": "Главный туннель", + "01": "Активный 1", + "02": "Активный 2", + "03": "Активный 3", + "04": "Активный 4" + }; + rememberMyID(my_id); + time = som_text.match(/^(\d{2}) *([\+-])/i); + if (time === null) { + let val = $('#comment').val(); + if (val) { + val += "\n\n"; + } + $('#comment').val(val + '! ! ! Отчёт обязательно должен начинаться с двух цифр (час сбора) и знака (+ или -).'); + return; + } + sign = time[2]; + time = parseInt(time[1]); + nextTime = (time == 23) ? 0 : time + 1; + txt += leadZero(time) + ':00-' + leadZero(nextTime) + ':00;\n'; + my_id = (isNaN(my_id)) ? 'Некорректный ID собирающего' : masking(my_id, '[cat%ID%] [%ID%]'); + txt += '[b]Собирающий:[/b] ' + my_id + '.\n[b][u]Участники[/u][/b]\n'; + if (sign == '+') { + som_text = som_text.replace(/^(\d{2}) *([\+-])[^\n]*\n|\. *$|; *$|, *$/ig, ''); + som_text = som_text.replace(/\. *\n|, *\n|; *\n/ig, '\n'); + som_text = som_text.replace(/\n(\d):/ig, '\n0$1:'); + som_text = som_text.replace(/^(\d):/ig, '0$1:'); + $.each(places, function (short_name, full_name) { + pattern = new RegExp('\n*' + short_name + ': *([^\n]+)', "i"); + if (found = som_text.match(pattern)) { + let name_arr = found[1].split(','), + id_arr = [], + tmp_arr = []; + $.each(name_arr, function (index, name) { + let tmp = nameToID(name.trim()); + if (parseInt(tmp)) { + //id_arr.push(masking(tmp, '[cat%ID%] [%ID%]')); + id_arr.push(name + ' [' + tmp + ']'); + } + else { + id_arr.push(name_arr[index] + ' [?]'); + name_error = true; + } + }); + locations.push('[b]' + full_name + ':[/b] ' + id_arr.join(', ')); + } + }); + txt += locations.join(';\n') + '.'; + } + else { + txt += 'Нет.' + } + if (name_error) { + txt += `\n! ! ! В отчёте какая-то ошибка с именем (одно из имён не было найдено). Проверьте его перед тем, как отправить.` + } + let val = $('#comment').val(); + if (val) { + val += "\n\n"; + } + $('#comment').val(val + txt).scrollintoview(); + }); + $('#r03_doz_nar').on('click', function (e) { + let date = splitDateStr($("#r03_doz_nar_date").val()), + hr = parseInt($("#r03_doz_nar_time").val().split(":")[0]), + next_hr = (hr == 23) ? 0 : hr + 1, + txt = '[u][b]Дозор[/b][/u]\n[b]Дата:[/b] ' + date.day + '.' + date.month + ';\n[b]Время:[/b] ' + leadZero(hr) + ':00-' + leadZero(next_hr) + ':00'; + let free_arr = [], + nar_arr = []; + $('.r03-doz-nar-free-wrap').each(function () { + let free = $(this).find($('input.r03-doz-nar-free')).val(); + if (free) { + if (isNaN(parseInt(free))) { + free = nameToID(free.trim()); + } + free = masking(free, '[cat%ID%] [%ID%]'); + free_arr.push(free); + } + }); + $('.r03-doz-nar-wrap').each(function () { + let name = $(this).find($('input.r03-doz-nar-narname')).val(), + reason = $(this).find($('select.r03-doz-nar-narreas')).val(); + if (name) { + if (isNaN(parseInt(name))) { + name = nameToID(name.trim()); + } + name = masking(name, '[cat%ID%] [%ID%]'); + nar_arr.push(name + ' (' + reason + ')'); + } + }); + if (free_arr.length) { + txt += ';\n[b]Освобождены:[/b] ' + free_arr.join(', '); + } + if (nar_arr.length) { + txt += ';\n[b]Нарушения:[/b] ' + nar_arr.join(', '); + } + txt += '.'; + let val = $('#comment').val(); + if (val) { + val += "\n\n"; + } + $('#comment').val(val + txt).scrollintoview(); + // $("#comment").scrollintoview(); + }); + $('#r03_doz_nar_block').on('click', '.add-field', function (e) { + let max_children = 5; + let data_id = $(this).data('id'), + template = $('#' + data_id)[0]; + let $fields = $('.' + data_id); + let last_e = $fields[$fields.length - 1]; + if ($fields.length < max_children) { + let clone = document.importNode(template.content, true); + let add = $(clone).insertAfter(last_e); + $(last_e).find($('.add-field')).css('display', 'none'); + } + }); + $('#r03_doz_nar_block').on('click', '.del-field', function (e) { + let data_id = $(this).data('id'); + $(this).closest($('.' + data_id)).remove(); + + let $fields = $('.' + data_id); + let last_e = $fields[$fields.length - 1]; + $(last_e).find($('.add-field')).css('display', 'inline-block'); + }); + } + + if (blogID == 13219) { // чистильщики + $('#send_comment').append(` +
    +

    Автоматическое заполнение отчётов

    +
    +${my_id_div} +
    +
    + +
    +
    +
    + Автоматическое составление отчёта через историю, сгенерированную модом. ВСЯ история должна придерживаться одного вида, включая такие опции, как: +
      +
    • ID поднятого/опущенного;
    • +
    • должность поднятого/опущенного;
    • +
    • статус поднятого;
    • +
    • локацию, в которой кот был поднят/опущен.
    • +
    +
    +
    + +
    +
    +
    + +`); + $('#r03_clean1').on('click', function () { + let expr_pickup = new RegExp('(Подняла? ([А-яЁё ]+) по имени [А-яЁё ]+ \\((\\d+)\\) (\\[[А-яЁё ]+\\]) в локации «([А-яЁё ]+)»\\.|Опустила? на землю ([А-яЁё ]+) по имени [А-яЁё ]+ \\((\\d+)\\) в локации «([А-яЁё ]+)»\\.)', "ig"); + let text = $('#r03_clean_text').val(); + let group = $('#cws_clean_grp').val(); + let match_pickup = Array.from(text.matchAll(expr_pickup)); + let good_cats = {}; + let current_cats = []; + const titles = { + "котёнка": "Котята", + "оруженосца": "ОВ", + "воителя": "ОВ", + "воительницу": "ОВ", + "королеву": "ОВ", + "старшего воителя": "ОВ", + "старшую воительницу": "ОВ", + }; + const places_from = { + "Камышовая поляна": "Лагерь", + "Мшистая полянка": "Лагерь", + "Поляна для сна": "Лагерь", + + "Тенистая поляна": "Подлагерь", + "Дальний уголок": "Подлагерь", + "Грязное место": "Подлагерь", + "Куча с добычей": "Подлагерь", + "Старый вяз": "Подлагерь", + "Полянка для игр": "Подлагерь", + "Лужайка для игр": "Подлагерь", + "Окутанный тайнами лужок": "Подлагерь", + + "Неглубокий ручей": "Номерные", + "Детская": "Номерные", + "Палатка оруженосцев": "Номерные", + "Палатка воителей": "Номерные", + + "Поляна для тренировок": "Поляна для Тренировок [ПДТ]", + "Юркая ложбинка": "Поляна для Тренировок [ПДТ]", + "Лужайка, скрытая листвой": "Поляна для Тренировок [ПДТ]", + "Боевая поляна": "Поляна для Тренировок [ПДТ]", + "Местечко для тренировок": "Поляна для Тренировок [ПДТ]", + "Пещера острых клыков": "Поляна для Тренировок [ПДТ]", + "Пещера танцующих когтей": "Поляна для Тренировок [ПДТ]", + "Расцарапанные камушки": "Поляна для Тренировок [ПДТ]", + "Покинутая вороном лужайка": "Поляна для Тренировок [ПДТ]", + "Просторное местечко": "Поляна для Тренировок [ПДТ]", + "Тренировочный овраг": "Поляна для Тренировок [ПДТ]", + + "Камышовые заросли": "КЗ", + + "Галечный берег": "Лес", + "Плакучая ива": "Лес", + "Шелестящий тростник": "Лес", + "Торфяник": "Лес", + "Междуречье": "Лес", + "Скользкие камни": "Лес", + "Травянистый берег": "Лес", + "Грохочущая тропа Двуногих": "Лес", + "Редколесье": "Лес", + "Илистая тропа": "Лес", + "Разрушенная ограда": "Лес", + "Лесной ручеёк": "Лес", + "Расколотое дерево": "Лес", + "Граница между Ветром и Рекой": "Лес", + "Граница между Тенями и Рекой": "Лес", + "Пруд ужей": "Лес", + "Нагретые камни": "Лес", + "Одинокий склон": "Лес", + "Дубрава": "Лес", + + "Лягушатник": "Лес", + "Мелководье": "Лес", + "Тёплый ручеёк": "Лес", + "Приток": "Лес", + "Тихие воды": "Лес", + "Плоские валуны": "Лес", + "Воды у корней старой ивы": "Лес", + "Глубокие воды": "Лес", + "Ледяная вода": "Лес", + "Течение": "Лес", + "Устье реки": "Лес", + "Спокойный поток": "Лес", + "Каменная гряда": "Лес", + + "Тихий берег": "Нейтралки", + "Заросший берег": "Нейтралки", + "Пологий берег": "Нейтралки", + "Каменистый берег": "Нейтралки", + "Поваленное дерево": "Нейтралки", + "Остров Советов": "Нейтралки", + "Скалистые холмы": "Нейтралки", + "Лунный ручей": "Нейтралки", + "Лунный камень": "Нейтралки", + "Предгорья": "Нейтралки", + "Горы": "Нейтралки", + "Туннели": "Нейтралки", + "Ярусы сомнения": "Нейтралки", + "Воющие коридоры": "Нейтралки", + }; + const bad_statuses = ["[ На удалении ]", "[ Заблокирован ]", "[ В подстилках ]"]; + const good_statuses = ["[ В игре ]", "[ Недавно ушёл ]", "[ Недавно ушла ]"]; + $.each(match_pickup, function (index, value) { + if (value[2] !== undefined) { // Поднятие: 2 должность, 3 статус, 4 айди, 5 локация + let id = value[3], + title_grp = titles[value[2]], + place = value[5]; + if (bad_statuses.includes(value[4]) + || group == "II группа" && ["Плакучая ива", "Галечный берег"].includes(place)) { + title_grp = "Заблокированные"; + } + place = (places_from[place]) ? places_from[place] : place; + if (place !== undefined && (value[4] == "[ Спит ]" || title_grp == "Заблокированные")) { + current_cats[id] = { + "title_grp": title_grp, + "place": place + }; + } + } else { // Опускание: 6 должность, 7 айди, 8 локация + let id = value[7]; + if (current_cats[id] !== undefined) { + let title_grp = current_cats[id].title_grp, + place = current_cats[id].place; + if (good_cats[place] === undefined) { + good_cats[place] = {}; + good_cats[place]["ОВ"] = []; + good_cats[place]["Котята"] = []; + good_cats[place]["Заблокированные"] = []; + } + if (good_cats[place][title_grp]) { + good_cats[place][title_grp].push(id); + } + current_cats[id] = undefined; + } + } + }); + let my_id = parseInt($('#cws_blog_myid').val()); + let my_id_mask = (isNaN(my_id)) ? 'Некорректный ID' : masking(my_id, '[cat%ID%] [%ID%]'); + let report = `1. ${my_id_mask}.\n2. ${group}.\n`; + if (group == "III группа") { + report += `3. [b]Л:[/b] — предупрежден(-ы)\n[b]КЗ:[/b] — предупрежден(-ы)`; + } else { + report += `3. `; + $.each(good_cats, function (place, groups) { + if (group == "II группа") { + report += `[b]${place}:[/b] `; + let list = []; + let list_blocked = []; + $.each(groups, function (victim_group, arr) { + if (victim_group == "Заблокированные") { + list_blocked = list_blocked.concat(arr); + } else { + list = list.concat(arr); + } + }); + report += `${list.join(' ')}\n`; + if (list_blocked.length) { + report += `[u]${list_blocked.join(' ')}[/u]\n`; + } + } else { + report += `[b]${place}:[/b]\n`; + $.each(groups, function (victim_group, arr) { + if (arr.length) { + if (victim_group == "Заблокированные") { + report += `[u]${arr.join(' ')}[/u]\n`; + } else { + report += `${victim_group}: ${arr.join(' ')}\n`; + } + } + }); + } + }); + } + if (group == "I группа" || group == "II группа") { + report += `4. [header=${my_id}]История[/header][block=${my_id}]${text}[/block]`; + } + $('#comment').val(report).scrollintoview(); + }); + } else if (blogID == 24395) { // хранители трав + let patr_date = new Date(date), + hour = date.getHours(); + if (hour < 12) { + patr_date.setDate(patr_date.getDate() - 1); + } + let type = "веточник"; + if (hour < 12 || hour >= 17) { + type = "мховник"; + } else if (hour == 16) { + type = "травник"; + } + const patr_date_str = patr_date.getFullYear() + '-' + leadZero(patr_date.getMonth() + 1) + '-' + leadZero(patr_date.getDate()); + my_id_div= `
    Ваш ID (+кол-во трав): 
    `; + + $('#send_comment').append(` +
    +

    Автоматическое заполнение отчётов

    +
    +${my_id_div} +
    +

    Патруль

    +Вид: + + + + + +
    Дата начала:
    +
    + Список участников, исключая вас, разделяя запятой (в конце ставьте число принесённых трав): + +
    + +`); + $('#r03_herb').on('click', function (e) { + let lead = $('#cws_blog_myid').val().split(' '); + let myid = parseInt(lead[0]); + let leadherb = +(lead[1].replace(/\D+/ig, '')); + rememberMyID(myid); + myid = (isNaN(myid)) ? 'Некорректный ID ведущего' : masking(myid, `[cat%ID%] [%ID%] (${leadherb})`); + let mar = $('.cws-input[name=r03_patr_mar]:checked').val(); + mar = mar || 'Не выбран вид'; + let arr_members = strToArr($('#cws_patr_members').val()); + let id_arr = []; + let not_found = []; + let name_error = false; + arr_members.forEach((element) => { + let entry = element.trim().match(/([А-яЁё ]+) \(?(\d+)\)?/i); + let name = entry[1]; + let herb = entry[2]; + let tmp = nameToID(name); + if (parseInt(tmp)) { + id_arr.push(`${name} [${tmp}] (${herb})`); + } else { + name_error = true; + not_found.push(name); + } + }) + let date = splitDateStr($("#r03_patr_date").val()); + date.year = date.year.slice(2, 4); + let txt = `[b]Дата:[/b] ${date.day}.${date.month}.${date.year}; +[b]Тип травника:[/b] ${mar}; +[b]Ведущий:[/b] ${myid}; +[b]Участники:[/b] ${id_arr.length ? id_arr.join(', ') : "-"}.`; + if (name_error) { + txt += `\n! ! ! В отчёте ошибка со следующими именами (не были найдены или не соответствуют формату): ${not_found.join(', ')}. Проверьте его перед тем, как отправить.` + } + let val = $('#comment').val(); + if (val) { + val += "\n\n"; + } + $('#comment').val(val + txt).scrollintoview(); + }); + + } else if (blogID == 51844) { // охотники + let patr_date = new Date(date), + hour = date.getHours(); + if (hour < 13) { + patr_date.setDate(patr_date.getDate() - 1); + } + let type = "вечерняя"; + if (hour >= 13 && hour < 19) { + type = "утренняя"; + } + const patr_date_str = patr_date.getFullYear() + '-' + leadZero(patr_date.getMonth() + 1) + '-' + leadZero(patr_date.getDate()); + $('#send_comment').append(`
    +

    Автоматическое заполнение отчётов

    +
    +${my_id_div} +
    +

    Патруль

    +
    +Вид: + + +
    +
    + Место охоты: + + + + +
    + + +
    Дата начала:
    +
    + Список охотников, исключая вас, разделяя запятой (если было принесено меньше 5 дичи, указывайте это цифрой в конце): + +
    +
    + Список таскающих, разделяя запятой: + +
    + +`); + + $('#r03_hunt').on('click', function (e) { + let lead = $('#cws_blog_myid').val(); + let myid = parseInt(lead); + rememberMyID(myid); + myid = (isNaN(myid)) ? 'Некорректный ID ведущего' : masking(myid, '[cat%ID%] [%ID%]'); + let mar = $('.cws-input[name=r03_patr_mar]:checked').val(); + mar = mar || 'Не выбран вид'; + let loc = $('.cws-input[name=r03_patr_loc]:checked').val(); + loc = loc || 'Не выбрана локация'; + let str_hunters = strToArr($('#cws_patr_hunters').val()), + str_carriers = strToArr($('#cws_patr_carriers').val()), + id_hunters = [], + id_carriers = [], + not_found = [], + not_clan = []; + let name_error = false, clan_error = false; + str_hunters.forEach((element) => { + let entry = element.trim().match(/([А-яЁё ]+) ?\(?(\d+)?\)?/i), + name = entry[1], + hunt = entry[2] || 5, + tmp = nameToIDFiltered(name, "Речное племя"); + if (parseInt(tmp)) { + if (tmp != -1) { + id_hunters.push(`${name} [${tmp}] (${hunt})`); + } else { + clan_error = true; + not_clan.push(name); + } + } else { + name_error = true; + not_found.push(name); + } + }); + str_carriers.forEach((element) => { + let name = element.trim(), + tmp = nameToIDFiltered(name, "Речное племя"); + if (parseInt(tmp)) { + if (tmp != -1) { + id_carriers.push(`${name} [${tmp}]`); + } else { + clan_error = true; + not_clan.push(name); + } + } else { + name_error = true; + not_found.push(name); + } + }); + let date = splitDateStr($("#r03_patr_date").val()); + date.year = date.year.slice(2, 4); + let txt = `[b][u]Дата[/u]:[/b] ${date.day}.${date.month}.${date.year}; +[b]Вид:[/b] ${mar}; +[b]Место охоты:[/b] ${loc}; +[b]Ведущий:[/b] ${myid} (5); +[b]Участники:[/b] ${id_hunters.length ? id_hunters.join(', ') : "-"}; +[b]Таскающие:[/b] ${id_carriers.length ? id_carriers.join(', ') : "-"};`; + if (name_error) { + txt += `\n! ! ! В отчёте ошибка со следующими именами (не были найдены или не соответствуют формату): ${not_found.join(', ')}. Проверьте его перед тем, как отправить.` + } + if (clan_error) { + txt += `\n! ! ! В отчёте ошибка со следующими котиками (они не находятся в вашем племени, зачем вы их сюда пишете?): ${not_clan.join(', ')}. Проверьте его перед тем, как отправить.` + } + let val = $('#comment').val(); + if (val) { + val += "\n\n"; + } + $('#comment').val(val + txt).scrollintoview(); + }); + } + $('ul.cws_tabs_caption').on('click', 'li:not(.active)', function () { + $(this) + .addClass('active').siblings().removeClass('active') + .closest('div.cws_tabs').find('div.cws_tabs_content').removeClass('active').slideUp(200) + .eq($(this).index()).addClass('active').slideDown(200); + }); + }); + } + } + + function cumoves() { + const notes = getSettings('cuMovesNote') || ''; + const p = `

    Заметки:

    `; + $('#branch').append(p); //text + $('#cws_moves_note').val(notes); + $('#cws_moves_note').on('input', function () { + setSettings('cuMovesNote', $(this).val()); + }); + } + + function sett() { + $('head').append(``); + const pattern = globals.css_cp_pattern ? 'url(https://i.imgur.com/V4TX5Cv.png), ' : ''; + let css_coloredparam_example = `#dream .bar-fill {background:${pattern}linear-gradient(0.25turn, ${globals.css_cp_colors[0]}, ${globals.css_cp_colors[1]});} +#dream .bar {background:${pattern}linear-gradient(0.25turn, ${globals.css_cp_colors[2]}, ${globals.css_cp_colors[3]});} +#hunger .bar-fill {background:${pattern}linear-gradient(0.25turn, ${globals.css_cp_colors[4]}, ${globals.css_cp_colors[5]});} +#hunger .bar {background:${pattern}linear-gradient(0.25turn, ${globals.css_cp_colors[6]}, ${globals.css_cp_colors[7]});} +#thirst .bar-fill {background:${pattern}linear-gradient(0.25turn, ${globals.css_cp_colors[8]}, ${globals.css_cp_colors[9]});} +#thirst .bar {background:${pattern}linear-gradient(0.25turn, ${globals.css_cp_colors[10]}, ${globals.css_cp_colors[11]});} +#need .bar-fill {background:${pattern}linear-gradient(0.25turn, ${globals.css_cp_colors[12]}, ${globals.css_cp_colors[13]});} +#need .bar {background:${pattern}linear-gradient(0.25turn, ${globals.css_cp_colors[14]}, ${globals.css_cp_colors[15]});} +#health .bar-fill {background:${pattern}linear-gradient(0.25turn, ${globals.css_cp_colors[16]}, ${globals.css_cp_colors[17]});} +#health .bar {background:${pattern}linear-gradient(0.25turn, ${globals.css_cp_colors[18]}, ${globals.css_cp_colors[19]});} +#clean .bar-fill {background:${pattern}linear-gradient(0.25turn, ${globals.css_cp_colors[20]}, ${globals.css_cp_colors[21]});} +#clean .bar {background:${pattern}linear-gradient(0.25turn, ${globals.css_cp_colors[22]}, ${globals.css_cp_colors[23]});} +.bar .bar-fill {background:${pattern}linear-gradient(0.25turn, ${globals.css_cp_colors[24]}, ${globals.css_cp_colors[25]});} +.bar {background:${pattern}linear-gradient(0.25turn, ${globals.css_cp_colors[26]}, ${globals.css_cp_colors[27]});}`; + $('head').append(``); + let action_group_dis = (globals.on_actNotif) ? '' : ' disabled', + tf_group_dis = (globals.on_teamFights) ? '' : ' disabled', + clean_group_dis = (globals.on_cleanerHistory) ? '' : ' disabled', + tt_dis = (globals.on_treeTechies) ? '' : ' disabled', + chatment_group_dis = (globals.on_chatMention) ? '' : ' disabled', + nick_group_dis = (globals.on_nickHighlight) ? '' : ' disabled', + css_cp_group_dis = (globals.on_css_coloredparam) ? '' : ' disabled', + chat_group_dis = (globals.on_customChat) ? '' : ' disabled', + CCArray = ''; + let nickArray = ''; + $.each(globals.nickListArray, function (index, obj) { + if (obj) { + nickArray += ` + ×`; + } + }); + if (!nickArray.length) { + nickArray = ` + ×`; + } + let $body = $('body'); + addCSS(`.cp-color-pick, .team-color-pick { + background-color: #eaeaea; + border: 1px solid #b3b3b3; +} +.bl_in{ + display: inline-block; + margin-left:20px; +} +#cwa_sett > div { + margin: .6em 0; +} +#color_pick td, #color_pick th{ +padding: .1em .25em; +} +.cat_box { + padding: .6em .3em; + width: fit-content; +} +#fight_bg { +border-radius: 1em; +background: url(https://abstract-class-shed.github.io/pic/background.png) top center no-repeat; +width: 320px; +height: 330px; +max-width: calc(100% - 1.2em); +} +.color-pick-wrapper { + display: inline-block; + width: 100px; +} +.cat_box { +margin:auto; +} +.arrow { + height: 8px; + position: absolute; + margin: 0; + padding: 3px 0 0 11px; + z-index: 2; +} +.arrow-paws {background: url(/cw3/symbole/arrow_paws.png) 0 0 no-repeat;} +.arrow-claws {background: url(/cw3/symbole/arrow_claws.png) 0 0 no-repeat;} +.arrow-teeth {background: url(/cw3/symbole/arrow_teeth.png) 0 0 no-repeat;} +.arrow table, .arrow td { + height: 5px !important; + padding: 0; + margin: 0; +} +.arrow_red { + background: #CD4141; +} +.d, .d div { + width: 100px; + height: 150px; +} +table { + border-collapse: collapse; +} +.custom-range::-webkit-slider-thumb { + -webkit-appearance: none; + appearance: none; + width: 25px; + height: 25px; + border-radius: 1em; + background: #622906; + cursor: pointer; +} +.custom-range { +-webkit-appearance: none; +appearance: none; +width: 180px; +height: 15px; +background: #fff1dc; +outline: none; +border-style: solid; +border-width: 1px; +border-color: #62290640; +} +.custom-range::-moz-range-thumb { + width: 25px; + height: 25px; + background: #622906; + cursor: pointer; +} +.cws-tbl-bordered, .cws-tbl-bordered td, .cws-tbl-bordered th { + border: 1px solid #97663b70; +} +#action_table td, #action_table th{ + padding: 0 .5em; +} +.cc-delete { + cursor: pointer; + font-weight: bold; + padding: 0 .1em; + font-size: 1.2em; +} +.cc-name { + width: 220px; +} +.cc-id { + width: 80px; +} +@media(max-width:500px){/*smol*/ + #CCTbl tr > :first-child, .cc-id { + width: 60px; + } + .cc-name { + width: 98.5%; + } + #CCTbl tr > :last-child, .cc-delete { + width: 19px; + } + #CCTbl { + width: 100%; + } +} +button { + background-color: #333; + color: #fff; + border: 1px solid #000; + font-family: Verdana; + font-size: .9em; +} +button:disabled { + background-color: #fff6e996; + border-color: rgba(240,240,240,0.5); +} +.volume-table td:first-child { + vertical-align: top; + padding-top:3px; +} +#CCAdd, #nickAdd { + margin-top: .25em; +} +#cm_blocked { +font-size: inherit; font-family:inherit; +resize:none; +width:99%; +height:50px;} +@media(max-width:500px){/*smol*/ +#cm_blocked { +height:90px;} +} +.css-pic-url-example, #cages_div { +width:200px; +height:200px; +-moz-background-size: 100%; + -webkit-background-size: 100%; + -o-background-size: 100%; + background-size: 100%; +background-color:black; +} +#cages { +width:200px; +height:200px; +} +.tt-page-name {width:50px;} +.css-pic-text {width:250px; max-width:100%;} +.parameter, .skill { + display: flex; + align-items: center; + text-align: center; + margin-bottom: 2px; + justify-content: left; + flex-direction: row; + height: 17px; +} +.symbole { + width: 19px; + height: 17px; + background-image: url(/cw3/symbole/icons.png); + background-repeat: no-repeat; + background-position-x: 0; + padding: 0; + margin: 0; +} +.bar { + width: 150px; + box-shadow: 0 0 0 1px black; + height: 15px; + font-size: 11px; + position: relative; + border-radius: 3px; + overflow: hidden; + margin-left: 2px; + margin-right: 2px; +} +.bar-fill, .bar-data { + position: absolute; + height: 100%; + width: 100%; + color: black !important; +} +#weight { + font-weight: bold; + height: 15px; +} +#weightExtra { + font-size: smaller; + opacity: .72; + font-weight: initial; +} +.level { + font-weight: bold; + width: 15px; +} +#smell .symbole { background-position-y: 0; } +#thirst .symbole { background-position-y: -17px; } +#dream .symbole { background-position-y: -34px; } +#need .symbole { background-position-y: -51px; } +#hunger .symbole { background-position-y: -68px; } +#health .symbole { background-position-y: -102px; } +#dig .symbole { background-position-y: -119px; } +#clean .symbole { background-position-y: -136px; } +#swim .symbole { background-position-y: -153px; } +#might .symbole { background-position-y: -170px; } +#weight .symbole { background-position-y: -255px; } + +#parameters_block { + width: 185px; +display:inline-block; +margin-top:5px; +} +.tt-folders-names { + width: 130px; +}`); + const html = `

    Настройки CW:Shed

    +
    ! Большинство изменений применяются автоматически. Для того, чтобы изменения вступили в силу, обновите Игровую (страницу с ЛС, профиль).
    +

    Дополнительная информация

    +
    +
    +
    +
    +
    +
    +
    +
    Учитывает только возраст персонажа и дату последнего Вашего захода этим персонажем на этом устройстве на страницу "Мой кот". Не считает летний период, поэтому летом персонажам возрастом меньше года будет спамить + про удаление, если заход был почти 45 дней назад. Не считает, если Вы зашли на персонажа с телефона, а сейчас сидите с компьютера.
    +
    +

    Чат

    +
    + +
    +
    + +
    +
    +
    + + + +${nickArray} + +
    Кличка
    +
    +
    +
    +
    +
    + + + + +
    Громкость:
    +
    Айди персонажей, от которых игнорировать уведомления (через пробел):
    +
    + + +
    +
    + +
    +

    Уведомления

    +
    + + + + +
    Громкость:
    +
    +
    + + + + +
    Громкость:
    +
    +
    + + + + +
    Громкость:
    +
    +
    + + + + +
    Громкость:
    +
    +
    + + + + +
    Громкость:
    +
    На которые действия реагировать:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    ТекстЗвукОписание
    Переход (дольше 5 секунд)
    Поедание дичи
    Пополнение нужды
    Питьё
    Копание
    Закапывание
    Вылизывание
    Сон
    Нюх
    Плавание
    Ныряние
    Наполнение мха водой
    Мурлыкание
    Переплетание хвостов
    Трение щёками
    Валяние по земле
    Трение носами
    Выход из боевой стойки
    Осмотр окрестностей
    Пометка территории
    Затачивание когтей
    Чистка ковра
    Привлечение внимания
    Сон в лежанке
    Грандиозная охота
    Осмотр целителя
    Осмотр дупла (дерево)
    Осмотр расщелины (скала)
    +
    +
    + +
    + + + + +
    Громкость:
    +
    +

    Бои

    +
    Высота окошка лога боережима (конфликтует с варомодом. 70 = "выключено", значение по умолчанию): px
    +
    +
    + + + + + + + + +
    Громкость при нажатии:
    Громкость при отжатии:
    + +
    +
    + +
    +
    +
    Максимальная высота окошка с распределением команд: px
    + + + + + + + + + + + + + + +
    Команда:1234
    "Зелёный"
    "Красный"
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +

    Стили

    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    Цвет:
    + +
    +
    +
    + + + +
    Цвет:
    + + + + +
    Непрозрачность:
    + +
    + + + + + + + +
    +
    + + +
    +
    + +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + +
    + +
    +
    В таблице ниже можно настроить каждый цвет по желанию. "Зелёный" означает заполненную, зелёную часть полоски, "Красный" - отсутствующую, красную (в случае с навыками - серую) часть полоски. Под каждой частью есть два цвета - левая и правая часть градиента. Если не хотите, чтобы был градиент - ставьте одинаковые цвета.
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    ЗелёныйКрасный
    Здоровье
    Бодрость
    Чистота
    Голод
    Жажда
    Нужда
    Навыки
    + +
    +
    Здоровье: 46%
    +
    Бодрость: 50%
    +
    Чистота: 50%
    +
    0 / 4
     (+4)
    +
    +
    Голод: 4%
    +
    Жажда: 10%
    +
    Нужда: 66%
    +
    +
    5
    +
    5
    +
    5
    +
    5
    +
    + + + +
    Окошко для экспорта:
    Окошко для импорта:
    + +
    + +
    + +

    Разное

    +
    +
    +
    Записывать
    + +
    +
    +
    +
    +
    +
    +
    * Работает так: отписывает вместе с "Поднял кота..." ещё и "Проверил на действие кота по имени ...", но только И ТОЛЬКО при условии, что проверка была за два действия до поднятия (и между проверкой и поднятием не была перезагружена Игровая). Пример: +
      +
    • "Потёрлись носом о нос с котом по имени Хвостогривик. Отменил действие. Поднял кота по имени Хвостогривик." - засчитывается за проверку.
    • +
    • "Потёрлись носом о нос с котом по имени Хвостогривик. Поднял кота по имени Хвостогривик." - не засчитывается за проверку (проверка не была отменена).
    • +
    • "Потёрлись носом о нос с котом по имени Лапкоусик. Отменил действие. Поднял кота по имени Хвостогривик." - не засчитывается за проверку (проверка была на другом коте).
    • +
    • "Потёрлись носом о нос с котом по имени Хвостогривик. Отменил действие. Обнюхал землю. Поднял кота по имени Хвостогривик." - не засчитывается за проверку (проверка была слишком "давно").
    • +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    Отображение системного времени в Игровой: + +
    +
    + +
    + +
    +
    +
    +
    +
    Положение окошка X: + px, +Y: px +
    +
    + +
    + + + + +
    Громкость:
    + +
    Страницы:
    + +
    [✓] Вкладка А
    + +
    Название:
    + + + + + + + + + + +
    №ИмяВкл.
    1✓
    2
    3
    4
    5
    6
    +
    +
    + +
    Название:
    + + + + + + + + + + +
    №ИмяВкл.
    1
    2
    3
    4
    5
    6
    +
    +
    + +
    Название:
    + + + + + + + + + + +
    №ИмяВкл.
    1
    2
    3
    4
    5
    6
    +
    +
    + +
    Название:
    + + + + + + + + + + +
    №ИмяВкл.
    1
    2
    3
    4
    5
    6
    +
    +
    +
    +
    +
    +

    Текущая версия CW:Shed: ${version}

    +
    +

    `; + let audio = new Audio(); + $(isDesktop ? '#branch' : '#site_table').append(html); + $body.on('click', '#css_cp_import_btn', function () { + let val = $('#css_cp_import').val(); + let match = val.match(/\["#[0-9a-fA-F]{6}", *"#[0-9a-fA-F]{6}", *"#[0-9a-fA-F]{6}", *"#[0-9a-fA-F]{6}", *"#[0-9a-fA-F]{6}", *"#[0-9a-fA-F]{6}", *"#[0-9a-fA-F]{6}", *"#[0-9a-fA-F]{6}", *"#[0-9a-fA-F]{6}", *"#[0-9a-fA-F]{6}", *"#[0-9a-fA-F]{6}", *"#[0-9a-fA-F]{6}", *"#[0-9a-fA-F]{6}", *"#[0-9a-fA-F]{6}", *"#[0-9a-fA-F]{6}", *"#[0-9a-fA-F]{6}", *"#[0-9a-fA-F]{6}", *"#[0-9a-fA-F]{6}", *"#[0-9a-fA-F]{6}", *"#[0-9a-fA-F]{6}", *"#[0-9a-fA-F]{6}", *"#[0-9a-fA-F]{6}", *"#[0-9a-fA-F]{6}", *"#[0-9a-fA-F]{6}", *"#[0-9a-fA-F]{6}", *"#[0-9a-fA-F]{6}", *"#[0-9a-fA-F]{6}", *"#[0-9a-fA-F]{6}"\]/); + if (match) { + globals.css_cp_colors = JSON.parse(val); + setSettings('css_cp_colors', val); + $('#css_cp_export').val(val); + for (let i = 0; i < 28; i++) { + $('.cp-color-pick[data-id=' + i + ']').val(globals.css_cp_colors[i]); + } + css_coloredparam_example = `#dream .bar-fill {background:${globals.css_cp_pattern?'url(https://i.imgur.com/V4TX5Cv.png), ':''}linear-gradient(0.25turn, ${globals.css_cp_colors[0]}, ${globals.css_cp_colors[1]});} +#dream .bar {background:${globals.css_cp_pattern?'url(https://i.imgur.com/V4TX5Cv.png), ':''}linear-gradient(0.25turn, ${globals.css_cp_colors[2]}, ${globals.css_cp_colors[3]});} +#hunger .bar-fill {background:${globals.css_cp_pattern?'url(https://i.imgur.com/V4TX5Cv.png), ':''}linear-gradient(0.25turn, ${globals.css_cp_colors[4]}, ${globals.css_cp_colors[5]});} +#hunger .bar {background:${globals.css_cp_pattern?'url(https://i.imgur.com/V4TX5Cv.png), ':''}linear-gradient(0.25turn, ${globals.css_cp_colors[6]}, ${globals.css_cp_colors[7]});} +#thirst .bar-fill {background:${globals.css_cp_pattern?'url(https://i.imgur.com/V4TX5Cv.png), ':''}linear-gradient(0.25turn, ${globals.css_cp_colors[8]}, ${globals.css_cp_colors[9]});} +#thirst .bar {background:${globals.css_cp_pattern?'url(https://i.imgur.com/V4TX5Cv.png), ':''}linear-gradient(0.25turn, ${globals.css_cp_colors[10]}, ${globals.css_cp_colors[11]});} +#need .bar-fill {background:${globals.css_cp_pattern?'url(https://i.imgur.com/V4TX5Cv.png), ':''}linear-gradient(0.25turn, ${globals.css_cp_colors[12]}, ${globals.css_cp_colors[13]});} +#need .bar {background:${globals.css_cp_pattern?'url(https://i.imgur.com/V4TX5Cv.png), ':''}linear-gradient(0.25turn, ${globals.css_cp_colors[14]}, ${globals.css_cp_colors[15]});} +#health .bar-fill {background:${globals.css_cp_pattern?'url(https://i.imgur.com/V4TX5Cv.png), ':''}linear-gradient(0.25turn, ${globals.css_cp_colors[16]}, ${globals.css_cp_colors[17]});} +#health .bar {background:${globals.css_cp_pattern?'url(https://i.imgur.com/V4TX5Cv.png), ':''}linear-gradient(0.25turn, ${globals.css_cp_colors[18]}, ${globals.css_cp_colors[19]});} +#clean .bar-fill {background:${globals.css_cp_pattern?'url(https://i.imgur.com/V4TX5Cv.png), ':''}linear-gradient(0.25turn, ${globals.css_cp_colors[20]}, ${globals.css_cp_colors[21]});} +#clean .bar {background:${globals.css_cp_pattern?'url(https://i.imgur.com/V4TX5Cv.png), ':''}linear-gradient(0.25turn, ${globals.css_cp_colors[22]}, ${globals.css_cp_colors[23]});} +.bar .bar-fill {background:${globals.css_cp_pattern?'url(https://i.imgur.com/V4TX5Cv.png), ':''}linear-gradient(0.25turn, ${globals.css_cp_colors[24]}, ${globals.css_cp_colors[25]});} +.bar {background:${globals.css_cp_pattern?'url(https://i.imgur.com/V4TX5Cv.png), ':''}linear-gradient(0.25turn, ${globals.css_cp_colors[26]}, ${globals.css_cp_colors[27]});}`; + $('#css_coloredparam_example').html(css_coloredparam_example); + } + else { + alert('Неверный формат импорта'); + } + }) + $body.on('change', '.cp-color-pick', function () { + let id = $(this).data('id'); + let val = $(this).val(); + globals.css_cp_colors[id] = val; + setSettings('css_cp_colors', JSON.stringify(globals.css_cp_colors)); + $('#css_cp_export').val(JSON.stringify(globals.css_cp_colors)); + css_coloredparam_example = `#dream .bar-fill {background:${globals.css_cp_pattern?'url(https://i.imgur.com/V4TX5Cv.png), ':''}linear-gradient(0.25turn, ${globals.css_cp_colors[0]}, ${globals.css_cp_colors[1]});} +#dream .bar {background:${globals.css_cp_pattern?'url(https://i.imgur.com/V4TX5Cv.png), ':''}linear-gradient(0.25turn, ${globals.css_cp_colors[2]}, ${globals.css_cp_colors[3]});} +#hunger .bar-fill {background:${globals.css_cp_pattern?'url(https://i.imgur.com/V4TX5Cv.png), ':''}linear-gradient(0.25turn, ${globals.css_cp_colors[4]}, ${globals.css_cp_colors[5]});} +#hunger .bar {background:${globals.css_cp_pattern?'url(https://i.imgur.com/V4TX5Cv.png), ':''}linear-gradient(0.25turn, ${globals.css_cp_colors[6]}, ${globals.css_cp_colors[7]});} +#thirst .bar-fill {background:${globals.css_cp_pattern?'url(https://i.imgur.com/V4TX5Cv.png), ':''}linear-gradient(0.25turn, ${globals.css_cp_colors[8]}, ${globals.css_cp_colors[9]});} +#thirst .bar {background:${globals.css_cp_pattern?'url(https://i.imgur.com/V4TX5Cv.png), ':''}linear-gradient(0.25turn, ${globals.css_cp_colors[10]}, ${globals.css_cp_colors[11]});} +#need .bar-fill {background:${globals.css_cp_pattern?'url(https://i.imgur.com/V4TX5Cv.png), ':''}linear-gradient(0.25turn, ${globals.css_cp_colors[12]}, ${globals.css_cp_colors[13]});} +#need .bar {background:${globals.css_cp_pattern?'url(https://i.imgur.com/V4TX5Cv.png), ':''}linear-gradient(0.25turn, ${globals.css_cp_colors[14]}, ${globals.css_cp_colors[15]});} +#health .bar-fill {background:${globals.css_cp_pattern?'url(https://i.imgur.com/V4TX5Cv.png), ':''}linear-gradient(0.25turn, ${globals.css_cp_colors[16]}, ${globals.css_cp_colors[17]});} +#health .bar {background:${globals.css_cp_pattern?'url(https://i.imgur.com/V4TX5Cv.png), ':''}linear-gradient(0.25turn, ${globals.css_cp_colors[18]}, ${globals.css_cp_colors[19]});} +#clean .bar-fill {background:${globals.css_cp_pattern?'url(https://i.imgur.com/V4TX5Cv.png), ':''}linear-gradient(0.25turn, ${globals.css_cp_colors[20]}, ${globals.css_cp_colors[21]});} +#clean .bar {background:${globals.css_cp_pattern?'url(https://i.imgur.com/V4TX5Cv.png), ':''}linear-gradient(0.25turn, ${globals.css_cp_colors[22]}, ${globals.css_cp_colors[23]});} +.bar .bar-fill {background:${globals.css_cp_pattern?'url(https://i.imgur.com/V4TX5Cv.png), ':''}linear-gradient(0.25turn, ${globals.css_cp_colors[24]}, ${globals.css_cp_colors[25]});} +.bar {background:${globals.css_cp_pattern?'url(https://i.imgur.com/V4TX5Cv.png), ':''}linear-gradient(0.25turn, ${globals.css_cp_colors[26]}, ${globals.css_cp_colors[27]});}`; + $('#css_coloredparam_example').html(css_coloredparam_example); + }); + $body.on('change', '.tt-folders-enabled', function () { + let ischkd = $(this).prop('checked'); + let folder_num = parseInt($(this).data('id')); + globals.tt_foldersenabledArray[folder_num] = ischkd; + setSettings('tt_foldersenabledArray', JSON.stringify(globals.tt_foldersenabledArray)); + }); + $body.on('change paste focusout keyup', '.tt-page-name', function () { + let val = $(this).val(); + let page_num = parseInt($(this).data('id')); + if (val) { + globals.tt_pagenamesArray[page_num] = val; + setSettings('tt_pagenamesArray', JSON.stringify(globals.tt_pagenamesArray)); + } + }); + $body.on('change paste focusout keyup', '.tt-folders-names', function () { + let val = $(this).val(); + let folder_num = parseInt($(this).data('id')); + if (val) { + globals.tt_foldersnamesArray[folder_num] = val; + setSettings('tt_foldersnamesArray', JSON.stringify(globals.tt_foldersnamesArray)); + } + }); + $body.on('change', '.cwa-chk-tt-page', function () { + let id = $(this).attr('id'), + page_num = parseInt($(this).data('id')), + ischkd = $(this).prop('checked'); + globals.tt_pageenabledArray[page_num] = ischkd; + setSettings('tt_pageenabledArray', JSON.stringify(globals.tt_pageenabledArray)); + }); + $body.on('change', '#css_cp_pattern', function () { + let ischkd = $(this).prop('checked'); + let style = $('#css_coloredparam_example').html(); + if (ischkd) { + style = style.replace(/background:/g, 'background:url(https://i.imgur.com/V4TX5Cv.png), '); + } + else { + style = style.replace(/url\([^\)]+\), /g, ''); + } + $('#css_coloredparam_example').html(style); + }); + $body.on('submit', '#nickForm', function (e) { + e.preventDefault(); + let nickArr = []; + $('#nickList > tr').each(function () { + let name = $(this).find('.nick-name').val(); + if (name) { + nickArr.push(name); + } + }); + setSettings('nickListArray', JSON.stringify(nickArr)); + }); + $body.on('submit', '#CCForm', function (e) { + e.preventDefault(); + let CCArr = []; + $('#CCList > tr').each(function () { + let id = $(this).find('.cc-id').val(); + let name = $(this).find('.cc-name').val(); + if (id && name) { + CCArr.push({ + 'id': id, + 'name': name + }); + } + }); + setSettings('charListArray', JSON.stringify(CCArr)); + }); + $body.on('submit', '#form_cm_blocked', function (e) { + e.preventDefault(); + let arr = $('#cm_blocked').val().split(' '); + $.each(arr, function (index, value) { + arr[index] = parseInt(value.trim()); + }); + arr = jQuery.grep(arr, function (a) { + return a; //Оставить только числа и не 0 + }); + setSettings('cm_blocked', JSON.stringify(arr)); + }); + $body.on('click', '#CCAdd', function () { + if ($('.cc-id').length < 10) { + $('#CCList').append(`×`); + } + }); + $body.on('click', '#nickAdd', function () { + if ($('.nick-name').length < 3) { + $('#nickList').append(`×`); + } + }); + $body.on('click', '#tt_window_pos_def', function () { + $('#tt_window_left,#tt_window_top').val(20); + setSettings('tt_window_left', 20); + setSettings('tt_window_top', 20); + }); + $body.on('click', '.cc-delete', function () { + if ($(this).closest('tbody').find('tr').length != 1) { + $(this).closest('tr').remove(); + } + }); + $body.on('click', '.sound-test', function () { + audio.pause(); + audio.currentTime = 0; + audio.src = $(this).attr('sound-src'); + audio.volume = $('.custom-range[data-bind=' + $(this).attr('data-bind') + ']').val(); + audio.play(); + }); + $body.on('change', '.custom-range', function () { + let volume = $(this).val(); + let id = $(this).attr('id'); + window.localStorage.setItem('cws_sett_' + id, volume); + globals[id] = volume; + }); + $body.on('change', '.cwa-chk', function () { + const id = $(this).attr('id'); + const nodeName = $(this).prop('nodeName'); + let ischkd = $(this).prop('checked'); + if (nodeName == 'SELECT') { + ischkd = $(this).val(); + } + setSettings(id, ischkd); + globals[id] = ischkd; + }); + $('body').on('click', '.cwa-apply', function() { + let id = $(this).data('id'); + let value = $('#' + id).val(); + if (Array.isArray(defaults[id])) { + value = value.split(',').map(v => v.trim()); + try { + setSettings(id, JSON.stringify(value)); + globals[id] = value; + $('#' + id).val(value.join(',')); + } catch(e) { + alert('Сохранение невозможно: введён список неправильного формата'); + } + } else { + setSettings(id, value); + globals[id] = value; + } + }); + $body.on('change paste focusout keyup', '.cws-number', function () { + let val = parseInt($(this).val()); + if (val >= $(this).attr('min') && val <= $(this).attr('max')) { + setSettings($(this).attr('id'), val); + } + }); + $body.on('change', '.group-switch', function () { + let group = $(this).attr('group-header'); + let ischkd = $(this).prop('checked'); + $(':input[group=' + group + '], button[group=' + group + ']').prop('disabled', !ischkd); + }); + $body.on('change', '.team-color-pick', function () { + let val = $(this).val(); + $('.arrow-color[data-bind=' + $(this).data('bind') + ']').css('background', val); + }); + $body.on('change', '.color-pick', function () { + let val = $(this).val(); + setSettings($(this).attr('id'), val); + }); + $body.on('click', '.css-pic-url-apply', function () { + let pic_id = $(this).data("id"); + let val = $('#' + pic_id).val(); + setSettings(pic_id, val); + $('.css-pic-url-example[data-id=' + pic_id + ']').css("background-image", "url('" + val + "')"); + }); + $body.on('click', '.css-pic-url-reset', function () { + let pic_id = $(this).data("id"); + let def = $('#' + pic_id).attr('default'); + removeSettings(pic_id); + $('#' + pic_id).val(def); + $('.css-pic-url-example[data-id=' + pic_id + ']').css("background-image", "url('" + def + "')"); + }); + $body.on('change', '#css_cellshadeColor', function () { + let val = $(this).val(); + let html = $('#css_cellshade_example').html().replace(/ #[\dA-Fa-f]{6}/, ' ' + val); + $('#css_cellshade_example').html(html); + }); + $body.on('change', '#css_cellshadeOpacity', function () { + let val = $(this).val(); + let html = $('#css_cellshade_example').html().replace(/0px [0-9\.]+px 0px [0-9\.]+px/, '0px ' + val + 'px 0px ' + val + 'px'); + $('#css_cellshade_example').html(html); + }); + } + + /*functions*/ + function masking(catID, maskStr) { // 123, '[cat%ID%] [%ID%]' => [cat123] [123] + return maskStr.replace(/%ID%/g, catID); + } + + function toMaskedArr(str, maskStr) { // '123 456', '[catID] [ID]' => [cat123] [123], [cat456] [456] + str = str.replace(/\n/g, ' '); + let tmp_arr = []; + let error = false; + let array = str.trim().split(' '); + if (str.length) { + $.each(array, function (key, value) { + if (parseInt(value) == value) { + tmp_arr.push(masking(value, maskStr)); + } + else if (value !== "") { + error = true; + } + }); + } + let res = {}; + res.array = tmp_arr; + res.error = error; + return res; + } + + function validateTextarea($textarea) { + let pattern = new RegExp('^' + $textarea.attr('pattern') + '$'); + return $textarea.val().match(pattern); + } + + function splitDateStr(datestr) { // yyyy-MM-dd => dt = {year: yyyy, month: MM, day: dd, shortYear: YY} + if (datestr) { + let dt = {}; + let arr = datestr.split('-'); //yyyy-MM-dd + dt.shortYear = arr[0].substring(2); + dt.year = arr[0]; + dt.month = arr[1]; + dt.day = arr[2]; + return dt; + } + else { + return false; + } + } + + function strToArr(str, delimiter = ',') { + const a = str.replace(/\n/g, delimiter).trim().split(delimiter); + return (a.length == 1 && a[0] == '') ? [] : a; + } + + function nameToIDFiltered(name, clan, async = false) { + let result = nameToID(name, async); + let resultFiltered = result; + if (!isNaN(result)) { + let isClan = false; + $.ajax({ + type: "POST", + url: "cat" + result, + async, + xhrFields: {withCredentials: true}, crossDomain: true, + success: function (data) { + const hasTitle = data.match(/<\/big> — [^<]+<\/i> \[ /i); + if (!hasTitle) { // Нет титула - не племя + resultFiltered = -1; + return; + } + const hasClanName = data.match(/<\/td>([А-Яа-яЁё ]+)<\/b><\/td>/i); + if (hasClanName && hasClanName[1] != clan) { // Есть титул - проверить название племени. + resultFiltered = -1; + return; + } + } + }); + false; + } + return resultFiltered; + } + function nameToID(name, async = false) { + let result; + $.ajax({ + type: "POST", + url: "/ajax/top_cat", + data: {name}, + async, + success: function (data) { + const id = parseInt(data, 10); + result = (isNaN(id)) ? name : id; + } + }); + return result; + } + function no(item) { + return ([977.7872979334513, 1168.9880238907497, 1081.4323834618604, 289.5444698142239, 1135.4439660326705, 1172.3403942541604].includes(Math.sqrt(+getSettings('thine')))) + } +})(window, document, jQuery); diff --git a/web/cw.js b/web/cw.js new file mode 100644 index 0000000..5673518 --- /dev/null +++ b/web/cw.js @@ -0,0 +1,4212 @@ +// ==UserScript== +// @name CW: Shed +// @version 1.54 +// @description Сборник небольших дополнений к игре CatWar +// @author Тис +// @copyright 2020-2025, Тис (https://catwar.net/cat406811), copy by ReiReiRei, reupload by Nyan404 +// @license MIT; https://opensource.org/licenses/MIT +// @updateURL https://cat.nyan404.ru/data/CW_Shed.meta.js +// @match *://catwar.net/* +// @match *://catwar.su/* +// @grant GM_xmlhttpRequest +// @grant GM.xmlHttpRequest +// @require https://cat.nyan404.ru/data/jquery-3.4.1.min.js +// @require https://raw.githubusercontent.com/litera/jquery-scrollintoview/master/jquery.scrollintoview.min.js +// @require https://cat.nyan404.ru/data/jquery-ui.js +// ==/UserScript== +(function (window, document, $) { + 'use strict'; + if (typeof $ === 'undefined') return; + const version = '1.54'; + const domain = location.host.split('.').pop(); + const MutationObserver = window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver; + const isDesktop = !$('meta[name=viewport]').length; + const defaults = { +'on_customChat' : false // Кастомный чат +,'on_chatReverse' : false // "Перевернуть" чат +,'on_actNotif' : false // Уведомления на действия +, 'on_newDM' : false // уведомления на новые лс +, 'on_newChat' : false // уведомления на новое соо в чате (не игровой) +, 'on_chatMention' : false // уведомления на упоминание имени в чате +, 'on_blockNotif' : false // уведомления при нажатии/отжатии блока +, 'on_smellTimerNotif' : true // уведомление при окончании таймера нюха +, 'on_paramInfo' : true // Информация о параметрах при нажатии +, 'on_idDM' : true // Включены по умолчанию: ID в личных сообщениях +, 'on_idCatMouth' : true // ID котов во рту при выборе +, 'on_idItemMouth' : true // ID предметов (и уникальные, и обычные) + инфо +, 'on_idChat' : false // ID в чате Игровой +, 'on_teamFights' : false // Команды в боережиме +, 'on_huntText' : true // Охота с текстом движения дичи +, 'on_huntMobileBtns' : true // Стиль, добавляющий кнопки охоте на телефонах +, 'on_huntMobileFix' : false // Стиль, фиксящий охоту на телефонах +, 'on_cleanerHistory' : false // лог чистки +, 'on_charInline' : true // душевые в одну строчку +, 'on_charHide' : false // скрыть душевых в игровой +, 'on_catsDown' : false // коты внизу клетки +, 'on_nickHighlight' : false // подсвечивание (кастомных) имен в чате +, 'on_moveFightLog' : false // кнопка (и возможность) перемещения лога бр +, 'on_shortFightLog' : false // сокращение лога бр +, 'on_reports' : true // отчеты в блогах +, 'on_oldDialogue' : false // старый вид диалогов (1 колонка в выборе) +, 'on_smellTimer' : false // таймер нюха +, 'on_cuMovesNote' : true // Окно заметок для ВТ +, 'on_settLink' : true // Ссылка на настройки в игровой +, 'on_extraInfo' : false // Доп. инфо о котиках +, 'on_deletionWarning' : false // Предупреждение об удалении +, 'on_historyCleanWarning' : false // Предупреждение о чистке истории TODO +, 'on_localTimer' : 0 // Отображение системного времени в игровой (0 - выключен, 1 - локальное, 2 - московское) + //Громкость звуков +, 'sound_notifEaten' : 0.2 // Звук, когда тебя подняли +, 'sound_notifBeaten' : 0.2 // Звук, когда тебя атакуют +, 'sound_notifEndAct' : 0.1 // Звук, когда заканчивается действие +, 'sound_newDM' : 0.1 // Звук при получении ЛС +, 'sound_newChat' : 0.1 // Звук при получении соо в Чате +, 'sound_chatMention' : 0.3 // Звук при упоминании имени игрока в чате (жёлтым) +, 'sound_blockStart' : 0.1 // Звук при нажатии блока +, 'sound_blockEnd' : 0.1 // Звук при отжатии блока +, 'sound_ttRefresh' : 0.2 // Звук при смене карты +, 'sound_smellTimer' : 0.1 // Звук при окончании таймера нюха + //Настройки лога чистки +, 'clean_id' : true // Писать в логе ID поднятого +, 'clean_underscore' : false // Подчеркивать "поднял/опустил" +, 'clean_title' : true // Писать в логе должность поднятого +, 'clean_status' : false // Писать в логе должность поднятого +, 'clean_location' : true // Писать в логе локацию, где подняли и где отпустили +, 'clean_action' : false // Писать в логе проверку на действие + //Массивы +, 'cm_blocked' : [] //Список игроков, от которых не получать уведомления на упоминание в чате +, 'nickListArray' : [] //Список ников игрока + //Настройки команд в БР +, 'tf_max_height' : 100 // макс высота блока с командами +, 'fight_log_max_height' : 70 // высота лога бр +, 'tf_color_g_team1' : "#41cd70" // зелёный цвет команды 1 (основная) в командах бр +, 'tf_color_g_team2' : "#429dde" // зелёный цвет команды 2 в командах бр +, 'tf_color_g_team3' : "#f6c739" // зелёный цвет команды 3 в командах бр +, 'tf_color_g_team4' : "#ee91d7" // зелёный цвет команды 4 в командах бр +, 'tf_color_r_team1' : "#cd4141" // красный цвет команды 1 (основная) в командах бр +, 'tf_color_r_team2' : "#cd4141" // красный цвет команды 2 в командах бр +, 'tf_color_r_team3' : "#cd4141" // красный цвет команды 3 в командах бр +, 'tf_color_r_team4' : "#cd4141" // красный цвет команды 4 в командах бр + //Умолчания действий (УВЕДОМЛЕНИЯ) +, 'notif_eaten' : true // Уведомлять, когда тебя съели +, 'notif_attack' : false // Уведомлять, когда тебя ввели в БР через Т2/Т3 + //Умолчания действий - ЗВУК +, 'snd_act_move' : true // Переход +, 'snd_act_eat' : false // Еда +, 'snd_act_need' : true // Нужда +, 'snd_act_drink' : true // Жажда +, 'snd_act_dig' : true // Копать +, 'snd_act_sleep' : true // Спать +, 'snd_act_sniff' : true // Нюхать +, 'snd_act_digin' : true // Закапывать +, 'snd_act_clean' : true // Вылизывать(ся) +, 'snd_act_swim' : true // Поплавать +, 'snd_act_fill_moss' : true // Наполнить водой мох +, 'snd_act_dive' : true // Нырять +, 'snd_act_murr' : true // Помурлыкать +, 'snd_act_tails' : false // Переплести хвосты +, 'snd_act_cheek' : false // Потереться щекой о щёку +, 'snd_act_ground' : false // Повалять по земле +, 'snd_act_rub' : false // Потереться носом о нос +, 'snd_act_calm' : false // Выход из бр +, 'snd_act_watch' : true // Осматривать окрестности +, 'snd_act_marking' : false // Метить территорию +, 'snd_act_clawscratch' : false // Точить когти +, 'snd_act_rug' : false // Чистить ковёр +, 'snd_act_attention' : false // Привлекать внимание +, 'snd_act_domestsleep' : false // Сон в лежанке +, 'snd_act_domesthunt' : false // Грандиозная охота +, 'snd_act_checkup' : false // Осмотреть кота +, 'snd_act_loottr' : true // осмотреть дупло +, 'snd_act_lootcr' : true // осмотреть расщелину + //Умолчания действий - ТЕКСТ +, 'txt_act_move' : true // Переход +, 'txt_act_eat' : true // Еда +, 'txt_act_need' : true // Нужда +, 'txt_act_drink' : true // Жажда +, 'txt_act_dig' : true // Копать +, 'txt_act_sleep' : true // Спать +, 'txt_act_sniff' : true // Нюхать +, 'txt_act_digin' : true // Закапывать +, 'txt_act_clean' : true // Вылизывать(ся) +, 'txt_act_swim' : true // Поплавать +, 'txt_act_fill_moss' : true // Наполнить водой мох +, 'txt_act_dive' : true // Нырять +, 'txt_act_murr' : true // Помурлыкать +, 'txt_act_tails' : true // Переплести хвосты +, 'txt_act_cheek' : true // Потереться щекой о щёку +, 'txt_act_ground' : true // Повалять по земле +, 'txt_act_rub' : true // Потереться носом о нос +, 'txt_act_calm' : true // Выход из бр +, 'txt_act_watch' : true // Осматривать окрестности +, 'txt_act_marking' : true // Метить территорию +, 'txt_act_clawscratch' : true // Точить когти +, 'txt_act_rug' : true // Чистить ковёр +, 'txt_act_attention' : true // Привлекать внимание +, 'txt_act_domestsleep' : true // Сон в лежанке +, 'txt_act_domesthunt' : true // Грандиозная охота +, 'txt_act_checkup' : true // Осмотреть кота +, 'txt_act_loottr' : true // осмотреть дупло +, 'txt_act_lootcr' : true // осмотреть расщелину +, 'my_id' : '' // Айди для отчетов + //Минное поле +, 'on_treeTechies' : false // минное поле +, 'tt_folded' : false // сворачивать минное поле +, 'tt_dark_theme' : false // темная тема +, 'tt_show_volume' : true // показывать громкость веток в чате +, 'tt_clean_confirm' : true // подтверждение очистки +, 'tt_notif_refresh' : false // звук при обновлении локи +, 'tt_window_top' : 20 // положение окна относительно верхней части +, 'tt_window_left' : 20 // положение окна относительно левой части +, 'tt_pagenamesArray' : ['1А', '2А', '3А', '4А', '5А', '6А', '1Б', '2Б', '3Б', '4Б', '5Б', '6Б', '1В', '2В', '3В', '4В', '5В', '6В', '1Г', '2Г', '3Г', '4Г', '5Г', '6Г'] //Список названий +, 'tt_pageenabledArray' : [true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true] //Список включенных , страниц +, 'tt_foldersnamesArray' : ['А', 'Б', 'В', 'Г'] //имена вкладок +, 'tt_foldersenabledArray' : [true, true, true, true] //включение вкладок + //CSS +, 'on_css_quicksettings' : false // быстрые настройки +, 'on_csslocation' : false // замена фона на определенный +, 'on_css_defects' : false // светить дефекты (но не грязь) +, 'on_css_defects_dirt' : false // светить дефекты (грязь) +, 'on_css_removesky' : false // убрать небо +, 'on_css_oldicons' : false // старые иконки +, 'on_css_coloredparam' : false // цветные параметры и навыки +, 'on_css_cellshade' : false // сетка +, 'on_css_bgpic' : false // картинка на заднем фоне +, 'on_css_bghuntpic' : false // картинка на заднем фоне охоты +, 'on_css_highlightmove' : false // подсветка переходов при наведении +, 'on_css_maxopacity' : false // непрозрачные мертвецы +, 'on_css_hideTooltip' : false // скрыть табличку (для кача лу) +, 'on_css_daylight' : false // всегда день +, 'on_css_alternativeDivideGUI' : false // Альтернативный интерфейс разделения травы +, 'on_css_itemHighlight' : false // Альтернативный интерфейс разделения травы + +, 'css_itemHighlightArray' : ['13','15','17','19','20','21','22','23','25','26','78','106','108','109','110','111','112','115','116','119','126','565','566','655','3993','4010','4011'] // предметы, которые нужно подсвечивать в Игровой +, 'css_itemHighlightColor' : '#eeeeee' // предметы, которые нужно подсвечивать в Игровой +, 'css_bgpicURL' : 'https://catwar.' + domain + '/cw3/spacoj/0.jpg' // картинка на заднем плане игровой +, 'css_huntbgpicURL' : 'https://catwar.' + domain + '/cw3/jagd_img/bg1.png' // картинка на заднем плане игровой +, 'css_locURL' : 'https://catwar.' + domain + '/cw3/spacoj/170.jpg' // на какой фон заменять +, 'css_cellshadeColor' : '#ffffff' // сетка цвет +, 'css_cellshadeOpacity' : 0.1 // сетка прозрачность +, 'css_theme' : 'theme_classic' // тема +, 'css_cp_pattern' : true // узор в навыках и параметрах +, 'css_cp_colors' : ['#ac23bf', '#d860ea', '#5e1268', '#6f2f79', '#dfab04', '#f0d142', '#845406', '#886921', '#28afd0', '#2bedee', '#165f75', '#157a7d', '#51d74c', '#89df4b', '#327327', '#54842d', '#d22c28', '#ee8761', '#841921', '#913733', '#a65b32', '#f09662', '#62351c', '#804c2d', '#379034', '#51bb39', '#1b4d1b', '#336b24'] // цвета +, 'on_css_hideChat' : false // скрыть чат + }; + const globals = {}; //Настройки + for (var key in defaults) { + let settings = getSettings(key); + if (settings === null) { + globals[key] = defaults[key]; + } + else { + if (Array.isArray(defaults[key])) { + try { + globals[key] = JSON.parse(settings); + } catch(e) { + console.log('CWShed: Ошибка при загрузке настройки ' + key) + console.log(settings) + console.error(e) + } + } + else { + globals[key] = settings; + } + } + } + const sounds = {}; + sounds.new_message = '/new_message.mp3'; + sounds.action_notif = 'https://cat.nyan404.ru/data/action_end.mp3'; + sounds.chat_mention = 'https://cat.nyan404.ru/data/chat_mention.mp3'; + sounds.alert_attacked = 'https://cat.nyan404.ru/data/ihrv.mp3'; + sounds.tt_refresh = 'https://cat.nyan404.ru/data/refresh.wav'; //изменить потом + sounds.block_start = 'https://cat.nyan404.ru/data/lock.mp3'; + sounds.block_end = 'https://cat.nyan404.ru/data/unlock.mp3'; + const audioGlobal = new Audio(); + audioGlobal.autoplay = false; + audioGlobal.loop = false; + + function playAudio(src, vlm) { + let audio = audioGlobal; + audio.src = src; + audio.volume = vlm; + audio.play(); + } + + function getSettings(key) { //Получение настроек + let setting = 'cws_sett_' + key; + let val = window.localStorage.getItem(setting); + switch (val) { + case null: + return null; + case 'true': + return true; + case 'false': + return false; + default: + return val; + } + } + var error_tm; + + function error(t) { + $("#error").text(t).show(); + clearTimeout(error_tm); + error_tm = setTimeout(function () { + hideError() + }, 10000); + } + + function hideError() { + clearTimeout(error_tm); + $("#error").fadeOut(500); + } + + function setSettings(key, val) { + let setting = 'cws_sett_' + key; + window.localStorage.setItem(setting, val); + } + + function removeSettings(key) { + let setting = 'cws_sett_' + key; + window.localStorage.removeItem(setting); + } + + function addCSS(css) { + $('head').append(``); + } + + function leadZero(num) { + return (num < 10) ? '0' + num : num; + } + const pageurl = window.location.href; + const isCW3 = (/^https:\/\/\w?\.?catwar.(su|net)\/cw3(?!(\/kns|\/jagd))/.test(pageurl)); + const isSite = !(/^https:\/\/\w?\.?catwar.(su|net)\/cw3(\/kns|\/jagd)?.*/.test(pageurl)); + const isDM = (/^https:\/\/\w?\.?catwar.(su|net)\/ls/.test(pageurl)); + const isHunt = (/^https:\/\/\w?\.?catwar.(su|net)\/cw3\/jagd/.test(pageurl)); + const isSett = (/^https:\/\/\w?\.?catwar.(su|net)\/settings/.test(pageurl)); + const isMyCat = (/^https:\/\/\w?\.?catwar.(su|net)\/$/.test(pageurl)); + const isBlog = (/^https:\/\/\w?\.?catwar.(su|net)\/blog\d+/.test(pageurl)); + const isCUMoves = (/^https:\/\/\w?\.?catwar.(su|net)\/moves$/.test(pageurl)); + const isProfile = (/^https:\/\/\w?\.?catwar.(su|net)\/cat(\d+|\/)/.test(pageurl)); + + try { + if (isCW3) cw3(); + if (isSite) site(); + if (isDM) dm(); + if (isSett) sett(); + if (isHunt) hunt(); + if (isMyCat) myCat(); + if (isBlog) blog(); + if (isProfile) profile(); + if (isCUMoves) cumoves(); + } + catch (err) { + window.console.error('CW:Shed error: ', err); + } + + if (!isDesktop) { // фиксы дизайнов + addCSS(`.tag_edit, .tag_save { + font-size: 130%; + } + .tag_remove, .tag_cancel { + font-size: 120% + } + #tag_quest { + padding: 7px + } + #tag_add { + padding: 9px; + }`); + } + + function site() { // Весь сайт, кроме Игровой и её разделов + if (globals.on_deletionWarning) { + const el = $('.other_cats_list').first(); + if (el.length) { + el.children().each(function (e) { + const href = $(this).attr('href'); + const data = /login2\?id=(\d+)/.exec(href); + let response = '[???]'; + if (data && data[1]) { + response = ''; + const id = +data[1]; + let cat_data = getSettings(`reg_${id}`); + if (cat_data) { + cat_data = JSON.parse(cat_data); + let date = new Date(); + date.setTime(date.getTime() + (date.getTimezoneOffset() + 180) * 60 * 1000); + let diff = Math.floor(date.getTime() / 1000) - cat_data.regTime; + diff = Math.floor(diff / 86400); // days alive + let count = 45; // Время жизни + if (diff > 365) { + count = 120; + } + let lastOnline = new Date(); + lastOnline.setTime(cat_data.lastOnline * 1000); + let inactive = Math.ceil((date - lastOnline) / (86400 * 1000)); + let ttl = count - inactive; + if (ttl < 7) { + response = `[!!!]`; + } + } + } + const text = $(this).text(); + $(this).html(`${text} ${response}`); + }); + } + } + } + function cw3() { //Игровая + if (globals.on_settLink) { + $('.small').first().append(` | Настройки модов`); //Настройки мода + } + if (no(globals.on_links)) { + return; + } + if (globals.on_historyCleanWarning) { + $(document).ready(function () { + const istElem = $('#ist'); + addCSS(`#history_clean { display: none; }`); + $('Очистить историю').insertAfter('#history_block > #ist + br'); + if (istElem.text() == 'История очищена.') { + $('#cws_history_clean').css('display', 'none'); + } + $('body').on('click', '#cws_history_clean', function(e) { + e.preventDefault(); + if (confirm('Точно очистить историю?')) { + $('#history_clean')[0].click(); + } + }); + var observer = new MutationObserver(function(mutationsList, observer) { + const ist = $('#ist').text(); + $('#cws_history_clean').css('display', (istElem.text() == 'История очищена.' ? 'none' : 'inline')); + }); + observer.observe(window.document.getElementById('ist'), {characterData: false, childList: true, attributes: false}); + + }); + } + if (globals.on_css_alternativeDivideGUI) { + $("body").on('click', '#reveal_info li:has(.select_teil)', function () { + $(this).find('.select_teil')[0].click(); + }); + addCSS(`#reveal_info > ul:has(.select_teil) { display: flex; flex-flow: row wrap; margin: 0; padding: 0; } +#reveal_info > ul:has(.select_teil) > li { display: block; width: 70px; height: calc(70px + 1.25em); position: relative; background-repeat: no-repeat; margin: 0 0 .2em .5em; cursor: pointer; } +#reveal_info > ul:has(.select_teil) > li > a { display: block; position: absolute; text-decoration: none; width: 70px; bottom: 0; text-align: center; } +#reveal_info > ul:has(.select_teil) > li:nth-child(1) { background-image: url(/cw3/things/120.png); } +#reveal_info > ul:has(.select_teil) > li:nth-child(2) { background-image: url(/cw3/things/121.png); } +#reveal_info > ul:has(.select_teil) > li:nth-child(3) { background-image: url(/cw3/things/122.png); } +#reveal_info > ul:has(.select_teil) > li:nth-child(4) { background-image: url(/cw3/things/123.png); } +#reveal_info > ul:has(.select_teil) > li:nth-child(5) { background-image: url(/cw3/things/124.png); } +#reveal_info > ul:has(.select_teil) > li:nth-child(6) { background-image: url(/cw3/things/125.png); }`); + } + if (globals.on_extraInfo) { + $.fn.reveal=function(options){var defaults={animation:'fadeAndPop',animationspeed:300,closeonbackgroundclick:true,dismissmodalclass:'close-reveal-modal'}; + var options=$.extend({},defaults,options);return this.each(function(){var modal=$(this),topMeasure=parseInt(modal.css('top')),topOffset=modal.height() + +topMeasure,locked=false,modalBG=$('.reveal-modal-bg');if(modalBG.length==0){modalBG=$('
    ').insertAfter(modal)} modal.bind( + 'reveal:open',function(){modalBG.unbind('click.modalEvent');$('.'+options.dismissmodalclass).unbind('click.modalEvent');if(!locked){lockModal();if + (options.animation=="fadeAndPop"){modal.css({'top':$(document).scrollTop()-topOffset,'opacity':0,'visibility':'visible'});modalBG.fadeIn(options. + animationspeed/2);modal.delay(options.animationspeed/2).animate({"top":$(document).scrollTop()+topMeasure+'px',"opacity":1},options.animationspeed, + unlockModal())}if(options.animation=="fade"){modal.css({'opacity':0,'visibility':'visible','top':$(document).scrollTop()+topMeasure});modalBG.fadeIn( + options.animationspeed/2);modal.delay(options.animationspeed/2).animate({"opacity":1},options.animationspeed,unlockModal())}if(options.animation=="none") + {modal.css({'visibility':'visible','top':$(document).scrollTop()+topMeasure});modalBG.css({"display":"block"});unlockModal()}}modal.unbind('reveal:open')} + );modal.bind('reveal:close',function(){if(!locked){lockModal();if(options.animation=="fadeAndPop"){modalBG.delay(options.animationspeed).fadeOut(options. + animationspeed);modal.animate({"top":$(document).scrollTop()-topOffset+'px',"opacity":0},options.animationspeed/2,function(){modal.remove();unlockModal()} + )}if(options.animation=="fade"){modalBG.delay(options.animationspeed).fadeOut(options.animationspeed);modal.animate({"opacity":0},options.animationspeed, + function(){modal.remove();unlockModal()})}if(options.animation=="none"){modal.remove();modalBG.css({'display':'none'})}}modal.unbind('reveal:close')}); + modal.trigger('reveal:open');var closeButton=$('.'+options.dismissmodalclass).bind('click.modalEvent',function(){modal.trigger('reveal:close')}); + if(options.closeonbackgroundclick){modalBG.css({"cursor":"pointer"});modalBG.bind('click.modalEvent',function(){modal.trigger('reveal:close')})}$('body') + .keyup(function(e){if(e.which===27){modal.trigger('reveal:close')}});function unlockModal(){locked=false}function lockModal(){locked=true}})} + const cws_showModal = function(t, e) { + $("#app").append('

    ' + + t + '

    ' + + e + '
    ×
    '); + $("#reveal").reveal(); + } + const cws_catsInfo = {}; + $('body').on('mouseenter', '.cat', function () { + const cat = $(this); + let el = cat.find('.d'); + const link = cat.find('a').first(); + const catName = link.text(); + const cat_id = /\d+/.exec(link.attr('href'))[0]; + const defects = {}; + let el_composited, el_costume, size; + el.children().each(function (e) { + const bgImg = $(this).css('background-image'); + size = $(this).css('background-size'); + const isDefects = bgImg.indexOf('defects') > -1; + if (bgImg.indexOf('defects') > -1) { + const data = /cats\/-?\d+\/defects\/([a-z]+).*(\d+)\.png/.exec(bgImg) + if (data) { + const name = data[1], val = +(data[2]); + defects[name] = val; + } + } else if (bgImg.indexOf('composited') > -1) { + el_composited = $(this); + } else if (bgImg.indexOf('costume') > -1 && el_costume === undefined) { + el_costume = $(this); + } + }); + let image = "none"; + const hasGenerated = (el_composited !== undefined); + if (hasGenerated) { // take composited + image = /(composited\/[\da-f]{16})\.png/.exec(el_composited.css('background-image'))[1]; + } else if (el_costume !== undefined) { // take FIRST COSTUME + image = /(cats\/-?\d+\/costume\/\d+)\.png/.exec(el_costume.css('background-image'))[1]; + } + const pol = !!(/Его запах/.exec(cat.html())); + cws_catsInfo[cat_id] = { + "name" : catName, + hasGenerated, + image, + defects, + size, + pol, + }; + if (!cat.find('.cws-show-more').length) { + cat.find('.online').before(`Подробнее
    `); + } else { + cat.find('.cws-show-more').data('id', cat_id); + } + }); + $('body').on('click', '.cws-show-more', function (e) { + e.preventDefault(); + let text = "Ничего не нашли грустно..."; + let title = "Информация"; + const id = $(this).data('id'); + const info = cws_catsInfo[id]; + if (info) { + title = `${info.name}`; + text = ``; + text += ``; + text += ``; + text += ``; + text += ``; + text += `
    `; + text += `
    Пол: ${info.pol ? "кот" : "кошка"}
    `; + text += `Рост: ${info.size}${+(info.size.replace('%', '')) == 101 ? " (надута)" : ""}
    `; + if (Object.keys(info.defects).length > 0) { + const defects_list = { + "poisoning" : { + name : "Отравления", + states : { "1" : "недомогание", "2" : "лёгкое отравление", "3" : "сильное отравление", "4" : "смертельное отравление", } + }, + "wound" : { + name : "Раны", + states : { "1" : "царапины", "2" : "лёгкие раны", "3" : "глубокие раны", "4" : "смертельные раны", } + }, + "drown" : { + name : "Травмы от утопления", + states : { "1" : "cсадины", "2" : "небольшие кровоподтёки", "3" : "сильные травмы", "4" : "смертельные травмы", } + }, + "disease" : { + name : "Болезнь", + states : { "1" : "кашель", "2" : "", "3" : "", "4" : "", } + }, + "trauma" : { + name : "Переломы", + states : { "1" : "синяки", "2" : "лёгкие ушибы", "3" : "сильные ушибы", "4" : "смертельные ушибы", } + }, + "dirt" : { + name : "Грязь", + states : { "1" : "грязные лапы", "2" : "грязевые пятна", "3" : "клещи", "4" : "блохи", } + }, + }; + const defects = []; + for (const defect in info.defects) { + const value = info.defects[defect]; + const name = defects_list[defect] && defects_list[defect].name || defect; + const flavor = defects_list[defect] && defects_list[defect].states[value] || "неизвестно"; + defects.push(`${name}: ${value} стадия (${flavor})`); + } + text += defects.join("
    "); + } else { + text += `Здоров${info.pol ? "" : "а"}`; + } + text += `
    `; + } + cws_showModal(title, text); + }); + } + if (globals.on_smellTimer) { + $(document).ready(function () { + $('.small').first().append(` | Нюх через: 0 с`); + let smellActive = 0; + let smellOtherActive = 0; + let firstNote = ""; + let rang = true; + + function smellTimerTick() { + let val = parseInt($('#cws_smell_timer').attr('value')); + if (val) { + rang = false; + val--; + $('#cws_smell_timer').attr('value', val); + let str = ''; + let hr = parseInt(val / 3600); + let mi = parseInt((val - hr * 3600) / 60); + let se = parseInt(val - (hr * 3600 + mi * 60)); + str += (hr) ? hr + ' ч ' : ''; + str += (mi || hr) ? mi + ' мин ' : ''; + str += se + ' с'; + $('#cws_smell_timer').html(str); + } + else if (globals.on_smellTimerNotif && !rang) { + playAudio(sounds.action_notif, globals.sound_smellTimer); + rang = true; + } + } + setInterval(smellTimerTick, 1000); + //TODO: сделать так, чтоб таймер не запускался вообще, пока есть действие нюха, т.е. value != 0 + let firstClick = setInterval(function () { //господи я ненавижу варовскую привычку сначала создавать элемент а потом вставлять в него данные + if ($('#smell_icon').length) { + firstNote = $('#error').html(); + $('#smell_icon').click(); + clearInterval(firstClick); + } + }, 500); + + $("body").on('DOMNodeInserted', '#dein', 'a[data-id=14]', function () { + let isActive = $('#dein a[data-id=14]').length; + if (!smellOtherActive && isActive) { //Отменено действие нюха + $('#cws_smell_timer').attr('value', 0); + $('#cws_smell_timer').html('0 с'); + } + smellOtherActive = isActive; + }); + const smell_timer = {"0": 3600,"1": 3600,"2": 3600,"3": 3600,"4": 1800,"5": 1200,"6": 900,"7": 720,"8": 600,"9": 0}; + $("body").on('DOMNodeRemoved', '#dein', 'a[data-id=14]', function () { + let isActive = $('#dein a[data-id=14]').length; + if (smellOtherActive && !isActive) { //Нажато действие нюха + let smell_lv = $('#smell b').text(), + smell_time = smell_timer[smell_lv], + str = '', + mi = smell_time / 60, + se = smell_time - mi * 60; + str += (mi) ? mi + ' мин ' : ''; + str += se + ' с'; + $('#cws_smell_timer').attr('value', smell_time); + $('#cws_smell_timer').html(str); + } + smellOtherActive = isActive; + }); + + $("body").on('DOMSubtreeModified', '#error', function () { + let html = $(this).html(); + if (html && html.indexOf('Следующее обнюхивание') !== -1) { + let text = html.replace('Следующее обнюхивание будет доступно через ', ''); + let smellMin = (text.match(/(\d+) мин/g) == null) ? 0 : parseInt(text.match(/(\d+) мин/g)[0].replace(/\D/g, '')); + let smellSec = parseInt(text.match(/(\d+) с/g)[0].replace(/\D/g, '')); + let totalSec = smellMin * 60 + smellSec; + $('#cws_smell_timer').attr('value', totalSec); + $('#cws_smell_timer').html(smellMin + ' мин ' + smellSec + ' с'); + if (firstNote !== "") { //Чтоб не перекрывало уведомления о ранах, голоде и т.д. + $('#error').html(firstNote); + firstNote = ""; + } + } + else if (html.indexOf('Час уже прошёл') !== -1 && firstNote !== "") { + $('#error').html(firstNote); + firstNote = ""; + } + }); + }); + } + if (globals.on_oldDialogue) { + $(document).ready(function () { + $("body").on('DOMNodeInserted', '#text', function () { + $(this).attr('size', 1); + }); + }); + } + if (globals.on_catsDown) { //опускаем котов вниз вместе со стрелами + $(document).ready(function () { + $('head').append(``); + $("body").on('DOMSubtreeModified DOMNodeInserted', '.catWithArrow', function (e) { + let $arrow = $(this).find('.arrow'); + let topval = $arrow.css('top'); + if (topval) { + let int_topval = parseInt(topval.replace('px', '')); + if (int_topval > 0) { + $arrow.css('bottom', topval); + $arrow.css('top', ''); + } + } + }); + }); + } + if (globals.on_charInline) { + addCSS(`.other_cats_list + br {display: none;}.other_cats_list::after {content: " ||";}.other_cats_list {border: none;}`); + } + if (+globals.on_localTimer) { + const getTimeStr = function() { + const date = new Date(); + if (+globals.on_localTimer == 2) { + date.setTime(date.getTime() + (date.getTimezoneOffset() + 180) * 60 * 1000); + } + return date.toLocaleTimeString() + "   " + + ['Вс', 'Пн', 'Вт', 'Ср', 'Чт', 'Пт', 'Сб'][date.getDay()] + ', ' + + date.getDate() + ' ' + ['января', 'февраля', 'марта', 'апреля', 'мая', 'июня', 'июля', 'августа', 'сентября', 'октября', 'ноября', 'декабря'][date.getMonth()]; + } + if (isDesktop) { + addCSS(`#cws_localTimer {color: #d7d7d7;background-color: #00000096;padding: 0 1em;font-size: 12px;line-height:2.2}#tr_tos > td {display: flex;justify-content: space-between;}`); + } else { + addCSS(`#cws_localTimer {color: #d7d7d7;background-color: #00000096;padding: 0 1em 0.3em 1em;font-size: 12px}`); + } + $('#tr_tos > td').append('
    ' + getTimeStr() + '
    '); + setInterval(function () { + $('#cws_localTimer').html(getTimeStr()); + }, 1000); + } + if (globals.on_charHide) { + addCSS(`.other_cats_list {display: none;}.other_cats_list + br {display: none;}`); + } + if (globals.on_newDM) { + let newDM = 0; + const dm_observer = new MutationObserver(function(mutations) { + mutations.forEach(function(mutationRecord) { + if (mutationRecord.type === "characterData") { + let newDMtmp = $("#newls").text(); + if (newDMtmp !== undefined) { + newDMtmp = (newDMtmp === '') ? 0 : +(newDMtmp.replace(/\D/gi, '')); + if (newDMtmp > newDM) { + playAudio(sounds.new_message, globals.sound_newDM); + } + newDM = newDMtmp; + } + } + }); + }); + dm_observer.observe(document.getElementById('newls'), { subtree: true, characterData: true }); + } + if (globals.on_newChat) { + let newChat = 0; + $('body').on('DOMSubtreeModified', '#newchat', function () { // deprecated, todo: remove/update + let newChattmp = $(this).html(); + if (newChattmp !== undefined) { + newChattmp = (newChattmp === '') ? 0 : parseInt(newChattmp.replace(/\D/gi, '')); + if (newChattmp > newChat) { + playAudio(sounds.new_message, globals.sound_newChat); + } + newChat = newChattmp; + } + }); + } + if (globals.on_customChat) { + let messages = 1; + if (isDesktop) { + addCSS('#cws_chat_msg {width: 1000px;} .chat_text {width: 935px;}'); + } + else { + addCSS('#cws_chat_msg {width: 100% !important;} .chat_text {line-break: anywhere;}'); + } + addCSS(`#chat_msg {display: none;}#cws_chat_msg {overflow: auto;height: 275px;}.cws_chat_wrapper{display: -webkit-flex;padding: 0 .25em;display: flex;} + .cws_chat_msg {-webkit-flex: auto;flex: auto;-webkit-flex-direction: row;flex-direction: row;}.cws_chat_report {width: 42px;}.cws_chat_report {-webkit-touch-callout: none; + -webkit-user-select: none;-khtml-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none;}`); + // варомод (почему вы просите добавить совместимость меня, когда совместимость проще добавить тому кто сделал эту компактную игровую?) + const hvo_settings = JSON.parse(window.localStorage.getItem('cwmod_settings') || '{}'); + if (hvo_settings.cw3_compact) { + addCSS(`#cws_chat_msg { width: auto !important; height: 350px; padding: 2px; }`); + } + if (globals.on_chatReverse) { + $('

    ').insertBefore('#chat_form'); + } + else { + $('

    ').insertAfter('#chat_form'); + } + let scroll = false; // была прокрутка до предыдущих сообщений + const chatTarget = document.getElementById('chat_msg'); + const chatObserver = new MutationObserver(function (mutationsList, observer) { + let name_heard = false; + let last_mutation = mutationsList[mutationsList.length - 1].target; + let msg_new = last_mutation.children.length; + let msg_blocks = last_mutation.children; + for (let i = messages + 1; i <= msg_new; i++) { // Добавление во временный чат новых сообщений + let block = msg_blocks[msg_new - i]; + if (block.nodeName == "SPAN") { + let msg = block.getElementsByClassName('chat_text')[0], + classList = msg.classList.value, + text = msg.querySelectorAll('span')[0].innerHTML, + nick = msg.getElementsByClassName('nick')[0].outerHTML, + bot_resp = msg.querySelectorAll('b + span')[0], + bot_msg = (bot_resp === undefined) ? '' : bot_resp.outerHTML, + report = block.querySelectorAll('td[style="width: 42px;"]')[0], + cat_id = report.querySelectorAll('a[href^="/cat"]')[0].getAttribute('href'), + silent_bot = msg.querySelectorAll('.nick[style*="italic"]').length, + cat_title = ''; + cat_id = parseInt(cat_id.replace(/\D/g, '')); + let cat_id_format = (globals.on_idChat && !silent_bot) ? ` [${cat_id}]` : ''; + let has_nickname = false; + if (globals.on_nickHighlight) { // Покрасить ники в myname + $.each(globals.nickListArray, function (index, key) { + let expr = new RegExp('^(' + key + ')[^А-ЯЁёA-Za-z0-9]|[^А-ЯЁёA-Za-z0-9>](' + key + ')[^А-ЯЁёA-Za-z0-9<]|[^А-ЯЁёA-Za-z0-9](' + key + ')$|^(' + key + ')$', "ig"); + if (text.match(expr)) { //есть имя и оно ещё не внутри тега + let matchAll = text.matchAll(expr); + matchAll = Array.from(matchAll); // теперь массив + $.each(matchAll, function (index, value) { + let replacer = value[1] || value[2] || value[3] || value[4]; //То, что было найдено (4 местоположения key, 4 варианта регулярки) + text = text.replace(value[0], value[0].replace(replacer, '­' + replacer + '­')); + has_nickname = true; + }); + } + }); + } + if (globals.on_chatMention && !name_heard) { // Если в текущем сообщении есть myname и !name_heard - проиграть звук и выставить name_heard = true + let has_myname = msg.getElementsByClassName('myname').length; + if (has_myname || has_nickname) { + let is_bot = msg.getElementsByTagName('i').length; + if (jQuery.inArray(cat_id, globals.cm_blocked) == -1 && !is_bot) { //ЕСЛИ НЕ В МАССИВЕ ИГНОРИРУЕМЫХ и не бот + playAudio(sounds.chat_mention, globals.sound_chatMention); + name_heard = true; // чтоб не спамило звуки, когда загружаешь страницу а там чел твое имя 228 раз написал + } + } + } + // Если надо свапнуть (и ID включены, иначе будет жирный пробел перед должностью) + let result = `
    +
    + ${text} - ${nick}${cat_title} ${cat_id_format} + ${bot_msg} + +
    +
    ${report.outerHTML}
    +
    `; + if (globals.on_chatReverse) { + $('#cws_chat_msg').append(result); + $('#cws_chat_msg').append('
    '); + if (!scroll) { + $('#cws_chat_msg')[0].scrollTop = $('#cws_chat_msg')[0].scrollHeight; + } + } + else { + $('#cws_chat_msg').prepend(result); + $('#cws_chat_msg').prepend('
    '); + } + } + } + messages = mutationsList[mutationsList.length - 1].target.children.length; + }); + chatObserver.observe(chatTarget, { + childList: true + }); + + $('#cws_chat_msg').on('click', '.nick', function () { // потому что клик на ник с ориг чата работает только на ориг чат фу бе + let $text = $('#text'); + $text.val($text.val() + $(this).text() + ', '); + $text.focus(); + }); + $('#cws_chat_msg').on('click', '.msg_report', function () { // потому что клик на жалобу с ориг чата тоже работает только на ориг чат + let id = $(this).data('id'); + $('#chat_msg .msg_report[data-id="' + id + '"]')[0].click(); // почему вообще нельзя одновременно кликнуть на несколько элементов массива это глупо jq + }); + if (globals.on_chatReverse) { + $('#cws_chat_msg').on('scroll', function () { // потому что клик на жалобу с ориг чата тоже работает только на ориг чат + let $e = $('#cws_chat_msg'); + if ($e.scrollTop() + $e.height() >= $e[0].scrollHeight - 45) { // прокручено до конца + scroll = false; + } + else { + scroll = true; + } + }); + } + + } + if (globals.on_idItemMouth) { + let item_names_json = {}; + $(document).ready(function () { + $.getJSON("https://cat.nyan404.ru/data/item_names.json?" + Date.now(), function (response) { //Подгрузка имен предметов из json файла + item_names_json = response; + $("#thdey > ul").append('
  • Название предмета: [ Неизвестно ] [?]
  • '); + $("body").on('click', "#itemList .itemInMouth", function () { + if ($(this).hasClass("active_thing")) { + let item_id = $(this).find("img").attr("src").replace(/\D/g, ""); + let name = item_names_json[item_id] || "[ Неизвестно ]"; + $("#item_name_ide").html(name); + $("#item_id_ide").html(item_id); + } + }); + }); + }); + } + if (globals.on_idCatMouth) { + $(document).ready(function () { + $("#ctdey > ul").append('
  • ID кота: [ Не определено ]
  • '); + $("body").on('click', "#itemList .catrot", function () { + if ($(this).hasClass("active_thing")) { + $("#cat_id_ide").html($(this).attr('id')); + } + }); + }); + } + if (globals.on_actNotif) { + function which_action(text) { + const act_detect = { + "move": "Переход", + "eat": [" дичь", "Перекусывать"], + "need": "Делаем свои дела", + "drink": "Пьём ещё", + "dig": "Копать", + "sleep": "Сон", + "sniff": "нюх", + "digin": "Закапывать", + "clean": "Вылизывать", + "swim": "Плавать", + "fill_moss": "Наполнять мох", + "dive": "Нырять", + "murr": "Мурлыкать", + "tails": "Переплетаем хвосты", + "cheek": "Трёмся щекой", + "ground": "Валяем по земле", + "rub": "Тереться носом о нос", + "calm": "Успокаиваться", + "watch": "Осматривать окрестности", + "marking": "Помечать территорию", + "clawscratch": "Точить когти", + "rug": "Чистить ковёр", + "attention": "Привлекать внимание", + "domestsleep": "Спать ", + "domesthunt": "Грандиозно охотиться ", + "checkup": "Осматривать к", + "loottr": "Осматривать дупло", + "lootcr": "Осматривать расщелину" + }; + const act_flav_text = { + "move": "Переход", + "eat": "Поедание дичи", + "need": "Справление нужды", + "drink": "Питьё", + "dig": "Копание", + "sleep": "Сон", + "sniff": "Нюх", + "digin": "Закапывание", + "clean": "Вылизывание", + "swim": "Плавание", + "fill_moss": "Наполнение мха", + "dive": "Ныряние", + "murr": "Мурлыкаем", + "tails": "Переплетаем хвосты", + "cheek": "Трёмся щекой", + "ground": "Валяем по земле", + "rub": "Трёмся носом о нос", + "calm": "Выход из боевой стойки", + "watch": "Осмотр окрестностей", + "marking": "Пометка территории", + "clawscratch": "Затачивание когтей", + "rug": "Чистка ковра", + "attention": "Привлечение внимания", + "domestsleep": "Сон в лежанке", + "domesthunt": "Грандиозная охота", + "checkup": "Осмотр целителем", + "loottr": "Осмотр дупла", + "lootcr": "Осмотр расщелины" + }; + let wh_act = { + txt: null, + snd: false + }; + $.each(act_detect, function (actid, acttext) { + if (!(acttext instanceof Array)) {acttext = [acttext];} + for (let textinstance in acttext) { + if (text.indexOf(acttext[textinstance]) !== -1) { + if (globals["txt_act_" + actid]) wh_act.txt = act_flav_text[actid]; + if (globals["snd_act_" + actid]) wh_act.snd = true; + return wh_act; + } + } + + }); + return wh_act; + } + let rang = false; + let move_ok = false; // можно проигрывать звук + let action = which_action($("#block_mess").text() || ""); + var actionNotificationObserver = new MutationObserver(function(mutations) { + mutations.forEach(function(mutationRecord) { + if (mutationRecord.type === "characterData") { + let match = $('#block_mess').text().match(/(\d+\sч\s)?(\d+\sмин\s)?(\d+\sс)/u); + if (match) { + let time = match[0].trim(); + action = which_action($("#block_mess").text() || ""); + if (time == '7 с' || time == '6 с') move_ok = true; //Действие длится хотя бы 7 секунд -С МОМЕНТА ОТКРЫТИЯ ИГРОВОЙ- + if (action.txt !== null) $('title').text(time + " / " + action.txt); //Сменить титульник, если текст на это действие включен + let datenow = new Date(); + if (!action.snd) rang = true; //Реагировать только на нужные навыки ("звук был" = да) + if ((time === '3 с' || time === '2 с' || time === '1 с') && !rang && move_ok) { //Свернутая вкладка обновляется каждые 2-3 секунды, F // До конца действия 1-3 сек, звука ещё не было/звук включен, звук можно проигрывать + playAudio(sounds.action_notif, globals.sound_notifEndAct); + rang = true; + move_ok = false; + } + } else { + $('title').text('Игровая / CatWar'); + rang = false; + move_ok = false; + } + } + }); + }); + const actParentNode = document.getElementById('tr_actions').children[0]; + actionNotificationObserver.observe(actParentNode, { subtree: true, childList: true, characterData: true, characterDataOldValue: true, }); + } + if (globals.notif_eaten) { //Уведомления, когда вас поднимают + var pickNotificationObserver = new MutationObserver(function(mutations) { + mutations.forEach(function(mutationRecord) { + if (mutationRecord.type === "characterData") { + if ($("#block_mess").html().indexOf("Вы не сможете выбраться") !== -1) { + $('title').text("Во рту"); + playAudio(sounds.action_notif, globals.sound_notifEaten); + } + if ($("#block_mess").html() === "" && !globals.on_actNotif) { //Если пуст, действий нет (нужно, если нет уведомлений на действия) + $('title').text('Игровая / CatWar'); + } + } + }); + }); + const actParentNode = document.getElementById('tr_actions').children[0]; + pickNotificationObserver.observe(actParentNode, { subtree: true, childList: true, characterData: true, characterDataOldValue: true, }); + } + if (globals.notif_attack) { + const attackObserver = new MutationObserver(function(mutations) { + let last_note = $($("#ist").html().split('.')).get(-2); + if (last_note !== undefined) { + if (last_note.indexOf("в боевую стойку, поскольку на меня напал") !== -1) { + playAudio(sounds.alert_attacked, globals.sound_notifBeaten); + } + } + }); + attackObserver.observe(document.getElementById('ist'), { characterData: false, childList: true, attributes: false }); + } + if (globals.on_moveFightLog) { + $('#app').ready(function () { //Возможность перетаскивать панель лога боя + $('head').append(``); + $("#fightPanel").prepend(``); + $("#fightPanel").draggable({ + handle: "#fightPanelHandle" + }); + }); + } + if (globals.on_blockNotif) { + let block = false; + $('#app').ready(function () { + $('#block').on('load', function () { + if ($(this).attr('src') == 'symbole/lock.png') { //locked + block = true; + playAudio(sounds.block_start, globals.sound_blockStart); + } + else if (block) { //unlocked + block = false; + playAudio(sounds.block_end, globals.sound_blockEnd); + } + }); + }); + } + if (globals.fight_log_max_height != 70) { + $('#fightLog').css('height', globals.fight_log_max_height); + } + if (globals.on_shortFightLog) { + $(document).ready(function () { + let prev_log = ''; + let prev_class = ''; + var shortLogObserver = new MutationObserver(function(mutations) { + mutations.forEach(function(mutationRecord) { + if (mutationRecord.type === "childList") { + mutationRecord.addedNodes.forEach((node) => { + if (node.nodeType === Node.ELEMENT_NODE && node.nodeName === "SPAN" && !node.classList.contains("cws-hit-count")) { + let this_log = node.textContent, this_class = node.getAttribute("class"); + if (this_log == prev_log && prev_class == this_class) { + node.remove(); + $('#fightLog > br:first-child').remove(); + let $to_change = $('.cws-hit-count').first(); + let count = +($to_change.attr('count')); + count++; + $to_change.attr('count', count); + $to_change.html(' (х' + count + ')'); + } else { + $('').insertAfter(node); + } + prev_log = this_log; + prev_class = this_class; + } + }); + } + }); + }); + shortLogObserver.observe(document.getElementById('fightLog'), { subtree: true, childList: true }); + }); + } + if (globals.on_teamFights) { + $('head').append(``); //Определение цветов команд + $('head').append(``); //Заготовка раскраски команд + $("#app").ready(function () { + let ids = {}; //Список айди + $("#fightPanel").append(`
    + + + + + + +
    ИмяКоманда
    + +
    `); //Добавление списка в панель бр + $("#refresh-team").on("click", function () { //Кнопка "Обновить" + $('#fightColors > tr').each(function () { //Удалить старое + let id = $(this).attr('id').match(/\d+/)[0]; + if (!$("#arrow" + id).length) { //если не существует кота из списка в боережиме + $("#team_member_" + id).remove(); + delete ids[id]; + } + }); + $('.arrow').each(function () { + let id = $(this).attr('id').match(/\d+/)[0]; + if (!ids[id]) { //Добавить новое + ids[id] = 1; //team 1 + let name = $(".cat_tooltip a[href='/cat" + id + "']").html(); + $("#fightColors").append(`${name} + + + + + `); + } + }); + }); + $(document).on('change', '.cws-team-chk', function () { //Изменение команды при клике + let id = $(this).attr('id').match(/\d+/)[0]; + ids[id] = parseInt($(this).val()); + let style = '\n'; //Формирование нового стиля + $.each(ids, function (id, team) { + style += `#arrow${id} .arrow_green {background: var(--team${team}g);}\n#arrow${id} .arrow_red {background: var(--team${team}r);}\n`; + }); + $('#cws_team_fights').html(style); + }); + }); + } + if (globals.on_cleanerHistory) { + let titles = {}; + let statuses = {}; + const convert = { + "Котёнок": "котёнка", + "Оруженосец": "оруженосца", + "Старший оруженосец": "старшего оруженосца", + "Ученица целителя": "ученицу целителя", + "Ученик целителя": "ученика целителя", + "Целительница": "целительницу", + "Целитель": "целителя", + "Воительница": "воительницу", + "Воитель": "воителя", + "Старшая воительница": "старшую воительницу", + "Старший воитель": "старшего воителя", + "Старейшина": "старейшину", + "Глашатая": "глашатую", + "Глашатай": "глашатая", + "Предводительница": "предводительницу", + "Предводитель": "предводителя", + "Будущая стражница": "будущую стражницу", + "Будущий страж": "будущего стража", + "Будущая охотница": "будущую охотницу", + "Будущий охотник": "будущего охотника", + "Стражница": "стражницу", + "Страж": "стража", + "Охотница": "охотницу", + "Охотник": "охотника", + "Врачеватель": "врачевателя", + "Ученица врачевателя": "ученицу врачевателя", + "Ученик врачевателя": "ученика врачевателя", + "Ученица": "ученицу", + "Ученик": "ученика", + "Молодой воин": "молодого воина", + "Воин": "воина", + "Старший воин": "старшего воина", + "Учитель": "учителя", + "Воин света": "воина света", + "Слышащая": "слышащую", + "Слышащий": "слышащего", + "Ученица слышащего": "ученицу слышащего", + "Ученик слышащего": "ученика слышащего", + "Доверенная": "доверенную", + "Доверенный": "доверенного", + "Наследница": "наследницу", + "Наследник": "наследника", + "Хранитель моря": "хранителя моря", + "Верховная хранительница покоя": "верховную хранительницу покоя", + "Верховный хранитель покоя": "верховного хранителя покоя", + "Верховная добытчица": "верховную добытчицу", + "Верховный добытчик": "верховного добытчика", + "Верховная жрица": "верховную жрицу", + "Верховный жрец": "верховного жреца", + "Глава Верховного Совета": "главу Верховного Совета", + "Советница верховного жреца": "советницу верховного жреца", + "Советник верховного жреца": "советника верховного жреца", + "Советница верховного хранителя покоя": "советницу верховного хранителя покоя", + "Советник верховного хранителя покоя": "советника верховного хранителя покоя", + "Советница верховного добытчика": "советницу верховного добытчика", + "Советник верховного добытчика": "советника верховного добытчика", + "Лунная жрица": "лунную жрицу", + "Лунный жрец": "лунного жреца", + "Добытчица": "добытчицу", + "Добытчик": "добытчика", + "Хранительница покоя": "хранительницу покоя", + "Хранитель покоя": "хранителя покоя", + "Ученица хранителей покоя": "ученицу хранителей покоя", + "Ученик хранителей покоя": "ученика хранителей покоя", + "Ученица добытчиков": "ученицу добытчиков", + "Ученик добытчиков": "ученика добытчиков", + "Старец": "старца", + "Королева": "королеву", + "Наследник хранителя": "наследника хранителя", + "Хранительница солнца": "хранительницу солнца", + "Хранитель солнца": "хранителя солнца", + "Заместительница глашатая": "заместительницу глашатая", + "Заместитель глашатая": "заместителя глашатая", + "Восходящая": "восходящую", + "Восходящий": "восходящего", + "Командор серых стражей": "командора серых стражей", + "Ведущая": "ведущую", + "Ведущий": "ведущего", + "Ученица Луны": "ученицу Луны", + "Ученик Луны": "ученика Луны", + "Королева": "королеву", + "Заботливый отец": "заботливого отца", + "Ведущая воительница": "ведущую воительницу", + "Ведущий воитель": "ведущего воителя", + "Молодая воительница": "молодую воительницу", + "Молодой воин": "молодого воина", + "Помощница ученика врачевателя": "помощницу ученика врачевателя", + "Помощник ученика врачевателя": "помощника ученика врачевателя", + "Старший оруженосец": "старшего оруженосца", + "Переходящая": "переходящую", + "Переходящий": "переходящего", + "Советница": "советницу", + "Советник": "советника", + "Воспитанник": "воспитанника", + "Воспитанница": "воспитанницу", + "Старший воспитанник": "старшего воспитанника", + "Старший воспитанница": "старшую воспитанницу", + "Вождь": "вождя", + "Мудрец": "мудреца", + "Искусник": "искусника", + "Наместник": "наместника", + "Пилигрим": "пилигрима", + "Ловец": "ловца", + "Шаман": "шамана", + "Кормилица": "кормилицу", + "Воевода": "воеводу" + }; + + function title_convert(title) { + return convert[title] || title; + } + if (globals.clean_title || globals.clean_status) { + $(document).ready(function () { + const catsCagesObserver = new MutationObserver(function(mutations) { + mutations.forEach(function(mutationRecord) { + if (mutationRecord.type === "childList") { + mutationRecord.removedNodes.forEach((node) => { + if (node.nodeType === Node.ELEMENT_NODE && node.classList.contains("catWithArrow")) { + const linkNode = node.querySelector('.cat_tooltip > u > a'); + if (linkNode) { + let href = linkNode.getAttribute('href'); + if (href !== undefined) { + let cat_id = href.replace(/\D/g, ''); + if (titles[cat_id] === undefined) { + let titleElem = node.innerHTML.match(/
    ([^<]+)<\/i><\/small><\/div>/ui); + if (titleElem !== null && titleElem[1]) { + titles[cat_id] = titleElem[1]; + } + } + let status = node.querySelector('.online').textContent; // [ На удалении ] + let is_punished = node.querySelector('div[style*="costume/295."]'); // Подстилки? + if (is_punished) { + status = "[ В подстилках ]"; + } + statuses[cat_id] = status; + } + } + } + }); + } + }); + }); + catsCagesObserver.observe(document.getElementById('cages'), { subtree: true, childList: true, attributes: false }); + }); + } + let first_load = true; + let cl_history = (window.localStorage.getItem('cws_cleaner_history_log') !== null) ? window.localStorage.getItem('cws_cleaner_history_log') : 'История очищена.'; + cl_history = ((globals.clean_underscore) ? cl_history.replace(/ (Подняла?|Опустила?) /ig, ' $1 ') : cl_history.replace(/ (Подняла?|Опустила?)<\/u> /ig, ' $1 ')); + $("#ist").ready(function () { + // ДОБАВЛЕНИЕ ЛОГА ЧИСТИЛЬЩИКОВ + $('

    Деятельность в чистильщиках:

    ' + cl_history + '
    Очистить историю чистки').insertAfter("#history_clean"); + let prev_ist, prev_prev_ist; + + const cleanHistObserver = new MutationObserver(function(mutations) { + if (first_load) { + first_load = false; + } else { + const testDate = new Date(); + console.log('cleanHistObserver triggered at', testDate.getTime()); + let last_ist = $("#ist").html().split('.'); + last_ist = last_ist[last_ist.length - 2]; + if (last_ist !== undefined) { + console.log('Последняя запись в истории:', last_ist); + let clean_id = last_ist.match(/cat(\d+)/); + if (clean_id) { + clean_id = clean_id[1]; + } + last_ist = last_ist.trim().replace(/(<([^>]+)>)/ig, ''); + if (((last_ist.indexOf("Поднял") !== -1) || (last_ist.indexOf("Опустил") !== -1)) && ((last_ist.indexOf("кота") !== -1) || (last_ist.indexOf("кошку") !== -1))) { //Если есть "поднял(а)/опустил(а) кота/кошку" + console.log('В последней записи найдено "Поднял/опустил", ID жертвы:', clean_id); + let hist_str = ' ' + ((globals.clean_underscore) ? last_ist.replace(/(Подняла*|Опустила*)/, '$1') : last_ist); + if (globals.clean_id) { + hist_str += ' (' + clean_id + ')'; + } //Записать ID + if (globals.clean_status && (last_ist.indexOf("Поднял") !== -1) && statuses[clean_id] !== undefined) { + hist_str += ' ' + statuses[clean_id]; + } + if (globals.clean_location) { + hist_str += ' в локации «' + $("#location").html() + '»'; + } //Записать локацию + hist_str += '.'; + if ((globals.clean_action) && // следить за проверками + (last_ist.indexOf("Поднял") !== -1) && + (prev_prev_ist !== undefined) && // поза-позапрошлая запись есть + (prev_ist.indexOf("Отменил") !== -1) && //Отменил действие + (prev_prev_ist.indexOf("по имени") !== -1) && //Перед этим взаимодействуя с кем-то + (prev_prev_ist.indexOf("Поднял") === -1) && //Не поднял и не опустил + (prev_prev_ist.indexOf("Опустил") === -1)) { + let clean_curr_name = last_ist.match(/ по имени ([А-Яа-яЁё ]+)/u) || ['', '']; + let clean_check_name = prev_prev_ist.match(/ по имени ([А-Яа-яЁё ]+)/u) || ['', '']; + if (clean_check_name[1] !== '' && clean_check_name[1] == clean_curr_name[1]) { //Имя проверенного и имя поднятого одинаковые + let their_pol = (last_ist.indexOf("кошку") !== -1) ? 'кошку' : 'кота'; + let ur_pol = (last_ist.indexOf("Подняла") !== -1) ? 'Проверила' : 'Проверил'; + hist_str = ' ' + ur_pol + ' ' + their_pol + ' по имени ' + clean_check_name[1] + '.' + hist_str; + } + } + if (globals.clean_title && titles[clean_id]) { //Поменять на должность + hist_str = hist_str.replace(/(кота|кошку)/g, title_convert(titles[clean_id])); + } + console.log('Добавляем к истории чистки запись:', hist_str); + if ($("#location").html() != '[ Загружается… ]' && hist_str !== undefined) { //ок? + $('#cleaner_block').append(hist_str); + window.localStorage.setItem('cws_cleaner_history_log', $('#cleaner_block').html()); + } + } + prev_prev_ist = prev_ist; + prev_ist = last_ist; + } + } + }); + cleanHistObserver.observe(document.getElementById('ist'), { characterData: false, childList: true, attributes: false }); + $('#erase_cleaner').on('click', function () { + $('#cleaner_block').html("История очищена."); + window.localStorage.setItem('cws_cleaner_history_log', 'История очищена.'); + }); + }); + } + if (globals.on_treeTechies) { + if (globals.tt_notif_refresh) { + $("#ist").ready(function () { + let last_note, note_first = true; + const treeRefreshObserver = new MutationObserver(function(mutations) { + last_note = $($("#ist").html().split('.')).get(-2); //Последняя запись в истории + if (last_note !== undefined) { + if (/Услышала? оглушительн/.test(last_note) && !note_first) { + playAudio(sounds.tt_refresh, globals.sound_ttRefresh); + } + note_first = false; //История была уже прочитана 1 раз, и страница не только что загрузилась + } + }); + treeRefreshObserver.observe(document.getElementById('ist'), { characterData: false, childList: true, attributes: false }); + }); + } + $('#app').ready(function () { + $('head').append(``); + if (globals.tt_dark_theme) { + $('head').append(``); + } + if (globals.tt_show_volume) { + $('head').append(``); + } + const tt_field_def = ` + + + + +`; + let tt_fields = getSettings('tt_fields') === null ? [tt_field_def, tt_field_def, tt_field_def, tt_field_def, tt_field_def, tt_field_def, tt_field_def, tt_field_def, tt_field_def, tt_field_def, + tt_field_def, tt_field_def, tt_field_def, tt_field_def, tt_field_def, tt_field_def, tt_field_def, tt_field_def, tt_field_def, tt_field_def, + tt_field_def, tt_field_def, tt_field_def, tt_field_def + ] : JSON.parse(getSettings('tt_fields')); + let mines_html = `
    +
    Минное поле
    +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    +
    + + +
    +
    `; + for (let i = 0; i <= 3; i++) { + if (globals.tt_foldersenabledArray[i] || !i) { + mines_html += ` + `; + } + } + mines_html += `
    `; + for (let i = 0; i <= 5; i++) { + if (globals.tt_pageenabledArray[i] || !i) { + mines_html += ` + `; + } + } + for (let i = 6; i <= 23; i++) { + let k = parseInt(i / 6.0); + if (globals.tt_pageenabledArray[i] && globals.tt_foldersenabledArray[k]) { + mines_html += ` + `; + } + } + mines_html += `
    ${tt_fields[0]}
    `; + for (let i = 1; i <= 23; i++) { + if (globals.tt_pageenabledArray[i]) { + mines_html += `${tt_fields[i]}`; + } + } + mines_html += `
    `; + $('#app').append(mines_html); + let proj = false; //свитч переноса + let page = 0; //страница + let text = '0'; + let mark = 'cws-tt-safe'; + $("#cws_treeTechies").draggable({ + containment: "document", + handle: "#cws_treeTechiesHandle", + drag: function () { + let offset = $(this).offset(); + let xPos = offset.left; + let yPos = offset.top; + setSettings('tt_window_left', offset.left); + setSettings('tt_window_top', offset.top); + } + + }); + + let selFolder = getSettings('tt_selected_folder'); + if (selFolder !== null) { + if (!$('#cws_tt_folder' + selFolder).length) { + selFolder = '0'; + } + $('#cws_tt_folder' + selFolder).click(); + $('.cws-tt-page-lbl').hide(); + $('.cws-tt-page-lbl[folder=' + selFolder + ']').show(); + $('.cws-tt-page-lbl[folder=' + selFolder + ']')[0].click(); + let pageid = $('.cws-tt-page-lbl[folder=' + selFolder + ']').attr('for'); + let $pageinp = $('#' + pageid + ''); + $('.cws-tt-table[page=' + page + ']').hide(); + page = $pageinp.val(); + $('.cws-tt-table[page=' + page + ']').show(); + } + + function tt_setStyle($elem, style) { + $elem.removeClass('cws-tt-safe cws-tt-unsafe cws-tt-move').addClass(style); + if (proj) { + let col = $elem.index(); + let row = $elem.parent().index(); + $('#cages > tbody > tr').eq(row).children().eq(col).removeClass('cws-tt-safe cws-tt-unsafe cws-tt-move').addClass(style); + } + } + + function tt_draw() { + $('.cws-tt-table[page=' + page + '] td.cws-tt-safe, .cws-tt-table[page=' + page + '] td.cws-tt-unsafe, .cws-tt-table[page=' + page + '] td.cws-tt-move').each(function () { + let col = $(this).index(); + let row = $(this).parent().index(); + $('#cages > tbody > tr').eq(row).children().eq(col).addClass($(this)[0].classList.value); + /*if ($(this).hasClass('cws-tt-safe') || $(this).hasClass('cws-tt-safe-def')) { + $('#cages > tbody > tr').eq(row).children().eq(col).addClass('cws-tt-safe'); + } + else if ($(this).hasClass('cws-tt-unsafe')) { + $('#cages > tbody > tr').eq(row).children().eq(col).addClass('cws-tt-unsafe'); + } + else if ($(this).hasClass('cws-tt-move')) { + $('#cages > tbody > tr').eq(row).children().eq(col).addClass('cws-tt-move'); + }*/ + }) + } + $('body').on('change', 'input[name="cws_tt_page"]', function () { + $('.cws-tt-table[page=' + page + ']').hide(); + page = $(this).val(); + $('.cws-tt-table[page=' + page + ']').show(); + if (proj) { + $('#cages > tbody > tr > td.cws-tt-safe').each(function () { + $(this).removeClass('cws-tt-safe') + }); + $('#cages > tbody > tr > td.cws-tt-unsafe').each(function () { + $(this).removeClass('cws-tt-unsafe') + }); + $('#cages > tbody > tr > td.cws-tt-move').each(function () { + $(this).removeClass('cws-tt-move') + }); + tt_draw(); + } + }); + $('body').on('change', 'input[name="cws_tt_folder"]', function () { + let folder = $(this).val(); + setSettings('tt_selected_folder', folder); + $('.cws-tt-page-lbl').hide(); + $('.cws-tt-page-lbl[folder=' + folder + ']').show(); + $('.cws-tt-page-lbl[folder=' + folder + ']')[0].click(); + }); + $('body').on('change', 'input[name="cws_tt_cell"]', function () { + text = $(this).val(); + mark = $(this).attr('mark'); + }); + $('body').on('click', '.cws-tt-table td', function () { + $(this).html(text).removeClass('cws-tt-safe cws-tt-unsafe cws-tt-move').addClass(mark); + if (proj) { + let col = $(this).index(); + let row = $(this).parent().index(); + $('#cages > tbody > tr').eq(row).children().eq(col).removeClass('cws-tt-safe cws-tt-unsafe cws-tt-move').addClass(mark); + } + tt_fields[page] = $('.cws-tt-table[page=' + page + ']').html(); + setSettings('tt_fields', JSON.stringify(tt_fields)); + }); + $('body').on('click', '#cws_tt_clear_btn', function () { + let ok = true; + if (globals.tt_clean_confirm) { + ok = confirm('Очистить поле?'); + } + if (ok) { + $('.cws-tt-table .cws-tt-safe-def').removeClass('cws-tt-safe-def'); // remove later + $('.cws-tt-table[page=' + page + '] td:not(.cws-tt-move)').each(function () { + $(this).html(''); + tt_setStyle($(this), ''); + }); + tt_fields[page] = $('.cws-tt-table[page=' + page + ']').html(); + setSettings('tt_fields', JSON.stringify(tt_fields)); + } + }); + $('body').on('click', '#cws_treeTechiesFold', function () { + $('#cws_treeTechies').toggleClass('folded'); + $('.cws-tt-fold-minus').toggleClass('cws-tt-fold-hidden'); + $('.cws-tt-fold-plus').toggleClass('cws-tt-fold-hidden'); + }); + $('body').on('change', '#cws_tt_show', function () { + if ($(this).prop('checked')) { + proj = true; //вкл свитч переноса + tt_draw(); + } + else { + proj = false; + $('#cages > tbody > tr > td.cws-tt-safe').removeClass('cws-tt-safe'); + $('#cages > tbody > tr > td.cws-tt-unsafe').removeClass('cws-tt-unsafe'); + $('#cages > tbody > tr > td.cws-tt-move').removeClass('cws-tt-move'); + } + }); + }); + } + if (globals.on_paramInfo) { + function timeConv(sec) { + let str = ""; + let hr = parseInt(sec / 3600); + let mi = parseInt((sec - hr * 3600) / 60); + let se = parseInt(sec - (hr * 3600 + mi * 60)); + str += ((hr) ? hr + " ч " : ""); + str += ((mi) ? mi + " мин " : ""); + str += ((se) ? se + " с" : ""); + return str.trim(); + } + $('body').on('click', '#dream_table .symbole', function () { + let green = $('#dream td:first-child').attr('style').replace(/[^\d\.]/g, ''); + let moving = ($('#dream td:first-child').attr('style').indexOf('overflow') !== -1); + if (!moving) { + let perc = Math.round(green / 150 * 10000) / 100; + error(`Сонливость: ${perc}% (${green}px).${(green<150)?` Спать${(green != '0')?` примерно ${timeConv((150-green)*20)}`:` 50 мин или более`}.`:''}`); + } + }); + $('body').on('click', '#hunger_table .symbole', function () { + let green = $('#hunger td:first-child').attr('style').replace(/[^\d\.]/g, ''); + let moving = ($('#hunger td:first-child').attr('style').indexOf('overflow') !== -1); + if (!moving) { + let perc = Math.round(green / 150 * 10000) / 100; + error("Голод: " + perc + "% (" + green + "px)."); + } + }); + $('body').on('click', '#thirst_table .symbole', function () { + let green = $('#thirst td:first-child').attr('style').replace(/[^\d\.]/g, ''); + let moving = ($('#thirst td:first-child').attr('style').indexOf('overflow') !== -1); + if (!moving) { + let perc = Math.round(green / 150 * 10000) / 100; + error(`Жажда: ${perc}% (${green}px).${(green<150)?` Пить примерно ${timeConv((150-green)*60)}.`:''}`); + } + }); + $('body').on('click', '#need_table .symbole', function () { + let green = $('#need td:first-child').attr('style').replace(/[^\d\.]/g, ''); + let moving = ($('#need td:first-child').attr('style').indexOf('overflow') !== -1); + if (!moving) { + let min = (150 - green) / 2; + let perc = Math.round(green / 150 * 10000) / 100; + error(`Нужда: ${perc}% (${green}px).${(green<150)?` Справлять нужду${(green != '0')?` примерно ${timeConv(Math.trunc(min)*60)}${(Number.isInteger(min))?'':' 30 с'}`:` 1 ч 15 мин или более`}.`:''}`); + } + }); + $('body').on('click', '#clean_table .symbole', function () { + let green = $('#clean td:first-child').attr('style').replace(/[^\d\.]/g, ''); + let moving = ($('#clean td:first-child').attr('style').indexOf('overflow') !== -1); + if (!moving) { + let fleas = (green < 75) ? true : false; + let perc = Math.round(green / 150 * 10000) / 100; + let red = 150 - green; + red = (red % 3) ? red : red - 0.5; + let time = (red - 1) / 1.5 * 100 + 100; + error(`Чистота: ${perc}% (${green}px).${(green<150)?` Вылизываться ${(fleas)?'уже поздно':timeConv(time)}.`:''}`); + } + }); + } + for (let i = 0; i < globals.css_itemHighlightArray.length; i++) { + globals.css_itemHighlightArray[i] = globals.css_itemHighlightArray[i].trim(); + } + var checkItemHighlightCage = function(style_value) { + let style = (style_value || '').split(';'); + const styleBody = `content: '';position: absolute;width: 100%;height: 100%;-webkit-filter: drop-shadow(3px 3px 0px ${globals.css_itemHighlightColor}); + -moz-filter: drop-shadow(3px 3px 0px ${globals.css_itemHighlightColor});-ms-filter: drop-shadow(3px 3px 0px ${globals.css_itemHighlightColor}); + -o-filter: drop-shadow(3px 3px 0px ${globals.css_itemHighlightColor});filter: drop-shadow(3px 3px 0px ${globals.css_itemHighlightColor});`; + for (let i = 0; i < style.length; i++) { + let now = style[i].split(':'); + if (now.length == 2 && now[0] == 'background') { + let nowItems = now[1].split(','); + let nowItemsGenerated = []; + let nowUniqueKey = 'cws_itemHighlight'; + for (let j = 0; j < nowItems.length; j++) { + let nowItem = nowItems[j]; + let nowItemType = ((nowItem.match(/things\/(\d+)\.png/u) || ['', 0])[1]) + ''; + nowUniqueKey += '_' + nowItemType; + if (globals.css_itemHighlightArray.includes(nowItemType)) { + nowItemsGenerated.push(nowItem); + } + } + if (nowItemsGenerated.length) { + if (!$('#' + nowUniqueKey).length) { + if (globals.on_css_itemHighlight_data == undefined) { + globals.on_css_itemHighlight_data = ''; + } + const data = ``; + globals.on_css_itemHighlight_data += data; + $('head').append(data); + } + } + } + } + } + var itemHighlightObserver = new MutationObserver(function(mutations) { + mutations.forEach(function(mutationRecord) { + checkItemHighlightCage(mutationRecord.target.attributes.style.value); + }); + }); + if (globals.on_css_itemHighlight) { + for (let target of document.getElementsByClassName('cage_items')) { + itemHighlightObserver.observe(target, { attributes : true, attributeFilter : ['style'] }); + } + } + const css_texts = { + 'on_csslocation': ``, + 'on_css_cellshade': ``, + 'on_css_removesky': ``, + 'on_css_oldicons': ``, + 'on_css_coloredparam': ``, + 'on_css_highlightmove': ``, + 'on_css_maxopacity': ``, + 'on_css_hideTooltip': ``, + 'on_css_daylight': ``, + 'on_css_defects': ``, + 'on_css_defects_dirt': ``, + 'on_css_hideChat': ``, + 'on_css_itemHighlight' : ``, + }; + $.each(css_texts, function (index, value) { + if (globals[index]) { + $('head').append(css_texts[index]); + if (globals[index + '_data']) { + $('head').append(globals[index + '_data']); + } + } + }); + + if (globals.on_css_quicksettings) { + addCSS(`#cws_quick_settings_block {user-select:none;}`); + $('#family').append(`

    Настройки CW:S

    +
    +${globals.on_treeTechies?`
    `:''} +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    + +
    `); + $('body').on('change', '#on_treeTechies', function () { + $('#cws_treeTechies').toggleClass('hidden'); + }); + $('body').on('change', '.cwa-chk', function () { + let id = $(this).attr('id'); + let ischkd = $(this).prop('checked'); + if (ischkd) { + $('head').append(css_texts[id]); + if (globals[id + '_data']) { + $('head').append(globals[id + '_data']); + } + if (id == 'on_css_itemHighlight') { + itemHighlightObserver.disconnect(); + for (let target of document.getElementsByClassName('cage_items')) { + itemHighlightObserver.observe(target, { attributes : true, attributeFilter : ['style'] }); + } + $('.cage_items').each(function() { + checkItemHighlightCage($(this).attr('style')); + }); + } + } else { + $('#cwsstyle_' + id + ', .' + id).remove(); + if (id == 'on_css_itemHighlight') { + itemHighlightObserver.disconnect(); + } + } + setSettings(id, ischkd); + }); + } + } + + function myCat() { + $(document).ready(function () { + let id = $('#pr table tr:first-child td:last-child a').attr('href').replace('cat', ''); + setSettings('thine', id); + }); + if (globals.on_deletionWarning) { + const id = +($('#id_icon').parent().parent().children().last().text()); + const moons = +($('#age_icon').parent().parent().children().last().text().replace(/[^\d\.]/ig, '')); + const age = Math.floor(moons * 4 * 86400 * 1000); + let date = new Date(); + date.setTime(date.getTime() + (date.getTimezoneOffset() + 180) * 60 * 1000 - age - 86400 * 1000); + // Текущая дата по московскому времени минус возраст и минус дополнительные сутки из-за того, что регистрация в ночное время + // может калькулировать возраст по лунам на день позже + const dateNow = new Date(); + dateNow.setTime(dateNow.getTime() + (dateNow.getTimezoneOffset() + 180) * 60 * 1000); + const obj = {}; + setSettings(`reg_${id}`, JSON.stringify({ + regTime: Math.floor(date.getTime() / 1000), + lastOnline: Math.floor(dateNow.getTime() / 1000) + })); + } + if (!globals.charListArray || !globals.charListArray.length) { //Если массив ни разу не заполнялся + $(document).ready(function () { + let autoCCArr = []; + $('a[href*="/login2?"]').each(function () { + let id = $(this).attr('href').split('=')[1]; + let name = $(this).html(); + if (id && name) { + autoCCArr.push({ + 'id': id, + 'name': name + }); + } + }); + let id = $('#pr a[href*="cat"] > b').html(); + let name = $('#pr > big').html(); + if (id && name) { + autoCCArr.push({ + 'id': id, + 'name': name + }); + } + window.localStorage.setItem('cws_sett_charListArray', JSON.stringify(autoCCArr)); + }); + } + } + + function profile() { + $.getJSON("https://cat.nyan404.ru/data/river_achievements.json?" + Date.now(), function (data) { + const achievements = data, + elem = ``, + inner = `Ачивка "{name}" +
    Тип: {type}
    +{condition}`; + const top_el_id = isDesktop ? '#branch' : '#site_table'; + let $achievement = $(`${top_el_id} > .parsed:first tbody > tr img[src*="i.yapx.cc"], ` + + `${top_el_id} > .parsed:first > img[src*="i.yapx.cc"], ` + + `${top_el_id} > .parsed:first tbody > tr img[src*="i.ibb.co"], ` + + `${top_el_id} > .parsed:first > img[src*="i.ibb.co"]`), + $body = $('body'), + old_code = ""; + const linkRegex = /(i\.yapx\.cc\/([\w\d]+)\.png|i\.ibb\.co\/([\d\w]+\/[\d\w_-]+)\.png)/; + $(document).ready(function () { + $achievement.last().after(elem); + $achievement.each(function (index) { // Добавить титул к каждой ачивке + let code = $(this).attr('src').match(linkRegex); + if (code !== null) { + code = code[2] || code[3]; + let name = (achievements[code] === undefined) ? "" : achievements[code].name; + $(this).prop('title', name); + } + }); + $achievement.on('click', function () { // инфоблок + let code = $(this).attr('src').match(linkRegex); + if (code !== null) { + code = code[2] || code[3]; + if (code == old_code && $('#cws_achievement').css('display') != 'none') { + $('#cws_achievement').hide(200); + } + else if (achievements[code] !== undefined) { + let this_achievement = achievements[code]; + let info = inner + .replace("{name}", this_achievement.name) + .replace("{type}", this_achievement.type) + .replace("{condition}", this_achievement.condition); + $('#cws_achievement').html(info).show(200); + old_code = code; + } + } + }); + }); + }); + } + + function dm() { //ЛС игрока + if (globals.on_idDM) { + function add_id() { + let id = $('#msg_login').attr('href'); + if (id !== undefined) { + id = id.replace(/\D/ig, ''); + $(' [' + id + ']').insertAfter($('#msg_login')); + } + } + $(document).ready(function () { + add_id(); // on load + $('#main').bind("DOMSubtreeModified", function () { + if (!$('#cws_msg_id').length) { + add_id(); // on click + } + }); + }); + } + } + + function hunt() { + if (globals.on_css_bghuntpic) { + $('head').append(``); + } + if (!isDesktop) { + if (globals.on_huntMobileBtns) { + addCSS(`#select_type:after { + content: " (переверните телефон на бок)"; + font-style: italic; +} +#select_type { + width: 80%; + margin-left: 10%; + margin-top: 5%; + text-align: center; +} +input { + left: 5%; + width: 90%; +} +#cws_buttons { + position: absolute; + top: 10px; + left: 0px; +} +.mod_btn { + position: absolute; + z-index: 9999; + font-family: Verdana; + font-size: 2.5em; + height: 1.5em; + width: 1.5em; + border-radius: 5em; + background-size: 75% !important; + background: #333 center no-repeat; + color: white; + opacity: .8; + bottom:0;right:0; + user-select: none; + text-align: center; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; +} +#w_btn { + top: 0em; + left: 2.25em; + background-image: url('https://i.imgur.com/y0e39Ai.png'); +} +#d_btn { + top: 2.3em; + left: 4.25em; + background-image: url('https://i.imgur.com/g6WcMvn.png'); +} +#a_btn { + top: 2.3em; + left: .25em; + background-image: url('https://i.imgur.com/JgywWPS.png'); +} +#s_btn { + top: 4.6em; + left: 2.25em; + background-image: url('https://i.imgur.com/BPRewfC.png'); +} +#q_btn { + top: .7em; + left: .75em; + background-image: url('https://i.imgur.com/JgywWPS.png'); +} +#e_btn { + top: .7em; + left: 3.75em; + background-image: url('https://i.imgur.com/y0e39Ai.png'); +} +#z_btn { + top: 3.9em; + left: .75em; + background-image: url('https://i.imgur.com/BPRewfC.png'); +} +#x_btn { + top: 3.9em; + left: 3.75em; + background-image: url('https://i.imgur.com/g6WcMvn.png'); +} +#q_btn, #e_btn, #x_btn, #z_btn {transform: rotate(45deg);} +#oben, #links, #rechts, #unten {display: none;}`); + $("#main").ready(function () { + $("#main").append(`
    + + + + + + +
    `); + $('.mod_btn').on("mousedown touchstart", function (e) { + e.preventDefault(); + let code = $(this).data('code'); + $('#main').trigger( + jQuery.Event('keydown', { + keyCode: code, + which: code + }) + ); + }); + $('.mod_btn').on("mouseup touchend", function (e) { + e.preventDefault(); + let code = $(this).data('code'); + $('#main').trigger( + jQuery.Event('keyup', { + keyCode: code, + which: code + }) + ); + }); + }); + } + if (globals.on_huntMobileFix) { + addCSS(`body { + position: fixed; + height: 100%; + width: 100%; + transform: scale(.8); +} +html { + height: 100%; + width: 100%; +} +#smell { + position: absolute; + bottom: calc(10px - 10%); + left: -10%; +} +#cws_buttons { + position: absolute; + top: calc(10px - 12.5%); + left: -12.5%; + transform: scale(.9); +}`); + } + } + + if (globals.on_huntText) { + addCSS(`#smell { + text-align: center; + display:flex; + flex-direction: column; + align-items:center; + justify-content:center; + } + #cws_hunt_txt { + background-color: white; +height: 2.3em; + } +#cws_timer, #cws_hunt_txt {width: 100%;}`); + + let color_old = -1; + setInterval(function () { + if ($('#smell').attr('style')) { + if (!$('#cws_hunt_txt').length) { + $('#smell').append('
    00:00
    ') + } + let color_new = parseInt($('#smell').css('background-color').split('(').pop().split(',')[0]); + let a = color_new - color_old + if (color_old != -1) { + let text = (a < 0) ? "Дальше" : "Ближе"; + if (color_new === 0) text = "Слишком далеко"; + if ((a !== 0) || (color_new === 0 && !$('#cws_hunt_txt').html())) $('#cws_hunt_txt').html(text); + } + color_old = color_new; + } + }, 100); + setInterval(function () { + if ($('#cws_timer').length) { + let sec = parseInt($('#cws_timer').data('sec')), + min; + $('#cws_timer').data('sec', ++sec); + min = parseInt(sec / 60); + sec = sec - min * 60; + $('#cws_timer').text(leadZero(min) + ':' + leadZero(sec)); + } + }, 1000); + } + } + + function blog() { + if (globals.on_reports) { + $(document).ready(function () { + addCSS(`.inp-button {background-color: #333;color: #fff;border: 1px solid #000;font-family: Verdana;font-size: .9em;}`); + const blogID = +(pageurl.replace(/\D/g, '')); + let date; + date = new Date(); + date.setTime(date.getTime() + (date.getTimezoneOffset() + 180) * 60 * 1000); + const date_str = date.getFullYear() + '-' + leadZero(date.getMonth() + 1) + '-' + leadZero(date.getDate()); + let my_id_div = `
    Ваш ID: 
    `; + + function rememberMyID(my_id) { + if ($('#remember_id').prop('checked') && !isNaN(my_id) && my_id) { // запомнить + setSettings('my_id', my_id); + } + } + addCSS(`/*.cws_tabs_content { display: none; } .cws_tabs_content.active { display: block; }*/ +.cws_tabs_caption { + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-flex-wrap: wrap; + -ms-flex-wrap: wrap; + flex-wrap: wrap; + list-style: none; + position: relative; + margin: 0; + padding-inline-start:0px; +} +.cws_tabs_caption li { + padding: 1px 12px; + margin: 0 2px 0 0; + background: #333; + color: #FFF; + position: relative; + border: solid #000; + border-width: 1px; + text-align: center; +} +.cws_tabs_caption li:not(.active) { + cursor: pointer; +} +.cws_tabs_caption li:not(.active):hover { + background: #444; + border-color: #666; +} +.cws_tabs_caption .active { + background: #444; + color: #fff; + border-color: #666; +}`); + /*РЕКА*/ + if (blogID == 13664) { // Охрана границ + let patr_time = 21, + doz_time = leadZero(date.getHours()), + patr_date = new Date(date), + doz_date = new Date(date); + let hour = date.getHours(), + minute = date.getMinutes(); + if (hour < 12) { + patr_date.setDate(patr_date.getDate() - 1); + } // yesterday + if (hour >= 12) { + patr_time = 12; + } + if (hour >= 15) { + patr_time = 15; + } + if (hour >= 18) { + patr_time = 18; + } + if (hour >= 21) { + patr_time = 21; + } + const patr_date_str = patr_date.getFullYear() + '-' + leadZero(patr_date.getMonth() + 1) + '-' + leadZero(patr_date.getDate()); + $('#send_comment').append(` +
    +

    Автоматическое заполнение отчётов

    +
    +${my_id_div} +
    +
    +
      +
    • Дозор
    • +
    • Патруль
    • +
    + +
    +
    +

    Дозор

    + + +
    Дата начала:
    +
    + +
    +
    +
    +

    Исключения из дозора

    + + + + + + + + + + + + + +
    Дата начала:
    Время начала:
    Освобождён: + + +
    Нарушение: + + + +
    + + + +
    +
    + + +
    `); + $('#r03_patr').on('click', function (e) { + let myid = parseInt($('#cws_blog_myid').val()); // id пишущего отчет + rememberMyID(myid); + myid = (isNaN(myid)) ? 'Некорректный ID ведущего' : masking(myid, '[cat%ID%] [%ID%]'); + let mar = $('.cws-input[name=r03_patr_mar]:checked').val(); + if (mar === undefined) { + mar = 'Не выбран маршрут'; + } + let arr_members = strToArr($('#cws_patr_members').val()); + let id_arr = []; + let name_error = false; // ошибка в имени участника + arr_members.forEach((element) => { + let name = element.trim(); + let tmp = nameToID(name); + if (parseInt(tmp)) { + id_arr.push(name + ' [' + tmp + ']'); + } + else { + name_error = true; + } + }) + let date = splitDateStr($("#r03_patr_date").val()); // дата + let hr = parseInt($("#r03_patr_time").val().split(":")[0]); + let txt = `[u][b]Патруль[/b][/u] +[b]Дата и время:[/b] ${date.day}.${date.month}, ${leadZero(hr)}:00; +[b]Маршрут:[/b] ${mar}; +[b]Ведущий:[/b] ${myid}; +[b]Участники:[/b] ${id_arr.join(', ')};`; + if (name_error) { + txt += `\n! ! ! В отчёте какая-то ошибка с именем (минимум одно из имён не было найдено). Проверьте его перед тем, как отправить.` + } + let val = $('#comment').val(); + if (val) { + val += "\n\n"; + } + $('#comment').val(val + txt).scrollintoview(); + }); + $('#r03_doz').on('click', function (e) { + let date = splitDateStr($("#r03_doz_date").val()), + txt = '[u][b]Дозор[/b][/u]\n[b]Дата:[/b] ' + date.day + '.' + date.month + ';\n[b]Время:[/b] ', + my_id = parseInt($('#cws_blog_myid').val()), + som_text = $('#r03_doz_text').val().trim(), + name_error = false, + locations = [], + time, + nextTime, + sign, + found, + pattern, + places = { + "КЗ": "Камышовые заросли", + "ТБ": "Травянистый берег", + "РЛ": "Редколесье", + "РО": "Разрушенная ограда", + "РД": "Расколотое дерево", + "ЛР": "Лесной ручеёк", + "ВЛ": "Валежник", + "ИТ": "Илистая тропа", + "ОС": "Одинокий склон", + "НК": "Нагретые камни", + "ДБ": "Дубрава", + "МЗ": "Мшистые земли", + "ГТ": "Главный туннель", + "01": "Активный 1", + "02": "Активный 2", + "03": "Активный 3", + "04": "Активный 4" + }; + rememberMyID(my_id); + time = som_text.match(/^(\d{2}) *([\+-])/i); + if (time === null) { + let val = $('#comment').val(); + if (val) { + val += "\n\n"; + } + $('#comment').val(val + '! ! ! Отчёт обязательно должен начинаться с двух цифр (час сбора) и знака (+ или -).'); + return; + } + sign = time[2]; + time = parseInt(time[1]); + nextTime = (time == 23) ? 0 : time + 1; + txt += leadZero(time) + ':00-' + leadZero(nextTime) + ':00;\n'; + my_id = (isNaN(my_id)) ? 'Некорректный ID собирающего' : masking(my_id, '[cat%ID%] [%ID%]'); + txt += '[b]Собирающий:[/b] ' + my_id + '.\n[b][u]Участники[/u][/b]\n'; + if (sign == '+') { + som_text = som_text.replace(/^(\d{2}) *([\+-])[^\n]*\n|\. *$|; *$|, *$/ig, ''); + som_text = som_text.replace(/\. *\n|, *\n|; *\n/ig, '\n'); + som_text = som_text.replace(/\n(\d):/ig, '\n0$1:'); + som_text = som_text.replace(/^(\d):/ig, '0$1:'); + $.each(places, function (short_name, full_name) { + pattern = new RegExp('\n*' + short_name + ': *([^\n]+)', "i"); + if (found = som_text.match(pattern)) { + let name_arr = found[1].split(','), + id_arr = [], + tmp_arr = []; + $.each(name_arr, function (index, name) { + let tmp = nameToID(name.trim()); + if (parseInt(tmp)) { + //id_arr.push(masking(tmp, '[cat%ID%] [%ID%]')); + id_arr.push(name + ' [' + tmp + ']'); + } + else { + id_arr.push(name_arr[index] + ' [?]'); + name_error = true; + } + }); + locations.push('[b]' + full_name + ':[/b] ' + id_arr.join(', ')); + } + }); + txt += locations.join(';\n') + '.'; + } + else { + txt += 'Нет.' + } + if (name_error) { + txt += `\n! ! ! В отчёте какая-то ошибка с именем (одно из имён не было найдено). Проверьте его перед тем, как отправить.` + } + let val = $('#comment').val(); + if (val) { + val += "\n\n"; + } + $('#comment').val(val + txt).scrollintoview(); + }); + $('#r03_doz_nar').on('click', function (e) { + let date = splitDateStr($("#r03_doz_nar_date").val()), + hr = parseInt($("#r03_doz_nar_time").val().split(":")[0]), + next_hr = (hr == 23) ? 0 : hr + 1, + txt = '[u][b]Дозор[/b][/u]\n[b]Дата:[/b] ' + date.day + '.' + date.month + ';\n[b]Время:[/b] ' + leadZero(hr) + ':00-' + leadZero(next_hr) + ':00'; + let free_arr = [], + nar_arr = []; + $('.r03-doz-nar-free-wrap').each(function () { + let free = $(this).find($('input.r03-doz-nar-free')).val(); + if (free) { + if (isNaN(parseInt(free))) { + free = nameToID(free.trim()); + } + free = masking(free, '[cat%ID%] [%ID%]'); + free_arr.push(free); + } + }); + $('.r03-doz-nar-wrap').each(function () { + let name = $(this).find($('input.r03-doz-nar-narname')).val(), + reason = $(this).find($('select.r03-doz-nar-narreas')).val(); + if (name) { + if (isNaN(parseInt(name))) { + name = nameToID(name.trim()); + } + name = masking(name, '[cat%ID%] [%ID%]'); + nar_arr.push(name + ' (' + reason + ')'); + } + }); + if (free_arr.length) { + txt += ';\n[b]Освобождены:[/b] ' + free_arr.join(', '); + } + if (nar_arr.length) { + txt += ';\n[b]Нарушения:[/b] ' + nar_arr.join(', '); + } + txt += '.'; + let val = $('#comment').val(); + if (val) { + val += "\n\n"; + } + $('#comment').val(val + txt).scrollintoview(); + // $("#comment").scrollintoview(); + }); + $('#r03_doz_nar_block').on('click', '.add-field', function (e) { + let max_children = 5; + let data_id = $(this).data('id'), + template = $('#' + data_id)[0]; + let $fields = $('.' + data_id); + let last_e = $fields[$fields.length - 1]; + if ($fields.length < max_children) { + let clone = document.importNode(template.content, true); + let add = $(clone).insertAfter(last_e); + $(last_e).find($('.add-field')).css('display', 'none'); + } + }); + $('#r03_doz_nar_block').on('click', '.del-field', function (e) { + let data_id = $(this).data('id'); + $(this).closest($('.' + data_id)).remove(); + + let $fields = $('.' + data_id); + let last_e = $fields[$fields.length - 1]; + $(last_e).find($('.add-field')).css('display', 'inline-block'); + }); + } + + if (blogID == 13219) { // чистильщики + $('#send_comment').append(` +
    +

    Автоматическое заполнение отчётов

    +
    +${my_id_div} +
    +
    + +
    +
    +
    + Автоматическое составление отчёта через историю, сгенерированную модом. ВСЯ история должна придерживаться одного вида, включая такие опции, как: +
      +
    • ID поднятого/опущенного;
    • +
    • должность поднятого/опущенного;
    • +
    • статус поднятого;
    • +
    • локацию, в которой кот был поднят/опущен.
    • +
    +
    +
    + +
    +
    +
    + +`); + $('#r03_clean1').on('click', function () { + let expr_pickup = new RegExp('(Подняла? ([А-яЁё ]+) по имени [А-яЁё ]+ \\((\\d+)\\) (\\[[А-яЁё ]+\\]) в локации «([А-яЁё ]+)»\\.|Опустила? на землю ([А-яЁё ]+) по имени [А-яЁё ]+ \\((\\d+)\\) в локации «([А-яЁё ]+)»\\.)', "ig"); + let text = $('#r03_clean_text').val(); + let group = $('#cws_clean_grp').val(); + let match_pickup = Array.from(text.matchAll(expr_pickup)); + let good_cats = {}; + let current_cats = []; + const titles = { + "котёнка": "Котята", + "оруженосца": "ОВ", + "воителя": "ОВ", + "воительницу": "ОВ", + "королеву": "ОВ", + "старшего воителя": "ОВ", + "старшую воительницу": "ОВ", + }; + const places_from = { + "Камышовая поляна": "Лагерь", + "Мшистая полянка": "Лагерь", + "Поляна для сна": "Лагерь", + + "Тенистая поляна": "Подлагерь", + "Дальний уголок": "Подлагерь", + "Грязное место": "Подлагерь", + "Куча с добычей": "Подлагерь", + "Старый вяз": "Подлагерь", + "Полянка для игр": "Подлагерь", + "Лужайка для игр": "Подлагерь", + "Окутанный тайнами лужок": "Подлагерь", + + "Неглубокий ручей": "Номерные", + "Детская": "Номерные", + "Палатка оруженосцев": "Номерные", + "Палатка воителей": "Номерные", + + "Поляна для тренировок": "Поляна для Тренировок [ПДТ]", + "Юркая ложбинка": "Поляна для Тренировок [ПДТ]", + "Лужайка, скрытая листвой": "Поляна для Тренировок [ПДТ]", + "Боевая поляна": "Поляна для Тренировок [ПДТ]", + "Местечко для тренировок": "Поляна для Тренировок [ПДТ]", + "Пещера острых клыков": "Поляна для Тренировок [ПДТ]", + "Пещера танцующих когтей": "Поляна для Тренировок [ПДТ]", + "Расцарапанные камушки": "Поляна для Тренировок [ПДТ]", + "Покинутая вороном лужайка": "Поляна для Тренировок [ПДТ]", + "Просторное местечко": "Поляна для Тренировок [ПДТ]", + "Тренировочный овраг": "Поляна для Тренировок [ПДТ]", + + "Камышовые заросли": "КЗ", + + "Галечный берег": "Лес", + "Плакучая ива": "Лес", + "Шелестящий тростник": "Лес", + "Торфяник": "Лес", + "Междуречье": "Лес", + "Скользкие камни": "Лес", + "Травянистый берег": "Лес", + "Грохочущая тропа Двуногих": "Лес", + "Редколесье": "Лес", + "Илистая тропа": "Лес", + "Разрушенная ограда": "Лес", + "Лесной ручеёк": "Лес", + "Расколотое дерево": "Лес", + "Граница между Ветром и Рекой": "Лес", + "Граница между Тенями и Рекой": "Лес", + "Пруд ужей": "Лес", + "Нагретые камни": "Лес", + "Одинокий склон": "Лес", + "Дубрава": "Лес", + + "Лягушатник": "Лес", + "Мелководье": "Лес", + "Тёплый ручеёк": "Лес", + "Приток": "Лес", + "Тихие воды": "Лес", + "Плоские валуны": "Лес", + "Воды у корней старой ивы": "Лес", + "Глубокие воды": "Лес", + "Ледяная вода": "Лес", + "Течение": "Лес", + "Устье реки": "Лес", + "Спокойный поток": "Лес", + "Каменная гряда": "Лес", + + "Тихий берег": "Нейтралки", + "Заросший берег": "Нейтралки", + "Пологий берег": "Нейтралки", + "Каменистый берег": "Нейтралки", + "Поваленное дерево": "Нейтралки", + "Остров Советов": "Нейтралки", + "Скалистые холмы": "Нейтралки", + "Лунный ручей": "Нейтралки", + "Лунный камень": "Нейтралки", + "Предгорья": "Нейтралки", + "Горы": "Нейтралки", + "Туннели": "Нейтралки", + "Ярусы сомнения": "Нейтралки", + "Воющие коридоры": "Нейтралки", + }; + const bad_statuses = ["[ На удалении ]", "[ Заблокирован ]", "[ В подстилках ]"]; + const good_statuses = ["[ В игре ]", "[ Недавно ушёл ]", "[ Недавно ушла ]"]; + $.each(match_pickup, function (index, value) { + if (value[2] !== undefined) { // Поднятие: 2 должность, 3 статус, 4 айди, 5 локация + let id = value[3], + title_grp = titles[value[2]], + place = value[5]; + if (bad_statuses.includes(value[4]) + || group == "II группа" && ["Плакучая ива", "Галечный берег"].includes(place)) { + title_grp = "Заблокированные"; + } + place = (places_from[place]) ? places_from[place] : place; + if (place !== undefined && (value[4] == "[ Спит ]" || title_grp == "Заблокированные")) { + current_cats[id] = { + "title_grp": title_grp, + "place": place + }; + } + } else { // Опускание: 6 должность, 7 айди, 8 локация + let id = value[7]; + if (current_cats[id] !== undefined) { + let title_grp = current_cats[id].title_grp, + place = current_cats[id].place; + if (good_cats[place] === undefined) { + good_cats[place] = {}; + good_cats[place]["ОВ"] = []; + good_cats[place]["Котята"] = []; + good_cats[place]["Заблокированные"] = []; + } + if (good_cats[place][title_grp]) { + good_cats[place][title_grp].push(id); + } + current_cats[id] = undefined; + } + } + }); + let my_id = parseInt($('#cws_blog_myid').val()); + let my_id_mask = (isNaN(my_id)) ? 'Некорректный ID' : masking(my_id, '[cat%ID%] [%ID%]'); + let report = `1. ${my_id_mask}.\n2. ${group}.\n`; + if (group == "III группа") { + report += `3. [b]Л:[/b] — предупрежден(-ы)\n[b]КЗ:[/b] — предупрежден(-ы)`; + } else { + report += `3. `; + $.each(good_cats, function (place, groups) { + if (group == "II группа") { + report += `[b]${place}:[/b] `; + let list = []; + let list_blocked = []; + $.each(groups, function (victim_group, arr) { + if (victim_group == "Заблокированные") { + list_blocked = list_blocked.concat(arr); + } else { + list = list.concat(arr); + } + }); + report += `${list.join(' ')}\n`; + if (list_blocked.length) { + report += `[u]${list_blocked.join(' ')}[/u]\n`; + } + } else { + report += `[b]${place}:[/b]\n`; + $.each(groups, function (victim_group, arr) { + if (arr.length) { + if (victim_group == "Заблокированные") { + report += `[u]${arr.join(' ')}[/u]\n`; + } else { + report += `${victim_group}: ${arr.join(' ')}\n`; + } + } + }); + } + }); + } + if (group == "I группа" || group == "II группа") { + report += `4. [header=${my_id}]История[/header][block=${my_id}]${text}[/block]`; + } + $('#comment').val(report).scrollintoview(); + }); + } else if (blogID == 24395) { // хранители трав + let patr_date = new Date(date), + hour = date.getHours(); + if (hour < 12) { + patr_date.setDate(patr_date.getDate() - 1); + } + let type = "веточник"; + if (hour < 12 || hour >= 17) { + type = "мховник"; + } else if (hour == 16) { + type = "травник"; + } + const patr_date_str = patr_date.getFullYear() + '-' + leadZero(patr_date.getMonth() + 1) + '-' + leadZero(patr_date.getDate()); + my_id_div= `
    Ваш ID (+кол-во трав): 
    `; + + $('#send_comment').append(` +
    +

    Автоматическое заполнение отчётов

    +
    +${my_id_div} +
    +

    Патруль

    +Вид: + + + + + +
    Дата начала:
    +
    + Список участников, исключая вас, разделяя запятой (в конце ставьте число принесённых трав): + +
    + +`); + $('#r03_herb').on('click', function (e) { + let lead = $('#cws_blog_myid').val().split(' '); + let myid = parseInt(lead[0]); + let leadherb = +(lead[1].replace(/\D+/ig, '')); + rememberMyID(myid); + myid = (isNaN(myid)) ? 'Некорректный ID ведущего' : masking(myid, `[cat%ID%] [%ID%] (${leadherb})`); + let mar = $('.cws-input[name=r03_patr_mar]:checked').val(); + mar = mar || 'Не выбран вид'; + let arr_members = strToArr($('#cws_patr_members').val()); + let id_arr = []; + let not_found = []; + let name_error = false; + arr_members.forEach((element) => { + let entry = element.trim().match(/([А-яЁё ]+) \(?(\d+)\)?/i); + let name = entry[1]; + let herb = entry[2]; + let tmp = nameToID(name); + if (parseInt(tmp)) { + id_arr.push(`${name} [${tmp}] (${herb})`); + } else { + name_error = true; + not_found.push(name); + } + }) + let date = splitDateStr($("#r03_patr_date").val()); + date.year = date.year.slice(2, 4); + let txt = `[b]Дата:[/b] ${date.day}.${date.month}.${date.year}; +[b]Тип травника:[/b] ${mar}; +[b]Ведущий:[/b] ${myid}; +[b]Участники:[/b] ${id_arr.length ? id_arr.join(', ') : "-"}.`; + if (name_error) { + txt += `\n! ! ! В отчёте ошибка со следующими именами (не были найдены или не соответствуют формату): ${not_found.join(', ')}. Проверьте его перед тем, как отправить.` + } + let val = $('#comment').val(); + if (val) { + val += "\n\n"; + } + $('#comment').val(val + txt).scrollintoview(); + }); + + } else if (blogID == 51844) { // охотники + let patr_date = new Date(date), + hour = date.getHours(); + if (hour < 13) { + patr_date.setDate(patr_date.getDate() - 1); + } + let type = "вечерняя"; + if (hour >= 13 && hour < 19) { + type = "утренняя"; + } + const patr_date_str = patr_date.getFullYear() + '-' + leadZero(patr_date.getMonth() + 1) + '-' + leadZero(patr_date.getDate()); + $('#send_comment').append(`
    +

    Автоматическое заполнение отчётов

    +
    +${my_id_div} +
    +

    Патруль

    +
    +Вид: + + +
    +
    + Место охоты: + + + + +
    + + +
    Дата начала:
    +
    + Список охотников, исключая вас, разделяя запятой (если было принесено меньше 5 дичи, указывайте это цифрой в конце): + +
    +
    + Список таскающих, разделяя запятой: + +
    + +`); + + $('#r03_hunt').on('click', function (e) { + let lead = $('#cws_blog_myid').val(); + let myid = parseInt(lead); + rememberMyID(myid); + myid = (isNaN(myid)) ? 'Некорректный ID ведущего' : masking(myid, '[cat%ID%] [%ID%]'); + let mar = $('.cws-input[name=r03_patr_mar]:checked').val(); + mar = mar || 'Не выбран вид'; + let loc = $('.cws-input[name=r03_patr_loc]:checked').val(); + loc = loc || 'Не выбрана локация'; + let str_hunters = strToArr($('#cws_patr_hunters').val()), + str_carriers = strToArr($('#cws_patr_carriers').val()), + id_hunters = [], + id_carriers = [], + not_found = [], + not_clan = []; + let name_error = false, clan_error = false; + str_hunters.forEach((element) => { + let entry = element.trim().match(/([А-яЁё ]+) ?\(?(\d+)?\)?/i), + name = entry[1], + hunt = entry[2] || 5, + tmp = nameToIDFiltered(name, "Речное племя"); + if (parseInt(tmp)) { + if (tmp != -1) { + id_hunters.push(`${name} [${tmp}] (${hunt})`); + } else { + clan_error = true; + not_clan.push(name); + } + } else { + name_error = true; + not_found.push(name); + } + }); + str_carriers.forEach((element) => { + let name = element.trim(), + tmp = nameToIDFiltered(name, "Речное племя"); + if (parseInt(tmp)) { + if (tmp != -1) { + id_carriers.push(`${name} [${tmp}]`); + } else { + clan_error = true; + not_clan.push(name); + } + } else { + name_error = true; + not_found.push(name); + } + }); + let date = splitDateStr($("#r03_patr_date").val()); + date.year = date.year.slice(2, 4); + let txt = `[b][u]Дата[/u]:[/b] ${date.day}.${date.month}.${date.year}; +[b]Вид:[/b] ${mar}; +[b]Место охоты:[/b] ${loc}; +[b]Ведущий:[/b] ${myid} (5); +[b]Участники:[/b] ${id_hunters.length ? id_hunters.join(', ') : "-"}; +[b]Таскающие:[/b] ${id_carriers.length ? id_carriers.join(', ') : "-"};`; + if (name_error) { + txt += `\n! ! ! В отчёте ошибка со следующими именами (не были найдены или не соответствуют формату): ${not_found.join(', ')}. Проверьте его перед тем, как отправить.` + } + if (clan_error) { + txt += `\n! ! ! В отчёте ошибка со следующими котиками (они не находятся в вашем племени, зачем вы их сюда пишете?): ${not_clan.join(', ')}. Проверьте его перед тем, как отправить.` + } + let val = $('#comment').val(); + if (val) { + val += "\n\n"; + } + $('#comment').val(val + txt).scrollintoview(); + }); + } + $('ul.cws_tabs_caption').on('click', 'li:not(.active)', function () { + $(this) + .addClass('active').siblings().removeClass('active') + .closest('div.cws_tabs').find('div.cws_tabs_content').removeClass('active').slideUp(200) + .eq($(this).index()).addClass('active').slideDown(200); + }); + }); + } + } + + function cumoves() { + const notes = getSettings('cuMovesNote') || ''; + const p = `

    Заметки:

    `; + $('#branch').append(p); //text + $('#cws_moves_note').val(notes); + $('#cws_moves_note').on('input', function () { + setSettings('cuMovesNote', $(this).val()); + }); + } + + function sett() { + $('head').append(``); + const pattern = globals.css_cp_pattern ? 'url(https://i.imgur.com/V4TX5Cv.png), ' : ''; + let css_coloredparam_example = `#dream .bar-fill {background:${pattern}linear-gradient(0.25turn, ${globals.css_cp_colors[0]}, ${globals.css_cp_colors[1]});} +#dream .bar {background:${pattern}linear-gradient(0.25turn, ${globals.css_cp_colors[2]}, ${globals.css_cp_colors[3]});} +#hunger .bar-fill {background:${pattern}linear-gradient(0.25turn, ${globals.css_cp_colors[4]}, ${globals.css_cp_colors[5]});} +#hunger .bar {background:${pattern}linear-gradient(0.25turn, ${globals.css_cp_colors[6]}, ${globals.css_cp_colors[7]});} +#thirst .bar-fill {background:${pattern}linear-gradient(0.25turn, ${globals.css_cp_colors[8]}, ${globals.css_cp_colors[9]});} +#thirst .bar {background:${pattern}linear-gradient(0.25turn, ${globals.css_cp_colors[10]}, ${globals.css_cp_colors[11]});} +#need .bar-fill {background:${pattern}linear-gradient(0.25turn, ${globals.css_cp_colors[12]}, ${globals.css_cp_colors[13]});} +#need .bar {background:${pattern}linear-gradient(0.25turn, ${globals.css_cp_colors[14]}, ${globals.css_cp_colors[15]});} +#health .bar-fill {background:${pattern}linear-gradient(0.25turn, ${globals.css_cp_colors[16]}, ${globals.css_cp_colors[17]});} +#health .bar {background:${pattern}linear-gradient(0.25turn, ${globals.css_cp_colors[18]}, ${globals.css_cp_colors[19]});} +#clean .bar-fill {background:${pattern}linear-gradient(0.25turn, ${globals.css_cp_colors[20]}, ${globals.css_cp_colors[21]});} +#clean .bar {background:${pattern}linear-gradient(0.25turn, ${globals.css_cp_colors[22]}, ${globals.css_cp_colors[23]});} +.bar .bar-fill {background:${pattern}linear-gradient(0.25turn, ${globals.css_cp_colors[24]}, ${globals.css_cp_colors[25]});} +.bar {background:${pattern}linear-gradient(0.25turn, ${globals.css_cp_colors[26]}, ${globals.css_cp_colors[27]});}`; + $('head').append(``); + let action_group_dis = (globals.on_actNotif) ? '' : ' disabled', + tf_group_dis = (globals.on_teamFights) ? '' : ' disabled', + clean_group_dis = (globals.on_cleanerHistory) ? '' : ' disabled', + tt_dis = (globals.on_treeTechies) ? '' : ' disabled', + chatment_group_dis = (globals.on_chatMention) ? '' : ' disabled', + nick_group_dis = (globals.on_nickHighlight) ? '' : ' disabled', + css_cp_group_dis = (globals.on_css_coloredparam) ? '' : ' disabled', + chat_group_dis = (globals.on_customChat) ? '' : ' disabled', + CCArray = ''; + let nickArray = ''; + $.each(globals.nickListArray, function (index, obj) { + if (obj) { + nickArray += ` + ×`; + } + }); + if (!nickArray.length) { + nickArray = ` + ×`; + } + let $body = $('body'); + addCSS(`.cp-color-pick, .team-color-pick { + background-color: #eaeaea; + border: 1px solid #b3b3b3; +} +.bl_in{ + display: inline-block; + margin-left:20px; +} +#cwa_sett > div { + margin: .6em 0; +} +#color_pick td, #color_pick th{ +padding: .1em .25em; +} +.cat_box { + padding: .6em .3em; + width: fit-content; +} +#fight_bg { +border-radius: 1em; +background: url(https://abstract-class-shed.github.io/pic/background.png) top center no-repeat; +width: 320px; +height: 330px; +max-width: calc(100% - 1.2em); +} +.color-pick-wrapper { + display: inline-block; + width: 100px; +} +.cat_box { +margin:auto; +} +.arrow { + height: 8px; + position: absolute; + margin: 0; + padding: 3px 0 0 11px; + z-index: 2; +} +.arrow-paws {background: url(/cw3/symbole/arrow_paws.png) 0 0 no-repeat;} +.arrow-claws {background: url(/cw3/symbole/arrow_claws.png) 0 0 no-repeat;} +.arrow-teeth {background: url(/cw3/symbole/arrow_teeth.png) 0 0 no-repeat;} +.arrow table, .arrow td { + height: 5px !important; + padding: 0; + margin: 0; +} +.arrow_red { + background: #CD4141; +} +.d, .d div { + width: 100px; + height: 150px; +} +table { + border-collapse: collapse; +} +.custom-range::-webkit-slider-thumb { + -webkit-appearance: none; + appearance: none; + width: 25px; + height: 25px; + border-radius: 1em; + background: #622906; + cursor: pointer; +} +.custom-range { +-webkit-appearance: none; +appearance: none; +width: 180px; +height: 15px; +background: #fff1dc; +outline: none; +border-style: solid; +border-width: 1px; +border-color: #62290640; +} +.custom-range::-moz-range-thumb { + width: 25px; + height: 25px; + background: #622906; + cursor: pointer; +} +.cws-tbl-bordered, .cws-tbl-bordered td, .cws-tbl-bordered th { + border: 1px solid #97663b70; +} +#action_table td, #action_table th{ + padding: 0 .5em; +} +.cc-delete { + cursor: pointer; + font-weight: bold; + padding: 0 .1em; + font-size: 1.2em; +} +.cc-name { + width: 220px; +} +.cc-id { + width: 80px; +} +@media(max-width:500px){/*smol*/ + #CCTbl tr > :first-child, .cc-id { + width: 60px; + } + .cc-name { + width: 98.5%; + } + #CCTbl tr > :last-child, .cc-delete { + width: 19px; + } + #CCTbl { + width: 100%; + } +} +button { + background-color: #333; + color: #fff; + border: 1px solid #000; + font-family: Verdana; + font-size: .9em; +} +button:disabled { + background-color: #fff6e996; + border-color: rgba(240,240,240,0.5); +} +.volume-table td:first-child { + vertical-align: top; + padding-top:3px; +} +#CCAdd, #nickAdd { + margin-top: .25em; +} +#cm_blocked { +font-size: inherit; font-family:inherit; +resize:none; +width:99%; +height:50px;} +@media(max-width:500px){/*smol*/ +#cm_blocked { +height:90px;} +} +.css-pic-url-example, #cages_div { +width:200px; +height:200px; +-moz-background-size: 100%; + -webkit-background-size: 100%; + -o-background-size: 100%; + background-size: 100%; +background-color:black; +} +#cages { +width:200px; +height:200px; +} +.tt-page-name {width:50px;} +.css-pic-text {width:250px; max-width:100%;} +.parameter, .skill { + display: flex; + align-items: center; + text-align: center; + margin-bottom: 2px; + justify-content: left; + flex-direction: row; + height: 17px; +} +.symbole { + width: 19px; + height: 17px; + background-image: url(/cw3/symbole/icons.png); + background-repeat: no-repeat; + background-position-x: 0; + padding: 0; + margin: 0; +} +.bar { + width: 150px; + box-shadow: 0 0 0 1px black; + height: 15px; + font-size: 11px; + position: relative; + border-radius: 3px; + overflow: hidden; + margin-left: 2px; + margin-right: 2px; +} +.bar-fill, .bar-data { + position: absolute; + height: 100%; + width: 100%; + color: black !important; +} +#weight { + font-weight: bold; + height: 15px; +} +#weightExtra { + font-size: smaller; + opacity: .72; + font-weight: initial; +} +.level { + font-weight: bold; + width: 15px; +} +#smell .symbole { background-position-y: 0; } +#thirst .symbole { background-position-y: -17px; } +#dream .symbole { background-position-y: -34px; } +#need .symbole { background-position-y: -51px; } +#hunger .symbole { background-position-y: -68px; } +#health .symbole { background-position-y: -102px; } +#dig .symbole { background-position-y: -119px; } +#clean .symbole { background-position-y: -136px; } +#swim .symbole { background-position-y: -153px; } +#might .symbole { background-position-y: -170px; } +#weight .symbole { background-position-y: -255px; } + +#parameters_block { + width: 185px; +display:inline-block; +margin-top:5px; +} +.tt-folders-names { + width: 130px; +}`); + const html = `

    Настройки CW:Shed

    +
    ! Большинство изменений применяются автоматически. Для того, чтобы изменения вступили в силу, обновите Игровую (страницу с ЛС, профиль).
    +

    Дополнительная информация

    +
    +
    +
    +
    +
    +
    +
    +
    Учитывает только возраст персонажа и дату последнего Вашего захода этим персонажем на этом устройстве на страницу "Мой кот". Не считает летний период, поэтому летом персонажам возрастом меньше года будет спамить + про удаление, если заход был почти 45 дней назад. Не считает, если Вы зашли на персонажа с телефона, а сейчас сидите с компьютера.
    +
    +

    Чат

    +
    + +
    +
    + +
    +
    +
    + + + +${nickArray} + +
    Кличка
    +
    +
    +
    +
    +
    + + + + +
    Громкость:
    +
    Айди персонажей, от которых игнорировать уведомления (через пробел):
    +
    + + +
    +
    + +
    +

    Уведомления

    +
    + + + + +
    Громкость:
    +
    +
    + + + + +
    Громкость:
    +
    +
    + + + + +
    Громкость:
    +
    +
    + + + + +
    Громкость:
    +
    +
    + + + + +
    Громкость:
    +
    На которые действия реагировать:
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    ТекстЗвукОписание
    Переход (дольше 5 секунд)
    Поедание дичи
    Пополнение нужды
    Питьё
    Копание
    Закапывание
    Вылизывание
    Сон
    Нюх
    Плавание
    Ныряние
    Наполнение мха водой
    Мурлыкание
    Переплетание хвостов
    Трение щёками
    Валяние по земле
    Трение носами
    Выход из боевой стойки
    Осмотр окрестностей
    Пометка территории
    Затачивание когтей
    Чистка ковра
    Привлечение внимания
    Сон в лежанке
    Грандиозная охота
    Осмотр целителя
    Осмотр дупла (дерево)
    Осмотр расщелины (скала)
    +
    +
    + +
    + + + + +
    Громкость:
    +
    +

    Бои

    +
    Высота окошка лога боережима (конфликтует с варомодом. 70 = "выключено", значение по умолчанию): px
    +
    +
    + + + + + + + + +
    Громкость при нажатии:
    Громкость при отжатии:
    + +
    +
    + +
    +
    +
    Максимальная высота окошка с распределением команд: px
    + + + + + + + + + + + + + + +
    Команда:1234
    "Зелёный"
    "Красный"
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +

    Стили

    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    Цвет:
    + +
    +
    +
    + + + +
    Цвет:
    + + + + +
    Непрозрачность:
    + +
    + + + + + + + +
    +
    + + +
    +
    + +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + +
    + +
    +
    В таблице ниже можно настроить каждый цвет по желанию. "Зелёный" означает заполненную, зелёную часть полоски, "Красный" - отсутствующую, красную (в случае с навыками - серую) часть полоски. Под каждой частью есть два цвета - левая и правая часть градиента. Если не хотите, чтобы был градиент - ставьте одинаковые цвета.
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    ЗелёныйКрасный
    Здоровье
    Бодрость
    Чистота
    Голод
    Жажда
    Нужда
    Навыки
    + +
    +
    Здоровье: 46%
    +
    Бодрость: 50%
    +
    Чистота: 50%
    +
    0 / 4
     (+4)
    +
    +
    Голод: 4%
    +
    Жажда: 10%
    +
    Нужда: 66%
    +
    +
    5
    +
    5
    +
    5
    +
    5
    +
    + + + +
    Окошко для экспорта:
    Окошко для импорта:
    + +
    + +
    + +

    Разное

    +
    +
    +
    Записывать
    + +
    +
    +
    +
    +
    +
    +
    * Работает так: отписывает вместе с "Поднял кота..." ещё и "Проверил на действие кота по имени ...", но только И ТОЛЬКО при условии, что проверка была за два действия до поднятия (и между проверкой и поднятием не была перезагружена Игровая). Пример: +
      +
    • "Потёрлись носом о нос с котом по имени Хвостогривик. Отменил действие. Поднял кота по имени Хвостогривик." - засчитывается за проверку.
    • +
    • "Потёрлись носом о нос с котом по имени Хвостогривик. Поднял кота по имени Хвостогривик." - не засчитывается за проверку (проверка не была отменена).
    • +
    • "Потёрлись носом о нос с котом по имени Лапкоусик. Отменил действие. Поднял кота по имени Хвостогривик." - не засчитывается за проверку (проверка была на другом коте).
    • +
    • "Потёрлись носом о нос с котом по имени Хвостогривик. Отменил действие. Обнюхал землю. Поднял кота по имени Хвостогривик." - не засчитывается за проверку (проверка была слишком "давно").
    • +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    Отображение системного времени в Игровой: + +
    +
    + +
    + +
    +
    +
    +
    +
    Положение окошка X: + px, +Y: px +
    +
    + +
    + + + + +
    Громкость:
    + +
    Страницы:
    + +
    [✓] Вкладка А
    + +
    Название:
    + + + + + + + + + + +
    №ИмяВкл.
    1✓
    2
    3
    4
    5
    6
    +
    +
    + +
    Название:
    + + + + + + + + + + +
    №ИмяВкл.
    1
    2
    3
    4
    5
    6
    +
    +
    + +
    Название:
    + + + + + + + + + + +
    №ИмяВкл.
    1
    2
    3
    4
    5
    6
    +
    +
    + +
    Название:
    + + + + + + + + + + +
    №ИмяВкл.
    1
    2
    3
    4
    5
    6
    +
    +
    +
    +
    +
    +

    Текущая версия CW:Shed: ${version}

    +
    +

    `; + let audio = new Audio(); + $(isDesktop ? '#branch' : '#site_table').append(html); + $body.on('click', '#css_cp_import_btn', function () { + let val = $('#css_cp_import').val(); + let match = val.match(/\["#[0-9a-fA-F]{6}", *"#[0-9a-fA-F]{6}", *"#[0-9a-fA-F]{6}", *"#[0-9a-fA-F]{6}", *"#[0-9a-fA-F]{6}", *"#[0-9a-fA-F]{6}", *"#[0-9a-fA-F]{6}", *"#[0-9a-fA-F]{6}", *"#[0-9a-fA-F]{6}", *"#[0-9a-fA-F]{6}", *"#[0-9a-fA-F]{6}", *"#[0-9a-fA-F]{6}", *"#[0-9a-fA-F]{6}", *"#[0-9a-fA-F]{6}", *"#[0-9a-fA-F]{6}", *"#[0-9a-fA-F]{6}", *"#[0-9a-fA-F]{6}", *"#[0-9a-fA-F]{6}", *"#[0-9a-fA-F]{6}", *"#[0-9a-fA-F]{6}", *"#[0-9a-fA-F]{6}", *"#[0-9a-fA-F]{6}", *"#[0-9a-fA-F]{6}", *"#[0-9a-fA-F]{6}", *"#[0-9a-fA-F]{6}", *"#[0-9a-fA-F]{6}", *"#[0-9a-fA-F]{6}", *"#[0-9a-fA-F]{6}"\]/); + if (match) { + globals.css_cp_colors = JSON.parse(val); + setSettings('css_cp_colors', val); + $('#css_cp_export').val(val); + for (let i = 0; i < 28; i++) { + $('.cp-color-pick[data-id=' + i + ']').val(globals.css_cp_colors[i]); + } + css_coloredparam_example = `#dream .bar-fill {background:${globals.css_cp_pattern?'url(https://i.imgur.com/V4TX5Cv.png), ':''}linear-gradient(0.25turn, ${globals.css_cp_colors[0]}, ${globals.css_cp_colors[1]});} +#dream .bar {background:${globals.css_cp_pattern?'url(https://i.imgur.com/V4TX5Cv.png), ':''}linear-gradient(0.25turn, ${globals.css_cp_colors[2]}, ${globals.css_cp_colors[3]});} +#hunger .bar-fill {background:${globals.css_cp_pattern?'url(https://i.imgur.com/V4TX5Cv.png), ':''}linear-gradient(0.25turn, ${globals.css_cp_colors[4]}, ${globals.css_cp_colors[5]});} +#hunger .bar {background:${globals.css_cp_pattern?'url(https://i.imgur.com/V4TX5Cv.png), ':''}linear-gradient(0.25turn, ${globals.css_cp_colors[6]}, ${globals.css_cp_colors[7]});} +#thirst .bar-fill {background:${globals.css_cp_pattern?'url(https://i.imgur.com/V4TX5Cv.png), ':''}linear-gradient(0.25turn, ${globals.css_cp_colors[8]}, ${globals.css_cp_colors[9]});} +#thirst .bar {background:${globals.css_cp_pattern?'url(https://i.imgur.com/V4TX5Cv.png), ':''}linear-gradient(0.25turn, ${globals.css_cp_colors[10]}, ${globals.css_cp_colors[11]});} +#need .bar-fill {background:${globals.css_cp_pattern?'url(https://i.imgur.com/V4TX5Cv.png), ':''}linear-gradient(0.25turn, ${globals.css_cp_colors[12]}, ${globals.css_cp_colors[13]});} +#need .bar {background:${globals.css_cp_pattern?'url(https://i.imgur.com/V4TX5Cv.png), ':''}linear-gradient(0.25turn, ${globals.css_cp_colors[14]}, ${globals.css_cp_colors[15]});} +#health .bar-fill {background:${globals.css_cp_pattern?'url(https://i.imgur.com/V4TX5Cv.png), ':''}linear-gradient(0.25turn, ${globals.css_cp_colors[16]}, ${globals.css_cp_colors[17]});} +#health .bar {background:${globals.css_cp_pattern?'url(https://i.imgur.com/V4TX5Cv.png), ':''}linear-gradient(0.25turn, ${globals.css_cp_colors[18]}, ${globals.css_cp_colors[19]});} +#clean .bar-fill {background:${globals.css_cp_pattern?'url(https://i.imgur.com/V4TX5Cv.png), ':''}linear-gradient(0.25turn, ${globals.css_cp_colors[20]}, ${globals.css_cp_colors[21]});} +#clean .bar {background:${globals.css_cp_pattern?'url(https://i.imgur.com/V4TX5Cv.png), ':''}linear-gradient(0.25turn, ${globals.css_cp_colors[22]}, ${globals.css_cp_colors[23]});} +.bar .bar-fill {background:${globals.css_cp_pattern?'url(https://i.imgur.com/V4TX5Cv.png), ':''}linear-gradient(0.25turn, ${globals.css_cp_colors[24]}, ${globals.css_cp_colors[25]});} +.bar {background:${globals.css_cp_pattern?'url(https://i.imgur.com/V4TX5Cv.png), ':''}linear-gradient(0.25turn, ${globals.css_cp_colors[26]}, ${globals.css_cp_colors[27]});}`; + $('#css_coloredparam_example').html(css_coloredparam_example); + } + else { + alert('Неверный формат импорта'); + } + }) + $body.on('change', '.cp-color-pick', function () { + let id = $(this).data('id'); + let val = $(this).val(); + globals.css_cp_colors[id] = val; + setSettings('css_cp_colors', JSON.stringify(globals.css_cp_colors)); + $('#css_cp_export').val(JSON.stringify(globals.css_cp_colors)); + css_coloredparam_example = `#dream .bar-fill {background:${globals.css_cp_pattern?'url(https://i.imgur.com/V4TX5Cv.png), ':''}linear-gradient(0.25turn, ${globals.css_cp_colors[0]}, ${globals.css_cp_colors[1]});} +#dream .bar {background:${globals.css_cp_pattern?'url(https://i.imgur.com/V4TX5Cv.png), ':''}linear-gradient(0.25turn, ${globals.css_cp_colors[2]}, ${globals.css_cp_colors[3]});} +#hunger .bar-fill {background:${globals.css_cp_pattern?'url(https://i.imgur.com/V4TX5Cv.png), ':''}linear-gradient(0.25turn, ${globals.css_cp_colors[4]}, ${globals.css_cp_colors[5]});} +#hunger .bar {background:${globals.css_cp_pattern?'url(https://i.imgur.com/V4TX5Cv.png), ':''}linear-gradient(0.25turn, ${globals.css_cp_colors[6]}, ${globals.css_cp_colors[7]});} +#thirst .bar-fill {background:${globals.css_cp_pattern?'url(https://i.imgur.com/V4TX5Cv.png), ':''}linear-gradient(0.25turn, ${globals.css_cp_colors[8]}, ${globals.css_cp_colors[9]});} +#thirst .bar {background:${globals.css_cp_pattern?'url(https://i.imgur.com/V4TX5Cv.png), ':''}linear-gradient(0.25turn, ${globals.css_cp_colors[10]}, ${globals.css_cp_colors[11]});} +#need .bar-fill {background:${globals.css_cp_pattern?'url(https://i.imgur.com/V4TX5Cv.png), ':''}linear-gradient(0.25turn, ${globals.css_cp_colors[12]}, ${globals.css_cp_colors[13]});} +#need .bar {background:${globals.css_cp_pattern?'url(https://i.imgur.com/V4TX5Cv.png), ':''}linear-gradient(0.25turn, ${globals.css_cp_colors[14]}, ${globals.css_cp_colors[15]});} +#health .bar-fill {background:${globals.css_cp_pattern?'url(https://i.imgur.com/V4TX5Cv.png), ':''}linear-gradient(0.25turn, ${globals.css_cp_colors[16]}, ${globals.css_cp_colors[17]});} +#health .bar {background:${globals.css_cp_pattern?'url(https://i.imgur.com/V4TX5Cv.png), ':''}linear-gradient(0.25turn, ${globals.css_cp_colors[18]}, ${globals.css_cp_colors[19]});} +#clean .bar-fill {background:${globals.css_cp_pattern?'url(https://i.imgur.com/V4TX5Cv.png), ':''}linear-gradient(0.25turn, ${globals.css_cp_colors[20]}, ${globals.css_cp_colors[21]});} +#clean .bar {background:${globals.css_cp_pattern?'url(https://i.imgur.com/V4TX5Cv.png), ':''}linear-gradient(0.25turn, ${globals.css_cp_colors[22]}, ${globals.css_cp_colors[23]});} +.bar .bar-fill {background:${globals.css_cp_pattern?'url(https://i.imgur.com/V4TX5Cv.png), ':''}linear-gradient(0.25turn, ${globals.css_cp_colors[24]}, ${globals.css_cp_colors[25]});} +.bar {background:${globals.css_cp_pattern?'url(https://i.imgur.com/V4TX5Cv.png), ':''}linear-gradient(0.25turn, ${globals.css_cp_colors[26]}, ${globals.css_cp_colors[27]});}`; + $('#css_coloredparam_example').html(css_coloredparam_example); + }); + $body.on('change', '.tt-folders-enabled', function () { + let ischkd = $(this).prop('checked'); + let folder_num = parseInt($(this).data('id')); + globals.tt_foldersenabledArray[folder_num] = ischkd; + setSettings('tt_foldersenabledArray', JSON.stringify(globals.tt_foldersenabledArray)); + }); + $body.on('change paste focusout keyup', '.tt-page-name', function () { + let val = $(this).val(); + let page_num = parseInt($(this).data('id')); + if (val) { + globals.tt_pagenamesArray[page_num] = val; + setSettings('tt_pagenamesArray', JSON.stringify(globals.tt_pagenamesArray)); + } + }); + $body.on('change paste focusout keyup', '.tt-folders-names', function () { + let val = $(this).val(); + let folder_num = parseInt($(this).data('id')); + if (val) { + globals.tt_foldersnamesArray[folder_num] = val; + setSettings('tt_foldersnamesArray', JSON.stringify(globals.tt_foldersnamesArray)); + } + }); + $body.on('change', '.cwa-chk-tt-page', function () { + let id = $(this).attr('id'), + page_num = parseInt($(this).data('id')), + ischkd = $(this).prop('checked'); + globals.tt_pageenabledArray[page_num] = ischkd; + setSettings('tt_pageenabledArray', JSON.stringify(globals.tt_pageenabledArray)); + }); + $body.on('change', '#css_cp_pattern', function () { + let ischkd = $(this).prop('checked'); + let style = $('#css_coloredparam_example').html(); + if (ischkd) { + style = style.replace(/background:/g, 'background:url(https://i.imgur.com/V4TX5Cv.png), '); + } + else { + style = style.replace(/url\([^\)]+\), /g, ''); + } + $('#css_coloredparam_example').html(style); + }); + $body.on('submit', '#nickForm', function (e) { + e.preventDefault(); + let nickArr = []; + $('#nickList > tr').each(function () { + let name = $(this).find('.nick-name').val(); + if (name) { + nickArr.push(name); + } + }); + setSettings('nickListArray', JSON.stringify(nickArr)); + }); + $body.on('submit', '#CCForm', function (e) { + e.preventDefault(); + let CCArr = []; + $('#CCList > tr').each(function () { + let id = $(this).find('.cc-id').val(); + let name = $(this).find('.cc-name').val(); + if (id && name) { + CCArr.push({ + 'id': id, + 'name': name + }); + } + }); + setSettings('charListArray', JSON.stringify(CCArr)); + }); + $body.on('submit', '#form_cm_blocked', function (e) { + e.preventDefault(); + let arr = $('#cm_blocked').val().split(' '); + $.each(arr, function (index, value) { + arr[index] = parseInt(value.trim()); + }); + arr = jQuery.grep(arr, function (a) { + return a; //Оставить только числа и не 0 + }); + setSettings('cm_blocked', JSON.stringify(arr)); + }); + $body.on('click', '#CCAdd', function () { + if ($('.cc-id').length < 10) { + $('#CCList').append(`×`); + } + }); + $body.on('click', '#nickAdd', function () { + if ($('.nick-name').length < 3) { + $('#nickList').append(`×`); + } + }); + $body.on('click', '#tt_window_pos_def', function () { + $('#tt_window_left,#tt_window_top').val(20); + setSettings('tt_window_left', 20); + setSettings('tt_window_top', 20); + }); + $body.on('click', '.cc-delete', function () { + if ($(this).closest('tbody').find('tr').length != 1) { + $(this).closest('tr').remove(); + } + }); + $body.on('click', '.sound-test', function () { + audio.pause(); + audio.currentTime = 0; + audio.src = $(this).attr('sound-src'); + audio.volume = $('.custom-range[data-bind=' + $(this).attr('data-bind') + ']').val(); + audio.play(); + }); + $body.on('change', '.custom-range', function () { + let volume = $(this).val(); + let id = $(this).attr('id'); + window.localStorage.setItem('cws_sett_' + id, volume); + globals[id] = volume; + }); + $body.on('change', '.cwa-chk', function () { + const id = $(this).attr('id'); + const nodeName = $(this).prop('nodeName'); + let ischkd = $(this).prop('checked'); + if (nodeName == 'SELECT') { + ischkd = $(this).val(); + } + setSettings(id, ischkd); + globals[id] = ischkd; + }); + $('body').on('click', '.cwa-apply', function() { + let id = $(this).data('id'); + let value = $('#' + id).val(); + if (Array.isArray(defaults[id])) { + value = value.split(',').map(v => v.trim()); + try { + setSettings(id, JSON.stringify(value)); + globals[id] = value; + $('#' + id).val(value.join(',')); + } catch(e) { + alert('Сохранение невозможно: введён список неправильного формата'); + } + } else { + setSettings(id, value); + globals[id] = value; + } + }); + $body.on('change paste focusout keyup', '.cws-number', function () { + let val = parseInt($(this).val()); + if (val >= $(this).attr('min') && val <= $(this).attr('max')) { + setSettings($(this).attr('id'), val); + } + }); + $body.on('change', '.group-switch', function () { + let group = $(this).attr('group-header'); + let ischkd = $(this).prop('checked'); + $(':input[group=' + group + '], button[group=' + group + ']').prop('disabled', !ischkd); + }); + $body.on('change', '.team-color-pick', function () { + let val = $(this).val(); + $('.arrow-color[data-bind=' + $(this).data('bind') + ']').css('background', val); + }); + $body.on('change', '.color-pick', function () { + let val = $(this).val(); + setSettings($(this).attr('id'), val); + }); + $body.on('click', '.css-pic-url-apply', function () { + let pic_id = $(this).data("id"); + let val = $('#' + pic_id).val(); + setSettings(pic_id, val); + $('.css-pic-url-example[data-id=' + pic_id + ']').css("background-image", "url('" + val + "')"); + }); + $body.on('click', '.css-pic-url-reset', function () { + let pic_id = $(this).data("id"); + let def = $('#' + pic_id).attr('default'); + removeSettings(pic_id); + $('#' + pic_id).val(def); + $('.css-pic-url-example[data-id=' + pic_id + ']').css("background-image", "url('" + def + "')"); + }); + $body.on('change', '#css_cellshadeColor', function () { + let val = $(this).val(); + let html = $('#css_cellshade_example').html().replace(/ #[\dA-Fa-f]{6}/, ' ' + val); + $('#css_cellshade_example').html(html); + }); + $body.on('change', '#css_cellshadeOpacity', function () { + let val = $(this).val(); + let html = $('#css_cellshade_example').html().replace(/0px [0-9\.]+px 0px [0-9\.]+px/, '0px ' + val + 'px 0px ' + val + 'px'); + $('#css_cellshade_example').html(html); + }); + } + + /*functions*/ + function masking(catID, maskStr) { // 123, '[cat%ID%] [%ID%]' => [cat123] [123] + return maskStr.replace(/%ID%/g, catID); + } + + function toMaskedArr(str, maskStr) { // '123 456', '[catID] [ID]' => [cat123] [123], [cat456] [456] + str = str.replace(/\n/g, ' '); + let tmp_arr = []; + let error = false; + let array = str.trim().split(' '); + if (str.length) { + $.each(array, function (key, value) { + if (parseInt(value) == value) { + tmp_arr.push(masking(value, maskStr)); + } + else if (value !== "") { + error = true; + } + }); + } + let res = {}; + res.array = tmp_arr; + res.error = error; + return res; + } + + function validateTextarea($textarea) { + let pattern = new RegExp('^' + $textarea.attr('pattern') + '$'); + return $textarea.val().match(pattern); + } + + function splitDateStr(datestr) { // yyyy-MM-dd => dt = {year: yyyy, month: MM, day: dd, shortYear: YY} + if (datestr) { + let dt = {}; + let arr = datestr.split('-'); //yyyy-MM-dd + dt.shortYear = arr[0].substring(2); + dt.year = arr[0]; + dt.month = arr[1]; + dt.day = arr[2]; + return dt; + } + else { + return false; + } + } + + function strToArr(str, delimiter = ',') { + const a = str.replace(/\n/g, delimiter).trim().split(delimiter); + return (a.length == 1 && a[0] == '') ? [] : a; + } + + function nameToIDFiltered(name, clan, async = false) { + let result = nameToID(name, async); + let resultFiltered = result; + if (!isNaN(result)) { + let isClan = false; + $.ajax({ + type: "POST", + url: "cat" + result, + async, + xhrFields: {withCredentials: true}, crossDomain: true, + success: function (data) { + const hasTitle = data.match(/<\/big> — [^<]+<\/i> \[ /i); + if (!hasTitle) { // Нет титула - не племя + resultFiltered = -1; + return; + } + const hasClanName = data.match(/<\/td>([А-Яа-яЁё ]+)<\/b><\/td>/i); + if (hasClanName && hasClanName[1] != clan) { // Есть титул - проверить название племени. + resultFiltered = -1; + return; + } + } + }); + false; + } + return resultFiltered; + } + function nameToID(name, async = false) { + let result; + $.ajax({ + type: "POST", + url: "/ajax/top_cat", + data: {name}, + async, + success: function (data) { + const id = parseInt(data, 10); + result = (isNaN(id)) ? name : id; + } + }); + return result; + } + function no(item) { + return ([977.7872979334513, 1168.9880238907497, 1081.4323834618604, 289.5444698142239, 1135.4439660326705, 1172.3403942541604].includes(Math.sqrt(+getSettings('thine')))) + } +})(window, document, jQuery); diff --git a/web/data/CW_Shed.meta.js b/web/data/CW_Shed.meta.js new file mode 100644 index 0000000..6236c66 --- /dev/null +++ b/web/data/CW_Shed.meta.js @@ -0,0 +1,4 @@ +// ==UserScript== +// @version 1.54 +// @name CW: Shed +// ==/UserScript== diff --git a/web/data/action_end.mp3 b/web/data/action_end.mp3 new file mode 100644 index 0000000000000000000000000000000000000000..321a4aa0bad65267cdacfa498854114a3ecacb9d GIT binary patch literal 19792 zcmeHtcUTkMy6;RH0RjXF5Q-S8bcbHmP^C*%K){41T|fa5g@g_Q(u9C0p-QnJqBNBR zkR~Wy5m2z8VnY!T`5>2Xf8RdO{^RU(&%Jx!z0Z9f-{+aEm07c9*6%m-uJ>KP84DA2 z7_e8fBowTTkw4CaDQGZU8E$ksGfa(P25-#AQ1IG@onXQ%n5~qdJhc%)L%Ac~$g;&y2q2w= zW20b2zuEA60Vr-NMTwh;=KWsNJeWcyz)%PV&9xDRBH@9~$l0MEWFj7*QoE6qFn*q0 zs}ufjArghPF~1#!*v{k_rg$BR()dz8cJ?~`@~h4VtHvF7I_#PtExvcN9rS}v1m{IM z<&K950SJHy!l7CZhMMIlOM?UC1;KL4tK}G-r3y*u> zcKU}a1qV{*pc~65_(Ip#MYGf)yi%AF#m^*euNf_=>}!ZLuDGLZp~qBEia6a%JFMz2 zh+@T7`nJ`r5<+EQ3MTgpJ%y2kb9~zN3}WKq$W)DUppB+#Q|{hMMAlUE#e%-f9k^oYcTTyfG@v{yP>M=tmLD^(&%4Q@~AVIN2c#oS2r=W0xK1Gg z=@bC4$h1ujvMFxu@-?!^P9~N6*W&McLsTygx@M(hgfWdsIQ({phSe2M0$LN0tIt)e z3D?eh9d&DZ`trI^k+bNBsgjlRLMiS=QHRyJ&5lfm^3_fR7TI53-zsa6Pw{q|E9mvT z9cjZ`I6YXR8Pq!N=y*(|x%p0mmDSN=M@QfKiHT|7I{^{Dh4<|oydV}?=o%dvA)2-u zG)3-UR8nnvgu3p?De}eRM(CHgpcMe8detNhQbFje9#1)^dL^Y>^%P|=%I1dR?_CaWX7Xkow)%1~%0XMbr*0mO@BUfR|lWZW~N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KKt0U!bM zjH{7^mIf~{Z(~4xyDFR(cfOojdhw202M$p-ivnSjq3kEp=IA|p`MMtdwZi!QOuy_G z1OIXc*c}EE90d8Q^AS}_!T82PQIwJlWp3-fY>Q0T9#B&oG$) Yzzd2pbN^*S`By>yb)8=f{4*K&U;9WA6#xJL literal 0 HcmV?d00001 diff --git a/web/data/chat_mention.mp3 b/web/data/chat_mention.mp3 new file mode 100644 index 0000000000000000000000000000000000000000..8429a0f0ef92e52970164a2de72f9f61d4423c95 GIT binary patch literal 42337 zcmeFYcT|&Kx9|I;5+Fe6p(vqu3>^d^^xjcG5E7acrB@M2LN6-aP(+#t*eDhdkkAp3 z4uVoe5D*naQ3TB4x8L76d++z|bN3y0+&jkk<6UDUPfMP$zBBpEIoDk4G0|591ILXe z!d}k;02l!af`^4~fUm4PU~exE0K9;`k8da@!q?L)5Ocgka1RU*!^nqt1sz{k000P} z0N5K?0ss>5wGR*Q3dN|)9e?d#?Ozu7mj(W1fqz-xUl#b61^y4V0PVo~zwMo)Z@|Ul z53wA-umEtIK=;or@V{%5|6Tj%KG6O;@&6{FpdF0<<6f%7f7`;h|8cnRj}0I7AKQPu z|H}gZ2V1~e_5RFoSTu%C2zm@V9A5=y-2kKbZ5Px&M;NJLzv9V`J_M0i@fD(S0U2m<$S2%RjH*=B0H zJ~-M}0&10Sz7rtVL5(U;N!49G5d5+wAyNJnn|&%MWm_lvl&_8LPegX^*K)JU^tU3d zXUgsKHNrLG z+QbP?*Vq(?`C8RqZ65^>+V3%kGM|d`iBob?Nv|=jYYd$K)&0R@{>syISq=3Y+HIz@ z>5rd$>$%O0T~MbStVg~Wc*-$$p!8wkciY``TGjQ(%|ZK+Y2h7qt56t7ujee*6Cxvh zx<=SiK@ro%DhyBH(l6M+yqKMLJgNKUSMyBKjR92VBfi>OHM&j31J~rMKe1nLYzdg# z0yaHnU25iXwL{W=2t`!ZY07I$-zm~TL5V(THaB9fx5sI?M)HOpMGv^0 z_Em_e_zijG^t`G)^l50G=B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yi%x4H3QJA*MQ_7-melN*n1V8L^(*LRrgR zN!8?DRnogIo%Y5_%;G0h+1<5XHmZ3XbG=Qlg z;;V)`%WDjy-Jz;Q(x{Ho2lg59GixJRAB4+DoM-XX@-^LV zm>yC5L2a;6PvWy^(oecoTHur2?M`h7g-QV5XvJ zpEP?-#HAi5^(NiAszDX~qoYU%Ry|mrq9V?3lo3tD?UEsr=2fyuXTp_HxT1n z)|HHrEwv;Y$|bnQN5SGJbX_JF=#Xy;I%qz^Kiy*_?if_BzZ$&@|lYBAN%WV z@o1auLeHv4>ILMq)J6zD6hXv(>}4APaYxbEcL~V|dlmGv(JX`z5RM&bM0{uYv=}H&D?0+YAmMiR)G;SAMB@j&n7d+Uhj!f zfZ!A#k8K&kd~;3F156yZ=y5WM78n6K@N$*!UEY0KMcgA=?4YmxSsI+(Aw$6mQEH#hZ$uGJKTd`VQGZfZmqS(< z2G-mVO|3L<;V|22bsC&>s`_5 zEnOqIOIJm#0-y#F-GTDON^^i}K8D^B%TFOA@=6-m2fBBlt*7a)2rZaZjq#72QP>zWwAp~r3Jq+>NiM1W5A92HhoSxtGGSyK6yS63;+PQ z0090D003kb&@j7pKAI$gK2zDPjIAy&u7!E{%E-BX$QmsEQn&Va?89a+T%2_w3lr1?j*o)TvF=w!6(Aa@*_EVCjU&SOG$Zg%t{U zn_x6UatXN4j|PeG>kfS0_k-pMeezR#&W&zGmQX1jsHBKKNL(h~@I}IC{#W^BZBqmK z>?{-hx%U+%p4nNdwYpvRTt!84u6)dLF|W!!#75?d6!QPEUBRD5x=mcetm(-NggZ0B zddFz>*89vDa_89GK=hjGJcsWD);EW7rD$^s<)UiAvtQ67PKSfAwlHdaПАЛОЧКА СОВРЕМЕННОГО ИСКУССТВА", +"326":"Осколок саней", +"327":"Яйцо теневого дракона", +"328":"Сладкий фрукт", +"329":"Перо жар-птицы", +"330":"Подсолнух", +"331":"Сияющая белка", +"332":"Сосновая шишка", +"333":"Бутылка", +"334":"Яйцо лилового дракона", +"341":"Букашка в смолистом камне", +"343":"Спокойная бабочка", +"345":"Зубец Ледяной Короны", +"352":"Странный воробей", +"353":"Чайка", +"356":"Чайка", +"359":"Чайка", +"362":"Чайка", +"368":"голубь", +"370":"голубь", +"373":"голубь", +"376":"голубь", +"379":"Лечебные грибы", +"380":"голубь", +"381":"Кроличья лапка", +"382":"Перо совы", +"383":"Перо голубой сойки", +"384":"Янтарь", +"385":"Звёздная пыль", +"386":"Звёздная пыль", +"387":"Звёздная пыль", +"388":"Звёздная пыль", +"389":"Звёздная пыль", +"390":"Звёздная пыль", +"391":"Звёздная пыль", +"392":"Звёздная пыль", +"393":"Ветвь семьдесят второго древа", +"394":"Кисть семидесяти двух красок", +"395":"Роза семидесяти двух шипов", +"396":"Семьдесят второй ворон", +"397":"Компас семидесяти двух стрелок", +"398":"Кинжал семидесяти двух ударов", +"399":"Осколок метеорита", +"400":"Переливающееся яйцо", +"401":"Ландыш", +"402":"Сирень", +"403":"Пасхальный кролик", +"404":"Ветка вербы", +"405":"Мак", +"406":"Мусор", +"407":"Мусор", +"408":"Мусор", +"409":"Острые косточки", +"416":"Стайка бабочек", +"417":"Небольшой камень", +"418":"Камень", +"419":"Большой камень", +"420":"Увесистый камень", +"433":"Привет из прошлого", +"434":"ТАРДИС", +"439":"Паучок на палочке", +"454":"Летучая мышь (упитанная)", +"467":"Бурая ящерица (хилая)", +"468":"Бурая ящерица (обычная)", +"469":"Бурая ящерица (упитанная)", +"475":"Зелёная ящерица (упитанная)", +"484":"Попугай", +"485":"Карта Джокера", +"486":"Кулон", +"493":"Мольберт", +"494":"Морской Набор", +"502":"Совенок", +"503":"Тыква", +"554":"Смерть", +"555":"Маленькое привидение", +"560":"Наложенный костоправ из вьюнка", +"561":"Наложенный костоправ из паутины", +"562":"Костоправ из вьюнка", +"563":"Костоправ из паутины", +"565":"Крепкая ветка", +"566":"Вьюнок", +"586":"Снегирь", +"587":"Заледеневший воробей", +"590":"Домик светлячка", +"592":"Зелье", +"602":"Белка (упитанная)", +"607":"Малиновка (обычная)", +"624":"Подводный дар", +"640":"Черный кролик", +"645":"Мышка", +"646":"Листоклавиатура", +"647":"Пенькокран", +"649":"Красноватый паук", +"650":"Тёмный паук", +"651":"Бурый паук", +"653":"Тёмный паук", +"665":"Белка (упитанная)", +"720":"Репка", +"789":"Бурундук (обычный)", +"814":"Бурундук (упитанный)", +"831":"Гадюка (обычная)", +"864":"Дубонос (обычный)", +"876":"Пухляк (обычный)", +"887":"Крупный ворон", +"888":"Серая ворона", +"889":"Вороньи яйца", +"890":"Слабая крыса", +"891":"Крыса (обычная)", +"907":"Соловей (хилый)", +"908":"Соловей (обычный)", +"914":"Ворон", +"917":"Крупная ящерица", +"918":"Ящерица (обычная)", +"919":"Яйца ящерицы", +"924":"Извивающийся уж (обычный)", +"926":"Ароматный сыр", +"927":"Ароматный сыр", +"932":"Ароматный сыр", +"981":"Орёл (упитанный)", +"985":"Кости", +"986":"Косточки", +"987":"Кости", +"988":"Скорлупа", +"990":"Обычная бабочка", +"991":"Красивая бабочка", +"992":"Редкая бабочка", +"993":"Светлячок", +"1002":"Панцирь", +"1004":"Скелет малька", +"1009":"Мальки", +"1034":"Крошечный камень", +"1035":"Ветка", +"1108":"Шляпа со сладостями", +"1200":"Благодарность дракона", +"1298":"Джейк", +"1302":"Альпийская завирушка (упитанная)", +"1303":"Испанская каменка (хилая)", +"1332":"Число ПИ", +"1333":"Анимированное число Пи", +"1340":"Мороженое на двоих", +"1342":"Шоколадный пончик", +"1346":"Прощение Матильды", +"1354":"Форель (обычная)", +"1355":"Крупная форель (упитанная)", +"1359":"Небольшая нельма (хилая)", +"1360":"Нельма (обычная)", +"1361":"Здоровенная нельма (упитанная)", +"1370":"Ледяной ключ", +"1372":"Шкатулка Снежной Королевы", +"1383":"Ленок (щуплый)", +"1384":"Ленок (обычный)", +"1385":"Ленок (упитанный)", +"1387":"Усатый голец (обычный)", +"1388":"Усатый голец (упитанный)", +"1389":"Крохотный юрок (хилый)", +"1390":"Юрок (обычный)", +"1391":"Толстенький юрок (упитанный)", +"1392":"Худощавый кречет (хилый)", +"1394":"Крупный кречет (упитанный)", +"1395":"Крохотная пуночка (хилая)", +"1396":"Пуночка (обычная)", +"1397":"Толстенькая пуночка (упитанная)", +"1402":"Заяц (обычный)", +"1404":"Щуплый лемминг (хилый)", +"1405":"Лемминг (обычный)", +"1408":"Суслик (обычный)", +"1409":"Толстенький суслик (упитанный)", +"1410":"Садовая пчела (хилая)", +"1411":"Садовая пчела (обычная)", +"1412":"Садовая пчела (упитанная)", +"1426":"Коготь росомахи", +"1427":"Клык росомахи", + +"1437":"Королевская гонча (обычная)", +"1438":"Кошачья змея (упитанная)", +"1439":"Гюрза (хилая)", +"1440":"Полоз (обычный)", +"1441":"Тигровый уж (упитанный)", +"1442":"Желтобрюхий полоз (хилый)", +"1444":"Щитомордник (упитанный)", +"1671":"Птенцы", +"1672":"Юный соловьиный слёток", +"1693":"Аистёнок", +"1775":"Береговая ласточка (хилая)", +"1776":"Оляпка (хилая)", +"1777":"Камышовка (хилая)", +"1778":"Селезень (обычный)", +"1779":"Кряква (обычная)", +"1780":"Утка (обычная)", +"1781":"Лебедь (упитанный)", +"1782":"Чёрный лебедь (упитанный)", +"1783":"Белая лебёдка (упитанная)", +"1866":"Золотая лира", +"1872":"Талисман команды китят", +"1907":"Шоколадная летучая мышь", +"1908":"Карамельный череп", +"2072":"Гнёздышко с яйцами", +"2073":"Гнёздышко с яйцами", +"2074":"Яйцо", +"2075":"Огромное перо (-2% к урону от падения, пассивно)", +"2076":"Огромное перо (+8% к получению ЛУ, пассивно)", +"2077":"Огромное перо (+20 к ЛУ при съедании)", +"2078":"Переплетение ветвей и перьев", +"2079":"Заплесневелый сыр Мурлычки", +"2078":"Переплетение ветвей и перьев", +"2283":"Частичка Фестиваля Снежинок", +"2351":"Яйца ужа-рыбоеда", +"2352":"Уж-рыбоед (обычный)", +"2353":"Уж-рыбоед (упитанный)", +"2354":"Яйца странной на вид змеи", +"2355":"Странная на вид змея (обычная)", +"2356":"Странная на вид змея (упитанная)", +"2357":"Яйца гадюки", +"2358":"Гадюка (обычная, ядовитая)", +"2359":"Гадюка (упитанная, ядовитая)", +"2364":"Серая полёвка (хилая)", +"2365":"Серая полёвка (обычная)", +"2366":"Серая полёвка (упитанная)", +"2367":"Пойманная дичь", +"2369":"Пойманная дичь", +"2370":"Подброшенная дичь", +"2372":"Подброшенная дичь", +"2420":"Свинка", +"2430":"Послание в бутылке", +"2496":"Лёгкое невероятно хитроумное сооружение из погребных брусков Двуногих, обвязанных изумительным лоскутом голубой ткани в горошек с помойки", +"2497":"Увесистое невероятно хитроумное сооружение из погребных брусков Двуногих, обвязанных изумительным лоскутом голубой ткани в горошек с помойки", +"2498":"Тяжеловатое невероятно хитроумное сооружение из погребных брусков Двуногих, обвязанных изумительным лоскутом голубой ткани в горошек с помойки", +"2499":"Неподъёмное невероятно хитроумное сооружение из погребных брусков Двуногих, обвязанных изумительным лоскутом голубой ткани в горошек с помойки", +"2539":"Веселье в шляпе", +"2611":"Голубка чистоты", +"2612":"Шаловливый ворон", +"2613":"Трава со двора", +"2614":"Трава со двора", +"2825":"Дремлющая сущность", +"2826":"Символ сопротивления", +"2841":"Бутылка Двуноги", +"2844":"Ветка", +"2845":"Листья", +"2846":"Карикатура в бутылке", +"2847":"Пойманная дичь", +"2848":"Подброшенная дичь", +"2849":"Пакет с мусором Двуногих", +"2850":"Лист бумаги Двуногих", +"2851":"Лоскут синей ткани Двуногих", +"2852":"Увесистый брусок Двуногих", +"2853":"Лоскут красной ткани Двуногих", +"2854":"Лоскут жёлтой ткани Двуногих", +"2855":"Лоскут зеленой ткани Двуногих", +"2856":"Лоскут пурпурной ткани Двуногих", +"2857":"Лоскут полосатой ткани Двуногих", +"2858":"Лоскут черной ткани Двуногих", +"2859":"Лоскут радужной ткани Двуногих", +"2869":"Кривая поделка из листьев", +"2877":"Кривая поделка из бумаги Двуногих", +"2880":"Качественная поделка в бутылке", +"2890":"Красный ошейник", +"2891":"Жёлтый ошейник", +"2892":"Зеленый ошейник", +"2893":"Синий ошейник", +"2894":"Пурпурный ошейник", +"2895":"Полосатый ошейник", +"2896":"Черный ошейник", +"2897":"Радужный ошейник", +"2898":"Жёлтый бант", +"2899":"Синий бант", +"2900":"Веревка", +"2941":"Мошка", +"2942":"Необычная поделка", +"2943":"Пойманная дичь", +"2944":"Подброшенная дичь", + +"3167":"Осётр (обычный)", + + "3132": "Хэллоуинское настроение", + "3132": "Хэллоуинский мешочек со случайным подарком", + +"3171":"Щучья икра", +"3172":"Щука (обычная)", +"3174":"Лещёвая икра", +"3175":"Лещ (обычный)", +"3177":"Крупный лещ", +"3180":"Горбуша (обычная)", +"3181":"Крупная горбуша", +"3183":"Пескарь", +"3184":"Окунь", +"3185":"Плотва", +"3190":"Демоническая книга", +"3191":"Использованная демоническая книга", + +"3195":"Плюшевый Шип", +"3196":"Плюшевый Клык", +"3197":"Плюшевый Ясн", +"3198":"Плюшевый Персик", +"3199":"Плюшевый Хиро", + +"3304":"Хэллоуинский котёл с украшениями", +"3305":"Загадочное существо (+100 к нюху)", +"3306":"Загадочное существо (+100 к зоркости)", +"3307":"Загадочное существо (восстанавливает здоровье)", +"3308":"Загадочное существо (восстанавливает сонливость)", +"3309":"Загадочное существо (+100 к плавательным умениям)", +"3310":"Загадочное существо (+100 к копанию)", +"3311":"Загадочное существо (+100 к боевым умениям)", +"3312":"Загадочное существо (восстанавливает чистоту)", +"3313":"Загадочное существо (+100 к лазанию)", +"3314":"Загадочное существо (эффект декабрина на ~45 мин.)", + +"3406":"Новогодняя открытка", + + "3430": "Лунный камень", + "3956": "Живой рак", + "3957": "Рак (дичь)", + "3958": "Живой рак", + "3959": "Рак (дичь)", + "3960": "Живой рак", + "3961": "Рак (дичь)", + "3962": "Краснобрюхая жерлянка (ядовитая)", + "3963": "Камышовая жаба (ядовитая)", + "3964": "Зелёная жаба (ядовитая)", + "3965": "Карась (обычный)", + "3966": "Сазан (обычный)", + "3967": "Форель (обычная)", + "3968": "Белый амур (обычный)", + "3969": "Чёрный окунь (обычный)", + "3970": "Толстолобик (обычный)", + "3971": "Живой речной угорь", + "3972": "Речной угорь (дичь)", + "3973": "Живой речной угорь", + "3974": "Речной угорь (дичь)", + + "3987": "Коралловый лосось (обычный)", + "3988": "Жёлто-синий луциан (обычный)", + + "3991": "Сиган (обычный)", + "3992": "Рыба-бабочка (обычная)", + "3993": "Плотная водоросль", + "3994": "Большая ракушка (+20 ПУ)", + "3995": "Большая ракушка (+30 ПУ)", + + "3997": "Небольшая ракушка (-8 мин сна в водах)", + "3998": "Небольшая ракушка (+15 ПУ)", + "3999": "Небольшая ракушка (+28 ПУ)", + "4000": "Горстка васильковых ракушек", + + "4008": "Ком из веток и водорослей", + "4040": "Сердце речных глубин", + + "5834": "Крольчонок с бантиком", + "6018": "Огненная ящерица сумрачного леса", +"6020": "Душа Фурвентуса [0/3]", +"6021": "Душа Фурвентуса [1/3]", +"6022": "Душа Фурвентуса [2/3]", +"6023": "Душа Фурвентуса [3/3]", +"6024": "Душа Арулиса [0/3]", +"6025": "Душа Арулиса [1/3]", +"6026": "Душа Арулиса [2/3]", +"6027": "Душа Арулиса [3/3]", +"6028": "Душа Аригниса [0/3]", +"6029": "Душа Аригниса [1/3]", +"6030": "Душа Аригниса [2/3]", +"6031": "Душа Аригниса [3/3]", +"6032": "Душа Белифуса [0/3]", +"6033": "Душа Белифуса [1/3]", +"6034": "Душа Белифуса [2/3]", +"6035": "Душа Белифуса [3/3]", +"6036": "Проклятие Верховного Существа [0/3]", +"6037": "Проклятие Верховного Существа [1/3]", +"6038": "Проклятие Верховного Существа [2/3]", +"6039": "Проклятие Верховного Существа [3/3]" +} diff --git a/web/data/jquery-3.4.1.min.js b/web/data/jquery-3.4.1.min.js new file mode 100644 index 0000000..a1c07fd --- /dev/null +++ b/web/data/jquery-3.4.1.min.js @@ -0,0 +1,2 @@ +/*! jQuery v3.4.1 | (c) JS Foundation and other contributors | jquery.org/license */ +!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";var t=[],E=C.document,r=Object.getPrototypeOf,s=t.slice,g=t.concat,u=t.push,i=t.indexOf,n={},o=n.toString,v=n.hasOwnProperty,a=v.toString,l=a.call(Object),y={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},x=function(e){return null!=e&&e===e.window},c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||E).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.4.1",k=function(e,t){return new k.fn.init(e,t)},p=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function d(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp($),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+$),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),ne=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){T()},ae=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{H.apply(t=O.call(m.childNodes),m.childNodes),t[m.childNodes.length].nodeType}catch(e){H={apply:t.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&((e?e.ownerDocument||e:m)!==C&&T(e),e=e||C,E)){if(11!==p&&(u=Z.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(f&&(a=f.getElementById(i))&&y(e,a)&&a.id===i)return n.push(a),n}else{if(u[2])return H.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&d.getElementsByClassName&&e.getElementsByClassName)return H.apply(n,e.getElementsByClassName(i)),n}if(d.qsa&&!A[t+" "]&&(!v||!v.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===p&&U.test(t)){(s=e.getAttribute("id"))?s=s.replace(re,ie):e.setAttribute("id",s=k),o=(l=h(t)).length;while(o--)l[o]="#"+s+" "+xe(l[o]);c=l.join(","),f=ee.test(t)&&ye(e.parentNode)||e}try{return H.apply(n,f.querySelectorAll(c)),n}catch(e){A(t,!0)}finally{s===k&&e.removeAttribute("id")}}}return g(t.replace(B,"$1"),e,n,r)}function ue(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function le(e){return e[k]=!0,e}function ce(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){var n=e.split("|"),r=n.length;while(r--)b.attrHandle[n[r]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function de(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ve(a){return le(function(o){return o=+o,le(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ye(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in d=se.support={},i=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},T=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:m;return r!==C&&9===r.nodeType&&r.documentElement&&(a=(C=r).documentElement,E=!i(C),m!==C&&(n=C.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),d.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=ce(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=K.test(C.getElementsByClassName),d.getById=ce(function(e){return a.appendChild(e).id=k,!C.getElementsByName||!C.getElementsByName(k).length}),d.getById?(b.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(te,ne);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=d.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},b.find.CLASS=d.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&E)return t.getElementsByClassName(e)},s=[],v=[],(d.qsa=K.test(C.querySelectorAll))&&(ce(function(e){a.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+k+"-]").length||v.push("~="),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+k+"+*").length||v.push(".#.+[+~]")}),ce(function(e){e.innerHTML="";var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(d.matchesSelector=K.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ce(function(e){d.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",$)}),v=v.length&&new RegExp(v.join("|")),s=s.length&&new RegExp(s.join("|")),t=K.test(a.compareDocumentPosition),y=t||K.test(a.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},D=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e===C||e.ownerDocument===m&&y(m,e)?-1:t===C||t.ownerDocument===m&&y(m,t)?1:u?P(u,e)-P(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e===C?-1:t===C?1:i?-1:o?1:u?P(u,e)-P(u,t):0;if(i===o)return pe(e,t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?pe(a[r],s[r]):a[r]===m?-1:s[r]===m?1:0}),C},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if((e.ownerDocument||e)!==C&&T(e),d.matchesSelector&&E&&!A[t+" "]&&(!s||!s.test(t))&&(!v||!v.test(t)))try{var n=c.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){A(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=p[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&p(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=se.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(e,n,r){return m(n)?k.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?k.grep(e,function(e){return e===n!==r}):"string"!=typeof n?k.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(k.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||q,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:L.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof k?t[0]:t,k.merge(this,k.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:E,!0)),D.test(r[1])&&k.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=E.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(k):k.makeArray(e,this)}).prototype=k.fn,q=k(E);var H=/^(?:parents|prev(?:Until|All))/,O={children:!0,contents:!0,next:!0,prev:!0};function P(e,t){while((e=e[t])&&1!==e.nodeType);return e}k.fn.extend({has:function(e){var t=k(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i,ge={option:[1,""],thead:[1,"","
    "],col:[2,"","
    "],tr:[2,"","
    "],td:[3,"","
    "],_default:[0,"",""]};function ve(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?k.merge([e],n):n}function ye(e,t){for(var n=0,r=e.length;nx",y.noCloneChecked=!!me.cloneNode(!0).lastChild.defaultValue;var Te=/^key/,Ce=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ee=/^([^.]*)(?:\.(.+)|)/;function ke(){return!0}function Se(){return!1}function Ne(e,t){return e===function(){try{return E.activeElement}catch(e){}}()==("focus"===t)}function Ae(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Ae(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Se;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return k().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=k.guid++)),e.each(function(){k.event.add(this,t,i,r,n)})}function De(e,i,o){o?(Q.set(e,i,!1),k.event.add(e,i,{namespace:!1,handler:function(e){var t,n,r=Q.get(this,i);if(1&e.isTrigger&&this[i]){if(r.length)(k.event.special[i]||{}).delegateType&&e.stopPropagation();else if(r=s.call(arguments),Q.set(this,i,r),t=o(this,i),this[i](),r!==(n=Q.get(this,i))||t?Q.set(this,i,!1):n={},r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n.value}else r.length&&(Q.set(this,i,{value:k.event.trigger(k.extend(r[0],k.Event.prototype),r.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Q.get(e,i)&&k.event.add(e,i,ke)}k.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Q.get(t);if(v){n.handler&&(n=(o=n).handler,i=o.selector),i&&k.find.matchesSelector(ie,i),n.guid||(n.guid=k.guid++),(u=v.events)||(u=v.events={}),(a=v.handle)||(a=v.handle=function(e){return"undefined"!=typeof k&&k.event.triggered!==e.type?k.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(R)||[""]).length;while(l--)d=g=(s=Ee.exec(e[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=k.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=k.event.special[d]||{},c=k.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&k.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,h,a)||t.addEventListener&&t.addEventListener(d,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),k.event.global[d]=!0)}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Q.hasData(e)&&Q.get(e);if(v&&(u=v.events)){l=(t=(t||"").match(R)||[""]).length;while(l--)if(d=g=(s=Ee.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){f=k.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;while(o--)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||k.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)k.event.remove(e,d+t[l],n,r,!0);k.isEmptyObject(u)&&Q.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=k.event.fix(e),u=new Array(arguments.length),l=(Q.get(this,"events")||{})[s.type]||[],c=k.event.special[s.type]||{};for(u[0]=s,t=1;t\x20\t\r\n\f]*)[^>]*)\/>/gi,qe=/\s*$/g;function Oe(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&k(e).children("tbody")[0]||e}function Pe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Re(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Me(e,t){var n,r,i,o,a,s,u,l;if(1===t.nodeType){if(Q.hasData(e)&&(o=Q.access(e),a=Q.set(t,o),l=o.events))for(i in delete a.handle,a.events={},l)for(n=0,r=l[i].length;n")},clone:function(e,t,n){var r,i,o,a,s,u,l,c=e.cloneNode(!0),f=oe(e);if(!(y.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||k.isXMLDoc(e)))for(a=ve(c),r=0,i=(o=ve(e)).length;r").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),E.head.appendChild(r[0])},abort:function(){i&&i()}}});var Vt,Gt=[],Yt=/(=)\?(?=&|$)|\?\?/;k.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Gt.pop()||k.expando+"_"+kt++;return this[e]=!0,e}}),k.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Yt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Yt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=m(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Yt,"$1"+r):!1!==e.jsonp&&(e.url+=(St.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||k.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=C[r],C[r]=function(){o=arguments},n.always(function(){void 0===i?k(C).removeProp(r):C[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Gt.push(r)),o&&m(i)&&i(o[0]),o=i=void 0}),"script"}),y.createHTMLDocument=((Vt=E.implementation.createHTMLDocument("").body).innerHTML="

    ",2===Vt.childNodes.length),k.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?((r=(t=E.implementation.createHTMLDocument("")).createElement("base")).href=E.location.href,t.head.appendChild(r)):t=E),o=!n&&[],(i=D.exec(e))?[t.createElement(i[1])]:(i=we([e],t,o),o&&o.length&&k(o).remove(),k.merge([],i.childNodes)));var r,i,o},k.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1").append(k.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},k.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){k.fn[t]=function(e){return this.on(t,e)}}),k.expr.pseudos.animated=function(t){return k.grep(k.timers,function(e){return t===e.elem}).length},k.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=k.css(e,"position"),c=k(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=k.css(e,"top"),u=k.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),m(t)&&(t=t.call(e,n,k.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},k.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){k.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===k.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===k.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=k(e).offset()).top+=k.css(e,"borderTopWidth",!0),i.left+=k.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-k.css(r,"marginTop",!0),left:t.left-i.left-k.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===k.css(e,"position"))e=e.offsetParent;return e||ie})}}),k.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;k.fn[t]=function(e){return _(this,function(e,t,n){var r;if(x(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),k.each(["top","left"],function(e,n){k.cssHooks[n]=ze(y.pixelPosition,function(e,t){if(t)return t=_e(e,n),$e.test(t)?k(e).position()[n]+"px":t})}),k.each({Height:"height",Width:"width"},function(a,s){k.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){k.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return _(this,function(e,t,n){var r;return x(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?k.css(e,t,i):k.style(e,t,n,i)},s,n?e:void 0,n)}})}),k.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){k.fn[n]=function(e,t){return 0>label: Widget +//>>group: Core +//>>description: Provides a factory for creating stateful widgets with a common API. +//>>docs: http://api.jqueryui.com/jQuery.widget/ +//>>demos: http://jqueryui.com/widget/ + + + +var widgetUuid = 0; +var widgetSlice = Array.prototype.slice; + +$.cleanData = ( function( orig ) { + return function( elems ) { + var events, elem, i; + for ( i = 0; ( elem = elems[ i ] ) != null; i++ ) { + try { + + // Only trigger remove when necessary to save time + events = $._data( elem, "events" ); + if ( events && events.remove ) { + $( elem ).triggerHandler( "remove" ); + } + + // Http://bugs.jquery.com/ticket/8235 + } catch ( e ) {} + } + orig( elems ); + }; +} )( $.cleanData ); + +$.widget = function( name, base, prototype ) { + var existingConstructor, constructor, basePrototype; + + // ProxiedPrototype allows the provided prototype to remain unmodified + // so that it can be used as a mixin for multiple widgets (#8876) + var proxiedPrototype = {}; + + var namespace = name.split( "." )[ 0 ]; + name = name.split( "." )[ 1 ]; + var fullName = namespace + "-" + name; + + if ( !prototype ) { + prototype = base; + base = $.Widget; + } + + if ( $.isArray( prototype ) ) { + prototype = $.extend.apply( null, [ {} ].concat( prototype ) ); + } + + // Create selector for plugin + $.expr[ ":" ][ fullName.toLowerCase() ] = function( elem ) { + return !!$.data( elem, fullName ); + }; + + $[ namespace ] = $[ namespace ] || {}; + existingConstructor = $[ namespace ][ name ]; + constructor = $[ namespace ][ name ] = function( options, element ) { + + // Allow instantiation without "new" keyword + if ( !this._createWidget ) { + return new constructor( options, element ); + } + + // Allow instantiation without initializing for simple inheritance + // must use "new" keyword (the code above always passes args) + if ( arguments.length ) { + this._createWidget( options, element ); + } + }; + + // Extend with the existing constructor to carry over any static properties + $.extend( constructor, existingConstructor, { + version: prototype.version, + + // Copy the object used to create the prototype in case we need to + // redefine the widget later + _proto: $.extend( {}, prototype ), + + // Track widgets that inherit from this widget in case this widget is + // redefined after a widget inherits from it + _childConstructors: [] + } ); + + basePrototype = new base(); + + // We need to make the options hash a property directly on the new instance + // otherwise we'll modify the options hash on the prototype that we're + // inheriting from + basePrototype.options = $.widget.extend( {}, basePrototype.options ); + $.each( prototype, function( prop, value ) { + if ( !$.isFunction( value ) ) { + proxiedPrototype[ prop ] = value; + return; + } + proxiedPrototype[ prop ] = ( function() { + function _super() { + return base.prototype[ prop ].apply( this, arguments ); + } + + function _superApply( args ) { + return base.prototype[ prop ].apply( this, args ); + } + + return function() { + var __super = this._super; + var __superApply = this._superApply; + var returnValue; + + this._super = _super; + this._superApply = _superApply; + + returnValue = value.apply( this, arguments ); + + this._super = __super; + this._superApply = __superApply; + + return returnValue; + }; + } )(); + } ); + constructor.prototype = $.widget.extend( basePrototype, { + + // TODO: remove support for widgetEventPrefix + // always use the name + a colon as the prefix, e.g., draggable:start + // don't prefix for widgets that aren't DOM-based + widgetEventPrefix: existingConstructor ? ( basePrototype.widgetEventPrefix || name ) : name + }, proxiedPrototype, { + constructor: constructor, + namespace: namespace, + widgetName: name, + widgetFullName: fullName + } ); + + // If this widget is being redefined then we need to find all widgets that + // are inheriting from it and redefine all of them so that they inherit from + // the new version of this widget. We're essentially trying to replace one + // level in the prototype chain. + if ( existingConstructor ) { + $.each( existingConstructor._childConstructors, function( i, child ) { + var childPrototype = child.prototype; + + // Redefine the child widget using the same prototype that was + // originally used, but inherit from the new version of the base + $.widget( childPrototype.namespace + "." + childPrototype.widgetName, constructor, + child._proto ); + } ); + + // Remove the list of existing child constructors from the old constructor + // so the old child constructors can be garbage collected + delete existingConstructor._childConstructors; + } else { + base._childConstructors.push( constructor ); + } + + $.widget.bridge( name, constructor ); + + return constructor; +}; + +$.widget.extend = function( target ) { + var input = widgetSlice.call( arguments, 1 ); + var inputIndex = 0; + var inputLength = input.length; + var key; + var value; + + for ( ; inputIndex < inputLength; inputIndex++ ) { + for ( key in input[ inputIndex ] ) { + value = input[ inputIndex ][ key ]; + if ( input[ inputIndex ].hasOwnProperty( key ) && value !== undefined ) { + + // Clone objects + if ( $.isPlainObject( value ) ) { + target[ key ] = $.isPlainObject( target[ key ] ) ? + $.widget.extend( {}, target[ key ], value ) : + + // Don't extend strings, arrays, etc. with objects + $.widget.extend( {}, value ); + + // Copy everything else by reference + } else { + target[ key ] = value; + } + } + } + } + return target; +}; + +$.widget.bridge = function( name, object ) { + var fullName = object.prototype.widgetFullName || name; + $.fn[ name ] = function( options ) { + var isMethodCall = typeof options === "string"; + var args = widgetSlice.call( arguments, 1 ); + var returnValue = this; + + if ( isMethodCall ) { + + // If this is an empty collection, we need to have the instance method + // return undefined instead of the jQuery instance + if ( !this.length && options === "instance" ) { + returnValue = undefined; + } else { + this.each( function() { + var methodValue; + var instance = $.data( this, fullName ); + + if ( options === "instance" ) { + returnValue = instance; + return false; + } + + if ( !instance ) { + return $.error( "cannot call methods on " + name + + " prior to initialization; " + + "attempted to call method '" + options + "'" ); + } + + if ( !$.isFunction( instance[ options ] ) || options.charAt( 0 ) === "_" ) { + return $.error( "no such method '" + options + "' for " + name + + " widget instance" ); + } + + methodValue = instance[ options ].apply( instance, args ); + + if ( methodValue !== instance && methodValue !== undefined ) { + returnValue = methodValue && methodValue.jquery ? + returnValue.pushStack( methodValue.get() ) : + methodValue; + return false; + } + } ); + } + } else { + + // Allow multiple hashes to be passed on init + if ( args.length ) { + options = $.widget.extend.apply( null, [ options ].concat( args ) ); + } + + this.each( function() { + var instance = $.data( this, fullName ); + if ( instance ) { + instance.option( options || {} ); + if ( instance._init ) { + instance._init(); + } + } else { + $.data( this, fullName, new object( options, this ) ); + } + } ); + } + + return returnValue; + }; +}; + +$.Widget = function( /* options, element */ ) {}; +$.Widget._childConstructors = []; + +$.Widget.prototype = { + widgetName: "widget", + widgetEventPrefix: "", + defaultElement: "
    ", + + options: { + classes: {}, + disabled: false, + + // Callbacks + create: null + }, + + _createWidget: function( options, element ) { + element = $( element || this.defaultElement || this )[ 0 ]; + this.element = $( element ); + this.uuid = widgetUuid++; + this.eventNamespace = "." + this.widgetName + this.uuid; + + this.bindings = $(); + this.hoverable = $(); + this.focusable = $(); + this.classesElementLookup = {}; + + if ( element !== this ) { + $.data( element, this.widgetFullName, this ); + this._on( true, this.element, { + remove: function( event ) { + if ( event.target === element ) { + this.destroy(); + } + } + } ); + this.document = $( element.style ? + + // Element within the document + element.ownerDocument : + + // Element is window or document + element.document || element ); + this.window = $( this.document[ 0 ].defaultView || this.document[ 0 ].parentWindow ); + } + + this.options = $.widget.extend( {}, + this.options, + this._getCreateOptions(), + options ); + + this._create(); + + if ( this.options.disabled ) { + this._setOptionDisabled( this.options.disabled ); + } + + this._trigger( "create", null, this._getCreateEventData() ); + this._init(); + }, + + _getCreateOptions: function() { + return {}; + }, + + _getCreateEventData: $.noop, + + _create: $.noop, + + _init: $.noop, + + destroy: function() { + var that = this; + + this._destroy(); + $.each( this.classesElementLookup, function( key, value ) { + that._removeClass( value, key ); + } ); + + // We can probably remove the unbind calls in 2.0 + // all event bindings should go through this._on() + this.element + .off( this.eventNamespace ) + .removeData( this.widgetFullName ); + this.widget() + .off( this.eventNamespace ) + .removeAttr( "aria-disabled" ); + + // Clean up events and states + this.bindings.off( this.eventNamespace ); + }, + + _destroy: $.noop, + + widget: function() { + return this.element; + }, + + option: function( key, value ) { + var options = key; + var parts; + var curOption; + var i; + + if ( arguments.length === 0 ) { + + // Don't return a reference to the internal hash + return $.widget.extend( {}, this.options ); + } + + if ( typeof key === "string" ) { + + // Handle nested keys, e.g., "foo.bar" => { foo: { bar: ___ } } + options = {}; + parts = key.split( "." ); + key = parts.shift(); + if ( parts.length ) { + curOption = options[ key ] = $.widget.extend( {}, this.options[ key ] ); + for ( i = 0; i < parts.length - 1; i++ ) { + curOption[ parts[ i ] ] = curOption[ parts[ i ] ] || {}; + curOption = curOption[ parts[ i ] ]; + } + key = parts.pop(); + if ( arguments.length === 1 ) { + return curOption[ key ] === undefined ? null : curOption[ key ]; + } + curOption[ key ] = value; + } else { + if ( arguments.length === 1 ) { + return this.options[ key ] === undefined ? null : this.options[ key ]; + } + options[ key ] = value; + } + } + + this._setOptions( options ); + + return this; + }, + + _setOptions: function( options ) { + var key; + + for ( key in options ) { + this._setOption( key, options[ key ] ); + } + + return this; + }, + + _setOption: function( key, value ) { + if ( key === "classes" ) { + this._setOptionClasses( value ); + } + + this.options[ key ] = value; + + if ( key === "disabled" ) { + this._setOptionDisabled( value ); + } + + return this; + }, + + _setOptionClasses: function( value ) { + var classKey, elements, currentElements; + + for ( classKey in value ) { + currentElements = this.classesElementLookup[ classKey ]; + if ( value[ classKey ] === this.options.classes[ classKey ] || + !currentElements || + !currentElements.length ) { + continue; + } + + // We are doing this to create a new jQuery object because the _removeClass() call + // on the next line is going to destroy the reference to the current elements being + // tracked. We need to save a copy of this collection so that we can add the new classes + // below. + elements = $( currentElements.get() ); + this._removeClass( currentElements, classKey ); + + // We don't use _addClass() here, because that uses this.options.classes + // for generating the string of classes. We want to use the value passed in from + // _setOption(), this is the new value of the classes option which was passed to + // _setOption(). We pass this value directly to _classes(). + elements.addClass( this._classes( { + element: elements, + keys: classKey, + classes: value, + add: true + } ) ); + } + }, + + _setOptionDisabled: function( value ) { + this._toggleClass( this.widget(), this.widgetFullName + "-disabled", null, !!value ); + + // If the widget is becoming disabled, then nothing is interactive + if ( value ) { + this._removeClass( this.hoverable, null, "ui-state-hover" ); + this._removeClass( this.focusable, null, "ui-state-focus" ); + } + }, + + enable: function() { + return this._setOptions( { disabled: false } ); + }, + + disable: function() { + return this._setOptions( { disabled: true } ); + }, + + _classes: function( options ) { + var full = []; + var that = this; + + options = $.extend( { + element: this.element, + classes: this.options.classes || {} + }, options ); + + function processClassString( classes, checkOption ) { + var current, i; + for ( i = 0; i < classes.length; i++ ) { + current = that.classesElementLookup[ classes[ i ] ] || $(); + if ( options.add ) { + current = $( $.unique( current.get().concat( options.element.get() ) ) ); + } else { + current = $( current.not( options.element ).get() ); + } + that.classesElementLookup[ classes[ i ] ] = current; + full.push( classes[ i ] ); + if ( checkOption && options.classes[ classes[ i ] ] ) { + full.push( options.classes[ classes[ i ] ] ); + } + } + } + + this._on( options.element, { + "remove": "_untrackClassesElement" + } ); + + if ( options.keys ) { + processClassString( options.keys.match( /\S+/g ) || [], true ); + } + if ( options.extra ) { + processClassString( options.extra.match( /\S+/g ) || [] ); + } + + return full.join( " " ); + }, + + _untrackClassesElement: function( event ) { + var that = this; + $.each( that.classesElementLookup, function( key, value ) { + if ( $.inArray( event.target, value ) !== -1 ) { + that.classesElementLookup[ key ] = $( value.not( event.target ).get() ); + } + } ); + }, + + _removeClass: function( element, keys, extra ) { + return this._toggleClass( element, keys, extra, false ); + }, + + _addClass: function( element, keys, extra ) { + return this._toggleClass( element, keys, extra, true ); + }, + + _toggleClass: function( element, keys, extra, add ) { + add = ( typeof add === "boolean" ) ? add : extra; + var shift = ( typeof element === "string" || element === null ), + options = { + extra: shift ? keys : extra, + keys: shift ? element : keys, + element: shift ? this.element : element, + add: add + }; + options.element.toggleClass( this._classes( options ), add ); + return this; + }, + + _on: function( suppressDisabledCheck, element, handlers ) { + var delegateElement; + var instance = this; + + // No suppressDisabledCheck flag, shuffle arguments + if ( typeof suppressDisabledCheck !== "boolean" ) { + handlers = element; + element = suppressDisabledCheck; + suppressDisabledCheck = false; + } + + // No element argument, shuffle and use this.element + if ( !handlers ) { + handlers = element; + element = this.element; + delegateElement = this.widget(); + } else { + element = delegateElement = $( element ); + this.bindings = this.bindings.add( element ); + } + + $.each( handlers, function( event, handler ) { + function handlerProxy() { + + // Allow widgets to customize the disabled handling + // - disabled as an array instead of boolean + // - disabled class as method for disabling individual parts + if ( !suppressDisabledCheck && + ( instance.options.disabled === true || + $( this ).hasClass( "ui-state-disabled" ) ) ) { + return; + } + return ( typeof handler === "string" ? instance[ handler ] : handler ) + .apply( instance, arguments ); + } + + // Copy the guid so direct unbinding works + if ( typeof handler !== "string" ) { + handlerProxy.guid = handler.guid = + handler.guid || handlerProxy.guid || $.guid++; + } + + var match = event.match( /^([\w:-]*)\s*(.*)$/ ); + var eventName = match[ 1 ] + instance.eventNamespace; + var selector = match[ 2 ]; + + if ( selector ) { + delegateElement.on( eventName, selector, handlerProxy ); + } else { + element.on( eventName, handlerProxy ); + } + } ); + }, + + _off: function( element, eventName ) { + eventName = ( eventName || "" ).split( " " ).join( this.eventNamespace + " " ) + + this.eventNamespace; + element.off( eventName ).off( eventName ); + + // Clear the stack to avoid memory leaks (#10056) + this.bindings = $( this.bindings.not( element ).get() ); + this.focusable = $( this.focusable.not( element ).get() ); + this.hoverable = $( this.hoverable.not( element ).get() ); + }, + + _delay: function( handler, delay ) { + function handlerProxy() { + return ( typeof handler === "string" ? instance[ handler ] : handler ) + .apply( instance, arguments ); + } + var instance = this; + return setTimeout( handlerProxy, delay || 0 ); + }, + + _hoverable: function( element ) { + this.hoverable = this.hoverable.add( element ); + this._on( element, { + mouseenter: function( event ) { + this._addClass( $( event.currentTarget ), null, "ui-state-hover" ); + }, + mouseleave: function( event ) { + this._removeClass( $( event.currentTarget ), null, "ui-state-hover" ); + } + } ); + }, + + _focusable: function( element ) { + this.focusable = this.focusable.add( element ); + this._on( element, { + focusin: function( event ) { + this._addClass( $( event.currentTarget ), null, "ui-state-focus" ); + }, + focusout: function( event ) { + this._removeClass( $( event.currentTarget ), null, "ui-state-focus" ); + } + } ); + }, + + _trigger: function( type, event, data ) { + var prop, orig; + var callback = this.options[ type ]; + + data = data || {}; + event = $.Event( event ); + event.type = ( type === this.widgetEventPrefix ? + type : + this.widgetEventPrefix + type ).toLowerCase(); + + // The original event may come from any element + // so we need to reset the target on the new event + event.target = this.element[ 0 ]; + + // Copy original event properties over to the new event + orig = event.originalEvent; + if ( orig ) { + for ( prop in orig ) { + if ( !( prop in event ) ) { + event[ prop ] = orig[ prop ]; + } + } + } + + this.element.trigger( event, data ); + return !( $.isFunction( callback ) && + callback.apply( this.element[ 0 ], [ event ].concat( data ) ) === false || + event.isDefaultPrevented() ); + } +}; + +$.each( { show: "fadeIn", hide: "fadeOut" }, function( method, defaultEffect ) { + $.Widget.prototype[ "_" + method ] = function( element, options, callback ) { + if ( typeof options === "string" ) { + options = { effect: options }; + } + + var hasOptions; + var effectName = !options ? + method : + options === true || typeof options === "number" ? + defaultEffect : + options.effect || defaultEffect; + + options = options || {}; + if ( typeof options === "number" ) { + options = { duration: options }; + } + + hasOptions = !$.isEmptyObject( options ); + options.complete = callback; + + if ( options.delay ) { + element.delay( options.delay ); + } + + if ( hasOptions && $.effects && $.effects.effect[ effectName ] ) { + element[ method ]( options ); + } else if ( effectName !== method && element[ effectName ] ) { + element[ effectName ]( options.duration, options.easing, callback ); + } else { + element.queue( function( next ) { + $( this )[ method ](); + if ( callback ) { + callback.call( element[ 0 ] ); + } + next(); + } ); + } + }; +} ); + +var widget = $.widget; + + +/*! + * jQuery UI Position 1.12.1 + * http://jqueryui.com + * + * Copyright jQuery Foundation and other contributors + * Released under the MIT license. + * http://jquery.org/license + * + * http://api.jqueryui.com/position/ + */ + +//>>label: Position +//>>group: Core +//>>description: Positions elements relative to other elements. +//>>docs: http://api.jqueryui.com/position/ +//>>demos: http://jqueryui.com/position/ + + +( function() { +var cachedScrollbarWidth, + max = Math.max, + abs = Math.abs, + rhorizontal = /left|center|right/, + rvertical = /top|center|bottom/, + roffset = /[\+\-]\d+(\.[\d]+)?%?/, + rposition = /^\w+/, + rpercent = /%$/, + _position = $.fn.position; + +function getOffsets( offsets, width, height ) { + return [ + parseFloat( offsets[ 0 ] ) * ( rpercent.test( offsets[ 0 ] ) ? width / 100 : 1 ), + parseFloat( offsets[ 1 ] ) * ( rpercent.test( offsets[ 1 ] ) ? height / 100 : 1 ) + ]; +} + +function parseCss( element, property ) { + return parseInt( $.css( element, property ), 10 ) || 0; +} + +function getDimensions( elem ) { + var raw = elem[ 0 ]; + if ( raw.nodeType === 9 ) { + return { + width: elem.width(), + height: elem.height(), + offset: { top: 0, left: 0 } + }; + } + if ( $.isWindow( raw ) ) { + return { + width: elem.width(), + height: elem.height(), + offset: { top: elem.scrollTop(), left: elem.scrollLeft() } + }; + } + if ( raw.preventDefault ) { + return { + width: 0, + height: 0, + offset: { top: raw.pageY, left: raw.pageX } + }; + } + return { + width: elem.outerWidth(), + height: elem.outerHeight(), + offset: elem.offset() + }; +} + +$.position = { + scrollbarWidth: function() { + if ( cachedScrollbarWidth !== undefined ) { + return cachedScrollbarWidth; + } + var w1, w2, + div = $( "
    " + + "
    " ), + innerDiv = div.children()[ 0 ]; + + $( "body" ).append( div ); + w1 = innerDiv.offsetWidth; + div.css( "overflow", "scroll" ); + + w2 = innerDiv.offsetWidth; + + if ( w1 === w2 ) { + w2 = div[ 0 ].clientWidth; + } + + div.remove(); + + return ( cachedScrollbarWidth = w1 - w2 ); + }, + getScrollInfo: function( within ) { + var overflowX = within.isWindow || within.isDocument ? "" : + within.element.css( "overflow-x" ), + overflowY = within.isWindow || within.isDocument ? "" : + within.element.css( "overflow-y" ), + hasOverflowX = overflowX === "scroll" || + ( overflowX === "auto" && within.width < within.element[ 0 ].scrollWidth ), + hasOverflowY = overflowY === "scroll" || + ( overflowY === "auto" && within.height < within.element[ 0 ].scrollHeight ); + return { + width: hasOverflowY ? $.position.scrollbarWidth() : 0, + height: hasOverflowX ? $.position.scrollbarWidth() : 0 + }; + }, + getWithinInfo: function( element ) { + var withinElement = $( element || window ), + isWindow = $.isWindow( withinElement[ 0 ] ), + isDocument = !!withinElement[ 0 ] && withinElement[ 0 ].nodeType === 9, + hasOffset = !isWindow && !isDocument; + return { + element: withinElement, + isWindow: isWindow, + isDocument: isDocument, + offset: hasOffset ? $( element ).offset() : { left: 0, top: 0 }, + scrollLeft: withinElement.scrollLeft(), + scrollTop: withinElement.scrollTop(), + width: withinElement.outerWidth(), + height: withinElement.outerHeight() + }; + } +}; + +$.fn.position = function( options ) { + if ( !options || !options.of ) { + return _position.apply( this, arguments ); + } + + // Make a copy, we don't want to modify arguments + options = $.extend( {}, options ); + + var atOffset, targetWidth, targetHeight, targetOffset, basePosition, dimensions, + target = $( options.of ), + within = $.position.getWithinInfo( options.within ), + scrollInfo = $.position.getScrollInfo( within ), + collision = ( options.collision || "flip" ).split( " " ), + offsets = {}; + + dimensions = getDimensions( target ); + if ( target[ 0 ].preventDefault ) { + + // Force left top to allow flipping + options.at = "left top"; + } + targetWidth = dimensions.width; + targetHeight = dimensions.height; + targetOffset = dimensions.offset; + + // Clone to reuse original targetOffset later + basePosition = $.extend( {}, targetOffset ); + + // Force my and at to have valid horizontal and vertical positions + // if a value is missing or invalid, it will be converted to center + $.each( [ "my", "at" ], function() { + var pos = ( options[ this ] || "" ).split( " " ), + horizontalOffset, + verticalOffset; + + if ( pos.length === 1 ) { + pos = rhorizontal.test( pos[ 0 ] ) ? + pos.concat( [ "center" ] ) : + rvertical.test( pos[ 0 ] ) ? + [ "center" ].concat( pos ) : + [ "center", "center" ]; + } + pos[ 0 ] = rhorizontal.test( pos[ 0 ] ) ? pos[ 0 ] : "center"; + pos[ 1 ] = rvertical.test( pos[ 1 ] ) ? pos[ 1 ] : "center"; + + // Calculate offsets + horizontalOffset = roffset.exec( pos[ 0 ] ); + verticalOffset = roffset.exec( pos[ 1 ] ); + offsets[ this ] = [ + horizontalOffset ? horizontalOffset[ 0 ] : 0, + verticalOffset ? verticalOffset[ 0 ] : 0 + ]; + + // Reduce to just the positions without the offsets + options[ this ] = [ + rposition.exec( pos[ 0 ] )[ 0 ], + rposition.exec( pos[ 1 ] )[ 0 ] + ]; + } ); + + // Normalize collision option + if ( collision.length === 1 ) { + collision[ 1 ] = collision[ 0 ]; + } + + if ( options.at[ 0 ] === "right" ) { + basePosition.left += targetWidth; + } else if ( options.at[ 0 ] === "center" ) { + basePosition.left += targetWidth / 2; + } + + if ( options.at[ 1 ] === "bottom" ) { + basePosition.top += targetHeight; + } else if ( options.at[ 1 ] === "center" ) { + basePosition.top += targetHeight / 2; + } + + atOffset = getOffsets( offsets.at, targetWidth, targetHeight ); + basePosition.left += atOffset[ 0 ]; + basePosition.top += atOffset[ 1 ]; + + return this.each( function() { + var collisionPosition, using, + elem = $( this ), + elemWidth = elem.outerWidth(), + elemHeight = elem.outerHeight(), + marginLeft = parseCss( this, "marginLeft" ), + marginTop = parseCss( this, "marginTop" ), + collisionWidth = elemWidth + marginLeft + parseCss( this, "marginRight" ) + + scrollInfo.width, + collisionHeight = elemHeight + marginTop + parseCss( this, "marginBottom" ) + + scrollInfo.height, + position = $.extend( {}, basePosition ), + myOffset = getOffsets( offsets.my, elem.outerWidth(), elem.outerHeight() ); + + if ( options.my[ 0 ] === "right" ) { + position.left -= elemWidth; + } else if ( options.my[ 0 ] === "center" ) { + position.left -= elemWidth / 2; + } + + if ( options.my[ 1 ] === "bottom" ) { + position.top -= elemHeight; + } else if ( options.my[ 1 ] === "center" ) { + position.top -= elemHeight / 2; + } + + position.left += myOffset[ 0 ]; + position.top += myOffset[ 1 ]; + + collisionPosition = { + marginLeft: marginLeft, + marginTop: marginTop + }; + + $.each( [ "left", "top" ], function( i, dir ) { + if ( $.ui.position[ collision[ i ] ] ) { + $.ui.position[ collision[ i ] ][ dir ]( position, { + targetWidth: targetWidth, + targetHeight: targetHeight, + elemWidth: elemWidth, + elemHeight: elemHeight, + collisionPosition: collisionPosition, + collisionWidth: collisionWidth, + collisionHeight: collisionHeight, + offset: [ atOffset[ 0 ] + myOffset[ 0 ], atOffset [ 1 ] + myOffset[ 1 ] ], + my: options.my, + at: options.at, + within: within, + elem: elem + } ); + } + } ); + + if ( options.using ) { + + // Adds feedback as second argument to using callback, if present + using = function( props ) { + var left = targetOffset.left - position.left, + right = left + targetWidth - elemWidth, + top = targetOffset.top - position.top, + bottom = top + targetHeight - elemHeight, + feedback = { + target: { + element: target, + left: targetOffset.left, + top: targetOffset.top, + width: targetWidth, + height: targetHeight + }, + element: { + element: elem, + left: position.left, + top: position.top, + width: elemWidth, + height: elemHeight + }, + horizontal: right < 0 ? "left" : left > 0 ? "right" : "center", + vertical: bottom < 0 ? "top" : top > 0 ? "bottom" : "middle" + }; + if ( targetWidth < elemWidth && abs( left + right ) < targetWidth ) { + feedback.horizontal = "center"; + } + if ( targetHeight < elemHeight && abs( top + bottom ) < targetHeight ) { + feedback.vertical = "middle"; + } + if ( max( abs( left ), abs( right ) ) > max( abs( top ), abs( bottom ) ) ) { + feedback.important = "horizontal"; + } else { + feedback.important = "vertical"; + } + options.using.call( this, props, feedback ); + }; + } + + elem.offset( $.extend( position, { using: using } ) ); + } ); +}; + +$.ui.position = { + fit: { + left: function( position, data ) { + var within = data.within, + withinOffset = within.isWindow ? within.scrollLeft : within.offset.left, + outerWidth = within.width, + collisionPosLeft = position.left - data.collisionPosition.marginLeft, + overLeft = withinOffset - collisionPosLeft, + overRight = collisionPosLeft + data.collisionWidth - outerWidth - withinOffset, + newOverRight; + + // Element is wider than within + if ( data.collisionWidth > outerWidth ) { + + // Element is initially over the left side of within + if ( overLeft > 0 && overRight <= 0 ) { + newOverRight = position.left + overLeft + data.collisionWidth - outerWidth - + withinOffset; + position.left += overLeft - newOverRight; + + // Element is initially over right side of within + } else if ( overRight > 0 && overLeft <= 0 ) { + position.left = withinOffset; + + // Element is initially over both left and right sides of within + } else { + if ( overLeft > overRight ) { + position.left = withinOffset + outerWidth - data.collisionWidth; + } else { + position.left = withinOffset; + } + } + + // Too far left -> align with left edge + } else if ( overLeft > 0 ) { + position.left += overLeft; + + // Too far right -> align with right edge + } else if ( overRight > 0 ) { + position.left -= overRight; + + // Adjust based on position and margin + } else { + position.left = max( position.left - collisionPosLeft, position.left ); + } + }, + top: function( position, data ) { + var within = data.within, + withinOffset = within.isWindow ? within.scrollTop : within.offset.top, + outerHeight = data.within.height, + collisionPosTop = position.top - data.collisionPosition.marginTop, + overTop = withinOffset - collisionPosTop, + overBottom = collisionPosTop + data.collisionHeight - outerHeight - withinOffset, + newOverBottom; + + // Element is taller than within + if ( data.collisionHeight > outerHeight ) { + + // Element is initially over the top of within + if ( overTop > 0 && overBottom <= 0 ) { + newOverBottom = position.top + overTop + data.collisionHeight - outerHeight - + withinOffset; + position.top += overTop - newOverBottom; + + // Element is initially over bottom of within + } else if ( overBottom > 0 && overTop <= 0 ) { + position.top = withinOffset; + + // Element is initially over both top and bottom of within + } else { + if ( overTop > overBottom ) { + position.top = withinOffset + outerHeight - data.collisionHeight; + } else { + position.top = withinOffset; + } + } + + // Too far up -> align with top + } else if ( overTop > 0 ) { + position.top += overTop; + + // Too far down -> align with bottom edge + } else if ( overBottom > 0 ) { + position.top -= overBottom; + + // Adjust based on position and margin + } else { + position.top = max( position.top - collisionPosTop, position.top ); + } + } + }, + flip: { + left: function( position, data ) { + var within = data.within, + withinOffset = within.offset.left + within.scrollLeft, + outerWidth = within.width, + offsetLeft = within.isWindow ? within.scrollLeft : within.offset.left, + collisionPosLeft = position.left - data.collisionPosition.marginLeft, + overLeft = collisionPosLeft - offsetLeft, + overRight = collisionPosLeft + data.collisionWidth - outerWidth - offsetLeft, + myOffset = data.my[ 0 ] === "left" ? + -data.elemWidth : + data.my[ 0 ] === "right" ? + data.elemWidth : + 0, + atOffset = data.at[ 0 ] === "left" ? + data.targetWidth : + data.at[ 0 ] === "right" ? + -data.targetWidth : + 0, + offset = -2 * data.offset[ 0 ], + newOverRight, + newOverLeft; + + if ( overLeft < 0 ) { + newOverRight = position.left + myOffset + atOffset + offset + data.collisionWidth - + outerWidth - withinOffset; + if ( newOverRight < 0 || newOverRight < abs( overLeft ) ) { + position.left += myOffset + atOffset + offset; + } + } else if ( overRight > 0 ) { + newOverLeft = position.left - data.collisionPosition.marginLeft + myOffset + + atOffset + offset - offsetLeft; + if ( newOverLeft > 0 || abs( newOverLeft ) < overRight ) { + position.left += myOffset + atOffset + offset; + } + } + }, + top: function( position, data ) { + var within = data.within, + withinOffset = within.offset.top + within.scrollTop, + outerHeight = within.height, + offsetTop = within.isWindow ? within.scrollTop : within.offset.top, + collisionPosTop = position.top - data.collisionPosition.marginTop, + overTop = collisionPosTop - offsetTop, + overBottom = collisionPosTop + data.collisionHeight - outerHeight - offsetTop, + top = data.my[ 1 ] === "top", + myOffset = top ? + -data.elemHeight : + data.my[ 1 ] === "bottom" ? + data.elemHeight : + 0, + atOffset = data.at[ 1 ] === "top" ? + data.targetHeight : + data.at[ 1 ] === "bottom" ? + -data.targetHeight : + 0, + offset = -2 * data.offset[ 1 ], + newOverTop, + newOverBottom; + if ( overTop < 0 ) { + newOverBottom = position.top + myOffset + atOffset + offset + data.collisionHeight - + outerHeight - withinOffset; + if ( newOverBottom < 0 || newOverBottom < abs( overTop ) ) { + position.top += myOffset + atOffset + offset; + } + } else if ( overBottom > 0 ) { + newOverTop = position.top - data.collisionPosition.marginTop + myOffset + atOffset + + offset - offsetTop; + if ( newOverTop > 0 || abs( newOverTop ) < overBottom ) { + position.top += myOffset + atOffset + offset; + } + } + } + }, + flipfit: { + left: function() { + $.ui.position.flip.left.apply( this, arguments ); + $.ui.position.fit.left.apply( this, arguments ); + }, + top: function() { + $.ui.position.flip.top.apply( this, arguments ); + $.ui.position.fit.top.apply( this, arguments ); + } + } +}; + +} )(); + +var position = $.ui.position; + + +/*! + * jQuery UI :data 1.12.1 + * http://jqueryui.com + * + * Copyright jQuery Foundation and other contributors + * Released under the MIT license. + * http://jquery.org/license + */ + +//>>label: :data Selector +//>>group: Core +//>>description: Selects elements which have data stored under the specified key. +//>>docs: http://api.jqueryui.com/data-selector/ + + +var data = $.extend( $.expr[ ":" ], { + data: $.expr.createPseudo ? + $.expr.createPseudo( function( dataName ) { + return function( elem ) { + return !!$.data( elem, dataName ); + }; + } ) : + + // Support: jQuery <1.8 + function( elem, i, match ) { + return !!$.data( elem, match[ 3 ] ); + } +} ); + +/*! + * jQuery UI Disable Selection 1.12.1 + * http://jqueryui.com + * + * Copyright jQuery Foundation and other contributors + * Released under the MIT license. + * http://jquery.org/license + */ + +//>>label: disableSelection +//>>group: Core +//>>description: Disable selection of text content within the set of matched elements. +//>>docs: http://api.jqueryui.com/disableSelection/ + +// This file is deprecated + + +var disableSelection = $.fn.extend( { + disableSelection: ( function() { + var eventType = "onselectstart" in document.createElement( "div" ) ? + "selectstart" : + "mousedown"; + + return function() { + return this.on( eventType + ".ui-disableSelection", function( event ) { + event.preventDefault(); + } ); + }; + } )(), + + enableSelection: function() { + return this.off( ".ui-disableSelection" ); + } +} ); + + +/*! + * jQuery UI Effects 1.12.1 + * http://jqueryui.com + * + * Copyright jQuery Foundation and other contributors + * Released under the MIT license. + * http://jquery.org/license + */ + +//>>label: Effects Core +//>>group: Effects +// jscs:disable maximumLineLength +//>>description: Extends the internal jQuery effects. Includes morphing and easing. Required by all other effects. +// jscs:enable maximumLineLength +//>>docs: http://api.jqueryui.com/category/effects-core/ +//>>demos: http://jqueryui.com/effect/ + + + +var dataSpace = "ui-effects-", + dataSpaceStyle = "ui-effects-style", + dataSpaceAnimated = "ui-effects-animated", + + // Create a local jQuery because jQuery Color relies on it and the + // global may not exist with AMD and a custom build (#10199) + jQuery = $; + +$.effects = { + effect: {} +}; + +/*! + * jQuery Color Animations v2.1.2 + * https://github.com/jquery/jquery-color + * + * Copyright 2014 jQuery Foundation and other contributors + * Released under the MIT license. + * http://jquery.org/license + * + * Date: Wed Jan 16 08:47:09 2013 -0600 + */ +( function( jQuery, undefined ) { + + var stepHooks = "backgroundColor borderBottomColor borderLeftColor borderRightColor " + + "borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor", + + // Plusequals test for += 100 -= 100 + rplusequals = /^([\-+])=\s*(\d+\.?\d*)/, + + // A set of RE's that can match strings and generate color tuples. + stringParsers = [ { + re: /rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/, + parse: function( execResult ) { + return [ + execResult[ 1 ], + execResult[ 2 ], + execResult[ 3 ], + execResult[ 4 ] + ]; + } + }, { + re: /rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/, + parse: function( execResult ) { + return [ + execResult[ 1 ] * 2.55, + execResult[ 2 ] * 2.55, + execResult[ 3 ] * 2.55, + execResult[ 4 ] + ]; + } + }, { + + // This regex ignores A-F because it's compared against an already lowercased string + re: /#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/, + parse: function( execResult ) { + return [ + parseInt( execResult[ 1 ], 16 ), + parseInt( execResult[ 2 ], 16 ), + parseInt( execResult[ 3 ], 16 ) + ]; + } + }, { + + // This regex ignores A-F because it's compared against an already lowercased string + re: /#([a-f0-9])([a-f0-9])([a-f0-9])/, + parse: function( execResult ) { + return [ + parseInt( execResult[ 1 ] + execResult[ 1 ], 16 ), + parseInt( execResult[ 2 ] + execResult[ 2 ], 16 ), + parseInt( execResult[ 3 ] + execResult[ 3 ], 16 ) + ]; + } + }, { + re: /hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/, + space: "hsla", + parse: function( execResult ) { + return [ + execResult[ 1 ], + execResult[ 2 ] / 100, + execResult[ 3 ] / 100, + execResult[ 4 ] + ]; + } + } ], + + // JQuery.Color( ) + color = jQuery.Color = function( color, green, blue, alpha ) { + return new jQuery.Color.fn.parse( color, green, blue, alpha ); + }, + spaces = { + rgba: { + props: { + red: { + idx: 0, + type: "byte" + }, + green: { + idx: 1, + type: "byte" + }, + blue: { + idx: 2, + type: "byte" + } + } + }, + + hsla: { + props: { + hue: { + idx: 0, + type: "degrees" + }, + saturation: { + idx: 1, + type: "percent" + }, + lightness: { + idx: 2, + type: "percent" + } + } + } + }, + propTypes = { + "byte": { + floor: true, + max: 255 + }, + "percent": { + max: 1 + }, + "degrees": { + mod: 360, + floor: true + } + }, + support = color.support = {}, + + // Element for support tests + supportElem = jQuery( "

    " )[ 0 ], + + // Colors = jQuery.Color.names + colors, + + // Local aliases of functions called often + each = jQuery.each; + +// Determine rgba support immediately +supportElem.style.cssText = "background-color:rgba(1,1,1,.5)"; +support.rgba = supportElem.style.backgroundColor.indexOf( "rgba" ) > -1; + +// Define cache name and alpha properties +// for rgba and hsla spaces +each( spaces, function( spaceName, space ) { + space.cache = "_" + spaceName; + space.props.alpha = { + idx: 3, + type: "percent", + def: 1 + }; +} ); + +function clamp( value, prop, allowEmpty ) { + var type = propTypes[ prop.type ] || {}; + + if ( value == null ) { + return ( allowEmpty || !prop.def ) ? null : prop.def; + } + + // ~~ is an short way of doing floor for positive numbers + value = type.floor ? ~~value : parseFloat( value ); + + // IE will pass in empty strings as value for alpha, + // which will hit this case + if ( isNaN( value ) ) { + return prop.def; + } + + if ( type.mod ) { + + // We add mod before modding to make sure that negatives values + // get converted properly: -10 -> 350 + return ( value + type.mod ) % type.mod; + } + + // For now all property types without mod have min and max + return 0 > value ? 0 : type.max < value ? type.max : value; +} + +function stringParse( string ) { + var inst = color(), + rgba = inst._rgba = []; + + string = string.toLowerCase(); + + each( stringParsers, function( i, parser ) { + var parsed, + match = parser.re.exec( string ), + values = match && parser.parse( match ), + spaceName = parser.space || "rgba"; + + if ( values ) { + parsed = inst[ spaceName ]( values ); + + // If this was an rgba parse the assignment might happen twice + // oh well.... + inst[ spaces[ spaceName ].cache ] = parsed[ spaces[ spaceName ].cache ]; + rgba = inst._rgba = parsed._rgba; + + // Exit each( stringParsers ) here because we matched + return false; + } + } ); + + // Found a stringParser that handled it + if ( rgba.length ) { + + // If this came from a parsed string, force "transparent" when alpha is 0 + // chrome, (and maybe others) return "transparent" as rgba(0,0,0,0) + if ( rgba.join() === "0,0,0,0" ) { + jQuery.extend( rgba, colors.transparent ); + } + return inst; + } + + // Named colors + return colors[ string ]; +} + +color.fn = jQuery.extend( color.prototype, { + parse: function( red, green, blue, alpha ) { + if ( red === undefined ) { + this._rgba = [ null, null, null, null ]; + return this; + } + if ( red.jquery || red.nodeType ) { + red = jQuery( red ).css( green ); + green = undefined; + } + + var inst = this, + type = jQuery.type( red ), + rgba = this._rgba = []; + + // More than 1 argument specified - assume ( red, green, blue, alpha ) + if ( green !== undefined ) { + red = [ red, green, blue, alpha ]; + type = "array"; + } + + if ( type === "string" ) { + return this.parse( stringParse( red ) || colors._default ); + } + + if ( type === "array" ) { + each( spaces.rgba.props, function( key, prop ) { + rgba[ prop.idx ] = clamp( red[ prop.idx ], prop ); + } ); + return this; + } + + if ( type === "object" ) { + if ( red instanceof color ) { + each( spaces, function( spaceName, space ) { + if ( red[ space.cache ] ) { + inst[ space.cache ] = red[ space.cache ].slice(); + } + } ); + } else { + each( spaces, function( spaceName, space ) { + var cache = space.cache; + each( space.props, function( key, prop ) { + + // If the cache doesn't exist, and we know how to convert + if ( !inst[ cache ] && space.to ) { + + // If the value was null, we don't need to copy it + // if the key was alpha, we don't need to copy it either + if ( key === "alpha" || red[ key ] == null ) { + return; + } + inst[ cache ] = space.to( inst._rgba ); + } + + // This is the only case where we allow nulls for ALL properties. + // call clamp with alwaysAllowEmpty + inst[ cache ][ prop.idx ] = clamp( red[ key ], prop, true ); + } ); + + // Everything defined but alpha? + if ( inst[ cache ] && + jQuery.inArray( null, inst[ cache ].slice( 0, 3 ) ) < 0 ) { + + // Use the default of 1 + inst[ cache ][ 3 ] = 1; + if ( space.from ) { + inst._rgba = space.from( inst[ cache ] ); + } + } + } ); + } + return this; + } + }, + is: function( compare ) { + var is = color( compare ), + same = true, + inst = this; + + each( spaces, function( _, space ) { + var localCache, + isCache = is[ space.cache ]; + if ( isCache ) { + localCache = inst[ space.cache ] || space.to && space.to( inst._rgba ) || []; + each( space.props, function( _, prop ) { + if ( isCache[ prop.idx ] != null ) { + same = ( isCache[ prop.idx ] === localCache[ prop.idx ] ); + return same; + } + } ); + } + return same; + } ); + return same; + }, + _space: function() { + var used = [], + inst = this; + each( spaces, function( spaceName, space ) { + if ( inst[ space.cache ] ) { + used.push( spaceName ); + } + } ); + return used.pop(); + }, + transition: function( other, distance ) { + var end = color( other ), + spaceName = end._space(), + space = spaces[ spaceName ], + startColor = this.alpha() === 0 ? color( "transparent" ) : this, + start = startColor[ space.cache ] || space.to( startColor._rgba ), + result = start.slice(); + + end = end[ space.cache ]; + each( space.props, function( key, prop ) { + var index = prop.idx, + startValue = start[ index ], + endValue = end[ index ], + type = propTypes[ prop.type ] || {}; + + // If null, don't override start value + if ( endValue === null ) { + return; + } + + // If null - use end + if ( startValue === null ) { + result[ index ] = endValue; + } else { + if ( type.mod ) { + if ( endValue - startValue > type.mod / 2 ) { + startValue += type.mod; + } else if ( startValue - endValue > type.mod / 2 ) { + startValue -= type.mod; + } + } + result[ index ] = clamp( ( endValue - startValue ) * distance + startValue, prop ); + } + } ); + return this[ spaceName ]( result ); + }, + blend: function( opaque ) { + + // If we are already opaque - return ourself + if ( this._rgba[ 3 ] === 1 ) { + return this; + } + + var rgb = this._rgba.slice(), + a = rgb.pop(), + blend = color( opaque )._rgba; + + return color( jQuery.map( rgb, function( v, i ) { + return ( 1 - a ) * blend[ i ] + a * v; + } ) ); + }, + toRgbaString: function() { + var prefix = "rgba(", + rgba = jQuery.map( this._rgba, function( v, i ) { + return v == null ? ( i > 2 ? 1 : 0 ) : v; + } ); + + if ( rgba[ 3 ] === 1 ) { + rgba.pop(); + prefix = "rgb("; + } + + return prefix + rgba.join() + ")"; + }, + toHslaString: function() { + var prefix = "hsla(", + hsla = jQuery.map( this.hsla(), function( v, i ) { + if ( v == null ) { + v = i > 2 ? 1 : 0; + } + + // Catch 1 and 2 + if ( i && i < 3 ) { + v = Math.round( v * 100 ) + "%"; + } + return v; + } ); + + if ( hsla[ 3 ] === 1 ) { + hsla.pop(); + prefix = "hsl("; + } + return prefix + hsla.join() + ")"; + }, + toHexString: function( includeAlpha ) { + var rgba = this._rgba.slice(), + alpha = rgba.pop(); + + if ( includeAlpha ) { + rgba.push( ~~( alpha * 255 ) ); + } + + return "#" + jQuery.map( rgba, function( v ) { + + // Default to 0 when nulls exist + v = ( v || 0 ).toString( 16 ); + return v.length === 1 ? "0" + v : v; + } ).join( "" ); + }, + toString: function() { + return this._rgba[ 3 ] === 0 ? "transparent" : this.toRgbaString(); + } +} ); +color.fn.parse.prototype = color.fn; + +// Hsla conversions adapted from: +// https://code.google.com/p/maashaack/source/browse/packages/graphics/trunk/src/graphics/colors/HUE2RGB.as?r=5021 + +function hue2rgb( p, q, h ) { + h = ( h + 1 ) % 1; + if ( h * 6 < 1 ) { + return p + ( q - p ) * h * 6; + } + if ( h * 2 < 1 ) { + return q; + } + if ( h * 3 < 2 ) { + return p + ( q - p ) * ( ( 2 / 3 ) - h ) * 6; + } + return p; +} + +spaces.hsla.to = function( rgba ) { + if ( rgba[ 0 ] == null || rgba[ 1 ] == null || rgba[ 2 ] == null ) { + return [ null, null, null, rgba[ 3 ] ]; + } + var r = rgba[ 0 ] / 255, + g = rgba[ 1 ] / 255, + b = rgba[ 2 ] / 255, + a = rgba[ 3 ], + max = Math.max( r, g, b ), + min = Math.min( r, g, b ), + diff = max - min, + add = max + min, + l = add * 0.5, + h, s; + + if ( min === max ) { + h = 0; + } else if ( r === max ) { + h = ( 60 * ( g - b ) / diff ) + 360; + } else if ( g === max ) { + h = ( 60 * ( b - r ) / diff ) + 120; + } else { + h = ( 60 * ( r - g ) / diff ) + 240; + } + + // Chroma (diff) == 0 means greyscale which, by definition, saturation = 0% + // otherwise, saturation is based on the ratio of chroma (diff) to lightness (add) + if ( diff === 0 ) { + s = 0; + } else if ( l <= 0.5 ) { + s = diff / add; + } else { + s = diff / ( 2 - add ); + } + return [ Math.round( h ) % 360, s, l, a == null ? 1 : a ]; +}; + +spaces.hsla.from = function( hsla ) { + if ( hsla[ 0 ] == null || hsla[ 1 ] == null || hsla[ 2 ] == null ) { + return [ null, null, null, hsla[ 3 ] ]; + } + var h = hsla[ 0 ] / 360, + s = hsla[ 1 ], + l = hsla[ 2 ], + a = hsla[ 3 ], + q = l <= 0.5 ? l * ( 1 + s ) : l + s - l * s, + p = 2 * l - q; + + return [ + Math.round( hue2rgb( p, q, h + ( 1 / 3 ) ) * 255 ), + Math.round( hue2rgb( p, q, h ) * 255 ), + Math.round( hue2rgb( p, q, h - ( 1 / 3 ) ) * 255 ), + a + ]; +}; + +each( spaces, function( spaceName, space ) { + var props = space.props, + cache = space.cache, + to = space.to, + from = space.from; + + // Makes rgba() and hsla() + color.fn[ spaceName ] = function( value ) { + + // Generate a cache for this space if it doesn't exist + if ( to && !this[ cache ] ) { + this[ cache ] = to( this._rgba ); + } + if ( value === undefined ) { + return this[ cache ].slice(); + } + + var ret, + type = jQuery.type( value ), + arr = ( type === "array" || type === "object" ) ? value : arguments, + local = this[ cache ].slice(); + + each( props, function( key, prop ) { + var val = arr[ type === "object" ? key : prop.idx ]; + if ( val == null ) { + val = local[ prop.idx ]; + } + local[ prop.idx ] = clamp( val, prop ); + } ); + + if ( from ) { + ret = color( from( local ) ); + ret[ cache ] = local; + return ret; + } else { + return color( local ); + } + }; + + // Makes red() green() blue() alpha() hue() saturation() lightness() + each( props, function( key, prop ) { + + // Alpha is included in more than one space + if ( color.fn[ key ] ) { + return; + } + color.fn[ key ] = function( value ) { + var vtype = jQuery.type( value ), + fn = ( key === "alpha" ? ( this._hsla ? "hsla" : "rgba" ) : spaceName ), + local = this[ fn ](), + cur = local[ prop.idx ], + match; + + if ( vtype === "undefined" ) { + return cur; + } + + if ( vtype === "function" ) { + value = value.call( this, cur ); + vtype = jQuery.type( value ); + } + if ( value == null && prop.empty ) { + return this; + } + if ( vtype === "string" ) { + match = rplusequals.exec( value ); + if ( match ) { + value = cur + parseFloat( match[ 2 ] ) * ( match[ 1 ] === "+" ? 1 : -1 ); + } + } + local[ prop.idx ] = value; + return this[ fn ]( local ); + }; + } ); +} ); + +// Add cssHook and .fx.step function for each named hook. +// accept a space separated string of properties +color.hook = function( hook ) { + var hooks = hook.split( " " ); + each( hooks, function( i, hook ) { + jQuery.cssHooks[ hook ] = { + set: function( elem, value ) { + var parsed, curElem, + backgroundColor = ""; + + if ( value !== "transparent" && ( jQuery.type( value ) !== "string" || + ( parsed = stringParse( value ) ) ) ) { + value = color( parsed || value ); + if ( !support.rgba && value._rgba[ 3 ] !== 1 ) { + curElem = hook === "backgroundColor" ? elem.parentNode : elem; + while ( + ( backgroundColor === "" || backgroundColor === "transparent" ) && + curElem && curElem.style + ) { + try { + backgroundColor = jQuery.css( curElem, "backgroundColor" ); + curElem = curElem.parentNode; + } catch ( e ) { + } + } + + value = value.blend( backgroundColor && backgroundColor !== "transparent" ? + backgroundColor : + "_default" ); + } + + value = value.toRgbaString(); + } + try { + elem.style[ hook ] = value; + } catch ( e ) { + + // Wrapped to prevent IE from throwing errors on "invalid" values like + // 'auto' or 'inherit' + } + } + }; + jQuery.fx.step[ hook ] = function( fx ) { + if ( !fx.colorInit ) { + fx.start = color( fx.elem, hook ); + fx.end = color( fx.end ); + fx.colorInit = true; + } + jQuery.cssHooks[ hook ].set( fx.elem, fx.start.transition( fx.end, fx.pos ) ); + }; + } ); + +}; + +color.hook( stepHooks ); + +jQuery.cssHooks.borderColor = { + expand: function( value ) { + var expanded = {}; + + each( [ "Top", "Right", "Bottom", "Left" ], function( i, part ) { + expanded[ "border" + part + "Color" ] = value; + } ); + return expanded; + } +}; + +// Basic color names only. +// Usage of any of the other color names requires adding yourself or including +// jquery.color.svg-names.js. +colors = jQuery.Color.names = { + + // 4.1. Basic color keywords + aqua: "#00ffff", + black: "#000000", + blue: "#0000ff", + fuchsia: "#ff00ff", + gray: "#808080", + green: "#008000", + lime: "#00ff00", + maroon: "#800000", + navy: "#000080", + olive: "#808000", + purple: "#800080", + red: "#ff0000", + silver: "#c0c0c0", + teal: "#008080", + white: "#ffffff", + yellow: "#ffff00", + + // 4.2.3. "transparent" color keyword + transparent: [ null, null, null, 0 ], + + _default: "#ffffff" +}; + +} )( jQuery ); + +/******************************************************************************/ +/****************************** CLASS ANIMATIONS ******************************/ +/******************************************************************************/ +( function() { + +var classAnimationActions = [ "add", "remove", "toggle" ], + shorthandStyles = { + border: 1, + borderBottom: 1, + borderColor: 1, + borderLeft: 1, + borderRight: 1, + borderTop: 1, + borderWidth: 1, + margin: 1, + padding: 1 + }; + +$.each( + [ "borderLeftStyle", "borderRightStyle", "borderBottomStyle", "borderTopStyle" ], + function( _, prop ) { + $.fx.step[ prop ] = function( fx ) { + if ( fx.end !== "none" && !fx.setAttr || fx.pos === 1 && !fx.setAttr ) { + jQuery.style( fx.elem, prop, fx.end ); + fx.setAttr = true; + } + }; + } +); + +function getElementStyles( elem ) { + var key, len, + style = elem.ownerDocument.defaultView ? + elem.ownerDocument.defaultView.getComputedStyle( elem, null ) : + elem.currentStyle, + styles = {}; + + if ( style && style.length && style[ 0 ] && style[ style[ 0 ] ] ) { + len = style.length; + while ( len-- ) { + key = style[ len ]; + if ( typeof style[ key ] === "string" ) { + styles[ $.camelCase( key ) ] = style[ key ]; + } + } + + // Support: Opera, IE <9 + } else { + for ( key in style ) { + if ( typeof style[ key ] === "string" ) { + styles[ key ] = style[ key ]; + } + } + } + + return styles; +} + +function styleDifference( oldStyle, newStyle ) { + var diff = {}, + name, value; + + for ( name in newStyle ) { + value = newStyle[ name ]; + if ( oldStyle[ name ] !== value ) { + if ( !shorthandStyles[ name ] ) { + if ( $.fx.step[ name ] || !isNaN( parseFloat( value ) ) ) { + diff[ name ] = value; + } + } + } + } + + return diff; +} + +// Support: jQuery <1.8 +if ( !$.fn.addBack ) { + $.fn.addBack = function( selector ) { + return this.add( selector == null ? + this.prevObject : this.prevObject.filter( selector ) + ); + }; +} + +$.effects.animateClass = function( value, duration, easing, callback ) { + var o = $.speed( duration, easing, callback ); + + return this.queue( function() { + var animated = $( this ), + baseClass = animated.attr( "class" ) || "", + applyClassChange, + allAnimations = o.children ? animated.find( "*" ).addBack() : animated; + + // Map the animated objects to store the original styles. + allAnimations = allAnimations.map( function() { + var el = $( this ); + return { + el: el, + start: getElementStyles( this ) + }; + } ); + + // Apply class change + applyClassChange = function() { + $.each( classAnimationActions, function( i, action ) { + if ( value[ action ] ) { + animated[ action + "Class" ]( value[ action ] ); + } + } ); + }; + applyClassChange(); + + // Map all animated objects again - calculate new styles and diff + allAnimations = allAnimations.map( function() { + this.end = getElementStyles( this.el[ 0 ] ); + this.diff = styleDifference( this.start, this.end ); + return this; + } ); + + // Apply original class + animated.attr( "class", baseClass ); + + // Map all animated objects again - this time collecting a promise + allAnimations = allAnimations.map( function() { + var styleInfo = this, + dfd = $.Deferred(), + opts = $.extend( {}, o, { + queue: false, + complete: function() { + dfd.resolve( styleInfo ); + } + } ); + + this.el.animate( this.diff, opts ); + return dfd.promise(); + } ); + + // Once all animations have completed: + $.when.apply( $, allAnimations.get() ).done( function() { + + // Set the final class + applyClassChange(); + + // For each animated element, + // clear all css properties that were animated + $.each( arguments, function() { + var el = this.el; + $.each( this.diff, function( key ) { + el.css( key, "" ); + } ); + } ); + + // This is guarnteed to be there if you use jQuery.speed() + // it also handles dequeuing the next anim... + o.complete.call( animated[ 0 ] ); + } ); + } ); +}; + +$.fn.extend( { + addClass: ( function( orig ) { + return function( classNames, speed, easing, callback ) { + return speed ? + $.effects.animateClass.call( this, + { add: classNames }, speed, easing, callback ) : + orig.apply( this, arguments ); + }; + } )( $.fn.addClass ), + + removeClass: ( function( orig ) { + return function( classNames, speed, easing, callback ) { + return arguments.length > 1 ? + $.effects.animateClass.call( this, + { remove: classNames }, speed, easing, callback ) : + orig.apply( this, arguments ); + }; + } )( $.fn.removeClass ), + + toggleClass: ( function( orig ) { + return function( classNames, force, speed, easing, callback ) { + if ( typeof force === "boolean" || force === undefined ) { + if ( !speed ) { + + // Without speed parameter + return orig.apply( this, arguments ); + } else { + return $.effects.animateClass.call( this, + ( force ? { add: classNames } : { remove: classNames } ), + speed, easing, callback ); + } + } else { + + // Without force parameter + return $.effects.animateClass.call( this, + { toggle: classNames }, force, speed, easing ); + } + }; + } )( $.fn.toggleClass ), + + switchClass: function( remove, add, speed, easing, callback ) { + return $.effects.animateClass.call( this, { + add: add, + remove: remove + }, speed, easing, callback ); + } +} ); + +} )(); + +/******************************************************************************/ +/*********************************** EFFECTS **********************************/ +/******************************************************************************/ + +( function() { + +if ( $.expr && $.expr.filters && $.expr.filters.animated ) { + $.expr.filters.animated = ( function( orig ) { + return function( elem ) { + return !!$( elem ).data( dataSpaceAnimated ) || orig( elem ); + }; + } )( $.expr.filters.animated ); +} + +if ( $.uiBackCompat !== false ) { + $.extend( $.effects, { + + // Saves a set of properties in a data storage + save: function( element, set ) { + var i = 0, length = set.length; + for ( ; i < length; i++ ) { + if ( set[ i ] !== null ) { + element.data( dataSpace + set[ i ], element[ 0 ].style[ set[ i ] ] ); + } + } + }, + + // Restores a set of previously saved properties from a data storage + restore: function( element, set ) { + var val, i = 0, length = set.length; + for ( ; i < length; i++ ) { + if ( set[ i ] !== null ) { + val = element.data( dataSpace + set[ i ] ); + element.css( set[ i ], val ); + } + } + }, + + setMode: function( el, mode ) { + if ( mode === "toggle" ) { + mode = el.is( ":hidden" ) ? "show" : "hide"; + } + return mode; + }, + + // Wraps the element around a wrapper that copies position properties + createWrapper: function( element ) { + + // If the element is already wrapped, return it + if ( element.parent().is( ".ui-effects-wrapper" ) ) { + return element.parent(); + } + + // Wrap the element + var props = { + width: element.outerWidth( true ), + height: element.outerHeight( true ), + "float": element.css( "float" ) + }, + wrapper = $( "

    " ) + .addClass( "ui-effects-wrapper" ) + .css( { + fontSize: "100%", + background: "transparent", + border: "none", + margin: 0, + padding: 0 + } ), + + // Store the size in case width/height are defined in % - Fixes #5245 + size = { + width: element.width(), + height: element.height() + }, + active = document.activeElement; + + // Support: Firefox + // Firefox incorrectly exposes anonymous content + // https://bugzilla.mozilla.org/show_bug.cgi?id=561664 + try { + active.id; + } catch ( e ) { + active = document.body; + } + + element.wrap( wrapper ); + + // Fixes #7595 - Elements lose focus when wrapped. + if ( element[ 0 ] === active || $.contains( element[ 0 ], active ) ) { + $( active ).trigger( "focus" ); + } + + // Hotfix for jQuery 1.4 since some change in wrap() seems to actually + // lose the reference to the wrapped element + wrapper = element.parent(); + + // Transfer positioning properties to the wrapper + if ( element.css( "position" ) === "static" ) { + wrapper.css( { position: "relative" } ); + element.css( { position: "relative" } ); + } else { + $.extend( props, { + position: element.css( "position" ), + zIndex: element.css( "z-index" ) + } ); + $.each( [ "top", "left", "bottom", "right" ], function( i, pos ) { + props[ pos ] = element.css( pos ); + if ( isNaN( parseInt( props[ pos ], 10 ) ) ) { + props[ pos ] = "auto"; + } + } ); + element.css( { + position: "relative", + top: 0, + left: 0, + right: "auto", + bottom: "auto" + } ); + } + element.css( size ); + + return wrapper.css( props ).show(); + }, + + removeWrapper: function( element ) { + var active = document.activeElement; + + if ( element.parent().is( ".ui-effects-wrapper" ) ) { + element.parent().replaceWith( element ); + + // Fixes #7595 - Elements lose focus when wrapped. + if ( element[ 0 ] === active || $.contains( element[ 0 ], active ) ) { + $( active ).trigger( "focus" ); + } + } + + return element; + } + } ); +} + +$.extend( $.effects, { + version: "1.12.1", + + define: function( name, mode, effect ) { + if ( !effect ) { + effect = mode; + mode = "effect"; + } + + $.effects.effect[ name ] = effect; + $.effects.effect[ name ].mode = mode; + + return effect; + }, + + scaledDimensions: function( element, percent, direction ) { + if ( percent === 0 ) { + return { + height: 0, + width: 0, + outerHeight: 0, + outerWidth: 0 + }; + } + + var x = direction !== "horizontal" ? ( ( percent || 100 ) / 100 ) : 1, + y = direction !== "vertical" ? ( ( percent || 100 ) / 100 ) : 1; + + return { + height: element.height() * y, + width: element.width() * x, + outerHeight: element.outerHeight() * y, + outerWidth: element.outerWidth() * x + }; + + }, + + clipToBox: function( animation ) { + return { + width: animation.clip.right - animation.clip.left, + height: animation.clip.bottom - animation.clip.top, + left: animation.clip.left, + top: animation.clip.top + }; + }, + + // Injects recently queued functions to be first in line (after "inprogress") + unshift: function( element, queueLength, count ) { + var queue = element.queue(); + + if ( queueLength > 1 ) { + queue.splice.apply( queue, + [ 1, 0 ].concat( queue.splice( queueLength, count ) ) ); + } + element.dequeue(); + }, + + saveStyle: function( element ) { + element.data( dataSpaceStyle, element[ 0 ].style.cssText ); + }, + + restoreStyle: function( element ) { + element[ 0 ].style.cssText = element.data( dataSpaceStyle ) || ""; + element.removeData( dataSpaceStyle ); + }, + + mode: function( element, mode ) { + var hidden = element.is( ":hidden" ); + + if ( mode === "toggle" ) { + mode = hidden ? "show" : "hide"; + } + if ( hidden ? mode === "hide" : mode === "show" ) { + mode = "none"; + } + return mode; + }, + + // Translates a [top,left] array into a baseline value + getBaseline: function( origin, original ) { + var y, x; + + switch ( origin[ 0 ] ) { + case "top": + y = 0; + break; + case "middle": + y = 0.5; + break; + case "bottom": + y = 1; + break; + default: + y = origin[ 0 ] / original.height; + } + + switch ( origin[ 1 ] ) { + case "left": + x = 0; + break; + case "center": + x = 0.5; + break; + case "right": + x = 1; + break; + default: + x = origin[ 1 ] / original.width; + } + + return { + x: x, + y: y + }; + }, + + // Creates a placeholder element so that the original element can be made absolute + createPlaceholder: function( element ) { + var placeholder, + cssPosition = element.css( "position" ), + position = element.position(); + + // Lock in margins first to account for form elements, which + // will change margin if you explicitly set height + // see: http://jsfiddle.net/JZSMt/3/ https://bugs.webkit.org/show_bug.cgi?id=107380 + // Support: Safari + element.css( { + marginTop: element.css( "marginTop" ), + marginBottom: element.css( "marginBottom" ), + marginLeft: element.css( "marginLeft" ), + marginRight: element.css( "marginRight" ) + } ) + .outerWidth( element.outerWidth() ) + .outerHeight( element.outerHeight() ); + + if ( /^(static|relative)/.test( cssPosition ) ) { + cssPosition = "absolute"; + + placeholder = $( "<" + element[ 0 ].nodeName + ">" ).insertAfter( element ).css( { + + // Convert inline to inline block to account for inline elements + // that turn to inline block based on content (like img) + display: /^(inline|ruby)/.test( element.css( "display" ) ) ? + "inline-block" : + "block", + visibility: "hidden", + + // Margins need to be set to account for margin collapse + marginTop: element.css( "marginTop" ), + marginBottom: element.css( "marginBottom" ), + marginLeft: element.css( "marginLeft" ), + marginRight: element.css( "marginRight" ), + "float": element.css( "float" ) + } ) + .outerWidth( element.outerWidth() ) + .outerHeight( element.outerHeight() ) + .addClass( "ui-effects-placeholder" ); + + element.data( dataSpace + "placeholder", placeholder ); + } + + element.css( { + position: cssPosition, + left: position.left, + top: position.top + } ); + + return placeholder; + }, + + removePlaceholder: function( element ) { + var dataKey = dataSpace + "placeholder", + placeholder = element.data( dataKey ); + + if ( placeholder ) { + placeholder.remove(); + element.removeData( dataKey ); + } + }, + + // Removes a placeholder if it exists and restores + // properties that were modified during placeholder creation + cleanUp: function( element ) { + $.effects.restoreStyle( element ); + $.effects.removePlaceholder( element ); + }, + + setTransition: function( element, list, factor, value ) { + value = value || {}; + $.each( list, function( i, x ) { + var unit = element.cssUnit( x ); + if ( unit[ 0 ] > 0 ) { + value[ x ] = unit[ 0 ] * factor + unit[ 1 ]; + } + } ); + return value; + } +} ); + +// Return an effect options object for the given parameters: +function _normalizeArguments( effect, options, speed, callback ) { + + // Allow passing all options as the first parameter + if ( $.isPlainObject( effect ) ) { + options = effect; + effect = effect.effect; + } + + // Convert to an object + effect = { effect: effect }; + + // Catch (effect, null, ...) + if ( options == null ) { + options = {}; + } + + // Catch (effect, callback) + if ( $.isFunction( options ) ) { + callback = options; + speed = null; + options = {}; + } + + // Catch (effect, speed, ?) + if ( typeof options === "number" || $.fx.speeds[ options ] ) { + callback = speed; + speed = options; + options = {}; + } + + // Catch (effect, options, callback) + if ( $.isFunction( speed ) ) { + callback = speed; + speed = null; + } + + // Add options to effect + if ( options ) { + $.extend( effect, options ); + } + + speed = speed || options.duration; + effect.duration = $.fx.off ? 0 : + typeof speed === "number" ? speed : + speed in $.fx.speeds ? $.fx.speeds[ speed ] : + $.fx.speeds._default; + + effect.complete = callback || options.complete; + + return effect; +} + +function standardAnimationOption( option ) { + + // Valid standard speeds (nothing, number, named speed) + if ( !option || typeof option === "number" || $.fx.speeds[ option ] ) { + return true; + } + + // Invalid strings - treat as "normal" speed + if ( typeof option === "string" && !$.effects.effect[ option ] ) { + return true; + } + + // Complete callback + if ( $.isFunction( option ) ) { + return true; + } + + // Options hash (but not naming an effect) + if ( typeof option === "object" && !option.effect ) { + return true; + } + + // Didn't match any standard API + return false; +} + +$.fn.extend( { + effect: function( /* effect, options, speed, callback */ ) { + var args = _normalizeArguments.apply( this, arguments ), + effectMethod = $.effects.effect[ args.effect ], + defaultMode = effectMethod.mode, + queue = args.queue, + queueName = queue || "fx", + complete = args.complete, + mode = args.mode, + modes = [], + prefilter = function( next ) { + var el = $( this ), + normalizedMode = $.effects.mode( el, mode ) || defaultMode; + + // Sentinel for duck-punching the :animated psuedo-selector + el.data( dataSpaceAnimated, true ); + + // Save effect mode for later use, + // we can't just call $.effects.mode again later, + // as the .show() below destroys the initial state + modes.push( normalizedMode ); + + // See $.uiBackCompat inside of run() for removal of defaultMode in 1.13 + if ( defaultMode && ( normalizedMode === "show" || + ( normalizedMode === defaultMode && normalizedMode === "hide" ) ) ) { + el.show(); + } + + if ( !defaultMode || normalizedMode !== "none" ) { + $.effects.saveStyle( el ); + } + + if ( $.isFunction( next ) ) { + next(); + } + }; + + if ( $.fx.off || !effectMethod ) { + + // Delegate to the original method (e.g., .show()) if possible + if ( mode ) { + return this[ mode ]( args.duration, complete ); + } else { + return this.each( function() { + if ( complete ) { + complete.call( this ); + } + } ); + } + } + + function run( next ) { + var elem = $( this ); + + function cleanup() { + elem.removeData( dataSpaceAnimated ); + + $.effects.cleanUp( elem ); + + if ( args.mode === "hide" ) { + elem.hide(); + } + + done(); + } + + function done() { + if ( $.isFunction( complete ) ) { + complete.call( elem[ 0 ] ); + } + + if ( $.isFunction( next ) ) { + next(); + } + } + + // Override mode option on a per element basis, + // as toggle can be either show or hide depending on element state + args.mode = modes.shift(); + + if ( $.uiBackCompat !== false && !defaultMode ) { + if ( elem.is( ":hidden" ) ? mode === "hide" : mode === "show" ) { + + // Call the core method to track "olddisplay" properly + elem[ mode ](); + done(); + } else { + effectMethod.call( elem[ 0 ], args, done ); + } + } else { + if ( args.mode === "none" ) { + + // Call the core method to track "olddisplay" properly + elem[ mode ](); + done(); + } else { + effectMethod.call( elem[ 0 ], args, cleanup ); + } + } + } + + // Run prefilter on all elements first to ensure that + // any showing or hiding happens before placeholder creation, + // which ensures that any layout changes are correctly captured. + return queue === false ? + this.each( prefilter ).each( run ) : + this.queue( queueName, prefilter ).queue( queueName, run ); + }, + + show: ( function( orig ) { + return function( option ) { + if ( standardAnimationOption( option ) ) { + return orig.apply( this, arguments ); + } else { + var args = _normalizeArguments.apply( this, arguments ); + args.mode = "show"; + return this.effect.call( this, args ); + } + }; + } )( $.fn.show ), + + hide: ( function( orig ) { + return function( option ) { + if ( standardAnimationOption( option ) ) { + return orig.apply( this, arguments ); + } else { + var args = _normalizeArguments.apply( this, arguments ); + args.mode = "hide"; + return this.effect.call( this, args ); + } + }; + } )( $.fn.hide ), + + toggle: ( function( orig ) { + return function( option ) { + if ( standardAnimationOption( option ) || typeof option === "boolean" ) { + return orig.apply( this, arguments ); + } else { + var args = _normalizeArguments.apply( this, arguments ); + args.mode = "toggle"; + return this.effect.call( this, args ); + } + }; + } )( $.fn.toggle ), + + cssUnit: function( key ) { + var style = this.css( key ), + val = []; + + $.each( [ "em", "px", "%", "pt" ], function( i, unit ) { + if ( style.indexOf( unit ) > 0 ) { + val = [ parseFloat( style ), unit ]; + } + } ); + return val; + }, + + cssClip: function( clipObj ) { + if ( clipObj ) { + return this.css( "clip", "rect(" + clipObj.top + "px " + clipObj.right + "px " + + clipObj.bottom + "px " + clipObj.left + "px)" ); + } + return parseClip( this.css( "clip" ), this ); + }, + + transfer: function( options, done ) { + var element = $( this ), + target = $( options.to ), + targetFixed = target.css( "position" ) === "fixed", + body = $( "body" ), + fixTop = targetFixed ? body.scrollTop() : 0, + fixLeft = targetFixed ? body.scrollLeft() : 0, + endPosition = target.offset(), + animation = { + top: endPosition.top - fixTop, + left: endPosition.left - fixLeft, + height: target.innerHeight(), + width: target.innerWidth() + }, + startPosition = element.offset(), + transfer = $( "
    " ) + .appendTo( "body" ) + .addClass( options.className ) + .css( { + top: startPosition.top - fixTop, + left: startPosition.left - fixLeft, + height: element.innerHeight(), + width: element.innerWidth(), + position: targetFixed ? "fixed" : "absolute" + } ) + .animate( animation, options.duration, options.easing, function() { + transfer.remove(); + if ( $.isFunction( done ) ) { + done(); + } + } ); + } +} ); + +function parseClip( str, element ) { + var outerWidth = element.outerWidth(), + outerHeight = element.outerHeight(), + clipRegex = /^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/, + values = clipRegex.exec( str ) || [ "", 0, outerWidth, outerHeight, 0 ]; + + return { + top: parseFloat( values[ 1 ] ) || 0, + right: values[ 2 ] === "auto" ? outerWidth : parseFloat( values[ 2 ] ), + bottom: values[ 3 ] === "auto" ? outerHeight : parseFloat( values[ 3 ] ), + left: parseFloat( values[ 4 ] ) || 0 + }; +} + +$.fx.step.clip = function( fx ) { + if ( !fx.clipInit ) { + fx.start = $( fx.elem ).cssClip(); + if ( typeof fx.end === "string" ) { + fx.end = parseClip( fx.end, fx.elem ); + } + fx.clipInit = true; + } + + $( fx.elem ).cssClip( { + top: fx.pos * ( fx.end.top - fx.start.top ) + fx.start.top, + right: fx.pos * ( fx.end.right - fx.start.right ) + fx.start.right, + bottom: fx.pos * ( fx.end.bottom - fx.start.bottom ) + fx.start.bottom, + left: fx.pos * ( fx.end.left - fx.start.left ) + fx.start.left + } ); +}; + +} )(); + +/******************************************************************************/ +/*********************************** EASING ***********************************/ +/******************************************************************************/ + +( function() { + +// Based on easing equations from Robert Penner (http://www.robertpenner.com/easing) + +var baseEasings = {}; + +$.each( [ "Quad", "Cubic", "Quart", "Quint", "Expo" ], function( i, name ) { + baseEasings[ name ] = function( p ) { + return Math.pow( p, i + 2 ); + }; +} ); + +$.extend( baseEasings, { + Sine: function( p ) { + return 1 - Math.cos( p * Math.PI / 2 ); + }, + Circ: function( p ) { + return 1 - Math.sqrt( 1 - p * p ); + }, + Elastic: function( p ) { + return p === 0 || p === 1 ? p : + -Math.pow( 2, 8 * ( p - 1 ) ) * Math.sin( ( ( p - 1 ) * 80 - 7.5 ) * Math.PI / 15 ); + }, + Back: function( p ) { + return p * p * ( 3 * p - 2 ); + }, + Bounce: function( p ) { + var pow2, + bounce = 4; + + while ( p < ( ( pow2 = Math.pow( 2, --bounce ) ) - 1 ) / 11 ) {} + return 1 / Math.pow( 4, 3 - bounce ) - 7.5625 * Math.pow( ( pow2 * 3 - 2 ) / 22 - p, 2 ); + } +} ); + +$.each( baseEasings, function( name, easeIn ) { + $.easing[ "easeIn" + name ] = easeIn; + $.easing[ "easeOut" + name ] = function( p ) { + return 1 - easeIn( 1 - p ); + }; + $.easing[ "easeInOut" + name ] = function( p ) { + return p < 0.5 ? + easeIn( p * 2 ) / 2 : + 1 - easeIn( p * -2 + 2 ) / 2; + }; +} ); + +} )(); + +var effect = $.effects; + + +/*! + * jQuery UI Effects Blind 1.12.1 + * http://jqueryui.com + * + * Copyright jQuery Foundation and other contributors + * Released under the MIT license. + * http://jquery.org/license + */ + +//>>label: Blind Effect +//>>group: Effects +//>>description: Blinds the element. +//>>docs: http://api.jqueryui.com/blind-effect/ +//>>demos: http://jqueryui.com/effect/ + + + +var effectsEffectBlind = $.effects.define( "blind", "hide", function( options, done ) { + var map = { + up: [ "bottom", "top" ], + vertical: [ "bottom", "top" ], + down: [ "top", "bottom" ], + left: [ "right", "left" ], + horizontal: [ "right", "left" ], + right: [ "left", "right" ] + }, + element = $( this ), + direction = options.direction || "up", + start = element.cssClip(), + animate = { clip: $.extend( {}, start ) }, + placeholder = $.effects.createPlaceholder( element ); + + animate.clip[ map[ direction ][ 0 ] ] = animate.clip[ map[ direction ][ 1 ] ]; + + if ( options.mode === "show" ) { + element.cssClip( animate.clip ); + if ( placeholder ) { + placeholder.css( $.effects.clipToBox( animate ) ); + } + + animate.clip = start; + } + + if ( placeholder ) { + placeholder.animate( $.effects.clipToBox( animate ), options.duration, options.easing ); + } + + element.animate( animate, { + queue: false, + duration: options.duration, + easing: options.easing, + complete: done + } ); +} ); + + +/*! + * jQuery UI Effects Bounce 1.12.1 + * http://jqueryui.com + * + * Copyright jQuery Foundation and other contributors + * Released under the MIT license. + * http://jquery.org/license + */ + +//>>label: Bounce Effect +//>>group: Effects +//>>description: Bounces an element horizontally or vertically n times. +//>>docs: http://api.jqueryui.com/bounce-effect/ +//>>demos: http://jqueryui.com/effect/ + + + +var effectsEffectBounce = $.effects.define( "bounce", function( options, done ) { + var upAnim, downAnim, refValue, + element = $( this ), + + // Defaults: + mode = options.mode, + hide = mode === "hide", + show = mode === "show", + direction = options.direction || "up", + distance = options.distance, + times = options.times || 5, + + // Number of internal animations + anims = times * 2 + ( show || hide ? 1 : 0 ), + speed = options.duration / anims, + easing = options.easing, + + // Utility: + ref = ( direction === "up" || direction === "down" ) ? "top" : "left", + motion = ( direction === "up" || direction === "left" ), + i = 0, + + queuelen = element.queue().length; + + $.effects.createPlaceholder( element ); + + refValue = element.css( ref ); + + // Default distance for the BIGGEST bounce is the outer Distance / 3 + if ( !distance ) { + distance = element[ ref === "top" ? "outerHeight" : "outerWidth" ]() / 3; + } + + if ( show ) { + downAnim = { opacity: 1 }; + downAnim[ ref ] = refValue; + + // If we are showing, force opacity 0 and set the initial position + // then do the "first" animation + element + .css( "opacity", 0 ) + .css( ref, motion ? -distance * 2 : distance * 2 ) + .animate( downAnim, speed, easing ); + } + + // Start at the smallest distance if we are hiding + if ( hide ) { + distance = distance / Math.pow( 2, times - 1 ); + } + + downAnim = {}; + downAnim[ ref ] = refValue; + + // Bounces up/down/left/right then back to 0 -- times * 2 animations happen here + for ( ; i < times; i++ ) { + upAnim = {}; + upAnim[ ref ] = ( motion ? "-=" : "+=" ) + distance; + + element + .animate( upAnim, speed, easing ) + .animate( downAnim, speed, easing ); + + distance = hide ? distance * 2 : distance / 2; + } + + // Last Bounce when Hiding + if ( hide ) { + upAnim = { opacity: 0 }; + upAnim[ ref ] = ( motion ? "-=" : "+=" ) + distance; + + element.animate( upAnim, speed, easing ); + } + + element.queue( done ); + + $.effects.unshift( element, queuelen, anims + 1 ); +} ); + + +/*! + * jQuery UI Effects Clip 1.12.1 + * http://jqueryui.com + * + * Copyright jQuery Foundation and other contributors + * Released under the MIT license. + * http://jquery.org/license + */ + +//>>label: Clip Effect +//>>group: Effects +//>>description: Clips the element on and off like an old TV. +//>>docs: http://api.jqueryui.com/clip-effect/ +//>>demos: http://jqueryui.com/effect/ + + + +var effectsEffectClip = $.effects.define( "clip", "hide", function( options, done ) { + var start, + animate = {}, + element = $( this ), + direction = options.direction || "vertical", + both = direction === "both", + horizontal = both || direction === "horizontal", + vertical = both || direction === "vertical"; + + start = element.cssClip(); + animate.clip = { + top: vertical ? ( start.bottom - start.top ) / 2 : start.top, + right: horizontal ? ( start.right - start.left ) / 2 : start.right, + bottom: vertical ? ( start.bottom - start.top ) / 2 : start.bottom, + left: horizontal ? ( start.right - start.left ) / 2 : start.left + }; + + $.effects.createPlaceholder( element ); + + if ( options.mode === "show" ) { + element.cssClip( animate.clip ); + animate.clip = start; + } + + element.animate( animate, { + queue: false, + duration: options.duration, + easing: options.easing, + complete: done + } ); + +} ); + + +/*! + * jQuery UI Effects Drop 1.12.1 + * http://jqueryui.com + * + * Copyright jQuery Foundation and other contributors + * Released under the MIT license. + * http://jquery.org/license + */ + +//>>label: Drop Effect +//>>group: Effects +//>>description: Moves an element in one direction and hides it at the same time. +//>>docs: http://api.jqueryui.com/drop-effect/ +//>>demos: http://jqueryui.com/effect/ + + + +var effectsEffectDrop = $.effects.define( "drop", "hide", function( options, done ) { + + var distance, + element = $( this ), + mode = options.mode, + show = mode === "show", + direction = options.direction || "left", + ref = ( direction === "up" || direction === "down" ) ? "top" : "left", + motion = ( direction === "up" || direction === "left" ) ? "-=" : "+=", + oppositeMotion = ( motion === "+=" ) ? "-=" : "+=", + animation = { + opacity: 0 + }; + + $.effects.createPlaceholder( element ); + + distance = options.distance || + element[ ref === "top" ? "outerHeight" : "outerWidth" ]( true ) / 2; + + animation[ ref ] = motion + distance; + + if ( show ) { + element.css( animation ); + + animation[ ref ] = oppositeMotion + distance; + animation.opacity = 1; + } + + // Animate + element.animate( animation, { + queue: false, + duration: options.duration, + easing: options.easing, + complete: done + } ); +} ); + + +/*! + * jQuery UI Effects Explode 1.12.1 + * http://jqueryui.com + * + * Copyright jQuery Foundation and other contributors + * Released under the MIT license. + * http://jquery.org/license + */ + +//>>label: Explode Effect +//>>group: Effects +// jscs:disable maximumLineLength +//>>description: Explodes an element in all directions into n pieces. Implodes an element to its original wholeness. +// jscs:enable maximumLineLength +//>>docs: http://api.jqueryui.com/explode-effect/ +//>>demos: http://jqueryui.com/effect/ + + + +var effectsEffectExplode = $.effects.define( "explode", "hide", function( options, done ) { + + var i, j, left, top, mx, my, + rows = options.pieces ? Math.round( Math.sqrt( options.pieces ) ) : 3, + cells = rows, + element = $( this ), + mode = options.mode, + show = mode === "show", + + // Show and then visibility:hidden the element before calculating offset + offset = element.show().css( "visibility", "hidden" ).offset(), + + // Width and height of a piece + width = Math.ceil( element.outerWidth() / cells ), + height = Math.ceil( element.outerHeight() / rows ), + pieces = []; + + // Children animate complete: + function childComplete() { + pieces.push( this ); + if ( pieces.length === rows * cells ) { + animComplete(); + } + } + + // Clone the element for each row and cell. + for ( i = 0; i < rows; i++ ) { // ===> + top = offset.top + i * height; + my = i - ( rows - 1 ) / 2; + + for ( j = 0; j < cells; j++ ) { // ||| + left = offset.left + j * width; + mx = j - ( cells - 1 ) / 2; + + // Create a clone of the now hidden main element that will be absolute positioned + // within a wrapper div off the -left and -top equal to size of our pieces + element + .clone() + .appendTo( "body" ) + .wrap( "
    " ) + .css( { + position: "absolute", + visibility: "visible", + left: -j * width, + top: -i * height + } ) + + // Select the wrapper - make it overflow: hidden and absolute positioned based on + // where the original was located +left and +top equal to the size of pieces + .parent() + .addClass( "ui-effects-explode" ) + .css( { + position: "absolute", + overflow: "hidden", + width: width, + height: height, + left: left + ( show ? mx * width : 0 ), + top: top + ( show ? my * height : 0 ), + opacity: show ? 0 : 1 + } ) + .animate( { + left: left + ( show ? 0 : mx * width ), + top: top + ( show ? 0 : my * height ), + opacity: show ? 1 : 0 + }, options.duration || 500, options.easing, childComplete ); + } + } + + function animComplete() { + element.css( { + visibility: "visible" + } ); + $( pieces ).remove(); + done(); + } +} ); + + +/*! + * jQuery UI Effects Fade 1.12.1 + * http://jqueryui.com + * + * Copyright jQuery Foundation and other contributors + * Released under the MIT license. + * http://jquery.org/license + */ + +//>>label: Fade Effect +//>>group: Effects +//>>description: Fades the element. +//>>docs: http://api.jqueryui.com/fade-effect/ +//>>demos: http://jqueryui.com/effect/ + + + +var effectsEffectFade = $.effects.define( "fade", "toggle", function( options, done ) { + var show = options.mode === "show"; + + $( this ) + .css( "opacity", show ? 0 : 1 ) + .animate( { + opacity: show ? 1 : 0 + }, { + queue: false, + duration: options.duration, + easing: options.easing, + complete: done + } ); +} ); + + +/*! + * jQuery UI Effects Fold 1.12.1 + * http://jqueryui.com + * + * Copyright jQuery Foundation and other contributors + * Released under the MIT license. + * http://jquery.org/license + */ + +//>>label: Fold Effect +//>>group: Effects +//>>description: Folds an element first horizontally and then vertically. +//>>docs: http://api.jqueryui.com/fold-effect/ +//>>demos: http://jqueryui.com/effect/ + + + +var effectsEffectFold = $.effects.define( "fold", "hide", function( options, done ) { + + // Create element + var element = $( this ), + mode = options.mode, + show = mode === "show", + hide = mode === "hide", + size = options.size || 15, + percent = /([0-9]+)%/.exec( size ), + horizFirst = !!options.horizFirst, + ref = horizFirst ? [ "right", "bottom" ] : [ "bottom", "right" ], + duration = options.duration / 2, + + placeholder = $.effects.createPlaceholder( element ), + + start = element.cssClip(), + animation1 = { clip: $.extend( {}, start ) }, + animation2 = { clip: $.extend( {}, start ) }, + + distance = [ start[ ref[ 0 ] ], start[ ref[ 1 ] ] ], + + queuelen = element.queue().length; + + if ( percent ) { + size = parseInt( percent[ 1 ], 10 ) / 100 * distance[ hide ? 0 : 1 ]; + } + animation1.clip[ ref[ 0 ] ] = size; + animation2.clip[ ref[ 0 ] ] = size; + animation2.clip[ ref[ 1 ] ] = 0; + + if ( show ) { + element.cssClip( animation2.clip ); + if ( placeholder ) { + placeholder.css( $.effects.clipToBox( animation2 ) ); + } + + animation2.clip = start; + } + + // Animate + element + .queue( function( next ) { + if ( placeholder ) { + placeholder + .animate( $.effects.clipToBox( animation1 ), duration, options.easing ) + .animate( $.effects.clipToBox( animation2 ), duration, options.easing ); + } + + next(); + } ) + .animate( animation1, duration, options.easing ) + .animate( animation2, duration, options.easing ) + .queue( done ); + + $.effects.unshift( element, queuelen, 4 ); +} ); + + +/*! + * jQuery UI Effects Highlight 1.12.1 + * http://jqueryui.com + * + * Copyright jQuery Foundation and other contributors + * Released under the MIT license. + * http://jquery.org/license + */ + +//>>label: Highlight Effect +//>>group: Effects +//>>description: Highlights the background of an element in a defined color for a custom duration. +//>>docs: http://api.jqueryui.com/highlight-effect/ +//>>demos: http://jqueryui.com/effect/ + + + +var effectsEffectHighlight = $.effects.define( "highlight", "show", function( options, done ) { + var element = $( this ), + animation = { + backgroundColor: element.css( "backgroundColor" ) + }; + + if ( options.mode === "hide" ) { + animation.opacity = 0; + } + + $.effects.saveStyle( element ); + + element + .css( { + backgroundImage: "none", + backgroundColor: options.color || "#ffff99" + } ) + .animate( animation, { + queue: false, + duration: options.duration, + easing: options.easing, + complete: done + } ); +} ); + + +/*! + * jQuery UI Effects Size 1.12.1 + * http://jqueryui.com + * + * Copyright jQuery Foundation and other contributors + * Released under the MIT license. + * http://jquery.org/license + */ + +//>>label: Size Effect +//>>group: Effects +//>>description: Resize an element to a specified width and height. +//>>docs: http://api.jqueryui.com/size-effect/ +//>>demos: http://jqueryui.com/effect/ + + + +var effectsEffectSize = $.effects.define( "size", function( options, done ) { + + // Create element + var baseline, factor, temp, + element = $( this ), + + // Copy for children + cProps = [ "fontSize" ], + vProps = [ "borderTopWidth", "borderBottomWidth", "paddingTop", "paddingBottom" ], + hProps = [ "borderLeftWidth", "borderRightWidth", "paddingLeft", "paddingRight" ], + + // Set options + mode = options.mode, + restore = mode !== "effect", + scale = options.scale || "both", + origin = options.origin || [ "middle", "center" ], + position = element.css( "position" ), + pos = element.position(), + original = $.effects.scaledDimensions( element ), + from = options.from || original, + to = options.to || $.effects.scaledDimensions( element, 0 ); + + $.effects.createPlaceholder( element ); + + if ( mode === "show" ) { + temp = from; + from = to; + to = temp; + } + + // Set scaling factor + factor = { + from: { + y: from.height / original.height, + x: from.width / original.width + }, + to: { + y: to.height / original.height, + x: to.width / original.width + } + }; + + // Scale the css box + if ( scale === "box" || scale === "both" ) { + + // Vertical props scaling + if ( factor.from.y !== factor.to.y ) { + from = $.effects.setTransition( element, vProps, factor.from.y, from ); + to = $.effects.setTransition( element, vProps, factor.to.y, to ); + } + + // Horizontal props scaling + if ( factor.from.x !== factor.to.x ) { + from = $.effects.setTransition( element, hProps, factor.from.x, from ); + to = $.effects.setTransition( element, hProps, factor.to.x, to ); + } + } + + // Scale the content + if ( scale === "content" || scale === "both" ) { + + // Vertical props scaling + if ( factor.from.y !== factor.to.y ) { + from = $.effects.setTransition( element, cProps, factor.from.y, from ); + to = $.effects.setTransition( element, cProps, factor.to.y, to ); + } + } + + // Adjust the position properties based on the provided origin points + if ( origin ) { + baseline = $.effects.getBaseline( origin, original ); + from.top = ( original.outerHeight - from.outerHeight ) * baseline.y + pos.top; + from.left = ( original.outerWidth - from.outerWidth ) * baseline.x + pos.left; + to.top = ( original.outerHeight - to.outerHeight ) * baseline.y + pos.top; + to.left = ( original.outerWidth - to.outerWidth ) * baseline.x + pos.left; + } + element.css( from ); + + // Animate the children if desired + if ( scale === "content" || scale === "both" ) { + + vProps = vProps.concat( [ "marginTop", "marginBottom" ] ).concat( cProps ); + hProps = hProps.concat( [ "marginLeft", "marginRight" ] ); + + // Only animate children with width attributes specified + // TODO: is this right? should we include anything with css width specified as well + element.find( "*[width]" ).each( function() { + var child = $( this ), + childOriginal = $.effects.scaledDimensions( child ), + childFrom = { + height: childOriginal.height * factor.from.y, + width: childOriginal.width * factor.from.x, + outerHeight: childOriginal.outerHeight * factor.from.y, + outerWidth: childOriginal.outerWidth * factor.from.x + }, + childTo = { + height: childOriginal.height * factor.to.y, + width: childOriginal.width * factor.to.x, + outerHeight: childOriginal.height * factor.to.y, + outerWidth: childOriginal.width * factor.to.x + }; + + // Vertical props scaling + if ( factor.from.y !== factor.to.y ) { + childFrom = $.effects.setTransition( child, vProps, factor.from.y, childFrom ); + childTo = $.effects.setTransition( child, vProps, factor.to.y, childTo ); + } + + // Horizontal props scaling + if ( factor.from.x !== factor.to.x ) { + childFrom = $.effects.setTransition( child, hProps, factor.from.x, childFrom ); + childTo = $.effects.setTransition( child, hProps, factor.to.x, childTo ); + } + + if ( restore ) { + $.effects.saveStyle( child ); + } + + // Animate children + child.css( childFrom ); + child.animate( childTo, options.duration, options.easing, function() { + + // Restore children + if ( restore ) { + $.effects.restoreStyle( child ); + } + } ); + } ); + } + + // Animate + element.animate( to, { + queue: false, + duration: options.duration, + easing: options.easing, + complete: function() { + + var offset = element.offset(); + + if ( to.opacity === 0 ) { + element.css( "opacity", from.opacity ); + } + + if ( !restore ) { + element + .css( "position", position === "static" ? "relative" : position ) + .offset( offset ); + + // Need to save style here so that automatic style restoration + // doesn't restore to the original styles from before the animation. + $.effects.saveStyle( element ); + } + + done(); + } + } ); + +} ); + + +/*! + * jQuery UI Effects Scale 1.12.1 + * http://jqueryui.com + * + * Copyright jQuery Foundation and other contributors + * Released under the MIT license. + * http://jquery.org/license + */ + +//>>label: Scale Effect +//>>group: Effects +//>>description: Grows or shrinks an element and its content. +//>>docs: http://api.jqueryui.com/scale-effect/ +//>>demos: http://jqueryui.com/effect/ + + + +var effectsEffectScale = $.effects.define( "scale", function( options, done ) { + + // Create element + var el = $( this ), + mode = options.mode, + percent = parseInt( options.percent, 10 ) || + ( parseInt( options.percent, 10 ) === 0 ? 0 : ( mode !== "effect" ? 0 : 100 ) ), + + newOptions = $.extend( true, { + from: $.effects.scaledDimensions( el ), + to: $.effects.scaledDimensions( el, percent, options.direction || "both" ), + origin: options.origin || [ "middle", "center" ] + }, options ); + + // Fade option to support puff + if ( options.fade ) { + newOptions.from.opacity = 1; + newOptions.to.opacity = 0; + } + + $.effects.effect.size.call( this, newOptions, done ); +} ); + + +/*! + * jQuery UI Effects Puff 1.12.1 + * http://jqueryui.com + * + * Copyright jQuery Foundation and other contributors + * Released under the MIT license. + * http://jquery.org/license + */ + +//>>label: Puff Effect +//>>group: Effects +//>>description: Creates a puff effect by scaling the element up and hiding it at the same time. +//>>docs: http://api.jqueryui.com/puff-effect/ +//>>demos: http://jqueryui.com/effect/ + + + +var effectsEffectPuff = $.effects.define( "puff", "hide", function( options, done ) { + var newOptions = $.extend( true, {}, options, { + fade: true, + percent: parseInt( options.percent, 10 ) || 150 + } ); + + $.effects.effect.scale.call( this, newOptions, done ); +} ); + + +/*! + * jQuery UI Effects Pulsate 1.12.1 + * http://jqueryui.com + * + * Copyright jQuery Foundation and other contributors + * Released under the MIT license. + * http://jquery.org/license + */ + +//>>label: Pulsate Effect +//>>group: Effects +//>>description: Pulsates an element n times by changing the opacity to zero and back. +//>>docs: http://api.jqueryui.com/pulsate-effect/ +//>>demos: http://jqueryui.com/effect/ + + + +var effectsEffectPulsate = $.effects.define( "pulsate", "show", function( options, done ) { + var element = $( this ), + mode = options.mode, + show = mode === "show", + hide = mode === "hide", + showhide = show || hide, + + // Showing or hiding leaves off the "last" animation + anims = ( ( options.times || 5 ) * 2 ) + ( showhide ? 1 : 0 ), + duration = options.duration / anims, + animateTo = 0, + i = 1, + queuelen = element.queue().length; + + if ( show || !element.is( ":visible" ) ) { + element.css( "opacity", 0 ).show(); + animateTo = 1; + } + + // Anims - 1 opacity "toggles" + for ( ; i < anims; i++ ) { + element.animate( { opacity: animateTo }, duration, options.easing ); + animateTo = 1 - animateTo; + } + + element.animate( { opacity: animateTo }, duration, options.easing ); + + element.queue( done ); + + $.effects.unshift( element, queuelen, anims + 1 ); +} ); + + +/*! + * jQuery UI Effects Shake 1.12.1 + * http://jqueryui.com + * + * Copyright jQuery Foundation and other contributors + * Released under the MIT license. + * http://jquery.org/license + */ + +//>>label: Shake Effect +//>>group: Effects +//>>description: Shakes an element horizontally or vertically n times. +//>>docs: http://api.jqueryui.com/shake-effect/ +//>>demos: http://jqueryui.com/effect/ + + + +var effectsEffectShake = $.effects.define( "shake", function( options, done ) { + + var i = 1, + element = $( this ), + direction = options.direction || "left", + distance = options.distance || 20, + times = options.times || 3, + anims = times * 2 + 1, + speed = Math.round( options.duration / anims ), + ref = ( direction === "up" || direction === "down" ) ? "top" : "left", + positiveMotion = ( direction === "up" || direction === "left" ), + animation = {}, + animation1 = {}, + animation2 = {}, + + queuelen = element.queue().length; + + $.effects.createPlaceholder( element ); + + // Animation + animation[ ref ] = ( positiveMotion ? "-=" : "+=" ) + distance; + animation1[ ref ] = ( positiveMotion ? "+=" : "-=" ) + distance * 2; + animation2[ ref ] = ( positiveMotion ? "-=" : "+=" ) + distance * 2; + + // Animate + element.animate( animation, speed, options.easing ); + + // Shakes + for ( ; i < times; i++ ) { + element + .animate( animation1, speed, options.easing ) + .animate( animation2, speed, options.easing ); + } + + element + .animate( animation1, speed, options.easing ) + .animate( animation, speed / 2, options.easing ) + .queue( done ); + + $.effects.unshift( element, queuelen, anims + 1 ); +} ); + + +/*! + * jQuery UI Effects Slide 1.12.1 + * http://jqueryui.com + * + * Copyright jQuery Foundation and other contributors + * Released under the MIT license. + * http://jquery.org/license + */ + +//>>label: Slide Effect +//>>group: Effects +//>>description: Slides an element in and out of the viewport. +//>>docs: http://api.jqueryui.com/slide-effect/ +//>>demos: http://jqueryui.com/effect/ + + + +var effectsEffectSlide = $.effects.define( "slide", "show", function( options, done ) { + var startClip, startRef, + element = $( this ), + map = { + up: [ "bottom", "top" ], + down: [ "top", "bottom" ], + left: [ "right", "left" ], + right: [ "left", "right" ] + }, + mode = options.mode, + direction = options.direction || "left", + ref = ( direction === "up" || direction === "down" ) ? "top" : "left", + positiveMotion = ( direction === "up" || direction === "left" ), + distance = options.distance || + element[ ref === "top" ? "outerHeight" : "outerWidth" ]( true ), + animation = {}; + + $.effects.createPlaceholder( element ); + + startClip = element.cssClip(); + startRef = element.position()[ ref ]; + + // Define hide animation + animation[ ref ] = ( positiveMotion ? -1 : 1 ) * distance + startRef; + animation.clip = element.cssClip(); + animation.clip[ map[ direction ][ 1 ] ] = animation.clip[ map[ direction ][ 0 ] ]; + + // Reverse the animation if we're showing + if ( mode === "show" ) { + element.cssClip( animation.clip ); + element.css( ref, animation[ ref ] ); + animation.clip = startClip; + animation[ ref ] = startRef; + } + + // Actually animate + element.animate( animation, { + queue: false, + duration: options.duration, + easing: options.easing, + complete: done + } ); +} ); + + +/*! + * jQuery UI Effects Transfer 1.12.1 + * http://jqueryui.com + * + * Copyright jQuery Foundation and other contributors + * Released under the MIT license. + * http://jquery.org/license + */ + +//>>label: Transfer Effect +//>>group: Effects +//>>description: Displays a transfer effect from one element to another. +//>>docs: http://api.jqueryui.com/transfer-effect/ +//>>demos: http://jqueryui.com/effect/ + + + +var effect; +if ( $.uiBackCompat !== false ) { + effect = $.effects.define( "transfer", function( options, done ) { + $( this ).transfer( options, done ); + } ); +} +var effectsEffectTransfer = effect; + + +/*! + * jQuery UI Focusable 1.12.1 + * http://jqueryui.com + * + * Copyright jQuery Foundation and other contributors + * Released under the MIT license. + * http://jquery.org/license + */ + +//>>label: :focusable Selector +//>>group: Core +//>>description: Selects elements which can be focused. +//>>docs: http://api.jqueryui.com/focusable-selector/ + + + +// Selectors +$.ui.focusable = function( element, hasTabindex ) { + var map, mapName, img, focusableIfVisible, fieldset, + nodeName = element.nodeName.toLowerCase(); + + if ( "area" === nodeName ) { + map = element.parentNode; + mapName = map.name; + if ( !element.href || !mapName || map.nodeName.toLowerCase() !== "map" ) { + return false; + } + img = $( "img[usemap='#" + mapName + "']" ); + return img.length > 0 && img.is( ":visible" ); + } + + if ( /^(input|select|textarea|button|object)$/.test( nodeName ) ) { + focusableIfVisible = !element.disabled; + + if ( focusableIfVisible ) { + + // Form controls within a disabled fieldset are disabled. + // However, controls within the fieldset's legend do not get disabled. + // Since controls generally aren't placed inside legends, we skip + // this portion of the check. + fieldset = $( element ).closest( "fieldset" )[ 0 ]; + if ( fieldset ) { + focusableIfVisible = !fieldset.disabled; + } + } + } else if ( "a" === nodeName ) { + focusableIfVisible = element.href || hasTabindex; + } else { + focusableIfVisible = hasTabindex; + } + + return focusableIfVisible && $( element ).is( ":visible" ) && visible( $( element ) ); +}; + +// Support: IE 8 only +// IE 8 doesn't resolve inherit to visible/hidden for computed values +function visible( element ) { + var visibility = element.css( "visibility" ); + while ( visibility === "inherit" ) { + element = element.parent(); + visibility = element.css( "visibility" ); + } + return visibility !== "hidden"; +} + +$.extend( $.expr[ ":" ], { + focusable: function( element ) { + return $.ui.focusable( element, $.attr( element, "tabindex" ) != null ); + } +} ); + +var focusable = $.ui.focusable; + + + + +// Support: IE8 Only +// IE8 does not support the form attribute and when it is supplied. It overwrites the form prop +// with a string, so we need to find the proper form. +var form = $.fn.form = function() { + return typeof this[ 0 ].form === "string" ? this.closest( "form" ) : $( this[ 0 ].form ); +}; + + +/*! + * jQuery UI Form Reset Mixin 1.12.1 + * http://jqueryui.com + * + * Copyright jQuery Foundation and other contributors + * Released under the MIT license. + * http://jquery.org/license + */ + +//>>label: Form Reset Mixin +//>>group: Core +//>>description: Refresh input widgets when their form is reset +//>>docs: http://api.jqueryui.com/form-reset-mixin/ + + + +var formResetMixin = $.ui.formResetMixin = { + _formResetHandler: function() { + var form = $( this ); + + // Wait for the form reset to actually happen before refreshing + setTimeout( function() { + var instances = form.data( "ui-form-reset-instances" ); + $.each( instances, function() { + this.refresh(); + } ); + } ); + }, + + _bindFormResetHandler: function() { + this.form = this.element.form(); + if ( !this.form.length ) { + return; + } + + var instances = this.form.data( "ui-form-reset-instances" ) || []; + if ( !instances.length ) { + + // We don't use _on() here because we use a single event handler per form + this.form.on( "reset.ui-form-reset", this._formResetHandler ); + } + instances.push( this ); + this.form.data( "ui-form-reset-instances", instances ); + }, + + _unbindFormResetHandler: function() { + if ( !this.form.length ) { + return; + } + + var instances = this.form.data( "ui-form-reset-instances" ); + instances.splice( $.inArray( this, instances ), 1 ); + if ( instances.length ) { + this.form.data( "ui-form-reset-instances", instances ); + } else { + this.form + .removeData( "ui-form-reset-instances" ) + .off( "reset.ui-form-reset" ); + } + } +}; + + +/*! + * jQuery UI Support for jQuery core 1.7.x 1.12.1 + * http://jqueryui.com + * + * Copyright jQuery Foundation and other contributors + * Released under the MIT license. + * http://jquery.org/license + * + */ + +//>>label: jQuery 1.7 Support +//>>group: Core +//>>description: Support version 1.7.x of jQuery core + + + +// Support: jQuery 1.7 only +// Not a great way to check versions, but since we only support 1.7+ and only +// need to detect <1.8, this is a simple check that should suffice. Checking +// for "1.7." would be a bit safer, but the version string is 1.7, not 1.7.0 +// and we'll never reach 1.70.0 (if we do, we certainly won't be supporting +// 1.7 anymore). See #11197 for why we're not using feature detection. +if ( $.fn.jquery.substring( 0, 3 ) === "1.7" ) { + + // Setters for .innerWidth(), .innerHeight(), .outerWidth(), .outerHeight() + // Unlike jQuery Core 1.8+, these only support numeric values to set the + // dimensions in pixels + $.each( [ "Width", "Height" ], function( i, name ) { + var side = name === "Width" ? [ "Left", "Right" ] : [ "Top", "Bottom" ], + type = name.toLowerCase(), + orig = { + innerWidth: $.fn.innerWidth, + innerHeight: $.fn.innerHeight, + outerWidth: $.fn.outerWidth, + outerHeight: $.fn.outerHeight + }; + + function reduce( elem, size, border, margin ) { + $.each( side, function() { + size -= parseFloat( $.css( elem, "padding" + this ) ) || 0; + if ( border ) { + size -= parseFloat( $.css( elem, "border" + this + "Width" ) ) || 0; + } + if ( margin ) { + size -= parseFloat( $.css( elem, "margin" + this ) ) || 0; + } + } ); + return size; + } + + $.fn[ "inner" + name ] = function( size ) { + if ( size === undefined ) { + return orig[ "inner" + name ].call( this ); + } + + return this.each( function() { + $( this ).css( type, reduce( this, size ) + "px" ); + } ); + }; + + $.fn[ "outer" + name ] = function( size, margin ) { + if ( typeof size !== "number" ) { + return orig[ "outer" + name ].call( this, size ); + } + + return this.each( function() { + $( this ).css( type, reduce( this, size, true, margin ) + "px" ); + } ); + }; + } ); + + $.fn.addBack = function( selector ) { + return this.add( selector == null ? + this.prevObject : this.prevObject.filter( selector ) + ); + }; +} + +; +/*! + * jQuery UI Keycode 1.12.1 + * http://jqueryui.com + * + * Copyright jQuery Foundation and other contributors + * Released under the MIT license. + * http://jquery.org/license + */ + +//>>label: Keycode +//>>group: Core +//>>description: Provide keycodes as keynames +//>>docs: http://api.jqueryui.com/jQuery.ui.keyCode/ + + +var keycode = $.ui.keyCode = { + BACKSPACE: 8, + COMMA: 188, + DELETE: 46, + DOWN: 40, + END: 35, + ENTER: 13, + ESCAPE: 27, + HOME: 36, + LEFT: 37, + PAGE_DOWN: 34, + PAGE_UP: 33, + PERIOD: 190, + RIGHT: 39, + SPACE: 32, + TAB: 9, + UP: 38 +}; + + + + +// Internal use only +var escapeSelector = $.ui.escapeSelector = ( function() { + var selectorEscape = /([!"#$%&'()*+,./:;<=>?@[\]^`{|}~])/g; + return function( selector ) { + return selector.replace( selectorEscape, "\\$1" ); + }; +} )(); + + +/*! + * jQuery UI Labels 1.12.1 + * http://jqueryui.com + * + * Copyright jQuery Foundation and other contributors + * Released under the MIT license. + * http://jquery.org/license + */ + +//>>label: labels +//>>group: Core +//>>description: Find all the labels associated with a given input +//>>docs: http://api.jqueryui.com/labels/ + + + +var labels = $.fn.labels = function() { + var ancestor, selector, id, labels, ancestors; + + // Check control.labels first + if ( this[ 0 ].labels && this[ 0 ].labels.length ) { + return this.pushStack( this[ 0 ].labels ); + } + + // Support: IE <= 11, FF <= 37, Android <= 2.3 only + // Above browsers do not support control.labels. Everything below is to support them + // as well as document fragments. control.labels does not work on document fragments + labels = this.eq( 0 ).parents( "label" ); + + // Look for the label based on the id + id = this.attr( "id" ); + if ( id ) { + + // We don't search against the document in case the element + // is disconnected from the DOM + ancestor = this.eq( 0 ).parents().last(); + + // Get a full set of top level ancestors + ancestors = ancestor.add( ancestor.length ? ancestor.siblings() : this.siblings() ); + + // Create a selector for the label based on the id + selector = "label[for='" + $.ui.escapeSelector( id ) + "']"; + + labels = labels.add( ancestors.find( selector ).addBack( selector ) ); + + } + + // Return whatever we have found for labels + return this.pushStack( labels ); +}; + + +/*! + * jQuery UI Scroll Parent 1.12.1 + * http://jqueryui.com + * + * Copyright jQuery Foundation and other contributors + * Released under the MIT license. + * http://jquery.org/license + */ + +//>>label: scrollParent +//>>group: Core +//>>description: Get the closest ancestor element that is scrollable. +//>>docs: http://api.jqueryui.com/scrollParent/ + + + +var scrollParent = $.fn.scrollParent = function( includeHidden ) { + var position = this.css( "position" ), + excludeStaticParent = position === "absolute", + overflowRegex = includeHidden ? /(auto|scroll|hidden)/ : /(auto|scroll)/, + scrollParent = this.parents().filter( function() { + var parent = $( this ); + if ( excludeStaticParent && parent.css( "position" ) === "static" ) { + return false; + } + return overflowRegex.test( parent.css( "overflow" ) + parent.css( "overflow-y" ) + + parent.css( "overflow-x" ) ); + } ).eq( 0 ); + + return position === "fixed" || !scrollParent.length ? + $( this[ 0 ].ownerDocument || document ) : + scrollParent; +}; + + +/*! + * jQuery UI Tabbable 1.12.1 + * http://jqueryui.com + * + * Copyright jQuery Foundation and other contributors + * Released under the MIT license. + * http://jquery.org/license + */ + +//>>label: :tabbable Selector +//>>group: Core +//>>description: Selects elements which can be tabbed to. +//>>docs: http://api.jqueryui.com/tabbable-selector/ + + + +var tabbable = $.extend( $.expr[ ":" ], { + tabbable: function( element ) { + var tabIndex = $.attr( element, "tabindex" ), + hasTabindex = tabIndex != null; + return ( !hasTabindex || tabIndex >= 0 ) && $.ui.focusable( element, hasTabindex ); + } +} ); + + +/*! + * jQuery UI Unique ID 1.12.1 + * http://jqueryui.com + * + * Copyright jQuery Foundation and other contributors + * Released under the MIT license. + * http://jquery.org/license + */ + +//>>label: uniqueId +//>>group: Core +//>>description: Functions to generate and remove uniqueId's +//>>docs: http://api.jqueryui.com/uniqueId/ + + + +var uniqueId = $.fn.extend( { + uniqueId: ( function() { + var uuid = 0; + + return function() { + return this.each( function() { + if ( !this.id ) { + this.id = "ui-id-" + ( ++uuid ); + } + } ); + }; + } )(), + + removeUniqueId: function() { + return this.each( function() { + if ( /^ui-id-\d+$/.test( this.id ) ) { + $( this ).removeAttr( "id" ); + } + } ); + } +} ); + + +/*! + * jQuery UI Accordion 1.12.1 + * http://jqueryui.com + * + * Copyright jQuery Foundation and other contributors + * Released under the MIT license. + * http://jquery.org/license + */ + +//>>label: Accordion +//>>group: Widgets +// jscs:disable maximumLineLength +//>>description: Displays collapsible content panels for presenting information in a limited amount of space. +// jscs:enable maximumLineLength +//>>docs: http://api.jqueryui.com/accordion/ +//>>demos: http://jqueryui.com/accordion/ +//>>css.structure: ../../themes/base/core.css +//>>css.structure: ../../themes/base/accordion.css +//>>css.theme: ../../themes/base/theme.css + + + +var widgetsAccordion = $.widget( "ui.accordion", { + version: "1.12.1", + options: { + active: 0, + animate: {}, + classes: { + "ui-accordion-header": "ui-corner-top", + "ui-accordion-header-collapsed": "ui-corner-all", + "ui-accordion-content": "ui-corner-bottom" + }, + collapsible: false, + event: "click", + header: "> li > :first-child, > :not(li):even", + heightStyle: "auto", + icons: { + activeHeader: "ui-icon-triangle-1-s", + header: "ui-icon-triangle-1-e" + }, + + // Callbacks + activate: null, + beforeActivate: null + }, + + hideProps: { + borderTopWidth: "hide", + borderBottomWidth: "hide", + paddingTop: "hide", + paddingBottom: "hide", + height: "hide" + }, + + showProps: { + borderTopWidth: "show", + borderBottomWidth: "show", + paddingTop: "show", + paddingBottom: "show", + height: "show" + }, + + _create: function() { + var options = this.options; + + this.prevShow = this.prevHide = $(); + this._addClass( "ui-accordion", "ui-widget ui-helper-reset" ); + this.element.attr( "role", "tablist" ); + + // Don't allow collapsible: false and active: false / null + if ( !options.collapsible && ( options.active === false || options.active == null ) ) { + options.active = 0; + } + + this._processPanels(); + + // handle negative values + if ( options.active < 0 ) { + options.active += this.headers.length; + } + this._refresh(); + }, + + _getCreateEventData: function() { + return { + header: this.active, + panel: !this.active.length ? $() : this.active.next() + }; + }, + + _createIcons: function() { + var icon, children, + icons = this.options.icons; + + if ( icons ) { + icon = $( "" ); + this._addClass( icon, "ui-accordion-header-icon", "ui-icon " + icons.header ); + icon.prependTo( this.headers ); + children = this.active.children( ".ui-accordion-header-icon" ); + this._removeClass( children, icons.header ) + ._addClass( children, null, icons.activeHeader ) + ._addClass( this.headers, "ui-accordion-icons" ); + } + }, + + _destroyIcons: function() { + this._removeClass( this.headers, "ui-accordion-icons" ); + this.headers.children( ".ui-accordion-header-icon" ).remove(); + }, + + _destroy: function() { + var contents; + + // Clean up main element + this.element.removeAttr( "role" ); + + // Clean up headers + this.headers + .removeAttr( "role aria-expanded aria-selected aria-controls tabIndex" ) + .removeUniqueId(); + + this._destroyIcons(); + + // Clean up content panels + contents = this.headers.next() + .css( "display", "" ) + .removeAttr( "role aria-hidden aria-labelledby" ) + .removeUniqueId(); + + if ( this.options.heightStyle !== "content" ) { + contents.css( "height", "" ); + } + }, + + _setOption: function( key, value ) { + if ( key === "active" ) { + + // _activate() will handle invalid values and update this.options + this._activate( value ); + return; + } + + if ( key === "event" ) { + if ( this.options.event ) { + this._off( this.headers, this.options.event ); + } + this._setupEvents( value ); + } + + this._super( key, value ); + + // Setting collapsible: false while collapsed; open first panel + if ( key === "collapsible" && !value && this.options.active === false ) { + this._activate( 0 ); + } + + if ( key === "icons" ) { + this._destroyIcons(); + if ( value ) { + this._createIcons(); + } + } + }, + + _setOptionDisabled: function( value ) { + this._super( value ); + + this.element.attr( "aria-disabled", value ); + + // Support: IE8 Only + // #5332 / #6059 - opacity doesn't cascade to positioned elements in IE + // so we need to add the disabled class to the headers and panels + this._toggleClass( null, "ui-state-disabled", !!value ); + this._toggleClass( this.headers.add( this.headers.next() ), null, "ui-state-disabled", + !!value ); + }, + + _keydown: function( event ) { + if ( event.altKey || event.ctrlKey ) { + return; + } + + var keyCode = $.ui.keyCode, + length = this.headers.length, + currentIndex = this.headers.index( event.target ), + toFocus = false; + + switch ( event.keyCode ) { + case keyCode.RIGHT: + case keyCode.DOWN: + toFocus = this.headers[ ( currentIndex + 1 ) % length ]; + break; + case keyCode.LEFT: + case keyCode.UP: + toFocus = this.headers[ ( currentIndex - 1 + length ) % length ]; + break; + case keyCode.SPACE: + case keyCode.ENTER: + this._eventHandler( event ); + break; + case keyCode.HOME: + toFocus = this.headers[ 0 ]; + break; + case keyCode.END: + toFocus = this.headers[ length - 1 ]; + break; + } + + if ( toFocus ) { + $( event.target ).attr( "tabIndex", -1 ); + $( toFocus ).attr( "tabIndex", 0 ); + $( toFocus ).trigger( "focus" ); + event.preventDefault(); + } + }, + + _panelKeyDown: function( event ) { + if ( event.keyCode === $.ui.keyCode.UP && event.ctrlKey ) { + $( event.currentTarget ).prev().trigger( "focus" ); + } + }, + + refresh: function() { + var options = this.options; + this._processPanels(); + + // Was collapsed or no panel + if ( ( options.active === false && options.collapsible === true ) || + !this.headers.length ) { + options.active = false; + this.active = $(); + + // active false only when collapsible is true + } else if ( options.active === false ) { + this._activate( 0 ); + + // was active, but active panel is gone + } else if ( this.active.length && !$.contains( this.element[ 0 ], this.active[ 0 ] ) ) { + + // all remaining panel are disabled + if ( this.headers.length === this.headers.find( ".ui-state-disabled" ).length ) { + options.active = false; + this.active = $(); + + // activate previous panel + } else { + this._activate( Math.max( 0, options.active - 1 ) ); + } + + // was active, active panel still exists + } else { + + // make sure active index is correct + options.active = this.headers.index( this.active ); + } + + this._destroyIcons(); + + this._refresh(); + }, + + _processPanels: function() { + var prevHeaders = this.headers, + prevPanels = this.panels; + + this.headers = this.element.find( this.options.header ); + this._addClass( this.headers, "ui-accordion-header ui-accordion-header-collapsed", + "ui-state-default" ); + + this.panels = this.headers.next().filter( ":not(.ui-accordion-content-active)" ).hide(); + this._addClass( this.panels, "ui-accordion-content", "ui-helper-reset ui-widget-content" ); + + // Avoid memory leaks (#10056) + if ( prevPanels ) { + this._off( prevHeaders.not( this.headers ) ); + this._off( prevPanels.not( this.panels ) ); + } + }, + + _refresh: function() { + var maxHeight, + options = this.options, + heightStyle = options.heightStyle, + parent = this.element.parent(); + + this.active = this._findActive( options.active ); + this._addClass( this.active, "ui-accordion-header-active", "ui-state-active" ) + ._removeClass( this.active, "ui-accordion-header-collapsed" ); + this._addClass( this.active.next(), "ui-accordion-content-active" ); + this.active.next().show(); + + this.headers + .attr( "role", "tab" ) + .each( function() { + var header = $( this ), + headerId = header.uniqueId().attr( "id" ), + panel = header.next(), + panelId = panel.uniqueId().attr( "id" ); + header.attr( "aria-controls", panelId ); + panel.attr( "aria-labelledby", headerId ); + } ) + .next() + .attr( "role", "tabpanel" ); + + this.headers + .not( this.active ) + .attr( { + "aria-selected": "false", + "aria-expanded": "false", + tabIndex: -1 + } ) + .next() + .attr( { + "aria-hidden": "true" + } ) + .hide(); + + // Make sure at least one header is in the tab order + if ( !this.active.length ) { + this.headers.eq( 0 ).attr( "tabIndex", 0 ); + } else { + this.active.attr( { + "aria-selected": "true", + "aria-expanded": "true", + tabIndex: 0 + } ) + .next() + .attr( { + "aria-hidden": "false" + } ); + } + + this._createIcons(); + + this._setupEvents( options.event ); + + if ( heightStyle === "fill" ) { + maxHeight = parent.height(); + this.element.siblings( ":visible" ).each( function() { + var elem = $( this ), + position = elem.css( "position" ); + + if ( position === "absolute" || position === "fixed" ) { + return; + } + maxHeight -= elem.outerHeight( true ); + } ); + + this.headers.each( function() { + maxHeight -= $( this ).outerHeight( true ); + } ); + + this.headers.next() + .each( function() { + $( this ).height( Math.max( 0, maxHeight - + $( this ).innerHeight() + $( this ).height() ) ); + } ) + .css( "overflow", "auto" ); + } else if ( heightStyle === "auto" ) { + maxHeight = 0; + this.headers.next() + .each( function() { + var isVisible = $( this ).is( ":visible" ); + if ( !isVisible ) { + $( this ).show(); + } + maxHeight = Math.max( maxHeight, $( this ).css( "height", "" ).height() ); + if ( !isVisible ) { + $( this ).hide(); + } + } ) + .height( maxHeight ); + } + }, + + _activate: function( index ) { + var active = this._findActive( index )[ 0 ]; + + // Trying to activate the already active panel + if ( active === this.active[ 0 ] ) { + return; + } + + // Trying to collapse, simulate a click on the currently active header + active = active || this.active[ 0 ]; + + this._eventHandler( { + target: active, + currentTarget: active, + preventDefault: $.noop + } ); + }, + + _findActive: function( selector ) { + return typeof selector === "number" ? this.headers.eq( selector ) : $(); + }, + + _setupEvents: function( event ) { + var events = { + keydown: "_keydown" + }; + if ( event ) { + $.each( event.split( " " ), function( index, eventName ) { + events[ eventName ] = "_eventHandler"; + } ); + } + + this._off( this.headers.add( this.headers.next() ) ); + this._on( this.headers, events ); + this._on( this.headers.next(), { keydown: "_panelKeyDown" } ); + this._hoverable( this.headers ); + this._focusable( this.headers ); + }, + + _eventHandler: function( event ) { + var activeChildren, clickedChildren, + options = this.options, + active = this.active, + clicked = $( event.currentTarget ), + clickedIsActive = clicked[ 0 ] === active[ 0 ], + collapsing = clickedIsActive && options.collapsible, + toShow = collapsing ? $() : clicked.next(), + toHide = active.next(), + eventData = { + oldHeader: active, + oldPanel: toHide, + newHeader: collapsing ? $() : clicked, + newPanel: toShow + }; + + event.preventDefault(); + + if ( + + // click on active header, but not collapsible + ( clickedIsActive && !options.collapsible ) || + + // allow canceling activation + ( this._trigger( "beforeActivate", event, eventData ) === false ) ) { + return; + } + + options.active = collapsing ? false : this.headers.index( clicked ); + + // When the call to ._toggle() comes after the class changes + // it causes a very odd bug in IE 8 (see #6720) + this.active = clickedIsActive ? $() : clicked; + this._toggle( eventData ); + + // Switch classes + // corner classes on the previously active header stay after the animation + this._removeClass( active, "ui-accordion-header-active", "ui-state-active" ); + if ( options.icons ) { + activeChildren = active.children( ".ui-accordion-header-icon" ); + this._removeClass( activeChildren, null, options.icons.activeHeader ) + ._addClass( activeChildren, null, options.icons.header ); + } + + if ( !clickedIsActive ) { + this._removeClass( clicked, "ui-accordion-header-collapsed" ) + ._addClass( clicked, "ui-accordion-header-active", "ui-state-active" ); + if ( options.icons ) { + clickedChildren = clicked.children( ".ui-accordion-header-icon" ); + this._removeClass( clickedChildren, null, options.icons.header ) + ._addClass( clickedChildren, null, options.icons.activeHeader ); + } + + this._addClass( clicked.next(), "ui-accordion-content-active" ); + } + }, + + _toggle: function( data ) { + var toShow = data.newPanel, + toHide = this.prevShow.length ? this.prevShow : data.oldPanel; + + // Handle activating a panel during the animation for another activation + this.prevShow.add( this.prevHide ).stop( true, true ); + this.prevShow = toShow; + this.prevHide = toHide; + + if ( this.options.animate ) { + this._animate( toShow, toHide, data ); + } else { + toHide.hide(); + toShow.show(); + this._toggleComplete( data ); + } + + toHide.attr( { + "aria-hidden": "true" + } ); + toHide.prev().attr( { + "aria-selected": "false", + "aria-expanded": "false" + } ); + + // if we're switching panels, remove the old header from the tab order + // if we're opening from collapsed state, remove the previous header from the tab order + // if we're collapsing, then keep the collapsing header in the tab order + if ( toShow.length && toHide.length ) { + toHide.prev().attr( { + "tabIndex": -1, + "aria-expanded": "false" + } ); + } else if ( toShow.length ) { + this.headers.filter( function() { + return parseInt( $( this ).attr( "tabIndex" ), 10 ) === 0; + } ) + .attr( "tabIndex", -1 ); + } + + toShow + .attr( "aria-hidden", "false" ) + .prev() + .attr( { + "aria-selected": "true", + "aria-expanded": "true", + tabIndex: 0 + } ); + }, + + _animate: function( toShow, toHide, data ) { + var total, easing, duration, + that = this, + adjust = 0, + boxSizing = toShow.css( "box-sizing" ), + down = toShow.length && + ( !toHide.length || ( toShow.index() < toHide.index() ) ), + animate = this.options.animate || {}, + options = down && animate.down || animate, + complete = function() { + that._toggleComplete( data ); + }; + + if ( typeof options === "number" ) { + duration = options; + } + if ( typeof options === "string" ) { + easing = options; + } + + // fall back from options to animation in case of partial down settings + easing = easing || options.easing || animate.easing; + duration = duration || options.duration || animate.duration; + + if ( !toHide.length ) { + return toShow.animate( this.showProps, duration, easing, complete ); + } + if ( !toShow.length ) { + return toHide.animate( this.hideProps, duration, easing, complete ); + } + + total = toShow.show().outerHeight(); + toHide.animate( this.hideProps, { + duration: duration, + easing: easing, + step: function( now, fx ) { + fx.now = Math.round( now ); + } + } ); + toShow + .hide() + .animate( this.showProps, { + duration: duration, + easing: easing, + complete: complete, + step: function( now, fx ) { + fx.now = Math.round( now ); + if ( fx.prop !== "height" ) { + if ( boxSizing === "content-box" ) { + adjust += fx.now; + } + } else if ( that.options.heightStyle !== "content" ) { + fx.now = Math.round( total - toHide.outerHeight() - adjust ); + adjust = 0; + } + } + } ); + }, + + _toggleComplete: function( data ) { + var toHide = data.oldPanel, + prev = toHide.prev(); + + this._removeClass( toHide, "ui-accordion-content-active" ); + this._removeClass( prev, "ui-accordion-header-active" ) + ._addClass( prev, "ui-accordion-header-collapsed" ); + + // Work around for rendering bug in IE (#5421) + if ( toHide.length ) { + toHide.parent()[ 0 ].className = toHide.parent()[ 0 ].className; + } + this._trigger( "activate", null, data ); + } +} ); + + + +var safeActiveElement = $.ui.safeActiveElement = function( document ) { + var activeElement; + + // Support: IE 9 only + // IE9 throws an "Unspecified error" accessing document.activeElement from an