text: function lazyInit(){$("img.artbox-lazy").lazyload({skip_invisible:!1}),lazyThreshold(),lazyEvent(),lazyEffect()}function lazyThreshold(){$.each($("img.artbox-lazy-threshold"),function(t,e){var i=205,n=$(e).data("threshold");n&&(i=n),$(e).lazyload({threshold:i})})}function lazyEvent(){$.each($("img.artbox-lazy-event"),function(t,e){var i="lazy.artbox",n=$(e).data("event");n&&(i=n),$(e).lazyload({event:i})})}function lazyEffect(){$.each($("img.artbox-lazy-effect"),function(t,e){var i="fadeIn",n=$(e).data("effect");n&&(i=n),$(e).lazyload({effect:i})})}function handleCredit(t){$("#basket-form").yiiActiveForm("validateAttribute",$(this).attr("id"),!0)}function calculateCredit(t){var e=$(".credit_month_input").val(),i=$(".credit_sum_input").val();return void 0===t&&(t=2),void 0!==e||void 0!==i?Math.ceil(i/e+i*t/100):"Невозможно посчитать сумму"}function showPreloader(t){var e=$("<div class='preloader'></div>");return $(t).prepend(e),e}function hidePreloader(t){$(t).remove(),$("body").removeClass("hidden_scroll-y")}function btnScroll(){function t(){var t=$(".container").offset().left;$(".btn_scroll").css({right:t})}function e(){var t=$(window).height();$(this).scrollTop()<t?$(".btn_scroll").removeClass("visible-btn"):$(".btn_scroll").addClass("visible-btn")}t(),e(),$(window).resize(function(){t(),e()}),$(window).scroll(function(){e()}),$(".btn_scroll").click(function(){$("body,html").animate({scrollTop:0},500)})}!function(t,e){"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(t,e){function i(t){var e=!!t&&"length"in t&&t.length,i=at.type(t);return"function"!==i&&!at.isWindow(t)&&("array"===i||0===e||"number"==typeof e&&e>0&&e-1 in t)}function n(t,e,i){if(at.isFunction(e))return at.grep(t,function(t,n){return!!e.call(t,n,t)!==i});if(e.nodeType)return at.grep(t,function(t){return t===e!==i});if("string"==typeof e){if(mt.test(e))return at.filter(e,t,i);e=at.filter(e,t)}return at.grep(t,function(t){return J.call(e,t)>-1!==i})}function r(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function a(t){var e={};return at.each(t.match(kt)||[],function(t,i){e[i]=!0}),e}function o(){X.removeEventListener("DOMContentLoaded",o),t.removeEventListener("load",o),at.ready()}function s(){this.expando=at.expando+s.uid++}function l(t,e,i){var n;if(void 0===i&&1===t.nodeType)if(n="data-"+e.replace(At,"-$&").toLowerCase(),i=t.getAttribute(n),"string"==typeof i){try{i="true"===i||"false"!==i&&("null"===i?null:+i+""===i?+i:St.test(i)?at.parseJSON(i):i)}catch(t){}Tt.set(t,e,i)}else i=void 0;return i}function c(t,e,i,n){var r,a=1,o=20,s=n?function(){return n.cur()}:function(){return at.css(t,e,"")},l=s(),c=i&&i[3]||(at.cssNumber[e]?"":"px"),u=(at.cssNumber[e]||"px"!==c&&+l)&&Et.exec(at.css(t,e));if(u&&u[3]!==c){c=c||u[3],i=i||[],u=+l||1;do a=a||".5",u/=a,at.style(t,e,u+c);while(a!==(a=s()/l)&&1!==a&&--o)}return i&&(u=+u||+l||0,r=i[1]?u+(i[1]+1)*i[2]:+i[2],n&&(n.unit=c,n.start=u,n.end=r)),r}function u(t,e){var i="undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e||"*"):"undefined"!=typeof t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&&at.nodeName(t,e)?at.merge([t],i):i}function h(t,e){for(var i=0,n=t.length;i<n;i++)$t.set(t[i],"globalEval",!e||$t.get(e[i],"globalEval"))}function d(t,e,i,n,r){for(var a,o,s,l,c,d,p=e.createDocumentFragment(),f=[],m=0,g=t.length;m<g;m++)if(a=t[m],a||0===a)if("object"===at.type(a))at.merge(f,a.nodeType?[a]:a);else if(Ot.test(a)){for(o=o||p.appendChild(e.createElement("div")),s=(Mt.exec(a)||["",""])[1].toLowerCase(),l=Nt[s]||Nt._default,o.innerHTML=l[1]+at.htmlPrefilter(a)+l[2],d=l[0];d--;)o=o.lastChild;at.merge(f,o.childNodes),o=p.firstChild,o.textContent=""}else f.push(e.createTextNode(a));for(p.textContent="",m=0;a=f[m++];)if(n&&at.inArray(a,n)>-1)r&&r.push(a);else if(c=at.contains(a.ownerDocument,a),o=u(p.appendChild(a),"script"),c&&h(o),i)for(d=0;a=o[d++];)Lt.test(a.type||"")&&i.push(a);return p}function p(){return!0}function f(){return!1}function m(){try{return X.activeElement}catch(t){}}function g(t,e,i,n,r,a){var o,s;if("object"==typeof e){"string"!=typeof i&&(n=n||i,i=void 0);for(s in e)g(t,s,i,n,e[s],a);return t}if(null==n&&null==r?(r=i,n=i=void 0):null==r&&("string"==typeof i?(r=n,n=void 0):(r=n,n=i,i=void 0)),r===!1)r=f;else if(!r)return t;return 1===a&&(o=r,r=function(t){return at().off(t),o.apply(this,arguments)},r.guid=o.guid||(o.guid=at.guid++)),t.each(function(){at.event.add(this,e,r,n,i)})}function v(t,e){return at.nodeName(t,"table")&&at.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function y(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function b(t){var e=Wt.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function x(t,e){var i,n,r,a,o,s,l,c;if(1===e.nodeType){if($t.hasData(t)&&(a=$t.access(t),o=$t.set(e,a),c=a.events)){delete o.handle,o.events={};for(r in c)for(i=0,n=c[r].length;i<n;i++)at.event.add(e,r,c[r][i])}Tt.hasData(t)&&(s=Tt.access(t),l=at.extend({},s),Tt.set(e,l))}}function k(t,e){var i=e.nodeName.toLowerCase();"input"===i&&Dt.test(t.type)?e.checked=t.checked:"input"!==i&&"textarea"!==i||(e.defaultValue=t.defaultValue)}function w(t,e,i,n){e=Y.apply([],e);var r,a,o,s,l,c,h=0,p=t.length,f=p-1,m=e[0],g=at.isFunction(m);if(g||p>1&&"string"==typeof m&&!nt.checkClone&&qt.test(m))return t.each(function(r){var a=t.eq(r);g&&(e[0]=m.call(this,r,a.html())),w(a,e,i,n)});if(p&&(r=d(e,t[0].ownerDocument,!1,t,n),a=r.firstChild,1===r.childNodes.length&&(r=a),a||n)){for(o=at.map(u(r,"script"),y),s=o.length;h<p;h++)l=r,h!==f&&(l=at.clone(l,!0,!0),s&&at.merge(o,u(l,"script"))),i.call(t[h],l,h);if(s)for(c=o[o.length-1].ownerDocument,at.map(o,b),h=0;h<s;h++)l=o[h],Lt.test(l.type||"")&&!$t.access(l,"globalEval")&&at.contains(c,l)&&(l.src?at._evalUrl&&at._evalUrl(l.src):at.globalEval(l.textContent.replace(Vt,"")))}return t}function C(t,e,i){for(var n,r=e?at.filter(e,t):t,a=0;null!=(n=r[a]);a++)i||1!==n.nodeType||at.cleanData(u(n)),n.parentNode&&(i&&at.contains(n.ownerDocument,n)&&h(u(n,"script")),n.parentNode.removeChild(n));return t}function _(t,e){var i=at(e.createElement(t)).appendTo(e.body),n=at.css(i[0],"display");return i.detach(),n}function $(t){var e=X,i=Qt[t];return i||(i=_(t,e),"none"!==i&&i||(Gt=(Gt||at("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement),e=Gt[0].contentDocument,e.write(),e.close(),i=_(t,e),Gt.detach()),Qt[t]=i),i}function T(t,e,i){var n,r,a,o,s=t.style;return i=i||Kt(t),o=i?i.getPropertyValue(e)||i[e]:void 0,""!==o&&void 0!==o||at.contains(t.ownerDocument,t)||(o=at.style(t,e)),i&&!nt.pixelMarginRight()&&Xt.test(o)&&Ut.test(e)&&(n=s.width,r=s.minWidth,a=s.maxWidth,s.minWidth=s.maxWidth=s.width=o,o=i.width,s.width=n,s.minWidth=r,s.maxWidth=a),void 0!==o?o+"":o}function S(t,e){return{get:function(){return t()?void delete this.get:(this.get=e).apply(this,arguments)}}}function A(t){if(t in ne)return t;for(var e=t[0].toUpperCase()+t.slice(1),i=ie.length;i--;)if(t=ie[i]+e,t in ne)return t}function j(t,e,i){var n=Et.exec(e);return n?Math.max(0,n[2]-(i||0))+(n[3]||"px"):e}function E(t,e,i,n,r){for(var a=i===(n?"border":"content")?4:"width"===e?1:0,o=0;a<4;a+=2)"margin"===i&&(o+=at.css(t,i+Pt[a],!0,r)),n?("content"===i&&(o-=at.css(t,"padding"+Pt[a],!0,r)),"margin"!==i&&(o-=at.css(t,"border"+Pt[a]+"Width",!0,r))):(o+=at.css(t,"padding"+Pt[a],!0,r),"padding"!==i&&(o+=at.css(t,"border"+Pt[a]+"Width",!0,r)));return o}function P(t,e,i){var n=!0,r="width"===e?t.offsetWidth:t.offsetHeight,a=Kt(t),o="border-box"===at.css(t,"boxSizing",!1,a);if(r<=0||null==r){if(r=T(t,e,a),(r<0||null==r)&&(r=t.style[e]),Xt.test(r))return r;n=o&&(nt.boxSizingReliable()||r===t.style[e]),r=parseFloat(r)||0}return r+E(t,e,i||(o?"border":"content"),n,a)+"px"}function F(t,e){for(var i,n,r,a=[],o=0,s=t.length;o<s;o++)n=t[o],n.style&&(a[o]=$t.get(n,"olddisplay"),i=n.style.display,e?(a[o]||"none"!==i||(n.style.display=""),""===n.style.display&&Ft(n)&&(a[o]=$t.access(n,"olddisplay",$(n.nodeName)))):(r=Ft(n),"none"===i&&r||$t.set(n,"olddisplay",r?i:at.css(n,"display"))));for(o=0;o<s;o++)n=t[o],n.style&&(e&&"none"!==n.style.display&&""!==n.style.display||(n.style.display=e?a[o]||"":"none"));return t}function D(t,e,i,n,r){return new D.prototype.init(t,e,i,n,r)}function M(){return t.setTimeout(function(){re=void 0}),re=at.now()}function L(t,e){var i,n=0,r={height:t};for(e=e?1:0;n<4;n+=2-e)i=Pt[n],r["margin"+i]=r["padding"+i]=t;return e&&(r.opacity=r.width=t),r}function N(t,e,i){for(var n,r=(R.tweeners[e]||[]).concat(R.tweeners["*"]),a=0,o=r.length;a<o;a++)if(n=r[a].call(i,e,t))return n}function O(t,e,i){var n,r,a,o,s,l,c,u,h=this,d={},p=t.style,f=t.nodeType&&Ft(t),m=$t.get(t,"fxshow");i.queue||(s=at._queueHooks(t,"fx"),null==s.unqueued&&(s.unqueued=0,l=s.empty.fire,s.empty.fire=function(){s.unqueued||l()}),s.unqueued++,h.always(function(){h.always(function(){s.unqueued--,at.queue(t,"fx").length||s.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(i.overflow=[p.overflow,p.overflowX,p.overflowY],c=at.css(t,"display"),u="none"===c?$t.get(t,"olddisplay")||$(t.nodeName):c,"inline"===u&&"none"===at.css(t,"float")&&(p.display="inline-block")),i.overflow&&(p.overflow="hidden",h.always(function(){p.overflow=i.overflow[0],p.overflowX=i.overflow[1],p.overflowY=i.overflow[2]}));for(n in e)if(r=e[n],oe.exec(r)){if(delete e[n],a=a||"toggle"===r,r===(f?"hide":"show")){if("show"!==r||!m||void 0===m[n])continue;f=!0}d[n]=m&&m[n]||at.style(t,n)}else c=void 0;if(at.isEmptyObject(d))"inline"===("none"===c?$(t.nodeName):c)&&(p.display=c);else{m?"hidden"in m&&(f=m.hidden):m=$t.access(t,"fxshow",{}),a&&(m.hidden=!f),f?at(t).show():h.done(function(){at(t).hide()}),h.done(function(){var e;$t.remove(t,"fxshow");for(e in d)at.style(t,e,d[e])});for(n in d)o=N(f?m[n]:0,n,h),n in m||(m[n]=o.start,f&&(o.end=o.start,o.start="width"===n||"height"===n?1:0))}}function I(t,e){var i,n,r,a,o;for(i in t)if(n=at.camelCase(i),r=e[n],a=t[i],at.isArray(a)&&(r=a[1],a=t[i]=a[0]),i!==n&&(t[n]=a,delete t[i]),o=at.cssHooks[n],o&&"expand"in o){a=o.expand(a),delete t[n];for(i in a)i in t||(t[i]=a[i],e[i]=r)}else e[n]=r}function R(t,e,i){var n,r,a=0,o=R.prefilters.length,s=at.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var e=re||M(),i=Math.max(0,c.startTime+c.duration-e),n=i/c.duration||0,a=1-n,o=0,l=c.tweens.length;o<l;o++)c.tweens[o].run(a);return s.notifyWith(t,[c,a,i]),a<1&&l?i:(s.resolveWith(t,[c]),!1)},c=s.promise({elem:t,props:at.extend({},e),opts:at.extend(!0,{specialEasing:{},easing:at.easing._default},i),originalProperties:e,originalOptions:i,startTime:re||M(),duration:i.duration,tweens:[],createTween:function(e,i){var n=at.Tween(t,c.opts,e,i,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(n),n},stop:function(e){var i=0,n=e?c.tweens.length:0;if(r)return this;for(r=!0;i<n;i++)c.tweens[i].run(1);return e?(s.notifyWith(t,[c,1,0]),s.resolveWith(t,[c,e])):s.rejectWith(t,[c,e]),this}}),u=c.props;for(I(u,c.opts.specialEasing);a<o;a++)if(n=R.prefilters[a].call(c,t,u,c.opts))return at.isFunction(n.stop)&&(at._queueHooks(c.elem,c.opts.queue).stop=at.proxy(n.stop,n)),n;return at.map(u,N,c),at.isFunction(c.opts.start)&&c.opts.start.call(t,c),at.fx.timer(at.extend(l,{elem:t,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}function z(t){return t.getAttribute&&t.getAttribute("class")||""}function H(t){return function(e,i){"string"!=typeof e&&(i=e,e="*");var n,r=0,a=e.toLowerCase().match(kt)||[];if(at.isFunction(i))for(;n=a[r++];)"+"===n[0]?(n=n.slice(1)||"*",(t[n]=t[n]||[]).unshift(i)):(t[n]=t[n]||[]).push(i)}}function B(t,e,i,n){function r(s){var l;return a[s]=!0,at.each(t[s]||[],function(t,s){var c=s(e,i,n);return"string"!=typeof c||o||a[c]?o?!(l=c):void 0:(e.dataTypes.unshift(c),r(c),!1)}),l}var a={},o=t===Te;return r(e.dataTypes[0])||!a["*"]&&r("*")}function q(t,e){var i,n,r=at.ajaxSettings.flatOptions||{};for(i in e)void 0!==e[i]&&((r[i]?t:n||(n={}))[i]=e[i]);return n&&at.extend(!0,t,n),t}function W(t,e,i){for(var n,r,a,o,s=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=t.mimeType||e.getResponseHeader("Content-Type"));if(n)for(r in s)if(s[r]&&s[r].test(n)){l.unshift(r);break}if(l[0]in i)a=l[0];else{for(r in i){if(!l[0]||t.converters[r+" "+l[0]]){a=r;break}o||(o=r)}a=a||o}if(a)return a!==l[0]&&l.unshift(a),i[a]}function V(t,e,i,n){var r,a,o,s,l,c={},u=t.dataTypes.slice();if(u[1])for(o in t.converters)c[o.toLowerCase()]=t.converters[o];for(a=u.shift();a;)if(t.responseFields[a]&&(i[t.responseFields[a]]=e),!l&&n&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=a,a=u.shift())if("*"===a)a=l;else if("*"!==l&&l!==a){if(o=c[l+" "+a]||c["* "+a],!o)for(r in c)if(s=r.split(" "),s[1]===a&&(o=c[l+" "+s[0]]||c["* "+s[0]])){o===!0?o=c[r]:c[r]!==!0&&(a=s[0],u.unshift(s[1]));break}if(o!==!0)if(o&&t.throws)e=o(e);else try{e=o(e)}catch(t){return{state:"parsererror",error:o?t:"No conversion from "+l+" to "+a}}}return{state:"success",data:e}}function G(t,e,i,n){var r;if(at.isArray(e))at.each(e,function(e,r){i||Ee.test(t)?n(t,r):G(t+"["+("object"==typeof r&&null!=r?e:"")+"]",r,i,n)});else if(i||"object"!==at.type(e))n(t,e);else for(r in e)G(t+"["+r+"]",e[r],i,n)}function Q(t){return at.isWindow(t)?t:9===t.nodeType&&t.defaultView}var U=[],X=t.document,K=U.slice,Y=U.concat,Z=U.push,J=U.indexOf,tt={},et=tt.toString,it=tt.hasOwnProperty,nt={},rt="2.2.4",at=function(t,e){return new at.fn.init(t,e)},ot=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,st=/^-ms-/,lt=/-([\da-z])/gi,ct=function(t,e){return e.toUpperCase()};at.fn=at.prototype={jquery:rt,constructor:at,selector:"",length:0,toArray:function(){return K.call(this)},get:function(t){return null!=t?t<0?this[t+this.length]:this[t]:K.call(this)},pushStack:function(t){var e=at.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t){return at.each(this,t)},map:function(t){return this.pushStack(at.map(this,function(e,i){return t.call(e,i,e)}))},slice:function(){return this.pushStack(K.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,i=+t+(t<0?e:0);return this.pushStack(i>=0&&i<e?[this[i]]:[])},end:function(){return this.prevObject||this.constructor()},push:Z,sort:U.sort,splice:U.splice},at.extend=at.fn.extend=function(){var t,e,i,n,r,a,o=arguments[0]||{},s=1,l=arguments.length,c=!1;for("boolean"==typeof o&&(c=o,o=arguments[s]||{},s++),"object"==typeof o||at.isFunction(o)||(o={}),s===l&&(o=this,s--);s<l;s++)if(null!=(t=arguments[s]))for(e in t)i=o[e],n=t[e],o!==n&&(c&&n&&(at.isPlainObject(n)||(r=at.isArray(n)))?(r?(r=!1,a=i&&at.isArray(i)?i:[]):a=i&&at.isPlainObject(i)?i:{},o[e]=at.extend(c,a,n)):void 0!==n&&(o[e]=n));return o},at.extend({expando:"jQuery"+(rt+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===at.type(t)},isArray:Array.isArray,isWindow:function(t){return null!=t&&t===t.window},isNumeric:function(t){var e=t&&t.toString();return!at.isArray(t)&&e-parseFloat(e)+1>=0},isPlainObject:function(t){var e;if("object"!==at.type(t)||t.nodeType||at.isWindow(t))return!1;if(t.constructor&&!it.call(t,"constructor")&&!it.call(t.constructor.prototype||{},"isPrototypeOf"))return!1;for(e in t);return void 0===e||it.call(t,e)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?tt[et.call(t)]||"object":typeof t},globalEval:function(t){var e,i=eval;t=at.trim(t),t&&(1===t.indexOf("use strict")?(e=X.createElement("script"),e.text=t,X.head.appendChild(e).parentNode.removeChild(e)):i(t))},camelCase:function(t){return t.replace(st,"ms-").replace(lt,ct)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e){var n,r=0;if(i(t))for(n=t.length;r<n&&e.call(t[r],r,t[r])!==!1;r++);else for(r in t)if(e.call(t[r],r,t[r])===!1)break;return t},trim:function(t){return null==t?"":(t+"").replace(ot,"")},makeArray:function(t,e){var n=e||[];return null!=t&&(i(Object(t))?at.merge(n,"string"==typeof t?[t]:t):Z.call(n,t)),n},inArray:function(t,e,i){return null==e?-1:J.call(e,t,i)},merge:function(t,e){for(var i=+e.length,n=0,r=t.length;n<i;n++)t[r++]=e[n];return t.length=r,t},grep:function(t,e,i){for(var n,r=[],a=0,o=t.length,s=!i;a<o;a++)n=!e(t[a],a),n!==s&&r.push(t[a]);return r},map:function(t,e,n){var r,a,o=0,s=[];if(i(t))for(r=t.length;o<r;o++)a=e(t[o],o,n),null!=a&&s.push(a);else for(o in t)a=e(t[o],o,n),null!=a&&s.push(a);return Y.apply([],s)},guid:1,proxy:function(t,e){var i,n,r;if("string"==typeof e&&(i=t[e],e=t,t=i),at.isFunction(t))return n=K.call(arguments,2),r=function(){return t.apply(e||this,n.concat(K.call(arguments)))},r.guid=t.guid=t.guid||at.guid++,r},now:Date.now,support:nt}),"function"==typeof Symbol&&(at.fn[Symbol.iterator]=U[Symbol.iterator]),at.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){tt["[object "+e+"]"]=e.toLowerCase()});var ut=function(t){function e(t,e,i,n){var r,a,o,s,l,c,h,p,f=e&&e.ownerDocument,m=e?e.nodeType:9;if(i=i||[],"string"!=typeof t||!t||1!==m&&9!==m&&11!==m)return i;if(!n&&((e?e.ownerDocument||e:z)!==F&&P(e),e=e||F,M)){if(11!==m&&(c=vt.exec(t)))if(r=c[1]){if(9===m){if(!(o=e.getElementById(r)))return i;if(o.id===r)return i.push(o),i}else if(f&&(o=f.getElementById(r))&&I(e,o)&&o.id===r)return i.push(o),i}else{if(c[2])return Z.apply(i,e.getElementsByTagName(t)),i;if((r=c[3])&&k.getElementsByClassName&&e.getElementsByClassName)return Z.apply(i,e.getElementsByClassName(r)),i}if(k.qsa&&!V[t+" "]&&(!L||!L.test(t))){if(1!==m)f=e,p=t;else if("object"!==e.nodeName.toLowerCase()){for((s=e.getAttribute("id"))?s=s.replace(bt,"\\$&"):e.setAttribute("id",s=R),h=$(t),a=h.length,l=dt.test(s)?"#"+s:"[id='"+s+"']";a--;)h[a]=l+" "+d(h[a]);p=h.join(","),f=yt.test(t)&&u(e.parentNode)||e}if(p)try{return Z.apply(i,f.querySelectorAll(p)),i}catch(t){}finally{s===R&&e.removeAttribute("id")}}}return S(t.replace(st,"$1"),e,i,n)}function i(){function t(i,n){return e.push(i+" ")>w.cacheLength&&delete t[e.shift()],t[i+" "]=n}var e=[];return t}function n(t){return t[R]=!0,t}function r(t){var e=F.createElement("div");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function a(t,e){for(var i=t.split("|"),n=i.length;n--;)w.attrHandle[i[n]]=e}function o(t,e){var i=e&&t,n=i&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||Q)-(~t.sourceIndex||Q);if(n)return n;if(i)for(;i=i.nextSibling;)if(i===e)return-1;return t?1:-1}function s(t){return function(e){var i=e.nodeName.toLowerCase();return"input"===i&&e.type===t}}function l(t){return function(e){var i=e.nodeName.toLowerCase();return("input"===i||"button"===i)&&e.type===t}}function c(t){return n(function(e){return e=+e,n(function(i,n){for(var r,a=t([],i.length,e),o=a.length;o--;)i[r=a[o]]&&(i[r]=!(n[r]=i[r]))})})}function u(t){return t&&"undefined"!=typeof t.getElementsByTagName&&t}function h(){}function d(t){for(var e=0,i=t.length,n="";e<i;e++)n+=t[e].value;return n}function p(t,e,i){var n=e.dir,r=i&&"parentNode"===n,a=B++;return e.first?function(e,i,a){for(;e=e[n];)if(1===e.nodeType||r)return t(e,i,a)}:function(e,i,o){var s,l,c,u=[H,a];if(o){for(;e=e[n];)if((1===e.nodeType||r)&&t(e,i,o))return!0}else for(;e=e[n];)if(1===e.nodeType||r){if(c=e[R]||(e[R]={}),l=c[e.uniqueID]||(c[e.uniqueID]={}),(s=l[n])&&s[0]===H&&s[1]===a)return u[2]=s[2];if(l[n]=u,u[2]=t(e,i,o))return!0}}}function f(t){return t.length>1?function(e,i,n){for(var r=t.length;r--;)if(!t[r](e,i,n))return!1;return!0}:t[0]}function m(t,i,n){for(var r=0,a=i.length;r<a;r++)e(t,i[r],n);return n}function g(t,e,i,n,r){for(var a,o=[],s=0,l=t.length,c=null!=e;s<l;s++)(a=t[s])&&(i&&!i(a,n,r)||(o.push(a),c&&e.push(s)));return o}function v(t,e,i,r,a,o){return r&&!r[R]&&(r=v(r)),a&&!a[R]&&(a=v(a,o)),n(function(n,o,s,l){var c,u,h,d=[],p=[],f=o.length,v=n||m(e||"*",s.nodeType?[s]:s,[]),y=!t||!n&&e?v:g(v,d,t,s,l),b=i?a||(n?t:f||r)?[]:o:y;if(i&&i(y,b,s,l),r)for(c=g(b,p),r(c,[],s,l),u=c.length;u--;)(h=c[u])&&(b[p[u]]=!(y[p[u]]=h));if(n){if(a||t){if(a){for(c=[],u=b.length;u--;)(h=b[u])&&c.push(y[u]=h);a(null,b=[],c,l)}for(u=b.length;u--;)(h=b[u])&&(c=a?tt(n,h):d[u])>-1&&(n[c]=!(o[c]=h))}}else b=g(b===o?b.splice(f,b.length):b),a?a(null,o,b,l):Z.apply(o,b)})}function y(t){for(var e,i,n,r=t.length,a=w.relative[t[0].type],o=a||w.relative[" "],s=a?1:0,l=p(function(t){return t===e},o,!0),c=p(function(t){return tt(e,t)>-1},o,!0),u=[function(t,i,n){var r=!a&&(n||i!==A)||((e=i).nodeType?l(t,i,n):c(t,i,n));return e=null,r}];s<r;s++)if(i=w.relative[t[s].type])u=[p(f(u),i)];else{if(i=w.filter[t[s].type].apply(null,t[s].matches),i[R]){for(n=++s;n<r&&!w.relative[t[n].type];n++);return v(s>1&&f(u),s>1&&d(t.slice(0,s-1).concat({value:" "===t[s-2].type?"*":""})).replace(st,"$1"),i,s<n&&y(t.slice(s,n)),n<r&&y(t=t.slice(n)),n<r&&d(t))}u.push(i)}return f(u)}function b(t,i){var r=i.length>0,a=t.length>0,o=function(n,o,s,l,c){var u,h,d,p=0,f="0",m=n&&[],v=[],y=A,b=n||a&&w.find.TAG("*",c),x=H+=null==y?1:Math.random()||.1,k=b.length;for(c&&(A=o===F||o||c);f!==k&&null!=(u=b[f]);f++){if(a&&u){for(h=0,o||u.ownerDocument===F||(P(u),s=!M);d=t[h++];)if(d(u,o||F,s)){l.push(u);break}c&&(H=x)}r&&((u=!d&&u)&&p--,n&&m.push(u))}if(p+=f,r&&f!==p){for(h=0;d=i[h++];)d(m,v,o,s);if(n){if(p>0)for(;f--;)m[f]||v[f]||(v[f]=K.call(l));v=g(v)}Z.apply(l,v),c&&!n&&v.length>0&&p+i.length>1&&e.uniqueSort(l)}return c&&(H=x,A=y),m};return r?n(o):o}var x,k,w,C,_,$,T,S,A,j,E,P,F,D,M,L,N,O,I,R="sizzle"+1*new Date,z=t.document,H=0,B=0,q=i(),W=i(),V=i(),G=function(t,e){return t===e&&(E=!0),0},Q=1<<31,U={}.hasOwnProperty,X=[],K=X.pop,Y=X.push,Z=X.push,J=X.slice,tt=function(t,e){for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return i;return-1},et="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",it="[\\x20\\t\\r\\n\\f]",nt="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",rt="\\["+it+"*("+nt+")(?:"+it+"*([*^$|!~]?=)"+it+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+nt+"))|)"+it+"*\\]",at=":("+nt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+rt+")*)|.*)\\)|)",ot=new RegExp(it+"+","g"),st=new RegExp("^"+it+"+|((?:^|[^\\\\])(?:\\\\.)*)"+it+"+$","g"),lt=new RegExp("^"+it+"*,"+it+"*"),ct=new RegExp("^"+it+"*([>+~]|"+it+")"+it+"*"),ut=new RegExp("="+it+"*([^\\]'\"]*?)"+it+"*\\]","g"),ht=new RegExp(at),dt=new RegExp("^"+nt+"$"),pt={ID:new RegExp("^#("+nt+")"),CLASS:new RegExp("^\\.("+nt+")"),TAG:new RegExp("^("+nt+"|[*])"),ATTR:new RegExp("^"+rt),PSEUDO:new RegExp("^"+at),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+it+"*(even|odd|(([+-]|)(\\d*)n|)"+it+"*(?:([+-]|)"+it+"*(\\d+)|))"+it+"*\\)|)","i"),bool:new RegExp("^(?:"+et+")$","i"),needsContext:new RegExp("^"+it+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+it+"*((?:-\\d)?\\d*)"+it+"*\\)|)(?=[^-]|$)","i")},ft=/^(?:input|select|textarea|button)$/i,mt=/^h\d$/i,gt=/^[^{]+\{\s*\[native \w/,vt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,yt=/[+~]/,bt=/'|\\/g,xt=new RegExp("\\\\([\\da-f]{1,6}"+it+"?|("+it+")|.)","ig"),kt=function(t,e,i){var n="0x"+e-65536;return n!==n||i?e:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)},wt=function(){P()};try{Z.apply(X=J.call(z.childNodes),z.childNodes),X[z.childNodes.length].nodeType}catch(t){Z={apply:X.length?function(t,e){Y.apply(t,J.call(e))}:function(t,e){for(var i=t.length,n=0;t[i++]=e[n++];);t.length=i-1}}}k=e.support={},_=e.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},P=e.setDocument=function(t){var e,i,n=t?t.ownerDocument||t:z;return n!==F&&9===n.nodeType&&n.documentElement?(F=n,D=F.documentElement,M=!_(F),(i=F.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",wt,!1):i.attachEvent&&i.attachEvent("onunload",wt)),k.attributes=r(function(t){return t.className="i",!t.getAttribute("className")}),k.getElementsByTagName=r(function(t){return t.appendChild(F.createComment("")),!t.getElementsByTagName("*").length}),k.getElementsByClassName=gt.test(F.getElementsByClassName),k.getById=r(function(t){return D.appendChild(t).id=R,!F.getElementsByName||!F.getElementsByName(R).length}),k.getById?(w.find.ID=function(t,e){if("undefined"!=typeof e.getElementById&&M){var i=e.getElementById(t);return i?[i]:[]}},w.filter.ID=function(t){var e=t.replace(xt,kt);return function(t){return t.getAttribute("id")===e}}):(delete w.find.ID,w.filter.ID=function(t){var e=t.replace(xt,kt);return function(t){var i="undefined"!=typeof t.getAttributeNode&&t.getAttributeNode("id");return i&&i.value===e}}),w.find.TAG=k.getElementsByTagName?function(t,e){return"undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t):k.qsa?e.querySelectorAll(t):void 0}:function(t,e){var i,n=[],r=0,a=e.getElementsByTagName(t);if("*"===t){for(;i=a[r++];)1===i.nodeType&&n.push(i);return n}return a},w.find.CLASS=k.getElementsByClassName&&function(t,e){if("undefined"!=typeof e.getElementsByClassName&&M)return e.getElementsByClassName(t)},N=[],L=[],(k.qsa=gt.test(F.querySelectorAll))&&(r(function(t){D.appendChild(t).innerHTML="<a id='"+R+"'></a><select id='"+R+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&L.push("[*^$]="+it+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||L.push("\\["+it+"*(?:value|"+et+")"),t.querySelectorAll("[id~="+R+"-]").length||L.push("~="),t.querySelectorAll(":checked").length||L.push(":checked"),t.querySelectorAll("a#"+R+"+*").length||L.push(".#.+[+~]")}),r(function(t){var e=F.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&L.push("name"+it+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||L.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),L.push(",.*:")})),(k.matchesSelector=gt.test(O=D.matches||D.webkitMatchesSelector||D.mozMatchesSelector||D.oMatchesSelector||D.msMatchesSelector))&&r(function(t){k.disconnectedMatch=O.call(t,"div"),O.call(t,"[s!='']:x"),N.push("!=",at)}),L=L.length&&new RegExp(L.join("|")),N=N.length&&new RegExp(N.join("|")),e=gt.test(D.compareDocumentPosition),I=e||gt.test(D.contains)?function(t,e){var i=9===t.nodeType?t.documentElement:t,n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},G=e?function(t,e){if(t===e)return E=!0,0;var i=!t.compareDocumentPosition-!e.compareDocumentPosition;return i?i:(i=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&i||!k.sortDetached&&e.compareDocumentPosition(t)===i?t===F||t.ownerDocument===z&&I(z,t)?-1:e===F||e.ownerDocument===z&&I(z,e)?1:j?tt(j,t)-tt(j,e):0:4&i?-1:1)}:function(t,e){if(t===e)return E=!0,0;var i,n=0,r=t.parentNode,a=e.parentNode,s=[t],l=[e];if(!r||!a)return t===F?-1:e===F?1:r?-1:a?1:j?tt(j,t)-tt(j,e):0;if(r===a)return o(t,e);for(i=t;i=i.parentNode;)s.unshift(i);for(i=e;i=i.parentNode;)l.unshift(i);for(;s[n]===l[n];)n++;return n?o(s[n],l[n]):s[n]===z?-1:l[n]===z?1:0},F):F},e.matches=function(t,i){return e(t,null,null,i)},e.matchesSelector=function(t,i){if((t.ownerDocument||t)!==F&&P(t),i=i.replace(ut,"='$1']"),k.matchesSelector&&M&&!V[i+" "]&&(!N||!N.test(i))&&(!L||!L.test(i)))try{var n=O.call(t,i);if(n||k.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){}return e(i,F,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==F&&P(t),I(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==F&&P(t);var i=w.attrHandle[e.toLowerCase()],n=i&&U.call(w.attrHandle,e.toLowerCase())?i(t,e,!M):void 0;return void 0!==n?n:k.attributes||!M?t.getAttribute(e):(n=t.getAttributeNode(e))&&n.specified?n.value:null},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,i=[],n=0,r=0;if(E=!k.detectDuplicates,j=!k.sortStable&&t.slice(0),t.sort(G),E){for(;e=t[r++];)e===t[r]&&(n=i.push(r));for(;n--;)t.splice(i[n],1)}return j=null,t},C=e.getText=function(t){var e,i="",n=0,r=t.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)i+=C(t)}else if(3===r||4===r)return t.nodeValue}else for(;e=t[n++];)i+=C(e);return i},w=e.selectors={cacheLength:50,createPseudo:n,match:pt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(xt,kt),t[3]=(t[3]||t[4]||t[5]||"").replace(xt,kt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||e.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&e.error(t[0]),t},PSEUDO:function(t){var e,i=!t[6]&&t[2];return pt.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&ht.test(i)&&(e=$(i,!0))&&(e=i.indexOf(")",i.length-e)-i.length)&&(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(xt,kt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=q[t+" "];return e||(e=new RegExp("(^|"+it+")"+t+"("+it+"|$)"))&&q(t,function(t){return e.test("string"==typeof t.className&&t.className||"undefined"!=typeof t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,i,n){return function(r){var a=e.attr(r,t);return null==a?"!="===i:!i||(a+="","="===i?a===n:"!="===i?a!==n:"^="===i?n&&0===a.indexOf(n):"*="===i?n&&a.indexOf(n)>-1:"$="===i?n&&a.slice(-n.length)===n:"~="===i?(" "+a.replace(ot," ")+" ").indexOf(n)>-1:"|="===i&&(a===n||a.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,i,n,r){var a="nth"!==t.slice(0,3),o="last"!==t.slice(-4),s="of-type"===e;return 1===n&&0===r?function(t){return!!t.parentNode}:function(e,i,l){var c,u,h,d,p,f,m=a!==o?"nextSibling":"previousSibling",g=e.parentNode,v=s&&e.nodeName.toLowerCase(),y=!l&&!s,b=!1;if(g){if(a){for(;m;){for(d=e;d=d[m];)if(s?d.nodeName.toLowerCase()===v:1===d.nodeType)return!1;f=m="only"===t&&!f&&"nextSibling"}return!0}if(f=[o?g.firstChild:g.lastChild],o&&y){for(d=g,h=d[R]||(d[R]={}),u=h[d.uniqueID]||(h[d.uniqueID]={}),c=u[t]||[],p=c[0]===H&&c[1],b=p&&c[2],d=p&&g.childNodes[p];d=++p&&d&&d[m]||(b=p=0)||f.pop();)if(1===d.nodeType&&++b&&d===e){u[t]=[H,p,b];break}}else if(y&&(d=e,h=d[R]||(d[R]={}),u=h[d.uniqueID]||(h[d.uniqueID]={}),c=u[t]||[],p=c[0]===H&&c[1],b=p),b===!1)for(;(d=++p&&d&&d[m]||(b=p=0)||f.pop())&&((s?d.nodeName.toLowerCase()!==v:1!==d.nodeType)||!++b||(y&&(h=d[R]||(d[R]={}),u=h[d.uniqueID]||(h[d.uniqueID]={}),u[t]=[H,b]),d!==e)););return b-=r,b===n||b%n===0&&b/n>=0}}},PSEUDO:function(t,i){var r,a=w.pseudos[t]||w.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return a[R]?a(i):a.length>1?(r=[t,t,"",i],w.setFilters.hasOwnProperty(t.toLowerCase())?n(function(t,e){for(var n,r=a(t,i),o=r.length;o--;)n=tt(t,r[o]),t[n]=!(e[n]=r[o])}):function(t){return a(t,0,r)}):a}},pseudos:{not:n(function(t){var e=[],i=[],r=T(t.replace(st,"$1"));return r[R]?n(function(t,e,i,n){for(var a,o=r(t,null,n,[]),s=t.length;s--;)(a=o[s])&&(t[s]=!(e[s]=a))}):function(t,n,a){return e[0]=t,r(e,null,a,i),e[0]=null,!i.pop()}}),has:n(function(t){return function(i){return e(t,i).length>0}}),contains:n(function(t){return t=t.replace(xt,kt),function(e){return(e.textContent||e.innerText||C(e)).indexOf(t)>-1}}),lang:n(function(t){return dt.test(t||"")||e.error("unsupported lang: "+t),
  t=t.replace(xt,kt).toLowerCase(),function(e){var i;do if(i=M?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return i=i.toLowerCase(),i===t||0===i.indexOf(t+"-");while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var i=t.location&&t.location.hash;return i&&i.slice(1)===e.id},root:function(t){return t===D},focus:function(t){return t===F.activeElement&&(!F.hasFocus||F.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return t.disabled===!1},disabled:function(t){return t.disabled===!0},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,t.selected===!0},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!w.pseudos.empty(t)},header:function(t){return mt.test(t.nodeName)},input:function(t){return ft.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:c(function(){return[0]}),last:c(function(t,e){return[e-1]}),eq:c(function(t,e,i){return[i<0?i+e:i]}),even:c(function(t,e){for(var i=0;i<e;i+=2)t.push(i);return t}),odd:c(function(t,e){for(var i=1;i<e;i+=2)t.push(i);return t}),lt:c(function(t,e,i){for(var n=i<0?i+e:i;--n>=0;)t.push(n);return t}),gt:c(function(t,e,i){for(var n=i<0?i+e:i;++n<e;)t.push(n);return t})}},w.pseudos.nth=w.pseudos.eq;for(x in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})w.pseudos[x]=s(x);for(x in{submit:!0,reset:!0})w.pseudos[x]=l(x);return h.prototype=w.filters=w.pseudos,w.setFilters=new h,$=e.tokenize=function(t,i){var n,r,a,o,s,l,c,u=W[t+" "];if(u)return i?0:u.slice(0);for(s=t,l=[],c=w.preFilter;s;){n&&!(r=lt.exec(s))||(r&&(s=s.slice(r[0].length)||s),l.push(a=[])),n=!1,(r=ct.exec(s))&&(n=r.shift(),a.push({value:n,type:r[0].replace(st," ")}),s=s.slice(n.length));for(o in w.filter)!(r=pt[o].exec(s))||c[o]&&!(r=c[o](r))||(n=r.shift(),a.push({value:n,type:o,matches:r}),s=s.slice(n.length));if(!n)break}return i?s.length:s?e.error(t):W(t,l).slice(0)},T=e.compile=function(t,e){var i,n=[],r=[],a=V[t+" "];if(!a){for(e||(e=$(t)),i=e.length;i--;)a=y(e[i]),a[R]?n.push(a):r.push(a);a=V(t,b(r,n)),a.selector=t}return a},S=e.select=function(t,e,i,n){var r,a,o,s,l,c="function"==typeof t&&t,h=!n&&$(t=c.selector||t);if(i=i||[],1===h.length){if(a=h[0]=h[0].slice(0),a.length>2&&"ID"===(o=a[0]).type&&k.getById&&9===e.nodeType&&M&&w.relative[a[1].type]){if(e=(w.find.ID(o.matches[0].replace(xt,kt),e)||[])[0],!e)return i;c&&(e=e.parentNode),t=t.slice(a.shift().value.length)}for(r=pt.needsContext.test(t)?0:a.length;r--&&(o=a[r],!w.relative[s=o.type]);)if((l=w.find[s])&&(n=l(o.matches[0].replace(xt,kt),yt.test(a[0].type)&&u(e.parentNode)||e))){if(a.splice(r,1),t=n.length&&d(a),!t)return Z.apply(i,n),i;break}}return(c||T(t,h))(n,e,!M,i,!e||yt.test(t)&&u(e.parentNode)||e),i},k.sortStable=R.split("").sort(G).join("")===R,k.detectDuplicates=!!E,P(),k.sortDetached=r(function(t){return 1&t.compareDocumentPosition(F.createElement("div"))}),r(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||a("type|href|height|width",function(t,e,i){if(!i)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),k.attributes&&r(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||a("value",function(t,e,i){if(!i&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),r(function(t){return null==t.getAttribute("disabled")})||a(et,function(t,e,i){var n;if(!i)return t[e]===!0?e.toLowerCase():(n=t.getAttributeNode(e))&&n.specified?n.value:null}),e}(t);at.find=ut,at.expr=ut.selectors,at.expr[":"]=at.expr.pseudos,at.uniqueSort=at.unique=ut.uniqueSort,at.text=ut.getText,at.isXMLDoc=ut.isXML,at.contains=ut.contains;var ht=function(t,e,i){for(var n=[],r=void 0!==i;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&at(t).is(i))break;n.push(t)}return n},dt=function(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i},pt=at.expr.match.needsContext,ft=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,mt=/^.[^:#\[\.,]*$/;at.filter=function(t,e,i){var n=e[0];return i&&(t=":not("+t+")"),1===e.length&&1===n.nodeType?at.find.matchesSelector(n,t)?[n]:[]:at.find.matches(t,at.grep(e,function(t){return 1===t.nodeType}))},at.fn.extend({find:function(t){var e,i=this.length,n=[],r=this;if("string"!=typeof t)return this.pushStack(at(t).filter(function(){for(e=0;e<i;e++)if(at.contains(r[e],this))return!0}));for(e=0;e<i;e++)at.find(t,r[e],n);return n=this.pushStack(i>1?at.unique(n):n),n.selector=this.selector?this.selector+" "+t:t,n},filter:function(t){return this.pushStack(n(this,t||[],!1))},not:function(t){return this.pushStack(n(this,t||[],!0))},is:function(t){return!!n(this,"string"==typeof t&&pt.test(t)?at(t):t||[],!1).length}});var gt,vt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,yt=at.fn.init=function(t,e,i){var n,r;if(!t)return this;if(i=i||gt,"string"==typeof t){if(n="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:vt.exec(t),!n||!n[1]&&e)return!e||e.jquery?(e||i).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof at?e[0]:e,at.merge(this,at.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:X,!0)),ft.test(n[1])&&at.isPlainObject(e))for(n in e)at.isFunction(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}return r=X.getElementById(n[2]),r&&r.parentNode&&(this.length=1,this[0]=r),this.context=X,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):at.isFunction(t)?void 0!==i.ready?i.ready(t):t(at):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),at.makeArray(t,this))};yt.prototype=at.fn,gt=at(X);var bt=/^(?:parents|prev(?:Until|All))/,xt={children:!0,contents:!0,next:!0,prev:!0};at.fn.extend({has:function(t){var e=at(t,this),i=e.length;return this.filter(function(){for(var t=0;t<i;t++)if(at.contains(this,e[t]))return!0})},closest:function(t,e){for(var i,n=0,r=this.length,a=[],o=pt.test(t)||"string"!=typeof t?at(t,e||this.context):0;n<r;n++)for(i=this[n];i&&i!==e;i=i.parentNode)if(i.nodeType<11&&(o?o.index(i)>-1:1===i.nodeType&&at.find.matchesSelector(i,t))){a.push(i);break}return this.pushStack(a.length>1?at.uniqueSort(a):a)},index:function(t){return t?"string"==typeof t?J.call(at(t),this[0]):J.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(at.uniqueSort(at.merge(this.get(),at(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),at.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return ht(t,"parentNode")},parentsUntil:function(t,e,i){return ht(t,"parentNode",i)},next:function(t){return r(t,"nextSibling")},prev:function(t){return r(t,"previousSibling")},nextAll:function(t){return ht(t,"nextSibling")},prevAll:function(t){return ht(t,"previousSibling")},nextUntil:function(t,e,i){return ht(t,"nextSibling",i)},prevUntil:function(t,e,i){return ht(t,"previousSibling",i)},siblings:function(t){return dt((t.parentNode||{}).firstChild,t)},children:function(t){return dt(t.firstChild)},contents:function(t){return t.contentDocument||at.merge([],t.childNodes)}},function(t,e){at.fn[t]=function(i,n){var r=at.map(this,e,i);return"Until"!==t.slice(-5)&&(n=i),n&&"string"==typeof n&&(r=at.filter(n,r)),this.length>1&&(xt[t]||at.uniqueSort(r),bt.test(t)&&r.reverse()),this.pushStack(r)}});var kt=/\S+/g;at.Callbacks=function(t){t="string"==typeof t?a(t):at.extend({},t);var e,i,n,r,o=[],s=[],l=-1,c=function(){for(r=t.once,n=e=!0;s.length;l=-1)for(i=s.shift();++l<o.length;)o[l].apply(i[0],i[1])===!1&&t.stopOnFalse&&(l=o.length,i=!1);t.memory||(i=!1),e=!1,r&&(o=i?[]:"")},u={add:function(){return o&&(i&&!e&&(l=o.length-1,s.push(i)),function e(i){at.each(i,function(i,n){at.isFunction(n)?t.unique&&u.has(n)||o.push(n):n&&n.length&&"string"!==at.type(n)&&e(n)})}(arguments),i&&!e&&c()),this},remove:function(){return at.each(arguments,function(t,e){for(var i;(i=at.inArray(e,o,i))>-1;)o.splice(i,1),i<=l&&l--}),this},has:function(t){return t?at.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return r=s=[],o=i="",this},disabled:function(){return!o},lock:function(){return r=s=[],i||(o=i=""),this},locked:function(){return!!r},fireWith:function(t,i){return r||(i=i||[],i=[t,i.slice?i.slice():i],s.push(i),e||c()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!n}};return u},at.extend({Deferred:function(t){var e=[["resolve","done",at.Callbacks("once memory"),"resolved"],["reject","fail",at.Callbacks("once memory"),"rejected"],["notify","progress",at.Callbacks("memory")]],i="pending",n={state:function(){return i},always:function(){return r.done(arguments).fail(arguments),this},then:function(){var t=arguments;return at.Deferred(function(i){at.each(e,function(e,a){var o=at.isFunction(t[e])&&t[e];r[a[1]](function(){var t=o&&o.apply(this,arguments);t&&at.isFunction(t.promise)?t.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[a[0]+"With"](this===n?i.promise():this,o?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?at.extend(t,n):n}},r={};return n.pipe=n.then,at.each(e,function(t,a){var o=a[2],s=a[3];n[a[1]]=o.add,s&&o.add(function(){i=s},e[1^t][2].disable,e[2][2].lock),r[a[0]]=function(){return r[a[0]+"With"](this===r?n:this,arguments),this},r[a[0]+"With"]=o.fireWith}),n.promise(r),t&&t.call(r,r),r},when:function(t){var e,i,n,r=0,a=K.call(arguments),o=a.length,s=1!==o||t&&at.isFunction(t.promise)?o:0,l=1===s?t:at.Deferred(),c=function(t,i,n){return function(r){i[t]=this,n[t]=arguments.length>1?K.call(arguments):r,n===e?l.notifyWith(i,n):--s||l.resolveWith(i,n)}};if(o>1)for(e=new Array(o),i=new Array(o),n=new Array(o);r<o;r++)a[r]&&at.isFunction(a[r].promise)?a[r].promise().progress(c(r,i,e)).done(c(r,n,a)).fail(l.reject):--s;return s||l.resolveWith(n,a),l.promise()}});var wt;at.fn.ready=function(t){return at.ready.promise().done(t),this},at.extend({isReady:!1,readyWait:1,holdReady:function(t){t?at.readyWait++:at.ready(!0)},ready:function(t){(t===!0?--at.readyWait:at.isReady)||(at.isReady=!0,t!==!0&&--at.readyWait>0||(wt.resolveWith(X,[at]),at.fn.triggerHandler&&(at(X).triggerHandler("ready"),at(X).off("ready"))))}}),at.ready.promise=function(e){return wt||(wt=at.Deferred(),"complete"===X.readyState||"loading"!==X.readyState&&!X.documentElement.doScroll?t.setTimeout(at.ready):(X.addEventListener("DOMContentLoaded",o),t.addEventListener("load",o))),wt.promise(e)},at.ready.promise();var Ct=function(t,e,i,n,r,a,o){var s=0,l=t.length,c=null==i;if("object"===at.type(i)){r=!0;for(s in i)Ct(t,e,s,i[s],!0,a,o)}else if(void 0!==n&&(r=!0,at.isFunction(n)||(o=!0),c&&(o?(e.call(t,n),e=null):(c=e,e=function(t,e,i){return c.call(at(t),i)})),e))for(;s<l;s++)e(t[s],i,o?n:n.call(t[s],s,e(t[s],i)));return r?t:c?e.call(t):l?e(t[0],i):a},_t=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};s.uid=1,s.prototype={register:function(t,e){var i=e||{};return t.nodeType?t[this.expando]=i:Object.defineProperty(t,this.expando,{value:i,writable:!0,configurable:!0}),t[this.expando]},cache:function(t){if(!_t(t))return{};var e=t[this.expando];return e||(e={},_t(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,i){var n,r=this.cache(t);if("string"==typeof e)r[e]=i;else for(n in e)r[n]=e[n];return r},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][e]},access:function(t,e,i){var n;return void 0===e||e&&"string"==typeof e&&void 0===i?(n=this.get(t,e),void 0!==n?n:this.get(t,at.camelCase(e))):(this.set(t,e,i),void 0!==i?i:e)},remove:function(t,e){var i,n,r,a=t[this.expando];if(void 0!==a){if(void 0===e)this.register(t);else{at.isArray(e)?n=e.concat(e.map(at.camelCase)):(r=at.camelCase(e),e in a?n=[e,r]:(n=r,n=n in a?[n]:n.match(kt)||[])),i=n.length;for(;i--;)delete a[n[i]]}(void 0===e||at.isEmptyObject(a))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!at.isEmptyObject(e)}};var $t=new s,Tt=new s,St=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,At=/[A-Z]/g;at.extend({hasData:function(t){return Tt.hasData(t)||$t.hasData(t)},data:function(t,e,i){return Tt.access(t,e,i)},removeData:function(t,e){Tt.remove(t,e)},_data:function(t,e,i){return $t.access(t,e,i)},_removeData:function(t,e){$t.remove(t,e)}}),at.fn.extend({data:function(t,e){var i,n,r,a=this[0],o=a&&a.attributes;if(void 0===t){if(this.length&&(r=Tt.get(a),1===a.nodeType&&!$t.get(a,"hasDataAttrs"))){for(i=o.length;i--;)o[i]&&(n=o[i].name,0===n.indexOf("data-")&&(n=at.camelCase(n.slice(5)),l(a,n,r[n])));$t.set(a,"hasDataAttrs",!0)}return r}return"object"==typeof t?this.each(function(){Tt.set(this,t)}):Ct(this,function(e){var i,n;if(a&&void 0===e){if(i=Tt.get(a,t)||Tt.get(a,t.replace(At,"-$&").toLowerCase()),void 0!==i)return i;if(n=at.camelCase(t),i=Tt.get(a,n),void 0!==i)return i;if(i=l(a,n,void 0),void 0!==i)return i}else n=at.camelCase(t),this.each(function(){var i=Tt.get(this,n);Tt.set(this,n,e),t.indexOf("-")>-1&&void 0!==i&&Tt.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){Tt.remove(this,t)})}}),at.extend({queue:function(t,e,i){var n;if(t)return e=(e||"fx")+"queue",n=$t.get(t,e),i&&(!n||at.isArray(i)?n=$t.access(t,e,at.makeArray(i)):n.push(i)),n||[]},dequeue:function(t,e){e=e||"fx";var i=at.queue(t,e),n=i.length,r=i.shift(),a=at._queueHooks(t,e),o=function(){at.dequeue(t,e)};"inprogress"===r&&(r=i.shift(),n--),r&&("fx"===e&&i.unshift("inprogress"),delete a.stop,r.call(t,o,a)),!n&&a&&a.empty.fire()},_queueHooks:function(t,e){var i=e+"queueHooks";return $t.get(t,i)||$t.access(t,i,{empty:at.Callbacks("once memory").add(function(){$t.remove(t,[e+"queue",i])})})}}),at.fn.extend({queue:function(t,e){var i=2;return"string"!=typeof t&&(e=t,t="fx",i--),arguments.length<i?at.queue(this[0],t):void 0===e?this:this.each(function(){var i=at.queue(this,t,e);at._queueHooks(this,t),"fx"===t&&"inprogress"!==i[0]&&at.dequeue(this,t)})},dequeue:function(t){return this.each(function(){at.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var i,n=1,r=at.Deferred(),a=this,o=this.length,s=function(){--n||r.resolveWith(a,[a])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";o--;)i=$t.get(a[o],t+"queueHooks"),i&&i.empty&&(n++,i.empty.add(s));return s(),r.promise(e)}});var jt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Et=new RegExp("^(?:([+-])=|)("+jt+")([a-z%]*)$","i"),Pt=["Top","Right","Bottom","Left"],Ft=function(t,e){return t=e||t,"none"===at.css(t,"display")||!at.contains(t.ownerDocument,t)},Dt=/^(?:checkbox|radio)$/i,Mt=/<([\w:-]+)/,Lt=/^$|\/(?:java|ecma)script/i,Nt={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Nt.optgroup=Nt.option,Nt.tbody=Nt.tfoot=Nt.colgroup=Nt.caption=Nt.thead,Nt.th=Nt.td;var Ot=/<|&#?\w+;/;!function(){var t=X.createDocumentFragment(),e=t.appendChild(X.createElement("div")),i=X.createElement("input");i.setAttribute("type","radio"),i.setAttribute("checked","checked"),i.setAttribute("name","t"),e.appendChild(i),nt.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",nt.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var It=/^key/,Rt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,zt=/^([^.]*)(?:\.(.+)|)/;at.event={global:{},add:function(t,e,i,n,r){var a,o,s,l,c,u,h,d,p,f,m,g=$t.get(t);if(g)for(i.handler&&(a=i,i=a.handler,r=a.selector),i.guid||(i.guid=at.guid++),(l=g.events)||(l=g.events={}),(o=g.handle)||(o=g.handle=function(e){return"undefined"!=typeof at&&at.event.triggered!==e.type?at.event.dispatch.apply(t,arguments):void 0}),e=(e||"").match(kt)||[""],c=e.length;c--;)s=zt.exec(e[c])||[],p=m=s[1],f=(s[2]||"").split(".").sort(),p&&(h=at.event.special[p]||{},p=(r?h.delegateType:h.bindType)||p,h=at.event.special[p]||{},u=at.extend({type:p,origType:m,data:n,handler:i,guid:i.guid,selector:r,needsContext:r&&at.expr.match.needsContext.test(r),namespace:f.join(".")},a),(d=l[p])||(d=l[p]=[],d.delegateCount=0,h.setup&&h.setup.call(t,n,f,o)!==!1||t.addEventListener&&t.addEventListener(p,o)),h.add&&(h.add.call(t,u),u.handler.guid||(u.handler.guid=i.guid)),r?d.splice(d.delegateCount++,0,u):d.push(u),at.event.global[p]=!0)},remove:function(t,e,i,n,r){var a,o,s,l,c,u,h,d,p,f,m,g=$t.hasData(t)&&$t.get(t);if(g&&(l=g.events)){for(e=(e||"").match(kt)||[""],c=e.length;c--;)if(s=zt.exec(e[c])||[],p=m=s[1],f=(s[2]||"").split(".").sort(),p){for(h=at.event.special[p]||{},p=(n?h.delegateType:h.bindType)||p,d=l[p]||[],s=s[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=a=d.length;a--;)u=d[a],!r&&m!==u.origType||i&&i.guid!==u.guid||s&&!s.test(u.namespace)||n&&n!==u.selector&&("**"!==n||!u.selector)||(d.splice(a,1),u.selector&&d.delegateCount--,h.remove&&h.remove.call(t,u));o&&!d.length&&(h.teardown&&h.teardown.call(t,f,g.handle)!==!1||at.removeEvent(t,p,g.handle),delete l[p])}else for(p in l)at.event.remove(t,p+e[c],i,n,!0);at.isEmptyObject(l)&&$t.remove(t,"handle events")}},dispatch:function(t){t=at.event.fix(t);var e,i,n,r,a,o=[],s=K.call(arguments),l=($t.get(this,"events")||{})[t.type]||[],c=at.event.special[t.type]||{};if(s[0]=t,t.delegateTarget=this,!c.preDispatch||c.preDispatch.call(this,t)!==!1){for(o=at.event.handlers.call(this,t,l),e=0;(r=o[e++])&&!t.isPropagationStopped();)for(t.currentTarget=r.elem,i=0;(a=r.handlers[i++])&&!t.isImmediatePropagationStopped();)t.rnamespace&&!t.rnamespace.test(a.namespace)||(t.handleObj=a,t.data=a.data,n=((at.event.special[a.origType]||{}).handle||a.handler).apply(r.elem,s),void 0!==n&&(t.result=n)===!1&&(t.preventDefault(),t.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,t),t.result}},handlers:function(t,e){var i,n,r,a,o=[],s=e.delegateCount,l=t.target;if(s&&l.nodeType&&("click"!==t.type||isNaN(t.button)||t.button<1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&(l.disabled!==!0||"click"!==t.type)){for(n=[],i=0;i<s;i++)a=e[i],r=a.selector+" ",void 0===n[r]&&(n[r]=a.needsContext?at(r,this).index(l)>-1:at.find(r,this,null,[l]).length),n[r]&&n.push(a);n.length&&o.push({elem:l,handlers:n})}return s<e.length&&o.push({elem:this,handlers:e.slice(s)}),o},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,e){var i,n,r,a=e.button;return null==t.pageX&&null!=e.clientX&&(i=t.target.ownerDocument||X,n=i.documentElement,r=i.body,t.pageX=e.clientX+(n&&n.scrollLeft||r&&r.scrollLeft||0)-(n&&n.clientLeft||r&&r.clientLeft||0),t.pageY=e.clientY+(n&&n.scrollTop||r&&r.scrollTop||0)-(n&&n.clientTop||r&&r.clientTop||0)),t.which||void 0===a||(t.which=1&a?1:2&a?3:4&a?2:0),t}},fix:function(t){if(t[at.expando])return t;var e,i,n,r=t.type,a=t,o=this.fixHooks[r];for(o||(this.fixHooks[r]=o=Rt.test(r)?this.mouseHooks:It.test(r)?this.keyHooks:{}),n=o.props?this.props.concat(o.props):this.props,t=new at.Event(a),e=n.length;e--;)i=n[e],t[i]=a[i];return t.target||(t.target=X),3===t.target.nodeType&&(t.target=t.target.parentNode),o.filter?o.filter(t,a):t},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==m()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===m()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&at.nodeName(this,"input"))return this.click(),!1},_default:function(t){return at.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},at.removeEvent=function(t,e,i){t.removeEventListener&&t.removeEventListener(e,i)},at.Event=function(t,e){return this instanceof at.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&t.returnValue===!1?p:f):this.type=t,e&&at.extend(this,e),this.timeStamp=t&&t.timeStamp||at.now(),void(this[at.expando]=!0)):new at.Event(t,e)},at.Event.prototype={constructor:at.Event,isDefaultPrevented:f,isPropagationStopped:f,isImmediatePropagationStopped:f,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=p,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=p,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=p,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},at.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){at.event.special[t]={delegateType:e,bindType:e,handle:function(t){var i,n=this,r=t.relatedTarget,a=t.handleObj;return r&&(r===n||at.contains(n,r))||(t.type=a.origType,i=a.handler.apply(this,arguments),t.type=e),i}}}),at.fn.extend({on:function(t,e,i,n){return g(this,t,e,i,n)},one:function(t,e,i,n){return g(this,t,e,i,n,1)},off:function(t,e,i){var n,r;if(t&&t.preventDefault&&t.handleObj)return n=t.handleObj,at(t.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"==typeof t){for(r in t)this.off(r,e,t[r]);return this}return e!==!1&&"function"!=typeof e||(i=e,e=void 0),i===!1&&(i=f),this.each(function(){at.event.remove(this,t,i,e)})}});var Ht=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,Bt=/<script|<style|<link/i,qt=/checked\s*(?:[^=]|=\s*.checked.)/i,Wt=/^true\/(.*)/,Vt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;at.extend({htmlPrefilter:function(t){return t.replace(Ht,"<$1></$2>")},clone:function(t,e,i){var n,r,a,o,s=t.cloneNode(!0),l=at.contains(t.ownerDocument,t);if(!(nt.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||at.isXMLDoc(t)))for(o=u(s),a=u(t),n=0,r=a.length;n<r;n++)k(a[n],o[n]);if(e)if(i)for(a=a||u(t),o=o||u(s),n=0,r=a.length;n<r;n++)x(a[n],o[n]);else x(t,s);return o=u(s,"script"),o.length>0&&h(o,!l&&u(t,"script")),s},cleanData:function(t){for(var e,i,n,r=at.event.special,a=0;void 0!==(i=t[a]);a++)if(_t(i)){if(e=i[$t.expando]){if(e.events)for(n in e.events)r[n]?at.event.remove(i,n):at.removeEvent(i,n,e.handle);i[$t.expando]=void 0}i[Tt.expando]&&(i[Tt.expando]=void 0)}}}),at.fn.extend({domManip:w,detach:function(t){return C(this,t,!0)},remove:function(t){return C(this,t)},text:function(t){return Ct(this,function(t){return void 0===t?at.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return w(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=v(this,t);e.appendChild(t)}})},prepend:function(){return w(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=v(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return w(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return w(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(at.cleanData(u(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return at.clone(this,t,e)})},html:function(t){return Ct(this,function(t){var e=this[0]||{},i=0,n=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Bt.test(t)&&!Nt[(Mt.exec(t)||["",""])[1].toLowerCase()]){t=at.htmlPrefilter(t);try{for(;i<n;i++)e=this[i]||{},1===e.nodeType&&(at.cleanData(u(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[];return w(this,arguments,function(e){var i=this.parentNode;at.inArray(this,t)<0&&(at.cleanData(u(this)),i&&i.replaceChild(e,this))},t)}}),at.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){at.fn[t]=function(t){for(var i,n=[],r=at(t),a=r.length-1,o=0;o<=a;o++)i=o===a?this:this.clone(!0),at(r[o])[e](i),Z.apply(n,i.get());return this.pushStack(n)}});var Gt,Qt={HTML:"block",BODY:"block"},Ut=/^margin/,Xt=new RegExp("^("+jt+")(?!px)[a-z%]+$","i"),Kt=function(e){var i=e.ownerDocument.defaultView;return i&&i.opener||(i=t),i.getComputedStyle(e)},Yt=function(t,e,i,n){var r,a,o={};for(a in e)o[a]=t.style[a],t.style[a]=e[a];r=i.apply(t,n||[]);for(a in e)t.style[a]=o[a];return r},Zt=X.documentElement;!function(){function e(){s.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",s.innerHTML="",Zt.appendChild(o);var e=t.getComputedStyle(s);i="1%"!==e.top,a="2px"===e.marginLeft,n="4px"===e.width,s.style.marginRight="50%",r="4px"===e.marginRight,Zt.removeChild(o)}var i,n,r,a,o=X.createElement("div"),s=X.createElement("div");s.style&&(s.style.backgroundClip="content-box",s.cloneNode(!0).style.backgroundClip="",nt.clearCloneStyle="content-box"===s.style.backgroundClip,o.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",o.appendChild(s),at.extend(nt,{pixelPosition:function(){return e(),i},boxSizingReliable:function(){return null==n&&e(),n},pixelMarginRight:function(){return null==n&&e(),r},reliableMarginLeft:function(){return null==n&&e(),a},reliableMarginRight:function(){var e,i=s.appendChild(X.createElement("div"));return i.style.cssText=s.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",i.style.marginRight=i.style.width="0",s.style.width="1px",Zt.appendChild(o),e=!parseFloat(t.getComputedStyle(i).marginRight),Zt.removeChild(o),s.removeChild(i),e}}))}();var Jt=/^(none|table(?!-c[ea]).+)/,te={position:"absolute",visibility:"hidden",display:"block"},ee={letterSpacing:"0",fontWeight:"400"},ie=["Webkit","O","Moz","ms"],ne=X.createElement("div").style;at.extend({cssHooks:{opacity:{get:function(t,e){if(e){var i=T(t,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(t,e,i,n){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,a,o,s=at.camelCase(e),l=t.style;return e=at.cssProps[s]||(at.cssProps[s]=A(s)||s),o=at.cssHooks[e]||at.cssHooks[s],void 0===i?o&&"get"in o&&void 0!==(r=o.get(t,!1,n))?r:l[e]:(a=typeof i,"string"===a&&(r=Et.exec(i))&&r[1]&&(i=c(t,e,r),a="number"),null!=i&&i===i&&("number"===a&&(i+=r&&r[3]||(at.cssNumber[s]?"":"px")),nt.clearCloneStyle||""!==i||0!==e.indexOf("background")||(l[e]="inherit"),o&&"set"in o&&void 0===(i=o.set(t,i,n))||(l[e]=i)),void 0)}},css:function(t,e,i,n){var r,a,o,s=at.camelCase(e);return e=at.cssProps[s]||(at.cssProps[s]=A(s)||s),o=at.cssHooks[e]||at.cssHooks[s],o&&"get"in o&&(r=o.get(t,!0,i)),void 0===r&&(r=T(t,e,n)),"normal"===r&&e in ee&&(r=ee[e]),""===i||i?(a=parseFloat(r),i===!0||isFinite(a)?a||0:r):r}}),at.each(["height","width"],function(t,e){at.cssHooks[e]={get:function(t,i,n){if(i)return Jt.test(at.css(t,"display"))&&0===t.offsetWidth?Yt(t,te,function(){return P(t,e,n)}):P(t,e,n)},set:function(t,i,n){var r,a=n&&Kt(t),o=n&&E(t,e,n,"border-box"===at.css(t,"boxSizing",!1,a),a);return o&&(r=Et.exec(i))&&"px"!==(r[3]||"px")&&(t.style[e]=i,i=at.css(t,e)),j(t,i,o)}}}),at.cssHooks.marginLeft=S(nt.reliableMarginLeft,function(t,e){if(e)return(parseFloat(T(t,"marginLeft"))||t.getBoundingClientRect().left-Yt(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),at.cssHooks.marginRight=S(nt.reliableMarginRight,function(t,e){if(e)return Yt(t,{display:"inline-block"},T,[t,"marginRight"])}),at.each({margin:"",padding:"",border:"Width"},function(t,e){at.cssHooks[t+e]={expand:function(i){for(var n=0,r={},a="string"==typeof i?i.split(" "):[i];n<4;n++)r[t+Pt[n]+e]=a[n]||a[n-2]||a[0];return r}},Ut.test(t)||(at.cssHooks[t+e].set=j)}),at.fn.extend({css:function(t,e){return Ct(this,function(t,e,i){var n,r,a={},o=0;if(at.isArray(e)){for(n=Kt(t),r=e.length;o<r;o++)a[e[o]]=at.css(t,e[o],!1,n);return a}return void 0!==i?at.style(t,e,i):at.css(t,e)},t,e,arguments.length>1)},show:function(){return F(this,!0)},hide:function(){return F(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){Ft(this)?at(this).show():at(this).hide()})}}),at.Tween=D,D.prototype={constructor:D,init:function(t,e,i,n,r,a){this.elem=t,this.prop=i,this.easing=r||at.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=n,this.unit=a||(at.cssNumber[i]?"":"px")},cur:function(){var t=D.propHooks[this.prop];return t&&t.get?t.get(this):D.propHooks._default.get(this)},run:function(t){var e,i=D.propHooks[this.prop];return this.options.duration?this.pos=e=at.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):D.propHooks._default.set(this),this}},D.prototype.init.prototype=D.prototype,D.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=at.css(t.elem,t.prop,""),e&&"auto"!==e?e:0)},set:function(t){at.fx.step[t.prop]?at.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[at.cssProps[t.prop]]&&!at.cssHooks[t.prop]?t.elem[t.prop]=t.now:at.style(t.elem,t.prop,t.now+t.unit)}}},D.propHooks.scrollTop=D.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},at.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},at.fx=D.prototype.init,at.fx.step={};var re,ae,oe=/^(?:toggle|show|hide)$/,se=/queueHooks$/;at.Animation=at.extend(R,{tweeners:{"*":[function(t,e){var i=this.createTween(t,e);return c(i.elem,t,Et.exec(e),i),i}]},tweener:function(t,e){at.isFunction(t)?(e=t,t=["*"]):t=t.match(kt);for(var i,n=0,r=t.length;n<r;n++)i=t[n],R.tweeners[i]=R.tweeners[i]||[],R.tweeners[i].unshift(e)},prefilters:[O],prefilter:function(t,e){e?R.prefilters.unshift(t):R.prefilters.push(t)}}),at.speed=function(t,e,i){var n=t&&"object"==typeof t?at.extend({},t):{complete:i||!i&&e||at.isFunction(t)&&t,duration:t,easing:i&&e||e&&!at.isFunction(e)&&e};return n.duration=at.fx.off?0:"number"==typeof n.duration?n.duration:n.duration in at.fx.speeds?at.fx.speeds[n.duration]:at.fx.speeds._default,null!=n.queue&&n.queue!==!0||(n.queue="fx"),n.old=n.complete,n.complete=function(){at.isFunction(n.old)&&n.old.call(this),n.queue&&at.dequeue(this,n.queue)},n},at.fn.extend({fadeTo:function(t,e,i,n){return this.filter(Ft).css("opacity",0).show().end().animate({opacity:e},t,i,n)},animate:function(t,e,i,n){var r=at.isEmptyObject(t),a=at.speed(e,i,n),o=function(){var e=R(this,at.extend({},t),a);(r||$t.get(this,"finish"))&&e.stop(!0)};return o.finish=o,r||a.queue===!1?this.each(o):this.queue(a.queue,o);
  },stop:function(t,e,i){var n=function(t){var e=t.stop;delete t.stop,e(i)};return"string"!=typeof t&&(i=e,e=t,t=void 0),e&&t!==!1&&this.queue(t||"fx",[]),this.each(function(){var e=!0,r=null!=t&&t+"queueHooks",a=at.timers,o=$t.get(this);if(r)o[r]&&o[r].stop&&n(o[r]);else for(r in o)o[r]&&o[r].stop&&se.test(r)&&n(o[r]);for(r=a.length;r--;)a[r].elem!==this||null!=t&&a[r].queue!==t||(a[r].anim.stop(i),e=!1,a.splice(r,1));!e&&i||at.dequeue(this,t)})},finish:function(t){return t!==!1&&(t=t||"fx"),this.each(function(){var e,i=$t.get(this),n=i[t+"queue"],r=i[t+"queueHooks"],a=at.timers,o=n?n.length:0;for(i.finish=!0,at.queue(this,t,[]),r&&r.stop&&r.stop.call(this,!0),e=a.length;e--;)a[e].elem===this&&a[e].queue===t&&(a[e].anim.stop(!0),a.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete i.finish})}}),at.each(["toggle","show","hide"],function(t,e){var i=at.fn[e];at.fn[e]=function(t,n,r){return null==t||"boolean"==typeof t?i.apply(this,arguments):this.animate(L(e,!0),t,n,r)}}),at.each({slideDown:L("show"),slideUp:L("hide"),slideToggle:L("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){at.fn[t]=function(t,i,n){return this.animate(e,t,i,n)}}),at.timers=[],at.fx.tick=function(){var t,e=0,i=at.timers;for(re=at.now();e<i.length;e++)t=i[e],t()||i[e]!==t||i.splice(e--,1);i.length||at.fx.stop(),re=void 0},at.fx.timer=function(t){at.timers.push(t),t()?at.fx.start():at.timers.pop()},at.fx.interval=13,at.fx.start=function(){ae||(ae=t.setInterval(at.fx.tick,at.fx.interval))},at.fx.stop=function(){t.clearInterval(ae),ae=null},at.fx.speeds={slow:600,fast:200,_default:400},at.fn.delay=function(e,i){return e=at.fx?at.fx.speeds[e]||e:e,i=i||"fx",this.queue(i,function(i,n){var r=t.setTimeout(i,e);n.stop=function(){t.clearTimeout(r)}})},function(){var t=X.createElement("input"),e=X.createElement("select"),i=e.appendChild(X.createElement("option"));t.type="checkbox",nt.checkOn=""!==t.value,nt.optSelected=i.selected,e.disabled=!0,nt.optDisabled=!i.disabled,t=X.createElement("input"),t.value="t",t.type="radio",nt.radioValue="t"===t.value}();var le,ce=at.expr.attrHandle;at.fn.extend({attr:function(t,e){return Ct(this,at.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){at.removeAttr(this,t)})}}),at.extend({attr:function(t,e,i){var n,r,a=t.nodeType;if(3!==a&&8!==a&&2!==a)return"undefined"==typeof t.getAttribute?at.prop(t,e,i):(1===a&&at.isXMLDoc(t)||(e=e.toLowerCase(),r=at.attrHooks[e]||(at.expr.match.bool.test(e)?le:void 0)),void 0!==i?null===i?void at.removeAttr(t,e):r&&"set"in r&&void 0!==(n=r.set(t,i,e))?n:(t.setAttribute(e,i+""),i):r&&"get"in r&&null!==(n=r.get(t,e))?n:(n=at.find.attr(t,e),null==n?void 0:n))},attrHooks:{type:{set:function(t,e){if(!nt.radioValue&&"radio"===e&&at.nodeName(t,"input")){var i=t.value;return t.setAttribute("type",e),i&&(t.value=i),e}}}},removeAttr:function(t,e){var i,n,r=0,a=e&&e.match(kt);if(a&&1===t.nodeType)for(;i=a[r++];)n=at.propFix[i]||i,at.expr.match.bool.test(i)&&(t[n]=!1),t.removeAttribute(i)}}),le={set:function(t,e,i){return e===!1?at.removeAttr(t,i):t.setAttribute(i,i),i}},at.each(at.expr.match.bool.source.match(/\w+/g),function(t,e){var i=ce[e]||at.find.attr;ce[e]=function(t,e,n){var r,a;return n||(a=ce[e],ce[e]=r,r=null!=i(t,e,n)?e.toLowerCase():null,ce[e]=a),r}});var ue=/^(?:input|select|textarea|button)$/i,he=/^(?:a|area)$/i;at.fn.extend({prop:function(t,e){return Ct(this,at.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[at.propFix[t]||t]})}}),at.extend({prop:function(t,e,i){var n,r,a=t.nodeType;if(3!==a&&8!==a&&2!==a)return 1===a&&at.isXMLDoc(t)||(e=at.propFix[e]||e,r=at.propHooks[e]),void 0!==i?r&&"set"in r&&void 0!==(n=r.set(t,i,e))?n:t[e]=i:r&&"get"in r&&null!==(n=r.get(t,e))?n:t[e]},propHooks:{tabIndex:{get:function(t){var e=at.find.attr(t,"tabindex");return e?parseInt(e,10):ue.test(t.nodeName)||he.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),nt.optSelected||(at.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),at.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){at.propFix[this.toLowerCase()]=this});var de=/[\t\r\n\f]/g;at.fn.extend({addClass:function(t){var e,i,n,r,a,o,s,l=0;if(at.isFunction(t))return this.each(function(e){at(this).addClass(t.call(this,e,z(this)))});if("string"==typeof t&&t)for(e=t.match(kt)||[];i=this[l++];)if(r=z(i),n=1===i.nodeType&&(" "+r+" ").replace(de," ")){for(o=0;a=e[o++];)n.indexOf(" "+a+" ")<0&&(n+=a+" ");s=at.trim(n),r!==s&&i.setAttribute("class",s)}return this},removeClass:function(t){var e,i,n,r,a,o,s,l=0;if(at.isFunction(t))return this.each(function(e){at(this).removeClass(t.call(this,e,z(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof t&&t)for(e=t.match(kt)||[];i=this[l++];)if(r=z(i),n=1===i.nodeType&&(" "+r+" ").replace(de," ")){for(o=0;a=e[o++];)for(;n.indexOf(" "+a+" ")>-1;)n=n.replace(" "+a+" "," ");s=at.trim(n),r!==s&&i.setAttribute("class",s)}return this},toggleClass:function(t,e){var i=typeof t;return"boolean"==typeof e&&"string"===i?e?this.addClass(t):this.removeClass(t):at.isFunction(t)?this.each(function(i){at(this).toggleClass(t.call(this,i,z(this),e),e)}):this.each(function(){var e,n,r,a;if("string"===i)for(n=0,r=at(this),a=t.match(kt)||[];e=a[n++];)r.hasClass(e)?r.removeClass(e):r.addClass(e);else void 0!==t&&"boolean"!==i||(e=z(this),e&&$t.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||t===!1?"":$t.get(this,"__className__")||""))})},hasClass:function(t){var e,i,n=0;for(e=" "+t+" ";i=this[n++];)if(1===i.nodeType&&(" "+z(i)+" ").replace(de," ").indexOf(e)>-1)return!0;return!1}});var pe=/\r/g,fe=/[\x20\t\r\n\f]+/g;at.fn.extend({val:function(t){var e,i,n,r=this[0];{if(arguments.length)return n=at.isFunction(t),this.each(function(i){var r;1===this.nodeType&&(r=n?t.call(this,i,at(this).val()):t,null==r?r="":"number"==typeof r?r+="":at.isArray(r)&&(r=at.map(r,function(t){return null==t?"":t+""})),e=at.valHooks[this.type]||at.valHooks[this.nodeName.toLowerCase()],e&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))});if(r)return e=at.valHooks[r.type]||at.valHooks[r.nodeName.toLowerCase()],e&&"get"in e&&void 0!==(i=e.get(r,"value"))?i:(i=r.value,"string"==typeof i?i.replace(pe,""):null==i?"":i)}}}),at.extend({valHooks:{option:{get:function(t){var e=at.find.attr(t,"value");return null!=e?e:at.trim(at.text(t)).replace(fe," ")}},select:{get:function(t){for(var e,i,n=t.options,r=t.selectedIndex,a="select-one"===t.type||r<0,o=a?null:[],s=a?r+1:n.length,l=r<0?s:a?r:0;l<s;l++)if(i=n[l],(i.selected||l===r)&&(nt.optDisabled?!i.disabled:null===i.getAttribute("disabled"))&&(!i.parentNode.disabled||!at.nodeName(i.parentNode,"optgroup"))){if(e=at(i).val(),a)return e;o.push(e)}return o},set:function(t,e){for(var i,n,r=t.options,a=at.makeArray(e),o=r.length;o--;)n=r[o],(n.selected=at.inArray(at.valHooks.option.get(n),a)>-1)&&(i=!0);return i||(t.selectedIndex=-1),a}}}}),at.each(["radio","checkbox"],function(){at.valHooks[this]={set:function(t,e){if(at.isArray(e))return t.checked=at.inArray(at(t).val(),e)>-1}},nt.checkOn||(at.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var me=/^(?:focusinfocus|focusoutblur)$/;at.extend(at.event,{trigger:function(e,i,n,r){var a,o,s,l,c,u,h,d=[n||X],p=it.call(e,"type")?e.type:e,f=it.call(e,"namespace")?e.namespace.split("."):[];if(o=s=n=n||X,3!==n.nodeType&&8!==n.nodeType&&!me.test(p+at.event.triggered)&&(p.indexOf(".")>-1&&(f=p.split("."),p=f.shift(),f.sort()),c=p.indexOf(":")<0&&"on"+p,e=e[at.expando]?e:new at.Event(p,"object"==typeof e&&e),e.isTrigger=r?2:3,e.namespace=f.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),i=null==i?[e]:at.makeArray(i,[e]),h=at.event.special[p]||{},r||!h.trigger||h.trigger.apply(n,i)!==!1)){if(!r&&!h.noBubble&&!at.isWindow(n)){for(l=h.delegateType||p,me.test(l+p)||(o=o.parentNode);o;o=o.parentNode)d.push(o),s=o;s===(n.ownerDocument||X)&&d.push(s.defaultView||s.parentWindow||t)}for(a=0;(o=d[a++])&&!e.isPropagationStopped();)e.type=a>1?l:h.bindType||p,u=($t.get(o,"events")||{})[e.type]&&$t.get(o,"handle"),u&&u.apply(o,i),u=c&&o[c],u&&u.apply&&_t(o)&&(e.result=u.apply(o,i),e.result===!1&&e.preventDefault());return e.type=p,r||e.isDefaultPrevented()||h._default&&h._default.apply(d.pop(),i)!==!1||!_t(n)||c&&at.isFunction(n[p])&&!at.isWindow(n)&&(s=n[c],s&&(n[c]=null),at.event.triggered=p,n[p](),at.event.triggered=void 0,s&&(n[c]=s)),e.result}},simulate:function(t,e,i){var n=at.extend(new at.Event,i,{type:t,isSimulated:!0});at.event.trigger(n,null,e)}}),at.fn.extend({trigger:function(t,e){return this.each(function(){at.event.trigger(t,e,this)})},triggerHandler:function(t,e){var i=this[0];if(i)return at.event.trigger(t,e,i,!0)}}),at.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(t,e){at.fn[e]=function(t,i){return arguments.length>0?this.on(e,null,t,i):this.trigger(e)}}),at.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),nt.focusin="onfocusin"in t,nt.focusin||at.each({focus:"focusin",blur:"focusout"},function(t,e){var i=function(t){at.event.simulate(e,t.target,at.event.fix(t))};at.event.special[e]={setup:function(){var n=this.ownerDocument||this,r=$t.access(n,e);r||n.addEventListener(t,i,!0),$t.access(n,e,(r||0)+1)},teardown:function(){var n=this.ownerDocument||this,r=$t.access(n,e)-1;r?$t.access(n,e,r):(n.removeEventListener(t,i,!0),$t.remove(n,e))}}});var ge=t.location,ve=at.now(),ye=/\?/;at.parseJSON=function(t){return JSON.parse(t+"")},at.parseXML=function(e){var i;if(!e||"string"!=typeof e)return null;try{i=(new t.DOMParser).parseFromString(e,"text/xml")}catch(t){i=void 0}return i&&!i.getElementsByTagName("parsererror").length||at.error("Invalid XML: "+e),i};var be=/#.*$/,xe=/([?&])_=[^&]*/,ke=/^(.*?):[ \t]*([^\r\n]*)$/gm,we=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Ce=/^(?:GET|HEAD)$/,_e=/^\/\//,$e={},Te={},Se="*/".concat("*"),Ae=X.createElement("a");Ae.href=ge.href,at.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ge.href,type:"GET",isLocal:we.test(ge.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Se,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":at.parseJSON,"text xml":at.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?q(q(t,at.ajaxSettings),e):q(at.ajaxSettings,t)},ajaxPrefilter:H($e),ajaxTransport:H(Te),ajax:function(e,i){function n(e,i,n,s){var c,h,y,b,k,C=i;2!==x&&(x=2,l&&t.clearTimeout(l),r=void 0,o=s||"",w.readyState=e>0?4:0,c=e>=200&&e<300||304===e,n&&(b=W(d,w,n)),b=V(d,b,w,c),c?(d.ifModified&&(k=w.getResponseHeader("Last-Modified"),k&&(at.lastModified[a]=k),k=w.getResponseHeader("etag"),k&&(at.etag[a]=k)),204===e||"HEAD"===d.type?C="nocontent":304===e?C="notmodified":(C=b.state,h=b.data,y=b.error,c=!y)):(y=C,!e&&C||(C="error",e<0&&(e=0))),w.status=e,w.statusText=(i||C)+"",c?m.resolveWith(p,[h,C,w]):m.rejectWith(p,[w,C,y]),w.statusCode(v),v=void 0,u&&f.trigger(c?"ajaxSuccess":"ajaxError",[w,d,c?h:y]),g.fireWith(p,[w,C]),u&&(f.trigger("ajaxComplete",[w,d]),--at.active||at.event.trigger("ajaxStop")))}"object"==typeof e&&(i=e,e=void 0),i=i||{};var r,a,o,s,l,c,u,h,d=at.ajaxSetup({},i),p=d.context||d,f=d.context&&(p.nodeType||p.jquery)?at(p):at.event,m=at.Deferred(),g=at.Callbacks("once memory"),v=d.statusCode||{},y={},b={},x=0,k="canceled",w={readyState:0,getResponseHeader:function(t){var e;if(2===x){if(!s)for(s={};e=ke.exec(o);)s[e[1].toLowerCase()]=e[2];e=s[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===x?o:null},setRequestHeader:function(t,e){var i=t.toLowerCase();return x||(t=b[i]=b[i]||t,y[t]=e),this},overrideMimeType:function(t){return x||(d.mimeType=t),this},statusCode:function(t){var e;if(t)if(x<2)for(e in t)v[e]=[v[e],t[e]];else w.always(t[w.status]);return this},abort:function(t){var e=t||k;return r&&r.abort(e),n(0,e),this}};if(m.promise(w).complete=g.add,w.success=w.done,w.error=w.fail,d.url=((e||d.url||ge.href)+"").replace(be,"").replace(_e,ge.protocol+"//"),d.type=i.method||i.type||d.method||d.type,d.dataTypes=at.trim(d.dataType||"*").toLowerCase().match(kt)||[""],null==d.crossDomain){c=X.createElement("a");try{c.href=d.url,c.href=c.href,d.crossDomain=Ae.protocol+"//"+Ae.host!=c.protocol+"//"+c.host}catch(t){d.crossDomain=!0}}if(d.data&&d.processData&&"string"!=typeof d.data&&(d.data=at.param(d.data,d.traditional)),B($e,d,i,w),2===x)return w;u=at.event&&d.global,u&&0===at.active++&&at.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!Ce.test(d.type),a=d.url,d.hasContent||(d.data&&(a=d.url+=(ye.test(a)?"&":"?")+d.data,delete d.data),d.cache===!1&&(d.url=xe.test(a)?a.replace(xe,"$1_="+ve++):a+(ye.test(a)?"&":"?")+"_="+ve++)),d.ifModified&&(at.lastModified[a]&&w.setRequestHeader("If-Modified-Since",at.lastModified[a]),at.etag[a]&&w.setRequestHeader("If-None-Match",at.etag[a])),(d.data&&d.hasContent&&d.contentType!==!1||i.contentType)&&w.setRequestHeader("Content-Type",d.contentType),w.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+Se+"; q=0.01":""):d.accepts["*"]);for(h in d.headers)w.setRequestHeader(h,d.headers[h]);if(d.beforeSend&&(d.beforeSend.call(p,w,d)===!1||2===x))return w.abort();k="abort";for(h in{success:1,error:1,complete:1})w[h](d[h]);if(r=B(Te,d,i,w)){if(w.readyState=1,u&&f.trigger("ajaxSend",[w,d]),2===x)return w;d.async&&d.timeout>0&&(l=t.setTimeout(function(){w.abort("timeout")},d.timeout));try{x=1,r.send(y,n)}catch(t){if(!(x<2))throw t;n(-1,t)}}else n(-1,"No Transport");return w},getJSON:function(t,e,i){return at.get(t,e,i,"json")},getScript:function(t,e){return at.get(t,void 0,e,"script")}}),at.each(["get","post"],function(t,e){at[e]=function(t,i,n,r){return at.isFunction(i)&&(r=r||n,n=i,i=void 0),at.ajax(at.extend({url:t,type:e,dataType:r,data:i,success:n},at.isPlainObject(t)&&t))}}),at._evalUrl=function(t){return at.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},at.fn.extend({wrapAll:function(t){var e;return at.isFunction(t)?this.each(function(e){at(this).wrapAll(t.call(this,e))}):(this[0]&&(e=at(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this)},wrapInner:function(t){return at.isFunction(t)?this.each(function(e){at(this).wrapInner(t.call(this,e))}):this.each(function(){var e=at(this),i=e.contents();i.length?i.wrapAll(t):e.append(t)})},wrap:function(t){var e=at.isFunction(t);return this.each(function(i){at(this).wrapAll(e?t.call(this,i):t)})},unwrap:function(){return this.parent().each(function(){at.nodeName(this,"body")||at(this).replaceWith(this.childNodes)}).end()}}),at.expr.filters.hidden=function(t){return!at.expr.filters.visible(t)},at.expr.filters.visible=function(t){return t.offsetWidth>0||t.offsetHeight>0||t.getClientRects().length>0};var je=/%20/g,Ee=/\[\]$/,Pe=/\r?\n/g,Fe=/^(?:submit|button|image|reset|file)$/i,De=/^(?:input|select|textarea|keygen)/i;at.param=function(t,e){var i,n=[],r=function(t,e){e=at.isFunction(e)?e():null==e?"":e,n[n.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(void 0===e&&(e=at.ajaxSettings&&at.ajaxSettings.traditional),at.isArray(t)||t.jquery&&!at.isPlainObject(t))at.each(t,function(){r(this.name,this.value)});else for(i in t)G(i,t[i],e,r);return n.join("&").replace(je,"+")},at.fn.extend({serialize:function(){return at.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=at.prop(this,"elements");return t?at.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!at(this).is(":disabled")&&De.test(this.nodeName)&&!Fe.test(t)&&(this.checked||!Dt.test(t))}).map(function(t,e){var i=at(this).val();return null==i?null:at.isArray(i)?at.map(i,function(t){return{name:e.name,value:t.replace(Pe,"\r\n")}}):{name:e.name,value:i.replace(Pe,"\r\n")}}).get()}}),at.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch(t){}};var Me={0:200,1223:204},Le=at.ajaxSettings.xhr();nt.cors=!!Le&&"withCredentials"in Le,nt.ajax=Le=!!Le,at.ajaxTransport(function(e){var i,n;if(nt.cors||Le&&!e.crossDomain)return{send:function(r,a){var o,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(o in e.xhrFields)s[o]=e.xhrFields[o];e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");for(o in r)s.setRequestHeader(o,r[o]);i=function(t){return function(){i&&(i=n=s.onload=s.onerror=s.onabort=s.onreadystatechange=null,"abort"===t?s.abort():"error"===t?"number"!=typeof s.status?a(0,"error"):a(s.status,s.statusText):a(Me[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=i(),n=s.onerror=i("error"),void 0!==s.onabort?s.onabort=n:s.onreadystatechange=function(){4===s.readyState&&t.setTimeout(function(){i&&n()})},i=i("abort");try{s.send(e.hasContent&&e.data||null)}catch(t){if(i)throw t}},abort:function(){i&&i()}}}),at.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return at.globalEval(t),t}}}),at.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),at.ajaxTransport("script",function(t){if(t.crossDomain){var e,i;return{send:function(n,r){e=at("<script>").prop({charset:t.scriptCharset,src:t.url}).on("load error",i=function(t){e.remove(),i=null,t&&r("error"===t.type?404:200,t.type)}),X.head.appendChild(e[0])},abort:function(){i&&i()}}}});var Ne=[],Oe=/(=)\?(?=&|$)|\?\?/;at.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Ne.pop()||at.expando+"_"+ve++;return this[t]=!0,t}}),at.ajaxPrefilter("json jsonp",function(e,i,n){var r,a,o,s=e.jsonp!==!1&&(Oe.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Oe.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=at.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Oe,"$1"+r):e.jsonp!==!1&&(e.url+=(ye.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||at.error(r+" was not called"),o[0]},e.dataTypes[0]="json",a=t[r],t[r]=function(){o=arguments},n.always(function(){void 0===a?at(t).removeProp(r):t[r]=a,e[r]&&(e.jsonpCallback=i.jsonpCallback,Ne.push(r)),o&&at.isFunction(a)&&a(o[0]),o=a=void 0}),"script"}),at.parseHTML=function(t,e,i){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(i=e,e=!1),e=e||X;var n=ft.exec(t),r=!i&&[];return n?[e.createElement(n[1])]:(n=d([t],e,r),r&&r.length&&at(r).remove(),at.merge([],n.childNodes))};var Ie=at.fn.load;at.fn.load=function(t,e,i){if("string"!=typeof t&&Ie)return Ie.apply(this,arguments);var n,r,a,o=this,s=t.indexOf(" ");return s>-1&&(n=at.trim(t.slice(s)),t=t.slice(0,s)),at.isFunction(e)?(i=e,e=void 0):e&&"object"==typeof e&&(r="POST"),o.length>0&&at.ajax({url:t,type:r||"GET",dataType:"html",data:e}).done(function(t){a=arguments,o.html(n?at("<div>").append(at.parseHTML(t)).find(n):t)}).always(i&&function(t,e){o.each(function(){i.apply(this,a||[t.responseText,e,t])})}),this},at.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){at.fn[e]=function(t){return this.on(e,t)}}),at.expr.filters.animated=function(t){return at.grep(at.timers,function(e){return t===e.elem}).length},at.offset={setOffset:function(t,e,i){var n,r,a,o,s,l,c,u=at.css(t,"position"),h=at(t),d={};"static"===u&&(t.style.position="relative"),s=h.offset(),a=at.css(t,"top"),l=at.css(t,"left"),c=("absolute"===u||"fixed"===u)&&(a+l).indexOf("auto")>-1,c?(n=h.position(),o=n.top,r=n.left):(o=parseFloat(a)||0,r=parseFloat(l)||0),at.isFunction(e)&&(e=e.call(t,i,at.extend({},s))),null!=e.top&&(d.top=e.top-s.top+o),null!=e.left&&(d.left=e.left-s.left+r),"using"in e?e.using.call(t,d):h.css(d)}},at.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){at.offset.setOffset(this,t,e)});var e,i,n=this[0],r={top:0,left:0},a=n&&n.ownerDocument;if(a)return e=a.documentElement,at.contains(e,n)?(r=n.getBoundingClientRect(),i=Q(a),{top:r.top+i.pageYOffset-e.clientTop,left:r.left+i.pageXOffset-e.clientLeft}):r},position:function(){if(this[0]){var t,e,i=this[0],n={top:0,left:0};return"fixed"===at.css(i,"position")?e=i.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),at.nodeName(t[0],"html")||(n=t.offset()),n.top+=at.css(t[0],"borderTopWidth",!0),n.left+=at.css(t[0],"borderLeftWidth",!0)),{top:e.top-n.top-at.css(i,"marginTop",!0),left:e.left-n.left-at.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===at.css(t,"position");)t=t.offsetParent;return t||Zt})}}),at.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var i="pageYOffset"===e;at.fn[t]=function(n){return Ct(this,function(t,n,r){var a=Q(t);return void 0===r?a?a[e]:t[n]:void(a?a.scrollTo(i?a.pageXOffset:r,i?r:a.pageYOffset):t[n]=r)},t,n,arguments.length)}}),at.each(["top","left"],function(t,e){at.cssHooks[e]=S(nt.pixelPosition,function(t,i){if(i)return i=T(t,e),Xt.test(i)?at(t).position()[e]+"px":i})}),at.each({Height:"height",Width:"width"},function(t,e){at.each({padding:"inner"+t,content:e,"":"outer"+t},function(i,n){at.fn[n]=function(n,r){var a=arguments.length&&(i||"boolean"!=typeof n),o=i||(n===!0||r===!0?"margin":"border");return Ct(this,function(e,i,n){var r;return at.isWindow(e)?e.document.documentElement["client"+t]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+t],r["scroll"+t],e.body["offset"+t],r["offset"+t],r["client"+t])):void 0===n?at.css(e,i,o):at.style(e,i,n,o)},e,a?n:void 0,a,null)}})}),at.fn.extend({bind:function(t,e,i){return this.on(t,null,e,i)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,i,n){return this.on(e,t,i,n)},undelegate:function(t,e,i){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",i)},size:function(){return this.length}}),at.fn.andSelf=at.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return at});var Re=t.jQuery,ze=t.$;return at.noConflict=function(e){return t.$===at&&(t.$=ze),e&&t.jQuery===at&&(t.jQuery=Re),at},e||(t.jQuery=t.$=at),at}),window.yii=function(t){function e(){t(document).ajaxComplete(function(t,e,i){var n=e&&e.getResponseHeader("X-Redirect");n&&(window.location=n)})}function i(){t.ajaxPrefilter(function(t,e,i){!t.crossDomain&&l.getCsrfParam()&&i.setRequestHeader("X-CSRF-Token",l.getCsrfToken())}),l.refreshCsrfToken()}function n(){var e=function(e){var i=t(this),n=i.data("method"),r=i.data("confirm"),a=i.data("form");return void 0===n&&void 0===r&&void 0===a||(void 0!==r?t.proxy(l.confirm,this)(r,function(){l.handleAction(i,e)}):l.handleAction(i,e),e.stopImmediatePropagation(),!1)};t(document).on("click.yii",l.clickableSelector,e).on("change.yii",l.changeableSelector,e)}function r(t){for(var e=o(),i=0;i<l.reloadableScripts.length;i++){var n=l.reloadableScripts[i];n="/"===n.charAt(0)?e+n:n;var r=new RegExp("^"+a(n).split("\\*").join(".*")+"$").test(t);if(r===!0)return!0}return!1}function a(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function o(){return location.protocol+"//"+location.host}function s(){for(var e=o(),i={},n=t("script[src]").map(function(){return"/"===this.src.charAt(0)?e+this.src:this.src}).toArray(),a=0,s=n.length;a<s;a++)i[n[a]]=!0;t.ajaxPrefilter("script",function(t,n,a){if("jsonp"!=t.dataType){var o="/"===t.url.charAt(0)?e+t.url:t.url;if(o in i){var s=i[o];s===!0||r(o)?r(o)||a.abort():(s.done(function(){a&&4!==a.readyState&&a.abort()}),a.done(function(){s&&4!==s.readyState&&s.abort()}))}else i[o]=a.done(function(){i[o]=!0}).fail(function(){delete i[o]})}}),t(document).ajaxComplete(function(e,i,n){var a=[];t("link[rel=stylesheet]").each(function(){r(this.href)||(t.inArray(this.href,a)==-1?a.push(this.href):t(this).remove())})})}var l={reloadableScripts:[],clickableSelector:'a, button, input[type="submit"], input[type="button"], input[type="reset"], input[type="image"]',changeableSelector:"select, input, textarea",getCsrfParam:function(){return t("meta[name=csrf-param]").attr("content")},getCsrfToken:function(){return t("meta[name=csrf-token]").attr("content")},setCsrfToken:function(e,i){t("meta[name=csrf-param]").attr("content",e),t("meta[name=csrf-token]").attr("content",i)},refreshCsrfToken:function(){var e=l.getCsrfToken();e&&t('form input[name="'+l.getCsrfParam()+'"]').val(e)},confirm:function(t,e,i){confirm(t)?!e||e():!i||i()},handleAction:function(e,i){var n,r=e.attr("data-form")?t("#"+e.attr("data-form")):e.closest("form"),a=!e.data("method")&&r?r.attr("method"):e.data("method"),o=e.attr("href"),s=e.data("params"),c=e.data("pjax"),u=!!e.data("pjax-push-state"),h=!!e.data("pjax-replace-state"),d=e.data("pjax-timeout"),p=e.data("pjax-scrollto"),f=e.data("pjax-push-redirect"),m=e.data("pjax-replace-redirect"),g=e.data("pjax-skip-outer-containers"),v={};if(void 0!==c&&t.support.pjax&&(n=e.data("pjax-container")?e.data("pjax-container"):e.closest('[data-pjax-container=""]'),n.length||(n=t("body")),v={container:n,push:u,replace:h,scrollTo:p,pushRedirect:f,replaceRedirect:m,pjaxSkipOuterContainers:g,timeout:d,originalEvent:i,originalTarget:e}),void 0===a)return void(o&&"#"!=o?void 0!==c&&t.support.pjax?t.pjax.click(i,v):window.location=o:e.is(":submit")&&r.length&&(void 0!==c&&t.support.pjax&&r.on("submit",function(e){t.pjax.submit(e,v)}),r.trigger("submit")));var y=!r.length;if(y){o&&o.match(/(^\/|:\/\/)/)||(o=window.location.href),r=t("<form/>",{method:a,action:o});var b=e.attr("target");if(b&&r.attr("target",b),a.match(/(get|post)/i)||(r.append(t("<input/>",{name:"_method",value:a,type:"hidden"})),a="POST"),!a.match(/(get|head|options)/i)){var x=l.getCsrfParam();x&&r.append(t("<input/>",{name:x,value:l.getCsrfToken(),type:"hidden"}))}r.hide().appendTo("body")}var k=r.data("yiiActiveForm");k&&(k.submitObject=e),s&&t.isPlainObject(s)&&t.each(s,function(e,i){r.append(t("<input/>").attr({name:e,value:i,type:"hidden"}))});var w=r.attr("method");r.attr("method",a);var C=null;o&&"#"!=o&&(C=r.attr("action"),r.attr("action",o)),void 0!==c&&t.support.pjax&&r.on("submit",function(e){t.pjax.submit(e,v)}),r.trigger("submit"),t.when(r.data("yiiSubmitFinalizePromise")).then(function(){null!=C&&r.attr("action",C),r.attr("method",w),s&&t.isPlainObject(s)&&t.each(s,function(e,i){t('input[name="'+e+'"]',r).remove()}),y&&r.remove()})},getQueryParams:function(e){var i=e.indexOf("?");if(i<0)return{};var n,r,a=e.substring(i+1).split("#")[0].split("&"),o={};for(r=0;r<a.length;r++){n=a[r].split("=");var s=decodeURIComponent(n[0].replace(/\+/g,"%20")),l=decodeURIComponent(n[1].replace(/\+/g,"%20"));s.length&&(void 0!==o[s]?(t.isArray(o[s])||(o[s]=[o[s]]),o[s].push(l||"")):o[s]=l||"")}return o},initModule:function(e){(void 0===e.isActive||e.isActive)&&(t.isFunction(e.init)&&e.init(),t.each(e,function(){t.isPlainObject(this)&&l.initModule(this)}))},init:function(){i(),e(),s(),n()}};return l}(jQuery),jQuery(function(){yii.initModule(yii)}),!function(t){function e(i,n){return this instanceof e?(t.isPlainObject(i)?n=i:(n=n||{},n.alias=i),this.el=void 0,this.opts=t.extend(!0,{},this.defaults,n),this.noMasksCache=n&&void 0!==n.definitions,this.userOptions=n||{},this.events={},void r(this.opts.alias,n,this.opts)):new e(i,n)}function i(t){var e=document.createElement("input"),i="on"+t,n=i in e;return n||(e.setAttribute(i,"return;"),n="function"==typeof e[i]),e=null,n}function n(e,i){var n=e.getAttribute("type"),r="INPUT"===e.tagName&&-1!==t.inArray(n,i.supportsInputType)||e.isContentEditable||"TEXTAREA"===e.tagName;if(!r){var a=document.createElement("input");a.setAttribute("type",n),r="text"===a.type,a=null}return r}function r(e,i,n){var a=n.aliases[e];return a?(a.alias&&r(a.alias,void 0,n),t.extend(!0,n,a),t.extend(!0,n,i),!0):(null===n.mask&&(n.mask=e),!1)}function a(e,i,n){function a(t,i){i=void 0!==i?i:e.getAttribute("data-inputmask-"+t),null!==i&&("string"==typeof i&&(0===t.indexOf("on")?i=window[i]:"false"===i?i=!1:"true"===i&&(i=!0)),n[t]=i)}var o,s,l,c,u=e.getAttribute("data-inputmask");if(u&&""!==u&&(u=u.replace(new RegExp("'","g"),'"'),s=JSON.parse("{"+u+"}")),s){l=void 0;for(c in s)if("alias"===c.toLowerCase()){l=s[c];break}}a("alias",l),n.alias&&r(n.alias,n,i);for(o in i){if(s){l=void 0;for(c in s)if(c.toLowerCase()===o.toLowerCase()){l=s[c];break}}a(o,l)}return t.extend(!0,i,n),i}function o(i,n){function r(e){function n(t,e,i,n){this.matches=[],this.isGroup=t||!1,this.isOptional=e||!1,this.isQuantifier=i||!1,this.isAlternator=n||!1,this.quantifier={min:1,max:1}}function r(e,n,r){var a=i.definitions[n];r=void 0!==r?r:e.matches.length;var o=e.matches[r-1];if(a&&!v){a.placeholder=t.isFunction(a.placeholder)?a.placeholder(i):a.placeholder;for(var s=a.prevalidator,l=s?s.length:0,c=1;c<a.cardinality;c++){var u=l>=c?s[c-1]:[],h=u.validator,d=u.cardinality;e.matches.splice(r++,0,{fn:h?"string"==typeof h?new RegExp(h):new function(){this.test=h}:new RegExp("."),cardinality:d?d:1,optionality:e.isOptional,newBlockMarker:void 0===o||o.def!==(a.definitionSymbol||n),casing:a.casing,def:a.definitionSymbol||n,placeholder:a.placeholder,mask:n}),o=e.matches[r-1]}e.matches.splice(r++,0,{fn:a.validator?"string"==typeof a.validator?new RegExp(a.validator):new function(){this.test=a.validator}:new RegExp("."),cardinality:a.cardinality,optionality:e.isOptional,newBlockMarker:void 0===o||o.def!==(a.definitionSymbol||n),casing:a.casing,def:a.definitionSymbol||n,placeholder:a.placeholder,mask:n})}else e.matches.splice(r++,0,{fn:null,cardinality:0,optionality:e.isOptional,newBlockMarker:void 0===o||o.def!==n,casing:null,def:i.staticDefinitionSymbol||n,placeholder:void 0!==i.staticDefinitionSymbol?n:void 0,mask:n}),v=!1}function a(t,e){t.isGroup&&(t.isGroup=!1,r(t,i.groupmarker.start,0),e!==!0&&r(t,i.groupmarker.end))}function o(t,e,i,n){e.matches.length>0&&(void 0===n||n)&&(i=e.matches[e.matches.length-1],a(i)),r(e,t)}function s(){if(b.length>0){if(d=b[b.length-1],o(u,d,f,!d.isAlternator),d.isAlternator){p=b.pop();for(var t=0;t<p.matches.length;t++)p.matches[t].isGroup=!1;b.length>0?(d=b[b.length-1],d.matches.push(p)):y.matches.push(p)}}else o(u,y,f)}function l(t){function e(t){return t===i.optionalmarker.start?t=i.optionalmarker.end:t===i.optionalmarker.end?t=i.optionalmarker.start:t===i.groupmarker.start?t=i.groupmarker.end:t===i.groupmarker.end&&(t=i.groupmarker.start),t}t.matches=t.matches.reverse();for(var n in t.matches){var r=parseInt(n);if(t.matches[n].isQuantifier&&t.matches[r+1]&&t.matches[r+1].isGroup){var a=t.matches[n];t.matches.splice(n,1),t.matches.splice(r+1,0,a)}void 0!==t.matches[n].matches?t.matches[n]=l(t.matches[n]):t.matches[n]=e(t.matches[n])}return t}for(var c,u,h,d,p,f,m,g=/(?:[?*+]|\{[0-9\+\*]+(?:,[0-9\+\*]*)?\})|[^.?*+^${[]()|\\]+|./g,v=!1,y=new n,b=[],x=[];c=g.exec(e);)if(u=c[0],
  v)s();else switch(u.charAt(0)){case i.escapeChar:v=!0;break;case i.optionalmarker.end:case i.groupmarker.end:if(h=b.pop(),void 0!==h)if(b.length>0){if(d=b[b.length-1],d.matches.push(h),d.isAlternator){p=b.pop();for(var k=0;k<p.matches.length;k++)p.matches[k].isGroup=!1;b.length>0?(d=b[b.length-1],d.matches.push(p)):y.matches.push(p)}}else y.matches.push(h);else s();break;case i.optionalmarker.start:b.push(new n((!1),(!0)));break;case i.groupmarker.start:b.push(new n((!0)));break;case i.quantifiermarker.start:var w=new n((!1),(!1),(!0));u=u.replace(/[{}]/g,"");var C=u.split(","),_=isNaN(C[0])?C[0]:parseInt(C[0]),$=1===C.length?_:isNaN(C[1])?C[1]:parseInt(C[1]);if(("*"===$||"+"===$)&&(_="*"===$?0:1),w.quantifier={min:_,max:$},b.length>0){var T=b[b.length-1].matches;c=T.pop(),c.isGroup||(m=new n((!0)),m.matches.push(c),c=m),T.push(c),T.push(w)}else c=y.matches.pop(),c.isGroup||(m=new n((!0)),m.matches.push(c),c=m),y.matches.push(c),y.matches.push(w);break;case i.alternatormarker:b.length>0?(d=b[b.length-1],f=d.matches.pop()):f=y.matches.pop(),f.isAlternator?b.push(f):(p=new n((!1),(!1),(!1),(!0)),p.matches.push(f),b.push(p));break;default:s()}for(;b.length>0;)h=b.pop(),a(h,!0),y.matches.push(h);return y.matches.length>0&&(f=y.matches[y.matches.length-1],a(f),x.push(y)),i.numericInput&&l(x[0]),x}function a(a,o){if(null!==a&&""!==a){if(1===a.length&&i.greedy===!1&&0!==i.repeat&&(i.placeholder=""),i.repeat>0||"*"===i.repeat||"+"===i.repeat){var s="*"===i.repeat?0:"+"===i.repeat?1:i.repeat;a=i.groupmarker.start+a+i.groupmarker.end+i.quantifiermarker.start+s+","+i.repeat+i.quantifiermarker.end}var l;return void 0===e.prototype.masksCache[a]||n===!0?(l={mask:a,maskToken:r(a),validPositions:{},_buffer:void 0,buffer:void 0,tests:{},metadata:o},n!==!0&&(e.prototype.masksCache[i.numericInput?a.split("").reverse().join(""):a]=l,l=t.extend(!0,{},e.prototype.masksCache[i.numericInput?a.split("").reverse().join(""):a]))):l=t.extend(!0,{},e.prototype.masksCache[i.numericInput?a.split("").reverse().join(""):a]),l}}function o(t){return t=t.toString()}var s;if(t.isFunction(i.mask)&&(i.mask=i.mask(i)),t.isArray(i.mask)){if(i.mask.length>1){i.keepStatic=null===i.keepStatic||i.keepStatic;var l="(";return t.each(i.numericInput?i.mask.reverse():i.mask,function(e,i){l.length>1&&(l+=")|("),l+=o(void 0===i.mask||t.isFunction(i.mask)?i:i.mask)}),l+=")",a(l,i.mask)}i.mask=i.mask.pop()}return i.mask&&(s=void 0===i.mask.mask||t.isFunction(i.mask.mask)?a(o(i.mask),i.mask):a(o(i.mask.mask),i.mask)),s}function s(r,a,o){function l(t,e,i){e=e||0;var n,r,a,s=[],l=0,c=f();do{if(t===!0&&d().validPositions[l]){var u=d().validPositions[l];r=u.match,n=u.locator.slice(),s.push(i===!0?u.input:M(l,r))}else a=v(l,n,l-1),r=a.match,n=a.locator.slice(),(o.jitMasking===!1||c>l||isFinite(o.jitMasking)&&o.jitMasking>l)&&s.push(M(l,r));l++}while((void 0===dt||dt>l-1)&&null!==r.fn||null===r.fn&&""!==r.def||e>=l);return""===s[s.length-1]&&s.pop(),s}function d(){return a}function p(t){var e=d();e.buffer=void 0,t!==!0&&(e.tests={},e._buffer=void 0,e.validPositions={},e.p=0)}function f(t,e){var i=-1,n=-1,r=d().validPositions;void 0===t&&(t=-1);for(var a in r){var o=parseInt(a);r[o]&&(e||null!==r[o].match.fn)&&(t>=o&&(i=o),o>=t&&(n=o))}return-1!==i&&t-i>1||t>n?i:n}function m(e,i,n){if(o.insertMode&&void 0!==d().validPositions[e]&&void 0===n){var r,a=t.extend(!0,{},d().validPositions),s=f();for(r=e;s>=r;r++)delete d().validPositions[r];d().validPositions[e]=i;var l,c=!0,u=d().validPositions;for(r=l=e;s>=r;r++){var h=a[r];if(void 0!==h)for(var m=l,g=-1;m<j()&&(null==h.match.fn&&u[r]&&(u[r].match.optionalQuantifier===!0||u[r].match.optionality===!0)||null!=h.match.fn);){if(null===h.match.fn||!o.keepStatic&&u[r]&&(void 0!==u[r+1]&&k(r+1,u[r].locator.slice(),r).length>1||void 0!==u[r].alternation)?m++:m=E(l),b(m,h.match.def)){var v=S(m,h.input,!0,!0);c=v!==!1,l=v.caret||v.insert?f():m;break}if(c=null==h.match.fn,g===m)break;g=m}if(!c)break}if(!c)return d().validPositions=t.extend(!0,{},a),p(!0),!1}else d().validPositions[e]=i;return p(!0),!0}function g(t,e,i,n){var r,a=t;for(d().p=t,r=a;e>r;r++)void 0!==d().validPositions[r]&&(i===!0||o.canClearPosition(d(),r,f(),n,o)!==!1)&&delete d().validPositions[r];for(r=a+1;r<=f();){for(;void 0!==d().validPositions[a];)a++;var s=d().validPositions[a];if(a>r&&(r=a+1),void 0===d().validPositions[r]&&A(r)||void 0!==s)r++;else{var l=v(r);b(a,l.match.def)?S(a,l.input||M(r),!0)!==!1&&(delete d().validPositions[r],r++):A(r)||(r++,a--),a++}}var c=f(),u=j();for(n!==!0&&i!==!0&&void 0!==d().validPositions[c]&&d().validPositions[c].input===o.radixPoint&&delete d().validPositions[c],r=c+1;u>=r;r++)d().validPositions[r]&&delete d().validPositions[r];p(!0)}function v(t,e,i){var n=d().validPositions[t];if(void 0===n)for(var r=k(t,e,i),a=f(),s=d().validPositions[a]||k(0)[0],l=void 0!==s.alternation?s.locator[s.alternation].toString().split(","):[],c=0;c<r.length&&(n=r[c],!(n.match&&(o.greedy&&n.match.optionalQuantifier!==!0||(n.match.optionality===!1||n.match.newBlockMarker===!1)&&n.match.optionalQuantifier!==!0)&&(void 0===s.alternation||s.alternation!==n.alternation||void 0!==n.locator[s.alternation]&&T(n.locator[s.alternation].toString().split(","),l))));c++);return n}function y(t){return d().validPositions[t]?d().validPositions[t].match:k(t)[0].match}function b(t,e){for(var i=!1,n=k(t),r=0;r<n.length;r++)if(n[r].match&&n[r].match.def===e){i=!0;break}return i}function x(e,i){var n,r;return(d().tests[e]||d().validPositions[e])&&t.each(d().tests[e]||[d().validPositions[e]],function(t,e){var a=e.alternation?e.locator[e.alternation].toString().indexOf(i):-1;(void 0===r||r>a)&&-1!==a&&(n=e,r=a)}),n}function k(e,i,n){function r(i,n,a,s){function c(a,s,f){function m(e,i){var n=0===t.inArray(e,i.matches);return n||t.each(i.matches,function(t,r){return(r.isQuantifier!==!0||!(n=m(e,i.matches[t-1])))&&void 0}),n}function g(t,e){var i=x(t,e);return i?i.locator.slice(i.alternation+1):[]}if(l>1e4)throw"Inputmask: There is probably an error in your mask definition or in the code. Create an issue on github with an example of the mask you are using. "+d().mask;if(l===e&&void 0===a.matches)return u.push({match:a,locator:s.reverse(),cd:p}),!0;if(void 0!==a.matches){if(a.isGroup&&f!==a){if(a=c(i.matches[t.inArray(a,i.matches)+1],s))return!0}else if(a.isOptional){var v=a;if(a=r(a,n,s,f)){if(o=u[u.length-1].match,!m(o,v))return!0;h=!0,l=e}}else if(a.isAlternator){var y,b=a,k=[],w=u.slice(),C=s.length,_=n.length>0?n.shift():-1;if(-1===_||"string"==typeof _){var $,T=l,S=n.slice(),A=[];if("string"==typeof _)A=_.split(",");else for($=0;$<b.matches.length;$++)A.push($);for(var j=0;j<A.length;j++){if($=parseInt(A[j]),u=[],n=g(l,$),a=c(b.matches[$]||i.matches[$],[$].concat(s),f)||a,a!==!0&&void 0!==a&&A[A.length-1]<b.matches.length){var E=t.inArray(a,i.matches)+1;i.matches.length>E&&(a=c(i.matches[E],[E].concat(s.slice(1,s.length)),f),a&&(A.push(E.toString()),t.each(u,function(t,e){e.alternation=s.length-1})))}y=u.slice(),l=T,u=[];for(var P=0;P<S.length;P++)n[P]=S[P];for(var F=0;F<y.length;F++){var D=y[F];D.alternation=D.alternation||C;for(var M=0;M<k.length;M++){var L=k[M];if(D.match.def===L.match.def&&("string"!=typeof _||-1!==t.inArray(D.locator[D.alternation].toString(),A))){D.match.mask===L.match.mask&&(y.splice(F,1),F--),-1===L.locator[D.alternation].toString().indexOf(D.locator[D.alternation])&&(L.locator[D.alternation]=L.locator[D.alternation]+","+D.locator[D.alternation],L.alternation=D.alternation);break}}}k=k.concat(y)}"string"==typeof _&&(k=t.map(k,function(e,i){if(isFinite(i)){var n,r=e.alternation,a=e.locator[r].toString().split(",");e.locator[r]=void 0,e.alternation=void 0;for(var o=0;o<a.length;o++)n=-1!==t.inArray(a[o],A),n&&(void 0!==e.locator[r]?(e.locator[r]+=",",e.locator[r]+=a[o]):e.locator[r]=parseInt(a[o]),e.alternation=r);if(void 0!==e.locator[r])return e}})),u=w.concat(k),l=e,h=u.length>0}else a=c(b.matches[_]||i.matches[_],[_].concat(s),f);if(a)return!0}else if(a.isQuantifier&&f!==i.matches[t.inArray(a,i.matches)-1])for(var N=a,O=n.length>0?n.shift():0;O<(isNaN(N.quantifier.max)?O+1:N.quantifier.max)&&e>=l;O++){var I=i.matches[t.inArray(N,i.matches)-1];if(a=c(I,[O].concat(s),I)){if(o=u[u.length-1].match,o.optionalQuantifier=O>N.quantifier.min-1,m(o,I)){if(O>N.quantifier.min-1){h=!0,l=e;break}return!0}return!0}}else if(a=r(a,n,s,f))return!0}else l++}for(var f=n.length>0?n.shift():0;f<i.matches.length;f++)if(i.matches[f].isQuantifier!==!0){var m=c(i.matches[f],[f].concat(a),s);if(m&&l===e)return m;if(l>e)break}}function a(t){var e=t[0]||t;return e.locator.slice()}var o,s=d().maskToken,l=i?n:0,c=i||[0],u=[],h=!1,p=i?i.join(""):"";if(e>-1){if(void 0===i){for(var f,m=e-1;void 0===(f=d().validPositions[m]||d().tests[m])&&m>-1;)m--;void 0!==f&&m>-1&&(c=a(f),p=c.join(""),f=f[0]||f,l=m)}if(d().tests[e]&&d().tests[e][0].cd===p)return d().tests[e];for(var g=c.shift();g<s.length;g++){var v=r(s[g],c,[g]);if(v&&l===e||l>e)break}}return(0===u.length||h)&&u.push({match:{fn:null,cardinality:0,optionality:!0,casing:null,def:""},locator:[]}),d().tests[e]=t.extend(!0,[],u),d().tests[e]}function w(){return void 0===d()._buffer&&(d()._buffer=l(!1,1)),d()._buffer}function C(t){if(void 0===d().buffer||t===!0){if(t===!0)for(var e in d().tests)void 0===d().validPositions[e]&&delete d().tests[e];d().buffer=l(!0,f(),!0)}return d().buffer}function _(t,e,i){var n;if(i=i,t===!0)p(),t=0,e=i.length;else for(n=t;e>n;n++)delete d().validPositions[n],delete d().tests[n];for(n=t;e>n;n++)p(!0),i[n]!==o.skipOptionalPartCharacter&&S(n,i[n],!0,!0)}function $(t,e){switch(e.casing){case"upper":t=t.toUpperCase();break;case"lower":t=t.toLowerCase()}return t}function T(e,i){for(var n=o.greedy?i:i.slice(0,1),r=!1,a=0;a<e.length;a++)if(-1!==t.inArray(e[a],n)){r=!0;break}return r}function S(e,i,n,r){function a(e,i,n,r){var a=!1;return t.each(k(e),function(s,l){for(var c=l.match,u=i?1:0,h="",v=c.cardinality;v>u;v--)h+=F(e-(v-1));if(i&&(h+=i),C(!0),a=null!=c.fn?c.fn.test(h,d(),e,n,o):(i===c.def||i===o.skipOptionalPartCharacter)&&""!==c.def&&{c:c.placeholder||c.def,pos:e},a!==!1){var y=void 0!==a.c?a.c:i;y=y===o.skipOptionalPartCharacter&&null===c.fn?c.placeholder||c.def:y;var b=e,x=C();if(void 0!==a.remove&&(t.isArray(a.remove)||(a.remove=[a.remove]),t.each(a.remove.sort(function(t,e){return e-t}),function(t,e){g(e,e+1,!0)})),void 0!==a.insert&&(t.isArray(a.insert)||(a.insert=[a.insert]),t.each(a.insert.sort(function(t,e){return t-e}),function(t,e){S(e.pos,e.c,!1,r)})),a.refreshFromBuffer){var k=a.refreshFromBuffer;if(n=!0,_(k===!0?k:k.start,k.end,x),void 0===a.pos&&void 0===a.c)return a.pos=f(),!1;if(b=void 0!==a.pos?a.pos:e,b!==e)return a=t.extend(a,S(b,y,!0,r)),!1}else if(a!==!0&&void 0!==a.pos&&a.pos!==e&&(b=a.pos,_(e,b,C().slice()),b!==e))return a=t.extend(a,S(b,y,!0)),!1;return(a===!0||void 0!==a.pos||void 0!==a.c)&&(s>0&&p(!0),m(b,t.extend({},l,{input:$(y,c)}),r)||(a=!1),!1)}}),a}function s(e,i,n,r){for(var a,s,l,c,u,h,m=t.extend(!0,{},d().validPositions),g=t.extend(!0,{},d().tests),y=f();y>=0&&(c=d().validPositions[y],!c||void 0===c.alternation||(a=y,s=d().validPositions[a].alternation,v(a).locator[c.alternation]===c.locator[c.alternation]));y--);if(void 0!==s){a=parseInt(a);for(var b in d().validPositions)if(b=parseInt(b),c=d().validPositions[b],b>=a&&void 0!==c.alternation){var k;0===a?(k=[],t.each(d().tests[a],function(t,e){void 0!==e.locator[s]&&(k=k.concat(e.locator[s].toString().split(",")))})):k=d().validPositions[a].locator[s].toString().split(",");var w=void 0!==c.locator[s]?c.locator[s]:k[0];w.length>0&&(w=w.split(",")[0]);for(var C=0;C<k.length;C++){var _=[],$=0,T=0;if(w<k[C]){for(var A,j,E=b;E>=0;E--)if(A=d().validPositions[E],void 0!==A){var P=x(E,k[C]);d().validPositions[E].match.def!==P.match.def&&(_.push(d().validPositions[E].input),d().validPositions[E]=P,d().validPositions[E].input=M(E),null===d().validPositions[E].match.fn&&T++,A=P),j=A.locator[s],A.locator[s]=parseInt(k[C]);break}if(w!==A.locator[s]){for(u=b+1;u<f(void 0,!0)+1;u++)h=d().validPositions[u],h&&null!=h.match.fn?_.push(h.input):e>u&&$++,delete d().validPositions[u],delete d().tests[u];for(p(!0),o.keepStatic=!o.keepStatic,l=!0;_.length>0;){var F=_.shift();if(F!==o.skipOptionalPartCharacter&&!(l=S(f(void 0,!0)+1,F,!1,r)))break}if(A.alternation=s,A.locator[s]=j,l){var D=f(e)+1;for(u=b+1;u<f()+1;u++)h=d().validPositions[u],(void 0===h||null==h.match.fn)&&e>u&&T++;e+=T-$,l=S(e>D?D:e,i,n,r)}if(o.keepStatic=!o.keepStatic,l)return l;p(),d().validPositions=t.extend(!0,{},m),d().tests=t.extend(!0,{},g)}}}break}}return!1}function l(e,i){for(var n=d().validPositions[i],r=n.locator,a=r.length,o=e;i>o;o++)if(void 0===d().validPositions[o]&&!A(o,!0)){var s=k(o),l=s[0],c=-1;t.each(s,function(t,e){for(var i=0;a>i&&void 0!==e.locator[i]&&T(e.locator[i].toString().split(","),r[i].toString().split(","));i++)i>c&&(c=i,l=e)}),m(o,t.extend({},l,{input:l.match.placeholder||l.match.def}),!0)}}n=n===!0;for(var c=C(),u=e-1;u>-1&&!d().validPositions[u];u--);for(u++;e>u;u++)void 0===d().validPositions[u]&&((!A(u)||c[u]!==M(u))&&k(u).length>1||c[u]===o.radixPoint||"0"===c[u]&&t.inArray(o.radixPoint,c)<u)&&a(u,c[u],!0,r);var h=e,y=!1,b=t.extend(!0,{},d().validPositions);if(h<j()&&(y=a(h,i,n,r),(!n||r===!0)&&y===!1)){var w=d().validPositions[h];if(!w||null!==w.match.fn||w.match.def!==i&&i!==o.skipOptionalPartCharacter){if((o.insertMode||void 0===d().validPositions[E(h)])&&!A(h,!0)){var P=v(h).match,P=P.placeholder||P.def;a(h,P,n,r);for(var D=h+1,L=E(h);L>=D;D++)if(y=a(D,i,n,r),y!==!1){l(h,D),h=D;break}}}else y={caret:E(h)}}if(y===!1&&o.keepStatic&&(y=s(e,i,n,r)),y===!0&&(y={pos:h}),t.isFunction(o.postValidation)&&y!==!1&&!n&&r!==!0){var N=o.postValidation(C(!0),y,o);if(N){if(N.refreshFromBuffer){var O=N.refreshFromBuffer;_(O===!0?O:O.start,O.end,N.buffer),p(!0),y=N}}else p(!0),d().validPositions=t.extend(!0,{},b),y=!1}return y}function A(t,e){var i;if(e?(i=v(t).match,""==i.def&&(i=y(t))):i=y(t),null!=i.fn)return i.fn;if(e!==!0&&t>-1&&!o.keepStatic&&void 0===d().validPositions[t]){var n=k(t);return n.length>2}return!1}function j(){var t;dt=void 0!==ut?ut.maxLength:void 0,-1===dt&&(dt=void 0);var e,i=f(),n=d().validPositions[i],r=void 0!==n?n.locator.slice():void 0;for(e=i+1;void 0===n||null!==n.match.fn||null===n.match.fn&&""!==n.match.def;e++)n=v(e,r,e-1),r=n.locator.slice();var a=y(e-1);return t=""!==a.def?e:e-1,void 0===dt||dt>t?t:dt}function E(t,e){var i=j();if(t>=i)return i;for(var n=t;++n<i&&(e===!0&&(y(n).newBlockMarker!==!0||!A(n))||e!==!0&&!A(n)&&(o.nojumps!==!0||o.nojumpsThreshold>n)););return n}function P(t,e){var i=t;if(0>=i)return 0;for(;--i>0&&(e===!0&&y(i).newBlockMarker!==!0||e!==!0&&!A(i)););return i}function F(t){return void 0===d().validPositions[t]?M(t):d().validPositions[t].input}function D(e,i,n,r,a){if(r&&t.isFunction(o.onBeforeWrite)){var s=o.onBeforeWrite(r,i,n,o);if(s){if(s.refreshFromBuffer){var l=s.refreshFromBuffer;_(l===!0?l:l.start,l.end,s.buffer||i),i=C(!0)}void 0!==n&&(n=void 0!==s.caret?s.caret:n)}}e.inputmask._valueSet(i.join("")),void 0===n||void 0!==r&&"blur"===r.type||O(e,n),a===!0&&(gt=!0,t(e).trigger("input"))}function M(t,e){if(e=e||y(t),void 0!==e.placeholder)return e.placeholder;if(null===e.fn){if(t>-1&&!o.keepStatic&&void 0===d().validPositions[t]){var i,n=k(t),r=0;if(n.length>2)for(var a=0;a<n.length;a++)if(n[a].match.optionality!==!0&&n[a].match.optionalQuantifier!==!0&&(null===n[a].match.fn||void 0===i||n[a].match.fn.test(i.match.def,d(),t,!0,o)!==!1)&&(r++,null===n[a].match.fn&&(i=n[a]),r>1))return o.placeholder.charAt(t%o.placeholder.length)}return e.def}return o.placeholder.charAt(t%o.placeholder.length)}function L(i,n,r,a){function s(){var t=!1,e=w().slice(u,E(u)).join("").indexOf(c);if(-1!==e&&!A(u)){t=!0;for(var i=w().slice(u,u+e),n=0;n<i.length;n++)if(" "!==i[n]){t=!1;break}}return t}var l=a.slice(),c="",u=0;if(p(),d().p=E(-1),!r)if(o.autoUnmask!==!0){var h=w().slice(0,E(-1)).join(""),m=l.join("").match(new RegExp("^"+e.escapeRegex(h),"g"));m&&m.length>0&&(l.splice(0,m.length*h.length),u=E(u))}else u=E(u);t.each(l,function(e,n){if(void 0!==n){var a=new t.Event("keypress");a.which=n.charCodeAt(0),c+=n;var l=f(void 0,!0),h=d().validPositions[l],p=v(l+1,h?h.locator.slice():void 0,l);if(!s()||r||o.autoUnmask){var m=r?e:null==p.match.fn&&p.match.optionality&&l+1<d().p?l+1:d().p;V.call(i,a,!0,!1,r,m),u=m+1,c=""}else V.call(i,a,!0,!1,!0,l+1)}}),n&&D(i,C(),document.activeElement===i?E(f(0)):void 0,new t.Event("checkval"))}function N(e){if(e&&void 0===e.inputmask)return e.value;var i=[],n=d().validPositions;for(var r in n)n[r].match&&null!=n[r].match.fn&&i.push(n[r].input);var a=0===i.length?null:(ft?i.reverse():i).join("");if(null!==a){var s=(ft?C().slice().reverse():C()).join("");t.isFunction(o.onUnMask)&&(a=o.onUnMask(s,a,o)||a)}return a}function O(t,e,i,n){function r(t){if(n!==!0&&ft&&"number"==typeof t&&(!o.greedy||""!==o.placeholder)){var e=C().join("").length;t=e-t}return t}var a;if("number"!=typeof e)return t.setSelectionRange?(e=t.selectionStart,i=t.selectionEnd):window.getSelection?(a=window.getSelection().getRangeAt(0),(a.commonAncestorContainer.parentNode===t||a.commonAncestorContainer===t)&&(e=a.startOffset,i=a.endOffset)):document.selection&&document.selection.createRange&&(a=document.selection.createRange(),e=0-a.duplicate().moveStart("character",-1e5),i=e+a.text.length),{begin:r(e),end:r(i)};e=r(e),i=r(i),i="number"==typeof i?i:e;var s=parseInt(((t.ownerDocument.defaultView||window).getComputedStyle?(t.ownerDocument.defaultView||window).getComputedStyle(t,null):t.currentStyle).fontSize)*i;if(t.scrollLeft=s>t.scrollWidth?s:0,c||o.insertMode!==!1||e!==i||i++,t.setSelectionRange)t.selectionStart=e,t.selectionEnd=i;else if(window.getSelection){if(a=document.createRange(),void 0===t.firstChild||null===t.firstChild){var l=document.createTextNode("");t.appendChild(l)}a.setStart(t.firstChild,e<t.inputmask._valueGet().length?e:t.inputmask._valueGet().length),a.setEnd(t.firstChild,i<t.inputmask._valueGet().length?i:t.inputmask._valueGet().length),a.collapse(!0);var u=window.getSelection();u.removeAllRanges(),u.addRange(a)}else t.createTextRange&&(a=t.createTextRange(),a.collapse(!0),a.moveEnd("character",i),a.moveStart("character",e),a.select())}function I(e){var i,n,r=C(),a=r.length,o=f(),s={},l=d().validPositions[o],c=void 0!==l?l.locator.slice():void 0;for(i=o+1;i<r.length;i++)n=v(i,c,i-1),c=n.locator.slice(),s[i]=t.extend(!0,{},n);var u=l&&void 0!==l.alternation?l.locator[l.alternation]:void 0;for(i=a-1;i>o&&(n=s[i],(n.match.optionality||n.match.optionalQuantifier||u&&(u!==s[i].locator[l.alternation]&&null!=n.match.fn||null===n.match.fn&&n.locator[l.alternation]&&T(n.locator[l.alternation].toString().split(","),u.toString().split(","))&&""!==k(i)[0].def))&&r[i]===M(i,n.match));i--)a--;return e?{l:a,def:s[a]?s[a].match:void 0}:a}function R(t){for(var e=I(),i=t.length-1;i>e&&!A(i);i--);return t.splice(e,i+1-e),t}function z(e){if(t.isFunction(o.isComplete))return o.isComplete(e,o);if("*"!==o.repeat){var i=!1,n=I(!0),r=P(n.l);if(void 0===n.def||n.def.newBlockMarker||n.def.optionality||n.def.optionalQuantifier){i=!0;for(var a=0;r>=a;a++){var s=v(a).match;if(null!==s.fn&&void 0===d().validPositions[a]&&s.optionality!==!0&&s.optionalQuantifier!==!0||null===s.fn&&e[a]!==M(a,s)){i=!1;break}}}return i}}function H(t,e){return ft?t-e>1||t-e===1&&o.insertMode:e-t>1||e-t===1&&o.insertMode}function B(e){function i(e){if(t.valHooks&&(void 0===t.valHooks[e]||t.valHooks[e].inputmaskpatch!==!0)){var i=t.valHooks[e]&&t.valHooks[e].get?t.valHooks[e].get:function(t){return t.value},n=t.valHooks[e]&&t.valHooks[e].set?t.valHooks[e].set:function(t,e){return t.value=e,t};t.valHooks[e]={get:function(t){if(t.inputmask){if(t.inputmask.opts.autoUnmask)return t.inputmask.unmaskedvalue();var e=i(t),n=t.inputmask.maskset,r=n._buffer;return r=r?r.join(""):"",e!==r?e:""}return i(t)},set:function(e,i){var r,a=t(e);return r=n(e,i),e.inputmask&&a.trigger("setvalue"),r},inputmaskpatch:!0}}}function n(){return this.inputmask?this.inputmask.opts.autoUnmask?this.inputmask.unmaskedvalue():s.call(this)!==w().join("")?document.activeElement===this&&o.clearMaskOnLostFocus?(ft?R(C().slice()).reverse():R(C().slice())).join(""):s.call(this):"":s.call(this)}function r(e){l.call(this,e),this.inputmask&&t(this).trigger("setvalue")}function a(e){xt.on(e,"mouseenter",function(e){var i=t(this),n=this,r=n.inputmask._valueGet();r!==C().join("")&&f()>0&&i.trigger("setvalue")})}var s,l;e.inputmask.__valueGet||(Object.getOwnPropertyDescriptor&&void 0===e.value?(s=function(){return this.textContent},l=function(t){this.textContent=t},Object.defineProperty(e,"value",{get:n,set:r})):document.__lookupGetter__&&e.__lookupGetter__("value")?(s=e.__lookupGetter__("value"),l=e.__lookupSetter__("value"),e.__defineGetter__("value",n),e.__defineSetter__("value",r)):(s=function(){return e.value},l=function(t){e.value=t},i(e.type),a(e)),e.inputmask.__valueGet=s,e.inputmask._valueGet=function(t){return ft&&t!==!0?s.call(this.el).split("").reverse().join(""):s.call(this.el)},e.inputmask.__valueSet=l,e.inputmask._valueSet=function(t,e){l.call(this.el,null===t||void 0===t?"":e!==!0&&ft?t.split("").reverse().join(""):t)})}function q(i,n,r,a){function s(){if(o.keepStatic){p(!0);var e,n=[],r=t.extend(!0,{},d().validPositions);for(e=f();e>=0;e--){var a=d().validPositions[e];if(a&&(null!=a.match.fn&&n.push(a.input),delete d().validPositions[e],void 0!==a.alternation&&a.locator[a.alternation]===v(e).locator[a.alternation]))break}if(e>-1)for(;n.length>0;){d().p=E(f());var s=new t.Event("keypress");s.which=n.pop().charCodeAt(0),V.call(i,s,!0,!1,!1,d().p)}else d().validPositions=t.extend(!0,{},r)}}if((o.numericInput||ft)&&(n===e.keyCode.BACKSPACE?n=e.keyCode.DELETE:n===e.keyCode.DELETE&&(n=e.keyCode.BACKSPACE),ft)){var l=r.end;r.end=r.begin,r.begin=l}n===e.keyCode.BACKSPACE&&(r.end-r.begin<1||o.insertMode===!1)?(r.begin=P(r.begin),void 0===d().validPositions[r.begin]||d().validPositions[r.begin].input!==o.groupSeparator&&d().validPositions[r.begin].input!==o.radixPoint||r.begin--):n===e.keyCode.DELETE&&r.begin===r.end&&(r.end=A(r.end)?r.end+1:E(r.end)+1,void 0===d().validPositions[r.begin]||d().validPositions[r.begin].input!==o.groupSeparator&&d().validPositions[r.begin].input!==o.radixPoint||r.end++),g(r.begin,r.end,!1,a),a!==!0&&s();var c=f(r.begin);c<r.begin?(-1===c&&p(),d().p=E(c)):a!==!0&&(d().p=r.begin)}function W(n){var r=this,a=t(r),s=n.keyCode,l=O(r);if(s===e.keyCode.BACKSPACE||s===e.keyCode.DELETE||h&&127===s||n.ctrlKey&&88===s&&!i("cut"))n.preventDefault(),88===s&&(lt=C().join("")),q(r,s,l),D(r,C(),d().p,n,lt!==C().join("")),r.inputmask._valueGet()===w().join("")?a.trigger("cleared"):z(C())===!0&&a.trigger("complete"),o.showTooltip&&(r.title=o.tooltip||d().mask);else if(s===e.keyCode.END||s===e.keyCode.PAGE_DOWN){n.preventDefault();var c=E(f());o.insertMode||c!==j()||n.shiftKey||c--,O(r,n.shiftKey?l.begin:c,c,!0)}else s===e.keyCode.HOME&&!n.shiftKey||s===e.keyCode.PAGE_UP?(n.preventDefault(),O(r,0,n.shiftKey?l.begin:0,!0)):(o.undoOnEscape&&s===e.keyCode.ESCAPE||90===s&&n.ctrlKey)&&n.altKey!==!0?(L(r,!0,!1,lt.split("")),a.trigger("click")):s!==e.keyCode.INSERT||n.shiftKey||n.ctrlKey?o.tabThrough===!0&&s===e.keyCode.TAB?(n.shiftKey===!0?(null===y(l.begin).fn&&(l.begin=E(l.begin)),l.end=P(l.begin,!0),l.begin=P(l.end,!0)):(l.begin=E(l.begin,!0),l.end=E(l.begin,!0),l.end<j()&&l.end--),l.begin<j()&&(n.preventDefault(),O(r,l.begin,l.end))):o.insertMode!==!1||n.shiftKey||(s===e.keyCode.RIGHT?setTimeout(function(){var t=O(r);O(r,t.begin)},0):s===e.keyCode.LEFT&&setTimeout(function(){var t=O(r);O(r,ft?t.begin+1:t.begin-1)},0)):(o.insertMode=!o.insertMode,O(r,o.insertMode||l.begin!==j()?l.begin:l.begin-1));o.onKeyDown.call(this,n,C(),O(r).begin,o),vt=-1!==t.inArray(s,o.ignorables)}function V(i,n,r,a,s){var l=this,c=t(l),u=i.which||i.charCode||i.keyCode;if(!(n===!0||i.ctrlKey&&i.altKey)&&(i.ctrlKey||i.metaKey||vt))return u===e.keyCode.ENTER&&lt!==C().join("")&&(lt=C().join(""),setTimeout(function(){c.trigger("change")},0)),!0;if(u){46===u&&i.shiftKey===!1&&","===o.radixPoint&&(u=44);var h,f=n?{begin:s,end:s}:O(l),g=String.fromCharCode(u),v=H(f.begin,f.end);v&&(d().undoPositions=t.extend(!0,{},d().validPositions),q(l,e.keyCode.DELETE,f,!0),f.begin=d().p,o.insertMode||(o.insertMode=!o.insertMode,m(f.begin,a),o.insertMode=!o.insertMode),v=!o.multi),d().writeOutBuffer=!0;var y=ft&&!v?f.end:f.begin,b=S(y,g,a);if(b!==!1){if(b!==!0&&(y=void 0!==b.pos?b.pos:y,g=void 0!==b.c?b.c:g),p(!0),void 0!==b.caret)h=b.caret;else{var x=d().validPositions;h=!o.keepStatic&&(void 0!==x[y+1]&&k(y+1,x[y].locator.slice(),y).length>1||void 0!==x[y].alternation)?y+1:E(y)}d().p=h}if(r!==!1){var w=this;if(setTimeout(function(){o.onKeyValidation.call(w,u,b,o)},0),d().writeOutBuffer&&b!==!1){var $=C();D(l,$,o.numericInput&&void 0===b.caret?P(h):h,i,n!==!0),n!==!0&&setTimeout(function(){z($)===!0&&c.trigger("complete")},0)}else v&&(d().buffer=void 0,d().validPositions=d().undoPositions)}else v&&(d().buffer=void 0,d().validPositions=d().undoPositions);if(o.showTooltip&&(l.title=o.tooltip||d().mask),n&&t.isFunction(o.onBeforeWrite)){var T=o.onBeforeWrite(i,C(),h,o);if(T&&T.refreshFromBuffer){var A=T.refreshFromBuffer;_(A===!0?A:A.start,A.end,T.buffer),p(!0),T.caret&&(d().p=T.caret)}}if(i.preventDefault(),n)return b}}function G(e){var i=this,n=e.originalEvent||e,r=t(i),a=i.inputmask._valueGet(!0),s=O(i),l=a.substr(0,s.begin),c=a.substr(s.end,a.length);l===w().slice(0,s.begin).join("")&&(l=""),c===w().slice(s.end).join("")&&(c=""),window.clipboardData&&window.clipboardData.getData?a=l+window.clipboardData.getData("Text")+c:n.clipboardData&&n.clipboardData.getData&&(a=l+n.clipboardData.getData("text/plain")+c);var u=a;if(t.isFunction(o.onBeforePaste)){if(u=o.onBeforePaste(a,o),u===!1)return e.preventDefault(),!1;u||(u=a)}return L(i,!1,!1,ft?u.split("").reverse():u.toString().split("")),D(i,C(),void 0,e,!0),r.trigger("click"),z(C())===!0&&r.trigger("complete"),!1}function Q(i){var n=this,r=n.inputmask._valueGet();if(C().join("")!==r){var a=O(n);if(r=r.replace(new RegExp("("+e.escapeRegex(w().join(""))+")*"),""),u){var o=r.replace(C().join(""),"");if(1===o.length){var s=new t.Event("keypress");return s.which=o.charCodeAt(0),V.call(n,s,!0,!0,!1,d().validPositions[a.begin-1]?a.begin:a.begin-1),!1}}if(a.begin>r.length&&(O(n,r.length),a=O(n)),C().length-r.length!==1||r.charAt(a.begin)===C()[a.begin]||r.charAt(a.begin+1)===C()[a.begin]||A(a.begin)){for(var l=f()+1,c=C().slice(l).join("");null===r.match(e.escapeRegex(c)+"$");)c=c.slice(1);r=r.replace(c,""),r=r.split(""),L(n,!0,!1,r),z(C())===!0&&t(n).trigger("complete")}else i.keyCode=e.keyCode.BACKSPACE,W.call(n,i);i.preventDefault()}}function U(t){var e=t.originalEvent||t;lt=C().join(""),""===ct||0!==e.data.indexOf(ct)}function X(e){var i=this,n=e.originalEvent||e,r=C().join("");0===n.data.indexOf(ct)&&(p(),d().p=E(-1));for(var a=n.data,s=0;s<a.length;s++){var l=new t.Event("keypress");l.which=a.charCodeAt(s),mt=!1,vt=!1,V.call(i,l,!0,!1,!1,d().p)}r!==C().join("")&&setTimeout(function(){var t=d().p;D(i,C(),o.numericInput?P(t):t)},0),ct=n.data}function K(t){}function Y(e){var i=this,n=i.inputmask._valueGet();L(i,!0,!1,(t.isFunction(o.onBeforeMask)?o.onBeforeMask(n,o)||n:n).split("")),lt=C().join(""),(o.clearMaskOnLostFocus||o.clearIncomplete)&&i.inputmask._valueGet()===w().join("")&&i.inputmask._valueSet("")}function Z(t){var e=this,i=e.inputmask._valueGet();o.showMaskOnFocus&&(!o.showMaskOnHover||o.showMaskOnHover&&""===i)?e.inputmask._valueGet()!==C().join("")&&D(e,C(),E(f())):yt===!1&&O(e,E(f())),o.positionCaretOnTab===!0&&setTimeout(function(){O(e,E(f()))},0),lt=C().join("")}function J(t){var e=this;if(yt=!1,o.clearMaskOnLostFocus&&document.activeElement!==e){var i=C().slice(),n=e.inputmask._valueGet();n!==e.getAttribute("placeholder")&&""!==n&&(-1===f()&&n===w().join("")?i=[]:R(i),D(e,i))}}function tt(e){function i(e){if(o.radixFocus&&""!==o.radixPoint){var i=d().validPositions;if(void 0===i[e]||i[e].input===M(e)){if(e<E(-1))return!0;var n=t.inArray(o.radixPoint,C());if(-1!==n){for(var r in i)if(r>n&&i[r].input!==M(r))return!1;return!0}}}return!1}var n=this;if(document.activeElement===n){var r=O(n);if(r.begin===r.end)if(i(r.begin))O(n,o.numericInput?E(t.inArray(o.radixPoint,C())):t.inArray(o.radixPoint,C()));else{var a=r.begin,s=f(a),l=E(s);l>a?O(n,A(a)||A(a-1)?a:E(a)):((C()[l]!==M(l)||!A(l,!0)&&y(l).def===M(l))&&(l=E(l)),O(n,l))}}}function et(t){var e=this;setTimeout(function(){O(e,0,E(f()))},0)}function it(i){var n=this,r=t(n),a=O(n),s=i.originalEvent||i,l=window.clipboardData||s.clipboardData,c=ft?C().slice(a.end,a.begin):C().slice(a.begin,a.end);l.setData("text",ft?c.reverse().join(""):c.join("")),document.execCommand&&document.execCommand("copy"),q(n,e.keyCode.DELETE,a),D(n,C(),d().p,i,lt!==C().join("")),n.inputmask._valueGet()===w().join("")&&r.trigger("cleared"),o.showTooltip&&(n.title=o.tooltip||d().mask)}function nt(e){var i=t(this),n=this;if(n.inputmask){var r=n.inputmask._valueGet(),a=C().slice();lt!==a.join("")&&setTimeout(function(){i.trigger("change"),lt=a.join("")},0),""!==r&&(o.clearMaskOnLostFocus&&(-1===f()&&r===w().join("")?a=[]:R(a)),z(a)===!1&&(setTimeout(function(){i.trigger("incomplete")},0),o.clearIncomplete&&(p(),a=o.clearMaskOnLostFocus?[]:w().slice())),D(n,a,void 0,e))}}function rt(t){var e=this;yt=!0,document.activeElement!==e&&o.showMaskOnHover&&e.inputmask._valueGet()!==C().join("")&&D(e,C())}function at(t){lt!==C().join("")&&ht.trigger("change"),o.clearMaskOnLostFocus&&-1===f()&&ut.inputmask._valueGet&&ut.inputmask._valueGet()===w().join("")&&ut.inputmask._valueSet(""),o.removeMaskOnSubmit&&(ut.inputmask._valueSet(ut.inputmask.unmaskedvalue(),!0),setTimeout(function(){D(ut,C())},0))}function ot(t){setTimeout(function(){ht.trigger("setvalue")},0)}function st(e){if(ut=e,ht=t(ut),o.showTooltip&&(ut.title=o.tooltip||d().mask),("rtl"===ut.dir||o.rightAlign)&&(ut.style.textAlign="right"),("rtl"===ut.dir||o.numericInput)&&(ut.dir="ltr",ut.removeAttribute("dir"),ut.inputmask.isRTL=!0,ft=!0),xt.off(ut),B(ut),n(ut,o)&&(xt.on(ut,"submit",at),xt.on(ut,"reset",ot),xt.on(ut,"mouseenter",rt),xt.on(ut,"blur",nt),xt.on(ut,"focus",Z),xt.on(ut,"mouseleave",J),xt.on(ut,"click",tt),xt.on(ut,"dblclick",et),xt.on(ut,"paste",G),xt.on(ut,"dragdrop",G),xt.on(ut,"drop",G),xt.on(ut,"cut",it),xt.on(ut,"complete",o.oncomplete),xt.on(ut,"incomplete",o.onincomplete),xt.on(ut,"cleared",o.oncleared),xt.on(ut,"keydown",W),xt.on(ut,"keypress",V),xt.on(ut,"input",Q),c||(xt.on(ut,"compositionstart",U),xt.on(ut,"compositionupdate",X),xt.on(ut,"compositionend",K))),xt.on(ut,"setvalue",Y),""!==ut.inputmask._valueGet()||o.clearMaskOnLostFocus===!1){var i=t.isFunction(o.onBeforeMask)?o.onBeforeMask(ut.inputmask._valueGet(),o)||ut.inputmask._valueGet():ut.inputmask._valueGet();L(ut,!0,!1,i.split(""));var r=C().slice();lt=r.join(""),z(r)===!1&&o.clearIncomplete&&p(),o.clearMaskOnLostFocus&&(r.join("")===w().join("")?r=[]:R(r)),D(ut,r),document.activeElement===ut&&O(ut,E(f()))}}var lt,ct,ut,ht,dt,pt,ft=!1,mt=!1,gt=!1,vt=!1,yt=!0,bt=!1,xt={on:function(i,n,r){var a=function(i){if(void 0===this.inputmask&&"FORM"!==this.nodeName){var n=t.data(this,"_inputmask_opts");n?new e(n).mask(this):xt.off(this)}else{if("setvalue"===i.type||!(this.disabled||this.readOnly&&!("keydown"===i.type&&i.ctrlKey&&67===i.keyCode||o.tabThrough===!1&&i.keyCode===e.keyCode.TAB))){switch(i.type){case"input":if(gt===!0||bt===!0)return gt=bt,i.preventDefault();break;case"keydown":mt=!1,gt=!1,bt=!1;break;case"keypress":if(mt===!0)return i.preventDefault();mt=!0;break;case"compositionstart":bt=!0;break;case"compositionupdate":gt=!0;break;case"compositionend":bt=!1;break;case"cut":gt=!0;break;case"click":if(u){var a=this;return setTimeout(function(){r.apply(a,arguments)},0),!1}}return r.apply(this,arguments)}i.preventDefault()}};i.inputmask.events[n]=i.inputmask.events[n]||[],i.inputmask.events[n].push(a),-1!==t.inArray(n,["submit","reset"])?null!=i.form&&t(i.form).on(n,a):t(i).on(n,a);
  },off:function(e,i){if(e.inputmask&&e.inputmask.events){var n;i?(n=[],n[i]=e.inputmask.events[i]):n=e.inputmask.events,t.each(n,function(i,n){for(;n.length>0;){var r=n.pop();-1!==t.inArray(i,["submit","reset"])?null!=e.form&&t(e.form).off(i,r):t(e).off(i,r)}delete e.inputmask.events[i]})}}};if(void 0!==r)switch(r.action){case"isComplete":return ut=r.el,z(C());case"unmaskedvalue":return ut=r.el,void 0!==ut&&void 0!==ut.inputmask?(a=ut.inputmask.maskset,o=ut.inputmask.opts,ft=ut.inputmask.isRTL):(pt=r.value,o.numericInput&&(ft=!0),pt=(t.isFunction(o.onBeforeMask)?o.onBeforeMask(pt,o)||pt:pt).split(""),L(void 0,!1,!1,ft?pt.reverse():pt),t.isFunction(o.onBeforeWrite)&&o.onBeforeWrite(void 0,C(),0,o)),N(ut);case"mask":ut=r.el,a=ut.inputmask.maskset,o=ut.inputmask.opts,ft=ut.inputmask.isRTL,lt=C().join(""),st(ut);break;case"format":return o.numericInput&&(ft=!0),pt=(t.isFunction(o.onBeforeMask)?o.onBeforeMask(r.value,o)||r.value:r.value).split(""),L(void 0,!1,!1,ft?pt.reverse():pt),t.isFunction(o.onBeforeWrite)&&o.onBeforeWrite(void 0,C(),0,o),r.metadata?{value:ft?C().slice().reverse().join(""):C().join(""),metadata:s({action:"getmetadata"},a,o)}:ft?C().slice().reverse().join(""):C().join("");case"isValid":o.numericInput&&(ft=!0),r.value?(pt=r.value.split(""),L(void 0,!1,!0,ft?pt.reverse():pt)):r.value=C().join("");for(var kt=C(),wt=I(),Ct=kt.length-1;Ct>wt&&!A(Ct);Ct--);return kt.splice(wt,Ct+1-wt),z(kt)&&r.value===C().join("");case"getemptymask":return w();case"remove":ut=r.el,ht=t(ut),a=ut.inputmask.maskset,o=ut.inputmask.opts,ut.inputmask._valueSet(N(ut)),xt.off(ut);var _t;Object.getOwnPropertyDescriptor&&(_t=Object.getOwnPropertyDescriptor(ut,"value")),_t&&_t.get?ut.inputmask.__valueGet&&Object.defineProperty(ut,"value",{get:ut.inputmask.__valueGet,set:ut.inputmask.__valueSet}):document.__lookupGetter__&&ut.__lookupGetter__("value")&&ut.inputmask.__valueGet&&(ut.__defineGetter__("value",ut.inputmask.__valueGet),ut.__defineSetter__("value",ut.inputmask.__valueSet)),ut.inputmask=void 0;break;case"getmetadata":if(t.isArray(a.metadata)){for(var $t,Tt=f(),St=Tt;St>=0;St--)if(d().validPositions[St]&&void 0!==d().validPositions[St].alternation){$t=d().validPositions[St].alternation;break}return void 0!==$t?a.metadata[d().validPositions[Tt].locator[$t]]:a.metadata[0]}return a.metadata}}e.prototype={defaults:{placeholder:"_",optionalmarker:{start:"[",end:"]"},quantifiermarker:{start:"{",end:"}"},groupmarker:{start:"(",end:")"},alternatormarker:"|",escapeChar:"\\",mask:null,oncomplete:t.noop,onincomplete:t.noop,oncleared:t.noop,repeat:0,greedy:!0,autoUnmask:!1,removeMaskOnSubmit:!1,clearMaskOnLostFocus:!0,insertMode:!0,clearIncomplete:!1,aliases:{},alias:null,onKeyDown:t.noop,onBeforeMask:null,onBeforePaste:function(e,i){return t.isFunction(i.onBeforeMask)?i.onBeforeMask(e,i):e},onBeforeWrite:null,onUnMask:null,showMaskOnFocus:!0,showMaskOnHover:!0,onKeyValidation:t.noop,skipOptionalPartCharacter:" ",showTooltip:!1,tooltip:void 0,numericInput:!1,rightAlign:!1,undoOnEscape:!0,radixPoint:"",groupSeparator:"",radixFocus:!1,nojumps:!1,nojumpsThreshold:0,keepStatic:null,positionCaretOnTab:!1,tabThrough:!1,supportsInputType:["text","tel","password"],definitions:{9:{validator:"[0-9]",cardinality:1,definitionSymbol:"*"},a:{validator:"[A-Za-zА-яЁёÀ-ÿµ]",cardinality:1,definitionSymbol:"*"},"*":{validator:"[0-9A-Za-zА-яЁёÀ-ÿµ]",cardinality:1}},ignorables:[8,9,13,19,27,33,34,35,36,37,38,39,40,45,46,93,112,113,114,115,116,117,118,119,120,121,122,123],isComplete:null,canClearPosition:t.noop,postValidation:null,staticDefinitionSymbol:void 0,jitMasking:!1},masksCache:{},mask:function(i){var n=this;return"string"==typeof i&&(i=document.getElementById(i)||document.querySelectorAll(i)),i=i.nodeName?[i]:i,t.each(i,function(i,r){var l=t.extend(!0,{},n.opts);a(r,l,t.extend(!0,{},n.userOptions));var c=o(l,n.noMasksCache);void 0!==c&&(void 0!==r.inputmask&&r.inputmask.remove(),r.inputmask=new e,r.inputmask.opts=l,r.inputmask.noMasksCache=n.noMasksCache,r.inputmask.userOptions=t.extend(!0,{},n.userOptions),r.inputmask.el=r,r.inputmask.maskset=c,r.inputmask.isRTL=!1,t.data(r,"_inputmask_opts",l),s({action:"mask",el:r}))}),i&&i[0]?i[0].inputmask||this:this},option:function(e){return"string"==typeof e?this.opts[e]:"object"==typeof e?(t.extend(this.opts,e),t.extend(this.userOptions,e),this.el&&(void 0!==e.mask||void 0!==e.alias?this.mask(this.el):(t.data(this.el,"_inputmask_opts",this.opts),s({action:"mask",el:this.el}))),this):void 0},unmaskedvalue:function(t){return s({action:"unmaskedvalue",el:this.el,value:t},this.el&&this.el.inputmask?this.el.inputmask.maskset:o(this.opts,this.noMasksCache),this.opts)},remove:function(){return this.el?(s({action:"remove",el:this.el}),this.el.inputmask=void 0,this.el):void 0},getemptymask:function(){return s({action:"getemptymask"},this.maskset||o(this.opts,this.noMasksCache),this.opts)},hasMaskedValue:function(){return!this.opts.autoUnmask},isComplete:function(){return s({action:"isComplete",el:this.el},this.maskset||o(this.opts,this.noMasksCache),this.opts)},getmetadata:function(){return s({action:"getmetadata"},this.maskset||o(this.opts,this.noMasksCache),this.opts)},isValid:function(t){return s({action:"isValid",value:t},this.maskset||o(this.opts,this.noMasksCache),this.opts)},format:function(t,e){return s({action:"format",value:t,metadata:e},this.maskset||o(this.opts,this.noMasksCache),this.opts)}},e.extendDefaults=function(i){t.extend(!0,e.prototype.defaults,i)},e.extendDefinitions=function(i){t.extend(!0,e.prototype.defaults.definitions,i)},e.extendAliases=function(i){t.extend(!0,e.prototype.defaults.aliases,i)},e.format=function(t,i,n){return e(i).format(t,n)},e.unmask=function(t,i){return e(i).unmaskedvalue(t)},e.isValid=function(t,i){return e(i).isValid(t)},e.remove=function(e){t.each(e,function(t,e){e.inputmask&&e.inputmask.remove()})},e.escapeRegex=function(t){var e=["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^"];return t.replace(new RegExp("(\\"+e.join("|\\")+")","gim"),"\\$1")},e.keyCode={ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91};var l=navigator.userAgent,c=/mobile/i.test(l),u=/iemobile/i.test(l),h=/iphone/i.test(l)&&!u;return/android.*safari.*/i.test(l)&&!u,window.Inputmask=e,e}(jQuery),function(t,e){return void 0===t.fn.inputmask&&(t.fn.inputmask=function(i,n){var r,a=this[0];if(n=n||{},"string"==typeof i)switch(i){case"unmaskedvalue":return a&&a.inputmask?a.inputmask.unmaskedvalue():t(a).val();case"remove":return this.each(function(){this.inputmask&&this.inputmask.remove()});case"getemptymask":return a&&a.inputmask?a.inputmask.getemptymask():"";case"hasMaskedValue":return!(!a||!a.inputmask)&&a.inputmask.hasMaskedValue();case"isComplete":return!a||!a.inputmask||a.inputmask.isComplete();case"getmetadata":return a&&a.inputmask?a.inputmask.getmetadata():void 0;case"setvalue":t(a).val(n),a&&void 0!==a.inputmask&&t(a).triggerHandler("setvalue");break;case"option":if("string"!=typeof n)return this.each(function(){return void 0!==this.inputmask?this.inputmask.option(n):void 0});if(a&&void 0!==a.inputmask)return a.inputmask.option(n);break;default:return n.alias=i,r=new e(n),this.each(function(){r.mask(this)})}else{if("object"==typeof i)return r=new e(i),void 0===i.mask&&void 0===i.alias?this.each(function(){return void 0!==this.inputmask?this.inputmask.option(i):void r.mask(this)}):this.each(function(){r.mask(this)});if(void 0===i)return this.each(function(){r=new e(n),r.mask(this)})}}),t.fn.inputmask}(jQuery,Inputmask),function(t,e){return e.extendDefinitions({h:{validator:"[01][0-9]|2[0-3]",cardinality:2,prevalidator:[{validator:"[0-2]",cardinality:1}]},s:{validator:"[0-5][0-9]",cardinality:2,prevalidator:[{validator:"[0-5]",cardinality:1}]},d:{validator:"0[1-9]|[12][0-9]|3[01]",cardinality:2,prevalidator:[{validator:"[0-3]",cardinality:1}]},m:{validator:"0[1-9]|1[012]",cardinality:2,prevalidator:[{validator:"[01]",cardinality:1}]},y:{validator:"(19|20)\\d{2}",cardinality:4,prevalidator:[{validator:"[12]",cardinality:1},{validator:"(19|20)",cardinality:2},{validator:"(19|20)\\d",cardinality:3}]}}),e.extendAliases({"dd/mm/yyyy":{mask:"1/2/y",placeholder:"dd/mm/yyyy",regex:{val1pre:new RegExp("[0-3]"),val1:new RegExp("0[1-9]|[12][0-9]|3[01]"),val2pre:function(t){var i=e.escapeRegex.call(this,t);return new RegExp("((0[1-9]|[12][0-9]|3[01])"+i+"[01])")},val2:function(t){var i=e.escapeRegex.call(this,t);return new RegExp("((0[1-9]|[12][0-9])"+i+"(0[1-9]|1[012]))|(30"+i+"(0[13-9]|1[012]))|(31"+i+"(0[13578]|1[02]))")}},leapday:"29/02/",separator:"/",yearrange:{minyear:1900,maxyear:2099},isInYearRange:function(t,e,i){if(isNaN(t))return!1;var n=parseInt(t.concat(e.toString().slice(t.length))),r=parseInt(t.concat(i.toString().slice(t.length)));return!isNaN(n)&&(n>=e&&i>=n)||!isNaN(r)&&(r>=e&&i>=r)},determinebaseyear:function(t,e,i){var n=(new Date).getFullYear();if(t>n)return t;if(n>e){for(var r=e.toString().slice(0,2),a=e.toString().slice(2,4);r+i>e;)r--;var o=r+a;return t>o?t:o}return n},onKeyDown:function(i,n,r,a){var o=t(this);if(i.ctrlKey&&i.keyCode===e.keyCode.RIGHT){var s=new Date;o.val(s.getDate().toString()+(s.getMonth()+1).toString()+s.getFullYear().toString()),o.trigger("setvalue")}},getFrontValue:function(t,e,i){for(var n=0,r=0,a=0;a<t.length&&"2"!==t.charAt(a);a++){var o=i.definitions[t.charAt(a)];o?(n+=r,r=o.cardinality):r++}return e.join("").substr(n,r)},definitions:{1:{validator:function(t,e,i,n,r){var a=r.regex.val1.test(t);return n||a||t.charAt(1)!==r.separator&&-1==="-./".indexOf(t.charAt(1))||!(a=r.regex.val1.test("0"+t.charAt(0)))?a:(e.buffer[i-1]="0",{refreshFromBuffer:{start:i-1,end:i},pos:i,c:t.charAt(0)})},cardinality:2,prevalidator:[{validator:function(t,e,i,n,r){var a=t;isNaN(e.buffer[i+1])||(a+=e.buffer[i+1]);var o=1===a.length?r.regex.val1pre.test(a):r.regex.val1.test(a);if(!n&&!o){if(o=r.regex.val1.test(t+"0"))return e.buffer[i]=t,e.buffer[++i]="0",{pos:i,c:"0"};if(o=r.regex.val1.test("0"+t))return e.buffer[i]="0",i++,{pos:i}}return o},cardinality:1}]},2:{validator:function(t,e,i,n,r){var a=r.getFrontValue(e.mask,e.buffer,r);-1!==a.indexOf(r.placeholder[0])&&(a="01"+r.separator);var o=r.regex.val2(r.separator).test(a+t);if(!n&&!o&&(t.charAt(1)===r.separator||-1!=="-./".indexOf(t.charAt(1)))&&(o=r.regex.val2(r.separator).test(a+"0"+t.charAt(0))))return e.buffer[i-1]="0",{refreshFromBuffer:{start:i-1,end:i},pos:i,c:t.charAt(0)};if(r.mask.indexOf("2")===r.mask.length-1&&o){var s=e.buffer.join("").substr(4,4)+t;if(s!==r.leapday)return!0;var l=parseInt(e.buffer.join("").substr(0,4),10);return l%4===0&&(l%100!==0||l%400===0)}return o},cardinality:2,prevalidator:[{validator:function(t,e,i,n,r){isNaN(e.buffer[i+1])||(t+=e.buffer[i+1]);var a=r.getFrontValue(e.mask,e.buffer,r);-1!==a.indexOf(r.placeholder[0])&&(a="01"+r.separator);var o=1===t.length?r.regex.val2pre(r.separator).test(a+t):r.regex.val2(r.separator).test(a+t);return n||o||!(o=r.regex.val2(r.separator).test(a+"0"+t))?o:(e.buffer[i]="0",i++,{pos:i})},cardinality:1}]},y:{validator:function(t,e,i,n,r){if(r.isInYearRange(t,r.yearrange.minyear,r.yearrange.maxyear)){var a=e.buffer.join("").substr(0,6);if(a!==r.leapday)return!0;var o=parseInt(t,10);return o%4===0&&(o%100!==0||o%400===0)}return!1},cardinality:4,prevalidator:[{validator:function(t,e,i,n,r){var a=r.isInYearRange(t,r.yearrange.minyear,r.yearrange.maxyear);if(!n&&!a){var o=r.determinebaseyear(r.yearrange.minyear,r.yearrange.maxyear,t+"0").toString().slice(0,1);if(a=r.isInYearRange(o+t,r.yearrange.minyear,r.yearrange.maxyear))return e.buffer[i++]=o.charAt(0),{pos:i};if(o=r.determinebaseyear(r.yearrange.minyear,r.yearrange.maxyear,t+"0").toString().slice(0,2),a=r.isInYearRange(o+t,r.yearrange.minyear,r.yearrange.maxyear))return e.buffer[i++]=o.charAt(0),e.buffer[i++]=o.charAt(1),{pos:i}}return a},cardinality:1},{validator:function(t,e,i,n,r){var a=r.isInYearRange(t,r.yearrange.minyear,r.yearrange.maxyear);if(!n&&!a){var o=r.determinebaseyear(r.yearrange.minyear,r.yearrange.maxyear,t).toString().slice(0,2);if(a=r.isInYearRange(t[0]+o[1]+t[1],r.yearrange.minyear,r.yearrange.maxyear))return e.buffer[i++]=o.charAt(1),{pos:i};if(o=r.determinebaseyear(r.yearrange.minyear,r.yearrange.maxyear,t).toString().slice(0,2),r.isInYearRange(o+t,r.yearrange.minyear,r.yearrange.maxyear)){var s=e.buffer.join("").substr(0,6);if(s!==r.leapday)a=!0;else{var l=parseInt(t,10);a=l%4===0&&(l%100!==0||l%400===0)}}else a=!1;if(a)return e.buffer[i-1]=o.charAt(0),e.buffer[i++]=o.charAt(1),e.buffer[i++]=t.charAt(0),{refreshFromBuffer:{start:i-3,end:i},pos:i}}return a},cardinality:2},{validator:function(t,e,i,n,r){return r.isInYearRange(t,r.yearrange.minyear,r.yearrange.maxyear)},cardinality:3}]}},insertMode:!1,autoUnmask:!1},"mm/dd/yyyy":{placeholder:"mm/dd/yyyy",alias:"dd/mm/yyyy",regex:{val2pre:function(t){var i=e.escapeRegex.call(this,t);return new RegExp("((0[13-9]|1[012])"+i+"[0-3])|(02"+i+"[0-2])")},val2:function(t){var i=e.escapeRegex.call(this,t);return new RegExp("((0[1-9]|1[012])"+i+"(0[1-9]|[12][0-9]))|((0[13-9]|1[012])"+i+"30)|((0[13578]|1[02])"+i+"31)")},val1pre:new RegExp("[01]"),val1:new RegExp("0[1-9]|1[012]")},leapday:"02/29/",onKeyDown:function(i,n,r,a){var o=t(this);if(i.ctrlKey&&i.keyCode===e.keyCode.RIGHT){var s=new Date;o.val((s.getMonth()+1).toString()+s.getDate().toString()+s.getFullYear().toString()),o.trigger("setvalue")}}},"yyyy/mm/dd":{mask:"y/1/2",placeholder:"yyyy/mm/dd",alias:"mm/dd/yyyy",leapday:"/02/29",onKeyDown:function(i,n,r,a){var o=t(this);if(i.ctrlKey&&i.keyCode===e.keyCode.RIGHT){var s=new Date;o.val(s.getFullYear().toString()+(s.getMonth()+1).toString()+s.getDate().toString()),o.trigger("setvalue")}}},"dd.mm.yyyy":{mask:"1.2.y",placeholder:"dd.mm.yyyy",leapday:"29.02.",separator:".",alias:"dd/mm/yyyy"},"dd-mm-yyyy":{mask:"1-2-y",placeholder:"dd-mm-yyyy",leapday:"29-02-",separator:"-",alias:"dd/mm/yyyy"},"mm.dd.yyyy":{mask:"1.2.y",placeholder:"mm.dd.yyyy",leapday:"02.29.",separator:".",alias:"mm/dd/yyyy"},"mm-dd-yyyy":{mask:"1-2-y",placeholder:"mm-dd-yyyy",leapday:"02-29-",separator:"-",alias:"mm/dd/yyyy"},"yyyy.mm.dd":{mask:"y.1.2",placeholder:"yyyy.mm.dd",leapday:".02.29",separator:".",alias:"yyyy/mm/dd"},"yyyy-mm-dd":{mask:"y-1-2",placeholder:"yyyy-mm-dd",leapday:"-02-29",separator:"-",alias:"yyyy/mm/dd"},datetime:{mask:"1/2/y h:s",placeholder:"dd/mm/yyyy hh:mm",alias:"dd/mm/yyyy",regex:{hrspre:new RegExp("[012]"),hrs24:new RegExp("2[0-4]|1[3-9]"),hrs:new RegExp("[01][0-9]|2[0-4]"),ampm:new RegExp("^[a|p|A|P][m|M]"),mspre:new RegExp("[0-5]"),ms:new RegExp("[0-5][0-9]")},timeseparator:":",hourFormat:"24",definitions:{h:{validator:function(t,e,i,n,r){if("24"===r.hourFormat&&24===parseInt(t,10))return e.buffer[i-1]="0",e.buffer[i]="0",{refreshFromBuffer:{start:i-1,end:i},c:"0"};var a=r.regex.hrs.test(t);if(!n&&!a&&(t.charAt(1)===r.timeseparator||-1!=="-.:".indexOf(t.charAt(1)))&&(a=r.regex.hrs.test("0"+t.charAt(0))))return e.buffer[i-1]="0",e.buffer[i]=t.charAt(0),i++,{refreshFromBuffer:{start:i-2,end:i},pos:i,c:r.timeseparator};if(a&&"24"!==r.hourFormat&&r.regex.hrs24.test(t)){var o=parseInt(t,10);return 24===o?(e.buffer[i+5]="a",e.buffer[i+6]="m"):(e.buffer[i+5]="p",e.buffer[i+6]="m"),o-=12,10>o?(e.buffer[i]=o.toString(),e.buffer[i-1]="0"):(e.buffer[i]=o.toString().charAt(1),e.buffer[i-1]=o.toString().charAt(0)),{refreshFromBuffer:{start:i-1,end:i+6},c:e.buffer[i]}}return a},cardinality:2,prevalidator:[{validator:function(t,e,i,n,r){var a=r.regex.hrspre.test(t);return n||a||!(a=r.regex.hrs.test("0"+t))?a:(e.buffer[i]="0",i++,{pos:i})},cardinality:1}]},s:{validator:"[0-5][0-9]",cardinality:2,prevalidator:[{validator:function(t,e,i,n,r){var a=r.regex.mspre.test(t);return n||a||!(a=r.regex.ms.test("0"+t))?a:(e.buffer[i]="0",i++,{pos:i})},cardinality:1}]},t:{validator:function(t,e,i,n,r){return r.regex.ampm.test(t+"m")},casing:"lower",cardinality:1}},insertMode:!1,autoUnmask:!1},datetime12:{mask:"1/2/y h:s t\\m",placeholder:"dd/mm/yyyy hh:mm xm",alias:"datetime",hourFormat:"12"},"mm/dd/yyyy hh:mm xm":{mask:"1/2/y h:s t\\m",placeholder:"mm/dd/yyyy hh:mm xm",alias:"datetime12",regex:{val2pre:function(t){var i=e.escapeRegex.call(this,t);return new RegExp("((0[13-9]|1[012])"+i+"[0-3])|(02"+i+"[0-2])")},val2:function(t){var i=e.escapeRegex.call(this,t);return new RegExp("((0[1-9]|1[012])"+i+"(0[1-9]|[12][0-9]))|((0[13-9]|1[012])"+i+"30)|((0[13578]|1[02])"+i+"31)")},val1pre:new RegExp("[01]"),val1:new RegExp("0[1-9]|1[012]")},leapday:"02/29/",onKeyDown:function(i,n,r,a){var o=t(this);if(i.ctrlKey&&i.keyCode===e.keyCode.RIGHT){var s=new Date;o.val((s.getMonth()+1).toString()+s.getDate().toString()+s.getFullYear().toString()),o.trigger("setvalue")}}},"hh:mm t":{mask:"h:s t\\m",placeholder:"hh:mm xm",alias:"datetime",hourFormat:"12"},"h:s t":{mask:"h:s t\\m",placeholder:"hh:mm xm",alias:"datetime",hourFormat:"12"},"hh:mm:ss":{mask:"h:s:s",placeholder:"hh:mm:ss",alias:"datetime",autoUnmask:!1},"hh:mm":{mask:"h:s",placeholder:"hh:mm",alias:"datetime",autoUnmask:!1},date:{alias:"dd/mm/yyyy"},"mm/yyyy":{mask:"1/y",placeholder:"mm/yyyy",leapday:"donotuse",separator:"/",alias:"mm/dd/yyyy"},shamsi:{regex:{val2pre:function(t){var i=e.escapeRegex.call(this,t);return new RegExp("((0[1-9]|1[012])"+i+"[0-3])")},val2:function(t){var i=e.escapeRegex.call(this,t);return new RegExp("((0[1-9]|1[012])"+i+"(0[1-9]|[12][0-9]))|((0[1-9]|1[012])"+i+"30)|((0[1-6])"+i+"31)")},val1pre:new RegExp("[01]"),val1:new RegExp("0[1-9]|1[012]")},yearrange:{minyear:1300,maxyear:1499},mask:"y/1/2",leapday:"/12/30",placeholder:"yyyy/mm/dd",alias:"mm/dd/yyyy",clearIncomplete:!0}}),e}(jQuery,Inputmask),function(t,e){return e.extendDefinitions({A:{validator:"[A-Za-zА-яЁёÀ-ÿµ]",cardinality:1,casing:"upper"},"&":{validator:"[0-9A-Za-zА-яЁёÀ-ÿµ]",cardinality:1,casing:"upper"},"#":{validator:"[0-9A-Fa-f]",cardinality:1,casing:"upper"}}),e.extendAliases({url:{definitions:{i:{validator:".",cardinality:1}},mask:"(\\http://)|(\\http\\s://)|(ftp://)|(ftp\\s://)i{+}",insertMode:!1,autoUnmask:!1},ip:{mask:"i[i[i]].i[i[i]].i[i[i]].i[i[i]]",definitions:{i:{validator:function(t,e,i,n,r){return i-1>-1&&"."!==e.buffer[i-1]?(t=e.buffer[i-1]+t,t=i-2>-1&&"."!==e.buffer[i-2]?e.buffer[i-2]+t:"0"+t):t="00"+t,new RegExp("25[0-5]|2[0-4][0-9]|[01][0-9][0-9]").test(t)},cardinality:1}},onUnMask:function(t,e,i){return t}},email:{mask:"*{1,64}[.*{1,64}][.*{1,64}][.*{1,64}]@*{1,64}[.*{2,64}][.*{2,6}][.*{1,2}]",greedy:!1,onBeforePaste:function(t,e){return t=t.toLowerCase(),t.replace("mailto:","")},definitions:{"*":{validator:"[0-9A-Za-z!#$%&'*+/=?^_`{|}~-]",cardinality:1,casing:"lower"}},onUnMask:function(t,e,i){return t}},mac:{mask:"##:##:##:##:##:##"}}),e}(jQuery,Inputmask),function(t,e){return e.extendAliases({numeric:{mask:function(t){function e(e){for(var i="",n=0;n<e.length;n++)i+=t.definitions[e.charAt(n)]?"\\"+e.charAt(n):e.charAt(n);return i}if(0!==t.repeat&&isNaN(t.integerDigits)&&(t.integerDigits=t.repeat),t.repeat=0,t.groupSeparator===t.radixPoint&&("."===t.radixPoint?t.groupSeparator=",":","===t.radixPoint?t.groupSeparator=".":t.groupSeparator="")," "===t.groupSeparator&&(t.skipOptionalPartCharacter=void 0),t.autoGroup=t.autoGroup&&""!==t.groupSeparator,t.autoGroup&&("string"==typeof t.groupSize&&isFinite(t.groupSize)&&(t.groupSize=parseInt(t.groupSize)),isFinite(t.integerDigits))){var i=Math.floor(t.integerDigits/t.groupSize),n=t.integerDigits%t.groupSize;t.integerDigits=parseInt(t.integerDigits)+(0===n?i-1:i),t.integerDigits<1&&(t.integerDigits="*")}t.placeholder.length>1&&(t.placeholder=t.placeholder.charAt(0)),t.radixFocus=t.radixFocus&&""!==t.placeholder&&t.integerOptional===!0,t.definitions[";"]=t.definitions["~"],t.definitions[";"].definitionSymbol="~",1==t.numericInput&&(t.radixFocus=!1,t.digitsOptional=!1,isNaN(t.digits)&&(t.digits=2),t.decimalProtect=!1);var r=e(t.prefix);return r+="[+]",r+=t.integerOptional===!0?"~{1,"+t.integerDigits+"}":"~{"+t.integerDigits+"}",void 0!==t.digits&&(isNaN(t.digits)||parseInt(t.digits)>0)&&(r+=t.digitsOptional?"["+(t.decimalProtect?":":t.radixPoint)+";{1,"+t.digits+"}]":(t.decimalProtect?":":t.radixPoint)+";{"+t.digits+"}"),""!==t.negationSymbol.back&&(r+="[-]"),r+=e(t.suffix),t.greedy=!1,r},placeholder:"",greedy:!1,digits:"*",digitsOptional:!0,radixPoint:".",radixFocus:!0,groupSize:3,groupSeparator:"",autoGroup:!1,allowPlus:!0,allowMinus:!0,negationSymbol:{front:"-",back:""},integerDigits:"+",integerOptional:!0,prefix:"",suffix:"",rightAlign:!0,decimalProtect:!0,min:null,max:null,step:1,insertMode:!0,autoUnmask:!1,unmaskAsNumber:!1,postFormat:function(i,n,r,a){a.numericInput===!0&&(i=i.reverse(),isFinite(n)&&(n=i.join("").length-n-1));var o,s,l=!1;i.length>=a.suffix.length&&i.join("").indexOf(a.suffix)===i.length-a.suffix.length&&(i.length=i.length-a.suffix.length,l=!0),n=n>=i.length?i.length-1:n<a.prefix.length?a.prefix.length:n;var c=!1,u=i[n];if(""===a.groupSeparator||a.numericInput!==!0&&-1!==t.inArray(a.radixPoint,i)&&n>t.inArray(a.radixPoint,i)||new RegExp("["+e.escapeRegex(a.negationSymbol.front)+"+]").test(u)){if(l)for(o=0,s=a.suffix.length;s>o;o++)i.push(a.suffix.charAt(o));return{pos:n}}var h=i.slice();u===a.groupSeparator&&(h.splice(n--,1),u=h[n]),r?u!==a.radixPoint&&(h[n]="?"):h.splice(n,0,"?");var d=h.join(""),p=d;if(d.length>0&&a.autoGroup||r&&-1!==d.indexOf(a.groupSeparator)){var f=e.escapeRegex(a.groupSeparator);c=0===d.indexOf(a.groupSeparator),d=d.replace(new RegExp(f,"g"),"");var m=d.split(a.radixPoint);if(d=""===a.radixPoint?d:m[0],d!==a.prefix+"?0"&&d.length>=a.groupSize+a.prefix.length)for(var g=new RegExp("([-+]?[\\d?]+)([\\d?]{"+a.groupSize+"})");g.test(d);)d=d.replace(g,"$1"+a.groupSeparator+"$2"),d=d.replace(a.groupSeparator+a.groupSeparator,a.groupSeparator);""!==a.radixPoint&&m.length>1&&(d+=a.radixPoint+m[1])}for(c=p!==d,i.length=d.length,o=0,s=d.length;s>o;o++)i[o]=d.charAt(o);var v=t.inArray("?",i);if(-1===v&&u===a.radixPoint&&(v=t.inArray(a.radixPoint,i)),r?i[v]=u:i.splice(v,1),!c&&l)for(o=0,s=a.suffix.length;s>o;o++)i.push(a.suffix.charAt(o));return v=a.numericInput&&isFinite(n)?i.join("").length-v-1:v,a.numericInput&&(i=i.reverse(),t.inArray(a.radixPoint,i)<v&&i.join("").length-a.suffix.length!==v&&(v-=1)),{pos:v,refreshFromBuffer:c,buffer:i}},onBeforeWrite:function(i,n,r,a){if(i&&("blur"===i.type||"checkval"===i.type)){var o=n.join(""),s=o.replace(a.prefix,"");if(s=s.replace(a.suffix,""),s=s.replace(new RegExp(e.escapeRegex(a.groupSeparator),"g"),""),","===a.radixPoint&&(s=s.replace(e.escapeRegex(a.radixPoint),".")),isFinite(s)&&isFinite(a.min)&&parseFloat(s)<parseFloat(a.min))return t.extend(!0,{refreshFromBuffer:!0,buffer:(a.prefix+a.min).split("")},a.postFormat((a.prefix+a.min).split(""),0,!0,a));if(a.numericInput!==!0){var l=""!==a.radixPoint?n.join("").split(a.radixPoint):[n.join("")],c=l[0].match(a.regex.integerPart(a)),u=2===l.length?l[1].match(a.regex.integerNPart(a)):void 0;if(c){c[0]!==a.negationSymbol.front+"0"&&c[0]!==a.negationSymbol.front&&"+"!==c[0]||void 0!==u&&!u[0].match(/^0+$/)||n.splice(c.index,1);var h=t.inArray(a.radixPoint,n);if(-1!==h){if(isFinite(a.digits)&&!a.digitsOptional){for(var d=1;d<=a.digits;d++)(void 0===n[h+d]||n[h+d]===a.placeholder.charAt(0))&&(n[h+d]="0");return{refreshFromBuffer:o!==n.join(""),buffer:n}}if(h===n.length-a.suffix.length-1)return n.splice(h,1),{refreshFromBuffer:!0,buffer:n}}}}}if(a.autoGroup){var p=a.postFormat(n,a.numericInput?r:r-1,!0,a);return p.caret=r<=a.prefix.length?p.pos:p.pos+1,p}},regex:{integerPart:function(t){return new RegExp("["+e.escapeRegex(t.negationSymbol.front)+"+]?\\d+")},integerNPart:function(t){return new RegExp("[\\d"+e.escapeRegex(t.groupSeparator)+"]+")}},signHandler:function(t,e,i,n,r){if(!n&&r.allowMinus&&"-"===t||r.allowPlus&&"+"===t){var a=e.buffer.join("").match(r.regex.integerPart(r));if(a&&a[0].length>0)return e.buffer[a.index]===("-"===t?"+":r.negationSymbol.front)?"-"===t?""!==r.negationSymbol.back?{pos:a.index,c:r.negationSymbol.front,remove:a.index,caret:i,insert:{pos:e.buffer.length-r.suffix.length-1,c:r.negationSymbol.back}}:{pos:a.index,c:r.negationSymbol.front,remove:a.index,caret:i}:""!==r.negationSymbol.back?{pos:a.index,c:"+",remove:[a.index,e.buffer.length-r.suffix.length-1],caret:i}:{pos:a.index,c:"+",remove:a.index,caret:i}:e.buffer[a.index]===("-"===t?r.negationSymbol.front:"+")?"-"===t&&""!==r.negationSymbol.back?{remove:[a.index,e.buffer.length-r.suffix.length-1],caret:i-1}:{remove:a.index,caret:i-1}:"-"===t?""!==r.negationSymbol.back?{pos:a.index,c:r.negationSymbol.front,caret:i+1,insert:{pos:e.buffer.length-r.suffix.length,c:r.negationSymbol.back}}:{pos:a.index,c:r.negationSymbol.front,caret:i+1}:{pos:a.index,c:t,caret:i+1}}return!1},radixHandler:function(e,i,n,r,a){if(!r&&(-1!==t.inArray(e,[",","."])&&(e=a.radixPoint),e===a.radixPoint&&void 0!==a.digits&&(isNaN(a.digits)||parseInt(a.digits)>0))){var o=t.inArray(a.radixPoint,i.buffer),s=i.buffer.join("").match(a.regex.integerPart(a));if(-1!==o&&i.validPositions[o])return i.validPositions[o-1]?{caret:o+1}:{pos:s.index,c:s[0],caret:o+1};if(!s||"0"===s[0]&&s.index+1!==n)return i.buffer[s?s.index:n]="0",{pos:(s?s.index:n)+1,c:a.radixPoint}}return!1},leadingZeroHandler:function(e,i,n,r,a){if(a.numericInput===!0){if("0"===i.buffer[i.buffer.length-a.prefix.length-1])return{pos:n,remove:i.buffer.length-a.prefix.length-1}}else{var o=i.buffer.join("").match(a.regex.integerNPart(a)),s=t.inArray(a.radixPoint,i.buffer);if(o&&!r&&(-1===s||s>=n))if(0===o[0].indexOf("0")){n<a.prefix.length&&(n=o.index);var l=t.inArray(a.radixPoint,i._buffer),c=i._buffer&&i.buffer.slice(s).join("")===i._buffer.slice(l).join("")||0===parseInt(i.buffer.slice(s+1).join("")),u=i._buffer&&i.buffer.slice(o.index,s).join("")===i._buffer.slice(a.prefix.length,l).join("")||"0"===i.buffer.slice(o.index,s).join("");if(-1===s||c&&u)return i.buffer.splice(o.index,1),n=n>o.index?n-1:o.index,{pos:n,remove:o.index};if(o.index+1===n||"0"===e)return i.buffer.splice(o.index,1),n=o.index,{pos:n,remove:o.index}}else if("0"===e&&n<=o.index&&o[0]!==a.groupSeparator)return!1}return!0},postValidation:function(t,i,n){var r=!0,a=n.numericInput?t.slice().reverse().join(""):t.join(""),o=a.replace(n.prefix,"");return o=o.replace(n.suffix,""),o=o.replace(new RegExp(e.escapeRegex(n.groupSeparator),"g"),""),","===n.radixPoint&&(o=o.replace(e.escapeRegex(n.radixPoint),".")),o=o.replace(new RegExp("^"+e.escapeRegex(n.negationSymbol.front)),"-"),o=o.replace(new RegExp(e.escapeRegex(n.negationSymbol.back)+"$"),""),o=o===n.negationSymbol.front?o+"0":o,isFinite(o)&&(null!==n.max&&isFinite(n.max)&&(o=parseFloat(o)>parseFloat(n.max)?n.max:o,r=n.postFormat((n.prefix+o).split(""),0,!0,n)),null!==n.min&&isFinite(n.min)&&(o=parseFloat(o)<parseFloat(n.min)?n.min:o,r=n.postFormat((n.prefix+o).split(""),0,!0,n))),r},definitions:{"~":{validator:function(i,n,r,a,o){var s=o.signHandler(i,n,r,a,o);if(!s&&(s=o.radixHandler(i,n,r,a,o),!s&&(s=a?new RegExp("[0-9"+e.escapeRegex(o.groupSeparator)+"]").test(i):new RegExp("[0-9]").test(i),s===!0&&(s=o.leadingZeroHandler(i,n,r,a,o),s===!0)))){var l=t.inArray(o.radixPoint,n.buffer);s=-1!==l&&o.digitsOptional===!1&&o.numericInput!==!0&&r>l&&!a?{pos:r,remove:r}:{pos:r}}return s},cardinality:1,prevalidator:null},"+":{validator:function(t,e,i,n,r){var a=r.signHandler(t,e,i,n,r);return!a&&(n&&r.allowMinus&&t===r.negationSymbol.front||r.allowMinus&&"-"===t||r.allowPlus&&"+"===t)&&(a="-"!==t||(""!==r.negationSymbol.back?{pos:i,c:"-"===t?r.negationSymbol.front:"+",caret:i+1,insert:{pos:e.buffer.length,c:r.negationSymbol.back}}:{pos:i,c:"-"===t?r.negationSymbol.front:"+",caret:i+1})),a},cardinality:1,prevalidator:null,placeholder:""},"-":{validator:function(t,e,i,n,r){var a=r.signHandler(t,e,i,n,r);return!a&&n&&r.allowMinus&&t===r.negationSymbol.back&&(a=!0),a},cardinality:1,prevalidator:null,placeholder:""},":":{validator:function(t,i,n,r,a){var o=a.signHandler(t,i,n,r,a);if(!o){var s="["+e.escapeRegex(a.radixPoint)+",\\.]";o=new RegExp(s).test(t),o&&i.validPositions[n]&&i.validPositions[n].match.placeholder===a.radixPoint&&(o={caret:n+1})}return o?{c:a.radixPoint}:o},cardinality:1,prevalidator:null,placeholder:function(t){return t.radixPoint}}},onUnMask:function(t,i,n){var r=t.replace(n.prefix,"");return r=r.replace(n.suffix,""),r=r.replace(new RegExp(e.escapeRegex(n.groupSeparator),"g"),""),n.unmaskAsNumber?(""!==n.radixPoint&&-1!==r.indexOf(n.radixPoint)&&(r=r.replace(e.escapeRegex.call(this,n.radixPoint),".")),Number(r)):r},isComplete:function(t,i){var n=t.join(""),r=t.slice();if(i.postFormat(r,0,!0,i),r.join("")!==n)return!1;var a=n.replace(i.prefix,"");return a=a.replace(i.suffix,""),a=a.replace(new RegExp(e.escapeRegex(i.groupSeparator),"g"),""),","===i.radixPoint&&(a=a.replace(e.escapeRegex(i.radixPoint),".")),isFinite(a)},onBeforeMask:function(t,i){if(""!==i.radixPoint&&isFinite(t))t=t.toString().replace(".",i.radixPoint);else{var n=t.match(/,/g),r=t.match(/\./g);r&&n?r.length>n.length?(t=t.replace(/\./g,""),t=t.replace(",",i.radixPoint)):n.length>r.length?(t=t.replace(/,/g,""),t=t.replace(".",i.radixPoint)):t=t.indexOf(".")<t.indexOf(",")?t.replace(/\./g,""):t=t.replace(/,/g,""):t=t.replace(new RegExp(e.escapeRegex(i.groupSeparator),"g"),"")}if(0===i.digits&&(-1!==t.indexOf(".")?t=t.substring(0,t.indexOf(".")):-1!==t.indexOf(",")&&(t=t.substring(0,t.indexOf(",")))),""!==i.radixPoint&&isFinite(i.digits)&&-1!==t.indexOf(i.radixPoint)){var a=t.split(i.radixPoint),o=a[1].match(new RegExp("\\d*"))[0];if(parseInt(i.digits)<o.toString().length){var s=Math.pow(10,parseInt(i.digits));t=t.replace(e.escapeRegex(i.radixPoint),"."),t=Math.round(parseFloat(t)*s)/s,t=t.toString().replace(".",i.radixPoint)}}return t.toString()},canClearPosition:function(i,n,r,a,o){var s=i.validPositions[n].input,l=s!==o.radixPoint||null!==i.validPositions[n].match.fn&&o.decimalProtect===!1||isFinite(s)||n===r||s===o.groupSeparator||s===o.negationSymbol.front||s===o.negationSymbol.back;if(l&&isFinite(s)){var c,u=t.inArray(o.radixPoint,i.buffer),h=!1;if(void 0===i.validPositions[u]&&(i.validPositions[u]={input:o.radixPoint},h=!0),!a&&i.buffer){c=i.buffer.join("").substr(0,n).match(o.regex.integerNPart(o));var d=n+1,p=null==c||0===parseInt(c[0].replace(new RegExp(e.escapeRegex(o.groupSeparator),"g"),""));if(p)for(;i.validPositions[d]&&(i.validPositions[d].input===o.groupSeparator||"0"===i.validPositions[d].input);)delete i.validPositions[d],d++}var f=[];for(var m in i.validPositions)void 0!==i.validPositions[m].input&&f.push(i.validPositions[m].input);if(h&&delete i.validPositions[u],u>0){var g=f.join("");if(c=g.match(o.regex.integerNPart(o)))if(u>=n)if(0===c[0].indexOf("0"))l=c.index!==n||"0"===o.placeholder;else{var v=parseInt(c[0].replace(new RegExp(e.escapeRegex(o.groupSeparator),"g"),"")),y=parseInt(g.split(o.radixPoint)[1]);10>v&&i.validPositions[n]&&("0"!==o.placeholder||y>0)&&(i.validPositions[n].input="0",i.p=o.prefix.length+1,l=!1)}else 0===c[0].indexOf("0")&&3===g.length&&(i.validPositions={},l=!1)}}return l},onKeyDown:function(i,n,r,a){var o=t(this);if(i.ctrlKey)switch(i.keyCode){case e.keyCode.UP:o.val(parseFloat(this.inputmask.unmaskedvalue())+parseInt(a.step)),o.trigger("setvalue");break;case e.keyCode.DOWN:o.val(parseFloat(this.inputmask.unmaskedvalue())-parseInt(a.step)),o.trigger("setvalue")}}},currency:{prefix:"$ ",groupSeparator:",",alias:"numeric",placeholder:"0",autoGroup:!0,digits:2,digitsOptional:!1,clearMaskOnLostFocus:!1},decimal:{alias:"numeric"},integer:{alias:"numeric",digits:0,radixPoint:""},percentage:{alias:"numeric",digits:2,radixPoint:".",placeholder:"0",autoGroup:!1,min:0,max:100,suffix:" %",allowPlus:!1,allowMinus:!1}}),e}(jQuery,Inputmask),function(t,e){return e.extendAliases({phone:{url:"phone-codes/phone-codes.js",countrycode:"",phoneCodeCache:{},mask:function(e){if(void 0===e.phoneCodeCache[e.url]){
  var i=[];e.definitions["#"]=e.definitions[9],t.ajax({url:e.url,async:!1,type:"get",dataType:"json",success:function(t){i=t},error:function(t,i,n){alert(n+" - "+e.url)}}),e.phoneCodeCache[e.url]=i.sort(function(t,e){return(t.mask||t)<(e.mask||e)?-1:1})}return e.phoneCodeCache[e.url]},keepStatic:!1,nojumps:!0,nojumpsThreshold:1,onBeforeMask:function(t,e){var i=t.replace(/^0{1,2}/,"").replace(/[\s]/g,"");return(i.indexOf(e.countrycode)>1||-1===i.indexOf(e.countrycode))&&(i="+"+e.countrycode+i),i}},phonebe:{alias:"phone",url:"phone-codes/phone-be.js",countrycode:"32",nojumpsThreshold:4}}),e}(jQuery,Inputmask),function(t,e){return e.extendAliases({Regex:{mask:"r",greedy:!1,repeat:"*",regex:null,regexTokens:null,tokenizer:/\[\^?]?(?:[^\\\]]+|\\[\S\s]?)*]?|\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9][0-9]*|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|c[A-Za-z]|[\S\s]?)|\((?:\?[:=!]?)?|(?:[?*+]|\{[0-9]+(?:,[0-9]*)?\})\??|[^.?*+^${[()|\\]+|./g,quantifierFilter:/[0-9]+[^,]/,isComplete:function(t,e){return new RegExp(e.regex).test(t.join(""))},definitions:{r:{validator:function(e,i,n,r,a){function o(t,e){this.matches=[],this.isGroup=t||!1,this.isQuantifier=e||!1,this.quantifier={min:1,max:1},this.repeaterPart=void 0}function s(){var t,e,i=new o,n=[];for(a.regexTokens=[];t=a.tokenizer.exec(a.regex);)switch(e=t[0],e.charAt(0)){case"(":n.push(new o((!0)));break;case")":u=n.pop(),n.length>0?n[n.length-1].matches.push(u):i.matches.push(u);break;case"{":case"+":case"*":var r=new o((!1),(!0));e=e.replace(/[{}]/g,"");var s=e.split(","),l=isNaN(s[0])?s[0]:parseInt(s[0]),c=1===s.length?l:isNaN(s[1])?s[1]:parseInt(s[1]);if(r.quantifier={min:l,max:c},n.length>0){var h=n[n.length-1].matches;t=h.pop(),t.isGroup||(u=new o((!0)),u.matches.push(t),t=u),h.push(t),h.push(r)}else t=i.matches.pop(),t.isGroup||(u=new o((!0)),u.matches.push(t),t=u),i.matches.push(t),i.matches.push(r);break;default:n.length>0?n[n.length-1].matches.push(e):i.matches.push(e)}i.matches.length>0&&a.regexTokens.push(i)}function l(e,i){var n=!1;i&&(d+="(",f++);for(var r=0;r<e.matches.length;r++){var a=e.matches[r];if(a.isGroup===!0)n=l(a,!0);else if(a.isQuantifier===!0){var o=t.inArray(a,e.matches),s=e.matches[o-1],u=d;if(isNaN(a.quantifier.max)){for(;a.repeaterPart&&a.repeaterPart!==d&&a.repeaterPart.length>d.length&&!(n=l(s,!0)););n=n||l(s,!0),n&&(a.repeaterPart=d),d=u+a.quantifier.max}else{for(var h=0,p=a.quantifier.max-1;p>h&&!(n=l(s,!0));h++);d=u+"{"+a.quantifier.min+","+a.quantifier.max+"}"}}else if(void 0!==a.matches)for(var m=0;m<a.length&&!(n=l(a[m],i));m++);else{var g;if("["==a.charAt(0)){g=d,g+=a;for(var v=0;f>v;v++)g+=")";var y=new RegExp("^("+g+")$");n=y.test(c)}else for(var b=0,x=a.length;x>b;b++)if("\\"!==a.charAt(b)){g=d,g+=a.substr(0,b+1),g=g.replace(/\|$/,"");for(var v=0;f>v;v++)g+=")";var y=new RegExp("^("+g+")$");if(n=y.test(c))break}d+=a}if(n)break}return i&&(d+=")",f--),n}var c,u,h=i.buffer.slice(),d="",p=!1,f=0;null===a.regexTokens&&s(),h.splice(n,0,e),c=h.join("");for(var m=0;m<a.regexTokens.length;m++){var g=a.regexTokens[m];if(p=l(g,g.isGroup))break}return p},cardinality:1}}}}),e}(jQuery,Inputmask),function(t){t.fn.yiiActiveForm=function(e){return s[e]?s[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?(t.error("Method "+e+" does not exist on jQuery.yiiActiveForm"),!1):s.init.apply(this,arguments)};var e,i={beforeValidate:"beforeValidate",afterValidate:"afterValidate",beforeValidateAttribute:"beforeValidateAttribute",afterValidateAttribute:"afterValidateAttribute",beforeSubmit:"beforeSubmit",ajaxBeforeSend:"ajaxBeforeSend",ajaxComplete:"ajaxComplete",afterInit:"afterInit"},n={encodeErrorSummary:!0,errorSummary:".error-summary",validateOnSubmit:!0,errorCssClass:"has-error",successCssClass:"has-success",validatingCssClass:"validating",ajaxParam:"ajax",ajaxDataType:"json",validationUrl:void 0,scrollToError:!0},r={id:void 0,name:void 0,container:void 0,input:void 0,error:".help-block",encodeError:!0,validateOnChange:!0,validateOnBlur:!0,validateOnType:!1,validationDelay:500,enableAjaxValidation:!1,validate:void 0,status:0,cancelled:!1,value:void 0},a=function(i){e=t.Deferred(),i.data("yiiSubmitFinalizePromise",e.promise())},o=function(t){e&&(e.resolve(),e=void 0,t.removeData("yiiSubmitFinalizePromise"))},s={init:function(e,a){return this.each(function(){var o=t(this);if(!o.data("yiiActiveForm")){var c=t.extend({},n,a||{});void 0===c.validationUrl&&(c.validationUrl=o.attr("action")),t.each(e,function(i){e[i]=t.extend({value:y(o,this)},r,this),l(o,e[i])}),o.data("yiiActiveForm",{settings:c,attributes:e,submitting:!1,validated:!1,options:p(o)}),o.bind("reset.yiiActiveForm",s.resetForm),c.validateOnSubmit&&(o.on("mouseup.yiiActiveForm keyup.yiiActiveForm",":submit",function(){o.data("yiiActiveForm").submitObject=t(this)}),o.on("submit.yiiActiveForm",s.submitForm));var u=t.Event(i.afterInit);o.trigger(u)}})},add:function(e){var i=t(this);e=t.extend({value:y(i,e)},r,e),i.data("yiiActiveForm").attributes.push(e),l(i,e)},remove:function(e){var i=t(this),n=i.data("yiiActiveForm").attributes,r=-1,a=void 0;return t.each(n,function(t){if(n[t].id==e)return r=t,a=n[t],!1}),r>=0&&(n.splice(r,1),c(i,a)),a},validateAttribute:function(e){var i=s.find.call(this,e);void 0!=i&&u(t(this),i,!0)},find:function(e){var i=t(this).data("yiiActiveForm").attributes,n=void 0;return t.each(i,function(t){if(i[t].id==e)return n=i[t],!1}),n},destroy:function(){return this.each(function(){t(this).unbind(".yiiActiveForm"),t(this).removeData("yiiActiveForm")})},data:function(){return this.data("yiiActiveForm")},validate:function(e){e&&(t(this).data("yiiActiveForm").submitting=!0);var n=t(this),r=n.data("yiiActiveForm"),a=!1,s={},l=h(),c=r.submitting;if(c){var u=t.Event(i.beforeValidate);if(n.trigger(u,[s,l]),u.result===!1)return r.submitting=!1,void o(n)}t.each(r.attributes,function(){if(this.$form=n,!t(this.input).is(":disabled")&&(this.cancelled=!1,r.submitting||2===this.status||3===this.status)){var e=s[this.id];void 0===e&&(e=[],s[this.id]=e);var o=t.Event(i.beforeValidateAttribute);n.trigger(o,[this,e,l]),o.result!==!1?(this.validate&&this.validate(this,y(n,this),e,l,n),this.enableAjaxValidation&&(a=!0)):this.cancelled=!0}}),t.when.apply(this,l).always(function(){for(var e in s)0===s[e].length&&delete s[e];if(a&&(t.isEmptyObject(s)||r.submitting)){var l=r.submitObject,u="&"+r.settings.ajaxParam+"="+n.attr("id");l&&l.length&&l.attr("name")&&(u+="&"+l.attr("name")+"="+l.attr("value")),t.ajax({url:r.settings.validationUrl,type:n.attr("method"),data:n.serialize()+u,dataType:r.settings.ajaxDataType,complete:function(t,e){n.trigger(i.ajaxComplete,[t,e])},beforeSend:function(t,e){n.trigger(i.ajaxBeforeSend,[t,e])},success:function(e){null!==e&&"object"==typeof e?(t.each(r.attributes,function(){this.enableAjaxValidation&&!this.cancelled||delete e[this.id]}),f(n,t.extend(s,e),c)):f(n,s,c)},error:function(){r.submitting=!1,o(n)}})}else r.submitting?setTimeout(function(){f(n,s,c)},200):f(n,s,c)})},submitForm:function(){var e=t(this),n=e.data("yiiActiveForm");if(n.validated){n.submitting=!1;var r=t.Event(i.beforeSubmit);return e.trigger(r),r.result===!1?(n.validated=!1,o(e),!1):(m(e),!0)}return a(e),void 0!==n.settings.timer&&clearTimeout(n.settings.timer),n.submitting=!0,s.validate.call(e),!1},resetForm:function(){var e=t(this),i=e.data("yiiActiveForm");setTimeout(function(){t.each(i.attributes,function(){this.value=y(e,this),this.status=0;var t=e.find(this.container);t.removeClass(i.settings.validatingCssClass+" "+i.settings.errorCssClass+" "+i.settings.successCssClass),t.find(this.error).html("")}),e.find(i.settings.errorSummary).hide().find("ul").html("")},1)},updateMessages:function(e,i){var n=t(this),r=n.data("yiiActiveForm");t.each(r.attributes,function(){g(n,this,e)}),i&&v(n,e)},updateAttribute:function(e,i){var n=s.find.call(this,e);if(void 0!=n){var r={};r[e]=i,g(t(this),n,r)}}},l=function(e,i){var n=b(e,i);i.validateOnChange&&n.on("change.yiiActiveForm",function(){u(e,i,!1)}),i.validateOnBlur&&n.on("blur.yiiActiveForm",function(){0!=i.status&&1!=i.status||u(e,i,!0)}),i.validateOnType&&n.on("keyup.yiiActiveForm",function(n){t.inArray(n.which,[16,17,18,37,38,39,40])===-1&&i.value!==y(e,i)&&u(e,i,!1,i.validationDelay)})},c=function(t,e){b(t,e).off(".yiiActiveForm")},u=function(e,i,n,r){var a=e.data("yiiActiveForm");n&&(i.status=2),t.each(a.attributes,function(){this.value!==y(e,this)&&(this.status=2,n=!0)}),n&&(void 0!==a.settings.timer&&clearTimeout(a.settings.timer),a.settings.timer=setTimeout(function(){a.submitting||e.is(":hidden")||(t.each(a.attributes,function(){2===this.status&&(this.status=3,e.find(this.container).addClass(a.settings.validatingCssClass))}),s.validate.call(e))},r?r:200))},h=function(){var e=[];return e.add=function(e){this.push(new t.Deferred(e))},e},d=["action","target","method","enctype"],p=function(t){for(var e={},i=0;i<d.length;i++)e[d[i]]=t.attr(d[i]);return e},f=function(e,n,r){var a=e.data("yiiActiveForm");if(void 0===a)return!1;if(r){var s=[];if(t.each(a.attributes,function(){t(this.input).is(":disabled")||this.cancelled||!g(e,this,n)||s.push(this)}),e.trigger(i.afterValidate,[n,s]),v(e,n),s.length){if(a.settings.scrollToError){var l=e.find(t.map(s,function(t){return t.input}).join(",")).first().closest(":visible").offset().top,c=t(window).scrollTop();(l<c||l>c+t(window).height())&&t(window).scrollTop(l)}a.submitting=!1}else a.validated=!0,a.submitObject?a.submitObject.trigger("click"):e.submit()}else t.each(a.attributes,function(){this.cancelled||2!==this.status&&3!==this.status||g(e,this,n)});o(e)},m=function(e){var i=e.data("yiiActiveForm"),n=i.submitObject||e.find(":submit:first");if(n.length&&"submit"==n.attr("type")&&n.attr("name")){var r=t('input[type="hidden"][name="'+n.attr("name")+'"]',e);r.length?r.attr("value",n.attr("value")):t("<input>").attr({type:"hidden",name:n.attr("name"),value:n.attr("value")}).appendTo(e)}},g=function(e,n,r){var a=e.data("yiiActiveForm"),o=b(e,n),s=!1;if(t.isArray(r[n.id])||(r[n.id]=[]),e.trigger(i.afterValidateAttribute,[n,r[n.id]]),n.status=1,o.length){s=r[n.id].length>0;var l=e.find(n.container),c=l.find(n.error);s?(n.encodeError?c.text(r[n.id][0]):c.html(r[n.id][0]),l.removeClass(a.settings.validatingCssClass+" "+a.settings.successCssClass).addClass(a.settings.errorCssClass)):(c.empty(),l.removeClass(a.settings.validatingCssClass+" "+a.settings.errorCssClass+" ").addClass(a.settings.successCssClass)),n.value=y(e,n)}return s},v=function(e,i){var n=e.data("yiiActiveForm"),r=e.find(n.settings.errorSummary),a=r.find("ul").empty();r.length&&i&&(t.each(n.attributes,function(){if(t.isArray(i[this.id])&&i[this.id].length){var e=t("<li/>");n.settings.encodeErrorSummary?e.text(i[this.id][0]):e.html(i[this.id][0]),a.append(e)}}),r.toggle(a.find("li").length>0))},y=function(t,e){var i=b(t,e),n=i.attr("type");if("checkbox"===n||"radio"===n){var r=i.filter(":checked");return r.length||(r=t.find('input[type=hidden][name="'+i.attr("name")+'"]')),r.val()}return i.val()},b=function(t,e){var i=t.find(e.input);return i.length&&"div"===i[0].tagName.toLowerCase()?i.find("input"):i}}(window.jQuery),yii.validation=function(t){function e(e,i,n){if("undefined"==typeof File)return[];var r=t(e.input,e.$form).get(0).files;return r?0===r.length?(n.skipOnEmpty||i.push(n.uploadRequired),[]):n.maxFiles&&n.maxFiles<r.length?(i.push(n.tooMany),[]):r:(i.push(n.message),[])}function i(t,e,i){if(i.extensions&&i.extensions.length>0){var r,a;r=t.name.lastIndexOf("."),a=~r?t.name.substr(r+1,t.name.length).toLowerCase():"",~i.extensions.indexOf(a)||e.push(i.wrongExtension.replace(/\{file\}/g,t.name))}i.mimeTypes&&i.mimeTypes.length>0&&(n(i.mimeTypes,t.type)||e.push(i.wrongMimeType.replace(/\{file\}/g,t.name))),i.maxSize&&i.maxSize<t.size&&e.push(i.tooBig.replace(/\{file\}/g,t.name)),i.minSize&&i.minSize>t.size&&e.push(i.tooSmall.replace(/\{file\}/g,t.name))}function n(t,e){for(var i=0,n=t.length;i<n;i++)if(new RegExp(t[i]).test(e))return!0;return!1}var r={isEmpty:function(t){return null===t||void 0===t||t==[]||""===t},addMessage:function(t,e,i){t.push(e.replace(/\{value\}/g,i))},required:function(e,i,n){var a=!1;if(void 0===n.requiredValue){var o="string"==typeof e||e instanceof String;(n.strict&&void 0!==e||!n.strict&&!r.isEmpty(o?t.trim(e):e))&&(a=!0)}else(!n.strict&&e==n.requiredValue||n.strict&&e===n.requiredValue)&&(a=!0);a||r.addMessage(i,n.message,e)},boolean:function(t,e,i){if(!i.skipOnEmpty||!r.isEmpty(t)){var n=!i.strict&&(t==i.trueValue||t==i.falseValue)||i.strict&&(t===i.trueValue||t===i.falseValue);n||r.addMessage(e,i.message,t)}},string:function(t,e,i){if(!i.skipOnEmpty||!r.isEmpty(t)){if("string"!=typeof t)return void r.addMessage(e,i.message,t);void 0!==i.min&&t.length<i.min&&r.addMessage(e,i.tooShort,t),void 0!==i.max&&t.length>i.max&&r.addMessage(e,i.tooLong,t),void 0!==i.is&&t.length!=i.is&&r.addMessage(e,i.notEqual,t)}},file:function(n,r,a){var o=e(n,r,a);t.each(o,function(t,e){i(e,r,a)})},image:function(n,r,a,o){var s=e(n,r,a);t.each(s,function(e,n){if(i(n,r,a),"undefined"!=typeof FileReader){var s=t.Deferred(),l=new FileReader,c=new Image;c.onload=function(){a.minWidth&&this.width<a.minWidth&&r.push(a.underWidth.replace(/\{file\}/g,n.name)),a.maxWidth&&this.width>a.maxWidth&&r.push(a.overWidth.replace(/\{file\}/g,n.name)),a.minHeight&&this.height<a.minHeight&&r.push(a.underHeight.replace(/\{file\}/g,n.name)),a.maxHeight&&this.height>a.maxHeight&&r.push(a.overHeight.replace(/\{file\}/g,n.name)),s.resolve()},c.onerror=function(){r.push(a.notImage.replace(/\{file\}/g,n.name)),s.resolve()},l.onload=function(){c.src=l.result},l.onerror=function(){s.resolve()},l.readAsDataURL(n),o.push(s)}})},number:function(t,e,i){if(!i.skipOnEmpty||!r.isEmpty(t)){if("string"==typeof t&&!t.match(i.pattern))return void r.addMessage(e,i.message,t);void 0!==i.min&&t<i.min&&r.addMessage(e,i.tooSmall,t),void 0!==i.max&&t>i.max&&r.addMessage(e,i.tooBig,t)}},range:function(e,i,n){if(!n.skipOnEmpty||!r.isEmpty(e)){if(!n.allowArray&&t.isArray(e))return void r.addMessage(i,n.message,e);var a=!0;t.each(t.isArray(e)?e:[e],function(e,i){return t.inArray(i,n.range)!=-1||(a=!1,!1)}),n.not===a&&r.addMessage(i,n.message,e)}},regularExpression:function(t,e,i){i.skipOnEmpty&&r.isEmpty(t)||(!i.not&&!t.match(i.pattern)||i.not&&t.match(i.pattern))&&r.addMessage(e,i.message,t)},email:function(t,e,i){if(!i.skipOnEmpty||!r.isEmpty(t)){var n=!0,a=/^((?:"?([^"]*)"?\s)?)(?:\s+)?(?:(<?)((.+)@([^>]+))(>?))$/,o=a.exec(t);null===o?n=!1:(i.enableIDN&&(o[5]=punycode.toASCII(o[5]),o[6]=punycode.toASCII(o[6]),t=o[1]+o[3]+o[5]+"@"+o[6]+o[7]),n=!(o[5].length>64)&&(!((o[5]+"@"+o[6]).length>254)&&(t.match(i.pattern)||i.allowName&&t.match(i.fullPattern)))),n||r.addMessage(e,i.message,t)}},url:function(t,e,i){if(!i.skipOnEmpty||!r.isEmpty(t)){i.defaultScheme&&!t.match(/:\/\//)&&(t=i.defaultScheme+"://"+t);var n=!0;if(i.enableIDN){var a=/^([^:]+):\/\/([^\/]+)(.*)$/,o=a.exec(t);null===o?n=!1:t=o[1]+"://"+punycode.toASCII(o[2])+o[3]}n&&t.match(i.pattern)||r.addMessage(e,i.message,t)}},trim:function(e,i,n){var a=e.find(i.input),o=a.val();return n.skipOnEmpty&&r.isEmpty(o)||(o=t.trim(o),a.val(o)),o},captcha:function(e,i,n){if(!n.skipOnEmpty||!r.isEmpty(e)){var a=t("body").data(n.hashKey);a=null==a?n.hash:a[n.caseSensitive?0:1];for(var o=n.caseSensitive?e:e.toLowerCase(),s=o.length-1,l=0;s>=0;--s)l+=o.charCodeAt(s);l!=a&&r.addMessage(i,n.message,e)}},compare:function(e,i,n){if(!n.skipOnEmpty||!r.isEmpty(e)){var a,o=!0;switch(a=void 0===n.compareAttribute?n.compareValue:t("#"+n.compareAttribute).val(),"number"===n.type&&(e=parseFloat(e),a=parseFloat(a)),n.operator){case"==":o=e==a;break;case"===":o=e===a;break;case"!=":o=e!=a;break;case"!==":o=e!==a;break;case">":o=e>a;break;case">=":o=e>=a;break;case"<":o=e<a;break;case"<=":o=e<=a;break;default:o=!1}o||r.addMessage(i,n.message,e)}},ip:function(t,e,i){var n=function(t){return t.indexOf(":")===-1?4:6},a=null,o=null;if(!i.skipOnEmpty||!r.isEmpty(t)){var s=new RegExp(i.ipParsePattern).exec(t);return s&&(a=s[1]||null,t=s[2],o=s[4]||null),i.subnet===!0&&null===o?void r.addMessage(e,i.messages.noSubnet,t):i.subnet===!1&&null!==o?void r.addMessage(e,i.messages.hasSubnet,t):i.negation===!1&&null!==a?void r.addMessage(e,i.messages.message,t):void(6==n(t)?(i.ipv6||r.addMessage(e,i.messages.ipv6NotAllowed,t),new RegExp(i.ipv6Pattern).test(t)||r.addMessage(e,i.messages.message,t)):(i.ipv4||r.addMessage(e,i.messages.ipv4NotAllowed,t),new RegExp(i.ipv4Pattern).test(t)||r.addMessage(e,i.messages.message,t)))}}};return r}(jQuery),function(t,e,i,n){var r=t(e);t.fn.lazyload=function(a){function o(){var e=0;l.each(function(){var i=t(this);if(!c.skip_invisible||i.is(":visible"))if(t.abovethetop(this,c)||t.leftofbegin(this,c));else if(t.belowthefold(this,c)||t.rightoffold(this,c)){if(++e>c.failure_limit)return!1}else i.trigger("appear"),e=0})}var s,l=this,c={threshold:0,failure_limit:0,event:"scroll",effect:"show",container:e,data_attribute:"original",skip_invisible:!1,appear:null,load:null,placeholder:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB/AAffA0nNPuCLAAAAAElFTkSuQmCC"};return a&&(n!==a.failurelimit&&(a.failure_limit=a.failurelimit,delete a.failurelimit),n!==a.effectspeed&&(a.effect_speed=a.effectspeed,delete a.effectspeed),t.extend(c,a)),s=c.container===n||c.container===e?r:t(c.container),0===c.event.indexOf("scroll")&&s.bind(c.event,function(){return o()}),this.each(function(){var e=this,i=t(e);e.loaded=!1,i.attr("src")!==n&&i.attr("src")!==!1||i.is("img")&&i.attr("src",c.placeholder),i.one("appear",function(){if(!this.loaded){if(c.appear){var n=l.length;c.appear.call(e,n,c)}t("<img />").bind("load",function(){var n=i.attr("data-"+c.data_attribute);i.hide(),i.is("img")?i.attr("src",n):i.css("background-image","url('"+n+"')"),i[c.effect](c.effect_speed),e.loaded=!0;var r=t.grep(l,function(t){return!t.loaded});if(l=t(r),c.load){var a=l.length;c.load.call(e,a,c)}}).attr("src",i.attr("data-"+c.data_attribute))}}),0!==c.event.indexOf("scroll")&&i.bind(c.event,function(){e.loaded||i.trigger("appear")})}),r.bind("resize",function(){o()}),/(?:iphone|ipod|ipad).*os 5/gi.test(navigator.appVersion)&&r.bind("pageshow",function(e){e.originalEvent&&e.originalEvent.persisted&&l.each(function(){t(this).trigger("appear")})}),t(i).ready(function(){o()}),this},t.belowthefold=function(i,a){var o;return o=a.container===n||a.container===e?(e.innerHeight?e.innerHeight:r.height())+r.scrollTop():t(a.container).offset().top+t(a.container).height(),o<=t(i).offset().top-a.threshold},t.rightoffold=function(i,a){var o;return o=a.container===n||a.container===e?r.width()+r.scrollLeft():t(a.container).offset().left+t(a.container).width(),o<=t(i).offset().left-a.threshold},t.abovethetop=function(i,a){var o;return o=a.container===n||a.container===e?r.scrollTop():t(a.container).offset().top,o>=t(i).offset().top+a.threshold+t(i).height()},t.leftofbegin=function(i,a){var o;return o=a.container===n||a.container===e?r.scrollLeft():t(a.container).offset().left,o>=t(i).offset().left+a.threshold+t(i).width()},t.inviewport=function(e,i){return!(t.rightoffold(e,i)||t.leftofbegin(e,i)||t.belowthefold(e,i)||t.abovethetop(e,i))},t.extend(t.expr[":"],{"below-the-fold":function(e){return t.belowthefold(e,{threshold:0})},"above-the-top":function(e){return!t.belowthefold(e,{threshold:0})},"right-of-screen":function(e){return t.rightoffold(e,{threshold:0})},"left-of-screen":function(e){return!t.rightoffold(e,{threshold:0})},"in-viewport":function(e){return t.inviewport(e,{threshold:0})},"above-the-fold":function(e){return!t.belowthefold(e,{threshold:0})},"right-of-fold":function(e){return t.rightoffold(e,{threshold:0})},"left-of-fold":function(e){return!t.rightoffold(e,{threshold:0})}})}(jQuery,window,document),$(function(){lazyInit(),$(document).on("pjax:complete",function(){lazyInit()}),$(document).on("translated.owl.carousel",function(){lazyInit()})}),function(t,e,i,n){var r=i("html"),a=i(t),o=i(e),s=i.fancybox=function(){s.open.apply(this,arguments)},l=navigator.userAgent.match(/msie/i),c=null,u=e.createTouch!==n,h=function(t){return t&&t.hasOwnProperty&&t instanceof i},d=function(t){return t&&"string"===i.type(t)},p=function(t){return d(t)&&0<t.indexOf("%")},f=function(t,e){var i=parseInt(t,10)||0;return e&&p(t)&&(i*=s.getViewport()[e]/100),Math.ceil(i)},m=function(t,e){return f(t,e)+"px"};i.extend(s,{version:"2.1.5",defaults:{padding:15,margin:20,width:800,height:600,minWidth:100,minHeight:100,maxWidth:9999,maxHeight:9999,pixelRatio:1,autoSize:!0,autoHeight:!1,autoWidth:!1,autoResize:!0,autoCenter:!u,fitToView:!0,aspectRatio:!1,topRatio:.5,leftRatio:.5,scrolling:"auto",wrapCSS:"",arrows:!0,closeBtn:!0,closeClick:!1,nextClick:!1,mouseWheel:!0,autoPlay:!1,playSpeed:3e3,preload:3,modal:!1,loop:!0,ajax:{dataType:"html",headers:{"X-fancyBox":!0}},iframe:{scrolling:"auto",preload:!0},swf:{wmode:"transparent",allowfullscreen:"true",allowscriptaccess:"always"},keys:{next:{13:"left",34:"up",39:"left",40:"up"},prev:{8:"right",33:"down",37:"right",38:"down"},close:[27],play:[32],toggle:[70]},direction:{next:"left",prev:"right"},scrollOutside:!0,index:0,type:null,href:null,content:null,title:null,tpl:{wrap:'<div class="fancybox-wrap" tabIndex="-1"><div class="fancybox-skin"><div class="fancybox-outer"><div class="fancybox-inner"></div></div></div></div>',image:'<img class="fancybox-image" src="{href}" alt="" />',iframe:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen'+(l?' allowtransparency="true"':"")+"></iframe>",error:'<p class="fancybox-error">The requested content cannot be loaded.<br/>Please try again later.</p>',closeBtn:'<a title="Close" class="fancybox-item fancybox-close" href="javascript:;"></a>',next:'<a title="Next" class="fancybox-nav fancybox-next" href="javascript:;"><span></span></a>',prev:'<a title="Previous" class="fancybox-nav fancybox-prev" href="javascript:;"><span></span></a>'},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:!0,openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:250,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:250,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:!0,title:!0},onCancel:i.noop,beforeLoad:i.noop,afterLoad:i.noop,beforeShow:i.noop,afterShow:i.noop,beforeChange:i.noop,beforeClose:i.noop,afterClose:i.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:!1,isOpen:!1,isOpened:!1,wrap:null,skin:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(t,e){if(t&&(i.isPlainObject(e)||(e={}),!1!==s.close(!0)))return i.isArray(t)||(t=h(t)?i(t).get():[t]),i.each(t,function(r,a){var o,l,c,u,p,f={};"object"===i.type(a)&&(a.nodeType&&(a=i(a)),h(a)?(f={href:a.data("fancybox-href")||a.attr("href"),title:a.data("fancybox-title")||a.attr("title"),isDom:!0,element:a},i.metadata&&i.extend(!0,f,a.metadata())):f=a),o=e.href||f.href||(d(a)?a:null),l=e.title!==n?e.title:f.title||"",u=(c=e.content||f.content)?"html":e.type||f.type,!u&&f.isDom&&(u=a.data("fancybox-type"),u||(u=(u=a.prop("class").match(/fancybox\.(\w+)/))?u[1]:null)),d(o)&&(u||(s.isImage(o)?u="image":s.isSWF(o)?u="swf":"#"===o.charAt(0)?u="inline":d(a)&&(u="html",c=a)),"ajax"===u&&(p=o.split(/\s+/,2),o=p.shift(),p=p.shift())),c||("inline"===u?o?c=i(d(o)?o.replace(/.*(?=#[^\s]+$)/,""):o):f.isDom&&(c=a):"html"===u?c=o:!u&&!o&&f.isDom&&(u="inline",c=a)),i.extend(f,{href:o,type:u,content:c,title:l,selector:p}),t[r]=f}),s.opts=i.extend(!0,{},s.defaults,e),e.keys!==n&&(s.opts.keys=!!e.keys&&i.extend({},s.defaults.keys,e.keys)),s.group=t,s._start(s.opts.index)},cancel:function(){var t=s.coming;t&&!1!==s.trigger("onCancel")&&(s.hideLoading(),s.ajaxLoad&&s.ajaxLoad.abort(),s.ajaxLoad=null,s.imgPreload&&(s.imgPreload.onload=s.imgPreload.onerror=null),t.wrap&&t.wrap.stop(!0,!0).trigger("onReset").remove(),s.coming=null,s.current||s._afterZoomOut(t))},close:function(t){s.cancel(),!1!==s.trigger("beforeClose")&&(s.unbindEvents(),s.isActive&&(s.isOpen&&!0!==t?(s.isOpen=s.isOpened=!1,s.isClosing=!0,i(".fancybox-item, .fancybox-nav").remove(),s.wrap.stop(!0,!0).removeClass("fancybox-opened"),s.transitions[s.current.closeMethod]()):(i(".fancybox-wrap").stop(!0).trigger("onReset").remove(),s._afterZoomOut())))},play:function(t){var e=function(){clearTimeout(s.player.timer)},i=function(){e(),s.current&&s.player.isActive&&(s.player.timer=setTimeout(s.next,s.current.playSpeed))},n=function(){e(),o.unbind(".player"),s.player.isActive=!1,s.trigger("onPlayEnd")};!0===t||!s.player.isActive&&!1!==t?s.current&&(s.current.loop||s.current.index<s.group.length-1)&&(s.player.isActive=!0,o.bind({"onCancel.player beforeClose.player":n,"onUpdate.player":i,"beforeLoad.player":e}),i(),s.trigger("onPlayStart")):n()},next:function(t){var e=s.current;e&&(d(t)||(t=e.direction.next),s.jumpto(e.index+1,t,"next"))},prev:function(t){var e=s.current;e&&(d(t)||(t=e.direction.prev),s.jumpto(e.index-1,t,"prev"))},jumpto:function(t,e,i){var r=s.current;r&&(t=f(t),s.direction=e||r.direction[t>=r.index?"next":"prev"],s.router=i||"jumpto",r.loop&&(0>t&&(t=r.group.length+t%r.group.length),t%=r.group.length),r.group[t]!==n&&(s.cancel(),s._start(t)))},reposition:function(t,e){var n,r=s.current,a=r?r.wrap:null;a&&(n=s._getPosition(e),t&&"scroll"===t.type?(delete n.position,a.stop(!0,!0).animate(n,200)):(a.css(n),r.pos=i.extend({},r.dim,n)))},update:function(t){var e=t&&t.type,i=!e||"orientationchange"===e;i&&(clearTimeout(c),c=null),s.isOpen&&!c&&(c=setTimeout(function(){var n=s.current;n&&!s.isClosing&&(s.wrap.removeClass("fancybox-tmp"),(i||"load"===e||"resize"===e&&n.autoResize)&&s._setDimension(),"scroll"===e&&n.canShrink||s.reposition(t),s.trigger("onUpdate"),c=null)},i&&!u?0:300))},toggle:function(t){s.isOpen&&(s.current.fitToView="boolean"===i.type(t)?t:!s.current.fitToView,u&&(s.wrap.removeAttr("style").addClass("fancybox-tmp"),s.trigger("onUpdate")),s.update())},hideLoading:function(){o.unbind(".loading"),i("#fancybox-loading").remove()},showLoading:function(){var t,e;s.hideLoading(),t=i('<div id="fancybox-loading"><div></div></div>').click(s.cancel).appendTo("body"),o.bind("keydown.loading",function(t){27===(t.which||t.keyCode)&&(t.preventDefault(),s.cancel())}),s.defaults.fixed||(e=s.getViewport(),t.css({position:"absolute",top:.5*e.h+e.y,left:.5*e.w+e.x}))},getViewport:function(){var e=s.current&&s.current.locked||!1,i={x:a.scrollLeft(),y:a.scrollTop()};return e?(i.w=e[0].clientWidth,i.h=e[0].clientHeight):(i.w=u&&t.innerWidth?t.innerWidth:a.width(),i.h=u&&t.innerHeight?t.innerHeight:a.height()),i},unbindEvents:function(){s.wrap&&h(s.wrap)&&s.wrap.unbind(".fb"),o.unbind(".fb"),a.unbind(".fb")},bindEvents:function(){var t,e=s.current;e&&(a.bind("orientationchange.fb"+(u?"":" resize.fb")+(e.autoCenter&&!e.locked?" scroll.fb":""),s.update),(t=e.keys)&&o.bind("keydown.fb",function(r){var a=r.which||r.keyCode,o=r.target||r.srcElement;return(27!==a||!s.coming)&&void(!r.ctrlKey&&!r.altKey&&!r.shiftKey&&!r.metaKey&&(!o||!o.type&&!i(o).is("[contenteditable]"))&&i.each(t,function(t,o){return 1<e.group.length&&o[a]!==n?(s[t](o[a]),r.preventDefault(),!1):-1<i.inArray(a,o)?(s[t](),r.preventDefault(),!1):void 0}))}),i.fn.mousewheel&&e.mouseWheel&&s.wrap.bind("mousewheel.fb",function(t,n,r,a){for(var o=i(t.target||null),l=!1;o.length&&!l&&!o.is(".fancybox-skin")&&!o.is(".fancybox-wrap");)l=o[0]&&!(o[0].style.overflow&&"hidden"===o[0].style.overflow)&&(o[0].clientWidth&&o[0].scrollWidth>o[0].clientWidth||o[0].clientHeight&&o[0].scrollHeight>o[0].clientHeight),o=i(o).parent();0!==n&&!l&&1<s.group.length&&!e.canShrink&&(0<a||0<r?s.prev(0<a?"down":"left"):(0>a||0>r)&&s.next(0>a?"up":"right"),t.preventDefault())}))},trigger:function(t,e){var n,r=e||s.coming||s.current;if(r){if(i.isFunction(r[t])&&(n=r[t].apply(r,Array.prototype.slice.call(arguments,1))),!1===n)return!1;r.helpers&&i.each(r.helpers,function(e,n){n&&s.helpers[e]&&i.isFunction(s.helpers[e][t])&&s.helpers[e][t](i.extend(!0,{},s.helpers[e].defaults,n),r)}),o.trigger(t)}},isImage:function(t){return d(t)&&t.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)},isSWF:function(t){return d(t)&&t.match(/\.(swf)((\?|#).*)?$/i)},_start:function(t){var e,n,r={};if(t=f(t),e=s.group[t]||null,!e)return!1;if(r=i.extend(!0,{},s.opts,e),e=r.margin,n=r.padding,"number"===i.type(e)&&(r.margin=[e,e,e,e]),"number"===i.type(n)&&(r.padding=[n,n,n,n]),r.modal&&i.extend(!0,r,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1,mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}}),r.autoSize&&(r.autoWidth=r.autoHeight=!0),"auto"===r.width&&(r.autoWidth=!0),"auto"===r.height&&(r.autoHeight=!0),r.group=s.group,r.index=t,s.coming=r,!1===s.trigger("beforeLoad"))s.coming=null;else{if(n=r.type,e=r.href,!n)return s.coming=null,!(!s.current||!s.router||"jumpto"===s.router)&&(s.current.index=t,s[s.router](s.direction));if(s.isActive=!0,"image"!==n&&"swf"!==n||(r.autoHeight=r.autoWidth=!1,r.scrolling="visible"),"image"===n&&(r.aspectRatio=!0),"iframe"===n&&u&&(r.scrolling="scroll"),r.wrap=i(r.tpl.wrap).addClass("fancybox-"+(u?"mobile":"desktop")+" fancybox-type-"+n+" fancybox-tmp "+r.wrapCSS).appendTo(r.parent||"body"),i.extend(r,{skin:i(".fancybox-skin",r.wrap),outer:i(".fancybox-outer",r.wrap),inner:i(".fancybox-inner",r.wrap)}),i.each(["Top","Right","Bottom","Left"],function(t,e){r.skin.css("padding"+e,m(r.padding[t]))}),s.trigger("onReady"),"inline"===n||"html"===n){if(!r.content||!r.content.length)return s._error("content")}else if(!e)return s._error("href");"image"===n?s._loadImage():"ajax"===n?s._loadAjax():"iframe"===n?s._loadIframe():s._afterLoad()}},_error:function(t){i.extend(s.coming,{type:"html",autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:"no",hasError:t,content:s.coming.tpl.error}),s._afterLoad()},_loadImage:function(){var t=s.imgPreload=new Image;t.onload=function(){this.onload=this.onerror=null,s.coming.width=this.width/s.opts.pixelRatio,s.coming.height=this.height/s.opts.pixelRatio,s._afterLoad()},t.onerror=function(){this.onload=this.onerror=null,s._error("image")},t.src=s.coming.href,!0!==t.complete&&s.showLoading()},_loadAjax:function(){var t=s.coming;s.showLoading(),s.ajaxLoad=i.ajax(i.extend({},t.ajax,{url:t.href,error:function(t,e){s.coming&&"abort"!==e?s._error("ajax",t):s.hideLoading()},success:function(e,i){"success"===i&&(t.content=e,s._afterLoad())}}))},_loadIframe:function(){var t=s.coming,e=i(t.tpl.iframe.replace(/\{rnd\}/g,(new Date).getTime())).attr("scrolling",u?"auto":t.iframe.scrolling).attr("src",t.href);i(t.wrap).bind("onReset",function(){try{i(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(t){}}),t.iframe.preload&&(s.showLoading(),e.one("load",function(){i(this).data("ready",1),u||i(this).bind("load.fb",s.update),i(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show(),s._afterLoad()})),t.content=e.appendTo(t.inner),t.iframe.preload||s._afterLoad()},_preloadImages:function(){var t,e,i=s.group,n=s.current,r=i.length,a=n.preload?Math.min(n.preload,r-1):0;for(e=1;e<=a;e+=1)t=i[(n.index+e)%r],"image"===t.type&&t.href&&((new Image).src=t.href)},_afterLoad:function(){var t,e,n,r,a,o=s.coming,l=s.current;if(s.hideLoading(),o&&!1!==s.isActive)if(!1===s.trigger("afterLoad",o,l))o.wrap.stop(!0).trigger("onReset").remove(),s.coming=null;else{switch(l&&(s.trigger("beforeChange",l),l.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove()),s.unbindEvents(),t=o.content,e=o.type,n=o.scrolling,i.extend(s,{wrap:o.wrap,skin:o.skin,outer:o.outer,inner:o.inner,current:o,previous:l}),r=o.href,e){case"inline":case"ajax":case"html":o.selector?t=i("<div>").html(t).find(o.selector):h(t)&&(t.data("fancybox-placeholder")||t.data("fancybox-placeholder",i('<div class="fancybox-placeholder"></div>').insertAfter(t).hide()),
  t=t.show().detach(),o.wrap.bind("onReset",function(){i(this).find(t).length&&t.hide().replaceAll(t.data("fancybox-placeholder")).data("fancybox-placeholder",!1)}));break;case"image":t=o.tpl.image.replace("{href}",r);break;case"swf":t='<object id="fancybox-swf" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%"><param name="movie" value="'+r+'"></param>',a="",i.each(o.swf,function(e,i){t+='<param name="'+e+'" value="'+i+'"></param>',a+=" "+e+'="'+i+'"'}),t+='<embed src="'+r+'" type="application/x-shockwave-flash" width="100%" height="100%"'+a+"></embed></object>"}(!h(t)||!t.parent().is(o.inner))&&o.inner.append(t),s.trigger("beforeShow"),o.inner.css("overflow","yes"===n?"scroll":"no"===n?"hidden":n),s._setDimension(),s.reposition(),s.isOpen=!1,s.coming=null,s.bindEvents(),s.isOpened?l.prevMethod&&s.transitions[l.prevMethod]():i(".fancybox-wrap").not(o.wrap).stop(!0).trigger("onReset").remove(),s.transitions[s.isOpened?o.nextMethod:o.openMethod](),s._preloadImages()}},_setDimension:function(){var t,e,n,r,a,o,l,c,u,h=s.getViewport(),d=0,g=!1,v=!1,g=s.wrap,y=s.skin,b=s.inner,x=s.current,v=x.width,k=x.height,w=x.minWidth,C=x.minHeight,_=x.maxWidth,$=x.maxHeight,T=x.scrolling,S=x.scrollOutside?x.scrollbarWidth:0,A=x.margin,j=f(A[1]+A[3]),E=f(A[0]+A[2]);if(g.add(y).add(b).width("auto").height("auto").removeClass("fancybox-tmp"),A=f(y.outerWidth(!0)-y.width()),t=f(y.outerHeight(!0)-y.height()),e=j+A,n=E+t,r=p(v)?(h.w-e)*f(v)/100:v,a=p(k)?(h.h-n)*f(k)/100:k,"iframe"===x.type){if(u=x.content,x.autoHeight&&1===u.data("ready"))try{u[0].contentWindow.document.location&&(b.width(r).height(9999),o=u.contents().find("body"),S&&o.css("overflow-x","hidden"),a=o.outerHeight(!0))}catch(t){}}else(x.autoWidth||x.autoHeight)&&(b.addClass("fancybox-tmp"),x.autoWidth||b.width(r),x.autoHeight||b.height(a),x.autoWidth&&(r=b.width()),x.autoHeight&&(a=b.height()),b.removeClass("fancybox-tmp"));if(v=f(r),k=f(a),c=r/a,w=f(p(w)?f(w,"w")-e:w),_=f(p(_)?f(_,"w")-e:_),C=f(p(C)?f(C,"h")-n:C),$=f(p($)?f($,"h")-n:$),o=_,l=$,x.fitToView&&(_=Math.min(h.w-e,_),$=Math.min(h.h-n,$)),e=h.w-j,E=h.h-E,x.aspectRatio?(v>_&&(v=_,k=f(v/c)),k>$&&(k=$,v=f(k*c)),v<w&&(v=w,k=f(v/c)),k<C&&(k=C,v=f(k*c))):(v=Math.max(w,Math.min(v,_)),x.autoHeight&&"iframe"!==x.type&&(b.width(v),k=b.height()),k=Math.max(C,Math.min(k,$))),x.fitToView)if(b.width(v).height(k),g.width(v+A),h=g.width(),j=g.height(),x.aspectRatio)for(;(h>e||j>E)&&v>w&&k>C&&!(19<d++);)k=Math.max(C,Math.min($,k-10)),v=f(k*c),v<w&&(v=w,k=f(v/c)),v>_&&(v=_,k=f(v/c)),b.width(v).height(k),g.width(v+A),h=g.width(),j=g.height();else v=Math.max(w,Math.min(v,v-(h-e))),k=Math.max(C,Math.min(k,k-(j-E)));S&&"auto"===T&&k<a&&v+A+S<e&&(v+=S),b.width(v).height(k),g.width(v+A),h=g.width(),j=g.height(),g=(h>e||j>E)&&v>w&&k>C,v=x.aspectRatio?v<o&&k<l&&v<r&&k<a:(v<o||k<l)&&(v<r||k<a),i.extend(x,{dim:{width:m(h),height:m(j)},origWidth:r,origHeight:a,canShrink:g,canExpand:v,wPadding:A,hPadding:t,wrapSpace:j-y.outerHeight(!0),skinSpace:y.height()-k}),!u&&x.autoHeight&&k>C&&k<$&&!v&&b.height("auto")},_getPosition:function(t){var e=s.current,i=s.getViewport(),n=e.margin,r=s.wrap.width()+n[1]+n[3],a=s.wrap.height()+n[0]+n[2],n={position:"absolute",top:n[0],left:n[3]};return e.autoCenter&&e.fixed&&!t&&a<=i.h&&r<=i.w?n.position="fixed":e.locked||(n.top+=i.y,n.left+=i.x),n.top=m(Math.max(n.top,n.top+(i.h-a)*e.topRatio)),n.left=m(Math.max(n.left,n.left+(i.w-r)*e.leftRatio)),n},_afterZoomIn:function(){var t=s.current;t&&(s.isOpen=s.isOpened=!0,s.wrap.css("overflow","visible").addClass("fancybox-opened"),s.update(),(t.closeClick||t.nextClick&&1<s.group.length)&&s.inner.css("cursor","pointer").bind("click.fb",function(e){!i(e.target).is("a")&&!i(e.target).parent().is("a")&&(e.preventDefault(),s[t.closeClick?"close":"next"]())}),t.closeBtn&&i(t.tpl.closeBtn).appendTo(s.skin).bind("click.fb",function(t){t.preventDefault(),s.close()}),t.arrows&&1<s.group.length&&((t.loop||0<t.index)&&i(t.tpl.prev).appendTo(s.outer).bind("click.fb",s.prev),(t.loop||t.index<s.group.length-1)&&i(t.tpl.next).appendTo(s.outer).bind("click.fb",s.next)),s.trigger("afterShow"),t.loop||t.index!==t.group.length-1?s.opts.autoPlay&&!s.player.isActive&&(s.opts.autoPlay=!1,s.play()):s.play(!1))},_afterZoomOut:function(t){t=t||s.current,i(".fancybox-wrap").trigger("onReset").remove(),i.extend(s,{group:{},opts:{},router:!1,current:null,isActive:!1,isOpened:!1,isOpen:!1,isClosing:!1,wrap:null,skin:null,outer:null,inner:null}),s.trigger("afterClose",t)}}),s.transitions={getOrigPosition:function(){var t=s.current,e=t.element,i=t.orig,n={},r=50,a=50,o=t.hPadding,l=t.wPadding,c=s.getViewport();return!i&&t.isDom&&e.is(":visible")&&(i=e.find("img:first"),i.length||(i=e)),h(i)?(n=i.offset(),i.is("img")&&(r=i.outerWidth(),a=i.outerHeight())):(n.top=c.y+(c.h-a)*t.topRatio,n.left=c.x+(c.w-r)*t.leftRatio),("fixed"===s.wrap.css("position")||t.locked)&&(n.top-=c.y,n.left-=c.x),n={top:m(n.top-o*t.topRatio),left:m(n.left-l*t.leftRatio),width:m(r+l),height:m(a+o)}},step:function(t,e){var i,n,r=e.prop;n=s.current;var a=n.wrapSpace,o=n.skinSpace;"width"!==r&&"height"!==r||(i=e.end===e.start?1:(t-e.start)/(e.end-e.start),s.isClosing&&(i=1-i),n="width"===r?n.wPadding:n.hPadding,n=t-n,s.skin[r](f("width"===r?n:n-a*i)),s.inner[r](f("width"===r?n:n-a*i-o*i)))},zoomIn:function(){var t=s.current,e=t.pos,n=t.openEffect,r="elastic"===n,a=i.extend({opacity:1},e);delete a.position,r?(e=this.getOrigPosition(),t.openOpacity&&(e.opacity=.1)):"fade"===n&&(e.opacity=.1),s.wrap.css(e).animate(a,{duration:"none"===n?0:t.openSpeed,easing:t.openEasing,step:r?this.step:null,complete:s._afterZoomIn})},zoomOut:function(){var t=s.current,e=t.closeEffect,i="elastic"===e,n={opacity:.1};i&&(n=this.getOrigPosition(),t.closeOpacity&&(n.opacity=.1)),s.wrap.animate(n,{duration:"none"===e?0:t.closeSpeed,easing:t.closeEasing,step:i?this.step:null,complete:s._afterZoomOut})},changeIn:function(){var t,e=s.current,i=e.nextEffect,n=e.pos,r={opacity:1},a=s.direction;n.opacity=.1,"elastic"===i&&(t="down"===a||"up"===a?"top":"left","down"===a||"right"===a?(n[t]=m(f(n[t])-200),r[t]="+=200px"):(n[t]=m(f(n[t])+200),r[t]="-=200px")),"none"===i?s._afterZoomIn():s.wrap.css(n).animate(r,{duration:e.nextSpeed,easing:e.nextEasing,complete:s._afterZoomIn})},changeOut:function(){var t=s.previous,e=t.prevEffect,n={opacity:.1},r=s.direction;"elastic"===e&&(n["down"===r||"up"===r?"top":"left"]=("up"===r||"left"===r?"-":"+")+"=200px"),t.wrap.animate(n,{duration:"none"===e?0:t.prevSpeed,easing:t.prevEasing,complete:function(){i(this).trigger("onReset").remove()}})}},s.helpers.overlay={defaults:{closeClick:!0,speedOut:200,showEarly:!0,css:{},locked:!u,fixed:!0},overlay:null,fixed:!1,el:i("html"),create:function(t){t=i.extend({},this.defaults,t),this.overlay&&this.close(),this.overlay=i('<div class="fancybox-overlay"></div>').appendTo(s.coming?s.coming.parent:t.parent),this.fixed=!1,t.fixed&&s.defaults.fixed&&(this.overlay.addClass("fancybox-overlay-fixed"),this.fixed=!0)},open:function(t){var e=this;t=i.extend({},this.defaults,t),this.overlay?this.overlay.unbind(".overlay").width("auto").height("auto"):this.create(t),this.fixed||(a.bind("resize.overlay",i.proxy(this.update,this)),this.update()),t.closeClick&&this.overlay.bind("click.overlay",function(t){if(i(t.target).hasClass("fancybox-overlay"))return s.isActive?s.close():e.close(),!1}),this.overlay.css(t.css).show()},close:function(){var t,e;a.unbind("resize.overlay"),this.el.hasClass("fancybox-lock")&&(i(".fancybox-margin").removeClass("fancybox-margin"),t=a.scrollTop(),e=a.scrollLeft(),this.el.removeClass("fancybox-lock"),a.scrollTop(t).scrollLeft(e)),i(".fancybox-overlay").remove().hide(),i.extend(this,{overlay:null,fixed:!1})},update:function(){var t,i="100%";this.overlay.width(i).height("100%"),l?(t=Math.max(e.documentElement.offsetWidth,e.body.offsetWidth),o.width()>t&&(i=o.width())):o.width()>a.width()&&(i=o.width()),this.overlay.width(i).height(o.height())},onReady:function(t,e){var n=this.overlay;i(".fancybox-overlay").stop(!0,!0),n||this.create(t),t.locked&&this.fixed&&e.fixed&&(n||(this.margin=o.height()>a.height()&&i("html").css("margin-right").replace("px","")),e.locked=this.overlay.append(e.wrap),e.fixed=!1),!0===t.showEarly&&this.beforeShow.apply(this,arguments)},beforeShow:function(t,e){var n,r;e.locked&&(!1!==this.margin&&(i("*").filter(function(){return"fixed"===i(this).css("position")&&!i(this).hasClass("fancybox-overlay")&&!i(this).hasClass("fancybox-wrap")}).addClass("fancybox-margin"),this.el.addClass("fancybox-margin")),n=a.scrollTop(),r=a.scrollLeft(),this.el.addClass("fancybox-lock"),a.scrollTop(n).scrollLeft(r)),this.open(t)},onUpdate:function(){this.fixed||this.update()},afterClose:function(t){this.overlay&&!s.coming&&this.overlay.fadeOut(t.speedOut,i.proxy(this.close,this))}},s.helpers.title={defaults:{type:"float",position:"bottom"},beforeShow:function(t){var e=s.current,n=e.title,r=t.type;if(i.isFunction(n)&&(n=n.call(e.element,e)),d(n)&&""!==i.trim(n)){switch(e=i('<div class="fancybox-title fancybox-title-'+r+'-wrap">'+n+"</div>"),r){case"inside":r=s.skin;break;case"outside":r=s.wrap;break;case"over":r=s.inner;break;default:r=s.skin,e.appendTo("body"),l&&e.width(e.width()),e.wrapInner('<span class="child"></span>'),s.current.margin[2]+=Math.abs(f(e.css("margin-bottom")))}e["top"===t.position?"prependTo":"appendTo"](r)}}},i.fn.fancybox=function(t){var e,n=i(this),r=this.selector||"",a=function(a){var o,l,c=i(this).blur(),u=e;!a.ctrlKey&&!a.altKey&&!a.shiftKey&&!a.metaKey&&!c.is(".fancybox-wrap")&&(o=t.groupAttr||"data-fancybox-group",l=c.attr(o),l||(o="rel",l=c.get(0)[o]),l&&""!==l&&"nofollow"!==l&&(c=r.length?i(r):n,c=c.filter("["+o+'="'+l+'"]'),u=c.index(this)),t.index=u,!1!==s.open(c,t)&&a.preventDefault())};return t=t||{},e=t.index||0,r&&!1!==t.live?o.undelegate(r,"click.fb-start").delegate(r+":not('.fancybox-item, .fancybox-nav')","click.fb-start",a):n.unbind("click.fb-start").bind("click.fb-start",a),this.filter("[data-fancybox-start=1]").trigger("click"),this},o.ready(function(){var e,a;if(i.scrollbarWidth===n&&(i.scrollbarWidth=function(){var t=i('<div style="width:50px;height:50px;overflow:auto"><div/></div>').appendTo("body"),e=t.children(),e=e.innerWidth()-e.height(99).innerWidth();return t.remove(),e}),i.support.fixedPosition===n){e=i.support,a=i('<div style="position:fixed;top:20px;"></div>').appendTo("body");var o=20===a[0].offsetTop||15===a[0].offsetTop;a.remove(),e.fixedPosition=o}i.extend(s.defaults,{scrollbarWidth:i.scrollbarWidth(),fixed:i.support.fixedPosition,parent:i("body")}),e=i(t).width(),r.addClass("fancybox-lock-test"),a=i(t).width(),r.removeClass("fancybox-lock-test"),i("<style type='text/css'>.fancybox-margin{margin-right:"+(a-e)+"px;}</style>").appendTo("head")})}(window,document,jQuery),$(document).ready(function(){function t(){$("#scrollupbtn").click(function(){$("body, html").animate({scrollTop:0},500)})}function e(){var t=location.hash;t.length>1&&(console.log(t),$(t+"[data-tab]").trigger("click"))}function i(){function t(){var t=$(".section-box-header").height(),e=$(".section-box-footer").height(),i=$(window).height();$(".section-box-content").css({minHeight:i-t-e})}function e(){$(window).resize(function(){t()})}t(),e()}function n(){$("body").append('<div class="mob-overlay"></div>')}function r(){$(".mob-overlay").remove()}function a(){$("ul.blog-social-ico li").click(function(){$("ul.blog-social-ico li").removeClass("active"),$(this).addClass("active");var t=$(this).index()+1;1==t?$(".blog-social-navi-arrow").css({marginLeft:9}):2==t&&$(".blog-social-navi-arrow").css({marginLeft:53});var e=$(".blog-social-hide li");$(".blog-social-hide li").css({display:"none"}),$(e[t-1]).toggle(200)})}function o(){$(".menu-list-second-footer li").hover(function(){$(".menu-list-second-footer li").removeClass("active"),$(this).addClass("active")},function(){$(".menu-list-second-footer li").removeClass("active")})}function s(){function t(){$(".hidden-phones-h_list").removeClass("active")}$(".phones-h_list").click(function(){$(".hidden-phones-h_list").addClass("active")}),$(".hidden-phones-h_list li").click(function(){var e=$(this).find("div").clone(),i=$(this).find("p").html();$(".phones-h-num").empty(),$(".phones-h-num").html(i),t(),$(".phones-h_list div:first-child").remove(),$(".phones-h_list div").before(e),$(".hidden-phones-h_list li").removeClass("hidden_"),$(this).addClass("hidden_")}),$(".phones-header-wr").hover(function(){},function(){t()}),$(".callback_h").click(function(){t()})}function l(){$(".first-menu-wr ul li a").hover(function(){$(this).find("span").length>0?$(this).find("span").addClass("active"):$(this).addClass("active")},function(){$(this).find("span").removeClass("active"),$(this).removeClass("active")})}function c(){$(".menu_mob").click(function(){n(),$("body").addClass("off-scroll"),$("#menu-mob-hidden").addClass("open"),setTimeout(function(){$("#menu-mob-hidden").addClass("visible")},10)})}function u(){$(".call-mobile-wr").removeClass("visible"),setTimeout(function(){$(".call-mobile-wr").removeClass("open")},200)}function h(){$(".mobile_call_header img").click(function(){$(".call-button-mobile").addClass("close"),n(),$(".call-mobile-wr").addClass("visible"),setTimeout(function(){$(".call-mobile-wr").addClass("open")},20)}),$(".call-button-mobile").click(function(){r(),u(),$(".call-button-mobile").removeClass("close"),$(".call-mobile-wr").removeClass("open"),$("body").removeClass("off-scroll")})}function d(){$("body").on("click",".mob-overlay",function(){r(),$("#menu-mob-hidden").hasClass("visible")&&($("#menu-mob-hidden").removeClass("visible"),setTimeout(function(){$("#menu-mob-hidden").removeClass("open")},200),$("body").removeClass("off-scroll")),$(".call-button-mobile").hasClass("close")&&($(".call-button-mobile").removeClass("close"),u())}),$(".close-menu-mob .close_mob").click(function(){r(),$("#menu-mob-hidden").removeClass("visible"),setTimeout(function(){$("#menu-mob-hidden").removeClass("open")},200),$("body").removeClass("off-scroll")})}function p(){$("body").append('<div id="overlay-menu"></div>')}function f(){function t(){var t;$(".catalog-menu li").hover(function(){if($(".catalog-menu-wr").hasClass("mobile_catalog_menu"));else{var e=$(this);$(this).parent().hasClass("catalog-menu")&&(t=setTimeout(function(){$("#overlay-menu").addClass("show"),$(".catalog-menu li").removeClass("activ-li"),e.addClass("activ-li"),$(".catalog-menu").addClass("openSecondLi")},170))}},function(){clearTimeout(t)})}var e=".catalog_",i=".catalog_mob.tablet",a=".catalog_mob.mob",o=$(".catalog-menu-wr");$(""+e+","+i).click(function(t){if(t.preventDefault(),$(this).hasClass("homepage_notclick")){var n=$(".catalog-menu").offset().top;$("body").animate({scrollTop:n-40},500)}else o.toggleClass("opens"),o.hasClass("opens")?($(""+e).addClass("open"),$(""+i).addClass("active"),$(".catalog-menu li").removeClass("activ-li")):($(""+e).removeClass("open"),$(""+i).removeClass("active"))}),$(a).click(function(){function t(){o.removeClass("op_mb_ct"),setTimeout(function(){o.removeClass("mobile_catalog_menu"),$(".catalog-menu li").removeClass("act_mb"),r(),$("body").removeClass("off-scroll")},200)}n(),$("body").addClass("off-scroll"),o.addClass("mobile_catalog_menu"),setTimeout(function(){o.addClass("op_mb_ct")},10),o.hasClass("mobile_catalog_menu")&&($(".mob-catalog-close").click(function(){t()}),$(".mob-overlay").click(function(){t()}),$(".catalog-menu li span").click(function(){$(this).parent().hasClass("act_mb")?$(".catalog-menu li").removeClass("act_mb"):($(".catalog-menu li").removeClass("act_mb"),$(this).parent().addClass("act_mb"))}))}),$(window).resize(function(){$(window).width()>768&&o.removeClass("mobile_catalog_menu")}),t(),$(".mob_lang a").click(function(){$(".mob_lang a").removeClass("active"),$(this).addClass("active")}),$(".lang_header a").click(function(){$(".lang_header a").removeClass("active"),$(this).addClass("active")})}function m(){function t(){$(".catalog-menu-wr").hasClass("homepage_notclose")?($(".catalog_").removeClass("open"),$(".catalog_mob.tablet").removeClass("active"),$("#overlay-menu").removeClass("show"),$(".catalog-menu li").removeClass("activ-li"),$(".catalog-menu").removeClass("openSecondLi")):($(".catalog-menu-wr").removeClass("opens"),$(".catalog_").removeClass("open"),$(".catalog_mob.tablet").removeClass("active"),$("#overlay-menu").removeClass("show"),$(".catalog-menu li").removeClass("activ-li"),$(".catalog-menu").removeClass("openSecondLi"))}$("#overlay-menu").on("click",function(){t()});var e;$("#overlay-menu").hover(function(){e=setTimeout(function(){t()},300)},function(){clearTimeout(e)})}function g(){$(".form-register input.custom-check + label a, .already-registered input.custom-check + label a, .form-register input.custom-radio + label a, .already-registered input.custom-radio + label a").click(function(t){t.preventDefault()}),$(".sidebar input.custom-check + label a, .form-register input.custom-check + label a, .already-registered input.custom-check + label a").click(function(){var t=$(this).parent().parent().find(".custom-check");t.is(":checked")?t.prop("checked",!1):t.prop("checked",!0)}),$("a, span",".form-register input.custom-radio + label, .already-registered input.custom-radio + label").click(function(){var t=$(this).parent().parent().find(".custom-radio");$(t).hasClass("root-radio")&&$("input.parent_radio").prop("checked",!1),t.is(":checked")||(t.prop("checked",!0),t.trigger("change"))}),$("a, span",".form-register input.custom-radio2 + label, .already-registered input.custom-radio2 + label").click(function(t){t.preventDefault();var e=$(this).parent().parent().find(".custom-radio2");e.is(":checked")||e.prop("checked",!0)}),$(".hidden_txt label").click(function(){$(".hidden_txt").removeClass("active"),$(this).parents(".hidden_txt").addClass("active");var t=$(this).parents(".hidden_form_radio").length;t>0&&($(".hidden_form_txt2").removeClass("active"),$(this).parent().find(".hidden_form_txt2").addClass("active"))})}function v(){$(".resetFilters span").click(function(){var t=window.location.pathname;window.location=t})}function y(){$(document).on("click",".filter_mobile_",function(t){console.log("test-sidebar2"),t.preventDefault(),$(this).css({opacity:0}),$(".sidebar-transform").addClass("visible_"),$(".sidebar-transform").animate({opacity:1,left:0},300),$("body").addClass("hidden_scroll-y")})}function b(){$(document).on("click",".close_filters",function(){$(".sidebar-transform").animate({opacity:0,left:"-100%"},300),$(".filter_mobile_").css({opacity:1}),setTimeout(function(){$(".sidebar-transform").removeClass("visible_")},290),$("body").removeClass("hidden_scroll-y")})}function x(){$(".sort-cat>a").click(function(t){t.preventDefault(),$(".sort-cat").toggleClass("active")}),$(".sort-cat ul li a").click(function(){$(".sort-cat ul li").css({display:"block"}),$(this).parent().css({display:"none"}),$(".sort-cat>a").html($(this).text()),$(".sort-cat").removeClass("active")});var t;$(".sort-cat").hover(function(){clearTimeout(t)},function(){t=setTimeout(function(){$(".sort-cat").removeClass("active")},320)})}function k(){$(".city-sel-deliv>a").click(function(t){t.preventDefault(),$(".city-sel-deliv").toggleClass("active")}),$(".city-sel-deliv ul li a").click(function(){$(".city-sel-deliv ul li").css({display:"block"}),$(this).parent().css({display:"none"}),$(".city-sel-deliv>a").html($(this).text()),$(".city-sel-deliv").removeClass("active")});var t;$(".city-sel-deliv").hover(function(){clearTimeout(t)},function(){t=setTimeout(function(){$(".city-sel-deliv").removeClass("active")},320)})}function w(){var t,e;$(".catalog-wr").hover(function(){var i=$(this),n=i.parents(".slider-wr"),r=$(window).width();if(n.length>0){var a=$(this).parents(".owl-stage").find(".owl-item.active"),o=0;r>=751&&r<1183?o=2:r>=1183&&(o=3),$(a[o]).index()==$(this).parents(".owl-item").index()?i.addClass("hover hover_left"):i.addClass("hover")}else{var s=$(this).index()+1;s%3?i.addClass("hover"):i.addClass("hover hover_left")}setTimeout(function(){i.find(".additional_wr").addClass("startAnim")},10),e=setTimeout(function(){i.find(".addit_wr").addClass("move")},200),t=setTimeout(function(){i.addClass("hover-border")},200),$(this).find(".artbox-lazy-event").trigger("lazy.artbox")},function(){var i=$(this);i.parents(".slider-wr");i.find(".additional_wr").removeClass("startAnim"),i.removeClass("hover hover-border"),setTimeout(function(){i.removeClass("hover hover_left"),i.find(".addit_wr").removeClass("move")},220),clearTimeout(t),clearTimeout(e)})}function C(){$(".title_city-sel span.addCity,.title_card span.addCity, .shops-title span.addCity").click(function(){$(this).toggleClass("active"),$(this).hasClass("active")?($(this).parents(".city-sel").addClass("active"),$(this).parents(".city-sel").find("#hidden_shops").removeClass("_off")):($(this).parents(".city-sel").find("#hidden_shops").addClass("_off"),$(this).parents(".city-sel").removeClass("active"))}),$("#hidden_shops li").click(function(){$("#hidden_shops li").removeClass("active"),$(this).addClass("active");var t=$(this).find("span.s_").html();$(this).parents(".city-sel").find("span.addCity").empty().html(t);var e=$(this).parents(".shops-title").length;if(e<=0){var i=$(this).find("div.phones_content").html();$("#shops_phones, #shops_page").animate({opacity:0},450,function(){$(this).animate({opacity:1},250).empty().html(i)}),$(this).parents(".city-sel").find("span.addCity").removeClass("active"),$(this).parents(".city-sel").removeClass("active"),$(this).parents(".city-sel").find("#hidden_shops").addClass("_off")}else{var n=$(this).find(".phones_content").html();$(".footer_add").empty().append(n),$(this).parents(".city-sel").find("span.addCity").removeClass("active"),$(this).parents(".city-sel").removeClass("active"),$(this).parents(".city-sel").find("#hidden_shops").addClass("_off")}});var t;$(".city-sel").hover(function(){$(this);clearTimeout(t)},function(){var e=$(this);t=setTimeout(function(){e.find("span.addCity").removeClass("active"),e.removeClass("active"),e.find("#hidden_shops").addClass("_off")},320)})}function _(){$(".more_card").click(function(){var t=$(this).parents(".options_bl").parents(".style").height();$(this).parents(".options_bl").parents(".style").css({height:t}),$(".options_bl").removeClass("open_bl"),$(this).parents(".options_bl").addClass("open_bl")}),$(".size_growth li a").click(function(t){t.preventDefault(),$(".size_growth li a").removeClass("active"),$(this).addClass("active");var e=$(this).parent().index(),i=$(".size_growth-list");i.removeClass("active"),$(i[e]).addClass("active")}),$(".colors-img ul li a").click(function(t){$(".colors-img ul li a").removeClass("active"),$(this).addClass("active"),$(".img-small-wr ul li").removeClass("active"),$(".img-small-wr ul li:first-child").addClass("active");var e=$(".img-small-wr ul li:first-child").find("img").attr("data-big-img");$("a.gallery-box-min img").attr("src",e)}),$(".size_growth-list li a").click(function(t){$(".size_growth-list li").removeClass("active"),$(this).parent().addClass("active")}),$(".weather_list li a").click(function(t){$(".weather_list li").removeClass("active"),$(this).parent().addClass("active")}),$(".shadow_bl div ").click(function(){$(this).parents(".options_bl").removeClass("open_bl"),$(this).parents(".options_bl").parents(".style").css({height:"auto"})})}function T(){function t(){$("#size-img").remove(),$("#overlay-size-tb").remove()}$(".size_table").click(function(t){t.preventDefault();var e=$(this).attr("data-link");$("body").append('<div id="overlay-size-tb"></div><div style="top:'+$(window).scrollTop()+'px" id="size-img"><a href="#"><img  src="'+e+'"><span></span></a></div>')}),$("body").on("click","#size-img a",function(t){t.preventDefault()}),$("body").on("click","#size-img a span",function(e){t()}),$("body").on("click","#size-img",function(e){t()}),$("body").on("click","#overlay-size-tb",function(e){t()})}function S(){$(".desk_name").click(function(t){t.preventDefault(),$("ul.description_list li").removeClass("active"),$(this).parent().addClass("active");var e=$(this).parent().index(),i=$(".desk_list-wr");i.removeClass("active"),$(i[e]).addClass("active")}),$(".btn_mobil_show_desk").click(function(t){t.preventDefault(),$(this).parents(".desk_list-wr").hasClass("active-mobile")?$(this).parents(".desk_list-wr").removeClass("active-mobile"):($(".desk_list-wr").removeClass("active-mobile"),$(this).parents(".desk_list-wr").addClass("active-mobile"))})}function A(){$(".btn_scroll_to_comment").click(function(t){t.preventDefault();var e=$(".form-comm-wr").offset().top-30;$("body,html").animate({scrollTop:e},500,function(){$("#commentmodel-username").focus()})})}function j(){$(".question_").click(function(t){t.preventDefault(),$(".question-wr").removeClass("show");var e=$(this).offset().top;$("body, html").animate({scrollTop:e-11},500),$(this).parents(".question-wr").addClass("show")})}function E(){$(".hot_line, .mob_hot_line").click(function(t){t.preventDefault(),r(),$("#menu-mob-hidden").removeClass("visible"),setTimeout(function(){$("#menu-mob-hidden").removeClass("open")},200),$("body").removeClass("off-scroll"),$("#overlay").fadeIn(400,function(){$("#hot_line").css("display","block").animate({opacity:1,top:"30"},200)})})}function P(){$(".mob_inform_pay, .inform_pay").click(function(t){t.preventDefault(),r(),$("#menu-mob-hidden").removeClass("visible"),setTimeout(function(){$("#menu-mob-hidden").removeClass("open")},200),$("body").removeClass("off-scroll"),$("#overlay").fadeIn(400,function(){$("#inform").css("display","block").animate({opacity:1,top:"30"},200)})})}function F(){$(".terms_of_use, .rules_of").click(function(t){t.preventDefault();var e=$(".header-full"),i=e.css("display"),n="block",r=e.height(),a=$(".section-box-header .hidden.visible-mobile").height();if(i==n)var o=$(window).scrollTop()+30-r;else var o=$(window).scrollTop()+30-a;$(this).hasClass("terms_of_use")?$("#overlay").fadeIn(400,function(){$("#terms_of_use").css("display","block").animate({opacity:1,top:o},200)}):$("#overlay").fadeIn(400,function(){$("#rules_of").css("display","block").animate({opacity:1,top:o},200)})})}function D(){$('input[type="file"]').change(function(){var t=$(this).val();t.indexOf("C:\\fakepath\\")+1&&(t=t.substr(12));var e=t.search(/\..+$/);e-=3;var i=t.substr(e),n=t.substring(8,0);t.length>15?$(".input-wr-file label").text(n+"..."+i):$(".input-wr-file label").text(t)})}function M(){$(".img-small-wr li").click(function(){$(".img-small-wr li").removeClass("active"),$(this).addClass("active");var t=$(this).find("img").attr("data-big-img");$("a.gallery-box-min img").attr("src",t)})}function L(t){t.preventDefault(),$(this).parent().addClass("confirm")}function N(t){var e=$(this).parents("tr.variant_tr").data("variant"),i=$(this).parent().find("input"),n=i.val();$(this).hasClass("minus")?n>1&&G.add(e,-1):G.add(e,1)}function O(t){if(t.preventDefault(),$(this).hasClass("remove-yes")){var e=$(this).parents("tr.variant_tr").data("variant");G.remove(e),$(this).parents(".confirm").parent().remove()}else $(this).parents(".confirm").removeClass("confirm")}function I(t){t.preventDefault();var e=$(this).parents("tr.variant_tr").data("variant"),i=$(this).val();G.set(e,i)}function R(t){return 13==t.which?($(this).trigger("change"),!1):(8==t.which||t.which>47&&t.which<58)&&void 0}function z(){var t=$(window).scrollTop()+30;$("#overlay").fadeIn(400,function(){$(".basket_modal").css("display","block").animate({opacity:1,top:t},200)})}function H(t){t.preventDefault();var e=$(this).data("variant");G.add(e,1),z()}function B(){$(".login_link, .mob-login_link").click(function(t){t.preventDefault(),r(),$("#menu-mob-hidden").removeClass("visible"),setTimeout(function(){$("#menu-mob-hidden").removeClass("open")},200),$("body").removeClass("off-scroll"),$("#overlay").fadeIn(400,function(){$(".modal_login").css("display","block").animate({opacity:1,top:30},200)})})}function q(){$(".read_more_seo").click(function(t){t.preventDefault();var e=$(this).attr("data-text-read"),i=$(this).attr("data-text-hide");$(".seo_txt-wrapp").hasClass("hidden-seo-txt")?($(".seo_txt-wrapp").removeClass("hidden-seo-txt"),$(this).html(i)):($(".seo_txt-wrapp").addClass("hidden-seo-txt"),$(this).html(e))})}function W(){$(".where_can_buy").click(function(t){t.preventDefault(),$(this).parent().hasClass("active-where")?$(this).parent().removeClass("active-where"):$(this).parent().addClass("active-where")}),$(".close_where").click(function(){$(this).parents(".active-where").removeClass("active-where")})}function V(){$(".buy_in_one_click a").click(function(t){t.preventDefault();var e=$(window).scrollTop();$("#overlay").fadeIn(400,function(){$("#buy_in_click").css("display","block").animate({opacity:1,top:e},200)})})}var G=new ArtboxBasket;i(),a(),o(),s(),l(),c(),d(),h(),f(),p(),C(),T(),S(),A(),j(),E(),P(),F(),B(),q(),W(),e(),t(),btnScroll(),V(),$(".partner").fancybox(),m(),g(),v(),y(),b(),x(),w(),k(),_(),$(document).on("click","#modal_close, #overlay, #overlay_s, #modal_close-2",function(t){G.hideBasket(),$(".forms_, .forms_reg").animate({opacity:0,top:"0"},200,function(){$(this).css("display","none"),$("#overlay, #overlay_s").fadeOut(400)}),$("#success_form").animate({opacity:0,top:"0"},200,function(){$(this).css("display","none"),$(this).css({top:"50%"})})}),D(),M(),$(document).on("click",".remove_ico",L),$(document).on("click",".remove_confirm a",O),$(document).on("click",".quantity-wr span",N),$(document).on("change",".quantity-wr input",I),$(document).on("keypress",".quantity-wr input",R),$(document).on("click","a.btn_buy_cat",H),$(document).on("change",'[name="OrderFrontend[delivery]"]',function(t){3==$(this).val()?($("#payment-wrapper-8").removeClass("hidden"),$("#payment-wrapper-3").addClass("hidden")):($("#payment-wrapper-8").addClass("hidden"),$("#payment-wrapper-3").removeClass("hidden")),$(".field-orderfrontend-payment.hidden input:checked").length&&$(".field-orderfrontend-payment:not(.hidden) a").first().trigger("click")}),$(document).on("change",'[name="OrderFrontend[payment]"]',function(t){$(".field-orderfrontend-payment .hint_block").addClass("hidden_form_txt"),$(this).parents(".field-orderfrontend-payment").find(".hint_block").removeClass("hidden_form_txt")}),$(document).on("click",".card_delivery_link",function(t){$("#card_deliveries").trigger("click")});var Q=$('[name="OrderFrontend[delivery]"]:checked');if(Q.length&&!Q.hasClass("root-radio")){var U=Q.parents(".check-box-form");U.find(".parent_radio + label a").trigger("click"),U.find(".parent_radio").prop("checked",!0)}$("#feedback-header").on("afterValidate",function(t,e,i){i.length||$.post("/site/feedback",$(this).serialize()).always(function(){location.reload()})}),$("#basket-form").on("beforeValidate",function(t,e,i){var n=$('[name="OrderFrontend[delivery]"]:checked').length>0,r=$('[name="OrderFrontend[payment]"]:checked').length>0;return n&&r?void(n&&r?$(".delivery-wrapper, .payment-wrapper").removeClass("has-error"):n?$(".delivery-wrapper").removeClass("has-error"):r&&$(".payment-wrapper").removeClass("has-error")):(n||$(".delivery-wrapper").addClass("has-error"),r||$(".payment-wrapper").addClass("has-error"),!1)}),$("#feedback-header").on("submit",function(t){t.preventDefault()}),$("#list-container").on("pjax:end",function(){w(),x(),$(".jcarousel").jcarousel({vertical:!0,scroll:1,animation:250})}),$(document).on("ajaxComplete","#payment_form",function(t,e){$("#paymentinform-captcha-image").yiiCaptcha("refresh")}),$(document).on("submit","#payment_form",function(t){t.preventDefault();var e=this,i=showPreloader("#inform");$.ajax({url:"/ru/site/payment-inform",type:"POST",dataType:"JSON",data:new FormData(e),processData:!1,contentType:!1,success:function(t,i){if($(e).yiiActiveForm("updateMessages",t,!0),t["paymentinform-captcha"].length||t.error)$("#paymentinform-captcha-image").yiiCaptcha("refresh"),t.error&&alert(t.message);else if(t.success){$("#inform").find(".modal-body").html("<p>"+t.success+"</p>");var n=$("html, body");
  n.stop().animate({scrollTop:0},"500","swing")}else alert("Неизвестная ошибка")},error:function(t,e,i){alert(e)},complete:function(t,e){hidePreloader(i)}})}),$(document).on("focus","[data-krajee-timepicker]",function(t){$(this).timepicker("showWidget")}),$(document).on("click",".timepicker-clear",function(t){$("[data-krajee-timepicker]").timepicker("hideWidget"),$(this).parents(".bootstrap-timepicker").find("input[data-krajee-timepicker]").val("")}),$("#list-container").on("pjax:start",function(){showPreloader(this)}),$("#list-container").on("pjax:complete",function(){hidePreloader(".preloader")}),$("#paymentinform-payedat").mask("00:00"),$("#basket-form").on("click",'a[data-form="register"]',function(t){$("#basket-register-tab").click()}),$("._datepicer-payment").datepicker({changeMonth:!0,changeYear:!0,dateFormat:"dd.mm.yy",closeText:"Закрыть",prevText:"Пред",nextText:"След",monthNames:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],monthNamesShort:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],dayNames:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"],dayNamesShort:["вск","пнд","втр","срд","чтв","птн","сбт"],dayNamesMin:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],firstDay:1}),$(document).on("initialized.owl.carousel","#Main-slider",function(t){$(document).trigger("main-slider.artbox")}),$("#basket-form").on("afterValidateAttribute",function(t,e,i){if(("credit_month"==e.name||"credit_sum"==e.name)&&!i.length){var n=!0;$(".credit_input").each(function(t,e){if(!Boolean($(e).val()))return n=!1,!1}),n&&$(".credit_value").html(calculateCredit())}}),$("#basket-form").on("beforeValidate",function(t,e){10!=$(".payment-wrapper").find("input:checked").val()&&$(".credit_input").each(function(t,e){$(e).val($(e).data("default"))})}),$(document).on("change",".credit_input",handleCredit),$(document).on("keyup",".credit_input",handleCredit)});var ArtboxBasket=function(){function t(){this.init(!0,!0)}return Object.defineProperty(t.prototype,"items",{get:function(){return this._items},enumerable:!0,configurable:!0}),t.prototype.init=function(t,e){$.get("/basket",function(i){this._items=i.basket,t&&this.updateModal(i.modal,!1),e&&this.updateCart(i.cart)}.bind(this),"json").fail(function(){console.error("Basket cannot be init")})},t.prototype.add=function(t,e){$.post("/basket/add?product_variant_id="+t+"&count="+e,function(t){this._items=t.basket,this.updateModal(t.modal,t.cart,!0)}.bind(this),"json").fail(function(t,e,i){console.error(i)})},t.prototype.set=function(t,e){$.post("/basket/set?product_variant_id="+t+"&count="+e,function(t){this._items=t.basket,this.updateModal(t.modal,t.cart,!0)}.bind(this),"json").fail(function(t,e,i){console.error(i)})},t.prototype.remove=function(t){$.post("/basket/remove?product_variant_id="+t,function(t){this._items=t.basket,this.updateModal(t.modal,t.cart,!0)}.bind(this),"json").fail(function(t,e,i){console.error(i)})},t.prototype.updateModal=function(t,e,i){void 0===i&&(i=!1);var n=$(".basket_modal");if(n.html(t),this.updatePage(t),e&&this.updateCart(e),this.count<1&&this.hideBasket(),i)return i},t.prototype.updateCart=function(t){var e=$(".basket-wrapper, .basket-wrapper2");e.html(t)},t.prototype.updatePage=function(t){var e=$(t).find(".basket-tb"),i=$(t).find(".price-total-wr"),n=$(".basket_page").find(".basket-tb"),r=$(".basket_page").find(".price-total-wr");return this.count<1&&n.length>0?void location.reload():void(e.length>0&&i.length>0&&($(n).html($(e).html()),$(r).html($(i).html())))},t.prototype.hideBasket=function(){$(".basket_modal").animate({opacity:0,top:"0"},200,function(){$(this).css("display","none"),$("#overlay").fadeOut(400)})},Object.defineProperty(t.prototype,"count",{get:function(){return Object.keys(this._items).length},enumerable:!0,configurable:!0}),t}();!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?module.exports=t(require("jquery")):t(jQuery||Zepto)}(function(t){var e=function(e,i,n){var r={invalid:[],getCaret:function(){try{var t,i=0,n=e.get(0),a=document.selection,o=n.selectionStart;return a&&-1===navigator.appVersion.indexOf("MSIE 10")?(t=a.createRange(),t.moveStart("character",-r.val().length),i=t.text.length):(o||"0"===o)&&(i=o),i}catch(t){}},setCaret:function(t){try{if(e.is(":focus")){var i,n=e.get(0);n.setSelectionRange?(n.focus(),n.setSelectionRange(t,t)):(i=n.createTextRange(),i.collapse(!0),i.moveEnd("character",t),i.moveStart("character",t),i.select())}}catch(t){}},events:function(){e.on("keydown.mask",function(t){e.data("mask-keycode",t.keyCode||t.which)}).on(t.jMaskGlobals.useInput?"input.mask":"keyup.mask",r.behaviour).on("paste.mask drop.mask",function(){setTimeout(function(){e.keydown().keyup()},100)}).on("change.mask",function(){e.data("changed",!0)}).on("blur.mask",function(){s===r.val()||e.data("changed")||e.trigger("change"),e.data("changed",!1)}).on("blur.mask",function(){s=r.val()}).on("focus.mask",function(e){!0===n.selectOnFocus&&t(e.target).select()}).on("focusout.mask",function(){n.clearIfNotMatch&&!a.test(r.val())&&r.val("")})},getRegexMask:function(){for(var t,e,n,r,a=[],s=0;s<i.length;s++)(t=o.translation[i.charAt(s)])?(e=t.pattern.toString().replace(/.{1}$|^.{1}/g,""),n=t.optional,(t=t.recursive)?(a.push(i.charAt(s)),r={digit:i.charAt(s),pattern:e}):a.push(n||t?e+"?":e)):a.push(i.charAt(s).replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"));return a=a.join(""),r&&(a=a.replace(new RegExp("("+r.digit+"(.*"+r.digit+")?)"),"($1)?").replace(new RegExp(r.digit,"g"),r.pattern)),new RegExp(a)},destroyEvents:function(){e.off("input keydown keyup paste drop blur focusout ".split(" ").join(".mask "))},val:function(t){var i=e.is("input")?"val":"text";return 0<arguments.length?(e[i]()!==t&&e[i](t),i=e):i=e[i](),i},getMCharsBeforeCount:function(t,e){for(var n=0,r=0,a=i.length;r<a&&r<t;r++)o.translation[i.charAt(r)]||(t=e?t+1:t,n++);return n},caretPos:function(t,e,n,a){return o.translation[i.charAt(Math.min(t-1,i.length-1))]?Math.min(t+n-e-a,n):r.caretPos(t+1,e,n,a)},behaviour:function(i){i=i||window.event,r.invalid=[];var n=e.data("mask-keycode");if(-1===t.inArray(n,o.byPassKeys)){var a=r.getCaret(),s=r.val().length,l=r.getMasked(),c=l.length,u=r.getMCharsBeforeCount(c-1)-r.getMCharsBeforeCount(s-1),h=a<s;return r.val(l),h&&(8!==n&&46!==n&&(a=r.caretPos(a,s,c,u)),r.setCaret(a)),r.callbacks(i)}},getMasked:function(t,e){var a,s,l=[],c=void 0===e?r.val():e+"",u=0,h=i.length,d=0,p=c.length,f=1,m="push",g=-1;for(n.reverse?(m="unshift",f=-1,a=0,u=h-1,d=p-1,s=function(){return-1<u&&-1<d}):(a=h-1,s=function(){return u<h&&d<p});s();){var v=i.charAt(u),y=c.charAt(d),b=o.translation[v];b?(y.match(b.pattern)?(l[m](y),b.recursive&&(-1===g?g=u:u===a&&(u=g-f),a===g&&(u-=f)),u+=f):b.optional?(u+=f,d-=f):b.fallback?(l[m](b.fallback),u+=f,d-=f):r.invalid.push({p:d,v:y,e:b.pattern}),d+=f):(t||l[m](v),y===v&&(d+=f),u+=f)}return c=i.charAt(a),h!==p+1||o.translation[c]||l.push(c),l.join("")},callbacks:function(t){var a=r.val(),o=a!==s,l=[a,t,e,n],c=function(t,e,i){"function"==typeof n[t]&&e&&n[t].apply(this,i)};c("onChange",!0===o,l),c("onKeyPress",!0===o,l),c("onComplete",a.length===i.length,l),c("onInvalid",0<r.invalid.length,[a,t,e,r.invalid,n])}};e=t(e);var a,o=this,s=r.val();i="function"==typeof i?i(r.val(),void 0,e,n):i,o.mask=i,o.options=n,o.remove=function(){var t=r.getCaret();return r.destroyEvents(),r.val(o.getCleanVal()),r.setCaret(t-r.getMCharsBeforeCount(t)),e},o.getCleanVal=function(){return r.getMasked(!0)},o.getMaskedVal=function(t){return r.getMasked(!1,t)},o.init=function(i){i=i||!1,n=n||{},o.clearIfNotMatch=t.jMaskGlobals.clearIfNotMatch,o.byPassKeys=t.jMaskGlobals.byPassKeys,o.translation=t.extend({},t.jMaskGlobals.translation,n.translation),o=t.extend(!0,{},o,n),a=r.getRegexMask(),!1===i?(n.placeholder&&e.attr("placeholder",n.placeholder),e.data("mask")&&e.attr("autocomplete","off"),r.destroyEvents(),r.events(),i=r.getCaret(),r.val(r.getMasked()),r.setCaret(i+r.getMCharsBeforeCount(i,!0))):(r.events(),r.val(r.getMasked()))},o.init(!e.is("input"))};t.maskWatchers={};var i=function(){var i=t(this),r={},a=i.attr("data-mask");if(i.attr("data-mask-reverse")&&(r.reverse=!0),i.attr("data-mask-clearifnotmatch")&&(r.clearIfNotMatch=!0),"true"===i.attr("data-mask-selectonfocus")&&(r.selectOnFocus=!0),n(i,a,r))return i.data("mask",new e(this,a,r))},n=function(e,i,n){n=n||{};var r=t(e).data("mask"),a=JSON.stringify;e=t(e).val()||t(e).text();try{return"function"==typeof i&&(i=i(e)),"object"!=typeof r||a(r.options)!==a(n)||r.mask!==i}catch(t){}};t.fn.mask=function(i,r){r=r||{};var a=this.selector,o=t.jMaskGlobals,s=o.watchInterval,o=r.watchInputs||o.watchInputs,l=function(){if(n(this,i,r))return t(this).data("mask",new e(this,i,r))};return t(this).each(l),a&&""!==a&&o&&(clearInterval(t.maskWatchers[a]),t.maskWatchers[a]=setInterval(function(){t(document).find(a).each(l)},s)),this},t.fn.masked=function(t){return this.data("mask").getMaskedVal(t)},t.fn.unmask=function(){return clearInterval(t.maskWatchers[this.selector]),delete t.maskWatchers[this.selector],this.each(function(){var e=t(this).data("mask");e&&e.remove().removeData("mask")})},t.fn.cleanVal=function(){return this.data("mask").getCleanVal()},t.applyDataMask=function(e){e=e||t.jMaskGlobals.maskElements,(e instanceof t?e:t(e)).filter(t.jMaskGlobals.dataMaskAttr).each(i)};var r={maskElements:"input,td,span,div",dataMaskAttr:"*[data-mask]",dataMask:!0,watchInterval:300,watchInputs:!0,useInput:function(t){var e,i=document.createElement("div");return t="on"+t,e=t in i,e||(i.setAttribute(t,"return;"),e="function"==typeof i[t]),e}("input"),watchDataMask:!1,byPassKeys:[9,16,17,18,36,37,38,39,40,91],translation:{0:{pattern:/\d/},9:{pattern:/\d/,optional:!0},"#":{pattern:/\d/,recursive:!0},A:{pattern:/[a-zA-Z0-9]/},S:{pattern:/[a-zA-Z]/}}};t.jMaskGlobals=t.jMaskGlobals||{},r=t.jMaskGlobals=t.extend(!0,{},r,t.jMaskGlobals),r.dataMask&&t.applyDataMask(),setInterval(function(){t.jMaskGlobals.watchDataMask&&t.applyDataMask()},r.watchInterval)}),function(t){var e={vertical:!1,rtl:!1,start:1,offset:1,size:null,scroll:3,visible:null,animation:"normal",easing:"swing",auto:0,wrap:null,initCallback:null,setupCallback:null,reloadCallback:null,itemLoadCallback:null,itemFirstInCallback:null,itemFirstOutCallback:null,itemLastInCallback:null,itemLastOutCallback:null,itemVisibleInCallback:null,itemVisibleOutCallback:null,animationStepCallback:null,buttonNextHTML:"<div></div>",buttonPrevHTML:"<div></div>",buttonNextEvent:"click",buttonPrevEvent:"click",buttonNextCallback:null,buttonPrevCallback:null,itemFallbackDimension:null},i=!1;t(window).bind("load.jcarousel",function(){i=!0}),t.jcarousel=function(n,r){this.options=t.extend({},e,r||{}),this.autoStopped=this.locked=!1,this.buttonPrevState=this.buttonNextState=this.buttonPrev=this.buttonNext=this.list=this.clip=this.container=null,r&&void 0!==r.rtl||(this.options.rtl="rtl"==(t(n).attr("dir")||t("html").attr("dir")||"").toLowerCase()),this.wh=this.options.vertical?"height":"width",this.lt=this.options.vertical?"top":this.options.rtl?"right":"left";for(var a="",o=n.className.split(" "),s=0;s<o.length;s++)if(o[s].indexOf("jcarousel-skin")!=-1){t(n).removeClass(o[s]),a=o[s];break}"UL"==n.nodeName.toUpperCase()||"OL"==n.nodeName.toUpperCase()?(this.list=t(n),this.clip=this.list.parents(".jcarousel-clip"),this.container=this.list.parents(".jcarousel-container")):(this.container=t(n),this.list=this.container.find("ul,ol").eq(0),this.clip=this.container.find(".jcarousel-clip")),0===this.clip.size()&&(this.clip=this.list.wrap("<div></div>").parent()),0===this.container.size()&&(this.container=this.clip.wrap("<div></div>").parent()),""!==a&&this.container.parent()[0].className.indexOf("jcarousel-skin")==-1&&this.container.wrap('<div class=" '+a+'"></div>'),this.buttonPrev=t(".jcarousel-prev",this.container),0===this.buttonPrev.size()&&null!==this.options.buttonPrevHTML&&(this.buttonPrev=t(this.options.buttonPrevHTML).appendTo(this.container)),this.buttonPrev.addClass(this.className("jcarousel-prev")),this.buttonNext=t(".jcarousel-next",this.container),0===this.buttonNext.size()&&null!==this.options.buttonNextHTML&&(this.buttonNext=t(this.options.buttonNextHTML).appendTo(this.container)),this.buttonNext.addClass(this.className("jcarousel-next")),this.clip.addClass(this.className("jcarousel-clip")).css({position:"relative"}),this.list.addClass(this.className("jcarousel-list")).css({overflow:"hidden",position:"relative",top:0,margin:0,padding:0}).css(this.options.rtl?"right":"left",0),this.container.addClass(this.className("jcarousel-container")).css({position:"relative"}),!this.options.vertical&&this.options.rtl&&this.container.addClass("jcarousel-direction-rtl").attr("dir","rtl");var l=null!==this.options.visible?Math.ceil(this.clipping()/this.options.visible):null,a=this.list.children("li"),c=this;if(a.size()>0){var u=0,h=this.options.offset;a.each(function(){c.format(this,h++),u+=c.dimension(this,l)}),this.list.css(this.wh,u+100+"px"),r&&void 0!==r.size||(this.options.size=a.size())}this.container.css("display","block"),this.buttonNext.css("display","block"),this.buttonPrev.css("display","block"),this.funcNext=function(){c.next()},this.funcPrev=function(){c.prev()},this.funcResize=function(){c.resizeTimer&&clearTimeout(c.resizeTimer),c.resizeTimer=setTimeout(function(){c.reload()},100)},null!==this.options.initCallback&&this.options.initCallback(this,"init"),!i&&t.browser.safari?(this.buttons(!1,!1),t(window).bind("load.jcarousel",function(){c.setup()})):this.setup()};var n=t.jcarousel;n.fn=n.prototype={jcarousel:"0.2.8"},n.fn.extend=n.extend=t.extend,n.fn.extend({setup:function(){if(this.prevLast=this.prevFirst=this.last=this.first=null,this.animating=!1,this.tail=this.resizeTimer=this.timer=null,this.inTail=!1,!this.locked){this.list.css(this.lt,this.pos(this.options.offset)+"px");var e=this.pos(this.options.start,!0);this.prevFirst=this.prevLast=null,this.animate(e,!1),t(window).unbind("resize.jcarousel",this.funcResize).bind("resize.jcarousel",this.funcResize),null!==this.options.setupCallback&&this.options.setupCallback(this)}},reset:function(){this.list.empty(),this.list.css(this.lt,"0px"),this.list.css(this.wh,"10px"),null!==this.options.initCallback&&this.options.initCallback(this,"reset"),this.setup()},reload:function(){if(null!==this.tail&&this.inTail&&this.list.css(this.lt,n.intval(this.list.css(this.lt))+this.tail),this.tail=null,this.inTail=!1,null!==this.options.reloadCallback&&this.options.reloadCallback(this),null!==this.options.visible){var t=this,e=Math.ceil(this.clipping()/this.options.visible),i=0,r=0;this.list.children("li").each(function(n){i+=t.dimension(this,e),n+1<t.first&&(r=i)}),this.list.css(this.wh,i+"px"),this.list.css(this.lt,-r+"px")}this.scroll(this.first,!1)},lock:function(){this.locked=!0,this.buttons()},unlock:function(){this.locked=!1,this.buttons()},size:function(t){return void 0!==t&&(this.options.size=t,this.locked||this.buttons()),this.options.size},has:function(t,e){void 0!==e&&e||(e=t),null!==this.options.size&&e>this.options.size&&(e=this.options.size);for(var i=t;i<=e;i++){var n=this.get(i);if(!n.length||n.hasClass("jcarousel-item-placeholder"))return!1}return!0},get:function(e){return t(">.jcarousel-item-"+e,this.list)},add:function(e,i){var r=this.get(e),a=0,o=t(i);if(0===r.length){for(var s,l=n.intval(e),r=this.create(e);;)if(s=this.get(--l),l<=0||s.length){l<=0?this.list.prepend(r):s.after(r);break}}else a=this.dimension(r);return"LI"==o.get(0).nodeName.toUpperCase()?(r.replaceWith(o),r=o):r.empty().append(i),this.format(r.removeClass(this.className("jcarousel-item-placeholder")),e),o=null!==this.options.visible?Math.ceil(this.clipping()/this.options.visible):null,a=this.dimension(r,o)-a,e>0&&e<this.first&&this.list.css(this.lt,n.intval(this.list.css(this.lt))-a+"px"),this.list.css(this.wh,n.intval(this.list.css(this.wh))+a+"px"),r},remove:function(t){var e=this.get(t);if(e.length&&!(t>=this.first&&t<=this.last)){var i=this.dimension(e);t<this.first&&this.list.css(this.lt,n.intval(this.list.css(this.lt))+i+"px"),e.remove(),this.list.css(this.wh,n.intval(this.list.css(this.wh))-i+"px")}},next:function(){null===this.tail||this.inTail?this.scroll("both"!=this.options.wrap&&"last"!=this.options.wrap||null===this.options.size||this.last!=this.options.size?this.first+this.options.scroll:1):this.scrollTail(!1)},prev:function(){null!==this.tail&&this.inTail?this.scrollTail(!0):this.scroll("both"!=this.options.wrap&&"first"!=this.options.wrap||null===this.options.size||1!=this.first?this.first-this.options.scroll:this.options.size)},scrollTail:function(t){if(!this.locked&&!this.animating&&this.tail){this.pauseAuto();var e=n.intval(this.list.css(this.lt)),e=t?e+this.tail:e-this.tail;this.inTail=!t,this.prevFirst=this.first,this.prevLast=this.last,this.animate(e)}},scroll:function(t,e){!this.locked&&!this.animating&&(this.pauseAuto(),this.animate(this.pos(t),e))},pos:function(t,e){var i=n.intval(this.list.css(this.lt));if(this.locked||this.animating)return i;"circular"!=this.options.wrap&&(t=t<1?1:this.options.size&&t>this.options.size?this.options.size:t);for(var r=this.first>t,a="circular"!=this.options.wrap&&this.first<=1?1:this.first,o=r?this.get(a):this.get(this.last),s=r?a:a-1,l=null,c=0,u=!1,h=0;r?--s>=t:++s<t;)l=this.get(s),u=!l.length,0===l.length&&(l=this.create(s).addClass(this.className("jcarousel-item-placeholder")),o[r?"before":"after"](l),null!==this.first&&"circular"==this.options.wrap&&null!==this.options.size&&(s<=0||s>this.options.size))&&(o=this.get(this.index(s)),o.length&&(l=this.add(s,o.clone(!0)))),o=l,h=this.dimension(l),u&&(c+=h),null!==this.first&&("circular"==this.options.wrap||s>=1&&(null===this.options.size||s<=this.options.size))&&(i=r?i+h:i-h);for(var a=this.clipping(),d=[],p=0,f=0,o=this.get(t-1),s=t;++p;){if(l=this.get(s),u=!l.length,0===l.length&&(l=this.create(s).addClass(this.className("jcarousel-item-placeholder")),0===o.length?this.list.prepend(l):o[r?"before":"after"](l),null!==this.first&&"circular"==this.options.wrap&&null!==this.options.size&&(s<=0||s>this.options.size)&&(o=this.get(this.index(s)),o.length&&(l=this.add(s,o.clone(!0))))),o=l,h=this.dimension(l),0===h)throw Error("jCarousel: No width/height set for items. This will cause an infinite loop. Aborting...");if("circular"!=this.options.wrap&&null!==this.options.size&&s>this.options.size?d.push(l):u&&(c+=h),f+=h,f>=a)break;s++}for(l=0;l<d.length;l++)d[l].remove();if(c>0&&(this.list.css(this.wh,this.dimension(this.list)+c+"px"),r&&(i-=c,this.list.css(this.lt,n.intval(this.list.css(this.lt))-c+"px"))),c=t+p-1,"circular"!=this.options.wrap&&this.options.size&&c>this.options.size&&(c=this.options.size),s>c)for(p=0,s=c,f=0;++p&&(l=this.get(s--),l.length)&&(f+=this.dimension(l),!(f>=a)););for(s=c-p+1,"circular"!=this.options.wrap&&s<1&&(s=1),this.inTail&&r&&(i+=this.tail,this.inTail=!1),this.tail=null,"circular"!=this.options.wrap&&c==this.options.size&&c-p+1>=1&&(r=n.intval(this.get(c).css(this.options.vertical?"marginBottom":"marginRight")),f-r>a)&&(this.tail=f-a-r),e&&t===this.options.size&&this.tail&&(i-=this.tail,this.inTail=!0);t-- >s;)i+=this.dimension(this.get(t));return this.prevFirst=this.first,this.prevLast=this.last,this.first=s,this.last=c,i},animate:function(e,i){if(!this.locked&&!this.animating){this.animating=!0;var n=this,r=function(){if(n.animating=!1,0===e&&n.list.css(n.lt,0),!n.autoStopped&&("circular"==n.options.wrap||"both"==n.options.wrap||"last"==n.options.wrap||null===n.options.size||n.last<n.options.size||n.last==n.options.size&&null!==n.tail&&!n.inTail)&&n.startAuto(),n.buttons(),n.notify("onAfterAnimation"),"circular"==n.options.wrap&&null!==n.options.size)for(var t=n.prevFirst;t<=n.prevLast;t++)null!==t&&!(t>=n.first&&t<=n.last)&&(t<1||t>n.options.size)&&n.remove(t)};if(this.notify("onBeforeAnimation"),this.options.animation&&i!==!1){var a=this.options.vertical?{top:e}:this.options.rtl?{right:e}:{left:e},r={duration:this.options.animation,easing:this.options.easing,complete:r};t.isFunction(this.options.animationStepCallback)&&(r.step=this.options.animationStepCallback),this.list.animate(a,r)}else this.list.css(this.lt,e+"px"),r()}},startAuto:function(t){if(void 0!==t&&(this.options.auto=t),0===this.options.auto)return this.stopAuto();if(null===this.timer){this.autoStopped=!1;var e=this;this.timer=window.setTimeout(function(){e.next()},1e3*this.options.auto)}},stopAuto:function(){this.pauseAuto(),this.autoStopped=!0},pauseAuto:function(){null!==this.timer&&(window.clearTimeout(this.timer),this.timer=null)},buttons:function(t,e){null!=t||(t=!this.locked&&0!==this.options.size&&(this.options.wrap&&"first"!=this.options.wrap||null===this.options.size||this.last<this.options.size),this.locked||this.options.wrap&&"first"!=this.options.wrap||null===this.options.size||!(this.last>=this.options.size))||(t=null!==this.tail&&!this.inTail),null!=e||(e=!this.locked&&0!==this.options.size&&(this.options.wrap&&"last"!=this.options.wrap||this.first>1),this.locked||this.options.wrap&&"last"!=this.options.wrap||null===this.options.size||1!=this.first)||(e=null!==this.tail&&this.inTail);var i=this;this.buttonNext.size()>0?(this.buttonNext.unbind(this.options.buttonNextEvent+".jcarousel",this.funcNext),t&&this.buttonNext.bind(this.options.buttonNextEvent+".jcarousel",this.funcNext),this.buttonNext[t?"removeClass":"addClass"](this.className("jcarousel-next-disabled")).attr("disabled",!t),null!==this.options.buttonNextCallback&&this.buttonNext.data("jcarouselstate")!=t&&this.buttonNext.each(function(){i.options.buttonNextCallback(i,this,t)}).data("jcarouselstate",t)):null!==this.options.buttonNextCallback&&this.buttonNextState!=t&&this.options.buttonNextCallback(i,null,t),this.buttonPrev.size()>0?(this.buttonPrev.unbind(this.options.buttonPrevEvent+".jcarousel",this.funcPrev),e&&this.buttonPrev.bind(this.options.buttonPrevEvent+".jcarousel",this.funcPrev),this.buttonPrev[e?"removeClass":"addClass"](this.className("jcarousel-prev-disabled")).attr("disabled",!e),null!==this.options.buttonPrevCallback&&this.buttonPrev.data("jcarouselstate")!=e&&this.buttonPrev.each(function(){i.options.buttonPrevCallback(i,this,e)}).data("jcarouselstate",e)):null!==this.options.buttonPrevCallback&&this.buttonPrevState!=e&&this.options.buttonPrevCallback(i,null,e),this.buttonNextState=t,this.buttonPrevState=e},notify:function(t){var e=null===this.prevFirst?"init":this.prevFirst<this.first?"next":"prev";this.callback("itemLoadCallback",t,e),this.prevFirst!==this.first&&(this.callback("itemFirstInCallback",t,e,this.first),this.callback("itemFirstOutCallback",t,e,this.prevFirst)),this.prevLast!==this.last&&(this.callback("itemLastInCallback",t,e,this.last),this.callback("itemLastOutCallback",t,e,this.prevLast)),this.callback("itemVisibleInCallback",t,e,this.first,this.last,this.prevFirst,this.prevLast),this.callback("itemVisibleOutCallback",t,e,this.prevFirst,this.prevLast,this.first,this.last)},callback:function(e,i,n,r,a,o,s){if(null!=this.options[e]&&("object"==typeof this.options[e]||"onAfterAnimation"==i)){var l="object"==typeof this.options[e]?this.options[e][i]:this.options[e];if(t.isFunction(l)){var c=this;if(void 0===r)l(c,n,i);else if(void 0===a)this.get(r).each(function(){l(c,this,r,n,i)});else for(var e=function(t){c.get(t).each(function(){l(c,this,t,n,i)})},u=r;u<=a;u++)null!==u&&!(u>=o&&u<=s)&&e(u)}}},create:function(t){return this.format("<li></li>",t)},format:function(e,i){for(var e=t(e),n=e.get(0).className.split(" "),r=0;r<n.length;r++)n[r].indexOf("jcarousel-")!=-1&&e.removeClass(n[r]);return e.addClass(this.className("jcarousel-item")).addClass(this.className("jcarousel-item-"+i)).css({float:this.options.rtl?"right":"left","list-style":"none"}).attr("jcarouselindex",i),e},className:function(t){return t+" "+t+(this.options.vertical?"-vertical":"-horizontal")},dimension:function(e,i){var r=t(e);if(null==i)return this.options.vertical?r.outerHeight(!0)||n.intval(this.options.itemFallbackDimension):r.outerWidth(!0)||n.intval(this.options.itemFallbackDimension);var a=this.options.vertical?i-n.intval(r.css("marginTop"))-n.intval(r.css("marginBottom")):i-n.intval(r.css("marginLeft"))-n.intval(r.css("marginRight"));return t(r).css(this.wh,a+"px"),this.dimension(r)},clipping:function(){return this.options.vertical?this.clip[0].offsetHeight-n.intval(this.clip.css("borderTopWidth"))-n.intval(this.clip.css("borderBottomWidth")):this.clip[0].offsetWidth-n.intval(this.clip.css("borderLeftWidth"))-n.intval(this.clip.css("borderRightWidth"))},index:function(t,e){return null==e&&(e=this.options.size),Math.round(((t-1)/e-Math.floor((t-1)/e))*e)+1}}),n.extend({defaults:function(i){return t.extend(e,i||{})},intval:function(t){return t=parseInt(t,10),isNaN(t)?0:t},windowLoaded:function(){i=!0}}),t.fn.jcarousel=function(e){if("string"==typeof e){var i=t(this).data("jcarousel"),r=Array.prototype.slice.call(arguments,1);return i[e].apply(i,r)}return this.each(function(){var i=t(this).data("jcarousel");i?(e&&t.extend(i.options,e),i.reload()):t(this).data("jcarousel",new n(this,e))})}}(jQuery),!function(t,e,i,n){function r(e,i){this.settings=null,this.options=t.extend({},r.Defaults,i),this.$element=t(e),this.drag=t.extend({},d),this.state=t.extend({},p),this.e=t.extend({},f),this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._invalidated={},this._pipe=[],t.each(r.Plugins,t.proxy(function(t,e){this._plugins[t[0].toLowerCase()+t.slice(1)]=new e(this)},this)),t.each(r.Pipe,t.proxy(function(e,i){this._pipe.push({filter:i.filter,run:t.proxy(i.run,this)})},this)),this.setup(),this.initialize()}function a(t){if(t.touches!==n)return{x:t.touches[0].pageX,y:t.touches[0].pageY};if(t.touches===n){if(t.pageX!==n)return{x:t.pageX,y:t.pageY};if(t.pageX===n)return{x:t.clientX,y:t.clientY}}}function o(t){var e,n,r=i.createElement("div"),a=t;for(e in a)if(n=a[e],"undefined"!=typeof r.style[n])return r=null,[n,e];return[!1]}function s(){return o(["transition","WebkitTransition","MozTransition","OTransition"])[1]}function l(){return o(["transform","WebkitTransform","MozTransform","OTransform","msTransform"])[0]}function c(){return o(["perspective","webkitPerspective","MozPerspective","OPerspective","MsPerspective"])[0]}function u(){return"ontouchstart"in e||!!navigator.msMaxTouchPoints}function h(){return e.navigator.msPointerEnabled}var d,p,f;d={start:0,startX:0,startY:0,current:0,currentX:0,currentY:0,offsetX:0,offsetY:0,distance:null,startTime:0,endTime:0,updatedX:0,targetEl:null},p={isTouch:!1,isScrolling:!1,isSwiping:!1,direction:!1,inMotion:!1},f={_onDragStart:null,_onDragMove:null,_onDragEnd:null,_transitionEnd:null,_resizer:null,_responsiveCall:null,_goToLoop:null,_checkVisibile:null},r.Defaults={items:3,loop:!1,center:!1,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:e,responsiveClass:!1,fallbackEasing:"swing",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",themeClass:"owl-theme",baseClass:"owl-carousel",itemClass:"owl-item",centerClass:"center",activeClass:"active"},r.Width={Default:"default",Inner:"inner",Outer:"outer"},r.Plugins={},r.Pipe=[{filter:["width","items","settings"],run:function(t){t.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){var t=this._clones,e=this.$stage.children(".cloned");(e.length!==t.length||!this.settings.loop&&t.length>0)&&(this.$stage.children(".cloned").remove(),this._clones=[])}},{filter:["items","settings"],run:function(){var t,e,i=this._clones,n=this._items,r=this.settings.loop?i.length-Math.max(2*this.settings.items,4):0;for(t=0,e=Math.abs(r/2);e>t;t++)r>0?(this.$stage.children().eq(n.length+i.length-1).remove(),i.pop(),this.$stage.children().eq(0).remove(),i.pop()):(i.push(i.length/2),this.$stage.append(n[i[i.length-1]].clone().addClass("cloned")),i.push(n.length-1-(i.length-1)/2),this.$stage.prepend(n[i[i.length-1]].clone().addClass("cloned")))}},{filter:["width","items","settings"],run:function(){var t,e,i,n=this.settings.rtl?1:-1,r=(this.width()/this.settings.items).toFixed(3),a=0;for(this._coordinates=[],e=0,i=this._clones.length+this._items.length;i>e;e++)t=this._mergers[this.relative(e)],t=this.settings.mergeFit&&Math.min(t,this.settings.items)||t,a+=(this.settings.autoWidth?this._items[this.relative(e)].width()+this.settings.margin:r*t)*n,this._coordinates.push(a)}},{filter:["width","items","settings"],run:function(){var e,i,n=(this.width()/this.settings.items).toFixed(3),r={width:Math.abs(this._coordinates[this._coordinates.length-1])+2*this.settings.stagePadding,"padding-left":this.settings.stagePadding||"","padding-right":this.settings.stagePadding||""};if(this.$stage.css(r),r={width:this.settings.autoWidth?"auto":n-this.settings.margin},r[this.settings.rtl?"margin-left":"margin-right"]=this.settings.margin,!this.settings.autoWidth&&t.grep(this._mergers,function(t){return t>1}).length>0)for(e=0,i=this._coordinates.length;i>e;e++)r.width=Math.abs(this._coordinates[e])-Math.abs(this._coordinates[e-1]||0)-this.settings.margin,this.$stage.children().eq(e).css(r);else this.$stage.children().css(r)}},{filter:["width","items","settings"],run:function(t){t.current&&this.reset(this.$stage.children().index(t.current))}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){var t,e,i,n,r=this.settings.rtl?1:-1,a=2*this.settings.stagePadding,o=this.coordinates(this.current())+a,s=o+this.width()*r,l=[];for(i=0,n=this._coordinates.length;n>i;i++)t=this._coordinates[i-1]||0,e=Math.abs(this._coordinates[i])+a*r,(this.op(t,"<=",o)&&this.op(t,">",s)||this.op(e,"<",o)&&this.op(e,">",s))&&l.push(i);this.$stage.children("."+this.settings.activeClass).removeClass(this.settings.activeClass),this.$stage.children(":eq("+l.join("), :eq(")+")").addClass(this.settings.activeClass),this.settings.center&&(this.$stage.children("."+this.settings.centerClass).removeClass(this.settings.centerClass),this.$stage.children().eq(this.current()).addClass(this.settings.centerClass))}}],r.prototype.initialize=function(){if(this.trigger("initialize"),this.$element.addClass(this.settings.baseClass).addClass(this.settings.themeClass).toggleClass("owl-rtl",this.settings.rtl),this.browserSupport(),this.settings.autoWidth&&this.state.imagesLoaded!==!0){var e,i,r;if(e=this.$element.find("img"),i=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:n,r=this.$element.children(i).width(),e.length&&0>=r)return this.preloadAutoWidthImages(e),!1}this.$element.addClass("owl-loading"),this.$stage=t("<"+this.settings.stageElement+' class="owl-stage"/>').wrap('<div class="owl-stage-outer">'),this.$element.append(this.$stage.parent()),this.replace(this.$element.children().not(this.$stage.parent())),this._width=this.$element.width(),this.refresh(),this.$element.removeClass("owl-loading").addClass("owl-loaded"),this.eventsCall(),this.internalEvents(),this.addTriggerableEvents(),this.trigger("initialized")},r.prototype.setup=function(){var e=this.viewport(),i=this.options.responsive,n=-1,r=null;i?(t.each(i,function(t){e>=t&&t>n&&(n=Number(t))}),r=t.extend({},this.options,i[n]),delete r.responsive,r.responsiveClass&&this.$element.attr("class",function(t,e){return e.replace(/\b owl-responsive-\S+/g,"")}).addClass("owl-responsive-"+n)):r=t.extend({},this.options),(null===this.settings||this._breakpoint!==n)&&(this.trigger("change",{property:{name:"settings",value:r}}),this._breakpoint=n,this.settings=r,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}}));
  },r.prototype.optionsLogic=function(){this.$element.toggleClass("owl-center",this.settings.center),this.settings.loop&&this._items.length<this.settings.items&&(this.settings.loop=!1),this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},r.prototype.prepare=function(e){var i=this.trigger("prepare",{content:e});return i.data||(i.data=t("<"+this.settings.itemElement+"/>").addClass(this.settings.itemClass).append(e)),this.trigger("prepared",{content:i.data}),i.data},r.prototype.update=function(){for(var e=0,i=this._pipe.length,n=t.proxy(function(t){return this[t]},this._invalidated),r={};i>e;)(this._invalidated.all||t.grep(this._pipe[e].filter,n).length>0)&&this._pipe[e].run(r),e++;this._invalidated={}},r.prototype.width=function(t){switch(t=t||r.Width.Default){case r.Width.Inner:case r.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},r.prototype.refresh=function(){return 0!==this._items.length&&((new Date).getTime(),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$stage.addClass("owl-refresh"),this.update(),this.$stage.removeClass("owl-refresh"),this.state.orientation=e.orientation,this.watchVisibility(),this.trigger("refreshed"),void 0)},r.prototype.eventsCall=function(){this.e._onDragStart=t.proxy(function(t){this.onDragStart(t)},this),this.e._onDragMove=t.proxy(function(t){this.onDragMove(t)},this),this.e._onDragEnd=t.proxy(function(t){this.onDragEnd(t)},this),this.e._onResize=t.proxy(function(t){this.onResize(t)},this),this.e._transitionEnd=t.proxy(function(t){this.transitionEnd(t)},this),this.e._preventClick=t.proxy(function(t){this.preventClick(t)},this)},r.prototype.onThrottledResize=function(){e.clearTimeout(this.resizeTimer),this.resizeTimer=e.setTimeout(this.e._onResize,this.settings.responsiveRefreshRate)},r.prototype.onResize=function(){return!!this._items.length&&(this._width!==this.$element.width()&&(!this.trigger("resize").isDefaultPrevented()&&(this._width=this.$element.width(),this.invalidate("width"),this.refresh(),void this.trigger("resized"))))},r.prototype.eventsRouter=function(t){var e=t.type;"mousedown"===e||"touchstart"===e?this.onDragStart(t):"mousemove"===e||"touchmove"===e?this.onDragMove(t):"mouseup"===e||"touchend"===e?this.onDragEnd(t):"touchcancel"===e&&this.onDragEnd(t)},r.prototype.internalEvents=function(){var i=(u(),h());this.settings.mouseDrag?(this.$stage.on("mousedown",t.proxy(function(t){this.eventsRouter(t)},this)),this.$stage.on("dragstart",function(){return!1}),this.$stage.get(0).onselectstart=function(){return!1}):this.$element.addClass("owl-text-select-on"),this.settings.touchDrag&&!i&&this.$stage.on("touchstart touchcancel",t.proxy(function(t){this.eventsRouter(t)},this)),this.transitionEndVendor&&this.on(this.$stage.get(0),this.transitionEndVendor,this.e._transitionEnd,!1),this.settings.responsive!==!1&&this.on(e,"resize",t.proxy(this.onThrottledResize,this))},r.prototype.onDragStart=function(n){var r,o,s,l;if(r=n.originalEvent||n||e.event,3===r.which||this.state.isTouch)return!1;if("mousedown"===r.type&&this.$stage.addClass("owl-grab"),this.trigger("drag"),this.drag.startTime=(new Date).getTime(),this.speed(0),this.state.isTouch=!0,this.state.isScrolling=!1,this.state.isSwiping=!1,this.drag.distance=0,o=a(r).x,s=a(r).y,this.drag.offsetX=this.$stage.position().left,this.drag.offsetY=this.$stage.position().top,this.settings.rtl&&(this.drag.offsetX=this.$stage.position().left+this.$stage.width()-this.width()+this.settings.margin),this.state.inMotion&&this.support3d)l=this.getTransformProperty(),this.drag.offsetX=l,this.animate(l),this.state.inMotion=!0;else if(this.state.inMotion&&!this.support3d)return this.state.inMotion=!1,!1;this.drag.startX=o-this.drag.offsetX,this.drag.startY=s-this.drag.offsetY,this.drag.start=o-this.drag.startX,this.drag.targetEl=r.target||r.srcElement,this.drag.updatedX=this.drag.start,("IMG"===this.drag.targetEl.tagName||"A"===this.drag.targetEl.tagName)&&(this.drag.targetEl.draggable=!1),t(i).on("mousemove.owl.dragEvents mouseup.owl.dragEvents touchmove.owl.dragEvents touchend.owl.dragEvents",t.proxy(function(t){this.eventsRouter(t)},this))},r.prototype.onDragMove=function(t){var i,r,o,s,l,c;this.state.isTouch&&(this.state.isScrolling||(i=t.originalEvent||t||e.event,r=a(i).x,o=a(i).y,this.drag.currentX=r-this.drag.startX,this.drag.currentY=o-this.drag.startY,this.drag.distance=this.drag.currentX-this.drag.offsetX,this.drag.distance<0?this.state.direction=this.settings.rtl?"right":"left":this.drag.distance>0&&(this.state.direction=this.settings.rtl?"left":"right"),this.settings.loop?this.op(this.drag.currentX,">",this.coordinates(this.minimum()))&&"right"===this.state.direction?this.drag.currentX-=(this.settings.center&&this.coordinates(0))-this.coordinates(this._items.length):this.op(this.drag.currentX,"<",this.coordinates(this.maximum()))&&"left"===this.state.direction&&(this.drag.currentX+=(this.settings.center&&this.coordinates(0))-this.coordinates(this._items.length)):(s=this.coordinates(this.settings.rtl?this.maximum():this.minimum()),l=this.coordinates(this.settings.rtl?this.minimum():this.maximum()),c=this.settings.pullDrag?this.drag.distance/5:0,this.drag.currentX=Math.max(Math.min(this.drag.currentX,s+c),l+c)),(this.drag.distance>8||this.drag.distance<-8)&&(i.preventDefault!==n?i.preventDefault():i.returnValue=!1,this.state.isSwiping=!0),this.drag.updatedX=this.drag.currentX,(this.drag.currentY>16||this.drag.currentY<-16)&&this.state.isSwiping===!1&&(this.state.isScrolling=!0,this.drag.updatedX=this.drag.start),this.animate(this.drag.updatedX)))},r.prototype.onDragEnd=function(e){var n,r,a;if(this.state.isTouch){if("mouseup"===e.type&&this.$stage.removeClass("owl-grab"),this.trigger("dragged"),this.drag.targetEl.removeAttribute("draggable"),this.state.isTouch=!1,this.state.isScrolling=!1,this.state.isSwiping=!1,0===this.drag.distance&&this.state.inMotion!==!0)return this.state.inMotion=!1,!1;this.drag.endTime=(new Date).getTime(),n=this.drag.endTime-this.drag.startTime,r=Math.abs(this.drag.distance),(r>3||n>300)&&this.removeClick(this.drag.targetEl),a=this.closest(this.drag.updatedX),this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(a),this.invalidate("position"),this.update(),this.settings.pullDrag||this.drag.updatedX!==this.coordinates(a)||this.transitionEnd(),this.drag.distance=0,t(i).off(".owl.dragEvents")}},r.prototype.removeClick=function(i){this.drag.targetEl=i,t(i).on("click.preventClick",this.e._preventClick),e.setTimeout(function(){t(i).off("click.preventClick")},300)},r.prototype.preventClick=function(e){e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),t(e.target).off("click.preventClick")},r.prototype.getTransformProperty=function(){var t,i;return t=e.getComputedStyle(this.$stage.get(0),null).getPropertyValue(this.vendorName+"transform"),t=t.replace(/matrix(3d)?\(|\)/g,"").split(","),i=16===t.length,i!==!0?t[4]:t[12]},r.prototype.closest=function(e){var i=-1,n=30,r=this.width(),a=this.coordinates();return this.settings.freeDrag||t.each(a,t.proxy(function(t,o){return e>o-n&&o+n>e?i=t:this.op(e,"<",o)&&this.op(e,">",a[t+1]||o-r)&&(i="left"===this.state.direction?t+1:t),-1===i},this)),this.settings.loop||(this.op(e,">",a[this.minimum()])?i=e=this.minimum():this.op(e,"<",a[this.maximum()])&&(i=e=this.maximum())),i},r.prototype.animate=function(e){this.trigger("translate"),this.state.inMotion=this.speed()>0,this.support3d?this.$stage.css({transform:"translate3d("+e+"px,0px, 0px)",transition:this.speed()/1e3+"s"}):this.state.isTouch?this.$stage.css({left:e+"px"}):this.$stage.animate({left:e},this.speed()/1e3,this.settings.fallbackEasing,t.proxy(function(){this.state.inMotion&&this.transitionEnd()},this))},r.prototype.current=function(t){if(t===n)return this._current;if(0===this._items.length)return n;if(t=this.normalize(t),this._current!==t){var e=this.trigger("change",{property:{name:"position",value:t}});e.data!==n&&(t=this.normalize(e.data)),this._current=t,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},r.prototype.invalidate=function(t){this._invalidated[t]=!0},r.prototype.reset=function(t){t=this.normalize(t),t!==n&&(this._speed=0,this._current=t,this.suppress(["translate","translated"]),this.animate(this.coordinates(t)),this.release(["translate","translated"]))},r.prototype.normalize=function(e,i){var r=i?this._items.length:this._items.length+this._clones.length;return!t.isNumeric(e)||1>r?n:e=this._clones.length?(e%r+r)%r:Math.max(this.minimum(i),Math.min(this.maximum(i),e))},r.prototype.relative=function(t){return t=this.normalize(t),t-=this._clones.length/2,this.normalize(t,!0)},r.prototype.maximum=function(t){var e,i,n,r=0,a=this.settings;if(t)return this._items.length-1;if(!a.loop&&a.center)e=this._items.length-1;else if(a.loop||a.center)if(a.loop||a.center)e=this._items.length+a.items;else{if(!a.autoWidth&&!a.merge)throw"Can not detect maximum absolute position.";for(revert=a.rtl?1:-1,i=this.$stage.width()-this.$element.width();(n=this.coordinates(r))&&!(n*revert>=i);)e=++r}else e=this._items.length-a.items;return e},r.prototype.minimum=function(t){return t?0:this._clones.length/2},r.prototype.items=function(t){return t===n?this._items.slice():(t=this.normalize(t,!0),this._items[t])},r.prototype.mergers=function(t){return t===n?this._mergers.slice():(t=this.normalize(t,!0),this._mergers[t])},r.prototype.clones=function(e){var i=this._clones.length/2,r=i+this._items.length,a=function(t){return t%2===0?r+t/2:i-(t+1)/2};return e===n?t.map(this._clones,function(t,e){return a(e)}):t.map(this._clones,function(t,i){return t===e?a(i):null})},r.prototype.speed=function(t){return t!==n&&(this._speed=t),this._speed},r.prototype.coordinates=function(e){var i=null;return e===n?t.map(this._coordinates,t.proxy(function(t,e){return this.coordinates(e)},this)):(this.settings.center?(i=this._coordinates[e],i+=(this.width()-i+(this._coordinates[e-1]||0))/2*(this.settings.rtl?-1:1)):i=this._coordinates[e-1]||0,i)},r.prototype.duration=function(t,e,i){return Math.min(Math.max(Math.abs(e-t),1),6)*Math.abs(i||this.settings.smartSpeed)},r.prototype.to=function(i,n){if(this.settings.loop){var r=i-this.relative(this.current()),a=this.current(),o=this.current(),s=this.current()+r,l=0>o-s,c=this._clones.length+this._items.length;s<this.settings.items&&l===!1?(a=o+this._items.length,this.reset(a)):s>=c-this.settings.items&&l===!0&&(a=o-this._items.length,this.reset(a)),e.clearTimeout(this.e._goToLoop),this.e._goToLoop=e.setTimeout(t.proxy(function(){this.speed(this.duration(this.current(),a+r,n)),this.current(a+r),this.update()},this),30)}else this.speed(this.duration(this.current(),i,n)),this.current(i),this.update()},r.prototype.next=function(t){t=t||!1,this.to(this.relative(this.current())+1,t)},r.prototype.prev=function(t){t=t||!1,this.to(this.relative(this.current())-1,t)},r.prototype.transitionEnd=function(t){return(t===n||(t.stopPropagation(),(t.target||t.srcElement||t.originalTarget)===this.$stage.get(0)))&&(this.state.inMotion=!1,void this.trigger("translated"))},r.prototype.viewport=function(){var n;if(this.options.responsiveBaseElement!==e)n=t(this.options.responsiveBaseElement).width();else if(e.innerWidth)n=e.innerWidth;else{if(!i.documentElement||!i.documentElement.clientWidth)throw"Can not detect viewport width.";n=i.documentElement.clientWidth}return n},r.prototype.replace=function(e){this.$stage.empty(),this._items=[],e&&(e=e instanceof jQuery?e:t(e)),this.settings.nestedItemSelector&&(e=e.find("."+this.settings.nestedItemSelector)),e.filter(function(){return 1===this.nodeType}).each(t.proxy(function(t,e){e=this.prepare(e),this.$stage.append(e),this._items.push(e),this._mergers.push(1*e.find("[data-merge]").andSelf("[data-merge]").attr("data-merge")||1)},this)),this.reset(t.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},r.prototype.add=function(t,e){e=e===n?this._items.length:this.normalize(e,!0),this.trigger("add",{content:t,position:e}),0===this._items.length||e===this._items.length?(this.$stage.append(t),this._items.push(t),this._mergers.push(1*t.find("[data-merge]").andSelf("[data-merge]").attr("data-merge")||1)):(this._items[e].before(t),this._items.splice(e,0,t),this._mergers.splice(e,0,1*t.find("[data-merge]").andSelf("[data-merge]").attr("data-merge")||1)),this.invalidate("items"),this.trigger("added",{content:t,position:e})},r.prototype.remove=function(t){t=this.normalize(t,!0),t!==n&&(this.trigger("remove",{content:this._items[t],position:t}),this._items[t].remove(),this._items.splice(t,1),this._mergers.splice(t,1),this.invalidate("items"),this.trigger("removed",{content:null,position:t}))},r.prototype.addTriggerableEvents=function(){var e=t.proxy(function(e,i){return t.proxy(function(t){t.relatedTarget!==this&&(this.suppress([i]),e.apply(this,[].slice.call(arguments,1)),this.release([i]))},this)},this);t.each({next:this.next,prev:this.prev,to:this.to,destroy:this.destroy,refresh:this.refresh,replace:this.replace,add:this.add,remove:this.remove},t.proxy(function(t,i){this.$element.on(t+".owl.carousel",e(i,t+".owl.carousel"))},this))},r.prototype.watchVisibility=function(){function i(t){return t.offsetWidth>0&&t.offsetHeight>0}function n(){i(this.$element.get(0))&&(this.$element.removeClass("owl-hidden"),this.refresh(),e.clearInterval(this.e._checkVisibile))}i(this.$element.get(0))||(this.$element.addClass("owl-hidden"),e.clearInterval(this.e._checkVisibile),this.e._checkVisibile=e.setInterval(t.proxy(n,this),500))},r.prototype.preloadAutoWidthImages=function(e){var i,n,r,a;i=0,n=this,e.each(function(o,s){r=t(s),a=new Image,a.onload=function(){i++,r.attr("src",a.src),r.css("opacity",1),i>=e.length&&(n.state.imagesLoaded=!0,n.initialize())},a.src=r.attr("src")||r.attr("data-src")||r.attr("data-src-retina")})},r.prototype.destroy=function(){this.$element.hasClass(this.settings.themeClass)&&this.$element.removeClass(this.settings.themeClass),this.settings.responsive!==!1&&t(e).off("resize.owl.carousel"),this.transitionEndVendor&&this.off(this.$stage.get(0),this.transitionEndVendor,this.e._transitionEnd);for(var n in this._plugins)this._plugins[n].destroy();(this.settings.mouseDrag||this.settings.touchDrag)&&(this.$stage.off("mousedown touchstart touchcancel"),t(i).off(".owl.dragEvents"),this.$stage.get(0).onselectstart=function(){},this.$stage.off("dragstart",function(){return!1})),this.$element.off(".owl"),this.$stage.children(".cloned").remove(),this.e=null,this.$element.removeData("owlCarousel"),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$stage.unwrap()},r.prototype.op=function(t,e,i){var n=this.settings.rtl;switch(e){case"<":return n?t>i:i>t;case">":return n?i>t:t>i;case">=":return n?i>=t:t>=i;case"<=":return n?t>=i:i>=t}},r.prototype.on=function(t,e,i,n){t.addEventListener?t.addEventListener(e,i,n):t.attachEvent&&t.attachEvent("on"+e,i)},r.prototype.off=function(t,e,i,n){t.removeEventListener?t.removeEventListener(e,i,n):t.detachEvent&&t.detachEvent("on"+e,i)},r.prototype.trigger=function(e,i,n){var r={item:{count:this._items.length,index:this.current()}},a=t.camelCase(t.grep(["on",e,n],function(t){return t}).join("-").toLowerCase()),o=t.Event([e,"owl",n||"carousel"].join(".").toLowerCase(),t.extend({relatedTarget:this},r,i));return this._supress[e]||(t.each(this._plugins,function(t,e){e.onTrigger&&e.onTrigger(o)}),this.$element.trigger(o),this.settings&&"function"==typeof this.settings[a]&&this.settings[a].apply(this,o)),o},r.prototype.suppress=function(e){t.each(e,t.proxy(function(t,e){this._supress[e]=!0},this))},r.prototype.release=function(e){t.each(e,t.proxy(function(t,e){delete this._supress[e]},this))},r.prototype.browserSupport=function(){if(this.support3d=c(),this.support3d){this.transformVendor=l();var t=["transitionend","webkitTransitionEnd","transitionend","oTransitionEnd"];this.transitionEndVendor=t[s()],this.vendorName=this.transformVendor.replace(/Transform/i,""),this.vendorName=""!==this.vendorName?"-"+this.vendorName.toLowerCase()+"-":""}this.state.orientation=e.orientation},t.fn.owlCarousel=function(e){return this.each(function(){t(this).data("owlCarousel")||t(this).data("owlCarousel",new r(this,e))})},t.fn.owlCarousel.Constructor=r}(window.Zepto||window.jQuery,window,document),function(t,e){var i=function(e){this._core=e,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel":t.proxy(function(e){if(e.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(e.property&&"position"==e.property.name||"initialized"==e.type))for(var i=this._core.settings,n=i.center&&Math.ceil(i.items/2)||i.items,r=i.center&&-1*n||0,a=(e.property&&e.property.value||this._core.current())+r,o=this._core.clones().length,s=t.proxy(function(t,e){this.load(e)},this);r++<n;)this.load(o/2+this._core.relative(a)),o&&t.each(this._core.clones(this._core.relative(a++)),s)},this)},this._core.options=t.extend({},i.Defaults,this._core.options),this._core.$element.on(this._handlers)};i.Defaults={lazyLoad:!1},i.prototype.load=function(i){var n=this._core.$stage.children().eq(i),r=n&&n.find(".owl-lazy");!r||t.inArray(n.get(0),this._loaded)>-1||(r.each(t.proxy(function(i,n){var r,a=t(n),o=e.devicePixelRatio>1&&a.attr("data-src-retina")||a.attr("data-src");this._core.trigger("load",{element:a,url:o},"lazy"),a.is("img")?a.one("load.owl.lazy",t.proxy(function(){a.css("opacity",1),this._core.trigger("loaded",{element:a,url:o},"lazy")},this)).attr("src",o):(r=new Image,r.onload=t.proxy(function(){a.css({"background-image":"url("+o+")",opacity:"1"}),this._core.trigger("loaded",{element:a,url:o},"lazy")},this),r.src=o)},this)),this._loaded.push(n.get(0)))},i.prototype.destroy=function(){var t,e;for(t in this.handlers)this._core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Lazy=i}(window.Zepto||window.jQuery,window,document),function(t){var e=function(i){this._core=i,this._handlers={"initialized.owl.carousel":t.proxy(function(){this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":t.proxy(function(t){this._core.settings.autoHeight&&"position"==t.property.name&&this.update()},this),"loaded.owl.lazy":t.proxy(function(t){this._core.settings.autoHeight&&t.element.closest("."+this._core.settings.itemClass)===this._core.$stage.children().eq(this._core.current())&&this.update()},this)},this._core.options=t.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers)};e.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},e.prototype.update=function(){this._core.$stage.parent().height(this._core.$stage.children().eq(this._core.current()).height()).addClass(this._core.settings.autoHeightClass)},e.prototype.destroy=function(){var t,e;for(t in this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.AutoHeight=e}(window.Zepto||window.jQuery,window,document),function(t,e,i){var n=function(e){this._core=e,this._videos={},this._playing=null,this._fullscreen=!1,this._handlers={"resize.owl.carousel":t.proxy(function(t){this._core.settings.video&&!this.isInFullScreen()&&t.preventDefault()},this),"refresh.owl.carousel changed.owl.carousel":t.proxy(function(){this._playing&&this.stop()},this),"prepared.owl.carousel":t.proxy(function(e){var i=t(e.content).find(".owl-video");i.length&&(i.css("display","none"),this.fetch(i,t(e.content)))},this)},this._core.options=t.extend({},n.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",t.proxy(function(t){this.play(t)},this))};n.Defaults={video:!1,videoHeight:!1,videoWidth:!1},n.prototype.fetch=function(t,e){var i=t.attr("data-vimeo-id")?"vimeo":"youtube",n=t.attr("data-vimeo-id")||t.attr("data-youtube-id"),r=t.attr("data-width")||this._core.settings.videoWidth,a=t.attr("data-height")||this._core.settings.videoHeight,o=t.attr("href");if(!o)throw new Error("Missing video URL.");if(n=o.match(/(http:|https:|)\/\/(player.|www.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com))\/(video\/|embed\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/),n[3].indexOf("youtu")>-1)i="youtube";else{if(!(n[3].indexOf("vimeo")>-1))throw new Error("Video URL not supported.");i="vimeo"}n=n[6],this._videos[o]={type:i,id:n,width:r,height:a},e.attr("data-video",o),this.thumbnail(t,this._videos[o])},n.prototype.thumbnail=function(e,i){var n,r,a,o=i.width&&i.height?'style="width:'+i.width+"px;height:"+i.height+'px;"':"",s=e.find("img"),l="src",c="",u=this._core.settings,h=function(t){r='<div class="owl-video-play-icon"></div>',n=u.lazyLoad?'<div class="owl-video-tn '+c+'" '+l+'="'+t+'"></div>':'<div class="owl-video-tn" style="opacity:1;background-image:url('+t+')"></div>',e.after(n),e.after(r)};return e.wrap('<div class="owl-video-wrapper"'+o+"></div>"),this._core.settings.lazyLoad&&(l="data-src",c="owl-lazy"),s.length?(h(s.attr(l)),s.remove(),!1):void("youtube"===i.type?(a="http://img.youtube.com/vi/"+i.id+"/hqdefault.jpg",h(a)):"vimeo"===i.type&&t.ajax({type:"GET",url:"http://vimeo.com/api/v2/video/"+i.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){a=t[0].thumbnail_large,h(a)}}))},n.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null},n.prototype.play=function(e){this._core.trigger("play",null,"video"),this._playing&&this.stop();var i,n,r=t(e.target||e.srcElement),a=r.closest("."+this._core.settings.itemClass),o=this._videos[a.attr("data-video")],s=o.width||"100%",l=o.height||this._core.$stage.height();"youtube"===o.type?i='<iframe width="'+s+'" height="'+l+'" src="http://www.youtube.com/embed/'+o.id+"?autoplay=1&v="+o.id+'" frameborder="0" allowfullscreen></iframe>':"vimeo"===o.type&&(i='<iframe src="http://player.vimeo.com/video/'+o.id+'?autoplay=1" width="'+s+'" height="'+l+'" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>'),a.addClass("owl-video-playing"),this._playing=a,n=t('<div style="height:'+l+"px; width:"+s+'px" class="owl-video-frame">'+i+"</div>"),r.after(n)},n.prototype.isInFullScreen=function(){var n=i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement;return n&&t(n).parent().hasClass("owl-video-frame")&&(this._core.speed(0),this._fullscreen=!0),!(n&&this._fullscreen&&this._playing)&&(this._fullscreen?(this._fullscreen=!1,!1):!this._playing||this._core.state.orientation===e.orientation||(this._core.state.orientation=e.orientation,!1))},n.prototype.destroy=function(){var t,e;this._core.$element.off("click.owl.video");for(t in this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Video=n}(window.Zepto||window.jQuery,window,document),function(t,e,i,n){var r=function(e){this.core=e,this.core.options=t.extend({},r.Defaults,this.core.options),this.swapping=!0,this.previous=n,this.next=n,this.handlers={"change.owl.carousel":t.proxy(function(t){"position"==t.property.name&&(this.previous=this.core.current(),this.next=t.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":t.proxy(function(t){this.swapping="translated"==t.type},this),"translate.owl.carousel":t.proxy(function(){this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};r.Defaults={animateOut:!1,animateIn:!1},r.prototype.swap=function(){if(1===this.core.settings.items&&this.core.support3d){this.core.speed(0);var e,i=t.proxy(this.clear,this),n=this.core.$stage.children().eq(this.previous),r=this.core.$stage.children().eq(this.next),a=this.core.settings.animateIn,o=this.core.settings.animateOut;this.core.current()!==this.previous&&(o&&(e=this.core.coordinates(this.previous)-this.core.coordinates(this.next),n.css({left:e+"px"}).addClass("animated owl-animated-out").addClass(o).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",i)),a&&r.addClass("animated owl-animated-in").addClass(a).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",i))}},r.prototype.clear=function(e){t(e.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.transitionEnd()},r.prototype.destroy=function(){var t,e;for(t in this.handlers)this.core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Animate=r}(window.Zepto||window.jQuery,window,document),function(t,e,i){var n=function(e){this.core=e,this.core.options=t.extend({},n.Defaults,this.core.options),this.handlers={"translated.owl.carousel refreshed.owl.carousel":t.proxy(function(){this.autoplay()},this),"play.owl.autoplay":t.proxy(function(t,e,i){this.play(e,i)},this),"stop.owl.autoplay":t.proxy(function(){this.stop()},this),"mouseover.owl.autoplay":t.proxy(function(){this.core.settings.autoplayHoverPause&&this.pause()},this),"mouseleave.owl.autoplay":t.proxy(function(){this.core.settings.autoplayHoverPause&&this.autoplay()},this)},this.core.$element.on(this.handlers)};n.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},n.prototype.autoplay=function(){this.core.settings.autoplay&&!this.core.state.videoPlay?(e.clearInterval(this.interval),this.interval=e.setInterval(t.proxy(function(){this.play()},this),this.core.settings.autoplayTimeout)):e.clearInterval(this.interval)},n.prototype.play=function(){return i.hidden===!0||this.core.state.isTouch||this.core.state.isScrolling||this.core.state.isSwiping||this.core.state.inMotion?void 0:this.core.settings.autoplay===!1?void e.clearInterval(this.interval):void this.core.next(this.core.settings.autoplaySpeed)},n.prototype.stop=function(){e.clearInterval(this.interval)},n.prototype.pause=function(){e.clearInterval(this.interval)},n.prototype.destroy=function(){var t,i;e.clearInterval(this.interval);for(t in this.handlers)this.core.$element.off(t,this.handlers[t]);for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)},t.fn.owlCarousel.Constructor.Plugins.autoplay=n}(window.Zepto||window.jQuery,window,document),function(t){"use strict";var e=function(i){this._core=i,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":t.proxy(function(e){this._core.settings.dotsData&&this._templates.push(t(e.content).find("[data-dot]").andSelf("[data-dot]").attr("data-dot"))},this),"add.owl.carousel":t.proxy(function(e){this._core.settings.dotsData&&this._templates.splice(e.position,0,t(e.content).find("[data-dot]").andSelf("[data-dot]").attr("data-dot"))},this),"remove.owl.carousel prepared.owl.carousel":t.proxy(function(t){this._core.settings.dotsData&&this._templates.splice(t.position,1)},this),"change.owl.carousel":t.proxy(function(t){if("position"==t.property.name&&!this._core.state.revert&&!this._core.settings.loop&&this._core.settings.navRewind){var e=this._core.current(),i=this._core.maximum(),n=this._core.minimum();t.data=t.property.value>i?e>=i?n:i:t.property.value<n?i:t.property.value}},this),"changed.owl.carousel":t.proxy(function(t){"position"==t.property.name&&this.draw()},this),"refreshed.owl.carousel":t.proxy(function(){this._initialized||(this.initialize(),this._initialized=!0),this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation")},this)},this._core.options=t.extend({},e.Defaults,this._core.options),this.$element.on(this._handlers)};e.Defaults={nav:!1,navRewind:!0,navText:["prev","next"],navSpeed:!1,navElement:"div",navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotData:!1,dotsSpeed:!1,dotsContainer:!1,controlsClass:"owl-controls"},e.prototype.initialize=function(){var e,i,n=this._core.settings;n.dotsData||(this._templates=[t("<div>").addClass(n.dotClass).append(t("<span>")).prop("outerHTML")]),n.navContainer&&n.dotsContainer||(this._controls.$container=t("<div>").addClass(n.controlsClass).appendTo(this.$element)),this._controls.$indicators=n.dotsContainer?t(n.dotsContainer):t("<div>").hide().addClass(n.dotsClass).appendTo(this._controls.$container),this._controls.$indicators.on("click","div",t.proxy(function(e){var i=t(e.target).parent().is(this._controls.$indicators)?t(e.target).index():t(e.target).parent().index();e.preventDefault(),this.to(i,n.dotsSpeed)},this)),e=n.navContainer?t(n.navContainer):t("<div>").addClass(n.navContainerClass).prependTo(this._controls.$container),this._controls.$next=t("<"+n.navElement+">"),this._controls.$previous=this._controls.$next.clone(),this._controls.$previous.addClass(n.navClass[0]).html(n.navText[0]).hide().prependTo(e).on("click",t.proxy(function(){this.prev(n.navSpeed)},this)),this._controls.$next.addClass(n.navClass[1]).html(n.navText[1]).hide().appendTo(e).on("click",t.proxy(function(){this.next(n.navSpeed)},this));for(i in this._overrides)this._core[i]=t.proxy(this[i],this)},e.prototype.destroy=function(){var t,e,i,n;for(t in this._handlers)this.$element.off(t,this._handlers[t]);for(e in this._controls)this._controls[e].remove();for(n in this.overides)this._core[n]=this._overrides[n];for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)},e.prototype.update=function(){var t,e,i,n=this._core.settings,r=this._core.clones().length/2,a=r+this._core.items().length,o=n.center||n.autoWidth||n.dotData?1:n.dotsEach||n.items;if("page"!==n.slideBy&&(n.slideBy=Math.min(n.slideBy,n.items)),n.dots||"page"==n.slideBy)for(this._pages=[],t=r,e=0,i=0;a>t;t++)(e>=o||0===e)&&(this._pages.push({start:t-r,end:t-r+o-1}),e=0,++i),e+=this._core.mergers(this._core.relative(t))},e.prototype.draw=function(){var e,i,n="",r=this._core.settings,a=(this._core.$stage.children(),this._core.relative(this._core.current()));if(!r.nav||r.loop||r.navRewind||(this._controls.$previous.toggleClass("disabled",0>=a),this._controls.$next.toggleClass("disabled",a>=this._core.maximum())),this._controls.$previous.toggle(r.nav),this._controls.$next.toggle(r.nav),r.dots){if(e=this._pages.length-this._controls.$indicators.children().length,r.dotData&&0!==e){for(i=0;i<this._controls.$indicators.children().length;i++)n+=this._templates[this._core.relative(i)];this._controls.$indicators.html(n)}else e>0?(n=new Array(e+1).join(this._templates[0]),this._controls.$indicators.append(n)):0>e&&this._controls.$indicators.children().slice(e).remove();this._controls.$indicators.find(".active").removeClass("active"),this._controls.$indicators.children().eq(t.inArray(this.current(),this._pages)).addClass("active")}this._controls.$indicators.toggle(r.dots)},e.prototype.onTrigger=function(e){var i=this._core.settings;e.page={index:t.inArray(this.current(),this._pages),count:this._pages.length,size:i&&(i.center||i.autoWidth||i.dotData?1:i.dotsEach||i.items)}},e.prototype.current=function(){var e=this._core.relative(this._core.current());return t.grep(this._pages,function(t){return t.start<=e&&t.end>=e}).pop()},e.prototype.getPosition=function(e){var i,n,r=this._core.settings;return"page"==r.slideBy?(i=t.inArray(this.current(),this._pages),n=this._pages.length,e?++i:--i,i=this._pages[(i%n+n)%n].start):(i=this._core.relative(this._core.current()),n=this._core.items().length,
  e?i+=r.slideBy:i-=r.slideBy),i},e.prototype.next=function(e){t.proxy(this._overrides.to,this._core)(this.getPosition(!0),e)},e.prototype.prev=function(e){t.proxy(this._overrides.to,this._core)(this.getPosition(!1),e)},e.prototype.to=function(e,i,n){var r;n?t.proxy(this._overrides.to,this._core)(e,i):(r=this._pages.length,t.proxy(this._overrides.to,this._core)(this._pages[(e%r+r)%r].start,i))},t.fn.owlCarousel.Constructor.Plugins.Navigation=e}(window.Zepto||window.jQuery,window,document),function(t,e){"use strict";var i=function(n){this._core=n,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":t.proxy(function(){"URLHash"==this._core.settings.startPosition&&t(e).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":t.proxy(function(e){var i=t(e.content).find("[data-hash]").andSelf("[data-hash]").attr("data-hash");this._hashes[i]=e.content},this)},this._core.options=t.extend({},i.Defaults,this._core.options),this.$element.on(this._handlers),t(e).on("hashchange.owl.navigation",t.proxy(function(){var t=e.location.hash.substring(1),i=this._core.$stage.children(),n=this._hashes[t]&&i.index(this._hashes[t])||0;return!!t&&void this._core.to(n,!1,!0)},this))};i.Defaults={URLhashListener:!1},i.prototype.destroy=function(){var i,n;t(e).off("hashchange.owl.navigation");for(i in this._handlers)this._core.$element.off(i,this._handlers[i]);for(n in Object.getOwnPropertyNames(this))"function"!=typeof this[n]&&(this[n]=null)},t.fn.owlCarousel.Constructor.Plugins.Hash=i}(window.Zepto||window.jQuery,window,document);var Base=function(){};Base.extend=function(t,e){"use strict";var i=Base.prototype.extend;Base._prototyping=!0;var n=new this;i.call(n,t),n.base=function(){},delete Base._prototyping;var r=n.constructor,a=n.constructor=function(){if(!Base._prototyping)if(this._constructing||this.constructor==a)this._constructing=!0,r.apply(this,arguments),delete this._constructing;else if(null!==arguments[0])return(arguments[0].extend||i).call(arguments[0],n)};return a.ancestor=this,a.extend=this.extend,a.forEach=this.forEach,a.implement=this.implement,a.prototype=n,a.toString=this.toString,a.valueOf=function(t){return"object"==t?a:r.valueOf()},i.call(a,e),"function"==typeof a.init&&a.init(),a},Base.prototype={extend:function(t,e){if(arguments.length>1){var i=this[t];if(i&&"function"==typeof e&&(!i.valueOf||i.valueOf()!=e.valueOf())&&/\bbase\b/.test(e)){var n=e.valueOf();e=function(){var t=this.base||Base.prototype.base;this.base=i;var e=n.apply(this,arguments);return this.base=t,e},e.valueOf=function(t){return"object"==t?e:n},e.toString=Base.toString}this[t]=e}else if(t){var r=Base.prototype.extend;Base._prototyping||"function"==typeof this||(r=this.extend||r);for(var a={toSource:null},o=["constructor","toString","valueOf"],s=Base._prototyping?0:1;l=o[s++];)t[l]!=a[l]&&r.call(this,l,t[l]);for(var l in t)a[l]||r.call(this,l,t[l])}return this}},Base=Base.extend({constructor:function(){this.extend(arguments[0])}},{ancestor:Object,version:"1.1",forEach:function(t,e,i){for(var n in t)void 0===this.prototype[n]&&e.call(i,t[n],n,t)},implement:function(){for(var t=0;t<arguments.length;t++)"function"==typeof arguments[t]?arguments[t](this.prototype):this.prototype.extend(arguments[t]);return this},toString:function(){return String(this.valueOf())}});var FlipClock;!function(t){"use strict";FlipClock=function(t,e,i){return e instanceof Object&&e instanceof Date==0&&(i=e,e=0),new FlipClock.Factory(t,e,i)},FlipClock.Lang={},FlipClock.Base=Base.extend({buildDate:"2014-12-12",version:"0.7.7",constructor:function(e,i){"object"!=typeof e&&(e={}),"object"!=typeof i&&(i={}),this.setOptions(t.extend(!0,{},e,i))},callback:function(t){if("function"==typeof t){for(var e=[],i=1;i<=arguments.length;i++)arguments[i]&&e.push(arguments[i]);t.apply(this,e)}},log:function(t){window.console&&console.log&&console.log(t)},getOption:function(t){return!!this[t]&&this[t]},getOptions:function(){return this},setOption:function(t,e){this[t]=e},setOptions:function(t){for(var e in t)"undefined"!=typeof t[e]&&this.setOption(e,t[e])}})}(jQuery),function(t){"use strict";FlipClock.Face=FlipClock.Base.extend({autoStart:!0,dividers:[],factory:!1,lists:[],constructor:function(t,e){this.dividers=[],this.lists=[],this.base(e),this.factory=t},build:function(){this.autoStart&&this.start()},createDivider:function(e,i,n){"boolean"!=typeof i&&i||(n=i,i=e);var r=['<span class="'+this.factory.classes.dot+' top"></span>','<span class="'+this.factory.classes.dot+' bottom"></span>'].join("");n&&(r=""),e=this.factory.localize(e);var a=['<span class="'+this.factory.classes.divider+" "+(i?i:"").toLowerCase()+'">','<span class="'+this.factory.classes.label+'">'+(e?e:"")+"</span>",r,"</span>"],o=t(a.join(""));return this.dividers.push(o),o},createList:function(t,e){"object"==typeof t&&(e=t,t=0);var i=new FlipClock.List(this.factory,t,e);return this.lists.push(i),i},reset:function(){this.factory.time=new FlipClock.Time(this.factory,this.factory.original?Math.round(this.factory.original):0,{minimumDigits:this.factory.minimumDigits}),this.flip(this.factory.original,!1)},appendDigitToClock:function(t){t.$el.append(!1)},addDigit:function(t){var e=this.createList(t,{classes:{active:this.factory.classes.active,before:this.factory.classes.before,flip:this.factory.classes.flip}});this.appendDigitToClock(e)},start:function(){},stop:function(){},autoIncrement:function(){this.factory.countdown?this.decrement():this.increment()},increment:function(){this.factory.time.addSecond()},decrement:function(){0==this.factory.time.getTimeSeconds()?this.factory.stop():this.factory.time.subSecond()},flip:function(e,i){var n=this;t.each(e,function(t,e){var r=n.lists[t];r?(i||e==r.digit||r.play(),r.select(e)):n.addDigit(e)})}})}(jQuery),function(t){"use strict";FlipClock.Factory=FlipClock.Base.extend({animationRate:1e3,autoStart:!0,callbacks:{destroy:!1,create:!1,init:!1,interval:!1,start:!1,stop:!1,reset:!1},classes:{active:"flip-clock-active",before:"flip-clock-before",divider:"flip-clock-divider",dot:"flip-clock-dot",label:"flip-clock-label",flip:"flip",play:"play",wrapper:"flip-clock-wrapper"},clockFace:"HourlyCounter",countdown:!1,defaultClockFace:"HourlyCounter",defaultLanguage:"english",$el:!1,face:!0,lang:!1,language:"english",minimumDigits:0,original:!1,running:!1,time:!1,timer:!1,$wrapper:!1,constructor:function(e,i,n){n||(n={}),this.lists=[],this.running=!1,this.base(n),this.$el=t(e).addClass(this.classes.wrapper),this.$wrapper=this.$el,this.original=i instanceof Date?i:i?Math.round(i):0,this.time=new FlipClock.Time(this,this.original,{minimumDigits:this.minimumDigits,animationRate:this.animationRate}),this.timer=new FlipClock.Timer(this,n),this.loadLanguage(this.language),this.loadClockFace(this.clockFace,n),this.autoStart&&this.start()},loadClockFace:function(t,e){var i,n="Face",r=!1;return t=t.ucfirst()+n,this.face.stop&&(this.stop(),r=!0),this.$el.html(""),this.time.minimumDigits=this.minimumDigits,i=FlipClock[t]?new FlipClock[t](this,e):new FlipClock[this.defaultClockFace+n](this,e),i.build(),this.face=i,r&&this.start(),this.face},loadLanguage:function(t){var e;return e=FlipClock.Lang[t.ucfirst()]?FlipClock.Lang[t.ucfirst()]:FlipClock.Lang[t]?FlipClock.Lang[t]:FlipClock.Lang[this.defaultLanguage],this.lang=e},localize:function(t,e){var i=this.lang;if(!t)return null;var n=t.toLowerCase();return"object"==typeof e&&(i=e),i&&i[n]?i[n]:t},start:function(t){var e=this;e.running||e.countdown&&!(e.countdown&&e.time.time>0)?e.log("Trying to start timer when countdown already at 0"):(e.face.start(e.time),e.timer.start(function(){e.flip(),"function"==typeof t&&t()}))},stop:function(t){this.face.stop(),this.timer.stop(t);for(var e in this.lists)this.lists.hasOwnProperty(e)&&this.lists[e].stop()},reset:function(t){this.timer.reset(t),this.face.reset()},setTime:function(t){this.time.time=t,this.flip(!0)},getTime:function(t){return this.time},setCountdown:function(t){var e=this.running;this.countdown=!!t,e&&(this.stop(),this.start())},flip:function(t){this.face.flip(!1,t)}})}(jQuery),function(t){"use strict";FlipClock.List=FlipClock.Base.extend({digit:0,classes:{active:"flip-clock-active",before:"flip-clock-before",flip:"flip"},factory:!1,$el:!1,$obj:!1,items:[],lastDigit:0,constructor:function(t,e,i){this.factory=t,this.digit=e,this.lastDigit=e,this.$el=this.createList(),this.$obj=this.$el,e>0&&this.select(e),this.factory.$el.append(this.$el)},select:function(t){if("undefined"==typeof t?t=this.digit:this.digit=t,this.digit!=this.lastDigit){var e=this.$el.find("."+this.classes.before).removeClass(this.classes.before);this.$el.find("."+this.classes.active).removeClass(this.classes.active).addClass(this.classes.before),this.appendListItem(this.classes.active,this.digit),e.remove(),this.lastDigit=this.digit}},play:function(){this.$el.addClass(this.factory.classes.play)},stop:function(){var t=this;setTimeout(function(){t.$el.removeClass(t.factory.classes.play)},this.factory.timer.interval)},createListItem:function(t,e){return['<li class="'+(t?t:"")+'">','<a href="#">','<div class="up">','<div class="shadow"></div>','<div class="inn">'+(e?e:"")+"</div>","</div>",'<div class="down">','<div class="shadow"></div>','<div class="inn">'+(e?e:"")+"</div>","</div>","</a>","</li>"].join("")},appendListItem:function(t,e){var i=this.createListItem(t,e);this.$el.append(i)},createList:function(){var e=this.getPrevDigit()?this.getPrevDigit():this.digit,i=t(['<ul class="'+this.classes.flip+" "+(this.factory.running?this.factory.classes.play:"")+'">',this.createListItem(this.classes.before,e),this.createListItem(this.classes.active,this.digit),"</ul>"].join(""));return i},getNextDigit:function(){return 9==this.digit?0:this.digit+1},getPrevDigit:function(){return 0==this.digit?9:this.digit-1}})}(jQuery),function(t){"use strict";String.prototype.ucfirst=function(){return this.substr(0,1).toUpperCase()+this.substr(1)},t.fn.FlipClock=function(e,i){return new FlipClock(t(this),e,i)},t.fn.flipClock=function(e,i){return t.fn.FlipClock(e,i)}}(jQuery),function(t){"use strict";FlipClock.Time=FlipClock.Base.extend({time:0,factory:!1,minimumDigits:0,constructor:function(t,e,i){"object"!=typeof i&&(i={}),i.minimumDigits||(i.minimumDigits=t.minimumDigits),this.base(i),this.factory=t,e&&(this.time=e)},convertDigitsToArray:function(t){var e=[];t=t.toString();for(var i=0;i<t.length;i++)t[i].match(/^\d*$/g)&&e.push(t[i]);return e},digit:function(t){var e=this.toString(),i=e.length;return!!e[i-t]&&e[i-t]},digitize:function(e){var i=[];if(t.each(e,function(t,e){e=e.toString(),1==e.length&&(e="0"+e);for(var n=0;n<e.length;n++)i.push(e.charAt(n))}),i.length>this.minimumDigits&&(this.minimumDigits=i.length),this.minimumDigits>i.length)for(var n=i.length;n<this.minimumDigits;n++)i.unshift("0");return i},getDateObject:function(){return this.time instanceof Date?this.time:new Date((new Date).getTime()+1e3*this.getTimeSeconds())},getDayCounter:function(t){var e=[this.getDays(),this.getHours(!0),this.getMinutes(!0)];return t&&e.push(this.getSeconds(!0)),this.digitize(e)},getDays:function(t){var e=this.getTimeSeconds()/60/60/24;return t&&(e%=7),Math.floor(e)},getHourCounter:function(){var t=this.digitize([this.getHours(),this.getMinutes(!0),this.getSeconds(!0)]);return t},getHourly:function(){return this.getHourCounter()},getHours:function(t){var e=this.getTimeSeconds()/60/60;return t&&(e%=24),Math.floor(e)},getMilitaryTime:function(t,e){"undefined"==typeof e&&(e=!0),t||(t=this.getDateObject());var i=[t.getHours(),t.getMinutes()];return e===!0&&i.push(t.getSeconds()),this.digitize(i)},getMinutes:function(t){var e=this.getTimeSeconds()/60;return t&&(e%=60),Math.floor(e)},getMinuteCounter:function(){var t=this.digitize([this.getMinutes(),this.getSeconds(!0)]);return t},getTimeSeconds:function(t){return t||(t=new Date),this.time instanceof Date?this.factory.countdown?Math.max(this.time.getTime()/1e3-t.getTime()/1e3,0):t.getTime()/1e3-this.time.getTime()/1e3:this.time},getTime:function(t,e){"undefined"==typeof e&&(e=!0),t||(t=this.getDateObject()),console.log(t);var i=t.getHours(),n=[i>12?i-12:0===i?12:i,t.getMinutes()];return e===!0&&n.push(t.getSeconds()),this.digitize(n)},getSeconds:function(t){var e=this.getTimeSeconds();return t&&(60==e?e=0:e%=60),Math.ceil(e)},getWeeks:function(t){var e=this.getTimeSeconds()/60/60/24/7;return t&&(e%=52),Math.floor(e)},removeLeadingZeros:function(e,i){var n=0,r=[];return t.each(i,function(t,a){e>t?n+=parseInt(i[t],10):r.push(i[t])}),0===n?r:i},addSeconds:function(t){this.time instanceof Date?this.time.setSeconds(this.time.getSeconds()+t):this.time+=t},addSecond:function(){this.addSeconds(1)},subSeconds:function(t){this.time instanceof Date?this.time.setSeconds(this.time.getSeconds()-t):this.time-=t},subSecond:function(){this.subSeconds(1)},toString:function(){return this.getTimeSeconds().toString()}})}(jQuery),function(t){"use strict";FlipClock.Timer=FlipClock.Base.extend({callbacks:{destroy:!1,create:!1,init:!1,interval:!1,start:!1,stop:!1,reset:!1},count:0,factory:!1,interval:1e3,animationRate:1e3,constructor:function(t,e){this.base(e),this.factory=t,this.callback(this.callbacks.init),this.callback(this.callbacks.create)},getElapsed:function(){return this.count*this.interval},getElapsedTime:function(){return new Date(this.time+this.getElapsed())},reset:function(t){clearInterval(this.timer),this.count=0,this._setInterval(t),this.callback(this.callbacks.reset)},start:function(t){this.factory.running=!0,this._createTimer(t),this.callback(this.callbacks.start)},stop:function(t){this.factory.running=!1,this._clearInterval(t),this.callback(this.callbacks.stop),this.callback(t)},_clearInterval:function(){clearInterval(this.timer)},_createTimer:function(t){this._setInterval(t)},_destroyTimer:function(t){this._clearInterval(),this.timer=!1,this.callback(t),this.callback(this.callbacks.destroy)},_interval:function(t){this.callback(this.callbacks.interval),this.callback(t),this.count++},_setInterval:function(t){var e=this;e._interval(t),e.timer=setInterval(function(){e._interval(t)},this.interval)}})}(jQuery),function(t){FlipClock.TwentyFourHourClockFace=FlipClock.Face.extend({constructor:function(t,e){this.base(t,e)},build:function(e){var i=this,n=this.factory.$el.find("ul");this.factory.time.time||(this.factory.original=new Date,this.factory.time=new FlipClock.Time(this.factory,this.factory.original));var e=e?e:this.factory.time.getMilitaryTime(!1,this.showSeconds);e.length>n.length&&t.each(e,function(t,e){i.createList(e)}),this.createDivider(),this.createDivider(),t(this.dividers[0]).insertBefore(this.lists[this.lists.length-2].$el),t(this.dividers[1]).insertBefore(this.lists[this.lists.length-4].$el),this.base()},flip:function(t,e){this.autoIncrement(),t=t?t:this.factory.time.getMilitaryTime(!1,this.showSeconds),this.base(t,e)}})}(jQuery),function(t){FlipClock.CounterFace=FlipClock.Face.extend({shouldAutoIncrement:!1,constructor:function(t,e){"object"!=typeof e&&(e={}),t.autoStart=!!e.autoStart,e.autoStart&&(this.shouldAutoIncrement=!0),t.increment=function(){t.countdown=!1,t.setTime(t.getTime().getTimeSeconds()+1)},t.decrement=function(){t.countdown=!0;var e=t.getTime().getTimeSeconds();e>0&&t.setTime(e-1)},t.setValue=function(e){t.setTime(e)},t.setCounter=function(e){t.setTime(e)},this.base(t,e)},build:function(){var e=this,i=this.factory.$el.find("ul"),n=this.factory.getTime().digitize([this.factory.getTime().time]);n.length>i.length&&t.each(n,function(t,i){var n=e.createList(i);n.select(i)}),t.each(this.lists,function(t,e){e.play()}),this.base()},flip:function(t,e){this.shouldAutoIncrement&&this.autoIncrement(),t||(t=this.factory.getTime().digitize([this.factory.getTime().time])),this.base(t,e)},reset:function(){this.factory.time=new FlipClock.Time(this.factory,this.factory.original?Math.round(this.factory.original):0),this.flip()}})}(jQuery),function(t){FlipClock.DailyCounterFace=FlipClock.Face.extend({showSeconds:!0,constructor:function(t,e){this.base(t,e)},build:function(e){var i=this,n=this.factory.$el.find("ul"),r=0;e=e?e:this.factory.time.getDayCounter(this.showSeconds),e.length>n.length&&t.each(e,function(t,e){i.createList(e)}),this.showSeconds?t(this.createDivider("Seconds")).insertBefore(this.lists[this.lists.length-2].$el):r=2,t(this.createDivider("Minutes")).insertBefore(this.lists[this.lists.length-4+r].$el),t(this.createDivider("Hours")).insertBefore(this.lists[this.lists.length-6+r].$el),t(this.createDivider("Days",!0)).insertBefore(this.lists[0].$el),this.base()},flip:function(t,e){t||(t=this.factory.time.getDayCounter(this.showSeconds)),this.autoIncrement(),this.base(t,e)}})}(jQuery),function(t){FlipClock.HourlyCounterFace=FlipClock.Face.extend({constructor:function(t,e){this.base(t,e)},build:function(e,i){var n=this,r=this.factory.$el.find("ul");i=i?i:this.factory.time.getHourCounter(),i.length>r.length&&t.each(i,function(t,e){n.createList(e)}),t(this.createDivider("Seconds")).insertBefore(this.lists[this.lists.length-2].$el),t(this.createDivider("Minutes")).insertBefore(this.lists[this.lists.length-4].$el),e||t(this.createDivider("Hours",!0)).insertBefore(this.lists[0].$el),this.base()},flip:function(t,e){t||(t=this.factory.time.getHourCounter()),this.autoIncrement(),this.base(t,e)},appendDigitToClock:function(t){this.base(t),this.dividers[0].insertAfter(this.dividers[0].next())}})}(jQuery),function(t){FlipClock.MinuteCounterFace=FlipClock.HourlyCounterFace.extend({clearExcessDigits:!1,constructor:function(t,e){this.base(t,e)},build:function(){this.base(!0,this.factory.time.getMinuteCounter())},flip:function(t,e){t||(t=this.factory.time.getMinuteCounter()),this.base(t,e)}})}(jQuery),function(t){FlipClock.TwelveHourClockFace=FlipClock.TwentyFourHourClockFace.extend({meridium:!1,meridiumText:"AM",build:function(){var e=this.factory.time.getTime(!1,this.showSeconds);this.base(e),this.meridiumText=this.getMeridium(),this.meridium=t(['<ul class="flip-clock-meridium">',"<li>",'<a href="#">'+this.meridiumText+"</a>","</li>","</ul>"].join("")),this.meridium.insertAfter(this.lists[this.lists.length-1].$el)},flip:function(t,e){this.meridiumText!=this.getMeridium()&&(this.meridiumText=this.getMeridium(),this.meridium.find("a").html(this.meridiumText)),this.base(this.factory.time.getTime(!1,this.showSeconds),e)},getMeridium:function(){return(new Date).getHours()>=12?"PM":"AM"},isPM:function(){return"PM"==this.getMeridium()},isAM:function(){return"AM"==this.getMeridium()}})}(jQuery),function(t){FlipClock.Lang.Arabic={years:"سنوات",months:"شهور",days:"أيام",hours:"ساعات",minutes:"دقائق",seconds:"ثواني"},FlipClock.Lang.ar=FlipClock.Lang.Arabic,FlipClock.Lang["ar-ar"]=FlipClock.Lang.Arabic,FlipClock.Lang.arabic=FlipClock.Lang.Arabic}(jQuery),function(t){FlipClock.Lang.Danish={years:"År",months:"Måneder",days:"Dage",hours:"Timer",minutes:"Minutter",seconds:"Sekunder"},FlipClock.Lang.da=FlipClock.Lang.Danish,FlipClock.Lang["da-dk"]=FlipClock.Lang.Danish,FlipClock.Lang.danish=FlipClock.Lang.Danish}(jQuery),function(t){FlipClock.Lang.German={years:"Jahre",months:"Monate",days:"Tage",hours:"Stunden",minutes:"Minuten",seconds:"Sekunden"},FlipClock.Lang.de=FlipClock.Lang.German,FlipClock.Lang["de-de"]=FlipClock.Lang.German,FlipClock.Lang.german=FlipClock.Lang.German}(jQuery),function(t){FlipClock.Lang.English={years:"Years",months:"Months",days:"Days",hours:"Hours",minutes:"Minutes",seconds:"Seconds"},FlipClock.Lang.en=FlipClock.Lang.English,FlipClock.Lang["en-us"]=FlipClock.Lang.English,FlipClock.Lang.english=FlipClock.Lang.English}(jQuery),function(t){FlipClock.Lang.Spanish={years:"Años",months:"Meses",days:"Días",hours:"Horas",minutes:"Minutos",seconds:"Segundos"},FlipClock.Lang.es=FlipClock.Lang.Spanish,FlipClock.Lang["es-es"]=FlipClock.Lang.Spanish,FlipClock.Lang.spanish=FlipClock.Lang.Spanish}(jQuery),function(t){FlipClock.Lang.Finnish={years:"Vuotta",months:"Kuukautta",days:"Päivää",hours:"Tuntia",minutes:"Minuuttia",seconds:"Sekuntia"},FlipClock.Lang.fi=FlipClock.Lang.Finnish,FlipClock.Lang["fi-fi"]=FlipClock.Lang.Finnish,FlipClock.Lang.finnish=FlipClock.Lang.Finnish}(jQuery),function(t){FlipClock.Lang.French={years:"Ans",months:"Mois",days:"Jours",hours:"Heures",minutes:"Minutes",seconds:"Secondes"},FlipClock.Lang.fr=FlipClock.Lang.French,FlipClock.Lang["fr-ca"]=FlipClock.Lang.French,FlipClock.Lang.french=FlipClock.Lang.French}(jQuery),function(t){FlipClock.Lang.Italian={years:"Anni",months:"Mesi",days:"Giorni",hours:"Ore",minutes:"Minuti",seconds:"Secondi"},FlipClock.Lang.it=FlipClock.Lang.Italian,FlipClock.Lang["it-it"]=FlipClock.Lang.Italian,FlipClock.Lang.italian=FlipClock.Lang.Italian}(jQuery),function(t){FlipClock.Lang.Latvian={years:"Gadi",months:"Mēneši",days:"Dienas",hours:"Stundas",minutes:"Minūtes",seconds:"Sekundes"},FlipClock.Lang.lv=FlipClock.Lang.Latvian,FlipClock.Lang["lv-lv"]=FlipClock.Lang.Latvian,FlipClock.Lang.latvian=FlipClock.Lang.Latvian}(jQuery),function(t){FlipClock.Lang.Dutch={years:"Jaren",months:"Maanden",days:"Dagen",hours:"Uren",minutes:"Minuten",seconds:"Seconden"},FlipClock.Lang.nl=FlipClock.Lang.Dutch,FlipClock.Lang["nl-be"]=FlipClock.Lang.Dutch,FlipClock.Lang.dutch=FlipClock.Lang.Dutch}(jQuery),function(t){FlipClock.Lang.Norwegian={years:"År",months:"Måneder",days:"Dager",hours:"Timer",minutes:"Minutter",seconds:"Sekunder"},FlipClock.Lang.no=FlipClock.Lang.Norwegian,FlipClock.Lang.nb=FlipClock.Lang.Norwegian,FlipClock.Lang["no-nb"]=FlipClock.Lang.Norwegian,FlipClock.Lang.norwegian=FlipClock.Lang.Norwegian}(jQuery),function(t){FlipClock.Lang.Portuguese={years:"Anos",months:"Meses",days:"Dias",hours:"Horas",minutes:"Minutos",seconds:"Segundos"},FlipClock.Lang.pt=FlipClock.Lang.Portuguese,FlipClock.Lang["pt-br"]=FlipClock.Lang.Portuguese,FlipClock.Lang.portuguese=FlipClock.Lang.Portuguese}(jQuery),function(t){FlipClock.Lang.Russian={years:"лет",months:"месяцев",days:"дней",hours:"часов",minutes:"минут",seconds:"секунд"},FlipClock.Lang.ru=FlipClock.Lang.Russian,FlipClock.Lang["ru-ru"]=FlipClock.Lang.Russian,FlipClock.Lang.russian=FlipClock.Lang.Russian}(jQuery),function(t){FlipClock.Lang.Swedish={years:"År",months:"Månader",days:"Dagar",hours:"Timmar",minutes:"Minuter",seconds:"Sekunder"},FlipClock.Lang.sv=FlipClock.Lang.Swedish,FlipClock.Lang["sv-se"]=FlipClock.Lang.Swedish,FlipClock.Lang.swedish=FlipClock.Lang.Swedish}(jQuery),function(t){FlipClock.Lang.Chinese={years:"年",months:"月",days:"日",hours:"时",minutes:"分",seconds:"秒"},FlipClock.Lang.zh=FlipClock.Lang.Chinese,FlipClock.Lang["zh-cn"]=FlipClock.Lang.Chinese,FlipClock.Lang.chinese=FlipClock.Lang.Chinese}(jQuery),function(t){function e(t){var e,i=t.originalEvent.changedTouches,n=i[0],r="";switch(t.type){case"touchmove":r="mousemove";break;case"touchend":r="mouseup";break;default:return}e=document.createEvent("MouseEvent"),e.initMouseEvent(r,!0,!0,window,1,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),n.target.dispatchEvent(e),t.preventDefault()}t.rateit={aria:{resetLabel:"reset rating",ratingLabel:"rating"}},t.fn.rateit=function(i,n){var r,a=1,o={},s="init",l=function(t){return t.charAt(0).toUpperCase()+t.substr(1)};if(0===this.length)return this;if(r=t.type(i),"object"==r||void 0===i||null===i)o=t.extend({},t.fn.rateit.defaults,i);else{if("string"==r&&"reset"!==i&&void 0===n)return this.data("rateit"+l(i));"string"==r&&(s="setvalue")}return this.each(function(){var r,c,u,h,d,p,f,m,g,v,y,b=t(this),x=function(t,e){if(null!=e){var i="aria-value"+("value"==t?"now":t),n=b.find(".rateit-range");void 0!=n.attr(i)&&n.attr(i,e)}return arguments[0]="rateit"+l(t),b.data.apply(b,arguments)};if("reset"==i){r=x("init");for(c in r)b.data(c,r[c]);x("backingfld")&&(h=t(x("backingfld")),h.val(x("value")),h.trigger("change"),h[0].min&&(h[0].min=x("min")),h[0].max&&(h[0].max=x("max")),h[0].step&&(h[0].step=x("step"))),b.trigger("reset")}if(b.hasClass("rateit")||b.addClass("rateit"),u="rtl"!=b.css("direction"),"setvalue"==s){if(!x("init"))throw"Can't set value before init";"readonly"!=i||1!=n||x("readonly")||(b.find(".rateit-range").unbind(),x("wired",!1)),"value"==i&&(n=null==n?x("min"):Math.max(x("min"),Math.min(x("max"),n))),x("backingfld")&&(h=t(x("backingfld")),"value"==i&&h.val(n),"min"==i&&h[0].min&&(h[0].min=n),"max"==i&&h[0].max&&(h[0].max=n),"step"==i&&h[0].step&&(h[0].step=n)),x(i,n)}x("init")||(x("min",isNaN(x("min"))?o.min:x("min")),x("max",isNaN(x("max"))?o.max:x("max")),x("step",x("step")||o.step),x("readonly",void 0!==x("readonly")?x("readonly"):o.readonly),x("resetable",void 0!==x("resetable")?x("resetable"):o.resetable),x("backingfld",x("backingfld")||o.backingfld),x("starwidth",x("starwidth")||o.starwidth),x("starheight",x("starheight")||o.starheight),x("value",Math.max(x("min"),Math.min(x("max"),isNaN(x("value"))?isNaN(o.value)?o.min:o.value:x("value")))),x("ispreset",void 0!==x("ispreset")?x("ispreset"):o.ispreset),x("backingfld")&&(h=t(x("backingfld")).hide(),(h.attr("disabled")||h.attr("readonly"))&&x("readonly",!0),"INPUT"==h[0].nodeName&&("range"==h[0].type||"text"==h[0].type)&&(x("min",parseInt(h.attr("min"))||x("min")),x("max",parseInt(h.attr("max"))||x("max")),x("step",parseInt(h.attr("step"))||x("step"))),"SELECT"==h[0].nodeName&&h[0].options.length>1?(x("min",isNaN(x("min"))?Number(h[0].options[0].value):x("min")),x("max",Number(h[0].options[h[0].length-1].value)),x("step",Number(h[0].options[1].value)-Number(h[0].options[0].value)),d=h.find("option[selected]"),1==d.length&&x("value",d.val())):x("value",h.val())),p="DIV"==b[0].nodeName?"div":"span",a++,f='<button id="rateit-reset-{{index}}" type="button" data-role="none" class="rateit-reset" aria-label="'+t.rateit.aria.resetLabel+'" aria-controls="rateit-range-{{index}}"></button><{{element}} id="rateit-range-{{index}}" class="rateit-range" tabindex="0" role="slider" aria-label="'+t.rateit.aria.ratingLabel+'" aria-owns="rateit-reset-{{index}}" aria-valuemin="'+x("min")+'" aria-valuemax="'+x("max")+'" aria-valuenow="'+x("value")+'"><{{element}} class="rateit-selected" style="height:'+x("starheight")+'px"></{{element}}><{{element}} class="rateit-hover" style="height:'+x("starheight")+'px"></{{element}}></{{element}}>',b.append(f.replace(/{{index}}/gi,a).replace(/{{element}}/gi,p)),u||(b.find(".rateit-reset").css("float","right"),b.find(".rateit-selected").addClass("rateit-selected-rtl"),b.find(".rateit-hover").addClass("rateit-hover-rtl")),x("init",JSON.parse(JSON.stringify(b.data())))),b.find(".rateit-selected, .rateit-hover").height(x("starheight")),m=b.find(".rateit-range"),m.width(x("starwidth")*(x("max")-x("min"))).height(x("starheight")),g="rateit-preset"+(u?"":"-rtl"),x("ispreset")?b.find(".rateit-selected").addClass(g):b.find(".rateit-selected").removeClass(g),null!=x("value")&&(v=(x("value")-x("min"))*x("starwidth"),b.find(".rateit-selected").width(v)),y=b.find(".rateit-reset"),y.data("wired")!==!0&&y.bind("click",function(e){e.preventDefault(),y.blur();var i=t.Event("beforereset");return b.trigger(i),!i.isDefaultPrevented()&&(b.rateit("value",null),void b.trigger("reset"))}).data("wired",!0);var k=function(e,i){var n=i.changedTouches?i.changedTouches[0].pageX:i.pageX,r=n-t(e).offset().left;return u||(r=m.width()-r),r>m.width()&&(r=m.width()),r<0&&(r=0),v=Math.ceil(r/x("starwidth")*(1/x("step")))},w=function(t){var e,i=t*x("starwidth")*x("step"),n=m.find(".rateit-hover");n.data("width")!=i&&(m.find(".rateit-selected").hide(),n.width(i).show().data("width",i),e=[t*x("step")+x("min")],b.trigger("hover",e).trigger("over",e))},C=function(e){var i=t.Event("beforerated");return b.trigger(i,[e]),!i.isDefaultPrevented()&&(x("value",e),x("backingfld")&&t(x("backingfld")).val(e).trigger("change"),x("ispreset")&&(m.find(".rateit-selected").removeClass(g),x("ispreset",!1)),m.find(".rateit-hover").hide(),m.find(".rateit-selected").width(e*x("starwidth")-x("min")*x("starwidth")).show(),b.trigger("hover",[null]).trigger("over",[null]).trigger("rated",[e]),!0)};x("readonly")?y.hide():(x("resetable")||y.hide(),x("wired")||(m.bind("touchmove touchend",e),m.mousemove(function(t){var e=k(this,t);w(e)}),m.mouseleave(function(){m.find(".rateit-hover").hide().width(0).data("width",""),b.trigger("hover",[null]).trigger("over",[null]),m.find(".rateit-selected").show()}),m.mouseup(function(t){var e=k(this,t),i=e*x("step")+x("min");C(i),m.blur()}),m.keyup(function(t){(38==t.which||t.which==(u?39:37))&&C(Math.min(x("value")+x("step"),x("max"))),(40==t.which||t.which==(u?37:39))&&C(Math.max(x("value")-x("step"),x("min")))}),x("wired",!0)),x("resetable")&&y.show()),m.attr("aria-readonly",x("readonly"))})},t.fn.rateit.defaults={min:0,max:5,step:.5,starwidth:16,starheight:16,readonly:!1,resetable:!0,ispreset:!1},t(function(){t("div.rateit, span.rateit").rateit()})}(jQuery),function(){var t,e,i,n,r,a,o,s,l,c;e=window.device,t={},window.device=t,n=window.document.documentElement,c=window.navigator.userAgent.toLowerCase(),t.ios=function(){return t.iphone()||t.ipod()||t.ipad()},t.iphone=function(){return!t.windows()&&r("iphone")},t.ipod=function(){return r("ipod")},t.ipad=function(){return r("ipad")},t.android=function(){return!t.windows()&&r("android")},t.androidPhone=function(){return t.android()&&r("mobile")},t.androidTablet=function(){return t.android()&&!r("mobile")},t.blackberry=function(){return r("blackberry")||r("bb10")||r("rim")},t.blackberryPhone=function(){return t.blackberry()&&!r("tablet")},t.blackberryTablet=function(){return t.blackberry()&&r("tablet")},t.windows=function(){return r("windows")},t.windowsPhone=function(){return t.windows()&&r("phone")},t.windowsTablet=function(){return t.windows()&&r("touch")&&!t.windowsPhone()},t.fxos=function(){return(r("(mobile;")||r("(tablet;"))&&r("; rv:")},t.fxosPhone=function(){return t.fxos()&&r("mobile")},t.fxosTablet=function(){return t.fxos()&&r("tablet")},t.meego=function(){return r("meego")},t.cordova=function(){return window.cordova&&"file:"===location.protocol},t.nodeWebkit=function(){return"object"==typeof window.process},t.mobile=function(){return t.androidPhone()||t.iphone()||t.ipod()||t.windowsPhone()||t.blackberryPhone()||t.fxosPhone()||t.meego()},t.tablet=function(){return t.ipad()||t.androidTablet()||t.blackberryTablet()||t.windowsTablet()||t.fxosTablet()},t.desktop=function(){return!t.tablet()&&!t.mobile()},t.television=function(){var t;for(television=["googletv","viera","smarttv","internet.tv","netcast","nettv","appletv","boxee","kylo","roku","dlnadoc","roku","pov_tv","hbbtv","ce-html"],t=0;t<television.length;){if(r(television[t]))return!0;t++}return!1},t.portrait=function(){return window.innerHeight/window.innerWidth>1},t.landscape=function(){return window.innerHeight/window.innerWidth<1},t.noConflict=function(){return window.device=e,this},r=function(t){return-1!==c.indexOf(t)},o=function(t){var e;return e=new RegExp(t,"i"),n.className.match(e)},i=function(t){var e=null;o(t)||(e=n.className.replace(/^\s+|\s+$/g,""),n.className=e+" "+t)},l=function(t){o(t)&&(n.className=n.className.replace(" "+t,""))},t.ios()?t.ipad()?i("ios ipad tablet"):t.iphone()?i("ios iphone mobile"):t.ipod()&&i("ios ipod mobile"):t.android()?i(t.androidTablet()?"android tablet":"android mobile"):t.blackberry()?i(t.blackberryTablet()?"blackberry tablet":"blackberry mobile"):t.windows()?i(t.windowsTablet()?"windows tablet":t.windowsPhone()?"windows mobile":"desktop"):t.fxos()?i(t.fxosTablet()?"fxos tablet":"fxos mobile"):t.meego()?i("meego mobile"):t.nodeWebkit()?i("node-webkit"):t.television()?i("television"):t.desktop()&&i("desktop"),t.cordova()&&i("cordova"),a=function(){t.landscape()?(l("portrait"),i("landscape")):(l("landscape"),i("portrait"))},s=Object.prototype.hasOwnProperty.call(window,"onorientationchange")?"orientationchange":"resize",window.addEventListener?window.addEventListener(s,a,!1):window.attachEvent?window.attachEvent(s,a):window[s]=a,a(),"function"==typeof define&&"object"==typeof define.amd&&define.amd?define(function(){return t}):"undefined"!=typeof module&&module.exports?module.exports=t:window.device=t}.call(this);