text: if(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="length"in t&&t.length,i=J.type(t);return"function"===i||J.isWindow(t)?!1:1===t.nodeType&&e?!0:"array"===i||0===e||"number"==typeof e&&e>0&&e-1 in t}function n(t,e,i){if(J.isFunction(e))return J.grep(t,function(t,n){return!!e.call(t,n,t)!==i});if(e.nodeType)return J.grep(t,function(t){return t===e!==i});if("string"==typeof e){if(at.test(e))return J.filter(e,t,i);e=J.filter(e,t)}return J.grep(t,function(t){return G.call(e,t)>=0!==i})}function s(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function r(t){var e=ft[t]={};return J.each(t.match(ht)||[],function(t,i){e[i]=!0}),e}function o(){K.removeEventListener("DOMContentLoaded",o,!1),t.removeEventListener("load",o,!1),J.ready()}function a(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=J.expando+a.uid++}function l(t,e,i){var n;if(void 0===i&&1===t.nodeType)if(n="data-"+e.replace(bt,"-$1").toLowerCase(),i=t.getAttribute(n),"string"==typeof i){try{i="true"===i?!0:"false"===i?!1:"null"===i?null:+i+""===i?+i:wt.test(i)?J.parseJSON(i):i}catch(s){}yt.set(t,e,i)}else i=void 0;return i}function c(){return!0}function d(){return!1}function u(){try{return K.activeElement}catch(t){}}function p(t,e){return J.nodeName(t,"table")&&J.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function h(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function f(t){var e=Ot.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function m(t,e){for(var i=0,n=t.length;n>i;i++)vt.set(t[i],"globalEval",!e||vt.get(e[i],"globalEval"))}function g(t,e){var i,n,s,r,o,a,l,c;if(1===e.nodeType){if(vt.hasData(t)&&(r=vt.access(t),o=vt.set(e,r),c=r.events)){delete o.handle,o.events={};for(s in c)for(i=0,n=c[s].length;n>i;i++)J.event.add(e,s,c[s][i])}yt.hasData(t)&&(a=yt.access(t),l=J.extend({},a),yt.set(e,l))}}function v(t,e){var i=t.getElementsByTagName?t.getElementsByTagName(e||"*"):t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&&J.nodeName(t,e)?J.merge([t],i):i}function y(t,e){var i=e.nodeName.toLowerCase();"input"===i&&Tt.test(t.type)?e.checked=t.checked:("input"===i||"textarea"===i)&&(e.defaultValue=t.defaultValue)}function w(e,i){var n,s=J(i.createElement(e)).appendTo(i.body),r=t.getDefaultComputedStyle&&(n=t.getDefaultComputedStyle(s[0]))?n.display:J.css(s[0],"display");return s.detach(),r}function b(t){var e=K,i=Rt[t];return i||(i=w(t,e),"none"!==i&&i||(Bt=(Bt||J("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement),e=Bt[0].contentDocument,e.write(),e.close(),i=w(t,e),Bt.detach()),Rt[t]=i),i}function x(t,e,i){var n,s,r,o,a=t.style;return i=i||Wt(t),i&&(o=i.getPropertyValue(e)||i[e]),i&&(""!==o||J.contains(t.ownerDocument,t)||(o=J.style(t,e)),Ht.test(o)&&Ft.test(e)&&(n=a.width,s=a.minWidth,r=a.maxWidth,a.minWidth=a.maxWidth=a.width=o,o=i.width,a.width=n,a.minWidth=s,a.maxWidth=r)),void 0!==o?o+"":o}function _(t,e){return{get:function(){return t()?void delete this.get:(this.get=e).apply(this,arguments)}}}function C(t,e){if(e in t)return e;for(var i=e[0].toUpperCase()+e.slice(1),n=e,s=Yt.length;s--;)if(e=Yt[s]+i,e in t)return e;return n}function T(t,e,i){var n=Ut.exec(e);return n?Math.max(0,n[1]-(i||0))+(n[2]||"px"):e}function S(t,e,i,n,s){for(var r=i===(n?"border":"content")?4:"width"===e?1:0,o=0;4>r;r+=2)"margin"===i&&(o+=J.css(t,i+_t[r],!0,s)),n?("content"===i&&(o-=J.css(t,"padding"+_t[r],!0,s)),"margin"!==i&&(o-=J.css(t,"border"+_t[r]+"Width",!0,s))):(o+=J.css(t,"padding"+_t[r],!0,s),"padding"!==i&&(o+=J.css(t,"border"+_t[r]+"Width",!0,s)));return o}function $(t,e,i){var n=!0,s="width"===e?t.offsetWidth:t.offsetHeight,r=Wt(t),o="border-box"===J.css(t,"boxSizing",!1,r);if(0>=s||null==s){if(s=x(t,e,r),(0>s||null==s)&&(s=t.style[e]),Ht.test(s))return s;n=o&&(Q.boxSizingReliable()||s===t.style[e]),s=parseFloat(s)||0}return s+S(t,e,i||(o?"border":"content"),n,r)+"px"}function k(t,e){for(var i,n,s,r=[],o=0,a=t.length;a>o;o++)n=t[o],n.style&&(r[o]=vt.get(n,"olddisplay"),i=n.style.display,e?(r[o]||"none"!==i||(n.style.display=""),""===n.style.display&&Ct(n)&&(r[o]=vt.access(n,"olddisplay",b(n.nodeName)))):(s=Ct(n),"none"===i&&s||vt.set(n,"olddisplay",s?i:J.css(n,"display"))));for(o=0;a>o;o++)n=t[o],n.style&&(e&&"none"!==n.style.display&&""!==n.style.display||(n.style.display=e?r[o]||"":"none"));return t}function E(t,e,i,n,s){return new E.prototype.init(t,e,i,n,s)}function I(){return setTimeout(function(){Qt=void 0}),Qt=J.now()}function D(t,e){var i,n=0,s={height:t};for(e=e?1:0;4>n;n+=2-e)i=_t[n],s["margin"+i]=s["padding"+i]=t;return e&&(s.opacity=s.width=t),s}function A(t,e,i){for(var n,s=(ie[e]||[]).concat(ie["*"]),r=0,o=s.length;o>r;r++)if(n=s[r].call(i,e,t))return n}function M(t,e,i){var n,s,r,o,a,l,c,d,u=this,p={},h=t.style,f=t.nodeType&&Ct(t),m=vt.get(t,"fxshow");i.queue||(a=J._queueHooks(t,"fx"),null==a.unqueued&&(a.unqueued=0,l=a.empty.fire,a.empty.fire=function(){a.unqueued||l()}),a.unqueued++,u.always(function(){u.always(function(){a.unqueued--,J.queue(t,"fx").length||a.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(i.overflow=[h.overflow,h.overflowX,h.overflowY],c=J.css(t,"display"),d="none"===c?vt.get(t,"olddisplay")||b(t.nodeName):c,"inline"===d&&"none"===J.css(t,"float")&&(h.display="inline-block")),i.overflow&&(h.overflow="hidden",u.always(function(){h.overflow=i.overflow[0],h.overflowX=i.overflow[1],h.overflowY=i.overflow[2]}));for(n in e)if(s=e[n],Zt.exec(s)){if(delete e[n],r=r||"toggle"===s,s===(f?"hide":"show")){if("show"!==s||!m||void 0===m[n])continue;f=!0}p[n]=m&&m[n]||J.style(t,n)}else c=void 0;if(J.isEmptyObject(p))"inline"===("none"===c?b(t.nodeName):c)&&(h.display=c);else{m?"hidden"in m&&(f=m.hidden):m=vt.access(t,"fxshow",{}),r&&(m.hidden=!f),f?J(t).show():u.done(function(){J(t).hide()}),u.done(function(){var e;vt.remove(t,"fxshow");for(e in p)J.style(t,e,p[e])});for(n in p)o=A(f?m[n]:0,n,u),n in m||(m[n]=o.start,f&&(o.end=o.start,o.start="width"===n||"height"===n?1:0))}}function N(t,e){var i,n,s,r,o;for(i in t)if(n=J.camelCase(i),s=e[n],r=t[i],J.isArray(r)&&(s=r[1],r=t[i]=r[0]),i!==n&&(t[n]=r,delete t[i]),o=J.cssHooks[n],o&&"expand"in o){r=o.expand(r),delete t[n];for(i in r)i in t||(t[i]=r[i],e[i]=s)}else e[n]=s}function P(t,e,i){var n,s,r=0,o=ee.length,a=J.Deferred().always(function(){delete l.elem}),l=function(){if(s)return!1;for(var e=Qt||I(),i=Math.max(0,c.startTime+c.duration-e),n=i/c.duration||0,r=1-n,o=0,l=c.tweens.length;l>o;o++)c.tweens[o].run(r);return a.notifyWith(t,[c,r,i]),1>r&&l?i:(a.resolveWith(t,[c]),!1)},c=a.promise({elem:t,props:J.extend({},e),opts:J.extend(!0,{specialEasing:{}},i),originalProperties:e,originalOptions:i,startTime:Qt||I(),duration:i.duration,tweens:[],createTween:function(e,i){var n=J.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(s)return this;for(s=!0;n>i;i++)c.tweens[i].run(1);return e?a.resolveWith(t,[c,e]):a.rejectWith(t,[c,e]),this}}),d=c.props;for(N(d,c.opts.specialEasing);o>r;r++)if(n=ee[r].call(c,t,d,c.opts))return n;return J.map(d,A,c),J.isFunction(c.opts.start)&&c.opts.start.call(t,c),J.fx.timer(J.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 L(t){return function(e,i){"string"!=typeof e&&(i=e,e="*");var n,s=0,r=e.toLowerCase().match(ht)||[];if(J.isFunction(i))for(;n=r[s++];)"+"===n[0]?(n=n.slice(1)||"*",(t[n]=t[n]||[]).unshift(i)):(t[n]=t[n]||[]).push(i)}}function O(t,e,i,n){function s(a){var l;return r[a]=!0,J.each(t[a]||[],function(t,a){var c=a(e,i,n);return"string"!=typeof c||o||r[c]?o?!(l=c):void 0:(e.dataTypes.unshift(c),s(c),!1)}),l}var r={},o=t===we;return s(e.dataTypes[0])||!r["*"]&&s("*")}function z(t,e){var i,n,s=J.ajaxSettings.flatOptions||{};for(i in e)void 0!==e[i]&&((s[i]?t:n||(n={}))[i]=e[i]);return n&&J.extend(!0,t,n),t}function j(t,e,i){for(var n,s,r,o,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=t.mimeType||e.getResponseHeader("Content-Type"));if(n)for(s in a)if(a[s]&&a[s].test(n)){l.unshift(s);break}if(l[0]in i)r=l[0];else{for(s in i){if(!l[0]||t.converters[s+" "+l[0]]){r=s;break}o||(o=s)}r=r||o}return r?(r!==l[0]&&l.unshift(r),i[r]):void 0}function B(t,e,i,n){var s,r,o,a,l,c={},d=t.dataTypes.slice();if(d[1])for(o in t.converters)c[o.toLowerCase()]=t.converters[o];for(r=d.shift();r;)if(t.responseFields[r]&&(i[t.responseFields[r]]=e),!l&&n&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=r,r=d.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(o=c[l+" "+r]||c["* "+r],!o)for(s in c)if(a=s.split(" "),a[1]===r&&(o=c[l+" "+a[0]]||c["* "+a[0]])){o===!0?o=c[s]:c[s]!==!0&&(r=a[0],d.unshift(a[1]));break}if(o!==!0)if(o&&t["throws"])e=o(e);else try{e=o(e)}catch(u){return{state:"parsererror",error:o?u:"No conversion from "+l+" to "+r}}}return{state:"success",data:e}}function R(t,e,i,n){var s;if(J.isArray(e))J.each(e,function(e,s){i||Te.test(t)?n(t,s):R(t+"["+("object"==typeof s?e:"")+"]",s,i,n)});else if(i||"object"!==J.type(e))n(t,e);else for(s in e)R(t+"["+s+"]",e[s],i,n)}function F(t){return J.isWindow(t)?t:9===t.nodeType&&t.defaultView}var H=[],W=H.slice,q=H.concat,U=H.push,G=H.indexOf,V={},X=V.toString,Y=V.hasOwnProperty,Q={},K=t.document,Z="2.1.4",J=function(t,e){return new J.fn.init(t,e)},tt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,et=/^-ms-/,it=/-([\da-z])/gi,nt=function(t,e){return e.toUpperCase()};J.fn=J.prototype={jquery:Z,constructor:J,selector:"",length:0,toArray:function(){return W.call(this)},get:function(t){return null!=t?0>t?this[t+this.length]:this[t]:W.call(this)},pushStack:function(t){var e=J.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t,e){return J.each(this,t,e)},map:function(t){return this.pushStack(J.map(this,function(e,i){return t.call(e,i,e)}))},slice:function(){return this.pushStack(W.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,i=+t+(0>t?e:0);return this.pushStack(i>=0&&e>i?[this[i]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:U,sort:H.sort,splice:H.splice},J.extend=J.fn.extend=function(){var t,e,i,n,s,r,o=arguments[0]||{},a=1,l=arguments.length,c=!1;for("boolean"==typeof o&&(c=o,o=arguments[a]||{},a++),"object"==typeof o||J.isFunction(o)||(o={}),a===l&&(o=this,a--);l>a;a++)if(null!=(t=arguments[a]))for(e in t)i=o[e],n=t[e],o!==n&&(c&&n&&(J.isPlainObject(n)||(s=J.isArray(n)))?(s?(s=!1,r=i&&J.isArray(i)?i:[]):r=i&&J.isPlainObject(i)?i:{},o[e]=J.extend(c,r,n)):void 0!==n&&(o[e]=n));return o},J.extend({expando:"jQuery"+(Z+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===J.type(t)},isArray:Array.isArray,isWindow:function(t){return null!=t&&t===t.window},isNumeric:function(t){return!J.isArray(t)&&t-parseFloat(t)+1>=0},isPlainObject:function(t){return"object"!==J.type(t)||t.nodeType||J.isWindow(t)?!1:t.constructor&&!Y.call(t.constructor.prototype,"isPrototypeOf")?!1:!0},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?V[X.call(t)]||"object":typeof t},globalEval:function(t){var e,i=eval;t=J.trim(t),t&&(1===t.indexOf("use strict")?(e=K.createElement("script"),e.text=t,K.head.appendChild(e).parentNode.removeChild(e)):i(t))},camelCase:function(t){return t.replace(et,"ms-").replace(it,nt)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e,n){var s,r=0,o=t.length,a=i(t);if(n){if(a)for(;o>r&&(s=e.apply(t[r],n),s!==!1);r++);else for(r in t)if(s=e.apply(t[r],n),s===!1)break}else if(a)for(;o>r&&(s=e.call(t[r],r,t[r]),s!==!1);r++);else for(r in t)if(s=e.call(t[r],r,t[r]),s===!1)break;return t},trim:function(t){return null==t?"":(t+"").replace(tt,"")},makeArray:function(t,e){var n=e||[];return null!=t&&(i(Object(t))?J.merge(n,"string"==typeof t?[t]:t):U.call(n,t)),n},inArray:function(t,e,i){return null==e?-1:G.call(e,t,i)},merge:function(t,e){for(var i=+e.length,n=0,s=t.length;i>n;n++)t[s++]=e[n];return t.length=s,t},grep:function(t,e,i){for(var n,s=[],r=0,o=t.length,a=!i;o>r;r++)n=!e(t[r],r),n!==a&&s.push(t[r]);return s},map:function(t,e,n){var s,r=0,o=t.length,a=i(t),l=[];if(a)for(;o>r;r++)s=e(t[r],r,n),null!=s&&l.push(s);else for(r in t)s=e(t[r],r,n),null!=s&&l.push(s);return q.apply([],l)},guid:1,proxy:function(t,e){var i,n,s;return"string"==typeof e&&(i=t[e],e=t,t=i),J.isFunction(t)?(n=W.call(arguments,2),s=function(){return t.apply(e||this,n.concat(W.call(arguments)))},s.guid=t.guid=t.guid||J.guid++,s):void 0},now:Date.now,support:Q}),J.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(t,e){V["[object "+e+"]"]=e.toLowerCase()});var st=function(t){function e(t,e,i,n){var s,r,o,a,l,c,u,h,f,m;if((e?e.ownerDocument||e:R)!==M&&A(e),e=e||M,i=i||[],a=e.nodeType,"string"!=typeof t||!t||1!==a&&9!==a&&11!==a)return i;if(!n&&P){if(11!==a&&(s=yt.exec(t)))if(o=s[1]){if(9===a){if(r=e.getElementById(o),!r||!r.parentNode)return i;if(r.id===o)return i.push(r),i}else if(e.ownerDocument&&(r=e.ownerDocument.getElementById(o))&&j(e,r)&&r.id===o)return i.push(r),i}else{if(s[2])return Z.apply(i,e.getElementsByTagName(t)),i;if((o=s[3])&&x.getElementsByClassName)return Z.apply(i,e.getElementsByClassName(o)),i}if(x.qsa&&(!L||!L.test(t))){if(h=u=B,f=e,m=1!==a&&t,1===a&&"object"!==e.nodeName.toLowerCase()){for(c=S(t),(u=e.getAttribute("id"))?h=u.replace(bt,"\\$&"):e.setAttribute("id",h),h="[id='"+h+"'] ",l=c.length;l--;)c[l]=h+p(c[l]);f=wt.test(t)&&d(e.parentNode)||e,m=c.join(",")}if(m)try{return Z.apply(i,f.querySelectorAll(m)),i}catch(g){}finally{u||e.removeAttribute("id")}}}return k(t.replace(lt,"$1"),e,i,n)}function i(){function t(i,n){return e.push(i+" ")>_.cacheLength&&delete t[e.shift()],t[i+" "]=n}var e=[];return t}function n(t){return t[B]=!0,t}function s(t){var e=M.createElement("div");try{return!!t(e)}catch(i){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function r(t,e){for(var i=t.split("|"),n=t.length;n--;)_.attrHandle[i[n]]=e}function o(t,e){var i=e&&t,n=i&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||V)-(~t.sourceIndex||V);if(n)return n;if(i)for(;i=i.nextSibling;)if(i===e)return-1;return t?1:-1}function a(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 s,r=t([],i.length,e),o=r.length;o--;)i[s=r[o]]&&(i[s]=!(n[s]=i[s]))})})}function d(t){return t&&"undefined"!=typeof t.getElementsByTagName&&t}function u(){}function p(t){for(var e=0,i=t.length,n="";i>e;e++)n+=t[e].value;return n}function h(t,e,i){var n=e.dir,s=i&&"parentNode"===n,r=H++;return e.first?function(e,i,r){for(;e=e[n];)if(1===e.nodeType||s)return t(e,i,r)}:function(e,i,o){var a,l,c=[F,r];if(o){for(;e=e[n];)if((1===e.nodeType||s)&&t(e,i,o))return!0}else for(;e=e[n];)if(1===e.nodeType||s){if(l=e[B]||(e[B]={}),(a=l[n])&&a[0]===F&&a[1]===r)return c[2]=a[2];if(l[n]=c,c[2]=t(e,i,o))return!0}}}function f(t){return t.length>1?function(e,i,n){for(var s=t.length;s--;)if(!t[s](e,i,n))return!1;return!0}:t[0]}function m(t,i,n){for(var s=0,r=i.length;r>s;s++)e(t,i[s],n);return n}function g(t,e,i,n,s){for(var r,o=[],a=0,l=t.length,c=null!=e;l>a;a++)(r=t[a])&&(!i||i(r,n,s))&&(o.push(r),c&&e.push(a));return o}function v(t,e,i,s,r,o){return s&&!s[B]&&(s=v(s)),r&&!r[B]&&(r=v(r,o)),n(function(n,o,a,l){var c,d,u,p=[],h=[],f=o.length,v=n||m(e||"*",a.nodeType?[a]:a,[]),y=!t||!n&&e?v:g(v,p,t,a,l),w=i?r||(n?t:f||s)?[]:o:y;if(i&&i(y,w,a,l),s)for(c=g(w,h),s(c,[],a,l),d=c.length;d--;)(u=c[d])&&(w[h[d]]=!(y[h[d]]=u));if(n){if(r||t){if(r){for(c=[],d=w.length;d--;)(u=w[d])&&c.push(y[d]=u);r(null,w=[],c,l)}for(d=w.length;d--;)(u=w[d])&&(c=r?tt(n,u):p[d])>-1&&(n[c]=!(o[c]=u))}}else w=g(w===o?w.splice(f,w.length):w),r?r(null,o,w,l):Z.apply(o,w)})}function y(t){for(var e,i,n,s=t.length,r=_.relative[t[0].type],o=r||_.relative[" "],a=r?1:0,l=h(function(t){return t===e},o,!0),c=h(function(t){return tt(e,t)>-1},o,!0),d=[function(t,i,n){var s=!r&&(n||i!==E)||((e=i).nodeType?l(t,i,n):c(t,i,n));return e=null,s}];s>a;a++)if(i=_.relative[t[a].type])d=[h(f(d),i)];else{if(i=_.filter[t[a].type].apply(null,t[a].matches),i[B]){for(n=++a;s>n&&!_.relative[t[n].type];n++);return v(a>1&&f(d),a>1&&p(t.slice(0,a-1).concat({value:" "===t[a-2].type?"*":""})).replace(lt,"$1"),i,n>a&&y(t.slice(a,n)),s>n&&y(t=t.slice(n)),s>n&&p(t))}d.push(i)}return f(d)}function w(t,i){var s=i.length>0,r=t.length>0,o=function(n,o,a,l,c){var d,u,p,h=0,f="0",m=n&&[],v=[],y=E,w=n||r&&_.find.TAG("*",c),b=F+=null==y?1:Math.random()||.1,x=w.length;for(c&&(E=o!==M&&o);f!==x&&null!=(d=w[f]);f++){if(r&&d){for(u=0;p=t[u++];)if(p(d,o,a)){l.push(d);break}c&&(F=b)}s&&((d=!p&&d)&&h--,n&&m.push(d))}if(h+=f,s&&f!==h){for(u=0;p=i[u++];)p(m,v,o,a);if(n){if(h>0)for(;f--;)m[f]||v[f]||(v[f]=Q.call(l));v=g(v)}Z.apply(l,v),c&&!n&&v.length>0&&h+i.length>1&&e.uniqueSort(l)}return c&&(F=b,E=y),m};return s?n(o):o}var b,x,_,C,T,S,$,k,E,I,D,A,M,N,P,L,O,z,j,B="sizzle"+1*new Date,R=t.document,F=0,H=0,W=i(),q=i(),U=i(),G=function(t,e){return t===e&&(D=!0),0},V=1<<31,X={}.hasOwnProperty,Y=[],Q=Y.pop,K=Y.push,Z=Y.push,J=Y.slice,tt=function(t,e){for(var i=0,n=t.length;n>i;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])+",st=nt.replace("w","w#"),rt="\\["+it+"*("+nt+")(?:"+it+"*([*^$|!~]?=)"+it+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+st+"))|)"+it+"*\\]",ot=":("+nt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+rt+")*)|.*)\\)|)",at=new RegExp(it+"+","g"),lt=new RegExp("^"+it+"+|((?:^|[^\\\\])(?:\\\\.)*)"+it+"+$","g"),ct=new RegExp("^"+it+"*,"+it+"*"),dt=new RegExp("^"+it+"*([>+~]|"+it+")"+it+"*"),ut=new RegExp("="+it+"*([^\\]'\"]*?)"+it+"*\\]","g"),pt=new RegExp(ot),ht=new RegExp("^"+st+"$"),ft={ID:new RegExp("^#("+nt+")"),CLASS:new RegExp("^\\.("+nt+")"),TAG:new RegExp("^("+nt.replace("w","w*")+")"),ATTR:new RegExp("^"+rt),PSEUDO:new RegExp("^"+ot),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")},mt=/^(?:input|select|textarea|button)$/i,gt=/^h\d$/i,vt=/^[^{]+\{\s*\[native \w/,yt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,wt=/[+~]/,bt=/'|\\/g,xt=new RegExp("\\\\([\\da-f]{1,6}"+it+"?|("+it+")|.)","ig"),_t=function(t,e,i){var n="0x"+e-65536;return n!==n||i?e:0>n?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)},Ct=function(){A()};try{Z.apply(Y=J.call(R.childNodes),R.childNodes),Y[R.childNodes.length].nodeType}catch(Tt){Z={apply:Y.length?function(t,e){K.apply(t,J.call(e))}:function(t,e){for(var i=t.length,n=0;t[i++]=e[n++];);t.length=i-1}}}x=e.support={},T=e.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return e?"HTML"!==e.nodeName:!1},A=e.setDocument=function(t){var e,i,n=t?t.ownerDocument||t:R;return n!==M&&9===n.nodeType&&n.documentElement?(M=n,N=n.documentElement,i=n.defaultView,i&&i!==i.top&&(i.addEventListener?i.addEventListener("unload",Ct,!1):i.attachEvent&&i.attachEvent("onunload",Ct)),P=!T(n),x.attributes=s(function(t){return t.className="i",!t.getAttribute("className")}),x.getElementsByTagName=s(function(t){return t.appendChild(n.createComment("")),!t.getElementsByTagName("*").length}),x.getElementsByClassName=vt.test(n.getElementsByClassName),x.getById=s(function(t){return N.appendChild(t).id=B,!n.getElementsByName||!n.getElementsByName(B).length}),x.getById?(_.find.ID=function(t,e){if("undefined"!=typeof e.getElementById&&P){var i=e.getElementById(t);return i&&i.parentNode?[i]:[]}},_.filter.ID=function(t){var e=t.replace(xt,_t);return function(t){return t.getAttribute("id")===e}}):(delete _.find.ID,_.filter.ID=function(t){var e=t.replace(xt,_t);return function(t){var i="undefined"!=typeof t.getAttributeNode&&t.getAttributeNode("id");return i&&i.value===e}}),_.find.TAG=x.getElementsByTagName?function(t,e){return"undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t):x.qsa?e.querySelectorAll(t):void 0}:function(t,e){var i,n=[],s=0,r=e.getElementsByTagName(t);if("*"===t){for(;i=r[s++];)1===i.nodeType&&n.push(i);return n}return r},_.find.CLASS=x.getElementsByClassName&&function(t,e){return P?e.getElementsByClassName(t):void 0},O=[],L=[],(x.qsa=vt.test(n.querySelectorAll))&&(s(function(t){N.appendChild(t).innerHTML="<a id='"+B+"'></a><select id='"+B+"-\f]' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&L.push("[*^$]="+it+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||L.push("\\["+it+"*(?:value|"+et+")"),t.querySelectorAll("[id~="+B+"-]").length||L.push("~="),t.querySelectorAll(":checked").length||L.push(":checked"),t.querySelectorAll("a#"+B+"+*").length||L.push(".#.+[+~]")}),s(function(t){var e=n.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(",.*:")})),(x.matchesSelector=vt.test(z=N.matches||N.webkitMatchesSelector||N.mozMatchesSelector||N.oMatchesSelector||N.msMatchesSelector))&&s(function(t){x.disconnectedMatch=z.call(t,"div"),z.call(t,"[s!='']:x"),O.push("!=",ot)}),L=L.length&&new RegExp(L.join("|")),O=O.length&&new RegExp(O.join("|")),e=vt.test(N.compareDocumentPosition),j=e||vt.test(N.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 D=!0,0;var i=!t.compareDocumentPosition-!e.compareDocumentPosition;return i?i:(i=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&i||!x.sortDetached&&e.compareDocumentPosition(t)===i?t===n||t.ownerDocument===R&&j(R,t)?-1:e===n||e.ownerDocument===R&&j(R,e)?1:I?tt(I,t)-tt(I,e):0:4&i?-1:1)}:function(t,e){if(t===e)return D=!0,0;var i,s=0,r=t.parentNode,a=e.parentNode,l=[t],c=[e];if(!r||!a)return t===n?-1:e===n?1:r?-1:a?1:I?tt(I,t)-tt(I,e):0;if(r===a)return o(t,e);for(i=t;i=i.parentNode;)l.unshift(i);for(i=e;i=i.parentNode;)c.unshift(i);for(;l[s]===c[s];)s++;return s?o(l[s],c[s]):l[s]===R?-1:c[s]===R?1:0},n):M},e.matches=function(t,i){return e(t,null,null,i)},e.matchesSelector=function(t,i){if((t.ownerDocument||t)!==M&&A(t),i=i.replace(ut,"='$1']"),!(!x.matchesSelector||!P||O&&O.test(i)||L&&L.test(i)))try{var n=z.call(t,i);if(n||x.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(s){}return e(i,M,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==M&&A(t),j(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==M&&A(t);var i=_.attrHandle[e.toLowerCase()],n=i&&X.call(_.attrHandle,e.toLowerCase())?i(t,e,!P):void 0;return void 0!==n?n:x.attributes||!P?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,s=0;if(D=!x.detectDuplicates,I=!x.sortStable&&t.slice(0),t.sort(G),D){for(;e=t[s++];)e===t[s]&&(n=i.push(s));for(;n--;)t.splice(i[n],1)}return I=null,t},C=e.getText=function(t){var e,i="",n=0,s=t.nodeType;if(s){if(1===s||9===s||11===s){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)i+=C(t)}else if(3===s||4===s)return t.nodeValue}else for(;e=t[n++];)i+=C(e);return i},_=e.selectors={cacheLength:50,createPseudo:n,match:ft,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,_t),t[3]=(t[3]||t[4]||t[5]||"").replace(xt,_t),"~="===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 ft.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&pt.test(i)&&(e=S(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,_t).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=W[t+" "];return e||(e=new RegExp("(^|"+it+")"+t+"("+it+"|$)"))&&W(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(s){var r=e.attr(s,t);return null==r?"!="===i:i?(r+="","="===i?r===n:"!="===i?r!==n:"^="===i?n&&0===r.indexOf(n):"*="===i?n&&r.indexOf(n)>-1:"$="===i?n&&r.slice(-n.length)===n:"~="===i?(" "+r.replace(at," ")+" ").indexOf(n)>-1:"|="===i?r===n||r.slice(0,n.length+1)===n+"-":!1):!0}},CHILD:function(t,e,i,n,s){var r="nth"!==t.slice(0,3),o="last"!==t.slice(-4),a="of-type"===e;return 1===n&&0===s?function(t){return!!t.parentNode}:function(e,i,l){var c,d,u,p,h,f,m=r!==o?"nextSibling":"previousSibling",g=e.parentNode,v=a&&e.nodeName.toLowerCase(),y=!l&&!a;if(g){if(r){for(;m;){for(u=e;u=u[m];)if(a?u.nodeName.toLowerCase()===v:1===u.nodeType)return!1;f=m="only"===t&&!f&&"nextSibling"}return!0}if(f=[o?g.firstChild:g.lastChild],o&&y){for(d=g[B]||(g[B]={}),c=d[t]||[],h=c[0]===F&&c[1],p=c[0]===F&&c[2],u=h&&g.childNodes[h];u=++h&&u&&u[m]||(p=h=0)||f.pop();)if(1===u.nodeType&&++p&&u===e){d[t]=[F,h,p];break}}else if(y&&(c=(e[B]||(e[B]={}))[t])&&c[0]===F)p=c[1];else for(;(u=++h&&u&&u[m]||(p=h=0)||f.pop())&&((a?u.nodeName.toLowerCase()!==v:1!==u.nodeType)||!++p||(y&&((u[B]||(u[B]={}))[t]=[F,p]),u!==e)););return p-=s,p===n||p%n===0&&p/n>=0}}},PSEUDO:function(t,i){var s,r=_.pseudos[t]||_.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return r[B]?r(i):r.length>1?(s=[t,t,"",i],_.setFilters.hasOwnProperty(t.toLowerCase())?n(function(t,e){for(var n,s=r(t,i),o=s.length;o--;)n=tt(t,s[o]),t[n]=!(e[n]=s[o])}):function(t){return r(t,0,s)}):r}},pseudos:{not:n(function(t){var e=[],i=[],s=$(t.replace(lt,"$1"));return s[B]?n(function(t,e,i,n){for(var r,o=s(t,null,n,[]),a=t.length;a--;)(r=o[a])&&(t[a]=!(e[a]=r))}):function(t,n,r){return e[0]=t,s(e,null,r,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,_t),function(e){return(e.textContent||e.innerText||C(e)).indexOf(t)>-1}}),lang:n(function(t){return ht.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(xt,_t).toLowerCase(),function(e){var i;do if(i=P?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===N},focus:function(t){return t===M.activeElement&&(!M.hasFocus||M.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!_.pseudos.empty(t)},header:function(t){return gt.test(t.nodeName)},input:function(t){return mt.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[0>i?i+e:i]}),even:c(function(t,e){for(var i=0;e>i;i+=2)t.push(i);return t}),odd:c(function(t,e){for(var i=1;e>i;i+=2)t.push(i);return t}),lt:c(function(t,e,i){for(var n=0>i?i+e:i;--n>=0;)t.push(n);return t}),gt:c(function(t,e,i){for(var n=0>i?i+e:i;++n<e;)t.push(n);return t})}},_.pseudos.nth=_.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})_.pseudos[b]=a(b);for(b in{submit:!0,reset:!0})_.pseudos[b]=l(b);return u.prototype=_.filters=_.pseudos,_.setFilters=new u,S=e.tokenize=function(t,i){var n,s,r,o,a,l,c,d=q[t+" "];if(d)return i?0:d.slice(0);for(a=t,l=[],c=_.preFilter;a;){(!n||(s=ct.exec(a)))&&(s&&(a=a.slice(s[0].length)||a),l.push(r=[])),n=!1,(s=dt.exec(a))&&(n=s.shift(),r.push({value:n,type:s[0].replace(lt," ")}),a=a.slice(n.length));for(o in _.filter)!(s=ft[o].exec(a))||c[o]&&!(s=c[o](s))||(n=s.shift(),r.push({value:n,type:o,matches:s}),a=a.slice(n.length));if(!n)break}return i?a.length:a?e.error(t):q(t,l).slice(0)},$=e.compile=function(t,e){var i,n=[],s=[],r=U[t+" "];if(!r){for(e||(e=S(t)),i=e.length;i--;)r=y(e[i]),r[B]?n.push(r):s.push(r);r=U(t,w(s,n)),r.selector=t}return r},k=e.select=function(t,e,i,n){var s,r,o,a,l,c="function"==typeof t&&t,u=!n&&S(t=c.selector||t);if(i=i||[],1===u.length){if(r=u[0]=u[0].slice(0),r.length>2&&"ID"===(o=r[0]).type&&x.getById&&9===e.nodeType&&P&&_.relative[r[1].type]){if(e=(_.find.ID(o.matches[0].replace(xt,_t),e)||[])[0],!e)return i;c&&(e=e.parentNode),t=t.slice(r.shift().value.length)}for(s=ft.needsContext.test(t)?0:r.length;s--&&(o=r[s],!_.relative[a=o.type]);)if((l=_.find[a])&&(n=l(o.matches[0].replace(xt,_t),wt.test(r[0].type)&&d(e.parentNode)||e))){if(r.splice(s,1),t=n.length&&p(r),!t)return Z.apply(i,n),i;break}}return(c||$(t,u))(n,e,!P,i,wt.test(t)&&d(e.parentNode)||e),i},x.sortStable=B.split("").sort(G).join("")===B,x.detectDuplicates=!!D,A(),x.sortDetached=s(function(t){return 1&t.compareDocumentPosition(M.createElement("div"))}),s(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||r("type|href|height|width",function(t,e,i){return i?void 0:t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),x.attributes&&s(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||r("value",function(t,e,i){return i||"input"!==t.nodeName.toLowerCase()?void 0:t.defaultValue}),s(function(t){return null==t.getAttribute("disabled")})||r(et,function(t,e,i){var n;return i?void 0:t[e]===!0?e.toLowerCase():(n=t.getAttributeNode(e))&&n.specified?n.value:null}),e}(t);J.find=st,J.expr=st.selectors,J.expr[":"]=J.expr.pseudos,J.unique=st.uniqueSort,J.text=st.getText,J.isXMLDoc=st.isXML,J.contains=st.contains;var rt=J.expr.match.needsContext,ot=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,at=/^.[^:#\[\.,]*$/;J.filter=function(t,e,i){var n=e[0];return i&&(t=":not("+t+")"),1===e.length&&1===n.nodeType?J.find.matchesSelector(n,t)?[n]:[]:J.find.matches(t,J.grep(e,function(t){return 1===t.nodeType}))},J.fn.extend({find:function(t){var e,i=this.length,n=[],s=this;
  
  if("string"!=typeof t)return this.pushStack(J(t).filter(function(){for(e=0;i>e;e++)if(J.contains(s[e],this))return!0}));for(e=0;i>e;e++)J.find(t,s[e],n);return n=this.pushStack(i>1?J.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&&rt.test(t)?J(t):t||[],!1).length}});var lt,ct=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,dt=J.fn.init=function(t,e){var i,n;if(!t)return this;if("string"==typeof t){if(i="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:ct.exec(t),!i||!i[1]&&e)return!e||e.jquery?(e||lt).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof J?e[0]:e,J.merge(this,J.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:K,!0)),ot.test(i[1])&&J.isPlainObject(e))for(i in e)J.isFunction(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return n=K.getElementById(i[2]),n&&n.parentNode&&(this.length=1,this[0]=n),this.context=K,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):J.isFunction(t)?"undefined"!=typeof lt.ready?lt.ready(t):t(J):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),J.makeArray(t,this))};dt.prototype=J.fn,lt=J(K);var ut=/^(?:parents|prev(?:Until|All))/,pt={children:!0,contents:!0,next:!0,prev:!0};J.extend({dir:function(t,e,i){for(var n=[],s=void 0!==i;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(s&&J(t).is(i))break;n.push(t)}return n},sibling:function(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i}}),J.fn.extend({has:function(t){var e=J(t,this),i=e.length;return this.filter(function(){for(var t=0;i>t;t++)if(J.contains(this,e[t]))return!0})},closest:function(t,e){for(var i,n=0,s=this.length,r=[],o=rt.test(t)||"string"!=typeof t?J(t,e||this.context):0;s>n;n++)for(i=this[n];i&&i!==e;i=i.parentNode)if(i.nodeType<11&&(o?o.index(i)>-1:1===i.nodeType&&J.find.matchesSelector(i,t))){r.push(i);break}return this.pushStack(r.length>1?J.unique(r):r)},index:function(t){return t?"string"==typeof t?G.call(J(t),this[0]):G.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(J.unique(J.merge(this.get(),J(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),J.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return J.dir(t,"parentNode")},parentsUntil:function(t,e,i){return J.dir(t,"parentNode",i)},next:function(t){return s(t,"nextSibling")},prev:function(t){return s(t,"previousSibling")},nextAll:function(t){return J.dir(t,"nextSibling")},prevAll:function(t){return J.dir(t,"previousSibling")},nextUntil:function(t,e,i){return J.dir(t,"nextSibling",i)},prevUntil:function(t,e,i){return J.dir(t,"previousSibling",i)},siblings:function(t){return J.sibling((t.parentNode||{}).firstChild,t)},children:function(t){return J.sibling(t.firstChild)},contents:function(t){return t.contentDocument||J.merge([],t.childNodes)}},function(t,e){J.fn[t]=function(i,n){var s=J.map(this,e,i);return"Until"!==t.slice(-5)&&(n=i),n&&"string"==typeof n&&(s=J.filter(n,s)),this.length>1&&(pt[t]||J.unique(s),ut.test(t)&&s.reverse()),this.pushStack(s)}});var ht=/\S+/g,ft={};J.Callbacks=function(t){t="string"==typeof t?ft[t]||r(t):J.extend({},t);var e,i,n,s,o,a,l=[],c=!t.once&&[],d=function(r){for(e=t.memory&&r,i=!0,a=s||0,s=0,o=l.length,n=!0;l&&o>a;a++)if(l[a].apply(r[0],r[1])===!1&&t.stopOnFalse){e=!1;break}n=!1,l&&(c?c.length&&d(c.shift()):e?l=[]:u.disable())},u={add:function(){if(l){var i=l.length;!function r(e){J.each(e,function(e,i){var n=J.type(i);"function"===n?t.unique&&u.has(i)||l.push(i):i&&i.length&&"string"!==n&&r(i)})}(arguments),n?o=l.length:e&&(s=i,d(e))}return this},remove:function(){return l&&J.each(arguments,function(t,e){for(var i;(i=J.inArray(e,l,i))>-1;)l.splice(i,1),n&&(o>=i&&o--,a>=i&&a--)}),this},has:function(t){return t?J.inArray(t,l)>-1:!(!l||!l.length)},empty:function(){return l=[],o=0,this},disable:function(){return l=c=e=void 0,this},disabled:function(){return!l},lock:function(){return c=void 0,e||u.disable(),this},locked:function(){return!c},fireWith:function(t,e){return!l||i&&!c||(e=e||[],e=[t,e.slice?e.slice():e],n?c.push(e):d(e)),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!i}};return u},J.extend({Deferred:function(t){var e=[["resolve","done",J.Callbacks("once memory"),"resolved"],["reject","fail",J.Callbacks("once memory"),"rejected"],["notify","progress",J.Callbacks("memory")]],i="pending",n={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},then:function(){var t=arguments;return J.Deferred(function(i){J.each(e,function(e,r){var o=J.isFunction(t[e])&&t[e];s[r[1]](function(){var t=o&&o.apply(this,arguments);t&&J.isFunction(t.promise)?t.promise().done(i.resolve).fail(i.reject).progress(i.notify):i[r[0]+"With"](this===n?i.promise():this,o?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?J.extend(t,n):n}},s={};return n.pipe=n.then,J.each(e,function(t,r){var o=r[2],a=r[3];n[r[1]]=o.add,a&&o.add(function(){i=a},e[1^t][2].disable,e[2][2].lock),s[r[0]]=function(){return s[r[0]+"With"](this===s?n:this,arguments),this},s[r[0]+"With"]=o.fireWith}),n.promise(s),t&&t.call(s,s),s},when:function(t){var e,i,n,s=0,r=W.call(arguments),o=r.length,a=1!==o||t&&J.isFunction(t.promise)?o:0,l=1===a?t:J.Deferred(),c=function(t,i,n){return function(s){i[t]=this,n[t]=arguments.length>1?W.call(arguments):s,n===e?l.notifyWith(i,n):--a||l.resolveWith(i,n)}};if(o>1)for(e=new Array(o),i=new Array(o),n=new Array(o);o>s;s++)r[s]&&J.isFunction(r[s].promise)?r[s].promise().done(c(s,n,r)).fail(l.reject).progress(c(s,i,e)):--a;return a||l.resolveWith(n,r),l.promise()}});var mt;J.fn.ready=function(t){return J.ready.promise().done(t),this},J.extend({isReady:!1,readyWait:1,holdReady:function(t){t?J.readyWait++:J.ready(!0)},ready:function(t){(t===!0?--J.readyWait:J.isReady)||(J.isReady=!0,t!==!0&&--J.readyWait>0||(mt.resolveWith(K,[J]),J.fn.triggerHandler&&(J(K).triggerHandler("ready"),J(K).off("ready"))))}}),J.ready.promise=function(e){return mt||(mt=J.Deferred(),"complete"===K.readyState?setTimeout(J.ready):(K.addEventListener("DOMContentLoaded",o,!1),t.addEventListener("load",o,!1))),mt.promise(e)},J.ready.promise();var gt=J.access=function(t,e,i,n,s,r,o){var a=0,l=t.length,c=null==i;if("object"===J.type(i)){s=!0;for(a in i)J.access(t,e,a,i[a],!0,r,o)}else if(void 0!==n&&(s=!0,J.isFunction(n)||(o=!0),c&&(o?(e.call(t,n),e=null):(c=e,e=function(t,e,i){return c.call(J(t),i)})),e))for(;l>a;a++)e(t[a],i,o?n:n.call(t[a],a,e(t[a],i)));return s?t:c?e.call(t):l?e(t[0],i):r};J.acceptData=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType},a.uid=1,a.accepts=J.acceptData,a.prototype={key:function(t){if(!a.accepts(t))return 0;var e={},i=t[this.expando];if(!i){i=a.uid++;try{e[this.expando]={value:i},Object.defineProperties(t,e)}catch(n){e[this.expando]=i,J.extend(t,e)}}return this.cache[i]||(this.cache[i]={}),i},set:function(t,e,i){var n,s=this.key(t),r=this.cache[s];if("string"==typeof e)r[e]=i;else if(J.isEmptyObject(r))J.extend(this.cache[s],e);else for(n in e)r[n]=e[n];return r},get:function(t,e){var i=this.cache[this.key(t)];return void 0===e?i:i[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,J.camelCase(e))):(this.set(t,e,i),void 0!==i?i:e)},remove:function(t,e){var i,n,s,r=this.key(t),o=this.cache[r];if(void 0===e)this.cache[r]={};else{J.isArray(e)?n=e.concat(e.map(J.camelCase)):(s=J.camelCase(e),e in o?n=[e,s]:(n=s,n=n in o?[n]:n.match(ht)||[])),i=n.length;for(;i--;)delete o[n[i]]}},hasData:function(t){return!J.isEmptyObject(this.cache[t[this.expando]]||{})},discard:function(t){t[this.expando]&&delete this.cache[t[this.expando]]}};var vt=new a,yt=new a,wt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,bt=/([A-Z])/g;J.extend({hasData:function(t){return yt.hasData(t)||vt.hasData(t)},data:function(t,e,i){return yt.access(t,e,i)},removeData:function(t,e){yt.remove(t,e)},_data:function(t,e,i){return vt.access(t,e,i)},_removeData:function(t,e){vt.remove(t,e)}}),J.fn.extend({data:function(t,e){var i,n,s,r=this[0],o=r&&r.attributes;if(void 0===t){if(this.length&&(s=yt.get(r),1===r.nodeType&&!vt.get(r,"hasDataAttrs"))){for(i=o.length;i--;)o[i]&&(n=o[i].name,0===n.indexOf("data-")&&(n=J.camelCase(n.slice(5)),l(r,n,s[n])));vt.set(r,"hasDataAttrs",!0)}return s}return"object"==typeof t?this.each(function(){yt.set(this,t)}):gt(this,function(e){var i,n=J.camelCase(t);if(r&&void 0===e){if(i=yt.get(r,t),void 0!==i)return i;if(i=yt.get(r,n),void 0!==i)return i;if(i=l(r,n,void 0),void 0!==i)return i}else this.each(function(){var i=yt.get(this,n);yt.set(this,n,e),-1!==t.indexOf("-")&&void 0!==i&&yt.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){yt.remove(this,t)})}}),J.extend({queue:function(t,e,i){var n;return t?(e=(e||"fx")+"queue",n=vt.get(t,e),i&&(!n||J.isArray(i)?n=vt.access(t,e,J.makeArray(i)):n.push(i)),n||[]):void 0},dequeue:function(t,e){e=e||"fx";var i=J.queue(t,e),n=i.length,s=i.shift(),r=J._queueHooks(t,e),o=function(){J.dequeue(t,e)};"inprogress"===s&&(s=i.shift(),n--),s&&("fx"===e&&i.unshift("inprogress"),delete r.stop,s.call(t,o,r)),!n&&r&&r.empty.fire()},_queueHooks:function(t,e){var i=e+"queueHooks";return vt.get(t,i)||vt.access(t,i,{empty:J.Callbacks("once memory").add(function(){vt.remove(t,[e+"queue",i])})})}}),J.fn.extend({queue:function(t,e){var i=2;return"string"!=typeof t&&(e=t,t="fx",i--),arguments.length<i?J.queue(this[0],t):void 0===e?this:this.each(function(){var i=J.queue(this,t,e);J._queueHooks(this,t),"fx"===t&&"inprogress"!==i[0]&&J.dequeue(this,t)})},dequeue:function(t){return this.each(function(){J.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var i,n=1,s=J.Deferred(),r=this,o=this.length,a=function(){--n||s.resolveWith(r,[r])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";o--;)i=vt.get(r[o],t+"queueHooks"),i&&i.empty&&(n++,i.empty.add(a));return a(),s.promise(e)}});var xt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,_t=["Top","Right","Bottom","Left"],Ct=function(t,e){return t=e||t,"none"===J.css(t,"display")||!J.contains(t.ownerDocument,t)},Tt=/^(?:checkbox|radio)$/i;!function(){var t=K.createDocumentFragment(),e=t.appendChild(K.createElement("div")),i=K.createElement("input");i.setAttribute("type","radio"),i.setAttribute("checked","checked"),i.setAttribute("name","t"),e.appendChild(i),Q.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",Q.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var St="undefined";Q.focusinBubbles="onfocusin"in t;var $t=/^key/,kt=/^(?:mouse|pointer|contextmenu)|click/,Et=/^(?:focusinfocus|focusoutblur)$/,It=/^([^.]*)(?:\.(.+)|)$/;J.event={global:{},add:function(t,e,i,n,s){var r,o,a,l,c,d,u,p,h,f,m,g=vt.get(t);if(g)for(i.handler&&(r=i,i=r.handler,s=r.selector),i.guid||(i.guid=J.guid++),(l=g.events)||(l=g.events={}),(o=g.handle)||(o=g.handle=function(e){return typeof J!==St&&J.event.triggered!==e.type?J.event.dispatch.apply(t,arguments):void 0}),e=(e||"").match(ht)||[""],c=e.length;c--;)a=It.exec(e[c])||[],h=m=a[1],f=(a[2]||"").split(".").sort(),h&&(u=J.event.special[h]||{},h=(s?u.delegateType:u.bindType)||h,u=J.event.special[h]||{},d=J.extend({type:h,origType:m,data:n,handler:i,guid:i.guid,selector:s,needsContext:s&&J.expr.match.needsContext.test(s),namespace:f.join(".")},r),(p=l[h])||(p=l[h]=[],p.delegateCount=0,u.setup&&u.setup.call(t,n,f,o)!==!1||t.addEventListener&&t.addEventListener(h,o,!1)),u.add&&(u.add.call(t,d),d.handler.guid||(d.handler.guid=i.guid)),s?p.splice(p.delegateCount++,0,d):p.push(d),J.event.global[h]=!0)},remove:function(t,e,i,n,s){var r,o,a,l,c,d,u,p,h,f,m,g=vt.hasData(t)&&vt.get(t);if(g&&(l=g.events)){for(e=(e||"").match(ht)||[""],c=e.length;c--;)if(a=It.exec(e[c])||[],h=m=a[1],f=(a[2]||"").split(".").sort(),h){for(u=J.event.special[h]||{},h=(n?u.delegateType:u.bindType)||h,p=l[h]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=r=p.length;r--;)d=p[r],!s&&m!==d.origType||i&&i.guid!==d.guid||a&&!a.test(d.namespace)||n&&n!==d.selector&&("**"!==n||!d.selector)||(p.splice(r,1),d.selector&&p.delegateCount--,u.remove&&u.remove.call(t,d));o&&!p.length&&(u.teardown&&u.teardown.call(t,f,g.handle)!==!1||J.removeEvent(t,h,g.handle),delete l[h])}else for(h in l)J.event.remove(t,h+e[c],i,n,!0);J.isEmptyObject(l)&&(delete g.handle,vt.remove(t,"events"))}},trigger:function(e,i,n,s){var r,o,a,l,c,d,u,p=[n||K],h=Y.call(e,"type")?e.type:e,f=Y.call(e,"namespace")?e.namespace.split("."):[];if(o=a=n=n||K,3!==n.nodeType&&8!==n.nodeType&&!Et.test(h+J.event.triggered)&&(h.indexOf(".")>=0&&(f=h.split("."),h=f.shift(),f.sort()),c=h.indexOf(":")<0&&"on"+h,e=e[J.expando]?e:new J.Event(h,"object"==typeof e&&e),e.isTrigger=s?2:3,e.namespace=f.join("."),e.namespace_re=e.namespace?new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),i=null==i?[e]:J.makeArray(i,[e]),u=J.event.special[h]||{},s||!u.trigger||u.trigger.apply(n,i)!==!1)){if(!s&&!u.noBubble&&!J.isWindow(n)){for(l=u.delegateType||h,Et.test(l+h)||(o=o.parentNode);o;o=o.parentNode)p.push(o),a=o;a===(n.ownerDocument||K)&&p.push(a.defaultView||a.parentWindow||t)}for(r=0;(o=p[r++])&&!e.isPropagationStopped();)e.type=r>1?l:u.bindType||h,d=(vt.get(o,"events")||{})[e.type]&&vt.get(o,"handle"),d&&d.apply(o,i),d=c&&o[c],d&&d.apply&&J.acceptData(o)&&(e.result=d.apply(o,i),e.result===!1&&e.preventDefault());return e.type=h,s||e.isDefaultPrevented()||u._default&&u._default.apply(p.pop(),i)!==!1||!J.acceptData(n)||c&&J.isFunction(n[h])&&!J.isWindow(n)&&(a=n[c],a&&(n[c]=null),J.event.triggered=h,n[h](),J.event.triggered=void 0,a&&(n[c]=a)),e.result}},dispatch:function(t){t=J.event.fix(t);var e,i,n,s,r,o=[],a=W.call(arguments),l=(vt.get(this,"events")||{})[t.type]||[],c=J.event.special[t.type]||{};if(a[0]=t,t.delegateTarget=this,!c.preDispatch||c.preDispatch.call(this,t)!==!1){for(o=J.event.handlers.call(this,t,l),e=0;(s=o[e++])&&!t.isPropagationStopped();)for(t.currentTarget=s.elem,i=0;(r=s.handlers[i++])&&!t.isImmediatePropagationStopped();)(!t.namespace_re||t.namespace_re.test(r.namespace))&&(t.handleObj=r,t.data=r.data,n=((J.event.special[r.origType]||{}).handle||r.handler).apply(s.elem,a),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,s,r,o=[],a=e.delegateCount,l=t.target;if(a&&l.nodeType&&(!t.button||"click"!==t.type))for(;l!==this;l=l.parentNode||this)if(l.disabled!==!0||"click"!==t.type){for(n=[],i=0;a>i;i++)r=e[i],s=r.selector+" ",void 0===n[s]&&(n[s]=r.needsContext?J(s,this).index(l)>=0:J.find(s,this,null,[l]).length),n[s]&&n.push(r);n.length&&o.push({elem:l,handlers:n})}return a<e.length&&o.push({elem:this,handlers:e.slice(a)}),o},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(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,s,r=e.button;return null==t.pageX&&null!=e.clientX&&(i=t.target.ownerDocument||K,n=i.documentElement,s=i.body,t.pageX=e.clientX+(n&&n.scrollLeft||s&&s.scrollLeft||0)-(n&&n.clientLeft||s&&s.clientLeft||0),t.pageY=e.clientY+(n&&n.scrollTop||s&&s.scrollTop||0)-(n&&n.clientTop||s&&s.clientTop||0)),t.which||void 0===r||(t.which=1&r?1:2&r?3:4&r?2:0),t}},fix:function(t){if(t[J.expando])return t;var e,i,n,s=t.type,r=t,o=this.fixHooks[s];for(o||(this.fixHooks[s]=o=kt.test(s)?this.mouseHooks:$t.test(s)?this.keyHooks:{}),n=o.props?this.props.concat(o.props):this.props,t=new J.Event(r),e=n.length;e--;)i=n[e],t[i]=r[i];return t.target||(t.target=K),3===t.target.nodeType&&(t.target=t.target.parentNode),o.filter?o.filter(t,r):t},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==u()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===u()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&J.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(t){return J.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}},simulate:function(t,e,i,n){var s=J.extend(new J.Event,i,{type:t,isSimulated:!0,originalEvent:{}});n?J.event.trigger(s,null,e):J.event.dispatch.call(e,s),s.isDefaultPrevented()&&i.preventDefault()}},J.removeEvent=function(t,e,i){t.removeEventListener&&t.removeEventListener(e,i,!1)},J.Event=function(t,e){return this instanceof J.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&t.returnValue===!1?c:d):this.type=t,e&&J.extend(this,e),this.timeStamp=t&&t.timeStamp||J.now(),void(this[J.expando]=!0)):new J.Event(t,e)},J.Event.prototype={isDefaultPrevented:d,isPropagationStopped:d,isImmediatePropagationStopped:d,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=c,t&&t.preventDefault&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=c,t&&t.stopPropagation&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=c,t&&t.stopImmediatePropagation&&t.stopImmediatePropagation(),this.stopPropagation()}},J.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){J.event.special[t]={delegateType:e,bindType:e,handle:function(t){var i,n=this,s=t.relatedTarget,r=t.handleObj;return(!s||s!==n&&!J.contains(n,s))&&(t.type=r.origType,i=r.handler.apply(this,arguments),t.type=e),i}}}),Q.focusinBubbles||J.each({focus:"focusin",blur:"focusout"},function(t,e){var i=function(t){J.event.simulate(e,t.target,J.event.fix(t),!0)};J.event.special[e]={setup:function(){var n=this.ownerDocument||this,s=vt.access(n,e);s||n.addEventListener(t,i,!0),vt.access(n,e,(s||0)+1)},teardown:function(){var n=this.ownerDocument||this,s=vt.access(n,e)-1;s?vt.access(n,e,s):(n.removeEventListener(t,i,!0),vt.remove(n,e))}}}),J.fn.extend({on:function(t,e,i,n,s){var r,o;if("object"==typeof t){"string"!=typeof e&&(i=i||e,e=void 0);for(o in t)this.on(o,e,i,t[o],s);return this}if(null==i&&null==n?(n=e,i=e=void 0):null==n&&("string"==typeof e?(n=i,i=void 0):(n=i,i=e,e=void 0)),n===!1)n=d;else if(!n)return this;return 1===s&&(r=n,n=function(t){return J().off(t),r.apply(this,arguments)},n.guid=r.guid||(r.guid=J.guid++)),this.each(function(){J.event.add(this,t,n,i,e)})},one:function(t,e,i,n){return this.on(t,e,i,n,1)},off:function(t,e,i){var n,s;if(t&&t.preventDefault&&t.handleObj)return n=t.handleObj,J(t.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"==typeof t){for(s in t)this.off(s,e,t[s]);return this}return(e===!1||"function"==typeof e)&&(i=e,e=void 0),i===!1&&(i=d),this.each(function(){J.event.remove(this,t,i,e)})},trigger:function(t,e){return this.each(function(){J.event.trigger(t,e,this)})},triggerHandler:function(t,e){var i=this[0];return i?J.event.trigger(t,e,i,!0):void 0}});var Dt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,At=/<([\w:]+)/,Mt=/<|&#?\w+;/,Nt=/<(?:script|style|link)/i,Pt=/checked\s*(?:[^=]|=\s*.checked.)/i,Lt=/^$|\/(?:java|ecma)script/i,Ot=/^true\/(.*)/,zt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,jt={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,"",""]};jt.optgroup=jt.option,jt.tbody=jt.tfoot=jt.colgroup=jt.caption=jt.thead,jt.th=jt.td,J.extend({clone:function(t,e,i){var n,s,r,o,a=t.cloneNode(!0),l=J.contains(t.ownerDocument,t);if(!(Q.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||J.isXMLDoc(t)))for(o=v(a),r=v(t),n=0,s=r.length;s>n;n++)y(r[n],o[n]);if(e)if(i)for(r=r||v(t),o=o||v(a),n=0,s=r.length;s>n;n++)g(r[n],o[n]);else g(t,a);return o=v(a,"script"),o.length>0&&m(o,!l&&v(t,"script")),a},buildFragment:function(t,e,i,n){for(var s,r,o,a,l,c,d=e.createDocumentFragment(),u=[],p=0,h=t.length;h>p;p++)if(s=t[p],s||0===s)if("object"===J.type(s))J.merge(u,s.nodeType?[s]:s);else if(Mt.test(s)){for(r=r||d.appendChild(e.createElement("div")),o=(At.exec(s)||["",""])[1].toLowerCase(),a=jt[o]||jt._default,r.innerHTML=a[1]+s.replace(Dt,"<$1></$2>")+a[2],c=a[0];c--;)r=r.lastChild;J.merge(u,r.childNodes),r=d.firstChild,r.textContent=""}else u.push(e.createTextNode(s));for(d.textContent="",p=0;s=u[p++];)if((!n||-1===J.inArray(s,n))&&(l=J.contains(s.ownerDocument,s),r=v(d.appendChild(s),"script"),l&&m(r),i))for(c=0;s=r[c++];)Lt.test(s.type||"")&&i.push(s);return d},cleanData:function(t){for(var e,i,n,s,r=J.event.special,o=0;void 0!==(i=t[o]);o++){if(J.acceptData(i)&&(s=i[vt.expando],s&&(e=vt.cache[s]))){if(e.events)for(n in e.events)r[n]?J.event.remove(i,n):J.removeEvent(i,n,e.handle);vt.cache[s]&&delete vt.cache[s]}delete yt.cache[i[yt.expando]]}}}),J.fn.extend({text:function(t){return gt(this,function(t){return void 0===t?J.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 this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=p(this,t);e.appendChild(t)}})},prepend:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=p(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},remove:function(t,e){for(var i,n=t?J.filter(t,this):this,s=0;null!=(i=n[s]);s++)e||1!==i.nodeType||J.cleanData(v(i)),i.parentNode&&(e&&J.contains(i.ownerDocument,i)&&m(v(i,"script")),i.parentNode.removeChild(i));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(J.cleanData(v(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null==t?!1:t,e=null==e?t:e,this.map(function(){return J.clone(this,t,e)})},html:function(t){return gt(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&&!Nt.test(t)&&!jt[(At.exec(t)||["",""])[1].toLowerCase()]){t=t.replace(Dt,"<$1></$2>");try{for(;n>i;i++)e=this[i]||{},1===e.nodeType&&(J.cleanData(v(e,!1)),e.innerHTML=t);e=0}catch(s){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=arguments[0];return this.domManip(arguments,function(e){t=this.parentNode,J.cleanData(v(this)),t&&t.replaceChild(e,this)}),t&&(t.length||t.nodeType)?this:this.remove()},detach:function(t){return this.remove(t,!0)},domManip:function(t,e){t=q.apply([],t);var i,n,s,r,o,a,l=0,c=this.length,d=this,u=c-1,p=t[0],m=J.isFunction(p);if(m||c>1&&"string"==typeof p&&!Q.checkClone&&Pt.test(p))return this.each(function(i){var n=d.eq(i);m&&(t[0]=p.call(this,i,n.html())),n.domManip(t,e)});if(c&&(i=J.buildFragment(t,this[0].ownerDocument,!1,this),n=i.firstChild,1===i.childNodes.length&&(i=n),n)){for(s=J.map(v(i,"script"),h),r=s.length;c>l;l++)o=i,l!==u&&(o=J.clone(o,!0,!0),r&&J.merge(s,v(o,"script"))),e.call(this[l],o,l);if(r)for(a=s[s.length-1].ownerDocument,J.map(s,f),l=0;r>l;l++)o=s[l],Lt.test(o.type||"")&&!vt.access(o,"globalEval")&&J.contains(a,o)&&(o.src?J._evalUrl&&J._evalUrl(o.src):J.globalEval(o.textContent.replace(zt,"")))}return this}}),J.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){J.fn[t]=function(t){for(var i,n=[],s=J(t),r=s.length-1,o=0;r>=o;o++)i=o===r?this:this.clone(!0),J(s[o])[e](i),U.apply(n,i.get());return this.pushStack(n)}});var Bt,Rt={},Ft=/^margin/,Ht=new RegExp("^("+xt+")(?!px)[a-z%]+$","i"),Wt=function(e){return e.ownerDocument.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):t.getComputedStyle(e,null)};!function(){function e(){o.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",o.innerHTML="",s.appendChild(r);var e=t.getComputedStyle(o,null);i="1%"!==e.top,n="4px"===e.width,s.removeChild(r)}var i,n,s=K.documentElement,r=K.createElement("div"),o=K.createElement("div");o.style&&(o.style.backgroundClip="content-box",o.cloneNode(!0).style.backgroundClip="",Q.clearCloneStyle="content-box"===o.style.backgroundClip,r.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute",r.appendChild(o),t.getComputedStyle&&J.extend(Q,{pixelPosition:function(){return e(),i},boxSizingReliable:function(){return null==n&&e(),n},reliableMarginRight:function(){var e,i=o.appendChild(K.createElement("div"));return i.style.cssText=o.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",i.style.marginRight=i.style.width="0",o.style.width="1px",s.appendChild(r),e=!parseFloat(t.getComputedStyle(i,null).marginRight),s.removeChild(r),o.removeChild(i),e}}))}(),J.swap=function(t,e,i,n){var s,r,o={};for(r in e)o[r]=t.style[r],t.style[r]=e[r];s=i.apply(t,n||[]);for(r in e)t.style[r]=o[r];return s};var qt=/^(none|table(?!-c[ea]).+)/,Ut=new RegExp("^("+xt+")(.*)$","i"),Gt=new RegExp("^([+-])=("+xt+")","i"),Vt={position:"absolute",visibility:"hidden",display:"block"},Xt={letterSpacing:"0",fontWeight:"400"},Yt=["Webkit","O","Moz","ms"];J.extend({cssHooks:{opacity:{get:function(t,e){if(e){var i=x(t,"opacity");return""===i?"1":i}}}},cssNumber:{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 s,r,o,a=J.camelCase(e),l=t.style;return e=J.cssProps[a]||(J.cssProps[a]=C(l,a)),o=J.cssHooks[e]||J.cssHooks[a],void 0===i?o&&"get"in o&&void 0!==(s=o.get(t,!1,n))?s:l[e]:(r=typeof i,"string"===r&&(s=Gt.exec(i))&&(i=(s[1]+1)*s[2]+parseFloat(J.css(t,e)),r="number"),null!=i&&i===i&&("number"!==r||J.cssNumber[a]||(i+="px"),Q.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 s,r,o,a=J.camelCase(e);return e=J.cssProps[a]||(J.cssProps[a]=C(t.style,a)),o=J.cssHooks[e]||J.cssHooks[a],o&&"get"in o&&(s=o.get(t,!0,i)),void 0===s&&(s=x(t,e,n)),"normal"===s&&e in Xt&&(s=Xt[e]),""===i||i?(r=parseFloat(s),i===!0||J.isNumeric(r)?r||0:s):s}}),J.each(["height","width"],function(t,e){J.cssHooks[e]={get:function(t,i,n){return i?qt.test(J.css(t,"display"))&&0===t.offsetWidth?J.swap(t,Vt,function(){return $(t,e,n)}):$(t,e,n):void 0},set:function(t,i,n){var s=n&&Wt(t);return T(t,i,n?S(t,e,n,"border-box"===J.css(t,"boxSizing",!1,s),s):0)}}}),J.cssHooks.marginRight=_(Q.reliableMarginRight,function(t,e){return e?J.swap(t,{display:"inline-block"},x,[t,"marginRight"]):void 0}),J.each({margin:"",padding:"",border:"Width"},function(t,e){J.cssHooks[t+e]={expand:function(i){for(var n=0,s={},r="string"==typeof i?i.split(" "):[i];4>n;n++)s[t+_t[n]+e]=r[n]||r[n-2]||r[0];return s}},Ft.test(t)||(J.cssHooks[t+e].set=T)}),J.fn.extend({css:function(t,e){return gt(this,function(t,e,i){var n,s,r={},o=0;if(J.isArray(e)){for(n=Wt(t),s=e.length;s>o;o++)r[e[o]]=J.css(t,e[o],!1,n);return r}return void 0!==i?J.style(t,e,i):J.css(t,e)},t,e,arguments.length>1)},show:function(){return k(this,!0)},hide:function(){return k(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){Ct(this)?J(this).show():J(this).hide()})}}),J.Tween=E,E.prototype={constructor:E,init:function(t,e,i,n,s,r){this.elem=t,this.prop=i,this.easing=s||"swing",this.options=e,this.start=this.now=this.cur(),this.end=n,this.unit=r||(J.cssNumber[i]?"":"px")},cur:function(){var t=E.propHooks[this.prop];return t&&t.get?t.get(this):E.propHooks._default.get(this)},run:function(t){var e,i=E.propHooks[this.prop];return this.pos=e=this.options.duration?J.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):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):E.propHooks._default.set(this),this}},E.prototype.init.prototype=E.prototype,E.propHooks={_default:{get:function(t){var e;return null==t.elem[t.prop]||t.elem.style&&null!=t.elem.style[t.prop]?(e=J.css(t.elem,t.prop,""),e&&"auto"!==e?e:0):t.elem[t.prop]},set:function(t){J.fx.step[t.prop]?J.fx.step[t.prop](t):t.elem.style&&(null!=t.elem.style[J.cssProps[t.prop]]||J.cssHooks[t.prop])?J.style(t.elem,t.prop,t.now+t.unit):t.elem[t.prop]=t.now}}},E.propHooks.scrollTop=E.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},J.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2}},J.fx=E.prototype.init,J.fx.step={};var Qt,Kt,Zt=/^(?:toggle|show|hide)$/,Jt=new RegExp("^(?:([+-])=|)("+xt+")([a-z%]*)$","i"),te=/queueHooks$/,ee=[M],ie={"*":[function(t,e){var i=this.createTween(t,e),n=i.cur(),s=Jt.exec(e),r=s&&s[3]||(J.cssNumber[t]?"":"px"),o=(J.cssNumber[t]||"px"!==r&&+n)&&Jt.exec(J.css(i.elem,t)),a=1,l=20;if(o&&o[3]!==r){r=r||o[3],s=s||[],o=+n||1;do a=a||".5",o/=a,J.style(i.elem,t,o+r);while(a!==(a=i.cur()/n)&&1!==a&&--l)}return s&&(o=i.start=+o||+n||0,i.unit=r,i.end=s[1]?o+(s[1]+1)*s[2]:+s[2]),i}]};J.Animation=J.extend(P,{tweener:function(t,e){J.isFunction(t)?(e=t,t=["*"]):t=t.split(" ");for(var i,n=0,s=t.length;s>n;n++)i=t[n],ie[i]=ie[i]||[],ie[i].unshift(e)},prefilter:function(t,e){e?ee.unshift(t):ee.push(t)}}),J.speed=function(t,e,i){var n=t&&"object"==typeof t?J.extend({},t):{complete:i||!i&&e||J.isFunction(t)&&t,duration:t,easing:i&&e||e&&!J.isFunction(e)&&e};return n.duration=J.fx.off?0:"number"==typeof n.duration?n.duration:n.duration in J.fx.speeds?J.fx.speeds[n.duration]:J.fx.speeds._default,(null==n.queue||n.queue===!0)&&(n.queue="fx"),n.old=n.complete,n.complete=function(){J.isFunction(n.old)&&n.old.call(this),n.queue&&J.dequeue(this,n.queue)},n},J.fn.extend({fadeTo:function(t,e,i,n){return this.filter(Ct).css("opacity",0).show().end().animate({opacity:e},t,i,n)},animate:function(t,e,i,n){var s=J.isEmptyObject(t),r=J.speed(e,i,n),o=function(){var e=P(this,J.extend({},t),r);(s||vt.get(this,"finish"))&&e.stop(!0)};return o.finish=o,s||r.queue===!1?this.each(o):this.queue(r.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,s=null!=t&&t+"queueHooks",r=J.timers,o=vt.get(this);if(s)o[s]&&o[s].stop&&n(o[s]);else for(s in o)o[s]&&o[s].stop&&te.test(s)&&n(o[s]);for(s=r.length;s--;)r[s].elem!==this||null!=t&&r[s].queue!==t||(r[s].anim.stop(i),e=!1,r.splice(s,1));(e||!i)&&J.dequeue(this,t)})},finish:function(t){return t!==!1&&(t=t||"fx"),this.each(function(){var e,i=vt.get(this),n=i[t+"queue"],s=i[t+"queueHooks"],r=J.timers,o=n?n.length:0;for(i.finish=!0,J.queue(this,t,[]),s&&s.stop&&s.stop.call(this,!0),
  e=r.length;e--;)r[e].elem===this&&r[e].queue===t&&(r[e].anim.stop(!0),r.splice(e,1));for(e=0;o>e;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete i.finish})}}),J.each(["toggle","show","hide"],function(t,e){var i=J.fn[e];J.fn[e]=function(t,n,s){return null==t||"boolean"==typeof t?i.apply(this,arguments):this.animate(D(e,!0),t,n,s)}}),J.each({slideDown:D("show"),slideUp:D("hide"),slideToggle:D("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){J.fn[t]=function(t,i,n){return this.animate(e,t,i,n)}}),J.timers=[],J.fx.tick=function(){var t,e=0,i=J.timers;for(Qt=J.now();e<i.length;e++)t=i[e],t()||i[e]!==t||i.splice(e--,1);i.length||J.fx.stop(),Qt=void 0},J.fx.timer=function(t){J.timers.push(t),t()?J.fx.start():J.timers.pop()},J.fx.interval=13,J.fx.start=function(){Kt||(Kt=setInterval(J.fx.tick,J.fx.interval))},J.fx.stop=function(){clearInterval(Kt),Kt=null},J.fx.speeds={slow:600,fast:200,_default:400},J.fn.delay=function(t,e){return t=J.fx?J.fx.speeds[t]||t:t,e=e||"fx",this.queue(e,function(e,i){var n=setTimeout(e,t);i.stop=function(){clearTimeout(n)}})},function(){var t=K.createElement("input"),e=K.createElement("select"),i=e.appendChild(K.createElement("option"));t.type="checkbox",Q.checkOn=""!==t.value,Q.optSelected=i.selected,e.disabled=!0,Q.optDisabled=!i.disabled,t=K.createElement("input"),t.value="t",t.type="radio",Q.radioValue="t"===t.value}();var ne,se,re=J.expr.attrHandle;J.fn.extend({attr:function(t,e){return gt(this,J.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){J.removeAttr(this,t)})}}),J.extend({attr:function(t,e,i){var n,s,r=t.nodeType;if(t&&3!==r&&8!==r&&2!==r)return typeof t.getAttribute===St?J.prop(t,e,i):(1===r&&J.isXMLDoc(t)||(e=e.toLowerCase(),n=J.attrHooks[e]||(J.expr.match.bool.test(e)?se:ne)),void 0===i?n&&"get"in n&&null!==(s=n.get(t,e))?s:(s=J.find.attr(t,e),null==s?void 0:s):null!==i?n&&"set"in n&&void 0!==(s=n.set(t,i,e))?s:(t.setAttribute(e,i+""),i):void J.removeAttr(t,e))},removeAttr:function(t,e){var i,n,s=0,r=e&&e.match(ht);if(r&&1===t.nodeType)for(;i=r[s++];)n=J.propFix[i]||i,J.expr.match.bool.test(i)&&(t[n]=!1),t.removeAttribute(i)},attrHooks:{type:{set:function(t,e){if(!Q.radioValue&&"radio"===e&&J.nodeName(t,"input")){var i=t.value;return t.setAttribute("type",e),i&&(t.value=i),e}}}}}),se={set:function(t,e,i){return e===!1?J.removeAttr(t,i):t.setAttribute(i,i),i}},J.each(J.expr.match.bool.source.match(/\w+/g),function(t,e){var i=re[e]||J.find.attr;re[e]=function(t,e,n){var s,r;return n||(r=re[e],re[e]=s,s=null!=i(t,e,n)?e.toLowerCase():null,re[e]=r),s}});var oe=/^(?:input|select|textarea|button)$/i;J.fn.extend({prop:function(t,e){return gt(this,J.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[J.propFix[t]||t]})}}),J.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(t,e,i){var n,s,r,o=t.nodeType;if(t&&3!==o&&8!==o&&2!==o)return r=1!==o||!J.isXMLDoc(t),r&&(e=J.propFix[e]||e,s=J.propHooks[e]),void 0!==i?s&&"set"in s&&void 0!==(n=s.set(t,i,e))?n:t[e]=i:s&&"get"in s&&null!==(n=s.get(t,e))?n:t[e]},propHooks:{tabIndex:{get:function(t){return t.hasAttribute("tabindex")||oe.test(t.nodeName)||t.href?t.tabIndex:-1}}}}),Q.optSelected||(J.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null}}),J.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){J.propFix[this.toLowerCase()]=this});var ae=/[\t\r\n\f]/g;J.fn.extend({addClass:function(t){var e,i,n,s,r,o,a="string"==typeof t&&t,l=0,c=this.length;if(J.isFunction(t))return this.each(function(e){J(this).addClass(t.call(this,e,this.className))});if(a)for(e=(t||"").match(ht)||[];c>l;l++)if(i=this[l],n=1===i.nodeType&&(i.className?(" "+i.className+" ").replace(ae," "):" ")){for(r=0;s=e[r++];)n.indexOf(" "+s+" ")<0&&(n+=s+" ");o=J.trim(n),i.className!==o&&(i.className=o)}return this},removeClass:function(t){var e,i,n,s,r,o,a=0===arguments.length||"string"==typeof t&&t,l=0,c=this.length;if(J.isFunction(t))return this.each(function(e){J(this).removeClass(t.call(this,e,this.className))});if(a)for(e=(t||"").match(ht)||[];c>l;l++)if(i=this[l],n=1===i.nodeType&&(i.className?(" "+i.className+" ").replace(ae," "):"")){for(r=0;s=e[r++];)for(;n.indexOf(" "+s+" ")>=0;)n=n.replace(" "+s+" "," ");o=t?J.trim(n):"",i.className!==o&&(i.className=o)}return this},toggleClass:function(t,e){var i=typeof t;return"boolean"==typeof e&&"string"===i?e?this.addClass(t):this.removeClass(t):this.each(J.isFunction(t)?function(i){J(this).toggleClass(t.call(this,i,this.className,e),e)}:function(){if("string"===i)for(var e,n=0,s=J(this),r=t.match(ht)||[];e=r[n++];)s.hasClass(e)?s.removeClass(e):s.addClass(e);else(i===St||"boolean"===i)&&(this.className&&vt.set(this,"__className__",this.className),this.className=this.className||t===!1?"":vt.get(this,"__className__")||"")})},hasClass:function(t){for(var e=" "+t+" ",i=0,n=this.length;n>i;i++)if(1===this[i].nodeType&&(" "+this[i].className+" ").replace(ae," ").indexOf(e)>=0)return!0;return!1}});var le=/\r/g;J.fn.extend({val:function(t){var e,i,n,s=this[0];{if(arguments.length)return n=J.isFunction(t),this.each(function(i){var s;1===this.nodeType&&(s=n?t.call(this,i,J(this).val()):t,null==s?s="":"number"==typeof s?s+="":J.isArray(s)&&(s=J.map(s,function(t){return null==t?"":t+""})),e=J.valHooks[this.type]||J.valHooks[this.nodeName.toLowerCase()],e&&"set"in e&&void 0!==e.set(this,s,"value")||(this.value=s))});if(s)return e=J.valHooks[s.type]||J.valHooks[s.nodeName.toLowerCase()],e&&"get"in e&&void 0!==(i=e.get(s,"value"))?i:(i=s.value,"string"==typeof i?i.replace(le,""):null==i?"":i)}}}),J.extend({valHooks:{option:{get:function(t){var e=J.find.attr(t,"value");return null!=e?e:J.trim(J.text(t))}},select:{get:function(t){for(var e,i,n=t.options,s=t.selectedIndex,r="select-one"===t.type||0>s,o=r?null:[],a=r?s+1:n.length,l=0>s?a:r?s:0;a>l;l++)if(i=n[l],!(!i.selected&&l!==s||(Q.optDisabled?i.disabled:null!==i.getAttribute("disabled"))||i.parentNode.disabled&&J.nodeName(i.parentNode,"optgroup"))){if(e=J(i).val(),r)return e;o.push(e)}return o},set:function(t,e){for(var i,n,s=t.options,r=J.makeArray(e),o=s.length;o--;)n=s[o],(n.selected=J.inArray(n.value,r)>=0)&&(i=!0);return i||(t.selectedIndex=-1),r}}}}),J.each(["radio","checkbox"],function(){J.valHooks[this]={set:function(t,e){return J.isArray(e)?t.checked=J.inArray(J(t).val(),e)>=0:void 0}},Q.checkOn||(J.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),J.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){J.fn[e]=function(t,i){return arguments.length>0?this.on(e,null,t,i):this.trigger(e)}}),J.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)},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)}});var ce=J.now(),de=/\?/;J.parseJSON=function(t){return JSON.parse(t+"")},J.parseXML=function(t){var e,i;if(!t||"string"!=typeof t)return null;try{i=new DOMParser,e=i.parseFromString(t,"text/xml")}catch(n){e=void 0}return(!e||e.getElementsByTagName("parsererror").length)&&J.error("Invalid XML: "+t),e};var ue=/#.*$/,pe=/([?&])_=[^&]*/,he=/^(.*?):[ \t]*([^\r\n]*)$/gm,fe=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,me=/^(?:GET|HEAD)$/,ge=/^\/\//,ve=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,ye={},we={},be="*/".concat("*"),xe=t.location.href,_e=ve.exec(xe.toLowerCase())||[];J.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:xe,type:"GET",isLocal:fe.test(_e[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":be,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":J.parseJSON,"text xml":J.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?z(z(t,J.ajaxSettings),e):z(J.ajaxSettings,t)},ajaxPrefilter:L(ye),ajaxTransport:L(we),ajax:function(t,e){function i(t,e,i,o){var l,d,v,y,b,_=e;2!==w&&(w=2,a&&clearTimeout(a),n=void 0,r=o||"",x.readyState=t>0?4:0,l=t>=200&&300>t||304===t,i&&(y=j(u,x,i)),y=B(u,y,x,l),l?(u.ifModified&&(b=x.getResponseHeader("Last-Modified"),b&&(J.lastModified[s]=b),b=x.getResponseHeader("etag"),b&&(J.etag[s]=b)),204===t||"HEAD"===u.type?_="nocontent":304===t?_="notmodified":(_=y.state,d=y.data,v=y.error,l=!v)):(v=_,(t||!_)&&(_="error",0>t&&(t=0))),x.status=t,x.statusText=(e||_)+"",l?f.resolveWith(p,[d,_,x]):f.rejectWith(p,[x,_,v]),x.statusCode(g),g=void 0,c&&h.trigger(l?"ajaxSuccess":"ajaxError",[x,u,l?d:v]),m.fireWith(p,[x,_]),c&&(h.trigger("ajaxComplete",[x,u]),--J.active||J.event.trigger("ajaxStop")))}"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,s,r,o,a,l,c,d,u=J.ajaxSetup({},e),p=u.context||u,h=u.context&&(p.nodeType||p.jquery)?J(p):J.event,f=J.Deferred(),m=J.Callbacks("once memory"),g=u.statusCode||{},v={},y={},w=0,b="canceled",x={readyState:0,getResponseHeader:function(t){var e;if(2===w){if(!o)for(o={};e=he.exec(r);)o[e[1].toLowerCase()]=e[2];e=o[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===w?r:null},setRequestHeader:function(t,e){var i=t.toLowerCase();return w||(t=y[i]=y[i]||t,v[t]=e),this},overrideMimeType:function(t){return w||(u.mimeType=t),this},statusCode:function(t){var e;if(t)if(2>w)for(e in t)g[e]=[g[e],t[e]];else x.always(t[x.status]);return this},abort:function(t){var e=t||b;return n&&n.abort(e),i(0,e),this}};if(f.promise(x).complete=m.add,x.success=x.done,x.error=x.fail,u.url=((t||u.url||xe)+"").replace(ue,"").replace(ge,_e[1]+"//"),u.type=e.method||e.type||u.method||u.type,u.dataTypes=J.trim(u.dataType||"*").toLowerCase().match(ht)||[""],null==u.crossDomain&&(l=ve.exec(u.url.toLowerCase()),u.crossDomain=!(!l||l[1]===_e[1]&&l[2]===_e[2]&&(l[3]||("http:"===l[1]?"80":"443"))===(_e[3]||("http:"===_e[1]?"80":"443")))),u.data&&u.processData&&"string"!=typeof u.data&&(u.data=J.param(u.data,u.traditional)),O(ye,u,e,x),2===w)return x;c=J.event&&u.global,c&&0===J.active++&&J.event.trigger("ajaxStart"),u.type=u.type.toUpperCase(),u.hasContent=!me.test(u.type),s=u.url,u.hasContent||(u.data&&(s=u.url+=(de.test(s)?"&":"?")+u.data,delete u.data),u.cache===!1&&(u.url=pe.test(s)?s.replace(pe,"$1_="+ce++):s+(de.test(s)?"&":"?")+"_="+ce++)),u.ifModified&&(J.lastModified[s]&&x.setRequestHeader("If-Modified-Since",J.lastModified[s]),J.etag[s]&&x.setRequestHeader("If-None-Match",J.etag[s])),(u.data&&u.hasContent&&u.contentType!==!1||e.contentType)&&x.setRequestHeader("Content-Type",u.contentType),x.setRequestHeader("Accept",u.dataTypes[0]&&u.accepts[u.dataTypes[0]]?u.accepts[u.dataTypes[0]]+("*"!==u.dataTypes[0]?", "+be+"; q=0.01":""):u.accepts["*"]);for(d in u.headers)x.setRequestHeader(d,u.headers[d]);if(u.beforeSend&&(u.beforeSend.call(p,x,u)===!1||2===w))return x.abort();b="abort";for(d in{success:1,error:1,complete:1})x[d](u[d]);if(n=O(we,u,e,x)){x.readyState=1,c&&h.trigger("ajaxSend",[x,u]),u.async&&u.timeout>0&&(a=setTimeout(function(){x.abort("timeout")},u.timeout));try{w=1,n.send(v,i)}catch(_){if(!(2>w))throw _;i(-1,_)}}else i(-1,"No Transport");return x},getJSON:function(t,e,i){return J.get(t,e,i,"json")},getScript:function(t,e){return J.get(t,void 0,e,"script")}}),J.each(["get","post"],function(t,e){J[e]=function(t,i,n,s){return J.isFunction(i)&&(s=s||n,n=i,i=void 0),J.ajax({url:t,type:e,dataType:s,data:i,success:n})}}),J._evalUrl=function(t){return J.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},J.fn.extend({wrapAll:function(t){var e;return J.isFunction(t)?this.each(function(e){J(this).wrapAll(t.call(this,e))}):(this[0]&&(e=J(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 this.each(J.isFunction(t)?function(e){J(this).wrapInner(t.call(this,e))}:function(){var e=J(this),i=e.contents();i.length?i.wrapAll(t):e.append(t)})},wrap:function(t){var e=J.isFunction(t);return this.each(function(i){J(this).wrapAll(e?t.call(this,i):t)})},unwrap:function(){return this.parent().each(function(){J.nodeName(this,"body")||J(this).replaceWith(this.childNodes)}).end()}}),J.expr.filters.hidden=function(t){return t.offsetWidth<=0&&t.offsetHeight<=0},J.expr.filters.visible=function(t){return!J.expr.filters.hidden(t)};var Ce=/%20/g,Te=/\[\]$/,Se=/\r?\n/g,$e=/^(?:submit|button|image|reset|file)$/i,ke=/^(?:input|select|textarea|keygen)/i;J.param=function(t,e){var i,n=[],s=function(t,e){e=J.isFunction(e)?e():null==e?"":e,n[n.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(void 0===e&&(e=J.ajaxSettings&&J.ajaxSettings.traditional),J.isArray(t)||t.jquery&&!J.isPlainObject(t))J.each(t,function(){s(this.name,this.value)});else for(i in t)R(i,t[i],e,s);return n.join("&").replace(Ce,"+")},J.fn.extend({serialize:function(){return J.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=J.prop(this,"elements");return t?J.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!J(this).is(":disabled")&&ke.test(this.nodeName)&&!$e.test(t)&&(this.checked||!Tt.test(t))}).map(function(t,e){var i=J(this).val();return null==i?null:J.isArray(i)?J.map(i,function(t){return{name:e.name,value:t.replace(Se,"\r\n")}}):{name:e.name,value:i.replace(Se,"\r\n")}}).get()}}),J.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(t){}};var Ee=0,Ie={},De={0:200,1223:204},Ae=J.ajaxSettings.xhr();t.attachEvent&&t.attachEvent("onunload",function(){for(var t in Ie)Ie[t]()}),Q.cors=!!Ae&&"withCredentials"in Ae,Q.ajax=Ae=!!Ae,J.ajaxTransport(function(t){var e;return Q.cors||Ae&&!t.crossDomain?{send:function(i,n){var s,r=t.xhr(),o=++Ee;if(r.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(s in t.xhrFields)r[s]=t.xhrFields[s];t.mimeType&&r.overrideMimeType&&r.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");for(s in i)r.setRequestHeader(s,i[s]);e=function(t){return function(){e&&(delete Ie[o],e=r.onload=r.onerror=null,"abort"===t?r.abort():"error"===t?n(r.status,r.statusText):n(De[r.status]||r.status,r.statusText,"string"==typeof r.responseText?{text:r.responseText}:void 0,r.getAllResponseHeaders()))}},r.onload=e(),r.onerror=e("error"),e=Ie[o]=e("abort");try{r.send(t.hasContent&&t.data||null)}catch(a){if(e)throw a}},abort:function(){e&&e()}}:void 0}),J.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(t){return J.globalEval(t),t}}}),J.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),J.ajaxTransport("script",function(t){if(t.crossDomain){var e,i;return{send:function(n,s){e=J("<script>").prop({async:!0,charset:t.scriptCharset,src:t.url}).on("load error",i=function(t){e.remove(),i=null,t&&s("error"===t.type?404:200,t.type)}),K.head.appendChild(e[0])},abort:function(){i&&i()}}}});var Me=[],Ne=/(=)\?(?=&|$)|\?\?/;J.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Me.pop()||J.expando+"_"+ce++;return this[t]=!0,t}}),J.ajaxPrefilter("json jsonp",function(e,i,n){var s,r,o,a=e.jsonp!==!1&&(Ne.test(e.url)?"url":"string"==typeof e.data&&!(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ne.test(e.data)&&"data");return a||"jsonp"===e.dataTypes[0]?(s=e.jsonpCallback=J.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Ne,"$1"+s):e.jsonp!==!1&&(e.url+=(de.test(e.url)?"&":"?")+e.jsonp+"="+s),e.converters["script json"]=function(){return o||J.error(s+" was not called"),o[0]},e.dataTypes[0]="json",r=t[s],t[s]=function(){o=arguments},n.always(function(){t[s]=r,e[s]&&(e.jsonpCallback=i.jsonpCallback,Me.push(s)),o&&J.isFunction(r)&&r(o[0]),o=r=void 0}),"script"):void 0}),J.parseHTML=function(t,e,i){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(i=e,e=!1),e=e||K;var n=ot.exec(t),s=!i&&[];return n?[e.createElement(n[1])]:(n=J.buildFragment([t],e,s),s&&s.length&&J(s).remove(),J.merge([],n.childNodes))};var Pe=J.fn.load;J.fn.load=function(t,e,i){if("string"!=typeof t&&Pe)return Pe.apply(this,arguments);var n,s,r,o=this,a=t.indexOf(" ");return a>=0&&(n=J.trim(t.slice(a)),t=t.slice(0,a)),J.isFunction(e)?(i=e,e=void 0):e&&"object"==typeof e&&(s="POST"),o.length>0&&J.ajax({url:t,type:s,dataType:"html",data:e}).done(function(t){r=arguments,o.html(n?J("<div>").append(J.parseHTML(t)).find(n):t)}).complete(i&&function(t,e){o.each(i,r||[t.responseText,e,t])}),this},J.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){J.fn[e]=function(t){return this.on(e,t)}}),J.expr.filters.animated=function(t){return J.grep(J.timers,function(e){return t===e.elem}).length};var Le=t.document.documentElement;J.offset={setOffset:function(t,e,i){var n,s,r,o,a,l,c,d=J.css(t,"position"),u=J(t),p={};"static"===d&&(t.style.position="relative"),a=u.offset(),r=J.css(t,"top"),l=J.css(t,"left"),c=("absolute"===d||"fixed"===d)&&(r+l).indexOf("auto")>-1,c?(n=u.position(),o=n.top,s=n.left):(o=parseFloat(r)||0,s=parseFloat(l)||0),J.isFunction(e)&&(e=e.call(t,i,a)),null!=e.top&&(p.top=e.top-a.top+o),null!=e.left&&(p.left=e.left-a.left+s),"using"in e?e.using.call(t,p):u.css(p)}},J.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){J.offset.setOffset(this,t,e)});var e,i,n=this[0],s={top:0,left:0},r=n&&n.ownerDocument;if(r)return e=r.documentElement,J.contains(e,n)?(typeof n.getBoundingClientRect!==St&&(s=n.getBoundingClientRect()),i=F(r),{top:s.top+i.pageYOffset-e.clientTop,left:s.left+i.pageXOffset-e.clientLeft}):s},position:function(){if(this[0]){var t,e,i=this[0],n={top:0,left:0};return"fixed"===J.css(i,"position")?e=i.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),J.nodeName(t[0],"html")||(n=t.offset()),n.top+=J.css(t[0],"borderTopWidth",!0),n.left+=J.css(t[0],"borderLeftWidth",!0)),{top:e.top-n.top-J.css(i,"marginTop",!0),left:e.left-n.left-J.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||Le;t&&!J.nodeName(t,"html")&&"static"===J.css(t,"position");)t=t.offsetParent;return t||Le})}}),J.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,i){var n="pageYOffset"===i;J.fn[e]=function(s){return gt(this,function(e,s,r){var o=F(e);return void 0===r?o?o[i]:e[s]:void(o?o.scrollTo(n?t.pageXOffset:r,n?r:t.pageYOffset):e[s]=r)},e,s,arguments.length,null)}}),J.each(["top","left"],function(t,e){J.cssHooks[e]=_(Q.pixelPosition,function(t,i){return i?(i=x(t,e),Ht.test(i)?J(t).position()[e]+"px":i):void 0})}),J.each({Height:"height",Width:"width"},function(t,e){J.each({padding:"inner"+t,content:e,"":"outer"+t},function(i,n){J.fn[n]=function(n,s){var r=arguments.length&&(i||"boolean"!=typeof n),o=i||(n===!0||s===!0?"margin":"border");return gt(this,function(e,i,n){var s;return J.isWindow(e)?e.document.documentElement["client"+t]:9===e.nodeType?(s=e.documentElement,Math.max(e.body["scroll"+t],s["scroll"+t],e.body["offset"+t],s["offset"+t],s["client"+t])):void 0===n?J.css(e,i,o):J.style(e,i,n,o)},e,r?n:void 0,r,null)}})}),J.fn.size=function(){return this.length},J.fn.andSelf=J.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return J});var Oe=t.jQuery,ze=t.$;return J.noConflict=function(e){return t.$===J&&(t.$=ze),e&&t.jQuery===J&&(t.jQuery=Oe),J},typeof e===St&&(t.jQuery=t.$=J),J}),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(t){"use strict";var e=t.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher")}(jQuery),+function(t){"use strict";function e(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var i in e)if(void 0!==t.style[i])return{end:e[i]};return!1}t.fn.emulateTransitionEnd=function(e){var i=!1,n=this;t(this).one("bsTransitionEnd",function(){i=!0});var s=function(){i||t(n).trigger(t.support.transition.end)};return setTimeout(s,e),this},t(function(){t.support.transition=e(),t.support.transition&&(t.event.special.bsTransitionEnd={bindType:t.support.transition.end,delegateType:t.support.transition.end,handle:function(e){return t(e.target).is(this)?e.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var i=t(this),s=i.data("bs.alert");s||i.data("bs.alert",s=new n(this)),"string"==typeof e&&s[e].call(i)})}var i='[data-dismiss="alert"]',n=function(e){t(e).on("click",i,this.close)};n.VERSION="3.3.4",n.TRANSITION_DURATION=150,n.prototype.close=function(e){function i(){o.detach().trigger("closed.bs.alert").remove()}var s=t(this),r=s.attr("data-target");r||(r=s.attr("href"),r=r&&r.replace(/.*(?=#[^\s]*$)/,""));var o=t(r);e&&e.preventDefault(),o.length||(o=s.closest(".alert")),o.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(o.removeClass("in"),t.support.transition&&o.hasClass("fade")?o.one("bsTransitionEnd",i).emulateTransitionEnd(n.TRANSITION_DURATION):i())};var s=t.fn.alert;t.fn.alert=e,t.fn.alert.Constructor=n,t.fn.alert.noConflict=function(){return t.fn.alert=s,this},t(document).on("click.bs.alert.data-api",i,n.prototype.close)}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var n=t(this),s=n.data("bs.button"),r="object"==typeof e&&e;s||n.data("bs.button",s=new i(this,r)),"toggle"==e?s.toggle():e&&s.setState(e)})}var i=function(e,n){this.$element=t(e),this.options=t.extend({},i.DEFAULTS,n),this.isLoading=!1};i.VERSION="3.3.4",i.DEFAULTS={loadingText:"loading..."},i.prototype.setState=function(e){var i="disabled",n=this.$element,s=n.is("input")?"val":"html",r=n.data();e+="Text",null==r.resetText&&n.data("resetText",n[s]()),setTimeout(t.proxy(function(){n[s](null==r[e]?this.options[e]:r[e]),"loadingText"==e?(this.isLoading=!0,n.addClass(i).attr(i,i)):this.isLoading&&(this.isLoading=!1,n.removeClass(i).removeAttr(i))},this),0)},i.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var i=this.$element.find("input");"radio"==i.prop("type")&&(i.prop("checked")&&this.$element.hasClass("active")?t=!1:e.find(".active").removeClass("active")),t&&i.prop("checked",!this.$element.hasClass("active")).trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active"));t&&this.$element.toggleClass("active")};var n=t.fn.button;t.fn.button=e,t.fn.button.Constructor=i,t.fn.button.noConflict=function(){return t.fn.button=n,this},t(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(i){var n=t(i.target);n.hasClass("btn")||(n=n.closest(".btn")),e.call(n,"toggle"),i.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(e){t(e.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(e.type))})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var n=t(this),s=n.data("bs.carousel"),r=t.extend({},i.DEFAULTS,n.data(),"object"==typeof e&&e),o="string"==typeof e?e:r.slide;s||n.data("bs.carousel",s=new i(this,r)),"number"==typeof e?s.to(e):o?s[o]():r.interval&&s.pause().cycle()})}var i=function(e,i){this.$element=t(e),this.$indicators=this.$element.find(".carousel-indicators"),this.options=i,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",t.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",t.proxy(this.pause,this)).on("mouseleave.bs.carousel",t.proxy(this.cycle,this))};i.VERSION="3.3.4",i.TRANSITION_DURATION=600,i.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},i.prototype.keydown=function(t){if(!/input|textarea/i.test(t.target.tagName)){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()}},i.prototype.cycle=function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(t.proxy(this.next,this),this.options.interval)),this},i.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},i.prototype.getItemForDirection=function(t,e){var i=this.getItemIndex(e),n="prev"==t&&0===i||"next"==t&&i==this.$items.length-1;if(n&&!this.options.wrap)return e;var s="prev"==t?-1:1,r=(i+s)%this.$items.length;return this.$items.eq(r)},i.prototype.to=function(t){var e=this,i=this.getItemIndex(this.$active=this.$element.find(".item.active"));return t>this.$items.length-1||0>t?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(t)}):i==t?this.pause().cycle():this.slide(t>i?"next":"prev",this.$items.eq(t))},i.prototype.pause=function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&t.support.transition&&(this.$element.trigger(t.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},i.prototype.next=function(){return this.sliding?void 0:this.slide("next")},i.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},i.prototype.slide=function(e,n){var s=this.$element.find(".item.active"),r=n||this.getItemForDirection(e,s),o=this.interval,a="next"==e?"left":"right",l=this;if(r.hasClass("active"))return this.sliding=!1;var c=r[0],d=t.Event("slide.bs.carousel",{relatedTarget:c,direction:a});if(this.$element.trigger(d),!d.isDefaultPrevented()){if(this.sliding=!0,o&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var u=t(this.$indicators.children()[this.getItemIndex(r)]);u&&u.addClass("active")}var p=t.Event("slid.bs.carousel",{relatedTarget:c,direction:a});return t.support.transition&&this.$element.hasClass("slide")?(r.addClass(e),r[0].offsetWidth,s.addClass(a),r.addClass(a),s.one("bsTransitionEnd",function(){r.removeClass([e,a].join(" ")).addClass("active"),s.removeClass(["active",a].join(" ")),l.sliding=!1,setTimeout(function(){l.$element.trigger(p)},0)}).emulateTransitionEnd(i.TRANSITION_DURATION)):(s.removeClass("active"),r.addClass("active"),this.sliding=!1,this.$element.trigger(p)),o&&this.cycle(),this}};var n=t.fn.carousel;t.fn.carousel=e,t.fn.carousel.Constructor=i,t.fn.carousel.noConflict=function(){return t.fn.carousel=n,this};var s=function(i){var n,s=t(this),r=t(s.attr("data-target")||(n=s.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,""));if(r.hasClass("carousel")){var o=t.extend({},r.data(),s.data()),a=s.attr("data-slide-to");a&&(o.interval=!1),e.call(r,o),a&&r.data("bs.carousel").to(a),i.preventDefault()}};t(document).on("click.bs.carousel.data-api","[data-slide]",s).on("click.bs.carousel.data-api","[data-slide-to]",s),t(window).on("load",function(){t('[data-ride="carousel"]').each(function(){var i=t(this);e.call(i,i.data())})})}(jQuery),+function(t){"use strict";function e(e){var i,n=e.attr("data-target")||(i=e.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"");return t(n)}function i(e){return this.each(function(){var i=t(this),s=i.data("bs.collapse"),r=t.extend({},n.DEFAULTS,i.data(),"object"==typeof e&&e);!s&&r.toggle&&/show|hide/.test(e)&&(r.toggle=!1),s||i.data("bs.collapse",s=new n(this,r)),"string"==typeof e&&s[e]()})}var n=function(e,i){this.$element=t(e),this.options=t.extend({},n.DEFAULTS,i),this.$trigger=t('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};n.VERSION="3.3.4",n.TRANSITION_DURATION=350,n.DEFAULTS={toggle:!0},n.prototype.dimension=function(){var t=this.$element.hasClass("width");return t?"width":"height"},n.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var e,s=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(s&&s.length&&(e=s.data("bs.collapse"),e&&e.transitioning))){var r=t.Event("show.bs.collapse");if(this.$element.trigger(r),!r.isDefaultPrevented()){s&&s.length&&(i.call(s,"hide"),e||s.data("bs.collapse",null));var o=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[o](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var a=function(){this.$element.removeClass("collapsing").addClass("collapse in")[o](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return a.call(this);var l=t.camelCase(["scroll",o].join("-"));this.$element.one("bsTransitionEnd",t.proxy(a,this)).emulateTransitionEnd(n.TRANSITION_DURATION)[o](this.$element[0][l])}}}},n.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var e=t.Event("hide.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){var i=this.dimension();this.$element[i](this.$element[i]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var s=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return t.support.transition?void this.$element[i](0).one("bsTransitionEnd",t.proxy(s,this)).emulateTransitionEnd(n.TRANSITION_DURATION):s.call(this)}}},n.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},n.prototype.getParent=function(){return t(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(t.proxy(function(i,n){var s=t(n);this.addAriaAndCollapsedClass(e(s),s)},this)).end()},n.prototype.addAriaAndCollapsedClass=function(t,e){var i=t.hasClass("in");t.attr("aria-expanded",i),e.toggleClass("collapsed",!i).attr("aria-expanded",i)};var s=t.fn.collapse;t.fn.collapse=i,t.fn.collapse.Constructor=n,t.fn.collapse.noConflict=function(){return t.fn.collapse=s,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(n){var s=t(this);s.attr("data-target")||n.preventDefault();var r=e(s),o=r.data("bs.collapse"),a=o?"toggle":s.data();i.call(r,a)})}(jQuery),+function(t){"use strict";function e(e){e&&3===e.which||(t(s).remove(),t(r).each(function(){var n=t(this),s=i(n),r={relatedTarget:this};s.hasClass("open")&&(s.trigger(e=t.Event("hide.bs.dropdown",r)),e.isDefaultPrevented()||(n.attr("aria-expanded","false"),s.removeClass("open").trigger("hidden.bs.dropdown",r)))}))}function i(e){var i=e.attr("data-target");i||(i=e.attr("href"),i=i&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,""));var n=i&&t(i);return n&&n.length?n:e.parent()}function n(e){return this.each(function(){var i=t(this),n=i.data("bs.dropdown");n||i.data("bs.dropdown",n=new o(this)),"string"==typeof e&&n[e].call(i)})}var s=".dropdown-backdrop",r='[data-toggle="dropdown"]',o=function(e){t(e).on("click.bs.dropdown",this.toggle)};o.VERSION="3.3.4",o.prototype.toggle=function(n){
  var s=t(this);if(!s.is(".disabled, :disabled")){var r=i(s),o=r.hasClass("open");if(e(),!o){"ontouchstart"in document.documentElement&&!r.closest(".navbar-nav").length&&t('<div class="dropdown-backdrop"/>').insertAfter(t(this)).on("click",e);var a={relatedTarget:this};if(r.trigger(n=t.Event("show.bs.dropdown",a)),n.isDefaultPrevented())return;s.trigger("focus").attr("aria-expanded","true"),r.toggleClass("open").trigger("shown.bs.dropdown",a)}return!1}},o.prototype.keydown=function(e){if(/(38|40|27|32)/.test(e.which)&&!/input|textarea/i.test(e.target.tagName)){var n=t(this);if(e.preventDefault(),e.stopPropagation(),!n.is(".disabled, :disabled")){var s=i(n),o=s.hasClass("open");if(!o&&27!=e.which||o&&27==e.which)return 27==e.which&&s.find(r).trigger("focus"),n.trigger("click");var a=" li:not(.disabled):visible a",l=s.find('[role="menu"]'+a+', [role="listbox"]'+a);if(l.length){var c=l.index(e.target);38==e.which&&c>0&&c--,40==e.which&&c<l.length-1&&c++,~c||(c=0),l.eq(c).trigger("focus")}}}};var a=t.fn.dropdown;t.fn.dropdown=n,t.fn.dropdown.Constructor=o,t.fn.dropdown.noConflict=function(){return t.fn.dropdown=a,this},t(document).on("click.bs.dropdown.data-api",e).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",r,o.prototype.toggle).on("keydown.bs.dropdown.data-api",r,o.prototype.keydown).on("keydown.bs.dropdown.data-api",'[role="menu"]',o.prototype.keydown).on("keydown.bs.dropdown.data-api",'[role="listbox"]',o.prototype.keydown)}(jQuery),+function(t){"use strict";function e(e,n){return this.each(function(){var s=t(this),r=s.data("bs.modal"),o=t.extend({},i.DEFAULTS,s.data(),"object"==typeof e&&e);r||s.data("bs.modal",r=new i(this,o)),"string"==typeof e?r[e](n):o.show&&r.show(n)})}var i=function(e,i){this.options=i,this.$body=t(document.body),this.$element=t(e),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,t.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};i.VERSION="3.3.4",i.TRANSITION_DURATION=300,i.BACKDROP_TRANSITION_DURATION=150,i.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},i.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},i.prototype.show=function(e){var n=this,s=t.Event("show.bs.modal",{relatedTarget:e});this.$element.trigger(s),this.isShown||s.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',t.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){n.$element.one("mouseup.dismiss.bs.modal",function(e){t(e.target).is(n.$element)&&(n.ignoreBackdropClick=!0)})}),this.backdrop(function(){var s=t.support.transition&&n.$element.hasClass("fade");n.$element.parent().length||n.$element.appendTo(n.$body),n.$element.show().scrollTop(0),n.adjustDialog(),s&&n.$element[0].offsetWidth,n.$element.addClass("in").attr("aria-hidden",!1),n.enforceFocus();var r=t.Event("shown.bs.modal",{relatedTarget:e});s?n.$dialog.one("bsTransitionEnd",function(){n.$element.trigger("focus").trigger(r)}).emulateTransitionEnd(i.TRANSITION_DURATION):n.$element.trigger("focus").trigger(r)}))},i.prototype.hide=function(e){e&&e.preventDefault(),e=t.Event("hide.bs.modal"),this.$element.trigger(e),this.isShown&&!e.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),t(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),t.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",t.proxy(this.hideModal,this)).emulateTransitionEnd(i.TRANSITION_DURATION):this.hideModal())},i.prototype.enforceFocus=function(){t(document).off("focusin.bs.modal").on("focusin.bs.modal",t.proxy(function(t){this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")},this))},i.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",t.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},i.prototype.resize=function(){this.isShown?t(window).on("resize.bs.modal",t.proxy(this.handleUpdate,this)):t(window).off("resize.bs.modal")},i.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.$body.removeClass("modal-open"),t.resetAdjustments(),t.resetScrollbar(),t.$element.trigger("hidden.bs.modal")})},i.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},i.prototype.backdrop=function(e){var n=this,s=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var r=t.support.transition&&s;if(this.$backdrop=t('<div class="modal-backdrop '+s+'" />').appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",t.proxy(function(t){return this.ignoreBackdropClick?void(this.ignoreBackdropClick=!1):void(t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide()))},this)),r&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!e)return;r?this.$backdrop.one("bsTransitionEnd",e).emulateTransitionEnd(i.BACKDROP_TRANSITION_DURATION):e()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var o=function(){n.removeBackdrop(),e&&e()};t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",o).emulateTransitionEnd(i.BACKDROP_TRANSITION_DURATION):o()}else e&&e()},i.prototype.handleUpdate=function(){this.adjustDialog()},i.prototype.adjustDialog=function(){var t=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},i.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},i.prototype.checkScrollbar=function(){var t=window.innerWidth;if(!t){var e=document.documentElement.getBoundingClientRect();t=e.right-Math.abs(e.left)}this.bodyIsOverflowing=document.body.clientWidth<t,this.scrollbarWidth=this.measureScrollbar()},i.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",t+this.scrollbarWidth)},i.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},i.prototype.measureScrollbar=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",this.$body.append(t);var e=t.offsetWidth-t.clientWidth;return this.$body[0].removeChild(t),e};var n=t.fn.modal;t.fn.modal=e,t.fn.modal.Constructor=i,t.fn.modal.noConflict=function(){return t.fn.modal=n,this},t(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(i){var n=t(this),s=n.attr("href"),r=t(n.attr("data-target")||s&&s.replace(/.*(?=#[^\s]+$)/,"")),o=r.data("bs.modal")?"toggle":t.extend({remote:!/#/.test(s)&&s},r.data(),n.data());n.is("a")&&i.preventDefault(),r.one("show.bs.modal",function(t){t.isDefaultPrevented()||r.one("hidden.bs.modal",function(){n.is(":visible")&&n.trigger("focus")})}),e.call(r,o,this)})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var n=t(this),s=n.data("bs.tooltip"),r="object"==typeof e&&e;(s||!/destroy|hide/.test(e))&&(s||n.data("bs.tooltip",s=new i(this,r)),"string"==typeof e&&s[e]())})}var i=function(t,e){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.init("tooltip",t,e)};i.VERSION="3.3.4",i.TRANSITION_DURATION=150,i.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},i.prototype.init=function(e,i,n){if(this.enabled=!0,this.type=e,this.$element=t(i),this.options=this.getOptions(n),this.$viewport=this.options.viewport&&t(this.options.viewport.selector||this.options.viewport),this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var s=this.options.trigger.split(" "),r=s.length;r--;){var o=s[r];if("click"==o)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=o){var a="hover"==o?"mouseenter":"focusin",l="hover"==o?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},i.prototype.getDefaults=function(){return i.DEFAULTS},i.prototype.getOptions=function(e){return e=t.extend({},this.getDefaults(),this.$element.data(),e),e.delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},i.prototype.getDelegateOptions=function(){var e={},i=this.getDefaults();return this._options&&t.each(this._options,function(t,n){i[t]!=n&&(e[t]=n)}),e},i.prototype.enter=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return i&&i.$tip&&i.$tip.is(":visible")?void(i.hoverState="in"):(i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),clearTimeout(i.timeout),i.hoverState="in",i.options.delay&&i.options.delay.show?void(i.timeout=setTimeout(function(){"in"==i.hoverState&&i.show()},i.options.delay.show)):i.show())},i.prototype.leave=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),clearTimeout(i.timeout),i.hoverState="out",i.options.delay&&i.options.delay.hide?void(i.timeout=setTimeout(function(){"out"==i.hoverState&&i.hide()},i.options.delay.hide)):i.hide()},i.prototype.show=function(){var e=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var n=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!n)return;var s=this,r=this.tip(),o=this.getUID(this.type);this.setContent(),r.attr("id",o),this.$element.attr("aria-describedby",o),this.options.animation&&r.addClass("fade");var a="function"==typeof this.options.placement?this.options.placement.call(this,r[0],this.$element[0]):this.options.placement,l=/\s?auto?\s?/i,c=l.test(a);c&&(a=a.replace(l,"")||"top"),r.detach().css({top:0,left:0,display:"block"}).addClass(a).data("bs."+this.type,this),this.options.container?r.appendTo(this.options.container):r.insertAfter(this.$element);var d=this.getPosition(),u=r[0].offsetWidth,p=r[0].offsetHeight;if(c){var h=a,f=this.options.container?t(this.options.container):this.$element.parent(),m=this.getPosition(f);a="bottom"==a&&d.bottom+p>m.bottom?"top":"top"==a&&d.top-p<m.top?"bottom":"right"==a&&d.right+u>m.width?"left":"left"==a&&d.left-u<m.left?"right":a,r.removeClass(h).addClass(a)}var g=this.getCalculatedOffset(a,d,u,p);this.applyPlacement(g,a);var v=function(){var t=s.hoverState;s.$element.trigger("shown.bs."+s.type),s.hoverState=null,"out"==t&&s.leave(s)};t.support.transition&&this.$tip.hasClass("fade")?r.one("bsTransitionEnd",v).emulateTransitionEnd(i.TRANSITION_DURATION):v()}},i.prototype.applyPlacement=function(e,i){var n=this.tip(),s=n[0].offsetWidth,r=n[0].offsetHeight,o=parseInt(n.css("margin-top"),10),a=parseInt(n.css("margin-left"),10);isNaN(o)&&(o=0),isNaN(a)&&(a=0),e.top=e.top+o,e.left=e.left+a,t.offset.setOffset(n[0],t.extend({using:function(t){n.css({top:Math.round(t.top),left:Math.round(t.left)})}},e),0),n.addClass("in");var l=n[0].offsetWidth,c=n[0].offsetHeight;"top"==i&&c!=r&&(e.top=e.top+r-c);var d=this.getViewportAdjustedDelta(i,e,l,c);d.left?e.left+=d.left:e.top+=d.top;var u=/top|bottom/.test(i),p=u?2*d.left-s+l:2*d.top-r+c,h=u?"offsetWidth":"offsetHeight";n.offset(e),this.replaceArrow(p,n[0][h],u)},i.prototype.replaceArrow=function(t,e,i){this.arrow().css(i?"left":"top",50*(1-t/e)+"%").css(i?"top":"left","")},i.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();t.find(".tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("fade in top bottom left right")},i.prototype.hide=function(e){function n(){"in"!=s.hoverState&&r.detach(),s.$element.removeAttr("aria-describedby").trigger("hidden.bs."+s.type),e&&e()}var s=this,r=t(this.$tip),o=t.Event("hide.bs."+this.type);return this.$element.trigger(o),o.isDefaultPrevented()?void 0:(r.removeClass("in"),t.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",n).emulateTransitionEnd(i.TRANSITION_DURATION):n(),this.hoverState=null,this)},i.prototype.fixTitle=function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("data-original-title"))&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},i.prototype.hasContent=function(){return this.getTitle()},i.prototype.getPosition=function(e){e=e||this.$element;var i=e[0],n="BODY"==i.tagName,s=i.getBoundingClientRect();null==s.width&&(s=t.extend({},s,{width:s.right-s.left,height:s.bottom-s.top}));var r=n?{top:0,left:0}:e.offset(),o={scroll:n?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop()},a=n?{width:t(window).width(),height:t(window).height()}:null;return t.extend({},s,o,a,r)},i.prototype.getCalculatedOffset=function(t,e,i,n){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-i/2}:"top"==t?{top:e.top-n,left:e.left+e.width/2-i/2}:"left"==t?{top:e.top+e.height/2-n/2,left:e.left-i}:{top:e.top+e.height/2-n/2,left:e.left+e.width}},i.prototype.getViewportAdjustedDelta=function(t,e,i,n){var s={top:0,left:0};if(!this.$viewport)return s;var r=this.options.viewport&&this.options.viewport.padding||0,o=this.getPosition(this.$viewport);if(/right|left/.test(t)){var a=e.top-r-o.scroll,l=e.top+r-o.scroll+n;a<o.top?s.top=o.top-a:l>o.top+o.height&&(s.top=o.top+o.height-l)}else{var c=e.left-r,d=e.left+r+i;c<o.left?s.left=o.left-c:d>o.width&&(s.left=o.left+o.width-d)}return s},i.prototype.getTitle=function(){var t,e=this.$element,i=this.options;return t=e.attr("data-original-title")||("function"==typeof i.title?i.title.call(e[0]):i.title)},i.prototype.getUID=function(t){do t+=~~(1e6*Math.random());while(document.getElementById(t));return t},i.prototype.tip=function(){return this.$tip=this.$tip||t(this.options.template)},i.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},i.prototype.enable=function(){this.enabled=!0},i.prototype.disable=function(){this.enabled=!1},i.prototype.toggleEnabled=function(){this.enabled=!this.enabled},i.prototype.toggle=function(e){var i=this;e&&(i=t(e.currentTarget).data("bs."+this.type),i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i))),i.tip().hasClass("in")?i.leave(i):i.enter(i)},i.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type)})};var n=t.fn.tooltip;t.fn.tooltip=e,t.fn.tooltip.Constructor=i,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=n,this}}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var n=t(this),s=n.data("bs.popover"),r="object"==typeof e&&e;(s||!/destroy|hide/.test(e))&&(s||n.data("bs.popover",s=new i(this,r)),"string"==typeof e&&s[e]())})}var i=function(t,e){this.init("popover",t,e)};if(!t.fn.tooltip)throw new Error("Popover requires tooltip.js");i.VERSION="3.3.4",i.DEFAULTS=t.extend({},t.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),i.prototype=t.extend({},t.fn.tooltip.Constructor.prototype),i.prototype.constructor=i,i.prototype.getDefaults=function(){return i.DEFAULTS},i.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),i=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof i?"html":"append":"text"](i),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},i.prototype.hasContent=function(){return this.getTitle()||this.getContent()},i.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},i.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var n=t.fn.popover;t.fn.popover=e,t.fn.popover.Constructor=i,t.fn.popover.noConflict=function(){return t.fn.popover=n,this}}(jQuery),+function(t){"use strict";function e(i,n){this.$body=t(document.body),this.$scrollElement=t(t(i).is(document.body)?window:i),this.options=t.extend({},e.DEFAULTS,n),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",t.proxy(this.process,this)),this.refresh(),this.process()}function i(i){return this.each(function(){var n=t(this),s=n.data("bs.scrollspy"),r="object"==typeof i&&i;s||n.data("bs.scrollspy",s=new e(this,r)),"string"==typeof i&&s[i]()})}e.VERSION="3.3.4",e.DEFAULTS={offset:10},e.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},e.prototype.refresh=function(){var e=this,i="offset",n=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),t.isWindow(this.$scrollElement[0])||(i="position",n=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var e=t(this),s=e.data("target")||e.attr("href"),r=/^#./.test(s)&&t(s);return r&&r.length&&r.is(":visible")&&[[r[i]().top+n,s]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){e.offsets.push(this[0]),e.targets.push(this[1])})},e.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,i=this.getScrollHeight(),n=this.options.offset+i-this.$scrollElement.height(),s=this.offsets,r=this.targets,o=this.activeTarget;if(this.scrollHeight!=i&&this.refresh(),e>=n)return o!=(t=r[r.length-1])&&this.activate(t);if(o&&e<s[0])return this.activeTarget=null,this.clear();for(t=s.length;t--;)o!=r[t]&&e>=s[t]&&(void 0===s[t+1]||e<s[t+1])&&this.activate(r[t])},e.prototype.activate=function(e){this.activeTarget=e,this.clear();var i=this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]',n=t(i).parents("li").addClass("active");n.parent(".dropdown-menu").length&&(n=n.closest("li.dropdown").addClass("active")),n.trigger("activate.bs.scrollspy")},e.prototype.clear=function(){t(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var n=t.fn.scrollspy;t.fn.scrollspy=i,t.fn.scrollspy.Constructor=e,t.fn.scrollspy.noConflict=function(){return t.fn.scrollspy=n,this},t(window).on("load.bs.scrollspy.data-api",function(){t('[data-spy="scroll"]').each(function(){var e=t(this);i.call(e,e.data())})})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var n=t(this),s=n.data("bs.tab");s||n.data("bs.tab",s=new i(this)),"string"==typeof e&&s[e]()})}var i=function(e){this.element=t(e)};i.VERSION="3.3.4",i.TRANSITION_DURATION=150,i.prototype.show=function(){var e=this.element,i=e.closest("ul:not(.dropdown-menu)"),n=e.data("target");if(n||(n=e.attr("href"),n=n&&n.replace(/.*(?=#[^\s]*$)/,"")),!e.parent("li").hasClass("active")){var s=i.find(".active:last a"),r=t.Event("hide.bs.tab",{relatedTarget:e[0]}),o=t.Event("show.bs.tab",{relatedTarget:s[0]});if(s.trigger(r),e.trigger(o),!o.isDefaultPrevented()&&!r.isDefaultPrevented()){var a=t(n);this.activate(e.closest("li"),i),this.activate(a,a.parent(),function(){s.trigger({type:"hidden.bs.tab",relatedTarget:e[0]}),e.trigger({type:"shown.bs.tab",relatedTarget:s[0]})})}}},i.prototype.activate=function(e,n,s){function r(){o.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),e.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),a?(e[0].offsetWidth,e.addClass("in")):e.removeClass("fade"),e.parent(".dropdown-menu").length&&e.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),s&&s()}var o=n.find("> .active"),a=s&&t.support.transition&&(o.length&&o.hasClass("fade")||!!n.find("> .fade").length);o.length&&a?o.one("bsTransitionEnd",r).emulateTransitionEnd(i.TRANSITION_DURATION):r(),o.removeClass("in")};var n=t.fn.tab;t.fn.tab=e,t.fn.tab.Constructor=i,t.fn.tab.noConflict=function(){return t.fn.tab=n,this};var s=function(i){i.preventDefault(),e.call(t(this),"show")};t(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',s).on("click.bs.tab.data-api",'[data-toggle="pill"]',s)}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var n=t(this),s=n.data("bs.affix"),r="object"==typeof e&&e;s||n.data("bs.affix",s=new i(this,r)),"string"==typeof e&&s[e]()})}var i=function(e,n){this.options=t.extend({},i.DEFAULTS,n),this.$target=t(this.options.target).on("scroll.bs.affix.data-api",t.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",t.proxy(this.checkPositionWithEventLoop,this)),this.$element=t(e),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};i.VERSION="3.3.4",i.RESET="affix affix-top affix-bottom",i.DEFAULTS={offset:0,target:window},i.prototype.getState=function(t,e,i,n){var s=this.$target.scrollTop(),r=this.$element.offset(),o=this.$target.height();if(null!=i&&"top"==this.affixed)return i>s?"top":!1;if("bottom"==this.affixed)return null!=i?s+this.unpin<=r.top?!1:"bottom":t-n>=s+o?!1:"bottom";var a=null==this.affixed,l=a?s:r.top,c=a?o:e;return null!=i&&i>=s?"top":null!=n&&l+c>=t-n?"bottom":!1},i.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(i.RESET).addClass("affix");var t=this.$target.scrollTop(),e=this.$element.offset();return this.pinnedOffset=e.top-t},i.prototype.checkPositionWithEventLoop=function(){setTimeout(t.proxy(this.checkPosition,this),1)},i.prototype.checkPosition=function(){if(this.$element.is(":visible")){var e=this.$element.height(),n=this.options.offset,s=n.top,r=n.bottom,o=t(document.body).height();"object"!=typeof n&&(r=s=n),"function"==typeof s&&(s=n.top(this.$element)),"function"==typeof r&&(r=n.bottom(this.$element));var a=this.getState(o,e,s,r);if(this.affixed!=a){null!=this.unpin&&this.$element.css("top","");var l="affix"+(a?"-"+a:""),c=t.Event(l+".bs.affix");if(this.$element.trigger(c),c.isDefaultPrevented())return;this.affixed=a,this.unpin="bottom"==a?this.getPinnedOffset():null,this.$element.removeClass(i.RESET).addClass(l).trigger(l.replace("affix","affixed")+".bs.affix")}"bottom"==a&&this.$element.offset({top:o-e-r})}};var n=t.fn.affix;t.fn.affix=e,t.fn.affix.Constructor=i,t.fn.affix.noConflict=function(){return t.fn.affix=n,this},t(window).on("load",function(){t('[data-spy="affix"]').each(function(){var i=t(this),n=i.data();n.offset=n.offset||{},null!=n.offsetBottom&&(n.offset.bottom=n.offsetBottom),null!=n.offsetTop&&(n.offset.top=n.offsetTop),e.call(i,n)})})}(jQuery),window.Modernizr=function(t,e,i){function n(t){w.cssText=t}function s(t,e){return n(C.join(t+";")+(e||""))}function r(t,e){return typeof t===e}function o(t,e){return!!~(""+t).indexOf(e)}function a(t,e){for(var n in t){var s=t[n];if(!o(s,"-")&&w[s]!==i)return"pfx"==e?s:!0}return!1}function l(t,e,n){for(var s in t){var o=e[t[s]];if(o!==i)return n===!1?t[s]:r(o,"function")?o.bind(n||e):o}return!1}function c(t,e,i){var n=t.charAt(0).toUpperCase()+t.slice(1),s=(t+" "+S.join(n+" ")+n).split(" ");return r(e,"string")||r(e,"undefined")?a(s,e):(s=(t+" "+$.join(n+" ")+n).split(" "),l(s,e,i))}function d(){f.input=function(i){for(var n=0,s=i.length;s>n;n++)D[i[n]]=!!(i[n]in b);return D.list&&(D.list=!(!e.createElement("datalist")||!t.HTMLDataListElement)),D}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" ")),f.inputtypes=function(t){for(var n,s,r,o=0,a=t.length;a>o;o++)b.setAttribute("type",s=t[o]),n="text"!==b.type,n&&(b.value=x,b.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(s)&&b.style.WebkitAppearance!==i?(g.appendChild(b),r=e.defaultView,n=r.getComputedStyle&&"textfield"!==r.getComputedStyle(b,null).WebkitAppearance&&0!==b.offsetHeight,g.removeChild(b)):/^(search|tel)$/.test(s)||(n=/^(url|email)$/.test(s)?b.checkValidity&&b.checkValidity()===!1:b.value!=x)),I[t[o]]=!!n;return I}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var u,p,h="2.8.3",f={},m=!0,g=e.documentElement,v="modernizr",y=e.createElement(v),w=y.style,b=e.createElement("input"),x=":)",_={}.toString,C=" -webkit- -moz- -o- -ms- ".split(" "),T="Webkit Moz O ms",S=T.split(" "),$=T.toLowerCase().split(" "),k={svg:"http://www.w3.org/2000/svg"},E={},I={},D={},A=[],M=A.slice,N=function(t,i,n,s){var r,o,a,l,c=e.createElement("div"),d=e.body,u=d||e.createElement("body");if(parseInt(n,10))for(;n--;)a=e.createElement("div"),a.id=s?s[n]:v+(n+1),c.appendChild(a);return r=["&#173;",'<style id="s',v,'">',t,"</style>"].join(""),c.id=v,(d?c:u).innerHTML+=r,u.appendChild(c),d||(u.style.background="",u.style.overflow="hidden",l=g.style.overflow,g.style.overflow="hidden",g.appendChild(u)),o=i(c,t),d?c.parentNode.removeChild(c):(u.parentNode.removeChild(u),g.style.overflow=l),!!o},P=function(e){var i=t.matchMedia||t.msMatchMedia;if(i)return i(e)&&i(e).matches||!1;var n;return N("@media "+e+" { #"+v+" { position: absolute; } }",function(e){n="absolute"==(t.getComputedStyle?getComputedStyle(e,null):e.currentStyle).position}),n},L=function(){function t(t,s){s=s||e.createElement(n[t]||"div"),t="on"+t;var o=t in s;return o||(s.setAttribute||(s=e.createElement("div")),s.setAttribute&&s.removeAttribute&&(s.setAttribute(t,""),o=r(s[t],"function"),r(s[t],"undefined")||(s[t]=i),s.removeAttribute(t))),s=null,o}var n={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return t}(),O={}.hasOwnProperty;p=r(O,"undefined")||r(O.call,"undefined")?function(t,e){return e in t&&r(t.constructor.prototype[e],"undefined")}:function(t,e){return O.call(t,e)},Function.prototype.bind||(Function.prototype.bind=function(t){var e=this;if("function"!=typeof e)throw new TypeError;var i=M.call(arguments,1),n=function(){if(this instanceof n){var s=function(){};s.prototype=e.prototype;var r=new s,o=e.apply(r,i.concat(M.call(arguments)));return Object(o)===o?o:r}return e.apply(t,i.concat(M.call(arguments)))};return n}),E.flexbox=function(){return c("flexWrap")},E.flexboxlegacy=function(){return c("boxDirection")},E.canvas=function(){var t=e.createElement("canvas");return!(!t.getContext||!t.getContext("2d"))},E.canvastext=function(){return!(!f.canvas||!r(e.createElement("canvas").getContext("2d").fillText,"function"))},E.webgl=function(){return!!t.WebGLRenderingContext},E.touch=function(){var i;return"ontouchstart"in t||t.DocumentTouch&&e instanceof DocumentTouch?i=!0:N(["@media (",C.join("touch-enabled),("),v,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(t){i=9===t.offsetTop}),i},E.geolocation=function(){return"geolocation"in navigator},E.postmessage=function(){return!!t.postMessage},E.websqldatabase=function(){return!!t.openDatabase},E.indexedDB=function(){return!!c("indexedDB",t)},E.hashchange=function(){return L("hashchange",t)&&(e.documentMode===i||e.documentMode>7)},E.history=function(){return!(!t.history||!history.pushState)},E.draganddrop=function(){var t=e.createElement("div");return"draggable"in t||"ondragstart"in t&&"ondrop"in t},E.websockets=function(){return"WebSocket"in t||"MozWebSocket"in t},E.rgba=function(){return n("background-color:rgba(150,255,150,.5)"),o(w.backgroundColor,"rgba")},E.hsla=function(){return n("background-color:hsla(120,40%,100%,.5)"),o(w.backgroundColor,"rgba")||o(w.backgroundColor,"hsla")},E.multiplebgs=function(){return n("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(w.background)},E.backgroundsize=function(){return c("backgroundSize")},E.borderimage=function(){return c("borderImage")},E.borderradius=function(){return c("borderRadius")},E.boxshadow=function(){return c("boxShadow")},E.textshadow=function(){return""===e.createElement("div").style.textShadow},E.opacity=function(){return s("opacity:.55"),/^0.55$/.test(w.opacity)},E.cssanimations=function(){return c("animationName")},E.csscolumns=function(){return c("columnCount")},E.cssgradients=function(){var t="background-image:",e="gradient(linear,left top,right bottom,from(#9f9),to(white));",i="linear-gradient(left top,#9f9, white);";return n((t+"-webkit- ".split(" ").join(e+t)+C.join(i+t)).slice(0,-t.length)),o(w.backgroundImage,"gradient")},E.cssreflections=function(){return c("boxReflect")},E.csstransforms=function(){return!!c("transform")},E.csstransforms3d=function(){var t=!!c("perspective");return t&&"webkitPerspective"in g.style&&N("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(e,i){t=9===e.offsetLeft&&3===e.offsetHeight}),t},E.csstransitions=function(){return c("transition")},E.fontface=function(){var t;return N('@font-face {font-family:"font";src:url("https://")}',function(i,n){var s=e.getElementById("smodernizr"),r=s.sheet||s.styleSheet,o=r?r.cssRules&&r.cssRules[0]?r.cssRules[0].cssText:r.cssText||"":"";t=/src/i.test(o)&&0===o.indexOf(n.split(" ")[0])}),t},E.generatedcontent=function(){var t;return N(["#",v,"{font:0/0 a}#",v,':after{content:"',x,'";visibility:hidden;font:3px/1 a}'].join(""),function(e){t=e.offsetHeight>=3}),t},E.video=function(){var t=e.createElement("video"),i=!1;try{(i=!!t.canPlayType)&&(i=new Boolean(i),i.ogg=t.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),i.h264=t.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),i.webm=t.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""))}catch(n){}return i},E.audio=function(){var t=e.createElement("audio"),i=!1;try{(i=!!t.canPlayType)&&(i=new Boolean(i),i.ogg=t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),i.mp3=t.canPlayType("audio/mpeg;").replace(/^no$/,""),i.wav=t.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),i.m4a=(t.canPlayType("audio/x-m4a;")||t.canPlayType("audio/aac;")).replace(/^no$/,""))}catch(n){}return i},E.localstorage=function(){try{return localStorage.setItem(v,v),localStorage.removeItem(v),!0}catch(t){return!1}},E.sessionstorage=function(){try{return sessionStorage.setItem(v,v),sessionStorage.removeItem(v),!0}catch(t){return!1}},E.webworkers=function(){return!!t.Worker},E.applicationcache=function(){return!!t.applicationCache},E.svg=function(){return!!e.createElementNS&&!!e.createElementNS(k.svg,"svg").createSVGRect},E.inlinesvg=function(){var t=e.createElement("div");return t.innerHTML="<svg/>",(t.firstChild&&t.firstChild.namespaceURI)==k.svg},E.smil=function(){return!!e.createElementNS&&/SVGAnimate/.test(_.call(e.createElementNS(k.svg,"animate")))},E.svgclippaths=function(){return!!e.createElementNS&&/SVGClipPath/.test(_.call(e.createElementNS(k.svg,"clipPath")))};for(var z in E)p(E,z)&&(u=z.toLowerCase(),
  f[u]=E[z](),A.push((f[u]?"":"no-")+u));return f.input||d(),f.addTest=function(t,e){if("object"==typeof t)for(var n in t)p(t,n)&&f.addTest(n,t[n]);else{if(t=t.toLowerCase(),f[t]!==i)return f;e="function"==typeof e?e():e,"undefined"!=typeof m&&m&&(g.className+=" "+(e?"":"no-")+t),f[t]=e}return f},n(""),y=b=null,function(t,e){function i(t,e){var i=t.createElement("p"),n=t.getElementsByTagName("head")[0]||t.documentElement;return i.innerHTML="x<style>"+e+"</style>",n.insertBefore(i.lastChild,n.firstChild)}function n(){var t=y.elements;return"string"==typeof t?t.split(" "):t}function s(t){var e=v[t[m]];return e||(e={},g++,t[m]=g,v[g]=e),e}function r(t,i,n){if(i||(i=e),d)return i.createElement(t);n||(n=s(i));var r;return r=n.cache[t]?n.cache[t].cloneNode():f.test(t)?(n.cache[t]=n.createElem(t)).cloneNode():n.createElem(t),!r.canHaveChildren||h.test(t)||r.tagUrn?r:n.frag.appendChild(r)}function o(t,i){if(t||(t=e),d)return t.createDocumentFragment();i=i||s(t);for(var r=i.frag.cloneNode(),o=0,a=n(),l=a.length;l>o;o++)r.createElement(a[o]);return r}function a(t,e){e.cache||(e.cache={},e.createElem=t.createElement,e.createFrag=t.createDocumentFragment,e.frag=e.createFrag()),t.createElement=function(i){return y.shivMethods?r(i,t,e):e.createElem(i)},t.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+n().join().replace(/[\w\-]+/g,function(t){return e.createElem(t),e.frag.createElement(t),'c("'+t+'")'})+");return n}")(y,e.frag)}function l(t){t||(t=e);var n=s(t);return!y.shivCSS||c||n.hasCSS||(n.hasCSS=!!i(t,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),d||a(t,n),t}var c,d,u="3.7.0",p=t.html5||{},h=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,f=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,m="_html5shiv",g=0,v={};!function(){try{var t=e.createElement("a");t.innerHTML="<xyz></xyz>",c="hidden"in t,d=1==t.childNodes.length||function(){e.createElement("a");var t=e.createDocumentFragment();return"undefined"==typeof t.cloneNode||"undefined"==typeof t.createDocumentFragment||"undefined"==typeof t.createElement}()}catch(i){c=!0,d=!0}}();var y={elements:p.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:u,shivCSS:p.shivCSS!==!1,supportsUnknownElements:d,shivMethods:p.shivMethods!==!1,type:"default",shivDocument:l,createElement:r,createDocumentFragment:o};t.html5=y,l(e)}(this,e),f._version=h,f._prefixes=C,f._domPrefixes=$,f._cssomPrefixes=S,f.mq=P,f.hasEvent=L,f.testProp=function(t){return a([t])},f.testAllProps=c,f.testStyles=N,f.prefixed=function(t,e,i){return e?c(t,e,i):c(t,"pfx")},g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(m?" js "+A.join(" "):""),f}(this,this.document),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(t,e){"use strict";function i(t,e){this.container=t,this.options=e,this.init()}function n(e,i){this.widget=e,this.options=t.extend({},i),this.detectService(),this.service&&this.init()}function s(t){function e(t,e){return e.toUpper()}var i={},n=t.data();for(var s in n){var r=n[s];"yes"===r?r=!0:"no"===r&&(r=!1),i[s.replace(/-(\w)/g,e)]=r}return i}function r(t,e){return o(t,e,encodeURIComponent)}function o(t,e,i){return t.replace(/\{([^\}]+)\}/g,function(t,n){return n in e?i?i(e[n]):e[n]:t})}function a(t,e){var i=u+t;return i+" "+i+"_"+e}function l(e,i){function n(o){"keydown"===o.type&&27!==o.which||t(o.target).closest(e).length||(e.removeClass(p),s.off(r,n),t.isFunction(i)&&i())}var s=t(document),r="click touchstart keydown";s.on(r,n)}function c(t){var e=10;if(document.documentElement.getBoundingClientRect){var i=parseInt(t.css("left"),10),n=parseInt(t.css("top"),10),s=t[0].getBoundingClientRect();s.left<e?t.css("left",e-s.left+i):s.right>window.innerWidth-e&&t.css("left",window.innerWidth-s.right-e+i),s.top<e?t.css("top",e-s.top+n):s.bottom>window.innerHeight-e&&t.css("top",window.innerHeight-s.bottom-e+n)}t.addClass(p)}var d="social-likes",u=d+"__",p=d+"_opened",h="https:"===location.protocol?"https:":"http:",f="https:"===h,m={facebook:{counterUrl:"https://graph.facebook.com/fql?q=SELECT+total_count+FROM+link_stat+WHERE+url%3D%22{url}%22&callback=?",convertNumber:function(t){return t.data[0].total_count},popupUrl:"https://www.facebook.com/sharer/sharer.php?u={url}",popupWidth:600,popupHeight:500},twitter:{counterUrl:"https://cdn.api.twitter.com/1/urls/count.json?url={url}&callback=?",convertNumber:function(t){return t.count},popupUrl:"https://twitter.com/intent/tweet?url={url}&text={title}",popupWidth:600,popupHeight:450,click:function(){return/[\.\?:\-–—]\s*$/.test(this.options.title)||(this.options.title+=":"),!0}},mailru:{counterUrl:h+"//connect.mail.ru/share_count?url_list={url}&callback=1&func=?",convertNumber:function(t){for(var e in t)if(t.hasOwnProperty(e))return t[e].shares},popupUrl:h+"//connect.mail.ru/share?share_url={url}&title={title}",popupWidth:550,popupHeight:360},vkontakte:{counterUrl:"https://vk.com/share.php?act=count&url={url}&index={index}",counter:function(e,i){var n=m.vkontakte;n._||(n._=[],window.VK||(window.VK={}),window.VK.Share={count:function(t,e){n._[t].resolve(e)}});var s=n._.length;n._.push(i),t.getScript(r(e,{index:s})).fail(i.reject)},popupUrl:h+"//vk.com/share.php?url={url}&title={title}",popupWidth:550,popupHeight:330},odnoklassniki:{counterUrl:f?e:"http://connect.ok.ru/dk?st.cmd=extLike&ref={url}&uid={index}",counter:function(e,i){var n=m.odnoklassniki;n._||(n._=[],window.ODKL||(window.ODKL={}),window.ODKL.updateCount=function(t,e){n._[t].resolve(e)});var s=n._.length;n._.push(i),t.getScript(r(e,{index:s})).fail(i.reject)},popupUrl:"http://connect.ok.ru/dk?st.cmd=WidgetSharePreview&service=odnoklassniki&st.shareUrl={url}",popupWidth:550,popupHeight:360},plusone:{counterUrl:f?e:"http://share.yandex.ru/gpp.xml?url={url}",counter:function(e,i){var n=m.plusone;return n._?void i.reject():(window.services||(window.services={}),window.services.gplus={cb:function(t){"string"==typeof t&&(t=t.replace(/\D/g,"")),n._.resolve(parseInt(t,10))}},n._=i,void t.getScript(r(e)).fail(i.reject))},popupUrl:"https://plus.google.com/share?url={url}",popupWidth:700,popupHeight:500},pinterest:{counterUrl:h+"//api.pinterest.com/v1/urls/count.json?url={url}&callback=?",convertNumber:function(t){return t.count},popupUrl:h+"//pinterest.com/pin/create/button/?url={url}&description={title}",popupWidth:630,popupHeight:270}},g={promises:{},fetch:function(e,i,n){g.promises[e]||(g.promises[e]={});var s=g.promises[e];if(!n.forceUpdate&&s[i])return s[i];var o=t.extend({},m[e],n),a=t.Deferred(),l=o.counterUrl&&r(o.counterUrl,{url:i});return l&&t.isFunction(o.counter)?o.counter(l,a):o.counterUrl?t.getJSON(l).done(function(e){try{var i=e;t.isFunction(o.convertNumber)&&(i=o.convertNumber(e)),a.resolve(i)}catch(n){a.reject()}}).fail(a.reject):a.reject(),s[i]=a.promise(),s[i]}};t.fn.socialLikes=function(e){return this.each(function(){var n=t(this),r=n.data(d);r?t.isPlainObject(e)&&r.update(e):(r=new i(n,t.extend({},t.fn.socialLikes.defaults,e,s(n))),n.data(d,r))})},t.fn.socialLikes.defaults={url:window.location.href.replace(window.location.hash,""),title:document.title,counters:!0,zeroes:!1,wait:500,timeout:1e4,popupCheckInterval:500,singleTitle:"Share"},i.prototype={init:function(){this.container.addClass(d),this.single=this.container.hasClass(d+"_single"),this.initUserButtons(),this.countersLeft=0,this.number=0,this.container.on("counter."+d,t.proxy(this.updateCounter,this));var e=this.container.children();this.makeSingleButton(),this.buttons=[],e.each(t.proxy(function(e,i){var s=new n(t(i),this.options);this.buttons.push(s),s.options.counterUrl&&this.countersLeft++},this)),this.options.counters?(this.timer=setTimeout(t.proxy(this.appear,this),this.options.wait),this.timeout=setTimeout(t.proxy(this.ready,this,!0),this.options.timeout)):this.appear()},initUserButtons:function(){!this.userButtonInited&&window.socialLikesButtons&&t.extend(!0,m,socialLikesButtons),this.userButtonInited=!0},makeSingleButton:function(){if(this.single){var e=this.container;e.addClass(d+"_vertical"),e.wrap(t("<div>",{"class":d+"_single-w"})),e.wrapInner(t("<div>",{"class":d+"__single-container"}));var i=e.parent(),n=t("<div>",{"class":a("widget","single")}),s=t(o('<div class="{buttonCls}"><span class="{iconCls}"></span>{title}</div>',{buttonCls:a("button","single"),iconCls:a("icon","single"),title:this.options.singleTitle}));n.append(s),i.append(n),n.on("click",function(){var t=d+"__widget_active";return n.toggleClass(t),n.hasClass(t)?(e.css({left:-(e.width()-n.width())/2,top:-e.height()}),c(e),l(e,function(){n.removeClass(t)})):e.removeClass(p),!1}),this.widget=n}},update:function(e){if(e.forceUpdate||e.url!==this.options.url){this.number=0,this.countersLeft=this.buttons.length,this.widget&&this.widget.find("."+d+"__counter").remove(),t.extend(this.options,e);for(var i=0;i<this.buttons.length;i++)this.buttons[i].update(e)}},updateCounter:function(t,e,i){i&&(this.number+=i,this.single&&this.getCounterElem().text(this.number)),this.countersLeft--,0===this.countersLeft&&(this.appear(),this.ready())},appear:function(){this.container.addClass(d+"_visible")},ready:function(t){this.timeout&&clearTimeout(this.timeout),this.container.addClass(d+"_ready"),t||this.container.trigger("ready."+d,this.number)},getCounterElem:function(){var e=this.widget.find("."+u+"counter_single");return e.length||(e=t("<span>",{"class":a("counter","single")}),this.widget.append(e)),e}},n.prototype={init:function(){this.detectParams(),this.initHtml(),setTimeout(t.proxy(this.initCounter,this),0)},update:function(e){t.extend(this.options,{forceUpdate:!1},e),this.widget.find("."+d+"__counter").remove(),this.initCounter()},detectService:function(){var e=this.widget.data("service");if(!e){for(var i=this.widget[0],n=i.classList||i.className.split(" "),s=0;s<n.length;s++){var r=n[s];if(m[r]){e=r;break}}if(!e)return}this.service=e,t.extend(this.options,m[e])},detectParams:function(){var t=this.widget.data();if(t.counter){var e=parseInt(t.counter,10);isNaN(e)?this.options.counterUrl=t.counter:this.options.counterNumber=e}t.title&&(this.options.title=t.title),t.url&&(this.options.url=t.url)},initHtml:function(){var e=this.options,i=this.widget,n=i.find("a");n.length&&this.cloneDataAttrs(n,i);var s=t("<span>",{"class":this.getElementClassNames("button"),text:i.text()});if(e.clickUrl){var o=r(e.clickUrl,{url:e.url,title:e.title}),a=t("<a>",{href:o});this.cloneDataAttrs(i,a),i.replaceWith(a),this.widget=i=a}else i.on("click",t.proxy(this.click,this));i.removeClass(this.service),i.addClass(this.getElementClassNames("widget")),s.prepend(t("<span>",{"class":this.getElementClassNames("icon")})),i.empty().append(s),this.button=s},initCounter:function(){if(this.options.counters)if(this.options.counterNumber)this.updateCounter(this.options.counterNumber);else{var e={counterUrl:this.options.counterUrl,forceUpdate:this.options.forceUpdate};g.fetch(this.service,this.options.url,e).always(t.proxy(this.updateCounter,this))}},cloneDataAttrs:function(t,e){var i=t.data();for(var n in i)i.hasOwnProperty(n)&&e.data(n,i[n])},getElementClassNames:function(t){return a(t,this.service)},updateCounter:function(e){e=parseInt(e,10)||0;var i={"class":this.getElementClassNames("counter"),text:e};e||this.options.zeroes||(i["class"]+=" "+d+"__counter_empty",i.text="");var n=t("<span>",i);this.widget.append(n),this.widget.trigger("counter."+d,[this.service,e])},click:function(e){var i=this.options,n=!0;if(t.isFunction(i.click)&&(n=i.click.call(this,e)),n){var s=r(i.popupUrl,{url:i.url,title:i.title});s=this.addAdditionalParamsToUrl(s),this.openPopup(s,{width:i.popupWidth,height:i.popupHeight})}return!1},addAdditionalParamsToUrl:function(e){var i=t.param(t.extend(this.widget.data(),this.options.data));if(t.isEmptyObject(i))return e;var n=-1===e.indexOf("?")?"?":"&";return e+n+i},openPopup:function(e,i){var n=Math.round(screen.width/2-i.width/2),s=0;screen.height>i.height&&(s=Math.round(screen.height/3-i.height/2));var r=window.open(e,"sl_"+this.service,"left="+n+",top="+s+",width="+i.width+",height="+i.height+",personalbar=0,toolbar=0,scrollbars=1,resizable=1");if(r){r.focus(),this.widget.trigger("popup_opened."+d,[this.service,r]);var o=setInterval(t.proxy(function(){r.closed&&(clearInterval(o),this.widget.trigger("popup_closed."+d,this.service))},this),this.options.popupCheckInterval)}else location.href=e}},t(function(){t("."+d).socialLikes()})}),function(){"use strict";function t(t){t.fn.swiper=function(i){var n;return t(this).each(function(){var t=new e(this,i);n||(n=t)}),n}}var e=function(t,i){function n(){return"horizontal"===m.params.direction}function s(){m.autoplayTimeoutId=setTimeout(function(){m.params.loop?(m.fixLoop(),m._slideNext()):m.isEnd?i.autoplayStopOnLast?m.stopAutoplay():m._slideTo(0):m._slideNext()},m.params.autoplay)}function r(t,e){var i=g(t.target);if(!i.is(e))if("string"==typeof e)i=i.parents(e);else if(e.nodeType){var n;return i.parents().each(function(t,i){i===e&&(n=e)}),n?e:void 0}return 0===i.length?void 0:i[0]}function o(t,e){e=e||{};var i=window.MutationObserver||window.WebkitMutationObserver,n=new i(function(t){t.forEach(function(t){m.onResize(!0),m.emit("onObserverUpdate",m,t)})});n.observe(t,{attributes:"undefined"==typeof e.attributes?!0:e.attributes,childList:"undefined"==typeof e.childList?!0:e.childList,characterData:"undefined"==typeof e.characterData?!0:e.characterData}),m.observers.push(n)}function a(t){t.originalEvent&&(t=t.originalEvent);var e=t.keyCode||t.charCode;if(!m.params.allowSwipeToNext&&(n()&&39===e||!n()&&40===e))return!1;if(!m.params.allowSwipeToPrev&&(n()&&37===e||!n()&&38===e))return!1;if(!(t.shiftKey||t.altKey||t.ctrlKey||t.metaKey||document.activeElement&&document.activeElement.nodeName&&("input"===document.activeElement.nodeName.toLowerCase()||"textarea"===document.activeElement.nodeName.toLowerCase()))){if(37===e||39===e||38===e||40===e){var i=!1;if(m.container.parents(".swiper-slide").length>0&&0===m.container.parents(".swiper-slide-active").length)return;for(var s={left:window.pageXOffset,top:window.pageYOffset},r=window.innerWidth,o=window.innerHeight,a=m.container.offset(),l=[[a.left,a.top],[a.left+m.width,a.top],[a.left,a.top+m.height],[a.left+m.width,a.top+m.height]],c=0;c<l.length;c++){var d=l[c];d[0]>=s.left&&d[0]<=s.left+r&&d[1]>=s.top&&d[1]<=s.top+o&&(i=!0)}if(!i)return}n()?((37===e||39===e)&&(t.preventDefault?t.preventDefault():t.returnValue=!1),39===e&&m.slideNext(),37===e&&m.slidePrev()):((38===e||40===e)&&(t.preventDefault?t.preventDefault():t.returnValue=!1),40===e&&m.slideNext(),38===e&&m.slidePrev())}}function l(t){t.originalEvent&&(t=t.originalEvent);var e=m._wheelEvent,i=0;if(t.detail)i=-t.detail;else if("mousewheel"===e)if(m.params.mousewheelForceToAxis)if(n()){if(!(Math.abs(t.wheelDeltaX)>Math.abs(t.wheelDeltaY)))return;i=t.wheelDeltaX}else{if(!(Math.abs(t.wheelDeltaY)>Math.abs(t.wheelDeltaX)))return;i=t.wheelDeltaY}else i=t.wheelDelta;else if("DOMMouseScroll"===e)i=-t.detail;else if("wheel"===e)if(m.params.mousewheelForceToAxis)if(n()){if(!(Math.abs(t.deltaX)>Math.abs(t.deltaY)))return;i=-t.deltaX}else{if(!(Math.abs(t.deltaY)>Math.abs(t.deltaX)))return;i=-t.deltaY}else i=Math.abs(t.deltaX)>Math.abs(t.deltaY)?-t.deltaX:-t.deltaY;if(m.params.freeMode){var s=m.getWrapperTranslate()+i;if(s>0&&(s=0),s<m.maxTranslate()&&(s=m.maxTranslate()),m.setWrapperTransition(0),m.setWrapperTranslate(s),m.updateProgress(),m.updateActiveIndex(),0===s||s===m.maxTranslate())return}else(new window.Date).getTime()-m._lastWheelScrollTime>60&&(0>i?m.slideNext():m.slidePrev()),m._lastWheelScrollTime=(new window.Date).getTime();return m.params.autoplay&&m.stopAutoplay(),t.preventDefault?t.preventDefault():t.returnValue=!1,!1}function c(t,e){t=g(t);var i,s,r;i=t.attr("data-swiper-parallax")||"0",s=t.attr("data-swiper-parallax-x"),r=t.attr("data-swiper-parallax-y"),s||r?(s=s||"0",r=r||"0"):n()?(s=i,r="0"):(r=i,s="0"),s=s.indexOf("%")>=0?parseInt(s,10)*e+"%":s*e+"px",r=r.indexOf("%")>=0?parseInt(r,10)*e+"%":r*e+"px",t.transform("translate3d("+s+", "+r+",0px)")}function d(t){return 0!==t.indexOf("on")&&(t=t[0]!==t[0].toUpperCase()?"on"+t[0].toUpperCase()+t.substring(1):"on"+t),t}if(!(this instanceof e))return new e(t,i);var u={direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,autoplay:!1,autoplayDisableOnInteraction:!0,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeSticky:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",coverflow:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0},cube:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94},fade:{crossFade:!1},parallax:!1,scrollbar:null,scrollbarHide:!0,keyboardControl:!1,mousewheelControl:!1,mousewheelForceToAxis:!1,hashnav:!1,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,onlyExternal:!1,threshold:0,touchMoveStopPropagation:!0,pagination:null,paginationClickable:!1,paginationHide:!1,paginationBulletRender:null,resistance:!0,resistanceRatio:.85,nextButton:null,prevButton:null,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,lazyLoading:!1,lazyLoadingInPrevNext:!1,lazyLoadingOnTransitionStart:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,control:void 0,controlInverse:!1,allowSwipeToPrev:!0,allowSwipeToNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",buttonDisabledClass:"swiper-button-disabled",paginationHiddenClass:"swiper-pagination-hidden",observer:!1,observeParents:!1,a11y:!1,prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",runCallbacksOnInit:!0},p=i&&i.virtualTranslate;i=i||{};for(var h in u)if("undefined"==typeof i[h])i[h]=u[h];else if("object"==typeof i[h])for(var f in u[h])"undefined"==typeof i[h][f]&&(i[h][f]=u[h][f]);var m=this;m.version="3.0.7",m.params=i,m.classNames=[];var g;if(g="undefined"==typeof Dom7?window.Dom7||window.Zepto||window.jQuery:Dom7,g&&(m.$=g,m.container=g(t),0!==m.container.length)){if(m.container.length>1)return void m.container.each(function(){new e(this,i)});m.container[0].swiper=m,m.container.data("swiper",m),m.classNames.push("swiper-container-"+m.params.direction),m.params.freeMode&&m.classNames.push("swiper-container-free-mode"),m.support.flexbox||(m.classNames.push("swiper-container-no-flexbox"),m.params.slidesPerColumn=1),(m.params.parallax||m.params.watchSlidesVisibility)&&(m.params.watchSlidesProgress=!0),["cube","coverflow"].indexOf(m.params.effect)>=0&&(m.support.transforms3d?(m.params.watchSlidesProgress=!0,m.classNames.push("swiper-container-3d")):m.params.effect="slide"),"slide"!==m.params.effect&&m.classNames.push("swiper-container-"+m.params.effect),"cube"===m.params.effect&&(m.params.resistanceRatio=0,m.params.slidesPerView=1,m.params.slidesPerColumn=1,m.params.slidesPerGroup=1,m.params.centeredSlides=!1,m.params.spaceBetween=0,m.params.virtualTranslate=!0,m.params.setWrapperSize=!1),"fade"===m.params.effect&&(m.params.slidesPerView=1,m.params.slidesPerColumn=1,m.params.slidesPerGroup=1,m.params.watchSlidesProgress=!0,m.params.spaceBetween=0,"undefined"==typeof p&&(m.params.virtualTranslate=!0)),m.params.grabCursor&&m.support.touch&&(m.params.grabCursor=!1),m.wrapper=m.container.children("."+m.params.wrapperClass),m.params.pagination&&(m.paginationContainer=g(m.params.pagination),m.params.paginationClickable&&m.paginationContainer.addClass("swiper-pagination-clickable")),m.rtl=n()&&("rtl"===m.container[0].dir.toLowerCase()||"rtl"===m.container.css("direction")),m.rtl&&m.classNames.push("swiper-container-rtl"),m.rtl&&(m.wrongRTL="-webkit-box"===m.wrapper.css("display")),m.params.slidesPerColumn>1&&m.classNames.push("swiper-container-multirow"),m.device.android&&m.classNames.push("swiper-container-android"),m.container.addClass(m.classNames.join(" ")),m.translate=0,m.progress=0,m.velocity=0,m.lockSwipeToNext=function(){m.params.allowSwipeToNext=!1},m.lockSwipeToPrev=function(){m.params.allowSwipeToPrev=!1},m.lockSwipes=function(){m.params.allowSwipeToNext=m.params.allowSwipeToPrev=!1},m.unlockSwipeToNext=function(){m.params.allowSwipeToNext=!0},m.unlockSwipeToPrev=function(){m.params.allowSwipeToPrev=!0},m.unlockSwipes=function(){m.params.allowSwipeToNext=m.params.allowSwipeToPrev=!0},m.params.grabCursor&&(m.container[0].style.cursor="move",m.container[0].style.cursor="-webkit-grab",m.container[0].style.cursor="-moz-grab",m.container[0].style.cursor="grab"),m.imagesToLoad=[],m.imagesLoaded=0,m.loadImage=function(t,e,i,n){function s(){n&&n()}var r;t.complete&&i?s():e?(r=new window.Image,r.onload=s,r.onerror=s,r.src=e):s()},m.preloadImages=function(){function t(){"undefined"!=typeof m&&null!==m&&(void 0!==m.imagesLoaded&&m.imagesLoaded++,m.imagesLoaded===m.imagesToLoad.length&&(m.params.updateOnImagesReady&&m.update(),m.emit("onImagesReady",m)))}m.imagesToLoad=m.container.find("img");for(var e=0;e<m.imagesToLoad.length;e++)m.loadImage(m.imagesToLoad[e],m.imagesToLoad[e].currentSrc||m.imagesToLoad[e].getAttribute("src"),!0,t)},m.autoplayTimeoutId=void 0,m.autoplaying=!1,m.autoplayPaused=!1,m.startAutoplay=function(){return"undefined"!=typeof m.autoplayTimeoutId?!1:m.params.autoplay?m.autoplaying?!1:(m.autoplaying=!0,m.emit("onAutoplayStart",m),void s()):!1},m.stopAutoplay=function(t){m.autoplayTimeoutId&&(m.autoplayTimeoutId&&clearTimeout(m.autoplayTimeoutId),m.autoplaying=!1,m.autoplayTimeoutId=void 0,m.emit("onAutoplayStop",m))},m.pauseAutoplay=function(t){m.autoplayPaused||(m.autoplayTimeoutId&&clearTimeout(m.autoplayTimeoutId),m.autoplayPaused=!0,0===t?(m.autoplayPaused=!1,s()):m.wrapper.transitionEnd(function(){m&&(m.autoplayPaused=!1,m.autoplaying?s():m.stopAutoplay())}))},m.minTranslate=function(){return-m.snapGrid[0]},m.maxTranslate=function(){return-m.snapGrid[m.snapGrid.length-1]},m.updateContainerSize=function(){var t,e;t="undefined"!=typeof m.params.width?m.params.width:m.container[0].clientWidth,e="undefined"!=typeof m.params.height?m.params.height:m.container[0].clientHeight,0===t&&n()||0===e&&!n()||(m.width=t,m.height=e,m.size=n()?m.width:m.height)},m.updateSlidesSize=function(){m.slides=m.wrapper.children("."+m.params.slideClass),m.snapGrid=[],m.slidesGrid=[],m.slidesSizesGrid=[];var t,e=m.params.spaceBetween,i=0,s=0,r=0;"string"==typeof e&&e.indexOf("%")>=0&&(e=parseFloat(e.replace("%",""))/100*m.size),m.virtualSize=-e,m.slides.css(m.rtl?{marginLeft:"",marginTop:""}:{marginRight:"",marginBottom:""});var o;m.params.slidesPerColumn>1&&(o=Math.floor(m.slides.length/m.params.slidesPerColumn)===m.slides.length/m.params.slidesPerColumn?m.slides.length:Math.ceil(m.slides.length/m.params.slidesPerColumn)*m.params.slidesPerColumn);var a;for(t=0;t<m.slides.length;t++){a=0;var l=m.slides.eq(t);if(m.params.slidesPerColumn>1){var c,d,u,p,h=m.params.slidesPerColumn;"column"===m.params.slidesPerColumnFill?(d=Math.floor(t/h),u=t-d*h,c=d+u*o/h,l.css({"-webkit-box-ordinal-group":c,"-moz-box-ordinal-group":c,"-ms-flex-order":c,"-webkit-order":c,order:c})):(p=o/h,u=Math.floor(t/p),d=t-u*p),l.css({"margin-top":0!==u&&m.params.spaceBetween&&m.params.spaceBetween+"px"}).attr("data-swiper-column",d).attr("data-swiper-row",u)}"none"!==l.css("display")&&("auto"===m.params.slidesPerView?a=n()?l.outerWidth(!0):l.outerHeight(!0):(a=(m.size-(m.params.slidesPerView-1)*e)/m.params.slidesPerView,n()?m.slides[t].style.width=a+"px":m.slides[t].style.height=a+"px"),m.slides[t].swiperSlideSize=a,m.slidesSizesGrid.push(a),m.params.centeredSlides?(i=i+a/2+s/2+e,0===t&&(i=i-m.size/2-e),Math.abs(i)<.001&&(i=0),r%m.params.slidesPerGroup===0&&m.snapGrid.push(i),m.slidesGrid.push(i)):(r%m.params.slidesPerGroup===0&&m.snapGrid.push(i),m.slidesGrid.push(i),i=i+a+e),m.virtualSize+=a+e,s=a,r++)}m.virtualSize=Math.max(m.virtualSize,m.size);var f;if(m.rtl&&m.wrongRTL&&("slide"===m.params.effect||"coverflow"===m.params.effect)&&m.wrapper.css({width:m.virtualSize+m.params.spaceBetween+"px"}),(!m.support.flexbox||m.params.setWrapperSize)&&m.wrapper.css(n()?{width:m.virtualSize+m.params.spaceBetween+"px"}:{height:m.virtualSize+m.params.spaceBetween+"px"}),m.params.slidesPerColumn>1&&(m.virtualSize=(a+m.params.spaceBetween)*o,m.virtualSize=Math.ceil(m.virtualSize/m.params.slidesPerColumn)-m.params.spaceBetween,m.wrapper.css({width:m.virtualSize+m.params.spaceBetween+"px"}),m.params.centeredSlides)){for(f=[],t=0;t<m.snapGrid.length;t++)m.snapGrid[t]<m.virtualSize+m.snapGrid[0]&&f.push(m.snapGrid[t]);m.snapGrid=f}if(!m.params.centeredSlides){for(f=[],t=0;t<m.snapGrid.length;t++)m.snapGrid[t]<=m.virtualSize-m.size&&f.push(m.snapGrid[t]);m.snapGrid=f,Math.floor(m.virtualSize-m.size)>Math.floor(m.snapGrid[m.snapGrid.length-1])&&m.snapGrid.push(m.virtualSize-m.size)}0===m.snapGrid.length&&(m.snapGrid=[0]),0!==m.params.spaceBetween&&m.slides.css(n()?m.rtl?{marginLeft:e+"px"}:{marginRight:e+"px"}:{marginBottom:e+"px"}),m.params.watchSlidesProgress&&m.updateSlidesOffset()},m.updateSlidesOffset=function(){for(var t=0;t<m.slides.length;t++)m.slides[t].swiperSlideOffset=n()?m.slides[t].offsetLeft:m.slides[t].offsetTop},m.updateSlidesProgress=function(t){if("undefined"==typeof t&&(t=m.translate||0),0!==m.slides.length){"undefined"==typeof m.slides[0].swiperSlideOffset&&m.updateSlidesOffset();var e=m.params.centeredSlides?-t+m.size/2:-t;m.rtl&&(e=m.params.centeredSlides?t-m.size/2:t);{m.container[0].getBoundingClientRect(),n()?"left":"top",n()?"right":"bottom"}m.slides.removeClass(m.params.slideVisibleClass);for(var i=0;i<m.slides.length;i++){var s=m.slides[i],r=m.params.centeredSlides===!0?s.swiperSlideSize/2:0,o=(e-s.swiperSlideOffset-r)/(s.swiperSlideSize+m.params.spaceBetween);if(m.params.watchSlidesVisibility){var a=-(e-s.swiperSlideOffset-r),l=a+m.slidesSizesGrid[i],c=a>=0&&a<m.size||l>0&&l<=m.size||0>=a&&l>=m.size;c&&m.slides.eq(i).addClass(m.params.slideVisibleClass)}s.progress=m.rtl?-o:o}}},m.updateProgress=function(t){"undefined"==typeof t&&(t=m.translate||0);var e=m.maxTranslate()-m.minTranslate();0===e?(m.progress=0,m.isBeginning=m.isEnd=!0):(m.progress=(t-m.minTranslate())/e,m.isBeginning=m.progress<=0,m.isEnd=m.progress>=1),m.isBeginning&&m.emit("onReachBeginning",m),m.isEnd&&m.emit("onReachEnd",m),m.params.watchSlidesProgress&&m.updateSlidesProgress(t),m.emit("onProgress",m,m.progress)},m.updateActiveIndex=function(){var t,e,i,n=m.rtl?m.translate:-m.translate;for(e=0;e<m.slidesGrid.length;e++)"undefined"!=typeof m.slidesGrid[e+1]?n>=m.slidesGrid[e]&&n<m.slidesGrid[e+1]-(m.slidesGrid[e+1]-m.slidesGrid[e])/2?t=e:n>=m.slidesGrid[e]&&n<m.slidesGrid[e+1]&&(t=e+1):n>=m.slidesGrid[e]&&(t=e);(0>t||"undefined"==typeof t)&&(t=0),i=Math.floor(t/m.params.slidesPerGroup),i>=m.snapGrid.length&&(i=m.snapGrid.length-1),t!==m.activeIndex&&(m.snapIndex=i,m.previousIndex=m.activeIndex,m.activeIndex=t,m.updateClasses())},m.updateClasses=function(){m.slides.removeClass(m.params.slideActiveClass+" "+m.params.slideNextClass+" "+m.params.slidePrevClass);var t=m.slides.eq(m.activeIndex);if(t.addClass(m.params.slideActiveClass),t.next("."+m.params.slideClass).addClass(m.params.slideNextClass),t.prev("."+m.params.slideClass).addClass(m.params.slidePrevClass),m.bullets&&m.bullets.length>0){m.bullets.removeClass(m.params.bulletActiveClass);var e;m.params.loop?(e=Math.ceil(m.activeIndex-m.loopedSlides)/m.params.slidesPerGroup,e>m.slides.length-1-2*m.loopedSlides&&(e-=m.slides.length-2*m.loopedSlides),e>m.bullets.length-1&&(e-=m.bullets.length)):e="undefined"!=typeof m.snapIndex?m.snapIndex:m.activeIndex||0,m.paginationContainer.length>1?m.bullets.each(function(){g(this).index()===e&&g(this).addClass(m.params.bulletActiveClass)}):m.bullets.eq(e).addClass(m.params.bulletActiveClass)}m.params.loop||(m.params.prevButton&&(m.isBeginning?(g(m.params.prevButton).addClass(m.params.buttonDisabledClass),m.params.a11y&&m.a11y&&m.a11y.disable(g(m.params.prevButton))):(g(m.params.prevButton).removeClass(m.params.buttonDisabledClass),m.params.a11y&&m.a11y&&m.a11y.enable(g(m.params.prevButton)))),m.params.nextButton&&(m.isEnd?(g(m.params.nextButton).addClass(m.params.buttonDisabledClass),m.params.a11y&&m.a11y&&m.a11y.disable(g(m.params.nextButton))):(g(m.params.nextButton).removeClass(m.params.buttonDisabledClass),m.params.a11y&&m.a11y&&m.a11y.enable(g(m.params.nextButton)))))},m.updatePagination=function(){if(m.params.pagination&&m.paginationContainer&&m.paginationContainer.length>0){for(var t="",e=m.params.loop?Math.ceil((m.slides.length-2*m.loopedSlides)/m.params.slidesPerGroup):m.snapGrid.length,i=0;e>i;i++)t+=m.params.paginationBulletRender?m.params.paginationBulletRender(i,m.params.bulletClass):'<span class="'+m.params.bulletClass+'"></span>';m.paginationContainer.html(t),m.bullets=m.paginationContainer.find("."+m.params.bulletClass)}},m.update=function(t){function e(){n=Math.min(Math.max(m.translate,m.maxTranslate()),m.minTranslate()),m.setWrapperTranslate(n),m.updateActiveIndex(),m.updateClasses()}if(m.updateContainerSize(),m.updateSlidesSize(),m.updateProgress(),m.updatePagination(),m.updateClasses(),m.params.scrollbar&&m.scrollbar&&m.scrollbar.set(),t){var i,n;m.params.freeMode?e():(i="auto"===m.params.slidesPerView&&m.isEnd&&!m.params.centeredSlides?m.slideTo(m.slides.length-1,0,!1,!0):m.slideTo(m.activeIndex,0,!1,!0),i||e())}},m.onResize=function(t){if(m.updateContainerSize(),m.updateSlidesSize(),m.updateProgress(),("auto"===m.params.slidesPerView||m.params.freeMode||t)&&m.updatePagination(),m.params.scrollbar&&m.scrollbar&&m.scrollbar.set(),m.params.freeMode){var e=Math.min(Math.max(m.translate,m.maxTranslate()),m.minTranslate());m.setWrapperTranslate(e),m.updateActiveIndex(),m.updateClasses()}else m.updateClasses(),"auto"===m.params.slidesPerView&&m.isEnd&&!m.params.centeredSlides?m.slideTo(m.slides.length-1,0,!1,!0):m.slideTo(m.activeIndex,0,!1,!0)};var v=["mousedown","mousemove","mouseup"];window.navigator.pointerEnabled?v=["pointerdown","pointermove","pointerup"]:window.navigator.msPointerEnabled&&(v=["MSPointerDown","MSPointerMove","MSPointerUp"]),m.touchEvents={start:m.support.touch||!m.params.simulateTouch?"touchstart":v[0],move:m.support.touch||!m.params.simulateTouch?"touchmove":v[1],end:m.support.touch||!m.params.simulateTouch?"touchend":v[2]},(window.navigator.pointerEnabled||window.navigator.msPointerEnabled)&&("container"===m.params.touchEventsTarget?m.container:m.wrapper).addClass("swiper-wp8-"+m.params.direction),m.initEvents=function(t){var e=t?"off":"on",n=t?"removeEventListener":"addEventListener",s="container"===m.params.touchEventsTarget?m.container[0]:m.wrapper[0],r=m.support.touch?s:document,o=m.params.nested?!0:!1;m.browser.ie?(s[n](m.touchEvents.start,m.onTouchStart,!1),r[n](m.touchEvents.move,m.onTouchMove,o),r[n](m.touchEvents.end,m.onTouchEnd,!1)):(m.support.touch&&(s[n](m.touchEvents.start,m.onTouchStart,!1),s[n](m.touchEvents.move,m.onTouchMove,o),s[n](m.touchEvents.end,m.onTouchEnd,!1)),!i.simulateTouch||m.device.ios||m.device.android||(s[n]("mousedown",m.onTouchStart,!1),document[n]("mousemove",m.onTouchMove,o),document[n]("mouseup",m.onTouchEnd,!1))),
  window[n]("resize",m.onResize),m.params.nextButton&&(g(m.params.nextButton)[e]("click",m.onClickNext),m.params.a11y&&m.a11y&&g(m.params.nextButton)[e]("keydown",m.a11y.onEnterKey)),m.params.prevButton&&(g(m.params.prevButton)[e]("click",m.onClickPrev),m.params.a11y&&m.a11y&&g(m.params.prevButton)[e]("keydown",m.a11y.onEnterKey)),m.params.pagination&&m.params.paginationClickable&&g(m.paginationContainer)[e]("click","."+m.params.bulletClass,m.onClickIndex),(m.params.preventClicks||m.params.preventClicksPropagation)&&s[n]("click",m.preventClicks,!0)},m.attachEvents=function(t){m.initEvents()},m.detachEvents=function(){m.initEvents(!0)},m.allowClick=!0,m.preventClicks=function(t){m.allowClick||(m.params.preventClicks&&t.preventDefault(),m.params.preventClicksPropagation&&(t.stopPropagation(),t.stopImmediatePropagation()))},m.onClickNext=function(t){t.preventDefault(),m.slideNext()},m.onClickPrev=function(t){t.preventDefault(),m.slidePrev()},m.onClickIndex=function(t){t.preventDefault();var e=g(this).index()*m.params.slidesPerGroup;m.params.loop&&(e+=m.loopedSlides),m.slideTo(e)},m.updateClickedSlide=function(t){var e=r(t,"."+m.params.slideClass),i=!1;if(e)for(var n=0;n<m.slides.length;n++)m.slides[n]===e&&(i=!0);if(!e||!i)return m.clickedSlide=void 0,void(m.clickedIndex=void 0);if(m.clickedSlide=e,m.clickedIndex=g(e).index(),m.params.slideToClickedSlide&&void 0!==m.clickedIndex&&m.clickedIndex!==m.activeIndex){var s,o=m.clickedIndex;if(m.params.loop)if(s=g(m.clickedSlide).attr("data-swiper-slide-index"),o>m.slides.length-m.params.slidesPerView)m.fixLoop(),o=m.wrapper.children("."+m.params.slideClass+'[data-swiper-slide-index="'+s+'"]').eq(0).index(),setTimeout(function(){m.slideTo(o)},0);else if(o<m.params.slidesPerView-1){m.fixLoop();var a=m.wrapper.children("."+m.params.slideClass+'[data-swiper-slide-index="'+s+'"]');o=a.eq(a.length-1).index(),setTimeout(function(){m.slideTo(o)},0)}else m.slideTo(o);else m.slideTo(o)}};var y,w,b,x,_,C,T,S,$,k="input, select, textarea, button",E=Date.now(),I=[];m.animating=!1,m.touches={startX:0,startY:0,currentX:0,currentY:0,diff:0};var D,A;if(m.onTouchStart=function(t){if(t.originalEvent&&(t=t.originalEvent),D="touchstart"===t.type,D||!("which"in t)||3!==t.which){if(m.params.noSwiping&&r(t,"."+m.params.noSwipingClass))return void(m.allowClick=!0);if(!m.params.swipeHandler||r(t,m.params.swipeHandler)){if(y=!0,w=!1,x=void 0,A=void 0,m.touches.startX=m.touches.currentX="touchstart"===t.type?t.targetTouches[0].pageX:t.pageX,m.touches.startY=m.touches.currentY="touchstart"===t.type?t.targetTouches[0].pageY:t.pageY,b=Date.now(),m.allowClick=!0,m.updateContainerSize(),m.swipeDirection=void 0,m.params.threshold>0&&(T=!1),"touchstart"!==t.type){var e=!0;g(t.target).is(k)&&(e=!1),document.activeElement&&g(document.activeElement).is(k)&&document.activeElement.blur(),e&&t.preventDefault()}m.emit("onTouchStart",m,t)}}},m.onTouchMove=function(t){if(t.originalEvent&&(t=t.originalEvent),!(D&&"mousemove"===t.type||t.preventedByNestedSwiper)){if(m.params.onlyExternal)return w=!0,void(m.allowClick=!1);if(D&&document.activeElement&&t.target===document.activeElement&&g(t.target).is(k))return w=!0,void(m.allowClick=!1);if(m.emit("onTouchMove",m,t),!(t.targetTouches&&t.targetTouches.length>1)){if(m.touches.currentX="touchmove"===t.type?t.targetTouches[0].pageX:t.pageX,m.touches.currentY="touchmove"===t.type?t.targetTouches[0].pageY:t.pageY,"undefined"==typeof x){var e=180*Math.atan2(Math.abs(m.touches.currentY-m.touches.startY),Math.abs(m.touches.currentX-m.touches.startX))/Math.PI;x=n()?e>m.params.touchAngle:90-e>m.params.touchAngle}if(x&&m.emit("onTouchMoveOpposite",m,t),"undefined"==typeof A&&m.browser.ieTouch&&(m.touches.currentX!==m.touches.startX||m.touches.currentY!==m.touches.startY)&&(A=!0),y){if(x)return void(y=!1);if(A||!m.browser.ieTouch){m.allowClick=!1,m.emit("onSliderMove",m,t),t.preventDefault(),m.params.touchMoveStopPropagation&&!m.params.nested&&t.stopPropagation(),w||(i.loop&&m.fixLoop(),C=m.getWrapperTranslate(),m.setWrapperTransition(0),m.animating&&m.wrapper.trigger("webkitTransitionEnd transitionend oTransitionEnd MSTransitionEnd msTransitionEnd"),m.params.autoplay&&m.autoplaying&&(m.params.autoplayDisableOnInteraction?m.stopAutoplay():m.pauseAutoplay()),$=!1,m.params.grabCursor&&(m.container[0].style.cursor="move",m.container[0].style.cursor="-webkit-grabbing",m.container[0].style.cursor="-moz-grabbin",m.container[0].style.cursor="grabbing")),w=!0;var s=m.touches.diff=n()?m.touches.currentX-m.touches.startX:m.touches.currentY-m.touches.startY;s*=m.params.touchRatio,m.rtl&&(s=-s),m.swipeDirection=s>0?"prev":"next",_=s+C;var r=!0;if(s>0&&_>m.minTranslate()?(r=!1,m.params.resistance&&(_=m.minTranslate()-1+Math.pow(-m.minTranslate()+C+s,m.params.resistanceRatio))):0>s&&_<m.maxTranslate()&&(r=!1,m.params.resistance&&(_=m.maxTranslate()+1-Math.pow(m.maxTranslate()-C-s,m.params.resistanceRatio))),r&&(t.preventedByNestedSwiper=!0),!m.params.allowSwipeToNext&&"next"===m.swipeDirection&&C>_&&(_=C),!m.params.allowSwipeToPrev&&"prev"===m.swipeDirection&&_>C&&(_=C),m.params.followFinger){if(m.params.threshold>0){if(!(Math.abs(s)>m.params.threshold||T))return void(_=C);if(!T)return T=!0,m.touches.startX=m.touches.currentX,m.touches.startY=m.touches.currentY,_=C,void(m.touches.diff=n()?m.touches.currentX-m.touches.startX:m.touches.currentY-m.touches.startY)}(m.params.freeMode||m.params.watchSlidesProgress)&&m.updateActiveIndex(),m.params.freeMode&&(0===I.length&&I.push({position:m.touches[n()?"startX":"startY"],time:b}),I.push({position:m.touches[n()?"currentX":"currentY"],time:(new window.Date).getTime()})),m.updateProgress(_),m.setWrapperTranslate(_)}}}}}},m.onTouchEnd=function(t){if(t.originalEvent&&(t=t.originalEvent),m.emit("onTouchEnd",m,t),y){m.params.grabCursor&&w&&y&&(m.container[0].style.cursor="move",m.container[0].style.cursor="-webkit-grab",m.container[0].style.cursor="-moz-grab",m.container[0].style.cursor="grab");var e=Date.now(),i=e-b;if(m.allowClick&&(m.updateClickedSlide(t),m.emit("onTap",m,t),300>i&&e-E>300&&(S&&clearTimeout(S),S=setTimeout(function(){m&&(m.params.paginationHide&&m.paginationContainer.length>0&&!g(t.target).hasClass(m.params.bulletClass)&&m.paginationContainer.toggleClass(m.params.paginationHiddenClass),m.emit("onClick",m,t))},300)),300>i&&300>e-E&&(S&&clearTimeout(S),m.emit("onDoubleTap",m,t))),E=Date.now(),setTimeout(function(){m&&m.allowClick&&(m.allowClick=!0)},0),!y||!w||!m.swipeDirection||0===m.touches.diff||_===C)return void(y=w=!1);y=w=!1;var n;if(n=m.params.followFinger?m.rtl?m.translate:-m.translate:-_,m.params.freeMode){if(n<-m.minTranslate())return void m.slideTo(m.activeIndex);if(n>-m.maxTranslate())return void m.slideTo(m.slides.length<m.snapGrid.length?m.snapGrid.length-1:m.slides.length-1);if(m.params.freeModeMomentum){if(I.length>1){var s=I.pop(),r=I.pop(),o=s.position-r.position,a=s.time-r.time;m.velocity=o/a,m.velocity=m.velocity/2,Math.abs(m.velocity)<.02&&(m.velocity=0),(a>150||(new window.Date).getTime()-s.time>300)&&(m.velocity=0)}else m.velocity=0;I.length=0;var l=1e3*m.params.freeModeMomentumRatio,c=m.velocity*l,d=m.translate+c;m.rtl&&(d=-d);var u,p=!1,h=20*Math.abs(m.velocity)*m.params.freeModeMomentumBounceRatio;if(d<m.maxTranslate())m.params.freeModeMomentumBounce?(d+m.maxTranslate()<-h&&(d=m.maxTranslate()-h),u=m.maxTranslate(),p=!0,$=!0):d=m.maxTranslate();else if(d>m.minTranslate())m.params.freeModeMomentumBounce?(d-m.minTranslate()>h&&(d=m.minTranslate()+h),u=m.minTranslate(),p=!0,$=!0):d=m.minTranslate();else if(m.params.freeModeSticky){var f,v=0;for(v=0;v<m.snapGrid.length;v+=1)if(m.snapGrid[v]>-d){f=v;break}d=Math.abs(m.snapGrid[f]-d)<Math.abs(m.snapGrid[f-1]-d)||"next"===m.swipeDirection?m.snapGrid[f]:m.snapGrid[f-1],m.rtl||(d=-d)}if(0!==m.velocity)l=Math.abs(m.rtl?(-d-m.translate)/m.velocity:(d-m.translate)/m.velocity);else if(m.params.freeModeSticky)return void m.slideReset();m.params.freeModeMomentumBounce&&p?(m.updateProgress(u),m.setWrapperTransition(l),m.setWrapperTranslate(d),m.onTransitionStart(),m.animating=!0,m.wrapper.transitionEnd(function(){m&&$&&(m.emit("onMomentumBounce",m),m.setWrapperTransition(m.params.speed),m.setWrapperTranslate(u),m.wrapper.transitionEnd(function(){m&&m.onTransitionEnd()}))})):m.velocity?(m.updateProgress(d),m.setWrapperTransition(l),m.setWrapperTranslate(d),m.onTransitionStart(),m.animating||(m.animating=!0,m.wrapper.transitionEnd(function(){m&&m.onTransitionEnd()}))):m.updateProgress(d),m.updateActiveIndex()}return void((!m.params.freeModeMomentum||i>=m.params.longSwipesMs)&&(m.updateProgress(),m.updateActiveIndex()))}var x,T=0,k=m.slidesSizesGrid[0];for(x=0;x<m.slidesGrid.length;x+=m.params.slidesPerGroup)"undefined"!=typeof m.slidesGrid[x+m.params.slidesPerGroup]?n>=m.slidesGrid[x]&&n<m.slidesGrid[x+m.params.slidesPerGroup]&&(T=x,k=m.slidesGrid[x+m.params.slidesPerGroup]-m.slidesGrid[x]):n>=m.slidesGrid[x]&&(T=x,k=m.slidesGrid[m.slidesGrid.length-1]-m.slidesGrid[m.slidesGrid.length-2]);var D=(n-m.slidesGrid[T])/k;if(i>m.params.longSwipesMs){if(!m.params.longSwipes)return void m.slideTo(m.activeIndex);"next"===m.swipeDirection&&m.slideTo(D>=m.params.longSwipesRatio?T+m.params.slidesPerGroup:T),"prev"===m.swipeDirection&&m.slideTo(D>1-m.params.longSwipesRatio?T+m.params.slidesPerGroup:T)}else{if(!m.params.shortSwipes)return void m.slideTo(m.activeIndex);"next"===m.swipeDirection&&m.slideTo(T+m.params.slidesPerGroup),"prev"===m.swipeDirection&&m.slideTo(T)}}},m._slideTo=function(t,e){return m.slideTo(t,e,!0,!0)},m.slideTo=function(t,e,i,s){"undefined"==typeof i&&(i=!0),"undefined"==typeof t&&(t=0),0>t&&(t=0),m.snapIndex=Math.floor(t/m.params.slidesPerGroup),m.snapIndex>=m.snapGrid.length&&(m.snapIndex=m.snapGrid.length-1);var r=-m.snapGrid[m.snapIndex];if(!m.params.allowSwipeToNext&&r<m.translate)return!1;if(!m.params.allowSwipeToPrev&&r>m.translate)return!1;m.params.autoplay&&m.autoplaying&&(s||!m.params.autoplayDisableOnInteraction?m.pauseAutoplay(e):m.stopAutoplay()),m.updateProgress(r);for(var o=0;o<m.slidesGrid.length;o++)-r>=m.slidesGrid[o]&&(t=o);if("undefined"==typeof e&&(e=m.params.speed),m.previousIndex=m.activeIndex||0,m.activeIndex=t,r===m.translate)return m.updateClasses(),!1;m.updateClasses(),m.onTransitionStart(i);n()?r:0,n()?0:r;return 0===e?(m.setWrapperTransition(0),m.setWrapperTranslate(r),m.onTransitionEnd(i)):(m.setWrapperTransition(e),m.setWrapperTranslate(r),m.animating||(m.animating=!0,m.wrapper.transitionEnd(function(){m&&m.onTransitionEnd(i)}))),!0},m.onTransitionStart=function(t){"undefined"==typeof t&&(t=!0),m.lazy&&m.lazy.onTransitionStart(),t&&(m.emit("onTransitionStart",m),m.activeIndex!==m.previousIndex&&m.emit("onSlideChangeStart",m))},m.onTransitionEnd=function(t){m.animating=!1,m.setWrapperTransition(0),"undefined"==typeof t&&(t=!0),m.lazy&&m.lazy.onTransitionEnd(),t&&(m.emit("onTransitionEnd",m),m.activeIndex!==m.previousIndex&&m.emit("onSlideChangeEnd",m)),m.params.hashnav&&m.hashnav&&m.hashnav.setHash()},m.slideNext=function(t,e,i){if(m.params.loop){if(m.animating)return!1;m.fixLoop();{m.container[0].clientLeft}return m.slideTo(m.activeIndex+m.params.slidesPerGroup,e,t,i)}return m.slideTo(m.activeIndex+m.params.slidesPerGroup,e,t,i)},m._slideNext=function(t){return m.slideNext(!0,t,!0)},m.slidePrev=function(t,e,i){if(m.params.loop){if(m.animating)return!1;m.fixLoop();{m.container[0].clientLeft}return m.slideTo(m.activeIndex-1,e,t,i)}return m.slideTo(m.activeIndex-1,e,t,i)},m._slidePrev=function(t){return m.slidePrev(!0,t,!0)},m.slideReset=function(t,e,i){return m.slideTo(m.activeIndex,e,t)},m.setWrapperTransition=function(t,e){m.wrapper.transition(t),"slide"!==m.params.effect&&m.effects[m.params.effect]&&m.effects[m.params.effect].setTransition(t),m.params.parallax&&m.parallax&&m.parallax.setTransition(t),m.params.scrollbar&&m.scrollbar&&m.scrollbar.setTransition(t),m.params.control&&m.controller&&m.controller.setTransition(t,e),m.emit("onSetTransition",m,t)},m.setWrapperTranslate=function(t,e,i){var s=0,r=0,o=0;n()?s=m.rtl?-t:t:r=t,m.params.virtualTranslate||m.wrapper.transform(m.support.transforms3d?"translate3d("+s+"px, "+r+"px, "+o+"px)":"translate("+s+"px, "+r+"px)"),m.translate=n()?s:r,e&&m.updateActiveIndex(),"slide"!==m.params.effect&&m.effects[m.params.effect]&&m.effects[m.params.effect].setTranslate(m.translate),m.params.parallax&&m.parallax&&m.parallax.setTranslate(m.translate),m.params.scrollbar&&m.scrollbar&&m.scrollbar.setTranslate(m.translate),m.params.control&&m.controller&&m.controller.setTranslate(m.translate,i),m.emit("onSetTranslate",m,m.translate)},m.getTranslate=function(t,e){var i,n,s,r;return"undefined"==typeof e&&(e="x"),m.params.virtualTranslate?m.rtl?-m.translate:m.translate:(s=window.getComputedStyle(t,null),window.WebKitCSSMatrix?r=new window.WebKitCSSMatrix("none"===s.webkitTransform?"":s.webkitTransform):(r=s.MozTransform||s.OTransform||s.MsTransform||s.msTransform||s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),i=r.toString().split(",")),"x"===e&&(n=window.WebKitCSSMatrix?r.m41:parseFloat(16===i.length?i[12]:i[4])),"y"===e&&(n=window.WebKitCSSMatrix?r.m42:parseFloat(16===i.length?i[13]:i[5])),m.rtl&&n&&(n=-n),n||0)},m.getWrapperTranslate=function(t){return"undefined"==typeof t&&(t=n()?"x":"y"),m.getTranslate(m.wrapper[0],t)},m.observers=[],m.initObservers=function(){if(m.params.observeParents)for(var t=m.container.parents(),e=0;e<t.length;e++)o(t[e]);o(m.container[0],{childList:!1}),o(m.wrapper[0],{attributes:!1})},m.disconnectObservers=function(){for(var t=0;t<m.observers.length;t++)m.observers[t].disconnect();m.observers=[]},m.createLoop=function(){m.wrapper.children("."+m.params.slideClass+"."+m.params.slideDuplicateClass).remove();var t=m.wrapper.children("."+m.params.slideClass);m.loopedSlides=parseInt(m.params.loopedSlides||m.params.slidesPerView,10),m.loopedSlides=m.loopedSlides+m.params.loopAdditionalSlides,m.loopedSlides>t.length&&(m.loopedSlides=t.length);var e,i=[],n=[];for(t.each(function(e,s){var r=g(this);e<m.loopedSlides&&n.push(s),e<t.length&&e>=t.length-m.loopedSlides&&i.push(s),r.attr("data-swiper-slide-index",e)}),e=0;e<n.length;e++)m.wrapper.append(g(n[e].cloneNode(!0)).addClass(m.params.slideDuplicateClass));for(e=i.length-1;e>=0;e--)m.wrapper.prepend(g(i[e].cloneNode(!0)).addClass(m.params.slideDuplicateClass))},m.destroyLoop=function(){m.wrapper.children("."+m.params.slideClass+"."+m.params.slideDuplicateClass).remove(),m.slides.removeAttr("data-swiper-slide-index")},m.fixLoop=function(){var t;m.activeIndex<m.loopedSlides?(t=m.slides.length-3*m.loopedSlides+m.activeIndex,t+=m.loopedSlides,m.slideTo(t,0,!1,!0)):("auto"===m.params.slidesPerView&&m.activeIndex>=2*m.loopedSlides||m.activeIndex>m.slides.length-2*m.params.slidesPerView)&&(t=-m.slides.length+m.activeIndex+m.loopedSlides,t+=m.loopedSlides,m.slideTo(t,0,!1,!0))},m.appendSlide=function(t){if(m.params.loop&&m.destroyLoop(),"object"==typeof t&&t.length)for(var e=0;e<t.length;e++)t[e]&&m.wrapper.append(t[e]);else m.wrapper.append(t);m.params.loop&&m.createLoop(),m.params.observer&&m.support.observer||m.update(!0)},m.prependSlide=function(t){m.params.loop&&m.destroyLoop();var e=m.activeIndex+1;if("object"==typeof t&&t.length){for(var i=0;i<t.length;i++)t[i]&&m.wrapper.prepend(t[i]);e=m.activeIndex+t.length}else m.wrapper.prepend(t);m.params.loop&&m.createLoop(),m.params.observer&&m.support.observer||m.update(!0),m.slideTo(e,0,!1)},m.removeSlide=function(t){m.params.loop&&(m.destroyLoop(),m.slides=m.wrapper.children("."+m.params.slideClass));var e,i=m.activeIndex;if("object"==typeof t&&t.length){for(var n=0;n<t.length;n++)e=t[n],m.slides[e]&&m.slides.eq(e).remove(),i>e&&i--;i=Math.max(i,0)}else e=t,m.slides[e]&&m.slides.eq(e).remove(),i>e&&i--,i=Math.max(i,0);m.params.loop&&m.createLoop(),m.params.observer&&m.support.observer||m.update(!0),m.params.loop?m.slideTo(i+m.loopedSlides,0,!1):m.slideTo(i,0,!1)},m.removeAllSlides=function(){for(var t=[],e=0;e<m.slides.length;e++)t.push(e);m.removeSlide(t)},m.effects={fade:{fadeIndex:null,setTranslate:function(){for(var t=0;t<m.slides.length;t++){var e=m.slides.eq(t),i=e[0].swiperSlideOffset,s=-i;m.params.virtualTranslate||(s-=m.translate);var r=0;n()||(r=s,s=0);var o=m.params.fade.crossFade?Math.max(1-Math.abs(e[0].progress),0):1+Math.min(Math.max(e[0].progress,-1),0);o>0&&1>o&&(m.effects.fade.fadeIndex=t),e.css({opacity:o}).transform("translate3d("+s+"px, "+r+"px, 0px)")}},setTransition:function(t){if(m.slides.transition(t),m.params.virtualTranslate&&0!==t){var e=null!==m.effects.fade.fadeIndex?m.effects.fade.fadeIndex:m.activeIndex;m.params.loop||m.params.fade.crossFade||0!==e||(e=m.slides.length-1),m.slides.eq(e).transitionEnd(function(){if(m)for(var t=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],e=0;e<t.length;e++)m.wrapper.trigger(t[e])})}}},cube:{setTranslate:function(){var t,e=0;m.params.cube.shadow&&(n()?(t=m.wrapper.find(".swiper-cube-shadow"),0===t.length&&(t=g('<div class="swiper-cube-shadow"></div>'),m.wrapper.append(t)),t.css({height:m.width+"px"})):(t=m.container.find(".swiper-cube-shadow"),0===t.length&&(t=g('<div class="swiper-cube-shadow"></div>'),m.container.append(t))));for(var i=0;i<m.slides.length;i++){var s=m.slides.eq(i),r=90*i,o=Math.floor(r/360);m.rtl&&(r=-r,o=Math.floor(-r/360));var a=Math.max(Math.min(s[0].progress,1),-1),l=0,c=0,d=0;i%4===0?(l=4*-o*m.size,d=0):(i-1)%4===0?(l=0,d=4*-o*m.size):(i-2)%4===0?(l=m.size+4*o*m.size,d=m.size):(i-3)%4===0&&(l=-m.size,d=3*m.size+4*m.size*o),m.rtl&&(l=-l),n()||(c=l,l=0);var u="rotateX("+(n()?0:-r)+"deg) rotateY("+(n()?r:0)+"deg) translate3d("+l+"px, "+c+"px, "+d+"px)";if(1>=a&&a>-1&&(e=90*i+90*a,m.rtl&&(e=90*-i-90*a)),s.transform(u),m.params.cube.slideShadows){var p=s.find(n()?".swiper-slide-shadow-left":".swiper-slide-shadow-top"),h=s.find(n()?".swiper-slide-shadow-right":".swiper-slide-shadow-bottom");0===p.length&&(p=g('<div class="swiper-slide-shadow-'+(n()?"left":"top")+'"></div>'),s.append(p)),0===h.length&&(h=g('<div class="swiper-slide-shadow-'+(n()?"right":"bottom")+'"></div>'),s.append(h));{s[0].progress}p.length&&(p[0].style.opacity=-s[0].progress),h.length&&(h[0].style.opacity=s[0].progress)}}if(m.wrapper.css({"-webkit-transform-origin":"50% 50% -"+m.size/2+"px","-moz-transform-origin":"50% 50% -"+m.size/2+"px","-ms-transform-origin":"50% 50% -"+m.size/2+"px","transform-origin":"50% 50% -"+m.size/2+"px"}),m.params.cube.shadow)if(n())t.transform("translate3d(0px, "+(m.width/2+m.params.cube.shadowOffset)+"px, "+-m.width/2+"px) rotateX(90deg) rotateZ(0deg) scale("+m.params.cube.shadowScale+")");else{var f=Math.abs(e)-90*Math.floor(Math.abs(e)/90),v=1.5-(Math.sin(2*f*Math.PI/360)/2+Math.cos(2*f*Math.PI/360)/2),y=m.params.cube.shadowScale,w=m.params.cube.shadowScale/v,b=m.params.cube.shadowOffset;t.transform("scale3d("+y+", 1, "+w+") translate3d(0px, "+(m.height/2+b)+"px, "+-m.height/2/w+"px) rotateX(-90deg)")}var x=m.isSafari||m.isUiWebView?-m.size/2:0;m.wrapper.transform("translate3d(0px,0,"+x+"px) rotateX("+(n()?0:e)+"deg) rotateY("+(n()?-e:0)+"deg)")},setTransition:function(t){m.slides.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t),m.params.cube.shadow&&!n()&&m.container.find(".swiper-cube-shadow").transition(t)}},coverflow:{setTranslate:function(){for(var t=m.translate,e=n()?-t+m.width/2:-t+m.height/2,i=n()?m.params.coverflow.rotate:-m.params.coverflow.rotate,s=m.params.coverflow.depth,r=0,o=m.slides.length;o>r;r++){var a=m.slides.eq(r),l=m.slidesSizesGrid[r],c=a[0].swiperSlideOffset,d=(e-c-l/2)/l*m.params.coverflow.modifier,u=n()?i*d:0,p=n()?0:i*d,h=-s*Math.abs(d),f=n()?0:m.params.coverflow.stretch*d,v=n()?m.params.coverflow.stretch*d:0;Math.abs(v)<.001&&(v=0),Math.abs(f)<.001&&(f=0),Math.abs(h)<.001&&(h=0),Math.abs(u)<.001&&(u=0),Math.abs(p)<.001&&(p=0);var y="translate3d("+v+"px,"+f+"px,"+h+"px)  rotateX("+p+"deg) rotateY("+u+"deg)";if(a.transform(y),a[0].style.zIndex=-Math.abs(Math.round(d))+1,m.params.coverflow.slideShadows){var w=a.find(n()?".swiper-slide-shadow-left":".swiper-slide-shadow-top"),b=a.find(n()?".swiper-slide-shadow-right":".swiper-slide-shadow-bottom");0===w.length&&(w=g('<div class="swiper-slide-shadow-'+(n()?"left":"top")+'"></div>'),a.append(w)),0===b.length&&(b=g('<div class="swiper-slide-shadow-'+(n()?"right":"bottom")+'"></div>'),a.append(b)),w.length&&(w[0].style.opacity=d>0?d:0),b.length&&(b[0].style.opacity=-d>0?-d:0)}}if(m.browser.ie){var x=m.wrapper[0].style;x.perspectiveOrigin=e+"px 50%"}},setTransition:function(t){m.slides.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t)}}},m.lazy={initialImageLoaded:!1,loadImageInSlide:function(t,e){if("undefined"!=typeof t&&("undefined"==typeof e&&(e=!0),0!==m.slides.length)){var i=m.slides.eq(t),n=i.find(".swiper-lazy:not(.swiper-lazy-loaded):not(.swiper-lazy-loading)");!i.hasClass("swiper-lazy")||i.hasClass("swiper-lazy-loaded")||i.hasClass("swiper-lazy-loading")||n.add(i[0]),0!==n.length&&n.each(function(){var t=g(this);t.addClass("swiper-lazy-loading");var n=t.attr("data-background"),s=t.attr("data-src");m.loadImage(t[0],s||n,!1,function(){if(n?(t.css("background-image","url("+n+")"),t.removeAttr("data-background")):(t.attr("src",s),t.removeAttr("data-src")),t.addClass("swiper-lazy-loaded").removeClass("swiper-lazy-loading"),i.find(".swiper-lazy-preloader, .preloader").remove(),m.params.loop&&e){var r=i.attr("data-swiper-slide-index");if(i.hasClass(m.params.slideDuplicateClass)){var o=m.wrapper.children('[data-swiper-slide-index="'+r+'"]:not(.'+m.params.slideDuplicateClass+")");m.lazy.loadImageInSlide(o.index(),!1)}else{var a=m.wrapper.children("."+m.params.slideDuplicateClass+'[data-swiper-slide-index="'+r+'"]');m.lazy.loadImageInSlide(a.index(),!1)}}m.emit("onLazyImageReady",m,i[0],t[0])}),m.emit("onLazyImageLoad",m,i[0],t[0])})}},load:function(){if(m.params.watchSlidesVisibility)m.wrapper.children("."+m.params.slideVisibleClass).each(function(){m.lazy.loadImageInSlide(g(this).index())});else if(m.params.slidesPerView>1)for(var t=m.activeIndex;t<m.activeIndex+m.params.slidesPerView;t++)m.slides[t]&&m.lazy.loadImageInSlide(t);else m.lazy.loadImageInSlide(m.activeIndex);if(m.params.lazyLoadingInPrevNext){var e=m.wrapper.children("."+m.params.slideNextClass);e.length>0&&m.lazy.loadImageInSlide(e.index());var i=m.wrapper.children("."+m.params.slidePrevClass);i.length>0&&m.lazy.loadImageInSlide(i.index())}},onTransitionStart:function(){m.params.lazyLoading&&(m.params.lazyLoadingOnTransitionStart||!m.params.lazyLoadingOnTransitionStart&&!m.lazy.initialImageLoaded)&&m.lazy.load()},onTransitionEnd:function(){m.params.lazyLoading&&!m.params.lazyLoadingOnTransitionStart&&m.lazy.load()}},m.scrollbar={set:function(){if(m.params.scrollbar){var t=m.scrollbar;t.track=g(m.params.scrollbar),t.drag=t.track.find(".swiper-scrollbar-drag"),0===t.drag.length&&(t.drag=g('<div class="swiper-scrollbar-drag"></div>'),t.track.append(t.drag)),t.drag[0].style.width="",t.drag[0].style.height="",t.trackSize=n()?t.track[0].offsetWidth:t.track[0].offsetHeight,t.divider=m.size/m.virtualSize,t.moveDivider=t.divider*(t.trackSize/m.size),t.dragSize=t.trackSize*t.divider,n()?t.drag[0].style.width=t.dragSize+"px":t.drag[0].style.height=t.dragSize+"px",t.track[0].style.display=t.divider>=1?"none":"",m.params.scrollbarHide&&(t.track[0].style.opacity=0)}},setTranslate:function(){if(m.params.scrollbar){var t,e=m.scrollbar,i=(m.translate||0,e.dragSize);t=(e.trackSize-e.dragSize)*m.progress,m.rtl&&n()?(t=-t,t>0?(i=e.dragSize-t,t=0):-t+e.dragSize>e.trackSize&&(i=e.trackSize+t)):0>t?(i=e.dragSize+t,t=0):t+e.dragSize>e.trackSize&&(i=e.trackSize-t),n()?(e.drag.transform(m.support.transforms3d?"translate3d("+t+"px, 0, 0)":"translateX("+t+"px)"),e.drag[0].style.width=i+"px"):(e.drag.transform(m.support.transforms3d?"translate3d(0px, "+t+"px, 0)":"translateY("+t+"px)"),e.drag[0].style.height=i+"px"),m.params.scrollbarHide&&(clearTimeout(e.timeout),e.track[0].style.opacity=1,e.timeout=setTimeout(function(){e.track[0].style.opacity=0,e.track.transition(400)},1e3))}},setTransition:function(t){m.params.scrollbar&&m.scrollbar.drag.transition(t)}},m.controller={setTranslate:function(t,i){function n(e){t=e.rtl&&"horizontal"===e.params.direction?-m.translate:m.translate,s=(e.maxTranslate()-e.minTranslate())/(m.maxTranslate()-m.minTranslate()),r=(t-m.minTranslate())*s+e.minTranslate(),m.params.controlInverse&&(r=e.maxTranslate()-r),e.updateProgress(r),e.setWrapperTranslate(r,!1,m),e.updateActiveIndex()}var s,r,o=m.params.control;if(m.isArray(o))for(var a=0;a<o.length;a++)o[a]!==i&&o[a]instanceof e&&n(o[a]);else o instanceof e&&i!==o&&n(o)},setTransition:function(t,i){function n(e){e.setWrapperTransition(t,m),0!==t&&(e.onTransitionStart(),e.wrapper.transitionEnd(function(){r&&e.onTransitionEnd()}))}var s,r=m.params.control;if(m.isArray(r))for(s=0;s<r.length;s++)r[s]!==i&&r[s]instanceof e&&n(r[s]);else r instanceof e&&i!==r&&n(r)}},m.hashnav={init:function(){if(m.params.hashnav){m.hashnav.initialized=!0;var t=document.location.hash.replace("#","");if(t)for(var e=0,i=0,n=m.slides.length;n>i;i++){var s=m.slides.eq(i),r=s.attr("data-hash");if(r===t&&!s.hasClass(m.params.slideDuplicateClass)){var o=s.index();m.slideTo(o,e,m.params.runCallbacksOnInit,!0)}}}},setHash:function(){m.hashnav.initialized&&m.params.hashnav&&(document.location.hash=m.slides.eq(m.activeIndex).attr("data-hash")||"")}},m.disableKeyboardControl=function(){g(document).off("keydown",a)},m.enableKeyboardControl=function(){g(document).on("keydown",a)},m._wheelEvent=!1,m._lastWheelScrollTime=(new window.Date).getTime(),m.params.mousewheelControl){if(void 0!==document.onmousewheel&&(m._wheelEvent="mousewheel"),!m._wheelEvent)try{new window.WheelEvent("wheel"),m._wheelEvent="wheel"}catch(M){}m._wheelEvent||(m._wheelEvent="DOMMouseScroll")}m.disableMousewheelControl=function(){return m._wheelEvent?(m.container.off(m._wheelEvent,l),!0):!1},m.enableMousewheelControl=function(){return m._wheelEvent?(m.container.on(m._wheelEvent,l),!0):!1},m.parallax={setTranslate:function(){m.container.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){c(this,m.progress)}),m.slides.each(function(){var t=g(this);t.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){var e=Math.min(Math.max(t[0].progress,-1),1);c(this,e)})})},setTransition:function(t){"undefined"==typeof t&&(t=m.params.speed),m.container.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){var e=g(this),i=parseInt(e.attr("data-swiper-parallax-duration"),10)||t;0===t&&(i=0),e.transition(i)})}},m._plugins=[];for(var N in m.plugins){var P=m.plugins[N](m,m.params[N]);P&&m._plugins.push(P)}return m.callPlugins=function(t){for(var e=0;e<m._plugins.length;e++)t in m._plugins[e]&&m._plugins[e][t](arguments[1],arguments[2],arguments[3],arguments[4],arguments[5])},m.emitterEventListeners={},m.emit=function(t){m.params[t]&&m.params[t](arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]);var e;if(m.emitterEventListeners[t])for(e=0;e<m.emitterEventListeners[t].length;e++)m.emitterEventListeners[t][e](arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]);m.callPlugins&&m.callPlugins(t,arguments[1],arguments[2],arguments[3],arguments[4],arguments[5])},m.on=function(t,e){return t=d(t),m.emitterEventListeners[t]||(m.emitterEventListeners[t]=[]),m.emitterEventListeners[t].push(e),m},m.off=function(t,e){var i;if(t=d(t),"undefined"==typeof e)return m.emitterEventListeners[t]=[],m;if(m.emitterEventListeners[t]&&0!==m.emitterEventListeners[t].length){for(i=0;i<m.emitterEventListeners[t].length;i++)m.emitterEventListeners[t][i]===e&&m.emitterEventListeners[t].splice(i,1);return m}},m.once=function(t,e){t=d(t);var i=function(){e(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4]),m.off(t,i)};return m.on(t,i),m},m.a11y={makeFocusable:function(t){return t[0].tabIndex="0",t},addRole:function(t,e){return t.attr("role",e),t},addLabel:function(t,e){return t.attr("aria-label",e),t},disable:function(t){return t.attr("aria-disabled",!0),t},enable:function(t){return t.attr("aria-disabled",!1),t},onEnterKey:function(t){13===t.keyCode&&(g(t.target).is(m.params.nextButton)?(m.onClickNext(t),m.a11y.notify(m.isEnd?m.params.lastSlideMsg:m.params.nextSlideMsg)):g(t.target).is(m.params.prevButton)&&(m.onClickPrev(t),m.a11y.notify(m.isBeginning?m.params.firstSlideMsg:m.params.prevSlideMsg)))},liveRegion:g('<span class="swiper-notification" aria-live="assertive" aria-atomic="true"></span>'),notify:function(t){var e=m.a11y.liveRegion;0!==e.length&&(e.html(""),e.html(t))},init:function(){if(m.params.nextButton){var t=g(m.params.nextButton);m.a11y.makeFocusable(t),m.a11y.addRole(t,"button"),m.a11y.addLabel(t,m.params.nextSlideMsg)}if(m.params.prevButton){var e=g(m.params.prevButton);m.a11y.makeFocusable(e),m.a11y.addRole(e,"button"),m.a11y.addLabel(e,m.params.prevSlideMsg)}g(m.container).append(m.a11y.liveRegion)},destroy:function(){m.a11y.liveRegion&&m.a11y.liveRegion.length>0&&m.a11y.liveRegion.remove()}},m.init=function(){m.params.loop&&m.createLoop(),m.updateContainerSize(),m.updateSlidesSize(),m.updatePagination(),m.params.scrollbar&&m.scrollbar&&m.scrollbar.set(),"slide"!==m.params.effect&&m.effects[m.params.effect]&&(m.params.loop||m.updateProgress(),m.effects[m.params.effect].setTranslate()),m.params.loop?m.slideTo(m.params.initialSlide+m.loopedSlides,0,m.params.runCallbacksOnInit):(m.slideTo(m.params.initialSlide,0,m.params.runCallbacksOnInit),0===m.params.initialSlide&&(m.parallax&&m.params.parallax&&m.parallax.setTranslate(),m.lazy&&m.params.lazyLoading&&(m.lazy.load(),m.lazy.initialImageLoaded=!0))),m.attachEvents(),m.params.observer&&m.support.observer&&m.initObservers(),m.params.preloadImages&&!m.params.lazyLoading&&m.preloadImages(),m.params.autoplay&&m.startAutoplay(),m.params.keyboardControl&&m.enableKeyboardControl&&m.enableKeyboardControl(),m.params.mousewheelControl&&m.enableMousewheelControl&&m.enableMousewheelControl(),m.params.hashnav&&m.hashnav&&m.hashnav.init(),m.params.a11y&&m.a11y&&m.a11y.init(),m.emit("onInit",m)},m.cleanupStyles=function(){m.container.removeClass(m.classNames.join(" ")).removeAttr("style"),m.wrapper.removeAttr("style"),m.slides&&m.slides.length&&m.slides.removeClass([m.params.slideVisibleClass,m.params.slideActiveClass,m.params.slideNextClass,m.params.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-column").removeAttr("data-swiper-row"),m.paginationContainer&&m.paginationContainer.length&&m.paginationContainer.removeClass(m.params.paginationHiddenClass),m.bullets&&m.bullets.length&&m.bullets.removeClass(m.params.bulletActiveClass),m.params.prevButton&&g(m.params.prevButton).removeClass(m.params.buttonDisabledClass),m.params.nextButton&&g(m.params.nextButton).removeClass(m.params.buttonDisabledClass),m.params.scrollbar&&m.scrollbar&&(m.scrollbar.track&&m.scrollbar.track.length&&m.scrollbar.track.removeAttr("style"),m.scrollbar.drag&&m.scrollbar.drag.length&&m.scrollbar.drag.removeAttr("style"))},m.destroy=function(t,e){m.detachEvents(),m.stopAutoplay(),m.params.loop&&m.destroyLoop(),e&&m.cleanupStyles(),m.disconnectObservers(),m.params.keyboardControl&&m.disableKeyboardControl&&m.disableKeyboardControl(),m.params.mousewheelControl&&m.disableMousewheelControl&&m.disableMousewheelControl(),m.params.a11y&&m.a11y&&m.a11y.destroy(),m.emit("onDestroy"),t!==!1&&(m=null)},m.init(),m}};e.prototype={isSafari:function(){var t=navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}(),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(navigator.userAgent),isArray:function(t){return"[object Array]"===Object.prototype.toString.apply(t)},browser:{
  ie:window.navigator.pointerEnabled||window.navigator.msPointerEnabled,ieTouch:window.navigator.msPointerEnabled&&window.navigator.msMaxTouchPoints>1||window.navigator.pointerEnabled&&window.navigator.maxTouchPoints>1},device:function(){var t=navigator.userAgent,e=t.match(/(Android);?[\s\/]+([\d.]+)?/),i=t.match(/(iPad).*OS\s([\d_]+)/),n=(t.match(/(iPod)(.*OS\s([\d_]+))?/),!i&&t.match(/(iPhone\sOS)\s([\d_]+)/));return{ios:i||n||i,android:e}}(),support:{touch:window.Modernizr&&Modernizr.touch===!0||function(){return!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)}(),transforms3d:window.Modernizr&&Modernizr.csstransforms3d===!0||function(){var t=document.createElement("div").style;return"webkitPerspective"in t||"MozPerspective"in t||"OPerspective"in t||"MsPerspective"in t||"perspective"in t}(),flexbox:function(){for(var t=document.createElement("div").style,e="alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" "),i=0;i<e.length;i++)if(e[i]in t)return!0}(),observer:function(){return"MutationObserver"in window||"WebkitMutationObserver"in window}()},plugins:{}};for(var i=["jQuery","Zepto","Dom7"],n=0;n<i.length;n++)window[i[n]]&&t(window[i[n]]);var s;s="undefined"==typeof Dom7?window.Dom7||window.Zepto||window.jQuery:Dom7,s&&("transitionEnd"in s.fn||(s.fn.transitionEnd=function(t){function e(r){if(r.target===this)for(t.call(this,r),i=0;i<n.length;i++)s.off(n[i],e)}var i,n=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],s=this;if(t)for(i=0;i<n.length;i++)s.on(n[i],e);return this}),"transform"in s.fn||(s.fn.transform=function(t){for(var e=0;e<this.length;e++){var i=this[e].style;i.webkitTransform=i.MsTransform=i.msTransform=i.MozTransform=i.OTransform=i.transform=t}return this}),"transition"in s.fn||(s.fn.transition=function(t){"string"!=typeof t&&(t+="ms");for(var e=0;e<this.length;e++){var i=this[e].style;i.webkitTransitionDuration=i.MsTransitionDuration=i.msTransitionDuration=i.MozTransitionDuration=i.OTransitionDuration=i.transitionDuration=t}return this})),window.Swiper=e}(),"undefined"!=typeof module?module.exports=window.Swiper:"function"==typeof define&&define.amd&&define([],function(){"use strict";return window.Swiper}),!function(t){"use strict";t.fn.imageScale=function(i){return this.each(function(){var n=t(this),s=n.data("imageScale");if(s)"string"==typeof i&&s[i]();else{n.css("opacity",0);var r=n[0].complete,o=t.extend({},t.fn.imageScale.defaults,"object"==typeof i&&i),a=function(){n.data("imageScale",s=new e(this,o)),o.rescaleOnResize&&t(window).resize(function(t){s.scheduleScale()}),s.scale(!0);var i=o.callback;"function"==typeof i?i(n,s):i&&"object"==typeof i&&i.target[i.action].apply(i.target,[n,s])};r?a.apply(n[0]):n.load(a)}})},t.fn.imageScale.defaults={scale:"best-fill",align:"center",parent:null,hideParentOverflow:!0,fadeInDuration:0,rescaleOnResize:!0,callback:null,debug:0};var e=function(e,i){this.options=i,this.element=e;this.$element=t(e);this.elementWidth=e.naturalWidth||e.width,this.elementHeight=e.naturalHeight||e.height,this.$parent=i.parent?i.parent:t(t(e).parent()[0])};t.fn.imageScale.Constructor=e,e.prototype={NONE:"none",FILL:"fill",BEST_FILL:"best-fill",BEST_FIT:"best-fit",BEST_FIT_DOWN_ONLY:"best-fit-down",ALIGN_LEFT:"left",ALIGN_RIGHT:"right",ALIGN_CENTER:"center",ALIGN_TOP:"top",ALIGN_BOTTOM:"bottom",ALIGN_TOP_LEFT:"top-left",ALIGN_TOP_RIGHT:"top-right",ALIGN_BOTTOM_LEFT:"bottom-left",ALIGN_BOTTOM_RIGHT:"bottom-right",constructor:e,scale:function(t){if(!this._isDestroyed){var e=this.options,i=this.$parent,n=(this.element,this.$element);if(t&&(e.hideParentOverflow&&i.css({overflow:"hidden"}),n.css({opacity:1})),this._didScheduleScale=!1,!e.rescaleOnResize||this._needUpdate()){var s=i.outerWidth(),r=i.outerHeight(),o=i.innerWidth(),a=i.innerHeight(),l=s-o,c=r-a,d=n.attr("data-scale"),u=n.attr("data-align"),p=d?d:e.scale,h=u?u:e.align,f=e.fadeInDuration;if(!p)return void(e.debug>2&&console.log("imageScale - DEBUG NOTICE: The scale property is null."));this._cacheDestWidth===s&&this._cacheDestHeight===r&&e.debug>2&&console.log("imageScale - DEBUG NOTICE: The parent size hasn't changed: dest width: '"+s+"' - dest height: '"+r+"'.");var m=this.elementWidth,g=this.elementHeight;if(!(s&&r&&m&&g))return void(e.debug>0&&console.error("imageScale - DEBUG ERROR: The dimensions are incorrect: source width: '"+m+"' - source height: '"+g+"' - dest width: '"+s+"' - dest height: '"+r+"'."));this._cacheDestWidth=s,this._cacheDestHeight=r;var v=this._innerFrameForSize(p,h,m,g,s,r);l&&(v.x-=l/2),c&&(v.y-=c/2),n.css({position:"absolute",top:v.y+"px",left:v.x+"px",width:v.width+"px",height:v.height+"px","max-width":"none"}),t&&f&&(n.css({display:"none"}),n.fadeIn(f))}}},destroy:function(){this._isDestroyed=!0,this.$element.removeData("imageScale")},_innerFrameForSize:function(t,e,i,n,s,r){var o,a,l;if(l={x:0,y:0,width:s,height:r},t===this.FILL)return l;switch(o=s/i,a=r/n,t){case this.BEST_FILL:t=o>a?o:a;break;case this.BEST_FIT:t=a>o?o:a;break;case this.NONE:t=1;break;default:t!==this.BEST_FIT_DOWN_ONLY&&this.options.debug>1&&console.warn("imageScale - DEBUG WARNING: The scale '"+t+"' was not understood."),t=i>s||n>r?a>o?o:a:1}switch(i*=t,n*=t,l.width=Math.round(i),l.height=Math.round(n),e){case this.ALIGN_LEFT:l.x=0,l.y=r/2-n/2;break;case this.ALIGN_RIGHT:l.x=s-i,l.y=r/2-n/2;break;case this.ALIGN_TOP:l.x=s/2-i/2,l.y=0;break;case this.ALIGN_BOTTOM:l.x=s/2-i/2,l.y=r-n;break;case this.ALIGN_TOP_LEFT:l.x=0,l.y=0;break;case this.ALIGN_TOP_RIGHT:l.x=s-i,l.y=0;break;case this.ALIGN_BOTTOM_LEFT:l.x=0,l.y=r-n;break;case this.ALIGN_BOTTOM_RIGHT:l.x=s-i,l.y=r-n;break;default:e!==this.ALIGN_CENTER&&this.options.debug>1&&console.warn("imageScale - DEBUG WARNING: The align '"+e+"' was not understood."),l.x=s/2-i/2,l.y=r/2-n/2}return l},_needUpdate:function(){var e=t(window).height()+" "+t(window).width();return this._lastWindowSize!==e?(this._lastWindowSize=e,!0):!1},scheduleScale:function(){if(!this._didScheduleScale)if(window.requestAnimationFrame){var t=this;this._didScheduleScale=!0,requestAnimationFrame(function(){t.scale()})}else this.scale()},_cacheDestWidth:null,_cacheDestHeight:null,_lastWindowSize:null,_didScheduleScale:null}}(window.jQuery),function(t,e,i,n){function s(e,i){e.owlCarousel={name:"Owl Carousel",author:"Bartosz Wojciechowski",version:"2.0.0-beta.2.1"},this.settings=null,this.options=t.extend({},s.Defaults,i),this.itemData=t.extend({},u),this.dom=t.extend({},p),this.width=t.extend({},h),this.num=t.extend({},f),this.drag=t.extend({},g),this.state=t.extend({},v),this.e=t.extend({},y),this.plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=null,this.dom.el=e,this.dom.$el=t(e);for(var n in s.Plugins)this.plugins[n[0].toLowerCase()+n.slice(1)]=new s.Plugins[n](this);this.init()}function r(t){var e,n,s=i.createElement("div"),r=t;for(e in r)if(n=r[e],"undefined"!=typeof s.style[n])return s=null,[n,e];return[!1]}function o(){return r(["transition","WebkitTransition","MozTransition","OTransition"])[1]}function a(){return r(["transform","WebkitTransform","MozTransform","OTransform","msTransform"])[0]}function l(){return r(["perspective","webkitPerspective","MozPerspective","OPerspective","MsPerspective"])[0]}function c(){return"ontouchstart"in e||!!navigator.msMaxTouchPoints}function d(){return e.navigator.msPointerEnabled}var u,p,h,f,m,g,v,y;u={index:!1,indexAbs:!1,posLeft:!1,clone:!1,active:!1,loaded:!1,lazyLoad:!1,current:!1,width:!1,center:!1,page:!1,hasVideo:!1,playVideo:!1},p={el:null,$el:null,stage:null,$stage:null,oStage:null,$oStage:null,$items:null,$oItems:null,$cItems:null,$content:null},h={el:0,stage:0,item:0,prevWindow:0,cloneLast:0},f={items:0,oItems:0,cItems:0,active:0,merged:[]},g={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},v={isTouch:!1,isScrolling:!1,isSwiping:!1,direction:!1,inMotion:!1},y={_onDragStart:null,_onDragMove:null,_onDragEnd:null,_transitionEnd:null,_resizer:null,_responsiveCall:null,_goToLoop:null,_checkVisibile:null},s.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,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"},s.Plugins={},s.prototype.init=function(){if(this.setResponsiveOptions(),this.trigger("initialize"),this.dom.$el.hasClass(this.settings.baseClass)||this.dom.$el.addClass(this.settings.baseClass),this.dom.$el.hasClass(this.settings.themeClass)||this.dom.$el.addClass(this.settings.themeClass),this.settings.rtl&&this.dom.$el.addClass("owl-rtl"),this.browserSupport(),this.settings.autoWidth&&this.state.imagesLoaded!==!0){var t,e,i;if(t=this.dom.$el.find("img"),e=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:n,i=this.dom.$el.children(e).width(),t.length&&0>=i)return this.preloadAutoWidthImages(t),!1}this.width.prevWindow=this.viewport(),this.createStage(),this.fetchContent(),this.eventsCall(),this.internalEvents(),this.dom.$el.addClass("owl-loading"),this.refresh(!0),this.dom.$el.removeClass("owl-loading").addClass("owl-loaded"),this.trigger("initialized"),this.addTriggerableEvents()},s.prototype.setResponsiveOptions=function(){if(this.options.responsive){var e=this.viewport(),i=this.options.responsive,n=-1;t.each(i,function(t){e>=t&&t>n&&(n=Number(t))}),this.settings=t.extend({},this.options,i[n]),delete this.settings.responsive,this.settings.responsiveClass&&this.dom.$el.attr("class",function(t,e){return e.replace(/\b owl-responsive-\S+/g,"")}).addClass("owl-responsive-"+n)}else this.settings=t.extend({},this.options)},s.prototype.optionsLogic=function(){this.dom.$el.toggleClass("owl-center",this.settings.center),this.settings.loop&&this.num.oItems<this.settings.items&&(this.settings.loop=!1),this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},s.prototype.createStage=function(){var e=i.createElement("div"),n=i.createElement(this.settings.stageElement);e.className="owl-stage-outer",n.className="owl-stage",e.appendChild(n),this.dom.el.appendChild(e),this.dom.oStage=e,this.dom.$oStage=t(e),this.dom.stage=n,this.dom.$stage=t(n),e=null,n=null},s.prototype.createItemContainer=function(){var e=i.createElement(this.settings.itemElement);return e.className=this.settings.itemClass,t(e)},s.prototype.fetchContent=function(e){this.dom.$content=e?e instanceof jQuery?e:t(e):this.settings.nestedItemSelector?this.dom.$el.find("."+this.settings.nestedItemSelector).not(".owl-stage-outer"):this.dom.$el.children().not(".owl-stage-outer"),this.num.oItems=this.dom.$content.length,0!==this.num.oItems&&this.initStructure()},s.prototype.initStructure=function(){this.createNormalStructure()},s.prototype.createNormalStructure=function(){var t,e;for(t=0;t<this.num.oItems;t++)e=this.createItemContainer(),this.initializeItemContainer(e,this.dom.$content[t]),this.dom.$stage.append(e);this.dom.$content=null},s.prototype.createCustomStructure=function(t){var e,i;for(e=0;t>e;e++)i=this.createItemContainer(),this.createItemContainerData(i),this.dom.$stage.append(i)},s.prototype.initializeItemContainer=function(t,e){this.trigger("change",{property:{name:"item",value:t}}),this.createItemContainerData(t),t.append(e),this.trigger("changed",{property:{name:"item",value:t}})},s.prototype.createItemContainerData=function(e,i){var n=t.extend({},this.itemData);i&&t.extend(n,i.data("owl-item")),e.data("owl-item",n)},s.prototype.cloneItemContainer=function(t){var e=t.clone(!0,!0).addClass("cloned");return this.createItemContainerData(e,e),e.data("owl-item").clone=!0,e},s.prototype.updateLocalContent=function(){var e,i;for(this.dom.$oItems=this.dom.$stage.find("."+this.settings.itemClass).filter(function(){return t(this).data("owl-item").clone===!1}),this.num.oItems=this.dom.$oItems.length,e=0;e<this.num.oItems;e++)i=this.dom.$oItems.eq(e),i.data("owl-item").index=e},s.prototype.loopClone=function(){if(!this.settings.loop||this.num.oItems<this.settings.items)return!1;var e,i,n,s=this.settings.items,r=this.num.oItems-1;for(this.settings.stagePadding&&1===this.settings.items&&(s+=1),this.num.cItems=2*s,n=0;s>n;n++)e=this.cloneItemContainer(this.dom.$oItems.eq(n)),i=this.cloneItemContainer(this.dom.$oItems.eq(r-n)),this.dom.$stage.append(e),this.dom.$stage.prepend(i);this.dom.$cItems=this.dom.$stage.find("."+this.settings.itemClass).filter(function(){return t(this).data("owl-item").clone===!0})},s.prototype.reClone=function(){null!==this.dom.$cItems&&(this.dom.$cItems.remove(),this.dom.$cItems=null,this.num.cItems=0),this.settings.loop&&this.loopClone()},s.prototype.calculate=function(){var t,e,i,n,s,r,o,a=0,l=0;for(this.width.el=this.dom.$el.width()-2*this.settings.stagePadding,this.width.view=this.dom.$el.width(),i=this.width.el-this.settings.margin*(1===this.settings.items?0:this.settings.items-1),this.width.el=this.width.el+this.settings.margin,this.width.item=(i/this.settings.items+this.settings.margin).toFixed(3),this.dom.$items=this.dom.$stage.find(".owl-item"),this.num.items=this.dom.$items.length,this.settings.autoWidth&&this.dom.$items.css("width",""),this._coordinates=[],this.num.merged=[],n=this.settings.rtl?this.settings.center?-(this.width.el/2):0:this.settings.center?this.width.el/2:0,this.width.mergeStage=0,t=0;t<this.num.items;t++)this.settings.merge?(o=this.dom.$items.eq(t).find("[data-merge]").attr("data-merge")||1,this.settings.mergeFit&&o>this.settings.items&&(o=this.settings.items),this.num.merged.push(parseInt(o)),this.width.mergeStage+=this.width.item*this.num.merged[t]):this.num.merged.push(1),r=this.width.item*this.num.merged[t],this.settings.autoWidth&&(r=this.dom.$items.eq(t).width()+this.settings.margin,this.settings.rtl?this.dom.$items[t].style.marginLeft=this.settings.margin+"px":this.dom.$items[t].style.marginRight=this.settings.margin+"px"),this._coordinates.push(n),this.dom.$items.eq(t).data("owl-item").posLeft=a,this.dom.$items.eq(t).data("owl-item").width=r,this.settings.rtl?(n+=r,a+=r):(n-=r,a-=r),l-=Math.abs(r),this.settings.center&&(this._coordinates[t]=this.settings.rtl?this._coordinates[t]+r/2:this._coordinates[t]-r/2);for(this.width.stage=Math.abs(this.settings.autoWidth?this.settings.center?l:n:l),s=this.num.oItems+this.num.cItems,e=0;s>e;e++)this.dom.$items.eq(e).data("owl-item").indexAbs=e;this.setSizes()},s.prototype.setSizes=function(){this.settings.stagePadding!==!1&&(this.dom.oStage.style.paddingLeft=this.settings.stagePadding+"px",this.dom.oStage.style.paddingRight=this.settings.stagePadding+"px"),this.settings.rtl?e.setTimeout(t.proxy(function(){this.dom.stage.style.width=this.width.stage+"px"},this),0):this.dom.stage.style.width=this.width.stage+"px";for(var i=0;i<this.num.items;i++)this.settings.autoWidth||(this.dom.$items[i].style.width=this.width.item-this.settings.margin+"px"),this.settings.rtl?this.dom.$items[i].style.marginLeft=this.settings.margin+"px":this.dom.$items[i].style.marginRight=this.settings.margin+"px",1===this.num.merged[i]||this.settings.autoWidth||(this.dom.$items[i].style.width=this.width.item*this.num.merged[i]-this.settings.margin+"px");this.width.stagePrev=this.width.stage},s.prototype.responsive=function(){if(!this.num.oItems)return!1;var t=this.isElWidthChanged();return t?this.trigger("resize").isDefaultPrevented()?!1:(this.state.responsive=!0,this.refresh(),this.state.responsive=!1,void this.trigger("resized")):!1},s.prototype.refresh=function(){var t=this.dom.$oItems&&this.dom.$oItems.eq(this.normalize(this.current(),!0));return this.trigger("refresh"),this.setResponsiveOptions(),this.updateLocalContent(),this.optionsLogic(),0===this.num.oItems?!1:(this.dom.$stage.addClass("owl-refresh"),this.reClone(),this.calculate(),this.dom.$stage.removeClass("owl-refresh"),t?this.reset(t.data("owl-item").indexAbs):(this.dom.oStage.scrollLeft=0,this.reset(this.dom.$oItems.eq(0).data("owl-item").indexAbs)),this.state.orientation=e.orientation,this.watchVisibility(),void this.trigger("refreshed"))},s.prototype.updateActiveItems=function(){this.trigger("change",{property:{name:"items",value:this.dom.$items}});var t,e,i,n,s,r;for(t=0;t<this.num.items;t++)this.dom.$items.eq(t).data("owl-item").active=!1,this.dom.$items.eq(t).data("owl-item").current=!1,this.dom.$items.eq(t).removeClass(this.settings.activeClass).removeClass(this.settings.centerClass);for(this.num.active=0,padding=2*this.settings.stagePadding,stageX=this.coordinates(this.current())+padding,view=this.settings.rtl?this.width.view:-this.width.view,e=0;e<this.num.items;e++)i=this.dom.$items.eq(e),n=i.data("owl-item").posLeft,s=i.data("owl-item").width,r=this.settings.rtl?n-s-padding:n-s+padding,(this.op(n,"<=",stageX)&&this.op(n,">",stageX+view)||this.op(r,"<",stageX)&&this.op(r,">",stageX+view))&&(this.num.active++,i.data("owl-item").active=!0,i.data("owl-item").current=!0,i.addClass(this.settings.activeClass),this.settings.lazyLoad||(i.data("owl-item").loaded=!0),this.settings.loop&&this.updateClonedItemsState(i.data("owl-item").index));this.settings.center&&(this.dom.$items.eq(this.current()).addClass(this.settings.centerClass).data("owl-item").center=!0),this.trigger("changed",{property:{name:"items",value:this.dom.$items}})},s.prototype.updateClonedItemsState=function(t){var e,i,n;for(this.settings.center&&(e=this.dom.$items.eq(this.current()).data("owl-item").index),n=0;n<this.num.items;n++)i=this.dom.$items.eq(n),i.data("owl-item").index===t&&(i.data("owl-item").current=!0,i.data("owl-item").index===e&&i.addClass(this.settings.centerClass))},s.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._transitionEnd=t.proxy(function(t){this.transitionEnd(t)},this),this.e._resizer=t.proxy(function(){this.responsiveTimer()},this),this.e._responsiveCall=t.proxy(function(){this.responsive()},this),this.e._preventClick=t.proxy(function(t){this.preventClick(t)},this)},s.prototype.responsiveTimer=function(){return this.viewport()===this.width.prevWindow?!1:(e.clearTimeout(this.resizeTimer),this.resizeTimer=e.setTimeout(this.e._responsiveCall,this.settings.responsiveRefreshRate),void(this.width.prevWindow=this.viewport()))},s.prototype.internalEvents=function(){var t=c(),n=d();this.dragType=t&&!n?["touchstart","touchmove","touchend","touchcancel"]:t&&n?["MSPointerDown","MSPointerMove","MSPointerUp","MSPointerCancel"]:["mousedown","mousemove","mouseup"],(t||n)&&this.settings.touchDrag?this.on(i,this.dragType[3],this.e._onDragEnd):(this.dom.$stage.on("dragstart",function(){return!1}),this.settings.mouseDrag?this.dom.stage.onselectstart=function(){return!1}:this.dom.$el.addClass("owl-text-select-on")),this.transitionEndVendor&&this.on(this.dom.stage,this.transitionEndVendor,this.e._transitionEnd,!1),this.settings.responsive!==!1&&this.on(e,"resize",this.e._resizer,!1),this.dragEvents()},s.prototype.dragEvents=function(){!this.settings.touchDrag||"touchstart"!==this.dragType[0]&&"MSPointerDown"!==this.dragType[0]?this.settings.mouseDrag&&"mousedown"===this.dragType[0]?this.on(this.dom.stage,this.dragType[0],this.e._onDragStart,!1):this.off(this.dom.stage,this.dragType[0],this.e._onDragStart):this.on(this.dom.stage,this.dragType[0],this.e._onDragStart,!1)},s.prototype.onDragStart=function(t){var n,s,r,o,a;if(n=t.originalEvent||t||e.event,3===n.which)return!1;if("mousedown"===this.dragType[0]&&this.dom.$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,s="touchstart"===n.type,r=s?t.targetTouches[0].pageX:n.pageX||n.clientX,o=s?t.targetTouches[0].pageY:n.pageY||n.clientY,this.drag.offsetX=this.dom.$stage.position().left-this.settings.stagePadding,this.drag.offsetY=this.dom.$stage.position().top,this.settings.rtl&&(this.drag.offsetX=this.dom.$stage.position().left+this.width.stage-this.width.el+this.settings.margin),this.state.inMotion&&this.support3d)a=this.getTransformProperty(),this.drag.offsetX=a,this.animate(a),this.state.inMotion=!0;else if(this.state.inMotion&&!this.support3d)return this.state.inMotion=!1,!1;this.drag.startX=r-this.drag.offsetX,this.drag.startY=o-this.drag.offsetY,this.drag.start=r-this.drag.startX,this.drag.targetEl=n.target||n.srcElement,this.drag.updatedX=this.drag.start,("IMG"===this.drag.targetEl.tagName||"A"===this.drag.targetEl.tagName)&&(this.drag.targetEl.draggable=!1),this.on(i,this.dragType[1],this.e._onDragMove,!1),this.on(i,this.dragType[2],this.e._onDragEnd,!1)},s.prototype.onDragMove=function(t){var i,s,r,o,a,l,c;this.state.isTouch&&(this.state.isScrolling||(i=t.originalEvent||t||e.event,s="touchmove"==i.type,r=s?i.targetTouches[0].pageX:i.pageX||i.clientX,o=s?i.targetTouches[0].pageY:i.pageY||i.clientY,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.num.oItems):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.num.oItems)):(a=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,a+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)))},s.prototype.onDragEnd=function(){var t,e,n;if(this.state.isTouch){if("mousedown"===this.dragType[0]&&this.dom.$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(),t=this.drag.endTime-this.drag.startTime,e=Math.abs(this.drag.distance),(e>3||t>300)&&this.removeClick(this.drag.targetEl),n=this.closest(this.drag.updatedX),this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(n),this.settings.pullDrag||this.drag.updatedX!==this.coordinates(n)||this.transitionEnd(),this.drag.distance=0,this.off(i,this.dragType[1],this.e._onDragMove),this.off(i,this.dragType[2],this.e._onDragEnd)}},s.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)},s.prototype.preventClick=function(e){e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),t(e.target).off("click.preventClick")},s.prototype.getTransformProperty=function(){var t,i;return t=e.getComputedStyle(this.dom.stage,null).getPropertyValue(this.vendorName+"transform"),t=t.replace(/matrix(3d)?\(|\)/g,"").split(","),i=16===t.length,i!==!0?t[4]:t[12]},s.prototype.closest=function(e){var i=0,n=30;return this.settings.freeDrag||t.each(this.coordinates(),t.proxy(function(t,s){e>s-n&&s+n>e?i=t:this.op(e,"<",s)&&this.op(e,">",this.coordinates(t+1)||s-this.width.el)&&(i="left"===this.state.direction?t+1:t)},this)),this.settings.loop||(this.op(e,">",this.coordinates(this.minimum()))?i=e=this.minimum():this.op(e,"<",this.coordinates(this.maximum()))&&(i=e=this.maximum())),i},s.prototype.animate=function(e){this.trigger("translate"),this.state.inMotion=this.speed()>0,this.support3d?this.dom.$stage.css({transform:"translate3d("+e+"px,0px, 0px)",transition:this.speed()/1e3+"s"}):this.state.isTouch?this.dom.$stage.css({left:e+"px"}):this.dom.$stage.animate({left:e},this.speed()/1e3,this.settings.fallbackEasing,t.proxy(function(){this.state.inMotion&&this.transitionEnd()},this))},s.prototype.current=function(t){if(t===n)return this._current;if(0===this.num.oItems)return n;if(t=this.normalize(t),this._current===t)this.animate(this.coordinates(this._current));else{var e=this.trigger("change",{property:{name:"position",value:t}});e.data!==n&&(t=this.normalize(e.data)),this._current=t,this.animate(this.coordinates(this._current)),this.updateActiveItems(),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},s.prototype.reset=function(t){this.suppress(["change","changed"]),this.speed(0),this.current(t),this.release(["change","changed"])},s.prototype.normalize=function(t,e){if(t===n||!this.dom.$items)return n;if(this.settings.loop){var i=this.dom.$items.length;t=(t%i+i)%i}else t=Math.max(this.minimum(),Math.min(this.maximum(),t));return e?this.dom.$items.eq(t).data("owl-item").index:t},s.prototype.maximum=function(){var e,i,n=this.settings;if(!n.loop&&n.center)e=this.num.oItems-1;else if(n.loop||n.center)if(n.loop||n.center)e=this.num.oItems+n.items;else{if(!n.autoWidth&&!n.merge)throw"Can not detect maximum absolute position.";revert=n.rtl?1:-1,i=this.dom.$stage.width()-this.$el.width(),t.each(this.coordinates(),function(t,n){return n*revert>=i?!1:void(e=t+1)})}else e=this.num.oItems-n.items;return e},s.prototype.minimum=function(){return this.dom.$oItems.eq(0).data("owl-item").indexAbs},s.prototype.speed=function(t){return t!==n&&(this._speed=t),this._speed},s.prototype.coordinates=function(t){return t!==n?this._coordinates[t]:this._coordinates},s.prototype.duration=function(t,e,i){return Math.min(Math.max(Math.abs(e-t),1),6)*Math.abs(i||this.settings.smartSpeed)},s.prototype.to=function(i,n){if(this.settings.loop){var s=i-this.normalize(this.current(),!0),r=this.current(),o=this.current(),a=this.current()+s,l=0>o-a?!0:!1;a<this.settings.items&&l===!1?(r=this.num.items-(this.settings.items-o)-this.settings.items,this.reset(r)):a>=this.num.items-this.settings.items&&l===!0&&(r=o-this.num.oItems,this.reset(r)),e.clearTimeout(this.e._goToLoop),this.e._goToLoop=e.setTimeout(t.proxy(function(){this.speed(this.duration(this.current(),r+s,n)),this.current(r+s)},this),30)}else this.speed(this.duration(this.current(),i,n)),this.current(i)},s.prototype.next=function(t){t=t||!1,this.to(this.normalize(this.current(),!0)+1,t)},s.prototype.prev=function(t){t=t||!1,this.to(this.normalize(this.current(),!0)-1,t)},s.prototype.transitionEnd=function(t){if(t!==n){t.stopPropagation();var e=t.target||t.srcElement||t.originalTarget;if(e!==this.dom.stage)return!1}this.state.inMotion=!1,this.trigger("translated")},s.prototype.isElWidthChanged=function(){var t=this.dom.$el.width()-this.settings.stagePadding,e=this.width.el+this.settings.margin;return t!==e},s.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},s.prototype.insertContent=function(t){this.dom.$stage.empty(),this.fetchContent(t),this.refresh()},s.prototype.addItem=function(t,e){var i=this.createItemContainer();e=e||0,this.initializeItemContainer(i,t),0===this.dom.$oItems.length?this.dom.$stage.append(i):-1!==m?this.dom.$oItems.eq(e).before(i):this.dom.$oItems.eq(e).after(i),this.refresh()},s.prototype.removeItem=function(t){this.dom.$oItems.eq(t).remove(),this.refresh()},s.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.insertContent,add:this.addItem,remove:this.removeItem},t.proxy(function(t,i){this.dom.$el.on(t+".owl.carousel",e(i,t+".owl.carousel"))},this))},s.prototype.watchVisibility=function(){function i(t){return t.offsetWidth>0&&t.offsetHeight>0}function n(){i(this.dom.el)&&(this.dom.$el.removeClass("owl-hidden"),this.refresh(),e.clearInterval(this.e._checkVisibile))}i(this.dom.el)||(this.dom.$el.addClass("owl-hidden"),e.clearInterval(this.e._checkVisibile),this.e._checkVisibile=e.setInterval(t.proxy(n,this),500))},s.prototype.preloadAutoWidthImages=function(e){var i,n,s,r;i=0,n=this,e.each(function(o,a){s=t(a),r=new Image,r.onload=function(){i++,s.attr("src",r.src),s.css("opacity",1),i>=e.length&&(n.state.imagesLoaded=!0,n.init())},r.src=s.attr("src")||s.attr("data-src")||s.attr("data-src-retina")})},s.prototype.destroy=function(){this.dom.$el.hasClass(this.settings.themeClass)&&this.dom.$el.removeClass(this.settings.themeClass),this.settings.responsive!==!1&&this.off(e,"resize",this.e._resizer),this.transitionEndVendor&&this.off(this.dom.stage,this.transitionEndVendor,this.e._transitionEnd);for(var t in this.plugins)this.plugins[t].destroy();(this.settings.mouseDrag||this.settings.touchDrag)&&(this.off(this.dom.stage,this.dragType[0],this.e._onDragStart),this.settings.mouseDrag&&this.off(i,this.dragType[3],this.e._onDragStart),this.settings.mouseDrag&&(this.dom.$stage.off("dragstart",function(){return!1}),this.dom.stage.onselectstart=function(){})),this.dom.$el.off(".owl"),null!==this.dom.$cItems&&this.dom.$cItems.remove(),this.e=null,this.dom.$el.data("owlCarousel",null),delete this.dom.el.owlCarousel,this.dom.$stage.unwrap(),this.dom.$items.unwrap(),this.dom.$items.contents().unwrap(),this.dom=null},s.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}},s.prototype.on=function(t,e,i,n){t.addEventListener?t.addEventListener(e,i,n):t.attachEvent&&t.attachEvent("on"+e,i)},s.prototype.off=function(t,e,i,n){t.removeEventListener?t.removeEventListener(e,i,n):t.detachEvent&&t.detachEvent("on"+e,i)},s.prototype.trigger=function(e,i,n){var s={item:{count:this.num.oItems,index:this.current()}},r=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},s,i));return this._supress[o.type]||(t.each(this.plugins,function(t,e){e.onTrigger&&e.onTrigger(o)}),this.dom.$el.trigger(o),"function"==typeof this.settings[r]&&this.settings[r].apply(this,o)),o},s.prototype.suppress=function(e){t.each(e,t.proxy(function(t,e){this._supress[e]=!0},this))},s.prototype.release=function(e){t.each(e,t.proxy(function(t,e){delete this._supress[e]},this))},s.prototype.browserSupport=function(){if(this.support3d=l(),this.support3d){this.transformVendor=a();var t=["transitionend","webkitTransitionEnd","transitionend","oTransitionEnd"];this.transitionEndVendor=t[o()],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 s(this,e))})},t.fn.owlCarousel.Constructor=s;
  
  }(window.Zepto||window.jQuery,window,document),function(t,e,i,n){LazyLoad=function(e){this.owl=e,this.owl.options=t.extend({},LazyLoad.Defaults,this.owl.options),this.handlers={"changed.owl.carousel":t.proxy(function(t){"items"==t.property.name&&t.property.value&&!t.property.value.is(":empty")&&this.check()},this)},this.owl.dom.$el.on(this.handlers)},LazyLoad.Defaults={lazyLoad:!1},LazyLoad.prototype.check=function(){var t,i,n,s,r=e.devicePixelRatio>1?"data-src-retina":"data-src";for(n=0;n<this.owl.num.items;n++)s=this.owl.dom.$items.eq(n),s.data("owl-item").current===!0&&s.data("owl-item").loaded===!1&&(i=s.find(".owl-lazy"),t=i.attr(r),t=t||i.attr("data-src"),t&&(i.css("opacity","0"),this.preload(i,s)))},LazyLoad.prototype.preload=function(i,n){var s,r,o;i.each(t.proxy(function(i,a){this.owl.trigger("load",null,"lazy"),s=t(a),r=new Image,o=s.attr(e.devicePixelRatio>1?"data-src-retina":"data-src"),o=o||s.attr("data-src"),r.onload=t.proxy(function(){n.data("owl-item").loaded=!0,s.is("img")?s.attr("src",r.src):s.css("background-image","url("+r.src+")"),s.css("opacity",1),this.owl.trigger("loaded",null,"lazy")},this),r.src=o},this))},LazyLoad.prototype.destroy=function(){var t,e;for(t in this.handlers)this.owl.dom.$el.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.lazyLoad=LazyLoad}(window.Zepto||window.jQuery,window,document),function(t,e,i,n){AutoHeight=function(e){this.owl=e,this.owl.options=t.extend({},AutoHeight.Defaults,this.owl.options),this.handlers={"changed.owl.carousel":t.proxy(function(t){"position"==t.property.name&&this.owl.settings.autoHeight&&this.setHeight()},this)},this.owl.dom.$el.on(this.handlers)},AutoHeight.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},AutoHeight.prototype.setHeight=function(){var t,i=this.owl.dom.$items.eq(this.owl.current()),n=this.owl.dom.$oStage,s=0;this.owl.dom.$oStage.hasClass(this.owl.settings.autoHeightClass)||this.owl.dom.$oStage.addClass(this.owl.settings.autoHeightClass),t=e.setInterval(function(){s+=1,i.data("owl-item").loaded?(n.height(i.height()+"px"),clearInterval(t)):500===s&&clearInterval(t)},100)},AutoHeight.prototype.destroy=function(){var t,e;for(t in this.handlers)this.owl.dom.$el.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.autoHeight=AutoHeight}(window.Zepto||window.jQuery,window,document),function(t,e,i,n){Video=function(e){this.owl=e,this.owl.options=t.extend({},Video.Defaults,this.owl.options),this.handlers={"resize.owl.carousel":t.proxy(function(t){this.owl.settings.video&&!this.isInFullScreen()&&t.preventDefault()},this),"refresh.owl.carousel changed.owl.carousel":t.proxy(function(t){this.owl.state.videoPlay&&this.stopVideo()},this),"refresh.owl.carousel refreshed.owl.carousel":t.proxy(function(t){return this.owl.settings.video?void(this.refreshing="refresh"==t.type):!1},this),"changed.owl.carousel":t.proxy(function(t){this.refreshing&&"items"==t.property.name&&t.property.value&&!t.property.value.is(":empty")&&this.checkVideoLinks()},this)},this.owl.dom.$el.on(this.handlers),this.owl.dom.$el.on("click.owl.video",".owl-video-play-icon",t.proxy(function(t){this.playVideo(t)},this))},Video.Defaults={video:!1,videoHeight:!1,videoWidth:!1},Video.prototype.checkVideoLinks=function(){var t,e,i;for(i=0;i<this.owl.num.items;i++)e=this.owl.dom.$items.eq(i),e.data("owl-item").hasVideo||(t=e.find(".owl-video"),t.length&&(this.owl.state.hasVideos=!0,this.owl.dom.$items.eq(i).data("owl-item").hasVideo=!0,t.css("display","none"),this.getVideoInfo(t,e)))},Video.prototype.getVideoInfo=function(t,e){var i,n,s,r,o=t.data("vimeo-id"),a=t.data("youtube-id"),l=t.data("width")||this.owl.settings.videoWidth,c=t.data("height")||this.owl.settings.videoHeight,d=t.attr("href");if(o)n="vimeo",s=o;else if(a)n="youtube",s=a;else{if(!d)throw new Error("Missing video link.");s=d.match(/(http:|https:|)\/\/(player.|www.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com))\/(video\/|embed\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/),s[3].indexOf("youtu")>-1?n="youtube":s[3].indexOf("vimeo")>-1&&(n="vimeo"),s=s[6]}e.data("owl-item").videoType=n,e.data("owl-item").videoId=s,e.data("owl-item").videoWidth=l,e.data("owl-item").videoHeight=c,i={type:n,id:s},r=l&&c?'style="width:'+l+"px;height:"+c+'px;"':"",t.wrap('<div class="owl-video-wrapper"'+r+"></div>"),this.createVideoTn(t,i)},Video.prototype.createVideoTn=function(e,i){function n(t){r='<div class="owl-video-play-icon"></div>',s=d.settings.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(s),e.after(r)}var s,r,o,a=e.find("img"),l="src",c="",d=this.owl;return this.owl.settings.lazyLoad&&(l="data-src",c="owl-lazy"),a.length?(n(a.attr(l)),a.remove(),!1):void("youtube"===i.type?(o="http://img.youtube.com/vi/"+i.id+"/hqdefault.jpg",n(o)):"vimeo"===i.type&&t.ajax({type:"GET",url:"http://vimeo.com/api/v2/video/"+i.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){o=t[0].thumbnail_large,n(o),d.settings.loop&&d.updateActiveItems()}}))},Video.prototype.stopVideo=function(){this.owl.trigger("stop",null,"video");var t=this.owl.dom.$items.eq(this.owl.state.videoPlayIndex);t.find(".owl-video-frame").remove(),t.removeClass("owl-video-playing"),this.owl.state.videoPlay=!1},Video.prototype.playVideo=function(e){this.owl.trigger("play",null,"video"),this.owl.state.videoPlay&&this.stopVideo();var i,n,s,r=t(e.target||e.srcElement),o=r.closest("."+this.owl.settings.itemClass);s=o.data("owl-item").videoType,id=o.data("owl-item").videoId,width=o.data("owl-item").videoWidth||Math.floor(o.data("owl-item").width-this.owl.settings.margin),height=o.data("owl-item").videoHeight||this.owl.dom.$stage.height(),"youtube"===s?i='<iframe width="'+width+'" height="'+height+'" src="http://www.youtube.com/embed/'+id+"?autoplay=1&v="+id+'" frameborder="0" allowfullscreen></iframe>':"vimeo"===s&&(i='<iframe src="http://player.vimeo.com/video/'+id+'?autoplay=1" width="'+width+'" height="'+height+'" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>'),o.addClass("owl-video-playing"),this.owl.state.videoPlay=!0,this.owl.state.videoPlayIndex=o.data("owl-item").indexAbs,n=t('<div style="height:'+height+"px; width:"+width+'px" class="owl-video-frame">'+i+"</div>"),r.after(n)},Video.prototype.isInFullScreen=function(){var n=i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement;return n&&t(n.parentNode).hasClass("owl-video-frame")&&(this.owl.speed(0),this.owl.state.isFullScreen=!0),n&&this.owl.state.isFullScreen&&this.owl.state.videoPlay?!1:this.owl.state.isFullScreen?(this.owl.state.isFullScreen=!1,!1):this.owl.state.videoPlay&&this.owl.state.orientation!==e.orientation?(this.owl.state.orientation=e.orientation,!1):!0},Video.prototype.destroy=function(){var t,e;this.owl.dom.$el.off("click.owl.video");for(t in this.handlers)this.owl.dom.$el.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.video=Video}(window.Zepto||window.jQuery,window,document),function(t,e,i,n){Animate=function(e){this.core=e,this.core.options=t.extend({},Animate.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(t){this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.dom.$el.on(this.handlers)},Animate.Defaults={animateOut:!1,animateIn:!1},Animate.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.dom.$items.eq(this.previous),s=this.core.dom.$items.eq(this.next),r=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)),r&&s.addClass("animated owl-animated-in").addClass(r).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",i))}},Animate.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()},Animate.prototype.destroy=function(){var t,e;for(t in this.handlers)this.core.dom.$el.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Animate=Animate}(window.Zepto||window.jQuery,window,document),function(t,e,i,n){Autoplay=function(e){this.core=e,this.core.options=t.extend({},Autoplay.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.dom.$el.on(this.handlers)},Autoplay.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},Autoplay.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)},Autoplay.prototype.play=function(t,n){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)},Autoplay.prototype.stop=function(){e.clearInterval(this.interval)},Autoplay.prototype.pause=function(){e.clearInterval(this.interval)},Autoplay.prototype.destroy=function(){var t,i;e.clearInterval(this.interval);for(t in this.handlers)this.core.dom.$el.off(t,this.handlers[t]);for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)},t.fn.owlCarousel.Constructor.Plugins.autoplay=Autoplay}(window.Zepto||window.jQuery,window,document),function(t,e,i,n){"use strict";var s=function(e){this.core=e,this.initialized=!1,this.pages=[],this.controls={},this.template=null,this.$element=this.core.dom.$el,this.overrides={next:this.core.next,prev:this.core.prev,to:this.core.to},this.handlers={"changed.owl.carousel":t.proxy(function(e){"items"==e.property.name&&(this.initialized||(this.initialize(),this.initialized=!0),this.update(),this.draw()),this.filling&&(e.property.value.data("owl-item").dot=t(":first-child",e.property.value).find("[data-dot]").andSelf().data("dot"))},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.filling=this.core.settings.dotsData&&"item"==t.property.name&&t.property.value&&t.property.value.is(":empty")},this),"refreshed.owl.carousel":t.proxy(function(){this.initialized&&(this.update(),this.draw())},this)},this.core.options=t.extend({},s.Defaults,this.core.options),this.$element.on(this.handlers)};s.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"},s.prototype.initialize=function(){var e,i,n=this.core.settings;n.dotsData||(this.template=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(this.core.dragType[2],"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(this.core.dragType[2],t.proxy(function(t){this.prev()},this)),this.controls.$next.addClass(n.navClass[1]).html(n.navText[1]).hide().appendTo(e).on(this.core.dragType[2],t.proxy(function(t){this.next()},this));for(i in this.overrides)this.core[i]=t.proxy(this[i],this)},s.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)},s.prototype.update=function(){var t,e,i,n=this.core.settings,s=this.core.num.cItems/2,r=this.core.num.items-s,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)for(this.pages=[],t=s,e=0,i=0;r>t;t++)(e>=o||0===e)&&(this.pages.push({start:t-s,end:t-s+o-1}),e=0,++i),e+=this.core.num.merged[t]},s.prototype.draw=function(){var e,i,n="",s=this.core.settings,r=this.core.dom.$oItems,o=this.core.normalize(this.core.current(),!0);if(!s.nav||s.loop||s.navRewind||(this.controls.$previous.toggleClass("disabled",0>=o),this.controls.$next.toggleClass("disabled",o>=this.core.maximum())),this.controls.$previous.toggle(s.nav),this.controls.$next.toggle(s.nav),s.dots){if(e=this.pages.length-this.controls.$indicators.children().length,e>0){for(i=0;i<Math.abs(e);i++)n+=s.dotData?r.eq(i).data("owl-item").dot:this.template;this.controls.$indicators.append(n)}else 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(s.dots)},s.prototype.onTrigger=function(e){var i=this.core.settings;e.page={index:t.inArray(this.current(),this.pages),count:this.pages.length,size:i.center||i.autoWidth||i.dotData?1:i.dotsEach||i.items}},s.prototype.current=function(){var e=this.core.normalize(this.core.current(),!0);return t.grep(this.pages,function(t){return t.start<=e&&t.end>=e}).pop()},s.prototype.getPosition=function(e){var i,n,s=this.core.settings;return"page"==s.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.normalize(this.core.current(),!0),n=this.core.num.oItems,e?i+=s.slideBy:i-=s.slideBy),i},s.prototype.next=function(e){t.proxy(this.overrides.to,this.core)(this.getPosition(!0),e)},s.prototype.prev=function(e){t.proxy(this.overrides.to,this.core)(this.getPosition(!1),e)},s.prototype.to=function(e,i,n){var s;n?t.proxy(this.overrides.to,this.core)(e,i):(s=this.pages.length,t.proxy(this.overrides.to,this.core)(this.pages[(e%s+s)%s].start,i))},t.fn.owlCarousel.Constructor.Plugins.Navigation=s}(window.Zepto||window.jQuery,window,document),function(t,e,i,n){"use strict";var s=function(i){this.core=i,this.hashes={},this.$element=this.core.dom.$el,this.handlers={"initialized.owl.carousel":t.proxy(function(){e.location.hash.substring(1)&&t(e).trigger("hashchange.owl.navigation")},this),"changed.owl.carousel":t.proxy(function(e){this.filling&&(e.property.value.data("owl-item").hash=t(":first-child",e.property.value).find("[data-hash]").andSelf().data("hash"),this.hashes[e.property.value.data("owl-item").hash]=e.property.value)},this),"change.owl.carousel":t.proxy(function(t){"position"==t.property.name&&this.core.current()===n&&"URLHash"==this.core.settings.startPosition&&(t.data=this.hashes[e.location.hash.substring(1)]),this.filling="item"==t.property.name&&t.property.value&&t.property.value.is(":empty")},this)},this.core.options=t.extend({},s.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.dom.$oItems,n=this.hashes[t]&&i.index(this.hashes[t])||0;return t?(this.core.dom.oStage.scrollLeft=0,void this.core.to(n,!1,!0)):!1},this))};s.Defaults={URLhashListener:!1},s.prototype.destroy=function(){var i,n;t(e).off("hashchange.owl.navigation");for(i in this.handlers)this.owl.dom.$el.off(i,this.handlers[i]);for(n in Object.getOwnPropertyNames(this))"function"!=typeof this[n]&&(this[n]=null)},t.fn.owlCarousel.Constructor.Plugins.Hash=s}(window.Zepto||window.jQuery,window,document),function(t,e){t.MixItUp=function(){var e=this;e._execAction("_constructor",0),t.extend(e,{selectors:{target:".mix",filter:".filter",sort:".sort"},animation:{enable:!0,effects:"fade scale",duration:600,easing:"ease",perspectiveDistance:"3000",perspectiveOrigin:"50% 50%",queue:!0,queueLimit:1,animateChangeLayout:!1,animateResizeContainer:!0,animateResizeTargets:!1,staggerSequence:!1,reverseOut:!1},callbacks:{onMixLoad:!1,onMixStart:!1,onMixBusy:!1,onMixEnd:!1,onMixFail:!1,_user:!1},controls:{enable:!0,live:!1,toggleFilterButtons:!1,toggleLogic:"or",activeClass:"active"},layout:{display:"inline-block",containerClass:"",containerClassFail:"fail"},load:{filter:"all",sort:!1},_$body:null,_$container:null,_$targets:null,_$parent:null,_$sortButtons:null,_$filterButtons:null,_suckMode:!1,_mixing:!1,_sorting:!1,_clicking:!1,_loading:!0,_changingLayout:!1,_changingClass:!1,_changingDisplay:!1,_origOrder:[],_startOrder:[],_newOrder:[],_activeFilter:null,_toggleArray:[],_toggleString:"",_activeSort:"default:asc",_newSort:null,_startHeight:null,_newHeight:null,_incPadding:!0,_newDisplay:null,_newClass:null,_targetsBound:0,_targetsDone:0,_queue:[],_$show:t(),_$hide:t()}),e._execAction("_constructor",1)},t.MixItUp.prototype={constructor:t.MixItUp,_instances:{},_handled:{_filter:{},_sort:{}},_bound:{_filter:{},_sort:{}},_actions:{},_filters:{},extend:function(e){for(var i in e)t.MixItUp.prototype[i]=e[i]},addAction:function(e,i,n,s){t.MixItUp.prototype._addHook("_actions",e,i,n,s)},addFilter:function(e,i,n,s){t.MixItUp.prototype._addHook("_filters",e,i,n,s)},_addHook:function(e,i,n,s,r){var o=t.MixItUp.prototype[e],a={};r=1===r||"post"===r?"post":"pre",a[i]={},a[i][r]={},a[i][r][n]=s,t.extend(!0,o,a)},_init:function(e,i){var n=this;if(n._execAction("_init",0,arguments),i&&t.extend(!0,n,i),n._$body=t("body"),n._domNode=e,n._$container=t(e),n._$container.addClass(n.layout.containerClass),n._id=e.id,n._platformDetect(),n._brake=n._getPrefixedCSS("transition","none"),n._refresh(!0),n._$parent=n._$targets.parent().length?n._$targets.parent():n._$container,n.load.sort&&(n._newSort=n._parseSort(n.load.sort),n._newSortString=n.load.sort,n._activeSort=n.load.sort,n._sort(),n._printSort()),n._activeFilter="all"===n.load.filter?n.selectors.target:"none"===n.load.filter?"":n.load.filter,n.controls.enable&&n._bindHandlers(),n.controls.toggleFilterButtons){n._buildToggleArray();for(var s=0;s<n._toggleArray.length;s++)n._updateControls({filter:n._toggleArray[s],sort:n._activeSort},!0)}else n.controls.enable&&n._updateControls({filter:n._activeFilter,sort:n._activeSort});n._filter(),n._init=!0,n._$container.data("mixItUp",n),n._execAction("_init",1,arguments),n._buildState(),n._$targets.css(n._brake),n._goMix(n.animation.enable)},_platformDetect:function(){var t=this,i=["Webkit","Moz","O","ms"],n=["webkit","moz"],s=window.navigator.appVersion.match(/Chrome\/(\d+)\./)||!1,r="undefined"!=typeof InstallTrigger,o=function(t){for(var e=0;e<i.length;e++)if(i[e]+"Transition"in t.style)return{prefix:"-"+i[e].toLowerCase()+"-",vendor:i[e]};return"transition"in t.style?"":!1},a=o(t._domNode);t._execAction("_platformDetect",0),t._chrome=s?parseInt(s[1],10):!1,t._ff=r?parseInt(window.navigator.userAgent.match(/rv:([^)]+)\)/)[1]):!1,t._prefix=a.prefix,t._vendor=a.vendor,t._suckMode=window.atob&&t._prefix?!1:!0,t._suckMode&&(t.animation.enable=!1),t._ff&&t._ff<=4&&(t.animation.enable=!1);for(var l=0;l<n.length&&!window.requestAnimationFrame;l++)window.requestAnimationFrame=window[n[l]+"RequestAnimationFrame"];"function"!=typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"==typeof"test".__proto__?function(t){return t.__proto__}:function(t){return t.constructor.prototype}),t._domNode.nextElementSibling===e&&Object.defineProperty(Element.prototype,"nextElementSibling",{get:function(){for(var t=this.nextSibling;t;){if(1===t.nodeType)return t;t=t.nextSibling}return null}}),t._execAction("_platformDetect",1)},_refresh:function(t,i){var n=this;n._execAction("_refresh",0,arguments),n._$targets=n._$container.find(n.selectors.target);for(var s=0;s<n._$targets.length;s++){var r=n._$targets[s];if(r.dataset===e||i){r.dataset={};for(var o=0;o<r.attributes.length;o++){var a=r.attributes[o],l=a.name,c=a.value;if(l.indexOf("data-")>-1){var d=n._helpers._camelCase(l.substring(5,l.length));r.dataset[d]=c}}}r.mixParent===e&&(r.mixParent=n._id)}if(n._$targets.length&&t||!n._origOrder.length&&n._$targets.length){n._origOrder=[];for(var s=0;s<n._$targets.length;s++){var r=n._$targets[s];n._origOrder.push(r)}}n._execAction("_refresh",1,arguments)},_bindHandlers:function(){var i=this,n=t.MixItUp.prototype._bound._filter,s=t.MixItUp.prototype._bound._sort;i._execAction("_bindHandlers",0),i.controls.live?i._$body.on("click.mixItUp."+i._id,i.selectors.sort,function(){i._processClick(t(this),"sort")}).on("click.mixItUp."+i._id,i.selectors.filter,function(){i._processClick(t(this),"filter")}):(i._$sortButtons=t(i.selectors.sort),i._$filterButtons=t(i.selectors.filter),i._$sortButtons.on("click.mixItUp."+i._id,function(){i._processClick(t(this),"sort")}),i._$filterButtons.on("click.mixItUp."+i._id,function(){i._processClick(t(this),"filter")})),n[i.selectors.filter]=n[i.selectors.filter]===e?1:n[i.selectors.filter]+1,s[i.selectors.sort]=s[i.selectors.sort]===e?1:s[i.selectors.sort]+1,i._execAction("_bindHandlers",1)},_processClick:function(i,n){var s=this,r=function(i,n,r){var o=t.MixItUp.prototype;o._handled["_"+n][s.selectors[n]]=o._handled["_"+n][s.selectors[n]]===e?1:o._handled["_"+n][s.selectors[n]]+1,o._handled["_"+n][s.selectors[n]]===o._bound["_"+n][s.selectors[n]]&&(i[(r?"remove":"add")+"Class"](s.controls.activeClass),delete o._handled["_"+n][s.selectors[n]])};if(s._execAction("_processClick",0,arguments),!s._mixing||s.animation.queue&&s._queue.length<s.animation.queueLimit){if(s._clicking=!0,"sort"===n){var o=i.attr("data-sort");(!i.hasClass(s.controls.activeClass)||o.indexOf("random")>-1)&&(t(s.selectors.sort).removeClass(s.controls.activeClass),r(i,n),s.sort(o))}if("filter"===n){var a,l=i.attr("data-filter"),c="or"===s.controls.toggleLogic?",":"";s.controls.toggleFilterButtons?(s._buildToggleArray(),i.hasClass(s.controls.activeClass)?(r(i,n,!0),a=s._toggleArray.indexOf(l),s._toggleArray.splice(a,1)):(r(i,n),s._toggleArray.push(l)),s._toggleArray=t.grep(s._toggleArray,function(t){return t}),s._toggleString=s._toggleArray.join(c),s.filter(s._toggleString)):i.hasClass(s.controls.activeClass)||(t(s.selectors.filter).removeClass(s.controls.activeClass),r(i,n),s.filter(l))}s._execAction("_processClick",1,arguments)}else"function"==typeof s.callbacks.onMixBusy&&s.callbacks.onMixBusy.call(s._domNode,s._state,s),s._execAction("_processClickBusy",1,arguments)},_buildToggleArray:function(){var t=this,e=t._activeFilter.replace(/\s/g,"");if(t._execAction("_buildToggleArray",0,arguments),"or"===t.controls.toggleLogic)t._toggleArray=e.split(",");else{t._toggleArray=e.split("."),!t._toggleArray[0]&&t._toggleArray.shift();for(var i,n=0;i=t._toggleArray[n];n++)t._toggleArray[n]="."+i}t._execAction("_buildToggleArray",1,arguments)},_updateControls:function(i,n){var s=this,r={filter:i.filter,sort:i.sort},o=function(t,e){try{n&&"filter"===a&&"none"!==r.filter&&""!==r.filter?t.filter(e).addClass(s.controls.activeClass):t.removeClass(s.controls.activeClass).filter(e).addClass(s.controls.activeClass)}catch(i){}},a="filter",l=null;s._execAction("_updateControls",0,arguments),i.filter===e&&(r.filter=s._activeFilter),i.sort===e&&(r.sort=s._activeSort),r.filter===s.selectors.target&&(r.filter="all");for(var c=0;2>c;c++)l=s.controls.live?t(s.selectors[a]):s["_$"+a+"Buttons"],l&&o(l,"[data-"+a+'="'+r[a]+'"]'),a="sort";s._execAction("_updateControls",1,arguments)},_filter:function(){var e=this;e._execAction("_filter",0);for(var i=0;i<e._$targets.length;i++){var n=t(e._$targets[i]);n.is(e._activeFilter)?e._$show=e._$show.add(n):e._$hide=e._$hide.add(n)}e._execAction("_filter",1)},_sort:function(){var t=this,e=function(t){for(var e=t.slice(),i=e.length,n=i;n--;){var s=parseInt(Math.random()*i),r=e[n];e[n]=e[s],e[s]=r}return e};t._execAction("_sort",0),t._startOrder=[];for(var i=0;i<t._$targets.length;i++){var n=t._$targets[i];t._startOrder.push(n)}switch(t._newSort[0].sortBy){case"default":t._newOrder=t._origOrder;break;case"random":t._newOrder=e(t._startOrder);break;case"custom":t._newOrder=t._newSort[0].order;break;default:t._newOrder=t._startOrder.concat().sort(function(e,i){return t._compare(e,i)})}t._execAction("_sort",1)},_compare:function(t,e,i){i=i?i:0;var n=this,s=n._newSort[i].order,r=function(t){return t.dataset[n._newSort[i].sortBy]||0},o=isNaN(1*r(t))?r(t).toLowerCase():1*r(t),a=isNaN(1*r(e))?r(e).toLowerCase():1*r(e);return a>o?"asc"===s?-1:1:o>a?"asc"===s?1:-1:o===a&&n._newSort.length>i+1?n._compare(t,e,i+1):0},_printSort:function(t){var e=this,i=t?e._startOrder:e._newOrder,n=e._$parent[0].querySelectorAll(e.selectors.target),s=n.length?n[n.length-1].nextElementSibling:null,r=document.createDocumentFragment();e._execAction("_printSort",0,arguments);for(var o=0;o<n.length;o++){var a=n[o],l=a.nextSibling;"absolute"!==a.style.position&&(l&&"#text"===l.nodeName&&e._$parent[0].removeChild(l),e._$parent[0].removeChild(a))}for(var o=0;o<i.length;o++){var c=i[o];if("default"!==e._newSort[0].sortBy||"desc"!==e._newSort[0].order||t)r.appendChild(c),r.appendChild(document.createTextNode(" "));else{var d=r.firstChild;r.insertBefore(c,d),r.insertBefore(document.createTextNode(" "),c)}}s?e._$parent[0].insertBefore(r,s):e._$parent[0].appendChild(r),e._execAction("_printSort",1,arguments)},_parseSort:function(t){for(var e=this,i="string"==typeof t?t.split(" "):[t],n=[],s=0;s<i.length;s++){var r="string"==typeof t?i[s].split(":"):["custom",i[s]],o={sortBy:e._helpers._camelCase(r[0]),order:r[1]||"asc"};if(n.push(o),"default"===o.sortBy||"random"===o.sortBy)break}return e._execFilter("_parseSort",n,arguments)},_parseEffects:function(){var t=this,e={opacity:"",transformIn:"",transformOut:"",filter:""},i=function(e,i,n){if(t.animation.effects.indexOf(e)>-1){if(i){var s=t.animation.effects.indexOf(e+"(");if(s>-1){var r=t.animation.effects.substring(s),o=/\(([^)]+)\)/.exec(r),a=o[1];return{val:a}}}return!0}return!1},n=function(t,e){return e?"-"===t.charAt(0)?t.substr(1,t.length):"-"+t:t},s=function(t,s){for(var r=[["scale",".01"],["translateX","20px"],["translateY","20px"],["translateZ","20px"],["rotateX","90deg"],["rotateY","90deg"],["rotateZ","180deg"]],o=0;o<r.length;o++){var a=r[o][0],l=r[o][1],c=s&&"scale"!==a;e[t]+=i(a)?a+"("+n(i(a,!0).val||l,c)+") ":""}};return e.opacity=i("fade")?i("fade",!0).val||"0":"1",s("transformIn"),t.animation.reverseOut?s("transformOut",!0):e.transformOut=e.transformIn,e.transition={},e.transition=t._getPrefixedCSS("transition","all "+t.animation.duration+"ms "+t.animation.easing+", opacity "+t.animation.duration+"ms linear"),t.animation.stagger=i("stagger")?!0:!1,t.animation.staggerDuration=parseInt(i("stagger")&&i("stagger",!0).val?i("stagger",!0).val:100),t._execFilter("_parseEffects",e)},_buildState:function(t){var e=this,i={};return e._execAction("_buildState",0),i={activeFilter:""===e._activeFilter?"none":e._activeFilter,activeSort:t&&e._newSortString?e._newSortString:e._activeSort,fail:!e._$show.length&&""!==e._activeFilter,$targets:e._$targets,$show:e._$show,$hide:e._$hide,totalTargets:e._$targets.length,totalShow:e._$show.length,totalHide:e._$hide.length,display:t&&e._newDisplay?e._newDisplay:e.layout.display},t?e._execFilter("_buildState",i):(e._state=i,void e._execAction("_buildState",1))},_goMix:function(t){var e=this,i=function(){e._chrome&&31===e._chrome&&r(e._$parent[0]),e._setInter(),n()},n=function(){{var t=window.pageYOffset,i=window.pageXOffset;document.documentElement.scrollHeight}e._getInterMixData(),e._setFinal(),e._getFinalMixData(),window.pageYOffset!==t&&window.scrollTo(i,t),e._prepTargets(),window.requestAnimationFrame?requestAnimationFrame(s):setTimeout(function(){s()},20)},s=function(){e._animateTargets(),0===e._targetsBound&&e._cleanUp()},r=function(t){var e=t.parentElement,i=document.createElement("div"),n=document.createDocumentFragment();e.insertBefore(i,t),n.appendChild(t),e.replaceChild(t,i)},o=e._buildState(!0);e._execAction("_goMix",0,arguments),!e.animation.duration&&(t=!1),e._mixing=!0,e._$container.removeClass(e.layout.containerClassFail),"function"==typeof e.callbacks.onMixStart&&e.callbacks.onMixStart.call(e._domNode,e._state,o,e),e._$container.trigger("mixStart",[e._state,o,e]),e._getOrigMixData(),t&&!e._suckMode?window.requestAnimationFrame?requestAnimationFrame(i):i():e._cleanUp(),e._execAction("_goMix",1,arguments)},_getTargetData:function(t,e){var i,n=this;t.dataset[e+"PosX"]=t.offsetLeft,t.dataset[e+"PosY"]=t.offsetTop,n.animation.animateResizeTargets&&(i=n._suckMode?{marginBottom:"",marginRight:""}:window.getComputedStyle(t),t.dataset[e+"MarginBottom"]=parseInt(i.marginBottom),t.dataset[e+"MarginRight"]=parseInt(i.marginRight),t.dataset[e+"Width"]=t.offsetWidth,t.dataset[e+"Height"]=t.offsetHeight)},_getOrigMixData:function(){var t=this,e=t._suckMode?{boxSizing:""}:window.getComputedStyle(t._$parent[0]),i=e.boxSizing||e[t._vendor+"BoxSizing"];t._incPadding="border-box"===i,t._execAction("_getOrigMixData",0),!t._suckMode&&(t.effects=t._parseEffects()),t._$toHide=t._$hide.filter(":visible"),t._$toShow=t._$show.filter(":hidden"),t._$pre=t._$targets.filter(":visible"),t._startHeight=t._incPadding?t._$parent.outerHeight():t._$parent.height();for(var n=0;n<t._$pre.length;n++){var s=t._$pre[n];t._getTargetData(s,"orig")}t._execAction("_getOrigMixData",1)},_setInter:function(){var t=this;t._execAction("_setInter",0),t._changingLayout&&t.animation.animateChangeLayout?(t._$toShow.css("display",t._newDisplay),t._changingClass&&t._$container.removeClass(t.layout.containerClass).addClass(t._newClass)):t._$toShow.css("display",t.layout.display),t._execAction("_setInter",1)},_getInterMixData:function(){var t=this;t._execAction("_getInterMixData",0);for(var e=0;e<t._$toShow.length;e++){var i=t._$toShow[e];t._getTargetData(i,"inter")}for(var e=0;e<t._$pre.length;e++){var i=t._$pre[e];t._getTargetData(i,"inter")}t._execAction("_getInterMixData",1)},_setFinal:function(){var t=this;t._execAction("_setFinal",0),t._sorting&&t._printSort(),t._$toHide.removeStyle("display"),t._changingLayout&&t.animation.animateChangeLayout&&t._$pre.css("display",t._newDisplay),
  t._execAction("_setFinal",1)},_getFinalMixData:function(){var t=this;t._execAction("_getFinalMixData",0);for(var e=0;e<t._$toShow.length;e++){var i=t._$toShow[e];t._getTargetData(i,"final")}for(var e=0;e<t._$pre.length;e++){var i=t._$pre[e];t._getTargetData(i,"final")}t._newHeight=t._incPadding?t._$parent.outerHeight():t._$parent.height(),t._sorting&&t._printSort(!0),t._$toShow.removeStyle("display"),t._$pre.css("display",t.layout.display),t._changingClass&&t.animation.animateChangeLayout&&t._$container.removeClass(t._newClass).addClass(t.layout.containerClass),t._execAction("_getFinalMixData",1)},_prepTargets:function(){var e=this,i={_in:e._getPrefixedCSS("transform",e.effects.transformIn),_out:e._getPrefixedCSS("transform",e.effects.transformOut)};e._execAction("_prepTargets",0),e.animation.animateResizeContainer&&e._$parent.css("height",e._startHeight+"px");for(var n=0;n<e._$toShow.length;n++){var s=e._$toShow[n],r=t(s);s.style.opacity=e.effects.opacity,s.style.display=e._changingLayout&&e.animation.animateChangeLayout?e._newDisplay:e.layout.display,r.css(i._in),e.animation.animateResizeTargets&&(s.style.width=s.dataset.finalWidth+"px",s.style.height=s.dataset.finalHeight+"px",s.style.marginRight=-(s.dataset.finalWidth-s.dataset.interWidth)+1*s.dataset.finalMarginRight+"px",s.style.marginBottom=-(s.dataset.finalHeight-s.dataset.interHeight)+1*s.dataset.finalMarginBottom+"px")}for(var n=0;n<e._$pre.length;n++){var s=e._$pre[n],r=t(s),o={x:s.dataset.origPosX-s.dataset.interPosX,y:s.dataset.origPosY-s.dataset.interPosY},i=e._getPrefixedCSS("transform","translate("+o.x+"px,"+o.y+"px)");r.css(i),e.animation.animateResizeTargets&&(s.style.width=s.dataset.origWidth+"px",s.style.height=s.dataset.origHeight+"px",s.dataset.origWidth-s.dataset.finalWidth&&(s.style.marginRight=-(s.dataset.origWidth-s.dataset.interWidth)+1*s.dataset.origMarginRight+"px"),s.dataset.origHeight-s.dataset.finalHeight&&(s.style.marginBottom=-(s.dataset.origHeight-s.dataset.interHeight)+1*s.dataset.origMarginBottom+"px"))}e._execAction("_prepTargets",1)},_animateTargets:function(){var e=this;e._execAction("_animateTargets",0),e._targetsDone=0,e._targetsBound=0,e._$parent.css(e._getPrefixedCSS("perspective",e.animation.perspectiveDistance+"px")).css(e._getPrefixedCSS("perspective-origin",e.animation.perspectiveOrigin)),e.animation.animateResizeContainer&&e._$parent.css(e._getPrefixedCSS("transition","height "+e.animation.duration+"ms ease")).css("height",e._newHeight+"px");for(var i=0;i<e._$toShow.length;i++){var n=e._$toShow[i],s=t(n),r={x:n.dataset.finalPosX-n.dataset.interPosX,y:n.dataset.finalPosY-n.dataset.interPosY},o=e._getDelay(i),a={};n.style.opacity="";for(var l=0;2>l;l++){var c=0===l?c=e._prefix:"";e._ff&&e._ff<=20&&(a[c+"transition-property"]="all",a[c+"transition-timing-function"]=e.animation.easing+"ms",a[c+"transition-duration"]=e.animation.duration+"ms"),a[c+"transition-delay"]=o+"ms",a[c+"transform"]="translate("+r.x+"px,"+r.y+"px)"}(e.effects.transform||e.effects.opacity)&&e._bindTargetDone(s),e._ff&&e._ff<=20?s.css(a):s.css(e.effects.transition).css(a)}for(var i=0;i<e._$pre.length;i++){var n=e._$pre[i],s=t(n),r={x:n.dataset.finalPosX-n.dataset.interPosX,y:n.dataset.finalPosY-n.dataset.interPosY},o=e._getDelay(i);(n.dataset.finalPosX!==n.dataset.origPosX||n.dataset.finalPosY!==n.dataset.origPosY)&&e._bindTargetDone(s),s.css(e._getPrefixedCSS("transition","all "+e.animation.duration+"ms "+e.animation.easing+" "+o+"ms")),s.css(e._getPrefixedCSS("transform","translate("+r.x+"px,"+r.y+"px)")),e.animation.animateResizeTargets&&(n.dataset.origWidth-n.dataset.finalWidth&&1*n.dataset.finalWidth&&(n.style.width=n.dataset.finalWidth+"px",n.style.marginRight=-(n.dataset.finalWidth-n.dataset.interWidth)+1*n.dataset.finalMarginRight+"px"),n.dataset.origHeight-n.dataset.finalHeight&&1*n.dataset.finalHeight&&(n.style.height=n.dataset.finalHeight+"px",n.style.marginBottom=-(n.dataset.finalHeight-n.dataset.interHeight)+1*n.dataset.finalMarginBottom+"px"))}e._changingClass&&e._$container.removeClass(e.layout.containerClass).addClass(e._newClass);for(var i=0;i<e._$toHide.length;i++){for(var n=e._$toHide[i],s=t(n),o=e._getDelay(i),d={},l=0;2>l;l++){var c=0===l?c=e._prefix:"";d[c+"transition-delay"]=o+"ms",d[c+"transform"]=e.effects.transformOut,d.opacity=e.effects.opacity}s.css(e.effects.transition).css(d),(e.effects.transform||e.effects.opacity)&&e._bindTargetDone(s)}e._execAction("_animateTargets",1)},_bindTargetDone:function(e){var i=this,n=e[0];i._execAction("_bindTargetDone",0,arguments),n.dataset.bound||(n.dataset.bound=!0,i._targetsBound++,e.on("webkitTransitionEnd.mixItUp transitionend.mixItUp",function(s){(s.originalEvent.propertyName.indexOf("transform")>-1||s.originalEvent.propertyName.indexOf("opacity")>-1)&&t(s.originalEvent.target).is(i.selectors.target)&&(e.off(".mixItUp"),delete n.dataset.bound,i._targetDone())})),i._execAction("_bindTargetDone",1,arguments)},_targetDone:function(){var t=this;t._execAction("_targetDone",0),t._targetsDone++,t._targetsDone===t._targetsBound&&t._cleanUp(),t._execAction("_targetDone",1)},_cleanUp:function(){var e=this,i=e.animation.animateResizeTargets?"transform opacity width height margin-bottom margin-right":"transform opacity";unBrake=function(){e._$targets.removeStyle("transition",e._prefix)},e._execAction("_cleanUp",0),e._changingLayout?e._$show.css("display",e._newDisplay):e._$show.css("display",e.layout.display),e._$targets.css(e._brake),e._$targets.removeStyle(i,e._prefix).removeAttr("data-inter-pos-x data-inter-pos-y data-final-pos-x data-final-pos-y data-orig-pos-x data-orig-pos-y data-orig-height data-orig-width data-final-height data-final-width data-inter-width data-inter-height data-orig-margin-right data-orig-margin-bottom data-inter-margin-right data-inter-margin-bottom data-final-margin-right data-final-margin-bottom"),e._$hide.removeStyle("display"),e._$parent.removeStyle("height transition perspective-distance perspective perspective-origin-x perspective-origin-y perspective-origin perspectiveOrigin",e._prefix),e._sorting&&(e._printSort(),e._activeSort=e._newSortString,e._sorting=!1),e._changingLayout&&(e._changingDisplay&&(e.layout.display=e._newDisplay,e._changingDisplay=!1),e._changingClass&&(e._$parent.removeClass(e.layout.containerClass).addClass(e._newClass),e.layout.containerClass=e._newClass,e._changingClass=!1),e._changingLayout=!1),e._refresh(),e._buildState(),e._state.fail&&e._$container.addClass(e.layout.containerClassFail),e._$show=t(),e._$hide=t(),window.requestAnimationFrame&&requestAnimationFrame(unBrake),e._mixing=!1,"function"==typeof e.callbacks._user&&e.callbacks._user.call(e._domNode,e._state,e),"function"==typeof e.callbacks.onMixEnd&&e.callbacks.onMixEnd.call(e._domNode,e._state,e),e._$container.trigger("mixEnd",[e._state,e]),e._state.fail&&("function"==typeof e.callbacks.onMixFail&&e.callbacks.onMixFail.call(e._domNode,e._state,e),e._$container.trigger("mixFail",[e._state,e])),e._loading&&("function"==typeof e.callbacks.onMixLoad&&e.callbacks.onMixLoad.call(e._domNode,e._state,e),e._$container.trigger("mixLoad",[e._state,e])),e._queue.length&&(e._execAction("_queue",0),e.multiMix(e._queue[0][0],e._queue[0][1],e._queue[0][2]),e._queue.splice(0,1)),e._execAction("_cleanUp",1),e._loading=!1},_getPrefixedCSS:function(t,e,n){var s=this,r={};for(i=0;i<2;i++){var o=0===i?s._prefix:"";r[o+t]=n?o+e:e}return s._execFilter("_getPrefixedCSS",r,arguments)},_getDelay:function(t){var e=this,i="function"==typeof e.animation.staggerSequence?e.animation.staggerSequence.call(e._domNode,t,e._state):t,n=e.animation.stagger?i*e.animation.staggerDuration:0;return e._execFilter("_getDelay",n,arguments)},_parseMultiMixArgs:function(t){for(var e=this,i={command:null,animate:e.animation.enable,callback:null},n=0;n<t.length;n++){var s=t[n];null!==s&&("object"==typeof s||"string"==typeof s?i.command=s:"boolean"==typeof s?i.animate=s:"function"==typeof s&&(i.callback=s))}return e._execFilter("_parseMultiMixArgs",i,arguments)},_parseInsertArgs:function(e){for(var i=this,n={index:0,$object:t(),multiMix:{filter:i._state.activeFilter},callback:null},s=0;s<e.length;s++){var r=e[s];"number"==typeof r?n.index=r:"object"==typeof r&&r instanceof t?n.$object=r:"object"==typeof r&&i._helpers._isElement(r)?n.$object=t(r):"object"==typeof r&&null!==r?n.multiMix=r:"boolean"!=typeof r||r?"function"==typeof r&&(n.callback=r):n.multiMix=!1}return i._execFilter("_parseInsertArgs",n,arguments)},_execAction:function(t,e,i){var n=this,s=e?"post":"pre";if(!n._actions.isEmptyObject&&n._actions.hasOwnProperty(t))for(var r in n._actions[t][s])n._actions[t][s][r].call(n,i)},_execFilter:function(t,e,i){var n=this;if(n._filters.isEmptyObject||!n._filters.hasOwnProperty(t))return e;for(var s in n._filters[t])return n._filters[t][s].call(n,i)},_helpers:{_camelCase:function(t){return t.replace(/-([a-z])/g,function(t){return t[1].toUpperCase()})},_isElement:function(t){return window.HTMLElement?t instanceof HTMLElement:null!==t&&1===t.nodeType&&"string"===t.nodeName}},isMixing:function(){var t=this;return t._execFilter("isMixing",t._mixing)},filter:function(){var t=this,e=t._parseMultiMixArgs(arguments);t._clicking&&(t._toggleString=""),t.multiMix({filter:e.command},e.animate,e.callback)},sort:function(){var t=this,e=t._parseMultiMixArgs(arguments);t.multiMix({sort:e.command},e.animate,e.callback)},changeLayout:function(){var t=this,e=t._parseMultiMixArgs(arguments);t.multiMix({changeLayout:e.command},e.animate,e.callback)},multiMix:function(){var t=this,i=t._parseMultiMixArgs(arguments);if(t._execAction("multiMix",0,arguments),t._mixing)t.animation.queue&&t._queue.length<t.animation.queueLimit?(t._queue.push(arguments),t.controls.enable&&!t._clicking&&t._updateControls(i.command),t._execAction("multiMixQueue",1,arguments)):("function"==typeof t.callbacks.onMixBusy&&t.callbacks.onMixBusy.call(t._domNode,t._state,t),t._$container.trigger("mixBusy",[t._state,t]),t._execAction("multiMixBusy",1,arguments));else{t.controls.enable&&!t._clicking&&(t.controls.toggleFilterButtons&&t._buildToggleArray(),t._updateControls(i.command,t.controls.toggleFilterButtons)),t._queue.length<2&&(t._clicking=!1),delete t.callbacks._user,i.callback&&(t.callbacks._user=i.callback);var n=i.command.sort,s=i.command.filter,r=i.command.changeLayout;t._refresh(),n&&(t._newSort=t._parseSort(n),t._newSortString=n,t._sorting=!0,t._sort()),s!==e&&(s="all"===s?t.selectors.target:s,t._activeFilter=s),t._filter(),r&&(t._newDisplay="string"==typeof r?r:r.display||t.layout.display,t._newClass=r.containerClass||"",(t._newDisplay!==t.layout.display||t._newClass!==t.layout.containerClass)&&(t._changingLayout=!0,t._changingClass=t._newClass!==t.layout.containerClass,t._changingDisplay=t._newDisplay!==t.layout.display)),t._$targets.css(t._brake),t._goMix(i.animate^t.animation.enable?i.animate:t.animation.enable),t._execAction("multiMix",1,arguments)}},insert:function(){var t=this,e=t._parseInsertArgs(arguments),i="function"==typeof e.callback?e.callback:null,n=document.createDocumentFragment(),s=function(){return t._refresh(),t._$targets.length?e.index<t._$targets.length||!t._$targets.length?t._$targets[e.index]:t._$targets[t._$targets.length-1].nextElementSibling:t._$parent[0].children[0]}();if(t._execAction("insert",0,arguments),e.$object){for(var r=0;r<e.$object.length;r++){var o=e.$object[r];n.appendChild(o),n.appendChild(document.createTextNode(" "))}t._$parent[0].insertBefore(n,s)}t._execAction("insert",1,arguments),"object"==typeof e.multiMix&&t.multiMix(e.multiMix,i)},prepend:function(){var t=this,e=t._parseInsertArgs(arguments);t.insert(0,e.$object,e.multiMix,e.callback)},append:function(){var t=this,e=t._parseInsertArgs(arguments);t.insert(t._state.totalTargets,e.$object,e.multiMix,e.callback)},getOption:function(t){var i=this,n=function(t,i){for(var n=i.split("."),s=n.pop(),r=n.length,o=1,a=n[0]||i;(t=t[a])&&r>o;)a=n[o],o++;return t!==e?t[s]!==e?t[s]:t:void 0};return t?i._execFilter("getOption",n(i,t),arguments):i},setOptions:function(e){var i=this;i._execAction("setOptions",0,arguments),"object"==typeof e&&t.extend(!0,i,e),i._execAction("setOptions",1,arguments)},getState:function(){var t=this;return t._execFilter("getState",t._state,t)},forceRefresh:function(){var t=this;t._refresh(!1,!0)},destroy:function(e){var i=this,n=t.MixItUp.prototype._bound._filter,s=t.MixItUp.prototype._bound._sort;i._execAction("destroy",0,arguments),i._$body.add(t(i.selectors.sort)).add(t(i.selectors.filter)).off(".mixItUp");for(var r=0;r<i._$targets.length;r++){var o=i._$targets[r];e&&(o.style.display=""),delete o.mixParent}i._execAction("destroy",1,arguments),n[i.selectors.filter]&&n[i.selectors.filter]>1?n[i.selectors.filter]--:1===n[i.selectors.filter]&&delete n[i.selectors.filter],s[i.selectors.sort]&&s[i.selectors.sort]>1?s[i.selectors.sort]--:1===s[i.selectors.sort]&&delete s[i.selectors.sort],delete t.MixItUp.prototype._instances[i._id]}},t.fn.mixItUp=function(){var i,n=arguments,s=[],r=function(e,i){var n=new t.MixItUp,s=function(){return("00000"+(16777216*Math.random()<<0).toString(16)).substr(-6).toUpperCase()};n._execAction("_instantiate",0,arguments),e.id=e.id?e.id:"MixItUp"+s(),n._instances[e.id]||(n._instances[e.id]=n,n._init(e,i)),n._execAction("_instantiate",1,arguments)};return i=this.each(function(){if(n&&"string"==typeof n[0]){var i=t.MixItUp.prototype._instances[this.id];if("isLoaded"===n[0])s.push(i?!0:!1);else{var o=i[n[0]](n[1],n[2],n[3]);o!==e&&s.push(o)}}else r(this,n[0])}),s.length?s.length>1?s:s[0]:i},t.fn.removeStyle=function(i,n){return n=n?n:"",this.each(function(){for(var s=this,r=i.split(" "),o=0;o<r.length;o++)for(var a=0;4>a;a++){switch(a){case 0:var l=r[o];break;case 1:var l=t.MixItUp.prototype._helpers._camelCase(l);break;case 2:var l=n+r[o];break;case 3:var l=t.MixItUp.prototype._helpers._camelCase(n+r[o])}if(s.style[l]!==e&&"unknown"!=typeof s.style[l]&&s.style[l].length>0&&(s.style[l]=""),!n&&1===a)break}s.attributes&&s.attributes.style&&s.attributes.style!==e&&""===s.attributes.style.value&&s.attributes.removeNamedItem("style")})}}(jQuery),$(document).ready(function(){function t(t){var e=$(t);e.mouseenter(function(){e.not(this).stop().animate({opacity:.5},300)}),e.mouseleave(function(){e.stop().animate({opacity:1},300)})}var e={map:null,bounds:null};if(e.init=function(t,i,n,s){var r={center:i,zoom:n,zoomControl:!0,zoomControlOptions:{style:google.maps.ZoomControlStyle.DEFAULT},disableDoubleClickZoom:!0,mapTypeControl:!0,mapTypeControlOptions:{style:google.maps.MapTypeControlStyle.HORIZONTAL_BAR},scaleControl:!0,scrollwheel:!1,panControl:!0,streetViewControl:!0,draggable:!0,overviewMapControl:!0,overviewMapControlOptions:{opened:!1},mapTypeId:google.maps.MapTypeId.ROADMAP},o=new google.maps.MarkerImage("img/images/map-marker.png",new google.maps.Size(101,99)),a=new google.maps.MarkerImage("img/images/map-marker.png",new google.maps.Size(101,99));this.map=new google.maps.Map($(t)[0],r),this.bounds=new google.maps.LatLngBounds,$.get(s).done(function(t){$(t).find("office").each(function(){var t=$(this).find("city").text(),i=$(this).find("subway").text(),n=$(this).find("street").text(),s=$(this).find("house").text(),r=$(this).find("building").text(),l=$(this).find("door").text(),c=$(this).find("lat").text(),d=$(this).find("lng").text(),u=new google.maps.LatLng(parseFloat(c),parseFloat(d));e.bounds.extend(u);var p=new google.maps.Marker({icon:o,position:u,map:e.map}),h=new google.maps.InfoWindow,f='<div class="map-container"><div class="row"><div class="col-xs-4"><img src="img/images/omega-logo.png"></div><div class="col-xs-8"><p>Город: '+t+"</p><p>Метро: "+i+" </p><p>Улица: "+n+" </p><p>Дом: "+s+" </p><p>Строение: "+r+" </p><p>Вход: "+l+" </p></div></div></div>";google.maps.event.addListener(p,"click",function(){h.setContent(f),p.setIcon(a),h.open(e.map,p)}),e.map.fitBounds(e.bounds),google.maps.event.addListener(p,"mouseover",function(){p.setIcon(a)}),google.maps.event.addListener(p,"mouseout",function(){p.setIcon(o)})})}).fail(function(){alert("error reading XML")})},$("#omega-on-map").length){var i=new google.maps.LatLng(55.8044,37.585939);e.init("#omega-on-map",i,15,"./omega-on-map.xml")}if($(".om-reasons").length){new t(".js__reason--hover")}if($(".om-directions--main").length){new t(".js__directions--hover")}if($(".om-price").length){new t(".js__tariff-ege")}if($(".om-price").length){new t(".js__tariff-oge")}var n=new Swiper(".swiper-container",{pagination:".swiper-pagination",nextButton:".swiper-button-next",prevButton:".swiper-button-prev",slidesPerView:1,keyboardControl:!0,paginationClickable:!0,spaceBetween:0,autoplay:2500,loop:!0});$(".swiper-slide").hover(function(){n.stopAutoplay()},function(){n.startAutoplay()});new Swiper(".swiper-container-2",{pagination:".swiper-pagination",paginationClickable:".swiper-pagination",nextButton:".swiper-button-next",prevButton:".swiper-button-prev",spaceBetween:0,slidesPerView:1,loop:!0,effect:"fade",keyboardControl:!0});$(".owl-carousel").owlCarousel({dots:!1,margin:0,loop:!0,autoWidth:!0,items:4}),$(".owl-franch").owlCarousel({dots:!1,margin:20,loop:!0,autoWidth:!0,items:3,center:!0,startPosition:3,nav:!0,navText:["<img class='btn-arrow-img btn-arrow-img--prev' src='img/images/franch-slider-control--prev.png'>","<img class='btn-arrow-img btn-arrow-img--next' src='img/images/franch-slider-control--next.png'>"]}),$("#mixitup-teachers").mixItUp({controls:{activeClass:"om-teachers__filter-btn--pressed"}}),$("#mixitup-subjects").mixItUp({controls:{activeClass:"om-subjects__filter-btn--pressed"}}),$(".om-timetable__filter-btn--human").click(function(t){t.preventDefault(),$(".om-timetable__filter-btn").removeClass("om-timetable__filter-btn--pressed"),$(this).addClass("om-timetable__filter-btn--pressed"),$(".category-tech, .category-socio-science, .category-human").removeClass("om-timetable__day--not-checked"),$(".category-tech, .category-socio-science").addClass("om-timetable__day--not-checked")}),$(".om-timetable__filter-btn--tech").click(function(t){t.preventDefault(),$(".om-timetable__filter-btn").removeClass("om-timetable__filter-btn--pressed"),$(this).addClass("om-timetable__filter-btn--pressed"),$(".category-tech, .category-socio-science, .category-human").removeClass("om-timetable__day--not-checked"),$(".category-human, .category-socio-science").addClass("om-timetable__day--not-checked")}),$(".om-timetable__filter-btn--socio-science").click(function(t){t.preventDefault(),$(".om-timetable__filter-btn").removeClass("om-timetable__filter-btn--pressed"),$(this).addClass("om-timetable__filter-btn--pressed"),$(".category-tech, .category-socio-science, .category-human").removeClass("om-timetable__day--not-checked"),$(".category-tech, .category-human").addClass("om-timetable__day--not-checked")}),$(".om-timetable__filter-btn--all").click(function(t){t.preventDefault(),$(".om-timetable__filter-btn").removeClass("om-timetable__filter-btn--pressed"),$(this).addClass("om-timetable__filter-btn--pressed"),$(".category-tech, .category-socio-science, .category-human").removeClass("om-timetable__day--not-checked")}),$(".om-teachers__full-card-close").length&&($(".om-teachers__teacher").click(function(){scrollBack=$(this),$(".om-teachers__full-card").removeClass("hidden"),$("html, body").animate({scrollTop:$(".om-teachers__full-card").offset().top},1e3)}),$(".om-teachers__full-card-close").click(function(){$(".om-teachers__full-card").addClass("hidden"),$("html, body").animate({scrollTop:scrollBack.offset().top},1e3)})),$(window).on("scroll",function(){$(window).scrollTop()>250?$(".om-teachers__filter").addClass("om-teachers__filter--fixed"):$(".om-teachers__filter").removeClass("om-teachers__filter--fixed")}),$(window).on("scroll",function(){var t=$(document).height()-$(window).height()-$(window).scrollTop();50>t&&$(".om-teachers__filter").removeClass("om-teachers__filter--fixed")}),$(window).on("scroll",function(){$(window).scrollTop()>250?$(".js-om-timetable__filter").addClass("om-timetable__filter--fixed"):$(".js-om-timetable__filter").removeClass("om-timetable__filter--fixed")}),$(window).on("scroll",function(){var t=$(document).height()-$(window).height()-$(window).scrollTop();350>t&&$(".js-om-timetable__filter").removeClass("om-timetable__filter--fixed")}),$(".om-timetable__time").hover(function(){$(this).css({"background-color":"#f2c40d"}),$(".om-timetable__time:not(:hover)").siblings().addClass("om-timetable__day--not-checked")},function(){$(this).css({"background-color":"transparent"}),$(".om-timetable__time").siblings().removeClass("om-timetable__day--not-checked")}),$(".om-timetable__classroom").hover(function(){$(this).closest("table").find(".om-timetable__time").css({"background-color":"#f7db6d"}),$(".om-timetable__classroom:not(:hover)").closest("table").find(".om-timetable__day").addClass("om-timetable__day--not-checked")},function(){$(this).closest("table").find(".om-timetable__time").css({"background-color":"transparent"}),$(".om-timetable__classroom:not(:hover)").closest("table").find(".om-timetable__day").removeClass("om-timetable__day--not-checked")}),$(".om-subjects__full-card-close").length&&($(".om-subjects__item").click(function(){scrollBack=$(this),$(".om-subjects__full-card").removeClass("hidden"),$("html, body").animate({scrollTop:$(".om-subjects__full-card").offset().top},1e3)}),$(".om-subjects__full-card-close").click(function(){$(".om-subjects__full-card").addClass("hidden"),$("html, body").animate({scrollTop:scrollBack.offset().top},1e3)})),$(window).on("scroll",function(){$(window).scrollTop()>250?$(".om-subjects__filter").addClass("om-subjects__filter--fixed"):$(".om-subjects__filter").removeClass("om-subjects__filter--fixed")}),$(window).on("scroll",function(){var t=$(document).height()-$(window).height()-$(window).scrollTop();50>t&&$(".om-subjects__filter").removeClass("om-subjects__filter--fixed")})});
  //# sourceMappingURL=main.min.js.map