PageSourceSearch

https://sp-stm.ru/bitrix/cache/js/s1/aspro-allcorp3heat/template_b…8fbd4414e4b893b6e3f8_v1.js?1762951034605696

js sp-stm.ru collected 2026-10-08 07:25:40 UTC 605,696 bytes, 6,697 lines download raw bytes

1
2; /* Start:"a:4:{s:4:"full";s:70:"/bitrix/templates/aspro-allcorp3heat/js/observer.min.js?16860349813650";s:6:"source";s:51:"/bitrix/templates/aspro-allcorp3heat/js/observer.js";s:3:"min";s:55:"/bitrix/templates/aspro-allcorp3heat/js/observer.min.js";s:3:"map";s:59:"/bitrix/templates/aspro-allcorp3heat/js/observer.min.js.map";}"*/
3"undefined"==typeof AMutationObserver&&"function"==typeof MutationObserver&&function(w,d){"use strict";var _AMutationObserver=function(_MutationObserver){function _AMutationObserver(callback){var _this;_this=_MutationObserver.call(this,(function(mutationsList,observer){_AMutationObserver.ignore||observer.paused||callback(mutationsList,observer)}))||this,_this.paused=!0,_this.id=Math.floor(Math.random()*Math.floor(1e3));try{eval("@")}catch(e){if("string"==typeof e.stack){_this.stack=e.stack.match(/[^\s]*:[\d]+:[\d]+[^\s]/g),_this.stack.splice(0,1);var script=_this.stack[0];-1!==script.indexOf("yandex.ru/metrika")?_this.id="ym":(script=script.replace(/^(.*[/])?(.*\.js)(.*)$/gi,"$2"),_this.id=script.replace(/(\.min)?\.js$/i,""))}}return _this}_inheritsLoose(_AMutationObserver,_MutationObserver);var _proto=_AMutationObserver.prototype;return _proto.observe=function observe(target,options){this.target=target,this.options=options,this.paused=!1,void 0===_AMutationObserver.observers[this.id]&&(_AMutationObserver.observers[this.id]=this),_MutationObserver.prototype.observe.call(this,target,options)},_proto.disconnect=function disconnect(){this.paused=!0,_MutationObserver.prototype.disconnect.call(this)},_proto.takeRecords=function takeRecords(){return _AMutationObserver.ignore||this.paused?[]:_MutationObserver.prototype.takeRecords.call(this)},_proto.pause=function pause(){this.paused=!0},_proto.resume=function resume(){"false"!=typeof this.options&&(this.paused=!1)},_AMutationObserver}(_wrapNativeSuper(MutationObserver));function _inheritsLoose(subClass,superClass){subClass.prototype=Object.create(superClass.prototype),subClass.prototype.constructor=subClass,subClass.__proto__=superClass}function _wrapNativeSuper(Class){var _cache="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper=function _wrapNativeSuper(Class){if(null===Class||!_isNativeFunction(Class))return Class;if("function"!=typeof Class)throw new TypeError("Super expression must either be null or a function");if(void 0!==_cache){if(_cache.has(Class))return _cache.get(Class);_cache.set(Class,Wrapper)}function Wrapper(){return _construct(Class,arguments,_getPrototypeOf(this).constructor)}return Wrapper.prototype=Object.create(Class.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper,Class)})(Class)}function _construct(Parent,args,Class){return(_construct=_isNativeReflectConstruct()?Reflect.construct:function _construct(Parent,args,Class){var a=[null];a.push.apply(a,args);var Constructor,instance=new(Function.bind.apply(Parent,a));return Class&&_setPrototypeOf(instance,Class.prototype),instance}).apply(null,arguments)}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function _isNativeFunction(fn){return-1!==Function.toString.call(fn).indexOf("[native code]")}function _setPrototypeOf(o,p){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(o,p){return o.__proto__=p,o})(o,p)}function _getPrototypeOf(o){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o)})(o)}_AMutationObserver.ignore=!1,_AMutationObserver.observers=[],_AMutationObserver.parent=MutationObserver,_AMutationObserver.toString=function(){return"function MutationObserver() { [native code] }"},MutationObserver=_AMutationObserver}(window,document);
4/* End */
5;
6; /* Start:"a:4:{s:4:"full";s:79:"/bitrix/templates/aspro-allcorp3heat/vendor/jquery.easing.min.js?16860349813372";s:6:"source";s:60:"/bitrix/templates/aspro-allcorp3heat/vendor/jquery.easing.js";s:3:"min";s:64:"/bitrix/templates/aspro-allcorp3heat/vendor/jquery.easing.min.js";s:3:"map";s:68:"/bitrix/templates/aspro-allcorp3heat/vendor/jquery.easing.min.js.map";}"*/
7jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(x,t,b,c,d){return jQuery.easing[jQuery.easing.def](x,t,b,c,d)},easeInQuad:function(x,t,b,c,d){return c*(t/=d)*t+b},easeOutQuad:function(x,t,b,c,d){return-c*(t/=d)*(t-2)+b},easeInOutQuad:function(x,t,b,c,d){return(t/=d/2)<1?c/2*t*t+b:-c/2*(--t*(t-2)-1)+b},easeInCubic:function(x,t,b,c,d){return c*(t/=d)*t*t+b},easeOutCubic:function(x,t,b,c,d){return c*((t=t/d-1)*t*t+1)+b},easeInOutCubic:function(x,t,b,c,d){return(t/=d/2)<1?c/2*t*t*t+b:c/2*((t-=2)*t*t+2)+b},easeInQuart:function(x,t,b,c,d){return c*(t/=d)*t*t*t+b},easeOutQuart:function(x,t,b,c,d){return-c*((t=t/d-1)*t*t*t-1)+b},easeInOutQuart:function(x,t,b,c,d){return(t/=d/2)<1?c/2*t*t*t*t+b:-c/2*((t-=2)*t*t*t-2)+b},easeInQuint:function(x,t,b,c,d){return c*(t/=d)*t*t*t*t+b},easeOutQuint:function(x,t,b,c,d){return c*((t=t/d-1)*t*t*t*t+1)+b},easeInOutQuint:function(x,t,b,c,d){return(t/=d/2)<1?c/2*t*t*t*t*t+b:c/2*((t-=2)*t*t*t*t+2)+b},easeInSine:function(x,t,b,c,d){return-c*Math.cos(t/d*(Math.PI/2))+c+b},easeOutSine:function(x,t,b,c,d){return c*Math.sin(t/d*(Math.PI/2))+b},easeInOutSine:function(x,t,b,c,d){return-c/2*(Math.cos(Math.PI*t/d)-1)+b},easeInExpo:function(x,t,b,c,d){return 0==t?b:c*Math.pow(2,10*(t/d-1))+b},easeOutExpo:function(x,t,b,c,d){return t==d?b+c:c*(1-Math.pow(2,-10*t/d))+b},easeInOutExpo:function(x,t,b,c,d){return 0==t?b:t==d?b+c:(t/=d/2)<1?c/2*Math.pow(2,10*(t-1))+b:c/2*(2-Math.pow(2,-10*--t))+b},easeInCirc:function(x,t,b,c,d){return-c*(Math.sqrt(1-(t/=d)*t)-1)+b},easeOutCirc:function(x,t,b,c,d){return c*Math.sqrt(1-(t=t/d-1)*t)+b},easeInOutCirc:function(x,t,b,c,d){return(t/=d/2)<1?-c/2*(Math.sqrt(1-t*t)-1)+b:c/2*(Math.sqrt(1-(t-=2)*t)+1)+b},easeInElastic:function(x,t,b,c,d){var s=1.70158,p=0,a=c;if(0==t)return b;if(1==(t/=d))return b+c;if(p||(p=.3*d),a<Math.abs(c)){a=c;var s=p/4}else var s=p/(2*Math.PI)*Math.asin(c/a);
7return-a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p)+b},easeOutElastic:function(x,t,b,c,d){var s=1.70158,p=0,a=c;if(0==t)return b;if(1==(t/=d))return b+c;if(p||(p=.3*d),a<Math.abs(c)){a=c;var s=p/4}else var s=p/(2*Math.PI)*Math.asin(c/a);return a*Math.pow(2,-10*t)*Math.sin((t*d-s)*(2*Math.PI)/p)+c+b},easeInOutElastic:function(x,t,b,c,d){var s=1.70158,p=0,a=c;if(0==t)return b;if(2==(t/=d/2))return b+c;if(p||(p=d*(.3*1.5)),a<Math.abs(c)){a=c;var s=p/4}else var s=p/(2*Math.PI)*Math.asin(c/a);return t<1?a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p)*-.5+b:a*Math.pow(2,-10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p)*.5+c+b},easeInBack:function(x,t,b,c,d,s){return null==s&&(s=1.70158),c*(t/=d)*t*((s+1)*t-s)+b},easeOutBack:function(x,t,b,c,d,s){return null==s&&(s=1.70158),c*((t=t/d-1)*t*((s+1)*t+s)+1)+b},easeInOutBack:function(x,t,b,c,d,s){return null==s&&(s=1.70158),(t/=d/2)<1?c/2*(t*t*((1+(s*=1.525))*t-s))+b:c/2*((t-=2)*t*((1+(s*=1.525))*t+s)+2)+b},easeInBounce:function(x,t,b,c,d){return c-jQuery.easing.easeOutBounce(x,d-t,0,c,d)+b},easeOutBounce:function(x,t,b,c,d){return(t/=d)<1/2.75?c*(7.5625*t*t)+b:t<2/2.75?c*(7.5625*(t-=1.5/2.75)*t+.75)+b:t<2.5/2.75?c*(7.5625*(t-=2.25/2.75)*t+.9375)+b:c*(7.5625*(t-=2.625/2.75)*t+.984375)+b},easeInOutBounce:function(x,t,b,c,d){return t<d/2?.5*jQuery.easing.easeInBounce(x,2*t,0,c,d)+b:.5*jQuery.easing.easeOutBounce(x,2*t-d,0,c,d)+.5*c+b}});
8/* End */
9;
10; /* Start:"a:4:{s:4:"full";s:79:"/bitrix/templates/aspro-allcorp3heat/vendor/jquery.cookie.min.js?16860349811613";s:6:"source";s:60:"/bitrix/templates/aspro-allcorp3heat/vendor/jquery.cookie.js";s:3:"min";s:64:"/bitrix/templates/aspro-allcorp3heat/vendor/jquery.cookie.min.js";s:3:"map";s:68:"/bitrix/templates/aspro-allcorp3heat/vendor/jquery.cookie.min.js.map";}"*/
11/*!
12 * jQuery Cookie Plugin v1.3.1
13 * https://github.com/carhartl/jquery-cookie
14 *
15 * Copyright 2013 Klaus Hartl
16 * Released under the MIT license
17 */
18!function(factory){"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],factory):factory(jQuery)}((function($){var pluses=/\+/g;function raw(s){return s}function decoded(s){return decodeURIComponent(s.replace(pluses," "))}function converted(s){0===s.indexOf('"')&&(s=s.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return config.json?JSON.parse(s):s}catch(er){}}var config=$.cookie=function(key,value,options){if(void 0!==value){if("number"==typeof(options=$.extend({},config.defaults,options)).expires){var days=options.expires,t=options.expires=new Date;t.setDate(t.getDate()+days)}return value=config.json?JSON.stringify(value):String(value),document.cookie=[encodeURIComponent(key),"=",config.raw?value:encodeURIComponent(value),options.expires?"; expires="+options.expires.toUTCString():"",options.path?"; path="+options.path:"",options.domain?"; domain="+options.domain:"",options.secure?"; secure":""].join("")}for(var decode=config.raw?raw:decoded,cookies=document.cookie.split("; "),result=key?void 0:{},i=0,l=cookies.length;i<l;i++){var parts=cookies[i].split("="),name=decode(parts.shift()),cookie=decode(parts.join("="));if(key&&key===name){result=converted(cookie);break}key||(result[name]=converted(cookie))}return result};config.defaults={},$.removeCookie=function(key,options){return void 0!==$.cookie(key)&&($.cookie(key,"",$.extend(options,{expires:-1})),!0)}}));
19/* End */
20;
21; /* Start:"a:4:{s:4:"full";s:72:"/bitrix/templates/aspro-allcorp3heat/vendor/bootstrap.js?168603498127908";s:6:"source";s:56:"/bitrix/templates/aspro-allcorp3heat/vendor/bootstrap.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
22/*!
23 * Bootstrap v3.0.0
24 *
25 * Copyright 2013 Twitter, Inc
26 * Licensed under the Apache License v2.0
27 * http://www.apache.org/licenses/LICENSE-2.0
28 *
29 * Designed and built with all the love in the world @twitter by @mdo and @fat.
30 */
31
32+function(a){"use strict";var b='[data-dismiss="alert"]',c=function(c){a(c).on("click",b,this.close)};c.prototype.close=function(b){function f(){e.trigger("closed.bs.alert").remove()}var c=a(this),d=c.attr("data-target");d||(d=c.attr("href"),d=d&&d.replace(/.*(?=#[^\s]*$)/,""));var e=a(d);b&&b.preventDefault(),e.length||(e=c.hasClass("alert")?c:c.parent()),e.trigger(b=a.Event("close.bs.alert"));if(b.isDefaultPrevented())return;e.removeClass("in"),a.support.transition&&e.hasClass("fade")?e.one(a.support.transition.end,f).emulateTransitionEnd(150):f()};var d=a.fn.alert;a.fn.alert=function(b){return this.each(function(){var d=a(this),e=d.data("bs.alert");e||d.data("bs.alert",e=new c(this)),typeof b=="string"&&e[b].call(
32d)})},a.fn.alert.Constructor=c,a.fn.alert.noConflict=function(){return a.fn.alert=d,this},a(document).on("click.bs.alert.data-api",b,c.prototype.close)}(window.jQuery),+function(a){"use strict";var b=function(c,d){this.$element=a(c),this.options=a.extend({},b.DEFAULTS,d)};b.DEFAULTS={loadingText:"loading..."},b.prototype.setState=function(a){var b="disabled",c=this.$element,d=c.is("input")?"val":"html",e=c.data();a+="Text",e.resetText||c.data("resetText",c[d]()),c[d](e[a]||this.options[a]),setTimeout(function(){a=="loadingText"?c.addClass(b).attr(b,b):c.removeClass(b).removeAttr(b)},0)},b.prototype.toggle=function(){var a=this.$element.closest('[data-toggle="buttons"]');if(a.length){var b=this.$element.find("input").prop("checked",!this.$element.hasClass("active")).trigger("change");b.prop("type")==="radio"&&a.find(".active").removeClass("active")}this.$element.toggleClass("active")};var c=a.fn.button;a.fn.button=function(c){return this.each(function(){var d=a(this),e=d.data("bs.button"),f=typeof c=="object"&&c;e||d.data("bs.button",e=new b(this,f)),c=="toggle"?e.toggle():c&&e.setState(c)})},a.fn.button.Constructor=b,a.fn.button.noConflict=function(){return a.fn.button=c,this},a(document).on("click.bs.button.data-api","[data-toggle^=button]",function(b){var c=a(b.target);c.hasClass("btn")||(c=c.closest(".btn")),c.button("toggle"),b.preventDefault()})}(window.jQuery),+function(a){"use strict";var b=function(b,c){this.$element=a(b),this.$indicators=this.$element.find(".carousel-indicators"),this.options=c,this.paused=this.sliding=this.interval=this.$active=this.$items=null,this.options.pause=="hover"&&this.$element.on("mouseenter",a.proxy(this.pause,this)).on("mouseleave",a.proxy(this.cycle,this))};b.DEFAULTS={interval:5e3,pause:"hover",wrap:!0},b.prototype.cycle=function(b){return b||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(a.proxy(this.next,this),this.options.interval)),this},b.prototype.getActiveIndex=function(){return this.$active=this.$element.find(".item.active"),this.$items=this.$active.parent().children(),this.$items.index(this.$active)},b.prototype.to=function(b){var c=this,d=this.getActiveIndex();if(b>this.$items.length-1||b<0)return;return this.sliding?this.$element.one("slid",function(){c.to(b)}):d==b?this.pause().cycle():this.slide(b>d?"next":"prev",a(this.$items[b]))},b.prototype.pause=function(b){return b||(this.paused=!0),this.$element.find(".next, .prev").length&&a.support.transition.end&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},b.prototype.next=function(){if(this.sliding)return;return this.slide("next")},b.prototype.prev=function(){if(this.sliding)return;return this.slide("prev")},b.prototype.slide=function(b,c){var d=this.$element.find(".item.active"),e=c||d[b](),f=this.interval,g=b=="next"?"left":"right",h=b=="next"?"first":"last",i=this;if(!e.length){if(!this.options.wrap)return;e=this.$element.find(".item")[h]()}this.sliding=!0,f&&this.pause();var j=a.Event("slide.bs.carousel",{relatedTarget:e[0],direction:g});if(e.hasClass("active"))return;this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),this.$element.one("slid",function(){var b=a(i.$indicators.children()[i.getActiveIndex()]);b&&b.addClass("active")}));if(a.support.transition&&this.$element.hasClass("slide")){this.$element.trigger(j);if(j.isDefaultPrevented())return;e.addClass(b),e[0].offsetWidth,d.addClass(g),e.addClass(g),d.one(a.support.transition.end,function(){e.removeClass([b,g].join(" ")).addClass("active"),d.removeClass(["active",g].join(" ")),i.sliding=!1,setTimeout(function(){i.$element.trigger("slid")},0)}).emulateTransitionEnd(600)}else{this.$element.trigger(j);if(j.isDefaultPrevented())return;d.removeClass("active"),e.addClass("active"),this.sliding=!1,this.$element.trigger("slid")}return f&&this.cycle(),this};var c=a.fn.carousel;a.fn.carousel=function(c){return this.each(function(){var d=a(this),e=d.data("bs.carousel"),f=a.extend({},b.DEFAULTS,d.data(),typeof c=="object"&&c),g=typeof c=="string"?c:f.slide;e||d.data("bs.carousel",e=new b(this,f)),typeof c=="number"?e.to(c):g?e[g]():f.interval&&e.pause().cycle()})},a.fn.carousel.Constructor=b,a.fn.carousel.noConflict=function(){return a.fn.carousel=c,this}
32,a(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",function(b){var c=a(this),d,e=a(c.attr("data-target")||(d=c.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,"")),f=a.extend({},e.data(),c.data()),g=c.attr("data-slide-to");g&&(f.interval=!1),e.carousel(f),(g=c.attr("data-slide-to"))&&e.data("bs.carousel").to(g),b.preventDefault()}),a(window).on("load",function(){a('[data-ride="carousel"]').each(function(){var b=a(this);b.carousel(b.data())})})}(window.jQuery),+function(a){function e(){a(b).remove(),a(c).each(function(b){var c=f(a(this));if(!c.hasClass("open"))return;c.trigger(b=a.Event("hide.bs.dropdown"));if(b.isDefaultPrevented())return;c.removeClass("open").trigger("hidden.bs.dropdown")})}function f(b){var c=b.attr("data-target");c||(c=b.attr("href"),c=c&&/#/.test(c)&&c.replace(/.*(?=#[^\s]*$)/,""));var d=c&&a(c);return d&&d.length?d:b.parent()}"use strict";var b=".dropdown-backdrop",c="[data-toggle=dropdown]",d=function(b){var c=a(b).on("click.bs.dropdown",this.toggle)};d.prototype.toggle=function(b){var c=a(this);if(c.is(".disabled, :disabled"))return;var d=f(c),g=d.hasClass("open");e();if(!g){"ontouchstart"in document.documentElement&&!d.closest(".navbar-nav").length&&a('<div class="dropdown-backdrop"/>').insertAfter(a(this)).on("click",e),d.trigger(b=a.Event("show.bs.dropdown"));if(b.isDefaultPrevented())return;d.toggleClass("open").trigger("shown.bs.dropdown"),c.focus()}return!1},d.prototype.keydown=function(b){if(!/(38|40|27)/.test(b.keyCode))return;var d=a(this);b.preventDefault(),b.stopPropagation();if(d.is(".disabled, :disabled"))return;var e=f(d),g=e.hasClass("open");if(!g||g&&b.keyCode==27)return b.which==27&&e.find(c).focus(),d.click();var h=a("[role=menu] li:not(.divider):visible a",e);if(!h.length)return;var i=h.index(h.filter(":focus"));b.keyCode==38&&i>0&&i--,b.keyCode==40&&i<h.length-1&&i++,~i||(i=0),h.eq(i).focus()};var g=a.fn.dropdown;a.fn.dropdown=function(b){return this.each(function(){var c=a(this),e=c.data("dropdown");e||c.data("dropdown",e=new d(this)),typeof b=="string"&&e[b].call(c)})},a.fn.dropdown.Constructor=d,a.fn.dropdown.noConflict=function(){return a.fn.dropdown=g,this},a(document).on("click.bs.dropdown.data-api",e).on("click.bs.dropdown.data-api",".dropdown form",function(a){a.stopPropagation()}).on("click.bs.dropdown.data-api",c,d.prototype.toggle).on("keydown.bs.dropdown.data-api",c+", [role=menu]",d.prototype.keydown)}(window.jQuery),+function(a){"use strict";var b=function(b,c){this.options=c,this.$element=a(b),this.$backdrop=this.isShown=null,this.options.remote&&this.$element.load(this.options.remote)};b.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},b.prototype.toggle=function(a){return this[this.isShown?"hide":"show"](a)},b.prototype.show=function(b){var c=this,d=a.Event("show.bs.modal",{relatedTarget:b});this.$element.trigger(d);if(this.isShown||d.isDefaultPrevented())return;this.isShown=!0,this.escape(),this.$element.on("click.dismiss.modal",'[data-dismiss="modal"]',a.proxy(this.hide,this)),this.backdrop(function(){var d=a.support.transition&&c.$element.hasClass("fade");c.$element.parent().length||c.$element.appendTo(document.body),c.$element.show(),d&&c.$element[0].offsetWidth,c.$element.addClass("in").attr("aria-hidden",!1),c.enforceFocus();var e=a.Event("shown.bs.modal",{relatedTarget:b});d?c.$element.find(".modal-dialog").one(a.support.transition.end,function(){c.$element.focus().trigger(e)}).emulateTransitionEnd(300):c.$element.focus().trigger(e)})},b.prototype.hide=function(b){b&&b.preventDefault(),b=a.Event("hide.bs.modal"),this.$element.trigger(b);if(!this.isShown||b.isDefaultPrevented())return;this.isShown=!1,this.escape(),a(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.modal"),a.support.transition&&this.$element.hasClass("fade")?this.$element.one(a.support.transition.end,a.proxy(this.hideModal,this)).emulateTransitionEnd(300):this.hideModal()},b.prototype.enforceFocus=function(){a(document).off("focusin.bs.modal").on("focusin.bs.modal",a.proxy(function(a){this.$element[0]!==a.target&&!this.$element.has(a.target).length&&this.$element.focus()},this))},b.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keyup.dismiss.bs.modal",a.proxy(function(a){a.which==27&&this.hide()},this)):this.isShown||this.$element.off("keyup.dismiss.bs.modal")},b.prototype.hideModal=function(){var a=this;this.$element.hide(),this.backdrop(function(){a.removeBackdrop(),a.$element.trigger("hidden.bs.modal")})},b.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},b.prototype.backdrop=function(b){var c=this,d=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var e=a.support.transition&&d;this.$backdrop=a('<div class="modal-backdrop '+d+'" />').appendTo(document.body),this.$element.on("click.dismiss.modal",a.proxy(function(a){if
32(a.target!==a.currentTarget)return;this.options.backdrop=="static"?this.$element[0].focus.call(this.$element[0]):this.hide.call(this)},this)),e&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in");if(!b)return;e?this.$backdrop.one(a.support.transition.end,b).emulateTransitionEnd(150):b()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),a.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one(a.support.transition.end,b).emulateTransitionEnd(150):b()):b&&b()};var c=a.fn.modal;a.fn.modal=function(c,d){return this.each(function(){var e=a(this),f=e.data("bs.modal"),g=a.extend({},b.DEFAULTS,e.data(),typeof c=="object"&&c);f||e.data("bs.modal",f=new b(this,g)),typeof c=="string"?f[c](d):g.show&&f.show(d)})},a.fn.modal.Constructor=b,a.fn.modal.noConflict=function(){return a.fn.modal=c,this},a(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(b){var c=a(this),d=c.attr("href"),e=a(c.attr("data-target")||d&&d.replace(/.*(?=#[^\s]+$)/,"")),f=e.data("modal")?"toggle":a.extend({remote:!/#/.test(d)&&d},e.data(),c.data());b.preventDefault(),e.modal(f,this).one("hide",function(){c.is(":visible")&&c.focus()})}),a(document).on("show.bs.modal",".modal",function(){a(document.body).addClass("modal-open")}).on("hidden.bs.modal",".modal",function(){a(document.body).removeClass("modal-open")})}(window.jQuery),+function(a){"use strict";var b=function(a,b){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null,this.init("tooltip",a,b)};b.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1},b.prototype.init=function(b,c,d){this.enabled=!0,this.type=b,this.$element=a(c),this.options=this.getOptions(d);var e=this.options.trigger.split(" ");for(var f=e.length;f--;){var g=e[f];if(g=="click")this.$element.on("click."+this.type,this.options.selector,a.proxy(this.toggle,this));else if(g!="manual"){var h=g=="hover"?"mouseenter":"focus",i=g=="hover"?"mouseleave":"blur";this.$element.on(h+"."+this.type,this.options.selector,a.proxy(this.enter,this)),this.$element.on(i+"."+this.type,this.options.selector,a.proxy(this.leave,this))}}this.options.selector?this._options=a.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},b.prototype.getDefaults=function(){return b.DEFAULTS},b.prototype.getOptions=function(b){return b=a.extend({},this.getDefaults(),this.$element.data(),b),b.delay&&typeof b.delay=="number"&&(b.delay={show:b.delay,hide:b.delay}),b},b.prototype.getDelegateOptions=function(){var b={},c=this.getDefaults();return this._options&&a.each(this._options,function(a,d){c[a]!=d&&(b[a]=d)}),b},b.prototype.enter=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);clearTimeout(c.timeout),c.hoverState="in";if(!c.options.delay||!c.options.delay.show)return c.show();c.timeout=setTimeout(function(){c.hoverState=="in"&&c.show()},c.options.delay.show)},b.prototype.leave=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);clearTimeout(c.timeout),c.hoverState="out";if(!c.options.delay||!c.options.delay.hide)return c.hide();c.timeout=setTimeout(function(){c.hoverState=="out"&&c.hide()},c.options.delay.hide)},b.prototype.show=function(){var b=a.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(b);if(b.isDefaultPrevented())return;var c=this.tip();this.setContent(),this.options.animation&&c.addClass("fade");var d=typeof this.options.placement=="function"?this.options.placement.call(this,c[0],this.$element[0]):this.options.placement,e=/\s?auto?\s?/i,f=e.test(d);f&&(d=d.replace(e,"")||"top"),c.detach().css({top:0,left:0,display:"block"}).addClass(d),this.options.container?c.appendTo(this.options.container):c.insertAfter(this.$element);var g=this.getPosition(),h=c[0].offsetWidth,i=c[0].offsetHeight;if(f){var j=this.$element.parent(),k=d,l=document.documentElement.scrollTop||document.body.scrollTop,m=this.options.container=="body"?window.innerWidth:j.outerWidth(),n=this.options.container=="body"?window.innerHeight:j.outerHeight(),o=this.options.container=="body"?0:j.offset().left;d=d=="bottom"&&g.top+g.height+i-l>n?"top":d=="top"&&g.top-l-i<0?"bottom":d=="right"&&g.right+h>
32m?"left":d=="left"&&g.left-h<o?"right":d,c.removeClass(k).addClass(d)}var p=this.getCalculatedOffset(d,g,h,i);this.applyPlacement(p,d),this.$element.trigger("shown.bs."+this.type)}},b.prototype.applyPlacement=function(a,b){var c,d=this.tip(),e=d[0].offsetWidth,f=d[0].offsetHeight,g=parseInt(d.css("margin-top"),10),h=parseInt(d.css("margin-left"),10);isNaN(g)&&(g=0),isNaN(h)&&(h=0),a.top=a.top+g,a.left=a.left+h,d.offset(a).addClass("in");var i=d[0].offsetWidth,j=d[0].offsetHeight;b=="top"&&j!=f&&(c=!0,a.top=a.top+f-j);if(/bottom|top/.test(b)){var k=0;a.left<0&&(k=a.left*-2,a.left=0,d.offset(a),i=d[0].offsetWidth,j=d[0].offsetHeight),this.replaceArrow(k-e+i,i,"left")}else this.replaceArrow(j-f,j,"top");c&&d.offset(a)},b.prototype.replaceArrow=function(a,b,c){this.arrow().css(c,a?50*(1-a/b)+"%":"")},b.prototype.setContent=function(){var a=this.tip(),b=this.getTitle();a.find(".tooltip-inner")[this.options.html?"html":"text"](b),a.removeClass("fade in top bottom left right")},b.prototype.hide=function(){function e(){b.hoverState!="in"&&c.detach()}var b=this,c=this.tip(),d=a.Event("hide.bs."+this.type);this.$element.trigger(d);if(d.isDefaultPrevented())return;return c.removeClass("in"),a.support.transition&&this.$tip.hasClass("fade")?c.one(a.support.transition.end,e).emulateTransitionEnd(150):e(),this.$element.trigger("hidden.bs."+this.type),this},b.prototype.fixTitle=function(){var a=this.$element;(a.attr("title")||typeof a.attr("data-original-title")!="string")&&a.attr("data-original-title",a.attr("title")||"").attr("title","")},b.prototype.hasContent=function(){return this.getTitle()},b.prototype.getPosition=function(){var b=this.$element[0];return a.extend({},typeof b.getBoundingClientRect=="function"?b.getBoundingClientRect():{width:b.offsetWidth,height:b.offsetHeight},this.$element.offset())},b.prototype.getCalculatedOffset=function(a,b,c,d){return a=="bottom"?{top:b.top+b.height,left:b.left+b.width/2-c/2}:a=="top"?{top:b.top-d,left:b.left+b.width/2-c/2}:a=="left"?{top:b.top+b.height/2-d/2,left:b.left-c}:{top:b.top+b.height/2-d/2,left:b.left+b.width}},b.prototype.getTitle=function(){var a,b=this.$element,c=this.options;return a=b.attr("data-original-title")||(typeof c.title=="function"?c.title.call(b[0]):c.title),a},b.prototype.tip=function(){return this.$tip=this.$tip||a(this.options.template)},b.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},b.prototype.validate=function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},b.prototype.enable=function(){this.enabled=!0},b.prototype.disable=function(){this.enabled=!1},b.prototype.toggleEnabled=function(){this.enabled=!this.enabled},b.prototype.toggle=function(b){var c=b?a(b.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type):this;c.tip().hasClass("in")?c.leave(c):c.enter(c)},b.prototype.destroy=function(){this.hide().$element.off("."+this.type).removeData("bs."+this.type)};var c=a.fn.tooltip;a.fn.tooltip=function(c){return this.each(function(){var d=a(this),e=d.data("bs.tooltip"),f=typeof c=="object"&&c;e||d.data("bs.tooltip",e=new b(this,f)),typeof c=="string"&&e[c]()})},a.fn.tooltip.Constructor=b,a.fn.tooltip.noConflict=function(){return a.fn.tooltip=c,this}}(window.jQuery),+function(a){"use strict";var b=function(a,b){this.init("popover",a,b)};if(!a.fn.tooltip)throw new Error("Popover requires tooltip.js");b.DEFAULTS=a.extend({},a.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),b.prototype=a.extend({},a.fn.tooltip.Constructor.prototype),b.prototype.constructor=b,b.prototype.getDefaults=function(){return b.DEFAULTS},b.prototype.setContent=function(){var a=this.tip(),b=this.getTitle(),c=this.getContent();a.find(".popover-title")[this.options.html?"html":"text"](b),a.find(".popover-content")[this.options.html?"html":"text"](c),a.removeClass("fade top bottom left right in"),a.find(".popover-title").html()||a.find(".popover-title").hide()},b.prototype.hasContent=function(){return this.getTitle()||this.getContent()},b.prototype.getContent=function(){var a=this.$element,b=this.options;return a.attr("data-content")||(typeof b.content=="function"?b.content.call(a[0]):b.content)},b.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")},b.prototype.tip=function(){return this.$tip||(this.$tip=a(this.options.template)),this.$tip};var c=a.fn.popover;a.fn.popover=function(c){return this.each(function(){var d=a(this),e=d.data("bs.popover"),f=typeof c=="object"&&c;e||d.data("bs.popover",e=new b(this,f)),typeof c=="string"&&e[c]()})},a.fn.popover.Constructor=b,a.fn.popover.noConflict=function(){return a.fn.popover=c,this}}(window.jQuery),+function(a){"use strict";var b=function(b){this.element=a(b)};b.prototype.show=function(){var b=this.element,c=b.closest("ul:not(.dropdown-menu)"),d=b.data("target");d||(d=b.attr("href"),d=d&&d.replace(/.*(?=#[^\s]*$)/,""));if(b.parent("li").hasClass("active"))return;var e=c.find(".active:last a")[0],f=a.Event("show.bs.tab",{relatedTarget:e});b.trigger(f);if(f.isDefaultPrevented())return;var g=a(d);this.activate(b.parent("li"),c),this.activate(g,g.parent(),function(){b.trigger({type:"shown.bs.tab",relatedTarget:e})})},b.prototype.activate=function(b,c,d){function g(){e.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),b.addClass("active"),f?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu")&&b.closest("li.dropdown").addClass("active"),d&&d()}var e=c.find("> .active"),f=d&&a.support.transition&&e.hasClass("fade");f?e.one(a.support.transition.end,g).emulateTransitionEnd(150):g(),e.removeClass("in")};var c=a.fn.tab;a.fn.tab=function(c){return this.each(function(){var d=a(this),e=d.data("bs.tab");e||d.data("bs.tab",e=new b(this)),typeof c=="string"&&e[c]()})},a.fn.tab.Constructor=b,a.fn.tab.noConflict=function(){return a.fn.tab=c,this},a(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(b){b.preventDefault(),a(this).tab("show")})}(window.jQuery),+function(a){"use strict";var b=function(c,d){this.options=a.extend({},b.DEFAULTS,d),this.$window=a(window).on("scroll.bs.affix.data-api",a.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLoop,this)),this.$element=a(c),this.affixed=this.unpin=null,this.checkPosition()};b.RESET="affix affix-top affix-bottom",b.DEFAULTS={offset:0},b.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),1)},b.prototype.checkPosition=function(){if(!this.$element.is(":visible"))return;var c=a(document).height(),d=this.$window.scrollTop(),e=this.$element.offset(),f=this.options.offset,g=f.top,h=f.bottom;typeof f!="object"&&(h=g=f),typeof g=="function"&&(g=f.top()),typeof h=="function"&&(h=f.bottom());var i=this.unpin!=null&&d+this.unpin<=e.top?!1:h!=null&&e.top+this.$element.height()>=c-h?"bottom":g!=null&&d<=g?"top":!1;if(this.affixed===i)return;this.unpin&&this.$element.css("top",""),this.affixed=i,this.unpin=i=="bottom"?e.top-d:null,this.$element.removeClass(b.RESET).addClass("affix"+(i?"-"+i:"")),i=="bottom"&&this.$element.offset({top:document.body.offsetHeight-h-this.$element.height()})};var c=a.fn.affix;a.fn.affix=function(c){return this.each(function(){var d=a(this),e=d.data("bs.affix"),f=typeof c=="object"&&c;
vendor: 5,836 bytes, lines 32-35
32e||d.data("bs.affix",e=new b(this,f)),typeof c=="string"&&e[c]()})},a.fn.affix.Constructor=b,a.fn.affix.noConflict=function(){return a.fn.affix=c,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var b=a(this),c=b.data();c.offset=c.offset||{},c.offsetBottom&&(c.offset.bottom=c.offsetBottom),c.offsetTop&&(c.offset.top=c.offsetTop),b.affix(c)})})}(window.jQuery),+function(a){"use strict";var b=function(c,d){this.$element=a(c),this.options=a.extend({},b.DEFAULTS,d),this.transitioning=null,this.options.parent&&(this.$parent=a(this.options.parent)),this.options.toggle&&this.toggle()};b.DEFAULTS={toggle:!0},b.prototype.dimension=function(){var a=this.$element.hasClass("width");return a?"width":"height"},b.prototype.show=function(){if(this.transitioning||this.$element.hasClass("in"))return;var b=a.Event("show.bs.collapse");this.$element.trigger(b);if(b.isDefaultPrevented())return;var c=this.$parent&&this.$parent.find("> .panel > .in");if(c&&c.length){var d=c.data("bs.collapse");if(d&&d.transitioning)return;c.collapse("hide"),d||c.data("bs.collapse",null)}var e=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[e](0),this.transitioning=1;var f=function(){this.$element.removeClass("collapsing").addClass("in")[e]("auto"),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return f.call(this);var g=a.camelCase(["scroll",e].join("-"));this.$element.one(a.support.transition.end,a.proxy(f,this)).emulateTransitionEnd(350)[e](this.$element[0][g])},b.prototype.hide=function(){if(this.transitioning||!this.$element.hasClass("in"))return;var b=a.Event("hide.bs.collapse");this.$element.trigger(b);if(b.isDefaultPrevented())return;var c=this.dimension();this.$element[c](this.$element[c]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1;var d=function(){this.transitioning=0,this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")};if(!a.support.transition)return d.call(this);this.$element[c](0).one(a.support.transition.end,a.proxy(d,this)).emulateTransitionEnd(350)},b.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};var c=a.fn.collapse;a.fn.collapse=function(c){return this.each(function(){var d=a(this),e=d.data("bs.collapse"),f=a.extend({},b.DEFAULTS,d.data(),typeof c=="object"&&c);e||d.data("bs.collapse",e=new b(this,f)),typeof c=="string"&&e[c]()})},a.fn.collapse.Constructor=b,a.fn.collapse.noConflict=function(){return a.fn.collapse=c,this},a(document).on("click.bs.collapse.data-api","[data-toggle=collapse]",function(b){var c=a(this),d,e=c.attr("data-target")||b.preventDefault()||(d=c.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,""),f=a(e),g=f.data("bs.collapse"),h=g?"toggle":c.data(),i=c.attr("data-parent"),j=i&&a(i);if(!g||!g.transitioning)j&&j.find('[data-toggle=collapse][data-parent="'+i+'"]').not(c).addClass("collapsed"),c[f.hasClass("in")?"addClass":"removeClass"]("collapsed");f.collapse(h)})}(window.jQuery),+function(a){function b(c,d){var e,f=a.proxy(this.process,this);this.$element=a(c).is("body")?a(window):a(c),this.$body=a("body"),this.$scrollElement=this.$element.on("scroll.bs.scroll-spy.data-api",f),this.options=a.extend({},b.DEFAULTS,d),this.selector=(this.options.target||(e=a(c).attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,"")||"")+" .nav li > a",this.offsets=a([]),this.targets=a([]),this.activeTarget=null,this.refresh(),this.process()}"use strict",b.DEFAULTS={offset:10},b.prototype.refresh=function(){var b=this.$element[0]==window?"offset":"position";this.offsets=a([]),this.targets=a([]);var c=this,d=this.$body.find(this.selector).map(function(){var d=a(this),e=d.data("target")||d.attr("href"),f=/^#\w/.test(e)&&a(e);return f&&f.length&&[[f[b]().top+(!a.isWindow(c.$scrollElement.get(0))&&c.$scrollElement.scrollTop()),e]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){c.offsets.push(this[0]),c.targets.push(this[1])})},b.prototype.process=function(){var a=this.$scrollElement.scrollTop()+this.options.offset,b=this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight,c=b-this.$scrollElement.height(),d=this.offsets,e=this.targets,f=this.activeTarget,g;if(a>=c)return f!=(g=e.last()[0])&&this.activate(g);for(g=d.length;g--;)f!=e[g]&&a>=d[g]&&(!d[g+1]||a<=d[g+1])&&this.activate(e[g])},b.prototype.activate=function(b){this.activeTarget=b,a(this.selector).parents(".active").removeClass("active");var c=this.selector+'[data-target="'+b+'"],'+this.selector+'[href="'+b+'"]',d=a(c).parents("li").addClass("active");d.parent(".dropdown-menu").length&&(d=d.closest("li.dropdown").addClass("active")),d.trigger("activate")};var c=a.fn.scrollspy;a.fn.scrollspy=function(c){return this.each(function(){var d=a(this),e=d.data("bs.scrollspy"),f=typeof c=="object"&&c;e||d.data("bs.scrollspy",e=new b(this,f)),typeof c=="string"&&e[c]()})},a.fn.scrollspy.Constructor=b,a.fn.scrollspy.noConflict=function(){return a.fn.scrollspy=c,this},a(window).on("load",function(){a('[data-spy="scroll"]').each(function(){var b=a(this);b.scrollspy(b.data())})})}(window.jQuery),+function(a){function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(a.style[c]!==undefined)return{end:b[c]}}"use strict",a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one(a.support.transition.end,function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b()})}(window.jQuery)
33/* End */
34;
35; /* Start:"a:4:{s:4:"full";s:82:"/bitrix/templates/aspro-allcorp3heat/vendor/jquery.validate.min.js?168603498122254";s:6:"source";
35s:66:"/bitrix/templates/aspro-allcorp3heat/vendor/jquery.validate.min.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
36/*! jQuery Validation Plugin - v1.13.1 - 10/14/2014
37 * http://jqueryvalidation.org/
38 * Copyright (c) 2014 Jörn Zaefferer; Licensed MIT */
39!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)}(function(a){a.extend(a.fn,{validate:function(b){if(!this.length)return void(b&&b.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing."));var c=a.data(this[0],"validator");return c?c:(this.attr("novalidate","novalidate"),c=new a.validator(b,this[0]),a.data(this[0],"validator",c),c.settings.onsubmit&&(this.validateDelegate(":submit","click",function(b){c.settings.submitHandler&&(c.submitButton=b.target),a(b.target).hasClass("cancel")&&(c.cancelSubmit=!0),void 0!==a(b.target).attr("formnovalidate")&&(c.cancelSubmit=!0)}),this.submit(function(b){function d(){var d,e;return c.settings.submitHandler?(c.submitButton&&(d=a("<input type='hidden'/>").attr("name",c.submitButton.name).val(a(c.submitButton).val()).appendTo(c.currentForm)),e=c.settings.submitHandler.call(c,c.currentForm,b),c.submitButton&&d.remove(),void 0!==e?e:!1):!0}return c.settings.debug&&b.preventDefault(),c.cancelSubmit?(c.cancelSubmit=!1,d()):c.form()?c.pendingRequest?(c.formSubmitted=!0,!1):d():(c.focusInvalid(),!1)})),c)},valid:function(){var b,c;return a(this[0]).is("form")?b=this.validate().form():(b=!0,c=a(this[0].form).validate(),this.each(function(){b=c.element(this)&&b})),b},removeAttrs:function(b){var c={},d=this;return a.each(b.split(/\s/),function(a,b){c[b]=d.attr(b),d.removeAttr(b)}),c},rules:function(b,c){var d,e,f,g,h,i,j=this[0];if(b)switch(d=a.data(j.form,"validator").settings,e=d.rules,f=a.validator.staticRules(j),b){case"add":a.extend(f,a.validator.normalizeRule(c)),delete f.messages,e[j.name]=f,c.messages&&(d.messages[j.name]=a.extend(d.messages[j.name],c.messages));break;case"remove":return c?(i={},a.each(c.split(/\s/),function(b,c){i[c]=f[c],delete f[c],"required"===c&&a(j).removeAttr("aria-required")}),i):(delete e[j.name],f)}return g=a.validator.normalizeRules(a.extend({},a.validator.classRules(j),a.validator.attributeRules(j),a.validator.dataRules(j),a.validator.staticRules(j)),j),g.required&&(h=g.required,delete g.required,g=a.extend({required:h},g),a(j).attr("aria-required","true")),g.remote&&(h=g.remote,delete g.remote,g=a.extend(g,{remote:h})),g}}),a.extend(a.expr[":"],{blank:function(b){return!a.trim(""+a(b).val())},filled:function(b){return!!a.trim(""+a(b).val())},unchecked:function(b){return!a(b).prop("checked")}}),a.validator=function(b,c){this.settings=a.extend(!0,{},a.validator.defaults,b),this.currentForm=c,this.init()},a.validator.format=function(b,c){return 1===arguments.length?function(){var c=a.makeArray(arguments);return c.unshift(b),a.validator.format.apply(this,c)}:(arguments.length>2&&c.constructor!==Array&&(c=a.makeArray(arguments).slice(1)),c.constructor!==Array&&(c=[c]),a.each(c,function(a,c){b=b.replace(new RegExp("\\{"+a+"\\}","g"),function(){return c})}),b)},a.extend(a.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",validClass:"valid",errorElement:"label",focusCleanup:!1,focusInvalid:!0,errorContainer:a([]),errorLabelContainer:a([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(a){this.lastActive=a,this.settings.focusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,a,this.settings.errorClass,this.settings.validClass),this.hideThese(this.errorsFor(a)))},onfocusout:function(a){this.checkable(a)||!(a.name in this.submitted)&&this.optional(a)||this.element(a)},onkeyup:function(a,b){(9!==b.which||""!==this.elementValue(a))&&(a.name in this.submitted||a===this.lastElement)&&this.element(a)},onclick:function(a){a.name in this.submitted?this.element(a):a.parentNode.name in this.submitted&&this.element(a.parentNode)},highlight:function(b,c,d){"radio"===b.type?this.findByName(b.name).addClass(c).removeClass(d):a(b).addClass(c).removeClass(d)},unhighlight:function(b,c,d){"radio"===b.type?this.findByName(b.name).removeClass(c).addClass(d):a(b).removeClass(c).addClass(d)}}
39,setDefaults:function(b){a.extend(a.validator.defaults,b)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date ( ISO ).",number:"Please enter a valid number.",digits:"Please enter only digits.",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",maxlength:a.validator.format("Please enter no more than {0} characters."),minlength:a.validator.format("Please enter at least {0} characters."),rangelength:a.validator.format("Please enter a value between {0} and {1} characters long."),range:a.validator.format("Please enter a value between {0} and {1}."),max:a.validator.format("Please enter a value less than or equal to {0}."),min:a.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:!1,prototype:{init:function(){function b(b){var c=a.data(this[0].form,"validator"),d="on"+b.type.replace(/^validate/,""),e=c.settings;e[d]&&!this.is(e.ignore)&&e[d].call(c,this[0],b)}this.labelContainer=a(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||a(this.currentForm),this.containers=a(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var c,d=this.groups={};a.each(this.settings.groups,function(b,c){"string"==typeof c&&(c=c.split(/\s/)),a.each(c,function(a,c){d[c]=b})}),c=this.settings.rules,a.each(c,function(b,d){c[b]=a.validator.normalizeRule(d)}),a(this.currentForm).validateDelegate(":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'] ,[type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'], [type='radio'], [type='checkbox']","focusin focusout keyup",b).validateDelegate("select, option, [type='radio'], [type='checkbox']","click",b),this.settings.invalidHandler&&a(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler),a(this.currentForm).find("[required], [data-rule-required], .required").attr("aria-required","true")},form:function(){return this.checkForm(),a.extend(this.submitted,this.errorMap),this.invalid=a.extend({},this.errorMap),this.valid()||a(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var a=0,b=this.currentElements=this.elements();b[a];a++)this.check(b[a]);return this.valid()},element:function(b){var c=this.clean(b),d=this.validationTargetFor(c),e=!0;return this.lastElement=d,void 0===d?delete this.invalid[c.name]:(this.prepareElement(d),this.currentElements=a(d),e=this.check(d)!==!1,e?delete this.invalid[d.name]:this.invalid[d.name]=!0),a(b).attr("aria-invalid",!e),this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),e},showErrors:function(b){if(b){a.extend(this.errorMap,b),this.errorList=[];for(var c in b)this.errorList.push({message:b[c],element:this.findByName(c)[0]});this.successList=a.grep(this.successList,function(a){return!(a.name in b)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){a.fn.resetForm&&a(this.currentForm).resetForm(),this.submitted={},this.lastElement=null,this.prepareForm(),this.hideErrors(),this.elements().removeClass(this.settings.errorClass).removeData("previousValue").removeAttr("aria-invalid")},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(a){var b,c=0;for(b in a)c++;return c},hideErrors:function(){this.hideThese(this.toHide)},hideThese:function(a){a.not(this.containers).text(""),this.addWrapper(a).hide()},valid:function(){return 0===this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{a(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(b){}},findLastActive:function(){var b=this.lastActive;return b&&1===a.grep(this.errorList,function(a){return a.element.name===b.name}).length&&b},elements:function(){var b=this,c={};return a(this.currentForm).find("input, select, textarea").not(":submit, :reset, :image, [disabled], [readonly]").not(this.settings.ignore).filter(function(){return!this.name&&b.settings.debug&&window.console&&console.error("%o has no name assigned",this),this.name in c||
39!b.objectLength(a(this).rules())?!1:(c[this.name]=!0,!0)})},clean:function(b){return a(b)[0]},errors:function(){var b=this.settings.errorClass.split(" ").join(".");return a(this.settings.errorElement+"."+b,this.errorContext)},reset:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=a([]),this.toHide=a([]),this.currentElements=a([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(a){this.reset(),this.toHide=this.errorsFor(a)},elementValue:function(b){var c,d=a(b),e=b.type;return"radio"===e||"checkbox"===e?a("input[name='"+b.name+"']:checked").val():"number"===e&&"undefined"!=typeof b.validity?b.validity.badInput?!1:d.val():(c=d.val(),"string"==typeof c?c.replace(/\r/g,""):c)},check:function(b){b=this.validationTargetFor(this.clean(b));var c,d,e,f=a(b).rules(),g=a.map(f,function(a,b){return b}).length,h=!1,i=this.elementValue(b);for(d in f){e={method:d,parameters:f[d]};try{if(c=a.validator.methods[d].call(this,i,b,e.parameters),"dependency-mismatch"===c&&1===g){h=!0;continue}if(h=!1,"pending"===c)return void(this.toHide=this.toHide.not(this.errorsFor(b)));if(!c)return this.formatAndAdd(b,e),!1}catch(j){throw this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+b.id+", check the '"+e.method+"' method.",j),j}}if(!h)return this.objectLength(f)&&this.successList.push(b),!0},customDataMessage:function(b,c){return a(b).data("msg"+c.charAt(0).toUpperCase()+c.substring(1).toLowerCase())||a(b).data("msg")},customMessage:function(a,b){var c=this.settings.messages[a];return c&&(c.constructor===String?c:c[b])},findDefined:function(){for(var a=0;a<arguments.length;a++)if(void 0!==arguments[a])return arguments[a];return void 0},defaultMessage:function(b,c){return this.findDefined(this.customMessage(b.name,c),this.customDataMessage(b,c),!this.settings.ignoreTitle&&b.title||void 0,a.validator.messages[c],"<strong>Warning: No message defined for "+b.name+"</strong>")},formatAndAdd:function(b,c){var d=this.defaultMessage(b,c.method),e=/\$?\{(\d+)\}/g;"function"==typeof d?d=d.call(this,c.parameters,b):e.test(d)&&(d=a.validator.format(d.replace(e,"{$1}"),c.parameters)),this.errorList.push({message:d,element:b,method:c.method}),this.errorMap[b.name]=d,this.submitted[b.name]=d},addWrapper:function(a){return this.settings.wrapper&&(a=a.add(a.parent(this.settings.wrapper))),a},defaultShowErrors:function(){var a,b,c;for(a=0;this.errorList[a];a++)c=this.errorList[a],this.settings.highlight&&this.settings.highlight.call(this,c.element,this.settings.errorClass,this.settings.validClass),this.showLabel(c.element,c.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(a=0;this.successList[a];a++)this.showLabel(this.successList[a]);if(this.settings.unhighlight)for(a=0,b=this.validElements();b[a];a++)this.settings.unhighlight.call(this,b[a],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow),this.hideErrors(),this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return a(this.errorList).map(function(){return this.element})},showLabel:function(b,c){var d,e,f,g=this.errorsFor(b),h=this.idOrName(b),i=a(b).attr("aria-describedby");g.length?(g.removeClass(this.settings.validClass).addClass(this.settings.errorClass),g.html(c)):(g=a("<"+this.settings.errorElement+">").attr("id",h+"-error").addClass(this.settings.errorClass).html(c||""),d=g,this.settings.wrapper&&(d=g.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.length?this.labelContainer.append(d):this.settings.errorPlacement?this.settings.errorPlacement(d,a(b)):d.insertAfter(b),g.is("label")?g.attr("for",h):0===g.parents("label[for='"+h+"']").length&&(f=g.attr("id").replace(/(:|\.|\[|\])/g,"\\$1"),i?i.match(new RegExp("\\b"+f+"\\b"))||(i+=" "+f):i=f,a(b).attr("aria-describedby",i),e=this.groups[b.n
39ame],e&&a.each(this.groups,function(b,c){c===e&&a("[name='"+b+"']",this.currentForm).attr("aria-describedby",g.attr("id"))}))),!c&&this.settings.success&&(g.text(""),"string"==typeof this.settings.success?g.addClass(this.settings.success):this.settings.success(g,b)),this.toShow=this.toShow.add(g)},errorsFor:function(b){var c=this.idOrName(b),d=a(b).attr("aria-describedby"),e="label[for='"+c+"'], label[for='"+c+"'] *";return d&&(e=e+", #"+d.replace(/\s+/g,", #")),this.errors().filter(e)},idOrName:function(a){return this.groups[a.name]||(this.checkable(a)?a.name:a.id||a.name)},validationTargetFor:function(b){return this.checkable(b)&&(b=this.findByName(b.name)),a(b).not(this.settings.ignore)[0]},checkable:function(a){return/radio|checkbox/i.test(a.type)},findByName:function(b){return a(this.currentForm).find("[name='"+b+"']")},getLength:function(b,c){switch(c.nodeName.toLowerCase()){case"select":return a("option:selected",c).length;case"input":if(this.checkable(c))return this.findByName(c.name).filter(":checked").length}return b.length},depend:function(a,b){return this.dependTypes[typeof a]?this.dependTypes[typeof a](a,b):!0},dependTypes:{"boolean":function(a){return a},string:function(b,c){return!!a(b,c.form).length},"function":function(a,b){return a(b)}},optional:function(b){var c=this.elementValue(b);
39return!a.validator.methods.required.call(this,c,b)&&"dependency-mismatch"},startRequest:function(a){this.pending[a.name]||(this.pendingRequest++,this.pending[a.name]=!0)},stopRequest:function(b,c){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[b.name],c&&0===this.pendingRequest&&this.formSubmitted&&this.form()?(a(this.currentForm).submit(),this.formSubmitted=!1):!c&&0===this.pendingRequest&&this.formSubmitted&&(a(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(b){return a.data(b,"previousValue")||a.data(b,"previousValue",{old:null,valid:!0,message:this.defaultMessage(b,"remote")})}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(b,c){b.constructor===String?this.classRuleSettings[b]=c:a.extend(this.classRuleSettings,b)},classRules:function(b){var c={},d=a(b).attr("class");return d&&a.each(d.split(" "),function(){this in a.validator.classRuleSettings&&a.extend(c,a.validator.classRuleSettings[this])}),c},attributeRules:function(b){var c,d,e={},f=a(b),g=b.getAttribute("type");for(c in a.validator.methods)"required"===c?(d=b.getAttribute(c),""===d&&(d=!0),d=!!d):d=f.attr(c),/min|max/.test(c)&&(null===g||/number|range|text/.test(g))&&(d=Number(d)),d||0===d?e[c]=d:g===c&&"range"!==g&&(e[c]=!0);return e.maxlength&&/-1|2147483647|524288/.test(e.maxlength)&&delete e.maxlength,e},dataRules:function(b){var c,d,e={},f=a(b);for(c in a.validator.methods)d=f.data("rule"+c.charAt(0).toUpperCase()+c.substring(1).toLowerCase()),void 0!==d&&(e[c]=d);return e},staticRules:function(b){var c={},d=a.data(b.form,"validator");return d.settings.rules&&(c=a.validator.normalizeRule(d.settings.rules[b.name])||{}),c},normalizeRules:function(b,c){return a.each(b,function(d,e){if(e===!1)return void delete b[d];if(e.param||e.depends){var f=!0;switch(typeof e.depends){case"string":f=!!a(e.depends,c.form).length;break;case"function":f=e.depends.call(c,c)}f?b[d]=void 0!==e.param?e.param:!0:delete b[d]}}),a.each(b,function(d,e){b[d]=a.isFunction(e)?e(c):e}),a.each(["minlength","maxlength"],function(){b[this]&&(b[this]=Number(b[this]))}),a.each(["rangelength","range"],function(){var c;b[this]&&(a.isArray(b[this])?b[this]=[Number(b[this][0]),Number(b[this][1])]:"string"==typeof b[this]&&(c=b[this].replace(/[\[\]]/g,"").split(/[\s,]+/),b[this]=[Number(c[0]),Number(c[1])]))}),a.validator.autoCreateRanges&&(null!=b.min&&null!=b.max&&(b.range=[b.min,b.max],delete b.min,delete b.max),null!=b.minlength&&null!=b.maxlength&&(b.rangelength=[b.minlength,b.maxlength],delete b.minlength,delete b.maxlength)),b},normalizeRule:function(b){if("string"==typeof b){var c={};a.each(b.split(/\s/),function(){c[this]=!0}),b=c}return b},addMethod:function(b,c,d){a.validator.methods[b]=c,a.validator.messages[b]=void 0!==d?d:a.validator.messages[b],c.length<3&&a.validator.addClassRules(b,a.validator.normalizeRule(b))},methods:{required:function(b,c,d){if(!this.depend(d,c))return"dependency-mismatch";if("select"===c.nodeName.toLowerCase()){var e=a(c).val();return e&&e.length>0}return this.checkable(c)?this.getLength(b,c)>0:a.trim(b).length>0},email:function(a,b){return this.optional(b)||/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(a)},url:function(a,b){return this.optional(b)||/^(https?|s?ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(a)},date:function(a,b){/*return this.optional(b)||!/Invalid|NaN/.test(new Date(a).toString())*/ /*customized!!!*/ var check = false,re=new RegExp((typeof(VALIDATE_DATE_MASK)!=='undefined'?VALIDATE_DATE_MASK:'^[0-9]{1,2}\.[0-9]{1,2}\.[0-9]{4}$')),adata,gg,mm,aaaa,xdata;if(re.test(a)){adata=a.split('.');if(adata.length===1){adata=a.split('-');if(adata.length===1){adata=a.split(' ');
39if(adata.length===1){adata=a.split('/');if(adata.length===1){adata=a.split(':');}}}}gg=parseInt(adata[0],10);mm=parseInt(adata[1],10);aaaa=parseInt(adata[2],10);xdata=new Date(aaaa,mm-1,gg,12,0,0,0);if((xdata.getUTCFullYear()===aaaa)&&(xdata.getUTCMonth()===mm-1)&&(xdata.getUTCDate()===gg)){check = true;}else{check = false;}}else{check = false;}return this.optional(b)||check;},dateISO:function(a,b){return this.optional(b)||/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(a)},number:function(a,b){return this.optional(b)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(a)},digits:function(a,b){return this.optional(b)||/^\d+$/.test(a)},creditcard:function(a,b){if(this.optional(b))return"dependency-mismatch";if(/[^0-9 \-]+/.test(a))return!1;var c,d,e=0,f=0,g=!1;if(a=a.replace(/\D/g,""),a.length<13||a.length>19)return!1;for(c=a.length-1;c>=0;c--)d=a.charAt(c),f=parseInt(d,10),g&&(f*=2)>9&&(f-=9),e+=f,g=!g;return e%10===0},minlength:function(b,c,d){var e=a.isArray(b)?b.length:this.getLength(b,c);return this.optional(c)||e>=d},maxlength:function(b,c,d){var e=a.isArray(b)?b.length:this.getLength(b,c);return this.optional(c)||d>=e},rangelength:function(b,c,d){var e=a.isArray(b)?b.length:this.getLength(b,c);return this.optional(c)||e>=d[0]&&e<=d[1]},min:function(a,b,c){return this.optional(b)||a>=c},max:function(a,b,c){return this.optional(b)||c>=a},range:function(a,b,c){return this.optional(b)||a>=c[0]&&a<=c[1]},equalTo:function(b,c,d){var e=a(d);return this.settings.onfocusout&&e.unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){a(c).valid()}),b===e.val()},remote:function(b,c,d){if(this.optional(c))return"dependency-mismatch";var e,f,g=this.previousValue(c);return this.settings.messages[c.name]||(this.settings.messages[c.name]={}),g.originalMessage=this.settings.messages[c.name].remote,this.settings.messages[c.name].remote=g.message,d="string"==typeof d&&{url:d}||d,g.old===b?g.valid:(g.old=b,e=this,this.startRequest(c),f={},f[c.name]=b,a.ajax(a.extend(!0,{url:d,mode:"abort",port:"validate"+c.name,dataType:"json",data:f,context:e.currentForm,success:function(d){var f,h,i,j=d===!0||"true"===d;e.settings.messages[c.name].remote=g.originalMessage,j?(i=e.formSubmitted,e.prepareElement(c),e.formSubmitted=i,e.successList.push(c),delete e.invalid[c.name],e.showErrors()):(f={},h=d||e.defaultMessage(c,"remote"),f[c.name]=g.message=a.isFunction(h)?h(b):h,e.invalid[c.name]=!0,e.showErrors(f)),g.valid=j,e.stopRequest(c,j)}},d)),"pending")}}}),a.format=function(){throw"$.format has been deprecated. Please use $.validator.format instead."};var b,c={};a.ajaxPrefilter?a.ajaxPrefilter(function(a,b,d){var e=a.port;"abort"===a.mode&&(c[e]&&c[e].abort(),c[e]=d)}):(b=a.ajax,a.ajax=function(d){var e=("mode"in d?d:a.ajaxSettings).mode,f=("port"in d?d:a.ajaxSettings).port;return"abort"===e?(c[f]&&c[f].abort(),c[f]=b.apply(this,arguments),c[f]):b.apply(this,arguments)}),a.extend(a.fn,{validateDelegate:function(b,c,d){return this.bind(c,function(c){var e=a(c.target);return e.is(b)?d.apply(e,arguments):void 0})}})});
40/* End */
41;
42; /* Start:"a:4:{s:4:"full";s:75:"/bitrix/templates/aspro-allcorp3heat/vendor/js/ripple.min.js?16860349811624";s:6:"source";s:56:"/bitrix/templates/aspro-allcorp3heat/vendor/js/ripple.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
43!function(m,i,h){m.ripple=function(t,e){var c=this,f=c.log=function(){c.defaults.debug&&console&&console.log&&console.log.apply(console,arguments)};c.selector=t,c.defaults={debug:!1,on:"mousedown",opacity:.4,color:"auto",multi:!1,duration:.7,rate:function(t){return t},easing:"linear"},c.defaults=m.extend({},c.defaults,e);m(i).on(c.defaults.on,c.selector,function(t){var e,i,o=m(this);if(o.addClass("has-ripple"),(i=m.extend({},c.defaults,o.data())).multi||!i.multi&&0===o.find(".ripple").length){if((e=m("<span></span>").addClass("ripple")).appendTo(o),f("Create: Ripple"),!e.height()&&!e.width()){var n=h.max(o.outerWidth(),o.outerHeight());e.css({height:n,width:n}),f("Set: Ripple size")}if(i.rate&&"function"==typeof i.rate){var a=h.round(e.width()/i.duration),l=i.rate(a),p=e.width()/l;i.duration.toFixed(2)!==p.toFixed(2)&&(f("Update: Ripple Duration",{from:i.duration,to:p}),i.duration=p)}var d="auto"==i.color?o.css("color"):i.color,r={animationDuration:i.duration.toString()+"s",animationTimingFunction:i.easing,background:d,opacity:i.opacity};f("Set: Ripple CSS",r),e.css(r)}i.multi||(f("Set: Ripple Element"),e=o.find(".ripple")),f("Destroy: Ripple Animation"),e.removeClass("ripple-animate");var s=t.pageX-o.offset().left-e.width()/2,u=t.pageY-o.offset().top-e.height()/2;i.multi&&(f("Set: Ripple animationend event"),e.one("animationend webkitAnimationEnd oanimationend MSAnimationEnd",function(){f("Note: Ripple animation ended"),f("Destroy: Ripple"),m(this).remove()})),f("Set: Ripple location"),f("Set: Ripple animation"),e.css({top:u+"px",left:s+"px"}).addClass("ripple-animate")})}}(jQuery,document,Math);
44/* End */
45;
46; /* Start:"a:4:{s:4:"full";s:77:"/bitrix/templates/aspro-allcorp3heat/js/detectmobilebrowser.js?16860349812203";s:6:"source";s:62:"/bitrix/templates/aspro-allcorp3heat/js/detectmobilebrowser.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
47/**
48 * jQuery.browser.mobile (http://detectmobilebrowser.com/)
49 *
50 * jQuery.browser.mobile will be true if the browser is a mobile device
51 *
52 **/
53(function(a){(jQuery.browser=jQuery.browser||{}).mobile=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|
53sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0,4))})(navigator.userAgent||navigator.vendor||window.opera);
54/* End */
55;
56; /* Start:"a:4:{s:4:"full";s:71:"/bitrix/templates/aspro-allcorp3heat/js/matchMedia.min.js?1686034981931";s:6:"source";s:53:"/bitrix/templates/aspro-allcorp3heat/js/matchMedia.js";s:3:"min";s:57:"/bitrix/templates/aspro-allcorp3heat/js/matchMedia.min.js";s:3:"map";s:61:"/bitrix/templates/aspro-allcorp3heat/js/matchMedia.min.js.map";}"*/
57/*! matchMedia() polyfill - Test a CSS media type/query in JS. Authors & copyright (c) 2012: Scott Jehl, Paul Irish, Nicholas Zakas, David Knight. Dual MIT/BSD license */
58window.matchMedia||(window.matchMedia=function(){"use strict";var styleMedia=window.styleMedia||window.media;if(!styleMedia){var style=document.createElement("style"),script=document.getElementsByTagName("script")[0],info=null;style.type="text/css",style.id="matchmediajs-test",script.parentNode.insertBefore(style,script),info="getComputedStyle"in window&&window.getComputedStyle(style,null)||style.currentStyle,styleMedia={matchMedium:function(media){var text="@media "+media+"{ #matchmediajs-test { width: 1px; } }";return style.styleSheet?style.styleSheet.cssText=text:style.textContent=text,"1px"===info.width}}}return function(media){return{matches:styleMedia.matchMedium(media||"all"),media:media||"all"}}}());
59/* End */
60;
61; /* Start:"a:4:{s:4:"full";s:75:"/bitrix/templates/aspro-allcorp3heat/js/jquery.actual.min.js?16860349811239";s:6:"source";s:60:"/bitrix/templates/aspro-allcorp3heat/js/jquery.actual.min.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
62/*! Copyright 2012, Ben Lin (http://dreamerslab.com/)
63 * Licensed under the MIT License (LICENSE.txt).
64 *
65 * Version: 1.0.19
66 *
67 * Requires: jQuery >= 1.2.3
68 */
69(function(a){if(typeof define==="function"&&define.amd){define(["jquery"],a);
70}else{a(jQuery);}}(function(a){a.fn.addBack=a.fn.addBack||a.fn.andSelf;a.fn.extend({actual:function(b,l){if(!this[b]){throw'$.actual => The jQuery method "'+b+'" you called does not exist';
71}var f={absolute:false,clone:false,includeMargin:false,display:"block"};var i=a.extend(f,l);var e=this.eq(0);var h,j;if(i.clone===true){h=function(){var m="position: absolute !important; top: -1000 !important; ";
72e=e.clone().attr("style",m).appendTo("body");};j=function(){e.remove();};}else{var g=[];var d="";var c;h=function(){c=e.parents().addBack().filter(":hidden");
73d+="visibility: hidden !important; display: "+i.display+" !important; ";if(i.absolute===true){d+="position: absolute !important; ";}c.each(function(){var m=a(this);
74var n=m.attr("style");g.push(n);m.attr("style",n?n+";"+d:d);});};j=function(){c.each(function(m){var o=a(this);var n=g[m];if(n===undefined){o.removeAttr("style");
75}else{o.attr("style",n);}});};}h();var k=/(outer)/.test(b)?e[b](i.includeMargin):e[b]();j();return k;}});}));
76
77/* End */
78;
79; /* Start:"a:4:{s:4:"full";s:72:"/bitrix/templates/aspro-allcorp3heat/js/jquery-ui.min.js?168603498132162";s:6:"source";s:56:"/bitrix/templates/aspro-allcorp3heat/js/jquery-ui.min.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
80/*! jQuery UI - v1.12.1 - 2017-05-11
81* http://jqueryui.com
82* Includes: widget.js, position.js, keycode.js, unique-id.js, widgets/autocomplete.js, widgets/menu.js
83* Copyright jQuery Foundation and other contributors; Licensed MIT */
84
85(function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)})(function(t){t.ui=t.ui||{},t.ui.version="1.12.1";var e=0,i=Array.prototype.slice;t.cleanData=function(e){return function(i){var s,n,o;for(o=0;null!=(n=i[o]);o++)try{s=t._data(n,"events"),s&&s.remove&&t(n).triggerHandler("remove")}catch(a){}e(i)}}(t.cleanData),t.widget=function(e,i,s){var n,o,a,r={},l=e.split(".")[0];e=e.split(".")[1];var h=l+"-"+e;return s||(s=i,i=t.Widget),t.isArray(s)&&(s=t.extend.apply(null,[{}].concat(s))),t.expr[":"][h.toLowerCase()]=function(e){return!!t.data(e,h)},t[l]=t[l]||{},n=t[l][e],o=t[l][e]=function(t,e){return this._createWidget?(arguments.length&&this._createWidget(t,e),void 0):new o(t,e)},t.extend(o,n,{version:s.version,_proto:t.extend({},s),_childConstructors:[]}),a=new i,a.options=t.widget.extend({},a.options),t.each(s,function(e,s){return t.isFunction(s)?(r[e]=function(){function t(){return i.prototype[e].apply(this,arguments)}function n(t){return i.prototype[e].apply(this,t)}return function(){var e,i=this._super,o=this._superApply;return this._super=t,this._superApply=n,e=s.apply(this,arguments),this._super=i,this._superApply=o,e}}(),void 0):(r[e]=s,void 0)}),o.prototype=t.widget.extend(a,{widgetEventPrefix:n?a.widgetEventPrefix||e:e},r,{constructor:o,namespace:l,widgetName:e,widgetFullName:h}),n?(t.each(n._childConstructors,function(e,i){var s=i.prototype;t.widget(s.namespace+"."+s.widgetName,o,i._proto)}),delete n._childConstructors):i._childConstructors.push(o),t.widget.bridge(e,o),o}
vendor: 4,241 bytes, line 85
85,t.widget.extend=function(e){for(var s,n,o=i.call(arguments,1),a=0,r=o.length;r>a;a++)for(s in o[a])n=o[a][s],o[a].hasOwnProperty(s)&&void 0!==n&&(e[s]=t.isPlainObject(n)?t.isPlainObject(e[s])?t.widget.extend({},e[s],n):t.widget.extend({},n):n);return e},t.widget.bridge=function(e,s){var n=s.prototype.widgetFullName||e;t.fn[e]=function(o){var a="string"==typeof o,r=i.call(arguments,1),l=this;return a?this.length||"instance"!==o?this.each(function(){var i,s=t.data(this,n);return"instance"===o?(l=s,!1):s?t.isFunction(s[o])&&"_"!==o.charAt(0)?(i=s[o].apply(s,r),i!==s&&void 0!==i?(l=i&&i.jquery?l.pushStack(i.get()):i,!1):void 0):t.error("no such method '"+o+"' for "+e+" widget instance"):t.error("cannot call methods on "+e+" prior to initialization; "+"attempted to call method '"+o+"'")}):l=void 0:(r.length&&(o=t.widget.extend.apply(null,[o].concat(r))),this.each(function(){var e=t.data(this,n);e?(e.option(o||{}),e._init&&e._init()):t.data(this,n,new s(o,this))})),l}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(i,s){s=t(s||this.defaultElement||this)[0],this.element=t(s),this.uuid=e++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),this.classesElementLookup={},s!==this&&(t.data(s,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===s&&this.destroy()}}),this.document=t(s.style?s.ownerDocument:s.document||s),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),i),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){var e=this;this._destroy(),t.each(this.classesElementLookup,function(t,i){e._removeClass(i,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:t.noop,widget:function(){return this.element},option:function(e,i){var s,n,o,a=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(a={},s=e.split("."),e=s.shift(),s.length){for(n=a[e]=t.widget.extend({},this.options[e]),o=0;s.length-1>o;o++)n[s[o]]=n[s[o]]||{},n=n[s[o]];if(e=s.pop(),1===arguments.length)return void 0===n[e]?null:n[e];n[e]=i}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];a[e]=i}return this._setOptions(a),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(e){var i,s,n;for(i in e)n=this.classesElementLookup[i],e[i]!==this.options.classes[i]&&n&&n.length&&(s=t(n.get()),this._removeClass(n,i),s.addClass(this._classes({element:s,keys:i,classes:e,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(e){function i(i,o){var a,r;for(r=0;i.length>r;r++)a=n.classesElementLookup[i[r]]||t(),a=e.add?t(t.unique(a.get().concat(e.element.get()))):t(a.not(e.element).get()),n.classesElementLookup[i[r]]=a,s.push(i[r]),o&&e.classes[i[r]]&&s.push(e.classes[i[r]])}var s=[],n=this;return e=t.extend({element:this.element,classes:this.options.classes||{}},e),this._on(e.element,{remove:"_untrackClassesElement"}),e.keys&&i(e.keys.match(/\S+/g)||[],!0),e.extra&&i(e.extra.match(/\S+/g)||[]),s.join(" ")},_untrackClassesElement:function(e){var i=this;t.each(i.classesElementLookup,function(s,n){-1!==t.inArray(e.target,n)&&(i.classesElementLookup[s]=t(n.not(e.target).get()))})}
vendor: 15,532 bytes, line 85
85,_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,s){s="boolean"==typeof s?s:i;var n="string"==typeof t||null===t,o={extra:n?e:i,keys:n?t:e,element:n?this.element:t,add:s};return o.element.toggleClass(this._classes(o),s),this},_on:function(e,i,s){var n,o=this;"boolean"!=typeof e&&(s=i,i=e,e=!1),s?(i=n=t(i),this.bindings=this.bindings.add(i)):(s=i,i=this.element,n=this.widget()),t.each(s,function(s,a){function r(){return e||o.options.disabled!==!0&&!t(this).hasClass("ui-state-disabled")?("string"==typeof a?o[a]:a).apply(o,arguments):void 0}"string"!=typeof a&&(r.guid=a.guid=a.guid||r.guid||t.guid++);var l=s.match(/^([\w:-]*)\s*(.*)$/),h=l[1]+o.eventNamespace,c=l[2];c?n.on(h,c,r):i.on(h,r)})},_off:function(e,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.off(i).off(i),this.bindings=t(this.bindings.not(e).get()),this.focusable=t(this.focusable.not(e).get()),this.hoverable=t(this.hoverable.not(e).get())},_delay:function(t,e){function i(){return("string"==typeof t?s[t]:t).apply(s,arguments)}var s=this;return setTimeout(i,e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){this._addClass(t(e.currentTarget),null,"ui-state-hover")},mouseleave:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){this._addClass(t(e.currentTarget),null,"ui-state-focus")},focusout:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-focus")}})},_trigger:function(e,i,s){var n,o,a=this.options[e];if(s=s||{},i=t.Event(i),i.type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],o=i.originalEvent)for(n in o)n in i||(i[n]=o[n]);return this.element.trigger(i,s),!(t.isFunction(a)&&a.apply(this.element[0],[i].concat(s))===!1||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},function(e,i){t.Widget.prototype["_"+e]=function(s,n,o){"string"==typeof n&&(n={effect:n});var a,r=n?n===!0||"number"==typeof n?i:n.effect||i:e;n=n||{},"number"==typeof n&&(n={duration:n}),a=!t.isEmptyObject(n),n.complete=o,n.delay&&s.delay(n.delay),a&&t.effects&&t.effects.effect[r]?s[e](n):r!==e&&s[r]?s[r](n.duration,n.easing,o):s.queue(function(i){t(this)[e](),o&&o.call(s[0]),i()})}}),t.widget,function(){function e(t,e,i){return[parseFloat(t[0])*(u.test(t[0])?e/100:1),parseFloat(t[1])*(u.test(t[1])?i/100:1)]}function i(e,i){return parseInt(t.css(e,i),10)||0}function s(e){var i=e[0];return 9===i.nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:t.isWindow(i)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()}}var n,o=Math.max,a=Math.abs,r=/left|center|right/,l=/top|center|bottom/,h=/[\+\-]\d+(\.[\d]+)?%?/,c=/^\w+/,u=/%$/,d=t.fn.position;t.position={scrollbarWidth:function(){if(void 0!==n)return n;var e,i,s=t("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),o=s.children()[0];return t("body").append(s),e=o.offsetWidth,s.css("overflow","scroll"),i=o.offsetWidth,e===i&&(i=s[0].clientWidth),s.remove(),n=e-i},getScrollInfo:function(e){var i=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),s=e.isWindow||e.isDocument?"":e.element.css("overflow-y"),n="scroll"===i||"auto"===i&&e.width<e.element[0].scrollWidth,o="scroll"===s||"auto"===s&&e.height<e.element[0].scrollHeight;return{width:o?t.position.scrollbarWidth():0,height:n?t.position.scrollbarWidth():0}},getWithinInfo:function(e){var i=t(e||window),s=t.isWindow(i[0]),n=!!i[0]&&9===i[0].nodeType,o=!s&&!n;return{element:i,isWindow:s,isDocument:n,offset:o?t(e).offset():{left:0,top:0},scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:i.outerWidth(),height:i.outerHeight()}}},t.fn.position=function(n){if(!n||!n.of)return d.apply(this,arguments);n=t.extend({},n);var u,p,f,g,m,_,v=t(n.of),b=t.position.getWithinInfo(n.within),y=t.position.getScrollInfo(b),w=(n.collision||"flip").split(" "),k={};return _=s(v),v[0].preventDefault&&(n.at="left top"),p=_.width,f=_.height,g=_.offset,m=t.extend({},g),t.each(["my","at"],function(){var t,e,i=(n[this]||"").split(" ");1===i.length&&(i=r.test(i[0])?i.concat(["center"]):l.test(i[0])?["center"].concat(i):["center","center"]),i[0]=r.test(i[0])?i[0]:"center",i[1]=l.test(i[1])?i[1]:"center",t=h.exec(i[0]),e=h.exec(i[1]),k[this]=[t?t[0]:0,e?e[0]:0],n[this]=[c.exec(i[0])[0],c.exec(i[1])[0]]}),1===w.length&&(w[1]=w[0]),"right"===n.at[0]?m.left+=p:"center"===n.at[0]&&(m.left+=p/2),"bottom"===n.at[1]?m.top+=f:"center"===n.at[1]&&(m.top+=f/2),u=e(k.at,p,f),m.left+=u[0],m.top+=u[1],this.each(function(){var s,r,l=t(this),h=l.outerWidth(),c=l.outerHeight(),d=i(this,"marginLeft"),_=i(this,"marginTop"),x=h+d+i(this,"marginRight")+y.width,C=c+_+i(this,"marginBottom")+y.height,D=t.extend({},m),T=e(k.my,l.outerWidth(),l.outerHeight());"right"===n.my[0]?D.left-=h:"center"===n.my[0]&&(D.left-=h/2),"bottom"===n.my[1]?D.top-=c:"center"===n.my[1]&&(D.top-=c/2),D.left+=T[0],D.top+=T[1],s={marginLeft:d,marginTop:_},t.each(["left","top"],function(e,i){t.ui.position[w[e]]&&t.ui.position[w[e]][i](D,{targetWidth:p,targetHeight:f,elemWidth:h,elemHeight:c,collisionPosition:s,collisionWidth:x,collisionHeight:C,offset:[u[0]+T[0],u[1]+T[1]],my:n.my,at:n.at,within:b,elem:l})}),n.using&&(r=function(t){var e=g.left-D.left,i=e+p-h,s=g.top-D.top,r=s+f-c,u={target:{element:v,left:g.left,top:g.top,width:p,height:f},element:{element:l,left:D.left,top:D.top,width:h,height:c},horizontal:0>i?"left":e>0?"right":"center",vertical:0>r?"top":s>0?"bottom":"middle"};h>p&&p>a(e+i)&&(u.horizontal="center"),c>f&&f>a(s+r)&&(u.vertical="middle"),u.important=o(a(e),a(i))>o(a(s),a(r))?"horizontal":"vertical",n.using.call(this,t,u)}),l.offset(t.extend(D,{using:r}))})},t.ui.position={fit:{left:function(t,e){var i,s=e.within,n=s.isWindow?s.scrollLeft:s.offset.left,a=s.width,r=t.left-e.collisionPosition.marginLeft,l=n-r,h=r+e.collisionWidth-a-n;e.collisionWidth>a?l>0&&0>=h?(i=t.left+l+e.collisionWidth-a-n,t.left+=l-i):t.left=h>0&&0>=l?n:l>h?n+a-e.collisionWidth:n:l>0?t.left+=l:h>0?t.left-=h:t.left=o(t.left-r,t.left)},top:function(t,e){var i,s=e.within,n=s.isWindow?s.scrollTop:s.offset.top,a=e.within.height,r=t.top-e.collisionPosition.marginTop,l=n-r,h=r+e.collisionHeight-a-n;e.collisionHeight>a?l>0&&0>=h?(i=t.top+l+e.collisionHeight-a-n,t.top+=l-i):t.top=h>0&&0>=l?n:l>h?n+a-e.collisionHeight:n:l>0?t.top+=l:h>0?t.top-=h:t.top=o(t.top-r,t.top)}},flip:{left:function(t,e){var i,s,n=e.within,o=n.offset.left+n.scrollLeft,r=n.width,l=n.isWindow?n.scrollLeft:n.offset.left,h=t.left-e.collisionPosition.marginLeft,c=h-l,u=h+e.collisionWidth-r-l,d="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,p="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,f=-2*e.offset[0];0>c?(i=t.left+d+p+f+e.collisionWidth-r-o,(0>i||a(c)>i)&&(t.left+=d+p+f)):u>0&&(s=t.left-e.collisionPosition.marginLeft+d+p+f-l,(s>0||u>a(s))&&(t.left+=d+p+f))},top:function(t,e){var i,s,n=e.within,o=n.offset.top+n.scrollTop,r=n.height,l=n.isWindow?n.scrollTop:n.offset.top,h=t.top-e.collisionPosition.marginTop,c=h-l,u=h+e.collisionHeight-r-l,d="top"===e.my[1],p=d?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,f="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,g=-2*e.offset[1];0>c?(s=t.top+p+f+g+e.collisionHeight-r-o,(0>s||a(c)>s)&&(t.top+=p+f+g)):u>0&&(i=t.top-e.collisionPosition.marginTop+p+f+g-l,(i>0||u>a(i))&&(t.top+=p+f+g))}},flipfit:{left:function(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:function(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments)}}}}(),t.ui.position,t.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},t.fn.extend({uniqueId:function(){var t=0;return function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++t)})}}(),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&t(this).removeAttr("id")})}}),t.ui.safeActiveElement=function(t){var e;try{e=t.activeElement}catch(i){e=t.body}return e||(e=t.body),e.nodeName||(e=t.body),e},t.widget("ui.menu",{version:"1.12.1",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(t){t.preventDefault()},"click .ui-menu-item":function(e){var i=t(e.target),s=t(t.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&i.not(".ui-state-disabled").length&&(this.select(e),e.isPropagationStopped()||(this.mouseHandled=!0),i.has(".ui-menu").length?this.expand(e):!this.element.is(":focus")&&s.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(e){if(!this.previousFilter){var i=t(e.target).closest(".ui-menu-item"),s=t(e.currentTarget);i[0]===s[0]&&(this._removeClass(s.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(e,s))}},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var i=this.active||this.element.find(this.options.items).eq(0);e||this.focus(t,i)},blur:function(e){this._delay(function(){var i=!t.contains(this.element[0],t.ui.safeActiveElement(this.document[0]));i&&this.collapseAll(e)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){this._closeOnDocumentClick(t)&&this.collapseAll(t),this.mouseHandled=!1}})},_destroy:function(){var e=this.element.find(".ui-menu-item").removeAttr("role aria-disabled"),i=e.children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),i.children().each(function(){var e=t(this);e.data("ui-menu-submenu-caret")&&e.remove()})},_keydown:function(e){var i,s,n,o,a=!0;switch(e.keyCode){case t.ui.keyCode.PAGE_UP:this.previousPage(e);break;case t.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case t.ui.keyCode.HOME:this._move("first","first",e);break;case t.ui.keyCode.END:this._move("last","last",e);break;case t.ui.keyCode.UP:this.previous(e);break;case t.ui.keyCode.DOWN:this.next(e);break;case t.ui.keyCode.LEFT:this.collapse(e);break;case t.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(e);break;case t.ui.keyCode.ENTER:case t.ui.keyCode.SPACE:this._activate(e);break;case t.ui.keyCode.ESCAPE:this.collapse(e);break;default:a=!1,s=this.previousFilter||"",o=!1,n=e.keyCode>=96&&105>=e.keyCode?""+(e.keyCode-96):String.fromCharCode(e.keyCode),clearTimeout(this.filterTimer),n===s?o=!0:n=s+n,i=this._filterMenuItems(n),i=o&&-1!==i.index(this.active.next())?this.active.nextAll(".ui-menu-item"):i,i.length||(n=String.fromCharCode(e.keyCode),i=this._filterMenuItems(n)),i.length?(this.focus(e,i),this.previousFilter=n,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}a&&e.preventDefault()},_activate:function(t){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(t):this.select(t))},refresh:function(){var e,i,s,n,o,a=this,r=this.options.icons.submenu,l=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),s=l.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var e=t(this),i=e.prev(),s=t("<span>").data("ui-menu-submenu-caret",!0);a._addClass(s,"ui-menu-icon","ui-icon "+r),i.attr("aria-haspopup","true").prepend(s),e.attr("aria-labelledby",i.attr("id"))}),this._addClass(s,"ui-menu","ui-widget ui-widget-content ui-front"),e=l.add(this.element),i=e.find(this.options.items),i.not(".ui-menu-item").each(function(){var e=t(this);a._isDivider(e)&&a._addClass(e,"ui-menu-divider","ui-widget-content")}),n=i.not(".ui-menu-item, .ui-menu-divider"),o=n.children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(n,"ui-menu-item")._addClass(o,"ui-menu-item-wrapper"),i.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!t.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){if("icons"===t){var i=this.element.find(".ui-menu-icon");this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,e.submenu)}this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t+""),this._toggleClass(null,"ui-state-disabled",!!t)},focus:function(t,e){var i,s,n;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),s=this.active.children(".ui-menu-item-wrapper"),this._addClass(s,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",s.attr("id")),n=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(n,null,"ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),i=e.children(".ui-menu"),i.length&&t&&/^mouse/.test(t.type)&&this._startOpening(i),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(e){var i,s,n,o,a,r;this._hasScroll()&&(i=parseFloat(t.css(this.activeMenu[0],"borderTopWidth"))||0,s=parseFloat(t.css(this.activeMenu[0],"paddingTop"))||0,n=e.offset().top-this.activeMenu.offset().top-i-s,o=this.activeMenu.scrollTop(),a=this.activeMenu.height(),r=e.outerHeight(),0>n?this.activeMenu.scrollTop(o+n):n+r>a&&this.activeMenu.scrollTop(o+n-a+r))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",t,{item:this.active}),this.active=null)},_startOpening:function(t){clearTimeout(this.timer),"true"===t.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(t)},this.delay))},_open:function(e){var i=t.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-hidden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(i)},collapseAll:function(e,i){clearTimeout(this.timer),this.timer=this._delay(function(){var s=i?this.element:t(e&&e.target).closest(this.element.find(".ui-menu"));s.length||(s=this.element),this._close(s),this.blur(e),this._removeClass(s.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=s},this.delay)},_close:function(t){t||(t=this.active?this.active.parent():this.element),t.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","fal
85se")},_closeOnDocumentClick:function(e){return!t(e.target).closest(".ui-menu").length},_isDivider:function(t){return!/[^\-\u2014\u2013\s]/.test(t.text())},collapse:function(t){var e=this.active&&this.active.parent().closest(".ui-menu-item",this.element);e&&e.length&&(this._close(),this.focus(t,e))},expand:function(t){var e=this.active&&this.active.children(".ui-menu ").find(this.options.items).first();e&&e.length&&(this._open(e.parent()),this._delay(function(){this.focus(t,e)}))},next:function(t){this._move("next","first",t)},previous:function(t){this._move("prev","last",t)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(t,e,i){var s;this.active&&(s="first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[t+"All"](".ui-menu-item").eq(0)),s&&s.length&&this.active||(s=this.activeMenu.find(this.options.items)[e]()),this.focus(i,s)},nextPage:function(e){var i,s,n;return this.active?(this.isLastItem()||(this._hasScroll()?(s=this.active.offset().top,n=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return i=t(this),0>i.offset().top-s-n}),this.focus(e,i)):this.focus(e,this.activeMenu.find(this.options.items)[this.active?"last":"first"]())),void 0):(this.next(e),void 0)},previousPage:function(e){var i,s,n;return this.active?(this.isFirstItem()||(this._hasScroll()?(s=this.active.offset().top,n=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return i=t(this),i.offset().top-s+n>0}),this.focus(e,i)):this.focus(e,this.activeMenu.find(this.options.items).first())),void 0):(this.next(e),void 0)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(e){this.active=this.active||t(e.target).closest(".ui-menu-item");var i={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(e,!0),this._trigger("select",e,i)},_filterMenuItems:function(e){var i=e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),s=RegExp("^"+i,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return s.test(t.trim(t(this).children(".ui-menu-item-wrapper").text()))})}}),t.widget("ui.autocomplete",{version:"1.12.1",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var e,i,s,n=this.element[0].nodeName.toLowerCase(),o="textarea"===n,a="input"===n;
vendor: 7,906 bytes, line 85
85this.isMultiLine=o||!a&&this._isContentEditable(this.element),this.valueMethod=this.element[o||a?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(n){if(this.element.prop("readOnly"))return e=!0,s=!0,i=!0,void 0;e=!1,s=!1,i=!1;var o=t.ui.keyCode;switch(n.keyCode){case o.PAGE_UP:e=!0,this._move("previousPage",n);break;case o.PAGE_DOWN:e=!0,this._move("nextPage",n);break;case o.UP:e=!0,this._keyEvent("previous",n);break;case o.DOWN:e=!0,this._keyEvent("next",n);break;case o.ENTER:this.menu.active&&(e=!0,n.preventDefault(),this.menu.select(n));break;case o.TAB:this.menu.active&&this.menu.select(n);break;case o.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(n),n.preventDefault());break;default:i=!0,this._searchTimeout(n)}},keypress:function(s){if(e)return e=!1,(!this.isMultiLine||this.menu.element.is(":visible"))&&s.preventDefault(),void 0;if(!i){var n=t.ui.keyCode;switch(s.keyCode){case n.PAGE_UP:this._move("previousPage",s);break;case n.PAGE_DOWN:this._move("nextPage",s);break;case n.UP:this._keyEvent("previous",s);break;case n.DOWN:this._keyEvent("next",s)}}},input:function(t){return s?(s=!1,t.preventDefault(),void 0):(this._searchTimeout(t),void 0)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){return this.cancelBlur?(delete this.cancelBlur,void 0):(clearTimeout(this.searching),this.close(t),this._change(t),void 0)}}),this._initSource(),this.menu=t("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,this.element[0]!==t.ui.safeActiveElement(this.document[0])&&this.element.trigger("focus")})},menufocus:function(e,i){var s,n;return this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent&&/^mouse/.test(e.originalEvent.type))?(this.menu.blur(),this.document.one("mousemove",function(){t(e.target).trigger(e.originalEvent)}),void 0):(n=i.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",e,{item:n})&&e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(n.value),s=i.item.attr("aria-label")||n.value,s&&t.trim(s).length&&(this.liveRegion.children().hide(),t("<div>").text(s).appendTo(this.liveRegion)),void 0)},menuselect:function(e,i){var s=i.item.data("ui-autocomplete-item"),n=this.previous;this.element[0]!==t.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=n,this._delay(function(){this.previous=n,this.selectedItem=s})),!1!==this._trigger("select",e,{item:s})&&this._value(s.value),this.term=this._value(),this.close(e),this.selectedItem=s}}),this.liveRegion=t("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(t,e){this._super(t,e),"source"===t&&this._initSource(),"appendTo"===t&&this.menu.element.appendTo(this._appendTo()),"disabled"===t&&e&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(e){var i=this.menu.element[0];return e.target===this.element[0]||e.target===i||t.contains(i,e.target)},_closeOnClickOutside:function(t){this._isEventTargetInWidget(t)||this.close()},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)),e&&e[0]||(e=this.element.closest(".ui-front, dialog")),e.length||(e=this.document[0].body),e},_initSource:function(){var e,i,s=this;t.isArray(this.options.source)?(e=this.options.source,this.source=function(i,s){s(t.ui.autocomplete.filter(e,i.term))}):"string"==typeof this.options.source?(i=this.options.source,this.source=function(e,n){s.xhr&&s.xhr.abort(),s.xhr=t.ajax({url:i,data:e,dataType:"json",success:function(t){n(t)},error:function(){n([])}})}):this.source=this.options.source},_searchTimeout:function(t){clearTimeout(this.searching),this.searching=this._delay(function(){var e=this.term===this._value(),i=this.menu.element.is(":visible"),s=t.altKey||t.ctrlKey||t.metaKey||t.shiftKey;(!e||e&&!i&&!s)&&(this.selectedItem=null,this.search(null,t))},this.options.delay)},search:function(t,e){return t=null!=t?t:this._value(),this.term=this._value(),t.length<this.options.minLength?this.close(e):this._trigger("search",e)!==!1?this._search(t):void 0},_search:function(t){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:t},this._response())},_response:function(){var e=++this.requestIndex;return t.proxy(function(t){e===this.requestIndex&&this.__response(t),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")},this)},__response:function(t){t&&(t=this._normalize(t)),this._trigger("response",null,{content:t}),!this.options.disabled&&t&&t.length&&!this.cancelSearch?(this._suggest(t),this._trigger("open")):this._close()},close:function(t){this.cancelSearch=!0,this._close(t)},_close:function(t){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",t))},_change:function(t){this.previous!==this._value()&&this._trigger("change",t,{item:this.selectedItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:t.map(e,function(e){return"string"==typeof e?{label:e,value:e}:t.extend({},e,{label:e.label||e.value,value:e.value||e.label})})},_suggest:function(e){var i=this.menu.element.empty();this._renderMenu(i,e),this.isNewMenu=!0,this.menu.refresh(),i.show(),this._resizeMenu(),i.position(t.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var t=this.menu.element;t.outerWidth(Math.max(t.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(e,i){var s=this;t.each(i,function(t,i){s._renderItemData(e,i)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-autocomplete-item",e)},_renderItem:function(e,i){return t("<li>").append(t("<div>").text(i.label)).appendTo(e)},_move:function(t,e){return this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(t)||this.menu.isLastItem()&&/^next/.test(t)?(this.isMultiLine||this._value(this.term),this.menu.blur(),void 0):(this.menu[t](e),void 0):(this.search(null,e),void 0)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){(!this.isMultiLine||this.menu.element.is(":visible"))&&(this._move(t,e),e.preventDefault())},_isContentEditable:function(t){if(!t.length)return!1;var e=t.prop("contentEditable");return"inherit"===e?this._isContentEditable(t.parent()):"true"===e}}),t.extend(t.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,i){var s=RegExp(t.ui.autocomplete.escapeRegex(i),"i");return t.grep(e,function(t){return s.test(t.label||t.value||t)})}}),t.widget("ui.autocomplete",t.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(t){return t+(t>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var i;this._superApply(arguments),this.options.disabled||this.cancelSearch||(i=e&&e.length?this.options.messages.results(e.length):this.options.messages.noResults,this.liveRegion.children().hide(),t("<div>").text(i).appendTo(this.liveRegion))}}),t.ui.autocomplete
85});
86/* End */
87;
88; /* Start:"a:4:{s:4:"full";s:75:"/bitrix/templates/aspro-allcorp3heat/js/jquery.plugin.min.js?16860349813349";s:6:"source";s:60:"/bitrix/templates/aspro-allcorp3heat/js/jquery.plugin.min.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
89/*! Simple JavaScript Inheritance
90 * By John Resig http://ejohn.org/
91 * MIT Licensed.
92 */
93!function(){"use strict";var a=!1;window.JQClass=function(){},JQClass.classes={},JQClass.extend=function b(c){function d(){!a&&this._init&&this._init.apply(this,arguments)}var e=this.prototype;a=!0;var f=new this;a=!1;for(var g in c)if("function"==typeof c[g]&&"function"==typeof e[g])f[g]=function(a,b){return function(){var c=this._super;this._super=function(b){return e[a].apply(this,b||[])};var d=b.apply(this,arguments);return this._super=c,d}}(g,c[g]);else if("object"==typeof c[g]&&"object"==typeof e[g]&&"defaultOptions"===g){var h,i=e[g],j=c[g],k={};for(h in i)k[h]=i[h];for(h in j)k[h]=j[h];f[g]=k}else f[g]=c[g];return d.prototype=f,d.prototype.constructor=d,d.extend=b,d}}(),/*! Abstract base class for collection plugins v1.0.2.
94	Written by Keith Wood (wood.keith{at}optusnet.com.au) December 2013.
95	Licensed under the MIT license (http://keith-wood.name/licence.html). */
96function($){"use strict";function camelCase(a){return a.replace(/-([a-z])/g,function(a,b){return b.toUpperCase()})}JQClass.classes.JQPlugin=JQClass.extend({name:"plugin",defaultOptions:{},regionalOptions:{},deepMerge:!0,_getMarker:function(){return"is-"+this.name},_init:function(){$.extend(this.defaultOptions,this.regionalOptions&&this.regionalOptions[""]||{});var a=camelCase(this.name);$[a]=this,$.fn[a]=function(b){var c=Array.prototype.slice.call(arguments,1),d=this,e=this;return this.each(function(){if("string"==typeof b){if("_"===b[0]||!$[a][b])throw"Unknown method: "+b;var f=$[a][b].apply($[a],[this].concat(c));if(f!==d&&void 0!==f)return e=f,!1}else $[a]._attach(this,b)}),e}},setDefaults:function(a){$.extend(this.defaultOptions,a||{})},_attach:function(a,b){if(a=$(a),!a.hasClass(this._getMarker())){a.addClass(this._getMarker()),b=$.extend(this.deepMerge,{},this.defaultOptions,this._getMetadata(a),b||{});var c=$.extend({name:this.name,elem:a,options:b},this._instSettings(a,b));a.data(this.name,c),this._postAttach(a,c),this.option(a,b)}},_instSettings:function(a,b){return{}},_postAttach:function(a,b){},_getMetadata:function(elem){try{var data=elem.data(this.name.toLowerCase())||"";data=data.replace(/(\\?)'/g,function(a,b){return b?"'":'"'}).replace(/([a-zA-Z0-9]+):/g,function(a,b,c){var d=data.substring(0,c).match(/"/g);return d&&d.length%2!==0?b+":":'"'+b+'":'}).replace(/\\:/g,":"),data=$.parseJSON("{"+data+"}");for(var key in data)if(data.hasOwnProperty(key)){var value=data[key];"string"==typeof value&&value.match(/^new Date\(([-0-9,\s]*)\)$/)&&(data[key]=eval(value))}return data}catch(a){return{}}},_getInst:function(a){return $(a).data(this.name)||{}},option:function(a,b,c){a=$(a);var d=a.data(this.name),e=b||{};return!b||"string"==typeof b&&"undefined"==typeof c?(e=(d||{}).options,e&&b?e[b]:e):void(a.hasClass(this._getMarker())&&("string"==typeof b&&(e={},e[b]=c),this._optionsChanged(a,d,e),$.extend(d.options,e)))},_optionsChanged:function(a,b,c){},destroy:function(a){a=$(a),a.hasClass(this._getMarker())&&(this._preDestroy(a,this._getInst(a)),a.removeData(this.name).removeClass(this._getMarker()))},_preDestroy:function(a,b){}}),$.JQPlugin={createPlugin:function(a,b){"object"==typeof a&&(b=a,a="JQPlugin"),a=camelCase(a);var c=camelCase(b.name);JQClass.classes[c]=JQClass.classes[a].extend(b),new JQClass.classes[c]}}}(jQuery);
97/* End */
98;
99; /* Start:"a:4:{s:4:"full";s:80:"/bitrix/templates/aspro-allcorp3heat/js/jquery.alphanumeric.min.js?1686034981942";s:6:"source";s:62:"/bitrix/templates/aspro-allcorp3heat/js/jquery.alphanumeric.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
100!function(n){n.fn.alphanumeric=function(r){var a,e,c=n(this),t="abcdefghijklmnopqrstuvwxyz",i=n.extend({ichars:"!@#$%^&*()+=[]\\';,/{}|\":<>?~`.- _",nchars:"",allow:""},r),h=i.allow.split(""),l=0;for(l;l<h.length;l++)-1!=i.ichars.indexOf(h[l])&&(h[l]="\\"+h[l]);return i.nocaps&&(i.nchars+=t.toUpperCase()),i.allcaps&&(i.nchars+=t),i.allow=h.join("|"),e=new RegExp(i.allow,"gi"),a=(i.ichars+i.nchars).replace(e,""),c.keypress(function(n){var r=String.fromCharCode(n.charCode?n.charCo
100de:n.which);-1==a.indexOf(r)||n.ctrlKey||n.preventDefault()}),c.blur(function(){var n=c.val(),r=0;for(r;r<n.length;r++)if(-1!=a.indexOf(n[r]))return c.val(""),!1;return!1}),c},n.fn.numeric=function(r){var a="abcdefghijklmnopqrstuvwxyz",e=a.toUpperCase();return this.each(function(){n(this).alphanumeric(n.extend({nchars:a+e},r))})},n.fn.alpha=function(r){var a="1234567890";return this.each(function(){n(this).alphanumeric(n.extend({nchars:a},r))})}}(jQuery);
101/* End */
102;
103; /* Start:"a:4:{s:4:"full";s:82:"/bitrix/templates/aspro-allcorp3heat/js/jquery.autocomplete.min.js?168603498112531";s:6:"source";s:62:"/bitrix/templates/aspro-allcorp3heat/js/jquery.autocomplete.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
104!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports&&"function"==typeof require?require("jquery"):jQuery)}(function(e){"use strict";function t(n,o){var i=this;i.element=n,i.el=e(n),i.suggestions=[],i.badQueries=[],i.selectedIndex=-1,i.currentValue=i.element.value,i.timeoutId=null,i.cachedResponse={},i.onChangeTimeout=null,i.onChange=null,i.isLocal=!1,i.suggestionsContainer=null,i.noSuggestionsContainer=null,i.options=e.extend({},t.defaults,o),i.classes={selected:"autocomplete-selected",suggestion:"autocomplete-suggestion"},i.hint=null,i.hintValue="",i.selection=null,i.initialize(),i.setOptions(o)}function n(e,t,n){return-1!==e.value.toLowerCase().indexOf(n)}function o(t){return"string"==typeof t?e.parseJSON(t):t}function i(e,t){if(!t)return e.value;var n="("+a.escapeRegExChars(t)+")";return e.value.replace(new RegExp(n,"gi"),"<strong>$1</strong>").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/&lt;(\/?strong)&gt;/g,"<$1>")}function s(e,t){return'<div class="autocomplete-group">'+t+"</div>"}var a=function(){return{escapeRegExChars:function(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")},createNode:function(e){var t=document.createElement("div");return t.className=e,t.style.position="absolute",t.style.display="none",t}}}(),u={ESC:27,TAB:9,RETURN:13,LEFT:37,UP:38,RIGHT:39,DOWN:40},r=e.noop;t.utils=a,e.Autocomplete=t,t.defaults={ajaxSettings:{},autoSelectFirst:!1,appendTo:"body",serviceUrl:null,lookup:null,onSelect:null,width:"auto",minChars:1,maxHeight:300,deferRequestBy:0,params:{},formatResult:i,formatGroup:s,delimiter:null,zIndex:9999,type:"GET",noCache:!1,onSearchStart:r,onSearchComplete:r,onSearchError:r,preserveInput:!1,containerClass:"autocomplete-suggestions",tabDisabled:!1,dataType:"text",currentRequest:null,triggerSelectOnValidInput:!0,preventBadQueries:!0,lookupFilter:n,paramName:"query",transformResult:o,showNoSuggestionNotice:!1,noSuggestionNotice:"No results",orientation:"bottom",forceFixPosition:!1},t.prototype={initialize:function(){var n,o=this,i="."+o.classes.suggestion,s=o.classes.selected,a=o.options;o.element.setAttribute("autocomplete","off"),o.noSuggestionsContainer=e('<div class="autocomplete-no-suggestion"></div>').html(this.options.noSuggestionNotice).get(0),o.suggestionsContainer=t.utils.createNode(a.containerClass),n=e(o.suggestionsContainer),n.appendTo(a.appendTo||"body"),"auto"!==a.width&&n.css("width",a.width),n.on("mouseover.autocomplete",i,function(){o.activate(e(this).data("index"))}),n.on("mouseout.autocomplete",function(){o.selectedIndex=-1,n.children("."+s).removeClass(s)}),n.on("click.autocomplete",i,function(){o.select(e(this).data("index"))}),n.on("click.autocomplete",function(){clearTimeout(o.blurTimeoutId)}),o.fixPositionCapture=function(){o.visible&&o.fixPosition()},e(window).on("resize.autocomplete",o.fixPositionCapture),o.el.on("keydown.autocomplete",function(e){o.onKeyPress(e)}),o.el.on("keyup.autocomplete",function(e){o.onKeyUp(e)}),o.el.on("blur.autocomplete",function(){o.onBlur()}),o.el.on("focus.autocomplete",function(){o.onFocus()}),o.el.on("change.autocomplete",function(e){o.onKeyUp(e)}),o.el.on("input.autocomplete",function(e){o.onKeyUp(e)})},onFocus:function(){var e=this;e.fixPosition(),e.el.val().length>=e.options.minChars&&e.onValueChange()},onBlur:function(){var e=this;e.blurTimeoutId=setTimeout(function(){e.hide()},200)},abortAjax:function(){var e=this;e.currentRequest&&(e.currentRequest.abort(),e.currentRequest=null)},setOptions:function(t){var n=this,o=n.options;this.options=e.extend({},o,t),n.isLocal=e.isArray(o.lookup),n.isLocal&&(o.lookup=n.verifySuggestionsFormat(o.lookup)),o.orientation=n.validateOrientation(o.orientation,"bottom"),e(n.suggestionsContainer).css({"max-height":o.maxHeight+"px",width:o.width+"px","z-index":o.zIndex})},clearCache:function(){this.cachedResponse={},this.badQueries=[]},clear:function(){this.clearCache(),this.currentValue="",this.suggestions=[]},disable:function(){var e=this;e.disabled=!0,clearTimeout(e.onChangeTimeout),e.abortAjax()},enable:function(){this.disabled=!1},fixPosition:function(){var t=this,n=e(t.suggestionsContainer),o=n.parent().get(0);
104if(o===document.body||t.options.forceFixPosition){var i=t.options.orientation,s=n.outerHeight(),a=t.el.outerHeight(),u=t.el.offset(),r={top:u.top,left:u.left};if("auto"===i){var l=e(window).height(),c=e(window).scrollTop(),g=-c+u.top-s,d=c+l-(u.top+a+s);i=Math.max(g,d)===g?"top":"bottom"}if("top"===i?r.top+=-s:r.top+=a,o!==document.body){var p,h=n.css("opacity");t.visible||n.css("opacity",0).show(),p=n.offsetParent().offset(),r.top-=p.top,r.left-=p.left,t.visible||n.css("opacity",h).hide()}"auto"===t.options.width&&(r.width=t.el.outerWidth()+"px"),n.css(r)}},isCursorAtEnd:function(){var e,t=this,n=t.el.val().length,o=t.element.selectionStart;return"number"==typeof o?o===n:document.selection?(e=document.selection.createRange(),e.moveStart("character",-n),n===e.text.length):!0},onKeyPress:function(e){var t=this;if(!t.disabled&&!t.visible&&e.which===u.DOWN&&t.currentValue)return void t.suggest();if(!t.disabled&&t.visible){switch(e.which){case u.ESC:t.el.val(t.currentValue),t.hide();break;case u.RIGHT:if(t.hint&&t.options.onHint&&t.isCursorAtEnd()){t.selectHint();break}return;case u.TAB:if(t.hint&&t.options.onHint)return void t.selectHint();if(-1===t.selectedIndex)return void t.hide();if(t.select(t.selectedIndex),t.options.tabDisabled===!1)return;break;case u.RETURN:if(-1===t.selectedIndex)return void t.hide();t.select(t.selectedIndex);break;case u.UP:t.moveUp();break;case u.DOWN:t.moveDown();break;default:return}e.stopImmediatePropagation(),e.preventDefault()}},onKeyUp:function(e){var t=this;if(!t.disabled){switch(e.which){case u.UP:case u.DOWN:return}clearTimeout(t.onChangeTimeout),t.currentValue!==t.el.val()&&(t.findBestHint(),t.options.deferRequestBy>0?t.onChangeTimeout=setTimeout(function(){t.onValueChange()},t.options.deferRequestBy):t.onValueChange())}},onValueChange:function(){var t=this,n=t.options,o=t.el.val(),i=t.getQuery(o);return t.selection&&t.currentValue!==i&&(t.selection=null,(n.onInvalidateSelection||e.noop).call(t.element)),clearTimeout(t.onChangeTimeout),t.currentValue=o,t.selectedIndex=-1,n.triggerSelectOnValidInput&&t.isExactMatch(i)?void t.select(0):void(i.length<n.minChars?t.hide():t.getSuggestions(i))},isExactMatch:function(e){var t=this.suggestions;return 1===t.length&&t[0].value.toLowerCase()===e.toLowerCase()},getQuery:function(t){var n,o=this.options.delimiter;return o?(n=t.split(o),e.trim(n[n.length-1])):t},getSuggestionsLocal:function(t){var n,o=this,i=o.options,s=t.toLowerCase(),a=i.lookupFilter,u=parseInt(i.lookupLimit,10);return n={suggestions:e.grep(i.lookup,function(e){return a(e,t,s)})},u&&n.suggestions.length>u&&(n.suggestions=n.suggestions.slice(0,u)),n},getSuggestions:function(t){var n,o,i,s,a=this,u=a.options,r=u.serviceUrl;if(u.params[u.paramName]=t,u.onSearchStart.call(a.element,u.params)!==!1){if(o=u.ignoreParams?null:u.params,e.isFunction(u.lookup))return void u.lookup(t,function(e){a.suggestions=e.suggestions,a.suggest(),u.onSearchComplete.call(a.element,t,e.suggestions)});a.isLocal?n=a.getSuggestionsLocal(t):(e.isFunction(r)&&(r=r.call(a.element,t)),i=r+"?"+e.param(o||{}),n=a.cachedResponse[i]),n&&e.isArray(n.suggestions)?(a.suggestions=n.suggestions,a.suggest(),u.onSearchComplete.call(a.element,t,n.suggestions)):a.isBadQuery(t)?u.onSearchComplete.call(a.element,t,[]):(a.abortAjax(),s={url:r,data:o,type:u.type,dataType:u.dataType},e.extend(s,u.ajaxSettings),a.currentRequest=e.ajax(s).done(function(e){var n;a.currentRequest=null,n=u.transformResult(e,t),a.processResponse(n,t,i),u.onSearchComplete.call(a.element,t,n.suggestions)}).fail(function(e,n,o){u.onSearchError.call(a.element,t,e,n,o)}))}},isBadQuery:function(e){if(!this.options.preventBadQueries)return!1;for(var t=this.badQueries,n=t.length;n--;)if(0===e.indexOf(t[n]))return!0;return!1},hide:function(){var t=this,n=e(t.suggestionsContainer);e.isFunction(t.options.onHide)&&t.visible&&t.options.onHide.call(t.element,n),t.visible=!1,t.selectedIndex=-1,clearTimeout(t.onChangeTimeout),e(t.suggestionsContainer).hide(),t.signalHint(null)},suggest:function(){if(!this.suggestions.length)return void(this.options.showNoSuggestionNotice?this.noSuggestions():this.hide());var t,n=this,o=n.options,i=o.groupBy,s=o.formatResult,a=n.getQuery(n.currentValue),u=n.classes.suggestion,r=n.classes.selected,l=e(n.suggestionsContainer),c=e(n.noSuggestionsContainer),g=o.beforeRender,d="",p=function(e,n){var s=e.data[i];return t===s?"":(t=s,o.formatGroup(e,t))};return o.triggerSelectOnValidInput&&n.isExactMatch(a)?void n.select(0):(e.each(n.suggestions,function(e,t){i&&(d+=p(t,a,e)),d+='<div class="'+u+'" data-index="'+e+'">'+s(t,a,e)+"</div>"}),this.adjustContainerWidth(),c.detach(),l.html(d),e.isFunction(g)&&g.call(n.element,l,n.suggestions),n.fixPosition(),l.show(),o.autoSelectFirst&&(n.selectedIndex=0,l.scrollTop(0),l.children("."+u).first().addClass(r)),n.visible=!0,void n.findBestHint())},noSuggestions:function(){var t=this,n=t.options.beforeRender,o=e(t.suggestionsContainer),i=e(t.noSuggestionsContainer);this.adjustContainerWidth(),i.detach(),o.empty(),o.append(i),e.isFunction(n)&&n.call(t.element,o,t.suggestions),t.fixPosition(),o.show(),t.visible=!0},adjustContainerWidth:function(){var t,n=this,o=n.options,i=e(n.suggestionsContainer);"auto"===o.width?(t=n.el.outerWidth(),i.css("width",t>0?t:300)):"flex"===o.width&&i.css("width","")},findBestHint:function(){var t=this,n=t.el.val().toLowerCase(),o=null;n&&(e.each(t.suggestions,function(e,t){var i=0===t.value.toLowerCase().indexOf(n);return i&&(o=t),!i}),t.signalHint(o))},signalHint:function(t){var n="",o=this;t&&(n=o.currentValue+t.value.substr(o.currentValue.length)),o.hintValue!==n&&(o.hintValue=n,o.hint=t,(this.options.onHint||e.noop)(n))},verifySuggestionsFormat:function(t){return t.length&&"string"==typeof t[0]?e.map(t,function(e){return{value:e,data:null}}):t},validateOrientation:function(t,n){return t=e.trim(t||"").toLowerCase(),-1===e.inArray(t,["auto","bottom","top"])&&(t=n),t},processResponse:function(e,t,n){var o=this,i=o.options;e.suggestions=o.verifySuggestionsFormat(e.suggestions),i.noCache||(o.cachedResponse[n]=e,i.preventBadQueries&&!e.suggestions.length&&o.badQueries.push(t)),t===o.getQuery(o.currentValue)&&(o.suggestions=e.suggestions,o.suggest())},activate:function(t){var n,o=this,i=o.classes.selected,s=e(o.suggestionsContainer),a=s.find("."+o.classes.suggestion);return s.find("."+i).removeClass(i),o.selectedIndex=t,-1!==o.selectedIndex&&a.length>o.selectedIndex?(n=a.get(o.selectedIndex),e(n).addClass(i),n):null},selectHint:function(){var t=this,n=e.inArray(t.hint,t.suggestions);t.select(n)},select:function(e){var t=this;t.hide(),t.onSelect(e)},moveUp:function(){var t=this;if(-1!==t.selectedIndex)return 0===t.selectedIndex?(e(t.suggestionsContainer).children().first().removeClass(t.classes.selected),t.selectedIndex=-1,t.el.val(t.currentValue),void t.findBestHint()):void t.adjustScroll(t.selectedIndex-1)},moveDown:function(){var e=this;e.selectedIndex!==e.suggestions.length-1&&e.adjustScroll(e.selectedIndex+1)},adjustScroll:function(t){var n=this,o=n.activate(t);if(o){var i,s,a,u=e(o).outerHeight();i=o.offsetTop,s=e(n.suggestionsContainer).scrollTop(),a=s+n.options.maxHeight-u,s>i?e(n.suggestionsContainer).scrollTop(i):i>a&&e(n.suggestionsContainer).scrollTop(i-n.options.maxHeight+u),n.options.preserveInput||n.el.val(n.getValue(n.suggestions[t].value)),n.signalHint(null)}},onSelect:function(t){var n=this,o=n.options.onSelect,i=n.suggestions[t];n.currentValue=n.getValue(i.value),n.currentValue===n.el.val()||n.options.preserveInput||n.el.val(n.currentValue),n.signalHint(null),n.suggestions=[],n.selection=i,e.isFunction(o)&&o.call(n.element,i)},getValue:function(e){var t,n,o=this,i=o.options.delimiter;return i?(t=o.currentValue,n=t.split(i),1===n.length?e:t.substr(0,t.length-n[n.length-1].length)+e):e},dispose:function(){var t=this;t.el.off(".autocomplete").removeData("autocomplete"),e(window).off("resize.autocomplete",t.fixPositionCapture),e(t.suggestionsContainer).remove()}},e.fn.devbridgeAutocomplete=function(n,o){var i="autocomplete";return arguments.length?this.each(function(){var s=e(this),a=s.data(i);"string"==typeof n?a&&"function"==typeof a[n]&&a[n](o):(a&&a.dispose&&a.dispose(),a=new t(this,n),s.data(i,a))}):this.first().data(i)},e.fn.autocomplete||(e.fn.autocomplete=e.fn.devbridgeAutocomplete)});
105/* End */
106;
107; /* Start:"a:4:{s:4:"full";s:88:"/bitrix/templates/aspro-allcorp3heat/js/jquery.mobile.custom.touch.min.js?16860349817743";s:6:"source";s:73:"/bitrix/templates/aspro-allcorp3heat/js/jquery.mobile.custom.touch.min.js";s:3:"min";s:73:"/bitrix/templates/aspro-allcorp3heat/js/jquery.mobile.custom.touch.min.js";s:3:"map";s:77:"/bitrix/templates/aspro-allcorp3heat/js/jquery.mobile.custom.touch.min.js.map";}"*/
108/*! jQuery Mobile v1.4.5 | Copyright 2010, 2014 jQuery Foundation, Inc. | jquery.org/license */
109!function(e,t,n){"function"==typeof define&&define.amd?define(["jquery"],(function(r){return n(r,e,t),r.mobile})):n(e.jQuery,e,t)}(this,document,(function(e,t,n,r){(function(e,t,n,r){function T(e){for(;e&&void 0!==e.originalEvent;)e=e.originalEvent;return e}function N(t,n){var i=t.type,s,o,a,l,c,h,p,d,v;if((t=e.Event(t)).type=n,s=t.originalEvent,o=e.event.props,i.search(/^(mouse|click)/)>-1&&(o=f),s)for(p=o.length;p;)t[l=o[--p]]=s[l];if(i.search(/mouse(down|up)|click/)>-1&&!t.which&&(t.which=1),-1!==i.search(/^touch/)&&(i=(a=T(s)).touches,c=a.changedTouches,h=i&&i.length?i[0]:c&&c.length?c[0]:r))for(d=0,v=u.length;d<v;d++)t[l=u[d]]=h[l];return t}function C(t){for(var n={},r,s;t;){for(s in r=e.data(t,i))r[s]&&(n[s]=n.hasVirtualBinding=!0);t=t.parentNode}return n}function k(t,n){for(var r;t;){if((r=e.data(t,i))&&(!n||r[n]))return t;t=t.parentNode}return null}function L(){g=!1}function A(){g=!0}function O(){E=0,v.length=0,m=!1,A()}function M(){L()}function _(){D(),c=setTimeout((function(){c=0,O()}),e.vmouse.resetTimerDuration)}function D(){c&&(clearTimeout(c),c=0)}function P(t,n,r){var i;return(r&&r[t]||!r&&k(n.target,t))&&(i=N(n,t),e(n.target).trigger(i)),i}function H(t){var n=e.data(t.target,s),r;!m&&(!E||E!==n)&&((r=P("v"+t.type,t))&&(r.isDefaultPrevented()&&t.preventDefault(),r.isPropagationStopped()&&t.stopPropagation(),r.isImmediatePropagationStopped()&&t.stopImmediatePropagation()))}function B(t){var n=T(t).touches,r,i,o;n&&1===n.length&&((i=C(r=t.target)).hasVirtualBinding&&(E=w++,e.data(r,s,E),D(),M(),d=!1,o=T(t).touches[0],h=o.pageX,p=o.pageY,P("vmouseover",t,i),P("vmousedown",t,i)))}
109function j(e){g||(d||P("vmousecancel",e,C(e.target)),d=!0,_())}function F(t){if(!g){var n=T(t).touches[0],r=d,i=e.vmouse.moveDistanceThreshold,s=C(t.target);(d=d||Math.abs(n.pageX-h)>i||Math.abs(n.pageY-p)>i)&&!r&&P("vmousecancel",t,s),P("vmousemove",t,s),_()}}function I(e){if(!g){A();var t=C(e.target),n,r;P("vmouseup",e,t),d||(n=P("vclick",e,t))&&n.isDefaultPrevented()&&(r=T(e).changedTouches[0],v.push({touchID:E,x:r.clientX,y:r.clientY}),m=!0),P("vmouseout",e,t),d=!1,_()}}function q(t){var n=e.data(t,i),r;if(n)for(r in n)if(n[r])return!0;return!1}function R(){}function U(t){var n=t.substr(1);return{setup:function(){var r;q(this)||e.data(this,i,{}),e.data(this,i)[t]=!0,l[t]=(l[t]||0)+1,1===l[t]&&b.bind(n,H),e(this).bind(n,R),y&&(l.touchstart=(l.touchstart||0)+1,1===l.touchstart&&b.bind("touchstart",B).bind("touchend",I).bind("touchmove",F).bind("scroll",j))},teardown:function(){--l[t],l[t]||b.unbind(n,H),y&&(--l.touchstart,l.touchstart||b.unbind("touchstart",B).unbind("touchmove",F).unbind("touchend",I).unbind("scroll",j));var r=e(this),s=e.data(this,i);s&&(s[t]=!1),r.unbind(n,R),q(this)||r.removeData(i)}}}var i="virtualMouseBindings",s="virtualTouchID",o="vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split(" "),u="clientX clientY pageX pageY screenX screenY".split(" "),a=e.event.mouseHooks?e.event.mouseHooks.props:[],l={},c=0,h=0,p=0,d=!1,v=[],m=!1,g=!1,y="addEventListener"in n,b=e(n),w=1,E=0,S,x;for(e.vmouse={moveDistanceThreshold:10,clickDistanceThreshold:10,resetTimerDuration:1500},x=0;x<o.length;x++)e.event.special[o[x]]=U(o[x]);y&&n.addEventListener("click",(function(t){var n=v.length,r=t.target,i,o,u,a,f,l;if(n)for(i=t.clientX,o=t.clientY,S=e.vmouse.clickDistanceThreshold,u=r;u;){for(a=0;a<n;a++)if(f=v[a],l=0,u===r&&Math.abs(f.x-i)<S&&Math.abs(f.y-o)<S||e.data(u,s)===f.touchID)return t.preventDefault(),void t.stopPropagation();u=u.parentNode}}),!0)})(e,t,n),function(e){e.mobile={}}(e),function(e,t){var r={touch:"ontouchend"in n};e.mobile.support=e.mobile.support||{},e.extend(e.support,r),e.extend(e.mobile.support,r)}(e),function(e,t,r){function l(t,n,i,s){var o=i.type;i.type=n,s?e.event.trigger(i,r,t):e.event.dispatch.call(t,i),i.type=o}var i=e(n),s=e.mobile.support.touch,o="touchmove scroll",u=s?"touchstart":"mousedown",a=s?"touchend":"mouseup",f=s?"touchmove":"mousemove";e.each("touchstart touchmove touchend tap taphold swipe swipeleft swiperight scrollstart scrollstop".split(" "),(function(t,n){e.fn[n]=function(e){return e?this.bind(n,e):this.trigger(n)},e.attrFn&&(e.attrFn[n]=!0)})),e.event.special.scrollstart={enabled:!0,setup:function(){function s(e,n){l(t,(r=n)?"scrollstart":"scrollstop",e)}var t=this,n,r,i;e(t).bind(o,(function(t){e.event.special.scrollstart.enabled&&(r||s(t,!0),clearTimeout(i),i=setTimeout((function(){s(t,!1)}),50))}))},teardown:function(){e(this).unbind(o)}},e.event.special.tap={tapholdThreshold:750,emitTapOnTaphold:!0,setup:function(){var t=this,n=e(t),r=!1;n.bind("vmousedown",(function(s){function a(){clearTimeout(u)}function f(){a(),n.unbind("vclick",c).unbind("vmouseup",a),i.unbind("vmousecancel",f)}function c(e){f(),r||o!==e.target?r&&e.preventDefault():l(t,"tap",e)}if(r=!1,s.which&&1!==s.which)return!1;var o=s.target,u;n.bind("vmouseup",a).bind("vclick",c),i.bind("vmousecancel",f),u=setTimeout((function(){e.event.special.tap.emitTapOnTaphold||(r=!0),l(t,"taphold",e.Event("taphold",{target:o}))}),e.event.special.tap.tapholdThreshold)}))},teardown:function(){e(this).unbind("vmousedown").unbind("vclick").unbind("vmouseup"),i.unbind("vmousecancel")}},e.event.special.swipe={scrollSupressionThreshold:30,durationThreshold:1e3,horizontalDistanceThreshold:30,verticalDistanceThreshold:30,getLocation:function(e){var n=t.pageXOffset,r=t.pageYOffset,i=e.clientX,s=e.clientY;return 0===e.pageY&&Math.floor(s)>Math.floor(e.pageY)||0===e.pageX&&Math.floor(i)>Math.floor(e.pageX)?(i-=n,s-=r):(s<e.pageY-r||i<e.pageX-n)&&(i=e.pageX-n,s=e.pageY-r),{x:i,y:s}},start:function(t){var n=t.originalEvent.touches?t.originalEvent.touches[0]:t,r=e.event.special.swipe.getLocation(n);return{time:(new Date).getTime(),coords:[r.x,r.y],origin:e(t.target)}},stop:function(t){var n=t.originalEvent.touches?t.originalEvent.touches[0]:t,r=e.event.special.swipe.getLocation(n);return{time:(new Date).getTime(),coords:[r.x,r.y]}},handleSwipe:function(t,n,r,i){if(n.time-t.time<e.event.special.swipe.durationThreshold&&Math.abs(t.coords[0]-n.
109coords[0])>e.event.special.swipe.horizontalDistanceThreshold&&Math.abs(t.coords[1]-n.coords[1])<e.event.special.swipe.verticalDistanceThreshold){var s=t.coords[0]>n.coords[0]?"swipeleft":"swiperight";return l(r,"swipe",e.Event("swipe",{target:i,swipestart:t,swipestop:n}),!0),l(r,s,e.Event(s,{target:i,swipestart:t,swipestop:n}),!0),!0}return!1},eventInProgress:!1,setup:function(){var t,n=this,r=e(n),s={};(t=e.data(this,"mobile-events"))||(t={length:0},e.data(this,"mobile-events",t)),t.length++,t.swipe=s,s.start=function(t){if(!e.event.special.swipe.eventInProgress){e.event.special.swipe.eventInProgress=!0;var r,o=e.event.special.swipe.start(t),u=t.target,l=!1;s.move=function(t){o&&!t.isDefaultPrevented()&&(r=e.event.special.swipe.stop(t),l||(l=e.event.special.swipe.handleSwipe(o,r,n,u))&&(e.event.special.swipe.eventInProgress=!1),Math.abs(o.coords[0]-r.coords[0]),e.event.special.swipe.scrollSupressionThreshold)},s.stop=function(){l=!0,e.event.special.swipe.eventInProgress=!1,i.off(f,s.move),s.move=null},i.on(f,s.move).one(a,s.stop)}},r.on(u,s.start)},teardown:function(){var t,n;(t=e.data(this,"mobile-events"))&&(n=t.swipe,delete t.swipe,t.length--,0===t.length&&e.removeData(this,"mobile-events")),n&&(n.start&&e(this).off(u,n.start),n.move&&i.off(f,n.move),n.stop&&i.off(a,n.stop))}},e.each({scrollstop:"scrollstart",taphold:"tap",swipeleft:"swipe.left",swiperight:"swipe.right"},(function(t,n){e.event.special[t]={setup:function(){e(this).bind(n,e.noop)},teardown:function(){e(this).unbind(n)}}}))}(e,this)}));
110/* End */
111;
112; /* Start:"a:4:{s:4:"full";s:86:"/bitrix/templates/aspro-allcorp3heat/js/jquery.mCustomScrollbar.min.js?168603498155533";s:6:"source";s:66:"/bitrix/templates/aspro-allcorp3heat/js/jquery.mCustomScrollbar.js";s:3:"min";s:70:"/bitrix/templates/aspro-allcorp3heat/js/jquery.mCustomScrollbar.min.js";s:3:"map";s:74:"/bitrix/templates/aspro-allcorp3heat/js/jquery.mCustomScrollbar.min.js.map";}"*/
113!function(factory){"function"==typeof define&&define.amd?define(["jquery"],factory):"undefined"!=typeof module&&module.exports?module.exports=factory:factory(jQuery,window,document)}((function($){var init,_rjs,_njs,_dlp,_url;init=function(){var pluginNS="mCustomScrollbar",pluginPfx="mCS",defaultSelector=".mCustomScrollbar",defaults={setTop:0,setLeft:0,axis:"y",scrollbarPosition:"inside",scrollInertia:100,autoDraggerLength:!0,alwaysShowScrollbar:0,snapOffset:0,mouseWheel:{enable:!0,scrollAmount:"auto",axis:"y",deltaFactor:"auto",disableOver:["select","option","keygen","datalist","textarea"]},scrollButtons:{scrollType:"stepless",scrollAmount:"auto"},keyboard:{enable:!0,scrollType:"stepless",scrollAmount:"auto"},contentTouchScroll:25,documentTouchScroll:!0,advanced:{autoScrollOnFocus:"input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']",updateOnContentResize:!0,updateOnImageLoad:"auto",autoUpdateTimeout:60},theme:"light",ignoreTouchIntent:!1,callbacks:{onTotalScrollOffset:0,onTotalScrollBackOffset:0,alwaysTriggerOffsets:!0}},totalInstances=0,liveTimers={},oldIE=window.attachEvent&&!window.addEventListener?1:0,touchActive=!1,touchable,classes=["mCSB_dragger_onDrag","mCSB_scrollTools_onDrag","mCS_img_loaded","mCS_disabled","mCS_destroyed","mCS_no_scrollbar","mCS-autoHide","mCS-dir-rtl","mCS_no_scrollbar_y","mCS_no_scrollbar_x","mCS_y_hidden","mCS_x_hidden","mCSB_draggerContainer","mCSB_buttonUp","mCSB_buttonDown","mCSB_buttonLeft colored_theme_hover_text","mCSB_buttonRight colored_theme_hover_text"],touchOffCustom=!1;methods={init:function(options){var options=$.extend(!0,{},defaults,options),selector=_selector.call(this);if(options.live){var liveSelector=options.liveSelector||this.selector||defaultSelector,$liveSelector=$(liveSelector);if("off"===options.live)return void removeLiveTimers(liveSelector);liveTimers[liveSelector]=setTimeout((function(){$liveSelector.mCustomScrollbar(options),"once"===options.live&&$liveSelector.length&&removeLiveTimers(liveSelector)}),500)}else removeLiveTimers(liveSelector);return options.setWidth=options.set_width?options.set_width:options.setWidth,options.setHeight=options.set_height?options.set_height:options.setHeight,options.axis=options.horizontalScroll?"x":_findAxis(options.axis),options.scrollInertia=options.scrollInertia>0&&options.scrollInertia<17?17:options.scrollInertia,"object"!=typeof options.mouseWheel&&1==options.mouseWheel&&(options.mouseWheel={enable:!0,scrollAmount:"auto",axis:"y",preventDefault:!1,deltaFactor:"auto",normalizeDelta:!1,invert:!1}),options.mouseWheel.scrollAmount=options.mouseWheelPixels?options.mouseWheelPixels:options.mouseWheel.scrollAmount,options.mouseWheel.normalizeDelta=options.advanced.normalizeMouseWheelDelta?options.advanced.normalizeMouseWheelDelta:options.mouseWheel.normalizeDelta,options.scrollButtons.scrollType=_findScrollButtonsType(options.scrollButtons.scrollType),_theme(options),$(selector).each((function(){var $this=$(this);if(!$this.data("mCS")){$this.data("mCS",{idx:++totalInstances,opt:options,scrollRatio:{y:null,x:null},overflowed:null,contentReset:{y:null,x:null},bindEvents:!1,tweenRunning:!1,sequential:{},langDir:$this.css("direction"),cbOffsets:null,trigger:null,poll:{size:{o:0,n:0}
113,img:{o:0,n:0},change:{o:0,n:0}}});var d=$this.data("mCS"),o=d.opt,htmlDataAxis=$this.data("mcs-axis"),htmlDataSbPos=$this.data("mcs-scrollbar-position"),htmlDataTheme=$this.data("mcs-theme");htmlDataAxis&&(o.axis=htmlDataAxis),htmlDataSbPos&&(o.scrollbarPosition=htmlDataSbPos),htmlDataTheme&&(o.theme=htmlDataTheme,_theme(o)),_pluginMarkup.call(this),d&&o.callbacks.onCreate&&"function"==typeof o.callbacks.onCreate&&o.callbacks.onCreate.call(this),$("#mCSB_"+d.idx+"_container img:not(."+classes[2]+")").addClass(classes[2]),methods.update.call(null,$this)}}))},update:function(el,cb){var selector=el||_selector.call(this);return $(selector).each((function(){var $this=$(this);if($this.data("mCS")){var d=$this.data("mCS"),o=d.opt,mCSB_container=$("#mCSB_"+d.idx+"_container"),mCustomScrollBox=$("#mCSB_"+d.idx),mCSB_dragger=[$("#mCSB_"+d.idx+"_dragger_vertical"),$("#mCSB_"+d.idx+"_dragger_horizontal")];if(!mCSB_container.length)return;d.tweenRunning&&_stop($this),cb&&d&&o.callbacks.onBeforeUpdate&&"function"==typeof o.callbacks.onBeforeUpdate&&o.callbacks.onBeforeUpdate.call(this),$this.hasClass(classe
113s[3])&&$this.removeClass(classes[3]),$this.hasClass(classes[4])&&$this.removeClass(classes[4]),mCustomScrollBox.css("max-height","none"),mCustomScrollBox.height()!==$this.height()&&mCustomScrollBox.css("max-height",$this.height()),_expandContentHorizontally.call(this),"y"===o.axis||o.advanced.autoExpandHorizontalScroll||mCSB_container.css("width",_contentWidth(mCSB_container)),d.overflowed=_overflowed.call(this),_scrollbarVisibility.call(this),o.autoDraggerLength&&_setDraggerLength.call(this),_scrollRatio.call(this),_bindEvents.call(this);var to=[Math.abs(mCSB_container[0].offsetTop),Math.abs(mCSB_container[0].offsetLeft)];"x"!==o.axis&&(d.overflowed[0]?mCSB_dragger[0].height()>mCSB_dragger[0].parent().height()?_resetContentPosition.call(this):(_scrollTo($this,to[0].toString(),{dir:"y",dur:0,overwrite:"none"}),d.contentReset.y=null):(_resetContentPosition.call(this),"y"===o.axis?_unbindEvents.call(this):"yx"===o.axis&&d.overflowed[1]&&_scrollTo($this,to[1].toString(),{dir:"x",dur:0,overwrite:"none"}))),"y"!==o.axis&&(d.overflowed[1]?mCSB_dragger[1].width()>mCSB_dragger[1].parent().width()?_resetContentPosition.call(this):(_scrollTo($this,to[1].toString(),{dir:"x",dur:0,overwrite:"none"}),d.contentReset.x=null):(_resetContentPosition.call(this),"x"===o.axis?_unbindEvents.call(this):"yx"===o.axis&&d.overflowed[0]&&_scrollTo($this,to[0].toString(),{dir:"y",dur:0,overwrite:"none"}))),cb&&d&&(2===cb&&o.callbacks.onImageLoad&&"function"==typeof o.callbacks.onImageLoad?o.callbacks.onImageLoad.call(this):3===cb&&o.callbacks.onSelectorChange&&"function"==typeof o.callbacks.onSelectorChange?o.callbacks.onSelectorChange.call(this):o.callbacks.onUpdate&&"function"==typeof o.callbacks.onUpdate&&o.callbacks.onUpdate.call(this)),_autoUpdate.call(this)}}))},scrollTo:function(val,options){if(void 0!==val&&null!=val){var selector=_selector.call(this);return $(selector).each((function(){var $this=$(this);if($this.data("mCS")){var d=$this.data("mCS"),o=d.opt,methodDefaults={trigger:"external",scrollInertia:o.scrollInertia,scrollEasing:"mcsEaseInOut",moveDragger:!1,timeout:60,callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},methodOptions=$.extend(!0,{},methodDefaults,options),to=_arr.call(this,val),dur=methodOptions.scrollInertia>0&&methodOptions.scrollInertia<17?17:methodOptions.scrollInertia;to[0]=_to.call(this,to[0],"y"),to[1]=_to.call(this,to[1],"x"),methodOptions.moveDragger&&(to[0]*=d.scrollRatio.y,to[1]*=d.scrollRatio.x),methodOptions.dur=_isTabHidden()?0:dur,setTimeout((function(){null!==to[0]&&void 0!==to[0]&&"x"!==o.axis&&d.overflowed[0]&&(methodOptions.dir="y",methodOptions.overwrite="all",_scrollTo($this,to[0].toString(),methodOptions)),null!==to[1]&&void 0!==to[1]&&"y"!==o.axis&&d.overflowed[1]&&(methodOptions.dir="x",methodOptions.overwrite="none",_scrollTo($this,to[1].toString(),methodOptions))}),methodOptions.timeout)}}))}},stop:function(){var selector=_selector.call(this);return $(selector).each((function(){var $this=$(this);$this.data("mCS")&&_stop($this)}))},disable:function(r){var selector=_selector.call(this);return $(selector).each((function(){var $this=$(this);if($this.data("mCS")){var d=$this.data("mCS");_autoUpdate.call(this,"remove"),_unbindEvents.call(this),r&&_resetContentPosition.call(this),_scrollbarVisibility.call(this,!0),$this.addClass(classe
vendor: 6,271 bytes, line 113
113s[3])}}))},destroy:function(){var selector=_selector.call(this);return $(selector).each((function(){var $this=$(this);if($this.data("mCS")){var d=$this.data("mCS"),o=d.opt,mCustomScrollBox=$("#mCSB_"+d.idx),mCSB_container=$("#mCSB_"+d.idx+"_container"),scrollbar=$(".mCSB_"+d.idx+"_scrollbar");o.live&&removeLiveTimers(o.liveSelector||$(selector).selector),_autoUpdate.call(this,"remove"),_unbindEvents.call(this),_resetContentPosition.call(this),$this.removeData("mCS"),_delete(this,"mcs"),scrollbar.remove(),mCSB_container.find("img."+classes[2]).removeClass(classes[2]),mCustomScrollBox.replaceWith(mCSB_container.contents()),$this.removeClass(pluginNS+" _mCS_"+d.idx+" "+classes[6]+" "+classes[7]+" "+classes[5]+" "+classes[3]).addClass(classes[4])}}))}},_selector=function(){return"object"!=typeof $(this)||$(this).length<1?defaultSelector:this},_theme=function(obj){var fixedSizeScrollbarThemes=["rounded","rounded-dark","rounded-dots","rounded-dots-dark"],nonExpandedScrollbarThemes=["rounded-dots","rounded-dots-dark","3d","3d-dark","3d-thick","3d-thick-dark","inset","inset-dark","inset-2","inset-2-dark","inset-3","inset-3-dark"],disabledScrollButtonsThemes=["minimal","minimal-dark"],enabledAutoHideScrollbarThemes=["minimal","minimal-dark"],scrollbarPositionOutsideThemes=["minimal","minimal-dark"];obj.autoDraggerLength=!($.inArray(obj.theme,fixedSizeScrollbarThemes)>-1)&&obj.autoDraggerLength,obj.autoExpandScrollbar=!($.inArray(obj.theme,nonExpandedScrollbarThemes)>-1)&&obj.autoExpandScrollbar,obj.scrollButtons.enable=!($.inArray(obj.theme,disabledScrollButtonsThemes)>-1)&&obj.scrollButtons.enable,obj.autoHideScrollbar=$.inArray(obj.theme,enabledAutoHideScrollbarThemes)>-1||obj.autoHideScrollbar,obj.scrollbarPosition=$.inArray(obj.theme,scrollbarPositionOutsideThemes)>-1?"outside":obj.scrollbarPosition},removeLiveTimers=function(selector){liveTimers[selector]&&(clearTimeout(liveTimers[selector]),_delete(liveTimers,selector))},_findAxis=function(val){return"yx"===val||"xy"===val||"auto"===val?"yx":"x"===val||"horizontal"===val?"x":"y"},_findScrollButtonsType=function(val){return"stepped"===val||"pixels"===val||"step"===val||"click"===val?"stepped":"stepless"},_pluginMarkup=function(){var $this=$(this),d=$this.data("mCS"),o=d.opt,expandClass=o.autoExpandScrollbar?" "+classes[1]+"_expand":"",scrollbar=["<div id='mCSB_"+d.idx+"_scrollbar_vertical' class='mCSB_scrollTools mCSB_"+d.idx+"_scrollbar mCS-"+o.theme+" mCSB_scrollTools_vertical"+expandClass+"'><div class='"+classes[12]+"'><div id='mCSB_"+d.idx+"_dragger_vertical' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>","<div id='mCSB_"+d.idx+"_scrollbar_horizontal' class='mCSB_scrollTools mCSB_"+d.idx+"_scrollbar mCS-"+o.theme+" mCSB_scrollTools_horizontal"+expandClass+"'><div class='"+classes[12]+"'><div id='mCSB_"+d.idx+"_dragger_horizontal' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>"],wrapperClass="yx"===o.axis?"mCSB_vertical_horizontal":"x"===o.axis?"mCSB_horizontal":"mCSB_vertical",scrollbars="yx"===o.axis?scrollbar[0]+scrollbar[1]:"x"===o.axis?scrollbar[1]:scrollbar[0],contentWrapper="yx"===o.axis?"<div id='mCSB_"+d.idx+"_container_wrapper' class='mCSB_container_wrapper' />":"",autoHideClass=o.autoHideScrollbar?" "+classes[6]:"",scrollbarDirClass="x"!==o.axis&&"rtl"===d.langDir?" "+classes[7]:"";o.setWidth&&$this.css("width",o.setWidth),o.setHeight&&$this.css("height",o.setHeight),o.setLeft="y"!==o.axis&&"rtl"===d.langDir?"989999px":o.setLeft,$this.addClass(pluginNS+" _mCS_"+d.idx+autoHideClass+scrollbarDirClass).wrapInner("<div id='mCSB_"+d.idx+"' class='mCustomScrollBox mCS-"+o.theme+" "+wrapperClass+"'><div id='mCSB_"+d.idx+"_container' class='mCSB_container' style='position:relative; top:"+o.setTop+"; left:"+o.setLeft+";' dir='"+d.langDir+"' /></div>");var mCustomScrollBox=$("#mCSB_"+d.idx),mCSB_container=$("#mCSB_"+d.idx+"_container");"y"===o.axis||o.advanced.autoExpandHorizontalScroll||mCSB_container.css("width",_contentWidth(mCSB_container)),"outside"===o.scrollbarPosition?("static"===$this.css("position")&&$this.css("position","relative"),$this.css("overflow","visible"),mCustomScrollBox.addClass("mCSB_outside").after(scrollbars)):(mCustomScrollBox.addClass("mCSB_inside").append(scrollbars),mCSB_container.wrap(contentWrapper)),_scrollButtons.call(this);var mCSB_dragger=[$("#mCSB_"+d.idx+"_dragger_vertical"),$("#mCSB_"+d.idx+"_dragger_horizontal")];mCSB_dragger[0].css("min-height",mCSB_dragger[0].height()),mCSB_dragger[1].css("min-width",mCSB_dragger[1].width())},_contentWidth=function(el){var val=[el[0].scrollWidth,Math.max.apply(Math,el.children().map((function(){return $(this).outerWidth(!0)})).get())],w=el.parent().width();return val[0]>w?val[0]:val[1]>w?val[1]:"100%"},_expandContentHorizontally=function(){var $this,d=$(this).data("mCS"),o=d.opt,mCSB_container=$("#mCSB_"+d.idx+"_container");if(o.advanced.autoExpandHorizontalScroll&&"y"!==o.axis){mCSB_container.css({width:"auto","min-width":0,"overflow-x":"scroll"});var w=Math.ceil(mCSB_container[0].scrollWidth);3===o.advanced.autoExpandHorizontalScroll||2!==o.advanced.autoExpandHorizontalScroll&&w>mCSB_container.parent().width()?mCSB_container.css({width:w,"min-width":"100%","overflow-x":"inherit"}):mCSB_container.css({"overflow-x":"inherit",position:"absolute"}).wrap("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />").css({width:Math.ceil(mCSB_container[0].getBoundingClientRect().right+.4)-Math.floor(mCSB_container[0].getBoundingClientRect().left),"min-width":"100%",position:"relative"}).unwrap()}},_scrollButtons=function(){var $this,d=$(this).data("mCS"),o=d.opt,mCSB_scrollTools=$(".mCSB_"+d.idx+"_scrollbar:first"),tabindex=_isNumeric(o.scrollButtons.tabindex)?"tabindex='"+o.scrollButtons.tabindex+"'":"",btnHTML=["<a href='#' class='"+classes[13]+"' "+tabindex+" />","<a href='#' class='"+classes[14]+"' "+tabindex+" />","<a href='#' class='"+classes[15]+"' "+tabindex+" ><i class='svg right'><svg width='12' height='6.969' viewBox='0 0 12 6.969'><path class='cls-1' d='M361.691,401.707a1,1,0,0,1-1.414,0L356,397.416l-4.306,4.291a1,1,0,0,1-1.414,0,0.99
1131,0.991,0,0,1,0-1.406l5.016-5a1.006,1.006,0,0,1,1.415,0l4.984,5A0.989,0.989,0,0,1,361.691,401.707Z' transform='translate(-350 -395.031)'></path></svg></i></a>","<a href='#' class='"+classes[16]+"' "+tabindex+" ><i class='svg right'><svg width='12' height='6.969' viewBox='0 0 12 6.969'><path class='cls-1' d='M361.691,401.707a1,1,0,0,1-1.414,0L356,397.416l-4.306,4.291a1,1,0,0,1-1.414,0,0.991,0.991,0,0,1,0-1.406l5.016-5a1.006,1.006,0,0,1,1.415,0l4.984,5A0.989,0.989,0,0,1,361.691,401.707Z' transform='translate(-350 -395.031)'></path></svg></i></a>"],btn=["x"===o.axis?btnHTML[2]:btnHTML[0],"x"===o.axis?btnHTML[3]:btnHTML[1],btnHTML[2],btnHTML[3]];o.scrollButtons.enable&&mCSB_scrollTools.prepend(btn[0]).append(btn[1]).next(".mCSB_scrollTools").prepend(btn[2]).append(btn[3])},_setDraggerLength=function(){var $this,d=$(this).data("mCS"),mCustomScrollBox=$("#mCSB_"+d.idx),mCSB_container=$("#mCSB_"+d.idx+"_container"),mCSB_dragger=[$("#mCSB_"+d.idx+"_dragger_vertical"),$("#mCSB_"+d.idx+"_dragger_horizontal")],ratio=[mCustomScrollBox.height()/mCSB_container.outerHeight(!1),mCustomScrollBox.width()/mCSB_container.outerWidth(!1)],l=[parseInt(mCSB_dragger[0].css("min-height")),Math.round(ratio[0]*mCSB_dragger[0].parent().height()),parseInt(mCSB_dragger[1].css("min-width")),Math.round(ratio[1]*mCSB_dragger[1].parent().width())],h=oldIE&&l[1]<l[0]?l[0]:l[1],w=oldIE&&l[3]<l[2]?l[2]:l[3];mCSB_dragger[0].css({height:h,"max-height":mCSB_dragger[0].parent().height()-10}).find(".mCSB_dragger_bar").css({"line-height":l[0]+"px"}),mCSB_dragger[1].css({width:w,"max-width":mCSB_dragger[1].parent().width()-10})},_scrollRatio=function(){var $this,d=$(this).data("mCS"),mCustomScrollBox=$("#mCSB_"+d.idx),mCSB_container=$("#mCSB_"+d.idx+"_container"),mCSB_dragger=[$("#mCSB_"+d.idx+"_dragger_vertical"),$("#mCSB_"+d.idx+"_dragger_horizontal")],scrollAmount=[mCSB_container.outerHeight(!1)-mCustomScrollBox.height(),mCSB_container.outerWidth(!1)-mCustomScrollBox.width()],ratio=[scrollAmount[0]/(mCSB_dragger[0].parent().height()-mCSB_dragger[0].height()),scrollAmount[1]/(mCSB_dragger[1].parent().width()-mCSB_dragger[1].width())];d.scrollRatio={y:ratio[0],x:ratio[1]}},_onDragClasses=function(el,action,xpnd){var expandClass=xpnd?classes[0]+"_expanded":"",scrollbar=el.closest(".mCSB_scrollTools");"active"===action?(el.toggleClass(classes[0]+" "+expandClass),scrollbar.toggleClass(classes[1]),el[0]._draggable=el[0]._draggable?0:1):el[0]._draggable||("hide"===action?(el.removeClass(classes[0]),scrollbar.removeClass(classes[1])):(el.addClass(classe
vendor: 3,530 bytes, line 113
113s[0]),scrollbar.addClass(classes[1])))},_overflowed=function(){var $this,d=$(this).data("mCS"),mCustomScrollBox=$("#mCSB_"+d.idx),mCSB_container=$("#mCSB_"+d.idx+"_container"),contentHeight=null==d.overflowed?mCSB_container.height():mCSB_container.outerHeight(!1),contentWidth=null==d.overflowed?mCSB_container.width():mCSB_container.outerWidth(!1),h=mCSB_container[0].scrollHeight,w=mCSB_container[0].scrollWidth;return h>contentHeight&&(contentHeight=h),w>contentWidth&&(contentWidth=w),[contentHeight>mCustomScrollBox.height(),contentWidth>mCustomScrollBox.width()]},_resetContentPosition=function(){var $this=$(this),d=$this.data("mCS"),o=d.opt,mCustomScrollBox=$("#mCSB_"+d.idx),mCSB_container=$("#mCSB_"+d.idx+"_container"),mCSB_dragger=[$("#mCSB_"+d.idx+"_dragger_vertical"),$("#mCSB_"+d.idx+"_dragger_horizontal")];if(_stop($this),("x"!==o.axis&&!d.overflowed[0]||"y"===o.axis&&d.overflowed[0])&&(mCSB_dragger[0].add(mCSB_container).css("top",0),_scrollTo($this,"_resetY")),"y"!==o.axis&&!d.overflowed[1]||"x"===o.axis&&d.overflowed[1]){var cx=dx=0;"rtl"===d.langDir&&(cx=mCustomScrollBox.width()-mCSB_container.outerWidth(!1),dx=Math.abs(cx/d.scrollRatio.x)),mCSB_container.css("left",cx),mCSB_dragger[1].css("left",dx),_scrollTo($this,"_resetX")}},_bindEvents=function(){var $this=$(this),d=$this.data("mCS"),o=d.opt;if(!d.bindEvents){if(_draggable.call(this),o.contentTouchScroll&&_contentDraggable.call(this),_selectable.call(this),o.mouseWheel.enable){function _mwt(){mousewheelTimeout=setTimeout((function(){$.event.special.mousewheel?(clearTimeout(mousewheelTimeout),_mousewheel.call($this[0])):_mwt()}),100)}var mousewheelTimeout;_mwt()}_draggerRail.call(this),_wrapperScroll.call(this),o.advanced.autoScrollOnFocus&&_focus.call(this),o.scrollButtons.enable&&_buttons.call(this),o.keyboard.enable&&_keyboard.call(this),d.bindEvents=!0}},_unbindEvents=function(){var $this=$(this),d=$this.data("mCS"),o=d.opt,namespace="mCS_"+d.idx,sb=".mCSB_"+d.idx+"_scrollbar",sel=$("#mCSB_"+d.idx+",#mCSB_"+d.idx+"_container,#mCSB_"+d.idx+"_container_wrapper,"+sb+" ."+classes[12]+",#mCSB_"+d.idx+"_dragger_vertical,#mCSB_"+d.idx+"_dragger_horizontal,"+sb+">a"),mCSB_container=$("#mCSB_"+d.idx+"_container");o.advanced.releaseDraggableSelectors&&sel.add($(o.advanced.releaseDraggableSelectors)),o.advanced.extraDraggableSelectors&&sel.add($(o.advanced.extraDraggableSelectors)),d.bindEvents&&($(document).add($(!_canAccessIFrame()||top.document)).unbind("."+namespace),sel.each((function(){$(this).unbind("."+namespace)})),clearTimeout($this[0]._focusTimeout),_delete($this[0],"_focusTimeout"),clearTimeout(d.sequential.step),_delete(d.sequential,"step"),clearTimeout(mCSB_container[0].onCompleteTimeout),_delete(mCSB_container[0],"onCompleteTimeout"),d.bindEvents=!1)},_scrollbarVisibility=function(disabled){var $this=$(this),d=$this.data("mCS"),o=d.opt,contentWrapper=$("#mCSB_"+d.idx+"_container_wrapper"),content=contentWrapper.length?contentWrapper:$("#mCSB_"+d.idx+"_container"),scrollbar=[$("#mCSB_"+d.idx+"_scrollbar_vertical"),$("#mCSB_"+d.idx+"_scrollbar_horizontal")],mCSB_dragger=[scrollbar[0].find(".mCSB_dragger"),scrollbar[1].find(".mCSB_dragger")];"x"!==o.axis&&(d.overflowed[0]&&!disabled?(scrollbar[0].add(mCSB_dragger[0]).add(scrollbar[0].children("a")).css("display","block"),content.removeClass(classes[8]+" "+classes[10])):(o.alwaysShowScrollbar?(2!==o.alwaysShowScrollbar&&mCSB_dragger[0].css("display","none"),content.removeClass(classes[10])):(scrollbar[0].css("display","none"),content.addClass(classe
113s[10])),content.addClass(classes[8]))),"y"!==o.axis&&(d.overflowed[1]&&!disabled?(scrollbar[1].add(mCSB_dragger[1]).add(scrollbar[1].children("a")).css("display","block"),content.removeClass(classes[9]+" "+classes[11])):(o.alwaysShowScrollbar?(2!==o.alwaysShowScrollbar&&mCSB_dragger[1].css("display","none"),content.removeClass(classes[11])):(scrollbar[1].css("display","none"),content.addClass(classes[11])),content.addClass(classes[9]))),d.overflowed[0]||d.overflowed[1]?$this.removeClass(classes[5]):$this.addClass(classes[5])},_coordinates=function(e){var t=e.type,o=e.target.ownerDocument!==document&&null!==frameElement?[$(frameElement).offset().top,$(frameElement).offset().left]:null,io=_canAccessIFrame()&&e.target.ownerDocument!==top.document&&null!==frameElement?[$(e.view.frameElement).offset().top,$(e.view.frameElement).offset().left]:[0,0];switch(t){case"pointerdown":case"MSPointerDown":case"pointermove":case"MSPointerMove":case"pointerup":case"MSPointerUp":return o?[e.originalEvent.pageY-o[0]+io[0],e.originalEvent.pageX-o[1]+io[1],!1]:[e.originalEvent.pageY,e.originalEvent.pageX,!1];case"touchstart":case"touchmove":case"touchend":var touch=e.originalEvent.touches[0]||e.originalEvent.changedTouches[0],touches=e.originalEvent.touches.length||e.originalEvent.changedTouches.length;return e.target.ownerDocument!==document?[touch.screenY,touch.screenX,touches>1]:[touch.pageY,touch.pageX,touches>1];default:return o?[e.pageY-o[0]+io[0],e.pageX-o[1]+io[1],!1]:[e.pageY,e.pageX,!1]}},_draggable=function(){var $this=$(this),d=$this.data("mCS"),o=d.opt,namespace="mCS_"+d.idx,draggerId=["mCSB_"+d.idx+"_dragger_vertical","mCSB_"+d.idx+"_dragger_horizontal"],mCSB_container=$("#mCSB_"+d.idx+"_container"),mCSB_dragger=$("#"+draggerId[0]+",#"+draggerId[1]),draggable,dragY,dragX,rds=o.advanced.releaseDraggableSelectors?mCSB_dragger.add($(o.advanced.releaseDraggableSelectors)):mCSB_dragger,eds=o.advanced.extraDraggableSelectors?$(!_canAccessIFrame()||top.document).add($(o.advanced.extraDraggableSelectors)):$(!_canAccessIFrame()||top.document);function _drag(dragY,dragX,y,x){if(mCSB_container[0].idleTimer=o.scrollInertia<233?250:0,draggable.attr("id")===draggerId[1])var dir="x",to=(draggable[0].offsetLeft-dragX+x)*d.scrollRatio.x;else var dir="y",to=(draggable[0].offsetTop-dragY+y)*d.scrollRatio.y;_scrollTo($this,to.toString(),{dir:dir,drag:!0})}mCSB_dragger.bind("contextmenu."+namespace,(function(e){e.preventDefault()})).bind("mousedown."+namespace+" touchstart."+namespace+" pointerdown."+namespace+" MSPointerDown."+namespace,(function(e){if(e.stopImmediatePropagation(),e.preventDefault(),_mouseBtnLeft(e)){touchActive=!0,oldIE&&(document.onselectstart=function(){return!1}),_iframe.call(mCSB_container,!1),_stop($this);var offset=(draggable=$(this)).offset(),y=_coordinates(e)[0]-offset.top,x=_coordinates(e)[1]-offset.left,h=draggable.height()+offset.top,w=draggable.width()+offset.left;y<h&&y>0&&x<w&&x>0&&(dragY=y,dragX=x),_onDragClasses(draggable,"active",o.autoExpandScrollbar)}})).bind("touchmove."+namespace,(function(e){e.stopImmediatePropagation(),e.preventDefault();var offset=draggable.offset(),y=_coordinates(e)[0]-offset.top,x=_coordinates(e)[1]-offset.left;_drag(dragY,dragX,y,x)})),$(document).add(eds).bind("mousemove."+namespace+" pointermove."+namespace+" MSPointerMove."+namespace,(function(e){if(draggable){var offset=draggable.offset(),y=_coordinates(e)[0]-offset.top,x=_coordinates(e)[1]-offset.left;if(dragY===y&&dragX===x)return;_drag(dragY,dragX,y,x)}})).add(rds).bind("mouseup."+namespace+" touchend."+namespace+" pointerup."+namespace+" MSPointerUp."+namespace,(function(e){draggable&&(_onDragClasses(draggable,"active",o.autoExpandScrollbar),draggable=null),touchActive=!1,oldIE&&(document.onselectstart=null),_iframe.call(mCSB_container,!0)}))},_contentDraggable=function(){var $this=$(this),d=$this.data("mCS"),o=d.opt,namespace="mCS_"+d.idx,mCustomScrollBox=$("#mCSB_"+d.idx),mCSB_container=$("#mCSB_"+d.idx+"_container"),mCSB_dragger=[$("#mCSB_"+d.idx+"_dragger_vertical"),$("#mCSB_"+d.idx+"_dragger_horizontal")],draggable,dragY,dragX,touchStartY,touchStartX,touchMoveY=[],touchMoveX=[],startTime,runningTime,endTime,distance,speed,amount,durA=0,durB,overwrite="yx"===o.axis?"
113none":"all",touchIntent=[],touchDrag,docDrag,iframe=mCSB_container.find("iframe"),events=["touchstart."+namespace+" pointerdown."+namespace+" MSPointerDown."+namespace,"touchmove."+namespace+" pointermove."+namespace+" MSPointerMove."+namespace,"touchend."+namespace+" pointerup."+namespace+" MSPointerUp."+namespace],touchAction=void 0!==document.body.style.touchAction&&""!==document.body.style.touchAction;function _onTouchstart(e){if(!_pointerTouch(e)||touchActive||_coordinates(e)[2])touchable=0;else{if($(e.target).closest(".bx_ui_slider_track").length)return touchOffCustom=!0,void(touchable=0);touchOffCustom=!1,touchable=1,touchDrag=0,docDrag=0,draggable=1,$this.removeClass("mCS_touch_action");var offset=mCSB_container.offset();dragY=_coordinates(e)[0]-offset.top,dragX=_coordinates(e)[1]-offset.left,touchIntent=[_coordinates(e)[0],_coordinates(e)[1]]}}function _onTouchmove(e){if(_pointerTouch(e)&&!touchActive&&!_coordinates(e)[2])if(touchOffCustom)touchable=0;else if(o.documentTouchScroll||e.preventDefault(),$(e.target).closest(".owl-carousel").length||e.stopImmediatePropagation(),(!docDrag||touchDrag)&&draggable){runningTime=_getTime();var offset=mCustomScrollBox.offset(),y=_coordinates(e)[0]-offset.top,x=_coordinates(e)[1]-offset.left,easing="mcsLinearOut";if(touchMoveY.push(y),touchMoveX.push(x),touchIntent[2]=Math.abs(_coordinates(e)[0]-touchIntent[0]),touchIntent[3]=Math.abs(_coordinates(e)[1]-touchIntent[1]),d.overflowed[0])var limit=mCSB_dragger[0].parent().height()-mCSB_dragger[0].height(),prevent=dragY-y>0&&y-dragY>-limit*d.scrollRatio.y&&(2*touchIntent[3]<touchIntent[2]||o.ignoreTouchIntent||"yx"===o.axis);if(d.overflowed[1])var limitX=mCSB_dragger[1].parent().width()-mCSB_dragger[1].width(),preventX=dragX-x>0&&x-dragX>-limitX*d.scrollRatio.x&&(2*touchIntent[2]<touchIntent[3]||o.ignoreTouchIntent||"yx"===o.axis);prevent||preventX?(touchAction||e.preventDefault(),touchDrag=1):(o.ignoreTouchIntent||(docDrag=1),$this.addClass("mCS_touch_action")),touchAction&&e.preventDefault(),amount="yx"===o.axis?[dragY-y,dragX-x]:"x"===o.axis?[null,dragX-x]:[dragY-y,null],mCSB_container[0].idleTimer=250,d.overflowed[0]&&_drag(amount[0],0,easing,"y","all",!0),d.overflowed[1]&&_drag(amount[1],0,easing,"x",overwrite,!0)}}function _onTouchstart2(e){if(!_pointerTouch(e)||touchActive||_coordinates(e)[2])touchable=0;else{if($(e.target).closest(".bx_ui_slider_track").length)return touchOffCustom=!0,void(touchable=0);touchOffCustom=!1,touchable=1,e.stopImmediatePropagation(),_stop($this),startTime=_getTime();var offset=mCustomScrollBox.offset();touchStartY=_coordinates(e)[0]-offset.top,touchStartX=_coordinates(e)[1]-offset.left,touchMoveY=[],touchMoveX=[]}}function _onTouchend(e){if(_pointerTouch(e)&&!touchActive&&!_coordinates(e)[2]){if($(e.target).closest(".bx_ui_slider_track").length)return touchOffCustom=!1,void(touchable=0);draggable=0,$(e.target).closest(".owl-carousel").length||e.stopImmediatePropagation(),touchDrag=0,docDrag=0,endTime=_getTime();var offset=mCustomScrollBox.offset(),y=_coordinates(e)[0]-offset.top,x=_coordinates(e)[1]-offset.left;if(!(endTime-runningTime>30)){var easing="mcsEaseOut",slow=(speed=1e3/(endTime-startTime))<2.5,diff=slow?[touchMoveY[touchMoveY.length-2],touchMoveX[touchMoveX.length-2]]:[0,0];distance=slow?[y-diff[0],x-diff[1]]:[y-touchStartY,x-touchStartX];var absDistance=[Math.abs(distance[0]),Math.abs(distance[1])];speed=slow?[Math.abs(distance[0]/4),Math.abs(distance[1]/4)]:[speed,speed];var a=[Math.abs(mCSB_container[0].offsetTop)-distance[0]*_m(absDistance[0]/speed[0],speed[0]),Math.abs(mCSB_container[0].offsetLeft)-distance[1]*_m(absDistance[1]/speed[1],speed[1])];amount="yx"===o.axis?[a[0],a[1]]:"x"===o.axis?[null,a[1]]:[a[0],null],durB=[4*absDistance[0]+o.scrollInertia,4*absDistance[1]+o.scrollInertia];var md=parseInt(o.contentTouchScroll)||0;amount[0]=absDistance[0]>md?amount[0]:0,amount[1]=absDistance[1]>md?amount[1]:0,d.overflowed[0]&&_drag(amount[0],durB[0],easing,"y",overwrite,!1),d.overflowed[1]&&_drag(amount[1],durB[1],easing,"x",overwrite,!1)}}}function _m(ds,s){var r=[1.5*s,2*s,s/1.5,s/2];return ds>90?s>4?r[0]:r[3]:ds>60?s>3?r[3]:r[2]:ds>30?s>8?r[1]:s>6?r[0]:s>4?s:r[2]:s>8?s:r[3]}function _drag(amount,dur,easing,dir,overwrite,drag){amount&&_scrollTo($this,amount.toString(),{dur:dur,scrollEasing:easing,dir:dir,overwrite:overwrite,drag:drag})}mCSB_container.bind(events[0],(function(e){_onTouchstart(e)})).bind(events[1],(function(e){_onTouchmove(e)})),mCustomScrollBox.bind(events[0],(function(e){_onTouchstart2(e)})).bind(events[2],(function(e){_onTouchend(e)})),iframe.length&&iframe.each((function(){$(this).bind("load",(function(){_canAccessIFrame(this)&&$(this.contentDocument||this.contentWindow.document).bind(events[0],(function(e){_onTouchstart(e),_onTouchstart2(e)})).bind(events[1],(function(e){_onTouchmove(e)})).bind(events[2],(function(e){_onTouchend(e)}))}))}))},_selectable=function(){var $this=$(this),d=$this.data("mCS"),o=d.opt,seq=d.sequential,namespace="mCS_"+d.idx,mCSB_container=$("#mCSB_"+d.idx+"_container"),wrapper=mCSB_container.parent(),action;function _sel(){return window.getSelection?window.getSelection().toString():document.selection&&"Control"!=document.selection.type?document.selection.createRange().text:0}function _seq(a,c,s){seq.type=s&&action?"stepped":"stepless",seq.scrollAmount=10,_sequentialScroll($this,a,c,"mcsLinearOut",s?60:null)}mCSB_container.bind("mousedown."+namespace,(function(e){touchable||action||(action=1,touchActive=!0)})).add(document).bind("mousemove."+namespace,(function(e){if(!touchable&&action&&_sel()){var offset=mCSB_container.offset(),y=_coordinates(e)[0]-offset.top+mCSB_container[0].offsetTop,x=_coordinates(e)[1]-offset.left+mCSB_container[0].offsetLeft;y>0&&y<wrapper.height()&&x>0&&x<wrapper.width()?seq.step&&_seq("off",null,"stepped"):("x"!==o.axis&&d.overflowed[0]&&(y<0?_seq("on",38):y>wrapper.height()&&_seq("on",40)),"y"!==o.axis&&d.overflowed[1]&&(x<0?_seq("on",37):x>wrapper.width()&&_seq("on",39)))}})).bind("mouseup."+namespace+" dragend."+namespace,(function(e){touchable||(action&&(action=0,_seq("off",null)),touchActive=!1)}))},_mousewheel=function(){if($(this).data("mCS")){var $this=$(this),d=$this.data("mCS"),o=d.opt,namespace="mCS_"+d.idx,mCustomScrollBox=$("#mCSB_"+d.idx),mCSB_dragger=[$("#mCSB_"+d.idx+"_dragger_vertical"),$("#mCSB_"+d.idx+"_dragger_horizontal")],iframe=$("#mCSB_"+d.idx+"_container").find("iframe");iframe.length&&iframe.each((function(){$(this).bind("load",(function(){_canAccessIFrame(this)&&$(this.contentDocument||this.contentWindow.document).bind("mousewheel."+namespace,(function(e,delta){_onMousewheel(e,delta)}))}))})),mCustomScrollBox.bind("mousewheel."+namespace,(function(e,delta){_onMousewheel(e,delta)}))}function _onMousewheel(e,delta){if(_stop($this),!_disableMousewheel($this,e.target)){var deltaFactor="auto"!==o.mouseWheel.deltaFactor?parseInt(o.mouseWheel.deltaFactor):oldIE&&e.deltaFactor<100?100:e.deltaFactor||100,dur=o.scrollInertia;if("x"===o.axis||"x"===o.mouseWheel.axis)var dir="x",px=[Math.round(deltaFactor*d.scrollRatio.x),parseInt(o.mouseWheel.scrollAmount)],amount="auto"!==o.mouseWheel.scrollAmount?px[1]:px[0]>=mCustomScrollBox.width()?.9*mCustomScrollBox.width():px[0],contentPos=Math.abs($("#mCSB_"+d.idx+"_container")[0].offsetLeft),draggerPos=mCSB_dragger[1][0].offsetLeft,limit=mCSB_dragger[1].parent().width()-mCSB_dragger[1].width(),dlt="y"===o.mouseWheel.axis?e.deltaY||delta:e.deltaX;else var dir="y",px=[Math.round(deltaFactor*d.scrollRatio.y),parseInt(o.mouseWheel.scrollAmount)],amount="auto"!==o.mouseWheel.scrollAmount?px[1]:px[0]>=mCustomScrollBox.height()?.9*mCustomScrollBox.height():px[0],contentPos=Math.abs($("#mCSB_"+d.idx+"_container")[0].offsetTop),draggerPos=mCSB_dragger[0][0].offsetTop,limit=mCSB_dragger[0].parent().height()-mCSB_dragger[0].height(),dlt=e.deltaY||delta;"y"===dir&&!d.overflowed[0]||"x"===dir&&!d.overflowed[1]||((o.mouseWheel.invert||e.webkitDirectionInvertedFromDevice)&&(dlt=-dlt),o.mouseWheel.normalizeDelta&&(dlt=dlt<0?-1:1),(dlt>0&&0!==draggerPos||dlt<0&&draggerPos!==limit||o.mouseWheel.preventDefault)&&(e.stopImmediatePropagation(),e.preventDefault()),e.deltaFactor<5&&!o.mouseWheel.normalizeDelta&&(amount=e.deltaFactor,dur=17),_scrollTo($this,(contentPos-dlt*amount).toString(),{dir:dir,dur:dur}))}}},_canAccessIFrameCache=new Object,_canAccessIFrame=function(iframe){var result=!1,cacheKey=!1,html=null;if(void 0===iframe?cacheKey="#empty":void 0!==$(iframe).attr("id")&&(cacheKey=$(iframe).attr("id")),!1!==cacheKey&&void 0!==_canAccessIFrameCache[cacheKey])return _canAccessIFrameCache[cacheKey];if(iframe){try{var doc;html=(doc=iframe.contentDocument||iframe.contentWindow.document).body.innerHTML}catch(err){}result=null!==html}else{try{var doc;html=(doc=top.document).body.innerHTML}catch(err){}result=null!==html}return!1!==cacheKey&&(_canAccessIFrameCache[cacheKey]=result),result},_iframe=function(evt){var el=this.find("iframe");
113if(el.length){var val=evt?"auto":"none";el.css("pointer-events",val)}},_disableMousewheel=function(el,target){var tag=target.nodeName.toLowerCase(),tags=el.data("mCS").opt.mouseWheel.disableOver,focusTags=["select","textarea"];return $.inArray(tag,tags)>-1&&!($.inArray(tag,focusTags)>-1&&!$(target).is(":focus"))},_draggerRail=function(){var $this=$(this),d=$this.data("mCS"),namespace="mCS_"+d.idx,mCSB_container=$("#mCSB_"+d.idx+"_container"),wrapper=mCSB_container.parent(),mCSB_draggerContainer,clickable;$(".mCSB_"+d.idx+"_scrollbar ."+classes[12]).bind("mousedown."+namespace+" touchstart."+namespace+" pointerdown."+namespace+" MSPointerDown."+namespace,(function(e){touchActive=!0,$(e.target).hasClass("mCSB_dragger")||(clickable=1)})).bind("touchend."+namespace+" pointerup."+namespace+" MSPointerUp."+namespace,(function(e){touchActive=!1})).bind("click."+namespace,(function(e){if(clickable&&(clickable=0,$(e.target).hasClass(classes[12])||$(e.target).hasClass("mCSB_draggerRail"))){_stop($this);var el=$(this),mCSB_dragger=el.find(".mCSB_dragger");if(el.parent(".mCSB_scrollTools_horizontal").length>0){if(!d.overflowed[1])return;var dir="x",clickDir=e.pageX>mCSB_dragger.offset().left?-1:1,to=Math.abs(mCSB_container[0].offsetLeft)-clickDir*(.9*wrapper.width())}else{if(!d.overflowed[0])return;var dir="y",clickDir=e.pageY>mCSB_dragger.offset().top?-1:1,to=Math.abs(mCSB_container[0].offsetTop)-clickDir*(.9*wrapper.height())}_scrollTo($this,to.toString(),{dir:dir,scrollEasing:"mcsEaseInOut"})}}))},_focus=function(){var $this=$(this),d=$this.data("mCS"),o=d.opt,namespace="mCS_"+d.idx,mCSB_container=$("#mCSB_"+d.idx+"_container"),wrapper=mCSB_container.parent();mCSB_container.bind("focusin."+namespace,(function(e){var el=$(document.activeElement),nested=mCSB_container.find(".mCustomScrollBox").length,dur=0;el.is(o.advanced.autoScrollOnFocus)&&(_stop($this),clearTimeout($this[0]._focusTimeout),$this[0]._focusTimer=nested?17*nested:0,$this[0]._focusTimeout=setTimeout((function(){var to=[_childPos(el)[0],_childPos(el)[1]],contentPos=[mCSB_container[0].offsetTop,mCSB_container[0].offsetLeft],isVisible=[contentPos[0]+to[0]>=0&&contentPos[0]+to[0]<wrapper.height()-el.outerHeight(!1),contentPos[1]+to[1]>=0&&contentPos[0]+to[1]<wrapper.width()-el.outerWidth(!1)],overwrite="yx"!==o.axis||isVisible[0]||isVisible[1]?"all":"none";"x"===o.axis||isVisible[0]||_scrollTo($this,to[0].toString(),{dir:"y",scrollEasing:"mcsEaseInOut",overwrite:overwrite,dur:0}),"y"===o.axis||isVisible[1]||_scrollTo($this,to[1].toString(),{dir:"x",scrollEasing:"mcsEaseInOut",overwrite:overwrite,dur:0})}),$this[0]._focusTimer))}))},_wrapperScroll=function(){var $this,d=$(this).data("mCS"),namespace="mCS_"+d.idx,wrapper=$("#mCSB_"+d.idx+"_container").parent();wrapper.bind("scroll."+namespace,(function(e){0===wrapper.scrollTop()&&0===wrapper.scrollLeft()||$(".mCSB_"+d.idx+"_scrollbar").css("visibility","hidden")}))},_buttons=function(){var $this=$(this),d=$this.data("mCS"),o=d.opt,seq=d.sequential,namespace="mCS_"+d.idx,sel=".mCSB_"+d.idx+"_scrollbar",btn;$(sel+">a").bind("contextmenu."+namespace,(function(e){e.preventDefault()})).bind("mousedown."+namespace+" touchstart."+namespace+" pointerdown."+namespace+" MSPointerDown."+namespace+" mouseup."+namespace+" touchend."+namespace+" pointerup."+namespace+" MSPointerUp."+namespace+" mouseout."+namespace+" pointerout."+namespace+" MSPointerOut."+namespace+" click."+namespace,(function(e){if(e.preventDefault(),_mouseBtnLeft(e)){var btnClass=$(this).attr("class");switch(seq.type=o.scrollButtons.scrollType,e.type){case"mousedown":case"touchstart":case"pointerdown":case"MSPointerDown":if("stepped"===seq.type)return;touchActive=!0,d.tweenRunning=!1,_seq("on",btnClass);break;case"mouseup":case"touchend":case"pointerup":case"MSPointerUp":case"mouseout":case"pointerout":case"MSPointerOut":if("stepped"===seq.type)return;touchActive=!1,seq.dir&&_seq("off",btnClass);break;case"click":if("stepped"!==seq.type||d.tweenRunning)return;_seq("on",btnClass)}}function _seq(a,c){_sequentialScroll($this,a,c)}}))},_keyboard=function(){var $this=$(this),d=$this.data("mCS"),o=d.opt,seq=d.sequential,namespace="mCS_"+d.idx,mCustomScrollBox=$("#mCSB_"+d.idx),mCSB_container=$("#mCSB_"+d.idx+"_container"),wrapper=mCSB_container.parent(),editables="input,textarea,select,datalist,keygen,[contenteditable='true']",iframe=mCSB_container.find("iframe"),events=["blur."+namespace+" key
113down."+namespace+" keyup."+namespace];function _onKeyboard(e){switch(e.type){case"blur":d.tweenRunning&&seq.dir&&_seq("off",null);break;case"keydown":case"keyup":var code=e.keyCode?e.keyCode:e.which,action="on";if("x"!==o.axis&&(38===code||40===code)||"y"!==o.axis&&(37===code||39===code)){if((38===code||40===code)&&!d.overflowed[0]||(37===code||39===code)&&!d.overflowed[1])return;"keyup"===e.type&&(action="off"),$(document.activeElement).is(editables)||(e.preventDefault(),e.stopImmediatePropagation(),_seq(action,code))}else if(33===code||34===code){if((d.overflowed[0]||d.overflowed[1])&&(e.preventDefault(),e.stopImmediatePropagation()),"keyup"===e.type){_stop($this);var keyboardDir=34===code?-1:1;if("x"===o.axis||"yx"===o.axis&&d.overflowed[1]&&!d.overflowed[0])var dir="x",to=Math.abs(mCSB_container[0].offsetLeft)-keyboardDir*(.9*wrapper.width());else var dir="y",to=Math.abs(mCSB_container[0].offsetTop)-keyboardDir*(.9*wrapper.height());_scrollTo($this,to.toString(),{dir:dir,scrollEasing:"mcsEaseInOut"})}}else if((35===code||36===code)&&!$(document.activeElement).is(editables)&&((d.overflowed[0]||d.overflowed[1])&&(e.preventDefault(),e.stopImmediatePropagation()),"keyup"===e.type)){if("x"===o.axis||"yx"===o.axis&&d.overflowed[1]&&!d.overflowed[0])var dir="x",to=35===code?Math.abs(wrapper.width()-mCSB_container.outerWidth(!1)):0;else var dir="y",to=35===code?Math.abs(wrapper.height()-mCSB_container.outerHeight(!1)):0;_scrollTo($this,to.toString(),{dir:dir,scrollEasing:"mcsEaseInOut"})}}function _seq(a,c){seq.type=o.keyboard.scrollType,seq.scrollAmount=o.keyboard.scrollAmount,"stepped"===seq.type&&d.tweenRunning||_sequentialScroll($this,a,c)}}iframe.length&&iframe.each((function(){$(this).bind("load",(function(){_canAccessIFrame(this)&&$(this.contentDocument||this.contentWindow.document).bind(events[0],(function(e){_onKeyboard(e)}))}))})),mCustomScrollBox.attr("tabindex","0").bind(events[0],(function(e){_onKeyboard(e)}))},_sequentialScroll=function(el,action,trigger,e,s){var d=el.data("mCS"),o=d.opt,seq=d.sequential,mCSB_container=$("#mCSB_"+d.idx+"_container"),once="stepped"===seq.type,steplessSpeed=o.scrollInertia<26?26:o.scrollInertia,steppedSpeed=o.scrollInertia<1?17:o.scrollInertia;switch(action){case"on":if(seq.dir=[trigger===classes[16]||trigger===classes[15]||39===trigger||37===trigger?"x":"y",trigger===classes[13]||trigger===classes[15]||38===trigger||37===trigger?-1:1],_stop(el),_isNumeric(trigger)&&"stepped"===seq.type)return;_on(once);break;case"off":_off(),(once||d.tweenRunning&&seq.dir)&&_on(!0)}function _on(once){o.snapAmount&&(seq.scrollAmount=o.snapAmount instanceof Array?"x"===seq.dir[0]?o.snapAmount[1]:o.snapAmount[0]:o.snapAmount);var c="stepped"!==seq.type,t=s||(once?c?steplessSpeed/1.5:steppedSpeed:1e3/60),m=once?c?7.5:40:2.5,contentPos=[Math.abs(mCSB_container[0].offsetTop),Math.abs(mCSB_container[0].offsetLeft)],ratio=[d.scrollRatio.y>10?10:d.scrollRatio.y,d.scrollRatio.x>10?10:d.scrollRatio.x],amount="x"===seq.dir[0]?contentPos[1]+seq.dir[1]*(ratio[1]*m):contentPos[0]+seq.dir[1]*(ratio[0]*m),px="x"===seq.dir[0]?contentPos[1]+seq.dir[1]*parseInt(seq.scrollAmount):contentPos[0]+seq.dir[1]*parseInt(seq.scrollAmount),to="auto"!==seq.scrollAmount?px:amount,easing=e||(once?c?"mcsLinearOut":"mcsEaseInOut":"mcsLinear"),onComplete=!!once;once&&t<17&&(to="x"===seq.dir[0]?contentPos[1]:contentPos[0]),_scrollTo(el,to.toString(),{dir:seq.dir[0],scrollEasing:easing,dur:t,onComplete:onComplete}),once?seq.dir=!1:(clearTimeout(seq.step),seq.step=setTimeout((function(){_on()}),t))}function _off(){clearTimeout(seq.step),_delete(seq,"step"),_stop(el)}},_arr=function(val){var o=$(this).data("mCS").opt,vals=[];return"function"==typeof val&&(val=val()),val instanceof Array?vals=val.length>1?[val[0],val[1]]:"x"===o.axis?[null,val[0]]:[val[0],null]:(vals[0]=val.y?val.y:val.x||"x"===o.axis?null:val,vals[1]=val.x?val.x:val.y||"y"===o.axis?null:val),"function"==typeof vals[0]&&(vals[0]=vals[0]()),"function"==typeof vals[1]&&(vals[1]=vals[1]()),vals},_to=function(val,dir){if(null!=val&&void 0!==val){var $this=$(this),d=$this.data("mCS"),o=d.opt,mCSB_container=$("#mCSB_"+d.idx+"_container"),wrapper=mCSB_container.parent(),t=typeof val;dir||(dir="x"===o.axis?"x":"y");var contentLength="x"===dir?mCSB_container.outerWidth(!1)-wrapper.width():mCSB_container.outerHeight(!1)-wrapper.height(),contentPos="x"===dir?mCSB_container[0].offsetLeft:mCSB_container[0].offsetTop,cssProp="x"===dir?"left":"top";switch(t){case"function":return val();case"object":var obj;if(!(obj=val.jquery?val:$(val)).length)return;return"x"===dir?_childPos(obj)[1]:_childPos(obj)[0];case"string":case"number":if(_isNumeric(val))return Math.abs(val);if(-1!==val.indexOf("%"))return Math.abs(contentLength*parseInt(val)/100);if(-1!==val.indexOf("-="))return Math.abs(contentPos-parseInt(val.split("-=")[1]));if(-1!==val.indexOf("+=")){var p=contentPos+parseInt(val.split("+=")[1]);return p>=0?0:Math.abs(p)}if(-1!==val.indexOf("px")&&_isNumeric(val.split("px")[0]))return Math.abs(val.split("px")[0]);if("top"===val||"left"===val)return 0;if("bottom"===val)return Math.abs(wrapper.height()-mCSB_container.outerHeight(!1));if("right"===val)return Math.abs(wrapper.width()-mCSB_container.outerWidth(!1));if("first"===val||"last"===val){var obj=mCSB_container.find(":"+val);return"x"===dir?_childPos(obj)[1]:_childPos(obj)[0]}return $(val).length?"x"===dir?_childPos($(val))[1]:_childPos($(val))[0]:(mCSB_container.css(cssProp,val),void methods.update.call(null,$this[0]))}}},_autoUpdate=function(rem){var $this=$(this),d=$this.data("mCS"),o=d.opt,mCSB_container=$("#mCSB_"+d.idx+"_container");if(rem)return clearTimeout(mCSB_container[0].autoUpdate),void _delete(mCSB_container[0],"autoUpdate");function upd(){clearTimeout(mCSB_container[0].autoUpdate),0!==$this.parents("html").length?mCSB_container[0].autoUpdate=setTimeout((function(){return o.advanced.updateOnSelectorChange&&(d.poll.change.n=sizesSum(),d.poll.change.n!==d.poll.change.o)?(d.poll.change.o=d.poll.change.n,void doUpd(3)):o.advanced.updateOnContentResize&&(d.poll.size.n=$this[0].scrollHeight+$this[0].scrollWidth+mCSB_container[0].offsetHeight+$this[0].offsetHeight+$this[0].offsetWidth,d.poll.size.n!==d.poll.size.o)?(d.poll.size.o=d.poll.size.n,void doUpd(1)):!o.advanced.updateOnImageLoad||"auto"===o.advanced.updateOnImageLoad&&"y"===o.axis||(d.poll.img.n=mCSB_container.find("img").length,d.poll.img.n===d.poll.img.o)?void((o.advanced.updateOnSelectorChange||o.advanced.updateOnContentResize||o.advanced.updateOnImageLoad)&&upd()):(d.poll.img.o=d.poll.img.n,void mCSB_container.find("img").each((function(){imgLoader(this)})))}),o.advanced.autoUpdateTimeout):$this=null}
vendor: 8,988 bytes, line 113
113function imgLoader(el){if($(el).hasClass(classes[2]))doUpd();else{var img=new Image;img.onload=createDelegate(img,imgOnLoad),img.src=el.src}function createDelegate(contextObject,delegateMethod){return function(){return delegateMethod.apply(contextObject,arguments)}}function imgOnLoad(){this.onload=null,$(el).addClass(classes[2]),doUpd(2)}}function sizesSum(){!0===o.advanced.updateOnSelectorChange&&(o.advanced.updateOnSelectorChange="*");var total=0,sel=mCSB_container.find(o.advanced.updateOnSelectorChange);return o.advanced.updateOnSelectorChange&&sel.length>0&&sel.each((function(){total+=this.offsetHeight+this.offsetWidth})),total}function doUpd(cb){clearTimeout(mCSB_container[0].autoUpdate),methods.update.call(null,$this[0],cb)}upd()},_snapAmount=function(to,amount,offset){return Math.round(to/amount)*amount-offset},_stop=function(el){var d=el.data("mCS"),sel;$("#mCSB_"+d.idx+"_container,#mCSB_"+d.idx+"_container_wrapper,#mCSB_"+d.idx+"_dragger_vertical,#mCSB_"+d.idx+"_dragger_horizontal").each((function(){_stopTween.call(this)}))},_scrollTo=function(el,to,options){var d=el.data("mCS"),o=d.opt,defaults={trigger:"internal",dir:"y",scrollEasing:"mcsEaseOut",drag:!1,dur:o.scrollInertia,overwrite:"all",callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},options,dur=[(options=$.extend(defaults,options)).dur,options.drag?0:options.dur],mCustomScrollBox=$("#mCSB_"+d.idx),mCSB_container=$("#mCSB_"+d.idx+"_container"),wrapper=mCSB_container.parent(),totalScrollOffsets=o.callbacks.onTotalScrollOffset?_arr.call(el,o.callbacks.onTotalScrollOffset):[0,0],totalScrollBackOffsets=o.callbacks.onTotalScrollBackOffset?_arr.call(el,o.callbacks.onTotalScrollBackOffset):[0,0];if(d.trigger=options.trigger,0===wrapper.scrollTop()&&0===wrapper.scrollLeft()||($(".mCSB_"+d.idx+"_scrollbar").css("visibility","visible"),wrapper.scrollTop(0).scrollLeft(0)),"_resetY"!==to||d.contentReset.y||(_cb("onOverflowYNone")&&o.callbacks.onOverflowYNone.call(el[0]),d.contentReset.y=1),"_resetX"!==to||d.contentReset.x||(_cb("onOverflowXNone")&&o.callbacks.onOverflowXNone.call(el[0]),d.contentReset.x=1),"_resetY"!==to&&"_resetX"!==to){if(!d.contentReset.y&&el[0].mcs||!d.overflowed[0]||(_cb("onOverflowY")&&o.callbacks.onOverflowY.call(el[0]),d.contentReset.x=null),!d.contentReset.x&&el[0].mcs||!d.overflowed[1]||(_cb("onOverflowX")&&o.callbacks.onOverflowX.call(el[0]),d.contentReset.x=null),o.snapAmount){var snapAmount=o.snapAmount instanceof Array?"x"===options.dir?o.snapAmount[1]:o.snapAmount[0]:o.snapAmount;to=_snapAmount(to,snapAmount,o.snapOffset)}switch(options.dir){case"x":var mCSB_dragger=$("#mCSB_"+d.idx+"_dragger_horizontal"),property="left",contentPos=mCSB_container[0].offsetLeft,limit=[mCustomScrollBox.width()-mCSB_container.outerWidth(!1),mCSB_dragger.parent().width()-mCSB_dragger.width()],scrollTo=[to,0===to?0:to/d.scrollRatio.x],tso=totalScrollOffsets[1],tsbo=totalScrollBackOffsets[1],totalScrollOffset=tso>0?tso/d.scrollRatio.x:0,totalScrollBackOffset=tsbo>0?tsbo/d.scrollRatio.x:0;break;case"y":var mCSB_dragger=$("#mCSB_"+d.idx+"_dragger_vertical"),property="top",contentPos=mCSB_container[0].offsetTop,limit=[mCustomScrollBox.height()-mCSB_container.outerHeight(!1),mCSB_dragger.parent().height()-mCSB_dragger.height()],scrollTo=[to,0===to?0:to/d.scrollRatio.y],tso=totalScrollOffsets[0],tsbo=totalScrollBackOffsets[0],totalScrollOffset=tso>0?tso/d.scrollRatio.y:0,totalScrollBackOffset=tsbo>0?tsbo/d.scrollRatio.y:0}scrollTo[1]<0||0===scrollTo[0]&&0===scrollTo[1]?scrollTo=[0,0]:scrollTo[1]>=limit[1]?scrollTo=[limit[0],limit[1]]:scrollTo[0]=-scrollTo[0],el[0].mcs||(_mcs(),_cb("onInit")&&o.callbacks.onInit.call(el[0])),clearTimeout(mCSB_container[0].onCompleteTimeout),_tweenTo(mCSB_dragger[0],property,Math.round(scrollTo[1]),dur[1],options.scrollEasing),!d.tweenRunning&&(0===contentPos&&scrollTo[0]>=0||contentPos===limit[0]&&scrollTo[0]<=limit[0])||_tweenTo(mCSB_container[0],property,Math.round(scrollTo[0]),dur[0],options.scrollEasing,options.overwrite,{onStart:function(){options.callbacks&&options.onStart&&!d.tweenRunning&&(_cb("onScrollStart")&&(_mcs(),o.callbacks.onScrollStart.call(el[0])),d.tweenRunning=!0,_onDragClasses(mCSB_dragger),d.cbOffsets=_cbOffsets())},onUpdate:function(){options.callbacks&&options.onUpdate&&_cb("whileScrolling")&&(_mcs(),o.callbacks.whileScrolling.call(el[0]))},onComplete:function(){if(options.callbacks&&options.onComplete){"yx"===o.axis&&clearTimeout(mCSB_container[0].onCompleteTimeout);var t=mCSB_container[0].idleTimer||0;mCSB_container[0].onCompleteTimeout=setTimeout((function(){_cb("onScroll")&&(_mcs(),o.callbacks.onScroll.call(el[0])),_cb("onTotalScroll")&&scrollTo[1]>=limit[1]-totalScrollOffset&&d.cbOffsets[0]&&(_mcs(),o.callbacks.onTotalScroll.call(el[0])),_cb("onTotalScrollBack")&&scrollTo[1]<=totalScrollBackOffset&&d.cbOffsets[1]&&(_mcs(),o.callbacks.onTotalScrollBack.call(el[0])),d.tweenRunning=!1,mCSB_container[0].idleTimer=0,_onDragClasses(mCSB_dragger,"hide")}),t)}}})}function _cb(cb){return d&&o.callbacks[cb]&&"function"==typeof o.callbacks[cb]}function _cbOffsets(){return[o.callbacks.alwaysTriggerOffsets||contentPos>=limit[0]+tso,o.callbacks.alwaysTriggerOffsets||contentPos<=-tsbo]}function _mcs(){var cp=[mCSB_container[0].offsetTop,mCSB_container[0].offsetLeft],dp=[mCSB_dragger[0].offsetTop,mCSB_dragger[0].offsetLeft],cl=[mCSB_container.outerHeight(!1),mCSB_container.outerWidth(!1)],pl=[mCustomScrollBox.height(),mCustomScrollBox.width()];el[0].mcs={content:mCSB_container,top:cp[0],left:cp[1],draggerTop:dp[0],draggerLeft:dp[1],topPct:Math.round(100*Math.abs(cp[0])/(Math.abs(cl[0])-pl[0])),leftPct:Math.round(100*Math.abs(cp[1])/(Math.abs(cl[1])-pl[1])),direction:options.dir}}},_tweenTo=function(el,prop,to,duration,easing,overwrite,callbacks){el&&!el._mTween&&(el._mTween={top:{},left:{}});var callbacks,onStart=(callbacks=callbacks||{}).onStart||function(){},onUpdate=callbacks.onUpdate||function(){},onComplete=callbacks.onComplete||function(){},startTime=_getTime(),_delay,progress=0,from=el.offsetTop,elStyle=el.style,_request,tobj=el._mTween[prop];"left"===prop&&(from=el.offsetLeft);var diff=to-from;function _step(){tobj.stop||(progress||onStart.call(),progress=_getTime()-startTime,_tween(),progress>=tobj.time&&(tobj.time=progress>tobj.time?progress+_delay-(progress-tobj.time):progress+_delay-1,tobj.time<progress+1&&(tobj.time=progress+1)),tobj.time<duration?tobj.id=_request(_step):onComplete.call())}function _tween(){duration>0?(tobj.currVal=_ease(tobj.time,from,diff,duration,easing),elStyle[prop]=Math.round(tobj.currVal)+"px"):elStyle[prop]=to+"px",onUpdate.call()}function _startTween(){_delay=1e3/60,tobj.time=progress+_delay,_request=window.requestAnimationFrame?window.requestAnimationFrame:function(f){return _tween(),setTimeout(f,.01)},tobj.id=_request(_step)}function _cancelTween(){null!=tobj.id&&(window.requestAnimationFrame?window.cancelAnimationFrame(tobj.id):clearTimeout(tobj.id),tobj.id=null)}function _ease(t,b,c,d,type){switch(type){case"linear":case"mcsLinear":return c*t/d+b;case"mcsLinearOut":return t/=d,t--,c*Math.sqrt(1-t*t)+b;case"easeInOutSmooth":return(t/=d/2)<1?c/2*t*t+b:-c/2*(--t*(t-2)-1)+b;case"easeInOutStrong":return(t/=d/2)<1?c/2*Math.pow(2,10*(t-1))+b:(t--,c/2*(2-Math.pow(2,-10*t))+b);case"easeInOut":case"mcsEaseInOut":return(t/=d/2)<1?c/2*t*t*t+b:c/2*((t-=2)*t*t+2)+b;case"easeOutSmooth":return t/=d,-c*(--t*t*t*t-1)+b;case"easeOutStrong":return c*(1-Math.pow(2,-10*t/d))+b;case"easeOut":case"mcsEaseOut":default:var ts=(t/=d)*t,tc=ts*t;return b+c*(.499999999999997*tc*ts+-2.5*ts*ts+5.5*tc+-6.5*ts+4*t)}}tobj.stop=0,"none"!==overwrite&&_cancelTween(),_startTween()},_getTime=function(){return window.performance&&window.performance.now?window.performance.now():window.performance&&window.performance.webkitNow?window.performance.webkitNow():Date.now?Date.now():(new Date).getTime()},_stopTween=function(){var el=this;el._mTween||(el._mTween={top:{},left:{}});for(var props=["top","left"],i=0;i<props.length;i++){var prop=props[i];el._mTween[prop].id&&(window.requestAnimationFrame?window.cancelAnimationFrame(el._mTween[prop].id):clearTimeout(el._mTween[prop].id),el._mTween[prop].id=null,el._mTween[prop].stop=1)}},_delete=function(c,m){try{delete c[m]}catch(e){c[m]=null}},_mouseBtnLeft=function(e){return!(e.which&&1!==e.which)},_pointerTouch=function(e){var t=e.originalEvent.pointerType;return!(t&&"touch"!==t&&2!==t)},_isNumeric=function(val){return!isNaN(parseFloat(val))&&isFinite(val)},_childPos=function(el){var p=el.parents(".mCSB_container");return[el.offset().top-p.offset().top,el.offset().left-p.offset().left]},_isTabHidden=function(){var prop=_getHiddenProp();return!!prop&&document[prop];function _getHiddenProp(){var pfx=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var i=0;i<pfx.length;i++)if(pfx[i]+"Hidden"in document)return pfx[i]+"Hidden";return null}},$.fn[pluginNS]=function(method){return methods[method]?methods[method].apply(this,Array.prototype.slice.call(arguments,1
113)):"object"!=typeof method&&method?void $.error("Method "+method+" does not exist"):methods.init.apply(this,arguments)},$[pluginNS]=function(method){return methods[method]?methods[method].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof method&&method?void $.error("Method "+method+" does not exist"):methods.init.apply(this,arguments)},$[pluginNS].defaults=defaults,window[pluginNS]=!0,$(window).bind("load",(function(){$(defaultSelector)[pluginNS](),$.extend($.expr[":"],{mcsInView:$.expr[":"].mcsInView||function(el){var $el=$(el),content=$el.parents(".mCSB_container"),wrapper,cPos;if(content.length)return wrapper=content.parent(),(cPos=[content[0].offsetTop,content[0].offsetLeft])[0]+_childPos($el)[0]>=0&&cPos[0]+_childPos($el)[0]<wrapper.height()-$el.outerHeight(!1)&&cPos[1]+_childPos($el)[1]>=0&&cPos[1]+_childPos($el)[1]<wrapper.width()-$el.outerWidth(!1)},mcsInSight:$.expr[":"].mcsInSight||function(el,i,m){var $el=$(el),elD,content=$el.parents(".mCSB_container"),wrapperView,pos,wrapperViewPct,pctVals="exact"===m[3]?[[1,0],[1,0]]:[[.9,.1],[.6,.4]];if(content.length)return elD=[$el.outerHeight(!1),$el.outerWidth(!1)],pos=[content[0].offsetTop+_childPos($el)[0],content[0].offsetLeft+_childPos($el)[1]],wrapperView=[content.parent()[0].offsetHeight,content.parent()[0].offsetWidth],pos[0]-wrapperView[0]*(wrapperViewPct=[elD[0]<wrapperView[0]?pctVals[0]:pctVals[1],elD[1]<wrapperView[1]?pctVals[0]:pctVals[1]])[0][0]<0&&pos[0]+elD[0]-wrapperView[0]*wrapperViewPct[0][1]>=0&&pos[1]-wrapperView[1]*wrapperViewPct[1][0]<0&&pos[1]+elD[1]-wrapperView[1]*wrapperViewPct[1][1]>=0},mcsOverflow:$.expr[":"].mcsOverflow||function(el){var d=$(el).data("mCS");if(d)return d.overflowed[0]||d.overflowed[1]}})}))},_rjs="function"==typeof define&&define.amd,_njs="undefined"!=typeof module&&module.exports,_dlp="https:"==document.location.protocol?"https:":"http:",_url="cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.13/jquery.mousewheel.min.js",_rjs||(_njs?require("jquery-mousewheel")($):$.event.special.mousewheel||$("head").append(decodeURI("%3Cscript src="+_dlp+"//"+_url+"%3E%3C/script%3E"))),init()}));
114/* End */
115;
116; /* Start:"a:4:{s:4:"full";s:69:"/bitrix/templates/aspro-allcorp3heat/js/jqModal.min.js?16860349813303";s:6:"source";s:50:"/bitrix/templates/aspro-allcorp3heat/js/jqModal.js";s:3:"min";s:54:"/bitrix/templates/aspro-allcorp3heat/js/jqModal.min.js";s:3:"map";s:58:"/bitrix/templates/aspro-allcorp3heat/js/jqModal.min.js.map";}"*/
117!function($){$.fn.jqm=function(options){var o=$.extend({},$.jqm.params,options);
117return this.each((function(){var e=$(this),jqm=$(this).data("jqm");jqm||(jqm={ID:I++}),e.data("jqm",$.extend(o,jqm)).addClass("jqm-init"),o.trigger&&$(this).jqmAddTrigger(o.trigger)}))},$.fn.jqmAddTrigger=function(trigger){return this.each((function(){addTrigger($(this),"jqmShow",trigger)||err("jqmAddTrigger must be called on initialized modals")}))},$.fn.jqmAddClose=function(trigger){return this.each((function(){addTrigger($(this),"jqmHide",trigger)||err("jqmAddClose must be called on initialized modals")}))},$.fn.jqmShow=function(trigger){return this.each((function(){!this._jqmShown&&show($(this),trigger)}))},$.fn.jqmHide=function(trigger){return this.each((function(){this._jqmShown&&hide($(this),trigger)}))};var err=function(msg){window.console&&window.console.error&&window.console.error(msg)},show=function(e,t){var o=e.data("jqm"),t=t||window.event,z=parseInt(e.css("z-index"));if(void 0===o.noOverlay||void 0!==o.noOverlay&&!o.noOverlay){isNaN(z)&&(window.lastJqmZindex?window.lastJqmZindex=z=window.lastJqmZindex+2:z=3e3),window.lastJqmZindex=z;var v=$("<div></div>").addClass(o.overlayClass).css({height:"100%",width:"100%",position:"fixed",left:0,top:0,"z-index":z-1,opacity:o.overlay/100});e.css("z-index",z)}else{var v=$("");e.css("z-index",2999)}if(h={w:e,c:o,o:v,t:t},o.ajax)if(o.once&&o.onceLoaded)o.onLoad&&o.onLoad.call(this,h),open(h);else{var target=o.target||e,url=o.ajax;target="string"==typeof target?$(target,e):$(target),"@"==url.substr(0,1)&&(url=$(t).attr(url.substring(1))),target.html(o.ajaxText).load(url,(function(){o.onceLoaded=!0,o.onLoad&&o.onLoad.call(this,h),open(h)}))}else open(h)},hide=function(e,t){var o=e.data("jqm"),t=t||window.event,h={w:e,c:o,o:e.data("jqmv"),t:t};close(h)},onShow=function(hash){return!hash.w[0]._jqmShown&&(hash.c.overlay>0&&hash.o.prependTo("#popup_iframe_wrapper"),hash.w.show(),$.jqm.focusFunc(hash.w),!0)},onHide=function(hash){return hash.w.hide()&&hash.o&&hash.o.remove(),!0},addTrigger=function(e,key,trigger){return!!e.data("jqm")&&$(trigger).each((function(){this[key]=this[key]||[],this[key].push(e)})).click((function(){var trigger=this;return $.each(this[key],(function(i,e){e[key](trigger)})),!1}))},open=function(h){var e=h.w,v=h.o,o=h.c;!1!==o.onShow(h)&&(e[0]._jqmShown=!0,o.modal?(!A[0]&&F("bind"),A.push(e)):e.jqmAddClose(v),o.closeClass&&e.jqmAddClose($("."+o.closeClass,e)),o.toTop&&v&&e.before('<span id="jqmP'+o.ID+'"></span>').insertAfter(v),e.data("jqmv",v))},close=function(h){var e=h.w,v=h.o,o=h.c;!1!==o.onHide(h)&&(e[0]._jqmShown=!1,o.modal&&(A.pop(),!A[0]&&F("unbind")),o.toTop&&v&&$("#jqmP"+o.ID).after(e).remove())},F=function(t){$(document)[t]("keypress keydown mousedown",X)},X=function(e){var modal=$(e.target).data("jqm")||$(e.target).parents(".jqm-init:first").data("jqm"),activeModal=A[A.length-1].data("jqm");return!(!modal||modal.ID!=activeModal.ID)||$.jqm.focusFunc(activeModal)},I=0,A=[];$.jqm={params:{overlay:50,overlayClass:"jqmOverlay",closeClass:"jqmClose",trigger:".jqModal",ajax:!1,target:!1,ajaxText:"",modal:!1,toTop:!1,onShow:onShow,onHide:onHide,onLoad:!1,once:!1,onceLoaded:!1},focusFunc:function(e){return $(":input:visible:first",e).focus(),!1}}}(jQuery);
118/* End */
119;
120; /* Start:"a:4:{s:4:"full";s:76:"/bitrix/templates/aspro-allcorp3heat/js/jquery.uniform.min.js?16860349818308";s:6:"source";
vendor: 8,879 bytes, lines 120-126
120s:61:"/bitrix/templates/aspro-allcorp3heat/js/jquery.uniform.min.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
121(function(e,t){"use strict";function n(e){var t=Array.prototype.slice.call(arguments,1);return e.prop?e.prop.apply(e,t):e.attr.apply(e,t)}function s(e,t,n){var s,a;for(s in n)n.hasOwnProperty(s)&&(a=s.replace(/ |$/g,t.eventNamespace),e.bind(a,n[s]))}function a(e,t,n){s(e,n,{focus:function(){t.addClass(n.focusClass)},blur:function(){t.removeClass(n.focusClass),t.removeClass(n.activeClass)},mouseenter:function(){t.addClass(n.hoverClass)},mouseleave:function(){t.removeClass(n.hoverClass),t.removeClass(n.activeClass)},"mousedown touchbegin":function(){e.is(":disabled")||t.addClass(n.activeClass)},"mouseup touchend":function(){t.removeClass(n.activeClass)}})}function i(e,t){e.removeClass(t.hoverClass+" "+t.focusClass+" "+t.activeClass)}function r(e,t,n){n?e.addClass(t):e.removeClass(t)}function l(e,t,n){var s="checked",a=t.is(":"+s);t.prop?t.prop(s,a):a?t.attr(s,s):t.removeAttr(s),r(e,n.checkedClass,a)}function u(e,t,n){r(e,n.disabledClass,t.is(":disabled"))}function o(e,t,n){switch(n){case"after":return e.after(t),e.next();case"before":return e.before(t),e.prev();case"wrap":return e.wrap(t),e.parent()}return null}function c(t,s,a){var i,r,l;return a||(a={}),a=e.extend({bind:{},divClass:null,divWrap:"wrap",spanClass:null,spanHtml:null,spanWrap:"wrap"},a),i=e("<div />"),r=e("<span />"),s.autoHide&&t.is(":hidden")&&"none"===t.css("display")&&i.hide(),a.divClass&&i.addClass(a.divClass),s.wrapperClass&&i.addClass(s.wrapperClass),a.spanClass&&r.addClass(a.spanClass),l=n(t,"id"),s.useID&&l&&n(i,"id",s.idPrefix+"-"+l),a.spanHtml&&r.html(a.spanHtml),i=o(t,i,a.divWrap),r=o(t,r,a.spanWrap),u(i,t,s),{div:i,span:r}}function d(t,n){var s;return n.wrapperClass?(s=e("<span />").addClass(n.wrapperClass),s=o(t,s,"wrap")):null}function f(){var t,n,s,a;return a="rgb(120,2,153)",n=e('<div style="width:0;height:0;color:'+a+'">'),e("body").append(n),s=n.get(0),t=window.getComputedStyle?window.getComputedStyle(s,"").color:(s.currentStyle||s.style||{}).color,n.remove(),t.replace(/ /g,"")!==a}function p(t){return t?e("<span />").text(t).html():""}function m(){return navigator.cpuClass&&!navigator.product}function v(){return window.XMLHttpRequest!==void 0?!0:!1}function h(e){var t;return e[0].multiple?!0:(t=n(e,"size"),!t||1>=t?!1:!0)}function C(){return!1}function w(e,t){var n="none";s(e,t,{"selectstart dragstart mousedown":C}),e.css({MozUserSelect:n,msUserSelect:n,webkitUserSelect:n,userSelect:n})}function b(e,t,n){var s=e.val();""===s?s=n.fileDefaultHtml:(s=s.split(/[\/\\]+/),s=s[s.length-1]),t.text(s)}function y(e,t,n){var s,a;for(s=[],e.each(function(){var e;for(e in t)Object.prototype.hasOwnProperty.call(t,e)&&(s.push({el:this,name:e,old:this.style[e]}),this.style[e]=t[e])}),n();s.length;)a=s.pop(),a.el.style[a.name]=a.old}function g(e,t){var n;n=e.parents(),n.push(e[0]),n=n.not(":visible"),y(n,{visibility:"hidden",display:"block",position:"absolute"},t)}function k(e,t){return function(){e.unwrap().unwrap().unbind(t.eventNamespace)}}var H=!0,x=!1,A=[{match:function(e){return e.is("a, button, :submit, :reset, input[type='button']")},apply:function(e,t){var r,l,o,d,f;return l=t.submitDefaultHtml,e.is(":reset")&&(l=t.resetDefaultHtml),d=e.is("a, button")?function(){return e.html()||l}:function(){return p(n(e,"value"))||l},o=c(e,t,{divClass:t.buttonClass,spanHtml:d()}),r=o.div,a(e,r,t),f=!1,s(r,t,{"click touchend":function(){var t,s,a,i;f||e.is(":disabled")||(f=!0,e[0].dispatchEvent?(t=document.createEvent("MouseEvents"),t.initEvent("click",!0,!0),s=e[0].dispatchEvent(t),e.is("a")&&s&&(a=n(e,"target"),i=n(e,"href"),a&&"_self"!==a?window.open(i,a):document.location.href=i)):e.click(),f=!1)}}),w(r,t),{remove:function(){return r.after(e),r.remove(),e.unbind(t.eventNamespace),e},update:function(){i(r,t),u(r,e,t),e.detach(),o.span.html(d()).append(e)}}}},{match:function(e){return e.is(":checkbox")},apply:function(e,t){var n,r,o;return n=c(e,t,{divClass:t.checkboxClass}),r=n.div,o=n.span,a(e,r,t),s(e,t,{"click touchend":function(){l(o,e,t)}}),l(o,e,t),{remove:k(e,t),update:function(){i(r,t),o.removeClass(t.checkedClass),l(o,e,t),u(r,e,t)}}}},{match:function(e){return e.is(":file")},apply:function(t,r){function l(){b(t,p,r)}var d,f,p,v;return d=c(t,r,{divClass:r.fileClass,spanClass:r.fileButtonClass,spanHtml:r.fileButtonHtml,spanWrap:"after"}),f=d.div,v=d.span,p=e("<span />").html(r.fileDefaultHtml),p.addClass(r.filenameClass),p=o(t,p,"after"),n(t,"size")||n(t,"size",f.width()/10),a(t,f,r),l(),m()?s(t,r,{click:function(){t.trigger("change"),setTimeout(l,0)}}):s(t,r,{change:l}),w(p,r),w(v,r),{remove:function(){return p.remove(),v.remove(),t.unwrap().unbind(r.eventNamespace)},update:function(){i(f,r),b(t,p,r),u(f,t,r)}}}},{match:function(e){if(e.is("input")){var t=(" "+n(e,"type")+" ").toLowerCase(),s=" color date datetime datetime-local email month number password search tel text time url week ";return s.indexOf(t)>=0}return!1},apply:function(e,t){var s,i;return s=n(e,"type"),e.addClass(t.inputClass),i=d(e,t),a(e,e,t),t.inputAddTypeAsClass&&e.addClass(s),{remove:function(){e.removeClass(t.inputClass),t.inputAddTypeAsClass&&e.removeClass(s),i&&e.unwrap()},update:C}}},{match:function(e){return e.is(":radio")},apply:function(t,r){var o,d,f;return o=c(t,r,{divClass:r.radioClass}),d=o.div,f=o.span,a(t,d,r),s(t,r,{"click touchend":function(){e.uniform.update(e(':radio[name="'+n(t,"name")+'"]'))}}),l(f,t,r),{remove:k(t,r),update:function(){i(d,r),l(f,t,r),u(d,t,r)}}}},{match:function(e){return e.is("select")&&!h(e)?!0:!1},apply:function(t,n){var r,l,o,d;return n.selectAutoWidth&&g(t,function(){d=t.width()}),r=c(t,n,{divClass:n.selectClass,spanHtml:(t.find(":selected:first")||t.find("option:first")).html(),spanWrap:"before"}),l=r.div,o=r.span,n.selectAutoWidth?g(t,function(){y(e([o[0],l[0]]),{display:"block"},function(){var e;e=o.outerWidth()-o.width(),l.width(d+e),o.width(d)})}):l.addClass("fixedWidth"),a(t,l,n),s(t,n,{change:function(){o.html(t.find(":selected").html()),l.removeClass(n.activeClass)},"click touchend":function(){var e=t.find(":selected").html();o.html()!==e&&t.trigger("change")},keyup:function(){o.html(t.find(":selected").html())}}),w(o,n),{remove:function(){return o.remove(),t.unwrap().unbind(n.eventNamespace),t},update:function(){n.selectAutoWidth?(e.uniform.restore(t),t.uniform(n)):(i(l,n),o.html(t.find(":selected").html()),u(l,t,n))}}}},{match:function(e){return e.is("select")&&h(e)?!0:!1},apply:function(e,t){var n;return e.addClass(t.selectMultiClass),n=d(e,t),a(e,e,t),{remove:function(){e.removeClass(t.selectMultiClass),n&&e.unwrap()},update:C}}},{match:function(e){return e.is("textarea")},apply:function(e,t){var n;return e.addClass(t.textareaClass),n=d(e,t),a(e,e,t),{remove:function(){e.removeClass(t.textareaClass),n&&e.unwrap()},update:C}}}];m()&&!v()&&(H=!1),e.uniform={defaults:{activeClass:"active",autoHide:!0,buttonClass:"button",checkboxClass:"checker",checkedClass:"checked",disabledClass:"disabled",eventNamespace:".uniform",fileButtonClass:"action",fileButtonHtml:"Choose File",fileClass:"uploader",fileDefaultHtml:"No file selected",filenameClass:"filename",focusClass:"focus",hoverClass:"hover",idPrefix:"uniform",inputAddTypeAsClass:!0,inputClass:"uniform-input",radioClass:"radio",resetDefaultHtml:"Reset",resetSelector:!1,selectAutoWidth:!0,selectClass:"selector",selectMultiClass:"uniform-multiselect",submitDefaultHtml:"Submit",textareaClass:"uniform",useID:!0,wrapperClass:null},elements:[]},e.fn.uniform=function(t){var n=this;return t=e.extend({},e.uniform.defaults,t),x||(x=!0,f()&&(H=!1)),H?(t.resetSelector&&e(t.resetSelector).mouseup(function(){window.setTimeout(function(){e.uniform.update(n)},10)}),this.each(function(){var n,s,a,i=e(this);if(i.data("uniformed"))return e.uniform.update(i),void 0;for(n=0;A.length>n;n+=1)if(s=A[n],s.match(i,t))return a=s.apply(i,t),i.data("uniformed",a),e.uniform.elements.push(i.get(0)),void 0})):this},e.uniform.restore=e.fn.uniform.restore=function(n){n===t&&(n=e.uniform.elements),e(n).each(function(){var t,n,s=e(this);n=s.data("uniformed"),n&&(n.remove(),t=e.inArray(this,e.uniform.elements),t>=0&&e.uniform.elements.splice(t,1),s.removeData("uniformed"))})},e.uniform.update=e.fn.uniform.update=function(n){n===t&&(n=e.uniform.elements),e(n).each(function(){var t,n=e(this);t=n.data("uniformed"),t&&t.update(n,t.options)})}})(jQuery);
122/* End */
123;
124; /* Start:"a:4:{s:4:"full";s:95:"/bitrix/templates/aspro-allcorp3heat/vendor/js/carousel/owl/owl.carousel.min.js?168603498154160";s:6:"source";s:75:"/bitrix/templates/aspro-allcorp3heat/vendor/js/carousel/owl/owl.carousel.js";s:3:"min";s:79:"/bitrix/templates/aspro-allcorp3heat/vendor/js/carousel/owl/owl.carousel.min.js";s:3:"map";s:83:"/bitrix/templates/aspro-allcorp3heat/vendor/js/carousel/owl/owl.carousel.min.js.map";}"*/
125/**
126 * Owl carousel
127 * @version 2.3.4
128 * @author Bartosz Wojciechowski
129 * @author David Deutsch
130 * @license The MIT License (MIT)
131 * @todo Lazy Load Icon
132 * @todo prevent animationend bubling
133 * @todo itemsScaleUp
134 * @todo Test Zepto
135 * @todo stagePadding calculate wrong active classes
136 */
137!function($,window,document,undefined){function Owl(element,options){this.settings=null,this.options=$.extend({},Owl.Defaults,options),this.$element=$(element),this._handlers={},this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._widths=[],this._invalidated={},this._pipe=[],this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null},this._states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}},$.each(["onResize","onThrottledResize"],$.proxy((function(i,handler){this._handlers[handler]=$.proxy(this[handler],this)}),this)),$.each(Owl.Plugins,$.proxy((function(key,plugin){this._plugins[key.charAt(0).toLowerCase()+key.slice(1)]=new plugin(this)}),this)),$.each(Owl.Workers,$.proxy((function(priority,worker){this._pipe.push({filter:worker.filter,run:$.proxy(worker.run,this)})}),this)),this.setup(),this.initialize()}Owl.Defaults={items:3,loop:!1,center:!1,rewind:!1,checkVisibility:!0,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:window,fallbackEasing:"swing",slideTransition:"",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",refreshClass:"owl-refresh",loadedClass:"owl-loaded",loadingClass:"owl-loading",rtlClass:"owl-rtl",responsiveClass:"owl-responsive",dragClass:"owl-drag",itemClass:"owl-item",stageClass:"owl-stage",stageOuterClass:"owl-stage-outer",grabClass:"owl-grab"},Owl.Width={Default:"default",Inner:"inner",Outer:"outer"},Owl.Type={Event:"event",State:"state"},Owl.Plugins={},Owl.Workers=[{filter:["width","settings"],run:function(){this._width=this.$element.width()}},{filter:["width","items","settings"],run:function(cache){cache.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){this.$stage.children(".cloned").remove()}},{filter:["width","items","settings"],run:function(cache){var margin=this.settings.margin||"",grid=!this.settings.autoWidth,rtl=this.settings.rtl,css={width:"auto","margin-left":rtl?margin:"","margin-right":rtl?"":margin};!grid&&this.$stage.children().css(css),cache.css=css}},{filter:["width","items","settings"],run:function(cache){var width=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,merge=null,iterator=this._items.length,grid=!this.settings.autoWidth,widths=[];for(cache.items={merge:!1,width:width};iterator--;)merge=this._mergers[iterator],merge=this.settings.mergeFit&&Math.min(merge,this.settings.items)||merge,cache.items.merge=merge>1||cache.items.merge,widths[iterator]=grid?width*merge:this._items[iterator].width();this._widths=widths}},{filter:["items","settings"],run:function(){var clones=[],items=this._items,settings=this.settings,view=Math.max(2*settings.items,4),size=2*Math.ceil(items.length/2),repeat=settings.loop&&items.length?settings.rewind?view:Math.max(view,size):0,append="",prepend="";for(repeat/=2;repeat>0;)clones.push(this.normalize(clones.length/2,!0)),append+=items[clones[clones.length-1]][0].outerHTML,clones.push(this.normalize(items.length-1-(clones.length-1)/2,!0)),prepend=items[clones[clones.length-1]][0].outerHTML+prepend,repeat-=1;this._clones=clones;const $append=$(append),$prepend=$(prepend);if(settings.escapeTag){const escapeTagWith=settings.escapeTagWith||"div";$append.each((function(){const $clonedH1=$(this).find(settings.escapeTag);$clonedH1.length&&$clonedH1.each((function(){const replacement="<"+escapeTagWith+" class='"+$clonedH1.prop("classList").value+"'>"+$clonedH1.html()+"</"+escapeTagWith+">";$(this).replaceWith(replacement)}))}
137)),$prepend.each((function(){const $clonedH1=$(this).find(settings.escapeTag);$clonedH1.length&&$clonedH1.each((function(){const replacement="<"+escapeTagWith+" class='"+$clonedH1.prop("classList").value+"'>"+$clonedH1.html()+"</"+escapeTagWith+">";$(this).replaceWith(replacement)}))}))}$append.addClass("cloned").appendTo(this.$stage),$prepend.addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){var rtl=this.settings.rtl?1:-1,size=this._clones.length+this._items.length,iterator=-1,previous=0,current=0,coordinates=[],pullToEnd=!1;for(this._widths[this._widths.length-1]<this._width&&!this.settings.loop&&this.settings.lightDrag&&(pullToEnd=this._width-this._widths[this._widths.length-1]);++iterator<size;)previous=coordinates[iterator-1]||0,current=this._widths[this.relative(iterator)]+this.settings.margin,iterator==size-2&&pullToEnd?coordinates.push(previous+current*rtl+pullToEnd+this.settings.margin):coordinates.push(previous+current*rtl);this._coordinates=coordinates}},{filter:["width","items","settings"],run:function(){var padding=this.settings.stagePadding,coordinates=this._coordinates,css={width:Math.ceil(Math.abs(coordinates[coordinates.length-1]))+2*padding,"padding-left":padding||"","padding-right":padding||""};this.$stage.css(css)}},{filter:["width","items","settings"],run:function(cache){var iterator=this._coordinates.length,grid=!this.settings.autoWidth,items=this.$stage.children();if(grid&&cache.items.merge)for(;iterator--;)cache.css.width=this._widths[this.relative(iterator)],items.eq(iterator).css(cache.css);else grid&&(cache.css.width=cache.items.width,items.css(cache.css))}},{filter:["items"],run:function(){this._coordinates.length<1&&this.$stage.removeAttr("style")}},{filter:["width","items","settings"],run:function(cache){cache.current=cache.current?this.$stage.children().index(cache.current):0,cache.current=Math.max(this.minimum(),Math.min(this.maximum(),cache.current)),this.reset(cache.current)}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){var rtl=this.settings.rtl?1:-1,padding=2*this.settings.stagePadding,begin=this.coordinates(this.current())+padding,end=begin+this.width()*rtl,inner,outer,matches=[],i,n;for(i=0,n=this._coordinates.length;i<n;i++)inner=this._coordinates[i-1]||0,outer=Math.abs(this._coordinates[i])+padding*rtl,(this.op(inner,"<=",begin)&&this.op(inner,">",end)||this.op(outer,"<",begin)&&this.op(outer,">",end))&&matches.push(i);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+matches.join("), :eq(")+")").addClass("active"),this.$stage.children(".center").removeClass("center"),this.settings.center&&this.$stage.children().eq(this.current()).addClass("center")}}],Owl.prototype.initializeStage=function(){this.$stage=this.$element.find("."+this.settings.stageClass),this.$stage.length||(this.$element.addClass(this.options.loadingClass),this.$stage=$("<"+this.settings.stageElement+">",{class:this.settings.stageClass}).wrap($("<div/>",{class:this.settings.stageOuterClass})),this.$element.append(this.$stage.parent()))},Owl.prototype.initializeItems=function(){var $items=this.$element.find(".owl-item");if($items.length)return this._items=$items.get().map((function(item){return $(item)})),this._mergers=this._items.map((function(){return 1})),void this.refresh();this.replace(this.$element.children().not(this.$stage.parent())),this.isVisible()?this.refresh():this.invalidate("width"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass)},Owl.prototype.initialize=function(){var imgs,nestedSelector,width;(this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading"))&&(imgs=this.$element.find("img"),nestedSelector=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:void 0,width=this.$element.children(nestedSelector).width(),imgs.length&&width<=0&&this.preloadAutoWidthImages(imgs));this.initializeStage(),this.initializeItems(),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},Owl.prototype.isVisible=function(){return!this.settings.checkVisibility||this.$element.is(":visible")},Owl.prototype.setup=function(){var viewport=this.viewport(),over
vendor: 6,646 bytes, line 137
137writes=this.options.responsive,match=-1,settings=null;overwrites?($.each(overwrites,(function(breakpoint){breakpoint<=viewport&&breakpoint>match&&(match=Number(breakpoint))})),"function"==typeof(settings=$.extend({},this.options,overwrites[match])).stagePadding&&(settings.stagePadding=settings.stagePadding()),delete settings.responsive,settings.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(new RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+match))):settings=$.extend({},this.options),this.trigger("change",{property:{name:"settings",value:settings}}),this._breakpoint=match,this.settings=settings,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}})},Owl.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},Owl.prototype.prepare=function(item){var event=this.trigger("prepare",{content:item});return event.data||(event.data=$("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).append(item)),this.trigger("prepared",{content:event.data}),event.data},Owl.prototype.update=function(){for(var i=0,n=this._pipe.length,filter=$.proxy((function(p){return this[p]}),this._invalidated),cache={};i<n;)(this._invalidated.all||$.grep(this._pipe[i].filter,filter).length>0)&&this._pipe[i].run(cache),i++;this._invalidated={},!this.is("valid")&&this.enter("valid")},Owl.prototype.width=function(dimension){switch(dimension=dimension||Owl.Width.Default){case Owl.Width.Inner:case Owl.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},Owl.prototype.refresh=function(){this.enter("refreshing"),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$element.addClass(this.options.refreshClass),this.update(),this.$element.removeClass(this.options.refreshClass),this.leave("refreshing"),this.trigger("refreshed")},Owl.prototype.onThrottledResize=function(){window.clearTimeout(this.resizeTimer),this.resizeTimer=window.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},Owl.prototype.onResize=function(){return!!this._items.length&&(this._width!==this.$element.width()&&(!!this.isVisible()&&(this.enter("resizing"),this.trigger("resize").isDefaultPrevented()?(this.leave("resizing"),!1):(this.invalidate("width"),this.refresh(),this.leave("resizing"),void this.trigger("resized")))))},Owl.prototype.registerEventHandlers=function(){$.support.transition&&this.$stage.on($.support.transition.end+".owl.core",$.proxy(this.onTransitionEnd,this)),!1!==this.settings.responsive&&this.on(window,"resize",this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on("mousedown.owl.core",$.proxy(this.onDragStart,this)),this.$stage.on("dragstart.owl.core selectstart.owl.core",(function(){return!1}))),this.settings.touchDrag&&(this.$stage.on("touchstart.owl.core",$.proxy(this.onDragStart,this)),this.$stage.on("touchcancel.owl.core",$.proxy(this.onDragEnd,this)))},Owl.prototype.onDragStart=function(event){var stage=null;3!==event.which&&("mouseDragDynamic"in this.settings&&!this.settings.mouseDragDynamic||(this.settings.marginMove?stage={x:stage=this.$stage.css("margin-left").replace("px",""),y:0}:$.support.transform?stage={x:(stage=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","))[16===stage.length?12:4],y:stage[16===stage.length?13:5]}:(stage=this.$stage.position(),stage={x:this.settings.rtl?stage.left+this.$stage.width()-this.width()+this.settings.margin:stage.left,y:stage.top}),this.is("animating")&&($.support.transform?this.animate(stage.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleClass(this.options.grabClass,"mousedown"===event.type),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=$(event.target),this._drag.stage.start=stage,this._drag.stage.current=stage,this._drag.pointer=this.pointer(event),$(document).on("mouseup.owl.core touchend.owl.core",$.proxy(this.onDragEnd,this)),$(document).one("mousemove.owl.core touchmove.owl.core",$.proxy((function(event){var delta=this.difference(this._drag.pointer,this.pointer(event));$(document).on("mousemove.owl.core touchmove.owl.core",$.proxy(this.onDragMove,this)),Math.abs(delta.x)<Math.abs(delta.y)&&this.is("valid")||(event.preventDefault(),this.enter("dragging"),this.trigger("drag"))}),this))))},Owl.prototype.onDragMove=function(event){var minimum=null,maximum=null,pull=null,delta=this.difference(this._drag.pointer,this.pointer(event)),stage=this.difference(this._drag.stage.start,delta);this.is("dragging")&&(event.preventDefault(),this.settings.loop?(minimum=this.coordinates(this.minimum()),maximum=this.coordinates(this.maximum()+1)-minimum,stage.x=((stage.x-minimum)%maximum+maximum)%maximum+minimum):(minimum=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum()),maximum=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum()),pull=this.settings.pullDrag?-1*delta.x/5:0,stage.x=Math.max(Math.min(stage.x,minimum+pull),maximum+pull)),this._drag.stage.current=stage,this.animate(stage.x))},Owl.prototype.onDragEnd=function(event){var delta=this.difference(this._drag.pointer,this.pointer(event)),stage=this._drag.stage.current,direction=delta.x>0^this.settings.rtl?"left":"right";if($(document).off(".owl.core"),this.$element.removeClass(this.options.grabClass),0!==delta.x&&this.is("dragging")||!this.is("valid")){this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(stage.x,0!==delta.x?direction:this._drag.direction)),this.invalidate("position");var bUpdate=!1;this.settings.loop||(bUpdate=0===this.current()?stage.x>0:stage.x<this.coordinates()[this._items.length-1]),this.settings.lightDrag&&!bUpdate||this.update(),this._drag.direction=direction,(Math.abs(delta.x)>3||(new Date).getTime()-this._drag.time>300)&&this._drag.target.one("click.owl.core",(function(){return!1}))}this.is("dragging")&&(this.leave("dragging"),this.trigger("dragged"))},Owl.prototype.closest=function(coordinate,direction){var position=-1,pull=30,width=this.width(),coordinates=this.coordinates();return this.settings.freeDrag||$.each(coordinates,$.proxy((function(index,value){return"left"===direction&&coordinate>value-30&&coordinate<value+30?position=index:"right"===direction&&coordinate>value-width-30&&coordinate<value-width+30?position=index+1:this.op(coordinate,"<",value)&&this.op(coordinate,">",void 0!==coordinates[index+1]?coordinates[index+1]:value-width)&&(position="left"===direction?index+1:index),-1===
vendor: 11,748 bytes, line 137
137position}),this)),this.settings.loop||(this.op(coordinate,">",coordinates[this.minimum()])?position=coordinate=this.minimum():this.op(coordinate,"<",coordinates[this.maximum()])&&(position=coordinate=this.maximum())),position},Owl.prototype.animate=function(coordinate){var animate=this.speed()>0;this.is("animating")&&this.onTransitionEnd(),animate&&(this.enter("animating"),this.trigger("translate")),this.settings.marginMove?this.$stage.css({"margin-left":coordinate+"px",transition:this.speed()/1e3+"s"+(this.settings.slideTransition?" "+this.settings.slideTransition:"")}):$.support.transform3d&&$.support.transition?this.$stage.css({transform:"translate3d("+coordinate+"px,0px,0px)",transition:this.speed()/1e3+"s"+(this.settings.slideTransition?" "+this.settings.slideTransition:"")}):animate?this.$stage.animate({left:coordinate+"px"},this.speed(),this.settings.fallbackEasing,$.proxy(this.onTransitionEnd,this)):this.$stage.css({left:coordinate+"px"})},Owl.prototype.is=function(state){return this._states.current[state]&&this._states.current[state]>0},Owl.prototype.current=function(position){if(void 0===position)return this._current;if(0!==this._items.length){if(position=this.normalize(position),this._current!==position){var event=this.trigger("change",{property:{name:"position",value:position}});void 0!==event.data&&(position=this.normalize(event.data)),this._current=position,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current}},Owl.prototype.invalidate=function(part){return"string"===$.type(part)&&(this._invalidated[part]=!0,this.is("valid")&&this.leave("valid")),$.map(this._invalidated,(function(v,i){return i}))},Owl.prototype.reset=function(position){void 0!==(position=this.normalize(position))&&(this._speed=0,this._current=position,this.suppress(["translate","translated"]),this.animate(this.coordinates(position)),this.release(["translate","translated"]))},Owl.prototype.normalize=function(position,relative){var n=this._items.length,m=relative?0:this._clones.length;return!this.isNumeric(position)||n<1?position=void 0:(position<0||position>=n+m)&&(position=((position-m/2)%n+n)%n+m/2),position},Owl.prototype.relative=function(position){return position-=this._clones.length/2,this.normalize(position,!0)},Owl.prototype.maximum=function(relative){var settings=this.settings,maximum=this._coordinates.length,iterator,reciprocalItemsWidth,elementWidth;if(settings.loop)maximum=this._clones.length/2+this._items.length-1;else if(settings.autoWidth||settings.merge){if(iterator=this._items.length)for(reciprocalItemsWidth=this._items[--iterator].width(),elementWidth=this.$element.width();iterator--&&!((reciprocalItemsWidth+=this._items[iterator].width()+this.settings.margin)>elementWidth););maximum=iterator+1}else maximum=settings.center?this._items.length-1:this._items.length-settings.items;return relative&&(maximum-=this._clones.length/2),Math.max(maximum,0)},Owl.prototype.minimum=function(relative){return relative?0:this._clones.length/2},Owl.prototype.items=function(position){return void 0===position?this._items.slice():(position=this.normalize(position,!0),this._items[position])},Owl.prototype.mergers=function(position){return void 0===position?this._mergers.slice():(position=this.normalize(position,!0),this._mergers[position])},Owl.prototype.clones=function(position){var odd=this._clones.length/2,even=odd+this._items.length,map=function(index){return index%2==0?even+index/2:odd-(index+1)/2};return void 0===position?$.map(this._clones,(function(v,i){return map(i)})):$.map(this._clones,(function(v,i){return v===position?map(i):null}))},Owl.prototype.speed=function(speed){return void 0!==speed&&(this._speed=speed),this._speed},Owl.prototype.coordinates=function(position){var multiplier=1,newPosition=position-1,coordinate;return void 0===position?$.map(this._coordinates,$.proxy((function(coordinate,index){return this.coordinates(index)}),this)):(this.settings.center?(this.settings.rtl&&(multiplier=-1,newPosition=position+1),coordinate=this._coordinates[position],coordinate+=(this.width()-coordinate+(this._coordinates[newPosition]||0))/2*multiplier):coordinate=this._coordinates[newPosition]||0,coordinate=Math.ceil(coordinate))},Owl.prototype.duration=function(from,to,factor){return 0===factor?0:Math.min(Math.max(Math.abs(to-from),1),6)*Math.abs(factor||this.settings.smartSpeed)},Owl.prototype.to=function(position,speed){var current=this.current(),revert=null,distance=position-this.relative(current),direction=(distance>0)-(distance<0),items=this._items.length,minimum=this.minimum(),maximum=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(distance)>items/2&&(distance+=-1*direction*items),(revert=(((position=current+distance)-minimum)%items+items)%items+minimum)!==position&&revert-distance<=maximum&&revert-distance>0&&(current=revert-distance,position=revert,this.reset(current))):position=this.settings.rewind?(position%(maximum+=1)+maximum)%maximum:Math.max(minimum,Math.min(maximum,position)),this.speed(this.duration(current,position,speed)),this.current(position),this.isVisible()&&this.update()},Owl.prototype.next=function(speed){speed=speed||!1,this.to(this.relative(this.current())+1,speed)},Owl.prototype.prev=function(speed){speed=speed||!1,this.to(this.relative(this.current())-1,speed)},Owl.prototype.onTransitionEnd=function(event){if(void 0!==event&&(event.stopPropagation(),(event.target||event.srcElement||event.originalTarget)!==this.$stage.get(0)))return!1;this.leave("animating"),this.trigger("translated")},Owl.prototype.viewport=function(){var width;return this.options.responsiveBaseElement!==window?width=$(this.options.responsiveBaseElement).width():window.innerWidth?width=window.innerWidth:document.documentElement&&document.documentElement.clientWidth?width=document.documentElement.clientWidth:console.warn("Can not detect viewport width."),width},Owl.prototype.replace=function(content){this.$stage.empty(),this._items=[],content&&(content=content instanceof jQuery?content:$(content)),this.settings.nestedItemSelector&&(content=content.find("."+this.settings.nestedItemSelector)),content.filter((function(){return 1===this.nodeType})).each($.proxy((function(index,item){item=this.prepare(item),this.$stage.append(item),this._items.push(item),this._mergers.push(1*item.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)}),this)),this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},Owl.prototype.add=function(content,position){var current=this.relative(this._current);position=void 0===position?this._items.length:this.normalize(position,!0),content=content instanceof jQuery?content:$(content),this.trigger("add",{content:content,position:position}),content=this.prepare(content),0===this._items.length||position===this._items.length?(0===this._items.length&&this.$stage.append(content),0!==this._items.length&&this._items[position-1].after(content),this._items.push(content),this._mergers.push(1*content.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)):(this._items[position].before(content),this._items.splice(position,0,content),this._mergers.splice(position,0,1*content.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)),this._items[current]&&this.reset(this._items[current].index()),this.invalidate("items"),this.trigger("added",{content:content,position:position})},Owl.prototype.remove=function(position){void 0!==(position=this.normalize(position,!0))&&(this.trigger("remove",{content:this._items[position],position:position}),this._items[position].remove(),this._items.splice(position,1),this._mergers.splice(position,1),this.invalidate("items"),this.trigger("removed",{content:null,position:position}))},Owl.prototype.preloadAutoWidthImages=function(images){images.each($.proxy((function(i,element){this.enter("pre-loading"),element=$(element),$(new Image).one("load",$.proxy((function(e){element.attr("src",e.target.src),element.css("opacity",1),this.leave("pre-loading"),!this.is("pre-loading")&&!this.is("initializing")&&this.refresh()}),this)).attr("src",element.attr("src")||element.attr("data-src")||element.attr("data-src-retina"))}),this))},Owl.prototype.destroy=function(){for(var i in this.$element.off(".owl.core"),this.$stage.off(".owl.core"),$(document).off(".owl.core"),!1!==this.settings.responsive&&(window.clearTimeout(this.resizeTimer),this.off(window,"resize",this._handlers.onThrottledResize)),this._plugins)this._plugins[i].destroy();this.$stage.children(".cloned").remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$stage.remove(),this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class",this.$element.attr("class").replace(new RegExp(this.options.responsiveClass+"-\\S+\\s","g"),"")).removeData("owl.carousel")},Owl.prototype.op=function(a,o,b){var rtl=this.settings.rtl;switch(o){case"<":return rtl?a>b:a<b;case">":return rtl?a<b:a>b;case">=":return rtl?a<=b:a>=b;case"<=":return rtl?a>=b:a<=b}},Owl.prototype.on=function(element,event,listener,capture){element.addEventListener?element.addEventListener(event,listener,capture):element.attachEvent&&element.attachEvent("on"+event,listener)},Owl.prototype.off=function(element,event,listener,capture){element.removeEventListener?element.removeEventListener(event,listener,capture):element.detachEvent&&element.detachEvent("on"+event,listener)},Owl.prototype.trigger=function(name,data,namespace,state,enter){var status={item:{count:this._items.length,index:this.current()}},handler=$.camelCase($.grep(["on",name,namespace],(function(v){return v})).join("-").toLowerCase()),event=$.Event([name,"owl",namespace||"carousel"].join(".").toLowerCase(),$.extend({relatedTarget:this},status,data));return this._supress[name]||($.each(this._plugins,(function(name,plugin){plugin.onTrigger&&plugin.onTrigger(event)})),this.register({type:Owl.Type.Event,name:name}),this.$element.trigger(event),this.settings&&"function"==typeof this.settings[handler]&&this.settings[handler].call(this,event)),event},Owl.prototype.enter=function(name){$.each([name].concat(this._states.tags[name]||[]),$.proxy((function(i,name){void 0===this._states.current[name]&&(this._states.current[name]=0),this._states.current[name]++}),this))},Owl.prototype.leave=function(name){$.each([name].concat(this._states.tags[name]||[]),$.proxy((function(i,name){this._states.current[name]--}),this))},Owl.prototype.register=function(object){if(object.type===Owl.Type.Event){if($.event.special[object.name]||($.event.special[object.name]={}),!$.event.special[object.name].owl){var _default=$.event.special[object.name]._default;$.event.special[object.name]._default=function(e){return!_default||!_default.apply||e.namespace&&-1!==e.namespace.indexOf("owl")?e.namespace&&e.namespace.indexOf("owl")>-1:_default.apply(this,arguments)},$.event.special[object.name].owl=!0}}else object.type===Owl.Type.State&&(this._states.tags[object.name]?this._states.tags[object.name]=this._states.tags[object.name].concat(object.tags):this._states.tags[object.name]=object.tags,this._states.tags[object.name]=$.grep(this._states.tags[object.name],$.proxy((function(tag,i){return $.inArray(tag,this._states.tags[object.name])===i}),this)))},Owl.prototype.suppress=function(events){$.each(events,$.proxy((function(index,event){this._supress[event]=!0}),this))},Owl.prototype.release=function(events){$.each(events,$.proxy((function(index,event){delete this._supress[event]}
vendor: 5,086 bytes, line 137
137),this))},Owl.prototype.pointer=function(event){var result={x:null,y:null};return(event=(event=event.originalEvent||event||window.event).touches&&event.touches.length?event.touches[0]:event.changedTouches&&event.changedTouches.length?event.changedTouches[0]:event).pageX?(result.x=event.pageX,result.y=event.pageY):(result.x=event.clientX,result.y=event.clientY),result},Owl.prototype.isNumeric=function(number){return!isNaN(parseFloat(number))},Owl.prototype.difference=function(first,second){return{x:first.x-second.x,y:first.y-second.y}},$.fn.owlCarousel=function(option){var args=Array.prototype.slice.call(arguments,1);return this.each((function(){var $this=$(this),data=$this.data("owl.carousel");data||(data=new Owl(this,"object"==typeof option&&option),$this.data("owl.carousel",data),$.each(["next","prev","to","destroy","refresh","replace","add","remove"],(function(i,event){data.register({type:Owl.Type.Event,name:event}),data.$element.on(event+".owl.carousel.core",$.proxy((function(e){e.namespace&&e.relatedTarget!==this&&(this.suppress([event]),data[event].apply(this,[].slice.call(arguments,1)),this.release([event]))}),data))}))),"string"==typeof option&&"_"!==option.charAt(0)&&data[option].apply(data,args)}))},$.fn.owlCarousel.Constructor=Owl}(window.Zepto||window.jQuery,window,document),function($,window,document,undefined){var AutoRefresh=function(carousel){this._core=carousel,this._interval=null,this._visible=null,this._handlers={"initialized.owl.carousel":$.proxy((function(e){e.namespace&&this._core.settings.autoRefresh&&this.watch()}),this)},this._core.options=$.extend({},AutoRefresh.Defaults,this._core.options),this._core.$element.on(this._handlers)};AutoRefresh.Defaults={autoRefresh:!0,autoRefreshInterval:500},AutoRefresh.prototype.watch=function(){this._interval||(this._visible=this._core.isVisible(),this._interval=window.setInterval($.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},AutoRefresh.prototype.refresh=function(){this._core.isVisible()!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleClass("owl-hidden",!this._visible),this._visible&&this._core.invalidate("width")&&this._core.refresh())},AutoRefresh.prototype.destroy=function(){var handler,property;for(handler in window.clearInterval(this._interval),this._handlers)this._core.$element.off(handler,this._handlers[handler]);for(property in Object.getOwnPropertyNames(this))"function"!=typeof this[property]&&(this[property]=null)},$.fn.owlCarousel.Constructor.Plugins.AutoRefresh=AutoRefresh}(window.Zepto||window.jQuery,window,document),function($,window,document,undefined){var Lazy=function(carousel){this._core=carousel,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel resized.owl.carousel":$.proxy((function(e){if(e.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(e.property&&"position"==e.property.name||"initialized"==e.type)){var settings=this._core.settings,n=settings.center&&Math.ceil(settings.items/2)||settings.items,i=settings.center&&-1*n||0,position=(e.property&&void 0!==e.property.value?e.property.value:this._core.current())+i,clones=this._core.clones().length,load=$.proxy((function(i,v){this.load(v)}),this);for(settings.lazyLoadEager>0&&(n+=settings.lazyLoadEager,settings.loop&&(position-=settings.lazyLoadEager,n++));i++<n;)this.load(clones/2+this._core.relative(position)),clones&&$.each(this._core.clones(this._core.relative(position)),load),position++}}),this)},this._core.options=$.extend({},Lazy.Defaults,this._core.options),this._core.$element.on(this._handlers)};Lazy.Defaults={lazyLoad:!1,lazyLoadEager:0},Lazy.prototype.load=function(position){var $item=this._core.$stage.children().eq(position),$elements=$item&&$item.find(".owl-lazy");!$elements||$.inArray($item.get(0),this._loaded)>-1||($elements.each($.proxy((function(index,element){var $element=$(element),image,url=window.devicePixelRatio>1&&$element.attr("data-src-retina")||$element.attr("data-src")||$element.attr("data-srcset");this._core.trigger("load",{element:$element,url:url},"lazy"),$element.is("img")?$element.one("load.owl.lazy",$.proxy((function(){$element.css("opacity",1),this._core.trigger("loaded",{element:$element,url:url},"lazy")}),this)).attr("src",url):$element.is("source")?$element.one("load.owl.lazy",$.proxy((function(){this._core.trigger("loaded",{element:$element,url:url},"lazy")}),this)).attr("srcset",url):((image=new Image).onload=$.proxy((function(){$element.css({"background-image":'url("'+url+'")',opacity:"1"}),this._core.trigger("loaded",{element:$element,url:url},"lazy")}),this),image.src=url)}),this)),this._loaded.push($item.get(0)))},Lazy.prototype.destroy=function(){var handler,property;for(handler in this.handlers)this._core.$element.off(handler,this.handlers[handler]);for(property in Object.getOwnPropertyNames(this))"function"!=typeof this[property]&&(this[property]=null)},$.fn.owlCarousel.Constructor.Plugins.Lazy=Lazy}(window.Zepto||window.jQuery,window,document),function($,window,document,undefined){var AutoHeight=function(carousel){this._core=carou
137sel,this._previousHeight=null,this._handlers={"initialized.owl.carousel refreshed.owl.carousel":$.proxy((function(e){e.namespace&&this._core.settings.autoHeight&&this.update()}),this),"changed.owl.carousel":$.proxy((function(e){e.namespace&&this._core.settings.autoHeight&&"position"===e.property.name&&this.update()}),this),"loaded.owl.lazy":$.proxy((function(e){e.namespace&&this._core.settings.autoHeight&&e.element.closest("."+this._core.settings.itemClass).index()===this._core.current()&&this.update()}),this)},this._core.options=$.extend({},AutoHeight.Defaults,this._core.options),this._core.$element.on(this._handlers),this._intervalId=null;var refThis=this;$(window).on("load",(function(){refThis._core.settings.autoHeight&&refThis.update()})),$(window).resize((function(){refThis._core.settings.autoHeight&&(null!=refThis._intervalId&&clearTimeout(refThis._intervalId),refThis._intervalId=setTimeout((function(){refThis.update()}),250))}))};AutoHeight.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},AutoHeight.prototype.update=function(){var start=this._core._current,end=start+this._core.settings.items,lazyLoadEnabled=this._core.settings.lazyLoad,visible=this._core.$stage.children().toArray().slice(start,end),heights=[],maxheight=0;$.each(visible,(function(index,item){heights.push($(item).height())})),(maxheight=Math.max.apply(null,heights))<=1&&lazyLoadEnabled&&this._previousHeight&&(maxheight=this._previousHeight),this._previousHeight=maxheight,this._core.$stage.parent().height(maxheight).addClass(this._core.settings.autoHeightClass)},AutoHeight.prototype.destroy=function(){var handler,property;for(handler in this._handlers)this._core.$element.off(handler,this._handlers[handler]);for(property in Object.getOwnPropertyNames(this))"function"!=typeof this[property]&&(this[property]=null)},$.fn.owlCarousel.Constructor.Plugins.AutoHeight=AutoHeight}(window.Zepto||window.jQuery,window,document),function($,window,document,undefined){var Video=function(carousel){this._core=carousel,this._videos={},this._playing=null,this._handlers={"initialized.owl.carousel":$.proxy((function(e){e.namespace&&this._core.register({type:"state",name:"playing",tags:["interacting"]})}),this),"resize.owl.carousel":$.proxy((function(e){e.namespace&&this._core.settings.video&&this.isInFullScreen()&&e.preventDefault()}),this),"refreshed.owl.carousel":$.proxy((function(e){e.namespace&&this._core.is("resizing")&&this._core.$stage.find(".cloned .owl-video-frame").remove()}),this),"changed.owl.carousel":$.proxy((function(e){e.namespace&&"position"===e.property.name&&this._playing&&this.stop()}),this),"prepared.owl.carousel":$.proxy((function(e){if(e.namespace){var $element=$(e.content).find(".owl-video");$element.length&&($element.css("display","none"),this.fetch($element,$(e.content)))}}),this)},this._core.options=$.extend({},Video.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",$.proxy((function(e){this.play(e)}),this))};Video.Defaults={video:!1,videoHeight:!1,videoWidth:!1},Video.prototype.fetch=function(target,item){var type=target.attr("data-vimeo-id")?"vimeo":target.attr("data-vzaar-id")?"vzaar":"youtube",id=target.attr("data-vimeo-id")||target.attr("data-youtube-id")||target.attr("data-vzaar-id"),width=target.attr("data-width")||this._core.settings.videoWidth,height=target.attr("data-height")||this._core.settings.videoHeight,url=target.attr("href");if(!url)throw new Error("Missing video URL.");if((id=url.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com|be\-nocookie\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/))[3].indexOf("youtu")>-1)type="youtube";else if(id[3].indexOf("vimeo")>-1)type="vimeo";else{if(!(id[3].indexOf("vzaar")>-1))throw new Error("Video URL not supported.");type="vzaar"}id=id[6],this._videos[url]={type:type,id:id,width:width,height:height},item.attr("data-video",url),this.thumbnail(target,this._videos[url])},Video.prototype.thumbnail=function(target,video){var tnLink,icon,path,dimensions=video.width&&video.height?"width:"+video.width+"px;height:"+video.height+"px;":"",customTn=target.find("img"),srcType="src",lazyClass="",settings=this._core.settings,create=function(path){icon='<div class="owl-video-play-icon"></div>',tnLink=settings.lazyLoad?$("<div/>",{class:"owl-video-tn "+lazyClass,srcType:path}):$("<div/>",{class:"owl-video-tn",style:"opacity:1;background-image:url("+path+")"}),target.after(tnLink),target.after(icon)};if(target.wrap($("<div/>",{class:"owl-video-wrapper",style:dimensions})),this._core.settings.lazyLoad&&(srcType="data-src",lazyClass="owl-lazy"),customTn.length)return create(customTn.attr(srcType)),customTn.remove(),!1;"youtube"===video.type?(path="//img.youtube.com/vi/"+video.id+"/hqdefault.jpg",create(path)):"vimeo"===video.type?$.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+video.id+".json",jsonp:"callback",dataType:"jsonp",success:function(data){path=data[0].thumbnail_large,create(path)}}):"vzaar"===video.type&&$.ajax({type:"GET",url:"//vzaar.com/api/videos/"+video.id+".json",jsonp:"callback",dataType:"jsonp",success:function(data){path=data.framegrab_url,create(path)}})},Video.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},Video.prototype.play=function(event){var target,item=$(event.target).closest("."+this._core.settings.itemClass),video=this._videos[item.attr("data-video")],width=video.width||"100%",height=video.height||this._core.$stage.height(),html,iframe;this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),item=this._core.items(this._core.relative(item.index())),this._core.reset(item.index()),(html=$('<iframe frameborder="0" allowfullscreen mozallowfullscreen webkitAllowFullScreen ></iframe>
137')).attr("height",height),html.attr("width",width),"youtube"===video.type?html.attr("src","//www.youtube.com/embed/"+video.id+"?autoplay=1&rel=0&v="+video.id):"vimeo"===video.type?html.attr("src","//player.vimeo.com/video/"+video.id+"?autoplay=1"):"vzaar"===video.type&&html.attr("src","//view.vzaar.com/"+video.id+"/player?autoplay=true"),iframe=$(html).wrap('<div class="owl-video-frame" />').insertAfter(item.find(".owl-video")),this._playing=item.addClass("owl-video-playing"))},Video.prototype.isInFullScreen=function(){var element=document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement;return element&&$(element).parent().hasClass("owl-video-frame")},Video.prototype.destroy=function(){var handler,property;for(handler in this._core.$element.off("click.owl.video"),this._handlers)this._core.$element.off(handler,this._handlers[handler]);for(property in Object.getOwnPropertyNames(this))"function"!=typeof this[property]&&(this[property]=null)},$.fn.owlCarousel.Constructor.Plugins.Video=Video}(window.Zepto||window.jQuery,window,document),function($,window,document,undefined){var Animate=function(scope){this.core=scope,this.core.options=$.extend({},Animate.Defaults,this.core.options),this.swapping=!0,this.previous=void 0,this.next=void 0,this.handlers={"change.owl.carousel":$.proxy((function(e){e.namespace&&"position"==e.property.name&&(this.previous=this.core.current(),this.next=e.property.value)}),this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":$.proxy((function(e){e.namespace&&(this.swapping="translated"==e.type)}),this),"translate.owl.carousel":$.proxy((function(e){e.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()}),this)},this.core.$element.on(this.handlers)};Animate.Defaults={animateOut:!1,animateIn:!1},Animate.prototype.swap=function(){if(1===this.core.settings.items&&$.support.animation&&$.support.transition){this.core.speed(0);var left,clear=$.proxy(this.clear,this),previous=this.core.$stage.children().eq(this.previous),next=this.core.$stage.children().eq(this.next),incoming=this.core.settings.animateIn,outgoing=this.core.settings.animateOut;this.core.current()!==this.previous&&(outgoing&&(left=this.core.coordinates(this.previous)-this.core.coordinates(this.next),previous.one($.support.animation.end,clear).css({left:left+"px"}).addClass("animated owl-animated-out").addClass(outgoing)),incoming&&next.one($.support.animation.end,clear).addClass("animated owl-animated-in").addClass(incoming))}},Animate.prototype.clear=function(e){$(e.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},Animate.prototype.destroy=function(){var handler,property;for(handler in this.handlers)this.core.$element.off(handler,this.handlers[handler]);for(property in Object.getOwnPropertyNames(this))"function"!=typeof this[property]&&(this[property]=null)},$.fn.owlCarousel.Constructor.Plugins.Animate=Animate}(window.Zepto||window.jQuery,window,document),function($,window,document,undefined){var Autoplay=function(carousel){this._core=carousel,this._call=null,this._time=0,this._timeout=0,this._paused=!0,this._handlers={"changed.owl.carousel":$.proxy((function(e){e.namespace&&"settings"===e.property.name?this._core.settings.autoplay?this.play():this.stop():e.namespace&&"position"===e.property.name&&this._paused&&(this._time=0)}),this),"initialized.owl.carousel":$.proxy((function(e){e.namespace&&this._core.settings.autoplay&&this.play()}),this),"play.owl.autoplay":$.proxy((function(e,t,s){e.namespace&&this.play(t,s)}),this),"stop.owl.autoplay":$.proxy((function(e){e.namespace&&this.stop()}),this),"mouseover.owl.autoplay":$.proxy((function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()}),this),"mouseleave.owl.autoplay":$.proxy((function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()}),this),"touchstart.owl.core":$.proxy((function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()}),this),"touchend.owl.core":$.proxy((function(){this._core.settings.autoplayHoverPause&&this.play()}),this)},this._core.$element.on(this._handlers),this._core.options=$.extend({},Autoplay.Defaults,this._core.options)};Autoplay.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},Autoplay.prototype._next=function(speed){this._call=window.setTimeout($.proxy(this._next,this,speed),this._timeout*(Math.round(this.read()/this._timeout)+1)-this.read()),this._core.is("interacting")||document.hidden||this._core.next(speed||this._core.settings.autoplaySpeed)},Autoplay.prototype.read=function(){return(new Date).getTime()-this._time},Autoplay.prototype.play=function(timeout,speed){var elapsed;this._core.is("rotating")||this._core.enter("rotating"),timeout=timeout||this._core.settings.autoplayTimeout,elapsed=Math.min(this._time%(this._timeout||timeout),timeout),this._paused?(this._time=this.read(),this._paused=!1):window.clearTimeout(this._call),this._time+=this.read()%timeout-elapsed,this._timeout=timeout,this._call=window.setTimeout($.proxy(this._next,this,speed),timeout-elapsed)},Autoplay.prototype.stop=function(){this._core.is("rotating")&&(this._time=0,this._paused=!0,window.clearTimeout(this._call),this._core.leave("rotating"))},Autoplay.prototype.pause=function(){this._core.is("rotating")&&!this._paused&&(this._time=this.read(),this._paused=!0,window.clearTimeout(this._call))},Autoplay.prototype.destroy=function(){var handler,property;for(handler in this.stop(),this._handlers)this._core.$element.off(handler,this._handlers[handler]);for(property in Object.getOwnPropertyNames(this))"function"!=typeof this[property]&&(this[property]=null)},$.fn.owlCarousel.Constructor.Plugins.autoplay=Autoplay}(window.Zepto||window.jQuery,window,document),function($,window,document,undefined){"use strict";
vendor: 6,977 bytes, line 137
137var Navigation=function(carousel){this._core=carousel,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":$.proxy((function(e){e.namespace&&this._core.settings.dotsData&&this._templates.push('<div class="'+this._core.settings.dotClass+'">'+$(e.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"</div>")}),this),"added.owl.carousel":$.proxy((function(e){e.namespace&&this._core.settings.dotsData&&this._templates.splice(e.position,0,this._templates.pop())}),this),"remove.owl.carousel":$.proxy((function(e){e.namespace&&this._core.settings.dotsData&&this._templates.splice(e.position,1)}),this),"changed.owl.carousel":$.proxy((function(e){e.namespace&&"position"==e.property.name&&this.draw()}),this),"initialized.owl.carousel":$.proxy((function(e){e.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))}),this),"refreshed.owl.carousel":$.proxy((function(e){e.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))}),this)},this._core.options=$.extend({},Navigation.Defaults,this._core.options),this.$element.on(this._handlers)};Navigation.Defaults={nav:!1,navText:['<span aria-label="Previous">&#x2039;</span>','<span aria-label="Next">&#x203a;</span>'],navSpeed:!1,navElement:'button type="button" role="presentation"',navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},Navigation.prototype.initialize=function(){var override,settings=this._core.settings;for(override in this._controls.$relative=(settings.navContainer?$(settings.navContainer):$("<div>").addClass(settings.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=$("<"+settings.navElement+">").addClass(settings.navClass[0]).html(settings.navText[0]).prependTo(this._controls.$relative).on("click",$.proxy((function(e){this.prev(settings.navSpeed)}),this)),this._controls.$next=$("<"+settings.navElement+">").addClass(settings.navClass[1]).html(settings.navText[1]).appendTo(this._controls.$relative).on("click",$.proxy((function(e){this.next(settings.navSpeed)}),this)),settings.dotsData||(this._templates=[$('<button role="button">').addClass(settings.dotClass).append($("<span>")).prop("outerHTML")]),this._controls.$absolute=(settings.dotsContainer?$(settings.dotsContainer):$("<div>").addClass(settings.dotsClass).appendTo(this.$element)).addClass("disabled"),this._controls.$absolute.on("click","button",$.proxy((function(e){var index=$(e.target).parent().is(this._controls.$absolute)?$(e.target).index():$(e.target).parent().index();e.preventDefault(),this.to(index,settings.dotsSpeed)}),this)),this._overrides)this._core[override]=$.proxy(this[override],this)},Navigation.prototype.destroy=function(){var handler,control,property,override,settings;for(handler in settings=this._core.settings,this._handlers)this.$element.off(handler,this._handlers[handler]);for(control in this._controls)"$relative"===control&&settings.navContainer?this._controls[control].html(""):this._controls[control].remove();for(override in this.overides)this._core[override]=this._overrides[override];for(property in Object.getOwnPropertyNames(this))"function"!=typeof this[property]&&(this[property]=null)},Navigation.prototype.update=function(){var i,j,k,lower=this._core.clones().length/2,upper=lower+this._core.items().length,maximum=this._core.maximum(!0),settings=this._core.settings,size=settings.center||settings.autoWidth||settings.dotsData?1:settings.dotsEach||settings.items;if("page"!==settings.slideBy&&(settings.slideBy=Math.min(settings.slideBy,settings.items)),settings.dots||"page"==settings.slideBy)for(this._pages=[],i=lower,j=0,k=0;i<upper;i++){if(j>=size||0===j){if(this._pages.push({start:Math.min(maximum,i-lower),end:i-lower+size-1}),Math.min(maximum,i-lower)===maximum)break;j=0,++k}j+=this._core.mergers(this._core.relative(i))}},Navigation.prototype.draw=function(){var difference,settings=this._core.settings,disabled=this._core.items().length<=settings.items,index=this._core.relative(this._core.current()),loop=settings.loop||settings.rewind;this._controls.$relative.toggleClass("disabled",!settings.nav||disabled),settings.nav&&(this._controls.$previous.toggleClass("disabled",!loop&&index<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!loop&&index>=this._core.maximum(!0))),this._controls.$absolute.toggleClass("disabled",!settings.dots||disabled),settings.dots&&(difference=this._pages.length-this._controls.$absolute.children().length,settings.dotsData&&0!==difference?this._controls.$absolute.html(this._templates.join("")):difference>0?this._controls.$absolute.append(new Array(difference+1).join(this._templates[0])):difference<0&&this._controls.$absolute.children().slice(difference).remove(),this._controls.$absolute.find(".active").removeClass("active"),this._controls.$absolute.children().eq($.inArray(this.current(),this._pages)).addClass("active"))},Navigation.prototype.onTrigger=function(event){var settings=this._core.settings;event.page={index:$.inArray(this.current(),this._pages),count:this._pages.length,size:settings&&(settings.center||settings.autoWidth||settings.dotsData?1:settings.dotsEach||settings.items)}},Navigation.prototype.current=function(){var current=this._core.relative(this._core.current());return $.grep(this._pages,$.proxy((function(page,index){return page.start<=current&&page.end>=current}),this)).pop()},Navigation.prototype.getPosition=function(successor){var position,length,settings=this._core.settings;return"page"==settings.slideBy?(position=$.inArray(this.current(),this._pages),length=this._pages.length,successor?++position:--position,position=this._pages[(position%length+length)%length].start):(position=this._core.relative(this._core.current()),length=this._core.items().length,successor?position+=settings.slideBy:position-=settings.slideBy),position},Navigation.prototype.next=function(speed){$.proxy(this._overrides.to,this._core)(this.getPosition(!0),speed)},Navigation.prototype.prev=function(speed){$.proxy(this._overrides.to,this._core)(this.getPosition(!1),speed)},Navigation.prototype.to=function(position,speed,standard){var length;!standard&&this._pages.length?(length=this._pages.length,$.proxy(this._overrides.to,this._core)(this._pages[(position%length+length)%length].start,speed)):$.proxy(this._overrides.to,this._core)(position,speed)},$.fn.owlCarousel.Constructor.Plugins.Navigation=Navigation}(window.Zepto||window.jQuery,window,document),function($,window,document,undefined){"use strict";
137var Hash=function(carousel){this._core=carousel,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":$.proxy((function(e){e.namespace&&"URLHash"===this._core.settings.startPosition&&$(window).trigger("hashchange.owl.navigation")}),this),"prepared.owl.carousel":$.proxy((function(e){if(e.namespace){var hash=$(e.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash");if(!hash)return;this._hashes[hash]=e.content}}),this),"changed.owl.carousel":$.proxy((function(e){if(e.namespace&&"position"===e.property.name){var current=this._core.items(this._core.relative(this._core.current())),hash=$.map(this._hashes,(function(item,hash){return item===current?hash:null})).join();if(!hash||window.location.hash.slice(1)===hash)return;window.location.hash=hash}}),this)},this._core.options=$.extend({},Hash.Defaults,this._core.options),this.$element.on(this._handlers),$(window).on("hashchange.owl.navigation",$.proxy((function(e){var hash=window.location.hash.substring(1),items=this._core.$stage.children(),position=this._hashes[hash]&&items.index(this._hashes[hash]);void 0!==position&&position!==this._core.current()&&this._core.to(this._core.relative(position),!1,!0)}),this))};Hash.Defaults={URLhashListener:!1},Hash.prototype.destroy=function(){var handler,property;for(handler in $(window).off("hashchange.owl.navigation"),this._handlers)this._core.$element.off(handler,this._handlers[handler]);for(property in Object.getOwnPropertyNames(this))"function"!=typeof this[property]&&(this[property]=null)},$.fn.owlCarousel.Constructor.Plugins.Hash=Hash}(window.Zepto||window.jQuery,window,document),function($,window,document,undefined){var style=$("<support>").get(0).style,prefixes="Webkit Moz O ms".split(" "),events={transition:{end:{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}},animation:{end:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",animation:"animationend"}}},tests_csstransforms=function(){return!!test("transform")},tests_csstransforms3d=function(){return!!test("perspective")},tests_csstransitions,tests_cssanimations=function(){return!!test("animation")};function test(property,prefixed){var result=!1,upper=property.charAt(0).toUpperCase()+property.slice(1);return $.each((property+" "+prefixes.join(upper+" ")+upper).split(" "),(function(i,property){if(void 0!==style[property])return result=!prefixed||property,!1})),result}function prefixed(property){return test(property,!0)}(function(){return!!test("transition")})()&&($.support.transition=new String(prefixed("transition")),$.support.transition.end=events.transition.end[$.support.transition]),tests_cssanimations()&&($.support.animation=new String(prefixed("animation")),$.support.animation.end=events.animation.end[$.support.animation]),tests_csstransforms()&&($.support.transform=new String(prefixed("transform")),$.support.transform3d=tests_csstransforms3d())}(window.Zepto||window.jQuery,window,document);
138/* End */
139;
140; /* Start:"a:4:{s:4:"full";s:79:"/bitrix/templates/aspro-allcorp3heat/js/jquery.countdown.min.js?168603498120851";s:6:"source";s:63:"/bitrix/templates/aspro-allcorp3heat/js/jquery.countdown.min.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
141!(function (e) {
142  var t = "countdown",
143    i = 0,
144    s = 1,
145    n = 2,
146    o = 3,
147    r = 4,
148    a = 5,
149    l = 6;
150  e.JQPlugin.createPlugin({
151    name: t,
152    defaultOptions: {
153      until: null,
154      since: null,
155      timezone: null,
156      serverSync: null,
157      format: "dHMS",
158      layout: "",
159      compact: !1,
160      padZeroes: !1,
161      significant: 0,
162      description: "",
163      expiryUrl: "",
164      expiryText: "",
165      alwaysExpire: !1,
166      onExpiry: null,
167      onTick: null,
168      tickInterval: 1,
169    },
170    regionalOptions: {
171      "": {
172        labels: ["Years", "Months", "Weeks", "Days", "Hours", "Minutes", "Seconds"],
173        labels1: ["Year", "Month", "Week", "Day", "Hour", "Minute", "Second"],
174        compactLabels: ["y", "m", "w", "d"],
175        whichLabels: null,
176        digits: ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
177        timeSeparator: ":",
178        isRTL: !1,
179      },
180    },
181    _getters: ["getTimes"],
182    _rtlClass: t + "-rtl",
183    _sectionClass: t + "-section",
184    _amountClass: t + "-amount",
185    _periodClass: t + "-period",
186    _rowClass: t + "-row",
187    _holdingClass: t + "-holding",
188    _showClass: t + "-show",
189    _descrClass: t + "-descr",
190    _timerElems: [],
191    _init: function () {
192      function t(e) {
193        var a = 1e12 > e ? (n ? performance.now() + performance.timing.navigationStart : s()) : e || s();
194        a - r >= 1e3 && (i._updateElems(), (r = a)), o(t);
195      }
196      var i = this;
197      this._super(), (this._serverSyncs = []);
198      
199    //   console.log(i);
200      var s =
201          "function" == typeof Date.now
202            ? Date.now
203            : function () {
204                return new Date().getTime();
205              },
206        n = window.performance && "function" == typeof window.performance.now,
207        o =
208          window.requestAnimationFrame ||
209          window.webkitRequestAnimationFrame ||
210          window.mozRequestAnimationFrame ||
211          window.oRequestAnimationFrame ||
212          window.msRequestAnimationFrame ||
213          null,
214        r = 0;
215      !o || e.noRequestAnimationFrame
216        ? ((e.noRequestAnimationFrame = null),
217          setInterval(function () {
218            i._updateElems();
219          }, 980))
220        : ((r =
221            window.animationStartTime ||
222            window.webkitAnimationStartTime ||
223            window.mozAnimationStartTime ||
224            window.oAnimationStartTime ||
225            window.msAnimationStartTime ||
226            s()),
227          o(t));
228    },
229    UTCDate: function (e, t, i, s, n, o, r, a) {
230      "object" == typeof t &&
231        t.constructor == Date &&
232        ((a = t.getMilliseconds()),
233        (r = t.getSeconds()),
234        (o = t.getMinutes()),
235        (n = t.getHours()),
236        (s = t.getDate()),
237        (i = t.getMonth()),
238        (t = t.getFullYear()));
239      var l = new Date();
240      return (
241        l.setUTCFullYear(t),
242        l.setUTCDate(1),
243        l.setUTCMonth(i || 0),
244        l.setUTCDate(s || 1),
245        l.setUTCHours(n || 0),
246        l.setUTCMinutes((o || 0) - (Math.abs(e) < 30 ? 60 * e : e)),
247        l.setUTCSeconds(r || 0),
248        l.setUTCMilliseconds(a || 0),
249        l
250      );
251    },
252    periodsToSeconds: function (e) {
253      return 31557600 * e[0] + 2629800 * e[1] + 604800 * e[2] + 86400 * e[3] + 3600 * e[4] + 60 * e[5] + e[6];
254    },
255    resync: function () {
256      var t = this;
257      e("." + this._getMarker()).each(function () {
258        var i = e.data(this, t.name);
259        if (i.options.serverSync) {
260          for (var s = null, n = 0; n < t._serverSyncs.length; n++)
261            if (t._serverSyncs[n][0] == i.options.serverSync) {
262              s = t._serverSyncs[n];
263              break;
264            }
265          if (null == s[2]) {
266            var o = e.isFunction(i.options.serverSync) ? i.options.serverSync.apply(this, []) : null;
267            s[2] = (o ? new Date().getTime() - o.getTime() : 0) - s[1];
268          }
269          i._since && i._since.setMilliseconds(i._since.getMilliseconds() + s[2]),
270            i._until.setMilliseconds(i._until.getMilliseconds() + s[2]);
271        }
272      });
273      for (var i = 0; i < t._serverSyncs.length; i++)
274        null != t._serverSyncs[i][2] && ((t._serverSyncs[i][1] += t._serverSyncs[i][2]), delete t._serverSyncs[i][2]);
275    },
276    _instSettings: function (e, t) {
277      return { _periods: [0, 0, 0, 0, 0, 0, 0] };
278    },
279    _addElem: function (e) {
280        // console.log(e);
281      this._hasElem(e) || this._timerElems.push(e);
282      
283    },
284    _hasElem: function (t) {
285      return e.inArray(t, this._timerElems) > -1;
286    },
287    _removeElem: function (t) {
288      this._timerElems = e.map(this._timerElems, function (e) {
289        return e == t ? null : e;
290      });
291    },
292    _updateElems: function () {
293      for (var e = this._timerElems.length - 1; e >= 0; e--) this._updateCountdown(this._timerElems[e]);
294    },
295    _optionsChanged: function (t, i, s) {
296      s.layout && (s.layout = s.layout.replace(/&lt;/g, "<").replace(/&gt;/g, ">")),
297        this._resetExtraLabels(i.options, s);
298      var n = i.options.timezone != s.timezone;
299      e.extend(i.options, s), this._adjustSettings(t, i, null != s.until || null != s.since || n);
300      var o = new Date();
301      ((i._since && i._since < o) || (i._until && i._until > o)) && this._addElem(t[0]), this._updateCountdown(t, i);
302    },
303    _updateCountdown: function (t, i) {
304      if (((t = t.jquery ? t : e(t)), (i = i || this._getInst(t)), i && i.options)) {
305        if (
306          (t.html(this._generateHTML(i)).toggleClass(this._rtlClass, i.options.isRTL), e.isFunction(i.options.onT
306ick))
307        ) {
308          var s = "lap" != i._hold ? i._periods : this._calculatePeriods(i, i._show, i.options.significant, new Date());
309          (1 == i.options.tickInterval || this.periodsToSeconds(s) % i.options.tickInterval == 0) &&
310            i.options.onTick.apply(t[0], [s]);
311        }
312        var n =
313          "pause" != i._hold &&
314          (i._since ? i._now.getTime() < i._since.getTime() : i._now.getTime() >= i._until.getTime());
315        if (n && !i._expiring) {
316          if (((i._expiring = !0), this._hasElem(t[0]) || i.options.alwaysExpire)) {
317            if (
318              (this._removeElem(t[0]),
319              e.isFunction(i.options.onExpiry) && i.options.onExpiry.apply(t[0], []),
320              i.options.expiryText)
321            ) {
322              var o = i.options.layout;
323              (i.options.layout = i.options.expiryText), this._updateCountdown(t[0], i), (i.options.layout = o);
324            }
325            i.options.expiryUrl && (window.location = i.options.expiryUrl);
326          }
327          i._expiring = !1;
328        } else "pause" == i._hold && this._removeElem(t[0]);
329      }
330    },
331    _resetExtraLabels: function (e, t) {
332      for (var i in t) i.match(/[Ll]abels[02-9]|compactLabels1/) && (e[i] = t[i]);
333      for (var i in e) i.match(/[Ll]abels[02-9]|compactLabels1/) && "undefined" == typeof t[i] && (e[i] = null);
334    },
335    _adjustSettings: function (t, i, s) {
336      for (var n = null, o = 0; o < this._serverSyncs.length; o++)
337        if (this._serverSyncs[o][0] == i.options.serverSync) {
338          n = this._serverSyncs[o][1];
339          break;
340        }
341      if (null != n)
342        var r = i.options.serverSync ? n : 0,
343          a = new Date();
344      else {
345        var l = e.isFunction(i.options.serverSync) ? i.options.serverSync.apply(t[0], []) : null,
346          a = new Date(),
347          r = l ? a.getTime() - l.getTime() : 0;
348        this._serverSyncs.push([i.options.serverSync, r]);
349      }
350      var _ = i.options.timezone;
351      (_ = null == _ ? -a.getTimezoneOffset() : _),
352        (s || (!s && null == i._until && null == i._since)) &&
353          ((i._since = i.options.since),
354          null != i._since &&
355            ((i._since = this.UTCDate(_, this._determineTime(i._since, null))),
356            i._since && r && i._since.setMilliseconds(i._since.getMilliseconds() + r)),
357          (i._until = this.UTCDate(_, this._determineTime(i.options.until, a))),
358          r && i._until.setMilliseconds(i._until.getMilliseconds() + r)),
359        (i._show = this._determineShow(i));
360    },
361    _preDestroy: function (e, t) {
362      this._removeElem(e[0]), e.empty();
363    },
364    pause: function (e) {
365      this._hold(e, "pause");
366    },
367    lap: function (e) {
368      this._hold(e, "lap");
369    },
370    resume: function (e) {
371      this._hold(e, null);
372    },
373    toggle: function (t) {
374      var i = e.data(t, this.name) || {};
375      this[i._hold ? "resume" : "pause"](t);
376    },
377    toggleLap: function (t) {
378      var i = e.data(t, this.name) || {};
379      this[i._hold ? "resume" : "lap"](t);
380    },
381    _hold: function (t, i) {
382      var s = e.data(t, this.name);
383      if (s) {
384        if ("pause" == s._hold && !i) {
385          s._periods = s._savePeriods;
386          var n = s._since ? "-" : "+";
387          (s[s._since ? "_since" : "_until"] = this._determineTime(
388            n +
389              s._periods[0] +
390              "y" +
391              n +
392              s._periods[1] +
393              "o" +
394              n +
395              s._periods[2] +
396              "w" +
397              n +
398              s._periods[3] +
399              "d" +
400              n +
401              s._periods[4] +
402              "h" +
403              n +
404              s._periods[5] +
405              "m" +
406              n +
407              s._periods[6] +
408              "s"
409          )),
410            this._addElem(t);
411        }
412        (s._hold = i),
413          (s._savePeriods = "pause" == i ? s._periods : null),
414          e.data(t, this.name, s),
415          this._updateCountdown(t, s);
416      }
417    },
418    getTimes: function (t) {
419      var i = e.data(t, this.name);
420      return i
421        ? "pause" == i._hold
422          ? i._savePeriods
423          : i._hold
424          ? this._calculatePeriods(i, i._show, i.options.significant, new Date())
425          : i._periods
426        : null;
427    },
428    _determineTime: function (e, t) {
429      var i = this,
430        s = function (e) {
431          var t = new Date();
432          return t.setTime(t.getTime() + 1e3 * e), t;
433        },
434        n = function (e) {
435          e = e.toLowerCase();
436          for (
437            var t = new Date(),
438              s = t.getFullYear(),
439              n = t.getMonth(),
440              o = t.getDate(),
441              r = t.getHours(),
442              a = t.getMinutes(),
443              l = t.getSeconds(),
444              _ = /([+-]?[0-9]+)\s*(s|m|h|d|w|o|y)?/g,
445              p = _.exec(e);
446            p;
447
448          ) {
449            switch (p[2] || "s") {
450              case "s":
451                l += parseInt(p[1], 10);
452                break;
453              case "m":
454                a += parseInt(p[1], 10);
455                break;
456              case "h":
457                r += parseInt(p[1], 10);
458                break;
459              case "d":
460                o += parseInt(p[1], 10);
461                break;
462              case "w":
463                o += 7 * parseInt(p[1], 10);
464                break;
465              case "o":
466                (n += parseInt(p[1], 10)), (o = Math.min(o, i._getDaysInMonth(s, n)));
467                break;
468              case "y":
469                (s += parseInt(p[1], 10)), (o = Math.min(o, i._getDaysInMonth(s, n)));
470            }
471            p = _.exec(e);
472          }
473          return new Date(s, n, o, r, a, l, 0);
474        },
475        o = null == e ? t : "string" == typeof e ? n(e) : "number" == typeof e ? s(e) : e;
476      return o && o.setMilliseconds(0), o;
477    },
478    _getDaysInMonth: function (e, t) {
479      return 32 - new Date(e, t, 32).getDate();
480    },
481    _normalLabels: function (e) {
482      return e;
483    },
484    _generateHTML: function (t) {
485      var _ = this;
486      t._periods = t._hold ? t._periods : this._calculatePeriods(t, t._show, t.options.significant, new Date());
487      for (var p = !1, c = 0, u = t.options.significant, d = e.extend({}, t._show), h = i; l >= h; h++)
488        (p |= "?" == t._show[h] && t._periods[h] > 0),
489          (d[h] = "?" != t._show[h] || p ? t._show[h] : null),
490          (c += d[h] ? 1 : 0),
491          (u -= t._periods[h] > 0 ? 1 : 0);
492      for (var m = [!1, !1, !1, !1, !1, !1, !1], h = l; h >= i; h--)
493        t._show[h] && (t._periods[h] ? (m[h] = !0) : ((m[h] = u > 0), u--));
494      var g = t.options.compact ? t.options.compactLabels : t.options.labels,
495        f = t.options.whichLabels || this._normalLabels,
496        w = function (e) {
497          var i = t.options["compactLabels" + f(t._periods[e])];
498          return d[e] ? _._translateDigits(t, t._periods[e]) + (i ? i[e] : g[e]) + " " : "";
499        },
500        y = t.options.padZeroes ? 2 : 1,
501        v = function (e) {
502          var i = t.options["labels" + f(t._periods[e])];
503          return (!t.options.significant && d[e]) || (t.options.significant && m[e])
504            ? '<span class="' +
505                _._sectionClass +
506                '"><span class="' +
507                _._amountClass +
508                '">' +
509                _._minDigits(t, t._periods[e], y) +
510                '</span><span class="' +
511                _._periodClass +
512                '">' +
513                (i ? i[e] : g[e]) +
514                "</span></span>"
515            : "";
516        };
517      return t.options.layout
518        ? this._buildLayout(t, d, t.options.layout, t.options.compact, t.options.significant, m)
519        : (t.options.compact
520            ? '<span class="' +
521              this._rowClass +
522              " " +
523              this._amountClass +
524              (t._hold ? " " + this._holdingClass : "") +
525              '">' +
526              w(i) +
527              w(s) +
528              w(n) +
529              w(o) +
530              (d[r] ? this._minDigits(t, t._periods[r], 2) : "") +
531              (d[a] ? (d[r] ? t.options.timeSeparator : "") + this._minDigits(t, t._periods[a], 2) : "") +
532              (d[l] ? (d[r] || d[a] ? t.options.timeSeparator : "") + this._minDigits(t, t._periods[l], 2) : "")
533            : '<span class="' +
534              this._rowClass +
535              " " +
536              this._showClass +
537              (t.options.significant || c) +
538              (t._hold ? " " + this._holdingClass : "") +
539              '">' +
540              v(i) +
541              v(s) +
542              v(n) +
543              v(o) +
544              v(r) +
545              v(a) +
546              v(l)) +
547            "</span>" +
548            (t.options.description
549              ? '<span class="' + this._rowClass + " " + this._descrClass + '">' + t.options.description + "</span>"
550              : "");
551    },
552    _buildLayout: function (t, _, p, c, u, d) {
553      for (
554        var h = t.options[c ? "compactLabels" : "labels"],
555          m = t.options.whichLabels || this._normalLabels,
556          g = function (e) {
557            return (t.options[(c ? "compactLabels" : "labels") + m(t._periods[e])] || h)[e];
558          },
559          f = function (e, i) {
560            return t.options.digits[Math.floor(e / i) % 10];
561          },
562          w = {
563            desc: t.options.description,
564            sep: t.options.timeSeparator,
565            yl: g(i),
566            yn: this._minDigits(t, t._periods[i], 1),
567            ynn: this._minDigits(t, t._periods[i], 2),
568            ynnn: this._minDigits(t, t._periods[i], 3),
569            y1: f(t._periods[i], 1),
570            y10: f(t._periods[i], 10),
571            y100: f(t._periods[i], 100),
572            y1000: f(t._periods[i], 1e3),
573            ol: g(s),
574            on: this._minDigits(t, t._periods[s], 1),
575            onn: this._minDigits(t, t._periods[s], 2),
576            onnn: this._minDigits(t, t._periods[s], 3),
577            o1: f(t._periods[s], 1),
578            o10: f(t._periods[s], 10),
579            o100: f(t._periods[s], 100),
580            o1000: f(t._periods[s], 1e3),
581            wl: g(n),
582            wn: this._minDigits(t, t._periods[n], 1),
583            wnn: this._minDigits(t, t._periods[n], 2),
584            wnnn: this._minDigits(t, t._periods[n], 3),
585            w1: f(t._periods[n], 1),
586            w10: f(t._periods[n], 10),
587            w100: f(t._periods[n], 100),
588            w1000: f(t._periods[n], 1e3),
589            dl: g(o),
590            dn: this._minDigits(t, t._periods[o], 1),
591            dnn: this._minDigits(t, t._periods[o], 2),
592            dnnn: this._minDigits(t, t._periods[o], 3),
593            d1: f(t._periods[o], 1),
594            d10: f(t._periods[o], 10),
595            d100: f(t._periods[o], 100),
596            d1000: f(t._periods[o], 1e3),
597            hl: g(r),
598            hn: this._minDigits(t, t._periods[r], 1),
599            hnn: this._minDigits(t, t._periods[r], 2),
600            hnnn: this._minDigits(t, t._periods[r], 3),
601            h1: f(t._periods[r], 1),
602            h10: f(t._periods[r], 10),
603            h100: f(t._periods[r], 100),
604            h1000: f(t._periods[r], 1e3),
605            ml: g(a),
606            mn: this._minDigits(t, t._periods[a], 1),
607            mnn: this._minDigits(t, t._periods[a], 2),
608            mnnn: this._minDigits(t, t._periods[a], 3),
609            m1: f(t._periods[a], 1),
610            m10: f(t._periods[a], 10),
611            m100: f(t._periods[a], 100),
612            m1000: f(t._periods[a], 1e3),
613            sl: g(l),
614            sn: this._minDigits(t, t._periods[l], 1),
615            snn: this._minDigits(t, t._periods[l], 2),
616            snnn: this._minDigits(t, t._periods[l], 3),
617            s1: f(t._periods[l], 1),
618            s10: f(t._periods[l], 10),
619            s100: f(t._periods[l], 100),
620            s1000: f(t._periods[l], 1e3),
621          },
622          y = p,
623          v = i;
624        l >= v;
625        v++
626      ) {
627        var D = "yowdhms".charAt(v),
628          T = new RegExp("\\{" + D + "<\\}([\\s\\S]*)\\{" + D + ">\\}", "g");
629        y = y.replace(T, (!u && _[v]) || (u && d[v]) ? "$1" : "");
630      }
631      return (
632        e.each(w, function (e, t) {
633          var i = new RegExp("\\{" + e + "\\}", "g");
634          y = y.replace(i, t);
635        }),
636        y
637      );
638    },
639    _minDigits: function (e, t, i) {
640      return (
641        (t = "" + t),
642        t.length >= i
643          ? this._translateDigits(e, t)
644          : ((t = "0000000000" + t), this._translateDigits(e, t.substr(t.length - i)))
645      );
646    },
647    _translateDigits: function (e, t) {
648      return ("" + t).replace(/[0-9]/g, function (t) {
649        return e.options.digits[t];
650      });
651    },
652    _determineShow: function (e) {
653      var t = e.options.format,
654        _ = [];
655      return (
656        (_[i] = t.match("y") ? "?" : t.match("Y") ? "!" : null),
657        (_[s] = t.match("o") ? "?" : t.match("O") ? "!" : null),
658        (_[n] = t.match("w") ? "?" : t.match("W") ? "!" : null),
659        (_[o] = t.match("d") ? "?" : t.match("D") ? "!" : null),
660        (_[r] = t.match("h") ? "?" : t.match("H") ? "!" : null),
661        (_[a] = t.match("m") ? "?" : t.match("M") ? "!" : null),
662        (_[l] = t.match("s") ? "?" : t.match("S") ? "!" : null),
663        _
664      );
665    },
666    _calculatePeriods: function (e, t, _, p) {
667      (e._now = p), e._now.setMilliseconds(0);
668      var c = new Date(e._now.getTime());
669      e._since
670        ? p.getTime() < e._since.getTime()
671          ? (e._now = p = c)
672          : (p = e._since)
673        : (c.setTime(e._until.getTime()), p.getTime() > e._until.getTime() && (e._now = p = c));
674      var u = [0, 0, 0, 0, 0, 0, 0];
675      if (t[i] || t[s]) {
676        var d = this._getDaysInMonth(p.getFullYear(), p.getMonth()),
677          h = this._getDaysInMonth(c.getFullYear(), c.getMonth()),
678          m = c.getDate() == p.getDate() || (c.getDate() >= Math.min(d, h) && p.getDate() >= Math.min(d, h)),
679          g = function (e) {
680            return 60 * (60 * e.getHours() + e.getMinutes()) + e.getSeconds();
681          },
682          f = Math.max(
683            0,
684            12 * (c.getFullYear() - p.getFullYear()) +
685              c.getMonth() -
686              p.getMonth() +
687              ((c.getDate() < p.getDate() && !m) || (m && g(c) < g(p)) ? -1 : 0)
688          );
689        (u[i] = t[i] ? Math.floor(f / 12) : 0), (u[s] = t[s] ? f - 12 * u[i] : 0), (p = new Date(p.getTime()));
690        var w = p.getDate() == d,
691          y = this._getDaysInMonth(p.getFullYear() + u[i], p.getMonth() + u[s]);
692        p.getDate() > y && p.setDate(y),
693          p.setFullYear(p.getFullYear() + u[i]),
694          p.setMonth(p.getMonth() + u[s]),
695          w && p.setDate(y);
696      }
697      var v = Math.floor((c.getTime() - p.getTime()) / 1e3),
698        D = function (e, i) {
699          (u[e] = t[e] ? Math.floor(v / i) : 0), (v -= u[e] * i);
700        };
701      if ((D(n, 604800), D(o, 86400), D(r, 3600), D(a, 60), D(l, 1), v > 0 && !e._since))
702        for (var T = [1, 12, 4.3482, 7, 24, 60, 60], M = l, S = 1, b = l; b >= i; b--)
703          t[b] && (u[M] >= S && ((u[M] = 0), (v = 1)), v > 0 && (u[b]++, (v = 0), (M = b), (S = 1))), (S *= T[b]);
704      if (_) for (var b = i; l >= b; b++) _ && u[b] ? _-- : _ || (u[b] = 0);
705      return u;
706    },
707  });
708})(jQuery);
709
710/* End */
711;
712; /* Start:"a:4:{s:4:"full";s:81:"/bitrix/templates/aspro-allcorp3heat/js/jquery.countdown-ru.min.js?16860349811487";s:6:"source";s:62:"/bitrix/templates/aspro-allcorp3heat/js/jquery.countdown-ru.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
713!function(O){O.countdown.regionalOptions.ru={labels:[BX.message("COUNTDOWN_YEAR0"),BX.message("COUNTDOWN_MONTH0"),BX.message("COUNTDOWN_WEAK0"),BX.message("COUNTDOWN_DAY0"),BX.message("COUNTDOWN_HOUR"),BX.message("COUNTDOWN_MIN"),BX.message("COUNTDOWN_SEC")],labels1:[BX.message("COUNTDOWN_YEAR1"),BX.message("COUNTDOWN_MONTH1"),BX.message("COUNTDOWN_WEAK1"),BX.message("COUNTDOWN_DAY1"),BX.message("COUNTDOWN_HOUR"),BX.message("COUNTDOWN_MIN"),BX.message("COUNTDOWN_SEC")],labels2:[BX.message("COUNTDOWN_YEAR2"),BX.message("COUNTDOWN_MONTH2"),BX.message("COUNTDOWN_WEAK2"),BX.message("COUNTDOWN_DAY2"),BX.message("COUNTDOWN_HOUR"),BX.message("COUNTDOWN_MIN"),BX.message("COUNTDOWN_SEC")],compactLabels:[BX.message("COUNTDOWN_COMPACT_YEAR0"),BX.message("COUNTDOWN_COMPACT_MONTH"),BX.message("COUNTDOWN_COMPACT_WEAK"),BX.message("COUNTDOWN_COMPACT_DAY"),BX.message("COUNTDOWN_COMPACT_HOUR"),BX.message("COUNTDOWN_COMPACT_MIN"),BX.message("COUNTDOWN_COMPACT_SEC")],compactLabels1:[BX.message("COUNTDOWN_COMPACT_YEAR1"),BX.message("COUNTDOWN_COMPACT_MONTH"),BX.message("COUNTDOWN_COMPACT_WEAK"),BX.message("COUNTDOWN_COMPACT_DAY"),BX.message("COUNTDOWN_COMPACT_HOUR"),BX.message("COUNTDOWN_COMPACT_MIN"),BX.message("COUNTDOWN_COMPACT_SEC")],whichLabels:function(O){var e=O%10,s=Math.floor(O%100/10);return 1==O?1:2<=e&&e<=4&&1!=s?2:1==e&&1!=s?1:0},digits:["0","1","2","3","4","5","6","7","8","9"],timeSeparator:":",isRTL:!1},O.countdown.setDefaults(O.countdown.regionalOptions.ru)}
713(jQuery);
714/* End */
715;
716; /* Start:"a:4:{s:4:"full";s:73:"/bitrix/templates/aspro-allcorp3heat/js/scrollTabs.min.js?168603498110482";s:6:"source";s:53:"/bitrix/templates/aspro-allcorp3heat/js/scrollTabs.js";s:3:"min";s:57:"/bitrix/templates/aspro-allcorp3heat/js/scrollTabs.min.js";s:3:"map";s:61:"/bitrix/templates/aspro-allcorp3heat/js/scrollTabs.min.js.map";}"*/
717InitTabsScroll=function(){$(".arrow_scroll:not(.arrow_scroll_init)").scrollTab()},ResizeScrollTabs=function(){var scrollTabs=$(".arrow_scroll_init");scrollTabs.length&&scrollTabs.each((function(i,scrollTab){var _scrollTab;$(scrollTab).data("scrollTabOptions").resize()}))},$(document).ready((function(){InitTabsScroll()})),$(window).on("resize",(function(){void 0!==window.scrollTabsTimeout&&clearTimeout(window.scrollTabsTimeout),window.scrollTabsTimeout=setTimeout(ResizeScrollTabs,20)})),$.fn.scrollTab=function(options){function _scrollTab(element,options){var _scrollTab=$(element),tabs_wrapper=_scrollTab.find(options.tabs_wrapper);if(void 0===tabs_wrapper||!tabs_wrapper.length)return!1;var tabs=tabs_wrapper.find(options.tab_item);if(!tabs.length)return!1;var arrow_svg='<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><rect width="12" height="8" fill="#333" fill-opacity="0" /><path d="M1015.69,507.693a0.986,0.986,0,0,1-1.4,0l-4.31-4.316-4.3,4.316a0.993,0.993,0,0,1-1.4-1.408l4.99-5.009a1.026,1.026,0,0,1,1.43,0l4.99,5.009A0.993,0.993,0,0,1,1015.69,507.693Z" fill="#333" transform="translate(-1004 -501)"/></svg>',arrows_wrapper,arrows=$('<div class="arrows_wrapper"><div class="arrow arrow_left colored_theme_hover_text fill-dark-light-block">'+arrow_svg+'</div><div class="arrow arrow_right colored_theme_hover_text fill-dark-light-block">'+arrow_svg+"</div></div>").insertAfter(tabs_wrapper),arrow_left=arrows.find(".arrow_left"),arrow_right=arrows.find(".arrow_right"),thisOoptions=$.extend({},options);thisOoptions.outer_wrapper&&(thisOoptions.outer_wrapper_node=$(thisOoptions.outer_wrapper)),thisOoptions.scrollTab=_scrollTab,thisOoptions.wrapper=tabs_wrapper,thisOoptions.tabs=tabs,thisOoptions.arrows={},thisOoptions.arrows.wrapper=arrows,thisOoptions.arrows.arrow_left=arrow_left,thisOoptions.arrows.arrow_right=arrow_right,void 0!==thisOoptions.linked_tabs&&thisOoptions.linked_tabs.length&&void 0!==thisOoptions.linked_tabs.data("scrollTabOptions")&&(thisOoptions.linked_options=thisOoptions.linked_tabs.data("scrollTabOptions"),thisOoptions.linked_options.linked_options=thisOoptions),options.arrows_css&&(thisOoptions.arrows.arrow_left.css(options.arrows_css),thisOoptions.arrows.arrow_right.css(options.arrows_css)),thisOoptions.initTabs=function(){thisOoptions.wrapperBounds=thisOoptions.wrapper[0].getBoundingClientRect(),thisOoptions.scrollBounds=thisOoptions.scrollTab[0].getBoundingClientRect(),elements=$(thisOoptions.tabs),elements.length&&(thisOoptions.firstTabBound=elements[0].getBoundingClientRect().left,thisOoptions.lastTabBound=elements[elements.length-1].getBoundingClientRect().right),thisOoptions.minTranslate=thisOoptions.wrapperBounds.right<thisOoptions.lastTabBound?thisOoptions.wrapperBounds.right-thisOoptions.lastTabBound-3:0,thisOoptions.disabled=thisOoptions.lastTabBound-thisOoptions.wrapperBounds.left<=thisOoptions.scrollBounds.width},thisOoptions.wrapper.css({"white-space":"nowrap","min-width":"auto",overflow:"visible","z-index":"1"}),thisOoptions.scrollTab.css({overflow:"hidden",position:"relative"}),thisOoptions.checkArrows=function(translate){void 0===translate&&(translate=thisOoptions.translate),thisOoptions.disabled?(thisOoptions.arrows.arrow_left.addClass("disabled"),thisOoptions.arrows.arrow_right.addClass("disabled")):translate>=thisOoptions.maxTranslate?(thisOoptions.arrows.arrow_left.addClass("disabled"),thisOoptions.arrows.arrow_right.removeClass("disabled")):translate<=thisOoptions.minTranslate?(thisOoptions.arrows.arrow_right.addClass("disabled"),thisOoptions.arrows.arrow_left.removeClass("disabled")):(thisOoptions.arrows.arrow_left.removeClass("disabled"),thisOoptions.arrows.arrow_right.removeClass("disabled"))},thisOoptions.directScroll=function(distance,delay,step){void 0===delay&&(delay=5),clearInterval(thisOoptions.timerMoveDirect);var newTranslate=thisOoptions.translate+distance;newTranslate>thisOoptions.maxTranslate?newTranslate=thisOoptions.maxTranslate:newTranslate<thisOoptions.minTranslate&&(newTranslate=thisOoptions.minTranslate);var tmpTranslate=thisOoptions.translate;thisOoptions.translate=newTranslate,0==delay?(thisOoptions.touch?thisOoptions.translate=newTranslate:thisOoptions.translate=distance,thisOoptions.wrapper.css({transform:"translateX("+thisOoptions.translate+"px)"})):(void 0===step&&(step=1),thisOoptions.timerMoveDirect=setInterval((function(){thisOoptions.wrapper.css({transform:"translateX("+tmpTranslate+"px)"}),(distance<0&&tmpTranslate<=newTranslate||distance>0&&tmpTranslate>=newTranslate)&&(thisOoptions.initTabs(),clearInterval(thisOoptions.timerMoveDirect)),tmpTranslate<newTranslate?tmpTranslate+=step:tmpTranslate-=step}),delay)),thisOoptions.checkArrows(newTranslate)},thisOoptions.addArrowsEvents=function(){thisOoptions.arrows.arrow_right.on("mouseenter",(function(){thisOoptions.arrows.arrow_left.removeClass("disabled"),thisOoptions.timerMoveLeft=setInterval((function(){thisOoptions.translate<thisOoptions.minTranslate?(clearInterval(thisOoptions.timerMoveLeft),thisOoptions.arrows.arrow_right.addClass("disabled")):(thisOoptions.translate-=thisOoptions.translateSpeed,thisOoptions.wrapper.css({transform:"translateX("+thisOoptions.translate+"px)"}))}),10)})),thisOoptions.arrows.arrow_right.on("mouseleave",(function(){clearInterval(thisOoptions.timerMoveLeft)})),thisOoptions.arrows.arrow_right.on("click",(function(){thisOoptions.directScroll(-thisOoptions.directTranslate),thisOoptions.arrows.arrow_left.removeClass("disabled")})),thisOoptions.arrows.arrow_right.on("touchend",(function(){setTimeout((function(){clearInterval(thisOoptions.timerMoveLeft)}),1)})),thisOoptions.arrows.arrow_left.on("mouseenter",(function(){thisOoptions.arrows.arrow_right.removeClass("disabled"),thisOoptions.timerMoveRight=setInterval((function(){thisOoptions.translate>=thisOoptions.maxTranslate?(clearInterval(thisOoptions.timerMoveRight),thisOoptions.arrows.arrow_left.addClass("disabled")):(thisOoptions.translate+=thisOoptions.translateSpeed,thisOoptions.wrapper.css({transform:"translateX("+thisOoptions.translate+"px)"}))}),10)})),thisOoptions.arrows.arrow_left.on("mouseleave",(function(){clearInterval(thisOoptions.timerMoveRight)})),thisOoptions.arrows.arrow_left.on("click",(function(){thisOoptions.directScroll(thisOoptions.directTranslate),thisOoptions.arrows.arrow_right.removeClass("disabled")})),thisOoptions.arrows.arrow_left.on("touchend",(function(){setTimeout((function(){clearInterval(thisOoptions.timerMoveRight)}),1)}))},thisOoptions.addTabsEvents=function(){thisOoptions.tabs.on("click",(function(){var leftScrollBound=thisOoptions.scrollBounds.left,rightScrollBound=thisOoptions.scrollBounds.right,tabBounds=this.getBoundingClientRect(),leftTabScrollBound=tabBounds.left-thisOoptions.arrows.arrow_width,rightTabScrollBound=tabBounds.right+thisOoptions.arrows.arrow_width;if(leftTabScrollBound<leftScrollBound?thisOoptions.directScroll(leftScrollBound-leftTabScrollBound,1,2):rightTabScrollBound>rightScrollBound&&thisOoptions.directScroll(rightScrollBound-rightTabScrollBound,1,2),thisOoptions.activeTab=$(this),void 0!==thisOoptions.linked_options){var this_index=$(this).index(),linked_tab=$(thisOoptions.linked_options.tabs[this_index]),linked_tabs={leftScrollBound:thisOoptions.linked_options.scrollBounds.left,rightScrollBound:thisOoptions.linked_options.scrollBounds.right,tabBounds:linked_tab[0].getBoundingClientRect()};linked_tabs.tabBounds.left<linked_tabs.leftScrollBound?thisOoptions.linked_options.directScroll(linked_tabs.leftScrollBound-linked_tabs.tabBounds.left+thisOoptions.linked_options.arrows.arrow_width+1,0):linked_tabs.tabBounds.right>linked_tabs.rightScrollBound&&thisOoptions.linked_options.directScroll(linked_tabs.rightScrollBound-linked_tabs.tabBounds.right-thisOoptions.linked_options.arrows.arrow_width-1,0),thisOoptions.linked_options.activeTab=linked_tab}}))},thisOoptions.addWrapperEvents=function(){thisOoptions.wrapper.on("touchstart",(function(event){thisOoptions.touch.posPrev=event.originalEvent.changedTouches[0].pageX,clearInterval(thisOoptions.timerMoveRight),clearInterval(thisOoptions.timerMoveLeft),clearInterval(thisOoptions.timerMoveDirect)})),thisOoptions.wrapper.on("touchmove",(function(event){thisOoptions.touch.posCurrent=event.originalEvent.changedTouches[0].pageX-thisOoptions.touch.posPrev,thisOoptions.directScroll(thisOoptions.touch.posCurrent,0),thisOoptions.touch.posPrev=event.originalEvent.changedTouches[0].pageX}))},thisOoptions.resize=function(){if(thisOoptions.onBeforeResize&&"function"==typeof thisOoptions.onBeforeResize&&thisOoptions.onBeforeResize(thisOoptions),thisOoptions.onResize&&"function"==typeof thisOoptions.onResize&&thisOoptions.onResize(thisOoptions),thisOoptions.translate<thisOoptions.minTranslate?thisOoptions.directScroll(thisOoptions.minTranslate-thisOoptions.translate):thisOoptions.translate>thisOoptions.maxTranslate&&thisOoptions.directScroll(thisOoptions.maxTranslate-thisOoptions.translate),void 0!==thisOoptions.activeTab&&thisOoptions.activeTab.length){var activeTabBounds=thisOoptions.activeTab[0].getBoundingClientRect();activeTabBounds.left<thisOoptions.scrollBounds.left?thisOoptions.directScroll(thisOoptions.scrollBounds.left-activeTabBounds.left):activeTabBounds.right>thisOoptions.scrollBounds.right&&thisOoptions.directScroll(thisOoptions.scrollBounds.right-activeTabBounds.right)}thisOoptions.initTabs(),thisOoptions.checkArrows(),thisOoptions.onAfterResize&&"function"==typeof thisOoptions.onAfterResize&&thisOoptions.onAfterResize(thisOoptions)},_scrollTab.data("scrollTabOptions",thisOoptions),_scrollTab.data("scrollTabOptions").addArrowsEvents(),_scrollTab.data("scrollTabOptions").addTabsEvents(),_scrollTab.data("scrollTabOptions").addWrapperEvents(),_scrollTab.addClass("arrow_scroll_init").addClass("swipeignore"),void 0!==arrow_right&&arrow_right.length&&(thisOoptions.arrows.arrow_width=thisOoptions.arrows.arrow_right[0].getBoundingClientRect().width),_scrollTab.data("scrollTabOptions").resize(),delete thisOoptions;var eventdata={action:"initScrollTab",tab:_scrollTab};BX.onCustomEvent("onScrollTabInit",[eventdata])}var options=$.extend({translate:1,translateSpeed:2,directTranslate:150,maxTranslate:0,touch:{},arrows_css:!1,tabs_wrapper:".nav-tabs",tab_item:"> li",onResize:!1,outer_wrapper:"",width_grow:9},options),el=$(this);if(el.hasClass("arrow_scroll_init"))return!1;el.each((function(i,scrollTab){_scrollTab(scrollTab,options)}))};
718/* End */
719;
720; /* Start:"a:4:{s:4:"full";
720s:77:"/bitrix/templates/aspro-allcorp3heat/js/blocks/controls.min.js?16860349815040";s:6:"source";s:58:"/bitrix/templates/aspro-allcorp3heat/js/blocks/controls.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
721function optBuyBasketAction(basketItems,itemsToNotice){const basketParams={type:"multiple",ajaxPost:"Y",action:"buy",items:[]};basketItems&&(basketParams.items=basketItems);var bBasketTop=void 0!==arAsproOptions.THEME.ORDER_BASKET_VIEW&&"HEADER"===$.trim(arAsproOptions.THEME.ORDER_BASKET_VIEW)&&$(".basket.top").length,bBasketFly=void 0!==arAsproOptions.THEME.ORDER_BASKET_VIEW&&!bBasketTop&&$(".basket.fly").length;basketParams.items.length&&$.ajax({url:arAsproOptions.SITE_DIR+"include/footer/basket.php",type:"POST",data:basketParams}).done((function(html){bBasketTop?$(".ajax_basket").replaceWith(html):bBasketFly&&$(".ajax_basket").html($($.trim(html)).html()),"undefined"==typeof JNoticeSurface?bBasketTop?($(".header-cart").addClass("opened"),"undefined"!=typeof headerCartHideTimer&&clearTimeout(headerCartHideTimer),headerCartHideTimer=setTimeout((function(){$(".header-cart").removeClass("opened")}),2e3)):bBasketFly&&setTimeout((function(){$(".ajax_basket").hasClass("opened")||$(".ajax_basket").addClass("opened")}),50):JNoticeSurface.get().onAdd2cart(itemsToNotice);var eventdata={action:"loadBasket"};BX.onCustomEvent("onCompleteAction",[eventdata,$(html)]),setBasketItemsClasses()}))}$(document).ready((function(){$(document).on("click",".dropdown-select .dropdown-select__title",(function(){var _this=$(this),menu=_this.parent().find("> .dropdown-select__list");_this.hasClass("clicked")||(_this.addClass("clicked"),_this.toggleClass("opened"),menu.stop().slideToggle(100,(function(){_this.removeClass("clicked")})))})),$(document).on("click",".dropdown-select__list .mixitup-item",(function(){var $select=$(this).closest(".dropdown-select");$select.find(".dropdown-select__title span").text($(this).text()),$select.find(".dropdown-select__title.opened").click()})),$("html, body").on("mousedown",(function(e){"string"==typeof e.target.className&&e.target.className.indexOf("adm")<0&&(e.stopPropagation(),$(".dropdown-select .dropdown-select__title.opened").each((function(){var $select=$(this).closest(".dropdown-select");$(e.target).closest($select).length||$(this).click()})))})),$(document).on("click",".hint__icon",(function(e){e.stopImmediatePropagation();var tooltipWrapp=$(this).closest(".hint");tooltipWrapp.hasClass("active")?tooltipWrapp.removeClass("active").find(".tooltip").slideUp(200):(tooltipWrapp.addClass("active"),tooltipWrapp.find(".tooltip").slideDown(200),tooltipWrapp.find(".tooltip_close").click((function(e){e.stopPropagation(),e.stopImmediatePropagation(),tooltipWrapp.removeClass("active").find(".tooltip").slideUp(100)}))),e.stopPropagation()}));const containerEl=document.querySelector(".mixitup-container");if(containerEl){var config,mixer=mixitup(containerEl,{selectors:{target:'[data-ref="mixitup-target"]'},animation:{effects:""},load:{filter:"none"},animation:{duration:350},controls:{scope:"local"},callbacks:{onMixStart:function(state){},onMixClick:function(state,event){let $item=event.target.children.length?event.target:event.target.parentElement;$($item).siblings().removeClass("color-theme head-block__item--active active"),$($item).addClass("color-theme head-block__item--active active")},onMixEnd:function(){}}});containerEl.classList.add("mixitup-ready"),mixer.show().then((function(){mixer.configure({animation:{effects:"fade scale"}})}))}$(".form-group:not(.eye-password-ignore) [type=password]").each((function(item){let passBlock=$(this).closest(".form-group"),labelBlock=passBlock.find(".label_block");labelBlock.length?labelBlock.addClass("eye-password"):passBlock.addClass("eye-password")})),$(document).on("click",".eye-password:not(.eye-password-ignore)",(function(event){let input=this.querySelector("input"),eyeWidth=56;this.clientWidth-56<event.offsetX&&("password"==input.type?(input.type="text",this.classList.add("password-show")):"text"==input.type&&(input.type="password",this.classList.remove("password-show")),event.stopPropagation())}))})),$(document).on("click",".gallery-view_switch__icons:not(.active)",(function(){var $this=$(this),animationTime=200,bSmall=$this.hasClass("gallery-view_switch__icons--small"),$switchGallery=$this.closest(".gallery-view_switch"),$bigGallery=($this.closest(".big_gallery").length?$this.closest(".big_gallery"):$this.closest(".gallery")).find(".gallery-big"),$b
721igGalleryCounter=$switchGallery.find(".gallery-view_switch__count-wrapper--big"),$smallGallery=($this.closest(".big_gallery").length?$this.closest(".big_gallery"):$this.closest(".gallery")).find(".gallery-small"),$smallGalleryCounter=$switchGallery.find(".gallery-view_switch__count-wrapper--small"),$toHideGallery=bSmall?$bigGallery:$smallGallery,$toHideGalleryCounter=bSmall?$bigGalleryCounter:$smallGalleryCounter,$toShowGallery=bSmall?$smallGallery:$bigGallery,$toShowGalleryCounter=bSmall?$smallGalleryCounter:$bigGalleryCounter;$this.addClass("active"),$this.siblings(".active").removeClass("active"),$toHideGalleryCounter.fadeOut(200,(function(){$toShowGalleryCounter.fadeIn(200)})),$toHideGallery.fadeOut(200,(function(){$toShowGallery.fadeIn(200)}))}));
722/* End */
723;
724; /* Start:"a:4:{s:4:"full";s:79:"/bitrix/templates/aspro-allcorp3heat/js/blocks/hover-block.min.js?1686034981715";s:6:"source";s:61:"/bitrix/templates/aspro-allcorp3heat/js/blocks/hover-block.js";s:3:"min";s:65:"/bitrix/templates/aspro-allcorp3heat/js/blocks/hover-block.min.js";s:3:"map";s:69:"/bitrix/templates/aspro-allcorp3heat/js/blocks/hover-block.min.js.map";}"*/
725$(document).on("mouseenter",".hover-block .hover-block__item",(function(){var $this=$(this),$menu=$this.find(".hover-block__item-wrapper"),delay=$this.data("delay"),speed=$this.data("speed");$menu.data("timer")&&(clearTimeout($menu.data("timer")),$menu.data("timer",!1)),$menu.data("timer",setTimeout((function(){$menu.stop(),$menu.fadeIn(speed&&speed.show?speed.show:300)}),delay&&delay.show?delay.show:100)),$this.one("mouseleave",(function(){$menu.data("timer")&&(clearTimeout($menu.data("timer")),$menu.data("timer",!1)),$menu.data("timer",setTimeout((function(){$menu.stop(),$menu.fadeOut(speed&&speed.hide?speed.hide:100)}),delay&&delay.hide?delay.hide:300))}))}));
726/* End */
727;
728; /* Start:"a:4:{s:4:"full";s:75:"/bitrix/templates/aspro-allcorp3heat/js/blocks/mobile.min.js?16860349815334";s:6:"source";s:56:"/bitrix/templates/aspro-allcorp3heat/js/blocks/mobile.js";s:3:"min";s:60:"/bitrix/templates/aspro-allcorp3heat/js/blocks/mobile.min.js";s:3:"map";s:64:"/bitrix/templates/aspro-allcorp3heat/js/blocks/mobile.min.js.map";}"*/
729$(document).ready((function(){var $mobilefilter=$("#mobilefilter"),$mobiledMenu=$("#mobilemenu");if($mobilefilter.length){$mobilefilter.isOpen=$mobiledMenu.hasClass("show"),$mobilefilter.isAppendLeft=!1,$mobilefilter.isWrapFilter=!1,$mobilefilter.isHorizontalOrCompact=$(".filter_horizontal").length||$(".bx_filter_vertical.compact").length,$mobilefilter.close='<i class="svg svg-close close-icons"></i>',$(document).on("click",".bx-filter-title",(function(){OpenMobileFilter()})),$(document).on("click","#mobilefilter .svg-close.close-icons",(function(){CloseMobileFilter()})),$(document).on("click",".bx_filter_select_block",(function(e){var bx_filter_select_container=$(e.target).parents(".bx_filter_select_container");if(bx_filter_select_container.length){var prop_id=bx_filter_select_container.closest(".bx_filter_parameters_box").attr("data-property_id");$("#smartFilterDropDown"+prop_id).length&&$("#smartFilterDropDown"+prop_id).css({"max-width":bx_filter_select_container.width(),"z-index":"3020"})}})),$(document).on("mouseup",".bx_filter_section",(function(e){$(e.target).hasClass("bx_filter_search_button")&&CloseMobileFilter()})),$(document).on("mouseup",".bx_filter_parameters_box_title",(function(e){$("[id^='smartFilterDropDown']").hide(),$(e.target).hasClass("close-icons")&&CloseMobileFilter()})),$mobilefilter.parent().append('<div id="mobilefilter-overlay"></div>');var $mobilefilterOverlay=$("#mobilefilter-overlay");$mobilefilterOverlay.click((function(){$mobilefilter.isOpen&&CloseMobileFilter()})),mobileFilterNum=function(num,def){if(def)$(".bx_filter_search_button").text(num.data("f"));else{var str="",$prosLeng=$(".bx_filter_parameters_box > span");str+=$prosLeng.data("f")+" "+num+" "+declOfNumFilter(num,[$prosLeng.data("fi"),$prosLeng.data("fr"),$prosLeng.data("frm")]),$(".bx_filter_search_button").text(str)}},declOfNumFilter=function(number,titles){return cases=[2,0,1,1,1,2],titles[number%100>4&&number%100<20?2:cases[number%10<5?number%10:5]]},OpenMobileFilter=function(){if(!$mobilefilter.isOpen){if($("body").addClass("jqm-initied wf"),$(".bx_filter_vertical .slide-block__head.filter_title").removeClass("closed"),$(".bx_filter_vertical .slide-block__head.filter_title + .slide-block__body").show(),!$mobilefilter.isAppendLeft){$mobilefilter.isWrapFilter||($(".bx_filter").wrap("<div id='wrapInlineFilter'></div>"),$mobilefilter.isWrapFilter=!0),$(".bx_filter").appendTo($("#mobilefilter"));var helper=$("#filter-helper");helper.length&&helper.prependTo($("#mobilefilter .bx_filter_parameters")),$mobilefilter.isAppendLeft=!0}var init;"function"==typeof checkFilterLandgings&&checkFilterLandgings(),$("#mobilefilter .bx_filter_parameters").addClass("mobile-scroll scrollbar"),$("#mobilefilter .slide-block .filter_title").addClass("ignore"),$("#mobilefilter .bx_filter_parameters .bx_filter_parameters_box_title").addClass("colored_theme_hover_bg-block"),$(".bx_filter_button_box.ajax-btns").addClass("colored_theme_bg"),$(".bx_filter_button_box.ajax-btns .filter-bnt-wrapper").removeClass("hidden"),setTimeout((function(){$mobilefilterOverlay.fadeIn("fast")}),100),$("body").css({overflow:"hidden",height:"100vh"}),$mobilefilter.addClass("show"),$mobilefilter.find(".bx_filter").css({display:"block"}),$mobilefilter.isOpen=!0,$("#mobilefilter .bx_filter_button_box.btns.ajax-btns").removeClass("hidden"),void 0===$mobilefilter.data("init")&&($mobilefilter.scroll((function(){$(".bx_filter_section .bx_filter_select_container").each((function(){var prop_id=$(this).closest(".bx_filter_parameters_box").attr("data-property_id");$("#smartFilterDropDown"+prop_id).length&&$("#smartFilterDropDown"+prop_id).hide()}))})),$mobilefilter.data("init","Y"))}},CloseMobileFilter=function(append){if($mobilefilter.find(".bx_filter_parameters").removeClass("scrollbar"),$("body").removeClass("jqm-initied wf"),$("#mobilefilter .bx_filter_parameters .bx_filter_parameters_box_title").removeClass("colored_theme_hover_bg-block"),$(".slide-block .filter_title").removeClass("ignore"),$(".bx_filter_button_box.ajax-btns").removeClass("colored_theme_bg"),$(".bx_filter:not(.n-ajax) .bx_filter_button_box.ajax-btns .filter-bnt-wrapper").addClass("hidden"),$mobilefilter.isOpen&&($mobilefilter.find(".bx_filter_parameters").scrollTop(0),$("body").css({overflow:"",height:""}),setTimeout((function(){$mobilefilterOverlay.fadeOut("fast")}),100),$mobilefilter.removeClass("show"),$mobilefilter.isOpen=!1),append&&$mobilefilter.isAppendLeft){$(".bx_filter").appendTo($("#wrapInlineFilter")).show();var helper=$("#filter-helper");helper.length&&helper.appendTo($("#filter-helper-wrapper")),$mobilefilter.isAppendLeft=!1,$mobilefilter.removeData("init"),mobileFilterNum($("#modef_num_mobile"),!0)}},checkMobileFilter=function(){(!window.matchMedia("(max-width: 991px)").matches&&!$mobilefilter.isHorizontalOrCompact||!window.matchMedia("(max-width: 767px)").matches&&$mobilefilter.isHorizontalOrCompact)&&CloseMobileFilter(!0)}}else checkTopFilter(),$(document).on("click",".bx-filter-title",(function(){$(this).toggleClass("opened"),$(".visible_mobile_filter").length?($(".visible_mobile_filter").show(),$(".bx_filter_vertical, .bx_filter").slideToggle(333)):($(".bx_filter_vertical").closest("div[id^=bx_incl]").show(),$(".bx_filter_vertical, .bx_filter").slideToggle(333))}))}));
730/* End */
731;
732; /* Start:"a:4:{s:4:"full";s:80:"/bitrix/templates/aspro-allcorp3heat/js/blocks/selectOffer.min.js?16860349812289";s:6:"source";
732s:61:"/bitrix/templates/aspro-allcorp3heat/js/blocks/selectOffer.js";s:3:"min";s:65:"/bitrix/templates/aspro-allcorp3heat/js/blocks/selectOffer.min.js";s:3:"map";s:69:"/bitrix/templates/aspro-allcorp3heat/js/blocks/selectOffer.min.js.map";}"*/
733"SelectOfferProp"in window||"function"==typeof window.SelectOfferProp||(SelectOfferProp=function(){var _this=$(this),obParams={},obSelect={},objUrl=parseUrlQuery(),add_url="",container=_this.closest(".sku-props"),item=_this.closest(".js-popup-block");obParams={PARAMS:$(".js-sku-config").data("value"),BASKET_PARAMS:item.find(".js-config-btns").data("btn-config"),IMG_PARAMS:item.find(".js-config-img").data("img-config"),PRICE_PARAMS:item.find(".js-popup-price").data("price-config"),ID:container.data("item-id"),OFFER_ID:container.data("offer-id"),SITE_ID:container.data("site-id"),IBLOCK_ID:container.data("iblockid"),SKU_IBLOCK_ID:container.data("offer-iblockid"),DEPTH:_this.closest(".sku-props__inner").index(),VALUE:_this.data("onevalue"),SHOW_GALLERY:arAsproOptions.THEME.SHOW_CATALOG_GALLERY_IN_LIST,MAX_GALLERY_ITEMS:arAsproOptions.THEME.MAX_GALLERY_ITEMS,OID:arAsproOptions.THEME.CATALOG_OID,IS_DETAIL:container.hasClass("sku-props--detail")?"Y":"N"},"clear_cache"in objUrl&&"Y"==objUrl.clear_cache&&(add_url+="?clear_cache=Y");let isActiveContainer=container.hasClass("js-selected");for($(".sku-props").removeClass("js-selected"),container.addClass("js-selected"),_this.closest(".sku-props__values").find(".sku-props__value").removeClass("sku-props__value--active"),_this.addClass("sku-props__value--active"),_this.closest(".sku-props__item").find(".sku-props__js-size").text(_this.data("title")),i=0;i<obParams.DEPTH+1;i++)strName="PROP_"+container.find(".sku-props__inner:eq("+i+")").data("id"),obSelect[strName]=container.find(".sku-props__inner:eq("+i+") .sku-props__value--active").data("onevalue"),obParams[strName]=container.find(".sku-props__inner:eq("+i+") .sku-props__value--active").data("onevalue");obParams.SELECTED=JSON.stringify(obSelect),window.obOffers&&"array"===typeofExt(obOffers)&&isActiveContainer?(selectedValues=obSelect,strPropValue=obParams.VALUE,depth=obParams.DEPTH,wrapper=item,arFilter={},tmpFilter=[],UpdateSKUInfoByProps()):$.ajax({url:arAsproOptions.SITE_DIR+"ajax/js_item_detail.php"+add_url,type:"POST",data:obParams}).done((function(html){var ob=BX.processHTML(html);BX.ajax.processScripts(ob.SCRIPT)}))},$(document).on("click",".sku-props__value:not(.sku-props__value--active)",SelectOfferProp));
734/* End */
735;
736; /* Start:"a:4:{s:4:"full";s:81:"/bitrix/templates/aspro-allcorp3heat/js/blocks/tabs-history.min.js?16860349811129";s:6:"source";s:62:"/bitrix/templates/aspro-allcorp3heat/js/blocks/tabs-history.js";s:3:"min";s:66:"/bitrix/templates/aspro-allcorp3heat/js/blocks/tabs-history.min.js";s:3:"map";s:70:"/bitrix/templates/aspro-allcorp3heat/js/blocks/tabs-history.min.js.map";}"*/
737var newHash=location.hash;"onhashchange"in window&&$(window).bind("hashchange",(function(){var newHash=location.hash;if(newHash&&("scrollRestoration"in history&&(history.scrollRestoration="manual"),$('.tabs.tabs-history .nav a[href="'+newHash+'"]').length)){$('.tabs.tabs-history .nav a[href="'+newHash+'"]').trigger("click");var $block=$(newHash);if($block.length){if($block.closest(".tab-pane").length){var offset=-206;"undefined"!=typeof arAsproOptions&&(offset=window.matchMedia("(max-width:991px)").matches?"Y"!==arAsproOptions.THEME.HEADER_MOBILE_FIXED||"ALWAYS"!==arAsproOptions.THEME.HEADER_MOBILE_SHOW?-125:-187:"Y"!==arAsproOptions.THEME.TOP_MENU_FIXED?-125:-206),$block.data("offset",offset)}scrollToBlock(newHash)}else if($(".ordered-block .tabs").length){var content_offset=$(".ordered-block .tabs").offset();$("html, body").animate({scrollTop:content_offset.top-90},400)}}})),$(document).on("click",".tabs.tabs-history a[data-toggle=tab]",(function(e){var $this=$(e.target);"undefined"!=typeof history&&$this.attr("href")&&history.pushState({},"",$this.attr("href"))}));
738/* End */
739;
740; /* Start:"a:4:{s:4:"full";s:67:"/bitrix/templates/aspro-allcorp3heat/js/general.js?1686034982193014";s:6:"source";
740s:50:"/bitrix/templates/aspro-allcorp3heat/js/general.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
741getRandomInt = function (min, max) {
742  return Math.floor(Math.random() * (max - min)) + min;
743};
744
745ShowOverlay = function () {
746  $('<div class="jqmOverlay waiting"></div>').appendTo("body");
747};
748
749function readyDOM(callback) {
750  if (document.readyState !== "loading") callback();
751  else document.addEventListener("DOMContentLoaded", callback);
752}
753
754function throttle(f, t) {
755  let throttled, saveThis, saveArgs;
756  const wrapper = function () {
757    if (throttled) {
758      saveThis = this;
759      saveArgs = arguments;
760      return;
761    }
762    throttled = true;
763    f.apply(this, arguments);
764    setTimeout(function () {
765      throttled = false;
766      if (saveArgs) {
767        wrapper.apply(saveThis, saveArgs);
768        saveThis = saveArgs = null;
769      }
770    }, t);
771  };
772  return wrapper;
773}
774
775function debounce(f, t) {
776  return function (args) {
777    var previousCall = this.lastCall;
778    this.lastCall = Date.now();
779    if (previousCall && this.lastCall - previousCall <= t) {
780      clearTimeout(this.lastCallTimer);
781    }
782    this.lastCallTimer = setTimeout(function () {
783      f(args);
784    }, t);
785  };
786}
787
788window.addEventListener("popstate", function (event) {
789  if (typeof startActions == "function") {
790    setTimeout(startActions, 500);
791  }
792});
793
794$(document).on("change", ".uploader input[type=file]", function () {
795  if (!$(this).next().length || !$(this).next().hasClass("resetfile")) {
796    $(
797      '<span class="resetfile" title="' +
798        BX.message("CLEAR_FILE") +
799        '"><svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9 1.00161L1 9M9 9L1 1" stroke="#999999" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg></span>'
800    ).insertAfter($(this));
801  }
802});
803
804$(document).on("click", ".uploader .resetfile", function () {
805  var $uploader = $(this).closest(".uploader");
806  $uploader.removeClass("error files_add");
807  $uploader.find(".error").hide();
808
809  var $input = $uploader.find("input[type=file]");
810  $input.val("");
811  $.uniform.update($input);
812
813  $(this).remove();
814});
815
816$(document).on("click", ".region-close", function () {
817  $(".confirm_region").fadeOut();
818});
819
820headerInit = function (targetBlock) {
821  var header = $("header");
822  if (header.length) {
823    setTimeout(function () {
824      CheckTopMenuDotted();
825      CheckTopMenuDotted();
826    }, 1);
827  }
828};
829
830typeofExt = function (item) {
831  const _toString = Object.prototype.toString;
832  return _toString.call(item).slice(8, -1).toLowerCase();
833};
834
835HideOverlay = function () {
836  $(".jqmOverlay").detach();
837  CloseMobilePhone();
838};
839
840if (!funcDefined("pauseYmObserver")) {
841  // pause ya metrika webvisor MutationObserver callback (DOM indexer)
842  // use before insert html with some animation
843  pauseYmObserver = function () {
844    if (
845      typeof MutationObserver === "function" &&
846      typeof MutationObserver.observers === "object" &&
847      typeof MutationObserver.observers.ym === "object"
848    ) {
849      if (typeof pauseYmObserver.cnt === "undefined") {
850        pauseYmObserver.cnt = 0;
851      }
852
853      ++pauseYmObserver.cnt;
854
855      if (!MutationObserver.observers.ym.paused) {
856        MutationObserver.observers.ym.pause();
857      }
858    }
859  };
860}
861
862if (!funcDefined("resumeYmObserver")) {
863  // resume ya metrika webvisor MutationObserver callback
864  // use when animation finished
865  resumeYmObserver = function () {
866    if (
867      typeof MutationObserver === "function" &&
868      typeof MutationObserver.observers === "object" &&
869      typeof MutationObserver.observers.ym === "object"
870    ) {
871      if (typeof pauseYmObserver.cnt === "undefined") {
872        pauseYmObserver.cnt = 1;
873      }
874
875      pauseYmObserver.cnt -= pauseYmObserver.cnt > 0 ? 1 : 0;
876
877      if (!pauseYmObserver.cnt && MutationObserver.observers.ym.paused) {
878        MutationObserver.observers.ym.resume();
879      }
880    }
881  };
882}
883
884if (!funcDefined("declOfNum")) {
885  declOfNum = function (number, titles) {
886    var cases = [2, 0, 1, 1, 1, 2];
887    return number + " " + titles[number % 100 > 4 && number % 100 < 20 ? 2 : cases[Math.min(number % 10, 5)]];
888  };
889}
890
891if (!funcDefined('decodeHtmlEntity')) {
892  decodeHtmlEntity = function(str) {
893    return str.replace(/&#(\d+);/g, function(match, dec) {
894      return String.fromCharCode(dec);
895    });
896  };
897}
898
899if (!funcDefined("togglePropBlock")) {
900  togglePropBlock = function (className) {
901    var all_props_block = className.closest(".bx_filter_parameters_box_container").find(".hidden_values");
902    if (all_props_block.length && (className.hasClass("inner_text") || className.hasClass("expand_block"))) {
903      if (all_props_block.is(":visible")) {
904        className.text(BX.message("FILTER_EXPAND_VALUES"));
905        all_props_block.hide();
906      } else {
907        className.text(BX.message("FILTER_HIDE_VALUES"));
908        all_props_block.show();
909      }
910    }
911  };
912}
913
914/*countdown start*/
915if (!funcDefined("initCountdown")) {
916  var initCountdown = function initCountdown() {
917    $(".countdown:not(.countdown-inited)").each(function () {
918      var _this = $(this);
919
920      if (_this.hasClass("init-if-visible") && !_this.is(":visible")) return;
921      _this.addClass("countdown-inited");
922
923      var activeTo = _this.find(".countdown__active-to").text(),
924        dateTo = new Date(activeTo.replace(/(\d+)\.(\d+)\.(\d+)/, "$3/$2/$1"));
925
926      var checkDate = new Date() < dateTo;
927
928      if (checkDate) {
929        if (_this.hasClass("compact"))
930          _this.find(".countdown__items").countdown(
931            {
932              until: dateTo,
933              format: "dHMS",
934              compact: true,
935              padZeroes: true,
936              layout:
937                '{d<}<span class="days countdown__item">{dn}<div class="text">{dl}</div></span>{d>} <span class="hours countdown__item">{hn}<div class="text">{hl}</div></span> <span class="minutes countdown__item">{mn}<div class="text">{ml}</div></span> <span class="sec countdown__item">{sn}<div class="text">{sl}</div></span>',
938              onExpiry: onExpiryCountdown,
939            },
940            $.countdown.regionalOptions["ru"]
941          );
942        else
943          _this.find(".countdown__items").countdown(
944            {
945              until: dateTo,
946              format: "dHMS",
947              padZeroes: true,
948              layout:
949                '{d<}<span class="days countdown__item">{dnn}<div class="text">{dl}</div></span>{d>} <span class="hours countdown__item">{hnn}<div class="text">{hl}</div></span> <span class="minutes countdown__item">{mnn}<div class="text">{ml}</div></span> <span class="sec countdown__item">{snn}<div class="text">{sl}</div></span>',
950              onExpiry: onExpiryCountdown,
951            },
952            $.countdown.regionalOptions["ru"]
953          );
954      } else {
955        _this.hide();
956      }
957    });
958  };
959}
960
961if (!funcDefined("onExpiryCountdown")) {
962  function onExpiryCountdown() {
963    var _this = $(this);
964    var countdownBlock = _this.parents(".countdown");
965
966    if (countdownBlock.length) {
967      countdownBlock.hide();
968    }
969  }
970}
971
972if (!funcDefined("initCountdownTime")) {
973  var initCountdownTime = function initCountdownTime(block, time) {
974    if (time) {
975      var dateTo = new Date(time.replace(/(\d+)\.(\d+)\.(\d+)/, "$3/$2/$1"));
976      block.find(".countdown__items").countdown("destroy");
977      if (block.hasClass("compact"))
978        block.find(".countdown__items").countdown(
979          {
980            until: dateTo,
981            format: "dHM",
982            compact: true,
983            padZeroes: true,
984            layout:
985              '{d<}<span class="days countdown__item">{dn}<div class="text">{dl}</div></span>{d>} <span class="hours countdown__item">{hn}<div class="text">{hl}</div></span> <span class="minutes countdown__item">{mn}<div class="text">{ml}</div></span> <span class="sec countdown__item">{sn}<div class="text">{sl}</div></span>',
986            onExpiry: onExpiryCountdownTime,
987          },
988          $.countdown.regionalOptions["ru"]
989        );
990      elsecountdown__items;
991      block.find(".countdown__items").countdown(
992        {
993          until: dateTo,
994          format: "dHMS",
995          padZeroes: true,
996          layout:
997            '{d<}<span class="days countdown__item">{dnn}<div class="text">{dl}</div></span>{d>} <span class="hours countdown__item">{hnn}<div class="text">{hl}</div></span> <span class="minutes countdown__item">{mnn}<div class="text">{ml}</div></span> <span class="sec countdown__item">{snn}<div class="text">{sl}</div></span>',
998          onExpiry: onExpiryCountdownTime,
999        },
1000        $.countdown.regionalOptions["ru"]
1001      );
1002      block.find(".countdown").show();
1003    } else {
1004      block.find(".countdown").hide();
1005    }
1006  };
1007}
1008if (!funcDefined("onExpiryCountdownTime")) {
1009  function onExpiryCountdownTime() {}
1010}
1011/*countdown end*/
1012
1013$(document).on("click", ".map-mobile-opener", function () {
1014  if ($(this).hasClass("closer")) {
1015    closeFullscreenMap();
1016  } else {
1017    openFullsreenMap(this);
1018  }
1019});
1020
1021function openFullsreenMap(element) {
1022  var $this = $(element);
1023  if ($this.hasClass("closer")) return;
1024
1025  var currentMap = $this.parents(".bx-map-view-layout");
1026  var mapId = currentMap.find(".bx-yandex-map").attr("id");
1027  window.openedYandexMapFrame = mapId;
1028  var mapContainer = $('<div data-mapId="' + mapId + '"></div>');
1029
1030  if (!$("div[data-mapId=" + mapId + "]").length) {
1031    currentMap.after(mapContainer);
1032  }
1033
1034  var addClass = "";
1035  if ($this.parents(".contacts-page-map-top").length) {
1036    addClass += " contacts-map-top-frame ";
1037  }
1038
1039  var yandexMapFrame = $('<div class="yandex-map__frame ' + addClass + '"></div>');
1040  $("body > .body").append(yandexMapFrame);
1041  currentMap.appendTo(yandexMapFrame);
1042  currentMap.find(".map-mobile-opener").addClass("closer");
1043
1044  if (typeof map === "object" && map !== null && "container" in map) {
1045    window.map.container.fitToViewport();
1046  }
1047}
1048
1049function closeFullscreenMap() {
1050  var yandexMapFrame = $(".yandex-map__frame");
1051  if (yandexMapFrame.length) {
1052    var currentMap = yandexMapFrame.find(".bx-map-view-layout");
1053    var yandexMapContainer = $("div[data-mapId=" + window.openedYandexMapFrame + "]");
1054
1055    currentMap.appendTo(yandexMapContainer);
1056    yandexMapFrame.remove();
1057    currentMap.find(".map-mobile-opener").removeClass("closer");
1058
1059    if (typeof map === "object" && map !== null && "container" in map) {
1060      window.map.container.fitToViewport();
1061    }
1062  }
1063}
1064
1065$.fn.iAppear = function (callback, options) {
1066  if (typeof $.fn.iAppear.useObserver === "undefined") {
1067    $.fn.iAppear.useObserver = typeof window["IntersectionObserver"] === "function";
1068
1069    if (!$.fn.iAppear.useObserver && typeof $.fn.appear !== "function") {
1070      $.fn.iAppear.queue = [];
1071      BX.loadScript(arAsproOptions.SITE_TEMPLATE_PATH + "/vendor/js/jquery.appear.js", function () {
1072        if (typeof $.fn.iAppear.queue === "object") {
1073          $.fn.iAppear.queue.forEach(function (queueItem) {
1074            $(queueItem.items).iAppear(queueItem.callback, queueItem.options);
1075          });
1076        }
1077      });
1078
1079      return;
1080    }
1081  }
1082
1083  if ($.fn.iAppear.useObserver) {
1084    var options = $.extend(
1085      {
1086        root: null,
1087        rootMargin: "150px 0px 150px 0px",
1088        threshold: 0.0,
1089      },
1090      options
1091    );
1092
1093    $(this).each(function (i, appearBlock) {
1094      var observer = new IntersectionObserver(function (entries, observer) {
1095        entries.forEach(function (element) {
1096          if (element.intersectionRatio > 0 && !element.target.dataset.iAppeared) {
1097            element.target.dataset.iAppeared = true;
1098
1099            if (typeof callback === "function") {
1100              callback.call(element.target);
1101            }
1102          }
1103        });
1104      }, options);
1105
1106      observer.observe(appearBlock);
1107    });
1108  } else {
1109    if (typeof $.fn.appear !== "function") {
1110      if ($(this).length) {
1111        $.fn.iAppear.queue.push({
1112          items: this,
1113          callback: callback,
1114          options: options,
1115        });
1116      }
1117
1118      return;
1119    } else {
1120      if ($(this).length) {
1121        $(this).each(function (i, appearBlock) {
1122          $(appearBlock).appear(function () {
1123            if (typeof callback === "function") {
1124              callback.call(appearBlock);
1125            }
1126          }, options);
1127        });
1128      }
1129    }
1130  }
1131};
1132
1133$.fn.mCustomScrollbarDeferred = function (config) {
1134  $(this).addClass("scroll-init");
1135  $(this).data("plugin-options", config);
1136
1137  if ($(this).hasClass("destroyed")) {
1138    return;
1139  }
1140
1141  $(this).hover(
1142    function (e) {
1143      var $this = $(this);
1144      if (!$this.hasClass("mCustomScrollbar") && !$(this).hasClass("destroyed")) {
1145        $this.data(
1146          "scrollTimer",
1147          setTimeout(function () {
1148            $this.mCustomScrollbar(config);
1149            $this.off("touchstart touchmove touchend mousewheel mouseenter mouseleave");
1150          }, 200)
1151        );
1152      }
1153    },
1154    function (e) {
1155      clearTimeout($(this).data("scrollTimer"));
1156    }
1157  );
1158
1159  $(this).on("touchstart touchmove", function (e) {
1160    var $this = $(this);
1161    if (!$this.hasClass("mCustomScrollbar") && !$(this).hasClass("destroyed")) {
1162      $this.mCustomScrollbar(config);
1163    }
1164
1165    var $scrollContainer = $this.find(">.mCustomScrollBox>.mCSB_container");
1166    if ($scrollContainer.length) {
1167      var touch = e.originalEvent.touches[0] || e.originalEvent.changedTouches[0];
1168
1169      var newTouch = new Touch({
1170        identifier: 42,
1171        target: $scrollContainer[0],
1172        clientX: touch.clientX,
1173        clientY: touch.clientY,
1174        screenX: touch.screenX,
1175        screenY: touch.screenY,
1176        pageX: touch.pageX,
1177        pageY: touch.pageY,
1178        radiusX: 1,
1179        radiusY: 1,
1180      });
1181
1182      var newEvent = new TouchEvent(e.type, {
1183        cancelable: true,
1184        bubbles: false,
1185        composed: true,
1186        touches: [newTouch],
1187        targetTouches: [newTouch],
1188        changedTouches: [newTouch],
1189      });
1190
1191      $scrollContainer[0].dispatchEvent(newEvent);
1192    }
1193  });
1194
1195  $(this).on("touchend", function (e) {
1196    $(this).off("touchstart touchmove touchend mousewheel mouseenter mouseleave");
1197  });
1198
1199  if ($.event.special.mousewheel) {
1200    $(this).on("mousewheel", function (e) {
1201      var $this = $(this);
1202      if (!$this.hasClass("mCustomScrollbar") && !$(this).hasClass("destroyed")) {
1203        $this.mCustomScrollbar(config);
1204        $this.off("touchstart touchmove touchend mousewheel mouseenter mouseleave");
1205      }
1206    });
1207  }
1208};
1209
1210InitScrollBar = function (el, initOptions) {
1211  var block;
1212  if (typeof el === "undefined") {
1213    block = $(".srollbar-custom:not(.mobile-scroll):not(.scroll-init)");
1214  } else {
1215    block = el.filter(":not(.scroll-init)");
1216  }
1217  var blockParent = $(".scrollbar-parent");
1218
1219  if (
1220    (block.length || blockParent.length) &&
1221    !isMobile
1222    // (!isMobile || window.matchMedia('(min-width:992px)').matches)
1223  ) {
1224    block.addClass("scroll-init");
1225
1226    var options,
1227      defaults = {
1228        mouseWheel: {
1229          scrollAmount: 150,
1230          preventDefault: true,
1231        },
1232      };
1233    if (block.length) {
1234      var config = $.extend({}, defaults, options, block.data("plugin-options"), initOptions);
1235    } else if (blockParent.length) {
1236      var config = $.extend({}, defaults, options, blockParent.data("plugin-options"), initOptions);
1237    }
1238
1239    config.callbacks = {
1240      onScroll: function () {
1241        if ($(this).find(".mCSB_buttonLeft").hasClass("disabled"))
1242          $(this).find(".mCSB_buttonLeft").removeClass("disabled");
1243        if ($(this).find(".mCSB_buttonRight").hasClass("disabled"))
1244          $(this).find(".mCSB_buttonRight").removeClass("disabled");
1245      },
1246      onTotalScrollBack: function () {
1247        $(this).find(".mCSB_buttonLeft").addClass("disabled");
1248      },
1249      onTotalScroll: function () {
1250        $(this).find(".mCSB_buttonRight").addClass("disabled");
1251      },
1252      onInit: function () {
1253        $(this).find(".mCSB_buttonLeft").addClass("disabled");
1254      },
1255    };
1256
1257    if (block.length) {
1258      block.filter(":not(.scroll-deferred)").mCustomScrollbar(config);
1259      block.filter(".scroll-deferred").mCustomScrollbarDeferred(config);
1260    }
1261
1262    if (blockParent.length) {
1263      blockParent.find(".scroll-deferred").mCustomScrollbarDeferred(config);
1264    }
1265  }
1266};
1267
1268InitCustomScrollBar = function (el) {
1269  var block;
1270  if (typeof el === "undefined") {
1271    block = $(".scrollbar:not(.mobile-scroll):not(.scroll-init)");
1272  } else {
1273    block = el.filter(":not(.scroll-init)");
1274  }
1275
1276  if (block.length) {
1277    block.addClass("scroll-init");
1278
1279    var options,
1280      defaults = {
1281        effect: "fadeIn",
1282        effectTime: 300,
1283        threshold: 0,
1284        // threshold: 30
1285      };
1286
1287    var config = $.extend({}, defaults, options, block.data("plugin-options"));
1288
1289    block.filter(":not(.scroll-deferred)").mCustomScrollbar(config);
1290    block.filter(".scroll-deferred").mCustomScrollbarDeferred(config);
1291  }
1292};
1293
1294InitFancyBox = function () {
1295  if (typeof $.fn.fancybox !== "function") {
1296    return;
1297  }
1298
1299  if (!$(".fancy").length) {
1300    return;
1301  }
1302
1303  $(".fancy").fancybox({
1304    padding: [40, 40, 64, 40],
1305    openEffect: "fade",
1306    closeEffect: "fade",
1307    nextEffect: "fade",
1308    prevEffect: "fade",
1309    opacity: true,
1310    tpl: {
1311      closeBtn:
1312        '<span title="' +
1313        BX.message("FANCY_CLOSE") +
1314        '" class="fancybox-item fancybox-close inline svg"><svg class="svg svg-close" width="14" height="14" viewBox="0 0 14 14"><path data-name="Rounded Rectangle 568 copy 16" d="M1009.4,953l5.32,5.315a0.987,0.987,0,0,1,0,1.4,1,1,0,0,1-1.41,0L1008,954.4l-5.32,5.315a0.991,0.991,0,0,1-1.4-1.4L1006.6,953l-5.32-5.315a0.991,0.991,0,0,1,1.4-1.4l5.32,5.315,5.31-5.315a1,1,0,0,1,1.41,0,0.987,0.987,0,0,1,0,1.4Z" transform="translate(-1001 -946)"></path></svg></span>',
1315      next:
1316        '<a title="' +
1317        BX.message("FANCY_NEXT") +
1318        '" class="fancybox-nav fancybox-next" href="javascript:;"><span></span></a>',
1319      prev:
1320        '<a title="' +
1321        BX.message("FANCY_PREV") +
1322        '" class="fancybox-nav fancybox-prev" href="javascript:;"><span></span></a>',
1323    },
1324    touch: "enabled",
1325    buttons: [
1326      //"zoom",
1327      //"share",
1328      // "slideShow",
1329      //"fullScreen",
1330      //"download",
1331      //"thumbs",
1332      "close",
1333    ],
1334    backFocus: false,
1335    beforeShow: function (event) {
1336      var bCurrentSrc =
1337        typeof event.current !== "undefined" && event.current.contentType == "html" && $(event.current.src).length;
1338      var video_block = [];
1339
1340      if (bCurrentSrc) {
1341        video_block = $(event.current.src).find("source.video-content");
1342      }
1343      // else {
1344      //   video_block = $(".company-item source.video-content");
1345      // }
1346      if (video_block.length) {
1347        if (video_block.attr("src") == "#") {
1348          var video_block_wrapper = video_block.closest("video");
1349          var video_block_clone = video_block_wrapper.clone();
1350
1351          video_block_clone.find("source").attr("src", video_block_clone.find("source").data("src"));
1352          video_block.attr("src", video_block.data("src"));
1353          video_block_clone.insertAfter(video_block_wrapper);
1354          video_block_clone.siblings("video").remove();
1355        }
1356      }
1357      var video_block_frame = [];
1358      if (bCurrentSrc) {
1359        video_block_frame = $(event.current.src).find(".company-item__video-iframe");
1360      }
1361      // else {
1362      //   video_block_frame = $(".company-item .company-item__video-iframe");
1363      // }
1364      if (video_block_frame.length) {
1365        var data_src_iframe = video_block_frame.attr("data-src");
1366        video_block_frame.attr("src", data_src_iframe);
1367        video_block_frame.attr("allow", "autoplay");
1368      }
1369    },
1370    afterShow: function (event) {
1371      if ($(".fancybox-overlay").css("opacity") == 0) {
1372        setTimeout(function () {
1373          $(".fancybox-overlay").css("opacity", 1);
1374          $("html").addClass("overflow_html");
1375        }, 200);
1376      }
1377
1378      $(".fancybox-nav").css("opacity", 0);
1379      setTimeout(function () {
1380        $(".fancybox-nav").css("opacity", 1);
1381      }, 150);
1382
1383      var bCurrentSrc =
1384        typeof event.current !== "undefined" && event.current.contentType == "html" && $(event.current.src).length;
1385      var companyVideo = [];
1386      if (bCurrentSrc) {
1387        companyVideo = event.current.src[0].getElementsByClassName("company-item__video");
1388      }
1389      // else {
1390      //   companyVideo = $(".fancybox-inner .company-item__video");
1391      // }
1392      if (companyVideo.length) {
1393        setTimeout(function () {
1394          $(".fancybox-wrap video").resize();
1395          setTimeout(function () {
1396            $(".fancybox-wrap").addClass("show_video");
1397            if (companyVideo[0].currentTime === 0 || companyVideo[0].paused) {
1398              companyVideo[0].currentTime = 0;
1399              companyVideo[0].play();
1400            }
1401          }, 300);
1402        }, 150);
1403      } else if ($(".fancybox-wrap iframe").length) {
1404        $(".fancybox-inner").height("100%");
1405      }
1406    },
1407    beforeClose: function (event) {
1408      // closeModal();
1409      $(".fancybox-overlay").fadeOut();
1410      var bCurrentSrc =
1411        typeof event.current !== "undefined" && event.current.contentType == "html" && $(event.current.src).length;
1412      var companyVideo = [];
1413      if (bCurrentSrc) {
1414        companyVideo = event.current.src[0].getElementsByClassName("company-item__video");
1415      }
1416      // else {
1417      //   companyVideo = $(".fancybox-inner .company-item__video");
1418      // }
1419      if (companyVideo.length) {
1420        companyVideo[0].currentTime = 0;
1421      }
1422
1423      $("html").removeClass("overflow_html");
1424      var video_block_frame = [];
1425      if (bCurrentSrc) {
1426        video_block_frame = $(event.current.src).find(".company-item__video-iframe");
1427      }
1428      // else {
1429      //   video_block_frame = $(".company-item .company-item__video-iframe");
1430      // }
1431      if (video_block_frame.length) {
1432        video_block_frame.attr("src", "");
1433      }
1434    },
1435    onClosed: function (event) {
1436      var companyVideo = [];
1437      if (bCurrentSrc) {
1438        companyVideo = event.current.src[0].getElementsByClassName("company-item__video");
1439      }
1440      // else {
1441      //   companyVideo = $(".fancybox-wrap .company-item__video");
1442      // }
1443      if (companyVideo.length) {
1444        companyVideo[0].pause();
1445      }
1446    },
1447  });
1448};
1449
1450InitFancyBoxVideo = function () {
1451  if (typeof $.fn.fancybox !== "function") {
1452    return;
1453  }
1454
1455  if (!$(".video_link").length) {
1456    return;
1457  }
1458
1459  $(".video_link").fancybox({
1460    type: "iframe",
1461    maxWidth: 800,
1462    maxHeight: 600,
1463    fitToView: false,
1464    width: "70%",
1465    height: "70%",
1466    autoSize: false,
1467    closeClick: false,
1468    opacity: true,
1469    tpl: {
1470      closeBtn:
1471        '<span title="' +
1472        BX.message("FANCY_CLOSE") +
1473        '" class="fancybox-item fancybox-close inline svg"><svg class="svg svg-close" width="14" height="14" viewBox="0 0 14 14"><path data-name="Rounded Rectangle 568 copy 16" d="M1009.4,953l5.32,5.315a0.987,0.987,0,0,1,0,1.4,1,1,0,0,1-1.41,0L1008,954.4l-5.32,5.315a0.991,0.991,0,0,1-1.4-1.4L1006.6,953l-5.32-5.315a0.991,0.991,0,0,1,1.4-1.4l5.32,5.315,5.31-5.315a1,1,0,0,1,1.41,0,0.987,0.987,0,0,1,0,1.4Z" transform="translate(-1001 -946)"></path></svg></span>',
1474      next:
1475        '<a title="' +
1476        BX.message("FANCY_NEXT") +
1477        '" class="fancybox-nav fancybox-next" href="javascript:;"><span></span></a>',
1478      prev:
1479        '<a title="' +
1480        BX.message("FANCY_PREV") +
1481        '" class="fancybox-nav fancybox-prev" href="javascript:;"><span></span></a>',
1482    },
1483    beforeShow: function (event) {
1484      /*if(!$('.cd-modal-bg').hasClass('is-visible')){
1485				var scaleValue = retrieveScale($('.cd-modal-bg'));
1486
1487				$('.cd-modal-bg').show().addClass('is-visible').one('webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend', function(){
1488					animateLayer($('.cd-modal-bg'), scaleValue, true);
1489				});
1490			}*/
1491    },
1492    afterShow: function () {
1493      if ($(".fancybox-overlay").css("opacity") == 0) {
1494        setTimeout(function () {
1495          $(".fancybox-overlay").css("opacity", 1);
1496          $("html").addClass("overflow_html");
1497        }, 200);
1498      }
1499
1500      $(".fancybox-nav").css("opacity", 0);
1501      setTimeout(function () {
1502        $(".fancybox-nav").css("opacity", 1);
1503      }, 150);
1504      if ($(".fancybox-wrap iframe").length) {
1505        $(".fancybox-inner").height("100%");
1506      }
1507    },
1508    beforeClose: function () {
1509      // closeModal();
1510      $(".fancybox-overlay").fadeOut();
1511      $("html").removeClass("overflow_html");
1512    },
1513  });
1514};
1515
1516/*function CheckTopMenuDotted() {
1517  var menu = $("nav.mega-menu.sliced");
1518  if (window.matchMedia("(max-width:991px)").matches) return;
1519  
1520  if (menu.length) {
1521    menu.each(function () {
1522      var menuMoreItem = $(this).find(".header-menu__item--more-items");
1523      if ($(this).parents(".collapse").css("display") == "none") {
1524        return false;
1525      }
1526      
1527      var headerFixedBlock = $(this).parents("#headerfixed");
1528      if (headerFixedBlock.length && !headerFixedBlock.hasClass("fixed")) {
1529        return false;
1530      }
1531      
1532      var block = $(this).closest(".header-menu");
1533      var block_w = block.outerWidth();
1534      var items = $(this).find(".header-menu__wrapper > .header-menu__item");
1535      var menu_w = 0;
1536      items.each(function (i, el) {
1537        var _el = $(el);
1538        menu_w += _el.outerWidth(true);
1539      });
1540
1541      var afterHide = false;
1542      var newItemsArr = [];
1543      menuItemNewSave = "";
1544
1545      while (menu_w > block_w - 1) {
1546        menuItemOldSave = $(this)
1547          .find(".header-menu__wrapper > .header-menu__item")
1548          .not(".header-menu__item--more-items")
1549          .last();
1550
1551        if (menuItemOldSave.length) {
1552          var classes = menuItemOldSave.attr("class");
1553          var newMenuItem = $("<li />").addClass(classes).attr("data-hidewidth", menu_w).html(menuItemOldSave.html());
1554          newItemsArr.push(newMenuItem);
1555
1556          menuItemOldSave.remove();
1557
1558          menuMoreItem.css({
1559            display: "flex",
1560            opacity: 1,
1561          });
1562
1563          menu_w = 0;
1564          items.each(function (i, el) {
1565            var _el = $(el);
1566            menu_w += _el.outerWidth(true);
1567          });
1568          block_w = block.outerWidth();
1569          afterHide = true;
1570        } else {
1571          break;
1572        }
1573      }
1574
1575      newItemsArr = newItemsArr.reverse();
1576      menuMoreItem.find("> .header-menu__dropdown-menu").prepend(newItemsArr);
1577
1578      if (!afterHide) {
1579        var moreItemsArr = [];
1580        do {
1581          menuItemOldSave = menuMoreItem.find("> .header-menu__dropdown-menu > li").first();
1582          if (!menuItemOldSave.length) {
1583            menuMoreItem.hide();
1584            break;
1585          } else {
1586            var hideWidth = menuItemOldSave.attr("data-hidewidth");
1587            if (hideWidth > block_w) {
1588              break;
1589            } else {
1590              menuItemOldSave.removeClass("scroll-inited");
1591              var classes = menuItemOldSave.attr("class");
1592              var moreMenuItem = $("<div />
1592").addClass(classes).html(menuItemOldSave.html());
1593
1594              menuItemOldSave.remove();
1595              $(moreMenuItem).insertBefore(menuMoreItem);
1596              if (!menuItemOldSave.length) {
1597                menuMoreItem.hide();
1598                break;
1599              }
1600            }
1601          }
1602
1603          menu_w = 0;
1604          items.each(function (i, el) {
1605            var _el = $(el);
1606            menu_w += _el.outerWidth();
1607          });
1608        } while (menu_w <= block_w);
1609      }
1610
1611      menu.closest(".header-menu").addClass("dotted-complete");
1612      var wrapper = $(this).closest(".hide-dotted");
1613      if (wrapper.length) {
1614        wrapper.addClass("dotted-complete");
1615      }
1616    });
1617  }
1618  return false;
1619};
1620*/
1621
1622CheckTopVisibleMenu = function (that) {
1623  var dropdownMenu = $(that).find(">.header-menu__dropdown-menu");
1624
1625  if (!dropdownMenu.length) {
1626    dropdownMenu = $(that).find(">.header-menu__wide-item-wrapper>.header-menu__wide-submenu");
1627  }
1628  if (!dropdownMenu.length) {
1629    dropdownMenu = $(that).find(">.header-menu__wide-submenu-item-inner>.submenu-wrapper>.header-menu__wide-submenu");
1630  }
1631
1632  if (!dropdownMenu.length) {
1633    return;
1634  }
1635
1636  // if( that !== undefined ) {
1637  // 	dropdownMenu.push($(that));
1638  // }
1639
1640  if (dropdownMenu.length) {
1641    dropdownMenu.each(function (i, el) {
1642      var dropdownMenuCurrent = $(el);
1643      dropdownMenuCurrent.find("a").css("white-space", "");
1644      dropdownMenuCurrent.css("left", "");
1645      dropdownMenuCurrent.css("right", "");
1646      dropdownMenuCurrent.removeClass("toright");
1647
1648      var dropdownMenuCurrent_left = dropdownMenuCurrent.offset().left;
1649
1650      if (typeof dropdownMenuCurrent_left != "undefined") {
1651        var menu = dropdownMenuCurrent.parents(".header__main-part");
1652        if (!menu.length) menu = dropdownMenuCurrent.closest(".header__top-inner");
1653        var menu_width = menu.outerWidth();
1654        var menu_left = menu.offset().left;
1655        var menu_right = menu_left + menu_width;
1656        var isToRight = dropdownMenuCurrent.parents(".toright").length > 0;
1657        var parentsdropdownMenuCurrents = dropdownMenuCurrent.parents(".header-menu__dropdown-menu");
1658        var isHasParentdropdownMenuCurrent = parentsdropdownMenuCurrents.length > 0;
1659        if (isHasParentdropdownMenuCurrent) {
1660          var parentdropdownMenuCurrent_width = parentsdropdownMenuCurrents.first().outerWidth()
1661            ? parentdropdownMenuCurrent_width
1662            : 240;
1663          var parentdropdownMenuCurrent_left = parentsdropdownMenuCurrents.first().offset().left;
1664          var parentdropdownMenuCurrent_right = parentdropdownMenuCurrent_width + parentdropdownMenuCurrent_left;
1665        }
1666
1667        var emptyCurrentWidth = dropdownMenuCurrent.outerWidth() == 0;
1668
1669        var dropdownMenuCurrent_width = !emptyCurrentWidth ? dropdownMenuCurrent.outerWidth() : 240;
1670
1671        if (parentdropdownMenuCurrent_right + dropdownMenuCurrent_width > menu_right) {
1672          dropdownMenuCurrent.find("a").css("white-space", "normal");
1673        }
1674
1675        var dropdownMenuCurrent_right = dropdownMenuCurrent_left + dropdownMenuCurrent_width;
1676
1677        if (dropdownMenuCurrent_right > menu_right || isToRight) {
1678          var addleft = 0;
1679          addleft = menu_right - dropdownMenuCurrent_right;
1680          if (isHasParentdropdownMenuCurrent || isToRight) {
1681            dropdownMenuCurrent.css("left", "auto");
1682            dropdownMenuCurrent.css("right", "100%");
1683            dropdownMenuCurrent.addClass("toright");
1684          } else {
1685            var dropdownMenuCurrent_curLeft = parseInt(dropdownMenuCurrent.css("left"));
1686            dropdownMenuCurrent.css("left", dropdownMenuCurrent_curLeft + addleft + "px");
1687          }
1688        }
1689        var firstMenuItem = dropdownMenuCurrent.parent().hasClass("header-menu__item--first");
1690        if (!firstMenuItem) {
1691          if (dropdownMenuCurrent_right < 240 + menu_left) {
1692            dropdownMenuCurrent.css("left", "100%");
1693            dropdownMenuCurrent.css("right", "0");
1694            dropdownMenuCurrent.removeClass("toright");
1695          }
1696          var childDropDown = dropdownMenuCurrent.find(">.dropdown");
1697          if (childDropDown.length) {
1698            childDropDown.css("left", "");
1699            childDropDown.css("right", "");
1700          }
1701          if (emptyCurrentWidth && childDropDown.length && dropdownMenuCurrent_right < 480 + menu_left) {
1702            dropdownMenuCurrent.css("left", "100%");
1703            dropdownMenuCurrent.css("right", "0");
1704            dropdownMenuCurrent.removeClass("toright");
1705            childDropDown.css("left", "100%");
1706            childDropDown.css("right", "0");
1707          }
1708        }
1709      }
1710    });
1711  }
1712};
1713
1714MegaMenuFixed = function () {
1715  var animationTime = 150;
1716  $megaFixedNlo = $(".mega-fixed-menu").find("[data-nlo]");
1717
1718  $(document).on("click", ".header .burger", function () {
1719    if ($megaFixedNlo.length) {
1720      if (!$megaFixedNlo.hasClass("nlo-loadings")) {
1721        $megaFixedNlo.addClass("nlo-loadings");
1722        setTimeout(function () {
1723          $.ajax({
1724            data: { nlo: $megaFixedNlo.attr("data-nlo") },
1725            error: function () {
1726              $megaFixedNlo.removeClass("nlo-loadings");
1727            },
1728            complete: function (jqXHR, textStatus) {
1729              if (textStatus === "success" || jqXHR.status == 404) {
1730                var ob = BX.processHTML($.trim(jqXHR.responseText));
1731                BX.ajax.processScripts(ob.SCRIPT);
1732                $megaFixedNlo.replaceWith(ob.HTML);
1733              }
1734            },
1735          });
1736        }, 300);
1737      }
1738    }
1739
1740    $("body").css("overflow", "hidden");
1741    $(".mega-fixed-menu").fadeIn(animationTime);
1742    $(".mega-fixed-menu").css("display", "flex");
1743  });
1744
1745  $(".mega-fixed-menu__close").on("click", function () {
1746    $(this).closest(".mega-fixed-menu").fadeOut(animationTime);
1747    //$("body").css("overflow", "auto");
1748    $("body").css("overflow", "");
1749  });
1750
1751  $(".mega-fixed-menu .dropdown-menu .arrow").on("click", function (e) {
1752    e.preventDefault();
1753    e.stopPropagation();
1754    $(this).closest(".dropdown-submenu").find(".dropdown-menu").slideToggle(animationTime);
1755    $(this).closest(".dropdown-submenu").addClass("opened");
1756  });
1757};
1758
1759CheckMainBannerSliderVText = function (slider) {
1760  /*if(slider.parents('.banners-big').length){
1761		var sh = slider.height();
1762		slider.find('.item').each(function() {
1763			var curSlideTextInner = $(this).find('.text .inner');
1764			if(curSlideTextInner.length){
1765				var ith = curSlideTextInner.actual('height');
1766				var p = (ith >= sh ? 0 : Math.floor((sh - ith) / 2));
1767				curSlideTextInner.css('padding-top', p + 'px');
1768			}
1769		});
1770	}*/
1771};
1772
1773footerInit = function (block) {
1774  if (block.hasClass("check-visible")) {
1775    const blockJsPadding = $(".js-check-padding");
1776    const blockJsHide = $(".js-check-hide");
1777
1778    if (blockJsPadding.length && blockJsHide.length && block.data("ajax-check-visible")) {
1779      const arCheckBlock = block.data("ajax-check-visible").split(",");
1780      let bHiddenBlocks = arCheckBlock.every(function (i) {
1781        return $('[data-ajax-load-block="' + i + '"]').hasClass("hidden") === true;
1782      });
1783
1784      if (bHiddenBlocks) {
1785        blockJsHide.addClass("hidden");
1786        blockJsPadding.addClass("js-padding");
1787      } else {
1788        blockJsHide.removeClass("hidden");
1789        blockJsPadding.removeClass("js-padding");
1790      }
1791    }
1792  }
1793};
1794
1795verticalAlign = function (class_name) {
1796  if (typeof class_name == "undefined") class_name = "auto_align";
1797  if ($("." + class_name).length) {
1798    maxHeight = 0;
1799    $("." + class_name).each(function () {
1800      if ($(this).height() > maxHeight) {
1801        maxHeight = $(this).height();
1802      }
1803    });
1804    $("." + class_name).each(function () {
1805      delta = Math.round((maxHeight - $(this).height()) / 2);
1806      $(this).css({ "padding-top": delta + "px", "padding-bottom": delta + "px" });
1807    });
1808  }
1809};
1810
1811getGridSize = function (counts, custom_counts) {
1812  var z = parseInt($(".body_media").css("top"));
1813  if (typeof custom_counts != "undefined") {
1814    if (window.matchMedia("(max-width: 700px)").matches) return counts[3] ? counts[3] : counts[2];
1815    else if (window.matchMedia("(max-width: 850px)").matches) return counts[2];
1816    else if (window.matchMedia("(max-width: 1100px)").matches) return counts[1];
1817    else return counts[0];
1818  } else {
1819    if (window.matchMedia("(max-width: 600px)").matches) {
1820      return counts[3] ? counts[3] : counts[2];
1821    } else return z == 2 ? counts[0] : z == 1 ? counts[1] : counts[2];
1822  }
1823};
1824
1825CheckFlexSlider = function () {
1826  $(".flexslider:not(.thmb):visible").each(function () {
1827    var slider = $(this);
1828    slider.resize();
1829    var counts = slider.data("flexslider").vars.counts,
1830      slide_counts = slider.data("flexslider").vars.slide_counts;
1831    if (typeof counts != "undefined") {
1832      var cnt = getGridSize(counts, slider.data("flexslider").vars.customGrid);
1833      var to0 =
1834        cnt != slider.data("flexslider").vars.minItems ||
1835        cnt != slider.data("flexslider").vars.maxItems ||
1836        cnt != slider.data("flexslider").vars.move;
1837      if (to0) {
1838        slider.data("flexslider").vars.minItems = cnt;
1839        slider.data("flexslider").vars.maxItems = cnt;
1840        if (typeof slide_counts != "undefined") slider.data("flexslider").vars.move = slide_counts;
1841        else slider.data("flexslider").vars.move = cnt;
1842
1843        slider.flexslider(0);
1844        slider.resize();
1845        slider.resize(); // twise!
1846      }
1847    }
1848  });
1849};
1850
1851CheckHeaderFixed = function () {
1852  var header = $("header .header__inner").first(),
1853    header_fixed = $("#headerfixed");
1854
1855  if (header_fixed.length) {
1856    if (header.length) {
1857      var isHeaderFixed = false,
1858        headerCanFix = true,
1859        headerFixedHeight = header_fixed.actual("outerHeight"),
1860        headerNormalHeight = header.actual("outerHeight"),
1861        headerDiffHeight = headerNormalHeight - headerFixedHeight,
1862        mobileBtnMenu = $(".btn.btn-responsive-nav"),
1863        headerTop = $("#panel:visible").actual("outerHeight"),
1864        topBlock = $(".TOP_HEADER").first(),
1865        $headerFixedNlo = header_fixed.find("[data-nlo]"),
1866        $eyedPanel = $("#eyed-panel"),
1867        isNloLoaded = !$headerFixedNlo.length,
1868        OnHeaderFixedScrollHandler;
1869
1870      if (headerDiffHeight <= 0) headerDiffHeight = 0;
1871      if ($eyedPanel.length) headerTop += $eyedPanel.actual("outerHeight");
1872
1873      if (topBlock.length) headerTop += topBlock.actual("outerHeight");
1874
1875      $(window).scroll(
1876        (OnHeaderFixedScrollHandler = function () {
1877          var scrollTop = $(window).scrollTop();
1878          headerCanFix = !mobileBtnMenu.is(":visible");
1879
1880          if (!isHeaderFixed) {
1881            if (headerCanFix && scrollTop > headerNormalHeight + headerTop) {
1882              if (!isNloLoaded) {
1883                if (!$headerFixedNlo.hasClass("nlo-loadings")) {
1884                  $headerFixedNlo.addClass("nlo-loadings");
1885                  setTimeout(function () {
1886                    $.ajax({
1887                      data: { nlo: $headerFixedNlo.attr("data-nlo") },
1888                      error: function () {
1889                        $headerFixedNlo.removeClass("nlo-loadings");
1890                      },
1891                      complete: function (jqXHR, textStatus) {
1892                        if (textStatus === "success" || jqXHR.status == 404) {
1893                          // stop ya metrika webvisor DOM indexer
1894                          pauseYmObserver();
1895
1896                          isNloLoaded = true;
1897                          var ob = BX.processHTML($.trim(jqXHR.responseText));
1898                          BX.ajax.processScripts(ob.SCRIPT);
1899                          $headerFixedNlo.replaceWith(ob.HTML);
1900
1901                          OnHeaderFixedScrollHandler();
1902
1903                          // resume ya metrika webvisor
1904                          // (300ms transition) + (100ms scroll handler)
1905                          setTimeout(resumeYmObserver, 400);
1906                        }
1907                      },
1908                    });
1909                  }, 300);
1910                }
1911              } else {
1912                isHeaderFixed = true;
1913                header_fixed.css("top", "-" + headerNormalHeight + "px");
1914                header_fixed.addClass("fixed");
1915
1916                header_fixed.animate({ top: "0" }, { duration: 300, complete: function () {} });
1917                CheckTopMenuDotted();
1918              }
1919            }
1920          }
1921
1922          if (isHeaderFixed || !headerCanFix) {
1923            if (!headerCanFix || scrollTop <= headerDiffHeight + headerTop) {
1924              isHeaderFixed = false;
1925              header_fixed.removeClass("fixed");
1926            }
1927          }
1928        })
1929      );
1930    }
1931  }
1932
1933  // mobile fixed
1934  var mfixed = $("body.mfixed_y.mfixed_view_scroll_top #mobileheader");
1935  if (mfixed.length) {
1936    var mheaderFixed = false,
1937      mheaderFixedHeight = mfixed.actual("outerHeight"),
1938      mheaderTop = $("#panel:visible").actual("outerHeight"),
1939      mheaderStartScroll = 0;
1940
1941    $(window).scroll(function () {
1942      if (window.matchMedia("(max-width:991px)").matches) {
1943        var scrollTop = $(window).scrollTop();
1944        if (!mheaderFixed) {
1945          if (scrollTop > mheaderTop + mheaderFixedHeight && scrollTop < mheaderStartScroll) {
1946            mfixed.addClass("fixed");
1947            mheaderFixed = true;
1948          }
1949        } else {
1950          if (scrollTop <= mheaderTop || scrollTop > mheaderStartScroll) {
1951            mfixed.removeClass("fixed");
1952            mheaderFixed = false;
1953          }
1954        }
1955
1956        mheaderStartScroll = scrollTop;
1957      } else {
1958        mfixed.removeClass("fixed");
1959      }
1960    });
1961  }
1962};
1963
1964CheckObjectsSizes = function () {
1965  $(".container iframe,.container object,.container video").each(function () {
1966    var height_attr = $(this).attr("height");
1967    var width_attr = $(this).attr("width");
1968
1969    if (height_attr && width_attr) {
1970      $(this).css("height", ($(this).outerWidth() * height_attr) / width_attr);
1971    }
1972  });
1973};
1974
1975scrollToTop = function () {
1976  if (arAsproOptions["THEME"]["SCROLLTOTOP_TYPE"] !== "NONE") {
1977    scrollToTopAnimateClassIn =
1978      arAsproOptions.THEME.SCROLLTOTOP_TYPE.indexOf("ROUND") !== -1 ? "rotateIn" : "rubberBand";
1979    scrollToTopAnimateClassOut =
1980      arAsproOptions.THEME.SCROLLTOTOP_TYPE.indexOf("ROUND") !== -1 ? "rotateOut" : "flipOutX";
1981    if (BX.browser.IsMac()) {
1982      scrollToTopAnimateClassIn = scrollToTopAnimateClassOut = "";
1983    }
1984    var _isScrolling = false;
1985    // Append Button
1986    $("body").append(
1987      $("<a />")
1988        .addClass(
1989          "scroll-to-top " +
1990            arAsproOptions["THEME"]["SCROLLTOTOP_TYPE"] +
1991            " " +
1992            arAsproOptions["THEME"]["SCROLLTOTOP_POSITION"]
1993        )
1994        .attr({ href: "#", id: "scrollToTop" })
1995    );
1996    $scrolltotop = $("#scrollToTop");
1997
1998    if (arAsproOptions.THEME.SCROLLTOTOP_POSITION_RIGHT)
1999      $scrolltotop.css({ right: arAsproOptions.THEME.SCROLLTOTOP_POSITION_RIGHT + "px", left: "auto" });
2000
2001    $scrolltotop.click(function (e) {
2002      e.preventDefault();
2003      $("body, html").animate({ scrollTop: 0 }, 500);
2004      return false;
2005    });
2006    // Show/Hide Button on Window Scroll event.
2007    $(window).scroll(function () {
2008      if (!_isScrolling) {
2009        _isScrolling = true;
2010
2011        var bottom = 23,
2012          scrollVal = $(window).scrollTop(),
2013          windowHeight = $(window).height();
2014
2015        if (arAsproOptions.THEME.SCROLLTOTOP_POSITION_BOTTOM) {
2016          bottom = arAsproOptions.THEME.SCROLLTOTOP_POSITION_BOTTOM;
2017          $scrolltotop.css("bottom", bottom + "px");
2018        }
2019
2020        var footerOffset = 0;
2021        if ($("footer").get(0)) {
2022          footerOffset = $("footer").offset().top;
2023        }
2024        if (scrollVal > 150) {
2025          $("#scrollToTop").stop(true, true).addClass("visible");
2026          _isScrolling = false;
2027        } else {
2028          $("#scrollToTop").stop(true, true).removeClass("visible");
2029          _isScrolling = false;
2030        }
2031        CheckScrollToTop();
2032      }
2033    });
2034  }
2035};
2036
2037CheckScrollToTop = function () {
2038  if (typeof arAsproOptions === "undefined") {
2039    return;
2040  }
2041
2042  if (arAsproOptions["THEME"]["SCROLLTOTOP_TYPE"] !== "NONE" && $scrolltotop.length != undefined) {
2043    if (documentScrollTop > 150) {
2044      $scrolltotop.stop(true, true).addClass("visible").addClass("animated");
2045      if (scrollToTopAnimateClassOut) {
2046        $scrolltotop.removeClass(scrollToTopAnimateClassOut);
2047      }
2048      if (scrollToTopAnimateClassIn) {
2049        $scrolltotop.addClass(scrollToTopAnimateClassIn);
2050      }
2051    } else {
2052      $scrolltotop.stop(true, true).removeClass("visible");
2053      if (scrollToTopAnimateClassIn) {
2054        $scrolltotop.removeClass(scrollToTopAnimateClassIn);
2055      }
2056      if (scrollToTopAnimateClassOut) {
2057        $scrolltotop.addClass(scrollToTopAnimateClassOut);
2058      }
2059    }
2060  }
2061  var bottom = 23,
2062    scrollVal = $(window).scrollTop(),
2063    windowHeight = $(window).height();
2064
2065  if (arAsproOptions.THEME.SCROLLTOTOP_POSITION_BOTTOM) {
2066    bottom = arAsproOptions.THEME.SCROLLTOTOP_POSITION_BOTTOM;
2067    $scrolltotop.css("bottom", bottom + "px");
2068  }
2069
2070  if ($("footer").length) var footerOffset = $("footer").offset().top;
2071
2072  if (scrollVal + windowHeight > footerOffset) {
2073    $("#scrollToTop").css("bottom", Math.round(bottom + scrollVal + windowHeight - footerOffset));
2074  } else if (parseInt($("#scrollToTop").css("bottom")) > bottom) {
2075    $("#scrollToTop").css("bottom", Math.round(bottom));
2076  }
2077};
2078
2079var isMobile = jQuery.browser.mobile;
2080var players = {};
2081
2082if (isMobile) {
2083  document.documentElement.className += " mobile";
2084}
2085
2086var timerScroll = false,
2087  ignoreScroll = [],
2088  documentScrollTopLast = $(document).scrollTop(),
2089  startScroll = 0;
2090
2091$.fn.equalizeHeights = function (outer, classNull, minHeight, autoHeightBlock) {
2092  var maxHeight = this.map(function (i, e) {
2093    var minus_height = 0,
2094      calc_height = 0;
2095    if (classNull !== false && $(e).find(classNull).is(":visible"))
2096      minus_height = parseInt($(e).find(classNull).actual("outerHeight"));
2097    if (minus_height) minus_height += 15;
2098    $(e).css("height", "");
2099    if (autoHeightBlock !== false) {
2100      var height_tmp = $(e).find(autoHeightBlock).css("height");
2101      $(e).find(autoHeightBlock).css("height", "");
2102    }
2103    if (outer === true) {
2104      calc_height = $(e).actual("outerHeight") - minus_height;
2105    } else {
2106      calc_height = $(e).actual("height") - minus_height;
2107    }
2108
2109    if (autoHeightBlock !== false) {
2110      $(e).find(autoHeightBlock).css("height", height_tmp);
2111    }
2112    if (minHeight !== false) {
2113      if (calc_height < minHeight) {
2114        calc_height += minHeight - calc_height;
2115      }
2116      if (window.matchMedia("(max-width: 520px)").matches) {
2117        calc_height = 300;
2118      }
2119      if (window.matchMedia("(max-width: 400px)").matches) {
2120        calc_height = 200;
2121      }
2122    }
2123    return calc_height;
2124  }).get();
2125
2126  for (var i = 0, c = maxHeight.length; i < c; ++i) {
2127    if (maxHeight[i] % 2) {
2128      --maxHeight[i];
2129    }
2130  }
2131
2132  return this.height(Math.max.apply(this, maxHeight));
2133};
2134
2135$.fn.getFloatWidth = function () {
2136  var width = 0;
2137
2138  if ($(this).length) {
2139    var rect = $(this)[0].getBoundingClientRect();
2140    if (!(width = rect.width)) {
2141      width = rect.right - rect.left;
2142    }
2143  }
2144
2145  return width;
2146};
2147
2148$.fn.sliceHeight2 = function (options) {
2149  function _slice(el) {
2150    el.each(function () {
2151      $(this).css("line-height", "");
2152      $(this).css("height", "");
2153    });
2154    if (typeof options.autoslicecount == "undefined" || options.autoslicecount !== false) {
2155      var elsw =
2156          typeof options.row !== "undefined" && options.row.length
2157            ? el.first().parents(options.row).getFloatWidth()
2158            : el.first().parents(".grid-list").getFloatWidth(),
2159        elw =
2160          typeof options.item !== "undefined" && options.item.length
2161            ? $(options.item).first().getFloatWidth()
2162            : el.first().hasClass("grid-list__item")
2163            ? el.first().getFloatWidth()
2164            : el.first().parents(".grid-list__item").getFloatWidth();
2165
2166      if (!elsw) {
2167        elsw = el.first().parents(".grid-list").getFloatWidth();
2168      }
2169      if (elw && options.fixWidth) elw -= options.fixWidth;
2170
2171      if (elsw && elw) {
2172        options.slice = Math.floor(elsw / elw);
2173      }
2174    }
2175    if (typeof options.typeResize == "undefined" || options.typeResize === false) {
2176      if (options.sliceEqualLength && el.closest(".flexslider").length) options.slice = el.length;
2177      if (options.slice >= 1) {
2178        for (var i = 0; i < el.length; i += options.slice) {
2179          $(el.slice(i, i + options.slice)).equalizeHeights(
2180            options.outer,
2181            options.classNull,
2182            options.minHeight,
2183            options.autoHeightBlock
2184          );
2185        }
2186      }
2187      if (options.lineheight) {
2188        var lineheightAdd = parseInt(options.lineheight);
2189        if (isNaN(lineheightAdd)) {
2190          lineheightAdd = 0;
2191        }
2192        el.each(function () {
2193          $(this).css("line-height", $(this).actual("height") + lineheightAdd + "px");
2194        });
2195      }
2196    }
2197
2198    if (typeof options.callback == "function") options.callback(el);
2199  }
2200  var options = $.extend(
2201    {
2202      slice: null,
2203      outer: false,
2204      lineheight: false,
2205      autoslicecount: true,
2206      classNull: false,
2207      minHeight: false,
2208      row: false,
2209      item: false,
2210      typeResize: false,
2211      resize: true,
2212      typeValue: false,
2213      sliceEqualLength: false,
2214      fixWidth: 0,
2215      callback: false,
2216      autoHeightBlock: false,
2217    },
2218    options
2219  );
2220
2221  var el = $(this);
2222  ignoreResize.push(true);
2223  _slice(el);
2224  ignoreResize.pop();
2225
2226  if (options.resize !== false) {
2227    BX.addCustomEvent("onWindowResize", function (eventdata) {
2228      ignoreResize.push(true);
2229      _slice(el);
2230      ignoreResize.pop();
2231    });
2232  }
2233};
2234
2235function extendDepthObject(target, FromObj) {
2236  var to = Object.assign({}, target);
2237  for (var key in FromObj) {
2238    if (typeof FromObj[key] == "object") {
2239      to[key] = extendDepthObject(to[key], FromObj[key]);
2240    } else {
2241      to[key] = FromObj[key];
2242    }
2243  }
2244
2245  return to;
2246}
2247
2248$.fn.sliceHeight = function (options) {
2249  function _slice(el) {
2250    var arBreakpoints = Object.keys(options.breakpoint);
2251    var resizeOptionsTmp = {};
2252    if (arBreakpoints.length) {
2253      for (var key in arBreakpoints) {
2254        if (window.matchMedia(arBreakpoints[key].toString()).matches) {
2255          resizeOptionsTmp = options.breakpoint[arBreakpoints[key]];
2256        }
2257      }
2258    }
2259
2260    var resizeOptions = extendDepthObject(options, resizeOptionsTmp);
2261
2262    var blockNullClass =
2263      resizeOptions.blockNull !== undefined && resizeOptions.blockNull.class !== undefined
2264        ? resizeOptions.blockNull.class
2265        : false;
2266    var parent =
2267      typeof resizeOptions.row !== "undefined" && resizeOptions.row.length
2268        ? el.first().parents(resizeOptions.row)
2269        : el.first().parents(".items");
2270    var item = "";
2271
2272    if (typeof resizeOptions.item !== "undefined" && resizeOptions.item.length) {
2273      if (blockNullClass) {
2274        $(resizeOptions.item).each(function (i, element) {
2275          _element = $(element);
2276          if (!_element.hasClass(blockNullClass)) {
2277            item = _element;
2278          }
2279        });
2280        if (!item)
2281          // if only ignored blocks
2282          return false;
2283      } else {
2284        item = $(resizeOptions.item).first();
2285      }
2286    } else {
2287      if (el.first().hasClass("item")) {
2288        item = el.first();
2289      } else {
2290        item = el.first().parents(".item");
2291      }
2292    }
2293
2294    if (typeof resizeOptions.autoslicecount == "undefined" || resizeOptions.autoslicecount !== false) {
2295      var elsw = parent.getFloatWidth(),
2296        elw = item.getFloatWidth();
2297      if (!elsw) {
2298        elsw = el.first().parents(".row").getFloatWidth();
2299      }
2300      if (!elw) {
2301        if (typeof resizeOptions.item !== "undefined" && resizeOptions.item.length)
2302          elw = $(resizeOptions.item + ":eq(1)").getFloatWidth()
2303            ? $(resizeOptions.item + ":eq(1)").getFloatWidth()
2304            : $(resizeOptions.item + ":eq(2)").getFloatWidth();
2305        else elw = $(el[1]).getFloatWidth() ? $(el[1]).getFloatWidth() : $(el[2]).getFloatWidth();
2306      }
2307      if (elw && resizeOptions.fixWidth) elw -= resizeOptions.fixWidth;
2308
2309      elw = parseInt(elw * 100) / 100;
2310
2311      if (elsw && elw) {
2312        resizeOptions.slice = Math.floor(elsw / elw);
2313      }
2314    }
2315
2316    if (resizeOptions.customSlice) {
2317      //manual slice count
2318      var bSliceNext = false;
2319      if (resizeOptions.length) {
2320        elw =
2321          typeof resizeOptions.item !== "undefined" && resizeOptions.item.length
2322            ? $(resizeOptions.item).last().getFloatWidth()
2323            : el.last().hasClass("item")
2324            ? el.last().getFloatWidth()
2325            : el.last().parents(".item").getFloatWidth();
2326        if (elw) resizeOptions.sliceNext = Math.floor(elsw / elw);
2327
2328        bSliceNext = true;
2329      }
2330    }
2331
2332    elements = [];
2333    if (resizeOptions.classes !== undefined && resizeOptions.classes.length) {
2334      for (var i = 0; i < resizeOptions.classes.length; i++) {
2335        var items = $(resizeOptions.item).find(resizeOptions.classes[i]);
2336        elements.push(items);
2337      }
2338    }
2339    var elIndex = elements.push(el) - 1;
2340
2341    if (resizeOptions.mobile === true) {
2342      if (window.matchMedia("(max-width: 550px)").matches) {
2343        for (var block = 0; block < elements.length; block++) {
2344          var items = $(elements[block]);
2345          items.css({
2346            "line-height": "",
2347            height: "",
2348          });
2349        }
2350        return;
2351      }
2352    }
2353
2354    if (typeof resizeOptions.typeResize == "undefined" || resizeOptions.typeResize === false) {
2355      if (resizeOptions.slice) {
2356        for (var block = 0; block < elements.length; block++) {
2357          if (resizeOptions.currentRow) {
2358            var itemNumber = el.index(resizeOptions.currentItem);
2359            var rowCount = resizeOptions.slice;
2360            var rowNumber = Math.floor(itemNumber / rowCount);
2361
2362            var items = $(elements[block].slice(rowNumber * rowCount, rowNumber * rowCount + rowCount));
2363            var classNull = block == elIndex ? resizeOptions.classNull : false;
2364            items.css({
2365              "line-height": "",
2366              height: "",
2367            });
2368            items.equalizeHeights(resizeOptions.outer, classNull, resizeOptions);
2369          } else {
2370            for (var i = 0; i < elements[block].length; ) {
2371              if (resizeOptions.customSlice && resizeOptions.sliceNext && bSliceNext && i)
2372                //manual slice count
2373                resizeOptions.slice = resizeOptions.sliceNext;
2374
2375              var slice = resizeOptions.slice;
2376              var items = $(elements[block].slice(i, i + slice));
2377              if (resizeOptions.blockNull !== undefined) {
2378                if (resizeOptions.blockNull.class !== undefined) {
2379                  var counts = 0;
2380                  items.each(function (i, item) {
2381                    var _item = $(item);
2382                    if (
2383                      _item.hasClass(resizeOptions.blockNull.class) ||
2384                      _item.closest("." + resizeOptions.blockNull.class).length
2385                    ) {
2386                      counts++;
2387                    }
2388                  });
2389                }
2390              }
2391              if (counts) {
2392                slice -= (resizeOptions.blockNull.width - 1) * counts;
2393              }
2394
2395              items = $(elements[block].slice(i, i + slice));
2396              if (items) {
2397                var classNull = block == elIndex ? resizeOptions.classNull : false;
2398
2399                items.css({
2400                  "line-height": "",
2401                  height: "",
2402                });
2403                items.equalizeHeights(resizeOptions.outer, classNull, resizeOptions);
2404              }
2405              i += slice || 1;
2406            }
2407          }
2408        }
2409      }
2410      if (resizeOptions.lineheight) {
2411        var lineheightAdd = parseInt(resizeOptions.lineheight);
2412        if (isNaN(lineheightAdd)) {
2413          lineheightAdd = 0;
2414        }
2415        el.each(function () {
2416          $(this).css("line-height", $(this).actual("height") + lineheightAdd + "px");
2417        });
2418      }
2419    }
2420  }
2421  var options = $.extend(
2422    {
2423      slice: null,
2424      sliceNext: null,
2425      outer: false,
2426      lineheight: false,
2427      autoslicecount: true,
2428      classNull: false,
2429      minHeight: false,
2430      row: false,
2431      item: false,
2432      typeResize: false,
2433      typeValue: false,
2434      fixWidth: 0,
2435      resize: true,
2436      mobile: false,
2437      customSlice: false,
2438      breakpoint: {},
2439      classes: [],
2440    },
2441    options
2442  );
2443
2444  var el = $(this);
2445
2446  ignoreResize.push(true);
2447  _slice(el);
2448  ignoreResize.pop();
2449
2450  if (options.resize) {
2451    BX.addCustomEvent("onWindowResize", function (eventdata) {
2452      try {
2453        ignoreResize.push(true);
2454        _slice(el);
2455      } catch (e) {
2456      } finally {
2457        ignoreResize.pop();
2458      }
2459    });
2460  } else {
2461    if (!ignoreResize.length) {
2462      // ignoreResize.push(true);
2463      _slice(el);
2464      // ignoreResize.pop();
2465    }
2466  }
2467};
2468
2469waitingExists = function (selector, delay, callback) {
2470  if (typeof callback !== "undefined" && selector.length && delay > 0) {
2471    delay = parseInt(delay);
2472    delay = delay < 0 ? 0 : delay;
2473
2474    if (!$(selector).length) {
2475      setTimeout(function () {
2476        waitingExists(selector, delay, callback);
2477      }, delay);
2478    } else {
2479      callback();
2480    }
2481  }
2482};
2483
2484waitingNotExists = function (selectorExists, selectorNotExists, delay, callback) {
2485  if (
2486    typeof callback !== "undefined" &&
2487    selectorExists.length &&
2488    $(selectorExists).length &&
2489    selectorNotExists.length &&
2490    !$(selectorNotExists).length &&
2491    delay > 0
2492  ) {
2493    delay = parseInt(delay);
2494    delay = delay < 0 ? 0 : delay;
2495
2496    setTimeout(function () {
2497      if (selectorExists.length && !$(selectorNotExists).length) {
2498        callback();
2499      }
2500    }, delay);
2501  }
2502};
2503
2504function onLoadjqm(name, hash, _this) {
2505  if (hash.c.noOverlay === undefined || (hash.c.noOverlay !== undefined && !hash.c.noOverlay)) {
2506    $("body").addClass("jqm-initied");
2507  }
2508
2509  $("body").addClass("swipeignore");
2510
2511  if (typeof $(hash.t).data("ls") !== " undefined" && $(hash.t).data("ls")) {
2512    var ls = $(hash.t).data("ls"),
2513      ls_timeout = 0,
2514      v = "";
2515
2516    if ($(hash.t).data("ls_timeout")) ls_timeout = $(hash.t).data("ls_timeout");
2517
2518    ls_timeout = ls_timeout ? Date.now() + ls_timeout * 1000 : "";
2519
2520    if (typeof localStorage !== "undefined") {
2521      var val = localStorage.getItem(ls);
2522      try {
2523        v = JSON.parse(val);
2524      } catch (e) {
2525        v = val;
2526      }
2527      if (v != null) {
2528        localStorage.removeItem(ls);
2529      }
2530      v = {};
2531      v["VALUE"] = "Y";
2532      v["TIMESTAMP"] = ls_timeout; // default: seconds for 1 day
2533
2534      localStorage.setItem(ls, JSON.stringify(v));
2535    } else {
2536      var val = $.cookie(ls);
2537      if (!val) $.cookie(ls, "Y", { expires: ls_timeout }); // default: seconds for 1 day
2538    }
2539
2540    var dopClasses = hash.w.find(".marketing-popup").data("classes");
2541    if (dopClasses) {
2542      hash.w.addClass(dopClasses);
2543    }
2544  }
2545
2546  //update show password
2547  //show password eye
2548  if (hash.w.hasClass("auth_frame")) {
2549    hash.w.find(".form-group:not(.eye-password-ignore) [type=password]").each(function (item) {
2550      $(this).closest(".form-group").addClass("eye-password");
2551    });
2552  }
2553
2554  $.each($(hash.t).get(0).attributes, function (index, attr) {
2555    if (/^data\-autoload\-(.+)$/.test(attr.nodeName)) {
2556      var key = attr.nodeName.match(/^data\-autoload\-(.+)$/)[1];
2557      var el = $('input[name="' + key.toUpperCase() + '"]');
2558      if (!el.length) {
2559        //is form block
2560        el = $('input[data-sid="' + key.toUpperCase() + '"]');
2561      }
2562
2563      var value = $(hash.t).data("autoload-" + key);
2564      value = String(value).replace(/%99/g, "\\"); // replace symbol \
2565
2566      el.val(BX.util.htmlspecialcharsback(value)).attr("readonly", "readonly");
2567      el.closest(".form-group").addClass("input-filed");
2568      el.attr("title", el.val());
2569    }
2570  });
2571
2572  if (hash.c.noOverlay === undefined || (hash.c.noOverlay !== undefined && !hash.c.noOverlay)) {
2573    let diffWidth;
2574    if ((diffWidth = window.innerWidth - document.documentElement.clientWidth)) {
2575      $("body").css({ "padding-right": diffWidth + "px" });
2576    }
2577
2578    $("body").css({ overflow: "hidden", height: "100vh" });
2579    hash.w.closest("#popup_iframe_wrapper").css({ "z-index": 3000, display: "flex" });
2580  }
2581
2582  var eventdata = { action: "loadForm" };
2583  BX.onCustomEvent("onCompleteAction", [eventdata, $(hash.t)[0]]);
2584
2585  if ($(hash.t).data("autohide")) {
2586    $(hash.w).data("autohide", $(hash.t).data("autohide"));
2587  }
2588  if (name == "order_product") {
2589    if ($(hash.t).data("product")) {
2590      $('input[name="PRODUCT"]').closest(".form-group").addClass("input-filed");
2591      $('input[name="PRODUCT"]')
2592        .val($(hash.t).data("product"))
2593        .attr("readonly", "readonly")
2594        .attr("title", $('input[name="PRODUCT"]').val());
2595    }
2596  }
2597  if (name == "question") {
2598    if ($(hash.t).data("product")) {
2599      $('input[name="NEED_PRODUCT"]').closest(".form-group").addClass("input-filed");
2600      $('input[name="NEED_PRODUCT"]')
2601        .val($(hash.t).data("product"))
2602        .attr("readonly", "readonly")
2603        .attr("title", $('input[name="NEED_PRODUCT"]').val());
2604    }
2605  }
2606
2607  //show one_click_buy block
2608  if (name === "ocb") {
2609    const parent = hash.w.find(".flexbox");
2610    const item = _this.closest(".js-popup-block");
2611
2612    var data = item.find("[data-item]").data("item");
2613    if (typeof data === "undefined" || !data) {
2614      data = {};
2615    }
2616
2617    parent.addClass("flexbox--direction-row-reverse");
2618
2619    parent.find(".form.popup").addClass("flex-grow-1");
2620
2621    let goodsNode = '<div class="goods-popup">';
2622
2623    //image block
2624    let imageNode = '<div class="goods-popup__image image-list-wrapper">';
2625    //stiker
2626    if (item.find(".sticker").length) {
2627      imageNode += '<div class="sticker sticker--upper">';
2628      imageNode += item.find(".sticker").html();
2629      imageNode += "</div>";
2630    }
2631    //image
2632    imageNode += '<div class="image">';
2633    imageNode +=
2634      '<img class="img-responsive" src="' +
2635      (item.find(".image-list__link link[itemprop=image]").length
2636        ? item.find(".image-list__link link[itemprop=image]:first").attr("href")
2637        : item.find(".image-list-wrapper img:first").length
2638        ? item.find(".image-list-wrapper img:first").attr("src")
2639        : arAsproOptions.SITE_TEMPLATE_PATH + "/images/svg/noimage_product.svg") +
2640      '" />';
2641    imageNode += "</div>";
2642    imageNode += "</div>";
2643    goodsNode += imageNode;
2644
2645    //info block
2646    let infoNode = '<div class="goods-popup__info">';
2647    //link
2648    if (item.find(".js-popup-title").attr("href")) {
2649      infoNode +=
2650        '<a class="dark_link switcher-title goods-popup__info-link font_15" href="' +
2651        item.find(".js-popup-title").attr("href") +
2652        '">';
2653      infoNode += data ? data.NAME : item.find(".js-popup-title").html();
2654      infoNode += "</a>";
2655    } else {
2656      infoNode += '<div class="color_333 switcher-title goods-popup__info-link font_15">';
2657      infoNode += data ? data.NAME : item.find(".js-popup-title").html();
2658      infoNode += "</div>";
2659    }
2660    //article
2661    if (item.find(".js-popup-info").length) {
2662      infoNode += '<div class="line-block line-block--20 flexbox--wrap goods-popup__info-more">';
2663      infoNode += item.find(".js-popup-info").html();
2664      infoNode += "</div>";
2665    }
2666    infoNode += "</div>";
2667    goodsNode += infoNode;
2668
2669    //price block
2670    if (item.find(".js-popup-price .price").length) {
2671      let priceNode = '<div class="goods-popup__price">';
2672      priceNode += item.find(".js-popup-price").html();
2673      priceNode += "</div>";
2674      goodsNode += priceNode;
2675    }
2676
2677    goodsNode += "</div>";
2678
2679    $(goodsNode).appendTo(parent);
2680  }
2681
2682  if (name == "fast_view" && $(".smart-filter-filter").length) {
2683    var navButtons =
2684      '<div class="navigation-wrapper-fast-view">' +
2685      '<div class="fast-view-nav prev bg-theme-hover" data-fast-nav="prev">' +
2686      '<i class="svg left">' +
2687      '<svg xmlns="http://www.w3.org/2000/svg" width="12" height="6.969" viewBox="0 0 12 6.969"><path id="Rounded_Rectangle_702_copy_24" data-name="Rounded Rectangle 702 copy 24" class="cls-1" d="M361.691,401.707a1,1,0,0,1-1.414,0L356,397.416l-4.306,4.291a1,1,0,0,1-1.414,0,0.991,0.991,0,0,1,0-1.406l5.016-5a1.006,1.006,0,0,1,1.415,0l4.984,5A0.989,0.989,0,0,1,361.691,401.707Z" transform="translate(-350 -395.031)"/></svg>' +
2688      "</i>" +
2689      "</div>" +
2690      '<div class="fast-view-nav next bg-theme-hover" data-fast-nav="next">' +
2691      '<i class="svg right">' +
2692      '<svg xmlns="http://www.w3.org/2000/svg" width="12" height="6.969" viewBox="0 0 12 6.969"><path id="Rounded_Rectangle_702_copy_24" data-name="Rounded Rectangle 702 copy 24" class="cls-1" d="M361.691,401.707a1,1,0,0,1-1.414,0L356,397.416l-4.306,4.291a1,1,0,0,1-1.414,0,0.991,0.991,0,0,1,0-1.406l5.016-5a1.006,1.006,0,0,1,1.415,0l4.984,5A0.989,0.989,0,0,1,361.691,401.707Z" transform="translate(-350 -395.031)"/></svg>' +
2693      "</i>" +
2694      "</div>" +
2695      "</div>";
2696
2697    // hash.w.addClass("no_custom_scroll");
2698    hash.w.closest("#popup_iframe_wrapper").append(navButtons);
2699  }
2700   var needScrollbar = true;
2701
2702  if (
2703    arAsproOptions["THEME"]["REGIONALITY_SEARCH_ROW"] == "Y" &&
2704    (hash.w.hasClass("city_chooser_frame") || hash.w.hasClass("city_chooser_small_frame"))
2705  ) {
2706    hash.w.addClass("small_popup_regions");
2707    //hash.w.addClass("no_custom_scroll");
2708    hash.w.addClass("jqmWindow--overflow-visible");
2709    needScrollbar = false;
2710  }
2711
2712  // if (!hash.w.hasClass("no_custom_scroll")) {
2713  //   hash.w.addClass("show srollbar-custom").css({ opacity: 1 });
2714  //   InitScrollBar();
2715  // }
2716    hash.w.addClass("show").css({ opacity: 1 });
2717    if(needScrollbar)
2718      hash.w.find(">div").addClass("scrollbar");
2719  if (hash.w.hasClass("right_slide")) {
2720    
2721    hash.w.addClass("opened");
2722    if ($(".right-sidebar-wrapper").length) {
2723      if ($(".widget_frame iframe").length) {
2724        $(".widget_frame.right_slide").addClass("loading-state");
2725        $('.widget_frame iframe').on("load", function() {
2726          $(".widget_frame.right_slide").removeClass("loading-state");
2727        });
2728      } 
2729
2730      if (hash.w.hasClass("narrow")) {
2731        if ($(".ajax_basket").length) {
2732          $(".ajax_basket").addClass("narrow");
2733        }
2734        if ($(".ajax_basket .fixed_wrapper").length) {
2735            $(".ajax_basket .fixed_wrapper").addClass("narrow");
2736        }
2737      }
2738      if (hash.w.hasClass("wide")) {
2739        if ($(".ajax_basket").length) {
2740          $(".ajax_basket").addClass("wide");
2741        }
2742      }
2743    }
2744    if ($(".ajax_basket").length) {
2745      $(".ajax_basket").css("z-index", "3000").addClass('widget_open');
2746    }
2747    if ($(hash.t).parent()) {
2748      $(hash.t).parent().addClass("active");
2749    }
2750    $(hash.t).addClass("jqm_disable");
2751
2752    if ($(hash.t).attr("data-show_slide") === "Y") {
2753       $(hash.t).parent().addClass("once_loaded");
2754    }
2755
2756    $(".ajax_basket").removeClass("opened");
2757
2758  }
2759}
2760
2761function onHidejqm(name, hash) {
2762  if ($(hash.w).data("autohide")) {
2763    eval($(hash.w).data("autohide"));
2764  }
2765
2766  // hash.w.css('opacity', 0).hide();
2767  hash.w.animate({ opacity: 0 }, 200, function () {
2768    hash.w.removeClass("scroll-init srollbar-custom").mCustomScrollbar("destroy");
2769    hash.w.hide();
2770  
2771    if (!$(".once_loaded").length) {
2772       hash.w.empty();
2773    }
2774    hash.w.removeClass("show");  
2775    hash.o.remove();
2776    
2777    hash.w.removeClass("success");
2778
2779    $("body").css({ overflow: "", height: "", "padding-right": "" });
2780
2781    if (!hash.w.closest("#popup_iframe_wrapper").find(".jqmOverlay").length) {
2782      hash.w.closest("#popup_iframe_wrapper").css({ "z-index": "", display: "" });
2783    }
2784
2785    if (window.matchMedia("(max-width: 991px)").matches) {
2786      $("body").removeClass("all_viewed");
2787    }
2788    if (!$(".jqmOverlay:not(.mobp)").length || $(".jqmOverlay.waiting").length) {
2789      $("body").removeClass("jqm-initied");
2790    }
2791
2792    $("body").removeClass("swipeignore");
2793    $("body").removeClass("overflow-block");
2794
2795    if (name == "fast_view") {
2796      $(".fast_view_popup").remove();
2797
2798      var navButtons = hash.w.closest("#popup_iframe_wrapper").find(".navigation-wrapper-fast-view");
2799      navButtons.remove();
2800    }
2801  });
2802
2803  if (hash.w.hasClass("right_slide")) {
2804    hash.w.removeClass("opened");
2805    if ($(".right-sidebar-wrapper").length) {
2806      $(".right-sidebar-wrapper").removeClass("opened");
2807      $(".right-sidebar-wrapper .link").removeClass("active");
2808      $(".widget_frame.right_slide").removeClass("loading-state");
2809      $(".right-sidebar-wrapper .link span").removeClass("jqm_disable");
2810    }
2811    if ($(".ajax_basket").length) {
2812      $(".ajax_basket").css("z-index", "").removeClass("widget_open").removeClass("wide").removeClass("narrow");
2813    }
2814  }
2815
2816  window.b24form = false;
2817}
2818
2819function parseUrlQuery() {
2820  var data = {};
2821  if (location.search) {
2822    var pair = location.search.substr(1).split("&");
2823    for (var i = 0; i < pair.length; i++) {
2824      var param = pair[i].split("=");
2825      data[param[0]] = param[1];
2826    }
2827  }
2828  return data;
2829}
2830
2831function scroll_block(block) {
2832  if (block.length) {
2833    var topPos = block.offset().top,
2834      headerH = $("header").outerHeight(true, true);
2835    if ($(".stores_tab").length) {
2836      $(".stores_tab").addClass("active").siblings().removeClass("active");
2837    } else {
2838      $(".prices_tab").addClass("active").siblings().removeClass("active");
2839      if ($(".prices_tab .opener").length && !$(".prices_tab .opener .opened").length) {
2840        var item = $(".prices_tab .opener").first();
2841        item.find(".opener_icon").addClass("opened");
2842        item.parents("tr").addClass("nb");
2843        item.parents("tr").next(".offer_stores").find(".stores_block_wrap").slideDown(200);
2844      }
2845    }
2846    $("html,body").animate({ scrollTop: topPos - 80 }, 150);
2847  }
2848}
2849
2850$.fn.jqmEx = function () {
2851  $(this).each(function () {
2852    var _this = $(this);
2853    var name = _this.data("name");
2854    name = typeof name === "undefined" || !name.length ? "noname" : name;
2855
2856    if (_this.attr("disabled") != "disabled" || !_this.hasClass("clicked")) {
2857      var extClass = "",
2858        paramsStr = "",
2859        trigger = "",
2860        arTriggerAttrs = {};
2861
2862      // call counter
2863      if (typeof $.fn.jqmEx.counter === "undefined") {
2864        $.fn.jqmEx.counter = 0;
2865      } else {
2866        ++$.fn.jqmEx.counter;
2867      }
2868
2869      // trigger attrs and params
2870      $.each(_this.get(0).attributes, function (index, attr) {
2871        var attrName = attr.nodeName;
2872        var attrValue = _this.attr(attrName);
2873        if (attrName !== "onclick") {
2874          trigger += "[" + attrName + '="' + attrValue + '"]';
2875          arTriggerAttrs[attrName] = attrValue;
2876        }
2877        if (/^data\-param\-(.+)$/.test(attrName)) {
2878          var key = attrName.match(/^data\-param\-(.+)$/)[1];
2879          paramsStr += key + "=" + attrValue + "&";
2880        }
2881      });
2882      var triggerAttrs = JSON.stringify(arTriggerAttrs);
2883      var encTriggerAttrs = "";
2884      // var encTriggerAttrs = encodeURIComponent(triggerAttrs);
2885      // console.log(trigger);
2886
2887      // popup url
2888      var script = arAsproOptions["SITE_DIR"] + "ajax/form.php";
2889      if (name == "auth") {
2890        script += "?" + paramsStr + "auth=Y";
2891      } else {
2892        script += "?" + paramsStr + 'data-trigger=""';
2893      }
2894
2895      // ext frame class
2896      if (_this.closest("#fast_view_item").length) {
2897        extClass = "fast_view_popup";
2898      }
2899
2900      if (_this.data("show_slide") == "Y") {
2901        extClass += " right_slide";
2902      }
2903
2904      if (_this.data("width")) {
2905        extClass += " " + _this.data("width");
2906      }
2907
2908      
2909      // use overlay?
2910      var noOverlay = _this.data("nooverlay") == "Y";
2911
2912      var show_slide = _this.data("show_slide") == "Y";
2913
2914      var once = _this.data("once") == "Y";
2915    
2916
2917      // unique frame to each trigger
2918      if (show_slide) {
2919        var frame = $(
2920          '<div class="' +
2921            name +
2922            "_frame " +
2923            extClass +
2924            ' jqmWindow popup" data-popup="' +
2925            $.fn.jqmEx.counter +
2926            '" data-trigger="' +
2927            encTriggerAttrs +
2928            '"></div>'
2929        ).insertAfter(".right-sidebar-wrapper");
2930      } 
2931      else if (noOverlay) {
2932        var frame = $(
2933          '<div class="' +
2934            name +
2935            "_frame " +
2936            extClass +
2937            ' jqmWindow popup" data-popup="' +
2938            $.fn.jqmEx.counter +
2939            '" data-trigger="' +
2940            encTriggerAttrs +
2941            '"></div>'
2942        ).appendTo("body");
2943      } else {
2944        var frame = $(
2945          '<div class="' +
2946            name +
2947            "_frame " +
2948            extClass +
2949            ' jqmWindow popup" data-popup="' +
2950            $.fn.jqmEx.counter +
2951            '" data-trigger="' +
2952            encTriggerAttrs +
2953            '"></div>'
2954        ).appendTo("#popup_iframe_wrapper");
2955      }
2956
2957      frame.jqm({
2958        ajax: script,
2959        trigger: trigger,
2960        noOverlay: noOverlay,
2961        once: once,
2962        onLoad: function (hash) {
2963          onLoadjqm(name, hash, _this);
2964        },
2965        onHide: function (hash) {
2966          onHidejqm(name, hash, _this);
2967        },
2968      });
2969    }
2970    return;
2971  });
2972};
2973
2974InitOwlSlider = function () {
2975  $(".owl-carousel:not(.owl-loaded):not(.appear-block)").each(function () {
2976    var slider = $(this);
2977    var options;
2978    var svg =
2979      '<svg width="7" height="12" viewBox="0 0 7 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6 1L1 6L6 11" stroke="#333333" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>';
2980    var defaults = {
2981      navText: [
2982        '<i class="owl-carousel__button owl-carousel__button--left colored_theme_bg_hover">' + svg + "</i>",
2983        '<i class="owl-carousel__button owl-carousel__button--right colored_theme_bg_hover">' + svg + "</i>",
2984      ],
2985      dotsContainer: slider.siblings(".owl-carousel__dots"),
2986    };
2987    var config = $.extend({}, defaults, options, slider.data("plugin-options"));
2988
2989    slider.siblings(".owl-carousel__dots").on("click", ".owl-carousel__dot", function () {
2990      var _this = $(this);
2991      var sliderData = slider.data("owl.carousel");
2992
2993      slider.trigger("to.owl.carousel", [_this.index(), 300]);
2994      if (sliderData.settings.autoplayHoverPause) {
2995        slider.trigger("mouseover.owl.autoplay");
2996      }
2997    });
2998
2999    if (slider.hasClass("destroyed")) {
3000      slider.owlCarousel(config);
3001      slider.removeClass("destroyed");
3002      return;
3003    }
3004
3005    slider.on("initialized.owl.carousel", function (event) {
3006      var eventdata = { slider: $(event.target), data: event };
3007
3008      BX.onCustomEvent("onSliderInitialized", [eventdata]);
3009      BX.onCustomEvent("onSlide", [eventdata]);
3010
3011      $(event.target).removeClass("loading-state");
3012      $(event.target).find(".owl-item:first").addClass("current");
3013
3014      if (typeof sliceItemBlockSlide === "function") {
3015        sliceItemBlockSlide();
3016      }
3017    });
3018
3019    // if slider was inited on animated scrolling to block, than need rescroll
3020    if ($("body.scrolling-state").length) {
3021      slider.on("initialized.owl.carousel", function (event) {
3022        setTimeout(function () {
3023          scrollToBlock.rescroll();
3024        }, 100);
3025      });
3026    }
3027
3028    slider.on("change.owl.carousel", function (event) {
3029      // var eventdata = {slider: $(event.target)};
3030      // BX.onCustomEvent('onSlide', [eventdata]);
3031    });
3032
3033    slider.owlCarousel(config);
3034
3035    slider.on("resized.owl.carousel", function (event) {
3036      if (typeof sliceItemBlockSlide === "function") {
3037        sliceItemBlockSlide({ resize: false });
3038      }
3039    });
3040
3041    slider.on("mouseover.owl.autoplay", function (event) {
3042      var slider = $(event.target).closest(".owl-carousel");
3043      var sliderData = slider.data("owl.carousel");
3044      var dots = slider.siblings(".owl-carousel__dots--autoplay");
3045      if (typeof sliderData !== "undefined") {
3046        var bNeedStopDotsAnimation =
3047          sliderData.settings.autoplay && sliderData.settings.autoplayHoverPause && dots.length;
3048        if (bNeedStopDotsAnimation) {
3049          var animationBlock = dots.find(".owl-carousel__dot .owl-carousel__dot-pie");
3050          if (animationBlock.length) {
3051            animationBlock.css("animation-play-state", "paused");
3052          }
3053        }
3054      }
3055    });
3056
3057    slider.on("mouseleave.owl.autoplay", function (event) {
3058      var slider = $(event.target).closest(".owl-carousel");
3059      var sliderData = slider.data("owl.carousel");
3060      var dots = slider.siblings(".owl-carousel__dots--autoplay");
3061      if (typeof sliderData !== "undefined") {
3062        var bNeedStopDotsAnimation =
3063          sliderData.settings.autoplay && sliderData.settings.autoplayHoverPause && dots.length;
3064        var rotating = sliderData._states.current.rotating;
3065        if (bNeedStopDotsAnimation && rotating) {
3066          var animationBlock = dots.find(".owl-carousel__dot .owl-carousel__dot-pie");
3067          if (animationBlock.length) {
3068            animationBlock.css("animation-play-state", "");
3069          }
3070        }
3071      }
3072    });
3073
3074    slider.on("stop.owl.autoplay", function (event) {
3075      var slider = $(event.target);
3076      var sliderData = slider.data("owl.carousel");
3077      var dots = slider.siblings(".owl-carousel__dots--autoplay");
3078      if (typeof sliderData !== "undefined") {
3079        var bNeedStopDotsAnimation =
3080          sliderData.settings.autoplay && sliderData.settings.autoplayHoverPause && dots.length;
3081        if (bNeedStopDotsAnimation) {
3082          var animationBlock = dots.find(".owl-carousel__dot .owl-carousel__dot-pie");
3083          if (animationBlock.length) {
3084            dots.find(".owl-carousel__dot.active").addClass("reset-animation");
3085            animationBlock.css("animation-play-state", "paused");
3086          }
3087        }
3088      }
3089    });
3090
3091    slider.on("play.owl.autoplay", function (event) {
3092      var slider = $(event.target);
3093      var sliderData = slider.data("owl.carousel");
3094      var dots = slider.siblings(".owl-carousel__dots--autoplay");
3095      if (typeof sliderData !== "undefined") {
3096        var bNeedStopDotsAnimation =
3097          sliderData.settings.autoplay && sliderData.settings.autoplayHoverPause && dots.length;
3098        dots.find(".owl-carousel__dot.reset-animation").removeClass("reset-animation");
3099        if (bNeedStopDotsAnimation && !slider.is(":hover") && !dots.is(":hover")) {
3100          var animationBlock = dots.find(".owl-carousel__dot .owl-carousel__dot-pie");
3101          if (animationBlock.length) {
3102            animationBlock.css("animation-play-state", "");
3103          }
3104        }
3105      }
3106    });
3107
3108    slider.on("touchstart.owl.core", function (event) {
3109      slider.trigger("stop.owl.autoplay");
3110    });
3111
3112    slider.siblings(".owl-carousel__dots--autoplay").on("mouseover", function (event) {
3113      var sliderData = slider.data("owl.carousel");
3114      if (sliderData.settings.autoplayHoverPause) {
3115        slider.trigger("mouseover.owl.autoplay");
3116      }
3117    });
3118
3119    slider.on("changed.owl.carousel", function (event) {
3120      var $slider = $(event.target);
3121      var sliderData = $slider.data("owl.carousel");
3122      var pluginOptions = $slider.data("pluginOptions");
3123
3124      var eventdata = { slider: $slider, data: event };
3125      BX.onCustomEvent("onSlide", [eventdata]);
3126
3127      if (pluginOptions) {
3128        // click .ajax_load_btn
3129        if ($slider.parent().find(".ajax_load_btn").length) {
3130          if (sliderData._current + 1 + sliderData.settings.items >= sliderData._items.length) {
3131            $slider.parent().find(".ajax_load_btn").trigger("click");
3132          }
3133        }
3134        if (typeofExt(pluginOptions) === "object") {
3135          if ("index" in pluginOptions) {
3136            if ($(".gallery-view_switch").length) {
3137              $(".gallery-view_switch__count-wrapper--big .gallery-view_switch__count-value").text(
3138                event.item.index + 1 + "/" + event.item.count
3139              );
3140            }
3141          }
3142
3143          if ("relatedTo" in pluginOptions) {
3144            var relatedClass = pluginOptions.relatedTo,
3145              relatedBlock = $(relatedClass);
3146
3147            if (relatedBlock.length && sliderData) {
3148              if (!sliderData.loop) {
3149                var current = event.item.index;
3150              } else {
3151                var count = event.item.count - 1;
3152                var current = Math.round(event.item.index - event.item.count / 2 - 0.5);
3153
3154                if (current < 0) current = count;
3155
3156                if (current > count) current = 0;
3157              }
3158
3159              relatedBlock.find(".owl-item").removeClass("current").eq(current).addClass("current");
3160
3161              var onscreen = relatedBlock.find(".owl-item.active").length - 1;
3162              var start = relatedBlock.find(".owl-item.active").first().index();
3163              var end = relatedBlock.find(".owl-item.active").last().index();
3164
3165              if (current > end) relatedBlock.data("owl.carousel").to(current, 100, true);
3166
3167              if (current < start) relatedBlock.data("owl.carousel").to(current - onscreen, 100, true);
3168              // $(".owl-slider-"+id).trigger('to.owl.carousel', [itemCarousel])
3169            }
3170          }
3171        }
3172      }
3173    });
3174
3175    slider.on("translated.owl.carousel", function (event) {});
3176
3177    if ("clickTo" in config) {
3178      var relatedClass = config.clickTo,
3179        magnifier = "magnifier" in config;
3180
3181      slider.on("click", ".owl-item", function (e) {
3182        e.preventDefault();
3183        var _this = $(this),
3184          number = _this.index();
3185
3186        if (magnifier) {
3187          if ($(relatedClass).closest(".product-container").find(".zoom_picture").length) {
3188            $(relatedClass)
3189              .closest(".product-container")
3190              .find(".zoom_picture")
3191              .attr("data-large", _this.find(".product-detail-gallery__item").data("big"));
3192            $(relatedClass)
3193              .closest(".product-container")
3194              .find(".zoom_picture")
3195              .attr("xoriginal", _this.find(".product-detail-gallery__item").data("big"));
3196            $(relatedClass)
3197              .closest(".product-container")
3198              .find(".zoom_picture")
3199              .attr("src", _this.find(".product-detail-gallery__item img").attr("src"));
3200          }
3201          _this.siblings("").removeClass("current");
3202          _this.addClass("current");
3203        } else {
3204          $(relatedClass).data("owl.carousel").to(number, 300, true);
3205        }
3206      });
3207    }
3208  });
3209};
3210
3211InitFlexSlider = function () {
3212  $(".flexslider:not(.thmb):not(.flexslider-init):not(.appear-block):v
3212isible").each(function () {
3213    var slider = $(this);
3214    var options;
3215    var defaults = {
3216      animationLoop: false,
3217      controlNav: false,
3218      directionNav: true,
3219      animation: "slide",
3220    };
3221    var config = $.extend({}, defaults, options, slider.data("plugin-options"));
3222    if (typeof config.counts != "undefined" && config.direction !== "vertical") {
3223      var slide_counts = "";
3224      if (typeof slider.data("plugin-options") != "undefined") {
3225        if ("slide_counts" in slider.data("plugin-options")) slide_counts = slider.data("plugin-options").slide_counts;
3226      }
3227      config.maxItems = getGridSize(config.counts);
3228      config.minItems = getGridSize(config.counts);
3229
3230      if (slide_counts) config.move = slide_counts;
3231      else config.move = getGridSize(config.counts);
3232
3233      config.itemWidth = 200;
3234    }
3235
3236    // custom direction nav
3237    if (typeof config.customDirection != "undefined") config.customDirectionNav = $(config.customDirection);
3238
3239    (config.prevText = BX.message("FANCY_PREV")), //String: Set the text for the "previous" directionNav item
3240      (config.nextText = BX.message("FANCY_NEXT")),
3241      (config.after = config.start =
3242        function (slider) {
3243          var eventdata = { slider: slider };
3244          BX.onCustomEvent("onSlide", [eventdata]);
3245        });
3246
3247    config.before = function (slider) {
3248      var eventdata = { slider: slider };
3249      BX.onCustomEvent("onSlideBefore", [eventdata]);
3250    };
3251
3252    config.end = function (slider) {
3253      var eventdata = { slider: slider };
3254      BX.onCustomEvent("onSlideEnd", [eventdata]);
3255    };
3256
3257    /*if(typeof(config.nav) == 'undefined')
3258			slider.addClass('dark-nav');*/
3259    slider.flexslider(config).addClass("flexslider-init");
3260    if (config.controlNav) slider.addClass("flexslider-control-nav");
3261    if (config.directionNav) slider.addClass("flexslider-direction-nav");
3262  });
3263};
3264
3265InitFlexSliderClass = function (class_name) {
3266  //$('.flexslider:not(.thmb):not(.flexslider-init)').each(function(){
3267
3268  var slider = $(class_name);
3269  var options;
3270  var defaults = {
3271    animationLoop: false,
3272    controlNav: false,
3273    directionNav: true,
3274    animation: "slide",
3275  };
3276  var config = $.extend({}, defaults, options, slider.data("plugin-options"));
3277
3278  var slide_counts = "";
3279  if (typeof slider.data("plugin-options") != "undefined") {
3280    if ("slide_counts" in slider.data("plugin-options")) slide_counts = slider.data("plugin-options").slide_counts;
3281  }
3282
3283  if (typeof config.counts != "undefined" && config.direction !== "vertical") {
3284    config.maxItems = getGridSize(config.counts);
3285    config.minItems = getGridSize(config.counts);
3286    config.move = getGridSize(config.counts);
3287
3288    config.itemWidth = 200;
3289  }
3290  if (slide_counts) config.move = slide_counts;
3291
3292  // custom direction nav
3293  if (typeof config.customDirection != "undefined") config.customDirectionNav = $(config.customDirection);
3294
3295  (config.prevText = BX.message("FANCY_PREV")), //String: Set the text for the "previous" directionNav item
3296    (config.nextText = BX.message("FANCY_NEXT")),
3297    (config.after = config.start =
3298      function (slider) {
3299        var eventdata = { slider: slider };
3300        BX.onCustomEvent("onSlide", [eventdata]);
3301      });
3302
3303  config.before = function (slider) {
3304    var eventdata = { slider: slider };
3305    BX.onCustomEvent("onSlideBefore", [eventdata]);
3306  };
3307
3308  config.end = function (slider) {
3309    var eventdata = { slider: slider };
3310    BX.onCustomEvent("onSlideEnd", [eventdata]);
3311  };
3312
3313  slider.flexslider(config).addClass("flexslider-init");
3314  if (config.controlNav) slider.addClass("flexslider-control-nav");
3315  if (config.directionNav) slider.addClass("flexslider-direction-nav");
3316  //});
3317};
3318
3319InitFlexSliderMin = function () {
3320  $(".bxSlider.top-small").on("mousedown", ".slides li", function () {
3321    var index = $(this).data("slide_key");
3322    $(this).siblings().removeClass("flex-active-slide");
3323    $(this).addClass("flex-active-slide");
3324    $(this)
3325      .siblings('[data-slide_key="' + index + '"]')
3326      .addClass("flex-active-slide");
3327    $(".top-bigs").data("flexslider").flexAnimate(index);
3328  });
3329};
3330
3331SliceHeightBlocks = function () {
3332  $('*[data-slice="Y"]').each(function () {
3333    var slice_els = $(this).find('*[data-slice-block="Y"]');
3334    if (slice_els.length) {
3335      var slice_params = {};
3336      if (slice_els.data("slice-params")) slice_params = slice_els.data("slice-params");
3337      slice_els.sliceHeight(slice_params);
3338    }
3339  });
3340};
3341
3342createTableCompare = function (originalTable, appendDiv, cloneTable) {
3343  try {
3344    if ($(".tarifs .head-block:visible").length) {
3345      var clone = originalTable.clone().addClass("clone");
3346      if (cloneTable.length) {
3347        cloneTable.remove();
3348        appendDiv.html("");
3349        appendDiv.html(clone);
3350      } else {
3351        appendDiv.append(clone);
3352      }
3353    }
3354  } catch (e) {
3355  } finally {
3356  }
3357};
3358
3359InitTopestMenuGummi = function () {
3360  if (!isOnceInited) {
3361    function _init() {
3362      var arItems = $menuTopest.find(".menu-topest__item");
3363      var cntItems = arItems.length;
3364      if (cntItems) {
3365        var itemsWidth = 0;
3366        for (var i = 0; i < cntItems; ++i) {
3367          var item = arItems.eq(i);
3368          var itemWidth = item.actual("outerWidth", { includeMargin: true });
3369
3370          arItemsHideWidth[i] = (itemsWidth += itemWidth) + (i == cntItems - 1 ? 0 : moreWidth);
3371        }
3372      }
3373    }
3374
3375    function _gummi() {
3376      var rowWidth = $menuTopest.actual("innerWidth");
3377      var arItems = $menuTopest.find(".menu-topest__item");
3378      var cntItems = arItems.length;
3379      var arItemsToRemove = [];
3380
3381      if (cntItems) {
3382        var bMore = false;
3383        var moreItems = [];
3384        for (var i = cntItems - 1; i >= 0; --i) {
3385          var item = arItems.eq(i);
3386          var bInMore = item.parents(".menu-topest__more").length > 0;
3387          if (!bInMore) {
3388            if (arItemsHideWidth[i] > rowWidth + 1) {
3389              if (!bMore) {
3390                bMore = true;
3391                more.removeClass("hidden");
3392              }
3393              var clone = item.clone();
3394              clone.find(">a").addClass("dark_font");
3395              moreItems.push(clone[0]);
3396              arItemsToRemove.push(i);
3397            } else {
3398              break;
3399            }
3400          }
3401        }
3402        $(moreItems).prependTo(moreDropdown);
3403
3404        if (!bMore) {
3405          for (var i = 0; i < cntItems; ++i) {
3406            var item = arItems.eq(i);
3407            var bInMore = item.parents(".menu-topest__more li").length > 0;
3408            if (bInMore) {
3409              if (arItemsHideWidth[i] <= rowWidth) {
3410                if (i === cntItems - 1) {
3411                  bMore = false;
3412                  more.addClass("hidden");
3413                }
3414                var clone = item.clone();
3415                clone.find(">a").removeClass("dark_font");
3416                clone.insertBefore(more);
3417                item.addClass("cloned");
3418              }
3419            }
3420          }
3421        }
3422
3423        if (arItemsToRemove.length) {
3424          arItemsToRemove.map(function (elIndex) {
3425            $(arItems[elIndex]).remove();
3426          });
3427        }
3428
3429        $menuTopest.find(".menu-topest__item.cloned").remove();
3430        $menuTopest.closest(".menu-topest__wrapper").addClass("dotted-complete");
3431        var wrapper = $menuTopest.closest(".hide-dotted");
3432        if (wrapper.length) {
3433          wrapper.addClass("dotted-complete");
3434        }
3435      }
3436    }
3437
3438    var $menuTopest = $(".menu-topest");
3439    if ($menuTopest.length) {
3440      var more = $menuTopest.find(".menu-topest__more");
3441      var moreDropdown = more.find(">.dropdown");
3442      var moreWidth = more.actual("outerWidth", { includeMargin: true });
3443      var arItemsHideWidth = [];
3444
3445      ignoreResize.push(true);
3446      _init();
3447      _gummi();
3448      ignoreResize.pop();
3449
3450      BX.addCustomEvent("onWindowResize", function (eventdata) {
3451        try {
3452          ignoreResize.push(true);
3453          _gummi();
3454        } catch (e) {
3455        } finally {
3456          ignoreResize.pop();
3457        }
3458      });
3459    }
3460  }
3461};
3462
3463CheckHeaderFixedMenu = function () {
3464  if (
3465    arAsproOptions["THEME"]["HEADER_FIXED"] == 2 &&
3466    $("#headerfixed .js-nav").length &&
3467    window.matchMedia("(min-width: 992px)").matches
3468  ) {
3469    $("#headerfixed .js-nav").css("width", "0");
3470    var all_width = 0,
3471      cont_width = $("#headerfixed .maxwidth-theme").actual("width"),
3472      padding_menu =
3473        $("#headerfixed .logo-row.v2 .menu-block").actual("outerWidth") -
3474        $("#headerfixed .logo-row.v2 .menu-block").actual("width");
3475    $("#headerfixed .logo-row.v2 > .inner-table-block").each(function () {
3476      if (!$(this).hasClass("menu-block")) all_width += $(this).actual("outerWidth");
3477    });
3478    $("#headerfixed .js-nav").width(cont_width - all_width - padding_menu);
3479  }
3480};
3481
3482/*function CheckTopMenuPadding() {
3483  if ($(".logo_and_menu-row .right-icons .wrap_icon").length && $(".logo_and_menu-row .menu-row").length) {
3484    var menuPosition = $(".menu-row .menu-only").position().left,
3485      maxWidth = $(".logo_and_menu-row .maxwidth-theme").width() - 32,
3486      leftPadding = 0,
3487      rightPadding = 0;
3488
3489    $(".logo_and_menu-row .menu-row>div")
3490      .each(function (indx) {
3491        if (!$(this).hasClass("menu-only")) {
3492          var elementPosition = $(this).position().left,
3493            elementWidth = $(this).outerWidth();
3494
3495          if (elementPosition > menuPosition) {
3496            rightPadding += elementWidth;
3497          } else {
3498            leftPadding += elementWidth;
3499          }
3500        }
3501      })
3502      .promise()
3503      .done(function () {
3504        $(".logo_and_menu-row .menu-only").css({ "padding-left": leftPadding, "padding-right": rightPadding + 1 });
3505      });
3506  }
3507};*/
3508
3509/*function CheckTopMenuOncePadding() {
3510  if ($(".menu-row.sliced .right-icons .wrap_icon").length) {
3511    var menuPosition = $(".menu-row .menu-only").position().left,
3512      maxWidth = $(".logo_and_menu-row .maxwidth-theme").width() - 32,
3513      leftPadding = 0,
3514      rightPadding = 0;
3515
3516    $(".menu-row.sliced .maxwidth-theme>div>div")
3517      .each(function (indx) {
3518        if (!$(this).hasClass("menu-only")) {
3519          var elementPosition = $(this).position().left,
3520            elementWidth = $(this).outerWidth();
3521
3522          if (elementPosition > menuPosition) {
3523            rightPadding += elementWidth;
3524          } else {
3525            leftPadding += elementWidth;
3526          }
3527        }
3528      })
3529      .promise()
3530      .done(function () {
3531        $(".menu-row.sliced .menu-only").css({ "padding-left": leftPadding, "padding-right": rightPadding + 1 });
3532      });
3533  }
3534};
3535*/
3536
3537CheckSearchWidth = function () {
3538  if ($(".logo_and_menu-row .search_wrap").length) {
3539    var searchPosition = $(".logo_and_menu-row .search_wrap").position().left,
3540      maxWidth = $(".logo_and_menu-row .maxwidth-theme").width() - 32;
3541    width = 0;
3542
3543    $(".logo_and_menu-row .maxwidth-theme>div")
3544      .each(function () {
3545        if (!$(this).hasClass("search_wrap")) {
3546          var elementWidth = $(this).outerWidth();
3547
3548          width = width ? width - elementWidth : maxWidth - elementWidth;
3549        }
3550      })
3551      .promise()
3552      .done(function () {
3553        $(".logo_and_menu-row .search_wrap").outerWidth(width).css({ opacity: 1, visibility: "visible" });
3554      });
3555  }
3556};
3557
3558waitCounter = function (idCounter, delay, callback) {
3559  var obCounter = window["yaCounter" + idCounter];
3560  if (typeof obCounter == "object") {
3561    if (typeof callback == "function") callback();
3562  } else {
3563    setTimeout(function () {
3564      waitCounter(idCounter, delay, callback);
3565    }, delay);
3566  }
3567};
3568
3569var waitReCaptcha = function (delay, callback) {
3570  if (typeof grecaptcha == "object") {
3571    if (typeof callback == "function") {
3572      callback();
3573    }
3574  } else {
3575    setTimeout(function () {
3576      waitReCaptcha(delay, callback);
3577    }, delay);
3578  }
3579};
3580
3581var reCaptchaRender = function (response) {
3582  if ($(".g-recaptcha:not(.rendered)").length) {
3583    waitReCaptcha(50, function () {
3584      $(".g-recaptcha:not(.rendered)").each(function () {
3585        $this = $(this);
3586        $this.addClass("rendered");
3587        var id = grecaptcha.render($this[0], {
3588          sitekey: $this.attr("data-sitekey"),
3589          theme: $this.attr("data-theme"),
3590          size: $this.attr("data-size"),
3591          callback: $this.attr("data-callback"),
3592        });
3593        $this.attr("data-widgetid", id);
3594      });
3595    });
3596  }
3597};
3598
3599var reCaptchaVerify = function (response) {
3600  $(".g-recaptcha.rendered").each(function () {
3601    var id = $(this).attr("data-widgetid");
3602    if (typeof id !== "undefined") {
3603      if (grecaptcha.getResponse(id) != "") {
3604        $(this).closest("form").find(".recaptcha").valid();
3605      }
3606    }
3607  });
3608};
3609
3610var reCaptchaVerifyHidden = function (response) {
3611  $(".g-recaptcha.rendered:last").each(function () {
3612    var id = $(this).attr("data-widgetid");
3613    if (typeof id !== "undefined" && response) {
3614      if (!$(this).closest("form").find(".g-recaptcha-response").val())
3615        $(this).closest("form").find(".g-recaptcha-response").val(response);
3616      $(this).closest("form").submit();
3617    }
3618  });
3619};
3620
3621waitYTPlayer = function (delay, callback) {
3622  if (typeof YT !== "undefined" && YT && YT.Player) {
3623    if (typeof callback == "function") callback();
3624  } else {
3625    setTimeout(function () {
3626      waitYTPlayer(delay, callback);
3627    }, delay);
3628  }
3629};
3630
3631var scrollToTopAnimateClassIn = false;
3632var scrollToTopAnimateClassOut = false;
3633
3634var $body = {};
3635var $scrolltotop = {};
3636var isOnceInited = false;
3637
3638if (navigator.userAgent.indexOf("Edge") != -1) document.documentElement.className += " edge";
3639
3640initFull = function () {
3641  checkMobileRegion();
3642};
3643
3644var isFrameDataReceived = false;
3645if (typeof window.frameCacheVars !== "undefined") {
3646  BX.addCustomEvent(window, "onFrameDataRequestFail", function (response) {
3647    // console.log(response);
3648  });
3649
3650  BX.addCustomEvent("onFrameDataReceivedBefore", function () {
3651    // stop ya metrika webvisor DOM indexer
3652    pauseYmObserver();
3653  });
3654
3655  BX.addCustomEvent("onFrameDataReceived", function (json) {
3656    initFull();
3657
3658    // resume ya metrika webvisor
3659    // (100ms sliceHeight) + (200ms mCustomScroll) + (100ms lazyload)
3660    setTimeout(resumeYmObserver, 400);
3661
3662    isFrameDataReceived = true;
3663  });
3664} else {
3665  $(document).ready(initFull);
3666}
3667
3668scrollPreviewBlock = function () {
3669  scrollToBlock($.cookie("scroll_block"));
3670  $.cookie("scroll_block", null);
3671};
3672
3673checkMobileRegion = function () {
3674  if ($(".confirm_region").length) {
3675    if (!$(".top_mobile_region").length)
3676      $('<div class="top_mobile_region"><div class="confirm_region"></div></div>').insertBefore($(".body"));
3677    $(".top_mobile_region .confirm_region").html($(".regions .confirm_region").html());
3678  }
3679};
3680
3681$(document).on("click", ".map-items__item", function () {
3682  var _this = $(this),
3683    itemID = _this.data("id"),
3684    animationTime = 200;
3685
3686  _this.closest(".map-wrapper").find(".index-block__subtitle").addClass("hidden");
3687  _this.closest(".map-wrapper").find(".index-block__title-wrapper").addClass("hidden");
3688  _this.closest(".map-wrapper").find(".index-block__preview").addClass("hidden");
3689
3690  _this.closest(".map-container").find(" > .map-detail-items__item-svg").fadeIn(animationTime);
3691
3692  _this.closest(".map-items").fadeOut(animationTime, function () {
3693    _this.closest(".map-container").find(".map-detail-items").fadeIn(animationTime);
3694    _this
3695      .closest(".map-container")
3696      .find(".map-detail-items .map-detail-items__item[data-id=" + itemID + "]")
3697      .fadeIn(animationTime);
3698
3699    var arCoordinates = _this.data("coordinates").split(",");
3700
3701    if (typeof map === "object" && map !== null && "setCenter" in map) {
3702      if ($(".bx-google-map").length) {
3703        map.setCenter({ lat: +arCoordinates[0], lng: +arCoordinates[1] });
3704        map.setZoom(17);
3705      } else {
3706        map.setCenter([arCoordinates[0], arCoordinates[1]], 15);
3707      }
3708    }
3709  });
3710});
3711
3712$(document).on("click", ".map-detail-items__item-svg", function () {
3713  var _this = $(this).closest(".map-container").find(".map-detail-items__item:visible"),
3714    animationTime = 200;
3715
3716  _this.fadeOut(animationTime);
3717
3718  _this.closest(".map-container").find(" > .map-detail-items__item-svg").fadeOut(10);
3719
3720  _this
3721    .closest(".map-container")
3722    .find(".map-detail-items")
3723    .fadeOut(animationTime, function () {
3724      _this.closest(".map-container").find(".map-items").fadeIn(animationTime);
3725
3726      _this.closest(".map-wrapper").find(".index-block__subtitle").removeClass("hidden");
3727      _this.closest(".map-wrapper").find(".index-block__title-wrapper").removeClass("hidden");
3728      _this.closest(".map-wrapper").find(".index-block__preview").removeClass("hidden");
3729
3730      if (typeof map === "object" && map !== null) {
3731        if (typeof clusterer === "object" && clusterer !== null && "setBounds" in map && "getBounds" in clusterer) {
3732          map.setBounds(clusterer.getBounds(), {
3733            zoomMargin: 40,
3734            // checkZoomRange: true
3735          });
3736        } else if (typeof bounds === "object" && bounds !== null && "fitBounds" in map && "getCenter" in bounds) {
3737          map.fitBounds(bounds);
3738        }
3739      }
3740    });
3741});
3742
3743$(document).ready(function () {
3744  scrollToTop();
3745  InitScrollBar();
3746  initCountdown();
3747
3748  // ripple effect for buttons
3749  $.ripple(".btn:not(.btn--no-rippple)", {
3750    debug: false, // Turn Ripple.js logging on/off
3751    on: "mouseenter", // The event to trigger a ripple effect
3752    opacity: 0.4, // The opacity of the ripple
3753    color: "auto", // Set the background color. If set to "auto", it will use the text color
3754    multi: true, // Allow multiple ripples per element
3755    duration: 0.6, // The duration of the ripple
3756    easing: "linear", // The CSS3 easing function of the ripple
3757  });
3758
3759  if (!jQuery.browser.safari) {
3760    CheckTopMenuPadding();
3761    CheckTopMenuOncePadding();
3762    CheckHeaderFixed();
3763    CheckTopMenuDotted();
3764    MegaMenuFixed();
3765    CheckSearchWidth();
3766    InitTopestMenuGummi();
3767    isOnceInited = true;
3768    /*
3769    setTimeout(function () {
3770      $(window).resize(); // need to check resize flexslider & menu
3771    }, 350);
3772    */
3773
3774    setTimeout(function () {
3775      $(window).scroll();
3776    }, 250); // need to check position fixed ask block
3777  } else {
3778    setTimeout(function () {
3779      $(window).resize(); // need to check resize flexslider & menu
3780
3781      setTimeout(function () {
3782        CheckTopMenuPadding();
3783        CheckTopMenuOncePadding();
3784        CheckHeaderFixed();
3785        CheckTopMenuDotted();
3786        MegaMenuFixed();
3787        CheckSearchWidth();
3788        InitTopestMenuGummi();
3789        isOnceInited = true;
3790
3791        setTimeout(function () {
3792          $(window).scroll();
3793        }, 50);
3794      }, 50);
3795    }, 350);
3796  }
3797
3798  if (arAsproOptions["THEME"]["USE_DEBUG_GOALS"] === "Y") {
3799    $.cookie("_ym_debug", "1");
3800  } else {
3801    $.cookie("_ym_debug", null);
3802  }
3803
3804  //  --- Bind mobile menu  ---
3805  var $mobileMenu = $("#mobilemenu");
3806  if ($mobileMenu.length) {
3807    $mobileMenu.isOpen = $mobileMenu.hasClass("show");
3808    $mobileMenu.isLeftSide = $("body").hasClass("mmenu_leftside");
3809    $mobileMenuNlo = $mobileMenu.find("[data-nlo]");
3810
3811    $(document).on("click", "#mobileheader .burger", function () {
3812      SwipeMobileMenu();
3813      CloseMobilePhone();
3814    });
3815
3816    $(document).on("click", ".mobilemenu__close", function () {
3817      CloseMobileMenu();
3818      $(".mobilemenu__menu-item").removeClass("mobilemenu__menu-item--expanded");
3819    });
3820
3821    $(document).on("click", ".mobilemenu__menu .toggle_block", function (e) {
3822      var $this = $(this);
3823      var $item = $this.closest(".mobilemenu__menu-item");
3824
3825      if ($item.hasClass("mobilemenu__menu-item--parent")) {
3826        e.preventDefault();
3827
3828        $item.addClass("mobilemenu__menu-item--expanded");
3829        MoveMobileMenuWrapNext();
3830      }
3831    });
3832
3833    $(document).on("click", ".mobilemenu__menu a", function (e) {
3834      var $this = $(this);
3835      var $item = $this.closest(".mobilemenu__menu-item");
3836
3837      if ($item.hasClass("mobilemenu__menu-item--back")) {
3838        e.preventDefault();
3839
3840        MoveMobileMenuWrapPrev();
3841        setTimeout(function () {
3842          $item.closest(".mobilemenu__menu-item--expanded").removeClass("mobilemenu__menu-item--expanded");
3843        }, 400);
3844      } else {
3845        var href = $this.attr("href");
3846        if (typeof href !== "undefined") {
3847          if (href.length) {
3848            window.location.href = href;
3849            //window.location.reload();
3850          } else {
3851            if ($item.hasClass("mobilemenu__menu-item--parent")) {
3852              e.preventDefault();
3853
3854              $item.addClass("mobilemenu__menu-item--expanded");
3855              MoveMobileMenuWrapNext();
3856
3857              return;
3858            } else if ($item.hasClass("mobilemenu__menu-item--title")) {
3859              e.preventDefault();
3860
3861              return;
3862            }
3863          }
3864        }
3865
3866        CloseMobileMenu();
3867      }
3868    });
3869
3870    if ($mobileMenu.isLeftSide) {
3871      $mobileMenu.parent().append('<div class="mobilemenu__overlay"></div>');
3872      var $mobileMenuOverlay = $(".mobilemenu__overlay");
3873
3874      $mobileMenuOverlay.click(function () {
3875        if ($mobileMenu.isOpen) {
3876          CloseMobileMenu();
3877        }
3878      });
3879
3880      $(document).swiperight(function (e) {
3881        if (
3882          !$(e.target).closest(".owl-carousel").length &&
3883          !$(e.target).closest(".swipeignore").length &&
3884          !$(e.target).closest(".mobile-scrolled").length
3885        ) {
3886          var partWindowWidth = document.documentElement.clientWidth / 3;
3887          var swipeStart = e.swipestart.coords[0];
3888          if (swipeStart <= partWindowWidth) {
3889            OpenMobileMenu();
3890          }
3891        }
3892      });
3893
3894      $(document).swipeleft(function (e) {
3895        if (
3896          !$(e.target).closest(".owl-carousel").length &&
3897          !$(e.target).closest(".swipeignore").length &&
3898          !$(e.target).closest(".mobile-scrolled").length
3899        ) {
3900          CloseMobileMenu();
3901        }
3902      });
3903    } else {
3904      $(document).on("click", "#mobileheader", function (e) {
3905        if (
3906          !$(e.target).closest("#mobilemenu").length &&
3907          !$(e.target).closest(".burger").length &&
3908          $mobileMenu.isOpen
3909        ) {
3910          CloseMobileMenu();
3911        }
3912      });
3913    }
3914
3915    OpenMobileMenu = function () {
3916      if (!$mobileMenu.isOpen && window.matchMedia("(max-width: 991px)").matches) {
3917        // hide styleswitcher
3918        if ($(".style-switcher").hasClass("active")) {
3919          $(".style-switcher .switch").trigger("click");
3920        }
3921        $(".style-switcher .switch").hide();
3922        $(".style-switcher .switch_presets").hide();
3923
3924        if ($mobileMenu.isLeftSide) {
3925          setTimeout(function () {
3926            // hide body scroll
3927            $("body").addClass("overflow-block");
3928
3929            // blur body
3930            $("#mobileheader").addClass("filter-none");
3931            $("#mobilemenu").addClass("filter-none");
3932            $("body").addClass("jqm-initied");
3933
3934            // show overlay
3935            $mobileMenuOverlay.fadeIn("fast");
3936          }, 100);
3937        } else {
3938          // hide body scroll
3939          $("body").addClass("overflow-block");
3940
3941          // set menu top = bottom of header
3942          $mobileMenu.css({
3943            top: +($("#mobileheader")[0].getBoundingClientRect().top + $("#mobileheader").height()) + "px",
3944          });
3945
3946          // change burger icon
3947          // $('#mobileheader .burger').addClass('c');
3948        }
3949
3950        // show menu
3951        $mobileMenu.addClass("show");
3952        $mobileMenu.isOpen = true;
3953
3954        var $inner = $mobileMenu.find(".mobilemenu__inner");
3955        var params = $inner.data("params");
3956        if (typeof params === "undefined") {
3957          params = {
3958            depth: 0,
3959            scroll: {},
3960            height: {},
3961          };
3962        }
3963        $inner.data("params", params);
3964
3965        if ($mobileMenuNlo.length) {
3966          if (!$mobileMenuNlo.hasClass("nlo-loadings")) {
3967            $mobileMenuNlo.addClass("nlo-loadings");
3968            setTimeout(function () {
3969              $.ajax({
3970                data: { nlo: $mobileMenuNlo.attr("data-nlo") },
3971                error: function () {
3972                  $mobileMenuNlo.removeClass("nlo-loadings");
3973                },
3974                complete: function (jqXHR, textStatus) {
3975                  if (textStatus === "success" || jqXHR.status == 404) {
3976                    var ob = BX.processHTML($.trim(jqXHR.responseText));
3977                    BX.ajax.processScripts(ob.SCRIPT);
3978                    $mobileMenuNlo.replaceWith(ob.HTML);
3979                  }
3980                },
3981              });
3982            }, 300);
3983          }
3984        }
3985      }
3986    };
3987
3988    CloseMobileMenu = function () {
3989      if ($mobileMenu.isOpen) {
3990        // hide menu
3991        $mobileMenu.removeClass("show");
3992        $mobileMenu.isOpen = false;
3993
3994        // show styleswitcher
3995        $(".style-switcher .switch").show();
3996        $(".style-switcher .switch_presets").show();
3997
3998        if ($mobileMenu.isLeftSide) {
3999          setTimeout(function () {
4000            // hide overlay
4001            $mobileMenuOverlay.fadeOut("fast");
4002
4003            // show body scroll
4004            $("body").removeClass("overflow-block");
4005
4006            // unblur body
4007            $("body").removeClass("jqm-initied");
4008            $("#mobilemenu").removeClass("filter-none");
4009            $("#mobileheader").removeClass("filter-none");
4010          }, 100);
4011        } else {
4012          // change burger icon
4013          // $('#mobileheader .burger').removeClass('c');
4014
4015          // show body scroll
4016          $("body").removeClass("overflow-block");
4017        }
4018
4019        setTimeout(function () {
4020          var $scroller = $mobileMenu.find(".mobilemenu");
4021          var $inner = $mobileMenu.find(".mobilemenu__inner");
4022          var params = $inner.data("params");
4023          params.depth = 0;
4024          $inner.data("params", params).attr("style", "");
4025          $mobileMenu.scrollTop(0);
4026          $scroller.css("height", "");
4027        }, 400);
4028      }
4029    };
4030
4031    SwipeMobileMenu = function () {
4032      if ($mobileMenu.isOpen) {
4033        CloseMobileMenu();
4034      } else {
4035        OpenMobileMenu();
4036      }
4037    };
4038
4039    CheckMobileMenu = function () {
4040      if (!window.matchMedia("(max-width: 991px)").matches) {
4041        CloseMobileMenu();
4042      }
4043    };
4044
4045    function MoveMobileMenuWrapNext() {
4046      var $scroller = $mobileMenu.find(".mobilemenu");
4047      var $inner = $mobileMenu.find(".mobilemenu__inner");
4048      if ($inner.length) {
4049        var params = $inner.data("params");
4050        var $dropdownNext = $mobileMenu
4051          .find(".mobilemenu__menu-item--expanded>.mobilemenu__menu-dropdown")
4052          .eq(params.depth);
4053        if ($dropdownNext.length) {
4054          // save scroll position
4055          params.scroll[params.depth] = parseInt($mobileMenu.scrollTop());
4056
4057          // height while move animating
4058          params.height[params.depth + 1] = Math.max(
4059            $dropdownNext.height(),
4060            !params.depth
4061              ? $inner.height()
4062              : $mobileMenu
4063                  .find(".mobilemenu__menu-item--expanded>.mobilemenu__menu-dropdown")
4064                  .eq(params.depth - 1)
4065                  .outerHeight()
4066          );
4067          $scroller.css("height", params.height[params.depth + 1] + "px");
4068
4069          // inc depth
4070          ++params.depth;
4071
4072          // translateX for move
4073          $inner.css("transform", "translateX(" + -100 * params.depth + "%)");
4074
4075          // scroll to top
4076          setTimeout(function () {
4077            $mobileMenu.animate({ scrollTop: 0 }, 200);
4078          }, 100);
4079
4080          // height on enimating end
4081          var h =
4082            $dropdownNext.height() +
4083            parseInt($dropdownNext.css("padding-top")) +
4084            parseInt($dropdownNext.css("padding-bottom"));
4085          setTimeout(function () {
4086            if (h) {
4087              $scroller.css("height", h + "px");
4088            } else {
4089              $scroller.css("height", "");
4090            }
4091          }, 200);
4092        }
4093
4094        $inner.data("params", params);
4095      }
4096    }
4097
4098    function MoveMobileMenuWrapPrev() {
4099      var $scroller = $mobileMenu.find(".mobilemenu");
4100      var $inner = $mobileMenu.find(".mobilemenu__inner");
4101      if ($inner.length) {
4102        var params = $inner.data("params");
4103        if (params.depth > 0) {
4104          var $dropdown = $mobileMenu
4105            .find(".mobilemenu__menu-item--expanded>.mobilemenu__menu-dropdown")
4106            .eq(params.depth - 1);
4107          if ($dropdown.length) {
4108            // height while move animating
4109            $scroller.css("height", params.height[params.depth] + "px");
4110
4111            // dec depth
4112            --params.depth;
4113
4114            // translateX for move
4115            $inner.css("transform", "translateX(" + -100 * params.depth + "%)");
4116
4117            // restore scroll position
4118            setTimeout(function () {
4119              $mobileMenu.animate({ scrollTop: params.scroll[params.depth] }, 200);
4120            }, 100);
4121
4122            // height on enimating end
4123            var h = !params.depth
4124              ? false
4125              : $mobileMenu
4126                  .find(".mobilemenu__menu-item--expanded>.mobilemenu__menu-dropdown")
4127                  .eq(params.depth - 1)
4128                  .outerHeight();
4129            setTimeout(function () {
4130              if (h) {
4131                $scroller.css("height", h + "px");
4132              } else {
4133                $scroller.css("height", "");
4134              }
4135            }, 200);
4136          }
4137        }
4138
4139        $inner.data("params", params);
4140      }
4141    }
4142  }
4143  //  --- END Bind mobile menu  ---
4144
4145  //  --- Bind mobile phone ---
4146  if ($("#mobilephones").length) {
4147    $(document).on("click", ".mobileheader .phones__inner .icon-block__only-icon", function (e) {
4148      e.stopPropagation();
4149      SwipeMobilePhone();
4150    });
4151
4152    $(document).on("click", ".mobilephones__menu-item a,.mobilephones__close", function (e) {
4153      e.stopPropagation();
4154      CloseMobilePhone();
4155    });
4156  }
4157
4158  SwipeMobilePhone = function () {
4159    if ($("#mobilephones.show").length) {
4160      CloseMobilePhone();
4161    } else {
4162      OpenMobilePhone();
4163    }
4164  };
4165
4166  OpenMobilePhone = function () {
4167    if (!$("#mobilephones.show").length) {
4168      CloseMobileMenu();
4169
4170      // show overlay
4171      $('<div class="jqmOverlay mobp"></div>').appendTo("body");
4172
4173      // blur body
4174      $("#mobileheader").addClass("filter-none");
4175      $("body").addClass("jqm-initied");
4176
4177      // toggle phones
4178      setTimeout(function () {
4179        $("#mobilephones").slideDown("fast", function () {
4180          $("#mobilephones").addClass("show");
4181        });
4182      }, 100);
4183    }
4184  };
4185
4186  CloseMobilePhone = function () {
4187    if ($("#mobilephones.show").length) {
4188      // toggle phones
4189      setTimeout(function () {
4190        $("#mobilephones").slideUp("fast", function () {
4191          $("#mobilephones").removeClass("show");
4192
4193          // unblur body
4194          $("body").removeClass("jqm-initied");
4195          $("#mobileheader").removeClass("filter-none");
4196
4197          // hide overlay
4198          $(".jqmOverlay.mobp").remove();
4199        });
4200      }, 100);
4201    }
4202  };
4203
4204  checkMobilePhone = function () {
4205    if (!window.matchMedia("(max-width: 991px)").matches) {
4206      CloseMobilePhone();
4207    }
4208  };
4209  //  --- END Bind mobile phone ---
4210
4211  // change type2 menu for fixed
4212  if ($("#headerfixed .js-nav").length) {
4213    if (arAsproOptions["THEME"]["HEADER_FIXED"] == 2) CheckHeaderFixedMenu();
4214
4215    setTimeout(function () {
4216      $("#headerfixed .js-nav").addClass("opacity1");
4217    }, 350);
4218  }
4219
4220  // close search block
4221  $("html, body").on("mousedown", function (e) {
4222    if (typeof e.target.className == "string" && e.target.className.indexOf("adm") < 0) {
4223      e.stopPropagation();
4224      var search_target = $(e.target).closest(".searche-result");
4225      if (
4226        !$(e.target).closest("#mobileheader").length &&
4227        !$(e.target).closest("#mobilefilter").length &&
4228        !$(e.target).closest(".popup").length &&
4229        !$(e.target).hasClass("inline-search-block") &&
4230        !$(e.target).hasClass("svg") &&
4231        !search_target.length
4232      ) {
4233        $(".inline-search-block").removeClass("show");
4234        $(".title-search-result").hide();
4235
4236        if (arAsproOptions["THEME"]["TYPE_SEARCH"] == "fixed") {
4237          $(".jqmOverlay.search").detach();
4238          $("body").removeClass("jqm-initied");
4239        }
4240
4241        $("body").removeClass("overflow-block");
4242      }
4243
4244      if (isMobile) {
4245        if (search_target.length) location.href = search_target.attr("href");
4246      }
4247
4248      if (!$(e.target).closest(".hint.active").length) {
4249        $(".hint.active .hint__icon").trigger("click");
4250      }
4251
4252      var class_name = $(e.target).attr("class");
4253      if (typeof class_name == "undefined" || class_name.indexOf("tooltip") < 0)
4254        //tooltip link
4255        $(".tooltip-link").tooltip("hide");
4256    }
4257  });
4258  $(".inline-search-block")
4259    .find("*")
4260    .on("mousedown", function (e) {
4261      e.stopPropagation();
4262    });
4263
4264  $(".filter-action").on("click", function () {
4265    $(this).toggleClass("active");
4266    $(this).find(".svg").toggleClass("white");
4267    if ($(".introtext").length) {
4268      var top_pos = $(".filters-wrap").position();
4269      $(".bx_filter").css({ top: top_pos.top + 40 });
4270    }
4271    $(".bx_filter").slideToggle();
4272  });
4273
4274  // -- scroll after apply option
4275  scrollPreviewBlock();
4276
4277  $.extend($.validator.messages, {
4278    required: BX.message("JS_REQUIRED"),
4279    email: BX.message("JS_FORMAT"),
4280    equalTo: BX.message("JS_PASSWORD_COPY"),
4281    minlength: BX.message("JS_PASSWORD_LENGTH"),
4282    remote: BX.message("JS_ERROR"),
4283  });
4284
4285  $.validator.addMethod(
4286    "regexp",
4287    function (value, element, regexp) {
4288      var re = new RegExp(regexp);
4289      return this.optional(element) || re.test(value);
4290    },
4291    BX.message("JS_FORMAT")
4292  );
4293
4294  $.validator.addMethod(
4295    "filesize",
4296    function (value, element, param) {
4297      return this.optional(element) || element.files[0].size <= param;
4298    },
4299    BX.message("JS_FILE_SIZE")
4300  );
4301
4302  $.validator.addMethod(
4303    "date",
4304    function (value, element, param) {
4305      var status = false;
4306      if (!value || value.length <= 0) {
4307        status = true;
4308      } else {
4309        var re = new RegExp("^([0-9]{2})(.)([0-9]{2})(.)([0-9]{4})$");
4310        var matches = re.exec(value);
4311        if (matches) {
4312          var composedDate = new Date(matches[5], matches[3] - 1, matches[1]);
4313          status =
4314            composedDate.getMonth() == matches[3] - 1 &&
4315            composedDate.getDate() == matches[1] &&
4316            composedDate.getFullYear() == matches[5];
4317        }
4318      }
4319      return status;
4320    },
4321    BX.message("JS_DATE")
4322  );
4323
4324  $.validator.addMethod(
4325    "datetime",
4326    function (value, element, param) {
4327      var status = false;
4328      if (!value || value.length <= 0) {
4329        status = true;
4330      } else {
4331        var re = new RegExp("^([0-9]{2})(.)([0-9]{2})(.)([0-9]{4}) ([0-9]{1,2}):([0-9]{1,2})$");
4332        var matches = re.exec(value);
4333        if (matches) {
4334          var composedDate = new Date(matches[5], matches[3] - 1, matches[1], matches[6], matches[7]);
4335          status =
4336            composedDate.getMonth() == matches[3] - 1 &&
4337            composedDate.getDate() == matches[1] &&
4338            composedDate.getFullYear() == matches[5] &&
4339            composedDate.getHours() == matches[6] &&
4340            composedDate.getMinutes() == matches[7];
4341        }
4342      }
4343      return status;
4344    },
4345    BX.message("JS_DATETIME")
4346  );
4347
4348  $.validator.addMethod(
4349    "extension",
4350    function (value, element, param) {
4351      param = typeof param === "string" ? param.replace(/,/g, "|") : "png|jpe?g|gif";
4352      return this.optional(element) || value.match(new RegExp(".(" + param + ")$", "i"));
4353    },
4354    BX.message("JS_FILE_EXT")
4355  );
4356
4357  $.validator.addMethod(
4358    "captcha",
4359    function (value, element, params) {
4360      let sid = $(element).closest("form").find('input[name="captcha_sid"]').val();
4361      return $.validator.methods.remote.call(this, value, element, {
4362        url: arAsproOptions["SITE_DIR"] + "ajax/check-captcha.php",
4363        type: "post",
4364        data: {
4365          captcha_word: value,
4366          captcha_sid: sid,
4367        },
4368      });
4369    },
4370    BX.message("JS_ERROR")
4371  );
4372
4373  $.validator.addMethod(
4374    "recaptcha",
4375    function (value, element, param) {
4376      var id = $(element).closest("form").find(".g-recaptcha").attr("data-widgetid");
4377      if (typeof id !== "undefined") {
4378        return grecaptcha.getResponse(id) != "";
4379      } else {
4380        return true;
4381      }
4382    },
4383    BX.message("JS_RECAPTCHA_ERROR")
4384  );
4385
4386  // reload captcha
4387  $(document).on("click", ".refresh", function (e) {
4388    var captcha = $(this).parents(".captcha-row");
4389    e.preventDefault();
4390    $.ajax({
4391      url: arAsproOptions["SITE_DIR"] + "ajax/captcha.php",
4392    }).done(function (text) {
4393      captcha.find("input[name=captcha_sid],input[name=captcha_code]").val(text);
4394      captcha.find("img").attr("src", "/bitrix/tools/captcha.php?captcha_sid=" + text);
4395      captcha.find("input[name=captcha_word]").val("").removeClass("error");
4396      captcha.find(".captcha_input").removeClass("error").find(".error").remove();
4397    });
4398  });
4399
4400  $.validator.addClassRules({
4401    phone: {
4402      regexp: arAsproOptions["THEME"]["VALIDATE_PHONE_MASK"],
4403    },
4404    confirm_password: {
4405      equalTo: "input.password",
4406      minlength: 6,
4407    },
4408    password: {
4409      minlength: 6,
4410    },
4411    inputfile: {
4412      extension: arAsproOptions["THEME"]["VALIDATE_FILE_EXT"],
4413      filesize: 5000000,
4414    },
4415    datetime: {
4416      datetime: "",
4417    },
4418    captcha: {
4419      captcha: "",
4420    },
4421    recaptcha: {
4422      recaptcha: "",
4423    },
4424  });
4425
4426  $.validator.setDefaults({
4427    highlight: function (element) {
4428      $(element).parent().addClass("error");
4429    },
4430    unhighlight: function (element) {
4431      $(element).parent().removeClass("error");
4432    },
4433  });
4434
4435  // expand/hide filter values
4436  $(document).on("click", ".expand_block", function () {
4437    togglePropBlock($(this));
4438  });
4439
4440  // popup img list
4441  $(document).on("click", ".fancy-js", function () {
4442    const parent = $(this).closest(".image-list");
4443    let arItems = [];
4444    let index = 0;
4445    parent.find("[data-big]").each(function () {
4446      let _this = $(this);
4447      let obItem = {
4448        src: _this.data("big"),
4449        opts: {
4450          caption: _this.attr("alt"),
4451        },
4452      };
4453      arItems.push(obItem);
4454    });
4455    index = parent.find(".active").index();
4456    if (arItems.length) {
4457      if (typeof $.fn.fancybox === "function") {
4458        $.fancybox.open(arItems, { loop: false }, index);
4459      }
4460    }
4461  });
4462
4463  $(".mobilemenu__menu-item--city a").on("click", function (e) {
4464    e.preventDefault();
4465    var _this = $(this);
4466    $.removeCookie("current_region");
4467
4468    if (arAsproOptions["SITE_ADDRESS"].indexOf(",") != "-1") {
4469      var arDomains = arAsproOptions["SITE_ADDRESS"].split(",");
4470      if (arDomains) {
4471        for (var i in arDomains) {
4472          var domain_name = arDomains[i].replace("\n", "");
4473          domain_name = arDomains[i].replace("'", "");
4474          $.cookie("current_region", _this.data("id"), { path: "/", domain: domain_name });
4475        }
4476      }
4477    }
4477 else $.cookie("current_region", _this.data("id"), { path: "/", domain: arAsproOptions["SITE_ADDRESS"] });
4478
4479    location.href = _this.attr("href");
4480  });
4481
4482  InitOwlSlider();
4483  InitFlexSlider();
4484  InitFlexSliderMin();
4485
4486  InitFancyBox();
4487  InitFancyBoxVideo();
4488
4489  // for check flexslider bug in composite mode
4490  waitingNotExists(".detail .galery #slider", ".detail .galery #slider .flex-viewport", 1000, function () {
4491    InitOwlSlider();
4492    InitFlexSlider();
4493    setTimeout(function () {
4494      $(window).resize();
4495    }, 350);
4496  });
4497
4498  // change view type catalog
4499  $(".view-button").on("click", function () {
4500    $(this).siblings().removeClass("cur");
4501    $(this).addClass("cur");
4502  });
4503
4504  // -- escape close popup form
4505  $(document).on("keydown", function (e) {
4506    if (e.keyCode == 27) {
4507      if ($(".jqmWindow.show").length) $(".jqmWindow.show .jqmClose").click();
4508      if ($(".inline-search-block.fixed.show").length) {
4509        $(".inline-search-block.fixed .inline-search-hide").click();
4510        setTimeout(function () {
4511          $(".title-search-result").hide();
4512        }, 0);
4513      }
4514      if ($(".mega-fixed-menu").is(":visible")) {
4515        $(".mega-fixed-menu .mega-fixed-menu__close").click();
4516      }
4517    }
4518  });
4519
4520  $(".right_dok .link>span").on("click", function (e) {
4521    if ($(this).hasClass("jqm_disable")) {
4522      $(".jqmWindow.right_slide.opened").jqmHide();
4523      e.stopImmediatePropagation(); // need for stop jqm open standart script
4524    }
4525  });
4526
4527  $(document).on("click", '*[data-event="jqm"]', function (e) {
4528    e.preventDefault();
4529    e.stopPropagation();
4530    if (!$(this).hasClass("clicked")) {
4531      $(this).addClass("clicked");
4532      $(this).jqmEx();
4533      $(this).trigger("click");
4534    }
4535  });
4536
4537  $(".animate-load").on("click", function () {
4538    $(this).parent().addClass("loadings");
4539  });
4540
4541  BX.addCustomEvent("onCompleteAction", function (eventdata, _this) {
4542    try {
4543      if (eventdata.action === "loadForm") {
4544        $(_this).parent().removeClass("loadings");
4545        $(_this).removeClass("clicked");
4546      } else if (eventdata.action === "loadBasket") {
4547        var basket_js_block = $(".js-basket-block");
4548        if (basket_js_block.length) {
4549          var count = basket_js_block.find(".header-cart__count").length
4550            ? parseInt($(_this).find(".count").text())
4551            : parseInt($(_this).find(".header-cart__count").text());
4552          if (count) {
4553            basket_js_block.removeClass("header-cart__inner--empty");
4554          } else {
4555            basket_js_block.addClass("header-cart__inner--empty");
4556          }
4557        }
4558
4559        setBasketItemsClasses();
4560      } else if (eventdata.action === "loadRSS") {
4561      } else if (eventdata.action === "jsLoadBlock") {
4562        InitScrollBar();
4563      } else if (eventdata.action === "ajaxContentLoaded") {
4564        if ("type" in eventdata) {
4565          if (eventdata.type == "table_block") {
4566            $(".catalog.item-views.table .item .title").sliceHeight();
4567            $(".catalog.item-views.table .item .cont").sliceHeight();
4568            // $('.catalog.item-views.table .item .slice_price').sliceHeight();
4569            $(".catalog.item-views.table .item").sliceHeight({ classNull: ".footer-button" });
4570          } else if (eventdata.type == "table_block2") {
4571            $(".catalog.item-views.table .item .title").sliceHeight();
4572            $(".catalog.item-views.table .item .cont").sliceHeight({
4573              autoHeightBlock: ".cont_inner",
4574              classNull: ".props_wrapper",
4575            });
4576            // $('.catalog.item-views.table .item .slice_price').sliceHeight();
4577            $(".catalog.item-views.table .item").sliceHeight({
4578              classNull: ".footer-button",
4579              autoHeightBlock: ".cont_inner",
4580              callback: setHoverHeight,
4581            });
4582          }
4583        }
4584      }
4585    } catch (e) {
4586      console.error(e);
4587    }
4588  });
4589
4590  BX.addCustomEvent("onCounterGoals", function (eventdata) {
4591    if (arAsproOptions["THEME"]["YA_GOALS"] == "Y" && arAsproOptions["THEME"]["YA_COUNTER_ID"]) {
4592      var idCounter = arAsproOptions["THEME"]["YA_COUNTER_ID"];
4593      idCounter = parseInt(idCounter);
4594
4595      if (typeof eventdata != "object") eventdata = { goal: "undefined" };
4596
4597      if (typeof eventdata.goal != "string") eventdata.goal = "undefined";
4598
4599      if (idCounter) {
4600        try {
4601          waitCounter(idCounter, 50, function () {
4602            var obCounter = window["yaCounter" + idCounter];
4603            if (typeof obCounter == "object") {
4604              obCounter.reachGoal(eventdata.goal);
4605            }
4606          });
4607        } catch (e) {
4608          console.error(e);
4609        }
4610      } else {
4611        console.info("Bad counter id!", idCounter);
4612      }
4613    }
4614  });
4615
4616  BX.addCustomEvent(window, "onAjaxSuccess", function (e) {
4617    if (e != "OK") {
4618      InitOwlSlider();
4619      InitFlexSlider();
4620      InitFlexSliderMin();
4621    }
4622  });
4623
4624  // show print
4625  if (arAsproOptions["THEME"]["PRINT_BUTTON"] == "Y") {
4626    setTimeout(function () {
4627      if ($(".page-top .rss-block.top").length) {
4628        $('<div class="print-link"><i class="svg svg-print"></i></div>').insertBefore(
4629          $(".page-top .rss-block.top .shares-block")
4630        );
4631      } else if ($(".page-top .rss").length) {
4632        $('<div class="print-link"><i class="svg svg-print"></i></div>').insertAfter($(".page-top .rss"));
4633      } else if ($(".page-top h1").length)
4634        $('<div class="print-link"><i class="svg svg-print"></i></div>').insertBefore($(".page-top h1"));
4635      // else
4636      // $('footer .print-block').html('<div class="print-link"><i class="svg svg-print"><svg id="Print.svg" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewB
4636ox="0 0 16 16"><path class="cls-1" d="M1553,287h-2v3h-8v-3h-2a2,2,0,0,1-2-2v-5a2,2,0,0,1,2-2h2v-4h8v4h2a2,2,0,0,1,2,2v5A2,2,0,0,1,1553,287Zm-8,1h4v-4h-4v4Zm4-12h-4v2h4v-2Zm4,4h-12v5h2v-3h8v3h2v-5Z" transform="translate(-1539 -274)"/></svg></i></div>');
4637    }, 150);
4638  }
4639
4640  $(document).on("click", ".print-link", function () {
4641    window.print();
4642  });
4643
4644  $(".head-block .item-link").on("click", function () {
4645    var _this = $(this);
4646    _this.siblings().removeClass("active");
4647    _this.addClass("active");
4648  });
4649
4650  //alert(navigator.userAgent);
4651  $("table.table").each(function () {
4652    var _this = $(this),
4653      first_td = _this.find("thead tr th");
4654    if (!first_td.length) first_td = _this.find("thead tr td");
4655    if (first_td.length) {
4656      _this.find("tbody tr:not(.nomobile)").each(function (i) {
4657        $(this)
4658          .find("td")
4659          .each(function (i) {
4660            if (typeof first_td[i] !== "undefined")
4661              $('<div class="th-mobile">' + first_td[i].textContent + "</div>").appendTo($(this));
4662          });
4663      });
4664    }
4665  });
4666
4667  if ($("a.fancybox").length) {
4668    if (typeof $.fn.fancybox == "function") {
4669      $("a.fancybox").fancybox();
4670    }
4671  }
4672
4673  // flex pagination
4674  $(document).on("mouseenter", ".flex-viewport .item", function () {
4675    $(this).closest(".flexslider").find(".flex-control-nav").toggleClass("noz");
4676    $(this).closest(".flexslider").find(".flex-control-nav").css("z-index", "0");
4677  });
4678  $(document).on("mouseleave", ".flex-viewport .item", function () {
4679    $(this).closest(".flexslider").find(".flex-control-nav").toggleClass("noz");
4680    $(this).closest(".flexslider").find(".flex-control-nav").css("z-index", "2");
4681  });
4682
4683  // ajax more items
4684  $(document).on("click", ".ajax_load_btn", function () {
4685    var url = $(this).closest(".bottom_nav").find(".arrows-pagination__next").attr("href"),
4686      th = $(this).find(".more_text_ajax"),
4687      _this = $(this),
4688      bottom_nav = $(this).closest(".bottom_nav");
4689    if (!th.hasClass("loading")) {
4690      th.addClass("loading");
4691      var objUrl = parseUrlQuery(),
4692        add_url = "",
4693        obData = { AJAX_REQUEST: "Y", ajax_get: "Y", bitrix_include_areas: "N" };
4694
4695      //index page
4696      if ($(".body.index").length) {
4697        var class_block = th.closest(".drag-block").data("class").replace("_drag", "");
4698        class_block = class_block.replace(/\s/g, "");
4699        obData.BLOCK = class_block;
4700      }
4701      if (_this.closest(".ajax-pagination-wrapper").length) {
4702        obData.BLOCK = _this.closest(".ajax-pagination-wrapper").data("class");
4703      }
4704      if ("clear_cache" in objUrl && objUrl.clear_cache == "Y") {
4705        add_url = "&clear_cache=Y";
4706      }
4707      if ($(".banners-small.front").length) {
4708        obData.MD = $(".banners-small.front").find(".items").data("colmd");
4709        obData.SM = $(".banners-small.front").find(".items").data("colsm");
4710      }
4711
4712      //tabs block
4713      if (_this.closest(".tab-content-block").length) {
4714        var filter = th.closest(".tab-content-block").data("filter");
4715        obData.GLOBAL_FILTER = filter;
4716      }
4717      $.ajax({
4718        url: url + "" + add_url,
4719        data: BX.ajax.prepareData(obData),
4720        success: function (html) {
4721          var html = html.trim();
4722          var mobileBottomClicked = bottom_nav.hasClass("mobile_slider");
4723          var hasMobileBottomNav = $(html).find(".bottom_nav.mobile_slider");
4724          var bottomNav = hasMobileBottomNav.length ? hasMobileBottomNav : $(html).find(".bottom_nav");
4725          var bottomNavHtml = bottomNav.html();
4726          var bottomNavScrollClass = bottomNav.data("scroll-class");
4727          var hasBottomNav = $(html).find(".ajax_load_btn").length;
4728
4729          var eventdata = { action: "ajaxContentLoaded", content: html };
4730
4731          if ($(".banners-small.front").length) {
4732            $(".banners-small .items.row").append(html);
4733            $(".bottom_nav").html($(".banners-small .items.row .bottom_nav").html());
4734            $(".banners-small .items.row .bottom_nav").remove();
4735          } else if (bottom_nav.data("append") !== undefined && bottom_nav.data("parent") !== undefined) {
4736            var $slider = th.closest(bottom_nav.data("parent")).find(".owl-carousel");
4737            if ($slider.length) {
4738              var obData = BX.processHTML(html);
4739              html = obData.HTML;
4740
4741              var $slides = $("<div>" + html + "</div>").find(">*");
4742              $slides.each(function () {
4743                if (!$(this).hasClass("wrap_nav")) {
4744                  $slider.trigger("add.owl.carousel", [$(this).wrap("<div></div>").parent().html()]);
4745                }
4746              });
4747              $slider.trigger("refresh.owl.carousel");
4748
4749              setTimeout(function () {
4750                BX.ajax.processScripts(obData.SCRIPT);
4751              }, 100);
4752            } else {
4753              var target = html;
4754              if (bottom_nav.data("target") !== undefined) {
4755                target = $(html).find(bottom_nav.data("target"));
4756              }
4757              if (mobileBottomClicked || hasMobileBottomNav.length) {
4758                var mobileSliderNav = th.closest(bottom_nav.data("parent")).find(".bottom_nav.mobile_slider");
4759                if (mobileSliderNav.length) {
4760                  mobileSliderNav.before(target);
4761                } else {
4762                  bottom_nav.before(target);
4763                }
4764              } else {
4765                th.closest(bottom_nav.data("parent")).find(bottom_nav.data("append")).append(target);
4766              }
4767              th.closest(bottom_nav.data("parent"))
4768                .find(bottom_nav.data("append"))
4769                .find(".bottom_nav_wrapper")
4770                .remove();
4771
4772              if (hasBottomNav) {
4773                if (bottomNavScrollClass !== undefined) {
4774                  th.closest(bottom_nav.data("parent")).find(bottomNavScrollClass).addClass("has-bottom-nav");
4775                }
4776                th.closest(bottom_nav.data("parent")).find(bottom_nav.data("append")).addClass("has-bottom-nav");
4777              } else {
4778                if (bottomNavScrollClass !== undefined) {
4779                  th.closest(bottom_nav.data("parent")).find(bottomNavScrollClass).removeClass("has-bottom-nav");
4780                }
4781                th.closest(bottom_nav.data("parent")).find(bottom_nav.data("append")).removeClass("has-bottom-nav");
4782              }
4783            }
4784
4785            bottom_nav = th.closest(bottom_nav.data("parent")).find(".bottom_nav");
4786            bottom_nav.html(bottomNavHtml);
4787            var icon = bottom_nav.find(".svg-inline-bottom_nav-icon");
4788            icon.css("display", "");
4789
4790            eventdata.container = th.closest(bottom_nav.data("parent"));
4791          } else {
4792            $(html).insertBefore($(".blog .bottom_nav"));
4793            $(".bottom_nav").html($(".blog .bottom_nav:hidden").html());
4794            $(".blog .bottom_nav:hidden").remove();
4795          }
4796
4797          setTimeout(function () {
4798            BX.onCustomEvent("onCompleteAction", [eventdata, th[0]]);
4799            $(".banners-small .item.normal-block").sliceHeight();
4800            th.removeClass("loading");
4801          }, 100);
4802        },
4803      });
4804    }
4805  });
4806
4807  // bug fix in ff
4808  $("img").removeAttr("draggable");
4809
4810  // Responsive Menu Events
4811  var addActiveClass = false;
4812  $("#mainMenu li.dropdown > a > i, #mainMenu li.dropdown-submenu > a > i").on("click", function (e) {
4813    e.preventDefault();
4814    if ($(window).width() > 979) return;
4815    addActiveClass = $(this).closest("li").hasClass("resp-active");
4816    // $('#mainMenu').find('.resp-active').removeClass('resp-active');
4817    if (!addActiveClass) {
4818      $(this).closest("li").addClass("resp-active");
4819    } else {
4820      $(this).closest("li").removeClass("resp-active");
4821    }
4822  });
4823
4824  // animate increment
4825  if ($(".spincrement").length) {
4826    $(".spincrement").counterUp({
4827      delay: 80,
4828      time: 1000,
4829    });
4830  }
4831
4832  // form rating
4833  $(document).on("mouseenter", ".form .votes_block.with-text .item-rating", function () {
4834    var $this = $(this),
4835      index = $this.index(),
4836      ratingMessage = $this.data("message");
4837
4838    $(this).addClass("filed");
4839    $this.siblings().each(function () {
4840      if ($(this).index() <= index) $(this).addClass("filed");
4841      else $(this).removeClass("filed");
4842    });
4843    $this.closest(".votes_block").find(".rating_message").text(ratingMessage);
4844  });
4845
4846  $(document).on("mouseleave", ".form .votes_block.with-text", function () {
4847    var $this = $(this),
4848      index = $this.data("rating"),
4849      ratingMessage = $this.closest(".votes_block").find(".rating_message").data("message");
4850
4851    $this.find(".item-rating").each(function () {
4852      if ($(this).index() < index && index !== undefined) $(this).addClass("filed");
4853      else $(this).removeClass("filed");
4854    });
4855    $this.closest(".votes_block").find(".rating_message").text(ratingMessage);
4856  });
4857
4858  $(document).on("click", ".form .votes_block.with-text .item-rating", function () {
4859    var $this = $(this),
4860      rating = $this.closest(".votes_block").data("rating"),
4861      index = $this.index() + 1,
4862      ratingMessage = $this.data("message");
4863
4864    $this.closest(".votes_block").data("rating", index);
4865    if ($this.closest(".form-group").find("input[name=RATING]").length) {
4866      $this.closest(".form-group").find("input[name=RATING]").val(index);
4867    } else {
4868      $this.closest(".form-group").find("input[data-sid=RATING]").val(index);
4869    }
4870    $this.closest(".votes_block").find(".rating_message").data("message", ratingMessage);
4871  });
4872
4873  $(".bx_filter_input_container input[type=text]").numeric({ allow: "." });
4874
4875  $(".toggle .more_items").on("click", function () {
4876    $(this).closest(".toggle").find(".collapsed").fadeToggle();
4877    $(this).remove();
4878    if (typeof $(this).data("resize") !== "undefined" && $(this).data("resize")) $(window).resize();
4879  });
4880  $(".toggle_menu .more_items").on("click", function () {
4881    $(this).closest(".toggle_menu").find(".collapsed").addClass("clicked_exp");
4882    $(this).remove();
4883  });
4884
4885  // search sync
4886  $(document).on("keyup", ".search-input-div input", function (e) {
4887    var inputValue = $(this).val();
4888    $(".search-input-div input").val(inputValue);
4889
4890    if ($(this).closest("#headerfixed").length) {
4891      if (e.keyCode == 13) $(".search form").submit();
4892    }
4893  });
4894  $(document).on("click", ".search-button-div button", function (e) {
4895    if ($(this).closest("#headerfixed").length) $(".search form").submit();
4896  });
4897
4898  $(document).on(
4899    "click",
4900    ".header-search, .inline-search-hide, .bottom-icons-panel__content-link--search",
4901    function (e) {
4902      //if (window.matchMedia("(min-width: 600px)").matches) {
4903      CloseMobilePhone();
4904
4905      if (typeof $(this).data("type_search") != "undefined" && $(this).data("type_search") == "fixed") {
4906        $(".inline-search-block").addClass("fixed");
4907      }
4908
4909      $(".inline-search-block").toggleClass("show");
4910
4911      if (arAsproOptions["THEME"]["TYPE_SEARCH"] == "fixed") {
4912        if ($(".inline-search-block").hasClass("show")) {
4913          $('<div class="jqmOverlay search"></div>').appendTo("body");
4914          $("body").addClass("overflow-block");
4915          $("body").addClass("jqm-initied");
4916        } else {
4917          $("body").removeClass("jqm-initied");
4918          $("body").removeClass("overflow-block");
4919          $(".jqmOverlay").remove();
4920        }
4921      }
4922
4923      if ($(".inline-search-block").hasClass("show")) {
4924        setTimeout(function () {
4925          $(".inline-search-block.fixed .search-input").focus();
4926        }, 400);
4927      }
4928      // } else {
4929      //   location.href = arAsproOptions["SITE_DIR"] + "search/";
4930      // }
4931    }
4932  );
4933
4934  if ($(".styled-block .row > div.col-md-3").length) {
4935    BX.addCustomEvent("onWindowResize", function (eventdata) {
4936      try {
4937        ignoreResize.push(true);
4938        $(".styled-block .row > div.col-md-3").each(function () {
4939          $(this).css({ height: "", "line-height": "" });
4940          var z = parseInt($(".body_media").css("top"));
4941          if (z > 0) {
4942            var rowHeight = $(this).parents(".row").first().actual("outerHeight");
4943            $(this).css({ height: rowHeight + "px", "line-height": rowHeight + "px" });
4944          }
4945        });
4946      } catch (e) {
4947      } finally {
4948        ignoreResize.pop();
4949      }
4950    });
4951  }
4952
4953  if ($(".order-block").length) {
4954    BX.addCustomEvent("onWindowResize", function (eventdata) {
4955      try {
4956        ignoreResize.push(true);
4957        $(".order-block").each(function () {
4958          var cols = $(this).find(".row > div");
4959          if (cols.length) {
4960            var colFirst = cols.first();
4961            var colLast = cols.last();
4962            var colText = colFirst.find(".text");
4963            var bText = colText.length;
4964            var bOnlyText = cols.length === 1 && bText;
4965            var bPrice = colFirst.find(".price").length;
4966            var z = parseInt($(".body_media").css("top"));
4967
4968            cols.css({ height: "", "padding-top": "", "padding-bottom": "" });
4969            colText.css({ height: "", "padding-top": "", "padding-bottom": "" });
4970            if ((!bPrice && z > 0) || (bPrice && z > 1)) {
4971              var minHeight = 83;
4972
4973              if (!bOnlyText) {
4974                var colLast_height = colLast.outerHeight();
4975                colLast_height = colLast_height >= minHeight ? colLast_height : minHeight;
4976              }
4977
4978              if (bText) {
4979                var colFirst_height = colFirst.outerHeight();
4980                colFirst_height = colFirst_height >= minHeight ? colFirst_height : minHeight;
4981              }
4982
4983              var colMax_height = bText
4984                ? !bOnlyText
4985                  ? colLast_height >= colFirst_height
4986                    ? colLast_height
4987                    : colFirst_height
4988                  : colLast_height
4989                : colFirst_height;
4990
4991              if (!bOnlyText) {
4992                var textPadding = 41 + (colMax_height - colFirst.outerHeight()) / 2;
4993                colLast.find(".btns").css({
4994                  "padding-top": textPadding + "px",
4995                  "padding-bottom": textPadding + "px",
4996                  height: colMax_height + "px",
4997                });
4998              }
4999              if (bText) {
5000                colLast.css({ height: colMax_height + "px" });
5001                var textPadding = 41 + (colMax_height - colText.outerHeight()) / 2;
5002                colText.css({
5003                  "padding-top": textPadding + "px",
5004                  "padding-bottom": textPadding + "px",
5005                  height: colMax_height + "px",
5006                });
5007              }
5008            }
5009          }
5010        });
5011      } catch (e) {
5012      } finally {
5013        ignoreResize.pop();
5014      }
5015    });
5016  }
5017
5018  if ($(".equal-padding").length) {
5019    BX.addCustomEvent("onWindowResize", function (eventdata) {
5020      try {
5021        ignoreResize.push(true);
5022        $(".equal-padding").each(function () {
5023          $(this).find(".text").css({ "padding-top": "0px", "padding-bottom": "0px" });
5024          var equal_block = $(this).siblings(".equals"),
5025            height = $(this).actual("outerHeight");
5026
5027          delta = Math.round((equal_block.actual("outerHeight") - height) / 2);
5028          if (delta)
5029            $(this)
5030              .find(".text")
5031              .css({ "padding-top": delta + "px", "padding-bottom": delta + "px" });
5032        });
5033      } catch (e) {
5034      } finally {
5035        ignoreResize.pop();
5036      }
5037    });
5038  }
5039
5040  $(document).on("click", ".mega-menu .dropdown-menu", function (e) {
5041    e.stopPropagation();
5042  });
5043
5044  $(document).on("click", ".mega-menu .dropdown-toggle.more-items", function (e) {
5045    e.preventDefault();
5046  });
5047
5048  // $(".table-menu .dropdown,.table-menu .dropdown-submenu,.table-menu .dropdown-toggle").on("mouseenter", function () {
5049  //   CheckTopVisibleMenu();
5050  // });
5051
5052  $(document).on(
5053    "mouseenter",
5054    ".header-menu .header-menu__item--dropdown:not(.header-menu__item--wide), .header-menu .header-menu__item--dropdown:not(.header-menu__item--wide) .header-menu__dropdown-item.header-menu__dropdown-item--with-dropdown, .header-menu .header-menu__item--more-items, .header-menu .header-menu__item--more-items .header-menu__dropdown-item--with-dropdown, .header-menu .header-menu__item--more-items .header-menu__item--dropdown.header-menu__item--wide, .header-menu .header-menu__item--more-items .header-menu__item--dropdown.header-menu__item--wide .header-menu__dropdown-item--with-dropdown, .header-menu .header-menu__item--more-items .header-menu__item--dropdown.header-menu__item--wide .header-menu__dropdown-item--with-dropdown .header-menu__wide-submenu-item--with-dropdown",
5055    function (e) {
5056      CheckTopVisibleMenu($(e.currentTarget));
5057    }
5058  );
5059
5060  $(document).on(
5061    "mouseenter",
5062    ".header-menu__item--wide, .header-menu__item--wide .header-menu__dropdown-menu",
5063    function () {
5064      var bannerMenu = $(this).find(".side_banners .owl-carousel-hover");
5065      if (bannerMenu.length) {
5066        bannerMenu.removeClass("owl-carousel-hover").addClass("owl-carousel");
5067        setTimeout(function () {
5068          InitOwlSlider();
5069          bannerMenu.removeClass("loading-state");
5070        }, 1);
5071      }
5072    }
5073  );
5074
5075  $(document).on("mouseenter", ".menu-side-column__item--wide", function () {
5076    var bannerMenu = $(".bottom-banners .owl-carousel-hover");
5077    if (bannerMenu.length) {
5078      bannerMenu.removeClass("owl-carousel-hover").addClass("owl-carousel");
5079      setTimeout(function () {
5080        InitOwlSlider();
5081        bannerMenu.removeClass("loading-state");
5082      }, 1);
5083    }
5084  });
5085  $(".mega-menu .search-item .search-icon, .menu-row #title-search .fa-close").on("click", function (e) {
5086    e.preventDefault();
5087    $(".menu-row #title-search").toggleClass("hide");
5088  });
5089
5090  $(".mega-menu ul.nav .search input").on("keyup", function (e) {
5091    var inputValue = $(this).val();
5092    $(".menu-row > .search input").val(inputValue);
5093    if (e.keyCode == 13) {
5094      $(".menu-row > .search form").submit();
5095    }
5096  });
5097
5098  $(".menu-row > .search input").on("keyup", function (e) {
5099    var inputValue = $(this).val();
5100    $(".mega-menu ul.nav .search input").val(inputValue);
5101    if (e.keyCode == 13) {
5102      $(".menu-row > .search form").submit();
5103    }
5104  });
5105
5106  $(".mega-menu ul.nav .search button").on("click", function (e) {
5107    e.preventDefault();
5108    var inputValue = $(this).parents(".search").find("input").val();
5109    $(".menu-and-search .search input").val(inputValue);
5110    $(".menu-row > .search form").submit();
5111  });
5112
5113  $(".filter .calendar").on("click", function () {
5114    var button = $(this).next();
5115    if (button.hasClass("calendar-icon")) {
5116      button.trigger("click");
5117    }
5118  });
5119
5120  // sliceheights
5121  if ($(".banners-small .item.normal-block").length) $(".banners-small .item.normal-block").sliceHeight();
5122  if ($(".teasers .item").length) $(".teasers .item").sliceHeight();
5123  if ($(".wrap-portfolio-front .row.items > div").length)
5124    $(".wrap-portfolio-front .row.items > div").sliceHeight({ row: ".row.items", item: ".item1" });
5125
5126  SliceHeightBlocks();
5127
5128  // toggle
5129  var $this = this,
5130    previewParClosedHeight = 25;
5131
5132  $("section.toggle > label").prepend($("<i />").addClass("fa fa-plus"));
5133  $("section.toggle > label").prepend($("<i />").addClass("fa fa-minus"));
5134  $("section.toggle.active > p").addClass("preview-active");
5135  $("section.toggle.active > div.toggle-content").slideDown(350, function () {});
5136
5137  $("section.toggle > label").click(function (e) {
5138    var parentSection = $(this).parent(),
5139      parentWrapper = $(this).parents("div.toogle"),
5140      previewPar = false,
5141      isAccordion = parentWrapper.hasClass("toogle-accordion");
5142
5143    if (isAccordion && typeof e.originalEvent != "undefined") {
5144      parentWrapper.find("section.toggle.active > label").trigger("click");
5145    }
5146
5147    parentSection.toggleClass("active");
5148
5149    // Preview Paragraph
5150    if (parentSection.find("> p").get(0)) {
5151      previewPar = parentSection.find("> p");
5152      var previewParCurrentHeight = previewPar.css("height");
5153      previewPar.css("height", "auto");
5154      var previewParAnimateHeight = previewPar.css("height");
5155      previewPar.css("height", previewParCurrentHeight);
5156    }
5157
5158    // Content
5159    var toggleContent = parentSection.find("> div.toggle-content");
5160
5161    if (parentSection.hasClass("active")) {
5162      $(previewPar).animate(
5163        {
5164          height: previewParAnimateHeight,
5165        },
5166        350,
5167        function () {
5168          $(this).addClass("preview-active");
5169        }
5170      );
5171      toggleContent.slideDown(350, function () {});
5172    } else {
5173      $(previewPar).animate(
5174        {
5175          height: previewParClosedHeight,
5176        },
5177        350,
5178        function () {
5179          $(this).removeClass("preview-active");
5180        }
5181      );
5182      toggleContent.slideUp(350, function () {});
5183    }
5184  });
5185
5186  // accordion
5187  $(".accordion-head").on("click", function (e) {
5188    e.preventDefault();
5189    if (!$(this).next().hasClass("collapsing")) {
5190      $(this).toggleClass("accordion-open");
5191      $(this).toggleClass("accordion-close");
5192    }
5193  });
5194
5195  // progress bar
5196  $("[data-appear-progress-animation]").iAppear(
5197    function () {
5198      var $this = $(this);
5199
5200      var delay = $this.attr("data-appear-animation-delay") ? $this.attr("data-appear-animation-delay") : 1;
5201      if (delay > 1) $this.css("animation-delay", delay + "ms");
5202      $this.addClass($this.attr("data-appear-animation"));
5203
5204      setTimeout(function () {
5205        $this.animate(
5206          {
5207            width: $this.attr("data-appear-progress-animation"),
5208          },
5209          1500,
5210          "easeOutQuad",
5211          function () {
5212            $this.find(".progress-bar-tooltip").animate(
5213              {
5214                opacity: 1,
5215              },
5216              500,
5217              "easeOutQuad"
5218            );
5219          }
5220        );
5221      }, delay);
5222    },
5223    {
5224      rootMargin: "-50px 0px -50px 0px",
5225      accX: 0,
5226      accY: -50,
5227    }
5228  );
5229
5230  // portfolio item
5231  $(".item.animated-block").iAppear(function () {
5232    $(this).addClass($(this).data("animation")).addClass("visible");
5233  });
5234
5235  // flexslider appear
5236  $(".appear-block").iAppear(function () {
5237    $(this).removeClass("appear-block");
5238    CheckFlexSlider();
5239    InitFlexSlider();
5240    InitOwlSlider();
5241  });
5242
5243  // js-load-block appear
5244  if ($(".js-load-block").length) {
5245    var objUrl = parseUrlQuery();
5246    var bClearCache = false;
5247    if ("clear_cache" in objUrl) {
5248      if (objUrl.clear_cache == "Y") {
5249        bClearCache = true;
5250      }
5251    }
5252
5253    var items = [];
5254    var bIdle = true;
5255    var insertNextBlockContent = function () {
5256      if (bIdle) {
5257        if (items.length) {
5258          bIdle = false;
5259          var item = items.pop();
5260
5261          item.content = $.trim(item.content);
5262
5263          // remove /bitrix/js/main/core/core_window.js if it was loaded already
5264          if (item.content.indexOf("/bitrix/js/main/core/core_window.") !== -1 && BX.WindowManager) {
5265            item.content = item.content.replace(
5266              /<script src="\/bitrix\/js\/main\/core\/core_window\.[^>]*><\/script>/gm,
5267              ""
5268            );
5269          }
5270
5271          // remove /bitrix/js/currency/core_currency.js if it was loaded already
5272          if (
5273            item.content.indexOf("/bitrix/js/currency/core_currency.") !== -1 &&
5274            typeof BX.Currency === "object" &&
5275            BX.Currency.defaultFormat
5276          ) {
5277            item.content = item.content.replace(
5278              /<script src="\/bitrix\/js\/currency\/core_currency\.[^>]*><\/script>/gm,
5279              ""
5280            );
5281          }
5282
5283          // remove /bitrix/js/main/pageobject/pageobject.js if it was loaded already
5284          if (item.content.indexOf("/bitrix/js/main/pageobject/pageobject.") !== -1 && BX.PageObject) {
5285            item.content = item.content.replace(
5286              /<script src="\/bitrix\/js\/main\/pageobject\/pageobject\.[^>]*><\/script>/gm,
5287              ""
5288            );
5289          }
5290
5291          // remove /bitrix/js/main/polyfill/promise/js/promise.js if it not need
5292          if (
5293            item.content.indexOf("/bitrix/js/main/polyfill/promise/js/promise.") !== -1 &&
5294            typeof window.Promise !== "undefined" &&
5295            window.Promise.toString().indexOf("[native code]") !== -1
5296          ) {
5297            item.content = item.content.replace(
5298              /<script src="\/bitrix\/js\/main\/polyfill\/promise\/js\/promise\.[^>]*><\/script>/gm,
5299              ""
5300            );
5301          }
5302
5303          var ob = BX.processHTML(item.content);
5304
5305          // stop ya metrika webvisor DOM indexer
5306          pauseYmObserver();
5307
5308          item.block.removeAttr("data-file").removeClass("loader_circle");
5309
5310          if (item.block.data("appendTo")) {
5311            item.block.find(item.block.data("appendTo"))[0].innerHTML = ob.HTML;
5312          } else {
5313            if (item.block.find('> div[id*="bx_incl_"]').length) {
5314              item.block.find('> div[id*="bx_incl_"]')[0].innerHTML = ob.HTML;
5315            } else {
5316              item.block[0].innerHTML = ob.HTML;
5317            }
5318          }
5319
5320          BX.ajax.processScripts(ob.SCRIPT);
5321
5322          var eventdata = { action: "jsLoadBlock" };
5323          BX.onCustomEvent("onCompleteAction", [eventdata, item.block]);
5324
5325          // resume ya metrika webvisor
5326          // 500ms
5327          setTimeout(resumeYmObserver, 500);
5328
5329          bIdle = true;
5330          insertNextBlockContent();
5331        }
5332      }
5333    };
5334
5335    $(".js-load-block").iAppear(
5336      function () {
5337        var $this = $(this);
5338
5339        if ($this.data("file")) {
5340          var add_url = bClearCache ? "?clear_cache=Y" : "";
5341          if ($this.data("block")) {
5342            add_url += (bClearCache ? "&" : "?") + "BLOCK=" + $this.data("block");
5343          }
5344
5345          // get content
5346          $.get($this.data("file") + add_url).done(function (html) {
5347            items.push({
5348              block: $this,
5349              content: html,
5350            });
5351
5352            if (items.length == 1) {
5353              setTimeout(insertNextBlockContent, 100);
5354            }
5355          });
5356        }
5357      },
5358      {
5359        rootMargin: isMobile ? "300px 0px 300px 0px" : "150px 0px 150px 0px",
5360        accX: 0,
5361        accY: isMobile ? 300 : 150,
5362      }
5363    );
5364  }
5365
5366  $("a[rel=tooltip]").tooltip();
5367  $("span[data-toggle=tooltip]").tooltip();
5368
5369  $("select.sort").on("change", function () {
5370    location.href = $(this).val();
5371  });
5372
5373  setTimeout(function (th) {
5374    $(".catalog.group.list .item").each(function () {
5375      var th = $(this);
5376      if ((tmp = th.find(".image").outerHeight() - th.find(".text_info").outerHeight()) > 0) {
5377        th.find(".text_info .titles").height(th.find(".text_info .titles").outerHeight() + tmp);
5378      }
5379    });
5380  }, 50);
5381
5382  // ajax tabs
5383
5384  // tabs on front in mobile
5385  $(".items-link-mobile").each(function () {
5386    var _this = $(this),
5387      selectOption = _this.find("option"),
5388      selectOptionLength = selectOption.length,
5389      selectedOption = selectOption.filter(":selected"),
5390      duration = 200; //
5391
5392    _this.hide();
5393    _this.wrap('<div class="select"></div>');
5394    $("<div>", {
5395      class: "new-select",
5396      text: _this.children("option:disabled").text(),
5397    }).insertAfter(_this);
5398
5399    var selectHead = _this.next(".new-select");
5400    $("<div>", {
5401      class: "new-select__list",
5402    }).insertAfter(selectHead);
5403
5404    var selectList = selectHead.next(".new-select__list");
5405    for (var i = 1; i < selectOptionLength; i++) {
5406      $("<div>", {
5407        class: "new-select__item",
5408        html: $("<span>", {
5409          text: selectOption.eq(i).text(),
5410        }),
5411      })
5412        .attr("data-value", selectOption.eq(i).val())
5413        .appendTo(selectList);
5414    }
5415
5416    var selectItem = selectList.find(".new-select__item");
5417    var selectItemFirst = selectList.find(".new-select__item:first-child");
5418    selectList.slideUp();
5419    selectHead.on("click", function () {
5420      if (!$(this).hasClass("on")) {
5421        $(this).addClass("on");
5422        selectList.slideDown(duration);
5423
5424        selectItemCur = selectList.find(".new-select__item.active");
5425
5426        if (!selectItem.hasClass("active")) {
5427          selectItemFirst.addClass("active");
5428          selectItemCur = selectItemFirst;
5429        }
5430
5431        selectItem.on("click", function () {
5432          selectItemCur.removeClass("active");
5433          var chooseItem = $(this).data("value");
5434
5435          $("select").val(chooseItem).attr("selected", "selected");
5436          selectHead.text($(this).find("span").text());
5437          selectHead.attr("data-value", $(this).attr("data-value"));
5438          $(this).addClass("active");
5439          var _this = $(this);
5440          selectList.slideUp(150, function () {
5441            selectHead.removeClass("on");
5442
5443            var index = _this.index();
5444            var curHeadBlock = _this.closest(".head-block");
5445            var indexTab = curHeadBlock.find(".items-link .item-link.active");
5446            var indexActiveTab = indexTab.index();
5447
5448            if (indexActiveTab != index) {
5449              curHeadBlock.find(".items-link .item-link").eq(index).trigger("click");
5450            }
5451          });
5452        });
5453      } else {
5454        $(this).removeClass("on");
5455        selectList.slideUp(duration);
5456      }
5457    });
5458  });
5459
5460  // gallery in list
5461  $(document).on("mouseenter", ".section-gallery-wrapper .section-gallery-wrapper__item", function () {
5462    const _this = $(this);
5463    const index = _this.index();
5464    const nav_items = _this.closest(".image-list-wrapper").find(".section-gallery-nav .section-gallery-nav__item");
5465
5466    _this.siblings().removeClass("active");
5467    _this.addClass("active");
5468
5469    nav_items.removeClass("active");
5470    nav_items.filter(":eq(" + index + ")").addClass("active");
5471  });
5472
5473  $(document).on("click", ".section-gallery-nav .section-gallery-nav__item", function () {
5474    const _this = $(this);
5475    const index = _this.index();
5476    const items = _this.closest(".image-list-wrapper").find(".section-gallery-wrapper .section-gallery-wrapper__item");
5477
5478    _this.siblings().removeClass("active");
5479    _this.addClass("active");
5480
5481    items.removeClass("active");
5482    items.filter(":eq(" + index + ")").addClass("active");
5483  });
5484
5485  // item galery
5486  $(".thumbs .item a").on("click", function (e) {
5487    e.preventDefault();
5488    $(".thumbs .item").removeClass("current");
5489    $(this).closest(".item").toggleClass("current");
5490    $(".slides li" + $(this).attr("href"))
5491      .addClass("current")
5492      .siblings()
5493      .removeClass("current");
5494  });
5495
5496  $("header.fixed .btn-responsive-nav").on("click", function () {
5497    $("html, body").animate({ scrollTop: 0 }, 400);
5498  });
5499
5500  $("body").on("click", ".form .refresh-page", function () {
5501    location.href = location.href;
5502  });
5503
5504  $(document).on("click", ".basket.fly .opener", function () {
5505    if (window.matchMedia("(max-width: 767px)").matches) location.href = arAsproOptions["THEME"]["URL_BASKET_SECTION"];
5506    else {
5507      $(".jqmWindow.right_slide.opened").jqmHide();
5508      $(this).closest(".ajax_basket").toggleClass("opened").removeClass('widget_open').removeClass;
5509
5510    }
5511  });
5512
5513  $(document).on("click", ".basket.fly .close_block", function () {
5514    $(".basket.fly .opener").trigger("click");
5515  });
5516
5517  // show props
5518  $(document).on("click", ".show_props", function () {
5519    $(this).prev(".props_list").stop().slideToggle(333);
5520    $(this).find(".char_title").toggleClass("opened");
5521  });
5522
5523  // animated labels
5524  $(document)
5525    .on("focus", ".fill-animate input,.fill-animate textarea", function () {
5526      $(this).addClass("input-filed");
5527    })
5528    .on("focusout", ".fill-animate input,.fill-animate textarea", function () {
5529      if ("" != $(this).val()) {
5530        $(this).addClass("input-filed");
5531      } else {
5532        $(this).removeClass("input-filed");
5533      }
5534    });
5535
5536  // accordion action
5537  $(".panel-collapse").on("hidden.bs.collapse", function () {
5538    $(this).parent().toggleClass("opened");
5539  });
5540  $(".panel-collapse").on("show.bs.collapse", function () {
5541    $(this).parent().toggleClass("opened");
5542  });
5543
5544  $(document).on("click", ".reload-page", function () {
5545    location.reload(true);
5546  });
5547
5548  // DIGITAL BASKET
5549  // - basket fly close
5550  $(document).on("click", function () {
5551    if ($(".basket.fly").length && $(".ajax_basket").hasClass("opened")) {
5552      $(".ajax_basket").removeClass("opened");
5553    }
5554  });
5555
5556  $(document).on("click", ".basket.fly", function (e) {
5557    e.stopPropagation();
5558  });
5559
5560  // - slide_right close
5561  $(document).on("click", function () {
5562    if ($(".right_slide.opened").length) {
5563      $(".jqmWindow.right_slide.opened").jqmHide();
5564    }
5565  });
5566
5567  $(document).on("click", ".right_slide.opened", function (e) {
5568    e.stopPropagation();
5569  });
5570
5571  // - COUNTER
5572  var timerBasketCounter = false;
5573
5574  // -- keyup input
5575  $(document).on("keydown", ".counter__count", function (e) {
5576    // Allow: backspace, delete, tab, escape, enter and .
5577    if (
5578      $.inArray(e.keyCode, [46, 8, 9, 27, 13, 110, 190]) !== -1 ||
5579      // Allow: Ctrl+A, Command+A
5580      (e.keyCode === 65 && (e.ctrlKey === true || e.metaKey === true)) ||
5581      // Allow: home, end, left, right, down, up
5582      (e.keyCode >= 35 && e.keyCode <= 40)
5583    ) {
5584      // let it happen, don't do anything
5585      return;
5586    }
5587    // Ensure that it is a number and stop the keypress
5588    if ((e.shiftKey || e.keyCode < 48 || e.keyCode > 57) && (e.keyCode < 96 || e.keyCode > 105)) {
5589      e.preventDefault();
5590    }
5591  });
5592  $(document).on("keyup", ".counter__count", function (e) {
5593    var $this = $(this),
5594      counterInputValueNew = $this.val(),
5595      price = $this.closest(".buy_block").find("input[name=PRICE]").val();
5596
5597    Summ($this, counterInputValueNew, price);
5598  });
5599
5600  $("select.region").on("change", function () {
5601    var val = parseInt($(this).val());
5602    if ($("select.city").length) {
5603      if (val) {
5604        $("select.city").removeAttr("disabled");
5605        $("select.city option").hide();
5606        $("select.city option[data-parent_section=" + val + "]").show();
5607      } else $("select.city").attr("disabled", "disabled");
5608    }
5609  });
5610
5611  $("select.city, select.region").on("change", function () {
5612    var _this = $(this),
5613      val = parseInt(_this.val());
5614    if (_this.hasClass("region")) {
5615      $("select.city option:eq(0)").show();
5616      $("select.city").val(0);
5617    }
5618
5619    if ((_this.hasClass("region") && !val) || _this.hasClass("city")) {
5620      $.ajax({
5621        type: "POST",
5622        data: { ID: val },
5623      }).done(function (html) {
5624        var ob = BX.processHTML(html);
5625        $(".ajax_items")[0].innerHTML = ob.HTML;
5626        BX.ajax.processScripts(ob.SCRIPT);
5627      });
5628    }
5629  });
5630
5631  // -- blur input
5632  $(document).on("change", ".counter__count", function () {
5633    BasketCounter($(this));
5634  });
5635
5636  // -- click minus, plus button
5637  $(document).on("click", ".counter__action", function (e) {
5638    e.stopPropagation();
5639    BasketCounter($(this));
5640  });
5641
5642  // - Add2Basket
5643  $(document).on("click", ".to_cart:not(.opt_action)", function (e) {
5644    e.stopPropagation();
5645
5646    var item = $(this).closest("[data-item]");
5647    var _this = $(this);
5648    var itemData = item.data("item");
5649    var buyBlock = item.find(".buy_block");
5650    var buttonToCart = buyBlock.find(".to_cart");
5651    var itemQuantity = parseFloat(buttonToCart.data("quantity"));
5652    if (isNaN(itemQuantity) || itemQuantity <= 0) {
5653      itemQuantity = 1;
5654    }
5655    var countItem = $(".basket .count").length ? parseInt($(".basket .count").first().text()) : 0;
5656    $(".basket .count")
5657      .text(countItem + 1)
5658      .removeClass("empted");
5659
5660    var bBasketTop =
5661      typeof arAsproOptions["THEME"]["ORDER_BASKET_VIEW"] !== "undefined" &&
5662      $.trim(arAsproOptions["THEME"]["ORDER_BASKET_VIEW"]) === "HEADER" &&
5663      $(".basket.top").length;
5664    var bBasketFly =
5665      typeof arAsproOptions["THEME"]["ORDER_BASKET_VIEW"] !== "undefined" && !bBasketTop && $(".basket.fly").length;
5666
5667    if (itemData && !isNaN(itemData.ID) && parseInt(itemData.ID) > 0) {
5668      if (typeof arBasketItems === "object" && typeof arBasketItems[itemData.ID] !== "object") {
5669        arBasketItems[itemData.ID] = { ID: itemData.ID, QUANTITY: itemQuantity };
5670      }
5671
5672      $.ajax({
5673        url: arAsproOptions["SITE_DIR"] + "include/footer/basket.php",
5674        type: "POST",
5675        data: { itemData: itemData, quantity: itemQuantity },
5676      }).done(function (html) {
5677        buyBlock.addClass("in");
5678
5679        var eventdata = { action: "loadForm" };
5680        BX.onCustomEvent("onCompleteAction", [eventdata, _this[0]]);
5681
5682        if (bBasketTop) {
5683          $(".ajax_basket").replaceWith(html);
5684        } else if (bBasketFly) {
5685          $(".ajax_basket").html($($.trim(html)).html());
5686        }
5687
5688        // show cart or notice
5689        if (typeof JNoticeSurface === "undefined") {
5690          if (bBasketTop) {
5691            $(".header-cart").addClass("opened");
5692
5693            if (typeof headerCartHideTimer !== "undefined") {
5694              clearTimeout(headerCartHideTimer);
5695            }
5696
5697            headerCartHideTimer = setTimeout(function () {
5698              $(".header-cart").removeClass("opened");
5699            }, 2000);
5700          } else if (bBasketFly) {
5701            setTimeout(function () {
5702              if (!$(".ajax_basket").hasClass("opened")) {
5703                $(".ajax_basket").addClass("opened");
5704              }
5705            }, 50);
5706          }
5707        } else {
5708          JNoticeSurface.get().onAdd2cart([item[0]]);
5709        }
5710
5711        var eventdata = { action: "loadBasket" };
5712        BX.onCustomEvent("onCompleteAction", [eventdata, $(html)]);
5713
5714        if (arAsproOptions["THEME"]["USE_SALE_GOALS"] != "N") {
5715          var eventdata = { goal: "goal_basket_add", params: { itemData: itemData, quantity: itemQuantity } };
5716          BX.onCustomEvent("onCounterGoals", [eventdata]);
5717        }
5718      });
5719    } else {
5720      $(this).parent().removeClass("loadings");
5721      return;
5722    }
5723  });
5724
5725  // - Remove9Basket
5726  $(document).on("click", ".remove", function (e) {
5727    e.stopPropagation();
5728
5729    var item = $(this).closest("[data-item]");
5730    var itemData = item.data("item");
5731    var bRemove = "Y";
5732    var bRemoveAll = $.trim($(this).closest("[data-remove_all]").data("remove_all")) === "Y" ? "Y" : false;
5733    var getCurUri = $.trim($("input[name=getPageUri]").val());
5734    var countItem = $(".basket .count").length
5735      ? parseInt($(".basket .count").first().text())
5736      : $(".basket.default").length
5737      ? $(".basket.default .cart__item").length
5738      : 0;
5739    var bOneItem = countItem - 1 <= 0;
5740    var scrollTop = $(".basket.fly").length
5741      ? $(".basket.fly .items_wrap").scrollTop()
5742      : $(".header-cart .basket.top").length
5743      ? $(".header-cart .basket.top .items").scrollTop()
5744      : "";
5745
5746    var bBasketTop =
5747      typeof arAsproOptions["THEME"]["ORDER_BASKET_VIEW"] !== "undefined" &&
5748      $.trim(arAsproOptions["THEME"]["ORDER_BASKET_VIEW"]) === "HEADER" &&
5749      $(".basket.top").length;
5750    var bBasketFly =
5751      typeof arAsproOptions["THEME"]["ORDER_BASKET_VIEW"] !== "undefined" && !bBasketTop && $(".basket.fly").length;
5752
5753    if (bRemoveAll) {
5754      arBasketItems = [];
5755    } else if (typeof arBasketItems === "object" && itemData && typeof arBasketItems[itemData.ID] === "object") {
5756      delete arBasketItems[itemData.ID];
5757    }
5758
5759    var _ajax = function () {
5760      $.ajax({
5761        url: arAsproOptions["SITE_DIR"] + "include/footer/basket.php",
5762        type: "POST",
5763        data: { itemData: itemData, remove: bRemove, removeAll: bRemoveAll },
5764      }).done(function (html) {
5765        if (bBasketTop) {
5766          $(".ajax_basket").replaceWith(html);
5767        } else if (bBasketFly) {
5768          $(".ajax_basket").html($($.trim(html)).html());
5769          $(".basket.fly .items_wrap").scrollTop(scrollTop);
5770        }
5771
5772        var eventdata = { action: "loadBasket" };
5773        BX.onCustomEvent("onCompleteAction", [eventdata, $(html)]);
5774
5775        if (getCurUri) {
5776          $.ajax({
5777            url: getCurUri,
5778            type: "POST",
5779          }).done(function (html) {
5780            if ($(".basket.default").length) {
5781              $(".basket.default").html(html);
5782            }
5783          });
5784        }
5785
5786        if (arAsproOptions["THEME"]["USE_SALE_GOALS"] != "N") {
5787          var eventdata = {
5788            goal: "goal_basket_remove",
5789            params: { itemData: itemData, remove: bRemove, removeAll: bRemoveAll },
5790          };
5791          BX.onCustomEvent("onCounterGoals", [eventdata]);
5792        }
5793      });
5794    };
5795
5796    if ((typeof itemData !== "undefined" && !isNaN(itemData.ID) && itemData.ID > 0) || bRemoveAll) {
5797      if (bRemoveAll) {
5798        $(".buy_block").removeClass("in");
5799        $(".basket .count").text(0).addClass("empted");
5800      } else {
5801        $(".basket .count")
5802          .text(countItem - 1)
5803          .removeClass("empted");
5804
5805        $("[data-item]").each(function () {
5806          if ($(this).data("item").ID == itemData.ID) {
5807            $(this).find(".buy_block").removeClass("in").find(".to_cart").data("quantity", 0);
5808            $(this).find(".buy_block").find(".counter__count").val(1);
5809          }
5810        });
5811      }
5812
5813      if (bOneItem || bRemoveAll) {
5814        $(".remove.all").remove();
5815
5816        $(".basket_wrap").fadeOut(200);
5817        setTimeout(function () {
5818          $(".basket .basket_empty").fadeIn(200);
5819          $(".basket.fly .wrap").addClass("empty-basket");
5820        }, 200);
5821        setTimeout(_ajax, 400);
5822      } else {
5823        item.animate({ opacity: 0 }, 200).slideUp(200, function () {
5824          _ajax();
5825        });
5826      }
5827    } else {
5828      return;
5829    }
5830  });
5831
5832  $(document).on("click", ".print", function () {
5833    window.print();
5834  });
5835
5836  $(".choise").on("click", function () {
5837    var $this = $(this);
5838    if (typeof $this.data("block") !== "undefined") {
5839      var block = $this.attr("data-block");
5840
5841      try {
5842        var $block = BX(block) ? $("#" + block) : $(".detail-block." + block);
5843      } catch (e) {
5844        var $block = $(block);
5845      }
5846
5847      if ($block.length) {
5848        if ($block.closest(".tab-pane").length) {
5849          var offset = -206;
5850          if (typeof arAsproOptions !== "undefined") {
5851            offset = window.matchMedia("(max-width:991px)").matches
5852              ? arAsproOptions.THEME.HEADER_MOBILE_FIXED !== "Y" || arAsproOptions.THEME.HEADER_MOBILE_SHOW !== "ALWAYS"
5853                ? -187 + 62
5854                : -187
5855              : arAsproOptions.THEME.TOP_MENU_FIXED !== "Y"
5856              ? -206 + 81
5857              : -206;
5858          }
5859
5860          $block.data("offset", offset);
5861          $('.ordered-block a[href="#' + $block.closest(".tab-pane").attr("id") + '"]').click();
5862        }
5863
5864        scrollToBlock($block);
5865      }
5866    }
5867  });
5868
5869  // touch event
5870  document.addEventListener(
5871    "touchend",
5872    function (event) {
5873      if (!$(event.target).closest(".menu-item").length && !$(event.target).hasClass("menu-item")) {
5874        $(".mega-menu .dropdown-menu").css({ display: "none", opacity: 0 });
5875        $(".menu-item").removeClass("hover");
5876      }
5877      if (!$(event.target).closest(".menu.topest").length) {
5878        $(".menu.topest").css({ overflow: "hidden" });
5879        $(".menu.topest > li").removeClass("hover");
5880      }
5881      if (!$(event.target).closest(".full.has-child").length) {
5882        $(".menu_top_block.catalog_block li").removeClass("hover");
5883      }
5884      // if(!$(event.target).closest('.basket_block').length){
5885      //   $('.basket_block .link').removeClass('hover');
5886      //   $('.basket_block .basket_popup_wrapp').slideUp();
5887      // }
5888      // if(!$(event.target).closest('.catalog_item').length){
5889      //   var tabsContentUnhoverHover = $('.tab:visible').attr('data-unhover') * 1;
5890      //   $('.tab:visible').stop().animate({'height': tabsContentUnhoverHover}, 100);
5891      //   $('.tab:visible').find('.catalog_item').removeClass('hover');
5892      //   $('.tab:visible').find('.catalog_item .buttons_block').stop().fadeOut(233);
5893      //   if($('.catalog_block').length){
5894      //     $('.catalog_block').find('.catalog_item_wrapp').removeClass('hover');
5895      //     $('.catalog_block').find('.catalog_item').removeClass('hover');
5896      //   }
5897      // }
5898    },
5899    false
5900  );
5901
5902  touchMenu(".mega-menu .menu-item");
5903  touchTopMenu(".menu.topest li");
5904});
5905
5906function touchMenu(selector) {
5907  if (isMobile) {
5908    if ($(selector).length) {
5909      $(selector).each(function () {
5910        var th = $(this);
5911        th.on("touchend", function (e) {
5912          var _th = $(e.target).closest(".menu-item");
5913
5914          $(".menu.topest > li").removeClass("hover");
5915          $(".menu_top_block.catalog_block li").removeClass("hover");
5916
5917          if (_th.find(".dropdown-menu").length && !_th.hasClass("hover")) {
5918            e.preventDefault();
5919            e.stopPropagation();
5920            _th.siblings().removeClass("hover");
5921            _th.addClass("hover");
5922            $(".menu-row .dropdown-menu").css({ display: "none", opacity: 0 });
5923            if (_th.hasClass("menu-item")) {
5924              _th.closest(".dropdown-menu").css({ display: "block", opacity: 1 });
5925            }
5926            if (_th.find("> .wrap > .dropdown-menu")) {
5927              _th.find("> .wrap > .dropdown-menu").css({ display: "block", opacity: 1 });
5928            } else if (_th.find("> .dropdown-menu")) {
5929              _th.find("> .dropdown-menu").css({ display: "block", opacity: 1 });
5930            }
5931            CheckTopVisibleMenu();
5932          } else {
5933            var href = $(e.target).attr("href") ? $(e.target).attr("href") : $(e.target).closest("a").attr("href");
5934            if (href && href !== "undefined") location.href = href;
5935          }
5936        });
5937      });
5938    }
5939  } else {
5940    $(selector).off();
5941  }
5942}
5943
5944function touchTopMenu(selector) {
5945  if (isMobile) {
5946    if ($(selector).length) {
5947      $(selector).each(function () {
5948        var th = $(this);
5949        th.on("touchend", function (e) {
5950          var _th = $(e.target).closest("li");
5951
5952          $(".menu-item").removeClass("hover");
5953          $(".menu-item .dropdown-menu").css({ display: "none", opacity: 0 });
5954          $(".menu_top_block.catalog_block li").removeClass("hover");
5955
5956          if (_th.hasClass("more") && !_th.hasClass("hover")) {
5957            e.preventDefault();
5958            e.stopPropagation();
5959            _th.siblings().removeClass("hover");
5960            _th.addClass("hover");
5961            $(".menu.topest").css({ overflow: "visible" });
5962          } else {
5963            var href = $(e.target).attr("href") ? $(e.target).attr("href") : $(e.target).closest("a").attr("href");
5964            if (href && href !== "undefined") location.href = href;
5965          }
5966        });
5967      });
5968    }
5969  } else {
5970    $(selector).off();
5971  }
5972}
5973
5974scrollToBlock = function (block) {
5975  if ($(block).length) {
5976    scrollToBlock.last = block;
5977
5978    if (typeof $(block).data("toggle") !== "undefined") {
5979      $(block).click();
5980    }
5981
5982    var offset = -81 - 64;
5983    if (typeof $(block).data("offset") !== "undefined") {
5984      offset = $(block).data("offset");
5985    } else {
5986      if (typeof arAsproOptions !== "undefined") {
5987        offset = window.matchMedia("(max-width:991px)").matches
5988          ? arAsproOptions.THEME.HEADER_MOBILE_FIXED !== "Y" || arAsproOptions.THEME.HEADER_MOBILE_SHOW !== "ALWAYS"
5989            ? -43
5990            : -62 - 43
5991          : arAsproOptions.THEME.TOP_MENU_FIXED !== "Y"
5992          ? -43
5993          : -81 - 43;
5994
5995        if ($(block).hasClass("drag-block")) {
5996          offset += 43;
5997        }
5998      }
5999    }
6000
6001    offset = $(block).offset().top + offset;
6002
6003    $("body").addClass("scrolling-state");
6004    $("body, html").animate({ scrollTop: offset }, 500);
6005    setTimeout(function () {
6006      $("body").removeClass("scrolling-state");
6007    }, 500);
6008  }
6009};
6010
6011scrollToBlock.rescroll = function () {
6012  if (typeof scrollToBlock.last !== "undefined") {
6013    scrollToBlock(scrollToBlock.last);
6014  }
6015};
6016
6017// DIGITAL BASKET
6018function number_format(number, decimals, dec_point, thousands_sep) {
6019  number = (number + "").replace(/[^0-9+\-Ee.]/g, "");
6020  var n = !isFinite(+number) ? 0 : +number,
6021    prec = !isFinite(+decimals) ? 0 : Math.abs(decimals),
6022    sep = typeof thousands_sep === "undefined" ? "," : thousands_sep,
6023    dec = typeof dec_point === "undefined" ? "." : dec_point,
6024    s = "",
6025    toFixedFix = function (n, prec) {
6026      var k = Math.pow(10, prec);
6027      return "" + (Math.round(n * k) / k).toFixed(prec);
6028    };
6029
6030  // Fix for IE parseFloat(0.55).toFixed(0) = 0;
6031  s = (prec ? toFixedFix(n, prec) : "" + Math.round(n)).split(".");
6032
6033  if (s[0].length > 3) {
6034    s[0] = s[0].replace(/\B(?=(?:\d{3})+(?!\d))/g, sep);
6035  }
6036
6037  if ((s[1] || "").length < prec) {
6038    s[1] = s[1] || "";
6039    s[1] += new Array(prec - s[1].length + 1).join("0");
6040  }
6041
6042  return s.join(dec);
6043}
6044
6045function setBasketItemsClasses() {
6046  if (typeof arBasketItems !== "undefined" && typeof arBasketItems !== "string" && arBasketItems) {
6047    if (Object.keys(arBasketItems).length) {
6048      for (var key in arBasketItems) {
6049        $("[data-item]").each(function () {
6050          if ($(this).data("id") == key) {
6051            $(this).find(".buy_block").addClass("in");
6052            $(this).find(".buy_block .counter__count").val(arBasketItems[key].QUANTITY);
6053          if ($(this).find("input[name=buy_services_"+key+"]")) {
6054            $(this).find("input[name=buy_services_"+key+"]").prop("checked", "checked");
6055          }
6056          }
6057        });
6058      }
6059    }
6060  }
6061}
6062function setCompareItemsClass() {
6063  if (typeof arAsproOptions === "object" && arAsproOptions && arAsproOptions["COMPARE_ITEMS"]) {
6064    if (arAsproOptions["COMPARE_ITEMS"].length > 0) {
6065      for (var key in arAsproOptions["COMPARE_ITEMS"]) {
6066        $(".js-item-action[data-action='compare']").each(function () {
6067          if ($(this).data("item_compare") && $(this).data("item_compare").ID == arAsproOptions["COMPARE_ITEMS"][key]) {
6068            $(this).parent().addClass("active");
6069            $(this).addClass("active");
6070            $(this).attr("title", $(this).data("title_compared"));
6071            if ($(this).find(".info-buttons__item-text").length) {
6072              $(this).find(".info-buttons__item-text").text($(this).data("title_compared"));
6073            }
6074          }
6075        });
6076      }
6077    }
6078  }
6079}
6080
6081function Summ(el, counterInputValueNew, price) {
6082  if (counterInputValueNew <= 0) {
6083    counterInputValueNew = 1;
6084  }
6085
6086  var summ = number_format(counterInputValueNew * price, 0, ".", " "),
6087    allSumm = 0;
6088
6089  el.closest(".cart")
6090    .find(".cart__item")
6091    .each(function () {
6092      var $this = $(this),
6093        price = parseFloat($this.find("input[name=PRICE]").val()),
6094        count = parseFloat($this.find(".counter__count").val());
6095
6096      if (count <= 0) {
6097        count = 1;
6098      }
6099
6100      if (!isNaN(price) && !isNaN(count)) {
6101        allSumm += count * price;
6102      }
6103    });
6104
6105  allSumm = number_format(parseFloat(allSumm), 0, ".", " ");
6106
6107  el.closest(".cart__item").find(".cart__item-summ .price_val").text(summ);
6108  el.closest(".basket").find(".foot .cart-total__value").text(allSumm);
6109}
6110
6111var timerBasketUpdate = false;
6112// - COUNTER
6113BasketCounter = function (el) {
6114  var elClass = $.trim(el.attr("class")),
6115    bClassMinus = elClass.indexOf("counter__action--minus") > -1,
6116    bClassPlus = elClass.indexOf("counter__action--plus") > -1,
6117    bClassCount = elClass.indexOf("counter__count") > -1,
6118    getCurUri = $.trim($("input[name=getPageUri]").val()),
6119    buyBlock = el.closest(".buy_block"),
6120    buttonToCart = buyBlock.find(".to_cart"),
6121    counterWrapper = el.closest(".counter"),
6122    counterInput = counterWrapper.find(".counter__count"),
6123    counterInputValue = parseFloat($.trim(counterInput.val())),
6124    price = parseFloat(buyBlock.find("input[name=PRICE]").val()),
6125    counterInputMaxCount = Math.pow(10, parseInt(counterInput.attr("maxlength"))) - 1,
6126    bAjax = el.closest(".basket").length || counterWrapper.hasClass("js-ajax") ? true : false;
6127  var bBasket = el.closest(".basket").length;
6128
6129  // class minus button
6130  if (bClassMinus) {
6131    var counterInputValueNew = counterInputValue - 1;
6132
6133    if (counterInputValueNew <= 0) {
6134      counterInputValueNew = 1;
6135    }
6136
6137    counterInput.val(counterInputValueNew);
6138
6139    if (bAjax) {
6140      Summ(el, counterInputValueNew, price);
6141
6142      if (timerBasketUpdate) {
6143        clearTimeout(timerBasketUpdate);
6144        timerBasketUpdate = false;
6145      }
6146
6147      timerBasketUpdate = setTimeout(function () {
6148        BasketUpdate(el, counterInputValueNew, bBasket);
6149        timerBasketUpdate = false;
6150      }, 700);
6151    }
6152  }
6153  // class plus button
6154  else if (bClassPlus) {
6155    var counterInputValueNew = counterInputValue + 1;
6156
6157    if (counterInputValueNew > counterInputMaxCount) {
6158      counterInputValueNew = counterInputMaxCount;
6159    }
6160
6161    counterInput.val(counterInputValueNew);
6162
6163    if (bAjax) {
6164      Summ(el, counterInputValueNew, price);
6165
6166      if (timerBasketUpdate) {
6167        clearTimeout(timerBasketUpdate);
6168        timerBasketUpdate = false;
6169      }
6170
6171      timerBasketUpdate = setTimeout(function () {
6172        BasketUpdate(el, counterInputValueNew, bBasket);
6173        timerBasketUpdate = false;
6174      }, 700);
6175    }
6176  }
6177  // class input
6178  else if (bClassCount) {
6179    var counterInputValueNew = counterInputValue;
6180
6181    if (counterInputValueNew <= 0 || isNaN(counterInputValueNew)) {
6182      counterInputValueNew = 1;
6183    }
6184    el.val(counterInputValueNew);
6185
6186    if (bAjax) {
6187      BasketUpdate(el, counterInputValueNew, bBasket);
6188    }
6189  }
6190
6191  if (!getCurUri && !el.closest(".basket.fly").length) {
6192    buttonToCart.data("quantity", counterInputValueNew);
6193  }
6194};
6195
6196BasketUpdate = function (el, counterInputValueNew, actualCounter) {
6197  var itemData = el.closest("[data-item]").data("item");
6198  var itemData =
6199    typeof arBasketItems === "object" && typeof arBasketItems[itemData.ID] === "object"
6200      ? arBasketItems[itemData.ID]
6201      : itemData;
6202  var getCurUri = $.trim($("input[name=getPageUri]").val());
6203  var scrollTop = $(".basket.fly").length
6204    ? $(".basket.fly .items_wrap").scrollTop()
6205    : $(".header-cart .basket.top").length
6206    ? $(".header-cart .basket.top .items").scrollTop()
6207    : "";
6208
6209  var bBasketTop =
6210    typeof arAsproOptions["THEME"]["ORDER_BASKET_VIEW"] !== "undefined" &&
6211    $.trim(arAsproOptions["THEME"]["ORDER_BASKET_VIEW"]) === "HEADER" &&
6212    $(".basket.top").length;
6213  var bBasketFly =
6214    typeof arAsproOptions["THEME"]["ORDER_BASKET_VIEW"] !== "undefined" && !bBasketTop && $(".basket.fly").length;
6215
6216  if (typeof itemData != "undefined" && !isNaN(itemData.ID) && itemData.ID > 0) {
6217    $.ajax({
6218      url: arAsproOptions["SITE_DIR"] + "include/footer/basket.php",
6219      type: "POST",
6220      data: { itemData: itemData, quantity: counterInputValueNew },
6221    }).done(function (html) {
6222      if (typeofExt(arBasketItems) === "object" || typeofExt(arBasketItems) === "array") {
6223        if (typeofExt(arBasketItems[itemData.ID]) === "object") {
6224          arBasketItems[itemData.ID]["QUANTITY"] = counterInputValueNew;
6225        }
6226      }
6227
6228      if (bBasketTop) {
6229        $(".ajax_basket").replaceWith(html);
6230      } else if (bBasketFly) {
6231        $(".ajax_basket").html($($.trim(html)).html());
6232        $(".basket.fly .items_wrap").scrollTop(scrollTop);
6233      }
6234
6235      var eventdata = { action: "loadBasket" };
6236      BX.onCustomEvent("onCompleteAction", [eventdata, $(html)]);
6237
6238      if (getCurUri) {
6239        $.ajax({
6240          url: getCurUri,
6241          type: "POST",
6242        }).done(function (html) {
6243          if ($(".basket.default").length) {
6244            $(".basket.default").html(html);
6245          }
6246        });
6247      }
6248    });
6249  } else {
6250    return;
6251  }
6252};
6253
6254CheckTabActive = function () {};
6255
6256/* parallax bg */
6257ParallaxBg = function () {
6258  if ($("*[data-type=parallax-bg]").length) {
6259    var x = $(window).scrollTop() / $(document).height();
6260    x = parseInt(-x * 280);
6261    $("*[data-type=parallax-bg]")
6262      .stop()
6263      .animate({ "background-position-y": x + "px" }, 400, "swing");
6264  }
6265};
6266
6267// Events
6268var timerScroll = false,
6269  ignoreScroll = [],
6270  documentScrollTopLast = $(document).scrollTop(),
6271  documentScrollTop = documentScrollTopLast;
6272$(window).scroll(function () {
6273  documentScrollTop = $(document).scrollTop();
6274
6275  if (!ignoreScroll.length) {
6276    if (timerScroll) {
6277      clearTimeout(timerScroll);
6278      timerScroll = false;
6279    }
6280    timerScroll = setTimeout(function () {
6281      BX.onCustomEvent("onWindowScroll", false);
6282    }, 100);
6283  }
6284
6285  documentScrollTopLast = $(document).scrollTop();
6286});
6287
6288var timerResize = false,
6289  ignoreResize = [];
6290
6291$(window).resize(function () {
6292  documentScrollTop = $(document).scrollTop();
6293
6294  CheckScrollToTop();
6295  CheckTopMenuPadding();
6296  CheckTopMenuOncePadding();
6297  CheckSearchWidth();
6298
6299  if (!ignoreResize.length) {
6300    if (timerResize) {
6301      clearTimeout(timerResize);
6302      timerResize = false;
6303    }
6304    timerResize = setTimeout(function () {
6305      BX.onCustomEvent("onWindowResize", false);
6306    }, 100);
6307  }
6308
6309  if (
6310    typeof arAsproOptions !== "undefined" &&
6311    arAsproOptions["THEME"] &&
6312    arAsproOptions["THEME"]["COMPACT_FOOTER_MOBILE"] == "Y"
6313  ) {
6314    if (window.matchMedia("(max-width:767px)").matches) {
6315      $("footer").addClass("mobile");
6316      $(".bottom-menu .items>.wrap_compact_mobile").addClass("accordion-body collapse");
6317      $(".bottom-menu .items>.item-link").attr("data-toggle", "collapse");
6318    } else {
6319      $("footer").removeClass("mobile");
6320      $(".bottom-menu .items>.wrap_compact_mobile").removeClass("accordion-body collapse");
6321      $(".bottom-menu .items>.item-link").removeAttr("data-toggle");
6322    }
6323  }
6324
6325  documentScrollTopLast = $(document).scrollTop();
6326});
6327
6328BX.addCustomEvent("onWindowScroll", function (eventdata) {
6329  try {
6330    ignoreScroll.push(true);
6331    ParallaxBg();
6332
6333    if (arAsproOptions["THEME"]["TYPE_SEARCH"] != "fixed") {
6334      if (!$("header > .top-block").length) {
6335        var height_block = 0,
6336          scrollVal = $(window).scrollTop();
6337        height_block = $(".logo_and_menu-row").actual("outerHeight");
6338        if (!scrollVal) {
6339          $(".inline-search-block").css({
6340            height: height_block,
6341            "line-height": height_block - 4 + "px",
6342            top: -height_block,
6343          });
6344        }
6345      }
6346    }
6347
6348    //CheckTopMenuDotted();
6349  } catch (e) {
6350  } finally {
6351    ignoreScroll.pop();
6352  }
6353});
6354
6355BX.addCustomEvent("onWindowResize", function (eventdata) {
6356  try {
6357    ignoreResize.push(true);
6358
6359    CheckHeaderFixedMenu();
6360    CheckTopMenuDotted();
6361    CheckTopVisibleMenu();
6362    CheckFlexSlider();
6363    CheckMainBannerSliderVText($(".banners-big .flexslider"));
6364    CheckObjectsSizes();
6365
6366    if (funcDefined("CoverPlayer")) {
6367      CoverPlayer();
6368    }
6369
6370    verticalAlign();
6371    CheckTabActive();
6372    setTimeout(function () {
6373      createTableCompare(
6374        $(".main-block .items .title-block:not(.clone) .item"),
6375        $(".prop_title_table"),
6376        $(".main-block .prop_title_table .item.clone")
6377      );
6378    }, 100);
6379    SliceHeightBlocks();
6380
6381    if (funcDefined("checkMobileFilter")) {
6382      checkMobileFilter();
6383    }
6384
6385    if (window.matchMedia("(min-width: 992px)").matches) {
6386      CloseMobileMenu();
6387      CloseMobilePhone();
6388    }
6389
6390    if (window.matchMedia("(min-width:768px)").matches) {
6391      closeFullscreenMap();
6392    }
6393  } catch (e) {
6394  } finally {
6395    ignoreResize.pop();
6396  }
6397});
6398
6399BX.addCustomEvent("onSlide", function (eventdata) {
6400  try {
6401    ignoreResize.push(true);
6402
6403    if (eventdata) {
6404      var slider = eventdata.slider;
6405      var slideClass = ".banners-big__item";
6406      var jsDots = $(slider).siblings(".owl-carousel__dots--line");
6407      if (jsDots.length) {
6408        if (eventdata.data) {
6409          if (eventdata.data.relatedTarget) {
6410            var dotScroll = jsDots.find(".owl-carousel__dot-scroll");
6411            var dotsWidth = jsDots.width();
6412            if (dotScroll.length) {
6413              var owlOptions = eventdata.data.relatedTarget;
6414
6415              if (owlOptions) {
6416                var itemsCount = owlOptions._items.length;
6417                var itemsInRow = owlOptions.settings.items;
6418                var currentItem = owlOptions._current; // + 1;
6419
6420                //orig old
6421                //currentItem = currentItem < itemsInRow  ? itemsCount + itemsInRow - 1 : currentItem;
6422                //var offset = ((currentItem - itemsInRow) / itemsCount) * dotsWidth;
6423
6424                //new by use count clones in slider
6425                var clonesInStart = Math.ceil(itemsCount / 2);
6426                currentItem = currentItem < clonesInStart ? itemsCount + clonesInStart - 1 : currentItem;
6427                currentItem = currentItem === itemsCount + clonesInStart ? clonesInStart : currentItem;
6428                var offset = ((currentItem - clonesInStart) / itemsCount) * dotsWidth;
6429
6430                var styles = {
6431                  width: dotsWidth / itemsCount + "px",
6432                  display: "block",
6433                  left: offset,
6434                };
6435
6436                dotScroll.css(styles);
6437              }
6438            }
6439          }
6440        }
6441      }
6442      if (slider) {
6443        // add classes .curent & .shown to slide
6444        slider.find(slideClass).removeClass("current");
6445        var curSlideIndex = eventdata.data.item.index;
6446        var curSlide = slider.find(".owl-item:eq(" + curSlideIndex + ")" + " " + slideClass);
6447
6448        curSlide.addClass("current");
6449        curSlide.addClass("shown");
6450        slider.resize();
6451
6452        if (slider.closest(".blocks").length)
6453          slider.closest(".blocks").find(".flex-direction-nav li").addClass("initied");
6454
6455        if (slider.closest(".wraps").length)
6456          slider.closest(".wraps").find(".flex-direction-nav li").addClass("initied");
6457
6458        if (!slider.find(".flex-control-nav li").length && slider.hasClass("normal")) {
6459          slider.find(".flex-direction-nav li a").addClass("flex-disabled");
6460        }
6461
6462        if (slider.closest(".banners-big").length) {
6463          //nav flex color
6464          slider.find(".flex-control-nav li").removeClass();
6465
6466          // header color
6467          $("header").removeClass("light dark");
6468          if (typeof curSlide.data("color") != "undefined") {
6469            $("header").addClass(curSlide.data("color"));
6470          }
6471
6472          // logo color
6473          if (typeof window.headerLogo !== 'undefined') {
6474            window.headerLogo.setColorOfBanner(curSlide[0]);
6475          }
6476        }
6477
6478        if (
6479          !slider.hasClass("flexslider-init-slice") &&
6480          slider.hasClass("nav-title") &&
6481          $(".gallery-block").closest(".tab-pane").hasClass("active")
6482        ) {
6483          slider.find(".item").sliceHeight({ lineheight: -3 });
6484          slider.addClass("flexslider-init-slice");
6485        }
6486
6487        if (slider.find(".flex-direction-nav").length) {
6488          if (slider.find(".flex-direction-nav").find("a.flex-disabled").length)
6489            slider.find(".flex-direction-nav").removeClass("opacity1").addClass("opacity0");
6490          else slider.find(".flex-direction-nav").removeClass("opacity0").addClass("opacity1");
6491        }
6492      }
6493    }
6494  } catch (e) {
6495  } finally {
6496    ignoreResize.pop();
6497  }
6498});
6499
6500BX.addCustomEvent("onSlideBefore", function (eventdata) {
6501  try {
6502    ignoreResize.push(true);
6503    if (eventdata) {
6504      var slider = eventdata.slider;
6505      if (slider) {
6506        if (slider.closest(".banners-big").length) {
6507          setTimeout(function () {
6508            var curSlide = slider.find(".banners-big__item.current");
6509
6510            //nav flex color
6511            slider.find(".flex-control-nav li").removeClass();
6512
6513            // header color
6514            $("header").removeClass("light dark");
6515            if (typeof curSlide.data("color") != "undefined") {
6516              slider.find(".flex-control-nav li").addClass(curSlide.data("color"));
6517              $("header").addClass(curSlide.data("color"));
6518            }
6519
6520            // logo color
6521            if (typeof window.headerLogo !== 'undefined') {
6522              window.headerLogo.setColorOfBanner(curSlide[0]);
6523            }
6524          }, 100);
6525        } else if (slider.hasClass("top-bigs")) {
6526          setTimeout(function () {
6527            var index = slider.find(".item.flex-active-slide").data("slide_key");
6528            $(".bxSlider.top-small .slides").data("bxSlider").goToSlide(index);
6529            $(".bxSlider.top-small .slides li").removeClass("flex-active-slide");
6530            $('.bxSlider.top-small .slides li[data-slide_key="' + index + '"]').addClass("flex-active-slide");
6531          }, 100);
6532        }
6533      }
6534    }
6535  } catch (e) {
6536  } finally {
6537    ignoreResize.pop();
6538  }
6539});
6540
6541BX.addCustomEvent("onSlideEnd", function (eventdata) {
6542  try {
6543    ignoreResize.push(true);
6544    if (eventdata) {
6545      var slider = eventdata.slider;
6546    }
6547  } catch (e) {
6548  } finally {
6549    ignoreResize.pop();
6550  }
6551});
6552
6553var onCaptchaVerifyinvisible = function (response) {
6554  $(".g-recaptcha:last").each(function () {
6555    var id = $(this).attr("data-widgetid");
6556    if (typeof id !== "undefined" && response) {
6557      if (!$(this).closest("form").find(".g-recaptcha-response").val())
6558        $(this).closest("form").find(".g-recaptcha-response").val(response);
6559      if ($("iframe[src*=recaptcha]").length) {
6560        $("iframe[src*=recaptcha]").each(function () {
6561          var block = $(this).parent().parent();
6562          if (!block.hasClass("grecaptcha-badge")) block.css("width", "100%");
6563        });
6564      }
6565      if ($(this).closest("form").attr("name") == "form_comment") BX.submit(BX("form_comment"));
6566      else $(this).closest("form").submit();
6567    }
6568  });
6569};
6570
6571var onCaptchaVerifynormal = function (response) {
6572  $(".g-recaptcha").each(function () {
6573    var id = $(this).attr("data-widgetid");
6574    if (typeof id !== "undefined") {
6575      if (grecaptcha.getResponse(id) != "") {
6576        $(this).closest("form").find(".recaptcha").valid();
6577      }
6578    }
6579  });
6580};
6581
6582BX.addCustomEvent("onSubmitForm", function (eventdata) {
6583  try {
6584    if (!window.renderRecaptchaById || !window.asproRecaptcha || !window.asproRecaptcha.key) {
6585      eventdata.form.submit();
6586      $(eventdata.form).closest(".form").addClass("sending");
6587      return true;
6588    }
6589    if (window.asproRecaptcha.params.recaptchaSize == "invisible" && typeof grecaptcha != "undefined") {
6590      if ($(eventdata.form).find(".g-recaptcha-response").val()) {
6591        eventdata.form.submit();
6592        $(eventdata.form).closest(".form").addClass("sending");
6593      } else {
6594        grecaptcha.execute($(eventdata.form).find(".g-recaptcha").data("widgetid"));
6595        return false;
6596      }
6597    } else {
6598      eventdata.form.submit();
6599      $(eventdata.form).closest(".form").addClass("sending");
6600    }
6601
6602    return true;
6603  } catch (e) {
6604    console.error(e);
6605    return true;
6606  }
6607});
6608
6609/* End */
6610;
6611; /* Start:"a:4:{s:4:"full";s:63:"/bitrix/templates/aspro-allcorp3heat/js/custom.js?1696354521101";s:6:"source";s:49:"/bitrix/templates/aspro-allcorp3heat/js/custom.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
6612/*
6613You can use this file with your scripts.
6614It will not be overwritten when you upgrade solution.
6615*/
6616
6617/* End */
6618;
6619; /* Start:"a:4:{s:4:"full";s:66:"/bitrix/templates/aspro-allcorp3heat/js/logo.min.js?16860349814160";s:6:"source";s:47:"/bitrix/templates/aspro-allcorp3heat/js/logo.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
6620if(void 0===window.JLogo){let readyFunc;window.JLogo=function(node,params){var _private={inited:!1};Object.defineProperties(this,{inited:{get:function(){return _private.inited},set:function(value){value&&(_private.inited=!0)}},node:{get:function(){return node}},img:{get:function(){return node?node.querySelector("img"):null}},svg:{get:function(){return node?node.querySelector("svg"):null}}}),this.params=function(key){if("object"==typeof params&&void 0!==key&&Object.keys(params).indexOf(key)>-1)return params[key]},this.init()},window.JLogo.prototype={get src(){return this.img?this.img.getAttribute("src"):""},set src(value){this.img&&this.img.setAttribute("src",value)},get srcDark(){return arAsproOptions.THEME.LOGO_IMAGE},get srcLight(){return arAsproOptions.THEME.LOGO_IMAGE_WHITE},get color(){if(this.img){let src=this.src;return src===this.srcDark?"dark":src===this.srcLight?"light":""}return""},set color(value){this.canChangeColor&&this.color!==value&&(this.src="light"===value?this.srcLight:this.srcDark)},get isCustomHeader(){return Boolean(this.node.closest(".header-custom"))},get isMainLogo(){return Boolean(this.node.closest("header"))},get isMenuFilledDark(){return this.img&&Boolean(this.img.closest(".header--color_dark, .header--color_colored, .mobileheader--color-colored, .mobileheader--color-dark"))},get isHeaderHasOffset(){return this.img&&Boolean(this.img.closest(".header--offset"))},get onBanner(){return this.isMainLogo&&Boolean(BX.hasClass(document.body,"header_opacity"))},get onTopPart(){return this.img&&Boolean(this.img.closest(".header__top-part"))},get onTransparentRow(){return this.img&&(Boolean(this.img.closest(".header--color_light.bg_none"))||this.onTopPart&&this.isHeaderHasOffset||Boolean(this.img.closest(".header__main-inner.bg_none"))&&!this.isHeaderHasOffset)},get allowChangeBySlider(){return this.onBanner&&this.onTransparentRow&&!this.isCustomHeader},get canChangeColor(){return this.img&&this.srcLight&&!this.allowChangeBySlider&&!(this.onTopPart&&this.isMenuFilledDark&&!this.isHeaderHasOffset)&&!(!this.onTopPart&&this.isMenuFilledDark)},setColorOfBanner:function(banner){this.img&&banner&&void 0!==window.headerLogo&&(value=BX.data(banner,"color"),value=value||"dark",this.color!==value&&this.node.setAttribute("src","light"===value?this.srcLight:this.srcDark))},get isPreferColor(){return BX.hasClass(document.body,"theme-default")},get preferColor(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"},get themeColor(){return this.isPreferColor?this.preferColor:BX.hasClass(document.body,"theme-dark")?"dark":"light"},init:function(){this.inited||(this.inited=!0,this.img&&!this.isCustomHeader&&(this.color=this.isMenuFilledDark?"light":this.getInvertedColor(this.themeColor),this.bindEvents()))},getInvertedColor:function(value){return"default"===value&&(value=this.preferColor),"light"===value?"dark":"dark"===value?"light":""},bindEvents:function(){"function"==typeof this.handlers.onChangePrefersColorScheme&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",BX.proxy(this.handlers.onChangePrefersColorScheme,this)),"function"==typeof this.handlers.onChangeThemeColor&&BX.addCustomEvent("onChangeThemeColor",BX.proxy(this.handlers.onChangeThemeColor,this))},unbindEvents:function(){},handlers:{onChangePrefersColorScheme:function(event){event||(event=window.event);
6620let newColor=event.matches?"dark":"light";this.isPreferColor&&(this.color=this.getInvertedColor(newColor)),BX.setCookie("prefers-color-scheme",newColor)},onChangeThemeColor:function(eventdata){"object"==typeof eventdata&&eventdata&&"value"in eventdata&&(this.color=this.getInvertedColor(eventdata.value))}}},("function"==typeof readyDOM?readyDOM:BX.ready)((function(){window.headerLogo=new JLogo(document.querySelector("header .logo")),window.headerfixedLogo=new JLogo(document.querySelector("#headerfixed .header .logo")),window.mobileheaderLogo=new JLogo(document.querySelector("#mobileheader .mobileheader .logo")),window.mobilemenuLogo=new JLogo(document.querySelector("#mobilemenu .mobilemenu .logo")),BX.setCookie("prefers-color-scheme",window.headerLogo.preferColor)}))}
6621/* End */
6622;
6623; /* Start:"a:4:{s:4:"full";s:91:"/bitrix/components/aspro/eyed.allcorp3heat/templates/.default/script.min.js?168603436412361";s:6:"source";s:71:"/bitrix/components/aspro/eyed.allcorp3heat/templates/.default/script.js";s:3:"min";s:75:"/bitrix/components/aspro/eyed.allcorp3heat/templates/.default/script.min.js";s:3:"map";s:79:"/bitrix/components/aspro/eyed.allcorp3heat/templates/.default/script.min.js.map";}"*/
6624void 0===window.JEyed&&(window.JEyed=function(result){var _private={inited:!1,speakTimer:!1,options:"object"==typeof result&&"object"==typeof result.OPTIONS?result.OPTIONS:{}};Object.defineProperties(this,{inited:{get:function(){return _private.inited},set:function(value){value&&(_private.inited=!0)}},speakTimer:{get:function(){return _private.speakTimer},set:function(value){_private.speakTimer=value}}}),this.result=function(key){if("object"==typeof result&&void 0!==key&&Object.keys(result).indexOf(key)>-1)return result[key]},this.options=function(key,value){var that=this;if(void 0!==key&&Object.keys(_private.options).indexOf(key)>-1){if(void 0===value)return _private.options[key];if(this.node){var item=this.node.querySelector(".eyed-panel__item[data-option="+key+"]");if(item){var itemValues=Array.prototype.slice.call(item.querySelectorAll(".eyed-panel__item-value"));if(itemValues)for(var i in itemValues)BX.removeClass(itemValues[i],"active");var itemValue=item.querySelector('.eyed-panel__item-value[data-option_value="'+value+'"]');itemValue&&(_private.options[key]=value,"SPEAKER"===key?0==value&&this.stopSpeak():"FONT-SIZE"===key?this.dispatchWindowResize():"IMAGES"===key&&this.dispatchWindowResize(),BX.addClass(itemValue,"active"))}}}},this.getClasses=function(){var classes=[];for(var key in _private.options)if(Object.hasOwnProperty.call(_private.options,key)){var value=_private.options[key];0==value?value="off":1==value&&(value="on"),classes.push("eyed--"+key.toLowerCase()+"--"+value.toLowerCase())}return classes.push("eyed"),classes},this.save=function(){BX.setCookie(this.result("COOKIE").OPTIONS,JSON.stringify(_private.options),{path:arAsproOptions.SITE_DIR,expires:30672e3}),this.updateBodyClasses()};var that=this;this.init()},window.JEyed.prototype={node:null,textNode:null,textRate:1.1,handlers:{},init:function(){var that=this;this.inited||(this.inited=!0,this.node=BX("eyed-panel"),this.node.eyed=this,this.textNode=BX.create({tag:"div",props:{class:"eyed-panel__speech"},style:{display:"none"},events:{},children:{},text:"",html:""}),this.bindEvents(),this.speak(document.title))},bindEvents:function(){var that=this;if(that.node){var item,item;if("function"!=typeof that.onToggleClick&&(that.onToggleClick=function(e){e||(e=window.event);var target=e.target||e.srcElement;if(void 0!==target&&target){for(var toggle=null,parent=target;parent;){if(void 0!==parent.matches&&parent.matches(".eyed-toggle")){toggle=parent;break}parent=parent.parentElement||parent.parentNode}toggle&&(that.isActive()?that.disable():that.activate())}}),document.addEventListener("click",that.onToggleClick),that.getSynth())that.getSynth().onerror=function(e){that.stopSpeak()};else if(that.options("SPEAKER"))that.options("SPEAKER",0),that.save(),(item=that.node.querySelector('.eyed-panel__item[data-option="SPEAKER"]'))&&BX.remove(item);if(-1!==navigator.userAgent.indexOf("MSIE"))if(that.options("COLOR-SCHEME","black"),that.save(),item=that.node.querySelector('.eyed-panel__item[data-option="COLOR-SCHEME"]')){var itemValues=Array.prototype.slice.call(item.querySelectorAll('.eyed-panel__item-value:not([data-option_value="black"])'));if(itemValues)for(var i in itemValues)BX.remove(itemValues[i])}that.bindEyedEvents()}},unbindEvents:function(){"function"==typeof this.onToggleClick&&document.removeEventListener("click",this.onToggleClick),this.unbindEyedEvents()},bindEyedEvents:function(){var that=this;that.node&&("function"!=typeof that.onDocClick&&(that.onDocClick=function(e){if(that.isActive()){e||(e=window.event);var target=e.target||e.srcElement;if(void 0!==target&&target){for(var panel=null,parent=target;parent;){if(void 0!==parent.matches&&parent.matches("#eyed-panel")){panel=parent;break}parent=parent.parentElement||parent.parentNode}if(panel){for(var itemValue=null,parent=target;parent;){if(void 0!==parent.matches&&parent.matches(".eyed-panel__item-value")){itemValue=parent;break}parent=parent.parentElement||parent.parentNode}if(itemValue&&(BX.PreventDefault(e),!BX.hasClass(itemValue,"active"))){var item=itemValue.closest(".eyed-panel__item");if(item){var key=BX.data(item,"option"),value=BX.data(itemValue,"option_value").toString();key.length&&value.length&&(that.options(key,value),that.save())}}}}}}),document.addEventListener("click",that.onDocClick),that.getSynth()&&("function"!=typeof that.onDocMouseDown&&(that.onDocMouseDown=function(e){if(that.isActive()){e||(e=window.event);var target=e.target||e.srcElement;if(void 0!==target&&target){for(var panel=null,parent=target;parent;){if(void 0!==parent.matches&&parent.matches("#eyed-panel")){panel=parent;break}parent=parent.parentElement||parent.parentNode}panel||that.isActive()&&0!=that.options("SPEAKER")&&that.stopSpeak()}}}),document.addEventListener("mousedown",that.onDocMouseDown),"function"!=typeof that.onDocMouseUp&&(that.onDocMouseUp=function(e){if(that.isActive()){e||(e=window.event);var target=e.target||e.srcElement;if(void 0!==target&&target){for(var panel=null,parent=target;parent;){if(void 0!==parent.matches&&parent.matches("#eyed-panel")){panel=parent;break}parent=parent.parentElement||parent.parentNode}panel||setTimeout((function(){var text=that.getSelection();void 0!==text&&text.length?that.speak(text):that.stopSpeak()}),100)}}}),document.addEventListener("mouseup",that.onDocMouseUp),"function"!=typeof that.onDocMouseOver&&(that.onDocMouseOver=function(e){if(that.isActive()){e||(e=window.event);var target=e.target||e.srcElement;if(void 0!==target&&target){var link=target.closest("a")||target.closest(".btn")||target.closest(".switcher-title")||target.closest("[data-eyed_speak]")||target.closest("[title]")||target.closest('[data-event="jqm"]');
6624if(link){var overTimer=setInterval((function(){if(!that.speakTimer){overTimer&&(clearInterval(overTimer),overTimer=!1);var text=that.getNodeText(link);void 0!==text&&text.length&&that.speak(text)}}),100),onLinkMouseOut=function(){overTimer&&(clearInterval(overTimer),overTimer=!1),link.removeEventListener("mouseout",onLinkMouseOut)};link.addEventListener("mouseout",onLinkMouseOut)}}}}),document.addEventListener("mouseover",that.onDocMouseOver)))},unbindEyedEvents:function(){"function"==typeof this.onDocClick&&document.removeEventListener("click",this.onDocClick),"function"==typeof this.onDocMouseDown&&document.removeEventListener("mousedown",this.onDocMouseDown),"function"==typeof this.onDocMouseUp&&document.removeEventListener("mouseup",this.onDocMouseUp),"function"==typeof this.onDocMouseOver&&document.removeEventListener("mouseover",this.onDocMouseOver)},isActive:function(){return"Y"===BX.getCookie(this.result("COOKIE").ACTIVE)},activate:function(){var that=this;BX.setCookie(this.result("COOKIE").ACTIVE,"Y",{path:arAsproOptions.SITE_DIR,expires:30672e3}),this.updateBodyClasses(),this.bindEyedEvents();var toggles=Array.prototype.slice.call(document.querySelectorAll(".eyed-toggle"));if(toggles)for(var i in toggles){var title;if(toggles[i].setAttribute("title",BX.message("EA_T_NORMAL_VERSION")),BX.hasClass(toggles[i],"footer__eyed"))(title=BX.findChild(toggles[i],{tag:"span",class:"footer-eyed__name"},!0))&&(title.innerText=BX.message("EA_T_NORMAL_VERSION"));else if(BX.hasClass(toggles[i],"header-eyed")){var title;(title=BX.findChild(toggles[i],{tag:"span",class:"header-eyed__name"},!0))&&(title.innerText=BX.message("EA_T_NORMAL_VERSION"))}}},disable:function(){var that=this;BX.setCookie(this.result("COOKIE").ACTIVE,"",{path:arAsproOptions.SITE_DIR,expires:30672e3}),this.updateBodyClasses(),this.unbindEyedEvents();var toggles=Array.prototype.slice.call(document.querySelectorAll(".eyed-toggle"));if(toggles)for(var i in toggles){var title;if(toggles[i].setAttribute("title",BX.message("EA_T_EYED_VERSION")),BX.hasClass(toggles[i],"footer__eyed"))(title=BX.findChild(toggles[i],{tag:"span",class:"footer-eyed__name"},!0))&&(title.innerText=BX.message("EA_T_EYED_VERSION"));else if(BX.hasClass(toggles[i],"header-eyed")){var title;(title=BX.findChild(toggles[i],{tag:"span",class:"header-eyed__name"},!0))&&(title.innerText=BX.message("EA_T_EYED_VERSION"))}}},dispatchWindowResize:function(){if("function"==typeof Event||-1!==navigator.userAgent.indexOf("MSIE")||navigator.appVersion.indexOf("Trident/")>0){var resizeEvent=window.document.createEvent("UIEvents");resizeEvent.initUIEvent("resize",!0,!1,window,0),window.dispatchEvent(resizeEvent)}else{var event=new Event("resize");window.dispatchEvent(event)}},updateBodyClasses:function(){var that=this,classes=this.getClasses();if(classes){var attrClass=document.body.getAttribute("class");if(attrClass=(attrClass=attrClass.replace(/eyed[^\s]*/gi,"")).replace(/\s{2,}/gi," "),this.isActive())for(var key in classes)Object.hasOwnProperty.call(classes,key)&&(attrClass+=" "+classes[key]);document.body.setAttribute("class",attrClass)}},refresh:function(){var componentAction="getEyed",componentName="aspro:eyed.allcorp3heat",sessid=BX.message("bitrix_sessid"),lang=BX.message("LANGUAGE_ID"),siteId=arAsproOptions.SITE_ID,signedParams=this.result("SIGNED_PARAMS"),that=this;BX.ajax({url:"/bitrix/services/main/ajax.php?mode=ajax&c="+encodeURIComponent(componentName)+"&action=getEyed&sessid="+sessid+"&SITE_ID="+siteId+"&siteId="+siteId+"&lang="+lang+"&signedParameters="+encodeURIComponent(signedParams)+"&clear_cache_session=Y",method:"POST",async:!0,processData:!0,scriptsRunFirst:!0,emulateOnload:!0,start:!0,cache:!1,onsuccess:function(response){response.trim().length&&that.node&&(that.unbindEvents(),that.node.parentElement.insertAdjacentHTML("afterBegin",response),that.node.remove(),that.node=BX("eyed-panel"),that.node.eyed=that,that.bindEvents())},onfailure:function(){}})},checkState:function(){var toggles=Array.prototype.slice.call(document.querySelectorAll(".eyed-toggle")),togglesInPanel=Array.prototype.slice.call(document.querySelectorAll(".eyed-panel .eyed-toggle"));toggles.length>
6624togglesInPanel.length?this.enable():this.destroy()},isEnabled:function(){return!(!this.node||!this.node.querySelector(".eyed-panel__inner"))},destroy:function(){this.isEnabled()&&(this.disable(),this.unbindEvents(),this.node&&(this.node.innerHTML=""))},enable:function(){this.isEnabled()||(this.refresh(),this.bindEvents())},getSelection:function(){var text=window.getSelection&&window.getSelection().toString()||document.selection&&document.selection.createRange().text;return void 0!==text&&this.clearText(text)},getNodeText:function(node){var text="";if(node){if(node.closest(".header-cart[title]"))var text=this.clearText(node.closest(".header-cart").getAttribute("title").toString().trim());else if(!BX.hasClass(node,"developer")&&!BX.hasClass(node,"HEADER"))var text=this.clearText(node.innerText.toString().trim());if((void 0===text||!text.length)&&BX.data(node,"eyed-speak"))var text=this.clearText(BX.data(node,"eyed_speak").toString().trim());if((void 0===text||!text.length)&&node.getAttribute("title"))var text=this.clearText(node.getAttribute("title").toString().trim());if((void 0===text||!text.length)&&"A"===node.tagName){var item=node.closest(".grid-list__item")||node.closest(".owl-item");if(item)var title,text=item.querySelector(".switcher-title").innerText.toString().trim()}}return text},clearText:function(text){this.textNode.innerHTML=text,text=this.textNode.innerText.replace(" *","");var regex=BX.message("__EA_T_TEXT_REGEX");if(regex.length){if(regex=new RegExp(regex,"i"),text.match(regex))return text;text=""}return text},getTextLang:function(text){return"ru-RU"},getSynth:function(){return window.speechSynthesis||window.mozspeechSynthesis||window.webkitspeechSynthesis},speak:function(text){var that=this;if(that.textNode&&that.isActive()&&0!=that.options("SPEAKER")&&that.getSynth()&&(that.stopSpeak(),void 0!==text&&text.length)){text=that.clearText(text);try{var message=new SpeechSynthesisUtterance(text);message.lang=that.getTextLang(text),message.rate=that.textRate,message.onerror=function(e){throw e},message.onend=function(e){that.speakTimer&&(clearInterval(that.speakTimer),that.speakTimer=!1)},that.getSynth().speak(message),that.speakTimer=setInterval((function(){that.getSynth().paused&&that.getSynth().resume()}),100)}catch(e){console.error(e),that.stopSpeak()}}},stopSpeak:function(){var that=this;this.speakTimer&&(clearInterval(this.speakTimer),this.speakTimer=!1),this.get
6624Synth()&&this.getSynth().cancel()}});
6625/* End */
6626;
6627; /* Start:"a:4:{s:4:"full";s:98:"/bitrix/templates/aspro-allcorp3heat/components/bitrix/menu/mega_menu/script.min.js?16860349811471";s:6:"source";s:79:"/bitrix/templates/aspro-allcorp3heat/components/bitrix/menu/mega_menu/script.js";s:3:"min";s:83:"/bitrix/templates/aspro-allcorp3heat/components/bitrix/menu/mega_menu/script.min.js";s:3:"map";s:87:"/bitrix/templates/aspro-allcorp3heat/components/bitrix/menu/mega_menu/script.min.js.map";}"*/
6628$(document).ready((function(){$(".burger-menu").mCustomScrollbar({mouseWheel:{scrollAmount:150,preventDefault:!0}}),$(".burger-menu__dropdown-right-arrow").on("click",(function(){var _this=$(this),bOpen=!_this.hasClass("opened"),parent=_this.closest(".burger-menu__dropdown-item--with-dropdown");if(parent.length){var dropdown=parent.find(".burger-menu__dropdown--bottom");if(dropdown.length){if(bOpen){var parentWrapper=_this.closest(".burger-menu__dropdown--right");if(parentWrapper.length){var dropdowns=parentWrapper.find(".burger-menu__dropdown--bottom.opened");dropdowns.length&&(dropdowns.slideUp(),dropdowns.removeClass("opened"));var arrows=parentWrapper.find(".burger-menu__dropdown-right-arrow.opened");arrows.length&&arrows.removeClass("opened")}}dropdown.slideToggle(),dropdown.toggleClass("opened"),_this.toggleClass("opened")}}})),$(".burger-menu__item--large").on("mouseenter",(function(){var _this=$(this);if(!_this.hasClass("burger-menu__item--current")){var megaMenuTimer=setTimeout((function(){var siblings=_this.siblings(".burger-menu__item--current");siblings.length&&siblings.removeClass("burger-menu__item--current"),_this.addClass("burger-menu__item--current");var dropdown=_this.find(".burger-menu__dropdown--right");dropdown.length&&dropdown.mCustomScrollbar({mouseWheel:{scrollAmount:150,preventDefault:!0}})}),200);_this.one("mouseleave",(function(){megaMenuTimer&&clearTimeout(megaMenuTimer)}))}}))}));
6629/* End */
6630;
6631; /* Start:"a:4:{s:4:"full";s:97:"/bitrix/templates/aspro-allcorp3heat/components/bitrix/menu/menu_new/script.min.js?16860349812205";s:6:"source";s:78:"/bitrix/templates/aspro-allcorp3heat/components/bitrix/menu/menu_new/script.js";s:3:"min";s:82:"/bitrix/templates/aspro-allcorp3heat/components/bitrix/menu/menu_new/script.min.js";s:3:"map";s:86:"/bitrix/templates/aspro-allcorp3heat/components/bitrix/menu/menu_new/script.min.js.map";}"*/
6632$(document).ready((function(){$(document).on("click",".header-menu__wide-submenu-item-inner .toggle_block",(function(e){e.preventDefault();const $menuContainer=e.target.closest(".header-menu__dropdown-menu-inner.header-menu__dropdown-menu--grids"),$parentContainer=e.target.closest(".header-menu__wide-limiter"),menuContainerCurrentWidth=$menuContainer.offsetWidth,_this=$(this),$menu=_this.closest(".header-menu__wide-submenu-item-inner").find("> .submenu-wrapper");_this.hasClass("clicked")||(_this.addClass("clicked"),$menu.slideToggle({duration:150,done:function(){_this.removeClass("clicked")},step:function(){if(menuContainerCurrentWidth!==$menuContainer.offsetWidth){const paddingRight=window.getComputedStyle($parentContainer,null).paddingRight;$parentContainer.style.paddingRight=parseInt(paddingRight)-(menuContainerCurrentWidth-$menuContainer.offsetWidth)+"px"}}}),_this.closest(".header-menu__wide-submenu-item-inner").toggleClass("opened"))})),$(document).on("click",".header-menu__wide-submenu-item--more_items",(function(e){e.stopImmediatePropagation();const $menuContainer=e.target.closest(".header-menu__dropdown-menu-inner.header-menu__dropdown-menu--grids"),$parentContainer=e.target.closest(".header-menu__wide-limiter"),menuContainerCurrentWidth=$menuContainer.offsetWidth,_this=$(this),bOpened=_this.hasClass("opened"),childSpan=_this.find("span"),childSvg=childSpan.find(".svg"),parent=_this.closest(".header-menu__wide-submenu"),collapsed=parent.find(".collapsed"),useDelimetr=parent.hasClass("header-menu__wide-submenu--delimiter"),lastSeparator=parent.find(".last-visible"),obAnimation={duration:200,step:function(){if(menuContainerCurrentWidth!==$menuContainer.offsetWidth){const paddingRight=window.getComputedStyle($parentContainer,null).paddingRight;$parentContainer.style.paddingRight=parseInt(paddingRight)-(menuContainerCurrentWidth-$menuContainer.offsetWidth)+"px"}}};collapsed.length&&(useDelimetr?(collapsed.fadeToggle(obAnimation),lastSeparator.length&&lastSeparator.fadeToggle(obAnimation)):collapsed.slideToggle(obAnimation),childSpan.text(BX.message(bOpened?"SHOW":"HIDE")).append(childSvg),_this.toggleClass("opened"))}))}));
6633/* End */
6634;
6635; /* Start:"a:4:{s:4:"full";s:92:"/bitrix/templates/aspro-allcorp3heat/components/bitrix/menu/left/script.min.js?1686034981908";s:6:"source";s:74:"/bitrix/templates/aspro-allcorp3heat/components/bitrix/menu/left/script.js";s:3:"min";s:78:"/bitrix/templates/aspro-allcorp3heat/components/bitrix/menu/left/script.min.js";s:3:"map";s:82:"/bitrix/templates/aspro-allcorp3heat/components/bitrix/menu/left/script.min.js.map";}"*/
6636$(document).on("click",".slide-block .slide-block__head",(function(e){var _this=$(this),menu=_this.siblings(".slide-block__body"),bVisibleMeu=menu.is(":visible");if(!_this.hasClass("clicked")&&menu.length&&!_this.hasClass("ignore")&&!$(e.target).attr("href")){var type=_this.data("id");_this.addClass("clicked"),bVisibleMeu?($.cookie(type+"_CLOSED","Y",{path:"/"}),menu.slideUp()):($.removeCookie(type+"_CLOSED",{path:"/"}),menu.slideDown()),_this.toggleClass("closed"),_this.removeClass("clicked")}}
6636)),$(document).on("click",".side-menu .toggle_block",(function(e){var _this=$(this),menu=_this.closest(".child").find("> .submenu-wrapper"),bVisibleMeu=menu.is(":visible");_this.hasClass("clicked")||(_this.addClass("clicked"),menu.slideToggle(150,(function(){_this.removeClass("clicked")})),_this.toggleClass("closed")),_this.closest(".child").toggleClass("opened")}));
6637/* End */
6638;
6639; /* Start:"a:4:{s:4:"full";s:100:"/bitrix/components/aspro/marketing.popup.allcorp3heat/templates/.default/script.min.js?1686034364947";s:6:"source";s:82:"/bitrix/components/aspro/marketing.popup.allcorp3heat/templates/.default/script.js";s:3:"min";s:86:"/bitrix/components/aspro/marketing.popup.allcorp3heat/templates/.default/script.min.js";s:3:"map";s:90:"/bitrix/components/aspro/marketing.popup.allcorp3heat/templates/.default/script.min.js.map";}"*/
6640$(document).on("click",".dyn_mp_jqm_frame .popup-text-info__btn .btn",(function(){var closeBtn=$(this).closest(".dyn_mp_jqm_frame").find(".jqmClose");closeBtn.length&&closeBtn.trigger("click")})),$(document).ready((function(){if($(".dyn_mp_jqm").length){var allDelays=[];$(".dyn_mp_jqm").each((function(i,el){var jqmBlock=$(el),delay=0;if(!jqmBlock.hasClass("initied")){for(jqmBlock.addClass("initied"),jqmBlock.data("param-delay")&&(delay=1e3*jqmBlock.data("param-delay"));-1!==allDelays.indexOf(delay);)delay+=1e3;if(allDelays.push(delay),"undefined"!=typeof localStorage){var dataLS=localStorage.getItem(jqmBlock.data("ls")),ls="";try{ls=JSON.parse(dataLS)}catch(e){ls=dataLS}(!ls||ls&&ls.TIMESTAMP<Date.now()&&ls.TIMESTAMP)&&(timeoutID=setTimeout((function(){jqmBlock.click()}),delay))}else{var ls;(ls=$.cookie(jqmBlock.data("ls")))||(timeoutID=setTimeout((function(){jqmBlock.click()}),delay))}}}))}}));
6641/* End */
6642;
6643; /* Start:"a:4:{s:4:"full";s:67:"/bitrix/components/bitrix/search.title/script.min.js?17452211806543";s:6:"source";s:48:"/bitrix/components/bitrix/search.title/script.js";s:3:"min";s:52:"/bitrix/components/bitrix/search.title/script.min.js";s:3:"map";s:52:"/bitrix/components/bitrix/search.title/script.map.js";}"*/
6644function JCTitleSearch(t){var e=this;this.arParams={AJAX_PAGE:t.AJAX_PAGE,CONTAINER_ID:t.CONTAINER_ID,INPUT_ID:t.INPUT_ID,MIN_QUERY_LEN:parseInt(t.MIN_QUERY_LEN,10)};if(t.WAIT_IMAGE){this.arParams.WAIT_IMAGE=t.WAIT_IMAGE}if(this.arParams.MIN_QUERY_LEN<=0){this.arParams.MIN_QUERY_LEN=1}this.cache=[];this.cache_key=null;this.startText="";this.running=false;this.runningCall=false;this.currentRow=-1;this.RESULT=null;this.CONTAINER=null;this.INPUT=null;this.WAIT=null;this.ShowResult=function(t){if(BX.type.isString(t)){e.RESULT.innerHTML=t}e.RESULT.style.display=e.RESULT.innerHTML===""?"none":"block";var s=e.adjustResultNode();var i=null;var n=null;var l=BX.findChild(e.RESULT,{tag:"table",class:"title-search-result"},true);if(l){n=BX.findChild(l,{tag:"th"},true)}if(n){var r=BX.pos(l);r.width=r.right-r.left;var a=BX.pos(n);a.width=a.right-a.left;n.style.width=a.width+"px";e.RESULT.style.width=s.width+a.width+"px";e.RESULT.style.left=s.left-a.width-1+"px";if(r.width-a.width>s.width){e.RESULT.style.width=s.width+a.width-1+"px"}r=BX.pos(l);i=BX.pos(e.RESULT);if(i.right>r.right){e.RESULT.style.width=r.right-r.left+"px"}}var o=false;if(l){o=BX.findChild(e.RESULT,{class:"title-search-fader"},true)}if(o&&n){i=BX.pos(e.RESULT);o.style.left=i.right-i.left-18+"px";o.style.width=18+"px";o.style.top=0+"px";o.style.height=i.bottom-i.top+"px";o.style.display="block"}};this.onKeyPress=function(t){var s=BX.findChild(e.RESULT,{tag:"table",class:"title-search-result"},true);if(!s){return false}var i=0;var n=s.rows.length;switch(t){case 27:e.RESULT.style.display="none";e.currentRow=-1;e.UnSelectAll();return true;case 40:if(e.RESULT.style.display=="none"){e.RESULT.style.display="block"}var l=-1;for(i=0;i<n;i++){if(!BX.findChild(s.rows[i],{class:"title-search-separator"},true)){if(l==-1){l=i}if(e.currentRow<i){e.currentRow=i;break}else if(s.rows[i].className=="title-search-selected"){s.rows[i].className=""}}}if(i==n&&e.currentRow!=i){e.currentRow=l}s.rows[e.currentRow].className="title-search-selected";return true;case 38:if(e.RESULT.style.display=="none"){e.RESULT.style.display="block"}var r=-1;for(i=n-1;i>=0;i--){if(!BX.findChild(s.rows[i],{class:"title-search-separator"},true)){if(r==-1){r=i}
6644if(e.currentRow>i){e.currentRow=i;break}else if(s.rows[i].className=="title-search-selected"){s.rows[i].className=""}}}if(i<0&&e.currentRow!=i){e.currentRow=r}s.rows[e.currentRow].className="title-search-selected";return true;case 13:if(e.RESULT.style.display=="block"){for(i=0;i<n;i++){if(e.currentRow==i&&!BX.findChild(s.rows[i],{class:"title-search-separator"},true)){var a=BX.findChild(s.rows[i],{tag:"a"},true);if(a){window.location=a.href;return true}}}}return false;default:break}return false};this.onTimeout=function(){e.onChange((function(){setTimeout(e.onTimeout,500)}))};this.onChange=function(t){if(e.running){e.runningCall=true;return}e.running=true;if(e.INPUT.value!=e.oldValue&&e.INPUT.value!=e.startText){e.oldValue=e.INPUT.value;if(e.INPUT.value.length>=e.arParams.MIN_QUERY_LEN){e.cache_key=e.arParams.INPUT_ID+"|"+e.INPUT.value;if(e.cache[e.cache_key]==null){if(e.WAIT){var s=BX.pos(e.INPUT);var i=s.bottom-s.top-2;e.WAIT.style.top=s.top+1+"px";e.WAIT.style.height=i+"px";e.WAIT.style.width=i+"px";e.WAIT.style.left=s.right-i+2+"px";e.WAIT.style.display="block"}BX.ajax.post(e.arParams.AJAX_PAGE,{ajax_call:"y",INPUT_ID:e.arParam
6644s.INPUT_ID,q:e.INPUT.value,l:e.arParams.MIN_QUERY_LEN},(function(s){e.cache[e.cache_key]=s;e.ShowResult(s);e.currentRow=-1;e.EnableMouseEvents();if(e.WAIT){e.WAIT.style.display="none"}if(!!t){t()}e.running=false;if(e.runningCall){e.runningCall=false;e.onChange()}}));return}e.ShowResult(e.cache[e.cache_key]);e.currentRow=-1;e.EnableMouseEvents()}else{e.RESULT.style.display="none";e.currentRow=-1;e.UnSelectAll()}}if(!!t){t()}e.running=false};this.onScroll=function(){if(BX.type.isElementNode(e.RESULT)&&e.RESULT.style.display!=="none"&&e.RESULT.innerHTML!==""){e.adjustResultNode()}};this.UnSelectAll=function(){var t=BX.findChild(e.RESULT,{tag:"table",class:"title-search-result"},true);if(t){var s=t.rows.length;for(var i=0;i<s;i++){t.rows[i].className=""}}};this.EnableMouseEvents=function(){var t=BX.findChild(e.RESULT,{tag:"table",class:"title-search-result"},true);if(t){var s=t.rows.length;for(var i=0;i<s;i++){if(!BX.findChild(t.rows[i],{class:"title-search-separator"},true)){t.rows[i].id="row_"+i;t.rows[i].onmouseover=function(t){if(e.currentRow!=this.id.substr(4)){e.UnSelectAll();this.className="title-search-selected";e.currentRow=this.id.substr(4)}};t.rows[i].onmouseout=function(t){this.className="";e.currentRow=-1}}}}};this.onFocusLost=function(t){setTimeout((function(){e.RESULT.style.display="none"}),250)};this.onFocusGain=function(){if(e.RESULT.innerHTML.length>0){e.ShowResult()}};this.onKeyDown=function(t){if(!t){t=window.event}if(e.RESULT.style.display=="block"&&e.onKeyPress(t.keyCode)){return BX.PreventDefault(t)}};this.adjustResultNode=function(){if(!(BX.type.isElementNode(e.RESULT)&&BX.type.isElementNode(e.CONTAINER))){return{top:0,right:0,bottom:0,left:0,width:0,height:0}}var t=BX.pos(e.CONTAINER);e.RESULT.style.position="absolute";e.RESULT.style.top=t.bottom+2+"px";e.RESULT.style.left=t.left+"px";e.RESULT.style.width=t.width+"px";return t};this.onContainerLayoutChange=function(){if(BX.type.isElementNode(e.RESULT)&&e.RESULT.style.display!=="none"&&e.RESULT.innerHTML!==""){e.adjustResultNode()}};this.Init=function(){this.CONTAINER=document.getElementById(this.arParams.CONTAINER_ID);BX.addCustomEvent(this.CONTAINER,"OnNodeLayoutChange",this.onContainerLayoutChange);this.RESULT=document.body.appendChild(document.createElement("DIV"));this.RESULT.className="title-search-result";this.INPUT=document.getElementById(this.arParams.INPUT_ID);this.startText=this.INPUT.value;this.oldValue=this.INPUT.value;BX.bind(this.INPUT,"focus",(function(){e.onFocusGain()}));BX.bind(this.INPUT,"blur",(function(){e.onFocusLost()}));this.INPUT.onkeydown=this.onKeyDown;if(this.arParams.WAIT_IMAGE){this.WAIT=document.body.appendChild(document.createElement("DIV"));this.WAIT.style.backgroundImage="url('"+this.arParams.WAIT_IMAGE+"')";if(!BX.browser.IsIE()){this.WAIT.style.backgroundRepeat="none"}this.WAIT.style.display="none";this.WAIT.style.position="absolute";this.WAIT.style.zIndex="1100"}BX.bind(this.INPUT,"bxchange",(function(){e.onChange()}));var t=BX.findParent(this.CONTAINER,BX.is_fixed);if(BX.type.isElementNode(t)){BX.bind(window,"scroll",BX.throttle(this.onScroll,100,this))}};BX.ready((function(){e.Init(t)}))}
6645/* End */
6646;
6647; /* Start:"a:4:{s:4:"full";s:102:"/bitrix/templates/aspro-allcorp3heat/components/bitrix/search.title/fixed/script.min.js?16860349817482";s:6:"source";s:83:"/bitrix/templates/aspro-allcorp3heat/components/bitrix/search.title/fixed/script.js";s:3:"min";s:87:"/bitrix/templates/aspro-allcorp3heat/components/bitrix/search.title/fixed/script.min.js";s:3:"map";s:91:"/bitrix/templates/aspro-allcorp3heat/components/bitrix/search.title/fixed/script.min.js.map";}"*/
6648function JCTitleSearch2(arParams){var _this=this;this.arParams={AJAX_PAGE:arParams.AJAX_PAGE,CONTAINER_ID:arParams.CONTAINER_ID,INPUT_ID:arParams.INPUT_ID,INPUT_ID_TMP:arParams.INPUT_ID_TMP,TYPE:arParams.TYPE||"normal",MIN_QUERY_LEN:parseInt(arParams.MIN_QUERY_LEN)},arParams.WAIT_IMAGE&&(this.arParams.WAIT_IMAGE=arParams.WAIT_IMAGE),arParams.MIN_QUERY_LEN<=0&&(arParams.MIN_QUERY_LEN=1),this.cache=[],this.cache_key=null,this.startText="",this.running=!1,this.needRunAgain=!1,this.currentRow=-1,this.RESULT=null,this.CONTAINER=null,this.INPUT=null,this.WAIT=null,this.ShowResult=function(result){BX.type.isString(result)&&(_this.RESULT.innerHTML=result),_this.RESULT.style.display=""!==_this.RESULT.innerHTML?"block":"none";var pos=_this.adjustResultNode(),res_pos,th,tbl=BX.findChild(_this.RESULT,{tag:"table",class:"title-search-result"},!0),fade;if(tbl&&(th=BX.findChild(tbl,{tag:"th"},!0)),th){var tbl_pos=BX.pos(tbl);tbl_pos.width=tbl_pos.right-tbl_pos.left;var th_pos=BX.pos(th);th_pos.width=th_pos.right-th_pos.left,th.style.width=th_pos.width+"px",_this.RESULT.style.width=pos.width+th_pos.width+"px",_this.RESULT.style.left=pos.left-th_pos.width-1+"px",tbl_pos.width-th_pos.width>pos.width&&(_this.RESULT.style.width=pos.width+th_pos.width-1+"px"),tbl_pos=BX.pos(tbl),(res_pos=BX.pos(_this.RESULT)).right>tbl_pos.right&&(_this.RESULT.style.width=tbl_pos.right-tbl_pos.left+"px")}tbl&&(fade=BX.findChild(_this.RESULT,{class:"title-search-fader"},!0)),fade&&th&&(res_pos=BX.pos(_this.RESULT),fade.style.left=res_pos.right-res_pos.left-18+"px",fade.style.width="18px",fade.style.top="0px",fade.style.height=res_pos.bottom-res_pos.top+"px",fade.style.display="block"),"function"==typeof InitScrollBar&&InitScrollBar()},this.onKeyPress=function(keyCode){var tbl=BX.findChild(_this.RESULT,{tag:"table",class:"title-search-result"},!0),i;if(!tbl)return!1;var cnt=tbl.rows.length;switch(keyCode){case 27:return _this.RESULT.style.display="none",_this.currentRow=-1,_this.UnSelectAll(),!0;case 40:"none"==_this.RESULT.style.display&&(_this.RESULT.style.display="block");var first=-1;for(i=0;i<cnt;i++)if(!BX.findChild(tbl.rows[i],{class:"title-search-separator"},!0)){if(-1==first&&(first=i),_this.currentRow<i){_this.currentRow=i;break}"title-search-selected"==tbl.rows[i].className&&(tbl.rows[i].className="")}return i==cnt&&_this.currentRow!=i&&(_this.currentRow=first),tbl.rows[_this.currentRow].className="title-search-selected",!0;case 38:"none"==_this.RESULT.style.display&&(_this.RESULT.style.display="block");var last=-1;for(i=cnt-1;i>=0;i--)if(!BX.findChild(tbl.rows[i],{class:"title-search-separator"},!0)){if(-1==last&&(last=i),_this.currentRow>i){_this.currentRow=i;break}"title-search-selected"==tbl.rows[i].className&&(tbl.rows[i].className="")}return i<0&&_this.currentRow!=i&&(_this.currentRow=last),tbl.rows[_this.currentRow].className="title-search-selected",!0;case 13:if("block"==_this.RESULT.style.display)for(i=0;i<cnt;i++)if(_this.currentRow==i&&!BX.findChild(tbl.rows[i],{class:"title-search-separator"},!0)){var a=BX.findChild(tbl.rows[i],{tag:"a"},!0);if(a)return window.location=a.href,!0}return!1}return!1},this.onTimeout=function(){_this.onChange((function(){setTimeout(_this.onTimeout,500)}))},this.onChange=function(callback){if(_this.running)_this.needRunAgain=!0;else{if(_this.running=!0,_this.INPUT.value!=_this.oldValue&&_this.INPUT.value!=_this.startText)if(_this.oldValue=_this.INPUT.value,_this.INPUT.value.length>=_this.arParams.MIN_QUERY_LEN){if(_this.cache_key=_this.arParams.INPUT_ID+"|"+_this.INPUT.value,null==_this.cache[_this.cache_key]){if
6648(_this.WAIT){var pos=BX.pos(_this.INPUT),height=pos.bottom-pos.top-2;_this.WAIT.style.top=pos.top+1+"px",_this.WAIT.style.height=height+"px",_this.WAIT.style.width=height+"px",_this.WAIT.style.left=pos.right-height+2+"px",_this.WAIT.style.display="block"}return void BX.ajax.post(_this.arParams.AJAX_PAGE,{ajax_call:"y",INPUT_ID:_this.arParams.INPUT_ID_TMP,q:_this.INPUT.value,l:_this.arParams.MIN_QUERY_LEN},(function(result){_this.cache[_this.cache_key]=result,_this.ShowResult(result),_this.currentRow=-1,_this.EnableMouseEvents(),_this.WAIT&&(_this.WAIT.style.display="none"),callback&&callback(),_this.running=!1,_this.needRunAgain&&(_this.needRunAgain=!1,_this.onChange(callback))}))}_this.ShowResult(_this.cache[_this.cache_key]),_this.currentRow=-1,_this.EnableMouseEvents()}else _this.RESULT.style.display="none",_this.currentRow=-1,_this.UnSelectAll();callback&&callback(),_this.running=!1}},this.UnSelectAll=function(){var tbl=BX.findChild(_this.RESULT,{tag:"table",class:"title-search-result"},!0);if(tbl)for(var cnt=tbl.rows.length,i=0;i<cnt;i++)tbl.rows[i].className=""},this.EnableMouseEvents=function(){var tbl=BX.findChild(_this.RESULT,{tag:"table",class:"title-search-result"},!0);if(tbl)for(var cnt=tbl.rows.length,i=0;i<cnt;i++)BX.findChild(tbl.rows[i],{class:"title-search-separator"},!0)||(tbl.rows[i].id="row_"+i,tbl.rows[i].onmouseover=function(e){_this.currentRow!=this.id.substr(4)&&(_this.UnSelectAll(),this.className="title-search-selected",_this.currentRow=this.id.substr(4))},tbl.rows[i].onmouseout=function(e){this.className="",_this.currentRow=-1})},this.onFocusLost=function(hide){setTimeout((function(){_this.RESULT.style.display="none"}),30)},this.onFocusGain=function(){_this.RESULT.innerHTML.length&&_this.ShowResult()},this.onKeyDown=function(e){if(e||(e=window.event),"block"==_this.RESULT.style.display&&_this.onKeyPress(e.keyCode))return BX.PreventDefault(e)},this.adjustResultNode=function(){var pos,pos_input,fixedParent=BX.findParent(_this.CONTAINER,BX.is_fixed);return fixedParent?(_this.RESULT.style.position="fixed",_this.RESULT.style.zIndex=BX.style(fixedParent,"z-index")+2,pos=BX.pos(_this.CONTAINER,!0)):(_this.RESULT.style.position="absolute",pos=BX.pos(_this.CONTAINER)),pos_input=BX.pos(_this.INPUT),pos.width=pos.right-pos.left,_this.RESULT.style.top=pos.bottom+2+"px",_this.RESULT.style.left=pos_input.left+"px",$(_this.INPUT).closest(".inline-search-block.with-close").length?_this.RESULT.style.width=pos_input.width+"px":_this.RESULT.style.width=pos.width+"px",pos},this._onContainerLayoutChange=function(){"none"!==_this.RESULT.style.display&&""!==_this.RESULT.innerHTML&&_this.adjustResultNode()},this.Init=function(){this.CONTAINER=document.getElementById(this.arParams.CONTAINER_ID),BX.addCustomEvent(this.CONTAINER,"OnNodeLayoutChange",this._onContainerLayoutChange),this.RESULT=document.body.appendChild(document.createElement("DIV")),this.RESULT.className="title-search-result "+this.arParams.INPUT_ID,this.RESULT.className+=" title-type-"+this.arParams.TYPE,this.INPUT=document.getElementById(this.arParams.INPUT_ID),this.startText=this.oldValue=this.INPUT.value,BX.bind(this.INPUT,"focus",(function(e){_this.onFocusGain()})),BX.bind(this.INPUT,"blur",(function(e){$(e.relatedTarget).closest(".searche-result").length||_this.onFocusLost()})),BX.browser.IsSafari()||BX.browser.IsIE()?this.INPUT.onkeydown=this.onKeyDown:this.INPUT.onkeypress=this.onKeyDown,this.arParams.WAIT_IMAGE&&(this.WAIT=document.body.appendChild(document.createElement("DIV")),this.WAIT.style.backgroundImage="url('"+this.arParams.WAIT_IMAGE+"')",BX.browser.IsIE()||(this.WAIT.style.backgroundRepeat="none"),this.WAIT.style.display="none",this.WAIT.style.position="absolute",this.WAIT.style.zIndex="1100"),BX.bind(this.INPUT,"bxchange",(function(e){_this.onChange()}))},BX.ready((function(){_this.Init(arParams)}))}
6649/* End */
6650;
6651; /* Start:"a:4:{s:4:"full";s:86:"/bitrix/components/aspro/basket.allcorp3heat/templates/fly/script.min.js?1686034364340";s:6:"source";s:68:"/bitrix/components/aspro/basket.allcorp3heat/templates/fly/script.js";s:3:"min";
6651s:72:"/bitrix/components/aspro/basket.allcorp3heat/templates/fly/script.min.js";s:3:"map";s:76:"/bitrix/components/aspro/basket.allcorp3heat/templates/fly/script.min.js.map";}"*/
6652const readyBasketHandler=function(){const ajaxBasket=document.querySelector(".ajax_basket");document.addEventListener("click",(function(e){"null"!==typeofExt(e.target.closest("#close-basket"))&&ajaxBasket.classList.remove("opened")}))};document.addEventListener("DOMContentLoaded",readyBasketHandler);
6653/* End */
6654;
6655; /* Start:"a:4:{s:4:"full";s:86:"/bitrix/templates/aspro-allcorp3heat/js/jquery.inputmask.bundle.min.js?168603498170933";s:6:"source";s:70:"/bitrix/templates/aspro-allcorp3heat/js/jquery.inputmask.bundle.min.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
6656!function(e){function t(n){if(i[n])return i[n].exports;var a=i[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,t),a.l=!0,a.exports}var i={};t.m=e,t.c=i,t.d=function(e,i,n){t.o(e,i)||Object.defineProperty(e,i,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,"a",i),i},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=3)}([function(e,t,i){"use strict";var n,a,r;"function"==typeof Symbol&&Symbol.iterator,a=[i(2)],void 0!==(r="function"==typeof(n=function(e){return e})?n.apply(t,a):n)&&(e.exports=r)},function(e,t,i){"use strict";var n,a,r,o="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};a=[i(0),i(5),i(6)],void 0!==(r="function"==typeof(n=function(e,t,i,n){function a(t,i,o){if(!(this instanceof a))return new a(t,i,o);this.el=n,this.events={},this.maskset=n,this.refreshValue=!1,!0!==o&&(e.isPlainObject(t)?i=t:(i=i||{},t&&(i.alias=t)),this.opts=e.extend(!0,{},this.defaults,i),this.noMasksCache=i&&i.definitions!==n,this.userOptions=i||{},this.isRTL=this.opts.numericInput,r(this.opts.alias,i,this.opts))}function r(t,i,o){var s=a.prototype.aliases[t];return s?(s.alias&&r(s.alias,n,o),e.extend(!0,o,s),e.extend(!0,o,i),!0):(null===o.mask&&(o.mask=t),!1)}function s(t,i){function r(t,r,o){var s=!1;if(null!==t&&""!==t||((s=null!==o.regex)?t=(t=o.regex).replace(/^(\^)(.*)(\$)$/,"$2"):(s=!0,t=".*")),1===t.length&&!1===o.greedy&&0!==o.repeat&&(o.placeholder=""),o.repeat>0||"*"===o.repeat||"+"===o.repeat){var l="*"===o.repeat?0:"+"===o.repeat?1:o.repeat;t=o.groupmarker[0]+t+o.groupmarker[1]+o.quantifiermarker[0]+l+","+o.repeat+o.quantifiermarker[1]}var u,c=s?"regex_"+o.regex:o.numericInput?t.split("").reverse().join(""):t;return a.prototype.masksCache[c]===n||!0===i?(u={mask:t,maskToken:a.prototype.analyseMask(t,s,o),validPositions:{},_buffer:n,buffer:n,tests:{},excludes:{},metadata:r,maskLength:n},!0!==i&&(a.prototype.masksCache[c]=u,u=e.extend(!0,{},a.prototype.masksCache[c]))):u=e.extend(!0,{},a.prototype.masksCache[c]),u}if(e.isFunction(t.mask)&&(t.mask=t.mask(t)),e.isArray(t.mask)){if(t.mask.length>1){if(null===t.keepStatic){t.keepStatic="auto";for(var o=0;o<t.mask.length;o++)if(t.mask[o].charAt(0)!==t.mask[0].charAt(0)){t.keepStatic=!0;break}}var s=t.groupmarker[0];return e.each(t.isRTL?t.mask.reverse():t.mask,function(i,a){s.length>1&&(s+=t.groupmarker[1]+t.alternatormarker+t.groupmarker[0]),a.mask===n||e.isFunction(a.mask)?s+=a:s+=a.mask}),r(s+=t.groupmarker[1],t.mask,t)}t.mask=t.mask.pop()}return t.mask&&t.mask.mask!==n&&!e.isFunction(t.mask.mask)?r(t.mask.mask,t.mask,t):r(t.mask,t.mask,t)}function l(e){var t=i.createElement("input"),n="on"+e,a=n in t;return a||(t.setAttribute(n,"return;"),a="function"==typeof t[n]),t=null,a}function u(r,s,c){function d(e,t,i){t=t||0;var a,r,o,s=[],l=0,u=v();do{!0===e&&h().validPositions[l]?(r=(o=h().validPositions[l]).match,a=o.locator.slice(),s.push(!0===i?o.input:!1===i?r.nativeDef:N(l,r))):(r=(o=P(l,a,l-1)).match,a=o.locator.slice(),(!1===c.jitMasking||l<u||"number"==typeof c.jitMasking&&isFinite(c.jitMasking)&&c.jitMasking>l)&&s.push(!1===i?r.nativeDef:N(l,r))),"auto"===c.keepStatic&&r.newBlockMarker&&null!==r.fn&&(c.keepStatic=l-1),l++}while(($===n||l<$)&&(null!==r.fn||""!==r.def)||t>l);return""===s[s.length-1]&&s.pop(),!1===i&&h().maskLength!==n||(h().maskLength=l-1),s}function h(){return s}function g(e){var t=h();t.buffer=n,!0!==e&&(t.validPositions={},t.p=0)}function v(e,t,i){var a=-1,r=-1,o=i||h().validPositions;e===n&&(e=-1);for(var s in o){var l=parseInt(s);o[l]&&(t||!0!==o[l].generatedInput)&&(l<=e&&(a=l),l>=e&&(r=l))}return-1!==a&&e-a>1||r<e?a:r}function k(t,i,a,r){var o,s=t,l=e.extend(!0,{},h().validPositions),u=!1;for(h().p=t,o=i-1;o>=s;
6656o--)h().validPositions[o]!==n&&(!0!==a&&(!h().validPositions[o].match.optionality&&function(e){var t=h().validPositions[e];if(t!==n&&null===t.match.fn){var i=h().validPositions[e-1],a=h().validPositions[e+1];return i!==n&&a!==n}return!1}(o)||!1===c.canClearPosition(h(),o,v(n,!0),r,c))||delete h().validPositions[o]);for(g(!0),o=s+1;o<=v();){for(;h().validPositions[s]!==n;)s++;if(o<s&&(o=s+1),h().validPositions[o]===n&&j(o))o++;else{var p=P(o);!1===u&&l[s]&&l[s].match.def===p.match.def?(h().validPositions[s]=e.extend(!0,{},l[s]),h().validPositions[s].input=p.input,delete h().validPositions[o],o++):A(s,p.match.def)?!1!==_(s,p.input||N(o),!0)&&(delete h().validPositions[o],o++,u=!0):j(o)||(o++,s--),s++}}if(!0!==r)for(o=v(-1,!0);h().validPositions[o]&&!0===h().validPositions[o].generatedInput;)delete h().validPositions[o--];g(!0)}function y(e,t,i){for(var a,r=S(e=e>0?e-1:0),o=r.alternation!==n?r.locator[r.alternation].toString().split(","):[],s=0;s<t.length&&(!((a=t[s]).match&&(c.greedy&&!0!==a.match.optionalQuantifier||(!1===a.match.optionality||!1===a.match.newBlockMarker)&&!0!==a.match.optionalQuantifier)&&(r.alternation===n||r.alternation!==a.alternation||a.locator[r.alternation]!==n&&D(a.locator[r.alternation].toString().split(","),o)))||!0===i&&(null!==a.match.fn||/[0-9a-bA-Z]/.test(a.match.def)));s++);return a}function b(e){var t=e.locator[e.alternation];return"string"==typeof t&&t.length>0&&(t=t.split(",")[0]),t!==n?t.toString():""}function x(e,t){for(var i=(e.alternation!=n?e.mloc[b(e)]:e.locator).join("");i.length<t;)i+="0";return i}function P(e,t,i){return h().validPositions[e]||y(e,C(e,t?t.slice():t,i))}function S(e){return h().validPositions[e]?h().validPositions[e]:C(e)[0]}function A(e,t){for(var i=!1,n=C(e),a=0;a<n.length;a++)if(n[a].match&&n[a].match.def===t){i=!0;break}return i}function C(t,i,a){function r(i,a,s,l){function u(s,l,p){function m(t,i){var n=0===e.inArray(t,i.matches);return n||e.each(i.matches,function(e,a){if(!0===a.isQuantifier&&(n=m(t,i.matches[e-1])))return!1}),n}function k(t,i,a){var r,o;if((h().tests[t]||h().validPositions[t])&&e.each(h().tests[t]||[h().validPositions[t]],function(e,t){if(t.mloc[i])return r=t,!1;var s=a!==n?a:t.alternation,l=t.locator[s]!==n?t.locator[s].toString().indexOf(i):-1;(o===n||l<o)&&-1!==l&&(r=t,o=l)}),r){var s=r.locator[r.alternation];return(r.mloc[i]||r.mloc[s]||r.locator).slice((a!==n?a:r.alternation)+1)}return a!==n?k(t,i):n}function y(e,t){function i(e){for(var t,i,n=[],a=0,r=e.length;a<r;a++)if("-"===e.charAt(a))for(i=e.charCodeAt(a+1);++t<i;)n.push(String.fromCharCode(t));else t=e.charCodeAt(a),n.push(e.charAt(a));return n.join("")}return c.regex&&null!==e.match.fn&&null!==t.match.fn?-1!==i(t.match.def.replace(/[\[\]]/g,"")).indexOf(i(e.match.def.replace(/[\[\]]/g,""))):e.match.def===t.match.nativeDef}function b(e,t){if(t===n||e.alternation===t.alternation&&-1===e.locator[e.alternation].toString().indexOf(t.locator[t.alternation])){e.mloc=e.mloc||{};var i=e.locator[e.alternation];if(i!==n){if("string"==typeof i&&(i=i.split(",")[0]),e.mloc[i]===n&&(e.mloc[i]=e.locator.slice()),t!==n){for(var a in t.mloc)"string"==typeof a&&(a=a.split(",")[0]),e.mloc[a]===n&&(e.mloc[a]=t.mloc[a]);e.locator[e.alternation]=Object.keys(e.mloc).join(",")}return!0}e.alternation=n}return!1}if(f>1e4)throw"Inputmask: There is probably an error in your mask definition or in the code. Create an issue on github with an example of the mask you are using. "+h().mask;if(f===t&&s.matches===n)return d.push({match:s,locator:l.reverse(),cd:v,mloc:{}}),!0;if(s.matches!==n){if(s.isGroup&&p!==s){if(s=u(i.matches[e.inArray(s,i.matches)+1],l))return!0}else if(s.isOptional){var x=s;if(s=r(s,a,l,p)){if(!m(o=d[d.length-1].match,x))return!0;g=!0,f=t}}else if(s.isAlternator){var P,S=s,A=[],C=d.slice(),M=l.length,E=a.length>0?a.shift():-1;if(-1===E||"string"==typeof E){var w,D=f,O=a.slice(),_=[];if("string"==typeof E)_=E.split(",");else for(w=0;w<S.matches.length;w++)_.push(w.toString());if(h().excludes[t]){for(var j=_.slice(),F=0,T=h().excludes[t].length;F<T;F++)_.splice(_.indexOf(h().excludes[t][F].toString()),1);0===_.length&&(h().excludes[t]=n,_=j)}(!0===c.keepStatic||isFinite(parseInt(c.keepStatic))&&D>=c.keepStatic)&&(_=_.slice(0,1));for(var R=0;R<_.length;R++){w=parseInt(_[R]),d=[],a=k(f,w,M)||O.slice(),S.matches[w]&&u(S.matches[w],[w].concat(l),p)&&(s=!0),P=d.slice(),f=D,d=[];for(var N=0;N<P.length;N++){var G=P[N],B=!1;G.alternation=G.alternation||M,b(G);for(var I=0;I<A.length;I++){var L=A[I];if("string"!=typeof E||G.alternation!==n&&-1!==e.inArray(G.locator[G.alternation].toString(),_)){if(G.match.nativeDef===L.match.nativeDef){B=!0,b(L,G);break}if(y(G,L)){b(G,L)&&(B=!0,A.splice(A.indexOf(L),0,G));break}if(y(L,G)){b(L,G);break}if(z=L,null===(U=G).match.fn&&null!==z.match.fn&&z.match.fn.test(U.match.def,h(),t,!1,c,!1)){b(G,L)&&(B=!0,A.splice(A.indexOf(L),0,G));break}}}B||A.push(G)}}d=C.concat(A),f=t,g=d.length>0,s=A.length>0,a=O.slice()}else s=u(S.matches[E]||i.matches[E],[E].concat(l),p);if(s)return!0}else if(s.isQuantifier&&p!==i.matches[e.inArray(s,i.matches)-1])for(var H=s,V=a.length>0?a.shift():0;V<(isNaN(H.quantifier.max)?V+1:H.quantifier.max)&&f<=t;V++){var K=i.matches[e.inArray(H,i.matches)-1];
6656if(s=u(K,[V].concat(l),K)){if((o=d[d.length-1].match).optionalQuantifier=V>H.quantifier.min-1,m(o,K)){if(V>H.quantifier.min-1){g=!0,f=t;break}return!0}return!0}}else if(s=r(s,a,l,p))return!0}else f++;var U,z}for(var p=a.length>0?a.shift():0;p<i.matches.length;p++)if(!0!==i.matches[p].isQuantifier){var m=u(i.matches[p],[p].concat(s),l);if(m&&f===t)return m;if(f>t)break}}var o,s,l,u,p=h().maskToken,f=i?a:0,m=i?i.slice():[0],d=[],g=!1,v=i?i.join(""):"";if(t>-1){if(i===n){for(var k,b=t-1;(k=h().validPositions[b]||h().tests[b])===n&&b>-1;)b--;k!==n&&b>-1&&(s=b,l=k,u=[],e.isArray(l)||(l=[l]),l.length>0&&(l[0].alternation===n?0===(u=y(s,l.slice()).locator.slice()).length&&(u=l[0].locator.slice()):e.each(l,function(e,t){if(""!==t.def)if(0===u.length)u=t.locator.slice();else for(var i=0;i<u.length;i++)t.locator[i]&&-1===u[i].toString().indexOf(t.locator[i])&&(u[i]+=","+t.locator[i])})),v=(m=u).join(""),f=b)}if(h().tests[t]&&h().tests[t][0].cd===v)return h().tests[t];for(var x=m.shift();x<p.length&&!(r(p[x],m,[x])&&f===t||f>t);x++);}return(0===d.length||g)&&d.push({match:{fn:null,optionality:!0,casing:null,def:"",placeholder:""},locator:[],mloc:{},cd:v}),i!==n&&h().tests[t]?e.extend(!0,[],d):(h().tests[t]=e.extend(!0,[],d),h().tests[t])}function M(){return h()._buffer===n&&(h()._buffer=d(!1,1),h().buffer===n&&(h().buffer=h()._buffer.slice())),h()._buffer}function E(e){return h().buffer!==n&&!0!==e||(h().buffer=d(!0,v(),!0)),h().buffer}function w(e,t,i){var a,r;if(!0===e)g(),e=0,t=i.length;else for(a=e;a<t;a++)delete h().validPositions[a];for(r=e,a=e;a<t;a++)if(g(!0),i[a]!==c.skipOptionalPartCharacter){var o=_(r,i[a],!0,!0);!1!==o&&(g(!0),r=o.caret!==n?o.caret:o.pos+1)}}function D(t,i,a){for(var r,o=c.greedy?i:i.slice(0,1),s=!1,l=a!==n?a.split(","):[],u=0;u<l.length;u++)-1!==(r=t.indexOf(l[u]))&&t.splice(r,1);for(var p=0;p<t.length;p++)if(-1!==e.inArray(t[p],o)){s=!0;break}return s}function O(t,i,a,r,o){var s,l,u,p,f,m,d,k=e.extend(!0,{},h().validPositions),y=!1,x=o!==n?o:v();if(-1===x&&o===n)l=(p=S(s=0)).alternation;else for(;x>=0;x--)if((u=h().validPositions[x])&&u.alternation!==n){if(p&&p.locator[u.alternation]!==u.locator[u.alternation])break;s=x,l=h().validPositions[s].alternation,p=u}if(l!==n){d=parseInt(s),h().excludes[d]=h().excludes[d]||[],!0!==t&&h().excludes[d].push(b(p));var P=[],A=0;for(f=d;f<v(n,!0)+1;f++)(m=h().validPositions[f])&&!0!==m.generatedInput&&/[0-9a-bA-Z]/.test(m.input)?P.push(m.input):f<t&&A++,delete h().validPositions[f];for(;h().excludes[d]&&h().excludes[d].length<10;){var C=-1*A,M=P.slice();for(h().tests[d]=n,g(!0),y=!0;M.length>0;){var E=M.shift();if(E!==c.skipOptionalPartCharacter&&!(y=_(v(n,!0)+1,E,!1,r,!0)))break}if(y&&i!==n){var w=v(t)+1;for(f=d;f<v()+1;f++)((m=h().validPositions[f])===n||null==m.match.fn)&&f<t+C&&C++;y=_((t+=C)>w?w:t,i,a,r,!0)}if(y)break;if(g(),p=S(d),h().validPositions=e.extend(!0,{},k),!h().excludes[d]){y=O(t,i,a,r,d-1);break}var D=b(p);if(-1!==h().excludes[d].indexOf(D)){y=O(t,i,a,r,d-1);break}for(h().excludes[d].push(D),f=d;f<v(n,!0)+1;f++)delete h().validPositions[f]}}return h().excludes[d]=n,y}function _(t,i,r,o,s,l){function u(e){return X?e.begin-e.end>1||e.begin-e.end==1:e.end-e.begin>1||e.end-e.begin==1}function p(i,r,s){var l=!1;return e.each(C(i),function(p,f){var d=f.match;if(E(!0),!1!==(l=null!=d.fn?d.fn.test(r,h(),i,s,c,u(t)):(r===d.def||r===c.skipOptionalPartCharacter)&&""!==d.def&&{c:N(i,d,!0)||d.def,pos:i})){var y=l.c!==n?l.c:r;y=y===c.skipOptionalPartCharacter&&null===d.fn?N(i,d,!0)||d.def:y;var b=i,x=E();if(l.remove!==n&&(e.isArray(l.remove)||(l.remove=[l.remove]),e.each(l.remove.sort(function(e,t){return t-e}),function(e,t){k(t,t+1,!0)})),l.insert!==n&&(e.isArray(l.insert)||(l.insert=[l.insert]),e.each(l.insert.sort(function(e,t){return e-t}),function(e,t){_(t.pos,t.c,!0,o)})),l.refreshFromBuffer){var P=l.refreshFromBuffer;if(w(!0===P?P:P.start,P.end,x),l.pos===n&&l.c===n)return l.pos=v(),!1;if((b=l.pos!==n?l.pos:i)!==i)return l=e.extend(l,_(b,y,!0,o)),!1}else if(!0!==l&&l.pos!==n&&l.pos!==i&&(b=l.pos,w(i,b,E().slice()),b!==i))return l=e.extend(l,_(b,y,!0)),!1;return(!0===l||l.pos!==n||l.c!==n)&&(p>0&&g(!0),m(b,e.extend({}
6656,f,{input:function(t,i,n){switch(c.casing||i.casing){case"upper":t=t.toUpperCase();break;case"lower":t=t.toLowerCase();break;case"title":var r=h().validPositions[n-1];t=0===n||r&&r.input===String.fromCharCode(a.keyCode.SPACE)?t.toUpperCase():t.toLowerCase();break;default:if(e.isFunction(c.casing)){var o=Array.prototype.slice.call(arguments);o.push(h().validPositions),t=c.casing.apply(this,o)}}return t}(y,d,b)}),o,u(t))||(l=!1),!1)}}),l}function f(t,i,a){var r;if(t===n)for(t=i-1;t>0&&!h().validPositions[t];t--);for(var o=t;o<i;o++)if(h().validPositions[o]===n&&!j(o,!0)){var s=0==o?S(o):h().validPositions[o-1];if(s){var l,u=x(s),c=C(o).slice(),p=n,f=S(o);if(""===c[c.length-1].match.def&&c.pop(),e.each(c,function(e,t){l=x(t,u.length);var i=Math.abs(l-u);(p===n||i<p)&&null===t.match.fn&&!0!==t.match.optionality&&!0!==t.match.optionalQuantifier&&(p=i,f=t)}),(f=e.extend({},f,{input:N(o,f.match,!0)||f.match.def})).generatedInput=!0,m(o,f,!0),!0!==a){var d=h().validPositions[i].input;h().validPositions[i]=n,r=_(i,d,!0,!0)}}}return r}function m(t,i,a,r){if(r||c.insertMode&&h().validPositions[t]!==n&&a===n){var o,s=e.extend(!0,{},h().validPositions),l=v(n,!0);for(o=t;o<=l;o++)delete h().validPositions[o];h().validPositions[t]=e.extend(!0,{},i);var u,p=!0,m=h().validPositions,d=!1;for(o=u=t;o<=l;o++){var k=s[o];if(k!==n)for(var y=u;""!==S(y).match.def&&(null===k.match.fn&&m[o]&&(!0===m[o].match.optionalQuantifier||!0===m[o].match.optionality)||null!=k.match.fn);){if(y++,!1===d&&s[y]&&s[y].match.def===k.match.def)h().validPositions[y]=e.extend(!0,{},s[y]),h().validPositions[y].input=k.input,f(n,y,!0),u=y,p=!0;else if(A(y,k.match.def)){var b=_(y,k.input,!0,!0);p=!1!==b,u=b.caret||b.insert?v():y,d=!0}else if(!(p=!0===k.generatedInput)&&""===S(y).match.def)break;if(p)break}if(!p)break}if(!p)return h().validPositions=e.extend(!0,{},s),g(!0),!1}else h().validPositions[t]=e.extend(!0,{},i);return g(!0),!0}r=!0===r;var d=t;t.begin!==n&&(d=X&&!u(t)?t.end:t.begin);var y=!0,b=e.extend(!0,{},h().validPositions);if(e.isFunction(c.preValidation)&&!r&&!0!==o&&!0!==l&&(y=c.preValidation(E(),d,i,u(t),c)),!0===y){if(f(n,d,!0),u(t)&&(K(0,a.keyCode.DELETE,t,!0,!0),d=h().p),($===n||d<$)&&(y=p(d,i,r),(!r||!0===o)&&!1===y&&!0!==l)){var P=h().validPositions[d];if(!P||null!==P.match.fn||P.match.def!==i&&i!==c.skipOptionalPartCharacter){if((c.insertMode||h().validPositions[F(d)]===n)&&!j(d,!0))for(var M=d+1,D=F(d);M<=D;M++)if(!1!==(y=p(M,i,r))){y=f(d,y.pos!==n?y.pos:M)||y,d=M;break}}else y={caret:F(d)}}!1!==y||null===c.keepStatic||!1===c.keepStatic||r||!0===s||(y=O(d,i,r,o)),!0===y&&(y={pos:d})}if(e.isFunction(c.postValidation)&&!1!==y&&!r&&!0!==o&&!0!==l){var T=c.postValidation(E(!0),y,c);if(T!==n){if(T.refreshFromBuffer&&T.buffer){var R=T.refreshFromBuffer;w(!0===R?R:R.start,R.end,T.buffer)}y=!0===T?y:T}}return y&&y.pos===n&&(y.pos=d),!1!==y&&!0!==l||(g(!0),h().validPositions=e.extend(!0,{},b)),y}function j(e,t){var i=P(e).match;if(""===i.def&&(i=S(e).match),null!=i.fn)return i.fn;if(!0!==t&&e>-1){var n=C(e);return n.length>1+(""===n[n.length-1].match.def?1:0)}return!1}function F(e,t){for(var i=e+1;""!==S(i).match.def&&(!0===t&&(!0!==S(i).match.newBlockMarker||!j(i))||!0!==t&&!j(i));)i++;return i}function T(e,t){var i,n=e;if(n<=0)return 0;for(;--n>0&&(!0===t&&!0!==S(n).match.newBlockMarker||!0!==t&&!j(n)&&((i=C(n)).length<2||2===i.length&&""===i[1].match.def)););return n}function R(t,i,a,r,o){if(r&&e.isFunction(c.onBeforeWrite)){var s=c.onBeforeWrite.call(J,r,i,a,c);if(s){if(s.refreshFromBuffer){var l=s.refreshFromBuffer;w(!0===l?l:l.start,l.end,s.buffer||i),i=E(!0)}a!==n&&(a=s.caret!==n?s.caret:a)}}t!==n&&(t.inputmask._valueSet(i.join("")),a===n||r!==n&&"blur"===r.type?z(t,a,0===i.length):I(t,a),!0===o&&(te=!0,e(t).trigger("input")))}function N(t,i,a){if((i=i||S(t).match).placeholder!==n||!0===a)return e.isFunction(i.placeholder)?i.placeholder(c):i.placeholder;if(null===i.fn){if(t>-1&&h().validPositions[t]===n){var r,o=C(t),s=[];if(o.length>1+(""===o[o.length-1].match.def?1:0))for(var l=0;l<o.length;l++)if(!0!==o[l].match.optionality&&!0!==o[l].match.optionalQuantifier&&(null===o[l].match.fn||r===n||!1!==o[l].match.fn.test(r.match.def,h(),t,!0,c))&&(s.push(o[l]),null===o[l].match.fn&&(r=o[l]),s.length>1&&/[0-9a-bA-Z]/.test(s[0].match.def)))return c.placeholder.charAt(t%c.placeholder.length)}return i.def}return c.placeholder.charAt(t%c.placeholder.length)}function G(t,i,r,o,s){var l=o.slice(),u="",p=-1,f=n;if(g(),r||!0===c.autoUnmask)p=F(p);else{var m=M().slice(0,F(-1)).join(""),k=l.join("").match(new RegExp("^"+a.escapeRegex(m),"g"));k&&k.length>0&&(l.splice(0,k.length*m.length),p=F(p))}-1===p?(h().p=F(p),p=0):h().p=p,e.each(l,function(i,a){if(a!==n)if(h().validPositions[i]===n&&l[i]===N(i)&&j(i,!0)&&!1===_(i,l[i],!0,n,n,!0))h().p++;else{var o=new e.Event("_checkval");
6656o.which=a.charCodeAt(0),u+=a;var s=v(n,!0),m=S(s),g=P(s+1,m?m.locator.slice():n,s);if(y=p,b=u,-1===d(!0,0,!1).slice(y,F(y)).join("").indexOf(b)||j(y)||S(y).match.nativeDef!==b.charAt(0)&&(" "!==S(y).match.nativeDef||S(y+1).match.nativeDef!==b.charAt(0))||r||c.autoUnmask){var k=r?i:null==g.match.fn&&g.match.optionality&&s+1<h().p?s+1:h().p;(f=oe.keypressEvent.call(t,o,!0,!1,r,k))&&(p=k+1,u="")}else f=oe.keypressEvent.call(t,o,!0,!1,!0,s+1);R(n,E(),f.forwardPosition,o,!1)}var y,b}),i&&R(t,E(),f?f.forwardPosition:n,s||new e.Event("checkval"),s&&"input"===s.type)}function B(t){if(t){if(t.inputmask===n)return t.value;t.inputmask&&t.inputmask.refreshValue&&oe.setValueEvent.call(t)}var i=[],a=h().validPositions;for(var r in a)a[r].match&&null!=a[r].match.fn&&i.push(a[r].input);var o=0===i.length?"":(X?i.reverse():i).join("");if(e.isFunction(c.onUnMask)){var s=(X?E().slice().reverse():E()).join("");o=c.onUnMask.call(J,s,o,c)}return o}function I(a,r,o,s){function l(e){return!0===s||!X||"number"!=typeof e||c.greedy&&""===c.placeholder||(e=a.inputmask.__valueGet.call(a).length-e),e}var u;if(r===n)return a.setSelectionRange?(r=a.selectionStart,o=a.selectionEnd):t.getSelection?(u=t.getSelection().getRangeAt(0)).commonAncestorContainer.parentNode!==a&&u.commonAncestorContainer!==a||(r=u.startOffset,o=u.endOffset):i.selection&&i.selection.createRange&&(o=(r=0-(u=i.selection.createRange()).duplicate().moveStart("character",-a.inputmask._valueGet().length))+u.text.length),{begin:l(r),end:l(o)};if(e.isArray(r)&&(o=X?r[0]:r[1],r=X?r[1]:r[0]),r.begin!==n&&(o=X?r.begin:r.end,r=X?r.end:r.begin),"number"==typeof r){r=l(r),o="number"==typeof(o=l(o))?o:r;var p=parseInt(((a.ownerDocument.defaultView||t).getComputedStyle?(a.ownerDocument.defaultView||t).getComputedStyle(a,null):a.currentStyle).fontSize)*o;if(a.scrollLeft=p>a.scrollWidth?p:0,!1===c.insertMode&&r===o&&o++,a.inputmask.caretPos={begin:r,end:o},a.setSelectionRange)a.selectionStart=r,a.selectionEnd=o;else if(t.getSelection){if(u=i.createRange(),a.firstChild===n||null===a.firstChild){var f=i.createTextNode("");a.appendChild(f)}u.setStart(a.firstChild,r<a.inputmask._valueGet().length?r:a.inputmask._valueGet().length),u.setEnd(a.firstChild,o<a.inputmask._valueGet().length?o:a.inputmask._valueGet().length),u.collapse(!0);var m=t.getSelection();m.removeAllRanges(),m.addRange(u)}else a.createTextRange&&((u=a.createTextRange()).collapse(!0),u.moveEnd("character",o),u.moveStart("character",r),u.select());z(a,{begin:r,end:o})}}function L(t){var i,a,r=E(),o=r.length,s=v(),l={},u=h().validPositions[s],c=u!==n?u.locator.slice():n;for(i=s+1;i<r.length;i++)c=(a=P(i,c,i-1)).locator.slice(),l[i]=e.extend(!0,{},a);var p=u&&u.alternation!==n?u.locator[u.alternation]:n;for(i=o-1;i>s&&((a=l[i]).match.optionality||a.match.optionalQuantifier&&a.match.newBlockMarker||p&&(p!==l[i].locator[u.alternation]&&null!=a.match.fn||null===a.match.fn&&a.locator[u.alternation]&&D(a.locator[u.alternation].toString().split(","),p.toString().split(","))&&""!==C(i)[0].def))&&r[i]===N(i,a.match);i--)o--;return t?{l:o,def:l[o]?l[o].match:n}:o}function H(e){for(var t,i=L(),a=e.length,r=h().validPositions[v()];i<a&&!j(i,!0)&&(t=r!==n?P(i,r.locator.slice(""),r):S(i))&&!0!==t.match.optionality&&(!0!==t.match.optionalQuantifier&&!0!==t.match.newBlockMarker||i+1===a&&""===(r!==n?P(i+1,r.locator.slice(""),r):S(i+1)).match.def);)i++;for(;(t=h().validPositions[i-1])&&t&&t.match.optionality&&t.input===c.skipOptionalPartCharacter;)i--;return e.splice(i),e}function V(t){if(e.isFunction(c.isComplete))return c.isComplete(t,c);if("*"===c.repeat)return n;var i=!1,a=L(!0),r=T(a.l);if(a.def===n||a.def.newBlockMarker||a.def.optionality||a.def.optionalQuantifier){i=!0;for(var o=0;o<=r;o++){var s=P(o).match;if(null!==s.fn&&h().validPositions[o]===n&&!0!==s.optionality&&!0!==s.optionalQuantifier||null===s.fn&&t[o]!==N(o,s)){i=!1;break}}}return i}function K(e,t,i,r,o){if((c.numericInput||X)&&(t===a.keyCode.BACKSPACE?t=a.keyCode.DELETE:t===a.keyCode.DELETE&&(t=a.keyCode.BACKSPACE),X)){var s=i.end;i.end=i.begin,i.begin=s}if(t===a.keyCode.BACKSPACE&&(i.end-i.begin<1||!1===c.insertMode)?(i.begin=T(i.begin),h().validPositions[i.begin]!==n&&h().validPositions[i.begin].input===c.groupSeparator&&i.begin--):t===a.keyCode.DELETE&&i.begin===i.end&&(i.end=j(i.end,!0)&&h().validPositions[i.end]&&h().validPositions[i.end].input!==c.radixPoint?i.end+1:F(i.end)+1,h().validPositions[i.begin]!==n&&h().validPositions[i.begin].input===c.groupSeparator&&i.end++),k(i.begin,i.end,!1,r),!0!==r&&null!==c.keepStatic&&!1!==c.keepStatic){var l=O(!0);l&&(i.begin=l.caret!==n?l.caret:l.pos?F(l.pos.begin?l.pos.begin:l.pos):v(-1,!0))}var u=v(i.begin,!0);if(u<i.begin||-1===i.begin)h().p=F(u);else if(!0!==r&&(h().p=i.begin,!0!==o))for(;h().p<u&&h().validPositions[h().p]===n;)h().p++}function U(n){var a=(n.ownerDocument.defaultView||t).getComputedStyle(n,null),r=i.createElement("div");r.style.width=a.width,r.style.textAlign=a.textAlign,q=i.createElement("div"),n.inputmask.colorMask=q,q.className="im-colormask",n.parentNode.insertBefore(q,n),n.parentNode.removeChild(n),q.appendChild(r),q.appendChild(n),n.style.left=r.offsetLeft+"px",e(n).on("click",function(e){return I(n,function(e){var t,r=i.createElement("span");for(var o in a)isNaN(o)&&-1!==o.indexOf("font")&&(r.style[o]=a[o]);r.style.textTransform=a.textTransform,r.style.letterSpacing=a.letterSpacing,r.style.position="absolute",r.style.height="auto",r.style.width="auto",r.style.visibility="hidden",r.style.whiteSpace="nowrap",i.body.appendChild(r);var s,l=n.inputmask._valueGet(),u=0;for(t=0,s=l.length;t<=s;t++){if(r.innerHTML+=l.charAt(t)||"_",r.offsetWidth>=e){var c=e-u,p=r.offsetWidth-e;r.innerHTML=l.charAt(t),t=(c-=r.offsetWidth/3)<p?t-1:t;break}u=r.offsetWidth}return i.body.removeChild(r),t}(e.clientX)),oe.clickEvent.call(n,[e])}),e(n).on("keydown",function(e){e.shiftKey||!1===c.insertMode||setTimeout(function(){z(n)},0)})}function z(e,t,a){function r(e){if(e===n&&(e=""),p||null!==o.fn&&s.input!==n)if(p&&(null!==o.fn&&s.input!==n||""===o.def)){p=!1;var t=u.length;u[t-1]=u[t-1]+"</span>",u.push(e)}else u.push(e);else p=!0,u.push("<span class='im-static'>"+e)}var o,s,l,u=[],p=!1,f=0;if(q!==n){var m=E();if(t===n?t=I(e):t.begin===n&&(t={begin:t,end:t}),!0!==a){var d=v();
6656do{h().validPositions[f]?(s=h().validPositions[f],o=s.match,l=s.locator.slice(),r(m[f])):(s=P(f,l,f-1),o=s.match,l=s.locator.slice(),(!1===c.jitMasking||f<d||"number"==typeof c.jitMasking&&isFinite(c.jitMasking)&&c.jitMasking>f)&&r(N(f,o))),f++}while(($===n||f<$)&&(null!==o.fn||""!==o.def)||d>f||p);p&&r(),i.activeElement===e&&(u.splice(t.begin,0,t.begin===t.end?'<mark class="im-caret" style="border-right-width: 1px;border-right-style: solid;">':'<mark class="im-caret-select">'),u.splice(t.end+1,0,"</mark>"))}var g=q.getElementsByTagName("div")[0];g.innerHTML=u.join(""),e.inputmask.positionColorMask(e,g)}}s=s||this.maskset,c=c||this.opts;var Q,W,$,q,Z,J=this,Y=this.el,X=this.isRTL,ee=!1,te=!1,ie=!1,ne=!1,ae=!1,re={on:function(t,i,r){var o=function(t){var i=this;if(i.inputmask===n&&"FORM"!==this.nodeName){var o=e.data(i,"_inputmask_opts");o?new a(o).mask(i):re.off(i)}else{if("setvalue"===t.type||"FORM"===this.nodeName||!(i.disabled||i.readOnly&&!("keydown"===t.type&&t.ctrlKey&&67===t.keyCode||!1===c.tabThrough&&t.keyCode===a.keyCode.TAB))){switch(t.type){case"input":if(!0===te)return te=!1,t.preventDefault();p&&(ae=!0);break;case"keydown":ee=!1,te=!1;break;case"keypress":if(!0===ee)return t.preventDefault();ee=!0;break;case"click":if(f||m){var s=arguments;return setTimeout(function(){r.apply(i,s)},0),!1}}var l=r.apply(i,arguments);return ae&&(ae=!1,setTimeout(function(){I(i,i.inputmask.caretPos,n,!0)})),!1===l&&(t.preventDefault(),t.stopPropagation()),l}t.preventDefault()}};t.inputmask.events[i]=t.inputmask.events[i]||[],t.inputmask.events[i].push(o),-1!==e.inArray(i,["submit","reset"])?null!==t.form&&e(t.form).on(i,o):e(t).on(i,o)},off:function(t,i){var n;t.inputmask&&t.inputmask.events&&(i?(n=[])[i]=t.inputmask.events[i]:n=t.inputmask.events,e.each(n,function(i,n){for(;n.length>0;){var a=n.pop();-1!==e.inArray(i,["submit","reset"])?null!==t.form&&e(t.form).off(i,a):e(t).off(i,a)}delete t.inputmask.events[i]}))}},oe={keydownEvent:function(t){var i=this,n=e(i),r=t.keyCode,o=I(i);if(r===a.keyCode.BACKSPACE||r===a.keyCode.DELETE||m&&r===a.keyCode.BACKSPACE_SAFARI||t.ctrlKey&&r===a.keyCode.X&&!l("cut"))t.preventDefault(),K(0,r,o),R(i,E(!0),h().p,t,i.inputmask._valueGet()!==E().join("")),i.inputmask._valueGet()===M().join("")?n.trigger("cleared"):!0===V(E())&&n.trigger("complete");else if(r===a.keyCode.END||r===a.keyCode.PAGE_DOWN){t.preventDefault();var s=F(v());c.insertMode||s!==h().maskLength||t.shiftKey||s--,I(i,t.shiftKey?o.begin:s,s,!0)}else r===a.keyCode.HOME&&!t.shiftKey||r===a.keyCode.PAGE_UP?(t.preventDefault(),I(i,0,t.shiftKey?o.begin:0,!0)):(c.undoOnEscape&&r===a.keyCode.ESCAPE||90===r&&t.ctrlKey)&&!0!==t.altKey?(G(i,!0,!1,Q.split("")),n.trigger("click")):r!==a.keyCode.INSERT||t.shiftKey||t.ctrlKey?!0===c.tabThrough&&r===a.keyCode.TAB?(!0===t.shiftKey?(null===S(o.begin).match.fn&&(o.begin=F(o.begin)),o.end=T(o.begin,!0),o.begin=T(o.end,!0)):(o.begin=F(o.begin,!0),o.end=F(o.begin,!0),o.end<h().maskLength&&o.end--),o.begin<h().maskLength&&(t.preventDefault(),I(i,o.begin,o.end))):t.shiftKey||!1===c.insertMode&&(r===a.keyCode.RIGHT?setTimeout(function(){var e=I(i);I(i,e.begin)},0):r===a.keyCode.LEFT&&setTimeout(function(){var e=I(i);I(i,X?e.begin+1:e.begin-1)},0)):(c.insertMode=!c.insertMode,I(i,c.insertMode||o.begin!==h().maskLength?o.begin:o.begin-1));c.onKeyDown.call(this,t,E(),I(i).begin,c),ie=-1!==e.inArray(r,c.ignorables)},keypressEvent:function(t,i,r,o,s){var l=this,u=e(l),p=t.which||t.charCode||t.keyCode;if(!(!0===i||t.ctrlKey&&t.altKey)&&(t.ctrlKey||t.metaKey||ie))return p===a.keyCode.ENTER&&Q!==E().join("")&&(Q=E().join(""),setTimeout(function(){u.trigger("change")},0)),!0;if(p){46===p&&!1===t.shiftKey&&""!==c.radixPoint&&(p=c.radixPoint.charCodeAt(0));var f,m=i?{begin:s,end:s}:I(l),d=String.fromCharCode(p);h().writeOutBuffer=!0;var v=_(m,d,o);if(!1!==v&&(g(!0),f=v.caret!==n?v.caret:F(v.pos.begin?v.pos.begin:v.pos),h().p=f),f=c.numericInput&&v.caret===n?T(f):f,!1!==r&&(setTimeout(function(){c.onKeyValidation.call(l,p,v,c)},0),h().writeOutBuffer&&!1!==v)){var k=E();R(l,k,f,t,!0!==i),!0!==i&&setTimeout(function(){!0===V(k)&&u.trigger("complete")},0)}if(t.preventDefault(),i)return!1!==v&&(v.forwardPosition=f),v}},pasteEvent:function(i){var n,a=this,r=i.originalEvent||i,o=e(a),s=a.inputmask._valueGet(!0),l=I(a);X&&(n=l.end,l.end=l.begin,l.begin=n);var u=s.substr(0,l.begin),p=s.substr(l.end,s.length);if(u===(X?M().reverse():M()).slice(0,l.begin).join("")&&(u=""),p===(X?M().reverse():M()).slice(l.end).join("")&&(p=""),X&&(n=u,u=p,p=n),t.clipboardData&&t.clipboardData.getData)s=u+t.clipboardData.getData("Text")+p;else{if(!r.clipboardData||!r.clipboardData.getData)return!0;s=u+r.clipboardData.getData("text/plain")+p}var f=s;if(e.isFunction(c.onBeforePaste)){if(!1===(f=c.onBeforePaste.call(J,s,c)))return i.preventDefault();f||(f=s)}return G(a,!1,!1,X?f.split("").reverse():f.toString().split("")),R(a,E(),F(v()),i,Q!==E().join("")),!0===V(E())&&o.trigger("complete"),i.preventDefault()},inputFallBackEvent:function(t){var i,n,r=this,o=r.inputmask._valueGet();if(E().join("")!==o){var s=I(r);if(n=s,"."===(i=o).charAt(n.begin-1)&&""!==c.radixPoint&&((i=i.split(""))[n.begin-1]=c.radixPoint.charAt(0),i=i.join("")),o=function(e,t,i){if(f){var n=t.replace(E().join(""),"");if(1===n.length){var a=t.split("");
6656a.splice(i.begin,0,n),t=a.join("")}}return t}(0,o=i,s),E().join("")!==o){var l=E().join(""),u=o.length>l.length?-1:0,p=o.substr(0,s.begin),m=o.substr(s.begin),d=l.substr(0,s.begin+u),h=l.substr(s.begin+u),g=s,v="",k=!1;if(p!==d){for(var y=(k=p.length>=d.length)?p.length:d.length,b=0;p.charAt(b)===d.charAt(b)&&b<y;b++);k&&(0===u&&(g.begin=b),v+=p.slice(b,g.end))}if(m!==h&&(m.length>h.length?v+=m.slice(0,1):m.length<h.length&&(g.end+=h.length-m.length,k||""===c.radixPoint||""!==m||p.charAt(g.begin+u-1)!==c.radixPoint||(g.begin--,v=c.radixPoint))),R(r,E(),{begin:g.begin+u,end:g.end+u}),v.length>0)e.each(v.split(""),function(t,i){var n=new e.Event("keypress");n.which=i.charCodeAt(0),ie=!1,oe.keypressEvent.call(r,n)});else{g.begin===g.end-1&&(g.begin=T(g.begin+1),g.begin===g.end-1?I(r,g.begin):I(r,g.begin,g.end));var x=new e.Event("keydown");x.keyCode=a.keyCode.DELETE,oe.keydownEvent.call(r,x),!1===c.insertMode&&I(r,I(r).begin-1)}t.preventDefault()}}},setValueEvent:function(t){this.inputmask.refreshValue=!1;var i=this.inputmask._valueGet(!0);e.isFunction(c.onBeforeMask)&&(i=c.onBeforeMask.call(J,i,c)||i),i=i.split(""),G(this,!0,!1,X?i.reverse():i),Q=E().join(""),(c.clearMaskOnLostFocus||c.clearIncomplete)&&this.inputmask._valueGet()===M().join("")&&this.inputmask._valueSet("")},focusEvent:function(e){var t=this,i=t.inputmask._valueGet();c.showMaskOnFocus&&(!c.showMaskOnHover||c.showMaskOnHover&&""===i)&&(t.inputmask._valueGet()!==E().join("")?R(t,E(),F(v())):!1===ne&&I(t,F(v()))),!0===c.positionCaretOnTab&&!1===ne&&oe.clickEvent.apply(t,[e,!0]),Q=E().join("")},mouseleaveEvent:function(e){if(ne=!1,c.clearMaskOnLostFocus&&i.activeElement!==this){var t=E().slice(),n=this.inputmask._valueGet();n!==this.getAttribute("placeholder")&&""!==n&&(-1===v()&&n===M().join("")?t=[]:H(t),R(this,t))}},clickEvent:function(t,a){var r=this;setTimeout(function(){if(i.activeElement===r){var t=I(r);if(a&&(X?t.end=t.begin:t.begin=t.end),t.begin===t.end)switch(c.positionCaretOnClick){case"none":break;case"select":I(r,0,E().length);break;case"radixFocus":if(function(t){if(""!==c.radixPoint){var i=h().validPositions;if(i[t]===n||i[t].input===N(t)){if(t<F(-1))return!0;var a=e.inArray(c.radixPoint,E());if(-1!==a){for(var r in i)if(a<r&&i[r].input!==N(r))return!1;return!0}}}return!1}(t.begin)){var o=E().join("").indexOf(c.radixPoint);I(r,c.numericInput?F(o):o);break}default:var s=t.begin,l=v(s,!0),u=F(l);if(s<u)I(r,j(s,!0)||j(s-1,!0)?s:F(s));
6656else{var p=h().validPositions[l],f=P(u,p?p.match.locator:n,p),m=N(u,f.match);if(""!==m&&E()[u]!==m&&!0!==f.match.optionalQuantifier&&!0!==f.match.newBlockMarker||!j(u,!0)&&f.match.def===m){var d=F(u);(s>=d||s===u)&&(u=d)}I(r,u)}}}},0)},dblclickEvent:function(e){var t=this;setTimeout(function(){I(t,0,F(v()))},0)},cutEvent:function(n){var r=e(this),o=I(this),s=n.originalEvent||n,l=t.clipboardData||s.clipboardData,u=X?E().slice(o.end,o.begin):E().slice(o.begin,o.end);l.setData("text",X?u.reverse().join(""):u.join("")),i.execCommand&&i.execCommand("copy"),K(0,a.keyCode.DELETE,o),R(this,E(),h().p,n,Q!==E().join("")),this.inputmask._valueGet()===M().join("")&&r.trigger("cleared")},blurEvent:function(t){var i=e(this);if(this.inputmask){var a=this.inputmask._valueGet(),r=E().slice();""===a&&q===n||(c.clearMaskOnLostFocus&&(-1===v()&&a===M().join("")?r=[]:H(r)),!1===V(r)&&(setTimeout(function(){i.trigger("incomplete")},0),c.clearIncomplete&&(g(),r=c.clearMaskOnLostFocus?[]:M().slice())),R(this,r,n,t)),Q!==E().join("")&&(Q=r.join(""),i.trigger("change"))}},mouseenterEvent:function(e){ne=!0,i.activeElement!==this&&c.showMaskOnHover&&this.inputmask._valueGet()!==E().join("")&&R(this,E())},submitEvent:function(e){Q!==E().join("")&&W.trigger("change"),c.clearMaskOnLostFocus&&-1===v()&&Y.inputmask._valueGet&&Y.inputmask._valueGet()===M().join("")&&Y.inputmask._valueSet(""),c.removeMaskOnSubmit&&(Y.inputmask._valueSet(Y.inputmask.unmaskedvalue(),!0),setTimeout(function(){R(Y,E())},0))},resetEvent:function(e){Y.inputmask.refreshValue=!0,setTimeout(function(){W.trigger("setvalue")},0)}};if(a.prototype.positionColorMask=function(e,t){e.style.left=t.offsetLeft+"px"},r!==n)switch(r.action){case"isComplete":return Y=r.el,V(E());case"unmaskedvalue":return Y!==n&&r.value===n||(Z=r.value,Z=(e.isFunction(c.onBeforeMask)&&c.onBeforeMask.call(J,Z,c)||Z).split(""),G(n,!1,!1,X?Z.reverse():Z),e.isFunction(c.onBeforeWrite)&&c.onBeforeWrite.call(J,n,E(),0,c)),B(Y);case"mask":!function(t){re.off(t);var a=function(t,a){var r=t.getAttribute("type"),s="INPUT"===t.tagName&&-1!==e.inArray(r,a.supportsInputType)||t.isContentEditable||"TEXTAREA"===t.tagName;if(!s)if("INPUT"===t.tagName){var l=i.createElement("input");l.setAttribute("type",r),s="text"===l.type,l=null}else s="partial";return!1!==s?function(t){function r(){return this.inputmask?this.inputmask.opts.autoUnmask?this.inputmask.unmaskedvalue():-1!==v()||!0!==a.nullable?i.activeElement===this&&a.clearMaskOnLostFocus?(X?H(E().slice()).reverse():H(E().slice())).join(""):l.call(this):"":l.call(this)}function s(t){u.call(this,t),this.inputmask&&e(this).trigger("setvalue")}var l,u,c;if(!t.inputmask.__valueGet){if(!0!==a.noValuePatching){if(Object.getOwnPropertyDescriptor){"function"!=typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===o("test".__proto__)?function(e){return e.__proto__}:function(e){return e.constructor.prototype});var p=Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t),"value"):n;p&&p.get&&p.set?(l=p.get,u=p.set,Object.defineProperty(t,"value",{get:r,set:s,configurable:!0})):"INPUT"!==t.tagName&&(l=function(){return this.textContent},u=function(e){this.textContent=e},Object.defineProperty(t,"value",{get:r,set:s,configurable:!0}))}else i.__lookupGetter__&&t.__lookupGetter__("value")&&(l=t.__lookupGetter__("value"),u=t.__lookupSetter__("value"),t.__defineGetter__("value",r),t.__defineSetter__("value",s));t.inputmask.__valueGet=l,t.inputmask.__valueSet=u}t.inputmask._valueGet=function(e){return X&&!0!==e?l.call(this.el).split("").reverse().join(""):l.call(this.el)},t.inputmask._valueSet=function(e,t){u.call(this.el,null===e||e===n?"":!0!==t&&X?e.split("").reverse().join(""):e)},l===n&&(l=function(){return this.value},u=function(e){this.value=e},function(t){if(e.valHooks&&(e.valHooks[t]===n||!0!==e.valHooks[t].inputmaskpatch)){var i=e.valHooks[t]&&e.valHooks[t].get?e.valHooks[t].get:function(e){return e.value},r=e.valHooks[t]&&e.valHooks[t].set?e.valHooks[t].set:function(e,t){return e.value=t,e};e.valHooks[t]={get:function(e){if(e.inputmask){if(e.inputmask.opts.autoUnmask)return e.inputmask.unmaskedvalue();var t=i(e);return-1!==v(n,n,e.inputmask.maskset.validPositions)||!0!==a.nullable?t:""}return i(e)},set:function(t,i){var n,a=e(t);return n=r(t,i),t.inputmask&&a.trigger("setvalue"),n},inputmaskpatch:!0}}}(t.type),c=t,re.on(c,"mouseenter",function(t){var i=e(this);this.inputmask._valueGet()!==E().join("")&&i.trigger("setvalue")}))}}(t):t.inputmask=n,s}(t,c);if(!1!==a&&(W=e(Y=t),-1===($=Y!==n?Y.maxLength:n)&&($=n),!0===c.colorMask&&U(Y),p&&("inputmode"in Y&&(Y.inputmode=c.inputmode,Y.setAttribute("inputmode",c.inputmode)),!0===c.disablePredictiveText&&("autocorrect"in Y?Y.autocorrect=!1:(!0!==c.colorMask&&U(Y),Y.type="password"))),!0===a&&(re.on(Y,"submit",oe.submitEvent),re.on(Y,"reset",oe.resetEvent),re.on(Y,"mouseenter",oe.mouseenterEvent),re.on(Y,"blur",oe.blurEvent),re.on(Y,"focus",oe.focusEvent),re.on(Y,"mouseleave",oe.mouseleaveEvent),!0!==c.colorMask&&re.on(Y,"click",oe.clickEvent),re.on(Y,"dblclick",oe.dblclickEvent),re.on(Y,"paste",oe.pasteEvent),re.on(Y,"dragdrop",oe.pasteEvent),re.on(Y,"drop",oe.pasteEvent),re.on(Y,"cut",oe.cutEvent),re.on(Y,"complete",c.oncomplete),re.on(Y,"incomplete",c.onincomplete),re.on(Y,"cleared",c.oncleared),p||!0===c.inputEventOnly?Y.removeAttribute("maxLength"):(re.on(Y,"keydown",oe.keydownEvent),re.on(Y,"keypress",oe.keypressEvent)),re.on(Y,"compositionstart",e.noop),re.on(Y,"compositionupdate",e.noop),re.on(Y,"compositionend",e.noop),re.on(Y,"keyup",e.noop),re.on(Y,"input",oe.inputFallBackEvent),re.on(Y,"beforeinput",e.noop)),re.on(Y,"setvalue",oe.setValueEvent),Q=M().join(""),""!==Y.inputmask._valueGet(!0)||!1===c.clearMaskOnLostFocus||i.activeElement===Y)){var r=e.isFunction(c.onBeforeMask)&&c.onBeforeMask.call(J,Y.
6656inputmask._valueGet(!0),c)||Y.inputmask._valueGet(!0);""!==r&&G(Y,!0,!1,X?r.split("").reverse():r.split(""));var s=E().slice();Q=s.join(""),!1===V(s)&&c.clearIncomplete&&g(),c.clearMaskOnLostFocus&&i.activeElement!==Y&&(-1===v()?s=[]:H(s)),R(Y,s),i.activeElement===Y&&I(Y,F(v()))}}(Y);break;case"format":return Z=(e.isFunction(c.onBeforeMask)&&c.onBeforeMask.call(J,r.value,c)||r.value).split(""),G(n,!0,!1,X?Z.reverse():Z),r.metadata?{value:X?E().slice().reverse().join(""):E().join(""),metadata:u.call(this,{action:"getmetadata"},s,c)}:X?E().slice().reverse().join(""):E().join("");case"isValid":r.value?(Z=r.value.split(""),G(n,!0,!0,X?Z.reverse():Z)):r.value=E().join("");for(var se=E(),le=L(),ue=se.length-1;ue>le&&!j(ue);ue--);return se.splice(le,ue+1-le),V(se)&&r.value===E().join("");case"getemptymask":return M().join("");case"remove":return Y&&Y.inputmask&&(W=e(Y),Y.inputmask._valueSet(c.autoUnmask?B(Y):Y.inputmask._valueGet(!0)),re.off(Y),Y.inputmask.colorMask&&((q=Y.inputmask.colorMask).removeChild(Y),q.parentNode.insertBefore(Y,q),q.parentNode.removeChild(q)),Object.getOwnPropertyDescriptor&&Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Y),"value")&&Y.inputmask.__valueGet&&Object.defineProperty(Y,"value",{get:Y.inputmask.__valueGet,set:Y.inputmask.__valueSet,configurable:!0}):i.__lookupGetter__&&Y.__lookupGetter__("value")&&Y.inputmask.__valueGet&&(Y.__defineGetter__("value",Y.inputmask.__valueGet),Y.__defineSetter__("value",Y.inputmask.__valueSet)),Y.inputmask=n),Y;case"getmetadata":if(e.isArray(s.metadata)){var ce=d(!0,0,!1).join("");return e.each(s.metadata,function(e,t){if(t.mask===ce)return ce=t,!1}),ce}return s.metadata}}var c=navigator.userAgent,p=l("touchstart"),f=/iemobile/i.test(c),m=/iphone/i.test(c)&&!f;return a.prototype={dataAttribute:"data-inputmask",defaults:{placeholder:"_",optionalmarker:["[","]"],quantifiermarker:["{","}"],groupmarker:["(",")"],alternatormarker:"|",escapeChar:"\\",mask:null,regex:null,oncomplete:e.noop,onincomplete:e.noop,oncleared:e.noop,repeat:0,greedy:!0,autoUnmask:!1,removeMaskOnSubmit:!1,clearMaskOnLostFocus:!0,insertMode:!0,clearIncomplete:!1,alias:null,onKeyDown:e.noop,onBeforeMask:null,onBeforePaste:function(t,i){return e.isFunction(i.onBeforeMask)?i.onBeforeMask.call(this,t,i):t},onBeforeWrite:null,onUnMask:null,showMaskOnFocus:!0,showMaskOnHover:!0,onKeyValidation:e.noop,skipOptionalPartCharacter:" ",numericInput:!1,rightAlign:!1,undoOnEscape:!0,radixPoint:"",radixPointDefinitionSymbol:n,groupSeparator:"",keepStatic:null,positionCaretOnTab:!0,tabThrough:!1,supportsInputType:["text","tel","password","search"],ignorables:[8,9,13,19,27,33,34,35,36,37,38,39,40,45,46,93,112,113,114,115,116,117,118,119,120,121,122,123,0,229],isComplete:null,canClearPosition:e.noop,preValidation:null,postValidation:null,staticDefinitionSymbol:n,jitMasking:!1,nullable:!0,inputEventOnly:!1,noValuePatching:!1,positionCaretOnClick:"lvp",casing:null,inputmode:"verbatim",colorMask:!1,disablePredictiveText:!1,importDataAttributes:!0},definitions:{9:{validator:"[0-91-9]",definitionSymbol:"*"},a:{validator:"[A-Za-zÀ-ÿ¨¸A-yµ]",definitionSymbol:"*"},"*":{validator:"[0-91-9A-Za-zÀ-ÿ¨¸A-yµ]"}},aliases:{},masksCache:{},mask:function(o){var l=this;return"string"==typeof o&&(o=i.getElementById(o)||i.querySelectorAll(o)),o=o.nodeName?[o]:o,e.each(o,function(i,o){var c=e.extend(!0,{},l.opts);if(function(i,a,o,s){if(!0===a.importDataAttributes){var l,u,c,p,f=function(e,a){null!==(a=a!==n?a:i.getAttribute(s+"-"+e))&&("string"==typeof a&&(0===e.indexOf("on")?a=t[a]:"false"===a?a=!1:"true"===a&&(a=!0)),o[e]=a)},m=i.getAttribute(s);if(m&&""!==m&&(m=m.replace(/'/g,'"'),u=JSON.parse("{"+m+"}")),u){c=n;for(p in u)if("alias"===p.toLowerCase()){c=u[p];break}}f("alias",c),o.alias&&r(o.alias,o,a);for(l in a){if(u){c=n;for(p in u)if(p.toLowerCase()===l.toLowerCase()){c=u[p];break}}f(l,c)}}return e.extend(!0,a,o),("rtl"===i.dir||a.rightAlign)&&(i.style.textAlign="right"),("rtl"===i.dir||a.numericInput)&&(i.dir="ltr",i.removeAttribute("dir"),a.isRTL=!0),Object.keys(o).length}(o,c,e.extend(!0,{},l.userOptions),l.dataAttribute)){var p=s(c,l.noMasksCache);p!==n&&(o.inputmask!==n&&(o.inputmask.opts.autoUnmask=!0,o.inputmask.remove()),o.inputmask=new a(n,n,!0),o.inputmask.opts=c,o.inputmask.noMasksCache=l.noMasksCache,o.inputmask.userOptions=e.extend(!0,{},l.userOptions),o.inputmask.isRTL=c.isRTL||c.numericInput,o.inputmask.el=o,o.inputmask.maskset=p,e.data(o,"_inputmask_opts",c),u.call(o.inputmask,{action:"mask"}))}}),o&&o[0]&&o[0].inputmask||this},option:function(t,i){return"string"==typeof t?this.opts[t]:"object"===(void 0===t?"undefined":o(t))?(e.extend(this.userOptions,t),this.el&&!0!==i&&this.mask(this.el),this):void 0},unmaskedvalue:function(e){return this.maskset=this.maskset||s(this.opts,this.noMasksCache),u.call(this,{action:"unmaskedvalue",value:e})},remove:function(){return u.call(this,{action:"remove"})},getemptymask:function(){return this.maskset=this.maskset||s(this.opts,this.noMasksCache),u.call(this,{action:"getemptymask"})},hasMaskedValue:function(){return!this.opts.autoUnmask},isComplete:function(){return this.maskset=this.maskset||s(this.opts,this.noMasksCache),u.call(this,{action:"isComplete"})},getmetadata:function(){return this.maskset=this.maskset||s(this.opts,this.noMasksCache),u.call(this,{action:"getmetadata"})},isValid:function(e){return this.maskset=this.maskset||s(this.opts,this.noMasksCache),u.call(this,{action:"isValid",value:e})},format:function(e,t){return this.maskset=this.maskset||s(this.opts,this.noMasksCache),u.call(this,{action:"format",value:e,metadata:t})},analyseMask:function(t,i,r){function o(e,t,i,n){this.matches=[],this.openGroup=e||!1,this.alternatorGroup=!1,this.isGroup=e||!1,this.isOptional=t||!1,this.isQuantifier=i||!1,this.isAlternator=n||!1,this.quantifier={min:1,max:1}}function s(t,o,s){s=s!==n?s:t.matches.length;var l=t.matches[s-1];if(i)0===o.indexOf("[")||k&&/\\d|\\s|\\w]/i.test(o)||"."===o?t.matches.splice(s++,0,{fn:new RegExp(o,r.casing?"i":""),optionality:t.isOptional,newBlockMarker:l===n||l.def!==o,casing:null,def:o,placeholder:n,nativeDef:o}):(k&&(o=o[o.length-1]),e.each(o.split(""),function(e,i){l=t.matches[s-1],t.matches.splice(s++,0,{fn:null,optionality:t.isOptional,newBlockMarker:l===n||l.def!==i&&null!==l.fn,casing:null,def:r.staticDefinitionSymbol||i,placeholder:r.staticDefinitionSymbol!==n?i:n,nativeDef:i})})),k=!1;else{var u=(r.definitions?r.definitions[o]:n)||a.prototype.definitions[o];u&&!k?t.matches.splice(s++,0,{fn:u.validator?"string"==typeof u.validator?new RegExp(u.validator,r.casing?"i":""):new function(){this.test=u.validator}:new RegExp("."),optionality:t.isOptional,newBlockMarker:l===n||l.def!==(u.definitionSymbol||o),casing:u.casing,def:u.definitionSymbol||o,placeholder:u.placeholder,nativeDef:o}):(t.matches.splice(s++,0,{fn:null,optionality:t.isOptional,newBlockMarker:l===n||l.def!==o&&null!==l.fn,casing:null,def:r.staticDefinitionSymbol||o,placeholder:r.staticDefinitionSymbol!==n?o:n,nativeDef:o}),k=!1)}}function l(){if(b.length>0){if(s(f=b[b.length-1],c),f.isAlternator){m=b.pop();for(var e=0;e<m.matches.length;e++)m.matches[e].isGroup=!1;b.length>0?(f=b[b.length-1]).matches.push(m):y.matches.push(m)}}else s(y,c)}var u,c,p,f,m,d,h,g=/(?:[?*+]|\{[0-9\+\*]+(?:,[0-9\+\*]*)?\})|[^.?*+^${[]()|\\]+|./g,v=/\[\^?]?(?:[^\\\]]+|\\[\S\s]?)*]?|\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9][0-9]*|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|c[A-Za-z]|[\S\s]?)|\((?:\?[:=!]?)?|(?:[?*+]|\{[0-9]+(?:,[0-9]*)?\})\??|[^.?*+^${[()|\\]+|./g,k=!1,y=new o,b=[],x=[];for(i&&(r.optionalmarker[0]=n,r.optionalmarker[1]=n);u=i?v.exec(t):g.exec(t);){if(c=u[0],i)switch(c.charAt(0)){case"?":c="{0,1}";break;case"+":case"*":c="{"+c+"}"}if(k)l();else switch(c.charAt(0)){case r.escapeChar:k=!0,i&&l();break;case r.optionalmarker[1]:case r.groupmarker[1]:if((p=b.pop()).openGroup=!1,p!==n)if(b.length>0){if((f=b[b.length-1]).matches.push(p),f.isAlternator){m=b.pop();for(var P=0;P<m.matches.length;P++)m.matches[P].isGroup=!1,m.matches[P].alternatorGroup=!1;b.length>0?(f=b[b.length-1]).matches.push(m):y.matches.push(m)}}else y.matches.push(p);else l();break;case r.optionalmarker[0]:b.push(new o(!1,!0));break;case r.groupmarker[0]:b.push(new o(!0));break;case r.quantifiermarker[0]:var S=new o(!1,!1,!0),A=(c=c.replace(/[{}]/g,"")).split(","),C=isNaN(A[0])?A[0]:parseInt(A[0]),M=1===A.length?C:isNaN(A[1])?A[1]:parseInt(A[1]);if("*"!==M&&"+"!==M||(C="*"===M?0:1),S.quantifier={min:C,max:M},b.length>0){var E=b[b.length-1].matches;(u=E.pop()).isGroup||((h=new o(!0)).matches.push(u),u=h),E.push(u),E.push(S)}else(u=y.matches.pop()).isGroup||(i&&null===u.fn&&"."===u.def&&(u.fn=new RegExp(u.def,r.casing?"i":"")),(h=new o(!0)).matches.push(u),u=h),y.matches.push(u),y.matches.push(S);break;case r.alternatormarker:if(b.length>0){var w=(f=b[b.length-1]).matches[f.matches.length-1];
6656d=f.openGroup&&(w.matches===n||!1===w.isGroup&&!1===w.isAlternator)?b.pop():f.matches.pop()}else d=y.matches.pop();if(d.isAlternator)b.push(d);else if(d.alternatorGroup?(m=b.pop(),d.alternatorGroup=!1):m=new o(!1,!1,!1,!0),m.matches.push(d),b.push(m),d.openGroup){d.openGroup=!1;var D=new o(!0);D.alternatorGroup=!0,b.push(D)}break;default:l()}}for(;b.length>0;)p=b.pop(),y.matches.push(p);return y.matches.length>0&&(function t(a){a&&a.matches&&e.each(a.matches,function(e,o){var l=a.matches[e+1];(l===n||l.matches===n||!1===l.isQuantifier)&&o&&o.isGroup&&(o.isGroup=!1,i||(s(o,r.groupmarker[0],0),!0!==o.openGroup&&s(o,r.groupmarker[1]))),t(o)})}(y),x.push(y)),(r.numericInput||r.isRTL)&&function e(t){t.matches=t.matches.reverse();for(var i in t.matches)if(t.matches.hasOwnProperty(i)){var a=parseInt(i);if(t.matches[i].isQuantifier&&t.matches[a+1]&&t.matches[a+1].isGroup){var o=t.matches[i];t.matches.splice(i,1),t.matches.splice(a+1,0,o)}t.matches[i].matches!==n?t.matches[i]=e(t.matches[i]):t.matches[i]=function(e){return e===r.optionalmarker[0]?e=r.optionalmarker[1]:e===r.optionalmarker[1]?e=r.optionalmarker[0]:e===r.groupmarker[0]?e=r.groupmarker[1]:e===r.groupmarker[1]&&(e=r.groupmarker[0]),e}(t.matches[i])}return t}(x[0]),x}},a.extendDefaults=function(t){e.extend(!0,a.prototype.defaults,t)},a.extendDefinitions=function(t){e.extend(!0,a.prototype.definitions,t)},a.extendAliases=function(t){e.extend(!0,a.prototype.aliases,t)},a.format=function(e,t,i){return a(t).format(e,i)},a.unmask=function(e,t){return a(t).unmaskedvalue(e)},a.isValid=function(e,t){return a(t).isValid(e)},a.remove=function(t){e.each(t,function(e,t){t.inputmask&&t.inputmask.remove()})},a.escapeRegex=function(e){return e.replace(new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^"].join("|\\")+")","gim"),"\\$1")},a.keyCode={BACKSPACE:8,BACKSPACE_SAFARI:127,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,RIGHT:39,SPACE:32,TAB:9,UP:38,X:88,CONTROL:17},a})?n.apply(t,a):n)&&(e.exports=r)},function(e,t){e.exports=jQuery},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}i(4),i(7),i(8),i(9);var a=n(i(1)),r=n(i(0)),o=n(i(2));r.default===o.default&&i(10),window.Inputmask=a.default},function(e,t,i){"use strict";var n,a,r;"function"==typeof Symbol&&Symbol.iterator,a=[i(0),i(1)],void 0!==(r="function"==typeof(n=function(e,t){function i(e){if(!e.tokenizer){var t=[];for(var i in o)-1===t.indexOf(i[0])&&t.push(i[0]);e.tokenizer="("+t.join("+|")+")+?|.",e.tokenizer=new RegExp(e.tokenizer,"g")}return e.tokenizer}function n(e,n,a){for(var r,s="";r=i(a).exec(e);)void 0===n?s+=o[r[0]]?"("+o[r[0]][0]+")":t.escapeRegex(r[0]):o[r[0]]?s+=o[r[0]][3].call(n.date):s+=r[0];return s}function a(e,t){for(e=String(e),t=t||2;e.length<t;)e="0"+e;return e}function r(e,t,n){var a,r,s,l,u,c,p,f,m={date:new Date(1,0,1)},d=e;if("string"==typeof d){for(;r=i(n).exec(t);){var h=d.slice(0,r[0].length);o.hasOwnProperty(r[0])&&(a=o[r[0]][2],s=o[r[0]][1],l=m,u=h,c=n,p=void 0,f=void 0,"year"===a?(l[a]=(f=4===(p=u).length?p:(new Date).getFullYear().toString().substr(0,4-p.length)+p,n.min&&n.min.year&&n.max&&n.max.year?(f=f.replace(/[^0-9]/g,""),f=p.charAt(0)===n.max.year.charAt(0)?p.replace(/[^0-9]/g,"0"):f+n.min.year.substr(f.length)):f=f.replace(/[^0-9]/g,"0"),f),l["raw"+a]=u):l[a]=c.min&&u.match(/[^0-9]/)?c.min[a]:u,void 0!==s&&s.call(l.date,"month"==a?parseInt(l[a])-1:l[a])),d=d.slice(h.length)}return m}}var o={d:["[1-9]|[12][0-9]|3[01]",Date.prototype.setDate,"day",Date.prototype.getDate],dd:["0[1-9]|[12][0-9]|3[01]",Date.prototype.setDate,"day",function(){return a(Date.prototype.getDate.call(this),2)}],ddd:[""],dddd:[""],m:["[1-9]|1[012]",Date.prototype.setMonth,"month",function(){return Date.prototype.getMonth.call(this)+1}],mm:["0[1-9]|1[012]",Date.prototype.setMonth,"month",function(){return a(Date.prototype.getMonth.call(this)+1,2)}],mmm:[""],mmmm:[""],yy:["[0-9]{2}",Date.prototype.setFullYear,"year",function(){return a(Date.prototype.getFullYear.call(this),2)}],yyyy:["[0-9]{4}",Date.prototype.setFullYear,"year",function(){return a(Date.prototype.getFullYear.call(this),4)}],h:["[1-9]|1[0-2]",Date.prototype.setHours,"hours",Date.prototype.getHours],hh:["0[1-9]|1[0-2]",Date.prototype.setHours,"hours",function(){return a(Date.prototype.getHours.call(this),2)}],hhh:["[0-9]+",Date.prototype.setHours,"hours",Date.prototype.getHours],H:["1?[0-9]|2[0-3]",Date.prototype.setHours,"hours",Date.prototype.getHours],HH:["[01][0-9]|2[0-3]",Date.prototype.setHours,"hours",function(){return a(Date.prototype.getHours.call(this),2)}],HHH:["[0-9]+",Date.prototype.setHours,"hours",Date.prototype.getHours],M:["[1-5]?[0-9]",Date.prototype.setMinutes,"minutes",Date.prototype.getMinutes],MM:["[0-5][0-9]",Date.prototype.setMinutes,"minutes",function(){return a(Date.prototype.getMinutes.call(this),2)}],s:["[1-5]?[0-9]",Date.prototype.setSeconds,"seconds",Date.prototype.getSeconds],ss:["[0-5][0-9]",Date.prototype.setSeconds,"seconds",function(){return a(Date.prototype.getSeconds.call(this),2)}],l:["[0-9]{3}",Date.prototype.setMilliseconds,"milliseconds",function(){return a(Date.prototype.getMilliseconds.call(this),3)}],L:["[0-9]{2}",Date.prototype.setMilliseconds,"milliseconds",function(){return a(Date.prototype.getMilliseconds.call(this),2)}],t:[""],tt:[""],T:[""],TT:[""],Z:[""],o:[""],S:[""]},s={isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};return t.extendAliases({datetime:{mask:function(e){return e.inputFormat=s[e.inputFormat]||e.inputFormat,e.displayFormat=s[e.displayFormat]||e.displayFormat||e.inputFormat,e.outputFormat=s[e.outputFormat]||e.outputFormat||e.inputFormat,e.placeholder=e.placeholder!==t.prototype.defaults.placeholder?e.placeholder:e.inputFormat,e.min=r(e.min,e.inputFormat,e),e.max=r(e.max,e.inputFormat,e),e.regex=n(e.inputFormat,void 0,e),null},inputFormat:"isoDateTime",displayFormat:void 0,outputFormat:void 0,min:null,max:null,i18n:{dayNames:["Mon","Tue","Wed","Thu","Fri","Sat","Sun","Monday","Tuesday","Wednesday","Thursday","Frid
6656ay","Saturday","Sunday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]},postValidation:function(e,t,i){var n,a,o,s,l,u=t,c=r(e.join(""),i.inputFormat,i);return u&&c.date.getTime()==c.date.getTime()&&(s=c,l=u,u=(u=(!isFinite(s.day)||"29"==s.day&&!isFinite(s.rawyear)||new Date(s.date.getFullYear(),isFinite(s.month)?s.month:s.date.getMonth()+1,0).getDate()>=s.day)&&l)&&(n=c.date,o=!0,(a=i).min&&a.min.date.getTime()==a.min.date.getTime()&&(o=o&&a.min.date.getTime()<=n.getTime()),a.max&&a.max.date.getTime()==a.max.date.getTime()&&(o=o&&a.max.date.getTime()>=n.getTime()),o)),u},onKeyDown:function(n,r,o,s){if(n.ctrlKey&&n.keyCode===t.keyCode.RIGHT){for(var l,u=new Date,c="";l=i(s).exec(s.inputFormat);)"d"===l[0].charAt(0)?c+=a(u.getDate(),l[0].length):"m"===l[0].charAt(0)?c+=a(u.getMonth()+1,l[0].length):"yyyy"===l[0]?c+=u.getFullYear().toString():"y"===l[0].charAt(0)&&(c+=a(u.getYear(),l[0].length));this.inputmask._valueSet(c),e(this).trigger("setvalue")}},onUnMask:function(e,t,i){return n(i.outputFormat,r(e,i.inputFormat,i),i)},insertMode:!1}}),t})?n.apply(t,a):n)&&(e.exports=r)},function(e,t,i){"use strict";var n;"function"==typeof Symbol&&Symbol.iterator,void 0!==(n=function(){return window}.call(t,i,t,e))&&(e.exports=n)},function(e,t,i){"use strict";var n;"function"==typeof Symbol&&Symbol.iterator,void 0!==(n=function(){return document}.call(t,i,t,e))&&(e.exports=n)},function(e,t,i){"use strict";var n,a,r;"function"==typeof Symbol&&Symbol.iterator,a=[i(0),i(1)],void 0!==(r="function"==typeof(n=function(e,t){return t.extendDefinitions({A:{validator:"[A-Za-zÀ-ÿ¨¸A-yµ]",casing:"upper"},"&":{validator:"[0-9A-Za-zÀ-ÿ¨¸A-yµ]",casing:"upper"},"#":{validator:"[0-9A-Fa-f]",casing:"upper"}}),t.extendAliases({url:{definitions:{i:{validator:"."}},mask:"(\\http://)|(\\http\\s://)|(ftp://)|(ftp\\s://)i{+}",insertMode:!1,autoUnmask:!1,inputmode:"url"},ip:{mask:"i[i[i]].i[i[i]].i[i[i]].i[i[i]]",definitions:{i:{validator:function(e,t,i,n,a){return i-1>-1&&"."!==t.buffer[i-1]?(e=t.buffer[i-1]+e,e=i-2>-1&&"."!==t.buffer[i-2]?t.buffer[i-2]+e:"0"+e):e="00"+e,new RegExp("25[0-5]|2[0-4][0-9]|[01][0-9][0-9]").test(e)}}},onUnMask:function(e,t,i){return e},inputmode:"numeric"},email:{mask:"*{1,64}[.*{1,64}][.*{1,64}][.*{1,63}]@-{1,63}.-{1,63}[.-{1,63}][.-{1,63}]",greedy:!1,onBeforePaste:function(e,t){return(e=e.toLowerCase()).replace("mailto:","")},definitions:{"*":{validator:"[0-9A-Za-z!#$%&'*+/=?^_`{|}~-]",casing:"lower"},"-":{validator:"[0-9A-Za-z-]",casing:"lower"}},onUnMask:function(e,t,i){return e},inputmode:"email"},mac:{mask:"##:##:##:##:##:##"},vin:{mask:"V{13}9{4}",definitions:{V:{validator:"[A-HJ-NPR-Za-hj-npr-z\\d]",casing:"upper"}},clearIncomplete:!0,autoUnmask:!0}}),t})?n.apply(t,a):n)&&(e.exports=r)},function(e,t,i){"use strict";var n,a,r;"function"==typeof Symbol&&Symbol.iterator,a=[i(0),i(1)],void 0!==(r="function"==typeof(n=function(e,t,i){function n(e,i){for(var n="",a=0;a<e.length;a++)t.prototype.definitions[e.charAt(a)]||i.definitions[e.charAt(a)]||i.optionalmarker.start===e.charAt(a)||i.optionalmarker.end===e.charAt(a)||i.quantifiermarker.start===e.charAt(a)||i.quantifiermarker.end===e.charAt(a)||i.groupmarker.start===e.charAt(a)||i.groupmarker.end===e.charAt(a)||i.alternatormarker===e.charAt(a)?n+="\\"+e.charAt(a):n+=e.charAt(a);return n}return t.extendAliases({numeric:{mask:function(e){if(0!==e.repeat&&isNaN(e.integerDigits)&&(e.integerDigits=e.repeat),e.repeat=0,e.groupSeparator===e.radixPoint&&e.digits&&"0"!==e.digits&&("."===e.radixPoint?e.groupSeparator=",":","===e.radixPoint?e.groupSeparator=".":e.groupSeparator="")," "===e.groupSeparator&&(e.skipOptionalPartCharacter=i),e.autoGroup=e.autoGroup&&""!==e.groupSeparator,e.autoGroup&&("string"==typeof e.groupSize&&isFinite(e.groupSize)&&(e.groupSize=parseInt(e.groupSize)),isFinite(e.integerDigits))){var t=Math.floor(e.integerDigits/e.groupSize),a=e.integerDigits%e.groupSize;e.integerDigits=parseInt(e.integerDigits)+(0===a?t-1:t),e.integerDigits<1&&(e.integerDigits="*")}e.placeholder.length>1&&(e.placeholder=e.placeholder.charAt(0)),"radixFocus"===e.positionCaretOnClick&&""===e.placeholder&&!1===e.integerOptional&&(e.positionCaretOnClick="lvp"),e.definitions[";"]=e.definitions["~"],e.definitions[";
6656"].definitionSymbol="~",!0===e.numericInput&&(e.positionCaretOnClick="radixFocus"===e.positionCaretOnClick?"lvp":e.positionCaretOnClick,e.digitsOptional=!1,isNaN(e.digits)&&(e.digits=2),e.decimalProtect=!1);var r="[+]";if(r+=n(e.prefix,e),!0===e.integerOptional?r+="~{1,"+e.integerDigits+"}":r+="~{"+e.integerDigits+"}",e.digits!==i){e.radixPointDefinitionSymbol=e.decimalProtect?":":e.radixPoint;var o=e.digits.toString().split(",");isFinite(o[0]&&o[1]&&isFinite(o[1]))?r+=e.radixPointDefinitionSymbol+";{"+e.digits+"}":(isNaN(e.digits)||parseInt(e.digits)>0)&&(e.digitsOptional?r+="["+e.radixPointDefinitionSymbol+";{1,"+e.digits+"}]":r+=e.radixPointDefinitionSymbol+";{"+e.digits+"}")}return r+=n(e.suffix,e),r+="[-]",e.greedy=!1,r},placeholder:"",greedy:!1,digits:"*",digitsOptional:!0,enforceDigitsOnBlur:!1,radixPoint:".",positionCaretOnClick:"radixFocus",groupSize:3,groupSeparator:"",autoGroup:!1,allowMinus:!0,negationSymbol:{front:"-",back:""},integerDigits:"+",integerOptional:!0,prefix:"",suffix:"",rightAlign:!0,decimalProtect:!0,min:null,max:null,step:1,insertMode:!0,autoUnmask:!1,unmaskAsNumber:!1,inputmode:"numeric",preValidation:function(t,n,a,r,o){if("-"===a||a===o.negationSymbol.front)return!0===o.allowMinus&&(o.isNegative=o.isNegative===i||!o.isNegative,""===t.join("")||{caret:n,dopost:!0});if(!1===r&&a===o.radixPoint&&o.digits!==i&&(isNaN(o.digits)||parseInt(o.digits)>0)){var s=e.inArray(o.radixPoint,t);if(-1!==s)return!0===o.numericInput?n===s:{caret:s+1}}return!0},postValidation:function(n,a,r){var o=r.suffix.split(""),s=r.prefix.split("");if(a.pos===i&&a.caret!==i&&!0!==a.dopost)return a;var l=a.caret!==i?a.caret:a.pos,u=n.slice();r.numericInput&&(l=u.length-l-1,u=u.reverse());var c=u[l];if(c===r.groupSeparator&&(c=u[l+=1]),l===u.length-r.suffix.length-1&&c===r.radixPoint)return a;c!==i&&c!==r.radixPoint&&c!==r.negationSymbol.front&&c!==r.negationSymbol.back&&(u[l]="?",r.prefix.length>0&&l>=(!1===r.isNegative?1:0)&&l<r.prefix.length-1+(!1===r.isNegative?1:0)?s[l-(!1===r.isNegative?1:0)]="?":r.suffix.length>0&&l>=u.length-r.suffix.length-(!1===r.isNegative?1:0)&&(o[l-(u.length-r.suffix.length-(!1===r.isNegative?1:0))]="?")),s=s.join(""),o=o.join("");var p=u.join("").replace(s,"");if(p=(p=(p=(p=p.replace(o,"")).replace(new RegExp(t.escapeRegex(r.groupSeparator),"g"),"")).replace(new RegExp("[-"+t.escapeRegex(r.negationSymbol.front)+"]","g"),"")).replace(new RegExp(t.escapeRegex(r.negationSymbol.back)+"$"),""),isNaN(r.placeholder)&&(p=p.replace(new RegExp(t.escapeRegex(r.placeholder),"g"),"")),p.length>1&&1!==p.indexOf(r.radixPoint)&&("0"===c&&(p=p.replace(/^\?/g,"")),p=p.replace(/^0/g,"")),p.charAt(0)===r.radixPoint&&""!==r.radixPoint&&!0!==r.numericInput&&(p="0"+p),""!==p){if(p=p.split(""),(!r.digitsOptional||r.enforceDigitsOnBlur&&"blur"===a.event)&&isFinite(r.digits)){var f=e.inArray(r.radixPoint,p),m=e.inArray(r.radixPoint,u);-1===f&&(p.push(r.radixPoint),f=p.length-1);for(var d=1;d<=r.digits;d++)r.digitsOptional&&(!r.enforceDigitsOnBlur||"blur"!==a.event)||p[f+d]!==i&&p[f+d]!==r.placeholder.charAt(0)?-1!==m&&u[m+d]!==i&&(p[f+d]=p[f+d]||u[m+d]):p[f+d]=a.placeholder||r.placeholder.charAt(0)}if(!0!==r.autoGroup||""===r.groupSeparator||c===r.radixPoint&&a.pos===i&&!a.dopost)p=p.join("");else{var h=p[p.length-1]===r.radixPoint&&a.c===r.radixPoint;p=t(function(e,t){var i="";if(i+="("+t.groupSeparator+"*{"+t.groupSize+"}){*}",""!==t.radixPoint){var n=e.join("").split(t.radixPoint);n[1]&&(i+=t.radixPoint+"*{"+n[1].match(/^\d*\??\d*/)[0].length+"}")}return i}(p,r),{numericInput:!0,jitMasking:!0,definitions:{"*":{validator:"[0-9?]",cardinality:1}}}).format(p.join("")),h&&(p+=r.radixPoint),p.charAt(0)===r.groupSeparator&&p.substr(1)}}if(r.isNegative&&"blur"===a.event&&(r.isNegative="0"!==p),p=s+p,p+=o,r.isNegative&&(p=r.negationSymbol.front+p,p+=r.negationSymbol.back),p=p.split(""),c!==i)if(c!==r.radixPoint&&c!==r.negationSymbol.front&&c!==r.negationSymbol.back)(l=e.inArray("?",p))>-1?p[l]=c:l=a.caret||0;else if(c===r.radixPoint||c===r.negationSymbol.front||c===r.negationSymbol.back){var g=e.inArray(c,p);-1!==g&&(l=g)}r.numericInput&&(l=p.length-l-1,p=p.reverse());var v={caret:c===i||a.pos!==i?l+(r.numericInput?-1:1):l,buffer:p,refreshFromBuffer:a.dopost||n.join("")!==p.join("")};return v.refreshFromBuffer?v:a},onBeforeWrite:function(n,a,r,o){if(n)switch(n.type){case"keydown":return o.postValidation(a,{caret:r,dopost:!0},o);case"blur":case"checkval":var s;if((l=o).parseMinMaxOptions===i&&(null!==l.min&&(l.min=l.min.toString().replace(new RegExp(t.escapeRegex(l.groupSeparator),"g"),""),","===l.radixPoint&&(l.min=l.min.replace(l.radixPoint,".")),l.min=isFinite(l.min)?parseFloat(l.min):NaN,isNaN(l.min)&&(l.min=Number.MIN_VALUE)),null!==l.max&&(l.max=l.max.toString().replace(new RegExp(t.escapeRegex(l.groupSeparator),"g"),""),","===l.radixPoint&&(l.max=l.max.replace(l.radixPoint,".")),l.max=isFinite(l.max)?parseFloat(l.max):NaN,isNaN(l.max)&&(l.max=Number.MAX_VALUE)),l.parseMinMaxOptions="done"),null!==o.min||null!==o.max){if(s=o.onUnMask(a.join(""),i,e.extend({},o,{unmaskAsNumber:!0})),null!==o.min&&s<o.min)return o.isNegative=o.min<0,o.postValidation(o.min.toString().replace(".",o.radixPoint).split(""),{caret:r,dopost:!0,placeholder:"0"},o);if(null!==o.max&&s>o.max)return o.isNegative=o.max<0,o.postValidation(o.max.toString().replace(".",o.radixPoint).split(""),{caret:r,dopost:!0,placeholder:"0"},o)}return o.postValidation(a,{caret:r,placeholder:"0",event:"blur"},o);case"_checkval":return{caret:r}}var l},regex:{integerPart:function(e,i){return i?new RegExp("["+t.escapeRegex(e.negationSymbol.front)+"+]?"):new RegExp("["+t.escapeRegex(e.negationSymbol.front)+"+]?\\d+")},integerNPart:function(e){return new RegExp("[\\d"+t.escapeRegex(e.groupSeparator)+t.escapeRegex(e.placeholder.charAt(0))+"]+")}},definitions:{"~":{validator:function(e,n,a,r,o,s){var l=r?new RegExp("[0-9"+t.escapeRegex(o.groupSeparator)+"]").test(e):new RegExp("[0-9]").test(e);
6656if(!0===l){if(!0!==o.numericInput&&n.validPositions[a]!==i&&"~"===n.validPositions[a].match.def&&!s){var u=n.buffer.join(""),c=(u=(u=u.replace(new RegExp("[-"+t.escapeRegex(o.negationSymbol.front)+"]","g"),"")).replace(new RegExp(t.escapeRegex(o.negationSymbol.back)+"$"),"")).split(o.radixPoint);c.length>1&&(c[1]=c[1].replace(/0/g,o.placeholder.charAt(0))),"0"===c[0]&&(c[0]=c[0].replace(/0/g,o.placeholder.charAt(0))),u=c[0]+o.radixPoint+c[1]||"";var p=n._buffer.join("");for(u===o.radixPoint&&(u=p);null===u.match(t.escapeRegex(p)+"$");)p=p.slice(1);l=(u=(u=u.replace(p,"")).split(""))[a]===i?{pos:a,remove:a}:{pos:a}}}else r||e!==o.radixPoint||n.validPositions[a-1]!==i||(n.buffer[a]="0",l={pos:a+1});return l},cardinality:1},"+":{validator:function(e,t,i,n,a){return a.allowMinus&&("-"===e||e===a.negationSymbol.front)},cardinality:1,placeholder:""},"-":{validator:function(e,t,i,n,a){return a.allowMinus&&e===a.negationSymbol.back},cardinality:1,placeholder:""},":":{validator:function(e,i,n,a,r){var o="["+t.escapeRegex(r.radixPoint)+"]",s=new RegExp(o).test(e);return s&&i.validPositions[n]&&i.validPositions[n].match.placeholder===r.radixPoint&&(s={caret:n+1}),s},cardinality:1,placeholder:function(e){return e.radixPoint}}},onUnMask:function(e,i,n){if(""===i&&!0===n.nullable)return i;var a=e.replace(n.prefix,"");return a=(a=a.replace(n.suffix,"")).replace(new RegExp(t.escapeRegex(n.groupSeparator),"g"),""),""!==n.placeholder.charAt(0)&&(a=a.replace(new RegExp(n.placeholder.charAt(0),"g"),"0")),n.unmaskAsNumber?(""!==n.radixPoint&&-1!==a.indexOf(n.radixPoint)&&(a=a.replace(t.escapeRegex.call(this,n.radixPoint),".")),a=(a=a.replace(new RegExp("^"+t.escapeRegex(n.negationSymbol.front)),"-")).replace(new RegExp(t.escapeRegex(n.negationSymbol.back)+"$"),""),Number(a)):a},isComplete:function(e,i){var n=e.join("");if(e.slice().join("")!==n)return!1;var a=n.replace(i.prefix,"");return a=(a=a.replace(i.suffix,"")).replace(new RegExp(t.escapeRegex(i.groupSeparator)+"([0-9]{3})","g"),"$1"),","===i.radixPoint&&(a=a.replace(t.escapeRegex(i.radixPoint),".")),isFinite(a)},onBeforeMask:function(e,n){if(n.isNegative=i,e=e.toString().charAt(e.length-1)===n.radixPoint?e.toString().substr(0,e.length-1):e.toString(),""!==n.radixPoint&&isFinite(e)){var a=e.split("."),r=""!==n.groupSeparator?parseInt(n.groupSize):0;2===a.length&&(a[0].length>r||a[1].length>r||a[0].length<=r&&a[1].length<r)&&(e=e.replace(".",n.radixPoint))}var o=e.match(/,/g),s=e.match(/\./g);if(e=s&&o?s.length>o.length?(e=e.replace(/\./g,"")).replace(",",n.radixPoint):o.length>s.length?(e=e.replace(/,/g,"")).replace(".",n.radixPoint):e.indexOf(".")<e.indexOf(",")?e.replace(/\./g,""):e.replace(/,/g,""):e.replace(new RegExp(t.escapeRegex(n.groupSeparator),"g"),""),0===n.digits&&(-1!==e.indexOf(".")?e=e.substring(0,e.indexOf(".")):-1!==e.indexOf(",")&&(e=e.substring(0,e.indexOf(",")))),""!==n.radixPoint&&isFinite(n.digits)&&-1!==e.indexOf(n.radixPoint)){var l=e.split(n.radixPoint)[1].match(new RegExp("\\d*"))[0];if(parseInt(n.digits)<l.toString().length){var u=Math.pow(10,parseInt(n.digits));e=e.replace(t.escapeRegex(n.radixPoint),"."),e=(e=Math.round(parseFloat(e)*u)/u).toString().replace(".",n.radixPoint)}}return e},canClearPosition:function(e,t,i,n,a){var r=e.validPositions[t],o=r.input!==a.radixPoint||null!==e.validPositions[t].match.fn&&!1===a.decimalProtect||r.input===a.radixPoint&&e.validPositions[t+1]&&null===e.validPositions[t+1].match.fn||isFinite(r.input)||t===i||r.input===a.groupSeparator||r.input===a.negationSymbol.front||r.input===a.negationSymbol.back;return!o||"+"!==r.match.nativeDef&&"-"!==r.match.nativeDef||(a.isNegative=!1),o},onKeyDown:function(i,n,a,r){var o=e(this);if(i.ctrlKey)switch(i.keyCode){case t.keyCode.UP:o.val(parseFloat(this.inputmask.unmaskedvalue())+parseInt(r.step)),o.trigger("setvalue");break;case t.keyCode.DOWN:o.val(parseFloat(this.inputmask.unmaskedvalue())-parseInt(r.step)),o.trigger("setvalue")}}},currency:{prefix:"$ ",groupSeparator:",",alias:"numeric",placeholder:"0",autoGroup:!0,digits:2,digitsOptional:!1,clearMaskOnLostFocus:!1},decimal:{alias:"numeric"},integer:{alias:"numeric",digits:0,radixPoint:""},percentage:{alias:"numeric",digits:2,digitsOptional:!0,radixPoint:".",placeholder:"0",autoGroup:!1,min:0,max:100,suffix:" %",allowMinus:!1}}),t})?n.apply(t,a):n)&&(e.exports=r)},function(e,t,i){"use strict";var n,a,r;"function"==typeof Symbol&&Symbol.iterator,a=[i(0),i(1)],void 0!==(r="function"==typeof(n=function(e,t){function i(e,t){var i=(e.mask||e).replace(/#/g,"0").replace(/\)/,"0").replace(/[+()#-]/g,""),n=(t.mask||t).replace(/#/g,"0").replace(/\)/,"0").replace(/[+()#-]/g,"");return i.localeCompare(n)}
6656var n=t.prototype.analyseMask;return t.prototype.analyseMask=function(t,i,a){var r={};return a.phoneCodes&&(a.phoneCodes&&a.phoneCodes.length>1e3&&(function e(i,n,a){n=n||"",a=a||r,""!==n&&(a[n]={});for(var o="",s=a[n]||a,l=i.length-1;l>=0;l--)s[o=(t=i[l].mask||i[l]).substr(0,1)]=s[o]||[],s[o].unshift(t.substr(1)),i.splice(l,1);for(var u in s)s[u].length>500&&e(s[u].slice(),u,s)}((t=t.substr(1,t.length-2)).split(a.groupmarker[1]+a.alternatormarker+a.groupmarker[0])),t=function t(i){var n="",r=[];for(var o in i)e.isArray(i[o])?1===i[o].length?r.push(o+i[o]):r.push(o+a.groupmarker[0]+i[o].join(a.groupmarker[1]+a.alternatormarker+a.groupmarker[0])+a.groupmarker[1]):r.push(o+t(i[o]));return 1===r.length?n+=r[0]:n+=a.groupmarker[0]+r.join(a.groupmarker[1]+a.alternatormarker+a.groupmarker[0])+a.groupmarker[1],n}(r)),t=t.replace(/9/g,"\\9")),n.call(this,t,i,a)},t.extendAliases({abstractphone:{groupmarker:["<",">"],countrycode:"",phoneCodes:[],keepStatic:"auto",mask:function(e){return e.definitions={"#":t.prototype.definitions[9]},e.phoneCodes.sort(i)},onBeforeMask:function(e,t){var i=e.replace(/^0{1,2}/,"").replace(/[\s]/g,"");return(i.indexOf(t.countrycode)>1||-1===i.indexOf(t.countrycode))&&(i="+"+t.countrycode+i),i},onUnMask:function(e,t,i){return e.replace(/[()#-]/g,"")},inputmode:"tel"}}),t})?n.apply(t,a):n)&&(e.exports=r)},function(e,t,i){"use strict";var n,a,r,o="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};a=[i(2),i(1)],void 0!==(r="function"==typeof(n=function(e,t){return void 0===e.fn.inputmask&&(e.fn.inputmask=function(i,n){var a,r=this[0];if(void 0===n&&(n={}),"string"==typeof i)switch(i){case"unmaskedvalue":return r&&r.inputmask?r.inputmask.unmaskedvalue():e(r).val();case"remove":return this.each(function(){this.inputmask&&this.inputmask.remove()});case"getemptymask":return r&&r.inputmask?r.inputmask.getemptymask():"";case"hasMaskedValue":return!(!r||!r.inputmask)&&r.inputmask.hasMaskedValue();case"isComplete":return!r||!r.inputmask||r.inputmask.isComplete();case"getmetadata":return r&&r.inputmask?r.inputmask.getmetadata():void 0;case"setvalue":e(r).val(n),r&&void 0===r.inputmask&&e(r).triggerHandler("setvalue");break;case"option":if("string"!=typeof n)return this.each(function(){if(void 0!==this.inputmask)return this.inputmask.option(n)});if(r&&void 0!==r.inputmask)return r.inputmask.option(n);break;default:return n.alias=i,a=new t(n),this.each(function(){a.mask(this)})}else{if("object"==(void 0===i?"undefined":o(i)))return a=new t(i),void 0===i.mask&&void 0===i.alias?this.each(function(){if(void 0!==this.inputmask)return this.inputmask.option(i);a.mask(this)}):this.each(function(){a.mask(this)});if(void 0===i)return this.each(function(){(a=new t(n)).mask(this)})}}),e.fn.inputmask})?n.apply(t,a):n)&&(e.exports=r)}]);
6657/* End */
6658;; /* /bitrix/templates/aspro-allcorp3heat/js/observer.min.js?16860349813650*/
6659; /* /bitrix/templates/aspro-allcorp3heat/vendor/jquery.easing.min.js?16860349813372*/
6660; /* /bitrix/templates/aspro-allcorp3heat/vendor/jquery.cookie.min.js?16860349811613*/
6661; /* /bitrix/templates/aspro-allcorp3heat/vendor/bootstrap.js?168603498127908*/
6662; /* /bitrix/templates/aspro-allcorp3heat/vendor/jquery.validate.min.js?168603498122254*/
6663; /* /bitrix/templates/aspro-allcorp3heat/vendor/js/ripple.min.js?16860349811624*/
6664; /* /bitrix/templates/aspro-allcorp3heat/js/detectmobilebrowser.js?16860349812203*/
6665; /* /bitrix/templates/aspro-allcorp3heat/js/matchMedia.min.js?1686034981931*/
6666; /* /bitrix/templates/aspro-allcorp3heat/js/jquery.actual.min.js?16860349811239*/
6667; /* /bitrix/templates/aspro-allcorp3heat/js/jquery-ui.min.js?168603498132162*/
6668; /* /bitrix/templates/aspro-allcorp3heat/js/jquery.plugin.min.js?16860349813349*/
6669; /* /bitrix/templates/aspro-allcorp3heat/js/jquery.alphanumeric.min.js?1686034981942*/
6670; /* /bitrix/templates/aspro-allcorp3heat/js/jquery.autocomplete.min.js?168603498112531*/
6671; /* /bitrix/templates/aspro-allcorp3heat/js/jquery.mobile.custom.touch.min.js?16860349817743*/
6672; /* /bitrix/templates/aspro-allcorp3heat/js/jquery.mCustomScrollbar.min.js?168603498155533*/
6673; /* /bitrix/templates/aspro-allcorp3heat/js/jqModal.min.js?16860349813303*/
6674; /* /bitrix/templates/aspro-allcorp3heat/js/jquery.uniform.min.js?168603498183
667408*/
6675; /* /bitrix/templates/aspro-allcorp3heat/vendor/js/carousel/owl/owl.carousel.min.js?168603498154160*/
6676; /* /bitrix/templates/aspro-allcorp3heat/js/jquery.countdown.min.js?168603498120851*/
6677; /* /bitrix/templates/aspro-allcorp3heat/js/jquery.countdown-ru.min.js?16860349811487*/
6678; /* /bitrix/templates/aspro-allcorp3heat/js/scrollTabs.min.js?168603498110482*/
6679; /* /bitrix/templates/aspro-allcorp3heat/js/blocks/controls.min.js?16860349815040*/
6680; /* /bitrix/templates/aspro-allcorp3heat/js/blocks/hover-block.min.js?1686034981715*/
6681; /* /bitrix/templates/aspro-allcorp3heat/js/blocks/mobile.min.js?16860349815334*/
6682; /* /bitrix/templates/aspro-allcorp3heat/js/blocks/selectOffer.min.js?16860349812289*/
6683; /* /bitrix/templates/aspro-allcorp3heat/js/blocks/tabs-history.min.js?16860349811129*/
6684; /* /bitrix/templates/aspro-allcorp3heat/js/general.js?1686034982193014*/
6685; /* /bitrix/templates/aspro-allcorp3heat/js/custom.js?1696354521101*/
6686; /* /bitrix/templates/aspro-allcorp3heat/js/logo.min.js?16860349814160*/
6687; /* /bitrix/components/aspro/eyed.allcorp3heat/templates/.default/script.min.js?168603436412361*/
6688; /* /bitrix/templates/aspro-allcorp3heat/components/bitrix/menu/mega_menu/script.min.js?16860349811471*/
6689; /* /bitrix/templates/aspro-allcorp3heat/components/bitrix/menu/menu_new/script.min.js?16860349812205*/
6690; /* /bitrix/templates/aspro-allcorp3heat/components/bitrix/menu/left/script.min.js?1686034981908*/
6691; /* /bitrix/components/aspro/marketing.popup.allcorp3heat/templates/.default/script.min.js?1686034364947*/
6692; /* /bitrix/components/bitrix/search.title/script.min.js?17452211806543*/
6693; /* /bitrix/templates/aspro-allcorp3heat/components/bitrix/search.title/fixed/script.min.js?16860349817482*/
6694; /* /bitrix/components/aspro/basket.allcorp3heat/templates/fly/script.min.js?1686034364340*/
6695; /* /bitrix/templates/aspro-allcorp3heat/js/jquery.inputmask.bundle.min.js?168603498170933*/
6696
6697//# sourceMappingURL=template_bdaf6334cea08fbd4414e4b893b6e3f8.map.js

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.