PageSourceSearch

https://xn----7sbhjctqyhnchdebf.xn--p1ai/bitrix/cache/js/bs/concep…62ba071484c00acabd4b_v1.js?1790931235400013

js xn----7sbhjctqyhnchdebf.xn--p1ai collected 2026-10-05 00:38:37 UTC 400,013 bytes, 3,679 lines download raw bytes

1
2; /* Start:"a:4:{s:4:"full";s:74:"/bitrix/templates/concept_hameleon/js/jqueryConcept.min.js?175734080785577";s:6:"source";s:58:"/bitrix/templates/concept_hameleon/js/jqueryConcept.min.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
vendor: 7,382 bytes, lines 3-4
3/*! jQuery v2.2.4 | (c) jQuery Foundation | jquery.org/license */
4!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=a.document,e=c.slice,f=c.concat,g=c.push,h=c.indexOf,i={},j=i.toString,k=i.hasOwnProperty,l={},m="2.2.4",n=function(a,b){return new n.fn.init(a,b)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:"",length:0,toArray:function(){return e.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:e.call(this)},pushStack:function(a){var b=n.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a){return n.each(this,a)},map:function(a){return this.pushStack(n.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(e.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor()},push:g,sort:c.sort,splice:c.splice},n.extend=n.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||n.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(a=arguments[h]))for(b in a)c=g[b],d=a[b],g!==d&&(j&&d&&(n.isPlainObject(d)||(e=n.isArray(d)))?(e?(e=!1,f=c&&n.isArray(c)?c:[]):f=c&&n.isPlainObject(c)?c:{},g[b]=n.extend(j,f,d)):void 0!==d&&(g[b]=d));return g},n.extend({expando:"jQuery"+(m+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===n.type(a)},isArray:Array.isArray,isWindow:function(a){return null!=a&&a===a.window},isNumeric:function(a){var b=a&&a.toString();return!n.isArray(a)&&b-parseFloat(b)+1>=0},isPlainObject:function(a){var b;if("object"!==n.type(a)||a.nodeType||n.isWindow(a))return!1;if(a.constructor&&!k.call(a,"constructor")&&!k.call(a.constructor.prototype||{},"isPrototypeOf"))return!1;for(b in a);return void 0===b||k.call(a,b)},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?i[j.call(a)]||"object":typeof a},globalEval:function(a){var b,c=eval;a=n.trim(a),a&&(1===a.indexOf("use strict")?(b=d.createElement("script"),b.text=a,d.head.appendChild(b).parentNode.removeChild(b)):c(a))},camelCase:function(a){return a.replace(p,"ms-").replace(q,r)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b){var c,d=0;if(s(a)){for(c=a.length;c>d;d++)if(b.call(a[d],d,a[d])===!1)break}else for(d in a)if(b.call(a[d],d,a[d])===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(o,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(s(Object(a))?n.merge(c,"string"==typeof a?[a]:a):g.call(c,a)),c},inArray:function(a,b,c){return null==b?-1:h.call(b,a,c)},merge:function(a,b){for(var c=+b.length,d=0,e=a.length;c>d;d++)a[e++]=b[d];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,e,g=0,h=[];if(s(a))for(d=a.length;d>g;g++)e=b(a[g],g,c),null!=e&&h.push(e);else for(g in a)e=b(a[g],g,c),null!=e&&h.push(e);return f.apply([],h)},guid:1,proxy:function(a,b){var c,d,f;return"string"==typeof b&&(c=a[b],b=a,a=c),n.isFunction(a)?(d=e.call(arguments,2),f=function(){return a.apply(b||this,d.concat(e.call(arguments)))},f.guid=a.guid=a.guid||n.guid++,f):void 0},now:Date.now,support:l}),"function"==typeof Symbol&&(n.fn[Symbol.iterator]=c[Symbol.iterator]),n.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(a,b){i["[object "+b+"]"]=b.toLowerCase()});function s(a){var b=!!a&&"length"in a&&a.length,c=n.type(a);return"function"===c||n.isWindow(a)?!1:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var t=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=ga(),z=ga(),A=ga(),B=function(a,b){return a===b&&(l=!0),0},C=1<<31,D={}.hasOwnProperty,E=[],F=E.pop,G=E.push,H=E.push,I=E.slice,J=function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1},K="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",N="\\["+L+"*("+M+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+M+"))|)"+L+"*\\]",O=":("+M+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+N+")*)|.*)\\)|)",P=new RegExp(L+"+","g"),Q=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),R=new RegExp("^"+L+"*,"+L+"*"),S=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),T=new RegExp("="+L+"*([^\\]'\"]*?)"+L+"*\\]","g"),U=new RegExp(O),V=new RegExp("^"+M+"$"),W={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),TAG:new RegExp("^("+M+"|[*])"),ATTR:new RegExp("^"+N),PSEUDO:new RegExp("^"+O),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+K+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},X=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,$=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,_=/[+~]/,aa=/'|\\/g,ba=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),ca=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},da=function(){m()};try{H.apply(E=I.call(v.childNodes),v.childNodes),E[v.childNodes.length].nodeType}catch(ea){H={apply:E.length?function(a,b){G.apply(a,I.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function fa(a,b,d,e){var f,h,j,k,l,o,r,s,w=b&&b.ownerDocument,x=b?b.nodeType:9;if(d=d||[],"string"!=typeof a||!a||1!==x&&9!==x&&11!==x)return d;if(!e&&((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,p)){if(11!==x&&(o=$.exec(a)))if(f=o[1]){if(9===x){if(!(j=b.getElementById(f)))return d;if(j.id===f)return d.push(j),d}else if(w&&(j=w.getElementById(f))&&t(b,j)&&j.id===f)return d.push(j),d}else{if(o[2])return H.apply(d,b.getElementsByTagName(a)),d;if((f=o[3])&&c.getElementsByClassName&&b.getElementsByClassName)return H.apply(d,b.getElementsByClassName(f)),d}if(c.qsa&&!A[a+" "]&&(!q||!q.test(a))){if(1!==x)w=b,s=a;else if("object"!==b.nodeName.toLowerCase()){(k=b.getAttribute("id"))?k=k.replace(aa,"\\$&"):b.setAttribute("id",k=u),r=g(a),h=r.length,l=V.test(k)?"#"+k:"[id='"+k+"']";while(h--)r[h]=l+" "+qa(r[h]);s=r.join(","),w=_.test(a)&&oa(b.parentNode)||b}if(s)try{return H.apply(d,w.querySelectorAll(s)),d}catch(y){}finally{k===u&&b.removeAttribute("id")}}}return i(a.replace(Q,"$1"),b,d,e)}function ga(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function ha(a){return a[u]=!0,a}
vendor: 9,959 bytes, line 4
4function ia(a){var b=n.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function ja(a,b){var c=a.split("|"),e=c.length;while(e--)d.attrHandle[c[e]]=b}function ka(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||C)-(~a.sourceIndex||C);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function la(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function ma(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function na(a){return ha(function(b){return b=+b,ha(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function oa(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}c=fa.support={},f=fa.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},m=fa.setDocument=function(a){var b,e,g=a?a.ownerDocument||a:v;return g!==n&&9===g.nodeType&&g.documentElement?(n=g,o=n.documentElement,p=!f(n),(e=n.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",da,!1):e.attachEvent&&e.attachEvent("onunload",da)),c.attributes=ia(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ia(function(a){return a.appendChild(n.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=Z.test(n.getElementsByClassName),c.getById=ia(function(a){return o.appendChild(a).id=u,!n.getElementsByName||!n.getElementsByName(u).length}),c.getById?(d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c=b.getElementById(a);return c?[c]:[]}},d.filter.ID=function(a){var b=a.replace(ba,ca);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(ba,ca);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):c.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return"undefined"!=typeof b.getElementsByClassName&&p?b.getElementsByClassName(a):void 0},r=[],q=[],(c.qsa=Z.test(n.querySelectorAll))&&(ia(function(a){o.appendChild(a).innerHTML="<a id='"+u+"'></a><select id='"+u+"-\r\\' msallowcapture=''><option selected=''></option></select>",a.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+L+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+L+"*(?:value|"+K+")"),a.querySelectorAll("[id~="+u+"-]").length||q.push("~="),a.querySelectorAll(":checked").length||q.push(":checked"),a.querySelectorAll("a#"+u+"+*").length||q.push(".#.+[+~]")}),ia(function(a){var b=n.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+L+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=Z.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ia(function(a){c.disconnectedMatch=s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",O)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=Z.test(o.compareDocumentPosition),t=b||Z.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===n||a.ownerDocument===v&&t(v,a)?-1:b===n||b.ownerDocument===v&&t(v,b)?1:k?J(k,a)-J(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,e=a.parentNode,f=b.parentNode,g=[a],h=[b];if(!e||!f)return a===n?-1:b===n?1:e?-1:f?1:k?J(k,a)-J(k,b):0;if(e===f)return ka(a,b);c=a;while(c=c.parentNode)g.unshift(c);c=b;while(c=c.parentNode)h.unshift(c);while(g[d]===h[d])d++;return d?ka(g[d],h[d]):g[d]===v?-1:h[d]===v?1:0},n):n},fa.matches=function(a,b){return fa(a,null,null,b)},fa.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(T,"='$1']"),c.matchesSelector&&p&&!A[b+" "]&&(!r||!r.test(b))&&(!q||!q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return fa(b,n,null,[a]).length>0},fa.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},fa.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&D.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},fa.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},fa.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=fa.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=fa.selectors={cacheLength:50,createPseudo:ha,match:W,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(ba,ca),a[3]=(a[3]||a[4]||a[5]||"").replace(ba,ca),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||fa.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&fa.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return W.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&U.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(ba,ca).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+L+")"+a+"("+L+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=fa.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e.replace(P," ")+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h,t=!1;if(q){if(f){while(p){m=b;while(m=m[p])if(h?m.nodeName.toLowerCase()===r:1===m.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){m=q,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n&&j[2],m=n&&q.childNodes[n];while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if(1===m.nodeType&&++t&&m===b){k[a]=[w,n,t];break}}else if(s&&(m=b,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n),t===!1)while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if((h?m.nodeName.toLowerCase()===r:1===m.nodeType)&&++t&&(s&&(l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),k[a]=[w,t]),m===b))break;return t-=e,t===d||t%d===0&&t/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||fa.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ha(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=J(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:ha(function(a){var b=[],c=[],d=h(a.replace(Q,"$1"));return d[u]?ha(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),b[0]=null,!c.pop()}}),has:ha(function(a){return function(b){return fa(a,b).length>0}}),contains:ha(function(a){return a=a.replace(ba,ca),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ha(function(a){return V.test(a||"")||fa.error("unsupported lang: "+a),a=a.replace(ba,ca).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return Y.test(a.nodeName)}
vendor: 68,237 bytes, lines 4-6
4,input:function(a){return X.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:na(function(){return[0]}),last:na(function(a,b){return[b-1]}),eq:na(function(a,b,c){return[0>c?c+b:c]}),even:na(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:na(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:na(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:na(function(a,b,c){for(var d=0>c?c+b:c;++d<b;)a.push(d);return a})}},d.pseudos.nth=d.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})d.pseudos[b]=la(b);for(b in{submit:!0,reset:!0})d.pseudos[b]=ma(b);function pa(){}pa.prototype=d.filters=d.pseudos,d.setFilters=new pa,g=fa.tokenize=function(a,b){var c,e,f,g,h,i,j,k=z[a+" "];if(k)return b?0:k.slice(0);h=a,i=[],j=d.preFilter;while(h){c&&!(e=R.exec(h))||(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),c=!1,(e=S.exec(h))&&(c=e.shift(),f.push({value:c,type:e[0].replace(Q," ")}),h=h.slice(c.length));for(g in d.filter)!(e=W[g].exec(h))||j[g]&&!(e=j[g](e))||(c=e.shift(),f.push({value:c,type:g,matches:e}),h=h.slice(c.length));if(!c)break}return b?h.length:h?fa.error(a):z(a,i).slice(0)};function qa(a){for(var b=0,c=a.length,d="";c>b;b++)d+=a[b].value;return d}function ra(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=x++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j,k=[w,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(j=b[u]||(b[u]={}),i=j[b.uniqueID]||(j[b.uniqueID]={}),(h=i[d])&&h[0]===w&&h[1]===f)return k[2]=h[2];if(i[d]=k,k[2]=a(b,c,g))return!0}}}function sa(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function ta(a,b,c){for(var d=0,e=b.length;e>d;d++)fa(a,b[d],c);return c}function ua(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(c&&!c(f,d,e)||(g.push(f),j&&b.push(h)));return g}function va(a,b,c,d,e,f){return d&&!d[u]&&(d=va(d)),e&&!e[u]&&(e=va(e,f)),ha(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||ta(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:ua(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=ua(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?J(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=ua(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):H.apply(g,r)})}function wa(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=ra(function(a){return a===b},h,!0),l=ra(function(a){return J(b,a)>-1},h,!0),m=[function(a,c,d){var e=!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d));return b=null,e}];f>i;i++)if(c=d.relative[a[i].type])m=[ra(sa(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;f>e;e++)if(d.relative[a[e].type])break;return va(i>1&&sa(m),i>1&&qa(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(Q,"$1"),c,e>i&&wa(a.slice(i,e)),f>e&&wa(a=a.slice(e)),f>e&&qa(a))}m.push(c)}return sa(m)}function xa(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,o,q,r=0,s="0",t=f&&[],u=[],v=j,x=f||e&&d.find.TAG("*",k),y=w+=null==v?1:Math.random()||.1,z=x.length;for(k&&(j=g===n||g||k);s!==z&&null!=(l=x[s]);s++){if(e&&l){o=0,g||l.ownerDocument===n||(m(l),h=!p);while(q=a[o++])if(q(l,g||n,h)){i.push(l);break}k&&(w=y)}c&&((l=!q&&l)&&r--,f&&t.push(l))}if(r+=s,c&&s!==r){o=0;while(q=b[o++])q(t,u,g,h);if(f){if(r>0)while(s--)t[s]||u[s]||(u[s]=F.call(i));u=ua(u)}H.apply(i,u),k&&!f&&u.length>0&&r+b.length>1&&fa.uniqueSort(i)}return k&&(w=y,j=v),t};return c?ha(f):f}return h=fa.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=wa(b[c]),f[u]?d.push(f):e.push(f);f=A(a,xa(e,d)),f.selector=a}return f},i=fa.select=function(a,b,e,f){var i,j,k,l,m,n="function"==typeof a&&a,o=!f&&g(a=n.selector||a);if(e=e||[],1===o.length){if(j=o[0]=o[0].slice(0),j.length>2&&"ID"===(k=j[0]).type&&c.getById&&9===b.nodeType&&p&&d.relative[j[1].type]){if(b=(d.find.ID(k.matches[0].replace(ba,ca),b)||[])[0],!b)return e;n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=W.needsContext.test(a)?0:j.length;while(i--){if(k=j[i],d.relative[l=k.type])break;if((m=d.find[l])&&(f=m(k.matches[0].replace(ba,ca),_.test(j[0].type)&&oa(b.parentNode)||b))){if(j.splice(i,1),a=f.length&&qa(j),!a)return H.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,!b||_.test(a)&&oa(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ia(function(a){return 1&a.compareDocumentPosition(n.createElement("div"))}),ia(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||ja("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ia(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||ja("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),ia(function(a){return null==a.getAttribute("disabled")})||ja(K,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),fa}(a);n.find=t,n.expr=t.selectors,n.expr[":"]=n.expr.pseudos,n.uniqueSort=n.unique=t.uniqueSort,n.text=t.getText,n.isXMLDoc=t.isXML,n.contains=t.contains;var u=function(a,b,c){var d=[],e=void 0!==c;while((a=a[b])&&9!==a.nodeType)if(1===a.nodeType){if(e&&n(a).is(c))break;d.push(a)}return d},v=function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c},w=n.expr.match.needsContext,x=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,y=/^.[^:#\[\.,]*$/;function z(a,b,c){if(n.isFunction(b))return n.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return n.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(y.test(b))return n.filter(b,a,c);b=n.filter(b,a)}return n.grep(a,function(a){return h.call(b,a)>-1!==c})}n.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?n.find.matchesSelector(d,a)?[d]:[]:n.find.matches(a,n.grep(b,function(a){return 1===a.nodeType}))},n.fn.extend({find:function(a){var b,c=this.length,d=[],e=this;if("string"!=typeof a)return this.pushStack(n(a).filter(function(){for(b=0;c>b;b++)if(n.contains(e[b],this))return!0}));for(b=0;c>b;b++)n.find(a,e[b],d);return d=this.pushStack(c>1?n.unique(d):d),d.selector=this.selector?this.selector+" "+a:a,d},filter:function(a){return this.pushStack(z(this,a||[],!1))},not:function(a){return this.pushStack(z(this,a||[],!0))},is:function(a){return!!z(this,"string"==typeof a&&w.test(a)?n(a):a||[],!1).length}});var A,B=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,C=n.fn.init=function(a,b,c){var e,f;if(!a)return this;if(c=c||A,"string"==typeof a){if(e="<"===a[0]&&">"===a[a.length-1]&&a.length>=3?[null,a,null]:B.exec(a),!e||!e[1]&&b)return!b||b.jquery?(b||c).find(a):this.constructor(b).find(a);if(e[1]){if(b=b instanceof n?b[0]:b,n.merge(this,n.parseHTML(e[1],b&&b.nodeType?b.ownerDocument||b:d,!0)),x.test(e[1])&&n.isPlainObject(b))for(e in b)n.isFunction(this[e])?this[e](b[e]):this.attr(e,b[e]);return this}return f=d.getElementById(e[2]),f&&f.parentNode&&(this.length=1,this[0]=f),this.context=d,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):n.isFunction(a)?void 0!==c.ready?c.ready(a):a(n):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),n.makeArray(a,this))};C.prototype=n.fn,A=n(d);var D=/^(?:parents|prev(?:Until|All))/,E={children:!0,contents:!0,next:!0,prev:!0};n.fn.extend({has:function(a){var b=n(a,this),c=b.length;return this.filter(function(){for(var a=0;c>a;a++)if(n.contains(this,b[a]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=w.test(a)||"string"!=typeof a?n(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&n.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?n.uniqueSort(f):f)},index:function(a){return a?"string"==typeof a?h.call(n(a),this[0]):h.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(n.uniqueSort(n.merge(this.get(),n(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function F(a,b){while((a=a[b])&&1!==a.nodeType);return a}n.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return u(a,"parentNode")},parentsUntil:function(a,b,c){return u(a,"parentNode",c)},next:function(a){return F(a,"nextSibling")},prev:function(a){return F(a,"previousSibling")},nextAll:function(a){return u(a,"nextSibling")},prevAll:function(a){return u(a,"previousSibling")},nextUntil:function(a,b,c){return u(a,"nextSibling",c)},prevUntil:function(a,b,c){return u(a,"previousSibling",c)},siblings:function(a){return v((a.parentNode||{}).firstChild,a)},children:function(a){return v(a.firstChild)},contents:function(a){return a.contentDocument||n.merge([],a.childNodes)}},function(a,b){n.fn[a]=function(c,d){var e=n.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=n.filter(d,e)),this.length>1&&(E[a]||n.uniqueSort(e),D.test(a)&&e.reverse()),this.pushStack(e)}});var G=/\S+/g;function H(a){var b={};return n.each(a.match(G)||[],function(a,c){b[c]=!0}),b}n.Callbacks=function(a){a="string"==typeof a?H(a):n.extend({},a);var b,c,d,e,f=[],g=[],h=-1,i=function(){for(e=a.once,d=b=!0;g.length;h=-1){c=g.shift();while(++h<f.length)f[h].apply(c[0],c[1])===!1&&a.stopOnFalse&&(h=f.length,c=!1)}a.memory||(c=!1),b=!1,e&&(f=c?[]:"")},j={add:function(){return f&&(c&&!b&&(h=f.length-1,g.push(c)),function d(b){n.each(b,function(b,c){n.isFunction(c)?a.unique&&j.has(c)||f.push(c):c&&c.length&&"string"!==n.type(c)&&d(c)})}(arguments),c&&!b&&i()),this},remove:function(){return n.each(arguments,function(a,b){var c;while((c=n.inArray(b,f,c))>-1)f.splice(c,1),h>=c&&h--}),this},has:function(a){return a?n.inArray(a,f)>-1:f.length>0},empty:function(){return f&&(f=[]),this},disable:function(){return e=g=[],f=c="",this},disabled:function(){return!f},lock:function(){return e=g=[],c||(f=c=""),this},locked:function(){return!!e},fireWith:function(a,c){return e||(c=c||[],c=[a,c.slice?c.slice():c],g.push(c),b||i()),this},fire:function(){return j.fireWith(this,arguments),this},fired:function(){return!!d}};return j},n.extend({Deferred:function(a){var b=[["resolve","done",n.Callbacks("once memory"),"resolved"],["reject","fail",n.Callbacks("once memory"),"rejected"],["notify","progress",n.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return n.Deferred(function(c){n.each(b,function(b,f){var g=n.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&n.isFunction(a.promise)?a.promise().progress(c.notify).done(c.resolve).fail(c.reject):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?n.extend(a,d):d}},e={};return d.pipe=d.then,n.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=e.call(arguments),d=c.length,f=1!==d||a&&n.isFunction(a.promise)?d:0,g=1===f?a:n.Deferred(),h=function(a,b,c){return function(d){b[a]=this,c[a]=arguments.length>1?e.call(arguments):d,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(d>1)for(i=new Array(d),j=new Array(d),k=new Array(d);d>b;b++)c[b]&&n.isFunction(c[b].promise)?c[b].promise().progress(h(b,j,i)).done(h(b,k,c)).fail(g.reject):--f;return f||g.resolveWith(k,c),g.promise()}});var I;n.fn.ready=function(a){return n.ready.promise().done(a),this},n.extend({isReady:!1,readyWait:1,holdReady:function(a){a?n.readyWait++:n.ready(!0)},ready:function(a){(a===!0?--n.readyWait:n.isReady)||(n.isReady=!0,a!==!0&&--n.readyWait>0||(I.resolveWith(d,[n]),n.fn.triggerHandler&&(n(d).triggerHandler("ready"),n(d).off("ready"))))}});function J(){d.removeEventListener("DOMContentLoaded",J),a.removeEventListener("load",J),n.ready()}n.ready.promise=function(b){return I||(I=n.Deferred(),"complete"===d.readyState||"loading"!==d.readyState&&!d.documentElement.doScroll?a.setTimeout(n.ready):(d.addEventListener("DOMContentLoaded",J),a.addEventListener("load",J))),I.promise(b)},n.ready.promise();var K=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===n.type(c)){e=!0;for(h in c)K(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,n.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(n(a),c)})),b))for(;i>h;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},L=function(a){return 1===a.nodeType||9===a.nodeType||!+a.nodeType};function M(){this.expando=n.expando+M.uid++}M.uid=1,M.prototype={register:function(a,b){var c=b||{};return a.nodeType?a[this.expando]=c:Object.defineProperty(a,this.expando,{value:c,writable:!0,configurable:!0}),a[this.expando]},cache:function(a){if(!L(a))return{};var b=a[this.expando];return b||(b={},L(a)&&(a.nodeType?a[this.expando]=b:Object.defineProperty(a,this.expando,{value:b,configurable:!0}))),b},set:function(a,b,c){var d,e=this.cache(a);if("string"==typeof b)e[b]=c;else for(d in b)e[d]=b[d];return e},get:function(a,b){return void 0===b?this.cache(a):a[this.expando]&&a[this.expando][b]},access:function(a,b,c){var d;return void 0===b||b&&"string"==typeof b&&void 0===c?(d=this.get(a,b),void 0!==d?d:this.get(a,n.camelCase(b))):(this.set(a,b,c),void 0!==c?c:b)},remove:function(a,b){var c,d,e,f=a[this.expando];if(void 0!==f){if(void 0===b)this.register(a);else{n.isArray(b)?d=b.concat(b.map(n.camelCase)):(e=n.camelCase(b),b in f?d=[b,e]:(d=e,d=d in f?[d]:d.match(G)||[])),c=d.length;while(c--)delete f[d[c]]}(void 0===b||n.isEmptyObject(f))&&(a.nodeType?a[this.expando]=void 0:delete a[this.expando])}},hasData:function(a){var b=a[this.expando];return void 0!==b&&!n.isEmptyObject(b)}};var N=new M,O=new M,P=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Q=/[A-Z]/g;function R(a,b,c){var d;if(void 0===c&&1===a.nodeType)if(d="data-"+b.replace(Q,"-$&").toLowerCase(),c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:P.test(c)?n.parseJSON(c):c;
5}catch(e){}O.set(a,b,c)}else c=void 0;return c}n.extend({hasData:function(a){return O.hasData(a)||N.hasData(a)},data:function(a,b,c){return O.access(a,b,c)},removeData:function(a,b){O.remove(a,b)},_data:function(a,b,c){return N.access(a,b,c)},_removeData:function(a,b){N.remove(a,b)}}),n.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=O.get(f),1===f.nodeType&&!N.get(f,"hasDataAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=n.camelCase(d.slice(5)),R(f,d,e[d])));N.set(f,"hasDataAttrs",!0)}return e}return"object"==typeof a?this.each(function(){O.set(this,a)}):K(this,function(b){var c,d;if(f&&void 0===b){if(c=O.get(f,a)||O.get(f,a.replace(Q,"-$&").toLowerCase()),void 0!==c)return c;if(d=n.camelCase(a),c=O.get(f,d),void 0!==c)return c;if(c=R(f,d,void 0),void 0!==c)return c}else d=n.camelCase(a),this.each(function(){var c=O.get(this,d);O.set(this,d,b),a.indexOf("-")>-1&&void 0!==c&&O.set(this,a,b)})},null,b,arguments.length>1,null,!0)},removeData:function(a){return this.each(function(){O.remove(this,a)})}}),n.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=N.get(a,b),c&&(!d||n.isArray(c)?d=N.access(a,b,n.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=n.queue(a,b),d=c.length,e=c.shift(),f=n._queueHooks(a,b),g=function(){n.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return N.get(a,c)||N.access(a,c,{empty:n.Callbacks("once memory").add(function(){N.remove(a,[b+"queue",c])})})}}),n.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?n.queue(this[0],a):void 0===b?this:this.each(function(){var c=n.queue(this,a,b);n._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&n.dequeue(this,a)})},dequeue:function(a){return this.each(function(){n.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=n.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};"string"!=typeof a&&(b=a,a=void 0),a=a||"fx";while(g--)c=N.get(f[g],a+"queueHooks"),c&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}});var S=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,T=new RegExp("^(?:([+-])=|)("+S+")([a-z%]*)$","i"),U=["Top","Right","Bottom","Left"],V=function(a,b){return a=b||a,"none"===n.css(a,"display")||!n.contains(a.ownerDocument,a)};function W(a,b,c,d){var e,f=1,g=20,h=d?function(){return d.cur()}:function(){return n.css(a,b,"")},i=h(),j=c&&c[3]||(n.cssNumber[b]?"":"px"),k=(n.cssNumber[b]||"px"!==j&&+i)&&T.exec(n.css(a,b));if(k&&k[3]!==j){j=j||k[3],c=c||[],k=+i||1;do f=f||".5",k/=f,n.style(a,b,k+j);while(f!==(f=h()/i)&&1!==f&&--g)}return c&&(k=+k||+i||0,e=c[1]?k+(c[1]+1)*c[2]:+c[2],d&&(d.unit=j,d.start=k,d.end=e)),e}var X=/^(?:checkbox|radio)$/i,Y=/<([\w:-]+)/,Z=/^$|\/(?:java|ecma)script/i,$={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};$.optgroup=$.option,$.tbody=$.tfoot=$.colgroup=$.caption=$.thead,$.th=$.td;function _(a,b){var c="undefined"!=typeof a.getElementsByTagName?a.getElementsByTagName(b||"*"):"undefined"!=typeof a.querySelectorAll?a.querySelectorAll(b||"*"):[];return void 0===b||b&&n.nodeName(a,b)?n.merge([a],c):c}function aa(a,b){for(var c=0,d=a.length;d>c;c++)N.set(a[c],"globalEval",!b||N.get(b[c],"globalEval"))}var ba=/<|&#?\w+;/;function ca(a,b,c,d,e){for(var f,g,h,i,j,k,l=b.createDocumentFragment(),m=[],o=0,p=a.length;p>o;o++)if(f=a[o],f||0===f)if("object"===n.type(f))n.merge(m,f.nodeType?[f]:f);else if(ba.test(f)){g=g||l.appendChild(b.createElement("div")),h=(Y.exec(f)||["",""])[1].toLowerCase(),i=$[h]||$._default,g.innerHTML=i[1]+n.htmlPrefilter(f)+i[2],k=i[0];while(k--)g=g.lastChild;n.merge(m,g.childNodes),g=l.firstChild,g.textContent=""}else m.push(b.createTextNode(f));l.textContent="",o=0;while(f=m[o++])if(d&&n.inArray(f,d)>-1)e&&e.push(f);else if(j=n.contains(f.ownerDocument,f),g=_(l.appendChild(f),"script"),j&&aa(g),c){k=0;while(f=g[k++])Z.test(f.type||"")&&c.push(f)}return l}!function(){var a=d.createDocumentFragment(),b=a.appendChild(d.createElement("div")),c=d.createElement("input");c.setAttribute("type","radio"),c.setAttribute("checked","checked"),c.setAttribute("name","t"),b.appendChild(c),l.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,b.innerHTML="<textarea>x</textarea>",l.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue}();var da=/^key/,ea=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,fa=/^([^.]*)(?:\.(.+)|)/;function ga(){return!0}function ha(){return!1}function ia(){try{return d.activeElement}catch(a){}}function ja(a,b,c,d,e,f){var g,h;if("object"==typeof b){"string"!=typeof c&&(d=d||c,c=void 0);for(h in b)ja(a,h,c,d,b[h],f);return a}if(null==d&&null==e?(e=c,d=c=void 0):null==e&&("string"==typeof c?(e=d,d=void 0):(e=d,d=c,c=void 0)),e===!1)e=ha;else if(!e)return a;return 1===f&&(g=e,e=function(a){return n().off(a),g.apply(this,arguments)},e.guid=g.guid||(g.guid=n.guid++)),a.each(function(){n.event.add(this,b,e,d,c)})}n.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=N.get(a);if(r){c.handler&&(f=c,c=f.handler,e=f.selector),c.guid||(c.guid=n.guid++),(i=r.events)||(i=r.events={}),(g=r.handle)||(g=r.handle=function(b){return"undefined"!=typeof n&&n.event.triggered!==b.type?n.event.dispatch.apply(a,arguments):void 0}),b=(b||"").match(G)||[""],j=b.length;while(j--)h=fa.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o&&(l=n.event.special[o]||{},o=(e?l.delegateType:l.bindType)||o,l=n.event.special[o]||{},k=n.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&n.expr.match.needsContext.test(e),namespace:p.join(".")},f),(m=i[o])||(m=i[o]=[],m.delegateCount=0,l.setup&&l.setup.call(a,d,p,g)!==!1||a.addEventListener&&a.addEventListener(o,g)),l.add&&(l.add.call(a,k),k.handler.guid||(k.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,k):m.push(k),n.event.global[o]=!0)}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=N.hasData(a)&&N.get(a);if(r&&(i=r.events)){b=(b||"").match(G)||[""],j=b.length;while(j--)if(h=fa.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=n.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,m=i[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),g=f=m.length;while(f--)k=m[f],!e&&q!==k.origType||c&&c.guid!==k.guid||h&&!h.test(k.namespace)||d&&d!==k.selector&&("**"!==d||!k.selector)||(m.splice(f,1),k.selector&&m.delegateCount--,l.remove&&l.remove.call(a,k));g&&!m.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||n.removeEvent(a,o,r.handle),delete i[o])}else for(o in i)n.event.remove(a,o+b[j],c,d,!0);n.isEmptyObject(i)&&N.remove(a,"handle events")}},dispatch:function(a){a=n.event.fix(a);var b,c,d,f,g,h=[],i=e.call(arguments),j=(N.get(this,"events")||{})[a.type]||[],k=n.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=n.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,c=0;while((g=f.handlers[c++])&&!a.isImmediatePropagationStopped())a.rnamespace&&!a.rnamespace.test(g.namespace)||(a.handleObj=g,a.data=g.data,d=((n.event.special[g.origType]||{}).handle||g.handler).apply(f.elem,i),void 0!==d&&(a.result=d)===!1&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&("click"!==a.type||isNaN(a.button)||a.button<1))for(;i!==this;i=i.parentNode||this)if(1===i.nodeType&&(i.disabled!==!0||"click"!==a.type)){for(d=[],c=0;h>c;c++)f=b[c],e=f.selector+" ",void 0===d[e]&&(d[e]=f.needsContext?n(e,this).index(i)>-1:n.find(e,this,null,[i]).length),d[e]&&d.push(f);d.length&&g.push({elem:i,handlers:d})}return h<b.length&&g.push({elem:this,handlers:b.slice(h)}),g},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){return null==a.which&&(a.which=null!=b.charCode?b.charCode:b.keyCode),a}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,b){var c,e,f,g=b.button;return null==a.pageX&&null!=b.clientX&&(c=a.target.ownerDocument||d,e=c.documentElement,f=c.body,a.pageX=b.clientX+(e&&e.scrollLeft||f&&f.scrollLeft||0)-(e&&e.clientLeft||f&&f.clientLeft||0),a.pageY=b.clientY+(e&&e.scrollTop||f&&f.scrollTop||0)-(e&&e.clientTop||f&&f.clientTop||0)),a.which||void 0===g||(a.which=1&g?1:2&g?3:4&g?2:0),a}},fix:function(a){if(a[n.expando])return a;var b,c,e,f=a.type,g=a,h=this.fixHooks[f];h||(this.fixHooks[f]=h=ea.test(f)?this.mouseHooks:da.test(f)?this.keyHooks:{}),e=h.props?this.props.concat(h.props):this.props,a=new n.Event(g),b=e.length;while(b--)c=e[b],a[c]=g[c];return a.target||(a.target=d),3===a.target.nodeType&&(a.target=a.target.parentNode),h.filter?h.filter(a,g):a},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==ia()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===ia()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&n.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(a){return n.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&a.originalEvent&&(a.originalEvent.returnValue=a.result)}}}},n.removeEvent=function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c)},n.Event=function(a,b){return this instanceof n.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&a.returnValue===!1?ga:ha):this.type=a,b&&n.extend(this,b),this.timeStamp=a&&a.timeStamp||n.now(),void(this[n.expando]=!0)):new n.Event(a,b)},n.Event.prototype={constructor:n.Event,isDefaultPrevented:ha,isPropagationStopped:ha,isImmediatePropagationStopped:ha,isSimulated:!1,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=ga,a&&!this.isSimulated&&a.preventDefault()},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=ga,a&&!this.isSimulated&&a.stopPropagation()},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=ga,a&&!this.isSimulated&&a.stopImmediatePropagation(),this.stopPropagation()}},n.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(a,b){n.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return e&&(e===d||n.contains(d,e))||(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),n.fn.extend({on:function(a,b,c,d){return ja(this,a,b,c,d)},one:function(a,b,c,d){return ja(this,a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,n(a.delegateTarget).off(d.namespace?d.origType+"."+d.namespace:d.origType,d.selector,d.handler),this;if("object"==typeof a){for(e in a)this.off(e,b,a[e]);return this}return b!==!1&&"function"!=typeof b||(c=b,b=void 0),c===!1&&(c=ha),this.each(function(){n.event.remove(this,a,c,b)})}});var ka=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,la=/<script|<style|<link/i,ma=/checked\s*(?:[^=]|=\s*.checked.)/i,na=/^true\/(.*)/,oa=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function pa(a,b){return n.nodeName(a,"table")&&n.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function qa(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function ra(a){var b=na.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function sa(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodeType){if(N.hasData(a)&&(f=N.access(a),g=N.set(b,f),j=f.events)){delete g.handle,g.events={};for(e in j)for(c=0,d=j[e].length;d>c;c++)n.event.add(b,e,j[e][c])}O.hasData(a)&&(h=O.access(a),i=n.extend({},h),O.set(b,i))}}function ta(a,b){var c=b.nodeName.toLowerCase();"input"===c&&X.test(a.type)?b.checked=a.checked:"input"!==c&&"textarea"!==c||(b.defaultValue=a.defaultValue)}function ua(a,b,c,d){b=f.apply([],b);var e,g,h,i,j,k,m=0,o=a.length,p=o-1,q=b[0],r=n.isFunction(q);if(r||o>1&&"string"==typeof q&&!l.checkClone&&ma.test(q))return a.each(function(e){var f=a.eq(e);r&&(b[0]=q.call(this,e,f.html())),ua(f,b,c,d)});if(o&&(e=ca(b,a[0].ownerDocument,!1,a,d),g=e.firstChild,1===e.childNodes.length&&(e=g),g||d)){for(h=n.map(_(e,"script"),qa),i=h.length;o>m;m++)j=e,m!==p&&(j=n.clone(j,!0,!0),i&&n.merge(h,_(j,"script"))),c.call(a[m],j,m);if(i)for(k=h[h.length-1].ownerDocument,n.map(h,ra),m=0;i>m;m++)j=h[m],Z.test(j.type||"")&&!N.access(j,"globalEval")&&n.contains(k,j)&&(j.src?n._evalUrl&&n._evalUrl(j.src):n.globalEval(j.textContent.replace(oa,"")))}return a}function va(a,b,c){for(var d,e=b?n.filter(b,a):a,f=0;null!=(d=e[f]);f++)c||1!==d.nodeType||n.cleanData(_(d)),d.parentNode&&(c&&n.contains(d.ownerDocument,d)&&aa(_(d,"script")),d.parentNode.removeChild(d));return a}n.extend({htmlPrefilter:function(a){return a.replace(ka,"<$1></$2>")},clone:function(a,b,c){var d,e,f,g,h=a.cloneNode(!0),i=n.contains(a.ownerDocument,a);if(!(l.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||n.isXMLDoc(a)))for(g=_(h),f=_(a),d=0,e=f.length;e>d;d++)ta(f[d],g[d]);if(b)if(c)for(f=f||_(a),g=g||_(h),d=0,e=f.length;e>d;d++)sa(f[d],g[d]);else sa(a,h);return g=_(h,"script"),g.length>0&&aa(g,!i&&_(a,"script")),h},cleanData:function(a){for(var b,c,d,e=n.event.special,f=0;void 0!==(c=a[f]);f++)if(L(c)){if(b=c[N.expando]){if(b.events)for(d in b.events)e[d]?n.event.remove(c,d):n.removeEvent(c,d,b.handle);c[N.expando]=void 0}c[O.expando]&&(c[O.expando]=void 0)}}}),n.fn.extend({domManip:ua,detach:function(a){return va(this,a,!0)},remove:function(a){return va(this,a)},text:function(a){return K(this,function(a){return void 0===a?n.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=a)})},null,a,arguments.length)},append:function(){return ua(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=pa(this,a);b.appendChild(a)}})},prepend:function(){return ua(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=pa(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return ua(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return ua(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},empty:function(){for(var a,b=0;null!=(a=this[b]);b++)1===a.nodeType&&(n.cleanData(_(a,!1)),a.textContent="");return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return n.clone(this,a,b)})},html:function(a){return K(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a&&1===b.nodeType)return b.innerHTML;if("string"==typeof a&&!la.test(a)&&!$[(Y.exec(a)||["",""])[1].toLowerCase()]){a=n.htmlPrefilter(a);try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(n.cleanData(_(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=[];return ua(this,arguments,function(b){var c=this.parentNode;n.inArray(this,a)<0&&(n.cleanData(_(this)),c&&c.replaceChild(b,this))},a)}}),n.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){n.fn[a]=function(a){for(var c,d=[],e=n(a),f=e.length-1,h=0;f>=h;h++)c=h===f?this:this.clone(!0),n(e[h])[b](c),g.apply(d,c.get());return this.pushStack(d)}});var wa,xa={HTML:"block",BODY:"block"};function ya(a,b){var c=n(b.createElement(a)).appendTo(b.body),d=n.css(c[0],"display");return c.detach(),d}function za(a){var b=d,c=xa[a];return c||(c=ya(a,b),"none"!==c&&c||(wa=(wa||n("<iframe frameborder='0' width='0' height='0'/>")).appendTo(b.documentElement),b=wa[0].contentDocument,b.write(),b.close(),c=ya(a,b),wa.detach()),xa[a]=c),c}var Aa=/^margin/,Ba=new RegExp("^("+S+")(?!px)[a-z%]+$","i"),Ca=function(b){var c=b.ownerDocument.defaultView;return c&&c.opener||(c=a),c.getComputedStyle(b)},Da=function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e},Ea=d.documentElement;!function(){var b,c,e,f,g=d.createElement("div"),h=d.createElement("div");if(h.style){h.style.backgroundClip="content-box",h.cloneNode(!0).style.backgroundClip="",l.clearCloneStyle="content-box"===h.style.backgroundClip,g.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",g.appendChild(h);function i(){h.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",h.innerHTML="",Ea.appendChild(g);var d=a.getComputedStyle(h);b="1%"!==d.top,f="2px"===d.marginLeft,c="4px"===d.width,h.style.marginRight="50%",e="4px"===d.marginRight,Ea.removeChild(g)}n.extend(l,{pixelPosition:function(){return i(),b},boxSizingReliable:function(){return null==c&&i(),c},pixelMarginRight:function(){return null==c&&i(),e},reliableMarginLeft:function(){return null==c&&i(),f},reliableMarginRight:function(){var b,c=h.appendChild(d.createElement("div"));return c.style.cssText=h.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",c.style.marginRight=c.style.width="0",h.style.width="1px",Ea.appendChild(g),b=!parseFloat(a.getComputedStyle(c).marginRight),Ea.removeChild(g),h.removeChild(c),b}})}}();function Fa(a,b,c){var d,e,f,g,h=a.style;return c=c||Ca(a),g=c?c.getPropertyValue(b)||c[b]:void 0,""!==g&&void 0!==g||n.contains(a.ownerDocument,a)||(g=n.style(a,b)),c&&!l.pixelMarginRight()&&Ba.test(g)&&Aa.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=g,g=c.width,h.width=d,h.minWidth=e,h.maxWidth=f),void 0!==g?g+"":g}function Ga(a,b){return{get:function(){return a()?void delete this.get:(this.get=b).apply(this,arguments)}}}var Ha=/^(none|table(?!-c[ea]).+)/,Ia={position:"absolute",visibility:"hidden",display:"block"},Ja={letterSpacing:"0",fontWeight:"400"},Ka=["Webkit","O","Moz","ms"],La=d.createElement("div").style;function Ma(a){if(a in La)return a;var b=a[0].toUpperCase()+a.slice(1),c=Ka.length;while(c--)if(a=Ka[c]+b,a in La)return a}function Na(a,b,c){var d=T.exec(b);return d?Math.max(0,d[2]-(c||0))+(d[3]||"px"):b}function Oa(a,b,c,d,e){for(var f=c===(d?"border":"content")?4:"width"===b?1:0,g=0;4>f;f+=2)"margin"===c&&(g+=n.css(a,c+U[f],!0,e)),d?("content"===c&&(g-=n.css(a,"padding"+U[f],!0,e)),"margin"!==c&&(g-=n.css(a,"border"+U[f]+"Width",!0,e))):(g+=n.css(a,"padding"+U[f],!0,e),"padding"!==c&&(g+=n.css(a,"border"+U[f]+"Width",!0,e)));return g}function Pa(a,b,c){var d=!0,e="width"===b?a.offsetWidth:a.offsetHeight,f=Ca(a),g="border-box"===n.css(a,"boxSizing",!1,f);if(0>=e||null==e){if(e=Fa(a,b,f),(0>e||null==e)&&(e=a.style[b]),Ba.test(e))return e;d=g&&(l.boxSizingReliable()||e===a.style[b]),e=parseFloat(e)||0}return e+Oa(a,b,c||(g?"border":"content"),d,f)+"px"}function Qa(a,b){for(var c,d,e,f=[],g=0,h=a.length;h>g;g++)d=a[g],d.style&&(f[g]=N.get(d,"olddisplay"),c=d.style.display,b?(f[g]||"none"!==c||(d.style.display=""),""===d.style.display&&V(d)&&(f[g]=N.access(d,"olddisplay",za(d.nodeName)))):(e=V(d),"none"===c&&e||N.set(d,"olddisplay",e?c:n.css(d,"display"))));for(g=0;h>g;g++)d=a[g],d.style&&(b&&"none"!==d.style.display&&""!==d.style.display||(d.style.display=b?f[g]||"":"none"));return a}n.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=Fa(a,"opacity");return""===c?"1":c}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(a,b,c,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,f,g,h=n.camelCase(b),i=a.style;return b=n.cssProps[h]||(n.cssProps[h]=Ma(h)||h),g=n.cssHooks[b]||n.cssHooks[h],void 0===c?g&&"get"in g&&void 0!==(e=g.get(a,!1,d))?e:i[b]:(f=typeof c,"string"===f&&(e=T.exec(c))&&e[1]&&(c=W(a,b,e),f="number"),null!=c&&c===c&&("number"===f&&(c+=e&&e[3]||(n.cssNumber[h]?"":"px")),l.clearCloneStyle||""!==c||0!==b.indexOf("background")||(i[b]="inherit"),g&&"set"in g&&void 0===(c=g.set(a,c,d))||(i[b]=c)),void 0)}},css:function(a,b,c,d){var e,f,g,h=n.camelCase(b);return b=n.cssProps[h]||(n.cssProps[h]=Ma(h)||h),g=n.cssHooks[b]||n.cssHooks[h],g&&"get"in g&&(e=g.get(a,!0,c)),void 0===e&&(e=Fa(a,b,d)),"normal"===e&&b in Ja&&(e=Ja[b]),""===c||c?(f=parseFloat(e),c===!0||isFinite(f)?f||0:e):e}}),n.each(["height","width"],function(a,b){n.cssHooks[b]={get:function(a,c,d){return c?Ha.test(n.css(a,"display"))&&0===a.offsetWidth?Da(a,Ia,function(){return Pa(a,b,d)}):Pa(a,b,d):void 0},set:function(a,c,d){var e,f=d&&Ca(a),g=d&&Oa(a,b,d,"border-box"===n.css(a,"boxSizing",!1,f),f);return g&&(e=T.exec(c))&&"px"!==(e[3]||"px")&&(a.style[b]=c,c=n.css(a,b)),Na(a,c,g)}}}),n.cssHooks.marginLeft=Ga(l.reliableMarginLeft,function(a,b){return b?(parseFloat(Fa(a,"marginLeft"))||a.getBoundingClientRect().left-Da(a,{marginLeft:0},function(){return a.getBoundingClientRect().left}))+"px":void 0}),n.cssHooks.marginRight=Ga(l.reliableMarginRight,function(a,b){return b?Da(a,{display:"inline-block"},Fa,[a,"marginRight"]):void 0}),n.each({margin:"",padding:"",border:"Width"},function(a,b){n.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];4>d;d++)e[a+U[d]+b]=f[d]||f[d-2]||f[0];return e}},Aa.test(a)||(n.cssHooks[a+b].set=Na)}),n.fn.extend({css:function(a,b){return K(this,function(a,b,c){var d,e,f={},g=0;if(n.isArray(b)){for(d=Ca(a),e=b.length;e>g;g++)f[b[g]]=n.css(a,b[g],!1,d);return f}return void 0!==c?n.style(a,b,c):n.css(a,b)},a,b,arguments.length>1)},show:function(){return Qa(this,!0)},hide:function(){return Qa(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){V(this)?n(this).show():n(this).hide()})}});function Ra(a,b,c,d,e){return new Ra.prototype.init(a,b,c,d,e)}n.Tween=Ra,Ra.prototype={constructor:Ra,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||n.easing._default,this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(n.cssNumber[c]?"":"px")},cur:function(){var a=Ra.propHooks[this.prop];return a&&a.get?a.get(this):Ra.propHooks._default.get(this)},run:function(a){var b,c=Ra.propHooks[this.prop];return this.options.duration?this.pos=b=n.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=b=a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):Ra.propHooks._default.set(this),this}},Ra.prototype.init.prototype=Ra.prototype,Ra.propHooks={_default:{get:function(a){var b;return 1!==a.elem.nodeType||null!=a.elem[a.prop]&&null==a.elem.style[a.prop]?a.elem[a.prop]:(b=n.css(a.elem,a.prop,""),b&&"auto"!==b?b:0)},set:function(a){n.fx.step[a.prop]?n.fx.step[a.prop](a):1!==a.elem.nodeType||null==a.elem.style[n.cssProps[a.prop]]&&!n.cssHooks[a.prop]?a.elem[a.prop]=a.now:n.style(a.elem,a.prop,a.now+a.unit)}}},Ra.propHooks.scrollTop=Ra.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},n.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2},_default:"swing"},n.fx=Ra.prototype.init,n.fx.step={};var Sa,Ta,Ua=/^(?:toggle|show|hide)$/,Va=/queueHooks$/;function Wa(){return a.setTimeout(function(){Sa=void 0}),Sa=n.now()}function Xa(a,b){var c,d=0,e={height:a};for(b=b?1:0;4>d;d+=2-b)c=U[d],e["margin"+c]=e["padding"+c]=a;return b&&(e.opacity=e.width=a),e}function Ya(a,b,c){for(var d,e=(_a.tweeners[b]||[]).concat(_a.tweeners["*"]),f=0,g=e.length;g>f;f++)if(d=e[f].call(c,b,a))return d}function Za(a,b,c){var d,e,f,g,h,i,j,k,l=this,m={},o=a.style,p=a.nodeType&&V(a),q=N.get(a,"fxshow");c.queue||(h=n._queueHooks(a,"fx"),null==h.unqueued&&(h.unqueued=0,i=h.empty.fire,h.empty.fire=function(){h.unqueued||i()}),h.unqueued++,l.always(function(){l.always(function(){h.unqueued--,n.queue(a,"fx").length||h.empty.fire()})})),1===a.nodeType&&("height"in b||"width"in b)&&(c.overflow=[o.overflow,o.overflowX,o.overflowY],j=n.css(a,"display"),k="none"===j?N.get(a,"olddisplay")||za(a.nodeName):j,"inline"===k&&"none"===n.css(a,"float")&&(o.display="inline-block")),c.overflow&&(o.overflow="hidden",l.always(function(){o.overflow=c.overflow[0],o.overflowX=c.overflow[1],o.overflowY=c.overflow[2]}));for(d in b)if(e=b[d],Ua.exec(e)){if(delete b[d],f=f||"toggle"===e,e===(p?"hide":"show")){if("show"!==e||!q||void 0===q[d])continue;p=!0}m[d]=q&&q[d]||n.style(a,d)}else j=void 0;if(n.isEmptyObject(m))"inline"===("none"===j?za(a.nodeName):j)&&(o.display=j);else{q?"hidden"in q&&(p=q.hidden):q=N.access(a,"fxshow",{}),f&&(q.hidden=!p),p?n(a).show():l.done(function(){n(a).hide()}),l.done(function(){var b;N.remove(a,"fxshow");for(b in m)n.style(a,b,m[b])});for(d in m)g=Ya(p?q[d]:0,d,l),d in q||(q[d]=g.start,p&&(g.end=g.start,g.start="width"===d||"height"===d?1:0))}}function $a(a,b){var c,d,e,f,g;for(c in a)if(d=n.camelCase(c),e=b[d],f=a[c],n.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=n.cssHooks[d],g&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function _a(a,b,c){var d,e,f=0,g=_a.prefilters.length,h=n.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=Sa||Wa(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;i>g;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),1>f&&i?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:n.extend({},b),opts:n.extend(!0,{specialEasing:{},easing:n.easing._default},c),originalProperties:b,originalOptions:c,startTime:Sa||Wa(),duration:c.duration,tweens:[],createTween:function(b,c){var d=n.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e)return this;for(e=!0;d>c;c++)j.tweens[c].run(1);return b?(h.notifyWith(a,[j,1,0]),h.resolveWith(a,[j,b])):h.rejectWith(a,[j,b]),this}}),k=j.props;for($a(k,j.opts.specialEasing);g>f;f++)if(d=_a.prefilters[f].call(j,a,k,j.opts))return n.isFunction(d.stop)&&(n._queueHooks(j.elem,j.opts.queue).stop=n.proxy(d.stop,d)),d;return n.map(k,Ya,j),n.isFunction(j.opts.start)&&j.opts.start.call(a,j),n.fx.timer(n.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}n.Animation=n.extend(_a,{tweeners:{"*":[function(a,b){var c=this.createTween(a,b);return W(c.elem,a,T.exec(b),c),c}]},tweener:function(a,b){n.isFunction(a)?(b=a,a=["*"]):a=a.match(G);for(var c,d=0,e=a.length;e>d;d++)c=a[d],_a.tweeners[c]=_a.tweeners[c]||[],_a.tweeners[c].unshift(b)},prefilters:[Za],prefilter:function(a,b){b?_a.prefilters.unshift(a):_a.prefilters.push(a)}}),n.speed=function(a,b,c){var d=a&&"object"==typeof a?n.extend({},a):{complete:c||!c&&b||n.isFunction(a)&&a,duration:a,easing:c&&b||b&&!n.isFunction(b)&&b};return d.duration=n.fx.off?0:"number"==typeof d.duration?d.duration:d.duration in n.fx.speeds?n.fx.speeds[d.duration]:n.fx.speeds._default,null!=d.queue&&d.queue!==!0||(d.queue="fx"),d.old=d.complete,d.complete=function(){n.isFunction(d.old)&&d.old.call(this),d.queue&&n.dequeue(this,d.queue)},d},n.fn.extend({fadeTo:function(a,b,c,d){return this.filter(V).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=n.isEmptyObject(a),f=n.speed(b,c,d),g=function(){var b=_a(this,n.extend({},a),f);(e||N.get(this,"finish"))&&b.stop(!0)};return g.finish=g,e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop,b(c)};return"string"!=typeof a&&(c=b,b=a,a=void 0),b&&a!==!1&&this.queue(a||"fx",[]),this.each(function(){var b=!0,e=null!=a&&a+"queueHooks",f=n.timers,g=N.get(this);if(e)g[e]&&g[e].stop&&d(g[e]);else for(e in g)g[e]&&g[e].stop&&Va.test(e)&&d(g[e]);for(e=f.length;e--;)f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(c),b=!1,f.splice(e,1));!b&&c||n.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||"fx"),this.each(function(){var b,c=N.get(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=n.timers,g=d?d.length:0;for(c.finish=!0,n.queue(this,a,[]),e&&e.stop&&e.stop.call(this,!0),b=f.length;b--;)f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),f.splice(b,1));for(b=0;g>b;b++)d[b]&&d[b].finish&&d[b].finish.call(this);delete c.finish})}}),n.each(["toggle","show","hide"],function(a,b){var c=n.fn[b];n.fn[b]=function(a,d,e){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(Xa(b,!0),a,d,e)}}),n.each({slideDown:Xa("show"),slideUp:Xa("hide"),slideToggle:Xa("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){n.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),n.timers=[],n.fx.tick=function(){var a,b=0,c=n.timers;for(Sa=n.now();b<c.length;b++)a=c[b],a()||c[b]!==a||c.splice(b--,1);c.length||n.fx.stop(),Sa=void 0},n.fx.timer=function(a){n.timers.push(a),a()?n.fx.start():n.timers.pop()},n.fx.interval=13,n.fx.start=function(){Ta||(Ta=a.setInterval(n.fx.tick,n.fx.interval))},n.fx.stop=function(){a.clearInterval(Ta),Ta=null},n.fx.speeds={slow:600,fast:200,_default:400},n.fn.delay=function(b,c){return b=n.fx?n.fx.speeds[b]||b:b,c=c||"fx",this.queue(c,function(c,d){var e=a.setTimeout(c,b);d.stop=function(){a.clearTimeout(e)}})},function(){var a=d.createElement("input"),b=d.createElement("select"),c=b.appendChild(d.createElement("option"));a.type="checkbox",l.checkOn=""!==a.value,l.optSelected=c.selected,b.disabled=!0,l.optDisabled=!c.disabled,a=d.createElement("input"),a.value="t",a.type="radio",l.radioValue="t"===a.value}();var ab,bb=n.expr.attrHandle;n.fn.extend({attr:function(a,b){return K(this,n.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){n.removeAttr(this,a)})}}),n.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return"undefined"==typeof a.getAttribute?n.prop(a,b,c):(1===f&&n.isXMLDoc(a)||(b=b.toLowerCase(),e=n.attrHooks[b]||(n.expr.match.bool.test(b)?ab:void 0)),void 0!==c?null===c?void n.removeAttr(a,b):e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:(a.setAttribute(b,c+""),c):e&&"get"in e&&null!==(d=e.get(a,b))?d:(d=n.find.attr(a,b),null==d?void 0:d))},attrHooks:{type:{set:function(a,b){if(!l.radioValue&&"radio"===b&&n.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}},removeAttr:function(a,b){var c,d,e=0,f=b&&b.match(G);if(f&&1===a.nodeType)while(c=f[e++])d=n.propFix[c]||c,n.expr.match.bool.test(c)&&(a[d]=!1),a.removeAttribute(c)}}),ab={set:function(a,b,c){return b===!1?n.removeAttr(a,c):a.setAttribute(c,c),c}},n.each(n.expr.match.bool.source.match(/\w+/g),function(a,b){var c=bb[b]||n.find.attr;bb[b]=function(a,b,d){var e,f;return d||(f=bb[b],bb[b]=e,e=null!=c(a,b,d)?b.toLowerCase():null,bb[b]=f),e}});var cb=/^(?:input|select|textarea|button)$/i,db=/^(?:a|area)$/i;n.fn.extend({prop:function(a,b){return K(this,n.prop,a,b,arguments.length>1)},removeProp:function(a){return this.each(function(){delete this[n.propFix[a]||a]})}}),n.extend({prop:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return 1===f&&n.isXMLDoc(a)||(b=n.propFix[b]||b,e=n.propHooks[b]),
6void 0!==c?e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){var b=n.find.attr(a,"tabindex");return b?parseInt(b,10):cb.test(a.nodeName)||db.test(a.nodeName)&&a.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),l.optSelected||(n.propHooks.selected={get:function(a){var b=a.parentNode;return b&&b.parentNode&&b.parentNode.selectedIndex,null},set:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex)}}),n.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){n.propFix[this.toLowerCase()]=this});var eb=/[\t\r\n\f]/g;function fb(a){return a.getAttribute&&a.getAttribute("class")||""}n.fn.extend({addClass:function(a){var b,c,d,e,f,g,h,i=0;if(n.isFunction(a))return this.each(function(b){n(this).addClass(a.call(this,b,fb(this)))});if("string"==typeof a&&a){b=a.match(G)||[];while(c=this[i++])if(e=fb(c),d=1===c.nodeType&&(" "+e+" ").replace(eb," ")){g=0;while(f=b[g++])d.indexOf(" "+f+" ")<0&&(d+=f+" ");h=n.trim(d),e!==h&&c.setAttribute("class",h)}}return this},removeClass:function(a){var b,c,d,e,f,g,h,i=0;if(n.isFunction(a))return this.each(function(b){n(this).removeClass(a.call(this,b,fb(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof a&&a){b=a.match(G)||[];while(c=this[i++])if(e=fb(c),d=1===c.nodeType&&(" "+e+" ").replace(eb," ")){g=0;while(f=b[g++])while(d.indexOf(" "+f+" ")>-1)d=d.replace(" "+f+" "," ");h=n.trim(d),e!==h&&c.setAttribute("class",h)}}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):n.isFunction(a)?this.each(function(c){n(this).toggleClass(a.call(this,c,fb(this),b),b)}):this.each(function(){var b,d,e,f;if("string"===c){d=0,e=n(this),f=a.match(G)||[];while(b=f[d++])e.hasClass(b)?e.removeClass(b):e.addClass(b)}else void 0!==a&&"boolean"!==c||(b=fb(this),b&&N.set(this,"__className__",b),this.setAttribute&&this.setAttribute("class",b||a===!1?"":N.get(this,"__className__")||""))})},hasClass:function(a){var b,c,d=0;b=" "+a+" ";while(c=this[d++])if(1===c.nodeType&&(" "+fb(c)+" ").replace(eb," ").indexOf(b)>-1)return!0;return!1}});var gb=/\r/g,hb=/[\x20\t\r\n\f]+/g;n.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=n.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,n(this).val()):a,null==e?e="":"number"==typeof e?e+="":n.isArray(e)&&(e=n.map(e,function(a){return null==a?"":a+""})),b=n.valHooks[this.type]||n.valHooks[this.nodeName.toLowerCase()],b&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))});if(e)return b=n.valHooks[e.type]||n.valHooks[e.nodeName.toLowerCase()],b&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(gb,""):null==c?"":c)}}}),n.extend({valHooks:{option:{get:function(a){var b=n.find.attr(a,"value");return null!=b?b:n.trim(n.text(a)).replace(hb," ")}},select:{get:function(a){for(var b,c,d=a.options,e=a.selectedIndex,f="select-one"===a.type||0>e,g=f?null:[],h=f?e+1:d.length,i=0>e?h:f?e:0;h>i;i++)if(c=d[i],(c.selected||i===e)&&(l.optDisabled?!c.disabled:null===c.getAttribute("disabled"))&&(!c.parentNode.disabled||!n.nodeName(c.parentNode,"optgroup"))){if(b=n(c).val(),f)return b;g.push(b)}return g},set:function(a,b){var c,d,e=a.options,f=n.makeArray(b),g=e.length;while(g--)d=e[g],(d.selected=n.inArray(n.valHooks.option.get(d),f)>-1)&&(c=!0);return c||(a.selectedIndex=-1),f}}}}),n.each(["radio","checkbox"],function(){n.valHooks[this]={set:function(a,b){return n.isArray(b)?a.checked=n.inArray(n(a).val(),b)>-1:void 0}},l.checkOn||(n.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})});var ib=/^(?:focusinfocus|focusoutblur)$/;n.extend(n.event,{trigger:function(b,c,e,f){var g,h,i,j,l,m,o,p=[e||d],q=k.call(b,"type")?b.type:b,r=k.call(b,"namespace")?b.namespace.split("."):[];if(h=i=e=e||d,3!==e.nodeType&&8!==e.nodeType&&!ib.test(q+n.event.triggered)&&(q.indexOf(".")>-1&&(r=q.split("."),q=r.shift(),r.sort()),l=q.indexOf(":")<0&&"on"+q,b=b[n.expando]?b:new n.Event(q,"object"==typeof b&&b),b.isTrigger=f?2:3,b.namespace=r.join("."),b.rnamespace=b.namespace?new RegExp("(^|\\.)"+r.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=e),c=null==c?[b]:n.makeArray(c,[b]),o=n.event.special[q]||{},f||!o.trigger||o.trigger.apply(e,c)!==!1)){if(!f&&!o.noBubble&&!n.isWindow(e)){for(j=o.delegateType||q,ib.test(j+q)||(h=h.parentNode);h;h=h.parentNode)p.push(h),i=h;i===(e.ownerDocument||d)&&p.push(i.defaultView||i.parentWindow||a)}g=0;while((h=p[g++])&&!b.isPropagationStopped())b.type=g>1?j:o.bindType||q,m=(N.get(h,"events")||{})[b.type]&&N.get(h,"handle"),m&&m.apply(h,c),m=l&&h[l],m&&m.apply&&L(h)&&(b.result=m.apply(h,c),b.result===!1&&b.preventDefault());return b.type=q,f||b.isDefaultPrevented()||o._default&&o._default.apply(p.pop(),c)!==!1||!L(e)||l&&n.isFunction(e[q])&&!n.isWindow(e)&&(i=e[l],i&&(e[l]=null),n.event.triggered=q,e[q](),n.event.triggered=void 0,i&&(e[l]=i)),b.result}},simulate:function(a,b,c){var d=n.extend(new n.Event,c,{type:a,isSimulated:!0});n.event.trigger(d,null,b)}}),n.fn.extend({trigger:function(a,b){return this.each(function(){n.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];return c?n.event.trigger(a,b,c,!0):void 0}}),n.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){n.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),n.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}}),l.focusin="onfocusin"in a,l.focusin||n.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){n.event.simulate(b,a.target,n.event.fix(a))};n.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=N.access(d,b);e||d.addEventListener(a,c,!0),N.access(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=N.access(d,b)-1;e?N.access(d,b,e):(d.removeEventListener(a,c,!0),N.remove(d,b))}}});var jb=a.location,kb=n.now(),lb=/\?/;n.parseJSON=function(a){return JSON.parse(a+"")},n.parseXML=function(b){var c;if(!b||"string"!=typeof b)return null;try{c=(new a.DOMParser).parseFromString(b,"text/xml")}catch(d){c=void 0}return c&&!c.getElementsByTagName("parsererror").length||n.error("Invalid XML: "+b),c};var mb=/#.*$/,nb=/([?&])_=[^&]*/,ob=/^(.*?):[ \t]*([^\r\n]*)$/gm,pb=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,qb=/^(?:GET|HEAD)$/,rb=/^\/\//,sb={},tb={},ub="*/".concat("*"),vb=d.createElement("a");vb.href=jb.href;function wb(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(G)||[];if(n.isFunction(c))while(d=f[e++])"+"===d[0]?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function xb(a,b,c,d){var e={},f=a===tb;function g(h){var i;return e[h]=!0,n.each(a[h]||[],function(a,h){var j=h(b,c,d);return"string"!=typeof j||f||e[j]?f?!(i=j):void 0:(b.dataTypes.unshift(j),g(j),!1)}),i}return g(b.dataTypes[0])||!e["*"]&&g("*")}function yb(a,b){var c,d,e=n.ajaxSettings.flatOptions||{};for(c in b)void 0!==b[c]&&((e[c]?a:d||(d={}))[c]=b[c]);return d&&n.extend(!0,a,d),a}function zb(a,b,c){var d,e,f,g,h=a.contents,i=a.dataTypes;while("*"===i[0])i.shift(),void 0===d&&(d=a.mimeType||b.getResponseHeader("Content-Type"));if(d)for(e in h)if(h[e]&&h[e].test(d)){i.unshift(e);break}if(i[0]in c)f=i[0];else{for(e in c){if(!i[0]||a.converters[e+" "+i[0]]){f=e;break}g||(g=e)}f=f||g}return f?(f!==i[0]&&i.unshift(f),c[f]):void 0}function Ab(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];f=k.shift();while(f)if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift())if("*"===f)f=i;else if("*"!==i&&i!==f){if(g=j[i+" "+f]||j["* "+f],!g)for(e in j)if(h=e.split(" "),h[1]===f&&(g=j[i+" "+h[0]]||j["* "+h[0]])){g===!0?g=j[e]:j[e]!==!0&&(f=h[0],k.unshift(h[1]));break}if(g!==!0)if(g&&a["throws"])b=g(b);else try{b=g(b)}catch(l){return{state:"parsererror",error:g?l:"No conversion from "+i+" to "+f}}}return{state:"success",data:b}}n.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:jb.href,type:"GET",isLocal:pb.test(jb.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":ub,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":n.parseJSON,"text xml":n.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?yb(yb(a,n.ajaxSettings),b):yb(n.ajaxSettings,a)},ajaxPrefilter:wb(sb),ajaxTransport:wb(tb),ajax:function(b,c){"object"==typeof b&&(c=b,b=void 0),c=c||{};var e,f,g,h,i,j,k,l,m=n.ajaxSetup({},c),o=m.context||m,p=m.context&&(o.nodeType||o.jquery)?n(o):n.event,q=n.Deferred(),r=n.Callbacks("once memory"),s=m.statusCode||{},t={},u={},v=0,w="canceled",x={readyState:0,getResponseHeader:function(a){var b;if(2===v){if(!h){h={};while(b=ob.exec(g))h[b[1].toLowerCase()]=b[2]}b=h[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return 2===v?g:null},setRequestHeader:function(a,b){var c=a.toLowerCase();return v||(a=u[c]=u[c]||a,t[a]=b),this},overrideMimeType:function(a){return v||(m.mimeType=a),this},statusCode:function(a){var b;if(a)if(2>v)for(b in a)s[b]=[s[b],a[b]];else x.always(a[x.status]);return this},abort:function(a){var b=a||w;return e&&e.abort(b),z(0,b),this}};if(q.promise(x).complete=r.add,x.success=x.done,x.error=x.fail,m.url=((b||m.url||jb.href)+"").replace(mb,"").replace(rb,jb.protocol+"//"),m.type=c.method||c.type||m.method||m.type,m.dataTypes=n.trim(m.dataType||"*").toLowerCase().match(G)||[""],null==m.crossDomain){j=d.createElement("a");try{j.href=m.url,j.href=j.href,m.crossDomain=vb.protocol+"//"+vb.host!=j.protocol+"//"+j.host}catch(y){m.crossDomain=!0}}if(m.data&&m.processData&&"string"!=typeof m.data&&(m.data=n.param(m.data,m.traditional)),xb(sb,m,c,x),2===v)return x;k=n.event&&m.global,k&&0===n.active++&&n.event.trigger("ajaxStart"),m.type=m.type.toUpperCase(),m.hasContent=!qb.test(m.type),f=m.url,m.hasContent||(m.data&&(f=m.url+=(lb.test(f)?"&":"?")+m.data,delete m.data),m.cache===!1&&(m.url=nb.test(f)?f.replace(nb,"$1_="+kb++):f+(lb.test(f)?"&":"?")+"_="+kb++)),m.ifModified&&(n.lastModified[f]&&x.setRequestHeader("If-Modified-Since",n.lastModified[f]),n.etag[f]&&x.setRequestHeader("If-None-Match",n.etag[f])),(m.data&&m.hasContent&&m.contentType!==!1||c.contentType)&&x.setRequestHeader("Content-Type",m.contentType),x.setRequestHeader("Accept",m.dataTypes[0]&&m.accepts[m.dataTypes[0]]?m.accepts[m.dataTypes[0]]+("*"!==m.dataTypes[0]?", "+ub+"; q=0.01":""):m.accepts["*"]);for(l in m.headers)x.setRequestHeader(l,m.headers[l]);if(m.beforeSend&&(m.beforeSend.call(o,x,m)===!1||2===v))return x.abort();w="abort";for(l in{success:1,error:1,complete:1})x[l](m[l]);if(e=xb(tb,m,c,x)){if(x.readyState=1,k&&p.trigger("ajaxSend",[x,m]),2===v)return x;m.async&&m.timeout>0&&(i=a.setTimeout(function(){x.abort("timeout")},m.timeout));try{v=1,e.send(t,z)}catch(y){if(!(2>v))throw y;z(-1,y)}}else z(-1,"No Transport");function z(b,c,d,h){var j,l,t,u,w,y=c;2!==v&&(v=2,i&&a.clearTimeout(i),e=void 0,g=h||"",x.readyState=b>0?4:0,j=b>=200&&300>b||304===b,d&&(u=zb(m,x,d)),u=Ab(m,u,x,j),j?(m.ifModified&&(w=x.getResponseHeader("Last-Modified"),w&&(n.lastModified[f]=w),w=x.getResponseHeader("etag"),w&&(n.etag[f]=w)),204===b||"HEAD"===m.type?y="nocontent":304===b?y="notmodified":(y=u.state,l=u.data,t=u.error,j=!t)):(t=y,!b&&y||(y="error",0>b&&(b=0))),x.status=b,x.statusText=(c||y)+"",j?q.resolveWith(o,[l,y,x]):q.rejectWith(o,[x,y,t]),x.statusCode(s),s=void 0,k&&p.trigger(j?"ajaxSuccess":"ajaxError",[x,m,j?l:t]),r.fireWith(o,[x,y]),k&&(p.trigger("ajaxComplete",[x,m]),--n.active||n.event.trigger("ajaxStop")))}return x},getJSON:function(a,b,c){return n.get(a,b,c,"json")},getScript:function(a,b){return n.get(a,void 0,b,"script")}}),n.each(["get","post"],function(a,b){n[b]=function(a,c,d,e){return n.isFunction(c)&&(e=e||d,d=c,c=void 0),n.ajax(n.extend({url:a,type:b,dataType:e,data:c,success:d},n.isPlainObject(a)&&a))}}),n._evalUrl=function(a){return n.ajax({url:a,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},n.fn.extend({wrapAll:function(a){var b;return n.isFunction(a)?this.each(function(b){n(this).wrapAll(a.call(this,b))}):(this[0]&&(b=n(a,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstElementChild)a=a.firstElementChild;return a}).append(this)),this)},wrapInner:function(a){return n.isFunction(a)?this.each(function(b){n(this).wrapInner(a.call(this,b))}):this.each(function(){var b=n(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=n.isFunction(a);return this.each(function(c){n(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){n.nodeName(this,"body")||n(this).replaceWith(this.childNodes)}).end()}}),n.expr.filters.hidden=function(a){return!n.expr.filters.visible(a)},n.expr.filters.visible=function(a){return a.offsetWidth>0||a.offsetHeight>0||a.getClientRects().length>0};var Bb=/%20/g,Cb=/\[\]$/,Db=/\r?\n/g,Eb=/^(?:submit|button|image|reset|file)$/i,Fb=/^(?:input|select|textarea|keygen)/i;function Gb(a,b,c,d){var e;if(n.isArray(b))n.each(b,function(b,e){c||Cb.test(a)?d(a,e):Gb(a+"["+("object"==typeof e&&null!=e?b:"")+"]",e,c,d)});else if(c||"object"!==n.type(b))d(a,b);else for(e in b)Gb(a+"["+e+"]",b[e],c,d)}n.param=function(a,b){var c,d=[],e=function(a,b){b=n.isFunction(b)?b():null==b?"":b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};if(void 0===b&&(b=n.ajaxSettings&&n.ajaxSettings.traditional),n.isArray(a)||a.jquery&&!n.isPlainObject(a))n.each(a,function(){e(this.name,this.value)});else for(c in a)Gb(c,a[c],b,e);return d.join("&").replace(Bb,"+")},n.fn.extend({serialize:function(){return n.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=n.prop(this,"elements");return a?n.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!n(this).is(":disabled")&&Fb.test(this.nodeName)&&!Eb.test(a)&&(this.checked||!X.test(a))}).map(function(a,b){var c=n(this).val();return null==c?null:n.isArray(c)?n.map(c,function(a){return{name:b.name,value:a.replace(Db,"\r\n")}}):{name:b.name,value:c.replace(Db,"\r\n")}}).get()}}),n.ajaxSettings.xhr=function(){try{return new a.XMLHttpRequest}catch(b){}};var Hb={0:200,1223:204},Ib=n.ajaxSettings.xhr();l.cors=!!Ib&&"withCredentials"in Ib,l.ajax=Ib=!!Ib,n.ajaxTransport(function(b){var c,d;return l.cors||Ib&&!b.crossDomain?{send:function(e,f){var g,h=b.xhr();if(h.open(b.type,b.url,b.async,b.username,b.password),b.xhrFields)for(g in b.xhrFields)h[g]=b.xhrFields[g];b.mimeType&&h.overrideMimeType&&h.overrideMimeType(b.mimeType),b.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest");for(g in e)h.setRequestHeader(g,e[g]);c=function(a){return function(){c&&(c=d=h.onload=h.onerror=h.onabort=h.onreadystatechange=null,"abort"===a?h.abort():"error"===a?"number"!=typeof h.status?f(0,"error"):f(h.status,h.statusText):f(Hb[h.status]||h.status,h.statusText,"text"!==(h.responseType||"text")||"string"!=typeof h.responseText?{binary:h.response}:{text:h.responseText},h.getAllResponseHeaders()))}},h.onload=c(),d=h.onerror=c("error"),void 0!==h.onabort?h.onabort=d:h.onreadystatechange=function(){4===h.readyState&&a.setTimeout(function(){c&&d()})},c=c("abort");try{h.send(b.hasContent&&b.data||null)}catch(i){if(c)throw i}},abort:function(){c&&c()}}:void 0}),n.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(a){return n.globalEval(a),a}}}),n.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET")}),n.ajaxTransport("script",function(a){if(a.crossDomain){var b,c;return{send:function(e,f){b=n("<script>").prop({charset:a.scriptCharset,src:a.url}).on("load error",c=function(a){b.remove(),c=null,a&&f("error"===a.type?404:200,a.type)}),d.head.appendChild(b[0])},abort:function(){c&&c()}}}});var Jb=[],Kb=/(=)\?(?=&|$)|\?\?/;n.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=Jb.pop()||n.expando+"_"+kb++;return this[a]=!0,a}}),n.ajaxPrefilter("json jsonp",function(b,c,d){var e,f,g,h=b.jsonp!==!1&&(Kb.test(b.url)?"url":"string"==typeof b.data&&0===(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&Kb.test(b.data)&&"data");return h||"jsonp"===b.dataTypes[0]?(e=b.jsonpCallback=n.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(Kb,"$1"+e):b.jsonp!==!1&&(b.url+=(lb.test(b.url)?"&":"?")+b.jsonp+"="+e),b.converters["script json"]=function(){return g||n.error(e+" was not called"),g[0]},b.dataTypes[0]="json",f=a[e],a[e]=function(){g=arguments},d.always(function(){void 0===f?n(a).removeProp(e):a[e]=f,b[e]&&(b.jsonpCallback=c.jsonpCallback,Jb.push(e)),g&&n.isFunction(f)&&f(g[0]),g=f=void 0}),"script"):void 0}),n.parseHTML=function(a,b,c){if(!a||"string"!=typeof a)return null;"boolean"==typeof b&&(c=b,b=!1),b=b||d;var e=x.exec(a),f=!c&&[];return e?[b.createElement(e[1])]:(e=ca([a],b,f),f&&f.length&&n(f).remove(),n.merge([],e.childNodes))};var Lb=n.fn.load;n.fn.load=function(a,b,c){if("string"!=typeof a&&Lb)return Lb.apply(this,arguments);var d,e,f,g=this,h=a.indexOf(" ");return h>-1&&(d=n.trim(a.slice(h)),a=a.slice(0,h)),n.isFunction(b)?(c=b,b=void 0):b&&"object"==typeof b&&(e="POST"),g.length>0&&n.ajax({url:a,type:e||"GET",dataType:"html",data:b}).done(function(a){f=arguments,g.html(d?n("<div>").append(n.parseHTML(a)).find(d):a)}).always(c&&function(a,b){g.each(function(){c.apply(this,f||[a.responseText,b,a])})}),this},n.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){n.fn[b]=function(a){return this.on(b,a)}}),n.expr.filters.animated=function(a){return n.grep(n.timers,function(b){return a===b.elem}).length};function Mb(a){return n.isWindow(a)?a:9===a.nodeType&&a.defaultView}n.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=n.css(a,"position"),l=n(a),m={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=n.css(a,"top"),i=n.css(a,"left"),j=("absolute"===k||"fixed"===k)&&(f+i).indexOf("auto")>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),n.isFunction(b)&&(b=b.call(a,c,n.extend({},h))),null!=b.top&&(m.top=b.top-h.top+g),null!=b.left&&(m.left=b.left-h.left+e),"using"in b?b.using.call(a,m):l.css(m)}},n.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){n.offset.setOffset(this,a,b)});var b,c,d=this[0],e={top:0,left:0},f=d&&d.ownerDocument;if(f)return b=f.documentElement,n.contains(b,d)?(e=d.getBoundingClientRect(),c=Mb(f),{top:e.top+c.pageYOffset-b.clientTop,left:e.left+c.pageXOffset-b.clientLeft}):e},position:function(){if(this[0]){var a,b,c=this[0],d={top:0,left:0};return"fixed"===n.css(c,"position")?b=c.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),n.nodeName(a[0],"html")||(d=a.offset()),d.top+=n.css(a[0],"borderTopWidth",!0),d.left+=n.css(a[0],"borderLeftWidth",!0)),{top:b.top-d.top-n.css(c,"marginTop",!0),left:b.left-d.left-n.css(c,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var a=this.offsetParent;while(a&&"static"===n.css(a,"position"))a=a.offsetParent;return a||Ea})}}),n.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c="pageYOffset"===b;n.fn[a]=function(d){return K(this,function(a,d,e){var f=Mb(a);return void 0===e?f?f[b]:a[d]:void(f?f.scrollTo(c?f.pageXOffset:e,c?e:f.pageYOffset):a[d]=e)},a,d,arguments.length)}}),n.each(["top","left"],function(a,b){n.cssHooks[b]=Ga(l.pixelPosition,function(a,c){return c?(c=Fa(a,b),Ba.test(c)?n(a).position()[b]+"px":c):void 0})}),n.each({Height:"height",Width:"width"},function(a,b){n.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){n.fn[d]=function(d,e){var f=arguments.length&&(c||"boolean"!=typeof d),g=c||(d===!0||e===!0?"margin":"border");return K(this,function(b,c,d){var e;return n.isWindow(b)?b.document.documentElement["client"+a]:9===b.nodeType?(e=b.documentElement,Math.max(b.body["scroll"+a],e["scroll"+a],b.body["offset"+a],e["offset"+a],e["client"+a])):void 0===d?n.css(b,c,g):n.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),n.fn.extend({bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)},size:function(){return this.length}}),n.fn.andSelf=n.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return n});var Nb=a.jQuery,Ob=a.$;return n.noConflict=function(b){return a.$===n&&(a.$=Ob),b&&a.jQuery===n&&(a.jQuery=Nb),n},b||(a.jQuery=a.$=n),n});
7/* End */
8;
9; /* Start:"a:4:{s:4:"full";s:70:"/bitrix/templates/concept_hameleon/js/bootstrap.min.js?175734080736868";s:6:"source";s:54:"/bitrix/templates/concept_hameleon/js/bootstrap.min.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
vendor: 36,868 bytes, lines 10-16
10/*!
11 * Bootstrap v3.3.6 (http://getbootstrap.com)
12 * Copyright 2011-2015 Twitter, Inc.
13 * Licensed under the MIT license
14 */
15if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(a){"use strict";var b=a.fn.jquery.split(" ")[0].split(".");if(b[0]<2&&b[1]<9||1==b[0]&&9==b[1]&&b[2]<1||b[0]>2)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3")}(jQuery),+function(a){"use strict";function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]};return!1}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one("bsTransitionEnd",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(),a.support.transition&&(a.event.special.bsTransitionEnd={bindType:a.support.transition.end,delegateType:a.support.transition.end,handle:function(b){return a(b.target).is(this)?b.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var c=a(this),e=c.data("bs.alert");e||c.data("bs.alert",e=new d(this)),"string"==typeof b&&e[b].call(c)})}var c='[data-dismiss="alert"]',d=function(b){a(b).on("click",c,this.close)};d.VERSION="3.3.6",d.TRANSITION_DURATION=150,d.prototype.close=function(b){function c(){g.detach().trigger("closed.bs.alert").remove()}var e=a(this),f=e.attr("data-target");f||(f=e.attr("href"),f=f&&f.replace(/.*(?=#[^\s]*$)/,""));var g=a(f);b&&b.preventDefault(),g.length||(g=e.closest(".alert")),g.trigger(b=a.Event("close.bs.alert")),b.isDefaultPrevented()||(g.removeClass("in"),a.support.transition&&g.hasClass("fade")?g.one("bsTransitionEnd",c).emulateTransitionEnd(d.TRANSITION_DURATION):c())};var e=a.fn.alert;a.fn.alert=b,a.fn.alert.Constructor=d,a.fn.alert.noConflict=function(){return a.fn.alert=e,this},a(document).on("click.bs.alert.data-api",c,d.prototype.close)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.button"),f="object"==typeof b&&b;e||d.data("bs.button",e=new c(this,f)),"toggle"==b?e.toggle():b&&e.setState(b)})}var c=function(b,d){this.$element=a(b),this.options=a.extend({},c.DEFAULTS,d),this.isLoading=!1};c.VERSION="3.3.6",c.DEFAULTS={loadingText:"loading..."},c.prototype.setState=function(b){var c="disabled",d=this.$element,e=d.is("input")?"val":"html",f=d.data();b+="Text",null==f.resetText&&d.data("resetText",d[e]()),setTimeout(a.proxy(function(){d[e](null==f[b]?this.options[b]:f[b]),"loadingText"==b?(this.isLoading=!0,d.addClass(c).attr(c,c)):this.isLoading&&(this.isLoading=!1,d.removeClass(c).removeAttr(c))},this),0)},c.prototype.toggle=function(){var a=!0,b=this.$element.closest('[data-toggle="buttons"]');if(b.length){var c=this.$element.find("input");"radio"==c.prop("type")?(c.prop("checked")&&(a=!1),b.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==c.prop("type")&&(c.prop("checked")!==this.$element.hasClass("active")&&(a=!1),this.$element.toggleClass("active")),c.prop("checked",this.$element.hasClass("active")),a&&c.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var d=a.fn.button;a.fn.button=b,a.fn.button.Constructor=c,a.fn.button.noConflict=function(){return a.fn.button=d,this},a(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(c){var d=a(c.target);d.hasClass("btn")||(d=d.closest(".btn")),b.call(d,"toggle"),a(c.target).is('input[type="radio"]')||a(c.target).is('input[type="checkbox"]')||c.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(b){a(b.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(b.type))})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.carousel"),f=a.extend({},c.DEFAULTS,d.data(),"object"==typeof b&&b),g="string"==typeof b?b:f.slide;e||d.data("bs.carousel",e=new c(this,f)),"number"==typeof b?e.to(b):g?e[g]():f.interval&&e.pause().cycle()})}var c=function(b,c){this.$element=a(b),this.$indicators=this.$element.find(".carousel-indicators"),this.options=c,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",a.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",a.proxy(this.pause,this)).on("mouseleave.bs.carousel",a.proxy(this.cycle,this))};c.VERSION="3.3.6",c.TRANSITION_DURATION=600,c.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},c.prototype.keydown=function(a){if(!/input|textarea/i.test(a.target.tagName)){switch(a.which){case 37:this.prev();break;case 39:this.next();break;default:return}a.preventDefault()}},c.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},c.prototype.getItemIndex=function(a){return this.$items=a.parent().children(".item"),this.$items.index(a||this.$active)},c.prototype.getItemForDirection=function(a,b){var c=this.getItemIndex(b),d="prev"==a&&0===c||"next"==a&&c==this.$items.length-1;if(d&&!this.options.wrap)return b;var e="prev"==a?-1:1,f=(c+e)%this.$items.length;return this.$items.eq(f)},c.prototype.to=function(a){var b=this,c=this.getItemIndex(this.$active=this.$element.find(".item.active"));return a>this.$items.length-1||0>a?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){b.to(a)}):c==a?this.pause().cycle():this.slide(a>c?"next":"prev",this.$items.eq(a))},c.prototype.pause=function(b){return b||(this.paused=!0),this.$element.find(".next, .prev").length&&a.support.transition&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},c.prototype.next=function(){return this.sliding?void 0:this.slide("next")},c.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},c.prototype.slide=function(b,d){var e=this.$element.find(".item.active"),f=d||this.getItemForDirection(b,e),g=this.interval,h="next"==b?"left":"right",i=this;if(f.hasClass("active"))return this.sliding=!1;var j=f[0],k=a.Event("slide.bs.carousel",{relatedTarget:j,direction:h});if(this.$element.trigger(k),!k.isDefaultPrevented()){if(this.sliding=!0,g&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var l=a(this.$indicators.children()[this.getItemIndex(f)]);l&&l.addClass("active")}var m=a.Event("slid.bs.carousel",{relatedTarget:j,direction:h});return a.support.transition&&this.$element.hasClass("slide")?(f.addClass(b),f[0].offsetWidth,e.addClass(h),f.addClass(h),e.one("bsTransitionEnd",function(){f.removeClass([b,h].join(" ")).addClass("active"),e.removeClass(["active",h].join(" ")),i.sliding=!1,setTimeout(function(){i.$element.trigger(m)},0)}).emulateTransitionEnd(c.TRANSITION_DURATION)):(e.removeClass("active"),f.addClass("active"),this.sliding=!1,this.$element.trigger(m)),g&&this.cycle(),this}};var d=a.fn.carousel;a.fn.carousel=b,a.fn.carousel.Constructor=c,a.fn.carousel.noConflict=function(){return a.fn.carousel=d,this};var e=function(c){var d,e=a(this),f=a(e.attr("data-target")||(d=e.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,""));if(f.hasClass("carousel")){var g=a.extend({},f.data(),e.data()),h=e.attr("data-slide-to");h&&(g.interval=!1),b.call(f,g),h&&f.data("bs.carousel").to(h),c.preventDefault()}};a(document).on("click.bs.carousel.data-api","[data-slide]",e).on("click.bs.carousel.data-api","[data-slide-to]",e),a(window).on("load",function(){a('[data-ride="carousel"]').each(function(){var c=a(this);b.call(c,c.data())})})}(jQuery),+function(a){"use strict";function b(b){var c,d=b.attr("data-target")||(c=b.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,"");return a(d)}function c(b){return this.each(function(){var c=a(this),e=c.data("bs.collapse"),f=a.extend({},d.DEFAULTS,c.data(),"object"==typeof b&&b);!e&&f.toggle&&/show|hide/.test(b)&&(f.toggle=!1),e||c.data("bs.collapse",e=new d(this,f)),"string"==typeof b&&e[b]()})}var d=function(b,c){this.$element=a(b),this.options=a.extend({},d.DEFAULTS,c),this.$trigger=a('[data-toggle="collapse"][href="#'+b.id+'"],[data-toggle="collapse"][data-target="#'+b.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};d.VERSION="3.3.6",d.TRANSITION_DURATION=350,d.DEFAULTS={toggle:!0},d.prototype.dimension=function(){var a=this.$element.hasClass("width");return a?"width":"height"},d.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var b,e=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(e&&e.length&&(b=e.data("bs.collapse"),b&&b.transitioning))){var f=a.Event("show.bs.collapse");if(this.$element.trigger(f),!f.isDefaultPrevented()){e&&e.length&&(c.call(e,"hide"),b||e.data("bs.collapse",null));var g=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[g](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var h=function(){this.$element.removeClass("collapsing").addClass("collapse in")[g](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return h.call(this);var i=a.camelCase(["scroll",g].join("-"));this.$element.one("bsTransitionEnd",a.proxy(h,this)).emulateTransitionEnd(d.TRANSITION_DURATION)[g](this.$element[0][i])}}}},d.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var b=a.Event("hide.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.dimension();this.$element[c](this.$element[c]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var e=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return a.support.transition?void this.$element[c](0).one("bsTransitionEnd",a.proxy(e,this)).emulateTransitionEnd(d.TRANSITION_DURATION):e.call(this)}}},d.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},d.prototype.getParent=function(){return a(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(a.proxy(function(c,d){var e=a(d);this.addAriaAndCollapsedClass(b(e),e)},this)).end()},d.prototype.addAriaAndCollapsedClass=function(a,b){var c=a.hasClass("in");a.attr("aria-expanded",c),b.toggleClass("collapsed",!c).attr("aria-expanded",c)};var e=a.fn.collapse;a.fn.collapse=c,a.fn.collapse.Constructor=d,a.fn.collapse.noConflict=function(){return a.fn.collapse=e,this},a(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(d){var e=a(this);e.attr("data-target")||d.preventDefault();var f=b(e),g=f.data("bs.collapse"),h=g?"toggle":e.data();c.call(f,h)})}(jQuery),+function(a){"use strict";function b(b){var c=b.attr("data-target");c||(c=b.attr("href"),c=c&&/#[A-Za-z]/.test(c)&&c.replace(/.*(?=#[^\s]*$)/,""));var d=c&&a(c);return d&&d.length?d:b.parent()}function c(c){c&&3===c.which||(a(e).remove(),a(f).each(function(){var d=a(this),e=b(d),f={relatedTarget:this};e.hasClass("open")&&(c&&"click"==c.type&&/input|textarea/i.test(c.target.tagName)&&a.contains(e[0],c.target)||(e.trigger(c=a.Event("hide.bs.dropdown",f)),c.isDefaultPrevented()||(d.attr("aria-expanded","false"),e.removeClass("open").trigger(a.Event("hidden.bs.dropdown",f)))))}))}function d(b){return this.each(function(){var c=a(this),d=c.data("bs.dropdown");d||c.data("bs.dropdown",d=new g(this)),"string"==typeof b&&d[b].call(c)})}var e=".dropdown-backdrop",f='[data-toggle="dropdown"]',g=function(b){a(b).on("click.bs.dropdown",this.toggle)};g.VERSION="3.3.6",g.prototype.toggle=function(d){var e=a(this);if(!e.is(".disabled, :disabled")){var f=b(e),g=f.hasClass("open");if(c(),!g){"ontouchstart"in document.documentElement&&!f.closest(".navbar-nav").length&&a(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(a(this)).on("click",c);var h={relatedTarget:this};if(f.trigger(d=a.Event("show.bs.dropdown",h)),d.isDefaultPrevented())return;e.trigger("focus").attr("aria-expanded","true"),f.toggleClass("open").trigger(a.Event("shown.bs.dropdown",h))}return!1}},g.prototype.keydown=function(c){if(/(38|40|27|32)/.test(c.which)&&!/input|textarea/i.test(c.target.tagName)){var d=a(this);if(c.preventDefault(),c.stopPropagation(),!d.is(".disabled, :disabled")){var e=b(d),g=e.hasClass("open");if(!g&&27!=c.which||g&&27==c.which)return 27==c.which&&e.find(f).trigger("focus"),d.trigger("click");var h=" li:not(.disabled):visible a",i=e.find(".dropdown-menu"+h);if(i.length){var j=i.index(c.target);38==c.which&&j>0&&j--,40==c.which&&j<i.length-1&&j++,~j||(j=0),i.eq(j).trigger("focus")}}}};var h=a.fn.dropdown;a.fn.dropdown=d,a.fn.dropdown.Constructor=g,a.fn.dropdown.noConflict=function(){return a.fn.dropdown=h,this},a(document).on("click.bs.dropdown.data-api",c).on("click.bs.dropdown.data-api",".dropdown form",function(a){a.stopPropagation()}).on("click.bs.dropdown.data-api",f,g.prototype.toggle).on("keydown.bs.dropdown.data-api",f,g.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",g.prototype.keydown)}(jQuery),+function(a){"use strict";function b(b,d){return this.each(function(){var e=a(this),f=e.data("bs.modal"),g=a.extend({},c.DEFAULTS,e.data(),"object"==typeof b&&b);f||e.data("bs.modal",f=new c(this,g)),"string"==typeof b?f[b](d):g.show&&f.show(d)})}var c=function(b,c){this.options=c,this.$body=a(document.body),this.$element=a(b),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,a.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};c.VERSION="3.3.6",c.TRANSITION_DURATION=300,c.BACKDROP_TRANSITION_DURATION=150,c.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},c.prototype.toggle=function(a){return this.isShown?this.hide():this.show(a)},c.prototype.show=function(b){var d=this,e=a.Event("show.bs.modal",{relatedTarget:b});this.$element.trigger(e),this.isShown||e.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',a.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){d.$element.one("mouseup.dismiss.bs.modal",function(b){a(b.target).is(d.$element)&&(d.ignoreBackdropClick=!0)})}),this.backdrop(function(){var e=a.support.transition&&d.$element.hasClass("fade");d.$element.parent().length||d.$element.appendTo(d.$body),d.$element.show().scrollTop(0),d.adjustDialog(),e&&d.$element[0].offsetWidth,d.$element.addClass("in"),d.enforceFocus();var f=a.Event("shown.bs.modal",{relatedTarget:b});e?d.$dialog.one("bsTransitionEnd",function(){d.$element.trigger("focus").trigger(f)}).emulateTransitionEnd(c.TRANSITION_DURATION):d.$element.trigger("focus").trigger(f)}))},c.prototype.hide=function(b){b&&b.preventDefault(),b=a.Event("hide.bs.modal"),this.$element.trigger(b),this.isShown&&!b.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),a(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),a.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",a.proxy(this.hideModal,this)).emulateTransitionEnd(c.TRANSITION_DURATION):this.hideModal())},c.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.trigger("focus")},this))},c.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",a.proxy(function(a){27==a.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},c.prototype.resize=function(){this.isShown?a(window).on("resize.bs.modal",a.proxy(this.handleUpdate,this)):a(window).off("resize.bs.modal")},c.prototype.hideModal=function(){var a=this;this.$element.hide(),this.backdrop(function(){a.$body.removeClass("modal-open"),a.resetAdjustments(),a.resetScrollbar(),a.$element.trigger("hidden.bs.modal")})},c.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},c.prototype.backdrop=function(b){var d=this,e=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var f=a.support.transition&&e;if(this.$backdrop=a(document.createElement("div")).addClass("modal-backdrop "+e).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",a.proxy(function(a){return this.ignoreBackdropClick?void(this.ignoreBackdropClick=!1):void(a.target===a.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide()))},this)),f&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!b)return;f?this.$backdrop.one("bsTransitionEnd",b).emulateTransitionEnd(c.BACKDROP_TRANSITION_DURATION):b()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var g=function(){d.removeBackdrop(),b&&b()};a.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",g).emulateTransitionEnd(c.BACKDROP_TRANSITION_DURATION):g()}else b&&b()},c.prototype.handleUpdate=function(){this.adjustDialog()},c.prototype.adjustDialog=function(){var a=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&a?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!a?this.scrollbarWidth:""})},c.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},c.prototype.checkScrollbar=function(){var a=window.innerWidth;if(!a){var b=document.documentElement.getBoundingClientRect();a=b.right-Math.abs(b.left)}this.bodyIsOverflowing=document.body.clientWidth<a,this.scrollbarWidth=this.measureScrollbar()},c.prototype.setScrollbar=function(){var a=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",a+this.scrollbarWidth)},c.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},c.prototype.measureScrollbar=function(){var a=document.createElement("div");a.className="modal-scrollbar-measure",this.$body.append(a);var b=a.offsetWidth-a.clientWidth;return this.$body[0].removeChild(a),b};var d=a.fn.modal;a.fn.modal=b,a.fn.modal.Constructor=c,a.fn.modal.noConflict=function(){return a.fn.modal=d,this},a(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(c){var d=a(this),e=d.attr("href"),f=a(d.attr("data-target")||e&&e.replace(/.*(?=#[^\s]+$)/,"")),g=f.data("bs.modal")?"toggle":a.extend({remote:!/#/.test(e)&&e},f.data(),d.data());d.is("a")&&c.preventDefault(),f.one("show.bs.modal",function(a){a.isDefaultPrevented()||f.one("hidden.bs.modal",function(){d.is(":visible")&&d.trigger("focus")})}),b.call(f,g,this)})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.tooltip"),f="object"==typeof b&&b;(e||!/destroy|hide/.test(b))&&(e||d.data("bs.tooltip",e=new c(this,f)),"string"==typeof b&&e[b]())})}var c=function(a,b){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",a,b)};c.VERSION="3.3.6",c.TRANSITION_DURATION=150,c.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},c.prototype.init=function(b,c,d){if(this.enabled=!0,this.type=b,this.$element=a(c),this.options=this.getOptions(d),this.$viewport=this.options.viewport&&a(a.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var e=this.options.trigger.split(" "),f=e.length;f--;){var g=e[f];if("click"==g)this.$element.on("click."+this.type,this.options.selector,a.proxy(this.toggle,this));else if("manual"!=g){var h="hover"==g?"mouseenter":"focusin",i="hover"==g?"mouseleave":"focusout";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()},c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.getOptions=function(b){return b=a.extend({},this.getDefaults(),this.$element.data(),b),b.delay&&"number"==typeof b.delay&&(b.delay={show:b.delay,hide:b.delay}),b},c.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},c.prototype.enter=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);return c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),b instanceof a.Event&&(c.inState["focusin"==b.type?"focus":"hover"]=!0),c.tip().hasClass("in")||"in"==c.hoverState?void(c.hoverState="in"):(clearTimeout(c.timeout),c.hoverState="in",c.options.delay&&c.options.delay.show?void(c.timeout=setTimeout(function(){"in"==c.hoverState&&c.show()},c.options.delay.show)):c.show())},c.prototype.isInStateTrue=function(){for(var a in this.inState)if(this.inState[a])return!0;return!1},c.prototype.leave=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);return c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),b instanceof a.Event&&(c.inState["focusout"==b.type?"focus":"hover"]=!1),c.isInStateTrue()?void 0:(clearTimeout(c.timeout),c.hoverState="out",c.options.delay&&c.options.delay.hide?void(c.timeout=setTimeout(function(){"out"==c.hoverState&&c.hide()},c.options.delay.hide)):c.hide())},c.prototype.show=function(){var b=a.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(b);var d=a.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(b.isDefaultPrevented()||!d)return;var e=this,f=this.tip(),g=this.getUID(this.type);this.setContent(),f.attr("id",g),this.$element.attr("aria-describedby",g),this.options.animation&&f.addClass("fade");var h="function"==typeof this.options.placement?this.options.placement.call(this,f[0],this.$element[0]):this.options.placement,i=/\s?auto?\s?/i,j=i.test(h);j&&(h=h.replace(i,"")||"top"),f.detach().css({top:0,left:0,display:"block"}).addClass(h).data("bs."+this.type,this),this.options.container?f.appendTo(this.options.container):f.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var k=this.getPosition(),l=f[0].offsetWidth,m=f[0].offsetHeight;if(j){var n=h,o=this.getPosition(this.$viewport);h="bottom"==h&&k.bottom+m>o.bottom?"top":"top"==h&&k.top-m<o.top?"bottom":"right"==h&&k.right+l>o.width?"left":"left"==h&&k.left-l<o.left?"right":h,f.removeClass(n).addClass(h)}var p=this.getCalculatedOffset(h,k,l,m);this.applyPlacement(p,h);var q=function(){var a=e.hoverState;e.$element.trigger("shown.bs."+e.type),e.hoverState=null,"out"==a&&e.leave(e)};a.support.transition&&this.$tip.hasClass("fade")?f.one("bsTransitionEnd",q).emulateTransitionEnd(c.TRANSITION_DURATION):q()}},c.prototype.applyPlacement=function(b,c){var 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),b.top+=g,b.left+=h,a.offset.setOffset(d[0],a.extend({using:function(a){d.css({top:Math.round(a.top),left:Math.round(a.left)})}},b),0),d.addClass("in");var i=d[0].offsetWidth,j=d[0].offsetHeight;"top"==c&&j!=f&&(b.top=b.top+f-j);var k=this.getViewportAdjustedDelta(c,b,i,j);k.left?b.left+=k.left:b.top+=k.top;var l=/top|bottom/.test(c),m=l?2*k.left-e+i:2*k.top-f+j,n=l?"offsetWidth":"offsetHeight";d.offset(b),this.replaceArrow(m,d[0][n],l)},c.prototype.replaceArrow=function(a,b,c){this.arrow().css(c?"left":"top",50*(1-a/b)+"%").css(c?"top":"left","")},c.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")},c.prototype.hide=function(b){function d(){"in"!=e.hoverState&&f.detach(),e.$element.removeAttr("aria-describedby").trigger("hidden.bs."+e.type),b&&b()}var e=this,f=a(this.$tip),g=a.Event("hide.bs."+this.type);return this.$element.trigger(g),g.isDefaultPrevented()?void 0:(f.removeClass("in"),a.support.transition&&f.hasClass("fade")?f.one("bsTransitionEnd",d).emulateTransitionEnd(c.TRANSITION_DURATION):d(),this.hoverState=null,this)},c.prototype.fixTitle=function(){var a=this.$element;(a.attr("title")||"string"!=typeof a.attr("data-original-title"))&&a.attr("data-original-title",a.attr("title")||"").attr("title","")},c.prototype.hasContent=function(){return this.getTitle()},c.prototype.getPosition=function(b){b=b||this.$element;var c=b[0],d="BODY"==c.tagName,e=c.getBoundingClientRect();null==e.width&&(e=a.extend({},e,{width:e.right-e.left,height:e.bottom-e.top}));var f=d?{top:0,left:0}:b.offset(),g={scroll:d?document.documentElement.scrollTop||document.body.scrollTop:b.scrollTop()},h=d?{width:a(window).width(),height:a(window).height()}:null;return a.extend({},e,g,h,f)},c.prototype.getCalculatedOffset=function(a,b,c,d){return"bottom"==a?{top:b.top+b.height,left:b.left+b.width/2-c/2}:"top"==a?{top:b.top-d,left:b.left+b.width/2-c/2}:"left"==a?{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}},c.prototype.getViewportAdjustedDelta=function(a,b,c,d){var e={top:0,left:0};if(!this.$viewport)return e;var f=this.options.viewport&&this.options.viewport.padding||0,g=this.getPosition(this.$viewport);if(/right|left/.test(a)){var h=b.top-f-g.scroll,i=b.top+f-g.scroll+d;h<g.top?e.top=g.top-h:i>g.top+g.height&&(e.top=g.top+g.height-i)}else{var j=b.left-f,k=b.left+f+c;j<g.left?e.left=g.left-j:k>g.right&&(e.left=g.left+g.width-k)}return e},c.prototype.getTitle=function(){var a,b=this.$element,c=this.options;return a=b.attr("data-original-title")||("function"==typeof c.title?c.title.call(b[0]):c.title)},c.prototype.getUID=function(a){do a+=~~(1e6*Math.random());while(document.getElementById(a));return a},c.prototype.tip=function(){if(!this.$tip&&(this.$tip=a(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},c.prototype.enable=function(){this.enabled=!0},c.prototype.disable=function(){this.enabled=!1},c.prototype.toggleEnabled=function(){this.enabled=!this.enabled},c.prototype.toggle=function(b){var c=this;b&&(c=a(b.currentTarget).data("bs."+this.type),c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c))),b?(c.inState.click=!c.inState.click,c.isInStateTrue()?c.enter(c):c.leave(c)):c.tip().hasClass("in")?c.leave(c):c.enter(c)},c.prototype.destroy=function(){var a=this;clearTimeout(this.timeout),this.hide(function(){a.$element.off("."+a.type).removeData("bs."+a.type),a.$tip&&a.$tip.detach(),a.$tip=null,a.$arrow=null,a.$viewport=null})};var d=a.fn.tooltip;a.fn.tooltip=b,a.fn.tooltip.Constructor=c,a.fn.tooltip.noConflict=function(){return a.fn.tooltip=d,this}}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.popover"),f="object"==typeof b&&b;(e||!/destroy|hide/.test(b))&&(e||d.data("bs.popover",e=new c(this,f)),"string"==typeof b&&e[b]())})}var c=function(a,b){this.init("popover",a,b)};if(!a.fn.tooltip)throw new Error("Popover requires tooltip.js");c.VERSION="3.3.6",c.DEFAULTS=a.extend({},a.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),c.prototype=a.extend({},a.fn.tooltip.Constructor.prototype),c.prototype.constructor=c,c.prototype.getDefaults=function(){return c.DEFAULTS},c.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").children().detach().end()[this.options.html?"string"==typeof c?"html":"append":"text"](c),a.removeClass("fade top bottom left right in"),a.find(".popover-title").html()||a.find(".popover-title").hide()},c.prototype.hasContent=function(){return this.getTitle()||this.getContent()},c.prototype.getContent=function(){var a=this.$element,b=this.options;return a.attr("data-content")||("function"==typeof b.content?b.content.call(a[0]):b.content)},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var d=a.fn.popover;a.fn.popover=b,a.fn.popover.Constructor=c,a.fn.popover.noConflict=function(){return a.fn.popover=d,this}}(jQuery),+function(a){"use strict";function b(c,d){this.$body=a(document.body),this.$scrollElement=a(a(c).is(document.body)?window:c),this.options=a.extend({},b.DEFAULTS,d),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",a.proxy(this.process,this)),this.refresh(),this.process()}function c(c){return this.each(function(){var d=a(this),e=d.data("bs.scrollspy"),f="object"==typeof c&&c;e||d.data("bs.scrollspy",e=new b(this,f)),"string"==typeof c&&e[c]()})}b.VERSION="3.3.6",b.DEFAULTS={offset:10},b.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},b.prototype.refresh=function(){var b=this,c="offset",d=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),a.isWindow(this.$scrollElement[0])||(c="position",d=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var b=a(this),e=b.data("target")||b.attr("href"),f=/^#./.test(e)&&a(e);return f&&f.length&&f.is(":visible")&&[[f[c]().top+d,e]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){b.offsets.push(this[0]),b.targets.push(this[1])})},b.prototype.process=function(){var a,b=this.$scrollElement.scrollTop()+this.options.offset,c=this.getScrollHeight(),d=this.options.offset+c-this.$scrollElement.height(),e=this.offsets,f=this.targets,g=this.activeTarget;if(this.scrollHeight!=c&&this.refresh(),b>=d)return g!=(a=f[f.length-1])&&this.activate(a);if(g&&b<e[0])return this.activeTarget=null,this.clear();for(a=e.length;a--;)g!=f[a]&&b>=e[a]&&(void 0===e[a+1]||b<e[a+1])&&this.activate(f[a])},b.prototype.activate=function(b){this.activeTarget=b,this.clear();var c=this.selector+'[data-target="'+b+'"],'+this.selector+'[href="'+b+'"]',d=a(c).parents("li").addClass("active");
16d.parent(".dropdown-menu").length&&(d=d.closest("li.dropdown").addClass("active")),d.trigger("activate.bs.scrollspy")},b.prototype.clear=function(){a(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var d=a.fn.scrollspy;a.fn.scrollspy=c,a.fn.scrollspy.Constructor=b,a.fn.scrollspy.noConflict=function(){return a.fn.scrollspy=d,this},a(window).on("load.bs.scrollspy.data-api",function(){a('[data-spy="scroll"]').each(function(){var b=a(this);c.call(b,b.data())})})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.tab");e||d.data("bs.tab",e=new c(this)),"string"==typeof b&&e[b]()})}var c=function(b){this.element=a(b)};c.VERSION="3.3.6",c.TRANSITION_DURATION=150,c.prototype.show=function(){var b=this.element,c=b.closest("ul:not(.dropdown-menu)"),d=b.data("target");if(d||(d=b.attr("href"),d=d&&d.replace(/.*(?=#[^\s]*$)/,"")),!b.parent("li").hasClass("active")){var e=c.find(".active:last a"),f=a.Event("hide.bs.tab",{relatedTarget:b[0]}),g=a.Event("show.bs.tab",{relatedTarget:e[0]});if(e.trigger(f),b.trigger(g),!g.isDefaultPrevented()&&!f.isDefaultPrevented()){var h=a(d);this.activate(b.closest("li"),c),this.activate(h,h.parent(),function(){e.trigger({type:"hidden.bs.tab",relatedTarget:b[0]}),b.trigger({type:"shown.bs.tab",relatedTarget:e[0]})})}}},c.prototype.activate=function(b,d,e){function f(){g.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),b.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),h?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu").length&&b.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),e&&e()}var g=d.find("> .active"),h=e&&a.support.transition&&(g.length&&g.hasClass("fade")||!!d.find("> .fade").length);g.length&&h?g.one("bsTransitionEnd",f).emulateTransitionEnd(c.TRANSITION_DURATION):f(),g.removeClass("in")};var d=a.fn.tab;a.fn.tab=b,a.fn.tab.Constructor=c,a.fn.tab.noConflict=function(){return a.fn.tab=d,this};var e=function(c){c.preventDefault(),b.call(a(this),"show")};a(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',e).on("click.bs.tab.data-api",'[data-toggle="pill"]',e)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.affix"),f="object"==typeof b&&b;e||d.data("bs.affix",e=new c(this,f)),"string"==typeof b&&e[b]()})}var c=function(b,d){this.options=a.extend({},c.DEFAULTS,d),this.$target=a(this.options.target).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(b),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};c.VERSION="3.3.6",c.RESET="affix affix-top affix-bottom",c.DEFAULTS={offset:0,target:window},c.prototype.getState=function(a,b,c,d){var e=this.$target.scrollTop(),f=this.$element.offset(),g=this.$target.height();if(null!=c&&"top"==this.affixed)return c>e?"top":!1;if("bottom"==this.affixed)return null!=c?e+this.unpin<=f.top?!1:"bottom":a-d>=e+g?!1:"bottom";var h=null==this.affixed,i=h?e:f.top,j=h?g:b;return null!=c&&c>=e?"top":null!=d&&i+j>=a-d?"bottom":!1},c.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(c.RESET).addClass("affix");var a=this.$target.scrollTop(),b=this.$element.offset();return this.pinnedOffset=b.top-a},c.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),1)},c.prototype.checkPosition=function(){if(this.$element.is(":visible")){var b=this.$element.height(),d=this.options.offset,e=d.top,f=d.bottom,g=Math.max(a(document).height(),a(document.body).height());"object"!=typeof d&&(f=e=d),"function"==typeof e&&(e=d.top(this.$element)),"function"==typeof f&&(f=d.bottom(this.$element));var h=this.getState(g,b,e,f);if(this.affixed!=h){null!=this.unpin&&this.$element.css("top","");var i="affix"+(h?"-"+h:""),j=a.Event(i+".bs.affix");if(this.$element.trigger(j),j.isDefaultPrevented())return;this.affixed=h,this.unpin="bottom"==h?this.getPinnedOffset():null,this.$element.removeClass(c.RESET).addClass(i).trigger(i.replace("affix","affixed")+".bs.affix")}"bottom"==h&&this.$element.offset({top:g-b-f})}};var d=a.fn.affix;a.fn.affix=b,a.fn.affix.Constructor=c,a.fn.affix.noConflict=function(){return a.fn.affix=d,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var c=a(this),d=c.data();d.offset=d.offset||{},null!=d.offsetBottom&&(d.offset.bottom=d.offsetBottom),null!=d.offsetTop&&(d.offset.top=d.offsetTop),b.call(c,d)})})}(jQuery);
16
17/* End */
18;
19; /* Start:"a:4:{s:4:"full";s:73:"/bitrix/templates/concept_hameleon/js/jquery.plugin.min.js?17573408073400";s:6:"source";s:58:"/bitrix/templates/concept_hameleon/js/jquery.plugin.min.js";s:3:"min";s:58:"/bitrix/templates/concept_hameleon/js/jquery.plugin.min.js";s:3:"map";s:59:"/bitrix/templates/concept_hameleon/js/jquery.plugin.min.map";}"*/
20/*! Simple JavaScript Inheritance
21 * By John Resig http://ejohn.org/
22 * MIT Licensed.
23 */
24!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.
25	Written by Keith Wood (wood.keith{at}optusnet.com.au) December 2013.
26	Licensed under the MIT license (http://keith-wood.name/licence.html). */
27function($){"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);
28/* End */
29;
30; /* Start:"a:4:{s:4:"full";s:77:"/bitrix/templates/concept_hameleon/js/jquery.countdown.min.js?175734080713652";s:6:"source";
30s:61:"/bitrix/templates/concept_hameleon/js/jquery.countdown.min.js";s:3:"min";s:61:"/bitrix/templates/concept_hameleon/js/jquery.countdown.min.js";s:3:"map";s:62:"/bitrix/templates/concept_hameleon/js/jquery.countdown.min.map";}"*/
31/*! http://keith-wood.name/countdown.html
32	Countdown for jQuery v2.1.0.
33	Written by Keith Wood (wood.keith{at}optusnet.com.au) January 2008.
34	Available under the MIT (http://keith-wood.name/licence.html) license. 
35	Please attribute the author if you use it. */
36!function(a){"use strict";var b="countdown",c=0,d=1,e=2,f=3,g=4,h=5,i=6;a.JQPlugin.createPlugin({name:b,defaultOptions:{until:null,since:null,timezone:null,serverSync:null,format:"dHMS",layout:"",compact:!1,padZeroes:!1,significant:0,description:"",expiryUrl:"",expiryText:"",alwaysExpire:!1,onExpiry:null,onTick:null,tickInterval:1},regionalOptions:{"":{labels:["Years","Months","Weeks","Days","Hours","Minutes","Seconds"],labels1:["Year","Month","Week","Day","Hour","Minute","Second"],compactLabels:["y","m","w","d"],whichLabels:null,digits:["0","1","2","3","4","5","6","7","8","9"],timeSeparator:":",isRTL:!1}},_rtlClass:b+"-rtl",_sectionClass:b+"-section",_amountClass:b+"-amount",_periodClass:b+"-period",_rowClass:b+"-row",_holdingClass:b+"-holding",_showClass:b+"-show",_descrClass:b+"-descr",_timerElems:[],_init:function(){function b(a){var h=a<1e12?e?window.performance.now()+window.performance.timing.navigationStart:d():a||d();h-g>=1e3&&(c._updateElems(),g=h),f(b)}var c=this;this._super(),this._serverSyncs=[];var d="function"==typeof Date.now?Date.now:function(){return(new Date).getTime()},e=window.performance&&"function"==typeof window.performance.now,f=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||null,g=0;!f||a.noRequestAnimationFrame?(a.noRequestAnimationFrame=null,a.countdown._timer=setInterval(function(){c._updateElems()},1e3)):(g=window.animationStartTime||window.webkitAnimationStartTime||window.mozAnimationStartTime||window.oAnimationStartTime||window.msAnimationStartTime||d(),f(b))},UTCDate:function(a,b,c,d,e,f,g,h){"object"==typeof b&&b instanceof Date&&(h=b.getMilliseconds(),g=b.getSeconds(),f=b.getMinutes(),e=b.getHours(),d=b.getDate(),c=b.getMonth(),b=b.getFullYear());var i=new Date;return i.setUTCFullYear(b),i.setUTCDate(1),i.setUTCMonth(c||0),i.setUTCDate(d||1),i.setUTCHours(e||0),i.setUTCMinutes((f||0)-(Math.abs(a)<30?60*a:a)),i.setUTCSeconds(g||0),i.setUTCMilliseconds(h||0),i},periodsToSeconds:function(a){return 31557600*a[0]+2629800*a[1]+604800*a[2]+86400*a[3]+3600*a[4]+60*a[5]+a[6]},resync:function(){var b=this;a("."+this._getMarker()).each(function(){var c=a.data(this,b.name);if(c.options.serverSync){for(var d=null,e=0;e<b._serverSyncs.length;e++)if(b._serverSyncs[e][0]===c.options.serverSync){d=b._serverSyncs[e];break}if(b._eqNull(d[2])){var f=a.isFunction(c.options.serverSync)?c.options.serverSync.apply(this,[]):null;d[2]=(f?(new Date).getTime()-f.getTime():0)-d[1]}c._since&&c._since.setMilliseconds(c._since.getMilliseconds()+d[2]),c._until.setMilliseconds(c._until.getMilliseconds()+d[2])}});for(var c=0;c<b._serverSyncs.length;c++)b._eqNull(b._serverSyncs[c][2])||(b._serverSyncs[c][1]+=b._serverSyncs[c][2],delete b._serverSyncs[c][2])},_instSettings:function(a,b){return{_periods:[0,0,0,0,0,0,0]}},_addElem:function(a){this._hasElem(a)||this._timerElems.push(a)},_hasElem:function(b){return a.inArray(b,this._timerElems)>-1},_removeElem:function(b){this._timerElems=a.map(this._timerElems,function(a){return a===b?null:a})},_updateElems:function(){for(var a=this._timerElems.length-1;a>=0;a--)this._updateCountdown(this._timerElems[a])},_optionsChanged:function(b,c,d){d.layout&&(d.layout=d.layout.replace(/&lt;/g,"<").replace(/&gt;/g,">")),this._resetExtraLabels(c.options,d);var e=c.options.timezone!==d.timezone;a.extend(c.options,d),this._adjustSettings(b,c,!this._eqNull(d.until)||!this._eqNull(d.since)||e);var f=new Date;(c._since&&c._since<f||c._until&&c._until>f)&&this._addElem(b[0]),this._updateCountdown(b,c)},_updateCountdown:function(b,c){if(b=b.jquery?b:a(b),c=c||this._getInst(b)){if(b.html(this._generateHTML(c)).toggleClass(this._rtlClass,c.options.isRTL),"pause"!==c._hold&&a.isFunction(c.options.onT
36ick)){var d="lap"!==c._hold?c._periods:this._calculatePeriods(c,c._show,c.options.significant,new Date);1!==c.options.tickInterval&&this.periodsToSeconds(d)%c.options.tickInterval!==0||c.options.onTick.apply(b[0],[d])}var e="pause"!==c._hold&&(c._since?c._now.getTime()<c._since.getTime():c._now.getTime()>=c._until.getTime());if(e&&!c._expiring){if(c._expiring=!0,this._hasElem(b[0])||c.options.alwaysExpire){if(this._removeElem(b[0]),a.isFunction(c.options.onExpiry)&&c.options.onExpiry.apply(b[0],[]),c.options.expiryText){var f=c.options.layout;c.options.layout=c.options.expiryText,this._updateCountdown(b[0],c),c.options.layout=f}c.options.expiryUrl&&(window.location=c.options.expiryUrl)}c._expiring=!1}else"pause"===c._hold&&this._removeElem(b[0])}},_resetExtraLabels:function(a,b){var c=null;for(c in b)c.match(/[Ll]abels[02-9]|compactLabels1/)&&(a[c]=b[c]);for(c in a)c.match(/[Ll]abels[02-9]|compactLabels1/)&&"undefined"==typeof b[c]&&(a[c]=null)},_eqNull:function(a){return"undefined"==typeof a||null===a},_adjustSettings:function(b,c,d){for(var e=null,f=0;f<this._serverSyncs.length;f++)if(this._serverSyncs[f][0]===c.options.serverSync){e=this._serverSyncs[f][1];break}var g=null,h=null;if(this._eqNull(e)){var i=a.isFunction(c.options.serverSync)?c.options.serverSync.apply(b[0],[]):null;g=new Date,h=i?g.getTime()-i.getTime():0,this._serverSyncs.push([c.options.serverSync,h])}else g=new Date,h=c.options.serverSync?e:0;var j=c.options.timezone;j=this._eqNull(j)?-g.getTimezoneOffset():j,(d||!d&&this._eqNull(c._until)&&this._eqNull(c._since))&&(c._since=c.options.since,this._eqNull(c._since)||(c._since=this.UTCDate(j,this._determineTime(c._since,null)),c._since&&h&&c._since.setMilliseconds(c._since.getMilliseconds()+h)),c._until=this.UTCDate(j,this._determineTime(c.options.until,g)),h&&c._until.setMilliseconds(c._until.getMilliseconds()+h)),c._show=this._determineShow(c)},_preDestroy:function(a,b){this._removeElem(a[0]),a.empty()},pause:function(a){this._hold(a,"pause")},lap:function(a){this._hold(a,"lap")},resume:function(a){this._hold(a,null)},toggle:function(b){var c=a.data(b,this.name)||{};this[c._hold?"resume":"pause"](b)},toggleLap:function(b){var c=a.data(b,this.name)||{};this[c._hold?"resume":"lap"](b)},_hold:function(b,c){var d=a.data(b,this.name);if(d){if("pause"===d._hold&&!c){d._periods=d._savePeriods;var e=d._since?"-":"+";d[d._since?"_since":"_until"]=this._determineTime(e+d._periods[0]+"y"+e+d._periods[1]+"o"+e+d._periods[2]+"w"+e+d._periods[3]+"d"+e+d._periods[4]+"h"+e+d._periods[5]+"m"+e+d._periods[6]+"s"),this._addElem(b)}d._hold=c,d._savePeriods="pause"===c?d._periods:null,a.data(b,this.name,d),this._updateCountdown(b,d)}},getTimes:function(b){var c=a.data(b,this.name);return c?"pause"===c._hold?c._savePeriods:c._hold?this._calculatePeriods(c,c._show,c.options.significant,new Date):c._periods:null},_determineTime:function(a,b){var c=this,d=function(a){var b=new Date;return b.setTime(b.getTime()+1e3*a),b},e=function(a){a=a.toLowerCase();for(var b=new Date,d=b.getFullYear(),e=b.getMonth(),f=b.getDate(),g=b.getHours(),h=b.getMinutes(),i=b.getSeconds(),j=/([+-]?[0-9]+)\s*(s|m|h|d|w|o|y)?/g,k=j.exec(a);k;){switch(k[2]||"s"){case"s":i+=parseInt(k[1],10);break;case"m":h+=parseInt(k[1],10);break;case"h":g+=parseInt(k[1],10);break;case"d":f+=parseInt(k[1],10);break;case"w":f+=7*parseInt(k[1],10);break;case"o":e+=parseInt(k[1],10),f=Math.min(f,c._getDaysInMonth(d,e));break;case"y":d+=parseInt(k[1],10),f=Math.min(f,c._getDaysInMonth(d,e))}k=j.exec(a)}return new Date(d,e,f,g,h,i,0)},f=this._eqNull(a)?b:"string"==typeof a?e(a):"number"==typeof a?d(a):a;return f&&f.setMilliseconds(0),f},_getDaysInMonth:function(a,b){return 32-new Date(a,b,32).getDate()},_normalLabels:function(a){return a},_generateHTML:function(b){var j=this;b._periods=b._hold?b._periods:this._calculatePeriods(b,b._show,b.options.significant,new Date);var k=!1,l=0,m=b.options.significant,n=a.extend({},b._show),o=null;for(o=c;o<=i;o++)k=k||"?"===b._show[o]&&b._periods[o]>0,n[o]="?"!==b._show[o]||k?b._show[o]:null,l+=n[o]?1:0,m-=b._periods[o]>0?1:0;
36var p=[!1,!1,!1,!1,!1,!1,!1];for(o=i;o>=c;o--)b._show[o]&&(b._periods[o]?p[o]=!0:(p[o]=m>0,m--));var q=b.options.compact?b.options.compactLabels:b.options.labels,r=b.options.whichLabels||this._normalLabels,s=function(a){var c=b.options["compactLabels"+r(b._periods[a])];return n[a]?j._translateDigits(b,b._periods[a])+(c?c[a]:q[a])+" ":""},t=b.options.padZeroes?2:1,u=function(a){var c=b.options["labels"+r(b._periods[a])];return!b.options.significant&&n[a]||b.options.significant&&p[a]?'<span class="'+j._sectionClass+'"><span class="'+j._amountClass+'">'+j._minDigits(b,b._periods[a],t)+'</span><span class="'+j._periodClass+'">'+(c?c[a]:q[a])+"</span></span>":""};return b.options.layout?this._buildLayout(b,n,b.options.layout,b.options.compact,b.options.significant,p):(b.options.compact?'<span class="'+this._rowClass+" "+this._amountClass+(b._hold?" "+this._holdingClass:"")+'">'+s(c)+s(d)+s(e)+s(f)+(n[g]?this._minDigits(b,b._periods[g],2):"")+(n[h]?(n[g]?b.options.timeSeparator:"")+this._minDigits(b,b._periods[h],2):"")+(n[i]?(n[g]||n[h]?b.options.timeSeparator:"")+this._minDigits(b,b._periods[i],2):""):'<span class="'+this._rowClass+" "+this._showClass+(b.options.significant||l)+(b._hold?" "+this._holdingClass:"")+'">'+u(c)+u(d)+u(e)+u(f)+u(g)+u(h)+u(i))+"</span>"+(b.options.description?'<span class="'+this._rowClass+" "+this._descrClass+'">'+b.options.description+"</span>":"")},_buildLayout:function(b,j,k,l,m,n){for(var o=b.options[l?"compactLabels":"labels"],p=b.options.whichLabels||this._normalLabels,q=function(a){return(b.options[(l?"compactLabels":"labels")+p(b._periods[a])]||o)[a]},r=function(a,c){return b.options.digits[Math.floor(a/c)%10]},s={desc:b.options.description,sep:b.options.timeSeparator,yl:q(c),yn:this._minDigits(b,b._periods[c],1),ynn:this._minDigits(b,b._periods[c],2),ynnn:this._minDigits(b,b._periods[c],3),y1:r(b._periods[c],1),y10:r(b._periods[c],10),y100:r(b._periods[c],100),y1000:r(b._periods[c],1e3),ol:q(d),on:this._minDigits(b,b._periods[d],1),onn:this._minDigits(b,b._periods[d],2),onnn:this._minDigits(b,b._periods[d],3),o1:r(b._periods[d],1),o10:r(b._periods[d],10),o100:r(b._periods[d],100),o1000:r(b._periods[d],1e3),wl:q(e),wn:this._minDigits(b,b._periods[e],1),wnn:this._minDigits(b,b._periods[e],2),wnnn:this._minDigits(b,b._periods[e],3),w1:r(b._periods[e],1),w10:r(b._periods[e],10),w100:r(b._periods[e],100),w1000:r(b._periods[e],1e3),dl:q(f),dn:this._minDigits(b,b._periods[f],1),dnn:this._minDigits(b,b._periods[f],2),dnnn:this._minDigits(b,b._periods[f],3),d1:r(b._periods[f],1),d10:r(b._periods[f],10),d100:r(b._periods[f],100),d1000:r(b._periods[f],1e3),hl:q(g),hn:this._minDigits(b,b._periods[g],1),hnn:this._minDigits(b,b._periods[g],2),hnnn:this._minDigits(b,b._periods[g],3),h1:r(b._periods[g],1),h10:r(b._periods[g],10),h100:r(b._periods[g],100),h1000:r(b._periods[g],1e3),ml:q(h),mn:this._minDigits(b,b._periods[h],1),mnn:this._minDigits(b,b._periods[h],2),mnnn:this._minDigits(b,b._periods[h],3),m1:r(b._periods[h],1),m10:r(b._periods[h],10),m100:r(b._periods[h],100),m1000:r(b._periods[h],1e3),sl:q(i),sn:this._minDigits(b,b._periods[i],1),snn:this._minDigits(b,b._periods[i],2),snnn:this._minDigits(b,b._periods[i],3),s1:r(b._periods[i],1),s10:r(b._periods[i],10),s100:r(b._periods[i],100),s1000:r(b._periods[i],1e3)},t=k,u=c;u<=i;u++){var v="yowdhms".charAt(u),w=new RegExp("\\{"+v+"<\\}([\\s\\S]*)\\{"+v+">\\}","g");t=t.replace(w,!m&&j[u]||m&&n[u]?"$1":"")}return a.each(s,function(a,b){var c=new RegExp("\\{"+a+"\\}","g");t=t.replace(c,b)}),t},_minDigits:function(a,b,c){return b=""+b,b.length>=c?this._translateDigits(a,b):(b="0000000000"+b,this._translateDigits(a,b.substr(b.length-c)))},_translateDigits:function(a,b){return(""+b).replace(/[0-9]/g,function(b){return a.options.digits[b]})},_determineShow:function(a){var b=a.options.format,j=[];return j[c]=b.match("y")?"?":b.match("Y")?"!":null,j[d]=b.match("o")?"?":b.match("O")?"!":null,j[e]=b.match("w")?"?":b.match("W")?"!":null,j[f]=b.match("d")?"?":b.match("D")?"!":null,j[g]=b.match("h")?"?":b.match("H")?"!":null,j[h]=b.match("m")?"?":b.match("M")?"!":null,j[i]=b.match("s")?"?":b.match("S")?"!":null,j}
36,_calculatePeriods:function(a,b,j,k){a._now=k,a._now.setMilliseconds(0);var l=new Date(a._now.getTime());a._since?k.getTime()<a._since.getTime()?a._now=k=l:k=a._since:(l.setTime(a._until.getTime()),k.getTime()>a._until.getTime()&&(a._now=k=l));var m=[0,0,0,0,0,0,0];if(b[c]||b[d]){var n=this._getDaysInMonth(k.getFullYear(),k.getMonth()),o=this._getDaysInMonth(l.getFullYear(),l.getMonth()),p=l.getDate()===k.getDate()||l.getDate()>=Math.min(n,o)&&k.getDate()>=Math.min(n,o),q=function(a){return 60*(60*a.getHours()+a.getMinutes())+a.getSeconds()},r=Math.max(0,12*(l.getFullYear()-k.getFullYear())+l.getMonth()-k.getMonth()+(l.getDate()<k.getDate()&&!p||p&&q(l)<q(k)?-1:0));m[c]=b[c]?Math.floor(r/12):0,m[d]=b[d]?r-12*m[c]:0,k=new Date(k.getTime());var s=k.getDate()===n,t=this._getDaysInMonth(k.getFullYear()+m[c],k.getMonth()+m[d]);k.getDate()>t&&k.setDate(t),k.setFullYear(k.getFullYear()+m[c]),k.setMonth(k.getMonth()+m[d]),s&&k.setDate(t)}var u=Math.floor((l.getTime()-k.getTime())/1e3),v=null,w=function(a,c){m[a]=b[a]?Math.floor(u/c):0,u-=m[a]*c};if(w(e,604800),w(f,86400),w(g,3600),w(h,60),w(i,1),u>0&&!a._since){var x=[1,12,4.3482,7,24,60,60],y=i,z=1;for(v=i;v>=c;v--)b[v]&&(m[y]>=z&&(m[y]=0,u=1),u>0&&(m[v]++,u=0,y=v,z=1)),z*=x[v]}if(j)for(v=c;v<=i;v++)j&&m[v]?j--:j||(m[v]=0);return m}})}(jQuery);
37/* End */
38;
39; /* Start:"a:4:{s:4:"full";s:66:"/bitrix/templates/concept_hameleon/js/device.min.js?17573408072605";s:6:"source";s:51:"/bitrix/templates/concept_hameleon/js/device.min.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
40/*! device.js 0.1.57 */
41(function(){var a,b,c,d,e,f,g,h,i;window.device={},b=window.document.documentElement,i=window.navigator.userAgent.toLowerCase(),device.ios=function(){return device.iphone()||device.ipod()||device.ipad()},device.iphone=function(){return c("iphone")},device.ipod=function(){return c("ipod")},device.ipad=function(){return c("ipad")},device.android=function(){return c("android")},device.androidPhone=function(){return device.android()&&c("mobile")},device.androidTablet=function(){return device.android()&&!c("mobile")},device.blackberry=function(){return c("blackberry")||c("bb10")||c("rim")},device.blackberryPhone=function(){return device.blackberry()&&!c("tablet")},device.blackberryTablet=function(){return device.blackberry()&&c("tablet")},device.windows=function(){return c("windows")},device.windowsPhone=function(){return device.windows()&&c("phone")},device.windowsTablet=function(){return device.windows()&&c("touch")},device.fxos=function(){return c("(mobile; rv:")||c("(tablet; rv:")},device.fxosPhone=function(){return device.fxos()&&c("mobile")},device.fxosTablet=function(){return device.fxos()&&c("tablet")},device.mobile=function(){return device.androidPhone()||device.iphone()||device.ipod()||device.windowsPhone()||device.blackberryPhone()||device.fxosPhone()},device.tablet=function(){return device.ipad()||device.androidTablet()||device.blackberryTablet()||device.windowsTablet()||device.fxosTablet()},device.portrait=function(){return 90!==Math.abs(window.orientation)},device.landscape=function(){return 90===Math.abs(window.orientation)},c=function(a){return-1!==i.indexOf(a)},e=function(a){var c;return c=new RegExp(a,"i"),b.className.match(c)},a=function(a){return e(a)?void 0:b.className+=" "+a},g=function(a){return e(a)?b.className=b.className.replace(a,""):void 0},device.ios()?device.ipad()?a("ios ipad tablet"):device.iphone()?a("ios iphone mobile"):device.ipod()&&a("ios ipod mobile"):device.android()?device.androidTablet()?a("android tablet"):a("android mobile"):device.blackberry()?device.blackberryTablet()?a("blackberry tablet"):a("blackberry mobile"):device.windows()?device.windowsTablet()?a("windows tablet"):device.windowsPhone()?a("windows mobile"):a("desktop"):device.fxos()?device.fxosTablet()?a("fxos tablet"):a("fxos mobile"):a("desktop"),d=function(){return device.landscape()?(g("portrait"),a("landscape")):(g("landscape"),a("portrait"))},h="onorientationchange"in window,f=h?"orientationchange":"resize",window.addEventListener?window.addEventListener(f,d,!1):window.attachEvent?window.attachEvent(f,d):window[f]=d,d()}).call(this);
42/* End */
43;
44; /* Start:"a:4:{s:4:"full";s:59:"/bitrix/templates/concept_hameleon/js/wow.js?17573408088415";s:6:"source";s:44:"/bitrix/templates/concept_hameleon/js/wow.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
45/*! WOW - v1.1.3 - 2016-05-06
46* Copyright (c) 2016 Matthieu Aussaguel;*/(function(){var a,b,c,d,e,f=function(a,b){return function(){return a.apply(b,arguments)}},g=[].indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(b in this&&this[b]===a)return b;return-1};b=function(){function a(){}return a.prototype.extend=function(a,b){var c,d;for(c in b)d=b[c],null==a[c]&&(a[c]=d);return a},a.prototype.isMobile=function(a){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(a)},a.prototype.createEvent=function(a,b,c,d){var e;return null==b&&(b=!1),null==c&&(c=!1),null==d&&(d=null),null!=document.createEvent?(e=document.createEvent("CustomEvent"),e.initCustomEvent(a,b,c,d)):null!=document.createEventObject?(e=document.createEventObject(),e.eventType=a):e.eventName=a,e},a.prototype.emitEvent=function(a,b){return null!=a.dispatchEvent?a.dispatchEvent(b):b in(null!=a)?a[b]():"on"+b in(null!=a)?a["on"+b]():void 0},a.prototype.addEvent=function(a,b,c){return null!=a.addEventListener?a.addEventListener(b,c,!1):null!=a.attachEvent?a.attachEvent("on"+b,c):a[b]=c},a.prototype.removeEvent=function(a,b,c){return null!=a.removeEventListener?a.removeEventListener(b,c,!1):null!=a.detachEvent?a.detachEvent("on"+b,c):delete a[b]}
vendor: 5,314 bytes, line 46
46,a.prototype.innerHeight=function(){return"innerHeight"in window?window.innerHeight:document.documentElement.clientHeight},a}(),c=this.WeakMap||this.MozWeakMap||(c=function(){function a(){this.keys=[],this.values=[]}return a.prototype.get=function(a){var b,c,d,e,f;for(f=this.keys,b=d=0,e=f.length;e>d;b=++d)if(c=f[b],c===a)return this.values[b]},a.prototype.set=function(a,b){var c,d,e,f,g;for(g=this.keys,c=e=0,f=g.length;f>e;c=++e)if(d=g[c],d===a)return void(this.values[c]=b);return this.keys.push(a),this.values.push(b)},a}()),a=this.MutationObserver||this.WebkitMutationObserver||this.MozMutationObserver||(a=function(){function a(){"undefined"!=typeof console&&null!==console&&console.warn("MutationObserver is not supported by your browser."),"undefined"!=typeof console&&null!==console&&console.warn("WOW.js cannot detect dom mutations, please call .sync() after loading new content.")}return a.notSupported=!0,a.prototype.observe=function(){},a}()),d=this.getComputedStyle||function(a,b){return this.getPropertyValue=function(b){var c;return"float"===b&&(b="styleFloat"),e.test(b)&&b.replace(e,function(a,b){return b.toUpperCase()}),(null!=(c=a.currentStyle)?c[b]:void 0)||null},this},e=/(\-([a-z]){1})/g,this.WOW=function(){function e(a){null==a&&(a={}),this.scrollCallback=f(this.scrollCallback,this),this.scrollHandler=f(this.scrollHandler,this),this.resetAnimation=f(this.resetAnimation,this),this.start=f(this.start,this),this.scrolled=!0,this.config=this.util().extend(a,this.defaults),null!=a.scrollContainer&&(this.config.scrollContainer=document.querySelector(a.scrollContainer)),this.animationNameCache=new c,this.wowEvent=this.util().createEvent(this.config.boxClass)}return e.prototype.defaults={boxClass:"wow",animateClass:"animated",offset:0,mobile:!0,live:!0,callback:null,scrollContainer:null},e.prototype.init=function(){var a;return this.element=window.document.documentElement,"interactive"===(a=document.readyState)||"complete"===a?this.start():this.util().addEvent(document,"DOMContentLoaded",this.start),this.finished=[]},e.prototype.start=function(){var b,c,d,e;if(this.stopped=!1,this.boxes=function(){var a,c,d,e;for(d=this.element.querySelectorAll("."+this.config.boxClass),e=[],a=0,c=d.length;c>a;a++)b=d[a],e.push(b);return e}.call(this),this.all=function(){var a,c,d,e;for(d=this.boxes,e=[],a=0,c=d.length;c>a;a++)b=d[a],e.push(b);return e}.call(this),this.boxes.length)if(this.disabled())this.resetStyle();else for(e=this.boxes,c=0,d=e.length;d>c;c++)b=e[c],this.applyStyle(b,!0);return this.disabled()||(this.util().addEvent(this.config.scrollContainer||window,"scroll",this.scrollHandler),this.util().addEvent(window,"resize",this.scrollHandler),this.interval=setInterval(this.scrollCallback,50)),this.config.live?new a(function(a){return function(b){var c,d,e,f,g;for(g=[],c=0,d=b.length;d>c;c++)f=b[c],g.push(function(){var a,b,c,d;for(c=f.addedNodes||[],d=[],a=0,b=c.length;b>a;a++)e=c[a],d.push(this.doSync(e));return d}.call(a));return g}}(this)).observe(document.body,{childList:!0,subtree:!0}):void 0},e.prototype.stop=function(){return this.stopped=!0,this.util().removeEvent(this.config.scrollContainer||window,"scroll",this.scrollHandler),this.util().removeEvent(window,"resize",this.scrollHandler),null!=this.interval?clearInterval(this.interval):void 0},e.prototype.sync=function(b){return a.notSupported?this.doSync(this.element):void 0},e.prototype.doSync=function(a){var b,c,d,e,f;if(null==a&&(a=this.element),1===a.nodeType){for(a=a.parentNode||a,e=a.querySelectorAll("."+this.config.boxClass),f=[],c=0,d=e.length;d>c;c++)b=e[c],g.call(this.all,b)<0?(this.boxes.push(b),this.all.push(b),this.stopped||this.disabled()?this.resetStyle():this.applyStyle(b,!0),f.push(this.scrolled=!0)):f.push(void 0);return f}},e.prototype.show=function(a){return this.applyStyle(a),a.className=a.className+" "+this.config.animateClass,null!=this.config.callback&&this.config.callback(a),this.util().emitEvent(a,this.wowEvent),this.util().addEvent(a,"animationend",this.resetAnimation),this.util().addEvent(a,"oanimationend",this.resetAnimation),this.util().addEvent(a,"webkitAnimationEnd",this.resetAnimation),this.util().addEvent(a,"MSAnimationEnd",this.resetAnimation),a},e.prototype.applyStyle=function(a,b){var c,d,e;return d=a.getAttribute("data-wow-duration"),c=a.getAttribute("data-wow-delay"),e=a.getAttribute("data-wow-iteration"),this.animate(function(f){return function(){return f.customStyle(a,b,d,c,e)}}(this))},e.prototype.animate=function(){return"requestAnimationFrame"in window?function(a){return window.requestAnimationFrame(a)}:function(a){return a()}}(),e.prototype.resetStyle=function(){var a,b,c,d,e;for(d=this.boxes,e=[],b=0,c=d.length;c>b;b++)a=d[b],e.push(a.style.visibility="visible");return e},e.prototype.resetAnimation=function(a){var b;return a.type.toLowerCase().indexOf("animationend")>=0?(b=a.target||a.srcElement,b.className=b.className.replace(this.config.animateClass,"").trim()):void 0},e.prototype.customStyle=function(a,b,c,d,e){return b&&this.cacheAnimationName(a),a.style.visibility=b?"hidden":"visible",c&&this.vendorSet(a.style,{animationDuration:c}),d&&this.vendorSet(a.style,{animationDelay:d}),e&&this.vendorSet(a.style,{animationIterationCount:e}),this.vendorSet(a.style,{animationName:b?"none":this.cachedAnimationName(a)}),a}
46,e.prototype.vendors=["moz","webkit"],e.prototype.vendorSet=function(a,b){var c,d,e,f;d=[];for(c in b)e=b[c],a[""+c]=e,d.push(function(){var b,d,g,h;for(g=this.vendors,h=[],b=0,d=g.length;d>b;b++)f=g[b],h.push(a[""+f+c.charAt(0).toUpperCase()+c.substr(1)]=e);return h}.call(this));return d},e.prototype.vendorCSS=function(a,b){var c,e,f,g,h,i;for(h=d(a),g=h.getPropertyCSSValue(b),f=this.vendors,c=0,e=f.length;e>c;c++)i=f[c],g=g||h.getPropertyCSSValue("-"+i+"-"+b);return g},e.prototype.animationName=function(a){var b;try{b=this.vendorCSS(a,"animation-name").cssText}catch(c){b=d(a).getPropertyValue("animation-name")}return"none"===b?"":b},e.prototype.cacheAnimationName=function(a){return this.animationNameCache.set(a,this.animationName(a))},e.prototype.cachedAnimationName=function(a){return this.animationNameCache.get(a)},e.prototype.scrollHandler=function(){return this.scrolled=!0},e.prototype.scrollCallback=function(){var a;return!this.scrolled||(this.scrolled=!1,this.boxes=function(){var b,c,d,e;for(d=this.boxes,e=[],b=0,c=d.length;c>b;b++)a=d[b],a&&(this.isVisible(a)?this.show(a):e.push(a));return e}.call(this),this.boxes.length||this.config.live)?void 0:this.stop()},e.prototype.offsetTop=function(a){for(var b;void 0===a.offsetTop;)a=a.parentNode;for(b=a.offsetTop;a=a.offsetParent;)b+=a.offsetTop;return b},e.prototype.isVisible=function(a){var b,c,d,e,f;return c=a.getAttribute("data-wow-offset")||this.config.offset,f=this.config.scrollContainer&&this.config.scrollContainer.scrollTop||window.pageYOffset,e=f+Math.min(this.element.clientHeight,this.util().innerHeight())-c,d=this.offsetTop(a),b=d+a.clientHeight,e>=d&&b>=f},e.prototype.util=function(){return null!=this._util?this._util:this._util=new b},e.prototype.disabled=function(){return!this.config.mobile&&this.util().isMobile(navigator.userAgent)},e}()}).call(this);
47/* End */
48;
49; /* Start:"a:4:{s:4:"full";s:69:"/bitrix/templates/concept_hameleon/js/jquery.enllax.js?17573408075185";s:6:"source";s:54:"/bitrix/templates/concept_hameleon/js/jquery.enllax.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
50/**
51  * jQuery.enllax.js v1.1.0
52  * https://github.com/mmkjony/enllax.js
53  * demo: http://mmkjony.github.io/enllax.js/
54  *
55  * Copyright 2015, MMK Jony
56  * This content is released under the MIT license
57 **/
58
59(function($){
60    'use strict';
61
62    $.fn.enllax = function(opt){
63
64        var elem = $('[data-enllax-ratio]');
65        
66        /*elem.each(function(){
67            var $this = $(this);
68            $this.css({
69                'position': 'absolute',
70                'left': '0',
71                'right': '0'
72            });
73        });*/
74
75        var winHeight = $(window).height();
76
77        var options = $.extend({
78            ratio: 0,
79            type: 'background', 
80            direction: 'vertical', 
81            offset: 0
82        }, opt);
83
84        elem.each(function(){
85            var ratio;
86            var type;
87            var dir;
88            var offset;
89            var $this = $(this);
90            var docHeight = $(document).height();
91            /*var offsettop = $this.offset().top;*/
92            var offsettop  = 0;
93            var height = $this.outerHeight();
94            var dataRat = $this.data('enllax-ratio');
95            var dataType = $this.data('enllax-type');
96            var dataDir = $this.data('enllax-direction');
97            var dataOffset = $this.data('enllax-offset');
98
99            if(dataRat) {
100                ratio = dataRat;
101            }
102            else { ratio = options.ratio; }
103
104            if(dataType) {
105                type = dataType;
106            }
107            else { type = options.type; }
108
109            if(dataDir) {
110                dir = dataDir;
111            }
112            else { dir = options.direction; }
113
114            if(dataOffset) {
115                offset = dataOffset;
116            }
117            else { offset = options.offset; }
118
119            var bgY = Math.round(offsettop * ratio);
120            var transform = Math.round( ( offsettop - ( winHeight / 2 ) ) * ratio - offset );
121
122            if(type == 'background') {
123                if(dir == 'vertical') {
124                    $this.css({
125                        'background-position': 'center ' + -bgY + 'px'
126                    });
127                }
128                else if(dir == 'horizontal') {
129                    $this.css({
130                        'background-position': -bgY + 'px' + ' center'
131                    });
132                }
133            }
134            else if(type == 'foreground') {
135                if(dir == 'vertical') {
136                    $this.css({
137                        '-webkit-transform': 'translateY(' + transform + 'px)',
138                        '-moz-transform': 'translateY(' + transform + 'px)',
139                        'transform': 'translateY(' + transform + 'px)',
140                        'position': 'absolute',
141                        'left': '0',
142                        'right': '0'
143                    });
144                }
145                else if(dir == 'horizontal') {
146                    $this.css({
147                        '-webkit-transform': 'translateX(' + transform + 'px)',
148                        '-moz-transform': 'translateX(' + transform + 'px)',
149                        'transform': 'translateX(' + transform + 'px)'
150                    });
151                }
152            }
153
154            $(window).on('scroll', function(){
155                var docHeight = $(document).height();
156                var offsettop = $this.offset().top;
157                var height = $this.outerHeight();
158                var scrolling = $(this).scrollTop();
159
160                bgY = Math.round((offsettop - scrolling) * ratio);
161                transform = Math.round( ( ( offsettop - ( winHeight / 2 ) ) - scrolling ) * ratio - offset );
162
163                if(type == 'background') {
164                    if(dir == 'vertical') {
165                        $this.css({
166                            'background-position': 'center ' + -bgY + 'px'
167                        });
168                    }
169                    else if(dir == 'horizontal') {
170                        $this.css({
171                            'background-position': -bgY + 'px' + ' center'
172                        });
173                    }
174                }
175                else if((type == 'foreground') && (scrolling < docHeight)) {
176                    if(dir == 'vertical') {
177                        $this.css({
178                            '-webkit-transform': 'translateY(' + transform + 'px)',
179                            '-moz-transform': 'translateY(' + transform + 'px)',
180                            'transform': 'translateY(' + transform + 'px)',
181                            'position': 'absolute',
182                            'left': '0',
183                            'right': '0'
184                        });
185                    }
186                    else if(dir == 'horizontal') {
187                        $this.css({
188                            '-webkit-transform': 'translateX(' + transform + 'px)',
189                            '-moz-transform': 'translateX(' + transform + 'px)',
190                            'transform': 'translateX(' + transform + 'px)'
191                        });
192                    }
193                }
194            });
195        });
196
197    };
198
199})(jQuery);
200
201/* End */
202;
203; /* Start:"a:4:{s:4:"full";s:84:"/bitrix/templates/concept_hameleon/js/jquery.maskedinput-1.2.2.min.js?17573408074324";s:6:"source";s:69:"/bitrix/templates/concept_hameleon/js/jquery.maskedinput-1.2.2.min.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
204/*
205    jQuery Masked Input Plugin
206    Copyright (c) 2007 - 2015 Josh Bush (digitalbush.com)
207    Licensed under the MIT license (http://digitalbush.com/projects/masked-input-plugin/#license)
208    Version: 1.4.1
209*/
210!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):jQuery)}(function(a){var b,c=navigator.userAgent,d=/iphone/i.test(c),e=/chrome/i.test(c),f=/android/i.test(c);a.mask={definitions:{9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"},autoclear:!0,dataName:"rawMaskFn",placeholder:"_"},a.fn.extend({caret:function(a,b){var c;if(0!==this.length&&!this.is(":hidden"))return"number"==typeof a?(b="number"==typeof b?b:a,this.each(function(){this.setSelectionRange?this.setSelectionRange(a,b):this.createTextRange&&(c=this.createTextRange(),c.collapse(!0),c.moveEnd("character",b),c.moveStart("character",a),c.select())})):(this[0].setSelectionRange?(a=this[0].selectionStart,b=this[0].selectionEnd):document.selection&&document.selection.createRange&&(c=document.selection.createRange(),a=0-c.duplicate().moveStart("character",-1e5),b=a+c.text.length),{begin:a,end:b})},unmask:function(){return this.trigger("unmask")},mask:function(c,g){var h,i,j,k,l,m,n,o;if(!c&&this.length>0){h=a(this[0]);var p=h.data(a.mask.dataName);return p?p():void 0}return g=a.extend({autoclear:a.mask.autoclear,placeholder:a.mask.placeholder,completed:null},g),i=a.mask.definitions,j=[],k=n=c.length,l=null,a.each(c.split(""),function(a,b){"?"==b?(n--,k=a):i[b]?(j.push(new RegExp(i[b])),null===l&&(l=j.length-1),k>a&&(m=j.length-1)):j.push(null)}),this.trigger("unmask").each(function(){function h(){if(g.completed){for(var a=l;m>=a;a++)if(j[a]&&C[a]===p(a))return;g.completed.call(B)}}function p(a){return g.placeholder.charAt(a<g.placeholder.length?a:0)}function q(a){for(;++a<n&&!j[a];);return a}function r(a){for(;--a>=0&&!j[a];);return a}function s(a,b){var c,d;if(!(0>a)){for(c=a,d=q(b);n>c;c++)if(j[c]){if(!(n>d&&j[c].test(C[d])))break;C[c]=C[d],C[d]=p(d),d=q(d)}z(),B.caret(Math.max(l,a))}}function t(a){var b,c,d,e;for(b=a,c=p(a);n>b;b++)if(j[b]){if(d=q(b),e=C[b],C[b]=c,!(n>d&&j[d].test(e)))break;c=e}}function u(){var a=B.val(),b=B.caret();if(o&&o.length&&o.length>a.length){for(A(!0);b.begin>0&&!j[b.begin-1];)b.begin--;if(0===b.begin)for(;b.begin<l&&!j[b.begin];)b.begin++;B.caret(b.begin,b.begin)}else{for(A(!0);b.begin<n&&!j[b.begin];)b.begin++;B.caret(b.begin,b.begin)}h()}function v(){A(),B.val()!=E&&B.change()}function w(a){if(!B.prop("readonly")){var b,c,e,f=a.which||a.keyCode;o=B.val(),8===f||46===f||d&&127===f?(b=B.caret(),c=b.begin,e=b.end,e-c===0&&(c=46!==f?r(c):e=q(c-1),e=46===f?q(e):e),y(c,e),s(c,e-1),a.preventDefault()):13===f?v.call(this,a):27===f&&(B.val(E),B.caret(0,A()),a.preventDefault())}}function x(b){if(!B.prop("readonly")){var c,d,e,g=b.which||b.keyCode,i=B.caret();if(!(b.ctrlKey||b.altKey||b.metaKey||32>g)&&g&&13!==g){if(i.end-i.begin!==0&&(y(i.begin,i.end),s(i.begin,i.end-1)),c=q(i.begin-1),n>c&&(d=String.fromCharCode(g),j[c].test(d))){if(t(c),C[c]=d,z(),e=q(c),f){var k=function(){a.proxy(a.fn.caret,B,e)()};setTimeout(k,0)}else B.caret(e);i.begin<=m&&h()}b.preventDefault()}}}function y(a,b){var c;for(c=a;b>c&&n>c;c++)j[c]&&(C[c]=p(c))}function z(){B.val(C.join(""))}function A(a){var b,c,d,e=B.val(),f=-1;for(b=0,d=0;n>b;b++)if(j[b]){for(C[b]=p(b);d++<e.length;)if(c=e.charAt(d-1),j[b].test(c)){C[b]=c,f=b;break}if(d>e.length){y(b+1,n);break}}else C[b]===e.charAt(d)&&d++,k>b&&(f=b);return a?z():k>f+1?g.autoclear||C.join("")===D?(B.val()&&B.val(""),y(0,n)):z():(z(),B.val(B.val().substring(0,f+1))),k?b:l}var B=a(this),C=a.map(c.split(""),function(a,b){return"?"!=a?i[a]?p(b):a:void 0}),D=C.join(""),E=B.val();B.data(a.mask.dataName,function(){return a.map(C,function(a,b){return j[b]&&a!=p(b)?a:null}).join("")}),B.one("unmask",function(){B.off(".mask").removeData(a.mask.dataName)}).on("focus.mask",function(){if(!B.prop("readonly")){clearTimeout(b);var a;E=B.val(),a=A(),b=setTimeout(function(){B.get(0)===document.activeElement&&(z(),a==c.replace("?","").length?B.caret(0,a):B.caret(a))},10)}}).on("blur.mask",v).on("keydown.mask",w).on("keypress.mask",x).on("input.mask paste.mask",function(){B.prop("readonly")||setTimeout(function(){var a=A(!0);B.caret(a),h()},0)}),e&&f&&B.off("input.mask").on("input.mask",u),A()})}})});
211/* End */
212;
213; /* Start:"a:4:{s:4:"full";s:83:"/bitrix/templates/concept_hameleon/js/jquery.blueimp-gallery.min.js?175734080831993";s:6:"source";s:67:"/bitrix/templates/concept_hameleon/js/jquery.blueimp-gallery.min.js";s:3:"min";s:67:"/bitrix/templates/concept_hameleon/js/jquery.blueimp-gallery.min.js";s:3:"map";
213s:71:"/bitrix/templates/concept_hameleon/js/jquery.blueimp-gallery.min.js.map";}"*/
214!function(t){"use strict";"function"==typeof define&&define.amd?define(["./blueimp-helper"],t):(window.blueimp=window.blueimp||{},window.blueimp.Gallery=t(window.blueimp.helper||window.jQuery))}(function(t){"use strict";function e(t,i){return void 0===document.body.style.maxHeight?null:this&&this.options===e.prototype.options?t&&t.length?(this.list=t,this.num=t.length,this.initOptions(i),void this.initialize()):void this.console.log("blueimp Gallery: No or empty list provided as first argument.",t):new e(t,i)}return t.extend(e.prototype,{options:{container:"#blueimp-gallery",slidesContainer:"div",titleElement:"h3",displayClass:"blueimp-gallery-display",controlsClass:"blueimp-gallery-controls",singleClass:"blueimp-gallery-single",leftEdgeClass:"blueimp-gallery-left",rightEdgeClass:"blueimp-gallery-right",playingClass:"blueimp-gallery-playing",slideClass:"slide",slideLoadingClass:"slide-loading",slideErrorClass:"slide-error",slideContentClass:"slide-content",toggleClass:"toggle",prevClass:"prev",nextClass:"next",closeClass:"close",playPauseClass:"play-pause",typeProperty:"type",titleProperty:"title",urlProperty:"href",srcsetProperty:"urlset",displayTransition:!0,clearSlides:!0,stretchImages:!1,toggleControlsOnReturn:!0,toggleControlsOnSlideClick:!0,toggleSlideshowOnSpace:!0,enableKeyboardNavigation:!0,closeOnEscape:!0,closeOnSlideClick:!0,closeOnSwipeUpOrDown:!0,emulateTouchEvents:!0,stopTouchEventsPropagation:!1,hidePageScrollbars:!0,disableScroll:!0,carousel:!1,continuous:!0,unloadElements:!0,startSlideshow:!1,slideshowInterval:5e3,index:0,preloadRange:2,transitionSpeed:400,slideshowTransitionSpeed:void 0,event:void 0,onopen:void 0,onopened:void 0,onslide:void 0,onslideend:void 0,onslidecomplete:void 0,onclose:void 0,onclosed:void 0},carouselOptions:{hidePageScrollbars:!1,toggleControlsOnReturn:!1,toggleSlideshowOnSpace:!1,enableKeyboardNavigation:!1,closeOnEscape:!1,closeOnSlideClick:!1,closeOnSwipeUpOrDown:!1,disableScroll:!1,startSlideshow:!0},console:window.console&&"function"==typeof window.console.log?window.console:{log:function(){}},support:function(e){function i(){var t,i,s=o.transition;document.body.appendChild(e),s&&(t=s.name.slice(0,-9)+"ransform",void 0!==e.style[t]&&(e.style[t]="translateZ(0)",i=window.getComputedStyle(e).getPropertyValue(s.prefix+"transform"),o.transform={prefix:s.prefix,name:t,translate:!0,translateZ:!!i&&"none"!==i})),void 0!==e.style.backgroundSize&&(o.backgroundSize={},e.style.backgroundSize="contain",o.backgroundSize.contain="contain"===window.getComputedStyle(e).getPropertyValue("background-size"),e.style.backgroundSize="cover",o.backgroundSize.cover="cover"===window.getComputedStyle(e).getPropertyValue("background-size")),document.body.removeChild(e)}var s,o={touch:void 0!==window.ontouchstart||window.DocumentTouch&&document instanceof DocumentTouch},n={webkitTransition:{end:"webkitTransitionEnd",prefix:"-webkit-"},MozTransition:{end:"transitionend",prefix:"-moz-"},OTransition:{end:"otransitionend",prefix:"-o-"},transition:{end:"transitionend",prefix:""}};for(s in n)if(n.hasOwnProperty(s)&&void 0!==e.style[s]){o.transition=n[s],o.transition.name=s;break}return document.body?i():t(document).on("DOMContentLoaded",i),o}(document.createElement("div")),requestAnimationFrame:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame,initialize:function(){return this.initStartIndex(),this.initWidget()===!1?!1:(this.initEventListeners(),this.onslide(this.index),this.ontransitionend(),void(this.options.startSlideshow&&this.play()))},slide:function(t,e){window.clearTimeout(this.timeout);var i,s,o,n=this.index;if(n!==t&&1!==this.num){if(e||(e=this.options.transitionSpeed),this.support.transform){for(this.options.continuous||(t=this.circle(t)),i=Math.abs(n-t)/(n-t),this.options.continuous&&(s=i,i=-this.positions[this.circle(t)]/this.slideWidth,i!==s&&(t=-i*this.num+t)),o=Math.abs(n-t)-1;o;)o-=1,this.move(this.circle((t>n?t:n)-o-1),this.slideWidth*i,0);t=this.circle(t),this.move(n,this.slideWidth*i,e),this.move(t,0,e),this.options.continuous&&this.move(this.circle(t-i),-(this.slideWidth*i),0)}else t=this.circle(t),this.animate(n*-this.slideWidth,t*-this.slideWidth,e);this.onslide(t)}},getIndex:function(){return this.index},getNumber:function(){return this.num},prev:function(){(this.options.continuous||this.index)&&this.slide(this.index-1)},next:function(){(this.options.continuous||this.index<this.num-1)&&this.slide(this.index+1)},play:function(t){var e=this;window.clearTimeout(this.timeout),this.interval=t||this.options.slideshowInterval,this.elements[this.index]>1&&(this.timeout=this.setTimeout(!this.requestAnimationFrame&&this.slide||function(t,i){e.animationFrameId=e.requestAnimationFrame.call(window,function(){e.slide(t,i)})},[this.index+1,this.options.slideshowTransitionSpeed],this.interval)),this.container.addClass(this.options.playingClass)},pause:function(){window.clearTimeout(this.timeout),this.interval=null,this.container.removeClass(this.options.playingClass)},add:function(t){var e;
214for(t.concat||(t=Array.prototype.slice.call(t)),this.list.concat||(this.list=Array.prototype.slice.call(this.list)),this.list=this.list.concat(t),this.num=this.list.length,this.num>2&&null===this.options.continuous&&(this.options.continuous=!0,this.container.removeClass(this.options.leftEdgeClass)),this.container.removeClass(this.options.rightEdgeClass).removeClass(this.options.singleClass),e=this.num-t.length;e<this.num;e+=1)this.addSlide(e),this.positionSlide(e);this.positions.length=this.num,this.initSlides(!0)},resetSlides:function(){this.slidesContainer.empty(),this.unloadAllSlides(),this.slides=[]},handleClose:function(){var t=this.options;this.destroyEventListeners(),this.pause(),this.container[0].style.display="none",this.container.removeClass(t.displayClass).removeClass(t.singleClass).removeClass(t.leftEdgeClass).removeClass(t.rightEdgeClass),t.hidePageScrollbars&&(document.body.style.overflow=this.bodyOverflowStyle),this.options.clearSlides&&this.resetSlides(),this.options.onclosed&&this.options.onclosed.call(this)},close:function(){function t(i){i.target===e.container[0]&&(e.container.off(e.support.transition.end,t),e.handleClose())}var e=this;this.options.onclose&&this.options.onclose.call(this),this.support.transition&&this.options.displayTransition?(this.container.on(this.support.transition.end,t),this.container.removeClass(this.options.displayClass)):this.handleClose()},circle:function(t){return(this.num+t%this.num)%this.num},move:function(t,e,i){this.translateX(t,e,i),this.positions[t]=e},translate:function(t,e,i,s){var o=this.slides[t].style,n=this.support.transition,l=this.support.transform;o[n.name+"Duration"]=s+"ms",o[l.name]="translate("+e+"px, "+i+"px)"+(l.translateZ?" translateZ(0)":"")},translateX:function(t,e,i){this.translate(t,e,0,i)},translateY:function(t,e,i){this.translate(t,0,e,i)},animate:function(t,e,i){if(!i)return void(this.slidesContainer[0].style.left=e+"px");var s=this,o=(new Date).getTime(),n=window.setInterval(function(){var l=(new Date).getTime()-o;return l>i?(s.slidesContainer[0].style.left=e+"px",s.ontransitionend(),void window.clearInterval(n)):void(s.slidesContainer[0].style.left=(e-t)*(Math.floor(l/i*100)/100)+t+"px")},4)},preventDefault:function(t){t.preventDefault?t.preventDefault():t.returnValue=!1},stopPropagation:function(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0},onresize:function(){this.initSlides(!0)},onmousedown:function(t){t.which&&1===t.which&&"VIDEO"!==t.target.nodeName&&(t.preventDefault(),(t.originalEvent||t).touches=[{pageX:t.pageX,pageY:t.pageY}],this.ontouchstart(t))},onmousemove:function(t){this.touchStart&&((t.originalEvent||t).touches=[{pageX:t.pageX,pageY:t.pageY}],this.ontouchmove(t))},onmouseup:function(t){this.touchStart&&(this.ontouchend(t),delete this.touchStart)},onmouseout:function(e){if(this.touchStart){var i=e.target,s=e.relatedTarget;(!s||s!==i&&!t.contains(i,s))&&this.onmouseup(e)}},ontouchstart:function(t){this.options.stopTouchEventsPropagation&&this.stopPropagation(t);var e=(t.originalEvent||t).touches[0];this.touchStart={x:e.pageX,y:e.pageY,time:Date.now()},this.isScrolling=void 0,this.touchDelta={}},ontouchmove:function(t){this.options.stopTouchEventsPropagation&&this.stopPropagation(t);var e,i,s=(t.originalEvent||t).touches[0],o=(t.originalEvent||t).scale,n=this.index;if(!(s.length>1||o&&1!==o))if(this.options.disableScroll&&t.preventDefault(),this.touchDelta={x:s.pageX-this.touchStart.x,y:s.pageY-this.touchStart.y},e=this.touchDelta.x,void 0===this.isScrolling&&(this.isScrolling=this.isScrolling||Math.abs(e)<Math.abs(this.touchDelta.y)),this.isScrolling)this.options.closeOnSwipeUpOrDown&&this.translateY(n,this.touchDelta.y+this.positions[n],0);else for(t.preventDefault(),window.clearTimeout(this.timeout),this.options.continuous?i=[this.circle(n+1),n,this.circle(n-1)]:(this.touchDelta.x=e/=!n&&e>0||n===this.num-1&&0>e?Math.abs(e)/this.slideWidth+1:1,i=[n],n&&i.push(n-1),n<this.num-1&&i.unshift(n+1));i.length;)n=i.pop(),this.translateX(n,e+this.positions[n],0)},ontouchend:function(t){this.options.stopTouchEventsPropagation&&this.stopPropagation(t);var e,i,s,o,n,l=this.index,a=this.options.transitionSpeed,r=this.slideWidth,h=Number(Date.now()-this.touchStart.time)<250,d=h&&Math.abs(this.touchDelta.x)>20||Math.abs(this.touchDelta.x)>r/2,c=!l&&this.touchDelta.x>0||l===this.num-1&&this.touchDelta.x<0,u=!d&&this.options.closeOnSwipeUpOrDown&&(h&&Math.abs(this.touchDelta.y)>20||Math.abs(this.touchDelta.y)>this.slideHeight/2);this.options.continuous&&(c=!1),e=this.touchDelta.x<0?-1:1,this.isScrolling?u?this.close():this.translateY(l,0,a):d&&
214!c?(i=l+e,s=l-e,o=r*e,n=-r*e,this.options.continuous?(this.move(this.circle(i),o,0),this.move(this.circle(l-2*e),n,0)):i>=0&&i<this.num&&this.move(i,o,0),this.move(l,this.positions[l]+o,a),this.move(this.circle(s),this.positions[this.circle(s)]+o,a),l=this.circle(s),this.onslide(l)):this.options.continuous?(this.move(this.circle(l-1),-r,a),this.move(l,0,a),this.move(this.circle(l+1),r,a)):(l&&this.move(l-1,-r,a),this.move(l,0,a),l<this.num-1&&this.move(l+1,r,a))},ontouchcancel:function(t){this.touchStart&&(this.ontouchend(t),delete this.touchStart)},ontransitionend:function(t){var e=this.slides[this.index];t&&e!==t.target||(this.interval&&this.play(),this.setTimeout(this.options.onslideend,[this.index,e]))},oncomplete:function(e){var i,s=e.target||e.srcElement,o=s&&s.parentNode;s&&o&&(i=this.getNodeIndex(o),t(o).removeClass(this.options.slideLoadingClass),"error"===e.type?(t(o).addClass(this.options.slideErrorClass),this.elements[i]=3):this.elements[i]=2,s.clientHeight>this.container[0].clientHeight&&(s.style.maxHeight=this.container[0].clientHeight),this.interval&&this.slides[this.index]===o&&this.play(),this.setTimeout(this.options.onslidecomplete,[i,o]))},onload:function(t){this.oncomplete(t)},onerror:function(t){this.oncomplete(t)},onkeydown:function(t){switch(t.which||t.keyCode){case 13:this.options.toggleControlsOnReturn&&(this.preventDefault(t),this.toggleControls());break;case 27:this.options.closeOnEscape&&(this.close(),t.stopImmediatePropagation());break;case 32:this.options.toggleSlideshowOnSpace&&(this.preventDefault(t),this.toggleSlideshow());break;case 37:this.options.enableKeyboardNavigation&&(this.preventDefault(t),this.prev());break;case 39:this.options.enableKeyboardNavigation&&(this.preventDefault(t),this.next())}},handleClick:function(e){function i(e){return t(o).hasClass(e)||t(n).hasClass(e)}var s=this.options,o=e.target||e.srcElement,n=o.parentNode;i(s.toggleClass)?(this.preventDefault(e),this.toggleControls()):i(s.prevClass)?(this.preventDefault(e),this.prev()):i(s.nextClass)?(this.preventDefault(e),this.next()):i(s.closeClass)?(this.preventDefault(e),this.close()):i(s.playPauseClass)?(this.preventDefault(e),this.toggleSlideshow()):n===this.slidesContainer[0]?s.closeOnSlideClick?(this.preventDefault(e),this.close()):s.toggleControlsOnSlideClick&&(this.preventDefault(e),this.toggleControls()):n.parentNode&&n.parentNode===this.slidesContainer[0]&&s.toggleControlsOnSlideClick&&(this.preventDefault(e),this.toggleControls())},onclick:function(t){return this.options.emulateTouchEvents&&this.touchDelta&&(Math.abs(this.touchDelta.x)>20||Math.abs(this.touchDelta.y)>20)?void delete this.touchDelta:this.handleClick(t)},updateEdgeClasses:function(t){t?this.container.removeClass(this.options.leftEdgeClass):this.container.addClass(this.options.leftEdgeClass),t===this.num-1?this.container.addClass(this.options.rightEdgeClass):this.container.removeClass(this.options.rightEdgeClass)},handleSlide:function(t){this.options.continuous||this.updateEdgeClasses(t),this.loadElements(t),this.options.unloadElements&&this.unloadElements(t),this.setTitle(t)},onslide:function(t){this.index=t,this.handleSlide(t),this.setTimeout(this.options.onslide,[t,this.slides[t]])},setTitle:function(t){var e=this.slides[t].firstChild.title,i=this.titleElement;i.length&&(this.titleElement.empty(),e&&i[0].appendChild(document.createTextNode(e)))},setTimeout:function(t,e,i){var s=this;return t&&window.setTimeout(function(){t.apply(s,e||[])},i||0)},imageFactory:function(e,i){function s(e){if(!o){if(e={type:e.type,target:n},!n.parentNode)return a.setTimeout(s,[e]);o=!0,t(r).off("load error",s),d&&"load"===e.type&&(n.style.background='url("'+h+'") center no-repeat',n.style.backgroundSize=d),i(e)}}var o,n,l,a=this,r=this.imagePrototype.cloneNode(!1),h=e,d=this.options.stretchImages;return"string"!=typeof h&&(h=this.getItemProperty(e,this.options.urlProperty),l=this.getItemProperty(e,this.options.titleProperty)),d===!0&&(d="contain"),d=this.support.backgroundSize&&this.support.backgroundSize[d]&&d,d?n=this.elementPrototype.cloneNode(!1):(n=r,r.draggable=!1),l&&(n.title=l),t(r).on("load error",s),r.src=h,n},createElement:function(e,i){var s=e&&this.getItemProperty(e,this.options.typeProperty),o=s&&this[s.split("/")[0]+"Factory"]||this.imageFactory,n=e&&o.call(this,e,i),l=this.getItemProperty(e,this.options.srcsetProperty);return n||(n=this.elementPrototype.cloneNode(!1),this.setTimeout(i,[{type:"error",target:n}])),l&&n.setAttribute("srcset",l),t(n).addClass(this.options.slideContentClass),n},loadElement:function(e){this.elements[e]||(this.slides[e].firstChild?this.elements[e]=t(this.slides[e]).hasClass(this.options.slideErrorClass)?3:2:(this.elements[e]=1,t(this.slides[e]).addClass(this.options.slideLoadingClass),this.slides[e].appendChild(this.createElement(this.list[e],this.proxyListener))))},loadElements:function(t){var e,i=Math.min(this.num,2*this.options.preloadRange+1),s=t;for(e=0;i>e;e+=1)s+=e*(e%2===0?-1:1),s=this.circle(s),this.loadElement(s)},unloadElements:function(t){var e,i;for(e in this.elements)this.elements.hasOwnProperty(e)&&(i=Math.abs(t-e),i>this.options.preloadRange&&i+this.options.preloadRange<this.num&&(this.unloadSlide(e),delete this.elements[e]))},addSlide:function(t){var e=this.slidePrototype.cloneNode(!1);e.setAttribute("data-index",t),this.slidesContainer[0].appendChild(e),this.slides.push(e)},positionSlide:function(t){var e=this.slides[t];e.style.width=this.slideWidth+"px",this.support.transform&&(e.style.left=t*-this.slideWidth+"px",this.move(t,this.index>t?-this.slideWidth:this.index<t?this.slideWidth:0,0))},initSlides:function(e){var i,s;for(e||(this.positions=[],this.positions.length=this.num,this.elements={},this.imagePrototype=document.createElement("img"),this.elementPrototype=document.createElement("div"),this.slidePrototype=document.createElement("div"),t(this.slidePrototype).addClass(this.options.slideClass),this.slides=this.slidesContainer[0].children,i=this.options.clearSlides||this.slides.length!==this.num),this.slideWidth=this.container[0].offsetWidth,this.slideHeight=this.container[0].offsetHeight,this.slidesContainer[0].style.width=this.num*this.slideWidth+"px",i&&this.resetSlides(),s=0;s<this.num;s+=1)i&&this.addSlide(s),this.positionSlide(s);this.options.continuous&&this.support.transform&&(this.move(this.circle(this.index-1),-this.slideWidth,0),this.move(this.circle(this.index+1),this.slideWidth,0)),this.support.transform||(this.slidesContainer[0].style.left=this.index*-this.slideWidth+"px")},unloadSlide:function(t){var e,i;e=this.slides[t],i=e.firstChild,null!==i&&e.removeChild(i)},unloadAllSlides:function(){var t,e;for(t=0,e=this.slides.length;e>t;t++)this.unloadSlide(t)},toggleControls:function(){var t=this.options.controlsClass;this.container.hasClass(t)?this.container.removeClass(t):this.container.addClass(t)},toggleSlideshow:function(){this.interval?this.pause():this.play()},getNodeIndex:function(t){return parseInt(t.getAttribute("data-index"),10)},getNestedProperty:function(t,e){return e.replace(/\[(?:'([^']+)'|"([^"]+)"|(\d+))\]|(?:(?:^|\.)([^\.\[]+))/g,function(e,i,s,o,n){var l=n||i||s||o&&parseInt(o,10);e&&t&&(t=t[l])}),t},getDataProperty:function(e,i){if(e.getAttribute){var s=e.getAttribute("data-"+i.replace(/([A-Z])/g,"-$1").toLowerCase());if("string"==typeof s){if(/^(true|false|null|-?\d+(\.\d+)?|\{[\s\S]*\}|\[[\s\S]*\])$/.test(s))try{return t.parseJSON(s)}catch(o){}return s}}},getItemProperty:function(t,e){var i=t[e];return void 0===i&&(i=this.getDataProperty(t,e),void 0===i&&(i=this.getNestedProperty(t,e))),i},initStartIndex:function(){var t,e=this.options.index,i=this.options.urlProperty;if(e&&"number"!=typeof e)for(t=0;t<this.num;t+=1)if(this.list[t]===e||this.getItemProperty(this.list[t],i)===this.getItemProperty(e,i)){e=t;break}this.index=this.circle(parseInt(e,10)||0)},initEventListeners:function(){function e(t){var e=i.support.transition&&i.support.transition.end===t.type?"transitionend":t.type;i["on"+e](t)}var i=this,s=this.slidesContainer;t(window).on("resize",e),t(document.body).on("keydown",e),this.container.on("click",e),this.support.touch?s.on("touchstart touchmove touchend touchcancel",e):this.options.emulateTouchEvents&&this.support.transition&&s.on("mousedown mousemove mouseup mouseout",e),this.support.transition&&s.on(this.support.transition.end,e),this.proxyListener=e},destroyEventListeners:function(){var e=this.slidesContainer,i=this.proxyListener;t(window).off("resize",i),t(document.body).off("keydown",i),this.container.off("click",i),this.support.touch?e.off("touchstart touchmove touchend touchcancel",i):this.options.emulateTouchEvents&&this.support.transition&&e.off("mousedown mousemove mouseup mouseout",i),this.support.transition&&e.off(this.support.transition.end,i)},handleOpen:function(){this.options.onopened&&this.options.onopened.call(this)},initWidget:function(){function e(t){t.target===i.container[0]&&(i.container.off(i.support.transition.end,e),i.handleOpen())}var i=this;return this.container=t(this.options.container),this.container.length?(this.slidesContainer=this.container.find(this.options.slidesContainer).first(),this.slidesContainer.length?(this.titleElement=this.container.find(this.options.titleElement).first(),1===this.num&&this.container.addClass(this.options.singleClass),this.options.onopen&&this.options.onopen.call(this),this.support.transition&&this.options.displayTransition?this.container.on(this.support.transition.end,e):this.handleOpen(),this.options.hidePageScrollbars&&(this.bodyOverflowStyle=document.body.style.overflow,document.body.style.overflow="hidden"),this.container[0].style.display="block",this.initSlides(),void this.container.addClass(this.options.displayClass)):(this.console.log("blueimp Gallery: Slides container not found.",this.options.slidesContainer),!1)):(this.console.log("blueimp Gallery: Widget container not found.",this.options.container),!1)},initOptions:function(e){this.options=t.extend({},this.options),(e&&e.carousel||this.options.carousel&&(!e||e.carousel!==!1))&&t.extend(this.options,this.carouselOptions),t.extend(this.options,e),this.num<3&&(this.options.continuous=this.options.continuous?null:!1),this.support.transition||(this.options.emulateTouchEvents=!1),this.options.event&&this.preventDefault(this.options.event)}}),e}),function(t){"use strict";"function"==typeof define&&define.amd?define(["./blueimp-helper","./blueimp-gallery"],t):t(window.blueimp.helper||window.jQuery,window.blueimp.Gallery)}(function(t,e){"use strict";t.extend(e.prototype.options,{fullScreen:!1});var i=e.prototype.initialize,s=e.prototype.close;return t.extend(e.prototype,{getFullScreenElement:function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement},requestFullScreen:function(t){t.requestFullscreen?t.requestFullscreen():t.webkitRequestFullscreen?t.webkitRequestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.msRequestFullscreen&&t.msRequestFullscreen()},exitFullScreen:function(){document.exitFullscreen?document.exitFullscreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen()},initialize:function(){i.call(this),this.options.fullScreen&&!this.getFullScreenElement()&&this.requestFullScreen(this.container[0])},close:function(){this.getFullScreenElement()===this.container[0]&&this.exitFullScreen(),s.call(this)}}),e}),function(t){"use strict";"function"==typeof define&&define.amd?define(["./blueimp-helper","./blueimp-gallery"],t):t(window.blueimp.helper||window.jQuery,window.blueimp.Gallery)}(function(t,e){"use strict";t.extend(e.prototype.options,{indicatorContainer:"ol",activeIndicatorClass:"active",thumbnailProperty:"thumbnail",thumbnailIndicators:!0});var i=e.prototype.initSlides,s=e.prototype.addSlide,o=e.prototype.resetSlides,n=e.prototype.handleClick,l=e.prototype.handleSlide,a=e.prototype.handleClose;return t.extend(e.prototype,{createIndicator:function(e){var i,s,o=this.indicatorPrototype.cloneNode(!1),n=this.getItemProperty(e,this.options.titleProperty),l=this.options.thumbnailProperty;return this.options.thumbnailIndicators&&(l&&(i=this.getItemProperty(e,l)),void 0===i&&(s=e.getElementsByTagName&&t(e).find("img")[0],s&&(i=s.src
214)),i&&(o.style.backgroundImage='url("'+i+'")')),n&&(o.title=n),o},addIndicator:function(t){if(this.indicatorContainer.length){var e=this.createIndicator(this.list[t]);e.setAttribute("data-index",t),this.indicatorContainer[0].appendChild(e),this.indicators.push(e)}},setActiveIndicator:function(e){this.indicators&&(this.activeIndicator&&this.activeIndicator.removeClass(this.options.activeIndicatorClass),this.activeIndicator=t(this.indicators[e]),this.activeIndicator.addClass(this.options.activeIndicatorClass))},initSlides:function(t){t||(this.indicatorContainer=this.container.find(this.options.indicatorContainer),this.indicatorContainer.length&&(this.indicatorPrototype=document.createElement("li"),this.indicators=this.indicatorContainer[0].children)),i.call(this,t)},addSlide:function(t){s.call(this,t),this.addIndicator(t)},resetSlides:function(){o.call(this),this.indicatorContainer.empty(),this.indicators=[]},handleClick:function(t){var e=t.target||t.srcElement,i=e.parentNode;if(i===this.indicatorContainer[0])this.preventDefault(t),this.slide(this.getNodeIndex(e));else{if(i.parentNode!==this.indicatorContainer[0])return n.call(this,t);this.preventDefault(t),this.slide(this.getNodeIndex(i))}},handleSlide:function(t){l.call(this,t),this.setActiveIndicator(t)},handleClose:function(){this.activeIndicator&&this.activeIndicator.removeClass(this.options.activeIndicatorClass),a.call(this)}}),e}),function(t){"use strict";"function"==typeof define&&define.amd?define(["./blueimp-helper","./blueimp-gallery"],t):t(window.blueimp.helper||window.jQuery,window.blueimp.Gallery)}(function(t,e){"use strict";t.extend(e.prototype.options,{videoContentClass:"video-content",videoLoadingClass:"video-loading",videoPlayingClass:"video-playing",videoPosterProperty:"poster",videoSourcesProperty:"sources"});var i=e.prototype.handleSlide;return t.extend(e.prototype,{handleSlide:function(t){i.call(this,t),this.playingVideo&&this.playingVideo.pause()},videoFactory:function(e,i,s){var o,n,l,a,r,h=this,d=this.options,c=this.elementPrototype.cloneNode(!1),u=t(c),p=[{type:"error",target:c}],y=s||document.createElement("video"),m=this.getItemProperty(e,d.urlProperty),f=this.getItemProperty(e,d.typeProperty),g=this.getItemProperty(e,d.titleProperty),v=this.getItemProperty(e,d.videoPosterProperty),C=this.getItemProperty(e,d.videoSourcesProperty);if(u.addClass(d.videoContentClass),g&&(c.title=g),y.canPlayType)if(m&&f&&y.canPlayType(f))y.src=m;else for(;C&&C.length;)if(n=C.shift(),m=this.getItemProperty(n,d.urlProperty),f=this.getItemProperty(n,d.typeProperty),m&&f&&y.canPlayType(f)){y.src=m;break}return v&&(y.poster=v,o=this.imagePrototype.cloneNode(!1),t(o).addClass(d.toggleClass),o.src=v,o.draggable=!1,c.appendChild(o)),l=document.createElement("a"),l.setAttribute("target","_blank"),s||l.setAttribute("download",g),l.href=m,y.src&&(y.controls=!0,(s||t(y)).on("error",function(){h.setTimeout(i,p)}).on("pause",function(){a=!1,u.removeClass(h.options.videoLoadingClass).removeClass(h.options.videoPlayingClass),r&&h.container.addClass(h.options.controlsClass),delete h.playingVideo,h.interval&&h.play()}).on("playing",function(){a=!1,u.removeClass(h.options.videoLoadingClass).addClass(h.options.videoPlayingClass),h.container.hasClass(h.options.controlsClass)?(r=!0,h.container.removeClass(h.options.controlsClass)):r=!1}).on("play",function(){window.clearTimeout(h.timeout),a=!0,u.addClass(h.options.videoLoadingClass),h.playingVideo=y}),t(l).on("click",function(t){h.preventDefault(t),a?y.pause():y.play()}),c.appendChild(s&&s.element||y)),c.appendChild(l),this.setTimeout(i,[{type:"load",target:c}]),c}}),e}),function(t){"use strict";"function"==typeof define&&define.amd?define(["./blueimp-helper","./blueimp-gallery-video"],t):t(window.blueimp.helper||window.jQuery,window.blueimp.Gallery)}(function(t,e){"use strict";if(!window.postMessage)return e;t.extend(e.prototype.options,{vimeoVideoIdProperty:"vimeo",vimeoPlayerUrl:"//player.vimeo.com/video/VIDEO_ID?api=1&player_id=PLAYER_ID",vimeoPlayerIdPrefix:"vimeo-player-",vimeoClickToPlay:!0});var i=e.prototype.textFactory||e.prototype.imageFactory,s=function(t,e,
214i,s){this.url=t,this.videoId=e,this.playerId=i,this.clickToPlay=s,this.element=document.createElement("div"),this.listeners={}},o=0;return t.extend(s.prototype,{canPlayType:function(){return!0},on:function(t,e){return this.listeners[t]=e,this},loadAPI:function(){function e(){!s&&o.playOnReady&&o.play(),s=!0}for(var i,s,o=this,n="//f.vimeocdn.com/js/froogaloop2.min.js",l=document.getElementsByTagName("script"),a=l.length;a;)if(a-=1,l[a].src===n){i=l[a];break}i||(i=document.createElement("script"),i.src=n),t(i).on("load",e),l[0].parentNode.insertBefore(i,l[0]),/loaded|complete/.test(i.readyState)&&e()},onReady:function(){var t=this;this.ready=!0,this.player.addEvent("play",function(){t.hasPlayed=!0,t.onPlaying()}),this.player.addEvent("pause",function(){t.onPause()}),this.player.addEvent("finish",function(){t.onPause()}),this.playOnReady&&this.play()},onPlaying:function(){this.playStatus<2&&(this.listeners.playing(),this.playStatus=2)},onPause:function(){this.listeners.pause(),delete this.playStatus},insertIframe:function(){var t=document.createElement("iframe");t.src=this.url.replace("VIDEO_ID",this.videoId).replace("PLAYER_ID",this.playerId),t.id=this.playerId,this.element.parentNode.replaceChild(t,this.element),this.element=t},play:function(){var t=this;this.playStatus||(this.listeners.play(),this.playStatus=1),this.ready?!this.hasPlayed&&(this.clickToPlay||window.navigator&&/iP(hone|od|ad)/.test(window.navigator.platform))?this.onPlaying():this.player.api("play"):(this.playOnReady=!0,window.$f?this.player||(this.insertIframe(),this.player=$f(this.element),this.player.addEvent("ready",function(){t.onReady()})):this.loadAPI())},pause:function(){this.ready?this.player.api("pause"):this.playStatus&&(delete this.playOnReady,this.listeners.pause(),delete this.playStatus)}}),t.extend(e.prototype,{VimeoPlayer:s,textFactory:function(t,e){var n=this.options,l=this.getItemProperty(t,n.vimeoVideoIdProperty);return l?(void 0===this.getItemProperty(t,n.urlProperty)&&(t[n.urlProperty]="//vimeo.com/"+l),o+=1,this.videoFactory(t,e,new s(n.vimeoPlayerUrl,l,n.vimeoPlayerIdPrefix+o,n.vimeoClickToPlay))):i.call(this,t,e)}}),e}),function(t){"use strict";"function"==typeof define&&define.amd?define(["./blueimp-helper","./blueimp-gallery-video"],t):t(window.blueimp.helper||window.jQuery,window.blueimp.Gallery)}(function(t,e){"use strict";if(!window.postMessage)return e;t.extend(e.prototype.options,{youTubeVideoIdProperty:"youtube",youTubePlayerVars:{wmode:"transparent"},youTubeClickToPlay:!0});var i=e.prototype.textFactory||e.prototype.imageFactory,s=function(t,e,i){this.videoId=t,this.playerVars=e,this.clickToPlay=i,this.element=document.createElement("div"),this.listeners={}};return t.extend(s.prototype,{canPlayType:function(){return!0},on:function(t,e){return this.listeners[t]=e,this},loadAPI:function(){var t,e=this,i=window.onYouTubeIframeAPIReady,s="//www.youtube.com/iframe_api",o=document.getElementsByTagName("script"),n=o.length;for(window.onYouTubeIframeAPIReady=function(){i&&i.apply(this),e.playOnReady&&e.play()};n;)if(n-=1,o[n].src===s)return;t=document.createElement("script"),t.src=s,o[0].parentNode.insertBefore(t,o[0])},onReady:function(){this.ready=!0,this.playOnReady&&this.play()},onPlaying:function(){this.playStatus<2&&(this.listeners.playing(),this.playStatus=2)},onPause:function(){e.prototype.setTimeout.call(this,this.checkSeek,null,2e3)},checkSeek:function(){(this.stateChange===YT.PlayerState.PAUSED||this.stateChange===YT.PlayerState.ENDED)&&(this.listeners.pause(),delete this.playStatus)},onStateChange:function(t){switch(t.data){case YT.PlayerState.PLAYING:this.hasPlayed=!0,this.onPlaying();break;case YT.PlayerState.PAUSED:case YT.PlayerState.ENDED:this.onPause()}this.stateChange=t.data},onError:function(t){this.listeners.error(t)},play:function(){var t=this;this.playStatus||(this.listeners.play(),this.playStatus=1),this.ready?!this.hasPlayed&&(this.clickToPlay||window.navigator&&/iP(hone|od|ad)/.test(window.navigator.platform))?this.onPlaying():this.player.playVideo():(this.playOnReady=!0,window.YT&&YT.Player?this.player||(this.player=new YT.Player(this.element,{videoId:this.videoId,playerVars:this.playerVars,events:{onReady:function(){t.onReady()},onStateChange:function(e){t.onStateChange(e)},onError:function(e){t.onError(e)}}})):this.loadAPI())},pause:function(){this.ready?this.player.pauseVideo():this.playStatus&&(delete this.playOnReady,this.listeners.pause(),delete this.playStatus)}}),t.extend(e.prototype,{YouTubePlayer:s,textFactory:function(t,e){var o=this.options,n=this.getItemProperty(t,o.youTubeVideoIdProperty);return n?(void 0===this.getItemProperty(t,o.urlProperty)&&(t[o.urlProperty]="//www.youtube.com/watch?v="+n),void 0===this.getItemProperty(t,o.videoPosterProperty)&&(t[o.videoPosterProperty]="//img.youtube.com/vi/"+n+"/maxresdefault.jpg"),this.videoFactory(t,e,new s(n,o.youTubePlayerVars,o.youTubeClickToPlay))):i.call(this,t,e)}}),e}),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./blueimp-gallery"],t):t(window.jQuery,window.blueimp.Gallery)}(function(t,e){"use strict";t(document).on("click","[data-gallery]",function(i){var s=t(this).data("gallery"),o=t(s),n=o.length&&o||t(e.prototype.options.container),l={onopen:function(){n.data("gallery",this).trigger("open")},onopened:function(){n.trigger("opened")},onslide:function(){n.trigger("slide",arguments)},onslideend:function(){n.trigger("slideend",arguments)},onslidecomplete:function(){n.trigger("slidecomplete",arguments)},onclose:function(){n.trigger("close")},onclosed:function(){n.trigger("closed").removeData("gallery")}},a=t.extend(n.data(),{container:n[0],index:this,event:i},l),r=t('[data-gallery="'+s+'"]');return a.filter&&(r=r.filter(a.filter)),new e(r,a)})});
215/* End */
216;
217; /* Start:"a:4:{s:4:"full";s:69:"/bitrix/templates/concept_hameleon/slick/slick.min.js?175734080742863";s:6:"source";s:53:"/bitrix/templates/concept_hameleon/slick/slick.min.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
218!function(i){"use strict";"function"==typeof define&&define.amd?define(["jquery"],i):"undefined"!=typeof exports?module.exports=i(require("jquery")):i(jQuery)}(function(i){"use strict";var e=window.Slick||{};(e=function(){var e=0;return function(t,o){var s,n=this;n.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:i(t),appendDots:i(t),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(e,t){return i('<button type="button" />').text(t+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},n.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,
vendor: 6,594 bytes, line 218
218sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},i.extend(n,n.initials),n.activeBreakpoint=null,n.animType=null,n.animProp=null,n.breakpoints=[],n.breakpointSettings=[],n.cssTransitions=!1,n.focussed=!1,n.interrupted=!1,n.hidden="hidden",n.paused=!0,n.positionProp=null,n.respondTo=null,n.rowCount=1,n.shouldClick=!0,n.$slider=i(t),n.$slidesCache=null,n.transformType=null,n.transitionType=null,n.visibilityChange="visibilitychange",n.windowWidth=0,n.windowTimer=null,s=i(t).data("slick")||{},n.options=i.extend({},n.defaults,o,s),n.currentSlide=n.options.initialSlide,n.originalSettings=n.options,void 0!==document.mozHidden?(n.hidden="mozHidden",n.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(n.hidden="webkitHidden",n.visibilityChange="webkitvisibilitychange"),n.autoPlay=i.proxy(n.autoPlay,n),n.autoPlayClear=i.proxy(n.autoPlayClear,n),n.autoPlayIterator=i.proxy(n.autoPlayIterator,n),n.changeSlide=i.proxy(n.changeSlide,n),n.clickHandler=i.proxy(n.clickHandler,n),n.selectHandler=i.proxy(n.selectHandler,n),n.setPosition=i.proxy(n.setPosition,n),n.swipeHandler=i.proxy(n.swipeHandler,n),n.dragHandler=i.proxy(n.dragHandler,n),n.keyHandler=i.proxy(n.keyHandler,n),n.instanceUid=e++,n.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,n.registerBreakpoints(),n.init(!0)}}()).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},e.prototype.addSlide=e.prototype.slickAdd=function(e,t,o){var s=this;if("boolean"==typeof t)o=t,t=null;else if(t<0||t>=s.slideCount)return!1;s.unload(),"number"==typeof t?0===t&&0===s.$slides.length?i(e).appendTo(s.$slideTrack):o?i(e).insertBefore(s.$slides.eq(t)):i(e).insertAfter(s.$slides.eq(t)):!0===o?i(e).prependTo(s.$slideTrack):i(e).appendTo(s.$slideTrack),s.$slides=s.$slideTrack.children(this.options.slide),s.$slideTrack.children(this.options.slide).detach(),s.$slideTrack.append(s.$slides),s.$slides.each(function(e,t){i(t).attr("data-slick-index",e)}),s.$slidesCache=s.$slides,s.reinit()},e.prototype.animateHeight=function(){var i=this;if(1===i.options.slidesToShow&&!0===i.options.adaptiveHeight&&!1===i.options.vertical){var e=i.$slides.eq(i.currentSlide).outerHeight(!0);i.$list.animate({height:e},i.options.speed)}},e.prototype.animateSlide=function(e,t){var o={},s=this;s.animateHeight(),!0===s.options.rtl&&!1===s.options.vertical&&(e=-e),!1===s.transformsEnabled?!1===s.options.vertical?s.$slideTrack.animate({left:e},s.options.speed,s.options.easing,t):s.$slideTrack.animate({top:e},s.options.speed,s.options.easing,t):!1===s.cssTransitions?(!0===s.options.rtl&&(s.currentLeft=-s.currentLeft),i({animStart:s.currentLeft}).animate({animStart:e},{duration:s.options.speed,easing:s.options.easing,step:function(i){i=Math.ceil(i),!1===s.options.vertical?(o[s.animType]="translate("+i+"px, 0px)",s.$slideTrack.css(o)):(o[s.animType]="translate(0px,"+i+"px)",s.$slideTrack.css(o))},complete:function(){t&&t.call()}})):(s.applyTransition(),e=Math.ceil(e),!1===s.options.vertical?o[s.animType]="translate3d("+e+"px, 0px, 0px)":o[s.animType]="translate3d(0px,"+e+"px, 0px)",s.$slideTrack.css(o),t&&setTimeout(function(){s.disableTransition(),t.call()},s.options.speed))},e.prototype.getNavTarget=function(){var e=this,t=e.options.asNavFor;return t&&null!==t&&(t=i(t).not(e.$slider)),t},e.prototype.asNavFor=function(e){var t=this.getNavTarget();null!==t&&"object"==typeof t&&t.each(function(){var t=i(this).slick("getSlick");t.unslicked||t.slideHandler(e,!0)})},e.prototype.applyTransition=function(i){var e=this,t={};!1===e.options.fade?t[e.transitionType]=e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:t[e.transitionType]="opacity "+e.options.speed+"ms "+e.options.cssEase,!1===e.options.fade?e.$slideTrack.css(t):e.$slides.eq(i).css(t)},e.prototype.autoPlay=function(){var i=this;i.autoPlayClear(),i.slideCount>i.options.slidesToShow&&(i.autoPlayTimer=setInterval(i.autoPlayIterator,i.options.autoplaySpeed))},e.prototype.autoPlayClear=function(){var i=this;i.autoPlayTimer&&clearInterval(i.autoPlayTimer)},e.prototype.autoPlayIterator=function(){var i=this,e=i.currentSlide+i.options.slidesToScroll;i.paused||i.interrupted||i.focussed||(!1===i.options.infinite&&(1===i.direction&&i.currentSlide+1===i.slideCount-1?i.direction=0:0===i.direction&&(e=i.currentSlide-i.options.slidesToScroll,i.currentSlide-1==0&&(i.direction=1))),i.slideHandler(e))},e.prototype.buildArrows=function(){var e=this;!0===e.options.arrows&&(e.$prevArrow=i(e.options.prevArrow).addClass("slick-arrow"),e.$nextArrow=i(e.options.nextArrow).addClass("slick-arrow"),e.slideCount>e.options.slidesToShow?(e.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.prependTo(e.options.appendArrows),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.appendTo(e.options.appendArrows),!0!==e.options.infinite&&e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):e.$prevArrow.add(e.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},e.prototype.buildDots=function(){var e,t,o=this;if(!0===o.options.dots){for(o.$slider.addClass("slick-dotted"),t=i("<ul />").addClass(o.options.dotsClass),e=0;e<=o.getDotCount();e+=1)t.append(i("<li />").append(o.options.customPaging.call(this,o,e)));o.$dots=t.appendTo(o.options.appendDots),o.$dots.find("li").first().addClass("slick-active")}},e.prototype.buildOut=function(){var e=this;e.$slides=e.$slider.children(e.options.slide+":not(.slick-cloned)").addClass("slick-slide"),e.slideCount=e.$slides.length,e.$slides.each(function(e,t){i(t).attr("data-slick-index",e).data("originalStyling",i(t).attr("style")||"")}),e.$slider.addClass("slick-slider"),e.$slideTrack=0===e.slideCount?i('<div class="slick-track"/>').appendTo(e.$slider):e.$slides.wrapAll('<div class="slick-track"/>').parent(),e.$list=e.$slideTrack.wrap('<div class="slick-list"/>').parent(),e.$slideTrack.css("opacity",0),!0!==e.options.centerMode&&!0!==e.options.swipeToSlide||(e.options.slidesToScroll=1),i("img[data-lazy]",e.$slider).not("[src]").addClass("slick-loading"),e.setupInfinite(),e.buildArrows(),e.buildDots(),e.updateDots(),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),!0===e.options.draggable&&e.$list.addClass("draggable")},e.prototype.buildRows=function(){var i,e,t,o,s,n,r,l=this;if(o=document.createDocumentFragment(),n=l.$slider.children(),l.o
vendor: 3,442 bytes, line 218
218ptions.rows>1){for(r=l.options.slidesPerRow*l.options.rows,s=Math.ceil(n.length/r),i=0;i<s;i++){var d=document.createElement("div");for(e=0;e<l.options.rows;e++){var a=document.createElement("div");for(t=0;t<l.options.slidesPerRow;t++){var c=i*r+(e*l.options.slidesPerRow+t);n.get(c)&&a.appendChild(n.get(c))}d.appendChild(a)}o.appendChild(d)}l.$slider.empty().append(o),l.$slider.children().children().children().css({width:100/l.options.slidesPerRow+"%",display:"inline-block"})}},e.prototype.checkResponsive=function(e,t){var o,s,n,r=this,l=!1,d=r.$slider.width(),a=window.innerWidth||i(window).width();if("window"===r.respondTo?n=a:"slider"===r.respondTo?n=d:"min"===r.respondTo&&(n=Math.min(a,d)),r.options.responsive&&r.options.responsive.length&&null!==r.options.responsive){s=null;for(o in r.breakpoints)r.breakpoints.hasOwnProperty(o)&&(!1===r.originalSettings.mobileFirst?n<r.breakpoints[o]&&(s=r.breakpoints[o]):n>r.breakpoints[o]&&(s=r.breakpoints[o]));null!==s?null!==r.activeBreakpoint?(s!==r.activeBreakpoint||t)&&(r.activeBreakpoint=s,"unslick"===r.breakpointSettings[s]?r.unslick(s):(r.options=i.extend({},r.originalSettings,r.breakpointSettings[s]),!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),l=s):(r.activeBreakpoint=s,"unslick"===r.breakpointSettings[s]?r.unslick(s):(r.options=i.extend({},r.originalSettings,r.breakpointSettings[s]),!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),l=s):null!==r.activeBreakpoint&&(r.activeBreakpoint=null,r.options=r.originalSettings,!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e),l=s),e||!1===l||r.$slider.trigger("breakpoint",[r,l])}},e.prototype.changeSlide=function(e,t){var o,s,n,r=this,l=i(e.currentTarget);switch(l.is("a")&&e.preventDefault(),l.is("li")||(l=l.closest("li")),n=r.slideCount%r.options.slidesToScroll!=0,o=n?0:(r.slideCount-r.currentSlide)%r.options.slidesToScroll,e.data.message){case"previous":s=0===o?r.options.slidesToScroll:r.options.slidesToShow-o,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide-s,!1,t);break;case"next":s=0===o?r.options.slidesToScroll:o,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide+s,!1,t);break;case"index":var d=0===e.data.index?0:e.data.index||l.index()*r.options.slidesToScroll;r.slideHandler(r.checkNavigable(d),!1,t),l.children().trigger("focus");break;default:return}},e.prototype.checkNavigable=function(i){var e,t;if(e=this.getNavigableIndexes(),t=0,i>e[e.length-1])i=e[e.length-1];else for(var o in e){if(i<e[o]){i=t;break}t=e[o]}return i},e.prototype.cleanUpEvents=function(){var e=this;e.options.dots&&null!==e.$dots&&(i("li",e.$dots).off("click.slick",e.changeSlide).off("mouseenter.slick",i.proxy(e.interrupt,e,!0)).off("mouseleave.slick",i.proxy(e.interrupt,e,!1)),!0===e.options.accessibility&&e.$dots.off("keydown.slick",e.keyHandler)),e.$slider.off("focus.slick blur.slick"),!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow&&e.$prevArrow.off("click.slick",e.changeSlide),e.$nextArrow&&e.$nextArrow.off("click.slick",e.changeSlide),!0===e.options.accessibility&&(e.$prevArrow&&e.$prevArrow.off("keydown.slick",e.keyHandler),e.$nextArrow&&e.$nextArrow.off("keydown.slick",e.keyHandler))),e.$list.off("touchstart.slick mousedown.slick",e.swipeHandler),e.$list.off("touchmove.slick mousemove.slick",e.swipeHandler),e.$list.off("touchend.slick mouseup.slick",e.swipeHandler),e.$list.off("touchcancel.slick mouseleave.
218slick",e.swipeHandler),e.$list.off("click.slick",e.clickHandler),i(document).off(e.visibilityChange,e.visibility),e.cleanUpSlideEvents(),!0===e.options.accessibility&&e.$list.off("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&i(e.$slideTrack).children().off("click.slick",e.selectHandler),i(window).off("orientationchange.slick.slick-"+e.instanceUid,e.orientationChange),i(window).off("resize.slick.slick-"+e.instanceUid,e.resize),i("[draggable!=true]",e.$slideTrack).off("dragstart",e.preventDefault),i(window).off("load.slick.slick-"+e.instanceUid,e.setPosition)},e.prototype.cleanUpSlideEvents=function(){var e=this;e.$list.off("mouseenter.slick",i.proxy(e.interrupt,e,!0)),e.$list.off("mouseleave.slick",i.proxy(e.interrupt,e,!1))},e.prototype.cleanUpRows=function(){var i,e=this;e.options.rows>1&&((i=e.$slides.children().children()).removeAttr("style"),e.$slider.empty().append(i))},e.prototype.clickHandler=function(i){!1===this.shouldClick&&(i.stopImmediatePropagation(),i.stopPropagation(),i.preventDefault())},e.prototype.destroy=function(e){var t=this;t.autoPlayClear(),t.touchObject={},t.cleanUpEvents(),i(".slick-cloned",t.$slider).detach(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.$prevArrow.length&&(t.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove()),t.$nextArrow&&t.$nextArrow.length&&(t.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove()),t.$slides&&(t.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){i(this).attr("style",i(this).data("originalStyling"))}),t.$slideTrack.children(this.options.slide).detach(),t.$slideTrack.detach(),t.$list.detach(),t.$slider.append(t.$slides)),t.cleanUpRows(),t.$slider.removeClass("slick-slider"),t.$slider.removeClass("slick-initialized"),t.$slider.removeClass("slick-dotted"),t.unslicked=!0,e||t.$slider.trigger("destroy",[t])},e.prototype.disableTransition=function(i){var e=this,t={};t[e.transitionType]="",!1===e.options.fade?e.$slideTrack.css(t):e.$slides.eq(i).css(t)},e.prototype.fadeSlide=function(i,e){var t=this;!1===t.cssTransitions?(t.$slides.eq(i).css({zIndex:t.options.zIndex}),t.$slides.eq(i).animate({opacity:1},t.options.speed,t.options.easing,e)):(t.applyTransition(i),t.$slides.eq(i).css({opacity:1,zIndex:t.options.zIndex}),e&&setTimeout(function(){t.disableTransition(i),e.call()},t.options.speed))},e.prototype.fadeSlideOut=function(i){var e=this;!1===e.cssTransitions?e.$slides.eq(i).animate({opacity:0,zIndex:e.options.zIndex-2},e.options.speed,e.options.easing):(e.applyTransition(i),e.$slides.eq(i).css({opacity:0,zIndex:e.options.zIndex-2}))},e.prototype.filterSlides=e.prototype.slickFilter=function(i){var e=this;null!==i&&(e.$slidesCache=e.$slides,e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.filter(i).appendTo(e.$slideTrack),e.reinit())},e.prototype.focusHandler=function(){var e=this;e.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*",function(t){t.stopImmediatePropagation();var o=i(this);setTimeout(function(){e.options.pauseOnFocus&&(e.focussed=o.is(":focus"),e.autoPlay())},0)})},e.prototype.getCurrent=e.prototype.slickCurrentSlide=function(){return this.currentSlide},e.prototype.getDotCount=function(){var i=this,e=0,t=0,o=0;if(!0===i.options.infinite)if(i.slideCount<=i.options.slidesToShow)++o;else for(;e<i.slideCount;)++o,e=t+i.options.slidesToScroll,t+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;else if(!0===i.options.centerMode)o=i.slideCount;else if(i.options.asNavFor)for(;e<i.slideCount;)++o,e=t+i.options.slidesToScroll,t+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;else o=1+Math.ceil((i.slideCount-i.options.slidesToShow)/i.options.slidesToScroll);return o-1},e.prototype.getLeft=function(i){var e,t,o,s,n=this,r=0;return n.slideOffset=0,t=n.$slides.first().outerHeight(!0),!0===n.options.infinite?(n.slideCount>n.options.slidesToShow&&(n.slideOffset=n.slideWidth*n.options.slidesToShow*-1,s=-1,!0===n.options.vertical&&!0===n.options.centerMode&&(2===n.options.slidesToShow?s=-1.5:1===n.options.slidesToShow&&(s=-2)),r=t*n.options.slidesToShow*s),n.slideCount%n.options.slidesToScroll!=0&&i+n.options.slidesToScroll>n.slideCount&&n.slideCount>n.options.slidesToShow&&(i>n.slideCount?(n.slideOffset=(n.options.slidesToShow-(i-n.slideCount))*n.slideWidth*-1,r=(n.options.slidesToShow-(i-n.slideCount))*t*-1):(n.slideOffset=n.slideCount%n.options.slidesToScroll*n.slideWidth*-1,r=n.slideCount%n.options.slidesToScroll*t*-1))):i+n.options.slidesToShow>n.slideCount&&(n.slideOffset=(i+n.options.slidesToShow-n.slideCount)*n.slideWidth,r=(i+n.options.slidesToShow-n.slideCount)*t),n.slideCount<=n.options.slidesToShow&&(n.slideOffset=0,r=0),!0===n.options.centerMode&&n.slideCount<=n.options.slidesToShow?n.slideOffset=n.slideWidth*Math.floor(n.options.slidesToShow)/2-n.slideWidth*n.slideCount/2:!0===n.options.centerMode&&!0===n.options.infinite?n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)-n.slideWidth:!0===n.options.centerMode&&(n.slideOffset=0,n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)),e=!1===n.options.vertical?i*n.slideWidth*-1+n.slideOffset:i*t*-1+r,!0===n.options.variableWidth&&(o=n.slideCount<=n.options.slidesToShow||!1===n.options.infinite?n.$slideTrack.children(".slick-slide").eq(i):n.$slideTrack.children(".slick-slide").eq(i+n.options.slidesToShow),e=!0===n.options.rtl?o[0]?-1*(n.$slideTrack.width()-o[0].offsetLeft-o.width()):0:o[0]?-1*o[0].offsetLeft:0,!0===n.options.centerMode&&(o=n.slideCount<=n.options.slidesToShow||!1===n.options.infinite?n.$slideTrack.children(".slick-slide").eq(i):n.$slideTrack.children(".slick-slide").eq(i+n.options.slidesToShow+1),e=!0===n.options.rtl?o[0]?-1*(n.$slideTrack.width()-o[0].offsetLeft-o.width()):0:o[0]?-1*o[0].offsetLeft:0,e+=(n.$list.width()-o.outerWidth())/2)),e},e.prototype.getOption=e.prototype.slickGetOption=function(i){return this.options[i]},e.prototype.getNavigableIndexes=function(){var i,e=this,t=0,o=0,s=[];for(!1===e.options.infinite?i=e.slideCount:(t=-1*e.options.slidesToScroll,o=-1*e.options.slidesToScroll,i=2*e.slideCount);t<i;)s.push(t),t=o+e.options.slidesToScroll,o+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return s},e.prototype.getSlick=function(){return this},e.prototype.getSlideCount=function(){var e,t,o=this;return t=!0===o.options.centerMode?o.slideWidth*Math.floor(o.options.slidesToShow/2):0,!0===o.options.swipeToSlide?(o.$slideTrack.find(".slick-slide").each(function(s,n){if(n.offsetLeft-t+i(n).outerWidth()/2>-1*o.swipeLeft)return e=n,!1}),Math.abs(i(e).attr("data-slick-index")-o.currentSlide)||1):o.options.slidesToScroll},e.prototype.goTo=e.prototype.slickGoTo=function(i,e){this.changeSlide({data:{message:"index",index:
218parseInt(i)}},e)},e.prototype.init=function(e){var t=this;i(t.$slider).hasClass("slick-initialized")||(i(t.$slider).addClass("slick-initialized"),t.buildRows(),t.buildOut(),t.setProps(),t.startLoad(),t.loadSlider(),t.initializeEvents(),t.updateArrows(),t.updateDots(),t.checkResponsive(!0),t.focusHandler()),e&&t.$slider.trigger("init",[t]),!0===t.options.accessibility&&t.initADA(),t.options.autoplay&&(t.paused=!1,t.autoPlay())},e.prototype.initADA=function(){var e=this,t=Math.ceil(e.slideCount/e.options.slidesToShow),o=e.getNavigableIndexes().filter(function(i){return i>=0&&i<e.slideCount});e.$slides.add(e.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==e.$dots&&(e.$slides.not(e.$slideTrack.find(".slick-cloned")).each(function(t){var s=o.indexOf(t);i(this).attr({role:"tabpanel",id:"slick-slide"+e.instanceUid+t,tabindex:-1}),-1!==s&&i(this).attr({"aria-describedby":"slick-slide-control"+e.instanceUid+s})}),e.$dots.attr("role","tablist").find("li").each(function(s){var n=o[s];i(this).attr({role:"presentation"}),i(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+e.instanceUid+s,"aria-controls":"slick-slide"+e.instanceUid+n,"aria-label":s+1+" of "+t,"aria-selected":null,tabindex:"-1"})}).eq(e.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var s=e.currentSlide,n=s+e.options.slidesToShow;s<n;s++)e.$slides.eq(s).attr("tabindex",0);e.activateADA()},e.prototype.initArrowEvents=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},i.changeSlide),i.$nextArrow.off("click.slick").on("click.slick",{message:"next"},i.changeSlide),!0===i.options.accessibility&&(i.$prevArrow.on("keydown.slick",i.keyHandler),i.$nextArrow.on("keydown.slick",i.keyHandler)))},e.prototype.initDotEvents=function(){var e=this;!0===e.options.dots&&(i("li",e.$dots).on("click.slick",{message:"index"},e.changeSlide),!0===e.options.accessibility&&e.$dots.on("keydown.slick",e.keyHandler)),!0===e.options.dots&&!0===e.options.pauseOnDotsHover&&i("li",e.$dots).on("mouseenter.slick",i.proxy(e.interrupt,e,!0)).on("mouseleave.slick",i.proxy(e.interrupt,e,!1))},e.prototype.initSlideEvents=function(){var e=this;e.options.pauseOnHover&&(e.$list.on("mouseenter.slick",i.proxy(e.interrupt,e,!0)),e.$list.on("mouseleave.slick",i.proxy(e.interrupt,e,!1)))},e.prototype.initializeEvents=function(){var e=this;e.initArrowEvents(),e.initDotEvents(),e.initSlideEvents(),e.$list.on("touchstart.slick mousedown.slick",{action:"start"},e.swipeHandler),e.$list.on("touchmove.slick mousemove.slick",{action:"move"},e.swipeHandler),e.$list.on("touchend.slick mouseup.slick",{action:"end"}
218,e.swipeHandler),e.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},e.swipeHandler),e.$list.on("click.slick",e.clickHandler),i(document).on(e.visibilityChange,i.proxy(e.visibility,e)),!0===e.options.accessibility&&e.$list.on("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&i(e.$slideTrack).children().on("click.slick",e.selectHandler),i(window).on("orientationchange.slick.slick-"+e.instanceUid,i.proxy(e.orientationChange,e)),i(window).on("resize.slick.slick-"+e.instanceUid,i.proxy(e.resize,e)),i("[draggable!=true]",e.$slideTrack).on("dragstart",e.preventDefault),i(window).on("load.slick.slick-"+e.instanceUid,e.setPosition),i(e.setPosition)},e.prototype.initUI=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.show(),i.$nextArrow.show()),!0===i.options.dots&&i.slideCount>i.options.slidesToShow&&i.$dots.show()},e.prototype.keyHandler=function(i){var e=this;i.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===i.keyCode&&!0===e.options.accessibility?e.changeSlide({data:{message:!0===e.options.rtl?"next":"previous"}}):39===i.keyCode&&!0===e.options.accessibility&&e.changeSlide({data:{message:!0===e.options.rtl?"previous":"next"}}))},e.prototype.lazyLoad=function(){function e(e){i("img[data-lazy]",e).each(function(){var e=i(this),t=i(this).attr("data-lazy"),o=i(this).attr("data-srcset"),s=i(this).attr("data-sizes")||n.$slider.attr("data-sizes"),r=document.createElement("img");r.onload=function(){e.animate({opacity:0}
vendor: 5,619 bytes, line 218
218,100,function(){o&&(e.attr("srcset",o),s&&e.attr("sizes",s)),e.attr("src",t).animate({opacity:1},200,function(){e.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")}),n.$slider.trigger("lazyLoaded",[n,e,t])})},r.onerror=function(){e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),n.$slider.trigger("lazyLoadError",[n,e,t])},r.src=t})}var t,o,s,n=this;if(!0===n.options.centerMode?!0===n.options.infinite?s=(o=n.currentSlide+(n.options.slidesToShow/2+1))+n.options.slidesToShow+2:(o=Math.max(0,n.currentSlide-(n.options.slidesToShow/2+1)),s=n.options.slidesToShow/2+1+2+n.currentSlide):(o=n.options.infinite?n.options.slidesToShow+n.currentSlide:n.currentSlide,s=Math.ceil(o+n.options.slidesToShow),!0===n.options.fade&&(o>0&&o--,s<=n.slideCount&&s++)),t=n.$slider.find(".slick-slide").slice(o,s),"anticipated"===n.options.lazyLoad)for(var r=o-1,l=s,d=n.$slider.find(".slick-slide"),a=0;a<n.options.slidesToScroll;a++)r<0&&(r=n.slideCount-1),t=(t=t.add(d.eq(r))).add(d.eq(l)),r--,l++;e(t),n.slideCount<=n.options.slidesToShow?e(n.$slider.find(".slick-slide")):n.currentSlide>=n.slideCount-n.options.slidesToShow?e(n.$slider.find(".slick-cloned").slice(0,n.options.slidesToShow)):0===n.currentSlide&&e(n.$slider.find(".slick-cloned").slice(-1*n.options.slidesToShow))},e.prototype.loadSlider=function(){var i=this;i.setPosition(),i.$slideTrack.css({opacity:1}),i.$slider.removeClass("slick-loading"),i.initUI(),"progressive"===i.options.lazyLoad&&i.progressiveLazyLoad()},e.prototype.next=e.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},e.prototype.orientationChange=function(){var i=this;i.checkResponsive(),i.setPosition()},e.prototype.pause=e.prototype.slickPause=function(){var i=this;i.autoPlayClear(),i.paused=!0},e.prototype.play=e.prototype.slickPlay=function(){var i=this;i.autoPlay(),i.options.autoplay=!0,i.paused=!1,i.focussed=!1,i.interrupted=!1},e.prototype.postSlide=function(e){var t=this;t.unslicked||(t.$slider.trigger("afterChange",[t,e]),t.animating=!1,t.slideCount>t.options.slidesToShow&&t.setPosition(),t.swipeLeft=null,t.options.autoplay&&t.autoPlay(),!0===t.options.accessibility&&(t.initADA(),t.options.focusOnChange&&i(t.$slides.get(t.currentSlide)).attr("tabindex",0).focus()))},e.prototype.prev=e.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},e.prototype.preventDefault=function(i){i.preventDefault()},e.prototype.progressiveLazyLoad=function(e){e=e||1;var t,o,s,n,r,l=this,d=i("img[data-lazy]",l.$slider);d.length?(t=d.first(),o=t.attr("data-lazy"),s=t.attr("data-srcset"),n=t.attr("data-sizes")||l.$slider.attr("data-sizes"),(r=document.createElement("img")).onload=function(){s&&(t.attr("srcset",s),n&&t.attr("sizes",n)),t.attr("src",o).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),!0===l.options.adaptiveHeight&&l.setPosition(),l.$slider.trigger("lazyLoaded",[l,t,o]),l.progressiveLazyLoad()},r.onerror=function(){e<3?setTimeout(function(){l.progressiveLazyLoad(e+1)},500):(t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),l.$slider.trigger("lazyLoadError",[l,t,o]),l.progressiveLazyLoad())},r.src=o):l.$slider.trigger("allImagesLoaded",[l])},e.prototype.refresh=function(e){var t,o,s=this;o=s.slideCount-s.options.slidesToShow,!s.options.infinite&&s.currentSlide>o&&(s.currentSlide=o),s.slideCount<=s.options.slidesToShow&&(s.currentSlide=0),t=s.currentSlide,s.destroy(!0),i.extend(s,s.initials,{currentSlide:t}),s.init(),e||s.changeSlide({data:{message:"index",index:t}},!1)},e.prototype.registerBreakpoints=function(){var e,t,o,s=this,n=s.options.responsive||null;if("array"===i.type(n)&&n.length){s.respondTo=s.options.respondTo||"window";for(e in n)if(o=s.breakpoints.length-1,n.hasOwnProperty(e)){for(t=n[e].breakpoint;o>=0;)s.breakpoints[o]&&s.breakpoints[o]===t&&s.breakpoints.splice(o,1),o--;s.breakpoints.push(t),s.breakpointSettings[t]=n[e].settings}s.breakpoints.sort(function(i,e){return s.options.mobileFirst?i-e:e-i})}},e.prototype.reinit=function(){var e=this;e.$slides=e.$slideTrack.children(e.options.slide).addClass("slick-slide"),e.slideCount=e.$slides.length,e.currentSlide>=e.slideCount&&0!==e.currentSlide&&(e.currentSlide=e.currentSlide-e.options.slidesToScroll),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),e.registerBreakpoints(),e.setProps(),e.setupInfinite(),e.buildArrows(),e.updateArrows(),e.initArrowEvents(),e.buildDots(),e.updateDots(),e.initDotEvents(),e.cleanUpSlideEvents(),e.initSlideEvents(),e.checkResponsive(!1,!0),!0===e.options.focusOnSelect&&i(e.$slideTrack).children().on("click.slick",e.selectHandler),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),e.setPosition(),e.focusHandler(),e.paused=!e.options.autoplay,e.autoPlay(),e.$slider.trigger("reInit",[e])},e.prototype.resize=function(){var e=this;i(window).width()!==e.windowWidth&&(clearTimeout(e.windowDelay),e.windowDelay=window.setTimeout(function(){e.windowWidth=i(window).width(),e.checkResponsive(),e.unslicked||e.setPosition()},50))},e.prototype.removeSlide=e.prototype.slickRemove=function(i,e,t){var o=this;if(i="boolean"==typeof i?!0===(e=i)?0:o.slideCount-1:!0===e?--i:i,o.slideCount<1||i<0||i>o.slideCount-1)return!1;o.unload(),!0===t?o.$slideTrack.children().remove():o.$slideTrack.children(this.options.slide).eq(i).remove(),o.$slides=o.$slideTrack.children(this.options.slide),o.$slideTrack.children(this.options.slide).detach(),o.$slideTrack.append(o.$slides),o.$slidesCache=o.$slides,o.reinit()},e.prototype.setCSS=function(i){var e,t,o=this,s={};
218!0===o.options.rtl&&(i=-i),e="left"==o.positionProp?Math.ceil(i)+"px":"0px",t="top"==o.positionProp?Math.ceil(i)+"px":"0px",s[o.positionProp]=i,!1===o.transformsEnabled?o.$slideTrack.css(s):(s={},!1===o.cssTransitions?(s[o.animType]="translate("+e+", "+t+")",o.$slideTrack.css(s)):(s[o.animType]="translate3d("+e+", "+t+", 0px)",o.$slideTrack.css(s)))},e.prototype.setDimensions=function(){var i=this;!1===i.options.vertical?!0===i.options.centerMode&&i.$list.css({padding:"0px "+i.options.centerPadding}):(i.$list.height(i.$slides.first().outerHeight(!0)*i.options.slidesToShow),!0===i.options.centerMode&&i.$list.css({padding:i.options.centerPadding+" 0px"})),i.listWidth=i.$list.width(),i.listHeight=i.$list.height(),!1===i.options.vertical&&!1===i.options.variableWidth?(i.slideWidth=Math.ceil(i.listWidth/i.options.slidesToShow),i.$slideTrack.width(Math.ceil(i.slideWidth*i.$slideTrack.children(".slick-slide").length))):!0===i.options.variableWidth?i.$slideTrack.width(5e3*i.slideCount):(i.slideWidth=Math.ceil(i.listWidth),i.$slideTrack.height(Math.ceil(i.$slides.first().outerHeight(!0)*i.$slideTrack.children(".slick-slide").length)));var e=i.$slides.first().outerWidth(!0)-i.$slides.first().width();!1===i.options.variableWidth&&i.$slideTrack.children(".slick-slide").width(i.slideWidth-e)},e.prototype.setFade=function(){var e,t=this;t.$slides.each(function(o,s){e=t.slideWidth*o*-1,!0===t.options.rtl?i(s).css({position:"relative",right:e,top:0,zIndex:t.options.zIndex-2,opacity:0}
218):i(s).css({position:"relative",left:e,top:0,zIndex:t.options.zIndex-2,opacity:0})}),t.$slides.eq(t.currentSlide).css({zIndex:t.options.zIndex-1,opacity:1})},e.prototype.setHeight=function(){var i=this;if(1===i.options.slidesToShow&&!0===i.options.adaptiveHeight&&!1===i.options.vertical){var e=i.$slides.eq(i.currentSlide).outerHeight(!0);i.$list.css("height",e)}},e.prototype.setOption=e.prototype.slickSetOption=function(){var e,t,o,s,n,r=this,l=!1;if("object"===i.type(arguments[0])?(o=arguments[0],l=arguments[1],n="multiple"):"string"===i.type(arguments[0])&&(o=arguments[0],s=arguments[1],l=arguments[2],"responsive"===arguments[0]&&"array"===i.type(arguments[1])?n="responsive":void 0!==arguments[1]&&(n="single")),"single"===n)r.options[o]=s;else if("multiple"===n)i.each(o,function(i,e){r.options[i]=e});else if("responsive"===n)for(t in s)if("array"!==i.type(r.options.responsive))r.options.responsive=[s[t]];else{for(e=r.options.responsive.length-1;e>=0;)r.options.responsive[e].breakpoint===s[t].breakpoint&&r.options.responsive.splice(e,1),e--;r.options.responsive.push(s[t])}l&&(r.unload(),r.reinit())},e.prototype.setPosition=function(){var i=this;i.setDimensions(),i.setHeight(),!1===i.options.fade?i.setCSS(i.getLeft(i.currentSlide)):i.setFade(),i.$slider.trigger("setPosition",[i])},e.prototype.setProps=function(){var i=this,e=document.body.style;i.positionProp=!0===i.options.vertical?"top":"left","top"===i.positionProp?i.$slider.addClass("slick-vertical"):i.$slider.removeClass("slick-vertical"),void 0===e.WebkitTransition&&void 0===e.MozTransition&&void 0===e.msTransition||!0===i.options.useCSS&&(i.cssTransitions=!0),i.options.fade&&("number"==typeof i.options.zIndex?i.options.zIndex<3&&(i.options.zIndex=3):i.options.zIndex=i.defaults.zIndex),void 0!==e.OTransform&&(i.animType="OTransform",i.transformType="-o-transform",i.transitionType="OTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(i.animType=!1)),void 0!==e.MozTransform&&(i.animType="MozTransform",i.transformType="-moz-transform",i.transitionType="MozTransition",void 0===e.perspectiveProperty&&void 0===e.MozPerspective&&(i.animType=!1)),void 0!==e.webkitTransform&&(i.animType="webkitTransform",i.transformType="-webkit-transform",i.transitionType="webkitTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(i.animType=!1)),void 0!==e.msTransform&&(i.animType="msTransform",i.transformType="-ms-transform",i.transitionType="msTransition",void 0===e.msTransform&&(i.animType=!1)),void 0!==e.transform&&!1!==i.animType&&(i.animType="transform",i.transformType="transform",i.transitionType="transition"),i.transformsEnabled=i.options.useTransform&&null!==i.animType&&!1!==i.animType},e.prototype.setSlideClasses=function(i){var e,t,o,s,n=this;if(t=n.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),n.$slides.eq(i).addClass("slick-current"),!0===n.options.centerMode){var r=n.options.slidesToShow%2==0?1:0;e=Math.floor(n.options.slidesToShow/2),!0===n.options.infinite&&(i>=e&&i<=n.slideCount-1-e?n.$slides.slice(i-e+r,i+e+1).addClass("slick-active").attr("aria-hidden","false"):(o=n.options.slidesToShow+i,t.slice(o-e+1+r,o+e+2).addClass("slick-active").attr("aria-hidden","false")),0===i?t.eq(t.length-1-n.options.slidesToShow).addClass("slick-center"):i===n.slideCount-1&&t.eq(n.options.slidesToShow).addClass("slick-center")),n.$slides.eq(i).addClass("slick-center")}else i>=0&&i<=n.slideCount-n.options.slidesToShow?n.$slides.slice(i,i+n.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):t.length<=n.options.slidesToShow?t.addClass("slick-active").attr("aria-hidden","false"):(s=n.slideCount%n.options.slidesToShow,o=!0===n.options.infinite?n.options.slidesToShow+i:i,n.options.slidesToShow==n.options.slidesToScroll&&n.slideCount-i<n.options.slidesToShow?t.slice(o-(n.options.slidesToShow-s),o+s).addClass("slick-active").attr("aria-hidden","false"):t.slice(o,o+n.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));"ondemand"!==n.options.lazyLoad&&"anticipated"!==n.options.lazyLoad||n.lazyLoad()},e.prototype.setupInfinite=function(){var e,t,o,s=this;if(!0===s.options.fade&&(s.options.centerMode=!1),!0===s.options.infinite&&!1===s.options.fade&&(t=null,s.slideCount>s.options.slidesToShow)){for(o=!0===s.options.centerMode?s.options.slidesToShow+1:s.options.slidesToShow,e=s.slideCount;e>s.slideCount-o;e-=1)t=e-1,i(s.$slides[t]).clone(!0).attr("id","").attr("data-slick-index",t-s.slideCount).prependTo(s.$slideTrack).addClass("slick-cloned");for(e=0;e<o+s.slideCount;e+=1)t=e,i(s.$slides[t]).clone(!0).attr("id","").attr("data-slick-index",t+s.slideCount).appendTo(s.$slideTrack).addClass("slick-cloned");s.$slideTrack.find(".slick-cloned").find("[id]").each(function(){i(this).attr("id","")})}},e.prototype.interrupt=function(i){var e=this;i||e.autoPlay(),e.interrupted=i},e.prototype.selectHandler=function(e){var t=this,o=i(e.target).is(".slick-slide")?i(e.target):i(e.target).parents(".slick-slide"),s=parseInt(o.attr("data-slick-index"));s||(s=0),t.slideCount<=t.options.slidesToShow?t.slideHandler(s,!1,!0):t.slideHandler(s)},e.prototype.slideHandler=function(i,e,t){var o,s,n,r,l,d=null,a=this;if(e=e||!1,!(!0===a.animating&&!0===a.options.waitForAnimate||!0===a.options.fade&&a.currentSlide===i))if(!1===e&&a.asNavFor(i),o=i,d=a.getLeft(o),r=a.getLeft(a.currentSlide),a.currentLeft=null===a.swipeLeft?r:a.swipeLeft,!1===a.options.infinite&&!1===a.options.centerMode&&(i<0||i>a.getDotCount()*a.options.slidesToScroll))!1===a.options.fade&&(o=a.currentSlide,!0!==t?a.animateSlide(r,function(){a.postSlide(o)}):a.postSlide(o));else if(!1===a.options.infinite&&!0===a.options.centerMode&&(i<0||i>a.slideCount-a.options.slidesToScroll))!1===a.options.fade&&(o=a.currentSlide,!0!==t?a.animateSlide(r,function(){a.postSlide(o)}):a.postSlide(o));else{if(a.options.autoplay&&clearInterval(a.autoPlayTimer),s=o<0?a.slideCount%a.options.slidesToScroll!=0?a.slideCount-a.slideCount%a.options.slidesToScroll:a.slideCount+
218o:o>=a.slideCount?a.slideCount%a.options.slidesToScroll!=0?0:o-a.slideCount:o,a.animating=!0,a.$slider.trigger("beforeChange",[a,a.currentSlide,s]),n=a.currentSlide,a.currentSlide=s,a.setSlideClasses(a.currentSlide),a.options.asNavFor&&(l=(l=a.getNavTarget()).slick("getSlick")).slideCount<=l.options.slidesToShow&&l.setSlideClasses(a.currentSlide),a.updateDots(),a.updateArrows(),!0===a.options.fade)return!0!==t?(a.fadeSlideOut(n),a.fadeSlide(s,function(){a.postSlide(s)})):a.postSlide(s),void a.animateHeight();!0!==t?a.animateSlide(d,function(){a.postSlide(s)}):a.postSlide(s)}},e.prototype.startLoad=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.hide(),i.$nextArrow.hide()),!0===i.options.dots&&i.slideCount>i.options.slidesToShow&&i.$dots.hide(),i.$slider.addClass("slick-loading")},e.prototype.swipeDirection=function(){var i,e,t,o,s=this;return i=s.touchObject.startX-s.touchObject.curX,e=s.touchObject.startY-s.touchObject.curY,t=Math.atan2(e,i),(o=Math.round(180*t/Math.PI))<0&&(o=360-Math.abs(o)),o<=45&&o>=0?!1===s.options.rtl?"left":"right":o<=360&&o>=315?!1===s.options.rtl?"left":"right":o>=135&&o<=225?!1===s.options.rtl?"right":"left":!0===s.options.verticalSwiping?o>=35&&o<=135?"down":"up":"vertical"},e.prototype.swipeEnd=function(i){var e,t,o=this;if(o.dragging=!1,o.swiping=!1,o.scrolling)return o.scrolling=!1,!1;if(o.interrupted=!1,o.shouldClick=!(o.touchObject.swipeLength>10),void 0===o.touchObject.curX)return!1;if(!0===o.touchObject.edgeHit&&o.$slider.trigger("edge",[o,o.swipeDirection()]),o.touchObject.swipeLength>=o.touchObject.minSwipe){switch(t=o.swipeDirection()){case"left":case"down":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide+o.getSlideCount()):o.currentSlide+o.getSlideCount(),o.currentDirection=0;break;case"right":case"up":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide-o.getSlideCount()):o.currentSlide-o.getSlideCount(),o.currentDirection=1}"vertical"!=t&&(o.slideHandler(e),o.touchObject={},o.$slider.trigger("swipe",[o,t]))}else o.touchObject.startX!==o.touchObject.curX&&(o.slideHandler(o.currentSlide),o.touchObject={})},e.prototype.swipeHandler=function(i){var e=this;if(!(!1===e.options.swipe||"ontouchend"in document&&!1===e.options.swipe||!1===e.options.draggable&&-1!==i.type.indexOf("mouse")))switch(e.touchObject.fingerCount=i.originalEvent&&void 0!==i.originalEvent.touches?i.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,!0===e.options.verticalSwiping&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),i.data.action){case"start":e.swipeStart(i);break;case"move":e.swipeMove(i);break;case"end":e.swipeEnd(i)}},e.prototype.swipeMove=function(i){var e,t,o,s,n,r,l=this;return n=void 0!==i.originalEvent?i.originalEvent.touches:null,!(!l.dragging||l.scrolling||n&&1!==n.length)&&(e=l.getLeft(l.currentSlide),l.touchObject.curX=void 0!==n?n[0].pageX:i.clientX,l.touchObject.curY=void 0!==n?n[0].pageY:i.clientY,l.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(l.touchObject.curX-l.touchObject.startX,2))),r=Math.round(Math.sqrt(Math.pow(l.touchObject.curY-l.touchObject.startY,2))),!l.options.verticalSwiping&&!l.swiping&&r>4?(l.scrolling=!0,!1):(!0===l.options.verticalSwiping&&(l.touchObject.swipeLength=r),t=l.swipeDirection(),void 0!==i.originalEvent&&l.touchObject.swipeLength>4&&(l.swiping=!0,i.preventDefault()),s=(!1===l.options.rtl?1:-1)*(l.touchObject.curX>l.touchObject.startX?1:-1),!0===l.options.verticalSwiping&&(s=l.touchObject.curY>l.touchObject.startY?1:-1),o=l.touchObject.swipeLength,l.touchObject.edgeHit=!1,!1===l.options.infinite&&(0===l.currentSlide&&"right"===t||l.currentSlide>=l.getDotCount()&&"left"===t)&&(o=l.touchObject.swipeLength*l.options.edgeFriction,l.touchObject.edgeHit=!0),!1===l.options.vertical?l.swipeLeft=e+o*s:l.swipeLeft=e+o*(l.$list.height()/l.listWidth)*s,!0===l.options.verticalSwiping&&(l.swipeLeft=e+o*s),!0!==l.options.fade&&!1!==l.options.touchMove&&(!0===l.animating?(l.swipeLeft=null,!1):void l.setCSS(l.swipeLeft))))},e.prototype.swipeStart=function(i){var e,t=this;if(t.interrupted=!0,1!==t.touchObject.fingerCount||t.slideCount<=t.options.slidesToShow)return t.touchObject={},!1;void 0!==i.originalEvent&&void 0!==i.originalEvent.touches&&(e=i.originalEvent.touches[0]),t.touchObject.startX=t.touchObject.curX=void 0!==e?e.pageX:i.clientX,t.touchObject.startY=t.touchObject.curY=void 0!==e?e.pageY:i.clientY,t.dragging=!0},e.prototype.unfilterSlides=e.prototype.slickUnfilter=function(){var i=this;null!==i.$slidesCache&&(i.unload(),i.$slideTrack.children(this.options.slide).detach(),i.$slidesCache.appendTo(i.$slideTrack),i.reinit())},e.prototype.unload=function(){var e=this;i(".slick-cloned",e.$slider).remove(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove(),e.$nextArrow&&e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove(),e.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")}
218,e.prototype.unslick=function(i){var e=this;e.$slider.trigger("unslick",[e,i]),e.destroy()},e.prototype.updateArrows=function(){var i=this;Math.floor(i.options.slidesToShow/2),!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&!i.options.infinite&&(i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),i.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===i.currentSlide?(i.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):i.currentSlide>=i.slideCount-i.options.slidesToShow&&!1===i.options.centerMode?(i.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):i.currentSlide>=i.slideCount-1&&!0===i.options.centerMode&&(i.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},e.prototype.updateDots=function(){var i=this;null!==i.$dots&&(i.$dots.find("li").removeClass("slick-active").end(),i.$dots.find("li").eq(Math.floor(i.currentSlide/i.options.slidesToScroll)).addClass("slick-active"))},e.prototype.visibility=function(){var i=this;i.options.autoplay&&(document[i.hidden]?i.interrupted=!0:i.interrupted=!1)},i.fn.slick=function(){var i,t,o=this,s=arguments[0],n=Array.prototype.slice.call(arguments,1),r=o.length;for(i=0;i<r;i++)if("object"==typeof s||void 0===s?o[i].slick=new e(o[i],s):t=o[i].slick[s].apply(o[i].slick,n),void 0!==t)return t;return o}});
219
220/* End */
221;
222; /* Start:"a:4:{s:4:"full";s:71:"/bitrix/templates/concept_hameleon/js/zero-clipboard.js?175734080710760";s:6:"source";s:55:"/bitrix/templates/concept_hameleon/js/zero-clipboard.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
223/*!
224 * clipboard.js v2.0.4
225 * https://zenorocha.github.io/clipboard.js
226 * 
227 * Licensed MIT © Zeno Rocha
228 */�
vendor: 10,646 bytes, lines 228-229
228
229!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ClipboardJS=e():t.ClipboardJS=e()}(this,function(){return function(n){var o={};function r(t){if(o[t])return o[t].exports;var e=o[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}return r.m=n,r.c=o,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=0)}([function(t,e,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(){function o(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}}(),a=o(n(1)),c=o(n(3)),u=o(n(4));function o(t){return t&&t.__esModule?t:{default:t}}var l=function(t){function o(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(o.__proto__||Object.getPrototypeOf(o)).call(this));return n.resolveOptions(e),n.listenClick(t),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(o,c.default),i(o,[{key:"resolveOptions",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===r(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=(0,u.default)(t,"click",function(t){return e.onClick(t)})}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new a.default({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(t){return s("action",t)}},{key:"defaultTarget",value:function(t){var e=s("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return s("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"==typeof t?[t]:t,n=!!document.queryCommandSupported;return e.forEach(function(t){n=n&&!!document.queryCommandSupported(t)}),n}}]),o}();function s(t,e){var n="data-clipboard-"+t;if(e.hasAttribute(n))return e.getAttribute(n)}t.exports=l},function(t,e,n){"use strict";var o,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(){function o(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}}(),a=n(2),c=(o=a)&&o.__esModule?o:{default:o};var u=function(){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),this.resolveOptions(t),this.initSelection()}return i(e,[{key:"resolveOptions",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var t=this,e="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,c.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,c.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(void 0!==t){if(!t||"object"!==(void 0===t?"undefined":r(t))||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}]),e}();t.exports=u},function(t,e){t.exports=function(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var o=window.getSelection(),r=document.createRange();r.selectNodeContents(t),o.removeAllRanges(),o.addRange(r),e=o.toString()}return e}},function(t,e){function n(){}n.prototype={on:function(t,e,n){var o=this.e||(this.e={});return(o[t]||(o[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var o=this;function r(){o.off(t,r),e.apply(n,arguments)}return r._=e,this.on(t,r,n)},emit:function(t){for(var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),o=0,r=n.length;o<r;o++)n[o].fn.apply(n[o].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),o=n[t],r=[];if(o&&e)for(var i=0,a=o.length;i<a;i++)o[i].fn!==e&&o[i].fn._!==e&&r.push(o[i]);return r.length?n[t]=r:delete n[t],this}},t.exports=n},function(t,e,n){var d=n(5),h=n(6);t.exports=function(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!d.string(e))throw new TypeError("Second argument must be a String");if(!d.fn(n))throw new TypeError("Third argument must be a Function");if(d.node(t))return s=e,f=n,(l=t).addEventListener(s,f),{destroy:function(){l.removeEventListener(s,f)}};if(d.nodeList(t))return a=t,c=e,u=n,Array.prototype.forEach.call(a,function(t){t.addEventListener(c,u)}),{destroy:function(){Array.prototype.forEach.call(a,function(t){t.removeEventListener(c,u)})}};if(d.string(t))return o=t,r=e,i=n,h(document.body,o,r,i);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");var o,r,i,a,c,u,l,s,f}},function(t,n){n.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},n.nodeList=function(t){var e=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===e||"[object HTMLCollection]"===e)&&"length"in t&&(0===t.length||n.node(t[0]))},n.string=function(t){return"string"==typeof t||t instanceof String},n.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},function(t,e,n){var a=n(7);function i(t,e,n,o,r){var i=function(e,n,t,o){return function(t){t.delegateTarget=a(t.target,n),t.delegateTarget&&o.call(e,t)}}.apply(this,arguments);return t.addEventListener(n,i,r),{destroy:function(){t.removeEventListener(n,i,r)}}}t.exports=function(t,e,n,o,r){return"function"==typeof t.addEventListener?i.apply(null,arguments):"function"==typeof n?i.bind(null,document).apply(null,arguments):("string"==typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,function(t){return i(t,e,n,o,r)}))}},function(t,e){if("undefined"!=typeof Element&&!Element.prototype.matches){var n=Element.prototype;n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}t.exports=function(t,e){for(;t&&9!==t.nodeType;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}}])});
229
230/* End */
231;
232; /* Start:"a:4:{s:4:"full";s:65:"/bitrix/templates/concept_hameleon/js/typed.min.js?17573408083851";s:6:"source";s:50:"/bitrix/templates/concept_hameleon/js/typed.min.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
233!function(t){"use strict";var s=function(s,e){this.el=t(s),this.options=t.extend({},t.fn.typed.defaults,e),this.isInput=this.el.is("input"),this.attr=this.options.attr,this.showCursor=this.isInput?!1:this.options.showCursor,this.elContent=this.attr?this.el.attr(this.attr):this.el.text(),this.contentType=this.options.contentType,this.typeSpeed=this.options.typeSpeed,this.startDelay=this.options.startDelay,this.backSpeed=this.options.backSpeed,this.backDelay=this.options.backDelay,this.stringsElement=this.options.stringsElement,this.strings=this.options.strings,this.strPos=0,this.arrayPos=0,this.stopNum=0,this.loop=this.options.loop,this.loopCount=this.options.loopCount,this.curLoop=0,this.stop=!1,this.cursorChar=this.options.cursorChar,this.shuffle=this.options.shuffle,this.sequence=[],this.build()};s.prototype={constructor:s,init:function(){var t=this;t.timeout=setTimeout(function(){for(var s=0;s<t.strings.length;++s)t.sequence[s]=s;t.shuffle&&(t.sequence=t.shuffleArray(t.sequence)),t.typewrite(t.strings[t.sequence[t.arrayPos]],t.strPos)},t.startDelay)},build:function(){var s=this;if(this.showCursor===!0&&(this.cursor=t('<span class="typed-cursor">'+this.cursorChar+"</span>"),this.el.after(this.cursor)),this.stringsElement){s.strings=[],this.stringsElement.hide();var e=this.stringsElement.find("p");t.each(e,function(e,i){s.strings.push(t(i).html())})}this.init()},typewrite:function(t,s){if(this.stop!==!0){var e=Math.round(70*Math.random())+this.typeSpeed,i=this;i.timeout=setTimeout(function(){var e=0,r=t.substr(s);if("^"===r.charAt(0)){var o=1;/^\^\d+/.test(r)&&(r=/\d+/.exec(r)[0],o+=r.length,e=parseInt(r)),t=t.substring(0,s)+t.substring(s+o)}if("html"===i.contentType){var n=t.substr(s).charAt(0);if("<"===n||"&"===n){var a="",h="";for(h="<"===n?">":";";t.substr(s).charAt(0)!==h;)a+=t.substr(s).charAt(0),s++;s++,a+=h}}i.timeout=setTimeout(function(){if(s===t.length){if(i.options.onStringTyped(i.arrayPos),i.arrayPos===i.strings.length-1&&(i.options.callback(),i.curLoop++,i.loop===!1||i.curLoop===i.loopCount))return;i.timeout=setTimeout(function(){i.backspace(t,s)},i.backDelay)}else{0===s&&i.options.preStringTyped(i.arrayPos);var e=t.substr(0,s+1);i.attr?i.el.attr(i.attr,e):i.isInput?i.el.val(e):"html"===i.contentType?i.el.html(e):i.el.text(e),s++,i.typewrite(t,s)}},e)},e)}},backspace:function(t,s){if(this.stop!==!0){var e=Math.round(70*Math.random())+this.backSpeed,i=this;i.timeout=setTimeout(function(){if("html"===i.contentType&&">"===t.substr(s).charAt(0)){for(var e="";"<"!==t.substr(s).charAt(0);)e-=t.substr(s).charAt(0),s--;s--,e+="<"}var r=t.substr(0,s);i.attr?i.el.attr(i.attr,r):i.isInput?i.el.val(r):"html"===i.contentType?i.el.html(r):i.el.text(r),s>i.stopNum?(s--,i.backspace(t,s)):s<=i.stopNum&&(i.arrayPos++,i.arrayPos===i.strings.length?(i.arrayPos=0,i.shuffle&&(i.sequence=i.shuffleArray(i.sequence)),i.init()):i.typewrite(i.strings[i.sequence[i.arrayPos]],s))},e)}},shuffleArray:function(t){var s,e,i=t.length;if(i)for(;--i;)e=Math.floor(Math.random()*(i+1)),s=t[e],t[e]=t[i],t[i]=s;return t},reset:function(){var t=this;clearInterval(t.timeout);var s=this.el.attr("id");this.el.after('<span id="'+s+'"/>'),this.el.remove(),"undefined"!=typeof this.cursor&&this.cursor.remove(),t.options.resetCallback()}},t.fn.typed=function(e){return this.each(function(){var i=t(this),r=i.data("typed"),o="object"==typeof e&&e;r||i.data("typed",r=new s(this,o)),"string"==typeof e&&r[e]()})},t.fn.typed.defaults={strings:["These are the default values...","You know what you should do?","Use your own!","Have a great day!"],stringsElement:null,typeSpeed:0,startDelay:0,backSpeed:0,shuffle:!1,backDelay:500,loop:!1,loopCount:!1,showCursor:!0,cursorChar:"|",attr:null,contentType:"html",callback:function(){},preStringTyped:function(){},onStringTyped:function(){},resetCallback:function(){}}}(window.jQuery);
234/* End */
235;
236; /* Start:"a:4:{s:4:"full";s:67:"/bitrix/templates/concept_hameleon/js/size-resize.js?17573408071178";s:6:"source";s:52:"/bitrix/templates/concept_hameleon/js/size-resize.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
237/*for footer in slide menu*/
238function size_slide_menu()
239{
240  
241  var win_h = $(window).height();
242  var tit_h = $('.slide-menu .head-wrap').outerHeight();
243  var cont_h = $('.slide-menu .menu-content').outerHeight();
244  var foot_h = $('.slide-menu .foot-wrap').outerHeight();
245
246  var total_h = tit_h + cont_h + foot_h;
247
248  if(win_h > total_h)
249  {
250    $('.slide-menu .inner').css({'min-height': win_h + 'px'});
251  }
252
253  else
254  {
255    $('.slide-menu .inner').css({'min-height': total_h + 'px'});
256  }
257
258}
259
260/*for resize modal video*/
261function resize_video_modal() 
262{
263    var win_height = $(window).height();
264    var modal = 505;
265    
266    if($(window).width() < 767)
267    {
268      modal = 300;
269    }
270    
271    if(win_height>modal)
272    {
273      var margin_top = (win_height - modal)/2;
274      $("div.video-modal.in div.modal-dialog").css({'margin-top': margin_top + 'px'});
275    }
276    else
277    {
278      $("div.video-modal.in div.modal-dialog").css({'margin-top': 0 + 'px'});
279    }
280   
281}
282
283$(document).ready(
284  function()
285  {
286  	resize_video_modal();
287	  size_slide_menu();
288    
289  }
290);
291
292
293/* $(window).resize(
294//   function()
295//   {
296//   	size_slide_menu();
297//   	resize_video_modal();
298    
299// 	}
300// );*/
301
302
303/* End */
304;
305; /* Start:"a:4:{s:4:"full";s:68:"/bitrix/templates/concept_hameleon/js/lazyload.min.js?17573408075023";s:6:"source";s:53:"/bitrix/templates/concept_hameleon/js/lazyload.min.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
306/*! jQuery & Zepto Lazy v1.7.10 - http://jquery.eisbehr.de/lazy - MIT&GPL-2.0 license - Copyright 2012-2018 Daniel 'Eisbehr' Kern */
307!function(t,e){"use strict";function r(r,a,i,u,l){function f(){L=t.devicePixelRatio>1,i=c(i),a.delay>=0&&setTimeout(function(){s(!0)},a.delay),(a.delay<0||a.combined)&&(u.e=v(a.throttle,function(t){"resize"===t.type&&(w=B=-1),s(t.all)}),u.a=function(t){t=c(t),i.push.apply(i,t)},u.g=function(){return i=n(i).filter(function(){return!n(this).data(a.loadedName)})},u.f=function(t){for(var e=0;e<t.length;e++){var r=i.filter(function(){return this===t[e]});r.length&&s(!1,r)}},s(),n(a.appendScroll).on("scroll."+l+" resize."+l,u.e))}function c(t){var i=a.defaultImage,o=a.placeholder,u=a.imageBase,l=a.srcsetAttribute,f=a.loaderAttribute,c=a._f||{};t=n(t).filter(function(){var t=n(this),r=m(this);return!t.data(a.handledName)&&(t.attr(a.attribute)||t.attr(l)||t.attr(f)||c[r]!==e)}).data("plugin_"+a.name,r);for(var s=0,d=t.length;s<d;s++){var A=n(t[s]),g=m(t[s]),h=A.attr(a.imageBaseAttribute)||u;g===N&&h&&A.attr(l)&&A.attr(l,b(A.attr(l),h)),c[g]===e||A.attr(f)||A.attr(f,c[g]),g===N&&i&&!A.attr(E)?A.attr(E,i):g===N||!o||A.css(O)&&"none"!==A.css(O)||A.css(O,"url('"+o+"')")}return t}function s(t,e){if(!i.length)return void(a.autoDestroy&&r.destroy());for(var o=e||i,u=!1,l=a.imageBase||"",f=a.srcsetAttribute,c=a.handledName,s=0;s<o.length;s++)if(t||e||A(o[s])){var g=n(o[s]),h=m(o[s]),b=g.attr(a.attribute),v=g.attr(a.imageBaseAttribute)||l,p=g.attr(a.loaderAttribute);g.data(c)||a.visibleOnly&&!g.is(":visible")||!((b||g.attr(f))&&(h===N&&(v+b!==g.attr(E)||g.attr(f)!==g.attr(F))||h!==N&&v+b!==g.css(O))||p)||(u=!0,g.data(c,!0),d(g,h,v,p))}u&&(i=n(i).filter(function(){return!n(this).data(c)}))}function d(t,e,r,i){++z;var o=function(){y("onError",t),p(),o=n.noop};y("beforeLoad",t);var u=a.attribute,l=a.srcsetAttribute,f=a.sizesAttribute,c=a.retinaAttribute,s=a.removeAttribute,d=a.loadedName,A=t.attr(c);if(i){var g=function(){s&&t.removeAttr(a.loaderAttribute),t.data(d,!0),y(T,t),setTimeout(p,1),g=n.noop};t.off(I).one(I,o).one(D,g),y(i,t,function(e){e?(t.off(D),g()):(t.off(I),o())})||t.trigger(I)}else{var h=n(new Image);h.one(I,o).one(D,function(){t.hide(),e===N?t.attr(C,h.attr(C)).attr(F,h.attr(F)).attr(E,h.attr(E)):t.css(O,"url('"+h.attr(E)+"')"),t[a.effect](a.effectTime),s&&(t.removeAttr(u+" "+l+" "+c+" "+a.imageBaseAttribute),f!==C&&t.removeAttr(f)),t.data(d,!0),y(T,t),h.remove(),p()});var m=(L&&A?A:t.attr(u))||"";h.attr(C,t.attr(f)).attr(F,t.attr(l)).attr(E,m?r+m:null),h.complete&&h.trigger(D)}}function A(t){var e=t.getBoundingClientRect(),r=a.scrollDirection,n=a.threshold,i=h()+n>e.top&&-n<e.bottom,o=g()+n>e.left&&-n<e.right;return"vertical"===r?i:"horizontal"===r?o:i&&o}function g(){return w>=0?w:w=n(t).width()}function h(){return B>=0?B:B=n(t).height()}function m(t){return t.tagName.toLowerCase()}function b(t,e){if(e){var r=t.split(",");t="";for(var a=0,n=r.length;a<n;a++)t+=e+r[a].trim()+(a!==n-1?",":"")}return t}function v(t,e){var n,i=0;return function(o,u){function l(){i=+new Date,e.call(r,o)}var f=+new Date-i;n&&clearTimeout(n),f>t||!a.enableThrottle||u?l():n=setTimeout(l,t-f)}}function p(){--z,i.length||z||y("onFinishedAll")}function y(t,e,n){return!!(t=a[t])&&(t.apply(r,[].slice.call(arguments,1
307)),!0)}var z=0,w=-1,B=-1,L=!1,T="afterLoad",D="load",I="error",N="img",E="src",F="srcset",C="sizes",O="background-image";"event"===a.bind||o?f():n(t).on(D+"."+l,f)}function a(a,o){var u=this,l=n.extend({},u.config,o),f={},c=l.name+"-"+ ++i;return u.config=function(t,r){return r===e?l[t]:(l[t]=r,u)},u.addItems=function(t){return f.a&&f.a("string"===n.type(t)?n(t):t),u},u.getItems=function(){return f.g?f.g():{}},u.update=function(t){return f.e&&f.e({},!t),u},u.force=function(t){return f.f&&f.f("string"===n.type(t)?n(t):t),u},u.loadAll=function(){return f.e&&f.e({all:!0},!0),u},u.destroy=function(){return n(l.appendScroll).off("."+c,f.e),n(t).off("."+c),f={},e},r(u,l,a,f,c),l.chainable?a:u}var n=t.jQuery||t.Zepto,i=0,o=!1;n.fn.Lazy=n.fn.lazy=function(t){return new a(this,t)},n.Lazy=n.lazy=function(t,r,i){if(n.isFunction(r)&&(i=r,r=[]),n.isFunction(i)){t=n.isArray(t)?t:[t],r=n.isArray(r)?r:[r];for(var o=a.prototype.config,u=o._f||(o._f={}),l=0,f=t.length;l<f;l++)(o[t[l]]===e||n.isFunction(o[t[l]]))&&(o[t[l]]=i);for(var c=0,s=r.length;c<s;c++)u[r[c]]=t[0]}},a.prototype.config={name:"lazy",chainable:!0,autoDestroy:!0,bind:"load",threshold:500,visibleOnly:!1,appendScroll:t,scrollDirection:"both",imageBase:null,defaultImage:"data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==",placeholder:null,delay:-1,combined:!1,attribute:"data-src",srcsetAttribute:"data-srcset",sizesAttribute:"data-sizes",retinaAttribute:"data-retina",loaderAttribute:"data-loader",imageBaseAttribute:"data-imagebase",removeAttribute:!0,handledName:"handled",loadedName:"loaded",effect:"show",effectTime:0,enableThrottle:!0,throttle:250,beforeLoad:e,afterLoad:e,onError:e,onFinishedAll:e},n(t).on("load",function(){o=!0})}(window);
308/* End */
309;
310; /* Start:"a:4:{s:4:"full";s:63:"/bitrix/templates/concept_hameleon/js/script.js?178076945367699";s:6:"source";s:47:"/bitrix/templates/concept_hameleon/js/script.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
311var site_id = "";
312var cur_pos = 0;
313var btn_type = "";
314var sect = "";
315var ib = "";
316var customEvent = false;
317
318
319var lazyController = false,
320    parentContainerSlide = {},
321    parent = {},
322    flagSlider = 0,
323    arImagesLazyload = {};
324
325var paramsLazy = {
326    scrollDirection: 'vertical',
327    threshold: 500,
328    visibleOnly: true,
329    effect: 'fadeIn',
330};
331
332
333function addGoal(action){
334
335    if(typeof globalGoalsHam !== "undefined")
336    {
337        if(globalGoalsHam[action])
338            $('body').append(globalGoalsHam[action]);
339    }
340}
341function showProcessLoad()
342{
343    $('.google-spin-wrapper').addClass('active');
344}
345function closeProcessLoad()
346{
347    $('.google-spin-wrapper').removeClass('active');
348}
349
350function startBlurWrapperContainer()
351{
352    $('body').addClass('modal-open');
353    $('.wrapper').addClass('blur');
354}
355function stopBlurWrapperContainer()
356{
357    $('body').removeClass('modal-open');
358    $('.wrapper').removeClass('blur');
359}
360
361function generateMaps(container){
362    var mapBlock = $(".iframe-map-area", container);
363
364    if(mapBlock.length>0)
365    {
366        mapBlock.each(
367            function(index, element)
368            {
369                $(element).after($(element).attr("data-src"));
370                $(element).remove();
371            }
372        ); 
373    }
374}
375function generateVideos(container){
376
377    var videoBlock = $(".iframe-video-area", container);
378
379    if(videoBlock.length>0)
380    {
381        videoBlock.each(
382            function(index, element)
383            {
384                $(element).after($(element).attr("data-src"));
385                $(element).remove();
386            }
387        ); 
388    }
389}
390
391function updateLazyLoad(){
392    $('.lazyload').Lazy(
393        {
394            scrollDirection: 'vertical',
395            threshold: 500,
396            visibleOnly: true,
397            effect: 'fadeIn',
398            afterLoad: function(element)
399            {
400
401                parent = $(element).parent();
402                parentContainerSlide = parent.find('.parent-slider-item-js');
403
404                if($(element).hasClass("slider-start"))
405                {
406
407                    if(typeof arImagesLazyload["id"+$(element).attr("data-id")] === "undefined") 
408                        arImagesLazyload["id"+$(element).attr("data-id")] = {"s": 0, "f": 0, "type": null};
409
410                    arImagesLazyload["id"+$(element).attr("data-id")].s = 1;
411
412          
413                    arImagesLazyload["id"+$(element).attr("data-id")].type = parentContainerSlide;
414
415                }
416
417
418                if($(element).hasClass('slider-finish'))
419                {
420
421                    if(typeof arImagesLazyload["id"+$(element).attr("data-id")] === "undefined") 
422                        arImagesLazyload["id"+$(element).attr("data-id")] = {"s": 0, "f": 0, "type": null};
423                    
424                    arImagesLazyload["id"+$(element).attr("data-id")].f = 1;
425                    arImagesLazyload["id"+$(element).attr("data-id")].type = parentContainerSlide;
426
427                }
428
429                if($(element).hasClass('slider-finish') || $(element).hasClass("slider-start"))
430                {
431                    for (key in arImagesLazyload){
432                        
433                        if(arImagesLazyload[key].s == 1 && arImagesLazyload[key].f == 1)
434                        {
435                            /*if( arImagesLazyload[key].type.hasClass('first-slider') && !arImagesLazyload[key].type.hasClass('slider-init'))
436                                initFSlider(arImagesLazyload[key].type);*/
437
438                            controllerSliders(arImagesLazyload[key].type);
439
440                            delete arImagesLazyload[key];
441                        }
442                    }
443                }
444                
445                
446
447                if($(element).parents(".parent-video-bg").find(".videoBG").length>0)
448                    correctSizeVideoBg($(element).parents(".parent-video-bg").find(".videoBG"));
449                
450                if($(element).hasClass('map-start'))
451                    generateMaps($(element).parents("div.block"));
452
453                if($(element).hasClass('video-start'))
454                    generateVideos($(element).parents("div.block"));
455
456                if($(element).hasClass('videoBG-start'))
457                    generateVideoBG($(element).parents("div.block"));
458
459                if($(element).hasClass('videoBG-start-fb'))
460                    generateVideoBG($(element).parents("div.first-block"));
461            }
462        }
463    );
464}
465
466function scrollToBlock(dist){
467    var moreDist = 30;
468
469
470    if ($('header').hasClass("slide"))
471        moreDist = 70;
472
473
474
475    var destinationhref = parseInt($(dist).offset().top - moreDist);
476
477    $("html:not(:animated),body:not(:animated)").animate({
478        scrollTop: destinationhref
479    }, 1000, "linear", function() {
480
481        setTimeout(
482            function(){
483
484                if( 100 < Math.abs(parseInt($(dist).offset().top - moreDist) - destinationhref) )
485                {
486                    $("html:not(:animated),body:not(:animated)").animate({
487                        scrollTop: parseInt($(dist).offset().top)
488                    }, 300, "linear");       
489                }
490         }, 300
491        ); 
492      }
493    );
494
495}
496
497
498function parseCount(newVal, step, minVal){
499
500
501    var ost = newVal % step;
502    var step_ = step - ost;
503
504    newVal = newVal - minVal;
505    newVal -= (newVal % step);
506
507    if(step_ >= ost)
508    {
509        newVal += minVal;
510    }
511
512    else
513    {
514        newVal += minVal + step;
515    }
516
517
518    if (newVal <= minVal || isNaN(newVal))
519        newVal = minVal;
520
521    return newVal;
522}
523
524function formatNum(val){
525    val = String(val).replace(/(\d)(?=(\d{3})+([^\d]|$))/g, '$1 ');
526    return val;
527}
528
529function openBox(from_mod_cat){
530
531    if (from_mod_cat != "Y"){
532        $('body').addClass('modal-open');
533        $('.wrapper').addClass('blur');
534    }
535
536    if (from_mod_cat == "Y")
537        $(".wrap-modal.open").addClass('blur');
538
539    $('.no-click-block').addClass('double');
540    $('div.box-parent').addClass('open');
541
542    var cartOut = setTimeout(
543        function(){
544            $('div.box-parent').addClass('on');
545            clearTimeout(cartOut);
546        }, 200
547    ); 
548
549    $('.lazyload', 'div.box-parent').each(
550        function(index, element)
551        {
552            $(element).attr("src", $(element).attr("data-src"));
553            $(element).removeAttr('data-src');
554        }
555    );
556}
557
558function updateBox(button, countBox, idboxEl, action, other_complect, redirect){
559
560    var from_mod_cat = "N";
561
562    site_id = $("input.site_id").val();
563    sect = $("input.sect").val();
564    
565
566    if ($(".wrap-modal").hasClass('open'))
567        from_mod_cat = "Y";
568
569    $.ajax({
570        method: 'POST',
571        url: '/bitrix/templates/concept_hameleon/ajax/cart/cart.php',
572        dataType: 'json',
573        data:{
574            idboxEl: idboxEl,
575            countBox: countBox,
576            sect: sect,
577            site_id: site_id,
578            action: action,
579            other_complect: other_complect
580        },
581        success: function(json){
582
583            callToBox("products", "N", action, button);
584            callToBox("info_table", "N", action, button);
585            callToBox("mini_cart", from_mod_cat, action);
586            callToBox("mini_cart_mob", "N", action);
587
588
589            if (action == "add"){
590
591                if (button.hasClass('added') || button.parents(".catalog-block").hasClass('first-click-box')){
592
593                    var addOut = setTimeout(
594                        function(){
595
596                            openBox(from_mod_cat);
597
598                            if (button.parents(".catalog-block").hasClass('first-click-box'))
599                                $(".catalog-block").removeClass('first-click-box');
600
601                            clearTimeout(addOut);
602
603                        }, 350);
604                }
605
606                $(".click_box[data-box-id=" + idboxEl + "]").addClass('added');
607
608            }
609
610
611            if (action == "delete")
612                $(".click_box.added[data-box-id='" + button.attr("data-box-id") + "']").removeClass('added');
613
614            if (action == "clear")
615            {
616                $(".click_box.added").removeClass('added');
617                if(device.ios()){
618                    $("body").removeClass("modal-ios");
619                    window.scrollTo(0, cur_pos);
620                }
621            }
622
623
624            if (json.EMPTY == "Y"){
625
626                if (!$(".wrap-modal.open").hasClass('blur')){
627                    $('body').removeClass('modal-open');
628                    $('.wrapper').removeClass('blur');
629                }
630
631                if ($(".wrap-modal.open").hasClass('blur'))
632                    $(".wrap-modal.open").removeClass('blur');
633
634                $('div.box-parent').removeClass('on');
635                $('.no-click-block').removeClass('double');
636                $('.first-click-box-on').addClass('first-click-box');
637
638                var addOut2 = setTimeout(
639                    function(){
640                        $('div.box-parent').removeClass('open');
641                        clearTimeout(addOut2);
642                    }, 700
643                );
644
645            }
646
647            if(redirect.length > 0)
648            {
649                location.href = redirect;
650            }
651
652
653        }
654    });
655
656    
657}
658
659function callToBox(templ, modal_mode, action, button){
660
661    var preload = false;
662    site_id = $("input.site_id").val();
663    sect = $("input.sect").val();
664    
665    if (typeof(button) != "undefined" && typeof(action) != "undefined" && (action == "update" || action == "delete"))
666    {
667        $(".total-parent-preload-circleG").addClass('active');
668        preload = true;
669
670        if(action == "update")
671            button.parents(".parent-preload-circleG-wrap").find(".parent-preload-circleG").addClass('active');       
672    }
673
674    $.post('/bitrix/components/concept/hameleon_cart/ajax.php',{
675            templ: templ,
676            sect: sect,
677            site_id: site_id,
678            modal_mode: modal_mode,
679            link_empty_box: link_empty_box
680        },
681
682        function(html){
683
684            if(preload)
685            {
686                var ctbOut = setTimeout(
687                    function(){
688                        $(".area_for_" + templ).html(html);
689                        $('.lazyload').Lazy(paramsLazy);
690                        clearTimeout(ctbOut);
691                    }, 800);
692            }
693            else
694            {
695                $(".area_for_" + templ).html(html);
696                $('.lazyload').Lazy(paramsLazy);
697            }
698        }
699    );
700
701    
702}
703
704function getChar(evt){
705
706    evt = (evt) ? evt : window.event;
707    var charCode = (evt.which) ? evt.which : evt.keyCode;
708    if (charCode > 31 && (charCode < 46 || charCode > 57)) {
709        return null;
710    }
711    return true;
712}
713
714function timerCookie(form){
715    var timeout = true;
716    var timer = form.find('input.timerVal').val();
717    var forCookieTime = parseFloat(form.find('input.forCookieTime').val());
718    var totalTime = 0;
719    var mainTime = new Date().getTime();
720    var idElem = form.find('input#element').val();
721    var idSect = form.find('input.idSect').val();
722    var firstEnter = BX.getCookie('_hamelFirstEnter' + idSect + idElem);
723    var firstEnterVal = BX.getCookie('_hamelFirstEnterVal' + idSect + idElem);
724
725    var cookieOut = setTimeout(
726        function(){
727            form.css('min-height', form.outerHeight());
728            clearTimeout(cookieOut);
729        }, 100);
730
731    form.find('.hameltimer').addClass('active');
732
733    if(forCookieTime <= 0)
734        forCookieTime = 1;
735
736
737    if (typeof(firstEnter) == "undefined" || firstEnterVal != timer){
738        BX.setCookie('_hamelFirstEnter' + idSect + idElem, mainTime,{
739            expires: forCookieTime * 60 * 60
740        });
741        BX.setCookie('_hamelFirstEnterVal' + idSect + idElem, timer,{
742            expires: forCookieTime * 60 * 60
743        });
744        firstEnter = BX.getCookie('_hamelFirstEnter' + idSect + idElem);
745        firstEnterVal = BX.getCookie('_hamelFirstEnterVal' + idSect + idElem);
746    }
747
748    totalTime = ((mainTime - firstEnter) / 1000).toFixed();
749
750    if (totalTime < timer * 60)
751        timer = timer * 60 - totalTime;
752
753    else{
754        timeout = false;
755    }
756
757
758
759    if (timeout)
760        form.find('.hameltimer').countdown({
761            until: timer,
762            format: 'HMS',
763            onExpiry: liftOff,
764            layout: form.find('.hameltimer').html()
765        }, $.countdown.regionalOptions['ru']);
766
767    else{
768        form.find('.questions').removeClass('active');
769        form.find('.timeout_text').addClass('active');
770    }
771
772
773    function liftOff(){
774        form.find('.questions').removeClass('active');
775        form.find('.timeout_text').addClass('active');
776    }
777
778    
779}
780
781
782Share = {
783    vkontakte: function(purl, ptitle, pimg, text){
784        url = 'http://vkontakte.ru/share.php?';
785        url += 'url=' + encodeURIComponent(purl);
786        url += '&title=' + encodeURIComponent(ptitle);
787        url += '&description=' + encodeURIComponent(text);
788        url += '&image=' + encodeURIComponent(pimg);
789        url += '&noparse=false';
790        Share.popup(url);
791    },
792    facebook: function(purl, ptitle, pimg, text){
793        url = 'https://www.facebook.com/sharer/sharer.php?';
794        url += '&title=' + encodeURIComponent(ptitle);
795        url += '&description=' + encodeURIComponent(text);
796        url += '&u=' + encodeURIComponent(purl);
797        url += '&picture=' + encodeURIComponent(pimg);
798        Share.popup(url);
799    },
800    twitter: function(purl, ptitle){
801        url = 'http://twitter.com/share?';
802        url += 'text=' + encodeURIComponent(ptitle);
803        url += '&url=' + encodeURIComponent(purl);
804        url += '&counturl=' + encodeURIComponent(purl);
805        Share.popup(url);
806    },
807
808
809    popup: function(url){
810        window.open(url, '', 'toolbar=0,status=0,width=626,height=436');
811    }
812};
813
814
815
816var link_empty_box = $("input.link_empty_box").val();
817
818
819
820function controllerSliders(obj)
821{
822    if(obj)
823    {
824        if(!obj.hasClass('slider-init'))
825        {
826            if( obj.hasClass('advantages-big-slide'))
827                initAdvantagesBigSlider(obj);
828
829            if( obj.hasClass('advantages-small-slide'))
830                initAdvantagesSmallSlider(obj);
831
832            if( obj.hasClass('slider-gallery'))
833                initGallerySlider(obj);
834
835            if( obj.hasClass('slider-services'))
836                initServiceSlider(obj);
837
838            if( obj.hasClass('opinion-slider'))
839                initOpSlider(obj);
840
841            if( obj.hasClass('tariff-flat'))
842                initTariffsElements(obj);
843        }
844    }
845}
846
847function setChangerBlocks() {
848    $("div.changer-blocks").each(
849        function()
850        {
851            var block = $(this);
852            
853            $("div.changer-link-js", block).each(
854                function(index, value)
855                {
856                    var arIds = $(this).attr("data-id").split(",");
857
858                    if(arIds)
859                    {
860                        for (var i = 0; i < arIds.length; i++) {
861
862                            if($(this).hasClass("active"))
863                            {
864                                $("div#block"+arIds[i]).removeClass("hidden");
865                                $('.lazyload').Lazy(paramsLazy);
866
867                                var obj = $("div#block"+arIds[i]).find(".parent-slider-item-js");
868
869                                controllerSliders(obj);
870                            }
871                            
872                        }
873                    }
874                    
875                }
876            );
877        }
878    );
879    
880    
881    $("div.changer-link-js").click(
882        function()
883        {
884            var block = $(this).parents("div.changer-blocks");
885            
886            $("div.changer-link-js", block).removeClass("active");
887            $(this).addClass("active");
888            
889             $("div.changer-link-js", block).each(
890                function(index, value)
891                {
892                    var arIds = $(this).attr("data-id").split(",");
893
894                    if(arIds)
895                    {
896                        for (var i = 0; i < arIds.length; i++) {
897                            $("div#block"+arIds[i]).addClass("hidden");
898                        }
899                    }
900                    
901                }
902            );
903
904            var arIds = $(this).attr("data-id").split(",");
905
906            if(arIds)
907            {
908                for (var i = 0; i < arIds.length; i++) {
909                    $("div#block"+arIds[i]).removeClass("hidden");
910                    $('.lazyload').Lazy(paramsLazy);
911                    var obj = $("div#block"+arIds[i]).find(".parent-slider-item-js");
912                    controllerSliders(obj);
913                }
914            }
915            
916            
917
918            
919        }
920    );
921}
922
923$(document).ready(
924    function(){
925
926        if ( $(window).width() >= 991 )
927            $(".slide-hidden-lg").remove();
928        
929        else
930        {
931            $(".slide-hidden-xs").remove();
932        }
933
934        /*if ( $(window).width() >= 768)
935            $('div.wrap-first-slider.visible-xs').remove();
936        
937
938        if ( $(window).width() < 768)
939            $('div.wrap-first-slider.hidden-xs').remove();*/
940
941
942
943        if(device.ios())
944            $('div.block.parallax-attachment').removeClass('parallax-attachment');
945        
946        
947
948        link_empty_box = $("input.link_empty_box").val();
949        cur_pos = $(document).scrollTop();
950
951        if ($(window).width() < 767)
952        {
953            var anim_callmob_in = setTimeout(
954            function(){
955                $(".callphone-desc").show().addClass('active');
956                clearTimeout(anim_callmob_in);
957            }, 5000);
958
959            var anim_callmob_out = setTimeout(
960            function(){
961                $(".callphone-desc").removeClass('active');
962           
963                clearTimeout(anim_callmob_out);
964            }, 12000);
965
966            var anim_callmob_out2 = setTimeout(
967            function(){
968                $(".callphone-desc").hide();
969           
970                clearTimeout(anim_callmob_out2);
971            }, 12500);
972        }
973        
974        if ($(window).width() > 767){
975            new WOW().init();
976            $(window).enllax();
977
978            var wow = new WOW({
979                boxClass: 'parent-animate',
980                animateClass: 'animated',
981                offset: 0,
982                mobile: true,
983                live: true,
984                callback: function(box){
985                    var sec = 0;
986
987                    $("div.child-animate", box).each(
988                        function(){
989                            var elem = $(this);
990
991                            var wowOut = setTimeout(
992                                function(){
993                                    elem.removeClass("opacity-zero").addClass("animated fadeIn");
994                                    clearTimeout(wowOut);
995
996                                }, sec);
997
998                            sec += 500;
999
1000                        }
1001                    );
1002                },
1003                scrollContainer: null
1004            });
1005            wow.init();
1006        }
1007
1008        $('[data-toggle="tooltip"]').tooltip({
1009                    html:true,
1010                    container: "body"
1011                }); 
1012
1013        if ($(window).width() > 767){
1014            var scrllOut = setTimeout(
1015                function(){
1016                    $('div.down-scroll').addClass('active');
1017                    clearTimeout(scrllOut);
1018                }, 2500);
1019        }
1020
1021        
1022
1023        updateLazyLoad();
1024
1025
1026        $('.slider-news').slick({
1027            slidesToShow: 3,
1028            slidesToScroll: 1,
1029            dots: false,
1030            infinite: false,
1031            centerPadding: 0,
1032            centerMode: false,
1033            adaptiveHeight: false,
1034            focusOnSelect: false,
1035            responsive: [{
1036
1037                    breakpoint: 1200,
1038                    settings:{
1039                        slidesToShow: 3,
1040                        infinite: true,
1041                    }
1042
1043                },{
1044
1045                    breakpoint: 991,
1046                    settings:{
1047                        slidesToShow: 2
1048                    }
1049
1050                },
1051               {
1052
1053                    breakpoint: 767,
1054                    settings:{
1055                        slidesToShow: 1
1056
1057                    }
1058
1059                },
1060               {
1061
1062                    breakpoint: 0,
1063                    settings: "unslick" 
1064
1065                }]
1066        });
1067
1068
1069        if ($(window).width() > 1200){
1070
1071            $('.elem-hover').hover(
1072
1073                function(){
1074                    var total = parseInt($(this).find('.elem-hover-height-more').css('margin-bottom')) + $(this).find('.elem-hover-height').outerHeight(true);
1075                    $(this).css({
1076                        'height': total + 'px'
1077                    });
1078                    $(this).find('div.elem-hover-show').slideDown(150);
1079                },
1080
1081                function(){
1082                    $(this).find('div.elem-hover-show').slideUp(100);
1083                }
1084
1085            );
1086
1087        }
1088
1089        $("form.timer_form").each(
1090            function(){
1091                timerCookie($(this));
1092            }
1093        );
1094        /* open contacts on hover*/
1095        if ($(window).width() >= 1200){
1096            $('header .main-phone div.element.phone').hover(
1097                function(){
1098                    var itThis = $(this);
1099
1100                    $.data(this, 'timer', setTimeout($.proxy(function(){
1101
1102                        $(itThis).parents(".main-phone").find('.list-contacts').stop(true, true).addClass('open');
1103
1104                    }, this), 300));
1105
1106
1107                },
1108                function(){
1109                    clearTimeout($.data(this, 'timer'));
1110                });
1111
1112
1113            $('header .main-phone div.ic-open-list-contact.open-list-contact').hover(
1114                function(){
1115
1116                    var itThis = $(this);
1117
1118                    $.data(this, 'timer', setTimeout($.proxy(function(){
1119
1120                        $(itThis).parents(".main-phone").find('.list-contacts').stop(true, true).addClass('open');
1121
1122                    }, this), 300));
1123
1124
1125                },
1126                function(){
1127
1128                    clearTimeout($.data(this, 'timer'));
1129
1130                });
1131
1132
1133            $('header .list-contacts').hover(
1134                function(){},
1135                function(){
1136                    $(this).removeClass('open');
1137                });
1138
1139        }
1140        else{
1141
1142            $('header .main-phone div.element.phone').click(
1143                function(){
1144                    var itThis = $(this);
1145                    $(itThis).parents(".main-phone").find('.list-contacts').stop(true, true).addClass('open');
1146                }
1147            );
1148
1149
1150            $('header .main-phone div.ic-open-list-contact.open-list-contact').hover(
1151                function(){
1152                    var itThis = $(this);
1153                    $(itThis).parents(".main-phone").find('.list-contacts').stop(true, true).addClass('open');
1154
1155                }
1156            );
1157
1158
1159            $(document).mouseup(
1160                function(e){
1161                    var div = $("header .list-contacts");
1162
1163                    if (!div.is(e.target) && div.has(e.target).length === 0 && div.hasClass("open")){
1164                        div.removeClass('open');
1165
1166                    }
1167                }
1168            );
1169
1170        }
1171
1172
1173        if ($(window).width() > 1024){
1174
1175
1176            $('.services').find('.service-item').hover(
1177
1178                function(){
1179                    var element_height = $(this).find('.service-element').height();
1180                    var element_bot_height = $(this).find('.bot-wrap').height();
1181                    var need_height = element_height - element_bot_height;
1182                    $(this).css({
1183                        'height': need_height + 'px'
1184                    });
1185                },
1186
1187                function(){
1188                    $(this).css({
1189                        'height': 'auto'
1190                    });
1191                }
1192
1193            );
1194
1195        }
1196        else{
1197            $('.services').find('.service-item').hover(
1198                function(){
1199                    $(this).css({
1200                        'height': 'auto'
1201                    });
1202                }
1203            );
1204        }
1205
1206
1207        /* slider*/
1208
1209        if($("div").is(".slider-services"))
1210        {
1211
1212            function slide_animation_out(slider){
1213
1214                var animOut = setTimeout(function(){
1215                    slider.find('.slick-current .image-wrap img').addClass('animated zoomOutRight');
1216                    clearTimeout(animOut);
1217                }, 500);
1218
1219                var animOut2 = setTimeout(function(){
1220                    slider.find('.image-wrap img').removeClass('show-on');
1221                    slider.find('.image-wrap img').removeClass('animated zoomOutRight');
1222                    clearTimeout(animOut2);
1223                }, 1500);
1224
1225                var animOut3 = setTimeout(function(){
1226                    slider.find('.images-animate .slick-current img').addClass('animated fadeOutLeft');
1227                    clearTimeout(animOut3);
1228                }, 500);
1229
1230                var animOut4 = setTimeout(function(){
1231                    slider.find('.images-animate img').removeClass('show-on');
1232                    slider.find('.images-animate img').removeClass('animated fadeOutLeft');
1233                    clearTimeout(animOut4);
1234                }, 1500);
1235
1236
1237                slider.find('.slick-current .text-wrap').addClass('animated fadeOut');
1238
1239
1240                var animOut5 = setTimeout(function(){
1241                    slider.find('.text-wrap').removeClass('show-on');
1242                    slider.find('.text-wrap').removeClass('animated fadeOut');
1243                    clearTimeout(animOut5);
1244                }, 1500);
1245            }
1246
1247            function slide_animation_in(slider){
1248
1249                slider.find('.slick-current .image-wrap img').addClass('animated fadeInLeft');
1250                slider.find('.slick-current .image-wrap img').addClass('show-on');
1251
1252                var animIn = setTimeout(function(){
1253                    slider.find('.image-wrap img').removeClass('animated fadeInLeft');
1254                    clearTimeout(animIn);
1255
1256                }, 1000);
1257
1258                slider.find('.images-animate .slick-current img').addClass('animated fadeInRight');
1259                slider.find('.images-animate .slick-current img').addClass('show-on');
1260
1261                var animIn1 = setTimeout(function(){
1262                    slider.find('.images-animate img').removeClass('animated fadeInRight');
1263                    clearTimeout(animIn1);
1264                }, 1000);
1265
1266
1267                slider.find('.text-wrap').removeClass('animated fadeIn');
1268
1269                var animIn2 = setTimeout(function(){
1270                    slider.find('.slick-current .text-wrap').addClass('show-on');
1271                    slider.find('.slick-current .text-wrap').addClass('animated fadeIn');
1272                    clearTimeout(animIn2);
1273                }, 1000);
1274            }
1275
1276            $('.slider-services-wrap button.slick-prev').click(
1277
1278                function()
1279                {
1280                    var slider = $(this).closest('.block');
1281
1282                    if ($(window).width() > 767){
1283                        slide_animation_out(slider);
1284
1285                        var servOut = setTimeout(function(){
1286                            slider.find('.slider-services').slick("slickPrev");
1287                            slider.find('.slider-services-images').slick("slickPrev");
1288
1289                            slide_animation_in(slider);
1290
1291                            clearTimeout(servOut);
1292
1293                        }, 1500);
1294                    }
1295
1296                    else{
1297                        slider.find('.slider-services').slick("slickPrev");
1298
1299                    }
1300
1301
1302
1303
1304                }
1305
1306            );
1307
1308            $('.slider-services-wrap button.slick-next').click(
1309                function()
1310
1311               {
1312                    var slider = $(this).closest('.block');
1313
1314                    if ($(window).width() > 767){
1315
1316                        slide_animation_out(slider);
1317
1318                        var servOut = setTimeout(function(){
1319                            slider.find('.slider-services').slick("slickNext");
1320                            slider.find('.slider-services-images').slick("slickNext");
1321
1322                            slide_animation_in(slider);
1323
1324                            clearTimeout(servOut);
1325
1326                        }, 1500);
1327
1328                    }
1329
1330                    else{
1331                        slider.find('.slider-services').slick("slickNext");
1332
1333                    }
1334
1335
1336                }
1337
1338            );
1339        }
1340        /* ^slider*/
1341
1342
1343        /* expired*/
1344        $("div.expired-page").height($(document).height());
1345        $("div.error-404").height($(document).height());
1346        /*expired*/
1347
1348   
1349        
1350       
1351        
1352    }
1353
1354);
1355
1356$(document).ready(function() 
1357{
1358    if($('div.first-slider.slider-lg').length>0)
1359        initFSlider($('div.first-slider.slider-lg'), "lg");
1360
1361    if($('div.first-slider.slider-xs').length>0)
1362        initFSlider($('div.first-slider.slider-xs'), "xs");
1363
1364
1365    setChangerBlocks();
1366});
1367
1368function initFSlider(obj, size){
1369    var adaptiveMob = ($(window).width() < 768 && $(".wrap-first-slider").attr("data-mobile-height") == "Y") ? false : true,
1370        sizeSlides = $('div.first-slider div.first-block').length,
1371        params = {};
1372
1373
1374    if(size == "lg")
1375    {
1376        params = {
1377            dots: false,
1378            infinite: true,
1379            adaptiveHeight: false,
1380            speed: 500,
1381            pauseOnFocus: false,
1382            pauseOnHover: false
1383        };
1384    }
1385    else if(size == "xs")
1386    {
1387        params = {
1388            dots: false,
1389            infinite: true,
1390            adaptiveHeight: false,
1391            speed: 500,
1392            pauseOnFocus: false,
1393            pauseOnHover: false,
1394            responsive: [
1395                {
1396
1397                    breakpoint: 767,
1398                    settings:{
1399                        adaptiveHeight: adaptiveMob,
1400
1401                    }
1402
1403                },
1404                {
1405
1406                        breakpoint: 0,
1407                        settings: "unslick" 
1408
1409                }]
1410        };
1411    }
1412
1413    obj.on('init', function(event, slick){
1414        obj.find(".first-block").removeClass('noactive-slide-lazyload');
1415        obj.addClass("slider-init");
1416        if(obj.parents(".parent-video-bg").find(".videoBG").length>0){
1417            correctSizeVideoBg(obj.parents(".parent-video-bg").find(".videoBG"));
1418        }
1419    });
1420
1421    obj.on('beforeChange', function(event, slick, currentSlide, nextSlide)
1422        {
1423            $(".lazyload").Lazy();
1424        }
1425    );
1426
1427    if($(".wrap-first-slider").attr("data-autoslide") == "Y")
1428    {
1429        params["autoplaySpeed"] = $(".wrap-first-slider").attr("data-autoslide-time");
1430        params["autoplay"] = true;
1431    }
1432    
1433    obj.slick(params);
1434
1435    
1436
1437    if ( $(window).width() >= 768 || ($(window).width() < 768 && $(".wrap-first-slider").attr("data-mobile-height") == "Y"))
1438    {
1439
1440        var height1 = 0;
1441        var height2 = 0;
1442
1443
1444        $('div.first-slider div.first-block').each(
1445            function(index){
1446
1447                
1448                if ($(this).outerHeight() > height2){
1449                    height1 = $(this).height();
1450                    height2 = $(this).outerHeight();
1451                }
1452                
1453
1454                if(sizeSlides == index+1)
1455                {
1456
1457                    $('div.first-slider div.first-block-container').css("height", height1);
1458
1459                    if ( $(".wrap-first-slider").attr("data-desktop-height") == "Y")
1460                    {
1461                        if ($(window).height() > $(".wrap-first-slider").height())
1462                            $(".wrap-first-slider").find(".slick-track").css("height", $(window).height() +
1463                            "px");
1464                    }
1465
1466                    if ( ($(window).width() < 768 && $(".wrap-first-slider").attr("data-mobile-height") == "Y") )
1467                    {
1468                        if ($(window).height() > $(".wrap-first-slider").height())
1469                            $(".wrap-first-slider").find(".slick-track").css("height", $(window).height() +
1470                            "px");
1471                    }
1472
1473                    if(obj.find(".videoBG").length>0)
1474                    {
1475                        $(obj.find(".videoBG")).each(
1476                            function(index)
1477                            {
1478                                correctSizeVideoBg($(this));
1479                            }
1480                        );
1481                    }
1482                    
1483                }
1484
1485            }
1486        );
1487
1488        
1489    }
1490
1491
1492    if( $(window).width() < 768 )
1493    {
1494        if ( $(".wrap-first-slider").attr("data-mobile-height") == "Y")
1495        {
1496            if ($(window).height() > $(".wrap-first-slider").height())
1497                $(".wrap-first-slider").find(".slick-track").css("height", $(window).height() +
1498                "px");
1499
1500            console.log();
1501        }
1502    }
1503
1504}
1505
1506function initAdvantagesBigSlider(obj){
1507    obj.on('init', function(event, slick){
1508        obj.find(".slick-slide").removeClass('noactive-slide-lazyload');
1509        obj.addClass("slider-init");
1510        
1511        if(obj.parents(".parent-video-bg").find(".videoBG").length>0){
1512            correctSizeVideoBg(obj.parents(".parent-video-bg").find(".videoBG"));
1513        }
1514    });
1515
1516
1517    obj.slick({
1518        dots: true,
1519        adaptiveHeight: false
1520    });
1521}
1522
1523function initAdvantagesSmallSlider(obj){
1524    obj.on('init', function(event, slick){
1525        obj.find(".slick-slide").removeClass('noactive-slide-lazyload');
1526        obj.addClass("slider-init");
1527        if(obj.parents(".parent-video-bg").find(".videoBG").length>0){
1528            correctSizeVideoBg(obj.parents(".parent-video-bg").find(".videoBG"));
1529        }
1530    });
1531
1532
1533
1534    obj.slick({
1535        dots: true,
1536        slidesToShow: 2,
1537        adaptiveHeight: false,
1538        slidesToScroll: 2,
1539        responsive: [{
1540            breakpoint: 767,
1541            settings: {
1542                slidesToShow: 1,
1543                slidesToScroll: 1
1544            }
1545        }, {
1546            breakpoint: 0,
1547            settings: "unslick"
1548        }]
1549    });
1550}
1551
1552function initGallerySlider(obj){
1553    var count = parseInt(obj.attr("data-slide-visible"));
1554    obj.on('init', function(event, slick){
1555        obj.find(".slick-slide").removeClass('noactive-slide-lazyload');
1556        obj.addClass("slider-init");
1557        if(obj.parents(".parent-video-bg").find(".videoBG").length>0){
1558            correctSizeVideoBg(obj.parents(".parent-video-bg").find(".videoBG"));
1559        }
1560    });
1561
1562
1563    obj.slick({
1564        dots: true,
1565        adaptiveHeight: true,
1566        slidesToScroll: count,
1567        slidesToShow: count,
1568        responsive: [{
1569            breakpoint: 767,
1570            settings: {
1571                slidesToShow: 1,
1572                slidesToScroll: 1,
1573            }
1574        }, {
1575            breakpoint: 0,
1576            settings: "unslick"
1577        }]
1578    });
1579}
1580
1581
1582function tariffsHeightRound (obj)
1583{
1584                                   
1585    var cols = 0;
1586    var cur_row = 1;
1587
1588    var heights = new Array();
1589
1590    if($(window).width() >= 1200)
1591        cols = obj.attr("data-col-lg");
1592
1593    if($(window).width() >= 992 && $(window).width() <= 1199)
1594        cols = obj.attr("data-col-md");
1595
1596    if($(window).width() >= 768 && $(window).width() <= 991)
1597        cols = obj.attr("data-col-sm");
1598
1599    var quantity = obj.find(".tarif-element-inner").length;
1600    var max_height = 0;
1601
1602    obj.find(".tarif-element-inner").each(
1603        function(index){
1604            var cur_element = index + 1;
1605
1606
1607            if(max_height < $(this).height())
1608                max_height = $(this).height();
1609
1610
1611            if(cur_element % cols == 0 || cur_element == quantity)
1612            {
1613
1614                heights[cur_row] = max_height;                    
1615                cur_row++;
1616                max_height = 0;
1617            }
1618
1619        }
1620    );
1621
1622    cur_row = 1;
1623
1624    obj.find(".tarif-element-inner").each(
1625        function(index){
1626            var cur_element = index + 1;
1627            var top_height = $(this).find(".trff-top-part").height();
1628
1629            $(this).height(heights[cur_row]);
1630            $(this).find(".trff-top-part").height(top_height + (heights[cur_row] - $(this).find(".trff-top-part").height() - $(this).find(".trff-bot-part").height()));
1631
1632            if(cur_element % cols == 0)         
1633                cur_row++;
1634        }
1635    );
1636}
1637
1638function initTariffsElements(obj){
1639    if ($(window).width() > 767)
1640    {
1641        if(obj.attr("data-round-height") == "Y")
1642        {
1643            if(typeof($('.lazyload', obj))!="undefined")
1644            {
1645                if($('.lazyload', obj).length > 0)
1646                {
1647                    var countItems = $('.lazyload', obj).length;
1648                    $('.lazyload', obj).each(
1649                        function(index, element)
1650                        {
1651                            $(element).attr("src", $(element).attr("data-src"));
1652                            $(element).removeAttr('data-src');
1653
1654                            $(element).load(function()
1655                            {
1656                                if(index == countItems-1)
1657                                {
1658                                    tariffsHeightRound (obj);
1659                                }
1660                            });
1661                        }
1662                       
1663                    );
1664
1665                }
1666
1667                else
1668                {
1669                    tariffsHeightRound (obj);
1670                }
1671
1672            }
1673            
1674            
1675
1676        }
1677
1678
1679    }
1680
1681}
1682
1683function initOpSlider(obj){
1684    obj.on('init', function(event, slick){
1685        obj.find(".slick-slide").removeClass('noactive-slide-lazyload');
1686        obj.addClass("slider-init");
1687        
1688
1689        $('.lazyload', obj).each(
1690            function(index, element)
1691            {
1692                $(element).attr("src", $(element).attr("data-src"));
1693                $(element).removeAttr('data-src');
1694            }
1695           
1696        );
1697        if(obj.parents(".parent-video-bg").find(".videoBG").length>0){
1698            correctSizeVideoBg(obj.parents(".parent-video-bg").find(".videoBG"));
1699        }
1700    });
1701
1702    obj.on('beforeChange', function(event, slick, currentSlide, nextSlide){
1703         $('.lazyload', obj).each(
1704            function(index, element)
1705            {
1706                $(element).attr("src", $(element).attr("data-src"));
1707                $(element).removeAttr('data-src');
1708            }
1709           
1710        );
1711    });
1712
1713    var count = obj.attr('data-count');
1714
1715    if (count == 1)
1716    {
1717        $('.slider-for', obj).slick({
1718            slidesToShow: 1,
1719            arrows: false,
1720            asNavFor: obj.find('.slider-nav'),
1721            appendArrows: obj.find('.slider-nav-wrap')
1722        });
1723        $('.slider-nav', obj).slick({
1724            slidesToShow: 1,
1725            asNavFor: obj.find('.slider-for'),
1726            centerPadding: 0,
1727            dots: false,
1728            centerMode: true,
1729            focusOnSelect: true,
1730        });
1731        obj.addClass("one-slide");
1732    }
1733    else if (count == 2)
1734    {
1735        $('.slider-for', obj).slick({
1736            slidesToShow: 1,
1737            slidesToScroll: 1,
1738            speed: 300,
1739            fade: true,
1740            adaptiveHeight: true,
1741            arrows: false,
1742            asNavFor: obj.find('.slider-nav'),
1743            appendArrows: obj.find('.slider-nav-wrap')
1744        });
1745        $('.slider-nav', obj).slick({
1746            slidesToShow: 2,
1747            slidesToScroll: 1,
1748            speed: 300,
1749            asNavFor: obj.find('.slider-for'),
1750            centerPadding: 0,
1751            dots: false,
1752            centerMode: true,
1753            focusOnSelect: true,
1754            responsive: [{
1755                breakpoint: 1200,
1756                settings: {
1757                    slidesToShow: 2,
1758                    infinite: true,
1759                }
1760            }, {
1761                breakpoint: 991,
1762                settings: {
1763                    slidesToShow: 1
1764                }
1765            }, {
1766                breakpoint: 0,
1767                settings: "unslick"
1768            }]
1769        });
1770    } 
1771    else
1772    {
1773        $('.slider-for', obj).slick({
1774            slidesToShow: 1,
1775            slidesToScroll: 1,
1776            speed: 300,
1777            fade: true,
1778            adaptiveHeight: true,
1779            arrows: false,
1780            asNavFor: obj.find('.slider-nav'),
1781            appendArrows: obj.find('.slider-nav-wrap')
1782        });
1783        $('.slider-nav', obj).slick({
1784            slidesToShow: 3,
1785            slidesToScroll: 1,
1786            speed: 300,
1787            asNavFor: obj.find('.slider-for'),
1788            centerPadding: 0,
1789            dots: false,
1790            centerMode: true,
1791            focusOnSelect: true,
1792            responsive: [{
1793                breakpoint: 1200,
1794                settings: {
1795                    slidesToShow: 3,
1796                    infinite: true,
1797                }
1798            }, {
1799                breakpoint: 991,
1800                settings: {
1801                    slidesToShow: 1
1802                }
1803            }, {
1804                breakpoint: 0,
1805                settings: "unslick"
1806            }]
1807        });
1808    }
1809
1810}
1811
1812function initServiceSlider(obj){
1813
1814    obj.on('init', function(event, slick){
1815
1816        var sliderHeightMax = 0;
1817
1818        obj.find(".element-table").each(
1819            function(){
1820                if ($(this).height() > sliderHeightMax){
1821                    sliderHeightMax = $(this).height();
1822                }
1823
1824            }
1825        );
1826
1827        obj.find(".element-table").height(sliderHeightMax);
1828        obj.find(".slick-slide").removeClass('noactive-slide-lazyload');
1829        obj.addClass("slider-init");
1830        if(obj.parents(".parent-video-bg").find(".videoBG").length>0){
1831            correctSizeVideoBg(obj.parents(".parent-video-bg").find(".videoBG"));
1832        }
1833    });
1834
1835
1836    obj.parents("div.block").find('.slider-services-images').on('init', function(event, slick){
1837        obj.parents("div.block").find('.slider-services-images').find(".slick-slide").removeClass('noactive-slide-lazyload');
1838    });
1839
1840    
1841
1842    obj.slick({
1843        slidesToShow: 1,
1844        slidesToScroll: 1,
1845        speed: 0,
1846        fade: true,
1847        adaptiveHeight: false,
1848        arrows: false,
1849        swipe: false,
1850        touchMove: false,
1851        asNavFor: obj.parents("div.block").find('.slider-services-images')
1852    });
1853
1854    obj.parents("div.block").find('.slider-services-images').slick({
1855        slidesToShow: 1,
1856        slidesToScroll: 1,
1857        asNavFor: obj.parents("div.block").find('.slider-services'),
1858        centerPadding: 0,
1859        arrows: false,
1860        speed: 0,
1861        fade: true,
1862        dots: false,
1863        centerMode: true,
1864        focusOnSelect: true
1865    });
1866}
1867
1868$(window).load(
1869    function()
1870    {
1871        var url = location.href;
1872        url = url.split("#");
1873
1874        if (typeof(url[1]) != "undefined"){
1875         
1876            if(url[1].length<20)
1877            {
1878                if($("#"+url[1]).length>0)
1879                    scrollToBlock("#" + url[1], false);
1880            }
1881        }
1882    }
1883);
1884
1885
1886
1887$(window).load(
1888    function()
1889    {
1890        if(customEvent)
1891            updateLazyLoad();
1892    }
1893);
1894
1895function buildMenu()
1896{
1897    if($(".menu-type2").hasClass("active") || $(".menu-type3").hasClass("active")){
1898        var menu = $('.menu-type2').find('.main-menu-nav');
1899        var totalWidth = menu.parents('div.nav-wrap').width() - menu.parents('div.nav-wrap').find("div.burger").width();
1900
1901        menu.parents('div.nav-wrap').find("div.burger").addClass("noactive");
1902
1903        if ($(document).width() > 767){
1904            var visible = 0;
1905       
1906            
1907            var size = menu.find('li.lvl1').length;
1908            menu.find('li.lvl1').each(
1909                function(index){
1910
1911                    if (visible == 3){
1912                        $(this).parent().addClass("full-area");
1913                    }
1914                    if (totalWidth > ($(this).width())){
1915                        totalWidth = totalWidth - $(this).width();
1916                        $(this).addClass('visible');
1917                        visible++;
1918
1919                        if(size == (index+1))  
1920                            $(".menu-type2").addClass('ready');                      
1921                    }
1922                    else{
1923
1924                        menu.parents('div.nav-wrap').find("div.burger").addClass("active").removeClass("noactive");
1925                        $(".menu-type2").addClass('ready');
1926                        return false;
1927                    }
1928
1929                }
1930            );
1931        }
1932    }
1933}
1934
1935$(document).ready(function() {
1936    buildMenu();
1937});
1938
1939
1940$(window).load(
1941    function(){
1942
1943
1944        if($(window).width()>767  && $("header").hasClass('menu-scroll-open'))
1945        {
1946
1947			var menuSlide = $('.menu-slide').find('.main-menu-nav-slide');
1948			var totalWidthSlide = menuSlide.parents("div.wrapper-main-menu").width() - menuSlide.parents("div.menu-slide-wrap").find("div.burger-slide").width();
1949			var visibleSlide=0;
1950
1951            menuSlide.parents("div.menu-slide-wrap").find("div.burger-slide").addClass("noactive");
1952
1953
1954
1955			menuSlide.find('li.lvl1').each(
1956			function(index) 
1957			{
1958
1959				if(totalWidthSlide > ($(this).width()))
1960				{
1961				    totalWidthSlide = totalWidthSlide - $(this).width();
1962				    $(this).addClass('visible');
1963			    	visibleSlide++;
1964
1965				}
1966				else
1967				{
1968                    menuSlide.parents("div.menu-slide-wrap").find("div.burger-slide").addClass("active").removeClass("noactive");
1969				    return false;
1970				}
1971
1972				
1973
1974			}
1975
1976			);
1977        }
1978        
1979        $("div.box-body-height").css("top", $("div.box-head-height").outerHeight()+"px");
1980        
1981    }
1982);
1983
1984function correctSizeVideoBg(obj)
1985{
1986    var height = obj.parents('.parent-video-bg').outerHeight();
1987    var videoThis = obj.find(".video-bg-display");
1988
1989    var width = $(window).width();
1990
1991    var video_w = 0;
1992    var video_h = 0;
1993
1994    var add = 4;
1995
1996    if (width / height < 16 / 9){
1997        video_w = height * 16 / 9 + add;
1998        video_h = height + add;
1999    }
2000
2001    else{
2002        video_w = width + add;
2003        video_h = width * 9 / 16 + add;
2004    }
2005
2006    videoThis.width(video_w).height(video_h);
2007    videoThis.addClass('active');
2008}
2009
2010
2011function generateVideoBG(container)
2012{
2013    if($(window).width() >= 1200 || ($(window).width() >= 768 && $(window).width() < 1200 && !device.android() && !device.ios()) )
2014    {
2015        var videoBG = $(".videoBG", container),
2016            iframeType = videoBG.attr("data-type"),
2017            srcMP4 = videoBG.attr("data-srcMP4"),
2018            srcWEBM = videoBG.attr("data-srcWEBM"),
2019            srcOGG = videoBG.attr("data-srcOGG"),
2020            srcYB = videoBG.attr("data-srcYB"),
2021            html = "";
2022
2023
2024
2025        if(iframeType == "file")
2026        {
2027            if(videoBG.children('video').length <= 0)
2028            {
2029                if( srcMP4 )
2030                    html += '<source src="'+srcMP4+'" type="video/mp4">';
2031
2032                if( srcWEBM )
2033                    html += '<source src="'+srcWEBM+'" type="video/webm">';
2034
2035                if( srcOGG )
2036                    html += '<source src="'+srcOGG+'" type="video/ogg">';
2037
2038
2039                html = '<video class="video-bg-display" autoplay="autoplay" loop="loop" preload="auto" muted="muted">'+html+'</video>';
2040            }
2041        }
2042
2043        else if(iframeType == "iframe")
2044        {
2045
2046            if(videoBG.children('iframe').length <= 0)
2047            {
2048                if( srcYB )
2049                    html += '<iframe src="'+srcYB+'" class="video-bg-display" allowfullscreen="" frameborder="0" height="100%" width="100%"></iframe>';
2050            }
2051        }
2052
2053        if( html )
2054            videoBG.prepend(html);
2055
2056        correctSizeVideoBg(videoBG);
2057                
2058    }
2059}
2060
2061/*click-scroll*/
2062$(document).on("click", "a.scroll",
2063    function(){
2064        var elementClick = $(this).attr("href");
2065
2066        if ($(this).hasClass('close-from-menu')){
2067
2068            $('.slide-menu').removeClass('on');
2069            var mnuOut = setTimeout(
2070                function(){
2071                    $('.slide-menu').removeClass('open');
2072                    clearTimeout(mnuOut);
2073
2074                }, 1000);
2075            $('body').removeClass('menu-open');
2076            $('.wrapper').removeClass('blur-menu');
2077            $('a.menu-slide-close').addClass('hidden').removeClass('on');
2078            $('div.no-click-block').removeClass('on');
2079        }
2080
2081        if ($(this).hasClass('from-tariff')){
2082            $('body').removeClass('modal-open');
2083            $('.wrapper').removeClass('blur');
2084            $('div.no-click-block').removeClass('on');
2085            $(this).parents(".wrap-modal").removeClass("open");
2086        }
2087
2088
2089        
2090
2091        
2092        scrollToBlock(elementClick);
2093
2094        return false;
2095
2096        
2097    }
2098);
2099
2100
2101/*catalog-modal tabs in detail cart*/
2102$(document).on('click', 'ul.tab-child li:not(.active)',
2103    function(){
2104        $(this).addClass('active').siblings().removeClass('active').closest('div.tab-parent').find('div.tab-content').removeClass('active').eq($(this).index()).addClass('active');
2105        
2106    }
2107);
2108
2109
2110/*catalog-modal-tabs-images in detail cart*/
2111$(document).on('click', 'div.image-dots div.image-wrap-dot:not(.active)',
2112    function(){
2113        $(this).addClass('active').siblings().removeClass('active').closest('div.images-content').find('div.image-child').removeClass('active').eq($(this).index()).addClass('active');
2114        
2115    }
2116);
2117
2118
2119/*for catalog completcs view radiobutton*/
2120$(document).on('click', 'div.catalog-body div.price-radio label:not(.active)',
2121    function(){
2122        $(this).addClass('active').siblings().removeClass('active');
2123        
2124    }
2125);
2126
2127
2128$(document).on('click', 'ul.switcher-tab li:not(.active)',
2129    function(){
2130        $(this).addClass('active').siblings().removeClass('active').closest('div.switcher').find('div.switcher-wrap').removeClass('active').eq($(this).index()).addClass('active');
2131        
2132    }
2133);
2134
2135$(document).on('click', 'a[data-button="wind-modal"]',
2136    function(){
2137        $('div.wrapper').addClass('blur');
2138        $("div.click-for-reset").addClass("on");
2139        
2140    }
2141);
2142
2143
2144$(document).on('click', 'a[data-button="wind-in-modal"]',
2145    function(){
2146        $('div.wrapper').addClass('blur');
2147        $(this).closest('.wrap-modal.open').addClass('blur');
2148        $("div.click-for-reset").addClass("on");
2149        
2150    }
2151);
2152
2153
2154$(document).on('click', 'a.map-show',
2155    function(){
2156        $(this).parent().hide();
2157        $(this).parents('div.map-block').find(".map-height").show();
2158        
2159    }
2160);
2161
2162/*for descriptive tabs*/
2163$(document).on("click", "ul.tabs li:not(.active)",
2164    function(){
2165        $(this).addClass('active').siblings().removeClass('active').closest('div.descriptive-tabs-wrap').find('div.image-content').removeClass('active').eq($(this).index()).addClass('active');
2166        $('.lazyload').Lazy(paramsLazy);
2167    }
2168);
2169
2170
2171/*for descriptive show mob-tab*/
2172$(document).on("click", "div.mob-tab",
2173    function(){
2174        var block = $(this).parent("div.image-content");
2175
2176        if (!$(this).hasClass("active")){
2177
2178            if ($("img", block).attr("data-src"))
2179            {
2180                var _this = $(this);
2181
2182                $("img", block).Lazy({
2183                    afterLoad: function (element) {
2184                        $("img", block).removeAttr('style');
2185
2186                        _this.addClass("active");
2187
2188                        $("div.mob-content", block).slideDown(200, function() {
2189                            $(this).removeClass("active");
2190                        });
2191                    }
2192                });
2193            } 
2194            else
2195            {
2196                $(this).addClass("active");
2197                $("div.mob-content", block).slideDown(200, function() {
2198                    $(this).removeClass("active");
2199                });
2200            }
2201
2202        }
2203
2204        else{
2205            $(this).removeClass("active");
2206
2207
2208            $("div.mob-content", block).slideUp(200,
2209                function(){
2210                    $(this).removeClass("active");
2211                }
2212            );
2213        }
2214
2215        
2216    }
2217);
2218
2219
2220
2221
2222/*open slide-menu*/
2223$(document).on("click", "a.click-op-menu",
2224    function(){
2225        var button = $(this);
2226        $('.menu-slide-close').removeClass('hidden');
2227        $('.slide-menu').addClass('open');
2228
2229        size_slide_menu();
2230
2231        var mnuOut = setTimeout(
2232            function(){
2233                $('.slide-menu').addClass('on');
2234                clearTimeout(mnuOut);
2235            }, 100);
2236
2237        $('body').addClass('menu-open');
2238        $('.wrapper').addClass('blur-menu');
2239        $('div.no-click-block').addClass('on');
2240
2241        var mnuOut2 = setTimeout(
2242            function(){
2243                $('.menu-slide-close').addClass('on');
2244                clearTimeout(mnuOut2);
2245            }, 800);
2246
2247        $('.lazyload').Lazy(paramsLazy);
2248
2249        
2250    }
2251);
2252
2253
2254$(document).on("click", "a.click-cl-menu",
2255    function(){
2256        var button = $(this);
2257
2258        $('.slide-menu').removeClass('on');
2259        var mnuOut = setTimeout(
2260            function(){
2261                $('.slide-menu').removeClass('on');
2262                clearTimeout(mnuOut);
2263
2264            }, 1000);
2265        $('body').removeClass('menu-open');
2266        $('.wrapper').removeClass('blur-menu');
2267        button.addClass('hidden').removeClass('on');
2268        $('div.no-click-block').removeClass('on');
2269        
2270    }
2271);
2272
2273
2274/*key only numbers*/
2275$(document).on("keypress", "form.form div.count input",
2276    function(e){
2277        e = e || event;
2278
2279        if (e.ctrlKey || e.altKey || e.metaKey) return;
2280
2281        var chr = getChar(e);
2282
2283        if (chr == null) return false;
2284
2285    }
2286);
2287
2288
2289$(document).on("keyup", "form.form div.count input",
2290    function(e){
2291        var value = $(this).val().toString();
2292
2293        var newVal = "";
2294
2295        for (var i = 0; i < value.length; i++){
2296            if (value[i] == "0" || value[i] == "1" || value[i] == "2" || value[i] == "3" || value[i] == "4" || value[i] == "5" || value[i] == "6" || value[i] == "7" || value[i] == "8" || value[i] == "9")
2297                newVal += value[i];
2298        }
2299
2300        if (newVal == 0)
2301            newVal = 1;
2302
2303        $(this).val(newVal);
2304
2305        if ($(this).val() == "")
2306            $(this).parent().addClass('in-focus');
2307
2308        
2309
2310    }
2311);
2312
2313$(document).on("click", "form.form div.count span.plus",
2314    function(){
2315        var input = $(this).parent("div.count").find("input");
2316
2317        input.parent().removeClass("has-error");
2318
2319        var value = parseFloat(input.val());
2320
2321        if (isNaN(value))
2322            value = 0;
2323
2324        value += 1;
2325
2326        input.val(value);
2327
2328        if ($(this).val() == "")
2329            $(this).parent().addClass('in-focus');
2330
2331        
2332
2333    }
2334);
2335
2336$(document).on("click", "form.form div.count span.minus",
2337    function(){
2338        var input = $(this).parent("div.count").find("input");
2339        input.parent().removeClass("has-error");
2340
2341        var value = parseFloat(input.val());
2342
2343        if (isNaN(value))
2344            value = 0;
2345
2346        value -= 1;
2347
2348        if (value < 0)
2349            value = '';
2350        if (value == 0)
2351            value = 1;
2352
2353        input.val(value);
2354
2355        
2356
2357    }
2358);
2359/*key only numbers end*/
2360
2361$(document).on("click", "div.down-scroll",
2362    function(){
2363        var s_b = $(this).parents('div.parent-scroll-down').next(),
2364            heightOut = 0;
2365
2366        if ($('header').hasClass('slide'))
2367            heightOut = 70;
2368        else{
2369            heightOut = 0;
2370        }
2371
2372        while (s_b.hasClass('hidden-lg')) {
2373            s_b = s_b.next();
2374        }
2375
2376        var destination = $(s_b).offset().top - heightOut;
2377        jQuery("html:not(:animated),body:not(:animated)").animate({
2378            scrollTop: destination
2379        }, 700);
2380
2381        
2382
2383    }
2384);
2385
2386
2387/*scroll menu-header*/
2388var HeaderHeight = 500;
2389$(window).scroll(function(){
2390 
2391
2392    if($(window).width() <= 767)
2393        HeaderHeight = 300;
2394
2395    if ($(document).scrollTop() >= HeaderHeight){
2396        $('header').addClass('top');
2397
2398        var upOut = setTimeout(
2399            function(){
2400                $('header').addClass('fixed');
2401                clearTimeout(upOut);
2402            }, 100);
2403
2404        $('a.up').addClass('on');
2405
2406    }
2407    else{
2408        $("header").removeClass('fixed');
2409
2410        var upOut = setTimeout(
2411            function(){
2412                $('header').removeClass('fixed');
2413                clearTimeout(upOut);
2414            }, 100);
2415
2416        $('header').removeClass('top');
2417
2418        $('a.up').removeClass('on');
2419
2420    }
2421
2422    
2423});
2424
2425
2426
2427
2428
2429
2430/*catalog-tabs-new*/
2431$(document).on('click', 'div.tab-menu',
2432    function(){
2433        $(this).parents('.tab-control').find('.tab-menu').removeClass('active');
2434        $(this).parents('.tab-control').find('.tabb-content').removeClass('active');
2435
2436        $(this).addClass('active');
2437        $('.tabb-content[data-tab="' + $(this).attr("data-tab") + '"]').addClass('active');
2438
2439        
2440    }
2441);
2442$(document).on('click', '.show-hidden',
2443    function(){
2444
2445        $(this).parents('.show-hidden-parent').find('.hidden').removeClass('hidden');
2446        $(this).parent().addClass('off');
2447        
2448    }
2449);
2450
2451
2452$(document).on("click", ".click-slide-show",
2453    function(){
2454
2455        var block = $(this).parent(".parent-slide-show");
2456
2457        if (!$(this).hasClass("active")){
2458            $(this).addClass("active");
2459            $(".content-slide-show", block).slideDown(200,
2460                function(){
2461                    $(this).addClass("active");
2462                }
2463            );
2464
2465        }
2466
2467        else{
2468            $(this).removeClass("active");
2469            $(".content-slide-show", block).slideUp(200,
2470                function(){
2471                    $(this).removeClass("active");
2472                }
2473            );
2474        }
2475
2476        
2477    }
2478);
2479
2480
2481/* box*/
2482
2483$(document).on("click", ".box-show",
2484    function(){
2485        if ($(this).hasClass('box-empty'))
2486            return false;
2487
2488        var from_mod_cat = "N";
2489
2490        if ($(this).parents(".area_for_mini_box").hasClass('mod_cat_opened'))
2491            from_mod_cat = "Y";
2492
2493        openBox(from_mod_cat);
2494});
2495
2496
2497
2498$(document).on("click", ".box-close",
2499    function(){
2500
2501        if (!$(".wrap-modal.open").hasClass('blur')){
2502            $('.wrapper').removeClass('blur');
2503            $('body').removeClass('modal-open');
2504        }
2505
2506        if ($(".wrap-modal.open").hasClass('blur'))
2507            $(".wrap-modal.open").removeClass('blur');
2508
2509
2510        $('div.box-parent').removeClass('on');
2511        $('.no-click-block').removeClass('double');
2512
2513        var closeCartOut = setTimeout(
2514            function(){
2515                $('div.box-parent').removeClass('open');
2516                clearTimeout(closeCartOut);
2517            }, 700
2518        );
2519        
2520    }
2521);
2522
2523
2524
2525$(document).on("keypress", "input.count-val",
2526    function(e){
2527
2528        e = e || event;
2529
2530        if (e.ctrlKey || e.altKey || e.metaKey) return;
2531
2532        var chr = getChar(e);
2533
2534        if (chr == null) return false;
2535    }
2536);
2537
2538
2539$(document).on("blur", "input.count-val",
2540    function(e){
2541
2542        e = e || event;
2543
2544        if (e.ctrlKey || e.altKey || e.metaKey) return;
2545
2546        var chr = getChar(e);
2547
2548        if (chr == null) return false;
2549
2550        var newVal = $(this).val();        
2551
2552        var step = $(this).parents(".parent-calcbox").find("input.count-val").attr("data-box-step");
2553        var minVal = $(this).parents(".parent-calcbox").find("input.count-val").attr("data-box-min");
2554        var idboxEl = parseFloat($(this).attr("data-box-id"));
2555        var action = $(this).attr("data-box-action");
2556        var button = $(this);
2557
2558        var other_complect = $(this).parents(".parent-calcbox").find("input.other_complect_box").val();
2559
2560        step = +step;
2561        minVal = +minVal;
2562
2563        if (isNaN(minVal))
2564            minVal = 1;
2565
2566        if (isNaN(step))
2567            step = 1;
2568
2569        newVal = +newVal;
2570        newVal = parseCount(newVal, step, minVal);
2571
2572        $(this).val(newVal);
2573
2574        updateBox(button, newVal, idboxEl, action, other_complect, "");
2575
2576        
2577
2578    }
2579);
2580
2581
2582function parseMinVal(value, step, minVal)
2583{
2584    var tmpMin = step;
2585
2586    if(step < minVal)
2587        tmpMin = minVal;
2588
2589    if (value <= tmpMin || isNaN(value))
2590        value = minVal;
2591
2592    return value;
2593}
2594
2595$(document).on("click", ".count-plus",
2596    function(){
2597        var input = $(this).parents(".parent-calcbox").find("input.count-val");
2598
2599        var value = +input.val();
2600        var step = $(this).parents(".parent-calcbox").find("input.count-val").attr("data-box-step");
2601        var minVal = $(this).parents(".parent-calcbox").find("input.count-val").attr("data-box-min");
2602
2603        step = +step;
2604        minVal = +minVal;
2605
2606        if (isNaN(minVal))
2607            minVal = 1;
2608
2609        if (isNaN(step))
2610            step = 1;
2611
2612        if (isNaN(value))
2613            value = 0;
2614
2615        value += step;
2616        value = parseMinVal(value, step, minVal);
2617
2618        input.val(value);
2619
2620        
2621    }
2622);
2623
2624$(document).on("click", ".count-minus",
2625    function(){
2626        var input = $(this).parents(".parent-calcbox").find("input.count-val");
2627        var value = parseFloat(input.val());
2628        var step = $(this).parents(".parent-calcbox").find("input.count-val").attr("data-box-step");
2629        var minVal = $(this).parents(".parent-calcbox").find("input.count-val").attr("data-box-min");
2630
2631        step = +step;
2632        minVal = +minVal;
2633
2634        if (isNaN(minVal))
2635            minVal = 1;
2636
2637        if (isNaN(step))
2638            step = 1;
2639
2640        if (isNaN(value))
2641            value = 0;
2642
2643        value -= step;
2644        value = parseMinVal(value, step, minVal);
2645
2646        input.val(value);
2647
2648        
2649    }
2650);
2651
2652
2653
2654
2655$(document).on("click", ".click_box",
2656    function(){
2657
2658        var countBox = parseFloat($(this).parents(".parent-calcbox").find("input.count-val").val());
2659        var idboxEl = parseFloat($(this).attr("data-box-id"));
2660        var action = $(this).attr("data-box-action");
2661        var button = $(this);
2662
2663        if(device.ios()){
2664            cur_pos = $(document).scrollTop();
2665        }
2666
2667        if ($(this).attr("data-box-action") == "add" && !$(this).hasClass('added') && !$(this).hasClass('from_modal_cat')){
2668            var obj_img = $("img[data-box-id-img = '" + idboxEl + "']");
2669            var mini_box = $(".open-box");
2670
2671            if($(window).width() < 767)
2672                mini_box = $(".open-box-mob");
2673            
2674            var width_parent_img = $(this).parents(".element").find("td.parent_anim_img_area").width() / 2;
2675            var height_parent_img = $(this).parents(".element").find("td.parent_anim_img_area").height() / 2;
2676
2677            obj_img.clone()
2678
2679                .css({
2680                    'width': 70 + 'px',
2681                    'height': 70 + 'px',
2682                    'position': 'absolute',
2683                    'z-index': '9999',
2684                    'borderRadius': 50 + '%',
2685                    top: obj_img.offset().top + height_parent_img,
2686                    left: obj_img.offset().left + width_parent_img
2687                })
2688
2689                .appendTo("body")
2690                .animate({
2691                    opacity: 0.05,
2692                    left: mini_box.offset()['left'],
2693                    top: mini_box.offset()['top'],
2694                    width: 20,
2695                    height: 20
2696                }, 700, function(){
2697                    $(this).remove();
2698                });
2699
2700
2701
2702            addGoal('ADD2BASKET');
2703
2704
2705        }
2706
2707
2708
2709        if (isNaN(countBox))
2710            countBox = parseFloat($(this).attr("data-box-step"));
2711
2712
2713        var other_complect = "";
2714
2715        if ($(this).hasClass('from_modal_cat'))
2716            other_complect = $(this).parents(".tabs-content").find("input[name='other_complect']:checked").val();
2717
2718
2719        if (typeof(other_complect) != "undefined")
2720        {
2721            if (other_complect.length <= 0)
2722                other_complect = $(this).parents(".parent-calcbox").find("input.other_complect_box").val();
2723        }
2724
2725
2726        if (typeof(other_complect) == "undefined")
2727            other_complect = "";
2728
2729
2730        clearTimeout($.data(this, 'box_count'));
2731
2732        $.data(this, 'box_count', setTimeout($.proxy(function(){
2733
2734            updateBox(button, countBox, idboxEl, action, other_complect, "");
2735
2736
2737            
2738        }, this), 700));
2739
2740      
2741        /* if(button.hasClass('added'))
2742             return false;*/
2743
2744        
2745    }
2746);
2747
2748
2749/*alert*/
2750$(document).on("click", ".hameleon-alert-btn", 
2751    function()
2752    {
2753        $("div.alert-block div.hameleon-alert-btn").addClass("on");
2754        $("div.alert-block div.alert-block-content").addClass("on");
2755        
2756    }
2757);
2758
2759$(document).on("click", "a.alert-close", 
2760    function()
2761    {
2762        $("div.alert-block div.hameleon-alert-btn").removeClass("on");
2763        $("div.alert-block div.alert-block-content").removeClass("on");
2764        
2765    }
2766);
2767
2768$(document).on("click", "div.faq-block div.question", 
2769    function()
2770    {
2771        var block = $(this).parents("div.faq-element");
2772
2773        if (!block.hasClass("active")){
2774            $("div.text", block).slideDown(200,
2775                function(){
2776                    block.addClass("active");
2777                }
2778            );
2779        }
2780
2781        else{
2782            $("div.text", block).slideUp(200,
2783                function(){
2784                    block.removeClass("active");
2785                }
2786            );
2787        }
2788
2789        
2790
2791    }
2792);
2793
2794$(document).on("click", "div.switcher-wrap div.switcher-title", 
2795    function()
2796    {
2797        var block = $(this).parents("div.switcher-wrap");
2798
2799        if (!block.hasClass("active")){
2800            $("div.switcher-content", block).slideDown(200,
2801                function(){
2802
2803                    block.addClass("active");
2804                }
2805            );
2806        }
2807
2808        else{
2809            $("div.switcher-content", block).slideUp(200,
2810                function(){
2811                    block.removeClass("active");
2812                }
2813            );
2814        }
2815    }
2816);
2817
2818
2819$(window).on("load", function()
2820{
2821
2822    if($(".hide-adv").length>0)
2823    {
2824        setTimeout(function()
2825        {
2826            var sessid = "";
2827            if(typeof BX !== "undefined" && typeof BX.bitrix_sessid === "function")
2828                sessid = BX.bitrix_sessid();
2829            if(!sessid.length)
2830            {
2831                var sessidInput = $("input[name='sessid']").first();
2832                if(sessidInput.length > 0)
2833                    sessid = sessidInput.val();
2834            }
2835
2836            $.post(
2837            "/bitrix/templates/concept_hameleon/ajax/hide_adv.php",
2838            {
2839                "check": "Y",
2840                "USER_ID": $(".hide-adv").attr("data-user"),
2841                "sessid": sessid
2842            },
2843            function(data){
2844                if(data.OK == "Y")
2845                {
2846                    $("body").append('<script type="text/javascript">
vendor: 287 bytes, line 2846
2846 (function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)}; m[i].l=1*new Date();k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)}) (window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym"); ym(
284654591493
vendor: 76 bytes, line 2846
2846, "init", { clickmap:false, trackLinks:false, accurateTrackBounce:false }); 
2846</script> <noscript><div><img src="https://mc.yandex.ru/watch/54591493" style="position:absolute; left:-9999px;" alt="" /></div></noscript><script>ym(54591493, \'reachGoal\', \'hide_hameleon\');</script>');
2847                }
2848            },
2849            "json"
2850        ); 
2851            
2852        }, 13000); 
2853    }
2854});
2855/* End */
2856;
2857; /* Start:"a:4:{s:4:"full";s:62:"/bitrix/templates/concept_hameleon/js/forms.js?178076945327188";s:6:"source";s:46:"/bitrix/templates/concept_hameleon/js/forms.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
2858function formAttentionScroll(dist, parent){
2859    $(parent).animate({
2860        scrollTop: dist
2861    }, 700);
2862    
2863}
2864$(document).ready(
2865    function(){
2866
2867
2868        if($(".form-block form").is(".send"))
2869        {
2870            $("form input[name='url']").val(location.href);
2871            $.datetimepicker.setLocale('ru');
2872            $('form.form .date').datetimepicker({
2873                timepicker: false,
2874                format: 'd/m/Y',
2875                scrollMonth: false,
2876                scrollInput: false,
2877                dayOfWeekStart: 1
2878            });
2879        }
2880        
2881    }
2882);
2883
2884$(document).on('change', ".form.send input[type='file']",
2885    function(){
2886
2887    	var inp = $(this);
2888        var file_list_name = "";
2889
2890    	$(inp[0].files).each(
2891            function(key){
2892                file_list_name += "<span>"+inp[0].files[key].name+"</span><br/>";
2893            }
2894        );
2895
2896
2897        if(!file_list_name.length)
2898            return;
2899
2900        inp.parents('form.send').addClass('file-download');
2901        inp.parents('label').find('.area-files-name').html(file_list_name);
2902        inp.parents('label').removeClass("area-file");
2903        inp.closest('.load-file').removeClass("has-error");
2904
2905    }
2906);
2907
2908$(document).on("click", "form.form input[type='checkbox']",
2909    function(){
2910        $(this).parents("div.wrap-agree").removeClass("has-error");
2911        
2912    }
2913);
2914/*send form*/
2915
2916function sendForm(arParams)
2917{
2918    var error = 0,
2919        formSendAll = new FormData(),
2920        actionGoals = "CALLBACK";
2921
2922    if(arParams.form_block.hasClass('order'))
2923        actionGoals = "ORDER";
2924    else if(arParams.form_block.hasClass('fast-order'))
2925        actionGoals = "FAST_ORDER";
2926
2927
2928    formSendAll.append("send", "Y");
2929    formSendAll.append("tmpl_path", $("input.tmpl_path").val());
2930    formSendAll.append("section_iblock_id", $("input.iblock-landing").val());
2931    var sessid = "";
2932    if(typeof BX !== "undefined" && typeof BX.bitrix_sessid === "function")
2933        sessid = BX.bitrix_sessid();
2934    if(sessid.length <= 0)
2935    {
2936        var sessidInput = $("input[name='sessid']").first();
2937        if(sessidInput.length > 0)
2938            sessid = sessidInput.val();
2939    }
2940    if(sessid.length > 0)
2941        formSendAll.append("sessid", sessid);
2942
2943    for (var i = 1; i <= 10; i++) {
2944        if($("input#custom-input-"+i).val().length>0)
2945            formSendAll.append("custom-input-"+i, $("input#custom-input-"+i).val());
2946    }
2947
2948
2949    if(typeof(arParams.agreecheck.val()) != "undefined"){
2950        if(!arParams.agreecheck.prop("checked")){
2951            arParams.agreecheck.parents("div.wrap-agree").addClass("has-error");
2952            error = 1;
2953        }
2954    }
2955
2956
2957
2958
2959    $("input[type='text'], input[type='email'], input[type='password'], textarea", arParams.form_block).each(
2960        function(key, value){
2961
2962            if($(this).hasClass("email") && $(this).val().length > 0){
2963                if(!(/^([a-z0-9_\-]+\.)*[a-z0-9_\-]+@([a-z0-9][a-z0-9\-]*[a-z0-9]\.)+[a-z]{2,4}$/i).test($(this).val())){
2964                    $(this).parent("div.input").addClass("has-error");
2965                    error = 1;
2966                }
2967            }
2968            if($(this).hasClass("require")){
2969                if($(this).val().trim().length <= 0){
2970                    $(this).val("");
2971                    $(this).parent("div.input").addClass("has-error");
2972                    error = 1;
2973                }
2974            }
2975        }
2976    );
2977    $("input[type='file']", arParams.form_block).each(
2978        function(key, value){
2979            if($(this).hasClass("require")){
2980                if($(this).closest('.load-file').find('.area-file').length>0){
2981                    $(this).closest('.load-file').addClass("has-error");
2982                    error = 1;
2983                }
2984            }
2985        }
2986    );
2987    if(!$('.ham-modal').hasClass('form-modal')){
2988        var otherHeight = 0;
2989        if($('header').hasClass('slide'))
2990            otherHeight = $('header .header-block').outerHeight(true);
2991    }
2992    if(error == 1){
2993        if($('.ham-modal').hasClass('form-modal'))
2994            formAttentionScroll(arParams.form_block.find('.has-error:first').offset().top - arParam
2994s.form_block.parents('.ham-modal-dialog').offset().top, ".ham-modal");
2995
2996        else if(arParams.form_block.hasClass('form-box'))
2997            formAttentionScroll(arParams.form_block.find('.has-error:first').offset().top - arParams.form_block.parents(".body").offset().top, ".box-parent");
2998
2999        else{
3000            formAttentionScroll(arParams.form_block.find('.has-error:first').offset().top - otherHeight, "html:not(:animated),body:not(:animated)");
3001        }
3002    }
3003
3004
3005
3006    if(error == 0){
3007        arParams.form_block.css({
3008            "height": arParams.form_block.outerHeight() + "px"
3009        });
3010
3011
3012        form_arr = arParams.form_block.find(':input,select,textarea').serializeArray();
3013
3014        for (var i = 0; i < form_arr.length; i++)
3015        {
3016            formSendAll.append(form_arr[i].name, form_arr[i].value);
3017        };
3018
3019        if (arParams.form_block.hasClass('file-download'))
3020        {
3021            arParams.form_block.find('input[type=file]').each(function(key)
3022            {
3023
3024                var inp = $(this);
3025                var file_list_name = "";
3026
3027                $(inp[0].files).each(
3028                    function(k){
3029                        formSendAll.append(inp.attr('name'), inp[0].files[k], inp[0].files[k].name);
3030                    }
3031                );
3032
3033            });
3034        }
3035
3036        if(arParams.captchaToken.length>0)
3037            formSendAll.append("captchaToken", arParams.captchaToken);
3038        
3039       
3040        arParams.button.removeClass("active");
3041        arParams.load.addClass("active"); 
3042        var timeOut = setTimeout(
3043            function(){
3044                $.ajax({
3045                    url: arParams.path,
3046                    method: 'POST',
3047                    contentType: false,
3048                    processData: false,
3049                    data: formSendAll,
3050                    dataType: 'json',
3051                    success: function(json){
3052
3053                        /*console.log(json);
3054
3055                        $("body").prepend(json);*/
3056
3057                        if(json.OK == "N"){
3058                            arParams.button.addClass("active");
3059                            arParams.load.removeClass("active");
3060                        }
3061                        if(json.OK == "Y")
3062                        {
3063
3064                            arParams.questions.removeClass("active");
3065                            arParams.thank.addClass("active");
3066
3067                            $.ajax({
3068                                url: "/",
3069                                method: 'POST',
3070                                success: function(json){}
3071
3072                            });
3073
3074                            if(actionGoals == "CALLBACK")
3075                                addGoal(actionGoals);
3076
3077                           
3078
3079                            setTimeout(
3080                                function()
3081                                {
3082
3083                                    if($('.ham-modal').hasClass('form-modal'))
3084                                        formAttentionScroll(arParams.form_block.find('.thank').offset().top - arParams.form_block.parents('.ham-modal-dialog').offset().top, ".ham-modal");
3085
3086                                    else if(arParams.form_block.hasClass('form-box'))
3087                                        formAttentionScroll(arParams.form_block.find('.thank').offset().top - arParams.form_block.parents(".body").offset().top, ".box-parent");
3088
3089                                    else{
3090                                        formAttentionScroll(arParams.form_block.find('.thank').offset().top - otherHeight, "html:not(:animated),body:not(:animated)");
3091                                    }
3092
3093                                }, 300);
3094
3095
3096                            if(arParams.form_block.hasClass('form-box'))
3097                            {
3098                                setTimeout(
3099                                    function(){
3100                                        
3101                                        arParams.form_block.find(".areabox-form").children().remove();
3102                                        arParams.form_block.find(".box-back").removeClass('active');
3103                                        arParams.form_block.find(".areabox-form").removeClass('active');
3104                                        arParams.form_block.find(".info-table").addClass('active');
3105
3106                                        var redirect = "";
3107                                        if(typeof(json.PAYMENT_REDIRECT) != "undefined")
3108                                        {
3109                                            if(json.PAYMENT_REDIRECT.length > 0)
3110                                                redirect = json.PAYMENT_REDIRECT;
3111                                        }
3112
3113                                        updateBox("","","","clear","", redirect);
3114
3115                                    }, 2000);
3116                            }
3117
3118                            if(typeof(arParams.linkHREF) != "undefined")
3119                            {
3120
3121                                setTimeout(
3122                                    function()
3123                                    {
3124                                        location.href = arParams.linkHREF;
3125
3126                                    }, 3000);
3127                            }
3128
3129                            if(json.SCRIPTS.length > 0)
3130                                $('body').append("<script>"+json.SCRIPTS+"</script>");
3131                        }                         
3132                    }
3133                });
3134                clearTimeout(timeOut);
3135            }, 1000);
3136    }
3137
3138}
3139
3140$(document).on("click", "button.btn-submit", function()
3141{
3142
3143    var form = $(this).parents("form.send");
3144    var path = "/bitrix/templates/concept_hameleon/ajax/forms.php";
3145
3146    if(form.hasClass('form-box'))
3147        path = "/bitrix/components/concept/hameleon_cart/order.php";
3148
3149
3150    paramsForm = {
3151        form_block: form,
3152        path: path,
3153        button: $(this),
3154        linkHREF: $(this).attr("data-link"),
3155        header: $("input[name='header']", form),
3156        agreecheck: $("input[name='checkboxAgree']", form),
3157        questions: $("div.questions", form),
3158        load: $("div.load", form),
3159        thank: $("div.thank", form),
3160        captchaToken: ""
3161
3162    };
3163
3164    if($("input.captcha-site-key").length>0)
3165    {
3166        grecaptcha.execute($("input.captcha-site-key").val(), {action: 'homepage'}).then(function(token) {
3167            paramsForm.captchaToken = token;
3168            sendForm(paramsForm);
3169        });
3170    }
3171    else{
3172        sendForm(paramsForm);
3173    } 
3174
3175});
3176$(document).on("click", "a.form-close",
3177    function(){
3178        $("div.click-for-reset.on").removeClass("on");
3179        $('div.wrapper').removeClass('blur');
3180        $('body').removeClass("modal-open");
3181        $('.wrap-modal.open').removeClass('blur');
3182
3183        if(device.ios()){
3184            $("body").removeClass("modal-ios");
3185            window.scrollTo(0, cur_pos);
3186        }
3187    }
3188);
3189
3190$(document).on('click', '.call-modal',
3191    function(){
3192        if(!$("body").hasClass("modal-ios"))
3193            cur_pos = $(document).scrollTop();
3194
3195            var path = '',
3196                area = '',
3197                value = $(this).attr("data-call-modal"),
3198                header = $(this).attr("data-header"),
3199                from = $(this).attr("data-from-open-modal"),
3200		        platform = $(this).attr("data-platform-video"),
3201                element_id = "",
3202                element_type = "",
3203                other_complect = "";
3204
3205            site_id = $("input.site_id").val();
3206            ib = $("input.ib").val();
3207            sect = $("input.sect").val();
3208            btn_type = $("input.btn_type").val();
3209            
3210
3211            if($(this).hasClass("more-modal-info")){
3212                element_id = $(this).attr("data-element-id");
3213                element_type = $(this).attr("data-element-type");
3214
3215                if($(this).hasClass('from-modal'))
3216                    other_complect = $(this).parents(".tabs-content").find("input[name='other_complect']:checked").val();
3217            }
3218
3219            var type = "";
3220            var box_form = "";
3221
3222            var th = $(this);
3223
3224            $('div.wrapper').addClass('blur');
3225
3226            if($(this).hasClass('box-form'))
3227            {
3228                area = 'areabox-form';
3229                path = 'form_box.php';
3230                value = value.replace("form", "");
3231
3232                if($(this).hasClass('main-click'))
3233                    box_form = "Y";
3234            }
3235
3236            if($(this).hasClass('callform')){
3237                area = 'modalAreaForm';
3238                path = 'formmodal.php';
3239                value = value.replace("form", "");
3240            }
3241
3242
3243            if($(this).hasClass('callvideo')){
3244                area = 'modalAreaVideo';
3245                path = 'videomodal.php';
3246            }
3247
3248            if($(this).hasClass('callmodal')){
3249                area = 'modalAreaWindow';
3250                path = 'windowmodal.php';
3251                value = value.replace("modal", "");
3252            }
3253
3254            if($(this).hasClass('callagreement')){
3255                area = 'modalAreaAgreement';
3256                path = 'agreemodal.php';
3257                value = value.replace("agreement", "");
3258            }
3259
3260
3261            $('.google-spin-wrapper').addClass('active');
3262
3263            $.post("/bitrix/templates/concept_hameleon/ajax/" + path,{
3264                    resVal: value,
3265                    site_id: site_id,
3266                    type: type,
3267                    btn_type: btn_type,
3268                    section: sect,
3269                    ib: ib,
3270                    element_id: element_id,
3271                    element_type: element_type,
3272                    other_complect: other_complect,
3273                    box_form: box_form,
3274		    platform: platform
3275		    
3276
3277                },
3278
3279                function(html){
3280
3281                    $("body").addClass("modal-open");
3282
3283                    if(device.ios() && !th.hasClass('box-form')){
3284                        $("body").addClass("modal-ios");
3285                    }
3286
3287                    $('div.' + area).html(html);
3288                    $('.google-spin-wrapper').removeClass('active');
3289
3290                    if(from == 'open-menu'){
3291                        $('div.open-menu').addClass('blur');
3292                        $('div.' + area).find('.close-modal').addClass('open-menu');
3293                    }
3294
3295                    var timeOut = setTimeout(
3296                        function(){
3297                            $('div.' + area).find('.ham-modal').addClass('active');
3298                            clearTimeout(timeOut);
3299                        }, 300);
3300
3301
3302                    if(area == 'modalAreaForm'){
3303                        var timeOut2 = setTimeout(
3304                            function(){
3305
3306                                $('div.modalAreaForm').find("form input[name='url']").val(decodeURIComponent(location.href));
3307
3308                                $('div.modalAreaForm').addClass('z-index-99999');
3309
3310                                if(typeof(comment) != "undefined"){
3311                                    if(comment.length > 0)
3312                                        $("div.modalAreaForm").find("div.add_text").html(comment);
3313
3314                                }
3315
3316                                if(typeof(formTitle) != "undefined"){
3317                                    if(formTitle.length > 0)
3318                                        $('div.modalAreaForm').find("form input[name='comment']").val(formTitle);
3319                                }
3320
3321                                if(typeof(header) != "undefined"){
3322                                    if(header.length > 0)
3323                                        $('div.modalAreaForm').find("form input[name='header']").val(header);
3324                                }
3325                                $.datetimepicker.setLocale('ru');
3326                                $('div.modalAreaForm form.form .date').datetimepicker({
3327                                    timepicker: false,
3328                                    format: 'd/m/Y',
3329                                    scrollMonth: false,
3330                                    scrollInput: false,
3331                                    dayOfWeekStart: 1
3332                                });
3333                                clearTimeout(timeOut2);
3334                            }, 100
3335                        );
3336                    }
3337
3338                    if(area == 'modalAreaVideo'){
3339                        var timeOut2 = setTimeout(
3340                            function(){
3341                                var win_height = $('div.video-modal').height();
3342                                var modal = 590;
3343                                if($(window).width() > 767){
3344                                    if(win_height > modal)
3345                                        $("div.video-modal div.ham-modal-dialog").addClass('pos-absolute');
3346                                    else{
3347                                        $("div.video-modal div.ham-modal-dialog").removeClass('pos-absolute');
3348                                    }
3349                                }
3350                                else{
3351                                    $("div.video-modal div.ham-modal-dialog").addClass('pos-absolute');
3352                                }
3353
3354                                clearTimeout(timeOut2);
3355                            }, 100
3356                        );
3357                    }
3358
3359
3360                    if(th.hasClass('from-modalform')){
3361                        $('div.modalAreaForm').addClass('z-index-99999');
3362                        $('div.modalAreaAgreement').find('.close-modal').addClass('from-modal');
3363                        $('div.modalAreaAgreement').find('.close-modal').addClass('from-modalform');
3364                        $('div.form-modal').addClass('blur');
3365                    }
3366
3367                    if(th.hasClass('from-openmenu')){
3368                        $('div.modalAreaForm').find('.close-modal').addClass('from-modal');
3369                        $('div.modalAreaAgreement').find('.close-modal').addClass('from-modal');
3370                        $('div.modalAreaAgreement').find('.close-modal').addClass('from-openmenu');
3371                        $('div.modalAreaForm').find('.close-modal').addClass('from-openmenu');
3372                        $('div.open-menu').addClass('blur');
3373                        $('div.modalAreaWindow').find('.close-modal').addClass('from-modal');
3374                        $('div.modalAreaWindow').find('.close-modal').addClass('from-openmenu');
3375                    }
3376
3377                    if(th.hasClass('from-set')){
3378                        $('div.modalAreaForm').find('.close-modal').addClass('from-modal');
3379                        $('div.modalAreaWindow').find('.close-modal').addClass('from-modal');
3380                    }
3381
3382                    if(th.hasClass('from-tariff')){
3383                        $('div.wrap-modal').addClass('blur');
3384                        $('div.modalAreaAgreement').find('.close-modal').addClass('from-tariff');
3385                        $('div.modalAreaForm').find('.close-modal').addClass('from-tariff');
3386                        $('div.modalAreaWindow').find('.close-modal').addClass('from-tariff');
3387                    }
3388
3389                    if(area == 'areabox-form')
3390                    {                    
3391                        th.parents(".wrapper-mbox").find(".info-table").removeClass('active');
3392                        th.parents(".wrapper-mbox").find(".box-back").addClass('active');
3393                        th.parents(".wrapper-mbox").find(".areabox-form").addClass('active');
3394                        th.parents(".wrapper-mbox").find("form input[name='url']").val(decodeURIComponent(location.href));
3395                        $.datetimepicker.setLocale('ru');
3396                        $('.wrapper-mbox form.form .date').datetimepicker({
3397                            timepicker: false,
3398                            format: 'd/m/Y',
3399                            scrollMonth: false,
3400                            scrollInput: false,
3401                            dayOfWeekStart: 1
3402                        });
3403                    }
3404
3405                    $('.lazyload').Lazy();
3406
3407                }
3408            );
3409        
3410        
3411
3412    }
3413);
3414$(document).on('click', '.close-modal',
3415    function(){
3416        $('div.modalAreaForm form.form .date').datetimepicker('destroy');
3417        $(this).parents("div.modalArea.z-index-99999").removeClass('z-index-99999');
3418        if(!($(this).hasClass('from-modal')) && !($(this).hasClass('from-tariff'))){
3419            $('div.wrapper').removeClass('blur');
3420            $("body").removeClass("modal-open");
3421
3422            if(device.ios()){
3423                $("body").removeClass("modal-ios");
3424                window.scrollTo(0, cur_pos);
3425            }
3426        }
3427        if($(this).hasClass('from-modalform'))
3428            $('div.form-modal').removeClass('blur');
3429
3430        if($(this).hasClass('from-openmenu'))
3431            $('div.open-menu').removeClass('blur');
3432
3433        if($(this).hasClass('from-tariff'))
3434            $('div.wrap-modal').removeClass('blur');
3435
3436        if($(this).hasClass('wind-close'))
3437            $(this).parents("div.shadow-modal-wind-contact").removeClass('on');
3438
3439        else{
3440            $(this).parents("div.modalArea").children().remove();
3441        }
3442
3443        
3444    }
3445);
3446$(document).on("click", ".box-back",
3447    function(e){
3448        $(this).removeClass('active');
3449        $(this).parents(".wrapper-mbox").find(".areabox-form").removeClass('active');
3450        $(this).parents(".wrapper-mbox").find(".info-table").addClass('active');
3451
3452        
3453    }
3454);
3455$(document).on('click', '.open_modal_contacts',
3456    function(){
3457        $('div.shadow-modal-wind-contact').addClass('on');
3458        $('div.wrapper').addClass('blur');
3459        $("body").addClass("modal-open");
3460
3461        if(device.ios()){
3462            cur_pos = $(document).scrollTop();
3463            $("body").addClass("modal-ios");
3464        }
3465
3466        
3467    }
3468);
3469$(document).on("click", ".btn-modal-open",
3470    function(){
3471        cur_pos = $(document).scrollTop();
3472
3473        var added = "N";
3474        if($(this).parents(".element").find(".click_box").hasClass('added'))
3475            added = "Y";
3476
3477
3478        $('div.google-spin-wrapper').addClass('active');
3479
3480        $.post("/bitrix/templates/concept_hameleon/ajax/modal.php",{
3481            element_id: $(this).attr('data-element-id'),
3482            name: $(this).attr('data-detail'),
3483            all_id: $(this).attr('data-all-id'),
3484            site_id: $("input.site_id").val(),
3485            land_id: $("input.sect").val(),
3486            land_iblock_id: $("input.ib").val(),
3487            block_header: $(this).attr('data-header'),
3488            added: added,
3489            catalog_id: $(this).attr('data-main-catalog-id')
3490
3491            },
3492
3493            function(html){
3494
3495                $('div.wrap-modal').addClass('open');
3496                $('div.wrapper').addClass('blur');
3497                $('body').addClass('modal-open');
3498                $('.shadow-detail').addClass('active');
3499                $("div.modal-container").html(html);
3500
3501            
3502
3503
3504                $(".wrap-modal-inner").addClass('open');
3505                $('div.no-click-block').addClass('on');
3506
3507                $('div.google-spin-wrapper').removeClass('active');
3508                $(".area_for_mini_box").addClass('mod_cat_opened');
3509            }
3510        );
3511
3512        
3513    }
3514);
3515/*for close detail-modal*/
3516$(document).on("click", "a.wrap-modal-close",
3517    function(){
3518        $('div.wrap-modal').removeClass('open');
3519        $('.shadow-detail').removeClass('active');
3520        $('body').removeClass('modal-open');
3521        $('div.wrapper').removeClass('blur');
3522        $('div.no-click-block').removeClass('on');
3523
3524        if($(".area_for_mini_box").hasClass("mod_cat_opened"))
3525            $(".area_for_mini_box").removeClass('mod_cat_opened');
3526
3527        if(device.ios()){
3528            window.scrollTo(0, cur_pos);
3529            $("body").removeClass("modal-ios");
3530        }
3531
3532        
3533    }
3534);
3535/*hide and show placeholder*/
3536$(document).on("focus", "form input[type='text'], input[type='email'], form textarea",
3537    function(){
3538        $(this).parent("div.input").removeClass("has-error");
3539        
3540    }
3541);
3542$(document).on("blur", "form input[type='text'], input[type='email'], form textarea",
3543    function(){
3544        $(this).parent("div.input").removeClass("has-error");
3545        
3546    }
3547);
3548$(document).on('click', '.select-list-choose',
3549    function(){
3550        $(this).parents('.form-select').addClass('open');
3551        
3552    }
3553);
3554$(document).on('click', '.ar-down',
3555    function(){
3556        if($(this).parents('.form-select').hasClass('open'))
3557            $(this).parents('.form-select').removeClass('open');
3558        else{
3559            $(this).parents('.form-select').addClass('open');
3560        }
3561        
3562    }
3563);
3564$(document).on('click', '.form-select .name',
3565    function(){
3566        $(this).parents('.form-select').find('.select-list-choose').removeClass('first').find(".list-area").text($(this).text());
3567        $(this).parents('.form-select').removeClass('open');
3568    }
3569);
3570
3571$(document).mouseup(function (e){
3572    var div = $(".form-select");
3573    if (!div.is(e.target)
3574        && div.has(e.target).length === 0) {
3575        div.removeClass('open');
3576    }
3577    
3578});
3579
3580
3581
3582$(document).on('change', ".box-choose-select",
3583    function(){
3584        $(this).parents(".parent-choose-select").find(".inp-show-js").removeClass('active');
3585        $(this).parents(".parent-choose-select").find(".inp-show-js[data-choose-select='"+$(this).attr("data-choose-select")+"']").addClass('active');
3586        
3587});
3588$(document).on("focus", "input.focus-anim",
3589    function(){
3590        if($(this).val() == "")
3591            $(this).parent().addClass('in-focus');
3592
3593        
3594    }
3595);
3596$(document).on("blur", "input.focus-anim",
3597    function(){
3598        if($(this).val() == "")
3599            $(this).parent().removeClass('in-focus');
3600
3601        
3602    }
3603);
3604/**/
3605$(document).on("keypress", ".only-num",
3606    function(e){
3607        e = e || event;
3608        if(e.ctrlKey || e.altKey || e.metaKey) return;
3609        var chr = getChar(e);
3610        if(chr == null) return;
3611        if(chr < '0' || chr > '9'){
3612            return false;
3613        }
3614    }
3615);
3616/*focus input*/
3617$(document).on("focus", "input.focus-anim, textarea.focus-anim",
3618    function(){
3619        if($(this).val() == "")
3620            $(this).parent().addClass('in-focus');
3621
3622        
3623    }
3624);
3625$(document).on("blur", "input.focus-anim, textarea.focus-anim",
3626    function(){
3627        element = $(this);
3628        var timeOut = setTimeout(
3629            function(){
3630                if(element.val() == "")
3631                    element.parent().removeClass('in-focus');
3632
3633                clearTimeout(timeOut);
3634            }, 200
3635        );
3636
3637        
3638    }
3639);
3640
3641$(document).on('click', '.inp-show-js-padding',
3642    function(){
3643
3644        var str = $(this).find(".inp-show-js-length").text().length;
3645
3646        if(str >= 48)
3647            $(this).find("textarea").addClass('two-rows');
3648
3649        if(str >= 78)
3650            $(this).find("textarea").addClass('three-rows');
3651  
3652    }
3653);
3654
3655
3656/* End */
3657;
3658; /* Start:"a:4:{s:4:"full";s:56:"/bitrix/tools/concept.quiz/js/scripts.js?162878362843869";s:6:"source";s:40:"/bitrix/tools/concept.quiz/js/scripts.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
3659! function(a){"function" == typeof define && define.amd ? define(["jquery"],a) :a("object" == typeof exports ? require("jquery") :jQuery)}(function(a){var b,c = navigator.userAgent,d = /iphone/i.test(c),e = /chrome/i.test(c),f = /android/i.test(c);a.mask ={definitions:{9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"},autoclear:!0,dataName:"rawMaskFn",placeholder:"_"},a.fn.extend({caret:function(a,b){var c;if (0 !== this.length && !this.is(":hidden")) return "number" == typeof a ? (b = "number" == typeof b ? b :a,this.each(function(){this.setSelectionRange ? this.setSelectionRange(a,b) :this.createTextRange && (c = this.createTextRange(),c.collapse(!0),c.moveEnd("character",b),c.moveStart("character",a),c.select())})) :(this[0].setSelectionRange ? (a = this[0].selectionStart,b = this[0].selectionEnd) :document.selection && document.selection.createRange && (c = document.selection.createRange(),a = 0 - c.duplicate().moveStart("character",-1e5),b = a + c.text.length),{begin:a,end:b})},unmask:function(){return this.trigger("unmask")},mask:function(c,g){var h,i,j,k,l,m,n,o;if (!c && this.length > 0){h = a(this[0]);var p = h.data(a.mask.dataName);return p ? p() :void 0}return g = a.extend({autoclear:a.mask.autoclear,placeholder:a.mask.placeholder,completed:null},g),i = a.mask.definitions,j = [],k = n = c.length,l = null,a.each(c.split(""),function(a,b){"?" == b ? (n--,k = a) :i[b] ? (j.push(new RegExp(i[b])),null === l && (l = j.length - 1),k > a && (m = j.length - 1)) :j.push(null)}),this.trigger("unmask").each(function(){function h(){if (g.completed){for (var a = l;m >= a;a++)if (j[a] && C[a] === p(a)) return;g.completed.call(B)}}function p(a){return g.placeholder.charAt(a < g.placeholder.length ? a :0)}function q(a){for (;++a < n && !j[a];);return a}function r(a){for (;--a >= 0 && !j[a];);return a}function s(a,b){var c,d;if (!(0 > a)){for (c = a,d = q(b);n > c;c++)if (j[c]){if (!(n > d && j[c].test(C[d]))) break;C[c] = C[d],C[d] = p(d),d = q(d)}z(),B.caret(Math.max(l,a))}}function t(a){var b,c,d,e;for (b = a,c = p(a);n > b;b++)if (j[b]){if (d = q(b),e = C[b],C[b] = c,!(n > d && j[d].test(e))) break;c = e}}function u(){var a = B.val(),b = B.caret();if (o && o.length && o.length > a.length){for (A(!0);b.begin > 0 && !j[b.begin - 1];) b.begin--;if (0 === b.begin)for (;b.begin < l && !j[b.begin];) b.begin++;B.caret(b.begin,b.begin)}else{for (A(!0);b.begin < n && !j[b.begin];) b.begin++;B.caret(b.begin,b.begin)}h()}function v(){A(),B.val() != E && B.change()}function w(a){if (!B.prop("readonly")){var b,c,e,f = a.which || a.keyCode;o = B.val(),8 === f || 46 === f || d && 127 === f ? (b = B.caret(),c = b.begin,e = b.end,e - c === 0 && (c = 46 !== f ? r(c) :e = q(c - 1),e = 46 === f ? q(e) :e),y(c,e),s(c,e - 1),a.preventDefault()) :13 === f ? v.call(this,a) :27 === f && (B.val(E),B.caret(0,A()),a.preventDefault())}}function x(b){if (!B.prop("readonly")){var c,d,e,g = b.which || b.keyCode,i = B.caret();if (!(b.ctrlKey || b.altKey || b.metaKey || 32 > g) && g && 13 !== g){if (i.end - i.begin !== 0 && (y(i.begin,i.end),s(i.begin,i.end - 1)),c = q(i.begin - 1),n > c && (d = String.fromCharCode(g),j[c].test(d))){if (t(c),C[c] = d,z(),e = q(c),f){var k = function(){a.proxy(a.fn.caret,B,e)()};setTimeout(k,0)}else B.caret(e);i.begin <= m && h()}b.preventDefault()}}}function y(a,b){var c;for (c = a;b > c && n > c;c++) j[c] && (C[c] = p(c))}function z(){B.val(C.join(""))}function A(a){var b,c,d,e = B.val(),f = -1;for (b = 0,d = 0;n > b;b++)if (j[b]){for (C[b] = p(b);d++ < e.length;)if (c = e.charAt(d - 1),j[b].test(c)){C[b] = c,f = b;break}if (d > e.length){y(b + 1,n);break}}else C[b] === e.charAt(d) && d++,k > b && (f = b);return a ? z() :k > f + 1 ? g.autoclear || C.join("") === D ? (B.val() && B.val(""),y(0,n)) :z() :(z(),B.val(B.val().substring(0,f + 1))),k ? b :l}var B = a(this),C = a.map(c.split(""),function(a,b){return "?" != a ? i[a] ? p(b) :a :void 0}),D = C.join(""),E = B.val();B.data(a.mask.dataName,function(){return a.map(C,function(a,b){return j[b] && a != p(b) ? a :null}).join("")}),B.one("unmask",function(){B.off(".mask").removeData(a.mask.dataName)}).on("focus.mask",function(){if (!B.prop("readonly")){clearTimeout(b);var a;E = B.val(),a = A(),b = setTimeout(function(){B.get(0) === document.activeElement && (z(),a == c.replace("?","").length ? B.caret(0,a) :B.caret(a))},10)}}).on("blur.mask",v).on("keydown.mask",w).on("keypress.mask",x).on("input.mask paste.mask",function(){B.prop("readonly") || setTimeout(function(){var a = A(!0);B.caret(a),h()},0)}),e && f && B.off("input.mask").on("input.mask",u),A()})}})});! function(e){if ("object" == typeof exports && "undefined" != typeof module) module.exports = e();else if ("function" == typeof define && define.amd) define([],e);else{var t;t = "undefined" != typeof window ? window :"undefined" != typeof global ? global :"undefined" != typeof self ? self :this,t.ClipboardQuiz = e()}}(function(){var e,t,n;return function e(t,n,i){function o(a,c){if (!n[a]){if (!t[a]){var l = "function" == typeof require && require;if (!c && l) return l(a,!0);if (r) return r(a,!0);var s = new Error("Cannot find module '" + a + "'");throw s.code = "MODULE_NOT_FOUND",s}var u = n[a] ={exports:{}};t[a][0].call(u.exports,function(e){var n = t[a][1][e];return o(n ? n :e)},u,u.exports,e,t,n,i)}return n[a].exports}for (var r = "function" == typeof require && require,a = 0;a < i.length;a++) o(i[a]);return o}({1:[function(e,t,n){function i(e,t){for (;e && e.nodeType !== o;){if (e.matches(t)) return e;e = e.parentNode}}var o = 9;if (Element && !Element.prototype.matches){var r = Element.prototype;r.matches = r.matchesSelector || r.mozMatchesSelector || r.msMatchesSelector || r.oMatchesSelector || r.webkitMatchesSelector}t.exports = i},{}],2:[function(e,t,n){function i(e,t,n,i,r){var a = o.apply(this,arguments);return e.addEventListener(n,a,r),{destroy:function(){e.removeEventListener(n,a,r)}}}function o(e,t,n,i){return function(n){n.delegateTarget = r(n.target,t),n.delegateTarget && i.call(e,n)}}
vendor: 6,971 bytes, line 3659
3659var r = e("./closest");t.exports = i},{"./closest":1}],3:[function(e,t,n){n.node = function(e){return void 0 !== e && e instanceof HTMLElement && 1 === e.nodeType},n.nodeList = function(e){var t = Object.prototype.toString.call(e);return void 0 !== e && ("[object NodeList]" === t || "[object HTMLCollection]" === t) && "length" in e && (0 === e.length || n.node(e[0]))},n.string = function(e){return "string" == typeof e || e instanceof String},n.fn = function(e){var t = Object.prototype.toString.call(e);return "[object Function]" === t}},{}],4:[function(e,t,n){function i(e,t,n){if (!e && !t && !n) throw new Error("Missing required arguments");if (!c.string(t)) throw new TypeError("Second argument must be a String");if (!c.fn(n)) throw new TypeError("Third argument must be a Function");if (c.node(e)) return o(e,t,n);if (c.nodeList(e)) return r(e,t,n);if (c.string(e)) return a(e,t,n);throw new TypeError("First argument must be a String,HTMLElement,HTMLCollection,or NodeList")}function o(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}function r(e,t,n){return Array.prototype.forEach.call(e,function(e){e.addEventListener(t,n)}),{destroy:function(){Array.prototype.forEach.call(e,function(e){e.removeEventListener(t,n)})}}}function a(e,t,n){return l(document.body,e,t,n)}var c = e("./is"),l = e("delegate");t.exports = i},{"./is":3,delegate:2}],5:[function(e,t,n){function i(e){var t;if ("SELECT" === e.nodeName) e.focus(),t = e.value;else if ("INPUT" === e.nodeName || "TEXTAREA" === e.nodeName) e.focus(),e.setSelectionRange(0,e.value.length),t = e.value;else{e.hasAttribute("contenteditable") && e.focus();var n = window.getSelection(),i = document.createRange();i.selectNodeContents(e),n.removeAllRanges(),n.addRange(i),t = n.toString()}return t}t.exports = i},{}],6:[function(e,t,n){function i(){}i.prototype ={on:function(e,t,n){var i = this.e || (this.e ={});return (i[e] || (i[e] = [])).push({fn:t,ctx:n}),this},once:function(e,t,n){function i(){o.off(e,i),t.apply(n,arguments)}var o = this;return i._ = t,this.on(e,i,n)},emit:function(e){var t = [].slice.call(arguments,1),n = ((this.e || (this.e ={}))[e] || []).slice(),i = 0,o = n.length;for (i;i < o;i++) n[i].fn.apply(n[i].ctx,t);return this},off:function(e,t){var n = this.e || (this.e ={}),i = n[e],o = [];if (i && t)for (var r = 0,a = i.length;r < a;r++) i[r].fn !== t && i[r].fn._ !== t && o.push(i[r]);return o.length ? n[e] = o :delete n[e],this}},t.exports = i},{}],7:[function(t,n,i){! function(o,r){if ("function" == typeof e && e.amd) e(["module","select"],r);else if ("undefined" != typeof i) r(n,t("select"));else{var a ={exports:{}};r(a,o.select),o.clipboardAction = a.exports}}(this,function(e,t){"use strict";function n(e){return e && e.__esModule ? e :{default:e}}function i(e,t){if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function")}var o = n(t),r = "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 = function(){function e(e,t){for (var n = 0;n < t.length;n++){var i = t[n];i.enumerable = i.enumerable || !1,i.configurable = !0,"value" in i && (i.writable = !0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n && e(t.prototype,n),i && e(t,i),t}}(),c = function(){function e(t){i(this,e),this.resolveOptions(t),this.initSelection()}return a(e,[{key:"resolveOptions",value:function e(){var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] :{};this.action = t.action,this.emitter = t.emitter,this.target = t.target,this.text = t.text,this.trigger = t.trigger,this.selectedText = ""}},{key:"initSelection",value:function e(){this.text ? this.selectFake() :this.target && this.selectTarget()}},{key:"selectFake",value:function e(){var t = this,n = "rtl" == document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback = function(){return t.removeFake()},this.fakeHandler = document.body.addEventListener("click",this.fakeHandlerCallback) || !0,this.fakeElem = document.createElement("textarea"),this.fakeElem.style.fontSize = "12pt",this.fakeElem.style.border = "0",this.fakeElem.style.padding = "0",this.fakeElem.style.margin = "0",this.fakeElem.style.position = "absolute",this.fakeElem.style[n ? "right" :"left"] = "-9999px";var i = window.pageYOffset || document.documentElement.scrollTop;this.fakeElem.addEventListener("focus",window.scrollTo(0,i)),this.fakeElem.style.top = i + "px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value = this.text,document.body.appendChild(this.fakeElem),this.selectedText = (0,o.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function e(){this.fakeHandler && (document.body.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler = null,this.fakeHandlerCallback = null),this.fakeElem && (document.body.removeChild(this.fakeElem),this.fakeElem = null)}},{key:"selectTarget",value:function e(){this.selectedText = (0,o.default)(this.target),this.copyText()}},{key:"copyText",value:function e(){var t = void 0;try{t = document.execCommand(this.action)}catch (e){t = !1}this.handleResult(t)}},{key:"handleResult",value:function e(t){this.emitter.emit(t ? "success" :"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function e(){this.target && this.target.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function e(){this.removeFake()}},{key:"action",set:function e(){var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] :"copy";if (this._action = t,"copy" !== this._action && "cut" !== this._action) throw new Error('Invalid "action" value,use either "copy" or "cut"')},get:function e(){return this._action}},{key:"target",set:function e(t){if (void 0 !== t){if (!t || "object" !== ("undefined" == typeof t ? "undefined" :r(t)) || 1 !== t.nodeType) throw new Error('Invalid "target" value,use a valid Element');if ("copy" === this.action && t.hasAttribute("disabled")) throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if ("cut" === this.action && (t.hasAttribute("readonly") || t.hasAttribute("disabled"))) throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target = t}},get:function e(){return this._target}}]),e}();e.exports = c})},{select:5}],8:[function(t,n,i){! function(o,r){if ("function" == typeof e && e.amd) e(["module","./clipboard-action","tiny-emitter","good-listener"],r);else if ("undefined" != typeof i) r(n,t("./clipboard-action"),t("tiny-emitter"),t("good-listener"));else{var a ={exports:{}};r(a,o.clipboardAction,o.tinyEmitter,o.goodListener),o.clipboardQuiz = a.exports}}(this,function(e,t,n,i){"use strict";
3659function o(e){return e && e.__esModule ? e :{default:e}}function r(e,t){if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function")}function a(e,t){if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return !t || "object" != typeof t && "function" != typeof t ? e :t}function c(e,t){if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function,not " + typeof t);e.prototype = Object.create(t && t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t && (Object.setPrototypeOf ? Object.setPrototypeOf(e,t) :e.__proto__ = t)}function l(e,t){var n = "data-clipboard-" + e;if (t.hasAttribute(n)) return t.getAttribute(n)}var s = o(t),u = o(n),f = o(i),d = function(){function e(e,t){for (var n = 0;n < t.length;n++){var i = t[n];i.enumerable = i.enumerable || !1,i.configurable = !0,"value" in i && (i.writable = !0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n && e(t.prototype,n),i && e(t,i),t}}(),h = function(e){function t(e,n){r(this,t);var i = a(this,(t.__proto__ || Object.getPrototypeOf(t)).call(this));return i.resolveOptions(n),i.listenClick(e),i}return c(t,e),d(t,[{key:"resolveOptions",value:function e(){var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] :{};this.action = "function" == typeof t.action ? t.action :this.defaultAction,this.target = "function" == typeof t.target ? t.target :this.defaultTarget,this.text = "function" == typeof t.text ? t.text :this.defaultText}},{key:"listenClick",value:function e(t){var n = this;this.listener = (0,f.default)(t,"click",function(e){return n.onClick(e)})}},{key:"onClick",value:function e(t){var n = t.delegateTarget || t.currentTarget;this.clipboardAction && (this.clipboardAction = null),this.clipboardAction = new s.default({action:this.action(n),target:this.target(n),text:this.text(n),trigger:n,emitter:this})}},{key:"defaultAction",value:function e(t){return l("action",t)}},{key:"defaultTarget",value:function e(t){var n = l("target",t);if (n) return document.querySelector(n)}},{key:"defaultText",value:function e(t){return l("text",t)}},{key:"destroy",value:function e(){this.listener.destroy(),this.clipboardAction && (this.clipboardAction.destroy(),this.clipboardAction = null)}}]),t}(u.default);e.exports = h})},{"./clipboard-action":7,"good-listener":4,"tiny-emitter":6}]},{},[8])(8)});function openQuizSetPanel(){jQuery("div.wqec-setting.main-set").addClass("wqec-open");size_set_main();setTimeout(function(){jQuery("div.wqec-setting.main-set").addClass("wqec-on")},100);jQuery("body").addClass("wqec-on-menu");jQuery("div.wqec-shadow-menu").addClass("wqec-active")}jQuery(document).on("click","div.wqec-btn",function(){if (jQuery(".ajax-settings").length > 0){jQuery("div.wqec-xLoader").addClass("wqec-active");$.post('/bitrix/tools/concept.quiz/js/set_panel.php',{show:"Y"},function(html){jQuery(".ajax-settings").html(html);jQuery(".ajax-settings").removeClass("ajax-settings");openQuizSetPanel();jQuery("div.wqec-xLoader").removeClass("wqec-active")})}else{openQuizSetPanel()}});function scrollToTopQuiz(e,i,t){jQuery(t).parents(i).animate({scrollTop:e},300)}function wqecResizeVideo(){var e = jQuery(window).height(),i = 505;jQuery(window).width() < 767 && (i = 300),e > i ? jQuery("div.wqec-modal.wqec-active div.wqec-dialog").addClass("wqec-absolute") :jQuery("div.wqec-modal.wqec-active div.wqec-dialog").removeClass("wqec-absolute")}function wqecResizeAgModal(){jQuery("div.wqec-agreement.wqec-active div.wqec-dialog").height() < jQuery(window).height() ? jQuery("div.wqec-agreement.wqec-active div.wqec-dialog").addClass("wqec-absolute") :jQuery("div.wqec-agreement.wqec-active div.wqec-dialog").removeClass("wqec-absolute")}function wqecPercent(e){e.find("div.weqc-tab-percent").css("right",e.find("div.wqec-perc-info").outerWidth() + "px")}function openWiz(e,i){"call" == i && (jQuery('div.wqec-big-wrap[data-wqec-section-id="' + e + '"]').remove(),jQuery("div.wqec-xLoader").addClass("wqec-active"),jQuery.post("/bitrix/tools/concept.quiz/js/component.php",{wqecSectionCode:e},function(i){if(i.length>
36590){jQuery(".call-wqec[data-wqec-section-id=" + e + "]").addClass("open-wqec").removeClass("call-wqec"),jQuery("div.wqec-xLoader").removeClass("wqec-active"),jQuery("div.areaForWqec").append('<div class="wqec-big-wrap" data-wqec-section-id="' + e + '"></div>'),jQuery('div.wqec-big-wrap[data-wqec-section-id="' + e + '"]').html(i),jQuery('div.wqec-big-wrap[data-wqec-section-id="' + e + '"]').find("div.wqec").attr("data-wqec-id",e);var t = jQuery("div.wqec[data-wqec-id='" + e + "']");jQuery("body").addClass("wqec-on"),jQuery("div.wqec-shadow").addClass("wqec-active"),setTimeout(function(){t.find("form.wqec-form input.cwiz-url").val(decodeURIComponent(location.href)),t.addClass("wqec-active"),wqecPercent(t),jQuery("div.wqec").hasClass("wizard-quest-edition-concept") && (setTimeout(function(){t.find("div.wqec-left-side").addClass("wqec-ready")},1e3),setTimeout(function(){t.find("div.wqec-right-side").addClass("wqec-ready")},1500),setTimeout(function(){t.find("div.wqec-vertical-side").addClass("wqec-ready")},2e3),setTimeout(function(){t.find("div.wqec-content").addClass("wqec-ready"),t.find("a.wqec-mainclose").addClass("wqec-ready")},2700),setTimeout(function(){var e = t.find(".quiz-head-part").height();jQuery(window).width() <= 991 && (e = t.find(".wqec-left-side").outerHeight() + e),t.find(".quiz-body-part").css("top",e + "px"),t.find(".quiz-body-part").find(".inner-quiz-body-part").css("padding-bottom",t.find(".wqec-footer").height() + 30 + "px")},200))},500),cur_pos = $(document).scrollTop(),device.ios() && $("body").addClass("modal-ios")}else{jQuery("div.wqec-xLoader").removeClass("wqec-active")}})),"quiz_block" == i && (e = e.replace("cquiz_",""),jQuery.post("/bitrix/tools/concept.quiz/js/component.php",{wqecSectionCode:e,type:"quiz_block"},function(i){if(i.length>0)jQuery("div.areaBlockquiz#cquiz_" + e).html(i),wqecPercent(jQuery("div.areaBlockquiz#cquiz_" + e)),jQuery("div.areaBlockquiz#cquiz_" + e).find("form.wqec-form input.cwiz-url").val(decodeURIComponent(location.href))})),"open" == i && (jQuery("div.wqec[data-wqec-id='" + e + "']").addClass("wqec-active"),jQuery("body").addClass("wqec-on"),jQuery("div.wqec-shadow").addClass("wqec-active"),cur_pos = $(document).scrollTop(),device.ios() && $("body").addClass("modal-ios"))}function QdelPrm(Url,Prm){var a = Url.split('?');var re = new RegExp('(\\?|&)' + Prm + '=[^&]+','g');Url = ('?' + a[1]).replace(re,'');Url = Url.replace(/^&|\?/,'');var dlm = (Url == '') ? '' :'?';return a[0] + dlm + Url};function popupWindow(e,i,t,a){var c = screen.width / 2 - t / 2,n = screen.height / 2 - a / 2;return window.open(e,i,"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=" + t + ",height=" + a + ",top=" + n + ",left=" + c)}(function(){var e,i,t,a,c,n,s,o;window.device ={},i = window.document.documentElement,o = window.navigator.userAgent.toLowerCase(),device.ios = function(){return device.iphone() || device.ipod() || device.ipad()},device.iphone = function(){return t("iphone")},device.ipod = function(){return t("ipod")},device.ipad = function(){return t("ipad")},device.android = function(){return t("android")},device.androidPhone = function(){return device.android() && t("mobile")},device.androidTablet = function(){return device.android() && !t("mobile")},device.blackberry = function(){return t("blackberry") || t("bb10") || t("rim")},device.blackberryPhone = function(){return device.blackberry() && !t("tablet")},device.blackberryTablet = function(){return device.blackberry() && t("tablet")},device.windows = function(){return t("windows")},device.windowsPhone = function(){return device.windows() && t("phone")},device.windowsTablet = function(){return device.windows() && t("touch")},device.fxos = function(){return t("(mobile;rv:") || t("(tablet;rv:")},device.fxosPhone = function(){return device.fxos() && t("mobile")},device.fxosTablet = function(){return device.fxos() && t("tablet")},device.mobile = function(){return device.androidPhone() || device.iphone() || device.ipod() || device.windowsPhone() || device.blackberryPhone() || device.fxosPhone()},device.tablet = function(){return device.ipad() || device.androidTablet() || device.blackberryTablet() || device.windowsTablet() || device.fxosTablet()},device.portrait = function(){return 90 !== Math.abs(window.orientation)},device.landscape = function(){return 90 === Math.abs(window.orientation)},t = function(e){return -1 !== o.indexOf(e)},c = function(e){var t;return t = new RegExp(e,"i"),i.className.match(t)},e = function(e){return c(e) ? void 0 :i.className += " " + e},s = function(e){return c(e) ? i.className = i.className.replace(e,"") :void 0},device.ios() ? device.ipad() ? e("ios ipad tablet") :device.iphone() ? e("ios iphone mobile") :device.ipod() && e("ios ipod mobile") :device.android() ? device.androidTablet() ? e("android tablet") :e("android mobile") :device.blackberry() ? device.blackberryTablet() ? e("blackberry tablet") :e("blackberry mobile") :device.windows() ? device.windowsTablet() ? e("windows tablet") :device.windowsPhone() ? e("windows mobile") :e("desktop") :device.fxos() ? device.fxosTablet() ? e("fxos tablet") :e("fxos mobile") :e("desktop"),a = function(){return device.landscape() ? (s("portrait"),e("landscape")) :(s("landscape"),e("portrait"))},n = "onorientationchange" in window ? "orientationchange" :"resize",window.addEventListener ? window.addEventListener(n,a,!1) :window.attachEvent ? window.attachEvent(n,a) :window[n] = a,a()}).call(this),cur_pos = 0,jQuery(document).on("click","form.wqec-form input[type='file']",function(){var e = jQuery(this),i = e.parent(),t = i.find("span.area-file"),a = !!(window.File && window.FileReader && window.FileList && window.Blob);e.change(function(){var c;(c = a && e[0].files[0] ? e[0].files[0].name :e.val().replace("C:\\fakepath\\","")).length && (t.is(":visible") ? (t.text(c),t.removeClass("file-none"),t.closest(".load-file").removeClass("has-error")) :i.text(c))}).change()}),jQuery(document).ready(function(){var urlquiz = QdelPrm(window.location.href,"quiz");cur_pos = $(document).scrollTop();var e = window.location.toString(),i = /(quiz=)([0-9]*)/.exec(e);i && openWiz(i[2],"call");if($('.cpt-quiz-admin-mode').length>0)$("body").append("<div class=\"ajax-settings\"></div><div class=\"wqec-setting-btn\"><div class=\"wqec-btn\"><span>"+$('.cpt-quiz-admin-mode').val()+"</span></div></div>");jQuery("body").append('<input type="hidden" name="wqec-url" value="' + urlquiz + '"><div class="areaForWqec"></div><div class="wqec-shadow"></div><div class="wqec-shadow-menu"></div><div class="wqec-modal" id="wqec-video"><div class="wqec-dialog"><a class="wqec-video-close"></a><div id="wqec-player"></div></div></div><div class="wqec-xLoader"><div class="google-spin-wrapper"><div class="google-spin"></div></div></div><input type="hidden" class="cquiz-input-1" name="cquiz-input-1" value=""><input type="hidden" class="cquiz-input-2" name="cquiz-input-2" value=""><input type="hidden" class="cquiz-input-3" name="cquiz-input-3" value="">');var t = new ClipboardQuiz("a.wqec-copy");t.on("success",function(e){var i;e.clearSelection(),console.log(e),i = e.trigger,$(i).parents(".quiz_copy_parent").find(".quiz_copy_complited").addClass("wqec-active"),setTimeout(function(){$(i).parents(".quiz_copy_parent").find(".quiz_copy_complited").removeClass("wqec-active")},3e3)}),t.on("error",function(e){})}),jQuery(document).ready(function(){jQuery("div").is(".areaBlockquiz") > 0 && jQuery(".areaBlockquiz").each(function(e){openWiz($(this).attr("id"),"quiz_block")})}),jQuery(document).on("click",".wqec-share",function(){var e = jQuery(this).attr("data-wqec-name"),i = window.location.href,t = jQuery('input[name~="wqec-url"]').val(),a = jQuery(this).parents("div.wqec").attr("data-wqec-id"),c = "",n = "",s = "";n = t.split("#");if(n.length>1){t = n[0]}if(jQuery(this).parents("div.areaBlockquiz").hasClass("quiz_block")){t += "#cquiz_" + a}else{c = t.split("?");if(c.length>1){t+="&quiz=" + a}else{t+="?quiz=" + a}}"vk" == e && (s = "http://vk.com/share.php?url=" + encodeURIComponent(t),void 0 !== jQuery(this).attr("data-wqec-title") && (s += "&title=" + encodeURIComponent(jQuery(this).attr("data-wqec-title"))),void 0 !== jQuery(this).attr("data-wqec-image") && (s += "&image=" + jQuery(this).attr("data-wqec-image"))),"tw" == e && (s = "https://twitter.com/share?url=" + encodeURIComponent(t),void 0 !== jQuery(this).attr("data-wqec-title") && (s += "&title=" + jQuery(this).attr("data-wqec-title"))),"fb" == e && (s = "https://www.facebook.com/sharer/sharer.php?u=" + encodeURIComponent(t),void 0 !== jQuery(this).attr("data-wqec-image") && (s += "&picture=" + jQuery(this).attr("data-wqec-image"))),"ok" == e && (s = "https://connect.ok.ru/offer?url=" + encodeURIComponent(t)),"gp" == e && (s = "https://plus.google.com/share?url=" + encodeURIComponent(t)),popupWindow(s,"",626,500)}
3659),jQuery(document).on("click",".call-wqec",function(){openWiz(jQuery(this).attr("data-wqec-section-id"),"call")}),jQuery(document).on("click",".call-wqec-menu",function(){openWiz(jQuery(this).attr("data-wqec-section-id"),"call")}),jQuery(document).on("click",".open-wqec",function(){openWiz(jQuery(this).attr("data-wqec-section-id"),"open")}),jQuery(window).resize(function(){wqecResizeVideo(),wqecResizeAgModal()});function cquiz_goals(iblock_id,quiz_id,type,res_id){$.post("/bitrix/tools/concept.quiz/js/yacount.php",{iblock_id:iblock_id,quiz_id:quiz_id,type:type,res_id:res_id},function(e){setTimeout(function(){jQuery("body").append(e)},1e3)})}var chooseOn = !1;function cquiz_step(e,i,c){var n = ".wqec-right-side",s = 0;var th = e;if (jQuery(window).width() <= 991 && !e.parents("div.areaBlockquiz").hasClass("quiz_block") && e.parents("div.wqec").hasClass("wizard-quest-edition-concept") && (s = e.parents(".wqec-content-wrap").offset().top - e.parents("div.wqec-right-side-static-part").offset().top,n = ".wizard-quest-edition-concept"),e.hasClass("wqec-first") && cquiz_goals(e.parents("form.wqec-form").find("input[name='cwizIblockId']").val(),e.parents("form.wqec-form").find("input[name='cwizSectionId']").val(),"begin",""),c.find("div.wqec-vertical-side-inner").hasClass("wqec-tab-num")) c.find("div.wqec-tab").removeClass("wqec-active"),prevVar = parseInt(e.attr("data-step")) - 1,c.find("div.wqec-tab[data-step='" + prevVar + "']").addClass("wqec-complited itwas"),c.find("div.wqec-tab[data-step='" + prevVar + "'].itwas").addClass("wqec-complited"),c.find("div.wqec-tab[data-step='" + e.attr("data-step") + "']").removeClass("wqec-complited"),c.find("div.wqec-tab[data-step='" + e.attr("data-step") + "']").addClass("wqec-active");else{var o = c.find("input.wqec-one-percent-step").val(),r = c.find("input.totalWqecStepPercent").val();o = parseFloat(o),r = parseFloat(r),e.hasClass("wqec-next") && (r += o),e.hasClass("wqec-prev") && (r -= o),r <= 100 && (c.find("input.totalWqecStepPercent").val(r),c.find("div.wqec-tab-per").width(r + "%")),wqecPercent(c)}(e.hasClass("stepEnd") || (c.find("span.wqec-per-in-count").removeClass("wqec-active"),c.find("span.wqec-per-in-count[data-step='" + e.attr("data-step") + "']").addClass("wqec-active")),c.find("div.wqec-content-wrap").removeClass("wqec-active"),c.find("div.wqec-content-wrap[data-step='" + e.attr("data-step") + "']").addClass("wqec-active"),e.parents("div.areaBlockquiz").hasClass("quiz_block") || (e.parents("div.wqec").hasClass("wizard-quest-edition-concept2") ? scrollToTopQuiz(0,".wqec",e) :scrollToTopQuiz(s,n,e)),e.parents("div.areaBlockquiz").hasClass("quiz_block")) && scrollToTopQuiz(c.offset().top - 100,"html:not(:animated),body:not(:animated)",e);jQuery("div").is(".wrap-cquiz-cur-result"),e.hasClass("stepEnd") && (c.find("span.wqec-per-count").hide(),c.find("span.wqec-finish").removeClass("wqec-hide"),c.find("div.wqec-tab-result[data-step='stepEnd']").addClass("wqec-active"),setTimeout(function(){wqecPercent(c)},200),jQuery("div.wqec-xLoader").addClass("wqec-active"),c.hasClass("wizard-quest-edition-concept2") && c.hide(),c.find("div.wqec-content-wrap[data-step='stepEnd']").addClass("wqec-active").html(),jQuery.ajax({type:"POST",url:"/bitrix/tools/concept.quiz/js/result.php",data:i.serialize(),success:function(e){jQuery("div.wqec-xLoader").removeClass("wqec-active"),c.hasClass("wizard-quest-edition-concept2") && c.show(),c.find("div.wqec-content-wrap[data-step='stepEnd']").html(e),c.find("div.wqec-restart").removeClass("wqec-hide"),setTimeout(function(){cquiz_goals(th.parents("form.wqec-form").find("input[name='cwizIblockId']").val(),th.parents("form.wqec-form").find("input[name='cwizSectionId']").val(),"result",i.find("input.cwiz-res-id").val())},500),"send_res" == c.find("input.send_res").val() && jQuery.ajax({url:"/",type:"post",success:function(e){}})}}),c.find("div.wqec-quests").removeClass("wqec-active"))}function size_set_main(){var e = jQuery(window).height(),i = jQuery(".wqec-setting.main-set .wqec-head-wrap").outerHeight() + jQuery(".wqec-setting.main-set .wqec-setting-content").outerHeight() + jQuery(".wqec-setting.main-set .foot-wrap").outerHeight();e > i ? jQuery(".wqec-setting.main-set .wqec-inner").css({"min-height":e + "px"}) :jQuery(".wqec-setting.main-set .wqec-inner").css({"min-height":i + "px"})}jQuery(document).on("click","form.wqec-calc input.wqec-check",function(){chooseOn = !1;var e = jQuery(this),i = e.parents("form.wqec-calc"),t = jQuery(this).parents("div.wqec-content-wrap").find("div.wqec-button-wrap"),a = ".wqec-right-side";if (jQuery(window).width() <= 991 && !jQuery(this).parents("div.areaBlockquiz").hasClass("quiz_block") && (a = ".wizard-quest-edition-concept"),jQuery(this).parents("div.wqec").hasClass("wizard-quest-edition-concept2")) var c = t.offset().top - jQuery(this).parents(".wizard-quest-edition-concept-inner").offset().top - 5;else c = t.offset().top - jQuery(this).parents("div.wqec-right-side-static-part").offset().top;if (jQuery(this).parents("div.wqec-type").hasClass("wqec-check")){var n = !1;jQuery(this).parents("div.wqec-type").find('input[type="checkbox"]').each(function(e,i){jQuery(this).prop("checked") ? (n = !0,jQuery(this).parents("div.wizard-quest-edition-concept2") && jQuery(this).parents("div.wqec-element").addClass("wqec-active").removeClass("wqec-noactive")) :jQuery(this).parents("div.wizard-quest-edition-concept2") && jQuery(this).parents("div.wqec-element").removeClass("wqec-active").addClass("wqec-noactive")}),n ? (t.removeClass("wqec-hide-relative"),chooseOn = !0) :"" != jQuery(this).parents("div.wqec-elements").find("input.wqec-text").val() && void 0 !== jQuery(this).parents("div.wqec-elements").find("input.wqec-text").val() ? (jQuery(this).parents(".wqec-content-wrap").hasClass("one_click_on") || jQuery(this).parents("div.areaBlockquiz").hasClass("quiz_block") || (jQuery(this).parents("div.wqec").hasClass("wizard-quest-edition-concept2") ? scrollToTopQuiz(c,".wqec",jQuery(this)) :scrollToTopQuiz(c,a,jQuery(this))),t.removeClass("wqec-hide-relative"),jQuery(this).parents("div.wizard-quest-edition-concept2") && jQuery(this).parents("div.wqec-elements").find("div.wqec-element").removeClass("wqec-active").removeClass("wqec-noactive")) :(t.addClass("wqec-hide-relative"),chooseOn = !1,jQuery(this).parents("div.wizard-quest-edition-concept2") && jQuery(this).parents("div.wqec-elements").find("div.wqec-element").removeClass("wqec-active").removeClass("wqec-noactive"))}else jQuery(this).parents("div.wqec-elements").find("div.wqec-element").removeClass("wqec-active").addClass("wqec-noactive"),jQuery(this).parents("div.wqec-element").addClass("wqec-active").removeClass("wqec-noactive"),t.removeClass("wqec-hide-relative"),chooseOn = !0,jQuery(this).parents(".wqec-content-wrap").hasClass("one_click_on") || (jQuery(this).parents("div.areaBlockquiz").hasClass("quiz_block") || (jQuery(this).parents("div.wqec").hasClass("wizard-quest-edition-concept2") ? scrollToTopQuiz(c,".wqec",jQuery(this)) :scrollToTopQuiz(c,a,jQuery(this))),jQuery(this).parents("div.areaBlockquiz").hasClass("quiz_block") && jQuery(window).width() <= 991 && !jQuery(this).parents(".wqec-content-wrap").hasClass("one_click_on") && scrollToTopQuiz(c = jQuery(this).parents(".wqec-content-wrap").find(".wqec-button-wrap").offset().top - 150,"html:not(:animated),body:not(:animated)",jQuery(this)));e.parents(".wqec-admin-on").hasClass("show-points") && jQuery.ajax({type:"POST",url:"/bitrix/tools/concept.quiz/js/total_count.php",data:i.serialize(),success:function(i){e.parents("div.wqec").find(".area-for-total").html(i)}})}),jQuery(document).on("click",".wqec-prev-next",function(){chooseOn = !1;var e = jQuery(this),i = jQuery(this).parents("form.wqec-calc"),c = jQuery(this).parents("div.wqec.wqec-active");e.parents("div.areaBlockquiz").hasClass("quiz_block") && (c = jQuery(this).parents("div.areaBlockquiz")),cquiz_step(e,i,c),e.parents(".wqec-admin-on").hasClass("show-points") && jQuery.ajax({type:"POST",url:"/bitrix/tools/concept.quiz/js/total_count.php",data:i.serialize(),success:function(e){c.find(".area-for-total").html(e)}})}),jQuery(document).on("change",".one_click_on label.quiz_wrap_element",function(){chooseOn = !1;var e = jQuery(this).parents(".one_click_on").find(".wqec-next"),i = jQuery(this).parents("form.wqec-calc"),c = jQuery(this).parents(".one_click_on").find(".wqec-next").parents("div.wqec.wqec-active");e.parents("div.areaBlockquiz").hasClass("quiz_block") && (c = jQuery(this).parents(".one_click_on").find(".wqec-next").parents("div.areaBlockquiz")),cquiz_step(e,i,c),e.parents(".wqec-admin-on").hasClass("show-points") && jQuery.ajax({type:"POST",url:"/bitrix/tools/concept.quiz/js/total_count.php",data:i.serialize(),success:function(e){c.find(".area-for-total").html(e)}})}),jQuery(document).on("click","div.wqec-restart",function(){var e = jQuery(this).parents("div.wqec");e.find(".wqec-complited").removeClass("wqec-complited"),e.find(".wqec-active").removeClass("wqec-active"),e.find("form.wqec-calc").trigger("reset"),e.find("div.wqec-button-wrap").addClass("wqec-hide-relative"),e.find(".wqec-first").addClass("wqec-active"),e.find("li.wqec-first").addClass("wqec-active"),e.find("input.totalWqecStepPercent").val(0),e.find("div.wqec-tab-per").width(0),e.find("div.wqec-quests").addClass("wqec-active"),e.find("div.wqec-element").removeClass("wqec-active").removeClass("wqec-noactive"),e.find("input.wqec-in-focus-anim").parent().removeClass("wqec-in-focus"),jQuery(this).addClass("wqec-hide")}),jQuery(document).on("click","a.wqec-agree",function(){jQuery("div.wqec-modal[data-agreemodal='" + jQuery(this).attr("data-agreemodal") + "']").addClass("wqec-active"),jQuery(this).hasClass("from-air") && (jQuery("div.wqec-modal[data-agreemodal='" + jQuery(this).attr("data-agreemodal") + "']").find("a.wqec-close").addClass("from-air"),jQuery("body").addClass("wqec-on")),jQuery("div.wqec-agree-shadow").addClass("wqec-active");wqecResizeAgModal();jQuery(this).parents('div.block').css("z-index","9999999")}),jQuery(document).on("click","a.wqec-close",function(){jQuery(this).parents("div.wqec-modal").removeClass("wqec-active"),jQuery("div.wqec-agree-shadow").removeClass("wqec-active"),jQuery(this).hasClass("from-air") && (jQuery(this).removeClass("from-air"),jQuery("body").removeClass("wqec-on"));jQuery(this).parents('div.block').css("z-index","auto")}),jQuery(document).on("focus","form.wqec-form input.input-text",function(){jQuery(this).parent().removeClass("has-error")}
3659),jQuery("input.input-text","form.wqec-form").focus(function(){jQuery(this).parent().removeClass("has-error")}),jQuery(document).on("click","form.wqec-form input[type='checkbox']",function(){jQuery(this).parents("div.wrap-agree").removeClass("has-error")}),jQuery(document).on("focus","input.wqec-in-focus-anim",function(){"" == jQuery(this).val() && jQuery(this).parent().addClass("wqec-in-focus")}),jQuery(document).on("blur","input.wqec-in-focus-anim",function(){"" == jQuery(this).val() && jQuery(this).parent().removeClass("wqec-in-focus")}),jQuery(document).on("keyup","input.wqec-text",function(){void 0 !== jQuery(this).val() && (jQuery(this).val().length > 0 || 1 == chooseOn ? jQuery(this).parents("div.wqec-content-wrap").find("div.wqec-button-wrap").removeClass("wqec-hide-relative") :jQuery(this).parents("div.wqec-content-wrap").find("div.wqec-button-wrap").addClass("wqec-hide-relative"))}),jQuery(document).on("click","form.form input[type='checkbox']",function(){jQuery(this).parents("div.wrap-agree").removeClass("has-error")}),jQuery(document).on("submit","form.wqec-form",function(){var e = jQuery(this);var th = jQuery(this);e.find("table.wqec-wrap-act").css({height:e.find("table.wqec-wrap-act").outerHeight() + "px"});var i = new FormData(e.get(0));i.append("wqec-send","Y");i.append("cquiz-input-1",jQuery("input.cquiz-input-1").val());i.append("cquiz-input-2",jQuery("input.cquiz-input-2").val());i.append("cquiz-input-3",jQuery("input.cquiz-input-3").val());var t = jQuery("input.wqec-name",e),a = jQuery("input.wqec-phone",e),c = jQuery("input.wqec-email",e),n = jQuery("button.wqec-form-submit",e),s = jQuery("input#agreecheck",e),o = jQuery("div.wqec-questions",e),r = jQuery("div.wqec-load",e),d = jQuery("div.wqec-thank",e),u = jQuery("button[type='submit']",e).attr("data-link"),w = jQuery("input[type='file']",e),q = 0;return void 0 !== s.val() && (s.prop("checked") || (s.parents("div.wrap-agree").addClass("has-error"),q = 1)),void 0 !== w.val() && w.hasClass("require") && w.parents("div.wqec-input").find(".area-file").hasClass("file-none") && (w.parents(".load-file").addClass("has-error"),q = 1),void 0 !== t.val() && t.hasClass("require") && t.val().length < 1 && (t.parent("div.wqec-input").addClass("has-error"),q = 1),void 0 !== c.val() && (c.hasClass("require") || c.val().length > 0) && (/^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/.test(c.val()) || (c.parent("div.wqec-input").addClass("has-error"),q = 1)),void 0 !== a.val() && a.hasClass("require") && a.val().length <= 0 && (a.parent("div.wqec-input").addClass("has-error"),q = 1),0 == q && (n.removeClass("wqec-active"),r.addClass("wqec-active"),setTimeout(function(){jQuery.ajax({url:"/bitrix/tools/concept.quiz/js/form.php",type:"post",contentType:!1,processData:!1,data:i,dataType:"json",success:function(i){"N" == i.OK && (n.addClass("wqec-active"),r.removeClass("wqec-active")),"Y" == i.OK && (o.removeClass("wqec-active"),d.addClass("wqec-active"),jQuery.ajax({url:"/",type:"post",success:function(e){}}),void 0 !== u && u.length > 0 && setTimeout(function(){location.href = u},2e3),setTimeout(function(){cquiz_goals(th.find("input[name='cwizIblockId']").val(),th.find("input[name='cwizSectionId']").val(),"send",th.find("input.cwiz-res-id").val())},500))}})},1e3)),!1}),jQuery(document).on("click","a.wqec-link-video",function(){btn = jQuery(this),jQuery("div#wqec-video").addClass("wqec-active"),jQuery("div.wqec-xLoader").addClass("wqec-active"),jQuery("div.wqec-shadow").addClass("wqec-double"),jQuery.post("/bitrix/tools/concept.quiz/js/videoIframe.php",{wqecVideoCode:jQuery(this).attr("data-wqec-video")},function(e){jQuery("div#wqec-player").html(e),jQuery("div.wqec-xLoader").removeClass("wqec-active"),btn.parents("div.areaBlockquiz").hasClass("quiz_block") && (jQuery("div.wqec-shadow").addClass("wqec-block-quiz-on"),jQuery("body").addClass("wqec-block-quiz-on")),setTimeout(function(){wqecResizeVideo()},500)})}),jQuery(document).on("click","a.wqec-mainclose",function(){jQuery(this).parents("div.wqec-big-wrap").find('.wqec-content-wrap[data-step="stepEnd"]').hasClass("wqec-active") && (jQuery('.open-wqec[data-wqec-section-id="' + jQuery(this).parents("div.wqec").attr("data-wqec-id") + '"]').removeClass("open-wqec").addClass("call-wqe
3659c"),jQuery(this).parents("div.wqec-big-wrap").remove()),jQuery(this).parents("div.wqec").removeClass("wqec-active"),jQuery("body").removeClass("wqec-on"),jQuery("div.wqec-shadow").removeClass("wqec-active"),device.ios() && (window.scrollTo(0,cur_pos),$("body").removeClass("modal-ios"))}),jQuery(document).on("click","a.wqec-video-close",function(){jQuery("div.wqec-shadow").removeClass("wqec-double"),jQuery("div#wqec-video").removeClass("wqec-active"),jQuery("div#wqec-video").find("iframe").remove(),jQuery("div.wqec-shadow.wqec-block-quiz-on").removeClass("wqec-block-quiz-on"),jQuery("body").removeClass("wqec-block-quiz-on")}),jQuery(document).on("click","a.wqec-show-inputs",function(){var e = jQuery(this).parents("form.wqec-form"),i = jQuery("input.wqec-name",e),t = jQuery("input.wqec-phone",e),a = jQuery("input.wqec-email",e),c = 0;void 0 !== i.val() && i.hasClass("require") && !i.parent().hasClass("wqec-hide") && i.val().length < 1 && (i.parent("div.wqec-input").addClass("has-error"),c = 1),void 0 !== a.val() && !a.parent().hasClass("wqec-hide") && (a.hasClass("require") || a.val().length > 0) && (/^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/.test(a.val()) || (a.parent("div.wqec-input").addClass("has-error"),c = 1)),void 0 !== t.val() && t.hasClass("require") && !t.parent().hasClass("wqec-hide") && t.val().length <= 0 && (t.parent("div.wqec-input").addClass("has-error"),c = 1),0 == c && (jQuery(this).parent().hide(),jQuery(this).parents("form.wqec-form").find("div.wqec-input.wqec-hide").removeClass("wqec-hide"),jQuery(this).parents("form.wqec-form").find("div.wrap-btn-submit.wqec-hide").removeClass("wqec-hide"))}),jQuery(document).ready(function(){size_set_main()}),jQuery(window).resize(function(){size_set_main()}),jQuery(document).on("click","a[data-button='main-close-list']",function(){var e = jQuery(this);e.closest(".wqec-setting").removeClass("wqec-on"),jQuery("div.wqec-shadow-menu").removeClass("wqec-active"),jQuery("body").removeClass("wqec-on-menu"),setTimeout(function(){e.closest(".wqec-setting").removeClass("wqec-open")},1e3)}),jQuery(document).on("click",".list-name",function(){var e = jQuery(this).parents(".wqec-parent");e.hasClass("wqec-active") ? jQuery("div.wqec-options-wrap",e).slideUp(200,function(){e.removeClass("wqec-active")}) :(jQuery(this).parents(".wqec-list").find("li").removeClass("wqec-active"),jQuery("div.wqec-options-wrap").slideUp(200),jQuery("div.wqec-options-wrap",e).slideDown(200,function(){e.addClass("wqec-active")}))}),jQuery(document).on("click",".wqec-choose-list",function(){jQuery(this).parents(".wqec-select-wrap").addClass("wqec-open")}),jQuery(document).on("click",".wqec-ar-down",function(){jQuery(this).parents(".wqec-select-wrap").addClass("wqec-open")}),jQuery(document).on("click",".wqec-select-wrap .wqec-name",function(){jQuery(this).parents(".wqec-select-wrap").find(".wqec-choose-list").removeClass("wqec-first").addClass("bold").text(jQuery(this).text()),jQuery(this).parents(".wqec-select-wrap").removeClass("wqec-open")});
3660/* End */
3661;; /* /bitrix/templates/concept_hameleon/js/jqueryConcept.min.js?175734080785577*/
3662; /* /bitrix/templates/concept_hameleon/js/bootstrap.min.js?175734080736868*/
3663; /* /bitrix/templates/concept_hameleon/js/jquery.plugin.min.js?17573408073400*/
3664; /* /bitrix/templates/concept_hameleon/js/jquery.countdown.min.js?175734080713652*/
3665; /* /bitrix/templates/concept_hameleon/js/device.min.js?17573408072605*/
3666; /* /bitrix/templates/concept_hameleon/js/wow.js?17573408088415*/
3667; /* /bitrix/templates/concept_hameleon/js/jquery.enllax.js?17573408075185*/
3668; /* /bitrix/templates/concept_hameleon/js/jquery.maskedinput-1.2.2.min.js?17573408074324*/
3669; /* /bitrix/templates/concept_hameleon/js/jquery.blueimp-gallery.min.js?175734080831993*/
3670; /* /bitrix/templates/concept_hameleon/slick/slick.min.js?175734080742863*/
3671; /* /bitrix/templates/concept_hameleon/js/zero-clipboard.js?175734080710760*/
3672; /* /bitrix/templates/concept_hameleon/js/typed.min.js?17573408083851*/
3673; /* /bitrix/templates/concept_hameleon/js/size-resize.js?17573408071178*/
3674; /* /bitrix/templates/concept_hameleon/js/lazyload.min.js?17573408075023*/
3675;
3675 /* /bitrix/templates/concept_hameleon/js/script.js?178076945367699*/
3676; /* /bitrix/templates/concept_hameleon/js/forms.js?178076945327188*/
3677; /* /bitrix/tools/concept.quiz/js/scripts.js?162878362843869*/
3678
3679//# sourceMappingURL=template_c94a797ac66562ba071484c00acabd4b.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.