function FE_F(){this.h={},this.h.onload=[],this.h.onready=[],this.h.onresize=[],this.was_run={}}function each(e,t){var n,i=0,r=e.length;if(void 0===r){for(n in e)if(!1===t.call(e[n],n,e[n]))break}else for(var o=e[0];i)[^>]*|#([\w-]*))$/,C=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,S=/^[\],:{}\s]*$/,$=/(?:^|:|,)(?:\s*\[)+/g,E=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,T=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,M=/^-ms-/,A=/-([\da-z])/gi,P=function(){g.addEventListener?(g.removeEventListener("DOMContentLoaded",i,!1),h.removeEventListener("load",i,!1)):(g.detachEvent("onreadystatechange",i),h.detachEvent("onload",i))};function O(e){var t=e.length,n=fe.type(e);return!fe.isWindow(e)&&(!(1!==e.nodeType||!t)||("array"===n||"function"!==n&&(0===t||"number"==typeof t&&0"===e.charAt(e.length-1)&&3<=e.length?[null,e,null]:_.exec(e))||!i[1]&&t)return(!t||t.jquery?t||n:this.constructor(t)).find(e);if(i[1]){if(t=t instanceof fe?t[0]:t,fe.merge(this,fe.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:g,!0)),C.test(i[1])&&fe.isPlainObject(t))for(i in t)fe.isFunction(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}if((r=g.getElementById(i[2]))&&r.parentNode){if(r.id!==i[2])return n.find(e);this.length=1,this[0]=r}return this.context=g,this.selector=e,this},selector:"",length:0,size:function(){return this.length},toArray:function(){return u.call(this)},get:function(e){return null==e?this.toArray():e<0?this[this.length+e]:this[e]},pushStack:function(e){e=fe.merge(this.constructor(),e);return e.prevObject=this,e.context=this.context,e},each:function(e,t){return fe.each(this,e,t)},ready:function(e){return fe.ready.promise().done(e),this},slice:function(){return this.pushStack(u.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,e=+e+(e<0?t:0);return this.pushStack(0<=e&&e
a",e=u.getElementsByTagName("*"),t=u.getElementsByTagName("a")[0],!e||!t||!e.length)return{};a=(i=g.createElement("select")).appendChild(g.createElement("option")),n=u.getElementsByTagName("input")[0],t.style.cssText="top:1px;float:left;opacity:.5",o={getSetAttribute:"t"!==u.className,leadingWhitespace:3===u.firstChild.nodeType,tbody:!u.getElementsByTagName("tbody").length,htmlSerialize:!!u.getElementsByTagName("link").length,style:/top/.test(t.getAttribute("style")),hrefNormalized:"/a"===t.getAttribute("href"),opacity:/^0.5/.test(t.style.opacity),cssFloat:!!t.style.cssFloat,checkOn:!!n.value,optSelected:a.selected,enctype:!!g.createElement("form").enctype,html5Clone:"<:nav>"!==g.createElement("nav").cloneNode(!0).outerHTML,boxModel:"CSS1Compat"===g.compatMode,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,boxSizingReliable:!0,pixelPosition:!1},n.checked=!0,o.noCloneChecked=n.cloneNode(!0).checked,i.disabled=!0,o.optDisabled=!a.disabled;try{delete u.test}catch(e){o.deleteExpando=!1}for(c in(n=g.createElement("input")).setAttribute("value",""),o.input=""===n.getAttribute("value"),n.value="t",n.setAttribute("type","radio"),o.radioValue="t"===n.value,n.setAttribute("checked","t"),n.setAttribute("name","t"),(r=g.createDocumentFragment()).appendChild(n),o.appendChecked=n.checked,o.checkClone=r.cloneNode(!0).cloneNode(!0).lastChild.checked,u.attachEvent&&(u.attachEvent("onclick",function(){o.noCloneEvent=!1}),u.cloneNode(!0).click()),{submit:!0,change:!0,focusin:!0})u.setAttribute(s="on"+c,"t"),o[c+"Bubbles"]=s in h||!1===u.attributes[s].expando;return u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",o.clearCloneStyle="content-box"===u.style.backgroundClip,fe(function(){var e,t,n,i="padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",r=g.getElementsByTagName("body")[0];r&&((e=g.createElement("div")).style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",r.appendChild(e).appendChild(u),u.innerHTML="
t
",(n=u.getElementsByTagName("td"))[0].style.cssText="padding:0;margin:0;border:0;display:none",l=0===n[0].offsetHeight,n[0].style.display="",n[1].style.display="none",o.reliableHiddenOffsets=l&&0===n[0].offsetHeight,u.innerHTML="",u.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",o.boxSizing=4===u.offsetWidth,o.doesNotIncludeMarginInBodyOffset=1!==r.offsetTop,h.getComputedStyle&&(o.pixelPosition="1%"!==(h.getComputedStyle(u,null)||{}).top,o.boxSizingReliable="4px"===(h.getComputedStyle(u,null)||{width:"4px"}).width,(t=u.appendChild(g.createElement("div"))).style.cssText=u.style.cssText=i,t.style.marginRight=t.style.width="0",u.style.width="1px",o.reliableMarginRight=!parseFloat((h.getComputedStyle(t,null)||{}).marginRight)),typeof u.style.zoom!==m&&(u.innerHTML="",u.style.cssText=i+"width:1px;padding:1px;display:inline;zoom:1",o.inlineBlockNeedsLayout=3===u.offsetWidth,u.style.display="block",u.innerHTML="
",u.firstChild.style.width="5px",o.shrinkWrapBlocks=3!==u.offsetWidth,o.inlineBlockNeedsLayout&&(r.style.zoom=1)),r.removeChild(e),e=u=n=t=null)}),e=i=r=t=n=null,o}();var N=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,F=/([A-Z])/g;function D(e,t,n,i){if(fe.acceptData(e)){var r,o=fe.expando,a="string"==typeof t,s=e.nodeType,l=s?fe.cache:e,c=s?e[o]:e[o]&&o;if(c&&l[c]&&(i||l[c].data)||!a||n!==x)return c||(s?e[o]=c=d.pop()||fe.guid++:c=o),l[c]||(l[c]={},s||(l[c].toJSON=fe.noop)),"object"!=typeof t&&"function"!=typeof t||(i?l[c]=fe.extend(l[c],t):l[c].data=fe.extend(l[c].data,t)),c=l[c],i||(c.data||(c.data={}),c=c.data),n!==x&&(c[fe.camelCase(t)]=n),a?null==(r=c[t])&&(r=c[fe.camelCase(t)]):r=c,r}}function L(e,t,n){if(fe.acceptData(e)){var i,r,o,a=e.nodeType,s=a?fe.cache:e,l=a?e[fe.expando]:fe.expando;if(s[l]){if(t&&(o=n?s[l]:s[l].data)){for((i=0,r=(t=fe.isArray(t)?t.concat(fe.map(t,fe.camelCase)):t in o?[t]:(t=fe.camelCase(t))in o?[t]:t.split(" ")).length);io;o++)(i=n[o].name).indexOf("data-")||(i=fe.camelCase(i.slice(5)),R(r,i,a[i]));fe._data(r,"parsedAttrs",!0)}return a},removeData:function(e){return this.each(function(){fe.removeData(this,e)})}}),fe.extend({queue:function(e,t,n){var i;return e?(t=(t||"fx")+"queue",i=fe._data(e,t),n&&(!i||fe.isArray(n)?i=fe._data(e,t,fe.makeArray(n)):i.push(n)),i||[]):x},dequeue:function(e,t){t=t||"fx";var n=fe.queue(e,t),i=n.length,r=n.shift(),o=fe._queueHooks(e,t);"inprogress"===r&&(r=n.shift(),i--),(o.cur=r)&&("fx"===t&&n.unshift("inprogress"),delete o.stop,r.call(e,function(){fe.dequeue(e,t)},o)),!i&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return fe._data(e,n)||fe._data(e,n,{empty:fe.Callbacks("once memory").add(function(){fe._removeData(e,t+"queue"),fe._removeData(e,n)})})}}),fe.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.lengths&&a.push({elem:this,handlers:t.slice(s)}),a},fix:function(e){if(e[fe.expando])return e;var t,n,i,r=e.type,o=e,a=this.fixHooks[r];for(a||(this.fixHooks[r]=a=Z.test(r)?this.mouseHooks:X.test(r)?this.keyHooks:{}),i=a.props?this.props.concat(a.props):this.props,e=new fe.Event(o),t=i.length;t--;)e[n=i[t]]=o[n];return e.target||(e.target=o.srcElement||g),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,a.filter?a.filter(e,o):e},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,i,r=t.button,o=t.fromElement;return null==e.pageX&&null!=t.clientX&&(i=(n=e.target.ownerDocument||g).documentElement,n=n.body,e.pageX=t.clientX+(i&&i.scrollLeft||n&&n.scrollLeft||0)-(i&&i.clientLeft||n&&n.clientLeft||0),e.pageY=t.clientY+(i&&i.scrollTop||n&&n.scrollTop||0)-(i&&i.clientTop||n&&n.clientTop||0)),!e.relatedTarget&&o&&(e.relatedTarget=o===e.target?t.toElement:o),e.which||r===x||(e.which=1&r?1:2&r?3:4&r?2:0),e}},special:{load:{noBubble:!0},click:{trigger:function(){return fe.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):x}},focus:{trigger:function(){if(this!==g.activeElement&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){return this===g.activeElement&&this.blur?(this.blur(),!1):x},delegateType:"focusout"},beforeunload:{postDispatch:function(e){e.result!==x&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,i){e=fe.extend(new fe.Event,n,{type:e,isSimulated:!0,originalEvent:{}});i?fe.event.trigger(e,null,t):fe.event.dispatch.call(t,e),e.isDefaultPrevented()&&n.preventDefault()}},fe.removeEvent=g.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)}:function(e,t,n){t="on"+t;e.detachEvent&&(typeof e[t]===m&&(e[t]=null),e.detachEvent(t,n))},fe.Event=function(e,t){return this instanceof fe.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||!1===e.returnValue||e.getPreventDefault&&e.getPreventDefault()?ne:ie):this.type=e,t&&fe.extend(this,t),this.timeStamp=e&&e.timeStamp||fe.now(),this[fe.expando]=!0,x):new fe.Event(e,t)},fe.Event.prototype={isDefaultPrevented:ie,isPropagationStopped:ie,isImmediatePropagationStopped:ie,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=ne,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=ne,e&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=ne,this.stopPropagation()}},fe.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,r){fe.event.special[e]={delegateType:r,bindType:r,handle:function(e){var t,n=e.relatedTarget,i=e.handleObj;return n&&(n===this||fe.contains(this,n))||(e.type=i.origType,t=i.handler.apply(this,arguments),e.type=r),t}}}),fe.support.submitBubbles||(fe.event.special.submit={setup:function(){return!fe.nodeName(this,"form")&&(fe.event.add(this,"click._submit keypress._submit",function(e){e=e.target,e=fe.nodeName(e,"input")||fe.nodeName(e,"button")?e.form:x;e&&!fe._data(e,"submitBubbles")&&(fe.event.add(e,"submit._submit",function(e){e._submit_bubble=!0}),fe._data(e,"submitBubbles",!0))}),x)},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&fe.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){return!fe.nodeName(this,"form")&&(fe.event.remove(this,"._submit"),x)}}),fe.support.changeBubbles||(fe.event.special.change={setup:function(){return K.test(this.nodeName)?("checkbox"!==this.type&&"radio"!==this.type||(fe.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&&(this._just_changed=!0)}),fe.event.add(this,"click._change",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1),fe.event.simulate("change",this,e,!0)})),!1):(fe.event.add(this,"beforeactivate._change",function(e){e=e.target;K.test(e.nodeName)&&!fe._data(e,"changeBubbles")&&(fe.event.add(e,"change._change",function(e){!this.parentNode||e.isSimulated||e.isTrigger||fe.event.simulate("change",this.parentNode,e,!0)}),fe._data(e,"changeBubbles",!0))}),x)},handle:function(e){var t=e.target;return this!==t||e.isSimulated||e.isTrigger||"radio"!==t.type&&"checkbox"!==t.type?e.handleObj.handler.apply(this,arguments):x},teardown:function(){return fe.event.remove(this,"._change"),!K.test(this.nodeName)}}),fe.support.focusinBubbles||fe.each({focus:"focusin",blur:"focusout"},function(e,t){function n(e){fe.event.simulate(t,e.target,fe.event.fix(e),!0)}var i=0;fe.event.special[t]={setup:function(){0==i++&&g.addEventListener(e,n,!0)},teardown:function(){0==--i&&g.removeEventListener(e,n,!0)}}}),fe.fn.extend({on:function(e,t,n,i,r){var o,a;if("object"==typeof e){for(o in"string"!=typeof t&&(n=n||t,t=x),e)this.on(o,t,n,e[o],r);return this}if(null==n&&null==i?(i=t,n=t=x):null==i&&("string"==typeof t?(i=n,n=x):(i=n,n=t,t=x)),!1===i)i=ie;else if(!i)return this;return 1===r&&(a=i,(i=function(e){return fe().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=fe.guid++)),this.each(function(){fe.event.add(this,e,i,n,t)})},one:function(e,t,n,i){return this.on(e,t,n,i,1)},off:function(e,t,n){var i,r;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,fe(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"!=typeof e)return!1!==t&&"function"!=typeof t||(n=t,t=x),!1===n&&(n=ie),this.each(function(){fe.event.remove(this,e,n,t)});for(r in e)this.off(r,t,e[r]);return this},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},trigger:function(e,t){return this.each(function(){fe.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];return n?fe.event.trigger(e,t,n,!0):x}}),function(n,i){var e,_,x,o,t,f,c,k,h,C,r,m,g,a,s,v,u,b="sizzle"+-new Date,y=n.document,w={},S=0,d=0,l=Z(),p=Z(),$=Z(),E=typeof i,T=[],M=T.pop,A=T.push,P=T.slice,O=T.indexOf||function(e){for(var t=0,n=this.length;t+~])"+I+"*"),B=RegExp(F),z=RegExp("^"+N+"$"),H={ID:RegExp("^#("+j+")"),CLASS:RegExp("^\\.("+j+")"),NAME:RegExp("^\\[name=['\"]?("+j+")['\"]?\\]"),TAG:RegExp("^("+j.replace("w","w*")+")"),ATTR:RegExp("^"+T),PSEUDO:RegExp("^"+F),CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+I+"*(even|odd|(([+-]|)(\\d*)n|)"+I+"*(?:([+-]|)"+I+"*(\\d+)|))"+I+"*\\)|)","i"),needsContext:RegExp("^"+I+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+I+"*((?:-\\d)?\\d*)"+I+"*\\)|)(?=[^-]|$)","i")},q=/[\x20\t\r\n\f]*[+~]/,V=/^[^{]+\{\s*\[native code/,W=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,U=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,Y=/'|\\/g,G=/\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,J=/\\([\da-fA-F]{1,6}[\x20\t\r\n\f]?|.)/g,K=function(e,t){var n="0x"+t-65536;return n!=n?t:n<0?String.fromCharCode(65536+n):String.fromCharCode(55296|n>>10,56320|1023&n)};try{P.call(y.documentElement.childNodes,0)[0].nodeType}catch(e){P=function(e){for(var t,n=[];t=this[e++];)n.push(t);return n}}function X(e){return V.test(e+"")}function Z(){var n,i=[];return n=function(e,t){return i.push(e+=" ")>x.cacheLength&&delete n[i.shift()],n[e]=t}}function ee(e){return e[b]=!0,e}function te(e){var t=C.createElement("div");try{return e(t)}catch(e){return!1}finally{t=null}}function ne(e,t,n,i){var r,o,a,s,l,c,u,d,p;if((t?t.ownerDocument||t:y)!==C&&h(t),n=n||[],!e||"string"!=typeof e)return n;if(1!==(a=(t=t||C).nodeType)&&9!==a)return[];if(!m&&!i){if(r=W.exec(e))if(c=r[1]){if(9===a){if(!(o=t.getElementById(c))||!o.parentNode)return n;if(o.id===c)return n.push(o),n}else if(t.ownerDocument&&(o=t.ownerDocument.getElementById(c))&&v(t,o)&&o.id===c)return n.push(o),n}else{if(r[2])return A.apply(n,P.call(t.getElementsByTagName(e),0)),n;if((c=r[3])&&w.getByClassName&&t.getElementsByClassName)return A.apply(n,P.call(t.getElementsByClassName(c),0)),n}if(w.qsa&&!g.test(e)){if(c=!0,u=b,d=t,p=9===a&&e,1===a&&"object"!==t.nodeName.toLowerCase()){for(l=oe(e),(c=t.getAttribute("id"))?u=c.replace(Y,"\\$&"):t.setAttribute("id",u),u="[id='"+u+"'] ",s=l.length;s--;)l[s]=u+ae(l[s]);d=q.test(e)&&t.parentNode||t,p=l.join(",")}if(p)try{return A.apply(n,P.call(d.querySelectorAll(p),0)),n}catch(e){}finally{c||t.removeAttribute("id")}}}return function(e,t,n,i){var r,o,a,s,l,c=oe(e);if(!i&&1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&!m&&x.relative[o[1].type]){if(!(t=x.find.ID(a.matches[0].replace(J,K),t)[0]))return n;e=e.slice(o.shift().value.length)}for(r=H.needsContext.test(e)?0:o.length;r--&&(a=o[r],!x.relative[s=a.type]);)if((l=x.find[s])&&(i=l(a.matches[0].replace(J,K),q.test(o[0].type)&&t.parentNode||t))){if(o.splice(r,1),!(e=i.length&&ae(o)))return A.apply(n,P.call(i,0)),n;break}}return f(e,c)(i,t,m,n,q.test(e)),n}(e.replace(D,"$1"),t,n,i)}function ie(e,t){var n=t&&e,i=n&&(~t.sourceIndex||1<<31)-(~e.sourceIndex||1<<31);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function re(a){return ee(function(o){return o=+o,ee(function(e,t){for(var n,i=a([],e.length,o),r=i.length;r--;)e[n=i[r]]&&(e[n]=!(t[n]=e[n]))})})}for(e in t=ne.isXML=function(e){e=e&&(e.ownerDocument||e).documentElement;return!!e&&"HTML"!==e.nodeName},h=ne.setDocument=function(e){var l=e?e.ownerDocument||e:y;return l!==C&&9===l.nodeType&&l.documentElement&&(r=(C=l).documentElement,m=t(l),w.tagNameNoComments=te(function(e){return e.appendChild(l.createComment("")),!e.getElementsByTagName("*").length}),w.attributes=te(function(e){e.innerHTML="";e=typeof e.lastChild.getAttribute("multiple");return"boolean"!=e&&"string"!=e}),w.getByClassName=te(function(e){return e.innerHTML="",!(!e.getElementsByClassName||!e.getElementsByClassName("e").length)&&(e.lastChild.className="e",2===e.getElementsByClassName("e").length)}),w.getByName=te(function(e){e.id=b+0,e.innerHTML="
",r.insertBefore(e,r.firstChild);var t=l.getElementsByName&&l.getElementsByName(b).length===2+l.getElementsByName(b+0).length;return w.getIdNotName=!l.getElementById(b),r.removeChild(e),t}),x.attrHandle=te(function(e){return e.innerHTML="",e.firstChild&&typeof e.firstChild.getAttribute!=E&&"#"===e.firstChild.getAttribute("href")})?{}:{href:function(e){return e.getAttribute("href",2)},type:function(e){return e.getAttribute("type")}},w.getIdNotName?(x.find.ID=function(e,t){if(typeof t.getElementById!=E&&!m){e=t.getElementById(e);return e&&e.parentNode?[e]:[]}},x.filter.ID=function(e){var t=e.replace(J,K);return function(e){return e.getAttribute("id")===t}}):(x.find.ID=function(e,t){if(typeof t.getElementById!=E&&!m){t=t.getElementById(e);return t?t.id===e||typeof t.getAttributeNode!=E&&t.getAttributeNode("id").value===e?[t]:i:[]}},x.filter.ID=function(e){var t=e.replace(J,K);return function(e){e=typeof e.getAttributeNode!=E&&e.getAttributeNode("id");return e&&e.value===t}}),x.find.TAG=w.tagNameNoComments?function(e,t){return typeof t.getElementsByTagName!=E?t.getElementsByTagName(e):i}:function(e,t){var n,i=[],r=0,o=t.getElementsByTagName(e);if("*"!==e)return o;for(;n=o[r++];)1===n.nodeType&&i.push(n);return i},x.find.NAME=w.getByName&&function(e,t){return typeof t.getElementsByName!=E?t.getElementsByName(name):i},x.find.CLASS=w.getByClassName&&function(e,t){return typeof t.getElementsByClassName==E||m?i:t.getElementsByClassName(e)},a=[],g=[":focus"],(w.qsa=X(l.querySelectorAll))&&(te(function(e){e.innerHTML="",e.querySelectorAll("[selected]").length||g.push("\\["+I+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)"),e.querySelectorAll(":checked").length||g.push(":checked")}),te(function(e){e.innerHTML="",e.querySelectorAll("[i^='']").length&&g.push("[*^$]="+I+"*(?:\"\"|'')"),e.querySelectorAll(":enabled").length||g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(w.matchesSelector=X(s=r.matchesSelector||r.mozMatchesSelector||r.webkitMatchesSelector||r.oMatchesSelector||r.msMatchesSelector))&&te(function(e){w.disconnectedMatch=s.call(e,"div"),s.call(e,"[s!='']:x"),a.push("!=",F)}),g=RegExp(g.join("|")),a=RegExp(a.join("|")),v=X(r.contains)||r.compareDocumentPosition?function(e,t){var n=9===e.nodeType?e.documentElement:e,t=t&&t.parentNode;return e===t||!(!t||1!==t.nodeType||!(n.contains?n.contains(t):e.compareDocumentPosition&&16&e.compareDocumentPosition(t)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},u=r.compareDocumentPosition?function(e,t){var n;return e===t?(c=!0,0):(n=t.compareDocumentPosition&&e.compareDocumentPosition&&e.compareDocumentPosition(t))?1&n||e.parentNode&&11===e.parentNode.nodeType?e===l||v(y,e)?-1:t===l||v(y,t)?1:0:4&n?-1:1:e.compareDocumentPosition?-1:1}:function(e,t){var n,i=0,r=e.parentNode,o=t.parentNode,a=[e],s=[t];if(e===t)return c=!0,0;if(!r||!o)return e===l?-1:t===l?1:r?-1:o?1:0;if(r===o)return ie(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[i]===s[i];)i++;return i?ie(a[i],s[i]):a[i]===y?-1:s[i]===y?1:0},c=!1,[0,0].sort(u),w.detectDuplicates=c),C},ne.matches=function(e,t){return ne(e,null,null,t)},ne.matchesSelector=function(e,t){if((e.ownerDocument||e)!==C&&h(e),t=t.replace(G,"='$1']"),!(!w.matchesSelector||m||a&&a.test(t)||g.test(t)))try{var n=s.call(e,t);if(n||w.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(J,K),e[3]=(e[4]||e[5]||"").replace(J,K),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ne.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ne.error(e[0]),e},PSEUDO:function(e){var t,n=!e[5]&&e[2];return H.CHILD.test(e[0])?null:(e[4]?e[2]=e[4]:n&&B.test(n)&&(t=oe(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(t){return"*"===t?function(){return!0}:(t=t.replace(J,K).toLowerCase(),function(e){return e.nodeName&&e.nodeName.toLowerCase()===t})},CLASS:function(e){var t=l[e+" "];return t||(t=RegExp("(^|"+I+")"+e+"("+I+"|$)"))&&l(e,function(e){return t.test(e.className||typeof e.getAttribute!=E&&e.getAttribute("class")||"")})},ATTR:function(t,n,i){return function(e){e=ne.attr(e,t);return null==e?"!="===n:!n||(e+="","="===n?e===i:"!="===n?e!==i:"^="===n?i&&0===e.indexOf(i):"*="===n?i&&-1++i;)e.push(i);return e})}},{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})x.pseudos[e]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(e);for(e in{submit:!0,reset:!0})x.pseudos[e]=function(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}(e);function oe(e,t){var n,i,r,o,a,s,l,c=p[e+" "];if(c)return t?0:c.slice(0);for(a=e,s=[],l=x.preFilter;a;){for(o in n&&!(i=L.exec(a))||(i&&(a=a.slice(i[0].length)||a),s.push(r=[])),n=!1,(i=R.exec(a))&&(n=i.shift(),r.push({value:n,type:i[0].replace(D," ")}),a=a.slice(n.length)),x.filter)!(i=H[o].exec(a))||l[o]&&!(i=l[o](i))||(n=i.shift(),r.push({value:n,type:o,matches:i}),a=a.slice(n.length));if(!n)break}return t?a.length:a?ne.error(e):p(e,s).slice(0)}function ae(e){for(var t=0,n=e.length,i="";t]","i"),ge=/^\s+/,ve=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,ye=/<([\w:]+)/,be=/\s*$/g,Ee={option:[1,""],legend:[1,"
","
"],area:[1,"",""],param:[1,"",""],thead:[1,"","
"],tr:[2,"","
"],col:[2,"","
"],td:[3,"","
"],_default:fe.support.htmlSerialize?[0,"",""]:[1,"X
","
"]},Te=de(g).appendChild(g.createElement("div"));function Me(e){var t=e.getAttributeNode("type");return e.type=(t&&t.specified)+"/"+e.type,e}function Ae(e){var t=Se.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function Pe(e,t){for(var n,i=0;null!=(n=e[i]);i++)fe._data(n,"globalEval",!t||fe._data(t[i],"globalEval"))}function Oe(e,t){if(1===t.nodeType&&fe.hasData(e)){var n,i,r,o=fe._data(e),e=fe._data(t,o),a=o.events;if(a)for(n in delete e.handle,e.events={},a)for(i=0,r=a[n].length;i");try{for(;n")?o=e.cloneNode(!0):(Te.innerHTML=e.outerHTML,Te.removeChild(o=Te.firstChild)),!(fe.support.noCloneEvent&&fe.support.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||fe.isXMLDoc(e)))for(i=Ie(o),s=Ie(e),a=0;null!=(r=s[a]);++a)i[a]&&function(e,t){var n,i,r;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!fe.support.noCloneEvent&&t[fe.expando]){for(i in(r=fe._data(t)).events)fe.removeEvent(t,i,r.handle);t.removeAttribute(fe.expando)}"script"===n&&t.text!==e.text?(Me(t).text=e.text,Ae(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),fe.support.html5Clone&&e.innerHTML&&!fe.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&xe.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}}(r,i[a]);if(t)if(n)for(s=s||Ie(e),i=i||Ie(o),a=0;null!=(r=s[a]);a++)Oe(r,i[a]);else Oe(e,o);return 0<(i=Ie(o,"script")).length&&Pe(i,!l&&Ie(e,"script")),i=s=r=null,o},buildFragment:function(e,t,n,i){for(var r,o,a,s,l,c,u,d=e.length,p=de(t),f=[],h=0;h")+u[2],r=u[0];r--;)s=s.lastChild;if(!fe.support.leadingWhitespace&&ge.test(o)&&f.push(t.createTextNode(ge.exec(o)[0])),!fe.support.tbody)for(r=(o="table"!==l||be.test(o)?""!==u[1]||be.test(o)?0:s:s.firstChild)&&o.childNodes.length;r--;)fe.nodeName(c=o.childNodes[r],"tbody")&&!c.childNodes.length&&o.removeChild(c);for(fe.merge(f,s.childNodes),s.textContent="";s.firstChild;)s.removeChild(s.firstChild);s=p.lastChild}else f.push(t.createTextNode(o));for(s&&p.removeChild(s),fe.support.appendChecked||fe.grep(Ie(f,"input"),je),h=0;o=f[h++];)if((!i||-1===fe.inArray(o,i))&&(a=fe.contains(o.ownerDocument,o),s=Ie(p.appendChild(o),"script"),a&&Pe(s),n))for(r=0;o=s[r++];)Ce.test(o.type||"")&&n.push(o);return s=null,p},cleanData:function(e,t){for(var n,i,r,o,a=0,s=fe.expando,l=fe.cache,c=fe.support.deleteExpando,u=fe.event.special;null!=(n=e[a]);a++)if((t||fe.acceptData(n))&&(o=(r=n[s])&&l[r])){if(o.events)for(i in o.events)u[i]?fe.event.remove(n,i):fe.removeEvent(n,i,o.handle);l[r]&&(delete l[r],c?delete n[s]:typeof n.removeAttribute!==m?n.removeAttribute(s):n[s]=null,d.push(r))}}});var Ne,Fe,De,Le=/alpha\([^)]*\)/i,Re=/opacity\s*=\s*([^)]*)/,Be=/^(top|right|bottom|left)$/,ze=/^(none|table(?!-c[ea]).+)/,He=/^margin/,qe=RegExp("^("+b+")(.*)$","i"),Ve=RegExp("^("+b+")(?!px)[a-z%]+$","i"),We=RegExp("^([+-])=("+b+")","i"),Ue={BODY:"block"},Qe={position:"absolute",visibility:"hidden",display:"block"},Ye={letterSpacing:0,fontWeight:400},Ge=["Top","Right","Bottom","Left"],Je=["Webkit","O","Moz","ms"];function Ke(e,t){if(t in e)return t;for(var n=t.charAt(0).toUpperCase()+t.slice(1),i=t,r=Je.length;r--;)if((t=Je[r]+n)in e)return t;return i}function Xe(e,t){return e=t||e,"none"===fe.css(e,"display")||!fe.contains(e.ownerDocument,e)}function Ze(e,t){for(var n,i,r,o=[],a=0,s=e.length;a").css("cssText","display:block !important")).appendTo(t.documentElement))[0].contentWindow||Ne[0].contentDocument).document).write(""),t.close(),n=rt(e,t),Ne.detach()),Ue[e]=n),n}function rt(e,t){e=fe(t.createElement(e)).appendTo(t.body),t=fe.css(e[0],"display");return e.remove(),t}fe.fn.extend({css:function(e,t){return fe.access(this,function(e,t,n){var i,r,o={},a=0;if(fe.isArray(t)){for(r=Fe(e),i=t.length;a").append(fe.parseHTML(e)).find(i):e)}).complete(n&&function(e,t){a.each(n,r||[e.responseText,t,e])}),this},fe.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){fe.fn[t]=function(e){return this.on(t,e)}}),fe.each(["get","post"],function(e,r){fe[r]=function(e,t,n,i){return fe.isFunction(t)&&(i=i||n,n=t,t=x),fe.ajax({url:e,type:r,dataType:i,data:t,success:n})}}),fe.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:dt,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(ut[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":kt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":h.String,"text html":!0,"text json":fe.parseJSON,"text xml":fe.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?$t($t(e,fe.ajaxSettings),t):$t(fe.ajaxSettings,e)},ajaxPrefilter:Ct(_t),ajaxTransport:Ct(xt),ajax:function(e,t){"object"==typeof e&&(t=e,e=x),t=t||{};var n,c,u,d,p,f,i,h=fe.ajaxSetup({},t),m=h.context||h,g=h.context&&(m.nodeType||m.jquery)?fe(m):fe.event,v=fe.Deferred(),y=fe.Callbacks("once memory"),b=h.statusCode||{},r={},o={},w=0,a="canceled",_={readyState:0,getResponseHeader:function(e){var t;if(2===w){if(!i)for(i={};t=gt.exec(u);)i[t[1].toLowerCase()]=t[2];t=i[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===w?u:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return w||(e=o[n]=o[n]||e,r[e]=t),this},overrideMimeType:function(e){return w||(h.mimeType=e),this},statusCode:function(e){if(e)if(w<2)for(var t in e)b[t]=[b[t],e[t]];else _.always(e[_.status]);return this},abort:function(e){e=e||a;return f&&f.abort(e),s(0,e),this}};if(v.promise(_).complete=y.add,_.success=_.done,_.error=_.fail,h.url=((e||h.url||dt)+"").replace(ht,"").replace(yt,ut[1]+"//"),h.type=t.method||t.type||h.method||h.type,h.dataTypes=fe.trim(h.dataType||"*").toLowerCase().match(k)||[""],null==h.crossDomain&&(e=bt.exec(h.url.toLowerCase()),h.crossDomain=!(!e||e[1]===ut[1]&&e[2]===ut[2]&&(e[3]||("http:"===e[1]?80:443))==(ut[3]||("http:"===ut[1]?80:443)))),h.data&&h.processData&&"string"!=typeof h.data&&(h.data=fe.param(h.data,h.traditional)),St(_t,h,t,_),2===w)return _;for(n in(p=h.global)&&0==fe.active++&&fe.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!vt.test(h.type),c=h.url,h.hasContent||(h.data&&(c=h.url+=(ft.test(c)?"&":"?")+h.data,delete h.data),!1===h.cache&&(h.url=mt.test(c)?c.replace(mt,"$1_="+pt++):c+(ft.test(c)?"&":"?")+"_="+pt++)),h.ifModified&&(fe.lastModified[c]&&_.setRequestHeader("If-Modified-Since",fe.lastModified[c]),fe.etag[c]&&_.setRequestHeader("If-None-Match",fe.etag[c])),(h.data&&h.hasContent&&!1!==h.contentType||t.contentType)&&_.setRequestHeader("Content-Type",h.contentType),_.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+kt+"; q=0.01":""):h.accepts["*"]),h.headers)_.setRequestHeader(n,h.headers[n]);if(h.beforeSend&&(!1===h.beforeSend.call(m,_,h)||2===w))return _.abort();for(n in a="abort",{success:1,error:1,complete:1})_[n](h[n]);if(f=St(xt,h,t,_)){_.readyState=1,p&&g.trigger("ajaxSend",[_,h]),h.async&&0n;n++)(e=t[n])()||t[n]!==e||t.splice(n--,1);t.length||fe.fx.stop(),It=x},fe.fx.timer=function(e){e()&&fe.timers.push(e)&&fe.fx.start()},fe.fx.interval=13,fe.fx.start=function(){jt=jt||setInterval(fe.fx.tick,fe.fx.interval)},fe.fx.stop=function(){clearInterval(jt),jt=null},fe.fx.speeds={slow:600,fast:200,_default:400},fe.fx.step={},fe.expr&&fe.expr.filters&&(fe.expr.filters.animated=function(t){return fe.grep(fe.timers,function(e){return t===e.elem}).length}),fe.fn.offset=function(t){if(arguments.length)return t===x?this:this.each(function(e){fe.offset.setOffset(this,t,e)});var e,n={top:0,left:0},i=this[0],r=i&&i.ownerDocument;return r?(e=r.documentElement,fe.contains(e,i)?(typeof i.getBoundingClientRect!==m&&(n=i.getBoundingClientRect()),r=Vt(r),{top:n.top+(r.pageYOffset||e.scrollTop)-(e.clientTop||0),left:n.left+(r.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}):n):void 0},fe.offset={setOffset:function(e,t,n){var i=fe.css(e,"position");"static"===i&&(e.style.position="relative");var r,o,a=fe(e),s=a.offset(),l=fe.css(e,"top"),c=fe.css(e,"left"),u={},c=("absolute"===i||"fixed"===i)&&-1",{size:1}).attr("size")&&l.attrFn,s=l.attr,i=l.attrHooks.value&&l.attrHooks.value.get||function(){return null},r=l.attrHooks.value&&l.attrHooks.value.set||function(){return c},d=/^(?:input|button)$/i,p=/^[238]$/,f=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,h=/^(?:checked|selected)$/i;e(l,"attrFn",a||{},"jQuery.attrFn is deprecated"),l.attr=function(e,t,n,i){var r=t.toLowerCase(),o=e&&e.nodeType;return i&&(s.length<4&&u("jQuery.fn.attr( props, pass ) is deprecated"),e&&!p.test(o)&&(a?t in a:l.isFunction(l.fn[t])))?l(e)[t](n):("type"===t&&n!==c&&d.test(e.nodeName)&&e.parentNode&&u("Can't change the 'type' of an input or button in IE 6/7/8"),!l.attrHooks[r]&&f.test(r)&&(l.attrHooks[r]={get:function(e,t){var n,i=l.prop(e,t);return!0===i||"boolean"!=typeof i&&(n=e.getAttributeNode(t))&&!1!==n.nodeValue?t.toLowerCase():c},set:function(e,t,n){return!1===t?l.removeAttr(e,n):((t=l.propFix[n]||n)in e&&(e[t]=!0),e.setAttribute(n,n.toLowerCase())),n}},h.test(r)&&u("jQuery.fn.attr('"+r+"') may use property instead of attribute")),s.call(l,e,t,n))},l.attrHooks.value={get:function(e,t){var n=(e.nodeName||"").toLowerCase();return"button"===n?i.apply(this,arguments):("input"!==n&&"option"!==n&&u("jQuery.fn.attr('value') no longer gets properties"),t in e?e.value:null)},set:function(e,t){var n=(e.nodeName||"").toLowerCase();return"button"===n?r.apply(this,arguments):("input"!==n&&"option"!==n&&u("jQuery.fn.attr('value', val) no longer sets properties"),e.value=t,c)}};var o,m=l.fn.init,g=l.parseJSON,v=/^(?:[^<]*(<[\w\W]+>)[^>]*|#([\w\-]*))$/;l.fn.init=function(e,t,n){var i;return e&&"string"==typeof e&&!l.isPlainObject(t)&&(i=v.exec(e))&&i[1]&&("<"!==e.charAt(0)&&u("$(html) HTML strings must start with '<' character"),t&&t.context&&(t=t.context),l.parseHTML)?m.call(this,l.parseHTML(l.trim(e),t,!0),t,n):m.apply(this,arguments)},l.fn.init.prototype=l.fn,l.parseJSON=function(e){return e||null===e?g.apply(this,arguments):(u("jQuery.parseJSON requires a valid JSON string"),null)},l.uaMatch=function(e){e=e.toLowerCase();e=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:e[1]||"",version:e[2]||"0"}},l.browser||(T={},(o=l.uaMatch(navigator.userAgent)).browser&&(T[o.browser]=!0,T.version=o.version),T.chrome?T.webkit=!0:T.webkit&&(T.safari=!0),l.browser=T),e(l,"browser",l.browser,"jQuery.browser is deprecated"),l.sub=function(){function n(e,t){return new n.fn.init(e,t)}l.extend(!0,n,this),n.superclass=this,n.fn=n.prototype=this(),(n.fn.constructor=n).sub=this.sub,n.fn.init=function(e,t){return t&&t instanceof l&&!(t instanceof n)&&(t=n(t)),l.fn.init.call(this,e,t,i)},n.fn.init.prototype=n.fn;var i=n(document);return u("jQuery.sub() is deprecated"),n},l.ajaxSetup({converters:{"text json":l.parseJSON}});var y=l.fn.data;l.fn.data=function(e){var t,n,i=this[0];return!i||"events"!==e||1!==arguments.length||(t=l.data(i,e),n=l._data(i,e),t!==c&&t!==n||n===c)?y.apply(this,arguments):(u("Use of jQuery.fn.data('events') is deprecated"),n)};var b=/\/(java|ecma)script/i,w=l.fn.andSelf||l.fn.addBack;function _(e){return"string"!=typeof e||l.event.special.hover?e:(A.test(e)&&u("'hover' pseudo-event is deprecated, use 'mouseenter mouseleave'"),e&&e.replace(A,"mouseenter$1 mouseleave$1"))}l.fn.andSelf=function(){return u("jQuery.fn.andSelf() replaced by jQuery.fn.addBack()"),w.apply(this,arguments)},l.clean||(l.clean=function(e,t,n,i){t=(t=!(t=t||document).nodeType&&t[0]||t).ownerDocument||t,u("jQuery.clean() is deprecated");var r,o,a,s=[];if(l.merge(s,l.buildFragment(e,t).childNodes),n)for(o=function(e){return!e.type||b.test(e.type)?i?i.push(e.parentNode?e.parentNode.removeChild(e):e):n.appendChild(e):c},r=0;null!=(a=s[r]);r++)l.nodeName(a,"script")&&o(a)||(n.appendChild(a),a.getElementsByTagName!==c&&(a=l.grep(l.merge([],a.getElementsByTagName("script")),o),s.splice.apply(s,[r+1,0].concat(a)),r+=a.length));return s});var x=l.event.add,k=l.event.remove,C=l.event.trigger,S=l.fn.toggle,$=l.fn.live,E=l.fn.die,T="ajaxStart|ajaxStop|ajaxSend|ajaxComplete|ajaxError|ajaxSuccess",M=RegExp("\\b(?:"+T+")\\b"),A=/(?:^|\s)hover(\.\S+|)\b/;l.event.props&&"attrChange"!==l.event.props[0]&&l.event.props.unshift("attrChange","attrName","relatedNode","srcElement"),l.event.dispatch&&e(l.event,"handle",l.event.dispatch,"jQuery.event.handle is undocumented and deprecated"),l.event.add=function(e,t,n,i,r){e!==document&&M.test(t)&&u("AJAX events should be attached to document: "+t),x.call(this,e,_(t||""),n,i,r)},l.event.remove=function(e,t,n,i,r){k.call(this,e,_(t)||"",n,i,r)},l.fn.error=function(){var e=Array.prototype.slice.call(arguments,0);return u("jQuery.fn.error() is deprecated"),e.splice(0,0,"error"),arguments.length?this.bind.apply(this,e):(this.triggerHandler.apply(this,e),this)},l.fn.toggle=function(n,e){if(!l.isFunction(n)||!l.isFunction(e))return S.apply(this,arguments);u("jQuery.fn.toggle(handler, handler...) is deprecated");function t(e){var t=(l._data(this,"lastToggle"+n.guid)||0)%o;return l._data(this,"lastToggle"+n.guid,1+t),e.preventDefault(),i[t].apply(this,arguments)||!1}var i=arguments,r=n.guid||l.guid++,o=0;for(t.guid=r;i.length>o;)i[o++].guid=r;return this.click(t)},l.fn.live=function(e,t,n){return u("jQuery.fn.live() is deprecated"),$?$.apply(this,arguments):(l(this.context).on(e,this.selector,t,n),this)},l.fn.die=function(e,t){return u("jQuery.fn.die() is deprecated"),E?E.apply(this,arguments):(l(this.context).off(e,this.selector||"**",t),this)},l.event.trigger=function(e,t,n,i){return n||M.test(e)||u("Global events are undocumented and deprecated"),C.call(this,e,t,n||document,i)},l.each(T.split("|"),function(e,t){l.event.special[t]={setup:function(){var e=this;return e!==document&&(l.event.add(document,t+"."+l.guid,function(){l.event.trigger(t,null,e,!0)}),l._data(this,t,l.guid++)),!1},teardown:function(){return this!==document&&l.event.remove(document,t+"."+l._data(this,t)),!1}}})}(jQuery,window),function(r){var m=r.scrollTo=function(e,t,n){r(window).scrollTo(e,t,n)};function n(e){return"object"==typeof e?e:{top:e,left:e}}m.defaults={axis:"xy",duration:1.3<=parseFloat(r.fn.jquery)?0:1,limit:!0},m.window=function(e){return r(window)._scrollable()},r.fn._scrollable=function(){return this.map(function(){var e=this;if(!(!e.nodeName||-1!=r.inArray(e.nodeName.toLowerCase(),["iframe","#document","html","body"])))return e;e=(e.contentWindow||e).document||e.ownerDocument||e;return/webkit/i.test(navigator.userAgent)||"BackCompat"==e.compatMode?e.body:e.documentElement})},r.fn.scrollTo=function(e,t,h){return"object"==typeof t&&(h=t,t=0),"function"==typeof h&&(h={onAfter:h}),"max"==e&&(e=9e9),h=r.extend({},m.defaults,h),t=t||h.duration,h.queue=h.queue&&1")[0],g=u.each;function v(e,t,n){var i=m[t.type]||{};return null==e?n||!t.def?null:t.def:(e=i.floor?~~e:parseFloat(e),isNaN(e)?t.def:i.mod?(e+i.mod)%i.mod:e<0?0:i.max>2,r=(3&a)<<4|(t=e.charCodeAt(l++))>>4,o=(15&t)<<2|(n=e.charCodeAt(l++))>>6,a=63&n,isNaN(t)?o=a=64:isNaN(n)&&(a=64),s=s+this._keyStr.charAt(i)+this._keyStr.charAt(r)+this._keyStr.charAt(o)+this._keyStr.charAt(a);return s},e.prototype.decode=function(e){var t,n,i,r,o,a="",s=0;for(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");s>4,n=(15&i)<<4|(r=this._keyStr.indexOf(e.charAt(s++)))>>2,i=(3&r)<<6|(o=this._keyStr.indexOf(e.charAt(s++))),a+=String.fromCharCode(t),64!=r&&(a+=String.fromCharCode(n)),64!=o&&(a+=String.fromCharCode(i));return a=this._utf8_decode(a)},e.prototype._utf8_encode=function(e){e=e.replace(/\r\n/g,"\n");for(var t="",n=0;n>6|192):(t+=String.fromCharCode(i>>12|224),t+=String.fromCharCode(i>>6&63|128)),t+=String.fromCharCode(63&i|128))}return t},e.prototype._utf8_decode=function(e){for(var t="",n=0,i=c1=c2=0;ns)&&a.push(!1===n?r.nativeDef:M(s,r))),s++,(void 0===O||sm&&(t=e(E.matches[m],[m].concat(n.slice(1,n.length)),i))&&(f.push(m.toString()),ae.each(I,function(e,t){t.alternation=n.length-1}))),a=I.slice(),O=d,I=[];for(var v=0;vx.quantifier.min-1,o(P,C)){if(k>x.quantifier.min-1){j=!0,O=M;break}return!0}return!0}}else if(t=A(t,T,n,i))return!0}else O++;var S,$}(E.matches[n],[n].concat(e),t);if(i&&O===M)return i;if(M1+(""===e[e.length-1].match.def?1:0)&&!0!==e[0].match.optionality&&!0!==e[0].match.optionalQuantifier&&null===e[0].match.fn&&!/[0-9a-bA-Z]/.test(e[0].match.def)?[u(e)]:e}var P,i,r,o=F.maskToken,O=e?t:0,a=e?e.slice():[0],I=[],j=!1,N=e?e.join(""):"";if(-1n)&&(""===(t=C(n,d(n-1).locator,n-1).slice())[t.length-1].match.def&&t.pop(),(t=u(t))&&(t.match.def===D.radixPointDefinitionSymbol||!h(n,!0)||ae.inArray(D.radixPoint,S())1+(""===e[e.length-1].match.def?1:0)}}function T(e,t){var n=F.maskLength;if(n<=e)return n;for(var i=e;++i1+(""===i[i.length-1].match.def?1:0))for(var o=0;oe.scrollWidth?s:0,ce||!1!==D.insertMode||t!==n||n++,e.setSelectionRange?(e.selectionStart=t,e.selectionEnd=n):window.getSelection?(o=document.createRange(),void 0!==e.firstChild&&null!==e.firstChild||(a=document.createTextNode(""),e.appendChild(a)),o.setStart(e.firstChild,t=e){var s=e-r,l=n.offsetWidth-e;n.innerHTML=i.charAt(o),o=(s-=n.offsetWidth/3)"):(o=!0,r+="")}if(void 0!==I){t=t||S(),void 0===n?n=y(e):void 0===n.begin&&(n={begin:n,end:n});var r="",o=!1;if(""!=t)for(var a,s,l,c=0,u=k();c===n.begin&&document.activeElement===e&&(r+=""),F.validPositions[c]?(l=F.validPositions[c],s=l.match,a=l.locator.slice(),i(),r+=l.input):(l=d(c,a,c-1),s=l.match,a=l.locator.slice(),(!1===D.jitMasking||cc)&&(i(),r+=M(c,s))),c++,(void 0===O||cn.length&&(y(t,n.length),i=y(t)),S().length-n.length!=1||n.charAt(i.begin)===S()[i.begin]||n.charAt(i.begin+1)===S()[i.begin]||h(i.begin)){for(var o=k()+1,a=p().join("");null===n.match(se.escapeRegex(a)+"$");)a=a.slice(1);v(t,!0,!1,n=(n=n.replace(a,"")).split(""),e,i.begin=e.length?e.length-1:t<0?0:t],a=e.slice();o===n.groupSeparator&&(a.splice(t--,1),o=a[t]);var s=a.join("").match(new RegExp("^"+h.escapeRegex(n.negationSymbol.front)));t>((s=null!==s&&1===s.length)?n.negationSymbol.front.length:0)+n.prefix.length&&tn.groupSize)for(var u=new RegExp("([-+]?[\\d?]+)([\\d?]{"+n.groupSize+"})");u.test(l)&&""!==n.groupSeparator;)l=(l=l.replace(u,"$1"+n.groupSeparator+"$2")).replace(n.groupSeparator+n.groupSeparator,n.groupSeparator);l=l.replace("?","!"),""!==n.radixPoint&&1parseFloat(i.max)&&(l=Math.abs(i.max),s=i.max<0,o=void 0),a=l.toString().replace(".",i.radixPoint).split(""),isFinite(i.digits)){var u=f.inArray(i.radixPoint,a),d=f.inArray(i.radixPoint,o);-1===u&&(a.push(i.radixPoint),u=a.length-1);for(var p=1;p<=i.digits;p++)i.digitsOptional||void 0!==a[u+p]&&a[u+p]!==i.placeholder.charAt(0)?-1!==d&&void 0!==o[d+p]&&(a[u+p]=a[u+p]||o[d+p]):a[u+p]="0";a[a.length-1]===i.radixPoint&&delete a[a.length-1]}if(l.toString()!==a&&l.toString()+"."!==a||s)return a=(i.prefix+a.join("")).split(""),!s||0===l&&"blur"===e.type||(a.unshift(i.negationSymbol.front),a.push(i.negationSymbol.back)),i.numericInput&&(a=a.reverse()),(r=i.postFormat(a,i.numericInput?n:n-1,i)).buffer&&(r.refreshFromBuffer=r.buffer.join("")!==t.join("")),r}}if(i.autoGroup)return(r=i.postFormat(t,i.numericInput?n:n-1,i)).caret=n<(r.isNegative?i.negationSymbol.front.length:0)+i.prefix.length||n>r.buffer.length-(r.isNegative?i.negationSymbol.back.length:0)?r.pos:r.pos+1,r},regex:{integerPart:function(e){return new RegExp("["+h.escapeRegex(e.negationSymbol.front)+"+]?\\d+")},integerNPart:function(e){return new RegExp("[\\d"+h.escapeRegex(e.groupSeparator)+h.escapeRegex(e.placeholder.charAt(0))+"]+")}},signHandler:function(e,t,n,i,r){if(!i&&r.allowMinus&&"-"===e||r.allowPlus&&"+"===e){i=t.buffer.join("").match(r.regex.integerPart(r));if(i&&0i||n[1].length>i)&&(e=e.toString().replace(".",t.radixPoint)));var n=e.match(/,/g),i=e.match(/\./g);return e=i&&n?i.length>n.length?(e=e.replace(/\./g,"")).replace(",",t.radixPoint):n.length>i.length?(e=e.replace(/,/g,"")).replace(".",t.radixPoint):e.indexOf(".")"},countrycode:"",phoneCodes:[],mask:function(e){return e.definitions={"#":e.definitions[9]},e.phoneCodes.sort(t)},keepStatic:!0,onBeforeMask:function(e,t){e=e.replace(/^0{1,2}/,"").replace(/[\s]/g,"");return e=1m.length&&!(i=e(s,!0)););(i=i||e(s,!0))&&(o.repeaterPart=m),m=a+o.quantifier.max}else{for(var l=0,c=o.quantifier.max-1;l/g,">").replace(/&/g,"&").replace(/\n/g,"
 ");""===r.trim(e)&&(e="a"),i.html(e),r(t).css("height",Math.max(i[0].offsetHeight+10,n))},0)}var t=r(this),n=t.height(),i=r("
").css({position:"absolute",top:-1e4,left:-1e4,width:r(this).width(),fontSize:t.css("fontSize"),fontFamily:t.css("fontFamily"),lineHeight:t.css("lineHeight"),resize:"none"}).addClass("shadow").appendTo(document.body);t.css("overflow","hidden").change(e).keyup(e).keydown(e).focus(e),e.apply(this)}),this}}(jQuery),function(s){function e(e){function t(){e.stopPropagation(),e.preventDefault()}var n=s(this),i=this.scrollTop,r=this.scrollHeight,o=n.outerHeight(),a=e.originalEvent.deltaY<0;return a||r-o-i!=0?a&&0===i?(n.scrollTop(0),t()):void 0:(n.scrollTop(r),t())}function t(e){var t=s(this),n=s(this).get(0);0===t.scrollTop()&&t.scrollTop(1);var i=n.scrollTop;n.scrollHeight-n.offsetHeight==i&&t.scrollTop(i-1)}s.fn.scrollable=function(){this.on("wheel",e),this.on("touchstart",t)},s.fn.unScrollable=function(){this.off("wheel",e),this.off("touchstart",t)}}(jQuery),function(t){t(function(){var e;t.support.transition=(e=function(){var e,t=document.createElement("bootstrap"),n={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(e in n)if(void 0!==t.style[e])return n[e]}())&&{end:e}})}(window.jQuery),function(r){function o(e,t){this.options=t,this.$element=r(e).delegate('[data-dismiss="modal"]',"click.dismiss.modal",r.proxy(this.hide,this)),this.options.remote&&this.$element.find(".modal-body").load(this.options.remote)}o.prototype={constructor:o,toggle:function(){return this[this.isShown?"hide":"show"]()},show:function(){var t=this,e=r.Event("show");this.$element.trigger(e),this.isShown||e.isDefaultPrevented()||(this.isShown=!0,this.escape(),this.backdrop(function(){var e=r.support.transition&&t.$element.hasClass("fade");t.$element.parent().length||t.$element.appendTo(document.body),t.$element.show(),e&&t.$element[0].offsetWidth,t.$element.addClass("in").attr("aria-hidden",!1),t.enforceFocus(),e?t.$element.one(r.support.transition.end,function(){t.$element.focus().trigger("shown")}):t.$element.focus().trigger("shown")}))},hide:function(e){e&&e.preventDefault();e=r.Event("hide"),this.$element.trigger(e),this.isShown&&!e.isDefaultPrevented()&&(this.isShown=!1,this.escape(),r(document).off("focusin.modal"),this.$element.removeClass("in").attr("aria-hidden",!0),r.support.transition&&this.$element.hasClass("fade")?this.hideWithTransition():this.hideModal())},enforceFocus:function(){var t=this;r(document).on("focusin.modal",function(e){t.$element[0]===e.target||t.$element.has(e.target).length||t.$element.focus()})},escape:function(){var t=this;this.isShown&&this.options.keyboard?this.$element.on("keyup.dismiss.modal",function(e){27==e.which&&t.hide()}):this.isShown||this.$element.off("keyup.dismiss.modal")},hideWithTransition:function(){var e=this,t=setTimeout(function(){e.$element.off(r.support.transition.end),e.hideModal()},500);this.$element.one(r.support.transition.end,function(){clearTimeout(t),e.hideModal()})},hideModal:function(){var e=this;this.$element.hide(),this.backdrop(function(){e.removeBackdrop(),e.$element.trigger("hidden")})},removeBackdrop:function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},backdrop:function(e){var t,n=this.$element.hasClass("fade")?"fade":"";this.isShown&&this.options.backdrop?(t=r.support.transition&&n,this.$backdrop=r('')).appendTo(e).css("background-image","url("+t+")"),n}function updateQuizCssClasses(t,e,n,i,r,o){t.removeClass("quiz-form--v1"),t.removeClass("quiz-form--bg-img");var a=["light","dark"];a.forEach(function(e){t.removeClass("quiz-form--"+e)}),n?(t.addClass("quiz-form"),0 

"},arrows:1===parseInt(i.attr("slide-arrow")),nextArrow:'
',prevArrow:'
',slidesToShow:1};1===parseInt(i.attr("slide-auto"))&&1!=i.attr("in-af")&&(e.autoplay=!0,e.autoplaySpeed=1e3*parseFloat(i.attr("slide-pspeed"))||2e3),"crossfade"==i.attr("slide-anim")&&(e.fade=!0,e.cssEase="linear"),t.slick(e),window.adapterManager.slickOpt[n.attr("id")]=e}function updatePopupOverlayStyle(e){const t=$("#popup_list");let n="";e&&(n=$("#"+e).find(".section_popup_wnd").data("overlayColor")),t.css({background:n})}function hideSectionPopup(e){var t=$("#popup_list > #"+e),n=t.hasClass("blk-section--ms-popup");if(/\?af_popup/i.test(window.location.href))return!1;t.removeClass("open"),window._isEditor||(t.find(".blk.blk_video .video.autoplay iframe, .blk_video.video--play iframe").each(function(){window.stopAutoPlayVideo($(this))}),window.userVideo.stopVideosInPopup(e)),reInitVideoIFrame(t);t=$("body");t.css("margin-right",0).removeClass("open_popup"),n&&t.removeClass("open-popup-ms"),$("body>.navbar>.navbar-inner").css("padding-right",0),$(".section_popup .blk_section_inner").css({transform:""}),window._isEditor||updatePopupOverlayStyle(null),FE.run("sectionPopup_hide")}function clickButtonLink(e,t,n){insertJavaScript(e,t,function(){var e=$(n);e.attr("href")&&("_blank"==e.attr("target")?window.open(e.attr("href")):window.location.href=e.attr("href"))})}function btnPopupWnd(e){var t=$(e).closest(".blk"),n=t.attr("id"),i=$("#btnPopupWnd"),e=i.attr("cur-blk"),t=t.find(".wnd_data:first");void 0!==e&&e==n||(e=parseInt(t.attr("wnd_width"))||600,"undefined"==typeof adapterManager||adapterManager.isPC()||(e=adapterManager.getSettings(adapterManager.type).window_popover_width),i.width(e),i.find(".wind-header h3, .wind-header .div_h3").text(t.find(".wnd_data_title").text()),i.find(".wind-body").html(t.find(".wnd_data_text").html()),i.attr("cur-blk",n),consoleDbg("btnPopupWnd: move content")),i.wind("show"),i=null,FE.run("popupWndOpen")}function truncate(e,t){return"string"!=typeof e||e.length'))})}function stVisit(){var e=getCookie("LPmagCode"),t={ref:document.referrer};void 0===e?t.new=1:t.id=e,$.ajax({url:window.baseUrl+"stat/visit",data:t,cache:!1,success:function(e){var t,n=JSON.parse(e);if(console.log(n),void 0!==n.res)switch(n.res){case"0":console.log(n.mes);break;case"1":void 0!==n.id?stVisitPropagate(n.id):void 0!==(t=getCookie("_magCode"))&&stVisitPropagate(t)}}})}function stVisitPropagate(e){var t,n,i=["lpmotor.ru","lpmotor.org","bm360.ru","admin.lpmotor.ru"];for(n in i)(t=document.createElement("img")).className="mag_img",t.src=("https:"==document.location.protocol?"https:":"http:")+"/"+i[n]+"/stat/magcode.png?id="+e,t.onload=function(){this.parentNode.removeChild(this)},document.getElementsByTagName("body")[0].appendChild(t);t=n=i=null}function stLpcidPropagate(){var e=getCookie("_lpcid");if(void 0!==e){var t,n,i=document.getElementsByTagName("body")[0];for(t in window._lpcid_hosts)window._lpcid_hosts[t].replace(/^http(|s):\/\//,"")!=document.location.host&&((n=new Image).className="mag_img",n.onload=stVisImgRemove,n.src=window._lpcid_hosts[t]+"/stat/cid.gif?v="+e+"&t="+ +new Date,i.appendChild(n));t=n=i=null}}function stVisImgRemove(){this.parentNode&&this.parentNode.removeChild(this)}function stVisImgLoaded(){stLpcidPropagate(),this.parentNode&&this.parentNode.removeChild(this)}function stVis(e){void 0===e&&(e="landing");var t=new Image,n=getURLParam2("p");t.className="mag_img",t.onload=stVisImgLoaded,t.src=("https:"==document.location.protocol?"https:":"http:")+"//"+document.location.host+"/stat/vis.gif?type="+e+"&ref="+document.referrer+(null===n?"":"&p="+encodeURI(n))+"&t="+ +new Date,document.getElementsByTagName("body")[0].appendChild(t),t=null}function createFrame(e,t){var n=document.createElement("iframe");n.className="mag_frame",n.src=e+"/tracer/frame/cid:"+t+"?_="+ +new Date,document.body.appendChild(n)}function gaSpread(e){console.log("gaSpread...");var t=getCookie("_ga_cid");if(void 0!==t)switch(console.log("gaSpread=",e),createFrame("//admin.lpmotor.ru",t),e){case"lpmotor":createFrame("//bm360.ru",t);break;case"bm360":createFrame("//lpmotor.ru",t)}}function lockScreen(e,t){t=extend({show_animation:!1,show_timer:!1,show_btn_close:!1,delay_before:0,css_class:"",hide_bg:!1,v2:!1,v3:!1},t);var n={},i=$('');t.v2&&(i=$('
'),t.bg&&i.find(".screen-lock__loader-wrap").css("background",t.bg)),t.v3&&(i=window._env.isWhiteLabelBeeline?$('
\n
\n \n
\n
'):$('
\n
\n \n \n \n \n \n \n \n \n
\n
\n
\n
\n
\n
\n
')),t.hide_bg&&i.find(".locker-background").hide(),0e.attr("real_w")?e.attr("real_w"):t,e.css({width:t,height:"auto"}),e.height()<2&&(t=Math.ceil(2*n/i),e.css({width:t}))):e.css({width:e.attr("prod_w"),height:"auto"}),e=null}),e.find(".blk_video").each(function(){var e=$(this).find("iframe:first"),t=$(this).parent().width();t<=parseInt(e.css("width"))?(t=(t=t<20?20:t)>e.attr("data-width")?e.attr("data-width"):t,e.css({width:t})):e.css({width:e.attr("data-width")}),e=null})}function reInitVideoIFrame(e){(e.hasClass("blk_video")?e:e.find(".blk_video")).each(function(){var e=$(this).find(".video iframe:first");e.attr("src",e.attr("src"))})}function toggleBtnLocker(e){var t=e.find(".btn-locker"),n=e.attr("disabled");void 0!==n&&!1!==n?(e.removeAttr("disabled"),t.hide()):(e.attr("disabled",!0),t.show())}function initFileFields(s,l,e){window.maxPostSize=e,window._isEditor?$(document).on("click",".user_form .userfiles_btn",function(e){return e.preventDefault(),!1}):($(".user_form .userfiles_input").on("click",function(){$(this).closest(".field_wrap").find(".userfiles_btn input[type=file]").click()}),$(".user_form .userfiles_clear").on("click",function(e){e.stopPropagation();var t=$(this).closest(".field_wrap").find(".userfiles_btn input[type=file]");confirm("Удалить загруженный вами файл?")&&(t.val(null).trigger("change",e),t=null)}),$(".user_form .userfiles_btn input[type=file]").on("change",function(e){var t,n=$(this),i=n.closest(".field_wrap"),r=i.find(".userfiles_selected_text"),o=i.find(".userfiles_btn");if(toggleBtnLocker(o),n.val()){var a="Файл выбран";if(this.files&&this.files[0]){if(0l)return n.val(null),i=n=null,alert("Можно выбрать не более "+l+" файл"+plural(l,"а","ов","ов")),toggleBtnLocker(o),!1;for(a=[],t=0;this.files.length>t;t++){if(0s)return n.val(null),i=n=null,alert("Вы можете загрузить файл размером не более "+formatFileSize(s)),toggleBtnLocker(o),!1;a.push(htmlspecialchars(this.files[t].name))}a=a.join(", ")}r.text(a).attr("title",a),i.addClass("userfiles_selected")}else r.text("").attr("title",""),r.removeAttr("style"),i.removeClass("userfiles_selected");i.find(".ui_error").hide(),toggleBtnLocker(o),i=n=o=null}))}function includeFiles(e){var i=[],r=[],t=[],n=0,o=0,a=0;function s(e){-1==t.indexOf(e.href)&&(t.push(e.href),t.length>=i.length&&FE.runAndClr("css_dynamically_loaded"),a++,l())}function l(){return a==o&&(FE.run("all_files_dynamically_loaded"),1)}function c(e){var t=document.createElement("script");document.head.appendChild(t),t.onload=function(){a++,++n==r.length?l():l()||c(r[n])},t.src=e}!function e(t){for(var n in t)"css"==n?isArray(t[n])?(o+=t[n].length,t[n].forEach(function(e){i.push(t[n])})):(o++,i.push(t[n])):"js"==n?isArray(t[n])?(o+=t[n].length,t[n].forEach(function(e){r.push(e)})):(o++,r.push(t[n])):"object"==typeof t[n]&&e(t[n])}(e),i.length&&i.forEach(function(e){var t=document.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("type","text/css"),t.setAttribute("href",e),t.onload=function(){s(t)},t.addEventListener&&t.addEventListener("load",function(){s(t)},!1),t.onreadystatechange=function(){var e=t.readyState;"loaded"!==e&&"complete"!==e||(t.onreadystatechange=null,s(t))},document.getElementsByTagName("head")[0].appendChild(t)}),r.length&&c(r[n]),l()}function initAnchors(){$(document).on("click","a[href*=#]",function(e){var t=$(this).attr("href"),n=t.match(/#(.*)$/i),i=!1,r=ge("fixed-sections"),r=null==r?0:r.offsetHeight;if(null!==n&&n[1]){n=$("#"+n[1]);if(n.length?($("html,body").stop().animate({scrollTop:n.offset().top-r},600),i=!0):(t=t.replace(new RegExp("^#","gi"),""),(t=$("a[name="+t+"]")).length&&($("html,body").stop().animate({scrollTop:t.offset().top-r},600),i=!0)),i)return e.preventDefault(),!1}})}function sendSlackMessage(e,t,n){window.$&&(t={text:t,username:n=void 0===n?"Browser Debug":n},(n=new XMLHttpRequest).open("POST",e,!0),n.send(JSON.stringify(t)))}function mottorLogError(t,e){try{if(!window.Sentry)throw new Error("Sentry is unavailable!");e="object"==typeof e?e:{},("string"==typeof t||t instanceof String)&&(e.url&&(t+=" URL: `"+e.url+"`"),e.dataSerialized&&(t+=" DATA: `"+e.dataSerialized+"`"),e.response&&(t+=" RESPONSE: `"+e.response+"`"),t=new Error(t));var n={};if(e.tags&&"object"==typeof e.tags&&(n.tags=e.tags),e.extra&&"object"==typeof e.extra&&(n.extra=e.extra),e.level&&"string"==typeof e.level&&(n.level=e.level),Sentry.captureException(t,n),"info"!==n.level){let e=t.message.match(/#(\d{4,5})/);e=e&&e[1]?e[1]:"",window.tracerSendEvent("sentry error",{type:window.location.href.match(/\/pages\/edit/)?"editor":"core",message:t.message,code:e})}}catch(t){console.log("%cmottorLogError","background-color: white; color: #006df0",t)}}function checkProtocolInUrl(e){return!!new RegExp("^http(s*)://").test(e)&&2===e.split("://").length}function inputUrlProcessing(e){return!(6<(e=e.trim()).length&&checkProtocolInUrl(e))&&3"']/g,function(e){return escapeHtmlEntityMap[e]})},window.random=function(e){return Math.ceil(rnd()*e)},window.consoleDbg=function(e){window.dbgMode&&window.console&&console.log(e)},window.getRandomInt=function(e,t){return Math.floor(Math.random()*(t-e+1))+e},window.getRandomString=function(e,t){e=e||7;for(var n=(t=t||"qwertyuiopasdfghjklzxcvbnm0123456789").length,i="",r=0;r").append(this.eq(0).clone()).html()}),$("body").popover({trigger:"hover",selector:".has_popover",placement:"top",html:"true",delay:"100"}),window.rgb2hex=function(e){return(e=e&&e.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/))?"#"+("0"+parseInt(e[1],10).toString(16)).slice(-2)+("0"+parseInt(e[2],10).toString(16)).slice(-2)+("0"+parseInt(e[3],10).toString(16)).slice(-2):null},window.getUrlVars=function(){var e=window.location.href.slice(window.location.href.indexOf("?")+1);if(""==e||window.baseUrl==e)return e=null,{};for(var t,n={},i=e.split("&"),r=0;rОтправить заявку в режиме демонстрации невозможно
Прием заявок и оплат доступен только на опубликованном сайте.
',{id:"j_lead_alert",showCloseBtn:!0,btnCls:"btn",okText:"Понятно",width:470,btnWidth:"auto",hideOnBlackoutClick:!0,html:!0,alertClass:"site-demo-alert",mobileAdapt:!adapterManager.isPC(),onOk:function(){$("#wind_container").removeClass("j_alert")}})},window.number_format=function(e,t,n,i){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");var r=isFinite(+e)?+e:0,e=isFinite(+t)?Math.abs(t):0,t=void 0===i?" ":i,i=void 0===n?".":n,n="";return 3<(n=(e?function(e,t){t=Math.pow(10,t);return""+Math.round(e*t)/t}(r,e):""+Math.round(r)).split("."))[0].length&&(n[0]=n[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,t)),(n[1]||"").length.navbar>.navbar-inner").css("padding-right",r),void 0!==window.module_geotarget&&window.module_geotarget.city.length&&t.find(".geotarget_module").text(window.module_geotarget.city).removeClass("hidden"),t.addClass("open"),t.hasClass("initSlick")||(t.find(".blk_box_slider_self").each(function(){initSlick($(this))}),t.addClass("initSlick")),t.hasClass("blk-section--ms-popup")&&t.find(".ms-popup-section__close").off("click").one("click",function(){hideSectionPopup(e)}),window._isEditor||updatePopupOverlayStyle(e),!window.adapterManager.isPC()&&t.hasClass("popup-mobile--large")&&setTimeout(function(){t.find(".blk_section_inner").css({transform:"translateY(0)"})},1),window.adapterManager.isPC()&&t.hasClass("popup-desktop--large")&&setTimeout(function(){t.find(".blk_section_inner").css({transform:"translateX(0)"})},1),window.adapterManager.isPC()&&t.hasClass("popup-desktop--small")){const o=t.find(".blk_section_inner"),a=t.find(".close-button");i=t.hasClass("is_absolute"),r=a.height();o.css({top:"",transform:""});const s={};o.height()+20+r>t.height()&&(s.top=20+r,t.is(".popup-place--centerRight, .popup-place--centerLeft")&&(s.transform="unset"),i||(s.bottom="unset")),o.css(s)}FE.run("show_section_popup",{section_id:e})}function c(e){try{var t=JSON.parse(e)}catch(e){return(new $.Deferred).reject(e)}return t.data||(new $.Deferred).reject(e)}i.stopAutoPlayVideo=function(e){e.attr("src",""),e.closest(".blk").removeClass("video--play")},i.playVideo=function(e,t){e.attr("src",e.attr("src-temp")),window.afItemsObserver&&afItemsObserver.blockVideoInAf(e)&&afItemsObserver.triggerStartedVideo(e,t),e.closest(".blk").addClass("video--play")},r.find(".blk_section").each(function(){l[$(this).attr("id")]=$(this)}),i.showSectionPopup=function(n){var e,t;n&&(e=function(){i._isEditor||($("#"+n).find(".blk.blk_video .video.autoplay iframe:first").each(function(){i.playVideo($(this),!0)}),window.userVideo.initVideosInPopup(n))},isset(l[n])?(s(n),e()):(t=n,o=lockScreen("Секундочку...",{show_animation:!0}),$.get(i.baseUrl+"/"+window.siteId+"/api/popup",{popup_id:t},"JSON").then(c).then(function(e){var t,t=(t=e,e=n,t=$(t),r.append(t),l[e]=t);return t.find(".blk_yandex_map").each(function(){var e="init_ymap_"+$(this).attr("id");window[e]?window[e]():console.error("Функция "+e+" не была найдена в window. [#4502]")}),window.animManager.onScroll(t.attr("id")),window.adapterManager.initFotorama(),quizWebHandler.initQuiz(t,!0),loadAsyncImages(),n},a).then(s).then(e),unlockScreen(o),o=null),FE.run("sectionPopupOpen"))},i.registerPopup=function(e){var t=$("#"+e);t.length||console.error("Не найдена секция #"+e+". Ошибка [#4482]"),l[e]=t}}(window),function(r){"use strict";function i(e){var t=r(e).on(n,this.toggle);r("html").on(n,function(e){FE.run("hide_custom_dropdown",e,{$btn:t,$wrap:t.parent().removeClass("open")})})}var o=".custom-dropdown-btn",n="click.custom-dropdown.data-api";function a(e){r(o).each(function(){FE.run("hide_custom_dropdown",e,{$btn:r(this),$wrap:s(r(this)).removeClass("open")})})}function s(e){return e.parent()}i.prototype={constructor:i,toggle:function(e){var t,n,i=r(this);if(!i.is(".disabled, :disabled"))return n=(t=s(i)).hasClass("open"),a(e),n||FE.run("show_custom_dropdown",e,{$btn:i,$wrap:t.toggleClass("open")}),i.focus(),!1},keydown:function(e){var t,n,i;if(/(38|40|27)/.test(e.keyCode)&&(t=r(this),e.preventDefault(),e.stopPropagation(),!t.is(".disabled, :disabled")))return!(i=(n=s(t)).hasClass("open"))||i&&27==e.keyCode?(27==e.which&&n.find(o).focus(),t.click()):void 0}};var e=r.fn.customDropdown;r.fn.customDropdown=function(n){return this.each(function(){var e=r(this),t=e.data("customDropdown");t||e.data("customDropdown",t=new i(this)),"string"==typeof n&&t[n].call(e)})},r.fn.customDropdown.Constructor=i,r.fn.customDropdown.noConflict=function(){return r.fn.customDropdown=e,this},r(document).on(n,a).on(n,".custom-dropdown-menu",function(e){e.stopPropagation()}).on(n,o,i.prototype.toggle).on("keydown.custom-dropdown.data-api",o,i.prototype.keydown)}(window.jQuery),$("#popup_list").on("click",function(e){var t=$("body"),e=$(e.target);if(t.hasClass("popup_choose"))return!0;if(t.hasClass("open-popup-ms")&&!(0!==e.closest(".blk-section--ms-popup").length)){t=$(".blk-section--ms-popup.open");if(t.length)return hideSectionPopup(t.attr("id")),!1}return e.hasClass("section_popup")?(hideSectionPopup(e.attr("id")),!1):void 0}),window.sliderEditorExtend=function(e){e.prototype.reinitFotorama=function(t){var e=t.closest(".blk_section").hasClass("is_absolute"),n={};return e&&(n.height=t.closest(".blk.blk_slider").height()),setTimeout(function(){var e=t.data("fotorama");null!=e&&null!=e.activeIndex&&e.resize(n).show(e.activeIndex)}),t}},Math.radians=function(e){return e*Math.PI/180},Math.degrees=function(e){return 180*e/Math.PI},function(l){l.__lpmExtensions={isInited:!1,get:function(o,e){consoleDbg("Step:1 load scripts & html for extension modal by "+o);var t=1,a=e||l.siteId;l.dbgMode&&(t=(new Date).getTime());var s=lockScreen("Секундочку...",{show_animation:!0});return $.get(window.baseUrl+a+"/settings/ajax/frm:get_extension",{v:t,exName:o,includeMain:intval(0==intval(isset(l.__lpmExtensions)&&l.__lpmExtensions.isInited))}).then(function(e){return unlockScreen(s),consoleDbg("Step:2 scripts for extension modal is loaded"),t=JSON.parse(e),n=o,i=a,r=new $.Deferred,FE.add("__lpmExtensions/"+n+"/included",function(){consoleDbg("Step:4 scripts is included, include html"),l.__lpmExtensions.appendHtml(t.res.html),consoleDbg("Step:5 __lpmExtensions.run by "+n+" for "+i),$.when(l.__lpmExtensions.run(n,i)).then(function(e){consoleDbg("Step:15 extension is ready"),consoleDbg(e),r.resolve(e)})}),consoleDbg("Step:3 include scripts"),includeFiles(t.res),r;var t,n,i,r})}}}(window),window.formatMoney=function(e){"number"!=typeof e&&(e=parseFloat(e));var t=Math.round(e),n=e.toFixed(1),i=e.toFixed(2),e=parseFloat(n);return e!==parseFloat(i)?i:t!==e?n:t.toFixed(0)},window.convertUnderScoreToStudlyCaps=function(e){for(var t=(e=e.toLowerCase()).split("_"),n="",i=0;t.length>i;i++){var r=t[i];""!==r&&(n+=ucfirst(r))}return n},window.preloadSvgIconPack=function(){(new Image).src=window.svgSpritePath},window.getSvgIconPath=function(e){return null==e?"":window.svgSpritePath+"#"+e},window.isVueDataObject=function(e){return null!=e&&e.hasOwnProperty("__ob__")&&"Observer"===e.__ob__.constructor.name},window.getUserIdFromUrl=function(){var e=window.location.href.match(/user:(\d+)/);return null!==e?e[1]:0},window.getEnvironment=function(){return window.process&&process.env&&process.env.NODE_ENV?process.env.NODE_ENV:""},window.hasArrayProperty=function(e,t){return e.hasOwnProperty(t)&&Array.isArray(e[t])},window.getLocalTimeString=function(e){var t=new Date(Date.now()),n=e.substring(0,2);t.setUTCHours(parseInt(n));t=t.getHours().toString();return(t=1===t.length?"0"+t:t)+e.substring(2)},window.getUtcTimeString=function(e){var t=new Date(Date.now()),n=e.substring(0,2);t.setHours(parseInt(n));t=t.getUTCHours().toString();return(t=1===t.length?"0"+t:t)+e.substring(2)},$(window).on("message",function(e){if(e.originalEvent.data&&"string"==typeof e.originalEvent.data&&!(e.originalEvent.data.indexOf("player:ready")<0))try{var t=JSON.parse(e.originalEvent.data);"player:ready"==t.type&&$(".rutube-player-"+t.data.videoId).each(function(e,t){t.contentWindow.postMessage(JSON.stringify({type:"player:play",data:{}}),"*"),"true"==$(t).attr("data-mute")?t.contentWindow.postMessage(JSON.stringify({type:"player:mute",data:{}}),"*"):t.contentWindow.postMessage(JSON.stringify({type:"player:unMute",data:{}}),"*")})}catch(e){consoleDbg(e)}}),$(window).on("ready",function(){$('[data-video-type="vk"]').each(function(e,t){var n=VK.VideoPlayer(t),i="true"==$(t).attr("data-autoplay"),r="true"==$(t).attr("data-mute");n.on("inited",function(){i&&n.play(),r?n.mute():n.unmute()})})}),$(window).on("ready",function(){function e(){$("iframe.bg-video__iframe").each(function(e,t){var n=$(t),t=n.closest(".blk_section"),t=t.width()/t.outerHeight()>16/9?1:2;const i={aspectRatio:t+"/ 1",minHeight:""};1
')).find(".svg_container").append(e),t):$(this),n=o.width(),r.show(),$("html").addClass("wind_opened"),o.css("margin-right",o.width()-n),u={w:r.width()-40,h:r.height()-40},d={w:0,h:0,x:0,y:0},c.w>u.w&&c.h>u.h&&(c.h=u.w*c.h/c.w,c.w=u.w),c.w<=u.w&&c.h<=u.h?(d.w=c.w,d.h=c.h,d.x=Math.floor((u.w-c.w)/2)+20,d.y=Math.floor((u.h-c.h)/2)+20):c.w>u.w&&c.h<=u.h?(d.w=u.w,d.h=Math.floor(d.w*c.h/c.w),d.x=20,d.y=Math.floor((u.h-d.h)/2)+20):c.w<=u.w&&c.h>u.h&&(d.h=u.h,d.w=Math.floor(d.h*c.w/c.h),d.x=Math.floor((u.w-d.w)/2)+20,d.y=20),i&&(t=Math.min(u.w,u.h),d.w=t,d.h=t,d.x=Math.floor((u.w-t)/2)+20,d.y=Math.floor((u.h-t)/2)+20),s.appendTo(r).css({position:"absolute",display:"block",top:l.y,left:l.x,width:l.w,height:l.h}).animate({left:d.x,top:d.y,width:d.w,height:d.h},300)}function f(e){var t=e.split("/-/");if(1')).appendTo(o),r.click(function(){s&&s.animate({top:l.y,left:l.x,width:l.w,height:l.h},300,function(){r.hide(),$("html").removeClass("wind_opened"),o.css("margin-right",0),s.remove(),s=!1,r.empty()})})),n=t.offset(),l={w:t.width(),h:t.height(),x:n.left,y:n.top-scrollTop()},i?$.get(f(t.attr("src")),p):(e=$(new Image),n={src:f(t.attr("src"))},(t=t.attr("title"))&&(n.title=t),e.unbind("load").bind("load",p).attr(n)))}FE.add("onload",function(){adapterManager.isPC()&&!isIos()?$(".blk_image_ext .img-ext-magnifier").click(function(){return e($(this).closest(".img_container")),!1}):$(".blk_image_ext .img-container--enlarge").click(function(){return e($(this)),!1}),$(".blk_image .img-container--enlarge").click(function(){return e($(this)),!1})})}(),function(){"use strict";!function(){if(browser.android){var e,t=window.buildScriptsUrl+"web/user/fonts/"+"liberation_serif/LiberationSerif",n={Regular:{style:"normal",weight:400},Italic:{style:"italic",weight:400},Bold:{style:"normal",weight:700},BoldItalic:{style:"italic",weight:700}};for(e in n){var i=new FontFace("Times New Roman","url("+t+"-"+e+".ttf)",n[e]);document.fonts.add(i)}}}()}(),function(){"use strict";function e(){var n,e,i=this,r=0;null!=i&&null!=i.tagName&&("img"==i.tagName.toLowerCase()?e=i:(e=geByTag1("img",i),hasClass(i,"blk_image_data_wrap")&&(r=1)),(e=(n=$(e)).attr("data-src"))&&(n.one("load",function(){var e=$(i);e.removeClass("async_img");var t=n.next("noscript");1===t.length&&t.remove(),1==r&&e.removeAttr("style").children(".img_container:first").removeAttr("style")}).attr("src",e).removeAttr("data-src"),n.parent().is("picture")&&n.parent().children("source").each(function(){$(this).attr("srcset",$(this).attr("data-srcset")).removeAttr("data-srcset")})))}window.loadAsyncImages=function(){$(".async_img").each(e)},window._isEditor||FE.add("onload",loadAsyncImages)}(),function(e){var n,t,i,r,o,a,s,l,c,u,d,p,f,h=$("body"),m=$("#formPopover"),g=new(t=$('head meta[name="viewport"]'),i="",function(){this.setMobileView=function(){i=t.attr("content"),t.attr("content","width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=0")},this.rollbackView=function(){t.attr("content",i)}}),v=(l="mobile-view",c="preview-adapt",function(e){s=(a=e).is(".wind")?a:a.closest(".wind"),this.resetFormMinWidth=function(){r=a.css("minWidth"),a.css("minWidth",0)},this.rollbackFormMinWidth=function(){a.css("minWidth",r)},this.getElement$=function(){return e},this.adaptWind=function(){o=a.css("width"),a.css("width","100%"),a.addClass(l)},this.rollbackWind=function(){a.css("width",o),a.removeClass(l)},this.adaptInPreview=function(){s.addClass(c)},this.rollbackInPreview=function(){s.removeClass(c)}});function y(e){var t=e.step;if(e.quizHasDesignUpdate)return t.addClass("field--error-animation"),void setTimeout(function(){t.removeClass("field--error-animation")},700);t.hasClass("fname")||t.hasClass("fselect")||t.hasClass("femail")||t.hasClass("fphone")||(p=!(f=!0),"none"==(e=(d=t.find(".error_wrapper")).find(".ui_error")).css("display")&&e.css("display","flex"),quizMobileView.isMobile()?d.css("bottom",n.getElement$().find(".wind-footer").outerHeight()):(d.css("top",j.getVisiblePart()),p=1),d.addClass("floated-error").fadeIn(400,function(){setTimeout(function(){d.fadeOut(400,function(){d.removeClass("floated-error"),f=!1})},3500)}))}var b,w,_,x,k,C,S,E,T=new(u="quiz-validate-error",d=$(),f=p=!1,function(){this.subscribeOnEvent=function(){FE.add(u,y)},this.changePosition=function(e){p&&f&&d.css("top",e)},this.unsubscribe=function(){FE.clr(u)}}),M=(b=[],function(){this.toQuizView=function(e){n=new v(e),this.isMobile()&&(g.setMobileView(),this.lockBodyScroll(),n.resetFormMinWidth(),this.isMobileInPreview()&&n.adaptInPreview()),T.subscribeOnEvent(),j.initialize(),O(m,A)},this.adaptWind=function(e){this.isMobile()&&((n=new v(e)).adaptWind(),g.setMobileView(),this.lockBodyScroll(),O(e,P))},this.isMobile=function(){return browser.mobile||this.isMobileInPreview()},this.isMobileInPreview=function(){return window.isPagePreview&&!adapterManager.isPC()},this.getSmartHeader=function(){return j},this.lockBodyScroll=function(){h.css("top","-"+window.scrollY+"px"),h.addClass("quiz-mobile-view")},this.unlockBodyScroll=function(){var e=h.css("top");h.removeClass("quiz-mobile-view"),h.css("top",""),window.scrollTo(0,-1*parseInt(e||"0"))}});function A(){quizMobileView.isMobile()&&(quizMobileView.unlockBodyScroll(),g.rollbackView(),n.rollbackFormMinWidth()),quizMobileView.isMobileInPreview()&&n.rollbackInPreview(),T.unsubscribe()}function P(){quizMobileView.isMobile()&&(quizMobileView.unlockBodyScroll(),g.rollbackView(),n.rollbackWind())}function O(e,t){-1===b.indexOf(e.attr("id"))&&(e.wind("setAfterCloseFunc",t),b.push(e.attr("id")))}function I(){x=$(this).scrollTop(),_S&&(k=S),w.css({top:k<=S?-(S-k):0}),0==x?(C=0,w.removeClass("shadow")):S'),this.$el.removeClass("hidden"),this.$wrap=this.$el.parent()),this.$wrap.css({"z-index":window._wind_cnt+1}),this.$wrap.removeClass("hidden"),this.isShown=!0,this.$el.trigger("show"),e=$("body").width(),t=null,$("html").addClass("wind_opened"),t=$("body").width()-e,$("body").css("margin-right",t),$("body>.navbar>.navbar-inner").css("padding-right",t),this.ops.afterShowFunc(this),!window.lpm_hints||(n=window.lpm_hints.getHintsManager())&&n.currentDisplayedHint&&((i=n.currentDisplayedHint)&&i.settings&&i.settings.name&&setTimeout(function(){n.offHint(n.currentDisplayedHint)},500)),this.$el.hasClass("wind--close-outside")&&(this.$wrap.on("click",this.clickOutside),this.closeOutside=!0),e=t=null,window._wind_cnt++)},F_wind.prototype.hide=function(){0 div:visible").length&&$("#wind_container").hide(),this.isShown=!1,this.$el.trigger("hide"),$("body").css("margin-right",0),$("body>.navbar>.navbar-inner").css("padding-right",0),$("html").removeClass("wind_opened"),this.closeOutside&&this.$wrap.off("click",this.clickOutside),this.ops.afterCloseFunc(this)},F_wind.prototype.setHidePrevWnd=function(e){this.hidePrevWnd=!!e},F_wind.prototype.setWhiteBg=function(e){this.whiteBg=!!e},F_wind.prototype.setApplyFunc=function(e){"function"==typeof e&&(this.ops.applyFunc=e)},F_wind.prototype.setCancelFunc=function(e){"function"==typeof e&&(this.ops.cancelFunc=e)},F_wind.prototype.setCloseFunc=function(e){this.ops.closeFunc="function"==typeof e?e:null},F_wind.prototype.setAfterCloseFunc=function(e){"function"==typeof e&&(this.ops.afterCloseFunc=e)},F_wind.prototype.setShowFunc=function(e){"function"==typeof e&&(this.ops.showFunc=e)},F_wind.prototype.setAfterShowFunc=function(e){"function"==typeof e&&(this.ops.afterShowFunc=e)},F_wind.prototype.setParams=function(e){this.params=e},F_wind.prototype.clickBtnApply=function(){!1!==this.ops.applyFunc(this)&&this.hide()},F_wind.prototype.clickBtnClose=function(){"function"==typeof this.ops.closeFunc?!1!==this.ops.closeFunc(this)&&this.hide():this.clickBtnCancel()},F_wind.prototype.clickOutside=function(e){if(0!==$(e.target).closest(".wind").length)return!0;$(this).children(".wind").wind("clickBtnClose")},F_wind.prototype.clickBtnCancel=function(){!1!==this.ops.cancelFunc(this)&&this.hide()},jQuery.fn.wind=function(e){var t=$(this),n=$.extend({},$.fn.wind.defaults,"object"==typeof e&&e),i=t.data("wind");return i||t.data("wind",i=new F_wind(this,n)),"string"==typeof e?arguments[1]?i[e](arguments[1]):i[e]():n.show&&i.show(),t=i=n=null,this},jQuery.fn.wind.defaults={show:!1,container:$("body > #wind_container"),applyFunc:function(){return!0},cancelFunc:function(){return!0},closeFunc:null,showFunc:function(){return!0},afterCloseFunc:function(){},afterShowFunc:function(){}},window.fotoramaVersion="4.6.4",function(o,bt,wt,_t,l){"use strict";function xt(){}function kt(e,t,n){return Math.max(isNaN(t)?-1/0:t,Math.min(isNaN(n)?1/0:n,e))}function Ct(e){var t={};return Rn?t.transform="translate3d("+e+"px,0,0)":t.left=e,t}function St(e){return{"transition-duration":e+"ms"}}function i(e,t){return isNaN(e)?t:e}function $t(e,t){return i(+String(e).replace(t||"px",""))}function Et(e,t){return i((/%$/.test(n=e)?$t(n,"%"):l)/100*t,$t(e));var n}function Tt(e){return(!isNaN($t(e))||!isNaN($t(e,"%")))&&e}function Mt(e,t,n,i){return(e-(i||0))*(t+(n||0))}function a(e,t,n,i){var r,o,a=e.data();a&&(a.onEndFn=function(){r||(r=!0,clearTimeout(a.tT),n())},a.tProp=t,clearTimeout(a.tT),a.tT=setTimeout(function(){a.onEndFn()},1.5*i),(o=(e=e).data()).tEnd||(Ut(e[0],{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",msTransition:"MSTransitionEnd",transition:"transitionend"}[c.prefixed("transition")],function(e){o.tProp&&e.propertyName.match(o.tProp)&&o.onEndFn()}),o.tEnd=!0))}function At(n,e){if(n.length){var t=n.data();Rn?(n.css(St(0)),t.onEndFn=xt,clearTimeout(t.tT)):n.stop();e=Pt(e,function(){return e=n,Rn?+((t=e.css("transform")).match(/ma/)&&t.match(/-?\d+(?!d)/g)[t.match(/3d/)?12:4]):+e.css("left").replace("px","");var e,t});return n.css(Ct(e)),e}}function Pt(){for(var e,t=0,n=arguments.length;t=u,s="scaledown"===n,l="contain"===n,c="cover"===n,u={x:Tt((u=((u=i)+"").split(/\s+/))[0])||g,y:Tt(u[1])||g},a&&(s||l)||!a&&c?o=(r=kt(t.w,0,s?r:1/0))/p.ratio:(a&&c||!a&&(s||l))&&(r=(o=kt(t.h,0,s?o:1/0))*p.ratio),e.css({width:r,height:o,left:Et(u.x,t.w-r),top:Et(u.y,t.h-o)}),d.l={W:p.width,H:p.height,r:p.ratio,w:t.w,h:t.h,m:n,p:i}),!0}function Lt(e,t,n){return t!==n&&(e<=t?"left":n<=e?"right":"left right")}function Rt(e,t,n,i){if(!n)return!1;if(!isNaN(e))return e-(i?0:1);for(var r,o=0,a=t.length;o'+(t||"")+""}function zt(e){for(var t=e.length;t;){var n=Math.floor(Math.random()*t--),i=e[t];e[t]=e[n],e[n]=i}return e}function Ht(e){return"[object Array]"==Object.prototype.toString.call(e)&&_t.map(e,function(e){return _t.extend({},e)})}function qt(e,t,n){e.scrollLeft(t||0).scrollTop(n||0)}function Vt(e){if(e){var n={};return _t.each(e,function(e,t){n[e.toLowerCase()]=t}),n}}function Wt(e){if(e){var t=+e;return isNaN(t)?+(t=e.split("/"))[0]/+t[1]||l:t}}function Ut(e,t,n,i){t&&(e.addEventListener?e.addEventListener(t,n,!!i):e.attachEvent("on"+t,n))}function Qt(e){return{tabindex:-1*e+"",disabled:e}}function Yt(t,n){Ut(t,"keyup",function(e){t.getAttribute("disabled")||13==e.keyCode&&n.call(t,e)})}function Gt(t,n){Ut(t,"focus",t.onfocusin=function(e){n.call(t,e)},!0)}function Jt(e,t){e.preventDefault?e.preventDefault():e.returnValue=!1,t&&e.stopPropagation&&e.stopPropagation()}function Kt(e){return e?">":"<"}function Xt(e,t){var n=e.data(),i=Math.round(t.pos),r=function(){n.sliding=!1,(t.onEnd||xt)()};void 0!==t.overPos&&t.overPos!==t.pos&&(i=t.overPos,r=function(){Xt(e,_t.extend({},t,{overPos:t.pos,time:Math.max(Wn,t.time/2)}))});i=_t.extend(Ct(i),t.width&&{width:t.width});n.sliding=!0,Rn?(e.css(_t.extend(St(t.time),i)),10f&&(h=!0),g.checked=g.checked||r||i}function a(e){(o.onTouchEnd||xt)();var t=s;g.control=s=!1,t&&(g.flow=!1),!t||p&&!g.checked||(e&&Jt(e),w=!0,clearTimeout(_),_=setTimeout(function(){w=!1},1e3),(o.onEnd||xt).call(m,{moved:h,$target:r,control:c,touch:u,startEvent:l,aborted:!e||"MSPointerCancel"===e.type}))}function i(){g.flow&&setTimeout(function(){g.flow=!1},Vn)}var s,l,r,c,u,d,p,f,h,m=e[0],g={};return qn?(Ut(m,"MSPointerDown",t),Ut(bt,"MSPointerMove",n),Ut(bt,"MSPointerCancel",a),Ut(bt,"MSPointerUp",a)):(Ut(m,"touchstart",t),Ut(m,"touchmove",n),Ut(m,"touchend",a),Ut(bt,"touchstart",function(){g.flow||setTimeout(function(){g.flow=!0},10)}),Ut(bt,"touchend",i),Ut(bt,"touchcancel",i),Dn.on("scroll",i),e.on("mousedown",t),Ln.on("mousemove",n).on("mouseup",a)),e.on("click","a",function(e){g.checked&&Jt(e)}),g}function tn(v,y){function b(e,t){M=!0,n=w=e._x,r=e._now,k=[[r,n]],_=x=P.noMove||t?0:At(v,(y.getPos||xt)()),(y.onStart||xt).call(A,e)}var n,w,_,x,i,k,r,C,S,$,E,T,o,M,A=v[0],a=v.data(),P={};return P=_t.extend(en(y.$wrap,_t.extend({},y,{onStart:function(e,t){S=P.min,$=P.max,E=P.snap,T=e.altKey,M=o=!1,t.control||a.sliding||b(e)},onMove:function(e,t){P.noSwipe||(M||b(e),w=e._x,k.push([e._now,w]),i=Lt(x=_-(n-w),S,$),x<=S?x=s(x,S):$<=x&&(x=s(x,$)),P.noMove||(v.css(Ct(x)),o||(o=!0,t.touch||qn||v.addClass(O)),(y.onMove||xt).call(A,e,{pos:x,edge:i})))},onEnd:function(e){if(!P.noSwipe||!e.moved){M||b(e.startEvent,!0),e.touch||qn||v.removeClass(O);for(var t,n,i,r,o,a=(C=_t.now())-Vn,s=null,l=Wn,c=y.friction,u=k.length-1;0<=u;u--){if(t=k[u][0],n=Math.abs(t-a),null===s||n',e,""].join(""),s.id=p,(l?s:c).innerHTML+=r,c.appendChild(s),l||(c.style.background="",c.style.overflow="hidden",a=d.style.overflow,d.style.overflow="hidden",d.appendChild(c)),e=t(s,e),l?s.parentNode.removeChild(s):(c.parentNode.removeChild(c),d.style.overflow=a),!!e},r.prefixed=function(e,t,n){return t?i(e,t,n):i(e,"pfx")},r}(bt),Pn={ok:!1,is:function(){return!1},request:function(){},cancel:function(){},event:"",prefix:""},e="webkit moz o ms khtml".split(" ");if(void 0!==bt.cancelFullScreen)Pn.ok=!0;else for(var t=0,n=e.length;tt;t++)e.appendChild(arguments[t]);return e}function a(e,t,n,i){var r=["opacity",t,~~(100*e),n,i].join("-"),o=.01+n/i*100,a=Math.max(1-(1-e)/t*(100-o),e),s=v.substring(0,v.indexOf("Animation")).toLowerCase(),l=s&&"-"+s+"-"||"";return c[r]||(p.insertRule("@"+l+"keyframes "+r+"{0%{opacity:"+a+"}"+o+"%{opacity:"+e+"}"+(o+.01)+"%{opacity:1}"+(o+t)%100+"%{opacity:"+e+"}100%{opacity:"+a+"}}",p.cssRules.length),c[r]=1),r}function i(e,t){var n,i,r=e.style;for(t=t.charAt(0).toUpperCase()+t.slice(1),i=0;i',t)}p.addRule(".spin-vml","behavior:url(#default#VML)"),n.prototype.lines=function(e,i){function r(){return m(c("group",{coordsize:a+" "+a,coordorigin:-o+" "+-o}),{width:a,height:a})}function t(e,t,n){u(l,u(m(r(),{rotation:360/i.lines*e+"deg",left:~~t}),u(m(c("roundrect",{arcsize:i.corners}),{width:o,height:i.width,left:i.radius,top:-i.width>>1,filter:n}),c("fill",{color:d(i.color,e),opacity:i.opacity}),c("stroke",{opacity:0}))))}var n,o=i.length+i.width,a=2*o,s=2*-(i.width+i.length)+"px",l=m(r(),{position:"absolute",top:s,left:s});if(i.shadow)for(n=1;n<=i.lines;n++)t(n,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)");for(n=1;n<=i.lines;n++)t(n);return u(e,l)},n.prototype.opacity=function(e,t,n,i){var r=e.firstChild;i=i.shadow&&i.lines||0,r&&t+i>1):parseInt(r.left,10)+a)+"px",top:("auto"==r.top?n.y-t.y+(e.offsetHeight>>1):parseInt(r.top,10)+a)+"px"})),o.setAttribute("role","progressbar"),i.lines(o,i.opts),!v){var s,l=0,c=(r.lines-1)*(1-r.direction)/2,u=r.fps,d=u/r.speed,p=(1-r.opacity)/(d*r.trail/100),f=d/r.lines;!function e(){l++;for(var t=0;t>1)+"px"})}for(var i,r=0,o=(n.lines-1)*(1-n.direction)/2;r":36===e.keyCode&&o("home")?n="<<":35===e.keyCode&&o("end")&&(n=">>")),(t||n)&&Jt(e),n&&De.show({index:n,slow:e.altKey,user:!0})}),De.index||Ln.off(t).on(t,"textarea, input, select",function(e){Fn.hasClass(an)||e.stopPropagation()}),Dn.on(i,De.resize)):(Ln.off(n),Dn.off(i)),a.f=e)}function s(){var e=Z<2&&!_.enableifsingleframe||ne;dt.noMove=e||ve,dt.noSwipe=e||!_.swipe,_e||Qe.toggleClass(fn,!_.click&&!dt.noMove&&!dt.noSwipe),qn&&We.toggleClass("fotorama__wrap--pan-y",!dt.noSwipe)}function l(e){!0===e&&(e=""),_.autoplay=Math.max(+e||5e3,1.5*we)}function x(e){return e<0?(Z+e%Z)%Z:Z<=e?e%Z:e}function c(e){return kt(e,0,Z-1)}function u(e){return(de?x:c)(e)}function d(e){return!!(0').append(n._html?_t(n.html).removeAttr("id").html(n._html):n.html).appendTo(i),n.caption&&_t(Bt("fotorama__caption",Bt("fotorama__caption__wrap",n.caption))).appendTo(i),n.video&&i.addClass("fotorama__stage__frame--video").append(at.clone()),Gt(r,function(){setTimeout(function(){qt(Ue)},0),V({index:o.eq,user:!0})}),Ye=Ye.add(i)):"navDot"===a?(m(r),tt=tt.add(i)):"navThumb"===a&&(m(r),o.$wrap=i.children(":first"),nt=nt.add(i),n.video&&o.$wrap.append(at.clone())))})}function v(e,t,n,i){return e&&e.length&&Dt(e,t,n,i)}function y(e){n(e,"stage",function(e,t,n,i,r,o){var a,s,l;i&&(a=x(t),s=n.fit||_.fit,l=n.position||_.position,o.eq=a,gt[Un][a]=i.css(_t.extend({left:ve?0:Mt(t,ut.w,_.margin,oe)},ve&&St(0))),t=i[0],_t.contains(bt.documentElement,t)||(i.appendTo(Qe),z(n.$video)),v(o.$img,ut,s,l),v(o.$full,ut,s,l))})}function b(e,a){var s,l;"thumbs"!==pe||isNaN(e)||(l=(s=-e)+ut.nw,nt.each(function(){function e(){return{h:be,w:t.w}}var t=_t(this).data(),n=t.eq,i=e(),r=X[n]||{},o=r.thumbfit||_.thumbfit,r=r.thumbposition||_.thumbposition;i.w=t.w,t.l+t.wl||v(t.$img,i,o,r)||a&&C([n],"navThumb",e,o,r)}))}function w(e,t,n){var i,r;w[n]||(i="nav"===n&&fe,r=0,t.append(e.filter(function(){for(var e,t=_t(this),n=t.data(),i=0,r=X.length;iut.w/3}function i(e){return!(de||ct+e&&ct-Z+e||ne)}function $(){var e=i(0),t=i(1);Ge.toggleClass(mn,e).attr(Qt(e)),Je.toggleClass(mn,t).attr(Qt(t))}function E(){pt.ok&&(pt.prevent={"<":i(0),">":i(1)})}function T(e){var t,n=e.data(),e=fe?(t=n.l,n.w):(t=e.position().left,e.width());return{c:t+e/2,min:-t+10*_.thumbmargin,max:-t+ut.w-e-10*_.thumbmargin}}function M(e){var t=ie[je].data();Xt(it,{time:1.2*e,pos:t.l,width:t.w-2*_.thumbborderwidth})}function A(e){var t,n,i,r=X[e.guessIndex][je];r&&(t=ft.min!==ft.max,n=e.minMax||t&&T(ie[je]),n=t&&(e.keep&&A.l?A.l:kt((e.coo||ut.nw/2)-T(r).c,n.min,n.max)),i=t&&kt(n,ft.min,ft.max),e=1.1*e.time,Xt(et,{time:e,pos:i||0,onEnd:function(){b(i,!0)}}),B(Ze,Lt(i,ft.min,ft.max)),A.l=n)}function P(e){for(var t=mt[e];t.length;)t.shift().removeClass(_n)}function O(e){var n=gt[e];_t.each(re,function(e,t){delete n[x(t)]}),_t.each(n,function(e,t){delete n[e],t.detach()})}function I(e){oe=ae=ct;var t=ie[Un];t&&(P(Un),mt[Un].push(t.addClass(_n)),e||De.show.onEnd(!0),At(Qe,0),O(Un),y(re),dt.min=de?-1/0:-Mt(Z-1,ut.w,_.margin,oe),dt.max=de?1/0:-Mt(0,ut.w,_.margin,oe),dt.snap=ut.w+_.margin,ft.min=Math.min(0,ut.nw-et.width()),ft.max=0,et.toggleClass(fn,!(ft.noMove=ft.min===ft.max)))}function j(n,e){n&&_t.each(e,function(e,t){t&&_t.extend(t,{width:n.width||t.width,height:n.height,minwidth:n.minwidth,maxwidth:n.maxwidth,minheight:n.minheight,maxheight:n.maxheight,ratio:Wt(n.ratio)})})}function N(e,t){r.trigger(on+":"+e,[De,t])}function F(){clearTimeout(D.t),Oe=1,_.stopautoplayontouch?De.stopAutoplay():Me=!0}function D(){Oe&&(_.stopautoplayontouch||(L(),R()),D.t=setTimeout(function(){Oe=0},Wn+Vn))}function L(){Me=!(!ne&&!Ae)}function R(){var n,e;clearTimeout(R.t),Ft.stop(R.w),_.autoplay&&!Me?(De.autoplay||(De.autoplay=!0,N("startautoplay")),n=ct,e=ie[Un].data(),R.w=Ft(function(){return e.state||n!==ct},function(){R.t=setTimeout(function(){var e,t;Me||n!==ct||(t=X[e=ce][Un].data(),R.w=Ft(function(){return t.state||e!==ce},function(){Me||e!==ce||De.show(de?Kt(!ke):ce)}))},_.autoplay)})):De.autoplay&&(De.autoplay=!1,N("stopautoplay"))}function e(){De.fullScreen&&(De.fullScreen=!1,zn&&Pn.cancel(Be),Fn.removeClass(an),Nn.removeClass(an),r.removeClass(kn).insertAfter(Ve),ut=_t.extend({},Pe),z(ne,!0,!0),W("x",!1),De.resize(),C(re,"stage"),qt(Dn,Ee,$e),N("fullscreenexit"))}function B(e,t){xe&&(e.removeClass("fotorama__shadows--left fotorama__shadows--right"),t&&!ne&&e.addClass(t.replace(/^|\s/g," "+wn+"--")))}function z(e,t,n){t&&(We.removeClass(ln),ne=!1,s()),e&&e!==ne&&(e.remove(),N("unloadvideo")),n&&(L(),R())}function H(e){We.toggleClass(cn,e)}function q(e){var t;dt.flow||(e=(t=e?e.pageX:q.x)&&!i(S(t))&&_.click,q.p!==e&&Ue.toggleClass("fotorama__pointer",e)&&(q.p=e,q.x=t))}function V(t){clearTimeout(V.t),_.clicktransition&&_.clicktransition!==_.transition?setTimeout(function(){var e=_.transition;De.setOptions({transition:_.clicktransition}),_e=e,V.t=setTimeout(function(){De.show(t)},10)},0):De.show(t)}function W(e,t){dt[e]=ft[e]=t}function U(e){V({index:_t(this).data().eq,slow:e.altKey,user:!0,coo:e._x-Ze.offset().left})}function Q(e){V({index:Ke.index(this)?">":"<",slow:e.altKey,user:!0})}function Y(e){Gt(e,function(){setTimeout(function(){qt(Ue)},0),H(!1)})}function G(){var e;X=De.data=X||Ht(_.data)||Nt(r),Z=De.size=X.length,!K.ok&&_.shuffle&&zt(X),t(),ct=c(ct),Z&&a(!0),function(){function e(e,t){r[e?"add":"remove"].push(t)}De.options=_=Vt(_),ve="crossfade"===_.transition||"dissolve"===_.transition,de=_.loop&&(2"),Ve=_t(Bt("fotorama--hidden")),We=_t(Bt(sn)),Ue=_t(Bt(dn)).appendTo(We),Qe=(Ue[0],_t(Bt("fotorama__stage__shaft")).appendTo(Ue)),Ye=_t(),Ge=_t(Bt(hn+" fotorama__arr--prev"+An)),Je=_t(Bt(hn+" fotorama__arr--next"+An)),Ke=Ge.add(Je).appendTo(Ue),Xe=_t(Bt("fotorama__nav-wrap")),Ze=_t(Bt(gn)).appendTo(Xe),et=_t(Bt("fotorama__nav__shaft")).appendTo(Ze),tt=_t(),nt=_t(),it=(Qe.data(),et.data(),_t(Bt("fotorama__thumb-border")).appendTo(et)),rt=_t(Bt("fotorama__fullscreen-icon"+An)),ot=rt[0],at=_t(Bt(Mn)),st=_t(Bt("fotorama__video-close")).appendTo(Ue)[0],lt=_t(Bt("fotorama__spinner")),ct=!1,ut={},dt={},pt={},ft={},ht={},mt={},gt={},vt=0,yt=[];We[Un]=_t(Bt(pn)),We[Yn]=_t(Bt(bn+" fotorama__nav__frame--thumb"+An,Bt(Tn))),We[Qn]=_t(Bt(bn+" fotorama__nav__frame--dot"+An,Bt("fotorama__dot"))),mt[Un]=[],mt[Yn]=[],mt[Qn]=[],gt[Un]={},We.addClass(Rn?"fotorama__wrap--css3":"fotorama__wrap--css2").toggleClass(cn,!_.controlsonstart),He.fotorama=this,De.startAutoplay=function(e){return De.autoplay||(Me=Ae=!1,l(e||_.autoplay),R()),this},De.stopAutoplay=function(){return De.autoplay&&(Me=Ae=!0,R()),this},De.show=function(t){"object"!=typeof t?(r=t,t={}):r=t.index,r=">"===r?ae+1:"<"===r?ae-1:"<<"===r?0:">>"===r?Z-1:r,r=void 0===(r=isNaN(r)?Rt(r,X,!0):r)?ct||0:r,De.activeIndex=ct=u(r),le=d(ct),Te=p(ct),ce=x(ct+(ke?-1:1)),re=[ct,le,Te],ae=de?r:ct;var e=Math.abs(se-ae),n=Pt(t.time,function(){return Math.min(we*(1+(e-1)/12),2*we)}),i=t.overPos;t.slow&&(n*=10);var r=ie;De.activeFrame=ie=X[ct];var o=r===ie&&!t.user;z(ne,ie.i!==X[x(oe)].i),g(re,"stage"),y(Hn?[ae]:[ae,d(ae),p(ae)]),W("go",!0),o||N("show",{user:t.user,time:n}),Me=!0;var a=De.show.onEnd=function(e){if(!a.ok){if(a.ok=!0,e||I(!0),o||N("showend",{user:t.user}),!e&&_e&&_e!==_.transition)return De.setOptions({transition:_e}),void(_e=!1);h(),C(re,"stage"),W("go",!1),E(),q(),L(),R()}};return ve?Zt(ie[Un],ct!==se?X[se][Un]:null,Ye,{time:n,method:_.transition,onEnd:a},yt):Xt(Qe,{pos:-Mt(ae,ut.w,_.margin,oe),overPos:i,time:n,onEnd:a}),$(),pe&&(P(je),mt[je].push(ie[je].addClass(_n)),A({time:n,coo:(i=c(ct+kt(ae-se,-1,1)))!==ct&&t.coo,guessIndex:void 0!==t.coo?i:ct,keep:o}),fe&&M(n)),Te=void 0!==se&&se!==ct,se=ct,_.hash&&Te&&!De.eq&&(n=ie.id||ct+1,wt.replace(wt.protocol+"//"+wt.host+wt.pathname.replace(/^\/?/,"/")+wt.search+"#"+n)),this},De.requestFullScreen=function(){return me&&!De.fullScreen&&($e=Dn.scrollTop(),Ee=Dn.scrollLeft(),qt(Dn),W("x",!0),Pe=_t.extend({},ut),r.addClass(kn).appendTo(Fn.addClass(an)),Nn.addClass(an),z(ne,!0,!0),De.fullScreen=!0,ge&&Pn.request(Be),De.resize(),C(re,"stage"),h(),N("fullscreenenter")),this},De.cancelFullScreen=function(){return ge&&Pn.is()?Pn.cancel(bt):e(),this},De.toggleFullScreen=function(){return De[(De.fullScreen?"cancel":"request")+"FullScreen"]()},Ut(bt,Pn.event,function(){!X||Pn.is()||ne||e()}),De.resize=function(e){if(!X)return this;var t=arguments[1]||0,n=arguments[2];j(De.fullScreen?{width:"100%",maxwidth:null,minwidth:null,height:"100%",maxheight:null,minheight:null}:Vt(e),[ut,n||De.fullScreen||_]);var i=ut.width,r=ut.height,o=ut.ratio,e=Dn.height()-(pe?Ze.height():0);return Tt(i)&&(We.addClass(un).css({width:i,minWidth:ut.minwidth||0,maxWidth:ut.maxwidth||99999}),i=ut.W=ut.w=We.width(),ut.nw=pe&&Et(_.navwidth,i)||i,_.glimpse&&(ut.w-=Math.round(2*(Et(_.glimpse,i)||0))),Qe.css({width:ut.w,marginLeft:(ut.W-ut.w)/2}),(r=Et(r,e)||o&&i/o)&&(i=Math.round(i),r=ut.h=Math.round(kt(r,Et(ut.minheight,e),Et(ut.maxheight,e))),Ue.stop().animate({width:i,height:r},t,function(){We.removeClass(un)}),I(),pe&&(Ze.stop().animate({width:ut.nw},t),A({guessIndex:ct,time:t,keep:!0}),fe&&w.nav&&M(t)),Se=n||!0,K())),vt=Ue.offset().left,this},De.setOptions=function(e){return _t.extend(_,e),G(),this},De.shuffle=function(){return X&&zt(X)&&G(),this},De.destroy=function(){return De.cancelFullScreen(),De.stopAutoplay(),X=De.data=null,a(),re=[],O(Un),G.ok=!1,this},De.playVideo=function(){var e=ie,t=e.video,n=ct;return"object"==typeof t&&e.videoReady&&(ge&&De.fullScreen&&De.cancelFullScreen(),Ft(function(){return!Pn.is()||n!==ct},function(){n===ct&&(e.$video=e.$video||_t(_t.Fotorama.jst.video(t)),e.$video.appendTo(e[Un]),We.addClass(ln),ne=e.$video,s(),Ke.blur(),rt.blur(),N("loadvideo"))})),this},De.stopVideo=function(){return z(ne,!0,!0),this},Ue.on("mousemove",q),dt=tn(Qe,{onStart:F,onMove:function(e,t){B(Ue,t.edge)},onTouchEnd:D,onEnd:function(e){B(Ue);var t,n,i,r,o=(qn&&!Ie||e.touch)&&_.arrows&&"always"!==_.arrows;e.moved||o&&e.pos!==e.newPos&&!e.control?(t=e.newPos,n=ut.w,i=_.margin,r=oe,r=-Math.round(t/(n+(i||0))-(r||0)),De.show({index:r,time:ve?we:e.time,overPos:e.overPos,user:!0})):e.aborted||e.control||(r=e.startEvent,e=o,o=r.target,_t(o).hasClass(Mn)?De.playVideo():o===ot?De.toggleFullScreen():ne?o===st&&z(ne,!0,!0):e?H():_.click&&V({index:r.shiftKey||Kt(S(r._x)),slow:r.altKey,user:!0}))},timeLow:1,timeHigh:1,friction:2,select:"."+xn+", ."+xn+" *",$wrap:Ue}),ft=tn(et,{onStart:F,onMove:function(e,t){B(Ze,t.edge)},onTouchEnd:D,onEnd:function(e){function t(){A.l=e.newPos,L(),R(),b(e.newPos,!0)}var n;e.moved?e.pos!==e.newPos?(Me=!0,Xt(et,{time:e.time,pos:e.newPos,overPos:e.overPos,onEnd:t}),b(e.newPos),xe&&B(Ze,Lt(e.newPos,ft.min,ft.max))):t():(n=e.$target.closest("."+bn,et)[0])&&U.call(n,e.startEvent)},timeLow:.5,timeHigh:2,friction:5,$wrap:Ze}),pt=nn(Ue,{shift:!0,onEnd:function(e,t){F(),D(),De.show({index:t,slow:e.altKey})}}),ht=nn(Ze,{onEnd:function(e,t){F(),D();var n=At(et)+.25*t;et.css(Ct(kt(n,ft.min,ft.max))),xe&&B(Ze,Lt(n,ft.min,ft.max)),ht.prevent={"<":n>=ft.max,">":n<=ft.min},clearTimeout(ht.t),ht.t=setTimeout(function(){b(A.l=n,!0)},Vn),b(n)}}),We.hover(function(){setTimeout(function(){Oe||H(!(Ie=!0))},0)},function(){Ie&&H(!(Ie=!1))}),Ne=function(e){Jt(e),Q.call(this,e)},Fe=(Fe={onStart:function(){F(),dt.control=!0},onTouchEnd:D})||{},Ke.each(function(){var t,e=_t(this),n=e.data();n.clickOn||(n.clickOn=!0,_t.extend(en(e,{onStart:function(e){t=e,(Fe.onStart||xt).call(this,e)},onMove:Fe.onMove||xt,onTouchEnd:Fe.onTouchEnd||xt,onEnd:function(e){e.moved||Ne.call(this,t)}}),{noMove:!0}))}),Ke.each(function(){Yt(this,function(e){Q.call(this,e)}),Y(this)}),Yt(ot,De.toggleFullScreen),Y(ot),_t.each("load push pop shift unshift reverse sort splice".split(" "),function(e,t){De[t]=function(){return X=X||[],"load"!==t?Array.prototype[t].apply(X,arguments):arguments[0]&&"object"==typeof arguments[0]&&arguments[0].length&&(X=Ht(arguments[0])),G(),De}}),G()},_t.fn.fotorama=function(r){return this.each(function(){var t=this,e=_t(this),n=e.data(),i=n.fotorama;i?i.setOptions(r,!0):Ft(function(){return!(0===(e=t).offsetWidth&&0===e.offsetHeight);var e},function(){n.urtext=e.html(),new _t.Fotorama(e,_t.extend({},x,o.fotoramaDefaults,r,n))})})},_t.Fotorama.instances=[],_t.Fotorama.cache={},_t.Fotorama.measures={},(_t=_t||{}).Fotorama=_t.Fotorama||{},_t.Fotorama.jst=_t.Fotorama.jst||{},_t.Fotorama.jst.style=function(e){var t;return""+(".fotorama"+(null==(t=e.s)?"":t)+" .fotorama__nav--thumbs .fotorama__nav__frame{\npadding:"+(null==(t=e.m)?"":t)+"px;\nheight:"+(null==(t=e.h)?"":t)+"px}\n.fotorama"+(null==(t=e.s)?"":t)+" .fotorama__thumb-border{\nheight:"+(null==(t=e.h-e.b*(e.q?0:2))?"":t)+"px;\nborder-width:"+(null==(t=e.b)?"":t)+"px;\nmargin-top:"+(null==(t=e.m)?"":t))+"px}"},_t.Fotorama.jst.video=function(e){var t="",n=Array.prototype.join;return t+='
\n'},_t(function(){_t("."+on+':not([data-auto="false"])').fotorama()})}(window,document,location,"undefined"!=typeof jQuery&&jQuery),function(){function e(){}e.prototype.ready=function(){consoleDbg("INIT: viewer man"),this.initIphone(),FE.runAndClr("viewerMan/ready")},e.prototype.initIphone=function(){var e=$("#fixed-sections,#sections_list").children(".is_iphone");if(0===e.length)return!1;var r=$(window).width(),o=screen.height,a=$(window).width()/2,s=screen.height/2,l={x:0,y:0};e.find(".section-image").css({backgroundSize:"cover"}),e.on("mousemove",function(e){var t,n=$(this).find(".section-image:first"),i=document.documentElement&&document.documentElement.scrollTop?(t=document.documentElement.scrollTop,document.documentElement.scrollLeft):(t=document.body.scrollTop,document.body.scrollLeft);l.x=(e.pageX-i-r+a)/(a/10),l.y=(e.pageY-t-o+s)/(s/10),n.css("transform","translate("+-.75*l.x+"px, "+-.75*l.y+"px)")})},FE.runOnReady(function(){window.viewerMan=new e,window.viewerMan.ready()})}(),function(){function e(){var n=this;this.customerId="",this.init=function(){this.customerId=n.getCustomer()},this.getCookieName=function(){return"mqs_"+(window.pageVariantId||"")},this.getCustomer=function(){var e=n.getCustomerIdFromCookie();return 0===e.length&&(e=window.guid(),n.setCustomerIdToCookie(e)),e},this.getCustomerIdFromCookie=function(){return getCookie(n.getCookieName())||""},this.setCustomerIdToCookie=function(e){setCookie(n.getCookieName(),e,void 0,!0)},this.getUrl=function(e){var t=getCookie("frontServerPort"),n=window.location.protocol+"//";return n+=window.location.host,n+=t?":"+t:"",n+="/api/statistics/quiz/"+e},this.send=function(e,t){window.quizStatisticIsEnabled&&!0===window.quizStatisticIsEnabled&&$.ajax({url:n.getUrl(e),method:"POST",data:JSON.stringify(t),dataType:"json",contentType:"application/json",error:e=>{console.log("Сервис статистики квиза не доступен!")}})},this.onQuestionOpen=function(e,t){n.send("question/open",{customer_id:n.customerId,quiz_id:e,question_id:t})},this.onFinish=function(e){n.send("finish",{customer_id:n.customerId,quiz_id:e})}}FE.runOnReady(function(){window.quizStat=new e,window.quizStat.init()})}(),function(){function e(){this.isEditor=$("body").hasClass("body_pages_edit"),this.autoNextQuizEventFired=!1}e.prototype.ready=function(){consoleDbg("INIT: quiz web handler"),this.initQuiz(null,!0),FE.runAndClr("quizWebHandler/ready")},e.prototype.initQuiz=function(e,t){var n=null;(n=!(n=e?e.find(".quiz-form"):n)||0===n.length?$(".quiz-form"):n)&&0!==n.length&&(t&&n.each(function(){quizWebHandler.initQuizForm($(this))}),n.find(".user_form").on("submit",function(){var e=$(this),t=e.find(".user_form_fields_list .field:last").attr("pos"),n=e.find(".field.active"),t=n.attr("pos")===t;return t?!(t&&!i(n))&&void 0:(e.find(".quiz__nav_next").trigger("click"),!1)}),this.enableQuizNav())},e.prototype.initQuizForm=function(e){e=quizWebHandler.quizForm(e);0!==e.totalSteps&&e.totalSteps<2?(e.$btn.next.addClass("quiz__disabled"),e.$btn.submit.removeClass("quiz__disabled")):(e.$btn.next.removeClass("quiz__disabled"),e.$btn.submit.addClass("quiz__disabled")),quizWebHandler.toQuizStep(e,0)},e.prototype.quizForm=function(e){var t=e.find(".quiz"),n=e.find(".quiz.active"),i=e.find(".quiz__progress_container"),r=e.closest(".quiz-form");return{id:e.attr("frm-id"),activeStepId:n.attr("field-id"),$quiz:r,quizHasDesignUpdate:r.hasClass("quiz-form--v1"),$form:e,$steps:t,totalSteps:t.length,$activeStep:n,activeIndex:t.index(n),$progressContainer:i,$pSteps:{all:i.find(".quiz__progress_dot"),inactive:i.find(".quiz__progress_dot:not(.active)"),active:i.find(".quiz__progress_dot.active")},$indicator:{current:e.find("#steps_bar"),all:e.find("#all_steps")},$btn:{prev:e.find(".quiz__nav_prev"),next:e.find(".quiz__nav_next"),submit:e.find(".btn-new.btn-submit")},$regulation:e.find(".user_form_regulation")}};var i=function(t){function e(e){FE.run("quiz-validate-error",{quizHasDesignUpdate:c,step:t}),o.text(e),c?t.addClass("field--has-error"):o.removeClass("hidden")}var n=t.hasClass("is_required"),i=t.data("type"),r=t.find(["input[type=text]","input[type=tel]","input[type=radio]:checked","input[type=checkbox]:checked","option:not([hidden]):selected","textarea"].join(", ")),o=t.find(".ui_error"),a="Это поле нужно заполнить",s="Телефон содержит неверные символы",l="Введите корректный адрес электронной почты",c=t.closest(".quiz-form").hasClass("quiz-form--v1"),u=function(e){if(-1!==["fcheckbox","fradio","fselect"].indexOf(i))return 0===e.length;e=e.val().trim();return 0===e.length||!e};if(c?t.removeClass("field--has-error"):o.addClass("hidden"),n&&u(r))return e(a),!1;if("ftextbox"===i&&!u(r)){u=r.closest(".field").data("cls");if("femail"===u&&!function(e){e=e.val().trim();return/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i.test(e)}(r))return e(l),!1;if("fphone"===u&&!function(e){e=e.val().trim();return!(0e.activeIndex,o=1===e.$form.data("is-regulation-enabled");e.$steps.removeClass("active"),e.$steps.eq(t).addClass("active"),n?e.$btn.prev.addClass("quiz__disabled"):e.$btn.prev.removeClass("quiz__disabled"),i?(e.$btn.submit.removeClass("quiz__disabled"),e.$btn.next.addClass("quiz__disabled"),o&&e.$regulation.removeClass("hidden")):(e.$btn.submit.addClass("quiz__disabled"),e.$btn.next.removeClass("quiz__disabled"),e.$regulation.addClass("hidden"));o=e.$progressContainer.attr("data-progress-color")||"aaa";e.$pSteps.active.removeClass("active"),e.$pSteps.all.removeAttr("style"),e.$pSteps.all.eq(t).addClass("active").css("background-color","#"+o),e.$indicator.all.text(e.totalSteps),e.$indicator.current.text(t+1);o=e.$steps.eq(t).find("input[type=text]:visible, textarea");-1!==e.activeIndex&&o.length&&o.trigger("focus"),i||($(".wrap-for-formPopover").animate({scrollTop:0},300),e.$form.find(".wind-body").animate({scrollTop:0},300)),r&&0window.scrollY?(this.resetFixedPosition(a),a.removeProperty("translate"),this.removeFixedSubstitute(o.substitute)):o.rangeStart<=window.scrollY&&o.rangeEnd>window.scrollY?(t=o.el.getBoundingClientRect(),r=window.getComputedStyle(o.el),n=parseInt(r.marginTop),o.isParentAbsolute||o.substitute||(o.substitute=document.createElement("div"),o.el.after(o.substitute),a.setProperty("width",t.width+"px")),o.isParentAbsolute||0!==parseInt(window.getComputedStyle(o.substitute).height)||o.substitute.style.setProperty("height",t.height+n+"px"),i=parseInt(r.marginLeft),e=(t.width-parseFloat(r.width))/2,a.setProperty("left",t.left-i+e+"px"),a.setProperty("position","fixed"),r=(t.height-parseFloat(r.height))/2,a.setProperty("top",o.fixTop-n+r+"px"),a.removeProperty("translate")):o.rangeEnd<=window.scrollY&&(this.resetFixedPosition(a),a.setProperty("translate","0px "+(o.rangeEnd-o.rangeStart)+"px"),this.removeFixedSubstitute(o.substitute))}},e.prototype.resetFixedPosition=function(e){e.removeProperty("position"),e.removeProperty("top"),e.removeProperty("left")},e.prototype.removeFixedSubstitute=function(e){e&&e.style.removeProperty("height")},e.prototype.getObserver=function(e,a,t){let n={};return"string"==typeof t&&null!==t.match(/^\d+px$/)&&"0px"!==t&&(n={rootMargin:"0px 0px -"+t+" 0px"}),new IntersectionObserver(function(e,t){for(const r in e){var n,i=e[r];if(i.isIntersecting){const o=this.getTargetElement(i.target);a?(n=window.scrollY+o.getBoundingClientRect().top,this.addAnimationClassForMsBlock(i.target,o,this.classPattern.scroll),o.style.setProperty("--block-top",n)):this.startAnimationDeferred($(i.target),this.getAnimatedObject($(i.target))),t.unobserve(i.target)}}}.bind(this),n)},e.prototype.animationIsDisabled=function(e){return 0===e.length||0{var n=Math.abs($(t).offset().top-i);(n"+t),a=e.find(".blk_container_cells:first").outerWidth(),s=i==adapterManager.ADAPTABILITY_TYPE_PC||void 0===e.attr("count-cell-in-row")?n.length:e.attr("count-cell-in-row");n.each(function(){var e=$(this),t=e.attr(o?"cell_id":"id"),n=e.css("padding");"undefined"!=typeof InstallTrigger&&(n=e.css("padding-top")+" "+e.css("padding-left")),r=number_format((100*e.outerWidth()/a).toFixed(3),3,"."),adapterManager.data[i][t]={},adapterManager.isEditor()&&(adapterManager.data[i][t]={width:r,padding:n,margin_left:parseInt(e.css("margin-left"))})});t=e.find(".blk_container_cells:first "+t+":not(:first):first");adapterManager.data[i][e.attr("id")]={cell_margin_horizontal:parseFloat(t.css("margin-left")),w_container_cells:a,count_cell_in_row:s}})},this.processingContainersAfterResize=function(r){adapterManager.$containers.each(function(){var e=$(this);e.attr("adapter_type",adapterManager.type);var t=void 0!==adapterManager.data[adapterManager.type][e.attr("id")]&&adapterManager.data[adapterManager.type][e.attr("id")],n=parseInt(0==t||void 0===t.count_cell_in_row?r.default_count_cell_in_row:t.count_cell_in_row),i=e.hasClass("v3");adapterManager.isPC()?(adapterManager.isEditor()&&i&&e.find(".blk_container_cells:first").css({display:"table"}),!adapterManager.isEditor()&&i||(adapterManager.processingCellsInBlockOnPC(e),adapterManager.isEditor()&&(t=i?".td_container_cell":".cell.container_cell",t=e.find(".blk_container_cells:first>"+t),adapterManager.setResizerPosition(t)))):!adapterManager.isEditor()&&i||(i&&e.find(".blk_container_cells:first").css({display:"flex","flex-flow":"row wrap"}),adapterManager.setCountColumn(e,n))}),adapterManager.hasOwnProperty("slickOpt")&&adapterManager.reinitializeSlick()},this.removeSlickClasses=function(e){e.length&&e.removeClass("initSlick")},this.rebuildSlick=function(e){e.length&&e.each(function(){var e=$(this),t=e.closest(".blk_box_slider"),e=e.children(".slider:first");null!=e.get(0).slick&&(e.slick("unslick"),e.slick(adapterManager.slickOpt[t.attr("id")]))})},this.reinitializeSlick=function(){var e=this.getScopeRoot();this.getScopeRoot().is("#popup_list")?this.removeSlickClasses(e.find(".initSlick")):this.removeSlickClasses(e.find("#popup_list .initSlick")),this.rebuildSlick(e.find(".blk_box_slider_self"))},this.processingCellsInBlockOnPC=function(e){var t,n=e.hasClass("v3");!adapterManager.isEditor()&&n||(t=n?".td_container_cell":".cell.container_cell",t=e.find(".blk_container_cells:first>"+t),e.find(".row-splitter").remove(),adapterManager.isEditor()&&t.each(function(){var e=$(this),t=e.attr(n?"cell_id":"id"),t=adapterManager.data[adapterManager.ADAPTABILITY_TYPE_PC][t];e.css({width:t.width+"%",padding:t.padding,"margin-left":t.margin_left})})),processingBlockInCells(t)},this.processingSectionBeforeResize=function(){adapterManager.$sections.each(function(){var e=$(this),t=e.attr("adapter_type");void 0===t&&(t=adapterManager.ADAPTABILITY_TYPE_PC);var n=e.find(".blk_section_inner:first"),i=void 0===adapterManager.data[t][e.attr("id")]?{}:adapterManager.data[t][e.attr("id")];i.pad_top=e.css("padding-top"),i.pad_bottom=e.css("padding-bottom"),i.width=n.css("width"),i["max-width"]=n.css("max-width"),adapterManager.data[t][e.attr("id")]=i})},this.processingMapSectionsAfterResize=function(){adapterManager.$sections.each(function(){var e=$(this);!e.hasClass("bg_type_map")&&"map"!=e.attr("bg_type")||yandexMaps.reInitMap(e.attr("id"),e.attr("data-map-latitude"),e.attr("data-map-longitude"))})},this.processingSectionAfterResize=function(){adapterManager.$sections.each(function(){var e=$(this);if(e.attr("adapter_type",adapterManager.type),!adapterManager.isEditor())return!0;var t=e.attr("id"),t=void 0===adapterManager.data[adapterManager.type][t]?{}:adapterManager.data[adapterManager.type][t];e.hasClass("blk-section--html")||e.hasClass("blk-section--ms")||(n={},void 0!==t.pad_top&&(n["padding-top"]=t.pad_top),void 0!==t.pad_bottom&&(n["padding-bottom"]=t.pad_bottom),e.css(n));var n={};void 0!==t.width&&(n.width=t.width),void 0!==t["max-width"]&&(n["max-width"]=t["max-width"]),e.find(".blk_section_inner:first").css(n)})},this.processingBlocksBeforeResize=function(){adapterManager.$blocks.each(function(){var e=$(this);if(0"+t+n),i=$(),r=$(),n.each(function(){i=$(this),parseInt(i.attr("row"))}),n.each(function(){var e=(i=$(this)).attr(3==o?"cell_id":"id");0!=(r=$("#cell-resizer-"+e)).length&&(e=r.attr("margin_horizontal"),r.css({height:40,left:i.position().left+parseInt(i.css("width"))+Math.floor(e/2)+parseInt(e)}))}))},this.getSettings=function(e){var t={};switch(e){case adapterManager.ADAPTABILITY_TYPE_PC:t={min_width:adapterManager.site_width,width:adapterManager.site_width,popup_section_inner:!1,form_popover_width:400,window_popover_width:500,cell_margin_horizontal:!1,default_count_cell_in_row:1};break;case adapterManager.ADAPTABILITY_TYPE_TABLET:t={min_width:adapterManager.DEVICE_TABLET_CONTENT_MIN_WIDTH,width:adapterManager.DEVICE_TABLET_CONTENT_MIN_WIDTH,popup_section_inner:adapterManager.DEVICE_TABLET_POPUP_MIN_WIDTH,form_popover_width:adapterManager.DEVICE_TABLET_POPUP_MIN_WIDTH,window_popover_width:450,cell_margin_horizontal:3,default_count_cell_in_row:2};break;case adapterManager.ADAPTABILITY_TYPE_MOBILE:t={min_width:adapterManager.DEVICE_MOBILE_CONTENT_MIN_WIDTH,width:adapterManager.DEVICE_MOBILE_CONTENT_MIN_WIDTH,popup_section_inner:adapterManager.DEVICE_MOBILE_POPUP_MIN_WIDTH,form_popover_width:adapterManager.DEVICE_MOBILE_POPUP_MIN_WIDTH,window_popover_width:340,cell_margin_horizontal:3,default_count_cell_in_row:2,new_default_count_cell_in_row:1}}return t},this.setCountColumn=function(s,l,e){if(0')).attr("owner-row",_),w=d?p.children(".td_container_cell[cell_id="+y[0]+"]"):$("#"+y[0]),d&&e.css("display","table-row"),w.before(e)),y){w=d?p.children(".td_container_cell[cell_id="+y[t]+"]"):$("#"+y[t]);var r=0,o=0!=(c=void 0!==adapterManager.data[adapterManager.type][y[t]]&&adapterManager.data[adapterManager.type][y[t]])&&void 0!==c.width&&c.width;u=adapterManager.data[adapterManager.ADAPTABILITY_TYPE_PC][y[t]];var a=0;i=0==o?(a=100*Math.floor(u.width/k)/n,r=Math.round((a-S)/(100/b).toFixed(3)),number_format((x*r).toFixed(3),3,".")):o,adapterManager.isEditor()&&(w.css({width:i+"%","margin-left":m}),adapterManager.MARGIN_VERSION_NEW===window.marginVersion&&w.css({padding:"0px 10px"})),adapterManager.resetSizeImageExt(w),processingBlockInCells(w),w.attr("row",_)}adapterManager.updateCells(s,_),y=[],v=0,++_,C=11,adapterManager.MARGIN_VERSION_NEW===window.marginVersion&&(C=20)}}),adapterManager.setResizerPosition(f,m))},this.setResizerPosition=function(e,t){t=t||0;var n=e.find(".blk-container__resize-inner").removeAttr("style");adapterManager.isPC()||(e=parseInt(n.css("left"),10),n.css("left",e-(t/2).toFixed(0)))},this.resetSizeImageExt=function(e){e=e.hasClass("blk_image_ext")?e:e.find(".blk.blk_image_ext:not(.skip-adapt)");void 0!==adapterManager.data[adapterManager.ADAPTABILITY_TYPE_PC]&&e.each(function(){var e=$(this),t=e.attr("id"),t=void 0===adapterManager.data[adapterManager.ADAPTABILITY_TYPE_PC][t]?{}:adapterManager.data[adapterManager.ADAPTABILITY_TYPE_PC][t];adapterManager.setBlockData(e,t)})},this.initView=function(){adapterManager.initFotorama()},this.initResize=function(o){function n(e){e=e||{};var t,n=$(window).width(),i=adapterManager.ADAPTABILITY_TYPE_PC;for(t in o){var r=o[t];n>=r.min&&n<=r.max&&(i=r.name)}adapterManager.type!=i&&adapterManager.setVersion(i,e)}$(window).resize(function(){clearTimeout(adapterManager.resizeTimer),adapterManager.resizeTimer=setTimeout(n,100)}),FE.add("show_section_popup",function(e){var t={};isset(e.section_id)&&(t.$scopeBlocks=$("#"+e.section_id),t.$scopeRoot=$("#popup_list")),n(t),adapterManager.setScopeRoot(adapterManager.getDefaultScopeRoot()),adapterManager.setScopeBlocks(adapterManager.getDefaultScopeBlocks())}),n()},this.getAdaptiveDataOfBlock=function(e){if(adapterManager.isEditor())return blockManager.getBlock(e.attr("id"),!0).getAdaptiveDataFromHtml();var t={},n=e.attr("blk_class");switch(n="blk_image_ext"===n?"blk_image":n){case"blk_text":var i=e.find(".blk-data:first");t.body=i.html(),t.text_align=i.css("text-align"),t.font_size=parseInt(i.css("font-size")),t.padding_top=parseInt(i.css("padding-top")),t.padding_bottom=parseInt(i.css("padding-bottom")),t.padding_left=parseInt(i.css("padding-left")),t.padding_right=parseInt(i.css("padding-right")),t.is_padding_split=1,t.padding_top===t.padding_bottom&&t.padding_top===t.padding_left&&t.padding_left===t.padding_right&&(t.is_padding_split=0);break;case"blk_image":t.prod_w=e.find(".img_container img").css("width"),t.prod_h=e.find(".img_container img").css("height");var r=e.find(".blk_image_data_wrap:first");r.hasClass("l_text")?t.align="l_text":r.hasClass("r_text")?t.align="r_text":r.hasClass("c_text")&&(t.align="c_text");break;case"blk_image_ext":var o=e.find(".img-crop:first"),a=o.find("img:first, .svg_container"),i=0 .fotorama, .blk-data > .fotorama").each(function(){var e,t,n,i,r=$(this);adapterManager.isEditor()&&FE.add("adapterManager/editor/afterResizingProcess",()=>{pages_editor.slider_editor.reinitFotorama(r)}),0==r.find(".fotorama__wrap").length?(t=(e=r.closest(".blk_section")).index(),n=e.hasClass("section_popup"),e.hasClass("is_absolute")&&(i=r.closest(".blk.blk_slider").height(),r.attr("data-height",i)),i=!0,(i=(n||2<=t)&&"complete"!==document.readyState&&!adapterManager.isEditor()?!1:i)?o(r):FE.add("onload",function(){o(r)})):r.addClass("fotorama--is-ready")})},this.initInPreview=function(){adapterManager.initFotorama(),FE.add("show_section_popup",function(e){var t={};e.section_id&&(t.$scopeBlocks=$("#"+e.section_id),t.$scopeRoot=$("#popup_list")),adapterManager.setVersion(adapterManager.type,t)})},this.initStates=function(e){for(var t in e)e.hasOwnProperty(t)&&(adapterManager.states[t]=e[t]?1:0,adapterManager.types.push(t),adapterManager.data_empty[t]={})}}function t(){this.$wnd_slider_empty=null,this.$wnd_slider=null,this.$wnd_slider_images=null,this.$block_fotorama=null,this.$block_data_encoded=null,this.$block_wrap=null,this.$block_loading=null,this.smart_block=null}sliderEditorExtend(t),FE.runOnReady(function(){window.adapterManager=new e,window.adapterManager.ready()})}(),function(){function e(){this.integration_id="yandex_money",this.form_root=$(),this.submitFormSettings=function(){var e={},t=!0;ymis_manager.form_root.find("input").each(function(){"checkbox"===$(this).attr("type")||"radio"===$(this).attr("type")?e[$(this).attr("name")]=$(this).prop("checked")?1:0:e[$(this).attr("name")]=$(this).val().trim()});var n,i,r=ymis_manager.validateFormSettings(e);for(n in r)ymis_manager.form_root.find("div[parent-name="+n+"]:first").html(r[n].join("
")),0"+e.textContent+"",new Vue(t)})};var MsJsObject=function(e){return this.jsObject=clone(window.MsBaseJsObject),this.objectData={data:{},methods:{}},this.initObjectsData(e),this.initSystemEvents(),MsVueTemplate.initVueApps(this.objectData,this.objectData.data.item),this.initData(),this.initMethods(),this.jsObject};MsJsObject.prototype.initObjectsData=function(e){for(var t={data:"data",methods:"methods",modules:"data"},n=0;ni;i++)!t[i].files||t[i].files.length<=0||n.push(formSubmit.sendOneFileToApi(t[i],e));return Promise.all(n).then(function(e){return e}).catch(function(e){if(8489!==e.code)throw new Error(JSON.stringify(e))})},e.prototype.sendOneFileToApi=function(o,a){return new Promise(function(t,n){var i=formSubmit.getFieldId(a,o.name),r=o.files[0];if(window.isPagePreview)return formSubmit.previewFiles.push({id:i,label:$(o).closest(".msf-input__wrapper, .field").find(".label_txt, .msf-input__header").text(),value:r.name}),void n({code:8489,mes:"preview does not send files"});var e=new FormData;e.append("file",r,r.name),$.ajax({data:e,method:"POST",dataType:"json",cache:!1,processData:!1,timeout:4e4,contentType:!1,url:formSubmit.getBaseUri()+"/api/file"}).then(function(e){e.url?t({id:i,name:r.name,value:e.url}):n(e)}).fail(function(e){n(e)})})},e.prototype.addFilesToApiRequest=function(e,t){if(!t||0===t.length)return e;var n=JSON.parse(e.data);return n.fields.push(...t),e.data=JSON.stringify(n),e},e.prototype.getAjaxUrl=function(e,t){var n="";return window.isPagePreview&&(n="/preview"),formSubmit.getBaseUri()+"/api/lead/form"+n},e.prototype.getBaseUri=function(){var e=(e=getCookie("frontServerPort"))?":"+e:"";return window.location.protocol+"//"+window.location.hostname+e},e.prototype.sendLeadRequest=function(e,t){6===t&&lockScreen("Сейчас произойдет переход к оплате",{show_animation:!0}),$.ajax(e).then(function(){formSubmit.doRedirect()})},e.prototype.onSubmitSuccess=function(e,t,n,i){var r,o=t.parent().hasClass("quiz-form");o&&(r=quizWebHandler.quizForm(t),window.quizStat.onFinish(r.id)),window.dbgMode&&console.log(e),FE.run("form-submitted-successfully",{id:t.closest(".blk").attr("id"),data:e}),toggleBtnLocker(t.find(".btn-submit")),formSubmit.checkErrors(e,t,o,r),isset(e.res)&&1==e.res&&(e.abtest_stat_lead_key&&setcookie("lpmstatlead",e.abtest_stat_lead_key,1.1,"/"),t[0].dispatchEvent(new CustomEvent("formSubmitSuccess")),reachGoalByAttr(t,"goal-submitted"),!i&&e.action_after_submit&&(i=parseInt(e.action_after_submit)),i=formSubmit.doActionAfterSubmit(i,t,e),o&&r&&quizWebHandler.toQuizStep(r,0),formSubmit.clearInputValues(t),(r=t.closest(".wind")).length&&r.wind("hide"),i&&(r=r.hasClass("quiz-form--v1"),e=formSubmit.getSuccessMessage(t,e),formSubmit.showSuccessMessage(e,o,r)))},e.prototype.onSubmitError=function(e,t,n){switch(console.log(t),t){case"timeout":alert("Ошибка! Нет связи с сервером. Проверьте подключение к интернету и попробуйте снова.");break;case"error":case"parsererror":alert("Извините, на сервере возникла ошибка!\n\nПожалуйста, напишите нам в тех-поддержку support@lpmotor.ru"),window.dbgMode&&(console.log(e),console.log(n))}},e.prototype.doActionAfterSubmit=function(e,t,n){var i=!1;return 2