function cookieControl(t){if("undefined"==typeof t||"undefined"==typeof t.apiKey)return alert("Cookie Control: please provide an options object with a valid API Key and product name."),-1;if(t.product=t.product||"CookieControl Free",t.pollPeriod=t.pollPeriod||25,t.pollIncrement=t.pollIncrement||1.25,t.jQueryUrl=t.jQueryUrl||"//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js",[CookieControl.PROD_FREE,CookieControl.PROD_PAID,CookieControl.PROD_PAID_MULTISITE,CookieControl.PROD_PAID_CUSTOM].indexOf(t.product.toLowerCase())<0)return alert("Cookie Control: Sorry, the product name '"+t.product+"' is not recognised.\nPlease ensure you have used one of the CookieControl.PROD_x values."),-1;if("undefined"==typeof jQuery||parseInt(jQuery.fn.jquery.replace(/\./g,""))<171)if(document.getElementsByTagName("head").length>0){var e=document.createElement("script");e.type="text/javascript",e.src=t.jQueryUrl,document.getElementsByTagName("head")[0].appendChild(e)}else document.write('<script type="text/javascript" src="'+t.jQueryUrl+'"></script>');if(document.getElementsByTagName("body").length>0){var i=document.createElement("script");i.type="text/javascript",i.src="//apikeys.civiccomputing.com/c/v?d="+encodeURIComponent(document.location.hostname)+"&p="+encodeURIComponent(t.product)+"&v="+CookieControl.VERSION+"&k="+encodeURIComponent(t.apiKey),document.getElementsByTagName("body")[0].appendChild(i)}else document.write('<script type="text/javascript" src="//apikeys.civiccomputing.com/c/v?d='+encodeURIComponent(document.location.hostname)+"&p="+encodeURIComponent(t.product)+"&v="+CookieControl.VERSION+"&k="+encodeURIComponent(t.apiKey)+'"></script>');_cookieControlPoll(t)}function _cookieControlPoll(t){"undefined"==typeof jQuery||"undefined"==typeof civicLicense.valid?(setTimeout(function(){_cookieControlPoll(t)},t.pollPeriod),t.pollPeriod*=t.pollIncrement):jQuery(function(){CookieControl.init(t)})}function MarkerClusterer(t,e,i){this.extend(MarkerClusterer,google.maps.OverlayView),this.map_=t,this.markers_=[],this.clusters_=[],this.sizes=[53,56,66,78,90],this.styles_=[],this.ready_=!1;var s=i||{};this.gridSize_=s.gridSize||60,this.minClusterSize_=s.minimumClusterSize||2,this.maxZoom_=s.maxZoom||null,this.styles_=s.styles||[],this.imagePath_=s.imagePath||this.MARKER_CLUSTER_IMAGE_PATH_,this.imageExtension_=s.imageExtension||this.MARKER_CLUSTER_IMAGE_EXTENSION_,this.zoomOnClick_=!0,void 0!=s.zoomOnClick&&(this.zoomOnClick_=s.zoomOnClick),this.averageCenter_=!1,void 0!=s.averageCenter&&(this.averageCenter_=s.averageCenter),this.setupStyles_(),this.setMap(t),this.prevZoom_=this.map_.getZoom();var n=this;google.maps.event.addListener(this.map_,"zoom_changed",function(){var t=n.map_.getZoom();n.prevZoom_!=t&&(n.prevZoom_=t,n.resetViewport())}),google.maps.event.addListener(this.map_,"idle",function(){n.redraw()}),e&&e.length&&this.addMarkers(e,!1)}function Cluster(t){this.markerClusterer_=t,this.map_=t.getMap(),this.gridSize_=t.getGridSize(),this.minClusterSize_=t.getMinClusterSize(),this.averageCenter_=t.isAverageCenter(),this.center_=null,this.markers_=[],this.bounds_=null,this.clusterIcon_=new ClusterIcon(this,t.getStyles(),t.getGridSize())}function ClusterIcon(t,e,i){t.getMarkerClusterer().extend(ClusterIcon,google.maps.OverlayView),this.styles_=e,this.padding_=i||0,this.cluster_=t,this.center_=null,this.map_=t.getMap(),this.div_=null,this.sums_=null,this.visible_=!1,this.setMap(this.map_)}if(window.matchMedia||(window.matchMedia=function(t){"use strict";var e=t.document,i=e.documentElement,s=[],n=0,o="",r={},a=/\s*(only|not)?\s*(screen|print|[a-z\-]+)\s*(and)?\s*/i,l=/^\s*\(\s*(-[a-z]+-)?(min-|max-)?([a-z\-]+)\s*(:?\s*([0-9]+(\.[0-9]+)?|portrait|landscape)(px|em|dppx|dpcm|rem|%|in|cm|mm|ex|pt|pc|\/([0-9]+(\.[0-9]+)?))?)?\s*\)\s*$/,c=0,d=function(t){var e=t.indexOf(",")!==-1&&t.split(",")||[t],i=e.length-1,s=i,n=null,c=null,d="",h=0,p=!1,u="",f="",g=null,m=0,v=0,y=null,w="",b="",_="",k="",T="",x=!1;if(""===t)return!0;do if(n=e[s-i],p=!1,c=n.match(a),c&&(d=c[0],h=c.index),!c||n.substring(0,h).indexOf("(")===-1&&(h||!c[3]&&d!==c.input))x=!1;else{if(f=n,p="not"===c[1],h||(u=c[2],f=n.substring(d.length)),x=u===o||"all"===u||""===u,g=f.indexOf(" and ")!==-1&&f.split(" and ")||[f],m=g.length-1,v=m,x&&m>=0&&""!==f)do{if(y=g[m].match(l),!y||!r[y[3]]){x=!1;break}if(w=y[2],b=y[5],k=b,_=y[7],T=r[y[3]],_&&(k="px"===_?Number(b):"em"===_||"rem"===_?16*b:y[8]?(b/y[8]).toFixed(2):"dppx"===_?96*b:"dpcm"===_?.3937*b:Number(b)),x="min-"===w&&k?T>=k:"max-"===w&&k?T<=k:k?T===k:!!T,!x)break}while(m--);if(x)break}while(i--);return p?!x:x},h=function(){var e=t.innerWidth||i.clientWidth,s=t.innerHeight||i.clientHeight,n=t.screen.width,o=t.screen.height,a=t.screen.colorDepth,l=t.devicePixelRatio;r.width=e,r.height=s,r["aspect-ratio"]=(e/s).toFixed(2),r["device-width"]=n,r["device-height"]=o,r["device-aspect-ratio"]=(n/o).toFixed(2),r.color=a,r["color-index"]=Math.pow(2,a),r.orientation=s>=e?"portrait":"landscape",r.resolution=l&&96*l||t.screen.deviceXDPI||96,r["device-pixel-ratio"]=l||1},p=function(){clearTimeout(c),c=setTimeout(function(){var e=null,i=n-1,o=i,r=!1;if(i>=0){h();do if(e=s[o-i],e&&(r=d(e.mql.media),(r&&!e.mql.matches||!r&&e.mql.matches)&&(e.mql.matches=r,e.listeners)))for(var a=0,l=e.listeners.length;a<l;a++)e.listeners[a]&&e.listeners[a].call(t,e.mql);while(i--)}},10)},u=function(){var i=e.getElementsByTagName("head")[0],s=e.createElement("style"),n=null,r=["screen","print","speech","projection","handheld","tv","braille","embossed","tty"],a=0,l=r.length,c="#mediamatchjs { position: relative; z-index: 0; }",d="",u=t.addEventListener||(d="on")&&t.attachEvent;for(s.type="text/css",s.id="mediamatchjs",i.appendChild(s),n=t.getComputedStyle&&t.getComputedStyle(s)||s.currentStyle;a<l;a++)c+="@media "+r[a]+" { #mediamatchjs { position: relative; z-index: "+a+" } }";s.styleSheet?s.styleSheet.cssText=c:s.textContent=c,o=r[1*n.zIndex||0],i.removeChild(s),h(),u(d+"resize",p,!1),u(d+"orientationchange",p,!1)};return u(),function(t){var e=n,i={matches:!1,media:t,addListener:function(t){s[e].listeners||(s[e].listeners=[]),t&&s[e].listeners.push(t)},removeListener:function(t){var i=s[e],n=0,o=0;if(i)for(o=i.listeners.length;n<o;n++)i.listeners[n]===t&&i.listeners.splice(n,1)}};return""===t?(i.matches=!0,i):(i.matches=d(t),n=s.push({mql:i,listeners:null}),i)}}(window)),function(){"use strict";function t(e,s){function n(t,e){return function(){return t.apply(e,arguments)}}var o;if(s=s||{},this.trackingClick=!1,this.trackingClickStart=0,this.targetElement=null,this.touchStartX=0,this.touchStartY=0,this.lastTouchIdentifier=0,this.touchBoundary=s.touchBoundary||10,this.layer=e,this.tapDelay=s.tapDelay||200,this.tapTimeout=s.tapTimeout||700,!t.notNeeded(e)){for(var r=["onMouse","onClick","onTouchStart","onTouchMove","onTouchEnd","onTouchCancel"],a=this,l=0,c=r.length;l<c;l++)a[r[l]]=n(a[r[l]],a);i&&(e.addEventListener("mouseover",this.onMouse,!0),e.addEventListener("mousedown",this.onMouse,!0),e.addEventListener("mouseup",this.onMouse,!0)),e.addEventListener("click",this.onClick,!0),e.addEventListener("touchstart",this.onTouchStart,!1),e.addEventListener("touchmove",this.onTouchMove,!1),e.addEventListener("touchend",this.onTouchEnd,!1),e.addEventListener("touchcancel",this.onTouchCancel,!1),Event.prototype.stopImmediatePropagation||(e.removeEventListener=function(t,i,s){var n=Node.prototype.removeEventListener;"click"===t?n.call(e,t,i.hijacked||i,s):n.call(e,t,i,s)},e.addEventListener=function(t,i,s){var n=Node.prototype.addEventListener;"click"===t?n.call(e,t,i.hijacked||(i.hijacked=function(t){t.propagationStopped||i(t)}),s):n.call(e,t,i,s)}),"function"==typeof e.onclick&&(o=e.onclick,e.addEventListener("click",function(t){o(t)},!1),e.onclick=null)}}var e=navigator.userAgent.indexOf("Windows Phone")>=0,i=navigator.userAgent.indexOf("Android")>0&&!e,s=/iP(ad|hone|od)/.test(navigator.userAgent)&&!e,n=s&&/OS 4_\d(_\d)?/.test(navigator.userAgent),o=s&&/OS [6-7]_\d/.test(navigator.userAgent),r=navigator.userAgent.indexOf("BB10")>0;t.prototype.needsClick=function(t){switch(t.nodeName.toLowerCase()){case"button":case"select":case"textarea":if(t.disabled)return!0;break;case"input":if(s&&"file"===t.type||t.disabled)return!0;break;case"label":case"iframe":case"video":return!0}return/\bneedsclick\b/.test(t.className)},t.prototype.needsFocus=function(t){switch(t.nodeName.toLowerCase()){case"textarea":return!0;case"select":return!i;case"input":switch(t.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":return!1}return!t.disabled&&!t.readOnly;default:return/\bneedsfocus\b/.test(t.className)}},t.prototype.sendClick=function(t,e){var i,s;document.activeElement&&document.activeElement!==t&&document.activeElement.blur(),s=e.changedTouches[0],i=document.createEvent("MouseEvents"),i.initMouseEvent(this.determineEventType(t),!0,!0,window,1,s.screenX,s.screenY,s.clientX,s.clientY,!1,!1,!1,!1,0,null),i.forwardedTouchEvent=!0,t.dispatchEvent(i)},t.prototype.determineEventType=function(t){return i&&"select"===t.tagName.toLowerCase()?"mousedown":"click"},t.prototype.focus=function(t){var e;s&&t.setSelectionRange&&0!==t.type.indexOf("date")&&"time"!==t.type&&"month"!==t.type?(e=t.value.length,t.setSelectionRange(e,e)):t.focus()},t.prototype.updateScrollParent=function(t){var e,i;if(e=t.fastClickScrollParent,!e||!e.contains(t)){i=t;do{if(i.scrollHeight>i.offsetHeight){e=i,t.fastClickScrollParent=i;break}i=i.parentElement}while(i)}e&&(e.fastClickLastScrollTop=e.scrollTop)},t.prototype.getTargetElementFromEventTarget=function(t){return t.nodeType===Node.TEXT_NODE?t.parentNode:t},t.prototype.onTouchStart=function(t){var e,i,o;if(t.targetTouches.length>1)return!0;if(e=this.getTargetElementFromEventTarget(t.target),i=t.targetTouches[0],s){if(o=window.getSelection(),o.rangeCount&&!o.isCollapsed)return!0;if(!n){if(i.identifier&&i.identifier===this.lastTouchIdentifier)return t.preventDefault(),!1;this.lastTouchIdentifier=i.identifier,this.updateScrollParent(e)}}return this.trackingClick=!0,this.trackingClickStart=t.timeStamp,this.targetElement=e,this.touchStartX=i.pageX,this.touchStartY=i.pageY,t.timeStamp-this.lastClickTime<this.tapDelay&&t.preventDefault(),!0},t.prototype.touchHasMoved=function(t){var e=t.changedTouches[0],i=this.touchBoundary;return Math.abs(e.pageX-this.touchStartX)>i||Math.abs(e.pageY-this.touchStartY)>i},t.prototype.onTouchMove=function(t){return!this.trackingClick||((this.targetElement!==this.getTargetElementFromEventTarget(t.target)||this.touchHasMoved(t))&&(this.trackingClick=!1,this.targetElement=null),!0)},t.prototype.findControl=function(t){return void 0!==t.control?t.control:t.htmlFor?document.getElementById(t.htmlFor):t.querySelector("button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea")},t.prototype.onTouchEnd=function(t){var e,r,a,l,c,d=this.targetElement;if(!this.trackingClick)return!0;if(t.timeStamp-this.lastClickTime<this.tapDelay)return this.cancelNextClick=!0,!0;if(t.timeStamp-this.trackingClickStart>this.tapTimeout)return!0;if(this.cancelNextClick=!1,this.lastClickTime=t.timeStamp,r=this.trackingClickStart,this.trackingClick=!1,this.trackingClickStart=0,o&&(c=t.changedTouches[0],d=document.elementFromPoint(c.pageX-window.pageXOffset,c.pageY-window.pageYOffset)||d,d.fastClickScrollParent=this.targetElement.fastClickScrollParent),a=d.tagName.toLowerCase(),"label"===a){if(e=this.findControl(d)){if(this.focus(d),i)return!1;d=e}}else if(this.needsFocus(d))return t.timeStamp-r>100||s&&window.top!==window&&"input"===a?(this.targetElement=null,!1):(this.focus(d),this.sendClick(d,t),s&&"select"===a||(this.targetElement=null,t.preventDefault()),!1);return!(!s||n||(l=d.fastClickScrollParent,!l||l.fastClickLastScrollTop===l.scrollTop))||(this.needsClick(d)||(t.preventDefault(),this.sendClick(d,t)),!1)},t.prototype.onTouchCancel=function(){this.trackingClick=!1,this.targetElement=null},t.prototype.onMouse=function(t){return!this.targetElement||(!!t.forwardedTouchEvent||(!t.cancelable||(!(!this.needsClick(this.targetElement)||this.cancelNextClick)||(t.stopImmediatePropagation?t.stopImmediatePropagation():t.propagationStopped=!0,t.stopPropagation(),t.preventDefault(),!1))))},t.prototype.onClick=function(t){var e;return this.trackingClick?(this.targetElement=null,this.trackingClick=!1,!0):"submit"===t.target.type&&0===t.detail||(e=this.onMouse(t),e||(this.targetElement=null),e)},t.prototype.destroy=function(){var t=this.layer;i&&(t.removeEventListener("mouseover",this.onMouse,!0),t.removeEventListener("mousedown",this.onMouse,!0),t.removeEventListener("mouseup",this.onMouse,!0)),t.removeEventListener("click",this.onClick,!0),t.removeEventListener("touchstart",this.onTouchStart,!1),t.removeEventListener("touchmove",this.onTouchMove,!1),t.removeEventListener("touchend",this.onTouchEnd,!1),t.removeEventListener("touchcancel",this.onTouchCancel,!1)},t.notNeeded=function(t){var e,s,n,o;if("undefined"==typeof window.ontouchstart)return!0;if(s=+(/Chrome\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1]){if(!i)return!0;if(e=document.querySelector("meta[name=viewport]")){if(e.content.indexOf("user-scalable=no")!==-1)return!0;if(s>31&&document.documentElement.scrollWidth<=window.outerWidth)return!0}}if(r&&(n=navigator.userAgent.match(/Version\/([0-9]*)\.([0-9]*)/),n[1]>=10&&n[2]>=3&&(e=document.querySelector("meta[name=viewport]")))){if(e.content.indexOf("user-scalable=no")!==-1)return!0;if(document.documentElement.scrollWidth<=window.outerWidth)return!0}return"none"===t.style.msTouchAction||"manipulation"===t.style.touchAction||(o=+(/Firefox\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1],!!(o>=27&&(e=document.querySelector("meta[name=viewport]"),e&&(e.content.indexOf("user-scalable=no")!==-1||document.documentElement.scrollWidth<=window.outerWidth)))||("none"===t.style.touchAction||"manipulation"===t.style.touchAction))},t.attach=function(e,i){return new t(e,i)},"function"==typeof define&&"object"==typeof define.amd&&define.amd?define(function(){return t}):"undefined"!=typeof module&&module.exports?(module.exports=t.attach,module.exports.FastClick=t):window.FastClick=t}(),function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.enquire=t()}}(function(){return function t(e,i,s){function n(r,a){if(!i[r]){if(!e[r]){var l="function"==typeof require&&require;if(!a&&l)return l(r,!0);if(o)return o(r,!0);var c=new Error("Cannot find module '"+r+"'");throw c.code="MODULE_NOT_FOUND",c}var d=i[r]={exports:{}};e[r][0].call(d.exports,function(t){var i=e[r][1][t];return n(i?i:t)},d,d.exports,t,e,i,s)}return i[r].exports}for(var o="function"==typeof require&&require,r=0;r<s.length;r++)n(s[r]);return n}({1:[function(t,e,i){function s(t,e){this.query=t,this.isUnconditional=e,this.handlers=[],this.mql=window.matchMedia(t);var i=this;this.listener=function(t){i.mql=t.currentTarget||t,i.assess()},this.mql.addListener(this.listener)}var n=t(3),o=t(4).each;s.prototype={constuctor:s,addHandler:function(t){var e=new n(t);this.handlers.push(e),this.matches()&&e.on()},removeHandler:function(t){var e=this.handlers;o(e,function(i,s){if(i.equals(t))return i.destroy(),!e.splice(s,1)})},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){o(this.handlers,function(t){t.destroy()}),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var t=this.matches()?"on":"off";o(this.handlers,function(e){e[t]()})}},e.exports=s},{3:3,4:4}],2:[function(t,e,i){function s(){if(!window.matchMedia)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!window.matchMedia("only all").matches}var n=t(1),o=t(4),r=o.each,a=o.isFunction,l=o.isArray;s.prototype={constructor:s,register:function(t,e,i){var s=this.queries,o=i&&this.browserIsIncapable;return s[t]||(s[t]=new n(t,o)),a(e)&&(e={match:e}),l(e)||(e=[e]),r(e,function(e){a(e)&&(e={match:e}),s[t].addHandler(e)}),this},unregister:function(t,e){var i=this.queries[t];return i&&(e?i.removeHandler(e):(i.clear(),delete this.queries[t])),this}},e.exports=s},{1:1,4:4}],3:[function(t,e,i){function s(t){this.options=t,!t.deferSetup&&this.setup()}s.prototype={constructor:s,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(t){return this.options===t||this.options.match===t}},e.exports=s},{}],4:[function(t,e,i){function s(t,e){var i,s=0,n=t.length;for(s;s<n&&(i=e(t[s],s),i!==!1);s++);}function n(t){return"[object Array]"===Object.prototype.toString.apply(t)}function o(t){return"function"==typeof t}e.exports={isFunction:o,isArray:n,each:s}},{}],5:[function(t,e,i){var s=t(2);e.exports=new s},{2:2}]},{},[5])(5)}),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");if(+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]>3)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(jQuery),+function(t){"use strict";function e(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var i in e)if(void 0!==t.style[i])return{end:e[i]};return!1}t.fn.emulateTransitionEnd=function(e){var i=!1,s=this;t(this).one("bsTransitionEnd",function(){i=!0});var n=function(){i||t(s).trigger(t.support.transition.end)};return setTimeout(n,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){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}})})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var i=t(this),n=i.data("bs.alert");n||i.data("bs.alert",n=new s(this)),"string"==typeof e&&n[e].call(i)})}var i='[data-dismiss="alert"]',s=function(e){t(e).on("click",i,this.close)};s.VERSION="3.4.1",s.TRANSITION_DURATION=150,s.prototype.close=function(e){function i(){r.detach().trigger("closed.bs.alert").remove()}var n=t(this),o=n.attr("data-target");o||(o=n.attr("href"),o=o&&o.replace(/.*(?=#[^\s]*$)/,"")),o="#"===o?[]:o;var r=t(document).find(o);e&&e.preventDefault(),r.length||(r=n.closest(".alert")),r.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(r.removeClass("in"),t.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",i).emulateTransitionEnd(s.TRANSITION_DURATION):i())};var n=t.fn.alert;t.fn.alert=e,t.fn.alert.Constructor=s,t.fn.alert.noConflict=function(){return t.fn.alert=n,this},t(document).on("click.bs.alert.data-api",i,s.prototype.close)}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var s=t(this),n=s.data("bs.button"),o="object"==typeof e&&e;n||s.data("bs.button",n=new i(this,o)),"toggle"==e?n.toggle():e&&n.setState(e)})}var i=function(e,s){this.$element=t(e),this.options=t.extend({},i.DEFAULTS,s),this.isLoading=!1};i.VERSION="3.4.1",i.DEFAULTS={loadingText:"loading..."},i.prototype.setState=function(e){var i="disabled",s=this.$element,n=s.is("input")?"val":"html",o=s.data();e+="Text",null==o.resetText&&s.data("resetText",s[n]()),setTimeout(t.proxy(function(){s[n](null==o[e]?this.options[e]:o[e]),"loadingText"==e?(this.isLoading=!0,s.addClass(i).attr(i,i).prop(i,!0)):this.isLoading&&(this.isLoading=!1,s.removeClass(i).removeAttr(i).prop(i,!1))},this),0)},i.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var i=this.$element.find("input");"radio"==i.prop("type")?(i.prop("checked")&&(t=!1),e.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==i.prop("type")&&(i.prop("checked")!==this.$element.hasClass("active")&&(t=!1),this.$element.toggleClass("active")),i.prop("checked",this.$element.hasClass("active")),t&&i.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var s=t.fn.button;t.fn.button=e,t.fn.button.Constructor=i,t.fn.button.noConflict=function(){return t.fn.button=s,this},t(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(i){var s=t(i.target).closest(".btn");e.call(s,"toggle"),t(i.target).is('input[type="radio"], input[type="checkbox"]')||(i.preventDefault(),s.is("input,button")?s.trigger("focus"):s.find("input:visible,button:visible").first().trigger("focus"))}).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 s=t(this),n=s.data("bs.carousel"),o=t.extend({},i.DEFAULTS,s.data(),"object"==typeof e&&e),r="string"==typeof e?e:o.slide;n||s.data("bs.carousel",n=new i(this,o)),"number"==typeof e?n.to(e):r?n[r]():o.interval&&n.pause().cycle()})}var i=function(e,i){this.$element=t(e),this.$indicators=this.$element.find(".carousel-indicators"),this.options=i,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",t.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",t.proxy(this.pause,this)).on("mouseleave.bs.carousel",t.proxy(this.cycle,this))};i.VERSION="3.4.1",i.TRANSITION_DURATION=600,i.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},i.prototype.keydown=function(t){if(!/input|textarea/i.test(t.target.tagName)){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()}},i.prototype.cycle=function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(t.proxy(this.next,this),this.options.interval)),this},i.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},i.prototype.getItemForDirection=function(t,e){var i=this.getItemIndex(e),s="prev"==t&&0===i||"next"==t&&i==this.$items.length-1;if(s&&!this.options.wrap)return e;var n="prev"==t?-1:1,o=(i+n)%this.$items.length;return this.$items.eq(o)},i.prototype.to=function(t){var e=this,i=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(t>this.$items.length-1||t<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(t)}):i==t?this.pause().cycle():this.slide(t>i?"next":"prev",this.$items.eq(t))},i.prototype.pause=function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&t.support.transition&&(this.$element.trigger(t.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},i.prototype.next=function(){if(!this.sliding)return this.slide("next")},i.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},i.prototype.slide=function(e,s){var n=this.$element.find(".item.active"),o=s||this.getItemForDirection(e,n),r=this.interval,a="next"==e?"left":"right",l=this;if(o.hasClass("active"))return this.sliding=!1;var c=o[0],d=t.Event("slide.bs.carousel",{relatedTarget:c,direction:a});if(this.$element.trigger(d),!d.isDefaultPrevented()){if(this.sliding=!0,r&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var h=t(this.$indicators.children()[this.getItemIndex(o)]);h&&h.addClass("active")}var p=t.Event("slid.bs.carousel",{relatedTarget:c,direction:a});return t.support.transition&&this.$element.hasClass("slide")?(o.addClass(e),"object"==typeof o&&o.length&&o[0].offsetWidth,n.addClass(a),o.addClass(a),n.one("bsTransitionEnd",function(){o.removeClass([e,a].join(" ")).addClass("active"),n.removeClass(["active",a].join(" ")),l.sliding=!1,setTimeout(function(){l.$element.trigger(p)},0)}).emulateTransitionEnd(i.TRANSITION_DURATION)):(n.removeClass("active"),o.addClass("active"),this.sliding=!1,this.$element.trigger(p)),r&&this.cycle(),this}};var s=t.fn.carousel;t.fn.carousel=e,t.fn.carousel.Constructor=i,t.fn.carousel.noConflict=function(){return t.fn.carousel=s,this};var n=function(i){var s=t(this),n=s.attr("href");n&&(n=n.replace(/.*(?=#[^\s]+$)/,""));var o=s.attr("data-target")||n,r=t(document).find(o);if(r.hasClass("carousel")){var a=t.extend({},r.data(),s.data()),l=s.attr("data-slide-to");l&&(a.interval=!1),e.call(r,a),l&&r.data("bs.carousel").to(l),i.preventDefault()}};t(document).on("click.bs.carousel.data-api","[data-slide]",n).on("click.bs.carousel.data-api","[data-slide-to]",n),t(window).on("load",function(){t('[data-ride="carousel"]').each(function(){var i=t(this);e.call(i,i.data())})})}(jQuery),+function(t){"use strict";function e(e){var i,s=e.attr("data-target")||(i=e.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"");return t(document).find(s)}function i(e){return this.each(function(){var i=t(this),n=i.data("bs.collapse"),o=t.extend({},s.DEFAULTS,i.data(),"object"==typeof e&&e);!n&&o.toggle&&/show|hide/.test(e)&&(o.toggle=!1),n||i.data("bs.collapse",n=new s(this,o)),"string"==typeof e&&n[e]()})}var s=function(e,i){this.$element=t(e),this.options=t.extend({},s.DEFAULTS,i),this.$trigger=t('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};s.VERSION="3.4.1",s.TRANSITION_DURATION=350,s.DEFAULTS={toggle:!0},s.prototype.dimension=function(){var t=this.$element.hasClass("width");return t?"width":"height"},s.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var e,n=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(n&&n.length&&(e=n.data("bs.collapse"),e&&e.transitioning))){var o=t.Event("show.bs.collapse");if(this.$element.trigger(o),!o.isDefaultPrevented()){n&&n.length&&(i.call(n,"hide"),e||n.data("bs.collapse",null));var r=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[r](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var a=function(){this.$element.removeClass("collapsing").addClass("collapse in")[r](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return a.call(this);var l=t.camelCase(["scroll",r].join("-"));this.$element.one("bsTransitionEnd",t.proxy(a,this)).emulateTransitionEnd(s.TRANSITION_DURATION)[r](this.$element[0][l])}}}},s.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var e=t.Event("hide.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){var i=this.dimension();this.$element[i](this.$element[i]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var n=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return t.support.transition?void this.$element[i](0).one("bsTransitionEnd",t.proxy(n,this)).emulateTransitionEnd(s.TRANSITION_DURATION):n.call(this)}}},s.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},s.prototype.getParent=function(){return t(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(t.proxy(function(i,s){var n=t(s);this.addAriaAndCollapsedClass(e(n),n)},this)).end()},s.prototype.addAriaAndCollapsedClass=function(t,e){var i=t.hasClass("in");t.attr("aria-expanded",i),e.toggleClass("collapsed",!i).attr("aria-expanded",i)};var n=t.fn.collapse;t.fn.collapse=i,t.fn.collapse.Constructor=s,t.fn.collapse.noConflict=function(){return t.fn.collapse=n,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(s){var n=t(this);n.attr("data-target")||s.preventDefault();var o=e(n),r=o.data("bs.collapse"),a=r?"toggle":n.data();i.call(o,a)})}(jQuery),+function(t){"use strict";function e(e){var i=e.attr("data-target");i||(i=e.attr("href"),i=i&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,""));var s="#"!==i?t(document).find(i):null;return s&&s.length?s:e.parent()}function i(i){i&&3===i.which||(t(n).remove(),t(o).each(function(){var s=t(this),n=e(s),o={relatedTarget:this};n.hasClass("open")&&(i&&"click"==i.type&&/input|textarea/i.test(i.target.tagName)&&t.contains(n[0],i.target)||(n.trigger(i=t.Event("hide.bs.dropdown",o)),i.isDefaultPrevented()||(s.attr("aria-expanded","false"),n.removeClass("open").trigger(t.Event("hidden.bs.dropdown",o)))))}))}function s(e){return this.each(function(){var i=t(this),s=i.data("bs.dropdown");s||i.data("bs.dropdown",s=new r(this)),"string"==typeof e&&s[e].call(i)})}var n=".dropdown-backdrop",o='[data-toggle="dropdown"]',r=function(e){t(e).on("click.bs.dropdown",this.toggle)};r.VERSION="3.4.1",r.prototype.toggle=function(s){var n=t(this);if(!n.is(".disabled, :disabled")){var o=e(n),r=o.hasClass("open");if(i(),!r){"ontouchstart"in document.documentElement&&!o.closest(".navbar-nav").length&&t(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(t(this)).on("click",i);var a={relatedTarget:this};if(o.trigger(s=t.Event("show.bs.dropdown",a)),s.isDefaultPrevented())return;n.trigger("focus").attr("aria-expanded","true"),o.toggleClass("open").trigger(t.Event("shown.bs.dropdown",a))}return!1}},r.prototype.keydown=function(i){if(/(38|40|27|32)/.test(i.which)&&!/input|textarea/i.test(i.target.tagName)){var s=t(this);if(i.preventDefault(),i.stopPropagation(),!s.is(".disabled, :disabled")){var n=e(s),r=n.hasClass("open");if(!r&&27!=i.which||r&&27==i.which)return 27==i.which&&n.find(o).trigger("focus"),s.trigger("click");var a=" li:not(.disabled):visible a",l=n.find(".dropdown-menu"+a);if(l.length){var c=l.index(i.target);38==i.which&&c>0&&c--,40==i.which&&c<l.length-1&&c++,~c||(c=0),l.eq(c).trigger("focus")}}}};var a=t.fn.dropdown;t.fn.dropdown=s,t.fn.dropdown.Constructor=r,t.fn.dropdown.noConflict=function(){return t.fn.dropdown=a,this},t(document).on("click.bs.dropdown.data-api",i).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",o,r.prototype.toggle).on("keydown.bs.dropdown.data-api",o,r.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",r.prototype.keydown)}(jQuery),+function(t){"use strict";function e(e,s){return this.each(function(){var n=t(this),o=n.data("bs.modal"),r=t.extend({},i.DEFAULTS,n.data(),"object"==typeof e&&e);o||n.data("bs.modal",o=new i(this,r)),"string"==typeof e?o[e](s):r.show&&o.show(s)})}var i=function(e,i){this.options=i,this.$body=t(document.body),this.$element=t(e),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.fixedContent=".navbar-fixed-top, .navbar-fixed-bottom",this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,t.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};i.VERSION="3.4.1",i.TRANSITION_DURATION=300,i.BACKDROP_TRANSITION_DURATION=150,i.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},i.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},i.prototype.show=function(e){var s=this,n=t.Event("show.bs.modal",{relatedTarget:e});this.$element.trigger(n),this.isShown||n.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(){s.$element.one("mouseup.dismiss.bs.modal",function(e){t(e.target).is(s.$element)&&(s.ignoreBackdropClick=!0)})}),this.backdrop(function(){var n=t.support.transition&&s.$element.hasClass("fade");s.$element.parent().length||s.$element.appendTo(s.$body),s.$element.show().scrollTop(0),s.adjustDialog(),n&&s.$element[0].offsetWidth,s.$element.addClass("in"),s.enforceFocus();var o=t.Event("shown.bs.modal",{relatedTarget:e});n?s.$dialog.one("bsTransitionEnd",function(){s.$element.trigger("focus").trigger(o)}).emulateTransitionEnd(i.TRANSITION_DURATION):s.$element.trigger("focus").trigger(o)}))},i.prototype.hide=function(e){e&&e.preventDefault(),e=t.Event("hide.bs.modal"),this.$element.trigger(e),this.isShown&&!e.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),t(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),t.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",t.proxy(this.hideModal,this)).emulateTransitionEnd(i.TRANSITION_DURATION):this.hideModal())},i.prototype.enforceFocus=function(){t(document).off("focusin.bs.modal").on("focusin.bs.modal",t.proxy(function(t){document===t.target||this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")},this))},i.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",t.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},i.prototype.resize=function(){this.isShown?t(window).on("resize.bs.modal",t.proxy(this.handleUpdate,this)):t(window).off("resize.bs.modal")},i.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.$body.removeClass("modal-open"),t.resetAdjustments(),t.resetScrollbar(),t.$element.trigger("hidden.bs.modal")})},i.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},i.prototype.backdrop=function(e){var s=this,n=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var o=t.support.transition&&n;if(this.$backdrop=t(document.createElement("div")).addClass("modal-backdrop "+n).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)),o&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!e)return;o?this.$backdrop.one("bsTransitionEnd",e).emulateTransitionEnd(i.BACKDROP_TRANSITION_DURATION):e()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var r=function(){s.removeBackdrop(),e&&e()};t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",r).emulateTransitionEnd(i.BACKDROP_TRANSITION_DURATION):r()}else e&&e()},i.prototype.handleUpdate=function(){this.adjustDialog()},i.prototype.adjustDialog=function(){var t=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},i.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},i.prototype.checkScrollbar=function(){var t=window.innerWidth;if(!t){var e=document.documentElement.getBoundingClientRect();t=e.right-Math.abs(e.left)}this.bodyIsOverflowing=document.body.clientWidth<t,this.scrollbarWidth=this.measureScrollbar()},i.prototype.setScrollbar=function(){var e=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"";var i=this.scrollbarWidth;this.bodyIsOverflowing&&(this.$body.css("padding-right",e+i),t(this.fixedContent).each(function(e,s){var n=s.style.paddingRight,o=t(s).css("padding-right");t(s).data("padding-right",n).css("padding-right",parseFloat(o)+i+"px")}))},i.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad),t(this.fixedContent).each(function(e,i){var s=t(i).data("padding-right");t(i).removeData("padding-right"),i.style.paddingRight=s?s:""})},i.prototype.measureScrollbar=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",this.$body.append(t);var e=t.offsetWidth-t.clientWidth;return this.$body[0].removeChild(t),e};var s=t.fn.modal;t.fn.modal=e,t.fn.modal.Constructor=i,t.fn.modal.noConflict=function(){return t.fn.modal=s,this},t(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(i){var s=t(this),n=s.attr("href"),o=s.attr("data-target")||n&&n.replace(/.*(?=#[^\s]+$)/,""),r=t(document).find(o),a=r.data("bs.modal")?"toggle":t.extend({remote:!/#/.test(n)&&n},r.data(),s.data());s.is("a")&&i.preventDefault(),r.one("show.bs.modal",function(t){t.isDefaultPrevented()||r.one("hidden.bs.modal",function(){s.is(":visible")&&s.trigger("focus")})}),e.call(r,a,this)})}(jQuery),+function(t){"use strict";function e(e,i){var s=e.nodeName.toLowerCase();if(t.inArray(s,i)!==-1)return t.inArray(s,o)===-1||Boolean(e.nodeValue.match(l)||e.nodeValue.match(c));for(var n=t(i).filter(function(t,e){return e instanceof RegExp}),r=0,a=n.length;r<a;r++)if(s.match(n[r]))return!0;return!1}function i(i,s,n){if(0===i.length)return i;if(n&&"function"==typeof n)return n(i);if(!document.implementation||!document.implementation.createHTMLDocument)return i;var o=document.implementation.createHTMLDocument("sanitization");o.body.innerHTML=i;for(var r=t.map(s,function(t,e){return e}),a=t(o.body).find("*"),l=0,c=a.length;l<c;l++){var d=a[l],h=d.nodeName.toLowerCase();if(t.inArray(h,r)!==-1)for(var p=t.map(d.attributes,function(t){return t}),u=[].concat(s["*"]||[],s[h]||[]),f=0,g=p.length;f<g;f++)e(p[f],u)||d.removeAttribute(p[f].nodeName);else d.parentNode.removeChild(d)}return o.body.innerHTML}function s(e){return this.each(function(){var i=t(this),s=i.data("bs.tooltip"),n="object"==typeof e&&e;!s&&/destroy|hide/.test(e)||(s||i.data("bs.tooltip",s=new d(this,n)),"string"==typeof e&&s[e]())})}var n=["sanitize","whiteList","sanitizeFn"],o=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],r=/^aria-[\w-]*$/i,a={"*":["class","dir","id","lang","role",r],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},l=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:\/?#]*(?:[\/?#]|$))/gi,c=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i,d=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)};d.VERSION="3.4.1",d.TRANSITION_DURATION=150,d.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},sanitize:!0,sanitizeFn:null,whiteList:a},d.prototype.init=function(e,i,s){if(this.enabled=!0,this.type=e,this.$element=t(i),this.options=this.getOptions(s),this.$viewport=this.options.viewport&&t(document).find(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 n=this.options.trigger.split(" "),o=n.length;o--;){var r=n[o];if("click"==r)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=r){var a="hover"==r?"mouseenter":"focusin",l="hover"==r?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},d.prototype.getDefaults=function(){return d.DEFAULTS},d.prototype.getOptions=function(e){var s=this.$element.data();for(var o in s)s.hasOwnProperty(o)&&t.inArray(o,n)!==-1&&delete s[o];return e=t.extend({},this.getDefaults(),s,e),e.delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e.sanitize&&(e.template=i(e.template,e.whiteList,e.sanitizeFn)),e},d.prototype.getDelegateOptions=function(){var e={},i=this.getDefaults();return this._options&&t.each(this._options,function(t,s){i[t]!=s&&(e[t]=s)}),e},d.prototype.enter=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),e instanceof t.Event&&(i.inState["focusin"==e.type?"focus":"hover"]=!0),i.tip().hasClass("in")||"in"==i.hoverState?void(i.hoverState="in"):(clearTimeout(i.timeout),i.hoverState="in",i.options.delay&&i.options.delay.show?void(i.timeout=setTimeout(function(){"in"==i.hoverState&&i.show()},i.options.delay.show)):i.show())},d.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},d.prototype.leave=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),e instanceof t.Event&&(i.inState["focusout"==e.type?"focus":"hover"]=!1),!i.isInStateTrue())return clearTimeout(i.timeout),i.hoverState="out",i.options.delay&&i.options.delay.hide?void(i.timeout=setTimeout(function(){"out"==i.hoverState&&i.hide()},i.options.delay.hide)):i.hide()},d.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 s=this,n=this.tip(),o=this.getUID(this.type);this.setContent(),n.attr("id",o),this.$element.attr("aria-describedby",o),this.options.animation&&n.addClass("fade");var r="function"==typeof this.options.placement?this.options.placement.call(this,n[0],this.$element[0]):this.options.placement,a=/\s?auto?\s?/i,l=a.test(r);l&&(r=r.replace(a,"")||"top"),n.detach().css({top:0,left:0,display:"block"}).addClass(r).data("bs."+this.type,this),this.options.container?n.appendTo(t(document).find(this.options.container)):n.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var c=this.getPosition(),h=n[0].offsetWidth,p=n[0].offsetHeight;if(l){var u=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+h>f.width?"left":"left"==r&&c.left-h<f.left?"right":r,n.removeClass(u).addClass(r)}var g=this.getCalculatedOffset(r,c,h,p);this.applyPlacement(g,r);var m=function(){var t=s.hoverState;s.$element.trigger("shown.bs."+s.type),s.hoverState=null,"out"==t&&s.leave(s)};t.support.transition&&this.$tip.hasClass("fade")?n.one("bsTransitionEnd",m).emulateTransitionEnd(d.TRANSITION_DURATION):m()}},d.prototype.applyPlacement=function(e,i){var s=this.tip(),n=s[0].offsetWidth,o=s[0].offsetHeight,r=parseInt(s.css("margin-top"),10),a=parseInt(s.css("margin-left"),10);isNaN(r)&&(r=0),isNaN(a)&&(a=0),e.top+=r,e.left+=a,t.offset.setOffset(s[0],t.extend({using:function(t){s.css({top:Math.round(t.top),left:Math.round(t.left)})}},e),0),s.addClass("in");var l=s[0].offsetWidth,c=s[0].offsetHeight;"top"==i&&c!=o&&(e.top=e.top+o-c);var d=this.getViewportAdjustedDelta(i,e,l,c);d.left?e.left+=d.left:e.top+=d.top;var h=/top|bottom/.test(i),p=h?2*d.left-n+l:2*d.top-o+c,u=h?"offsetWidth":"offsetHeight";s.offset(e),this.replaceArrow(p,s[0][u],h)},d.prototype.replaceArrow=function(t,e,i){this.arrow().css(i?"left":"top",50*(1-t/e)+"%").css(i?"top":"left","")},d.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();this.options.html?(this.options.sanitize&&(e=i(e,this.options.whiteList,this.options.sanitizeFn)),t.find(".tooltip-inner").html(e)):t.find(".tooltip-inner").text(e),t.removeClass("fade in top bottom left right")},d.prototype.hide=function(e){function i(){"in"!=s.hoverState&&n.detach(),s.$element&&s.$element.removeAttr("aria-describedby").trigger("hidden.bs."+s.type),e&&e()}var s=this,n=t(this.$tip),o=t.Event("hide.bs."+this.type);if(this.$element.trigger(o),!o.isDefaultPrevented())return n.removeClass("in"),t.support.transition&&n.hasClass("fade")?n.one("bsTransitionEnd",i).emulateTransitionEnd(d.TRANSITION_DURATION):i(),this.hoverState=null,this},d.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","")},d.prototype.hasContent=function(){return this.getTitle()},d.prototype.getPosition=function(e){e=e||this.$element;var i=e[0],s="BODY"==i.tagName,n=i.getBoundingClientRect();null==n.width&&(n=t.extend({},n,{width:n.right-n.left,height:n.bottom-n.top}));var o=window.SVGElement&&i instanceof window.SVGElement,r=s?{top:0,left:0}:o?null:e.offset(),a={scroll:s?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop()},l=s?{width:t(window).width(),height:t(window).height()}:null;return t.extend({},n,a,l,r)},d.prototype.getCalculatedOffset=function(t,e,i,s){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-i/2}:"top"==t?{top:e.top-s,left:e.left+e.width/2-i/2}:"left"==t?{top:e.top+e.height/2-s/2,left:e.left-i}:{top:e.top+e.height/2-s/2,left:e.left+e.width}},d.prototype.getViewportAdjustedDelta=function(t,e,i,s){var n={top:0,left:0};if(!this.$viewport)return n;var o=this.options.viewport&&this.options.viewport.padding||0,r=this.getPosition(this.$viewport);if(/right|left/.test(t)){var a=e.top-o-r.scroll,l=e.top+o-r.scroll+s;a<r.top?n.top=r.top-a:l>r.top+r.height&&(n.top=r.top+r.height-l)}else{var c=e.left-o,d=e.left+o+i;c<r.left?n.left=r.left-c:d>r.right&&(n.left=r.left+r.width-d)}return n},d.prototype.getTitle=function(){var t,e=this.$element,i=this.options;return t=e.attr("data-original-title")||("function"==typeof i.title?i.title.call(e[0]):i.title)},d.prototype.getUID=function(t){do t+=~~(1e6*Math.random());while(document.getElementById(t));return t},d.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},d.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},d.prototype.enable=function(){this.enabled=!0},d.prototype.disable=function(){this.enabled=!1},d.prototype.toggleEnabled=function(){this.enabled=!this.enabled},d.prototype.toggle=function(e){var i=this;e&&(i=t(e.currentTarget).data("bs."+this.type),i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i))),e?(i.inState.click=!i.inState.click,i.isInStateTrue()?i.enter(i):i.leave(i)):i.tip().hasClass("in")?i.leave(i):i.enter(i)},d.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,t.$element=null})},d.prototype.sanitizeHtml=function(t){return i(t,this.options.whiteList,this.options.sanitizeFn)};var h=t.fn.tooltip;t.fn.tooltip=s,t.fn.tooltip.Constructor=d,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=h,this}}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var s=t(this),n=s.data("bs.popover"),o="object"==typeof e&&e;!n&&/destroy|hide/.test(e)||(n||s.data("bs.popover",n=new i(this,o)),"string"==typeof e&&n[e]())})}var i=function(t,e){this.init("popover",t,e)};if(!t.fn.tooltip)throw new Error("Popover requires tooltip.js");i.VERSION="3.4.1",i.DEFAULTS=t.extend({},t.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),i.prototype=t.extend({},t.fn.tooltip.Constructor.prototype),i.prototype.constructor=i,i.prototype.getDefaults=function(){return i.DEFAULTS},i.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),i=this.getContent();if(this.options.html){var s=typeof i;this.options.sanitize&&(e=this.sanitizeHtml(e),"string"===s&&(i=this.sanitizeHtml(i))),t.find(".popover-title").html(e),t.find(".popover-content").children().detach().end()["string"===s?"html":"append"](i)}else t.find(".popover-title").text(e),t.find(".popover-content").children().detach().end().text(i);t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},i.prototype.hasContent=function(){return this.getTitle()||this.getContent()},i.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},i.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var s=t.fn.popover;t.fn.popover=e,t.fn.popover.Constructor=i,t.fn.popover.noConflict=function(){return t.fn.popover=s,this}}(jQuery),+function(t){"use strict";function e(i,s){this.$body=t(document.body),this.$scrollElement=t(t(i).is(document.body)?window:i),this.options=t.extend({},e.DEFAULTS,s),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",t.proxy(this.process,this)),this.refresh(),this.process()}function i(i){return this.each(function(){var s=t(this),n=s.data("bs.scrollspy"),o="object"==typeof i&&i;n||s.data("bs.scrollspy",n=new e(this,o)),"string"==typeof i&&n[i]()})}e.VERSION="3.4.1",e.DEFAULTS={offset:10},e.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},e.prototype.refresh=function(){var e=this,i="offset",s=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),t.isWindow(this.$scrollElement[0])||(i="position",s=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var e=t(this),n=e.data("target")||e.attr("href"),o=/^#./.test(n)&&t(n);return o&&o.length&&o.is(":visible")&&[[o[i]().top+s,n]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){e.offsets.push(this[0]),e.targets.push(this[1])})},e.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,i=this.getScrollHeight(),s=this.options.offset+i-this.$scrollElement.height(),n=this.offsets,o=this.targets,r=this.activeTarget;if(this.scrollHeight!=i&&this.refresh(),e>=s)return r!=(t=o[o.length-1])&&this.activate(t);if(r&&e<n[0])return this.activeTarget=null,this.clear();for(t=n.length;t--;)r!=o[t]&&e>=n[t]&&(void 0===n[t+1]||e<n[t+1])&&this.activate(o[t])},e.prototype.activate=function(e){this.activeTarget=e,this.clear();var i=this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]',s=t(i).parents("li").addClass("active");s.parent(".dropdown-menu").length&&(s=s.closest("li.dropdown").addClass("active")),s.trigger("activate.bs.scrollspy")},e.prototype.clear=function(){t(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var s=t.fn.scrollspy;t.fn.scrollspy=i,t.fn.scrollspy.Constructor=e,t.fn.scrollspy.noConflict=function(){return t.fn.scrollspy=s,this},t(window).on("load.bs.scrollspy.data-api",function(){t('[data-spy="scroll"]').each(function(){var e=t(this);i.call(e,e.data())})})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var s=t(this),n=s.data("bs.tab");n||s.data("bs.tab",n=new i(this)),"string"==typeof e&&n[e]()})}var i=function(e){this.element=t(e)};i.VERSION="3.4.1",i.TRANSITION_DURATION=150,i.prototype.show=function(){var e=this.element,i=e.closest("ul:not(.dropdown-menu)"),s=e.data("target");if(s||(s=e.attr("href"),s=s&&s.replace(/.*(?=#[^\s]*$)/,"")),!e.parent("li").hasClass("active")){var n=i.find(".active:last a"),o=t.Event("hide.bs.tab",{relatedTarget:e[0]}),r=t.Event("show.bs.tab",{relatedTarget:n[0]});if(n.trigger(o),e.trigger(r),!r.isDefaultPrevented()&&!o.isDefaultPrevented()){var a=t(document).find(s);this.activate(e.closest("li"),i),this.activate(a,a.parent(),function(){n.trigger({type:"hidden.bs.tab",relatedTarget:e[0]}),e.trigger({type:"shown.bs.tab",relatedTarget:n[0]})})}}},i.prototype.activate=function(e,s,n){function o(){r.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),e.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),a?(e[0].offsetWidth,e.addClass("in")):e.removeClass("fade"),e.parent(".dropdown-menu").length&&e.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),n&&n()}var r=s.find("> .active"),a=n&&t.support.transition&&(r.length&&r.hasClass("fade")||!!s.find("> .fade").length);r.length&&a?r.one("bsTransitionEnd",o).emulateTransitionEnd(i.TRANSITION_DURATION):o(),r.removeClass("in")};var s=t.fn.tab;t.fn.tab=e,t.fn.tab.Constructor=i,t.fn.tab.noConflict=function(){return t.fn.tab=s,this};var n=function(i){i.preventDefault(),e.call(t(this),"show")};t(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',n).on("click.bs.tab.data-api",'[data-toggle="pill"]',n)}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var s=t(this),n=s.data("bs.affix"),o="object"==typeof e&&e;n||s.data("bs.affix",n=new i(this,o)),"string"==typeof e&&n[e]()})}var i=function(e,s){this.options=t.extend({},i.DEFAULTS,s);var n=this.options.target===i.DEFAULTS.target?t(this.options.target):t(document).find(this.options.target);this.$target=n.on("scroll.bs.affix.data-api",t.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",t.proxy(this.checkPositionWithEventLoop,this)),this.$element=t(e),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};i.VERSION="3.4.1",i.RESET="affix affix-top affix-bottom",i.DEFAULTS={offset:0,target:window},i.prototype.getState=function(t,e,i,s){var n=this.$target.scrollTop(),o=this.$element.offset(),r=this.$target.height();if(null!=i&&"top"==this.affixed)return n<i&&"top";if("bottom"==this.affixed)return null!=i?!(n+this.unpin<=o.top)&&"bottom":!(n+r<=t-s)&&"bottom";var a=null==this.affixed,l=a?n:o.top,c=a?r:e;return null!=i&&n<=i?"top":null!=s&&l+c>=t-s&&"bottom"},i.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(i.RESET).addClass("affix");var t=this.$target.scrollTop(),e=this.$element.offset();return this.pinnedOffset=e.top-t},i.prototype.checkPositionWithEventLoop=function(){setTimeout(t.proxy(this.checkPosition,this),1)},i.prototype.checkPosition=function(){if(this.$element.is(":visible")){var e=this.$element.height(),s=this.options.offset,n=s.top,o=s.bottom,r=Math.max(t(document).height(),t(document.body).height());"object"!=typeof s&&(o=n=s),"function"==typeof n&&(n=s.top(this.$element)),"function"==typeof o&&(o=s.bottom(this.$element));var a=this.getState(r,e,n,o);if(this.affixed!=a){null!=this.unpin&&this.$element.css("top","");var l="affix"+(a?"-"+a:""),c=t.Event(l+".bs.affix");if(this.$element.trigger(c),c.isDefaultPrevented())return;this.affixed=a,this.unpin="bottom"==a?this.getPinnedOffset():null,this.$element.removeClass(i.RESET).addClass(l).trigger(l.replace("affix","affixed")+".bs.affix")}"bottom"==a&&this.$element.offset({top:r-e-o})}};var s=t.fn.affix;t.fn.affix=e,t.fn.affix.Constructor=i,t.fn.affix.noConflict=function(){return t.fn.affix=s,this},t(window).on("load",function(){t('[data-spy="affix"]').each(function(){var i=t(this),s=i.data();s.offset=s.offset||{},null!=s.offsetBottom&&(s.offset.bottom=s.offsetBottom),null!=s.offsetTop&&(s.offset.top=s.offsetTop),e.call(i,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,s){var n,o=this;o.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(e,i){return t('<button type="button" data-role="none" role="button" tabindex="0" />').text(i+1)},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,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},o.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(o,o.initials),o.activeBreakpoint=null,o.animType=null,o.animProp=null,o.breakpoints=[],o.breakpointSettings=[],o.cssTransitions=!1,o.focussed=!1,o.interrupted=!1,o.hidden="hidden",o.paused=!0,o.positionProp=null,o.respondTo=null,o.rowCount=1,o.shouldClick=!0,o.$slider=t(e),o.$slidesCache=null,o.transformType=null,o.transitionType=null,o.visibilityChange="visibilitychange",o.windowWidth=0,o.windowTimer=null,n=t(e).data("slick")||{},o.options=t.extend({},o.defaults,s,n),o.currentSlide=o.options.initialSlide,o.originalSettings=o.options,"undefined"!=typeof document.mozHidden?(o.hidden="mozHidden",o.visibilityChange="mozvisibilitychange"):"undefined"!=typeof document.webkitHidden&&(o.hidden="webkitHidden",o.visibilityChange="webkitvisibilitychange"),o.autoPlay=t.proxy(o.autoPlay,o),o.autoPlayClear=t.proxy(o.autoPlayClear,o),o.autoPlayIterator=t.proxy(o.autoPlayIterator,o),o.changeSlide=t.proxy(o.changeSlide,o),o.clickHandler=t.proxy(o.clickHandler,o),o.selectHandler=t.proxy(o.selectHandler,o),o.setPosition=t.proxy(o.setPosition,o),o.swipeHandler=t.proxy(o.swipeHandler,o),o.dragHandler=t.proxy(o.dragHandler,o),o.keyHandler=t.proxy(o.keyHandler,o),o.instanceUid=i++,o.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,o.registerBreakpoints(),o.init(!0)}var i=0;return e}(),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.addSlide=e.prototype.slickAdd=function(e,i,s){var n=this;if("boolean"==typeof i)s=i,i=null;else if(i<0||i>=n.slideCount)return!1;n.unload(),"number"==typeof i?0===i&&0===n.$slides.length?t(e).appendTo(n.$slideTrack):s?t(e).insertBefore(n.$slides.eq(i)):t(e).insertAfter(n.$slides.eq(i)):s===!0?t(e).prependTo(n.$slideTrack):t(e).appendTo(n.$slideTrack),n.$slides=n.$slideTrack.children(this.options.slide),n.$slideTrack.children(this.options.slide).detach(),n.$slideTrack.append(n.$slides),n.$slides.each(function(e,i){t(i).attr("data-slick-index",e)}),n.$slidesCache=n.$slides,n.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,i){var s={},n=this;n.animateHeight(),n.options.rtl===!0&&n.options.vertical===!1&&(e=-e),n.transformsEnabled===!1?n.options.vertical===!1?n.$slideTrack.animate({left:e},n.options.speed,n.options.easing,i):n.$slideTrack.animate({top:e},n.options.speed,n.options.easing,i):n.cssTransitions===!1?(n.options.rtl===!0&&(n.currentLeft=-n.currentLeft),t({animStart:n.currentLeft}).animate({animStart:e},{duration:n.options.speed,easing:n.options.easing,step:function(t){t=Math.ceil(t),n.options.vertical===!1?(s[n.animType]="translate("+t+"px, 0px)",n.$slideTrack.css(s)):(s[n.animType]="translate(0px,"+t+"px)",n.$slideTrack.css(s))},complete:function(){i&&i.call()}})):(n.applyTransition(),e=Math.ceil(e),n.options.vertical===!1?s[n.animType]="translate3d("+e+"px, 0px, 0px)":s[n.animType]="translate3d(0px,"+e+"px, 0px)",n.$slideTrack.css(s),i&&setTimeout(function(){n.disableTransition(),i.call()},n.options.speed))},e.prototype.getNavTarget=function(){var e=this,i=e.options.asNavFor;return i&&null!==i&&(i=t(i).not(e.$slider)),i},e.prototype.asNavFor=function(e){var i=this,s=i.getNavTarget();null!==s&&"object"==typeof s&&s.each(function(){var i=t(this).slick("getSlick");i.unslicked||i.slideHandler(e,!0)})},e.prototype.applyTransition=function(t){var e=this,i={};e.options.fade===!1?i[e.transitionType]=e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:i[e.transitionType]="opacity "+e.options.speed+"ms "+e.options.cssEase,e.options.fade===!1?e.$slideTrack.css(i):e.$slides.eq(t).css(i)},e.prototype.autoPlay=function(){var t=this;t.autoPlayClear(),t.slideCount>t.options.slidesToShow&&(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,e=t.currentSlide+t.options.slidesToScroll;t.paused||t.interrupted||t.focussed||(t.options.infinite===!1&&(1===t.direction&&t.currentSlide+1===t.slideCount-1?t.direction=0:0===t.direction&&(e=t.currentSlide-t.options.slidesToScroll,t.currentSlide-1===0&&(t.direction=1))),t.slideHandler(e))},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,i,s=this;if(s.options.dots===!0&&s.slideCount>s.options.slidesToShow){for(s.$slider.addClass("slick-dotted"),i=t("<ul />").addClass(s.options.dotsClass),e=0;e<=s.getDotCount();e+=1)i.append(t("<li />").append(s.options.customPaging.call(this,s,e)));s.$dots=i.appendTo(s.options.appendDots),s.$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,i){t(i).attr("data-slick-index",e).data("originalStyling",t(i).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,i,s,n,o,r,a=this;if(s=document.createDocumentFragment(),o=a.$slider.children(),a.options.rows>1){for(r=a.options.slidesPerRow*a.options.rows,n=Math.ceil(o.length/r),t=0;t<n;t++){var l=document.createElement("div");for(e=0;e<a.options.rows;e++){var c=document.createElement("div");for(i=0;i<a.options.slidesPerRow;i++){var d=t*r+(e*a.options.slidesPerRow+i);o.get(d)&&c.appendChild(o.get(d))}l.appendChild(c)}s.appendChild(l)}a.$slider.empty().append(s),a.$slider.children().children().children().css({width:100/a.options.slidesPerRow+"%",display:"inline-block"})}},e.prototype.checkResponsive=function(e,i){var s,n,o,r=this,a=!1,l=r.$slider.width(),c=window.innerWidth||t(window).width();if("window"===r.respondTo?o=c:"slider"===r.respondTo?o=l:"min"===r.respondTo&&(o=Math.min(c,l)),r.options.responsive&&r.options.responsive.length&&null!==r.options.responsive){n=null;for(s in r.breakpoints)r.breakpoints.hasOwnProperty(s)&&(r.originalSettings.mobileFirst===!1?o<r.breakpoints[s]&&(n=r.breakpoints[s]):o>r.breakpoints[s]&&(n=r.breakpoints[s]));null!==n?null!==r.activeBreakpoint?(n!==r.activeBreakpoint||i)&&(r.activeBreakpoint=n,"unslick"===r.breakpointSettings[n]?r.unslick(n):(r.options=t.extend({},r.originalSettings,r.breakpointSettings[n]),e===!0&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),a=n):(r.activeBreakpoint=n,"unslick"===r.breakpointSettings[n]?r.unslick(n):(r.options=t.extend({},r.originalSettings,r.breakpointSettings[n]),e===!0&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),a=n):null!==r.activeBreakpoint&&(r.activeBreakpoint=null,r.options=r.originalSettings,e===!0&&(r.currentSlide=r.options.initialSlide),r.refresh(e),a=n),e||a===!1||r.$slider.trigger("breakpoint",[r,a])}},e.prototype.changeSlide=function(e,i){var s,n,o,r=this,a=t(e.currentTarget);switch(a.is("a")&&e.preventDefault(),a.is("li")||(a=a.closest("li")),o=r.slideCount%r.options.slidesToScroll!==0,s=o?0:(r.slideCount-r.currentSlide)%r.options.slidesToScroll,e.data.message){case"previous":n=0===s?r.options.slidesToScroll:r.options.slidesToShow-s,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide-n,!1,i);break;case"next":n=0===s?r.options.slidesToScroll:s,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide+n,!1,i);break;case"index":var l=0===e.data.index?0:e.data.index||a.index()*r.options.slidesToScroll;r.slideHandler(r.checkNavigable(l),!1,i),a.children().trigger("focus");break;default:return}},e.prototype.checkNavigable=function(t){var e,i,s=this;if(e=s.getNavigableIndexes(),i=0,t>e[e.length-1])t=e[e.length-1];else for(var n in e){if(t<e[n]){t=i;break}i=e[n]}return t},e.prototype.cleanUpEvents=function(){var e=this;e.options.dots&&null!==e.$dots&&t("li",e.$dots).off("click.slick",e.changeSlide).off("mouseenter.slick",t.proxy(e.interrupt,e,!0)).off("mouseleave.slick",t.proxy(e.interrupt,e,!1)),e.$slider.off("focus.slick blur.slick"),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.cleanUpSlideEvents(),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.cleanUpSlideEvents=function(){var e=this;e.$list.off("mouseenter.slick",t.proxy(e.interrupt,e,!0)),e.$list.off("mouseleave.slick",t.proxy(e.interrupt,e,!1))},e.prototype.cleanUpRows=function(){var t,e=this;e.options.rows>1&&(t=e.$slides.children().children(),t.removeAttr("style"),e.$slider.empty().append(t))},e.prototype.clickHandler=function(t){var e=this;e.shouldClick===!1&&(t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault())},e.prototype.destroy=function(e){var i=this;i.autoPlayClear(),i.touchObject={},i.cleanUpEvents(),t(".slick-cloned",i.$slider).detach(),i.$dots&&i.$dots.remove(),i.$prevArrow&&i.$prevArrow.length&&(i.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.prevArrow)&&i.$prevArrow.remove()),i.$nextArrow&&i.$nextArrow.length&&(i.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.nextArrow)&&i.$nextArrow.remove()),i.$slides&&(i.$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"))}),i.$slideTrack.children(this.options.slide).detach(),i.$slideTrack.detach(),i.$list.detach(),i.$slider.append(i.$slides)),i.cleanUpRows(),i.$slider.removeClass("slick-slider"),i.$slider.removeClass("slick-initialized"),i.$slider.removeClass("slick-dotted"),i.unslicked=!0,e||i.$slider.trigger("destroy",[i])},e.prototype.disableTransition=function(t){var e=this,i={};i[e.transitionType]="",e.options.fade===!1?e.$slideTrack.css(i):e.$slides.eq(t).css(i)},e.prototype.fadeSlide=function(t,e){var i=this;i.cssTransitions===!1?(i.$slides.eq(t).css({zIndex:i.options.zIndex}),i.$slides.eq(t).animate({opacity:1},i.options.speed,i.options.easing,e)):(i.applyTransition(t),i.$slides.eq(t).css({opacity:1,zIndex:i.options.zIndex}),e&&setTimeout(function(){i.disableTransition(t),e.call()},i.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.focusHandler=function(){var e=this;e.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*:not(.slick-arrow)",function(i){i.stopImmediatePropagation();var s=t(this);setTimeout(function(){e.options.pauseOnFocus&&(e.focussed=s.is(":focus"),e.autoPlay())},0)})},e.prototype.getCurrent=e.prototype.slickCurrentSlide=function(){var t=this;return t.currentSlide},e.prototype.getDotCount=function(){var t=this,e=0,i=0,s=0;if(t.options.infinite===!0)for(;e<t.slideCount;)++s,e=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else if(t.options.centerMode===!0)s=t.slideCount;else if(t.options.asNavFor)for(;e<t.slideCount;)++s,e=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else s=1+Math.ceil((t.slideCount-t.options.slidesToShow)/t.options.slidesToScroll);return s-1},e.prototype.getLeft=function(t){var e,i,s,n=this,o=0;return n.slideOffset=0,i=n.$slides.first().outerHeight(!0),n.options.infinite===!0?(n.slideCount>n.options.slidesToShow&&(n.slideOffset=n.slideWidth*n.options.slidesToShow*-1,o=i*n.options.slidesToShow*-1),n.slideCount%n.options.slidesToScroll!==0&&t+n.options.slidesToScroll>n.slideCount&&n.slideCount>n.options.slidesToShow&&(t>n.slideCount?(n.slideOffset=(n.options.slidesToShow-(t-n.slideCount))*n.slideWidth*-1,o=(n.options.slidesToShow-(t-n.slideCount))*i*-1):(n.slideOffset=n.slideCount%n.options.slidesToScroll*n.slideWidth*-1,o=n.slideCount%n.options.slidesToScroll*i*-1))):t+n.options.slidesToShow>n.slideCount&&(n.slideOffset=(t+n.options.slidesToShow-n.slideCount)*n.slideWidth,o=(t+n.options.slidesToShow-n.slideCount)*i),n.slideCount<=n.options.slidesToShow&&(n.slideOffset=0,o=0),n.options.centerMode===!0&&n.options.infinite===!0?n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)-n.slideWidth:n.options.centerMode===!0&&(n.slideOffset=0,n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)),e=n.options.vertical===!1?t*n.slideWidth*-1+n.slideOffset:t*i*-1+o,n.options.variableWidth===!0&&(s=n.slideCount<=n.options.slidesToShow||n.options.infinite===!1?n.$slideTrack.children(".slick-slide").eq(t):n.$slideTrack.children(".slick-slide").eq(t+n.options.slidesToShow),e=n.options.rtl===!0?s[0]?(n.$slideTrack.width()-s[0].offsetLeft-s.width())*-1:0:s[0]?s[0].offsetLeft*-1:0,n.options.centerMode===!0&&(s=n.slideCount<=n.options.slidesToShow||n.options.infinite===!1?n.$slideTrack.children(".slick-slide").eq(t):n.$slideTrack.children(".slick-slide").eq(t+n.options.slidesToShow+1),e=n.options.rtl===!0?s[0]?(n.$slideTrack.width()-s[0].offsetLeft-s.width())*-1:0:s[0]?s[0].offsetLeft*-1:0,e+=(n.$list.width()-s.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,i=0,s=0,n=[];for(e.options.infinite===!1?t=e.slideCount:(i=e.options.slidesToScroll*-1,s=e.options.slidesToScroll*-1,t=2*e.slideCount);i<t;)n.push(i),i=s+e.options.slidesToScroll,s+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return n},e.prototype.getSlick=function(){return this},e.prototype.getSlideCount=function(){var e,i,s,n=this;return s=n.options.centerMode===!0?n.slideWidth*Math.floor(n.options.slidesToShow/2):0,n.options.swipeToSlide===!0?(n.$slideTrack.find(".slick-slide").each(function(e,o){if(o.offsetLeft-s+t(o).outerWidth()/2>n.swipeLeft*-1)return i=o,!1}),e=Math.abs(t(i).attr("data-slick-index")-n.currentSlide)||1):n.options.slidesToScroll},e.prototype.goTo=e.prototype.slickGoTo=function(t,e){var i=this;i.changeSlide({data:{message:"index",index:parseInt(t)}},e)},e.prototype.init=function(e){var i=this;t(i.$slider).hasClass("slick-initialized")||(t(i.$slider).addClass("slick-initialized"),i.buildRows(),i.buildOut(),i.setProps(),i.startLoad(),i.loadSlider(),i.initializeEvents(),i.updateArrows(),i.updateDots(),i.checkResponsive(!0),i.focusHandler()),e&&i.$slider.trigger("init",[i]),i.options.accessibility===!0&&i.initADA(),i.options.autoplay&&(i.paused=!1,i.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(i){t(this).attr({role:"option","aria-describedby":"slick-slide"+e.instanceUid+i})}),null!==e.$dots&&e.$dots.attr("role","tablist").find("li").each(function(i){t(this).attr({role:"presentation","aria-selected":"false","aria-controls":"navigation"+e.instanceUid+i,id:"slick-slide"+e.instanceUid+i})}).first().attr("aria-selected","true").end().find("button").attr("role","button").end().closest("div").attr("role","toolbar"),e.activateADA()},e.prototype.initArrowEvents=function(){var t=this;t.options.arrows===!0&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},t.changeSlide),t.$nextArrow.off("click.slick").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&&t("li",e.$dots).on("mouseenter.slick",t.proxy(e.interrupt,e,!0)).on("mouseleave.slick",t.proxy(e.interrupt,e,!1))},e.prototype.initSlideEvents=function(){var e=this;e.options.pauseOnHover&&(e.$list.on("mouseenter.slick",t.proxy(e.interrupt,e,!0)),e.$list.on("mouseleave.slick",t.proxy(e.interrupt,e,!1)))},e.prototype.initializeEvents=function(){var e=this;e.initArrowEvents(),e.initDotEvents(),e.initSlideEvents(),e.$list.on("touchstart.slick mousedown.slick",{action:"start"},e.swipeHandler),e.$list.on("touchmove.slick mousemove.slick",{action:"move"},e.swipeHandler),e.$list.on("touchend.slick mouseup.slick",{action:"end"},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.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()},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:e.options.rtl===!0?"next":"previous"}}):39===t.keyCode&&e.options.accessibility===!0&&e.changeSlide({data:{message:e.options.rtl===!0?"previous":"next"}}))},e.prototype.lazyLoad=function(){function e(e){t("img[data-lazy]",e).each(function(){var e=t(this),i=t(this).attr("data-lazy"),s=document.createElement("img");s.onload=function(){e.animate({opacity:0},100,function(){e.attr("src",i).animate({opacity:1},200,function(){e.removeAttr("data-lazy").removeClass("slick-loading")}),r.$slider.trigger("lazyLoaded",[r,e,i])})},s.onerror=function(){e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),r.$slider.trigger("lazyLoadError",[r,e,i])},s.src=i})}var i,s,n,o,r=this;r.options.centerMode===!0?r.options.infinite===!0?(n=r.currentSlide+(r.options.slidesToShow/2+1),o=n+r.options.slidesToShow+2):(n=Math.max(0,r.currentSlide-(r.options.slidesToShow/2+1)),o=2+(r.options.slidesToShow/2+1)+r.currentSlide):(n=r.options.infinite?r.options.slidesToShow+r.currentSlide:r.currentSlide,o=Math.ceil(n+r.options.slidesToShow),r.options.fade===!0&&(n>0&&n--,o<=r.slideCount&&o++)),i=r.$slider.find(".slick-slide").slice(n,o),e(i),r.slideCount<=r.options.slidesToShow?(s=r.$slider.find(".slick-slide"),e(s)):r.currentSlide>=r.slideCount-r.options.slidesToShow?(s=r.$slider.find(".slick-cloned").slice(0,r.options.slidesToShow),e(s)):0===r.currentSlide&&(s=r.$slider.find(".slick-cloned").slice(r.options.slidesToShow*-1),e(s))},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.autoPlay(),t.options.autoplay=!0,t.paused=!1,t.focussed=!1,t.interrupted=!1},e.prototype.postSlide=function(t){var e=this;e.unslicked||(e.$slider.trigger("afterChange",[e,t]),e.animating=!1,e.setPosition(),e.swipeLeft=null,e.options.autoplay&&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(e){e=e||1;var i,s,n,o=this,r=t("img[data-lazy]",o.$slider);r.length?(i=r.first(),s=i.attr("data-lazy"),n=document.createElement("img"),n.onload=function(){i.attr("src",s).removeAttr("data-lazy").removeClass("slick-loading"),o.options.adaptiveHeight===!0&&o.setPosition(),o.$slider.trigger("lazyLoaded",[o,i,s]),o.progressiveLazyLoad()},n.onerror=function(){e<3?setTimeout(function(){o.progressiveLazyLoad(e+1)},500):(i.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),o.$slider.trigger("lazyLoadError",[o,i,s]),o.progressiveLazyLoad())},n.src=s):o.$slider.trigger("allImagesLoaded",[o])},e.prototype.refresh=function(e){var i,s,n=this;s=n.slideCount-n.options.slidesToShow,!n.options.infinite&&n.currentSlide>s&&(n.currentSlide=s),n.slideCount<=n.options.slidesToShow&&(n.currentSlide=0),i=n.currentSlide,n.destroy(!0),t.extend(n,n.initials,{currentSlide:i}),n.init(),e||n.changeSlide({data:{message:"index",index:i}},!1)},e.prototype.registerBreakpoints=function(){var e,i,s,n=this,o=n.options.responsive||null;if("array"===t.type(o)&&o.length){n.respondTo=n.options.respondTo||"window";for(e in o)if(s=n.breakpoints.length-1,i=o[e].breakpoint,o.hasOwnProperty(e)){for(;s>=0;)n.breakpoints[s]&&n.breakpoints[s]===i&&n.breakpoints.splice(s,1),s--;n.breakpoints.push(i),n.breakpointSettings[i]=o[e].settings}n.breakpoints.sort(function(t,e){return n.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.cleanUpSlideEvents(),e.initSlideEvents(),e.checkResponsive(!1,!0),e.options.focusOnSelect===!0&&t(e.$slideTrack).children().on("click.slick",e.selectHandler),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),e.setPosition(),e.focusHandler(),e.paused=!e.options.autoplay,e.autoPlay(),e.$slider.trigger("reInit",[e])},e.prototype.resize=function(){var e=this;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,i){var s=this;return"boolean"==typeof t?(e=t,t=e===!0?0:s.slideCount-1):t=e===!0?--t:t,!(s.slideCount<1||t<0||t>s.slideCount-1)&&(s.unload(),i===!0?s.$slideTrack.children().remove():s.$slideTrack.children(this.options.slide).eq(t).remove(),s.$slides=s.$slideTrack.children(this.options.slide),s.$slideTrack.children(this.options.slide).detach(),s.$slideTrack.append(s.$slides),s.$slidesCache=s.$slides,void s.reinit())},e.prototype.setCSS=function(t){var e,i,s=this,n={};s.options.rtl===!0&&(t=-t),e="left"==s.positionProp?Math.ceil(t)+"px":"0px",i="top"==s.positionProp?Math.ceil(t)+"px":"0px",n[s.positionProp]=t,s.transformsEnabled===!1?s.$slideTrack.css(n):(n={},s.cssTransitions===!1?(n[s.animType]="translate("+e+", "+i+")",s.$slideTrack.css(n)):(n[s.animType]="translate3d("+e+", "+i+", 0px)",s.$slideTrack.css(n)))},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,i=this;i.$slides.each(function(s,n){e=i.slideWidth*s*-1,i.options.rtl===!0?t(n).css({position:"relative",right:e,top:0,zIndex:i.options.zIndex-2,opacity:0}):t(n).css({position:"relative",left:e,top:0,zIndex:i.options.zIndex-2,opacity:0})}),i.$slides.eq(i.currentSlide).css({zIndex:i.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(){var e,i,s,n,o,r=this,a=!1;if("object"===t.type(arguments[0])?(s=arguments[0],a=arguments[1],o="multiple"):"string"===t.type(arguments[0])&&(s=arguments[0],n=arguments[1],a=arguments[2],"responsive"===arguments[0]&&"array"===t.type(arguments[1])?o="responsive":"undefined"!=typeof arguments[1]&&(o="single")),"single"===o)r.options[s]=n;else if("multiple"===o)t.each(s,function(t,e){r.options[t]=e});else if("responsive"===o)for(i in n)if("array"!==t.type(r.options.responsive))r.options.responsive=[n[i]];else{for(e=r.options.responsive.length-1;e>=0;)r.options.responsive[e].breakpoint===n[i].breakpoint&&r.options.responsive.splice(e,1),e--;r.options.responsive.push(n[i])}a&&(r.unload(),r.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,i,s,n,o=this;i=o.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),o.$slides.eq(t).addClass("slick-current"),o.options.centerMode===!0?(e=Math.floor(o.options.slidesToShow/2),o.options.infinite===!0&&(t>=e&&t<=o.slideCount-1-e?o.$slides.slice(t-e,t+e+1).addClass("slick-active").attr("aria-hidden","false"):(s=o.options.slidesToShow+t,i.slice(s-e+1,s+e+2).addClass("slick-active").attr("aria-hidden","false")),0===t?i.eq(i.length-1-o.options.slidesToShow).addClass("slick-center"):t===o.slideCount-1&&i.eq(o.options.slidesToShow).addClass("slick-center")),o.$slides.eq(t).addClass("slick-center")):t>=0&&t<=o.slideCount-o.options.slidesToShow?o.$slides.slice(t,t+o.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):i.length<=o.options.slidesToShow?i.addClass("slick-active").attr("aria-hidden","false"):(n=o.slideCount%o.options.slidesToShow,s=o.options.infinite===!0?o.options.slidesToShow+t:t,o.options.slidesToShow==o.options.slidesToScroll&&o.slideCount-t<o.options.slidesToShow?i.slice(s-(o.options.slidesToShow-n),s+n).addClass("slick-active").attr("aria-hidden","false"):i.slice(s,s+o.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false")),"ondemand"===o.options.lazyLoad&&o.lazyLoad()},e.prototype.setupInfinite=function(){var e,i,s,n=this;if(n.options.fade===!0&&(n.options.centerMode=!1),n.options.infinite===!0&&n.options.fade===!1&&(i=null,n.slideCount>n.options.slidesToShow)){for(s=n.options.centerMode===!0?n.options.slidesToShow+1:n.options.slidesToShow,e=n.slideCount;e>n.slideCount-s;e-=1)i=e-1,t(n.$slides[i]).clone(!0).attr("id","").attr("data-slick-index",i-n.slideCount).prependTo(n.$slideTrack).addClass("slick-cloned");for(e=0;e<s;e+=1)i=e,t(n.$slides[i]).clone(!0).attr("id","").attr("data-slick-index",i+n.slideCount).appendTo(n.$slideTrack).addClass("slick-cloned");n.$slideTrack.find(".slick-cloned").find("[id]").each(function(){t(this).attr("id","")})}},e.prototype.interrupt=function(t){var e=this;t||e.autoPlay(),e.interrupted=t},e.prototype.selectHandler=function(e){var i=this,s=t(e.target).is(".slick-slide")?t(e.target):t(e.target).parents(".slick-slide"),n=parseInt(s.attr("data-slick-index"));return n||(n=0),i.slideCount<=i.options.slidesToShow?(i.setSlideClasses(n),void i.asNavFor(n)):void i.slideHandler(n)},e.prototype.slideHandler=function(t,e,i){var s,n,o,r,a,l=null,c=this;if(e=e||!1,(c.animating!==!0||c.options.waitForAnimate!==!0)&&!(c.options.fade===!0&&c.currentSlide===t||c.slideCount<=c.options.slidesToShow))return e===!1&&c.asNavFor(t),s=t,l=c.getLeft(s),r=c.getLeft(c.currentSlide),c.currentLeft=null===c.swipeLeft?r:c.swipeLeft,c.options.infinite===!1&&c.options.centerMode===!1&&(t<0||t>c.getDotCount()*c.options.slidesToScroll)?void(c.options.fade===!1&&(s=c.currentSlide,i!==!0?c.animateSlide(r,function(){c.postSlide(s)}):c.postSlide(s))):c.options.infinite===!1&&c.options.centerMode===!0&&(t<0||t>c.slideCount-c.options.slidesToScroll)?void(c.options.fade===!1&&(s=c.currentSlide,i!==!0?c.animateSlide(r,function(){c.postSlide(s)}):c.postSlide(s))):(c.options.autoplay&&clearInterval(c.autoPlayTimer),n=s<0?c.slideCount%c.options.slidesToScroll!==0?c.slideCount-c.slideCount%c.options.slidesToScroll:c.slideCount+s:s>=c.slideCount?c.slideCount%c.options.slidesToScroll!==0?0:s-c.slideCount:s,c.animating=!0,c.$slider.trigger("beforeChange",[c,c.currentSlide,n]),o=c.currentSlide,c.currentSlide=n,c.setSlideClasses(c.currentSlide),c.options.asNavFor&&(a=c.getNavTarget(),a=a.slick("getSlick"),a.slideCount<=a.options.slidesToShow&&a.setSlideClasses(c.currentSlide)),c.updateDots(),c.updateArrows(),c.options.fade===!0?(i!==!0?(c.fadeSlideOut(o),c.fadeSlide(n,function(){c.postSlide(n)})):c.postSlide(n),void c.animateHeight()):void(i!==!0?c.animateSlide(l,function(){c.postSlide(n)}):c.postSlide(n)))},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,i,s,n=this;return t=n.touchObject.startX-n.touchObject.curX,e=n.touchObject.startY-n.touchObject.curY,i=Math.atan2(e,t),s=Math.round(180*i/Math.PI),s<0&&(s=360-Math.abs(s)),s<=45&&s>=0?n.options.rtl===!1?"left":"right":s<=360&&s>=315?n.options.rtl===!1?"left":"right":s>=135&&s<=225?n.options.rtl===!1?"right":"left":n.options.verticalSwiping===!0?s>=35&&s<=135?"down":"up":"vertical"},e.prototype.swipeEnd=function(t){var e,i,s=this;if(s.dragging=!1,s.interrupted=!1,s.shouldClick=!(s.touchObject.swipeLength>10),void 0===s.touchObject.curX)return!1;if(s.touchObject.edgeHit===!0&&s.$slider.trigger("edge",[s,s.swipeDirection()]),s.touchObject.swipeLength>=s.touchObject.minSwipe){switch(i=s.swipeDirection()){case"left":case"down":e=s.options.swipeToSlide?s.checkNavigable(s.currentSlide+s.getSlideCount()):s.currentSlide+s.getSlideCount(),s.currentDirection=0;break;case"right":case"up":e=s.options.swipeToSlide?s.checkNavigable(s.currentSlide-s.getSlideCount()):s.currentSlide-s.getSlideCount(),s.currentDirection=1}"vertical"!=i&&(s.slideHandler(e),s.touchObject={},s.$slider.trigger("swipe",[s,i]))}else s.touchObject.startX!==s.touchObject.curX&&(s.slideHandler(s.currentSlide),s.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&&t.type.indexOf("mouse")!==-1))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,i,s,n,o,r=this;return o=void 0!==t.originalEvent?t.originalEvent.touches:null,!(!r.dragging||o&&1!==o.length)&&(e=r.getLeft(r.currentSlide),r.touchObject.curX=void 0!==o?o[0].pageX:t.clientX,r.touchObject.curY=void 0!==o?o[0].pageY:t.clientY,r.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(r.touchObject.curX-r.touchObject.startX,2))),r.options.verticalSwiping===!0&&(r.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(r.touchObject.curY-r.touchObject.startY,2)))),i=r.swipeDirection(),"vertical"!==i?(void 0!==t.originalEvent&&r.touchObject.swipeLength>4&&t.preventDefault(),n=(r.options.rtl===!1?1:-1)*(r.touchObject.curX>r.touchObject.startX?1:-1),r.options.verticalSwiping===!0&&(n=r.touchObject.curY>r.touchObject.startY?1:-1),s=r.touchObject.swipeLength,r.touchObject.edgeHit=!1,r.options.infinite===!1&&(0===r.currentSlide&&"right"===i||r.currentSlide>=r.getDotCount()&&"left"===i)&&(s=r.touchObject.swipeLength*r.options.edgeFriction,r.touchObject.edgeHit=!0),r.options.vertical===!1?r.swipeLeft=e+s*n:r.swipeLeft=e+s*(r.$list.height()/r.listWidth)*n,r.options.verticalSwiping===!0&&(r.swipeLeft=e+s*n),r.options.fade!==!0&&r.options.touchMove!==!1&&(r.animating===!0?(r.swipeLeft=null,!1):void r.setCSS(r.swipeLeft))):void 0)},e.prototype.swipeStart=function(t){var e,i=this;return i.interrupted=!0,1!==i.touchObject.fingerCount||i.slideCount<=i.options.slidesToShow?(i.touchObject={},!1):(void 0!==t.originalEvent&&void 0!==t.originalEvent.touches&&(e=t.originalEvent.touches[0]),i.touchObject.startX=i.touchObject.curX=void 0!==e?e.pageX:t.clientX,i.touchObject.startY=i.touchObject.curY=void 0!==e?e.pageY:t.clientY,void(i.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;t.options.autoplay&&(document[t.hidden]?t.interrupted=!0:t.interrupted=!1)},t.fn.slick=function(){var t,i,s=this,n=arguments[0],o=Array.prototype.slice.call(arguments,1),r=s.length;for(t=0;t<r;t++)if("object"==typeof n||"undefined"==typeof n?s[t].slick=new e(s[t],n):i=s[t].slick[n].apply(s[t].slick,o),"undefined"!=typeof i)return i;return s}}),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t("object"==typeof exports?require("jquery"):jQuery)}(function(t,e){function i(){return new Date(Date.UTC.apply(Date,arguments))}function s(){var t=new Date;return i(t.getFullYear(),t.getMonth(),t.getDate())}function n(t,e){return t.getUTCFullYear()===e.getUTCFullYear()&&t.getUTCMonth()===e.getUTCMonth()&&t.getUTCDate()===e.getUTCDate()}function o(i,s){return function(){return s!==e&&t.fn.datepicker.deprecated(s),this[i].apply(this,arguments)}}function r(t){return t&&!isNaN(t.getTime())}function a(e,i){function s(t,e){return e.toLowerCase()}var n,o=t(e).data(),r={},a=new RegExp("^"+i.toLowerCase()+"([A-Z])");i=new RegExp("^"+i.toLowerCase());for(var l in o)i.test(l)&&(n=l.replace(a,s),r[n]=o[l]);return r}function l(e){var i={};if(m[e]||(e=e.split("-")[0],m[e])){var s=m[e];return t.each(g,function(t,e){e in s&&(i[e]=s[e])}),i}}var c=function(){var e={get:function(t){return this.slice(t)[0]},contains:function(t){for(var e=t&&t.valueOf(),i=0,s=this.length;i<s;i++)if(0<=this[i].valueOf()-e&&this[i].valueOf()-e<864e5)return i;return-1},remove:function(t){this.splice(t,1)},replace:function(t){t&&(Array.isArray(t)||(t=[t]),this.clear(),this.push.apply(this,t))},clear:function(){this.length=0},copy:function(){var t=new c;return t.replace(this),t}};return function(){var i=[];return i.push.apply(i,arguments),t.extend(i,e),i}}(),d=function(e,i){t.data(e,"datepicker",this),this._events=[],this._secondaryEvents=[],this._process_options(i),this.dates=new c,this.viewDate=this.o.defaultViewDate,this.focusDate=null,this.element=t(e),this.isInput=this.element.is("input"),this.inputField=this.isInput?this.element:this.element.find("input"),this.component=!!this.element.hasClass("date")&&this.element.find(".add-on, .input-group-addon, .input-group-append, .input-group-prepend, .btn"),this.component&&0===this.component.length&&(this.component=!1),null===this.o.isInline?this.isInline=!this.component&&!this.isInput:this.isInline=this.o.isInline,this.picker=t(v.template),this._check_template(this.o.templates.leftArrow)&&this.picker.find(".prev").html(this.o.templates.leftArrow),this._check_template(this.o.templates.rightArrow)&&this.picker.find(".next").html(this.o.templates.rightArrow),this._buildEvents(),this._attachEvents(),this.isInline?this.picker.addClass("datepicker-inline").appendTo(this.element):this.picker.addClass("datepicker-dropdown dropdown-menu"),this.o.rtl&&this.picker.addClass("datepicker-rtl"),this.o.calendarWeeks&&this.picker.find(".datepicker-days .datepicker-switch, thead .datepicker-title, tfoot .today, tfoot .clear").attr("colspan",function(t,e){return Number(e)+1}),this._process_options({startDate:this._o.startDate,endDate:this._o.endDate,daysOfWeekDisabled:this.o.daysOfWeekDisabled,daysOfWeekHighlighted:this.o.daysOfWeekHighlighted,datesDisabled:this.o.datesDisabled}),this._allow_update=!1,this.setViewMode(this.o.startView),this._allow_update=!0,this.fillDow(),this.fillMonths(),this.update(),this.isInline&&this.show()};d.prototype={constructor:d,_resolveViewName:function(e){return t.each(v.viewModes,function(i,s){if(e===i||t.inArray(e,s.names)!==-1)return e=i,!1}),e},_resolveDaysOfWeek:function(e){return Array.isArray(e)||(e=e.split(/[,\s]*/)),t.map(e,Number)},_check_template:function(i){try{if(i===e||""===i)return!1;if((i.match(/[<>]/g)||[]).length<=0)return!0;var s=t(i);return s.length>0}catch(n){return!1}},_process_options:function(e){this._o=t.extend({},this._o,e);var n=this.o=t.extend({},this._o),o=n.language;m[o]||(o=o.split("-")[0],m[o]||(o=f.language)),n.language=o,n.startView=this._resolveViewName(n.startView),n.minViewMode=this._resolveViewName(n.minViewMode),n.maxViewMode=this._resolveViewName(n.maxViewMode),n.startView=Math.max(this.o.minViewMode,Math.min(this.o.maxViewMode,n.startView)),n.multidate!==!0&&(n.multidate=Number(n.multidate)||!1,n.multidate!==!1&&(n.multidate=Math.max(0,n.multidate))),n.multidateSeparator=String(n.multidateSeparator),n.weekStart%=7,n.weekEnd=(n.weekStart+6)%7;var r=v.parseFormat(n.format);n.startDate!==-(1/0)&&(n.startDate?n.startDate instanceof Date?n.startDate=this._local_to_utc(this._zero_time(n.startDate)):n.startDate=v.parseDate(n.startDate,r,n.language,n.assumeNearbyYear):n.startDate=-(1/0)),n.endDate!==1/0&&(n.endDate?n.endDate instanceof Date?n.endDate=this._local_to_utc(this._zero_time(n.endDate)):n.endDate=v.parseDate(n.endDate,r,n.language,n.assumeNearbyYear):n.endDate=1/0),n.daysOfWeekDisabled=this._resolveDaysOfWeek(n.daysOfWeekDisabled||[]),n.daysOfWeekHighlighted=this._resolveDaysOfWeek(n.daysOfWeekHighlighted||[]),n.datesDisabled=n.datesDisabled||[],Array.isArray(n.datesDisabled)||(n.datesDisabled=n.datesDisabled.split(",")),n.datesDisabled=t.map(n.datesDisabled,function(t){return v.parseDate(t,r,n.language,n.assumeNearbyYear)});var a=String(n.orientation).toLowerCase().split(/\s+/g),l=n.orientation.toLowerCase();if(a=t.grep(a,function(t){return/^auto|left|right|top|bottom$/.test(t)}),n.orientation={x:"auto",y:"auto"},l&&"auto"!==l)if(1===a.length)switch(a[0]){case"top":case"bottom":n.orientation.y=a[0];break;case"left":case"right":n.orientation.x=a[0]}else l=t.grep(a,function(t){return/^left|right$/.test(t)}),n.orientation.x=l[0]||"auto",l=t.grep(a,function(t){return/^top|bottom$/.test(t)}),n.orientation.y=l[0]||"auto";else;if(n.defaultViewDate instanceof Date||"string"==typeof n.defaultViewDate)n.defaultViewDate=v.parseDate(n.defaultViewDate,r,n.language,n.assumeNearbyYear);else if(n.defaultViewDate){var c=n.defaultViewDate.year||(new Date).getFullYear(),d=n.defaultViewDate.month||0,h=n.defaultViewDate.day||1;n.defaultViewDate=i(c,d,h)}else n.defaultViewDate=s()},_applyEvents:function(t){for(var i,s,n,o=0;o<t.length;o++)i=t[o][0],2===t[o].length?(s=e,n=t[o][1]):3===t[o].length&&(s=t[o][1],n=t[o][2]),i.on(n,s)},_unapplyEvents:function(t){for(var i,s,n,o=0;o<t.length;o++)i=t[o][0],2===t[o].length?(n=e,s=t[o][1]):3===t[o].length&&(n=t[o][1],s=t[o][2]),i.off(s,n)},_buildEvents:function(){var e={keyup:t.proxy(function(e){t.inArray(e.keyCode,[27,37,39,38,40,32,13,9])===-1&&this.update()},this),keydown:t.proxy(this.keydown,this),paste:t.proxy(this.paste,this)};this.o.showOnFocus===!0&&(e.focus=t.proxy(this.show,this)),this.isInput?this._events=[[this.element,e]]:this.component&&this.inputField.length?this._events=[[this.inputField,e],[this.component,{click:t.proxy(this.show,this)}]]:this._events=[[this.element,{click:t.proxy(this.show,this),keydown:t.proxy(this.keydown,this)}]],this._events.push([this.element,"*",{blur:t.proxy(function(t){this._focused_from=t.target},this)}],[this.element,{blur:t.proxy(function(t){this._focused_from=t.target},this)}]),this.o.immediateUpdates&&this._events.push([this.element,{"changeYear changeMonth":t.proxy(function(t){this.update(t.date)},this)}]),this._secondaryEvents=[[this.picker,{click:t.proxy(this.click,this)}],[this.picker,".prev, .next",{click:t.proxy(this.navArrowsClick,this)}],[this.picker,".day:not(.disabled)",{click:t.proxy(this.dayCellClick,this)}],[t(window),{resize:t.proxy(this.place,this)}],[t(document),{"mousedown touchstart":t.proxy(function(t){this.element.is(t.target)||this.element.find(t.target).length||this.picker.is(t.target)||this.picker.find(t.target).length||this.isInline||this.hide()},this)}]]},_attachEvents:function(){this._detachEvents(),this._applyEvents(this._events)},_detachEvents:function(){this._unapplyEvents(this._events)},_attachSecondaryEvents:function(){this._detachSecondaryEvents(),this._applyEvents(this._secondaryEvents)},_detachSecondaryEvents:function(){this._unapplyEvents(this._secondaryEvents)},_trigger:function(e,i){var s=i||this.dates.get(-1),n=this._utc_to_local(s);this.element.trigger({type:e,date:n,viewMode:this.viewMode,dates:t.map(this.dates,this._utc_to_local),format:t.proxy(function(t,e){0===arguments.length?(t=this.dates.length-1,e=this.o.format):"string"==typeof t&&(e=t,t=this.dates.length-1),e=e||this.o.format;var i=this.dates.get(t);return v.formatDate(i,e,this.o.language)},this)})},show:function(){if(!(this.inputField.is(":disabled")||this.inputField.prop("readonly")&&this.o.enableOnReadonly===!1))return this.isInline||this.picker.appendTo(this.o.container),this.place(),this.picker.show(),this._attachSecondaryEvents(),this._trigger("show"),(window.navigator.msMaxTouchPoints||"ontouchstart"in document)&&this.o.disableTouchKeyboard&&t(this.element).blur(),this},hide:function(){return this.isInline||!this.picker.is(":visible")?this:(this.focusDate=null,this.picker.hide().detach(),this._detachSecondaryEvents(),this.setViewMode(this.o.startView),this.o.forceParse&&this.inputField.val()&&this.setValue(),this._trigger("hide"),this)},destroy:function(){return this.hide(),this._detachEvents(),this._detachSecondaryEvents(),this.picker.remove(),delete this.element.data().datepicker,this.isInput||delete this.element.data().date,this},paste:function(e){var i;if(e.originalEvent.clipboardData&&e.originalEvent.clipboardData.types&&t.inArray("text/plain",e.originalEvent.clipboardData.types)!==-1)i=e.originalEvent.clipboardData.getData("text/plain");else{if(!window.clipboardData)return;i=window.clipboardData.getData("Text")}this.setDate(i),this.update(),e.preventDefault()},_utc_to_local:function(t){if(!t)return t;var e=new Date(t.getTime()+6e4*t.getTimezoneOffset());return e.getTimezoneOffset()!==t.getTimezoneOffset()&&(e=new Date(t.getTime()+6e4*e.getTimezoneOffset())),e},_local_to_utc:function(t){return t&&new Date(t.getTime()-6e4*t.getTimezoneOffset())},_zero_time:function(t){return t&&new Date(t.getFullYear(),t.getMonth(),t.getDate())},_zero_utc_time:function(t){return t&&i(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate())},getDates:function(){return t.map(this.dates,this._utc_to_local)},getUTCDates:function(){return t.map(this.dates,function(t){return new Date(t)})},getDate:function(){return this._utc_to_local(this.getUTCDate())},getUTCDate:function(){var t=this.dates.get(-1);return t!==e?new Date(t):null},clearDates:function(){this.inputField.val(""),this._trigger("changeDate"),this.update(),this.o.autoclose&&this.hide()},setDates:function(){var t=Array.isArray(arguments[0])?arguments[0]:arguments;return this.update.apply(this,t),this._trigger("changeDate"),this.setValue(),this},setUTCDates:function(){var e=Array.isArray(arguments[0])?arguments[0]:arguments;return this.setDates.apply(this,t.map(e,this._utc_to_local)),this},setDate:o("setDates"),setUTCDate:o("setUTCDates"),remove:o("destroy","Method `remove` is deprecated and will be removed in version 2.0. Use `destroy` instead"),setValue:function(){var t=this.getFormattedDate();return this.inputField.val(t),this},getFormattedDate:function(i){i===e&&(i=this.o.format);var s=this.o.language;return t.map(this.dates,function(t){return v.formatDate(t,i,s)}).join(this.o.multidateSeparator)},getStartDate:function(){return this.o.startDate},setStartDate:function(t){return this._process_options({startDate:t}),this.update(),this.updateNavArrows(),this},getEndDate:function(){return this.o.endDate},setEndDate:function(t){return this._process_options({endDate:t}),this.update(),this.updateNavArrows(),this},setDaysOfWeekDisabled:function(t){return this._process_options({daysOfWeekDisabled:t}),this.update(),this},setDaysOfWeekHighlighted:function(t){return this._process_options({daysOfWeekHighlighted:t}),this.update(),this},setDatesDisabled:function(t){return this._process_options({datesDisabled:t}),this.update(),this},place:function(){if(this.isInline)return this;var e=this.picker.outerWidth(),i=this.picker.outerHeight(),s=10,n=t(this.o.container),o=n.width(),r="body"===this.o.container?t(document).scrollTop():n.scrollTop(),a=n.offset(),l=[0];this.element.parents().each(function(){var e=t(this).css("z-index");"auto"!==e&&0!==Number(e)&&l.push(Number(e))});var c=Math.max.apply(Math,l)+this.o.zIndexOffset,d=this.component?this.component.parent().offset():this.element.offset(),h=this.component?this.component.outerHeight(!0):this.element.outerHeight(!1),p=this.component?this.component.outerWidth(!0):this.element.outerWidth(!1),u=d.left-a.left,f=d.top-a.top;"body"!==this.o.container&&(f+=r),this.picker.removeClass("datepicker-orient-top datepicker-orient-bottom datepicker-orient-right datepicker-orient-left"),"auto"!==this.o.orientation.x?(this.picker.addClass("datepicker-orient-"+this.o.orientation.x),"right"===this.o.orientation.x&&(u-=e-p)):d.left<0?(this.picker.addClass("datepicker-orient-left"),u-=d.left-s):u+e>o?(this.picker.addClass("datepicker-orient-right"),u+=p-e):this.o.rtl?this.picker.addClass("datepicker-orient-right"):this.picker.addClass("datepicker-orient-left");var g,m=this.o.orientation.y;if("auto"===m&&(g=-r+f-i,m=g<0?"bottom":"top"),this.picker.addClass("datepicker-orient-"+m),"top"===m?f-=i+parseInt(this.picker.css("padding-top")):f+=h,this.o.rtl){var v=o-(u+p);this.picker.css({top:f,right:v,zIndex:c})}else this.picker.css({top:f,left:u,zIndex:c});return this},_allow_update:!0,update:function(){if(!this._allow_update)return this;var e=this.dates.copy(),i=[],s=!1;return arguments.length?(t.each(arguments,t.proxy(function(t,e){e instanceof Date&&(e=this._local_to_utc(e)),i.push(e)},this)),s=!0):(i=this.isInput?this.element.val():this.element.data("date")||this.inputField.val(),i=i&&this.o.multidate?i.split(this.o.multidateSeparator):[i],delete this.element.data().date),i=t.map(i,t.proxy(function(t){return v.parseDate(t,this.o.format,this.o.language,this.o.assumeNearbyYear)},this)),i=t.grep(i,t.proxy(function(t){return!this.dateWithinRange(t)||!t},this),!0),this.dates.replace(i),this.o.updateViewDate&&(this.dates.length?this.viewDate=new Date(this.dates.get(-1)):this.viewDate<this.o.startDate?this.viewDate=new Date(this.o.startDate):this.viewDate>this.o.endDate?this.viewDate=new Date(this.o.endDate):this.viewDate=this.o.defaultViewDate),s?(this.setValue(),this.element.change()):this.dates.length&&String(e)!==String(this.dates)&&s&&(this._trigger("changeDate"),this.element.change()),!this.dates.length&&e.length&&(this._trigger("clearDate"),this.element.change()),this.fill(),this},fillDow:function(){if(this.o.showWeekDays){var e=this.o.weekStart,i="<tr>";for(this.o.calendarWeeks&&(i+='<th class="cw">&#160;</th>');e<this.o.weekStart+7;)i+='<th class="dow',t.inArray(e,this.o.daysOfWeekDisabled)!==-1&&(i+=" disabled"),i+='">'+m[this.o.language].daysMin[e++%7]+"</th>";i+="</tr>",this.picker.find(".datepicker-days thead").append(i)}},fillMonths:function(){for(var t,e=this._utc_to_local(this.viewDate),i="",s=0;s<12;s++)t=e&&e.getMonth()===s?" focused":"",i+='<span class="month'+t+'">'+m[this.o.language].monthsShort[s]+"</span>";this.picker.find(".datepicker-months td").html(i)},setRange:function(e){e&&e.length?this.range=t.map(e,function(t){return t.valueOf()}):delete this.range,this.fill()},getClassNames:function(e){var i=[],o=this.viewDate.getUTCFullYear(),r=this.viewDate.getUTCMonth(),a=s();return e.getUTCFullYear()<o||e.getUTCFullYear()===o&&e.getUTCMonth()<r?i.push("old"):(e.getUTCFullYear()>o||e.getUTCFullYear()===o&&e.getUTCMonth()>r)&&i.push("new"),this.focusDate&&e.valueOf()===this.focusDate.valueOf()&&i.push("focused"),this.o.todayHighlight&&n(e,a)&&i.push("today"),this.dates.contains(e)!==-1&&i.push("active"),this.dateWithinRange(e)||i.push("disabled"),this.dateIsDisabled(e)&&i.push("disabled","disabled-date"),t.inArray(e.getUTCDay(),this.o.daysOfWeekHighlighted)!==-1&&i.push("highlighted"),this.range&&(e>this.range[0]&&e<this.range[this.range.length-1]&&i.push("range"),t.inArray(e.valueOf(),this.range)!==-1&&i.push("selected"),e.valueOf()===this.range[0]&&i.push("range-start"),e.valueOf()===this.range[this.range.length-1]&&i.push("range-end")),i},_fill_yearsView:function(i,s,n,o,r,a,l){for(var c,d,h,p="",u=n/10,f=this.picker.find(i),g=Math.floor(o/n)*n,m=g+9*u,v=Math.floor(this.viewDate.getFullYear()/u)*u,y=t.map(this.dates,function(t){return Math.floor(t.getUTCFullYear()/u)*u}),w=g-u;w<=m+u;w+=u)c=[s],d=null,w===g-u?c.push("old"):w===m+u&&c.push("new"),t.inArray(w,y)!==-1&&c.push("active"),(w<r||w>a)&&c.push("disabled"),w===v&&c.push("focused"),l!==t.noop&&(h=l(new Date(w,0,1)),h===e?h={}:"boolean"==typeof h?h={enabled:h}:"string"==typeof h&&(h={classes:h}),h.enabled===!1&&c.push("disabled"),h.classes&&(c=c.concat(h.classes.split(/\s+/))),h.tooltip&&(d=h.tooltip)),p+='<span class="'+c.join(" ")+'"'+(d?' title="'+d+'"':"")+">"+w+"</span>";f.find(".datepicker-switch").text(g+"-"+m),f.find("td").html(p)},fill:function(){var n,o,r=new Date(this.viewDate),a=r.getUTCFullYear(),l=r.getUTCMonth(),c=this.o.startDate!==-(1/0)?this.o.startDate.getUTCFullYear():-(1/0),d=this.o.startDate!==-(1/0)?this.o.startDate.getUTCMonth():-(1/0),h=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,p=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,u=m[this.o.language].today||m.en.today||"",f=m[this.o.language].clear||m.en.clear||"",g=m[this.o.language].titleFormat||m.en.titleFormat,y=s(),w=(this.o.todayBtn===!0||"linked"===this.o.todayBtn)&&y>=this.o.startDate&&y<=this.o.endDate&&!this.weekOfDateIsDisabled(y);if(!isNaN(a)&&!isNaN(l)){this.picker.find(".datepicker-days .datepicker-switch").text(v.formatDate(r,g,this.o.language)),this.picker.find("tfoot .today").text(u).css("display",w?"table-cell":"none"),this.picker.find("tfoot .clear").text(f).css("display",this.o.clearBtn===!0?"table-cell":"none"),this.picker.find("thead .datepicker-title").text(this.o.title).css("display","string"==typeof this.o.title&&""!==this.o.title?"table-cell":"none"),this.updateNavArrows(),this.fillMonths();var b=i(a,l,0),_=b.getUTCDate();b.setUTCDate(_-(b.getUTCDay()-this.o.weekStart+7)%7);var k=new Date(b);b.getUTCFullYear()<100&&k.setUTCFullYear(b.getUTCFullYear()),k.setUTCDate(k.getUTCDate()+42),k=k.valueOf();for(var T,x,C=[];b.valueOf()<k;){if(T=b.getUTCDay(),T===this.o.weekStart&&(C.push("<tr>"),this.o.calendarWeeks)){var S=new Date(+b+(this.o.weekStart-T-7)%7*864e5),$=new Date(Number(S)+(11-S.getUTCDay())%7*864e5),A=new Date(Number(A=i($.getUTCFullYear(),0,1))+(11-A.getUTCDay())%7*864e5),D=($-A)/864e5/7+1;C.push('<td class="cw">'+D+"</td>")}x=this.getClassNames(b),x.push("day");var M=b.getUTCDate();this.o.beforeShowDay!==t.noop&&(o=this.o.beforeShowDay(this._utc_to_local(b)),o===e?o={}:"boolean"==typeof o?o={enabled:o}:"string"==typeof o&&(o={classes:o}),o.enabled===!1&&x.push("disabled"),o.classes&&(x=x.concat(o.classes.split(/\s+/))),o.tooltip&&(n=o.tooltip),o.content&&(M=o.content)),x="function"==typeof t.uniqueSort?t.uniqueSort(x):t.unique(x),C.push('<td class="'+x.join(" ")+'"'+(n?' title="'+n+'"':"")+' data-date="'+b.getTime().toString()+'">'+M+"</td>"),n=null,T===this.o.weekEnd&&C.push("</tr>"),b.setUTCDate(b.getUTCDate()+1)}this.picker.find(".datepicker-days tbody").html(C.join(""));var E=m[this.o.language].monthsTitle||m.en.monthsTitle||"Months",P=this.picker.find(".datepicker-months").find(".datepicker-switch").text(this.o.maxViewMode<2?E:a).end().find("tbody span").removeClass("active");if(t.each(this.dates,function(t,e){e.getUTCFullYear()===a&&P.eq(e.getUTCMonth()).addClass("active")}),(a<c||a>h)&&P.addClass("disabled"),a===c&&P.slice(0,d).addClass("disabled"),a===h&&P.slice(p+1).addClass("disabled"),this.o.beforeShowMonth!==t.noop){var O=this;t.each(P,function(i,s){var n=new Date(a,i,1),o=O.o.beforeShowMonth(n);o===e?o={}:"boolean"==typeof o?o={enabled:o}:"string"==typeof o&&(o={classes:o}),o.enabled!==!1||t(s).hasClass("disabled")||t(s).addClass("disabled"),o.classes&&t(s).addClass(o.classes),o.tooltip&&t(s).prop("title",o.tooltip)})}this._fill_yearsView(".datepicker-years","year",10,a,c,h,this.o.beforeShowYear),this._fill_yearsView(".datepicker-decades","decade",100,a,c,h,this.o.beforeShowDecade),this._fill_yearsView(".datepicker-centuries","century",1e3,a,c,h,this.o.beforeShowCentury)}},updateNavArrows:function(){if(this._allow_update){var t,e,i=new Date(this.viewDate),s=i.getUTCFullYear(),n=i.getUTCMonth(),o=this.o.startDate!==-(1/0)?this.o.startDate.getUTCFullYear():-(1/0),r=this.o.startDate!==-(1/0)?this.o.startDate.getUTCMonth():-(1/0),a=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,l=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,c=1;switch(this.viewMode){case 4:c*=10;case 3:c*=10;case 2:c*=10;case 1:t=Math.floor(s/c)*c<=o,e=Math.floor(s/c)*c+c>a;break;case 0:t=s<=o&&n<=r,e=s>=a&&n>=l}this.picker.find(".prev").toggleClass("disabled",t),this.picker.find(".next").toggleClass("disabled",e)}},click:function(e){e.preventDefault(),e.stopPropagation();var n,o,r,a;n=t(e.target),n.hasClass("datepicker-switch")&&this.viewMode!==this.o.maxViewMode&&this.setViewMode(this.viewMode+1),n.hasClass("today")&&!n.hasClass("day")&&(this.setViewMode(0),this._setDate(s(),"linked"===this.o.todayBtn?null:"view")),n.hasClass("clear")&&this.clearDates(),n.hasClass("disabled")||(n.hasClass("month")||n.hasClass("year")||n.hasClass("decade")||n.hasClass("century"))&&(this.viewDate.setUTCDate(1),o=1,1===this.viewMode?(a=n.parent().find("span").index(n),r=this.viewDate.getUTCFullYear(),this.viewDate.setUTCMonth(a)):(a=0,r=Number(n.text()),this.viewDate.setUTCFullYear(r)),this._trigger(v.viewModes[this.viewMode-1].e,this.viewDate),this.viewMode===this.o.minViewMode?this._setDate(i(r,a,o)):(this.setViewMode(this.viewMode-1),this.fill())),this.picker.is(":visible")&&this._focused_from&&this._focused_from.focus(),delete this._focused_from},dayCellClick:function(e){var i=t(e.currentTarget),s=i.data("date"),n=new Date(s);this.o.updateViewDate&&(n.getUTCFullYear()!==this.viewDate.getUTCFullYear()&&this._trigger("changeYear",this.viewDate),n.getUTCMonth()!==this.viewDate.getUTCMonth()&&this._trigger("changeMonth",this.viewDate)),this._setDate(n)},navArrowsClick:function(e){var i=t(e.currentTarget),s=i.hasClass("prev")?-1:1;0!==this.viewMode&&(s*=12*v.viewModes[this.viewMode].navStep),this.viewDate=this.moveMonth(this.viewDate,s),this._trigger(v.viewModes[this.viewMode].e,this.viewDate),this.fill()},_toggle_multidate:function(t){var e=this.dates.contains(t);if(t||this.dates.clear(),e!==-1?(this.o.multidate===!0||this.o.multidate>1||this.o.toggleActive)&&this.dates.remove(e):this.o.multidate===!1?(this.dates.clear(),this.dates.push(t)):this.dates.push(t),"number"==typeof this.o.multidate)for(;this.dates.length>this.o.multidate;)this.dates.remove(0)},_setDate:function(t,e){e&&"date"!==e||this._toggle_multidate(t&&new Date(t)),(!e&&this.o.updateViewDate||"view"===e)&&(this.viewDate=t&&new Date(t)),this.fill(),this.setValue(),e&&"view"===e||this._trigger("changeDate"),this.inputField.trigger("change"),!this.o.autoclose||e&&"date"!==e||this.hide()},moveDay:function(t,e){var i=new Date(t);return i.setUTCDate(t.getUTCDate()+e),i},moveWeek:function(t,e){return this.moveDay(t,7*e)},moveMonth:function(t,e){if(!r(t))return this.o.defaultViewDate;if(!e)return t;var i,s,n=new Date(t.valueOf()),o=n.getUTCDate(),a=n.getUTCMonth(),l=Math.abs(e);if(e=e>0?1:-1,1===l)s=e===-1?function(){return n.getUTCMonth()===a}:function(){return n.getUTCMonth()!==i},i=a+e,n.setUTCMonth(i),i=(i+12)%12;else{for(var c=0;c<l;c++)n=this.moveMonth(n,e);i=n.getUTCMonth(),n.setUTCDate(o),s=function(){return i!==n.getUTCMonth()}}for(;s();)n.setUTCDate(--o),n.setUTCMonth(i);return n},moveYear:function(t,e){return this.moveMonth(t,12*e)},moveAvailableDate:function(t,e,i){do{if(t=this[i](t,e),!this.dateWithinRange(t))return!1;i="moveDay"}while(this.dateIsDisabled(t));return t},weekOfDateIsDisabled:function(e){return t.inArray(e.getUTCDay(),this.o.daysOfWeekDisabled)!==-1},dateIsDisabled:function(e){return this.weekOfDateIsDisabled(e)||t.grep(this.o.datesDisabled,function(t){return n(e,t)}).length>0},dateWithinRange:function(t){return t>=this.o.startDate&&t<=this.o.endDate},keydown:function(t){if(!this.picker.is(":visible"))return void(40!==t.keyCode&&27!==t.keyCode||(this.show(),t.stopPropagation()));var e,i,s=!1,n=this.focusDate||this.viewDate;switch(t.keyCode){case 27:this.focusDate?(this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill()):this.hide(),t.preventDefault(),t.stopPropagation();break;case 37:case 38:case 39:case 40:if(!this.o.keyboardNavigation||7===this.o.daysOfWeekDisabled.length)break;e=37===t.keyCode||38===t.keyCode?-1:1,0===this.viewMode?t.ctrlKey?(i=this.moveAvailableDate(n,e,"moveYear"),i&&this._trigger("changeYear",this.viewDate)):t.shiftKey?(i=this.moveAvailableDate(n,e,"moveMonth"),i&&this._trigger("changeMonth",this.viewDate)):37===t.keyCode||39===t.keyCode?i=this.moveAvailableDate(n,e,"moveDay"):this.weekOfDateIsDisabled(n)||(i=this.moveAvailableDate(n,e,"moveWeek")):1===this.viewMode?(38!==t.keyCode&&40!==t.keyCode||(e=4*e),i=this.moveAvailableDate(n,e,"moveMonth")):2===this.viewMode&&(38!==t.keyCode&&40!==t.keyCode||(e=4*e),i=this.moveAvailableDate(n,e,"moveYear")),i&&(this.focusDate=this.viewDate=i,this.setValue(),this.fill(),t.preventDefault());break;case 13:if(!this.o.forceParse)break;n=this.focusDate||this.dates.get(-1)||this.viewDate,this.o.keyboardNavigation&&(this._toggle_multidate(n),s=!0),this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.setValue(),this.fill(),this.picker.is(":visible")&&(t.preventDefault(),t.stopPropagation(),this.o.autoclose&&this.hide());break;case 9:this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill(),this.hide()}s&&(this.dates.length?this._trigger("changeDate"):this._trigger("clearDate"),this.inputField.trigger("change"))},setViewMode:function(t){this.viewMode=t,this.picker.children("div").hide().filter(".datepicker-"+v.viewModes[this.viewMode].clsName).show(),this.updateNavArrows(),this._trigger("changeViewMode",new Date(this.viewDate))}};var h=function(e,i){t.data(e,"datepicker",this),this.element=t(e),this.inputs=t.map(i.inputs,function(t){return t.jquery?t[0]:t}),delete i.inputs,this.keepEmptyValues=i.keepEmptyValues,delete i.keepEmptyValues,u.call(t(this.inputs),i).on("changeDate",t.proxy(this.dateUpdated,this)),this.pickers=t.map(this.inputs,function(e){return t.data(e,"datepicker")}),this.updateDates()};h.prototype={updateDates:function(){this.dates=t.map(this.pickers,function(t){return t.getUTCDate()}),this.updateRanges()},updateRanges:function(){var e=t.map(this.dates,function(t){return t.valueOf()});t.each(this.pickers,function(t,i){i.setRange(e)})},clearDates:function(){t.each(this.pickers,function(t,e){e.clearDates()})},dateUpdated:function(i){if(!this.updating){this.updating=!0;var s=t.data(i.target,"datepicker");if(s!==e){var n=s.getUTCDate(),o=this.keepEmptyValues,r=t.inArray(i.target,this.inputs),a=r-1,l=r+1,c=this.inputs.length;if(r!==-1){if(t.each(this.pickers,function(t,e){e.getUTCDate()||e!==s&&o||e.setUTCDate(n)}),n<this.dates[a])for(;a>=0&&n<this.dates[a]&&(this.pickers[a].element.val()||"").length>0;)this.pickers[a--].setUTCDate(n);else if(n>this.dates[l])for(;l<c&&n>this.dates[l]&&(this.pickers[l].element.val()||"").length>0;)this.pickers[l++].setUTCDate(n);this.updateDates(),delete this.updating}}}},destroy:function(){t.map(this.pickers,function(t){t.destroy()}),t(this.inputs).off("changeDate",this.dateUpdated),delete this.element.data().datepicker},remove:o("destroy","Method `remove` is deprecated and will be removed in version 2.0. Use `destroy` instead")};var p=t.fn.datepicker,u=function(i){var s=Array.apply(null,arguments);s.shift();var n;if(this.each(function(){var e=t(this),o=e.data("datepicker"),r="object"==typeof i&&i;if(!o){var c=a(this,"date"),p=t.extend({},f,c,r),u=l(p.language),g=t.extend({},f,u,c,r);e.hasClass("input-daterange")||g.inputs?(t.extend(g,{inputs:g.inputs||e.find("input").toArray()}),o=new h(this,g)):o=new d(this,g),e.data("datepicker",o)}"string"==typeof i&&"function"==typeof o[i]&&(n=o[i].apply(o,s))}),n===e||n instanceof d||n instanceof h)return this;if(this.length>1)throw new Error("Using only allowed for the collection of a single element ("+i+" function)");return n};t.fn.datepicker=u;var f=t.fn.datepicker.defaults={assumeNearbyYear:!1,autoclose:!1,beforeShowDay:t.noop,beforeShowMonth:t.noop,beforeShowYear:t.noop,beforeShowDecade:t.noop,beforeShowCentury:t.noop,calendarWeeks:!1,clearBtn:!1,toggleActive:!1,daysOfWeekDisabled:[],daysOfWeekHighlighted:[],datesDisabled:[],endDate:1/0,forceParse:!0,format:"mm/dd/yyyy",isInline:null,keepEmptyValues:!1,keyboardNavigation:!0,language:"en",minViewMode:0,maxViewMode:4,multidate:!1,multidateSeparator:",",orientation:"auto",rtl:!1,startDate:-(1/0),startView:0,todayBtn:!1,todayHighlight:!1,updateViewDate:!0,weekStart:0,disableTouchKeyboard:!1,enableOnReadonly:!0,showOnFocus:!0,zIndexOffset:10,container:"body",immediateUpdates:!1,title:"",templates:{leftArrow:"&#x00AB;",rightArrow:"&#x00BB;"},showWeekDays:!0},g=t.fn.datepicker.locale_opts=["format","rtl","weekStart"];t.fn.datepicker.Constructor=d;var m=t.fn.datepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear",titleFormat:"MM yyyy"}},v={viewModes:[{names:["days","month"],clsName:"days",e:"changeMonth"},{names:["months","year"],clsName:"months",e:"changeYear",navStep:1},{names:["years","decade"],clsName:"years",e:"changeDecade",navStep:10},{names:["decades","century"],clsName:"decades",e:"changeCentury",navStep:100},{names:["centuries","millennium"],clsName:"centuries",e:"changeMillennium",navStep:1e3}],validParts:/dd?|DD?|mm?|MM?|yy(?:yy)?/g,nonpunctuation:/[^ -\/:-@\u5e74\u6708\u65e5\[-`{-~\t\n\r]+/g,parseFormat:function(t){if("function"==typeof t.toValue&&"function"==typeof t.toDisplay)return t;var e=t.replace(this.validParts,"\0").split("\0"),i=t.match(this.validParts);
if(!e||!e.length||!i||0===i.length)throw new Error("Invalid date format.");return{separators:e,parts:i}},parseDate:function(i,n,o,r){function a(t,e){return e===!0&&(e=10),t<100&&(t+=2e3,t>(new Date).getFullYear()+e&&(t-=100)),t}function l(){var t=this.slice(0,c[u].length),e=c[u].slice(0,t.length);return t.toLowerCase()===e.toLowerCase()}if(!i)return e;if(i instanceof Date)return i;if("string"==typeof n&&(n=v.parseFormat(n)),n.toValue)return n.toValue(i,n,o);var c,h,p,u,f,g={d:"moveDay",m:"moveMonth",w:"moveWeek",y:"moveYear"},y={yesterday:"-1d",today:"+0d",tomorrow:"+1d"};if(i in y&&(i=y[i]),/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/i.test(i)){for(c=i.match(/([\-+]\d+)([dmwy])/gi),i=new Date,u=0;u<c.length;u++)h=c[u].match(/([\-+]\d+)([dmwy])/i),p=Number(h[1]),f=g[h[2].toLowerCase()],i=d.prototype[f](i,p);return d.prototype._zero_utc_time(i)}c=i&&i.match(this.nonpunctuation)||[];var w,b,_={},k=["yyyy","yy","M","MM","m","mm","d","dd"],T={yyyy:function(t,e){return t.setUTCFullYear(r?a(e,r):e)},m:function(t,e){if(isNaN(t))return t;for(e-=1;e<0;)e+=12;for(e%=12,t.setUTCMonth(e);t.getUTCMonth()!==e;)t.setUTCDate(t.getUTCDate()-1);return t},d:function(t,e){return t.setUTCDate(e)}};T.yy=T.yyyy,T.M=T.MM=T.mm=T.m,T.dd=T.d,i=s();var x=n.parts.slice();if(c.length!==x.length&&(x=t(x).filter(function(e,i){return t.inArray(i,k)!==-1}).toArray()),c.length===x.length){var C;for(u=0,C=x.length;u<C;u++){if(w=parseInt(c[u],10),h=x[u],isNaN(w))switch(h){case"MM":b=t(m[o].months).filter(l),w=t.inArray(b[0],m[o].months)+1;break;case"M":b=t(m[o].monthsShort).filter(l),w=t.inArray(b[0],m[o].monthsShort)+1}_[h]=w}var S,$;for(u=0;u<k.length;u++)$=k[u],$ in _&&!isNaN(_[$])&&(S=new Date(i),T[$](S,_[$]),isNaN(S)||(i=S))}return i},formatDate:function(e,i,s){if(!e)return"";if("string"==typeof i&&(i=v.parseFormat(i)),i.toDisplay)return i.toDisplay(e,i,s);var n={d:e.getUTCDate(),D:m[s].daysShort[e.getUTCDay()],DD:m[s].days[e.getUTCDay()],m:e.getUTCMonth()+1,M:m[s].monthsShort[e.getUTCMonth()],MM:m[s].months[e.getUTCMonth()],yy:e.getUTCFullYear().toString().substring(2),yyyy:e.getUTCFullYear()};n.dd=(n.d<10?"0":"")+n.d,n.mm=(n.m<10?"0":"")+n.m,e=[];for(var o=t.extend([],i.separators),r=0,a=i.parts.length;r<=a;r++)o.length&&e.push(o.shift()),e.push(n[i.parts[r]]);return e.join("")},headTemplate:'<thead><tr><th colspan="7" class="datepicker-title"></th></tr><tr><th class="prev">'+f.templates.leftArrow+'</th><th colspan="5" class="datepicker-switch"></th><th class="next">'+f.templates.rightArrow+"</th></tr></thead>",contTemplate:'<tbody><tr><td colspan="7"></td></tr></tbody>',footTemplate:'<tfoot><tr><th colspan="7" class="today"></th></tr><tr><th colspan="7" class="clear"></th></tr></tfoot>'};v.template='<div class="datepicker"><div class="datepicker-days"><table class="table-condensed">'+v.headTemplate+"<tbody></tbody>"+v.footTemplate+'</table></div><div class="datepicker-months"><table class="table-condensed">'+v.headTemplate+v.contTemplate+v.footTemplate+'</table></div><div class="datepicker-years"><table class="table-condensed">'+v.headTemplate+v.contTemplate+v.footTemplate+'</table></div><div class="datepicker-decades"><table class="table-condensed">'+v.headTemplate+v.contTemplate+v.footTemplate+'</table></div><div class="datepicker-centuries"><table class="table-condensed">'+v.headTemplate+v.contTemplate+v.footTemplate+"</table></div></div>",t.fn.datepicker.DPGlobal=v,t.fn.datepicker.noConflict=function(){return t.fn.datepicker=p,this},t.fn.datepicker.version="1.10.0",t.fn.datepicker.deprecated=function(t){var e=window.console;e&&e.warn&&e.warn("DEPRECATED: "+t)},t(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',function(e){var i=t(this);i.data("datepicker")||(e.preventDefault(),u.call(i,"show"))}),t(function(){u.call(t('[data-provide="datepicker-inline"]'))})}),"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]>3)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(jQuery),+function(t){"use strict";function e(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var i in e)if(void 0!==t.style[i])return{end:e[i]};return!1}t.fn.emulateTransitionEnd=function(e){var i=!1,s=this;t(this).one("bsTransitionEnd",function(){i=!0});var n=function(){i||t(s).trigger(t.support.transition.end)};return setTimeout(n,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){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}})})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var i=t(this),n=i.data("bs.alert");n||i.data("bs.alert",n=new s(this)),"string"==typeof e&&n[e].call(i)})}var i='[data-dismiss="alert"]',s=function(e){t(e).on("click",i,this.close)};s.VERSION="3.4.1",s.TRANSITION_DURATION=150,s.prototype.close=function(e){function i(){r.detach().trigger("closed.bs.alert").remove()}var n=t(this),o=n.attr("data-target");o||(o=n.attr("href"),o=o&&o.replace(/.*(?=#[^\s]*$)/,"")),o="#"===o?[]:o;var r=t(document).find(o);e&&e.preventDefault(),r.length||(r=n.closest(".alert")),r.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(r.removeClass("in"),t.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",i).emulateTransitionEnd(s.TRANSITION_DURATION):i())};var n=t.fn.alert;t.fn.alert=e,t.fn.alert.Constructor=s,t.fn.alert.noConflict=function(){return t.fn.alert=n,this},t(document).on("click.bs.alert.data-api",i,s.prototype.close)}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var s=t(this),n=s.data("bs.button"),o="object"==typeof e&&e;n||s.data("bs.button",n=new i(this,o)),"toggle"==e?n.toggle():e&&n.setState(e)})}var i=function(e,s){this.$element=t(e),this.options=t.extend({},i.DEFAULTS,s),this.isLoading=!1};i.VERSION="3.4.1",i.DEFAULTS={loadingText:"loading..."},i.prototype.setState=function(e){var i="disabled",s=this.$element,n=s.is("input")?"val":"html",o=s.data();e+="Text",null==o.resetText&&s.data("resetText",s[n]()),setTimeout(t.proxy(function(){s[n](null==o[e]?this.options[e]:o[e]),"loadingText"==e?(this.isLoading=!0,s.addClass(i).attr(i,i).prop(i,!0)):this.isLoading&&(this.isLoading=!1,s.removeClass(i).removeAttr(i).prop(i,!1))},this),0)},i.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var i=this.$element.find("input");"radio"==i.prop("type")?(i.prop("checked")&&(t=!1),e.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==i.prop("type")&&(i.prop("checked")!==this.$element.hasClass("active")&&(t=!1),this.$element.toggleClass("active")),i.prop("checked",this.$element.hasClass("active")),t&&i.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var s=t.fn.button;t.fn.button=e,t.fn.button.Constructor=i,t.fn.button.noConflict=function(){return t.fn.button=s,this},t(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(i){var s=t(i.target).closest(".btn");e.call(s,"toggle"),t(i.target).is('input[type="radio"], input[type="checkbox"]')||(i.preventDefault(),s.is("input,button")?s.trigger("focus"):s.find("input:visible,button:visible").first().trigger("focus"))}).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 s=t(this),n=s.data("bs.carousel"),o=t.extend({},i.DEFAULTS,s.data(),"object"==typeof e&&e),r="string"==typeof e?e:o.slide;n||s.data("bs.carousel",n=new i(this,o)),"number"==typeof e?n.to(e):r?n[r]():o.interval&&n.pause().cycle()})}var i=function(e,i){this.$element=t(e),this.$indicators=this.$element.find(".carousel-indicators"),this.options=i,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",t.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",t.proxy(this.pause,this)).on("mouseleave.bs.carousel",t.proxy(this.cycle,this))};i.VERSION="3.4.1",i.TRANSITION_DURATION=600,i.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},i.prototype.keydown=function(t){if(!/input|textarea/i.test(t.target.tagName)){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()}},i.prototype.cycle=function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(t.proxy(this.next,this),this.options.interval)),this},i.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},i.prototype.getItemForDirection=function(t,e){var i=this.getItemIndex(e),s="prev"==t&&0===i||"next"==t&&i==this.$items.length-1;if(s&&!this.options.wrap)return e;var n="prev"==t?-1:1,o=(i+n)%this.$items.length;return this.$items.eq(o)},i.prototype.to=function(t){var e=this,i=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(t>this.$items.length-1||t<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(t)}):i==t?this.pause().cycle():this.slide(t>i?"next":"prev",this.$items.eq(t))},i.prototype.pause=function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&t.support.transition&&(this.$element.trigger(t.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},i.prototype.next=function(){if(!this.sliding)return this.slide("next")},i.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},i.prototype.slide=function(e,s){var n=this.$element.find(".item.active"),o=s||this.getItemForDirection(e,n),r=this.interval,a="next"==e?"left":"right",l=this;if(o.hasClass("active"))return this.sliding=!1;var c=o[0],d=t.Event("slide.bs.carousel",{relatedTarget:c,direction:a});if(this.$element.trigger(d),!d.isDefaultPrevented()){if(this.sliding=!0,r&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var h=t(this.$indicators.children()[this.getItemIndex(o)]);h&&h.addClass("active")}var p=t.Event("slid.bs.carousel",{relatedTarget:c,direction:a});return t.support.transition&&this.$element.hasClass("slide")?(o.addClass(e),"object"==typeof o&&o.length&&o[0].offsetWidth,n.addClass(a),o.addClass(a),n.one("bsTransitionEnd",function(){o.removeClass([e,a].join(" ")).addClass("active"),n.removeClass(["active",a].join(" ")),l.sliding=!1,setTimeout(function(){l.$element.trigger(p)},0)}).emulateTransitionEnd(i.TRANSITION_DURATION)):(n.removeClass("active"),o.addClass("active"),this.sliding=!1,this.$element.trigger(p)),r&&this.cycle(),this}};var s=t.fn.carousel;t.fn.carousel=e,t.fn.carousel.Constructor=i,t.fn.carousel.noConflict=function(){return t.fn.carousel=s,this};var n=function(i){var s=t(this),n=s.attr("href");n&&(n=n.replace(/.*(?=#[^\s]+$)/,""));var o=s.attr("data-target")||n,r=t(document).find(o);if(r.hasClass("carousel")){var a=t.extend({},r.data(),s.data()),l=s.attr("data-slide-to");l&&(a.interval=!1),e.call(r,a),l&&r.data("bs.carousel").to(l),i.preventDefault()}};t(document).on("click.bs.carousel.data-api","[data-slide]",n).on("click.bs.carousel.data-api","[data-slide-to]",n),t(window).on("load",function(){t('[data-ride="carousel"]').each(function(){var i=t(this);e.call(i,i.data())})})}(jQuery),+function(t){"use strict";function e(e){var i,s=e.attr("data-target")||(i=e.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"");return t(document).find(s)}function i(e){return this.each(function(){var i=t(this),n=i.data("bs.collapse"),o=t.extend({},s.DEFAULTS,i.data(),"object"==typeof e&&e);!n&&o.toggle&&/show|hide/.test(e)&&(o.toggle=!1),n||i.data("bs.collapse",n=new s(this,o)),"string"==typeof e&&n[e]()})}var s=function(e,i){this.$element=t(e),this.options=t.extend({},s.DEFAULTS,i),this.$trigger=t('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};s.VERSION="3.4.1",s.TRANSITION_DURATION=350,s.DEFAULTS={toggle:!0},s.prototype.dimension=function(){var t=this.$element.hasClass("width");return t?"width":"height"},s.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var e,n=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(n&&n.length&&(e=n.data("bs.collapse"),e&&e.transitioning))){var o=t.Event("show.bs.collapse");if(this.$element.trigger(o),!o.isDefaultPrevented()){n&&n.length&&(i.call(n,"hide"),e||n.data("bs.collapse",null));var r=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[r](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var a=function(){this.$element.removeClass("collapsing").addClass("collapse in")[r](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return a.call(this);var l=t.camelCase(["scroll",r].join("-"));this.$element.one("bsTransitionEnd",t.proxy(a,this)).emulateTransitionEnd(s.TRANSITION_DURATION)[r](this.$element[0][l])}}}},s.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var e=t.Event("hide.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){var i=this.dimension();this.$element[i](this.$element[i]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var n=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return t.support.transition?void this.$element[i](0).one("bsTransitionEnd",t.proxy(n,this)).emulateTransitionEnd(s.TRANSITION_DURATION):n.call(this)}}},s.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},s.prototype.getParent=function(){return t(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(t.proxy(function(i,s){var n=t(s);this.addAriaAndCollapsedClass(e(n),n)},this)).end()},s.prototype.addAriaAndCollapsedClass=function(t,e){var i=t.hasClass("in");t.attr("aria-expanded",i),e.toggleClass("collapsed",!i).attr("aria-expanded",i)};var n=t.fn.collapse;t.fn.collapse=i,t.fn.collapse.Constructor=s,t.fn.collapse.noConflict=function(){return t.fn.collapse=n,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(s){var n=t(this);n.attr("data-target")||s.preventDefault();var o=e(n),r=o.data("bs.collapse"),a=r?"toggle":n.data();i.call(o,a)})}(jQuery),+function(t){"use strict";function e(e){var i=e.attr("data-target");i||(i=e.attr("href"),i=i&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,""));var s="#"!==i?t(document).find(i):null;return s&&s.length?s:e.parent()}function i(i){i&&3===i.which||(t(n).remove(),t(o).each(function(){var s=t(this),n=e(s),o={relatedTarget:this};n.hasClass("open")&&(i&&"click"==i.type&&/input|textarea/i.test(i.target.tagName)&&t.contains(n[0],i.target)||(n.trigger(i=t.Event("hide.bs.dropdown",o)),i.isDefaultPrevented()||(s.attr("aria-expanded","false"),n.removeClass("open").trigger(t.Event("hidden.bs.dropdown",o)))))}))}function s(e){return this.each(function(){var i=t(this),s=i.data("bs.dropdown");s||i.data("bs.dropdown",s=new r(this)),"string"==typeof e&&s[e].call(i)})}var n=".dropdown-backdrop",o='[data-toggle="dropdown"]',r=function(e){t(e).on("click.bs.dropdown",this.toggle)};r.VERSION="3.4.1",r.prototype.toggle=function(s){var n=t(this);if(!n.is(".disabled, :disabled")){var o=e(n),r=o.hasClass("open");if(i(),!r){"ontouchstart"in document.documentElement&&!o.closest(".navbar-nav").length&&t(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(t(this)).on("click",i);var a={relatedTarget:this};if(o.trigger(s=t.Event("show.bs.dropdown",a)),s.isDefaultPrevented())return;n.trigger("focus").attr("aria-expanded","true"),o.toggleClass("open").trigger(t.Event("shown.bs.dropdown",a))}return!1}},r.prototype.keydown=function(i){if(/(38|40|27|32)/.test(i.which)&&!/input|textarea/i.test(i.target.tagName)){var s=t(this);if(i.preventDefault(),i.stopPropagation(),!s.is(".disabled, :disabled")){var n=e(s),r=n.hasClass("open");if(!r&&27!=i.which||r&&27==i.which)return 27==i.which&&n.find(o).trigger("focus"),s.trigger("click");var a=" li:not(.disabled):visible a",l=n.find(".dropdown-menu"+a);if(l.length){var c=l.index(i.target);38==i.which&&c>0&&c--,40==i.which&&c<l.length-1&&c++,~c||(c=0),l.eq(c).trigger("focus")}}}};var a=t.fn.dropdown;t.fn.dropdown=s,t.fn.dropdown.Constructor=r,t.fn.dropdown.noConflict=function(){return t.fn.dropdown=a,this},t(document).on("click.bs.dropdown.data-api",i).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",o,r.prototype.toggle).on("keydown.bs.dropdown.data-api",o,r.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",r.prototype.keydown)}(jQuery),+function(t){"use strict";function e(e,s){return this.each(function(){var n=t(this),o=n.data("bs.modal"),r=t.extend({},i.DEFAULTS,n.data(),"object"==typeof e&&e);o||n.data("bs.modal",o=new i(this,r)),"string"==typeof e?o[e](s):r.show&&o.show(s)})}var i=function(e,i){this.options=i,this.$body=t(document.body),this.$element=t(e),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.fixedContent=".navbar-fixed-top, .navbar-fixed-bottom",this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,t.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};i.VERSION="3.4.1",i.TRANSITION_DURATION=300,i.BACKDROP_TRANSITION_DURATION=150,i.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},i.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},i.prototype.show=function(e){var s=this,n=t.Event("show.bs.modal",{relatedTarget:e});this.$element.trigger(n),this.isShown||n.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(){s.$element.one("mouseup.dismiss.bs.modal",function(e){t(e.target).is(s.$element)&&(s.ignoreBackdropClick=!0)})}),this.backdrop(function(){var n=t.support.transition&&s.$element.hasClass("fade");s.$element.parent().length||s.$element.appendTo(s.$body),s.$element.show().scrollTop(0),s.adjustDialog(),n&&s.$element[0].offsetWidth,s.$element.addClass("in"),s.enforceFocus();var o=t.Event("shown.bs.modal",{relatedTarget:e});n?s.$dialog.one("bsTransitionEnd",function(){s.$element.trigger("focus").trigger(o)}).emulateTransitionEnd(i.TRANSITION_DURATION):s.$element.trigger("focus").trigger(o)}))},i.prototype.hide=function(e){e&&e.preventDefault(),e=t.Event("hide.bs.modal"),this.$element.trigger(e),this.isShown&&!e.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),t(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),t.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",t.proxy(this.hideModal,this)).emulateTransitionEnd(i.TRANSITION_DURATION):this.hideModal())},i.prototype.enforceFocus=function(){t(document).off("focusin.bs.modal").on("focusin.bs.modal",t.proxy(function(t){document===t.target||this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")},this))},i.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",t.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},i.prototype.resize=function(){this.isShown?t(window).on("resize.bs.modal",t.proxy(this.handleUpdate,this)):t(window).off("resize.bs.modal")},i.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.$body.removeClass("modal-open"),t.resetAdjustments(),t.resetScrollbar(),t.$element.trigger("hidden.bs.modal")})},i.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},i.prototype.backdrop=function(e){var s=this,n=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var o=t.support.transition&&n;if(this.$backdrop=t(document.createElement("div")).addClass("modal-backdrop "+n).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)),o&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!e)return;o?this.$backdrop.one("bsTransitionEnd",e).emulateTransitionEnd(i.BACKDROP_TRANSITION_DURATION):e()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var r=function(){s.removeBackdrop(),e&&e()};t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",r).emulateTransitionEnd(i.BACKDROP_TRANSITION_DURATION):r()}else e&&e()},i.prototype.handleUpdate=function(){this.adjustDialog()},i.prototype.adjustDialog=function(){var t=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},i.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},i.prototype.checkScrollbar=function(){var t=window.innerWidth;if(!t){var e=document.documentElement.getBoundingClientRect();t=e.right-Math.abs(e.left)}this.bodyIsOverflowing=document.body.clientWidth<t,this.scrollbarWidth=this.measureScrollbar()},i.prototype.setScrollbar=function(){var e=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"";var i=this.scrollbarWidth;this.bodyIsOverflowing&&(this.$body.css("padding-right",e+i),t(this.fixedContent).each(function(e,s){var n=s.style.paddingRight,o=t(s).css("padding-right");t(s).data("padding-right",n).css("padding-right",parseFloat(o)+i+"px")}))},i.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad),t(this.fixedContent).each(function(e,i){var s=t(i).data("padding-right");t(i).removeData("padding-right"),i.style.paddingRight=s?s:""})},i.prototype.measureScrollbar=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",this.$body.append(t);var e=t.offsetWidth-t.clientWidth;return this.$body[0].removeChild(t),e};var s=t.fn.modal;t.fn.modal=e,t.fn.modal.Constructor=i,t.fn.modal.noConflict=function(){return t.fn.modal=s,this},t(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(i){var s=t(this),n=s.attr("href"),o=s.attr("data-target")||n&&n.replace(/.*(?=#[^\s]+$)/,""),r=t(document).find(o),a=r.data("bs.modal")?"toggle":t.extend({remote:!/#/.test(n)&&n},r.data(),s.data());s.is("a")&&i.preventDefault(),r.one("show.bs.modal",function(t){t.isDefaultPrevented()||r.one("hidden.bs.modal",function(){s.is(":visible")&&s.trigger("focus")})}),e.call(r,a,this)})}(jQuery),+function(t){"use strict";function e(e,i){var s=e.nodeName.toLowerCase();if(t.inArray(s,i)!==-1)return t.inArray(s,o)===-1||Boolean(e.nodeValue.match(l)||e.nodeValue.match(c));for(var n=t(i).filter(function(t,e){return e instanceof RegExp}),r=0,a=n.length;r<a;r++)if(s.match(n[r]))return!0;return!1}function i(i,s,n){if(0===i.length)return i;if(n&&"function"==typeof n)return n(i);if(!document.implementation||!document.implementation.createHTMLDocument)return i;var o=document.implementation.createHTMLDocument("sanitization");o.body.innerHTML=i;for(var r=t.map(s,function(t,e){return e}),a=t(o.body).find("*"),l=0,c=a.length;l<c;l++){var d=a[l],h=d.nodeName.toLowerCase();if(t.inArray(h,r)!==-1)for(var p=t.map(d.attributes,function(t){return t}),u=[].concat(s["*"]||[],s[h]||[]),f=0,g=p.length;f<g;f++)e(p[f],u)||d.removeAttribute(p[f].nodeName);else d.parentNode.removeChild(d)}return o.body.innerHTML}function s(e){return this.each(function(){var i=t(this),s=i.data("bs.tooltip"),n="object"==typeof e&&e;!s&&/destroy|hide/.test(e)||(s||i.data("bs.tooltip",s=new d(this,n)),"string"==typeof e&&s[e]())})}var n=["sanitize","whiteList","sanitizeFn"],o=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],r=/^aria-[\w-]*$/i,a={"*":["class","dir","id","lang","role",r],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},l=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:\/?#]*(?:[\/?#]|$))/gi,c=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i,d=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)};d.VERSION="3.4.1",d.TRANSITION_DURATION=150,d.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},sanitize:!0,sanitizeFn:null,whiteList:a},d.prototype.init=function(e,i,s){if(this.enabled=!0,this.type=e,this.$element=t(i),this.options=this.getOptions(s),this.$viewport=this.options.viewport&&t(document).find(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 n=this.options.trigger.split(" "),o=n.length;o--;){var r=n[o];if("click"==r)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=r){var a="hover"==r?"mouseenter":"focusin",l="hover"==r?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},d.prototype.getDefaults=function(){return d.DEFAULTS},d.prototype.getOptions=function(e){var s=this.$element.data();for(var o in s)s.hasOwnProperty(o)&&t.inArray(o,n)!==-1&&delete s[o];return e=t.extend({},this.getDefaults(),s,e),e.delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e.sanitize&&(e.template=i(e.template,e.whiteList,e.sanitizeFn)),e},d.prototype.getDelegateOptions=function(){var e={},i=this.getDefaults();return this._options&&t.each(this._options,function(t,s){i[t]!=s&&(e[t]=s)}),e},d.prototype.enter=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),e instanceof t.Event&&(i.inState["focusin"==e.type?"focus":"hover"]=!0),i.tip().hasClass("in")||"in"==i.hoverState?void(i.hoverState="in"):(clearTimeout(i.timeout),i.hoverState="in",i.options.delay&&i.options.delay.show?void(i.timeout=setTimeout(function(){"in"==i.hoverState&&i.show()},i.options.delay.show)):i.show())},d.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},d.prototype.leave=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),e instanceof t.Event&&(i.inState["focusout"==e.type?"focus":"hover"]=!1),!i.isInStateTrue())return clearTimeout(i.timeout),i.hoverState="out",i.options.delay&&i.options.delay.hide?void(i.timeout=setTimeout(function(){"out"==i.hoverState&&i.hide()},i.options.delay.hide)):i.hide()},d.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 s=this,n=this.tip(),o=this.getUID(this.type);this.setContent(),n.attr("id",o),this.$element.attr("aria-describedby",o),this.options.animation&&n.addClass("fade");var r="function"==typeof this.options.placement?this.options.placement.call(this,n[0],this.$element[0]):this.options.placement,a=/\s?auto?\s?/i,l=a.test(r);l&&(r=r.replace(a,"")||"top"),n.detach().css({top:0,left:0,display:"block"}).addClass(r).data("bs."+this.type,this),this.options.container?n.appendTo(t(document).find(this.options.container)):n.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var c=this.getPosition(),h=n[0].offsetWidth,p=n[0].offsetHeight;if(l){var u=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+h>f.width?"left":"left"==r&&c.left-h<f.left?"right":r,n.removeClass(u).addClass(r)}var g=this.getCalculatedOffset(r,c,h,p);this.applyPlacement(g,r);var m=function(){var t=s.hoverState;s.$element.trigger("shown.bs."+s.type),s.hoverState=null,"out"==t&&s.leave(s)};t.support.transition&&this.$tip.hasClass("fade")?n.one("bsTransitionEnd",m).emulateTransitionEnd(d.TRANSITION_DURATION):m()}},d.prototype.applyPlacement=function(e,i){var s=this.tip(),n=s[0].offsetWidth,o=s[0].offsetHeight,r=parseInt(s.css("margin-top"),10),a=parseInt(s.css("margin-left"),10);isNaN(r)&&(r=0),isNaN(a)&&(a=0),e.top+=r,e.left+=a,t.offset.setOffset(s[0],t.extend({using:function(t){s.css({top:Math.round(t.top),left:Math.round(t.left)})}},e),0),s.addClass("in");var l=s[0].offsetWidth,c=s[0].offsetHeight;"top"==i&&c!=o&&(e.top=e.top+o-c);var d=this.getViewportAdjustedDelta(i,e,l,c);d.left?e.left+=d.left:e.top+=d.top;var h=/top|bottom/.test(i),p=h?2*d.left-n+l:2*d.top-o+c,u=h?"offsetWidth":"offsetHeight";s.offset(e),this.replaceArrow(p,s[0][u],h)},d.prototype.replaceArrow=function(t,e,i){this.arrow().css(i?"left":"top",50*(1-t/e)+"%").css(i?"top":"left","")},d.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();this.options.html?(this.options.sanitize&&(e=i(e,this.options.whiteList,this.options.sanitizeFn)),t.find(".tooltip-inner").html(e)):t.find(".tooltip-inner").text(e),t.removeClass("fade in top bottom left right")},d.prototype.hide=function(e){function i(){"in"!=s.hoverState&&n.detach(),s.$element&&s.$element.removeAttr("aria-describedby").trigger("hidden.bs."+s.type),e&&e()}var s=this,n=t(this.$tip),o=t.Event("hide.bs."+this.type);if(this.$element.trigger(o),!o.isDefaultPrevented())return n.removeClass("in"),t.support.transition&&n.hasClass("fade")?n.one("bsTransitionEnd",i).emulateTransitionEnd(d.TRANSITION_DURATION):i(),
this.hoverState=null,this},d.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","")},d.prototype.hasContent=function(){return this.getTitle()},d.prototype.getPosition=function(e){e=e||this.$element;var i=e[0],s="BODY"==i.tagName,n=i.getBoundingClientRect();null==n.width&&(n=t.extend({},n,{width:n.right-n.left,height:n.bottom-n.top}));var o=window.SVGElement&&i instanceof window.SVGElement,r=s?{top:0,left:0}:o?null:e.offset(),a={scroll:s?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop()},l=s?{width:t(window).width(),height:t(window).height()}:null;return t.extend({},n,a,l,r)},d.prototype.getCalculatedOffset=function(t,e,i,s){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-i/2}:"top"==t?{top:e.top-s,left:e.left+e.width/2-i/2}:"left"==t?{top:e.top+e.height/2-s/2,left:e.left-i}:{top:e.top+e.height/2-s/2,left:e.left+e.width}},d.prototype.getViewportAdjustedDelta=function(t,e,i,s){var n={top:0,left:0};if(!this.$viewport)return n;var o=this.options.viewport&&this.options.viewport.padding||0,r=this.getPosition(this.$viewport);if(/right|left/.test(t)){var a=e.top-o-r.scroll,l=e.top+o-r.scroll+s;a<r.top?n.top=r.top-a:l>r.top+r.height&&(n.top=r.top+r.height-l)}else{var c=e.left-o,d=e.left+o+i;c<r.left?n.left=r.left-c:d>r.right&&(n.left=r.left+r.width-d)}return n},d.prototype.getTitle=function(){var t,e=this.$element,i=this.options;return t=e.attr("data-original-title")||("function"==typeof i.title?i.title.call(e[0]):i.title)},d.prototype.getUID=function(t){do t+=~~(1e6*Math.random());while(document.getElementById(t));return t},d.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},d.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},d.prototype.enable=function(){this.enabled=!0},d.prototype.disable=function(){this.enabled=!1},d.prototype.toggleEnabled=function(){this.enabled=!this.enabled},d.prototype.toggle=function(e){var i=this;e&&(i=t(e.currentTarget).data("bs."+this.type),i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i))),e?(i.inState.click=!i.inState.click,i.isInStateTrue()?i.enter(i):i.leave(i)):i.tip().hasClass("in")?i.leave(i):i.enter(i)},d.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,t.$element=null})},d.prototype.sanitizeHtml=function(t){return i(t,this.options.whiteList,this.options.sanitizeFn)};var h=t.fn.tooltip;t.fn.tooltip=s,t.fn.tooltip.Constructor=d,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=h,this}}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var s=t(this),n=s.data("bs.popover"),o="object"==typeof e&&e;!n&&/destroy|hide/.test(e)||(n||s.data("bs.popover",n=new i(this,o)),"string"==typeof e&&n[e]())})}var i=function(t,e){this.init("popover",t,e)};if(!t.fn.tooltip)throw new Error("Popover requires tooltip.js");i.VERSION="3.4.1",i.DEFAULTS=t.extend({},t.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),i.prototype=t.extend({},t.fn.tooltip.Constructor.prototype),i.prototype.constructor=i,i.prototype.getDefaults=function(){return i.DEFAULTS},i.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),i=this.getContent();if(this.options.html){var s=typeof i;this.options.sanitize&&(e=this.sanitizeHtml(e),"string"===s&&(i=this.sanitizeHtml(i))),t.find(".popover-title").html(e),t.find(".popover-content").children().detach().end()["string"===s?"html":"append"](i)}else t.find(".popover-title").text(e),t.find(".popover-content").children().detach().end().text(i);t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},i.prototype.hasContent=function(){return this.getTitle()||this.getContent()},i.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},i.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var s=t.fn.popover;t.fn.popover=e,t.fn.popover.Constructor=i,t.fn.popover.noConflict=function(){return t.fn.popover=s,this}}(jQuery),+function(t){"use strict";function e(i,s){this.$body=t(document.body),this.$scrollElement=t(t(i).is(document.body)?window:i),this.options=t.extend({},e.DEFAULTS,s),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",t.proxy(this.process,this)),this.refresh(),this.process()}function i(i){return this.each(function(){var s=t(this),n=s.data("bs.scrollspy"),o="object"==typeof i&&i;n||s.data("bs.scrollspy",n=new e(this,o)),"string"==typeof i&&n[i]()})}e.VERSION="3.4.1",e.DEFAULTS={offset:10},e.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},e.prototype.refresh=function(){var e=this,i="offset",s=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),t.isWindow(this.$scrollElement[0])||(i="position",s=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var e=t(this),n=e.data("target")||e.attr("href"),o=/^#./.test(n)&&t(n);return o&&o.length&&o.is(":visible")&&[[o[i]().top+s,n]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){e.offsets.push(this[0]),e.targets.push(this[1])})},e.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,i=this.getScrollHeight(),s=this.options.offset+i-this.$scrollElement.height(),n=this.offsets,o=this.targets,r=this.activeTarget;if(this.scrollHeight!=i&&this.refresh(),e>=s)return r!=(t=o[o.length-1])&&this.activate(t);if(r&&e<n[0])return this.activeTarget=null,this.clear();for(t=n.length;t--;)r!=o[t]&&e>=n[t]&&(void 0===n[t+1]||e<n[t+1])&&this.activate(o[t])},e.prototype.activate=function(e){this.activeTarget=e,this.clear();var i=this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]',s=t(i).parents("li").addClass("active");s.parent(".dropdown-menu").length&&(s=s.closest("li.dropdown").addClass("active")),s.trigger("activate.bs.scrollspy")},e.prototype.clear=function(){t(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var s=t.fn.scrollspy;t.fn.scrollspy=i,t.fn.scrollspy.Constructor=e,t.fn.scrollspy.noConflict=function(){return t.fn.scrollspy=s,this},t(window).on("load.bs.scrollspy.data-api",function(){t('[data-spy="scroll"]').each(function(){var e=t(this);i.call(e,e.data())})})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var s=t(this),n=s.data("bs.tab");n||s.data("bs.tab",n=new i(this)),"string"==typeof e&&n[e]()})}var i=function(e){this.element=t(e)};i.VERSION="3.4.1",i.TRANSITION_DURATION=150,i.prototype.show=function(){var e=this.element,i=e.closest("ul:not(.dropdown-menu)"),s=e.data("target");if(s||(s=e.attr("href"),s=s&&s.replace(/.*(?=#[^\s]*$)/,"")),!e.parent("li").hasClass("active")){var n=i.find(".active:last a"),o=t.Event("hide.bs.tab",{relatedTarget:e[0]}),r=t.Event("show.bs.tab",{relatedTarget:n[0]});if(n.trigger(o),e.trigger(r),!r.isDefaultPrevented()&&!o.isDefaultPrevented()){var a=t(document).find(s);this.activate(e.closest("li"),i),this.activate(a,a.parent(),function(){n.trigger({type:"hidden.bs.tab",relatedTarget:e[0]}),e.trigger({type:"shown.bs.tab",relatedTarget:n[0]})})}}},i.prototype.activate=function(e,s,n){function o(){r.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),e.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),a?(e[0].offsetWidth,e.addClass("in")):e.removeClass("fade"),e.parent(".dropdown-menu").length&&e.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),n&&n()}var r=s.find("> .active"),a=n&&t.support.transition&&(r.length&&r.hasClass("fade")||!!s.find("> .fade").length);r.length&&a?r.one("bsTransitionEnd",o).emulateTransitionEnd(i.TRANSITION_DURATION):o(),r.removeClass("in")};var s=t.fn.tab;t.fn.tab=e,t.fn.tab.Constructor=i,t.fn.tab.noConflict=function(){return t.fn.tab=s,this};var n=function(i){i.preventDefault(),e.call(t(this),"show")};t(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',n).on("click.bs.tab.data-api",'[data-toggle="pill"]',n)}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var s=t(this),n=s.data("bs.affix"),o="object"==typeof e&&e;n||s.data("bs.affix",n=new i(this,o)),"string"==typeof e&&n[e]()})}var i=function(e,s){this.options=t.extend({},i.DEFAULTS,s);var n=this.options.target===i.DEFAULTS.target?t(this.options.target):t(document).find(this.options.target);this.$target=n.on("scroll.bs.affix.data-api",t.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",t.proxy(this.checkPositionWithEventLoop,this)),this.$element=t(e),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};i.VERSION="3.4.1",i.RESET="affix affix-top affix-bottom",i.DEFAULTS={offset:0,target:window},i.prototype.getState=function(t,e,i,s){var n=this.$target.scrollTop(),o=this.$element.offset(),r=this.$target.height();if(null!=i&&"top"==this.affixed)return n<i&&"top";if("bottom"==this.affixed)return null!=i?!(n+this.unpin<=o.top)&&"bottom":!(n+r<=t-s)&&"bottom";var a=null==this.affixed,l=a?n:o.top,c=a?r:e;return null!=i&&n<=i?"top":null!=s&&l+c>=t-s&&"bottom"},i.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(i.RESET).addClass("affix");var t=this.$target.scrollTop(),e=this.$element.offset();return this.pinnedOffset=e.top-t},i.prototype.checkPositionWithEventLoop=function(){setTimeout(t.proxy(this.checkPosition,this),1)},i.prototype.checkPosition=function(){if(this.$element.is(":visible")){var e=this.$element.height(),s=this.options.offset,n=s.top,o=s.bottom,r=Math.max(t(document).height(),t(document.body).height());"object"!=typeof s&&(o=n=s),"function"==typeof n&&(n=s.top(this.$element)),"function"==typeof o&&(o=s.bottom(this.$element));var a=this.getState(r,e,n,o);if(this.affixed!=a){null!=this.unpin&&this.$element.css("top","");var l="affix"+(a?"-"+a:""),c=t.Event(l+".bs.affix");if(this.$element.trigger(c),c.isDefaultPrevented())return;this.affixed=a,this.unpin="bottom"==a?this.getPinnedOffset():null,this.$element.removeClass(i.RESET).addClass(l).trigger(l.replace("affix","affixed")+".bs.affix")}"bottom"==a&&this.$element.offset({top:r-e-o})}};var s=t.fn.affix;t.fn.affix=e,t.fn.affix.Constructor=i,t.fn.affix.noConflict=function(){return t.fn.affix=s,this},t(window).on("load",function(){t('[data-spy="affix"]').each(function(){var i=t(this),s=i.data();s.offset=s.offset||{},null!=s.offsetBottom&&(s.offset.bottom=s.offsetBottom),null!=s.offsetTop&&(s.offset.top=s.offsetTop),e.call(i,s)})})}(jQuery),function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.enquire=t()}}(function(){return function t(e,i,s){function n(r,a){if(!i[r]){if(!e[r]){var l="function"==typeof require&&require;if(!a&&l)return l(r,!0);if(o)return o(r,!0);var c=new Error("Cannot find module '"+r+"'");throw c.code="MODULE_NOT_FOUND",c}var d=i[r]={exports:{}};e[r][0].call(d.exports,function(t){var i=e[r][1][t];return n(i?i:t)},d,d.exports,t,e,i,s)}return i[r].exports}for(var o="function"==typeof require&&require,r=0;r<s.length;r++)n(s[r]);return n}({1:[function(t,e,i){function s(t,e){this.query=t,this.isUnconditional=e,this.handlers=[],this.mql=window.matchMedia(t);var i=this;this.listener=function(t){i.mql=t.currentTarget||t,i.assess()},this.mql.addListener(this.listener)}var n=t(3),o=t(4).each;s.prototype={constuctor:s,addHandler:function(t){var e=new n(t);this.handlers.push(e),this.matches()&&e.on()},removeHandler:function(t){var e=this.handlers;o(e,function(i,s){if(i.equals(t))return i.destroy(),!e.splice(s,1)})},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){o(this.handlers,function(t){t.destroy()}),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var t=this.matches()?"on":"off";o(this.handlers,function(e){e[t]()})}},e.exports=s},{3:3,4:4}],2:[function(t,e,i){function s(){if(!window.matchMedia)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!window.matchMedia("only all").matches}var n=t(1),o=t(4),r=o.each,a=o.isFunction,l=o.isArray;s.prototype={constructor:s,register:function(t,e,i){var s=this.queries,o=i&&this.browserIsIncapable;return s[t]||(s[t]=new n(t,o)),a(e)&&(e={match:e}),l(e)||(e=[e]),r(e,function(e){a(e)&&(e={match:e}),s[t].addHandler(e)}),this},unregister:function(t,e){var i=this.queries[t];return i&&(e?i.removeHandler(e):(i.clear(),delete this.queries[t])),this}},e.exports=s},{1:1,4:4}],3:[function(t,e,i){function s(t){this.options=t,!t.deferSetup&&this.setup()}s.prototype={constructor:s,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(t){return this.options===t||this.options.match===t}},e.exports=s},{}],4:[function(t,e,i){function s(t,e){var i,s=0,n=t.length;for(s;s<n&&(i=e(t[s],s),i!==!1);s++);}function n(t){return"[object Array]"===Object.prototype.toString.apply(t)}function o(t){return"function"==typeof t}e.exports={isFunction:o,isArray:n,each:s}},{}],5:[function(t,e,i){var s=t(2);e.exports=new s},{2:2}]},{},[5])(5)}),function(){"use strict";function t(e,s){function n(t,e){return function(){return t.apply(e,arguments)}}var o;if(s=s||{},this.trackingClick=!1,this.trackingClickStart=0,this.targetElement=null,this.touchStartX=0,this.touchStartY=0,this.lastTouchIdentifier=0,this.touchBoundary=s.touchBoundary||10,this.layer=e,this.tapDelay=s.tapDelay||200,this.tapTimeout=s.tapTimeout||700,!t.notNeeded(e)){for(var r=["onMouse","onClick","onTouchStart","onTouchMove","onTouchEnd","onTouchCancel"],a=this,l=0,c=r.length;l<c;l++)a[r[l]]=n(a[r[l]],a);i&&(e.addEventListener("mouseover",this.onMouse,!0),e.addEventListener("mousedown",this.onMouse,!0),e.addEventListener("mouseup",this.onMouse,!0)),e.addEventListener("click",this.onClick,!0),e.addEventListener("touchstart",this.onTouchStart,!1),e.addEventListener("touchmove",this.onTouchMove,!1),e.addEventListener("touchend",this.onTouchEnd,!1),e.addEventListener("touchcancel",this.onTouchCancel,!1),Event.prototype.stopImmediatePropagation||(e.removeEventListener=function(t,i,s){var n=Node.prototype.removeEventListener;"click"===t?n.call(e,t,i.hijacked||i,s):n.call(e,t,i,s)},e.addEventListener=function(t,i,s){var n=Node.prototype.addEventListener;"click"===t?n.call(e,t,i.hijacked||(i.hijacked=function(t){t.propagationStopped||i(t)}),s):n.call(e,t,i,s)}),"function"==typeof e.onclick&&(o=e.onclick,e.addEventListener("click",function(t){o(t)},!1),e.onclick=null)}}var e=navigator.userAgent.indexOf("Windows Phone")>=0,i=navigator.userAgent.indexOf("Android")>0&&!e,s=/iP(ad|hone|od)/.test(navigator.userAgent)&&!e,n=s&&/OS 4_\d(_\d)?/.test(navigator.userAgent),o=s&&/OS [6-7]_\d/.test(navigator.userAgent),r=navigator.userAgent.indexOf("BB10")>0;t.prototype.needsClick=function(t){switch(t.nodeName.toLowerCase()){case"button":case"select":case"textarea":if(t.disabled)return!0;break;case"input":if(s&&"file"===t.type||t.disabled)return!0;break;case"label":case"iframe":case"video":return!0}return/\bneedsclick\b/.test(t.className)},t.prototype.needsFocus=function(t){switch(t.nodeName.toLowerCase()){case"textarea":return!0;case"select":return!i;case"input":switch(t.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":return!1}return!t.disabled&&!t.readOnly;default:return/\bneedsfocus\b/.test(t.className)}},t.prototype.sendClick=function(t,e){var i,s;document.activeElement&&document.activeElement!==t&&document.activeElement.blur(),s=e.changedTouches[0],i=document.createEvent("MouseEvents"),i.initMouseEvent(this.determineEventType(t),!0,!0,window,1,s.screenX,s.screenY,s.clientX,s.clientY,!1,!1,!1,!1,0,null),i.forwardedTouchEvent=!0,t.dispatchEvent(i)},t.prototype.determineEventType=function(t){return i&&"select"===t.tagName.toLowerCase()?"mousedown":"click"},t.prototype.focus=function(t){var e;s&&t.setSelectionRange&&0!==t.type.indexOf("date")&&"time"!==t.type&&"month"!==t.type?(e=t.value.length,t.setSelectionRange(e,e)):t.focus()},t.prototype.updateScrollParent=function(t){var e,i;if(e=t.fastClickScrollParent,!e||!e.contains(t)){i=t;do{if(i.scrollHeight>i.offsetHeight){e=i,t.fastClickScrollParent=i;break}i=i.parentElement}while(i)}e&&(e.fastClickLastScrollTop=e.scrollTop)},t.prototype.getTargetElementFromEventTarget=function(t){return t.nodeType===Node.TEXT_NODE?t.parentNode:t},t.prototype.onTouchStart=function(t){var e,i,o;if(t.targetTouches.length>1)return!0;if(e=this.getTargetElementFromEventTarget(t.target),i=t.targetTouches[0],s){if(o=window.getSelection(),o.rangeCount&&!o.isCollapsed)return!0;if(!n){if(i.identifier&&i.identifier===this.lastTouchIdentifier)return t.preventDefault(),!1;this.lastTouchIdentifier=i.identifier,this.updateScrollParent(e)}}return this.trackingClick=!0,this.trackingClickStart=t.timeStamp,this.targetElement=e,this.touchStartX=i.pageX,this.touchStartY=i.pageY,t.timeStamp-this.lastClickTime<this.tapDelay&&t.preventDefault(),!0},t.prototype.touchHasMoved=function(t){var e=t.changedTouches[0],i=this.touchBoundary;return Math.abs(e.pageX-this.touchStartX)>i||Math.abs(e.pageY-this.touchStartY)>i},t.prototype.onTouchMove=function(t){return!this.trackingClick||((this.targetElement!==this.getTargetElementFromEventTarget(t.target)||this.touchHasMoved(t))&&(this.trackingClick=!1,this.targetElement=null),!0)},t.prototype.findControl=function(t){return void 0!==t.control?t.control:t.htmlFor?document.getElementById(t.htmlFor):t.querySelector("button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea")},t.prototype.onTouchEnd=function(t){var e,r,a,l,c,d=this.targetElement;if(!this.trackingClick)return!0;if(t.timeStamp-this.lastClickTime<this.tapDelay)return this.cancelNextClick=!0,!0;if(t.timeStamp-this.trackingClickStart>this.tapTimeout)return!0;if(this.cancelNextClick=!1,this.lastClickTime=t.timeStamp,r=this.trackingClickStart,this.trackingClick=!1,this.trackingClickStart=0,o&&(c=t.changedTouches[0],d=document.elementFromPoint(c.pageX-window.pageXOffset,c.pageY-window.pageYOffset)||d,d.fastClickScrollParent=this.targetElement.fastClickScrollParent),a=d.tagName.toLowerCase(),"label"===a){if(e=this.findControl(d)){if(this.focus(d),i)return!1;d=e}}else if(this.needsFocus(d))return t.timeStamp-r>100||s&&window.top!==window&&"input"===a?(this.targetElement=null,!1):(this.focus(d),this.sendClick(d,t),s&&"select"===a||(this.targetElement=null,t.preventDefault()),!1);return!(!s||n||(l=d.fastClickScrollParent,!l||l.fastClickLastScrollTop===l.scrollTop))||(this.needsClick(d)||(t.preventDefault(),this.sendClick(d,t)),!1)},t.prototype.onTouchCancel=function(){this.trackingClick=!1,this.targetElement=null},t.prototype.onMouse=function(t){return!this.targetElement||(!!t.forwardedTouchEvent||(!t.cancelable||(!(!this.needsClick(this.targetElement)||this.cancelNextClick)||(t.stopImmediatePropagation?t.stopImmediatePropagation():t.propagationStopped=!0,t.stopPropagation(),t.preventDefault(),!1))))},t.prototype.onClick=function(t){var e;return this.trackingClick?(this.targetElement=null,this.trackingClick=!1,!0):"submit"===t.target.type&&0===t.detail||(e=this.onMouse(t),e||(this.targetElement=null),e)},t.prototype.destroy=function(){var t=this.layer;i&&(t.removeEventListener("mouseover",this.onMouse,!0),t.removeEventListener("mousedown",this.onMouse,!0),t.removeEventListener("mouseup",this.onMouse,!0)),t.removeEventListener("click",this.onClick,!0),t.removeEventListener("touchstart",this.onTouchStart,!1),t.removeEventListener("touchmove",this.onTouchMove,!1),t.removeEventListener("touchend",this.onTouchEnd,!1),t.removeEventListener("touchcancel",this.onTouchCancel,!1)},t.notNeeded=function(t){var e,s,n,o;if("undefined"==typeof window.ontouchstart)return!0;if(s=+(/Chrome\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1]){if(!i)return!0;if(e=document.querySelector("meta[name=viewport]")){if(e.content.indexOf("user-scalable=no")!==-1)return!0;if(s>31&&document.documentElement.scrollWidth<=window.outerWidth)return!0}}if(r&&(n=navigator.userAgent.match(/Version\/([0-9]*)\.([0-9]*)/),n[1]>=10&&n[2]>=3&&(e=document.querySelector("meta[name=viewport]")))){if(e.content.indexOf("user-scalable=no")!==-1)return!0;if(document.documentElement.scrollWidth<=window.outerWidth)return!0}return"none"===t.style.msTouchAction||"manipulation"===t.style.touchAction||(o=+(/Firefox\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1],!!(o>=27&&(e=document.querySelector("meta[name=viewport]"),e&&(e.content.indexOf("user-scalable=no")!==-1||document.documentElement.scrollWidth<=window.outerWidth)))||("none"===t.style.touchAction||"manipulation"===t.style.touchAction))},t.attach=function(e,i){return new t(e,i)},"function"==typeof define&&"object"==typeof define.amd&&define.amd?define(function(){return t}):"undefined"!=typeof module&&module.exports?(module.exports=t.attach,module.exports.FastClick=t):window.FastClick=t}(),function(t,e){function i(t,e,i){var s=t.children(),n=!1;t.empty();for(var r=0,a=s.length;r<a;r++){var l=s.eq(r);if(t.append(l),i&&t.append(i),o(t,e)){l.remove(),n=!0;break}i&&i.detach()}return n}function s(e,i,r,a,l){var c=!1,d="table, thead, tbody, tfoot, tr, col, colgroup, object, embed, param, ol, ul, dl, blockquote, select, optgroup, option, textarea, script, style",h="script, .dotdotdot-keep";return e.contents().detach().each(function(){var p=this,u=t(p);if("undefined"==typeof p||3==p.nodeType&&0==t.trim(p.data).length)return!0;if(u.is(h))e.append(u);else{if(c)return!0;e.append(u),l&&e[e.is(d)?"after":"append"](l),o(r,a)&&(c=3==p.nodeType?n(u,i,r,a,l):s(u,i,r,a,l),c||(u.detach(),c=!0)),c||l&&l.detach()}}),c}function n(e,i,s,n,a){var d=e[0];if(!d)return!1;var p=c(d),u=p.indexOf(" ")!==-1?" ":"　",f="letter"==n.wrap?"":u,g=p.split(f),m=-1,v=-1,y=0,w=g.length-1;for(n.fallbackToLetter&&0==y&&0==w&&(f="",g=p.split(f),w=g.length-1);y<=w&&(0!=y||0!=w);){var b=Math.floor((y+w)/2);if(b==v)break;v=b,l(d,g.slice(0,v+1).join(f)+n.ellipsis),o(s,n)?(w=v,n.fallbackToLetter&&0==y&&0==w&&(f="",g=g[0].split(f),m=-1,v=-1,y=0,w=g.length-1)):(m=v,y=v)}if(m==-1||1==g.length&&0==g[0].length){var _=e.parent();e.detach();var k=a&&a.closest(_).length?a.length:0;_.contents().length>k?d=h(_.contents().eq(-1-k),i):(d=h(_,i,!0),k||_.detach()),d&&(p=r(c(d),n),l(d,p),k&&a&&t(d).parent().append(a))}else p=r(g.slice(0,m+1).join(f),n),l(d,p);return!0}function o(t,e){return t.innerHeight()>e.maxHeight}function r(e,i){for(;t.inArray(e.slice(-1),i.lastCharacter.remove)>-1;)e=e.slice(0,-1);return t.inArray(e.slice(-1),i.lastCharacter.noEllipsis)<0&&(e+=i.ellipsis),e}function a(t){return{width:t.innerWidth(),height:t.innerHeight()}}function l(t,e){t.innerText?t.innerText=e:t.nodeValue?t.nodeValue=e:t.textContent&&(t.textContent=e)}function c(t){return t.innerText?t.innerText:t.nodeValue?t.nodeValue:t.textContent?t.textContent:""}function d(t){do t=t.previousSibling;while(t&&1!==t.nodeType&&3!==t.nodeType);return t}function h(e,i,s){var n,o=e&&e[0];if(o){if(!s){if(3===o.nodeType)return o;if(t.trim(e.text()))return h(e.contents().last(),i)}for(n=d(o);!n;){if(e=e.parent(),e.is(i)||!e.length)return!1;n=d(e[0])}if(n)return h(t(n),i)}return!1}function p(e,i){return!!e&&("string"==typeof e?(e=t(e,i),!!e.length&&e):!!e.jquery&&e)}function u(t){for(var e=t.innerHeight(),i=["paddingTop","paddingBottom"],s=0,n=i.length;s<n;s++){var o=parseInt(t.css(i[s]),10);isNaN(o)&&(o=0),e-=o}return e}if(!t.fn.dotdotdot){t.fn.dotdotdot=function(e){if(0==this.length)return t.fn.dotdotdot.debug('No element found for "'+this.selector+'".'),this;if(this.length>1)return this.each(function(){t(this).dotdotdot(e)});var n=this;n.data("dotdotdot")&&n.trigger("destroy.dot"),n.data("dotdotdot-style",n.attr("style")||""),n.css("word-wrap","break-word"),"nowrap"===n.css("white-space")&&n.css("white-space","normal"),n.bind_events=function(){return n.bind("update.dot",function(e,a){e.preventDefault(),e.stopPropagation(),l.maxHeight="number"==typeof l.height?l.height:u(n),l.maxHeight+=l.tolerance,"undefined"!=typeof a&&(("string"==typeof a||a instanceof HTMLElement)&&(a=t("<div />").append(a).contents()),a instanceof t&&(r=a)),g=n.wrapInner('<div class="dotdotdot" />').children(),g.contents().detach().end().append(r.clone(!0)).find("br").replaceWith("  <br />  ").end().css({height:"auto",width:"auto",border:"none",padding:0,margin:0});var d=!1,h=!1;return c.afterElement&&(d=c.afterElement.clone(!0),d.show(),c.afterElement.detach()),o(g,l)&&(h="children"==l.wrap?i(g,l,d):s(g,n,g,l,d)),g.replaceWith(g.contents()),g=null,t.isFunction(l.callback)&&l.callback.call(n[0],h,r),c.isTruncated=h,h}).bind("isTruncated.dot",function(t,e){return t.preventDefault(),t.stopPropagation(),"function"==typeof e&&e.call(n[0],c.isTruncated),c.isTruncated}).bind("originalContent.dot",function(t,e){return t.preventDefault(),t.stopPropagation(),"function"==typeof e&&e.call(n[0],r),r}).bind("destroy.dot",function(t){t.preventDefault(),t.stopPropagation(),n.unwatch().unbind_events().contents().detach().end().append(r).attr("style",n.data("dotdotdot-style")||"").data("dotdotdot",!1)}),n},n.unbind_events=function(){return n.unbind(".dot"),n},n.watch=function(){if(n.unwatch(),"window"==l.watch){var e=t(window),i=e.width(),s=e.height();e.bind("resize.dot"+c.dotId,function(){i==e.width()&&s==e.height()&&l.windowResizeFix||(i=e.width(),s=e.height(),h&&clearInterval(h),h=setTimeout(function(){n.trigger("update.dot")},100))})}else d=a(n),h=setInterval(function(){if(n.is(":visible")){var t=a(n);d.width==t.width&&d.height==t.height||(n.trigger("update.dot"),d=t)}},500);return n},n.unwatch=function(){return t(window).unbind("resize.dot"+c.dotId),h&&clearInterval(h),n};var r=n.contents(),l=t.extend(!0,{},t.fn.dotdotdot.defaults,e),c={},d={},h=null,g=null;return l.lastCharacter.remove instanceof Array||(l.lastCharacter.remove=t.fn.dotdotdot.defaultArrays.lastCharacter.remove),l.lastCharacter.noEllipsis instanceof Array||(l.lastCharacter.noEllipsis=t.fn.dotdotdot.defaultArrays.lastCharacter.noEllipsis),c.afterElement=p(l.after,n),c.isTruncated=!1,c.dotId=f++,n.data("dotdotdot",!0).bind_events().trigger("update.dot"),l.watch&&n.watch(),n},t.fn.dotdotdot.defaults={ellipsis:"... ",wrap:"word",fallbackToLetter:!0,lastCharacter:{},tolerance:0,callback:null,after:null,height:null,watch:!1,windowResizeFix:!0},t.fn.dotdotdot.defaultArrays={lastCharacter:{remove:[" ","　",",",";",".","!","?"],noEllipsis:[]}},t.fn.dotdotdot.debug=function(t){};var f=1,g=t.fn.html;t.fn.html=function(i){return i!=e&&!t.isFunction(i)&&this.data("dotdotdot")?this.trigger("update",[i]):g.apply(this,arguments)};var m=t.fn.text;t.fn.text=function(i){return i!=e&&!t.isFunction(i)&&this.data("dotdotdot")?(i=t("<div />").text(i).html(),this.trigger("update",[i])):m.apply(this,arguments)}}}(jQuery),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof module&&module.exports?module.exports=t(require("jquery")):t(jQuery)}(function(t){var e=-1,i=-1,s=function(t){return parseFloat(t)||0},n=function(e){var i=1,n=t(e),o=null,r=[];return n.each(function(){var e=t(this),n=e.offset().top-s(e.css("margin-top")),a=r.length>0?r[r.length-1]:null;null===a?r.push(e):Math.floor(Math.abs(o-n))<=i?r[r.length-1]=a.add(e):r.push(e),o=n}),r},o=function(e){var i={byRow:!0,property:"height",target:null,remove:!1};return"object"==typeof e?t.extend(i,e):("boolean"==typeof e?i.byRow=e:"remove"===e&&(i.remove=!0),i)},r=t.fn.matchHeight=function(e){var i=o(e);if(i.remove){var s=this;return this.css(i.property,""),t.each(r._groups,function(t,e){e.elements=e.elements.not(s)}),this}return this.length<=1&&!i.target?this:(r._groups.push({elements:this,options:i}),r._apply(this,i),this)};r.version="0.7.2",r._groups=[],r._throttle=80,r._maintainScroll=!1,r._beforeUpdate=null,r._afterUpdate=null,r._rows=n,r._parse=s,r._parseOptions=o,r._apply=function(e,i){var a=o(i),l=t(e),c=[l],d=t(window).scrollTop(),h=t("html").outerHeight(!0),p=l.parents().filter(":hidden");return p.each(function(){var e=t(this);e.data("style-cache",e.attr("style"))}),p.css("display","block"),a.byRow&&!a.target&&(l.each(function(){var e=t(this),i=e.css("display");"inline-block"!==i&&"flex"!==i&&"inline-flex"!==i&&(i="block"),e.data("style-cache",e.attr("style")),e.css({display:i,"padding-top":"0","padding-bottom":"0","margin-top":"0","margin-bottom":"0","border-top-width":"0","border-bottom-width":"0",height:"100px",overflow:"hidden"})}),c=n(l),l.each(function(){var e=t(this);e.attr("style",e.data("style-cache")||"")})),t.each(c,function(e,i){var n=t(i),o=0;if(a.target)o=a.target.outerHeight(!1);else{if(a.byRow&&n.length<=1)return void n.css(a.property,"");n.each(function(){var e=t(this),i=e.attr("style"),s=e.css("display");"inline-block"!==s&&"flex"!==s&&"inline-flex"!==s&&(s="block");var n={display:s};n[a.property]="",e.css(n),e.outerHeight(!1)>o&&(o=e.outerHeight(!1)),i?e.attr("style",i):e.css("display","")})}n.each(function(){var e=t(this),i=0;a.target&&e.is(a.target)||("border-box"!==e.css("box-sizing")&&(i+=s(e.css("border-top-width"))+s(e.css("border-bottom-width")),i+=s(e.css("padding-top"))+s(e.css("padding-bottom"))),e.css(a.property,o-i+"px"))})}),p.each(function(){var e=t(this);e.attr("style",e.data("style-cache")||null)}),r._maintainScroll&&t(window).scrollTop(d/h*t("html").outerHeight(!0)),this},r._applyDataApi=function(){var e={};t("[data-match-height], [data-mh]").each(function(){var i=t(this),s=i.attr("data-mh")||i.attr("data-match-height");s in e?e[s]=e[s].add(i):e[s]=i}),t.each(e,function(){this.matchHeight(!0)})};var a=function(e){r._beforeUpdate&&r._beforeUpdate(e,r._groups),t.each(r._groups,function(){r._apply(this.elements,this.options)}),r._afterUpdate&&r._afterUpdate(e,r._groups)};r._update=function(s,n){if(n&&"resize"===n.type){var o=t(window).width();if(o===e)return;e=o}s?i===-1&&(i=setTimeout(function(){a(n),i=-1},r._throttle)):a(n)},t(r._applyDataApi);var l=t.fn.on?"on":"bind";t(window)[l]("load",function(t){r._update(!1,t)}),t(window)[l]("resize orientationchange",function(t){r._update(!0,t)})}),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof module&&module.exports?module.exports=t(require("jquery")):t(jQuery)}(function(t){t.extend(t.fn,{validate:function(e){if(!this.length)return void(e&&e.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing."));var i=t.data(this[0],"validator");return i?i:(this.attr("novalidate","novalidate"),i=new t.validator(e,this[0]),t.data(this[0],"validator",i),i.settings.onsubmit&&(this.on("click.validate",":submit",function(e){i.submitButton=e.currentTarget,t(this).hasClass("cancel")&&(i.cancelSubmit=!0),void 0!==t(this).attr("formnovalidate")&&(i.cancelSubmit=!0);
}),this.on("submit.validate",function(e){function s(){var s,n;return i.submitButton&&(i.settings.submitHandler||i.formSubmitted)&&(s=t("<input type='hidden'/>").attr("name",i.submitButton.name).val(t(i.submitButton).val()).appendTo(i.currentForm)),!(i.settings.submitHandler&&!i.settings.debug)||(n=i.settings.submitHandler.call(i,i.currentForm,e),s&&s.remove(),void 0!==n&&n)}return i.settings.debug&&e.preventDefault(),i.cancelSubmit?(i.cancelSubmit=!1,s()):i.form()?i.pendingRequest?(i.formSubmitted=!0,!1):s():(i.focusInvalid(),!1)})),i)},valid:function(){var e,i,s;return t(this[0]).is("form")?e=this.validate().form():(s=[],e=!0,i=t(this[0].form).validate(),this.each(function(){e=i.element(this)&&e,e||(s=s.concat(i.errorList))}),i.errorList=s),e},rules:function(e,i){var s,n,o,r,a,l,c=this[0],d="undefined"!=typeof this.attr("contenteditable")&&"false"!==this.attr("contenteditable");if(null!=c&&(!c.form&&d&&(c.form=this.closest("form")[0],c.name=this.attr("name")),null!=c.form)){if(e)switch(s=t.data(c.form,"validator").settings,n=s.rules,o=t.validator.staticRules(c),e){case"add":t.extend(o,t.validator.normalizeRule(i)),delete o.messages,n[c.name]=o,i.messages&&(s.messages[c.name]=t.extend(s.messages[c.name],i.messages));break;case"remove":return i?(l={},t.each(i.split(/\s/),function(t,e){l[e]=o[e],delete o[e]}),l):(delete n[c.name],o)}return r=t.validator.normalizeRules(t.extend({},t.validator.classRules(c),t.validator.attributeRules(c),t.validator.dataRules(c),t.validator.staticRules(c)),c),r.required&&(a=r.required,delete r.required,r=t.extend({required:a},r)),r.remote&&(a=r.remote,delete r.remote,r=t.extend(r,{remote:a})),r}}});var e=function(t){return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")};t.extend(t.expr.pseudos||t.expr[":"],{blank:function(i){return!e(""+t(i).val())},filled:function(i){var s=t(i).val();return null!==s&&!!e(""+s)},unchecked:function(e){return!t(e).prop("checked")}}),t.validator=function(e,i){this.settings=t.extend(!0,{},t.validator.defaults,e),this.currentForm=i,this.init()},t.validator.format=function(e,i){return 1===arguments.length?function(){var i=t.makeArray(arguments);return i.unshift(e),t.validator.format.apply(this,i)}:void 0===i?e:(arguments.length>2&&i.constructor!==Array&&(i=t.makeArray(arguments).slice(1)),i.constructor!==Array&&(i=[i]),t.each(i,function(t,i){e=e.replace(new RegExp("\\{"+t+"\\}","g"),function(){return i})}),e)},t.extend(t.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",pendingClass:"pending",validClass:"valid",errorElement:"label",focusCleanup:!1,focusInvalid:!0,errorContainer:t([]),errorLabelContainer:t([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(t){this.lastActive=t,this.settings.focusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,t,this.settings.errorClass,this.settings.validClass),this.hideThese(this.errorsFor(t)))},onfocusout:function(t){this.checkable(t)||!(t.name in this.submitted)&&this.optional(t)||this.element(t)},onkeyup:function(e,i){var s=[16,17,18,20,35,36,37,38,39,40,45,144,225];9===i.which&&""===this.elementValue(e)||t.inArray(i.keyCode,s)!==-1||(e.name in this.submitted||e.name in this.invalid)&&this.element(e)},onclick:function(t){t.name in this.submitted?this.element(t):t.parentNode.name in this.submitted&&this.element(t.parentNode)},highlight:function(e,i,s){"radio"===e.type?this.findByName(e.name).addClass(i).removeClass(s):t(e).addClass(i).removeClass(s)},unhighlight:function(e,i,s){"radio"===e.type?this.findByName(e.name).removeClass(i).addClass(s):t(e).removeClass(i).addClass(s)}},setDefaults:function(e){t.extend(t.validator.defaults,e)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",equalTo:"Please enter the same value again.",maxlength:t.validator.format("Please enter no more than {0} characters."),minlength:t.validator.format("Please enter at least {0} characters."),rangelength:t.validator.format("Please enter a value between {0} and {1} characters long."),range:t.validator.format("Please enter a value between {0} and {1}."),max:t.validator.format("Please enter a value less than or equal to {0}."),min:t.validator.format("Please enter a value greater than or equal to {0}."),step:t.validator.format("Please enter a multiple of {0}.")},autoCreateRanges:!1,prototype:{init:function(){function e(e){var i="undefined"!=typeof t(this).attr("contenteditable")&&"false"!==t(this).attr("contenteditable");if(!this.form&&i&&(this.form=t(this).closest("form")[0],this.name=t(this).attr("name")),s===this.form){var n=t.data(this.form,"validator"),o="on"+e.type.replace(/^validate/,""),r=n.settings;r[o]&&!t(this).is(r.ignore)&&r[o].call(n,this,e)}}this.labelContainer=t(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||t(this.currentForm),this.containers=t(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var i,s=this.currentForm,n=this.groups={};t.each(this.settings.groups,function(e,i){"string"==typeof i&&(i=i.split(/\s/)),t.each(i,function(t,i){n[i]=e})}),i=this.settings.rules,t.each(i,function(e,s){i[e]=t.validator.normalizeRule(s)}),t(this.currentForm).on("focusin.validate focusout.validate keyup.validate",":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'], [type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'], [type='radio'], [type='checkbox'], [contenteditable], [type='button']",e).on("click.validate","select, option, [type='radio'], [type='checkbox']",e),this.settings.invalidHandler&&t(this.currentForm).on("invalid-form.validate",this.settings.invalidHandler)},form:function(){return this.checkForm(),t.extend(this.submitted,this.errorMap),this.invalid=t.extend({},this.errorMap),this.valid()||t(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var t=0,e=this.currentElements=this.elements();e[t];t++)this.check(e[t]);return this.valid()},element:function(e){var i,s,n=this.clean(e),o=this.validationTargetFor(n),r=this,a=!0;return void 0===o?delete this.invalid[n.name]:(this.prepareElement(o),this.currentElements=t(o),s=this.groups[o.name],s&&t.each(this.groups,function(t,e){e===s&&t!==o.name&&(n=r.validationTargetFor(r.clean(r.findByName(t))),n&&n.name in r.invalid&&(r.currentElements.push(n),a=r.check(n)&&a))}),i=this.check(o)!==!1,a=a&&i,i?this.invalid[o.name]=!1:this.invalid[o.name]=!0,this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),t(e).attr("aria-invalid",!i)),a},showErrors:function(e){if(e){var i=this;t.extend(this.errorMap,e),this.errorList=t.map(this.errorMap,function(t,e){return{message:t,element:i.findByName(e)[0]}}),this.successList=t.grep(this.successList,function(t){return!(t.name in e)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){t.fn.resetForm&&t(this.currentForm).resetForm(),this.invalid={},this.submitted={},this.prepareForm(),this.hideErrors();var e=this.elements().removeData("previousValue").removeAttr("aria-invalid");this.resetElements(e)},resetElements:function(t){var e;if(this.settings.unhighlight)for(e=0;t[e];e++)this.settings.unhighlight.call(this,t[e],this.settings.errorClass,""),this.findByName(t[e].name).removeClass(this.settings.validClass);else t.removeClass(this.settings.errorClass).removeClass(this.settings.validClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(t){var e,i=0;for(e in t)void 0!==t[e]&&null!==t[e]&&t[e]!==!1&&i++;return i},hideErrors:function(){this.hideThese(this.toHide)},hideThese:function(t){t.not(this.containers).text(""),this.addWrapper(t).hide()},valid:function(){return 0===this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{t(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").trigger("focus").trigger("focusin")}catch(e){}},findLastActive:function(){var e=this.lastActive;return e&&1===t.grep(this.errorList,function(t){return t.element.name===e.name}).length&&e},elements:function(){var e=this,i={};return t(this.currentForm).find("input, select, textarea, [contenteditable]").not(":submit, :reset, :image, :disabled").not(this.settings.ignore).filter(function(){var s=this.name||t(this).attr("name"),n="undefined"!=typeof t(this).attr("contenteditable")&&"false"!==t(this).attr("contenteditable");return!s&&e.settings.debug&&window.console&&console.error("%o has no name assigned",this),n&&(this.form=t(this).closest("form")[0],this.name=s),this.form===e.currentForm&&(!(s in i||!e.objectLength(t(this).rules()))&&(i[s]=!0,!0))})},clean:function(e){return t(e)[0]},errors:function(){var e=this.settings.errorClass.split(" ").join(".");return t(this.settings.errorElement+"."+e,this.errorContext)},resetInternals:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=t([]),this.toHide=t([])},reset:function(){this.resetInternals(),this.currentElements=t([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(t){this.reset(),this.toHide=this.errorsFor(t)},elementValue:function(e){var i,s,n=t(e),o=e.type,r="undefined"!=typeof n.attr("contenteditable")&&"false"!==n.attr("contenteditable");return"radio"===o||"checkbox"===o?this.findByName(e.name).filter(":checked").val():"number"===o&&"undefined"!=typeof e.validity?e.validity.badInput?"NaN":n.val():(i=r?n.text():n.val(),"file"===o?"C:\\fakepath\\"===i.substr(0,12)?i.substr(12):(s=i.lastIndexOf("/"),s>=0?i.substr(s+1):(s=i.lastIndexOf("\\"),s>=0?i.substr(s+1):i)):"string"==typeof i?i.replace(/\r/g,""):i)},check:function(e){e=this.validationTargetFor(this.clean(e));var i,s,n,o,r=t(e).rules(),a=t.map(r,function(t,e){return e}).length,l=!1,c=this.elementValue(e);this.abortRequest(e),"function"==typeof r.normalizer?o=r.normalizer:"function"==typeof this.settings.normalizer&&(o=this.settings.normalizer),o&&(c=o.call(e,c),delete r.normalizer);for(s in r){n={method:s,parameters:r[s]};try{if(i=t.validator.methods[s].call(this,c,e,n.parameters),"dependency-mismatch"===i&&1===a){l=!0;continue}if(l=!1,"pending"===i)return void(this.toHide=this.toHide.not(this.errorsFor(e)));if(!i)return this.formatAndAdd(e,n),!1}catch(d){throw this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+e.id+", check the '"+n.method+"' method.",d),d instanceof TypeError&&(d.message+=".  Exception occurred when checking element "+e.id+", check the '"+n.method+"' method."),d}}if(!l)return this.objectLength(r)&&this.successList.push(e),!0},customDataMessage:function(e,i){return t(e).data("msg"+i.charAt(0).toUpperCase()+i.substring(1).toLowerCase())||t(e).data("msg")},customMessage:function(t,e){var i=this.settings.messages[t];return i&&(i.constructor===String?i:i[e])},findDefined:function(){for(var t=0;t<arguments.length;t++)if(void 0!==arguments[t])return arguments[t]},defaultMessage:function(e,i){"string"==typeof i&&(i={method:i});var s=this.findDefined(this.customMessage(e.name,i.method),this.customDataMessage(e,i.method),!this.settings.ignoreTitle&&e.title||void 0,t.validator.messages[i.method],"<strong>Warning: No message defined for "+e.name+"</strong>"),n=/\$?\{(\d+)\}/g;return"function"==typeof s?s=s.call(this,i.parameters,e):n.test(s)&&(s=t.validator.format(s.replace(n,"{$1}"),i.parameters)),s},formatAndAdd:function(t,e){var i=this.defaultMessage(t,e);this.errorList.push({message:i,element:t,method:e.method}),this.errorMap[t.name]=i,this.submitted[t.name]=i},addWrapper:function(t){return this.settings.wrapper&&(t=t.add(t.parent(this.settings.wrapper))),t},defaultShowErrors:function(){var t,e,i;for(t=0;this.errorList[t];t++)i=this.errorList[t],this.settings.highlight&&this.settings.highlight.call(this,i.element,this.settings.errorClass,this.settings.validClass),this.showLabel(i.element,i.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(t=0;this.successList[t];t++)this.showLabel(this.successList[t]);if(this.settings.unhighlight)for(t=0,e=this.validElements();e[t];t++)this.settings.unhighlight.call(this,e[t],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow),this.hideErrors(),this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return t(this.errorList).map(function(){return this.element})},showLabel:function(e,i){var s,n,o,r,a=this.errorsFor(e),l=this.idOrName(e),c=t(e).attr("aria-describedby");a.length?(a.removeClass(this.settings.validClass).addClass(this.settings.errorClass),this.settings&&this.settings.escapeHtml?a.text(i||""):a.html(i||"")):(a=t("<"+this.settings.errorElement+">").attr("id",l+"-error").addClass(this.settings.errorClass),this.settings&&this.settings.escapeHtml?a.text(i||""):a.html(i||""),s=a,this.settings.wrapper&&(s=a.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.length?this.labelContainer.append(s):this.settings.errorPlacement?this.settings.errorPlacement.call(this,s,t(e)):s.insertAfter(e),a.is("label")?a.attr("for",l):0===a.parents("label[for='"+this.escapeCssMeta(l)+"']").length&&(o=a.attr("id"),c?c.match(new RegExp("\\b"+this.escapeCssMeta(o)+"\\b"))||(c+=" "+o):c=o,t(e).attr("aria-describedby",c),n=this.groups[e.name],n&&(r=this,t.each(r.groups,function(e,i){i===n&&t("[name='"+r.escapeCssMeta(e)+"']",r.currentForm).attr("aria-describedby",a.attr("id"))})))),!i&&this.settings.success&&(a.text(""),"string"==typeof this.settings.success?a.addClass(this.settings.success):this.settings.success(a,e)),this.toShow=this.toShow.add(a)},errorsFor:function(e){var i=this.escapeCssMeta(this.idOrName(e)),s=t(e).attr("aria-describedby"),n="label[for='"+i+"'], label[for='"+i+"'] *";return s&&(n=n+", #"+this.escapeCssMeta(s).replace(/\s+/g,", #")),this.errors().filter(n)},escapeCssMeta:function(t){return void 0===t?"":t.replace(/([\\!"#$%&'()*+,.\/:;<=>?@\[\]^`{|}~])/g,"\\$1")},idOrName:function(t){return this.groups[t.name]||(this.checkable(t)?t.name:t.id||t.name)},validationTargetFor:function(e){return this.checkable(e)&&(e=this.findByName(e.name)),t(e).not(this.settings.ignore)[0]},checkable:function(t){return/radio|checkbox/i.test(t.type)},findByName:function(e){return t(this.currentForm).find("[name='"+this.escapeCssMeta(e)+"']")},getLength:function(e,i){switch(i.nodeName.toLowerCase()){case"select":return t("option:selected",i).length;case"input":if(this.checkable(i))return this.findByName(i.name).filter(":checked").length}return e.length},depend:function(t,e){return!this.dependTypes[typeof t]||this.dependTypes[typeof t](t,e)},dependTypes:{"boolean":function(t){return t},string:function(e,i){return!!t(e,i.form).length},"function":function(t,e){return t(e)}},optional:function(e){var i=this.elementValue(e);return!t.validator.methods.required.call(this,i,e)&&"dependency-mismatch"},elementAjaxPort:function(t){return"validate"+t.name},startRequest:function(e){this.pending[e.name]||(this.pendingRequest++,t(e).addClass(this.settings.pendingClass),this.pending[e.name]=!0)},stopRequest:function(e,i){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[e.name],t(e).removeClass(this.settings.pendingClass),i&&0===this.pendingRequest&&this.formSubmitted&&this.form()&&0===this.pendingRequest?(t(this.currentForm).trigger("submit"),this.submitButton&&t("input:hidden[name='"+this.submitButton.name+"']",this.currentForm).remove(),this.formSubmitted=!1):!i&&0===this.pendingRequest&&this.formSubmitted&&(t(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},abortRequest:function(e){var i;this.pending[e.name]&&(i=this.elementAjaxPort(e),t.ajaxAbort(i),this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[e.name],t(e).removeClass(this.settings.pendingClass))},previousValue:function(e,i){return i="string"==typeof i&&i||"remote",t.data(e,"previousValue")||t.data(e,"previousValue",{old:null,valid:!0,message:this.defaultMessage(e,{method:i})})},destroy:function(){this.resetForm(),t(this.currentForm).off(".validate").removeData("validator").find(".validate-equalTo-blur").off(".validate-equalTo").removeClass("validate-equalTo-blur").find(".validate-lessThan-blur").off(".validate-lessThan").removeClass("validate-lessThan-blur").find(".validate-lessThanEqual-blur").off(".validate-lessThanEqual").removeClass("validate-lessThanEqual-blur").find(".validate-greaterThanEqual-blur").off(".validate-greaterThanEqual").removeClass("validate-greaterThanEqual-blur").find(".validate-greaterThan-blur").off(".validate-greaterThan").removeClass("validate-greaterThan-blur")}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(e,i){e.constructor===String?this.classRuleSettings[e]=i:t.extend(this.classRuleSettings,e)},classRules:function(e){var i={},s=t(e).attr("class");return s&&t.each(s.split(" "),function(){this in t.validator.classRuleSettings&&t.extend(i,t.validator.classRuleSettings[this])}),i},normalizeAttributeRule:function(t,e,i,s){/min|max|step/.test(i)&&(null===e||/number|range|text/.test(e))&&(s=Number(s),isNaN(s)&&(s=void 0)),s||0===s?t[i]=s:e===i&&"range"!==e&&(t["date"===e?"dateISO":i]=!0)},attributeRules:function(e){var i,s,n={},o=t(e),r=e.getAttribute("type");for(i in t.validator.methods)"required"===i?(s=e.getAttribute(i),""===s&&(s=!0),s=!!s):s=o.attr(i),this.normalizeAttributeRule(n,r,i,s);return n.maxlength&&/-1|2147483647|524288/.test(n.maxlength)&&delete n.maxlength,n},dataRules:function(e){var i,s,n={},o=t(e),r=e.getAttribute("type");for(i in t.validator.methods)s=o.data("rule"+i.charAt(0).toUpperCase()+i.substring(1).toLowerCase()),""===s&&(s=!0),this.normalizeAttributeRule(n,r,i,s);return n},staticRules:function(e){var i={},s=t.data(e.form,"validator");return s.settings.rules&&(i=t.validator.normalizeRule(s.settings.rules[e.name])||{}),i},normalizeRules:function(e,i){return t.each(e,function(s,n){if(n===!1)return void delete e[s];if(n.param||n.depends){var o=!0;switch(typeof n.depends){case"string":o=!!t(n.depends,i.form).length;break;case"function":o=n.depends.call(i,i)}o?e[s]=void 0===n.param||n.param:(t.data(i.form,"validator").resetElements(t(i)),delete e[s])}}),t.each(e,function(t,s){e[t]="function"==typeof s&&"normalizer"!==t?s(i):s}),t.each(["minlength","maxlength"],function(){e[this]&&(e[this]=Number(e[this]))}),t.each(["rangelength","range"],function(){var t;e[this]&&(Array.isArray(e[this])?e[this]=[Number(e[this][0]),Number(e[this][1])]:"string"==typeof e[this]&&(t=e[this].replace(/[\[\]]/g,"").split(/[\s,]+/),e[this]=[Number(t[0]),Number(t[1])]))}),t.validator.autoCreateRanges&&(null!=e.min&&null!=e.max&&(e.range=[e.min,e.max],delete e.min,delete e.max),null!=e.minlength&&null!=e.maxlength&&(e.rangelength=[e.minlength,e.maxlength],delete e.minlength,delete e.maxlength)),e},normalizeRule:function(e){if("string"==typeof e){var i={};t.each(e.split(/\s/),function(){i[this]=!0}),e=i}return e},addMethod:function(e,i,s){t.validator.methods[e]=i,t.validator.messages[e]=void 0!==s?s:t.validator.messages[e],i.length<3&&t.validator.addClassRules(e,t.validator.normalizeRule(e))},methods:{required:function(e,i,s){if(!this.depend(s,i))return"dependency-mismatch";if("select"===i.nodeName.toLowerCase()){var n=t(i).val();return n&&n.length>0}return this.checkable(i)?this.getLength(e,i)>0:void 0!==e&&null!==e&&e.length>0},email:function(t,e){return this.optional(e)||/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(t)},url:function(t,e){return this.optional(e)||/^(?:(?:(?:https?|ftp):)?\/\/)(?:(?:[^\]\[?\/<~#`!@$^&*()+=}|:";',>{ ]|%[0-9A-Fa-f]{2})+(?::(?:[^\]\[?\/<~#`!@$^&*()+=}|:";',>{ ]|%[0-9A-Fa-f]{2})*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[\/?#]\S*)?$/i.test(t)},date:function(){var t=!1;return function(e,i){return t||(t=!0,this.settings.debug&&window.console&&console.warn("The `date` method is deprecated and will be removed in version '2.0.0'.\nPlease don't use it, since it relies on the Date constructor, which\nbehaves very differently across browsers and locales. Use `dateISO`\ninstead or one of the locale specific methods in `localizations/`\nand `additional-methods.js`.")),this.optional(i)||!/Invalid|NaN/.test(new Date(e).toString())}}(),dateISO:function(t,e){return this.optional(e)||/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(t)},number:function(t,e){return this.optional(e)||/^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(t)},digits:function(t,e){return this.optional(e)||/^\d+$/.test(t)},minlength:function(t,e,i){var s=Array.isArray(t)?t.length:this.getLength(t,e);return this.optional(e)||s>=i},maxlength:function(t,e,i){var s=Array.isArray(t)?t.length:this.getLength(t,e);return this.optional(e)||s<=i},rangelength:function(t,e,i){var s=Array.isArray(t)?t.length:this.getLength(t,e);return this.optional(e)||s>=i[0]&&s<=i[1]},min:function(t,e,i){return this.optional(e)||t>=i},max:function(t,e,i){return this.optional(e)||t<=i},range:function(t,e,i){return this.optional(e)||t>=i[0]&&t<=i[1]},step:function(e,i,s){var n,o=t(i).attr("type"),r="Step attribute on input type "+o+" is not supported.",a=["text","number","range"],l=new RegExp("\\b"+o+"\\b"),c=o&&!l.test(a.join()),d=function(t){var e=(""+t).match(/(?:\.(\d+))?$/);return e&&e[1]?e[1].length:0},h=function(t){return Math.round(t*Math.pow(10,n))},p=!0;if(c)throw new Error(r);return n=d(s),(d(e)>n||h(e)%h(s)!==0)&&(p=!1),this.optional(i)||p},equalTo:function(e,i,s){var n=t(s);return this.settings.onfocusout&&n.not(".validate-equalTo-blur").length&&n.addClass("validate-equalTo-blur").on("blur.validate-equalTo",function(){t(i).valid()}),e===n.val()},remote:function(e,i,s,n){if(this.optional(i))return"dependency-mismatch";n="string"==typeof n&&n||"remote";var o,r,a,l=this.previousValue(i,n);return this.settings.messages[i.name]||(this.settings.messages[i.name]={}),l.originalMessage=l.originalMessage||this.settings.messages[i.name][n],this.settings.messages[i.name][n]=l.message,s="string"==typeof s&&{url:s}||s,a=t.param(t.extend({data:e},s.data)),l.old===a?l.valid:(l.old=a,o=this,this.startRequest(i),r={},r[i.name]=e,t.ajax(t.extend(!0,{mode:"abort",port:this.elementAjaxPort(i),dataType:"json",data:r,context:o.currentForm,success:function(t){var s,r,a,c=t===!0||"true"===t;o.settings.messages[i.name][n]=l.originalMessage,c?(a=o.formSubmitted,o.toHide=o.errorsFor(i),o.formSubmitted=a,o.successList.push(i),o.invalid[i.name]=!1,o.showErrors()):(s={},r=t||o.defaultMessage(i,{method:n,parameters:e}),s[i.name]=l.message=r,o.invalid[i.name]=!0,o.showErrors(s)),l.valid=c,o.stopRequest(i,c)}},s)),"pending")}}});var i,s={};return t.ajaxPrefilter?t.ajaxPrefilter(function(e,i,n){var o=e.port;"abort"===e.mode&&(t.ajaxAbort(o),s[o]=n)}):(i=t.ajax,t.ajax=function(e){var n=("mode"in e?e:t.ajaxSettings).mode,o=("port"in e?e:t.ajaxSettings).port;return"abort"===n?(t.ajaxAbort(o),s[o]=i.apply(this,arguments),s[o]):i.apply(this,arguments)}),t.ajaxAbort=function(t){s[t]&&(s[t].abort(),delete s[t])},t}),function(t,e,i){function s(t,i){var s=e(t);s.data(o,this),this._$element=s,this.shares=[],this._init(i),this._render()}var n="JSSocials",o=n,r=function(t,i){return e.isFunction(t)?t.apply(i,e.makeArray(arguments).slice(2)):t},a=/(\.(jpeg|png|gif|bmp|svg)$|^data:image\/(jpeg|png|gif|bmp|svg\+xml);base64)/i,l=/(&?[a-zA-Z0-9]+=)?\{([a-zA-Z0-9]+)\}/g,c={G:1e9,M:1e6,K:1e3},d={};s.prototype={url:"",text:"",shareIn:"blank",showLabel:function(t){return this.showCount===!1?t>this.smallScreenWidth:t>=this.largeScreenWidth},showCount:function(t){return!(t<=this.smallScreenWidth)||"inside"},smallScreenWidth:640,largeScreenWidth:1024,resizeTimeout:200,elementClass:"jssocials",sharesClass:"jssocials-shares",shareClass:"jssocials-share",shareButtonClass:"jssocials-share-button",shareLinkClass:"jssocials-share-link",shareLogoClass:"jssocials-share-logo",shareLabelClass:"jssocials-share-label",shareLinkCountClass:"jssocials-share-link-count",shareCountBoxClass:"jssocials-share-count-box",shareCountClass:"jssocials-share-count",shareZeroCountClass:"jssocials-share-no-count",_init:function(t){this._initDefaults(),e.extend(this,t),this._initShares(),this._attachWindowResizeCallback()},_initDefaults:function(){this.url=t.location.href,this.text=e.trim(e("meta[name=description]").attr("content")||e("title").text())},_initShares:function(){this.shares=e.map(this.shares,e.proxy(function(t){"string"==typeof t&&(t={share:t});var i=t.share&&d[t.share];if(!i&&!t.renderer)throw Error("Share '"+t.share+"' is not found");return e.extend({url:this.url,text:this.text},i,t)},this))},_attachWindowResizeCallback:function(){e(t).on("resize",e.proxy(this._windowResizeHandler,this))},_detachWindowResizeCallback:function(){e(t).off("resize",this._windowResizeHandler)},_windowResizeHandler:function(){(e.isFunction(this.showLabel)||e.isFunction(this.showCount))&&(t.clearTimeout(this._resizeTimer),this._resizeTimer=setTimeout(e.proxy(this.refresh,this),this.resizeTimeout))},_render:function(){this._clear(),this._defineOptionsByScreen(),this._$element.addClass(this.elementClass),this._$shares=e("<div>").addClass(this.sharesClass).appendTo(this._$element),this._renderShares()},_defineOptionsByScreen:function(){this._screenWidth=e(t).width(),this._showLabel=r(this.showLabel,this,this._screenWidth),this._showCount=r(this.showCount,this,this._screenWidth)},_renderShares:function(){e.each(this.shares,e.proxy(function(t,e){this._renderShare(e)},this))},_renderShare:function(t){var i;i=e.isFunction(t.renderer)?e(t.renderer()):this._createShare(t),i.addClass(this.shareClass).addClass(t.share?"jssocials-share-"+t.share:"").addClass(t.css).appendTo(this._$shares)},_createShare:function(t){var i=e("<div>"),s=this._createShareLink(t).appendTo(i);if(this._showCount){var n="inside"===this._showCount,o=n?s:e("<div>").addClass(this.shareCountBoxClass).appendTo(i);o.addClass(n?this.shareLinkCountClass:this.shareCountBoxClass),this._renderShareCount(t,o)}return i},_createShareLink:function(t){var i=this._getShareStrategy(t),s=i.call(t,{shareUrl:this._getShareUrl(t)});return s.addClass(this.shareLinkClass).append(this._createShareLogo(t)),this._showLabel&&s.append(this._createShareLabel(t)),e.each(this.on||{},function(i,n){e.isFunction(n)&&s.on(i,e.proxy(n,t))}),s},_getShareStrategy:function(t){var e=p[t.shareIn||this.shareIn];if(!e)throw Error("Share strategy '"+this.shareIn+"' not found");return e},_getShareUrl:function(t){var e=r(t.shareUrl,t);return this._formatShareUrl(e,t)},_createShareLogo:function(t){var i=t.logo,s=a.test(i)?e("<img>").attr("src",t.logo):e("<i>").addClass(i);return s.addClass(this.shareLogoClass),s},_createShareLabel:function(t){return e("<span>").addClass(this.shareLabelClass).text(t.label)},_renderShareCount:function(t,i){var s=e("<span>").addClass(this.shareCountClass);i.addClass(this.shareZeroCountClass).append(s),this._loadCount(t).done(e.proxy(function(t){t&&(i.removeClass(this.shareZeroCountClass),s.text(t))},this))},_loadCount:function(t){var i=e.Deferred(),s=this._getCountUrl(t);if(!s)return i.resolve(0).promise();var n=e.proxy(function(e){i.resolve(this._getCountValue(e,t))},this);return e.getJSON(s).done(n).fail(function(){e.get(s).done(n).fail(function(){i.resolve(0)})}),i.promise()},_getCountUrl:function(t){var e=r(t.countUrl,t);return this._formatShareUrl(e,t)},_getCountValue:function(t,i){var s=(e.isFunction(i.getCount)?i.getCount(t):t)||0;return"string"==typeof s?s:this._formatNumber(s)},_formatNumber:function(t){return e.each(c,function(e,i){if(t>=i)return t=parseFloat((t/i).toFixed(2))+e,!1}),t},_formatShareUrl:function(e,i){return e.replace(l,function(e,s,n){var o=i[n]||"";return o?(s||"")+t.encodeURIComponent(o):""})},_clear:function(){t.clearTimeout(this._resizeTimer),this._$element.empty()},_passOptionToShares:function(t,i){var s=this.shares;e.each(["url","text"],function(n,o){o===t&&e.each(s,function(e,s){s[t]=i})})},_normalizeShare:function(t){return e.isNumeric(t)?this.shares[t]:"string"==typeof t?e.grep(this.shares,function(e){return e.share===t})[0]:t},refresh:function(){this._render()},destroy:function(){this._clear(),this._detachWindowResizeCallback(),this._$element.removeClass(this.elementClass).removeData(o)},option:function(t,e){return 1===arguments.length?this[t]:(this[t]=e,this._passOptionToShares(t,e),void this.refresh())},shareOption:function(t,e,i){return t=this._normalizeShare(t),2===arguments.length?t[e]:(t[e]=i,void this.refresh())}},e.fn.jsSocials=function(t){var n=e.makeArray(arguments),r=n.slice(1),a=this;return this.each(function(){var n,l=e(this),c=l.data(o);if(c)if("string"==typeof t){if(n=c[t].apply(c,r),n!==i&&n!==c)return a=n,!1}else c._detachWindowResizeCallback(),c._init(t),c._render();else new s(l,t)}),a};var h=function(t){var i;e.isPlainObject(t)?i=s.prototype:(i=d[t],t=arguments[1]||{}),e.extend(i,t)},p={popup:function(i){return e("<a>").attr("href","#").on("click",function(){return t.open(i.shareUrl,null,"width=600, height=400, location=0, menubar=0, resizeable=0, scrollbars=0, status=0, titlebar=0, toolbar=0"),!1})},blank:function(t){return e("<a>").attr({target:"_blank",href:t.shareUrl})},self:function(t){return e("<a>").attr({target:"_self",href:t.shareUrl})}};t.jsSocials={Socials:s,shares:d,shareStrategies:p,setDefaults:h}}(window,jQuery),function(t,e,i,s){e.extend(i.shares,{email:{label:"E-mail",logo:"fa fa-at",shareUrl:"mailto:{to}?subject={text}&body={url}",countUrl:"",shareIn:"self"},twitter:{label:"Tweet",logo:"fa fa-twitter",shareUrl:"https://twitter.com/share?url={url}&text={text}&via={via}&hashtags={hashtags}",countUrl:""},facebook:{label:"Like",logo:"fa fa-facebook",shareUrl:"https://facebook.com/sharer/sharer.php?u={url}",countUrl:"https://graph.facebook.com/?id={url}",getCount:function(t){return t.share&&t.share.share_count||0}},vkontakte:{label:"Like",logo:"fa fa-vk",shareUrl:"https://vk.com/share.php?url={url}&title={title}&description={text}",countUrl:"https://vk.com/share.php?act=count&index=1&url={url}",getCount:function(t){return parseInt(t.slice(15,-2).split(", ")[1])}},googleplus:{label:"+1",logo:"fa fa-google",shareUrl:"https://plus.google.com/share?url={url}",countUrl:""},linkedin:{label:"Share",logo:"fa fa-linkedin",shareUrl:"https://www.linkedin.com/shareArticle?mini=true&url={url}",countUrl:"https://www.linkedin.com/countserv/count/share?format=jsonp&url={url}&callback=?",getCount:function(t){return t.count}},pinterest:{label:"Pin it",logo:"fa fa-pinterest",shareUrl:"https://pinterest.com/pin/create/bookmarklet/?media={media}&url={url}&description={text}",countUrl:"https://api.pinterest.com/v1/urls/count.json?&url={url}&callback=?",getCount:function(t){return t.count}},stumbleupon:{label:"Share",logo:"fa fa-stumbleupon",shareUrl:"http://www.stumbleupon.com/submit?url={url}&title={title}",
countUrl:"https://cors-anywhere.herokuapp.com/https://www.stumbleupon.com/services/1.01/badge.getinfo?url={url}",getCount:function(t){return t.result.views}},telegram:{label:"Telegram",logo:"fa fa-paper-plane",shareUrl:"tg://msg?text={url} {text}",countUrl:"",shareIn:"self"},whatsapp:{label:"WhatsApp",logo:"fa fa-whatsapp",shareUrl:"whatsapp://send?text={url} {text}",countUrl:"",shareIn:"self"},line:{label:"LINE",logo:"fa fa-comment",shareUrl:"http://line.me/R/msg/text/?{text} {url}",countUrl:""},viber:{label:"Viber",logo:"fa fa-volume-control-phone",shareUrl:"viber://forward?text={url} {text}",countUrl:"",shareIn:"self"},pocket:{label:"Pocket",logo:"fa fa-get-pocket",shareUrl:"https://getpocket.com/save?url={url}&title={title}",countUrl:""},messenger:{label:"Share",logo:"fa fa-commenting",shareUrl:"fb-messenger://share?link={url}",countUrl:"",shareIn:"self"}})}(window,jQuery,window.jsSocials),window.matchMedia||(window.matchMedia=function(t){"use strict";var e=t.document,i=e.documentElement,s=[],n=0,o="",r={},a=/\s*(only|not)?\s*(screen|print|[a-z\-]+)\s*(and)?\s*/i,l=/^\s*\(\s*(-[a-z]+-)?(min-|max-)?([a-z\-]+)\s*(:?\s*([0-9]+(\.[0-9]+)?|portrait|landscape)(px|em|dppx|dpcm|rem|%|in|cm|mm|ex|pt|pc|\/([0-9]+(\.[0-9]+)?))?)?\s*\)\s*$/,c=0,d=function(t){var e=t.indexOf(",")!==-1&&t.split(",")||[t],i=e.length-1,s=i,n=null,c=null,d="",h=0,p=!1,u="",f="",g=null,m=0,v=0,y=null,w="",b="",_="",k="",T="",x=!1;if(""===t)return!0;do if(n=e[s-i],p=!1,c=n.match(a),c&&(d=c[0],h=c.index),!c||n.substring(0,h).indexOf("(")===-1&&(h||!c[3]&&d!==c.input))x=!1;else{if(f=n,p="not"===c[1],h||(u=c[2],f=n.substring(d.length)),x=u===o||"all"===u||""===u,g=f.indexOf(" and ")!==-1&&f.split(" and ")||[f],m=g.length-1,v=m,x&&m>=0&&""!==f)do{if(y=g[m].match(l),!y||!r[y[3]]){x=!1;break}if(w=y[2],b=y[5],k=b,_=y[7],T=r[y[3]],_&&(k="px"===_?Number(b):"em"===_||"rem"===_?16*b:y[8]?(b/y[8]).toFixed(2):"dppx"===_?96*b:"dpcm"===_?.3937*b:Number(b)),x="min-"===w&&k?T>=k:"max-"===w&&k?T<=k:k?T===k:!!T,!x)break}while(m--);if(x)break}while(i--);return p?!x:x},h=function(){var e=t.innerWidth||i.clientWidth,s=t.innerHeight||i.clientHeight,n=t.screen.width,o=t.screen.height,a=t.screen.colorDepth,l=t.devicePixelRatio;r.width=e,r.height=s,r["aspect-ratio"]=(e/s).toFixed(2),r["device-width"]=n,r["device-height"]=o,r["device-aspect-ratio"]=(n/o).toFixed(2),r.color=a,r["color-index"]=Math.pow(2,a),r.orientation=s>=e?"portrait":"landscape",r.resolution=l&&96*l||t.screen.deviceXDPI||96,r["device-pixel-ratio"]=l||1},p=function(){clearTimeout(c),c=setTimeout(function(){var e=null,i=n-1,o=i,r=!1;if(i>=0){h();do if(e=s[o-i],e&&(r=d(e.mql.media),(r&&!e.mql.matches||!r&&e.mql.matches)&&(e.mql.matches=r,e.listeners)))for(var a=0,l=e.listeners.length;a<l;a++)e.listeners[a]&&e.listeners[a].call(t,e.mql);while(i--)}},10)},u=function(){var i=e.getElementsByTagName("head")[0],s=e.createElement("style"),n=null,r=["screen","print","speech","projection","handheld","tv","braille","embossed","tty"],a=0,l=r.length,c="#mediamatchjs { position: relative; z-index: 0; }",d="",u=t.addEventListener||(d="on")&&t.attachEvent;for(s.type="text/css",s.id="mediamatchjs",i.appendChild(s),n=t.getComputedStyle&&t.getComputedStyle(s)||s.currentStyle;a<l;a++)c+="@media "+r[a]+" { #mediamatchjs { position: relative; z-index: "+a+" } }";s.styleSheet?s.styleSheet.cssText=c:s.textContent=c,o=r[1*n.zIndex||0],i.removeChild(s),h(),u(d+"resize",p,!1),u(d+"orientationchange",p,!1)};return u(),function(t){var e=n,i={matches:!1,media:t,addListener:function(t){s[e].listeners||(s[e].listeners=[]),t&&s[e].listeners.push(t)},removeListener:function(t){var i=s[e],n=0,o=0;if(i)for(o=i.listeners.length;n<o;n++)i.listeners[n]===t&&i.listeners.splice(n,1)}};return""===t?(i.matches=!0,i):(i.matches=d(t),n=s.push({mql:i,listeners:null}),i)}}(window)),!function(t,e,i){function s(t,e){return typeof t===e}function n(){var t,e,i,n,o,r,a;for(var l in b)if(b.hasOwnProperty(l)){if(t=[],e=b[l],e.name&&(t.push(e.name.toLowerCase()),e.options&&e.options.aliases&&e.options.aliases.length))for(i=0;i<e.options.aliases.length;i++)t.push(e.options.aliases[i].toLowerCase());for(n=s(e.fn,"function")?e.fn():e.fn,o=0;o<t.length;o++)r=t[o],a=r.split("."),1===a.length?k[a[0]]=n:(!k[a[0]]||k[a[0]]instanceof Boolean||(k[a[0]]=new Boolean(k[a[0]])),k[a[0]][a[1]]=n),T.push((n?"":"no-")+a.join("-"))}}function o(t){var e=x.className,i=k._config.classPrefix||"";if(C&&(e=e.baseVal),k._config.enableJSClass){var s=new RegExp("(^|\\s)"+i+"no-js(\\s|$)");e=e.replace(s,"$1"+i+"js$2")}k._config.enableClasses&&(e+=" "+i+t.join(" "+i),C?x.className.baseVal=e:x.className=e)}function r(t,e){return!!~(""+t).indexOf(e)}function a(){return"function"!=typeof e.createElement?e.createElement(arguments[0]):C?e.createElementNS.call(e,"http://www.w3.org/2000/svg",arguments[0]):e.createElement.apply(e,arguments)}function l(){var t=e.body;return t||(t=a(C?"svg":"body"),t.fake=!0),t}function c(t,i,s,n){var o,r,c,d,h="modernizr",p=a("div"),u=l();if(parseInt(s,10))for(;s--;)c=a("div"),c.id=n?n[s]:h+(s+1),p.appendChild(c);return o=a("style"),o.type="text/css",o.id="s"+h,(u.fake?u:p).appendChild(o),u.appendChild(p),o.styleSheet?o.styleSheet.cssText=t:o.appendChild(e.createTextNode(t)),p.id=h,u.fake&&(u.style.background="",u.style.overflow="hidden",d=x.style.overflow,x.style.overflow="hidden",x.appendChild(u)),r=i(p,t),u.fake?(u.parentNode.removeChild(u),x.style.overflow=d,x.offsetHeight):p.parentNode.removeChild(p),!!r}function d(t){return t.replace(/([A-Z])/g,function(t,e){return"-"+e.toLowerCase()}).replace(/^ms-/,"-ms-")}function h(e,i,s){var n;if("getComputedStyle"in t){n=getComputedStyle.call(t,e,i);var o=t.console;if(null!==n)s&&(n=n.getPropertyValue(s));else if(o){var r=o.error?"error":"log";o[r].call(o,"getComputedStyle returning null, its possible modernizr test results are inaccurate")}}else n=!i&&e.currentStyle&&e.currentStyle[s];return n}function p(e,s){var n=e.length;if("CSS"in t&&"supports"in t.CSS){for(;n--;)if(t.CSS.supports(d(e[n]),s))return!0;return!1}if("CSSSupportsRule"in t){for(var o=[];n--;)o.push("("+d(e[n])+":"+s+")");return o=o.join(" or "),c("@supports ("+o+") { #modernizr { position: absolute; } }",function(t){return"absolute"==h(t,null,"position")})}return i}function u(t){return t.replace(/([a-z])-([a-z])/g,function(t,e,i){return e+i.toUpperCase()}).replace(/^-/,"")}function f(t,e,n,o){function l(){d&&(delete D.style,delete D.modElem)}if(o=!s(o,"undefined")&&o,!s(n,"undefined")){var c=p(t,n);if(!s(c,"undefined"))return c}for(var d,h,f,g,m,v=["modernizr","tspan","samp"];!D.style&&v.length;)d=!0,D.modElem=a(v.shift()),D.style=D.modElem.style;for(f=t.length,h=0;f>h;h++)if(g=t[h],m=D.style[g],r(g,"-")&&(g=u(g)),D.style[g]!==i){if(o||s(n,"undefined"))return l(),"pfx"!=e||g;try{D.style[g]=n}catch(y){}if(D.style[g]!=m)return l(),"pfx"!=e||g}return l(),!1}function g(t,e){return function(){return t.apply(e,arguments)}}function m(t,e,i){var n;for(var o in t)if(t[o]in e)return i===!1?t[o]:(n=e[t[o]],s(n,"function")?g(n,i||e):n);return!1}function v(t,e,i,n,o){var r=t.charAt(0).toUpperCase()+t.slice(1),a=(t+" "+$.join(r+" ")+r).split(" ");return s(e,"string")||s(e,"undefined")?f(a,e,n,o):(a=(t+" "+M.join(r+" ")+r).split(" "),m(a,e,i))}function y(t,e,s){return v(t,i,i,e,s)}function w(t,e){return t-1===e||t===e||t+1===e}var b=[],_={_version:"3.6.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(t,e){var i=this;setTimeout(function(){e(i[t])},0)},addTest:function(t,e,i){b.push({name:t,fn:e,options:i})},addAsyncTest:function(t){b.push({name:null,fn:t})}},k=function(){};k.prototype=_,k=new k;var T=[],x=e.documentElement,C="svg"===x.nodeName.toLowerCase(),S="Moz O ms Webkit",$=_._config.usePrefixes?S.split(" "):[];_._cssomPrefixes=$;var A={elem:a("modernizr")};k._q.push(function(){delete A.elem});var D={style:A.elem.style};k._q.unshift(function(){delete D.style});var M=_._config.usePrefixes?S.toLowerCase().split(" "):[];_._domPrefixes=M,_.testAllProps=v,_.testAllProps=y,k.addTest("cssanimations",y("animationName","a",!0));var E=_._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""];_._prefixes=E,k.addTest("csscalc",function(){var t="width:",e="calc(10px);",i=a("a");return i.style.cssText=t+E.join(e+t),!!i.style.length}),k.addTest("csschunit",function(){var t,e=A.elem.style;try{e.fontSize="3ch",t=-1!==e.fontSize.indexOf("ch")}catch(i){t=!1}return t}),function(){k.addTest("csscolumns",function(){var t=!1,e=y("columnCount");try{t=!!e,t&&(t=new Boolean(t))}catch(i){}return t});for(var t,e,i=["Width","Span","Fill","Gap","Rule","RuleColor","RuleStyle","RuleWidth","BreakBefore","BreakAfter","BreakInside"],s=0;s<i.length;s++)t=i[s].toLowerCase(),e=y("column"+i[s]),("breakbefore"===t||"breakafter"===t||"breakinside"==t)&&(e=e||y(i[s])),k.addTest("csscolumns."+t,e)}(),k.addTest("cssexunit",function(){var t,e=A.elem.style;try{e.fontSize="3ex",t=-1!==e.fontSize.indexOf("ex")}catch(i){t=!1}return t}),k.addTest("cssgridlegacy",y("grid-columns","10px",!0)),k.addTest("cssgrid",y("grid-template-rows","none",!0));var P=_.testStyles=c;P("#modernizr { height: 50vh; }",function(e){var i=parseInt(t.innerHeight/2,10),s=parseInt(h(e,null,"height"),10);k.addTest("cssvhunit",w(s,i))}),P("#modernizr1{width: 50vmax}#modernizr2{width:50px;height:50px;overflow:scroll}#modernizr3{position:fixed;top:0;left:0;bottom:0;right:0}",function(t){var e=t.childNodes[2],i=t.childNodes[1],s=t.childNodes[0],n=parseInt((i.offsetWidth-i.clientWidth)/2,10),o=s.clientWidth/100,r=s.clientHeight/100,a=parseInt(50*Math.max(o,r),10),l=parseInt(h(e,null,"width"),10);k.addTest("cssvmaxunit",w(a,l)||w(a,l-n))},3),P("#modernizr1{width: 50vm;width:50vmin}#modernizr2{width:50px;height:50px;overflow:scroll}#modernizr3{position:fixed;top:0;left:0;bottom:0;right:0}",function(t){var e=t.childNodes[2],i=t.childNodes[1],s=t.childNodes[0],n=parseInt((i.offsetWidth-i.clientWidth)/2,10),o=s.clientWidth/100,r=s.clientHeight/100,a=parseInt(50*Math.min(o,r),10),l=parseInt(h(e,null,"width"),10);k.addTest("cssvminunit",w(a,l)||w(a,l-n))},3),P("#modernizr { width: 50vw; }",function(e){var i=parseInt(t.innerWidth/2,10),s=parseInt(h(e,null,"width"),10);k.addTest("cssvwunit",w(s,i))}),k.addTest("flexbox",y("flexBasis","1px",!0)),k.addTest("flexboxlegacy",y("boxDirection","reverse",!0)),k.addTest("touchevents",function(){var i;if("ontouchstart"in t||t.DocumentTouch&&e instanceof DocumentTouch)i=!0;else{var s=["@media (",E.join("touch-enabled),("),"heartz",")","{#modernizr{top:9px;position:absolute}}"].join("");P(s,function(t){i=9===t.offsetTop})}return i}),n(),o(T),delete _.addTest,delete _.addAsyncTest;for(var O=0;O<k._q.length;O++)k._q[O]();t.Modernizr=k}(window,document),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,s){var n,o=this;o.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(e,i){return t('<button type="button" data-role="none" role="button" tabindex="0" />').text(i+1)},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,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},o.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(o,o.initials),o.activeBreakpoint=null,o.animType=null,o.animProp=null,o.breakpoints=[],o.breakpointSettings=[],o.cssTransitions=!1,o.focussed=!1,o.interrupted=!1,o.hidden="hidden",o.paused=!0,o.positionProp=null,o.respondTo=null,o.rowCount=1,o.shouldClick=!0,o.$slider=t(e),o.$slidesCache=null,o.transformType=null,o.transitionType=null,o.visibilityChange="visibilitychange",o.windowWidth=0,o.windowTimer=null,n=t(e).data("slick")||{},o.options=t.extend({},o.defaults,s,n),o.currentSlide=o.options.initialSlide,o.originalSettings=o.options,"undefined"!=typeof document.mozHidden?(o.hidden="mozHidden",o.visibilityChange="mozvisibilitychange"):"undefined"!=typeof document.webkitHidden&&(o.hidden="webkitHidden",o.visibilityChange="webkitvisibilitychange"),o.autoPlay=t.proxy(o.autoPlay,o),o.autoPlayClear=t.proxy(o.autoPlayClear,o),o.autoPlayIterator=t.proxy(o.autoPlayIterator,o),o.changeSlide=t.proxy(o.changeSlide,o),o.clickHandler=t.proxy(o.clickHandler,o),o.selectHandler=t.proxy(o.selectHandler,o),o.setPosition=t.proxy(o.setPosition,o),o.swipeHandler=t.proxy(o.swipeHandler,o),o.dragHandler=t.proxy(o.dragHandler,o),o.keyHandler=t.proxy(o.keyHandler,o),o.instanceUid=i++,o.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,o.registerBreakpoints(),o.init(!0)}var i=0;return e}(),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.addSlide=e.prototype.slickAdd=function(e,i,s){var n=this;if("boolean"==typeof i)s=i,i=null;else if(i<0||i>=n.slideCount)return!1;n.unload(),"number"==typeof i?0===i&&0===n.$slides.length?t(e).appendTo(n.$slideTrack):s?t(e).insertBefore(n.$slides.eq(i)):t(e).insertAfter(n.$slides.eq(i)):s===!0?t(e).prependTo(n.$slideTrack):t(e).appendTo(n.$slideTrack),n.$slides=n.$slideTrack.children(this.options.slide),n.$slideTrack.children(this.options.slide).detach(),n.$slideTrack.append(n.$slides),n.$slides.each(function(e,i){t(i).attr("data-slick-index",e)}),n.$slidesCache=n.$slides,n.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,i){var s={},n=this;n.animateHeight(),n.options.rtl===!0&&n.options.vertical===!1&&(e=-e),n.transformsEnabled===!1?n.options.vertical===!1?n.$slideTrack.animate({left:e},n.options.speed,n.options.easing,i):n.$slideTrack.animate({top:e},n.options.speed,n.options.easing,i):n.cssTransitions===!1?(n.options.rtl===!0&&(n.currentLeft=-n.currentLeft),t({animStart:n.currentLeft}).animate({animStart:e},{duration:n.options.speed,easing:n.options.easing,step:function(t){t=Math.ceil(t),n.options.vertical===!1?(s[n.animType]="translate("+t+"px, 0px)",n.$slideTrack.css(s)):(s[n.animType]="translate(0px,"+t+"px)",n.$slideTrack.css(s))},complete:function(){i&&i.call()}})):(n.applyTransition(),e=Math.ceil(e),n.options.vertical===!1?s[n.animType]="translate3d("+e+"px, 0px, 0px)":s[n.animType]="translate3d(0px,"+e+"px, 0px)",n.$slideTrack.css(s),i&&setTimeout(function(){n.disableTransition(),i.call()},n.options.speed))},e.prototype.getNavTarget=function(){var e=this,i=e.options.asNavFor;return i&&null!==i&&(i=t(i).not(e.$slider)),i},e.prototype.asNavFor=function(e){var i=this,s=i.getNavTarget();null!==s&&"object"==typeof s&&s.each(function(){var i=t(this).slick("getSlick");i.unslicked||i.slideHandler(e,!0)})},e.prototype.applyTransition=function(t){var e=this,i={};e.options.fade===!1?i[e.transitionType]=e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:i[e.transitionType]="opacity "+e.options.speed+"ms "+e.options.cssEase,e.options.fade===!1?e.$slideTrack.css(i):e.$slides.eq(t).css(i)},e.prototype.autoPlay=function(){var t=this;t.autoPlayClear(),t.slideCount>t.options.slidesToShow&&(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,e=t.currentSlide+t.options.slidesToScroll;t.paused||t.interrupted||t.focussed||(t.options.infinite===!1&&(1===t.direction&&t.currentSlide+1===t.slideCount-1?t.direction=0:0===t.direction&&(e=t.currentSlide-t.options.slidesToScroll,t.currentSlide-1===0&&(t.direction=1))),t.slideHandler(e))},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,i,s=this;if(s.options.dots===!0&&s.slideCount>s.options.slidesToShow){for(s.$slider.addClass("slick-dotted"),i=t("<ul />").addClass(s.options.dotsClass),e=0;e<=s.getDotCount();e+=1)i.append(t("<li />").append(s.options.customPaging.call(this,s,e)));s.$dots=i.appendTo(s.options.appendDots),s.$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,i){t(i).attr("data-slick-index",e).data("originalStyling",t(i).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,i,s,n,o,r,a=this;if(s=document.createDocumentFragment(),o=a.$slider.children(),a.options.rows>1){for(r=a.options.slidesPerRow*a.options.rows,n=Math.ceil(o.length/r),t=0;t<n;t++){var l=document.createElement("div");for(e=0;e<a.options.rows;e++){var c=document.createElement("div");for(i=0;i<a.options.slidesPerRow;i++){var d=t*r+(e*a.options.slidesPerRow+i);o.get(d)&&c.appendChild(o.get(d))}l.appendChild(c)}s.appendChild(l)}a.$slider.empty().append(s),a.$slider.children().children().children().css({width:100/a.options.slidesPerRow+"%",display:"inline-block"})}},e.prototype.checkResponsive=function(e,i){var s,n,o,r=this,a=!1,l=r.$slider.width(),c=window.innerWidth||t(window).width();if("window"===r.respondTo?o=c:"slider"===r.respondTo?o=l:"min"===r.respondTo&&(o=Math.min(c,l)),r.options.responsive&&r.options.responsive.length&&null!==r.options.responsive){n=null;for(s in r.breakpoints)r.breakpoints.hasOwnProperty(s)&&(r.originalSettings.mobileFirst===!1?o<r.breakpoints[s]&&(n=r.breakpoints[s]):o>r.breakpoints[s]&&(n=r.breakpoints[s]));null!==n?null!==r.activeBreakpoint?(n!==r.activeBreakpoint||i)&&(r.activeBreakpoint=n,"unslick"===r.breakpointSettings[n]?r.unslick(n):(r.options=t.extend({},r.originalSettings,r.breakpointSettings[n]),e===!0&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),a=n):(r.activeBreakpoint=n,"unslick"===r.breakpointSettings[n]?r.unslick(n):(r.options=t.extend({},r.originalSettings,r.breakpointSettings[n]),e===!0&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),a=n):null!==r.activeBreakpoint&&(r.activeBreakpoint=null,r.options=r.originalSettings,e===!0&&(r.currentSlide=r.options.initialSlide),r.refresh(e),a=n),e||a===!1||r.$slider.trigger("breakpoint",[r,a])}},e.prototype.changeSlide=function(e,i){var s,n,o,r=this,a=t(e.currentTarget);switch(a.is("a")&&e.preventDefault(),a.is("li")||(a=a.closest("li")),o=r.slideCount%r.options.slidesToScroll!==0,s=o?0:(r.slideCount-r.currentSlide)%r.options.slidesToScroll,e.data.message){case"previous":n=0===s?r.options.slidesToScroll:r.options.slidesToShow-s,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide-n,!1,i);break;case"next":n=0===s?r.options.slidesToScroll:s,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide+n,!1,i);break;case"index":var l=0===e.data.index?0:e.data.index||a.index()*r.options.slidesToScroll;r.slideHandler(r.checkNavigable(l),!1,i),a.children().trigger("focus");break;default:return}},e.prototype.checkNavigable=function(t){var e,i,s=this;if(e=s.getNavigableIndexes(),i=0,t>e[e.length-1])t=e[e.length-1];else for(var n in e){if(t<e[n]){t=i;break}i=e[n]}return t},e.prototype.cleanUpEvents=function(){var e=this;e.options.dots&&null!==e.$dots&&t("li",e.$dots).off("click.slick",e.changeSlide).off("mouseenter.slick",t.proxy(e.interrupt,e,!0)).off("mouseleave.slick",t.proxy(e.interrupt,e,!1)),e.$slider.off("focus.slick blur.slick"),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.cleanUpSlideEvents(),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.cleanUpSlideEvents=function(){var e=this;e.$list.off("mouseenter.slick",t.proxy(e.interrupt,e,!0)),e.$list.off("mouseleave.slick",t.proxy(e.interrupt,e,!1))},e.prototype.cleanUpRows=function(){var t,e=this;e.options.rows>1&&(t=e.$slides.children().children(),t.removeAttr("style"),e.$slider.empty().append(t))},e.prototype.clickHandler=function(t){var e=this;e.shouldClick===!1&&(t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault())},e.prototype.destroy=function(e){var i=this;i.autoPlayClear(),i.touchObject={},i.cleanUpEvents(),t(".slick-cloned",i.$slider).detach(),i.$dots&&i.$dots.remove(),i.$prevArrow&&i.$prevArrow.length&&(i.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.prevArrow)&&i.$prevArrow.remove()),i.$nextArrow&&i.$nextArrow.length&&(i.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.nextArrow)&&i.$nextArrow.remove()),i.$slides&&(i.$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"))}),i.$slideTrack.children(this.options.slide).detach(),i.$slideTrack.detach(),i.$list.detach(),i.$slider.append(i.$slides)),i.cleanUpRows(),i.$slider.removeClass("slick-slider"),i.$slider.removeClass("slick-initialized"),i.$slider.removeClass("slick-dotted"),i.unslicked=!0,e||i.$slider.trigger("destroy",[i])},e.prototype.disableTransition=function(t){var e=this,i={};i[e.transitionType]="",e.options.fade===!1?e.$slideTrack.css(i):e.$slides.eq(t).css(i)},e.prototype.fadeSlide=function(t,e){var i=this;i.cssTransitions===!1?(i.$slides.eq(t).css({zIndex:i.options.zIndex}),i.$slides.eq(t).animate({opacity:1},i.options.speed,i.options.easing,e)):(i.applyTransition(t),i.$slides.eq(t).css({opacity:1,zIndex:i.options.zIndex}),e&&setTimeout(function(){i.disableTransition(t),e.call()},i.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.focusHandler=function(){var e=this;e.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*:not(.slick-arrow)",function(i){i.stopImmediatePropagation();var s=t(this);setTimeout(function(){e.options.pauseOnFocus&&(e.focussed=s.is(":focus"),e.autoPlay())},0)})},e.prototype.getCurrent=e.prototype.slickCurrentSlide=function(){var t=this;return t.currentSlide},e.prototype.getDotCount=function(){var t=this,e=0,i=0,s=0;if(t.options.infinite===!0)for(;e<t.slideCount;)++s,e=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else if(t.options.centerMode===!0)s=t.slideCount;else if(t.options.asNavFor)for(;e<t.slideCount;)++s,e=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else s=1+Math.ceil((t.slideCount-t.options.slidesToShow)/t.options.slidesToScroll);return s-1},e.prototype.getLeft=function(t){var e,i,s,n=this,o=0;return n.slideOffset=0,i=n.$slides.first().outerHeight(!0),n.options.infinite===!0?(n.slideCount>n.options.slidesToShow&&(n.slideOffset=n.slideWidth*n.options.slidesToShow*-1,o=i*n.options.slidesToShow*-1),n.slideCount%n.options.slidesToScroll!==0&&t+n.options.slidesToScroll>n.slideCount&&n.slideCount>n.options.slidesToShow&&(t>n.slideCount?(n.slideOffset=(n.options.slidesToShow-(t-n.slideCount))*n.slideWidth*-1,o=(n.options.slidesToShow-(t-n.slideCount))*i*-1):(n.slideOffset=n.slideCount%n.options.slidesToScroll*n.slideWidth*-1,o=n.slideCount%n.options.slidesToScroll*i*-1))):t+n.options.slidesToShow>n.slideCount&&(n.slideOffset=(t+n.options.slidesToShow-n.slideCount)*n.slideWidth,o=(t+n.options.slidesToShow-n.slideCount)*i),n.slideCount<=n.options.slidesToShow&&(n.slideOffset=0,o=0),n.options.centerMode===!0&&n.options.infinite===!0?n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)-n.slideWidth:n.options.centerMode===!0&&(n.slideOffset=0,n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)),e=n.options.vertical===!1?t*n.slideWidth*-1+n.slideOffset:t*i*-1+o,n.options.variableWidth===!0&&(s=n.slideCount<=n.options.slidesToShow||n.options.infinite===!1?n.$slideTrack.children(".slick-slide").eq(t):n.$slideTrack.children(".slick-slide").eq(t+n.options.slidesToShow),e=n.options.rtl===!0?s[0]?(n.$slideTrack.width()-s[0].offsetLeft-s.width())*-1:0:s[0]?s[0].offsetLeft*-1:0,n.options.centerMode===!0&&(s=n.slideCount<=n.options.slidesToShow||n.options.infinite===!1?n.$slideTrack.children(".slick-slide").eq(t):n.$slideTrack.children(".slick-slide").eq(t+n.options.slidesToShow+1),e=n.options.rtl===!0?s[0]?(n.$slideTrack.width()-s[0].offsetLeft-s.width())*-1:0:s[0]?s[0].offsetLeft*-1:0,e+=(n.$list.width()-s.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,i=0,s=0,n=[];for(e.options.infinite===!1?t=e.slideCount:(i=e.options.slidesToScroll*-1,s=e.options.slidesToScroll*-1,t=2*e.slideCount);i<t;)n.push(i),i=s+e.options.slidesToScroll,s+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return n},e.prototype.getSlick=function(){return this},e.prototype.getSlideCount=function(){var e,i,s,n=this;return s=n.options.centerMode===!0?n.slideWidth*Math.floor(n.options.slidesToShow/2):0,n.options.swipeToSlide===!0?(n.$slideTrack.find(".slick-slide").each(function(e,o){if(o.offsetLeft-s+t(o).outerWidth()/2>n.swipeLeft*-1)return i=o,!1}),e=Math.abs(t(i).attr("data-slick-index")-n.currentSlide)||1):n.options.slidesToScroll},e.prototype.goTo=e.prototype.slickGoTo=function(t,e){var i=this;i.changeSlide({data:{message:"index",index:parseInt(t)}},e)},e.prototype.init=function(e){var i=this;t(i.$slider).hasClass("slick-initialized")||(t(i.$slider).addClass("slick-initialized"),i.buildRows(),i.buildOut(),i.setProps(),i.startLoad(),i.loadSlider(),i.initializeEvents(),i.updateArrows(),i.updateDots(),i.checkResponsive(!0),i.focusHandler()),e&&i.$slider.trigger("init",[i]),i.options.accessibility===!0&&i.initADA(),i.options.autoplay&&(i.paused=!1,i.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(i){t(this).attr({role:"option","aria-describedby":"slick-slide"+e.instanceUid+i})}),null!==e.$dots&&e.$dots.attr("role","tablist").find("li").each(function(i){t(this).attr({role:"presentation","aria-selected":"false","aria-controls":"navigation"+e.instanceUid+i,id:"slick-slide"+e.instanceUid+i})}).first().attr("aria-selected","true").end().find("button").attr("role","button").end().closest("div").attr("role","toolbar"),e.activateADA()},e.prototype.initArrowEvents=function(){var t=this;t.options.arrows===!0&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},t.changeSlide),t.$nextArrow.off("click.slick").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&&t("li",e.$dots).on("mouseenter.slick",t.proxy(e.interrupt,e,!0)).on("mouseleave.slick",t.proxy(e.interrupt,e,!1))},e.prototype.initSlideEvents=function(){var e=this;e.options.pauseOnHover&&(e.$list.on("mouseenter.slick",t.proxy(e.interrupt,e,!0)),e.$list.on("mouseleave.slick",t.proxy(e.interrupt,e,!1)))},e.prototype.initializeEvents=function(){var e=this;e.initArrowEvents(),e.initDotEvents(),e.initSlideEvents(),e.$list.on("touchstart.slick mousedown.slick",{action:"start"},e.swipeHandler),e.$list.on("touchmove.slick mousemove.slick",{action:"move"},e.swipeHandler),e.$list.on("touchend.slick mouseup.slick",{action:"end"},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.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()},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:e.options.rtl===!0?"next":"previous"}}):39===t.keyCode&&e.options.accessibility===!0&&e.changeSlide({data:{message:e.options.rtl===!0?"previous":"next"}}))},e.prototype.lazyLoad=function(){function e(e){t("img[data-lazy]",e).each(function(){var e=t(this),i=t(this).attr("data-lazy"),s=document.createElement("img");s.onload=function(){e.animate({opacity:0},100,function(){e.attr("src",i).animate({opacity:1},200,function(){e.removeAttr("data-lazy").removeClass("slick-loading")}),r.$slider.trigger("lazyLoaded",[r,e,i])})},s.onerror=function(){e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),r.$slider.trigger("lazyLoadError",[r,e,i])},s.src=i})}var i,s,n,o,r=this;r.options.centerMode===!0?r.options.infinite===!0?(n=r.currentSlide+(r.options.slidesToShow/2+1),o=n+r.options.slidesToShow+2):(n=Math.max(0,r.currentSlide-(r.options.slidesToShow/2+1)),o=2+(r.options.slidesToShow/2+1)+r.currentSlide):(n=r.options.infinite?r.options.slidesToShow+r.currentSlide:r.currentSlide,o=Math.ceil(n+r.options.slidesToShow),r.options.fade===!0&&(n>0&&n--,o<=r.slideCount&&o++)),i=r.$slider.find(".slick-slide").slice(n,o),e(i),r.slideCount<=r.options.slidesToShow?(s=r.$slider.find(".slick-slide"),e(s)):r.currentSlide>=r.slideCount-r.options.slidesToShow?(s=r.$slider.find(".slick-cloned").slice(0,r.options.slidesToShow),e(s)):0===r.currentSlide&&(s=r.$slider.find(".slick-cloned").slice(r.options.slidesToShow*-1),e(s))},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.autoPlay(),t.options.autoplay=!0,t.paused=!1,t.focussed=!1,t.interrupted=!1},e.prototype.postSlide=function(t){var e=this;e.unslicked||(e.$slider.trigger("afterChange",[e,t]),e.animating=!1,e.setPosition(),e.swipeLeft=null,e.options.autoplay&&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(e){e=e||1;var i,s,n,o=this,r=t("img[data-lazy]",o.$slider);r.length?(i=r.first(),s=i.attr("data-lazy"),n=document.createElement("img"),n.onload=function(){i.attr("src",s).removeAttr("data-lazy").removeClass("slick-loading"),o.options.adaptiveHeight===!0&&o.setPosition(),o.$slider.trigger("lazyLoaded",[o,i,s]),o.progressiveLazyLoad()},n.onerror=function(){e<3?setTimeout(function(){o.progressiveLazyLoad(e+1)},500):(i.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),o.$slider.trigger("lazyLoadError",[o,i,s]),o.progressiveLazyLoad())},n.src=s):o.$slider.trigger("allImagesLoaded",[o])},e.prototype.refresh=function(e){var i,s,n=this;s=n.slideCount-n.options.slidesToShow,!n.options.infinite&&n.currentSlide>s&&(n.currentSlide=s),n.slideCount<=n.options.slidesToShow&&(n.currentSlide=0),i=n.currentSlide,n.destroy(!0),t.extend(n,n.initials,{currentSlide:i}),n.init(),e||n.changeSlide({data:{message:"index",index:i}},!1)},e.prototype.registerBreakpoints=function(){var e,i,s,n=this,o=n.options.responsive||null;if("array"===t.type(o)&&o.length){n.respondTo=n.options.respondTo||"window";for(e in o)if(s=n.breakpoints.length-1,i=o[e].breakpoint,o.hasOwnProperty(e)){for(;s>=0;)n.breakpoints[s]&&n.breakpoints[s]===i&&n.breakpoints.splice(s,1),s--;n.breakpoints.push(i),n.breakpointSettings[i]=o[e].settings}n.breakpoints.sort(function(t,e){return n.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.cleanUpSlideEvents(),e.initSlideEvents(),e.checkResponsive(!1,!0),e.options.focusOnSelect===!0&&t(e.$slideTrack).children().on("click.slick",e.selectHandler),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),e.setPosition(),e.focusHandler(),e.paused=!e.options.autoplay,e.autoPlay(),e.$slider.trigger("reInit",[e])},e.prototype.resize=function(){var e=this;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,i){var s=this;return"boolean"==typeof t?(e=t,t=e===!0?0:s.slideCount-1):t=e===!0?--t:t,!(s.slideCount<1||t<0||t>s.slideCount-1)&&(s.unload(),i===!0?s.$slideTrack.children().remove():s.$slideTrack.children(this.options.slide).eq(t).remove(),s.$slides=s.$slideTrack.children(this.options.slide),s.$slideTrack.children(this.options.slide).detach(),s.$slideTrack.append(s.$slides),s.$slidesCache=s.$slides,void s.reinit())},e.prototype.setCSS=function(t){var e,i,s=this,n={};s.options.rtl===!0&&(t=-t),e="left"==s.positionProp?Math.ceil(t)+"px":"0px",i="top"==s.positionProp?Math.ceil(t)+"px":"0px",n[s.positionProp]=t,s.transformsEnabled===!1?s.$slideTrack.css(n):(n={},s.cssTransitions===!1?(n[s.animType]="translate("+e+", "+i+")",s.$slideTrack.css(n)):(n[s.animType]="translate3d("+e+", "+i+", 0px)",s.$slideTrack.css(n)))},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,i=this;i.$slides.each(function(s,n){e=i.slideWidth*s*-1,i.options.rtl===!0?t(n).css({position:"relative",right:e,top:0,zIndex:i.options.zIndex-2,opacity:0}):t(n).css({position:"relative",left:e,top:0,zIndex:i.options.zIndex-2,opacity:0})}),i.$slides.eq(i.currentSlide).css({zIndex:i.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(){var e,i,s,n,o,r=this,a=!1;if("object"===t.type(arguments[0])?(s=arguments[0],a=arguments[1],o="multiple"):"string"===t.type(arguments[0])&&(s=arguments[0],n=arguments[1],a=arguments[2],"responsive"===arguments[0]&&"array"===t.type(arguments[1])?o="responsive":"undefined"!=typeof arguments[1]&&(o="single")),"single"===o)r.options[s]=n;else if("multiple"===o)t.each(s,function(t,e){r.options[t]=e});else if("responsive"===o)for(i in n)if("array"!==t.type(r.options.responsive))r.options.responsive=[n[i]];else{for(e=r.options.responsive.length-1;e>=0;)r.options.responsive[e].breakpoint===n[i].breakpoint&&r.options.responsive.splice(e,1),e--;r.options.responsive.push(n[i])}a&&(r.unload(),r.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,i,s,n,o=this;i=o.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),o.$slides.eq(t).addClass("slick-current"),o.options.centerMode===!0?(e=Math.floor(o.options.slidesToShow/2),o.options.infinite===!0&&(t>=e&&t<=o.slideCount-1-e?o.$slides.slice(t-e,t+e+1).addClass("slick-active").attr("aria-hidden","false"):(s=o.options.slidesToShow+t,i.slice(s-e+1,s+e+2).addClass("slick-active").attr("aria-hidden","false")),0===t?i.eq(i.length-1-o.options.slidesToShow).addClass("slick-center"):t===o.slideCount-1&&i.eq(o.options.slidesToShow).addClass("slick-center")),o.$slides.eq(t).addClass("slick-center")):t>=0&&t<=o.slideCount-o.options.slidesToShow?o.$slides.slice(t,t+o.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):i.length<=o.options.slidesToShow?i.addClass("slick-active").attr("aria-hidden","false"):(n=o.slideCount%o.options.slidesToShow,s=o.options.infinite===!0?o.options.slidesToShow+t:t,o.options.slidesToShow==o.options.slidesToScroll&&o.slideCount-t<o.options.slidesToShow?i.slice(s-(o.options.slidesToShow-n),s+n).addClass("slick-active").attr("aria-hidden","false"):i.slice(s,s+o.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false")),"ondemand"===o.options.lazyLoad&&o.lazyLoad()},e.prototype.setupInfinite=function(){var e,i,s,n=this;if(n.options.fade===!0&&(n.options.centerMode=!1),n.options.infinite===!0&&n.options.fade===!1&&(i=null,n.slideCount>n.options.slidesToShow)){for(s=n.options.centerMode===!0?n.options.slidesToShow+1:n.options.slidesToShow,e=n.slideCount;e>n.slideCount-s;e-=1)i=e-1,t(n.$slides[i]).clone(!0).attr("id","").attr("data-slick-index",i-n.slideCount).prependTo(n.$slideTrack).addClass("slick-cloned");for(e=0;e<s;e+=1)i=e,t(n.$slides[i]).clone(!0).attr("id","").attr("data-slick-index",i+n.slideCount).appendTo(n.$slideTrack).addClass("slick-cloned");n.$slideTrack.find(".slick-cloned").find("[id]").each(function(){t(this).attr("id","")})}},e.prototype.interrupt=function(t){var e=this;t||e.autoPlay(),e.interrupted=t},e.prototype.selectHandler=function(e){var i=this,s=t(e.target).is(".slick-slide")?t(e.target):t(e.target).parents(".slick-slide"),n=parseInt(s.attr("data-slick-index"));return n||(n=0),i.slideCount<=i.options.slidesToShow?(i.setSlideClasses(n),void i.asNavFor(n)):void i.slideHandler(n)},e.prototype.slideHandler=function(t,e,i){var s,n,o,r,a,l=null,c=this;if(e=e||!1,(c.animating!==!0||c.options.waitForAnimate!==!0)&&!(c.options.fade===!0&&c.currentSlide===t||c.slideCount<=c.options.slidesToShow))return e===!1&&c.asNavFor(t),s=t,l=c.getLeft(s),r=c.getLeft(c.currentSlide),c.currentLeft=null===c.swipeLeft?r:c.swipeLeft,c.options.infinite===!1&&c.options.centerMode===!1&&(t<0||t>c.getDotCount()*c.options.slidesToScroll)?void(c.options.fade===!1&&(s=c.currentSlide,i!==!0?c.animateSlide(r,function(){c.postSlide(s)}):c.postSlide(s))):c.options.infinite===!1&&c.options.centerMode===!0&&(t<0||t>c.slideCount-c.options.slidesToScroll)?void(c.options.fade===!1&&(s=c.currentSlide,i!==!0?c.animateSlide(r,function(){c.postSlide(s)}):c.postSlide(s))):(c.options.autoplay&&clearInterval(c.autoPlayTimer),n=s<0?c.slideCount%c.options.slidesToScroll!==0?c.slideCount-c.slideCount%c.options.slidesToScroll:c.slideCount+s:s>=c.slideCount?c.slideCount%c.options.slidesToScroll!==0?0:s-c.slideCount:s,c.animating=!0,c.$slider.trigger("beforeChange",[c,c.currentSlide,n]),o=c.currentSlide,c.currentSlide=n,c.setSlideClasses(c.currentSlide),c.options.asNavFor&&(a=c.getNavTarget(),a=a.slick("getSlick"),a.slideCount<=a.options.slidesToShow&&a.setSlideClasses(c.currentSlide)),c.updateDots(),c.updateArrows(),c.options.fade===!0?(i!==!0?(c.fadeSlideOut(o),c.fadeSlide(n,function(){c.postSlide(n)})):c.postSlide(n),void c.animateHeight()):void(i!==!0?c.animateSlide(l,function(){c.postSlide(n)}):c.postSlide(n)))},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,i,s,n=this;return t=n.touchObject.startX-n.touchObject.curX,e=n.touchObject.startY-n.touchObject.curY,i=Math.atan2(e,t),s=Math.round(180*i/Math.PI),s<0&&(s=360-Math.abs(s)),s<=45&&s>=0?n.options.rtl===!1?"left":"right":s<=360&&s>=315?n.options.rtl===!1?"left":"right":s>=135&&s<=225?n.options.rtl===!1?"right":"left":n.options.verticalSwiping===!0?s>=35&&s<=135?"down":"up":"vertical"},e.prototype.swipeEnd=function(t){var e,i,s=this;if(s.dragging=!1,s.interrupted=!1,s.shouldClick=!(s.touchObject.swipeLength>10),void 0===s.touchObject.curX)return!1;if(s.touchObject.edgeHit===!0&&s.$slider.trigger("edge",[s,s.swipeDirection()]),s.touchObject.swipeLength>=s.touchObject.minSwipe){switch(i=s.swipeDirection()){case"left":case"down":e=s.options.swipeToSlide?s.checkNavigable(s.currentSlide+s.getSlideCount()):s.currentSlide+s.getSlideCount(),s.currentDirection=0;break;case"right":case"up":e=s.options.swipeToSlide?s.checkNavigable(s.currentSlide-s.getSlideCount()):s.currentSlide-s.getSlideCount(),s.currentDirection=1}"vertical"!=i&&(s.slideHandler(e),s.touchObject={},s.$slider.trigger("swipe",[s,i]))}else s.touchObject.startX!==s.touchObject.curX&&(s.slideHandler(s.currentSlide),s.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&&t.type.indexOf("mouse")!==-1))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,i,s,n,o,r=this;return o=void 0!==t.originalEvent?t.originalEvent.touches:null,!(!r.dragging||o&&1!==o.length)&&(e=r.getLeft(r.currentSlide),r.touchObject.curX=void 0!==o?o[0].pageX:t.clientX,r.touchObject.curY=void 0!==o?o[0].pageY:t.clientY,r.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(r.touchObject.curX-r.touchObject.startX,2))),r.options.verticalSwiping===!0&&(r.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(r.touchObject.curY-r.touchObject.startY,2)))),i=r.swipeDirection(),"vertical"!==i?(void 0!==t.originalEvent&&r.touchObject.swipeLength>4&&t.preventDefault(),n=(r.options.rtl===!1?1:-1)*(r.touchObject.curX>r.touchObject.startX?1:-1),r.options.verticalSwiping===!0&&(n=r.touchObject.curY>r.touchObject.startY?1:-1),s=r.touchObject.swipeLength,r.touchObject.edgeHit=!1,r.options.infinite===!1&&(0===r.currentSlide&&"right"===i||r.currentSlide>=r.getDotCount()&&"left"===i)&&(s=r.touchObject.swipeLength*r.options.edgeFriction,r.touchObject.edgeHit=!0),r.options.vertical===!1?r.swipeLeft=e+s*n:r.swipeLeft=e+s*(r.$list.height()/r.listWidth)*n,r.options.verticalSwiping===!0&&(r.swipeLeft=e+s*n),r.options.fade!==!0&&r.options.touchMove!==!1&&(r.animating===!0?(r.swipeLeft=null,!1):void r.setCSS(r.swipeLeft))):void 0)},e.prototype.swipeStart=function(t){var e,i=this;return i.interrupted=!0,1!==i.touchObject.fingerCount||i.slideCount<=i.options.slidesToShow?(i.touchObject={},!1):(void 0!==t.originalEvent&&void 0!==t.originalEvent.touches&&(e=t.originalEvent.touches[0]),i.touchObject.startX=i.touchObject.curX=void 0!==e?e.pageX:t.clientX,i.touchObject.startY=i.touchObject.curY=void 0!==e?e.pageY:t.clientY,void(i.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;t.options.autoplay&&(document[t.hidden]?t.interrupted=!0:t.interrupted=!1)},t.fn.slick=function(){var t,i,s=this,n=arguments[0],o=Array.prototype.slice.call(arguments,1),r=s.length;for(t=0;t<r;t++)if("object"==typeof n||"undefined"==typeof n?s[t].slick=new e(s[t],n):i=s[t].slick[n].apply(s[t].slick,o),"undefined"!=typeof i)return i;return s}});var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("TweenMax",["core.Animation","core.SimpleTimeline","TweenLite"],function(t,e,i){var s=function(t){var e,i=[],s=t.length;for(e=0;e!==s;i.push(t[e++]));return i},n=function(t,e,i){var s,n,o=t.cycle;for(s in o)n=o[s],t[s]="function"==typeof n?n(i,e[i]):n[i%n.length];delete t.cycle},o=function(t,e,s){i.call(this,t,e,s),this._cycle=0,this._yoyo=this.vars.yoyo===!0,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._dirty=!0,this.render=o.prototype.render},r=1e-10,a=i._internals,l=a.isSelector,c=a.isArray,d=o.prototype=i.to({},.1,{}),h=[];o.version="1.19.0",d.constructor=o,d.kill()._gc=!1,o.killTweensOf=o.killDelayedCallsTo=i.killTweensOf,o.getTweensOf=i.getTweensOf,o.lagSmoothing=i.lagSmoothing,o.ticker=i.ticker,o.render=i.render,d.invalidate=function(){return this._yoyo=this.vars.yoyo===!0,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),i.prototype.invalidate.call(this)},d.updateTo=function(t,e){var s,n=this.ratio,o=this.vars.immediateRender||t.immediateRender;e&&this._startTime<this._timeline._time&&(this._startTime=this._timeline._time,this._uncache(!1),this._gc?this._enabled(!0,!1):this._timeline.insert(this,this._startTime-this._delay));for(s in t)this.vars[s]=t[s];if(this._initted||o)if(e)this._initted=!1,o&&this.render(0,!0,!0);else if(this._gc&&this._enabled(!0,!1),this._notifyPluginsOfEnabled&&this._firstPT&&i._onPluginEvent("_onDisable",this),this._time/this._duration>.998){var r=this._totalTime;this.render(0,!0,!1),this._initted=!1,this.render(r,!0,!1)}else if(this._initted=!1,this._init(),this._time>0||o)for(var a,l=1/(1-n),c=this._firstPT;c;)a=c.s+c.c,c.c*=l,c.s=a-c.c,c=c._next;return this},d.render=function(t,e,i){this._initted||0===this._duration&&this.vars.repeat&&this.invalidate();var s,n,o,l,c,d,h,p,u=this._dirty?this.totalDuration():this._totalDuration,f=this._time,g=this._totalTime,m=this._cycle,v=this._duration,y=this._rawPrevTime;if(t>=u-1e-7?(this._totalTime=u,this._cycle=this._repeat,this._yoyo&&0!==(1&this._cycle)?(this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0):(this._time=v,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1),this._reversed||(s=!0,n="onComplete",i=i||this._timeline.autoRemoveChildren),0===v&&(this._initted||!this.vars.lazy||i)&&(this._startTime===this._timeline._duration&&(t=0),(y<0||t<=0&&t>=-1e-7||y===r&&"isPause"!==this.data)&&y!==t&&(i=!0,y>r&&(n="onReverseComplete")),this._rawPrevTime=p=!e||t||y===t?t:r)):t<1e-7?(this._totalTime=this._time=this._cycle=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==g||0===v&&y>0)&&(n="onReverseComplete",s=this._reversed),t<0&&(this._active=!1,0===v&&(this._initted||!this.vars.lazy||i)&&(y>=0&&(i=!0),this._rawPrevTime=p=!e||t||y===t?t:r)),this._initted||(i=!0)):(this._totalTime=this._time=t,0!==this._repeat&&(l=v+this._repeatDelay,this._cycle=this._totalTime/l>>0,0!==this._cycle&&this._cycle===this._totalTime/l&&g<=t&&this._cycle--,this._time=this._totalTime-this._cycle*l,this._yoyo&&0!==(1&this._cycle)&&(this._time=v-this._time),this._time>v?this._time=v:this._time<0&&(this._time=0)),this._easeType?(c=this._time/v,d=this._easeType,h=this._easePower,(1===d||3===d&&c>=.5)&&(c=1-c),3===d&&(c*=2),1===h?c*=c:2===h?c*=c*c:3===h?c*=c*c*c:4===h&&(c*=c*c*c*c),1===d?this.ratio=1-c:2===d?this.ratio=c:this._time/v<.5?this.ratio=c/2:this.ratio=1-c/2):this.ratio=this._ease.getRatio(this._time/v)),f===this._time&&!i&&m===this._cycle)return void(g!==this._totalTime&&this._onUpdate&&(e||this._callback("onUpdate")));if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!i&&this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=f,this._totalTime=g,this._rawPrevTime=y,this._cycle=m,a.lazyTweens.push(this),void(this._lazy=[t,e]);this._time&&!s?this.ratio=this._ease.getRatio(this._time/v):s&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==f&&t>=0&&(this._active=!0),0===g&&(2===this._initted&&t>0&&this._init(),this._startAt&&(t>=0?this._startAt.render(t,e,i):n||(n="_dummyGS")),this.vars.onStart&&(0===this._totalTime&&0!==v||e||this._callback("onStart"))),o=this._firstPT;o;)o.f?o.t[o.p](o.c*this.ratio+o.s):o.t[o.p]=o.c*this.ratio+o.s,o=o._next;this._onUpdate&&(t<0&&this._startAt&&this._startTime&&this._startAt.render(t,e,i),e||(this._totalTime!==g||n)&&this._callback("onUpdate")),this._cycle!==m&&(e||this._gc||this.vars.onRepeat&&this._callback("onRepeat")),n&&(this._gc&&!i||(t<0&&this._startAt&&!this._onUpdate&&this._startTime&&this._startAt.render(t,e,i),s&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[n]&&this._callback(n),0===v&&this._rawPrevTime===r&&p!==r&&(this._rawPrevTime=0)))},o.to=function(t,e,i){return new o(t,e,i)},o.from=function(t,e,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new o(t,e,i)},o.fromTo=function(t,e,i,s){return s.startAt=i,s.immediateRender=0!=s.immediateRender&&0!=i.immediateRender,new o(t,e,s)},o.staggerTo=o.allTo=function(t,e,r,a,d,p,u){a=a||0;var f,g,m,v,y=0,w=[],b=function(){r.onComplete&&r.onComplete.apply(r.onCompleteScope||this,arguments),d.apply(u||r.callbackScope||this,p||h)},_=r.cycle,k=r.startAt&&r.startAt.cycle;for(c(t)||("string"==typeof t&&(t=i.selector(t)||t),l(t)&&(t=s(t))),t=t||[],a<0&&(t=s(t),t.reverse(),a*=-1),f=t.length-1,m=0;m<=f;m++){g={};for(v in r)g[v]=r[v];if(_&&(n(g,t,m),null!=g.duration&&(e=g.duration,delete g.duration)),k){k=g.startAt={};for(v in r.startAt)k[v]=r.startAt[v];n(g.startAt,t,m)}g.delay=y+(g.delay||0),m===f&&d&&(g.onComplete=b),w[m]=new o(t[m],e,g),y+=a}return w},o.staggerFrom=o.allFrom=function(t,e,i,s,n,r,a){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,o.staggerTo(t,e,i,s,n,r,a)},o.staggerFromTo=o.allFromTo=function(t,e,i,s,n,r,a,l){return s.startAt=i,s.immediateRender=0!=s.immediateRender&&0!=i.immediateRender,o.staggerTo(t,e,s,n,r,a,l)},o.delayedCall=function(t,e,i,s,n){return new o(e,0,{delay:t,onComplete:e,onCompleteParams:i,callbackScope:s,onReverseComplete:e,onReverseCompleteParams:i,immediateRender:!1,useFrames:n,overwrite:0})},o.set=function(t,e){return new o(t,0,e)},o.isTweening=function(t){return i.getTweensOf(t,!0).length>0};var p=function(t,e){for(var s=[],n=0,o=t._first;o;)o instanceof i?s[n++]=o:(e&&(s[n++]=o),s=s.concat(p(o,e)),n=s.length),o=o._next;return s},u=o.getAllTweens=function(e){return p(t._rootTimeline,e).concat(p(t._rootFramesTimeline,e))};o.killAll=function(t,i,s,n){null==i&&(i=!0),null==s&&(s=!0);var o,r,a,l=u(0!=n),c=l.length,d=i&&s&&n;for(a=0;a<c;a++)r=l[a],(d||r instanceof e||(o=r.target===r.vars.onComplete)&&s||i&&!o)&&(t?r.totalTime(r._reversed?0:r.totalDuration()):r._enabled(!1,!1))},o.killChildTweensOf=function(t,e){if(null!=t){var n,r,d,h,p,u=a.tweenLookup;if("string"==typeof t&&(t=i.selector(t)||t),l(t)&&(t=s(t)),c(t))for(h=t.length;--h>-1;)o.killChildTweensOf(t[h],e);else{n=[];for(d in u)for(r=u[d].target.parentNode;r;)r===t&&(n=n.concat(u[d].tweens)),r=r.parentNode;for(p=n.length,h=0;h<p;h++)e&&n[h].totalTime(n[h].totalDuration()),n[h]._enabled(!1,!1)}}};var f=function(t,i,s,n){i=i!==!1,s=s!==!1,n=n!==!1;for(var o,r,a=u(n),l=i&&s&&n,c=a.length;--c>-1;)r=a[c],(l||r instanceof e||(o=r.target===r.vars.onComplete)&&s||i&&!o)&&r.paused(t)};return o.pauseAll=function(t,e,i){f(!0,t,e,i)},o.resumeAll=function(t,e,i){f(!1,t,e,i)},o.globalTimeScale=function(e){var s=t._rootTimeline,n=i.ticker.time;return arguments.length?(e=e||r,s._startTime=n-(n-s._startTime)*s._timeScale/e,s=t._rootFramesTimeline,n=i.ticker.frame,s._startTime=n-(n-s._startTime)*s._timeScale/e,s._timeScale=t._rootTimeline._timeScale=e,e):s._timeScale},d.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!==(1&this._cycle)?1-t:t)+this._cycle*(this._duration+this._repeatDelay),e):this._time/this.duration()},d.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this._totalTime/this.totalDuration()},d.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),t>this._duration&&(t=this._duration),this._yoyo&&0!==(1&this._cycle)?t=this._duration-t+this._cycle*(this._duration+this._repeatDelay):0!==this._repeat&&(t+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(t,e)):this._time},d.duration=function(e){return arguments.length?t.prototype.duration.call(this,e):this._duration},d.totalDuration=function(t){return arguments.length?this._repeat===-1?this:this.duration((t-this._repeat*this._repeatDelay)/(this._repeat+1)):(this._dirty&&(this._totalDuration=this._repeat===-1?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat,this._dirty=!1),this._totalDuration)},d.repeat=function(t){return arguments.length?(this._repeat=t,this._uncache(!0)):this._repeat},d.repeatDelay=function(t){return arguments.length?(this._repeatDelay=t,this._uncache(!0)):this._repeatDelay},d.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},o},!0),_gsScope._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(t,e,i){var s=function(t){e.call(this,t),this._labels={},this.autoRemoveChildren=this.vars.autoRemoveChildren===!0,this.smoothChildTiming=this.vars.smoothChildTiming===!0,this._sortChildren=!0,this._onUpdate=this.vars.onUpdate;var i,s,n=this.vars;for(s in n)i=n[s],l(i)&&i.join("").indexOf("{self}")!==-1&&(n[s]=this._swapSelfInParams(i));l(n.tweens)&&this.add(n.tweens,0,n.align,n.stagger)},n=1e-10,o=i._internals,r=s._internals={},a=o.isSelector,l=o.isArray,c=o.lazyTweens,d=o.lazyRender,h=_gsScope._gsDefine.globals,p=function(t){var e,i={};for(e in t)i[e]=t[e];return i},u=function(t,e,i){var s,n,o=t.cycle;for(s in o)n=o[s],t[s]="function"==typeof n?n.call(e[i],i):n[i%n.length];delete t.cycle},f=r.pauseCallback=function(){},g=function(t){var e,i=[],s=t.length;for(e=0;e!==s;i.push(t[e++]));return i},m=s.prototype=new e;return s.version="1.19.0",m.constructor=s,m.kill()._gc=m._forcingPlayhead=m._hasPause=!1,m.to=function(t,e,s,n){var o=s.repeat&&h.TweenMax||i;return e?this.add(new o(t,e,s),n):this.set(t,s,n)},m.from=function(t,e,s,n){return this.add((s.repeat&&h.TweenMax||i).from(t,e,s),n)},m.fromTo=function(t,e,s,n,o){var r=n.repeat&&h.TweenMax||i;return e?this.add(r.fromTo(t,e,s,n),o):this.set(t,n,o)},m.staggerTo=function(t,e,n,o,r,l,c,d){var h,f,m=new s({onComplete:l,onCompleteParams:c,callbackScope:d,smoothChildTiming:this.smoothChildTiming}),v=n.cycle;for("string"==typeof t&&(t=i.selector(t)||t),t=t||[],a(t)&&(t=g(t)),o=o||0,o<0&&(t=g(t),t.reverse(),o*=-1),f=0;f<t.length;f++)h=p(n),h.startAt&&(h.startAt=p(h.startAt),h.startAt.cycle&&u(h.startAt,t,f)),v&&(u(h,t,f),null!=h.duration&&(e=h.duration,delete h.duration)),m.to(t[f],e,h,f*o);return this.add(m,r)},m.staggerFrom=function(t,e,i,s,n,o,r,a){return i.immediateRender=0!=i.immediateRender,i.runBackwards=!0,this.staggerTo(t,e,i,s,n,o,r,a)},m.staggerFromTo=function(t,e,i,s,n,o,r,a,l){return s.startAt=i,s.immediateRender=0!=s.immediateRender&&0!=i.immediateRender,this.staggerTo(t,e,s,n,o,r,a,l)},m.call=function(t,e,s,n){return this.add(i.delayedCall(0,t,e,s),n)},m.set=function(t,e,s){return s=this._parseTimeOrLabel(s,0,!0),null==e.immediateRender&&(e.immediateRender=s===this._time&&!this._paused),this.add(new i(t,0,e),s)},s.exportRoot=function(t,e){t=t||{},null==t.smoothChildTiming&&(t.smoothChildTiming=!0);var n,o,r=new s(t),a=r._timeline;for(null==e&&(e=!0),a._remove(r,!0),
r._startTime=0,r._rawPrevTime=r._time=r._totalTime=a._time,n=a._first;n;)o=n._next,e&&n instanceof i&&n.target===n.vars.onComplete||r.add(n,n._startTime-n._delay),n=o;return a.add(r,0),r},m.add=function(n,o,r,a){var c,d,h,p,u,f;if("number"!=typeof o&&(o=this._parseTimeOrLabel(o,0,!0,n)),!(n instanceof t)){if(n instanceof Array||n&&n.push&&l(n)){for(r=r||"normal",a=a||0,c=o,d=n.length,h=0;h<d;h++)l(p=n[h])&&(p=new s({tweens:p})),this.add(p,c),"string"!=typeof p&&"function"!=typeof p&&("sequence"===r?c=p._startTime+p.totalDuration()/p._timeScale:"start"===r&&(p._startTime-=p.delay())),c+=a;return this._uncache(!0)}if("string"==typeof n)return this.addLabel(n,o);if("function"!=typeof n)throw"Cannot add "+n+" into the timeline; it is not a tween, timeline, function, or string.";n=i.delayedCall(0,n)}if(e.prototype.add.call(this,n,o),(this._gc||this._time===this._duration)&&!this._paused&&this._duration<this.duration())for(u=this,f=u.rawTime()>n._startTime;u._timeline;)f&&u._timeline.smoothChildTiming?u.totalTime(u._totalTime,!0):u._gc&&u._enabled(!0,!1),u=u._timeline;return this},m.remove=function(e){if(e instanceof t){this._remove(e,!1);var i=e._timeline=e.vars.useFrames?t._rootFramesTimeline:t._rootTimeline;return e._startTime=(e._paused?e._pauseTime:i._time)-(e._reversed?e.totalDuration()-e._totalTime:e._totalTime)/e._timeScale,this}if(e instanceof Array||e&&e.push&&l(e)){for(var s=e.length;--s>-1;)this.remove(e[s]);return this}return"string"==typeof e?this.removeLabel(e):this.kill(null,e)},m._remove=function(t,i){e.prototype._remove.call(this,t,i);var s=this._last;return s?this._time>s._startTime+s._totalDuration/s._timeScale&&(this._time=this.duration(),this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},m.append=function(t,e){return this.add(t,this._parseTimeOrLabel(null,e,!0,t))},m.insert=m.insertMultiple=function(t,e,i,s){return this.add(t,e||0,i,s)},m.appendMultiple=function(t,e,i,s){return this.add(t,this._parseTimeOrLabel(null,e,!0,t),i,s)},m.addLabel=function(t,e){return this._labels[t]=this._parseTimeOrLabel(e),this},m.addPause=function(t,e,s,n){var o=i.delayedCall(0,f,s,n||this);return o.vars.onComplete=o.vars.onReverseComplete=e,o.data="isPause",this._hasPause=!0,this.add(o,t)},m.removeLabel=function(t){return delete this._labels[t],this},m.getLabelTime=function(t){return null!=this._labels[t]?this._labels[t]:-1},m._parseTimeOrLabel=function(e,i,s,n){var o;if(n instanceof t&&n.timeline===this)this.remove(n);else if(n&&(n instanceof Array||n.push&&l(n)))for(o=n.length;--o>-1;)n[o]instanceof t&&n[o].timeline===this&&this.remove(n[o]);if("string"==typeof i)return this._parseTimeOrLabel(i,s&&"number"==typeof e&&null==this._labels[i]?e-this.duration():0,s);if(i=i||0,"string"!=typeof e||!isNaN(e)&&null==this._labels[e])null==e&&(e=this.duration());else{if(o=e.indexOf("="),o===-1)return null==this._labels[e]?s?this._labels[e]=this.duration()+i:i:this._labels[e]+i;i=parseInt(e.charAt(o-1)+"1",10)*Number(e.substr(o+1)),e=o>1?this._parseTimeOrLabel(e.substr(0,o-1),0,s):this.duration()}return Number(e)+i},m.seek=function(t,e){return this.totalTime("number"==typeof t?t:this._parseTimeOrLabel(t),e!==!1)},m.stop=function(){return this.paused(!0)},m.gotoAndPlay=function(t,e){return this.play(t,e)},m.gotoAndStop=function(t,e){return this.pause(t,e)},m.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var s,o,r,a,l,h,p,u=this._dirty?this.totalDuration():this._totalDuration,f=this._time,g=this._startTime,m=this._timeScale,v=this._paused;if(t>=u-1e-7)this._totalTime=this._time=u,this._reversed||this._hasPausedChild()||(o=!0,a="onComplete",l=!!this._timeline.autoRemoveChildren,0===this._duration&&(t<=0&&t>=-1e-7||this._rawPrevTime<0||this._rawPrevTime===n)&&this._rawPrevTime!==t&&this._first&&(l=!0,this._rawPrevTime>n&&(a="onReverseComplete"))),this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:n,t=u+1e-4;else if(t<1e-7)if(this._totalTime=this._time=0,(0!==f||0===this._duration&&this._rawPrevTime!==n&&(this._rawPrevTime>0||t<0&&this._rawPrevTime>=0))&&(a="onReverseComplete",o=this._reversed),t<0)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(l=o=!0,a="onReverseComplete"):this._rawPrevTime>=0&&this._first&&(l=!0),this._rawPrevTime=t;else{if(this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:n,0===t&&o)for(s=this._first;s&&0===s._startTime;)s._duration||(o=!1),s=s._next;t=0,this._initted||(l=!0)}else{if(this._hasPause&&!this._forcingPlayhead&&!e){if(t>=f)for(s=this._first;s&&s._startTime<=t&&!h;)s._duration||"isPause"!==s.data||s.ratio||0===s._startTime&&0===this._rawPrevTime||(h=s),s=s._next;else for(s=this._last;s&&s._startTime>=t&&!h;)s._duration||"isPause"===s.data&&s._rawPrevTime>0&&(h=s),s=s._prev;h&&(this._time=t=h._startTime,this._totalTime=t+this._cycle*(this._totalDuration+this._repeatDelay))}this._totalTime=this._time=this._rawPrevTime=t}if(this._time!==f&&this._first||i||l||h){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==f&&t>0&&(this._active=!0),0===f&&this.vars.onStart&&(0===this._time&&this._duration||e||this._callback("onStart")),p=this._time,p>=f)for(s=this._first;s&&(r=s._next,p===this._time&&(!this._paused||v));)(s._active||s._startTime<=p&&!s._paused&&!s._gc)&&(h===s&&this.pause(),s._reversed?s.render((s._dirty?s.totalDuration():s._totalDuration)-(t-s._startTime)*s._timeScale,e,i):s.render((t-s._startTime)*s._timeScale,e,i)),s=r;else for(s=this._last;s&&(r=s._prev,p===this._time&&(!this._paused||v));){if(s._active||s._startTime<=f&&!s._paused&&!s._gc){if(h===s){for(h=s._prev;h&&h.endTime()>this._time;)h.render(h._reversed?h.totalDuration()-(t-h._startTime)*h._timeScale:(t-h._startTime)*h._timeScale,e,i),h=h._prev;h=null,this.pause()}s._reversed?s.render((s._dirty?s.totalDuration():s._totalDuration)-(t-s._startTime)*s._timeScale,e,i):s.render((t-s._startTime)*s._timeScale,e,i)}s=r}this._onUpdate&&(e||(c.length&&d(),this._callback("onUpdate"))),a&&(this._gc||g!==this._startTime&&m===this._timeScale||(0===this._time||u>=this.totalDuration())&&(o&&(c.length&&d(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[a]&&this._callback(a)))}},m._hasPausedChild=function(){for(var t=this._first;t;){if(t._paused||t instanceof s&&t._hasPausedChild())return!0;t=t._next}return!1},m.getChildren=function(t,e,s,n){n=n||-9999999999;for(var o=[],r=this._first,a=0;r;)r._startTime<n||(r instanceof i?e!==!1&&(o[a++]=r):(s!==!1&&(o[a++]=r),t!==!1&&(o=o.concat(r.getChildren(!0,e,s)),a=o.length))),r=r._next;return o},m.getTweensOf=function(t,e){var s,n,o=this._gc,r=[],a=0;for(o&&this._enabled(!0,!0),s=i.getTweensOf(t),n=s.length;--n>-1;)(s[n].timeline===this||e&&this._contains(s[n]))&&(r[a++]=s[n]);return o&&this._enabled(!1,!0),r},m.recent=function(){return this._recent},m._contains=function(t){for(var e=t.timeline;e;){if(e===this)return!0;e=e.timeline}return!1},m.shiftChildren=function(t,e,i){i=i||0;for(var s,n=this._first,o=this._labels;n;)n._startTime>=i&&(n._startTime+=t),n=n._next;if(e)for(s in o)o[s]>=i&&(o[s]+=t);return this._uncache(!0)},m._kill=function(t,e){if(!t&&!e)return this._enabled(!1,!1);for(var i=e?this.getTweensOf(e):this.getChildren(!0,!0,!1),s=i.length,n=!1;--s>-1;)i[s]._kill(t,e)&&(n=!0);return n},m.clear=function(t){var e=this.getChildren(!1,!0,!0),i=e.length;for(this._time=this._totalTime=0;--i>-1;)e[i]._enabled(!1,!1);return t!==!1&&(this._labels={}),this._uncache(!0)},m.invalidate=function(){for(var e=this._first;e;)e.invalidate(),e=e._next;return t.prototype.invalidate.call(this)},m._enabled=function(t,i){if(t===this._gc)for(var s=this._first;s;)s._enabled(t,!0),s=s._next;return e.prototype._enabled.call(this,t,i)},m.totalTime=function(e,i,s){this._forcingPlayhead=!0;var n=t.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,n},m.duration=function(t){return arguments.length?(0!==this.duration()&&0!==t&&this.timeScale(this._duration/t),this):(this._dirty&&this.totalDuration(),this._duration)},m.totalDuration=function(t){if(!arguments.length){if(this._dirty){for(var e,i,s=0,n=this._last,o=999999999999;n;)e=n._prev,n._dirty&&n.totalDuration(),n._startTime>o&&this._sortChildren&&!n._paused?this.add(n,n._startTime-n._delay):o=n._startTime,n._startTime<0&&!n._paused&&(s-=n._startTime,this._timeline.smoothChildTiming&&(this._startTime+=n._startTime/this._timeScale),this.shiftChildren(-n._startTime,!1,-9999999999),o=0),i=n._startTime+n._totalDuration/n._timeScale,i>s&&(s=i),n=e;this._duration=this._totalDuration=s,this._dirty=!1}return this._totalDuration}return t&&this.totalDuration()?this.timeScale(this._totalDuration/t):this},m.paused=function(e){if(!e)for(var i=this._first,s=this._time;i;)i._startTime===s&&"isPause"===i.data&&(i._rawPrevTime=0),i=i._next;return t.prototype.paused.apply(this,arguments)},m.usesFrames=function(){for(var e=this._timeline;e._timeline;)e=e._timeline;return e===t._rootFramesTimeline},m.rawTime=function(){return this._paused?this._totalTime:(this._timeline.rawTime()-this._startTime)*this._timeScale},s},!0),_gsScope._gsDefine("TimelineMax",["TimelineLite","TweenLite","easing.Ease"],function(t,e,i){var s=function(e){t.call(this,e),this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._cycle=0,this._yoyo=this.vars.yoyo===!0,this._dirty=!0},n=1e-10,o=e._internals,r=o.lazyTweens,a=o.lazyRender,l=_gsScope._gsDefine.globals,c=new i(null,null,1,0),d=s.prototype=new t;return d.constructor=s,d.kill()._gc=!1,s.version="1.19.0",d.invalidate=function(){return this._yoyo=this.vars.yoyo===!0,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),t.prototype.invalidate.call(this)},d.addCallback=function(t,i,s,n){return this.add(e.delayedCall(0,t,s,n),i)},d.removeCallback=function(t,e){if(t)if(null==e)this._kill(null,t);else for(var i=this.getTweensOf(t,!1),s=i.length,n=this._parseTimeOrLabel(e);--s>-1;)i[s]._startTime===n&&i[s]._enabled(!1,!1);return this},d.removePause=function(e){return this.removeCallback(t._internals.pauseCallback,e)},d.tweenTo=function(t,i){i=i||{};var s,n,o,r={ease:c,useFrames:this.usesFrames(),immediateRender:!1},a=i.repeat&&l.TweenMax||e;for(n in i)r[n]=i[n];return r.time=this._parseTimeOrLabel(t),s=Math.abs(Number(r.time)-this._time)/this._timeScale||.001,o=new a(this,s,r),r.onStart=function(){o.target.paused(!0),o.vars.time!==o.target.time()&&s===o.duration()&&o.duration(Math.abs(o.vars.time-o.target.time())/o.target._timeScale),i.onStart&&o._callback("onStart")},o},d.tweenFromTo=function(t,e,i){i=i||{},t=this._parseTimeOrLabel(t),i.startAt={onComplete:this.seek,onCompleteParams:[t],callbackScope:this},i.immediateRender=i.immediateRender!==!1;var s=this.tweenTo(e,i);return s.duration(Math.abs(s.vars.time-t)/this._timeScale||.001)},d.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var s,o,l,c,d,h,p,u,f=this._dirty?this.totalDuration():this._totalDuration,g=this._duration,m=this._time,v=this._totalTime,y=this._startTime,w=this._timeScale,b=this._rawPrevTime,_=this._paused,k=this._cycle;if(t>=f-1e-7)this._locked||(this._totalTime=f,this._cycle=this._repeat),this._reversed||this._hasPausedChild()||(o=!0,c="onComplete",d=!!this._timeline.autoRemoveChildren,0===this._duration&&(t<=0&&t>=-1e-7||b<0||b===n)&&b!==t&&this._first&&(d=!0,b>n&&(c="onReverseComplete"))),this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:n,this._yoyo&&0!==(1&this._cycle)?this._time=t=0:(this._time=g,t=g+1e-4);else if(t<1e-7)if(this._locked||(this._totalTime=this._cycle=0),this._time=0,(0!==m||0===g&&b!==n&&(b>0||t<0&&b>=0)&&!this._locked)&&(c="onReverseComplete",o=this._reversed),t<0)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(d=o=!0,c="onReverseComplete"):b>=0&&this._first&&(d=!0),this._rawPrevTime=t;else{if(this._rawPrevTime=g||!e||t||this._rawPrevTime===t?t:n,0===t&&o)for(s=this._first;s&&0===s._startTime;)s._duration||(o=!1),s=s._next;t=0,this._initted||(d=!0)}else if(0===g&&b<0&&(d=!0),this._time=this._rawPrevTime=t,this._locked||(this._totalTime=t,0!==this._repeat&&(h=g+this._repeatDelay,this._cycle=this._totalTime/h>>0,0!==this._cycle&&this._cycle===this._totalTime/h&&v<=t&&this._cycle--,this._time=this._totalTime-this._cycle*h,this._yoyo&&0!==(1&this._cycle)&&(this._time=g-this._time),this._time>g?(this._time=g,t=g+1e-4):this._time<0?this._time=t=0:t=this._time)),this._hasPause&&!this._forcingPlayhead&&!e){if(t=this._time,t>=m)for(s=this._first;s&&s._startTime<=t&&!p;)s._duration||"isPause"!==s.data||s.ratio||0===s._startTime&&0===this._rawPrevTime||(p=s),s=s._next;else for(s=this._last;s&&s._startTime>=t&&!p;)s._duration||"isPause"===s.data&&s._rawPrevTime>0&&(p=s),s=s._prev;p&&(this._time=t=p._startTime,this._totalTime=t+this._cycle*(this._totalDuration+this._repeatDelay))}if(this._cycle!==k&&!this._locked){var T=this._yoyo&&0!==(1&k),x=T===(this._yoyo&&0!==(1&this._cycle)),C=this._totalTime,S=this._cycle,$=this._rawPrevTime,A=this._time;if(this._totalTime=k*g,this._cycle<k?T=!T:this._totalTime+=g,this._time=m,this._rawPrevTime=0===g?b-1e-4:b,this._cycle=k,this._locked=!0,m=T?0:g,this.render(m,e,0===g),e||this._gc||this.vars.onRepeat&&this._callback("onRepeat"),m!==this._time)return;if(x&&(m=T?g+1e-4:-1e-4,this.render(m,!0,!1)),this._locked=!1,this._paused&&!_)return;this._time=A,this._totalTime=C,this._cycle=S,this._rawPrevTime=$}if(!(this._time!==m&&this._first||i||d||p))return void(v!==this._totalTime&&this._onUpdate&&(e||this._callback("onUpdate")));if(this._initted||(this._initted=!0),this._active||!this._paused&&this._totalTime!==v&&t>0&&(this._active=!0),0===v&&this.vars.onStart&&(0===this._totalTime&&this._totalDuration||e||this._callback("onStart")),u=this._time,u>=m)for(s=this._first;s&&(l=s._next,u===this._time&&(!this._paused||_));)(s._active||s._startTime<=this._time&&!s._paused&&!s._gc)&&(p===s&&this.pause(),s._reversed?s.render((s._dirty?s.totalDuration():s._totalDuration)-(t-s._startTime)*s._timeScale,e,i):s.render((t-s._startTime)*s._timeScale,e,i)),s=l;else for(s=this._last;s&&(l=s._prev,u===this._time&&(!this._paused||_));){if(s._active||s._startTime<=m&&!s._paused&&!s._gc){if(p===s){for(p=s._prev;p&&p.endTime()>this._time;)p.render(p._reversed?p.totalDuration()-(t-p._startTime)*p._timeScale:(t-p._startTime)*p._timeScale,e,i),p=p._prev;p=null,this.pause()}s._reversed?s.render((s._dirty?s.totalDuration():s._totalDuration)-(t-s._startTime)*s._timeScale,e,i):s.render((t-s._startTime)*s._timeScale,e,i)}s=l}this._onUpdate&&(e||(r.length&&a(),this._callback("onUpdate"))),c&&(this._locked||this._gc||y!==this._startTime&&w===this._timeScale||(0===this._time||f>=this.totalDuration())&&(o&&(r.length&&a(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[c]&&this._callback(c)))},d.getActive=function(t,e,i){null==t&&(t=!0),null==e&&(e=!0),null==i&&(i=!1);var s,n,o=[],r=this.getChildren(t,e,i),a=0,l=r.length;for(s=0;s<l;s++)n=r[s],n.isActive()&&(o[a++]=n);return o},d.getLabelAfter=function(t){t||0!==t&&(t=this._time);var e,i=this.getLabelsArray(),s=i.length;for(e=0;e<s;e++)if(i[e].time>t)return i[e].name;return null},d.getLabelBefore=function(t){null==t&&(t=this._time);for(var e=this.getLabelsArray(),i=e.length;--i>-1;)if(e[i].time<t)return e[i].name;return null},d.getLabelsArray=function(){var t,e=[],i=0;for(t in this._labels)e[i++]={time:this._labels[t],name:t};return e.sort(function(t,e){return t.time-e.time}),e},d.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!==(1&this._cycle)?1-t:t)+this._cycle*(this._duration+this._repeatDelay),e):this._time/this.duration()},d.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this._totalTime/this.totalDuration()},d.totalDuration=function(e){return arguments.length?this._repeat!==-1&&e?this.timeScale(this.totalDuration()/e):this:(this._dirty&&(t.prototype.totalDuration.call(this),this._totalDuration=this._repeat===-1?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat),this._totalDuration)},d.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),t>this._duration&&(t=this._duration),this._yoyo&&0!==(1&this._cycle)?t=this._duration-t+this._cycle*(this._duration+this._repeatDelay):0!==this._repeat&&(t+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(t,e)):this._time},d.repeat=function(t){return arguments.length?(this._repeat=t,this._uncache(!0)):this._repeat},d.repeatDelay=function(t){return arguments.length?(this._repeatDelay=t,this._uncache(!0)):this._repeatDelay},d.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},d.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.getLabelBefore(this._time+1e-8)},s},!0),function(){var t=180/Math.PI,e=[],i=[],s=[],n={},o=_gsScope._gsDefine.globals,r=function(t,e,i,s){i===s&&(i=s-(s-e)/1e6),t===e&&(e=t+(i-t)/1e6),this.a=t,this.b=e,this.c=i,this.d=s,this.da=s-t,this.ca=i-t,this.ba=e-t},a=",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,",l=function(t,e,i,s){var n={a:t},o={},r={},a={c:s},l=(t+e)/2,c=(e+i)/2,d=(i+s)/2,h=(l+c)/2,p=(c+d)/2,u=(p-h)/8;return n.b=l+(t-l)/4,o.b=h+u,n.c=o.a=(n.b+o.b)/2,o.c=r.a=(h+p)/2,r.b=p-u,a.b=d+(s-d)/4,r.c=a.a=(r.b+a.b)/2,[n,o,r,a]},c=function(t,n,o,r,a){var c,d,h,p,u,f,g,m,v,y,w,b,_,k=t.length-1,T=0,x=t[0].a;for(c=0;c<k;c++)u=t[T],d=u.a,h=u.d,p=t[T+1].d,a?(w=e[c],b=i[c],_=(b+w)*n*.25/(r?.5:s[c]||.5),f=h-(h-d)*(r?.5*n:0!==w?_/w:0),g=h+(p-h)*(r?.5*n:0!==b?_/b:0),m=h-(f+((g-f)*(3*w/(w+b)+.5)/4||0))):(f=h-(h-d)*n*.5,g=h+(p-h)*n*.5,m=h-(f+g)/2),f+=m,g+=m,u.c=v=f,0!==c?u.b=x:u.b=x=u.a+.6*(u.c-u.a),u.da=h-d,u.ca=v-d,u.ba=x-d,o?(y=l(d,x,v,h),t.splice(T,1,y[0],y[1],y[2],y[3]),T+=4):T++,x=g;u=t[T],u.b=x,u.c=x+.4*(u.d-x),u.da=u.d-u.a,u.ca=u.c-u.a,u.ba=x-u.a,o&&(y=l(u.a,x,u.c,u.d),t.splice(T,1,y[0],y[1],y[2],y[3]))},d=function(t,s,n,o){var a,l,c,d,h,p,u=[];if(o)for(t=[o].concat(t),l=t.length;--l>-1;)"string"==typeof(p=t[l][s])&&"="===p.charAt(1)&&(t[l][s]=o[s]+Number(p.charAt(0)+p.substr(2)));if(a=t.length-2,a<0)return u[0]=new r(t[0][s],0,0,t[a<-1?0:1][s]),u;for(l=0;l<a;l++)c=t[l][s],d=t[l+1][s],u[l]=new r(c,0,0,d),n&&(h=t[l+2][s],e[l]=(e[l]||0)+(d-c)*(d-c),i[l]=(i[l]||0)+(h-d)*(h-d));return u[l]=new r(t[l][s],0,0,t[l+1][s]),u},h=function(t,o,r,l,h,p){var u,f,g,m,v,y,w,b,_={},k=[],T=p||t[0];h="string"==typeof h?","+h+",":a,null==o&&(o=1);for(f in t[0])k.push(f);if(t.length>1){for(b=t[t.length-1],w=!0,u=k.length;--u>-1;)if(f=k[u],Math.abs(T[f]-b[f])>.05){w=!1;break}w&&(t=t.concat(),p&&t.unshift(p),t.push(t[1]),p=t[t.length-3])}for(e.length=i.length=s.length=0,u=k.length;--u>-1;)f=k[u],n[f]=h.indexOf(","+f+",")!==-1,_[f]=d(t,f,n[f],p);for(u=e.length;--u>-1;)e[u]=Math.sqrt(e[u]),i[u]=Math.sqrt(i[u]);if(!l){for(u=k.length;--u>-1;)if(n[f])for(g=_[k[u]],y=g.length-1,m=0;m<y;m++)v=g[m+1].da/i[m]+g[m].da/e[m]||0,s[m]=(s[m]||0)+v*v;for(u=s.length;--u>-1;)s[u]=Math.sqrt(s[u])}for(u=k.length,m=r?4:1;--u>-1;)f=k[u],g=_[f],c(g,o,r,l,n[f]),w&&(g.splice(0,m),g.splice(g.length-m,m));return _},p=function(t,e,i){e=e||"soft";var s,n,o,a,l,c,d,h,p,u,f,g={},m="cubic"===e?3:2,v="soft"===e,y=[];if(v&&i&&(t=[i].concat(t)),null==t||t.length<m+1)throw"invalid Bezier data";for(p in t[0])y.push(p);for(c=y.length;--c>-1;){for(p=y[c],g[p]=l=[],u=0,h=t.length,d=0;d<h;d++)s=null==i?t[d][p]:"string"==typeof(f=t[d][p])&&"="===f.charAt(1)?i[p]+Number(f.charAt(0)+f.substr(2)):Number(f),v&&d>1&&d<h-1&&(l[u++]=(s+l[u-2])/2),l[u++]=s;for(h=u-m+1,u=0,d=0;d<h;d+=m)s=l[d],n=l[d+1],o=l[d+2],a=2===m?0:l[d+3],l[u++]=f=3===m?new r(s,n,o,a):new r(s,(2*n+s)/3,(2*n+o)/3,o);l.length=u}return g},u=function(t,e,i){for(var s,n,o,r,a,l,c,d,h,p,u,f=1/i,g=t.length;--g>-1;)for(p=t[g],o=p.a,r=p.d-o,a=p.c-o,l=p.b-o,s=n=0,d=1;d<=i;d++)c=f*d,h=1-c,s=n-(n=(c*c*r+3*h*(c*a+h*l))*c),u=g*i+d-1,e[u]=(e[u]||0)+s*s},f=function(t,e){e=e>>0||6;var i,s,n,o,r=[],a=[],l=0,c=0,d=e-1,h=[],p=[];for(i in t)u(t[i],r,e);for(n=r.length,s=0;s<n;s++)l+=Math.sqrt(r[s]),o=s%e,p[o]=l,o===d&&(c+=l,o=s/e>>0,h[o]=p,a[o]=c,l=0,p=[]);return{length:c,lengths:a,segments:h}},g=_gsScope._gsDefine.plugin({propName:"bezier",priority:-1,version:"1.3.7",API:2,global:!0,init:function(t,e,i){this._target=t,e instanceof Array&&(e={values:e}),this._func={},this._mod={},this._props=[],this._timeRes=null==e.timeResolution?6:parseInt(e.timeResolution,10);var s,n,o,r,a,l=e.values||[],c={},d=l[0],u=e.autoRotate||i.vars.orientToBezier;this._autoRotate=u?u instanceof Array?u:[["x","y","rotation",u===!0?0:Number(u)||0]]:null;for(s in d)this._props.push(s);for(o=this._props.length;--o>-1;)s=this._props[o],this._overwriteProps.push(s),n=this._func[s]="function"==typeof t[s],c[s]=n?t[s.indexOf("set")||"function"!=typeof t["get"+s.substr(3)]?s:"get"+s.substr(3)]():parseFloat(t[s]),a||c[s]!==l[0][s]&&(a=c);if(this._beziers="cubic"!==e.type&&"quadratic"!==e.type&&"soft"!==e.type?h(l,isNaN(e.curviness)?1:e.curviness,!1,"thruBasic"===e.type,e.correlate,a):p(l,e.type,c),this._segCount=this._beziers[s].length,this._timeRes){var g=f(this._beziers,this._timeRes);this._length=g.length,this._lengths=g.lengths,this._segments=g.segments,this._l1=this._li=this._s1=this._si=0,this._l2=this._lengths[0],this._curSeg=this._segments[0],this._s2=this._curSeg[0],this._prec=1/this._curSeg.length}if(u=this._autoRotate)for(this._initialRotations=[],u[0]instanceof Array||(this._autoRotate=u=[u]),o=u.length;--o>-1;){for(r=0;r<3;r++)s=u[o][r],this._func[s]="function"==typeof t[s]&&t[s.indexOf("set")||"function"!=typeof t["get"+s.substr(3)]?s:"get"+s.substr(3)];s=u[o][2],this._initialRotations[o]=(this._func[s]?this._func[s].call(this._target):this._target[s])||0,this._overwriteProps.push(s)}return this._startRatio=i.vars.runBackwards?1:0,!0},set:function(e){var i,s,n,o,r,a,l,c,d,h,p=this._segCount,u=this._func,f=this._target,g=e!==this._startRatio;if(this._timeRes){if(d=this._lengths,h=this._curSeg,e*=this._length,n=this._li,e>this._l2&&n<p-1){for(c=p-1;n<c&&(this._l2=d[++n])<=e;);this._l1=d[n-1],this._li=n,this._curSeg=h=this._segments[n],this._s2=h[this._s1=this._si=0]}else if(e<this._l1&&n>0){for(;n>0&&(this._l1=d[--n])>=e;);0===n&&e<this._l1?this._l1=0:n++,this._l2=d[n],this._li=n,this._curSeg=h=this._segments[n],this._s1=h[(this._si=h.length-1)-1]||0,this._s2=h[this._si]}if(i=n,e-=this._l1,n=this._si,e>this._s2&&n<h.length-1){for(c=h.length-1;n<c&&(this._s2=h[++n])<=e;);this._s1=h[n-1],this._si=n}else if(e<this._s1&&n>0){for(;n>0&&(this._s1=h[--n])>=e;);0===n&&e<this._s1?this._s1=0:n++,this._s2=h[n],this._si=n}a=(n+(e-this._s1)/(this._s2-this._s1))*this._prec||0}else i=e<0?0:e>=1?p-1:p*e>>0,a=(e-i*(1/p))*p;for(s=1-a,n=this._props.length;--n>-1;)o=this._props[n],r=this._beziers[o][i],l=(a*a*r.da+3*s*(a*r.ca+s*r.ba))*a+r.a,this._mod[o]&&(l=this._mod[o](l,f)),u[o]?f[o](l):f[o]=l;if(this._autoRotate){var m,v,y,w,b,_,k,T=this._autoRotate;for(n=T.length;--n>-1;)o=T[n][2],_=T[n][3]||0,k=T[n][4]===!0?1:t,r=this._beziers[T[n][0]],m=this._beziers[T[n][1]],r&&m&&(r=r[i],m=m[i],v=r.a+(r.b-r.a)*a,w=r.b+(r.c-r.b)*a,v+=(w-v)*a,w+=(r.c+(r.d-r.c)*a-w)*a,y=m.a+(m.b-m.a)*a,b=m.b+(m.c-m.b)*a,y+=(b-y)*a,b+=(m.c+(m.d-m.c)*a-b)*a,l=g?Math.atan2(b-y,w-v)*k+_:this._initialRotations[n],this._mod[o]&&(l=this._mod[o](l,f)),u[o]?f[o](l):f[o]=l)}}}),m=g.prototype;g.bezierThrough=h,g.cubicToQuadratic=l,g._autoCSS=!0,g.quadraticToCubic=function(t,e,i){return new r(t,(2*e+t)/3,(2*e+i)/3,i)},g._cssRegister=function(){var t=o.CSSPlugin;if(t){var e=t._internals,i=e._parseToProxy,s=e._setPluginRatio,n=e.CSSPropTween;e._registerComplexSpecialProp("bezier",{parser:function(t,e,o,r,a,l){e instanceof Array&&(e={values:e}),l=new g;var c,d,h,p=e.values,u=p.length-1,f=[],m={};if(u<0)return a;for(c=0;c<=u;c++)h=i(t,p[c],r,a,l,u!==c),f[c]=h.end;for(d in e)m[d]=e[d];return m.values=f,a=new n(t,"bezier",0,0,h.pt,2),a.data=h,a.plugin=l,a.setRatio=s,0===m.autoRotate&&(m.autoRotate=!0),!m.autoRotate||m.autoRotate instanceof Array||(c=m.autoRotate===!0?0:Number(m.autoRotate),m.autoRotate=null!=h.end.left?[["left","top","rotation",c,!1]]:null!=h.end.x&&[["x","y","rotation",c,!1]]),m.autoRotate&&(r._transform||r._enableTransforms(!1),h.autoRotate=r._target._gsTransform,h.proxy.rotation=h.autoRotate.rotation||0,r._overwriteProps.push("rotation")),l._onInitTween(h.proxy,m,r._tween),a}})}},m._mod=function(t){for(var e,i=this._overwriteProps,s=i.length;--s>-1;)e=t[i[s]],e&&"function"==typeof e&&(this._mod[i[s]]=e)},m._kill=function(t){var e,i,s=this._props;for(e in this._beziers)if(e in t)for(delete this._beziers[e],delete this._func[e],i=s.length;--i>-1;)s[i]===e&&s.splice(i,1);if(s=this._autoRotate)for(i=s.length;--i>-1;)t[s[i][2]]&&s.splice(i,1);return this._super._kill.call(this,t)}}(),_gsScope._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(t,e){var i,s,n,o,r=function(){t.call(this,"css"),this._overwriteProps.length=0,this.setRatio=r.prototype.setRatio},a=_gsScope._gsDefine.globals,l={},c=r.prototype=new t("css");c.constructor=r,r.version="1.19.0",r.API=2,r.defaultTransformPerspective=0,r.defaultSkewType="compensated",r.defaultSmoothOrigin=!0,c="px",r.suffixMap={top:c,right:c,bottom:c,left:c,width:c,height:c,fontSize:c,padding:c,margin:c,perspective:c,lineHeight:""};var d,h,p,u,f,g,m,v,y=/(?:\-|\.|\b)(\d|\.|e\-)+/g,w=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,b=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,_=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,k=/(?:\d|\-|\+|=|#|\.)*/g,T=/opacity *= *([^)]*)/i,x=/opacity:([^;]*)/i,C=/alpha\(opacity *=.+?\)/i,S=/^(rgb|hsl)/,$=/([A-Z])/g,A=/-([a-z])/gi,D=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,M=function(t,e){return e.toUpperCase()},E=/(?:Left|Right|Width)/i,P=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,O=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,I=/,(?=[^\)]*(?:\(|$))/gi,L=/[\s,\(]/i,R=Math.PI/180,j=180/Math.PI,N={},z=document,F=function(t){return z.createElementNS?z.createElementNS("http://www.w3.org/1999/xhtml",t):z.createElement(t)},U=F("div"),H=F("img"),q=r._internals={_specialProps:l},B=navigator.userAgent,W=function(){var t=B.indexOf("Android"),e=F("a");return p=B.indexOf("Safari")!==-1&&B.indexOf("Chrome")===-1&&(t===-1||Number(B.substr(t+8,1))>3),f=p&&Number(B.substr(B.indexOf("Version/")+8,1))<6,u=B.indexOf("Firefox")!==-1,(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(B)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(B))&&(g=parseFloat(RegExp.$1)),!!e&&(e.style.cssText="top:1px;opacity:.55;",/^0.55/.test(e.style.opacity))}(),Y=function(t){return T.test("string"==typeof t?t:(t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?parseFloat(RegExp.$1)/100:1},Q=function(t){window.console&&console.log(t)},V="",X="",Z=function(t,e){e=e||U;var i,s,n=e.style;if(void 0!==n[t])return t;for(t=t.charAt(0).toUpperCase()+t.substr(1),i=["O","Moz","ms","Ms","Webkit"],s=5;--s>-1&&void 0===n[i[s]+t];);return s>=0?(X=3===s?"ms":i[s],V="-"+X.toLowerCase()+"-",X+t):null},G=z.defaultView?z.defaultView.getComputedStyle:function(){},K=r.getStyle=function(t,e,i,s,n){var o;return W||"opacity"!==e?(!s&&t.style[e]?o=t.style[e]:(i=i||G(t))?o=i[e]||i.getPropertyValue(e)||i.getPropertyValue(e.replace($,"-$1").toLowerCase()):t.currentStyle&&(o=t.currentStyle[e]),null==n||o&&"none"!==o&&"auto"!==o&&"auto auto"!==o?o:n):Y(t)},J=q.convertToPixels=function(t,i,s,n,o){if("px"===n||!n)return s;if("auto"===n||!s)return 0;var a,l,c,d=E.test(i),h=t,p=U.style,u=s<0,f=1===s;if(u&&(s=-s),f&&(s*=100),"%"===n&&i.indexOf("border")!==-1)a=s/100*(d?t.clientWidth:t.clientHeight);else{if(p.cssText="border:0 solid red;position:"+K(t,"position")+";line-height:0;","%"!==n&&h.appendChild&&"v"!==n.charAt(0)&&"rem"!==n)p[d?"borderLeftWidth":"borderTopWidth"]=s+n;else{if(h=t.parentNode||z.body,l=h._gsCache,c=e.ticker.frame,l&&d&&l.time===c)return l.width*s/100;p[d?"width":"height"]=s+n}h.appendChild(U),a=parseFloat(U[d?"offsetWidth":"offsetHeight"]),h.removeChild(U),d&&"%"===n&&r.cacheWidths!==!1&&(l=h._gsCache=h._gsCache||{},l.time=c,l.width=a/s*100),0!==a||o||(a=J(t,i,s,n,!0))}return f&&(a/=100),u?-a:a},tt=q.calculateOffset=function(t,e,i){if("absolute"!==K(t,"position",i))return 0;var s="left"===e?"Left":"Top",n=K(t,"margin"+s,i);return t["offset"+s]-(J(t,e,parseFloat(n),n.replace(k,""))||0)},et=function(t,e){var i,s,n,o={};if(e=e||G(t,null))if(i=e.length)for(;--i>-1;)n=e[i],n.indexOf("-transform")!==-1&&At!==n||(o[n.replace(A,M)]=e.getPropertyValue(n));else for(i in e)i.indexOf("Transform")!==-1&&$t!==i||(o[i]=e[i]);else if(e=t.currentStyle||t.style)for(i in e)"string"==typeof i&&void 0===o[i]&&(o[i.replace(A,M)]=e[i]);return W||(o.opacity=Y(t)),s=Ut(t,e,!1),o.rotation=s.rotation,o.skewX=s.skewX,o.scaleX=s.scaleX,o.scaleY=s.scaleY,o.x=s.x,o.y=s.y,Mt&&(o.z=s.z,o.rotationX=s.rotationX,o.rotationY=s.rotationY,o.scaleZ=s.scaleZ),o.filters&&delete o.filters,o},it=function(t,e,i,s,n){var o,r,a,l={},c=t.style;for(r in i)"cssText"!==r&&"length"!==r&&isNaN(r)&&(e[r]!==(o=i[r])||n&&n[r])&&r.indexOf("Origin")===-1&&("number"!=typeof o&&"string"!=typeof o||(l[r]="auto"!==o||"left"!==r&&"top"!==r?""!==o&&"auto"!==o&&"none"!==o||"string"!=typeof e[r]||""===e[r].replace(_,"")?o:0:tt(t,r),void 0!==c[r]&&(a=new vt(c,r,c[r],a))));if(s)for(r in s)"className"!==r&&(l[r]=s[r]);return{difs:l,firstMPT:a}},st={width:["Left","Right"],height:["Top","Bottom"]},nt=["marginLeft","marginRight","marginTop","marginBottom"],ot=function(t,e,i){if("svg"===(t.nodeName+"").toLowerCase())return(i||G(t))[e]||0;if(t.getBBox&&Nt(t))return t.getBBox()[e]||0;var s=parseFloat("width"===e?t.offsetWidth:t.offsetHeight),n=st[e],o=n.length;for(i=i||G(t,null);--o>-1;)s-=parseFloat(K(t,"padding"+n[o],i,!0))||0,s-=parseFloat(K(t,"border"+n[o]+"Width",i,!0))||0;return s},rt=function(t,e){if("contain"===t||"auto"===t||"auto auto"===t)return t+" ";null!=t&&""!==t||(t="0 0");var i,s=t.split(" "),n=t.indexOf("left")!==-1?"0%":t.indexOf("right")!==-1?"100%":s[0],o=t.indexOf("top")!==-1?"0%":t.indexOf("bottom")!==-1?"100%":s[1];if(s.length>3&&!e){for(s=t.split(", ").join(",").split(","),t=[],i=0;i<s.length;i++)t.push(rt(s[i]));return t.join(",")}return null==o?o="center"===n?"50%":"0":"center"===o&&(o="50%"),("center"===n||isNaN(parseFloat(n))&&(n+"").indexOf("=")===-1)&&(n="50%"),t=n+" "+o+(s.length>2?" "+s[2]:""),e&&(e.oxp=n.indexOf("%")!==-1,e.oyp=o.indexOf("%")!==-1,e.oxr="="===n.charAt(1),e.oyr="="===o.charAt(1),e.ox=parseFloat(n.replace(_,"")),e.oy=parseFloat(o.replace(_,"")),e.v=t),e||t},at=function(t,e){return"function"==typeof t&&(t=t(v,m)),"string"==typeof t&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2)):parseFloat(t)-parseFloat(e)||0},lt=function(t,e){return"function"==typeof t&&(t=t(v,m)),null==t?e:"string"==typeof t&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2))+e:parseFloat(t)||0},ct=function(t,e,i,s){var n,o,r,a,l,c=1e-6;return"function"==typeof t&&(t=t(v,m)),null==t?a=e:"number"==typeof t?a=t:(n=360,o=t.split("_"),l="="===t.charAt(1),r=(l?parseInt(t.charAt(0)+"1",10)*parseFloat(o[0].substr(2)):parseFloat(o[0]))*(t.indexOf("rad")===-1?1:j)-(l?0:e),o.length&&(s&&(s[i]=e+r),t.indexOf("short")!==-1&&(r%=n,r!==r%(n/2)&&(r=r<0?r+n:r-n)),t.indexOf("_cw")!==-1&&r<0?r=(r+9999999999*n)%n-(r/n|0)*n:t.indexOf("ccw")!==-1&&r>0&&(r=(r-9999999999*n)%n-(r/n|0)*n)),a=e+r),a<c&&a>-c&&(a=0),a},dt={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},ht=function(t,e,i){return t=t<0?t+1:t>1?t-1:t,255*(6*t<1?e+(i-e)*t*6:t<.5?i:3*t<2?e+(i-e)*(2/3-t)*6:e)+.5|0},pt=r.parseColor=function(t,e){var i,s,n,o,r,a,l,c,d,h,p;if(t)if("number"==typeof t)i=[t>>16,t>>8&255,255&t];else{if(","===t.charAt(t.length-1)&&(t=t.substr(0,t.length-1)),
dt[t])i=dt[t];else if("#"===t.charAt(0))4===t.length&&(s=t.charAt(1),n=t.charAt(2),o=t.charAt(3),t="#"+s+s+n+n+o+o),t=parseInt(t.substr(1),16),i=[t>>16,t>>8&255,255&t];else if("hsl"===t.substr(0,3))if(i=p=t.match(y),e){if(t.indexOf("=")!==-1)return t.match(w)}else r=Number(i[0])%360/360,a=Number(i[1])/100,l=Number(i[2])/100,n=l<=.5?l*(a+1):l+a-l*a,s=2*l-n,i.length>3&&(i[3]=Number(t[3])),i[0]=ht(r+1/3,s,n),i[1]=ht(r,s,n),i[2]=ht(r-1/3,s,n);else i=t.match(y)||dt.transparent;i[0]=Number(i[0]),i[1]=Number(i[1]),i[2]=Number(i[2]),i.length>3&&(i[3]=Number(i[3]))}else i=dt.black;return e&&!p&&(s=i[0]/255,n=i[1]/255,o=i[2]/255,c=Math.max(s,n,o),d=Math.min(s,n,o),l=(c+d)/2,c===d?r=a=0:(h=c-d,a=l>.5?h/(2-c-d):h/(c+d),r=c===s?(n-o)/h+(n<o?6:0):c===n?(o-s)/h+2:(s-n)/h+4,r*=60),i[0]=r+.5|0,i[1]=100*a+.5|0,i[2]=100*l+.5|0),i},ut=function(t,e){var i,s,n,o=t.match(ft)||[],r=0,a=o.length?"":t;for(i=0;i<o.length;i++)s=o[i],n=t.substr(r,t.indexOf(s,r)-r),r+=n.length+s.length,s=pt(s,e),3===s.length&&s.push(1),a+=n+(e?"hsla("+s[0]+","+s[1]+"%,"+s[2]+"%,"+s[3]:"rgba("+s.join(","))+")";return a+t.substr(r)},ft="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";for(c in dt)ft+="|"+c+"\\b";ft=new RegExp(ft+")","gi"),r.colorStringFilter=function(t){var e,i=t[0]+t[1];ft.test(i)&&(e=i.indexOf("hsl(")!==-1||i.indexOf("hsla(")!==-1,t[0]=ut(t[0],e),t[1]=ut(t[1],e)),ft.lastIndex=0},e.defaultStringFilter||(e.defaultStringFilter=r.colorStringFilter);var gt=function(t,e,i,s){if(null==t)return function(t){return t};var n,o=e?(t.match(ft)||[""])[0]:"",r=t.split(o).join("").match(b)||[],a=t.substr(0,t.indexOf(r[0])),l=")"===t.charAt(t.length-1)?")":"",c=t.indexOf(" ")!==-1?" ":",",d=r.length,h=d>0?r[0].replace(y,""):"";return d?n=e?function(t){var e,p,u,f;if("number"==typeof t)t+=h;else if(s&&I.test(t)){for(f=t.replace(I,"|").split("|"),u=0;u<f.length;u++)f[u]=n(f[u]);return f.join(",")}if(e=(t.match(ft)||[o])[0],p=t.split(e).join("").match(b)||[],u=p.length,d>u--)for(;++u<d;)p[u]=i?p[(u-1)/2|0]:r[u];return a+p.join(c)+c+e+l+(t.indexOf("inset")!==-1?" inset":"")}:function(t){var e,o,p;if("number"==typeof t)t+=h;else if(s&&I.test(t)){for(o=t.replace(I,"|").split("|"),p=0;p<o.length;p++)o[p]=n(o[p]);return o.join(",")}if(e=t.match(b)||[],p=e.length,d>p--)for(;++p<d;)e[p]=i?e[(p-1)/2|0]:r[p];return a+e.join(c)+l}:function(t){return t}},mt=function(t){return t=t.split(","),function(e,i,s,n,o,r,a){var l,c=(i+"").split(" ");for(a={},l=0;l<4;l++)a[t[l]]=c[l]=c[l]||c[(l-1)/2>>0];return n.parse(e,a,o,r)}},vt=(q._setPluginRatio=function(t){this.plugin.setRatio(t);for(var e,i,s,n,o,r=this.data,a=r.proxy,l=r.firstMPT,c=1e-6;l;)e=a[l.v],l.r?e=Math.round(e):e<c&&e>-c&&(e=0),l.t[l.p]=e,l=l._next;if(r.autoRotate&&(r.autoRotate.rotation=r.mod?r.mod(a.rotation,this.t):a.rotation),1===t||0===t)for(l=r.firstMPT,o=1===t?"e":"b";l;){if(i=l.t,i.type){if(1===i.type){for(n=i.xs0+i.s+i.xs1,s=1;s<i.l;s++)n+=i["xn"+s]+i["xs"+(s+1)];i[o]=n}}else i[o]=i.s+i.xs0;l=l._next}},function(t,e,i,s,n){this.t=t,this.p=e,this.v=i,this.r=n,s&&(s._prev=this,this._next=s)}),yt=(q._parseToProxy=function(t,e,i,s,n,o){var r,a,l,c,d,h=s,p={},u={},f=i._transform,g=N;for(i._transform=null,N=e,s=d=i.parse(t,e,s,n),N=g,o&&(i._transform=f,h&&(h._prev=null,h._prev&&(h._prev._next=null)));s&&s!==h;){if(s.type<=1&&(a=s.p,u[a]=s.s+s.c,p[a]=s.s,o||(c=new vt(s,"s",a,c,s.r),s.c=0),1===s.type))for(r=s.l;--r>0;)l="xn"+r,a=s.p+"_"+l,u[a]=s.data[l],p[a]=s[l],o||(c=new vt(s,l,a,c,s.rxp[l]));s=s._next}return{proxy:p,end:u,firstMPT:c,pt:d}},q.CSSPropTween=function(t,e,s,n,r,a,l,c,d,h,p){this.t=t,this.p=e,this.s=s,this.c=n,this.n=l||e,t instanceof yt||o.push(this.n),this.r=c,this.type=a||0,d&&(this.pr=d,i=!0),this.b=void 0===h?s:h,this.e=void 0===p?s+n:p,r&&(this._next=r,r._prev=this)}),wt=function(t,e,i,s,n,o){var r=new yt(t,e,i,s-i,n,(-1),o);return r.b=i,r.e=r.xs0=s,r},bt=r.parseComplex=function(t,e,i,s,n,o,a,l,c,h){i=i||o||"","function"==typeof s&&(s=s(v,m)),a=new yt(t,e,0,0,a,h?2:1,null,(!1),l,i,s),s+="",n&&ft.test(s+i)&&(s=[i,s],r.colorStringFilter(s),i=s[0],s=s[1]);var p,u,f,g,b,_,k,T,x,C,S,$,A,D=i.split(", ").join(",").split(" "),M=s.split(", ").join(",").split(" "),E=D.length,P=d!==!1;for(s.indexOf(",")===-1&&i.indexOf(",")===-1||(D=D.join(" ").replace(I,", ").split(" "),M=M.join(" ").replace(I,", ").split(" "),E=D.length),E!==M.length&&(D=(o||"").split(" "),E=D.length),a.plugin=c,a.setRatio=h,ft.lastIndex=0,p=0;p<E;p++)if(g=D[p],b=M[p],T=parseFloat(g),T||0===T)a.appendXtra("",T,at(b,T),b.replace(w,""),P&&b.indexOf("px")!==-1,!0);else if(n&&ft.test(g))$=b.indexOf(")")+1,$=")"+($?b.substr($):""),A=b.indexOf("hsl")!==-1&&W,g=pt(g,A),b=pt(b,A),x=g.length+b.length>6,x&&!W&&0===b[3]?(a["xs"+a.l]+=a.l?" transparent":"transparent",a.e=a.e.split(M[p]).join("transparent")):(W||(x=!1),A?a.appendXtra(x?"hsla(":"hsl(",g[0],at(b[0],g[0]),",",!1,!0).appendXtra("",g[1],at(b[1],g[1]),"%,",!1).appendXtra("",g[2],at(b[2],g[2]),x?"%,":"%"+$,!1):a.appendXtra(x?"rgba(":"rgb(",g[0],b[0]-g[0],",",!0,!0).appendXtra("",g[1],b[1]-g[1],",",!0).appendXtra("",g[2],b[2]-g[2],x?",":$,!0),x&&(g=g.length<4?1:g[3],a.appendXtra("",g,(b.length<4?1:b[3])-g,$,!1))),ft.lastIndex=0;else if(_=g.match(y)){if(k=b.match(w),!k||k.length!==_.length)return a;for(f=0,u=0;u<_.length;u++)S=_[u],C=g.indexOf(S,f),a.appendXtra(g.substr(f,C-f),Number(S),at(k[u],S),"",P&&"px"===g.substr(C+S.length,2),0===u),f=C+S.length;a["xs"+a.l]+=g.substr(f)}else a["xs"+a.l]+=a.l||a["xs"+a.l]?" "+b:b;if(s.indexOf("=")!==-1&&a.data){for($=a.xs0+a.data.s,p=1;p<a.l;p++)$+=a["xs"+p]+a.data["xn"+p];a.e=$+a["xs"+p]}return a.l||(a.type=-1,a.xs0=a.e),a.xfirst||a},_t=9;for(c=yt.prototype,c.l=c.pr=0;--_t>0;)c["xn"+_t]=0,c["xs"+_t]="";c.xs0="",c._next=c._prev=c.xfirst=c.data=c.plugin=c.setRatio=c.rxp=null,c.appendXtra=function(t,e,i,s,n,o){var r=this,a=r.l;return r["xs"+a]+=o&&(a||r["xs"+a])?" "+t:t||"",i||0===a||r.plugin?(r.l++,r.type=r.setRatio?2:1,r["xs"+r.l]=s||"",a>0?(r.data["xn"+a]=e+i,r.rxp["xn"+a]=n,r["xn"+a]=e,r.plugin||(r.xfirst=new yt(r,"xn"+a,e,i,r.xfirst||r,0,r.n,n,r.pr),r.xfirst.xs0=0),r):(r.data={s:e+i},r.rxp={},r.s=e,r.c=i,r.r=n,r)):(r["xs"+a]+=e+(s||""),r)};var kt=function(t,e){e=e||{},this.p=e.prefix?Z(t)||t:t,l[t]=l[this.p]=this,this.format=e.formatter||gt(e.defaultValue,e.color,e.collapsible,e.multi),e.parser&&(this.parse=e.parser),this.clrs=e.color,this.multi=e.multi,this.keyword=e.keyword,this.dflt=e.defaultValue,this.pr=e.priority||0},Tt=q._registerComplexSpecialProp=function(t,e,i){"object"!=typeof e&&(e={parser:i});var s,n,o=t.split(","),r=e.defaultValue;for(i=i||[r],s=0;s<o.length;s++)e.prefix=0===s&&e.prefix,e.defaultValue=i[s]||r,n=new kt(o[s],e)},xt=q._registerPluginProp=function(t){if(!l[t]){var e=t.charAt(0).toUpperCase()+t.substr(1)+"Plugin";Tt(t,{parser:function(t,i,s,n,o,r,c){var d=a.com.greensock.plugins[e];return d?(d._cssRegister(),l[s].parse(t,i,s,n,o,r,c)):(Q("Error: "+e+" js file not loaded."),o)}})}};c=kt.prototype,c.parseComplex=function(t,e,i,s,n,o){var r,a,l,c,d,h,p=this.keyword;if(this.multi&&(I.test(i)||I.test(e)?(a=e.replace(I,"|").split("|"),l=i.replace(I,"|").split("|")):p&&(a=[e],l=[i])),l){for(c=l.length>a.length?l.length:a.length,r=0;r<c;r++)e=a[r]=a[r]||this.dflt,i=l[r]=l[r]||this.dflt,p&&(d=e.indexOf(p),h=i.indexOf(p),d!==h&&(h===-1?a[r]=a[r].split(p).join(""):d===-1&&(a[r]+=" "+p)));e=a.join(", "),i=l.join(", ")}return bt(t,this.p,e,i,this.clrs,this.dflt,s,this.pr,n,o)},c.parse=function(t,e,i,s,o,r,a){return this.parseComplex(t.style,this.format(K(t,this.p,n,!1,this.dflt)),this.format(e),o,r)},r.registerSpecialProp=function(t,e,i){Tt(t,{parser:function(t,s,n,o,r,a,l){var c=new yt(t,n,0,0,r,2,n,(!1),i);return c.plugin=a,c.setRatio=e(t,s,o._tween,n),c},priority:i})},r.useSVGTransformAttr=p||u;var Ct,St="scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","),$t=Z("transform"),At=V+"transform",Dt=Z("transformOrigin"),Mt=null!==Z("perspective"),Et=q.Transform=function(){this.perspective=parseFloat(r.defaultTransformPerspective)||0,this.force3D=!(r.defaultForce3D===!1||!Mt)&&(r.defaultForce3D||"auto")},Pt=window.SVGElement,Ot=function(t,e,i){var s,n=z.createElementNS("http://www.w3.org/2000/svg",t),o=/([a-z])([A-Z])/g;for(s in i)n.setAttributeNS(null,s.replace(o,"$1-$2").toLowerCase(),i[s]);return e.appendChild(n),n},It=z.documentElement,Lt=function(){var t,e,i,s=g||/Android/i.test(B)&&!window.chrome;return z.createElementNS&&!s&&(t=Ot("svg",It),e=Ot("rect",t,{width:100,height:50,x:100}),i=e.getBoundingClientRect().width,e.style[Dt]="50% 50%",e.style[$t]="scaleX(0.5)",s=i===e.getBoundingClientRect().width&&!(u&&Mt),It.removeChild(t)),s}(),Rt=function(t,e,i,s,n,o){var a,l,c,d,h,p,u,f,g,m,v,y,w,b,_=t._gsTransform,k=Ft(t,!0);_&&(w=_.xOrigin,b=_.yOrigin),(!s||(a=s.split(" ")).length<2)&&(u=t.getBBox(),e=rt(e).split(" "),a=[(e[0].indexOf("%")!==-1?parseFloat(e[0])/100*u.width:parseFloat(e[0]))+u.x,(e[1].indexOf("%")!==-1?parseFloat(e[1])/100*u.height:parseFloat(e[1]))+u.y]),i.xOrigin=d=parseFloat(a[0]),i.yOrigin=h=parseFloat(a[1]),s&&k!==zt&&(p=k[0],u=k[1],f=k[2],g=k[3],m=k[4],v=k[5],y=p*g-u*f,l=d*(g/y)+h*(-f/y)+(f*v-g*m)/y,c=d*(-u/y)+h*(p/y)-(p*v-u*m)/y,d=i.xOrigin=a[0]=l,h=i.yOrigin=a[1]=c),_&&(o&&(i.xOffset=_.xOffset,i.yOffset=_.yOffset,_=i),n||n!==!1&&r.defaultSmoothOrigin!==!1?(l=d-w,c=h-b,_.xOffset+=l*k[0]+c*k[2]-l,_.yOffset+=l*k[1]+c*k[3]-c):_.xOffset=_.yOffset=0),o||t.setAttribute("data-svg-origin",a.join(" "))},jt=function(t){try{return t.getBBox()}catch(t){}},Nt=function(t){return!!(Pt&&t.getBBox&&t.getCTM&&jt(t)&&(!t.parentNode||t.parentNode.getBBox&&t.parentNode.getCTM))},zt=[1,0,0,1,0,0],Ft=function(t,e){var i,s,n,o,r,a,l=t._gsTransform||new Et,c=1e5,d=t.style;if($t?s=K(t,At,null,!0):t.currentStyle&&(s=t.currentStyle.filter.match(P),s=s&&4===s.length?[s[0].substr(4),Number(s[2].substr(4)),Number(s[1].substr(4)),s[3].substr(4),l.x||0,l.y||0].join(","):""),i=!s||"none"===s||"matrix(1, 0, 0, 1, 0, 0)"===s,i&&$t&&((a="none"===G(t).display)||!t.parentNode)&&(a&&(o=d.display,d.display="block"),t.parentNode||(r=1,It.appendChild(t)),s=K(t,At,null,!0),i=!s||"none"===s||"matrix(1, 0, 0, 1, 0, 0)"===s,o?d.display=o:a&&Wt(d,"display"),r&&It.removeChild(t)),(l.svg||t.getBBox&&Nt(t))&&(i&&(d[$t]+"").indexOf("matrix")!==-1&&(s=d[$t],i=0),n=t.getAttribute("transform"),i&&n&&(n.indexOf("matrix")!==-1?(s=n,i=0):n.indexOf("translate")!==-1&&(s="matrix(1,0,0,1,"+n.match(/(?:\-|\b)[\d\-\.e]+\b/gi).join(",")+")",i=0))),i)return zt;for(n=(s||"").match(y)||[],_t=n.length;--_t>-1;)o=Number(n[_t]),n[_t]=(r=o-(o|=0))?(r*c+(r<0?-.5:.5)|0)/c+o:o;return e&&n.length>6?[n[0],n[1],n[4],n[5],n[12],n[13]]:n},Ut=q.getTransform=function(t,i,s,n){if(t._gsTransform&&s&&!n)return t._gsTransform;var o,a,l,c,d,h,p=s?t._gsTransform||new Et:new Et,u=p.scaleX<0,f=2e-5,g=1e5,m=Mt?parseFloat(K(t,Dt,i,!1,"0 0 0").split(" ")[2])||p.zOrigin||0:0,v=parseFloat(r.defaultTransformPerspective)||0;if(p.svg=!(!t.getBBox||!Nt(t)),p.svg&&(Rt(t,K(t,Dt,i,!1,"50% 50%")+"",p,t.getAttribute("data-svg-origin")),Ct=r.useSVGTransformAttr||Lt),o=Ft(t),o!==zt){if(16===o.length){var y,w,b,_,k,T=o[0],x=o[1],C=o[2],S=o[3],$=o[4],A=o[5],D=o[6],M=o[7],E=o[8],P=o[9],O=o[10],I=o[12],L=o[13],R=o[14],N=o[11],z=Math.atan2(D,O);p.zOrigin&&(R=-p.zOrigin,I=E*R-o[12],L=P*R-o[13],R=O*R+p.zOrigin-o[14]),p.rotationX=z*j,z&&(_=Math.cos(-z),k=Math.sin(-z),y=$*_+E*k,w=A*_+P*k,b=D*_+O*k,E=$*-k+E*_,P=A*-k+P*_,O=D*-k+O*_,N=M*-k+N*_,$=y,A=w,D=b),z=Math.atan2(-C,O),p.rotationY=z*j,z&&(_=Math.cos(-z),k=Math.sin(-z),y=T*_-E*k,w=x*_-P*k,b=C*_-O*k,P=x*k+P*_,O=C*k+O*_,N=S*k+N*_,T=y,x=w,C=b),z=Math.atan2(x,T),p.rotation=z*j,z&&(_=Math.cos(-z),k=Math.sin(-z),T=T*_+$*k,w=x*_+A*k,A=x*-k+A*_,D=C*-k+D*_,x=w),p.rotationX&&Math.abs(p.rotationX)+Math.abs(p.rotation)>359.9&&(p.rotationX=p.rotation=0,p.rotationY=180-p.rotationY),p.scaleX=(Math.sqrt(T*T+x*x)*g+.5|0)/g,p.scaleY=(Math.sqrt(A*A+P*P)*g+.5|0)/g,p.scaleZ=(Math.sqrt(D*D+O*O)*g+.5|0)/g,p.rotationX||p.rotationY?p.skewX=0:(p.skewX=$||A?Math.atan2($,A)*j+p.rotation:p.skewX||0,Math.abs(p.skewX)>90&&Math.abs(p.skewX)<270&&(u?(p.scaleX*=-1,p.skewX+=p.rotation<=0?180:-180,p.rotation+=p.rotation<=0?180:-180):(p.scaleY*=-1,p.skewX+=p.skewX<=0?180:-180))),p.perspective=N?1/(N<0?-N:N):0,p.x=I,p.y=L,p.z=R,p.svg&&(p.x-=p.xOrigin-(p.xOrigin*T-p.yOrigin*$),p.y-=p.yOrigin-(p.yOrigin*x-p.xOrigin*A))}else if(!Mt||n||!o.length||p.x!==o[4]||p.y!==o[5]||!p.rotationX&&!p.rotationY){var F=o.length>=6,U=F?o[0]:1,H=o[1]||0,q=o[2]||0,B=F?o[3]:1;p.x=o[4]||0,p.y=o[5]||0,l=Math.sqrt(U*U+H*H),c=Math.sqrt(B*B+q*q),d=U||H?Math.atan2(H,U)*j:p.rotation||0,h=q||B?Math.atan2(q,B)*j+d:p.skewX||0,Math.abs(h)>90&&Math.abs(h)<270&&(u?(l*=-1,h+=d<=0?180:-180,d+=d<=0?180:-180):(c*=-1,h+=h<=0?180:-180)),p.scaleX=l,p.scaleY=c,p.rotation=d,p.skewX=h,Mt&&(p.rotationX=p.rotationY=p.z=0,p.perspective=v,p.scaleZ=1),p.svg&&(p.x-=p.xOrigin-(p.xOrigin*U+p.yOrigin*q),p.y-=p.yOrigin-(p.xOrigin*H+p.yOrigin*B))}p.zOrigin=m;for(a in p)p[a]<f&&p[a]>-f&&(p[a]=0)}return s&&(t._gsTransform=p,p.svg&&(Ct&&t.style[$t]?e.delayedCall(.001,function(){Wt(t.style,$t)}):!Ct&&t.getAttribute("transform")&&e.delayedCall(.001,function(){t.removeAttribute("transform")}))),p},Ht=function(t){var e,i,s=this.data,n=-s.rotation*R,o=n+s.skewX*R,r=1e5,a=(Math.cos(n)*s.scaleX*r|0)/r,l=(Math.sin(n)*s.scaleX*r|0)/r,c=(Math.sin(o)*-s.scaleY*r|0)/r,d=(Math.cos(o)*s.scaleY*r|0)/r,h=this.t.style,p=this.t.currentStyle;if(p){i=l,l=-c,c=-i,e=p.filter,h.filter="";var u,f,m=this.t.offsetWidth,v=this.t.offsetHeight,y="absolute"!==p.position,w="progid:DXImageTransform.Microsoft.Matrix(M11="+a+", M12="+l+", M21="+c+", M22="+d,b=s.x+m*s.xPercent/100,_=s.y+v*s.yPercent/100;if(null!=s.ox&&(u=(s.oxp?m*s.ox*.01:s.ox)-m/2,f=(s.oyp?v*s.oy*.01:s.oy)-v/2,b+=u-(u*a+f*l),_+=f-(u*c+f*d)),y?(u=m/2,f=v/2,w+=", Dx="+(u-(u*a+f*l)+b)+", Dy="+(f-(u*c+f*d)+_)+")"):w+=", sizingMethod='auto expand')",e.indexOf("DXImageTransform.Microsoft.Matrix(")!==-1?h.filter=e.replace(O,w):h.filter=w+" "+e,0!==t&&1!==t||1===a&&0===l&&0===c&&1===d&&(y&&w.indexOf("Dx=0, Dy=0")===-1||T.test(e)&&100!==parseFloat(RegExp.$1)||e.indexOf(e.indexOf("Alpha"))===-1&&h.removeAttribute("filter")),!y){var x,C,S,$=g<8?1:-1;for(u=s.ieOffsetX||0,f=s.ieOffsetY||0,s.ieOffsetX=Math.round((m-((a<0?-a:a)*m+(l<0?-l:l)*v))/2+b),s.ieOffsetY=Math.round((v-((d<0?-d:d)*v+(c<0?-c:c)*m))/2+_),_t=0;_t<4;_t++)C=nt[_t],x=p[C],i=x.indexOf("px")!==-1?parseFloat(x):J(this.t,C,parseFloat(x),x.replace(k,""))||0,S=i!==s[C]?_t<2?-s.ieOffsetX:-s.ieOffsetY:_t<2?u-s.ieOffsetX:f-s.ieOffsetY,h[C]=(s[C]=Math.round(i-S*(0===_t||2===_t?1:$)))+"px"}}},qt=q.set3DTransformRatio=q.setTransformRatio=function(t){var e,i,s,n,o,r,a,l,c,d,h,p,f,g,m,v,y,w,b,_,k,T,x,C=this.data,S=this.t.style,$=C.rotation,A=C.rotationX,D=C.rotationY,M=C.scaleX,E=C.scaleY,P=C.scaleZ,O=C.x,I=C.y,L=C.z,j=C.svg,N=C.perspective,z=C.force3D;if(((1===t||0===t)&&"auto"===z&&(this.tween._totalTime===this.tween._totalDuration||!this.tween._totalTime)||!z)&&!L&&!N&&!D&&!A&&1===P||Ct&&j||!Mt)return void($||C.skewX||j?($*=R,T=C.skewX*R,x=1e5,e=Math.cos($)*M,n=Math.sin($)*M,i=Math.sin($-T)*-E,o=Math.cos($-T)*E,T&&"simple"===C.skewType&&(y=Math.tan(T-C.skewY*R),y=Math.sqrt(1+y*y),i*=y,o*=y,C.skewY&&(y=Math.tan(C.skewY*R),y=Math.sqrt(1+y*y),e*=y,n*=y)),j&&(O+=C.xOrigin-(C.xOrigin*e+C.yOrigin*i)+C.xOffset,I+=C.yOrigin-(C.xOrigin*n+C.yOrigin*o)+C.yOffset,Ct&&(C.xPercent||C.yPercent)&&(g=this.t.getBBox(),O+=.01*C.xPercent*g.width,I+=.01*C.yPercent*g.height),g=1e-6,O<g&&O>-g&&(O=0),I<g&&I>-g&&(I=0)),b=(e*x|0)/x+","+(n*x|0)/x+","+(i*x|0)/x+","+(o*x|0)/x+","+O+","+I+")",j&&Ct?this.t.setAttribute("transform","matrix("+b):S[$t]=(C.xPercent||C.yPercent?"translate("+C.xPercent+"%,"+C.yPercent+"%) matrix(":"matrix(")+b):S[$t]=(C.xPercent||C.yPercent?"translate("+C.xPercent+"%,"+C.yPercent+"%) matrix(":"matrix(")+M+",0,0,"+E+","+O+","+I+")");if(u&&(g=1e-4,M<g&&M>-g&&(M=P=2e-5),E<g&&E>-g&&(E=P=2e-5),!N||C.z||C.rotationX||C.rotationY||(N=0)),$||C.skewX)$*=R,m=e=Math.cos($),v=n=Math.sin($),C.skewX&&($-=C.skewX*R,m=Math.cos($),v=Math.sin($),"simple"===C.skewType&&(y=Math.tan((C.skewX-C.skewY)*R),y=Math.sqrt(1+y*y),m*=y,v*=y,C.skewY&&(y=Math.tan(C.skewY*R),y=Math.sqrt(1+y*y),e*=y,n*=y))),i=-v,o=m;else{if(!(D||A||1!==P||N||j))return void(S[$t]=(C.xPercent||C.yPercent?"translate("+C.xPercent+"%,"+C.yPercent+"%) translate3d(":"translate3d(")+O+"px,"+I+"px,"+L+"px)"+(1!==M||1!==E?" scale("+M+","+E+")":""));e=o=1,i=n=0}c=1,s=r=a=l=d=h=0,p=N?-1/N:0,f=C.zOrigin,g=1e-6,_=",",k="0",$=D*R,$&&(m=Math.cos($),v=Math.sin($),a=-v,d=p*-v,s=e*v,r=n*v,c=m,p*=m,e*=m,n*=m),$=A*R,$&&(m=Math.cos($),v=Math.sin($),y=i*m+s*v,w=o*m+r*v,l=c*v,h=p*v,s=i*-v+s*m,r=o*-v+r*m,c*=m,p*=m,i=y,o=w),1!==P&&(s*=P,r*=P,c*=P,p*=P),1!==E&&(i*=E,o*=E,l*=E,h*=E),1!==M&&(e*=M,n*=M,a*=M,d*=M),(f||j)&&(f&&(O+=s*-f,I+=r*-f,L+=c*-f+f),j&&(O+=C.xOrigin-(C.xOrigin*e+C.yOrigin*i)+C.xOffset,I+=C.yOrigin-(C.xOrigin*n+C.yOrigin*o)+C.yOffset),O<g&&O>-g&&(O=k),I<g&&I>-g&&(I=k),L<g&&L>-g&&(L=0)),b=C.xPercent||C.yPercent?"translate("+C.xPercent+"%,"+C.yPercent+"%) matrix3d(":"matrix3d(",b+=(e<g&&e>-g?k:e)+_+(n<g&&n>-g?k:n)+_+(a<g&&a>-g?k:a),b+=_+(d<g&&d>-g?k:d)+_+(i<g&&i>-g?k:i)+_+(o<g&&o>-g?k:o),A||D||1!==P?(b+=_+(l<g&&l>-g?k:l)+_+(h<g&&h>-g?k:h)+_+(s<g&&s>-g?k:s),b+=_+(r<g&&r>-g?k:r)+_+(c<g&&c>-g?k:c)+_+(p<g&&p>-g?k:p)+_):b+=",0,0,0,0,1,0,",b+=O+_+I+_+L+_+(N?1+-L/N:1)+")",S[$t]=b};c=Et.prototype,c.x=c.y=c.z=c.skewX=c.skewY=c.rotation=c.rotationX=c.rotationY=c.zOrigin=c.xPercent=c.yPercent=c.xOffset=c.yOffset=0,c.scaleX=c.scaleY=c.scaleZ=1,Tt("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,svgOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent,smoothOrigin",{parser:function(t,e,i,s,o,a,l){if(s._lastParsedTransform===l)return o;s._lastParsedTransform=l;var c;"function"==typeof l[i]&&(c=l[i],l[i]=e);var d,h,p,u,f,g,y,w,b,_=t._gsTransform,k=t.style,T=1e-6,x=St.length,C=l,S={},$="transformOrigin",A=Ut(t,n,!0,C.parseTransform),D=C.transform&&("function"==typeof C.transform?C.transform(v,m):C.transform);if(s._transform=A,D&&"string"==typeof D&&$t)h=U.style,h[$t]=D,h.display="block",h.position="absolute",z.body.appendChild(U),d=Ut(U,null,!1),A.svg&&(g=A.xOrigin,y=A.yOrigin,d.x-=A.xOffset,d.y-=A.yOffset,(C.transformOrigin||C.svgOrigin)&&(D={},Rt(t,rt(C.transformOrigin),D,C.svgOrigin,C.smoothOrigin,!0),g=D.xOrigin,y=D.yOrigin,d.x-=D.xOffset-A.xOffset,d.y-=D.yOffset-A.yOffset),(g||y)&&(w=Ft(U,!0),d.x-=g-(g*w[0]+y*w[2]),d.y-=y-(g*w[1]+y*w[3]))),z.body.removeChild(U),d.perspective||(d.perspective=A.perspective),null!=C.xPercent&&(d.xPercent=lt(C.xPercent,A.xPercent)),null!=C.yPercent&&(d.yPercent=lt(C.yPercent,A.yPercent));else if("object"==typeof C){if(d={scaleX:lt(null!=C.scaleX?C.scaleX:C.scale,A.scaleX),scaleY:lt(null!=C.scaleY?C.scaleY:C.scale,A.scaleY),scaleZ:lt(C.scaleZ,A.scaleZ),x:lt(C.x,A.x),y:lt(C.y,A.y),z:lt(C.z,A.z),xPercent:lt(C.xPercent,A.xPercent),yPercent:lt(C.yPercent,A.yPercent),perspective:lt(C.transformPerspective,A.perspective)},f=C.directionalRotation,null!=f)if("object"==typeof f)for(h in f)C[h]=f[h];else C.rotation=f;"string"==typeof C.x&&C.x.indexOf("%")!==-1&&(d.x=0,d.xPercent=lt(C.x,A.xPercent)),"string"==typeof C.y&&C.y.indexOf("%")!==-1&&(d.y=0,d.yPercent=lt(C.y,A.yPercent)),d.rotation=ct("rotation"in C?C.rotation:"shortRotation"in C?C.shortRotation+"_short":"rotationZ"in C?C.rotationZ:A.rotation-A.skewY,A.rotation-A.skewY,"rotation",S),Mt&&(d.rotationX=ct("rotationX"in C?C.rotationX:"shortRotationX"in C?C.shortRotationX+"_short":A.rotationX||0,A.rotationX,"rotationX",S),d.rotationY=ct("rotationY"in C?C.rotationY:"shortRotationY"in C?C.shortRotationY+"_short":A.rotationY||0,A.rotationY,"rotationY",S)),d.skewX=ct(C.skewX,A.skewX-A.skewY),(d.skewY=ct(C.skewY,A.skewY))&&(d.skewX+=d.skewY,d.rotation+=d.skewY)}for(Mt&&null!=C.force3D&&(A.force3D=C.force3D,u=!0),A.skewType=C.skewType||A.skewType||r.defaultSkewType,p=A.force3D||A.z||A.rotationX||A.rotationY||d.z||d.rotationX||d.rotationY||d.perspective,p||null==C.scale||(d.scaleZ=1);--x>-1;)b=St[x],D=d[b]-A[b],(D>T||D<-T||null!=C[b]||null!=N[b])&&(u=!0,o=new yt(A,b,A[b],D,o),b in S&&(o.e=S[b]),o.xs0=0,o.plugin=a,s._overwriteProps.push(o.n));return D=C.transformOrigin,A.svg&&(D||C.svgOrigin)&&(g=A.xOffset,y=A.yOffset,Rt(t,rt(D),d,C.svgOrigin,C.smoothOrigin),o=wt(A,"xOrigin",(_?A:d).xOrigin,d.xOrigin,o,$),o=wt(A,"yOrigin",(_?A:d).yOrigin,d.yOrigin,o,$),g===A.xOffset&&y===A.yOffset||(o=wt(A,"xOffset",_?g:A.xOffset,A.xOffset,o,$),o=wt(A,"yOffset",_?y:A.yOffset,A.yOffset,o,$)),D=Ct?null:"0px 0px"),(D||Mt&&p&&A.zOrigin)&&($t?(u=!0,b=Dt,D=(D||K(t,b,n,!1,"50% 50%"))+"",o=new yt(k,b,0,0,o,(-1),$),o.b=k[b],o.plugin=a,Mt?(h=A.zOrigin,D=D.split(" "),A.zOrigin=(D.length>2&&(0===h||"0px"!==D[2])?parseFloat(D[2]):h)||0,o.xs0=o.e=D[0]+" "+(D[1]||"50%")+" 0px",o=new yt(A,"zOrigin",0,0,o,(-1),o.n),o.b=h,o.xs0=o.e=A.zOrigin):o.xs0=o.e=D):rt(D+"",A)),u&&(s._transformType=A.svg&&Ct||!p&&3!==this._transformType?2:3),c&&(l[i]=c),o},prefix:!0}),Tt("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),Tt("borderRadius",{defaultValue:"0px",parser:function(t,e,i,o,r,a){e=this.format(e);var l,c,d,h,p,u,f,g,m,v,y,w,b,_,k,T,x=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],C=t.style;for(m=parseFloat(t.offsetWidth),v=parseFloat(t.offsetHeight),l=e.split(" "),c=0;c<x.length;c++)this.p.indexOf("border")&&(x[c]=Z(x[c])),p=h=K(t,x[c],n,!1,"0px"),p.indexOf(" ")!==-1&&(h=p.split(" "),p=h[0],h=h[1]),u=d=l[c],f=parseFloat(p),w=p.substr((f+"").length),b="="===u.charAt(1),b?(g=parseInt(u.charAt(0)+"1",10),u=u.substr(2),g*=parseFloat(u),y=u.substr((g+"").length-(g<0?1:0))||""):(g=parseFloat(u),y=u.substr((g+"").length)),""===y&&(y=s[i]||w),y!==w&&(_=J(t,"borderLeft",f,w),k=J(t,"borderTop",f,w),"%"===y?(p=_/m*100+"%",h=k/v*100+"%"):"em"===y?(T=J(t,"borderLeft",1,"em"),p=_/T+"em",h=k/T+"em"):(p=_+"px",h=k+"px"),b&&(u=parseFloat(p)+g+y,d=parseFloat(h)+g+y)),r=bt(C,x[c],p+" "+h,u+" "+d,!1,"0px",r);return r},prefix:!0,formatter:gt("0px 0px 0px 0px",!1,!0)}),Tt("borderBottomLeftRadius,borderBottomRightRadius,borderTopLeftRadius,borderTopRightRadius",{defaultValue:"0px",parser:function(t,e,i,s,o,r){return bt(t.style,i,this.format(K(t,i,n,!1,"0px 0px")),this.format(e),!1,"0px",o)},prefix:!0,formatter:gt("0px 0px",!1,!0)}),Tt("backgroundPosition",{defaultValue:"0 0",parser:function(t,e,i,s,o,r){var a,l,c,d,h,p,u="background-position",f=n||G(t,null),m=this.format((f?g?f.getPropertyValue(u+"-x")+" "+f.getPropertyValue(u+"-y"):f.getPropertyValue(u):t.currentStyle.backgroundPositionX+" "+t.currentStyle.backgroundPositionY)||"0 0"),v=this.format(e);if(m.indexOf("%")!==-1!=(v.indexOf("%")!==-1)&&v.split(",").length<2&&(p=K(t,"backgroundImage").replace(D,""),p&&"none"!==p)){for(a=m.split(" "),l=v.split(" "),H.setAttribute("src",p),c=2;--c>-1;)m=a[c],d=m.indexOf("%")!==-1,d!==(l[c].indexOf("%")!==-1)&&(h=0===c?t.offsetWidth-H.width:t.offsetHeight-H.height,a[c]=d?parseFloat(m)/100*h+"px":parseFloat(m)/h*100+"%");m=a.join(" ")}return this.parseComplex(t.style,m,v,o,r)},formatter:rt}),Tt("backgroundSize",{defaultValue:"0 0",formatter:function(t){return t+="",rt(t.indexOf(" ")===-1?t+" "+t:t)}}),Tt("perspective",{defaultValue:"0px",prefix:!0}),Tt("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),Tt("transformStyle",{prefix:!0}),Tt("backfaceVisibility",{prefix:!0}),Tt("userSelect",{prefix:!0}),Tt("margin",{parser:mt("marginTop,marginRight,marginBottom,marginLeft")}),Tt("padding",{parser:mt("paddingTop,paddingRight,paddingBottom,paddingLeft")}),Tt("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(t,e,i,s,o,r){var a,l,c;return g<9?(l=t.currentStyle,c=g<8?" ":",",a="rect("+l.clipTop+c+l.clipRight+c+l.clipBottom+c+l.clipLeft+")",e=this.format(e).split(",").join(c)):(a=this.format(K(t,this.p,n,!1,this.dflt)),e=this.format(e)),this.parseComplex(t.style,a,e,o,r)}}),Tt("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),Tt("autoRound,strictUnits",{parser:function(t,e,i,s,n){return n}}),Tt("border",{defaultValue:"0px solid #000",parser:function(t,e,i,s,o,r){var a=K(t,"borderTopWidth",n,!1,"0px"),l=this.format(e).split(" "),c=l[0].replace(k,"");return"px"!==c&&(a=parseFloat(a)/J(t,"borderTopWidth",1,c)+c),this.parseComplex(t.style,this.format(a+" "+K(t,"borderTopStyle",n,!1,"solid")+" "+K(t,"borderTopColor",n,!1,"#000")),l.join(" "),o,r)},color:!0,formatter:function(t){var e=t.split(" ");return e[0]+" "+(e[1]||"solid")+" "+(t.match(ft)||["#000"])[0]}}),Tt("borderWidth",{parser:mt("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),Tt("float,cssFloat,styleFloat",{parser:function(t,e,i,s,n,o){var r=t.style,a="cssFloat"in r?"cssFloat":"styleFloat";return new yt(r,a,0,0,n,(-1),i,(!1),0,r[a],e)}});var Bt=function(t){var e,i=this.t,s=i.filter||K(this.data,"filter")||"",n=this.s+this.c*t|0;100===n&&(s.indexOf("atrix(")===-1&&s.indexOf("radient(")===-1&&s.indexOf("oader(")===-1?(i.removeAttribute("filter"),e=!K(this.data,"filter")):(i.filter=s.replace(C,""),e=!0)),e||(this.xn1&&(i.filter=s=s||"alpha(opacity="+n+")"),s.indexOf("pacity")===-1?0===n&&this.xn1||(i.filter=s+" alpha(opacity="+n+")"):i.filter=s.replace(T,"opacity="+n))};Tt("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(t,e,i,s,o,r){var a=parseFloat(K(t,"opacity",n,!1,"1")),l=t.style,c="autoAlpha"===i;return"string"==typeof e&&"="===e.charAt(1)&&(e=("-"===e.charAt(0)?-1:1)*parseFloat(e.substr(2))+a),c&&1===a&&"hidden"===K(t,"visibility",n)&&0!==e&&(a=0),W?o=new yt(l,"opacity",a,e-a,o):(o=new yt(l,"opacity",100*a,100*(e-a),o),o.xn1=c?1:0,l.zoom=1,o.type=2,o.b="alpha(opacity="+o.s+")",o.e="alpha(opacity="+(o.s+o.c)+")",o.data=t,o.plugin=r,o.setRatio=Bt),c&&(o=new yt(l,"visibility",0,0,o,(-1),null,(!1),0,0!==a?"inherit":"hidden",0===e?"hidden":"inherit"),o.xs0="inherit",s._overwriteProps.push(o.n),s._overwriteProps.push(i)),o}});var Wt=function(t,e){e&&(t.removeProperty?("ms"!==e.substr(0,2)&&"webkit"!==e.substr(0,6)||(e="-"+e),t.removeProperty(e.replace($,"-$1").toLowerCase())):t.removeAttribute(e))},Yt=function(t){if(this.t._gsClassPT=this,1===t||0===t){this.t.setAttribute("class",0===t?this.b:this.e);for(var e=this.data,i=this.t.style;e;)e.v?i[e.p]=e.v:Wt(i,e.p),e=e._next;1===t&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)};Tt("className",{parser:function(t,e,s,o,r,a,l){var c,d,h,p,u,f=t.getAttribute("class")||"",g=t.style.cssText;if(r=o._classNamePT=new yt(t,s,0,0,r,2),r.setRatio=Yt,r.pr=-11,i=!0,r.b=f,d=et(t,n),h=t._gsClassPT){for(p={},u=h.data;u;)p[u.p]=1,u=u._next;h.setRatio(1)}return t._gsClassPT=r,r.e="="!==e.charAt(1)?e:f.replace(new RegExp("(?:\\s|^)"+e.substr(2)+"(?![\\w-])"),"")+("+"===e.charAt(0)?" "+e.substr(2):""),t.setAttribute("class",r.e),c=it(t,d,et(t),l,p),t.setAttribute("class",f),r.data=c.firstMPT,t.style.cssText=g,r=r.xfirst=o.parse(t,c.difs,r,a)}});var Qt=function(t){if((1===t||0===t)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var e,i,s,n,o,r=this.t.style,a=l.transform.parse;if("all"===this.e)r.cssText="",n=!0;else for(e=this.e.split(" ").join("").split(","),s=e.length;--s>-1;)i=e[s],l[i]&&(l[i].parse===a?n=!0:i="transformOrigin"===i?Dt:l[i].p),Wt(r,i);n&&(Wt(r,$t),o=this.t._gsTransform,o&&(o.svg&&(this.t.removeAttribute("data-svg-origin"),this.t.removeAttribute("transform")),delete this.t._gsTransform))}};for(Tt("clearProps",{parser:function(t,e,s,n,o){return o=new yt(t,s,0,0,o,2),o.setRatio=Qt,o.e=e,o.pr=-10,o.data=n._tween,i=!0,o}}),c="bezier,throwProps,physicsProps,physics2D".split(","),_t=c.length;_t--;)xt(c[_t]);c=r.prototype,c._firstPT=c._lastParsedTransform=c._transform=null,c._onInitTween=function(t,e,a,c){if(!t.nodeType)return!1;this._target=m=t,this._tween=a,this._vars=e,v=c,d=e.autoRound,i=!1,s=e.suffixMap||r.suffixMap,n=G(t,""),o=this._overwriteProps;var u,g,y,w,b,_,k,T,C,S=t.style;if(h&&""===S.zIndex&&(u=K(t,"zIndex",n),"auto"!==u&&""!==u||this._addLazySet(S,"zIndex",0)),"string"==typeof e&&(w=S.cssText,u=et(t,n),S.cssText=w+";"+e,u=it(t,u,et(t)).difs,!W&&x.test(e)&&(u.opacity=parseFloat(RegExp.$1)),e=u,S.cssText=w),e.className?this._firstPT=g=l.className.parse(t,e.className,"className",this,null,null,e):this._firstPT=g=this.parse(t,e,null),this._transformType){for(C=3===this._transformType,$t?p&&(h=!0,""===S.zIndex&&(k=K(t,"zIndex",n),"auto"!==k&&""!==k||this._addLazySet(S,"zIndex",0)),f&&this._addLazySet(S,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(C?"visible":"hidden"))):S.zoom=1,y=g;y&&y._next;)y=y._next;T=new yt(t,"transform",0,0,null,2),this._linkCSSP(T,null,y),T.setRatio=$t?qt:Ht,T.data=this._transform||Ut(t,n,!0),T.tween=a,T.pr=-1,o.pop()}if(i){for(;g;){for(_=g._next,y=w;y&&y.pr>g.pr;)y=y._next;(g._prev=y?y._prev:b)?g._prev._next=g:w=g,(g._next=y)?y._prev=g:b=g,g=_}this._firstPT=w}return!0},c.parse=function(t,e,i,o){var r,a,c,h,p,u,f,g,y,w,b=t.style;for(r in e)u=e[r],"function"==typeof u&&(u=u(v,m)),a=l[r],a?i=a.parse(t,u,r,this,i,o,e):(p=K(t,r,n)+"",y="string"==typeof u,"color"===r||"fill"===r||"stroke"===r||r.indexOf("Color")!==-1||y&&S.test(u)?(y||(u=pt(u),u=(u.length>3?"rgba(":"rgb(")+u.join(",")+")"),i=bt(b,r,p,u,!0,"transparent",i,0,o)):y&&L.test(u)?i=bt(b,r,p,u,!0,null,i,0,o):(c=parseFloat(p),f=c||0===c?p.substr((c+"").length):"",""!==p&&"auto"!==p||("width"===r||"height"===r?(c=ot(t,r,n),f="px"):"left"===r||"top"===r?(c=tt(t,r,n),f="px"):(c="opacity"!==r?0:1,f="")),w=y&&"="===u.charAt(1),w?(h=parseInt(u.charAt(0)+"1",10),u=u.substr(2),h*=parseFloat(u),g=u.replace(k,"")):(h=parseFloat(u),g=y?u.replace(k,""):""),""===g&&(g=r in s?s[r]:f),u=h||0===h?(w?h+c:h)+g:e[r],f!==g&&""!==g&&(h||0===h)&&c&&(c=J(t,r,c,f),"%"===g?(c/=J(t,r,100,"%")/100,e.strictUnits!==!0&&(p=c+"%")):"em"===g||"rem"===g||"vw"===g||"vh"===g?c/=J(t,r,1,g):"px"!==g&&(h=J(t,r,h,g),g="px"),w&&(h||0===h)&&(u=h+c+g)),w&&(h+=c),!c&&0!==c||!h&&0!==h?void 0!==b[r]&&(u||u+""!="NaN"&&null!=u)?(i=new yt(b,r,h||c||0,0,i,(-1),r,(!1),0,p,u),i.xs0="none"!==u||"display"!==r&&r.indexOf("Style")===-1?u:p):Q("invalid "+r+" tween value: "+e[r]):(i=new yt(b,r,c,h-c,i,0,r,d!==!1&&("px"===g||"zIndex"===r),0,p,u),i.xs0=g))),o&&i&&!i.plugin&&(i.plugin=o);return i},c.setRatio=function(t){var e,i,s,n=this._firstPT,o=1e-6;if(1!==t||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(t||this._tween._time!==this._tween._duration&&0!==this._tween._time||this._tween._rawPrevTime===-1e-6)for(;n;){if(e=n.c*t+n.s,n.r?e=Math.round(e):e<o&&e>-o&&(e=0),n.type)if(1===n.type)if(s=n.l,2===s)n.t[n.p]=n.xs0+e+n.xs1+n.xn1+n.xs2;else if(3===s)n.t[n.p]=n.xs0+e+n.xs1+n.xn1+n.xs2+n.xn2+n.xs3;else if(4===s)n.t[n.p]=n.xs0+e+n.xs1+n.xn1+n.xs2+n.xn2+n.xs3+n.xn3+n.xs4;else if(5===s)n.t[n.p]=n.xs0+e+n.xs1+n.xn1+n.xs2+n.xn2+n.xs3+n.xn3+n.xs4+n.xn4+n.xs5;else{for(i=n.xs0+e+n.xs1,s=1;s<n.l;s++)i+=n["xn"+s]+n["xs"+(s+1)];n.t[n.p]=i}else n.type===-1?n.t[n.p]=n.xs0:n.setRatio&&n.setRatio(t);else n.t[n.p]=e+n.xs0;n=n._next}else for(;n;)2!==n.type?n.t[n.p]=n.b:n.setRatio(t),n=n._next;else for(;n;){if(2!==n.type)if(n.r&&n.type!==-1)if(e=Math.round(n.s+n.c),n.type){if(1===n.type){for(s=n.l,i=n.xs0+e+n.xs1,s=1;s<n.l;s++)i+=n["xn"+s]+n["xs"+(s+1)];n.t[n.p]=i}}else n.t[n.p]=e+n.xs0;else n.t[n.p]=n.e;else n.setRatio(t);n=n._next}},c._enableTransforms=function(t){this._transform=this._transform||Ut(this._target,n,!0),this._transformType=this._transform.svg&&Ct||!t&&3!==this._transformType?2:3};var Vt=function(t){this.t[this.p]=this.e,this.data._linkCSSP(this,this._next,null,!0)};c._addLazySet=function(t,e,i){var s=this._firstPT=new yt(t,e,0,0,this._firstPT,2);s.e=i,s.setRatio=Vt,s.data=this},c._linkCSSP=function(t,e,i,s){return t&&(e&&(e._prev=t),t._next&&(t._next._prev=t._prev),t._prev?t._prev._next=t._next:this._firstPT===t&&(this._firstPT=t._next,s=!0),i?i._next=t:s||null!==this._firstPT||(this._firstPT=t),
t._next=e,t._prev=i),t},c._mod=function(t){for(var e=this._firstPT;e;)"function"==typeof t[e.p]&&t[e.p]===Math.round&&(e.r=1),e=e._next},c._kill=function(e){var i,s,n,o=e;if(e.autoAlpha||e.alpha){o={};for(s in e)o[s]=e[s];o.opacity=1,o.autoAlpha&&(o.visibility=1)}for(e.className&&(i=this._classNamePT)&&(n=i.xfirst,n&&n._prev?this._linkCSSP(n._prev,i._next,n._prev._prev):n===this._firstPT&&(this._firstPT=i._next),i._next&&this._linkCSSP(i._next,i._next._next,n._prev),this._classNamePT=null),i=this._firstPT;i;)i.plugin&&i.plugin!==s&&i.plugin._kill&&(i.plugin._kill(e),s=i.plugin),i=i._next;return t.prototype._kill.call(this,o)};var Xt=function(t,e,i){var s,n,o,r;if(t.slice)for(n=t.length;--n>-1;)Xt(t[n],e,i);else for(s=t.childNodes,n=s.length;--n>-1;)o=s[n],r=o.type,o.style&&(e.push(et(o)),i&&i.push(o)),1!==r&&9!==r&&11!==r||!o.childNodes.length||Xt(o,e,i)};return r.cascadeTo=function(t,i,s){var n,o,r,a,l=e.to(t,i,s),c=[l],d=[],h=[],p=[],u=e._internals.reservedProps;for(t=l._targets||l.target,Xt(t,d,p),l.render(i,!0,!0),Xt(t,h),l.render(0,!0,!0),l._enabled(!0),n=p.length;--n>-1;)if(o=it(p[n],d[n],h[n]),o.firstMPT){o=o.difs;for(r in s)u[r]&&(o[r]=s[r]);a={};for(r in o)a[r]=d[n][r];c.push(e.fromTo(p[n],i,a,o))}return c},t.activate([r]),r},!0),function(){var t=_gsScope._gsDefine.plugin({propName:"roundProps",version:"1.6.0",priority:-1,API:2,init:function(t,e,i){return this._tween=i,!0}}),e=function(t){for(;t;)t.f||t.blob||(t.m=Math.round),t=t._next},i=t.prototype;i._onInitAllProps=function(){for(var t,i,s,n=this._tween,o=n.vars.roundProps.join?n.vars.roundProps:n.vars.roundProps.split(","),r=o.length,a={},l=n._propLookup.roundProps;--r>-1;)a[o[r]]=Math.round;for(r=o.length;--r>-1;)for(t=o[r],i=n._firstPT;i;)s=i._next,i.pg?i.t._mod(a):i.n===t&&(2===i.f&&i.t?e(i.t._firstPT):(this._add(i.t,t,i.s,i.c),s&&(s._prev=i._prev),i._prev?i._prev._next=s:n._firstPT===i&&(n._firstPT=s),i._next=i._prev=null,n._propLookup[t]=l)),i=s;return!1},i._add=function(t,e,i,s){this._addTween(t,e,i,i+s,e,Math.round),this._overwriteProps.push(e)}}(),function(){_gsScope._gsDefine.plugin({propName:"attr",API:2,version:"0.6.0",init:function(t,e,i,s){var n,o;if("function"!=typeof t.setAttribute)return!1;for(n in e)o=e[n],"function"==typeof o&&(o=o(s,t)),this._addTween(t,"setAttribute",t.getAttribute(n)+"",o+"",n,!1,n),this._overwriteProps.push(n);return!0}})}(),_gsScope._gsDefine.plugin({propName:"directionalRotation",version:"0.3.0",API:2,init:function(t,e,i,s){"object"!=typeof e&&(e={rotation:e}),this.finals={};var n,o,r,a,l,c,d=e.useRadians===!0?2*Math.PI:360,h=1e-6;for(n in e)"useRadians"!==n&&(a=e[n],"function"==typeof a&&(a=a(s,t)),c=(a+"").split("_"),o=c[0],r=parseFloat("function"!=typeof t[n]?t[n]:t[n.indexOf("set")||"function"!=typeof t["get"+n.substr(3)]?n:"get"+n.substr(3)]()),a=this.finals[n]="string"==typeof o&&"="===o.charAt(1)?r+parseInt(o.charAt(0)+"1",10)*Number(o.substr(2)):Number(o)||0,l=a-r,c.length&&(o=c.join("_"),o.indexOf("short")!==-1&&(l%=d,l!==l%(d/2)&&(l=l<0?l+d:l-d)),o.indexOf("_cw")!==-1&&l<0?l=(l+9999999999*d)%d-(l/d|0)*d:o.indexOf("ccw")!==-1&&l>0&&(l=(l-9999999999*d)%d-(l/d|0)*d)),(l>h||l<-h)&&(this._addTween(t,n,r,r+l,n),this._overwriteProps.push(n)));return!0},set:function(t){var e;if(1!==t)this._super.setRatio.call(this,t);else for(e=this._firstPT;e;)e.f?e.t[e.p](this.finals[e.p]):e.t[e.p]=this.finals[e.p],e=e._next}})._autoCSS=!0,_gsScope._gsDefine("easing.Back",["easing.Ease"],function(t){var e,i,s,n=_gsScope.GreenSockGlobals||_gsScope,o=n.com.greensock,r=2*Math.PI,a=Math.PI/2,l=o._class,c=function(e,i){var s=l("easing."+e,function(){},!0),n=s.prototype=new t;return n.constructor=s,n.getRatio=i,s},d=t.register||function(){},h=function(t,e,i,s,n){var o=l("easing."+t,{easeOut:new e,easeIn:new i,easeInOut:new s},!0);return d(o,t),o},p=function(t,e,i){this.t=t,this.v=e,i&&(this.next=i,i.prev=this,this.c=i.v-e,this.gap=i.t-t)},u=function(e,i){var s=l("easing."+e,function(t){this._p1=t||0===t?t:1.70158,this._p2=1.525*this._p1},!0),n=s.prototype=new t;return n.constructor=s,n.getRatio=i,n.config=function(t){return new s(t)},s},f=h("Back",u("BackOut",function(t){return(t-=1)*t*((this._p1+1)*t+this._p1)+1}),u("BackIn",function(t){return t*t*((this._p1+1)*t-this._p1)}),u("BackInOut",function(t){return(t*=2)<1?.5*t*t*((this._p2+1)*t-this._p2):.5*((t-=2)*t*((this._p2+1)*t+this._p2)+2)})),g=l("easing.SlowMo",function(t,e,i){e=e||0===e?e:.7,null==t?t=.7:t>1&&(t=1),this._p=1!==t?e:0,this._p1=(1-t)/2,this._p2=t,this._p3=this._p1+this._p2,this._calcEnd=i===!0},!0),m=g.prototype=new t;return m.constructor=g,m.getRatio=function(t){var e=t+(.5-t)*this._p;return t<this._p1?this._calcEnd?1-(t=1-t/this._p1)*t:e-(t=1-t/this._p1)*t*t*t*e:t>this._p3?this._calcEnd?1-(t=(t-this._p3)/this._p1)*t:e+(t-e)*(t=(t-this._p3)/this._p1)*t*t*t:this._calcEnd?1:e},g.ease=new g(.7,.7),m.config=g.config=function(t,e,i){return new g(t,e,i)},e=l("easing.SteppedEase",function(t){t=t||1,this._p1=1/t,this._p2=t+1},!0),m=e.prototype=new t,m.constructor=e,m.getRatio=function(t){return t<0?t=0:t>=1&&(t=.999999999),(this._p2*t>>0)*this._p1},m.config=e.config=function(t){return new e(t)},i=l("easing.RoughEase",function(e){e=e||{};for(var i,s,n,o,r,a,l=e.taper||"none",c=[],d=0,h=0|(e.points||20),u=h,f=e.randomize!==!1,g=e.clamp===!0,m=e.template instanceof t?e.template:null,v="number"==typeof e.strength?.4*e.strength:.4;--u>-1;)i=f?Math.random():1/h*u,s=m?m.getRatio(i):i,"none"===l?n=v:"out"===l?(o=1-i,n=o*o*v):"in"===l?n=i*i*v:i<.5?(o=2*i,n=o*o*.5*v):(o=2*(1-i),n=o*o*.5*v),f?s+=Math.random()*n-.5*n:u%2?s+=.5*n:s-=.5*n,g&&(s>1?s=1:s<0&&(s=0)),c[d++]={x:i,y:s};for(c.sort(function(t,e){return t.x-e.x}),a=new p(1,1,null),u=h;--u>-1;)r=c[u],a=new p(r.x,r.y,a);this._prev=new p(0,0,0!==a.t?a:a.next)},!0),m=i.prototype=new t,m.constructor=i,m.getRatio=function(t){var e=this._prev;if(t>e.t){for(;e.next&&t>=e.t;)e=e.next;e=e.prev}else for(;e.prev&&t<=e.t;)e=e.prev;return this._prev=e,e.v+(t-e.t)/e.gap*e.c},m.config=function(t){return new i(t)},i.ease=new i,h("Bounce",c("BounceOut",function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}),c("BounceIn",function(t){return(t=1-t)<1/2.75?1-7.5625*t*t:t<2/2.75?1-(7.5625*(t-=1.5/2.75)*t+.75):t<2.5/2.75?1-(7.5625*(t-=2.25/2.75)*t+.9375):1-(7.5625*(t-=2.625/2.75)*t+.984375)}),c("BounceInOut",function(t){var e=t<.5;return t=e?1-2*t:2*t-1,t=t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,e?.5*(1-t):.5*t+.5})),h("Circ",c("CircOut",function(t){return Math.sqrt(1-(t-=1)*t)}),c("CircIn",function(t){return-(Math.sqrt(1-t*t)-1)}),c("CircInOut",function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)})),s=function(e,i,s){var n=l("easing."+e,function(t,e){this._p1=t>=1?t:1,this._p2=(e||s)/(t<1?t:1),this._p3=this._p2/r*(Math.asin(1/this._p1)||0),this._p2=r/this._p2},!0),o=n.prototype=new t;return o.constructor=n,o.getRatio=i,o.config=function(t,e){return new n(t,e)},n},h("Elastic",s("ElasticOut",function(t){return this._p1*Math.pow(2,-10*t)*Math.sin((t-this._p3)*this._p2)+1},.3),s("ElasticIn",function(t){return-(this._p1*Math.pow(2,10*(t-=1))*Math.sin((t-this._p3)*this._p2))},.3),s("ElasticInOut",function(t){return(t*=2)<1?-.5*(this._p1*Math.pow(2,10*(t-=1))*Math.sin((t-this._p3)*this._p2)):this._p1*Math.pow(2,-10*(t-=1))*Math.sin((t-this._p3)*this._p2)*.5+1},.45)),h("Expo",c("ExpoOut",function(t){return 1-Math.pow(2,-10*t)}),c("ExpoIn",function(t){return Math.pow(2,10*(t-1))-.001}),c("ExpoInOut",function(t){return(t*=2)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*(t-1)))})),h("Sine",c("SineOut",function(t){return Math.sin(t*a)}),c("SineIn",function(t){return-Math.cos(t*a)+1}),c("SineInOut",function(t){return-.5*(Math.cos(Math.PI*t)-1)})),l("easing.EaseLookup",{find:function(e){return t.map[e]}},!0),d(n.SlowMo,"SlowMo","ease,"),d(i,"RoughEase","ease,"),d(e,"SteppedEase","ease,"),f},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(t,e){"use strict";var i={},s=t.GreenSockGlobals=t.GreenSockGlobals||t;if(!s.TweenLite){var n,o,r,a,l,c=function(t){var e,i=t.split("."),n=s;for(e=0;e<i.length;e++)n[i[e]]=n=n[i[e]]||{};return n},d=c("com.greensock"),h=1e-10,p=function(t){var e,i=[],s=t.length;for(e=0;e!==s;i.push(t[e++]));return i},u=function(){},f=function(){var t=Object.prototype.toString,e=t.call([]);return function(i){return null!=i&&(i instanceof Array||"object"==typeof i&&!!i.push&&t.call(i)===e)}}(),g={},m=function(n,o,r,a){this.sc=g[n]?g[n].sc:[],g[n]=this,this.gsClass=null,this.func=r;var l=[];this.check=function(d){for(var h,p,u,f,v,y=o.length,w=y;--y>-1;)(h=g[o[y]]||new m(o[y],[])).gsClass?(l[y]=h.gsClass,w--):d&&h.sc.push(this);if(0===w&&r){if(p=("com.greensock."+n).split("."),u=p.pop(),f=c(p.join("."))[u]=this.gsClass=r.apply(r,l),a)if(s[u]=i[u]=f,v="undefined"!=typeof module&&module.exports,!v&&"function"==typeof define&&define.amd)define((t.GreenSockAMDPath?t.GreenSockAMDPath+"/":"")+n.split(".").pop(),[],function(){return f});else if(v)if(n===e){module.exports=i[e]=f;for(y in i)f[y]=i[y]}else i[e]&&(i[e][u]=f);for(y=0;y<this.sc.length;y++)this.sc[y].check()}},this.check(!0)},v=t._gsDefine=function(t,e,i,s){return new m(t,e,i,s)},y=d._class=function(t,e,i){return e=e||function(){},v(t,[],function(){return e},i),e};v.globals=s;var w=[0,0,1,1],b=y("easing.Ease",function(t,e,i,s){this._func=t,this._type=i||0,this._power=s||0,this._params=e?w.concat(e):w},!0),_=b.map={},k=b.register=function(t,e,i,s){for(var n,o,r,a,l=e.split(","),c=l.length,h=(i||"easeIn,easeOut,easeInOut").split(",");--c>-1;)for(o=l[c],n=s?y("easing."+o,null,!0):d.easing[o]||{},r=h.length;--r>-1;)a=h[r],_[o+"."+a]=_[a+o]=n[a]=t.getRatio?t:t[a]||new t};for(r=b.prototype,r._calcEnd=!1,r.getRatio=function(t){if(this._func)return this._params[0]=t,this._func.apply(null,this._params);var e=this._type,i=this._power,s=1===e?1-t:2===e?t:t<.5?2*t:2*(1-t);return 1===i?s*=s:2===i?s*=s*s:3===i?s*=s*s*s:4===i&&(s*=s*s*s*s),1===e?1-s:2===e?s:t<.5?s/2:1-s/2},n=["Linear","Quad","Cubic","Quart","Quint,Strong"],o=n.length;--o>-1;)r=n[o]+",Power"+o,k(new b(null,null,1,o),r,"easeOut",!0),k(new b(null,null,2,o),r,"easeIn"+(0===o?",easeNone":"")),k(new b(null,null,3,o),r,"easeInOut");_.linear=d.easing.Linear.easeIn,_.swing=d.easing.Quad.easeInOut;var T=y("events.EventDispatcher",function(t){this._listeners={},this._eventTarget=t||this});r=T.prototype,r.addEventListener=function(t,e,i,s,n){n=n||0;var o,r,c=this._listeners[t],d=0;for(this!==a||l||a.wake(),null==c&&(this._listeners[t]=c=[]),r=c.length;--r>-1;)o=c[r],o.c===e&&o.s===i?c.splice(r,1):0===d&&o.pr<n&&(d=r+1);c.splice(d,0,{c:e,s:i,up:s,pr:n})},r.removeEventListener=function(t,e){var i,s=this._listeners[t];if(s)for(i=s.length;--i>-1;)if(s[i].c===e)return void s.splice(i,1)},r.dispatchEvent=function(t){var e,i,s,n=this._listeners[t];if(n)for(e=n.length,e>1&&(n=n.slice(0)),i=this._eventTarget;--e>-1;)s=n[e],s&&(s.up?s.c.call(s.s||i,{type:t,target:i}):s.c.call(s.s||i))};var x=t.requestAnimationFrame,C=t.cancelAnimationFrame,S=Date.now||function(){return(new Date).getTime()},$=S();for(n=["ms","moz","webkit","o"],o=n.length;--o>-1&&!x;)x=t[n[o]+"RequestAnimationFrame"],C=t[n[o]+"CancelAnimationFrame"]||t[n[o]+"CancelRequestAnimationFrame"];y("Ticker",function(t,e){var i,s,n,o,r,c=this,d=S(),p=!(e===!1||!x)&&"auto",f=500,g=33,m="tick",v=function(t){var e,a,l=S()-$;l>f&&(d+=l-g),$+=l,c.time=($-d)/1e3,e=c.time-r,(!i||e>0||t===!0)&&(c.frame++,r+=e+(e>=o?.004:o-e),a=!0),t!==!0&&(n=s(v)),a&&c.dispatchEvent(m)};T.call(c),c.time=c.frame=0,c.tick=function(){v(!0)},c.lagSmoothing=function(t,e){f=t||1/h,g=Math.min(e,f,0)},c.sleep=function(){null!=n&&(p&&C?C(n):clearTimeout(n),s=u,n=null,c===a&&(l=!1))},c.wake=function(t){null!==n?c.sleep():t?d+=-$+($=S()):c.frame>10&&($=S()-f+5),s=0===i?u:p&&x?x:function(t){return setTimeout(t,1e3*(r-c.time)+1|0)},c===a&&(l=!0),v(2)},c.fps=function(t){return arguments.length?(i=t,o=1/(i||60),r=this.time+o,void c.wake()):i},c.useRAF=function(t){return arguments.length?(c.sleep(),p=t,void c.fps(i)):p},c.fps(t),setTimeout(function(){"auto"===p&&c.frame<5&&"hidden"!==document.visibilityState&&c.useRAF(!1)},1500)}),r=d.Ticker.prototype=new d.events.EventDispatcher,r.constructor=d.Ticker;var A=y("core.Animation",function(t,e){if(this.vars=e=e||{},this._duration=this._totalDuration=t||0,this._delay=Number(e.delay)||0,this._timeScale=1,this._active=e.immediateRender===!0,this.data=e.data,this._reversed=e.reversed===!0,Q){l||a.wake();var i=this.vars.useFrames?Y:Q;i.add(this,i._time),this.vars.paused&&this.paused(!0)}});a=A.ticker=new d.Ticker,r=A.prototype,r._dirty=r._gc=r._initted=r._paused=!1,r._totalTime=r._time=0,r._rawPrevTime=-1,r._next=r._last=r._onUpdate=r._timeline=r.timeline=null,r._paused=!1;var D=function(){l&&S()-$>2e3&&a.wake(),setTimeout(D,2e3)};D(),r.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},r.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},r.resume=function(t,e){return null!=t&&this.seek(t,e),this.paused(!1)},r.seek=function(t,e){return this.totalTime(Number(t),e!==!1)},r.restart=function(t,e){return this.reversed(!1).paused(!1).totalTime(t?-this._delay:0,e!==!1,!0)},r.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},r.render=function(t,e,i){},r.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,!this._gc&&this.timeline||this._enabled(!0),this},r.isActive=function(){var t,e=this._timeline,i=this._startTime;return!e||!this._gc&&!this._paused&&e.isActive()&&(t=e.rawTime())>=i&&t<i+this.totalDuration()/this._timeScale},r._enabled=function(t,e){return l||a.wake(),this._gc=!t,this._active=this.isActive(),e!==!0&&(t&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!t&&this.timeline&&this._timeline._remove(this,!0)),!1},r._kill=function(t,e){return this._enabled(!1,!1)},r.kill=function(t,e){return this._kill(t,e),this},r._uncache=function(t){for(var e=t?this:this.timeline;e;)e._dirty=!0,e=e.timeline;return this},r._swapSelfInParams=function(t){for(var e=t.length,i=t.concat();--e>-1;)"{self}"===t[e]&&(i[e]=this);return i},r._callback=function(t){var e=this.vars,i=e[t],s=e[t+"Params"],n=e[t+"Scope"]||e.callbackScope||this,o=s?s.length:0;switch(o){case 0:i.call(n);break;case 1:i.call(n,s[0]);break;case 2:i.call(n,s[0],s[1]);break;default:i.apply(n,s)}},r.eventCallback=function(t,e,i,s){if("on"===(t||"").substr(0,2)){var n=this.vars;if(1===arguments.length)return n[t];null==e?delete n[t]:(n[t]=e,n[t+"Params"]=f(i)&&i.join("").indexOf("{self}")!==-1?this._swapSelfInParams(i):i,n[t+"Scope"]=s),"onUpdate"===t&&(this._onUpdate=e)}return this},r.delay=function(t){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+t-this._delay),this._delay=t,this):this._delay},r.duration=function(t){return arguments.length?(this._duration=this._totalDuration=t,this._uncache(!0),this._timeline.smoothChildTiming&&this._time>0&&this._time<this._duration&&0!==t&&this.totalTime(this._totalTime*(t/this._duration),!0),this):(this._dirty=!1,this._duration)},r.totalDuration=function(t){return this._dirty=!1,arguments.length?this.duration(t):this._totalDuration},r.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(t>this._duration?this._duration:t,e)):this._time},r.totalTime=function(t,e,i){if(l||a.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(t<0&&!i&&(t+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var s=this._totalDuration,n=this._timeline;if(t>s&&!i&&(t=s),this._startTime=(this._paused?this._pauseTime:n._time)-(this._reversed?s-t:t)/this._timeScale,n._dirty||this._uncache(!1),n._timeline)for(;n._timeline;)n._timeline._time!==(n._startTime+n._totalTime)/n._timeScale&&n.totalTime(n._totalTime,!0),n=n._timeline}this._gc&&this._enabled(!0,!1),this._totalTime===t&&0!==this._duration||(I.length&&X(),this.render(t,e,!1),I.length&&X())}return this},r.progress=r.totalProgress=function(t,e){var i=this.duration();return arguments.length?this.totalTime(i*t,e):i?this._time/i:this.ratio},r.startTime=function(t){return arguments.length?(t!==this._startTime&&(this._startTime=t,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,t-this._delay)),this):this._startTime},r.endTime=function(t){return this._startTime+(0!=t?this.totalDuration():this.duration())/this._timeScale},r.timeScale=function(t){if(!arguments.length)return this._timeScale;if(t=t||h,this._timeline&&this._timeline.smoothChildTiming){var e=this._pauseTime,i=e||0===e?e:this._timeline.totalTime();this._startTime=i-(i-this._startTime)*this._timeScale/t}return this._timeScale=t,this._uncache(!1)},r.reversed=function(t){return arguments.length?(t!=this._reversed&&(this._reversed=t,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},r.paused=function(t){if(!arguments.length)return this._paused;var e,i,s=this._timeline;return t!=this._paused&&s&&(l||t||a.wake(),e=s.rawTime(),i=e-this._pauseTime,!t&&s.smoothChildTiming&&(this._startTime+=i,this._uncache(!1)),this._pauseTime=t?e:null,this._paused=t,this._active=this.isActive(),!t&&0!==i&&this._initted&&this.duration()&&(e=s.smoothChildTiming?this._totalTime:(e-this._startTime)/this._timeScale,this.render(e,e===this._totalTime,!0))),this._gc&&!t&&this._enabled(!0,!1),this};var M=y("core.SimpleTimeline",function(t){A.call(this,0,t),this.autoRemoveChildren=this.smoothChildTiming=!0});r=M.prototype=new A,r.constructor=M,r.kill()._gc=!1,r._first=r._last=r._recent=null,r._sortChildren=!1,r.add=r.insert=function(t,e,i,s){var n,o;if(t._startTime=Number(e||0)+t._delay,t._paused&&this!==t._timeline&&(t._pauseTime=t._startTime+(this.rawTime()-t._startTime)/t._timeScale),t.timeline&&t.timeline._remove(t,!0),t.timeline=t._timeline=this,t._gc&&t._enabled(!0,!0),n=this._last,this._sortChildren)for(o=t._startTime;n&&n._startTime>o;)n=n._prev;return n?(t._next=n._next,n._next=t):(t._next=this._first,this._first=t),t._next?t._next._prev=t:this._last=t,t._prev=n,this._recent=t,this._timeline&&this._uncache(!0),this},r._remove=function(t,e){return t.timeline===this&&(e||t._enabled(!1,!0),t._prev?t._prev._next=t._next:this._first===t&&(this._first=t._next),t._next?t._next._prev=t._prev:this._last===t&&(this._last=t._prev),t._next=t._prev=t.timeline=null,t===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},r.render=function(t,e,i){var s,n=this._first;for(this._totalTime=this._time=this._rawPrevTime=t;n;)s=n._next,(n._active||t>=n._startTime&&!n._paused)&&(n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(t-n._startTime)*n._timeScale,e,i):n.render((t-n._startTime)*n._timeScale,e,i)),n=s},r.rawTime=function(){return l||a.wake(),this._totalTime};var E=y("TweenLite",function(e,i,s){if(A.call(this,i,s),this.render=E.prototype.render,null==e)throw"Cannot tween a null target.";this.target=e="string"!=typeof e?e:E.selector(e)||e;var n,o,r,a=e.jquery||e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodeType&&e[0].style&&!e.nodeType),l=this.vars.overwrite;if(this._overwrite=l=null==l?W[E.defaultOverwrite]:"number"==typeof l?l>>0:W[l],(a||e instanceof Array||e.push&&f(e))&&"number"!=typeof e[0])for(this._targets=r=p(e),this._propLookup=[],this._siblings=[],n=0;n<r.length;n++)o=r[n],o?"string"!=typeof o?o.length&&o!==t&&o[0]&&(o[0]===t||o[0].nodeType&&o[0].style&&!o.nodeType)?(r.splice(n--,1),this._targets=r=r.concat(p(o))):(this._siblings[n]=Z(o,this,!1),1===l&&this._siblings[n].length>1&&K(o,this,null,1,this._siblings[n])):(o=r[n--]=E.selector(o),"string"==typeof o&&r.splice(n+1,1)):r.splice(n--,1);else this._propLookup={},this._siblings=Z(e,this,!1),1===l&&this._siblings.length>1&&K(e,this,null,1,this._siblings);(this.vars.immediateRender||0===i&&0===this._delay&&this.vars.immediateRender!==!1)&&(this._time=-h,this.render(Math.min(0,-this._delay)))},!0),P=function(e){return e&&e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodeType&&e[0].style&&!e.nodeType)},O=function(t,e){var i,s={};for(i in t)B[i]||i in e&&"transform"!==i&&"x"!==i&&"y"!==i&&"width"!==i&&"height"!==i&&"className"!==i&&"border"!==i||!(!U[i]||U[i]&&U[i]._autoCSS)||(s[i]=t[i],delete t[i]);t.css=s};r=E.prototype=new A,r.constructor=E,r.kill()._gc=!1,r.ratio=0,r._firstPT=r._targets=r._overwrittenProps=r._startAt=null,r._notifyPluginsOfEnabled=r._lazy=!1,E.version="1.19.0",E.defaultEase=r._ease=new b(null,null,1,1),E.defaultOverwrite="auto",E.ticker=a,E.autoSleep=120,E.lagSmoothing=function(t,e){a.lagSmoothing(t,e)},E.selector=t.$||t.jQuery||function(e){var i=t.$||t.jQuery;return i?(E.selector=i,i(e)):"undefined"==typeof document?e:document.querySelectorAll?document.querySelectorAll(e):document.getElementById("#"===e.charAt(0)?e.substr(1):e)};var I=[],L={},R=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,j=function(t){for(var e,i=this._firstPT,s=1e-6;i;)e=i.blob?t?this.join(""):this.start:i.c*t+i.s,i.m?e=i.m(e,this._target||i.t):e<s&&e>-s&&(e=0),i.f?i.fp?i.t[i.p](i.fp,e):i.t[i.p](e):i.t[i.p]=e,i=i._next},N=function(t,e,i,s){var n,o,r,a,l,c,d,h=[t,e],p=0,u="",f=0;for(h.start=t,i&&(i(h),t=h[0],e=h[1]),h.length=0,n=t.match(R)||[],o=e.match(R)||[],s&&(s._next=null,s.blob=1,h._firstPT=h._applyPT=s),l=o.length,a=0;a<l;a++)d=o[a],c=e.substr(p,e.indexOf(d,p)-p),u+=c||!a?c:",",p+=c.length,f?f=(f+1)%5:"rgba("===c.substr(-5)&&(f=1),d===n[a]||n.length<=a?u+=d:(u&&(h.push(u),u=""),r=parseFloat(n[a]),h.push(r),h._firstPT={_next:h._firstPT,t:h,p:h.length-1,s:r,c:("="===d.charAt(1)?parseInt(d.charAt(0)+"1",10)*parseFloat(d.substr(2)):parseFloat(d)-r)||0,f:0,m:f&&f<4?Math.round:0}),p+=d.length;return u+=e.substr(p),u&&h.push(u),h.setRatio=j,h},z=function(t,e,i,s,n,o,r,a,l){"function"==typeof s&&(s=s(l||0,t));var c,d,h="get"===i?t[e]:i,p=typeof t[e],u="string"==typeof s&&"="===s.charAt(1),f={t:t,p:e,s:h,f:"function"===p,pg:0,n:n||e,m:o?"function"==typeof o?o:Math.round:0,pr:0,c:u?parseInt(s.charAt(0)+"1",10)*parseFloat(s.substr(2)):parseFloat(s)-h||0};if("number"!==p&&("function"===p&&"get"===i&&(d=e.indexOf("set")||"function"!=typeof t["get"+e.substr(3)]?e:"get"+e.substr(3),f.s=h=r?t[d](r):t[d]()),"string"==typeof h&&(r||isNaN(h))?(f.fp=r,c=N(h,s,a||E.defaultStringFilter,f),f={t:c,p:"setRatio",s:0,c:1,f:2,pg:0,n:n||e,pr:0,m:0}):u||(f.s=parseFloat(h),f.c=parseFloat(s)-f.s||0)),f.c)return(f._next=this._firstPT)&&(f._next._prev=f),this._firstPT=f,f},F=E._internals={isArray:f,isSelector:P,lazyTweens:I,blobDif:N},U=E._plugins={},H=F.tweenLookup={},q=0,B=F.reservedProps={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1,autoCSS:1,lazy:1,onOverwrite:1,callbackScope:1,stringFilter:1,id:1},W={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,"true":1,"false":0},Y=A._rootFramesTimeline=new M,Q=A._rootTimeline=new M,V=30,X=F.lazyRender=function(){var t,e=I.length;for(L={};--e>-1;)t=I[e],t&&t._lazy!==!1&&(t.render(t._lazy[0],t._lazy[1],!0),t._lazy=!1);I.length=0};Q._startTime=a.time,Y._startTime=a.frame,Q._active=Y._active=!0,setTimeout(X,1),A._updateRoot=E.render=function(){var t,e,i;if(I.length&&X(),Q.render((a.time-Q._startTime)*Q._timeScale,!1,!1),Y.render((a.frame-Y._startTime)*Y._timeScale,!1,!1),I.length&&X(),a.frame>=V){V=a.frame+(parseInt(E.autoSleep,10)||120);for(i in H){for(e=H[i].tweens,t=e.length;--t>-1;)e[t]._gc&&e.splice(t,1);0===e.length&&delete H[i]}if(i=Q._first,(!i||i._paused)&&E.autoSleep&&!Y._first&&1===a._listeners.tick.length){for(;i&&i._paused;)i=i._next;i||a.sleep()}}},a.addEventListener("tick",A._updateRoot);var Z=function(t,e,i){var s,n,o=t._gsTweenID;if(H[o||(t._gsTweenID=o="t"+q++)]||(H[o]={target:t,tweens:[]}),e&&(s=H[o].tweens,s[n=s.length]=e,i))for(;--n>-1;)s[n]===e&&s.splice(n,1);return H[o].tweens},G=function(t,e,i,s){var n,o,r=t.vars.onOverwrite;return r&&(n=r(t,e,i,s)),r=E.onOverwrite,r&&(o=r(t,e,i,s)),n!==!1&&o!==!1},K=function(t,e,i,s,n){var o,r,a,l;if(1===s||s>=4){for(l=n.length,o=0;o<l;o++)if((a=n[o])!==e)a._gc||a._kill(null,t,e)&&(r=!0);else if(5===s)break;return r}var c,d=e._startTime+h,p=[],u=0,f=0===e._duration;for(o=n.length;--o>-1;)(a=n[o])===e||a._gc||a._paused||(a._timeline!==e._timeline?(c=c||J(e,0,f),0===J(a,c,f)&&(p[u++]=a)):a._startTime<=d&&a._startTime+a.totalDuration()/a._timeScale>d&&((f||!a._initted)&&d-a._startTime<=2e-10||(p[u++]=a)));for(o=u;--o>-1;)if(a=p[o],2===s&&a._kill(i,t,e)&&(r=!0),2!==s||!a._firstPT&&a._initted){if(2!==s&&!G(a,e))continue;a._enabled(!1,!1)&&(r=!0)}return r},J=function(t,e,i){for(var s=t._timeline,n=s._timeScale,o=t._startTime;s._timeline;){if(o+=s._startTime,n*=s._timeScale,s._paused)return-100;s=s._timeline}return o/=n,o>e?o-e:i&&o===e||!t._initted&&o-e<2*h?h:(o+=t.totalDuration()/t._timeScale/n)>e+h?0:o-e-h};r._init=function(){var t,e,i,s,n,o,r=this.vars,a=this._overwrittenProps,l=this._duration,c=!!r.immediateRender,d=r.ease;if(r.startAt){this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill()),n={};for(s in r.startAt)n[s]=r.startAt[s];if(n.overwrite=!1,n.immediateRender=!0,n.lazy=c&&r.lazy!==!1,n.startAt=n.delay=null,this._startAt=E.to(this.target,0,n),c)if(this._time>0)this._startAt=null;else if(0!==l)return}else if(r.runBackwards&&0!==l)if(this._startAt)this._startAt.render(-1,!0),this._startAt.kill(),this._startAt=null;else{0!==this._time&&(c=!1),i={};for(s in r)B[s]&&"autoCSS"!==s||(i[s]=r[s]);if(i.overwrite=0,i.data="isFromStart",i.lazy=c&&r.lazy!==!1,i.immediateRender=c,this._startAt=E.to(this.target,0,i),c){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=d=d?d instanceof b?d:"function"==typeof d?new b(d,r.easeParams):_[d]||E.defaultEase:E.defaultEase,r.easeParams instanceof Array&&d.config&&(this._ease=d.config.apply(d,r.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(o=this._targets.length,t=0;t<o;t++)this._initProps(this._targets[t],this._propLookup[t]={},this._siblings[t],a?a[t]:null,t)&&(e=!0);else e=this._initProps(this.target,this._propLookup,this._siblings,a,0);if(e&&E._onPluginEvent("_onInitAllProps",this),a&&(this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1)),r.runBackwards)for(i=this._firstPT;i;)i.s+=i.c,i.c=-i.c,i=i._next;this._onUpdate=r.onUpdate,this._initted=!0},r._initProps=function(e,i,s,n,o){var r,a,l,c,d,h;if(null==e)return!1;L[e._gsTweenID]&&X(),this.vars.css||e.style&&e!==t&&e.nodeType&&U.css&&this.vars.autoCSS!==!1&&O(this.vars,e);for(r in this.vars)if(h=this.vars[r],B[r])h&&(h instanceof Array||h.push&&f(h))&&h.join("").indexOf("{self}")!==-1&&(this.vars[r]=h=this._swapSelfInParams(h,this));else if(U[r]&&(c=new U[r])._onInitTween(e,this.vars[r],this,o)){for(this._firstPT=d={_next:this._firstPT,t:c,p:"setRatio",s:0,c:1,f:1,n:r,pg:1,pr:c._priority,m:0},a=c._overwriteProps.length;--a>-1;)i[c._overwriteProps[a]]=this._firstPT;(c._priority||c._onInitAllProps)&&(l=!0),(c._onDisable||c._onEnable)&&(this._notifyPluginsOfEnabled=!0),d._next&&(d._next._prev=d)}else i[r]=z.call(this,e,r,"get",h,r,0,null,this.vars.stringFilter,o);return n&&this._kill(n,e)?this._initProps(e,i,s,n,o):this._overwrite>1&&this._firstPT&&s.length>1&&K(e,this,i,this._overwrite,s)?(this._kill(i,e),this._initProps(e,i,s,n,o)):(this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration)&&(L[e._gsTweenID]=!0),l)},r.render=function(t,e,i){var s,n,o,r,a=this._time,l=this._duration,c=this._rawPrevTime;if(t>=l-1e-7)this._totalTime=this._time=l,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(s=!0,n="onComplete",i=i||this._timeline.autoRemoveChildren),0===l&&(this._initted||!this.vars.lazy||i)&&(this._startTime===this._timeline._duration&&(t=0),(c<0||t<=0&&t>=-1e-7||c===h&&"isPause"!==this.data)&&c!==t&&(i=!0,c>h&&(n="onReverseComplete")),this._rawPrevTime=r=!e||t||c===t?t:h);else if(t<1e-7)this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==a||0===l&&c>0)&&(n="onReverseComplete",s=this._reversed),t<0&&(this._active=!1,0===l&&(this._initted||!this.vars.lazy||i)&&(c>=0&&(c!==h||"isPause"!==this.data)&&(i=!0),this._rawPrevTime=r=!e||t||c===t?t:h)),this._initted||(i=!0);else if(this._totalTime=this._time=t,this._easeType){var d=t/l,p=this._easeType,u=this._easePower;(1===p||3===p&&d>=.5)&&(d=1-d),3===p&&(d*=2),1===u?d*=d:2===u?d*=d*d:3===u?d*=d*d*d:4===u&&(d*=d*d*d*d),1===p?this.ratio=1-d:2===p?this.ratio=d:t/l<.5?this.ratio=d/2:this.ratio=1-d/2}else this.ratio=this._ease.getRatio(t/l);if(this._time!==a||i){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!i&&this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totalTime=a,this._rawPrevTime=c,I.push(this),void(this._lazy=[t,e]);this._time&&!s?this.ratio=this._ease.getRatio(this._time/l):s&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==a&&t>=0&&(this._active=!0),0===a&&(this._startAt&&(t>=0?this._startAt.render(t,e,i):n||(n="_dummyGS")),this.vars.onStart&&(0===this._time&&0!==l||e||this._callback("onStart"))),o=this._firstPT;o;)o.f?o.t[o.p](o.c*this.ratio+o.s):o.t[o.p]=o.c*this.ratio+o.s,o=o._next;this._onUpdate&&(t<0&&this._startAt&&t!==-1e-4&&this._startAt.render(t,e,i),e||(this._time!==a||s||i)&&this._callback("onUpdate")),n&&(this._gc&&!i||(t<0&&this._startAt&&!this._onUpdate&&t!==-1e-4&&this._startAt.render(t,e,i),s&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[n]&&this._callback(n),0===l&&this._rawPrevTime===h&&r!==h&&(this._rawPrevTime=0)))}},r._kill=function(t,e,i){if("all"===t&&(t=null),null==t&&(null==e||e===this.target))return this._lazy=!1,this._enabled(!1,!1);e="string"!=typeof e?e||this._targets||this.target:E.selector(e)||e;var s,n,o,r,a,l,c,d,h,p=i&&this._time&&i._startTime===this._startTime&&this._timeline===i._timeline;if((f(e)||P(e))&&"number"!=typeof e[0])for(s=e.length;--s>-1;)this._kill(t,e[s],i)&&(l=!0);else{if(this._targets){for(s=this._targets.length;--s>-1;)if(e===this._targets[s]){a=this._propLookup[s]||{},this._overwrittenProps=this._overwrittenProps||[],n=this._overwrittenProps[s]=t?this._overwrittenProps[s]||{}:"all";break}}else{if(e!==this.target)return!1;a=this._propLookup,n=this._overwrittenProps=t?this._overwrittenProps||{}:"all"}if(a){if(c=t||a,d=t!==n&&"all"!==n&&t!==a&&("object"!=typeof t||!t._tempKill),i&&(E.onOverwrite||this.vars.onOverwrite)){for(o in c)a[o]&&(h||(h=[]),h.push(o));if((h||!t)&&!G(this,i,e,h))return!1}for(o in c)(r=a[o])&&(p&&(r.f?r.t[r.p](r.s):r.t[r.p]=r.s,l=!0),r.pg&&r.t._kill(c)&&(l=!0),r.pg&&0!==r.t._overwriteProps.length||(r._prev?r._prev._next=r._next:r===this._firstPT&&(this._firstPT=r._next),r._next&&(r._next._prev=r._prev),r._next=r._prev=null),delete a[o]),d&&(n[o]=1);!this._firstPT&&this._initted&&this._enabled(!1,!1)}}return l},r.invalidate=function(){return this._notifyPluginsOfEnabled&&E._onPluginEvent("_onDisable",this),this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],A.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-h,this.render(Math.min(0,-this._delay))),this},r._enabled=function(t,e){if(l||a.wake(),t&&this._gc){var i,s=this._targets;if(s)for(i=s.length;--i>-1;)this._siblings[i]=Z(s[i],this,!0);else this._siblings=Z(this.target,this,!0);
}return A.prototype._enabled.call(this,t,e),!(!this._notifyPluginsOfEnabled||!this._firstPT)&&E._onPluginEvent(t?"_onEnable":"_onDisable",this)},E.to=function(t,e,i){return new E(t,e,i)},E.from=function(t,e,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new E(t,e,i)},E.fromTo=function(t,e,i,s){return s.startAt=i,s.immediateRender=0!=s.immediateRender&&0!=i.immediateRender,new E(t,e,s)},E.delayedCall=function(t,e,i,s,n){return new E(e,0,{delay:t,onComplete:e,onCompleteParams:i,callbackScope:s,onReverseComplete:e,onReverseCompleteParams:i,immediateRender:!1,lazy:!1,useFrames:n,overwrite:0})},E.set=function(t,e){return new E(t,0,e)},E.getTweensOf=function(t,e){if(null==t)return[];t="string"!=typeof t?t:E.selector(t)||t;var i,s,n,o;if((f(t)||P(t))&&"number"!=typeof t[0]){for(i=t.length,s=[];--i>-1;)s=s.concat(E.getTweensOf(t[i],e));for(i=s.length;--i>-1;)for(o=s[i],n=i;--n>-1;)o===s[n]&&s.splice(i,1)}else for(s=Z(t).concat(),i=s.length;--i>-1;)(s[i]._gc||e&&!s[i].isActive())&&s.splice(i,1);return s},E.killTweensOf=E.killDelayedCallsTo=function(t,e,i){"object"==typeof e&&(i=e,e=!1);for(var s=E.getTweensOf(t,e),n=s.length;--n>-1;)s[n]._kill(i,t)};var tt=y("plugins.TweenPlugin",function(t,e){this._overwriteProps=(t||"").split(","),this._propName=this._overwriteProps[0],this._priority=e||0,this._super=tt.prototype},!0);if(r=tt.prototype,tt.version="1.19.0",tt.API=2,r._firstPT=null,r._addTween=z,r.setRatio=j,r._kill=function(t){var e,i=this._overwriteProps,s=this._firstPT;if(null!=t[this._propName])this._overwriteProps=[];else for(e=i.length;--e>-1;)null!=t[i[e]]&&i.splice(e,1);for(;s;)null!=t[s.n]&&(s._next&&(s._next._prev=s._prev),s._prev?(s._prev._next=s._next,s._prev=null):this._firstPT===s&&(this._firstPT=s._next)),s=s._next;return!1},r._mod=r._roundProps=function(t){for(var e,i=this._firstPT;i;)e=t[this._propName]||null!=i.n&&t[i.n.split(this._propName+"_").join("")],e&&"function"==typeof e&&(2===i.f?i.t._applyPT.m=e:i.m=e),i=i._next},E._onPluginEvent=function(t,e){var i,s,n,o,r,a=e._firstPT;if("_onInitAllProps"===t){for(;a;){for(r=a._next,s=n;s&&s.pr>a.pr;)s=s._next;(a._prev=s?s._prev:o)?a._prev._next=a:n=a,(a._next=s)?s._prev=a:o=a,a=r}a=e._firstPT=n}for(;a;)a.pg&&"function"==typeof a.t[t]&&a.t[t]()&&(i=!0),a=a._next;return i},tt.activate=function(t){for(var e=t.length;--e>-1;)t[e].API===tt.API&&(U[(new t[e])._propName]=t[e]);return!0},v.plugin=function(t){if(!(t&&t.propName&&t.init&&t.API))throw"illegal plugin definition.";var e,i=t.propName,s=t.priority||0,n=t.overwriteProps,o={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_mod",mod:"_mod",initAll:"_onInitAllProps"},r=y("plugins."+i.charAt(0).toUpperCase()+i.substr(1)+"Plugin",function(){tt.call(this,i,s),this._overwriteProps=n||[]},t.global===!0),a=r.prototype=new tt(i);a.constructor=r,r.API=t.API;for(e in o)"function"==typeof t[e]&&(a[o[e]]=t[e]);return r.version=t.version,tt.activate([r]),r},n=t._gsQueue){for(o=0;o<n.length;o++)n[o]();for(r in g)g[r].func||t.console.log("GSAP encountered missing dependency: "+r)}l=!1}}("undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window,"TweenMax"),Array.prototype.indexOf||(Array.prototype.indexOf=function(t,e){for(var i=e||0,s=this.length;i<s;i++)if(this[i]===t)return i;return-1}),String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")});var CookieControl={VERSION:7,PROD_FREE:"cookiecontrol free",PROD_PAID:"cookiecontrol single-site",PROD_PAID_MULTISITE:"cookiecontrol multi-site",PROD_PAID_CUSTOM:"cookiecontrol custom",HOME_URL:"http://cookie-control.civiccomputing.com/",BROWSER_HELP:"http://cookie-control.civiccomputing.com/browser-settings",MODEL_INFO:"info",MODEL_IMPLICIT:"impl",MODEL_EXPLICIT:"expl",STYLE_TRIANGLE:"ccc-triangle",STYLE_SQUARE:"ccc-square",STYLE_DIAMOND:"ccc-diamond",STYLE_BAR:"ccc-bar",POS_LEFT:"ccc-left",POS_RIGHT:"ccc-right",POS_TOP:"ccc-top",POS_BOTTOM:"ccc-bottom",THEME_LIGHT:"ccc-light",THEME_DARK:"ccc-dark",MODEL_INFORMATION:this.MODEL_INFO,MODEL_INFORMATIONAL:this.MODEL_INFO,MODEL_IMPLIED:this.MODEL_IMPLICIT,options:{countries:"United Kingdom",style:this.STYLE_TRIANGLE,position:this.POS_LEFT,theme:this.THEME_LIGHT,cookieName:"civicCookieControl",cookieExpiry:90,blockedCookieExpiry:90,protectedCookies:[],cookiePath:"/",cookieDomain:"",onlyHideIfConsented:!1,autoFadeSpeed:1e3,initialFadeSpeed:750,clickFadeSpeed:200,expandSpeed:200,startOpen:!1,autoHide:7e3,autoDelete:!0,domain:"",subdomains:!0,css:'@charset "UTF-8";html #cccwr,html #cccwr *{box-sizing:border-box;outline:0}#cccwr *,#cccwr :active{outline:0}html #cccwr{z-index:10001;font-size:12px;line-height:1.5em;font-family:sans-serif;margin:0;text-align:left}html #cccwr a:hover{background:0 0}#cccwr #ccc-icon button,#cccwr #cctoggle{background-image:url(//apikeys.civiccomputing.com/p/cc/6.2/ccc-icons.png)}#cccwr #ccc-icon{cursor:pointer;z-index:9999;bottom:-1px;left:0;position:fixed}#cccwr.ccc-right,#cccwr.ccc-right #ccc-icon{left:auto;right:0}.ccc-widget{position:fixed;bottom:35px;left:70px;z-index:10001;display:none}#ccc-hdricon,#cccwr .ccc-close{display:block;color:#fff;position:absolute}div#cccwr.ccc-right .ccc-widget{left:auto;right:70px}.ccc-outer{color:#767676;background:#fff;border:1px solid #f0942b;border-radius:4px;-moz-border-radius:4px;-o-border-radius:4px;-webkit-border-radius:4px;left:70px;width:200px;bottom:30px}.ccc-inner{position:relative;z-index:2;background:#fff;border-radius:4px;-moz-border-radius:4px;-o-border-radius:4px;-webkit-border-radius:4px}.ccc-hdr{background-color:#f39321;border-bottom:1px solid #f0942b;height:40px}#ccc-hdricon{left:0;top:0;padding:0}#ccc-hdricon:hover{background:0 0}.ccc-inner h2{color:#fff;font-size:1.3em;font-weight:700;margin:0;padding:11px 9px 8px 44px}#cccwr .ccc-close{border:0;height:24px;width:24px;border-radius:4px;-moz-border-radius:4px;-o-border-radius:4px;-webkit-border-radius:4px;right:8px;top:8px}#cccwr .ccc-close:hover{background-color:#000;background-color:rgba(0,0,0,.15)}#cccwr .ccc-close span{display:block;text-indent:-9999px}#cccwr #ccc-toggle a,#cccwr .ccc-bt{margin:0;border:0;padding:0;width:180px;height:30px;display:inline-block;text-align:center;color:#fff!important}#cccwr #ccc-toggle a:hover{text-decoration:none!important}#cccwr .ccc-bt{display:block;margin:1em 0;font-weight:700px;line-height:28px}#cccwr .ccc-bt:hover{text-decoration:none}#cccwr #ccc-toggle .ccc-1st{margin-right:5px}#cccwr .ccc-rd,#cccwr .ccc-rd:hover{background:#ac1414}#cccwr .ccc-or,#cccwr .ccc-or:hover{background:#f0942b}#cccwr .ccc-gr,#cccwr .ccc-gr:hover{background:#32796D}#cccwr .ccc-toggle-shadow{position:absolute;cursor:pointer}#cccwr #ccc-toggle,#cccwr .ccc-bt,#cccwr .ccc-toggle-shadow{width:180px;height:30px;border-radius:4px;-moz-border-radius:4px;-o-border-radius:4px;-webkit-border-radius:4px}#cccwr #ccc-toggle{overflow:hidden;border-radius:4px;-moz-border-radius:4px;-o-border-radius:4px;-webkit-border-radius:4px;-moz-user-select:none;-webkit-user-select:none;-webkit-user-drag:none;white-space:nowrap}#cccwr #ccc-toggle div{width:365px;font-weight:700;line-height:28px;color:#fff}#cccwr.ccc-info #ccc-toggle div{font-weight:400}.ccc-dark .ccc-hdr{background-color:#3e3e3e}#cccwr.ccc-dark .ccc-close:hover{background-color:#f0942b}#cccwr.ccc-dark .ccc-outer{color:#fff;background-color:#3e3e3e;border-color:#000}#cccwr.ccc-dark .ccc-inner{background:0 0}#cccwr.ccc-dark .ccc-inner p{color:#fff}#cccwr.ccc-info.ccc-bar #ccc-toggle,#cccwr.ccc-info.ccc-bar .ccc-toggle-shadow,.ccc-bar #ccc-icon{display:none!important}#cccwr.ccc-bar .ccc-bt.ccc-fine{display:none}#cccwr.ccc-bar{position:fixed;display:none;height:50px;background-color:#f4f4f4;top:0;left:0;width:100%;border-bottom:solid 1px #888;box-shadow:0 -12px 10px 10px #000}#cccwr.ccc-bar.ccc-bottom{position:fixed;bottom:0;top:auto;border-bottom:none;border-top:solid 1px #888;box-shadow:0 12px 10px 10px #000}#cccwr.ccc-bar .ccc-widget{position:relative;top:0;left:0;bottom:auto;display:block;height:50px}#cccwr.ccc-bar .ccc-inner,#cccwr.ccc-bar .ccc-outer{width:100%;height:100%;background:0 0;border:none}.ccc-bar .ccc-inner{background:0 0}#cccwr.ccc-bar .ccc-hdr{background:0 0;width:100%;overflow:hidden;padding:5px 10px;height:50px;border:0}#cccwr.ccc-bar .ccc-hdr>*{position:relative!important;display:inline-block;float:left}#cccwr.ccc-bar .ccc-close,.ccc-bar #ccc-ias{float:right!important;width:auto;height:auto;text-indent:0}#cccwr.ccc-bar.ccc-light #ccc-hdricon{color:#f39321}.ccc-bar .ccc-hdr h2{color:#f39321;display:inline;padding-left:5px;font-size:14px;line-height:18px}.ccc-bar .ccc-hdr span.ccc-title{display:inline;padding:11px 10px 10px;font-size:14px;color:#444}.ccc-bar.ccc-dark .ccc-title{color:#888}#ccc-ias{display:none}.ccc-bar #ccc-ias{display:inline!important;position:relative!important;overflow:hidden;background:0 0;padding:12px 10px 8px;color:#444}#cccwr.ccc-bar.ccc-dark #ccc-ias{color:#f0942b}#cccwr.ccc-bar #ccc-ias:hover{text-decoration:underline}.ccc-bar #ccc-ias2,.ccc-info #ccc-ias2{display:none}#cccwr.ccc-bar .ccc-close{background:#32796D;margin:-5px 20px 0;font-size:14px;padding:8px 26px;border-radius:4px;-moz-border-radius:4px;-o-border-radius:4px;-webkit-border-radius:4px}#cccwr.ccc-bar .ccc-close:before{font-size:12px;content:"\\e804";border:1px solid #fff;border-radius:50%;padding:2px;margin:0 5px 0 0}#cccwr.ccc-bar .ccc-close span{display:inline-block;text-indent:0}.ccc-bar .ccc-c{overflow:hidden;position:fixed;top:50px;right:0;width:340px}.ccc-bar .ccc-ci{display:block;visibility:hidden;position:relative;top:0;right:0;background:#fff;border:1px solid #888;border-style:none none solid solid;overflow:hidden;margin:0 0 7px auto!important;padding:12px 33px 24px;box-shadow:12px -12px 10px 10px #000;box-sizing:content-box!important;height:auto!important}#cccwr #ccc-explicit-checkbox,#cccwr #ccc-implicit-warning,#cccwrpad{display:none}.ccc-bar.ccc-dark .ccc-ci{background:#363636;border-color:#000;color:#fff}.ccc-bar.ccc-bottom .ccc-c{top:auto;bottom:50px}.ccc-bar.ccc-bottom .ccc-ci{border-style:solid none none solid;margin:7px 0 0 auto!important;box-shadow:12px 12px 10px 10px #000;padding-top:25px}#cccwr.ccc-bar #ccc-toggle,#cccwr.ccc-bar #ccc-toggle a,#cccwr.ccc-bar .ccc-bt,#cccwr.ccc-bar .ccc-toggle-shadow{width:268px}.ccc-bar.ccc-top #cccwrpad{display:none;border:0;margin:0;padding:0;height:50px}.ccc-bar.ccc-bottom .ccc-widget{top:inherit;bottom:inherit;padding:0 10px 4px 8px;height:auto}.ccc-dark #cccwr.ccc-bar{background-color:#3e3e3e}.ccc-c{margin:0;border:0;padding:0}.ccc-ci{padding:5px 10px 10px;margin:0}#cccwr .ccc-inner p{margin:5px 0 8px;padding:0}.ccc-inner ul{margin:8px 0;padding:0 0 0 12px}.ccc-inner a{color:#454545;text-decoration:none}.ccc-dark .ccc-inner a{color:#f0942b}.ccc-inner a:hover{text-decoration:underline}#ccc-hdricon:hover:before,#ccc-ias2:hover:before,#ccc-icon a,#cccwr.ccc-bar #ccc-ias:hover:before,.ccc-close:hover:before,div#ccc-icon a:hover:before{text-decoration:none}#cccwr .cctoggle-text-off{padding-left:20px}#cccwr .cctoggle-text-on{padding-left:70px}.ccc-inner .ccc-ab{display:block;margin:0;position:relative;text-align:right;top:5px}#ccc-ias2{display:block}.ccc-expanded,.ccc-hdr span.ccc-title{display:none}.ccc-hdr span.ccc-title *{outline:0!important;margin:0!important;border:0!important;padding:0!important}#cccwr.ccc-persist.ccc-left #ccc-icon,#cccwr.ccc-persist.ccc-right #ccc-icon,.ccc-bar .ccc-expanded{display:block!important}#ccc-icon a{display:block;color:#f39321;width:64px;height:64px;border:0;background:0 0}div#ccc-icon a span{left:0;width:64px;height:64px}.screen-clip{position:absolute!important;clip:rect(1px 1px 1px 1px);clip:rect(1px,1px,1px,1px)}.ccc-bar div#ccc-icon{display:none!important}@font-face{font-family:cc7;src:url(//apikeys.civiccomputing.com/p/cc/7.0/font/cc7.eot?91613695);src:url(//apikeys.civiccomputing.com/p/cc/7.0/font/cc7.eot?91613695#iefix) format("embedded-opentype"),url(//apikeys.civiccomputing.com/p/cc/7.0/font/cc7.woff?91613695) format("woff"),url(//apikeys.civiccomputing.com/p/cc/7.0/font/cc7.ttf?91613695) format("truetype"),url(//apikeys.civiccomputing.com/p/cc/7.0/font/cc7.svg?91613695#cc7) format("svg");font-weight:400;font-style:normal}#ccc-hdricon:before,#ccc-ias2:before,#ccc-icon a:before,#cccwr.ccc-bar #ccc-ias:before,.ccc-close:before,.ccc-fine:before{font-family:cc7;font-style:normal;font-weight:400;speak:none;box-sizing:content-box;display:inline-block;text-decoration:inherit;width:1em;margin-left:.2em;margin-right:.2em;text-align:center;font-variant:normal;text-transform:none;line-height:1em;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#cccwr.no-branding #ccc-about,#cccwr.no-branding.ccc-bottom .ccc-hdr #ccc-hdricon,#cccwr.no-branding.ccc-bottom .ccc-hdr h2,#cccwr.no-branding.ccc-left #ccc-about,#cccwr.no-branding.ccc-left .ccc-hdr #ccc-hdricon,#cccwr.no-branding.ccc-left .ccc-hdr h2,#cccwr.no-branding.ccc-right #ccc-about,#cccwr.no-branding.ccc-right .ccc-hdr #ccc-hdricon,#cccwr.no-branding.ccc-right .ccc-hdr h2,#cccwr.no-branding.ccc-top .ccc-hdr #ccc-hdricon,#cccwr.no-branding.ccc-top .ccc-hdr h2{display:none}#ccc-hdricon:before{content:"\\e800";font-size:24px;margin:8px}#ccc-icon.ccc-diamond a:before{content:"\\e801";font-size:48px;margin:8px}#ccc-icon.ccc-square a:before{content:"\\e802";font-size:48px;margin:8px}#ccc-icon.ccc-triangle a:before{content:"\\e803";font-size:64px;margin:0}.ccc-fine:before{content:"\\e804";border:1px solid #fff;border-radius:50%;padding:2px;margin:0 5px 0 0}.ccc-close:before{content:"\\e805";font-size:16px;margin:4px}.icon-help:before{content:"\\e806"}#ccc-ias2.active:before,#cccwr.ccc-bar #ccc-ias:before,.ccc-bottom.ccc-open #cccwr.ccc-bar #ccc-ias:before{content:"\\e807";opacity:.5}#ccc-ias2:before,#cccwr.ccc-bar .ccc-open #ccc-ias:before,.ccc-bottom #cccwr.ccc-bar #ccc-ias:before{content:"\\e808";opacity:.5}#ccc-icon.ccc-right.ccc-triangle a:before{content:"\\e80a";font-size:64px;margin:0}#cccwr.no-branding.ccc-left #ccc-ias2,#cccwr.no-branding.ccc-right #ccc-ias2{text-align:center;margin:.5em 0 1em -12px}@media only screen and (max-width:1024px){#cccwr .ccc-close{height:40px;width:50px;right:0;top:0;margin:0!important}.ccc-close:before{margin:12px 16px}}@media only screen and (max-width:800px){#cccwr.ccc-bar #ccc-ias span,#cccwr.ccc-bar .ccc-close span{display:none}#cccwr div.ccc-c{overflow-y:scroll;overflow-x:hidden}#cccwr.ccc-bar,#cccwr.ccc-bar .ccc-hdr,#cccwr.ccc-bar .ccc-widget{height:auto}#cccwr.ccc-bar #ccc-ias,#cccwr.ccc-bar .ccc-close{position:absolute!important;top:8px;padding:0;width:32px;height:32px}#cccwr.ccc-bar .ccc-close{right:20px;margin:0;text-align:center}#cccwr.ccc-bar .ccc-close:before{margin:7px}#cccwr.ccc-bar #ccc-ias{right:60px;margin:0;background:#f39321;opacity:.6;border-radius:4px;-moz-border-radius:4px;-o-border-radius:4px;-webkit-border-radius:4px}#cccwr.ccc-bar #ccc-ias:before{content:"\\e807";color:#fff;background:#f39321;opacity:1;margin:0;text-align:center;padding:9px;font-size:14px}#cccwr.ccc-bar.no-branding .ccc-title{padding:8px 88px 10px 10px}#cccwr.ccc-bar div.ccc-c.scroll-clip{right:0;top:0;bottom:0}}@media only screen and (max-width:750px){#cccwr.ccc-bar .ccc-hdr span.ccc-title{clear:left}}@media only screen and (max-width:700px){#cccwr.ccc-diamond .ccc-hdr,#cccwr.ccc-square .ccc-hdr,#cccwr.ccc-triangle .ccc-hdr{border-radius:4px 4px 0 0;height:64px}#cccwr.ccc-diamond #ccc-hdricon,#cccwr.ccc-square #ccc-hdricon,#cccwr.ccc-triangle #ccc-hdricon{top:12px}#cccwr.ccc-diamond #ccc-hdricon:before,#cccwr.ccc-square #ccc-hdricon:before,#cccwr.ccc-triangle #ccc-hdricon:before{margin:8px 8px 8px 20px}#cccwr.ccc-diamond .ccc-inner h2,#cccwr.ccc-square .ccc-inner h2,#cccwr.ccc-triangle .ccc-inner h2{padding-top:23px;padding-left:54px}#cccwr.ccc-diamond .ccc-close,#cccwr.ccc-square .ccc-close,#cccwr.ccc-triangle .ccc-close{height:64px}#cccwr.ccc-diamond .ccc-close:before,#cccwr.ccc-square .ccc-close:before,#cccwr.ccc-triangle .ccc-close:before{margin:24px 16px}#cccwr.ccc-diamond .ccc-widget,#cccwr.ccc-square .ccc-widget,#cccwr.ccc-triangle .ccc-widget{overflow-y:scroll;overflow-x:hidden;left:0;bottom:0;top:0;right:0;font-size:16px;border-radius:0;background:#fff}#cccwr.ccc-diamond .ccc-widget p,#cccwr.ccc-square .ccc-widget p,#cccwr.ccc-triangle .ccc-widget p{line-height:1.5em;margin:.5em 0}#cccwr.ccc-diamond .ccc-outer,#cccwr.ccc-square .ccc-outer,#cccwr.ccc-triangle .ccc-outer{width:90%;margin:5%;border-color:#fff}#cccwr.ccc-diamond .ccc-dark .ccc-widget,#cccwr.ccc-square .ccc-dark .ccc-widget,#cccwr.ccc-triangle .ccc-dark .ccc-widget{background:#3e3e3e}#cccwr.ccc-diamond #cccwr.ccc-dark .ccc-outer,#cccwr.ccc-square #cccwr.ccc-dark .ccc-outer,#cccwr.ccc-triangle #cccwr.ccc-dark .ccc-outer{border-color:#3e3e3e}#cccwr.ccc-diamond .ccc-expanded,#cccwr.ccc-square .ccc-expanded,#cccwr.ccc-triangle .ccc-expanded{display:block!important}#cccwr.ccc-diamond #cccwr.ccc-expl #ccc-ias2,#cccwr.ccc-diamond #cccwr.ccc-impl #ccc-ias2,#cccwr.ccc-diamond #cccwr.ccc-info #ccc-toggle,#cccwr.ccc-diamond.ccc-dnt #ccc-ias2,#cccwr.ccc-diamond.ccc-expl #ccc-ias2,#cccwr.ccc-square #cccwr.ccc-expl #ccc-ias2,#cccwr.ccc-square #cccwr.ccc-impl #ccc-ias2,#cccwr.ccc-square #cccwr.ccc-info #ccc-toggle,#cccwr.ccc-square.ccc-dnt #ccc-ias2,#cccwr.ccc-square.ccc-expl #ccc-ias2,#cccwr.ccc-triangle #cccwr.ccc-expl #ccc-ias2,#cccwr.ccc-triangle #cccwr.ccc-impl #ccc-ias2,#cccwr.ccc-triangle #cccwr.ccc-info #ccc-toggle,#cccwr.ccc-triangle.ccc-dnt #ccc-ias2,#cccwr.ccc-triangle.ccc-expl #ccc-ias2{display:none}#cccwr.ccc-diamond #cccwr #ccc-toggle,#cccwr.ccc-diamond #cccwr .ccc-bt,#cccwr.ccc-diamond #cccwr .ccc-toggle-shadow,#cccwr.ccc-square #cccwr #ccc-toggle,#cccwr.ccc-square #cccwr .ccc-bt,#cccwr.ccc-square #cccwr .ccc-toggle-shadow,#cccwr.ccc-triangle #cccwr #ccc-toggle,#cccwr.ccc-triangle #cccwr .ccc-bt,#cccwr.ccc-triangle #cccwr .ccc-toggle-shadow{width:300px;margin:1em auto}#cccwr.ccc-diamond #cccwr #ccc-toggle div,#cccwr.ccc-square #cccwr #ccc-toggle div,#cccwr.ccc-triangle #cccwr #ccc-toggle div{width:200%}#cccwr.ccc-diamond #cccwr #ccc-toggle a,#cccwr.ccc-square #cccwr #ccc-toggle a,#cccwr.ccc-triangle #cccwr #ccc-toggle a{width:50%}#cccwr.ccc-diamond #cccwr .ccc-bt,#cccwr.ccc-square #cccwr .ccc-bt,#cccwr.ccc-triangle #cccwr .ccc-bt{width:300px;margin-bottom:1.5em}#cccwr.ccc-diamond .ccc-ci,#cccwr.ccc-square .ccc-ci,#cccwr.ccc-triangle .ccc-ci{padding:20px}#cccwr.ccc-diamond #cccwr #ccc-toggle,#cccwr.ccc-square #cccwr #ccc-toggle,#cccwr.ccc-triangle #cccwr #ccc-toggle{margin-top:3em}#cccwr.ccc-diamond #ccc-toggle,#cccwr.ccc-diamond #ccc-toggle a,#cccwr.ccc-diamond .ccc-bt,#cccwr.ccc-diamond .ccc-toggle-shadow,#cccwr.ccc-square #ccc-toggle,#cccwr.ccc-square #ccc-toggle a,#cccwr.ccc-square .ccc-bt,#cccwr.ccc-square .ccc-toggle-shadow,#cccwr.ccc-triangle #ccc-toggle,#cccwr.ccc-triangle #ccc-toggle a,#cccwr.ccc-triangle .ccc-bt,#cccwr.ccc-triangle .ccc-toggle-shadow{height:40px;line-height:40px}#cccwr.ccc-diamond #ccc-toggle,#cccwr.ccc-square #ccc-toggle,#cccwr.ccc-triangle #ccc-toggle{margin:1em auto}#cccwr.ccc-diamond.no-branding .ccc-hdr,#cccwr.ccc-square.no-branding .ccc-hdr,#cccwr.ccc-triangle.no-branding .ccc-hdr{display:block;background:0 0;border-bottom:0;height:20px}#cccwr.ccc-diamond.no-branding .ccc-close,#cccwr.ccc-square.no-branding .ccc-close,#cccwr.ccc-triangle.no-branding .ccc-close{background:#f39321}.ccc-light #cccwr.ccc-diamond .ccc-widget,.ccc-light #cccwr.ccc-square .ccc-widget,.ccc-light #cccwr.ccc-triangle .ccc-widget{background:rgba(0,0,0,.5)}.ccc-dark #cccwr.ccc-diamond .ccc-widget,.ccc-dark #cccwr.ccc-square .ccc-widget,.ccc-dark #cccwr.ccc-triangle .ccc-widget{background:rgba(255,255,255,.5)}#cccwr.ccc-bar.ccc-top .ccc-c{border-top:1px solid #f0942b;width:100%}#cccwr.ccc-bar.ccc-bottom .ccc-c{border-bottom:1px solid #f0942b;width:100%}#cccwr.ccc-bar #ccc-toggle,#cccwr.ccc-bar .ccc-toggle{margin:1.5em auto}#cccwr .ccc-ab{text-align:center;padding:1.5em 10px;border-top:1px solid #eaeaea}}',html:'<div id="cccwr"><div id="ccc-state" class="ccc-pause"><div id="ccc-icon"><a href="#"><span class="screen-clip">Toggle Cookie Control Widget</span></a></div><div class="ccc-widget"><div class="ccc-outer"><div class="ccc-inner"><div class="ccc-hdr"><a id="ccc-hdricon" target="_blank" title="About Cookie Control"></a><h2>Cookie Control</h2><span class="ccc-title"></span> <a href="#" class="ccc-close"></a> <a href="#" id="ccc-ias"></a></div><div class="ccc-c"><div class="ccc-ci"><p class="ccc-intro"></p><div class="ccc-expanded"></div><div id="ccc-implicit-warning">(One cookie will be set to store your preference)</div><!-- TODO --><div id="ccc-explicit-checkbox"><input id="cchide-popup" type="checkbox" name="ccc-hide-popup" value="Y" title="Do not ask me again"><label for="ccchide-popup">Do not ask me again<br></label>(Ticking this sets a cookie to hide this popup if you then hit close. This will not store any personal information)</div><a class="ccc-ab" id="ccc-ias2"></a> <a class="ccc-ab" id="ccc-about" target="_blank"></a></div></div></div></div></div></div></div><div id="cccwrpad"></div>',onReady:null,onCookiesAllowed:null,onCookiesNotAllowed:null,onAccept:null,onReject:null,consentModel:this.MODEL_INFO,branding:!0,t:{ias:"Information and Settings",title:"This site uses cookies to store information on your computer.",intro:"Some of these cookies are essential to make our site work and others help us to improve by giving us some insight into how the site is being used.",full:'<p>These cookies are set when you submit a form, login or interact with the site by doing something that goes beyond clicking some simple links.</p><p>We also use some non-essential cookies to anonymously track visitors or enhance your experience of this site. If you\'re not happy with this, we won\t set these cookies but some nice features on the site may be unavailable.</p><p>To control third party cookies, you can also <a class="ccc-settings">adjust your browser settings</a>.</p><a class="ccc-bt ccc-gr ccc-settings">Browser settings</a>',on:"Turn cookies on",off:"Turn cookies off",bs:"Browser settings",rm:"Read more",rl:"Read less",ab:"About this tool",c:"I'm fine with this"}},isFP:function(){return"object"!=typeof civicLicense||civicLicense.product.toLowerCase()===this.PROD_FREE},cookieLawApplies:function(){return!!this.countryHasCookieLaw()},maySendCookies:function(){return!this.cookieLawApplies()||this._setModel===this.MODEL_INFO&&!this.getDNT()||void 0===this.getState("consented",void 0)&&this._setModel===this.MODEL_IMPLICIT&&!this.getDNT()||this.consented()===!0},consented:function(){return"yes"===this.getState("consented",!1)},hidden:function(){return"yes"===this.getState("hidden",!1)},closed:function(){return"no"===this.getState("open",!1)},reset:function(){this.delCookie(this.options.cookieName)},init:function(t){if(t.t=jQuery.extend(this.options.t,t.t),this.options=jQuery.extend(this.options,t),this.sanityCheck()){var e=jQuery.extend({},this.options.t);if(!this.isFP()&&this.options.locale){var i=window.navigator.userLanguage||window.navigator.language;i=i.replace("-","_"),user_language=i.substring(0,2),jQuery.inArray(i,this.options.locale)>=0?jQuery.extend(e,this.options.locale_t[i]):jQuery.inArray(user_language,this.options.locale)>=0&&jQuery.extend(e,this.options.locale_t[user_language])}t.t=jQuery.extend(this.options.t,e),this.workarounds(),this.initPersistentState(),this.setModel(this.options.consentModel),this.initWidget(),this.options.cookieDomain||(this.options.cookieDomain=document.location.hostname),this.resetOnUpdatedPolicy(),this.setPolicyVersion(),this.options.protectedCookies.push(this.options.cookieName),this.scheduleAutohide(),jQuery("#ccc-state").click(function(){CookieControl.disableAutohide(),CookieControl.stopAutohide()}),this.readyEvent(),this.maySendCookies()?(jQuery("#ccc-state, body").addClass("ccc-consented"),this.cookiesAllowedEvent()):(jQuery("#ccc-state, body").addClass("ccc-blocked"),this.options.autoDelete&&this.delAllCookies(),this.cookiesNotAllowedEvent())}},sanityCheck:function(){if(!civicLicense.valid)return alert("Civic Cookie Control: "+civicLicense.error),!1;var t=[];jQuery.each("ias title intro full on off bs rm rl".split(" "),function(e,i){""===i.trim()&&t.push("Text option CookieControl.options."+e+" may not be empty.")});var e=[this.STYLE_TRIANGLE,this.STYLE_SQUARE,this.STYLE_DIAMOND,this.STYLE_BAR];return e.indexOf(this.options.style)<0&&t.push('Style must be one of STYLE_TRIANGLE, STYLE_SQUARE, STYLE_DIAMOND or STYLE_BAR, not "'+this.options.style+'".'),this.options.style==this.STYLE_BAR?this.options.position!==this.POS_TOP&&this.options.position!==this.POS_BOTTOM&&t.push('Position must be POS_TOP or POS_BOTTOM, not "'+this.options.position+'".'):this.options.position!==this.POS_LEFT&&this.options.position!==this.POS_RIGHT&&t.push('Position must be POS_LEFT or POS_RIGHT, not "'+this.options.position+'".'),this.options.theme!==this.THEME_LIGHT&&this.options.theme!==this.THEME_DARK&&t.push('Theme must be THEME_LIGHT or THEME_DARK, not "'+this.options.position+'".'),!t.length||(alert("Civic Cookie Control: "+t.join("\n")),!1)},initWidget:function(){this.cookieLawApplies()&&"no"!==this.getCookie(this.options.iconStatusCookieName)&&(this.hidden()===!0&&this.options.alwaysShow!==!0||this.initShowCookieWidget())},initShowCookieWidget:function(){var t=this.consented();if(!jQuery("#cccwr .ccc-outer").length){jQuery("head").append('<style type="text/css">'+this.options.css+"</style>"),jQuery("body").prepend(this.options.html);var e=jQuery("#cccwr"),i=e.find("#ccc-icon"),s=e.find("#ccc-state");if(e.find(".ccc-title").html(this.options.t.title),e.find(".ccc-intro").html(this.options.t.title+" "+this.options.t.intro),e.find(".ccc-expanded").html(this.options.t.full),e.find("#ccc-about").html(this.options.t.ab),e.find(".ccc-close").html("<span>"+this.options.t.c+"</span>"),e.find("#ccc-ias, #ccc-ias2").html("<span>"+this.options.t.ias+"</span>"),e.find("#ccc-about, #cccwr #ccc-hdricon").attr({href:this.HOME_URL,target:"_blank"}),e.find("a.ccc-settings").attr({href:this.BROWSER_HELP,target:"_blank"}),this.setPosition(this.options.position),this.setStyle(this.options.style),this.setTheme(this.options.theme),s.addClass(t?"ccc-go ccc-cookies-allowed":"ccc-pause ccc-cookies-blocked"),e.find("a").attr("rel","nofollow"),this.initSlider(e),this.initIAS(e),this.initEventHandlers(e,i),this.hidden()||this.initialDisplay(),this.isFP()||this.options.branding!==!1||(e.addClass("no-branding"),jQuery("#ccc-about, .ccc-hdr #ccc-hdricon, .ccc-hdr h2").remove()),jQuery("#cccwr, #ccc-icon, body").addClass("ccc-"+this._setModel),!this.isFP()&&this.options.hex){if(this.options.hex.branding?brandingHex=this.options.hex.branding:brandingHex=this.options.hex,jQuery("#cccwr.ccc-bar #ccc-hdricon, #cccwr.ccc-bar .ccc-hdr h2").css("color",brandingHex),jQuery("#cccwr #ccc-icon a").css("color",brandingHex),jQuery("#cccwr.ccc-left.ccc-light .ccc-hdr, #cccwr.ccc-right.ccc-light .ccc-hdr").css("background-color",brandingHex),jQuery("#cccwr.ccc-left .ccc-hdr, #cccwr.ccc-right .ccc-hdr").css("border-bottom","1px solid "+brandingHex),jQuery("#cccwr.ccc-left .ccc-outer, #cccwr.ccc-right .ccc-outer").css("border-color",brandingHex),jQuery("#cccwr .ccc-ci .ccc-intro a, #cccwr .ccc-ci .ccc-expanded a").css("color",brandingHex),jQuery("#cccwr .ccc-rd, #cccwr .ccc-or, #cccwr .ccc-gr, #cccwr.ccc-bar .ccc-close").css("background-color",brandingHex),this.options.hex.links&&jQuery("#cccwr .ccc-ci .ccc-intro a, #cccwr .ccc-ci .ccc-expanded a, #cccwr.ccc-bar #ccc-ias, .ccc-inner a").css("color",this.options.hex.links),this.options.hex.text&&jQuery(".ccc-inner p").css("color",this.options.hex.text),this.options.hex.buttons){var n=this.options.hex.buttons;jQuery("#cccwr .ccc-rd, #cccwr .ccc-or, #cccwr .ccc-gr, #cccwr.ccc-bar .ccc-close").css("background-color",n)}if(this.options.hex.buttonsHover&&n){var o=this.options.hex.buttonsHover;$("#cccwr.ccc-bar .ccc-close, .ccc-toggle-shadow").hover(function(t){var e=$(this).hasClass("ccc-toggle-shadow")?$(".ccc-rd, .ccc-or, .ccc-gr"):$(this);e.css("background-color","mouseenter"===t.type?o:n)})}this.options.hex.bar&&jQuery("#cccwr.ccc-bar, .ccc-bar .ccc-ci").css({"background-color":this.options.hex.bar,"border-color":this.options.hex.bar})}if(this.options.alwaysShow===!0&&(jQuery("body").addClass("ccc-persist"),e.addClass("ccc-persist")),this.options.style==this.STYLE_BAR){var r=this.options.barHeight;if(r&&"number"==typeof r&&r>50&&matchMedia&&matchMedia("screen and (min-width: 801px)").matches){var a=!0;jQuery("#cccwr.ccc-bar, #cccwr.ccc-bar .ccc-widget, #cccwr.ccc-bar .ccc-hdr").css("height",r+"px");var l=Math.ceil((r-40)/2);jQuery("#cccwr.ccc-bar .ccc-hdr").css("padding",l+"px 10px");var c=Math.ceil(.16*r),d=Math.ceil(8/c*26)+26;jQuery("#cccwr.ccc-bar .ccc-close").css({padding:c+"px "+d+"px","margin-top":"-"+Math.ceil(.12*r)+"px"})}if(this.options.toggleOnBar===!0&&this.options.consentModel!==this.MODEL_INFO){var h=e.find(".ccc-toggle-shadow");ccc_tw=this.options.toggleWidth?this.options.toggleWidth:$(".ccc-close").outerWidth();var p=$(".ccc-close").outerHeight();$(".ccc-close").css("margin-right","5px"),h.attr("style","width:"+ccc_tw+"px;height:"+p+"px;position:absolute!important;right:10px;margin-top:3px;z-index:2").insertBefore(".ccc-close"),$("#ccc-toggle").width(ccc_tw).height(p).insertBefore(".ccc-close").css({"float":"right","margin-top":a?"-1px":"3px"}),$("#ccc-toggle a[class^=ccc-]").width(ccc_tw).height(p).css("line-height",p+"px"),this.maySendCookies()||this._setModel!==this.MODEL_EXPLICIT||jQuery("#ccc-toggle div").css("margin-left",-(ccc_tw+5))}this.options.fullTextOnlyOnPopup===!0&&$(".ccc-intro").remove();var u=jQuery("#cccwr.ccc-bar .ccc-hdr"),f=jQuery("#cccwr.ccc-bar.ccc-top div.ccc-c"),g=jQuery("#cccwr.ccc-bar.ccc-bottom div.ccc-c"),m=u.outerHeight();f.css("top",m),g.css("bottom",m);var v;jQuery(window).on("resize",function(t){clearTimeout(v),v=setTimeout(function(){m=u.outerHeight(),f.css("top",m),g.css("bottom",m),jQuery(".ccc-ci").hasClass("ccc-vis")&&(jQuery(".scroll-clip").removeClass(".scroll-clip"),CookieControl.handleBarIAS())},100)})}}},initSlider:function(t){this._setModel!=this.MODEL_IMPLICIT||this.getDNT()?jQuery("#cccwr .ccc-expanded").after('<span class="ccc-toggle-shadow"/><div id="ccc-toggle"><div/></div>'):jQuery("#cccwr .ccc-expanded").append('<span class="ccc-toggle-shadow"/><div id="ccc-toggle"><div/></div>').after('<a class="ccc-bt ccc-gr ccc-fine" href="#">'+this.options.t.c+"</a>");var e=(this.getCookie(this.options.cookieName),t.find(".ccc-toggle-shadow")),i=t.find("#ccc-toggle > div");ccc_tw=e.width(),jQuery(window).resize(function(){ccc_tw=e.width(),jQuery(".ccc-toggle-shadow.toggled").length>0&&jQuery("#ccc-toggle div").stop(!0).animate({"margin-left":-(ccc_tw+5)},200)}),t.find("#ccc-toggle *").click(function(t){t.preventDefault(),jQuery("#cccwr .ccc-toggle-shadow").click()}),this._setModel!=this.MODEL_INFO||this.getDNT()?this._setModel!=this.MODEL_IMPLICIT||this.getDNT()?(this._setModel==this.MODEL_EXPLICIT||this.getDNT())&&(i.html('<a href="#" class="ccc-rd">'+this.options.t.off+'</a><a href="#" class="ccc-gr">'+this.options.t.on+"</a>"),this.initToggleButton(t,e,i)):(i.html('<a href="#" class="ccc-gr">'+this.options.t.off+'</a><a href="#" class="ccc-rd">'+this.options.t.on+"</a>"),this.initToggleButton(t,e,i)):(i.html('<a href="#" class="ccc-gr">'+this.options.t.ias+'</a><a href="#" class="ccc-or">'+this.options.t.rl+"</a>"),e.click(function(t){var e=jQuery(t.target);return e.hasClass("toggled")?(e.removeClass("toggled"),jQuery("#ccc-toggle div").stop(!0).animate({"margin-left":0},200)):(e.addClass("toggled"),jQuery("#ccc-toggle div").stop(!0).animate({"margin-left":-(ccc_tw+5)},200)),CookieControl.handleExpand(t)})),this.getDNT()&&t.addClass("ccc-dnt"),i.find("a:first-child").addClass("ccc-1st"),this._initDone=!0},initToggleButton:function(t,e,i){this.maySendCookies()||(t.find(".ccc-toggle-shadow").addClass("toggled"),
jQuery("#ccc-toggle div").css("margin-left",-(ccc_tw+5))),e.click(function(t){var e=jQuery(t.target);return e.hasClass("toggled")?(e.removeClass("toggled"),CookieControl.setConsent(!0),i.stop(!0).animate({"margin-left":0},200)):(e.addClass("toggled"),CookieControl.setConsent(!1),i.stop(!0).animate({"margin-left":-(ccc_tw+5)},200)),!1})},initIAS:function(t){this._setModel!=this.MODEL_INFO&&t.find("#ccc-ias2").attr("href","#").text(this.options.t.ias).click(function(t){return CookieControl.handleExpand(t)?jQuery(t.target).text(CookieControl.options.t.rl):jQuery(t.target).text(CookieControl.options.t.ias),t.preventDefault(),!1})},initEventHandlers:function(t,e){e.click(function(t){return t.preventDefault(),CookieControl.handleCookieIcon(t)}),t.find("#cchide-popup").click(function(t){return t.preventDefault(),CookieControl.handleHidePopup(t)}),t.find("#ccc-ias").click(function(t){return t.preventDefault(),CookieControl.handleBarIAS(t)}),t.find(".ccc-fine").click(function(t){return t.preventDefault(),CookieControl.handleClose(t)}),t.find(".ccc-close").click(function(t){return t.preventDefault(),CookieControl.handleXButton(t)}),t.find(".ccc-expand").text(this.options.t.rm).click(function(t){return t.preventDefault(),CookieControl.handleExpand(t)}),t.find(".ccc-widget").mouseover(function(){CookieControl.stopAutohide(),CookieControl.getCookie(CookieControl.options.cookieName)||this._setModel==this.MODEL_EXPLICIT||(CookieControl.setCookie(CookieControl.options.cookieName,"no"),CookieControl.cookiesNotAllowedEvent())}).mouseout(function(){CookieControl.scheduleAutohide()})},workarounds:function(){this.options.shape&&(this.options.style=this.options.shape,delete this.options.shape),0!==this.options.style.indexOf("ccc-")&&(this.options.style="ccc-"+this.options.style),0!==this.options.theme.indexOf("ccc-")&&(this.options.theme="ccc-"+this.options.theme),0!==this.options.position.indexOf("ccc-")&&(this.options.position="ccc-"+this.options.position),this.options.policyVersion=this.options.policyVersion||this.options.policyDate||"","function"!=typeof String.prototype.trim&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")})},initPersistentState:function(){if(!this.state){var t=this.getCookie(this.options.cookieName);!t||t.indexOf(":")<0?this.state={}:this.state=this.decodeCookie(t)}},policyUpdated:function(){return decodeURI(this.getState("pv",""))!=this.options.policyVersion||decodeURI(this.getState("cm",""))!=this._setModel},setPolicyVersion:function(){this.setState("pv",this.options.policyVersion),this.setState("cm",this._setModel)},resetOnUpdatedPolicy:function(){this.policyUpdated()&&this.reset()},setModel:function(t){if(this._setModel)return void alert("Civic Cookie Control: the consent model can only be set once.");if("string"==typeof t)this._setModel=t;else if("object"==typeof t)if(this.isFP())this._setModel=CookieControl.MODEL_EXPLICIT;else{var e=civicLicense.geo.country,i=civicLicense.geo.countryName;this._setModel=t[e]?t[e]:t[i],this._setModel||(this._setModel=t["default"]),this._setModel||(this._setModel=CookieControl.MODEL_EXPLICIT)}},setTheme:function(t){return this.options.theme=t,jQuery("#cccwr, #ccc-icon, body").removeClass([this.THEME_LIGHT,this.THEME_DARK].join(" ")).addClass(t)},setStyle:function(t){if(t===this.STYLE_BAR){if(this.isFP())return void alert("Cookie Control: STYLE_BAR is not available in the free version of Cookie Control.");jQuery("#cccwr .ccc-ci").removeClass("ccc-vis").css("height","100%").css("visibility","hidden"),jQuery("#cccwr .ccc-c").hide()}else jQuery("#cccwr .ccc-ci").removeClass("ccc-vis").css("height","100%").css("visibility","visible");return this.options.style=t,jQuery("#cccwr, #ccc-icon, body").removeClass([this.STYLE_TRIANGLE,this.STYLE_SQUARE,this.STYLE_DIAMOND,this.STYLE_BAR].join(" ").replace("."," ")).addClass(t)},setPosition:function(t){return this.options.position=t,jQuery("#cccwr, #ccc-icon, body").removeClass([this.POS_LEFT,this.POS_RIGHT,this.POS_TOP,this.POS_BOTTOM].join(" ")).addClass(t)},initialDisplay:function(){var t=jQuery("#cccwr #ccc-icon");if(this._displayed===!0)return void t.show();if(this._displayed=!0,this.options.style==this.STYLE_BAR)this.options.position==this.POS_TOP?(jQuery("#cccwr, #cccwrpad, #cccwr .ccc-widget").css("display","block"),jQuery("#cccwr").css("top","-50px").css("opacity",0).animate({top:"+=50",opacity:1},this.options.initialFadeSpeed,function(){jQuery("#cccwr").css("top","")}),jQuery("#cccwrpad").css("height",0).animate({height:"+=50"},this.options.initialFadeSpeed,function(){jQuery("#cccwrpad").css("height",""),CookieControl.shouldOpen()&&CookieControl.popUpWithAutohide()})):(jQuery("#cccwr, #cccwrpad, #cccwr .ccc-widget").css("display","block"),jQuery("#cccwr").css("bottom","-60px").css("opacity",0).animate({bottom:"+=60",opacity:1},this.options.initialFadeSpeed,function(){jQuery("#cccwr").css("bottom",""),CookieControl.shouldOpen()&&CookieControl.popUpWithAutohide()}));else if(this.shouldOpen()){var e=jQuery("#cccwr .ccc-widget");e.css("opacity","0").css("display","block").css("visibility","visible");var i=e.position().left;this.options.position==this.POS_LEFT?(e.css("left","0px"),t.css("opacity",0).show().animate({opacity:1},this.options.initialFadeSpeed),e.animate({opacity:1,left:i},this.options.initialFadeSpeed,function(){e.css("left","")})):(e.css("left",jQuery(window).width()+"px"),t.css("opacity",0).show().animate({opacity:1},this.options.initialFadeSpeed),e.animate({opacity:1,left:i},this.options.initialFadeSpeed,function(){e.css("left","")}))}else t.css("opacity","0").show().animate({opacity:1},this.options.initialFadeSpeed)},popUp:function(t){return this._initDone&&this.initialDisplay(),this.stopAutohide(),this.options.style!==this.STYLE_BAR?0===t?jQuery("#cccwr .ccc-widget").stop(!0,!0).show():jQuery("#cccwr .ccc-widget").stop(!0,!0).fadeIn(this.options.clickFadeSpeed):(this._barRollShow(jQuery("#cccwr .ccc-ci").stop(!0,!0)),jQuery("#ccc-ias span, #ccc-ias2 span").text(this.options.t.rl),void this.setState("open",!0))},popDown:function(t){this.stopAutohide(),this.options.style===this.STYLE_BAR?this._barRollHide(jQuery("#cccwr .ccc-ci").stop(!0,!0)):jQuery("#cccwr .ccc-widget").stop(!0,!0).fadeOut(t),jQuery("#ccc-ias span, #ccc-ias2 span").text(this.options.t.ias),this.setState("open",!1)},_barRollShow:function(t,e){if(t.hasClass("ccc-vis"))return this.fire(e),!1;t.parent(".ccc-c").show(),this._iasHeight||(this._iasHeight=t.height());var i=this._iasHeight,s=jQuery("#cccwr.ccc-bar .ccc-widget").outerHeight(),n=i+s+40,o=jQuery(window).height();return n>o&&jQuery(".ccc-c").addClass("scroll-clip"),t.height(0).css("visibility","visible").animate({height:this._iasHeight},this.options.clickFadeSpeed,function(){t.addClass("ccc-vis"),CookieControl.fire(e)}),!1},_barRollHide:function(t,e){if(!t.hasClass("ccc-vis"))return this.fire(e),!1;var i=this.options.clickFadeSpeed;return this._iasHeight=t.height(),t.animate({height:0},i,function(){t.removeClass("ccc-vis").css("visibility","hidden"),jQuery("#cccwrpad").animate({height:0},i,function(){}),CookieControl.fire(e),t.parent(".ccc-c").hide()}),!1},_closeWidget:function(t,e){var i=jQuery("body");return i.hasClass("ccc-persist")?(jQuery(".ccc-widget").fadeOut(t),!1):(jQuery("#ccc-icon, #cccwr .ccc-widget").fadeOut(t),void(e&&this.setState("hidden",!0)))},close:function(t){this._closeWidget(t,!1)},closeAndHide:function(t){this._closeWidget(t,!0)},popUpWithAutohide:function(t){this.popUp(t),this.scheduleAutohide()},disableAutohide:function(){this.stopAutohide(),this.options.autoHide=-Math.abs(this.options.autoHide)},enableAutohide:function(){this.options.autoHide=Math.abs(this.options.autoHide),this.scheduleAutohide()},stopAutohide:function(){this._to&&(window.clearTimeout(this._to),delete this._to)},scheduleAutohide:function(){this.options.autoHide>0&&(this.stopAutohide(),this._to=setTimeout(function(){CookieControl.popDown(CookieControl.options.autoFadeSpeed)},this.options.autoHide))},hideEntireWidget:function(){jQuery("#cccwr").fadeOut(CookieControl.options.fadeInSpeed),this.stopAutohide()},countryHasCookieLaw:function(){if(this.options.countries&&"object"==typeof civicLicense&&"object"==typeof civicLicense.geo&&civicLicense.geo.country){var t=civicLicense.geo.country,e=civicLicense.geo.countryName;return this.geo=civicLicense.geo,"string"==typeof this.options.countries&&(this.options.countries=this.options.countries.split(/\s*,\s*/)),jQuery.inArray(t,this.options.countries)>=0||jQuery.inArray(e,this.options.countries)>=0}return!0},getGeo:function(){if(!this.isFP()&&"object"==typeof civicLicense&&"object"==typeof civicLicense.geo){var t=civicLicense.geo;return delete t.success,civicLicense.geo}},checkShowIconState:function(){var t=CookieControl;return"N"===jQuery(".ccc-widget input[name=showicon]:checked").val()?(this.setCookie(t.options.iconStatusCookieName,"no"),!0):(this.setCookie(t.options.iconStatusCookieName,"yes"),!1)},setCookie:function(t,e,i){var s;i=i||{},"expiry"in i?"number"==typeof i.expiry?s=new Date((new Date).getTime()+86400*i.expiry*1e3).toGMTString():"string"==typeof i.expiry?s=i.expiry:"object"==typeof i.expiry&&"toGMTString"in i.expiry&&(s=i.expiry.toGMTString()):s=new Date((new Date).getTime()+62208e6).toGMTString();var n="";(this.options.subdomains!==!0||"domain"in i)&&(n=";domain="+(i.domain||this.options.cookieDomain));var o=[];"object"==typeof e?(jQuery.each(e,function(t,e){o.push('"'+encodeURIComponent(t)+'":"'+encodeURIComponent(e)+'"')}),o="{"+o.join(",")+"}"):o=e;var r=t+"="+escape(o)+";expires="+s+";path="+this.options.cookiePath+n;document.cookie=r},hasCookie:function(t){return null!==document.cookie.match(new RegExp("(^|;s*)"+t+"s*="))},getCookie:function(t){var e=!1;return jQuery.each(document.cookie.split(/\s*;\s*/),function(i,s){var n=s.split(/\s*=\s*/);if(n[0].replace(/^\s+|\s+$/g,"")===t)return e=unescape(n[1]),!1}),"undefined"==typeof e&&(e=!1),e},decodeCookie:function(t){try{return jQuery.parseJSON(t)}catch(e){return{}}},getAllCookies:function(){var t={};return document.cookie.trim()?(jQuery.each(document.cookie.split(/\s*;\s*/),function(e,i){var s=i.split(/\s*=\s*/);s&&(t[s[0]]=unescape(s[1]))}),t):t},delCookie:function(t){var e=this.options.cookieDomain.split(".");for(document.cookie=t+"=;expires=Thu, 01-Jan-1970 00:00:01 GMT;",document.cookie=t+"=;path="+this.options.cookiePath+";expires=Thu, 01-Jan-1970 00:00:01 GMT;";e.length&&(d=e.join("."),document.cookie=t+"=;path="+this.options.cookiePath+";expires=Thu, 01-Jan-1970 00:00:01 GMT;domain="+d,document.cookie=t+"=;path="+this.options.cookiePath+";expires=Thu, 01-Jan-1970 00:00:01 GMT;domain=."+d,this.options.subdomains);)e.shift();document.cookie=t+"=;path="+this.options.cookiePath+";expires=Thu, 01-Jan-1970 00:00:01 GMT;"},delAllCookies:function(t){"undefined"==typeof t&&(t=this.options.protectedCookies),jQuery.each(this.getAllCookies(),function(e,i){jQuery.inArray(e,t)<0&&CookieControl.delCookie(e)}),window.localStorage&&localStorage.clear()},setState:function(t,e){this.state||this.initPersistentState(),"boolean"==typeof e?("true"==e||"on"==e||"1"==e||"yes"==e?e=!0:"false"!=e&&"off"!=e&&"0"!=e&&"no"!=e||(e=!1),this.state[t]=e?"yes":"no"):this.state[t]=e;var i=this.maySendCookies()?this.options.cookieExpiry:this.options.blockedCookieExpiry;this.setCookie(this.options.cookieName,this.state,{expiry:i}),"boolean"==typeof e&&jQuery("#ccc-state, body").toggleClass("ccc-"+t,e)},getState:function(t,e){return this.state||this.initPersistentState(),void 0===this.state[t]?e:this.state[t]},shouldOpen:function(){return"yes"!==this.getState("explicitly")&&!(window.innerWidth<=760)&&this.options.startOpen&&!this.closed()},setConsent:function(t){CookieControl.setState("consented",t),CookieControl.setState("explicitly",!0),jQuery("#ccc-state, body").toggleClass("ccc-cookies-blocked",!t),t?CookieControl.acceptEvent():(CookieControl.rejectEvent(),this.options.autoDelete&&this.delAllCookies())},getDNT:function(){return"yes"==navigator.doNotTrack||"1"==navigator.doNotTrack||"1"==navigator.msDoNotTrack},fire:function(t){return"function"==typeof t&&t(CookieControl)},acceptEvent:function(t){return this.fire(this.options.onAccept),t},rejectEvent:function(t){return this.fire(this.options.onReject),t},readyEvent:function(t){return this.fire(this.options.onReady),t},cookiesNotAllowedEvent:function(t){return this.fire(this.options.onCookiesNotAllowed),t},cookiesAllowedEvent:function(t){return this.fire(this.options.onCookiesAllowed),t},handleCookieIcon:function(t){jQuery("#cccwr .ccc-ci").css("visibility","visible"),jQuery("#cccwr .ccc-widget").stop(!0,!0).fadeToggle(CookieControl.options.clickFadeSpeed),this.setState("open",this.closed()),this.stopAutohide(),this.disableAutohide()},handleXButton:function(t){return this.options.style==this.STYLE_BAR?(jQuery(".ccc-ci.ccc-vis").length>0&&jQuery("#ccc-ias").click(),this.hideBar(t)):this.options.onlyHideIfConsented||this.options.alwaysShow?this.handleCookieIcon(t):this.handleClose(t)},hideBar:function(t){var e=jQuery("#cccwr.ccc-bar"),i=e.height();this.options.position==CookieControl.POS_TOP?(e.animate({top:-i,opacity:0},400),jQuery("#cccwrpad").animate({height:0},400,function(){})):this.options.position==CookieControl.POS_BOTTOM&&e.animate({bottom:-i,opacity:0},400),this.options.preserveConsentOnHide||CookieControl.setConsent(!0),this.setState("hidden",!0)},handleHidePopup:function(t){var e=jQuery(t.target).attr("checked");e===!0||"checked"==e?(this.setCookie("ccNoPopup","no"),jQuery("#cccwr .ccc-widget").fadeOut(this.options.clickFadeSpeed),this.stopAutohide()):c.setCookie("ccNoPopup","",!0)},handleBarIAS:function(t){var e=jQuery("#cccwr .ccc-ci").stop(!0,!0);return this.stopAutohide(),e.hasClass("ccc-vis")?this.popDown():this.popUp()},handleClose:function(t){return this.closeAndHide(CookieControl.options.clickFadeSpeed),!1},handleExpand:function(t){var e=jQuery(this.target);return"none"===jQuery(".ccc-expanded").css("display")?(jQuery("#ccc-ias2").addClass("active"),jQuery(".ccc-expanded").slideDown(this.options.expandSpeed,function(){e&&e.text(CookieControl.options.t.rl),CookieControl.disableAutohide()}),!0):(jQuery("#ccc-ias2").removeClass("active"),jQuery(".ccc-expanded").slideUp(this.options.expandSpeed,function(){e&&e.text(CookieControl.options.t.rm)}),CookieControl.enableAutohide(),!1)}},civicLicense={};!function(t,e,i){var s=function(){var s=e("#cookie-control-config").val();if(s&&(s=JSON.parse(s),s.ApiKey)){var n={title:s.Title||"",c:s.Close||""};i({t:n,position:t.CookieControl.POS_BOTTOM,style:t.CookieControl.STYLE_BAR,theme:t.CookieControl.THEME_LIGHT,startOpen:!0,autoHide:7e3,subdomains:!0,protectedCookies:[],apiKey:s.ApiKey,product:t.CookieControl.PROD_PAID_MULTISITE,consentModel:t.CookieControl.MODEL_INFO,hex:{branding:"#0083A9",buttons:"#0083A9",links:"#484848"},countries:""})}};e(document).ready(function(){s()})}(window,window.jQuery,window.cookieControl),function(t,e){function i(e){!e&&t.filterhook&&t.filterhook(t.filter.getFilters())}var s=function(s){var n=this;n.$elm=s,this.search(),e(document).click(function(){var t=e(this).find(".filter-form-item");e(window).width()>=768&&e(".filter-options").length>0&&(n.$elm.find(".filter-label").removeClass("open"),n.$elm.find(".filter-options").hide()),t.show()}),n.$elm.find(".filter-options").on("click",function(t){t.stopPropagation()}),n.$elm.find(".fullTextSearchBox").autocomplete({source:function(t,i){$scope=e(e(this.element).data("index").split("_")).last()[0],$scope&&$scope.endsWith("s")&&($scope=$scope.substr(0,$scope.length-1)),e.ajax({url:"/api/"+$scope+"items/autocomplete",dataType:"json",data:{term:t.term,index:e(this.element).data("index"),limit:5},success:function(t){var s=e.map(t.ws,function(t){return{label:t.w,value:t.w}});i(s)}})},minLength:3,delay:0,select:function(t,s){e(this).val(s.item.value),i()}}),n.$elm.find(".fullTextSearchBox").on("enterKey",function(t){i()}),n.$elm.find(".fullTextSearchBox").keyup(function(t){13===t.keyCode&&e(this).trigger("enterKey")}),n.$elm.find(".filter-label").click(function(t){e(window).width()>=768&&t.stopPropagation(),e(this).hasClass("open")?(e(this).removeClass("open"),e(window).width()>=768?e(this).next().hide():e(this).next().slideUp(300)):(e(".filter-label").removeClass("open"),e(this).addClass("open"),e(window).width()>=768?(e(".filter-options").hide(),e(this).next().show()):(e(".filter-options").slideUp(300),e(this).next().slideDown(300)))});var o=this.$elm.find(".filter-options");o.each(function(){var i=e(this),s=i.find("> ul input[type=checkbox]");s.each(function(){var i=e(this),s=i.attr("id"),n=i.closest(".filter-options").find(".childFilters[data-id='"+s+"']");if(n.length>0)var o=n.find("input[type=checkbox]");i.on("change",function(){var i=e(this);n.length>0&&(i.is(":checked")?(o.prop("checked",!0),o.each(function(){var i=e(this).val();t.filter.addFilteredItem(i,null,e(this).attr("id"))})):(o.prop("checked",!1),o.each(function(){t.filter.removeFilteredItem(e(this).val())})))})});var n=i.find(".childFilters > ul input[type=checkbox]");n.each(function(){var i=e(this),s=i.attr("id"),n=i.closest(".childFilters").find(".grandChildFilters[data-id='"+s+"']");if(n.length>0)var o=n.find("input[type=checkbox]");i.on("change",function(){var i=e(this);n.length>0&&(i.is(":checked")?(o.prop("checked",!0),o.each(function(){var i=e(this).val();t.filter.addFilteredItem(i,null,e(this).attr("id"))})):(o.prop("checked",!1),o.each(function(){t.filter.removeFilteredItem(e(this).val())})))})})}),this.$elm.find("input[type=checkbox]").change(function(){var t=e(this).parent().find("ul li input[type=checkbox]");e(this).is(":checked")?n.addFilteredItem(e(this).val(),null,e(this).attr("id")):(n.removeFilteredItem(e(this).val()),t.each(function(){n.removeFilteredItem(e(this).val())}));var s=e(this).parents();if(s.hasClass("childFilters")){var o=e(this).parents(".childFilters").first(),r=o.data("id"),a=o.find("input[type=checkbox]:not(:checked)");0==a.length?(e("input[type=checkbox]#"+r).prop("checked",!0),n.addFilteredItem(e("input[type=checkbox]#"+r).val(),null,r)):(e("input[type=checkbox]#"+r).prop("checked",!1),e("div.filtered-item[data-id="+r+"]").remove(),i())}if(s.hasClass("grandChildFilters")){var o=e(this).parents(".grandChildFilters").first(),r=o.data("id"),a=o.find("input[type=checkbox]:not(:checked)");0===a.length?(e("input[type=checkbox]#"+r).prop("checked",!0),n.addFilteredItem(e("input[type=checkbox]#"+r).val(),null,r)):(e("input[type=checkbox]#"+r).prop("checked",!1),e("div.filtered-item[data-id="+r+"]").remove(),i())}}),e(document).on("click",".filtered-item",function(t){t.preventDefault();var s=this;id=e(s).data("id"),correspondingCheckbox=e("input[type=checkbox][id="+id+"]"),correspondingCheckbox.prop("checked")&&(correspondingCheckbox.prop("checked",!1),correspondingCheckbox.trigger("change"),e(s).remove()),i()})};s.prototype.search=function(){var t=e(".filter-options");t.each(function(){var t=e(this).find("input[type=search]"),i=e(this).find(".filter-form-item");t.on("focus",function(){i.hide(),e(".childFilters").css("color","lightgray")}),t.bind("focus keyup",function(){var t=e(this).val(),i=e("input[type=checkbox]");i.each(function(){var i=e(this),s=i.val();~s.toLowerCase().indexOf(t.toLowerCase())?i.parents().first(".filter-form-item").show():i.parents().first(".filter-form-item").hide()})})})},s.prototype.addFilteredItem=function(t,s,n){var o=[];if(e(".filter-name").each(function(){o.push(e(this).text())}),0===o.length)e(".filtered-items").append("<div class='filtered-item' data-id="+n+"><span class='filter-name'>"+t+"</span><span class='filter-close'></span></div>"),i(s);else{var r=e.inArray(t,o);r===-1&&(e(".filtered-items").append("<div class='filtered-item' data-id="+n+"><span class='filter-name'>"+t+"</span><span class='filter-close'></span></div>"),i(s))}i(s)},s.prototype.removeFilteredItem=function(t,s){e(".filtered-items .filtered-item").each(function(i,s){t===e(s).find(".filter-name").text()&&e(s).remove()}),i(s)},s.prototype.getFilters=function(){var t={};return e(".filter-options").each(function(){var i=e(this).data("id"),s=[];e(this).find("input[type='checkbox'][name='"+i+"']:checked").each(function(){s.push(this.id)}),s.length>0&&(t[i]=s.join())}),void 0!==e(".fullTextSearchBox").val()&&e(".fullTextSearchBox").val().length>0&&(t.text=e(".fullTextSearchBox").val()),JSON.stringify(t)},e(document).ready(function(){e(".filter-wrapper").length>0&&(t.filter=new s(e(".filter-wrapper")),t.filter.$elm.find("li.filter-form-item > input[type=checkbox]:checked").each(function(i,s){t.filter.addFilteredItem(e(s).val(),!0,e(s).attr("id"))}),e(window).trigger("filter-ready"))})}(window,window.jQuery),function(t,e){var i=function(t){this.init(t)};i.prototype.init=function(i){function s(){var t={filters:o(),sortOption:e("#sorter").find(":selected").val()};e.ajax({url:"/api/jobitems",type:"POST",dataType:"json",data:t}).done(function(t){i.jobs=t.jobs,e(".job-overview .load-more").data("page-size",t.pageSize),e(".filtered-result_amount").html("<span class='count'></span> "+t.countText),e(".job-container").find(".job-item:not('.hidden')").remove(),e(".filtered-result_amount > .count").text(i.jobs.length),e(".job-overview .load-more").data("page",0),n(1)}),e(".job-overview").on("click",".load-more",function(){var t=e(this);n(parseInt(t.data("page"))+1)})}function n(t){var s=e(".job-overview .load-more"),n=i.jobs,o=s.data("page-size"),a=n.length,l=Math.ceil(a/o),c=s.data("page");if(l>=t){var d=n.slice(o*c,o*t);r(d),s.data("page",t),t>=l?s.hide():s.show()}}function o(){var t=[];if(e(".filter-options").each(function(){var i=e(this).data("id"),s=[];if(e(this).find("input[type='checkbox'][name='"+i+"']:checked").each(function(){s.push(this.id)}),s.length>0){var n={key:i,value:s.join()};t.push(n)}}),void 0!==e(".fullTextSearchBox").val()&&e(".fullTextSearchBox").val().length>0){var i={key:"text",value:e(".fullTextSearchBox").val()};t.push(i)}return t}function r(t){var i=e(".job-container"),s=i.parent().children(".job-item").first(),n=e.map(t,function(t){var i=s.clone();i.removeClass("hidden"),i.find("a").text(e("<div/>").html(t.title).text()),i.find("a").attr("href",t.urlLink),t.isImported&&i.find("a").attr("target","_blank");var n=t.location;n=a(n)&&a(t.region)?n+", "+t.region:a(t.region)?t.region:"";var o=t.organisation;return o=a(o)&&a(n)?o+" - "+n:a(n)?n:"",i.find("p").text(o),i});i.append(n)}function a(t){return"undefined"!=typeof t&&"undefined"!==t&&null!==t&&t.length>0}i.length>0&&(e("#sorter").on("change",s),t.filterhook=s,e(document).ready(function(){e("section.filter").length?e(window).on("filter-ready",s()):s()}))},t.jobOverview=new i(e(".job-overview"))}(window,window.jQuery),function(t,e){e(document).ready(function(){e(".directory__header").each(function(){e(this).click(function(){e(this).toggleClass("open"),e(this).next(".directory__content").slideToggle(500),e(this).hasClass("open")?(e(this).find("h3").find("i").removeClass("glyphicon-chevron-down"),e(this).find("h3").find("i").addClass("glyphicon-chevron-up")):(e(this).find("h3").find("i").removeClass("glyphicon-chevron-up"),e(this).find("h3").find("i").addClass("glyphicon-chevron-down"))})}),e("[data-toggle='tooltip']").tooltip();var t=e(window).width(),i=767;t<=i&&e(".directory__header").each(function(){e(this).toggleClass("open"),e(this).next(".directory__content").slideToggle(0),e(this).find("h3").find("i").removeClass("glyphicon-chevron-up").addClass("glyphicon-chevron-down")})})}(window,window.jQuery),function(t,e){var i=function(t){this.init(t)};i.prototype.init=function(t){t.length>0&&t.on("click",".load-more",function(i){i.preventDefault(),t.find(".news-row").removeClass("hidden"),e(this).addClass("hidden")})},t.highlightedNews=new i(e(".highlighted-news"))}(window,window.jQuery),function(t,e){var i=function(t){this.init(t)};i.prototype.init=function(t){function i(){function t(){var t=e(".news-overview .load-more"),i=e(".news-overview"),n=i.hasClass("press");e.ajax({dataType:"json",url:"/api/newsitems",data:{skip:e(".news-container .news-item").length-1,showPressItemsOnly:n},beforeSend:function(){t.addClass("loading")}}).done(function(e){t.removeClass("loading"),e.showLoadMore?t.show():t.hide(),s(e.newsList)})}e(".news-overview").on("click",".load-more",t),t()}function s(t){var i=e(".news-container"),s=i.children(".news-item").first(),n=e.map(t,function(t){var e=s.clone();return e.removeClass("hidden"),e.find("a").attr("href",t.urlLink),e.find(".grid-bg").css("background-image","url('"+t.imageUrl+"')"),e.find("h3 > span").text(t.title),e.find("p > span.bold").text(t.publish),e});i.append(n)}t.length>0&&e(document).ready(function(){i()})},t.newsOverview=new i(e(".news-overview"))}(window,window.jQuery),MarkerClusterer.prototype.MARKER_CLUSTER_IMAGE_PATH_="../images/m",MarkerClusterer.prototype.MARKER_CLUSTER_IMAGE_EXTENSION_="png",MarkerClusterer.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])},MarkerClusterer.prototype.onAdd=function(){this.setReady_(!0)},MarkerClusterer.prototype.draw=function(){},MarkerClusterer.prototype.setupStyles_=function(){if(!this.styles_.length)for(var t,e=0;t=this.sizes[e];e++)this.styles_.push({url:this.imagePath_+(e+1)+"."+this.imageExtension_,height:t,width:t})},MarkerClusterer.prototype.fitMapToMarkers=function(){for(var t,e=this.getMarkers(),i=new google.maps.LatLngBounds,s=0;t=e[s];s++)i.extend(t.getPosition());this.map_.fitBounds(i)},MarkerClusterer.prototype.setStyles=function(t){this.styles_=t},MarkerClusterer.prototype.getStyles=function(){return this.styles_},MarkerClusterer.prototype.isZoomOnClick=function(){return this.zoomOnClick_},MarkerClusterer.prototype.isAverageCenter=function(){return this.averageCenter_},MarkerClusterer.prototype.getMarkers=function(){return this.markers_},MarkerClusterer.prototype.getTotalMarkers=function(){return this.markers_.length},MarkerClusterer.prototype.setMaxZoom=function(t){this.maxZoom_=t},MarkerClusterer.prototype.getMaxZoom=function(){return this.maxZoom_},MarkerClusterer.prototype.calculator_=function(t,e){for(var i=0,s=t.length,n=s;0!==n;)n=parseInt(n/10,10),i++;return i=Math.min(i,e),{text:s,index:i}},MarkerClusterer.prototype.setCalculator=function(t){this.calculator_=t},MarkerClusterer.prototype.getCalculator=function(){return this.calculator_},MarkerClusterer.prototype.addMarkers=function(t,e){for(var i,s=0;i=t[s];s++)this.pushMarkerTo_(i);e||this.redraw()},MarkerClusterer.prototype.pushMarkerTo_=function(t){if(t.isAdded=!1,t.draggable){var e=this;google.maps.event.addListener(t,"dragend",function(){t.isAdded=!1,e.repaint()})}this.markers_.push(t)},MarkerClusterer.prototype.addMarker=function(t,e){this.pushMarkerTo_(t),e||this.redraw()},MarkerClusterer.prototype.removeMarker_=function(t){var e=-1;if(this.markers_.indexOf)e=this.markers_.indexOf(t);else for(var i,s=0;i=this.markers_[s];s++)if(i==t){e=s;break}return e!=-1&&(t.setMap(null),this.markers_.splice(e,1),!0)},MarkerClusterer.prototype.removeMarker=function(t,e){var i=this.removeMarker_(t);return!(e||!i)&&(this.resetViewport(),this.redraw(),!0)},MarkerClusterer.prototype.removeMarkers=function(t,e){for(var i,s=!1,n=0;i=t[n];n++){var o=this.removeMarker_(i);s=s||o}if(!e&&s)return this.resetViewport(),this.redraw(),!0},MarkerClusterer.prototype.setReady_=function(t){this.ready_||(this.ready_=t,this.createClusters_())},MarkerClusterer.prototype.getTotalClusters=function(){return this.clusters_.length},MarkerClusterer.prototype.getMap=function(){return this.map_},MarkerClusterer.prototype.setMap=function(t){this.map_=t},MarkerClusterer.prototype.getGridSize=function(){return this.gridSize_},MarkerClusterer.prototype.setGridSize=function(t){this.gridSize_=t},MarkerClusterer.prototype.getMinClusterSize=function(){return this.minClusterSize_},MarkerClusterer.prototype.setMinClusterSize=function(t){this.minClusterSize_=t},MarkerClusterer.prototype.getExtendedBounds=function(t){var e=this.getProjection(),i=new google.maps.LatLng(t.getNorthEast().lat(),t.getNorthEast().lng()),s=new google.maps.LatLng(t.getSouthWest().lat(),t.getSouthWest().lng()),n=e.fromLatLngToDivPixel(i);n.x+=this.gridSize_,n.y-=this.gridSize_;var o=e.fromLatLngToDivPixel(s);o.x-=this.gridSize_,o.y+=this.gridSize_;var r=e.fromDivPixelToLatLng(n),a=e.fromDivPixelToLatLng(o);return t.extend(r),t.extend(a),t},MarkerClusterer.prototype.isMarkerInBounds_=function(t,e){return e.contains(t.getPosition())},MarkerClusterer.prototype.clearMarkers=function(){this.resetViewport(!0),this.markers_=[]},MarkerClusterer.prototype.resetViewport=function(t){for(var e,i=0;e=this.clusters_[i];i++)e.remove();for(var s,i=0;s=this.markers_[i];i++)s.isAdded=!1,t&&s.setMap(null);this.clusters_=[]},MarkerClusterer.prototype.repaint=function(){var t=this.clusters_.slice();this.clusters_.length=0,this.resetViewport(),this.redraw(),window.setTimeout(function(){for(var e,i=0;e=t[i];i++)e.remove()},0)},MarkerClusterer.prototype.redraw=function(){this.createClusters_()},MarkerClusterer.prototype.distanceBetweenPoints_=function(t,e){if(!t||!e)return 0;var i=6371,s=(e.lat()-t.lat())*Math.PI/180,n=(e.lng()-t.lng())*Math.PI/180,o=Math.sin(s/2)*Math.sin(s/2)+Math.cos(t.lat()*Math.PI/180)*Math.cos(e.lat()*Math.PI/180)*Math.sin(n/2)*Math.sin(n/2),r=2*Math.atan2(Math.sqrt(o),Math.sqrt(1-o)),a=i*r;return a},MarkerClusterer.prototype.addToClosestCluster_=function(t){for(var e,i=4e4,s=null,n=(t.getPosition(),0);e=this.clusters_[n];n++){var o=e.getCenter();if(o){var r=this.distanceBetweenPoints_(o,t.getPosition());r<i&&(i=r,s=e)}}if(s&&s.isMarkerInClusterBounds(t))s.addMarker(t);else{var e=new Cluster(this);e.addMarker(t),this.clusters_.push(e)}},MarkerClusterer.prototype.createClusters_=function(){if(this.ready_)for(var t,e=new google.maps.LatLngBounds(this.map_.getBounds().getSouthWest(),this.map_.getBounds().getNorthEast()),i=this.getExtendedBounds(e),s=0;t=this.markers_[s];s++)!t.isAdded&&this.isMarkerInBounds_(t,i)&&this.addToClosestCluster_(t)},Cluster.prototype.isMarkerAlreadyAdded=function(t){if(this.markers_.indexOf)return this.markers_.indexOf(t)!=-1;for(var e,i=0;e=this.markers_[i];i++)if(e==t)return!0;return!1},Cluster.prototype.addMarker=function(t){if(this.isMarkerAlreadyAdded(t))return!1;if(this.center_){if(this.averageCenter_){var e=this.markers_.length+1,i=(this.center_.lat()*(e-1)+t.getPosition().lat())/e,s=(this.center_.lng()*(e-1)+t.getPosition().lng())/e;this.center_=new google.maps.LatLng(i,s),this.calculateBounds_()}}else this.center_=t.getPosition(),this.calculateBounds_();t.isAdded=!0,this.markers_.push(t);var n=this.markers_.length;if(n<this.minClusterSize_&&t.getMap()!=this.map_&&t.setMap(this.map_),n==this.minClusterSize_)for(var o=0;o<n;o++)this.markers_[o].setMap(null);return n>=this.minClusterSize_&&t.setMap(null),this.updateIcon(),!0},Cluster.prototype.getMarkerClusterer=function(){return this.markerClusterer_},Cluster.prototype.getBounds=function(){for(var t,e=new google.maps.LatLngBounds(this.center_,this.center_),i=this.getMarkers(),s=0;t=i[s];s++)e.extend(t.getPosition());return e},Cluster.prototype.remove=function(){this.clusterIcon_.remove(),this.markers_.length=0,delete this.markers_},Cluster.prototype.getSize=function(){return this.markers_.length},Cluster.prototype.getMarkers=function(){return this.markers_},Cluster.prototype.getCenter=function(){return this.center_},Cluster.prototype.calculateBounds_=function(){var t=new google.maps.LatLngBounds(this.center_,this.center_);this.bounds_=this.markerClusterer_.getExtendedBounds(t)},Cluster.prototype.isMarkerInClusterBounds=function(t){return this.bounds_.contains(t.getPosition())},Cluster.prototype.getMap=function(){return this.map_},Cluster.prototype.updateIcon=function(){var t=this.map_.getZoom(),e=this.markerClusterer_.getMaxZoom();if(e&&t>e)for(var i,s=0;i=this.markers_[s];s++)i.setMap(this.map_);else{if(this.markers_.length<this.minClusterSize_)return void this.clusterIcon_.hide();var n=this.markerClusterer_.getStyles().length,o=this.markerClusterer_.getCalculator()(this.markers_,n);
this.clusterIcon_.setCenter(this.center_),this.clusterIcon_.setSums(o),this.clusterIcon_.show()}},ClusterIcon.prototype.triggerClusterClick=function(t){var e=this.cluster_.getMarkerClusterer();google.maps.event.trigger(e,"clusterclick",this.cluster_,t),e.isZoomOnClick()&&this.map_.fitBounds(this.cluster_.getBounds())},ClusterIcon.prototype.onAdd=function(){if(this.div_=document.createElement("DIV"),this.visible_){var t=this.getPosFromLatLng_(this.center_);this.div_.style.cssText=this.createCss(t),this.div_.innerHTML=this.sums_.text}var e=this.getPanes();e.overlayMouseTarget.appendChild(this.div_);var i=this,s=!1;google.maps.event.addDomListener(this.div_,"click",function(t){s||i.triggerClusterClick(t)}),google.maps.event.addDomListener(this.div_,"mousedown",function(){s=!1}),google.maps.event.addDomListener(this.div_,"mousemove",function(){s=!0})},ClusterIcon.prototype.getPosFromLatLng_=function(t){var e=this.getProjection().fromLatLngToDivPixel(t);return"object"==typeof this.iconAnchor_&&2===this.iconAnchor_.length?(e.x-=this.iconAnchor_[0],e.y-=this.iconAnchor_[1]):(e.x-=parseInt(this.width_/2,10),e.y-=parseInt(this.height_/2,10)),e},ClusterIcon.prototype.draw=function(){if(this.visible_){var t=this.getPosFromLatLng_(this.center_);this.div_.style.top=t.y+"px",this.div_.style.left=t.x+"px"}},ClusterIcon.prototype.hide=function(){this.div_&&(this.div_.style.display="none"),this.visible_=!1},ClusterIcon.prototype.show=function(){if(this.div_){var t=this.getPosFromLatLng_(this.center_);this.div_.style.cssText=this.createCss(t),this.div_.style.display=""}this.visible_=!0},ClusterIcon.prototype.remove=function(){this.setMap(null)},ClusterIcon.prototype.onRemove=function(){this.div_&&this.div_.parentNode&&(this.hide(),this.div_.parentNode.removeChild(this.div_),this.div_=null)},ClusterIcon.prototype.setSums=function(t){this.sums_=t,this.text_=t.text,this.index_=t.index,this.div_&&(this.div_.innerHTML=t.text),this.useStyle()},ClusterIcon.prototype.useStyle=function(){var t=Math.max(0,this.sums_.index-1);t=Math.min(this.styles_.length-1,t);var e=this.styles_[t];this.url_=e.url,this.height_=e.height,this.width_=e.width,this.textColor_=e.textColor,this.anchor_=e.anchor,this.textSize_=e.textSize,this.backgroundPosition_=e.backgroundPosition,this.iconAnchor_=e.iconAnchor},ClusterIcon.prototype.setCenter=function(t){this.center_=t},ClusterIcon.prototype.createCss=function(t){var e=[];e.push("background-image:url("+this.url_+");");var i=this.backgroundPosition_?this.backgroundPosition_:"0 0";e.push("background-position:"+i+";"),"object"==typeof this.anchor_?("number"==typeof this.anchor_[0]&&this.anchor_[0]>0&&this.anchor_[0]<this.height_?e.push("height:"+(this.height_-this.anchor_[0])+"px; padding-top:"+this.anchor_[0]+"px;"):"number"==typeof this.anchor_[0]&&this.anchor_[0]<0&&-this.anchor_[0]<this.height_?e.push("height:"+this.height_+"px; line-height:"+(this.height_+this.anchor_[0])+"px;"):e.push("height:"+this.height_+"px; line-height:"+this.height_+"px;"),"number"==typeof this.anchor_[1]&&this.anchor_[1]>0&&this.anchor_[1]<this.width_?e.push("width:"+(this.width_-this.anchor_[1])+"px; padding-left:"+this.anchor_[1]+"px;"):e.push("width:"+this.width_+"px; text-align:center;")):e.push("height:"+this.height_+"px; line-height:"+this.height_+"px; width:"+this.width_+"px; text-align:center;");var s=this.textColor_?this.textColor_:"black",n=this.textSize_?this.textSize_:11;return e.push("cursor:pointer; top:"+t.y+"px; left:"+t.x+"px; color:"+s+"; position:absolute; font-size:"+n+"px; font-family:Arial,sans-serif; font-weight:bold"),e.join("")},window.MarkerClusterer=MarkerClusterer,MarkerClusterer.prototype.addMarker=MarkerClusterer.prototype.addMarker,MarkerClusterer.prototype.addMarkers=MarkerClusterer.prototype.addMarkers,MarkerClusterer.prototype.clearMarkers=MarkerClusterer.prototype.clearMarkers,MarkerClusterer.prototype.fitMapToMarkers=MarkerClusterer.prototype.fitMapToMarkers,MarkerClusterer.prototype.getCalculator=MarkerClusterer.prototype.getCalculator,MarkerClusterer.prototype.getGridSize=MarkerClusterer.prototype.getGridSize,MarkerClusterer.prototype.getExtendedBounds=MarkerClusterer.prototype.getExtendedBounds,MarkerClusterer.prototype.getMap=MarkerClusterer.prototype.getMap,MarkerClusterer.prototype.getMarkers=MarkerClusterer.prototype.getMarkers,MarkerClusterer.prototype.getMaxZoom=MarkerClusterer.prototype.getMaxZoom,MarkerClusterer.prototype.getStyles=MarkerClusterer.prototype.getStyles,MarkerClusterer.prototype.getTotalClusters=MarkerClusterer.prototype.getTotalClusters,MarkerClusterer.prototype.getTotalMarkers=MarkerClusterer.prototype.getTotalMarkers,MarkerClusterer.prototype.redraw=MarkerClusterer.prototype.redraw,MarkerClusterer.prototype.removeMarker=MarkerClusterer.prototype.removeMarker,MarkerClusterer.prototype.removeMarkers=MarkerClusterer.prototype.removeMarkers,MarkerClusterer.prototype.resetViewport=MarkerClusterer.prototype.resetViewport,MarkerClusterer.prototype.repaint=MarkerClusterer.prototype.repaint,MarkerClusterer.prototype.setCalculator=MarkerClusterer.prototype.setCalculator,MarkerClusterer.prototype.setGridSize=MarkerClusterer.prototype.setGridSize,MarkerClusterer.prototype.setMaxZoom=MarkerClusterer.prototype.setMaxZoom,MarkerClusterer.prototype.onAdd=MarkerClusterer.prototype.onAdd,MarkerClusterer.prototype.draw=MarkerClusterer.prototype.draw,Cluster.prototype.getCenter=Cluster.prototype.getCenter,Cluster.prototype.getSize=Cluster.prototype.getSize,Cluster.prototype.getMarkers=Cluster.prototype.getMarkers,ClusterIcon.prototype.onAdd=ClusterIcon.prototype.onAdd,ClusterIcon.prototype.draw=ClusterIcon.prototype.draw,ClusterIcon.prototype.onRemove=ClusterIcon.prototype.onRemove,function(t,e){var i=function(t){var e=this;e.$elm=t,e.$cont=t.find(".projectsMap__map"),e.$map=e.$cont.find(".map"),e.gmInstance=null,e.userLat=null,e.userLong=null,navigator.geolocation&&navigator.geolocation.getCurrentPosition(function(t){e.userLat=t.coords.latitude,e.userLong=t.coords.longitude}),e.Collapse(e.$elm),e.initMap()};i.prototype.initMap=function(){var t=this,i=t.$cont.attr("data-id");e.ajax({dataType:"json",url:i?"/api/OverviewMap/GetProjects/"+i:"/assets/corporate/data/data.json",data:"",success:function(s){console.log(s.showTechniques);for(var o=[],r=[],a=[],l=0;l<s.projects.length;l++){var c=s.projects[l];o.push([c.name,c.latitude,c.longitude]),a.push(["<div class='infoM'><div class='textcont title'>"+(c.name?"<h4>"+c.name+"</h4>":"")+"</div>"+(c.imgUrl?"<div class='imgcont'><img src="+c.imgUrl+" /> </div>":"")+"<div class='textcont'>"+(c.activity?"<span>"+s.flyoutTranslation.activity+"</span>"+c.activity+"<br/>":"")+(c.expertise?"<span>"+s.flyoutTranslation.expertise+"</span>"+c.expertise+"<br/>":"")+(s.showTechniques&&c.technique?"<span>"+s.flyoutTranslation.technique+"</span>"+c.technique+"<br/>":"")+(s.showTechniques&&c.techniqueCategory?"<span>"+s.flyoutTranslation.techniqueCategory+"</span>"+c.techniqueCategory+"<br/>":"")+(c.contractType?"<span>"+s.flyoutTranslation.contractType+"</span>"+c.contractType+"<br/>":"")+(c.projectStatus?"<span>"+s.flyoutTranslation.status+"</span>"+c.projectStatus+"<br/>":"")+(c.city?"<span>"+s.flyoutTranslation.address+"</span>"+c.city:"")+"</div>"+(c.url?"<a href='"+c.url+"' class='btn btn-light-blue btn-arrow'>"+s.flyoutTranslation.moreInfo+"</a>":"")+"</div>"]),e(".gm-style-iw").parent().addClass("infoWindowCont")}var d=!1;0!==o.length||i||(d=!0,o.push(["dummy",51.262073,3.205185]));var h,p=new google.maps.InfoWindow,u=new google.maps.MarkerImage("/assets/corporate/img/marker@2x.png",new google.maps.Size(40,45),new google.maps.Point(0,0),new google.maps.Point(20,22),new google.maps.Size(40,45));t.gmInstance.set("styles",[{featureType:"all",elementType:"labels.text.fill",stylers:[{color:"#949494"}]},{featureType:"administrative",elementType:"geometry",stylers:[{visibility:"off"}]},{featureType:"administrative",elementType:"labels.text.fill",stylers:[{color:"#444444"}]},{featureType:"administrative.country",elementType:"all",stylers:[{visibility:"on"}]},{featureType:"administrative.country",elementType:"geometry.stroke",stylers:[{color:"#ffffff"},{visibility:"on"}]},{featureType:"administrative.country",elementType:"labels.text",stylers:[{visibility:"on"}]},{featureType:"administrative.country",elementType:"labels.text.fill",stylers:[{color:"#949494"}]},{featureType:"administrative.province",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"administrative.province",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"administrative.province",elementType:"labels.text.fill",stylers:[{color:"#949494"}]},{featureType:"administrative.locality",elementType:"all",stylers:[{visibility:"on"}]},{featureType:"administrative.locality",elementType:"geometry",stylers:[{visibility:"off"}]},{featureType:"administrative.locality",elementType:"labels.text",stylers:[{visibility:"off"}]},{featureType:"administrative.locality",elementType:"labels.text.fill",stylers:[{color:"#949494"}]},{featureType:"administrative.locality",elementType:"labels.icon",stylers:[{color:"#7d7d7d"}]},{featureType:"administrative.neighborhood",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"administrative.neighborhood",elementType:"labels.text.fill",stylers:[{color:"#949494"}]},{featureType:"administrative.land_parcel",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"administrative.land_parcel",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.stroke",stylers:[{color:"#949494"}]},{featureType:"landscape",elementType:"all",stylers:[{color:"#f2f2f2"},{visibility:"on"}]},{featureType:"landscape",elementType:"labels.text.fill",stylers:[{color:"#949494"}]},{featureType:"landscape.man_made",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"landscape.natural",elementType:"geometry",stylers:[{visibility:"on"},{color:"#dddddd"}]},{featureType:"landscape.natural",elementType:"labels.text",stylers:[{visibility:"simplified"}]},{featureType:"landscape.natural",elementType:"labels.text.fill",stylers:[{invert_lightness:!0},{color:"#444444"}]},{featureType:"poi",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"road",elementType:"all",stylers:[{saturation:-100},{lightness:45},{visibility:"off"}]},{featureType:"road.arterial",elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"transit",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"transit.station.airport",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"water",elementType:"all",stylers:[{visibility:"on"}]},{featureType:"water",elementType:"geometry",stylers:[{visibility:"off"},{color:"#ff0000"}]},{featureType:"water",elementType:"geometry.fill",stylers:[{visibility:"on"},{color:"#f7f7f7"}]},{featureType:"water",elementType:"geometry.stroke",stylers:[{visibility:"off"}]},{featureType:"water",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#000000"}]},{featureType:"water",elementType:"labels.text.stroke",stylers:[{visibility:"off"}]}]);for(var f=0;f<o.length;f++){var g=new google.maps.LatLng(o[f][1],o[f][2]);n.extend(g),0==d&&(h=new google.maps.Marker({position:g,map:t.gmInstance,title:o[f][0],icon:u}),r.push(h)),0==d&&google.maps.event.addListener(h,"click",function(e,i){return function(){p.setContent(a[i][0]),p.open(t.gmInstance,e)}}(h,f))}var m={styles:[{height:70,url:"/assets/corporate/img/markerGroup1.png",width:70}]};new MarkerClusterer(t.gmInstance,r,m)},error:function(){}});var s=e(document).width()>480,n=new google.maps.LatLngBounds,o=e(window).innerWidth(),r=o<=768?1:2,a=parseInt(t.$cont.attr("data-initZoom"));a||(a=5);var l=parseFloat(t.$cont.attr("data-centLat")),c=parseFloat(t.$cont.attr("data-centLong")),d={zoom:a,mapTypeId:"roadmap",scrollwheel:!Modernizr.touchevents,draggable:s,minZoom:r};t.gmInstance=new google.maps.Map(t.$map[0],d),l&&c?t.moveToLocation(l,c):t.gmInstance.fitBounds(n);var h=new google.maps.LatLngBounds(new google.maps.LatLng((-65),(-165)),new google.maps.LatLng(75,165));google.maps.event.addListener(t.gmInstance,"dragend",function(){if(!h.contains(t.gmInstance.getCenter())){var e=t.gmInstance.getCenter(),i=e.lng(),s=e.lat(),n=h.getNorthEast().lng(),o=h.getNorthEast().lat(),r=h.getSouthWest().lng(),a=h.getSouthWest().lat();i<r&&(i=r),i>n&&(i=n),s<a&&(s=a),s>o&&(s=o),t.gmInstance.setCenter(new google.maps.LatLng(s,i))}}),google.maps.event.addListener(t.gmInstance,"zoom_changed",function(){t.gmInstance.getZoom()<r&&t.gmInstance.setZoom(r)})},i.prototype.Collapse=function(i){var s=i,n=this.$cont.attr("data-collapsed"),o=this.$cont.find(".mapCollapse"),r="True"===n;r?(s.removeAttr("style"),o.addClass("glyphicon-plus")):(s.height(500),o.addClass("glyphicon-minus")),o.on("click",function(){var i=e(this);i.toggleClass("glyphicon-plus glyphicon-minus"),i.hasClass("glyphicon-plus")?s.height(100):s.height(500),t.besixProjectsMap.initMap()})},i.prototype.moveToLocation=function(t,e){var i=new google.maps.LatLng(t,e);this.gmInstance.panTo(i)},e(document).ready(function(){e(".projectsMap").length>0&&(t.besixProjectsMap=new i(e(".projectsMap"))),e(".technique-map .projectsMap").length>0&&(t.besixProjectsMapTechnique=new i(e(".technique-map .projectsMap")))})}(window,window.jQuery),function(t,e){var i=function(t){this.init(t)};i.prototype.init=function(t){function i(){e.getJSON("/api/pressitems").done(function(i){t.pressItems=i.pressItems,e(".press-overview .load-more").data("page-size",i.pageSize),s()}),e(".press-overview").on("click",".load-more",function(){s()})}function s(){var i=e(".press-overview .load-more"),s=t.pressItems,o=i.data("page"),r=o+1,a=i.data("page-size"),l=s.length,c=Math.ceil(l/a);if(c>=r){var d=s.slice(a*o,a*r);n(d),i.data("page",r),r>=c?i.hide():i.show()}}function n(t){var i=e(".press-container"),s=i.parent().children(".press-item").first(),n=e.map(t,function(t){var i=s.clone();i.removeClass("hidden"),i.find("a").html(e("<div/>").html(t.title).text()+"<span>"+t.publishedDate+"</span>"),i.find("a").attr("href",t.url);var n=t.subtitle;return i.find("p").text(n),i});i.append(n)}t.length>0&&e(document).ready(function(){i()})},t.pressOverview=new i(e(".press-overview"))}(window,window.jQuery),function(t,e){function s(t){e.ajax({url:"/api/projectitems",type:"POST",contentType:"application/json",data:t}).done(function(t){if(r=t.pages,a=t.totalPage,e(".filtered-result_amount").text(t.countText),e(".project-container").find(".project-item:not('.hidden')").remove(),t.isCrawler)for(i=0;i<a;i++)n(i);else n(0)})}function n(t){var i=r;if(i.length>=t){o(i[t].projects);var s=e(".project-overview .load-more");s.data("page",t),t+1>=a?s.hide():s.show()}}function o(t){var i=e(".project-container"),s=i.children().first(),n=e.map(t,function(t){var e=s.clone(),i=t.isTopReferenceProject?"col-xs-8":"col-xs-4";return e.addClass(i),e.removeClass("hidden"),e.find("a").attr("href",t.urlLink),e.find(".grid-bg").css("background-image","url('"+t.imageUrl+"')"),e.find("h3 > span").text(t.title),e.find("p > span.bold").text(t.statusTitle),e.find("p > span.location-tag").append(t.location),e});i.append(n)}if(e(".project-overview").length>0){var r,a;t.filterhook=s,e(".project-overview").on("click",".load-more",function(){var t=e(this);n(parseInt(t.data("page"))+1)}),e(document).ready(function(){e("section.filter").length?e(window).on("filter-ready",s(t.filter.getFilters())):s()})}}(window,window.jQuery),function(t,e){var i=function(t){this.init(t)};i.prototype.init=function(t){function i(){t.on("click",".load-more",function(){s()})}function s(){var i=t.find(".load-more"),s=i.data("page")||1;i.prop("disabled",!0),e.getJSON("/api/search",{keyword:i.data("keyword"),page:s}).done(function(e){i.data("page",++s),e.totalPages<s?i.hide():i.show(),t.find(".hit").text(e.searchResult.hits),e.searchResult.listingDidYouMeanResults?r(e.searchResult.suggestions,e.searchPageUrl):e.searchResult.searchResultItems.length>0?n(e.searchResult.searchResultItems):o()}).always(function(){i.prop("disabled",!1)})}function n(t){e(".result-container").removeClass("hidden");var i=e(".result-list"),s=i.children(".result").first(),n=e.map(t,function(t){var e=s.clone();return e.removeClass("hidden"),e.find("a").html(t.title),e.find("a").attr("href",t.url),e.find("p").html(t.summary),e});i.append(n)}function o(){e(".result-container").addClass("hidden"),e(".no-results").removeClass("hidden")}function r(t,i){e(".did-you-mean").removeClass("hidden"),o();var s=e(".suggestion-list"),n=s.children(".suggestion").first(),r=e.map(t,function(e){var s=t.indexOf(e)!==t.length-1?", ":"",o=n.clone();return o.removeClass("hidden"),o.find("a").text(e+s),o.find("a").attr("href",i+"?keyword="+e),o});s.append(r)}t.length>0&&(e(i),e(s))},t.searchResults=new i(e(".search-container"))}(window,window.jQuery),function(t,e){var i=function(t){this.init(t)};i.prototype.init=function(t){var i=this;i.$elm=t,i.$elm.find(".searchBox").autocomplete({source:function(t,i){e.ajax({url:"/fs_autocomplete.ashx",dataType:"json",data:{term:t.term,index:e(this.element).data("index"),fields:"TEXT,TITL",limit:5},success:function(t){var s=e.map(t.ws,function(t){return{label:t.w,value:t.w}});i(s)}})},minLength:3,delay:0,select:function(t,i){e(this).val(i.item.value),e(this).parents(".search-form").submit()}})},e(document).ready(function(){t.searchBox=new i(e(".global-search"))})}(window,window.jQuery),function(t,e){var i=t.google;e(document).ready(function(){e(".googlemaps").each(function(){var t=e(this),s=new i.maps.LatLng(t.data("lat"),t.data("long")),n=parseInt(t.data("initZoom"))||10,o=new i.maps.Map(t[0],{zoom:n,draggable:!0,scrollwheel:!1,zoomControl:!0,zoomControlOptions:{position:i.maps.ControlPosition.RIGHT_CENTER},navigationControl:!0,center:s,mapTypeId:i.maps.MapTypeId.ROUTEMAP,disableDefaultUI:!0});o.set("styles",[{featureType:"all",elementType:"all",stylers:[{lightness:"0"}]},{featureType:"administrative",elementType:"all",stylers:[{hue:"#ff0000"},{lightness:-100},{visibility:"simplified"}]},{featureType:"administrative.country",elementType:"labels",stylers:[{visibility:"on"}]},{featureType:"administrative.country",elementType:"labels.text.stroke",stylers:[{visibility:"off"}]},{featureType:"landscape",elementType:"geometry",stylers:[{hue:"#ff0000"},{saturation:-100},{lightness:"84"},{visibility:"on"}]},{featureType:"landscape",elementType:"labels",stylers:[{hue:"#000000"},{saturation:-100},{lightness:-100},{visibility:"off"}]},{featureType:"poi",elementType:"all",stylers:[{hue:"#000000"},{saturation:-100},{lightness:-100},{visibility:"off"}]},{featureType:"road",elementType:"geometry",stylers:[{hue:"#ff0000"},{saturation:-100},{lightness:26},{visibility:"on"}]},{featureType:"road",elementType:"geometry.fill",stylers:[{visibility:"on"},{color:"#cfcfcf"}]},{featureType:"road",elementType:"geometry.stroke",stylers:[{visibility:"off"}]},{featureType:"road",elementType:"labels",stylers:[{hue:"#ff0000"},{saturation:-100},{lightness:100},{visibility:"on"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#000000"}]},{featureType:"road.highway",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{visibility:"on"},{hue:"#ff0000"}]},{featureType:"road.highway",elementType:"labels.text.stroke",stylers:[{visibility:"on"}]},{featureType:"road.highway.controlled_access",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"road.arterial",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"road.local",elementType:"all",stylers:[{hue:"#ff0000"},{saturation:-100},{lightness:100},{visibility:"on"}]},{featureType:"road.local",elementType:"labels",stylers:[{visibility:"on"},{color:"#000000"}]},{featureType:"road.local",elementType:"labels.text.stroke",stylers:[{visibility:"off"}]},{featureType:"transit",elementType:"labels",stylers:[{hue:"#000000"},{lightness:-100},{visibility:"off"}]},{featureType:"water",elementType:"geometry",stylers:[{saturation:-100},{lightness:100},{visibility:"on"},{color:"#1ba8eb"}]},{featureType:"water",elementType:"labels",stylers:[{hue:"#000000"},{saturation:-100},{lightness:-100},{visibility:"off"}]}]);var r=new i.maps.MarkerImage("/assets/corporate/img/marker@2x.png",new i.maps.Size(40,45),new i.maps.Point(0,0),new i.maps.Point(20,22),new i.maps.Size(40,45));new i.maps.Marker({position:s,map:o,icon:r});i.maps.event.addDomListener(window,"resize",function(){o.setCenter(s)})})})}(window,window.jQuery),function(t,e){e(document).ready(function(){e(".homepage-slider .slide-wrapper").slick({dots:!0,infinite:!0,speed:500,fade:!0,cssEase:"linear",autoplay:!0,autoplaySpeed:1e4,pauseOnHover:!1,arrows:!1,appendDots:e(".slider-navigation-wrapper .container .slider-lines-wrapper")}),e(".homepage-slider .next-slide").html("Next: "+e(".homepage-slider .slider-title-wrapper .row > div:nth-child(2)").html());for(var t=e(".homepage-slider .slick-dots li"),i=0;i<t.length;i++)e(".homepage-slider .slick-dots li:nth-child("+(i+1)+")").prepend("<div class='slick-preload'></div>");t.addClass("slides-"+t.length),e(".homepage-slider .slide-wrapper").on("beforeChange",function(t,i,s,n){e(".homepage-slider .slick-slide").removeClass("current-animation-slide"),e(".homepage-slider .slick-slide:nth-child("+n+")").addClass("current-animation-slide"),e(".homepage-slider .slider-title-wrapper .row > div:nth-child("+(n+2)+")").length?e(".homepage-slider .next-slide").html("Next: "+e(".homepage-slider .slider-title-wrapper .row > div:nth-child("+(n+2)+")").html()):e(".homepage-slider .next-slide").html("Next: "+e(".homepage-slider .slider-title-wrapper .row > div:nth-child(1)").html())})})}(window,window.jQuery),function(t){"function"==typeof define&&define.amd?define(["jquery","./jquery.validate"],t):"object"==typeof module&&module.exports?module.exports=t(require("jquery")):t(jQuery)}(function(t){return function(){function e(t){return t.replace(/<.[^<>]*?>/g," ").replace(/&nbsp;|&#160;/gi," ").replace(/[.(),;:!?%#$'\"_+=\/\-“”’]*/g,"")}t.validator.addMethod("maxWords",function(t,i,s){return this.optional(i)||e(t).match(/\b\w+\b/g).length<=s},t.validator.format("Please enter {0} words or less.")),t.validator.addMethod("minWords",function(t,i,s){return this.optional(i)||e(t).match(/\b\w+\b/g).length>=s},t.validator.format("Please enter at least {0} words.")),t.validator.addMethod("rangeWords",function(t,i,s){var n=e(t),o=/\b\w+\b/g;return this.optional(i)||n.match(o).length>=s[0]&&n.match(o).length<=s[1]},t.validator.format("Please enter between {0} and {1} words."))}(),t.validator.addMethod("abaRoutingNumber",function(t){var e=0,i=t.split(""),s=i.length;if(9!==s)return!1;for(var n=0;n<s;n+=3)e+=3*parseInt(i[n],10)+7*parseInt(i[n+1],10)+parseInt(i[n+2],10);return 0!==e&&e%10===0},"Please enter a valid routing number."),t.validator.addMethod("accept",function(e,i,s){var n,o,r,a="string"==typeof s?s.replace(/\s/g,""):"image/*",l=this.optional(i);if(l)return l;if("file"===t(i).attr("type")&&(a=a.replace(/[\-\[\]\/\{\}\(\)\+\?\.\\\^\$\|]/g,"\\$&").replace(/,/g,"|").replace(/\/\*/g,"/.*"),i.files&&i.files.length))for(r=new RegExp(".?("+a+")$","i"),n=0;n<i.files.length;n++)if(o=i.files[n],!o.type.match(r))return!1;return!0},t.validator.format("Please enter a value with a valid mimetype.")),t.validator.addMethod("alphanumeric",function(t,e){return this.optional(e)||/^\w+$/i.test(t)},"Letters, numbers, and underscores only please."),t.validator.addMethod("bankaccountNL",function(t,e){if(this.optional(e))return!0;if(!/^[0-9]{9}|([0-9]{2} ){3}[0-9]{3}$/.test(t))return!1;var i,s,n,o=t.replace(/ /g,""),r=0,a=o.length;for(i=0;i<a;i++)s=a-i,n=o.substring(i,i+1),r+=s*n;return r%11===0},"Please specify a valid bank account number."),t.validator.addMethod("bankorgiroaccountNL",function(e,i){return this.optional(i)||t.validator.methods.bankaccountNL.call(this,e,i)||t.validator.methods.giroaccountNL.call(this,e,i)},"Please specify a valid bank or giro account number."),t.validator.addMethod("bic",function(t,e){return this.optional(e)||/^([A-Z]{6}[A-Z2-9][A-NP-Z1-9])(X{3}|[A-WY-Z0-9][A-Z0-9]{2})?$/.test(t.toUpperCase())},"Please specify a valid BIC code."),t.validator.addMethod("cifES",function(t,e){"use strict";function i(t){return t%2===0}if(this.optional(e))return!0;var s,n,o,r,a=new RegExp(/^([ABCDEFGHJKLMNPQRSUVW])(\d{7})([0-9A-J])$/gi),l=t.substring(0,1),c=t.substring(1,8),d=t.substring(8,9),h=0,p=0,u=0;if(9!==t.length||!a.test(t))return!1;for(s=0;s<c.length;s++)n=parseInt(c[s],10),i(s)?(n*=2,u+=n<10?n:n-9):p+=n;return h=p+u,o=(10-h.toString().substr(-1)).toString(),o=parseInt(o,10)>9?"0":o,r="JABCDEFGHI".substr(o,1).toString(),l.match(/[ABEH]/)?d===o:l.match(/[KPQS]/)?d===r:d===o||d===r},"Please specify a valid CIF number."),t.validator.addMethod("cnhBR",function(t){if(t=t.replace(/([~!@#$%^&*()_+=`{}\[\]\-|\\:;'<>,.\/? ])+/g,""),11!==t.length)return!1;var e,i,s,n,o,r,a=0,l=0;if(e=t.charAt(0),new Array(12).join(e)===t)return!1;for(n=0,o=9,r=0;n<9;++n,--o)a+=+(t.charAt(n)*o);for(i=a%11,i>=10&&(i=0,l=2),a=0,n=0,o=1,r=0;n<9;++n,++o)a+=+(t.charAt(n)*o);return s=a%11,s>=10?s=0:s-=l,String(i).concat(s)===t.substr(-2)},"Please specify a valid CNH number."),t.validator.addMethod("cnpjBR",function(t,e){"use strict";if(this.optional(e))return!0;if(t=t.replace(/[^\d]+/g,""),14!==t.length)return!1;if("00000000000000"===t||"11111111111111"===t||"22222222222222"===t||"33333333333333"===t||"44444444444444"===t||"55555555555555"===t||"66666666666666"===t||"77777777777777"===t||"88888888888888"===t||"99999999999999"===t)return!1;for(var i=t.length-2,s=t.substring(0,i),n=t.substring(i),o=0,r=i-7,a=i;a>=1;a--)o+=s.charAt(i-a)*r--,r<2&&(r=9);var l=o%11<2?0:11-o%11;if(l!==parseInt(n.charAt(0),10))return!1;i+=1,s=t.substring(0,i),o=0,r=i-7;for(var c=i;c>=1;c--)o+=s.charAt(i-c)*r--,r<2&&(r=9);return l=o%11<2?0:11-o%11,l===parseInt(n.charAt(1),10)},"Please specify a CNPJ value number."),t.validator.addMethod("cpfBR",function(t,e){"use strict";if(this.optional(e))return!0;if(t=t.replace(/([~!@#$%^&*()_+=`{}\[\]\-|\\:;'<>,.\/? ])+/g,""),11!==t.length)return!1;var i,s,n,o,r=0;if(i=parseInt(t.substring(9,10),10),s=parseInt(t.substring(10,11),10),n=function(t,e){var i=10*t%11;return 10!==i&&11!==i||(i=0),i===e},""===t||"00000000000"===t||"11111111111"===t||"22222222222"===t||"33333333333"===t||"44444444444"===t||"55555555555"===t||"66666666666"===t||"77777777777"===t||"88888888888"===t||"99999999999"===t)return!1;for(o=1;o<=9;o++)r+=parseInt(t.substring(o-1,o),10)*(11-o);if(n(r,i)){for(r=0,o=1;o<=10;o++)r+=parseInt(t.substring(o-1,o),10)*(12-o);return n(r,s)}return!1},"Please specify a valid CPF number."),t.validator.addMethod("creditcard",function(t,e){if(this.optional(e))return"dependency-mismatch";if(/[^0-9 \-]+/.test(t))return!1;var i,s,n=0,o=0,r=!1;if(t=t.replace(/\D/g,""),t.length<13||t.length>19)return!1;for(i=t.length-1;i>=0;i--)s=t.charAt(i),o=parseInt(s,10),r&&(o*=2)>9&&(o-=9),n+=o,r=!r;return n%10===0},"Please enter a valid credit card number."),t.validator.addMethod("creditcardtypes",function(t,e,i){if(/[^0-9\-]+/.test(t))return!1;t=t.replace(/\D/g,"");var s=0;return i.mastercard&&(s|=1),i.visa&&(s|=2),i.amex&&(s|=4),i.dinersclub&&(s|=8),i.enroute&&(s|=16),i.discover&&(s|=32),i.jcb&&(s|=64),i.unknown&&(s|=128),i.all&&(s=255),1&s&&(/^(5[12345])/.test(t)||/^(2[234567])/.test(t))?16===t.length:2&s&&/^(4)/.test(t)?16===t.length:4&s&&/^(3[47])/.test(t)?15===t.length:8&s&&/^(3(0[012345]|[68]))/.test(t)?14===t.length:16&s&&/^(2(014|149))/.test(t)?15===t.length:32&s&&/^(6011)/.test(t)?16===t.length:64&s&&/^(3)/.test(t)?16===t.length:64&s&&/^(2131|1800)/.test(t)?15===t.length:!!(128&s)},"Please enter a valid credit card number."),t.validator.addMethod("currency",function(t,e,i){var s,n="string"==typeof i,o=n?i:i[0],r=!!n||i[1];return o=o.replace(/,/g,""),o=r?o+"]":o+"]?",s="^["+o+"([1-9]{1}[0-9]{0,2}(\\,[0-9]{3})*(\\.[0-9]{0,2})?|[1-9]{1}[0-9]{0,}(\\.[0-9]{0,2})?|0(\\.[0-9]{0,2})?|(\\.[0-9]{1,2})?)$",s=new RegExp(s),this.optional(e)||s.test(t)},"Please specify a valid currency."),t.validator.addMethod("dateFA",function(t,e){return this.optional(e)||/^[1-4]\d{3}\/((0?[1-6]\/((3[0-1])|([1-2][0-9])|(0?[1-9])))|((1[0-2]|(0?[7-9]))\/(30|([1-2][0-9])|(0?[1-9]))))$/.test(t)},t.validator.messages.date),t.validator.addMethod("dateITA",function(t,e){var i,s,n,o,r,a=!1,l=/^\d{1,2}\/\d{1,2}\/\d{4}$/;return l.test(t)?(i=t.split("/"),s=parseInt(i[0],10),n=parseInt(i[1],10),o=parseInt(i[2],10),r=new Date(Date.UTC(o,n-1,s,12,0,0,0)),a=r.getUTCFullYear()===o&&r.getUTCMonth()===n-1&&r.getUTCDate()===s):a=!1,this.optional(e)||a},t.validator.messages.date),t.validator.addMethod("dateNL",function(t,e){return this.optional(e)||/^(0?[1-9]|[12]\d|3[01])[\.\/\-](0?[1-9]|1[012])[\.\/\-]([12]\d)?(\d\d)$/.test(t)},t.validator.messages.date),t.validator.addMethod("extension",function(t,e,i){return i="string"==typeof i?i.replace(/,/g,"|"):"png|jpe?g|gif",this.optional(e)||t.match(new RegExp("\\.("+i+")$","i"))},t.validator.format("Please enter a value with a valid extension.")),t.validator.addMethod("giroaccountNL",function(t,e){return this.optional(e)||/^[0-9]{1,7}$/.test(t)},"Please specify a valid giro account number."),t.validator.addMethod("greaterThan",function(e,i,s){var n=t(s);return this.settings.onfocusout&&n.not(".validate-greaterThan-blur").length&&n.addClass("validate-greaterThan-blur").on("blur.validate-greaterThan",function(){t(i).valid()}),e>n.val()},"Please enter a greater value."),t.validator.addMethod("greaterThanEqual",function(e,i,s){var n=t(s);return this.settings.onfocusout&&n.not(".validate-greaterThanEqual-blur").length&&n.addClass("validate-greaterThanEqual-blur").on("blur.validate-greaterThanEqual",function(){t(i).valid()}),e>=n.val()},"Please enter a greater value."),t.validator.addMethod("iban",function(t,e){if(this.optional(e))return!0;var i,s,n,o,r,a,l,c,d,h=t.replace(/ /g,"").toUpperCase(),p="",u=!0,f="",g="",m=5;if(h.length<m)return!1;if(i=h.substring(0,2),a={AL:"\\d{8}[\\dA-Z]{16}",AD:"\\d{8}[\\dA-Z]{12}",AT:"\\d{16}",AZ:"[\\dA-Z]{4}\\d{20}",BE:"\\d{12}",BH:"[A-Z]{4}[\\dA-Z]{14}",BA:"\\d{16}",BR:"\\d{23}[A-Z][\\dA-Z]",BG:"[A-Z]{4}\\d{6}[\\dA-Z]{8}",CR:"\\d{17}",HR:"\\d{17}",CY:"\\d{8}[\\dA-Z]{16}",CZ:"\\d{20}",DK:"\\d{14}",DO:"[A-Z]{4}\\d{20}",EE:"\\d{16}",FO:"\\d{14}",FI:"\\d{14}",FR:"\\d{10}[\\dA-Z]{11}\\d{2}",GE:"[\\dA-Z]{2}\\d{16}",DE:"\\d{18}",GI:"[A-Z]{4}[\\dA-Z]{15}",GR:"\\d{7}[\\dA-Z]{16}",GL:"\\d{14}",GT:"[\\dA-Z]{4}[\\dA-Z]{20}",HU:"\\d{24}",IS:"\\d{22}",IE:"[\\dA-Z]{4}\\d{14}",IL:"\\d{19}",IT:"[A-Z]\\d{10}[\\dA-Z]{12}",KZ:"\\d{3}[\\dA-Z]{13}",KW:"[A-Z]{4}[\\dA-Z]{22}",LV:"[A-Z]{4}[\\dA-Z]{13}",LB:"\\d{4}[\\dA-Z]{20}",LI:"\\d{5}[\\dA-Z]{12}",LT:"\\d{16}",LU:"\\d{3}[\\dA-Z]{13}",MK:"\\d{3}[\\dA-Z]{10}\\d{2}",MT:"[A-Z]{4}\\d{5}[\\dA-Z]{18}",MR:"\\d{23}",MU:"[A-Z]{4}\\d{19}[A-Z]{3}",MC:"\\d{10}[\\dA-Z]{11}\\d{2}",MD:"[\\dA-Z]{2}\\d{18}",ME:"\\d{18}",NL:"[A-Z]{4}\\d{10}",NO:"\\d{11}",PK:"[\\dA-Z]{4}\\d{16}",PS:"[\\dA-Z]{4}\\d{21}",PL:"\\d{24}",PT:"\\d{21}",RO:"[A-Z]{4}[\\dA-Z]{16}",SM:"[A-Z]\\d{10}[\\dA-Z]{12}",SA:"\\d{2}[\\dA-Z]{18}",RS:"\\d{18}",SK:"\\d{20}",SI:"\\d{15}",ES:"\\d{20}",SE:"\\d{20}",CH:"\\d{5}[\\dA-Z]{12}",TN:"\\d{20}",TR:"\\d{5}[\\dA-Z]{17}",AE:"\\d{3}\\d{16}",GB:"[A-Z]{4}\\d{14}",VG:"[\\dA-Z]{4}\\d{16}"},r=a[i],"undefined"!=typeof r&&(l=new RegExp("^[A-Z]{2}\\d{2}"+r+"$",""),!l.test(h)))return!1;for(s=h.substring(4,h.length)+h.substring(0,4),c=0;c<s.length;c++)n=s.charAt(c),"0"!==n&&(u=!1),u||(p+="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ".indexOf(n));for(d=0;d<p.length;d++)o=p.charAt(d),g=""+f+o,f=g%97;return 1===f},"Please specify a valid IBAN."),t.validator.addMethod("integer",function(t,e){return this.optional(e)||/^-?\d+$/.test(t)},"A positive or negative non-decimal number please."),t.validator.addMethod("ipv4",function(t,e){return this.optional(e)||/^(25[0-5]|2[0-4]\d|[01]?\d\d?)\.(25[0-5]|2[0-4]\d|[01]?\d\d?)\.(25[0-5]|2[0-4]\d|[01]?\d\d?)\.(25[0-5]|2[0-4]\d|[01]?\d\d?)$/i.test(t);
},"Please enter a valid IP v4 address."),t.validator.addMethod("ipv6",function(t,e){return this.optional(e)||/^((([0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}:[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){5}:([0-9A-Fa-f]{1,4}:)?[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){4}:([0-9A-Fa-f]{1,4}:){0,2}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){3}:([0-9A-Fa-f]{1,4}:){0,3}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){2}:([0-9A-Fa-f]{1,4}:){0,4}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|(([0-9A-Fa-f]{1,4}:){0,5}:((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|(::([0-9A-Fa-f]{1,4}:){0,5}((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|([0-9A-Fa-f]{1,4}::([0-9A-Fa-f]{1,4}:){0,5}[0-9A-Fa-f]{1,4})|(::([0-9A-Fa-f]{1,4}:){0,6}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){1,7}:))$/i.test(t)},"Please enter a valid IP v6 address."),t.validator.addMethod("lessThan",function(e,i,s){var n=t(s);return this.settings.onfocusout&&n.not(".validate-lessThan-blur").length&&n.addClass("validate-lessThan-blur").on("blur.validate-lessThan",function(){t(i).valid()}),e<n.val()},"Please enter a lesser value."),t.validator.addMethod("lessThanEqual",function(e,i,s){var n=t(s);return this.settings.onfocusout&&n.not(".validate-lessThanEqual-blur").length&&n.addClass("validate-lessThanEqual-blur").on("blur.validate-lessThanEqual",function(){t(i).valid()}),e<=n.val()},"Please enter a lesser value."),t.validator.addMethod("lettersonly",function(t,e){return this.optional(e)||/^[a-z]+$/i.test(t)},"Letters only please."),t.validator.addMethod("letterswithbasicpunc",function(t,e){return this.optional(e)||/^[a-z\-.,()'"\s]+$/i.test(t)},"Letters or punctuation only please."),t.validator.addMethod("maxfiles",function(e,i,s){return!!this.optional(i)||!("file"===t(i).attr("type")&&i.files&&i.files.length>s)},t.validator.format("Please select no more than {0} files.")),t.validator.addMethod("maxsize",function(e,i,s){if(this.optional(i))return!0;if("file"===t(i).attr("type")&&i.files&&i.files.length)for(var n=0;n<i.files.length;n++)if(i.files[n].size>s)return!1;return!0},t.validator.format("File size must not exceed {0} bytes each.")),t.validator.addMethod("maxsizetotal",function(e,i,s){if(this.optional(i))return!0;if("file"===t(i).attr("type")&&i.files&&i.files.length)for(var n=0,o=0;o<i.files.length;o++)if(n+=i.files[o].size,n>s)return!1;return!0},t.validator.format("Total size of all files must not exceed {0} bytes.")),t.validator.addMethod("mobileNL",function(t,e){return this.optional(e)||/^((\+|00(\s|\s?\-\s?)?)31(\s|\s?\-\s?)?(\(0\)[\-\s]?)?|0)6((\s|\s?\-\s?)?[0-9]){8}$/.test(t)},"Please specify a valid mobile number."),t.validator.addMethod("mobileRU",function(t,e){var i=t.replace(/\(|\)|\s+|-/g,"");return this.optional(e)||i.length>9&&/^((\+7|7|8)+([0-9]){10})$/.test(i)},"Please specify a valid mobile number."),t.validator.addMethod("mobileUK",function(t,e){return t=t.replace(/\(|\)|\s+|-/g,""),this.optional(e)||t.length>9&&t.match(/^(?:(?:(?:00\s?|\+)44\s?|0)7(?:[1345789]\d{2}|624)\s?\d{3}\s?\d{3})$/)},"Please specify a valid mobile number."),t.validator.addMethod("netmask",function(t,e){return this.optional(e)||/^(254|252|248|240|224|192|128)\.0\.0\.0|255\.(254|252|248|240|224|192|128|0)\.0\.0|255\.255\.(254|252|248|240|224|192|128|0)\.0|255\.255\.255\.(254|252|248|240|224|192|128|0)/i.test(t)},"Please enter a valid netmask."),t.validator.addMethod("nieES",function(t,e){"use strict";if(this.optional(e))return!0;var i,s=new RegExp(/^[MXYZ]{1}[0-9]{7,8}[TRWAGMYFPDXBNJZSQVHLCKET]{1}$/gi),n="TRWAGMYFPDXBNJZSQVHLCKET",o=t.substr(t.length-1).toUpperCase();return t=t.toString().toUpperCase(),!(t.length>10||t.length<9||!s.test(t))&&(t=t.replace(/^[X]/,"0").replace(/^[Y]/,"1").replace(/^[Z]/,"2"),i=9===t.length?t.substr(0,8):t.substr(0,9),n.charAt(parseInt(i,10)%23)===o)},"Please specify a valid NIE number."),t.validator.addMethod("nifES",function(t,e){"use strict";return!!this.optional(e)||(t=t.toUpperCase(),!!t.match("((^[A-Z]{1}[0-9]{7}[A-Z0-9]{1}$|^[T]{1}[A-Z0-9]{8}$)|^[0-9]{8}[A-Z]{1}$)")&&(/^[0-9]{8}[A-Z]{1}$/.test(t)?"TRWAGMYFPDXBNJZSQVHLCKE".charAt(t.substring(8,0)%23)===t.charAt(8):!!/^[KLM]{1}/.test(t)&&t[8]==="TRWAGMYFPDXBNJZSQVHLCKE".charAt(t.substring(8,1)%23)))},"Please specify a valid NIF number."),t.validator.addMethod("nipPL",function(t){"use strict";if(t=t.replace(/[^0-9]/g,""),10!==t.length)return!1;for(var e=[6,5,7,2,3,4,5,6,7],i=0,s=0;s<9;s++)i+=e[s]*t[s];var n=i%11,o=10===n?0:n;return o===parseInt(t[9],10)},"Please specify a valid NIP number."),t.validator.addMethod("nisBR",function(t){var e,i,s,n,o,r=0;if(t=t.replace(/([~!@#$%^&*()_+=`{}\[\]\-|\\:;'<>,.\/? ])+/g,""),11!==t.length)return!1;for(i=parseInt(t.substring(10,11),10),e=parseInt(t.substring(0,10),10),n=2;n<12;n++)o=n,10===n&&(o=2),11===n&&(o=3),r+=e%10*o,e=parseInt(e/10,10);return s=r%11,s=s>1?11-s:0,i===s},"Please specify a valid NIS/PIS number."),t.validator.addMethod("notEqualTo",function(e,i,s){return this.optional(i)||!t.validator.methods.equalTo.call(this,e,i,s)},"Please enter a different value, values must not be the same."),t.validator.addMethod("nowhitespace",function(t,e){return this.optional(e)||/^\S+$/i.test(t)},"No white space please."),t.validator.addMethod("pattern",function(t,e,i){return!!this.optional(e)||("string"==typeof i&&(i=new RegExp("^(?:"+i+")$")),i.test(t))},"Invalid format."),t.validator.addMethod("phoneNL",function(t,e){return this.optional(e)||/^((\+|00(\s|\s?\-\s?)?)31(\s|\s?\-\s?)?(\(0\)[\-\s]?)?|0)[1-9]((\s|\s?\-\s?)?[0-9]){8}$/.test(t)},"Please specify a valid phone number."),t.validator.addMethod("phonePL",function(t,e){t=t.replace(/\s+/g,"");var i=/^(?:(?:(?:\+|00)?48)|(?:\(\+?48\)))?(?:1[2-8]|2[2-69]|3[2-49]|4[1-68]|5[0-9]|6[0-35-9]|[7-8][1-9]|9[145])\d{7}$/;return this.optional(e)||i.test(t)},"Please specify a valid phone number."),t.validator.addMethod("phonesUK",function(t,e){return t=t.replace(/\(|\)|\s+|-/g,""),this.optional(e)||t.length>9&&t.match(/^(?:(?:(?:00\s?|\+)44\s?|0)(?:1\d{8,9}|[23]\d{9}|7(?:[1345789]\d{8}|624\d{6})))$/)},"Please specify a valid uk phone number."),t.validator.addMethod("phoneUK",function(t,e){return t=t.replace(/\(|\)|\s+|-/g,""),this.optional(e)||t.length>9&&t.match(/^(?:(?:(?:00\s?|\+)44\s?)|(?:\(?0))(?:\d{2}\)?\s?\d{4}\s?\d{4}|\d{3}\)?\s?\d{3}\s?\d{3,4}|\d{4}\)?\s?(?:\d{5}|\d{3}\s?\d{3})|\d{5}\)?\s?\d{4,5})$/)},"Please specify a valid phone number."),t.validator.addMethod("phoneUS",function(t,e){return t=t.replace(/\s+/g,""),this.optional(e)||t.length>9&&t.match(/^(\+?1-?)?(\([2-9]([02-9]\d|1[02-9])\)|[2-9]([02-9]\d|1[02-9]))-?[2-9]\d{2}-?\d{4}$/)},"Please specify a valid phone number."),t.validator.addMethod("postalcodeBR",function(t,e){return this.optional(e)||/^\d{2}.\d{3}-\d{3}?$|^\d{5}-?\d{3}?$/.test(t)},"Informe um CEP válido."),t.validator.addMethod("postalCodeCA",function(t,e){return this.optional(e)||/^[ABCEGHJKLMNPRSTVXY]\d[ABCEGHJKLMNPRSTVWXYZ] *\d[ABCEGHJKLMNPRSTVWXYZ]\d$/i.test(t)},"Please specify a valid postal code."),t.validator.addMethod("postalcodeIT",function(t,e){return this.optional(e)||/^\d{5}$/.test(t)},"Please specify a valid postal code."),t.validator.addMethod("postalcodeNL",function(t,e){return this.optional(e)||/^[1-9][0-9]{3}\s?[a-zA-Z]{2}$/.test(t)},"Please specify a valid postal code."),t.validator.addMethod("postcodeUK",function(t,e){return this.optional(e)||/^((([A-PR-UWYZ][0-9])|([A-PR-UWYZ][0-9][0-9])|([A-PR-UWYZ][A-HK-Y][0-9])|([A-PR-UWYZ][A-HK-Y][0-9][0-9])|([A-PR-UWYZ][0-9][A-HJKSTUW])|([A-PR-UWYZ][A-HK-Y][0-9][ABEHMNPRVWXY]))\s?([0-9][ABD-HJLNP-UW-Z]{2})|(GIR)\s?(0AA))$/i.test(t)},"Please specify a valid UK postcode."),t.validator.addMethod("require_from_group",function(e,i,s){var n=t(s[1],i.form),o=n.eq(0),r=o.data("valid_req_grp")?o.data("valid_req_grp"):t.extend({},this),a=n.filter(function(){return r.elementValue(this)}).length>=s[0];return o.data("valid_req_grp",r),t(i).data("being_validated")||(n.data("being_validated",!0),n.each(function(){r.element(this)}),n.data("being_validated",!1)),a},t.validator.format("Please fill at least {0} of these fields.")),t.validator.addMethod("skip_or_fill_minimum",function(e,i,s){var n=t(s[1],i.form),o=n.eq(0),r=o.data("valid_skip")?o.data("valid_skip"):t.extend({},this),a=n.filter(function(){return r.elementValue(this)}).length,l=0===a||a>=s[0];return o.data("valid_skip",r),t(i).data("being_validated")||(n.data("being_validated",!0),n.each(function(){r.element(this)}),n.data("being_validated",!1)),l},t.validator.format("Please either skip these fields or fill at least {0} of them.")),t.validator.addMethod("stateUS",function(t,e,i){var s,n="undefined"==typeof i,o=!n&&"undefined"!=typeof i.caseSensitive&&i.caseSensitive,r=!n&&"undefined"!=typeof i.includeTerritories&&i.includeTerritories,a=!n&&"undefined"!=typeof i.includeMilitary&&i.includeMilitary;return s=r||a?r&&a?"^(A[AEKLPRSZ]|C[AOT]|D[CE]|FL|G[AU]|HI|I[ADLN]|K[SY]|LA|M[ADEINOPST]|N[CDEHJMVY]|O[HKR]|P[AR]|RI|S[CD]|T[NX]|UT|V[AIT]|W[AIVY])$":r?"^(A[KLRSZ]|C[AOT]|D[CE]|FL|G[AU]|HI|I[ADLN]|K[SY]|LA|M[ADEINOPST]|N[CDEHJMVY]|O[HKR]|P[AR]|RI|S[CD]|T[NX]|UT|V[AIT]|W[AIVY])$":"^(A[AEKLPRZ]|C[AOT]|D[CE]|FL|GA|HI|I[ADLN]|K[SY]|LA|M[ADEINOST]|N[CDEHJMVY]|O[HKR]|PA|RI|S[CD]|T[NX]|UT|V[AT]|W[AIVY])$":"^(A[KLRZ]|C[AOT]|D[CE]|FL|GA|HI|I[ADLN]|K[SY]|LA|M[ADEINOST]|N[CDEHJMVY]|O[HKR]|PA|RI|S[CD]|T[NX]|UT|V[AT]|W[AIVY])$",s=o?new RegExp(s):new RegExp(s,"i"),this.optional(e)||s.test(t)},"Please specify a valid state."),t.validator.addMethod("strippedminlength",function(e,i,s){return t(e).text().length>=s},t.validator.format("Please enter at least {0} characters.")),t.validator.addMethod("time",function(t,e){return this.optional(e)||/^([01]\d|2[0-3]|[0-9])(:[0-5]\d){1,2}$/.test(t)},"Please enter a valid time, between 00:00 and 23:59."),t.validator.addMethod("time12h",function(t,e){return this.optional(e)||/^((0?[1-9]|1[012])(:[0-5]\d){1,2}(\ ?[AP]M))$/i.test(t)},"Please enter a valid time in 12-hour am/pm format."),t.validator.addMethod("url2",function(t,e){return this.optional(e)||/^(?:(?:(?:https?|ftp):)?\/\/)(?:(?:[^\]\[?\/<~#`!@$^&*()+=}|:";',>{ ]|%[0-9A-Fa-f]{2})+(?::(?:[^\]\[?\/<~#`!@$^&*()+=}|:";',>{ ]|%[0-9A-Fa-f]{2})*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?)|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff])|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62}\.)))(?::\d{2,5})?(?:[\/?#]\S*)?$/i.test(t)},t.validator.messages.url),t.validator.addMethod("vinUS",function(t){if(17!==t.length)return!1;var e,i,s,n,o,r,a=["A","B","C","D","E","F","G","H","J","K","L","M","N","P","R","S","T","U","V","W","X","Y","Z"],l=[1,2,3,4,5,6,7,8,1,2,3,4,5,7,9,2,3,4,5,6,7,8,9],c=[8,7,6,5,4,3,2,10,0,9,8,7,6,5,4,3,2],d=0;for(e=0;e<17;e++)n=c[e],s=t.slice(e,e+1),isNaN(s)?(s=s.toUpperCase(),i=l[a.indexOf(s)]):i=parseInt(s,10),8===e&&(r=i,"X"===s&&(r=10)),d+=i*n;return o=d%11,o===r},"The specified vehicle identification number (VIN) is invalid."),t.validator.addMethod("zipcodeUS",function(t,e){return this.optional(e)||/^\d{5}(-\d{4})?$/.test(t)},"The specified US ZIP Code is invalid."),t.validator.addMethod("ziprange",function(t,e){return this.optional(e)||/^90[2-5]\d\{2\}-\d{4}$/.test(t)},"Your ZIP-code must be in the range 902xx-xxxx to 905xx-xxxx."),t}),function(t,e){var i=[];t(document).ajaxSend(function(t,e,s){i.push(e)}),t(document).ajaxComplete(function(e,s,n){i=t.grep(i,function(t){return t!=s})}),e.ajaxAbort=function(){t.each(i,function(t,e){e.abort()})};var s=window.onbeforeunload;window.onbeforeunload=function(){var t=s?s():void 0;return void 0==t&&window.ajaxAbort(),t}}(jQuery,window),function(t,e){var i={$instance:null,stickyElements:[],offset:30,init:function(){var t=i;if(t.$instance=e("a[href^=\\#]"),t.$instance.length){t.$instance.each(function(i,s){var n=e(this).attr("href");if(n.length||e('[name="'+n.substr(1)+'"]').length){var o=n.length?n:e('[name="'+n.substr(1)+'"]');e(this).on("click",function(i){i.preventDefault();var s=o.offset().top-t.getPageTop();e("html, body").animate({scrollTop:s})})}});var s=window.location.hash;s&&e(s).length&&e(window).on("load",function(){setTimeout(function(){var i=e(s).offset().top-t.getPageTop();e("html, body").animate({scrollTop:i})},200)})}},getPageTop:function(){for(var t=i,e=t.offset,s=0;s<t.stickyElements.length;s++)e+=t.stickyElements[s].height();return e}};t.anchorLinks=i,e(document).ready(function(){t.anchorLinks.init()})}(window,window.jQuery),function(t,e){var i=function(t){this.init(t)};i.prototype.init=function(t){var e=t.find("input");e.datepicker({format:"dd/mm/yyyy",beforeShowYear:!0})},e(document).ready(function(){t.datepicker=new i(e(".datepicker-container"))})}(window,window.jQuery),function(t,e){var i=function(t){this.init(t)};i.prototype.init=function(t){var e=t;e.dotdotdot()},e(document).ready(function(){t.dotdot=new i(e(".slide-title"))})}(window,window.jQuery),function(t,e){var i={$instance:null,init:function(){var t=document.querySelectorAll(".file-upload");Array.prototype.forEach.call(t,function(t){var e=t.querySelector(".btn"),i=e.innerHTML,s=t.querySelector("input"),n=t.querySelector("p"),o=t.querySelector(".btn-remove"),r=t.querySelector(".translate");if(s.addEventListener("change",function(t){var s="";s=this.files&&this.files.length>1?(this.getAttribute("data-multiple-caption")||"").replace("{count}",this.files.length):t.target.value.split("\\").pop(),s?e.innerHTML=s:e.innerHTML=i,n&&(n.style.display=this.files&&this.files.length>0?"none":"block"),o&&(o.style.display=this.files&&this.files.length>0?"inline":"none")}),o&&o.addEventListener("click",function(t){t.preventDefault(),s.value="",e.innerHTML=r?r.innerHTML:"Upload",o.style.display="none",n&&(n.style.display="block")}),"undefined"!==s.value&&""!==s.value){var a=s.value.split("\\").pop();a&&(e.innerHTML=a)}})}};t.fileUpload=i,e(document).ready(function(){t.fileUpload.init()})}(window,window.jQuery),function(t,e){var i={$instance:null,init:function(t){var s=i;s.$instance=e(".chosen-container"),s.$instance.length&&t&&s.$instance.unbind("touchstart.chosen").bind("touchstart.chosen",function(i){e.each(t,function(s,n){String(e(i.currentTarget).attr("id")).indexOf(t[s].attr("id"))>-1&&t[s].data("chosen").container_mousedown(i)})})}};t.fixChosen=i,e(document).ready(function(){t.fixChosen.init()})}(window,window.jQuery),function(t,e){var i=function(t){this.init(t)};i.prototype.init=function(t){var e=t;e.validate({errorElement:"span",errorPlacement:function(t,e){t.appendTo(e.closest(".form-group").find(".jqval"))},focusInvalid:!1,focusCleanup:!0,ignore:".ignore",rules:{Gender:!0,LastName:!0,FirstName:!0,DateOfBirth:{required:!0},Telephone:!0,Email:!0,ConfirmEmail:!0,Country:!0,Nationality:!0,CandidateOrigin:!0,ResumeFile:{extension:"pdf,txt,doc,docx,jpg,jpeg,mpeg"}},messages:{Gender:e.find("#Gender").attr("data-errormessage"),LastName:e.find("#LastName").attr("data-errormessage"),FirstName:e.find("#FirstName").attr("data-errormessage"),DateOfBirth:e.find("#DateOfBirth").attr("data-errormessage"),Telephone:e.find("#Telephone").attr("data-errormessage"),Email:e.find("#Email").attr("data-errormessage"),ConfirmEmail:e.find("#ConfirmEmail").attr("data-errormessage"),Country:e.find("#Country").attr("data-errormessage"),Nationality:e.find("#Nationality").attr("data-errormessage"),CandidateOrigin:e.find("#CandidateOrigin").attr("data-errormessage"),ResumeFile:e.find("#ResumeFile").attr("data-errormessage"),DisclaimerAccepted:e.find("#DisclaimerAccepted").attr("data-errormessage")}})},e(document).ready(function(){t.JVal=new i(e(".job-application-form"))})}(window,window.jQuery),function(t,e){var i=function(t){this.init(t)};i.prototype.init=function(t){function e(t){return document.getElementById(t)}function i(){d&&"undefined"!=typeof d&&(o=document.activeElement,l.setAttribute("aria-hidden","false"),p=!0,d.setAttribute("tabindex","0"),d.focus())}function s(t){!p||t.keyCode&&27!==t.keyCode||(l.setAttribute("aria-hidden","true"),d.setAttribute("tabindex","-1"),p=!1,o.focus())}function n(t){p&&!d.contains(t.target)&&(t.stopPropagation(),d.focus())}var o,r,a=e("modal-placeholder"),l=e("modal_window"),c=e("modal_close"),d=e("modalContainer"),h=document.querySelectorAll("*"),p=!1,u=function(){return"undefined"!=typeof window.Sitecore&&!!(window.Sitecore&&window.Sitecore.PageModes&&window.Sitecore.PageModes.PageEditor)};if(!u()&&a.firstElementChild)for(;a.children.length>1;)a.removeChild(a.lastChild);for(l&&l.addEventListener("click",function(t){t.target===d.parentNode&&s(t)},!1),c&&(c.addEventListener("click",s),document.addEventListener("keydown",s)),r=0;r<h.length;r++)h.item(r).addEventListener("focus",n);!u()&&l&&l.firstElementChild&&i()},e(document).ready(function(){t.modal=new i(e("#modal-placeholder"))})}(window,window.jQuery),function(t,e){var i,s,n,o=!1,r=!1;e(document).ready(function(){s=e(".sub-navigation-wrapper"),e(".sub-navigation-wrapper").css("height",window.innerHeight+"px"),e(window).scroll(function(t){var i=e(window).scrollTop();i>=60?e("header").addClass("fixed"):(e("header").removeClass("fixed"),e(window).width()>1025&&(e(".nav-mobile-icon").removeClass("close"),e(".sub-navigation-wrapper").stop(!0,!1).slideUp(400))),e(window).width()<1025&&e(".sub-navigation-wrapper").css("height",window.innerHeight+"px")}),e(".nav-right-wrapper .nav-list-wrapper li").each(function(){e(this).hover(function(t){if(e(window).width()>=1025){var n=e(this);clearTimeout(i),i=setTimeout(function(){e(".nav-right-wrapper .nav-list-wrapper li a").removeClass("open"),n.find("a").addClass("open"),e(".submenu").hide(),e(".sub-navigation-wrapper .nav-list-wrapper a").removeClass("active");var t=n.find("a").data("menu"),i=e(".submenu[data-menu='"+t+"']"),o=e(".sub-navigation-wrapper .nav-list-wrapper a[data-menu='"+t+"']");i.show(),o.addClass("active"),s.stop(!0,!1).slideDown(400)},250)}},function(t){if(e(window).width()>=1025){var s=e(".sub-navigation-wrapper");clearTimeout(i),i=setTimeout(function(){e(".nav-right-wrapper .nav-list-wrapper li a").removeClass("open"),s.stop(!0,!1).slideUp(400)},160)}})}),e(".sub-navigation-wrapper").hover(function(t){e(window).width()>=1025&&clearTimeout(i)},function(t){var s=e(this);e(window).width()>=1025&&!e("header").hasClass("fixed")&&(i=setTimeout(function(){s.stop(!0,!1).slideUp(400)},160))}),e(".nav-mobile-icon").click(function(){var t=e(".nav-right-wrapper .nav-list-wrapper a.active").data("menu");e(window).width()>=1025&&(e(".submenu").hide(),e(".submenu[data-menu='"+t+"']").show()),e(".sub-navigation-wrapper .nav-list-wrapper a").removeClass("active"),e(".sub-navigation-wrapper .nav-list-wrapper a[data-menu='"+t+"']").addClass("active"),e(this).hasClass("close")?(e(this).removeClass("close"),e("body").removeClass("no-scroll"),e(window).width()>=1025?s.stop(!0,!1).slideUp(400):(e(".submenu").removeClass("level-3"),e(".sub-navigation-left").removeClass("level-1"),e(".sub-navigation-right").removeClass("level-2"),e(".sub-navigation-wrapper").removeClass("sub-open"),e(".sub-navigation-wrapper .back-btn").hide(),e(".submenu[data-menu='"+n+"']").hide(),r=!1,o=!1)):(e(this).addClass("close"),e(window).width()>=1025?s.stop(!0,!1).slideDown(400):(e(".sub-navigation-wrapper").addClass("sub-open"),e(".sub-open").attr("style",""),e("body").addClass("no-scroll"),e(".sub-navigation-wrapper").css("height",window.innerHeight+"px")))}),e(".sub-navigation-left .nav-list-wrapper a[data-menu]").click(function(t){t.preventDefault();var i=e(this).data("menu");n=i,e(".sub-navigation-left .nav-list-wrapper a").removeClass("active"),e(this).addClass("active"),e(window).width()>=1025?(e(".submenu").hide(),e(".submenu[data-menu='"+i+"']").show()):(r=!0,e(".sub-navigation-left").addClass("level-1"),e(".sub-navigation-right").addClass("level-2"),e(".sub-navigation-wrapper .back-btn").show(),e(".submenu[data-menu='"+i+"']").show())}),e(".sub-navigation-right .arrow").click(function(t){o=!0,e(".sub-links").hide(),e(this).closest(".submenu").addClass("level-3"),e(this).parent().next().show()}),e(".sub-navigation-wrapper .back-btn").click(function(t){o?(o=!1,e(".submenu").removeClass("level-3")):r&&(r=!1,e(".sub-navigation-left").removeClass("level-1"),e(".sub-navigation-right").removeClass("level-2"),e(".sub-navigation-wrapper .back-btn").hide(),setTimeout(function(){e(".submenu[data-menu='"+n+"']").hide()},400))}),e(".nav-wrapper .nav-search").click(function(t){e(".global-search").css("margin-top","0")}),e(".nav-wrapper .nav-search .globe").click(function(t){t.stopPropagation()}),e(".global-search .close-btn").click(function(t){e(".global-search").css("margin-top","-50px")})})}(window,window.jQuery),function(t,e){var i=function(t){t.length&&this.init(t)};i.prototype.init=function(t){var i=t,s=i.width(),n=i.height(),o=i.data("lat"),r=i.data("long"),a=i.data("initzoom"),l="https://maps.googleapis.com/maps/api/staticmap?center="+o+","+r+"&zoom="+a+"&size="+s+"x"+n,c=e("<img />",{"class":"mapsPrintVersion",src:l,alt:"google.maps"});i.append(c)},e(document).ready(function(){t.printMap=new i(e(".googlemaps"))})}(window,window.jQuery),function(t){var e,i;e=function(){function e(e,i){var s;this.options=i,this.$element=t(e),this.didInit=!1,s=this,this.$element.on("click.slickLightbox",this.options.itemSelector,function(e){var i,n;if(e.preventDefault(),i=t(this),i.blur(),"function"!=typeof s.options.shouldOpen||s.options.shouldOpen(s,i,e))return n=s.filterOutSlickClones(s.$element.find(s.options.itemSelector)),s.init(n.index(i))})}return e.prototype.init=function(t){return this.didInit=!0,this.detectIE(),this.createModal(),this.bindEvents(),this.initSlick(t),this.open()},e.prototype.createModalItems=function(){var e,i,s,n,o,r;return n=this.options.lazyPlaceholder||"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",s=function(t,e,i){var s;return s=i===!0?' data-lazy="'+t+'" src="'+n+'" ':' src="'+t+'" ','<div class="slick-lightbox-slick-item">\n  <div class="slick-lightbox-slick-item-inner">\n    <img class="slick-lightbox-slick-img" '+s+" />\n    "+e+"\n  </div>\n</div>"},this.options.images?r=t.map(this.options.images,function(t){return s(t,this.options.lazy)}):(e=this.filterOutSlickClones(this.$element.find(this.options.itemSelector)),o=e.length,i=function(t){return function(e,i){var n,r,a;return r={index:i,length:o},n=t.getElementCaption(e,r),a=t.getElementSrc(e),s(a,n,t.options.lazy)}}(this),r=t.map(e,i)),r},e.prototype.createModal=function(){var e,i;return i=this.createModalItems(),e='<div class="slick-lightbox slick-lightbox-hide-init'+(this.isIE?" slick-lightbox-ie":"")+'" style="background: '+this.options.background+';">\n  <div class="slick-lightbox-inner">\n    <div class="slick-lightbox-slick slick-caption-'+this.options.captionPosition+'">'+i.join("")+"</div>\n  <div>\n<div>",this.$modalElement=t(e),this.$parts={},this.$parts.closeButton=t(this.options.layouts.closeButton),this.$modalElement.find(".slick-lightbox-inner").append(this.$parts.closeButton),t("body").append(this.$modalElement)},e.prototype.initSlick=function(e){var i;return i={initialSlide:e},this.options.lazy&&(i.lazyLoad="ondemand"),null!=this.options.slick?"function"==typeof this.options.slick?this.slick=this.options.slick(this.$modalElement):this.slick=this.$modalElement.find(".slick-lightbox-slick").slick(t.extend({},this.options.slick,i)):this.slick=this.$modalElement.find(".slick-lightbox-slick").slick(i),this.$modalElement.trigger("init.slickLightbox")},e.prototype.open=function(){return this.options.useHistoryApi&&this.writeHistory(),this.$element.trigger("show.slickLightbox"),setTimeout(function(t){return function(){return t.$element.trigger("shown.slickLightbox")}}(this),this.getTransitionDuration()),this.$modalElement.removeClass("slick-lightbox-hide-init")},e.prototype.close=function(){return this.$element.trigger("hide.slickLightbox"),setTimeout(function(t){return function(){return t.$element.trigger("hidden.slickLightbox")}}(this),this.getTransitionDuration()),this.$modalElement.addClass("slick-lightbox-hide"),this.destroy()},e.prototype.bindEvents=function(){var e;if(e=function(t){return function(){var e;return e=t.$modalElement.find(".slick-lightbox-inner").height(),t.$modalElement.find(".slick-lightbox-slick-item").height(e),t.$modalElement.find(".slick-lightbox-slick-img, .slick-lightbox-slick-item-inner").css("max-height",Math.round(t.options.imageMaxHeight*e))}}(this),t(window).on("orientationchange.slickLightbox resize.slickLightbox",e),this.options.useHistoryApi&&t(window).on("popstate.slickLightbox",function(t){return function(){return t.close()}}(this)),this.$modalElement.on("init.slickLightbox",e),this.$modalElement.on("destroy.slickLightbox",function(t){return function(){return t.destroy()}}(this)),this.$element.on("destroy.slickLightbox",function(t){return function(){return t.destroy(!0)}}(this)),this.$parts.closeButton.on("click.slickLightbox touchstart.slickLightbox",function(t){return function(e){return e.preventDefault(),t.close()}}(this)),(this.options.closeOnEscape||this.options.navigateByKeyboard)&&t(document).on("keydown.slickLightbox",function(t){return function(e){var i;if(i=e.keyCode?e.keyCode:e.which,t.options.navigateByKeyboard&&(37===i?t.slideSlick("left"):39===i&&t.slideSlick("right")),t.options.closeOnEscape&&27===i)return t.close()}}(this)),this.options.closeOnBackdropClick)return this.$modalElement.on("click.slickLightbox touchstart.slickLightbox",".slick-lightbox-slick-img",function(t){return t.stopPropagation()}),this.$modalElement.on("click.slickLightbox",".slick-lightbox-slick-item",function(t){return function(e){return e.preventDefault(),t.close()}}(this))},e.prototype.slideSlick=function(t){return"left"===t?this.slick.slick("slickPrev"):this.slick.slick("slickNext")},e.prototype.detectIE=function(){var t;if(this.isIE=!1,/MSIE (\d+\.\d+);/.test(navigator.userAgent)&&(t=new Number(RegExp.$1),t<9))return this.isIE=!0},e.prototype.getElementCaption=function(e,i){var s;return this.options.caption?(s=function(){switch(typeof this.options.caption){case"function":return this.options.caption(e,i);case"string":return t(e).data(this.options.caption)}}.call(this),'<span class="slick-lightbox-slick-caption">'+s+"</span>"):""},e.prototype.getElementSrc=function(e){switch(typeof this.options.src){case"function":return this.options.src(e);case"string":return t(e).attr(this.options.src);default:return e.href}},e.prototype.unbindEvents=function(){return t(window).off(".slickLightbox"),t(document).off(".slickLightbox"),this.$modalElement.off(".slickLightbox")},e.prototype.destroy=function(t){if(null==t&&(t=!1),this.didInit&&(this.unbindEvents(),setTimeout(function(t){return function(){return t.$modalElement.remove()}}(this),this.options.destroyTimeout)),t)return this.$element.off(".slickLightbox"),this.$element.off(".slickLightbox",this.options.itemSelector)},e.prototype.destroyPrevious=function(){return t("body").children(".slick-lightbox").trigger("destroy.slickLightbox")},e.prototype.getTransitionDuration=function(){var t;return this.transitionDuration?this.transitionDuration:(t=this.$modalElement.css("transition-duration"),"undefined"==typeof t?this.transitionDuration=500:this.transitionDuration=t.indexOf("ms")>-1?parseFloat(t):1e3*parseFloat(t))},e.prototype.writeHistory=function(){return"undefined"!=typeof history&&null!==history&&"function"==typeof history.pushState?history.pushState(null,null,""):void 0},e.prototype.filterOutSlickClones=function(e){return this.$element.hasClass("slick-slider")?e=e.filter(function(){var e;return e=t(this),!e.hasClass("slick-cloned")&&0===e.parents(".slick-cloned").length}):e},e}(),i={background:"rgba(0,0,0,.8)",closeOnEscape:!0,closeOnBackdropClick:!0,destroyTimeout:500,itemSelector:"a",navigateByKeyboard:!0,src:!1,caption:!1,captionPosition:"dynamic",images:!1,slick:{},useHistoryApi:!1,layouts:{closeButton:'<button type="button" class="slick-lightbox-close"></button>'},shouldOpen:null,imageMaxHeight:.9,lazy:!1},t.fn.slickLightbox=function(s){return s=t.extend({},i,s),t(this).each(function(){return this.slickLightbox=new e(this,s)}),this},t.fn.unslickLightbox=function(){return t(this).trigger("destroy.slickLightbox").each(function(){return this.slickLightbox=null})}}(jQuery),function(t,e){e(document).ready(function(){if(e(".image-slider-wrapper").length){var t=e(".image-slider-wrapper").data(),i={dots:!0,infinite:!0,speed:300,slidesToShow:1,centerMode:!0,variableWidth:!0},s=e.extend(i,t);e(".image-slider-wrapper").slick(s),e(".image-slider-wrapper").on("afterChange",function(){window.SlideAdapt.init(e(".image-slider-wrapper"))});var n={slidesToScroll:1,asNavFor:".image-slider-wrapper",focusOnSelect:!0,infinite:!0};s=e.extend(s,n),e(".slider-nav").slick(s),e(".image-slider-wrapper").slickLightbox({src:"data-imgsrc",itemSelector:".slick-slide img",navigateByKeyboard:!0,caption:"caption",useHistoryApi:!0,captionPosition:"bottom"})}})}(window,window.jQuery),function(t,e){var i=function(t){this.init(t),this.resize(t)};i.prototype.init=function(t){var i=t;i.each(function(){var t=e(this),i=t.find(".slick-active"),s=i.width(),n=t.width(),o=(s-n)/2,r=i.find("p");t.find("p").removeAttr("style"),s>n&&r.css({left:o,maxWidth:n})})},i.prototype.resize=function(t){e(window).resize(function(){window.SlideAdapt.init(t)})},e(document).ready(function(){t.SlideAdapt=new i(e(".image-slider-wrapper"))})}(window,window.jQuery),function(t,e){var i=function(t){this.init(t)};i.prototype.init=function(t){var e=t;e.jsSocials({shares:["email","twitter","facebook","linkedin"],url:window.location.href,text:"This is custom sharing text",shareIn:"popup",on:{click:function(t){},mouseenter:function(t){},mouseleave:function(t){}}})},e(document).ready(function(){t.socialShare=new i(e(".socialShare"))})}(window,window.jQuery),function(t,e){var i={isScrolledIntoView:function(t){if(!t.length)return!1;var i=e(window),s=i.scrollTop(),n=s+i.height(),o=t.offset().top,r=o+t.height();return r<=n&&o>=s},scrollToAnchor:function(t,i){e(t).length&&(i||(i=0),e("html, body").stop().animate({scrollTop:e(t).offset().top-i},500,"swing",function(){window.location.hash=t}))},scrollToElementBottom:function(t){t.length&&e("html, body").stop().animate({scrollTop:t.offset().top+t.outerHeight()-e(window).height()},500,"swing")}};t.tools=i}(window,window.jQuery),function(t,e){var i=function(t){this.$elm=t};i.prototype.makeGrey=function(){this.$elm.css("background","darkgrey")},i.prototype.makeLightgrey=function(){this.$elm.css("background","lightgrey")},t.SampleComp=i}(window,window.jQuery),window.jQuery=jQuery.noConflict(),function(t,e){e(document).ready(function(){e(".slide-title").matchHeight(),e(".matchHeight").matchHeight();var t=window.location.href;/jobs\/details/.test(t)&&e("body").addClass("jobDetail"),e('a[href^="http"],a[href^="www"]').each(function(){e(this).text()===e(this).attr("href")&&e(this).wrapInner('<span style="word-break:break-all;"></span>')});var i="dd/mm/yy";e(".datepicker").each(function(t,s){e(this).datepicker({minDate:e(this).data("mindate"),dateFormat:i})}),e(".datepicker-container").on("click",function(t){e(this).find("input.datepicker").focus()}),e(function(){var t=window.navigator.userAgent,i=t.indexOf("MSIE "),s=t.indexOf("Trident/"),n=i>0||s>0,o=!!t.match(/iPad/i)||!!t.match(/iPhone/i),r=!!t.match(/WebKit/i),a=o&&r&&!t.match(/CriOS/i),l=t.indexOf("Safari")!==-1&&t.indexOf("Chrome")===-1&&!a;(l||n)&&(console.log("The 'date' input type is not supported, using JQueryUI datepicker instead."),e('[type="date"]').datepicker())})})}(window,window.jQuery);;
