PageSourceSearch

https://dentalworld.ru/local/templates/main/js/plugins/bvi/bvi.min.js

js dentalworld.ru collected 2026-10-02 05:09:00 UTC 39,672 bytes, 7 lines download raw bytes

vendor: 4,343 bytes, lines 1-6
1/*!
2  * Button visually impaired - v1.0.0 https://bvi.isvek.ru
3  * Copyright 2014-2025 Oleg Korotenko <[email protected]>.
4  * Licensed MIT (https://github.com/veks/button-visually-impaired-javascript/blob/master/LICENSE.md)
5  */
6!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).isvek=t()}(this,function(){"use strict";function e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,c(i.key),i)}}function i(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}function r(e,t,n){return(t=c(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){r(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}!function(){var e=function(e){var t,n=Object.prototype,i=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,i){var o=t&&t.prototype instanceof p?t:p,a=Object.create(o.prototype),c=new x(i||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function v(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f="suspendedStart",h="suspendedYield",d="executing",m="completed",b={};function p(){}function g(){}function y(){}var S={};s(S,a,function(){return this});var _=Object.getPrototypeOf,k=_&&_(_(H([])));k&&k!==n&&i.call(k,a)&&(S=k);var w=y.prototype=p.prototype=Object.create(S);function L(e){["next","throw","return"].forEach(function(t){s(e,t,function(e){return this._invoke(t,e)})})}function B(e,t){function n(r,o,a,c){var l=v(e[r],e,o);if("throw"!==l.type){var s=l.arg,u=s.value;return u&&"object"==typeof u&&i.call(u,"__await")?t.resolve(u.__await).then(function(e){n("next",e,a,c)},function(e){n("throw",e,a,c)}):t.resolve(u).then(function(e){s.value=e,a(s)},function(e){return n("throw",e,a,c)})}c(l.arg)}var o;r(this,"_invoke",{value:function(e,i){function r(){return new t(function(t,r){n(e,i,t,r)})}return o=o?o.then(r,r):r()}})}function O(e,t,n){var i=f;return function(r,o){if(i===d)throw new Error("Generator is already running");if(i===m){if("throw"===r)throw o;return D()}for(n.method=r,n.arg=o;;){var a=n.delegate;if(a){var c=E(a,n);if(c){if(c===b)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===f)throw i=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=d;var l=v(e,t,n);if("normal"===l.type){if(i=n.done?m:h,l.arg===b)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=m,n.method="throw",n.arg=l.arg)}}}function E(e,n){var i=n.method,r=e.iterator[i];if(r===t)return n.delegate=null,"throw"===i&&e.iterator.return&&
6(n.method="return",n.arg=t,E(e,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),b;var o=v(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,b;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,b):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,b)}function A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function q(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function H(e){if(e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function n(){for(;++r<e.length;)if(i.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}return{next:D}}function D(){return{value:t,done:!0}}return g.prototype=y,r(w,"constructor",{value:y,configurable:!0}),r(y,"constructor",{value:g,configurable:!0}),g.displayName=s(y,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,s(e,l,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},L(B.prototype),s(B.prototype,c,function(){return this}),e.AsyncIterator=B,e.async=function(t,n,i,r,o){void 0===o&&(o=Promise);var a=new B(u(t,n,i,r),o);return e.isGeneratorFunction(n)?a:a.next().then(function(e){return e.done?e.value:a.next()})},L(w),s(w,l,"Generator"),s(w,a,function(){return this}),s(w,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var i in t)n.push(i);return n.reverse(),function e(){for(;n.length;){var i=n.pop();if(i in t)return e.value=i,e.done=!1,e}return e.done=!0,e}},e.values=H,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(q),!e)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(i,r){return c.type="throw",c.arg=e,n.next=i,r&&(n.method="next",n.arg=t),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=i.call(a,"catchLoc"),s=i.call(a,"finallyLoc");if(l&&s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),q(n),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;q(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,i){return this.delegate={iterator:H(e),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=t),b}},e}({});try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}(),[Element.prototype,Document.prototype,DocumentFragment.prototype].forEach(function(e){e.hasOwnProperty("prepend")||Object.defineProperty(e,"prepend",{configurable:!0,enumerable:!0,writable:!0,value:function(){var e=Array.prototype.slice.call(arguments),t=document.createDocumentFragment();e.forEach(function(e){var n=e instanceof Node;t.appendChild(n?e:document.createTextNode(String(e)))}),this.insertBefore(t,this.firstChild)}})}),window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),window.HTMLCollection&&!HTMLCollection.prototype.forEach&&(HTMLCollection.prototype.forEach=Array.prototype.forEach);var s=function(e){switch(e){case"on":case"true":case"1":return!0;default:return!1}},u=function(e,t,n){for("string"==typeof t&&(t=document.createElement(t)),e.appendChild(t).className=n;e.firstChild!==t;)t.appendChild(e.firstChild)},v=function(e){var t=document.createDocumentFragment();if(e){for(;e.firstChild;){var n=e.removeChild(e.firstChild);t.appendChild(n)}e.parentNode.replaceChild(t,e)}},f=function(e,t){Object.keys(e).forEach(function(e){"function"==typeof t&&t(e)})},h=function(e,t){Array.from(e).forEach(function(e){"function"==typeof t&&t(e)})},d=function(){return window.speechSynthesis},m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=new Date,i=n.getTime();i+=864e5,n.setTime(i),document.cookie="bvi_".concat(e,"=").concat(t,";path=/;expires=").concat(n.toUTCString(),";domain=").concat(location.host)},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";e="bvi_".concat(e,"=");for(var t=decodeURIComponent(document.cookie).split(";"),n=0;n<t.length;n++){var i=t[n].trim();if(-1!==i.indexOf(e))return i.substring(e.length,i.length)}},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";document.cookie="bvi_".concat(e,"=;path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT;domain=").concat(location.host)},g={"ru-RU":{text:{fontSize:"Размер шрифта",siteColors:"Цвета сайта",images:"Изображения",speech:"Синтез речи",settings:"Настройки",regularVersionOfTheSite:"Обычная версия сайта",letterSpacing:"Межбуквенное расстояние",normal:"Стандартный",average:"Средний",big:"Большой",lineHeight:"Межстрочный интервал",font:"Шрифт",arial:"Без засечек",times:"С засечками",builtElements:"Встроенные элементы (Видео, карты и тд.)",on:"Включить",off:"Выключить",reset:"Сбросить настройки",plural_0:"пиксель",plural_1:"пекселя",plural_2:"пикселей"},voice:{fontSizePlus:"Размер шрифта увели́чен",fontSizeMinus:"Размер шрифта уме́ньшен",siteColorBlackOnWhite:"Цвет сайта черным по белому",siteColorWhiteOnBlack:"Цвет сайта белым по черному",siteColorDarkBlueOnBlue:"Цвет сайта тёмно-синим по голубому",siteColorBeigeBrown:"Цвет сайта кори́чневым по бе́жевому",siteColorGreenOnDarkBrown:"Цвет сайта зеленым по тёмно-коричневому",imagesOn:"Изображения включены",imagesOFF:"Изображения выключены",imagesGrayscale:"Изображения чёрно-белые",speechOn:"Синтез речи включён",speechOff:"Синтез речи вы́ключен",lineHeightNormal:"Межстрочный интервал стандартный",lineHeightAverage:"Межстрочный интервал средний",lineHeightBig:"Межстрочный интервал большой",LetterSpacingNormal:"Интервал между буквами стандартный",LetterSpacingAverage:"Интервал между буквами средний",LetterSpacingBig:"Интервал между буквами большой",fontArial:"Шрифт без засечек",fontTimes:"Шрифт с засечками",builtElementsOn:"Встроенные элементы включены",builtElementsOFF:"Встроенные элементы выключены",resetSettings:"Установлены настройки по умолча́нию",panelShow:"Панель открыта",panelHide:"Панель скрыта",panelOn:"Версия сайта для слабови́дящий",panelOff:"Обычная версия сайта"}},"en-US":{text:{fontSize:"Font size",siteColors:"Site colors",images:"Images",speech:"Speech synthesis",settings:"Settings",regularVersionOfTheSite:"Regular version Of The site",letterSpacing:"Letter spacing",normal:"Single",average:"One and a half",big:"Double",lineHeight:"Line spacing",font:"Font",arial:"Sans Serif - Ar
6ial",times:"Serif - Times New Roman",builtElements:"Include inline elements (Videos, maps, etc.)",on:"Enable",off:"Disabled",reset:"Reset settings",plural_0:"pixel",plural_1:"pixels",plural_2:"pixels"},voice:{fontSizePlus:"Font size increased",fontSizeMinus:"Font size reduced",siteColorBlackOnWhite:"Site color black on white",siteColorWhiteOnBlack:"Site color white on black",siteColorDarkBlueOnBlue:"Site color dark blue on cyan",siteColorBeigeBrown:"SiteColorBeigeBrown",siteColorGreenOnDarkBrown:"Site color green on dark brown",imagesOn:"Images enable",imagesOFF:"Images disabled",imagesGrayscale:"Images gray scale",speechOn:"Synthesis speech enable",speechOff:"Synthesis speech disabled",lineHeightNormal:"Line spacing single",lineHeightAverage:"Line spacing one and a half",lineHeightBig:"Line spacing double",LetterSpacingNormal:"Letter spacing single",LetterSpacingAverage:"Letter spacing one and a half",LetterSpacingBig:"Letter spacing letter double",fontArial:"Sans Serif - Arial",fontTimes:"Serif - Times New Roman",builtElementsOn:"Include inline elements are enabled",builtElementsOFF:"Include inline elements are disabled",resetSettings:"Default settings have been set",panelShow:"Panel show",panelHide:"Panel hide",panelOn:"Site version for visually impaired",panelOff:"Regular version of the site"}}},y=function(){return i(function e(n){t(this,e),this._config=n},[{key:"t",value:function(e){return g[this._config.lang].text[e]}},{key:"v",value:function(e){return g[this._config.lang].voice[e]}}])}(),S={target:".bvi-open",fontSize:16,theme:"white",images:"grayscale",letterSpacing:"normal",lineHeight:"normal",speech:!0,fontFamily:"arial",builtElements:!1,panelFixed:!0,panelHide:!1,reload:!1,lang:"ru-RU"},_={target:"string",fontSize:"number",theme:"string",images:"(string|boolean)",letterSpacing:"string",lineHeight:"string",speech:"boolean",fontFamily:"string",builtElements:"boolean",panelFixed:"boolean",panelHide:"boolean",reload:"boolean",lang:"string"},k={target:"",fontSize:"(^[1-9]$|^[1-3][0-9]?$|^39$)",theme:"(white|black|blue|brown|green)",images:"(true|false|grayscale)",letterSpacing:"(normal|average|big)",lineHeight:"(normal|average|big)",speech:"(true|false)",fontFamily:"(arial|times)",builtElements:"(true|false)",panelFixed:"(true|false)",panelHide:"(true|false)",reload:"(true|false)",lang:"(ru-RU|en-US)"},w=function(){return i(function e(n){t(this,e),this._config=this._getConfig(n),this._elements=document.querySelectorAll(this._config.target),this._i18n=new y({lang:this._config.lang}),this._addEventListeners(),this._init(),console.log("Bvi console: ready Button visually impaired v1.0.0")},[{key:"_init",value:function(){f(this._config,function(e){void 0===b(e)&&p("panelActive")}),s(b("panelActive"))?(this._set(),this._getPanel(),this._addEventListenersPanel(),this._images(),this._speechPlayer(),"speechSynthesis"in window&&s(b("speech"))&&setInterval(function(){if(!1===d().pending){var e=document.querySelectorAll(".bvi-speech-play"),t=document.querySelectorAll(".bvi-speech-pause"),n=document.querySelectorAll(".bvi-speech-resume"),i=document.querySelectorAll(".bvi-speech-stop"),r=function(e,t){e.forEach(function(e){return t(e)})};r(e,function(e){return e.classList.remove("disabled")}),r(t,function(e){return e.classList.add("disabled")}),r(n,function(e){return e.classList.add("disabled")}),r(i,function(e){return e.classList.add("disabled")})}},1e3)):this._remove()}},{key:"_addEventListeners",value:function(){var e=this;if(!this._elements)return!1;this._elements.forEach(function(t){t.addEventListener("click",function(t){t.preventDefault(),f(e._config,function(t){return m(t,e._config[t])}),m("panelActive",!0),e._init(),e._speech("".concat(e._i18n.v("panelOn")))})})}},{key:"_addEventListenersPanel",value:function(){var t=this,n={fontSizeMinus:document.querySelector(".bvi-fontSize-minus"),fontSizePlus:document.querySelector(".bvi-fontSize-plus"),themeWhite:document.querySelector(".bvi-theme-white"),themeBlack:document.querySelector(".bvi-theme-black"),themeBlue:document.querySelector(".bvi-theme-blue"),themeBrown:document.querySelector(".bvi-theme-brown"),themeGreen:document.querySelector(".bvi-theme-green"),imagesOn:document.querySelector(".bvi-images-on"),imagesOff:document.querySelector(".bvi-images-off"),imagesGrayscale:document.querySelector(".bvi-images-grayscale"),speechOn:document.querySelector(".bvi-speech-on"),speechOff:document.querySelector(".bvi-speech-off"),lineHeightNormal:document.querySelector(".bvi-line-height-normal"),lineHeightAverage:document.querySelector(".bvi-line-height-average"),lineHeightBig:document.querySelector(".bvi-line-height-big"),letterSpacingNormal:document.querySelector(".bvi-letter-spacing-normal"),letterSpacingAverage:document.querySelector(".bvi-letter-spacing-average"),letterSpacingBig:document.querySelector(".bvi-letter-spacing-big"),fontFamilyAri
6al:document.querySelector(".bvi-font-family-arial"),fontFamilyTimes:document.querySelector(".bvi-font-family-times"),builtElementsOn:document.querySelector(".bvi-built-elements-on"),builtElementsOff:document.querySelector(".bvi-built-elements-off"),reset:document.querySelector(".bvi-reset"),links:document.querySelectorAll(".bvi-link"),modal:document.querySelector(".bvi-modal")},i=function(t){var n,i=function(t,n){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,n){if(t){if("string"==typeof t)return e(t,n);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?e(t,n):void 0}}(t))||n&&t&&"number"==typeof t.length){i&&(t=i);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,c=!0,l=!1;return{s:function(){i=i.call(t)},n:function(){var e=i.next();return c=e.done,e},e:function(e){l=!0,a=e},f:function(){try{c||null==i.return||i.return()}finally{if(l)throw a}}}}(t.parentNode.children);try{for(i.s();!(n=i.n()).done;)n.value.classList.remove("active")}catch(e){i.e(e)}finally{i.f()}t.classList.add("active")},r=function(e,t){e.addEventListener("click",function(e){e.preventDefault(),"function"==typeof t&&t(e)})},o=function(){document.querySelectorAll(".bvi-link").forEach(function(e){e.classList.remove("active")}),f(t._config,function(e){if("theme"===e){var t=b(e);document.querySelector(".bvi-theme-".concat(t)).classList.add("active")}if("images"===e){var n="grayscale"===b(e)?"grayscale":s(b(e))?"on":"off";document.querySelector(".bvi-images-".concat(n)).classList.add("active")}if("speech"===e){var i=s(b(e))?"on":"off";document.querySelector(".bvi-speech-".concat(i)).classList.add("active")}if("lineHeight"===e){var r=b(e);document.querySelector(".bvi-line-height-".concat(r)).classList.add("active")}if("letterSpacing"===e){var o=b(e);document.querySelector(".bvi-letter-spacing-".concat(o)).classList.add("active")}if("fontFamily"===e){var a=b(e);document.querySelector(".bvi-font-family-".concat(a)).classList.add("active")}if("builtElements"===e){var c=s(b(e))?"on":"off";document.querySelector(".bvi-built-elements-".concat(c)).classList.add("active")}})};o(),r(n.fontSizeMinus,function(){var e=parseFloat(b("fontSize"))-1;0!==e&&(t._setAttrDataBviBody("fontSize",e),m("fontSize",e),t._speech("".concat(t._i18n.v("fontSizeMinus"))),i(n.fontSizeMinus))}),r(n.fontSizePlus,function(){var e=parseFloat(b("fontSize"))+1;40!==e&&(t._setAttrDataBviBody("fontSize",e),m("fontSize",e),t._speech("".concat(t._i18n.v("fontSizePlus"))),i(n.fontSizePlus))}),r(n.themeWhite,function(){t._setAttrDataBviBody("theme","white"),m("theme","white"),t._speech("".concat(t._i18n.v("siteColorBlackOnWhite"))),i(n.themeWhite)}),r(n.themeBlack,function(){t._setAttrDataBviBody("theme","black"),m("theme","black"),t._speech("".concat(t._i18n.v("siteColorWhiteOnBlack"))),i(n.themeBlack)}),r(n.themeBlue,function(){t._setAttrDataBviBody("theme","blue"),m("theme","blue"),t._speech("".concat(t._i18n.v("siteColorDarkBlueOnBlue"))),i(n.themeBlue)}),r(n.themeBrown,function(){t._setAttrDataBviBody("theme","brown"),m("theme","brown"),t._speech("".concat(t._i18n.v("siteColorBeigeBrown"))),i(n.themeBrown)}),r(n.themeGreen,function(){t._setAttrDataBviBody("theme","green"),m("theme","green"),t._speech("".concat(t._i18n.v("siteColorGreenOnDarkBrown"))),i(n.themeGreen)}),r(n.imagesOn,function(){t._setAttrDataBviBody("images","true"),m("images","true"),t._speech("".concat(t._i18n.v("imagesOn"))),i(n.imagesOn)}),r(n.imagesOff,function(){t._setAttrDataBviBody("images","false"),m("images","false"),t._speech("".concat(t._i18n.v("imagesOFF"))),i(n.imagesOff)}),r(n.imagesGrayscale,function(){t._setAttrDataBviBody("images","grayscale"),m("images","grayscale"),t._speech("".concat(t._i18n.v("imagesGrayscale"))),i(n.imagesGrayscale)}
6),r(n.speechOn,function(){t._setAttrDataBviBody("speech","true"),m("speech","true"),t._speech("".concat(t._i18n.v("speechOn"))),i(n.speechOn),t._speechPlayer()}),r(n.speechOff,function(){t._speech("".concat(t._i18n.v("speechOff"))),t._setAttrDataBviBody("speech","false"),m("speech","false"),i(n.speechOff),t._speechPlayer()}),r(n.lineHeightNormal,function(){t._setAttrDataBviBody("lineHeight","normal"),m("lineHeight","normal"),t._speech("".concat(t._i18n.v("lineHeightNormal"))),i(n.lineHeightNormal)}),r(n.lineHeightAverage,function(){t._setAttrDataBviBody("lineHeight","average"),m("lineHeight","average"),t._speech("".concat(t._i18n.v("lineHeightAverage"))),i(n.lineHeightAverage)}),r(n.lineHeightBig,function(){t._setAttrDataBviBody("lineHeight","big"),m("lineHeight","big"),t._speech("".concat(t._i18n.v("lineHeightBig"))),i(n.lineHeightBig)}),r(n.letterSpacingNormal,function(){t._setAttrDataBviBody("letterSpacing","normal"),m("letterSpacing","normal"),t._speech("".concat(t._i18n.v("LetterSpacingNormal"))),i(n.letterSpacingNormal)}),r(n.letterSpacingAverage,function(){t._setAttrDataBviBody("letterSpacing","average"),m("letterSpacing","average"),t._speech("".concat(t._i18n.v("LetterSpacingAverage"))),i(n.letterSpacingAverage)}),r(n.letterSpacingBig,function(){t._setAttrDataBviBody("letterSpacing","big"),m("letterSpacing","big"),t._speech("".concat(t._i18n.v("LetterSpacingBig"))),i(n.letterSpacingBig)}),r(n.fontFamilyArial,function(){t._setAttrDataBviBody("fontFamily","arial"),m("fontFamily","arial"),t._speech("".concat(t._i18n.v("fontArial"))),i(n.fontFamilyArial)}),r(n.fontFamilyTimes,function(){t._setAttrDataBviBody("fontFamily","times"),m("fontFamily","times"),t._speech("".concat(t._i18n.v("fontTimes"))),i(n.fontFamilyTimes)}),r(n.builtElementsOn,function(){t._setAttrDataBviBody("builtElements","true"),m("builtElements","true"),t._speech("".concat(t._i18n.v("builtElementsOn"))),i(n.builtElementsOn)}),r(n.builtElementsOff,function(){t._setAttrDataBviBody("builtElements","false"),m("builtElements","false"),t._speech("".concat(t._i18n.v("builtElementsOFF"))),i(n.builtElementsOff)}),r(n.reset,function(){t._speech("".concat(t._i18n.v("resetSettings"))),f(t._config,function(e){t._setAttrDataBviBody(e,t._config[e]),m(e,t._config[e]),o()})}),h(n.links,function(e){r(e,function(e){var i=e.target.getAttribute("data-bvi");"close"===i&&(t._setAttrDataBviBody("panelActive","false"),m("panelActive","false"),t._init()),"modal"===i&&(document.body.style.overflow="hidden",document.body.classList.add("bvi-noscroll"),n.modal.classList.toggle("show")),"modal-close"===i&&(document.body.classList.remove("bvi-noscroll"),document.body.style.overflow="",n.modal.classList.remove("show")),"panel-hide"===i&&(document.body.classList.add("bvi-panel-is-hide"),document.querySelector(".bvi-panel").classList.add("bvi-panel-hide"),document.querySelector(".bvi-link-fixed-top").classList.remove("bvi-hide"),document.querySelector(".bvi-link-fixed-top").classList.add("bvi-show"),m("panelHide","true"),t._setHeightPanel(),t._setAttrDataBviBody("panelHide","true"),t._speech("".concat(t._i18n.v("panelHide")))),"panel-show"===i&&(document.body.classList.remove("bvi-panel-is-hide"),document.querySelector(".bvi-link-fixed-top").classList.remove("bvi-show"),document.querySelector(".bvi-link-fixed-top").classList.add("bvi-hide"),document.querySelector(".bvi-panel").classList.remove("bvi-panel-hide"),m("panelHide","false"),t._setAttrDataBviBody("panelHide","false"),t._setHeightPanel(),t._speech("".concat(t._i18n.v("panelShow"))))})}),r(n.modal,function(e){e.target.contains(n.modal)&&(document.body.classList.remove("bvi-noscroll"),document.body.style.overflow="",n.modal.classList.remove("show"))})}},{key:"_getPanel",value:function(){var e=this,t=function(){var t=e,n=document.querySelector(".bvi-panel"),i=void 0!==window.pageYOffset?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop;s(b("panelFixed"))&&(i>200?(n.classList.add("bvi-fixed-top"),t._setHeightPanel(),t._setAttrDataBviBody("panelFixed","true")):(n.classList.remove("bvi-fixed-top"),document.body.classList.remove("bvi-panel-fixed-top"),t._setHeightPanel(),t._setAttrDataBviB
6ody("panelFixed","false")))},n=s(b("panelHide"))?" bvi-panel-hide":"",i=s(b("panelHide"))?"bvi-show":" bvi-hide",r="\n    <div class='bvi-panel".concat(n,'\'>\n        <div class="bvi-blocks bvi-block-center">\n            <div class="bvi-block">\n                <div class="bvi-block-title">').concat(this._i18n.t("fontSize"),'</div>\n                <a class="bvi-link bvi-fontSize-minus">А-</a>\n                <a class="bvi-link bvi-fontSize-plus">А+</a>\n            </div>\n            <div class="bvi-block">\n                <div class="bvi-block-title">').concat(this._i18n.t("siteColors"),'</div>\n                <a href="#" class="bvi-link bvi-theme-white">Ц</a>\n                <a href="#" class="bvi-link bvi-theme-black">Ц</a>\n                <a href="#" class="bvi-link bvi-theme-blue">Ц</a>\n                <a href="#" class="bvi-link bvi-theme-brown">Ц</a>\n                <a href="#" class="bvi-link bvi-theme-green">Ц</a>\n            </div>\n            <div class="bvi-block">\n                <div class="bvi-block-title">').concat(this._i18n.t("images"),'</div>\n                <a href="#" class="bvi-link bvi-images-on">\n                    <i class="bvi-images bvi-images-image"></i>\n                </a>\n                <a href="#" class="bvi-link bvi-images-off">\n                    <i class="bvi-images bvi-images-minus-circle"></i>\n                </a>\n                <a href="#" class="bvi-link bvi-images-grayscale">\n                    <i class="bvi-images bvi-images-adjust"></i>\n                </a>\n            </div>\n            <div class="bvi-block">\n                <div class="bvi-block-title">').concat(this._i18n.t("speech"),'</div>\n                <a href="#" class="bvi-link bvi-speech-off">\n                    <i class="bvi-images bvi-images-volume-off"></i>\n                </a>\n                <a href="#" class="bvi-link bvi-speech-on">\n                    <i class="bvi-images bvi-images-volume-up"></i>\n                </a>\n            </div>\n            <div class="bvi-block">\n                <div class="bvi-block-title">').concat(this._i18n.t("settings"),'</div>\n                <a href="#" class="bvi-link" data-bvi="modal">\n                    <i class="bvi-images bvi-images-cog"></i>\n                </a>\n                <a href="#" class="bvi-link" data-bvi="close">\n                    ').concat(this._i18n.t("regularVersionOfTheSite"),'\n                </a>\n                <a href="#" class="bvi-link" data-bvi="panel-hide">\n                    <i class="bvi-images bvi-images-minus"></i>\n                </a>\n            </div>\n        </div>\n        <div class="bvi-modal">\n            <div class="bvi-modal-dialog">\n                <div class="bvi-modal-content">\n                    <div class="bvi-modal-header">\n                        <div class="bvi-modal-title">').concat(this._i18n.t("settings"),'</div>\n                        <a href="#" class="bvi-link bvi-modal-close" data-bvi="modal-close">×</a>\n                    </div>\n                    <div class="bvi-modal-body">\n                        <div class="bvi-blocks bvi-block-center">\n                            <div class="bvi-block">\n                                <div class="bvi-block-title">').concat(this._i18n.t("letterSpacing"),'</div>\n                                <a href="#" class="bvi-link bvi-letter-spacing-normal">').concat(this._i18n.t("normal"),'</a>\n                                <a href="#" class="bvi-link bvi-letter-spacing-average">').concat(this._i18n.t("average"),'</a>\n                                <a href="#" class="bvi-link bvi-letter-spacing-big">').concat(this._i18n.t("big"),'</a>\n                            </div>\n                            <div class="bvi-block">\n                                <div class="bvi-block-title">').concat(this._i18n.t("lineHeight"),'</div>\n                                <a href="#" class="bvi-link bvi-line-height-normal">').concat(this._i18n.t("normal"),'</a>\n                                <a href="#" class="bvi-link bvi-line-height-average">').concat(this._i18n.t("average"),'</a>\n                                <a href="#" class="bvi-link bvi-line-height-big">').concat(this._i18n.t("big"),'</a>\n                            </div>\n                            <div class="bvi-block">\n                                <div class="bvi-block-title">').concat(this._i18n.t("font"),'</div>\n                                <a href="#" class="bvi-link bvi-font-family-arial">').concat(this._i18n.t("arial"),'</a>\n                                <a href="#" class="bvi-link bvi-font-family-times">').concat(this._i18n.t("times"),'</a>\n                            </div>\n                            <div class="bvi-block">\n                                <div class="bvi-block-title">').concat(this._i18n.t("builtElements"),'</div>\n                                <a href="#" class="bvi-link bvi-built-elements-on">').concat(this._i18n.t("on"),'</a>\n                                <a href="#" class="bvi-link bvi-built-elements-off">').concat(this._i18n.t("off"),'</a>\n                            </div>\n                        </div>\n                        <div class="bvi-blocks bvi-block-center">\n                            <a href="https://bvi.isvek.ru" class="bvi-copyright" target="_blank">bvi.isvek.ru</a>\n                        </div>\n                    </div>\n                    <div class="bvi-modal-footer">\n                        <a href="#" class="bvi-link bvi-reset">').concat(this._i18n.t("reset"),"</a>\n                    </div>\n                </div>\n            </div>\n        </div>\n    </div>"),o='<a href="#" class="bvi-link bvi-link-fixed-top bvi-no-styles '.concat(i,'" data-bvi="panel-show">')+'<i class="bvi-images bvi-images-eye bvi-images-size-32 bvi-no-styles"></i></a>';window.addEventListener("scroll",t),document.querySelector(".bvi-body").insertAdjacentHTML("beforebegin",r),document.querySelector(".bvi-body").insertAdjacentHTML("afterbegin",o),t()}},{key:"_set",value:function(){var e=this;document.body.classList.add("bvi-active"),u(document.body,"div","bvi-body"),f(this._config,function(t){return e._setAttrDataBviB
6ody(t,b(t))}),h(this._elements,function(e){return e.style.display="none"}),document.querySelectorAll("img").forEach(function(e){e.classList.contains("bvi-img")&&e.classList.remove("bvi-img")}),document.querySelectorAll("body *").forEach(function(e){e.classList.contains("bvi-background-image")&&e.classList.remove("bvi-background-image")})}},{key:"_remove",value:function(){var e=document.querySelector(".bvi-panel"),t=document.querySelector(".bvi-body"),n=document.querySelector(".bvi-link-fixed-top");e&&e.remove(),t&&v(t),n&&n.remove(),this._speech("".concat(this._i18n.v("panelOff"))),document.body.classList.remove("bvi-active"),h(this._elements,function(e){return e.style.display=""}),s(b("reload"))&&document.location.reload(),f(this._config,function(e){p(e)}),this._speechPlayer(),p("panelActive")}},{key:"_images",value:function(){document.querySelectorAll("img").forEach(function(e){e.classList.contains("bvi-no-style")||e.classList.add("bvi-img")}),document.querySelectorAll(".bvi-body *").forEach(function(e){var t=getComputedStyle(e);"none"===t.backgroundImage||"none"===t.background||e.classList.contains("bvi-no-style")||e.classList.add("bvi-background-image")})}},{key:"_getConfig",value:function(e){e=a(a({},S),e);var t={};for(var n in S)t[n]=e[n];return function(e,t,n){Object.keys(t).forEach(function(n){var i,r=t[n],o=e[n],a=o&&(i=o)&&"object"===l(i)&&void 0!==i.nodeType?"element":function(e){return null==e?"".concat(e):{}.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase()}(o);if(!new RegExp(r).test(a))throw new TypeError('Bvi console: Опция "'.concat(n,'" предоставленный тип "').concat(a,'", ожидаемый тип "').concat(r,'".'))}),Object.keys(n).forEach(function(t){var i=n[t],r=e[t];if(!new RegExp(i).test(r))throw new TypeError('Bvi console: Опция "'.concat(t,'" параметр "').concat(r,'", ожидаемый параметр "').concat(i,'".'))})}(t,_,k),t}},{key:"_setAttrDataBviBody",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";document.querySelector(".bvi-body").setAttribute("data-bvi-".concat(e),t)}},{key:"_speechPlayer",value:function(){var e=this,t=document.querySelectorAll(".bvi-speech-text"),n=document.querySelectorAll(".bvi-speech-link"),i=document.querySelectorAll(".bvi-speech");if("speechSynthesis"in window&&s(b("speech"))){if(i){t&&t.forEach(function(e){return v(e)}),n&&n.forEach(function(e){return e.remove()}
6),i.forEach(function(e,t){var n="bvi-speech-text-id-".concat(t+1);u(e,"div","bvi-speech-text ".concat(n)),e.insertAdjacentHTML("afterbegin",'\n            <div class="bvi-speech-link">\n              <a href="#" class="bvi-link bvi-speech-play" title="Воспроизвести">Воспроизвести</a>\n              <a href="#" class="bvi-link bvi-speech-pause disabled" title="Пауза">Пауза</a>\n              <a href="#" class="bvi-link bvi-speech-resume disabled" title="Продолжить">Продолжить</a>\n              <a href="#" class="bvi-link bvi-speech-stop disabled" title="Стоп">Стоп</i></a>\n          </div>')});var r=document.querySelectorAll(".bvi-speech-play"),o=document.querySelectorAll(".bvi-speech-pause"),a=document.querySelectorAll(".bvi-speech-resume"),c=document.querySelectorAll(".bvi-speech-stop"),l=function(e,t){e.forEach(function(e){e.addEventListener("click",function(n){if(n.preventDefault(),"function"==typeof t)return t(e,n)},!1)})};l(r,function(t,n){var i=n.target,r=i.parentNode.nextElementSibling,o=n.target.closest(".bvi-speech-link"),a=document.querySelectorAll(".bvi-speech-play"),c=document.querySelectorAll(".bvi-speech-pause"),l=document.querySelectorAll(".bvi-speech-resume"),s=document.querySelectorAll(".bvi-speech-stop");e._speech(r.textContent,r,!0),a.forEach(function(e){return e.classList.remove("disabled")}),c.forEach(function(e){return e.classList.add("disabled")}),l.forEach(function(e){return e.classList.add("disabled")}),s.forEach(function(e){return e.classList.add("disabled")}),i.classList.add("disabled"),o.querySelector(".bvi-speech-pause").classList.remove("disabled"),o.querySelector(".bvi-speech-stop").classList.remove("disabled")}),l(o,function(e,t){var n=t.target,i=t.target.closest(".bvi-speech-link");n.classList.add("disabled"),i.querySelector(".bvi-speech-resume").classList.remove("disabled"),d().pause()}),l(a,function(e,t){var n=t.target,i=t.target.closest(".bvi-speech-link");n.classList.add("disabled"),i.querySelector(".bvi-speech-pause").classList.remove("disabled"),d().resume()}),l(c,function(e,t){var n=t.target,i=t.target.closest(".bvi-speech-link");n.classList.add("disabled"),i.querySelector(".bvi-speech-pause").classList.add("disabled"),i.querySelector(".bvi-speech-play").classList.remove("disabled"),d().cancel()})}}else t&&t.forEach(function(e){return v(e)}),n&&n.forEach(function(e){return e.remove()})}},{key:"_speech",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("speechSynthesis"in window&&s(b("speech"))){d().cancel();for(var r=new RegExp("^[\\s\\S]{"+Math.floor(60)+",120}[.!?,]{1}|^[\\s\\S]{1,120}$|^[\\s\\S]{1,120} "),o=[],a=e,c=d().getVoices();a.length>0;)o.push(a.match(r)[0]),a=a.substring(o[o.length-1].length);o.forEach(function(e){var r=new SpeechSynthesisUtterance(e.trim());r.volume=1,r.rate=1,r.pitch=1,r.lang=n._config.lang;for(var o=0;o<c.length;o++)"ru-RU"===n._config.lang&&"Microsoft Pavel - Russian (Russia)"===c[o].name&&(r.voice=c[o]),"en-US"===n._config.lang&&"Microsoft Pavel - English (English)"===c[o].name&&(r.voice=c[o]);i&&(r.onboundary=function(e){t.classList.add("bvi-highlighting");var n=function(e,t){e=String(e),t=Number(t)>>>0;var n=e.slice(0,t+1).search(/\S+$/),i=e.slice(t).search(/\s/);return i<0?e.slice(n):e.slice(n,i+t)}(e.utterance.text,e.charIndex),i=t.textContent,r=n.replace(/(\s+)/,"((<[^>]+>)*$1(<[^>]+>)*)"),o=new RegExp("("+r+")","gi");i=(i=i.replace(o,"<mark>$1</mark>")).replace(/(<mark>[^<>]*)((<[^>]+>)+)([^<>]*<\/mark>)/,"$1</mark>$2<mark>$4"),t.innerHTML=i},r.onend=function(e){t.classList.remove("bvi-highlighting");var n=t.textContent;n=n.replace(/(<mark>$1<\/mark>)/,"$1"),t.innerHTML=n}),d().speak(r)})}}},{key:"_setHeightPanel",value:function(){var e=document.querySelector(".bvi-panel"),t=window.getComputedStyle(e,null).getPropertyValue("height");document.body.style.setProperty("--bvi-panel-height",t)}}])}();return{Bvi:w}});
7//# sourceMappingURL=bvi.min.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.