
function inherits(t,e){function n(){}n.prototype=e.prototype,t.superClass_=e.prototype,t.prototype=new n,t.prototype.constructor=t}function MarkerLabel_(t,e,n){this.marker_=t,this.handCursorURL_=t.handCursorURL,this.labelDiv_=document.createElement("div"),this.labelDiv_.style.cssText="position: absolute; overflow: hidden;",this.crossDiv_=MarkerLabel_.getSharedCross(e)}function MarkerWithLabel(t){t=t||{},t.labelContent=t.labelContent||"",t.labelAnchor=t.labelAnchor||new google.maps.Point(0,0),t.labelClass=t.labelClass||"markerLabels",t.labelStyle=t.labelStyle||{},t.labelInBackground=t.labelInBackground||!1,"undefined"==typeof t.labelVisible&&(t.labelVisible=!0),"undefined"==typeof t.raiseOnDrag&&(t.raiseOnDrag=!0),"undefined"==typeof t.clickable&&(t.clickable=!0),"undefined"==typeof t.draggable&&(t.draggable=!1),"undefined"==typeof t.optimized&&(t.optimized=!1),t.crossImage=t.crossImage||"http"+("https:"===document.location.protocol?"s":"")+"://maps.gstatic.com/intl/en_us/mapfiles/drag_cross_67_16.png",t.handCursor=t.handCursor||"http"+("https:"===document.location.protocol?"s":"")+"://maps.gstatic.com/intl/en_us/mapfiles/closedhand_8_8.cur",t.optimized=!1,this.label=new MarkerLabel_(this,t.crossImage,t.handCursor),google.maps.Marker.apply(this,arguments)}function InfoBubble(t){this.extend(InfoBubble,google.maps.OverlayView),this.tabs_=[],this.activeTab_=null,this.baseZIndex_=100,this.isOpen_=!1;var e=t||{};void 0==e.backgroundColor&&(e.backgroundColor=this.BACKGROUND_COLOR_),void 0==e.borderColor&&(e.borderColor=this.BORDER_COLOR_),void 0==e.borderRadius&&(e.borderRadius=this.BORDER_RADIUS_),void 0==e.borderWidth&&(e.borderWidth=this.BORDER_WIDTH_),void 0==e.padding&&(e.padding=this.PADDING_),void 0==e.arrowPosition&&(e.arrowPosition=this.ARROW_POSITION_),void 0==e.disableAutoPan&&(e.disableAutoPan=!1),void 0==e.disableAnimation&&(e.disableAnimation=!1),void 0==e.minWidth&&(e.minWidth=this.MIN_WIDTH_),void 0==e.shadowStyle&&(e.shadowStyle=this.SHADOW_STYLE_),void 0==e.arrowSize&&(e.arrowSize=this.ARROW_SIZE_),void 0==e.arrowStyle&&(e.arrowStyle=this.ARROW_STYLE_),void 0==e.closeSrc&&(e.closeSrc=this.CLOSE_SRC_),this.buildDom_(),this.setValues(e)}function flipTable(){$("table.flip").each(function(){var t=$(this),e=[];t.find("tr:not(.footable-row-detail)").each(function(){var t,n=0;$(this).find("th, td").each(function(){n++,void 0===e[n]&&(e[n]=$("<tr></tr>")),t=1==n?$("<th>"+this.innerHTML+"</th>"):$("<td>"+this.innerHTML+"</td>"),t.attr($(this).attrs()),e[n].append(t)})}),t.find("tr").remove(),$.each(e,function(e){1==e?t.find("thead").append(this):t.append(this)})})}function prepareHeaderForRotation(){$(".rotate th").each(function(){var t=$(this),e=t.children().first(),n=parseInt(e.css("width"),10)||50;t.css("height",n+30),e.css({bottom:n/2+"px","margin-left":"-"+(n/2+"px")})})}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 n(t){var e="length"in t&&t.length,n=ot.type(t);return"function"!==n&&!ot.isWindow(t)&&(!(1!==t.nodeType||!e)||"array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function i(t,e,n){if(ot.isFunction(e))return ot.grep(t,function(t,i){return!!e.call(t,i,t)!==n});if(e.nodeType)return ot.grep(t,function(t){return t===e!==n});if("string"==typeof e){if(pt.test(e))return ot.filter(e,t,n);e=ot.filter(e,t)}return ot.grep(t,function(t){return ot.inArray(t,e)>=0!==n})}function o(t,e){do t=t[e];while(t&&1!==t.nodeType);return t}function a(t){var e=wt[t]={};return ot.each(t.match(yt)||[],function(t,n){e[n]=!0}),e}function s(){ft.addEventListener?(ft.removeEventListener("DOMContentLoaded",r,!1),t.removeEventListener("load",r,!1)):(ft.detachEvent("onreadystatechange",r),t.detachEvent("onload",r))}function r(){(ft.addEventListener||"load"===event.type||"complete"===ft.readyState)&&(s(),ot.ready())}function l(t,e,n){if(void 0===n&&1===t.nodeType){var i="data-"+e.replace(St,"-$1").toLowerCase();if(n=t.getAttribute(i),"string"==typeof n){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:kt.test(n)?ot.parseJSON(n):n)}catch(t){}ot.data(t,e,n)}else n=void 0}return n}function d(t){var e;for(e in t)if(("data"!==e||!ot.isEmptyObject(t[e]))&&"toJSON"!==e)return!1;return!0}function c(t,e,n,i){if(ot.acceptData(t)){var o,a,s=ot.expando,r=t.nodeType,l=r?ot.cache:t,d=r?t[s]:t[s]&&s;if(d&&l[d]&&(i||l[d].data)||void 0!==n||"string"!=typeof e)return d||(d=r?t[s]=X.pop()||ot.guid++:s),l[d]||(l[d]=r?{}:{toJSON:ot.noop}),("object"==typeof e||"function"==typeof e)&&(i?l[d]=ot.extend(l[d],e):l[d].data=ot.extend(l[d].data,e)),a=l[d],i||(a.data||(a.data={}),a=a.data),void 0!==n&&(a[ot.camelCase(e)]=n),"string"==typeof e?(o=a[e],null==o&&(o=a[ot.camelCase(e)])):o=a,o}}function u(t,e,n){if(ot.acceptData(t)){var i,o,a=t.nodeType,s=a?ot.cache:t,r=a?t[ot.expando]:ot.expando;if(s[r]){if(e&&(i=n?s[r]:s[r].data)){ot.isArray(e)?e=e.concat(ot.map(e,ot.camelCase)):e in i?e=[e]:(e=ot.camelCase(e),e=e in i?[e]:e.split(" ")),o=e.length;for(;o--;)delete i[e[o]];if(n?!d(i):!ot.isEmptyObject(i))return}(n||(delete s[r].data,d(s[r])))&&(a?ot.cleanData([t],!0):nt.deleteExpando||s!=s.window?delete s[r]:s[r]=null)}}}function p(){return!0}function h(){return!1}function f(){try{return ft.activeElement}catch(t){}}function g(t){var e=Mt.split("|"),n=t.createDocumentFragment();if(n.createElement)for(;e.length;)n.createElement(e.pop());return n}function m(t,e){var n,i,o=0,a=typeof t.getElementsByTagName!==_t?t.getElementsByTagName(e||"*"):typeof t.querySelectorAll!==_t?t.querySelectorAll(e||"*"):void 0;if(!a)for(a=[],n=t.childNodes||t;null!=(i=n[o]);o++)!e||ot.nodeName(i,e)?a.push(i):ot.merge(a,m(i,e));return void 0===e||e&&ot.nodeName(t,e)?ot.merge([t],a):a}function v(t){Et.test(t.type)&&(t.defaultChecked=t.checked)}function b(t,e){return ot.nodeName(t,"table")&&ot.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function y(t){return t.type=(null!==ot.find.attr(t,"type"))+"/"+t.type,t}function w(t){var e=Qt.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function x(t,e){for(var n,i=0;null!=(n=t[i]);i++)ot._data(n,"globalEval",!e||ot._data(e[i],"globalEval"))}function C(t,e){if(1===e.nodeType&&ot.hasData(t)){var n,i,o,a=ot._data(t),s=ot._data(e,a),r=a.events;if(r){delete s.handle,s.events={};for(n in r)for(i=0,o=r[n].length;o>i;i++)ot.event.add(e,n,r[n][i])}s.data&&(s.data=ot.extend({},s.data))}}function _(t,e){var n,i,o;if(1===e.nodeType){if(n=e.nodeName.toLowerCase(),!nt.noCloneEvent&&e[ot.expando]){o=ot._data(e);for(i in o.events)ot.removeEvent(e,i,o.handle);e.removeAttribute(ot.expando)}"script"===n&&e.text!==t.text?(y(e).text=t.text,w(e)):"object"===n?(e.parentNode&&(e.outerHTML=t.outerHTML),nt.html5Clone&&t.innerHTML&&!ot.trim(e.innerHTML)&&(e.innerHTML=t.innerHTML)):"input"===n&&Et.test(t.type)?(e.defaultChecked=e.checked=t.checked,e.value!==t.value&&(e.value=t.value)):"option"===n?e.defaultSelected=e.selected=t.defaultSelected:("input"===n||"textarea"===n)&&(e.defaultValue=t.defaultValue)}}function k(e,n){var i,o=ot(n.createElement(e)).appendTo(n.body),a=t.getDefaultComputedStyle&&(i=t.getDefaultComputedStyle(o[0]))?i.display:ot.css(o[0],"display");return o.detach(),a}function S(t){var e=ft,n=Jt[t];return n||(n=k(t,e),"none"!==n&&n||(Kt=(Kt||ot("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement),e=(Kt[0].contentWindow||Kt[0].contentDocument).document,e.write(),e.close(),n=k(t,e),Kt.detach()),Jt[t]=n),n}function T(t,e){return{get:function(){var n=t();if(null!=n)return n?void delete this.get:(this.get=e).apply(this,arguments)}}}function $(t,e){if(e in t)return e;for(var n=e.charAt(0).toUpperCase()+e.slice(1),i=e,o=pe.length;o--;)if(e=pe[o]+n,e in t)return e;return i}function I(t,e){for(var n,i,o,a=[],s=0,r=t.length;r>s;s++)i=t[s],i.style&&(a[s]=ot._data(i,"olddisplay"),n=i.style.display,e?(a[s]||"none"!==n||(i.style.display=""),""===i.style.display&&It(i)&&(a[s]=ot._data(i,"olddisplay",S(i.nodeName)))):(o=It(i),(n&&"none"!==n||!o)&&ot._data(i,"olddisplay",o?n:ot.css(i,"display"))));for(s=0;r>s;s++)i=t[s],i.style&&(e&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=e?a[s]||"":"none"));return t}function A(t,e,n){var i=le.exec(e);return i?Math.max(0,i[1]-(n||0))+(i[2]||"px"):e}function E(t,e,n,i,o){for(var a=n===(i?"border":"content")?4:"width"===e?1:0,s=0;4>a;a+=2)"margin"===n&&(s+=ot.css(t,n+$t[a],!0,o)),i?("content"===n&&(s-=ot.css(t,"padding"+$t[a],!0,o)),"margin"!==n&&(s-=ot.css(t,"border"+$t[a]+"Width",!0,o))):(s+=ot.css(t,"padding"+$t[a],!0,o),"padding"!==n&&(s+=ot.css(t,"border"+$t[a]+"Width",!0,o)));return s}function B(t,e,n){var i=!0,o="width"===e?t.offsetWidth:t.offsetHeight,a=te(t),s=nt.boxSizing&&"border-box"===ot.css(t,"boxSizing",!1,a);if(0>=o||null==o){if(o=ee(t,e,a),(0>o||null==o)&&(o=t.style[e]),ie.test(o))return o;i=s&&(nt.boxSizingReliable()||o===t.style[e]),o=parseFloat(o)||0}return o+E(t,e,n||(s?"border":"content"),i,a)+"px"}function D(t,e,n,i,o){return new D.prototype.init(t,e,n,i,o)}function O(){return setTimeout(function(){he=void 0}),he=ot.now()}function L(t,e){var n,i={height:t},o=0;for(e=e?1:0;4>o;o+=2-e)n=$t[o],i["margin"+n]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function P(t,e,n){for(var i,o=(ye[e]||[]).concat(ye["*"]),a=0,s=o.length;s>a;a++)if(i=o[a].call(n,e,t))return i}function M(t,e,n){var i,o,a,s,r,l,d,c,u=this,p={},h=t.style,f=t.nodeType&&It(t),g=ot._data(t,"fxshow");n.queue||(r=ot._queueHooks(t,"fx"),null==r.unqueued&&(r.unqueued=0,l=r.empty.fire,r.empty.fire=function(){r.unqueued||l()}),r.unqueued++,u.always(function(){u.always(function(){r.unqueued--,ot.queue(t,"fx").length||r.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],d=ot.css(t,"display"),c="none"===d?ot._data(t,"olddisplay")||S(t.nodeName):d,"inline"===c&&"none"===ot.css(t,"float")&&(nt.inlineBlockNeedsLayout&&"inline"!==S(t.nodeName)?h.zoom=1:h.display="inline-block")),n.overflow&&(h.overflow="hidden",nt.shrinkWrapBlocks()||u.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]}));for(i in e)if(o=e[i],ge.exec(o)){if(delete e[i],a=a||"toggle"===o,o===(f?"hide":"show")){if("show"!==o||!g||void 0===g[i])continue;f=!0}p[i]=g&&g[i]||ot.style(t,i)}else d=void 0;if(ot.isEmptyObject(p))"inline"===("none"===d?S(t.nodeName):d)&&(h.display=d);else{g?"hidden"in g&&(f=g.hidden):g=ot._data(t,"fxshow",{}),a&&(g.hidden=!f),f?ot(t).show():u.done(function(){ot(t).hide()}),u.done(function(){var e;ot._removeData(t,"fxshow");for(e in p)ot.style(t,e,p[e])});for(i in p)s=P(f?g[i]:0,i,u),i in g||(g[i]=s.start,f&&(s.end=s.start,s.start="width"===i||"height"===i?1:0))}}function j(t,e){var n,i,o,a,s;for(n in t)if(i=ot.camelCase(n),o=e[i],a=t[n],ot.isArray(a)&&(o=a[1],a=t[n]=a[0]),n!==i&&(t[i]=a,delete t[n]),s=ot.cssHooks[i],s&&"expand"in s){a=s.expand(a),delete t[i];for(n in a)n in t||(t[n]=a[n],e[n]=o)}else e[i]=o}function N(t,e,n){var i,o,a=0,s=be.length,r=ot.Deferred().always(function(){delete l.elem}),l=function(){if(o)return!1;for(var e=he||O(),n=Math.max(0,d.startTime+d.duration-e),i=n/d.duration||0,a=1-i,s=0,l=d.tweens.length;l>s;s++)d.tweens[s].run(a);return r.notifyWith(t,[d,a,n]),1>a&&l?n:(r.resolveWith(t,[d]),!1)},d=r.promise({elem:t,props:ot.extend({},e),opts:ot.extend(!0,{specialEasing:{}},n),originalProperties:e,originalOptions:n,startTime:he||O(),duration:n.duration,tweens:[],createTween:function(e,n){var i=ot.Tween(t,d.opts,e,n,d.opts.specialEasing[e]||d.opts.easing);return d.tweens.push(i),i},stop:function(e){var n=0,i=e?d.tweens.length:0;if(o)return this;for(o=!0;i>n;n++)d.tweens[n].run(1);return e?r.resolveWith(t,[d,e]):r.rejectWith(t,[d,e]),this}}),c=d.props;for(j(c,d.opts.specialEasing);s>a;a++)if(i=be[a].call(d,t,c,d.opts))return i;return ot.map(c,P,d),ot.isFunction(d.opts.start)&&d.opts.start.call(t,d),ot.fx.timer(ot.extend(l,{elem:t,anim:d,queue:d.opts.queue})),d.progress(d.opts.progress).done(d.opts.done,d.opts.complete).fail(d.opts.fail).always(d.opts.always)}function H(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var i,o=0,a=e.toLowerCase().match(yt)||[];if(ot.isFunction(n))for(;i=a[o++];)"+"===i.charAt(0)?(i=i.slice(1)||"*",(t[i]=t[i]||[]).unshift(n)):(t[i]=t[i]||[]).push(n)}}function R(t,e,n,i){function o(r){var l;return a[r]=!0,ot.each(t[r]||[],function(t,r){var d=r(e,n,i);return"string"!=typeof d||s||a[d]?s?!(l=d):void 0:(e.dataTypes.unshift(d),o(d),!1)}),l}var a={},s=t===qe;return o(e.dataTypes[0])||!a["*"]&&o("*")}function W(t,e){var n,i,o=ot.ajaxSettings.flatOptions||{};for(i in e)void 0!==e[i]&&((o[i]?t:n||(n={}))[i]=e[i]);return n&&ot.extend(!0,t,n),t}function z(t,e,n){for(var i,o,a,s,r=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===o&&(o=t.mimeType||e.getResponseHeader("Content-Type"));if(o)for(s in r)if(r[s]&&r[s].test(o)){l.unshift(s);break}if(l[0]in n)a=l[0];else{for(s in n){if(!l[0]||t.converters[s+" "+l[0]]){a=s;break}i||(i=s)}a=a||i}return a?(a!==l[0]&&l.unshift(a),n[a]):void 0}function q(t,e,n,i){var o,a,s,r,l,d={},c=t.dataTypes.slice();if(c[1])for(s in t.converters)d[s.toLowerCase()]=t.converters[s];for(a=c.shift();a;)if(t.responseFields[a]&&(n[t.responseFields[a]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=a,a=c.shift())if("*"===a)a=l;else if("*"!==l&&l!==a){if(s=d[l+" "+a]||d["* "+a],!s)for(o in d)if(r=o.split(" "),r[1]===a&&(s=d[l+" "+r[0]]||d["* "+r[0]])){s===!0?s=d[o]:d[o]!==!0&&(a=r[0],c.unshift(r[1]));break}if(s!==!0)if(s&&t.throws)e=s(e);else try{e=s(e)}catch(t){return{state:"parsererror",error:s?t:"No conversion from "+l+" to "+a}}}return{state:"success",data:e}}function F(t,e,n,i){var o;if(ot.isArray(e))ot.each(e,function(e,o){n||Ve.test(t)?i(t,o):F(t+"["+("object"==typeof o?e:"")+"]",o,n,i)});else if(n||"object"!==ot.type(e))i(t,e);else for(o in e)F(t+"["+o+"]",e[o],n,i)}function U(){try{return new t.XMLHttpRequest}catch(t){}}function V(){try{return new t.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function Q(t){return ot.isWindow(t)?t:9===t.nodeType&&(t.defaultView||t.parentWindow)}var X=[],Y=X.slice,G=X.concat,Z=X.push,K=X.indexOf,J={},tt=J.toString,et=J.hasOwnProperty,nt={},it="1.11.3",ot=function(t,e){return new ot.fn.init(t,e)},at=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,st=/^-ms-/,rt=/-([\da-z])/gi,lt=function(t,e){return e.toUpperCase()};ot.fn=ot.prototype={jquery:it,constructor:ot,selector:"",length:0,toArray:function(){return Y.call(this)},get:function(t){return null!=t?0>t?this[t+this.length]:this[t]:Y.call(this)},pushStack:function(t){var e=ot.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t,e){return ot.each(this,t,e)},map:function(t){return this.pushStack(ot.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(Y.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(0>t?e:0);return this.pushStack(n>=0&&e>n?[this[n]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:Z,sort:X.sort,splice:X.splice},ot.extend=ot.fn.extend=function(){var t,e,n,i,o,a,s=arguments[0]||{},r=1,l=arguments.length,d=!1;for("boolean"==typeof s&&(d=s,s=arguments[r]||{},r++),"object"==typeof s||ot.isFunction(s)||(s={}),r===l&&(s=this,r--);l>r;r++)if(null!=(o=arguments[r]))for(i in o)t=s[i],n=o[i],s!==n&&(d&&n&&(ot.isPlainObject(n)||(e=ot.isArray(n)))?(e?(e=!1,a=t&&ot.isArray(t)?t:[]):a=t&&ot.isPlainObject(t)?t:{},s[i]=ot.extend(d,a,n)):void 0!==n&&(s[i]=n));return s},ot.extend({expando:"jQuery"+(it+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===ot.type(t)},isArray:Array.isArray||function(t){return"array"===ot.type(t)},isWindow:function(t){return null!=t&&t==t.window},isNumeric:function(t){return!ot.isArray(t)&&t-parseFloat(t)+1>=0},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},isPlainObject:function(t){var e;if(!t||"object"!==ot.type(t)||t.nodeType||ot.isWindow(t))return!1;try{if(t.constructor&&!et.call(t,"constructor")&&!et.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}if(nt.ownLast)for(e in t)return et.call(t,e);for(e in t);return void 0===e||et.call(t,e)},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?J[tt.call(t)]||"object":typeof t},globalEval:function(e){e&&ot.trim(e)&&(t.execScript||function(e){t.eval.call(t,e)})(e)},camelCase:function(t){return t.replace(st,"ms-").replace(rt,lt)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e,i){var o,a=0,s=t.length,r=n(t);if(i){if(r)for(;s>a&&(o=e.apply(t[a],i),o!==!1);a++);else for(a in t)if(o=e.apply(t[a],i),o===!1)break}else if(r)for(;s>a&&(o=e.call(t[a],a,t[a]),o!==!1);a++);else for(a in t)if(o=e.call(t[a],a,t[a]),o===!1)break;return t},trim:function(t){return null==t?"":(t+"").replace(at,"")},makeArray:function(t,e){var i=e||[];return null!=t&&(n(Object(t))?ot.merge(i,"string"==typeof t?[t]:t):Z.call(i,t)),i},inArray:function(t,e,n){var i;if(e){if(K)return K.call(e,t,n);for(i=e.length,n=n?0>n?Math.max(0,i+n):n:0;i>n;n++)if(n in e&&e[n]===t)return n}return-1},merge:function(t,e){for(var n=+e.length,i=0,o=t.length;n>i;)t[o++]=e[i++];if(n!==n)for(;void 0!==e[i];)t[o++]=e[i++];return t.length=o,t},grep:function(t,e,n){for(var i,o=[],a=0,s=t.length,r=!n;s>a;a++)i=!e(t[a],a),i!==r&&o.push(t[a]);return o},map:function(t,e,i){var o,a=0,s=t.length,r=n(t),l=[];if(r)for(;s>a;a++)o=e(t[a],a,i),null!=o&&l.push(o);else for(a in t)o=e(t[a],a,i),null!=o&&l.push(o);return G.apply([],l)},guid:1,proxy:function(t,e){var n,i,o;return"string"==typeof e&&(o=t[e],e=t,t=o),ot.isFunction(t)?(n=Y.call(arguments,2),i=function(){return t.apply(e||this,n.concat(Y.call(arguments)))},i.guid=t.guid=t.guid||ot.guid++,i):void 0},now:function(){return+new Date},support:nt}),ot.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(t,e){J["[object "+e+"]"]=e.toLowerCase()});var dt=function(t){function e(t,e,n,i){var o,a,s,r,l,d,u,h,f,g;if((e?e.ownerDocument||e:R)!==D&&B(e),e=e||D,n=n||[],r=e.nodeType,"string"!=typeof t||!t||1!==r&&9!==r&&11!==r)return n;if(!i&&L){if(11!==r&&(o=bt.exec(t)))if(s=o[1]){if(9===r){if(a=e.getElementById(s),!a||!a.parentNode)return n;if(a.id===s)return n.push(a),n}else if(e.ownerDocument&&(a=e.ownerDocument.getElementById(s))&&N(e,a)&&a.id===s)return n.push(a),n}else{if(o[2])return K.apply(n,e.getElementsByTagName(t)),n;if((s=o[3])&&x.getElementsByClassName)return K.apply(n,e.getElementsByClassName(s)),n}if(x.qsa&&(!P||!P.test(t))){if(h=u=H,f=e,g=1!==r&&t,1===r&&"object"!==e.nodeName.toLowerCase()){for(d=S(t),(u=e.getAttribute("id"))?h=u.replace(wt,"\\$&"):e.setAttribute("id",h),h="[id='"+h+"'] ",l=d.length;l--;)d[l]=h+p(d[l]);f=yt.test(t)&&c(e.parentNode)||e,g=d.join(",")}if(g)try{return K.apply(n,f.querySelectorAll(g)),n}catch(t){}finally{u||e.removeAttribute("id")}}}return $(t.replace(lt,"$1"),e,n,i)}function n(){function t(n,i){return e.push(n+" ")>C.cacheLength&&delete t[e.shift()],t[n+" "]=i}var e=[];return t}function i(t){return t[H]=!0,t}function o(t){var e=D.createElement("div");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function a(t,e){for(var n=t.split("|"),i=t.length;i--;)C.attrHandle[n[i]]=e}function s(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||Q)-(~t.sourceIndex||Q);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function r(t){return function(e){var n=e.nodeName.toLowerCase();return"input"===n&&e.type===t}}function l(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function d(t){return i(function(e){return e=+e,i(function(n,i){for(var o,a=t([],n.length,e),s=a.length;s--;)n[o=a[s]]&&(n[o]=!(i[o]=n[o]))})})}function c(t){return t&&"undefined"!=typeof t.getElementsByTagName&&t}function u(){}function p(t){for(var e=0,n=t.length,i="";n>e;e++)i+=t[e].value;return i}function h(t,e,n){var i=e.dir,o=n&&"parentNode"===i,a=z++;return e.first?function(e,n,a){for(;e=e[i];)if(1===e.nodeType||o)return t(e,n,a)}:function(e,n,s){var r,l,d=[W,a];if(s){for(;e=e[i];)if((1===e.nodeType||o)&&t(e,n,s))return!0}else for(;e=e[i];)if(1===e.nodeType||o){if(l=e[H]||(e[H]={}),(r=l[i])&&r[0]===W&&r[1]===a)return d[2]=r[2];if(l[i]=d,d[2]=t(e,n,s))return!0}}}function f(t){return t.length>1?function(e,n,i){for(var o=t.length;o--;)if(!t[o](e,n,i))return!1;return!0}:t[0]}function g(t,n,i){for(var o=0,a=n.length;a>o;o++)e(t,n[o],i);return i}function m(t,e,n,i,o){for(var a,s=[],r=0,l=t.length,d=null!=e;l>r;r++)(a=t[r])&&(!n||n(a,i,o))&&(s.push(a),d&&e.push(r));return s}function v(t,e,n,o,a,s){return o&&!o[H]&&(o=v(o)),a&&!a[H]&&(a=v(a,s)),i(function(i,s,r,l){var d,c,u,p=[],h=[],f=s.length,v=i||g(e||"*",r.nodeType?[r]:r,[]),b=!t||!i&&e?v:m(v,p,t,r,l),y=n?a||(i?t:f||o)?[]:s:b;if(n&&n(b,y,r,l),o)for(d=m(y,h),o(d,[],r,l),c=d.length;c--;)(u=d[c])&&(y[h[c]]=!(b[h[c]]=u));if(i){if(a||t){if(a){for(d=[],c=y.length;c--;)(u=y[c])&&d.push(b[c]=u);a(null,y=[],d,l)}for(c=y.length;c--;)(u=y[c])&&(d=a?tt(i,u):p[c])>-1&&(i[d]=!(s[d]=u))}}else y=m(y===s?y.splice(f,y.length):y),a?a(null,s,y,l):K.apply(s,y)})}function b(t){for(var e,n,i,o=t.length,a=C.relative[t[0].type],s=a||C.relative[" "],r=a?1:0,l=h(function(t){return t===e},s,!0),d=h(function(t){return tt(e,t)>-1},s,!0),c=[function(t,n,i){var o=!a&&(i||n!==I)||((e=n).nodeType?l(t,n,i):d(t,n,i));return e=null,o}];o>r;r++)if(n=C.relative[t[r].type])c=[h(f(c),n)];else{if(n=C.filter[t[r].type].apply(null,t[r].matches),n[H]){for(i=++r;o>i&&!C.relative[t[i].type];i++);return v(r>1&&f(c),r>1&&p(t.slice(0,r-1).concat({value:" "===t[r-2].type?"*":""})).replace(lt,"$1"),n,i>r&&b(t.slice(r,i)),o>i&&b(t=t.slice(i)),o>i&&p(t))}c.push(n)}return f(c)}function y(t,n){var o=n.length>0,a=t.length>0,s=function(i,s,r,l,d){var c,u,p,h=0,f="0",g=i&&[],v=[],b=I,y=i||a&&C.find.TAG("*",d),w=W+=null==b?1:Math.random()||.1,x=y.length;for(d&&(I=s!==D&&s);f!==x&&null!=(c=y[f]);f++){if(a&&c){for(u=0;p=t[u++];)if(p(c,s,r)){l.push(c);break}d&&(W=w)}o&&((c=!p&&c)&&h--,i&&g.push(c))}if(h+=f,o&&f!==h){for(u=0;p=n[u++];)p(g,v,s,r);if(i){if(h>0)for(;f--;)g[f]||v[f]||(v[f]=G.call(l));v=m(v)}K.apply(l,v),d&&!i&&v.length>0&&h+n.length>1&&e.uniqueSort(l)}return d&&(W=w,I=b),g};return o?i(s):s}var w,x,C,_,k,S,T,$,I,A,E,B,D,O,L,P,M,j,N,H="sizzle"+1*new Date,R=t.document,W=0,z=0,q=n(),F=n(),U=n(),V=function(t,e){return t===e&&(E=!0),0},Q=1<<31,X={}.hasOwnProperty,Y=[],G=Y.pop,Z=Y.push,K=Y.push,J=Y.slice,tt=function(t,e){for(var n=0,i=t.length;i>n;n++)if(t[n]===e)return n;return-1},et="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",nt="[\\x20\\t\\r\\n\\f]",it="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",ot=it.replace("w","w#"),at="\\["+nt+"*("+it+")(?:"+nt+"*([*^$|!~]?=)"+nt+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+ot+"))|)"+nt+"*\\]",st=":("+it+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+at+")*)|.*)\\)|)",rt=new RegExp(nt+"+","g"),lt=new RegExp("^"+nt+"+|((?:^|[^\\\\])(?:\\\\.)*)"+nt+"+$","g"),dt=new RegExp("^"+nt+"*,"+nt+"*"),ct=new RegExp("^"+nt+"*([>+~]|"+nt+")"+nt+"*"),ut=new RegExp("="+nt+"*([^\\]'\"]*?)"+nt+"*\\]","g"),pt=new RegExp(st),ht=new RegExp("^"+ot+"$"),ft={ID:new RegExp("^#("+it+")"),CLASS:new RegExp("^\\.("+it+")"),TAG:new RegExp("^("+it.replace("w","w*")+")"),ATTR:new RegExp("^"+at),PSEUDO:new RegExp("^"+st),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+nt+"*(even|odd|(([+-]|)(\\d*)n|)"+nt+"*(?:([+-]|)"+nt+"*(\\d+)|))"+nt+"*\\)|)","i"),bool:new RegExp("^(?:"+et+")$","i"),needsContext:new RegExp("^"+nt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+nt+"*((?:-\\d)?\\d*)"+nt+"*\\)|)(?=[^-]|$)","i")},gt=/^(?:input|select|textarea|button)$/i,mt=/^h\d$/i,vt=/^[^{]+\{\s*\[native \w/,bt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,yt=/[+~]/,wt=/'|\\/g,xt=new RegExp("\\\\([\\da-f]{1,6}"+nt+"?|("+nt+")|.)","ig"),Ct=function(t,e,n){var i="0x"+e-65536;return i!==i||n?e:0>i?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},_t=function(){B()};try{K.apply(Y=J.call(R.childNodes),R.childNodes),Y[R.childNodes.length].nodeType}catch(t){K={apply:Y.length?function(t,e){Z.apply(t,J.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}x=e.support={},k=e.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},B=e.setDocument=function(t){var e,n,i=t?t.ownerDocument||t:R;return i!==D&&9===i.nodeType&&i.documentElement?(D=i,O=i.documentElement,n=i.defaultView,n&&n!==n.top&&(n.addEventListener?n.addEventListener("unload",_t,!1):n.attachEvent&&n.attachEvent("onunload",_t)),L=!k(i),x.attributes=o(function(t){return t.className="i",!t.getAttribute("className")}),x.getElementsByTagName=o(function(t){return t.appendChild(i.createComment("")),!t.getElementsByTagName("*").length}),x.getElementsByClassName=vt.test(i.getElementsByClassName),x.getById=o(function(t){return O.appendChild(t).id=H,!i.getElementsByName||!i.getElementsByName(H).length}),x.getById?(C.find.ID=function(t,e){if("undefined"!=typeof e.getElementById&&L){var n=e.getElementById(t);return n&&n.parentNode?[n]:[]}},C.filter.ID=function(t){var e=t.replace(xt,Ct);return function(t){return t.getAttribute("id")===e}}):(delete C.find.ID,C.filter.ID=function(t){var e=t.replace(xt,Ct);return function(t){var n="undefined"!=typeof t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}}),C.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 n,i=[],o=0,a=e.getElementsByTagName(t);if("*"===t){for(;n=a[o++];)1===n.nodeType&&i.push(n);return i}return a},C.find.CLASS=x.getElementsByClassName&&function(t,e){return L?e.getElementsByClassName(t):void 0},M=[],P=[],(x.qsa=vt.test(i.querySelectorAll))&&(o(function(t){O.appendChild(t).innerHTML="<a id='"+H+"'></a><select id='"+H+"-\f]' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&P.push("[*^$]="+nt+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||P.push("\\["+nt+"*(?:value|"+et+")"),t.querySelectorAll("[id~="+H+"-]").length||P.push("~="),t.querySelectorAll(":checked").length||P.push(":checked"),t.querySelectorAll("a#"+H+"+*").length||P.push(".#.+[+~]")}),o(function(t){var e=i.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&P.push("name"+nt+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||P.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),P.push(",.*:")})),(x.matchesSelector=vt.test(j=O.matches||O.webkitMatchesSelector||O.mozMatchesSelector||O.oMatchesSelector||O.msMatchesSelector))&&o(function(t){x.disconnectedMatch=j.call(t,"div"),j.call(t,"[s!='']:x"),M.push("!=",st)}),P=P.length&&new RegExp(P.join("|")),M=M.length&&new RegExp(M.join("|")),e=vt.test(O.compareDocumentPosition),N=e||vt.test(O.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},V=e?function(t,e){if(t===e)return E=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n?n:(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&n||!x.sortDetached&&e.compareDocumentPosition(t)===n?t===i||t.ownerDocument===R&&N(R,t)?-1:e===i||e.ownerDocument===R&&N(R,e)?1:A?tt(A,t)-tt(A,e):0:4&n?-1:1)}:function(t,e){if(t===e)return E=!0,0;var n,o=0,a=t.parentNode,r=e.parentNode,l=[t],d=[e];if(!a||!r)return t===i?-1:e===i?1:a?-1:r?1:A?tt(A,t)-tt(A,e):0;if(a===r)return s(t,e);for(n=t;n=n.parentNode;)l.unshift(n);for(n=e;n=n.parentNode;)d.unshift(n);for(;l[o]===d[o];)o++;return o?s(l[o],d[o]):l[o]===R?-1:d[o]===R?1:0},i):D},e.matches=function(t,n){return e(t,null,null,n)},e.matchesSelector=function(t,n){if((t.ownerDocument||t)!==D&&B(t),n=n.replace(ut,"='$1']"),!(!x.matchesSelector||!L||M&&M.test(n)||P&&P.test(n)))try{var i=j.call(t,n);if(i||x.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(t){}return e(n,D,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==D&&B(t),N(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==D&&B(t);var n=C.attrHandle[e.toLowerCase()],i=n&&X.call(C.attrHandle,e.toLowerCase())?n(t,e,!L):void 0;return void 0!==i?i:x.attributes||!L?t.getAttribute(e):(i=t.getAttributeNode(e))&&i.specified?i.value:null},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,n=[],i=0,o=0;if(E=!x.detectDuplicates,A=!x.sortStable&&t.slice(0),t.sort(V),E){for(;e=t[o++];)e===t[o]&&(i=n.push(o));for(;i--;)t.splice(n[i],1)}return A=null,t},_=e.getText=function(t){var e,n="",i=0,o=t.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=_(t)}else if(3===o||4===o)return t.nodeValue}else for(;e=t[i++];)n+=_(e);return n},C=e.selectors={cacheLength:50,createPseudo:i,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,Ct),t[3]=(t[3]||t[4]||t[5]||"").replace(xt,Ct),"~="===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,n=!t[6]&&t[2];return ft.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&pt.test(n)&&(e=S(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(xt,Ct).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=q[t+" "];return e||(e=new RegExp("(^|"+nt+")"+t+"("+nt+"|$)"))&&q(t,function(t){return e.test("string"==typeof t.className&&t.className||"undefined"!=typeof t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,n,i){return function(o){var a=e.attr(o,t);return null==a?"!="===n:!n||(a+="","="===n?a===i:"!="===n?a!==i:"^="===n?i&&0===a.indexOf(i):"*="===n?i&&a.indexOf(i)>-1:"$="===n?i&&a.slice(-i.length)===i:"~="===n?(" "+a.replace(rt," ")+" ").indexOf(i)>-1:"|="===n&&(a===i||a.slice(0,i.length+1)===i+"-"))}},CHILD:function(t,e,n,i,o){var a="nth"!==t.slice(0,3),s="last"!==t.slice(-4),r="of-type"===e;return 1===i&&0===o?function(t){return!!t.parentNode}:function(e,n,l){var d,c,u,p,h,f,g=a!==s?"nextSibling":"previousSibling",m=e.parentNode,v=r&&e.nodeName.toLowerCase(),b=!l&&!r;if(m){if(a){for(;g;){for(u=e;u=u[g];)if(r?u.nodeName.toLowerCase()===v:1===u.nodeType)return!1;f=g="only"===t&&!f&&"nextSibling"}return!0}if(f=[s?m.firstChild:m.lastChild],s&&b){for(c=m[H]||(m[H]={}),d=c[t]||[],h=d[0]===W&&d[1],p=d[0]===W&&d[2],u=h&&m.childNodes[h];u=++h&&u&&u[g]||(p=h=0)||f.pop();)if(1===u.nodeType&&++p&&u===e){c[t]=[W,h,p];break}}else if(b&&(d=(e[H]||(e[H]={}))[t])&&d[0]===W)p=d[1];else for(;(u=++h&&u&&u[g]||(p=h=0)||f.pop())&&((r?u.nodeName.toLowerCase()!==v:1!==u.nodeType)||!++p||(b&&((u[H]||(u[H]={}))[t]=[W,p]),u!==e)););return p-=o,p===i||p%i===0&&p/i>=0}}},PSEUDO:function(t,n){var o,a=C.pseudos[t]||C.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);
return a[H]?a(n):a.length>1?(o=[t,t,"",n],C.setFilters.hasOwnProperty(t.toLowerCase())?i(function(t,e){for(var i,o=a(t,n),s=o.length;s--;)i=tt(t,o[s]),t[i]=!(e[i]=o[s])}):function(t){return a(t,0,o)}):a}},pseudos:{not:i(function(t){var e=[],n=[],o=T(t.replace(lt,"$1"));return o[H]?i(function(t,e,n,i){for(var a,s=o(t,null,i,[]),r=t.length;r--;)(a=s[r])&&(t[r]=!(e[r]=a))}):function(t,i,a){return e[0]=t,o(e,null,a,n),e[0]=null,!n.pop()}}),has:i(function(t){return function(n){return e(t,n).length>0}}),contains:i(function(t){return t=t.replace(xt,Ct),function(e){return(e.textContent||e.innerText||_(e)).indexOf(t)>-1}}),lang:i(function(t){return ht.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(xt,Ct).toLowerCase(),function(e){var n;do if(n=L?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return n=n.toLowerCase(),n===t||0===n.indexOf(t+"-");while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===O},focus:function(t){return t===D.activeElement&&(!D.hasFocus||D.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!C.pseudos.empty(t)},header:function(t){return mt.test(t.nodeName)},input:function(t){return gt.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:d(function(){return[0]}),last:d(function(t,e){return[e-1]}),eq:d(function(t,e,n){return[0>n?n+e:n]}),even:d(function(t,e){for(var n=0;e>n;n+=2)t.push(n);return t}),odd:d(function(t,e){for(var n=1;e>n;n+=2)t.push(n);return t}),lt:d(function(t,e,n){for(var i=0>n?n+e:n;--i>=0;)t.push(i);return t}),gt:d(function(t,e,n){for(var i=0>n?n+e:n;++i<e;)t.push(i);return t})}},C.pseudos.nth=C.pseudos.eq;for(w in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})C.pseudos[w]=r(w);for(w in{submit:!0,reset:!0})C.pseudos[w]=l(w);return u.prototype=C.filters=C.pseudos,C.setFilters=new u,S=e.tokenize=function(t,n){var i,o,a,s,r,l,d,c=F[t+" "];if(c)return n?0:c.slice(0);for(r=t,l=[],d=C.preFilter;r;){(!i||(o=dt.exec(r)))&&(o&&(r=r.slice(o[0].length)||r),l.push(a=[])),i=!1,(o=ct.exec(r))&&(i=o.shift(),a.push({value:i,type:o[0].replace(lt," ")}),r=r.slice(i.length));for(s in C.filter)!(o=ft[s].exec(r))||d[s]&&!(o=d[s](o))||(i=o.shift(),a.push({value:i,type:s,matches:o}),r=r.slice(i.length));if(!i)break}return n?r.length:r?e.error(t):F(t,l).slice(0)},T=e.compile=function(t,e){var n,i=[],o=[],a=U[t+" "];if(!a){for(e||(e=S(t)),n=e.length;n--;)a=b(e[n]),a[H]?i.push(a):o.push(a);a=U(t,y(o,i)),a.selector=t}return a},$=e.select=function(t,e,n,i){var o,a,s,r,l,d="function"==typeof t&&t,u=!i&&S(t=d.selector||t);if(n=n||[],1===u.length){if(a=u[0]=u[0].slice(0),a.length>2&&"ID"===(s=a[0]).type&&x.getById&&9===e.nodeType&&L&&C.relative[a[1].type]){if(e=(C.find.ID(s.matches[0].replace(xt,Ct),e)||[])[0],!e)return n;d&&(e=e.parentNode),t=t.slice(a.shift().value.length)}for(o=ft.needsContext.test(t)?0:a.length;o--&&(s=a[o],!C.relative[r=s.type]);)if((l=C.find[r])&&(i=l(s.matches[0].replace(xt,Ct),yt.test(a[0].type)&&c(e.parentNode)||e))){if(a.splice(o,1),t=i.length&&p(a),!t)return K.apply(n,i),n;break}}return(d||T(t,u))(i,e,!L,n,yt.test(t)&&c(e.parentNode)||e),n},x.sortStable=H.split("").sort(V).join("")===H,x.detectDuplicates=!!E,B(),x.sortDetached=o(function(t){return 1&t.compareDocumentPosition(D.createElement("div"))}),o(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||a("type|href|height|width",function(t,e,n){return n?void 0:t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),x.attributes&&o(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||a("value",function(t,e,n){return n||"input"!==t.nodeName.toLowerCase()?void 0:t.defaultValue}),o(function(t){return null==t.getAttribute("disabled")})||a(et,function(t,e,n){var i;return n?void 0:t[e]===!0?e.toLowerCase():(i=t.getAttributeNode(e))&&i.specified?i.value:null}),e}(t);ot.find=dt,ot.expr=dt.selectors,ot.expr[":"]=ot.expr.pseudos,ot.unique=dt.uniqueSort,ot.text=dt.getText,ot.isXMLDoc=dt.isXML,ot.contains=dt.contains;var ct=ot.expr.match.needsContext,ut=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,pt=/^.[^:#\[\.,]*$/;ot.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?ot.find.matchesSelector(i,t)?[i]:[]:ot.find.matches(t,ot.grep(e,function(t){return 1===t.nodeType}))},ot.fn.extend({find:function(t){var e,n=[],i=this,o=i.length;if("string"!=typeof t)return this.pushStack(ot(t).filter(function(){for(e=0;o>e;e++)if(ot.contains(i[e],this))return!0}));for(e=0;o>e;e++)ot.find(t,i[e],n);return n=this.pushStack(o>1?ot.unique(n):n),n.selector=this.selector?this.selector+" "+t:t,n},filter:function(t){return this.pushStack(i(this,t||[],!1))},not:function(t){return this.pushStack(i(this,t||[],!0))},is:function(t){return!!i(this,"string"==typeof t&&ct.test(t)?ot(t):t||[],!1).length}});var ht,ft=t.document,gt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,mt=ot.fn.init=function(t,e){var n,i;if(!t)return this;if("string"==typeof t){if(n="<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&t.length>=3?[null,t,null]:gt.exec(t),!n||!n[1]&&e)return!e||e.jquery?(e||ht).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof ot?e[0]:e,ot.merge(this,ot.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:ft,!0)),ut.test(n[1])&&ot.isPlainObject(e))for(n in e)ot.isFunction(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}if(i=ft.getElementById(n[2]),i&&i.parentNode){if(i.id!==n[2])return ht.find(t);this.length=1,this[0]=i}return this.context=ft,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):ot.isFunction(t)?"undefined"!=typeof ht.ready?ht.ready(t):t(ot):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),ot.makeArray(t,this))};mt.prototype=ot.fn,ht=ot(ft);var vt=/^(?:parents|prev(?:Until|All))/,bt={children:!0,contents:!0,next:!0,prev:!0};ot.extend({dir:function(t,e,n){for(var i=[],o=t[e];o&&9!==o.nodeType&&(void 0===n||1!==o.nodeType||!ot(o).is(n));)1===o.nodeType&&i.push(o),o=o[e];return i},sibling:function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}}),ot.fn.extend({has:function(t){var e,n=ot(t,this),i=n.length;return this.filter(function(){for(e=0;i>e;e++)if(ot.contains(this,n[e]))return!0})},closest:function(t,e){for(var n,i=0,o=this.length,a=[],s=ct.test(t)||"string"!=typeof t?ot(t,e||this.context):0;o>i;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&ot.find.matchesSelector(n,t))){a.push(n);break}return this.pushStack(a.length>1?ot.unique(a):a)},index:function(t){return t?"string"==typeof t?ot.inArray(this[0],ot(t)):ot.inArray(t.jquery?t[0]:t,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(ot.unique(ot.merge(this.get(),ot(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),ot.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return ot.dir(t,"parentNode")},parentsUntil:function(t,e,n){return ot.dir(t,"parentNode",n)},next:function(t){return o(t,"nextSibling")},prev:function(t){return o(t,"previousSibling")},nextAll:function(t){return ot.dir(t,"nextSibling")},prevAll:function(t){return ot.dir(t,"previousSibling")},nextUntil:function(t,e,n){return ot.dir(t,"nextSibling",n)},prevUntil:function(t,e,n){return ot.dir(t,"previousSibling",n)},siblings:function(t){return ot.sibling((t.parentNode||{}).firstChild,t)},children:function(t){return ot.sibling(t.firstChild)},contents:function(t){return ot.nodeName(t,"iframe")?t.contentDocument||t.contentWindow.document:ot.merge([],t.childNodes)}},function(t,e){ot.fn[t]=function(n,i){var o=ot.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(o=ot.filter(i,o)),this.length>1&&(bt[t]||(o=ot.unique(o)),vt.test(t)&&(o=o.reverse())),this.pushStack(o)}});var yt=/\S+/g,wt={};ot.Callbacks=function(t){t="string"==typeof t?wt[t]||a(t):ot.extend({},t);var e,n,i,o,s,r,l=[],d=!t.once&&[],c=function(a){for(n=t.memory&&a,i=!0,s=r||0,r=0,o=l.length,e=!0;l&&o>s;s++)if(l[s].apply(a[0],a[1])===!1&&t.stopOnFalse){n=!1;break}e=!1,l&&(d?d.length&&c(d.shift()):n?l=[]:u.disable())},u={add:function(){if(l){var i=l.length;!function e(n){ot.each(n,function(n,i){var o=ot.type(i);"function"===o?t.unique&&u.has(i)||l.push(i):i&&i.length&&"string"!==o&&e(i)})}(arguments),e?o=l.length:n&&(r=i,c(n))}return this},remove:function(){return l&&ot.each(arguments,function(t,n){for(var i;(i=ot.inArray(n,l,i))>-1;)l.splice(i,1),e&&(o>=i&&o--,s>=i&&s--)}),this},has:function(t){return t?ot.inArray(t,l)>-1:!(!l||!l.length)},empty:function(){return l=[],o=0,this},disable:function(){return l=d=n=void 0,this},disabled:function(){return!l},lock:function(){return d=void 0,n||u.disable(),this},locked:function(){return!d},fireWith:function(t,n){return!l||i&&!d||(n=n||[],n=[t,n.slice?n.slice():n],e?d.push(n):c(n)),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!i}};return u},ot.extend({Deferred:function(t){var e=[["resolve","done",ot.Callbacks("once memory"),"resolved"],["reject","fail",ot.Callbacks("once memory"),"rejected"],["notify","progress",ot.Callbacks("memory")]],n="pending",i={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},then:function(){var t=arguments;return ot.Deferred(function(n){ot.each(e,function(e,a){var s=ot.isFunction(t[e])&&t[e];o[a[1]](function(){var t=s&&s.apply(this,arguments);t&&ot.isFunction(t.promise)?t.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[a[0]+"With"](this===i?n.promise():this,s?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?ot.extend(t,i):i}},o={};return i.pipe=i.then,ot.each(e,function(t,a){var s=a[2],r=a[3];i[a[1]]=s.add,r&&s.add(function(){n=r},e[1^t][2].disable,e[2][2].lock),o[a[0]]=function(){return o[a[0]+"With"](this===o?i:this,arguments),this},o[a[0]+"With"]=s.fireWith}),i.promise(o),t&&t.call(o,o),o},when:function(t){var e,n,i,o=0,a=Y.call(arguments),s=a.length,r=1!==s||t&&ot.isFunction(t.promise)?s:0,l=1===r?t:ot.Deferred(),d=function(t,n,i){return function(o){n[t]=this,i[t]=arguments.length>1?Y.call(arguments):o,i===e?l.notifyWith(n,i):--r||l.resolveWith(n,i)}};if(s>1)for(e=new Array(s),n=new Array(s),i=new Array(s);s>o;o++)a[o]&&ot.isFunction(a[o].promise)?a[o].promise().done(d(o,i,a)).fail(l.reject).progress(d(o,n,e)):--r;return r||l.resolveWith(i,a),l.promise()}});var xt;ot.fn.ready=function(t){return ot.ready.promise().done(t),this},ot.extend({isReady:!1,readyWait:1,holdReady:function(t){t?ot.readyWait++:ot.ready(!0)},ready:function(t){if(t===!0?!--ot.readyWait:!ot.isReady){if(!ft.body)return setTimeout(ot.ready);ot.isReady=!0,t!==!0&&--ot.readyWait>0||(xt.resolveWith(ft,[ot]),ot.fn.triggerHandler&&(ot(ft).triggerHandler("ready"),ot(ft).off("ready")))}}}),ot.ready.promise=function(e){if(!xt)if(xt=ot.Deferred(),"complete"===ft.readyState)setTimeout(ot.ready);else if(ft.addEventListener)ft.addEventListener("DOMContentLoaded",r,!1),t.addEventListener("load",r,!1);else{ft.attachEvent("onreadystatechange",r),t.attachEvent("onload",r);var n=!1;try{n=null==t.frameElement&&ft.documentElement}catch(t){}n&&n.doScroll&&!function t(){if(!ot.isReady){try{n.doScroll("left")}catch(e){return setTimeout(t,50)}s(),ot.ready()}}()}return xt.promise(e)};var Ct,_t="undefined";for(Ct in ot(nt))break;nt.ownLast="0"!==Ct,nt.inlineBlockNeedsLayout=!1,ot(function(){var t,e,n,i;n=ft.getElementsByTagName("body")[0],n&&n.style&&(e=ft.createElement("div"),i=ft.createElement("div"),i.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(i).appendChild(e),typeof e.style.zoom!==_t&&(e.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",nt.inlineBlockNeedsLayout=t=3===e.offsetWidth,t&&(n.style.zoom=1)),n.removeChild(i))}),function(){var t=ft.createElement("div");if(null==nt.deleteExpando){nt.deleteExpando=!0;try{delete t.test}catch(t){nt.deleteExpando=!1}}t=null}(),ot.acceptData=function(t){var e=ot.noData[(t.nodeName+" ").toLowerCase()],n=+t.nodeType||1;return(1===n||9===n)&&(!e||e!==!0&&t.getAttribute("classid")===e)};var kt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,St=/([A-Z])/g;ot.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(t){return t=t.nodeType?ot.cache[t[ot.expando]]:t[ot.expando],!!t&&!d(t)},data:function(t,e,n){return c(t,e,n)},removeData:function(t,e){return u(t,e)},_data:function(t,e,n){return c(t,e,n,!0)},_removeData:function(t,e){return u(t,e,!0)}}),ot.fn.extend({data:function(t,e){var n,i,o,a=this[0],s=a&&a.attributes;if(void 0===t){if(this.length&&(o=ot.data(a),1===a.nodeType&&!ot._data(a,"parsedAttrs"))){for(n=s.length;n--;)s[n]&&(i=s[n].name,0===i.indexOf("data-")&&(i=ot.camelCase(i.slice(5)),l(a,i,o[i])));ot._data(a,"parsedAttrs",!0)}return o}return"object"==typeof t?this.each(function(){ot.data(this,t)}):arguments.length>1?this.each(function(){ot.data(this,t,e)}):a?l(a,t,ot.data(a,t)):void 0},removeData:function(t){return this.each(function(){ot.removeData(this,t)})}}),ot.extend({queue:function(t,e,n){var i;return t?(e=(e||"fx")+"queue",i=ot._data(t,e),n&&(!i||ot.isArray(n)?i=ot._data(t,e,ot.makeArray(n)):i.push(n)),i||[]):void 0},dequeue:function(t,e){e=e||"fx";var n=ot.queue(t,e),i=n.length,o=n.shift(),a=ot._queueHooks(t,e),s=function(){ot.dequeue(t,e)};"inprogress"===o&&(o=n.shift(),i--),o&&("fx"===e&&n.unshift("inprogress"),delete a.stop,o.call(t,s,a)),!i&&a&&a.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return ot._data(t,n)||ot._data(t,n,{empty:ot.Callbacks("once memory").add(function(){ot._removeData(t,e+"queue"),ot._removeData(t,n)})})}}),ot.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?ot.queue(this[0],t):void 0===e?this:this.each(function(){var n=ot.queue(this,t,e);ot._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&ot.dequeue(this,t)})},dequeue:function(t){return this.each(function(){ot.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,i=1,o=ot.Deferred(),a=this,s=this.length,r=function(){--i||o.resolveWith(a,[a])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";s--;)n=ot._data(a[s],t+"queueHooks"),n&&n.empty&&(i++,n.empty.add(r));return r(),o.promise(e)}});var Tt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,$t=["Top","Right","Bottom","Left"],It=function(t,e){return t=e||t,"none"===ot.css(t,"display")||!ot.contains(t.ownerDocument,t)},At=ot.access=function(t,e,n,i,o,a,s){var r=0,l=t.length,d=null==n;if("object"===ot.type(n)){o=!0;for(r in n)ot.access(t,e,r,n[r],!0,a,s)}else if(void 0!==i&&(o=!0,ot.isFunction(i)||(s=!0),d&&(s?(e.call(t,i),e=null):(d=e,e=function(t,e,n){return d.call(ot(t),n)})),e))for(;l>r;r++)e(t[r],n,s?i:i.call(t[r],r,e(t[r],n)));return o?t:d?e.call(t):l?e(t[0],n):a},Et=/^(?:checkbox|radio)$/i;!function(){var t=ft.createElement("input"),e=ft.createElement("div"),n=ft.createDocumentFragment();if(e.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",nt.leadingWhitespace=3===e.firstChild.nodeType,nt.tbody=!e.getElementsByTagName("tbody").length,nt.htmlSerialize=!!e.getElementsByTagName("link").length,nt.html5Clone="<:nav></:nav>"!==ft.createElement("nav").cloneNode(!0).outerHTML,t.type="checkbox",t.checked=!0,n.appendChild(t),nt.appendChecked=t.checked,e.innerHTML="<textarea>x</textarea>",nt.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue,n.appendChild(e),e.innerHTML="<input type='radio' checked='checked' name='t'/>",nt.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,nt.noCloneEvent=!0,e.attachEvent&&(e.attachEvent("onclick",function(){nt.noCloneEvent=!1}),e.cloneNode(!0).click()),null==nt.deleteExpando){nt.deleteExpando=!0;try{delete e.test}catch(t){nt.deleteExpando=!1}}}(),function(){var e,n,i=ft.createElement("div");for(e in{submit:!0,change:!0,focusin:!0})n="on"+e,(nt[e+"Bubbles"]=n in t)||(i.setAttribute(n,"t"),nt[e+"Bubbles"]=i.attributes[n].expando===!1);i=null}();var Bt=/^(?:input|select|textarea)$/i,Dt=/^key/,Ot=/^(?:mouse|pointer|contextmenu)|click/,Lt=/^(?:focusinfocus|focusoutblur)$/,Pt=/^([^.]*)(?:\.(.+)|)$/;ot.event={global:{},add:function(t,e,n,i,o){var a,s,r,l,d,c,u,p,h,f,g,m=ot._data(t);if(m){for(n.handler&&(l=n,n=l.handler,o=l.selector),n.guid||(n.guid=ot.guid++),(s=m.events)||(s=m.events={}),(c=m.handle)||(c=m.handle=function(t){return typeof ot===_t||t&&ot.event.triggered===t.type?void 0:ot.event.dispatch.apply(c.elem,arguments)},c.elem=t),e=(e||"").match(yt)||[""],r=e.length;r--;)a=Pt.exec(e[r])||[],h=g=a[1],f=(a[2]||"").split(".").sort(),h&&(d=ot.event.special[h]||{},h=(o?d.delegateType:d.bindType)||h,d=ot.event.special[h]||{},u=ot.extend({type:h,origType:g,data:i,handler:n,guid:n.guid,selector:o,needsContext:o&&ot.expr.match.needsContext.test(o),namespace:f.join(".")},l),(p=s[h])||(p=s[h]=[],p.delegateCount=0,d.setup&&d.setup.call(t,i,f,c)!==!1||(t.addEventListener?t.addEventListener(h,c,!1):t.attachEvent&&t.attachEvent("on"+h,c))),d.add&&(d.add.call(t,u),u.handler.guid||(u.handler.guid=n.guid)),o?p.splice(p.delegateCount++,0,u):p.push(u),ot.event.global[h]=!0);t=null}},remove:function(t,e,n,i,o){var a,s,r,l,d,c,u,p,h,f,g,m=ot.hasData(t)&&ot._data(t);if(m&&(c=m.events)){for(e=(e||"").match(yt)||[""],d=e.length;d--;)if(r=Pt.exec(e[d])||[],h=g=r[1],f=(r[2]||"").split(".").sort(),h){for(u=ot.event.special[h]||{},h=(i?u.delegateType:u.bindType)||h,p=c[h]||[],r=r[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=a=p.length;a--;)s=p[a],!o&&g!==s.origType||n&&n.guid!==s.guid||r&&!r.test(s.namespace)||i&&i!==s.selector&&("**"!==i||!s.selector)||(p.splice(a,1),s.selector&&p.delegateCount--,u.remove&&u.remove.call(t,s));l&&!p.length&&(u.teardown&&u.teardown.call(t,f,m.handle)!==!1||ot.removeEvent(t,h,m.handle),delete c[h])}else for(h in c)ot.event.remove(t,h+e[d],n,i,!0);ot.isEmptyObject(c)&&(delete m.handle,ot._removeData(t,"events"))}},trigger:function(e,n,i,o){var a,s,r,l,d,c,u,p=[i||ft],h=et.call(e,"type")?e.type:e,f=et.call(e,"namespace")?e.namespace.split("."):[];if(r=c=i=i||ft,3!==i.nodeType&&8!==i.nodeType&&!Lt.test(h+ot.event.triggered)&&(h.indexOf(".")>=0&&(f=h.split("."),h=f.shift(),f.sort()),s=h.indexOf(":")<0&&"on"+h,e=e[ot.expando]?e:new ot.Event(h,"object"==typeof e&&e),e.isTrigger=o?2:3,e.namespace=f.join("."),e.namespace_re=e.namespace?new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=i),n=null==n?[e]:ot.makeArray(n,[e]),d=ot.event.special[h]||{},o||!d.trigger||d.trigger.apply(i,n)!==!1)){if(!o&&!d.noBubble&&!ot.isWindow(i)){for(l=d.delegateType||h,Lt.test(l+h)||(r=r.parentNode);r;r=r.parentNode)p.push(r),c=r;c===(i.ownerDocument||ft)&&p.push(c.defaultView||c.parentWindow||t)}for(u=0;(r=p[u++])&&!e.isPropagationStopped();)e.type=u>1?l:d.bindType||h,a=(ot._data(r,"events")||{})[e.type]&&ot._data(r,"handle"),a&&a.apply(r,n),a=s&&r[s],a&&a.apply&&ot.acceptData(r)&&(e.result=a.apply(r,n),e.result===!1&&e.preventDefault());if(e.type=h,!o&&!e.isDefaultPrevented()&&(!d._default||d._default.apply(p.pop(),n)===!1)&&ot.acceptData(i)&&s&&i[h]&&!ot.isWindow(i)){c=i[s],c&&(i[s]=null),ot.event.triggered=h;try{i[h]()}catch(t){}ot.event.triggered=void 0,c&&(i[s]=c)}return e.result}},dispatch:function(t){t=ot.event.fix(t);var e,n,i,o,a,s=[],r=Y.call(arguments),l=(ot._data(this,"events")||{})[t.type]||[],d=ot.event.special[t.type]||{};if(r[0]=t,t.delegateTarget=this,!d.preDispatch||d.preDispatch.call(this,t)!==!1){for(s=ot.event.handlers.call(this,t,l),e=0;(o=s[e++])&&!t.isPropagationStopped();)for(t.currentTarget=o.elem,a=0;(i=o.handlers[a++])&&!t.isImmediatePropagationStopped();)(!t.namespace_re||t.namespace_re.test(i.namespace))&&(t.handleObj=i,t.data=i.data,n=((ot.event.special[i.origType]||{}).handle||i.handler).apply(o.elem,r),void 0!==n&&(t.result=n)===!1&&(t.preventDefault(),t.stopPropagation()));return d.postDispatch&&d.postDispatch.call(this,t),t.result}},handlers:function(t,e){var n,i,o,a,s=[],r=e.delegateCount,l=t.target;if(r&&l.nodeType&&(!t.button||"click"!==t.type))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(l.disabled!==!0||"click"!==t.type)){for(o=[],a=0;r>a;a++)i=e[a],n=i.selector+" ",void 0===o[n]&&(o[n]=i.needsContext?ot(n,this).index(l)>=0:ot.find(n,this,null,[l]).length),o[n]&&o.push(i);o.length&&s.push({elem:l,handlers:o})}return r<e.length&&s.push({elem:this,handlers:e.slice(r)}),s},fix:function(t){if(t[ot.expando])return t;var e,n,i,o=t.type,a=t,s=this.fixHooks[o];for(s||(this.fixHooks[o]=s=Ot.test(o)?this.mouseHooks:Dt.test(o)?this.keyHooks:{}),i=s.props?this.props.concat(s.props):this.props,t=new ot.Event(a),e=i.length;e--;)n=i[e],t[n]=a[n];return t.target||(t.target=a.srcElement||ft),3===t.target.nodeType&&(t.target=t.target.parentNode),t.metaKey=!!t.metaKey,s.filter?s.filter(t,a):t},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 fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,e){var n,i,o,a=e.button,s=e.fromElement;return null==t.pageX&&null!=e.clientX&&(i=t.target.ownerDocument||ft,o=i.documentElement,n=i.body,t.pageX=e.clientX+(o&&o.scrollLeft||n&&n.scrollLeft||0)-(o&&o.clientLeft||n&&n.clientLeft||0),t.pageY=e.clientY+(o&&o.scrollTop||n&&n.scrollTop||0)-(o&&o.clientTop||n&&n.clientTop||0)),!t.relatedTarget&&s&&(t.relatedTarget=s===t.target?e.toElement:s),t.which||void 0===a||(t.which=1&a?1:2&a?3:4&a?2:0),t}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==f()&&this.focus)try{return this.focus(),!1}catch(t){}},delegateType:"focusin"},blur:{trigger:function(){return this===f()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return ot.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):void 0},_default:function(t){return ot.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}},simulate:function(t,e,n,i){var o=ot.extend(new ot.Event,n,{type:t,isSimulated:!0,originalEvent:{}});i?ot.event.trigger(o,null,e):ot.event.dispatch.call(e,o),o.isDefaultPrevented()&&n.preventDefault()}},ot.removeEvent=ft.removeEventListener?function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n,!1)}:function(t,e,n){var i="on"+e;t.detachEvent&&(typeof t[i]===_t&&(t[i]=null),t.detachEvent(i,n))},ot.Event=function(t,e){return this instanceof ot.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&t.returnValue===!1?p:h):this.type=t,e&&ot.extend(this,e),this.timeStamp=t&&t.timeStamp||ot.now(),void(this[ot.expando]=!0)):new ot.Event(t,e)},ot.Event.prototype={isDefaultPrevented:h,isPropagationStopped:h,isImmediatePropagationStopped:h,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=p,t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=p,t&&(t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0)},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=p,t&&t.stopImmediatePropagation&&t.stopImmediatePropagation(),this.stopPropagation()}},ot.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){ot.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,i=this,o=t.relatedTarget,a=t.handleObj;return(!o||o!==i&&!ot.contains(i,o))&&(t.type=a.origType,n=a.handler.apply(this,arguments),t.type=e),n}}}),nt.submitBubbles||(ot.event.special.submit={setup:function(){return!ot.nodeName(this,"form")&&void ot.event.add(this,"click._submit keypress._submit",function(t){var e=t.target,n=ot.nodeName(e,"input")||ot.nodeName(e,"button")?e.form:void 0;n&&!ot._data(n,"submitBubbles")&&(ot.event.add(n,"submit._submit",function(t){t._submit_bubble=!0}),ot._data(n,"submitBubbles",!0))})},postDispatch:function(t){t._submit_bubble&&(delete t._submit_bubble,this.parentNode&&!t.isTrigger&&ot.event.simulate("submit",this.parentNode,t,!0))},teardown:function(){return!ot.nodeName(this,"form")&&void ot.event.remove(this,"._submit")}}),nt.changeBubbles||(ot.event.special.change={setup:function(){return Bt.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(ot.event.add(this,"propertychange._change",function(t){"checked"===t.originalEvent.propertyName&&(this._just_changed=!0)}),ot.event.add(this,"click._change",function(t){this._just_changed&&!t.isTrigger&&(this._just_changed=!1),ot.event.simulate("change",this,t,!0)})),!1):void ot.event.add(this,"beforeactivate._change",function(t){var e=t.target;Bt.test(e.nodeName)&&!ot._data(e,"changeBubbles")&&(ot.event.add(e,"change._change",function(t){!this.parentNode||t.isSimulated||t.isTrigger||ot.event.simulate("change",this.parentNode,t,!0)}),ot._data(e,"changeBubbles",!0))})},handle:function(t){var e=t.target;return this!==e||t.isSimulated||t.isTrigger||"radio"!==e.type&&"checkbox"!==e.type?t.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return ot.event.remove(this,"._change"),!Bt.test(this.nodeName)}}),nt.focusinBubbles||ot.each({focus:"focusin",blur:"focusout"},function(t,e){var n=function(t){ot.event.simulate(e,t.target,ot.event.fix(t),!0)};ot.event.special[e]={setup:function(){var i=this.ownerDocument||this,o=ot._data(i,e);o||i.addEventListener(t,n,!0),ot._data(i,e,(o||0)+1)},teardown:function(){var i=this.ownerDocument||this,o=ot._data(i,e)-1;o?ot._data(i,e,o):(i.removeEventListener(t,n,!0),ot._removeData(i,e))}}}),ot.fn.extend({on:function(t,e,n,i,o){var a,s;if("object"==typeof t){"string"!=typeof e&&(n=n||e,e=void 0);for(a in t)this.on(a,e,n,t[a],o);return this}if(null==n&&null==i?(i=e,n=e=void 0):null==i&&("string"==typeof e?(i=n,n=void 0):(i=n,n=e,e=void 0)),i===!1)i=h;else if(!i)return this;return 1===o&&(s=i,i=function(t){return ot().off(t),s.apply(this,arguments)},i.guid=s.guid||(s.guid=ot.guid++)),this.each(function(){ot.event.add(this,t,i,n,e)})},one:function(t,e,n,i){return this.on(t,e,n,i,1)},off:function(t,e,n){var i,o;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,ot(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof t){for(o in t)this.off(o,e,t[o]);return this}return(e===!1||"function"==typeof e)&&(n=e,e=void 0),n===!1&&(n=h),this.each(function(){ot.event.remove(this,t,n,e)})},trigger:function(t,e){return this.each(function(){ot.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];return n?ot.event.trigger(t,e,n,!0):void 0}});var Mt="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",jt=/ jQuery\d+="(?:null|\d+)"/g,Nt=new RegExp("<(?:"+Mt+")[\\s/>]","i"),Ht=/^\s+/,Rt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Wt=/<([\w:]+)/,zt=/<tbody/i,qt=/<|&#?\w+;/,Ft=/<(?:script|style|link)/i,Ut=/checked\s*(?:[^=]|=\s*.checked.)/i,Vt=/^$|\/(?:java|ecma)script/i,Qt=/^true\/(.*)/,Xt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Yt={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:nt.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},Gt=g(ft),Zt=Gt.appendChild(ft.createElement("div"));Yt.optgroup=Yt.option,Yt.tbody=Yt.tfoot=Yt.colgroup=Yt.caption=Yt.thead,Yt.th=Yt.td,ot.extend({clone:function(t,e,n){var i,o,a,s,r,l=ot.contains(t.ownerDocument,t);if(nt.html5Clone||ot.isXMLDoc(t)||!Nt.test("<"+t.nodeName+">")?a=t.cloneNode(!0):(Zt.innerHTML=t.outerHTML,Zt.removeChild(a=Zt.firstChild)),!(nt.noCloneEvent&&nt.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||ot.isXMLDoc(t)))for(i=m(a),r=m(t),s=0;null!=(o=r[s]);++s)i[s]&&_(o,i[s]);if(e)if(n)for(r=r||m(t),i=i||m(a),s=0;null!=(o=r[s]);s++)C(o,i[s]);else C(t,a);return i=m(a,"script"),i.length>0&&x(i,!l&&m(t,"script")),i=r=o=null,a},buildFragment:function(t,e,n,i){for(var o,a,s,r,l,d,c,u=t.length,p=g(e),h=[],f=0;u>f;f++)if(a=t[f],a||0===a)if("object"===ot.type(a))ot.merge(h,a.nodeType?[a]:a);else if(qt.test(a)){for(r=r||p.appendChild(e.createElement("div")),l=(Wt.exec(a)||["",""])[1].toLowerCase(),c=Yt[l]||Yt._default,r.innerHTML=c[1]+a.replace(Rt,"<$1></$2>")+c[2],o=c[0];o--;)r=r.lastChild;if(!nt.leadingWhitespace&&Ht.test(a)&&h.push(e.createTextNode(Ht.exec(a)[0])),!nt.tbody)for(a="table"!==l||zt.test(a)?"<table>"!==c[1]||zt.test(a)?0:r:r.firstChild,o=a&&a.childNodes.length;o--;)ot.nodeName(d=a.childNodes[o],"tbody")&&!d.childNodes.length&&a.removeChild(d);for(ot.merge(h,r.childNodes),r.textContent="";r.firstChild;)r.removeChild(r.firstChild);r=p.lastChild}else h.push(e.createTextNode(a));for(r&&p.removeChild(r),nt.appendChecked||ot.grep(m(h,"input"),v),f=0;a=h[f++];)if((!i||-1===ot.inArray(a,i))&&(s=ot.contains(a.ownerDocument,a),r=m(p.appendChild(a),"script"),s&&x(r),n))for(o=0;a=r[o++];)Vt.test(a.type||"")&&n.push(a);return r=null,p},cleanData:function(t,e){for(var n,i,o,a,s=0,r=ot.expando,l=ot.cache,d=nt.deleteExpando,c=ot.event.special;null!=(n=t[s]);s++)if((e||ot.acceptData(n))&&(o=n[r],a=o&&l[o])){if(a.events)for(i in a.events)c[i]?ot.event.remove(n,i):ot.removeEvent(n,i,a.handle);l[o]&&(delete l[o],d?delete n[r]:typeof n.removeAttribute!==_t?n.removeAttribute(r):n[r]=null,X.push(o))}}}),ot.fn.extend({text:function(t){return At(this,function(t){return void 0===t?ot.text(this):this.empty().append((this[0]&&this[0].ownerDocument||ft).createTextNode(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=b(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=b(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 n,i=t?ot.filter(t,this):this,o=0;null!=(n=i[o]);o++)e||1!==n.nodeType||ot.cleanData(m(n)),n.parentNode&&(e&&ot.contains(n.ownerDocument,n)&&x(m(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++){for(1===t.nodeType&&ot.cleanData(m(t,!1));t.firstChild;)t.removeChild(t.firstChild);t.options&&ot.nodeName(t,"select")&&(t.options.length=0)}return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return ot.clone(this,t,e)})},html:function(t){return At(this,function(t){
var e=this[0]||{},n=0,i=this.length;if(void 0===t)return 1===e.nodeType?e.innerHTML.replace(jt,""):void 0;if(!("string"!=typeof t||Ft.test(t)||!nt.htmlSerialize&&Nt.test(t)||!nt.leadingWhitespace&&Ht.test(t)||Yt[(Wt.exec(t)||["",""])[1].toLowerCase()])){t=t.replace(Rt,"<$1></$2>");try{for(;i>n;n++)e=this[n]||{},1===e.nodeType&&(ot.cleanData(m(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=arguments[0];return this.domManip(arguments,function(e){t=this.parentNode,ot.cleanData(m(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=G.apply([],t);var n,i,o,a,s,r,l=0,d=this.length,c=this,u=d-1,p=t[0],h=ot.isFunction(p);if(h||d>1&&"string"==typeof p&&!nt.checkClone&&Ut.test(p))return this.each(function(n){var i=c.eq(n);h&&(t[0]=p.call(this,n,i.html())),i.domManip(t,e)});if(d&&(r=ot.buildFragment(t,this[0].ownerDocument,!1,this),n=r.firstChild,1===r.childNodes.length&&(r=n),n)){for(a=ot.map(m(r,"script"),y),o=a.length;d>l;l++)i=r,l!==u&&(i=ot.clone(i,!0,!0),o&&ot.merge(a,m(i,"script"))),e.call(this[l],i,l);if(o)for(s=a[a.length-1].ownerDocument,ot.map(a,w),l=0;o>l;l++)i=a[l],Vt.test(i.type||"")&&!ot._data(i,"globalEval")&&ot.contains(s,i)&&(i.src?ot._evalUrl&&ot._evalUrl(i.src):ot.globalEval((i.text||i.textContent||i.innerHTML||"").replace(Xt,"")));r=n=null}return this}}),ot.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){ot.fn[t]=function(t){for(var n,i=0,o=[],a=ot(t),s=a.length-1;s>=i;i++)n=i===s?this:this.clone(!0),ot(a[i])[e](n),Z.apply(o,n.get());return this.pushStack(o)}});var Kt,Jt={};!function(){var t;nt.shrinkWrapBlocks=function(){if(null!=t)return t;t=!1;var e,n,i;return n=ft.getElementsByTagName("body")[0],n&&n.style?(e=ft.createElement("div"),i=ft.createElement("div"),i.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(i).appendChild(e),typeof e.style.zoom!==_t&&(e.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",e.appendChild(ft.createElement("div")).style.width="5px",t=3!==e.offsetWidth),n.removeChild(i),t):void 0}}();var te,ee,ne=/^margin/,ie=new RegExp("^("+Tt+")(?!px)[a-z%]+$","i"),oe=/^(top|right|bottom|left)$/;t.getComputedStyle?(te=function(e){return e.ownerDocument.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):t.getComputedStyle(e,null)},ee=function(t,e,n){var i,o,a,s,r=t.style;return n=n||te(t),s=n?n.getPropertyValue(e)||n[e]:void 0,n&&(""!==s||ot.contains(t.ownerDocument,t)||(s=ot.style(t,e)),ie.test(s)&&ne.test(e)&&(i=r.width,o=r.minWidth,a=r.maxWidth,r.minWidth=r.maxWidth=r.width=s,s=n.width,r.width=i,r.minWidth=o,r.maxWidth=a)),void 0===s?s:s+""}):ft.documentElement.currentStyle&&(te=function(t){return t.currentStyle},ee=function(t,e,n){var i,o,a,s,r=t.style;return n=n||te(t),s=n?n[e]:void 0,null==s&&r&&r[e]&&(s=r[e]),ie.test(s)&&!oe.test(e)&&(i=r.left,o=t.runtimeStyle,a=o&&o.left,a&&(o.left=t.currentStyle.left),r.left="fontSize"===e?"1em":s,s=r.pixelLeft+"px",r.left=i,a&&(o.left=a)),void 0===s?s:s+""||"auto"}),!function(){function e(){var e,n,i,o;n=ft.getElementsByTagName("body")[0],n&&n.style&&(e=ft.createElement("div"),i=ft.createElement("div"),i.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(i).appendChild(e),e.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",a=s=!1,l=!0,t.getComputedStyle&&(a="1%"!==(t.getComputedStyle(e,null)||{}).top,s="4px"===(t.getComputedStyle(e,null)||{width:"4px"}).width,o=e.appendChild(ft.createElement("div")),o.style.cssText=e.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",o.style.marginRight=o.style.width="0",e.style.width="1px",l=!parseFloat((t.getComputedStyle(o,null)||{}).marginRight),e.removeChild(o)),e.innerHTML="<table><tr><td></td><td>t</td></tr></table>",o=e.getElementsByTagName("td"),o[0].style.cssText="margin:0;border:0;padding:0;display:none",r=0===o[0].offsetHeight,r&&(o[0].style.display="",o[1].style.display="none",r=0===o[0].offsetHeight),n.removeChild(i))}var n,i,o,a,s,r,l;n=ft.createElement("div"),n.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",o=n.getElementsByTagName("a")[0],(i=o&&o.style)&&(i.cssText="float:left;opacity:.5",nt.opacity="0.5"===i.opacity,nt.cssFloat=!!i.cssFloat,n.style.backgroundClip="content-box",n.cloneNode(!0).style.backgroundClip="",nt.clearCloneStyle="content-box"===n.style.backgroundClip,nt.boxSizing=""===i.boxSizing||""===i.MozBoxSizing||""===i.WebkitBoxSizing,ot.extend(nt,{reliableHiddenOffsets:function(){return null==r&&e(),r},boxSizingReliable:function(){return null==s&&e(),s},pixelPosition:function(){return null==a&&e(),a},reliableMarginRight:function(){return null==l&&e(),l}}))}(),ot.swap=function(t,e,n,i){var o,a,s={};for(a in e)s[a]=t.style[a],t.style[a]=e[a];o=n.apply(t,i||[]);for(a in e)t.style[a]=s[a];return o};var ae=/alpha\([^)]*\)/i,se=/opacity\s*=\s*([^)]*)/,re=/^(none|table(?!-c[ea]).+)/,le=new RegExp("^("+Tt+")(.*)$","i"),de=new RegExp("^([+-])=("+Tt+")","i"),ce={position:"absolute",visibility:"hidden",display:"block"},ue={letterSpacing:"0",fontWeight:"400"},pe=["Webkit","O","Moz","ms"];ot.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=ee(t,"opacity");return""===n?"1":n}}}},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:nt.cssFloat?"cssFloat":"styleFloat"},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var o,a,s,r=ot.camelCase(e),l=t.style;if(e=ot.cssProps[r]||(ot.cssProps[r]=$(l,r)),s=ot.cssHooks[e]||ot.cssHooks[r],void 0===n)return s&&"get"in s&&void 0!==(o=s.get(t,!1,i))?o:l[e];if(a=typeof n,"string"===a&&(o=de.exec(n))&&(n=(o[1]+1)*o[2]+parseFloat(ot.css(t,e)),a="number"),null!=n&&n===n&&("number"!==a||ot.cssNumber[r]||(n+="px"),nt.clearCloneStyle||""!==n||0!==e.indexOf("background")||(l[e]="inherit"),!(s&&"set"in s&&void 0===(n=s.set(t,n,i)))))try{l[e]=n}catch(t){}}},css:function(t,e,n,i){var o,a,s,r=ot.camelCase(e);return e=ot.cssProps[r]||(ot.cssProps[r]=$(t.style,r)),s=ot.cssHooks[e]||ot.cssHooks[r],s&&"get"in s&&(a=s.get(t,!0,n)),void 0===a&&(a=ee(t,e,i)),"normal"===a&&e in ue&&(a=ue[e]),""===n||n?(o=parseFloat(a),n===!0||ot.isNumeric(o)?o||0:a):a}}),ot.each(["height","width"],function(t,e){ot.cssHooks[e]={get:function(t,n,i){return n?re.test(ot.css(t,"display"))&&0===t.offsetWidth?ot.swap(t,ce,function(){return B(t,e,i)}):B(t,e,i):void 0},set:function(t,n,i){var o=i&&te(t);return A(t,n,i?E(t,e,i,nt.boxSizing&&"border-box"===ot.css(t,"boxSizing",!1,o),o):0)}}}),nt.opacity||(ot.cssHooks.opacity={get:function(t,e){return se.test((e&&t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":e?"1":""},set:function(t,e){var n=t.style,i=t.currentStyle,o=ot.isNumeric(e)?"alpha(opacity="+100*e+")":"",a=i&&i.filter||n.filter||"";n.zoom=1,(e>=1||""===e)&&""===ot.trim(a.replace(ae,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===e||i&&!i.filter)||(n.filter=ae.test(a)?a.replace(ae,o):a+" "+o)}}),ot.cssHooks.marginRight=T(nt.reliableMarginRight,function(t,e){return e?ot.swap(t,{display:"inline-block"},ee,[t,"marginRight"]):void 0}),ot.each({margin:"",padding:"",border:"Width"},function(t,e){ot.cssHooks[t+e]={expand:function(n){for(var i=0,o={},a="string"==typeof n?n.split(" "):[n];4>i;i++)o[t+$t[i]+e]=a[i]||a[i-2]||a[0];return o}},ne.test(t)||(ot.cssHooks[t+e].set=A)}),ot.fn.extend({css:function(t,e){return At(this,function(t,e,n){var i,o,a={},s=0;if(ot.isArray(e)){for(i=te(t),o=e.length;o>s;s++)a[e[s]]=ot.css(t,e[s],!1,i);return a}return void 0!==n?ot.style(t,e,n):ot.css(t,e)},t,e,arguments.length>1)},show:function(){return I(this,!0)},hide:function(){return I(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){It(this)?ot(this).show():ot(this).hide()})}}),ot.Tween=D,D.prototype={constructor:D,init:function(t,e,n,i,o,a){this.elem=t,this.prop=n,this.easing=o||"swing",this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=a||(ot.cssNumber[n]?"":"px")},cur:function(){var t=D.propHooks[this.prop];return t&&t.get?t.get(this):D.propHooks._default.get(this)},run:function(t){var e,n=D.propHooks[this.prop];return this.options.duration?this.pos=e=ot.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):D.propHooks._default.set(this),this}},D.prototype.init.prototype=D.prototype,D.propHooks={_default:{get:function(t){var e;return null==t.elem[t.prop]||t.elem.style&&null!=t.elem.style[t.prop]?(e=ot.css(t.elem,t.prop,""),e&&"auto"!==e?e:0):t.elem[t.prop]},set:function(t){ot.fx.step[t.prop]?ot.fx.step[t.prop](t):t.elem.style&&(null!=t.elem.style[ot.cssProps[t.prop]]||ot.cssHooks[t.prop])?ot.style(t.elem,t.prop,t.now+t.unit):t.elem[t.prop]=t.now}}},D.propHooks.scrollTop=D.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},ot.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2}},ot.fx=D.prototype.init,ot.fx.step={};var he,fe,ge=/^(?:toggle|show|hide)$/,me=new RegExp("^(?:([+-])=|)("+Tt+")([a-z%]*)$","i"),ve=/queueHooks$/,be=[M],ye={"*":[function(t,e){var n=this.createTween(t,e),i=n.cur(),o=me.exec(e),a=o&&o[3]||(ot.cssNumber[t]?"":"px"),s=(ot.cssNumber[t]||"px"!==a&&+i)&&me.exec(ot.css(n.elem,t)),r=1,l=20;if(s&&s[3]!==a){a=a||s[3],o=o||[],s=+i||1;do r=r||".5",s/=r,ot.style(n.elem,t,s+a);while(r!==(r=n.cur()/i)&&1!==r&&--l)}return o&&(s=n.start=+s||+i||0,n.unit=a,n.end=o[1]?s+(o[1]+1)*o[2]:+o[2]),n}]};ot.Animation=ot.extend(N,{tweener:function(t,e){ot.isFunction(t)?(e=t,t=["*"]):t=t.split(" ");for(var n,i=0,o=t.length;o>i;i++)n=t[i],ye[n]=ye[n]||[],ye[n].unshift(e)},prefilter:function(t,e){e?be.unshift(t):be.push(t)}}),ot.speed=function(t,e,n){var i=t&&"object"==typeof t?ot.extend({},t):{complete:n||!n&&e||ot.isFunction(t)&&t,duration:t,easing:n&&e||e&&!ot.isFunction(e)&&e};return i.duration=ot.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in ot.fx.speeds?ot.fx.speeds[i.duration]:ot.fx.speeds._default,(null==i.queue||i.queue===!0)&&(i.queue="fx"),i.old=i.complete,i.complete=function(){ot.isFunction(i.old)&&i.old.call(this),i.queue&&ot.dequeue(this,i.queue)},i},ot.fn.extend({fadeTo:function(t,e,n,i){return this.filter(It).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,n,i){var o=ot.isEmptyObject(t),a=ot.speed(e,n,i),s=function(){var e=N(this,ot.extend({},t),a);(o||ot._data(this,"finish"))&&e.stop(!0)};return s.finish=s,o||a.queue===!1?this.each(s):this.queue(a.queue,s)},stop:function(t,e,n){var i=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&t!==!1&&this.queue(t||"fx",[]),this.each(function(){var e=!0,o=null!=t&&t+"queueHooks",a=ot.timers,s=ot._data(this);if(o)s[o]&&s[o].stop&&i(s[o]);else for(o in s)s[o]&&s[o].stop&&ve.test(o)&&i(s[o]);for(o=a.length;o--;)a[o].elem!==this||null!=t&&a[o].queue!==t||(a[o].anim.stop(n),e=!1,a.splice(o,1));(e||!n)&&ot.dequeue(this,t)})},finish:function(t){return t!==!1&&(t=t||"fx"),this.each(function(){var e,n=ot._data(this),i=n[t+"queue"],o=n[t+"queueHooks"],a=ot.timers,s=i?i.length:0;for(n.finish=!0,ot.queue(this,t,[]),o&&o.stop&&o.stop.call(this,!0),e=a.length;e--;)a[e].elem===this&&a[e].queue===t&&(a[e].anim.stop(!0),a.splice(e,1));for(e=0;s>e;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete n.finish})}}),ot.each(["toggle","show","hide"],function(t,e){var n=ot.fn[e];ot.fn[e]=function(t,i,o){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(L(e,!0),t,i,o)}}),ot.each({slideDown:L("show"),slideUp:L("hide"),slideToggle:L("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){ot.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}}),ot.timers=[],ot.fx.tick=function(){var t,e=ot.timers,n=0;for(he=ot.now();n<e.length;n++)t=e[n],t()||e[n]!==t||e.splice(n--,1);e.length||ot.fx.stop(),he=void 0},ot.fx.timer=function(t){ot.timers.push(t),t()?ot.fx.start():ot.timers.pop()},ot.fx.interval=13,ot.fx.start=function(){fe||(fe=setInterval(ot.fx.tick,ot.fx.interval))},ot.fx.stop=function(){clearInterval(fe),fe=null},ot.fx.speeds={slow:600,fast:200,_default:400},ot.fn.delay=function(t,e){return t=ot.fx?ot.fx.speeds[t]||t:t,e=e||"fx",this.queue(e,function(e,n){var i=setTimeout(e,t);n.stop=function(){clearTimeout(i)}})},function(){var t,e,n,i,o;e=ft.createElement("div"),e.setAttribute("className","t"),e.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",i=e.getElementsByTagName("a")[0],n=ft.createElement("select"),o=n.appendChild(ft.createElement("option")),t=e.getElementsByTagName("input")[0],i.style.cssText="top:1px",nt.getSetAttribute="t"!==e.className,nt.style=/top/.test(i.getAttribute("style")),nt.hrefNormalized="/a"===i.getAttribute("href"),nt.checkOn=!!t.value,nt.optSelected=o.selected,nt.enctype=!!ft.createElement("form").enctype,n.disabled=!0,nt.optDisabled=!o.disabled,t=ft.createElement("input"),t.setAttribute("value",""),nt.input=""===t.getAttribute("value"),t.value="t",t.setAttribute("type","radio"),nt.radioValue="t"===t.value}();var we=/\r/g;ot.fn.extend({val:function(t){var e,n,i,o=this[0];return arguments.length?(i=ot.isFunction(t),this.each(function(n){var o;1===this.nodeType&&(o=i?t.call(this,n,ot(this).val()):t,null==o?o="":"number"==typeof o?o+="":ot.isArray(o)&&(o=ot.map(o,function(t){return null==t?"":t+""})),e=ot.valHooks[this.type]||ot.valHooks[this.nodeName.toLowerCase()],e&&"set"in e&&void 0!==e.set(this,o,"value")||(this.value=o))})):o?(e=ot.valHooks[o.type]||ot.valHooks[o.nodeName.toLowerCase()],e&&"get"in e&&void 0!==(n=e.get(o,"value"))?n:(n=o.value,"string"==typeof n?n.replace(we,""):null==n?"":n)):void 0}}),ot.extend({valHooks:{option:{get:function(t){var e=ot.find.attr(t,"value");return null!=e?e:ot.trim(ot.text(t))}},select:{get:function(t){for(var e,n,i=t.options,o=t.selectedIndex,a="select-one"===t.type||0>o,s=a?null:[],r=a?o+1:i.length,l=0>o?r:a?o:0;r>l;l++)if(n=i[l],!(!n.selected&&l!==o||(nt.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&ot.nodeName(n.parentNode,"optgroup"))){if(e=ot(n).val(),a)return e;s.push(e)}return s},set:function(t,e){for(var n,i,o=t.options,a=ot.makeArray(e),s=o.length;s--;)if(i=o[s],ot.inArray(ot.valHooks.option.get(i),a)>=0)try{i.selected=n=!0}catch(t){i.scrollHeight}else i.selected=!1;return n||(t.selectedIndex=-1),o}}}}),ot.each(["radio","checkbox"],function(){ot.valHooks[this]={set:function(t,e){return ot.isArray(e)?t.checked=ot.inArray(ot(t).val(),e)>=0:void 0}},nt.checkOn||(ot.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var xe,Ce,_e=ot.expr.attrHandle,ke=/^(?:checked|selected)$/i,Se=nt.getSetAttribute,Te=nt.input;ot.fn.extend({attr:function(t,e){return At(this,ot.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){ot.removeAttr(this,t)})}}),ot.extend({attr:function(t,e,n){var i,o,a=t.nodeType;if(t&&3!==a&&8!==a&&2!==a)return typeof t.getAttribute===_t?ot.prop(t,e,n):(1===a&&ot.isXMLDoc(t)||(e=e.toLowerCase(),i=ot.attrHooks[e]||(ot.expr.match.bool.test(e)?Ce:xe)),void 0===n?i&&"get"in i&&null!==(o=i.get(t,e))?o:(o=ot.find.attr(t,e),null==o?void 0:o):null!==n?i&&"set"in i&&void 0!==(o=i.set(t,n,e))?o:(t.setAttribute(e,n+""),n):void ot.removeAttr(t,e))},removeAttr:function(t,e){var n,i,o=0,a=e&&e.match(yt);if(a&&1===t.nodeType)for(;n=a[o++];)i=ot.propFix[n]||n,ot.expr.match.bool.test(n)?Te&&Se||!ke.test(n)?t[i]=!1:t[ot.camelCase("default-"+n)]=t[i]=!1:ot.attr(t,n,""),t.removeAttribute(Se?n:i)},attrHooks:{type:{set:function(t,e){if(!nt.radioValue&&"radio"===e&&ot.nodeName(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}}}),Ce={set:function(t,e,n){return e===!1?ot.removeAttr(t,n):Te&&Se||!ke.test(n)?t.setAttribute(!Se&&ot.propFix[n]||n,n):t[ot.camelCase("default-"+n)]=t[n]=!0,n}},ot.each(ot.expr.match.bool.source.match(/\w+/g),function(t,e){var n=_e[e]||ot.find.attr;_e[e]=Te&&Se||!ke.test(e)?function(t,e,i){var o,a;return i||(a=_e[e],_e[e]=o,o=null!=n(t,e,i)?e.toLowerCase():null,_e[e]=a),o}:function(t,e,n){return n?void 0:t[ot.camelCase("default-"+e)]?e.toLowerCase():null}}),Te&&Se||(ot.attrHooks.value={set:function(t,e,n){return ot.nodeName(t,"input")?void(t.defaultValue=e):xe&&xe.set(t,e,n)}}),Se||(xe={set:function(t,e,n){var i=t.getAttributeNode(n);return i||t.setAttributeNode(i=t.ownerDocument.createAttribute(n)),i.value=e+="","value"===n||e===t.getAttribute(n)?e:void 0}},_e.id=_e.name=_e.coords=function(t,e,n){var i;return n?void 0:(i=t.getAttributeNode(e))&&""!==i.value?i.value:null},ot.valHooks.button={get:function(t,e){var n=t.getAttributeNode(e);return n&&n.specified?n.value:void 0},set:xe.set},ot.attrHooks.contenteditable={set:function(t,e,n){xe.set(t,""!==e&&e,n)}},ot.each(["width","height"],function(t,e){ot.attrHooks[e]={set:function(t,n){return""===n?(t.setAttribute(e,"auto"),n):void 0}}})),nt.style||(ot.attrHooks.style={get:function(t){return t.style.cssText||void 0},set:function(t,e){return t.style.cssText=e+""}});var $e=/^(?:input|select|textarea|button|object)$/i,Ie=/^(?:a|area)$/i;ot.fn.extend({prop:function(t,e){return At(this,ot.prop,t,e,arguments.length>1)},removeProp:function(t){return t=ot.propFix[t]||t,this.each(function(){try{this[t]=void 0,delete this[t]}catch(t){}})}}),ot.extend({propFix:{for:"htmlFor",class:"className"},prop:function(t,e,n){var i,o,a,s=t.nodeType;if(t&&3!==s&&8!==s&&2!==s)return a=1!==s||!ot.isXMLDoc(t),a&&(e=ot.propFix[e]||e,o=ot.propHooks[e]),void 0!==n?o&&"set"in o&&void 0!==(i=o.set(t,n,e))?i:t[e]=n:o&&"get"in o&&null!==(i=o.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=ot.find.attr(t,"tabindex");return e?parseInt(e,10):$e.test(t.nodeName)||Ie.test(t.nodeName)&&t.href?0:-1}}}}),nt.hrefNormalized||ot.each(["href","src"],function(t,e){ot.propHooks[e]={get:function(t){return t.getAttribute(e,4)}}}),nt.optSelected||(ot.propHooks.selected={get:function(t){var e=t.parentNode;return e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex),null}}),ot.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ot.propFix[this.toLowerCase()]=this}),nt.enctype||(ot.propFix.enctype="encoding");var Ae=/[\t\r\n\f]/g;ot.fn.extend({addClass:function(t){var e,n,i,o,a,s,r=0,l=this.length,d="string"==typeof t&&t;if(ot.isFunction(t))return this.each(function(e){ot(this).addClass(t.call(this,e,this.className))});if(d)for(e=(t||"").match(yt)||[];l>r;r++)if(n=this[r],i=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(Ae," "):" ")){for(a=0;o=e[a++];)i.indexOf(" "+o+" ")<0&&(i+=o+" ");s=ot.trim(i),n.className!==s&&(n.className=s)}return this},removeClass:function(t){var e,n,i,o,a,s,r=0,l=this.length,d=0===arguments.length||"string"==typeof t&&t;if(ot.isFunction(t))return this.each(function(e){ot(this).removeClass(t.call(this,e,this.className))});if(d)for(e=(t||"").match(yt)||[];l>r;r++)if(n=this[r],i=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(Ae," "):"")){for(a=0;o=e[a++];)for(;i.indexOf(" "+o+" ")>=0;)i=i.replace(" "+o+" "," ");s=t?ot.trim(i):"",n.className!==s&&(n.className=s)}return this},toggleClass:function(t,e){var n=typeof t;return"boolean"==typeof e&&"string"===n?e?this.addClass(t):this.removeClass(t):this.each(ot.isFunction(t)?function(n){ot(this).toggleClass(t.call(this,n,this.className,e),e)}:function(){if("string"===n)for(var e,i=0,o=ot(this),a=t.match(yt)||[];e=a[i++];)o.hasClass(e)?o.removeClass(e):o.addClass(e);else(n===_t||"boolean"===n)&&(this.className&&ot._data(this,"__className__",this.className),this.className=this.className||t===!1?"":ot._data(this,"__className__")||"")})},hasClass:function(t){for(var e=" "+t+" ",n=0,i=this.length;i>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(Ae," ").indexOf(e)>=0)return!0;return!1}}),ot.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){ot.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}),ot.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)},bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)}});var Ee=ot.now(),Be=/\?/,De=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;ot.parseJSON=function(e){if(t.JSON&&t.JSON.parse)return t.JSON.parse(e+"");var n,i=null,o=ot.trim(e+"");return o&&!ot.trim(o.replace(De,function(t,e,o,a){return n&&e&&(i=0),0===i?t:(n=o||e,i+=!a-!o,"")}))?Function("return "+o)():ot.error("Invalid JSON: "+e)},ot.parseXML=function(e){var n,i;if(!e||"string"!=typeof e)return null;try{t.DOMParser?(i=new DOMParser,n=i.parseFromString(e,"text/xml")):(n=new ActiveXObject("Microsoft.XMLDOM"),n.async="false",n.loadXML(e))}catch(t){n=void 0}return n&&n.documentElement&&!n.getElementsByTagName("parsererror").length||ot.error("Invalid XML: "+e),n};var Oe,Le,Pe=/#.*$/,Me=/([?&])_=[^&]*/,je=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Ne=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,He=/^(?:GET|HEAD)$/,Re=/^\/\//,We=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,ze={},qe={},Fe="*/".concat("*");try{Le=location.href}catch(t){Le=ft.createElement("a"),Le.href="",Le=Le.href}Oe=We.exec(Le.toLowerCase())||[],ot.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Le,type:"GET",isLocal:Ne.test(Oe[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Fe,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":ot.parseJSON,"text xml":ot.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?W(W(t,ot.ajaxSettings),e):W(ot.ajaxSettings,t)},ajaxPrefilter:H(ze),ajaxTransport:H(qe),ajax:function(t,e){function n(t,e,n,i){var o,c,v,b,w,C=e;2!==y&&(y=2,r&&clearTimeout(r),d=void 0,s=i||"",x.readyState=t>0?4:0,o=t>=200&&300>t||304===t,n&&(b=z(u,x,n)),b=q(u,b,x,o),o?(u.ifModified&&(w=x.getResponseHeader("Last-Modified"),w&&(ot.lastModified[a]=w),w=x.getResponseHeader("etag"),w&&(ot.etag[a]=w)),204===t||"HEAD"===u.type?C="nocontent":304===t?C="notmodified":(C=b.state,c=b.data,v=b.error,o=!v)):(v=C,(t||!C)&&(C="error",0>t&&(t=0))),x.status=t,x.statusText=(e||C)+"",o?f.resolveWith(p,[c,C,x]):f.rejectWith(p,[x,C,v]),x.statusCode(m),m=void 0,l&&h.trigger(o?"ajaxSuccess":"ajaxError",[x,u,o?c:v]),g.fireWith(p,[x,C]),l&&(h.trigger("ajaxComplete",[x,u]),--ot.active||ot.event.trigger("ajaxStop")))}"object"==typeof t&&(e=t,t=void 0),e=e||{};var i,o,a,s,r,l,d,c,u=ot.ajaxSetup({},e),p=u.context||u,h=u.context&&(p.nodeType||p.jquery)?ot(p):ot.event,f=ot.Deferred(),g=ot.Callbacks("once memory"),m=u.statusCode||{},v={},b={},y=0,w="canceled",x={readyState:0,getResponseHeader:function(t){var e;if(2===y){if(!c)for(c={};e=je.exec(s);)c[e[1].toLowerCase()]=e[2];e=c[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===y?s:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return y||(t=b[n]=b[n]||t,v[t]=e),this},overrideMimeType:function(t){return y||(u.mimeType=t),this},statusCode:function(t){var e;if(t)if(2>y)for(e in t)m[e]=[m[e],t[e]];else x.always(t[x.status]);return this},abort:function(t){var e=t||w;return d&&d.abort(e),n(0,e),this}};if(f.promise(x).complete=g.add,x.success=x.done,x.error=x.fail,u.url=((t||u.url||Le)+"").replace(Pe,"").replace(Re,Oe[1]+"//"),u.type=e.method||e.type||u.method||u.type,u.dataTypes=ot.trim(u.dataType||"*").toLowerCase().match(yt)||[""],null==u.crossDomain&&(i=We.exec(u.url.toLowerCase()),u.crossDomain=!(!i||i[1]===Oe[1]&&i[2]===Oe[2]&&(i[3]||("http:"===i[1]?"80":"443"))===(Oe[3]||("http:"===Oe[1]?"80":"443")))),u.data&&u.processData&&"string"!=typeof u.data&&(u.data=ot.param(u.data,u.traditional)),R(ze,u,e,x),2===y)return x;l=ot.event&&u.global,l&&0===ot.active++&&ot.event.trigger("ajaxStart"),u.type=u.type.toUpperCase(),u.hasContent=!He.test(u.type),a=u.url,u.hasContent||(u.data&&(a=u.url+=(Be.test(a)?"&":"?")+u.data,delete u.data),u.cache===!1&&(u.url=Me.test(a)?a.replace(Me,"$1_="+Ee++):a+(Be.test(a)?"&":"?")+"_="+Ee++)),u.ifModified&&(ot.lastModified[a]&&x.setRequestHeader("If-Modified-Since",ot.lastModified[a]),ot.etag[a]&&x.setRequestHeader("If-None-Match",ot.etag[a])),(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]?", "+Fe+"; q=0.01":""):u.accepts["*"]);for(o in u.headers)x.setRequestHeader(o,u.headers[o]);if(u.beforeSend&&(u.beforeSend.call(p,x,u)===!1||2===y))return x.abort();w="abort";for(o in{success:1,error:1,complete:1})x[o](u[o]);if(d=R(qe,u,e,x)){x.readyState=1,l&&h.trigger("ajaxSend",[x,u]),u.async&&u.timeout>0&&(r=setTimeout(function(){x.abort("timeout")},u.timeout));try{y=1,d.send(v,n)}catch(t){if(!(2>y))throw t;n(-1,t)}}else n(-1,"No Transport");return x},getJSON:function(t,e,n){return ot.get(t,e,n,"json")},getScript:function(t,e){return ot.get(t,void 0,e,"script")}}),ot.each(["get","post"],function(t,e){ot[e]=function(t,n,i,o){return ot.isFunction(n)&&(o=o||i,i=n,n=void 0),ot.ajax({url:t,type:e,dataType:o,data:n,success:i})}}),ot._evalUrl=function(t){return ot.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},ot.fn.extend({wrapAll:function(t){if(ot.isFunction(t))return this.each(function(e){ot(this).wrapAll(t.call(this,e))});if(this[0]){var e=ot(t,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstChild&&1===t.firstChild.nodeType;)t=t.firstChild;return t}).append(this)}return this},wrapInner:function(t){return this.each(ot.isFunction(t)?function(e){ot(this).wrapInner(t.call(this,e))}:function(){var e=ot(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=ot.isFunction(t);return this.each(function(n){ot(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(){return this.parent().each(function(){ot.nodeName(this,"body")||ot(this).replaceWith(this.childNodes)}).end()}}),ot.expr.filters.hidden=function(t){return t.offsetWidth<=0&&t.offsetHeight<=0||!nt.reliableHiddenOffsets()&&"none"===(t.style&&t.style.display||ot.css(t,"display"))},ot.expr.filters.visible=function(t){return!ot.expr.filters.hidden(t)};var Ue=/%20/g,Ve=/\[\]$/,Qe=/\r?\n/g,Xe=/^(?:submit|button|image|reset|file)$/i,Ye=/^(?:input|select|textarea|keygen)/i;ot.param=function(t,e){var n,i=[],o=function(t,e){e=ot.isFunction(e)?e():null==e?"":e,i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(void 0===e&&(e=ot.ajaxSettings&&ot.ajaxSettings.traditional),ot.isArray(t)||t.jquery&&!ot.isPlainObject(t))ot.each(t,function(){o(this.name,this.value)});else for(n in t)F(n,t[n],e,o);return i.join("&").replace(Ue,"+")},ot.fn.extend({serialize:function(){return ot.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=ot.prop(this,"elements");return t?ot.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!ot(this).is(":disabled")&&Ye.test(this.nodeName)&&!Xe.test(t)&&(this.checked||!Et.test(t))}).map(function(t,e){var n=ot(this).val();return null==n?null:ot.isArray(n)?ot.map(n,function(t){return{name:e.name,value:t.replace(Qe,"\r\n")}}):{name:e.name,value:n.replace(Qe,"\r\n")}}).get()}}),ot.ajaxSettings.xhr=void 0!==t.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&U()||V()}:U;var Ge=0,Ze={},Ke=ot.ajaxSettings.xhr();t.attachEvent&&t.attachEvent("onunload",function(){for(var t in Ze)Ze[t](void 0,!0)}),nt.cors=!!Ke&&"withCredentials"in Ke,Ke=nt.ajax=!!Ke,Ke&&ot.ajaxTransport(function(t){if(!t.crossDomain||nt.cors){var e;return{send:function(n,i){var o,a=t.xhr(),s=++Ge;if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)a[o]=t.xhrFields[o];t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest");for(o in n)void 0!==n[o]&&a.setRequestHeader(o,n[o]+"");a.send(t.hasContent&&t.data||null),e=function(n,o){var r,l,d;if(e&&(o||4===a.readyState))if(delete Ze[s],e=void 0,a.onreadystatechange=ot.noop,o)4!==a.readyState&&a.abort();else{d={},r=a.status,"string"==typeof a.responseText&&(d.text=a.responseText);try{l=a.statusText}catch(t){l=""}r||!t.isLocal||t.crossDomain?1223===r&&(r=204):r=d.text?200:404}d&&i(r,l,d,a.getAllResponseHeaders())},t.async?4===a.readyState?setTimeout(e):a.onreadystatechange=Ze[s]=e:e()},abort:function(){e&&e(void 0,!0)}}}}),ot.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(t){return ot.globalEval(t),t}}}),ot.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET",t.global=!1)}),ot.ajaxTransport("script",function(t){if(t.crossDomain){var e,n=ft.head||ot("head")[0]||ft.documentElement;return{send:function(i,o){e=ft.createElement("script"),e.async=!0,t.scriptCharset&&(e.charset=t.scriptCharset),e.src=t.url,e.onload=e.onreadystatechange=function(t,n){(n||!e.readyState||/loaded|complete/.test(e.readyState))&&(e.onload=e.onreadystatechange=null,e.parentNode&&e.parentNode.removeChild(e),e=null,n||o(200,"success"))},n.insertBefore(e,n.firstChild)},abort:function(){e&&e.onload(void 0,!0)}}}});var Je=[],tn=/(=)\?(?=&|$)|\?\?/;ot.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Je.pop()||ot.expando+"_"+Ee++;return this[t]=!0,t}}),ot.ajaxPrefilter("json jsonp",function(e,n,i){var o,a,s,r=e.jsonp!==!1&&(tn.test(e.url)?"url":"string"==typeof e.data&&!(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&tn.test(e.data)&&"data");return r||"jsonp"===e.dataTypes[0]?(o=e.jsonpCallback=ot.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,r?e[r]=e[r].replace(tn,"$1"+o):e.jsonp!==!1&&(e.url+=(Be.test(e.url)?"&":"?")+e.jsonp+"="+o),e.converters["script json"]=function(){return s||ot.error(o+" was not called"),s[0]},e.dataTypes[0]="json",a=t[o],t[o]=function(){s=arguments},i.always(function(){t[o]=a,e[o]&&(e.jsonpCallback=n.jsonpCallback,Je.push(o)),s&&ot.isFunction(a)&&a(s[0]),s=a=void 0}),"script"):void 0}),ot.parseHTML=function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||ft;var i=ut.exec(t),o=!n&&[];return i?[e.createElement(i[1])]:(i=ot.buildFragment([t],e,o),o&&o.length&&ot(o).remove(),ot.merge([],i.childNodes))};var en=ot.fn.load;ot.fn.load=function(t,e,n){if("string"!=typeof t&&en)return en.apply(this,arguments);var i,o,a,s=this,r=t.indexOf(" ");return r>=0&&(i=ot.trim(t.slice(r,t.length)),
t=t.slice(0,r)),ot.isFunction(e)?(n=e,e=void 0):e&&"object"==typeof e&&(a="POST"),s.length>0&&ot.ajax({url:t,type:a,dataType:"html",data:e}).done(function(t){o=arguments,s.html(i?ot("<div>").append(ot.parseHTML(t)).find(i):t)}).complete(n&&function(t,e){s.each(n,o||[t.responseText,e,t])}),this},ot.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){ot.fn[e]=function(t){return this.on(e,t)}}),ot.expr.filters.animated=function(t){return ot.grep(ot.timers,function(e){return t===e.elem}).length};var nn=t.document.documentElement;ot.offset={setOffset:function(t,e,n){var i,o,a,s,r,l,d,c=ot.css(t,"position"),u=ot(t),p={};"static"===c&&(t.style.position="relative"),r=u.offset(),a=ot.css(t,"top"),l=ot.css(t,"left"),d=("absolute"===c||"fixed"===c)&&ot.inArray("auto",[a,l])>-1,d?(i=u.position(),s=i.top,o=i.left):(s=parseFloat(a)||0,o=parseFloat(l)||0),ot.isFunction(e)&&(e=e.call(t,n,r)),null!=e.top&&(p.top=e.top-r.top+s),null!=e.left&&(p.left=e.left-r.left+o),"using"in e?e.using.call(t,p):u.css(p)}},ot.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){ot.offset.setOffset(this,t,e)});var e,n,i={top:0,left:0},o=this[0],a=o&&o.ownerDocument;return a?(e=a.documentElement,ot.contains(e,o)?(typeof o.getBoundingClientRect!==_t&&(i=o.getBoundingClientRect()),n=Q(a),{top:i.top+(n.pageYOffset||e.scrollTop)-(e.clientTop||0),left:i.left+(n.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}):i):void 0},position:function(){if(this[0]){var t,e,n={top:0,left:0},i=this[0];return"fixed"===ot.css(i,"position")?e=i.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),ot.nodeName(t[0],"html")||(n=t.offset()),n.top+=ot.css(t[0],"borderTopWidth",!0),n.left+=ot.css(t[0],"borderLeftWidth",!0)),{top:e.top-n.top-ot.css(i,"marginTop",!0),left:e.left-n.left-ot.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||nn;t&&!ot.nodeName(t,"html")&&"static"===ot.css(t,"position");)t=t.offsetParent;return t||nn})}}),ot.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var n=/Y/.test(e);ot.fn[t]=function(i){return At(this,function(t,i,o){var a=Q(t);return void 0===o?a?e in a?a[e]:a.document.documentElement[i]:t[i]:void(a?a.scrollTo(n?ot(a).scrollLeft():o,n?o:ot(a).scrollTop()):t[i]=o)},t,i,arguments.length,null)}}),ot.each(["top","left"],function(t,e){ot.cssHooks[e]=T(nt.pixelPosition,function(t,n){return n?(n=ee(t,e),ie.test(n)?ot(t).position()[e]+"px":n):void 0})}),ot.each({Height:"height",Width:"width"},function(t,e){ot.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,i){ot.fn[i]=function(i,o){var a=arguments.length&&(n||"boolean"!=typeof i),s=n||(i===!0||o===!0?"margin":"border");return At(this,function(e,n,i){var o;return ot.isWindow(e)?e.document.documentElement["client"+t]:9===e.nodeType?(o=e.documentElement,Math.max(e.body["scroll"+t],o["scroll"+t],e.body["offset"+t],o["offset"+t],o["client"+t])):void 0===i?ot.css(e,n,s):ot.style(e,n,i,s)},e,a?i:void 0,a,null)}})}),ot.fn.size=function(){return this.length},ot.fn.andSelf=ot.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return ot});var on=t.jQuery,an=t.$;return ot.noConflict=function(e){return t.$===ot&&(t.$=an),e&&t.jQuery===ot&&(t.jQuery=on),ot},typeof e===_t&&(t.jQuery=t.$=ot),ot}),"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||e[0]>2)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3")}(jQuery),+function(t){"use strict";function e(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in e)if(void 0!==t.style[n])return{end:e[n]};return!1}t.fn.emulateTransitionEnd=function(e){var n=!1,i=this;t(this).one("bsTransitionEnd",function(){n=!0});var o=function(){n||t(i).trigger(t.support.transition.end)};return setTimeout(o,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 n=t(this),o=n.data("bs.alert");o||n.data("bs.alert",o=new i(this)),"string"==typeof e&&o[e].call(n)})}var n='[data-dismiss="alert"]',i=function(e){t(e).on("click",n,this.close)};i.VERSION="3.3.6",i.TRANSITION_DURATION=150,i.prototype.close=function(e){function n(){s.detach().trigger("closed.bs.alert").remove()}var o=t(this),a=o.attr("data-target");a||(a=o.attr("href"),a=a&&a.replace(/.*(?=#[^\s]*$)/,""));var s=t(a);e&&e.preventDefault(),s.length||(s=o.closest(".alert")),s.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(s.removeClass("in"),t.support.transition&&s.hasClass("fade")?s.one("bsTransitionEnd",n).emulateTransitionEnd(i.TRANSITION_DURATION):n())};var o=t.fn.alert;t.fn.alert=e,t.fn.alert.Constructor=i,t.fn.alert.noConflict=function(){return t.fn.alert=o,this},t(document).on("click.bs.alert.data-api",n,i.prototype.close)}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var i=t(this),o=i.data("bs.button"),a="object"==typeof e&&e;o||i.data("bs.button",o=new n(this,a)),"toggle"==e?o.toggle():e&&o.setState(e)})}var n=function(e,i){this.$element=t(e),this.options=t.extend({},n.DEFAULTS,i),this.isLoading=!1};n.VERSION="3.3.6",n.DEFAULTS={loadingText:"loading..."},n.prototype.setState=function(e){var n="disabled",i=this.$element,o=i.is("input")?"val":"html",a=i.data();e+="Text",null==a.resetText&&i.data("resetText",i[o]()),setTimeout(t.proxy(function(){i[o](null==a[e]?this.options[e]:a[e]),"loadingText"==e?(this.isLoading=!0,i.addClass(n).attr(n,n)):this.isLoading&&(this.isLoading=!1,i.removeClass(n).removeAttr(n))},this),0)},n.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var n=this.$element.find("input");"radio"==n.prop("type")?(n.prop("checked")&&(t=!1),e.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==n.prop("type")&&(n.prop("checked")!==this.$element.hasClass("active")&&(t=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),t&&n.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var i=t.fn.button;t.fn.button=e,t.fn.button.Constructor=n,t.fn.button.noConflict=function(){return t.fn.button=i,this},t(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(n){var i=t(n.target);i.hasClass("btn")||(i=i.closest(".btn")),e.call(i,"toggle"),t(n.target).is('input[type="radio"]')||t(n.target).is('input[type="checkbox"]')||n.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 i=t(this),o=i.data("bs.carousel"),a=t.extend({},n.DEFAULTS,i.data(),"object"==typeof e&&e),s="string"==typeof e?e:a.slide;o||i.data("bs.carousel",o=new n(this,a)),"number"==typeof e?o.to(e):s?o[s]():a.interval&&o.pause().cycle()})}var n=function(e,n){this.$element=t(e),this.$indicators=this.$element.find(".carousel-indicators"),this.options=n,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))};n.VERSION="3.3.6",n.TRANSITION_DURATION=600,n.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},n.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()}},n.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},n.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},n.prototype.getItemForDirection=function(t,e){var n=this.getItemIndex(e),i="prev"==t&&0===n||"next"==t&&n==this.$items.length-1;if(i&&!this.options.wrap)return e;var o="prev"==t?-1:1,a=(n+o)%this.$items.length;return this.$items.eq(a)},n.prototype.to=function(t){var e=this,n=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)}):n==t?this.pause().cycle():this.slide(t>n?"next":"prev",this.$items.eq(t))},n.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},n.prototype.next=function(){return this.sliding?void 0:this.slide("next")},n.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},n.prototype.slide=function(e,i){var o=this.$element.find(".item.active"),a=i||this.getItemForDirection(e,o),s=this.interval,r="next"==e?"left":"right",l=this;if(a.hasClass("active"))return this.sliding=!1;var d=a[0],c=t.Event("slide.bs.carousel",{relatedTarget:d,direction:r});if(this.$element.trigger(c),!c.isDefaultPrevented()){if(this.sliding=!0,s&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var u=t(this.$indicators.children()[this.getItemIndex(a)]);u&&u.addClass("active")}var p=t.Event("slid.bs.carousel",{relatedTarget:d,direction:r});return t.support.transition&&this.$element.hasClass("slide")?(a.addClass(e),a[0].offsetWidth,o.addClass(r),a.addClass(r),o.one("bsTransitionEnd",function(){a.removeClass([e,r].join(" ")).addClass("active"),o.removeClass(["active",r].join(" ")),l.sliding=!1,setTimeout(function(){l.$element.trigger(p)},0)}).emulateTransitionEnd(n.TRANSITION_DURATION)):(o.removeClass("active"),a.addClass("active"),this.sliding=!1,this.$element.trigger(p)),s&&this.cycle(),this}};var i=t.fn.carousel;t.fn.carousel=e,t.fn.carousel.Constructor=n,t.fn.carousel.noConflict=function(){return t.fn.carousel=i,this};var o=function(n){var i,o=t(this),a=t(o.attr("data-target")||(i=o.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,""));if(a.hasClass("carousel")){var s=t.extend({},a.data(),o.data()),r=o.attr("data-slide-to");r&&(s.interval=!1),e.call(a,s),r&&a.data("bs.carousel").to(r),n.preventDefault()}};t(document).on("click.bs.carousel.data-api","[data-slide]",o).on("click.bs.carousel.data-api","[data-slide-to]",o),t(window).on("load",function(){t('[data-ride="carousel"]').each(function(){var n=t(this);e.call(n,n.data())})})}(jQuery),+function(t){"use strict";function e(e){var n,i=e.attr("data-target")||(n=e.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"");return t(i)}function n(e){return this.each(function(){var n=t(this),o=n.data("bs.collapse"),a=t.extend({},i.DEFAULTS,n.data(),"object"==typeof e&&e);!o&&a.toggle&&/show|hide/.test(e)&&(a.toggle=!1),o||n.data("bs.collapse",o=new i(this,a)),"string"==typeof e&&o[e]()})}var i=function(e,n){this.$element=t(e),this.options=t.extend({},i.DEFAULTS,n),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()};i.VERSION="3.3.6",i.TRANSITION_DURATION=350,i.DEFAULTS={toggle:!0},i.prototype.dimension=function(){var t=this.$element.hasClass("width");return t?"width":"height"},i.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var e,o=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(o&&o.length&&(e=o.data("bs.collapse"),e&&e.transitioning))){var a=t.Event("show.bs.collapse");if(this.$element.trigger(a),!a.isDefaultPrevented()){o&&o.length&&(n.call(o,"hide"),e||o.data("bs.collapse",null));var s=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[s](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var r=function(){this.$element.removeClass("collapsing").addClass("collapse in")[s](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return r.call(this);var l=t.camelCase(["scroll",s].join("-"));this.$element.one("bsTransitionEnd",t.proxy(r,this)).emulateTransitionEnd(i.TRANSITION_DURATION)[s](this.$element[0][l])}}}},i.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 n=this.dimension();this.$element[n](this.$element[n]())[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 o=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return t.support.transition?void this.$element[n](0).one("bsTransitionEnd",t.proxy(o,this)).emulateTransitionEnd(i.TRANSITION_DURATION):o.call(this)}}},i.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},i.prototype.getParent=function(){return t(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(t.proxy(function(n,i){var o=t(i);this.addAriaAndCollapsedClass(e(o),o)},this)).end()},i.prototype.addAriaAndCollapsedClass=function(t,e){var n=t.hasClass("in");t.attr("aria-expanded",n),e.toggleClass("collapsed",!n).attr("aria-expanded",n)};var o=t.fn.collapse;t.fn.collapse=n,t.fn.collapse.Constructor=i,t.fn.collapse.noConflict=function(){return t.fn.collapse=o,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(i){var o=t(this);o.attr("data-target")||i.preventDefault();var a=e(o),s=a.data("bs.collapse"),r=s?"toggle":o.data();n.call(a,r)})}(jQuery),+function(t){"use strict";function e(e){var n=e.attr("data-target");n||(n=e.attr("href"),n=n&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var i=n&&t(n);return i&&i.length?i:e.parent()}function n(n){n&&3===n.which||(t(o).remove(),t(a).each(function(){var i=t(this),o=e(i),a={relatedTarget:this};o.hasClass("open")&&(n&&"click"==n.type&&/input|textarea/i.test(n.target.tagName)&&t.contains(o[0],n.target)||(o.trigger(n=t.Event("hide.bs.dropdown",a)),n.isDefaultPrevented()||(i.attr("aria-expanded","false"),o.removeClass("open").trigger(t.Event("hidden.bs.dropdown",a)))))}))}function i(e){return this.each(function(){var n=t(this),i=n.data("bs.dropdown");i||n.data("bs.dropdown",i=new s(this)),"string"==typeof e&&i[e].call(n)})}var o=".dropdown-backdrop",a='[data-toggle="dropdown"]',s=function(e){t(e).on("click.bs.dropdown",this.toggle)};s.VERSION="3.3.6",s.prototype.toggle=function(i){var o=t(this);if(!o.is(".disabled, :disabled")){var a=e(o),s=a.hasClass("open");if(n(),!s){"ontouchstart"in document.documentElement&&!a.closest(".navbar-nav").length&&t(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(t(this)).on("click",n);var r={relatedTarget:this};if(a.trigger(i=t.Event("show.bs.dropdown",r)),i.isDefaultPrevented())return;o.trigger("focus").attr("aria-expanded","true"),a.toggleClass("open").trigger(t.Event("shown.bs.dropdown",r))}return!1}},s.prototype.keydown=function(n){if(/(38|40|27|32)/.test(n.which)&&!/input|textarea/i.test(n.target.tagName)){var i=t(this);if(n.preventDefault(),n.stopPropagation(),!i.is(".disabled, :disabled")){var o=e(i),s=o.hasClass("open");if(!s&&27!=n.which||s&&27==n.which)return 27==n.which&&o.find(a).trigger("focus"),i.trigger("click");var r=" li:not(.disabled):visible a",l=o.find(".dropdown-menu"+r);if(l.length){var d=l.index(n.target);38==n.which&&d>0&&d--,40==n.which&&d<l.length-1&&d++,~d||(d=0),l.eq(d).trigger("focus")}}}};var r=t.fn.dropdown;t.fn.dropdown=i,t.fn.dropdown.Constructor=s,t.fn.dropdown.noConflict=function(){return t.fn.dropdown=r,this},t(document).on("click.bs.dropdown.data-api",n).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",a,s.prototype.toggle).on("keydown.bs.dropdown.data-api",a,s.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",s.prototype.keydown)}(jQuery),+function(t){"use strict";function e(e,i){return this.each(function(){var o=t(this),a=o.data("bs.modal"),s=t.extend({},n.DEFAULTS,o.data(),"object"==typeof e&&e);a||o.data("bs.modal",a=new n(this,s)),"string"==typeof e?a[e](i):s.show&&a.show(i)})}var n=function(e,n){this.options=n,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))};n.VERSION="3.3.6",n.TRANSITION_DURATION=300,n.BACKDROP_TRANSITION_DURATION=150,n.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},n.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},n.prototype.show=function(e){var i=this,o=t.Event("show.bs.modal",{relatedTarget:e});this.$element.trigger(o),this.isShown||o.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(){i.$element.one("mouseup.dismiss.bs.modal",function(e){t(e.target).is(i.$element)&&(i.ignoreBackdropClick=!0)})}),this.backdrop(function(){var o=t.support.transition&&i.$element.hasClass("fade");i.$element.parent().length||i.$element.appendTo(i.$body),i.$element.show().scrollTop(0),i.adjustDialog(),o&&i.$element[0].offsetWidth,i.$element.addClass("in"),i.enforceFocus();var a=t.Event("shown.bs.modal",{relatedTarget:e});o?i.$dialog.one("bsTransitionEnd",function(){i.$element.trigger("focus").trigger(a)}).emulateTransitionEnd(n.TRANSITION_DURATION):i.$element.trigger("focus").trigger(a)}))},n.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").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(n.TRANSITION_DURATION):this.hideModal())},n.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))},n.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")},n.prototype.resize=function(){this.isShown?t(window).on("resize.bs.modal",t.proxy(this.handleUpdate,this)):t(window).off("resize.bs.modal")},n.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")})},n.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},n.prototype.backdrop=function(e){var i=this,o=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var a=t.support.transition&&o;if(this.$backdrop=t(document.createElement("div")).addClass("modal-backdrop "+o).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)),a&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!e)return;a?this.$backdrop.one("bsTransitionEnd",e).emulateTransitionEnd(n.BACKDROP_TRANSITION_DURATION):e()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var s=function(){i.removeBackdrop(),e&&e()};t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",s).emulateTransitionEnd(n.BACKDROP_TRANSITION_DURATION):s()}else e&&e()},n.prototype.handleUpdate=function(){this.adjustDialog()},n.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:""})},n.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},n.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()},n.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)},n.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},n.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 i=t.fn.modal;t.fn.modal=e,t.fn.modal.Constructor=n,t.fn.modal.noConflict=function(){return t.fn.modal=i,this},t(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(n){var i=t(this),o=i.attr("href"),a=t(i.attr("data-target")||o&&o.replace(/.*(?=#[^\s]+$)/,"")),s=a.data("bs.modal")?"toggle":t.extend({remote:!/#/.test(o)&&o},a.data(),i.data());i.is("a")&&n.preventDefault(),a.one("show.bs.modal",function(t){t.isDefaultPrevented()||a.one("hidden.bs.modal",function(){i.is(":visible")&&i.trigger("focus")})}),e.call(a,s,this)})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var i=t(this),o=i.data("bs.tooltip"),a="object"==typeof e&&e;(o||!/destroy|hide/.test(e))&&(o||i.data("bs.tooltip",o=new n(this,a)),"string"==typeof e&&o[e]())})}var n=function(t,e){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",t,e)};n.VERSION="3.3.6",n.TRANSITION_DURATION=150,n.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}},n.prototype.init=function(e,n,i){if(this.enabled=!0,this.type=e,this.$element=t(n),this.options=this.getOptions(i),this.$viewport=this.options.viewport&&t(t.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var o=this.options.trigger.split(" "),a=o.length;a--;){var s=o[a];if("click"==s)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=s){var r="hover"==s?"mouseenter":"focusin",l="hover"==s?"mouseleave":"focusout";this.$element.on(r+"."+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()},n.prototype.getDefaults=function(){return n.DEFAULTS},n.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},n.prototype.getDelegateOptions=function(){var e={},n=this.getDefaults();return this._options&&t.each(this._options,function(t,i){n[t]!=i&&(e[t]=i)}),e},n.prototype.enter=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n)),e instanceof t.Event&&(n.inState["focusin"==e.type?"focus":"hover"]=!0),n.tip().hasClass("in")||"in"==n.hoverState?void(n.hoverState="in"):(clearTimeout(n.timeout),n.hoverState="in",n.options.delay&&n.options.delay.show?void(n.timeout=setTimeout(function(){"in"==n.hoverState&&n.show()},n.options.delay.show)):n.show())},n.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},n.prototype.leave=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n)),e instanceof t.Event&&(n.inState["focusout"==e.type?"focus":"hover"]=!1),n.isInStateTrue()?void 0:(clearTimeout(n.timeout),n.hoverState="out",n.options.delay&&n.options.delay.hide?void(n.timeout=setTimeout(function(){"out"==n.hoverState&&n.hide()},n.options.delay.hide)):n.hide())},n.prototype.show=function(){var e=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var i=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!i)return;var o=this,a=this.tip(),s=this.getUID(this.type);this.setContent(),a.attr("id",s),this.$element.attr("aria-describedby",s),this.options.animation&&a.addClass("fade");var r="function"==typeof this.options.placement?this.options.placement.call(this,a[0],this.$element[0]):this.options.placement,l=/\s?auto?\s?/i,d=l.test(r);d&&(r=r.replace(l,"")||"top"),a.detach().css({top:0,left:0,display:"block"}).addClass(r).data("bs."+this.type,this),this.options.container?a.appendTo(this.options.container):a.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var c=this.getPosition(),u=a[0].offsetWidth,p=a[0].offsetHeight;if(d){var h=r,f=this.getPosition(this.$viewport);r="bottom"==r&&c.bottom+p>f.bottom?"top":"top"==r&&c.top-p<f.top?"bottom":"right"==r&&c.right+u>f.width?"left":"left"==r&&c.left-u<f.left?"right":r,a.removeClass(h).addClass(r)}var g=this.getCalculatedOffset(r,c,u,p);this.applyPlacement(g,r);var m=function(){var t=o.hoverState;o.$element.trigger("shown.bs."+o.type),o.hoverState=null,"out"==t&&o.leave(o)};t.support.transition&&this.$tip.hasClass("fade")?a.one("bsTransitionEnd",m).emulateTransitionEnd(n.TRANSITION_DURATION):m()}},n.prototype.applyPlacement=function(e,n){var i=this.tip(),o=i[0].offsetWidth,a=i[0].offsetHeight,s=parseInt(i.css("margin-top"),10),r=parseInt(i.css("margin-left"),10);isNaN(s)&&(s=0),isNaN(r)&&(r=0),e.top+=s,e.left+=r,t.offset.setOffset(i[0],t.extend({using:function(t){i.css({top:Math.round(t.top),left:Math.round(t.left)})}},e),0),i.addClass("in");var l=i[0].offsetWidth,d=i[0].offsetHeight;"top"==n&&d!=a&&(e.top=e.top+a-d);var c=this.getViewportAdjustedDelta(n,e,l,d);c.left?e.left+=c.left:e.top+=c.top;var u=/top|bottom/.test(n),p=u?2*c.left-o+l:2*c.top-a+d,h=u?"offsetWidth":"offsetHeight";i.offset(e),this.replaceArrow(p,i[0][h],u)},n.prototype.replaceArrow=function(t,e,n){this.arrow().css(n?"left":"top",50*(1-t/e)+"%").css(n?"top":"left","")},n.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")},n.prototype.hide=function(e){function i(){"in"!=o.hoverState&&a.detach(),o.$element.removeAttr("aria-describedby").trigger("hidden.bs."+o.type),e&&e()}var o=this,a=t(this.$tip),s=t.Event("hide.bs."+this.type);return this.$element.trigger(s),s.isDefaultPrevented()?void 0:(a.removeClass("in"),t.support.transition&&a.hasClass("fade")?a.one("bsTransitionEnd",i).emulateTransitionEnd(n.TRANSITION_DURATION):i(),this.hoverState=null,this)},n.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","")},n.prototype.hasContent=function(){return this.getTitle()},n.prototype.getPosition=function(e){e=e||this.$element;var n=e[0],i="BODY"==n.tagName,o=n.getBoundingClientRect();null==o.width&&(o=t.extend({},o,{width:o.right-o.left,height:o.bottom-o.top}));var a=i?{top:0,left:0}:e.offset(),s={scroll:i?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop()},r=i?{width:t(window).width(),height:t(window).height()}:null;return t.extend({},o,s,r,a)},n.prototype.getCalculatedOffset=function(t,e,n,i){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-n/2}:"top"==t?{top:e.top-i,left:e.left+e.width/2-n/2}:"left"==t?{top:e.top+e.height/2-i/2,left:e.left-n}:{top:e.top+e.height/2-i/2,left:e.left+e.width}},n.prototype.getViewportAdjustedDelta=function(t,e,n,i){var o={top:0,left:0};if(!this.$viewport)return o;var a=this.options.viewport&&this.options.viewport.padding||0,s=this.getPosition(this.$viewport);if(/right|left/.test(t)){var r=e.top-a-s.scroll,l=e.top+a-s.scroll+i;r<s.top?o.top=s.top-r:l>s.top+s.height&&(o.top=s.top+s.height-l)}else{var d=e.left-a,c=e.left+a+n;d<s.left?o.left=s.left-d:c>s.right&&(o.left=s.left+s.width-c)}return o},n.prototype.getTitle=function(){var t,e=this.$element,n=this.options;return t=e.attr("data-original-title")||("function"==typeof n.title?n.title.call(e[0]):n.title)},n.prototype.getUID=function(t){do t+=~~(1e6*Math.random());while(document.getElementById(t));return t},n.prototype.tip=function(){if(!this.$tip&&(this.$tip=t(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},n.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},n.prototype.enable=function(){this.enabled=!0},n.prototype.disable=function(){this.enabled=!1},n.prototype.toggleEnabled=function(){this.enabled=!this.enabled},n.prototype.toggle=function(e){var n=this;e&&(n=t(e.currentTarget).data("bs."+this.type),n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n))),e?(n.inState.click=!n.inState.click,n.isInStateTrue()?n.enter(n):n.leave(n)):n.tip().hasClass("in")?n.leave(n):n.enter(n)},n.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null})};var i=t.fn.tooltip;t.fn.tooltip=e,t.fn.tooltip.Constructor=n,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=i,this}}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var i=t(this),o=i.data("bs.popover"),a="object"==typeof e&&e;(o||!/destroy|hide/.test(e))&&(o||i.data("bs.popover",o=new n(this,a)),
"string"==typeof e&&o[e]())})}var n=function(t,e){this.init("popover",t,e)};if(!t.fn.tooltip)throw new Error("Popover requires tooltip.js");n.VERSION="3.3.6",n.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>'}),n.prototype=t.extend({},t.fn.tooltip.Constructor.prototype),n.prototype.constructor=n,n.prototype.getDefaults=function(){return n.DEFAULTS},n.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),n=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof n?"html":"append":"text"](n),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},n.prototype.hasContent=function(){return this.getTitle()||this.getContent()},n.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)},n.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var i=t.fn.popover;t.fn.popover=e,t.fn.popover.Constructor=n,t.fn.popover.noConflict=function(){return t.fn.popover=i,this}}(jQuery),+function(t){"use strict";function e(n,i){this.$body=t(document.body),this.$scrollElement=t(t(n).is(document.body)?window:n),this.options=t.extend({},e.DEFAULTS,i),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 n(n){return this.each(function(){var i=t(this),o=i.data("bs.scrollspy"),a="object"==typeof n&&n;o||i.data("bs.scrollspy",o=new e(this,a)),"string"==typeof n&&o[n]()})}e.VERSION="3.3.6",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,n="offset",i=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),t.isWindow(this.$scrollElement[0])||(n="position",i=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var e=t(this),o=e.data("target")||e.attr("href"),a=/^#./.test(o)&&t(o);return a&&a.length&&a.is(":visible")&&[[a[n]().top+i,o]]||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,n=this.getScrollHeight(),i=this.options.offset+n-this.$scrollElement.height(),o=this.offsets,a=this.targets,s=this.activeTarget;if(this.scrollHeight!=n&&this.refresh(),e>=i)return s!=(t=a[a.length-1])&&this.activate(t);if(s&&e<o[0])return this.activeTarget=null,this.clear();for(t=o.length;t--;)s!=a[t]&&e>=o[t]&&(void 0===o[t+1]||e<o[t+1])&&this.activate(a[t])},e.prototype.activate=function(e){this.activeTarget=e,this.clear();var n=this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]',i=t(n).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active")),i.trigger("activate.bs.scrollspy")},e.prototype.clear=function(){t(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var i=t.fn.scrollspy;t.fn.scrollspy=n,t.fn.scrollspy.Constructor=e,t.fn.scrollspy.noConflict=function(){return t.fn.scrollspy=i,this},t(window).on("load.bs.scrollspy.data-api",function(){t('[data-spy="scroll"]').each(function(){var e=t(this);n.call(e,e.data())})})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var i=t(this),o=i.data("bs.tab");o||i.data("bs.tab",o=new n(this)),"string"==typeof e&&o[e]()})}var n=function(e){this.element=t(e)};n.VERSION="3.3.6",n.TRANSITION_DURATION=150,n.prototype.show=function(){var e=this.element,n=e.closest("ul:not(.dropdown-menu)"),i=e.data("target");if(i||(i=e.attr("href"),i=i&&i.replace(/.*(?=#[^\s]*$)/,"")),!e.parent("li").hasClass("active")){var o=n.find(".active:last a"),a=t.Event("hide.bs.tab",{relatedTarget:e[0]}),s=t.Event("show.bs.tab",{relatedTarget:o[0]});if(o.trigger(a),e.trigger(s),!s.isDefaultPrevented()&&!a.isDefaultPrevented()){var r=t(i);this.activate(e.closest("li"),n),this.activate(r,r.parent(),function(){o.trigger({type:"hidden.bs.tab",relatedTarget:e[0]}),e.trigger({type:"shown.bs.tab",relatedTarget:o[0]})})}}},n.prototype.activate=function(e,i,o){function a(){s.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),r?(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),o&&o()}var s=i.find("> .active"),r=o&&t.support.transition&&(s.length&&s.hasClass("fade")||!!i.find("> .fade").length);s.length&&r?s.one("bsTransitionEnd",a).emulateTransitionEnd(n.TRANSITION_DURATION):a(),s.removeClass("in")};var i=t.fn.tab;t.fn.tab=e,t.fn.tab.Constructor=n,t.fn.tab.noConflict=function(){return t.fn.tab=i,this};var o=function(n){n.preventDefault(),e.call(t(this),"show")};t(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',o).on("click.bs.tab.data-api",'[data-toggle="pill"]',o)}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var i=t(this),o=i.data("bs.affix"),a="object"==typeof e&&e;o||i.data("bs.affix",o=new n(this,a)),"string"==typeof e&&o[e]()})}var n=function(e,i){this.options=t.extend({},n.DEFAULTS,i),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()};n.VERSION="3.3.6",n.RESET="affix affix-top affix-bottom",n.DEFAULTS={offset:0,target:window},n.prototype.getState=function(t,e,n,i){var o=this.$target.scrollTop(),a=this.$element.offset(),s=this.$target.height();if(null!=n&&"top"==this.affixed)return n>o&&"top";if("bottom"==this.affixed)return null!=n?!(o+this.unpin<=a.top)&&"bottom":!(t-i>=o+s)&&"bottom";var r=null==this.affixed,l=r?o:a.top,d=r?s:e;return null!=n&&n>=o?"top":null!=i&&l+d>=t-i&&"bottom"},n.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(n.RESET).addClass("affix");var t=this.$target.scrollTop(),e=this.$element.offset();return this.pinnedOffset=e.top-t},n.prototype.checkPositionWithEventLoop=function(){setTimeout(t.proxy(this.checkPosition,this),1)},n.prototype.checkPosition=function(){if(this.$element.is(":visible")){var e=this.$element.height(),i=this.options.offset,o=i.top,a=i.bottom,s=Math.max(t(document).height(),t(document.body).height());"object"!=typeof i&&(a=o=i),"function"==typeof o&&(o=i.top(this.$element)),"function"==typeof a&&(a=i.bottom(this.$element));var r=this.getState(s,e,o,a);if(this.affixed!=r){null!=this.unpin&&this.$element.css("top","");var l="affix"+(r?"-"+r:""),d=t.Event(l+".bs.affix");if(this.$element.trigger(d),d.isDefaultPrevented())return;this.affixed=r,this.unpin="bottom"==r?this.getPinnedOffset():null,this.$element.removeClass(n.RESET).addClass(l).trigger(l.replace("affix","affixed")+".bs.affix")}"bottom"==r&&this.$element.offset({top:s-e-a})}};var i=t.fn.affix;t.fn.affix=e,t.fn.affix.Constructor=n,t.fn.affix.noConflict=function(){return t.fn.affix=i,this},t(window).on("load",function(){t('[data-spy="affix"]').each(function(){var n=t(this),i=n.data();i.offset=i.offset||{},null!=i.offsetBottom&&(i.offset.bottom=i.offsetBottom),null!=i.offsetTop&&(i.offset.top=i.offsetTop),e.call(n,i)})})}(jQuery),!function(t){"use strict";var e=function(e,n){this.options=n,this.$tabs=t(e),this._accordionVisible=!1,this._initAccordion(),this._checkStateOnResize();var i=this;setTimeout(function(){i.checkState()},0)};e.DEFAULTS={accordionClass:"visible-xs",tabsClass:"hidden-xs",accordionTemplate:function(t,e,n,i){return'<div class="panel panel-default">   <div class="panel-heading">      <h4 class="panel-title">      </h4>   </div>   <div id="'+e+'" class="panel-collapse collapse '+(i?"in":"")+'">       <div class="panel-body js-tabcollapse-panel-body">       </div>   </div></div>'}},e.prototype.checkState=function(){this.$tabs.is(":visible")&&this._accordionVisible?(this.showTabs(),this._accordionVisible=!1):this.$accordion.is(":visible")&&!this._accordionVisible&&(this.showAccordion(),this._accordionVisible=!0)},e.prototype.showTabs=function(){var e=this;this.$tabs.trigger(t.Event("show-tabs.bs.tabcollapse"));var n=this.$accordion.find(".js-tabcollapse-panel-heading").detach();n.each(function(){var n=t(this),i=n.data("bs.tabcollapse.parentLi"),o=e._panelHeadingToTabHeading(n);i.removeClass("active"),i.parent().hasClass("dropdown-menu")&&!i.siblings("li").hasClass("active")&&i.parent().parent().removeClass("active"),o.hasClass("collapsed")?o.removeClass("collapsed"):(i.addClass("active"),i.parent().hasClass("dropdown-menu")&&i.parent().parent().addClass("active")),i.append(n)}),t("li").hasClass("active")||t("li").first().addClass("active");var i=this.$accordion.find(".js-tabcollapse-panel-body");if(i.each(function(){var e=t(this),n=e.data("bs.tabcollapse.tabpane");n.append(e.contents().detach())}),this.$accordion.html(""),this.options.updateLinks){var o=this.getTabContentElement();o.find('[data-toggle-was="tab"], [data-toggle-was="pill"]').each(function(){var e=t(this),n=e.attr("href").replace(/-collapse$/g,"");e.attr({"data-toggle":e.attr("data-toggle-was"),"data-toggle-was":"","data-parent":"",href:n})})}this.$tabs.trigger(t.Event("shown-tabs.bs.tabcollapse"))},e.prototype.getTabContentElement=function(){var e=t(this.options.tabContentSelector);return 0===e.length&&(e=this.$tabs.siblings(".tab-content")),e},e.prototype.showAccordion=function(){this.$tabs.trigger(t.Event("show-accordion.bs.tabcollapse"));var e=this.$tabs.find('li:not(.dropdown) [data-toggle="tab"], li:not(.dropdown) [data-toggle="pill"]'),n=this;if(e.each(function(){var e=t(this),i=e.parent();e.data("bs.tabcollapse.parentLi",i),n.$accordion.append(n._createAccordionGroup(n.$accordion.attr("id"),e.detach()))}),this.options.updateLinks){var i=this.$accordion.attr("id"),o=this.$accordion.find(".js-tabcollapse-panel-body");o.find('[data-toggle="tab"], [data-toggle="pill"]').each(function(){var e=t(this),n=e.attr("href")+"-collapse";e.attr({"data-toggle-was":e.attr("data-toggle"),"data-toggle":"collapse","data-parent":"#"+i,href:n})})}this.$tabs.trigger(t.Event("shown-accordion.bs.tabcollapse"))},e.prototype._panelHeadingToTabHeading=function(t){var e=t.attr("href").replace(/-collapse$/g,"");return t.attr({"data-toggle":"tab",href:e,"data-parent":""}),t},e.prototype._tabHeadingToPanelHeading=function(t,e,n,i){return t.addClass("js-tabcollapse-panel-heading "+(i?"":"collapsed")),t.attr({"data-toggle":"collapse","data-parent":"#"+n,href:"#"+e}),t},e.prototype._checkStateOnResize=function(){var e=this;t(window).resize(function(){clearTimeout(e._resizeTimeout),e._resizeTimeout=setTimeout(function(){e.checkState()},100)})},e.prototype._initAccordion=function(){var e=function(){for(var t="",e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=0;n<5;n++)t+=e.charAt(Math.floor(Math.random()*e.length));return t},n=this.$tabs.attr("id"),i=(n?n:e())+"-accordion";this.$accordion=t('<div class="panel-group '+this.options.accordionClass+'" id="'+i+'"></div>'),this.$tabs.after(this.$accordion),this.$tabs.addClass(this.options.tabsClass),this.getTabContentElement().addClass(this.options.tabsClass)},e.prototype._createAccordionGroup=function(e,n){var i=n.attr("data-target"),o=n.data("bs.tabcollapse.parentLi").is(".active");i||(i=n.attr("href"),i=i&&i.replace(/.*(?=#[^\s]*$)/,""));var a=t(i),s=a.attr("id")+"-collapse",r=t(this.options.accordionTemplate(n,s,e,o));return r.find(".panel-heading > .panel-title").append(this._tabHeadingToPanelHeading(n,s,e,o)),r.find(".panel-body").append(a.contents().detach()).data("bs.tabcollapse.tabpane",a),r},t.fn.tabCollapse=function(n){return this.each(function(){var i=t(this),o=i.data("bs.tabcollapse"),a=t.extend({},e.DEFAULTS,i.data(),"object"==typeof n&&n);o||i.data("bs.tabcollapse",new e(this,a))})},t.fn.tabCollapse.Constructor=e}(window.jQuery),!function(t,e){if("function"==typeof define&&define.amd)define(["exports"],e);else if("undefined"!=typeof exports)e(exports);else{var n={exports:{}};e(n.exports),t.breakpoints=n.exports}}(this,function(t){"use strict";function e(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function n(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},s={xs:{min:0,max:767},sm:{min:768,max:991},md:{min:992,max:1199},lg:{min:1200,max:1/0}},r={each:function(t,e){var n=void 0;for(var i in t)if(("object"!==("undefined"==typeof t?"undefined":a(t))||t.hasOwnProperty(i))&&(n=e(i,t[i]),n===!1))break},isFunction:function(t){return"function"==typeof t||!1},extend:function(t,e){for(var n in e)t[n]=e[n];return t}},l=function(){function t(){i(this,t),this.length=0,this.list=[]}return o(t,[{key:"add",value:function(t,e){var n=!(arguments.length<=2||void 0===arguments[2])&&arguments[2];this.list.push({fn:t,data:e,one:n}),this.length++}},{key:"remove",value:function(t){for(var e=0;e<this.list.length;e++)this.list[e].fn===t&&(this.list.splice(e,1),this.length--,e--)}},{key:"empty",value:function(){this.list=[],this.length=0}},{key:"call",value:function(t,e){var n=arguments.length<=2||void 0===arguments[2]?null:arguments[2];e||(e=this.length-1);var i=this.list[e];r.isFunction(n)?n.call(this,t,i,e):r.isFunction(i.fn)&&i.fn.call(t||window,i.data),i.one&&(delete this.list[e],this.length--)}},{key:"fire",value:function(t){var e=arguments.length<=1||void 0===arguments[1]?null:arguments[1];for(var n in this.list)this.list.hasOwnProperty(n)&&this.call(t,n,e)}}]),t}(),d={current:null,callbacks:new l,trigger:function(t){var e=this.current;this.current=t,this.callbacks.fire(t,function(n,i){r.isFunction(i.fn)&&i.fn.call({current:t,previous:e},i.data)})},one:function(t,e){return this.on(t,e,!0)},on:function(t,e){var n=!(arguments.length<=2||void 0===arguments[2])&&arguments[2];"undefined"==typeof e&&r.isFunction(t)&&(e=t,t=void 0),r.isFunction(e)&&this.callbacks.add(e,t,n)},off:function(t){"undefined"==typeof t&&this.callbacks.empty()}},c=function(){function t(e,n){i(this,t),this.name=e,this.media=n,this.initialize()}return o(t,[{key:"initialize",value:function(){this.callbacks={enter:new l,leave:new l},this.mql=window.matchMedia&&window.matchMedia(this.media)||{matches:!1,media:this.media,addListener:function(){},removeListener:function(){}};var t=this;this.mqlListener=function(e){var n=e.matches&&"enter"||"leave";t.callbacks[n].fire(t)},this.mql.addListener(this.mqlListener)}},{key:"on",value:function(t,e,n){var i=!(arguments.length<=3||void 0===arguments[3])&&arguments[3];if("object"===("undefined"==typeof t?"undefined":a(t))){for(var o in t)t.hasOwnProperty(o)&&this.on(o,e,t[o],i);return this}return"undefined"==typeof n&&r.isFunction(e)&&(n=e,e=void 0),r.isFunction(n)?("undefined"!=typeof this.callbacks[t]&&(this.callbacks[t].add(n,e,i),"enter"===t&&this.isMatched()&&this.callbacks[t].call(this)),this):this}},{key:"one",value:function(t,e,n){return this.on(t,e,n,!0)}},{key:"off",value:function(t,e){var n=void 0;if("object"===("undefined"==typeof t?"undefined":a(t))){for(n in t)t.hasOwnProperty(n)&&this.off(n,t[n]);return this}return"undefined"==typeof t?(this.callbacks.enter.empty(),this.callbacks.leave.empty()):t in this.callbacks&&(e?this.callbacks[t].remove(e):this.callbacks[t].empty()),this}},{key:"isMatched",value:function(){return this.mql.matches}},{key:"destory",value:function(){this.off()}}]),t}(),u={min:function(t){var e=arguments.length<=1||void 0===arguments[1]?"px":arguments[1];return"(min-width: "+t+e+")"},max:function(t){var e=arguments.length<=1||void 0===arguments[1]?"px":arguments[1];return"(max-width: "+t+e+")"},between:function(t,e){var n=arguments.length<=2||void 0===arguments[2]?"px":arguments[2];return"(min-width: "+t+n+") and (max-width: "+e+n+")"},get:function(t,e){var n=arguments.length<=2||void 0===arguments[2]?"px":arguments[2];return 0===t?this.max(e,n):e===1/0?this.min(t,n):this.between(t,e,n)}},p=function(t){function a(t){var n=arguments.length<=1||void 0===arguments[1]?0:arguments[1],o=arguments.length<=2||void 0===arguments[2]?1/0:arguments[2],s=arguments.length<=3||void 0===arguments[3]?"px":arguments[3];i(this,a);var r=u.get(n,o,s),l=e(this,Object.getPrototypeOf(a).call(this,t,r));l.min=n,l.max=o,l.unit=s;var c=l;return l.changeListener=function(){c.isMatched()&&d.trigger(c)},l.isMatched()&&(d.current=l),l.mql.addListener(l.changeListener),l}return n(a,t),o(a,[{key:"destory",value:function(){this.off(),this.mql.removeListener(this.changeHander)}}]),a}(c),h=function(t){function o(t){i(this,o);var n=[],a=[];return r.each(t.split(" "),function(t,e){var i=b.get(e);i&&(n.push(i),a.push(i.media))}),e(this,Object.getPrototypeOf(o).call(this,t,a.join(",")))}return n(o,t),o}(c),f={version:"1.0.3"},g={},m={},v=window.Breakpoints=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];v.define.apply(v,e)};v.defaults=s,v=r.extend(v,{version:f.version,defined:!1,define:function(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];this.defined&&this.destory(),t||(t=v.defaults),this.options=r.extend(e,{unit:"px"});for(var n in t)t.hasOwnProperty(n)&&this.set(n,t[n].min,t[n].max,this.options.unit);this.defined=!0},destory:function(){r.each(g,function(t,e){e.destory()}),g={},d.current=null},is:function(t){var e=this.get(t);return e?e.isMatched():null},all:function(){var t=[];return r.each(g,function(e){t.push(e)}),t},set:function(t){var e=arguments.length<=1||void 0===arguments[1]?0:arguments[1],n=arguments.length<=2||void 0===arguments[2]?1/0:arguments[2],i=arguments.length<=3||void 0===arguments[3]?"px":arguments[3],o=this.get(t);return o&&o.destory(),g[t]=new p(t,e,n,i),g[t]},get:function(t){return g.hasOwnProperty(t)?g[t]:null},getUnion:function(t){return m.hasOwnProperty(t)?m[t]:(m[t]=new h(t),m[t])},getMin:function(t){var e=this.get(t);return e?e.min:null},getMax:function(t){var e=this.get(t);return e?e.max:null},current:function(){return d.current},getMedia:function(t){var e=this.get(t);return e?e.media:null},on:function(t,e,n,i){var o=!(arguments.length<=4||void 0===arguments[4])&&arguments[4];if(t=t.trim(),"change"===t)return i=n,n=e,d.on(n,i,o);if(t.includes(" ")){var a=this.getUnion(t);a&&a.on(e,n,i,o)}else{var s=this.get(t);s&&s.on(e,n,i,o)}return this},one:function(t,e,n,i){return this.on(t,e,n,i,!0)},off:function(t,e,n){if(t=t.trim(),"change"===t)return d.off(e);if(t.includes(" ")){var i=this.getUnion(t);i&&i.off(e,n)}else{var o=this.get(t);o&&o.off(e,n)}return this}});var b=v;t.default=b}),!function(){"use strict";function t(i){if(!i)throw new Error("No options passed to Waypoint constructor");if(!i.element)throw new Error("No element option passed to Waypoint constructor");if(!i.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+e,this.options=t.Adapter.extend({},t.defaults,i),this.element=this.options.element,this.adapter=new t.Adapter(this.element),this.callback=i.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=t.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=t.Context.findOrCreateByElement(this.options.context),t.offsetAliases[this.options.offset]&&(this.options.offset=t.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),n[this.key]=this,e+=1}var e=0,n={};t.prototype.queueTrigger=function(t){this.group.queueTrigger(this,t)},t.prototype.trigger=function(t){this.enabled&&this.callback&&this.callback.apply(this,t)},t.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete n[this.key]},t.prototype.disable=function(){return this.enabled=!1,this},t.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},t.prototype.next=function(){return this.group.next(this)},t.prototype.previous=function(){return this.group.previous(this)},t.invokeAll=function(t){var e=[];for(var i in n)e.push(n[i]);for(var o=0,a=e.length;a>o;o++)e[o][t]()},t.destroyAll=function(){t.invokeAll("destroy")},t.disableAll=function(){t.invokeAll("disable")},t.enableAll=function(){t.invokeAll("enable")},t.refreshAll=function(){t.Context.refreshAll()},t.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},t.viewportWidth=function(){return document.documentElement.clientWidth},t.adapters=[],t.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},t.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}},window.Waypoint=t}(),function(){"use strict";function t(t){window.setTimeout(t,1e3/60)}function e(t){this.element=t,this.Adapter=o.Adapter,this.adapter=new this.Adapter(t),this.key="waypoint-context-"+n,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},t.waypointContextKey=this.key,i[t.waypointContextKey]=this,n+=1,this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}var n=0,i={},o=window.Waypoint,a=window.onload;e.prototype.add=function(t){var e=t.options.horizontal?"horizontal":"vertical";this.waypoints[e][t.key]=t,this.refresh()},e.prototype.checkEmpty=function(){var t=this.Adapter.isEmptyObject(this.waypoints.horizontal),e=this.Adapter.isEmptyObject(this.waypoints.vertical);t&&e&&(this.adapter.off(".waypoints"),delete i[this.key])},e.prototype.createThrottledResizeHandler=function(){function t(){e.handleResize(),e.didResize=!1}var e=this;this.adapter.on("resize.waypoints",function(){e.didResize||(e.didResize=!0,o.requestAnimationFrame(t))})},e.prototype.createThrottledScrollHandler=function(){function t(){e.handleScroll(),e.didScroll=!1}var e=this;this.adapter.on("scroll.waypoints",function(){(!e.didScroll||o.isTouch)&&(e.didScroll=!0,o.requestAnimationFrame(t))})},e.prototype.handleResize=function(){o.Context.refreshAll()},e.prototype.handleScroll=function(){var t={},e={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};for(var n in e){var i=e[n],o=i.newScroll>i.oldScroll,a=o?i.forward:i.backward;for(var s in this.waypoints[n]){var r=this.waypoints[n][s],l=i.oldScroll<r.triggerPoint,d=i.newScroll>=r.triggerPoint,c=l&&d,u=!l&&!d;(c||u)&&(r.queueTrigger(a),t[r.group.id]=r.group)}}for(var p in t)t[p].flushTriggers();this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}},e.prototype.innerHeight=function(){return this.element==this.element.window?o.viewportHeight():this.adapter.innerHeight()},e.prototype.remove=function(t){delete this.waypoints[t.axis][t.key],this.checkEmpty()},e.prototype.innerWidth=function(){return this.element==this.element.window?o.viewportWidth():this.adapter.innerWidth()},e.prototype.destroy=function(){var t=[];for(var e in this.waypoints)for(var n in this.waypoints[e])t.push(this.waypoints[e][n]);for(var i=0,o=t.length;o>i;i++)t[i].destroy()},e.prototype.refresh=function(){var t,e=this.element==this.element.window,n=e?void 0:this.adapter.offset(),i={};this.handleScroll(),t={horizontal:{contextOffset:e?0:n.left,contextScroll:e?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:e?0:n.top,contextScroll:e?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}};for(var a in t){var s=t[a];for(var r in this.waypoints[a]){var l,d,c,u,p,h=this.waypoints[a][r],f=h.options.offset,g=h.triggerPoint,m=0,v=null==g;h.element!==h.element.window&&(m=h.adapter.offset()[s.offsetProp]),"function"==typeof f?f=f.apply(h):"string"==typeof f&&(f=parseFloat(f),h.options.offset.indexOf("%")>-1&&(f=Math.ceil(s.contextDimension*f/100))),l=s.contextScroll-s.contextOffset,h.triggerPoint=m+l-f,d=g<s.oldScroll,c=h.triggerPoint>=s.oldScroll,u=d&&c,p=!d&&!c,!v&&u?(h.queueTrigger(s.backward),i[h.group.id]=h.group):!v&&p?(h.queueTrigger(s.forward),i[h.group.id]=h.group):v&&s.oldScroll>=h.triggerPoint&&(h.queueTrigger(s.forward),i[h.group.id]=h.group)}}return o.requestAnimationFrame(function(){for(var t in i)i[t].flushTriggers()}),this},e.findOrCreateByElement=function(t){return e.findByElement(t)||new e(t)},e.refreshAll=function(){for(var t in i)i[t].refresh()},e.findByElement=function(t){return i[t.waypointContextKey]},window.onload=function(){a&&a(),e.refreshAll()},o.requestAnimationFrame=function(e){var n=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||t;n.call(window,e)},o.Context=e}(),function(){"use strict";function t(t,e){return t.triggerPoint-e.triggerPoint}function e(t,e){return e.triggerPoint-t.triggerPoint}function n(t){this.name=t.name,this.axis=t.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),i[this.axis][this.name]=this}var i={vertical:{},horizontal:{}},o=window.Waypoint;n.prototype.add=function(t){this.waypoints.push(t)},n.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},n.prototype.flushTriggers=function(){for(var n in this.triggerQueues){var i=this.triggerQueues[n],o="up"===n||"left"===n;i.sort(o?e:t);for(var a=0,s=i.length;s>a;a+=1){var r=i[a];(r.options.continuous||a===i.length-1)&&r.trigger([n])}}this.clearTriggerQueues()},n.prototype.next=function(e){this.waypoints.sort(t);var n=o.Adapter.inArray(e,this.waypoints),i=n===this.waypoints.length-1;return i?null:this.waypoints[n+1]},n.prototype.previous=function(e){this.waypoints.sort(t);var n=o.Adapter.inArray(e,this.waypoints);return n?this.waypoints[n-1]:null},n.prototype.queueTrigger=function(t,e){this.triggerQueues[e].push(t)},n.prototype.remove=function(t){var e=o.Adapter.inArray(t,this.waypoints);e>-1&&this.waypoints.splice(e,1)},n.prototype.first=function(){return this.waypoints[0]},n.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},n.findOrCreate=function(t){return i[t.axis][t.name]||new n(t)},o.Group=n}(),function(){"use strict";function t(t){this.$element=e(t)}var e=window.jQuery,n=window.Waypoint;e.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],function(e,n){t.prototype[n]=function(){var t=Array.prototype.slice.call(arguments);return this.$element[n].apply(this.$element,t)}}),e.each(["extend","inArray","isEmptyObject"],function(n,i){t[i]=e[i]}),n.adapters.push({name:"jquery",Adapter:t}),n.Adapter=t}(),function(){"use strict";function t(t){return function(){var n=[],i=arguments[0];return t.isFunction(arguments[0])&&(i=t.extend({},arguments[1]),i.handler=arguments[0]),this.each(function(){var o=t.extend({},i,{element:this});"string"==typeof o.context&&(o.context=t(this).closest(o.context)[0]),n.push(new e(o))}),n}}var e=window.Waypoint;window.jQuery&&(window.jQuery.fn.waypoint=t(window.jQuery)),window.Zepto&&(window.Zepto.fn.waypoint=t(window.Zepto))}(),function(t,e,n){function i(){var t=this;t.id=null,t.busy=!1,t.start=function(e,n){t.busy||(t.stop(),t.id=setTimeout(function(){e(),t.id=null,t.busy=!1},n),t.busy=!0)},t.stop=function(){null!==t.id&&(clearTimeout(t.id),t.id=null,t.busy=!1)}}function o(n,o,a){var s=this;s.id=a,s.table=n,s.options=o,s.breakpoints=[],s.breakpointNames="",s.columns={},s.plugins=e.footable.plugins.load(s);var r=s.options,l=r.classes,d=r.events,c=r.triggers,u=0;return s.timers={resize:new i,register:function(t){return s.timers[t]=new i,s.timers[t]}},s.init=function(){var n=t(e),i=t(s.table);if(e.footable.plugins.init(s),i.hasClass(l.loaded))return void s.raise(d.alreadyInitialized);s.raise(d.initializing),i.addClass(l.loading),i.find(r.columnDataSelector).each(function(){var t=s.getColumnData(this);s.columns[t.index]=t});for(var o in r.breakpoints)s.breakpoints.push({name:o,width:r.breakpoints[o]}),s.breakpointNames+=o+" ";s.breakpoints.sort(function(t,e){return t.width-e.width}),i.unbind(c.initialize).bind(c.initialize,function(){i.removeData("footable_info"),i.data("breakpoint",""),i.trigger(c.resize),i.removeClass(l.loading),i.addClass(l.loaded).addClass(l.main),s.raise(d.initialized)}).unbind(c.redraw).bind(c.redraw,function(){s.redraw()}).unbind(c.resize).bind(c.resize,function(){s.resize()}).unbind(c.expandFirstRow).bind(c.expandFirstRow,function(){i.find(r.toggleSelector).first().not("."+l.detailShow).trigger(c.toggleRow)}).unbind(c.expandAll).bind(c.expandAll,function(){i.find(r.toggleSelector).not("."+l.detailShow).trigger(c.toggleRow)}).unbind(c.collapseAll).bind(c.collapseAll,function(){i.find("."+l.detailShow).trigger(c.toggleRow)}),i.trigger(c.initialize),n.bind("resize.footable",function(){s.timers.resize.stop(),s.timers.resize.start(function(){s.raise(c.resize)},r.delay)})},s.addRowToggle=function(){if(r.addRowToggle){var e=t(s.table),n=!1;e.find("span."+l.toggle).remove();for(var i in s.columns){var o=s.columns[i];if(o.toggle){n=!0;var a="> tbody > tr:not(."+l.detail+",."+l.disabled+") > td:nth-child("+(parseInt(o.index,10)+1)+"),> tbody > tr:not(."+l.detail+",."+l.disabled+") > th:nth-child("+(parseInt(o.index,10)+1)+")";return void e.find(a).not("."+l.detailCell).prepend(t(r.toggleHTMLElement).addClass(l.toggle))}}n||e.find("> tbody > tr:not(."+l.detail+",."+l.disabled+") > td:first-child").add("> tbody > tr:not(."+l.detail+",."+l.disabled+") > th:first-child").not("."+l.detailCell).prepend(t(r.toggleHTMLElement).addClass(l.toggle))}},s.setColumnClasses=function(){var e=t(s.table);for(var n in s.columns){var i=s.columns[n];if(null!==i.className){var o="",a=!0;t.each(i.matches,function(t,e){a||(o+=", "),o+="> tbody > tr:not(."+l.detail+") > td:nth-child("+(parseInt(e,10)+1)+")",a=!1}),e.find(o).not("."+l.detailCell).addClass(i.className)}}},s.bindToggleSelectors=function(){var e=t(s.table);s.hasAnyBreakpointColumn()&&(e.find(r.toggleSelector).unbind(c.toggleRow).bind(c.toggleRow,function(e){var n=t(this).is("tr")?t(this):t(this).parents("tr:first");s.toggleDetail(n)}),e.find(r.toggleSelector).unbind("click.footable").bind("click.footable",function(n){e.is(".breakpoint")&&t(n.target).is("td,th,."+l.toggle)&&t(this).trigger(c.toggleRow)}))},s.parse=function(t,e){
var n=r.parsers[e.type]||r.parsers.alpha;return n(t)},s.getColumnData=function(e){var n=t(e),i=n.data("hide"),o=n.index();i=i||"",i=jQuery.map(i.split(","),function(t){return jQuery.trim(t)});var a={index:o,hide:{},type:n.data("type")||"alpha",name:n.data("name")||t.trim(n.text()),ignore:n.data("ignore")||!1,toggle:n.data("toggle")||!1,className:n.data("class")||null,matches:[],names:{},group:n.data("group")||null,groupName:null,isEditable:n.data("editable")};if(null!==a.group){var l=t(s.table).find('> thead > tr.footable-group-row > th[data-group="'+a.group+'"], > thead > tr.footable-group-row > td[data-group="'+a.group+'"]').first();a.groupName=s.parse(l,{type:"alpha"})}var c=parseInt(n.prev().attr("colspan")||0,10);u+=c>1?c-1:0;var p=parseInt(n.attr("colspan")||0,10),h=a.index+u;if(p>1){var f=n.data("names");f=f||"",f=f.split(",");for(var g=0;g<p;g++)a.matches.push(g+h),g<f.length&&(a.names[g+h]=f[g])}else a.matches.push(h);a.hide.default="all"===n.data("hide")||t.inArray("default",i)>=0;var m=!1;for(var v in r.breakpoints)a.hide[v]="all"===n.data("hide")||t.inArray(v,i)>=0,m=m||a.hide[v];a.hasBreakpoint=m;var b=s.raise(d.columnData,{column:{data:a,th:e}});return b.column.data},s.getViewportWidth=function(){return window.innerWidth||(document.body?document.body.offsetWidth:0)},s.calculateWidth=function(t,e){return jQuery.isFunction(r.calculateWidthOverride)?r.calculateWidthOverride(t,e):(e.viewportWidth<e.width&&(e.width=e.viewportWidth),e.parentWidth<e.width&&(e.width=e.parentWidth),e)},s.hasBreakpointColumn=function(t){for(var e in s.columns)if(s.columns[e].hide[t]){if(s.columns[e].ignore)continue;return!0}return!1},s.hasAnyBreakpointColumn=function(){for(var t in s.columns)if(s.columns[t].hasBreakpoint)return!0;return!1},s.resize=function(){var e=t(s.table);if(e.is(":visible")){if(!s.hasAnyBreakpointColumn())return void e.trigger(c.redraw);var n={width:e.width(),viewportWidth:s.getViewportWidth(),parentWidth:e.parent().width()};n=s.calculateWidth(e,n);var i=e.data("footable_info");if(e.data("footable_info",n),s.raise(d.resizing,{old:i,info:n}),!i||i&&i.width&&i.width!==n.width){for(var o,a=null,r=0;r<s.breakpoints.length;r++)if(o=s.breakpoints[r],o&&o.width&&n.width<=o.width){a=o;break}var l=null===a?"default":a.name,u=s.hasBreakpointColumn(l),p=e.data("breakpoint");e.data("breakpoint",l).removeClass("default breakpoint").removeClass(s.breakpointNames).addClass(l+(u?" breakpoint":"")),l!==p&&(e.trigger(c.redraw),s.raise(d.breakpoint,{breakpoint:l,info:n}))}s.raise(d.resized,{old:i,info:n})}},s.redraw=function(){s.addRowToggle(),s.bindToggleSelectors(),s.setColumnClasses();var e=t(s.table),n=e.data("breakpoint"),i=s.hasBreakpointColumn(n);e.find("> tbody > tr:not(."+l.detail+")").data("detail_created",!1).end().find("> thead > tr:last-child > th").each(function(){var i=s.columns[t(this).index()],o="",a=!0;t.each(i.matches,function(t,e){a||(o+=", ");var n=e+1;o+="> tbody > tr:not(."+l.detail+") > td:nth-child("+n+")",o+=", > tfoot > tr:not(."+l.detail+") > td:nth-child("+n+")",o+=", > colgroup > col:nth-child("+n+")",a=!1}),o+=', > thead > tr[data-group-row="true"] > th[data-group="'+i.group+'"]';var r=e.find(o).add(this);if(""!==n&&(i.hide[n]===!1?r.addClass("footable-visible").show():r.removeClass("footable-visible").hide()),1===e.find("> thead > tr.footable-group-row").length){var d=e.find('> thead > tr:last-child > th[data-group="'+i.group+'"]:visible, > thead > tr:last-child > th[data-group="'+i.group+'"]:visible'),c=e.find('> thead > tr.footable-group-row > th[data-group="'+i.group+'"], > thead > tr.footable-group-row > td[data-group="'+i.group+'"]'),u=0;t.each(d,function(){u+=parseInt(t(this).attr("colspan")||1,10)}),u>0?c.attr("colspan",u).show():c.hide()}}).end().find("> tbody > tr."+l.detailShow).each(function(){s.createOrUpdateDetailRow(this)}),e.find("[data-bind-name]").each(function(){s.toggleInput(this)}),e.find("> tbody > tr."+l.detailShow+":visible").each(function(){var e=t(this).next();e.hasClass(l.detail)&&(i?e.show():e.hide())}),e.find("> thead > tr > th.footable-last-column, > tbody > tr > td.footable-last-column").removeClass("footable-last-column"),e.find("> thead > tr > th.footable-first-column, > tbody > tr > td.footable-first-column").removeClass("footable-first-column"),e.find("> thead > tr, > tbody > tr").find("> th.footable-visible:last, > td.footable-visible:last").addClass("footable-last-column").end().find("> th.footable-visible:first, > td.footable-visible:first").addClass("footable-first-column"),s.raise(d.redrawn)},s.toggleDetail=function(e){var n=e.jquery?e:t(e),i=n.next();n.hasClass(l.detailShow)?(n.removeClass(l.detailShow),i.hasClass(l.detail)&&i.hide(),s.raise(d.rowCollapsed,{row:n[0]})):(s.createOrUpdateDetailRow(n[0]),n.addClass(l.detailShow).next().show(),s.raise(d.rowExpanded,{row:n[0]}))},s.removeRow=function(e){var n=e.jquery?e:t(e);n.hasClass(l.detail)&&(n=n.prev());var i=n.next();n.data("detail_created")===!0&&i.remove(),n.remove(),s.raise(d.rowRemoved)},s.appendRow=function(e){var n=e.jquery?e:t(e);t(s.table).find("tbody").append(n),s.redraw()},s.getColumnFromTdIndex=function(e){var n=null;for(var i in s.columns)if(t.inArray(e,s.columns[i].matches)>=0){n=s.columns[i];break}return n},s.createOrUpdateDetailRow=function(e){var n,i=t(e),o=i.next(),a=[];if(i.data("detail_created")===!0)return!0;if(i.is(":hidden"))return!1;if(s.raise(d.rowDetailUpdating,{row:i,detail:o}),i.find("> td:hidden").each(function(){var e=t(this).index(),n=s.getColumnFromTdIndex(e),i=n.name;if(n.ignore===!0)return!0;e in n.names&&(i=n.names[e]);var o=t(this).attr("data-bind-name");if(null!=o&&t(this).is(":empty")){var r=t("."+l.detailInnerValue+'[data-bind-value="'+o+'"]');t(this).html(t(r).contents().detach())}var d;return n.isEditable!==!1&&(n.isEditable||t(this).find(":input").length>0)&&(null==o&&(o="bind-"+t.now()+"-"+e,t(this).attr("data-bind-name",o)),d=t(this).contents().detach()),d||(d=t(this).contents().clone(!0,!0)),a.push({name:i,value:s.parse(this,n),display:d,group:n.group,groupName:n.groupName,bindName:o}),!0}),0===a.length)return!1;var c=i.find("> td:visible").length,u=o.hasClass(l.detail);return u||(o=t('<tr class="'+l.detail+'"><td class="'+l.detailCell+'"><div class="'+l.detailInner+'"></div></td></tr>'),i.after(o)),o.find("> td:first").attr("colspan",c),n=o.find("."+l.detailInner).empty(),r.createDetail(n,a,r.createGroupedDetail,r.detailSeparator,l),i.data("detail_created",!0),s.raise(d.rowDetailUpdated,{row:i,detail:o}),!u},s.raise=function(e,n){s.options.debug===!0&&t.isFunction(s.options.log)&&s.options.log(e,"event"),n=n||{};var i={ft:s};t.extend(!0,i,n);var o=t.Event(e,i);return o.ft||t.extend(!0,o,i),t(s.table).trigger(o),o},s.reset=function(){var e=t(s.table);e.removeData("footable_info").data("breakpoint","").removeClass(l.loading).removeClass(l.loaded),e.find(r.toggleSelector).unbind(c.toggleRow).unbind("click.footable"),e.find("> tbody > tr").removeClass(l.detailShow),e.find("> tbody > tr."+l.detail).remove(),s.raise(d.reset)},s.toggleInput=function(e){var n=t(e).attr("data-bind-name");if(null!=n){var i=t("."+l.detailInnerValue+'[data-bind-value="'+n+'"]');null!=i&&(t(e).is(":visible")?t(i).is(":empty")||t(e).html(t(i).contents().detach()):t(e).is(":empty")||t(i).html(t(e).contents().detach()))}},s.init(),s}e.footable={options:{delay:100,breakpoints:{phone:480,tablet:1024},parsers:{alpha:function(e){return t(e).data("value")||t.trim(t(e).html())},numeric:function(e){var n=t(e).data("value")||t(e).text().replace(/[^0-9.\-]/g,"");return n=parseFloat(n),isNaN(n)&&(n=0),n}},addRowToggle:!0,calculateWidthOverride:null,toggleSelector:" > tbody > tr:not(.footable-row-detail)",columnDataSelector:"> thead > tr:last-child > th, > thead > tr:last-child > td",detailSeparator:":",toggleHTMLElement:"<span />",createGroupedDetail:function(t){for(var e={_none:{name:null,data:[]}},n=0;n<t.length;n++){var i=t[n].group;null!==i?(i in e||(e[i]={name:t[n].groupName||t[n].group,data:[]}),e[i].data.push(t[n])):e._none.data.push(t[n])}return e},createDetail:function(e,n,i,o,a){var s=i(n);for(var r in s)if(0!==s[r].data.length){"_none"!==r&&e.append('<div class="'+a.detailInnerGroup+'">'+s[r].name+"</div>");for(var l=0;l<s[r].data.length;l++){var d=s[r].data[l].name?o:"";e.append(t("<div></div>").addClass(a.detailInnerRow).append(t("<div></div>").addClass(a.detailInnerName).append(s[r].data[l].name+d)).append(t("<div></div>").addClass(a.detailInnerValue).attr("data-bind-value",s[r].data[l].bindName).append(s[r].data[l].display)))}}},classes:{main:"footable",loading:"footable-loading",loaded:"footable-loaded",toggle:"footable-toggle",disabled:"footable-disabled",detail:"footable-row-detail",detailCell:"footable-row-detail-cell",detailInner:"footable-row-detail-inner",detailInnerRow:"footable-row-detail-row",detailInnerGroup:"footable-row-detail-group",detailInnerName:"footable-row-detail-name",detailInnerValue:"footable-row-detail-value",detailShow:"footable-detail-show"},triggers:{initialize:"footable_initialize",resize:"footable_resize",redraw:"footable_redraw",toggleRow:"footable_toggle_row",expandFirstRow:"footable_expand_first_row",expandAll:"footable_expand_all",collapseAll:"footable_collapse_all"},events:{alreadyInitialized:"footable_already_initialized",initializing:"footable_initializing",initialized:"footable_initialized",resizing:"footable_resizing",resized:"footable_resized",redrawn:"footable_redrawn",breakpoint:"footable_breakpoint",columnData:"footable_column_data",rowDetailUpdating:"footable_row_detail_updating",rowDetailUpdated:"footable_row_detail_updated",rowCollapsed:"footable_row_collapsed",rowExpanded:"footable_row_expanded",rowRemoved:"footable_row_removed",reset:"footable_reset"},debug:!1,log:null},version:{major:0,minor:5,toString:function(){return e.footable.version.major+"."+e.footable.version.minor},parse:function(t){var e=/(\d+)\.?(\d+)?\.?(\d+)?/.exec(t);return{major:parseInt(e[1],10)||0,minor:parseInt(e[2],10)||0,patch:parseInt(e[3],10)||0}}},plugins:{_validate:function(n){if(!t.isFunction(n))return e.footable.options.debug===!0&&console.error('Validation failed, expected type "function", received type "{0}".',typeof n),!1;var i=new n;return"string"!=typeof i.name?(e.footable.options.debug===!0&&console.error('Validation failed, plugin does not implement a string property called "name".',i),!1):t.isFunction(i.init)?(e.footable.options.debug===!0&&console.log('Validation succeeded for plugin "'+i.name+'".',i),!0):(e.footable.options.debug===!0&&console.error('Validation failed, plugin "'+i.name+'" does not implement a function called "init".',i),!1)},registered:[],register:function(n,i){e.footable.plugins._validate(n)&&(e.footable.plugins.registered.push(n),"object"==typeof i&&t.extend(!0,e.footable.options,i))},load:function(t){var n,i,o=[];for(i=0;i<e.footable.plugins.registered.length;i++)try{n=e.footable.plugins.registered[i],o.push(new n(t))}catch(t){e.footable.options.debug===!0&&console.error(t)}return o},init:function(t){for(var n=0;n<t.plugins.length;n++)try{t.plugins[n].init(t)}catch(t){e.footable.options.debug===!0&&console.error(t)}}}};var a=0;t.fn.footable=function(n){n=n||{},n.breakpoints&&(e.footable.options.breakpoints={});var i=t.extend(!0,{},e.footable.options,n);return this.each(function(){a++;var e=new o(this,i,a);t(this).data("footable",e)})}}(jQuery,window),!function(t,e){"function"==typeof define&&define.amd?define([],function(){return t.svg4everybody=e()}):"object"==typeof exports?module.exports=e():t.svg4everybody=e()}(this,function(){function t(t,e){if(e){var n=!t.getAttribute("viewBox")&&e.getAttribute("viewBox"),i=document.createDocumentFragment(),o=e.cloneNode(!0);for(n&&t.setAttribute("viewBox",n);o.childNodes.length;)i.appendChild(o.firstChild);t.appendChild(i)}}function e(e){e.onreadystatechange=function(){if(4===e.readyState){var n=document.createElement("x");n.innerHTML=e.responseText,e.s.splice(0).map(function(e){t(e[0],n.querySelector("#"+e[1].replace(/(\W)/g,"\\$1")))})}},e.onreadystatechange()}function n(n){function i(){for(var n,d,c=0;c<o.length;)if(n=o[c],d=n.parentNode,d&&/svg/i.test(d.nodeName)){var u=n.getAttribute("xlink:href");if(a&&(!s||s(u,d,n))){var p=u.split("#"),h=p[0],f=p[1];if(d.removeChild(n),h.length){var g=l[h]=l[h]||new XMLHttpRequest;g.s||(g.s=[],g.open("GET",h),g.send()),g.s.push([d,f]),e(g)}else t(d,document.getElementById(f))}}else c+=1;r(i,17)}n=n||{};var o=document.getElementsByTagName("use"),a="polyfill"in n?n.polyfill:/\bEdge\/12\b|\bTrident\/[567]\b|\bVersion\/7.0 Safari\b/.test(navigator.userAgent)||(navigator.userAgent.match(/AppleWebKit\/(\d+)/)||[])[1]<537,s=n.validate,r=window.requestAnimationFrame||setTimeout,l={};a&&i()}return n}),!function(t){function e(){t[n].glbl||(r={$wndw:t(window),$docu:t(document),$html:t("html"),$body:t("body")},o={},a={},s={},t.each([o,a,s],function(t,e){e.add=function(t){t=t.split(" ");for(var n=0,i=t.length;i>n;n++)e[t[n]]=e.mm(t[n])}}),o.mm=function(t){return"mm-"+t},o.add("wrapper menu panels panel nopanel current highest opened subopened navbar hasnavbar title btn prev next listview nolistview inset vertical selected divider spacer hidden fullsubopen"),o.umm=function(t){return"mm-"==t.slice(0,3)&&(t=t.slice(3)),t},a.mm=function(t){return"mm-"+t},a.add("parent sub"),s.mm=function(t){return t+".mm"},s.add("transitionend webkitTransitionEnd click scroll keydown mousedown mouseup touchstart touchmove touchend orientationchange"),t[n]._c=o,t[n]._d=a,t[n]._e=s,t[n].glbl=r)}var n="mmenu",i="5.6.1";if(!(t[n]&&t[n].version>i)){t[n]=function(t,e,n){this.$menu=t,this._api=["bind","init","update","setSelected","getInstance","openPanel","closePanel","closeAllPanels"],this.opts=e,this.conf=n,this.vars={},this.cbck={},"function"==typeof this.___deprecated&&this.___deprecated(),this._initMenu(),this._initAnchors();var i=this.$pnls.children();return this._initAddons(),this.init(i),"function"==typeof this.___debug&&this.___debug(),this},t[n].version=i,t[n].addons={},t[n].uniqueId=0,t[n].defaults={extensions:[],navbar:{add:!0,title:"Menu",titleLink:"panel"},onClick:{setSelected:!0},slidingSubmenus:!0},t[n].configuration={classNames:{divider:"Divider",inset:"Inset",panel:"Panel",selected:"Selected",spacer:"Spacer",vertical:"Vertical"},clone:!1,openingInterval:25,panelNodetype:"ul, ol, div",transitionDuration:400},t[n].prototype={init:function(t){t=t.not("."+o.nopanel),t=this._initPanels(t),this.trigger("init",t),this.trigger("update")},update:function(){this.trigger("update")},setSelected:function(t){this.$menu.find("."+o.listview).children().removeClass(o.selected),t.addClass(o.selected),this.trigger("setSelected",t)},openPanel:function(e){var i=e.parent(),a=this;if(i.hasClass(o.vertical)){var s=i.parents("."+o.subopened);if(s.length)return void this.openPanel(s.first());i.addClass(o.opened),this.trigger("openPanel",e),this.trigger("openingPanel",e),this.trigger("openedPanel",e)}else{if(e.hasClass(o.current))return;var r=this.$pnls.children("."+o.panel),l=r.filter("."+o.current);r.removeClass(o.highest).removeClass(o.current).not(e).not(l).not("."+o.vertical).addClass(o.hidden),t[n].support.csstransitions||l.addClass(o.hidden),e.hasClass(o.opened)?e.nextAll("."+o.opened).addClass(o.highest).removeClass(o.opened).removeClass(o.subopened):(e.addClass(o.highest),l.addClass(o.subopened)),e.removeClass(o.hidden).addClass(o.current),a.trigger("openPanel",e),setTimeout(function(){e.removeClass(o.subopened).addClass(o.opened),a.trigger("openingPanel",e),a.__transitionend(e,function(){a.trigger("openedPanel",e)},a.conf.transitionDuration)},this.conf.openingInterval)}},closePanel:function(t){var e=t.parent();e.hasClass(o.vertical)&&(e.removeClass(o.opened),this.trigger("closePanel",t),this.trigger("closingPanel",t),this.trigger("closedPanel",t))},closeAllPanels:function(){this.$menu.find("."+o.listview).children().removeClass(o.selected).filter("."+o.vertical).removeClass(o.opened);var t=this.$pnls.children("."+o.panel),e=t.first();this.$pnls.children("."+o.panel).not(e).removeClass(o.subopened).removeClass(o.opened).removeClass(o.current).removeClass(o.highest).addClass(o.hidden),this.openPanel(e)},togglePanel:function(t){var e=t.parent();e.hasClass(o.vertical)&&this[e.hasClass(o.opened)?"closePanel":"openPanel"](t)},getInstance:function(){return this},bind:function(t,e){this.cbck[t]=this.cbck[t]||[],this.cbck[t].push(e)},trigger:function(){var t=this,e=Array.prototype.slice.call(arguments),n=e.shift();if(this.cbck[n])for(var i=0,o=this.cbck[n].length;o>i;i++)this.cbck[n][i].apply(t,e)},_initMenu:function(){this.$menu.attr("id",this.$menu.attr("id")||this.__getUniqueId()),this.conf.clone&&(this.$menu=this.$menu.clone(!0),this.$menu.add(this.$menu.find("[id]")).filter("[id]").each(function(){t(this).attr("id",o.mm(t(this).attr("id")))})),this.$menu.contents().each(function(){3==t(this)[0].nodeType&&t(this).remove()}),this.$pnls=t('<div class="'+o.panels+'" />').append(this.$menu.children(this.conf.panelNodetype)).prependTo(this.$menu),this.$menu.parent().addClass(o.wrapper);var e=[o.menu];this.opts.slidingSubmenus||e.push(o.vertical),this.opts.extensions=this.opts.extensions.length?"mm-"+this.opts.extensions.join(" mm-"):"",this.opts.extensions&&e.push(this.opts.extensions),this.$menu.addClass(e.join(" "))},_initPanels:function(e){var n=this,i=this.__findAddBack(e,"ul, ol");this.__refactorClass(i,this.conf.classNames.inset,"inset").addClass(o.nolistview+" "+o.nopanel),i.not("."+o.nolistview).addClass(o.listview);var s=this.__findAddBack(e,"."+o.listview).children();this.__refactorClass(s,this.conf.classNames.selected,"selected"),this.__refactorClass(s,this.conf.classNames.divider,"divider"),this.__refactorClass(s,this.conf.classNames.spacer,"spacer"),this.__refactorClass(this.__findAddBack(e,"."+this.conf.classNames.panel),this.conf.classNames.panel,"panel");var r=t(),l=e.add(e.find("."+o.panel)).add(this.__findAddBack(e,"."+o.listview).children().children(this.conf.panelNodetype)).not("."+o.nopanel);this.__refactorClass(l,this.conf.classNames.vertical,"vertical"),this.opts.slidingSubmenus||l.addClass(o.vertical),l.each(function(){var e=t(this),i=e;e.is("ul, ol")?(e.wrap('<div class="'+o.panel+'" />'),i=e.parent()):i.addClass(o.panel);var a=e.attr("id");e.removeAttr("id"),i.attr("id",a||n.__getUniqueId()),e.hasClass(o.vertical)&&(e.removeClass(n.conf.classNames.vertical),i.add(i.parent()).addClass(o.vertical)),r=r.add(i)});var d=t("."+o.panel,this.$menu);r.each(function(e){var i,s,r=t(this),l=r.parent(),d=l.children("a, span").first();if(l.is("."+o.panels)||(l.data(a.sub,r),r.data(a.parent,l)),l.children("."+o.next).length||l.parent().is("."+o.listview)&&(i=r.attr("id"),s=t('<a class="'+o.next+'" href="#'+i+'" data-target="#'+i+'" />').insertBefore(d),d.is("span")&&s.addClass(o.fullsubopen)),!r.children("."+o.navbar).length&&!l.hasClass(o.vertical)){l.parent().is("."+o.listview)?l=l.closest("."+o.panel):(d=l.closest("."+o.panel).find('a[href="#'+r.attr("id")+'"]').first(),l=d.closest("."+o.panel));var c=t('<div class="'+o.navbar+'" />');if(l.length){switch(i=l.attr("id"),n.opts.navbar.titleLink){case"anchor":_url=d.attr("href");break;case"panel":case"parent":_url="#"+i;break;default:_url=!1}c.append('<a class="'+o.btn+" "+o.prev+'" href="#'+i+'" data-target="#'+i+'" />').append(t('<a class="'+o.title+'"'+(_url?' href="'+_url+'"':"")+" />").html(d.html())).prependTo(r),n.opts.navbar.add&&r.addClass(o.hasnavbar)}else n.opts.navbar.title&&(c.append('<a class="'+o.title+'">'+n.opts.navbar.title+"</a>").prependTo(r),n.opts.navbar.add&&r.addClass(o.hasnavbar))}});var c=this.__findAddBack(e,"."+o.listview).children("."+o.selected).removeClass(o.selected).last().addClass(o.selected);c.add(c.parentsUntil("."+o.menu,"li")).filter("."+o.vertical).addClass(o.opened).end().each(function(){t(this).parentsUntil("."+o.menu,"."+o.panel).not("."+o.vertical).first().addClass(o.opened).parentsUntil("."+o.menu,"."+o.panel).not("."+o.vertical).first().addClass(o.opened).addClass(o.subopened)}),c.children("."+o.panel).not("."+o.vertical).addClass(o.opened).parentsUntil("."+o.menu,"."+o.panel).not("."+o.vertical).first().addClass(o.opened).addClass(o.subopened);var u=d.filter("."+o.opened);return u.length||(u=r.first()),u.addClass(o.opened).last().addClass(o.current),r.not("."+o.vertical).not(u.last()).addClass(o.hidden).end().filter(function(){return!t(this).parent().hasClass(o.panels)}).appendTo(this.$pnls),r},_initAnchors:function(){var e=this;r.$body.on(s.click+"-oncanvas","a[href]",function(i){var a=t(this),s=!1,r=e.$menu.find(a).length;for(var l in t[n].addons)if(t[n].addons[l].clickAnchor.call(e,a,r)){s=!0;break}var d=a.attr("href");if(!s&&r&&d.length>1&&"#"==d.slice(0,1))try{var c=t(d,e.$menu);c.is("."+o.panel)&&(s=!0,e[a.parent().hasClass(o.vertical)?"togglePanel":"openPanel"](c))}catch(t){}if(s&&i.preventDefault(),!s&&r&&a.is("."+o.listview+" > li > a")&&!a.is('[rel="external"]')&&!a.is('[target="_blank"]')){e.__valueOrFn(e.opts.onClick.setSelected,a)&&e.setSelected(t(i.target).parent());var u=e.__valueOrFn(e.opts.onClick.preventDefault,a,"#"==d.slice(0,1));u&&i.preventDefault(),e.__valueOrFn(e.opts.onClick.close,a,u)&&e.close()}})},_initAddons:function(){var e;for(e in t[n].addons)t[n].addons[e].add.call(this),t[n].addons[e].add=function(){};for(e in t[n].addons)t[n].addons[e].setup.call(this)},_getOriginalMenuId:function(){var t=this.$menu.attr("id");return t&&t.length&&this.conf.clone&&(t=o.umm(t)),t},__api:function(){var e=this,n={};return t.each(this._api,function(t){var i=this;n[i]=function(){var t=e[i].apply(e,arguments);return"undefined"==typeof t?n:t}}),n},__valueOrFn:function(t,e,n){return"function"==typeof t?t.call(e[0]):"undefined"==typeof t&&"undefined"!=typeof n?n:t},__refactorClass:function(t,e,n){return t.filter("."+e).removeClass(e).addClass(o[n])},__findAddBack:function(t,e){return t.find(e).add(t.filter(e))},__filterListItems:function(t){return t.not("."+o.divider).not("."+o.hidden)},__transitionend:function(t,e,n){var i=!1,o=function(){i||e.call(t[0]),i=!0};t.one(s.transitionend,o),t.one(s.webkitTransitionEnd,o),setTimeout(o,1.1*n)},__getUniqueId:function(){return o.mm(t[n].uniqueId++)}},t.fn[n]=function(i,o){return e(),i=t.extend(!0,{},t[n].defaults,i),o=t.extend(!0,{},t[n].configuration,o),this.each(function(){var e=t(this);if(!e.data(n)){var a=new t[n](e,i,o);a.$menu.data(n,a.__api())}})},t[n].support={touch:"ontouchstart"in window||navigator.msMaxTouchPoints||!1,csstransitions:function(){if("undefined"!=typeof Modernizr&&"undefined"!=typeof Modernizr.csstransitions)return Modernizr.csstransitions;var t=document.body||document.documentElement,e=t.style,n="transition";if("string"==typeof e[n])return!0;var i=["Moz","webkit","Webkit","Khtml","O","ms"];n=n.charAt(0).toUpperCase()+n.substr(1);for(var o=0;o<i.length;o++)if("string"==typeof e[i[o]+n])return!0;return!1}()};var o,a,s,r}}(jQuery),function(t){var e="mmenu",n="offCanvas";t[e].addons[n]={setup:function(){if(this.opts[n]){var o=this.opts[n],a=this.conf[n];s=t[e].glbl,this._api=t.merge(this._api,["open","close","setPage"]),("top"==o.position||"bottom"==o.position)&&(o.zposition="front"),"string"!=typeof a.pageSelector&&(a.pageSelector="> "+a.pageNodetype),s.$allMenus=(s.$allMenus||t()).add(this.$menu),this.vars.opened=!1;var r=[i.offcanvas];"left"!=o.position&&r.push(i.mm(o.position)),"back"!=o.zposition&&r.push(i.mm(o.zposition)),this.$menu.addClass(r.join(" ")).parent().removeClass(i.wrapper),this.setPage(s.$page),this._initBlocker(),this["_initWindow_"+n](),this.$menu[a.menuInjectMethod+"To"](a.menuWrapperSelector);var l=window.location.hash;if(l){var d=this._getOriginalMenuId();d&&d==l.slice(1)&&this.open()}}},add:function(){i=t[e]._c,o=t[e]._d,a=t[e]._e,i.add("offcanvas slideout blocking modal background opening blocker page"),o.add("style"),a.add("resize")},clickAnchor:function(t,e){if(!this.opts[n])return!1;var i=this._getOriginalMenuId();return i&&t.is('[href="#'+i+'"]')?(this.open(),!0):s.$page?(i=s.$page.first().attr("id"),!(!i||!t.is('[href="#'+i+'"]')||(this.close(),0))):void 0}},t[e].defaults[n]={position:"left",zposition:"back",blockUI:!0,moveBackground:!0},t[e].configuration[n]={pageNodetype:"div",pageSelector:null,noPageSelector:[],wrapPageIfNeeded:!0,menuWrapperSelector:"body",menuInjectMethod:"prepend"},t[e].prototype.open=function(){if(!this.vars.opened){var t=this;this._openSetup(),setTimeout(function(){t._openFinish()},this.conf.openingInterval),this.trigger("open")}},t[e].prototype._openSetup=function(){var e=this,r=this.opts[n];this.closeAllOthers(),s.$page.each(function(){t(this).data(o.style,t(this).attr("style")||"")}),s.$wndw.trigger(a.resize+"-"+n,[!0]);var l=[i.opened];r.blockUI&&l.push(i.blocking),"modal"==r.blockUI&&l.push(i.modal),r.moveBackground&&l.push(i.background),"left"!=r.position&&l.push(i.mm(this.opts[n].position)),"back"!=r.zposition&&l.push(i.mm(this.opts[n].zposition)),this.opts.extensions&&l.push(this.opts.extensions),s.$html.addClass(l.join(" ")),setTimeout(function(){e.vars.opened=!0},this.conf.openingInterval),this.$menu.addClass(i.current+" "+i.opened)},t[e].prototype._openFinish=function(){var t=this;this.__transitionend(s.$page.first(),function(){t.trigger("opened")},this.conf.transitionDuration),s.$html.addClass(i.opening),this.trigger("opening")},t[e].prototype.close=function(){if(this.vars.opened){var e=this;this.__transitionend(s.$page.first(),function(){e.$menu.removeClass(i.current).removeClass(i.opened),s.$html.removeClass(i.opened).removeClass(i.blocking).removeClass(i.modal).removeClass(i.background).removeClass(i.mm(e.opts[n].position)).removeClass(i.mm(e.opts[n].zposition)),e.opts.extensions&&s.$html.removeClass(e.opts.extensions),s.$page.each(function(){t(this).attr("style",t(this).data(o.style))}),e.vars.opened=!1,e.trigger("closed")},this.conf.transitionDuration),s.$html.removeClass(i.opening),this.trigger("close"),this.trigger("closing")}},t[e].prototype.closeAllOthers=function(){s.$allMenus.not(this.$menu).each(function(){var n=t(this).data(e);n&&n.close&&n.close()})},t[e].prototype.setPage=function(e){var o=this,a=this.conf[n];e&&e.length||(e=s.$body.find(a.pageSelector),a.noPageSelector.length&&(e=e.not(a.noPageSelector.join(", "))),e.length>1&&a.wrapPageIfNeeded&&(e=e.wrapAll("<"+this.conf[n].pageNodetype+" />").parent())),e.each(function(){t(this).attr("id",t(this).attr("id")||o.__getUniqueId())}),e.addClass(i.page+" "+i.slideout),s.$page=e,this.trigger("setPage",e)},t[e].prototype["_initWindow_"+n]=function(){s.$wndw.off(a.keydown+"-"+n).on(a.keydown+"-"+n,function(t){return s.$html.hasClass(i.opened)&&9==t.keyCode?(t.preventDefault(),!1):void 0});var t=0;s.$wndw.off(a.resize+"-"+n).on(a.resize+"-"+n,function(e,n){if(1==s.$page.length&&(n||s.$html.hasClass(i.opened))){var o=s.$wndw.height();(n||o!=t)&&(t=o,s.$page.css("minHeight",o))}})},t[e].prototype._initBlocker=function(){var e=this;this.opts[n].blockUI&&(s.$blck||(s.$blck=t('<div id="'+i.blocker+'" class="'+i.slideout+'" />')),s.$blck.appendTo(s.$body).off(a.touchstart+"-"+n+" "+a.touchmove+"-"+n).on(a.touchstart+"-"+n+" "+a.touchmove+"-"+n,function(t){t.preventDefault(),t.stopPropagation(),s.$blck.trigger(a.mousedown+"-"+n)}).off(a.mousedown+"-"+n).on(a.mousedown+"-"+n,function(t){t.preventDefault(),s.$html.hasClass(i.modal)||(e.closeAllOthers(),e.close())}))};var i,o,a,s}(jQuery),function(t){var e="mmenu",n="scrollBugFix";t[e].addons[n]={setup:function(){var o=this,r=this.opts[n];if(this.conf[n],s=t[e].glbl,t[e].support.touch&&this.opts.offCanvas&&this.opts.offCanvas.modal&&("boolean"==typeof r&&(r={fix:r}),"object"!=typeof r&&(r={}),r=this.opts[n]=t.extend(!0,{},t[e].defaults[n],r),r.fix)){var l=this.$menu.attr("id"),d=!1;this.bind("opening",function(){this.$pnls.children("."+i.current).scrollTop(0)}),s.$docu.on(a.touchmove,function(t){o.vars.opened&&t.preventDefault()}),s.$body.on(a.touchstart,"#"+l+"> ."+i.panels+"> ."+i.current,function(t){o.vars.opened&&(d||(d=!0,0===t.currentTarget.scrollTop?t.currentTarget.scrollTop=1:t.currentTarget.scrollHeight===t.currentTarget.scrollTop+t.currentTarget.offsetHeight&&(t.currentTarget.scrollTop-=1),d=!1))}).on(a.touchmove,"#"+l+"> ."+i.panels+"> ."+i.current,function(e){o.vars.opened&&t(this)[0].scrollHeight>t(this).innerHeight()&&e.stopPropagation()}),s.$wndw.on(a.orientationchange,function(){o.$pnls.children("."+i.current).scrollTop(0).css({"-webkit-overflow-scrolling":"auto"}).css({"-webkit-overflow-scrolling":"touch"})})}},add:function(){i=t[e]._c,o=t[e]._d,a=t[e]._e},clickAnchor:function(t,e){}},t[e].defaults[n]={fix:!0};var i,o,a,s}(jQuery),function(t){var e="mmenu",n="autoHeight";t[e].addons[n]={setup:function(){if(this.opts.offCanvas){var o=this.opts[n];if(this.conf[n],s=t[e].glbl,"boolean"==typeof o&&o&&(o={height:"auto"}),"string"==typeof o&&(o={height:o}),"object"!=typeof o&&(o={}),o=this.opts[n]=t.extend(!0,{},t[e].defaults[n],o),"auto"==o.height||"highest"==o.height){this.$menu.addClass(i.autoheight);var a=function(e){if(this.vars.opened){var n=parseInt(this.$pnls.css("top"),10)||0,a=parseInt(this.$pnls.css("bottom"),10)||0,s=0;this.$menu.addClass(i.measureheight),"auto"==o.height?(e=e||this.$pnls.children("."+i.current),e.is("."+i.vertical)&&(e=e.parents("."+i.panel).not("."+i.vertical).first()),s=e.outerHeight()):"highest"==o.height&&this.$pnls.children().each(function(){var e=t(this);e.is("."+i.vertical)&&(e=e.parents("."+i.panel).not("."+i.vertical).first()),s=Math.max(s,e.outerHeight())}),this.$menu.height(s+n+a).removeClass(i.measureheight)}};this.bind("opening",a),"highest"==o.height&&this.bind("init",a),"auto"==o.height&&(this.bind("update",a),this.bind("openPanel",a),this.bind("closePanel",a))}}},add:function(){i=t[e]._c,o=t[e]._d,a=t[e]._e,i.add("autoheight measureheight"),a.add("resize")},clickAnchor:function(t,e){}},t[e].defaults[n]={height:"default"};var i,o,a,s}(jQuery),function(t){var e="mmenu",n="backButton";t[e].addons[n]={setup:function(){if(this.opts.offCanvas){var o=this,a=this.opts[n];if(this.conf[n],s=t[e].glbl,"boolean"==typeof a&&(a={close:a}),"object"!=typeof a&&(a={}),a=t.extend(!0,{},t[e].defaults[n],a),a.close){var r="#"+o.$menu.attr("id");this.bind("opened",function(t){location.hash!=r&&history.pushState(null,document.title,r)}),t(window).on("popstate",function(t){s.$html.hasClass(i.opened)?(t.stopPropagation(),o.close()):location.hash==r&&(t.stopPropagation(),o.open())})}}},add:function(){return window.history&&window.history.pushState?(i=t[e]._c,o=t[e]._d,void(a=t[e]._e)):void(t[e].addons[n].setup=function(){})},clickAnchor:function(t,e){}},t[e].defaults[n]={close:!1};var i,o,a,s}(jQuery),function(t){var e="mmenu",n="columns";t[e].addons[n]={setup:function(){var o=this.opts[n];if(this.conf[n],s=t[e].glbl,"boolean"==typeof o&&(o={add:o}),"number"==typeof o&&(o={add:!0,visible:o}),"object"!=typeof o&&(o={}),"number"==typeof o.visible&&(o.visible={min:o.visible,max:o.visible}),o=this.opts[n]=t.extend(!0,{},t[e].defaults[n],o),o.add){o.visible.min=Math.max(1,Math.min(6,o.visible.min)),o.visible.max=Math.max(o.visible.min,Math.min(6,o.visible.max)),this.$menu.addClass(i.columns);for(var a=this.opts.offCanvas?this.$menu.add(s.$html):this.$menu,r=[],l=0;l<=o.visible.max;l++)r.push(i.columns+"-"+l);r=r.join(" ");var d=function(t){p.call(this,this.$pnls.children("."+i.current)),o.hideNavbars&&t.removeClass(i.hasnavbar)},c=function(){var t=this.$pnls.children("."+i.panel).filter("."+i.opened).length;t=Math.min(o.visible.max,Math.max(o.visible.min,t)),a.removeClass(r).addClass(i.columns+"-"+t)},u=function(){this.opts.offCanvas&&s.$html.removeClass(r)},p=function(e){this.$pnls.children("."+i.panel).removeClass(r).filter("."+i.subopened).removeClass(i.hidden).add(e).slice(-o.visible.max).each(function(e){t(this).addClass(i.columns+"-"+e)})};this.bind("open",c),this.bind("close",u),this.bind("init",d),this.bind("openPanel",p),this.bind("openingPanel",c),this.bind("openedPanel",c),this.opts.offCanvas||c.call(this)}},add:function(){i=t[e]._c,o=t[e]._d,a=t[e]._e,i.add("columns")},clickAnchor:function(e,o){
if(!this.opts[n].add)return!1;if(o){var a=e.attr("href");if(a.length>1&&"#"==a.slice(0,1))try{var s=t(a,this.$menu);if(s.is("."+i.panel))for(var r=parseInt(e.closest("."+i.panel).attr("class").split(i.columns+"-")[1].split(" ")[0],10)+1;r!==!1;){var l=this.$pnls.children("."+i.columns+"-"+r);if(!l.length){r=!1;break}r++,l.removeClass(i.subopened).removeClass(i.opened).removeClass(i.current).removeClass(i.highest).addClass(i.hidden)}}catch(t){}}}},t[e].defaults[n]={add:!1,visible:{min:1,max:3},hideNavbars:!1};var i,o,a,s}(jQuery),function(t){var e="mmenu",n="counters";t[e].addons[n]={setup:function(){var a=this,r=this.opts[n];this.conf[n],s=t[e].glbl,"boolean"==typeof r&&(r={add:r,update:r}),"object"!=typeof r&&(r={}),r=this.opts[n]=t.extend(!0,{},t[e].defaults[n],r),this.bind("init",function(e){this.__refactorClass(t("em",e),this.conf.classNames[n].counter,"counter")}),r.add&&this.bind("init",function(e){e.each(function(){var e=t(this).data(o.parent);e&&(e.children("em."+i.counter).length||e.prepend(t('<em class="'+i.counter+'" />')))})}),r.update&&this.bind("update",function(){this.$pnls.find("."+i.panel).each(function(){var e=t(this),n=e.data(o.parent);if(n){var s=n.children("em."+i.counter);s.length&&(e=e.children("."+i.listview),e.length&&s.html(a.__filterListItems(e.children()).length))}})})},add:function(){i=t[e]._c,o=t[e]._d,a=t[e]._e,i.add("counter search noresultsmsg")},clickAnchor:function(t,e){}},t[e].defaults[n]={add:!1,update:!1},t[e].configuration.classNames[n]={counter:"Counter"};var i,o,a,s}(jQuery),function(t){var e="mmenu",n="dividers";t[e].addons[n]={setup:function(){var o=this,r=this.opts[n];if(this.conf[n],s=t[e].glbl,"boolean"==typeof r&&(r={add:r,fixed:r}),"object"!=typeof r&&(r={}),r=this.opts[n]=t.extend(!0,{},t[e].defaults[n],r),this.bind("init",function(e){this.__refactorClass(t("li",this.$menu),this.conf.classNames[n].collapsed,"collapsed")}),r.add&&this.bind("init",function(e){var n;switch(r.addTo){case"panels":n=e;break;default:n=t(r.addTo,this.$pnls).filter("."+i.panel)}t("."+i.divider,n).remove(),n.find("."+i.listview).not("."+i.vertical).each(function(){var e="";o.__filterListItems(t(this).children()).each(function(){var n=t.trim(t(this).children("a, span").text()).slice(0,1).toLowerCase();n!=e&&n.length&&(e=n,t('<li class="'+i.divider+'">'+n+"</li>").insertBefore(this))})})}),r.collapse&&this.bind("init",function(e){t("."+i.divider,e).each(function(){var e=t(this),n=e.nextUntil("."+i.divider,"."+i.collapsed);n.length&&(e.children("."+i.subopen).length||(e.wrapInner("<span />"),e.prepend('<a href="#" class="'+i.subopen+" "+i.fullsubopen+'" />')))})}),r.fixed){var l=function(e){e=e||this.$pnls.children("."+i.current);var n=e.find("."+i.divider).not("."+i.hidden);if(n.length){this.$menu.addClass(i.hasdividers);var o=e.scrollTop()||0,a="";e.is(":visible")&&e.find("."+i.divider).not("."+i.hidden).each(function(){t(this).position().top+o<o+1&&(a=t(this).text())}),this.$fixeddivider.text(a)}else this.$menu.removeClass(i.hasdividers)};this.$fixeddivider=t('<ul class="'+i.listview+" "+i.fixeddivider+'"><li class="'+i.divider+'"></li></ul>').prependTo(this.$pnls).children(),this.bind("openPanel",l),this.bind("update",l),this.bind("init",function(e){e.off(a.scroll+"-dividers "+a.touchmove+"-dividers").on(a.scroll+"-dividers "+a.touchmove+"-dividers",function(e){l.call(o,t(this))})})}},add:function(){i=t[e]._c,o=t[e]._d,a=t[e]._e,i.add("collapsed uncollapsed fixeddivider hasdividers"),a.add("scroll")},clickAnchor:function(t,e){if(this.opts[n].collapse&&e){var o=t.parent();if(o.is("."+i.divider)){var a=o.nextUntil("."+i.divider,"."+i.collapsed);return o.toggleClass(i.opened),a[o.hasClass(i.opened)?"addClass":"removeClass"](i.uncollapsed),!0}}return!1}},t[e].defaults[n]={add:!1,addTo:"panels",fixed:!1,collapse:!1},t[e].configuration.classNames[n]={collapsed:"Collapsed"};var i,o,a,s}(jQuery),function(t){function e(t,e,n){return e>t&&(t=e),t>n&&(t=n),t}var n="mmenu",i="dragOpen";t[n].addons[i]={setup:function(){if(this.opts.offCanvas){var a=this,s=this.opts[i],l=this.conf[i];if(r=t[n].glbl,"boolean"==typeof s&&(s={open:s}),"object"!=typeof s&&(s={}),s=this.opts[i]=t.extend(!0,{},t[n].defaults[i],s),s.open){var d,c,u,p,h,f={},g=0,m=!1,v=!1,b=0,y=0;switch(this.opts.offCanvas.position){case"left":case"right":f.events="panleft panright",f.typeLower="x",f.typeUpper="X",v="width";break;case"top":case"bottom":f.events="panup pandown",f.typeLower="y",f.typeUpper="Y",v="height"}switch(this.opts.offCanvas.position){case"right":case"bottom":f.negative=!0,p=function(t){t>=r.$wndw[v]()-s.maxStartPos&&(g=1)};break;default:f.negative=!1,p=function(t){t<=s.maxStartPos&&(g=1)}}switch(this.opts.offCanvas.position){case"left":f.open_dir="right",f.close_dir="left";break;case"right":f.open_dir="left",f.close_dir="right";break;case"top":f.open_dir="down",f.close_dir="up";break;case"bottom":f.open_dir="up",f.close_dir="down"}switch(this.opts.offCanvas.zposition){case"front":h=function(){return this.$menu};break;default:h=function(){return t("."+o.slideout)}}var w=this.__valueOrFn(s.pageNode,this.$menu,r.$page);"string"==typeof w&&(w=t(w));var x=new Hammer(w[0],s.vendors.hammer);x.on("panstart",function(t){p(t.center[f.typeLower]),r.$slideOutNodes=h(),m=f.open_dir}).on(f.events+" panend",function(t){g>0&&t.preventDefault()}).on(f.events,function(t){if(d=t["delta"+f.typeUpper],f.negative&&(d=-d),d!=b&&(m=d>=b?f.open_dir:f.close_dir),b=d,b>s.threshold&&1==g){if(r.$html.hasClass(o.opened))return;g=2,a._openSetup(),a.trigger("opening"),r.$html.addClass(o.dragging),y=e(r.$wndw[v]()*l[v].perc,l[v].min,l[v].max)}2==g&&(c=e(b,10,y)-("front"==a.opts.offCanvas.zposition?y:0),f.negative&&(c=-c),u="translate"+f.typeUpper+"("+c+"px )",r.$slideOutNodes.css({"-webkit-transform":"-webkit-"+u,transform:u}))}).on("panend",function(t){2==g&&(r.$html.removeClass(o.dragging),r.$slideOutNodes.css("transform",""),a[m==f.open_dir?"_openFinish":"close"]()),g=0})}}},add:function(){return"function"!=typeof Hammer||Hammer.VERSION<2?void(t[n].addons[i].setup=function(){}):(o=t[n]._c,a=t[n]._d,s=t[n]._e,void o.add("dragging"))},clickAnchor:function(t,e){}},t[n].defaults[i]={open:!1,maxStartPos:100,threshold:50,vendors:{hammer:{}}},t[n].configuration[i]={width:{perc:.8,min:140,max:440},height:{perc:.8,min:140,max:880}};var o,a,s,r}(jQuery),function(t){var e="mmenu",n="dropdown";t[e].addons[n]={setup:function(){if(this.opts.offCanvas){var r=this,l=this.opts[n],d=this.conf[n];if(s=t[e].glbl,"boolean"==typeof l&&l&&(l={drop:l}),"object"!=typeof l&&(l={}),"string"==typeof l.position&&(l.position={of:l.position}),l=this.opts[n]=t.extend(!0,{},t[e].defaults[n],l),l.drop){if("string"!=typeof l.position.of){var c=this.$menu.attr("id");c&&c.length&&(this.conf.clone&&(c=i.umm(c)),l.position.of='[href="#'+c+'"]')}if("string"==typeof l.position.of){var u=t(l.position.of);if(u.length){this.$menu.addClass(i.dropdown),l.tip&&this.$menu.addClass(i.tip),l.event=l.event.split(" "),1==l.event.length&&(l.event[1]=l.event[0]),"hover"==l.event[0]&&u.on(a.mouseenter+"-dropdown",function(){r.open()}),"hover"==l.event[1]&&this.$menu.on(a.mouseleave+"-dropdown",function(){r.close()}),this.bind("opening",function(){this.$menu.data(o.style,this.$menu.attr("style")||""),s.$html.addClass(i.dropdown)}),this.bind("closed",function(){this.$menu.attr("style",this.$menu.data(o.style)),s.$html.removeClass(i.dropdown)});var p=function(o,a){var r=a[0],c=a[1],p="x"==o?"scrollLeft":"scrollTop",h="x"==o?"outerWidth":"outerHeight",f="x"==o?"left":"top",g="x"==o?"right":"bottom",m="x"==o?"width":"height",v="x"==o?"maxWidth":"maxHeight",b=null,y=s.$wndw[p](),w=u.offset()[f]-=y,x=w+u[h](),C=s.$wndw[m](),_=d.offset.button[o]+d.offset.viewport[o];if(l.position[o])switch(l.position[o]){case"left":case"bottom":b="after";break;case"right":case"top":b="before"}null===b&&(b=C/2>w+(x-w)/2?"after":"before");var k,S;return"after"==b?(k="x"==o?w:x,S=C-(k+_),r[f]=k+d.offset.button[o],r[g]="auto",c.push(i["x"==o?"tipleft":"tiptop"])):(k="x"==o?x:w,S=k-_,r[g]="calc( 100% - "+(k-d.offset.button[o])+"px )",r[f]="auto",c.push(i["x"==o?"tipright":"tipbottom"])),r[v]=Math.min(t[e].configuration[n][m].max,S),[r,c]},h=function(t){if(this.vars.opened){this.$menu.attr("style",this.$menu.data(o.style));var e=[{},[]];e=p.call(this,"y",e),e=p.call(this,"x",e),this.$menu.css(e[0]),l.tip&&this.$menu.removeClass(i.tipleft+" "+i.tipright+" "+i.tiptop+" "+i.tipbottom).addClass(e[1].join(" "))}};this.bind("opening",h),s.$wndw.on(a.resize+"-dropdown",function(t){h.call(r)}),this.opts.offCanvas.blockUI||s.$wndw.on(a.scroll+"-dropdown",function(t){h.call(r)})}}}}},add:function(){i=t[e]._c,o=t[e]._d,a=t[e]._e,i.add("dropdown tip tipleft tipright tiptop tipbottom"),a.add("mouseenter mouseleave resize scroll")},clickAnchor:function(t,e){}},t[e].defaults[n]={drop:!1,event:"click",position:{},tip:!0},t[e].configuration[n]={offset:{button:{x:-10,y:10},viewport:{x:20,y:20}},height:{max:880},width:{max:440}};var i,o,a,s}(jQuery),function(t){var e="mmenu",n="fixedElements";t[e].addons[n]={setup:function(){if(this.opts.offCanvas){var i=this.opts[n];this.conf[n],s=t[e].glbl,i=this.opts[n]=t.extend(!0,{},t[e].defaults[n],i);var o=function(t){var e=this.conf.classNames[n].fixed;this.__refactorClass(t.find("."+e),e,"slideout").appendTo(s.$body)};o.call(this,s.$page),this.bind("setPage",o)}},add:function(){i=t[e]._c,o=t[e]._d,a=t[e]._e,i.add("fixed")},clickAnchor:function(t,e){}},t[e].configuration.classNames[n]={fixed:"Fixed"};var i,o,a,s}(jQuery),function(t){var e="mmenu",n="iconPanels";t[e].addons[n]={setup:function(){var o=this,a=this.opts[n];if(this.conf[n],s=t[e].glbl,"boolean"==typeof a&&(a={add:a}),"number"==typeof a&&(a={add:!0,visible:a}),"object"!=typeof a&&(a={}),a=this.opts[n]=t.extend(!0,{},t[e].defaults[n],a),a.visible++,a.add){this.$menu.addClass(i.iconpanel);for(var r=[],l=0;l<=a.visible;l++)r.push(i.iconpanel+"-"+l);r=r.join(" ");var d=function(e){e.hasClass(i.vertical)||o.$pnls.children("."+i.panel).removeClass(r).filter("."+i.subopened).removeClass(i.hidden).add(e).not("."+i.vertical).slice(-a.visible).each(function(e){t(this).addClass(i.iconpanel+"-"+e)})};this.bind("openPanel",d),this.bind("init",function(e){d.call(o,o.$pnls.children("."+i.current)),a.hideNavbars&&e.removeClass(i.hasnavbar),e.not("."+i.vertical).each(function(){t(this).children("."+i.subblocker).length||t(this).prepend('<a href="#'+t(this).closest("."+i.panel).attr("id")+'" class="'+i.subblocker+'" />')})})}},add:function(){i=t[e]._c,o=t[e]._d,a=t[e]._e,i.add("iconpanel subblocker")},clickAnchor:function(t,e){}},t[e].defaults[n]={add:!1,visible:3,hideNavbars:!1};var i,o,a,s}(jQuery),function(t){var e="mmenu",n="navbars";t[e].addons[n]={setup:function(){var o=this,a=this.opts[n],r=this.conf[n];if(s=t[e].glbl,"undefined"!=typeof a){a instanceof Array||(a=[a]);var l={};t.each(a,function(s){var d=a[s];"boolean"==typeof d&&d&&(d={}),"object"!=typeof d&&(d={}),"undefined"==typeof d.content&&(d.content=["prev","title"]),d.content instanceof Array||(d.content=[d.content]),d=t.extend(!0,{},o.opts.navbar,d);var c=d.position,u=d.height;"number"!=typeof u&&(u=1),u=Math.min(4,Math.max(1,u)),"bottom"!=c&&(c="top"),l[c]||(l[c]=0),l[c]++;var p=t("<div />").addClass(i.navbar+" "+i.navbar+"-"+c+" "+i.navbar+"-"+c+"-"+l[c]+" "+i.navbar+"-size-"+u);l[c]+=u-1;for(var h=0,f=0,g=d.content.length;g>f;f++){var m=t[e].addons[n][d.content[f]]||!1;m?h+=m.call(o,p,d,r):(m=d.content[f],m instanceof t||(m=t(d.content[f])),p.append(m))}h+=Math.ceil(p.children().not("."+i.btn).not("."+i.title+"-prev").length/u),h>1&&p.addClass(i.navbar+"-content-"+h),p.children("."+i.btn).length&&p.addClass(i.hasbtns),p.prependTo(o.$menu)});for(var d in l)o.$menu.addClass(i.hasnavbar+"-"+d+"-"+l[d])}},add:function(){i=t[e]._c,o=t[e]._d,a=t[e]._e,i.add("close hasbtns")},clickAnchor:function(t,e){}},t[e].configuration[n]={breadcrumbSeparator:"/"},t[e].configuration.classNames[n]={};var i,o,a,s}(jQuery),function(t){var e="mmenu",n="navbars",i="breadcrumbs";t[e].addons[n][i]=function(n,i,o){var a=t[e]._c,s=t[e]._d;a.add("breadcrumbs separator");var r=t('<span class="'+a.breadcrumbs+'" />').appendTo(n);this.bind("init",function(e){e.removeClass(a.hasnavbar).each(function(){for(var e=[],n=t(this),i=t('<span class="'+a.breadcrumbs+'"></span>'),r=t(this).children().first(),l=!0;r&&r.length;){r.is("."+a.panel)||(r=r.closest("."+a.panel));var d=r.children("."+a.navbar).children("."+a.title).text();e.unshift(l?"<span>"+d+"</span>":'<a href="#'+r.attr("id")+'">'+d+"</a>"),l=!1,r=r.data(s.parent)}i.append(e.join('<span class="'+a.separator+'">'+o.breadcrumbSeparator+"</span>")).appendTo(n.children("."+a.navbar))})});var l=function(){r.html(this.$pnls.children("."+a.current).children("."+a.navbar).children("."+a.breadcrumbs).html())};return this.bind("openPanel",l),this.bind("init",l),0}}(jQuery),function(t){var e="mmenu",n="navbars",i="close";t[e].addons[n][i]=function(n,i){var o=t[e]._c,a=t[e].glbl,s=t('<a class="'+o.close+" "+o.btn+'" href="#" />').appendTo(n),r=function(t){s.attr("href","#"+t.attr("id"))};return r.call(this,a.$page),this.bind("setPage",r),-1}}(jQuery),function(t){var e="mmenu",n="navbars",i="next";t[e].addons[n][i]=function(i,o){var a,s,r=t[e]._c,l=t('<a class="'+r.next+" "+r.btn+'" href="#" />').appendTo(i),d=function(t){t=t||this.$pnls.children("."+r.current);var e=t.find("."+this.conf.classNames[n].panelNext);a=e.attr("href"),s=e.html(),l[a?"attr":"removeAttr"]("href",a),l[a||s?"removeClass":"addClass"](r.hidden),l.html(s)};return this.bind("openPanel",d),this.bind("init",function(){d.call(this)}),-1},t[e].configuration.classNames[n].panelNext="Next"}(jQuery),function(t){var e="mmenu",n="navbars",i="prev";t[e].addons[n][i]=function(i,o){var a=t[e]._c,s=t('<a class="'+a.prev+" "+a.btn+'" href="#" />').appendTo(i);this.bind("init",function(t){t.removeClass(a.hasnavbar).children("."+a.navbar).addClass(a.hidden)});var r,l,d=function(t){if(t=t||this.$pnls.children("."+a.current),!t.hasClass(a.vertical)){var e=t.find("."+this.conf.classNames[n].panelPrev);e.length||(e=t.children("."+a.navbar).children("."+a.prev)),r=e.attr("href"),l=e.html(),s[r?"attr":"removeAttr"]("href",r),s[r||l?"removeClass":"addClass"](a.hidden),s.html(l)}};return this.bind("openPanel",d),this.bind("init",function(){d.call(this)}),-1},t[e].configuration.classNames[n].panelPrev="Prev"}(jQuery),function(t){var e="mmenu",n="navbars",i="searchfield";t[e].addons[n][i]=function(n,i){var o=t[e]._c,a=t('<div class="'+o.search+'" />').appendTo(n);return"object"!=typeof this.opts.searchfield&&(this.opts.searchfield={}),this.opts.searchfield.add=!0,this.opts.searchfield.addTo=a,0}}(jQuery),function(t){var e="mmenu",n="navbars",i="title";t[e].addons[n][i]=function(i,o){var a,s,r=t[e]._c,l=t('<a class="'+r.title+'" />').appendTo(i),d=function(t){if(t=t||this.$pnls.children("."+r.current),!t.hasClass(r.vertical)){var e=t.find("."+this.conf.classNames[n].panelTitle);e.length||(e=t.children("."+r.navbar).children("."+r.title)),a=e.attr("href"),s=e.html()||o.title,l[a?"attr":"removeAttr"]("href",a),l[a||s?"removeClass":"addClass"](r.hidden),l.html(s)}};return this.bind("openPanel",d),this.bind("init",function(t){d.call(this)}),0},t[e].configuration.classNames[n].panelTitle="Title"}(jQuery),function(t){function e(t,e,n){t.prop("aria-"+e,n)[n?"attr":"removeAttr"]("aria-"+e,"true")}function n(t){return'<span class="'+a.sronly+'">'+t+"</span>"}var i="mmenu",o="screenReader";t[i].addons[o]={setup:function(){var s=this.opts[o],r=this.conf[o];if(l=t[i].glbl,"boolean"==typeof s&&(s={aria:s,text:s}),"object"!=typeof s&&(s={}),s=this.opts[o]=t.extend(!0,{},t[i].defaults[o],s),s.aria){if(this.opts.offCanvas){var d=function(){e(this.$menu,"hidden",!1)},c=function(){e(this.$menu,"hidden",!0)};this.bind("open",d),this.bind("close",c),c.call(this)}var u=function(){e(this.$menu.find("."+a.hidden),"hidden",!0),e(this.$menu.find('[aria-hidden="true"]').not("."+a.hidden),"hidden",!1)},p=function(t){e(this.$pnls.children("."+a.panel).not(t).not("."+a.hidden),"hidden",!0),e(t,"hidden",!1)};this.bind("update",u),this.bind("openPanel",u),this.bind("openPanel",p);var h=function(t){e(t.find("."+a.prev+", ."+a.next),"haspopup",!0)};this.bind("init",h),h.call(this,this.$menu.children("."+a.navbar))}if(s.text){var f=function(e){e.children("."+a.navbar).children("."+a.prev).html(n(r.text.closeSubmenu)).end().children("."+a.next).html(n(r.text.openSubmenu)).end().children("."+a.close).html(n(r.text.closeMenu)),e.is("."+a.panel)&&e.find("."+a.listview).find("."+a.next).each(function(){t(this).html(n(r.text[t(this).parent().is("."+a.vertical)?"toggleSubmenu":"openSubmenu"]))})};this.bind("init",f),f.call(this,this.$menu)}},add:function(){a=t[i]._c,s=t[i]._d,r=t[i]._e,a.add("sronly")},clickAnchor:function(t,e){}},t[i].defaults[o]={aria:!1,text:!1},t[i].configuration[o]={text:{closeMenu:"Close menu",closeSubmenu:"Close submenu",openSubmenu:"Open submenu",toggleSubmenu:"Toggle submenu"}};var a,s,r,l}(jQuery),function(t){function e(t){switch(t){case 9:case 16:case 17:case 18:case 37:case 38:case 39:case 40:return!0}return!1}var n="mmenu",i="searchfield";t[n].addons[i]={setup:function(){var l=this,d=this.opts[i],c=this.conf[i];r=t[n].glbl,"boolean"==typeof d&&(d={add:d}),"object"!=typeof d&&(d={}),"boolean"==typeof d.resultsPanel&&(d.resultsPanel={add:d.resultsPanel}),d=this.opts[i]=t.extend(!0,{},t[n].defaults[i],d),c=this.conf[i]=t.extend(!0,{},t[n].configuration[i],c),this.bind("close",function(){this.$menu.find("."+o.search).find("input").blur()}),this.bind("init",function(n){if(d.add){var r;switch(d.addTo){case"panels":r=n;break;default:r=t(d.addTo,this.$menu)}if(r.each(function(){var e=t(this);if(!e.is("."+o.panel)||!e.is("."+o.vertical)){if(!e.children("."+o.search).length){var n=l.__valueOrFn(c.clear,e),i=l.__valueOrFn(c.form,e),a=l.__valueOrFn(c.input,e),r=l.__valueOrFn(c.submit,e),u=t("<"+(i?"form":"div")+' class="'+o.search+'" />'),p=t('<input placeholder="'+d.placeholder+'" type="text" autocomplete="off" />');u.append(p);var h;if(a)for(h in a)p.attr(h,a[h]);if(n&&t('<a class="'+o.btn+" "+o.clear+'" href="#" />').appendTo(u).on(s.click+"-searchfield",function(t){t.preventDefault(),p.val("").trigger(s.keyup+"-searchfield")}),i){for(h in i)u.attr(h,i[h]);r&&!n&&t('<a class="'+o.btn+" "+o.next+'" href="#" />').appendTo(u).on(s.click+"-searchfield",function(t){t.preventDefault(),u.submit()})}e.hasClass(o.search)?e.replaceWith(u):e.prepend(u).addClass(o.hassearch)}if(d.noResults){var f=e.closest("."+o.panel).length;if(f||(e=l.$pnls.children("."+o.panel).first()),!e.children("."+o.noresultsmsg).length){var g=e.children("."+o.listview).first();t('<div class="'+o.noresultsmsg+" "+o.hidden+'" />').append(d.noResults)[g.length?"insertAfter":"prependTo"](g.length?g:e)}}}}),d.search){if(d.resultsPanel.add){d.showSubPanels=!1;var u=this.$pnls.children("."+o.resultspanel);u.length||(u=t('<div class="'+o.panel+" "+o.resultspanel+" "+o.hidden+'" />').appendTo(this.$pnls).append('<div class="'+o.navbar+" "+o.hidden+'"><a class="'+o.title+'">'+d.resultsPanel.title+"</a></div>").append('<ul class="'+o.listview+'" />').append(this.$pnls.find("."+o.noresultsmsg).first().clone()),this.init(u))}t("."+o.search,this.$menu).each(function(){var n,r,c=t(this),p=c.closest("."+o.panel).length;p?(n=c.closest("."+o.panel),r=n):(n=t("."+o.panel,l.$menu),r=l.$menu),d.resultsPanel.add&&(n=n.not(u));var h=c.children("input"),f=l.__findAddBack(n,"."+o.listview).children("li"),g=f.filter("."+o.divider),m=l.__filterListItems(f),v="a",b=v+", span",y="",w=function(){var e=h.val().toLowerCase();if(e!=y){if(y=e,d.resultsPanel.add&&u.children("."+o.listview).empty(),n.scrollTop(0),m.add(g).addClass(o.hidden).find("."+o.fullsubopensearch).removeClass(o.fullsubopen+" "+o.fullsubopensearch),m.each(function(){var e=t(this),n=v;(d.showTextItems||d.showSubPanels&&e.find("."+o.next))&&(n=b);var i=e.data(a.searchtext)||e.children(n).text();i.toLowerCase().indexOf(y)>-1&&e.add(e.prevAll("."+o.divider).first()).removeClass(o.hidden)}),d.showSubPanels&&n.each(function(e){var n=t(this);l.__filterListItems(n.find("."+o.listview).children()).each(function(){var e=t(this),n=e.data(a.sub);e.removeClass(o.nosubresults),n&&n.find("."+o.listview).children().removeClass(o.hidden)})}),d.resultsPanel.add)if(""===y)this.closeAllPanels(),this.openPanel(this.$pnls.children("."+o.subopened).last());else{var i=t();n.each(function(){var e=l.__filterListItems(t(this).find("."+o.listview).children()).not("."+o.hidden).clone(!0);e.length&&(d.resultsPanel.dividers&&(i=i.add('<li class="'+o.divider+'">'+t(this).children("."+o.navbar).text()+"</li>")),i=i.add(e))}),i.find("."+o.next).remove(),u.children("."+o.listview).append(i),this.openPanel(u)}else t(n.get().reverse()).each(function(e){var n=t(this),i=n.data(a.parent);i&&(l.__filterListItems(n.find("."+o.listview).children()).length?(i.hasClass(o.hidden)&&i.children("."+o.next).not("."+o.fullsubopen).addClass(o.fullsubopen).addClass(o.fullsubopensearch),i.removeClass(o.hidden).removeClass(o.nosubresults).prevAll("."+o.divider).first().removeClass(o.hidden)):p||(n.hasClass(o.opened)&&setTimeout(function(){l.openPanel(i.closest("."+o.panel))},(e+1)*(1.5*l.conf.openingInterval)),i.addClass(o.nosubresults)))});r.find("."+o.noresultsmsg)[m.not("."+o.hidden).length?"addClass":"removeClass"](o.hidden),this.update()}};h.off(s.keyup+"-"+i+" "+s.change+"-"+i).on(s.keyup+"-"+i,function(t){e(t.keyCode)||w.call(l)}).on(s.change+"-"+i,function(t){w.call(l)});var x=c.children("."+o.btn);x.length&&h.on(s.keyup+"-"+i,function(t){x[h.val().length?"removeClass":"addClass"](o.hidden)}),h.trigger(s.keyup+"-"+i)})}}})},add:function(){o=t[n]._c,a=t[n]._d,s=t[n]._e,o.add("clear search hassearch resultspanel noresultsmsg noresults nosubresults fullsubopensearch"),a.add("searchtext"),s.add("change keyup")},clickAnchor:function(t,e){}},t[n].defaults[i]={add:!1,addTo:"panels",placeholder:"Search",noResults:"No results found.",resultsPanel:{add:!1,dividers:!0,title:"Search results"},search:!0,showTextItems:!1,showSubPanels:!0},t[n].configuration[i]={clear:!1,form:!1,input:!1,submit:!1};var o,a,s,r}(jQuery),function(t){var e="mmenu",n="sectionIndexer";t[e].addons[n]={setup:function(){var o=this,r=this.opts[n];this.conf[n],s=t[e].glbl,"boolean"==typeof r&&(r={add:r}),"object"!=typeof r&&(r={}),r=this.opts[n]=t.extend(!0,{},t[e].defaults[n],r),this.bind("init",function(e){if(r.add){var n;switch(r.addTo){case"panels":n=e;break;default:n=t(r.addTo,this.$menu).filter("."+i.panel)}n.find("."+i.divider).closest("."+i.panel).addClass(i.hasindexer)}if(!this.$indexer&&this.$pnls.children("."+i.hasindexer).length){this.$indexer=t('<div class="'+i.indexer+'" />').prependTo(this.$pnls).append('<a href="#a">a</a><a href="#b">b</a><a href="#c">c</a><a href="#d">d</a><a href="#e">e</a><a href="#f">f</a><a href="#g">g</a><a href="#h">h</a><a href="#i">i</a><a href="#j">j</a><a href="#k">k</a><a href="#l">l</a><a href="#m">m</a><a href="#n">n</a><a href="#o">o</a><a href="#p">p</a><a href="#q">q</a><a href="#r">r</a><a href="#s">s</a><a href="#t">t</a><a href="#u">u</a><a href="#v">v</a><a href="#w">w</a><a href="#x">x</a><a href="#y">y</a><a href="#z">z</a>'),this.$indexer.children().on(a.mouseover+"-sectionindexer "+i.touchstart+"-sectionindexer",function(e){var n=t(this).attr("href").slice(1),a=o.$pnls.children("."+i.current),s=a.find("."+i.listview),r=!1,l=a.scrollTop();a.scrollTop(0),s.children("."+i.divider).not("."+i.hidden).each(function(){r===!1&&n==t(this).text().slice(0,1).toLowerCase()&&(r=t(this).position().top)}),a.scrollTop(r!==!1?r:l)});var s=function(t){o.$menu[(t.hasClass(i.hasindexer)?"add":"remove")+"Class"](i.hasindexer)};this.bind("openPanel",s),s.call(this,this.$pnls.children("."+i.current))}})},add:function(){i=t[e]._c,o=t[e]._d,a=t[e]._e,i.add("indexer hasindexer"),a.add("mouseover touchstart")},clickAnchor:function(t,e){return!!t.parent().is("."+i.indexer)||void 0}},t[e].defaults[n]={add:!1,addTo:"panels"};var i,o,a,s}(jQuery),function(t){var e="mmenu",n="setSelected";t[e].addons[n]={setup:function(){var a=this.opts[n];if(this.conf[n],s=t[e].glbl,"boolean"==typeof a&&(a={hover:a,parent:a}),"object"!=typeof a&&(a={}),a=this.opts[n]=t.extend(!0,{},t[e].defaults[n],a),a.current||this.bind("init",function(t){t.find("."+i.listview).children("."+i.selected).removeClass(i.selected)}),a.hover&&this.$menu.addClass(i.hoverselected),a.parent){this.$menu.addClass(i.parentselected);var r=function(t){this.$pnls.find("."+i.listview).find("."+i.next).removeClass(i.selected);for(var e=t.data(o.parent);e&&e.length;)e=e.children("."+i.next).addClass(i.selected).closest("."+i.panel).data(o.parent)};this.bind("openedPanel",r),this.bind("init",function(t){r.call(this,this.$pnls.children("."+i.current))})}},add:function(){i=t[e]._c,o=t[e]._d,a=t[e]._e,i.add("hoverselected parentselected")},clickAnchor:function(t,e){}},t[e].defaults[n]={current:!0,hover:!1,parent:!1};var i,o,a,s}(jQuery),function(t){var e="mmenu",n="toggles";t[e].addons[n]={setup:function(){var o=this;this.opts[n],this.conf[n],s=t[e].glbl,this.bind("init",function(e){this.__refactorClass(t("input",e),this.conf.classNames[n].toggle,"toggle"),this.__refactorClass(t("input",e),this.conf.classNames[n].check,"check"),t("input."+i.toggle+", input."+i.check,e).each(function(){var e=t(this),n=e.closest("li"),a=e.hasClass(i.toggle)?"toggle":"check",s=e.attr("id")||o.__getUniqueId();n.children('label[for="'+s+'"]').length||(e.attr("id",s),n.prepend(e),t('<label for="'+s+'" class="'+i[a]+'"></label>').insertBefore(n.children("a, span").last()))})})},add:function(){i=t[e]._c,o=t[e]._d,a=t[e]._e,i.add("toggle check")},clickAnchor:function(t,e){}},t[e].configuration.classNames[n]={toggle:"Toggle",check:"Check"};var i,o,a,s}(jQuery),!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof exports?module.exports=t(require("jquery")):t(jQuery)}(function(t){"use strict";var e=window.Slick||{};e=function(){function e(e,i){var o,a=this;a.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:t(e),appendDots:t(e),arrows:!0,asNavFor:null,prevArrow:'<button type="button" data-role="none" class="slick-prev" aria-label="Previous" tabindex="0" role="button">Previous</button>',nextArrow:'<button type="button" data-role="none" class="slick-next" aria-label="Next" tabindex="0" role="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(t,e){return'<button type="button" data-role="none" role="button" aria-required="false" tabindex="0">'+(e+1)+"</button>"},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!1,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},a.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},t.extend(a,a.initials),a.activeBreakpoint=null,a.animType=null,a.animProp=null,a.breakpoints=[],a.breakpointSettings=[],a.cssTransitions=!1,a.hidden="hidden",a.paused=!1,a.positionProp=null,a.respondTo=null,a.rowCount=1,a.shouldClick=!0,a.$slider=t(e),a.$slidesCache=null,a.transformType=null,a.transitionType=null,a.visibilityChange="visibilitychange",a.windowWidth=0,a.windowTimer=null,o=t(e).data("slick")||{},a.options=t.extend({},a.defaults,o,i),a.currentSlide=a.options.initialSlide,a.originalSettings=a.options,"undefined"!=typeof document.mozHidden?(a.hidden="mozHidden",a.visibilityChange="mozvisibilitychange"):"undefined"!=typeof document.webkitHidden&&(a.hidden="webkitHidden",a.visibilityChange="webkitvisibilitychange"),a.autoPlay=t.proxy(a.autoPlay,a),a.autoPlayClear=t.proxy(a.autoPlayClear,a),a.changeSlide=t.proxy(a.changeSlide,a),a.clickHandler=t.proxy(a.clickHandler,a),a.selectHandler=t.proxy(a.selectHandler,a),a.setPosition=t.proxy(a.setPosition,a),a.swipeHandler=t.proxy(a.swipeHandler,a),a.dragHandler=t.proxy(a.dragHandler,a),a.keyHandler=t.proxy(a.keyHandler,a),a.autoPlayIterator=t.proxy(a.autoPlayIterator,a),a.instanceUid=n++,a.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,a.registerBreakpoints(),a.init(!0),a.checkResponsive(!0)}var n=0;return e}(),e.prototype.addSlide=e.prototype.slickAdd=function(e,n,i){var o=this;if("boolean"==typeof n)i=n,n=null;else if(0>n||n>=o.slideCount)return!1;o.unload(),"number"==typeof n?0===n&&0===o.$slides.length?t(e).appendTo(o.$slideTrack):i?t(e).insertBefore(o.$slides.eq(n)):t(e).insertAfter(o.$slides.eq(n)):i===!0?t(e).prependTo(o.$slideTrack):t(e).appendTo(o.$slideTrack),o.$slides=o.$slideTrack.children(this.options.slide),o.$slideTrack.children(this.options.slide).detach(),o.$slideTrack.append(o.$slides),o.$slides.each(function(e,n){t(n).attr("data-slick-index",e)}),o.$slidesCache=o.$slides,o.reinit()},e.prototype.animateHeight=function(){var t=this;if(1===t.options.slidesToShow&&t.options.adaptiveHeight===!0&&t.options.vertical===!1){var e=t.$slides.eq(t.currentSlide).outerHeight(!0);t.$list.animate({height:e},t.options.speed)}},e.prototype.animateSlide=function(e,n){var i={},o=this;o.animateHeight(),o.options.rtl===!0&&o.options.vertical===!1&&(e=-e),o.transformsEnabled===!1?o.options.vertical===!1?o.$slideTrack.animate({left:e},o.options.speed,o.options.easing,n):o.$slideTrack.animate({top:e},o.options.speed,o.options.easing,n):o.cssTransitions===!1?(o.options.rtl===!0&&(o.currentLeft=-o.currentLeft),t({animStart:o.currentLeft}).animate({animStart:e},{duration:o.options.speed,easing:o.options.easing,step:function(t){t=Math.ceil(t),o.options.vertical===!1?(i[o.animType]="translate("+t+"px, 0px)",o.$slideTrack.css(i)):(i[o.animType]="translate(0px,"+t+"px)",o.$slideTrack.css(i))},complete:function(){n&&n.call()}})):(o.applyTransition(),e=Math.ceil(e),o.options.vertical===!1?i[o.animType]="translate3d("+e+"px, 0px, 0px)":i[o.animType]="translate3d(0px,"+e+"px, 0px)",o.$slideTrack.css(i),n&&setTimeout(function(){o.disableTransition(),n.call()},o.options.speed))},e.prototype.asNavFor=function(e){var n=this,i=n.options.asNavFor;i&&null!==i&&(i=t(i).not(n.$slider)),null!==i&&"object"==typeof i&&i.each(function(){var n=t(this).slick("getSlick");n.unslicked||n.slideHandler(e,!0)})},e.prototype.applyTransition=function(t){var e=this,n={};e.options.fade===!1?n[e.transitionType]=e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:n[e.transitionType]="opacity "+e.options.speed+"ms "+e.options.cssEase,e.options.fade===!1?e.$slideTrack.css(n):e.$slides.eq(t).css(n)},e.prototype.autoPlay=function(){var t=this;t.autoPlayTimer&&clearInterval(t.autoPlayTimer),t.slideCount>t.options.slidesToShow&&t.paused!==!0&&(t.autoPlayTimer=setInterval(t.autoPlayIterator,t.options.autoplaySpeed))},e.prototype.autoPlayClear=function(){var t=this;t.autoPlayTimer&&clearInterval(t.autoPlayTimer)},e.prototype.autoPlayIterator=function(){var t=this;t.options.infinite===!1?1===t.direction?(t.currentSlide+1===t.slideCount-1&&(t.direction=0),t.slideHandler(t.currentSlide+t.options.slidesToScroll)):(t.currentSlide-1===0&&(t.direction=1),t.slideHandler(t.currentSlide-t.options.slidesToScroll)):t.slideHandler(t.currentSlide+t.options.slidesToScroll)},e.prototype.buildArrows=function(){var e=this;e.options.arrows===!0&&(e.$prevArrow=t(e.options.prevArrow).addClass("slick-arrow"),e.$nextArrow=t(e.options.nextArrow).addClass("slick-arrow"),e.slideCount>e.options.slidesToShow?(e.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),
e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.prependTo(e.options.appendArrows),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.appendTo(e.options.appendArrows),e.options.infinite!==!0&&e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):e.$prevArrow.add(e.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},e.prototype.buildDots=function(){var e,n,i=this;if(i.options.dots===!0&&i.slideCount>i.options.slidesToShow){for(n='<ul class="'+i.options.dotsClass+'">',e=0;e<=i.getDotCount();e+=1)n+="<li>"+i.options.customPaging.call(this,i,e)+"</li>";n+="</ul>",i.$dots=t(n).appendTo(i.options.appendDots),i.$dots.find("li").first().addClass("slick-active").attr("aria-hidden","false")}},e.prototype.buildOut=function(){var e=this;e.$slides=e.$slider.children(e.options.slide+":not(.slick-cloned)").addClass("slick-slide"),e.slideCount=e.$slides.length,e.$slides.each(function(e,n){t(n).attr("data-slick-index",e).data("originalStyling",t(n).attr("style")||"")}),e.$slider.addClass("slick-slider"),e.$slideTrack=0===e.slideCount?t('<div class="slick-track"/>').appendTo(e.$slider):e.$slides.wrapAll('<div class="slick-track"/>').parent(),e.$list=e.$slideTrack.wrap('<div aria-live="polite" class="slick-list"/>').parent(),e.$slideTrack.css("opacity",0),(e.options.centerMode===!0||e.options.swipeToSlide===!0)&&(e.options.slidesToScroll=1),t("img[data-lazy]",e.$slider).not("[src]").addClass("slick-loading"),e.setupInfinite(),e.buildArrows(),e.buildDots(),e.updateDots(),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),e.options.draggable===!0&&e.$list.addClass("draggable")},e.prototype.buildRows=function(){var t,e,n,i,o,a,s,r=this;if(i=document.createDocumentFragment(),a=r.$slider.children(),r.options.rows>1){for(s=r.options.slidesPerRow*r.options.rows,o=Math.ceil(a.length/s),t=0;o>t;t++){var l=document.createElement("div");for(e=0;e<r.options.rows;e++){var d=document.createElement("div");for(n=0;n<r.options.slidesPerRow;n++){var c=t*s+(e*r.options.slidesPerRow+n);a.get(c)&&d.appendChild(a.get(c))}l.appendChild(d)}i.appendChild(l)}r.$slider.html(i),r.$slider.children().children().children().css({width:100/r.options.slidesPerRow+"%",display:"inline-block"})}},e.prototype.checkResponsive=function(e,n){var i,o,a,s=this,r=!1,l=s.$slider.width(),d=window.innerWidth||t(window).width();if("window"===s.respondTo?a=d:"slider"===s.respondTo?a=l:"min"===s.respondTo&&(a=Math.min(d,l)),s.options.responsive&&s.options.responsive.length&&null!==s.options.responsive){o=null;for(i in s.breakpoints)s.breakpoints.hasOwnProperty(i)&&(s.originalSettings.mobileFirst===!1?a<s.breakpoints[i]&&(o=s.breakpoints[i]):a>s.breakpoints[i]&&(o=s.breakpoints[i]));null!==o?null!==s.activeBreakpoint?(o!==s.activeBreakpoint||n)&&(s.activeBreakpoint=o,"unslick"===s.breakpointSettings[o]?s.unslick(o):(s.options=t.extend({},s.originalSettings,s.breakpointSettings[o]),e===!0&&(s.currentSlide=s.options.initialSlide),s.refresh(e)),r=o):(s.activeBreakpoint=o,"unslick"===s.breakpointSettings[o]?s.unslick(o):(s.options=t.extend({},s.originalSettings,s.breakpointSettings[o]),e===!0&&(s.currentSlide=s.options.initialSlide),s.refresh(e)),r=o):null!==s.activeBreakpoint&&(s.activeBreakpoint=null,s.options=s.originalSettings,e===!0&&(s.currentSlide=s.options.initialSlide),s.refresh(e),r=o),e||r===!1||s.$slider.trigger("breakpoint",[s,r])}},e.prototype.changeSlide=function(e,n){var i,o,a,s=this,r=t(e.target);switch(r.is("a")&&e.preventDefault(),r.is("li")||(r=r.closest("li")),a=s.slideCount%s.options.slidesToScroll!==0,i=a?0:(s.slideCount-s.currentSlide)%s.options.slidesToScroll,e.data.message){case"previous":o=0===i?s.options.slidesToScroll:s.options.slidesToShow-i,s.slideCount>s.options.slidesToShow&&s.slideHandler(s.currentSlide-o,!1,n);break;case"next":o=0===i?s.options.slidesToScroll:i,s.slideCount>s.options.slidesToShow&&s.slideHandler(s.currentSlide+o,!1,n);break;case"index":var l=0===e.data.index?0:e.data.index||r.index()*s.options.slidesToScroll;s.slideHandler(s.checkNavigable(l),!1,n),r.children().trigger("focus");break;default:return}},e.prototype.checkNavigable=function(t){var e,n,i=this;if(e=i.getNavigableIndexes(),n=0,t>e[e.length-1])t=e[e.length-1];else for(var o in e){if(t<e[o]){t=n;break}n=e[o]}return t},e.prototype.cleanUpEvents=function(){var e=this;e.options.dots&&null!==e.$dots&&(t("li",e.$dots).off("click.slick",e.changeSlide),e.options.pauseOnDotsHover===!0&&e.options.autoplay===!0&&t("li",e.$dots).off("mouseenter.slick",t.proxy(e.setPaused,e,!0)).off("mouseleave.slick",t.proxy(e.setPaused,e,!1))),e.options.arrows===!0&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow&&e.$prevArrow.off("click.slick",e.changeSlide),e.$nextArrow&&e.$nextArrow.off("click.slick",e.changeSlide)),e.$list.off("touchstart.slick mousedown.slick",e.swipeHandler),e.$list.off("touchmove.slick mousemove.slick",e.swipeHandler),e.$list.off("touchend.slick mouseup.slick",e.swipeHandler),e.$list.off("touchcancel.slick mouseleave.slick",e.swipeHandler),e.$list.off("click.slick",e.clickHandler),t(document).off(e.visibilityChange,e.visibility),e.$list.off("mouseenter.slick",t.proxy(e.setPaused,e,!0)),e.$list.off("mouseleave.slick",t.proxy(e.setPaused,e,!1)),e.options.accessibility===!0&&e.$list.off("keydown.slick",e.keyHandler),e.options.focusOnSelect===!0&&t(e.$slideTrack).children().off("click.slick",e.selectHandler),t(window).off("orientationchange.slick.slick-"+e.instanceUid,e.orientationChange),t(window).off("resize.slick.slick-"+e.instanceUid,e.resize),t("[draggable!=true]",e.$slideTrack).off("dragstart",e.preventDefault),t(window).off("load.slick.slick-"+e.instanceUid,e.setPosition),t(document).off("ready.slick.slick-"+e.instanceUid,e.setPosition)},e.prototype.cleanUpRows=function(){var t,e=this;e.options.rows>1&&(t=e.$slides.children().children(),t.removeAttr("style"),e.$slider.html(t))},e.prototype.clickHandler=function(t){var e=this;e.shouldClick===!1&&(t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault())},e.prototype.destroy=function(e){var n=this;n.autoPlayClear(),n.touchObject={},n.cleanUpEvents(),t(".slick-cloned",n.$slider).detach(),n.$dots&&n.$dots.remove(),n.$prevArrow&&n.$prevArrow.length&&(n.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),n.htmlExpr.test(n.options.prevArrow)&&n.$prevArrow.remove()),n.$nextArrow&&n.$nextArrow.length&&(n.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),n.htmlExpr.test(n.options.nextArrow)&&n.$nextArrow.remove()),n.$slides&&(n.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){t(this).attr("style",t(this).data("originalStyling"))}),n.$slideTrack.children(this.options.slide).detach(),n.$slideTrack.detach(),n.$list.detach(),n.$slider.append(n.$slides)),n.cleanUpRows(),n.$slider.removeClass("slick-slider"),n.$slider.removeClass("slick-initialized"),n.unslicked=!0,e||n.$slider.trigger("destroy",[n])},e.prototype.disableTransition=function(t){var e=this,n={};n[e.transitionType]="",e.options.fade===!1?e.$slideTrack.css(n):e.$slides.eq(t).css(n)},e.prototype.fadeSlide=function(t,e){var n=this;n.cssTransitions===!1?(n.$slides.eq(t).css({zIndex:n.options.zIndex}),n.$slides.eq(t).animate({opacity:1},n.options.speed,n.options.easing,e)):(n.applyTransition(t),n.$slides.eq(t).css({opacity:1,zIndex:n.options.zIndex}),e&&setTimeout(function(){n.disableTransition(t),e.call()},n.options.speed))},e.prototype.fadeSlideOut=function(t){var e=this;e.cssTransitions===!1?e.$slides.eq(t).animate({opacity:0,zIndex:e.options.zIndex-2},e.options.speed,e.options.easing):(e.applyTransition(t),e.$slides.eq(t).css({opacity:0,zIndex:e.options.zIndex-2}))},e.prototype.filterSlides=e.prototype.slickFilter=function(t){var e=this;null!==t&&(e.$slidesCache=e.$slides,e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.filter(t).appendTo(e.$slideTrack),e.reinit())},e.prototype.getCurrent=e.prototype.slickCurrentSlide=function(){var t=this;return t.currentSlide},e.prototype.getDotCount=function(){var t=this,e=0,n=0,i=0;if(t.options.infinite===!0)for(;e<t.slideCount;)++i,e=n+t.options.slidesToScroll,n+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else if(t.options.centerMode===!0)i=t.slideCount;else for(;e<t.slideCount;)++i,e=n+t.options.slidesToScroll,n+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;return i-1},e.prototype.getLeft=function(t){var e,n,i,o=this,a=0;return o.slideOffset=0,n=o.$slides.first().outerHeight(!0),o.options.infinite===!0?(o.slideCount>o.options.slidesToShow&&(o.slideOffset=o.slideWidth*o.options.slidesToShow*-1,a=n*o.options.slidesToShow*-1),o.slideCount%o.options.slidesToScroll!==0&&t+o.options.slidesToScroll>o.slideCount&&o.slideCount>o.options.slidesToShow&&(t>o.slideCount?(o.slideOffset=(o.options.slidesToShow-(t-o.slideCount))*o.slideWidth*-1,a=(o.options.slidesToShow-(t-o.slideCount))*n*-1):(o.slideOffset=o.slideCount%o.options.slidesToScroll*o.slideWidth*-1,a=o.slideCount%o.options.slidesToScroll*n*-1))):t+o.options.slidesToShow>o.slideCount&&(o.slideOffset=(t+o.options.slidesToShow-o.slideCount)*o.slideWidth,a=(t+o.options.slidesToShow-o.slideCount)*n),o.slideCount<=o.options.slidesToShow&&(o.slideOffset=0,a=0),o.options.centerMode===!0&&o.options.infinite===!0?o.slideOffset+=o.slideWidth*Math.floor(o.options.slidesToShow/2)-o.slideWidth:o.options.centerMode===!0&&(o.slideOffset=0,o.slideOffset+=o.slideWidth*Math.floor(o.options.slidesToShow/2)),e=o.options.vertical===!1?t*o.slideWidth*-1+o.slideOffset:t*n*-1+a,o.options.variableWidth===!0&&(i=o.slideCount<=o.options.slidesToShow||o.options.infinite===!1?o.$slideTrack.children(".slick-slide").eq(t):o.$slideTrack.children(".slick-slide").eq(t+o.options.slidesToShow),e=o.options.rtl===!0?i[0]?-1*(o.$slideTrack.width()-i[0].offsetLeft-i.width()):0:i[0]?-1*i[0].offsetLeft:0,o.options.centerMode===!0&&(i=o.slideCount<=o.options.slidesToShow||o.options.infinite===!1?o.$slideTrack.children(".slick-slide").eq(t):o.$slideTrack.children(".slick-slide").eq(t+o.options.slidesToShow+1),e=o.options.rtl===!0?i[0]?-1*(o.$slideTrack.width()-i[0].offsetLeft-i.width()):0:i[0]?-1*i[0].offsetLeft:0,e+=(o.$list.width()-i.outerWidth())/2)),e},e.prototype.getOption=e.prototype.slickGetOption=function(t){var e=this;return e.options[t]},e.prototype.getNavigableIndexes=function(){var t,e=this,n=0,i=0,o=[];for(e.options.infinite===!1?t=e.slideCount:(n=-1*e.options.slidesToScroll,i=-1*e.options.slidesToScroll,t=2*e.slideCount);t>n;)o.push(n),n=i+e.options.slidesToScroll,i+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return o},e.prototype.getSlick=function(){return this},e.prototype.getSlideCount=function(){var e,n,i,o=this;return i=o.options.centerMode===!0?o.slideWidth*Math.floor(o.options.slidesToShow/2):0,o.options.swipeToSlide===!0?(o.$slideTrack.find(".slick-slide").each(function(e,a){return a.offsetLeft-i+t(a).outerWidth()/2>-1*o.swipeLeft?(n=a,!1):void 0}),e=Math.abs(t(n).attr("data-slick-index")-o.currentSlide)||1):o.options.slidesToScroll},e.prototype.goTo=e.prototype.slickGoTo=function(t,e){var n=this;n.changeSlide({data:{message:"index",index:parseInt(t)}},e)},e.prototype.init=function(e){var n=this;t(n.$slider).hasClass("slick-initialized")||(t(n.$slider).addClass("slick-initialized"),n.buildRows(),n.buildOut(),n.setProps(),n.startLoad(),n.loadSlider(),n.initializeEvents(),n.updateArrows(),n.updateDots()),e&&n.$slider.trigger("init",[n]),n.options.accessibility===!0&&n.initADA()},e.prototype.initArrowEvents=function(){var t=this;t.options.arrows===!0&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.on("click.slick",{message:"previous"},t.changeSlide),t.$nextArrow.on("click.slick",{message:"next"},t.changeSlide))},e.prototype.initDotEvents=function(){var e=this;e.options.dots===!0&&e.slideCount>e.options.slidesToShow&&t("li",e.$dots).on("click.slick",{message:"index"},e.changeSlide),e.options.dots===!0&&e.options.pauseOnDotsHover===!0&&e.options.autoplay===!0&&t("li",e.$dots).on("mouseenter.slick",t.proxy(e.setPaused,e,!0)).on("mouseleave.slick",t.proxy(e.setPaused,e,!1))},e.prototype.initializeEvents=function(){var e=this;e.initArrowEvents(),e.initDotEvents(),e.$list.on("touchstart.slick mousedown.slick",{action:"start"},e.swipeHandler),e.$list.on("touchmove.slick mousemove.slick",{action:"move"},e.swipeHandler),e.$list.on("touchend.slick mouseup.slick",{action:"end"},e.swipeHandler),e.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},e.swipeHandler),e.$list.on("click.slick",e.clickHandler),t(document).on(e.visibilityChange,t.proxy(e.visibility,e)),e.$list.on("mouseenter.slick",t.proxy(e.setPaused,e,!0)),e.$list.on("mouseleave.slick",t.proxy(e.setPaused,e,!1)),e.options.accessibility===!0&&e.$list.on("keydown.slick",e.keyHandler),e.options.focusOnSelect===!0&&t(e.$slideTrack).children().on("click.slick",e.selectHandler),t(window).on("orientationchange.slick.slick-"+e.instanceUid,t.proxy(e.orientationChange,e)),t(window).on("resize.slick.slick-"+e.instanceUid,t.proxy(e.resize,e)),t("[draggable!=true]",e.$slideTrack).on("dragstart",e.preventDefault),t(window).on("load.slick.slick-"+e.instanceUid,e.setPosition),t(document).on("ready.slick.slick-"+e.instanceUid,e.setPosition)},e.prototype.initUI=function(){var t=this;t.options.arrows===!0&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.show(),t.$nextArrow.show()),t.options.dots===!0&&t.slideCount>t.options.slidesToShow&&t.$dots.show(),t.options.autoplay===!0&&t.autoPlay()},e.prototype.keyHandler=function(t){var e=this;t.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===t.keyCode&&e.options.accessibility===!0?e.changeSlide({data:{message:"previous"}}):39===t.keyCode&&e.options.accessibility===!0&&e.changeSlide({data:{message:"next"}}))},e.prototype.lazyLoad=function(){function e(e){t("img[data-lazy]",e).each(function(){var e=t(this),n=t(this).attr("data-lazy"),i=document.createElement("img");i.onload=function(){e.animate({opacity:0},100,function(){e.attr("src",n).animate({opacity:1},200,function(){e.removeAttr("data-lazy").removeClass("slick-loading")})})},i.src=n})}var n,i,o,a,s=this;s.options.centerMode===!0?s.options.infinite===!0?(o=s.currentSlide+(s.options.slidesToShow/2+1),a=o+s.options.slidesToShow+2):(o=Math.max(0,s.currentSlide-(s.options.slidesToShow/2+1)),a=2+(s.options.slidesToShow/2+1)+s.currentSlide):(o=s.options.infinite?s.options.slidesToShow+s.currentSlide:s.currentSlide,a=o+s.options.slidesToShow,s.options.fade===!0&&(o>0&&o--,a<=s.slideCount&&a++)),n=s.$slider.find(".slick-slide").slice(o,a),e(n),s.slideCount<=s.options.slidesToShow?(i=s.$slider.find(".slick-slide"),e(i)):s.currentSlide>=s.slideCount-s.options.slidesToShow?(i=s.$slider.find(".slick-cloned").slice(0,s.options.slidesToShow),e(i)):0===s.currentSlide&&(i=s.$slider.find(".slick-cloned").slice(-1*s.options.slidesToShow),e(i))},e.prototype.loadSlider=function(){var t=this;t.setPosition(),t.$slideTrack.css({opacity:1}),t.$slider.removeClass("slick-loading"),t.initUI(),"progressive"===t.options.lazyLoad&&t.progressiveLazyLoad()},e.prototype.next=e.prototype.slickNext=function(){var t=this;t.changeSlide({data:{message:"next"}})},e.prototype.orientationChange=function(){var t=this;t.checkResponsive(),t.setPosition()},e.prototype.pause=e.prototype.slickPause=function(){var t=this;t.autoPlayClear(),t.paused=!0},e.prototype.play=e.prototype.slickPlay=function(){var t=this;t.paused=!1,t.autoPlay()},e.prototype.postSlide=function(t){var e=this;e.$slider.trigger("afterChange",[e,t]),e.animating=!1,e.setPosition(),e.swipeLeft=null,e.options.autoplay===!0&&e.paused===!1&&e.autoPlay(),e.options.accessibility===!0&&e.initADA()},e.prototype.prev=e.prototype.slickPrev=function(){var t=this;t.changeSlide({data:{message:"previous"}})},e.prototype.preventDefault=function(t){t.preventDefault()},e.prototype.progressiveLazyLoad=function(){var e,n,i=this;e=t("img[data-lazy]",i.$slider).length,e>0&&(n=t("img[data-lazy]",i.$slider).first(),n.attr("src",null),n.attr("src",n.attr("data-lazy")).removeClass("slick-loading").load(function(){n.removeAttr("data-lazy"),i.progressiveLazyLoad(),i.options.adaptiveHeight===!0&&i.setPosition()}).error(function(){n.removeAttr("data-lazy"),i.progressiveLazyLoad()}))},e.prototype.refresh=function(e){var n,i,o=this;i=o.slideCount-o.options.slidesToShow,o.options.infinite||(o.slideCount<=o.options.slidesToShow?o.currentSlide=0:o.currentSlide>i&&(o.currentSlide=i)),n=o.currentSlide,o.destroy(!0),t.extend(o,o.initials,{currentSlide:n}),o.init(),e||o.changeSlide({data:{message:"index",index:n}},!1)},e.prototype.registerBreakpoints=function(){var e,n,i,o=this,a=o.options.responsive||null;if("array"===t.type(a)&&a.length){o.respondTo=o.options.respondTo||"window";for(e in a)if(i=o.breakpoints.length-1,n=a[e].breakpoint,a.hasOwnProperty(e)){for(;i>=0;)o.breakpoints[i]&&o.breakpoints[i]===n&&o.breakpoints.splice(i,1),i--;o.breakpoints.push(n),o.breakpointSettings[n]=a[e].settings}o.breakpoints.sort(function(t,e){return o.options.mobileFirst?t-e:e-t})}},e.prototype.reinit=function(){var e=this;e.$slides=e.$slideTrack.children(e.options.slide).addClass("slick-slide"),e.slideCount=e.$slides.length,e.currentSlide>=e.slideCount&&0!==e.currentSlide&&(e.currentSlide=e.currentSlide-e.options.slidesToScroll),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),e.registerBreakpoints(),e.setProps(),e.setupInfinite(),e.buildArrows(),e.updateArrows(),e.initArrowEvents(),e.buildDots(),e.updateDots(),e.initDotEvents(),e.checkResponsive(!1,!0),e.options.focusOnSelect===!0&&t(e.$slideTrack).children().on("click.slick",e.selectHandler),e.setSlideClasses(0),e.setPosition(),e.$slider.trigger("reInit",[e]),e.options.autoplay===!0&&e.focusHandler()},e.prototype.resize=function(){var e=this;t(window).width()!==e.windowWidth&&(clearTimeout(e.windowDelay),e.windowDelay=window.setTimeout(function(){e.windowWidth=t(window).width(),e.checkResponsive(),e.unslicked||e.setPosition()},50))},e.prototype.removeSlide=e.prototype.slickRemove=function(t,e,n){var i=this;return"boolean"==typeof t?(e=t,t=e===!0?0:i.slideCount-1):t=e===!0?--t:t,!(i.slideCount<1||0>t||t>i.slideCount-1)&&(i.unload(),n===!0?i.$slideTrack.children().remove():i.$slideTrack.children(this.options.slide).eq(t).remove(),i.$slides=i.$slideTrack.children(this.options.slide),i.$slideTrack.children(this.options.slide).detach(),i.$slideTrack.append(i.$slides),i.$slidesCache=i.$slides,void i.reinit())},e.prototype.setCSS=function(t){var e,n,i=this,o={};i.options.rtl===!0&&(t=-t),e="left"==i.positionProp?Math.ceil(t)+"px":"0px",n="top"==i.positionProp?Math.ceil(t)+"px":"0px",o[i.positionProp]=t,i.transformsEnabled===!1?i.$slideTrack.css(o):(o={},i.cssTransitions===!1?(o[i.animType]="translate("+e+", "+n+")",i.$slideTrack.css(o)):(o[i.animType]="translate3d("+e+", "+n+", 0px)",i.$slideTrack.css(o)))},e.prototype.setDimensions=function(){var t=this;t.options.vertical===!1?t.options.centerMode===!0&&t.$list.css({padding:"0px "+t.options.centerPadding}):(t.$list.height(t.$slides.first().outerHeight(!0)*t.options.slidesToShow),t.options.centerMode===!0&&t.$list.css({padding:t.options.centerPadding+" 0px"})),t.listWidth=t.$list.width(),t.listHeight=t.$list.height(),t.options.vertical===!1&&t.options.variableWidth===!1?(t.slideWidth=Math.ceil(t.listWidth/t.options.slidesToShow),t.$slideTrack.width(Math.ceil(t.slideWidth*t.$slideTrack.children(".slick-slide").length))):t.options.variableWidth===!0?t.$slideTrack.width(5e3*t.slideCount):(t.slideWidth=Math.ceil(t.listWidth),t.$slideTrack.height(Math.ceil(t.$slides.first().outerHeight(!0)*t.$slideTrack.children(".slick-slide").length)));var e=t.$slides.first().outerWidth(!0)-t.$slides.first().width();t.options.variableWidth===!1&&t.$slideTrack.children(".slick-slide").width(t.slideWidth-e)},e.prototype.setFade=function(){var e,n=this;n.$slides.each(function(i,o){e=n.slideWidth*i*-1,n.options.rtl===!0?t(o).css({position:"relative",right:e,top:0,zIndex:n.options.zIndex-2,opacity:0}):t(o).css({position:"relative",left:e,top:0,zIndex:n.options.zIndex-2,opacity:0})}),n.$slides.eq(n.currentSlide).css({zIndex:n.options.zIndex-1,opacity:1})},e.prototype.setHeight=function(){var t=this;if(1===t.options.slidesToShow&&t.options.adaptiveHeight===!0&&t.options.vertical===!1){var e=t.$slides.eq(t.currentSlide).outerHeight(!0);t.$list.css("height",e)}},e.prototype.setOption=e.prototype.slickSetOption=function(e,n,i){var o,a,s=this;if("responsive"===e&&"array"===t.type(n))for(a in n)if("array"!==t.type(s.options.responsive))s.options.responsive=[n[a]];else{for(o=s.options.responsive.length-1;o>=0;)s.options.responsive[o].breakpoint===n[a].breakpoint&&s.options.responsive.splice(o,1),o--;s.options.responsive.push(n[a])}else s.options[e]=n;i===!0&&(s.unload(),s.reinit())},e.prototype.setPosition=function(){var t=this;t.setDimensions(),t.setHeight(),t.options.fade===!1?t.setCSS(t.getLeft(t.currentSlide)):t.setFade(),t.$slider.trigger("setPosition",[t])},e.prototype.setProps=function(){var t=this,e=document.body.style;t.positionProp=t.options.vertical===!0?"top":"left","top"===t.positionProp?t.$slider.addClass("slick-vertical"):t.$slider.removeClass("slick-vertical"),(void 0!==e.WebkitTransition||void 0!==e.MozTransition||void 0!==e.msTransition)&&t.options.useCSS===!0&&(t.cssTransitions=!0),t.options.fade&&("number"==typeof t.options.zIndex?t.options.zIndex<3&&(t.options.zIndex=3):t.options.zIndex=t.defaults.zIndex),void 0!==e.OTransform&&(t.animType="OTransform",t.transformType="-o-transform",t.transitionType="OTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(t.animType=!1)),void 0!==e.MozTransform&&(t.animType="MozTransform",t.transformType="-moz-transform",t.transitionType="MozTransition",void 0===e.perspectiveProperty&&void 0===e.MozPerspective&&(t.animType=!1)),void 0!==e.webkitTransform&&(t.animType="webkitTransform",t.transformType="-webkit-transform",t.transitionType="webkitTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(t.animType=!1)),void 0!==e.msTransform&&(t.animType="msTransform",t.transformType="-ms-transform",t.transitionType="msTransition",void 0===e.msTransform&&(t.animType=!1)),void 0!==e.transform&&t.animType!==!1&&(t.animType="transform",t.transformType="transform",t.transitionType="transition"),t.transformsEnabled=t.options.useTransform&&null!==t.animType&&t.animType!==!1},e.prototype.setSlideClasses=function(t){var e,n,i,o,a=this;n=a.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),a.$slides.eq(t).addClass("slick-current"),a.options.centerMode===!0?(e=Math.floor(a.options.slidesToShow/2),a.options.infinite===!0&&(t>=e&&t<=a.slideCount-1-e?a.$slides.slice(t-e,t+e+1).addClass("slick-active").attr("aria-hidden","false"):(i=a.options.slidesToShow+t,n.slice(i-e+1,i+e+2).addClass("slick-active").attr("aria-hidden","false")),0===t?n.eq(n.length-1-a.options.slidesToShow).addClass("slick-center"):t===a.slideCount-1&&n.eq(a.options.slidesToShow).addClass("slick-center")),a.$slides.eq(t).addClass("slick-center")):t>=0&&t<=a.slideCount-a.options.slidesToShow?a.$slides.slice(t,t+a.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):n.length<=a.options.slidesToShow?n.addClass("slick-active").attr("aria-hidden","false"):(o=a.slideCount%a.options.slidesToShow,i=a.options.infinite===!0?a.options.slidesToShow+t:t,a.options.slidesToShow==a.options.slidesToScroll&&a.slideCount-t<a.options.slidesToShow?n.slice(i-(a.options.slidesToShow-o),i+o).addClass("slick-active").attr("aria-hidden","false"):n.slice(i,i+a.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false")),"ondemand"===a.options.lazyLoad&&a.lazyLoad()},e.prototype.setupInfinite=function(){var e,n,i,o=this;if(o.options.fade===!0&&(o.options.centerMode=!1),o.options.infinite===!0&&o.options.fade===!1&&(n=null,o.slideCount>o.options.slidesToShow)){for(i=o.options.centerMode===!0?o.options.slidesToShow+1:o.options.slidesToShow,e=o.slideCount;e>o.slideCount-i;e-=1)n=e-1,t(o.$slides[n]).clone(!0).attr("id","").attr("data-slick-index",n-o.slideCount).prependTo(o.$slideTrack).addClass("slick-cloned");for(e=0;i>e;e+=1)n=e,t(o.$slides[n]).clone(!0).attr("id","").attr("data-slick-index",n+o.slideCount).appendTo(o.$slideTrack).addClass("slick-cloned");o.$slideTrack.find(".slick-cloned").find("[id]").each(function(){t(this).attr("id","")})}},e.prototype.setPaused=function(t){var e=this;e.options.autoplay===!0&&e.options.pauseOnHover===!0&&(e.paused=t,t?e.autoPlayClear():e.autoPlay())},e.prototype.selectHandler=function(e){var n=this,i=t(e.target).is(".slick-slide")?t(e.target):t(e.target).parents(".slick-slide"),o=parseInt(i.attr("data-slick-index"));return o||(o=0),n.slideCount<=n.options.slidesToShow?(n.setSlideClasses(o),void n.asNavFor(o)):void n.slideHandler(o)},e.prototype.slideHandler=function(t,e,n){var i,o,a,s,r=null,l=this;return e=e||!1,l.animating===!0&&l.options.waitForAnimate===!0||l.options.fade===!0&&l.currentSlide===t||l.slideCount<=l.options.slidesToShow?void 0:(e===!1&&l.asNavFor(t),i=t,r=l.getLeft(i),s=l.getLeft(l.currentSlide),l.currentLeft=null===l.swipeLeft?s:l.swipeLeft,l.options.infinite===!1&&l.options.centerMode===!1&&(0>t||t>l.getDotCount()*l.options.slidesToScroll)?void(l.options.fade===!1&&(i=l.currentSlide,n!==!0?l.animateSlide(s,function(){l.postSlide(i)}):l.postSlide(i))):l.options.infinite===!1&&l.options.centerMode===!0&&(0>t||t>l.slideCount-l.options.slidesToScroll)?void(l.options.fade===!1&&(i=l.currentSlide,n!==!0?l.animateSlide(s,function(){l.postSlide(i)}):l.postSlide(i))):(l.options.autoplay===!0&&clearInterval(l.autoPlayTimer),o=0>i?l.slideCount%l.options.slidesToScroll!==0?l.slideCount-l.slideCount%l.options.slidesToScroll:l.slideCount+i:i>=l.slideCount?l.slideCount%l.options.slidesToScroll!==0?0:i-l.slideCount:i,l.animating=!0,l.$slider.trigger("beforeChange",[l,l.currentSlide,o]),a=l.currentSlide,l.currentSlide=o,l.setSlideClasses(l.currentSlide),l.updateDots(),l.updateArrows(),l.options.fade===!0?(n!==!0?(l.fadeSlideOut(a),l.fadeSlide(o,function(){l.postSlide(o)})):l.postSlide(o),void l.animateHeight()):void(n!==!0?l.animateSlide(r,function(){l.postSlide(o)}):l.postSlide(o))))},e.prototype.startLoad=function(){var t=this;t.options.arrows===!0&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.hide(),t.$nextArrow.hide()),t.options.dots===!0&&t.slideCount>t.options.slidesToShow&&t.$dots.hide(),t.$slider.addClass("slick-loading")},e.prototype.swipeDirection=function(){var t,e,n,i,o=this;return t=o.touchObject.startX-o.touchObject.curX,e=o.touchObject.startY-o.touchObject.curY,n=Math.atan2(e,t),i=Math.round(180*n/Math.PI),0>i&&(i=360-Math.abs(i)),45>=i&&i>=0?o.options.rtl===!1?"left":"right":360>=i&&i>=315?o.options.rtl===!1?"left":"right":i>=135&&225>=i?o.options.rtl===!1?"right":"left":o.options.verticalSwiping===!0?i>=35&&135>=i?"left":"right":"vertical"},e.prototype.swipeEnd=function(t){var e,n=this;if(n.dragging=!1,n.shouldClick=!(n.touchObject.swipeLength>10),void 0===n.touchObject.curX)return!1;if(n.touchObject.edgeHit===!0&&n.$slider.trigger("edge",[n,n.swipeDirection()]),n.touchObject.swipeLength>=n.touchObject.minSwipe)switch(n.swipeDirection()){case"left":e=n.options.swipeToSlide?n.checkNavigable(n.currentSlide+n.getSlideCount()):n.currentSlide+n.getSlideCount(),n.slideHandler(e),n.currentDirection=0,n.touchObject={},n.$slider.trigger("swipe",[n,"left"]);break;case"right":e=n.options.swipeToSlide?n.checkNavigable(n.currentSlide-n.getSlideCount()):n.currentSlide-n.getSlideCount(),n.slideHandler(e),n.currentDirection=1,n.touchObject={},n.$slider.trigger("swipe",[n,"right"])}else n.touchObject.startX!==n.touchObject.curX&&(n.slideHandler(n.currentSlide),n.touchObject={})},e.prototype.swipeHandler=function(t){var e=this;if(!(e.options.swipe===!1||"ontouchend"in document&&e.options.swipe===!1||e.options.draggable===!1&&-1!==t.type.indexOf("mouse")))switch(e.touchObject.fingerCount=t.originalEvent&&void 0!==t.originalEvent.touches?t.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,e.options.verticalSwiping===!0&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),t.data.action){case"start":e.swipeStart(t);break;case"move":e.swipeMove(t);break;case"end":e.swipeEnd(t)}},e.prototype.swipeMove=function(t){var e,n,i,o,a,s=this;return a=void 0!==t.originalEvent?t.originalEvent.touches:null,!(!s.dragging||a&&1!==a.length)&&(e=s.getLeft(s.currentSlide),s.touchObject.curX=void 0!==a?a[0].pageX:t.clientX,s.touchObject.curY=void 0!==a?a[0].pageY:t.clientY,s.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(s.touchObject.curX-s.touchObject.startX,2))),s.options.verticalSwiping===!0&&(s.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(s.touchObject.curY-s.touchObject.startY,2)))),n=s.swipeDirection(),"vertical"!==n?(void 0!==t.originalEvent&&s.touchObject.swipeLength>4&&t.preventDefault(),o=(s.options.rtl===!1?1:-1)*(s.touchObject.curX>s.touchObject.startX?1:-1),s.options.verticalSwiping===!0&&(o=s.touchObject.curY>s.touchObject.startY?1:-1),i=s.touchObject.swipeLength,s.touchObject.edgeHit=!1,s.options.infinite===!1&&(0===s.currentSlide&&"right"===n||s.currentSlide>=s.getDotCount()&&"left"===n)&&(i=s.touchObject.swipeLength*s.options.edgeFriction,s.touchObject.edgeHit=!0),s.options.vertical===!1?s.swipeLeft=e+i*o:s.swipeLeft=e+i*(s.$list.height()/s.listWidth)*o,s.options.verticalSwiping===!0&&(s.swipeLeft=e+i*o),s.options.fade!==!0&&s.options.touchMove!==!1&&(s.animating===!0?(s.swipeLeft=null,!1):void s.setCSS(s.swipeLeft))):void 0)},e.prototype.swipeStart=function(t){var e,n=this;return 1!==n.touchObject.fingerCount||n.slideCount<=n.options.slidesToShow?(n.touchObject={},!1):(void 0!==t.originalEvent&&void 0!==t.originalEvent.touches&&(e=t.originalEvent.touches[0]),n.touchObject.startX=n.touchObject.curX=void 0!==e?e.pageX:t.clientX,n.touchObject.startY=n.touchObject.curY=void 0!==e?e.pageY:t.clientY,void(n.dragging=!0))},e.prototype.unfilterSlides=e.prototype.slickUnfilter=function(){var t=this;null!==t.$slidesCache&&(t.unload(),t.$slideTrack.children(this.options.slide).detach(),t.$slidesCache.appendTo(t.$slideTrack),t.reinit())},e.prototype.unload=function(){var e=this;t(".slick-cloned",e.$slider).remove(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove(),e.$nextArrow&&e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove(),e.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},e.prototype.unslick=function(t){var e=this;e.$slider.trigger("unslick",[e,t]),e.destroy()},e.prototype.updateArrows=function(){var t,e=this;t=Math.floor(e.options.slidesToShow/2),e.options.arrows===!0&&e.slideCount>e.options.slidesToShow&&!e.options.infinite&&(e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===e.currentSlide?(e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):e.currentSlide>=e.slideCount-e.options.slidesToShow&&e.options.centerMode===!1?(e.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):e.currentSlide>=e.slideCount-1&&e.options.centerMode===!0&&(e.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},e.prototype.updateDots=function(){var t=this;null!==t.$dots&&(t.$dots.find("li").removeClass("slick-active").attr("aria-hidden","true"),
t.$dots.find("li").eq(Math.floor(t.currentSlide/t.options.slidesToScroll)).addClass("slick-active").attr("aria-hidden","false"))},e.prototype.visibility=function(){var t=this;document[t.hidden]?(t.paused=!0,t.autoPlayClear()):t.options.autoplay===!0&&(t.paused=!1,t.autoPlay())},e.prototype.initADA=function(){var e=this;e.$slides.add(e.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),e.$slideTrack.attr("role","listbox"),e.$slides.not(e.$slideTrack.find(".slick-cloned")).each(function(n){t(this).attr({role:"option","aria-describedby":"slick-slide"+e.instanceUid+n})}),null!==e.$dots&&e.$dots.attr("role","tablist").find("li").each(function(n){t(this).attr({role:"presentation","aria-selected":"false","aria-controls":"navigation"+e.instanceUid+n,id:"slick-slide"+e.instanceUid+n})}).first().attr("aria-selected","true").end().find("button").attr("role","button").end().closest("div").attr("role","toolbar"),e.activateADA()},e.prototype.activateADA=function(){var t=this;t.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},e.prototype.focusHandler=function(){var e=this;e.$slider.on("focus.slick blur.slick","*",function(n){n.stopImmediatePropagation();var i=t(this);setTimeout(function(){e.isPlay&&(i.is(":focus")?(e.autoPlayClear(),e.paused=!0):(e.paused=!1,e.autoPlay()))},0)})},t.fn.slick=function(){var t,n,i=this,o=arguments[0],a=Array.prototype.slice.call(arguments,1),s=i.length;for(t=0;s>t;t++)if("object"==typeof o||"undefined"==typeof o?i[t].slick=new e(i[t],o):n=i[t].slick[o].apply(i[t].slick,a),"undefined"!=typeof n)return n;return i}}),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(t){t.fn.addBack=t.fn.addBack||t.fn.andSelf,t.fn.extend({actual:function(e,n){if(!this[e])throw'$.actual => The jQuery method "'+e+'" you called does not exist';var i,o,a={absolute:!1,clone:!1,includeMargin:!1,display:"block"},s=t.extend(a,n),r=this.eq(0);if(s.clone===!0)i=function(){var t="position: absolute !important; top: -1000 !important; ";r=r.clone().attr("style",t).appendTo("body")},o=function(){r.remove()};else{var l,d=[],c="";i=function(){l=r.parents().addBack().filter(":hidden"),c+="visibility: hidden !important; display: "+s.display+" !important; ",s.absolute===!0&&(c+="position: absolute !important; "),l.each(function(){var e=t(this),n=e.attr("style");d.push(n),e.attr("style",n?n+";"+c:c)})},o=function(){l.each(function(e){var n=t(this),i=d[e];void 0===i?n.removeAttr("style"):n.attr("style",i)})}}i();var u=/(outer)/.test(e)?r[e](s.includeMargin):r[e]();return o(),u}})}),function(t,e,n,i){var o=n("html"),a=n(t),s=n(e),r=n.fancybox=function(){r.open.apply(this,arguments)},l=navigator.userAgent.match(/msie/i),d=null,c=e.createTouch!==i,u=function(t){return t&&t.hasOwnProperty&&t instanceof n},p=function(t){return t&&"string"===n.type(t)},h=function(t){return p(t)&&0<t.indexOf("%")},f=function(t,e){var n=parseInt(t,10)||0;return e&&h(t)&&(n*=r.getViewport()[e]/100),Math.ceil(n)},g=function(t,e){return f(t,e)+"px"};n.extend(r,{version:"2.1.5",defaults:{padding:15,margin:20,width:800,height:600,minWidth:100,minHeight:100,maxWidth:9999,maxHeight:9999,pixelRatio:1,autoSize:!0,autoHeight:!1,autoWidth:!1,autoResize:!0,autoCenter:!c,fitToView:!0,aspectRatio:!1,topRatio:.5,leftRatio:.5,scrolling:"auto",wrapCSS:"",arrows:!0,closeBtn:!0,closeClick:!1,nextClick:!1,mouseWheel:!0,autoPlay:!1,playSpeed:3e3,preload:3,modal:!1,loop:!0,ajax:{dataType:"html",headers:{"X-fancyBox":!0}},iframe:{scrolling:"auto",preload:!0},swf:{wmode:"transparent",allowfullscreen:"true",allowscriptaccess:"always"},keys:{next:{13:"left",34:"up",39:"left",40:"up"},prev:{8:"right",33:"down",37:"right",38:"down"},close:[27],play:[32],toggle:[70]},direction:{next:"left",prev:"right"},scrollOutside:!0,index:0,type:null,href:null,content:null,title:null,tpl:{wrap:'<div class="fancybox-wrap" tabIndex="-1"><div class="fancybox-skin"><div class="fancybox-outer"><div class="fancybox-inner"></div></div></div></div>',image:'<img class="fancybox-image" src="{href}" alt="" />',iframe:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen'+(l?' allowtransparency="true"':"")+"></iframe>",error:'<p class="fancybox-error">The requested content cannot be loaded.<br/>Please try again later.</p>',closeBtn:'<a title="Close" class="fancybox-item fancybox-close" href="javascript:;"></a>',next:'<a title="Next" class="fancybox-nav fancybox-next" href="javascript:;"><span></span></a>',prev:'<a title="Previous" class="fancybox-nav fancybox-prev" href="javascript:;"><span></span></a>'},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:!0,openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:250,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:250,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:!0,title:!0},onCancel:n.noop,beforeLoad:n.noop,afterLoad:n.noop,beforeShow:n.noop,afterShow:n.noop,beforeChange:n.noop,beforeClose:n.noop,afterClose:n.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:!1,isOpen:!1,isOpened:!1,wrap:null,skin:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(t,e){if(t&&(n.isPlainObject(e)||(e={}),!1!==r.close(!0)))return n.isArray(t)||(t=u(t)?n(t).get():[t]),n.each(t,function(o,a){var s,l,d,c,h,f={};"object"===n.type(a)&&(a.nodeType&&(a=n(a)),u(a)?(f={href:a.data("fancybox-href")||a.attr("href"),title:a.data("fancybox-title")||a.attr("title"),isDom:!0,element:a},n.metadata&&n.extend(!0,f,a.metadata())):f=a),s=e.href||f.href||(p(a)?a:null),l=e.title!==i?e.title:f.title||"",c=(d=e.content||f.content)?"html":e.type||f.type,!c&&f.isDom&&(c=a.data("fancybox-type"),c||(c=(c=a.prop("class").match(/fancybox\.(\w+)/))?c[1]:null)),p(s)&&(c||(r.isImage(s)?c="image":r.isSWF(s)?c="swf":"#"===s.charAt(0)?c="inline":p(a)&&(c="html",d=a)),"ajax"===c&&(h=s.split(/\s+/,2),s=h.shift(),h=h.shift())),d||("inline"===c?s?d=n(p(s)?s.replace(/.*(?=#[^\s]+$)/,""):s):f.isDom&&(d=a):"html"===c?d=s:!c&&!s&&f.isDom&&(c="inline",d=a)),n.extend(f,{href:s,type:c,content:d,title:l,selector:h}),t[o]=f}),r.opts=n.extend(!0,{},r.defaults,e),e.keys!==i&&(r.opts.keys=!!e.keys&&n.extend({},r.defaults.keys,e.keys)),r.group=t,r._start(r.opts.index)},cancel:function(){var t=r.coming;t&&!1!==r.trigger("onCancel")&&(r.hideLoading(),r.ajaxLoad&&r.ajaxLoad.abort(),r.ajaxLoad=null,r.imgPreload&&(r.imgPreload.onload=r.imgPreload.onerror=null),t.wrap&&t.wrap.stop(!0,!0).trigger("onReset").remove(),r.coming=null,r.current||r._afterZoomOut(t))},close:function(t){r.cancel(),!1!==r.trigger("beforeClose")&&(r.unbindEvents(),r.isActive&&(r.isOpen&&!0!==t?(r.isOpen=r.isOpened=!1,r.isClosing=!0,n(".fancybox-item, .fancybox-nav").remove(),r.wrap.stop(!0,!0).removeClass("fancybox-opened"),r.transitions[r.current.closeMethod]()):(n(".fancybox-wrap").stop(!0).trigger("onReset").remove(),r._afterZoomOut())))},play:function(t){var e=function(){clearTimeout(r.player.timer)},n=function(){e(),r.current&&r.player.isActive&&(r.player.timer=setTimeout(r.next,r.current.playSpeed))},i=function(){e(),s.unbind(".player"),r.player.isActive=!1,r.trigger("onPlayEnd")};!0===t||!r.player.isActive&&!1!==t?r.current&&(r.current.loop||r.current.index<r.group.length-1)&&(r.player.isActive=!0,s.bind({"onCancel.player beforeClose.player":i,"onUpdate.player":n,"beforeLoad.player":e}),n(),r.trigger("onPlayStart")):i()},next:function(t){var e=r.current;e&&(p(t)||(t=e.direction.next),r.jumpto(e.index+1,t,"next"))},prev:function(t){var e=r.current;e&&(p(t)||(t=e.direction.prev),r.jumpto(e.index-1,t,"prev"))},jumpto:function(t,e,n){var o=r.current;o&&(t=f(t),r.direction=e||o.direction[t>=o.index?"next":"prev"],r.router=n||"jumpto",o.loop&&(0>t&&(t=o.group.length+t%o.group.length),t%=o.group.length),o.group[t]!==i&&(r.cancel(),r._start(t)))},reposition:function(t,e){var i,o=r.current,a=o?o.wrap:null;a&&(i=r._getPosition(e),t&&"scroll"===t.type?(delete i.position,a.stop(!0,!0).animate(i,200)):(a.css(i),o.pos=n.extend({},o.dim,i)))},update:function(t){var e=t&&t.type,n=!e||"orientationchange"===e;n&&(clearTimeout(d),d=null),r.isOpen&&!d&&(d=setTimeout(function(){var i=r.current;i&&!r.isClosing&&(r.wrap.removeClass("fancybox-tmp"),(n||"load"===e||"resize"===e&&i.autoResize)&&r._setDimension(),"scroll"===e&&i.canShrink||r.reposition(t),r.trigger("onUpdate"),d=null)},n&&!c?0:300))},toggle:function(t){r.isOpen&&(r.current.fitToView="boolean"===n.type(t)?t:!r.current.fitToView,c&&(r.wrap.removeAttr("style").addClass("fancybox-tmp"),r.trigger("onUpdate")),r.update())},hideLoading:function(){s.unbind(".loading"),n("#fancybox-loading").remove()},showLoading:function(){var t,e;r.hideLoading(),t=n('<div id="fancybox-loading"><div></div></div>').click(r.cancel).appendTo("body"),s.bind("keydown.loading",function(t){27===(t.which||t.keyCode)&&(t.preventDefault(),r.cancel())}),r.defaults.fixed||(e=r.getViewport(),t.css({position:"absolute",top:.5*e.h+e.y,left:.5*e.w+e.x}))},getViewport:function(){var e=r.current&&r.current.locked||!1,n={x:a.scrollLeft(),y:a.scrollTop()};return e?(n.w=e[0].clientWidth,n.h=e[0].clientHeight):(n.w=c&&t.innerWidth?t.innerWidth:a.width(),n.h=c&&t.innerHeight?t.innerHeight:a.height()),n},unbindEvents:function(){r.wrap&&u(r.wrap)&&r.wrap.unbind(".fb"),s.unbind(".fb"),a.unbind(".fb")},bindEvents:function(){var t,e=r.current;e&&(a.bind("orientationchange.fb"+(c?"":" resize.fb")+(e.autoCenter&&!e.locked?" scroll.fb":""),r.update),(t=e.keys)&&s.bind("keydown.fb",function(o){var a=o.which||o.keyCode,s=o.target||o.srcElement;return(27!==a||!r.coming)&&void(!o.ctrlKey&&!o.altKey&&!o.shiftKey&&!o.metaKey&&(!s||!s.type&&!n(s).is("[contenteditable]"))&&n.each(t,function(t,s){return 1<e.group.length&&s[a]!==i?(r[t](s[a]),o.preventDefault(),!1):-1<n.inArray(a,s)?(r[t](),o.preventDefault(),!1):void 0}))}),n.fn.mousewheel&&e.mouseWheel&&r.wrap.bind("mousewheel.fb",function(t,i,o,a){for(var s=n(t.target||null),l=!1;s.length&&!l&&!s.is(".fancybox-skin")&&!s.is(".fancybox-wrap");)l=s[0]&&!(s[0].style.overflow&&"hidden"===s[0].style.overflow)&&(s[0].clientWidth&&s[0].scrollWidth>s[0].clientWidth||s[0].clientHeight&&s[0].scrollHeight>s[0].clientHeight),s=n(s).parent();0!==i&&!l&&1<r.group.length&&!e.canShrink&&(0<a||0<o?r.prev(0<a?"down":"left"):(0>a||0>o)&&r.next(0>a?"up":"right"),t.preventDefault())}))},trigger:function(t,e){var i,o=e||r.coming||r.current;if(o){if(n.isFunction(o[t])&&(i=o[t].apply(o,Array.prototype.slice.call(arguments,1))),!1===i)return!1;o.helpers&&n.each(o.helpers,function(e,i){i&&r.helpers[e]&&n.isFunction(r.helpers[e][t])&&r.helpers[e][t](n.extend(!0,{},r.helpers[e].defaults,i),o)}),s.trigger(t)}},isImage:function(t){return p(t)&&t.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)},isSWF:function(t){return p(t)&&t.match(/\.(swf)((\?|#).*)?$/i)},_start:function(t){var e,i,o={};if(t=f(t),e=r.group[t]||null,!e)return!1;if(o=n.extend(!0,{},r.opts,e),e=o.margin,i=o.padding,"number"===n.type(e)&&(o.margin=[e,e,e,e]),"number"===n.type(i)&&(o.padding=[i,i,i,i]),o.modal&&n.extend(!0,o,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1,mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}}),o.autoSize&&(o.autoWidth=o.autoHeight=!0),"auto"===o.width&&(o.autoWidth=!0),"auto"===o.height&&(o.autoHeight=!0),o.group=r.group,o.index=t,r.coming=o,!1===r.trigger("beforeLoad"))r.coming=null;else{if(i=o.type,e=o.href,!i)return r.coming=null,!(!r.current||!r.router||"jumpto"===r.router)&&(r.current.index=t,r[r.router](r.direction));if(r.isActive=!0,"image"!==i&&"swf"!==i||(o.autoHeight=o.autoWidth=!1,o.scrolling="visible"),"image"===i&&(o.aspectRatio=!0),"iframe"===i&&c&&(o.scrolling="scroll"),o.wrap=n(o.tpl.wrap).addClass("fancybox-"+(c?"mobile":"desktop")+" fancybox-type-"+i+" fancybox-tmp "+o.wrapCSS).appendTo(o.parent||"body"),n.extend(o,{skin:n(".fancybox-skin",o.wrap),outer:n(".fancybox-outer",o.wrap),inner:n(".fancybox-inner",o.wrap)}),n.each(["Top","Right","Bottom","Left"],function(t,e){o.skin.css("padding"+e,g(o.padding[t]))}),r.trigger("onReady"),"inline"===i||"html"===i){if(!o.content||!o.content.length)return r._error("content")}else if(!e)return r._error("href");"image"===i?r._loadImage():"ajax"===i?r._loadAjax():"iframe"===i?r._loadIframe():r._afterLoad()}},_error:function(t){n.extend(r.coming,{type:"html",autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:"no",hasError:t,content:r.coming.tpl.error}),r._afterLoad()},_loadImage:function(){var t=r.imgPreload=new Image;t.onload=function(){this.onload=this.onerror=null,r.coming.width=this.width/r.opts.pixelRatio,r.coming.height=this.height/r.opts.pixelRatio,r._afterLoad()},t.onerror=function(){this.onload=this.onerror=null,r._error("image")},t.src=r.coming.href,!0!==t.complete&&r.showLoading()},_loadAjax:function(){var t=r.coming;r.showLoading(),r.ajaxLoad=n.ajax(n.extend({},t.ajax,{url:t.href,error:function(t,e){r.coming&&"abort"!==e?r._error("ajax",t):r.hideLoading()},success:function(e,n){"success"===n&&(t.content=e,r._afterLoad())}}))},_loadIframe:function(){var t=r.coming,e=n(t.tpl.iframe.replace(/\{rnd\}/g,(new Date).getTime())).attr("scrolling",c?"auto":t.iframe.scrolling).attr("src",t.href);n(t.wrap).bind("onReset",function(){try{n(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(t){}}),t.iframe.preload&&(r.showLoading(),e.one("load",function(){n(this).data("ready",1),c||n(this).bind("load.fb",r.update),n(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show(),r._afterLoad()})),t.content=e.appendTo(t.inner),t.iframe.preload||r._afterLoad()},_preloadImages:function(){var t,e,n=r.group,i=r.current,o=n.length,a=i.preload?Math.min(i.preload,o-1):0;for(e=1;e<=a;e+=1)t=n[(i.index+e)%o],"image"===t.type&&t.href&&((new Image).src=t.href)},_afterLoad:function(){var t,e,i,o,a,s=r.coming,l=r.current;if(r.hideLoading(),s&&!1!==r.isActive)if(!1===r.trigger("afterLoad",s,l))s.wrap.stop(!0).trigger("onReset").remove(),r.coming=null;else{switch(l&&(r.trigger("beforeChange",l),l.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove()),r.unbindEvents(),t=s.content,e=s.type,i=s.scrolling,n.extend(r,{wrap:s.wrap,skin:s.skin,outer:s.outer,inner:s.inner,current:s,previous:l}),o=s.href,e){case"inline":case"ajax":case"html":s.selector?t=n("<div>").html(t).find(s.selector):u(t)&&(t.data("fancybox-placeholder")||t.data("fancybox-placeholder",n('<div class="fancybox-placeholder"></div>').insertAfter(t).hide()),t=t.show().detach(),s.wrap.bind("onReset",function(){n(this).find(t).length&&t.hide().replaceAll(t.data("fancybox-placeholder")).data("fancybox-placeholder",!1)}));break;case"image":t=s.tpl.image.replace("{href}",o);break;case"swf":t='<object id="fancybox-swf" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%"><param name="movie" value="'+o+'"></param>',a="",n.each(s.swf,function(e,n){t+='<param name="'+e+'" value="'+n+'"></param>',a+=" "+e+'="'+n+'"'}),t+='<embed src="'+o+'" type="application/x-shockwave-flash" width="100%" height="100%"'+a+"></embed></object>"}(!u(t)||!t.parent().is(s.inner))&&s.inner.append(t),r.trigger("beforeShow"),s.inner.css("overflow","yes"===i?"scroll":"no"===i?"hidden":i),r._setDimension(),r.reposition(),r.isOpen=!1,r.coming=null,r.bindEvents(),r.isOpened?l.prevMethod&&r.transitions[l.prevMethod]():n(".fancybox-wrap").not(s.wrap).stop(!0).trigger("onReset").remove(),r.transitions[r.isOpened?s.nextMethod:s.openMethod](),r._preloadImages()}},_setDimension:function(){var t,e,i,o,a,s,l,d,c,u=r.getViewport(),p=0,m=!1,v=!1,m=r.wrap,b=r.skin,y=r.inner,w=r.current,v=w.width,x=w.height,C=w.minWidth,_=w.minHeight,k=w.maxWidth,S=w.maxHeight,T=w.scrolling,$=w.scrollOutside?w.scrollbarWidth:0,I=w.margin,A=f(I[1]+I[3]),E=f(I[0]+I[2]);if(m.add(b).add(y).width("auto").height("auto").removeClass("fancybox-tmp"),I=f(b.outerWidth(!0)-b.width()),t=f(b.outerHeight(!0)-b.height()),e=A+I,i=E+t,o=h(v)?(u.w-e)*f(v)/100:v,a=h(x)?(u.h-i)*f(x)/100:x,"iframe"===w.type){if(c=w.content,w.autoHeight&&1===c.data("ready"))try{c[0].contentWindow.document.location&&(y.width(o).height(9999),s=c.contents().find("body"),$&&s.css("overflow-x","hidden"),a=s.outerHeight(!0))}catch(t){}}else(w.autoWidth||w.autoHeight)&&(y.addClass("fancybox-tmp"),w.autoWidth||y.width(o),w.autoHeight||y.height(a),w.autoWidth&&(o=y.width()),w.autoHeight&&(a=y.height()),y.removeClass("fancybox-tmp"));if(v=f(o),x=f(a),d=o/a,C=f(h(C)?f(C,"w")-e:C),k=f(h(k)?f(k,"w")-e:k),_=f(h(_)?f(_,"h")-i:_),S=f(h(S)?f(S,"h")-i:S),s=k,l=S,w.fitToView&&(k=Math.min(u.w-e,k),S=Math.min(u.h-i,S)),e=u.w-A,E=u.h-E,w.aspectRatio?(v>k&&(v=k,x=f(v/d)),x>S&&(x=S,v=f(x*d)),v<C&&(v=C,x=f(v/d)),x<_&&(x=_,v=f(x*d))):(v=Math.max(C,Math.min(v,k)),w.autoHeight&&"iframe"!==w.type&&(y.width(v),x=y.height()),x=Math.max(_,Math.min(x,S))),w.fitToView)if(y.width(v).height(x),m.width(v+I),u=m.width(),A=m.height(),w.aspectRatio)for(;(u>e||A>E)&&v>C&&x>_&&!(19<p++);)x=Math.max(_,Math.min(S,x-10)),v=f(x*d),v<C&&(v=C,x=f(v/d)),v>k&&(v=k,x=f(v/d)),y.width(v).height(x),m.width(v+I),u=m.width(),A=m.height();else v=Math.max(C,Math.min(v,v-(u-e))),x=Math.max(_,Math.min(x,x-(A-E)));$&&"auto"===T&&x<a&&v+I+$<e&&(v+=$),y.width(v).height(x),m.width(v+I),u=m.width(),A=m.height(),m=(u>e||A>E)&&v>C&&x>_,v=w.aspectRatio?v<s&&x<l&&v<o&&x<a:(v<s||x<l)&&(v<o||x<a),n.extend(w,{dim:{width:g(u),height:g(A)},origWidth:o,origHeight:a,canShrink:m,canExpand:v,wPadding:I,hPadding:t,wrapSpace:A-b.outerHeight(!0),skinSpace:b.height()-x}),!c&&w.autoHeight&&x>_&&x<S&&!v&&y.height("auto")},_getPosition:function(t){var e=r.current,n=r.getViewport(),i=e.margin,o=r.wrap.width()+i[1]+i[3],a=r.wrap.height()+i[0]+i[2],i={position:"absolute",top:i[0],left:i[3]};return e.autoCenter&&e.fixed&&!t&&a<=n.h&&o<=n.w?i.position="fixed":e.locked||(i.top+=n.y,i.left+=n.x),i.top=g(Math.max(i.top,i.top+(n.h-a)*e.topRatio)),i.left=g(Math.max(i.left,i.left+(n.w-o)*e.leftRatio)),i},_afterZoomIn:function(){var t=r.current;t&&(r.isOpen=r.isOpened=!0,r.wrap.css("overflow","visible").addClass("fancybox-opened"),r.update(),(t.closeClick||t.nextClick&&1<r.group.length)&&r.inner.css("cursor","pointer").bind("click.fb",function(e){!n(e.target).is("a")&&!n(e.target).parent().is("a")&&(e.preventDefault(),r[t.closeClick?"close":"next"]())}),t.closeBtn&&n(t.tpl.closeBtn).appendTo(r.skin).bind("click.fb",function(t){t.preventDefault(),r.close()}),t.arrows&&1<r.group.length&&((t.loop||0<t.index)&&n(t.tpl.prev).appendTo(r.outer).bind("click.fb",r.prev),(t.loop||t.index<r.group.length-1)&&n(t.tpl.next).appendTo(r.outer).bind("click.fb",r.next)),r.trigger("afterShow"),t.loop||t.index!==t.group.length-1?r.opts.autoPlay&&!r.player.isActive&&(r.opts.autoPlay=!1,r.play()):r.play(!1))},_afterZoomOut:function(t){t=t||r.current,n(".fancybox-wrap").trigger("onReset").remove(),n.extend(r,{group:{},opts:{},router:!1,current:null,isActive:!1,isOpened:!1,isOpen:!1,isClosing:!1,wrap:null,skin:null,outer:null,inner:null}),r.trigger("afterClose",t)}}),r.transitions={getOrigPosition:function(){var t=r.current,e=t.element,n=t.orig,i={},o=50,a=50,s=t.hPadding,l=t.wPadding,d=r.getViewport();return!n&&t.isDom&&e.is(":visible")&&(n=e.find("img:first"),n.length||(n=e)),u(n)?(i=n.offset(),n.is("img")&&(o=n.outerWidth(),a=n.outerHeight())):(i.top=d.y+(d.h-a)*t.topRatio,i.left=d.x+(d.w-o)*t.leftRatio),("fixed"===r.wrap.css("position")||t.locked)&&(i.top-=d.y,i.left-=d.x),i={top:g(i.top-s*t.topRatio),left:g(i.left-l*t.leftRatio),width:g(o+l),height:g(a+s)}},step:function(t,e){var n,i,o=e.prop;i=r.current;var a=i.wrapSpace,s=i.skinSpace;"width"!==o&&"height"!==o||(n=e.end===e.start?1:(t-e.start)/(e.end-e.start),r.isClosing&&(n=1-n),i="width"===o?i.wPadding:i.hPadding,i=t-i,r.skin[o](f("width"===o?i:i-a*n)),r.inner[o](f("width"===o?i:i-a*n-s*n)))},zoomIn:function(){var t=r.current,e=t.pos,i=t.openEffect,o="elastic"===i,a=n.extend({opacity:1},e);delete a.position,o?(e=this.getOrigPosition(),t.openOpacity&&(e.opacity=.1)):"fade"===i&&(e.opacity=.1),r.wrap.css(e).animate(a,{duration:"none"===i?0:t.openSpeed,easing:t.openEasing,step:o?this.step:null,complete:r._afterZoomIn})},zoomOut:function(){var t=r.current,e=t.closeEffect,n="elastic"===e,i={opacity:.1};n&&(i=this.getOrigPosition(),t.closeOpacity&&(i.opacity=.1)),r.wrap.animate(i,{duration:"none"===e?0:t.closeSpeed,easing:t.closeEasing,step:n?this.step:null,complete:r._afterZoomOut})},changeIn:function(){var t,e=r.current,n=e.nextEffect,i=e.pos,o={opacity:1},a=r.direction;i.opacity=.1,"elastic"===n&&(t="down"===a||"up"===a?"top":"left","down"===a||"right"===a?(i[t]=g(f(i[t])-200),o[t]="+=200px"):(i[t]=g(f(i[t])+200),o[t]="-=200px")),"none"===n?r._afterZoomIn():r.wrap.css(i).animate(o,{duration:e.nextSpeed,easing:e.nextEasing,complete:r._afterZoomIn})},changeOut:function(){var t=r.previous,e=t.prevEffect,i={opacity:.1},o=r.direction;"elastic"===e&&(i["down"===o||"up"===o?"top":"left"]=("up"===o||"left"===o?"-":"+")+"=200px"),t.wrap.animate(i,{duration:"none"===e?0:t.prevSpeed,easing:t.prevEasing,complete:function(){n(this).trigger("onReset").remove()}})}},r.helpers.overlay={defaults:{closeClick:!0,speedOut:200,showEarly:!0,css:{},locked:!c,fixed:!0},overlay:null,fixed:!1,el:n("html"),create:function(t){t=n.extend({},this.defaults,t),this.overlay&&this.close(),this.overlay=n('<div class="fancybox-overlay"></div>').appendTo(r.coming?r.coming.parent:t.parent),this.fixed=!1,t.fixed&&r.defaults.fixed&&(this.overlay.addClass("fancybox-overlay-fixed"),this.fixed=!0)},open:function(t){var e=this;t=n.extend({},this.defaults,t),this.overlay?this.overlay.unbind(".overlay").width("auto").height("auto"):this.create(t),this.fixed||(a.bind("resize.overlay",n.proxy(this.update,this)),this.update()),t.closeClick&&this.overlay.bind("click.overlay",function(t){if(n(t.target).hasClass("fancybox-overlay"))return r.isActive?r.close():e.close(),!1}),this.overlay.css(t.css).show()},close:function(){var t,e;a.unbind("resize.overlay"),this.el.hasClass("fancybox-lock")&&(n(".fancybox-margin").removeClass("fancybox-margin"),t=a.scrollTop(),e=a.scrollLeft(),this.el.removeClass("fancybox-lock"),a.scrollTop(t).scrollLeft(e)),n(".fancybox-overlay").remove().hide(),n.extend(this,{overlay:null,fixed:!1})},update:function(){var t,n="100%";this.overlay.width(n).height("100%"),l?(t=Math.max(e.documentElement.offsetWidth,e.body.offsetWidth),s.width()>t&&(n=s.width())):s.width()>a.width()&&(n=s.width()),this.overlay.width(n).height(s.height())},onReady:function(t,e){var i=this.overlay;n(".fancybox-overlay").stop(!0,!0),i||this.create(t),t.locked&&this.fixed&&e.fixed&&(i||(this.margin=s.height()>a.height()&&n("html").css("margin-right").replace("px","")),e.locked=this.overlay.append(e.wrap),e.fixed=!1),!0===t.showEarly&&this.beforeShow.apply(this,arguments)},beforeShow:function(t,e){var i,o;e.locked&&(!1!==this.margin&&(n("*").filter(function(){return"fixed"===n(this).css("position")&&!n(this).hasClass("fancybox-overlay")&&!n(this).hasClass("fancybox-wrap")}).addClass("fancybox-margin"),this.el.addClass("fancybox-margin")),i=a.scrollTop(),o=a.scrollLeft(),this.el.addClass("fancybox-lock"),a.scrollTop(i).scrollLeft(o)),this.open(t)},onUpdate:function(){this.fixed||this.update()},afterClose:function(t){this.overlay&&!r.coming&&this.overlay.fadeOut(t.speedOut,n.proxy(this.close,this))}},r.helpers.title={defaults:{type:"float",position:"bottom"},beforeShow:function(t){var e=r.current,i=e.title,o=t.type;if(n.isFunction(i)&&(i=i.call(e.element,e)),p(i)&&""!==n.trim(i)){switch(e=n('<div class="fancybox-title fancybox-title-'+o+'-wrap">'+i+"</div>"),o){case"inside":o=r.skin;break;case"outside":o=r.wrap;break;case"over":o=r.inner;break;default:o=r.skin,e.appendTo("body"),l&&e.width(e.width()),e.wrapInner('<span class="child"></span>'),r.current.margin[2]+=Math.abs(f(e.css("margin-bottom")))}e["top"===t.position?"prependTo":"appendTo"](o)}}},n.fn.fancybox=function(t){var e,i=n(this),o=this.selector||"",a=function(a){var s,l,d=n(this).blur(),c=e;!a.ctrlKey&&!a.altKey&&!a.shiftKey&&!a.metaKey&&!d.is(".fancybox-wrap")&&(s=t.groupAttr||"data-fancybox-group",l=d.attr(s),l||(s="rel",l=d.get(0)[s]),l&&""!==l&&"nofollow"!==l&&(d=o.length?n(o):i,d=d.filter("["+s+'="'+l+'"]'),c=d.index(this)),t.index=c,!1!==r.open(d,t)&&a.preventDefault())};return t=t||{},e=t.index||0,o&&!1!==t.live?s.undelegate(o,"click.fb-start").delegate(o+":not('.fancybox-item, .fancybox-nav')","click.fb-start",a):i.unbind("click.fb-start").bind("click.fb-start",a),this.filter("[data-fancybox-start=1]").trigger("click"),this},s.ready(function(){var e,a;if(n.scrollbarWidth===i&&(n.scrollbarWidth=function(){var t=n('<div style="width:50px;height:50px;overflow:auto"><div/></div>').appendTo("body"),e=t.children(),e=e.innerWidth()-e.height(99).innerWidth();return t.remove(),e}),n.support.fixedPosition===i){e=n.support,a=n('<div style="position:fixed;top:20px;"></div>').appendTo("body");var s=20===a[0].offsetTop||15===a[0].offsetTop;a.remove(),e.fixedPosition=s}n.extend(r.defaults,{scrollbarWidth:n.scrollbarWidth(),fixed:n.support.fixedPosition,parent:n("body")}),e=n(t).width(),o.addClass("fancybox-lock-test"),a=n(t).width(),o.removeClass("fancybox-lock-test"),n("<style type='text/css'>.fancybox-margin{margin-right:"+(a-e)+"px;}</style>").appendTo("head")})}(window,document,jQuery),jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(t,e,n,i,o){return jQuery.easing[jQuery.easing.def](t,e,n,i,o)},easeInQuad:function(t,e,n,i,o){return i*(e/=o)*e+n},easeOutQuad:function(t,e,n,i,o){return-i*(e/=o)*(e-2)+n},easeInOutQuad:function(t,e,n,i,o){return(e/=o/2)<1?i/2*e*e+n:-i/2*(--e*(e-2)-1)+n},easeInCubic:function(t,e,n,i,o){return i*(e/=o)*e*e+n},easeOutCubic:function(t,e,n,i,o){return i*((e=e/o-1)*e*e+1)+n},easeInOutCubic:function(t,e,n,i,o){return(e/=o/2)<1?i/2*e*e*e+n:i/2*((e-=2)*e*e+2)+n},easeInQuart:function(t,e,n,i,o){return i*(e/=o)*e*e*e+n},easeOutQuart:function(t,e,n,i,o){return-i*((e=e/o-1)*e*e*e-1)+n},easeInOutQuart:function(t,e,n,i,o){return(e/=o/2)<1?i/2*e*e*e*e+n:-i/2*((e-=2)*e*e*e-2)+n},easeInQuint:function(t,e,n,i,o){return i*(e/=o)*e*e*e*e+n},easeOutQuint:function(t,e,n,i,o){return i*((e=e/o-1)*e*e*e*e+1)+n},easeInOutQuint:function(t,e,n,i,o){return(e/=o/2)<1?i/2*e*e*e*e*e+n:i/2*((e-=2)*e*e*e*e+2)+n},easeInSine:function(t,e,n,i,o){return-i*Math.cos(e/o*(Math.PI/2))+i+n},easeOutSine:function(t,e,n,i,o){return i*Math.sin(e/o*(Math.PI/2))+n},easeInOutSine:function(t,e,n,i,o){return-i/2*(Math.cos(Math.PI*e/o)-1)+n},easeInExpo:function(t,e,n,i,o){return 0==e?n:i*Math.pow(2,10*(e/o-1))+n},easeOutExpo:function(t,e,n,i,o){return e==o?n+i:i*(-Math.pow(2,-10*e/o)+1)+n},easeInOutExpo:function(t,e,n,i,o){return 0==e?n:e==o?n+i:(e/=o/2)<1?i/2*Math.pow(2,10*(e-1))+n:i/2*(-Math.pow(2,-10*--e)+2)+n},easeInCirc:function(t,e,n,i,o){return-i*(Math.sqrt(1-(e/=o)*e)-1)+n},easeOutCirc:function(t,e,n,i,o){return i*Math.sqrt(1-(e=e/o-1)*e)+n},easeInOutCirc:function(t,e,n,i,o){return(e/=o/2)<1?-i/2*(Math.sqrt(1-e*e)-1)+n:i/2*(Math.sqrt(1-(e-=2)*e)+1)+n},easeInElastic:function(t,e,n,i,o){var a=1.70158,s=0,r=i;if(0==e)return n;if(1==(e/=o))return n+i;if(s||(s=.3*o),r<Math.abs(i)){r=i;var a=s/4}else var a=s/(2*Math.PI)*Math.asin(i/r);return-(r*Math.pow(2,10*(e-=1))*Math.sin((e*o-a)*(2*Math.PI)/s))+n},easeOutElastic:function(t,e,n,i,o){var a=1.70158,s=0,r=i;if(0==e)return n;if(1==(e/=o))return n+i;if(s||(s=.3*o),r<Math.abs(i)){r=i;var a=s/4}else var a=s/(2*Math.PI)*Math.asin(i/r);return r*Math.pow(2,-10*e)*Math.sin((e*o-a)*(2*Math.PI)/s)+i+n},easeInOutElastic:function(t,e,n,i,o){var a=1.70158,s=0,r=i;if(0==e)return n;if(2==(e/=o/2))return n+i;if(s||(s=o*(.3*1.5)),r<Math.abs(i)){r=i;var a=s/4}else var a=s/(2*Math.PI)*Math.asin(i/r);return e<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e*o-a)*(2*Math.PI)/s))+n:r*Math.pow(2,-10*(e-=1))*Math.sin((e*o-a)*(2*Math.PI)/s)*.5+i+n},easeInBack:function(t,e,n,i,o,a){return void 0==a&&(a=1.70158),i*(e/=o)*e*((a+1)*e-a)+n},easeOutBack:function(t,e,n,i,o,a){return void 0==a&&(a=1.70158),i*((e=e/o-1)*e*((a+1)*e+a)+1)+n},easeInOutBack:function(t,e,n,i,o,a){return void 0==a&&(a=1.70158),(e/=o/2)<1?i/2*(e*e*(((a*=1.525)+1)*e-a))+n:i/2*((e-=2)*e*(((a*=1.525)+1)*e+a)+2)+n},easeInBounce:function(t,e,n,i,o){return i-jQuery.easing.easeOutBounce(t,o-e,0,i,o)+n},easeOutBounce:function(t,e,n,i,o){return(e/=o)<1/2.75?i*(7.5625*e*e)+n:e<2/2.75?i*(7.5625*(e-=1.5/2.75)*e+.75)+n:e<2.5/2.75?i*(7.5625*(e-=2.25/2.75)*e+.9375)+n:i*(7.5625*(e-=2.625/2.75)*e+.984375)+n},easeInOutBounce:function(t,e,n,i,o){return e<o/2?.5*jQuery.easing.easeInBounce(t,2*e,0,i,o)+n:.5*jQuery.easing.easeOutBounce(t,2*e-o,0,i,o)+.5*i+n}}),function(t){function e(e){var n=e||window.event,i=[].slice.call(arguments,1),o=0,a=0,s=0;return e=t.event.fix(n),e.type="mousewheel",n.wheelDelta&&(o=n.wheelDelta/120),n.detail&&(o=-n.detail/3),s=o,void 0!==n.axis&&n.axis===n.HORIZONTAL_AXIS&&(s=0,a=-1*o),void 0!==n.wheelDeltaY&&(s=n.wheelDeltaY/120),void 0!==n.wheelDeltaX&&(a=-1*n.wheelDeltaX/120),i.unshift(e,o,a,s),(t.event.dispatch||t.event.handle).apply(this,i)}var n=["DOMMouseScroll","mousewheel"];if(t.event.fixHooks)for(var i=n.length;i;)t.event.fixHooks[n[--i]]=t.event.mouseHooks;t.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var t=n.length;t;)this.addEventListener(n[--t],e,!1);else this.onmousewheel=e},teardown:function(){if(this.removeEventListener)for(var t=n.length;t;)this.removeEventListener(n[--t],e,!1);else this.onmousewheel=null}},t.fn.extend({mousewheel:function(t){return t?this.bind("mousewheel",t):this.trigger("mousewheel")},unmousewheel:function(t){return this.unbind("mousewheel",t)}})}(jQuery),function(t){var e={init:function(e){var n={set_width:!1,set_height:!1,horizontalScroll:!1,scrollInertia:950,mouseWheel:!0,mouseWheelPixels:"auto",autoDraggerLength:!0,autoHideScrollbar:!1,alwaysShowScrollbar:!1,snapAmount:null,snapOffset:0,scrollButtons:{enable:!1,scrollType:"continuous",scrollSpeed:"auto",scrollAmount:40},advanced:{updateOnBrowserResize:!0,updateOnContentResize:!1,autoExpandHorizontalScroll:!1,autoScrollOnFocus:!0,normalizeMouseWheelDelta:!1},contentTouchScroll:!0,callbacks:{onScrollStart:function(){},onScroll:function(){},onTotalScroll:function(){},onTotalScrollBack:function(){},onTotalScrollOffset:0,onTotalScrollBackOffset:0,whileScrolling:function(){}},theme:"light"},e=t.extend(!0,n,e);return this.each(function(){var n=t(this);if(e.set_width&&n.css("width",e.set_width),e.set_height&&n.css("height",e.set_height),t(document).data("mCustomScrollbar-index")){var i=parseInt(t(document).data("mCustomScrollbar-index"));t(document).data("mCustomScrollbar-index",i+1)}else t(document).data("mCustomScrollbar-index","1");n.wrapInner("<div class='mCustomScrollBox mCS-"+e.theme+"' id='mCSB_"+t(document).data("mCustomScrollbar-index")+"' style='position:relative; height:100%; overflow:hidden; max-width:100%;' />").addClass("mCustomScrollbar _mCS_"+t(document).data("mCustomScrollbar-index"));var o=n.children(".mCustomScrollBox");if(e.horizontalScroll){o.addClass("mCSB_horizontal").wrapInner("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />");var a=o.children(".mCSB_h_wrapper");a.wrapInner("<div class='mCSB_container' style='position:absolute; left:0;' />").children(".mCSB_container").css({width:a.children().outerWidth(),position:"relative"}).unwrap()}else o.wrapInner("<div class='mCSB_container' style='position:relative; top:0;' />");var s=o.children(".mCSB_container");t.support.touch&&s.addClass("mCS_touch"),s.after("<div class='mCSB_scrollTools' style='position:absolute;'><div class='mCSB_draggerContainer'><div class='mCSB_dragger' style='position:absolute;' oncontextmenu='return false;'><div class='mCSB_dragger_bar' style='position:relative;'></div></div><div class='mCSB_draggerRail'></div></div></div>");
var r=o.children(".mCSB_scrollTools"),l=r.children(".mCSB_draggerContainer"),d=l.children(".mCSB_dragger");if(e.horizontalScroll?d.data("minDraggerWidth",d.width()):d.data("minDraggerHeight",d.height()),e.scrollButtons.enable&&(e.horizontalScroll?r.prepend("<a class='mCSB_buttonLeft' oncontextmenu='return false;'></a>").append("<a class='mCSB_buttonRight' oncontextmenu='return false;'></a>"):r.prepend("<a class='mCSB_buttonUp' oncontextmenu='return false;'></a>").append("<a class='mCSB_buttonDown' oncontextmenu='return false;'></a>")),o.bind("scroll",function(){n.is(".mCS_disabled")||o.scrollTop(0).scrollLeft(0)}),n.data({mCS_Init:!0,mCustomScrollbarIndex:t(document).data("mCustomScrollbar-index"),horizontalScroll:e.horizontalScroll,scrollInertia:e.scrollInertia,scrollEasing:"mcsEaseOut",mouseWheel:e.mouseWheel,mouseWheelPixels:e.mouseWheelPixels,autoDraggerLength:e.autoDraggerLength,autoHideScrollbar:e.autoHideScrollbar,alwaysShowScrollbar:e.alwaysShowScrollbar,snapAmount:e.snapAmount,snapOffset:e.snapOffset,scrollButtons_enable:e.scrollButtons.enable,scrollButtons_scrollType:e.scrollButtons.scrollType,scrollButtons_scrollSpeed:e.scrollButtons.scrollSpeed,scrollButtons_scrollAmount:e.scrollButtons.scrollAmount,autoExpandHorizontalScroll:e.advanced.autoExpandHorizontalScroll,autoScrollOnFocus:e.advanced.autoScrollOnFocus,normalizeMouseWheelDelta:e.advanced.normalizeMouseWheelDelta,contentTouchScroll:e.contentTouchScroll,onScrollStart_Callback:e.callbacks.onScrollStart,onScroll_Callback:e.callbacks.onScroll,onTotalScroll_Callback:e.callbacks.onTotalScroll,onTotalScrollBack_Callback:e.callbacks.onTotalScrollBack,onTotalScroll_Offset:e.callbacks.onTotalScrollOffset,onTotalScrollBack_Offset:e.callbacks.onTotalScrollBackOffset,whileScrolling_Callback:e.callbacks.whileScrolling,bindEvent_scrollbar_drag:!1,bindEvent_content_touch:!1,bindEvent_scrollbar_click:!1,bindEvent_mousewheel:!1,bindEvent_buttonsContinuous_y:!1,bindEvent_buttonsContinuous_x:!1,bindEvent_buttonsPixels_y:!1,bindEvent_buttonsPixels_x:!1,bindEvent_focusin:!1,bindEvent_autoHideScrollbar:!1,mCSB_buttonScrollRight:!1,mCSB_buttonScrollLeft:!1,mCSB_buttonScrollDown:!1,mCSB_buttonScrollUp:!1}),e.horizontalScroll)"none"!==n.css("max-width")&&(e.advanced.updateOnContentResize||(e.advanced.updateOnContentResize=!0));else if("none"!==n.css("max-height")){var c=!1,u=parseInt(n.css("max-height"));n.css("max-height").indexOf("%")>=0&&(c=u,u=n.parent().height()*c/100),n.css("overflow","hidden"),o.css("max-height",u)}if(n.mCustomScrollbar("update"),e.advanced.updateOnBrowserResize){var p,h=t(window).width(),f=t(window).height();t(window).bind("resize."+n.data("mCustomScrollbarIndex"),function(){p&&clearTimeout(p),p=setTimeout(function(){if(!n.is(".mCS_disabled")&&!n.is(".mCS_destroyed")){var e=t(window).width(),i=t(window).height();h===e&&f===i||("none"!==n.css("max-height")&&c&&o.css("max-height",n.parent().height()*c/100),n.mCustomScrollbar("update"),h=e,f=i)}},150)})}if(e.advanced.updateOnContentResize){var g;if(e.horizontalScroll)var m=s.outerWidth();else var m=s.outerHeight();g=setInterval(function(){if(e.horizontalScroll){e.advanced.autoExpandHorizontalScroll&&s.css({position:"absolute",width:"auto"}).wrap("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />").css({width:s.outerWidth(),position:"relative"}).unwrap();var t=s.outerWidth()}else var t=s.outerHeight();t!=m&&(n.mCustomScrollbar("update"),m=t)},300)}})},update:function(){var e=t(this),n=e.children(".mCustomScrollBox"),i=n.children(".mCSB_container");i.removeClass("mCS_no_scrollbar"),e.removeClass("mCS_disabled mCS_destroyed"),n.scrollTop(0).scrollLeft(0);var o=n.children(".mCSB_scrollTools"),a=o.children(".mCSB_draggerContainer"),s=a.children(".mCSB_dragger");if(e.data("horizontalScroll")){var r=o.children(".mCSB_buttonLeft"),l=o.children(".mCSB_buttonRight"),d=n.width();e.data("autoExpandHorizontalScroll")&&i.css({position:"absolute",width:"auto"}).wrap("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />").css({width:i.outerWidth(),position:"relative"}).unwrap();var c=i.outerWidth()}else var u=o.children(".mCSB_buttonUp"),p=o.children(".mCSB_buttonDown"),h=n.height(),f=i.outerHeight();if(f>h&&!e.data("horizontalScroll")){o.css("display","block");var g=a.height();if(e.data("autoDraggerLength")){var m=Math.round(h/f*g),v=s.data("minDraggerHeight");if(m<=v)s.css({height:v});else if(m>=g-10){var b=g-10;s.css({height:b})}else s.css({height:m});s.children(".mCSB_dragger_bar").css({"line-height":s.height()+"px"})}var y=s.height(),w=(f-h)/(g-y);e.data("scrollAmount",w).mCustomScrollbar("scrolling",n,i,a,s,u,p,r,l);var x=Math.abs(i.position().top);e.mCustomScrollbar("scrollTo",x,{scrollInertia:0,trigger:"internal"})}else if(c>d&&e.data("horizontalScroll")){o.css("display","block");var C=a.width();if(e.data("autoDraggerLength")){var _=Math.round(d/c*C),k=s.data("minDraggerWidth");if(_<=k)s.css({width:k});else if(_>=C-10){var S=C-10;s.css({width:S})}else s.css({width:_})}var T=s.width(),w=(c-d)/(C-T);e.data("scrollAmount",w).mCustomScrollbar("scrolling",n,i,a,s,u,p,r,l);var x=Math.abs(i.position().left);e.mCustomScrollbar("scrollTo",x,{scrollInertia:0,trigger:"internal"})}else n.unbind("mousewheel focusin"),e.data("horizontalScroll")?s.add(i).css("left",0):s.add(i).css("top",0),e.data("alwaysShowScrollbar")?e.data("horizontalScroll")?e.data("horizontalScroll")&&s.css({width:a.width()}):s.css({height:a.height()}):(o.css("display","none"),i.addClass("mCS_no_scrollbar")),e.data({bindEvent_mousewheel:!1,bindEvent_focusin:!1})},scrolling:function(e,i,o,a,s,r,l,d){function c(t,e,n,i){h.data("horizontalScroll")?h.mCustomScrollbar("scrollTo",a.position().left-e+i,{moveDragger:!0,trigger:"internal"}):h.mCustomScrollbar("scrollTo",a.position().top-t+n,{moveDragger:!0,trigger:"internal"})}function u(t){a.data("preventAction")||(a.data("preventAction",!0),h.mCustomScrollbar("scrollTo",t,{trigger:"internal"}))}function p(){var t=h.data("scrollButtons_scrollSpeed");return"auto"===h.data("scrollButtons_scrollSpeed")&&(t=Math.round((h.data("scrollInertia")+100)/40)),t}var h=t(this);if(!h.data("bindEvent_scrollbar_drag")){var f,g,m,v,b;t.support.pointer?(m="pointerdown",v="pointermove",b="pointerup"):t.support.msPointer&&(m="MSPointerDown",v="MSPointerMove",b="MSPointerUp"),t.support.pointer||t.support.msPointer?(a.bind(m,function(e){e.preventDefault(),h.data({on_drag:!0}),a.addClass("mCSB_dragger_onDrag");var n=t(this),i=n.offset(),o=e.originalEvent.pageX-i.left,s=e.originalEvent.pageY-i.top;o<n.width()&&o>0&&s<n.height()&&s>0&&(f=s,g=o)}),t(document).bind(v+"."+h.data("mCustomScrollbarIndex"),function(t){if(t.preventDefault(),h.data("on_drag")){var e=a,n=e.offset(),i=t.originalEvent.pageX-n.left,o=t.originalEvent.pageY-n.top;c(f,g,o,i)}}).bind(b+"."+h.data("mCustomScrollbarIndex"),function(t){h.data({on_drag:!1}),a.removeClass("mCSB_dragger_onDrag")})):(a.bind("mousedown touchstart",function(e){e.preventDefault(),e.stopImmediatePropagation();var n,i,o=t(this),s=o.offset();if("touchstart"===e.type){var r=e.originalEvent.touches[0]||e.originalEvent.changedTouches[0];n=r.pageX-s.left,i=r.pageY-s.top}else h.data({on_drag:!0}),a.addClass("mCSB_dragger_onDrag"),n=e.pageX-s.left,i=e.pageY-s.top;n<o.width()&&n>0&&i<o.height()&&i>0&&(f=i,g=n)}).bind("touchmove",function(e){e.preventDefault(),e.stopImmediatePropagation();var n=e.originalEvent.touches[0]||e.originalEvent.changedTouches[0],i=t(this),o=i.offset(),a=n.pageX-o.left,s=n.pageY-o.top;c(f,g,s,a)}),t(document).bind("mousemove."+h.data("mCustomScrollbarIndex"),function(t){if(h.data("on_drag")){var e=a,n=e.offset(),i=t.pageX-n.left,o=t.pageY-n.top;c(f,g,o,i)}}).bind("mouseup."+h.data("mCustomScrollbarIndex"),function(t){h.data({on_drag:!1}),a.removeClass("mCSB_dragger_onDrag")})),h.data({bindEvent_scrollbar_drag:!0})}if(t.support.touch&&h.data("contentTouchScroll")&&!h.data("bindEvent_content_touch")){var y,w,x,C,_,k,S;i.bind("touchstart",function(e){e.stopImmediatePropagation(),y=e.originalEvent.touches[0]||e.originalEvent.changedTouches[0],w=t(this),x=w.offset(),_=y.pageX-x.left,C=y.pageY-x.top,k=C,S=_}),i.bind("touchmove",function(e){e.preventDefault(),e.stopImmediatePropagation(),y=e.originalEvent.touches[0]||e.originalEvent.changedTouches[0],w=t(this).parent(),x=w.offset(),_=y.pageX-x.left,C=y.pageY-x.top,h.data("horizontalScroll")?h.mCustomScrollbar("scrollTo",S-_,{trigger:"internal"}):h.mCustomScrollbar("scrollTo",k-C,{trigger:"internal"})})}if(h.data("bindEvent_scrollbar_click")||(o.bind("click",function(e){var n=(e.pageY-o.offset().top)*h.data("scrollAmount"),i=t(e.target);h.data("horizontalScroll")&&(n=(e.pageX-o.offset().left)*h.data("scrollAmount")),(i.hasClass("mCSB_draggerContainer")||i.hasClass("mCSB_draggerRail"))&&h.mCustomScrollbar("scrollTo",n,{trigger:"internal",scrollEasing:"draggerRailEase"})}),h.data({bindEvent_scrollbar_click:!0})),h.data("mouseWheel")&&(h.data("bindEvent_mousewheel")||(e.bind("mousewheel",function(t,e){var n,s=h.data("mouseWheelPixels"),r=Math.abs(i.position().top),l=a.position().top,d=o.height()-a.height();h.data("normalizeMouseWheelDelta")&&(e=e<0?-1:1),"auto"===s&&(s=100+Math.round(h.data("scrollAmount")/2)),h.data("horizontalScroll")&&(l=a.position().left,d=o.width()-a.width(),r=Math.abs(i.position().left)),(e>0&&0!==l||e<0&&l!==d)&&(t.preventDefault(),t.stopImmediatePropagation()),n=r-e*s,h.mCustomScrollbar("scrollTo",n,{trigger:"internal"})}),h.data({bindEvent_mousewheel:!0}))),h.data("scrollButtons_enable"))if("pixels"===h.data("scrollButtons_scrollType"))h.data("horizontalScroll")?(d.add(l).unbind("mousedown touchstart MSPointerDown pointerdown mouseup MSPointerUp pointerup mouseout MSPointerOut pointerout touchend",T,$),h.data({bindEvent_buttonsContinuous_x:!1}),h.data("bindEvent_buttonsPixels_x")||(d.bind("click",function(t){t.preventDefault(),u(Math.abs(i.position().left)+h.data("scrollButtons_scrollAmount"))}),l.bind("click",function(t){t.preventDefault(),u(Math.abs(i.position().left)-h.data("scrollButtons_scrollAmount"))}),h.data({bindEvent_buttonsPixels_x:!0}))):(r.add(s).unbind("mousedown touchstart MSPointerDown pointerdown mouseup MSPointerUp pointerup mouseout MSPointerOut pointerout touchend",T,$),h.data({bindEvent_buttonsContinuous_y:!1}),h.data("bindEvent_buttonsPixels_y")||(r.bind("click",function(t){t.preventDefault(),u(Math.abs(i.position().top)+h.data("scrollButtons_scrollAmount"))}),s.bind("click",function(t){t.preventDefault(),u(Math.abs(i.position().top)-h.data("scrollButtons_scrollAmount"))}),h.data({bindEvent_buttonsPixels_y:!0})));else if(h.data("horizontalScroll")){if(d.add(l).unbind("click"),h.data({bindEvent_buttonsPixels_x:!1}),!h.data("bindEvent_buttonsContinuous_x")){d.bind("mousedown touchstart MSPointerDown pointerdown",function(t){t.preventDefault();var e=p();h.data({mCSB_buttonScrollRight:setInterval(function(){h.mCustomScrollbar("scrollTo",Math.abs(i.position().left)+e,{trigger:"internal",scrollEasing:"easeOutCirc"})},17)})});var T=function(t){t.preventDefault(),clearInterval(h.data("mCSB_buttonScrollRight"))};d.bind("mouseup touchend MSPointerUp pointerup mouseout MSPointerOut pointerout",T),l.bind("mousedown touchstart MSPointerDown pointerdown",function(t){t.preventDefault();var e=p();h.data({mCSB_buttonScrollLeft:setInterval(function(){h.mCustomScrollbar("scrollTo",Math.abs(i.position().left)-e,{trigger:"internal",scrollEasing:"easeOutCirc"})},17)})});var $=function(t){t.preventDefault(),clearInterval(h.data("mCSB_buttonScrollLeft"))};l.bind("mouseup touchend MSPointerUp pointerup mouseout MSPointerOut pointerout",$),h.data({bindEvent_buttonsContinuous_x:!0})}}else if(r.add(s).unbind("click"),h.data({bindEvent_buttonsPixels_y:!1}),!h.data("bindEvent_buttonsContinuous_y")){r.bind("mousedown touchstart MSPointerDown pointerdown",function(t){t.preventDefault();var e=p();h.data({mCSB_buttonScrollDown:setInterval(function(){h.mCustomScrollbar("scrollTo",Math.abs(i.position().top)+e,{trigger:"internal",scrollEasing:"easeOutCirc"})},17)})});var I=function(t){t.preventDefault(),clearInterval(h.data("mCSB_buttonScrollDown"))};r.bind("mouseup touchend MSPointerUp pointerup mouseout MSPointerOut pointerout",I),s.bind("mousedown touchstart MSPointerDown pointerdown",function(t){t.preventDefault();var e=p();h.data({mCSB_buttonScrollUp:setInterval(function(){h.mCustomScrollbar("scrollTo",Math.abs(i.position().top)-e,{trigger:"internal",scrollEasing:"easeOutCirc"})},17)})});var A=function(t){t.preventDefault(),clearInterval(h.data("mCSB_buttonScrollUp"))};s.bind("mouseup touchend MSPointerUp pointerup mouseout MSPointerOut pointerout",A),h.data({bindEvent_buttonsContinuous_y:!0})}h.data("autoScrollOnFocus")&&(h.data("bindEvent_focusin")||(e.bind("focusin",function(){e.scrollTop(0).scrollLeft(0);var n=t(document.activeElement);if(n.is("input,textarea,select,button,a[tabindex],area,object")){var o=i.position().top,a=n.position().top,s=e.height()-n.outerHeight();h.data("horizontalScroll")&&(o=i.position().left,a=n.position().left,s=e.width()-n.outerWidth()),(o+a<0||o+a>s)&&h.mCustomScrollbar("scrollTo",a,{trigger:"internal"})}}),h.data({bindEvent_focusin:!0}))),h.data("autoHideScrollbar")&&!h.data("alwaysShowScrollbar")&&(h.data("bindEvent_autoHideScrollbar")||(e.bind("mouseenter",function(t){e.addClass("mCS-mouse-over"),n.showScrollbar.call(e.children(".mCSB_scrollTools"))}).bind("mouseleave touchend",function(t){e.removeClass("mCS-mouse-over"),"mouseleave"===t.type&&n.hideScrollbar.call(e.children(".mCSB_scrollTools"))}),h.data({bindEvent_autoHideScrollbar:!0})))},scrollTo:function(e,i){function o(t){if(c.data("mCustomScrollbarIndex"))switch(this.mcs={top:h.position().top,left:h.position().left,draggerTop:m.position().top,draggerLeft:m.position().left,topPct:Math.round(100*Math.abs(h.position().top)/Math.abs(h.outerHeight()-p.height())),leftPct:Math.round(100*Math.abs(h.position().left)/Math.abs(h.outerWidth()-p.width()))},t){case"onScrollStart":c.data("mCS_tweenRunning",!0).data("onScrollStart_Callback").call(c,this.mcs);break;case"whileScrolling":c.data("whileScrolling_Callback").call(c,this.mcs);break;case"onScroll":c.data("onScroll_Callback").call(c,this.mcs);break;case"onTotalScrollBack":c.data("onTotalScrollBack_Callback").call(c,this.mcs);break;case"onTotalScroll":c.data("onTotalScroll_Callback").call(c,this.mcs)}}var a,s,r,l,d,c=t(this),u={moveDragger:!1,trigger:"external",callbacks:!0,scrollInertia:c.data("scrollInertia"),scrollEasing:c.data("scrollEasing")},i=t.extend(u,i),p=c.children(".mCustomScrollBox"),h=p.children(".mCSB_container"),f=p.children(".mCSB_scrollTools"),g=f.children(".mCSB_draggerContainer"),m=g.children(".mCSB_dragger"),v=draggerSpeed=i.scrollInertia;if(!h.hasClass("mCS_no_scrollbar")&&(c.data({mCS_trigger:i.trigger}),c.data("mCS_Init")&&(i.callbacks=!1),e||0===e)){if("number"==typeof e)i.moveDragger?(a=e,e=c.data("horizontalScroll")?m.position().left*c.data("scrollAmount"):m.position().top*c.data("scrollAmount"),draggerSpeed=0):a=e/c.data("scrollAmount");else if("string"==typeof e){var b;b="top"===e?0:"bottom"!==e||c.data("horizontalScroll")?"left"===e?0:"right"===e&&c.data("horizontalScroll")?h.outerWidth()-p.width():"first"===e?c.find(".mCSB_container").find(":first"):"last"===e?c.find(".mCSB_container").find(":last"):c.find(e):h.outerHeight()-p.height(),1===b.length?(e=c.data("horizontalScroll")?b.position().left:b.position().top,a=e/c.data("scrollAmount")):a=e=b}if(c.data("horizontalScroll")){c.data("onTotalScrollBack_Offset")&&(r=-c.data("onTotalScrollBack_Offset")),c.data("onTotalScroll_Offset")&&(d=p.width()-h.outerWidth()+c.data("onTotalScroll_Offset")),a<0?(a=e=0,clearInterval(c.data("mCSB_buttonScrollLeft")),r||(s=!0)):a>=g.width()-m.width()?(a=g.width()-m.width(),e=p.width()-h.outerWidth(),clearInterval(c.data("mCSB_buttonScrollRight")),d||(l=!0)):e=-e;var y=c.data("snapAmount");y&&(e=Math.round(e/y)*y-c.data("snapOffset")),n.mTweenAxis.call(this,m[0],"left",Math.round(a),draggerSpeed,i.scrollEasing),n.mTweenAxis.call(this,h[0],"left",Math.round(e),v,i.scrollEasing,{onStart:function(){i.callbacks&&!c.data("mCS_tweenRunning")&&o("onScrollStart"),c.data("autoHideScrollbar")&&!c.data("alwaysShowScrollbar")&&n.showScrollbar.call(f)},onUpdate:function(){i.callbacks&&o("whileScrolling")},onComplete:function(){i.callbacks&&(o("onScroll"),(s||r&&h.position().left>=r)&&o("onTotalScrollBack"),(l||d&&h.position().left<=d)&&o("onTotalScroll")),m.data("preventAction",!1),c.data("mCS_tweenRunning",!1),c.data("autoHideScrollbar")&&!c.data("alwaysShowScrollbar")&&(p.hasClass("mCS-mouse-over")||n.hideScrollbar.call(f))}})}else{c.data("onTotalScrollBack_Offset")&&(r=-c.data("onTotalScrollBack_Offset")),c.data("onTotalScroll_Offset")&&(d=p.height()-h.outerHeight()+c.data("onTotalScroll_Offset")),a<0?(a=e=0,clearInterval(c.data("mCSB_buttonScrollUp")),r||(s=!0)):a>=g.height()-m.height()?(a=g.height()-m.height(),e=p.height()-h.outerHeight(),clearInterval(c.data("mCSB_buttonScrollDown")),d||(l=!0)):e=-e;var y=c.data("snapAmount");y&&(e=Math.round(e/y)*y-c.data("snapOffset")),n.mTweenAxis.call(this,m[0],"top",Math.round(a),draggerSpeed,i.scrollEasing),n.mTweenAxis.call(this,h[0],"top",Math.round(e),v,i.scrollEasing,{onStart:function(){i.callbacks&&!c.data("mCS_tweenRunning")&&o("onScrollStart"),c.data("autoHideScrollbar")&&!c.data("alwaysShowScrollbar")&&n.showScrollbar.call(f)},onUpdate:function(){i.callbacks&&o("whileScrolling")},onComplete:function(){i.callbacks&&(o("onScroll"),(s||r&&h.position().top>=r)&&o("onTotalScrollBack"),(l||d&&h.position().top<=d)&&o("onTotalScroll")),m.data("preventAction",!1),c.data("mCS_tweenRunning",!1),c.data("autoHideScrollbar")&&!c.data("alwaysShowScrollbar")&&(p.hasClass("mCS-mouse-over")||n.hideScrollbar.call(f))}})}c.data("mCS_Init")&&c.data({mCS_Init:!1})}},stop:function(){var e=t(this),i=e.children().children(".mCSB_container"),o=e.children().children().children().children(".mCSB_dragger");n.mTweenAxisStop.call(this,i[0]),n.mTweenAxisStop.call(this,o[0])},disable:function(e){var n=t(this),i=n.children(".mCustomScrollBox"),o=i.children(".mCSB_container"),a=i.children(".mCSB_scrollTools"),s=a.children().children(".mCSB_dragger");i.unbind("mousewheel focusin mouseenter mouseleave touchend"),o.unbind("touchstart touchmove"),e&&(n.data("horizontalScroll")?s.add(o).css("left",0):s.add(o).css("top",0)),a.css("display","none"),o.addClass("mCS_no_scrollbar"),n.data({bindEvent_mousewheel:!1,bindEvent_focusin:!1,bindEvent_content_touch:!1,bindEvent_autoHideScrollbar:!1}).addClass("mCS_disabled")},destroy:function(){var e=t(this);e.removeClass("mCustomScrollbar _mCS_"+e.data("mCustomScrollbarIndex")).addClass("mCS_destroyed").children().children(".mCSB_container").unwrap().children().unwrap().siblings(".mCSB_scrollTools").remove(),t(document).unbind("mousemove."+e.data("mCustomScrollbarIndex")+" mouseup."+e.data("mCustomScrollbarIndex")+" MSPointerMove."+e.data("mCustomScrollbarIndex")+" MSPointerUp."+e.data("mCustomScrollbarIndex")),t(window).unbind("resize."+e.data("mCustomScrollbarIndex"))}},n={showScrollbar:function(){this.stop().animate({opacity:1},"fast")},hideScrollbar:function(){this.stop().animate({opacity:0},"fast")},mTweenAxis:function(t,e,n,i,o,a){function s(){return window.performance&&window.performance.now?window.performance.now():window.performance&&window.performance.webkitNow?window.performance.webkitNow():Date.now?Date.now():(new Date).getTime()}function r(){v||h.call(),v=s()-m,l(),v>=t._time&&(t._time=v>t._time?v+p-(v-t._time):v+p-1,t._time<v+1&&(t._time=v+1)),t._time<i?t._id=_request(r):g.call()}function l(){i>0?(t.currVal=u(t._time,b,w,i,o),y[e]=Math.round(t.currVal)+"px"):y[e]=n+"px",f.call()}function d(){p=1e3/60,t._time=v+p,_request=window.requestAnimationFrame?window.requestAnimationFrame:function(t){return l(),setTimeout(t,.01)},t._id=_request(r)}function c(){null!=t._id&&(window.requestAnimationFrame?window.cancelAnimationFrame(t._id):clearTimeout(t._id),t._id=null)}function u(t,e,n,i,o){switch(o){case"linear":return n*t/i+e;case"easeOutQuad":return t/=i,-n*t*(t-2)+e;case"easeInOutQuad":return t/=i/2,t<1?n/2*t*t+e:(t--,-n/2*(t*(t-2)-1)+e);case"easeOutCubic":return t/=i,t--,n*(t*t*t+1)+e;case"easeOutQuart":return t/=i,t--,-n*(t*t*t*t-1)+e;case"easeOutQuint":return t/=i,t--,n*(t*t*t*t*t+1)+e;case"easeOutCirc":return t/=i,t--,n*Math.sqrt(1-t*t)+e;case"easeOutSine":return n*Math.sin(t/i*(Math.PI/2))+e;case"easeOutExpo":return n*(-Math.pow(2,-10*t/i)+1)+e;case"mcsEaseOut":var a=(t/=i)*t,s=a*t;return e+n*(.499999999999997*s*a+-2.5*a*a+5.5*s+-6.5*a+4*t);case"draggerRailEase":return t/=i/2,t<1?n/2*t*t*t+e:(t-=2,n/2*(t*t*t+2)+e)}}var p,a=a||{},h=a.onStart||function(){},f=a.onUpdate||function(){},g=a.onComplete||function(){},m=s(),v=0,b=t.offsetTop,y=t.style;"left"===e&&(b=t.offsetLeft);var w=n-b;c(),d()},mTweenAxisStop:function(t){null!=t._id&&(window.requestAnimationFrame?window.cancelAnimationFrame(t._id):clearTimeout(t._id),t._id=null)},rafPolyfill:function(){for(var t=["ms","moz","webkit","o"],e=t.length;--e>-1&&!window.requestAnimationFrame;)window.requestAnimationFrame=window[t[e]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[t[e]+"CancelAnimationFrame"]||window[t[e]+"CancelRequestAnimationFrame"]}};n.rafPolyfill.call(),t.support.touch=!!("ontouchstart"in window),t.support.pointer=window.navigator.pointerEnabled,t.support.msPointer=window.navigator.msPointerEnabled;var i="https:"==document.location.protocol?"https:":"http:";t.event.special.mousewheel||document.write('<script src="'+i+'//cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.0.6/jquery.mousewheel.min.js"></script>'),t.fn.mCustomScrollbar=function(n){return e[n]?e[n].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof n&&n?void t.error("Method "+n+" does not exist"):e.init.apply(this,arguments)}}(jQuery),function(t){var e={init:function(e){var n=t.extend({itemClass:".item",itemOpenClass:".item_open",openTriggerClass:".item",closeText:"Close",itemMargin:10,scrollSpeed:500,startItem:"last",easing:"easeOutSine",categories:["January","February","March","April","May","June","July","August","September","October","November","December"],nuberOfSegments:[31,29,31,30,31,30,31,31,30,31,30,31],yearsOn:!0,swipeOn:!0,hideTimeline:!1,hideControles:!1,closeItemOnTransition:!1,ajaxFailMessage:"Ajax request has failed."},e),i=this,o=(t("body"),i.find(n.itemClass)),a=i.find(n.itemOpenClass),s=o.first().width(),r=a.first().width();n.closeItemOnTransition,i.trigger("init.Timeline");var l=o.length-1;"first"==n.startItem?l=0:"last"==n.startItem?l=o.length-1:o.each(function(e){if(n.startItem==t(this).attr("data-id"))return l=e,!0}),o.each(function(e){t(this).attr("data-count",e),t(this).next(n.itemOpenClass).attr("data-count",e),t(this).hasClass(n.openTriggerClass)||t(this).find(n.openTriggerClass).attr("data-count",e)}),i.append('<div style="clear:both"></div>'),i.css({width:"100%",overflow:"hidden",marginLeft:"auto",marginRight:"auto","text-align":"center",height:0}),i.wrapInner('<div class="timeline_items" />'),i.find(".timeline_items").css("text-align","left"),"ontouchstart"in window&&i.addClass("timelineTouch"),i.wrapInner('<div class="timeline_items_holder" />'),n.hideControles||i.append('<div class="t_controles"><div class="t_left"></div><div class="t_right"></div></div>'),i.wrapInner('<div class="timeline_items_wrapper" />'),i.find(".timeline_items_holder").css({width:"300px",marginLeft:"auto",marginRight:"auto"}),o.css({paddingLeft:0,paddingRight:0,marginLeft:n.itemMargin/2,marginRight:n.itemMargin/2,float:"left",position:"relative"}),a.each(function(){t(this).prepend('<div class="t_close" data-count="'+t(this).attr("data-count")+'" data-id="'+t(this).attr("data-id")+'">'+n.closeText+"</div>"),t(this).wrapInner('<div class="'+n.itemOpenClass.substr(1)+'_cwrapper"  />').find("div:first").css({position:"relative"}),t(this).css({width:0,padding:0,margin:0,float:"left",display:"none",position:"relative",overflow:"hidden"})});var d=i.find(".timeline_items:first"),c=(i.find(".t_line_wrapper:first"),150-(s+n.itemMargin)*(.5+l)),u=(s+n.itemMargin)*o.length+(r+n.itemMargin)+660,p=i.data("timeline");return d.css({width:u,marginLeft:c}),p||i.data("timeline",{currentIndex:l,itemCount:o.length,margin:c,itemWidth:s,itemOpenWidth:r,lineMargin:0,lineViewCount:0,options:n,items:o,iholder:d,open:!1,noAnimation:!1,marginResponse:!1,mousedown:!1,mousestartpos:0}),n.hideTimeline||(i.timeline("createElements"),i.hasClass("timelineClean")),t(document).keydown(function(t){return 37==t.keyCode?(i.timeline("left"),!1):39==t.keyCode?(i.timeline("right"),!1):void 0}),t(document).ready(function(){i.find(n.itemClass).css({"-webkit-touch-callout":"none","-webkit-user-select":"none","-khtml-user-select":"none","-moz-user-select":"none","-ms-user-select":"none","user-select":"none"}).find("img").on("dragstart",function(e){t(this).hasClass("timeline_rollover_bottom")||e.preventDefault()}),t(".image_rollover_bottom").on("dragstart",function(e){t(this).addClass("disableClick"),e.preventDefault()}),t(".image_rollover_bottom").on("mousedown",function(e){t(this).is("hover")||t(this).removeClass("disableClick")}),t(".image_rollover_bottom").on("click",function(e){t(this).hasClass("disableClick")&&(e.preventDefault(),e.stopPropagation()),t(this).removeClass("disableClick")})}),t(window).resize(function(){var e=i.data("timeline"),l=o.eq(e.currentIndex).attr("data-id");s=o.first().width(),r=a.first().find("div:first").width(),e.margin+=e.itemCount*(e.itemWidth-s),e.itemWidth=s,e.open&&(e.margin+=(e.itemOpenWidth-r)/2),e.itemOpenWidth=r,t("body").width()<767&&e.open&&!e.marginResponse?(e.margin-=(s+n.itemMargin)/2,e.marginResponse=!0):t("body").width()>=767&&e.marginResponse&&e.open&&(e.margin+=(s+n.itemMargin)/2,e.marginResponse=!1),e.noAnimation=!0,i.timeline("goTo",l)}),i.find(".t_left").click(function(){i.timeline("left")}),i.find(".t_right").click(function(){i.timeline("right")}),n.swipeOn&&(o.find("*").each(function(){t(this).css({"-webkit-touch-callout":"none","-webkit-user-select":"none","-khtml-user-select":"none","-moz-user-select":"none","-ms-user-select":"none","user-select":"none"})}),i.bind("touchstart",function(t){i.timeline("touchStart",t)}),i.find(n.itemClass).mousedown(function(t){i.timeline("mouseDown",t.pageX)}),t(document).bind("touchend",function(t){p=i.data("timeline"),i.timeline("touchEnd",p.touchpos)}),t(document).mouseup(function(t){var e=i.data("timeline");e.mousedown&&i.timeline("mouseUp",t.pageX)})),i.find(n.openTriggerClass).click(function(){i.timeline("goTo",t(this).attr("data-id"),t(this).attr("data-count"),!0)}),i.find(".t_close").click(function(){i.timeline("close",t(this).attr("data-id"),t(this).attr("data-count"))}),i.css({height:"auto"}).show(),i.prev(".timelineLoader").hide(),i.find(".t_line_node").each(function(){t(this).width()<10&&t(this).width(12),t(this).css({marginLeft:-t(this).width()/2})}),i},destroy:function(){t(document).unbind("mouseup"),t(window).unbind("resize");var e=this;e.data("timeline"),e.removeData("timeline")},touchStart:function(t){var e=this,n=e.data("timeline"),i=0;n.xpos=t.originalEvent.touches[0].pageX,n.ypos=t.originalEvent.touches[0].pageY,n.mousedown=!0,n.touchHorizontal=!1,n.mousestartpos=n.xpos,e.unbind("touchmove"),e.bind("touchmove",function(t){var e=t.originalEvent.touches[0].pageX,o=t.originalEvent.touches[0].pageY;n.mousedown&&!n.touchHorizontal?Math.abs(e-n.xpos)>Math.abs(o-n.ypos)&&(n.touchHorizontal=!0):n.touchHorizontal&&(t.preventDefault(),n.touchpos=t.originalEvent.touches[0].pageX,i=n.margin-n.xpos+t.originalEvent.touches[0].pageX,n.iholder.css("marginLeft",i+"px")),n.mousedown=!1})},mouseDown:function(e){var n=this,i=n.data("timeline"),o=0;i.mousedown=!0,i.mousestartpos=e,t("body").css("cursor","move"),t(document).mousemove(function(t){o=i.margin-e+t.pageX,i.iholder.css("marginLeft",o+"px")})},touchEnd:function(t){var e=this,n=e.data("timeline"),i=n.itemWidth+n.options.itemMargin,o=n.currentIndex,a=0,s=t-n.mousestartpos;"undefined"!=typeof n.touchHorizontal&&n.touchHorizontal&&(n.touchHorizontal=!1,o-=parseInt(s/i),a=s%i,s<0&&a<-i/2&&o++,s>0&&a>i/2&&o--,o<0&&(o=0),o>=n.itemCount&&(o=n.itemCount-1),e.timeline("goTo",n.items.eq(o).attr("data-id"),n.items.eq(o).attr("data-count")),n.options.closeItemOnTransition&&e.timeline("close",n.items.eq(o).attr("data-id")))},mouseUp:function(e){var n=this,i=n.data("timeline"),o=i.itemWidth+i.options.itemMargin,a=i.currentIndex,s=0,r=e-i.mousestartpos;i.mousedown=!1,t(document).unbind("mousemove"),t("body").css("cursor","auto"),a-=parseInt(r/o),s=r%o,r<0&&s<-o/2&&a++,r>0&&s>o/2&&a--,a<0&&(a=0),a>=i.itemCount&&(a=i.itemCount-1),n.timeline("goTo",i.items.eq(a).attr("data-id"),i.items.eq(a).attr("data-count")),i.options.closeItemOnTransition&&n.timeline("close",i.items.eq(a).attr("data-id"))},open:function(e,n){var i=this,o=i.data("timeline"),a=i.find(o.options.itemOpenClass),s=o.options.scrollSpeed,r=o.itemOpenWidth,l=o.options.easin,d=o.options.itemMargin;return a.each(function(){if(t(this).attr("data-id")==e&&(!n||n==t(this).attr("data-count"))){var a=t(this);if(i.trigger("itemOpen.Timeline"),t(this).stop(!0).show().animate({width:r,marginLeft:d/2,marginRight:d/2},s,l),"undefined"!=typeof t(this).attr("data-access")&&""!=t(this).attr("data-access")){var c=t(this).attr("data-access");t.get(c,function(e){if(t("body").append('<div class="ajax_preloading_holder" style="display:none"></div>'),t(".ajax_preloading_holder").html(e),t(".ajax_preloading_holder img").length>0)t(".ajax_preloading_holder img").load(function(){a.find(".item_open_content").html(e),t(".ajax_preloading_holder").remove(),t(this).attr("data-access","");var n=jQuery.Event("ajaxLoaded.timeline");n.element=a.find(".item_open_content"),t("body").trigger(n),i.trigger(n)});else{a.find(".item_open_content").html(e),t(".ajax_preloading_holder").remove(),t(this).attr("data-access","");var n=jQuery.Event("ajaxLoaded.timeline");n.element=a.find(".item_open_content"),t("body").trigger(n),i.trigger(n)}},"text").fail(function(){o='<div class="timeline_open_content"><h2 class="no-marg-top">'+o.options.ajaxFailMessage+"</h2></div>",a.find(".item_open_content").html(o),t(".ajax_preloading_holder").remove();var e=jQuery.Event("ajaxLoaded.timeline");e.element=a.find(".item_open_content"),t("body").trigger(e),i.trigger(e)})}t("body").width()<767?(o.margin-=(o.itemWidth+o.options.itemMargin)/2,o.marginResponse=!0):o.marginResponse=!1,o.margin-=(r+o.options.itemMargin+o.itemWidth)/2-o.itemWidth/2,o.iholder.stop(!0).animate({marginLeft:o.margin},s,l),o.open=e}}),i},close:function(e,n,i){var o=this,a=o.data("timeline"),s=o.find(a.options.itemOpenClass),r=a.options.scrollSpeed,l=a.itemOpenWidth,d=a.options.easing;return s.each(function(){t(this).attr("data-id")==e&&t(this).is(":visible")&&(o.trigger("itemClose.Timeline"),t(this).stop(!0).animate({width:0,margin:0},r,d,function(){t(this).hide()}),a.marginResponse&&(a.margin+=(a.itemWidth+a.options.itemMargin)/2),a.margin+=(l+a.options.itemMargin)/2,a.iholder.stop(!0).animate({marginLeft:a.margin},r,d),a.open=!1)}),n&&o.timeline("open",n,i),o},right:function(){var t=this,e=t.data("timeline"),n=e.options.scrollSpeed,i=e.options.easing;if(e.currentIndex<e.itemCount-1){var o=e.items.eq(e.currentIndex+1).attr("data-id"),a=e.items.eq(e.currentIndex+1).attr("data-count");t.timeline("goTo",o,a),e.options.closeItemOnTransition&&t.timeline("close",o)}else e.iholder.stop(!0).animate({marginLeft:e.margin-50},n/2,i).animate({marginLeft:e.margin},n/2,i);return t},left:function(){var t=this,e=t.data("timeline"),n=e.options.scrollSpeed,i=e.options.easing;if(e.currentIndex>0){var o=e.items.eq(e.currentIndex-1).attr("data-id"),a=e.items.eq(e.currentIndex-1).attr("data-count");t.timeline("goTo",o,a),e.options.closeItemOnTransition&&t.timeline("close",o)}else e.iholder.stop(!0).animate({marginLeft:e.margin+50},n/2,i).animate({marginLeft:e.margin},n/2,i);return t},goTo:function(e,n,i,o){var a=this,s=a.data("timeline"),r=s.options.scrollSpeed,l=s.options.easing,d=s.items,c=(a.find(".timeline_line").width(),
-1),u=!1;if(o&&(r=0),d.each(function(i){if(e==t(this).attr("data-id")&&(!n||n==t(this).attr("data-count")))return u=!0,c=i,!1}),u){var p=a.find(".t_line_node");p.removeClass("active");var h=p.parent().parent().find('[href="#'+e+'"]').addClass("active");s.lineMargin=100*-parseInt(h.parent().parent().attr("data-id"),10),a.find(".t_line_view:first").width()>a.find(".timeline_line").width()&&(s.lineMargin*=2,h.parent().hasClass("right")&&(s.lineMargin-=100)),s.noAnimation?(s.noAnimation=!1,a.find(".t_line_wrapper").stop(!0).css({marginLeft:s.lineMargin+"%"})):a.find(".t_line_wrapper").stop(!0).animate({marginLeft:s.lineMargin+"%"},r,l),s.open?a.timeline("close",s.open,e,n):i&&a.timeline("open",e,n),a.trigger("scrollStart.Timeline"),s.margin+=(s.itemWidth+s.options.itemMargin)*(s.currentIndex-c),s.currentIndex=c;var f=(parseInt(s.iholder.css("margin-left"))-s.margin)/s.itemWidth;s.iholder.stop(!0).animate({marginLeft:s.margin},r+r/5*(Math.abs(f)-1),l,function(){a.trigger("scrollStop.Timeline")})}return a},lineLeft:function(){var t=this,e=t.data("timeline"),n=e.options.scrollSpeed,i=e.options.easing;0!=e.lineMargin&&e.options.categories&&(e.lineMargin+=100,t.find(".t_line_wrapper").stop(!0).animate({marginLeft:e.lineMargin+"%"},n,i))},lineRight:function(){var t=this,e=t.data("timeline"),n=e.options.scrollSpeed,i=e.options.easing;if(t.find(".t_line_view:first").width()>t.find(".timeline_line").width())var o=2*e.lineViewCount;else var o=e.lineViewCount;e.lineMargin!=100*-(o-1)&&e.options.categories&&(e.lineMargin-=100,t.find(".t_line_wrapper").stop(!0).animate({marginLeft:e.lineMargin+"%"},n,i))},createElements:function(){var e=this,n=e.data("timeline"),i=n.items,o='\n    <div class="timeline_line" style="text-align: left; position:relative; margin-left:auto; margin-right:auto;">\n\t </div>\n';e.prepend(o);var a=(e.find(".timeline_line").width(),new Array),s=[""].concat(n.options.categories);monthsDays=[0].concat(n.options.nuberOfSegments),minM=s.length,minY=99999,maxM=0,maxY=0,n.options.yearsOn||(maxY=99999);var r={};if(n.options.categories||(i.each(function(){var e=t(this).attr("data-id"),n=e.split("/"),i=parseInt(n[0],10);t.inArray(n[1],s)!=-1?t.inArray(n[1],s):parseInt(n[1],10),parseInt(n[2],10),i<minY&&(minY=i),i>maxY&&(maxY=i)}),minY-=10,maxY+=10),i.each(function(e){var i=t(this).attr("data-id"),o=t(this).attr("data-name"),l=t(this).attr("data-description"),d=i.split("/"),c=parseInt(d[0],10),u=t.inArray(d[1],s)!=-1?t.inArray(d[1],s):parseInt(d[1],10),p=parseInt(d[2],10);"undefined"==typeof r[p]&&(r[p]={}),"undefined"==typeof r[p][u]&&(r[p][u]={}),r[p][u][c]=i;var h=e==n.currentIndex?" active":"";if(n.options.categories)var f=100/monthsDays[u]*c;else var f=100/(maxY-minY)*(c-minY);var g="undefined"!=typeof o?o:c;a[i]='<a href="#'+i+'" class="t_line_node'+h+'" style="left: '+f+'%; position:absolute; text-align:center;">'+g,"undefined"!=typeof l&&(a[i]+='<span class="t_node_desc" style="white-space:nowrap; position:absolute; z-index: 1;"><span>'+l+"</span></span>"),a[i]+="</a>\n"}),o='\n\t\t<div id="t_line_left" style="position: absolute;"></div><div id="t_line_right" style="position: absolute;"></div>\n\t\t<div class="t_line_holder" style="position:relative; overflow: hidden; width:100%;">\n\t\t\t<div class="t_line_wrapper" style="white-space:nowrap;">\n',n.options.categories){var l=!0,d=0;for(var c in r)for(var u in r[c])if(l){l=!l,o+='<div class="t_line_view" data-id="'+d+'" style="position:relative; display:inline-block;">\n\t\t\t\t\t<div class="t_line_m" style="position:absolute; top:0;">\n\t\t\t\t\t\t<h4 class="t_line_month" style="position:abolute; width:100% top:0; text-align:center;">'+s[u]+(n.options.yearsOn?'<span class="t_line_month_year"> '+(c<0?-c+" B.C.":c)+"</span>":"")+"</h4>\n";for(dy in r[c][u])o+=a[r[c][u][dy]];o+="\t\t\t\t\t</div> <!-- KRAJ PRVOG -->\n"}else{l=!l,o+='\t\t\t\t\t<div class="t_line_m right" style="position:absolute; top:0;">\n\t\t\t\t\t\t<h4 class="t_line_month" style="position:abolute; width:100% top:0; text-align:center;">'+("undefined"!=typeof s[u]?s[u]:"")+(n.options.yearsOn?'<span class="t_line_month_year"> '+c+"</span>":"")+"</h4>\n";for(dy in r[c][u])o+=a[r[c][u][dy]];o+='\t\t\t\t\t</div><!-- KRAJ DRUGOG -->\n\t\t\t\t\t<div style="clear:both"></div>\n\t\t\t\t</div>',d++}l||(o+='\t\t\t\t\t<div class="t_line_m right" style="position:absolute; top:0;">\n\t\t\t\t\t\t<h4 class="t_line_month" style="position:abolute; width:100% top:0; text-align:center;"></h4>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style="clear:both"></div>\n\t\t\t\t</div>',d++)}else{o+='<div class="t_line_view" data-id="'+d+'" style="position:relative; display:inline-block; width:100%;">\n\t\t\t\t\t<div class="t_line_m" style="width:100%; border:0; position:absolute; top:0;">\n';for(var p in a)o+=a[p];o+="</div>\n</div>"}o+='\n\t\t\t\t<div style="clear:both"></div>\n\t\t\t</div>\n\t\t</div>\n',n.lineViewCount=d,e.find(".timeline_line:first").html(o),e.find(".t_line_node").each(function(){var o=t(this);t(this).find("span").hide(),t(this).hover(function(){i.each(function(){t(this).attr("data-id")==o.attr("href").substr(1)&&t(this).addClass("item_node_hover")}),t(this).find("span").css("display","block")},function(){t(this).find("span").css("display","none"),t(".item_node_hover").removeClass("item_node_hover")}),t(this).hasClass("active")&&(n.lineMargin=100*-parseInt(t(this).parent().parent(".t_line_view").attr("data-id"),10),e.find(".t_line_wrapper").css("margin-left",n.lineMargin+"%")),t(this).click(function(n){n.preventDefault(),e.find(".t_line_node").removeClass("active"),t(this).addClass("active"),e.timeline("goTo",t(this).attr("href").substr(1),null,null,!0)})}),e.find("#t_line_left").click(function(){e.timeline("lineLeft")}),e.find("#t_line_right").click(function(){e.timeline("lineRight")})}};t.fn.timeline=function(n){return e[n]?e[n].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof n&&n?void t.error("Method "+n+" does not exist on jQuery.timeline"):e.init.apply(this,arguments)}}(jQuery),inherits(MarkerLabel_,google.maps.OverlayView),MarkerLabel_.getSharedCross=function(t){var e;return"undefined"==typeof MarkerLabel_.getSharedCross.crossDiv&&(e=document.createElement("img"),e.style.cssText="position: absolute; z-index: 1000002; display: none;",e.style.marginLeft="-8px",e.style.marginTop="-9px",e.src=t,MarkerLabel_.getSharedCross.crossDiv=e),MarkerLabel_.getSharedCross.crossDiv},MarkerLabel_.prototype.onAdd=function(){var t,e,n,i,o,a,s,r=this,l=!1,d=!1,c=20,u="url("+this.handCursorURL_+")",p=function(t){t.preventDefault&&t.preventDefault(),t.cancelBubble=!0,t.stopPropagation&&t.stopPropagation()},h=function(){r.marker_.setAnimation(null)};this.getPanes().markerLayer.appendChild(this.labelDiv_),"undefined"==typeof MarkerLabel_.getSharedCross.processed&&(this.getPanes().markerLayer.appendChild(this.crossDiv_),MarkerLabel_.getSharedCross.processed=!0),this.listeners_=[google.maps.event.addDomListener(this.labelDiv_,"mouseover",function(t){(r.marker_.getDraggable()||r.marker_.getClickable())&&(this.style.cursor="pointer",google.maps.event.trigger(r.marker_,"mouseover",t))}),google.maps.event.addDomListener(this.labelDiv_,"mouseout",function(t){!r.marker_.getDraggable()&&!r.marker_.getClickable()||d||(this.style.cursor=r.marker_.getCursor(),google.maps.event.trigger(r.marker_,"mouseout",t))}),google.maps.event.addDomListener(this.labelDiv_,"mousedown",function(t){d=!1,r.marker_.getDraggable()&&(l=!0,this.style.cursor=u),(r.marker_.getDraggable()||r.marker_.getClickable())&&(google.maps.event.trigger(r.marker_,"mousedown",t),p(t))}),google.maps.event.addDomListener(document,"mouseup",function(e){var n;if(l&&(l=!1,r.eventDiv_.style.cursor="pointer",google.maps.event.trigger(r.marker_,"mouseup",e)),d){if(o){n=r.getProjection().fromLatLngToDivPixel(r.marker_.getPosition()),n.y+=c,r.marker_.setPosition(r.getProjection().fromDivPixelToLatLng(n));try{r.marker_.setAnimation(google.maps.Animation.BOUNCE),setTimeout(h,1406)}catch(t){}}r.crossDiv_.style.display="none",r.marker_.setZIndex(t),i=!0,d=!1,e.latLng=r.marker_.getPosition(),google.maps.event.trigger(r.marker_,"dragend",e)}}),google.maps.event.addListener(r.marker_.getMap(),"mousemove",function(i){var u;l&&(d?(i.latLng=new google.maps.LatLng(i.latLng.lat()-e,i.latLng.lng()-n),u=r.getProjection().fromLatLngToDivPixel(i.latLng),o&&(r.crossDiv_.style.left=u.x+"px",r.crossDiv_.style.top=u.y+"px",r.crossDiv_.style.display="",u.y-=c),r.marker_.setPosition(r.getProjection().fromDivPixelToLatLng(u)),o&&(r.eventDiv_.style.top=u.y+c+"px"),google.maps.event.trigger(r.marker_,"drag",i)):(e=i.latLng.lat()-r.marker_.getPosition().lat(),n=i.latLng.lng()-r.marker_.getPosition().lng(),t=r.marker_.getZIndex(),a=r.marker_.getPosition(),s=r.marker_.getMap().getCenter(),o=r.marker_.get("raiseOnDrag"),d=!0,r.marker_.setZIndex(1e6),i.latLng=r.marker_.getPosition(),google.maps.event.trigger(r.marker_,"dragstart",i)))}),google.maps.event.addDomListener(document,"keydown",function(t){d&&27===t.keyCode&&(o=!1,r.marker_.setPosition(a),r.marker_.getMap().setCenter(s),google.maps.event.trigger(document,"mouseup",t))}),google.maps.event.addDomListener(this.labelDiv_,"click",function(t){(r.marker_.getDraggable()||r.marker_.getClickable())&&(i?i=!1:(google.maps.event.trigger(r.marker_,"click",t),p(t)))}),google.maps.event.addDomListener(this.labelDiv_,"dblclick",function(t){(r.marker_.getDraggable()||r.marker_.getClickable())&&(google.maps.event.trigger(r.marker_,"dblclick",t),p(t))}),google.maps.event.addListener(this.marker_,"dragstart",function(t){d||(o=this.get("raiseOnDrag"))}),google.maps.event.addListener(this.marker_,"drag",function(t){d||o&&(r.setPosition(c),r.labelDiv_.style.zIndex=1e6+(this.get("labelInBackground")?-1:1))}),google.maps.event.addListener(this.marker_,"dragend",function(t){d||o&&r.setPosition(0)}),google.maps.event.addListener(this.marker_,"position_changed",function(){r.setPosition()}),google.maps.event.addListener(this.marker_,"zindex_changed",function(){r.setZIndex()}),google.maps.event.addListener(this.marker_,"visible_changed",function(){r.setVisible()}),google.maps.event.addListener(this.marker_,"labelvisible_changed",function(){r.setVisible()}),google.maps.event.addListener(this.marker_,"title_changed",function(){r.setTitle()}),google.maps.event.addListener(this.marker_,"labelcontent_changed",function(){r.setContent()}),google.maps.event.addListener(this.marker_,"labelanchor_changed",function(){r.setAnchor()}),google.maps.event.addListener(this.marker_,"labelclass_changed",function(){r.setStyles()}),google.maps.event.addListener(this.marker_,"labelstyle_changed",function(){r.setStyles()})]},MarkerLabel_.prototype.onRemove=function(){var t;for(this.labelDiv_.parentNode.removeChild(this.labelDiv_),t=0;t<this.listeners_.length;t++)google.maps.event.removeListener(this.listeners_[t])},MarkerLabel_.prototype.draw=function(){this.setContent(),this.setTitle(),this.setStyles()},MarkerLabel_.prototype.setContent=function(){var t=this.marker_.get("labelContent");"undefined"==typeof t.nodeType?this.labelDiv_.innerHTML=t:(this.labelDiv_.innerHTML="",this.labelDiv_.appendChild(t))},MarkerLabel_.prototype.setTitle=function(){this.labelDiv_.title=this.marker_.getTitle()||""},MarkerLabel_.prototype.setStyles=function(){var t,e;this.labelDiv_.className=this.marker_.get("labelClass"),this.labelDiv_.style.cssText="",e=this.marker_.get("labelStyle");for(t in e)e.hasOwnProperty(t)&&(this.labelDiv_.style[t]=e[t]);this.setMandatoryStyles()},MarkerLabel_.prototype.setMandatoryStyles=function(){this.labelDiv_.style.position="absolute",this.labelDiv_.style.overflow="hidden","undefined"!=typeof this.labelDiv_.style.opacity&&""!==this.labelDiv_.style.opacity&&(this.labelDiv_.style.MsFilter='"progid:DXImageTransform.Microsoft.Alpha(opacity='+100*this.labelDiv_.style.opacity+')"',this.labelDiv_.style.filter="alpha(opacity="+100*this.labelDiv_.style.opacity+")"),this.setAnchor(),this.setPosition(),this.setVisible()},MarkerLabel_.prototype.setAnchor=function(){var t=this.marker_.get("labelAnchor");this.labelDiv_.style.marginLeft=-t.x+"px",this.labelDiv_.style.marginTop=-t.y+"px"},MarkerLabel_.prototype.setPosition=function(t){var e=this.getProjection().fromLatLngToDivPixel(this.marker_.getPosition());"undefined"==typeof t&&(t=0),this.labelDiv_.style.left=Math.round(e.x)+"px",this.labelDiv_.style.top=Math.round(e.y-t)+"px",this.setZIndex()},MarkerLabel_.prototype.setZIndex=function(){var t=this.marker_.get("labelInBackground")?-1:1;"undefined"==typeof this.marker_.getZIndex()?this.labelDiv_.style.zIndex=parseInt(this.labelDiv_.style.top,10)+t:this.labelDiv_.style.zIndex=this.marker_.getZIndex()+t},MarkerLabel_.prototype.setVisible=function(){this.marker_.get("labelVisible")?this.labelDiv_.style.display=this.marker_.getVisible()?"block":"none":this.labelDiv_.style.display="none"},inherits(MarkerWithLabel,google.maps.Marker),MarkerWithLabel.prototype.setMap=function(t){google.maps.Marker.prototype.setMap.apply(this,arguments),this.label.setMap(t)},window.InfoBubble=InfoBubble,InfoBubble.prototype.ARROW_SIZE_=15,InfoBubble.prototype.ARROW_STYLE_=0,InfoBubble.prototype.SHADOW_STYLE_=1,InfoBubble.prototype.MIN_WIDTH_=50,InfoBubble.prototype.ARROW_POSITION_=50,InfoBubble.prototype.PADDING_=10,InfoBubble.prototype.BORDER_WIDTH_=1,InfoBubble.prototype.BORDER_COLOR_="#ccc",InfoBubble.prototype.BORDER_RADIUS_=10,InfoBubble.prototype.BACKGROUND_COLOR_="#fff",InfoBubble.prototype.CLOSE_SRC_="https://maps.gstatic.com/intl/en_us/mapfiles/iw_close.gif",InfoBubble.prototype.extend=function(t,e){return function(t){for(var e in t.prototype)this.prototype[e]=t.prototype[e];return this}.apply(t,[e])},InfoBubble.prototype.buildDom_=function(){var t=this.bubble_=document.createElement("DIV");t.style.position="absolute",t.style.zIndex=this.baseZIndex_;var e=this.tabsContainer_=document.createElement("DIV");e.style.position="relative";var n=this.close_=document.createElement("IMG");n.style.position="absolute",n.style.border=0,n.style.zIndex=this.baseZIndex_+1,n.style.cursor="pointer",n.className="js-info-bubble-close",n.src=this.get("closeSrc");var i=this;google.maps.event.addDomListener(n,"click",function(){i.close(),google.maps.event.trigger(i,"closeclick")});var o=this.contentContainer_=document.createElement("DIV");o.style.overflowX="auto",o.style.overflowY="auto",o.style.cursor="default",o.style.clear="both",o.style.position="relative";var a=this.content_=document.createElement("DIV");o.appendChild(a);var s=this.arrow_=document.createElement("DIV");s.style.position="relative";var r=this.arrowOuter_=document.createElement("DIV"),l=this.arrowInner_=document.createElement("DIV"),d=this.getArrowSize_();r.style.position=l.style.position="absolute",r.style.left=l.style.left="50%",r.style.height=l.style.height="0",r.style.width=l.style.width="0",r.style.marginLeft=this.px(-d),r.style.borderWidth=this.px(d),r.style.borderBottomWidth=0;var c=this.bubbleShadow_=document.createElement("DIV");c.style.position="absolute",t.style.display=c.style.display="none",t.appendChild(this.tabsContainer_),t.appendChild(n),t.appendChild(o),s.appendChild(r),s.appendChild(l),t.appendChild(s);var u=document.createElement("style");u.setAttribute("type","text/css"),this.animationName_="_ibani_"+Math.round(1e4*Math.random());var p="."+this.animationName_+"{-webkit-animation-name:"+this.animationName_+";-webkit-animation-duration:0.5s;-webkit-animation-iteration-count:1;}@-webkit-keyframes "+this.animationName_+" {from {-webkit-transform: scale(0)}50% {-webkit-transform: scale(1.2)}90% {-webkit-transform: scale(0.95)}to {-webkit-transform: scale(1)}}";u.textContent=p,document.getElementsByTagName("head")[0].appendChild(u)},InfoBubble.prototype.setBackgroundClassName=function(t){this.set("backgroundClassName",t)},InfoBubble.prototype.setBackgroundClassName=InfoBubble.prototype.setBackgroundClassName,InfoBubble.prototype.backgroundClassName_changed=function(){this.content_.className=this.get("backgroundClassName")},InfoBubble.prototype.backgroundClassName_changed=InfoBubble.prototype.backgroundClassName_changed,InfoBubble.prototype.setTabClassName=function(t){this.set("tabClassName",t)},InfoBubble.prototype.setTabClassName=InfoBubble.prototype.setTabClassName,InfoBubble.prototype.tabClassName_changed=function(){this.updateTabStyles_()},InfoBubble.prototype.tabClassName_changed=InfoBubble.prototype.tabClassName_changed,InfoBubble.prototype.getArrowStyle_=function(){return parseInt(this.get("arrowStyle"),10)||0},InfoBubble.prototype.setArrowStyle=function(t){this.set("arrowStyle",t)},InfoBubble.prototype.setArrowStyle=InfoBubble.prototype.setArrowStyle,InfoBubble.prototype.arrowStyle_changed=function(){this.arrowSize_changed()},InfoBubble.prototype.arrowStyle_changed=InfoBubble.prototype.arrowStyle_changed,InfoBubble.prototype.getArrowSize_=function(){return parseInt(this.get("arrowSize"),10)||0},InfoBubble.prototype.setArrowSize=function(t){this.set("arrowSize",t)},InfoBubble.prototype.setArrowSize=InfoBubble.prototype.setArrowSize,InfoBubble.prototype.arrowSize_changed=function(){this.borderWidth_changed()},InfoBubble.prototype.arrowSize_changed=InfoBubble.prototype.arrowSize_changed,InfoBubble.prototype.setArrowPosition=function(t){this.set("arrowPosition",t)},InfoBubble.prototype.setArrowPosition=InfoBubble.prototype.setArrowPosition,InfoBubble.prototype.getArrowPosition_=function(){return parseInt(this.get("arrowPosition"),10)||0},InfoBubble.prototype.arrowPosition_changed=function(){var t=this.getArrowPosition_();this.arrowOuter_.style.left=this.arrowInner_.style.left=t+"%",this.redraw_()},InfoBubble.prototype.arrowPosition_changed=InfoBubble.prototype.arrowPosition_changed,InfoBubble.prototype.setZIndex=function(t){this.set("zIndex",t)},InfoBubble.prototype.setZIndex=InfoBubble.prototype.setZIndex,InfoBubble.prototype.getZIndex=function(){return parseInt(this.get("zIndex"),10)||this.baseZIndex_},InfoBubble.prototype.zIndex_changed=function(){var t=this.getZIndex();this.bubble_.style.zIndex=this.baseZIndex_=t,this.close_.style.zIndex=t+1},InfoBubble.prototype.zIndex_changed=InfoBubble.prototype.zIndex_changed,InfoBubble.prototype.setShadowStyle=function(t){this.set("shadowStyle",t)},InfoBubble.prototype.setShadowStyle=InfoBubble.prototype.setShadowStyle,InfoBubble.prototype.getShadowStyle_=function(){return parseInt(this.get("shadowStyle"),10)||0},InfoBubble.prototype.shadowStyle_changed=function(){var t=this.getShadowStyle_(),e="",n="",i="";switch(t){case 0:e="none";break;case 1:n="40px 15px 10px rgba(33,33,33,0.3)",i="transparent";break;case 2:n="0 0 2px rgba(33,33,33,0.3)",i="rgba(33,33,33,0.35)"}this.bubbleShadow_.style.boxShadow=this.bubbleShadow_.style.webkitBoxShadow=this.bubbleShadow_.style.MozBoxShadow=n,this.bubbleShadow_.style.backgroundColor=i,this.isOpen_&&(this.bubbleShadow_.style.display=e,this.draw())},InfoBubble.prototype.shadowStyle_changed=InfoBubble.prototype.shadowStyle_changed,InfoBubble.prototype.showCloseButton=function(){this.set("hideCloseButton",!1)},InfoBubble.prototype.showCloseButton=InfoBubble.prototype.showCloseButton,InfoBubble.prototype.hideCloseButton=function(){this.set("hideCloseButton",!0)},InfoBubble.prototype.hideCloseButton=InfoBubble.prototype.hideCloseButton,InfoBubble.prototype.hideCloseButton_changed=function(){this.close_.style.display=this.get("hideCloseButton")?"none":""},InfoBubble.prototype.hideCloseButton_changed=InfoBubble.prototype.hideCloseButton_changed,InfoBubble.prototype.setBackgroundColor=function(t){t&&this.set("backgroundColor",t)},InfoBubble.prototype.setBackgroundColor=InfoBubble.prototype.setBackgroundColor,InfoBubble.prototype.backgroundColor_changed=function(){var t=this.get("backgroundColor");this.contentContainer_.style.backgroundColor=t,this.arrowInner_.style.borderColor=t+" transparent transparent",this.updateTabStyles_()},InfoBubble.prototype.backgroundColor_changed=InfoBubble.prototype.backgroundColor_changed,InfoBubble.prototype.setBorderColor=function(t){t&&this.set("borderColor",t)},InfoBubble.prototype.setBorderColor=InfoBubble.prototype.setBorderColor,InfoBubble.prototype.borderColor_changed=function(){var t=this.get("borderColor"),e=this.contentContainer_,n=this.arrowOuter_;e.style.borderColor=t,n.style.borderColor=t+" transparent transparent",e.style.borderStyle=n.style.borderStyle=this.arrowInner_.style.borderStyle="solid",this.updateTabStyles_()},InfoBubble.prototype.borderColor_changed=InfoBubble.prototype.borderColor_changed,InfoBubble.prototype.setBorderRadius=function(t){this.set("borderRadius",t)},InfoBubble.prototype.setBorderRadius=InfoBubble.prototype.setBorderRadius,InfoBubble.prototype.getBorderRadius_=function(){return parseInt(this.get("borderRadius"),10)||0},InfoBubble.prototype.borderRadius_changed=function(){var t=this.getBorderRadius_(),e=this.getBorderWidth_();this.contentContainer_.style.borderRadius=this.contentContainer_.style.MozBorderRadius=this.contentContainer_.style.webkitBorderRadius=this.bubbleShadow_.style.borderRadius=this.bubbleShadow_.style.MozBorderRadius=this.bubbleShadow_.style.webkitBorderRadius=this.px(t),this.tabsContainer_.style.paddingLeft=this.tabsContainer_.style.paddingRight=this.px(t+e),this.redraw_()},InfoBubble.prototype.borderRadius_changed=InfoBubble.prototype.borderRadius_changed,InfoBubble.prototype.getBorderWidth_=function(){return parseInt(this.get("borderWidth"),10)||0},InfoBubble.prototype.setBorderWidth=function(t){this.set("borderWidth",t)},InfoBubble.prototype.setBorderWidth=InfoBubble.prototype.setBorderWidth,InfoBubble.prototype.borderWidth_changed=function(){var t=this.getBorderWidth_();this.contentContainer_.style.borderWidth=this.px(t),this.tabsContainer_.style.top=this.px(t),this.updateArrowStyle_(),this.updateTabStyles_(),this.borderRadius_changed(),this.redraw_()},InfoBubble.prototype.borderWidth_changed=InfoBubble.prototype.borderWidth_changed,InfoBubble.prototype.updateArrowStyle_=function(){var t=this.getBorderWidth_(),e=this.getArrowSize_(),n=this.getArrowStyle_(),i=this.px(e),o=this.px(Math.max(0,e-t)),a=this.arrowOuter_,s=this.arrowInner_;this.arrow_.style.marginTop=this.px(-t),a.style.borderTopWidth=i,s.style.borderTopWidth=o,0==n||1==n?(a.style.borderLeftWidth=i,s.style.borderLeftWidth=o):a.style.borderLeftWidth=s.style.borderLeftWidth=0,0==n||2==n?(a.style.borderRightWidth=i,s.style.borderRightWidth=o):a.style.borderRightWidth=s.style.borderRightWidth=0,n<2?(a.style.marginLeft=this.px(-e),s.style.marginLeft=this.px(-(e-t))):a.style.marginLeft=s.style.marginLeft=0,0==t?a.style.display="none":a.style.display=""},InfoBubble.prototype.setPadding=function(t){this.set("padding",t)},InfoBubble.prototype.setPadding=InfoBubble.prototype.setPadding,InfoBubble.prototype.setCloseSrc=function(t){t&&this.close_&&(this.close_.src=t)},InfoBubble.prototype.setCloseSrc=InfoBubble.prototype.setCloseSrc,InfoBubble.prototype.getPadding_=function(){return parseInt(this.get("padding"),10)||0},InfoBubble.prototype.padding_changed=function(){var t=this.getPadding_();this.contentContainer_.style.padding=this.px(t),this.updateTabStyles_(),this.redraw_()},InfoBubble.prototype.padding_changed=InfoBubble.prototype.padding_changed,InfoBubble.prototype.px=function(t){return t?t+"px":t},InfoBubble.prototype.addEvents_=function(){var t=["mousedown","mousemove","mouseover","mouseout","mouseup","mousewheel","DOMMouseScroll","touchstart","touchend","touchmove","dblclick","contextmenu","click"],e=this.bubble_;this.listeners_=[];for(var n,i=0;n=t[i];i++)this.listeners_.push(google.maps.event.addDomListener(e,n,function(t){t.cancelBubble=!0,t.stopPropagation&&t.stopPropagation()}))},InfoBubble.prototype.onAdd=function(){this.bubble_||this.buildDom_(),this.addEvents_();var t=this.getPanes();t&&(t.floatPane.appendChild(this.bubble_),t.floatShadow.appendChild(this.bubbleShadow_)),google.maps.event.trigger(this,"domready")},InfoBubble.prototype.onAdd=InfoBubble.prototype.onAdd,InfoBubble.prototype.draw=function(){var t=this.getProjection();if(t){var e=this.get("position");if(!e)return void this.close();var n=0;this.activeTab_&&(n=this.activeTab_.offsetHeight);var i=this.getAnchorHeight_(),o=this.getArrowSize_(),a=this.getArrowPosition_();a/=100;var s=t.fromLatLngToDivPixel(e),r=this.contentContainer_.offsetWidth,l=this.bubble_.offsetHeight;if(r){var d=s.y-(l+o);i&&(d-=i);var c=s.x-r*a;this.bubble_.style.top=this.px(d),this.bubble_.style.left=this.px(c);var u=parseInt(this.get("shadowStyle"),10);switch(u){case 1:this.bubbleShadow_.style.top=this.px(d+n-1),this.bubbleShadow_.style.left=this.px(c),this.bubbleShadow_.style.width=this.px(r),this.bubbleShadow_.style.height=this.px(this.contentContainer_.offsetHeight-o);break;case 2:r=.8*r,i?this.bubbleShadow_.style.top=this.px(s.y):this.bubbleShadow_.style.top=this.px(s.y+o),this.bubbleShadow_.style.left=this.px(s.x-r*a),this.bubbleShadow_.style.width=this.px(r),this.bubbleShadow_.style.height=this.px(2)}}}},InfoBubble.prototype.draw=InfoBubble.prototype.draw,InfoBubble.prototype.onRemove=function(){this.bubble_&&this.bubble_.parentNode&&this.bubble_.parentNode.removeChild(this.bubble_),this.bubbleShadow_&&this.bubbleShadow_.parentNode&&this.bubbleShadow_.parentNode.removeChild(this.bubbleShadow_);for(var t,e=0;t=this.listeners_[e];e++)google.maps.event.removeListener(t)},InfoBubble.prototype.onRemove=InfoBubble.prototype.onRemove,InfoBubble.prototype.isOpen=function(){return this.isOpen_},InfoBubble.prototype.isOpen=InfoBubble.prototype.isOpen,InfoBubble.prototype.close=function(){this.bubble_&&(this.bubble_.style.display="none",this.bubble_.className=this.bubble_.className.replace(this.animationName_,"")),this.bubbleShadow_&&(this.bubbleShadow_.style.display="none",this.bubbleShadow_.className=this.bubbleShadow_.className.replace(this.animationName_,"")),this.isOpen_=!1},InfoBubble.prototype.close=InfoBubble.prototype.close,InfoBubble.prototype.open=function(t,e){var n=this;window.setTimeout(function(){n.open_(t,e)},0)},InfoBubble.prototype.open_=function(t,e){this.updateContent_(),t&&this.setMap(t),e&&(this.set("anchor",e),this.bindTo("anchorPoint",e),this.bindTo("position",e)),this.bubble_.style.display=this.bubbleShadow_.style.display="";var n=!this.get("disableAnimation");n&&(this.bubble_.className+=" "+this.animationName_,this.bubbleShadow_.className+=" "+this.animationName_),this.redraw_(),this.isOpen_=!0;var i=!this.get("disableAutoPan");if(i){var o=this;window.setTimeout(function(){o.panToView()},200)}},InfoBubble.prototype.open=InfoBubble.prototype.open,InfoBubble.prototype.setPosition=function(t){t&&this.set("position",t)},InfoBubble.prototype.setPosition=InfoBubble.prototype.setPosition,InfoBubble.prototype.getPosition=function(){return this.get("position")},InfoBubble.prototype.getPosition=InfoBubble.prototype.getPosition,InfoBubble.prototype.position_changed=function(){this.draw()},InfoBubble.prototype.position_changed=InfoBubble.prototype.position_changed,InfoBubble.prototype.panToView=function(){var t=this.getProjection();if(t&&this.bubble_){var e=this.getAnchorHeight_(),n=this.bubble_.offsetHeight+e,i=this.get("map"),o=i.getDiv(),a=o.offsetHeight,s=this.getPosition(),r=t.fromLatLngToContainerPixel(i.getCenter()),l=t.fromLatLngToContainerPixel(s),d=r.y-n,c=a-r.y,u=d<0,p=0;u&&(d*=-1,p=(d+c)/2),l.y-=p,s=t.fromContainerPixelToLatLng(l),i.getCenter()!=s&&i.panTo(s)}},InfoBubble.prototype.panToView=InfoBubble.prototype.panToView,InfoBubble.prototype.htmlToDocumentFragment_=function(t){t=t.replace(/^\s*([\S\s]*)\b\s*$/,"$1");var e=document.createElement("DIV");if(e.innerHTML=t,1==e.childNodes.length)return e.removeChild(e.firstChild);for(var n=document.createDocumentFragment();e.firstChild;)n.appendChild(e.firstChild);return n},InfoBubble.prototype.removeChildren_=function(t){if(t)for(var e;e=t.firstChild;)t.removeChild(e)},InfoBubble.prototype.setContent=function(t){this.set("content",t)},InfoBubble.prototype.setContent=InfoBubble.prototype.setContent,InfoBubble.prototype.getContent=function(){return this.get("content")},InfoBubble.prototype.getContent=InfoBubble.prototype.getContent,InfoBubble.prototype.updateContent_=function(){if(this.content_){this.removeChildren_(this.content_);var t=this.getContent();if(t){"string"==typeof t&&(t=this.htmlToDocumentFragment_(t)),this.content_.appendChild(t);for(var e,n=this,i=this.content_.getElementsByTagName("IMG"),o=0;e=i[o];o++)google.maps.event.addDomListener(e,"load",function(){n.imageLoaded_()})}this.redraw_()}},InfoBubble.prototype.imageLoaded_=function(){var t=!this.get("disableAutoPan");this.redraw_(),!t||0!=this.tabs_.length&&0!=this.activeTab_.index||this.panToView()},InfoBubble.prototype.updateTabStyles_=function(){if(this.tabs_&&this.tabs_.length){for(var t,e=0;t=this.tabs_[e];e++)this.setTabStyle_(t.tab);this.activeTab_.style.zIndex=this.baseZIndex_;var n=this.getBorderWidth_(),i=this.getPadding_()/2;this.activeTab_.style.borderBottomWidth=0,this.activeTab_.style.paddingBottom=this.px(i+n)}},InfoBubble.prototype.setTabStyle_=function(t){var e=this.get("backgroundColor"),n=this.get("borderColor"),i=this.getBorderRadius_(),o=this.getBorderWidth_(),a=this.getPadding_(),s=this.px(-Math.max(a,i)),r=this.px(i),l=this.baseZIndex_;t.index&&(l-=t.index);var d={cssFloat:"left",position:"relative",cursor:"pointer",backgroundColor:e,border:this.px(o)+" solid "+n,padding:this.px(a/2)+" "+this.px(a),marginRight:s,whiteSpace:"nowrap",borderRadiusTopLeft:r,MozBorderRadiusTopleft:r,webkitBorderTopLeftRadius:r,borderRadiusTopRight:r,MozBorderRadiusTopright:r,webkitBorderTopRightRadius:r,zIndex:l,display:"inline"};for(var c in d)t.style[c]=d[c];var u=this.get("tabClassName");void 0!=u&&(t.className+=" "+u)},InfoBubble.prototype.addTabActions_=function(t){var e=this;t.listener_=google.maps.event.addDomListener(t,"click",function(){e.setTabActive_(this)})},InfoBubble.prototype.setTabActive=function(t){var e=this.tabs_[t-1];e&&this.setTabActive_(e.tab)},InfoBubble.prototype.setTabActive=InfoBubble.prototype.setTabActive,InfoBubble.prototype.setTabActive_=function(t){if(!t)return this.setContent(""),void this.updateContent_();var e=this.getPadding_()/2,n=this.getBorderWidth_();if(this.activeTab_){var i=this.activeTab_;i.style.zIndex=this.baseZIndex_-i.index,i.style.paddingBottom=this.px(e),i.style.borderBottomWidth=this.px(n)}t.style.zIndex=this.baseZIndex_,t.style.borderBottomWidth=0,t.style.marginBottomWidth="-10px",t.style.paddingBottom=this.px(e+n),this.setContent(this.tabs_[t.index].content),this.updateContent_(),this.activeTab_=t,this.redraw_()},InfoBubble.prototype.setMaxWidth=function(t){this.set("maxWidth",t)},InfoBubble.prototype.setMaxWidth=InfoBubble.prototype.setMaxWidth,InfoBubble.prototype.maxWidth_changed=function(){this.redraw_()},InfoBubble.prototype.maxWidth_changed=InfoBubble.prototype.maxWidth_changed,InfoBubble.prototype.setMaxHeight=function(t){this.set("maxHeight",t)},InfoBubble.prototype.setMaxHeight=InfoBubble.prototype.setMaxHeight,InfoBubble.prototype.maxHeight_changed=function(){this.redraw_()},InfoBubble.prototype.maxHeight_changed=InfoBubble.prototype.maxHeight_changed,InfoBubble.prototype.setMinWidth=function(t){this.set("minWidth",t)},InfoBubble.prototype.setMinWidth=InfoBubble.prototype.setMinWidth,InfoBubble.prototype.minWidth_changed=function(){this.redraw_()},InfoBubble.prototype.minWidth_changed=InfoBubble.prototype.minWidth_changed,InfoBubble.prototype.setMinHeight=function(t){this.set("minHeight",t)},InfoBubble.prototype.setMinHeight=InfoBubble.prototype.setMinHeight,InfoBubble.prototype.minHeight_changed=function(){this.redraw_()},InfoBubble.prototype.minHeight_changed=InfoBubble.prototype.minHeight_changed,InfoBubble.prototype.addTab=function(t,e){var n=document.createElement("DIV");n.innerHTML=t,this.setTabStyle_(n),this.addTabActions_(n),this.tabsContainer_.appendChild(n),this.tabs_.push({label:t,content:e,tab:n}),n.index=this.tabs_.length-1,n.style.zIndex=this.baseZIndex_-n.index,this.activeTab_||this.setTabActive_(n),n.className=n.className+" "+this.animationName_,
this.redraw_()},InfoBubble.prototype.addTab=InfoBubble.prototype.addTab,InfoBubble.prototype.updateTab=function(t,e,n){if(!(!this.tabs_.length||t<0||t>=this.tabs_.length)){var i=this.tabs_[t];void 0!=e&&(i.tab.innerHTML=i.label=e),void 0!=n&&(i.content=n),this.activeTab_==i.tab&&(this.setContent(i.content),this.updateContent_()),this.redraw_()}},InfoBubble.prototype.updateTab=InfoBubble.prototype.updateTab,InfoBubble.prototype.removeTab=function(t){if(!(!this.tabs_.length||t<0||t>=this.tabs_.length)){var e=this.tabs_[t];e.tab.parentNode.removeChild(e.tab),google.maps.event.removeListener(e.tab.listener_),this.tabs_.splice(t,1),delete e;for(var n,i=0;n=this.tabs_[i];i++)n.tab.index=i;e.tab==this.activeTab_&&(this.tabs_[t]?this.activeTab_=this.tabs_[t].tab:this.tabs_[t-1]?this.activeTab_=this.tabs_[t-1].tab:this.activeTab_=void 0,this.setTabActive_(this.activeTab_)),this.redraw_()}},InfoBubble.prototype.removeTab=InfoBubble.prototype.removeTab,InfoBubble.prototype.getElementSize_=function(t,e,n){var i=document.createElement("DIV");i.style.display="inline",i.style.position="absolute",i.style.visibility="hidden","string"==typeof t?i.innerHTML=t:i.appendChild(t.cloneNode(!0)),document.body.appendChild(i);var o=new google.maps.Size(i.offsetWidth,i.offsetHeight);return e&&o.width>e&&(i.style.width=this.px(e),o=new google.maps.Size(i.offsetWidth,i.offsetHeight)),n&&o.height>n&&(i.style.height=this.px(n),o=new google.maps.Size(i.offsetWidth,i.offsetHeight)),document.body.removeChild(i),delete i,o},InfoBubble.prototype.redraw_=function(){this.figureOutSize_(),this.positionCloseButton_(),this.draw()},InfoBubble.prototype.figureOutSize_=function(){var t=this.get("map");if(t){var e=this.getPadding_(),n=(this.getBorderWidth_(),this.getBorderRadius_(),this.getArrowSize_()),i=t.getDiv(),o=2*n,a=i.offsetWidth-o,s=i.offsetHeight-o-this.getAnchorHeight_(),r=0,l=this.get("minWidth")||0,d=this.get("minHeight")||0,c=this.get("maxWidth")||0,u=this.get("maxHeight")||0;c=Math.min(a,c),u=Math.min(s,u);var p=0;if(this.tabs_.length)for(var h,f=0;h=this.tabs_[f];f++){var g=this.getElementSize_(h.tab,c,u),m=this.getElementSize_(h.content,c,u);l<g.width&&(l=g.width),p+=g.width,d<g.height&&(d=g.height),g.height>r&&(r=g.height),l<m.width&&(l=m.width),d<m.height&&(d=m.height)}else{var v=this.get("content");if("string"==typeof v&&(v=this.htmlToDocumentFragment_(v)),v){var m=this.getElementSize_(v,c,u);l<m.width&&(l=m.width),d<m.height&&(d=m.height)}}c&&(l=Math.min(l,c)),u&&(d=Math.min(d,u)),l=Math.max(l,p),l==p&&(l+=2*e),n=2*n,l=Math.max(l,n),l>a&&(l=a),d>s&&(d=s-r),this.tabsContainer_&&(this.tabHeight_=r,this.tabsContainer_.style.width=this.px(p)),this.contentContainer_.style.width=this.px(l),this.contentContainer_.style.height=this.px(d)}},InfoBubble.prototype.getAnchorHeight_=function(){var t=this.get("anchor");if(t){var e=this.get("anchorPoint");if(e)return-1*e.y}return 0},InfoBubble.prototype.anchorPoint_changed=function(){this.draw()},InfoBubble.prototype.anchorPoint_changed=InfoBubble.prototype.anchorPoint_changed,InfoBubble.prototype.positionCloseButton_=function(){var t=(this.getBorderRadius_(),this.getBorderWidth_()),e=2,n=2;this.tabs_.length&&this.tabHeight_&&(n+=this.tabHeight_),n+=t,e+=t;var i=this.contentContainer_;i&&i.clientHeight<i.scrollHeight&&(e+=15),this.close_.style.right=this.px(e),this.close_.style.top=this.px(n)},String.prototype.includes||(String.prototype.includes=function(t,e){"use strict";return"number"!=typeof e&&(e=0),!(e+t.length>this.length)&&this.indexOf(t,e)!==-1}),Breakpoints({xs:{min:0,max:767},sm:{min:768,max:991},md:{min:992,max:1199},lg:{min:1200,max:1/0},mobile:{min:0,max:991},desktop:{min:992,max:1/0}}),$(function(){var t=$(".nav-tabs"),e=$("#header"),n=$("#wrapper");!function(){var t,n=$("#mobile-nav"),i=$(".menu-button"),o=$("#nav").find(".menu-button-wrapper").next().text().trim();n.length&&(n.mmenu({navbars:[{position:top,content:["<a href='#mm-1'>"+o+"</a>"]}]}),t=n.data("mmenu"),i.on("click",function(){t.open()}),e.on("click",function(){t.close()}),t.bind("opened",function(){n.addClass("mm-menu-ready")}),t.bind("closing",function(){n.removeClass("mm-menu-ready")})),e.addClass("mm-slideout").insertAfter($("#mm-blocker"))}(),function(){e.find("#language-redirect").on("closed.bs.alert",function(){n.removeClass("js-language-redirect")})}(),svg4everybody({polyfill:!0}),$(document).on("show.bs.collapse",function(t){$(t.target).prev(".panel-heading").addClass("active")}).on("hide.bs.collapse",function(t){$(t.target).prev(".panel-heading").removeClass("active")}),t.tabCollapse(),t.on("shown-accordion.bs.tabcollapse",function(){t.next().find(".panel-collapse.collapse.in").parent(".panel").find(".panel-heading").addClass("active")}),$(".search-button").on("click",function(){$(this).toggleClass("active"),$(".page-header--mobile").toggleClass("active")}),$(".nav-language button").on("click",function(){$(this).toggleClass("active"),$(this).parent().find("ul").toggleClass("active")}),function(){var t=$("#js-contact"),e=t.find(".js-rotate"),n=parseInt(e.css("width"),10)||50;t.on("click",function(){$("section.contact").toggleClass("active")}),n>130&&t.css("height",n+60),e.css({top:t.height()/2+"px",left:"-"+(n/2-16)+"px"})}(),function(){var t,e,n,i,o,a=$(".form-group.upload input"),s="",r=["jpg","jpeg","gif","png"];a.each(function(){$(this).change(function(e){t=$(this),s=this.files&&this.files.length>1?(t.data("multiple-caption")||"").replace("{count}",this.files.length):e.target.value.split("\\").pop(),s&&t.closest("label").find("span.filename").html(s)})}),$(".form-group.fancy input").on("change",function(t){n=$(this).closest(".fancy"),e=n.find(".upload-image"),this.files&&this.files[0]?(i=new FileReader,e.find("img").attr("src","#"),n.find("button.file span").text(t.target.value.split("\\").pop()),i.onload=function(i){o=t.target.value.split(".").pop(),$.inArray(o,r)!==-1?(e.find("img").attr("src",i.target.result),e.find("img").attr("src").length?n.addClass("js-active js-show-image"):n.removeClass("js-active js-show-image")):"pdf"===o?n.addClass("js-active").addClass("js-show-svg"):n.addClass("js-active")},i.readAsDataURL(this.files[0])):n.removeClass("js-active")}),$(".form-group.fancy button.file").click(function(e){e.preventDefault(),n=$(this).closest(".fancy"),t=n.find("input"),t.wrap("<form>").closest("form").get(0).reset(),t.unwrap(),n.removeClass("js-active js-show-image js-show-svg").find(".upload-image img").attr("src","#"),n.find("button.file span").text("")})}()}),$.fn.alphaFilter=function(){function t(t){var e=[],n=$("<li></li>"),i=$("<option></option>"),o=!1;t.data("filterList").append(n.clone().attr("data-filter","All").html($("<a></a>").attr("href","#").text("All")).addClass("active all")),t.data("filterSelect").append(i.clone().val("All").text("All").addClass("active all").prop("selected",!0)),t.data("filterItems").each(function(){var t=$(this).find(".abcfilter-text").text().trim().charAt(0),n=/^-?[0-9]+$/;$.inArray(t.toUpperCase(),e)!==-1||n.test(t)||e.push(t.toUpperCase())}),e.sort(),$.each(e,function(){/[A-Za-z]/.test(this)?(t.data("filterList").append(n.clone().attr("data-filter",this).html($("<a></a>").attr("href","#").text(this))),t.data("filterSelect").append(i.clone().val(this).text(this))):o=!0}),o&&(t.data("filterList").append(n.clone().attr("data-filter","#").html($("<a></a>").attr("href","#").text("#"))),t.data("filterSelect").append(i.clone().val("#").text("#")))}function e(t,e){var n=t.data("filterItems");return t.data("filterList").find("li").removeClass("active"),t.data("filterList").find('li[data-filter="'+e+'"]').addClass("active"),t.data("filterSelect").val(e),"All"===e?void n.removeClass("hidden"):(n.addClass("hidden"),void n.each(function(){var t=$(this),n=t.find(".abcfilter-text").text().trim().charAt(0);e.toLowerCase()===n.toLowerCase()?t.removeClass("hidden"):"#"===e&&/[^A-Za-z]/.test(n)&&t.removeClass("hidden")}))}return $(".js-filter-button").find("button.filter").on("click",function(){var t=$(this),e=t.closest(".js-filter-button").find('.filter-content[data-name="'+t.data("filter")+'"]');t.hasClass("js-active")?(t.removeClass("js-active"),e.removeClass("js-active")):(t.addClass("js-active"),e.addClass("js-active"))}),this.each(function(){var n=$(this),i=n.find(".filter-alphabetical-list");$filterSelect=n.find(".filter-select select"),$filterItems=n.find(".abcfilter-item"),n.data("filterList",i),n.data("filterSelect",$filterSelect),n.data("filterItems",$filterItems),t(n),i.on("click","li",function(){e(n,$(this).data("filter"))}),$filterSelect.on("change",function(){e(n,$(this).val())})})},$(function(){$(".downloads-alphabetical").alphaFilter(),$(".linklist-alphabetical").alphaFilter();var t=$(".filter-container .label, .segment-filter .label");t.on("click",function(){var e=$(this),n=e.data("filter"),i=$(".results");t.removeClass("active"),e.addClass("active"),i.find(".sites-container.hidden, .link-outer-wrapper.hidden").removeClass("hidden"),"all"!==n?$.each(i.find(".sites-item, .link-item"),function(){$(this).data("segment").indexOf(n)===-1&&$(this).closest(".sites-container, .link-outer-wrapper").addClass("hidden")}):i.find(".sites-container.hidden, .link-outer-wrapper.hidden").removeClass("hidden"),colorOddEven()})});var $wrapper=$(".link-wrapper"),$linkItems=$("div.link-outer-wrapper:not(:hidden)"),addOddAndEven=function(t){var e=$wrapper.find($linkItems);t?(e.filter(":even").children(".link-item-wrapper").addClass("even"),e.filter(":odd").children(".link-item-wrapper").addClass("odd")):(e.filter(":nth-child(4n), :nth-child(4n + 1)").children(".link-item-wrapper").addClass("even"),e.filter(":nth-child(4n + 2), :nth-child(4n + 3)").children(".link-item-wrapper").addClass("odd"))},resetOddAndEven=function(){$(".link-outer-wrapper").find(".link-item-wrapper").removeClass("odd even"),$(".link-wrapper").removeClass("define-odd-even")},colorOddEven=function(){$(".link-wrapper").each(function(){$(this).addClass("define-odd-even"),addOddAndEven(!(document.body.offsetWidth>=992))}),$(".segment-filter").find(".label").on("click",function(){var t=$(".link-wrapper");resetOddAndEven(),$(".filter-alphabetical-list").find("li").filter('[data-filter="All"]').trigger("click"),document.body.offsetWidth<992?(t.find($("div.link-outer-wrapper:not(:hidden)")).find(".link-item-wrapper").removeClass("even odd"),t.each(function(){$(this).find($("div.link-outer-wrapper:not(:hidden)")).filter(":even").find(".link-item-wrapper").addClass("even"),$(this).find($("div.link-outer-wrapper:not(:hidden)")).filter(":odd").find(".link-item-wrapper").addClass("odd")})):t.each(function(){$(this).find("div.link-outer-wrapper:not(:hidden)").each(function(t){var e=$(this),n="odd";t%4!==0&&t%4!==1||(n="even"),e.children("a.link-item-wrapper").addClass(n)})})})};$(function(){colorOddEven(),$(".filter-alphabetical-list").children("li").click(function(){$(this).addClass("active").siblings().removeClass("active")})});var Location=function(t,e,n){"use strict";var i=function(){return this.$element=t("#locations .locations-map"),this.countriesSource=MAP_DATA,this.filterObject=null,this.googleMap=null,this.dataLayer=null,this.backgroundLayer=null,this.boundaries={},this.markers={},this.infoWindows={},this.backgroundColor="#272728",this.foregroundColor="#E5E3DF",this.eventLock=null,this};i.prototype={constructor:i,initialize:function(t,e){return this.filterObject=t,this.initializeMap(),this.initializeBackgroundLayer(),this.initializeDataLayer(),this.initializeBoundaries(function(t){t.$element.on("click",".js-back",t.resetMap.bind(t)),"function"==typeof e&&e(t,t.filterObject)}),this},initializeMap:function(){var t=this;return t.googleMap=new google.maps.Map(t.$element.find(".map")[0],{center:{lng:0,lat:0},maxZoom:5,zoom:2,mapTypeControl:!1,minZoom:2,styles:[{stylers:[{visibility:"off"}]},{featureType:"water",stylers:[{visibility:"simplified"},{color:this.backgroundColor}]},{featureType:"landscape",stylers:[{visibility:"simplified"},{color:this.backgroundColor}]}]}),t.googleMap},initializeDataLayer:function(){var e=this;return e.dataLayer&&(t.each(e.dataLayer,function(t,n){e.dataLayer.remove(n)}),e.dataLayer=null),e.dataLayer=new google.maps.Data({map:e.googleMap}),e.dataLayer.setStyle({fillColor:"#C42835",fillOpacity:.4,strokeWeight:.5,zIndex:100}),e.dataLayer.addListener("mouseover",function(t){e.dataLayer.overrideStyle(t.feature,{strokeWeight:1})}),e.dataLayer.addListener("mouseout",function(t){e.dataLayer.overrideStyle(t.feature,{strokeWeight:.5})}),e.dataLayer.addListener("click",function(t){var n=new google.maps.LatLngBounds,i=t.feature;e.eventLock&&e.eventLock===i.f.name||(e.processPoints(i.getGeometry(),n.extend,n),e.googleMap.fitBounds(n),e.setMarkersByCode(i.f.code),e.eventLock=i.f.name)}),e.dataLayer},initializeBackgroundLayer:function(){var e=this;return e.backgroundLayer&&(t.each(e.backgroundLayer,function(t,n){e.backgroundLayer.remove(n)}),e.backgroundLayer=null),e.backgroundLayer=new google.maps.Data({map:e.googleMap}),e.backgroundLayer.setStyle({clickable:!1,fillColor:e.foregroundColor,fillOpacity:1,strokeColor:e.foregroundColor,strokeWeight:1,strokeOpacity:1,zIndex:50}),e.backgroundLayer.loadGeoJson(e.countriesSource),e.backgroundLayer},initializeBoundaries:function(e){var n=this;t.get(n.countriesSource,{},function(i){i.features&&(t.each(i.features,function(e,i){t.each(n.filterObject.getLocations(),function(t,e){i.id===e.code&&(i.segment=e.segment,i.region=e.region,i.properties.code||(i.properties.code=e.code),n.boundaries[i.id]=i)})}),"function"==typeof e&&e(n,n.filterObject))},"json")},updateBoundaries:function(){var e=this,n={segment:this.filterObject.getCurrentSegment(),region:this.filterObject.getCurrentRegion()};this.resetMarkers(),this.resetBoundaries(),t.each(this.boundaries,function(){e.isElementVisible.apply(this,[n])&&e.dataLayer.addGeoJson(this,{idPropertyName:"id"})}),this.eventLock=null},resetBoundaries:function(){var t=this;this.dataLayer.forEach(function(e){t.dataLayer.remove(e)})},isElementVisible:function(e){var n=this,i=!0;return t.each(e,function(t,e){"all"!==e&&"all"!==n[t]&&n[t].indexOf(e)===-1&&(i=!1)}),i},setMarkersByCode:function(e){var n=this;n.resetMarkers(),n.infoWindows={},t.each(this.filterObject.locations,function(i,o){o.code===e&&o.visible&&t.each(o.branches,function(e,i){if(i.visible){var a=new MarkerWithLabel({map:n.googleMap,position:new google.maps.LatLng(i.lat,i.lng)}),s=new InfoBubble({content:'<div class="infowindow-details">'+i.content+"</div>",zIndex:150,padding:0,hideCloseButton:!0,borderRadius:0,shadowStyle:0});google.maps.event.addListener(s,"domready",function(){t(this.bubble_).addClass("infowindow-wrapper"),t(this.bubble_).find(".header .close").on("click",function(){s.close()})}),1===o.branchCount&&s.open(n.googleMap,a),a.addListener("click",function(){n.infoWindows&&t.each(n.infoWindows,function(){this.close()}),s.open(n.googleMap,a)}),n.infoWindows[e]=s,n.markers[e]=a}})})},resetMarkers:function(){return this.infoWindows&&t.each(this.infoWindows,function(){this.close()}),t.each(this.markers,function(){this.setMap(null)}),this.markers={},this.markers},processPoints:function(t,e,n){var i=this;t instanceof google.maps.LatLng?e.call(n,t):t instanceof google.maps.Data.Point?e.call(n,t.get()):t.getArray().forEach(function(t){i.processPoints(t,e,n)})},resetMap:function(){this.updateBoundaries(),this.googleMap.setZoom(2),this.googleMap.setCenter(new google.maps.LatLng(0,0))}};var o=function(){return this.$filterWrapperElement=t(".locations-list-filter"),this.$locationWrapperElement=t(".locations-list"),this.$countryGroups=this.$locationWrapperElement.children("li"),this.$countries=this.$countryGroups.find("li"),this.$locations=this.$countries.find(".location"),this.mapObject=null,this.locations=null,this.currentSegment=null,this.currentRegion=null,this};o.prototype={constructor:o,initialize:function(t,e){var n=this;return this.mapObject=t,this.$filterWrapperElement.on("change",".filter select",function(){n.hideMessage(),n.$locations.hide().data("visible",!1).filter(function(){return n.isElementVisible.apply(this,[n.filterValues()])}).show().data("visible",!0),n.$countries.hide().data("visible",!1).filter(function(){return n.getVisibleChildren.apply(this,[".location"])}).show().data("visible",!0),n.$countryGroups.hide().filter(function(){return n.getVisibleChildren.apply(this,["li"])}).show(),n.getCurrentSegment(!0),n.getCurrentRegion(!0),n.refreshVisibility(),0==n.$countryGroups.filter(function(){return n.getVisibleChildren.apply(this,["li"])}).length&&n.showMessage(),n.mapObject.resetMap()}),"function"==typeof e&&e(this,this.mapObject),this},filterValues:function(){var e={};return this.$filterWrapperElement.find("select").each(function(){var n=t(this),i=n.closest(".filter").data("filterAttribute");e[i]=n.val()}),e},isElementVisible:function(e){var n=t(this).data(),i=!0;return t.each(e,function(t,e){"all"!==e&&n[t].indexOf(e)===-1&&(i=!1)}),i},getVisibleChildren:function(e){var n=t(this),i=n.find(e).filter(function(){return t(this).data("visible")===!0});return i.length>0},getLocations:function(e){var n=this;if(!this.locations||e){var i={};t.each(this.$locations,function(){var e=t(this),o=n.isElementVisible.apply(this,[n.filterValues()]),a=e.data("lat"),s=e.data("lng"),r=e.data("country"),l=n.generateId(a,s);i[r]||(i[r]={segment:e.data("business-segment"),region:[],code:e.data("iso3code"),branches:{},visible:o,branchCount:0}),t.each(e.data("region").split(","),function(){t.inArray(this,i[r].region)==-1&&i[r].region.push(this)}),i[r].branches[l]||(i[r].branches[l]={label:e.find('.details [property="name"]').text(),content:'<div class="header"><h2>'+r+'</h2><button class="close"><svg class="icon"><use xlink:href="'+SVG_SPRITE+'#cross"></use></svg></button></div>',lat:a,lng:s,visible:o}),i[r].branches[l]&&i[r].branches[l].visible===!1&&(i[r].branches[l].visible=o),i[r].segment!==e.data("business-segment")&&(i[r].segment="all"),o&&(i[r].branchCount++,i[r].branches[l].content+=e.find(".details").html())}),this.locations=i}return this.locations},refreshVisibility:function(){var e=this;this.getLocations(!0),t.each(this.$locations,function(){var n=t(this);e.locations[n.data("country")].visible||(e.locations[n.data("country")].visible=e.isElementVisible.apply(this,[e.filterValues()]))})},getCurrentSegment:function(e){return this.currentSegment&&!0!==e||(this.currentSegment=t("#business-segments").val()),this.currentSegment},getCurrentRegion:function(e){return this.currentRegion&&!0!==e||(this.currentRegion=t("#region").val()),this.currentRegion},generateId:function(t,e){return t=String(t)+String(e),t.replace(/\./g,"").replace(/-/g,"")},showMessage:function(){t(".locations-list-message").addClass("active")},hideMessage:function(){t(".locations-list-message").removeClass("active")}};var a=function(){return this.$switcherWrapperElement=t(".locations-switcher"),this.$locationWrapperElement=t(".locations-list"),this.$mapWrapperElement=t(".locations-map"),this.$buttons=this.$switcherWrapperElement.children("button"),this};return a.prototype={constructor:a,initialize:function(){var e=this;return this.$buttons.on("click",function(){e.$locationWrapperElement.removeClass("js-active"),e.$mapWrapperElement.removeClass("js-active"),e.$buttons.removeClass("js-active"),t(t(this).data("target")).addClass("js-active"),t(this).addClass("js-active")}),this}},function(){var t=new o,e=new i,n=new a;t.initialize(e),e.initialize(t,function(t,e){e.$filterWrapperElement.find("div.filter:last select:first").trigger("change")}),n.initialize()}}($,window,document);$(function(){$("#locations").length&&Location()}),$(document).ready(function(){var t,e,n,i=$("table"),o=[],a=0,s=0,r=void 0,l=function(){$("table").footable({calculateWidthOverride:function(){return{width:$(window).width()}},breakpoints:{tablet:992},detailSeparator:"",createGroupedDetail:function(t){for(var e={_none:{name:null,data:[]}},n=0;n<t.length;n++){var i=t[n].group;null!==i?(i in e||(e[i]={name:t[n].groupName||"",data:[]}),e[i].data.push(t[n])):e._none.data.push(t[n])}return e}})};i.each(function(){a=0,s=0,o=[],t=$(this).find("thead"),e=t.find("tr"),e.find("th").attr("data-hide","phone,tablet"),e.find("th:first-child").removeAttr("data-hide"),e.find("th").each(function(){var t=$(this).html();$(this).attr("data-name",t)}),e.length>1&&(t.find("tr:first-child").addClass("footable-group-row"),t.find("tr:first-child th").each(function(){$(this).attr("data-group","group"+$(this).index()),r=$(this).attr("colspan"),n=$(this).attr("rowspan"),void 0===r&&(r=1),void 0!==n&&1!=n||o.push(["group"+$(this).index(),r])}),t.find("tr:nth-child(2) th").each(function(){$(this).attr("data-group",o[a][0]),void 0===$(this).attr("colspan")?s++:s+=parseInt($(this).attr("colspan")),o[a][1]==s&&(a++,s=0)}))}),l(),prepareHeaderForRotation(),$("table").each(function(){$(this).find("tbody tr:even").addClass("even"),$(this).find("tbody tr:odd").addClass("odd")}),Breakpoints.on("desktop",{enter:function(){flipTable()},leave:function(){flipTable(),$("table.flip").removeClass("footable footable-loaded"),l()}}),$(".panel-group").on("shown.bs.collapse",function(t){$(".footable").trigger("resize")}),$(".nav-tabs").on("shown.bs.tab",function(t){$(".footable").trigger("resize")})}),function(t){t.fn.attrs=function(){var e={},n=t(this).get(0);return n&&t.each(n.attributes,function(){e[this.nodeName]=this.nodeValue}),e}}(jQuery),$(function(){var t=$("#header"),e=$("#slider"),n=e.find(".slider--content");!function(){var i=e.find(".slider--list"),o=e.find(".slider--buttons");i.slick({speed:500,fade:!0,cssEase:"linear",prevArrow:o.find("button.left"),nextArrow:o.find("button.right")}),n.find("button").click(function(){$("html, body").animate({scrollTop:n.offset().top-t.outerHeight()},1e3)})}(),$(".slider").each(function(){var t=$(this).find(".content-slider-element"),e=$(this).find(".testemonials-slider-element"),n=$(this).find(".slider--buttons");t.slick({speed:300,dots:!0,slidesToShow:3,slidesToScroll:3,infinite:!0,cssEase:"linear",prevArrow:n.find("button.left"),nextArrow:n.find("button.right"),responsive:[{breakpoint:991,arrows:!1,prevArrow:"",nextArrow:"",settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:480,settings:{slidesToShow:1,slidesToScroll:1}}]}),e.slick({adaptiveHeight:!1,speed:300,dots:!0,slidesToShow:1,slidesToScroll:1,infinite:!0,cssEase:"linear",prevArrow:n.find("button.left"),nextArrow:n.find("button.right"),responsive:[{breakpoint:992,settings:{adaptiveHeight:!0}}]})})}),$(function(){var t,e=$("#nav"),n=function(){e.find(".sub-inner").each(function(){var e=0;t=$(this),t.find(".ul-wrapper ul").each(function(){var t=$(this),n="primary"==t.data("level")?"js-full-width":"js-double-width";0===t.find("ul").length&&t.parent().addClass(n).addClass("js-no-border"),t.actual("height")>e&&(e=t.actual("height"))}),t.height(e),t.data("default-height",e)})},i=function(t){t.addClass("js-open")},o=function(t){t.removeClass("js-open")},a=function(t){var e,n=t.children("ul").children("li");n.on("mouseenter",function(){var t=$(this),e=t.closest(".sub-inner");n.removeClass("js-open"),e.animate({height:e.actual("height")+"px"},200),i(t)}).on("mouseleave",function(){var t=$(this);clearTimeout(e),setTimeout(function(){t.is(":hover")||o(t)},500)})};e.addClass("js-no-hover"),Breakpoints.on("md",{enter:function(){n()},leave:function(){n()}}),e.find(".nav-list > li").on("mouseleave",function(){$(this).find("li").removeClass("js-open")}),e.find(".ul-wrapper").each(function(){a($(this))}),n()}),$(function(){var t=$(".lightbox-gallery");t.addClass("lightbox-gallery-active"),t.on("click",function(){$.fancybox($(this).clone(),{width:900,maxWidth:900,padding:18,openEffect:"fade",closeEffect:"fade",nextEffect:"fade",prevEffect:"fade",helpers:{title:null,overlay:{showEarly:!1},slideshow:{autostart:!1}},tpl:{closeBtn:function(){return $(".button-fancybox-close").html()}()},afterShow:function(){var t=this.wrap.find(".lightbox-gallery"),e=t.find(".lightbox-gallery-images"),n=t.find(".lightbox-gallery-media"),i=t.find(".lightbox-nav-images"),o=i.find("figure");setTimeout(function(){e.on("init",function(t){o.eq($(t.currentTarget).find(".slick-active").index()).addClass("active")}),o.each(function(){var t=$(this);t.attr("data-slide",t.index())}),e.slick({fade:!0,touchMove:!1,prevArrow:t.find("button.left"),nextArrow:t.find("button.right"),slide:"figure"}),o.on("click",function(){var t=$(this);o.removeClass("active"),t.addClass("active"),e.slick("slickGoTo",t.data("slide"))}),e.on("afterChange",function(t,e,n){o.removeClass("active"),o.eq(e.currentSlide).addClass("active")}),n.find("button").on("click",function(){var t=$(this);t.hasClass("play")?(e.slick("slickPlay"),t.hide(),n.find("button.pause").css("display","block")):(e.slick("slickPause"),t.hide(),n.find("button.play").css("display","block"))})},100)}})})}),$(function(){var t,e,n=$("#dsi-timeline");n.length&&(t=$(".history-inner-wrapper"),e=t.find(".history-element-wrapper"),t.timeline({itemClass:".history-element-wrapper",startItem:"last",itemMargin:30,categories:HISTORY_CATEGORIES}),n.find(".button-left").text(e.first().attr("data-id").substr(-4)).attr("data-id",e.first().attr("data-id")).prepend('<svg class="icon"><use xlink:href="'+SVG_SPRITE+'#angle"></use></svg>').click(function(){t.timeline("goTo",$(this).attr("data-id"),null,null,!0)}),n.find(".button-right").text(e.last().attr("data-id").substr(-4)).attr("data-id",e.last().attr("data-id")).append('<svg class="icon"><use xlink:href="'+SVG_SPRITE+'#angle"></use></svg>').click(function(){t.timeline("goTo",$(this).attr("data-id"),null,null,!0)}),n.find(".t_left").append('<svg class="icon"><use xlink:href="'+SVG_SPRITE+'#angle"></use></svg>'),n.find(".t_right").append('<svg class="icon"><use xlink:href="'+SVG_SPRITE+'#angle"></use></svg>'),$("#t_line_left").append('<svg class="icon"><use xlink:href="'+SVG_SPRITE+'#angle"></use></svg>'),$("#t_line_right").append('<svg class="icon"><use xlink:href="'+SVG_SPRITE+'#angle"></use></svg>'))}),$(function(){var t=$("div.video"),e=function(t,e){return e.prop("frameborder","0"),e.attr("allowfullscreen",t.data("allowfullscreen")),e.prop("src",location.protocol+"//www.youtube.com/embed/"+t.data("embed")+"?rel=0&showinfo=0&autoplay=1"),e.prop("title",t.data("title")),e};$.each(t,function(){var t=$(this),n=$("<iframe>");0==t.data("autoplay")?t.on("click",function(){t.replaceWith(e(t,n))}):t.replaceWith(e(t,n))})}),$(function(){var t=$("#header"),e=$("#slider"),n=$("body"),i=e.find(".slider--inner"),o=e.find(".slider--content"),a=o.find(".content--wrapper");!function(){$("body").hasClass("browser-ie")||(o.height(a.outerHeight()),o.waypoint({handler:function(){e.toggleClass("js-content-fixed")},offset:i.outerHeight()/2+t.find(".page-header--outer").outerHeight()-parseInt(o.css("borderTopWidth"),10)}))}(),function(){0===t.offset().top&&t.addClass("header-big"),$(".wrapper-inner").length&&n.waypoint({handler:function(e){"up"===e?t.addClass("header-big"):t.removeClass("header-big")},offset:function(){return"-"+$(".wrapper-inner").offset().top}})}(),function(){n.waypoint({handler:function(){$(".arrow-up-button").toggleClass("js-show")},offset:function(){return-1e3}}),$(".arrow-up-button").click(function(){$("html, body").animate({scrollTop:0},250)})}()});
/* ========================================================================
 * Responsive Image
 *
 * Inspired by:
 * http://luis-almeida.github.com/unveil
 * http://verge.airve.com/
 *
 * https://github.com/benjaminkott/bootstrap_package/blob/master/Resources/Public/JavaScript/Src/jquery.responsiveimages.js
 * ======================================================================== */

+function($) {

    // cache img.lazyload collection
    var $lazyload;

    // VIEWPORT HELPER CLASS DEFINITION
    // ================================
    var viewport;
    var ViewPort = function(options){
        this.viewportWidth  = 0;
        this.viewportHeight = 0;
        this.options  = $.extend({}, ViewPort.DEFAULTS, options);
        this.attrib = "src";
        this.update();
    };

    ViewPort.DEFAULTS = {
        breakpoints : {
            0:'small',
            768: 'medium',
            992: 'large',
            1200: 'bigger'
        }
    }

    ViewPort.prototype.viewportW = function() {
        var clientWidth = document.documentElement['clientWidth'], innerWidth = window['innerWidth'];
        return this.viewportWidth = clientWidth < innerWidth ? innerWidth : clientWidth;
    };

    ViewPort.prototype.viewportH = function() {
        var clientHeight = document.documentElement['clientHeight'], innerHeight = window['innerHeight'];
        return this.viewportHeight = clientHeight < innerHeight ? innerHeight : clientHeight;
    };

    ViewPort.prototype.inviewport = function(boundingbox) {
        return !!boundingbox && boundingbox.bottom >= 0 && boundingbox.right >= 0 && boundingbox.top <= this.viewportHeight && boundingbox.left <= this.viewportWidth;
    };

    ViewPort.prototype.update = function(){
        this.viewportH();
        this.viewportW();
        var attrib  = this.attrib,
            width   = this.viewportWidth;

        $.each(this.options.breakpoints, function (breakpoint, datakey) {
            if (width >= breakpoint) {
                attrib = datakey;
            }
        });

        this.attrib = attrib;
    };

    // expose viewportH & viewportW methods
    $.fn.viewportH = ViewPort.prototype.viewportH;
    $.fn.viewportW = ViewPort.prototype.viewportW;

    // RESPONSIVE IMAGES CLASS DEFINITION
    // ==================================
    var ResponsiveImage = function(element, options) {
        this.$element	= $(element);
        this.options	= $.extend({}, ResponsiveImage.DEFAULTS, options);
        this.attrib 	= "src";
        this.loaded		= false;
        this.checkviewport();
    };

    ResponsiveImage.DEFAULTS = {
        threshold: 0,
        attrib: "src",
        skip_invisible: false,
        preload: false
    };

    ResponsiveImage.prototype.checkviewport = function() {
        if (this.attrib !== viewport.attrib) {
            this.attrib = viewport.attrib;
            this.loaded = false;
        }
        this.unveil();
    };

    ResponsiveImage.prototype.boundingbox = function() {
        var boundingbox = {},
            coords    = this.$element[0].getBoundingClientRect(),
            threshold = +this.options.threshold || 0;
        boundingbox['right']  = coords['right']  + threshold; boundingbox['left'] = coords['left'] - threshold;
        boundingbox['bottom'] = coords['bottom'] + threshold; boundingbox['top']  = coords['top']  - threshold;
        return boundingbox;
    };

    ResponsiveImage.prototype.inviewport = function() {
        var boundingbox = this.boundingbox();
        return viewport.inviewport(boundingbox);
    };

    ResponsiveImage.prototype.unveil = function(force) {
        if (this.loaded || !force && !this.options.preload && this.options.skip_invisible && this.$element.is(":hidden")) return;
        var inview = force || this.options.preload || this.inviewport();
        if(inview){
            var source = this.options[this.attrib] || this.options["src"];
            if (source) {
                this.$element.attr("src", source);
                this.$element.css("opacity", 1);
                $(window).trigger('loaded.wv.responsiveimage');
                this.loaded	= true;
            }
        }
    };

    ResponsiveImage.prototype.print = function() {
        this.unveil(true);
    }

    // RESPONSIVE IMAGES PLUGIN DEFINITION
    // ===================================
    function Plugin(option) {
        $lazyload = this;
        return this.each(function() {
            var $this   = $(this);
            var data    = $this.data('wv.responsiveimage');
            var options = typeof option === 'object' && option;

            if (!data) {
                if (!viewport) viewport = new ViewPort(options && options.breakpoints ? {breakpoints:options.breakpoints} : {});

                if (options && options.breakpoints) options.breakpoints = null;
                options = $.extend({}, $this.data(), options);

                $this.data('wv.responsiveimage', (data = new ResponsiveImage(this, options)));
            }
            if (typeof option === 'string') data[option]();
        });
    };

    var old = $.fn.responsiveimages;

    $.fn.responsiveimage				= Plugin;
    $.fn.responsiveimage.Constructor	= ResponsiveImage;


    // RESPONSIVE IMAGES NO CONFLICT
    // =============================
    $.fn.responsiveimage.noConflict = function() {
        $.fn.responsiveimage = old;
        return this;
    };


    // RESPONSIVE IMAGES API
    // =====================
    $(window).on('load.wv.responsiveimage', function() {
        $('img.lazyload').responsiveimage();


        // EVENTS
        // ======
        $(window)
            .on('scroll.wv.responsiveimage', function() {
                $lazyload.responsiveimage('unveil');
            })
            .on('resize.wv.responsiveimage', function() {
                if (viewport) viewport.update();
                $lazyload.responsiveimage('checkviewport');
            });

        if ($('.slick-slider').length > 0) {
            $('.slick-slider').on('swipe', function() {
                $lazyload.responsiveimage('unveil');
            });

            $('.slick-arrow').on('click', function() {
                $lazyload.responsiveimage('unveil');
            });

            $('.slick-slider').on('afterChange', function() {
                $lazyload.responsiveimage('unveil');
            });
        }

        $(window).ajaxStop(function() {
            $('img.lazyload').responsiveimage('unveil');
        });
    });

}(jQuery);

/**
 * Javascript to reload the filtering result with AJAX. If the result is
 * empty, removes filters except products (if products are chosen) first
 * and afterwards everytime the last filter from the URL until the result
 * is not empty anymore.
 *
 * This function also fakes a click based on data-prefilter set in typoscript
 * on each set filter or the defined filters in the URL.
 *
 * @author Yannick Hermes <y.hermes@web-vision.de>
 * @author Justus Moroni <j.moroni@web-vision.de>
 */
$(function() {
    // Dont initialize solr filter if no plugin is present.
    if (! $('#js-solr-ajax-result-container').hasClass('projects') && ! $('#js-solr-ajax-result-container').hasClass('news')) {
        return false;
    }

    var Filtering = (function($, window, document) {
        "use strict";

        // ====================
        // Solr Forms
        // ====================

        var Form = function() {
            this.$form = undefined;
            this.$submit = $('#submit-form');
            this.$ajaxContainer = $('#js-solr-ajax-result-container');
            this.$resultContainer = $('#js-solr-ajax-result');
            this.$searchField = $('.search-field');

            this.overlayObject = new Overlay();
            this.filterObject = undefined;

            this.resultSelector = ' #js-solr-ajax-result';

            this.eventLock = null;

            return this;
        };

        Form.prototype = {
            constructor: Form,

            /**
             * Initialize
             *
             * @param {string} formSelector
             * @param filterObject
             * @param {function?} callback
             *
             * @returns {Form}
             */
            initialize: function(formSelector, filterObject, callback) {
                this.$form = $(formSelector);

                this.filterObject = filterObject;

                this.initializeEvents();
                this.initializeAjaxEvents();
            },
            /**
             * Initialize needed events
             *
             * @return void
             */
            initializeEvents: function() {
                var self = this,
                    $searchField = null;

                self.$submit.on('submit', function(event) {
                    event.preventDefault();

                    $searchField = $(this).find('[id^="search-field-"]');

                    if (self.filterObject instanceof ProjectFilter) {
                        self.filterObject.$activeFilter.find('button.js-deactivated').remove();
                        self.filterObject.hideNotification();
                    }

                    $searchField.prop('readonly', true);

                    self.sendForm(
                        self.generateFormUrl(),
                        false
                    );
                });

                // Remove overlay when ajax request is done
                $(document).ajaxStop(function() {
                    self.overlayObject.closeOverlay();

                    if ($searchField !== null) {
                        $searchField.prop('readonly', false).focus();
                    }

                    self.initializeAjaxEvents();
                });
            },
            /**
             * Initialize events on elements which are loaded via ajax.
             *
             * @return void
             */
            initializeAjaxEvents: function() {
                var self = this;

                $('.pagination-container').on('click', 'a', function(event) {
                    event.preventDefault();

                    self.sendForm(
                        $(this).attr('href'),
                        false
                    );

                    return false;
                });
            },
            /**
             * Submit the form via ajax.
             *
             * @param url Url to load.
             * @param isFirstRequest Wether or not the page is loaded or the form is submitted.
             *
             * @return void
             */
            sendForm: function(url, isFirstRequest) {
                var self = this;

                self.overlayObject.openOverlay();

                self.changeBrowserUrl(url);

                url = self.prepareAjaxUrl(url);

                self.filterObject.loadContent(url + self.resultSelector, isFirstRequest);
            },
            /**
             * Generate the correct url out of form fields.
             *
             * @return string
             */
            generateFormUrl: function() {
                var self = this,
                    matchUrlStartChar = new RegExp('(\\?|\\&|$).*'),
                    url = self.$form.attr('action').replace(matchUrlStartChar, '')
                        + '?'
                        + this.getFormData();

                return url;
            },
            /**
             * Add ajax parameter to url
             *
             * @param url Url to load.
             *
             * @return string
             */
            prepareAjaxUrl: function(url) {
                if (url.indexOf('?') !== -1) {
                    return url + '&ajax=1';
                }

                return url + '?ajax=1';
            },
            /**
             * Remove given parameters from url.
             *
             * @param url Url to load.
             * @param params Url params to remove.
             *
             * @return string
             */
            removeUrlParams: function(url, params) {
                var matchUrlParam;

                $.each(params, function() {
                    matchUrlParam = new RegExp('(\\?|\\&)(' + this + '=).*?(&|$)');

                    url = url.replace(matchUrlParam, '');
                });

                return url;
            },
            /**
             * Check if url has given url parameter.
             *
             * @param url Url to load.
             * @param param Url param to check.
             *
             * @return boolean
             */
            hasUrlParam: function(url, param) {
                var matchUrlParam = new RegExp('(\\?|\\&)(' + param + '=).*?(&|$)');

                return url.match(matchUrlParam);
            },
            /**
             * Empty a given url parameter.
             *
             * @param url Url to load.
             * @param param Url param to empty.
             *
             * @return string
             */
            emptyUrlParam: function(url, param) {
                var matchUrlParam = new RegExp('(\\?|\\&)(' + param + '=).*?(&|$)'),
                    matches = url.match(matchUrlParam),
                    replace;

                if (matches[0].indexOf('?') !== -1) {
                    replace = '?' + param + '=';
                }

                if (matches[3] == '&') {
                    replace += '&';
                }

                if (replace !== '') {
                    url = url.replace(matchUrlParam, replace);
                }

                return url;
            },
            /**
             * Get form data.
             *
             * @return array
             */
            getFormData: function() {
                return this.$form.serialize();
            },
            /**
             * Change url of current tab/window.
             *
             * @param url Url to show.
             *
             * @return void
             */
            changeBrowserUrl: function(url) {
                window.history.pushState(
                    'state',
                    'title',
                    url
                )
            },
            /**
             * Empty the search field.
             *
             * @return void
             */
            emptySearchField: function() {
                var self = this;

                self.$searchField.val('');
            }
        };

        // ====================
        // Solr Projects Filter
        // ====================

        var ProjectFilter = function() {
            this.formSelector = 'form.filter-projects';

            this.$wrapper = $(this.formSelector);
            this.$filterButtons = this.$wrapper.find('button.filter');
            this.$filterContent = this.$wrapper.find('.filter-content');
            this.$activeFilter = $('.filter-projects-active');
            this.$activeFilterList = this.$activeFilter.find('.filter-list');
            this.$reset = this.$activeFilter.find('.filter-action button');

            this.$notification = $('#filter-adjustment-notification');
            this.notificationActiveClass = 'notificationIsActive';

            this.eventOpenClass = 'js-active';
            this.filterApplication = 'application';
            this.filterSegment = 'segment';
            this.filterProduct = 'product';
            this.filterRegion = 'region';
            this.filterCountry = 'country';

            this.filters = {};

            this.formObject = undefined;

            this.eventLock = null;

            return this;
        };

        ProjectFilter.prototype = {
            constructor: ProjectFilter,

            /**
             * Initialize
             *
             * @param {function?} callback
             *
             * @returns {ProjectFilter}
             */
            initialize: function(callback) {
                var self = this;

                // Initialize form object
                this.formObject = new Form();
                this.formObject.initialize(this.formSelector, this);

                // Init hidden select for mobile filtering
                // Just for mobile, as we need to modify actual selects for filtering
                // products based on segments, etc.
                self.$wrapper.find('.filtering .form-group select').each(function() {
                    var $elem = $(this),
                        $newSelect = $elem.clone().removeAttr('id').removeAttr('name').addClass('hidden');

                    $newSelect.find('option').removeAttr('selected').prop('selected', false);
                    $elem.closest('.filtering').append($newSelect);
                });

                if (self.formObject.$resultContainer.children().length === 0) {
                    self.formObject.sendForm(
                        window.location.href,
                        true
                    );
                }

                // Initialize filter object
                $.each(self.$wrapper.find('.filter-content input[data-value]:checked'), function() {
                    var $elem = $(this),
                        filter = {
                            value: $elem.data('value'),
                            label: $elem.closest('label').text().trim(),
                            parent: $elem.data('parent'),
                            name: $elem.data('value').substr(0, $elem.data('value').indexOf(':')),
                        };

                    self.addFilterToList(
                        $elem.data('value').substr(0, $elem.data('value').indexOf(':')),
                        $elem.data('value').substr($elem.data('value').indexOf(':') + 1),
                        filter
                    );
                });

                this.initializeEvents();

                return this;
            },
            /**
             * Initialize needed events.
             *
             * @return void
             */
            initializeEvents: function() {
                var self = this;

                // Toggle buttons event
                this.$wrapper.find('button.filter').click(function() {
                    // Check if current is opened and close
                    if ($(this).hasClass(self.eventOpenClass)) {
                        self.closeContent();

                        return;
                    }

                    // Close all filters
                    self.closeContent();

                    // Open selected filter
                    self.openContent(this);
                });

                // Add quick select functionality
                self.$filterContent.find('button[data-select="all"]').on('click', function() {
                    $(this).closest(self.$filterContent).find('input:not(:checked)').click();
                });

                self.$filterContent.find('button[data-select="none"]').on('click', function() {
                    $(this).closest(self.$filterContent).find('input:checked').click();
                });

                // Detect changes in checkboxes
                self.$filterContent.find('input[type="checkbox"]:not(.select-all)').on('click', function() {
                    self.toggleCheckbox(this);
                });

                // Detect changes in select fields
                self.$wrapper.find('select').on('change', function() {
                    self.changeSelect(this);
                });

                // Add remove event for bubble
                self.$activeFilterList.on('click', 'button', function() {
                    var $elem = $(this);

                    self.$wrapper.find('input[data-value*="' + $elem.data('filterValue') + '"]')[0].click();
                    self.$wrapper.find('select:not(.hidden) option[value*="' + $elem.data('filterValue') + '"]')
                        .prop('selected', false).change();
                });

                // Allow quick select for segments
                self.$filterContent.find('input.select-all').on('change', function() {
                    self.toggleSegmentCheckbox(this);
                });

                // Reset form
                self.$reset.on('click', function() {
                    self.removeAllFiltersRecursively();

                    self.formObject.emptySearchField();

                    $('#submit-form').trigger('submit');
                });

                // Deactivate mobil and desktop filter on the opposite breakpoint
                Breakpoints.on('mobile', {
                    enter: function() {
                        self.$wrapper.find('.js-active').removeClass('js-active');
                        self.$wrapper.find('select').prop('disabled', false);
                        self.$wrapper.find('input[type="checkbox"]').prop('disabled', true);
                    }
                });
                Breakpoints.on('desktop', {
                    enter: function() {
                        self.$wrapper.find('select').prop('disabled', true);
                        self.$wrapper.find('input[type="checkbox"]').prop('disabled', false);

                        self.refreshCountryCheckboxes();
                        self.refreshProductCheckboxes();
                    },
                    leave: function() {
                        self.$wrapper.find('select').prop('disabled', false);
                        self.$wrapper.find('input[type="checkbox"]').prop('disabled', true);
                    }
                });
            },
            /**
             * Remove bubbles, unselect options and uncheck checkboxes.
             *
             * @return void
             */
            removeAllFiltersRecursively: function() {
                var self = this;

                self.filters = {};

                self.$activeFilterList.find('button:not(.hidden)').remove();
                self.$wrapper.find('select option:selected').removeAttr('selected');
                self.$wrapper.find('input[type="checkbox"]:checked').prop('checked', false);

                if (
                    self.$activeFilterList.find('button:visible').length ||
                    self.$wrapper.find('select').prop('selected') == 'selected' ||
                    self.$wrapper.find('input[type="checkbox"]').prop('checked') == 'checked'
                ) {
                    self.removeAllFiltersRecursively();
                }
                
                self.refreshCountryCheckboxes();
                self.refreshProductCheckboxes();
            },
            /**
             * Open the content of the filter on desktop.
             *
             * @param filter
             *
             * @return void
             */
            openContent: function(filter) {
                var $filter = $(filter);

                $filter.addClass(this.eventOpenClass);
                this.$wrapper.find('.filter-content[data-name="' + $filter.data('filter') + '"]')
                    .addClass(this.eventOpenClass);
            },
            /**
             * Close the content of the filter on desktop.
             *
             * @return void
             */
            closeContent: function() {
                this.$filterButtons.removeClass(this.eventOpenClass);
                this.$filterContent.removeClass(this.eventOpenClass);
            },
            /**
             * Show the notification that filters were reduced.
             *
             * @return void
             */
            displayNotification: function() {
                if (! this.$notification.find('div').hasClass(this.notificationActiveClass)) {
                    this.$notification.find('div')
                        .clone().appendTo(this.$notification)
                        .removeAttr('style')
                        .addClass(this.notificationActiveClass);
                }
            },
            /**
             * Hide the notification that filters were reduced.
             *
             * @return void
             */
            hideNotification: function() {
                $('.' + this.notificationActiveClass).remove();
            },
            /**
             * Load the content via Ajax.
             *
             * @param url Url to load.
             * @param isFirstRequest If the page is loaded or form is submitted.
             *
             * @return void
             */
            loadContent: function(url, isFirstRequest) {
                var self = this;

                self.formObject.$ajaxContainer.load(url, function() {
                    url = decodeURI(url);

                    var regExpQuery = new RegExp('(\\?|\\&)(q=).*?(&|$)'),
                        cleanUrl = function(url) {
                            url = url.replace(self.formObject.resultSelector, '');
                            url = self.formObject.removeUrlParams(url, ['ajax']);

                            return url;
                        },
                        checkFilter = function(url, filter) {
                            var matchSolrFilter = new RegExp('(\\?|\\&)(tx_solr\\[filter\\]\\[\\]=' + filter + ').*?(&|$)');

                            return url.match(matchSolrFilter);
                        },
                        removeFilterRecursively = function(url) {
                            var filters = [
                                    'country',
                                    'region',
                                    'application',
                                    'product'
                                ];

                            // Go through active filters and remove last one.
                            $.each(self.$activeFilterList.find('button:visible:not(.js-deactivated)').get().reverse(), function() {
                                var $activeFilter = $(this),
                                    skip = false;

                                $.each(filters, function() {
                                    if (checkFilter(url, this)) {
                                        if (this !== $activeFilter.data('filterGroup')) {
                                            skip = true;
                                            return false;
                                        }

                                        skip = false;
                                        return false;
                                    }
                                });

                                if (skip) {
                                    return true;
                                }

                                // Remove filter and cross out bubble
                                self.removeFilterKeepBubble(
                                    $activeFilter.data('filterGroup'),
                                    $activeFilter.data('filterValue')
                                );

                                // Send form
                                self.formObject.sendForm(
                                    self.formObject.generateFormUrl(),
                                    false
                                );

                                return false;
                            });

                            // If nothing changed return normal url.
                            return url;
                        };

                    // Reduce filters if the result is empty.
                    if ($('#js-solr-ajax-result').children().length === 0) {
                        if (url.match(regExpQuery)[0] !== '?q=&') {
                            url = self.formObject.emptyUrlParam(url, 'q');

                            self.formObject.emptySearchField();

                            url = cleanUrl(url);

                            self.formObject.sendForm(url, false);

                            self.displayNotification();
                        } else if(url.indexOf('tx_solr[filter]') !== -1){
                            removeFilterRecursively(url);

                            self.displayNotification();
                        }
                    }
                });
            },
            /**
             * Function to toggle checkboxes.
             *
             * @param filter The clicked checkbox.
             *
             * @return void
             */
            toggleCheckbox: function(filter) {
                var self = this,
                    $filter = $(filter),
                    filterValue = $filter.data('value').substr($filter.data('value').indexOf(':') + 1),
                    $segment,
                    $segmentColumn,
                    parents,
                    valueCheck = ($filter.data('value').indexOf('segment') || $filter.data('value').indexOf('product'));

                if ($filter.data('parent')) {
                    parents = $filter.data('parent').split(',');
                }

                if ($filter.prop('checked')) {
                    self.addFilter(
                        $filter.data('value').substr(0, $filter.data('value').indexOf(':')),
                        $filter.data('value'),
                        $filter.closest('label').text().trim(),
                        $filter.data('parent')
                    );

                    if (parents && valueCheck) {
                        $.each(parents, function() {
                            $segment = self.$wrapper.find('.filter-content input.select-all[data-value*="' + this + '"]');
                            $segmentColumn = $segment.parents('.segments-column');

                            if ($segmentColumn.find('input:not(.select-all)').length == self.getProductCountBySegment(this)) {
                                self.addFilter(
                                    $segment.data('value').substr(0, $segment.data('value').indexOf(':')),
                                    $segment.data('value'),
                                    $segment.closest('label').text().trim(),
                                    $segment.data('parent')
                                );

                                $segment.parents('.segments-column').find('input:checked').each(function() {
                                    var $elem = $(this);

                                    self.removeBubble(
                                        self.filterProduct,
                                        $elem.data('value')
                                    );
                                });
                            }
                        });
                    }
                } else {
                    self.removeFilter(
                        $filter.data('value').substr(0, $filter.data('value').indexOf(':')),
                        $filter.data('value')
                    );

                    if (parents && valueCheck) {
                        $.each(parents, function() {
                            if (self.hasActiveFilter(self.filterSegment, this)) {
                                $segment = self.$wrapper.find('.filter-content input[data-value*="' + this + '"]');

                                self.removeFilter(
                                    self.filterSegment,
                                    $segment.data('value')
                                );

                                $segment.parents('.segments-column').find('input:checked').each(function() {
                                    var $elem = $(this);

                                    self.addBubble(
                                        self.filterProduct,
                                        $elem.data('value'),
                                        $elem.closest('label').text().trim()
                                    );
                                });

                                return;
                            }
                        });
                    }
                }

                // Refresh the shown filters
                this.refreshFilterDesktop(
                    $filter.data('value').substr(0, $filter.data('value').indexOf(':')),
                    $filter.data('value')
                );
            },
            /**
             * Function to toggle segment checkboxes.
             *
             * @param filter The clicked checkbox.
             *
             * @return void
             */
            toggleSegmentCheckbox: function(filter) {
                var self = this,
                    $filter = $(filter),
                    $segmentColumn = $filter.closest('.segments-column'),
                    $inputs = $segmentColumn.find('input:not(.select-all)');

                if ($filter.prop('checked')) {
                    self.addFilter(
                        $filter.data('value').substr(0, $filter.data('value').indexOf(':')),
                        $filter.data('value'),
                        $filter.closest('label').text().trim(),
                        $filter.data('parent')
                    );

                    $inputs.each(function() {
                        var $input = $(this),
                            filter = {
                                value: $input.data('value'),
                                label: $input.closest('label').text().trim(),
                                parent: $input.data('parent'),
                                name: $input.data('value').substr(0, $input.data('value').indexOf(':'))
                            };

                        self.addFilterToList(
                            filter.name,
                            filter.value.substr(filter.value.indexOf(':') + 1),
                            filter
                        );

                        self.removeBubble(
                            filter.name,
                            filter.value.substr(filter.value.indexOf(':') + 1)
                        );
                    });
                } else {
                    $inputs.each(function() {
                        var $input = $(this),
                            filter = {
                                value: $input.data('value'),
                                label: $input.closest('label').text().trim(),
                                parent: $input.data('parent'),
                                name: $input.data('value').substr(0, $input.data('value').indexOf(':'))
                            };

                        self.removeFilterFromList(
                            filter.name,
                            filter.value.substr(filter.value.indexOf(':') + 1)
                        );
                    });

                    self.removeFilter(
                        $filter.data('value').substr(0, $filter.data('value').indexOf(':')),
                        $filter.data('value')
                    );
                }

                // Refresh the shown filters
                this.refreshFilterDesktop(
                    $filter.data('value').substr(0, $filter.data('value').indexOf(':')),
                    $filter.data('value')
                );

                self.toggleCheckbox(filter);
            },
            /**
             * Function to change select fields.
             *
             * @param filter The changed select field.
             *
             * @return void
             */
            changeSelect: function(filter) {
                var self = this,
                    $filter = $(filter);

                $filter.find('option').each(function() {
                    var $option = $(this);

                    if ($option.prop('selected')) {
                        self.addFilter(
                            $filter.closest('fieldset').data('name'),
                            $option.val(),
                            $option.text().trim()
                        );
                    } else {
                        self.removeFilter(
                            $filter.closest('fieldset').data('name'),
                            $option.val()
                        );
                    }

                    // Refresh the shown filters
                    self.refreshFilterMobile(
                        $filter.closest('fieldset').data('name'),
                        $option.val()
                    );
                });
            },
            /**
             * Add filter to the filter list.
             * Create bubble.
             * Change states of elements.
             *
             * @param filterName Name of the filter.
             * @param filterValue Value of the filter.
             * @param filterLabel Label of the filter.
             * @param filterParent Parents of the filter.
             *
             * @return void
             */
            addFilter: function(filterName, filterValue, filterLabel, filterParent) {
                var filter = {
                        value: filterValue,
                        label: filterLabel,
                        parent: filterParent,
                        name: filterName
                    };

                this.addFilterToList(
                    filterName,
                    filterValue.substr(filterValue.indexOf(':') + 1),
                    filter
                );

                this.addBubble(
                    filterName,
                    filterValue,
                    filterLabel
                );

                this.$wrapper.find('fieldset[data-name="' + filterName + '"] select[name="tx_solr[filter][]"] option[value="' + filterValue+ '"]')
                    .prop('selected', true);
                this.$wrapper.find('.filter-content input[data-value*="' + filterValue + '"]')
                    .prop('checked', true);
            },
            /**
             * Remove filter from the filter list.
             * Remove bubble.
             * Change states of elements.
             *
             * @param filterName Name of the filter.
             * @param filterValue Value of the filter.
             *
             * @return void
             */
            removeFilter: function(filterName, filterValue) {
                this.removeFilterFromList(
                    filterName,
                    filterValue.substr(filterValue.indexOf(':') + 1)
                );

                this.removeBubble(
                    filterName,
                    filterValue
                );

                this.$wrapper.find('fieldset[data-name="' + filterName + '"] select[name="tx_solr[filter][]"] option[value="' + filterValue+ '"]')
                    .prop('selected', false);
                this.$wrapper.find('.filter-content input[data-value*="' + filterValue + '"]')
                    .prop('checked', false);
            },
            /**
             * Remove filter from the filter list but keep bubble.
             * Change states of elements.
             *
             * @param filterName Name of the filter.
             * @param filterValue Value of the filter.
             *
             * @return void
             */
            removeFilterKeepBubble: function(filterName, filterValue) {
                this.removeFilterFromList(
                    filterName,
                    filterValue.substr(filterValue.indexOf(':') + 1)
                );

                this.deactivateBubble(
                    filterName,
                    filterValue
                );

                this.$wrapper.find('fieldset[data-name="' + filterName + '"] select[name="tx_solr[filter][]"] option[value="' + filterValue+ '"]')
                    .prop('selected', false);
                this.$wrapper.find('.filter-content input[data-value*="' + filterValue + '"]')
                    .prop('checked', false);

                this.refreshFilterDesktop(
                    filterName,
                    filterValue
                );
                this.refreshFilterMobile(
                    filterName,
                    filterValue
                );
            },
            /**
             * Add filter to list.
             *
             * @param filterName Name of the filter.
             * @param filterValue Value of the filter.
             * @param filter The json object of one filter.
             *
             * @return void
             */
            addFilterToList: function(filterName, filterValue, filter) {
                // Check if one of the filter was already set. Otherwise set it.
                if (! this.filters[filterName]) {
                    this.filters[filterName] = {};
                }

                // Add new filter to filterlist
                this.filters[filterName][filterValue] = filter;
            },
            /**
             * Remove filter from list.
             *
             * @param filterName Name of the filter.
             * @param filterValue Value of the filter.
             *
             * @return void
             */
            removeFilterFromList: function(filterName, filterValue) {
                if ($.isEmptyObject(this.filters[filterName])) {
                    return;
                }

                // Remove filter from filterlist
                delete this.filters[filterName][filterValue];
            },
            /**
             * Check if bubble is already set.
             *
             * @param filterName Name of the filter.
             * @param filterValue Value of the filter.
             *
             * @return boolean
             */
            hasBubble: function(filterName, filterValue) {
                if (this.$activeFilterList.find('button[data-filter-group="' + filterName + '"][data-filter-value="' + filterValue + '"]').length) {
                    return true;
                }

                return false;
            },
            /**
             * Add the bubble to remove filter again.
             *
             * @param filterName The name of the group, like "segment", the filter belongs to.
             * @param filterValue The actual value of the filter, unique inside the group.
             * @param filterLabel The label to use for the filter option.
             *
             * @return void
             */
            addBubble: function(filterName, filterValue, filterLabel) {
                if (this.hasBubble(filterName, filterValue)) {
                    var bubble = this.$activeFilterList.find('button[data-filter-group="' + filterName + '"][data-filter-value="' + filterValue + '"]');

                    if (bubble.hasClass('js-deactivated')) {
                        bubble.removeClass('js-deactivated');
                    }

                    return;
                }

                var $template = this.$activeFilter.find('button:first').clone().removeClass('hidden');

                $template.removeAttr('style');
                $template.attr('title', $.trim($template.attr('title')) + ' ' + $.trim(filterLabel));
                $template.attr('data-filter-group', filterName);
                $template.attr('data-filter-value', filterValue);
                $template.find('img').before(filterLabel + '&nbsp;');

                this.$activeFilterList.append($template);
            },
            /**
             * Remove the bubble to remove filter.
             *
             * @param filterName The name of the group, like "segment", the filter belongs to.
             * @param filterValue The actual value of the filter, unique inside the group.
             *
             * @return void
             */
            removeBubble: function(filterName, filterValue) {
                this.$activeFilterList.find('button[data-filter-group="' + filterName + '"][data-filter-value="' + filterValue + '"]').remove();
            },
            /**
             * Deactivate the bubble to remove filter.
             *
             * @param filterName The name of the group, like "segment", the filter belongs to.
             * @param filterValue The actual value of the filter, unique inside the group.
             *
             * @return void
             */
            deactivateBubble: function(filterName, filterValue) {
                this.$activeFilterList.find('button[data-filter-group="' + filterName + '"][data-filter-value="' + filterValue + '"]')
                    .addClass('js-deactivated');
            },
            /**
             * Refresh the shown filters.
             *
             * @param filterName Name of the filter.
             * @param filterValue Value of the filter.
             *
             * @return void
             */
            refreshFilterDesktop: function(filterName, filterValue) {
                var self = this;

                // Applications have no filter functionality.
                if (filterName == self.filterApplication) {
                    return;
                }

                if (
                    filterName == self.filterSegment ||
                    filterName == self.filterProduct
                ) {
                    self.refreshProductCheckboxes();
                    return;
                }

                if (
                    filterName == self.filterCountry ||
                    filterName.indexOf(self.filterRegion) !== -1
                ) {
                    self.refreshCountryCheckboxes();
                    return;
                }

                return;
            },
            /**
             * Refresh the country filters for desktop.
             *
             * @return void
             */
            refreshCountryCheckboxes: function() {
                var self = this;

                if (! $.isEmptyObject(self.filters[self.filterRegion])) {
                    // Hide all filters for one name.
                    self.$wrapper.find('.filter-content[data-filter="' + self.filterRegion + '"] .checkbox').addClass('js-hidden');

                    $.each(self.filters[self.filterRegion], function(shortValue, filter) {
                        self.$wrapper.find('.filter-content input[data-parent*="' + shortValue + '"]')
                            .parents('.checkbox').removeClass('js-hidden');
                    });
                } else {
                    // Reset all checkboxes in region
                    self.$wrapper.find('.filter-content[data-filter="' + self.filterRegion+ '"] .checkbox').removeClass('js-hidden');
                }

                if (! $.isEmptyObject(self.filters[self.filterCountry])) {
                    $.each(self.filters[self.filterCountry], function(shortValue, filter) {
                        var parents = [],
                            parentName;

                        if (filter.parent) {
                            parents = filter.parent.split(',');
                            parentName = self.getParentNameByValue(parents[0]);

                            if ($.isEmptyObject(self.filters[parentName])) {
                                return;
                            }

                            $.each(parents, function() {
                                if (self.hasActiveFilter(parentName, this)) {
                                    return;
                                }

                                self.removeFilter(self.filterCountry, filter.value);
                            });
                        }
                    });
                }
            },
            /**
             * Refresh the product filters for desktop.
             *
             * @return void
             */
            refreshProductCheckboxes: function() {
                var self = this;

                // Reset checkboxes
                self.$wrapper.find('.filter-content .segments-column input.select-all').each(function() {
                    self.deactivateInput($(this).data('value'));
                });
                self.$wrapper.find('.filter-content .segments-column input:not(.select-all)').each(function() {
                    self.activateInput($(this).data('value'));
                });
                self.$wrapper.find('.filter-content .segments-column input').prop('checked', false);

                if (! $.isEmptyObject(self.filters[self.filterSegment])) {
                    $.each(self.filters[self.filterSegment], function(shortValue, filter) {
                        var $segment = self.$wrapper.find('.filter-content input[data-value*="' + shortValue + '"]'),
                            $segmentColumn = $segment.parents('.segments-column');

                        if ($segmentColumn.find('input:not(.select-all)').length !== self.getProductCountBySegment(shortValue)) {
                            self.removeFilter(
                                self.filterSegment,
                                $segment.data('value')
                            );

                            return;
                        }

                        $segment.prop('checked', true);
                        self.activateInput($segment.data('value'));
                    });
                }

                if (! $.isEmptyObject(self.filters[self.filterProduct])) {
                    $.each(self.filters[self.filterProduct], function(shortValue, filter) {
                        var $input = self.$wrapper.find('.filter-content input[data-value*="' + shortValue + '"]'),
                            $segmentColumn,
                            $segment,
                            parents = [],
                            addBubble = false,
                            activateInput = false;

                        if (filter.parent) {
                            parents = filter.parent.split(',');

                            if (parents.length > 1) {
                                $.each(parents, function() {
                                    $segment = self.$wrapper.find('.filter-content input.select-all[data-value*="' + this + '"]');
                                    $segmentColumn = $segment.parents('.segments-column');

                                    if ($segmentColumn.find('input:not(.select-all)').length == self.getProductCountBySegment(this)) {
                                        self.addFilter(
                                            self.filterSegment,
                                            $segment.data('value'),
                                            $segment.closest('label').text().trim()
                                        );

                                        self.deactivateInput($input.data('value'));
                                        $segment.prop('checked', true);
                                    }
                                });
                            } else {
                                $.each(parents, function() {
                                    $segment = self.$wrapper.find('.filter-content input.select-all[data-value*="' + this + '"]');
                                    $segmentColumn = $segment.parents('.segments-column');

                                    if ($segment.length) {
                                        if (! self.hasActiveFilter(self.filterSegment, this)) {
                                            addBubble = true;
                                            activateInput = true;
                                        }
                                    }
                                });

                                self.deactivateInput($input.data('value'));

                                if (addBubble && ! self.hasBubble(filter.name, filter.value)) {
                                    self.addBubble(
                                        filter.name,
                                        filter.value,
                                        filter.label
                                    );
                                }

                                if (! addBubble && self.hasBubble(filter.name, filter.value)) {
                                    self.removeBubble(
                                        filter.name,
                                        filter.value
                                    );
                                }
                            }
                        }

                        if (activateInput) {
                            self.activateInput($input.data('value'));
                        } else {
                            self.deactivateInput($input.data('value'));
                        }

                        $input.prop('checked', true);
                    });
                } else {
                    self.$activeFilterList.find('button[data-filter-group="' + self.filterProduct + '"]').each(function() {
                        self.removeBubble(
                            self.filterProduct,
                            $(this).data('filterValue')
                        );
                    });
                }
            },
            /**
             * Activate on input field.
             *
             * @param value The filter value.
             *
             * @return void
             */
            activateInput: function(value) {
                var $elem = this.$wrapper.find('.filter-content input[data-value*="' + value + '"]');

                $elem.attr('value', $elem.data('value'))
                    .attr('name', $elem.data('name'));
            },
            /**
             * Deactivate on input field.
             *
             * @param value The filter value.
             *
             * @return void
             */
            deactivateInput: function(value) {
                this.$wrapper.find('.filter-content input[data-value*="' + value + '"]')
                    .removeAttr('value')
                    .removeAttr('name');
            },
            /**
             * Get length of product per segment.
             *
             * @param segment Name of segment.
             *
             * @return int
             */
            getProductCountBySegment: function(segment) {
                var self = this,
                    counter = 0;

                if ($.isEmptyObject(self.filters[self.filterProduct])) {
                    return counter;
                }

                $.each(self.filters[self.filterProduct], function(shortValue, filter) {
                    if (filter.parent.indexOf(segment) !== -1) {
                        counter ++;
                    }
                });

                return counter;
            },
            /**
             * Refresh filters shown on mobile.
             *
             * @param filterName Name of the filter.
             * @param filterValue Value of the filter.
             *
             * @return void
             */
            refreshFilterMobile: function(filterName, filterValue) {
                var self = this;

                // Applications have no filter functionality.
                if (filterName == self.filterApplication) {
                    return;
                }

                if (filterName == self.filterProduct) {
                    return;
                }

                if (filterName == self.filterCountry) {
                    return;
                }

                if (! $.isEmptyObject(self.filters)) {
                    $.each(self.filters, function(filterName, filters) {
                        // Check if filters are set. If not show all.
                        if ($.isEmptyObject(filters)) {
                            self.$wrapper.find('fieldset[data-filter="' + filterName + '"] select[name="tx_solr[filter][]"]')
                                .find('option').remove();

                            self.$wrapper.find('fieldset[data-filter="' + filterName + '"] select[name="tx_solr[filter][]"]')
                                .append(
                                    self.$wrapper.find('fieldset[data-filter="' + filterName + '"] select.hidden option').clone()
                                );

                            return;
                        }

                        if (filterName == self.filterSegment) {
                            if (! $.isEmptyObject(self.filters[self.filterProduct])) {
                                $.each(self.filters[self.filterProduct], function(productName, product) {
                                    self.removeFilter(
                                        product.name,
                                        product.value
                                    );
                                });
                            }

                            self.$wrapper.find('fieldset[data-filter="' + filterName + '"] select[name="tx_solr[filter][]"] option')
                                .remove();

                            self.$wrapper.find('fieldset[data-filter="' + filterName + '"] select[name="tx_solr[filter][]"]')
                                .append(
                                    self.$wrapper.find('fieldset[data-filter="' + filterName + '"] select.hidden option').clone()
                                );

                            $.each(filters, function(segmentName, segment) {
                                self.$wrapper.find('fieldset[data-filter="' + filterName + '"] select[name="tx_solr[filter][]"] option[data-parent*="' + segmentName + '"]').each(function() {
                                    var $elem = $(this),
                                        filter = {
                                            name: self.filterProduct,
                                            value: $elem.val(),
                                            label: $elem.text().trim(),
                                            parent: $elem.data('parent'),
                                        };

                                    $elem.addClass('js-remove');

                                    self.addFilterToList(
                                        filter.name,
                                        filter.value.substr(filter.value.indexOf(':') + 1),
                                        filter
                                    );
                                });
                            });

                            self.$wrapper.find('fieldset[data-filter="' + filterName + '"] select[name="tx_solr[filter][]"] option.js-remove')
                                .remove();

                            return;
                        }

                        if (filterName == self.filterRegion) {
                            if (! $.isEmptyObject(self.filters[self.filterCountry])) {
                                $.each(self.filters[self.filterCountry], function(countryName, country) {
                                    self.removeFilter(
                                        country.name,
                                        country.value
                                    );
                                });
                            }

                            self.$wrapper.find('fieldset[data-filter="' + filterName + '"] select[name="tx_solr[filter][]"] option')
                                .remove();

                            self.$wrapper.find('fieldset[data-filter="' + filterName + '"] select[name="tx_solr[filter][]"]')
                                .append(
                                    self.$wrapper.find('fieldset[data-filter="' + filterName + '"] select.hidden option').clone().addClass('js-remove')
                                );

                            $.each(filters, function(regionName, region) {
                                self.$wrapper.find('fieldset[data-filter="' + filterName + '"] select[name="tx_solr[filter][]"] option[data-parent*="' + regionName + '"]')
                                    .removeClass('js-remove');
                            });

                            self.$wrapper.find('fieldset[data-filter="' + filterName + '"] select[name="tx_solr[filter][]"] option.js-remove')
                                .remove();
                        }
                    });
                }
            },
            /**
             * Get the name of the parent filter.
             *
             * @param parent The value of the parent filter.
             *
             * @returns string
             */
            getParentNameByValue: function(parent) {
                var parentName = this.$wrapper.find('.filter-content .checkbox input[data-value*="' + parent + '"]')
                    .parents('.filter-content').data('name');

                return parentName;
            },
            /**
             * Check if the filter has an active parent filter.
             *
             * @param parentName Name of the parent filter.
             * @param parent Value of the parent filter.
             *
             * @returns {boolean}
             */
            hasActiveFilter: function(parentName, parent) {
                if ($.isEmptyObject(this.filters[parentName])) {
                    return false;
                }

                return this.filters[parentName].hasOwnProperty(
                    parent
                );
            }
        };

        // ====================
        // Solr News Filter
        // ====================

        var NewsFilter = function() {
            this.formSelector = 'form.filter-news';

            this.$wrapper = $(this.formSelector);
            this.$filterButtons = this.$wrapper.find('button.filter');
            this.$reset = this.$wrapper.find('#deselect-all');

            this.$notification = $('#filter-adjustment-notification');
            this.notificationActiveClass = 'notificationIsActive';

            this.filters = {};

            this.formObject = undefined;

            this.eventLock = null;

            return this;
        };

        NewsFilter.prototype = {
            constructor: NewsFilter,
            /**
             * Initialize
             *
             * @param {function?} callback
             *
             * @returns {NewsFilter}
             */
            initialize: function(callback) {
                var self = this;

                // Initialize form object
                self.formObject = new Form();
                self.formObject.initialize(self.formSelector, self);

                self.initializeEvents();

                $('.js-solr-range-start').val($('.js-solr-range-start').val()).change();

                return self;
            },
            /**
             * Initialize needed events
             *
             * @return void
             */
            initializeEvents: function() {
                var self = this;

                self.$wrapper.find('.js-solr-range.js-solr-range-year')
                    .on('change', 'select', function() {
                        var $input = self.$wrapper.find('input[type="hidden"]'),
                            start = self.$wrapper.find('.js-solr-range-start').val(),
                            // Add one year to include the year itself.
                            end = (parseInt(self.$wrapper.find('.js-solr-range-end').val(), 10) + 11302400).toString();

                        $input.val($input.data('solrValue') + start + '-' + end);
                    });

                // Reset form
                self.$reset.on('click', function(e) {
                    e.preventDefault();

                    self.$wrapper[0].reset();

                    self.$wrapper.find('.js-solr-range-start').change();

                    $('#submit-form').trigger('submit');

                    return false;
                });
            },
            /**
             * Show the notification that filters were reduced.
             *
             * @return void
             */
            displayNotification: function() {
                if (! this.$notification.find('div').hasClass(this.notificationActiveClass)) {
                    this.$notification.find('div')
                        .clone().appendTo(this.$notification)
                        .removeAttr('style')
                        .addClass(this.notificationActiveClass);
                }
            },
            /**
             * Hide the notification that filters were reduced.
             *
             * @return void
             */
            hideNotification: function() {
                $('.' + this.notificationActiveClass).remove();
            },
            /**
             * Load the content via Ajax.
             *
             * @param url Url to load.
             *
             * @return void
             */
            loadContent: function(url) {
                var self = this;

                self.formObject.$ajaxContainer.load(url, function() {
                    url = decodeURI(url);

                    var regExpQuery = new RegExp('(\\?|\\&)(q=).*?(&|$)'),
                        cleanUrl = function(url) {
                            url = url.replace(self.formObject.resultSelector, '');
                            url = self.formObject.removeUrlParams(url, ['ajax']);

                            return url;
                        };

                    if ($('#js-solr-ajax-result').children().length === 0) {
                        if (url.match(regExpQuery)[0] !== '?q=&') {
                            url = self.formObject.emptyUrlParam(url, 'q');

                            self.formObject.emptySearchField();

                            url = cleanUrl(url);

                            self.formObject.sendForm(url, false);

                            self.displayNotification();
                        }
                    }
                });
            },
        };

        // ====================
        // Solr Loading Overlay
        // ====================

        var Overlay = function() {
            this.class = 'search-loading-overlay';
            this.selector = '.' + this.class;

            this.eventLock = null;

            return this;
        };

        Overlay.prototype = {
            constructor: Overlay,

            /**
             * Initialize
             *
             * @param {function?} callback
             *
             * @returns {Overlay}
             */
            initialize: function(callback) {},
            /**
             * Checks wether or not the overlay is open.
             *
             * @returns {boolean}
             */
            isOpen: function() {
                if ($(this.selector).length > 0) {
                    return true;
                }

                return false;
            },
            /**
             * Open loading overlay.
             *
             * @return void
             */
            openOverlay: function() {
                if (this.isOpen()) {
                    return;
                }

                $('body').append('<div class="' + this.class + '">Loading</div>');
            },
            /**
             * Close loading overlay.
             *
             * @return void
             */
            closeOverlay: function() {
                if (! this.isOpen()) {
                    return;
                }

                $(this.selector).remove();
            }
        };

        return function() {
            // Check if project or news filter should be initialized.
            if ($('#js-solr-ajax-result-container').hasClass('projects')) {
                var projectFilter = new ProjectFilter();

                projectFilter.initialize();
            } else if ($('#js-solr-ajax-result-container').hasClass('news')) {
                var newsFilter = new NewsFilter();

                newsFilter.initialize();
            }
        };
    })($, window, document);

    if ($('#js-solr-ajax-result-container').length) {
        Filtering();
    }
});

/**
 * This script detects if a referrer is set and redirects to it.
 *
 * @author Yannick Hermes <y.hermes@web-vision.de>
 */

$(function() {
    var $backLink = $('#backlink');

    if ($backLink.length) {
        if (document.referrer.length > 0) {
            $backLink.on('click', function(event) {
                event.preventDefault();
                window.location = document.referrer;
            });
        }
    }
});

/*! jQuery UI - v1.12.1 - 2016-09-21
* http://jqueryui.com
* Includes: widget.js, position.js, keycode.js, unique-id.js, widgets/autocomplete.js, widgets/menu.js
* Copyright jQuery Foundation and other contributors; Licensed MIT */

(function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)})(function(t){t.ui=t.ui||{},t.ui.version="1.12.1";var e=0,i=Array.prototype.slice;t.cleanData=function(e){return function(i){var s,n,o;for(o=0;null!=(n=i[o]);o++)try{s=t._data(n,"events"),s&&s.remove&&t(n).triggerHandler("remove")}catch(a){}e(i)}}(t.cleanData),t.widget=function(e,i,s){var n,o,a,r={},l=e.split(".")[0];e=e.split(".")[1];var h=l+"-"+e;return s||(s=i,i=t.Widget),t.isArray(s)&&(s=t.extend.apply(null,[{}].concat(s))),t.expr[":"][h.toLowerCase()]=function(e){return!!t.data(e,h)},t[l]=t[l]||{},n=t[l][e],o=t[l][e]=function(t,e){return this._createWidget?(arguments.length&&this._createWidget(t,e),void 0):new o(t,e)},t.extend(o,n,{version:s.version,_proto:t.extend({},s),_childConstructors:[]}),a=new i,a.options=t.widget.extend({},a.options),t.each(s,function(e,s){return t.isFunction(s)?(r[e]=function(){function t(){return i.prototype[e].apply(this,arguments)}function n(t){return i.prototype[e].apply(this,t)}return function(){var e,i=this._super,o=this._superApply;return this._super=t,this._superApply=n,e=s.apply(this,arguments),this._super=i,this._superApply=o,e}}(),void 0):(r[e]=s,void 0)}),o.prototype=t.widget.extend(a,{widgetEventPrefix:n?a.widgetEventPrefix||e:e},r,{constructor:o,namespace:l,widgetName:e,widgetFullName:h}),n?(t.each(n._childConstructors,function(e,i){var s=i.prototype;t.widget(s.namespace+"."+s.widgetName,o,i._proto)}),delete n._childConstructors):i._childConstructors.push(o),t.widget.bridge(e,o),o},t.widget.extend=function(e){for(var s,n,o=i.call(arguments,1),a=0,r=o.length;r>a;a++)for(s in o[a])n=o[a][s],o[a].hasOwnProperty(s)&&void 0!==n&&(e[s]=t.isPlainObject(n)?t.isPlainObject(e[s])?t.widget.extend({},e[s],n):t.widget.extend({},n):n);return e},t.widget.bridge=function(e,s){var n=s.prototype.widgetFullName||e;t.fn[e]=function(o){var a="string"==typeof o,r=i.call(arguments,1),l=this;return a?this.length||"instance"!==o?this.each(function(){var i,s=t.data(this,n);return"instance"===o?(l=s,!1):s?t.isFunction(s[o])&&"_"!==o.charAt(0)?(i=s[o].apply(s,r),i!==s&&void 0!==i?(l=i&&i.jquery?l.pushStack(i.get()):i,!1):void 0):t.error("no such method '"+o+"' for "+e+" widget instance"):t.error("cannot call methods on "+e+" prior to initialization; "+"attempted to call method '"+o+"'")}):l=void 0:(r.length&&(o=t.widget.extend.apply(null,[o].concat(r))),this.each(function(){var e=t.data(this,n);e?(e.option(o||{}),e._init&&e._init()):t.data(this,n,new s(o,this))})),l}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(i,s){s=t(s||this.defaultElement||this)[0],this.element=t(s),this.uuid=e++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),this.classesElementLookup={},s!==this&&(t.data(s,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===s&&this.destroy()}}),this.document=t(s.style?s.ownerDocument:s.document||s),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),i),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){var e=this;this._destroy(),t.each(this.classesElementLookup,function(t,i){e._removeClass(i,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:t.noop,widget:function(){return this.element},option:function(e,i){var s,n,o,a=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(a={},s=e.split("."),e=s.shift(),s.length){for(n=a[e]=t.widget.extend({},this.options[e]),o=0;s.length-1>o;o++)n[s[o]]=n[s[o]]||{},n=n[s[o]];if(e=s.pop(),1===arguments.length)return void 0===n[e]?null:n[e];n[e]=i}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];a[e]=i}return this._setOptions(a),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(e){var i,s,n;for(i in e)n=this.classesElementLookup[i],e[i]!==this.options.classes[i]&&n&&n.length&&(s=t(n.get()),this._removeClass(n,i),s.addClass(this._classes({element:s,keys:i,classes:e,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(e){function i(i,o){var a,r;for(r=0;i.length>r;r++)a=n.classesElementLookup[i[r]]||t(),a=e.add?t(t.unique(a.get().concat(e.element.get()))):t(a.not(e.element).get()),n.classesElementLookup[i[r]]=a,s.push(i[r]),o&&e.classes[i[r]]&&s.push(e.classes[i[r]])}var s=[],n=this;return e=t.extend({element:this.element,classes:this.options.classes||{}},e),this._on(e.element,{remove:"_untrackClassesElement"}),e.keys&&i(e.keys.match(/\S+/g)||[],!0),e.extra&&i(e.extra.match(/\S+/g)||[]),s.join(" ")},_untrackClassesElement:function(e){var i=this;t.each(i.classesElementLookup,function(s,n){-1!==t.inArray(e.target,n)&&(i.classesElementLookup[s]=t(n.not(e.target).get()))})},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,s){s="boolean"==typeof s?s:i;var n="string"==typeof t||null===t,o={extra:n?e:i,keys:n?t:e,element:n?this.element:t,add:s};return o.element.toggleClass(this._classes(o),s),this},_on:function(e,i,s){var n,o=this;"boolean"!=typeof e&&(s=i,i=e,e=!1),s?(i=n=t(i),this.bindings=this.bindings.add(i)):(s=i,i=this.element,n=this.widget()),t.each(s,function(s,a){function r(){return e||o.options.disabled!==!0&&!t(this).hasClass("ui-state-disabled")?("string"==typeof a?o[a]:a).apply(o,arguments):void 0}"string"!=typeof a&&(r.guid=a.guid=a.guid||r.guid||t.guid++);var l=s.match(/^([\w:-]*)\s*(.*)$/),h=l[1]+o.eventNamespace,c=l[2];c?n.on(h,c,r):i.on(h,r)})},_off:function(e,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.off(i).off(i),this.bindings=t(this.bindings.not(e).get()),this.focusable=t(this.focusable.not(e).get()),this.hoverable=t(this.hoverable.not(e).get())},_delay:function(t,e){function i(){return("string"==typeof t?s[t]:t).apply(s,arguments)}var s=this;return setTimeout(i,e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){this._addClass(t(e.currentTarget),null,"ui-state-hover")},mouseleave:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){this._addClass(t(e.currentTarget),null,"ui-state-focus")},focusout:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-focus")}})},_trigger:function(e,i,s){var n,o,a=this.options[e];if(s=s||{},i=t.Event(i),i.type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],o=i.originalEvent)for(n in o)n in i||(i[n]=o[n]);return this.element.trigger(i,s),!(t.isFunction(a)&&a.apply(this.element[0],[i].concat(s))===!1||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},function(e,i){t.Widget.prototype["_"+e]=function(s,n,o){"string"==typeof n&&(n={effect:n});var a,r=n?n===!0||"number"==typeof n?i:n.effect||i:e;n=n||{},"number"==typeof n&&(n={duration:n}),a=!t.isEmptyObject(n),n.complete=o,n.delay&&s.delay(n.delay),a&&t.effects&&t.effects.effect[r]?s[e](n):r!==e&&s[r]?s[r](n.duration,n.easing,o):s.queue(function(i){t(this)[e](),o&&o.call(s[0]),i()})}}),t.widget,function(){function e(t,e,i){return[parseFloat(t[0])*(u.test(t[0])?e/100:1),parseFloat(t[1])*(u.test(t[1])?i/100:1)]}function i(e,i){return parseInt(t.css(e,i),10)||0}function s(e){var i=e[0];return 9===i.nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:t.isWindow(i)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()}}var n,o=Math.max,a=Math.abs,r=/left|center|right/,l=/top|center|bottom/,h=/[\+\-]\d+(\.[\d]+)?%?/,c=/^\w+/,u=/%$/,d=t.fn.position;t.position={scrollbarWidth:function(){if(void 0!==n)return n;var e,i,s=t("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),o=s.children()[0];return t("body").append(s),e=o.offsetWidth,s.css("overflow","scroll"),i=o.offsetWidth,e===i&&(i=s[0].clientWidth),s.remove(),n=e-i},getScrollInfo:function(e){var i=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),s=e.isWindow||e.isDocument?"":e.element.css("overflow-y"),n="scroll"===i||"auto"===i&&e.width<e.element[0].scrollWidth,o="scroll"===s||"auto"===s&&e.height<e.element[0].scrollHeight;return{width:o?t.position.scrollbarWidth():0,height:n?t.position.scrollbarWidth():0}},getWithinInfo:function(e){var i=t(e||window),s=t.isWindow(i[0]),n=!!i[0]&&9===i[0].nodeType,o=!s&&!n;return{element:i,isWindow:s,isDocument:n,offset:o?t(e).offset():{left:0,top:0},scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:i.outerWidth(),height:i.outerHeight()}}},t.fn.position=function(n){if(!n||!n.of)return d.apply(this,arguments);n=t.extend({},n);var u,p,f,g,m,_,v=t(n.of),b=t.position.getWithinInfo(n.within),y=t.position.getScrollInfo(b),w=(n.collision||"flip").split(" "),k={};return _=s(v),v[0].preventDefault&&(n.at="left top"),p=_.width,f=_.height,g=_.offset,m=t.extend({},g),t.each(["my","at"],function(){var t,e,i=(n[this]||"").split(" ");1===i.length&&(i=r.test(i[0])?i.concat(["center"]):l.test(i[0])?["center"].concat(i):["center","center"]),i[0]=r.test(i[0])?i[0]:"center",i[1]=l.test(i[1])?i[1]:"center",t=h.exec(i[0]),e=h.exec(i[1]),k[this]=[t?t[0]:0,e?e[0]:0],n[this]=[c.exec(i[0])[0],c.exec(i[1])[0]]}),1===w.length&&(w[1]=w[0]),"right"===n.at[0]?m.left+=p:"center"===n.at[0]&&(m.left+=p/2),"bottom"===n.at[1]?m.top+=f:"center"===n.at[1]&&(m.top+=f/2),u=e(k.at,p,f),m.left+=u[0],m.top+=u[1],this.each(function(){var s,r,l=t(this),h=l.outerWidth(),c=l.outerHeight(),d=i(this,"marginLeft"),_=i(this,"marginTop"),x=h+d+i(this,"marginRight")+y.width,C=c+_+i(this,"marginBottom")+y.height,D=t.extend({},m),T=e(k.my,l.outerWidth(),l.outerHeight());"right"===n.my[0]?D.left-=h:"center"===n.my[0]&&(D.left-=h/2),"bottom"===n.my[1]?D.top-=c:"center"===n.my[1]&&(D.top-=c/2),D.left+=T[0],D.top+=T[1],s={marginLeft:d,marginTop:_},t.each(["left","top"],function(e,i){t.ui.position[w[e]]&&t.ui.position[w[e]][i](D,{targetWidth:p,targetHeight:f,elemWidth:h,elemHeight:c,collisionPosition:s,collisionWidth:x,collisionHeight:C,offset:[u[0]+T[0],u[1]+T[1]],my:n.my,at:n.at,within:b,elem:l})}),n.using&&(r=function(t){var e=g.left-D.left,i=e+p-h,s=g.top-D.top,r=s+f-c,u={target:{element:v,left:g.left,top:g.top,width:p,height:f},element:{element:l,left:D.left,top:D.top,width:h,height:c},horizontal:0>i?"left":e>0?"right":"center",vertical:0>r?"top":s>0?"bottom":"middle"};h>p&&p>a(e+i)&&(u.horizontal="center"),c>f&&f>a(s+r)&&(u.vertical="middle"),u.important=o(a(e),a(i))>o(a(s),a(r))?"horizontal":"vertical",n.using.call(this,t,u)}),l.offset(t.extend(D,{using:r}))})},t.ui.position={fit:{left:function(t,e){var i,s=e.within,n=s.isWindow?s.scrollLeft:s.offset.left,a=s.width,r=t.left-e.collisionPosition.marginLeft,l=n-r,h=r+e.collisionWidth-a-n;e.collisionWidth>a?l>0&&0>=h?(i=t.left+l+e.collisionWidth-a-n,t.left+=l-i):t.left=h>0&&0>=l?n:l>h?n+a-e.collisionWidth:n:l>0?t.left+=l:h>0?t.left-=h:t.left=o(t.left-r,t.left)},top:function(t,e){var i,s=e.within,n=s.isWindow?s.scrollTop:s.offset.top,a=e.within.height,r=t.top-e.collisionPosition.marginTop,l=n-r,h=r+e.collisionHeight-a-n;e.collisionHeight>a?l>0&&0>=h?(i=t.top+l+e.collisionHeight-a-n,t.top+=l-i):t.top=h>0&&0>=l?n:l>h?n+a-e.collisionHeight:n:l>0?t.top+=l:h>0?t.top-=h:t.top=o(t.top-r,t.top)}},flip:{left:function(t,e){var i,s,n=e.within,o=n.offset.left+n.scrollLeft,r=n.width,l=n.isWindow?n.scrollLeft:n.offset.left,h=t.left-e.collisionPosition.marginLeft,c=h-l,u=h+e.collisionWidth-r-l,d="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,p="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,f=-2*e.offset[0];0>c?(i=t.left+d+p+f+e.collisionWidth-r-o,(0>i||a(c)>i)&&(t.left+=d+p+f)):u>0&&(s=t.left-e.collisionPosition.marginLeft+d+p+f-l,(s>0||u>a(s))&&(t.left+=d+p+f))},top:function(t,e){var i,s,n=e.within,o=n.offset.top+n.scrollTop,r=n.height,l=n.isWindow?n.scrollTop:n.offset.top,h=t.top-e.collisionPosition.marginTop,c=h-l,u=h+e.collisionHeight-r-l,d="top"===e.my[1],p=d?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,f="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,g=-2*e.offset[1];0>c?(s=t.top+p+f+g+e.collisionHeight-r-o,(0>s||a(c)>s)&&(t.top+=p+f+g)):u>0&&(i=t.top-e.collisionPosition.marginTop+p+f+g-l,(i>0||u>a(i))&&(t.top+=p+f+g))}},flipfit:{left:function(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:function(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments)}}}}(),t.ui.position,t.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},t.fn.extend({uniqueId:function(){var t=0;return function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++t)})}}(),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&t(this).removeAttr("id")})}}),t.ui.safeActiveElement=function(t){var e;try{e=t.activeElement}catch(i){e=t.body}return e||(e=t.body),e.nodeName||(e=t.body),e},t.widget("ui.menu",{version:"1.12.1",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(t){t.preventDefault()},"click .ui-menu-item":function(e){var i=t(e.target),s=t(t.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&i.not(".ui-state-disabled").length&&(this.select(e),e.isPropagationStopped()||(this.mouseHandled=!0),i.has(".ui-menu").length?this.expand(e):!this.element.is(":focus")&&s.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(e){if(!this.previousFilter){var i=t(e.target).closest(".ui-menu-item"),s=t(e.currentTarget);i[0]===s[0]&&(this._removeClass(s.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(e,s))}},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var i=this.active||this.element.find(this.options.items).eq(0);e||this.focus(t,i)},blur:function(e){this._delay(function(){var i=!t.contains(this.element[0],t.ui.safeActiveElement(this.document[0]));i&&this.collapseAll(e)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){this._closeOnDocumentClick(t)&&this.collapseAll(t),this.mouseHandled=!1}})},_destroy:function(){var e=this.element.find(".ui-menu-item").removeAttr("role aria-disabled"),i=e.children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),i.children().each(function(){var e=t(this);e.data("ui-menu-submenu-caret")&&e.remove()})},_keydown:function(e){var i,s,n,o,a=!0;switch(e.keyCode){case t.ui.keyCode.PAGE_UP:this.previousPage(e);break;case t.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case t.ui.keyCode.HOME:this._move("first","first",e);break;case t.ui.keyCode.END:this._move("last","last",e);break;case t.ui.keyCode.UP:this.previous(e);break;case t.ui.keyCode.DOWN:this.next(e);break;case t.ui.keyCode.LEFT:this.collapse(e);break;case t.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(e);break;case t.ui.keyCode.ENTER:case t.ui.keyCode.SPACE:this._activate(e);break;case t.ui.keyCode.ESCAPE:this.collapse(e);break;default:a=!1,s=this.previousFilter||"",o=!1,n=e.keyCode>=96&&105>=e.keyCode?""+(e.keyCode-96):String.fromCharCode(e.keyCode),clearTimeout(this.filterTimer),n===s?o=!0:n=s+n,i=this._filterMenuItems(n),i=o&&-1!==i.index(this.active.next())?this.active.nextAll(".ui-menu-item"):i,i.length||(n=String.fromCharCode(e.keyCode),i=this._filterMenuItems(n)),i.length?(this.focus(e,i),this.previousFilter=n,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}a&&e.preventDefault()},_activate:function(t){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(t):this.select(t))},refresh:function(){var e,i,s,n,o,a=this,r=this.options.icons.submenu,l=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),s=l.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var e=t(this),i=e.prev(),s=t("<span>").data("ui-menu-submenu-caret",!0);a._addClass(s,"ui-menu-icon","ui-icon "+r),i.attr("aria-haspopup","true").prepend(s),e.attr("aria-labelledby",i.attr("id"))}),this._addClass(s,"ui-menu","ui-widget ui-widget-content ui-front"),e=l.add(this.element),i=e.find(this.options.items),i.not(".ui-menu-item").each(function(){var e=t(this);a._isDivider(e)&&a._addClass(e,"ui-menu-divider","ui-widget-content")}),n=i.not(".ui-menu-item, .ui-menu-divider"),o=n.children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(n,"ui-menu-item")._addClass(o,"ui-menu-item-wrapper"),i.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!t.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){if("icons"===t){var i=this.element.find(".ui-menu-icon");this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,e.submenu)}this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t+""),this._toggleClass(null,"ui-state-disabled",!!t)},focus:function(t,e){var i,s,n;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),s=this.active.children(".ui-menu-item-wrapper"),this._addClass(s,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",s.attr("id")),n=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(n,null,"ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),i=e.children(".ui-menu"),i.length&&t&&/^mouse/.test(t.type)&&this._startOpening(i),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(e){var i,s,n,o,a,r;this._hasScroll()&&(i=parseFloat(t.css(this.activeMenu[0],"borderTopWidth"))||0,s=parseFloat(t.css(this.activeMenu[0],"paddingTop"))||0,n=e.offset().top-this.activeMenu.offset().top-i-s,o=this.activeMenu.scrollTop(),a=this.activeMenu.height(),r=e.outerHeight(),0>n?this.activeMenu.scrollTop(o+n):n+r>a&&this.activeMenu.scrollTop(o+n-a+r))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",t,{item:this.active}),this.active=null)},_startOpening:function(t){clearTimeout(this.timer),"true"===t.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(t)},this.delay))},_open:function(e){var i=t.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-hidden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(i)},collapseAll:function(e,i){clearTimeout(this.timer),this.timer=this._delay(function(){var s=i?this.element:t(e&&e.target).closest(this.element.find(".ui-menu"));s.length||(s=this.element),this._close(s),this.blur(e),this._removeClass(s.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=s},this.delay)},_close:function(t){t||(t=this.active?this.active.parent():this.element),t.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false")},_closeOnDocumentClick:function(e){return!t(e.target).closest(".ui-menu").length},_isDivider:function(t){return!/[^\-\u2014\u2013\s]/.test(t.text())},collapse:function(t){var e=this.active&&this.active.parent().closest(".ui-menu-item",this.element);e&&e.length&&(this._close(),this.focus(t,e))},expand:function(t){var e=this.active&&this.active.children(".ui-menu ").find(this.options.items).first();e&&e.length&&(this._open(e.parent()),this._delay(function(){this.focus(t,e)}))},next:function(t){this._move("next","first",t)},previous:function(t){this._move("prev","last",t)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(t,e,i){var s;this.active&&(s="first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[t+"All"](".ui-menu-item").eq(0)),s&&s.length&&this.active||(s=this.activeMenu.find(this.options.items)[e]()),this.focus(i,s)},nextPage:function(e){var i,s,n;return this.active?(this.isLastItem()||(this._hasScroll()?(s=this.active.offset().top,n=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return i=t(this),0>i.offset().top-s-n}),this.focus(e,i)):this.focus(e,this.activeMenu.find(this.options.items)[this.active?"last":"first"]())),void 0):(this.next(e),void 0)},previousPage:function(e){var i,s,n;return this.active?(this.isFirstItem()||(this._hasScroll()?(s=this.active.offset().top,n=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return i=t(this),i.offset().top-s+n>0}),this.focus(e,i)):this.focus(e,this.activeMenu.find(this.options.items).first())),void 0):(this.next(e),void 0)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(e){this.active=this.active||t(e.target).closest(".ui-menu-item");var i={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(e,!0),this._trigger("select",e,i)},_filterMenuItems:function(e){var i=e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),s=RegExp("^"+i,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return s.test(t.trim(t(this).children(".ui-menu-item-wrapper").text()))})}}),t.widget("ui.autocomplete",{version:"1.12.1",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var e,i,s,n=this.element[0].nodeName.toLowerCase(),o="textarea"===n,a="input"===n;this.isMultiLine=o||!a&&this._isContentEditable(this.element),this.valueMethod=this.element[o||a?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(n){if(this.element.prop("readOnly"))return e=!0,s=!0,i=!0,void 0;e=!1,s=!1,i=!1;var o=t.ui.keyCode;switch(n.keyCode){case o.PAGE_UP:e=!0,this._move("previousPage",n);break;case o.PAGE_DOWN:e=!0,this._move("nextPage",n);break;case o.UP:e=!0,this._keyEvent("previous",n);break;case o.DOWN:e=!0,this._keyEvent("next",n);break;case o.ENTER:this.menu.active&&(e=!0,n.preventDefault(),this.menu.select(n));break;case o.TAB:this.menu.active&&this.menu.select(n);break;case o.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(n),n.preventDefault());break;default:i=!0,this._searchTimeout(n)}},keypress:function(s){if(e)return e=!1,(!this.isMultiLine||this.menu.element.is(":visible"))&&s.preventDefault(),void 0;if(!i){var n=t.ui.keyCode;switch(s.keyCode){case n.PAGE_UP:this._move("previousPage",s);break;case n.PAGE_DOWN:this._move("nextPage",s);break;case n.UP:this._keyEvent("previous",s);break;case n.DOWN:this._keyEvent("next",s)}}},input:function(t){return s?(s=!1,t.preventDefault(),void 0):(this._searchTimeout(t),void 0)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){return this.cancelBlur?(delete this.cancelBlur,void 0):(clearTimeout(this.searching),this.close(t),this._change(t),void 0)}}),this._initSource(),this.menu=t("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,this.element[0]!==t.ui.safeActiveElement(this.document[0])&&this.element.trigger("focus")})},menufocus:function(e,i){var s,n;return this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent&&/^mouse/.test(e.originalEvent.type))?(this.menu.blur(),this.document.one("mousemove",function(){t(e.target).trigger(e.originalEvent)}),void 0):(n=i.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",e,{item:n})&&e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(n.value),s=i.item.attr("aria-label")||n.value,s&&t.trim(s).length&&(this.liveRegion.children().hide(),t("<div>").text(s).appendTo(this.liveRegion)),void 0)},menuselect:function(e,i){var s=i.item.data("ui-autocomplete-item"),n=this.previous;this.element[0]!==t.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=n,this._delay(function(){this.previous=n,this.selectedItem=s})),!1!==this._trigger("select",e,{item:s})&&this._value(s.value),this.term=this._value(),this.close(e),this.selectedItem=s}}),this.liveRegion=t("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(t,e){this._super(t,e),"source"===t&&this._initSource(),"appendTo"===t&&this.menu.element.appendTo(this._appendTo()),"disabled"===t&&e&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(e){var i=this.menu.element[0];return e.target===this.element[0]||e.target===i||t.contains(i,e.target)},_closeOnClickOutside:function(t){this._isEventTargetInWidget(t)||this.close()},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)),e&&e[0]||(e=this.element.closest(".ui-front, dialog")),e.length||(e=this.document[0].body),e},_initSource:function(){var e,i,s=this;t.isArray(this.options.source)?(e=this.options.source,this.source=function(i,s){s(t.ui.autocomplete.filter(e,i.term))}):"string"==typeof this.options.source?(i=this.options.source,this.source=function(e,n){s.xhr&&s.xhr.abort(),s.xhr=t.ajax({url:i,data:e,dataType:"json",success:function(t){n(t)},error:function(){n([])}})}):this.source=this.options.source},_searchTimeout:function(t){clearTimeout(this.searching),this.searching=this._delay(function(){var e=this.term===this._value(),i=this.menu.element.is(":visible"),s=t.altKey||t.ctrlKey||t.metaKey||t.shiftKey;(!e||e&&!i&&!s)&&(this.selectedItem=null,this.search(null,t))},this.options.delay)},search:function(t,e){return t=null!=t?t:this._value(),this.term=this._value(),t.length<this.options.minLength?this.close(e):this._trigger("search",e)!==!1?this._search(t):void 0},_search:function(t){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:t},this._response())},_response:function(){var e=++this.requestIndex;return t.proxy(function(t){e===this.requestIndex&&this.__response(t),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")},this)},__response:function(t){t&&(t=this._normalize(t)),this._trigger("response",null,{content:t}),!this.options.disabled&&t&&t.length&&!this.cancelSearch?(this._suggest(t),this._trigger("open")):this._close()},close:function(t){this.cancelSearch=!0,this._close(t)},_close:function(t){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",t))},_change:function(t){this.previous!==this._value()&&this._trigger("change",t,{item:this.selectedItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:t.map(e,function(e){return"string"==typeof e?{label:e,value:e}:t.extend({},e,{label:e.label||e.value,value:e.value||e.label})})},_suggest:function(e){var i=this.menu.element.empty();this._renderMenu(i,e),this.isNewMenu=!0,this.menu.refresh(),i.show(),this._resizeMenu(),i.position(t.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var t=this.menu.element;t.outerWidth(Math.max(t.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(e,i){var s=this;t.each(i,function(t,i){s._renderItemData(e,i)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-autocomplete-item",e)},_renderItem:function(e,i){return t("<li>").append(t("<div>").text(i.label)).appendTo(e)},_move:function(t,e){return this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(t)||this.menu.isLastItem()&&/^next/.test(t)?(this.isMultiLine||this._value(this.term),this.menu.blur(),void 0):(this.menu[t](e),void 0):(this.search(null,e),void 0)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){(!this.isMultiLine||this.menu.element.is(":visible"))&&(this._move(t,e),e.preventDefault())},_isContentEditable:function(t){if(!t.length)return!1;var e=t.prop("contentEditable");return"inherit"===e?this._isContentEditable(t.parent()):"true"===e}}),t.extend(t.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,i){var s=RegExp(t.ui.autocomplete.escapeRegex(i),"i");return t.grep(e,function(t){return s.test(t.label||t.value||t)})}}),t.widget("ui.autocomplete",t.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(t){return t+(t>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var i;this._superApply(arguments),this.options.disabled||this.cancelSearch||(i=e&&e.length?this.options.messages.results(e.length):this.options.messages.noResults,this.liveRegion.children().hide(),t("<div>").text(i).appendTo(this.liveRegion))}}),t.ui.autocomplete});
/**
 * Autocomplete for search-inputs.
 *
 * Will be triggered on change.
 *
 * @author Justus Moroni <j.moroni@web-vision.de>
 * @author Yannick Hermes <y.hermes@web-vision.de>
 */
;(function(window, document, $, undefined) {
    (function() {
        // Global part - Stuff which should be globally available.
        var initializeAutocomplete = function() {
            var req = false,
                results = [],
                filteredOutput = [],
                $searchInputs = $('#search-field-header, #search-field-mobile, #search-field-news, #search-field-projects'),
                getSuggestFilters = function($field) {
                    var $form = $field.closest('form'),
                        urlFilters = window.location.search,
                        excludeFilters = [
                            'published'
                        ],
                        jsonFilters = [];

                    if ($form.data('suggest-include-filter')) {
                        jsonFilters.push($form.data('suggest-additional-filter'));

                        $.each(urlFilters.split('&'), function() {
                            if (this.indexOf('tx_solr[filter][]') !== -1) {
                                if ($.inArray(excludeFilters, this.toString().match(/tx_solr\[filter\]\[\d*\]\=(.*)\:/)[1])) {
                                    return;
                                }

                                jsonFilters.push(this.replace('tx_solr[filter][]=', ''));
                            }
                        });

                        return JSON.stringify(jsonFilters);
                    }
                };

            $searchInputs.each(function(i, elem) {
                var $elem = $(elem);

                $elem.autocomplete({
                    source: function(request, response) {
                        if (req) {
                            req.abort();
                            response();
                        }

                        req = $.ajax({
                            url: '?eID=tx_solr_suggest&id=' + $elem.closest('form').data('pid'),
                            dataType: 'json',
                            data: {
                                termLowercase: request.term.toLowerCase(),
                                termOriginal: request.term,
                                L: $elem.closest('form').data('language'),
                                filters: getSuggestFilters($elem)
                            },
                            success: function(data) {
                                var output = [],
                                    results = [],
                                    filteredResults = [],
                                    editDistance = function(s1, s2) {
                                        s1 = s1.toLowerCase();
                                        s2 = s2.toLowerCase();

                                        var costs = [];
                                        for (var i = 0; i <= s1.length; i++) {
                                            var lastValue = i;
                                            for (var j = 0; j <= s2.length; j++) {
                                                if (i == 0) {
                                                    costs[j] = j;
                                                } else if (j > 0) {
                                                    var newValue = costs[j - 1];

                                                    if (s1.charAt(i - 1) != s2.charAt(j - 1)) {
                                                        newValue = Math.min(
                                                                Math.min(newValue, lastValue),
                                                                costs[j]
                                                            ) + 1;
                                                        costs[j - 1] = lastValue;
                                                        lastValue = newValue;
                                                    }
                                                }
                                            }

                                            if (i > 0) {
                                                costs[s2.length] = lastValue;
                                            }
                                        }

                                        return costs[s2.length];
                                    },
                                    similarity = function(s1, s2) {
                                        var longer = s1
                                        shorter = s2;

                                        if (s1.length < s2.length) {
                                            longer = s2;
                                            shorter = s1;
                                        }

                                        var longerLength = longer.length;

                                        if (longerLength == 0) {
                                            return 1.0;
                                        }

                                        return (longerLength - editDistance(longer, shorter)) / parseFloat(longerLength) * 2;
                                    };

                                req = false;

                                $.each(data, function(term, termIndex) {
                                    output.push({
                                        label: term.replace(
                                            new RegExp(
                                                '(?![^&;]+;)(?!<[^<>]*)(' +
                                                $.ui.autocomplete.escapeRegex(request.term) +
                                                ')(?![^<>]*>)(?![^&;]+;)', 'gi'
                                            ),
                                            '<strong>$1</strong>'
                                        ),
                                        value: term
                                    });
                                });

                                $.each(output, function(index, value) {
                                    results[index] = value.label;
                                });

                                $.each(results, function(resultIndex, resultValue) {
                                    var result,
                                        counter = 0,
                                        overrideIndex,
                                        overrideValue;

                                    if (resultIndex == 0) {
                                        filteredResults[0] = resultValue;
                                    }

                                    $.each(filteredResults, function(filterIndex, filterValue) {
                                        var similarityFactorRemoveMatch = 0.93;

                                        switch (resultValue.length) {
                                            case 4:
                                                similarityFactorRemoveMatch = 0.81;
                                            case 5:
                                                similarityFactorRemoveMatch = 0.83;
                                            case 6:
                                                similarityFactorRemoveMatch = 0.85;
                                            case 7:
                                                similarityFactorRemoveMatch = 0.87;
                                        }

                                        if (resultValue && filterValue) {
                                            if (
                                                similarity(resultValue, filterValue) < similarityFactorRemoveMatch
                                            ) {
                                                counter++;
                                            } else if (resultValue.length < filterValue.length) {
                                                overrideIndex = filterIndex;
                                                overrideValue = resultValue;
                                            }
                                        }

                                        if (counter === filteredResults.length) {
                                            filteredResults.push(resultValue);
                                        }
                                    });

                                    if (overrideIndex) {
                                        filteredResults[overrideIndex] = overrideValue;
                                    }
                                });

                                filteredOutput = filteredResults;
                                response(output);
                            }
                        });
                    },
                    select: function(event, ui) {
                        this.value = ui.item.value;
                        $(event.target).closest('form').submit();
                    },
                    delay: 0,
                    minLength: 2
                }).autocomplete("instance")._renderItem = function(ul, item) {
                    if ($.inArray(item.label, filteredOutput) !== -1) {
                        var search = $elem.val(),
                            replace = item.label.match(new RegExp(search, 'i'));

                        if (replace === null) {
                            return ul;
                        }

                        ul.removeAttr('style').appendTo($elem.siblings('.search-list'));

                        return $("<li></li>")
                            .data("item.autocomplete", item)
                            .append("<div>" + item.label.replace(replace[0], '<span>' + replace[0] + '</span>') + "</div>")
                            .appendTo(ul);
                    }

                    return ul;
                };
            });
        };

        initializeAutocomplete();
    })();
})(window, document, jQuery);

/**
 * Filter for projects.
 *
 * Will be triggered on select. Will hide all non matching filter items.
 *
 * @author Justus Moroni <j.moroni@web-vision.de>
 * @author Daniel Siepmann <d.siepmann@web-vision.de>
 * @author Yannick Hermes <y.hermes@web-vision.de>
 */
;(function(window, document, $, undefined) {
    var $filterForm = $('#filterForm');

    if ($filterForm <= 0) {
        return;
    }

    var $activeFilter = $('.filter-projects-active'),
        $filterList = $activeFilter.find('.filter-list'),
        $filterActions = $activeFilter.find('.filter-action'),
        $button = $filterForm.find('button.filter'),
        $filterContent = $filterForm.find('.filter-content'),
        /**
         * Add the bubble to remove filter again.
         *
         * @param string The name of the group, like "segment", the filter belongs to.
         * @param string The label to use for the filter option.
         * @param mixed The actual value of the filter, unique inside the group.
         *
         * @return void
         */
        addFilterRemoveBubble = function(filterGroupName, filterOptionLabel, filterOptionValue) {
            var $template = $activeFilter.find('button:first').clone();

            $template.removeClass('hidden');

            $template.attr('title', $.trim($template.attr('title')) + ' ' + $.trim(filterOptionLabel));
            $template.attr('data-filter-group', filterGroupName);
            $template.attr('data-filter-value', filterOptionValue);
            $template.find('img').before(filterOptionLabel + '&nbsp;');

            $filterList.append($template);
        },
        /**
         * Remove the bubble to remove filter
         *
         * @param string The name of the group, like "segment", the filter belongs to.
         * @param string The label to use for the filter option.
         * @param mixed The actual value of the filter, unique inside the group.
         *
         * @return void
         */
        removeFilterRemoveBubble = function(filterGroupName, filterOptionLabel, filterOptionValue) {
            $filterList.find('button[data-filter-group="' + filterGroupName + '"][data-filter-value="' + filterOptionValue + '"]').remove();
        },
        addFilterForMobile = function(filterGroupName, filterOptionValue) {
            $filterForm.find('fieldset[data-name="' + filterGroupName + '"] option[value="' + filterOptionValue + '"]').prop('selected', true);
        },
        removeFilterForMobile = function(filterGroupName, filterOptionValue) {
            $filterForm.find('fieldset[data-name="' + filterGroupName + '"] option[value="' + filterOptionValue + '"]').prop('selected', false);
        },
        addFilterForDesktop = function(filterGroupName, filterOptionValue) {
            $filterForm.find('.filter-content[data-name="' + filterGroupName + '"] input[value="' + filterOptionValue + '"]').prop('checked', true);
        },
        removeFilterForDesktop = function(filterGroupName, filterOptionValue) {
            $filterForm.find('.filter-content[data-name="' + filterGroupName + '"] input[value="' + filterOptionValue + '"]').prop('checked', false);
        },
        /**
         * Add the given element as filter
         *
         * @param string The name of the group, like "segment", the filter belongs to.
         * @param string The label to use for the filter option.
         * @param mixed The actual value of the filter, unique inside the group.
         *
         * @return void
         */
        addFilter = function(filterGroupName, filterOptionLabel, filterOptionValue) {
            filterOptionLabel = $.trim(filterOptionLabel);

            addFilterForMobile(filterGroupName, filterOptionValue);
            addFilterForDesktop(filterGroupName, filterOptionValue);
            addFilterRemoveBubble(filterGroupName, filterOptionLabel, filterOptionValue);
        },
        /**
         * Remove the given element as filter
         *
         * @param string The name of the group, like "segment", the filter belongs to.
         * @param string The label to use for the filter option.
         * @param mixed The actual value of the filter, unique inside the group.
         *
         * @return void
         */
        removeFilter = function(filterGroupName, filterOptionLabel, filterOptionValue) {
            removeFilterForMobile(filterGroupName, filterOptionValue);
            removeFilterForDesktop(filterGroupName, filterOptionValue);
            removeFilterRemoveBubble(filterGroupName, filterOptionLabel, filterOptionValue);
        };

        // Init hidden select for mobile filtering
        // Just for mobile, as we need to modify actual selects for filtering
        // products based on segments, etc.
        (function() {
            $filterForm.find('.filtering .form-group select').each(function() {
                var $elem = $(this),
                $newSelect = $elem.clone().removeAttr('id').removeAttr('name').addClass('hidden');

                $newSelect.find('option').removeAttr('selected').prop('selected', false);
                $elem.closest('.filtering').append($newSelect);
            });
        })();

        // Initialize initial remove bubble for pre filter.
        (function() {
            $filterContent.find('input:checked').each(function() {
                var $this = $(this);
                addFilterRemoveBubble(
                    $this.closest('.filter-content').data('name'),
                    $this.closest('label').text(),
                    $this.val()
                );
            });
        })();

    // Allow filter groups to be opened.
    $button.on('click', function() {
        var $elem = $(this),
            $currentContent = $('.filter-content[data-name="' + $elem.data('filter') + '"]');

        $filterContent.removeClass('js-active');

        if ($elem.hasClass('js-active')) {
            $elem.removeClass('js-active');
        } else {
            $button.removeClass('js-active');
            $elem.addClass('js-active');
            $currentContent.addClass('js-active');
        }
    });

    // Allow quick select all or none.
    $filterContent.find('button[data-select="all"]').on('click', function() {
        $(this).closest($filterContent).find('input:not(:checked)').prop('checked', true).change();
    });

    $filterContent.find('button[data-select="none"]').on('click', function() {
        $(this).closest($filterContent).find('input:checked').prop('checked', false).change();
    });

    // Adjust UI according to filter changes.
    $filterForm.find('select').on('change', function() {
        var $elem = $(this);
        $elem.find('option').each(function() {
            var $option = $(this);

            if ($option.prop('selected')) {
                addFilter(
                    $elem.closest('fieldset').data('name'),
                    $option.text(),
                    $option.val()
                );
            } else {
                removeFilter(
                    $elem.closest('fieldset').data('name'),
                    $option.text(),
                    $option.val()
                );
            }
        });
    });

    $filterContent.find('input[type="checkbox"]:not(.select-all)').change(function() {
        var $elem = $(this);

        if ($elem.prop('checked')) {
            addFilter(
                $elem.closest('.filter-content').data('name'),
                $elem.closest('label').text(),
                $elem.val()
            );
        } else {
            removeFilter(
                $elem.closest('.filter-content').data('name'),
                $elem.closest('label').text(),
                $elem.val()
            );
        }
    });

    // Active filter and actions above form.
    $filterList.on('click', 'button', function() {
        var $elem = $(this);
        removeFilter(
            $elem.data('filterGroup'),
            $elem.data('filterLabel'),
            $elem.data('filterValue')
        );
    });

    $filterActions.on('click', 'button', function() {
        $filterForm.find('input, select').prop('name', '');
        $filterForm.submit();
    });

    // Deactive mobile filter on desktop and other way around too.
    Breakpoints.on('mobile', {
        enter: function() {
            $filterForm.find('.js-active').removeClass('js-active');
            $filterForm.find('select').prop('disabled', false);
            $filterForm.find('input[type="checkbox"]').prop('disabled', true);
        }
    });
    Breakpoints.on('desktop', {
        enter: function() {
            $filterForm.find('select').prop('disabled', true);
            $filterForm.find('input[type="checkbox"]').prop('disabled', false);
        },
        leave: function() {
            $filterForm.find('select').prop('disabled', false);
            $filterForm.find('input[type="checkbox"]').prop('disabled', true);
        }
    });
})(window, document, jQuery);

/**
 * Javascript to track certain events in google analytics.
 * List of events:
 * - Click on file to download
 * - Click on video
 *
 * @author Justus Moroni <j.moroni@web-vision.de>
 */
$(function() {
    /**
     * @param {string} eventCategory
     * @param {string} eventAction
     * @param {string} eventLabel
     *
     * @returns {Event}
     */
    var Event = function(eventCategory, eventAction, eventLabel) {
        this.hitType = 'event';
        this.eventCategory = eventCategory;
        this.eventAction = eventAction;
        this.eventLabel = eventLabel;

        return this;
    };

    Event.prototype = {
        constructor: Event,

        /**
         * @param {function?} callback
         *
         * @returns {Event}
         */
        initialize: function(callback) {

            return this;
        },
        /**
         * @return void
         */
        send: function() {
            ga(
                'send',
                this.hitType,
                {
                    eventCategory: this.eventCategory,
                    eventAction: this.eventAction,
                    eventLabel: this.eventLabel
                }
            );
        }
    };

    // Video event
    var $videos = $('.embed-responsive .video');
    if ($videos) {
        $videos.on('click', function () {
            var $elem = $(this),
                $event;

            $event = new Event(
                'Video',
                'play',
                'https://www.youtube.com/watch?v=' + $elem.data('embed')
            );
            $event.send();
        });
    }

    // Download event
    var $downloadLinks = $('a').filter(function() {
        var regexAllowedFiletypes = /\.(pdf|doc.*|xls.*|ppt.*|cat|txt|zip|rar)$/i,
            href = $(this).attr('href');

        if (href === undefined) {
            return false;
        }

        return href.match(regexAllowedFiletypes) !== null;
    });
    if ($downloadLinks) {
        $downloadLinks.on('click', function () {
            var $elem = $(this),
                fileExtension = $elem.attr('href').match(/\.([^.]+)$/),
                linkMock = document.createElement('a'),
                $event;

            linkMock.href = $elem.attr('href');

            if (linkMock.hostname !== location.hostname) {
                return;
            }

            if (fileExtension !== null) {
                fileExtension = '-' + fileExtension[1].toLowerCase();
            }

            $event = new Event(
                'Download',
                'click' + fileExtension,
                location.protocol + '//' + location.hostname + $(this).attr('href')
            );
            $event.send();
        });
    }
});

/**
 * This script sets on each page reload a different slider item as first
 * for each slider-wrapper and slick-slide item defined in sliders variable.
 *
 * @author Yannick Hermes <y.hermes@web-vision.de>
 */

$(function() {
    var sliders = [
            [
                '.testemonials-outer',
                '.testemonials-slider-element'
            ],
            [
                '#slider',
                '.slider--list'
            ]
        ],
        getRandomSliderIndex = function(min, max) {
            return Math.floor(Math.random() * (max - min + 1) + min);
        },
        getSliderItemsQuantity = function($slickSlide) {
            return $slickSlide.find('.content-element.slick-slide[data-slick-index!="-1"]').length
        },
        setRandomSliderIndex = function ($slickSlidewrapper, $slickSlideClass) {
            $slickSlidewrapper.find($slickSlideClass).slick(
                'slickGoTo',
                getRandomSliderIndex(
                    1,
                    getSliderItemsQuantity($slickSlidewrapper)
                ),
                true
            );
        };

    $.each(sliders, function() {
        if ($(this[0]).length !== -1) {
            setRandomSliderIndex($(this[0]), this[1]);
        }
    });
});
