Skip to content

Instantly share code, notes, and snippets.

@Joachimaus
Created May 10, 2021 07:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Joachimaus/7b0dab98444eee5fb1d6aa19eb9042e0 to your computer and use it in GitHub Desktop.
Save Joachimaus/7b0dab98444eee5fb1d6aa19eb9042e0 to your computer and use it in GitHub Desktop.
function MarkerClusterer(e,t,n){this.extend(MarkerClusterer,google.maps.OverlayView),this.map_=e,this.markers_=[],this.clusters_=[],this.sizes=[53,56,66,78,90],this.styles_=[],this.ready_=!1;var i=n||{};this.gridSize_=i.gridSize||60,this.minClusterSize_=i.minimumClusterSize||2,this.maxZoom_=i.maxZoom||null,this.styles_=i.styles||[],this.imagePath_=i.imagePath||this.MARKER_CLUSTER_IMAGE_PATH_,this.imageExtension_=i.imageExtension||this.MARKER_CLUSTER_IMAGE_EXTENSION_,this.zoomOnClick_=!0,null!=i.zoomOnClick&&(this.zoomOnClick_=i.zoomOnClick),this.averageCenter_=!1,null!=i.averageCenter&&(this.averageCenter_=i.averageCenter),this.setupStyles_(),this.setMap(e),this.prevZoom_=this.map_.getZoom();var o=this;google.maps.event.addListener(this.map_,"zoom_changed",function(){var e=o.map_.getZoom();o.prevZoom_!=e&&(o.prevZoom_=e,o.resetViewport())}),google.maps.event.addListener(this.map_,"idle",function(){o.redraw()}),t&&t.length&&this.addMarkers(t,!1)}function Cluster(e){this.markerClusterer_=e,this.map_=e.getMap(),this.gridSize_=e.getGridSize(),this.minClusterSize_=e.getMinClusterSize(),this.averageCenter_=e.isAverageCenter(),this.center_=null,this.markers_=[],this.bounds_=null,this.clusterIcon_=new ClusterIcon(this,e.getStyles(),e.getGridSize())}function ClusterIcon(e,t,n){e.getMarkerClusterer().extend(ClusterIcon,google.maps.OverlayView),this.styles_=t,this.padding_=n||0,this.cluster_=e,this.center_=null,this.map_=e.getMap(),this.div_=null,this.sums_=null,this.visible_=!1,this.setMap(this.map_)}!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("jquery")):"function"==typeof define&&define.amd?define(["exports","jquery"],t):t(e.bootstrap={},e.jQuery)}(this,function(e,t){"use strict";function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function a(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}function l(o){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},t=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),t.forEach(function(e){var t,n,i;t=o,i=r[n=e],n in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i})}return o}t=t&&t.hasOwnProperty("default")?t.default:t;var o,n,c,h=(n="transitionend",c={TRANSITION_END:"bsTransitionEnd",getUID:function(e){for(;e+=~~(1e6*Math.random()),document.getElementById(e););return e},getSelectorFromElement:function(e){var t=e.getAttribute("data-target");t&&"#"!==t||(t=e.getAttribute("href")||"");try{return document.querySelector(t)?t:null}catch(e){return null}},getTransitionDurationFromElement:function(e){if(!e)return 0;var t=o(e).css("transition-duration");return parseFloat(t)?(t=t.split(",")[0],1e3*parseFloat(t)):0},reflow:function(e){return e.offsetHeight},triggerTransitionEnd:function(e){o(e).trigger(n)},supportsTransitionEnd:function(){return Boolean(n)},isElement:function(e){return(e[0]||e).nodeType},typeCheckConfig:function(e,t,n){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var o=n[i],r=t[i],a=r&&c.isElement(r)?"element":(s=r,{}.toString.call(s).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(o).test(a))throw new Error(e.toUpperCase()+': Option "'+i+'" provided type "'+a+'" but expected type "'+o+'".')}var s}},(o=t).fn.emulateTransitionEnd=r,o.event.special[c.TRANSITION_END]={bindType:n,delegateType:n,handle:function(e){if(o(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}},c);function r(e){var t=this,n=!1;return o(this).one(c.TRANSITION_END,function(){n=!0}),setTimeout(function(){n||c.triggerTransitionEnd(t)},e),this}for(var s,d,u,p,f,g,m,v,b,y,k,w,_,x,C,T,S,M,E,D,A,I,$,P,L,O,N,j,F,z,H,R,B,q,Y,W,U,V,Q,X,K,Z,J,G,ee,te,ne,ie,oe,re,ae,se,le,ce,de,ue,pe,he,fe,ge,me,ve,be,ye,ke,we,_e,xe,Ce,Te,Se,Me=(d="alert",p="."+(u="bs.alert"),f=(s=t).fn[d],g={CLOSE:"close"+p,CLOSED:"closed"+p,CLICK_DATA_API:"click"+p+".data-api"},m="alert",v="fade",b="show",y=function(){function i(e){this._element=e}var e=i.prototype;return e.close=function(e){var t=this._element;e&&(t=this._getRootElement(e)),this._triggerCloseEvent(t).isDefaultPrevented()||this._removeElement(t)},e.dispose=function(){s.removeData(this._element,u),this._element=null},e._getRootElement=function(e){var t=h.getSelectorFromElement(e),n=!1;return t&&(n=document.querySelector(t)),n=n||s(e).closest("."+m)[0]},e._triggerCloseEvent=function(e){var t=s.Event(g.CLOSE);return s(e).trigger(t),t},e._removeElement=function(t){var e,n=this;s(t).removeClass(b),s(t).hasClass(v)?(e=h.getTransitionDurationFromElement(t),s(t).one(h.TRANSITION_END,function(e){return n._destroyElement(t,e)}).emulateTransitionEnd(e)):this._destroyElement(t)},e._destroyElement=function(e){s(e).detach().trigger(g.CLOSED).remove()},i._jQueryInterface=function(n){return this.each(function(){var e=s(this),t=e.data(u);t||(t=new i(this),e.data(u,t)),"close"===n&&t[n](this)})},i._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},a(i,null,[{key:"VERSION",get:function(){return"4.1.3"}}]),i}(),s(document).on(g.CLICK_DATA_API,'[data-dismiss="alert"]',y._handleDismiss(new y)),s.fn[d]=y._jQueryInterface,s.fn[d].Constructor=y,s.fn[d].noConflict=function(){return s.fn[d]=f,y._jQueryInterface},y),Ee=(w="button",x="."+(_="bs.button"),C=".data-api",T=(k=t).fn[w],S="active",M="btn",D='[data-toggle^="button"]',A='[data-toggle="buttons"]',I="input",$=".active",P=".btn",L={CLICK_DATA_API:"click"+x+C,FOCUS_BLUR_DATA_API:(E="focus")+x+C+" blur"+x+C},O=function(){function n(e){this._element=e}var e=n.prototype;return e.toggle=function(){var e=!0,t=!0,n=k(this._element).closest(A)[0];if(n){var i,o=this._element.querySelector(I);if(o){if("radio"===o.type&&(o.checked&&this._element.classList.contains(S)?e=!1:(i=n.querySelector($))&&k(i).removeClass(S)),e){if(o.hasAttribute("disabled")||n.hasAttribute("disabled")||o.classList.contains("disabled")||n.classList.contains("disabled"))return;o.checked=!this._element.classList.contains(S),k(o).trigger("change")}o.focus(),t=!1}}t&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(S)),e&&k(this._element).toggleClass(S)},e.dispose=function(){k.removeData(this._element,_),this._element=null},n._jQueryInterface=function(t){return this.each(function(){var e=k(this).data(_);e||(e=new n(this),k(this).data(_,e)),"toggle"===t&&e[t]()})},a(n,null,[{key:"VERSION",get:function(){return"4.1.3"}}]),n}(),k(document).on(L.CLICK_DATA_API,D,function(e){e.preventDefault();var t=e.target;k(t).hasClass(M)||(t=k(t).closest(P)),O._jQueryInterface.call(k(t),"toggle")}).on(L.FOCUS_BLUR_DATA_API,D,function(e){var t=k(e.target).closest(P)[0];k(t).toggleClass(E,/^focus(in)?$/.test(e.type))}),k.fn[w]=O._jQueryInterface,k.fn[w].Constructor=O,k.fn[w].noConflict=function(){return k.fn[w]=T,O._jQueryInterface},O),De=(j="carousel",z="."+(F="bs.carousel"),H=".data-api",R=(N=t).fn[j],B={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0},q={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean"},Y="next",W="prev",U="left",V="right",Q={SLIDE:"slide"+z,SLID:"slid"+z,KEYDOWN:"keydown"+z,MOUSEENTER:"mouseenter"+z,MOUSELEAVE:"mouseleave"+z,TOUCHEND:"touchend"+z,LOAD_DATA_API:"load"+z+H,CLICK_DATA_API:"click"+z+H},X="carousel",K="active",Z="slide",J="carousel-item-right",G="carousel-item-left",ee="carousel-item-next",te="carousel-item-prev",ne=".active",ie=".active.carousel-item",oe=".carousel-item",re=".carousel-item-next, .carousel-item-prev",ae=".carousel-indicators",se="[data-slide], [data-slide-to]",le='[data-ride="carousel"]',ce=function(){function r(e,t){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this._config=this._getConfig(t),this._element=N(e)[0],this._indicatorsElement=this._element.querySelector(ae),this._addEventListeners()}var e=r.prototype;return e.next=function(){this._isSliding||this._slide(Y)},e.nextWhenVisible=function(){!document.hidden&&N(this._element).is(":visible")&&"hidden"!==N(this._element).css("visibility")&&this.next()},e.prev=function(){this._isSliding||this._slide(W)},e.pause=function(e){e||(this._isPaused=!0),this._element.querySelector(re)&&(h.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},e.cycle=function(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},e.to=function(e){var t=this;this._activeElement=this._element.querySelector(ie);var n=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0))if(this._isSliding)N(this._element).one(Q.SLID,function(){return t.to(e)});else{if(n===e)return this.pause(),void this.cycle();var i=n<e?Y:W;this._slide(i,this._items[e])}},e.dispose=function(){N(this._element).off(z),N.removeData(this._element,F),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},e._getConfig=function(e){return e=l({},B,e),h.typeCheckConfig(j,e,q),e},e._addEventListeners=function(){var t=this;this._config.keyboard&&N(this._element).on(Q.KEYDOWN,function(e){return t._keydown(e)}),"hover"===this._config.pause&&(N(this._element).on(Q.MOUSEENTER,function(e){return t.pause(e)}).on(Q.MOUSELEAVE,function(e){return t.cycle(e)}),"ontouchstart"in document.documentElement&&N(this._element).on(Q.TOUCHEND,function(){t.pause(),t.touchTimeout&&clearTimeout(t.touchTimeout),t.touchTimeout=setTimeout(function(e){return t.cycle(e)},500+t._config.interval)}))},e._keydown=function(e){if(!/input|textarea/i.test(e.target.tagName))switch(e.which){case 37:e.preventDefault(),this.prev();break;case 39:e.preventDefault(),this.next()}},e._getItemIndex=function(e){return this._items=e&&e.parentNode?[].slice.call(e.parentNode.querySelectorAll(oe)):[],this._items.indexOf(e)},e._getItemByDirection=function(e,t){var n=e===Y,i=e===W,o=this._getItemIndex(t),r=this._items.length-1;if((i&&0===o||n&&o===r)&&!this._config.wrap)return t;var a=(o+(e===W?-1:1))%this._items.length;return-1==a?this._items[this._items.length-1]:this._items[a]},e._triggerSlideEvent=function(e,t){var n=this._getItemIndex(e),i=this._getItemIndex(this._element.querySelector(ie)),o=N.Event(Q.SLIDE,{relatedTarget:e,direction:t,from:i,to:n});return N(this._element).trigger(o),o},e._setActiveIndicatorElement=function(e){var t,n;this._indicatorsElement&&(t=[].slice.call(this._indicatorsElement.querySelectorAll(ne)),N(t).removeClass(K),(n=this._indicatorsElement.children[this._getItemIndex(e)])&&N(n).addClass(K))},e._slide=function(e,t){var n,i,o,r,a=this,s=this._element.querySelector(ie),l=this._getItemIndex(s),c=t||s&&this._getItemByDirection(e,s),d=this._getItemIndex(c),u=Boolean(this._interval),p=e===Y?(n=G,i=ee,U):(n=J,i=te,V);c&&N(c).hasClass(K)?this._isSliding=!1:this._triggerSlideEvent(c,p).isDefaultPrevented()||s&&c&&(this._isSliding=!0,u&&this.pause(),this._setActiveIndicatorElement(c),o=N.Event(Q.SLID,{relatedTarget:c,direction:p,from:l,to:d}),N(this._element).hasClass(Z)?(N(c).addClass(i),h.reflow(c),N(s).addClass(n),N(c).addClass(n),r=h.getTransitionDurationFromElement(s),N(s).one(h.TRANSITION_END,function(){N(c).removeClass(n+" "+i).addClass(K),N(s).removeClass(K+" "+i+" "+n),a._isSliding=!1,setTimeout(function(){return N(a._element).trigger(o)},0)}).emulateTransitionEnd(r)):(N(s).removeClass(K),N(c).addClass(K),this._isSliding=!1,N(this._element).trigger(o)),u&&this.cycle())},r._jQueryInterface=function(i){return this.each(function(){var e=N(this).data(F),t=l({},B,N(this).data());"object"==typeof i&&(t=l({},t,i));var n="string"==typeof i?i:t.slide;if(e||(e=new r(this,t),N(this).data(F,e)),"number"==typeof i)e.to(i);else if("string"==typeof n){if(void 0===e[n])throw new TypeError('No method named "'+n+'"');e[n]()}else t.interval&&(e.pause(),e.cycle())})},r._dataApiClickHandler=function(e){var t,n,i,o=h.getSelectorFromElement(this);!o||(t=N(o)[0])&&N(t).hasClass(X)&&(n=l({},N(t).data(),N(this).data()),(i=this.getAttribute("data-slide-to"))&&(n.interval=!1),r._jQueryInterface.call(N(t),n),i&&N(t).data(F).to(i),e.preventDefault())},a(r,null,[{key:"VERSION",get:function(){return"4.1.3"}},{key:"Default",get:function(){return B}}]),r}(),N(document).on(Q.CLICK_DATA_API,se,ce._dataApiClickHandler),N(window).on(Q.LOAD_DATA_API,function(){for(var e=[].slice.call(document.querySelectorAll(le)),t=0,n=e.length;t<n;t++){var i=N(e[t]);ce._jQueryInterface.call(i,i.data())}}),N.fn[j]=ce._jQueryInterface,N.fn[j].Constructor=ce,N.fn[j].noConflict=function(){return N.fn[j]=R,ce._jQueryInterface},ce),Ae=(ue="collapse",he="."+(pe="bs.collapse"),fe=(de=t).fn[ue],ge={toggle:!0,parent:""},me={toggle:"boolean",parent:"(string|element)"},ve={SHOW:"show"+he,SHOWN:"shown"+he,HIDE:"hide"+he,HIDDEN:"hidden"+he,CLICK_DATA_API:"click"+he+".data-api"},be="show",ye="collapse",ke="collapsing",we="collapsed",_e="width",xe="height",Ce=".show, .collapsing",Te='[data-toggle="collapse"]',Se=function(){function s(t,e){this._isTransitioning=!1,this._element=t,this._config=this._getConfig(e),this._triggerArray=de.makeArray(document.querySelectorAll('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'));for(var n=[].slice.call(document.querySelectorAll(Te)),i=0,o=n.length;i<o;i++){var r=n[i],a=h.getSelectorFromElement(r),s=[].slice.call(document.querySelectorAll(a)).filter(function(e){return e===t});null!==a&&0<s.length&&(this._selector=a,this._triggerArray.push(r))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var e=s.prototype;return e.toggle=function(){de(this._element).hasClass(be)?this.hide():this.show()},e.show=function(){var e,t,n,i,o,r,a=this;this._isTransitioning||de(this._element).hasClass(be)||(this._parent&&0===(e=[].slice.call(this._parent.querySelectorAll(Ce)).filter(function(e){return e.getAttribute("data-parent")===a._config.parent})).length&&(e=null),e&&(t=de(e).not(this._selector).data(pe))&&t._isTransitioning||(n=de.Event(ve.SHOW),de(this._element).trigger(n),n.isDefaultPrevented()||(e&&(s._jQueryInterface.call(de(e).not(this._selector),"hide"),t||de(e).data(pe,null)),i=this._getDimension(),de(this._element).removeClass(ye).addClass(ke),this._element.style[i]=0,this._triggerArray.length&&de(this._triggerArray).removeClass(we).attr("aria-expanded",!0),this.setTransitioning(!0),o="scroll"+(i[0].toUpperCase()+i.slice(1)),r=h.getTransitionDurationFromElement(this._element),de(this._element).one(h.TRANSITION_END,function(){de(a._element).removeClass(ke).addClass(ye).addClass(be),a._element.style[i]="",a.setTransitioning(!1),de(a._element).trigger(ve.SHOWN)}).emulateTransitionEnd(r),this._element.style[i]=this._element[o]+"px")))},e.hide=function(){var e=this;if(!this._isTransitioning&&de(this._element).hasClass(be)){var t=de.Event(ve.HIDE);if(de(this._element).trigger(t),!t.isDefaultPrevented()){var n=this._getDimension();this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",h.reflow(this._element),de(this._element).addClass(ke).removeClass(ye).removeClass(be);var i=this._triggerArray.length;if(0<i)for(var o=0;o<i;o++){var r=this._triggerArray[o],a=h.getSelectorFromElement(r);null!==a&&(de([].slice.call(document.querySelectorAll(a))).hasClass(be)||de(r).addClass(we).attr("aria-expanded",!1))}this.setTransitioning(!0);this._element.style[n]="";var s=h.getTransitionDurationFromElement(this._element);de(this._element).one(h.TRANSITION_END,function(){e.setTransitioning(!1),de(e._element).removeClass(ke).addClass(ye).trigger(ve.HIDDEN)}).emulateTransitionEnd(s)}}},e.setTransitioning=function(e){this._isTransitioning=e},e.dispose=function(){de.removeData(this._element,pe),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},e._getConfig=function(e){return(e=l({},ge,e)).toggle=Boolean(e.toggle),h.typeCheckConfig(ue,e,me),e},e._getDimension=function(){return de(this._element).hasClass(_e)?_e:xe},e._getParent=function(){var n=this,e=null;h.isElement(this._config.parent)?(e=this._config.parent,void 0!==this._config.parent.jquery&&(e=this._config.parent[0])):e=document.querySelector(this._config.parent);var t='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',i=[].slice.call(e.querySelectorAll(t));return de(i).each(function(e,t){n._addAriaAndCollapsedClass(s._getTargetFromElement(t),[t])}),e},e._addAriaAndCollapsedClass=function(e,t){var n;e&&(n=de(e).hasClass(be),t.length&&de(t).toggleClass(we,!n).attr("aria-expanded",n))},s._getTargetFromElement=function(e){var t=h.getSelectorFromElement(e);return t?document.querySelector(t):null},s._jQueryInterface=function(i){return this.each(function(){var e=de(this),t=e.data(pe),n=l({},ge,e.data(),"object"==typeof i&&i?i:{});if(!t&&n.toggle&&/show|hide/.test(i)&&(n.toggle=!1),t||(t=new s(this,n),e.data(pe,t)),"string"==typeof i){if(void 0===t[i])throw new TypeError('No method named "'+i+'"');t[i]()}})},a(s,null,[{key:"VERSION",get:function(){return"4.1.3"}},{key:"Default",get:function(){return ge}}]),s}(),de(document).on(ve.CLICK_DATA_API,Te,function(e){"A"===e.currentTarget.tagName&&e.preventDefault();var n=de(this),t=h.getSelectorFromElement(this),i=[].slice.call(document.querySelectorAll(t));de(i).each(function(){var e=de(this),t=e.data(pe)?"toggle":n.data();Se._jQueryInterface.call(e,t)})}),de.fn[ue]=Se._jQueryInterface,de.fn[ue].Constructor=Se,de.fn[ue].noConflict=function(){return de.fn[ue]=fe,Se._jQueryInterface},Se),Ie="undefined"!=typeof window&&"undefined"!=typeof document,$e=["Edge","Trident","Firefox"],Pe=0,Le=0;Le<$e.length;Le+=1)if(Ie&&0<=navigator.userAgent.indexOf($e[Le])){Pe=1;break}var Oe=Ie&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},Pe))}};function Ne(e){return e&&"[object Function]"==={}.toString.call(e)}function je(e,t){if(1!==e.nodeType)return[];var n=getComputedStyle(e,null);return t?n[t]:n}function Fe(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function ze(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=je(e),n=t.overflow,i=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+i)?e:ze(Fe(e))}var He=Ie&&!(!window.MSInputMethodContext||!document.documentMode),Re=Ie&&/MSIE 10/.test(navigator.userAgent);function Be(e){return 11===e?He:10!==e&&He||Re}function qe(e){if(!e)return document.documentElement;for(var t=Be(10)?document.body:null,n=e.offsetParent;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TD","TABLE"].indexOf(n.nodeName)&&"static"===je(n,"position")?qe(n):n:e?e.ownerDocument.documentElement:document.documentElement}function Ye(e){return null!==e.parentNode?Ye(e.parentNode):e}function We(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?e:t,o=n?t:e,r=document.createRange();r.setStart(i,0),r.setEnd(o,0);var a,s,l=r.commonAncestorContainer;if(e!==l&&t!==l||i.contains(o))return"BODY"===(s=(a=l).nodeName)||"HTML"!==s&&qe(a.firstElementChild)!==a?qe(l):l;var c=Ye(e);return c.host?We(c.host,t):We(e,Ye(t).host)}function Ue(e,t){var n="top"===(1<arguments.length&&void 0!==t?t:"top")?"scrollTop":"scrollLeft",i=e.nodeName;if("BODY"!==i&&"HTML"!==i)return e[n];var o=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||o)[n]}function Ve(e,t){var n="x"===t?"Left":"Top",i="Left"==n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"],10)+parseFloat(e["border"+i+"Width"],10)}function Qe(e,t,n,i){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],Be(10)?n["offset"+e]+i["margin"+("Height"===e?"Top":"Left")]+i["margin"+("Height"===e?"Bottom":"Right")]:0)}function Xe(){var e=document.body,t=document.documentElement,n=Be(10)&&getComputedStyle(t);return{height:Qe("Height",e,t,n),width:Qe("Width",e,t,n)}}var Ke=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Ze=function(e,t,n){return t&&Je(e.prototype,t),n&&Je(e,n),e};function Je(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Ge(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var et=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e};function tt(e){return et({},e,{right:e.left+e.width,bottom:e.top+e.height})}function nt(e){var t,n,i={};try{Be(10)?(i=e.getBoundingClientRect(),t=Ue(e,"top"),n=Ue(e,"left"),i.top+=t,i.left+=n,i.bottom+=t,i.right+=n):i=e.getBoundingClientRect()}catch(e){}var o,r={left:i.left,top:i.top,width:i.right-i.left,height:i.bottom-i.top},a="HTML"===e.nodeName?Xe():{},s=a.width||e.clientWidth||r.right-r.left,l=a.height||e.clientHeight||r.bottom-r.top,c=e.offsetWidth-s,d=e.offsetHeight-l;return(c||d)&&(c-=Ve(o=je(e),"x"),d-=Ve(o,"y"),r.width-=c,r.height-=d),tt(r)}function it(e,t,n){var i=2<arguments.length&&void 0!==n&&n,o=Be(10),r="HTML"===t.nodeName,a=nt(e),s=nt(t),l=ze(e),c=je(t),d=parseFloat(c.borderTopWidth,10),u=parseFloat(c.borderLeftWidth,10);i&&"HTML"===t.nodeName&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var p,h,f=tt({top:a.top-s.top-d,left:a.left-s.left-u,width:a.width,height:a.height});return f.marginTop=0,f.marginLeft=0,!o&&r&&(p=parseFloat(c.marginTop,10),h=parseFloat(c.marginLeft,10),f.top-=d-p,f.bottom-=d-p,f.left-=u-h,f.right-=u-h,f.marginTop=p,f.marginLeft=h),(o&&!i?t.contains(l):t===l&&"BODY"!==l.nodeName)&&(f=function(e,t,n){var i=2<arguments.length&&void 0!==n&&n,o=Ue(t,"top"),r=Ue(t,"left"),a=i?-1:1;return e.top+=o*a,e.bottom+=o*a,e.left+=r*a,e.right+=r*a,e}(f,t)),f}function ot(e){if(!e||!e.parentElement||Be())return document.documentElement;for(var t=e.parentElement;t&&"none"===je(t,"transform");)t=t.parentElement;return t||document.documentElement}function rt(e,t,n,i,o){var r,a,s,l,c,d=4<arguments.length&&void 0!==o&&o,u={top:0,left:0},p=d?ot(e):We(e,t);return"viewport"===i?u=function(e,t){var n=1<arguments.length&&void 0!==t&&t,i=e.ownerDocument.documentElement,o=it(e,i),r=Math.max(i.clientWidth,window.innerWidth||0),a=Math.max(i.clientHeight,window.innerHeight||0),s=n?0:Ue(i),l=n?0:Ue(i,"left");return tt({top:s-o.top+o.marginTop,left:l-o.left+o.marginLeft,width:r,height:a})}(p,d):(r=void 0,"scrollParent"===i?"BODY"===(r=ze(Fe(t))).nodeName&&(r=e.ownerDocument.documentElement):r="window"===i?e.ownerDocument.documentElement:i,a=it(r,p,d),"HTML"!==r.nodeName||function e(t){var n=t.nodeName;return"BODY"!==n&&"HTML"!==n&&("fixed"===je(t,"position")||e(Fe(t)))}(p)?u=a:(l=(s=Xe()).height,c=s.width,u.top+=a.top-a.marginTop,u.bottom=l+a.top,u.left+=a.left-a.marginLeft,u.right=c+a.left)),u.left+=n,u.top+=n,u.right-=n,u.bottom-=n,u}function at(e,t,i,n,o,r){var a=5<arguments.length&&void 0!==r?r:0;if(-1===e.indexOf("auto"))return e;var s=rt(i,n,a,o),l={top:{width:s.width,height:t.top-s.top},right:{width:s.right-t.right,height:s.height},bottom:{width:s.width,height:s.bottom-t.bottom},left:{width:t.left-s.left,height:s.height}},c=Object.keys(l).map(function(e){return et({key:e},l[e],{area:(t=l[e]).width*t.height});var t}).sort(function(e,t){return t.area-e.area}),d=c.filter(function(e){var t=e.width,n=e.height;return t>=i.clientWidth&&n>=i.clientHeight}),u=0<d.length?d[0].key:c[0].key,p=e.split("-")[1];return u+(p?"-"+p:"")}function st(e,t,n,i){var o=3<arguments.length&&void 0!==i?i:null;return it(n,o?ot(t):We(t,n),o)}function lt(e){var t=getComputedStyle(e),n=parseFloat(t.marginTop)+parseFloat(t.marginBottom),i=parseFloat(t.marginLeft)+parseFloat(t.marginRight);return{width:e.offsetWidth+i,height:e.offsetHeight+n}}function ct(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function dt(e,t,n){n=n.split("-")[0];var i=lt(e),o={width:i.width,height:i.height},r=-1!==["right","left"].indexOf(n),a=r?"top":"left",s=r?"left":"top",l=r?"height":"width",c=r?"width":"height";return o[a]=t[a]+t[l]/2-i[l]/2,o[s]=n===s?t[s]-i[c]:t[ct(s)],o}function ut(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function pt(e,n,t){return(void 0===t?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===n});var i=ut(e,function(e){return e[t]===n});return e.indexOf(i)}(e,"name",t))).forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var t=e.function||e.fn;e.enabled&&Ne(t)&&(n.offsets.popper=tt(n.offsets.popper),n.offsets.reference=tt(n.offsets.reference),n=t(n,e))}),n}function ht(e,n){return e.some(function(e){var t=e.name;return e.enabled&&t===n})}function ft(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),i=0;i<t.length;i++){var o=t[i],r=o?""+o+n:e;if(void 0!==document.body.style[r])return r}return null}function gt(e){var t=e.ownerDocument;return t?t.defaultView:window}function mt(e,t,n,i){n.updateBound=i,gt(e).addEventListener("resize",n.updateBound,{passive:!0});var o=ze(e);return function e(t,n,i,o){var r="BODY"===t.nodeName,a=r?t.ownerDocument.defaultView:t;a.addEventListener(n,i,{passive:!0}),r||e(ze(a.parentNode),n,i,o),o.push(a)}(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function vt(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,gt(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function bt(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function yt(n,i){Object.keys(i).forEach(function(e){var t="";-1!==["width","height","top","right","bottom","left"].indexOf(e)&&bt(i[e])&&(t="px"),n.style[e]=i[e]+t})}function kt(e,t,n){var i,o,r=ut(e,function(e){return e.name===t}),a=!!r&&e.some(function(e){return e.name===n&&e.enabled&&e.order<r.order});return a||(i="`"+t+"`",o="`"+n+"`",console.warn(o+" modifier is required by "+i+" modifier in order to work, be sure to include it before "+i+"!")),a}var wt=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],_t=wt.slice(3);function xt(e,t){var n=1<arguments.length&&void 0!==t&&t,i=_t.indexOf(e),o=_t.slice(i+1).concat(_t.slice(0,i));return n?o.reverse():o}var Ct="flip",Tt="clockwise",St="counterclockwise";function Mt(e,o,r,t){var a=[0,0],s=-1!==["right","left"].indexOf(t),n=e.split(/(\+|\-)/).map(function(e){return e.trim()}),i=n.indexOf(ut(n,function(e){return-1!==e.search(/,|\s/)}));n[i]&&-1===n[i].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/;return(-1!==i?[n.slice(0,i).concat([n[i].split(l)[0]]),[n[i].split(l)[1]].concat(n.slice(i+1))]:[n]).map(function(e,t){var n=(1===t?!s:s)?"height":"width",i=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,i=!0,e):i?(e[e.length-1]+=t,i=!1,e):e.concat(t)},[]).map(function(e){return function(e,t,n,i){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),r=+o[1],a=o[2];if(!r)return e;if(0!==a.indexOf("%"))return"vh"!==a&&"vw"!==a?r:("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*r;var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=i}return tt(s)[t]/100*r}(e,n,o,r)})}).forEach(function(n,i){n.forEach(function(e,t){bt(e)&&(a[i]+=e*("-"===n[t-1]?-1:1))})}),a}var Et={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t,n,i,o,r,a,s,l=e.placement,c=l.split("-")[0],d=l.split("-")[1];return d&&(n=(t=e.offsets).reference,i=t.popper,a=(o=-1!==["bottom","top"].indexOf(c))?"width":"height",s={start:Ge({},r=o?"left":"top",n[r]),end:Ge({},r,n[r]+n[a]-i[a])},e.offsets.popper=et({},i,s[d])),e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,i=e.placement,o=e.offsets,r=o.popper,a=o.reference,s=i.split("-")[0],l=void 0,l=bt(+n)?[+n,0]:Mt(n,r,a,s);return"left"===s?(r.top+=l[0],r.left-=l[1]):"right"===s?(r.top+=l[0],r.left+=l[1]):"top"===s?(r.left+=l[0],r.top-=l[1]):"bottom"===s&&(r.left+=l[0],r.top+=l[1]),e.popper=r,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,i){var t=i.boundariesElement||qe(e.instance.popper);e.instance.reference===t&&(t=qe(t));var n=ft("transform"),o=e.instance.popper.style,r=o.top,a=o.left,s=o[n];o.top="",o.left="",o[n]="";var l=rt(e.instance.popper,e.instance.reference,i.padding,t,e.positionFixed);o.top=r,o.left=a,o[n]=s,i.boundaries=l;var c=i.priority,d=e.offsets.popper,u={primary:function(e){var t=d[e];return d[e]<l[e]&&!i.escapeWithReference&&(t=Math.max(d[e],l[e])),Ge({},e,t)},secondary:function(e){var t="right"===e?"left":"top",n=d[t];return d[e]>l[e]&&!i.escapeWithReference&&(n=Math.min(d[t],l[e]-("right"===e?d.width:d.height))),Ge({},t,n)}};return c.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";d=et({},d,u[t](e))}),e.offsets.popper=d,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,i=t.reference,o=e.placement.split("-")[0],r=Math.floor,a=-1!==["top","bottom"].indexOf(o),s=a?"right":"bottom",l=a?"left":"top",c=a?"width":"height";return n[s]<r(i[l])&&(e.offsets.popper[l]=r(i[l])-n[c]),n[l]>r(i[s])&&(e.offsets.popper[l]=r(i[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!kt(e.instance.modifiers,"arrow","keepTogether"))return e;var i=t.element;if("string"==typeof i){if(!(i=e.instance.popper.querySelector(i)))return e}else if(!e.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],r=e.offsets,a=r.popper,s=r.reference,l=-1!==["left","right"].indexOf(o),c=l?"height":"width",d=l?"Top":"Left",u=d.toLowerCase(),p=l?"left":"top",h=l?"bottom":"right",f=lt(i)[c];s[h]-f<a[u]&&(e.offsets.popper[u]-=a[u]-(s[h]-f)),s[u]+f>a[h]&&(e.offsets.popper[u]+=s[u]+f-a[h]),e.offsets.popper=tt(e.offsets.popper);var g=s[u]+s[c]/2-f/2,m=je(e.instance.popper),v=parseFloat(m["margin"+d],10),b=parseFloat(m["border"+d+"Width"],10),y=g-e.offsets.popper[u]-v-b,y=Math.max(Math.min(a[c]-f,y),0);return e.arrowElement=i,e.offsets.arrow=(Ge(n={},u,Math.round(y)),Ge(n,p,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(f,g){if(ht(f.instance.modifiers,"inner"))return f;if(f.flipped&&f.placement===f.originalPlacement)return f;var m=rt(f.instance.popper,f.instance.reference,g.padding,g.boundariesElement,f.positionFixed),v=f.placement.split("-")[0],b=ct(v),y=f.placement.split("-")[1]||"",k=[];switch(g.behavior){case Ct:k=[v,b];break;case Tt:k=xt(v);break;case St:k=xt(v,!0);break;default:k=g.behavior}return k.forEach(function(e,t){if(v!==e||k.length===t+1)return f;v=f.placement.split("-")[0],b=ct(v);var n,i=f.offsets.popper,o=f.offsets.reference,r=Math.floor,a="left"===v&&r(i.right)>r(o.left)||"right"===v&&r(i.left)<r(o.right)||"top"===v&&r(i.bottom)>r(o.top)||"bottom"===v&&r(i.top)<r(o.bottom),s=r(i.left)<r(m.left),l=r(i.right)>r(m.right),c=r(i.top)<r(m.top),d=r(i.bottom)>r(m.bottom),u="left"===v&&s||"right"===v&&l||"top"===v&&c||"bottom"===v&&d,p=-1!==["top","bottom"].indexOf(v),h=!!g.flipVariations&&(p&&"start"===y&&s||p&&"end"===y&&l||!p&&"start"===y&&c||!p&&"end"===y&&d);(a||u||h)&&(f.flipped=!0,(a||u)&&(v=k[t+1]),h&&(y="end"===(n=y)?"start":"start"===n?"end":n),f.placement=v+(y?"-"+y:""),f.offsets.popper=et({},f.offsets.popper,dt(f.instance.popper,f.offsets.reference,f.placement)),f=pt(f.instance.modifiers,f,"flip"))}),f},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],i=e.offsets,o=i.popper,r=i.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return o[a?"left":"top"]=r[n]-(s?o[a?"width":"height"]:0),e.placement=ct(t),e.offsets.popper=tt(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!kt(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=ut(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,i=t.y,o=e.offsets.popper,r=ut(e.instance.modifiers,function(e){return"applyStyle"===e.name}).gpuAcceleration;void 0!==r&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a,s,l=void 0!==r?r:t.gpuAcceleration,c=nt(qe(e.instance.popper)),d={position:o.position},u={left:Math.floor(o.left),top:Math.round(o.top),bottom:Math.round(o.bottom),right:Math.floor(o.right)},p="bottom"===n?"top":"bottom",h="right"===i?"left":"right",f=ft("transform"),g=void 0,m=void 0,m="bottom"==p?-c.height+u.bottom:u.top,g="right"==h?-c.width+u.right:u.left;l&&f?(d[f]="translate3d("+g+"px, "+m+"px, 0)",d[p]=0,d[h]=0,d.willChange="transform"):(a="bottom"==p?-1:1,s="right"==h?-1:1,d[p]=m*a,d[h]=g*s,d.willChange=p+", "+h);var v={"x-placement":e.placement};return e.attributes=et({},v,e.attributes),e.styles=et({},d,e.styles),e.arrowStyles=et({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return yt(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach(function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)}),e.arrowElement&&Object.keys(e.arrowStyles).length&&yt(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,i,o){var r=st(o,t,e,n.positionFixed),a=at(n.placement,r,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),yt(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},Dt=(Ze(At,[{key:"update",value:function(){return function(){var e;this.state.isDestroyed||((e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}}).offsets.reference=st(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=at(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=dt(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=pt(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e)))}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,ht(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[ft("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return function(){this.state.eventsEnabled||(this.state=mt(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return vt.call(this)}}]),At);function At(e,t){var n=this,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};Ke(this,At),this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=Oe(this.update.bind(this)),this.options=et({},At.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=t&&t.jquery?t[0]:t,this.options.modifiers={},Object.keys(et({},At.Defaults.modifiers,i.modifiers)).forEach(function(e){n.options.modifiers[e]=et({},At.Defaults.modifiers[e]||{},i.modifiers?i.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return et({name:e},n.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&Ne(e.onLoad)&&e.onLoad(n.reference,n.popper,n.options,e,n.state)}),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}Dt.Utils=("undefined"!=typeof window?window:global).PopperUtils,Dt.placements=wt,Dt.Defaults=Et;var It,$t,Pt,Lt,Ot,Nt,jt,Ft,zt,Ht,Rt,Bt,qt,Yt,Wt,Ut,Vt,Qt,Xt,Kt,Zt,Jt,Gt,en,tn,nn,on,rn,an,sn,ln,cn,dn,un,pn,hn,fn,gn,mn,vn,bn,yn,kn,wn,_n,xn,Cn,Tn,Sn,Mn,En,Dn,An,In,$n,Pn,Ln,On,Nn,jn,Fn,zn,Hn,Rn,Bn,qn,Yn,Wn,Un,Vn,Qn,Xn,Kn,Zn,Jn,Gn,ei,ti,ni,ii,oi,ri,ai,si,li,ci,di,ui,pi,hi,fi,gi,mi,vi,bi,yi,ki,wi,_i,xi,Ci,Ti,Si,Mi,Ei,Di,Ai,Ii,$i,Pi,Li,Oi,Ni,ji,Fi,zi,Hi,Ri,Bi,qi,Yi,Wi,Ui,Vi,Qi,Xi=($t="dropdown",Lt="."+(Pt="bs.dropdown"),Ot=".data-api",Nt=(It=t).fn[$t],jt=new RegExp("38|40|27"),Ft={HIDE:"hide"+Lt,HIDDEN:"hidden"+Lt,SHOW:"show"+Lt,SHOWN:"shown"+Lt,CLICK:"click"+Lt,CLICK_DATA_API:"click"+Lt+Ot,KEYDOWN_DATA_API:"keydown"+Lt+Ot,KEYUP_DATA_API:"keyup"+Lt+Ot},zt="disabled",Ht="show",Rt="dropup",Bt="dropright",qt="dropleft",Yt="dropdown-menu-right",Wt="position-static",Ut='[data-toggle="dropdown"]',Vt=".dropdown form",Qt=".dropdown-menu",Xt=".navbar-nav",Kt=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Zt="top-start",Jt="top-end",Gt="bottom-start",en="bottom-end",tn="right-start",nn="left-start",on={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic"},rn={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string"},an=function(){function c(e,t){this._element=e,this._popper=null,this._config=this._getConfig(t),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var e=c.prototype;return e.toggle=function(){if(!this._element.disabled&&!It(this._element).hasClass(zt)){var e=c._getParentFromElement(this._element),t=It(this._menu).hasClass(Ht);if(c._clearMenus(),!t){var n={relatedTarget:this._element},i=It.Event(Ft.SHOW,n);if(It(e).trigger(i),!i.isDefaultPrevented()){if(!this._inNavbar){if(void 0===Dt)throw new TypeError("Bootstrap dropdown require Popper.js (https://popper.js.org)");var o=this._element;"parent"===this._config.reference?o=e:h.isElement(this._config.reference)&&(o=this._config.reference,void 0!==this._config.reference.jquery&&(o=this._config.reference[0])),"scrollParent"!==this._config.boundary&&It(e).addClass(Wt),this._popper=new Dt(o,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===It(e).closest(Xt).length&&It(document.body).children().on("mouseover",null,It.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),It(this._menu).toggleClass(Ht),It(e).toggleClass(Ht).trigger(It.Event(Ft.SHOWN,n))}}}},e.dispose=function(){It.removeData(this._element,Pt),It(this._element).off(Lt),this._element=null,(this._menu=null)!==this._popper&&(this._popper.destroy(),this._popper=null)},e.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},e._addEventListeners=function(){var t=this;It(this._element).on(Ft.CLICK,function(e){e.preventDefault(),e.stopPropagation(),t.toggle()})},e._getConfig=function(e){return e=l({},this.constructor.Default,It(this._element).data(),e),h.typeCheckConfig($t,e,this.constructor.DefaultType),e},e._getMenuElement=function(){var e;return this._menu||(e=c._getParentFromElement(this._element))&&(this._menu=e.querySelector(Qt)),this._menu},e._getPlacement=function(){var e=It(this._element.parentNode),t=Gt;return e.hasClass(Rt)?(t=Zt,It(this._menu).hasClass(Yt)&&(t=Jt)):e.hasClass(Bt)?t=tn:e.hasClass(qt)?t=nn:It(this._menu).hasClass(Yt)&&(t=en),t},e._detectNavbar=function(){return 0<It(this._element).closest(".navbar").length},e._getPopperConfig=function(){var t=this,e={};"function"==typeof this._config.offset?e.fn=function(e){return e.offsets=l({},e.offsets,t._config.offset(e.offsets)||{}),e}:e.offset=this._config.offset;var n={placement:this._getPlacement(),modifiers:{offset:e,flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(n.modifiers.applyStyle={enabled:!1}),n},c._jQueryInterface=function(t){return this.each(function(){var e=It(this).data(Pt);if(e||(e=new c(this,"object"==typeof t?t:null),It(this).data(Pt,e)),"string"==typeof t){if(void 0===e[t])throw new TypeError('No method named "'+t+'"');e[t]()}})},c._clearMenus=function(e){if(!e||3!==e.which&&("keyup"!==e.type||9===e.which))for(var t=[].slice.call(document.querySelectorAll(Ut)),n=0,i=t.length;n<i;n++){var o,r,a=c._getParentFromElement(t[n]),s=It(t[n]).data(Pt),l={relatedTarget:t[n]};e&&"click"===e.type&&(l.clickEvent=e),s&&(o=s._menu,It(a).hasClass(Ht)&&(e&&("click"===e.type&&/input|textarea/i.test(e.target.tagName)||"keyup"===e.type&&9===e.which)&&It.contains(a,e.target)||(r=It.Event(Ft.HIDE,l),It(a).trigger(r),r.isDefaultPrevented()||("ontouchstart"in document.documentElement&&It(document.body).children().off("mouseover",null,It.noop),t[n].setAttribute("aria-expanded","false"),It(o).removeClass(Ht),It(a).removeClass(Ht).trigger(It.Event(Ft.HIDDEN,l))))))}},c._getParentFromElement=function(e){var t,n=h.getSelectorFromElement(e);return n&&(t=document.querySelector(n)),t||e.parentNode},c._dataApiKeydownHandler=function(e){if((/input|textarea/i.test(e.target.tagName)?!(32===e.which||27!==e.which&&(40!==e.which&&38!==e.which||It(e.target).closest(Qt).length)):jt.test(e.which))&&(e.preventDefault(),e.stopPropagation(),!this.disabled&&!It(this).hasClass(zt))){var t,n=c._getParentFromElement(this),i=It(n).hasClass(Ht);if(!i&&(27!==e.which||32!==e.which)||i&&(27===e.which||32===e.which))return 27===e.which&&(t=n.querySelector(Ut),It(t).trigger("focus")),void It(this).trigger("click");var o,r=[].slice.call(n.querySelectorAll(Kt));0!==r.length&&(o=r.indexOf(e.target),38===e.which&&0<o&&o--,40===e.which&&o<r.length-1&&o++,o<0&&(o=0),r[o].focus())}},a(c,null,[{key:"VERSION",get:function(){return"4.1.3"}},{key:"Default",get:function(){return on}},{key:"DefaultType",get:function(){return rn}}]),c}(),It(document).on(Ft.KEYDOWN_DATA_API,Ut,an._dataApiKeydownHandler).on(Ft.KEYDOWN_DATA_API,Qt,an._dataApiKeydownHandler).on(Ft.CLICK_DATA_API+" "+Ft.KEYUP_DATA_API,an._clearMenus).on(Ft.CLICK_DATA_API,Ut,function(e){e.preventDefault(),e.stopPropagation(),an._jQueryInterface.call(It(this),"toggle")}).on(Ft.CLICK_DATA_API,Vt,function(e){e.stopPropagation()}),It.fn[$t]=an._jQueryInterface,It.fn[$t].Constructor=an,It.fn[$t].noConflict=function(){return It.fn[$t]=Nt,an._jQueryInterface},an),Ki=(ln="modal",dn="."+(cn="bs.modal"),un=(sn=t).fn[ln],pn={backdrop:!0,keyboard:!0,focus:!0,show:!0},hn={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},fn={HIDE:"hide"+dn,HIDDEN:"hidden"+dn,SHOW:"show"+dn,SHOWN:"shown"+dn,FOCUSIN:"focusin"+dn,RESIZE:"resize"+dn,CLICK_DISMISS:"click.dismiss"+dn,KEYDOWN_DISMISS:"keydown.dismiss"+dn,MOUSEUP_DISMISS:"mouseup.dismiss"+dn,MOUSEDOWN_DISMISS:"mousedown.dismiss"+dn,CLICK_DATA_API:"click"+dn+".data-api"},gn="modal-scrollbar-measure",mn="modal-backdrop",vn="modal-open",bn="fade",yn="show",kn=".modal-dialog",wn='[data-toggle="modal"]',_n='[data-dismiss="modal"]',xn=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Cn=".sticky-top",Tn=function(){function o(e,t){this._config=this._getConfig(t),this._element=e,this._dialog=e.querySelector(kn),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._scrollbarWidth=0}var e=o.prototype;return e.toggle=function(e){return this._isShown?this.hide():this.show(e)},e.show=function(e){var t,n=this;this._isTransitioning||this._isShown||(sn(this._element).hasClass(bn)&&(this._isTransitioning=!0),t=sn.Event(fn.SHOW,{relatedTarget:e}),sn(this._element).trigger(t),this._isShown||t.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),sn(document.body).addClass(vn),this._setEscapeEvent(),this._setResizeEvent(),sn(this._element).on(fn.CLICK_DISMISS,_n,function(e){return n.hide(e)}),sn(this._dialog).on(fn.MOUSEDOWN_DISMISS,function(){sn(n._element).one(fn.MOUSEUP_DISMISS,function(e){sn(e.target).is(n._element)&&(n._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return n._showElement(e)})))},e.hide=function(e){var t,n,i,o=this;e&&e.preventDefault(),!this._isTransitioning&&this._isShown&&(t=sn.Event(fn.HIDE),sn(this._element).trigger(t),this._isShown&&!t.isDefaultPrevented()&&(this._isShown=!1,(n=sn(this._element).hasClass(bn))&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),sn(document).off(fn.FOCUSIN),sn(this._element).removeClass(yn),sn(this._element).off(fn.CLICK_DISMISS),sn(this._dialog).off(fn.MOUSEDOWN_DISMISS),n?(i=h.getTransitionDurationFromElement(this._element),sn(this._element).one(h.TRANSITION_END,function(e){return o._hideModal(e)}).emulateTransitionEnd(i)):this._hideModal()))},e.dispose=function(){sn.removeData(this._element,cn),sn(window,document,this._element,this._backdrop).off(dn),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._scrollbarWidth=null},e.handleUpdate=function(){this._adjustDialog()},e._getConfig=function(e){return e=l({},pn,e),h.typeCheckConfig(ln,e,hn),e},e._showElement=function(e){var t=this,n=sn(this._element).hasClass(bn);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.scrollTop=0,n&&h.reflow(this._element),sn(this._element).addClass(yn),this._config.focus&&this._enforceFocus();function i(){t._config.focus&&t._element.focus(),t._isTransitioning=!1,sn(t._element).trigger(r)}var o,r=sn.Event(fn.SHOWN,{relatedTarget:e});n?(o=h.getTransitionDurationFromElement(this._element),sn(this._dialog).one(h.TRANSITION_END,i).emulateTransitionEnd(o)):i()},e._enforceFocus=function(){var t=this;sn(document).off(fn.FOCUSIN).on(fn.FOCUSIN,function(e){document!==e.target&&t._element!==e.target&&0===sn(t._element).has(e.target).length&&t._element.focus()})},e._setEscapeEvent=function(){var t=this;this._isShown&&this._config.keyboard?sn(this._element).on(fn.KEYDOWN_DISMISS,function(e){27===e.which&&(e.preventDefault(),t.hide())}):this._isShown||sn(this._element).off(fn.KEYDOWN_DISMISS)},e._setResizeEvent=function(){var t=this;this._isShown?sn(window).on(fn.RESIZE,function(e){return t.handleUpdate(e)}):sn(window).off(fn.RESIZE)},e._hideModal=function(){var e=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1,this._showBackdrop(function(){sn(document.body).removeClass(vn),e._resetAdjustments(),e._resetScrollbar(),sn(e._element).trigger(fn.HIDDEN)})},e._removeBackdrop=function(){this._backdrop&&(sn(this._backdrop).remove(),this._backdrop=null)},e._showBackdrop=function(e){var t,n,i=this,o=sn(this._element).hasClass(bn)?bn:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className=mn,o&&this._backdrop.classList.add(o),sn(this._backdrop).appendTo(document.body),sn(this._element).on(fn.CLICK_DISMISS,function(e){i._ignoreBackdropClick?i._ignoreBackdropClick=!1:e.target===e.currentTarget&&("static"===i._config.backdrop?i._element.focus():i.hide())}),o&&h.reflow(this._backdrop),sn(this._backdrop).addClass(yn),!e)return;if(!o)return void e();var r=h.getTransitionDurationFromElement(this._backdrop);sn(this._backdrop).one(h.TRANSITION_END,e).emulateTransitionEnd(r)}else{!this._isShown&&this._backdrop?(sn(this._backdrop).removeClass(yn),t=function(){i._removeBackdrop(),e&&e()},sn(this._element).hasClass(bn)?(n=h.getTransitionDurationFromElement(this._backdrop),sn(this._backdrop).one(h.TRANSITION_END,t).emulateTransitionEnd(n)):t()):e&&e()}},e._adjustDialog=function(){var e=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&e&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!e&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},e._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},e._checkScrollbar=function(){var e=document.body.getBoundingClientRect();this._isBodyOverflowing=e.left+e.right<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},e._setScrollbar=function(){var e,t,n,i,o=this;this._isBodyOverflowing&&(e=[].slice.call(document.querySelectorAll(xn)),t=[].slice.call(document.querySelectorAll(Cn)),sn(e).each(function(e,t){var n=t.style.paddingRight,i=sn(t).css("padding-right");sn(t).data("padding-right",n).css("padding-right",parseFloat(i)+o._scrollbarWidth+"px")}),sn(t).each(function(e,t){var n=t.style.marginRight,i=sn(t).css("margin-right");sn(t).data("margin-right",n).css("margin-right",parseFloat(i)-o._scrollbarWidth+"px")}),n=document.body.style.paddingRight,i=sn(document.body).css("padding-right"),sn(document.body).data("padding-right",n).css("padding-right",parseFloat(i)+this._scrollbarWidth+"px"))},e._resetScrollbar=function(){var e=[].slice.call(document.querySelectorAll(xn));sn(e).each(function(e,t){var n=sn(t).data("padding-right");sn(t).removeData("padding-right"),t.style.paddingRight=n||""});var t=[].slice.call(document.querySelectorAll(""+Cn));sn(t).each(function(e,t){var n=sn(t).data("margin-right");void 0!==n&&sn(t).css("margin-right",n).removeData("margin-right")});var n=sn(document.body).data("padding-right");sn(document.body).removeData("padding-right"),document.body.style.paddingRight=n||""},e._getScrollbarWidth=function(){var e=document.createElement("div");e.className=gn,document.body.appendChild(e);var t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t},o._jQueryInterface=function(n,i){return this.each(function(){var e=sn(this).data(cn),t=l({},pn,sn(this).data(),"object"==typeof n&&n?n:{});if(e||(e=new o(this,t),sn(this).data(cn,e)),"string"==typeof n){if(void 0===e[n])throw new TypeError('No method named "'+n+'"');e[n](i)}else t.show&&e.show(i)})},a(o,null,[{key:"VERSION",get:function(){return"4.1.3"}},{key:"Default",get:function(){return pn}}]),o}(),sn(document).on(fn.CLICK_DATA_API,wn,function(e){var t,n=this,i=h.getSelectorFromElement(this);i&&(t=document.querySelector(i));var o=sn(t).data(cn)?"toggle":l({},sn(t).data(),sn(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||e.preventDefault();var r=sn(t).one(fn.SHOW,function(e){e.isDefaultPrevented()||r.one(fn.HIDDEN,function(){sn(n).is(":visible")&&n.focus()})});Tn._jQueryInterface.call(sn(t),o,this)}),sn.fn[ln]=Tn._jQueryInterface,sn.fn[ln].Constructor=Tn,sn.fn[ln].noConflict=function(){return sn.fn[ln]=un,Tn._jQueryInterface},Tn),Zi=(Mn="tooltip",Dn="."+(En="bs.tooltip"),An=(Sn=t).fn[Mn],In="bs-tooltip",$n=new RegExp("(^|\\s)"+In+"\\S+","g"),On={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!(Ln={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"}),selector:!(Pn={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)"}),placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent"},jn="out",Fn={HIDE:"hide"+Dn,HIDDEN:"hidden"+Dn,SHOW:(Nn="show")+Dn,SHOWN:"shown"+Dn,INSERTED:"inserted"+Dn,CLICK:"click"+Dn,FOCUSIN:"focusin"+Dn,FOCUSOUT:"focusout"+Dn,MOUSEENTER:"mouseenter"+Dn,MOUSELEAVE:"mouseleave"+Dn},zn="fade",Hn="show",Rn=".tooltip-inner",Bn=".arrow",qn="hover",Yn="focus",Wn="click",Un="manual",Vn=function(){function i(e,t){if(void 0===Dt)throw new TypeError("Bootstrap tooltips require Popper.js (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=e,this.config=this._getConfig(t),this.tip=null,this._setListeners()}var e=i.prototype;return e.enable=function(){this._isEnabled=!0},e.disable=function(){this._isEnabled=!1},e.toggleEnabled=function(){this._isEnabled=!this._isEnabled},e.toggle=function(e){if(this._isEnabled)if(e){var t=this.constructor.DATA_KEY,n=Sn(e.currentTarget).data(t);n||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),Sn(e.currentTarget).data(t,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(Sn(this.getTipElement()).hasClass(Hn))return void this._leave(null,this);this._enter(null,this)}},e.dispose=function(){clearTimeout(this._timeout),Sn.removeData(this.element,this.constructor.DATA_KEY),Sn(this.element).off(this.constructor.EVENT_KEY),Sn(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&Sn(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,(this._activeTrigger=null)!==this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},e.show=function(){var t=this;if("none"===Sn(this.element).css("display"))throw new Error("Please use show on visible elements");var e=Sn.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){Sn(this.element).trigger(e);var n=Sn.contains(this.element.ownerDocument.documentElement,this.element);if(e.isDefaultPrevented()||!n)return;var i=this.getTipElement(),o=h.getUID(this.constructor.NAME);i.setAttribute("id",o),this.element.setAttribute("aria-describedby",o),this.setContent(),this.config.animation&&Sn(i).addClass(zn);var r="function"==typeof this.config.placement?this.config.placement.call(this,i,this.element):this.config.placement,a=this._getAttachment(r);this.addAttachmentClass(a);var s=!1===this.config.container?document.body:Sn(document).find(this.config.container);Sn(i).data(this.constructor.DATA_KEY,this),Sn.contains(this.element.ownerDocument.documentElement,this.tip)||Sn(i).appendTo(s),Sn(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new Dt(this.element,i,{placement:a,modifiers:{offset:{offset:this.config.offset},flip:{behavior:this.config.fallbackPlacement},arrow:{element:Bn},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(e){e.originalPlacement!==e.placement&&t._handlePopperPlacementChange(e)},onUpdate:function(e){t._handlePopperPlacementChange(e)}}),Sn(i).addClass(Hn),"ontouchstart"in document.documentElement&&Sn(document.body).children().on("mouseover",null,Sn.noop);var l,c=function(){t.config.animation&&t._fixTransition();var e=t._hoverState;t._hoverState=null,Sn(t.element).trigger(t.constructor.Event.SHOWN),e===jn&&t._leave(null,t)};Sn(this.tip).hasClass(zn)?(l=h.getTransitionDurationFromElement(this.tip),Sn(this.tip).one(h.TRANSITION_END,c).emulateTransitionEnd(l)):c()}},e.hide=function(e){function t(){i._hoverState!==Nn&&o.parentNode&&o.parentNode.removeChild(o),i._cleanTipClass(),i.element.removeAttribute("aria-describedby"),Sn(i.element).trigger(i.constructor.Event.HIDDEN),null!==i._popper&&i._popper.destroy(),e&&e()}var n,i=this,o=this.getTipElement(),r=Sn.Event(this.constructor.Event.HIDE);Sn(this.element).trigger(r),r.isDefaultPrevented()||(Sn(o).removeClass(Hn),"ontouchstart"in document.documentElement&&Sn(document.body).children().off("mouseover",null,Sn.noop),this._activeTrigger[Wn]=!1,this._activeTrigger[Yn]=!1,this._activeTrigger[qn]=!1,Sn(this.tip).hasClass(zn)?(n=h.getTransitionDurationFromElement(o),Sn(o).one(h.TRANSITION_END,t).emulateTransitionEnd(n)):t(),this._hoverState="")},e.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},e.isWithContent=function(){return Boolean(this.getTitle())},e.addAttachmentClass=function(e){Sn(this.getTipElement()).addClass(In+"-"+e)},e.getTipElement=function(){return this.tip=this.tip||Sn(this.config.template)[0],this.tip},e.setContent=function(){var e=this.getTipElement();this.setElementContent(Sn(e.querySelectorAll(Rn)),this.getTitle()),Sn(e).removeClass(zn+" "+Hn)},e.setElementContent=function(e,t){var n=this.config.html;"object"==typeof t&&(t.nodeType||t.jquery)?n?Sn(t).parent().is(e)||e.empty().append(t):e.text(Sn(t).text()):e[n?"html":"text"](t)},e.getTitle=function(){return this.element.getAttribute("data-original-title")||("function"==typeof this.config.title?this.config.title.call(this.element):this.config.title)},e._getAttachment=function(e){return Ln[e.toUpperCase()]},e._setListeners=function(){var i=this;this.config.trigger.split(" ").forEach(function(e){var t,n;"click"===e?Sn(i.element).on(i.constructor.Event.CLICK,i.config.selector,function(e){return i.toggle(e)}):e!==Un&&(t=e===qn?i.constructor.Event.MOUSEENTER:i.constructor.Event.FOCUSIN,n=e===qn?i.constructor.Event.MOUSELEAVE:i.constructor.Event.FOCUSOUT,Sn(i.element).on(t,i.config.selector,function(e){return i._enter(e)}).on(n,i.config.selector,function(e){return i._leave(e)})),Sn(i.element).closest(".modal").on("hide.bs.modal",function(){return i.hide()})}),this.config.selector?this.config=l({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},e._fixTitle=function(){var e=typeof this.element.getAttribute("data-original-title");!this.element.getAttribute("title")&&"string"==e||(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},e._enter=function(e,t){var n=this.constructor.DATA_KEY;(t=t||Sn(e.currentTarget).data(n))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),Sn(e.currentTarget).data(n,t)),e&&(t._activeTrigger["focusin"===e.type?Yn:qn]=!0),Sn(t.getTipElement()).hasClass(Hn)||t._hoverState===Nn?t._hoverState=Nn:(clearTimeout(t._timeout),t._hoverState=Nn,t.config.delay&&t.config.delay.show?t._timeout=setTimeout(function(){t._hoverState===Nn&&t.show()},t.config.delay.show):t.show())},e._leave=function(e,t){var n=this.constructor.DATA_KEY;(t=t||Sn(e.currentTarget).data(n))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),Sn(e.currentTarget).data(n,t)),e&&(t._activeTrigger["focusout"===e.type?Yn:qn]=!1),t._isWithActiveTrigger()||(clearTimeout(t._timeout),t._hoverState=jn,t.config.delay&&t.config.delay.hide?t._timeout=setTimeout(function(){t._hoverState===jn&&t.hide()},t.config.delay.hide):t.hide())},e._isWithActiveTrigger=function(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1},e._getConfig=function(e){return"number"==typeof(e=l({},this.constructor.Default,Sn(this.element).data(),"object"==typeof e&&e?e:{})).delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),h.typeCheckConfig(Mn,e,this.constructor.DefaultType),e},e._getDelegateConfig=function(){var e={};if(this.config)for(var t in this.config)this.constructor.Default[t]!==this.config[t]&&(e[t]=this.config[t]);return e},e._cleanTipClass=function(){var e=Sn(this.getTipElement()),t=e.attr("class").match($n);null!==t&&t.length&&e.removeClass(t.join(""))},e._handlePopperPlacementChange=function(e){var t=e.instance;this.tip=t.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(e.placement))},e._fixTransition=function(){var e=this.getTipElement(),t=this.config.animation;null===e.getAttribute("x-placement")&&(Sn(e).removeClass(zn),this.config.animation=!1,this.hide(),this.show(),this.config.animation=t)},i._jQueryInterface=function(n){return this.each(function(){var e=Sn(this).data(En),t="object"==typeof n&&n;if((e||!/dispose|hide/.test(n))&&(e||(e=new i(this,t),Sn(this).data(En,e)),"string"==typeof n)){if(void 0===e[n])throw new TypeError('No method named "'+n+'"');e[n]()}})},a(i,null,[{key:"VERSION",get:function(){return"4.1.3"}},{key:"Default",get:function(){return On}},{key:"NAME",get:function(){return Mn}},{key:"DATA_KEY",get:function(){return En}},{key:"Event",get:function(){return Fn}},{key:"EVENT_KEY",get:function(){return Dn}},{key:"DefaultType",get:function(){return Pn}}]),i}(),Sn.fn[Mn]=Vn._jQueryInterface,Sn.fn[Mn].Constructor=Vn,Sn.fn[Mn].noConflict=function(){return Sn.fn[Mn]=An,Vn._jQueryInterface},Vn),Ji=(Xn="popover",Zn="."+(Kn="bs.popover"),Jn=(Qn=t).fn[Xn],Gn="bs-popover",ei=new RegExp("(^|\\s)"+Gn+"\\S+","g"),ti=l({},Zi.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),ni=l({},Zi.DefaultType,{content:"(string|element|function)"}),ii="fade",ri=".popover-header",ai=".popover-body",si={HIDE:"hide"+Zn,HIDDEN:"hidden"+Zn,SHOW:(oi="show")+Zn,SHOWN:"shown"+Zn,INSERTED:"inserted"+Zn,CLICK:"click"+Zn,FOCUSIN:"focusin"+Zn,FOCUSOUT:"focusout"+Zn,MOUSEENTER:"mouseenter"+Zn,MOUSELEAVE:"mouseleave"+Zn},li=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),(t.prototype.constructor=t).__proto__=n;var o=i.prototype;return o.isWithContent=function(){return this.getTitle()||this._getContent()},o.addAttachmentClass=function(e){Qn(this.getTipElement()).addClass(Gn+"-"+e)},o.getTipElement=function(){return this.tip=this.tip||Qn(this.config.template)[0],this.tip},o.setContent=function(){var e=Qn(this.getTipElement());this.setElementContent(e.find(ri),this.getTitle());var t=this._getContent();"function"==typeof t&&(t=t.call(this.element)),this.setElementContent(e.find(ai),t),e.removeClass(ii+" "+oi)},o._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},o._cleanTipClass=function(){var e=Qn(this.getTipElement()),t=e.attr("class").match(ei);null!==t&&0<t.length&&e.removeClass(t.join(""))},i._jQueryInterface=function(n){return this.each(function(){var e=Qn(this).data(Kn),t="object"==typeof n?n:null;if((e||!/destroy|hide/.test(n))&&(e||(e=new i(this,t),Qn(this).data(Kn,e)),"string"==typeof n)){if(void 0===e[n])throw new TypeError('No method named "'+n+'"');e[n]()}})},a(i,null,[{key:"VERSION",get:function(){return"4.1.3"}},{key:"Default",get:function(){return ti}},{key:"NAME",get:function(){return Xn}},{key:"DATA_KEY",get:function(){return Kn}},{key:"Event",get:function(){return si}},{key:"EVENT_KEY",get:function(){return Zn}},{key:"DefaultType",get:function(){return ni}}]),i}(Zi),Qn.fn[Xn]=li._jQueryInterface,Qn.fn[Xn].Constructor=li,Qn.fn[Xn].noConflict=function(){return Qn.fn[Xn]=Jn,li._jQueryInterface},li),Gi=(di="scrollspy",pi="."+(ui="bs.scrollspy"),hi=(ci=t).fn[di],fi={offset:10,method:"auto",target:""},gi={offset:"number",method:"string",target:"(string|element)"},mi={ACTIVATE:"activate"+pi,SCROLL:"scroll"+pi,LOAD_DATA_API:"load"+pi+".data-api"},vi="dropdown-item",bi="active",yi='[data-spy="scroll"]',ki=".active",wi=".nav, .list-group",_i=".nav-link",xi=".nav-item",Ci=".list-group-item",Ti=".dropdown",Si=".dropdown-item",Mi=".dropdown-toggle",Ei="offset",Di="position",Ai=function(){function n(e,t){var n=this;this._element=e,this._scrollElement="BODY"===e.tagName?window:e,this._config=this._getConfig(t),this._selector=this._config.target+" "+_i+","+this._config.target+" "+Ci+","+this._config.target+" "+Si,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,ci(this._scrollElement).on(mi.SCROLL,function(e){return n._process(e)}),this.refresh(),this._process()}var e=n.prototype;return e.refresh=function(){var t=this,e=this._scrollElement===this._scrollElement.window?Ei:Di,o="auto"===this._config.method?e:this._config.method,r=o===Di?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map(function(e){var t,n=h.getSelectorFromElement(e);if(n&&(t=document.querySelector(n)),t){var i=t.getBoundingClientRect();if(i.width||i.height)return[ci(t)[o]().top+r,n]}return null}).filter(function(e){return e}).sort(function(e,t){return e[0]-t[0]}).forEach(function(e){t._offsets.push(e[0]),t._targets.push(e[1])})},e.dispose=function(){ci.removeData(this._element,ui),ci(this._scrollElement).off(pi),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},e._getConfig=function(e){var t;return"string"!=typeof(e=l({},fi,"object"==typeof e&&e?e:{})).target&&((t=ci(e.target).attr("id"))||(t=h.getUID(di),ci(e.target).attr("id",t)),e.target="#"+t),h.typeCheckConfig(di,e,gi),e},e._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},e._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},e._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},e._process=function(){var e=this._getScrollTop()+this._config.offset,t=this._getScrollHeight(),n=this._config.offset+t-this._getOffsetHeight();if(this._scrollHeight!==t&&this.refresh(),n<=e){var i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i)}else{if(this._activeTarget&&e<this._offsets[0]&&0<this._offsets[0])return this._activeTarget=null,void this._clear();for(var o=this._offsets.length;o--;){this._activeTarget!==this._targets[o]&&e>=this._offsets[o]&&(void 0===this._offsets[o+1]||e<this._offsets[o+1])&&this._activate(this._targets[o])}}},e._activate=function(t){this._activeTarget=t,this._clear();var e=(e=this._selector.split(",")).map(function(e){return e+'[data-target="'+t+'"],'+e+'[href="'+t+'"]'}),n=ci([].slice.call(document.querySelectorAll(e.join(","))));n.hasClass(vi)?(n.closest(Ti).find(Mi).addClass(bi),n.addClass(bi)):(n.addClass(bi),n.parents(wi).prev(_i+", "+Ci).addClass(bi),n.parents(wi).prev(xi).children(_i).addClass(bi)),ci(this._scrollElement).trigger(mi.ACTIVATE,{relatedTarget:t})},e._clear=function(){var e=[].slice.call(document.querySelectorAll(this._selector));ci(e).filter(ki).removeClass(bi)},n._jQueryInterface=function(t){return this.each(function(){var e=ci(this).data(ui);if(e||(e=new n(this,"object"==typeof t&&t),ci(this).data(ui,e)),"string"==typeof t){if(void 0===e[t])throw new TypeError('No method named "'+t+'"');e[t]()}})},a(n,null,[{key:"VERSION",get:function(){return"4.1.3"}},{key:"Default",get:function(){return fi}}]),n}(),ci(window).on(mi.LOAD_DATA_API,function(){for(var e=[].slice.call(document.querySelectorAll(yi)),t=e.length;t--;){var n=ci(e[t]);Ai._jQueryInterface.call(n,n.data())}}),ci.fn[di]=Ai._jQueryInterface,ci.fn[di].Constructor=Ai,ci.fn[di].noConflict=function(){return ci.fn[di]=hi,Ai._jQueryInterface},Ai),eo=(Pi="."+($i="bs.tab"),Li=(Ii=t).fn.tab,Oi={HIDE:"hide"+Pi,HIDDEN:"hidden"+Pi,SHOW:"show"+Pi,SHOWN:"shown"+Pi,CLICK_DATA_API:"click"+Pi+".data-api"},Ni="dropdown-menu",ji="active",Fi="disabled",zi="fade",Hi="show",Ri=".dropdown",Bi=".nav, .list-group",qi=".active",Yi="> li > .active",Wi='[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',Ui=".dropdown-toggle",Vi="> .dropdown-menu .active",Qi=function(){function i(e){this._element=e}var e=i.prototype;return e.show=function(){var e,t,n,i,o,r,a,s,l=this;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&Ii(this._element).hasClass(ji)||Ii(this._element).hasClass(Fi)||(t=Ii(this._element).closest(Bi)[0],n=h.getSelectorFromElement(this._element),t&&(i="UL"===t.nodeName?Yi:qi,o=(o=Ii.makeArray(Ii(t).find(i)))[o.length-1]),r=Ii.Event(Oi.HIDE,{relatedTarget:this._element}),a=Ii.Event(Oi.SHOW,{relatedTarget:o}),o&&Ii(o).trigger(r),Ii(this._element).trigger(a),a.isDefaultPrevented()||r.isDefaultPrevented()||(n&&(e=document.querySelector(n)),this._activate(this._element,t),s=function(){var e=Ii.Event(Oi.HIDDEN,{relatedTarget:l._element}),t=Ii.Event(Oi.SHOWN,{relatedTarget:o});Ii(o).trigger(e),Ii(l._element).trigger(t)},e?this._activate(e,e.parentNode,s):s()))},e.dispose=function(){Ii.removeData(this._element,$i),this._element=null},e._activate=function(e,t,n){function i(){return r._transitionComplete(e,s,n)}var o,r=this,a="UL"===t.nodeName?Ii(t).find(Yi):Ii(t).children(qi),s=a[0],l=n&&s&&Ii(s).hasClass(zi);s&&l?(o=h.getTransitionDurationFromElement(s),Ii(s).one(h.TRANSITION_END,i).emulateTransitionEnd(o)):i()},e._transitionComplete=function(e,t,n){var i,o,r;t&&(Ii(t).removeClass(Hi+" "+ji),(i=Ii(t.parentNode).find(Vi)[0])&&Ii(i).removeClass(ji),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!1)),Ii(e).addClass(ji),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),h.reflow(e),Ii(e).addClass(Hi),e.parentNode&&Ii(e.parentNode).hasClass(Ni)&&((o=Ii(e).closest(Ri)[0])&&(r=[].slice.call(o.querySelectorAll(Ui)),Ii(r).addClass(ji)),e.setAttribute("aria-expanded",!0)),n&&n()},i._jQueryInterface=function(n){return this.each(function(){var e=Ii(this),t=e.data($i);if(t||(t=new i(this),e.data($i,t)),"string"==typeof n){if(void 0===t[n])throw new TypeError('No method named "'+n+'"');t[n]()}})},a(i,null,[{key:"VERSION",get:function(){return"4.1.3"}}]),i}(),Ii(document).on(Oi.CLICK_DATA_API,Wi,function(e){e.preventDefault(),Qi._jQueryInterface.call(Ii(this),"show")}),Ii.fn.tab=Qi._jQueryInterface,Ii.fn.tab.Constructor=Qi,Ii.fn.tab.noConflict=function(){return Ii.fn.tab=Li,Qi._jQueryInterface},Qi);!function(e){if(void 0===e)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var t=e.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1===t[0]&&9===t[1]&&t[2]<1||4<=t[0])throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(t),e.Util=h,e.Alert=Me,e.Button=Ee,e.Carousel=De,e.Collapse=Ae,e.Dropdown=Xi,e.Modal=Ki,e.Popover=Ji,e.Scrollspy=Gi,e.Tab=eo,e.Tooltip=Zi,Object.defineProperty(e,"__esModule",{value:!0})}),MarkerClusterer.prototype.MARKER_CLUSTER_IMAGE_PATH_="https://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclusterer/images/m",MarkerClusterer.prototype.MARKER_CLUSTER_IMAGE_EXTENSION_="png",MarkerClusterer.prototype.extend=function(e,t){return function(e){for(var t in e.prototype)this.prototype[t]=e.prototype[t];return this}.apply(e,[t])},MarkerClusterer.prototype.onAdd=function(){this.setReady_(!0)},MarkerClusterer.prototype.draw=function(){},MarkerClusterer.prototype.setupStyles_=function(){if(!this.styles_.length)for(var e,t=0;e=this.sizes[t];t++)this.styles_.push({url:this.imagePath_+(t+1)+"."+this.imageExtension_,height:e,width:e})},MarkerClusterer.prototype.fitMapToMarkers=function(){for(var e,t=this.getMarkers(),n=new google.maps.LatLngBounds,i=0;e=t[i];i++)n.extend(e.getPosition());this.map_.fitBounds(n)},MarkerClusterer.prototype.setStyles=function(e){this.styles_=e},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(e){this.maxZoom_=e},MarkerClusterer.prototype.getMaxZoom=function(){return this.maxZoom_},MarkerClusterer.prototype.calculator_=function(e,t){for(var n=0,i=e.length,o=i;0!==o;)o=parseInt(o/10,10),n++;return{text:i,index:n=Math.min(n,t)}},MarkerClusterer.prototype.setCalculator=function(e){this.calculator_=e},MarkerClusterer.prototype.getCalculator=function(){return this.calculator_},MarkerClusterer.prototype.addMarkers=function(e,t){for(var n,i=0;n=e[i];i++)this.pushMarkerTo_(n);t||this.redraw()},MarkerClusterer.prototype.pushMarkerTo_=function(e){var t;e.isAdded=!1,e.draggable&&(t=this,google.maps.event.addListener(e,"dragend",function(){e.isAdded=!1,t.repaint()})),this.markers_.push(e)},MarkerClusterer.prototype.addMarker=function(e,t){this.pushMarkerTo_(e),t||this.redraw()},MarkerClusterer.prototype.removeMarker_=function(e){var t=-1;if(this.markers_.indexOf)t=this.markers_.indexOf(e);else for(var n,i=0;n=this.markers_[i];i++)if(n==e){t=i;break}return-1!=t&&(e.setMap(null),this.markers_.splice(t,1),!0)},MarkerClusterer.prototype.removeMarker=function(e,t){var n=this.removeMarker_(e);return!(t||!n)&&(this.resetViewport(),this.redraw(),!0)},MarkerClusterer.prototype.removeMarkers=function(e,t){for(var n,i=!1,o=0;n=e[o];o++)var r=this.removeMarker_(n),i=i||r;if(!t&&i)return this.resetViewport(),this.redraw(),!0},MarkerClusterer.prototype.setReady_=function(e){this.ready_||(this.ready_=e,this.createClusters_())},MarkerClusterer.prototype.getTotalClusters=function(){return this.clusters_.length},MarkerClusterer.prototype.getMap=function(){return this.map_},MarkerClusterer.prototype.setMap=function(e){this.map_=e},MarkerClusterer.prototype.getGridSize=function(){return this.gridSize_},MarkerClusterer.prototype.setGridSize=function(e){this.gridSize_=e},MarkerClusterer.prototype.getMinClusterSize=function(){return this.minClusterSize_},MarkerClusterer.prototype.setMinClusterSize=function(e){this.minClusterSize_=e},MarkerClusterer.prototype.getExtendedBounds=function(e){var t=this.getProjection(),n=new google.maps.LatLng(e.getNorthEast().lat(),e.getNorthEast().lng()),i=new google.maps.LatLng(e.getSouthWest().lat(),e.getSouthWest().lng()),o=t.fromLatLngToDivPixel(n);o.x+=this.gridSize_,o.y-=this.gridSize_;var r=t.fromLatLngToDivPixel(i);r.x-=this.gridSize_,r.y+=this.gridSize_;var a=t.fromDivPixelToLatLng(o),s=t.fromDivPixelToLatLng(r);return e.extend(a),e.extend(s),e},MarkerClusterer.prototype.isMarkerInBounds_=function(e,t){return t.contains(e.getPosition())},MarkerClusterer.prototype.clearMarkers=function(){this.resetViewport(!0),this.markers_=[]},MarkerClusterer.prototype.resetViewport=function(e){for(var t,n=0;t=this.clusters_[n];n++)t.remove();for(var i,n=0;i=this.markers_[n];n++)i.isAdded=!1,e&&i.setMap(null);this.clusters_=[]},MarkerClusterer.prototype.repaint=function(){var n=this.clusters_.slice();this.clusters_.length=0,this.resetViewport(),this.redraw(),window.setTimeout(function(){for(var e,t=0;e=n[t];t++)e.remove()},0)},MarkerClusterer.prototype.redraw=function(){this.createClusters_()},MarkerClusterer.prototype.distanceBetweenPoints_=function(e,t){if(!e||!t)return 0;var n=(t.lat()-e.lat())*Math.PI/180,i=(t.lng()-e.lng())*Math.PI/180,o=Math.sin(n/2)*Math.sin(n/2)+Math.cos(e.lat()*Math.PI/180)*Math.cos(t.lat()*Math.PI/180)*Math.sin(i/2)*Math.sin(i/2);return 6371*(2*Math.atan2(Math.sqrt(o),Math.sqrt(1-o)))},MarkerClusterer.prototype.addToClosestCluster_=function(e){for(var t,n=4e4,i=null,o=(e.getPosition(),0);t=this.clusters_[o];o++){var r,a=t.getCenter();!a||(r=this.distanceBetweenPoints_(a,e.getPosition()))<n&&(n=r,i=t)}i&&i.isMarkerInClusterBounds(e)?i.addMarker(e):((t=new Cluster(this)).addMarker(e),this.clusters_.push(t))},MarkerClusterer.prototype.createClusters_=function(){if(this.ready_)for(var e,t=new google.maps.LatLngBounds(this.map_.getBounds().getSouthWest(),this.map_.getBounds().getNorthEast()),n=this.getExtendedBounds(t),i=0;e=this.markers_[i];i++)!e.isAdded&&this.isMarkerInBounds_(e,n)&&this.addToClosestCluster_(e)},Cluster.prototype.isMarkerAlreadyAdded=function(e){if(this.markers_.indexOf)return-1!=this.markers_.indexOf(e);for(var t,n=0;t=this.markers_[n];n++)if(t==e)return!0;return!1},Cluster.prototype.addMarker=function(e){if(this.isMarkerAlreadyAdded(e))return!1;var t,n,i;this.center_?this.averageCenter_&&(t=this.markers_.length+1,n=(this.center_.lat()*(t-1)+e.getPosition().lat())/t,i=(this.center_.lng()*(t-1)+e.getPosition().lng())/t,this.center_=new google.maps.LatLng(n,i),this.calculateBounds_()):(this.center_=e.getPosition(),this.calculateBounds_()),e.isAdded=!0,this.markers_.push(e);var o=this.markers_.length;if(o<this.minClusterSize_&&e.getMap()!=this.map_&&e.setMap(this.map_),o==this.minClusterSize_)for(var r=0;r<o;r++)this.markers_[r].setMap(null);return o>=this.minClusterSize_&&e.setMap(null),this.updateIcon(),!0},Cluster.prototype.getMarkerClusterer=function(){return this.markerClusterer_},Cluster.prototype.getBounds=function(){for(var e,t=new google.maps.LatLngBounds(this.center_,this.center_),n=this.getMarkers(),i=0;e=n[i];i++)t.extend(e.getPosition());return t},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 e=new google.maps.LatLngBounds(this.center_,this.center_);this.bounds_=this.markerClusterer_.getExtendedBounds(e)},Cluster.prototype.isMarkerInClusterBounds=function(e){return this.bounds_.contains(e.getPosition())},Cluster.prototype.getMap=function(){return this.map_},Cluster.prototype.updateIcon=function(){var e,t,n=this.map_.getZoom(),i=this.markerClusterer_.getMaxZoom();if(i&&i<n)for(var o,r=0;o=this.markers_[r];r++)o.setMap(this.map_);else this.markers_.length<this.minClusterSize_?this.clusterIcon_.hide():(e=this.markerClusterer_.getStyles().length,t=this.markerClusterer_.getCalculator()(this.markers_,e),this.clusterIcon_.setCenter(this.center_),this.clusterIcon_.setSums(t),this.clusterIcon_.show())},ClusterIcon.prototype.triggerClusterClick=function(e){var t=this.cluster_.getMarkerClusterer();google.maps.event.trigger(t,"clusterclick",this.cluster_,e),t.isZoomOnClick()&&this.map_.fitBounds(this.cluster_.getBounds())},ClusterIcon.prototype.onAdd=function(){var e;this.div_=document.createElement("DIV"),this.visible_&&(e=this.getPosFromLatLng_(this.center_),this.div_.style.cssText=this.createCss(e),this.div_.innerHTML=this.sums_.text),this.getPanes().overlayMouseTarget.appendChild(this.div_);var t=this;google.maps.event.addDomListener(this.div_,"click",function(e){t.triggerClusterClick(e)})},ClusterIcon.prototype.getPosFromLatLng_=function(e){var t=this.getProjection().fromLatLngToDivPixel(e);return"object"==typeof this.iconAnchor_&&2===this.iconAnchor_.length?(t.x-=this.iconAnchor_[0],t.y-=this.iconAnchor_[1]):(t.x-=parseInt(this.width_/2,10),t.y-=parseInt(this.height_/2,10)),t},ClusterIcon.prototype.draw=function(){var e;this.visible_&&(e=this.getPosFromLatLng_(this.center_),this.div_.style.top=e.y+"px",this.div_.style.left=e.x+"px")},ClusterIcon.prototype.hide=function(){this.div_&&(this.div_.style.display="none"),this.visible_=!1},ClusterIcon.prototype.show=function(){var e;this.div_&&(e=this.getPosFromLatLng_(this.center_),this.div_.style.cssText=this.createCss(e),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(e){this.sums_=e,this.text_=e.text,this.index_=e.index,this.div_&&(this.div_.innerHTML=e.text),this.useStyle()},ClusterIcon.prototype.useStyle=function(){var e=Math.max(0,this.sums_.index-1),e=Math.min(this.styles_.length-1,e),t=this.styles_[e];this.url_=t.url,this.height_=t.height,this.width_=t.width,this.textColor_=t.textColor,this.anchor_=t.anchor,this.textSize_=t.textSize,this.backgroundPosition_=t.backgroundPosition,this.iconAnchor_=t.iconAnchor},ClusterIcon.prototype.setCenter=function(e){this.center_=e},ClusterIcon.prototype.createCss=function(e){var t=[];t.push("background-image:url("+this.url_+");");var n=this.backgroundPosition_?this.backgroundPosition_:"0 0";t.push("background-position:"+n+";"),"object"==typeof this.anchor_?("number"==typeof this.anchor_[0]&&0<this.anchor_[0]&&this.anchor_[0]<this.height_?t.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_?t.push("height:"+this.height_+"px; line-height:"+(this.height_+this.anchor_[0])+"px;"):t.push("height:"+this.height_+"px; line-height:"+this.height_+"px;"),"number"==typeof this.anchor_[1]&&0<this.anchor_[1]&&this.anchor_[1]<this.width_?t.push("width:"+(this.width_-this.anchor_[1])+"px; padding-left:"+this.anchor_[1]+"px;"):t.push("width:"+this.width_+"px; text-align:center;")):t.push("height:"+this.height_+"px; line-height:"+this.height_+"px; width:"+this.width_+"px; text-align:center;");var i=this.textColor_?this.textColor_:"black",o=this.textSize_?this.textSize_:11;return t.push("cursor:pointer; top:"+e.y+"px; left:"+e.x+"px; color:"+i+"; position:absolute; font-size:"+o+"px; font-family:Arial,sans-serif; font-weight:bold"),t.join("")},(window.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;var CM={element:document.getElementById("calendar-map"),events_panel:document.getElementById("events-panel"),event_count_div:document.getElementById("event-count"),search_input:document.getElementById("event_search"),search_error:document.getElementById("event_search_error"),search_btn:document.getElementById("event_search_button"),mrkrColour:getComputedStyle(document.body).getPropertyValue("--primary"),setVisibility:function(e,t){e&&(e.style.visibility=t)},setValue:function(e,t){e&&(e.value=t)},mapOptions:function(){return{mapTypeId:google.maps.MapTypeId.ROADMAP,scrollwheel:!1,mapTypeControl:!1,scaleControl:!1,streetViewControl:!1,fullscreenControl:!1,zoomControl:!0,zoomControlOptions:{position:google.maps.ControlPosition.LEFT_TOP}}},meetsSearchCriteria:function(e){var t=!0,n=CM.getUrlParameter("tag").toLowerCase(),i=parseInt(CM.getUrlParameter("days")),o=parseInt(CM.getUrlParameter("maxrsvps")),r=parseInt(CM.getUrlParameter("minrsvps")),a=e.tags.join("|").toLowerCase().split("|");return""!=n&&-1==a.indexOf(n)&&(t=!1),!isNaN(i)&&e.days_until>i&&(t=!1),!isNaN(r)&&e.rsvps_count<r&&(t=!1),!isNaN(o)&&e.rsvps_count>o&&(t=!1),t},populateMap:function(e){CM.markers=CM.markers||[],CM.bounds=CM.bounds||new google.maps.LatLngBounds,CM.latLngArray=CM.latLngArray||[];for(var t=0;t<e.length;t++){var n,i,o,r=e[t].venue_address.lat,a=e[t].venue_address.lng;r&&a&&CM.meetsSearchCriteria(e[t])&&(n=new google.maps.LatLng(r,a),i=CM.checkMatchingLatLng(n,CM.latLngArray),o=new google.maps.Marker({title:e[t].headline||e[t].name,position:i,popupContent:CM.buildPopup(e[t]),listingContent:CM.buildListing(e[t]),icon:CM.pinSymbol(CM.mrkrColour)}),CM.latLngArray.push(n),o.setMap(CM.map),CM.markers.push(o),CM.setMarkerFunctions(o),CM.bounds.extend(o.position))}CM.map.fitBounds(CM.bounds)},clusterStyles:function(e){return[{textColor:"#333333",url:e,height:56,width:56}]},checkMatchingLatLng:function(e,t){var n=e,o=0;if(0<t.length){for(i=0;i<t.length;i++)e.equals(t[i])&&o++;var r=e.lng()-17e-6*o,n=new google.maps.LatLng(e.lat(),r)}return n},initMapCheck:function(){CM.element&&0<$("#analytics-consent").length?$.ajax({type:"POST",url:"/analytics_consent",data:{authenticity_token:window._auth_token},success:function(e,t,n){CM.initMap()}}):CM.initMap()},initMap:function(){var n,e;CM.element&&(CM.map=new google.maps.Map(CM.element,CM.mapOptions()),CM.infoWindow=new google.maps.InfoWindow({maxWidth:340}),e=(n="true"==CM.element.getAttribute("data-is-supporterbase"))?"https://"+CM.element.getAttribute("data-nation-slug")+".supporterbase.com/api/supporter_groups.json":CM.element.getAttribute("data-calendar-json-path")+("?"+(-1<window.location.search.indexOf("preview=0")?"preview=0&":"")+"page="+(new Date).getTime()),$.getJSON(e).complete(function(e){var t;t=n?e.responseJSON.data.map(function(e){return e.attributes}):e.responseJSON,CM.map=new google.maps.Map(CM.element,CM.mapOptions()),t&&(CM.populateMap(t),CM.initFeaturesAndEvents())}))},initFeaturesAndEvents:function(){CM.initMarkerClusterer(),CM.initAutoComplete(),google.maps.event.addListener(CM.map,"bounds_changed",CM.updateListings),google.maps.event.addListenerOnce(CM.map,"tilesloaded",CM.setMapLocationFromUrl)},initAutoComplete:function(){var e;CM.search_input&&CM.search_btn&&(e=document.body.getAttribute("data-country-code"),CM.autoComplete=new google.maps.places.Autocomplete(CM.search_input,{types:["(regions)"],componentRestrictions:e?{country:[e]}:{}}),CM.autoComplete.addListener("place_changed",CM.setMapLocation),CM.search_btn.addEventListener("click",CM.setMapLocation))},initMarkerClusterer:function(){var e=CM.element.getAttribute("data-clusterer-image-url");CM.mc=new MarkerClusterer(CM.map,CM.markers,{styles:CM.clusterStyles(e),maxZoom:19,ignoreHidden:!1,gridSize:32})},locationSearch:function(e,o){var t,n;CM.ac_service=CM.ac_service||new google.maps.places.AutocompleteService,CM.pl_service=CM.pl_service||new google.maps.places.PlacesService(CM.map),e&&0<e.length&&(n={input:e,types:["(regions)"],componentRestrictions:(t=document.body.getAttribute("data-country-code"))?{country:[t]}:{}},CM.ac_service.getPlacePredictions(n,function(e,t){var i=google.maps.places.PlacesServiceStatus.OK;t==i?CM.pl_service.getDetails({placeId:e[0].place_id},function(e,t){var n;e&&e.geometry&&t==i?(CM.map.panTo(e.geometry.location),n=CM.getUrlParameter("zoom")||11,CM.map.setZoom(parseInt(n)),CM.setVisibility(CM.search_error,"hidden"),CM.setValue(CM.search_input,e.formatted_address)):!1===o&&CM.setVisibility(CM.search_error,"visible")}):!1===o&&CM.setVisibility(CM.search_error,"visible")}))},setMapLocationFromUrl:function(){var e=CM.getUrlParameter("location");e&&0<e.length?CM.locationSearch(e,!0):CM.search_input&&CM.locationSearch(CM.search_input.value,!1),16<CM.map.getZoom()&&CM.map.setZoom(16)},setMapLocation:function(){var e=CM.autoComplete.getPlace();e&&e.geometry?(CM.map.panTo(e.geometry.location),CM.map.setZoom(11),CM.setVisibility(CM.search_error,"hidden")):CM.search_input&&CM.locationSearch(CM.search_input.value,!1)},getUrlParameter:function(e){e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var t=new RegExp("[\\?&]"+e+"=([^&#]*)").exec(location.search);return null===t?"":decodeURIComponent(t[1].replace(/\+/g," "))},updateListings:function(){var e=CM.events_panel,t=CM.markers,n=0;e.innerHTML="";for(var i=0,o=CM.map.getBounds();i<t.length;i++)o.contains(t[i].getPosition())&&(e.appendChild(t[i].listingContent),n++);CM.updatePanelHeadline(n)},updatePanelHeadline:function(e){var t=CM.element.getAttribute("data-new-event-url"),n="true"==CM.element.getAttribute("data-is-supporterbase"),i=n?"supporter group":CM.element.getAttribute("data-event-name-singular"),o=n?"supporter groups":CM.element.getAttribute("data-event-name-plural"),r=CM.element.getAttribute("data-all-events-count");0===e?(CM.event_count_div.innerHTML="",CM.events_panel.innerHTML='<div class="listing-container"><h4 class="lead"><strong>There are no '+(n?"":"upcoming ")+o+" in this area.</strong></h4>"+(t&&!n?'<div class="py-1"><a href="'+t+'" target="_blank" class="btn btn-primary">Host your own '+i+"</a></div>":"")+"</div>"):CM.event_count_div.innerHTML=1===e?"Showing 1 "+i+(e==r?"":" in this area"):1<e&&e==r?"Showing all "+e+" "+o:"Showing "+e+" "+o+" in this area"},listingContent:function(e,t){return'<h5 class="text-primary"><a href="'+e.url+'" target="_blank">'+(e.headline||e.name)+"</a></h5>"+(e.start_date&&e.start_time?'<div class="pb-1"><strong>'+e.start_date+" at "+e.start_time+"</strong></div>":"")+(e.venue_address_one_line?'<div class="pb-1"><em>'+e.venue_address_one_line+"</em></div>":"")+("popup"==t&&0<e.excerpt.length?'<div class="pb-2">'+e.excerpt+"</div>":"")+(e.calendar_id?'<div class="my-1"><a class="btn btn-primary btn-sm" href="'+e.url+'" target="_blank">View group</a></div>':"")+(e.accept_rsvps?'<div class="my-1"><a class="btn btn-primary btn-sm" href="'+e.url+'" target="_blank">RSVP</a></div>':"")},buildListing:function(e){var t=document.createElement("DIV");return t.className="listing-container",t.innerHTML=CM.listingContent(e,"panel"),t},buildPopup:function(e){var t=document.createElement("DIV");return t.className="info-window",t.innerHTML=CM.listingContent(e,"popup"),t},setMarkerFunctions:function(t){function e(e){CM.infoWindow.setContent(t.popupContent),CM.infoWindow.open(CM.map,t)}google.maps.event.addListener(t,"click",e),google.maps.event.addDomListener(t.listingContent,"click",e)},pinSymbol:function(e){return{path:"M 0,0 C -2,-20 -10,-22 -10,-30 A 10,10 0 1,1 10,-30 C 10,-22 2,-20 0,0 z M -2,-30 a 2,2 0 1,1 4,0 2,2 0 1,1 -4,0",fillColor:e||"blue",fillOpacity:1,scale:1.2,strokeColor:"black",strokeWeight:2}}};"undefined"!=typeof google&&google.maps.event.addDomListener(window,"load",CM.initMapCheck);var StagedDonations=StagedDonations||{};$(document).ready(function(){var r,a;(function(){this.updateContainerHeight=function(e){$(".progress-stages").animate({"min-height":e},300)},this.updateProgressIndicator=function(e,t){var n=e.find(".active"),i=n.next(),o=n.prev();t&&n.next().length?(n.addClass("completed").find(".stage-count-inner").addClass("icon-tick"),n.removeClass("active"),i.addClass("active"),i.addClass("seen")):!t&&n.prev().length&&(n.removeClass("active"),o.addClass("active"))},this.updateProgressStages=function(e,t){var n=e.find(".active");n.next(),n.prev();t&&n.next().length?n.hide("slide",{direction:"left",easing:"easeInBack"},300,function(){$(this).removeClass("active"),n.next().show("slide",{direction:"left"},300,function(){$(this).addClass("active")})}):!t&&n.prev().length&&n.hide("slide",{direction:"left",easing:"easeInBack"},function(){$(this).removeClass("active"),n.prev().show("slide",{direction:"left"},300,function(){$(this).addClass("active")})})},this.triggerAlert=function(e,t){t.closest(".form-group").addClass("has-error"),t.before("<label class='control-label custom-error text-left' style='text-align: left;'>"+e+"</label>")},this.removeAlerts=function(){$(".has-error").each(function(){$(this).removeClass("has-error"),$(this).find("label.custom-error").remove()}),$("#auto_address .form-group").removeClass("has-error"),$("#address-error-msg").hide()},this.validateEmail=function(e){return/\S+@\S+\.\S+/.test(e)},this.validateDonations=function(e){var t=""==$("#donation_amount_other").val()?0:parseFloat($("#donation_amount_other").val());switch(e){case"1":return!(t<.5&&0==$('.progress-stage input[type="radio"]:checked').length)||(this.triggerAlert("Invalid donation amount",$("#donation_amount_other")),!1);case"2":var n=!0,i=this.validateEmail($("#donation_email").val());return $("#donation_billing_address_address1").val()||(this.triggerAlert("Address1 can't be blank",$("#donation_billing_address_address1")),n=!1),$("#donation_billing_address_city").val()||(this.triggerAlert("City can't be blank",$("#donation_billing_address_city")),n=!1),$("#donation_billing_address_phone_number").val()||(this.triggerAlert("Phone number can't be blank",$("#donation_billing_address_phone_number")),n=!1),$("#donation_first_name").val()||(this.triggerAlert("You must supply your first name.",$("#donation_first_name")),n=!1),$("#donation_last_name").val()||(this.triggerAlert("You must supply your last name.",$("#donation_last_name")),n=!1),$("#donation_employer").prop("required")&&!$("#donation_employer").val()&&(this.triggerAlert("You must supply your employer.",$("#donation_employer")),n=!1),$("#donation_occupation").prop("required")&&!$("#donation_occupation").val()&&(this.triggerAlert("You must supply your occupation.",$("#donation_occupation")),n=!1),$("#donation_work_address_address1").prop("required")&&!$("#donation_work_address_address1").val()&&(this.triggerAlert("You must supply your employer's address.",$("#donation_work_address_address1")),n=!1),$("#donation_work_address_city").prop("required")&&!$("#donation_work_address_city").val()&&(this.triggerAlert("You must supply your employer's city.",$("#donation_work_address_city")),n=!1),$("#donation_work_address_zip").prop("required")&&!$("#donation_work_address_zip").val()&&(this.triggerAlert("You must supply your employer's Postcode.",$("#donation_work_address_zip")),n=!1),i||(this.triggerAlert("Email address not valid",$("#donation_email")),n=!1),n;default:return!0}}}).apply(StagedDonations),$(".progress-indicator-stages").length&&(r=$(".progress-indicator-stages"),a=$(".progress-stages"),$(".progress-indicator-stages .stage-count").each(function(){$(this).click(function(e){var t,n,i,o;e.preventDefault(),$(this).parent().hasClass("active")||($(this).parent().hasClass("completed")||$(this).parent().hasClass("seen"))&&(t=$.grep($(this).parent().attr("class").split(" "),function(e,t){return 0===e.indexOf("stage-")}).join(),n=r.find(".active"),i=a.children("."+t),o=a.find(".active"),n.removeClass("active"),$(this).parent().addClass("active"),o.hide("slide",{direction:"left",easing:"easeInBack"},300,function(){$(this).removeClass("active"),i.show("slide",{direction:"left"},300,function(){$(this).addClass("active")})}))})}),$(".progress-stage-button-next").each(function(){$(this).click(function(e){e.preventDefault(),StagedDonations.removeAlerts();var t=$(".progress-stage.active").attr("data-stageid");StagedDonations.validateDonations(t)?(StagedDonations.updateProgressIndicator(r,1),StagedDonations.updateProgressStages(a,1)):(r.find(".active").removeClass("completed").find(".stage-count-inner").removeClass("icon-tick"),r.find(".active").next().removeClass("seen"))})}),$(".progress-stage-button-prev").each(function(){$(this).click(function(e){e.preventDefault(),StagedDonations.removeAlerts(),StagedDonations.updateProgressIndicator(r,0),StagedDonations.updateProgressStages(a,0)})}),a.find('input[type="submit"]').click(function(e){r.find(".active").addClass("completed").find(".stage-count-inner").addClass("icon-tick")}))}),function(s){var n,i,o,r,a,l,c,d,u,p,h,f,g,e,m,v,b,y,t,k,w="ui-effects-";function _(e,t,n,i){return s.isPlainObject(e)&&(e=(t=e).effect),e={effect:e},null==t&&(t={}),s.isFunction(t)&&(i=t,n=null,t={}),"number"!=typeof t&&!s.fx.speeds[t]||(i=n,n=t,t={}),s.isFunction(n)&&(i=n,n=null),t&&s.extend(e,t),n=n||t.duration,e.duration=s.fx.off?0:"number"==typeof n?n:n in s.fx.speeds?s.fx.speeds[n]:s.fx.speeds._default,e.complete=i||t.complete,e}function x(e){return!e||"number"==typeof e||s.fx.speeds[e]||("string"==typeof e&&!s.effects.effect[e]||(s.isFunction(e)||"object"==typeof e&&!e.effect))}function C(e){var t,n,i=e.ownerDocument.defaultView?e.ownerDocument.defaultView.getComputedStyle(e,null):e.currentStyle,o={};if(i&&i.length&&i[0]&&i[i[0]])for(n=i.length;n--;)"string"==typeof i[t=i[n]]&&(o[s.camelCase(t)]=i[t]);else for(t in i)"string"==typeof i[t]&&(o[t]=i[t]);return o}function T(e,t,n){var i=b[t.type]||{};return null==e?n||!t.def?null:t.def:(e=i.floor?~~e:parseFloat(e),isNaN(e)?t.def:i.mod?(e+i.mod)%i.mod:e<0?0:i.max<e?i.max:e)}function S(a){var s=m(),l=s._rgba=[];return a=a.toLowerCase(),k(e,function(e,t){var n,i=t.re.exec(a),o=i&&t.parse(i),r=t.space||"rgba";return o?(n=s[r](o),s[v[r].cache]=n[v[r].cache],l=s._rgba=n._rgba,!1):h}),l.length?("0,0,0,0"===l.join()&&p.extend(l,f.transparent),s):f[a]}function M(e,t,n){return 6*(n=(n+1)%1)<1?e+6*(t-e)*n:2*n<1?t:3*n<2?e+6*(t-e)*(2/3-n):e}s.effects={effect:{}},p=jQuery,g=/^([\-+])=\s*(\d+\.?\d*)/,e=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[e[1],e[2],e[3],e[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[2.55*e[1],2.55*e[2],2.55*e[3],e[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(e){return[e[1],e[2]/100,e[3]/100,e[4]]}}],m=p.Color=function(e,t,n,i){return new p.Color.fn.parse(e,t,n,i)},v={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},b={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},y=m.support={},t=p("<p>")[0],k=p.each,t.style.cssText="background-color:rgba(1,1,1,.5)",y.rgba=-1<t.style.backgroundColor.indexOf("rgba"),k(v,function(e,t){t.cache="_"+e,t.props.alpha={idx:3,type:"percent",def:1}}),m.fn=p.extend(m.prototype,{parse:function(o,e,t,n){if(o===h)return this._rgba=[null,null,null,null],this;(o.jquery||o.nodeType)&&(o=p(o).css(e),e=h);var r=this,i=p.type(o),a=this._rgba=[];return e!==h&&(o=[o,e,t,n],i="array"),"string"===i?this.parse(S(o)||f._default):"array"===i?(k(v.rgba.props,function(e,t){a[t.idx]=T(o[t.idx],t)}),this):"object"===i?(k(v,o instanceof m?function(e,t){o[t.cache]&&(r[t.cache]=o[t.cache].slice())}:function(e,n){var i=n.cache;k(n.props,function(e,t){if(!r[i]&&n.to){if("alpha"===e||null==o[e])return;r[i]=n.to(r._rgba)}r[i][t.idx]=T(o[e],t,!0)}),r[i]&&p.inArray(null,r[i].slice(0,3))<0&&(r[i][3]=1,n.from&&(r._rgba=n.from(r[i])))}),this):h},is:function(e){var o=m(e),r=!0,a=this;return k(v,function(e,t){var n,i=o[t.cache];return i&&(n=a[t.cache]||t.to&&t.to(a._rgba)||[],k(t.props,function(e,t){return null!=i[t.idx]?r=i[t.idx]===n[t.idx]:h})),r}),r},_space:function(){var n=[],i=this;return k(v,function(e,t){i[t.cache]&&n.push(e)}),n.pop()},transition:function(e,a){var t=(c=m(e))._space(),n=v[t],i=0===this.alpha()?m("transparent"):this,s=i[n.cache]||n.to(i._rgba),l=s.slice(),c=c[n.cache];return k(n.props,function(e,t){var n=t.idx,i=s[n],o=c[n],r=b[t.type]||{};null!==o&&(null===i?l[n]=o:(r.mod&&(r.mod/2<o-i?i+=r.mod:r.mod/2<i-o&&(i-=r.mod)),l[n]=T((o-i)*a+i,t)))}),this[t](l)},blend:function(e){if(1===this._rgba[3])return this;var t=this._rgba.slice(),n=t.pop(),i=m(e)._rgba;return m(p.map(t,function(e,t){return(1-n)*i[t]+n*e}))},toRgbaString:function(){var e="rgba(",t=p.map(this._rgba,function(e,t){return null==e?2<t?1:0:e});return 1===t[3]&&(t.pop(),e="rgb("),e+t.join()+")"},toHslaString:function(){var e="hsla(",t=p.map(this.hsla(),function(e,t){return null==e&&(e=2<t?1:0),t&&t<3&&(e=Math.round(100*e)+"%"),e});return 1===t[3]&&(t.pop(),e="hsl("),e+t.join()+")"},toHexString:function(e){var t=this._rgba.slice(),n=t.pop();return e&&t.push(~~(255*n)),"#"+p.map(t,function(e){return 1===(e=(e||0).toString(16)).length?"0"+e:e}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),m.fn.parse.prototype=m.fn,v.hsla.to=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t=e[0]/255,n=e[1]/255,i=e[2]/255,o=e[3],r=Math.max(t,n,i),a=Math.min(t,n,i),s=r-a,l=r+a,c=.5*l,d=a===r?0:t===r?60*(n-i)/s+360:n===r?60*(i-t)/s+120:60*(t-n)/s+240,u=0==s?0:c<=.5?s/l:s/(2-l);return[Math.round(d)%360,u,c,null==o?1:o]},v.hsla.from=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t=e[0]/360,n=e[1],i=e[2],o=e[3],r=i<=.5?i*(1+n):i+n-i*n,a=2*i-r;return[Math.round(255*M(a,r,t+1/3)),Math.round(255*M(a,r,t)),Math.round(255*M(a,r,t-1/3)),o]},k(v,function(l,e){var n=e.props,a=e.cache,s=e.to,c=e.from;m.fn[l]=function(e){if(s&&!this[a]&&(this[a]=s(this._rgba)),e===h)return this[a].slice();var t,i=p.type(e),o="array"===i||"object"===i?e:arguments,r=this[a].slice();return k(n,function(e,t){var n=o["object"===i?e:t.idx];null==n&&(n=r[t.idx]),r[t.idx]=T(n,t)}),c?((t=m(c(r)))[a]=r,t):m(r)},k(n,function(a,s){m.fn[a]||(m.fn[a]=function(e){var t,n=p.type(e),i="alpha"===a?this._hsla?"hsla":"rgba":l,o=this[i](),r=o[s.idx];return"undefined"===n?r:("function"===n&&(e=e.call(this,r),n=p.type(e)),null==e&&s.empty?this:("string"===n&&((t=g.exec(e))&&(e=r+parseFloat(t[2])*("+"===t[1]?1:-1))),o[s.idx]=e,this[i](o)))})})}),m.hook=function(e){var t=e.split(" ");k(t,function(e,r){p.cssHooks[r]={set:function(e,t){var n,i,o="";if("transparent"!==t&&("string"!==p.type(t)||(n=S(t)))){if(t=m(n||t),!y.rgba&&1!==t._rgba[3]){for(i="backgroundColor"===r?e.parentNode:e;(""===o||"transparent"===o)&&i&&i.style;)try{o=p.css(i,"backgroundColor"),i=i.parentNode}catch(e){}t=t.blend(o&&"transparent"!==o?o:"_default")}t=t.toRgbaString()}try{e.style[r]=t}catch(e){}}},p.fx.step[r]=function(e){e.colorInit||(e.start=m(e.elem,r),e.end=m(e.end),e.colorInit=!0),p.cssHooks[r].set(e.elem,e.start.transition(e.end,e.pos))}})},m.hook("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor"),p.cssHooks.borderColor={expand:function(n){var i={};return k(["Top","Right","Bottom","Left"],function(e,t){i["border"+t+"Color"]=n}),i}},f=p.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"},d=["add","remove","toggle"],u={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1},s.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(e,t){s.fx.step[t]=function(e){("none"!==e.end&&!e.setAttr||1===e.pos&&!e.setAttr)&&(jQuery.style(e.elem,t,e.end),e.setAttr=!0)}}),s.fn.addBack||(s.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),s.effects.animateClass=function(o,e,t,n){var r=s.speed(e,t,n);return this.queue(function(){function e(){s.each(d,function(e,t){o[t]&&n[t+"Class"](o[t])})}var n=s(this),t=n.attr("class")||"",i=(i=r.children?n.find("*").addBack():n).map(function(){return{el:s(this),start:C(this)}});e(),i=i.map(function(){return this.end=C(this.el[0]),this.diff=function(e,t){var n,i,o={};for(n in t)i=t[n],e[n]!==i&&(u[n]||!s.fx.step[n]&&isNaN(parseFloat(i))||(o[n]=i));return o}(this.start,this.end),this}),n.attr("class",t),i=i.map(function(){var e=this,t=s.Deferred(),n=s.extend({},r,{queue:!1,complete:function(){t.resolve(e)}});return this.el.animate(this.diff,n),t.promise()}),s.when.apply(s,i.get()).done(function(){e(),s.each(arguments,function(){var t=this.el;s.each(this.diff,function(e){t.css(e,"")})}),r.complete.call(n[0])})})},s.fn.extend({addClass:(c=s.fn.addClass,function(e,t,n,i){return t?s.effects.animateClass.call(this,{add:e},t,n,i):c.apply(this,arguments)}),removeClass:(l=s.fn.removeClass,function(e,t,n,i){return 1<arguments.length?s.effects.animateClass.call(this,{remove:e},t,n,i):l.apply(this,arguments)}),toggleClass:(a=s.fn.toggleClass,function(e,t,n,i,o){return"boolean"==typeof t||void 0===t?n?s.effects.animateClass.call(this,t?{add:e}:{remove:e},n,i,o):a.apply(this,arguments):s.effects.animateClass.call(this,{toggle:e},t,n,i)}),switchClass:function(e,t,n,i,o){return s.effects.animateClass.call(this,{add:t,remove:e},n,i,o)}}),s.extend(s.effects,{version:"1.10.4",save:function(e,t){for(var n=0;t.length>n;n++)null!==t[n]&&e.data(w+t[n],e[0].style[t[n]])},restore:function(e,t){for(var n,i=0;t.length>i;i++)null!==t[i]&&(void 0===(n=e.data(w+t[i]))&&(n=""),e.css(t[i],n))},setMode:function(e,t){return"toggle"===t&&(t=e.is(":hidden")?"show":"hide"),t},getBaseline:function(e,t){var n,i;switch(e[0]){case"top":n=0;break;case"middle":n=.5;break;case"bottom":n=1;break;default:n=e[0]/t.height}switch(e[1]){case"left":i=0;break;case"center":i=.5;break;case"right":i=1;break;default:i=e[1]/t.width}return{x:i,y:n}},createWrapper:function(n){if(n.parent().is(".ui-effects-wrapper"))return n.parent();var i={width:n.outerWidth(!0),height:n.outerHeight(!0),float:n.css("float")},e=s("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),t={width:n.width(),height:n.height()},o=document.activeElement;try{o.id}catch(e){o=document.body}return n.wrap(e),n[0]!==o&&!s.contains(n[0],o)||s(o).focus(),e=n.parent(),"static"===n.css("position")?(e.css({position:"relative"}),n.css({position:"relative"})):(s.extend(i,{position:n.css("position"),zIndex:n.css("z-index")}),s.each(["top","left","bottom","right"],function(e,t){i[t]=n.css(t),isNaN(parseInt(i[t],10))&&(i[t]="auto")}),n.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),n.css(t),e.css(i).show()},removeWrapper:function(e){var t=document.activeElement;return e.parent().is(".ui-effects-wrapper")&&(e.parent().replaceWith(e),e[0]!==t&&!s.contains(e[0],t)||s(t).focus()),e},setTransition:function(i,e,o,r){return r=r||{},s.each(e,function(e,t){var n=i.cssUnit(t);0<n[0]&&(r[t]=n[0]*o+n[1])}),r}}),s.fn.extend({effect:function(){function e(e){function t(){s.isFunction(i)&&i.call(n[0]),s.isFunction(e)&&e()}var n=s(this),i=r.complete,o=r.mode;(n.is(":hidden")?"hide"===o:"show"===o)?(n[o](),t()):a.call(n[0],r,t)}var r=_.apply(this,arguments),t=r.mode,n=r.queue,a=s.effects.effect[r.effect];return s.fx.off||!a?t?this[t](r.duration,r.complete):this.each(function(){r.complete&&r.complete.call(this)}):!1===n?this.each(e):this.queue(n||"fx",e)},show:(r=s.fn.show,function(e){if(x(e))return r.apply(this,arguments);var t=_.apply(this,arguments);return t.mode="show",this.effect.call(this,t)}),hide:(o=s.fn.hide,function(e){if(x(e))return o.apply(this,arguments);var t=_.apply(this,arguments);return t.mode="hide",this.effect.call(this,t)}),toggle:(i=s.fn.toggle,function(e){if(x(e)||"boolean"==typeof e)return i.apply(this,arguments);var t=_.apply(this,arguments);return t.mode="toggle",this.effect.call(this,t)}),cssUnit:function(e){var n=this.css(e),i=[];return s.each(["em","px","%","pt"],function(e,t){0<n.indexOf(t)&&(i=[parseFloat(n),t])}),i}}),n={},s.each(["Quad","Cubic","Quart","Quint","Expo"],function(t,e){n[e]=function(e){return Math.pow(e,t+2)}}),s.extend(n,{Sine:function(e){return 1-Math.cos(e*Math.PI/2)},Circ:function(e){return 1-Math.sqrt(1-e*e)},Elastic:function(e){return 0===e||1===e?e:-Math.pow(2,8*(e-1))*Math.sin((80*(e-1)-7.5)*Math.PI/15)},Back:function(e){return e*e*(3*e-2)},Bounce:function(e){for(var t,n=4;((t=Math.pow(2,--n))-1)/11>e;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*t-2)/22-e,2)}}),s.each(n,function(e,t){s.easing["easeIn"+e]=t,s.easing["easeOut"+e]=function(e){return 1-t(1-e)},s.easing["easeInOut"+e]=function(e){return e<.5?t(2*e)/2:1-t(-2*e+2)/2}})}(jQuery),function(u){u.effects.effect.slide=function(e,t){var n,i=u(this),o=["position","top","bottom","left","right","width","height"],r=u.effects.setMode(i,e.mode||"show"),a="show"===r,s=e.direction||"left",l="up"===s||"down"===s?"top":"left",c="up"===s||"left"===s,d={};u.effects.save(i,o),i.show(),n=e.distance||i["top"==l?"outerHeight":"outerWidth"](!0),u.effects.createWrapper(i).css({overflow:"hidden"}),a&&i.css(l,c?isNaN(n)?"-"+n:-n:n),d[l]=(a?c?"+=":"-=":c?"-=":"+=")+n,i.animate(d,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){"hide"===r&&i.hide(),u.effects.restore(i,o),u.effects.removeWrapper(i),t()}})}}(jQuery),function(l,u,g){"use strict";function n(e,t){var n,i,o,r=[],a=0;e&&e.isDefaultPrevented()||(e.preventDefault(),t=t||{},e&&e.data&&(t=d(e.data.options,t)),n=t.$target||g(e.currentTarget).trigger("blur"),(o=g.fancybox.getInstance())&&o.$trigger&&o.$trigger.is(n)||(r=t.selector?g(t.selector):(i=n.attr("data-fancybox")||"")?(r=e.data?e.data.items:[]).length?r.filter('[data-fancybox="'+i+'"]'):g('[data-fancybox="'+i+'"]'):[n],(a=g(r).index(n))<0&&(a=0),(o=g.fancybox.open(r,t,a)).$trigger=n))}if(l.console=l.console||{info:function(e){}},g){if(g.fn.fancybox)return console.info("fancyBox already initialized");var e={closeExisting:!1,loop:!1,gutter:50,keyboard:!0,preventCaptionOverlap:!0,arrows:!0,infobar:!0,smallBtn:"auto",toolbar:"auto",buttons:["zoom","slideShow","thumbs","close"],idleTime:3,protect:!1,modal:!1,image:{preload:!1},ajax:{settings:{data:{fancybox:!0}}},iframe:{tpl:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" allowfullscreen="allowfullscreen" allow="autoplay; fullscreen" src=""></iframe>',preload:!0,css:{},attr:{scrolling:"auto"}},video:{tpl:'<video class="fancybox-video" controls controlsList="nodownload" poster="{{poster}}"><source src="{{src}}" type="{{format}}" />Sorry, your browser doesn\'t support embedded videos, <a href="{{src}}">download</a> and watch with your favorite video player!</video>',format:"",autoStart:!0},defaultType:"image",animationEffect:"zoom",animationDuration:366,zoomOpacity:"auto",transitionEffect:"fade",transitionDuration:366,slideClass:"",baseClass:"",baseTpl:'<div class="fancybox-container" role="dialog" tabindex="-1"><div class="fancybox-bg"></div><div class="fancybox-inner"><div class="fancybox-infobar"><span data-fancybox-index></span>&nbsp;/&nbsp;<span data-fancybox-count></span></div><div class="fancybox-toolbar">{{buttons}}</div><div class="fancybox-navigation">{{arrows}}</div><div class="fancybox-stage"></div><div class="fancybox-caption"><div class="fancybox-caption__body"></div></div></div></div>',spinnerTpl:'<div class="fancybox-loading"></div>',errorTpl:'<div class="fancybox-error"><p>{{ERROR}}</p></div>',btnTpl:{download:'<a download data-fancybox-download class="fancybox-button fancybox-button--download" title="{{DOWNLOAD}}" href="javascript:;"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.62 17.09V19H5.38v-1.91zm-2.97-6.96L17 11.45l-5 4.87-5-4.87 1.36-1.32 2.68 2.64V5h1.92v7.77z"/></svg></a>',zoom:'<button data-fancybox-zoom class="fancybox-button fancybox-button--zoom" title="{{ZOOM}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.7 17.3l-3-3a5.9 5.9 0 0 0-.6-7.6 5.9 5.9 0 0 0-8.4 0 5.9 5.9 0 0 0 0 8.4 5.9 5.9 0 0 0 7.7.7l3 3a1 1 0 0 0 1.3 0c.4-.5.4-1 0-1.5zM8.1 13.8a4 4 0 0 1 0-5.7 4 4 0 0 1 5.7 0 4 4 0 0 1 0 5.7 4 4 0 0 1-5.7 0z"/></svg></button>',close:'<button data-fancybox-close class="fancybox-button fancybox-button--close" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 10.6L6.6 5.2 5.2 6.6l5.4 5.4-5.4 5.4 1.4 1.4 5.4-5.4 5.4 5.4 1.4-1.4-5.4-5.4 5.4-5.4-1.4-1.4-5.4 5.4z"/></svg></button>',arrowLeft:'<button data-fancybox-prev class="fancybox-button fancybox-button--arrow_left" title="{{PREV}}"><div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11.28 15.7l-1.34 1.37L5 12l4.94-5.07 1.34 1.38-2.68 2.72H19v1.94H8.6z"/></svg></div></button>',arrowRight:'<button data-fancybox-next class="fancybox-button fancybox-button--arrow_right" title="{{NEXT}}"><div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.4 12.97l-2.68 2.72 1.34 1.38L19 12l-4.94-5.07-1.34 1.38 2.68 2.72H5v1.94z"/></svg></div></button>',smallBtn:'<button type="button" data-fancybox-close class="fancybox-button fancybox-close-small" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" version="1" viewBox="0 0 24 24"><path d="M13 12l5-5-1-1-5 5-5-5-1 1 5 5-5 5 1 1 5-5 5 5 1-1z"/></svg></button>'},parentEl:"body",hideScrollbar:!0,autoFocus:!0,backFocus:!0,trapFocus:!0,fullScreen:{autoStart:!1},touch:{vertical:!0,momentum:!0},hash:null,media:{},slideShow:{autoStart:!1,speed:3e3},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".fancybox-container",axis:"y"},wheel:"auto",onInit:g.noop,beforeLoad:g.noop,afterLoad:g.noop,beforeShow:g.noop,afterShow:g.noop,beforeClose:g.noop,afterClose:g.noop,onActivate:g.noop,onDeactivate:g.noop,clickContent:function(e,t){return"image"===e.type&&"zoom"},clickSlide:"close",clickOutside:"close",dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1,mobile:{preventCaptionOverlap:!1,idleTime:!1,clickContent:function(e,t){return"image"===e.type&&"toggleControls"},clickSlide:function(e,t){return"image"===e.type?"toggleControls":"close"},dblclickContent:function(e,t){return"image"===e.type&&"zoom"},dblclickSlide:function(e,t){return"image"===e.type&&"zoom"}},lang:"en",i18n:{en:{CLOSE:"Close",NEXT:"Next",PREV:"Previous",ERROR:"The requested content cannot be loaded. <br/> Please try again later.",PLAY_START:"Start slideshow",PLAY_STOP:"Pause slideshow",FULL_SCREEN:"Full screen",THUMBS:"Thumbnails",DOWNLOAD:"Download",SHARE:"Share",ZOOM:"Zoom"},de:{CLOSE:"Schlie&szlig;en",NEXT:"Weiter",PREV:"Zur&uuml;ck",ERROR:"Die angeforderten Daten konnten nicht geladen werden. <br/> Bitte versuchen Sie es sp&auml;ter nochmal.",PLAY_START:"Diaschau starten",PLAY_STOP:"Diaschau beenden",FULL_SCREEN:"Vollbild",THUMBS:"Vorschaubilder",DOWNLOAD:"Herunterladen",SHARE:"Teilen",ZOOM:"Vergr&ouml;&szlig;ern"}}},o=g(l),a=g(u),r=0,p=l.requestAnimationFrame||l.webkitRequestAnimationFrame||l.mozRequestAnimationFrame||l.oRequestAnimationFrame||function(e){return l.setTimeout(e,1e3/60)},t=l.cancelAnimationFrame||l.webkitCancelAnimationFrame||l.mozCancelAnimationFrame||l.oCancelAnimationFrame||function(e){l.clearTimeout(e)},c=function(){var e,t=u.createElement("fakeelement"),n={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(e in n)if(void 0!==t.style[e])return n[e];return"transitionend"}(),h=function(e){return e&&e.length&&e[0].offsetHeight},d=function(e,t){var n=g.extend(!0,{},e,t);return g.each(t,function(e,t){g.isArray(t)&&(n[e]=t)}),n},i=function(e,t,n){var i=this;i.opts=d({index:n},g.fancybox.defaults),g.isPlainObject(t)&&(i.opts=d(i.opts,t)),g.fancybox.isMobile&&(i.opts=d(i.opts,i.opts.mobile)),i.id=i.opts.id||++r,i.currIndex=parseInt(i.opts.index,10)||0,i.prevIndex=null,i.prevPos=null,i.currPos=0,i.firstRun=!0,i.group=[],i.slides={},i.addContent(e),i.group.length&&i.init()};g.extend(i.prototype,{init:function(){var t,n,i=this,o=i.group[i.currIndex].opts;o.closeExisting&&g.fancybox.close(!0),g("body").addClass("fancybox-active"),!g.fancybox.getInstance()&&!1!==o.hideScrollbar&&!g.fancybox.isMobile&&u.body.scrollHeight>l.innerHeight&&(g("head").append('<style id="fancybox-style-noscroll" type="text/css">.compensate-for-scrollbar{margin-right:'+(l.innerWidth-u.documentElement.clientWidth)+"px;}</style>"),g("body").addClass("compensate-for-scrollbar")),n="",g.each(o.buttons,function(e,t){n+=o.btnTpl[t]||""}),t=g(i.translate(i,o.baseTpl.replace("{{buttons}}",n).replace("{{arrows}}",o.btnTpl.arrowLeft+o.btnTpl.arrowRight))).attr("id","fancybox-container-"+i.id).addClass(o.baseClass).data("FancyBox",i).appendTo(o.parentEl),i.$refs={container:t},["bg","inner","infobar","toolbar","stage","caption","navigation"].forEach(function(e){i.$refs[e]=t.find(".fancybox-"+e)}),i.trigger("onInit"),i.activate(),i.jumpTo(i.currIndex)},translate:function(e,t){var n=e.opts.i18n[e.opts.lang]||e.opts.i18n.en;return t.replace(/\{\{(\w+)\}\}/g,function(e,t){return void 0===n[t]?e:n[t]})},addContent:function(e){var t,c=this,n=g.makeArray(e);g.each(n,function(e,t){var n,i,o,r,a,s={},l={};g.isPlainObject(t)?l=(s=t).opts||t:"object"===g.type(t)&&g(t).length?(l=(n=g(t)).data()||{},(l=g.extend(!0,{},l,l.options)).$orig=n,s.src=c.opts.src||l.src||n.attr("href"),s.type||s.src||(s.type="inline",s.src=t)):s={type:"html",src:t+""},s.opts=g.extend(!0,{},c.opts,l),g.isArray(l.buttons)&&(s.opts.buttons=l.buttons),g.fancybox.isMobile&&s.opts.mobile&&(s.opts=d(s.opts,s.opts.mobile)),i=s.type||s.opts.type,r=s.src||"",!i&&r&&((o=r.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(i="video",s.opts.video.format||(s.opts.video.format="video/"+("ogv"===o[1]?"ogg":o[1]))):r.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?i="image":r.match(/\.(pdf)((\?|#).*)?$/i)?(i="iframe",s=g.extend(!0,s,{contentType:"pdf",opts:{iframe:{preload:!1}}})):"#"===r.charAt(0)&&(i="inline")),i?s.type=i:c.trigger("objectNeedsType",s),s.contentType||(s.contentType=-1<g.inArray(s.type,["html","inline","ajax"])?"html":s.type),s.index=c.group.length,"auto"==s.opts.smallBtn&&(s.opts.smallBtn=-1<g.inArray(s.type,["html","inline","ajax"])),"auto"===s.opts.toolbar&&(s.opts.toolbar=!s.opts.smallBtn),s.$thumb=s.opts.$thumb||null,s.opts.$trigger&&s.index===c.opts.index&&(s.$thumb=s.opts.$trigger.find("img:first"),s.$thumb.length&&(s.opts.$orig=s.opts.$trigger)),s.$thumb&&s.$thumb.length||!s.opts.$orig||(s.$thumb=s.opts.$orig.find("img:first")),s.$thumb&&!s.$thumb.length&&(s.$thumb=null),s.thumb=s.opts.thumb||(s.$thumb?s.$thumb[0].src:null),"function"===g.type(s.opts.caption)&&(s.opts.caption=s.opts.caption.apply(t,[c,s])),"function"===g.type(c.opts.caption)&&(s.opts.caption=c.opts.caption.apply(t,[c,s])),s.opts.caption instanceof g||(s.opts.caption=void 0===s.opts.caption?"":s.opts.caption+""),"ajax"!==s.type||1<(a=r.split(/\s+/,2)).length&&(s.src=a.shift(),s.opts.filter=a.shift()),s.opts.modal&&(s.opts=g.extend(!0,s.opts,{trapFocus:!0,infobar:0,toolbar:0,smallBtn:0,keyboard:0,slideShow:0,fullScreen:0,thumbs:0,touch:0,clickContent:!1,clickSlide:!1,clickOutside:!1,dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1})),c.group.push(s)}),Object.keys(c.slides).length&&(c.updateControls(),(t=c.Thumbs)&&t.isActive&&(t.create(),t.focus()))},addEvents:function(){var i=this;i.removeEvents(),i.$refs.container.on("click.fb-close","[data-fancybox-close]",function(e){e.stopPropagation(),e.preventDefault(),i.close(e)}).on("touchstart.fb-prev click.fb-prev","[data-fancybox-prev]",function(e){e.stopPropagation(),e.preventDefault(),i.previous()}).on("touchstart.fb-next click.fb-next","[data-fancybox-next]",function(e){e.stopPropagation(),e.preventDefault(),i.next()}).on("click.fb","[data-fancybox-zoom]",function(e){i[i.isScaledDown()?"scaleToActual":"scaleToFit"]()}),o.on("orientationchange.fb resize.fb",function(e){e&&e.originalEvent&&"resize"===e.originalEvent.type?(i.requestId&&t(i.requestId),i.requestId=p(function(){i.update(e)})):(i.current&&"iframe"===i.current.type&&i.$refs.stage.hide(),setTimeout(function(){i.$refs.stage.show(),i.update(e)},g.fancybox.isMobile?600:250))}),a.on("keydown.fb",function(e){var t=(g.fancybox?g.fancybox.getInstance():null).current,n=e.keyCode||e.which;if(9!=n)return!t.opts.keyboard||e.ctrlKey||e.altKey||e.shiftKey||g(e.target).is("input,textarea,video,audio")?void 0:8===n||27===n?(e.preventDefault(),void i.close(e)):37===n||38===n?(e.preventDefault(),void i.previous()):39===n||40===n?(e.preventDefault(),void i.next()):void i.trigger("afterKeydown",e,n);t.opts.trapFocus&&i.focus(e)}),i.group[i.currIndex].opts.idleTime&&(i.idleSecondsCounter=0,a.on("mousemove.fb-idle mouseleave.fb-idle mousedown.fb-idle touchstart.fb-idle touchmove.fb-idle scroll.fb-idle keydown.fb-idle",function(e){i.idleSecondsCounter=0,i.isIdle&&i.showControls(),i.isIdle=!1}),i.idleInterval=l.setInterval(function(){++i.idleSecondsCounter>=i.group[i.currIndex].opts.idleTime&&!i.isDragging&&(i.isIdle=!0,i.idleSecondsCounter=0,i.hideControls())},1e3))},removeEvents:function(){o.off("orientationchange.fb resize.fb"),a.off("keydown.fb .fb-idle"),this.$refs.container.off(".fb-close .fb-prev .fb-next"),this.idleInterval&&(l.clearInterval(this.idleInterval),this.idleInterval=null)},previous:function(e){return this.jumpTo(this.currPos-1,e)},next:function(e){return this.jumpTo(this.currPos+1,e)},jumpTo:function(e,i){var t,n,o,r,a,s,l,c,d,u=this,p=u.group.length;if(!(u.isDragging||u.isClosing||u.isAnimating&&u.firstRun)){if(e=parseInt(e,10),!(o=u.current?u.current.opts.loop:u.opts.loop)&&(e<0||p<=e))return!1;if(t=u.firstRun=!Object.keys(u.slides).length,a=u.current,u.prevIndex=u.currIndex,u.prevPos=u.currPos,r=u.createSlide(e),1<p&&((o||r.index<p-1)&&u.createSlide(e+1),(o||0<r.index)&&u.createSlide(e-1)),u.current=r,u.currIndex=r.index,u.currPos=r.pos,u.trigger("beforeShow",t),u.updateControls(),r.forcedDuration=void 0,g.isNumeric(i)?r.forcedDuration=i:i=r.opts[t?"animationDuration":"transitionDuration"],i=parseInt(i,10),n=u.isMoved(r),r.$slide.addClass("fancybox-slide--current"),t)return r.opts.animationEffect&&i&&u.$refs.container.css("transition-duration",i+"ms"),u.$refs.container.addClass("fancybox-is-open").trigger("focus"),u.loadSlide(r),void u.preload("image");s=g.fancybox.getTranslate(a.$slide),l=g.fancybox.getTranslate(u.$refs.stage),g.each(u.slides,function(e,t){g.fancybox.stop(t.$slide,!0)}),a.pos!==r.pos&&(a.isComplete=!1),a.$slide.removeClass("fancybox-slide--complete fancybox-slide--current"),n?(d=s.left-(a.pos*s.width+a.pos*a.opts.gutter),g.each(u.slides,function(e,t){t.$slide.removeClass("fancybox-animated").removeClass(function(e,t){return(t.match(/(^|\s)fancybox-fx-\S+/g)||[]).join(" ")});var n=t.pos*s.width+t.pos*t.opts.gutter;g.fancybox.setTranslate(t.$slide,{top:0,left:n-l.left+d}),t.pos!==r.pos&&t.$slide.addClass("fancybox-slide--"+(t.pos>r.pos?"next":"previous")),h(t.$slide),g.fancybox.animate(t.$slide,{top:0,left:(t.pos-r.pos)*s.width+(t.pos-r.pos)*t.opts.gutter},i,function(){t.$slide.css({transform:"",opacity:""}).removeClass("fancybox-slide--next fancybox-slide--previous"),t.pos===u.currPos&&u.complete()})})):i&&r.opts.transitionEffect&&(c="fancybox-animated fancybox-fx-"+r.opts.transitionEffect,a.$slide.addClass("fancybox-slide--"+(a.pos>r.pos?"next":"previous")),g.fancybox.animate(a.$slide,c,i,function(){a.$slide.removeClass(c).removeClass("fancybox-slide--next fancybox-slide--previous")},!1)),r.isLoaded?u.revealContent(r):u.loadSlide(r),u.preload("image")}},createSlide:function(e){var t,n=this,i=e%n.group.length;return i=i<0?n.group.length+i:i,!n.slides[e]&&n.group[i]&&(t=g('<div class="fancybox-slide"></div>').appendTo(n.$refs.stage),n.slides[e]=g.extend(!0,{},n.group[i],{pos:e,$slide:t,isLoaded:!1}),n.updateSlide(n.slides[e])),n.slides[e]},scaleToActual:function(e,t,n){var i,o,r,a,s,l=this,c=l.current,d=c.$content,u=g.fancybox.getTranslate(c.$slide).width,p=g.fancybox.getTranslate(c.$slide).height,h=c.width,f=c.height;l.isAnimating||l.isMoved()||!d||"image"!=c.type||!c.isLoaded||c.hasError||(l.isAnimating=!0,g.fancybox.stop(d),e=void 0===e?.5*u:e,t=void 0===t?.5*p:t,(i=g.fancybox.getTranslate(d)).top-=g.fancybox.getTranslate(c.$slide).top,i.left-=g.fancybox.getTranslate(c.$slide).left,a=h/i.width,s=f/i.height,o=.5*u-.5*h,r=.5*p-.5*f,u<h&&(0<(o=i.left*a-(e*a-e))&&(o=0),o<u-h&&(o=u-h)),p<f&&(0<(r=i.top*s-(t*s-t))&&(r=0),r<p-f&&(r=p-f)),l.updateCursor(h,f),g.fancybox.animate(d,{top:r,left:o,scaleX:a,scaleY:s},n||366,function(){l.isAnimating=!1}),l.SlideShow&&l.SlideShow.isActive&&l.SlideShow.stop())},scaleToFit:function(e){var t,n=this,i=n.current,o=i.$content;n.isAnimating||n.isMoved()||!o||"image"!=i.type||!i.isLoaded||i.hasError||(n.isAnimating=!0,g.fancybox.stop(o),t=n.getFitPos(i),n.updateCursor(t.width,t.height),g.fancybox.animate(o,{top:t.top,left:t.left,scaleX:t.width/o.width(),scaleY:t.height/o.height()},e||366,function(){n.isAnimating=!1}))},getFitPos:function(e){var t,n,i,o,r=e.$content,a=e.$slide,s=e.width||e.opts.width,l=e.height||e.opts.height,c={};return!!(e.isLoaded&&r&&r.length)&&(t=g.fancybox.getTranslate(this.$refs.stage).width,n=g.fancybox.getTranslate(this.$refs.stage).height,t-=parseFloat(a.css("paddingLeft"))+parseFloat(a.css("paddingRight"))+parseFloat(r.css("marginLeft"))+parseFloat(r.css("marginRight")),n-=parseFloat(a.css("paddingTop"))+parseFloat(a.css("paddingBottom"))+parseFloat(r.css("marginTop"))+parseFloat(r.css("marginBottom")),s&&l||(s=t,l=n),t-.5<(s*=i=Math.min(1,t/s,n/l))&&(s=t),n-.5<(l*=i)&&(l=n),"image"===e.type?(c.top=Math.floor(.5*(n-l))+parseFloat(a.css("paddingTop")),c.left=Math.floor(.5*(t-s))+parseFloat(a.css("paddingLeft"))):"video"===e.contentType&&(s/(o=e.opts.width&&e.opts.height?s/l:e.opts.ratio||16/9)<l?l=s/o:l*o<s&&(s=l*o)),c.width=s,c.height=l,c)},update:function(n){var i=this;g.each(i.slides,function(e,t){i.updateSlide(t,n)})},updateSlide:function(e,t){var n=this,i=e&&e.$content,o=e.width||e.opts.width,r=e.height||e.opts.height,a=e.$slide;n.adjustCaption(e),i&&(o||r||"video"===e.contentType)&&!e.hasError&&(g.fancybox.stop(i),g.fancybox.setTranslate(i,n.getFitPos(e)),e.pos===n.currPos&&(n.isAnimating=!1,n.updateCursor())),n.adjustLayout(e),a.length&&(a.trigger("refresh"),e.pos===n.currPos&&n.$refs.toolbar.add(n.$refs.navigation.find(".fancybox-button--arrow_right")).toggleClass("compensate-for-scrollbar",a.get(0).scrollHeight>a.get(0).clientHeight)),n.trigger("onUpdate",e,t)},centerSlide:function(e){var t=this,n=t.current,i=n.$slide;!t.isClosing&&n&&(i.siblings().css({transform:"",opacity:""}),i.parent().children().removeClass("fancybox-slide--previous fancybox-slide--next"),g.fancybox.animate(i,{top:0,left:0,opacity:1},void 0===e?0:e,function(){i.css({transform:"",opacity:""}),n.isComplete||t.complete()},!1))},isMoved:function(e){var t,n,i=e||this.current;return!!i&&(n=g.fancybox.getTranslate(this.$refs.stage),t=g.fancybox.getTranslate(i.$slide),!i.$slide.hasClass("fancybox-animated")&&(.5<Math.abs(t.top-n.top)||.5<Math.abs(t.left-n.left)))},updateCursor:function(e,t){var n,i,o=this,r=o.current,a=o.$refs.container;r&&!o.isClosing&&o.Guestures&&(a.removeClass("fancybox-is-zoomable fancybox-can-zoomIn fancybox-can-zoomOut fancybox-can-swipe fancybox-can-pan"),i=!!(n=o.canPan(e,t))||o.isZoomable(),a.toggleClass("fancybox-is-zoomable",i),g("[data-fancybox-zoom]").prop("disabled",!i),n?a.addClass("fancybox-can-pan"):i&&("zoom"===r.opts.clickContent||g.isFunction(r.opts.clickContent)&&"zoom"==r.opts.clickContent(r))?a.addClass("fancybox-can-zoomIn"):r.opts.touch&&(r.opts.touch.vertical||1<o.group.length)&&"video"!==r.contentType&&a.addClass("fancybox-can-swipe"))},isZoomable:function(){var e,t=this.current;if(t&&!this.isClosing&&"image"===t.type&&!t.hasError){if(!t.isLoaded)return!0;if((e=this.getFitPos(t))&&(t.width>e.width||t.height>e.height))return!0}return!1},isScaledDown:function(e,t){var n=!1,i=this.current,o=i.$content;return void 0!==e&&void 0!==t?n=e<i.width&&t<i.height:o&&(n=(n=g.fancybox.getTranslate(o)).width<i.width&&n.height<i.height),n},canPan:function(e,t){var n=this.current,i=null,o=!1;return"image"===n.type&&(n.isComplete||e&&t)&&!n.hasError&&(o=this.getFitPos(n),void 0!==e&&void 0!==t?i={width:e,height:t}:n.isComplete&&(i=g.fancybox.getTranslate(n.$content)),i&&o&&(o=1.5<Math.abs(i.width-o.width)||1.5<Math.abs(i.height-o.height))),o},loadSlide:function(n){var e,t,i,o=this;if(!n.isLoading&&!n.isLoaded){if(!(n.isLoading=!0)===o.trigger("beforeLoad",n))return n.isLoading=!1;switch(e=n.type,(t=n.$slide).off("refresh").trigger("onReset").addClass(n.opts.slideClass),e){case"image":o.setImage(n);break;case"iframe":o.setIframe(n);break;case"html":o.setContent(n,n.src||n.content);break;case"video":o.setContent(n,n.opts.video.tpl.replace(/\{\{src\}\}/gi,n.src).replace("{{format}}",n.opts.videoFormat||n.opts.video.format||"").replace("{{poster}}",n.thumb||""));break;case"inline":g(n.src).length?o.setContent(n,g(n.src)):o.setError(n);break;case"ajax":o.showLoading(n),i=g.ajax(g.extend({},n.opts.ajax.settings,{url:n.src,success:function(e,t){"success"===t&&o.setContent(n,e)},error:function(e,t){e&&"abort"!==t&&o.setError(n)}})),t.one("onReset",function(){i.abort()});break;default:o.setError(n)}return!0}},setImage:function(t){var e,n=this;setTimeout(function(){var e=t.$image;n.isClosing||!t.isLoading||e&&e.length&&e[0].complete||t.hasError||n.showLoading(t)},50),n.checkSrcset(t),t.$content=g('<div class="fancybox-content"></div>').addClass("fancybox-is-hidden").appendTo(t.$slide.addClass("fancybox-slide--image")),!1!==t.opts.preload&&t.opts.width&&t.opts.height&&t.thumb&&(t.width=t.opts.width,t.height=t.opts.height,(e=u.createElement("img")).onerror=function(){g(this).remove(),t.$ghost=null},e.onload=function(){n.afterLoad(t)},t.$ghost=g(e).addClass("fancybox-image").appendTo(t.$content).attr("src",t.thumb)),n.setBigImage(t)},checkSrcset:function(e){var t,n,i,o,r=e.opts.srcset||e.opts.image.srcset;if(r){i=l.devicePixelRatio||1,o=l.innerWidth*i,(n=r.split(",").map(function(e){var i={};return e.trim().split(/\s+/).forEach(function(e,t){var n=parseInt(e.substring(0,e.length-1),10);if(0===t)return i.url=e;n&&(i.value=n,i.postfix=e[e.length-1])}),i})).sort(function(e,t){return e.value-t.value});for(var a=0;a<n.length;a++){var s=n[a];if("w"===s.postfix&&s.value>=o||"x"===s.postfix&&s.value>=i){t=s;break}}!t&&n.length&&(t=n[n.length-1]),t&&(e.src=t.url,e.width&&e.height&&"w"==t.postfix&&(e.height=e.width/e.height*t.value,e.width=t.value),e.opts.srcset=r)}},setBigImage:function(t){var n=this,e=u.createElement("img"),i=g(e);t.$image=i.one("error",function(){n.setError(t)}).one("load",function(){var e;t.$ghost||(n.resolveImageSlideSize(t,this.naturalWidth,this.naturalHeight),n.afterLoad(t)),n.isClosing||(t.opts.srcset&&((e=t.opts.sizes)&&"auto"!==e||(e=(1<t.width/t.height&&1<o.width()/o.height()?"100":Math.round(t.width/t.height*100))+"vw"),i.attr("sizes",e).attr("srcset",t.opts.srcset)),t.$ghost&&setTimeout(function(){t.$ghost&&!n.isClosing&&t.$ghost.hide()},Math.min(300,Math.max(1e3,t.height/1600))),n.hideLoading(t))}).addClass("fancybox-image").attr("src",t.src).appendTo(t.$content),(e.complete||"complete"==e.readyState)&&i.naturalWidth&&i.naturalHeight?i.trigger("load"):e.error&&i.trigger("error")},resolveImageSlideSize:function(e,t,n){var i=parseInt(e.opts.width,10),o=parseInt(e.opts.height,10);e.width=t,e.height=n,0<i&&(e.width=i,e.height=Math.floor(i*n/t)),0<o&&(e.width=Math.floor(o*t/n),e.height=o)},setIframe:function(o){var r,t=this,a=o.opts.iframe,s=o.$slide;o.$content=g('<div class="fancybox-content'+(a.preload?" fancybox-is-hidden":"")+'"></div>').css(a.css).appendTo(s),s.addClass("fancybox-slide--"+o.contentType),o.$iframe=r=g(a.tpl.replace(/\{rnd\}/g,(new Date).getTime())).attr(a.attr).appendTo(o.$content),a.preload?(t.showLoading(o),r.on("load.fb error.fb",function(e){this.isReady=1,o.$slide.trigger("refresh"),t.afterLoad(o)}),s.on("refresh.fb",function(){var e,t=o.$content,n=a.css.width,i=a.css.height;if(1===r[0].isReady){try{e=r.contents().find("body")}catch(e){}e&&e.length&&e.children().length&&(s.css("overflow","visible"),t.css({width:"100%","max-width":"100%",height:"9999px"}),void 0===n&&(n=Math.ceil(Math.max(e[0].clientWidth,e.outerWidth(!0)))),t.css("width",n||"").css("max-width",""),void 0===i&&(i=Math.ceil(Math.max(e[0].clientHeight,e.outerHeight(!0)))),t.css("height",i||""),s.css("overflow","auto")),t.removeClass("fancybox-is-hidden")}})):t.afterLoad(o),r.attr("src",o.src),s.one("onReset",function(){try{g(this).find("iframe").hide().unbind().attr("src","//about:blank")}catch(e){}g(this).off("refresh.fb").empty(),o.isLoaded=!1,o.isRevealed=!1})},setContent:function(e,t){var n;this.isClosing||(this.hideLoading(e),e.$content&&g.fancybox.stop(e.$content),e.$slide.empty(),(n=t)&&n.hasOwnProperty&&n instanceof g&&t.parent().length?((t.hasClass("fancybox-content")||t.parent().hasClass("fancybox-content"))&&t.parents(".fancybox-slide").trigger("onReset"),e.$placeholder=g("<div>").hide().insertAfter(t),t.css("display","inline-block")):e.hasError||("string"===g.type(t)&&(t=g("<div>").append(g.trim(t)).contents()),e.opts.filter&&(t=g("<div>").html(t).find(e.opts.filter))),e.$slide.one("onReset",function(){g(this).find("video,audio").trigger("pause"),e.$placeholder&&(e.$placeholder.after(t.removeClass("fancybox-content").hide()).remove(),e.$placeholder=null),e.$smallBtn&&(e.$smallBtn.remove(),e.$smallBtn=null),e.hasError||(g(this).empty(),e.isLoaded=!1,e.isRevealed=!1)}),g(t).appendTo(e.$slide),g(t).is("video,audio")&&(g(t).addClass("fancybox-video"),g(t).wrap("<div></div>"),e.contentType="video",e.opts.width=e.opts.width||g(t).attr("width"),e.opts.height=e.opts.height||g(t).attr("height")),e.$content=e.$slide.children().filter("div,form,main,video,audio,article,.fancybox-content").first(),e.$content.siblings().hide(),e.$content.length||(e.$content=e.$slide.wrapInner("<div></div>").children().first()),e.$content.addClass("fancybox-content"),e.$slide.addClass("fancybox-slide--"+e.contentType),this.afterLoad(e))},setError:function(e){e.hasError=!0,e.$slide.trigger("onReset").removeClass("fancybox-slide--"+e.contentType).addClass("fancybox-slide--error"),e.contentType="html",this.setContent(e,this.translate(e,e.opts.errorTpl)),e.pos===this.currPos&&(this.isAnimating=!1)},showLoading:function(e){(e=e||this.current)&&!e.$spinner&&(e.$spinner=g(this.translate(this,this.opts.spinnerTpl)).appendTo(e.$slide).hide().fadeIn("fast"))},hideLoading:function(e){(e=e||this.current)&&e.$spinner&&(e.$spinner.stop().remove(),delete e.$spinner)},afterLoad:function(e){var t=this;t.isClosing||(e.isLoading=!1,e.isLoaded=!0,t.trigger("afterLoad",e),t.hideLoading(e),!e.opts.smallBtn||e.$smallBtn&&e.$smallBtn.length||(e.$smallBtn=g(t.translate(e,e.opts.btnTpl.smallBtn)).appendTo(e.$content)),e.opts.protect&&e.$content&&!e.hasError&&(e.$content.on("contextmenu.fb",function(e){return 2==e.button&&e.preventDefault(),!0}),"image"===e.type&&g('<div class="fancybox-spaceball"></div>').appendTo(e.$content)),t.adjustCaption(e),t.adjustLayout(e),e.pos===t.currPos&&t.updateCursor(),t.revealContent(e))},adjustCaption:function(e){var t,n=this,i=e||n.current,o=i.opts.caption,r=i.opts.preventCaptionOverlap,a=n.$refs.caption,s=!1;a.toggleClass("fancybox-caption--separate",r),r&&o&&o.length&&(i.pos!==n.currPos?((t=a.clone().appendTo(a.parent())).children().eq(0).empty().html(o),s=t.outerHeight(!0),t.empty().remove()):n.$caption&&(s=n.$caption.outerHeight(!0)),i.$slide.css("padding-bottom",s||""))},adjustLayout:function(e){var t,n,i,o,r=e||this.current;r.isLoaded&&!0!==r.opts.disableLayoutFix&&(r.$content.css("margin-bottom",""),r.$content.outerHeight()>r.$slide.height()+.5&&(i=r.$slide[0].style["padding-bottom"],o=r.$slide.css("padding-bottom"),0<parseFloat(o)&&(t=r.$slide[0].scrollHeight,r.$slide.css("padding-bottom",0),Math.abs(t-r.$slide[0].scrollHeight)<1&&(n=o),r.$slide.css("padding-bottom",i))),r.$content.css("margin-bottom",n))},revealContent:function(e){var t,n,i,o,r=this,a=e.$slide,s=!1,l=!1,c=r.isMoved(e),d=e.isRevealed;return e.isRevealed=!0,t=e.opts[r.firstRun?"animationEffect":"transitionEffect"],i=e.opts[r.firstRun?"animationDuration":"transitionDuration"],i=parseInt(void 0===e.forcedDuration?i:e.forcedDuration,10),!c&&e.pos===r.currPos&&i||(t=!1),"zoom"===t&&(e.pos===r.currPos&&i&&"image"===e.type&&!e.hasError&&(l=r.getThumbPos(e))?s=r.getFitPos(e):t="fade"),"zoom"===t?(r.isAnimating=!0,s.scaleX=s.width/l.width,s.scaleY=s.height/l.height,"auto"==(o=e.opts.zoomOpacity)&&(o=.1<Math.abs(e.width/e.height-l.width/l.height)),o&&(l.opacity=.1,s.opacity=1),g.fancybox.setTranslate(e.$content.removeClass("fancybox-is-hidden"),l),h(e.$content),void g.fancybox.animate(e.$content,s,i,function(){r.isAnimating=!1,r.complete()})):(r.updateSlide(e),t?(g.fancybox.stop(a),n="fancybox-slide--"+(e.pos>=r.prevPos?"next":"previous")+" fancybox-animated fancybox-fx-"+t,a.addClass(n).removeClass("fancybox-slide--current"),e.$content.removeClass("fancybox-is-hidden"),h(a),"image"!==e.type&&e.$content.hide().show(0),void g.fancybox.animate(a,"fancybox-slide--current",i,function(){a.removeClass(n).css({transform:"",opacity:""}),e.pos===r.currPos&&r.complete()},!0)):(e.$content.removeClass("fancybox-is-hidden"),d||!c||"image"!==e.type||e.hasError||e.$content.hide().fadeIn("fast"),void(e.pos===r.currPos&&r.complete())))},getThumbPos:function(e){var t,n,i,o,r,a,s,l,c=!1,d=e.$thumb;return!(!d||(!(a=d[0])||a.ownerDocument!==u||(g(".fancybox-container").css("pointer-events","none"),s={x:a.getBoundingClientRect().left+a.offsetWidth/2,y:a.getBoundingClientRect().top+a.offsetHeight/2},l=u.elementFromPoint(s.x,s.y)===a,g(".fancybox-container").css("pointer-events",""),!l)))&&(t=g.fancybox.getTranslate(d),n=parseFloat(d.css("border-top-width")||0),i=parseFloat(d.css("border-right-width")||0),o=parseFloat(d.css("border-bottom-width")||0),r=parseFloat(d.css("border-left-width")||0),c={top:t.top+n,left:t.left+r,width:t.width-i-r,height:t.height-n-o,scaleX:1,scaleY:1},0<t.width&&0<t.height&&c)},complete:function(){var e,n=this,t=n.current,i={};!n.isMoved()&&t.isLoaded&&(t.isComplete||(t.isComplete=!0,t.$slide.siblings().trigger("onReset"),n.preload("inline"),h(t.$slide),t.$slide.addClass("fancybox-slide--complete"),g.each(n.slides,function(e,t){t.pos>=n.currPos-1&&t.pos<=n.currPos+1?i[t.pos]=t:t&&(g.fancybox.stop(t.$slide),t.$slide.off().remove())}),n.slides=i),n.isAnimating=!1,n.updateCursor(),n.trigger("afterShow"),t.opts.video.autoStart&&t.$slide.find("video,audio").filter(":visible:first").trigger("play").one("ended",function(){this.webkitExitFullscreen&&this.webkitExitFullscreen(),n.next()}),t.opts.autoFocus&&"html"===t.contentType&&((e=t.$content.find("input[autofocus]:enabled:visible:first")).length?e.trigger("focus"):n.focus(null,!0)),t.$slide.scrollTop(0).scrollLeft(0))},preload:function(e){var t,n,i=this;i.group.length<2||(n=i.slides[i.currPos+1],(t=i.slides[i.currPos-1])&&t.type===e&&i.loadSlide(t),n&&n.type===e&&i.loadSlide(n))},focus:function(e,t){var n,i,o=this,r=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden])","iframe","object","embed","video","audio","[contenteditable]",'[tabindex]:not([tabindex^="-"])'].join(",");o.isClosing||((n=(n=!e&&o.current&&o.current.isComplete?o.current.$slide.find("*:visible"+(t?":not(.fancybox-close-small)":"")):o.$refs.container.find("*:visible")).filter(r).filter(function(){return"hidden"!==g(this).css("visibility")&&!g(this).hasClass("disabled")})).length?(i=n.index(u.activeElement),e&&e.shiftKey?(i<0||0==i)&&(e.preventDefault(),n.eq(n.length-1).trigger("focus")):(i<0||i==n.length-1)&&(e&&e.preventDefault(),n.eq(0).trigger("focus"))):o.$refs.container.trigger("focus"))},activate:function(){var t=this;g(".fancybox-container").each(function(){var e=g(this).data("FancyBox");e&&e.id!==t.id&&!e.isClosing&&(e.trigger("onDeactivate"),e.removeEvents(),e.isVisible=!1)}),t.isVisible=!0,(t.current||t.isIdle)&&(t.update(),t.updateControls()),t.trigger("onActivate"),t.addEvents()},close:function(e,t){function n(){d.cleanUp(e)}var i,o,r,a,s,l,c,d=this,u=d.current;return!d.isClosing&&(!(d.isClosing=!0)===d.trigger("beforeClose",e)?(d.isClosing=!1,p(function(){d.update()}),!1):(d.removeEvents(),r=u.$content,i=u.opts.animationEffect,o=g.isNumeric(t)?t:i?u.opts.animationDuration:0,u.$slide.removeClass("fancybox-slide--complete fancybox-slide--next fancybox-slide--previous fancybox-animated"),!0!==e?g.fancybox.stop(u.$slide):i=!1,u.$slide.siblings().trigger("onReset").remove(),o&&d.$refs.container.removeClass("fancybox-is-open").addClass("fancybox-is-closing").css("transition-duration",o+"ms"),d.hideLoading(u),d.hideControls(!0),d.updateCursor(),"zoom"!==i||r&&o&&"image"===u.type&&!d.isMoved()&&!u.hasError&&(c=d.getThumbPos(u))||(i="fade"),"zoom"===i?(g.fancybox.stop(r),l={top:(a=g.fancybox.getTranslate(r)).top,left:a.left,scaleX:a.width/c.width,scaleY:a.height/c.height,width:c.width,height:c.height},"auto"==(s=u.opts.zoomOpacity)&&(s=.1<Math.abs(u.width/u.height-c.width/c.height)),s&&(c.opacity=0),g.fancybox.setTranslate(r,l),h(r),g.fancybox.animate(r,c,o,n)):i&&o?g.fancybox.animate(u.$slide.addClass("fancybox-slide--previous").removeClass("fancybox-slide--current"),"fancybox-animated fancybox-fx-"+i,o,n):!0===e?setTimeout(n,o):n(),!0))},cleanUp:function(e){var t,n,i,o=this,r=o.current.opts.$orig;o.current.$slide.trigger("onReset"),o.$refs.container.empty().remove(),o.trigger("afterClose",e),o.current.opts.backFocus&&(r&&r.length&&r.is(":visible")||(r=o.$trigger),r&&r.length&&(n=l.scrollX,i=l.scrollY,r.trigger("focus"),g("html, body").scrollTop(i).scrollLeft(n))),o.current=null,(t=g.fancybox.getInstance())?t.activate():(g("body").removeClass("fancybox-active compensate-for-scrollbar"),g("#fancybox-style-noscroll").remove())},trigger:function(e,t){var n,i=Array.prototype.slice.call(arguments,1),o=this,r=t&&t.opts?t:o.current;if(r?i.unshift(r):r=o,i.unshift(o),g.isFunction(r.opts[e])&&(n=r.opts[e].apply(r,i)),!1===n)return n;"afterClose"!==e&&o.$refs?o.$refs.container.trigger(e+".fb",i):a.trigger(e+".fb",i)},updateControls:function(){var e=this,t=e.current,n=t.index,i=e.$refs.container,o=e.$refs.caption,r=t.opts.caption;t.$slide.trigger("refresh"),r&&r.length?(e.$caption=o).children().eq(0).html(r):e.$caption=null,e.hasHiddenControls||e.isIdle||e.showControls(),i.find("[data-fancybox-count]").html(e.group.length),i.find("[data-fancybox-index]").html(n+1),i.find("[data-fancybox-prev]").prop("disabled",!t.opts.loop&&n<=0),i.find("[data-fancybox-next]").prop("disabled",!t.opts.loop&&n>=e.group.length-1),"image"===t.type?i.find("[data-fancybox-zoom]").show().end().find("[data-fancybox-download]").attr("href",t.opts.image.src||t.src).show():t.opts.toolbar&&i.find("[data-fancybox-download],[data-fancybox-zoom]").hide(),g(u.activeElement).is(":hidden,[disabled]")&&e.$refs.container.trigger("focus")},hideControls:function(e){var t=["infobar","toolbar","nav"];!e&&this.current.opts.preventCaptionOverlap||t.push("caption"),this.$refs.container.removeClass(t.map(function(e){return"fancybox-show-"+e}).join(" ")),this.hasHiddenControls=!0},showControls:function(){var e=this,t=e.current?e.current.opts:e.opts,n=e.$refs.container;e.hasHiddenControls=!1,e.idleSecondsCounter=0,n.toggleClass("fancybox-show-toolbar",!(!t.toolbar||!t.buttons)).toggleClass("fancybox-show-infobar",!!(t.infobar&&1<e.group.length)).toggleClass("fancybox-show-caption",!!e.$caption).toggleClass("fancybox-show-nav",!!(t.arrows&&1<e.group.length)).toggleClass("fancybox-is-modal",!!t.modal)},toggleControls:function(){this.hasHiddenControls?this.showControls():this.hideControls()}}),g.fancybox={version:"3.5.6",defaults:e,getInstance:function(e){var t=g('.fancybox-container:not(".fancybox-is-closing"):last').data("FancyBox"),n=Array.prototype.slice.call(arguments,1);return t instanceof i&&("string"===g.type(e)?t[e].apply(t,n):"function"===g.type(e)&&e.apply(t,n),t)},open:function(e,t,n){return new i(e,t,n)},close:function(e){var t=this.getInstance();t&&(t.close(),!0===e&&this.close(e))},destroy:function(){this.close(!0),a.add("body").off("click.fb-start","**")},isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),use3d:(f=u.createElement("div"),l.getComputedStyle&&l.getComputedStyle(f)&&l.getComputedStyle(f).getPropertyValue("transform")&&!(u.documentMode&&u.documentMode<11)),getTranslate:function(e){var t;return!(!e||!e.length)&&{top:(t=e[0].getBoundingClientRect()).top||0,left:t.left||0,width:t.width,height:t.height,opacity:parseFloat(e.css("opacity"))}},setTranslate:function(e,t){var n="",i={};if(e&&t)return void 0===t.left&&void 0===t.top||(n=(void 0===t.left?e.position().left:t.left)+"px, "+(void 0===t.top?e.position().top:t.top)+"px",n=this.use3d?"translate3d("+n+", 0px)":"translate("+n+")"),void 0!==t.scaleX&&void 0!==t.scaleY?n+=" scale("+t.scaleX+", "+t.scaleY+")":void 0!==t.scaleX&&(n+=" scaleX("+t.scaleX+")"),n.length&&(i.transform=n),void 0!==t.opacity&&(i.opacity=t.opacity),void 0!==t.width&&(i.width=t.width),void 0!==t.height&&(i.height=t.height),e.css(i)},animate:function(t,n,i,o,r){var a,s=this;g.isFunction(i)&&(o=i,i=null),s.stop(t),a=s.getTranslate(t),t.on(c,function(e){e&&e.originalEvent&&(!t.is(e.originalEvent.target)||"z-index"==e.originalEvent.propertyName)||(s.stop(t),g.isNumeric(i)&&t.css("transition-duration",""),g.isPlainObject(n)?void 0!==n.scaleX&&void 0!==n.scaleY&&s.setTranslate(t,{top:n.top,left:n.left,width:a.width*n.scaleX,height:a.height*n.scaleY,scaleX:1,scaleY:1}):!0!==r&&t.removeClass(n),g.isFunction(o)&&o(e))}),g.isNumeric(i)&&t.css("transition-duration",i+"ms"),g.isPlainObject(n)?(void 0!==n.scaleX&&void 0!==n.scaleY&&(delete n.width,delete n.height,t.parent().hasClass("fancybox-slide--image")&&t.parent().addClass("fancybox-is-scaling")),g.fancybox.setTranslate(t,n)):t.addClass(n),t.data("timer",setTimeout(function(){t.trigger(c)},i+33))},stop:function(e,t){e&&e.length&&(clearTimeout(e.data("timer")),t&&e.trigger(c),e.off(c).css("transition-duration",""),e.parent().removeClass("fancybox-is-scaling"))}},g.fn.fancybox=function(e){var t;return(t=(e=e||{}).selector||!1)?g("body").off("click.fb-start",t).on("click.fb-start",t,{options:e},n):this.off("click.fb-start").on("click.fb-start",{items:this,options:e},n),this},a.on("click.fb-start","[data-fancybox]",n),a.on("click.fb-start","[data-fancybox-trigger]",function(e){g('[data-fancybox="'+g(this).attr("data-fancybox-trigger")+'"]').eq(g(this).attr("data-fancybox-index")||0).trigger("click.fb-start",{$trigger:g(this)})}),s=null,a.on("mousedown mouseup focus blur",".fancybox-button",function(e){switch(e.type){case"mousedown":s=g(this);break;case"mouseup":s=null;break;case"focusin":g(".fancybox-button").removeClass("fancybox-focus"),g(this).is(s)||g(this).is("[disabled]")||g(this).addClass("fancybox-focus");break;case"focusout":g(".fancybox-button").removeClass("fancybox-focus")}})}var s,f}(window,document,jQuery),function(h){"use strict";function f(n,e,t){if(n)return t=t||"","object"===h.type(t)&&(t=h.param(t,!0)),h.each(e,function(e,t){n=n.replace("$"+e,t||"")}),t.length&&(n+=(0<n.indexOf("?")?"&":"?")+t),n}var i={youtube:{matcher:/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(watch\?(.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*))(.*)/i,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:"transparent",enablejsapi:1,html5:1},paramPlace:8,type:"iframe",url:"https://www.youtube-nocookie.com/embed/$4",thumb:"https://img.youtube.com/vi/$4/hqdefault.jpg"},vimeo:{matcher:/^.+vimeo.com\/(.*\/)?([\d]+)(.*)?/,params:{autoplay:1,hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1},paramPlace:3,type:"iframe",url:"//player.vimeo.com/video/$2"},instagram:{matcher:/(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,type:"image",url:"//$1/p/$2/media/?size=l"},gmap_place:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(((maps\/(place\/(.*)\/)?\@(.*),(\d+.?\d+?)z))|(\?ll=))(.*)?/i,type:"iframe",url:function(e){return"//maps.google."+e[2]+"/?ll="+(e[9]?e[9]+"&z="+Math.floor(e[10])+(e[12]?e[12].replace(/^\//,"&"):""):e[12]+"").replace(/\?/,"&")+"&output="+(e[12]&&0<e[12].indexOf("layer=c")?"svembed":"embed")}},gmap_search:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(maps\/search\/)(.*)/i,type:"iframe",url:function(e){return"//maps.google."+e[2]+"/maps?q="+e[5].replace("query=","q=").replace("api=1","")+"&output=embed"}}};h(document).on("objectNeedsType.fb",function(e,t,o){var r,a,s,l,c,d,u=o.src||"",p=!1,n=h.extend(!0,{},i,o.opts.media);h.each(n,function(e,t){if(a=u.match(t.matcher)){if(p=t.type,d=e,c={},t.paramPlace&&a[t.paramPlace]){"?"==(l=a[t.paramPlace])[0]&&(l=l.substring(1)),l=l.split("&");for(var n=0;n<l.length;++n){var i=l[n].split("=",2);2==i.length&&(c[i[0]]=decodeURIComponent(i[1].replace(/\+/g," ")))}}return s=h.extend(!0,{},t.params,o.opts[e],c),u="function"===h.type(t.url)?t.url.call(this,a,s,o):f(t.url,a,s),r="function"===h.type(t.thumb)?t.thumb.call(this,a,s,o):f(t.thumb,a),"youtube"===e?u=u.replace(/&t=((\d+)m)?(\d+)s/,function(e,t,n,i){return"&start="+((n?60*parseInt(n,10):0)+parseInt(i,10))}):"vimeo"===e&&(u=u.replace("&%23","#")),!1}}),p?(o.opts.thumb||o.opts.$thumb&&o.opts.$thumb.length||(o.opts.thumb=r),"iframe"===p&&(o.opts=h.extend(!0,o.opts,{iframe:{preload:!1,attr:{scrolling:"no"}}})),h.extend(o,{type:p,src:u,origSrc:o.src,contentSource:d,contentType:"image"===p?"image":"gmap_place"==d||"gmap_search"==d?"map":"video"})):u&&(o.type=o.opts.defaultType)});var o={youtube:{src:"https://www.youtube.com/iframe_api",class:"YT",loading:!1,loaded:!1},vimeo:{src:"https://player.vimeo.com/api/player.js",class:"Vimeo",loading:!1,loaded:!1},load:function(e){var t,n=this;this[e].loaded?setTimeout(function(){n.done(e)}):this[e].loading||(this[e].loading=!0,(t=document.createElement("script")).type="text/javascript",t.src=this[e].src,"youtube"===e?window.onYouTubeIframeAPIReady=function(){n[e].loaded=!0,n.done(e)}:t.onload=function(){n[e].loaded=!0,n.done(e)},document.body.appendChild(t))},done:function(e){var t,n;"youtube"===e&&delete window.onYouTubeIframeAPIReady,(t=h.fancybox.getInstance())&&(n=t.current.$content.find("iframe"),"youtube"===e&&void 0!==YT&&YT?new YT.Player(n.attr("id"),{events:{onStateChange:function(e){0==e.data&&t.next()}}}):"vimeo"===e&&void 0!==Vimeo&&Vimeo&&new Vimeo.Player(n).on("ended",function(){t.next()}))}};h(document).on({"afterShow.fb":function(e,t,n){1<t.group.length&&("youtube"===n.contentSource||"vimeo"===n.contentSource)&&o.load(n.contentSource)}})}(jQuery),function(g,l,m){"use strict";function d(e){var t=[];for(var n in e=(e=e.originalEvent||e||g.e).touches&&e.touches.length?e.touches:e.changedTouches&&e.changedTouches.length?e.changedTouches:[e])e[n].pageX?t.push({x:e[n].pageX,y:e[n].pageY}):e[n].clientX&&t.push({x:e[n].clientX,y:e[n].clientY});return t}function v(e,t,n){return t&&e?"x"===n?e.x-t.x:"y"===n?e.y-t.y:Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)):0}function c(e){if(e.is('a,area,button,[role="button"],input,label,select,summary,textarea,video,audio,iframe')||m.isFunction(e.get(0).onclick)||e.data("selectable"))return 1;for(var t=0,n=e[0].attributes,i=n.length;t<i;t++)if("data-fancybox-"===n[t].nodeName.substr(0,14))return 1}function u(e){for(var t,n,i,o,r,a=!1;(t=e.get(0),0,n=g.getComputedStyle(t)["overflow-y"],i=g.getComputedStyle(t)["overflow-x"],o=("scroll"===n||"auto"===n)&&t.scrollHeight>t.clientHeight,r=("scroll"===i||"auto"===i)&&t.scrollWidth>t.clientWidth,!(a=o||r))&&((e=e.parent()).length&&!e.hasClass("fancybox-stage")&&!e.is("body")););return a}function n(e){var t=this;t.instance=e,t.$bg=e.$refs.bg,t.$stage=e.$refs.stage,t.$container=e.$refs.container,t.destroy(),t.$container.on("touchstart.fb.touch mousedown.fb.touch",m.proxy(t,"ontouchstart"))}var b=g.requestAnimationFrame||g.webkitRequestAnimationFrame||g.mozRequestAnimationFrame||g.oRequestAnimationFrame||function(e){return g.setTimeout(e,1e3/60)},y=g.cancelAnimationFrame||g.webkitCancelAnimationFrame||g.mozCancelAnimationFrame||g.oCancelAnimationFrame||function(e){g.clearTimeout(e)};n.prototype.destroy=function(){var e=this;e.$container.off(".fb.touch"),m(l).off(".fb.touch"),e.requestId&&(y(e.requestId),e.requestId=null),e.tapped&&(clearTimeout(e.tapped),e.tapped=null)},n.prototype.ontouchstart=function(e){var t=this,n=m(e.target),i=t.instance,o=i.current,r=o.$slide,a=o.$content,s="touchstart"==e.type;if(s&&t.$container.off("mousedown.fb.touch"),(!e.originalEvent||2!=e.originalEvent.button)&&r.length&&n.length&&!c(n)&&!c(n.parent())&&(n.is("img")||!(e.originalEvent.clientX>n[0].clientWidth+n.offset().left))){if(!o||i.isAnimating||o.$slide.hasClass("fancybox-animated"))return e.stopPropagation(),void e.preventDefault();t.realPoints=t.startPoints=d(e),t.startPoints.length&&(o.touch&&e.stopPropagation(),t.startEvent=e,t.canTap=!0,t.$target=n,t.$content=a,t.opts=o.opts.touch,t.isPanning=!1,t.isSwiping=!1,t.isZooming=!1,t.isScrolling=!1,t.canPan=i.canPan(),t.startTime=(new Date).getTime(),t.distanceX=t.distanceY=t.distance=0,t.canvasWidth=Math.round(r[0].clientWidth),t.canvasHeight=Math.round(r[0].clientHeight),t.contentLastPos=null,t.contentStartPos=m.fancybox.getTranslate(t.$content)||{top:0,left:0},t.sliderStartPos=m.fancybox.getTranslate(r),t.stagePos=m.fancybox.getTranslate(i.$refs.stage),t.sliderStartPos.top-=t.stagePos.top,t.sliderStartPos.left-=t.stagePos.left,t.contentStartPos.top-=t.stagePos.top,t.contentStartPos.left-=t.stagePos.left,m(l).off(".fb.touch").on(s?"touchend.fb.touch touchcancel.fb.touch":"mouseup.fb.touch mouseleave.fb.touch",m.proxy(t,"ontouchend")).on(s?"touchmove.fb.touch":"mousemove.fb.touch",m.proxy(t,"ontouchmove")),m.fancybox.isMobile&&l.addEventListener("scroll",t.onscroll,!0),((t.opts||t.canPan)&&(n.is(t.$stage)||t.$stage.find(n).length)||(n.is(".fancybox-image")&&e.preventDefault(),m.fancybox.isMobile&&n.parents(".fancybox-caption").length))&&(t.isScrollable=u(n)||u(n.parent()),m.fancybox.isMobile&&t.isScrollable||e.preventDefault(),1!==t.startPoints.length&&!o.hasError||(t.canPan?(m.fancybox.stop(t.$content),t.isPanning=!0):t.isSwiping=!0,t.$container.addClass("fancybox-is-grabbing")),2===t.startPoints.length&&"image"===o.type&&(o.isLoaded||o.$ghost)&&(t.canTap=!1,t.isSwiping=!1,t.isPanning=!1,t.isZooming=!0,m.fancybox.stop(t.$content),t.centerPointStartX=.5*(t.startPoints[0].x+t.startPoints[1].x)-m(g).scrollLeft(),t.centerPointStartY=.5*(t.startPoints[0].y+t.startPoints[1].y)-m(g).scrollTop(),t.percentageOfImageAtPinchPointX=(t.centerPointStartX-t.contentStartPos.left)/t.contentStartPos.width,t.percentageOfImageAtPinchPointY=(t.centerPointStartY-t.contentStartPos.top)/t.contentStartPos.height,t.startDistanceBetweenFingers=v(t.startPoints[0],t.startPoints[1]))))}},n.prototype.onscroll=function(e){this.isScrolling=!0,l.removeEventListener("scroll",this.onscroll,!0)},n.prototype.ontouchmove=function(e){var t=this;return void 0!==e.originalEvent.buttons&&0===e.originalEvent.buttons?void t.ontouchend(e):t.isScrolling?void(t.canTap=!1):(t.newPoints=d(e),void((t.opts||t.canPan)&&t.newPoints.length&&t.newPoints.length&&(t.isSwiping&&!0===t.isSwiping||e.preventDefault(),t.distanceX=v(t.newPoints[0],t.startPoints[0],"x"),t.distanceY=v(t.newPoints[0],t.startPoints[0],"y"),t.distance=v(t.newPoints[0],t.startPoints[0]),0<t.distance&&(t.isSwiping?t.onSwipe(e):t.isPanning?t.onPan():t.isZooming&&t.onZoom()))))},n.prototype.onSwipe=function(e){var t,o=this,r=o.instance,n=o.isSwiping,i=o.sliderStartPos.left||0;if(!0!==n)"x"==n&&(0<o.distanceX&&(o.instance.group.length<2||0===o.instance.current.index&&!o.instance.current.opts.loop)?i+=Math.pow(o.distanceX,.8):o.distanceX<0&&(o.instance.group.length<2||o.instance.current.index===o.instance.group.length-1&&!o.instance.current.opts.loop)?i-=Math.pow(-o.distanceX,.8):i+=o.distanceX),o.sliderLastPos={top:"x"==n?0:o.sliderStartPos.top+o.distanceY,left:i},o.requestId&&(y(o.requestId),o.requestId=null),o.requestId=b(function(){o.sliderLastPos&&(m.each(o.instance.slides,function(e,t){var n=t.pos-o.instance.currPos;m.fancybox.setTranslate(t.$slide,{top:o.sliderLastPos.top,left:o.sliderLastPos.left+n*o.canvasWidth+n*t.opts.gutter})}),o.$container.addClass("fancybox-is-sliding"))});else if(10<Math.abs(o.distance)){if(o.canTap=!1,r.group.length<2&&o.opts.vertical?o.isSwiping="y":r.isDragging||!1===o.opts.vertical||"auto"===o.opts.vertical&&800<m(g).width()?o.isSwiping="x":(t=Math.abs(180*Math.atan2(o.distanceY,o.distanceX)/Math.PI),o.isSwiping=45<t&&t<135?"y":"x"),"y"===o.isSwiping&&m.fancybox.isMobile&&o.isScrollable)return void(o.isScrolling=!0);r.isDragging=o.isSwiping,o.startPoints=o.newPoints,m.each(r.slides,function(e,t){var n,i;m.fancybox.stop(t.$slide),n=m.fancybox.getTranslate(t.$slide),i=m.fancybox.getTranslate(r.$refs.stage),t.$slide.css({transform:"",opacity:"","transition-duration":""}).removeClass("fancybox-animated").removeClass(function(e,t){return(t.match(/(^|\s)fancybox-fx-\S+/g)||[]).join(" ")}),t.pos===r.current.pos&&(o.sliderStartPos.top=n.top-i.top,o.sliderStartPos.left=n.left-i.left),m.fancybox.setTranslate(t.$slide,{top:n.top-i.top,left:n.left-i.left})}),r.SlideShow&&r.SlideShow.isActive&&r.SlideShow.stop()}},n.prototype.onPan=function(){var e=this;v(e.newPoints[0],e.realPoints[0])<(m.fancybox.isMobile?10:5)?e.startPoints=e.newPoints:(e.canTap=!1,e.contentLastPos=e.limitMovement(),e.requestId&&y(e.requestId),e.requestId=b(function(){m.fancybox.setTranslate(e.$content,e.contentLastPos)}))},n.prototype.limitMovement=function(){var e=this,t=e.canvasWidth,n=e.canvasHeight,i=e.distanceX,o=e.distanceY,r=e.contentStartPos,a=r.left,s=r.top,l=r.width,c=r.height,d=t<l?a+i:a,u=s+o,p=Math.max(0,.5*t-.5*l),h=Math.max(0,.5*n-.5*c),f=Math.min(t-l,.5*t-.5*l),g=Math.min(n-c,.5*n-.5*c);return 0<i&&p<d&&(d=p-1+Math.pow(-p+a+i,.8)||0),i<0&&d<f&&(d=f+1-Math.pow(f-a-i,.8)||0),0<o&&h<u&&(u=h-1+Math.pow(-h+s+o,.8)||0),o<0&&u<g&&(u=g+1-Math.pow(g-s-o,.8)||0),{top:u,left:d}},n.prototype.limitPosition=function(e,t,n,i){var o=this.canvasWidth,r=this.canvasHeight;return e=o<n?(e=0<e?0:e)<o-n?o-n:e:Math.max(0,o/2-n/2),{top:t=r<i?(t=0<t?0:t)<r-i?r-i:t:Math.max(0,r/2-i/2),left:e}},n.prototype.onZoom=function(){var e=this,t=e.contentStartPos,n=t.width,i=t.height,o=t.left,r=t.top,a=v(e.newPoints[0],e.newPoints[1])/e.startDistanceBetweenFingers,s=Math.floor(n*a),l=Math.floor(i*a),c=(n-s)*e.percentageOfImageAtPinchPointX,d=(i-l)*e.percentageOfImageAtPinchPointY,u=(e.newPoints[0].x+e.newPoints[1].x)/2-m(g).scrollLeft(),p=(e.newPoints[0].y+e.newPoints[1].y)/2-m(g).scrollTop(),h=u-e.centerPointStartX,f={top:r+(d+(p-e.centerPointStartY)),left:o+(c+h),scaleX:a,scaleY:a};e.canTap=!1,e.newWidth=s,e.newHeight=l,e.contentLastPos=f,e.requestId&&y(e.requestId),e.requestId=b(function(){m.fancybox.setTranslate(e.$content,e.contentLastPos)})},n.prototype.ontouchend=function(e){var t=this,n=t.isSwiping,i=t.isPanning,o=t.isZooming,r=t.isScrolling;if(t.endPoints=d(e),t.dMs=Math.max((new Date).getTime()-t.startTime,1),t.$container.removeClass("fancybox-is-grabbing"),m(l).off(".fb.touch"),l.removeEventListener("scroll",t.onscroll,!0),t.requestId&&(y(t.requestId),t.requestId=null),t.isSwiping=!1,t.isPanning=!1,t.isZooming=!1,t.isScrolling=!1,t.instance.isDragging=!1,t.canTap)return t.onTap(e);t.speed=100,t.velocityX=t.distanceX/t.dMs*.5,t.velocityY=t.distanceY/t.dMs*.5,i?t.endPanning():o?t.endZooming():t.endSwiping(n,r)},n.prototype.endSwiping=function(e,t){var n=this,i=!1,o=n.instance.group.length,r=Math.abs(n.distanceX),a="x"==e&&1<o&&(130<n.dMs&&10<r||50<r);n.sliderLastPos=null,"y"==e&&!t&&50<Math.abs(n.distanceY)?(m.fancybox.animate(n.instance.current.$slide,{top:n.sliderStartPos.top+n.distanceY+150*n.velocityY,opacity:0},200),i=n.instance.close(!0,250)):a&&0<n.distanceX?i=n.instance.previous(300):a&&n.distanceX<0&&(i=n.instance.next(300)),!1!==i||"x"!=e&&"y"!=e||n.instance.centerSlide(200),n.$container.removeClass("fancybox-is-sliding")},n.prototype.endPanning=function(){var e,t,n,i=this;i.contentLastPos&&(t=!1===i.opts.momentum||350<i.dMs?(e=i.contentLastPos.left,i.contentLastPos.top):(e=i.contentLastPos.left+500*i.velocityX,i.contentLastPos.top+500*i.velocityY),(n=i.limitPosition(e,t,i.contentStartPos.width,i.contentStartPos.height)).width=i.contentStartPos.width,n.height=i.contentStartPos.height,m.fancybox.animate(i.$content,n,366))},n.prototype.endZooming=function(){var e,t,n,i,o=this,r=o.instance.current,a=o.newWidth,s=o.newHeight;o.contentLastPos&&(e=o.contentLastPos.left,i={top:t=o.contentLastPos.top,left:e,width:a,height:s,scaleX:1,scaleY:1},m.fancybox.setTranslate(o.$content,i),a<o.canvasWidth&&s<o.canvasHeight?o.instance.scaleToFit(150):a>r.width||s>r.height?o.instance.scaleToActual(o.centerPointStartX,o.centerPointStartY,150):(n=o.limitPosition(e,t,a,s),m.fancybox.animate(o.$content,n,150)))},n.prototype.onTap=function(n){function e(e){var t=a.opts[e];if(m.isFunction(t)&&(t=t.apply(r,[a,n])),t)switch(t){case"close":r.close(i.startEvent);break;case"toggleControls":r.toggleControls();break;case"next":r.next();break;case"nextOrClose":1<r.group.length?r.next():r.close(i.startEvent);break;case"zoom":"image"==a.type&&(a.isLoaded||a.$ghost)&&(r.canPan()?r.scaleToFit():r.isScaledDown()?r.scaleToActual(l,c):r.group.length<2&&r.close(i.startEvent))}}var t,i=this,o=m(n.target),r=i.instance,a=r.current,s=n&&d(n)||i.startPoints,l=s[0]?s[0].x-m(g).scrollLeft()-i.stagePos.left:0,c=s[0]?s[0].y-m(g).scrollTop()-i.stagePos.top:0;if((!n.originalEvent||2!=n.originalEvent.button)&&(o.is("img")||!(l>o[0].clientWidth+o.offset().left))){if(o.is(".fancybox-bg,.fancybox-inner,.fancybox-outer,.fancybox-container"))t="Outside";else if(o.is(".fancybox-slide"))t="Slide";else{if(!r.current.$content||!r.current.$content.find(o).addBack().filter(o).length)return;t="Content"}if(i.tapped){if(clearTimeout(i.tapped),i.tapped=null,50<Math.abs(l-i.tapX)||50<Math.abs(c-i.tapY))return this;e("dblclick"+t)}else i.tapX=l,i.tapY=c,a.opts["dblclick"+t]&&a.opts["dblclick"+t]!==a.opts["click"+t]?i.tapped=setTimeout(function(){i.tapped=null,r.isAnimating||e("click"+t)},500):e("click"+t);return this}},m(l).on("onActivate.fb",function(e,t){t&&!t.Guestures&&(t.Guestures=new n(t))}).on("beforeClose.fb",function(e,t){t&&t.Guestures&&t.Guestures.destroy()})}(window,document,jQuery),function(a,s){"use strict";s.extend(!0,s.fancybox.defaults,{btnTpl:{slideShow:'<button data-fancybox-play class="fancybox-button fancybox-button--play" title="{{PLAY_START}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6.5 5.4v13.2l11-6.6z"/></svg><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.33 5.75h2.2v12.5h-2.2V5.75zm5.15 0h2.2v12.5h-2.2V5.75z"/></svg></button>'},slideShow:{autoStart:!1,speed:3e3,progress:!0}});function n(e){this.instance=e,this.init()}s.extend(n.prototype,{timer:null,isActive:!1,$button:null,init:function(){var e=this,t=e.instance,n=t.group[t.currIndex].opts.slideShow;e.$button=t.$refs.toolbar.find("[data-fancybox-play]").on("click",function(){e.toggle()}),t.group.length<2||!n?e.$button.hide():n.progress&&(e.$progress=s('<div class="fancybox-progress"></div>').appendTo(t.$refs.inner))},set:function(e){var t=this,n=t.instance,i=n.current;i&&(!0===e||i.opts.loop||n.currIndex<n.group.length-1)?t.isActive&&"video"!==i.contentType&&(t.$progress&&s.fancybox.animate(t.$progress.show(),{scaleX:1},i.opts.slideShow.speed),t.timer=setTimeout(function(){n.current.opts.loop||n.current.index!=n.group.length-1?n.next():n.jumpTo(0)},i.opts.slideShow.speed)):(t.stop(),n.idleSecondsCounter=0,n.showControls())},clear:function(){clearTimeout(this.timer),this.timer=null,this.$progress&&this.$progress.removeAttr("style").hide()},start:function(){var e=this,t=e.instance.current;t&&(e.$button.attr("title",(t.opts.i18n[t.opts.lang]||t.opts.i18n.en).PLAY_STOP).removeClass("fancybox-button--play").addClass("fancybox-button--pause"),e.isActive=!0,t.isComplete&&e.set(!0),e.instance.trigger("onSlideShowChange",!0))},stop:function(){var e=this,t=e.instance.current;e.clear(),e.$button.attr("title",(t.opts.i18n[t.opts.lang]||t.opts.i18n.en).PLAY_START).removeClass("fancybox-button--pause").addClass("fancybox-button--play"),e.isActive=!1,e.instance.trigger("onSlideShowChange",!1),e.$progress&&e.$progress.removeAttr("style").hide()},toggle:function(){this.isActive?this.stop():this.start()}}),s(a).on({"onInit.fb":function(e,t){t&&!t.SlideShow&&(t.SlideShow=new n(t))},"beforeShow.fb":function(e,t,n,i){var o=t&&t.SlideShow;i?o&&n.opts.slideShow.autoStart&&o.start():o&&o.isActive&&o.clear()},"afterShow.fb":function(e,t,n){var i=t&&t.SlideShow;i&&i.isActive&&i.set()},"afterKeydown.fb":function(e,t,n,i,o){var r=t&&t.SlideShow;!r||!n.opts.slideShow||80!==o&&32!==o||s(a.activeElement).is("button,a,input")||(i.preventDefault(),r.toggle())},"beforeClose.fb onDeactivate.fb":function(e,t){var n=t&&t.SlideShow;n&&n.stop()}}),s(a).on("visibilitychange",function(){var e=s.fancybox.getInstance(),t=e&&e.SlideShow;t&&t.isActive&&(a.hidden?t.clear():t.set())})}(document,jQuery),function(r,n){"use strict";var i,o=function(){for(var e=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],t={},n=0;n<e.length;n++){var i=e[n];if(i&&i[1]in r){for(var o=0;o<i.length;o++)t[e[0][o]]=i[o];return t}}return!1}();o&&(i={request:function(e){(e=e||r.documentElement)[o.requestFullscreen](e.ALLOW_KEYBOARD_INPUT)},exit:function(){r[o.exitFullscreen]()},toggle:function(e){e=e||r.documentElement,this.isFullscreen()?this.exit():this.request(e)},isFullscreen:function(){return Boolean(r[o.fullscreenElement])},enabled:function(){return Boolean(r[o.fullscreenEnabled])}},n.extend(!0,n.fancybox.defaults,{btnTpl:{fullScreen:'<button data-fancybox-fullscreen class="fancybox-button fancybox-button--fsenter" title="{{FULL_SCREEN}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/></svg><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z"/></svg></button>'},fullScreen:{autoStart:!1}}),n(r).on(o.fullscreenchange,function(){var e=i.isFullscreen(),t=n.fancybox.getInstance();t&&(t.current&&"image"===t.current.type&&t.isAnimating&&(t.isAnimating=!1,t.update(!0,!0,0),t.isComplete||t.complete()),t.trigger("onFullscreenChange",e),t.$refs.container.toggleClass("fancybox-is-fullscreen",e),t.$refs.toolbar.find("[data-fancybox-fullscreen]").toggleClass("fancybox-button--fsenter",!e).toggleClass("fancybox-button--fsexit",e))})),n(r).on({"onInit.fb":function(e,t){o?t&&t.group[t.currIndex].opts.fullScreen?(t.$refs.container.on("click.fb-fullscreen","[data-fancybox-fullscreen]",function(e){e.stopPropagation(),e.preventDefault(),i.toggle()}),t.opts.fullScreen&&!0===t.opts.fullScreen.autoStart&&i.request(),t.FullScreen=i):t&&t.$refs.toolbar.find("[data-fancybox-fullscreen]").hide():t.$refs.toolbar.find("[data-fancybox-fullscreen]").remove()},"afterKeydown.fb":function(e,t,n,i,o){t&&t.FullScreen&&70===o&&(i.preventDefault(),t.FullScreen.toggle())},"beforeClose.fb":function(e,t){t&&t.FullScreen&&t.$refs.container.hasClass("fancybox-is-fullscreen")&&i.exit()}})}(document,jQuery),function(e,r){"use strict";var a="fancybox-thumbs";r.fancybox.defaults=r.extend(!0,{btnTpl:{thumbs:'<button data-fancybox-thumbs class="fancybox-button fancybox-button--thumbs" title="{{THUMBS}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14.59 14.59h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76H5.65V5.65z"/></svg></button>'},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".fancybox-container",axis:"y"}},r.fancybox.defaults);function i(e){this.init(e)}r.extend(i.prototype,{$button:null,$grid:null,$list:null,isVisible:!1,isActive:!1,init:function(e){var t=this,n=e.group,i=0;t.instance=e,t.opts=n[e.currIndex].opts.thumbs,(e.Thumbs=t).$button=e.$refs.toolbar.find("[data-fancybox-thumbs]");for(var o=0,r=n.length;o<r&&(n[o].thumb&&i++,!(1<i));o++);1<i&&t.opts?(t.$button.removeAttr("style").on("click",function(){t.toggle()}),t.isActive=!0):t.$button.hide()},create:function(){var n,e=this,t=e.instance,i=e.opts.parentEl,o=[];e.$grid||(e.$grid=r('<div class="'+a+" "+a+"-"+e.opts.axis+'"></div>').appendTo(t.$refs.container.find(i).addBack().filter(i)),e.$grid.on("click","a",function(){t.jumpTo(r(this).attr("data-index"))})),e.$list||(e.$list=r('<div class="'+a+'__list">').appendTo(e.$grid)),r.each(t.group,function(e,t){(n=t.thumb)||"image"!==t.type||(n=t.src),o.push('<a href="javascript:;" tabindex="0" data-index="'+e+'"'+(n&&n.length?' style="background-image:url('+n+')"':'class="fancybox-thumbs-missing"')+"></a>")}),e.$list[0].innerHTML=o.join(""),"x"===e.opts.axis&&e.$list.width(parseInt(e.$grid.css("padding-right"),10)+t.group.length*e.$list.children().eq(0).outerWidth(!0))},focus:function(e){var t,n,i=this,o=i.$list,r=i.$grid;i.instance.current&&(n=(t=o.children().removeClass("fancybox-thumbs-active").filter('[data-index="'+i.instance.current.index+'"]').addClass("fancybox-thumbs-active")).position(),"y"===i.opts.axis&&(n.top<0||n.top>o.height()-t.outerHeight())?o.stop().animate({scrollTop:o.scrollTop()+n.top},e):"x"===i.opts.axis&&(n.left<r.scrollLeft()||n.left>r.scrollLeft()+(r.width()-t.outerWidth()))&&o.parent().stop().animate({scrollLeft:n.left},e))},update:function(){var e=this;e.instance.$refs.container.toggleClass("fancybox-show-thumbs",this.isVisible),e.isVisible?(e.$grid||e.create(),e.instance.trigger("onThumbsShow"),e.focus(0)):e.$grid&&e.instance.trigger("onThumbsHide"),e.instance.update()},hide:function(){this.isVisible=!1,this.update()},show:function(){this.isVisible=!0,this.update()},toggle:function(){this.isVisible=!this.isVisible,this.update()}}),r(e).on({"onInit.fb":function(e,t){var n;!t||t.Thumbs||(n=new i(t)).isActive&&!0===n.opts.autoStart&&n.show()},"beforeShow.fb":function(e,t,n,i){var o=t&&t.Thumbs;o&&o.isVisible&&o.focus(i?0:250)},"afterKeydown.fb":function(e,t,n,i,o){var r=t&&t.Thumbs;r&&r.isActive&&71===o&&(i.preventDefault(),r.toggle())},"beforeClose.fb":function(e,t){var n=t&&t.Thumbs;n&&n.isVisible&&!1!==n.opts.hideOnClose&&n.$grid.hide()}})}(document,jQuery),function(e,r){"use strict";r.extend(!0,r.fancybox.defaults,{btnTpl:{share:'<button data-fancybox-share class="fancybox-button fancybox-button--share" title="{{SHARE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M2.55 19c1.4-8.4 9.1-9.8 11.9-9.8V5l7 7-7 6.3v-3.5c-2.8 0-10.5 2.1-11.9 4.2z"/></svg></button>'},share:{url:function(e,t){return!e.currentHash&&"inline"!==t.type&&"html"!==t.type&&(t.origSrc||t.src)||window.location},tpl:'<div class="fancybox-share"><h1>{{SHARE}}</h1><p><a class="fancybox-share__button fancybox-share__button--fb" href="https://www.facebook.com/sharer/sharer.php?u={{url}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m287 456v-299c0-21 6-35 35-35h38v-63c-7-1-29-3-55-3-54 0-91 33-91 94v306m143-254h-205v72h196" /></svg><span>Facebook</span></a><a class="fancybox-share__button fancybox-share__button--tw" href="https://twitter.com/intent/tweet?url={{url}}&text={{descr}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m456 133c-14 7-31 11-47 13 17-10 30-27 37-46-15 10-34 16-52 20-61-62-157-7-141 75-68-3-129-35-169-85-22 37-11 86 26 109-13 0-26-4-37-9 0 39 28 72 65 80-12 3-25 4-37 2 10 33 41 57 77 57-42 30-77 38-122 34 170 111 378-32 359-208 16-11 30-25 41-42z" /></svg><span>Twitter</span></a><a class="fancybox-share__button fancybox-share__button--pt" href="https://www.pinterest.com/pin/create/button/?url={{url}}&description={{descr}}&media={{media}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m265 56c-109 0-164 78-164 144 0 39 15 74 47 87 5 2 10 0 12-5l4-19c2-6 1-8-3-13-9-11-15-25-15-45 0-58 43-110 113-110 62 0 96 38 96 88 0 67-30 122-73 122-24 0-42-19-36-44 6-29 20-60 20-81 0-19-10-35-31-35-25 0-44 26-44 60 0 21 7 36 7 36l-30 125c-8 37-1 83 0 87 0 3 4 4 5 2 2-3 32-39 42-75l16-64c8 16 31 29 56 29 74 0 124-67 124-157 0-69-58-132-146-132z" fill="#fff"/></svg><span>Pinterest</span></a></p><p><input class="fancybox-share__input" type="text" value="{{url_raw}}" onclick="select()" /></p></div>'}}),r(e).on("click","[data-fancybox-share]",function(){var e,t,n,i=r.fancybox.getInstance(),o=i.current||null;o&&("function"===r.type(o.opts.share.url)&&(e=o.opts.share.url.apply(o,[i,o])),t=o.opts.share.tpl.replace(/\{\{media\}\}/g,"image"===o.type?encodeURIComponent(o.src):"").replace(/\{\{url\}\}/g,encodeURIComponent(e)).replace(/\{\{url_raw\}\}/g,(n={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"},String(e).replace(/[&<>"'`=\/]/g,function(e){return n[e]}))).replace(/\{\{descr\}\}/g,i.$caption?encodeURIComponent(i.$caption.text()):""),r.fancybox.open({src:i.translate(i,t),type:"html",opts:{touch:!1,animationEffect:!1,afterLoad:function(e,t){i.$refs.container.one("beforeClose.fb",function(){e.close(null,0)}),t.$content.find(".fancybox-share__button").click(function(){return window.open(this.href,"Share","width=550, height=450"),!1})},mobile:{autoFocus:!1}}}))})}(document,jQuery),function(r,a,o){"use strict";function s(){var e=r.location.hash.substr(1),t=e.split("-"),n=1<t.length&&/^\+?\d+$/.test(t[t.length-1])&&parseInt(t.pop(-1),10)||1;return{hash:e,index:n<1?1:n,gallery:t.join("-")}}function t(e){""!==e.gallery&&o("[data-fancybox='"+o.escapeSelector(e.gallery)+"']").eq(e.index-1).focus().trigger("click.fb-start")}function l(e){var t,n;return!!e&&(""!==(n=(t=e.current?e.current.opts:e.opts).hash||(t.$orig?t.$orig.data("fancybox")||t.$orig.data("fancybox-trigger"):""))&&n)}o.escapeSelector||(o.escapeSelector=function(e){return(e+"").replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e})}),o(function(){!1!==o.fancybox.defaults.hash&&(o(a).on({"onInit.fb":function(e,t){var n,i;!1!==t.group[t.currIndex].opts.hash&&(n=s(),(i=l(t))&&n.gallery&&i==n.gallery&&(t.currIndex=n.index-1))},"beforeShow.fb":function(e,t,n,i){var o;n&&!1!==n.opts.hash&&(o=l(t))&&(t.currentHash=o+(1<t.group.length?"-"+(n.index+1):""),r.location.hash!=="#"+t.currentHash&&(i&&!t.origHash&&(t.origHash=r.location.hash),t.hashTimer&&clearTimeout(t.hashTimer),t.hashTimer=setTimeout(function(){"replaceState"in r.history?(r.history[i?"pushState":"replaceState"]({},a.title,r.location.pathname+r.location.search+"#"+t.currentHash),i&&(t.hasCreatedHistory=!0)):r.location.hash=t.currentHash,t.hashTimer=null},300)))},"beforeClose.fb":function(e,t,n){n&&!1!==n.opts.hash&&(clearTimeout(t.hashTimer),t.currentHash&&t.hasCreatedHistory?r.history.back():t.currentHash&&("replaceState"in r.history?r.history.replaceState({},a.title,r.location.pathname+r.location.search+(t.origHash||"")):r.location.hash=t.origHash),t.currentHash=null)}}),o(r).on("hashchange.fb",function(){var e=s(),i=null;o.each(o(".fancybox-container").get().reverse(),function(e,t){var n=o(t).data("FancyBox");if(n&&n.currentHash)return i=n,!1}),i?i.currentHash===e.gallery+"-"+e.index||1===e.index&&i.currentHash==e.gallery||(i.currentHash=null,i.close()):""!==e.gallery&&t(e)}),setTimeout(function(){o.fancybox.getInstance()||t(s())},50))})}(window,document,jQuery),function(e,t){"use strict";var o=(new Date).getTime();t(e).on({"onInit.fb":function(e,i,t){i.$refs.stage.on("mousewheel DOMMouseScroll wheel MozMousePixelScroll",function(e){var t=i.current,n=(new Date).getTime();i.group.length<2||!1===t.opts.wheel||"auto"===t.opts.wheel&&"image"!==t.type||(e.preventDefault(),e.stopPropagation(),t.$slide.hasClass("fancybox-animated")||(e=e.originalEvent||e,n-o<250||(o=n,i[(-e.deltaY||-e.deltaX||e.wheelDelta||-e.detail)<0?"next":"previous"]())))})}})}(document,jQuery);var ScrollReveal=function(){"use strict";var o={delay:0,distance:"0",duration:600,easing:"cubic-bezier(0.5, 0, 0, 1)",interval:0,opacity:0,origin:"bottom",rotate:{x:0,y:0,z:0},scale:1,cleanup:!0,container:document.documentElement,desktop:!0,mobile:!0,reset:!1,useDelay:"always",viewFactor:0,viewOffset:{top:0,right:0,bottom:0,left:0},afterReset:function(){},afterReveal:function(){},beforeReset:function(){},beforeReveal:function(){}},n={clean:function(){},destroy:function(){},reveal:function(){},sync:function(){},get noop(){return!0}};function r(e){return"object"==typeof window.Node?e instanceof window.Node:null!==e&&"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName}function u(e,t){if(void 0===t&&(t=document),e instanceof Array)return e.filter(r);if(r(e))return[e];if(n=e,i=Object.prototype.toString.call(n),"object"==typeof window.NodeList?n instanceof window.NodeList:null!==n&&"object"==typeof n&&"number"==typeof n.length&&/^\[object (HTMLCollection|NodeList|Object)\]$/.test(i)&&(0===n.length||r(n[0])))return Array.prototype.slice.call(e);var n,i;if("string"==typeof e)try{var o=t.querySelectorAll(e);return Array.prototype.slice.call(o)}catch(e){return[]}return[]}function a(e){return null!==e&&e instanceof Object&&(e.constructor===Object||"[object Object]"===Object.prototype.toString.call(e))}function p(n,i){if(a(n))return Object.keys(n).forEach(function(e){return i(n[e],e,n)});if(n instanceof Array)return n.forEach(function(e,t){return i(e,t,n)});throw new TypeError("Expected either an array or object literal.")}function h(e){for(var t,n=[],i=arguments.length-1;0<i--;)n[i]=arguments[i+1];this.constructor.debug&&console&&(t="%cScrollReveal: "+e,n.forEach(function(e){return t+="\n — "+e}),console.log(t,"color: #ea654b;"))}function t(){var n=this,i={active:[],stale:[]},t={active:[],stale:[]},o={active:[],stale:[]};try{p(u("[data-sr-id]"),function(e){var t=parseInt(e.getAttribute("data-sr-id"));i.active.push(t)})}catch(e){throw e}p(this.store.elements,function(e){-1===i.active.indexOf(e.id)&&i.stale.push(e.id)}),p(i.stale,function(e){return delete n.store.elements[e]}),p(this.store.elements,function(e){-1===o.active.indexOf(e.containerId)&&o.active.push(e.containerId),e.hasOwnProperty("sequence")&&-1===t.active.indexOf(e.sequence.id)&&t.active.push(e.sequence.id)}),p(this.store.containers,function(e){-1===o.active.indexOf(e.id)&&o.stale.push(e.id)}),p(o.stale,function(e){var t=n.store.containers[e].node;t.removeEventListener("scroll",n.delegate),t.removeEventListener("resize",n.delegate),delete n.store.containers[e]}),p(this.store.sequences,function(e){-1===t.active.indexOf(e.id)&&t.stale.push(e.id)}),p(t.stale,function(e){return delete n.store.sequences[e]})}function f(e){var i,o=this;try{p(u(e),function(e){var t,n=e.getAttribute("data-sr-id");null!==n&&(i=!0,(t=o.store.elements[n]).callbackTimer&&window.clearTimeout(t.callbackTimer.clock),e.setAttribute("style",t.styles.inline.generated),e.removeAttribute("data-sr-id"),delete o.store.elements[n])})}catch(e){return h.call(this,"Clean failed.",e.message)}if(i)try{t.call(this)}catch(e){return h.call(this,"Clean failed.",e.message)}}function L(e){if(e.constructor!==Array)throw new TypeError("Expected array.");if(16===e.length)return e;if(6!==e.length)throw new RangeError("Expected array with either 6 or 16 values.");var t=O();return t[0]=e[0],t[1]=e[1],t[4]=e[2],t[5]=e[3],t[12]=e[4],t[13]=e[5],t}function O(){for(var e=[],t=0;t<16;t++)t%5==0?e.push(1):e.push(0);return e}function N(e,t){for(var n=L(e),i=L(t),o=[],r=0;r<4;r++)for(var a=[n[r],n[r+4],n[r+8],n[r+12]],s=0;s<4;s++){var l=4*s,c=[i[l],i[1+l],i[2+l],i[3+l]],d=a[0]*c[0]+a[1]*c[1]+a[2]*c[2]+a[3]*c[3];o[r+l]=d}return o}function j(e,t){var n=O();return n[0]=e,n[5]="number"==typeof t?t:e,n}var i,s,F=(i={},s=document.documentElement.style,e.clearCache=function(){return i={}},e);function e(e,t){if(void 0===t&&(t=s),e&&"string"==typeof e){if(i[e])return i[e];if("string"==typeof t[e])return i[e]=e;if("string"==typeof t["-webkit-"+e])return i[e]="-webkit-"+e;throw new RangeError('Unable to find "'+e+'" style property.')}throw new TypeError("Expected a string.")}function l(e,t){void 0===t&&(t={});var n=t.pristine||this.pristine,i="always"===e.config.useDelay||"onload"===e.config.useDelay&&n||"once"===e.config.useDelay&&!e.seen,o=e.visible&&!e.revealed,r=!e.visible&&e.revealed&&e.config.reset;return t.reveal||o?function(e,t){var n=[e.styles.inline.generated,e.styles.opacity.computed,e.styles.transform.generated.final];t?n.push(e.styles.transition.generated.delayed):n.push(e.styles.transition.generated.instant),e.revealed=e.seen=!0,e.node.setAttribute("style",n.filter(function(e){return""!==e}).join(" ")),c.call(this,e,t)}.call(this,e,i):t.reset||r?function(e){var t=[e.styles.inline.generated,e.styles.opacity.generated,e.styles.transform.generated.initial,e.styles.transition.generated.instant];e.revealed=!1,e.node.setAttribute("style",t.filter(function(e){return""!==e}).join(" ")),c.call(this,e)}.call(this,e):void 0}function c(e,t){var n=this,i=t?e.config.duration+e.config.delay:e.config.duration,o=e.revealed?e.config.beforeReveal:e.config.beforeReset,r=e.revealed?e.config.afterReveal:e.config.afterReset,a=0;e.callbackTimer&&(a=Date.now()-e.callbackTimer.start,window.clearTimeout(e.callbackTimer.clock)),o(e.node),e.callbackTimer={start:Date.now(),clock:window.setTimeout(function(){r(e.node),e.callbackTimer=null,e.revealed&&!e.config.reset&&e.config.cleanup&&f.call(n,e.node)},i-a)}}var d,g=(d=0,function(){return d++});function m(e,t){if(void 0===t&&(t=this.pristine),!e.visible&&e.revealed&&e.config.reset)return l.call(this,e,{reset:!0});var n=this.store.sequences[e.sequence.id],i=e.sequence.index;if(n){var o=new b(n,"visible",this.store),r=new b(n,"revealed",this.store);if(n.models={visible:o,revealed:r},!r.body.length){var a=n.members[o.body[0]],s=this.store.elements[a];if(s)return y.call(this,n,o.body[0],-1,t),y.call(this,n,o.body[0],1,t),l.call(this,s,{reveal:!0,pristine:t})}if(!n.blocked.head&&i===[].concat(r.head).pop()&&i>=[].concat(o.body).shift())return y.call(this,n,i,-1,t),l.call(this,e,{reveal:!0,pristine:t});if(!n.blocked.foot&&i===[].concat(r.foot).shift()&&i<=[].concat(o.body).pop())return y.call(this,n,i,1,t),l.call(this,e,{reveal:!0,pristine:t})}}function v(e){var t=Math.abs(e);if(isNaN(t))throw new RangeError("Invalid sequence interval.");this.id=g(),this.interval=Math.max(t,16),this.members=[],this.models={},this.blocked={head:!1,foot:!1}}function b(e,i,o){var r=this;this.head=[],this.body=[],this.foot=[],p(e.members,function(e,t){var n=o.elements[e];n&&n[i]&&r.body.push(t)}),this.body.length&&p(e.members,function(e,t){var n=o.elements[e];n&&!n[i]&&(t<r.body[0]?r.head.push(t):r.foot.push(t))})}function y(e,t,n,i){var o=this,r=["head",null,"foot"][1+n],a=e.members[t+n],s=this.store.elements[a];e.blocked[r]=!0,setTimeout(function(){e.blocked[r]=!1,s&&m.call(o,s,i)},e.interval)}function k(){var n=this;t.call(this),p(this.store.elements,function(e){var t=[e.styles.inline.generated];e.visible?(t.push(e.styles.opacity.computed),t.push(e.styles.transform.generated.final)):(t.push(e.styles.opacity.generated),t.push(e.styles.transform.generated.initial)),e.node.setAttribute("style",t.filter(function(e){return""!==e}).join(" "))}),p(this.store.containers,function(e){var t=e.node===document.documentElement?window:e.node;t.addEventListener("scroll",n.delegate),t.addEventListener("resize",n.delegate)}),this.delegate(),this.initTimeout=null}function w(e){return void 0===e&&(e=navigator.userAgent),/Android|iPhone|iPad|iPod/i.test(e)}function _(n){for(var e=[],t=arguments.length-1;0<t--;)e[t]=arguments[t+1];if(a(n))return p(e,function(e){p(e,function(e,t){a(e)?(n[t]&&a(n[t])||(n[t]={}),_(n[t],e)):n[t]=e})}),n;throw new TypeError("Target must be an object literal.")}function x(e,s,t){var l=this;void 0===s&&(s={}),void 0===t&&(t=!1);var c,d=[],n=s.interval||o.interval;try{n&&(c=new v(n));var i=u(e);if(!i.length)throw new Error("Invalid reveal target.");p(i.reduce(function(e,t){var n={},i=t.getAttribute("data-sr-id");i?(_(n,l.store.elements[i]),n.node.setAttribute("style",n.styles.inline.computed)):(n.id=g(),n.node=t,n.seen=!1,n.revealed=!1,n.visible=!1);var o=_({},n.config||l.defaults,s);if(!o.mobile&&w()||!o.desktop&&!w())return i&&f.call(l,n),e;var r,a=u(o.container)[0];if(!a)throw new Error("Invalid container.");return a.contains(t)&&(null===(r=function(t){for(var e=[],n=arguments.length-1;0<n--;)e[n]=arguments[n+1];var i=null;return p(e,function(e){p(e,function(e){null===i&&e.node===t&&(i=e.id)})}),i}(a,d,l.store.containers))&&(r=g(),d.push({id:r,node:a})),n.config=o,n.containerId=r,n.styles=function(e){var t=window.getComputedStyle(e.node),n=t.position,i=e.config,o={},r=(e.node.getAttribute("style")||"").match(/[\w-]+\s*:\s*[^;]+\s*/gi)||[];o.computed=r?r.map(function(e){return e.trim()}).join("; ")+";":"",o.generated=r.some(function(e){return e.match(/visibility\s?:\s?visible/i)})?o.computed:r.concat(["visibility: visible"]).map(function(e){return e.trim()}).join("; ")+";";var a,s,l,c,d,u,p,h,f,g,m,v,b,y=parseFloat(t.opacity),k=isNaN(parseFloat(i.opacity))?parseFloat(t.opacity):parseFloat(i.opacity),w={computed:y!==k?"opacity: "+y+";":"",generated:y!==k?"opacity: "+k+";":""},_=[];if(parseFloat(i.distance)){var x="top"===i.origin||"bottom"===i.origin?"Y":"X",C=i.distance;"top"!==i.origin&&"left"!==i.origin||(C=/^-/.test(C)?C.substr(1):"-"+C);var T=C.match(/(^-?\d+\.?\d?)|(em$|px$|%$)/g),S=T[0];switch(T[1]){case"em":C=parseInt(t.fontSize)*S;break;case"px":C=S;break;case"%":C="Y"==x?e.node.getBoundingClientRect().height*S/100:e.node.getBoundingClientRect().width*S/100;break;default:throw new RangeError("Unrecognized or missing distance unit.")}"Y"==x?_.push((l=C,(c=O())[13]=l,c)):_.push((a=C,(s=O())[12]=a,s))}i.rotate.x&&_.push((d=i.rotate.x,u=Math.PI/180*d,(p=O())[5]=p[10]=Math.cos(u),p[6]=p[9]=Math.sin(u),p[9]*=-1,p)),i.rotate.y&&_.push((h=i.rotate.y,f=Math.PI/180*h,(g=O())[0]=g[10]=Math.cos(f),g[2]=g[8]=Math.sin(f),g[2]*=-1,g)),i.rotate.z&&_.push((m=i.rotate.z,v=Math.PI/180*m,(b=O())[0]=b[5]=Math.cos(v),b[1]=b[4]=Math.sin(v),b[4]*=-1,b)),1!==i.scale&&(0===i.scale?_.push(j(2e-4)):_.push(j(i.scale)));var M,E={};_.length?(E.property=F("transform"),E.computed={raw:t[E.property],matrix:function(e){if("string"==typeof e){var t=e.match(/matrix(3d)?\(([^)]+)\)/);if(t)return L(t[2].split(", ").map(parseFloat))}return O()}(t[E.property])},_.unshift(E.computed.matrix),M=_.reduce(N),E.generated={initial:E.property+": matrix3d("+M.join(", ")+");",final:E.property+": matrix3d("+E.computed.matrix.join(", ")+");"}):E.generated={initial:"",final:""};var D,A,I,$,P={};return w.generated||E.generated.initial?(P.property=F("transition"),P.computed=t[P.property],P.fragments=[],D=i.delay,A=i.duration,I=i.easing,w.generated&&P.fragments.push({delayed:"opacity "+A/1e3+"s "+I+" "+D/1e3+"s",instant:"opacity "+A/1e3+"s "+I+" 0s"}),E.generated.initial&&P.fragments.push({delayed:E.property+" "+A/1e3+"s "+I+" "+D/1e3+"s",instant:E.property+" "+A/1e3+"s "+I+" 0s"}),P.computed&&!P.computed.match(/all 0s/)&&P.fragments.unshift({delayed:P.computed,instant:P.computed}),$=P.fragments.reduce(function(e,t,n){return e.delayed+=0===n?t.delayed:", "+t.delayed,e.instant+=0===n?t.instant:", "+t.instant,e},{delayed:"",instant:""}),P.generated={delayed:P.property+": "+$.delayed+";",instant:P.property+": "+$.instant+";"}):P.generated={delayed:"",instant:""},{inline:o,opacity:w,position:n,transform:E,transition:P}}(n),c&&(n.sequence={id:c.id,index:c.members.length},c.members.push(n.id)),e.push(n)),e},[]),function(e){(l.store.elements[e.id]=e).node.setAttribute("data-sr-id",e.id)})}catch(e){return h.call(this,"Reveal failed.",e.message)}p(d,function(e){l.store.containers[e.id]={id:e.id,node:e.node}}),c&&(this.store.sequences[c.id]=c),!0!==t&&(this.store.history.push({target:e,options:s}),this.initTimeout&&window.clearTimeout(this.initTimeout),this.initTimeout=window.setTimeout(k.bind(this),0))}var C,T=Math.sign||function(e){return(0<e)-(e<0)||+e},S=(C=Date.now(),function(e){var t=Date.now();16<t-C?e(C=t):setTimeout(function(){return S(e)},0)}),M=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||S;function E(e,t){for(var n=t?e.node.clientHeight:e.node.offsetHeight,i=t?e.node.clientWidth:e.node.offsetWidth,o=0,r=0,a=e.node;isNaN(a.offsetTop)||(o+=a.offsetTop),isNaN(a.offsetLeft)||(r+=a.offsetLeft),a=a.offsetParent;);return{bounds:{top:o,right:r+i,bottom:o+n,left:r},height:n,width:i}}var D,A,I,$,P,z,H,R,B="4.0.0";function q(e){var t;if(void 0===e&&(e={}),void 0===this||Object.getPrototypeOf(this)!==q.prototype)return new q(e);if(!q.isSupported())return h.call(this,"Instantiation failed.","This browser is not supported."),n;try{t=_({},z||o,e)}catch(e){return h.call(this,"Instantiation failed.","Invalid configuration.",e.message),n}try{if(!u(t.container)[0])throw new Error("Invalid container.");if(!t.mobile&&w()||!t.desktop&&!w())throw new Error("This device is disabled.")}catch(e){return h.call(this,"Instantiation failed.",e.message),n}return z=t,document.documentElement.classList.add("sr"),document.body?document.body.style.height="100%":document.addEventListener("DOMContentLoaded",function(){document.body.style.height="100%"}),this.store={containers:{},elements:{},history:[],sequences:{}},this.pristine=!0,D=D||function(e,t){var i=this;void 0===e&&(e={type:"init"}),void 0===t&&(t=this.store.elements),M(function(){var n="init"===e.type||"resize"===e.type;p(i.store.containers,function(e){n&&(e.geometry=E.call(i,e,!0));var t=function(e){var t,n=e.node===document.documentElement?(t=window.pageYOffset,window.pageXOffset):(t=e.node.scrollTop,e.node.scrollLeft);return{top:t,left:n}}.call(i,e);e.scroll&&(e.direction={x:T(t.left-e.scroll.left),y:T(t.top-e.scroll.top)}),e.scroll=t}),p(t,function(e){n&&(e.geometry=E.call(i,e)),e.visible=function(e){void 0===e&&(e={});var t=this.store.containers[e.containerId];if(t){var n=Math.max(0,Math.min(1,e.config.viewFactor)),i=e.config.viewOffset,o=e.geometry.bounds.top+e.geometry.height*n,r=e.geometry.bounds.right-e.geometry.width*n,a=e.geometry.bounds.bottom-e.geometry.height*n,s=e.geometry.bounds.left+e.geometry.width*n,l=t.geometry.bounds.top+t.scroll.top+i.top,c=t.geometry.bounds.right+t.scroll.left-i.right,d=t.geometry.bounds.bottom+t.scroll.top-i.bottom,u=t.geometry.bounds.left+t.scroll.left+i.left;return o<d&&u<r&&l<a&&s<c||"fixed"===e.styles.position}}.call(i,e)}),p(t,function(e){e.sequence?m.call(i,e):l.call(i,e)}),i.pristine=!1})}.bind(this),A=A||function(){var n=this;p(this.store.elements,function(e){e.node.setAttribute("style",e.styles.inline.generated),e.node.removeAttribute("data-sr-id")}),p(this.store.containers,function(e){var t=e.node===document.documentElement?window:e.node;t.removeEventListener("scroll",n.delegate),t.removeEventListener("resize",n.delegate)}),this.store={containers:{},elements:{},history:[],sequences:{}}}.bind(this),I=I||x.bind(this),$=$||f.bind(this),P=P||function(){var t=this;p(this.store.history,function(e){x.call(t,e.target,e.options,!0)}),k.call(this)}.bind(this),Object.defineProperty(this,"delegate",{get:function(){return D}}),Object.defineProperty(this,"destroy",{get:function(){return A}}),Object.defineProperty(this,"reveal",{get:function(){return I}}),Object.defineProperty(this,"clean",{get:function(){return $}}),Object.defineProperty(this,"sync",{get:function(){return P}}),Object.defineProperty(this,"defaults",{get:function(){return z}}),Object.defineProperty(this,"version",{get:function(){return B}}),Object.defineProperty(this,"noop",{get:function(){return!1}}),R=R||this}return q.isSupported=function(){return("transform"in(t=document.documentElement.style)||"WebkitTransform"in t)&&("transition"in(e=document.documentElement.style)||"WebkitTransition"in e);var e,t},Object.defineProperty(q,"debug",{get:function(){return H||!1},set:function(e){return H="boolean"==typeof e?e:H}}),q(),q}();!function(e){var t,n,i;"function"==typeof define&&define.amd&&(define(e),t=!0),"object"==typeof exports&&(module.exports=e(),t=!0),t||(n=window.Cookies,(i=window.Cookies=e()).noConflict=function(){return window.Cookies=n,i})}(function(){function s(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var i in n)t[i]=n[i]}return t}function c(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function e(l){function a(){}function n(e,t,n){if("undefined"!=typeof document){"number"==typeof(n=s({path:"/"},a.defaults,n)).expires&&(n.expires=new Date(+new Date+864e5*n.expires)),n.expires=n.expires?n.expires.toUTCString():"";try{var i=JSON.stringify(t);/^[\{\[]/.test(i)&&(t=i)}catch(e){}t=l.write?l.write(t,e):encodeURIComponent(String(t)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=encodeURIComponent(String(e)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var o="";for(var r in n)n[r]&&(o+="; "+r,!0!==n[r]&&(o+="="+n[r].split(";")[0]));return document.cookie=e+"="+t+o}}function t(e,t){if("undefined"!=typeof document){for(var n={},i=document.cookie?document.cookie.split("; "):[],o=0;o<i.length;o++){var r=i[o].split("="),a=r.slice(1).join("=");t||'"'!==a.charAt(0)||(a=a.slice(1,-1));try{var s=c(r[0]),a=(l.read||l)(a,s)||c(a);if(t)try{a=JSON.parse(a)}catch(e){}if(n[s]=a,e===s)break}catch(e){}}return e?n[e]:n}}return a.set=n,a.get=function(e){return t(e,!1)},a.getJSON=function(e){return t(e,!0)},a.remove=function(e,t){n(e,"",s(t,{expires:-1}))},a.defaults={},a.withConverter=e,a}(function(){})}),$(function(){var n=$("body"),e=$(".navbar"),t=$(".navbar-collapse");n.append('<div class="side-menu-overlay"></div>');var i=$(".side-menu-overlay");n.append('<div id="side-menu"></div>');var o=$("#side-menu");o.append('<button class="close"><span aria-hidden="true">×</span></button>');var r=o.find(".close");o.append('<div class="contents"></div>');var a=o.find(".contents");function s(){n.removeClass("side-menu-visible"),i.fadeOut(),setTimeout(function(){o.hide(),n.removeClass("overflow-hidden")},400)}e.hasClass("better-bootstrap-nav-left")&&o.addClass("side-menu-left"),t.on("show.bs.collapse",function(e){e.preventDefault();var t=$(this).html();a.html(t),n.addClass("overflow-hidden"),o.show(),setTimeout(function(){n.addClass("side-menu-visible"),i.fadeIn()},50)}),r.on("click",function(e){e.preventDefault(),s()}),i.on("click",function(e){s()}),$(window).resize(function(){!t.is(":visible")&&n.hasClass("side-menu-visible")?(o.show(),i.show()):(o.hide(),i.hide())})}),$.dateDropperSetup={languages:{en:{name:"English",months:{short:["Jan","Feb","Mar","Apr","May","June","July","Aug","Sept","Oct","Nov","Dec"],full:["January","February","March","April","May","June","July","August","September","October","November","December"]},weekdays:{short:["S","M","T","W","T","F","S"],full:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]}},ka:{name:"Georgian",months:{short:["იან","თებ","მარტ","აპრ","მაი","ივნ","ივლ","აგვ","სექტ","ოქტ","ნოემბ","დეკ"],full:["იანვარი","თებერვალი","მარტი","აპრილი","მაისი","ივნისი","ივლისი","აგვისტო","სექტემბერი","ოქტომბერი","ნოემბერი","დეკემბერი"]},weekdays:{short:["კვ","ორ","სამ","ოთხ","ხუთ","პარ","შაბ"],full:["კვირა","ორშაბათი","სამშაბათი","ოთხშაბათი","ხუთშაბათი","პარასკევი","შაბათი"]}},it:{name:"Italiano",months:{short:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],full:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"]},weekdays:{short:["D","L","M","M","G","V","S"],full:["Domenica","Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato"]}},fr:{name:"Français",months:{short:["Jan","Fév","Mar","Avr","Mai","Jui","Jui","Aoû","Sep","Oct","Nov","Déc"],full:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"]},weekdays:{short:["D","L","M","M","J","V","S"],full:["Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"]}},zh:{name:"中文",months:{short:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],full:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},weekdays:{short:["天","一","二","三","四","五","六"],full:["星期天","星期一","星期二","星期三","星期四","星期五","星期六"]}},ar:{name:"العَرَبِيَّة",months:{short:["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],full:["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"]},weekdays:{short:["S","M","T","W","T","F","S"],full:["الأحد","الإثنين","الثلثاء","الأربعاء","الخميس","الجمعة","السبت"]}},fa:{name:"فارسی",months:{short:["ژانویه","فووریه","مارچ","آپریل","می","جون","جولای","آگوست","سپتامبر","اکتبر","نوامبر","دسامبر"],full:["ژانویه","فووریه","مارچ","آپریل","می","جون","جولای","آگوست","سپتامبر","اکتبر","نوامبر","دسامبر"]},weekdays:{short:["S","M","T","W","T","F","S"],full:["یکشنبه","دوشنبه","سه شنبه","چهارشنبه","پنج شنبه","جمعه","شنبه"]}},hu:{name:"Hungarian",months:{short:["jan","feb","már","ápr","máj","jún","júl","aug","sze","okt","nov","dec"],full:["január","február","március","április","május","június","július","augusztus","szeptember","október","november","december"]},weekdays:{short:["v","h","k","s","c","p","s"],full:["vasárnap","hétfő","kedd","szerda","csütörtök","péntek","szombat"]}},gr:{name:"Ελληνικά",months:{short:["Ιαν","Φεβ","Μάρ","Απρ","Μάι","Ιούν","Ιούλ","Αύγ","Σεπ","Οκτ","Νοέ","Δεκ"],full:["Ιανουάριος","Φεβρουάριος","Μάρτιος","Απρίλιος","Μάιος","Ιούνιος","Ιούλιος","Αύγουστος","Σεπτέμβριος","Οκτώβριος","Νοέμβριος","Δεκέμβριος"]},weekdays:{short:["Κ","Δ","Τ","Τ","Π","Π","Σ"],full:["Κυριακή","Δευτέρα","Τρίτη","Τετάρτη","Πέμπτη","Παρασκευή","Σάββατο"]}},es:{name:"Español",months:{short:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],full:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"]},weekdays:{short:["D","L","M","X","J","V","S"],full:["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"]}},da:{name:"Dansk",months:{short:["jan","feb","mar","apr","maj","jun","jul","aug","sep","okt","nov","dec"],full:["januar","februar","marts","april","maj","juni","juli","august","september","oktober","november","december"]},weekdays:{short:["s","m","t","o","t","f","l"],full:["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"]}},de:{name:"Deutsch",months:{short:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],full:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},weekdays:{short:["S","M","D","M","D","F","S"],full:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]}},nl:{name:"Nederlands",months:{short:["jan","feb","maa","apr","mei","jun","jul","aug","sep","okt","nov","dec"],full:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]},weekdays:{short:["z","m","d","w","d","v","z"],full:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]}},pl:{name:"język polski",months:{short:["sty","lut","mar","kwi","maj","cze","lip","sie","wrz","paź","lis","gru"],full:["styczeń","luty","marzec","kwiecień","maj","czerwiec","lipiec","sierpień","wrzesień","październik","listopad","grudzień"]},weekdays:{short:["n","p","w","ś","c","p","s"],full:["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"]}},pt:{name:"Português",months:{short:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],full:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"]},weekdays:{short:["D","S","T","Q","Q","S","S"],full:["Domingo","Segunda","Terça","Quarta","Quinta","Sexta","Sábado"]}},si:{name:"Slovenščina",months:{short:["jan","feb","mar","apr","maj","jun","jul","avg","sep","okt","nov","dec"],full:["januar","februar","marec","april","maj","junij","julij","avgust","september","oktober","november","december"]},weekdays:{short:["n","p","t","s","č","p","s"],full:["nedelja","ponedeljek","torek","sreda","četrtek","petek","sobota"]}},uk:{name:"українська мова",months:{short:["січень","лютий","березень","квітень","травень","червень","липень","серпень","вересень","жовтень","листопад","грудень"],full:["січень","лютий","березень","квітень","травень","червень","липень","серпень","вересень","жовтень","листопад","грудень"]},weekdays:{short:["н","п","в","с","ч","п","с"],full:["неділя","понеділок","вівторок","середа","четвер","п'ятниця","субота"]}},ru:{name:"русский язык",months:{short:["январь","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь"],full:["январь","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь"]},weekdays:{short:["в","п","в","с","ч","п","с"],full:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"]}},tr:{name:"Türkçe",months:{short:["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara"],full:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"]},weekdays:{short:["P","P","S","Ç","P","C","C"],full:["Pazar","Pazartesi","Sali","Çarşamba","Perşembe","Cuma","Cumartesi"]}},ko:{name:"조선말",months:{short:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],full:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"]},weekdays:{short:["일","월","화","수","목","금","토"],full:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]}},fi:{name:"suomen kieli",months:{short:["Tam","Hel","Maa","Huh","Tou","Kes","Hei","Elo","Syy","Lok","Mar","Jou"],full:["Tammikuu","Helmikuu","Maaliskuu","Huhtikuu","Toukokuu","Kesäkuu","Heinäkuu","Elokuu","Syyskuu","Lokakuu","Marraskuu","Joulukuu"]},weekdays:{short:["S","M","T","K","T","P","L"],full:["Sunnuntai","Maanantai","Tiistai","Keskiviikko","Torstai","Perjantai","Lauantai"]}},vi:{name:"Tiếng việt",gregorian:!1,months:{short:["Th.01","Th.02","Th.03","Th.04","Th.05","Th.06","Th.07","Th.08","Th.09","Th.10","Th.11","Th.12"],full:["Tháng 01","Tháng 02","Tháng 03","Tháng 04","Tháng 05","Tháng 06","Tháng 07","Tháng 08","Tháng 09","Tháng 10","Tháng 11","Tháng 12"]},weekdays:{short:["CN","T2","T3","T4","T5","T6","T7"],full:["Chủ nhật","Thứ hai","Thứ ba","Thứ tư","Thứ năm","Thứ sáu","Thứ bảy"]}}},icons:{arrow:{l:'<svg viewBox="0 -1 6 16" height="14" width="8"><polyline points="6 0 0 6 6 12" stroke="currentColor" stroke-width="2" fill="none"></polyline></svg>',r:'<svg viewBox="6 -1 6 16" height="14" width="8"><polyline points="6 0 12 6 6 12" stroke="currentColor" stroke-width="2" fill="none"></polyline></svg>'},checkmark:'<svg viewBox="0 0 22 18" height="18" width="32"><polyline points="0 8 8 16 22 1" stroke="currentColor" stroke-width="2" fill="none" ></polyline></svg>',expand:'<svg width="18" height="18" viewBox="0 -3 12 18" stroke="currentColor" stroke-width="1.5" fill="none"><polyline points="8 0 12 0 12 4" fill="none"></polyline><path d="M11.4444444,0.555555556 L6.97196343,5.02803657" stroke-linecap="square"></path><path d="M5.5,6.5 L0.555555556,11.4444444" stroke-linecap="square"></path><polyline points="0 8 0 12 4 12" fill="none"></polyline></svg>'},autoInit:!0,inlineCSS:'.picker-input{cursor:text}.picker-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.8);z-index:2147483637;opacity:1;visibility:visible;-webkit-transition:opacity .4s ease,visibility .4s ease;-o-transition:opacity .4s ease,visibility .4s ease;transition:opacity .4s ease,visibility .4s ease}.picker-overlay.picker-overlay-hidden{opacity:0;visibility:hidden}div.datedropper{--dd-color1:#fd4741;--dd-color2:white;--dd-color3:#4D4D4D;--dd-color4:white;--dd-radius:6px;--dd-width:180px;--dd-shadow:0 0 32px 0 rgba(0, 0, 0, 0.1);-ms-touch-action:none;touch-action:none;position:absolute;top:0;left:0;z-index:2147483638;-webkit-transform:translate3d(-50%, 0, 0);transform:translate3d(-50%, 0, 0);line-height:1;font-family:sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:rgba(0, 0, 0, 0);opacity:0;visibility:hidden;margin-top:-8px;-webkit-backface-visibility:hidden;backface-visibility:hidden;border-radius:6px!important;border-radius:var(--dd-radius)!important}div.datedropper.leaf{--dd-color1:#1ecd80;--dd-color2:#fefff2;--dd-color3:#528971;--dd-color4:#fefff2;--dd-radius:6px;--dd-width:180px;--dd-shadow:0 0 32px 0 rgba(0, 0, 0, 0.1)}div.datedropper.vanilla{--dd-color1:#feac92;--dd-color2:#FFF;--dd-color3:#9ed7db;--dd-color4:#faf7f4;--dd-radius:6px;--dd-width:180px;--dd-shadow:0 0 32px 0 rgba(0, 0, 0, 0.1)}div.datedropper.ryanair{--dd-color1:#7e57dc;--dd-color2:#50388a;--dd-color3:#ffffff;--dd-color4:#FFF;--dd-radius:6px;--dd-width:180px;--dd-shadow:0 0 32px 0 rgba(0, 0, 0, 0.1)}@media only screen and (max-width:479px){div.datedropper{position:fixed;top:50%!important;left:50%!important;-webkit-transform:translate3d(-50%, -50%, 0);transform:translate3d(-50%, -50%, 0);margin:0}div.datedropper:before{display:none}div.datedropper .picker{-webkit-box-shadow:0 0 64px 32px rgba(0, 0, 0, 0.06)!important;box-shadow:0 0 64px 32px rgba(0, 0, 0, 0.06)!important}}div.datedropper *{-webkit-box-sizing:border-box;box-sizing:border-box;width:auto;height:auto;margin:0;padding:0;border:0;font-size:100%}div.datedropper svg{fill:currentColor}div.datedropper:before{content:"";position:absolute;width:16px;height:16px;top:-8px;left:50%;-webkit-transform:translateX(-50%) rotate(45deg);-ms-transform:translateX(-50%) rotate(45deg);transform:translateX(-50%) rotate(45deg);border-top-left-radius:4px;background-color:white;z-index:1}div.datedropper.picker-focused{opacity:1;visibility:visible;margin-top:8px}@media only screen and (max-width:479px){div.datedropper.picker-focused{margin-top:0}}div.datedropper .pick-submit{margin:0 auto;outline:0;width:56px;height:100%;line-height:64px;border-radius:56px;font-size:24px;cursor:pointer;border-bottom-left-radius:0;border-bottom-right-radius:0;text-align:center;position:relative;top:0}div.datedropper .pick-submit:focus,div.datedropper .pick-submit:hover{top:4px;-webkit-box-shadow:0 0 0 16px rgba(0, 0, 0, 0.04), 0 0 0 8px rgba(0, 0, 0, 0.04);box-shadow:0 0 0 16px rgba(0, 0, 0, 0.04), 0 0 0 8px rgba(0, 0, 0, 0.04)}div.datedropper .pick-submit svg{position:relative;top:20px}div.datedropper .picker{position:relative;overflow:hidden}div.datedropper .picker+div{font-weight:bold;font-size:10px;text-transform:uppercase;padding:.5rem;text-align:center}div.datedropper .picker+div a{text-decoration:none;color:currentColor}div.datedropper .picker+div a:hover{text-decoration:underline}div.datedropper .picker ul{margin:0;padding:0;list-style:none;cursor:pointer;position:relative;z-index:2}div.datedropper .picker ul.pick{position:relative;overflow:hidden;outline:0}div.datedropper .picker ul.pick:nth-of-type(2){-webkit-box-shadow:0 1px rgba(0, 0, 0, 0.06);box-shadow:0 1px rgba(0, 0, 0, 0.06)}div.datedropper .picker ul.pick li{position:absolute;top:0;left:0;width:100%;height:100%;text-align:center;opacity:.5;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;text-align:center;pointer-events:none}div.datedropper .picker ul.pick li span{font-size:16px;position:absolute;left:0;width:100%;line-height:0;bottom:24px}div.datedropper .picker ul.pick li.pick-afr{-webkit-transform:translateY(100%);-ms-transform:translateY(100%);transform:translateY(100%)}div.datedropper .picker ul.pick li.pick-bfr{-webkit-transform:translateY(-100%);-ms-transform:translateY(-100%);transform:translateY(-100%)}div.datedropper .picker ul.pick li.pick-sl{opacity:1;-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0);z-index:1;pointer-events:auto}div.datedropper .picker ul.pick:focus .pick-arw-s1,div.datedropper .picker ul.pick:hover .pick-arw-s1{opacity:0.6}div.datedropper .picker ul.pick:focus.pick-jump .pick-arw-s2,div.datedropper .picker ul.pick:hover.pick-jump .pick-arw-s2{pointer-events:auto;opacity:0.6}div.datedropper .picker ul.pick:focus.pick-jump .pick-arw-s2.pick-arw-r,div.datedropper .picker ul.pick:hover.pick-jump .pick-arw-s2.pick-arw-r{-webkit-transform:translateX(-8px);-ms-transform:translateX(-8px);transform:translateX(-8px)}div.datedropper .picker ul.pick:focus.pick-jump .pick-arw-s2.pick-arw-l,div.datedropper .picker ul.pick:hover.pick-jump .pick-arw-s2.pick-arw-l{-webkit-transform:translateX(8px);-ms-transform:translateX(8px);transform:translateX(8px)}div.datedropper .picker ul.pick .pick-arw{position:absolute;top:0;height:100%;width:25%;font-size:10px;text-align:center;display:block;z-index:10;cursor:pointer;overflow:hidden;opacity:0}div.datedropper .picker ul.pick .pick-arw div{line-height:0;top:50%;left:50%;position:absolute;display:block;-webkit-transform:translate(-50%, -50%);-ms-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}div.datedropper .picker ul.pick .pick-arw svg{width:16px;height:16px}div.datedropper .picker ul.pick .pick-arw.pick-arw:hover{opacity:1}div.datedropper .picker ul.pick .pick-arw.pick-arw-r{right:0}div.datedropper .picker ul.pick .pick-arw.pick-arw-l{left:0}div.datedropper .picker ul.pick .pick-arw.pick-arw-s2{pointer-events:none}div.datedropper .picker ul.pick .pick-arw.pick-arw-s2.pick-arw-r{-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0)}div.datedropper .picker ul.pick .pick-arw.pick-arw-s2.pick-arw-l{-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0)}div.datedropper .picker ul.pick.pick-m,div.datedropper .picker ul.pick.pick-y{height:60px}div.datedropper .picker ul.pick.pick-m{font-size:32px}div.datedropper .picker ul.pick.pick-y{font-size:24px}div.datedropper .picker ul.pick.pick-d{height:100px;font-size:64px;font-weight:bold}div.datedropper .picker ul.pick.pick-d li div{margin-top:-16px}div.datedropper .picker ul.pick:focus:after,div.datedropper .picker ul.pick:hover:after{content:"";pointer-events:none;position:absolute;top:6px;left:6px;bottom:6px;right:6px;background-color:rgba(0, 0, 0, 0.04);border-radius:6px}div.datedropper .picker .pick-lg{z-index:1;margin:0 auto;height:0;overflow:hidden}div.datedropper .picker .pick-lg.pick-lg-focused{background-color:rgba(0, 0, 0, 0.025)}div.datedropper .picker .pick-lg.down{-webkit-animation:down .8s ease;animation:down .8s ease}div.datedropper .picker .pick-lg .pick-h:after,div.datedropper .picker .pick-lg .pick-h:before{opacity:0.32}div.datedropper .picker .pick-lg ul:after{content:"";display:table;clear:both}div.datedropper .picker .pick-lg ul li{float:left;text-align:center;width:14.285714286%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;text-align:center;font-size:14px;position:relative}div.datedropper .picker .pick-lg ul li:after,div.datedropper .picker .pick-lg ul li:before{position:absolute;z-index:2;display:block;line-height:30px;height:30px;width:30px;top:50%;left:50%;-webkit-transform:translate(-50%, -50%);-ms-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}div.datedropper .picker .pick-lg ul li:after{content:attr(data-value);z-index:2}div.datedropper .picker .pick-lg ul li:before{content:""}div.datedropper .picker .pick-lg ul.pick-lg-h{height:16.6666666667%;padding:0 10px}div.datedropper .picker .pick-lg ul.pick-lg-h li{height:100%}div.datedropper .picker .pick-lg ul.pick-lg-b{height:83.3333333333%;padding:10px}div.datedropper .picker .pick-lg ul.pick-lg-b li{height:16.6666666667%;cursor:pointer;position:relative}div.datedropper .picker .pick-lg ul.pick-lg-b li div{position:absolute;top:0;left:0;right:0;bottom:0;z-index:1}div.datedropper .picker .pick-lg ul.pick-lg-b li.pick-lk{pointer-events:none;opacity:.6}div.datedropper .picker .pick-lg ul.pick-lg-b li.pick-lk:after{text-decoration:line-through}div.datedropper .picker .pick-lg ul.pick-lg-b li.pick-dir div{opacity:.25}div.datedropper .picker .pick-lg ul.pick-lg-b li:not(.pick-h):hover{z-index:2}div.datedropper .picker .pick-lg ul.pick-lg-b li:not(.pick-h):hover:before{border-radius:32px;-webkit-box-shadow:0 0 32px rgba(0, 0, 0, 0.1);box-shadow:0 0 32px rgba(0, 0, 0, 0.1)}div.datedropper .picker .pick-lg ul.pick-lg-b li:not(.pick-h):hover:after,div.datedropper .picker .pick-lg ul.pick-lg-b li:not(.pick-h):hover:before{-webkit-transform:translate(-50%, -50%) scale(1.5);-ms-transform:translate(-50%, -50%) scale(1.5);transform:translate(-50%, -50%) scale(1.5)}div.datedropper .picker .pick-lg ul.pick-lg-b li.pick-sl:before{z-index:2;border-radius:32px;-webkit-box-shadow:0 0 32px rgba(0, 0, 0, 0.1);box-shadow:0 0 32px rgba(0, 0, 0, 0.1)}div.datedropper .picker .pick-lg ul.pick-lg-b li.pick-sl:after,div.datedropper .picker .pick-lg ul.pick-lg-b li.pick-sl:before{-webkit-transform:translate(-50%, -50%) scale(1.5);-ms-transform:translate(-50%, -50%) scale(1.5);transform:translate(-50%, -50%) scale(1.5)}div.datedropper .picker .pick-lg ul.pick-lg-b li.pick-sl.pick-sl-a:not(.pick-sl-b):before{border-top-right-radius:8px;-webkit-transform:translate(-50%, -50%) scale(1.5) rotate(45deg)!important;-ms-transform:translate(-50%, -50%) scale(1.5) rotate(45deg)!important;transform:translate(-50%, -50%) scale(1.5) rotate(45deg)!important}div.datedropper .picker .pick-lg ul.pick-lg-b li.pick-sl.pick-sl-b:not(.pick-sl-a):before{border-top-left-radius:8px;-webkit-transform:translate(-50%, -50%) scale(1.5) rotate(-45deg)!important;-ms-transform:translate(-50%, -50%) scale(1.5) rotate(-45deg)!important;transform:translate(-50%, -50%) scale(1.5) rotate(-45deg)!important}div.datedropper .picker .pick-btns{margin:-1px;position:relative;z-index:11;height:56px}div.datedropper .picker .pick-btns div{cursor:pointer;line-height:0}div.datedropper .picker .pick-btns .pick-btn{position:absolute;width:36px;height:36px;bottom:0;text-align:center;line-height:38px;font-size:16px;margin:8px;outline:0;border-radius:4px;background:rgba(0, 0, 0, 0.03);-webkit-box-shadow:0 0 32px rgba(0, 0, 0, 0.1);box-shadow:0 0 32px rgba(0, 0, 0, 0.1);-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}div.datedropper .picker .pick-btns .pick-btn svg{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%, -50%);-ms-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}div.datedropper .picker .pick-btns .pick-btn:focus,div.datedropper .picker .pick-btns .pick-btn:hover{-webkit-box-shadow:0 0 24px rgba(0, 0, 0, 0.1);box-shadow:0 0 24px rgba(0, 0, 0, 0.1);-webkit-transform:scale(0.95);-ms-transform:scale(0.95);transform:scale(0.95)}div.datedropper .picker .pick-btns .pick-btn.pick-btn-sz{right:0}div.datedropper .picker .pick-btns .pick-btn.pick-btn-lng{left:0;-webkit-transform-origin:left bottom;-ms-transform-origin:left bottom;transform-origin:left bottom}div.datedropper.picker-clean .picker-jumped-years{display:none}div.datedropper .picker-jumped-years{position:absolute;z-index:10;top:60px;left:0;right:0;bottom:0;padding:4px;padding-bottom:56px;opacity:0;overflow:hidden;overflow-y:scroll;-webkit-overflow-scrolling:touch;visibility:hidden;pointer-events:none;-webkit-transform:translateY(16px);-ms-transform:translateY(16px);transform:translateY(16px);-webkit-transform-origin:bottom center;-ms-transform-origin:bottom center;transform-origin:bottom center}div.datedropper .picker-jumped-years.picker-jumper-years-visible{opacity:1;visibility:visible;-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0);pointer-events:auto}div.datedropper .picker-jumped-years>div{float:left;width:50%;padding:4px;position:relative;cursor:pointer}div.datedropper .picker-jumped-years>div:before{content:"";display:block;border-radius:6px;padding:16px;padding-bottom:50%;background-color:rgba(0, 0, 0, 0.05)}div.datedropper .picker-jumped-years>div:after{text-align:center;font-size:20px;content:attr(data-id);position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%, -50%);-ms-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}div.datedropper .picker-jumped-years>div:hover:before{background-color:rgba(0, 0, 0, 0.025)}div.datedropper.picker-lg{width:300px}div.datedropper.picker-lg ul.pick.pick-d{-webkit-transform:scale(0);-ms-transform:scale(0);transform:scale(0);height:0!important}div.datedropper.picker-lg .pick-lg{height:256px}@media only screen and (max-width:479px){div.datedropper.picker-lg{width:auto!important;height:auto!important;top:1rem!important;left:1rem!important;right:1rem!important;bottom:1rem!important;-webkit-transform:none;-ms-transform:none;transform:none}div.datedropper.picker-lg.picker-modal{width:100%!important;height:100%!important;padding:1rem!important}div.datedropper.picker-lg .picker{height:100%}div.datedropper.picker-lg .picker .pick{max-height:unset!important}div.datedropper.picker-lg .pick-lg{height:62%!important;max-height:unset!important}div.datedropper.picker-lg .pick-lg .pick-lg-h{height:16.6666666667%}div.datedropper.picker-lg .pick-lg .pick-lg-b{height:83.3333333333%}div.datedropper.picker-lg .pick-lg .pick-lg-b li{height:16.6666666667%}div.datedropper.picker-lg .picker-jumped-years{top:13%!important;padding-bottom:12%!important}div.datedropper.picker-lg .pick-l,div.datedropper.picker-lg .pick-m,div.datedropper.picker-lg .pick-y{height:13%!important}div.datedropper.picker-lg .pick-btns{height:12%!important}}@-webkit-keyframes picker_rumble{0%,to{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-2px, 0, 0);transform:translate3d(-2px, 0, 0)}20%,40%,60%,80%{-webkit-transform:translate3d(2px, 0, 0);transform:translate3d(2px, 0, 0)}}@keyframes picker_rumble{0%,to{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-2px, 0, 0);transform:translate3d(-2px, 0, 0)}20%,40%,60%,80%{-webkit-transform:translate3d(2px, 0, 0);transform:translate3d(2px, 0, 0)}}div.datedropper .picker-rumble{-webkit-animation:picker_rumble .4s ease;animation:picker_rumble .4s ease}div.datedropper.picker-locked .pick-submit{opacity:0.35}div.datedropper.picker-locked .pick-submit:hover{-webkit-box-shadow:none!important;box-shadow:none!important}div.datedropper.picker-modal{top:50%!important;left:50%!important;-webkit-transform:translate3d(-50%, -50%, 0)!important;transform:translate3d(-50%, -50%, 0)!important;position:fixed!important;margin:0!important}div.datedropper.picker-modal:before{display:none}div.datedropper.picker-fxs{-webkit-transition:opacity .2s ease,visibility .2s ease, margin .2s ease;-o-transition:opacity .2s ease,visibility .2s ease, margin .2s ease;transition:opacity .2s ease,visibility .2s ease, margin .2s ease}@media only screen and (min-width:480px){div.datedropper.picker-fxs.picker-transit{-webkit-transition:width 0.8s cubic-bezier(1, -0.55, 0.2, 1.37), opacity 0.2s ease, visibility 0.2s ease, margin 0.2s ease;-o-transition:width 0.8s cubic-bezier(1, -0.55, 0.2, 1.37), opacity 0.2s ease, visibility 0.2s ease, margin 0.2s ease;transition:width 0.8s cubic-bezier(1, -0.55, 0.2, 1.37), opacity 0.2s ease, visibility 0.2s ease, margin 0.2s ease}div.datedropper.picker-fxs.picker-transit .pick-lg{-webkit-transition:height 0.8s cubic-bezier(1, -0.55, 0.2, 1.37);-o-transition:height 0.8s cubic-bezier(1, -0.55, 0.2, 1.37);transition:height 0.8s cubic-bezier(1, -0.55, 0.2, 1.37)}div.datedropper.picker-fxs.picker-transit .pick-d{-webkit-transition:top 0.8s cubic-bezier(1, -0.55, 0.2, 1.37), height 0.8s cubic-bezier(1, -0.55, 0.2, 1.37), background-color 0.4s ease, -webkit-transform 0.8s cubic-bezier(1, -0.55, 0.2, 1.37);transition:top 0.8s cubic-bezier(1, -0.55, 0.2, 1.37), height 0.8s cubic-bezier(1, -0.55, 0.2, 1.37), background-color 0.4s ease, -webkit-transform 0.8s cubic-bezier(1, -0.55, 0.2, 1.37);-o-transition:top 0.8s cubic-bezier(1, -0.55, 0.2, 1.37), transform 0.8s cubic-bezier(1, -0.55, 0.2, 1.37), height 0.8s cubic-bezier(1, -0.55, 0.2, 1.37), background-color 0.4s ease;transition:top 0.8s cubic-bezier(1, -0.55, 0.2, 1.37), transform 0.8s cubic-bezier(1, -0.55, 0.2, 1.37), height 0.8s cubic-bezier(1, -0.55, 0.2, 1.37), background-color 0.4s ease;transition:top 0.8s cubic-bezier(1, -0.55, 0.2, 1.37), transform 0.8s cubic-bezier(1, -0.55, 0.2, 1.37), height 0.8s cubic-bezier(1, -0.55, 0.2, 1.37), background-color 0.4s ease, -webkit-transform 0.8s cubic-bezier(1, -0.55, 0.2, 1.37)}}div.datedropper.picker-fxs ul.pick.pick-y{-webkit-transition:background-color .4s ease;-o-transition:background-color .4s ease;transition:background-color .4s ease}div.datedropper.picker-fxs ul.pick li{-webkit-transition:opacity .4s ease, -webkit-transform .4s ease;transition:opacity .4s ease, -webkit-transform .4s ease;-o-transition:transform .4s ease, opacity .4s ease;transition:transform .4s ease, opacity .4s ease;transition:transform .4s ease, opacity .4s ease, -webkit-transform .4s ease}div.datedropper.picker-fxs ul.pick .pick-arw{-webkit-transition:opacity .2s ease, -webkit-transform .2s ease;transition:opacity .2s ease, -webkit-transform .2s ease;-o-transition:transform .2s ease, opacity .2s ease;transition:transform .2s ease, opacity .2s ease;transition:transform .2s ease, opacity .2s ease, -webkit-transform .2s ease}div.datedropper.picker-fxs ul.pick .pick-arw i{-webkit-transition:right .2s ease, left .2s ease;-o-transition:right .2s ease, left .2s ease;transition:right .2s ease, left .2s ease}div.datedropper.picker-fxs .picker-jumped-years{-webkit-transition:opacity .2s ease, visibility .2s ease, -webkit-transform .2s ease;transition:opacity .2s ease, visibility .2s ease, -webkit-transform .2s ease;-o-transition:transform .2s ease, opacity .2s ease, visibility .2s ease;transition:transform .2s ease, opacity .2s ease, visibility .2s ease;transition:transform .2s ease, opacity .2s ease, visibility .2s ease, -webkit-transform .2s ease}div.datedropper.picker-fxs .pick-lg .pick-lg-b li{-webkit-transition:background-color .2s ease;-o-transition:background-color .2s ease;transition:background-color .2s ease}div.datedropper.picker-fxs .pick-btns .pick-submit{-webkit-transition:top .2s ease, background-color .4s ease, -webkit-box-shadow .4s ease;transition:top .2s ease, background-color .4s ease, -webkit-box-shadow .4s ease;-o-transition:top .2s ease, box-shadow .4s ease, background-color .4s ease;transition:top .2s ease, box-shadow .4s ease, background-color .4s ease;transition:top .2s ease, box-shadow .4s ease, background-color .4s ease, -webkit-box-shadow .4s ease}div.datedropper.picker-fxs .pick-btns .pick-submit svg{height:18px}div.datedropper.picker-fxs .pick-btns .pick-btn{-webkit-transition:all .2s ease;-o-transition:all .2s ease;transition:all .2s ease}div.datedropper.picker-fxs .pick-btns .pick-btn svg{width:18px;height:18px}div.datedropper .null{-webkit-transition:none;-o-transition:none;transition:none}div.datedropper:not(.picker-lg){width:180px!important;width:var(--dd-width)!important}div.datedropper .picker{-webkit-box-shadow:0 0 32px 0 rgba(0, 0, 0, 0.1)!important;box-shadow:0 0 32px 0 rgba(0, 0, 0, 0.1)!important;-webkit-box-shadow:var(--dd-shadow)!important;box-shadow:var(--dd-shadow)!important}div.datedropper .pick:focus:after,div.datedropper .pick:hover:after,div.datedropper .picker{border-radius:6px!important;border-radius:var(--dd-radius)!important}div.datedropper .picker-jumped-years{border-bottom-left-radius:6px!important;border-bottom-right-radius:var(--dd-radius)!important}div.datedropper .pick-dir div,div.datedropper .pick-lg-b .pick-sl:before,div.datedropper .pick-lg-h,div.datedropper .pick-submit,div.datedropper:not(.picker-clean) .pick:first-of-type,div.datedropper:not(.picker-clean):before{background-color:#fd4741!important;background-color:var(--dd-color1)!important}div.datedropper .pick-btn,div.datedropper .pick-lg-b .pick-wke,div.datedropper .pick-lg-b li:not(.pick-sl):not(.pick-h):hover:after,div.datedropper .pick-y.pick-jump,div.datedropper .picker+div,div.datedropper .pick li span{color:#fd4741!important;color:var(--dd-color1)!important}div.datedropper .pick-btn,div.datedropper .pick-btn:hover,div.datedropper .pick-l,div.datedropper .pick-lg-b li:not(.pick-sl):not(.pick-h):hover:before,div.datedropper .picker,div.datedropper .picker-jumped-years,div.datedropper:before{background-color:white!important;background-color:var(--dd-color2)!important}div.datedropper .pick-arw,div.datedropper .pick-l,div.datedropper .picker{color:#4D4D4D!important;color:var(--dd-color3)!important}div.datedropper .pick-lg-b .pick-sl:after,div.datedropper .pick-lg-h,div.datedropper .pick-submit,div.datedropper:not(.picker-clean) .pick:first-of-type,div.datedropper:not(.picker-clean) .pick:first-of-type *{color:white!important;color:var(--dd-color4)!important}'},function(h){function n(){var e=navigator.userAgent.toLowerCase();return-1!=e.indexOf("msie")&&parseInt(e.split("msie")[1])}function r(){return!!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}function a(e){e.fx&&!e.fxMobile&&(h(window).width()<480?e.element.removeClass("picker-fxs"):e.element.addClass("picker-fxs"))}function d(e){return e%1==0&&e}function u(e){return!!/(^\d{1,4}[\.|\\/|-]\d{1,2}[\.|\\/|-]\d{1,4})(\s*(?:0?[1-9]:[0-5]|1(?=[012])\d:[0-5])\d\s*[ap]m)?$/.test(e)&&e}function f(i,e){var n,o=z(i),r=!1,a=!1,s=!1,l=!0;if(o&&h.each(o,function(e,t){var n=F(t.value);n.m==E(i,"m")&&n.y==E(i,"y")&&$(i,".pick-lg-b li.pick-v[data-value="+n.d+"]").addClass("pick-sl pick-sl-"+e)}),r=$(i,".pick-lg-b li.pick-sl-a"),a=e||$(i,".pick-lg-b li.pick-sl-b"),n={a:r.length?$(i,".pick-lg-b li").index(r)+1:0,b:a.length?$(i,".pick-lg-b li").index(a)-1:$(i,".pick-lg-b li").last().index()},o.a.value!=o.b.value&&e&&(l=!1),e?(t=j(E(i,"m")+"/"+e.attr("data-value")+"/"+E(i,"y")),o.a.value==o.b.value&&t>o.a.value&&(s=!0)):(t=j(E(i)),(t>=o.a.value&&t<=o.b.value||r.length)&&(s=!0)),l&&$(i,".pick-lg-b li").removeClass("pick-dir pick-dir-sl pick-dir-first pick-dir-last"),s)for(var c=n.a;c<=n.b;c++)$(i,".pick-lg-b li").eq(c).addClass("pick-dir");r.next(".pick-dir").addClass("pick-dir-first"),a.prev(".pick-dir").addClass("pick-dir-last")}function p(e){return!!e&&{selector:e.selector,date:L(e)}}function s(e,t){return $(e,'ul.pick[data-k="'+t+'"]')}function l(e,t,n){ul=s(e,t);var i=[];return ul.find("li").each(function(){i.push(h(this).attr("value"))}),"last"==n?i[i.length-1]:i[0]}function o(e,t){var n=!1;for(var i in"Y"!=e.format&&"m"!=e.format||(e.hideDay=!0,"Y"==e.format&&(e.hideMonth=!0),"m"==e.format&&(e.hideYear=!0),n=!0),(e.hideDay||e.hideMonth||e.hideYear)&&(n=!0),e.largeOnly&&(e.large=!0,e.largeDefault=!0),(e.hideMonth||e.hideDay||e.hideYear||e.showOnlyEnabledDays)&&(e.largeOnly=!1,e.large=!1,e.largeDefault=!1),e.element=h("<div>",{class:"datedropper "+(n?"picker-clean":"")+" "+(e.modal?"picker-modal":"")+" "+e.theme+" "+(e.fx?"picker-fxs":"")+" "+(e.large&&e.largeDefault?"picker-lg":""),id:e.identifier,html:h("<div>",{class:"picker"})}).appendTo("body"),e.key){var o=!0;"y"==i&&e.hideYear&&(o=!1),"d"==i&&e.hideDay&&(o=!1),"m"==i&&e.hideMonth&&(o=!1),o&&(h("<ul>",{class:"pick pick-"+i,"data-k":i,tabindex:0}).appendTo($(e,".picker")),W(e,i))}e.large&&h("<div>",{class:"pick-lg"}).insertBefore($(e,".pick-d")),h("<div>",{class:"pick-btns"}).appendTo($(e,".picker")),h("<div>",{tabindex:0,class:"pick-submit",html:h(h.dateDropperSetup.icons.checkmark)}).appendTo($(e,".pick-btns")),e.large&&!e.largeOnly&&h("<div>",{class:"pick-btn pick-btn-sz",html:h(h.dateDropperSetup.icons.expand)}).appendTo($(e,".pick-btns")),setTimeout(function(){e.element.addClass("picker-focused"),r()||setTimeout(function(){$(e,".pick:first-of-type").focus()},100),e.element.hasClass("picker-modal")&&(e.overlay=h('<div class="picker-overlay"></div>').appendTo("body")),a(e),H(e),Q(e),y=e,t&&t()},100)}function g(e){if("string"!=typeof e)return!1;if(u(e)){var n=e.match(/\d+/g);return h.each(n,function(e,t){n[e]=parseInt(t)}),{m:n[0]&&n[0]<=12?n[0]:picker.key.m.today,d:n[1]&&n[1]<=31?n[1]:picker.key.d.today,y:n[2]||picker.key.y.today}}return!1}function e(e){e.large&&(e.element.addClass("picker-transit").toggleClass("picker-lg"),e.element.hasClass("picker-lg")&&U(e),setTimeout(function(){e.element.removeClass("picker-transit")},800))}function m(e){if(e){var t=!1,n=j(E(e)),i=j(D(e));return e.lock&&("from"==e.lock&&(t=n<i),"to"==e.lock&&(t=i<n)),(e.minDate||e.maxDate)&&(n=j(E(e)),i=e.minDate?j(e.minDate):null,c=e.maxDate?j(e.maxDate):null,i&&c?t=n<i||n>c:i?t=n<i:c&&(t=n>c)),e.disabledDays&&!e.enabledDays&&(t=-1!=e.disabledDays.indexOf(n)),e.enabledDays&&!e.disabledDays&&(t=-1==e.enabledDays.indexOf(n)),t?(Z(e),e.element.addClass("picker-locked"),!0):(e.element.removeClass("picker-locked"),!1)}}function v(e,t,n){var i=e.key[t];n>i.max&&("d"==t&&e.autoIncrease&&K(e,"m","right"),"m"==t&&e.autoIncrease&&K(e,"y","right"),n=i.min),n<i.min&&("d"==t&&e.autoIncrease&&K(e,"m","left"),"m"==t&&e.autoIncrease&&K(e,"y","left"),n=i.max),e.key[t].current=n,X(e,t,n)}var b={},y=null,k=null,w=null,_=null,x=null,C={init:function(i){return h(this).each(function(){i&&i.roundtrip&&!h(this).attr("data-dd-roundtrip")&&h(this).attr("data-dd-roundtrip",i.roundtrip)}),h(this).each(function(){var e,t,n;h(this).hasClass("picker-trigger")||(e=h(this),t="datedropper-"+Object.keys(b).length,e.attr("data-datedropper-id",t).addClass("picker-trigger"),n={identifier:t,selector:e,jump:10,maxYear:!1,minYear:!1,format:"m/d/Y",lang:"en",lock:!1,theme:"primary",disabledDays:!1,large:!1,largeDefault:!1,fx:!0,fxMobile:!0,defaultDate:null,modal:!1,hideDay:!1,hideMonth:!1,hideYear:!1,enabledDays:!1,largeOnly:!1,roundtrip:!1,eventListener:e.is("input")?"focus":"click",trigger:!1,minDate:!1,maxDate:!1,autofill:!0,autoIncrease:!0,showOnlyEnabledDays:!1,changeValueTo:!1,startFromMonday:!0},b[t]=h.extend(!0,{},n,i,M(e)),R(b[t]))})},show:function(){return h(this).each(function(){q(h(this))})},hide:function(){return h(this).each(function(e){var t=I(h(this));t&&Y(t)})},destroy:function(t){return h(this).each(function(){var e=I(h(this));e&&(y&&e.identifier==y.identifier&&Y(y),h(this).removeAttr("data-datedropper-id").removeClass("picker-trigger").off(e.eventListener),delete e,t&&t())})},set:function(e){return h(this).each(function(){var n=I(h(this));n&&(h.each(e,function(e,t){"true"==t&&(t=!0),"false"==t&&(t=!1),"roundtrip"!=e?n[e]=t:console.error("[DATEDROPPER] You can't set roundtrip after main initialization")}),n.selector.off(n.eventListener),n.trigger&&h(n.trigger).off("click"),R(n),console.log(n),y&&y.element==n.element&&B(n))})},setDate:function(e){return h(this).each(function(){var n=I(h(this));n&&(h.each(e,function(e,t){"y"==e&&n.key[e]&&t>n.key[e].max&&(n.key[e].max=t),n.key[e].current=t}),y&&y.element==n.element&&B(n))})},getDate:function(t){return h(this).each(function(){var e=I(h(this));e&&t&&t(L(e))})}},T=!1,S=r()?{i:"touchstart",m:"touchmove",e:"touchend"}:{i:"mousedown",m:"mousemove",e:"mouseup"},M=function(e){var o={},r=/^data-dd\-(.+)$/;return h.each(e.get(0).attributes,function(e,t){if(r.test(t.nodeName)){var n=t.nodeName.match(r)[1].replace(/(?:^\w|[A-Z]|\b\w)/g,function(e,t){return 0==t?e.toLowerCase():e.toUpperCase()}).replace(/\s+/g,"").replace(new RegExp("-","g"),""),i=!1;switch(t.nodeValue){case"true":i=!0;break;case"false":i=!1;break;default:i=t.nodeValue}o[n]=i}}),o},E=function(e,t){return t?parseInt(e.key[t].current):E(e,"m")+"/"+E(e,"d")+"/"+E(e,"y")},D=function(e,t){return t?parseInt(e.key[t].today):D(e,"m")+"/"+D(e,"d")+"/"+D(e,"y")},A=function(e,t,n){var i=e.key[t];return n>i.max?A(e,t,n-i.max+(i.min-1)):n<i.min?A(e,t,n+1+(i.max-i.min)):n},I=function(e){var t=e.attr("data-datedropper-id");return b[t]||!1},$=function(e,t){if(e.element)return e.element.find(t)},P="div.datedropper.picker-focused",L=function(e,t){var n=(t=t||{d:E(e,"d"),m:E(e,"m"),y:E(e,"y")}).d,i=t.m,o=t.y,r=new Date(i+"/"+n+"/"+o).getDay(),a={F:h.dateDropperSetup.languages[e.lang].months.full[i-1],M:h.dateDropperSetup.languages[e.lang].months.short[i-1],D:h.dateDropperSetup.languages[e.lang].weekdays.full[r].substr(0,3),l:h.dateDropperSetup.languages[e.lang].weekdays.full[r],d:O(n),m:O(i),S:N(n),Y:o,U:j(E(e)),n:i,j:n},s=e.format.replace(/\b(F)\b/g,a.F).replace(/\b(M)\b/g,a.M).replace(/\b(D)\b/g,a.D).replace(/\b(l)\b/g,a.l).replace(/\b(d)\b/g,a.d).replace(/\b(m)\b/g,a.m).replace(/\b(S)\b/g,a.S).replace(/\b(Y)\b/g,a.Y).replace(/\b(U)\b/g,a.U).replace(/\b(n)\b/g,a.n).replace(/\b(j)\b/g,a.j);return a.formatted=s,a},O=function(e){return e<10?"0"+e:e},N=function(e){var t=["th","st","nd","rd"],n=e%100;return e+(t[(n-20)%10]||t[n]||t[0])},j=function(e){return Date.parse(e)/1e3},F=function(e){var t=new Date(1e3*e);return{m:t.getMonth()+1,y:t.getFullYear(),d:t.getDate()}},z=function(e){var i='[data-dd-roundtrip="'+e.roundtrip+'"]',o=!1;return h(i).length&&(o={},h.each(["a","b"],function(e,t){var n=h(i+"[data-dd-roundtrip-"+t+"]");o[t]={value:n.length&&n.attr("data-dd-roundtrip-"+t)||!1,selector:!!n.length&&n}})),o},H=function(e){var t,n,i;e.element.hasClass("picker-modal")||(n=(t=e.selector).offset().left+t.outerWidth()/2,i=t.offset().top+t.outerHeight(),e.element.css({left:n,top:i}))},R=function(o){var e,t,n,r,i,a,s,l;o.jump=d(o.jump)||10,o.maxYear=d(o.maxYear),o.minYear=d(o.minYear),o.lang in h.dateDropperSetup.languages||(o.lang="en"),o.key={m:{min:1,max:12,current:(new Date).getMonth()+1,today:(new Date).getMonth()+1},d:{min:1,max:31,current:(new Date).getDate(),today:(new Date).getDate()},y:{min:o.minYear||(new Date).getFullYear()-50,max:o.maxYear||(new Date).getFullYear()+50,current:(new Date).getFullYear(),today:(new Date).getFullYear()}},o.key.y.current>o.key.y.max&&(o.key.y.current=o.key.y.max),o.key.y.current<o.key.y.min&&(o.key.y.current=o.key.y.min),o.minDate&&(e=!!o.defaultDate&&j(o.defaultDate),t=!!o.minDate&&j(o.minDate),(!e||e<t)&&(o.defaultDate=o.minDate),V(o,F(j(o.defaultDate)))),o.disabledDays=o.disabledDays?o.disabledDays.split(","):null,o.enabledDays=o.enabledDays?o.enabledDays.split(","):null,o.disabledDays&&h.each(o.disabledDays,function(e,t){t&&u(t)&&(o.disabledDays[e]=j(t))}),o.enabledDays&&h.each(o.enabledDays,function(e,t){t&&u(t)&&(o.enabledDays[e]=j(t))}),o.showOnlyEnabledDays&&o.enabledDays?(n=(e=!!o.defaultDate&&j(o.defaultDate))&&o.enabledDays.includes(e)?F(e):F(o.enabledDays[0]),h.each(n,function(e,t){o.key[e].current=t})):o.showOnlyEnabledDays=!1,o.roundtrip&&(r=j(E(o)),1<(i=h('[data-dd-roundtrip="'+o.roundtrip+'"]')).length?i.each(function(){var e=0==i.index(h(this))?"a":"b",t=h(this).attr("data-dd-roundtrip-default-"+e),n=t?j(t):r;n&&h(this).attr("data-dd-roundtrip-"+e,n)}):h.each(["a","b"],function(e,t){var n=o.selector.attr("data-dd-roundtrip-default-"+t),i=n?j(n):r;i&&o.selector.attr("data-dd-roundtrip-"+t,i)}),a=z(o),s=F(a.a.value),console.log(o.defaultDate),o.defaultDate=s.m+"/"+s.d+"/"+s.y,o.largeOnly=!0),o.selector.on(o.eventListener,function(e){e.preventDefault(),h(this).blur(),q(h(this))}),o.trigger&&h(o.trigger).on("click",function(e){o.selector.trigger(o.eventListener)}),o.onReady&&o.onReady(p(o)),o.defaultDate&&(l=g(o.defaultDate))&&(h.each(l,function(e,t){o.key[e]&&(o.key[e].current=t)}),o.key.y.current>o.key.y.max&&(o.key.y.max=o.key.y.current),o.key.y.current<o.key.y.min&&(o.key.y.min=o.key.y.current))},B=function(e,t){e.element&&(e.element.remove(),e.overlay&&e.overlay.remove(),o(e))},q=function(e,t){y&&Y(y);var n=I(e);n&&o(n)},Y=function(e){var t={element:e.element,overlay:e.overlay};t.element&&(t.element.removeClass("picker-focused"),setTimeout(function(){t.element.remove(),t.overlay&&t.overlay.addClass("picker-overlay-hidden")},400)),y=null},W=function(e,t){var n=s(e,t),o=e.key[t];for(n.empty(),i=o.min;i<=o.max;i++){var r=i;"m"==t&&(r=h.dateDropperSetup.languages[e.lang].months.short[i-1]),r+="d"==t?"<span></span>":"",h("<li>",{value:i,html:"<div>"+r+"</div>"}).appendTo(n)}h.each(["l","r"],function(e,t){h("<div>",{class:"pick-arw pick-arw-s1 pick-arw-"+t,html:h("<div>",{class:"pick-i-"+t,html:h(h.dateDropperSetup.icons.arrow[t])})}).appendTo(n)}),"y"==t&&h.each(["l","r"],function(e,t){h("<div>",{class:"pick-arw pick-arw-s2 pick-arw-"+t,html:h("<div>",{class:"pick-i-"+t,html:h(h.dateDropperSetup.icons.arrow[t])})}).appendTo(n)}),X(e,t,E(e,t))},U=function(i){$(i,".pick-lg").empty().append('<ul class="pick-lg-h"></ul><ul class="pick-lg-b"></ul>');for(var e=i.startFromMonday?[1,2,3,4,5,6,0]:[0,1,2,3,4,5,6],t=0;t<7;t++)h("<li>",{html:"<div>"+h.dateDropperSetup.languages[i.lang].weekdays.short[e[t]]+"</div>"}).appendTo($(i,".pick-lg .pick-lg-h"));for(t=0;t<42;t++)h("<li>",{html:h("<div>")}).appendTo($(i,".pick-lg .pick-lg-b"));function n(e){var t=e.getMonth(),n=e.getFullYear();return[31,n%4!=0||n%100==0&&n%400!=0?28:29,31,30,31,30,31,31,30,31,30,31][t]}var o=0,r=$(i,".pick-lg-b"),a=(new Date(E(i)),new Date(E(i))),s=new Date(E(i));s.setMonth(s.getMonth()-1),a.setDate(1);var l,c,d,u=a.getDay()-1;for(u<0&&(u=6),i.startFromMonday&&--u<0&&(u=6),t=n(s)-u;t<=n(s);t++)r.find("li").eq(o).addClass("pick-b pick-n pick-h").attr("data-value",t),o++;for(t=1;t<=n(a);t++)r.find("li").eq(o).addClass("pick-n pick-v").attr("data-value",t),o++;if(r.find("li.pick-n").length<42)for(var p=42-r.find("li.pick-n").length,t=1;t<=p;t++)r.find("li").eq(o).addClass("pick-a pick-n pick-h").attr("data-value",t),o++;i.lock&&("from"===i.lock?E(i,"y")<=D(i,"y")&&(E(i,"m")==D(i,"m")?$(i,'.pick-lg .pick-lg-b li.pick-v[data-value="'+D(i,"d")+'"]').prevAll("li").addClass("pick-lk"):(E(i,"m")<D(i,"m")||E(i,"m")>D(i,"m")&&E(i,"y")<D(i,"y"))&&$(i,".pick-lg .pick-lg-b li").addClass("pick-lk")):E(i,"y")>=D(i,"y")&&(E(i,"m")==D(i,"m")?$(i,'.pick-lg .pick-lg-b li.pick-v[data-value="'+D(i,"d")+'"]').nextAll("li").addClass("pick-lk"):(E(i,"m")>D(i,"m")||E(i,"m")<D(i,"m")&&E(i,"y")>D(i,"y"))&&$(i,".pick-lg .pick-lg-b li").addClass("pick-lk"))),i.maxDate&&(l=g(i.maxDate))&&(E(i,"y")==l.y&&E(i,"m")==l.m?$(i,'.pick-lg .pick-lg-b li.pick-v[data-value="'+l.d+'"]').nextAll("li").addClass("pick-lk"):j(i.maxDate)<j(E(i))&&$(i,".pick-lg .pick-lg-b li.pick-v").addClass("pick-lk")),!i.minDate||(c=g(i.minDate))&&(E(i,"y")==c.y&&E(i,"m")==c.m?$(i,'.pick-lg .pick-lg-b li.pick-v[data-value="'+c.d+'"]').prevAll("li").addClass("pick-lk"):(d=j(i.minDate),j(E(i))<d&&$(i,".pick-lg .pick-lg-b li.pick-v").addClass("pick-lk"))),i.disabledDays&&!i.enabledDays&&h.each(i.disabledDays,function(e,t){var n;!t||(n=F(t)).m==E(i,"m")&&n.y==E(i,"y")&&$(i,'.pick-lg .pick-lg-b li.pick-v[data-value="'+n.d+'"]').addClass("pick-lk")}),i.enabledDays&&!i.disabledDays&&($(i,".pick-lg .pick-lg-b li").addClass("pick-lk"),h.each(i.enabledDays,function(e,t){var n;!t||(n=F(t)).m==E(i,"m")&&n.y==E(i,"y")&&$(i,'.pick-lg .pick-lg-b li.pick-v[data-value="'+n.d+'"]').removeClass("pick-lk")})),i.roundtrip?f(i):$(i,".pick-lg-b li.pick-v[data-value="+E(i,"d")+"]").addClass("pick-sl")},V=function(n,e){h.each(e,function(e,t){n.key[e].current=t})},Q=function(e,t){var n,i,o,r;e.element.hasClass("picker-lg")&&U(e),i=E(n=e,"m"),r=(o=E(n,"y"))%4==0&&(o%100!=0||o%400==0),n.key.d.max=[31,r?29:28,31,30,31,30,31,31,30,31,30,31][i-1],E(n,"d")>n.key.d.max&&(n.key.d.current=n.key.d.max,X(n,"d",E(n,"d"))),$(n,".pick-d li").removeClass("pick-wke").each(function(){var e=new Date(i+"/"+h(this).attr("value")+"/"+o).getDay();h(this).find("span").html(h.dateDropperSetup.languages[n.lang].weekdays.full[e]),0!=e&&6!=e||h(this).addClass("pick-wke")}),n.element.hasClass("picker-lg")&&($(n,".pick-lg-b li").removeClass("pick-wke"),$(n,".pick-lg-b li.pick-v").each(function(){var e=new Date(i+"/"+h(this).attr("data-value")+"/"+o).getDay();0!=e&&6!=e||h(this).addClass("pick-wke")})),m(e)||(function(e){clearInterval(_);var t=e.minYear||e.key.y.current-50,n=e.maxYear||e.key.y.current+50;e.key.y.max=n,e.key.y.min=t,_=setTimeout(function(){W(e,"y")},400)}(e),J(e),t&&t(e))},X=function(e,t,n){var i,o=s(e,t);o.find("li").removeClass("pick-sl pick-bfr pick-afr"),n==l(e,t,"last")&&((i=o.find('li[value="'+l(e,t,"first")+'"]')).clone().insertAfter(o.find("li[value="+n+"]")),i.remove()),n==l(e,t,"first")&&((i=o.find('li[value="'+l(e,t,"last")+'"]')).clone().insertBefore(o.find("li[value="+n+"]")),i.remove()),o.find("li[value="+n+"]").addClass("pick-sl"),o.find("li.pick-sl").nextAll("li").addClass("pick-afr"),o.find("li.pick-sl").prevAll("li").addClass("pick-bfr")},K=function(e,t,n){var i;e.showOnlyEnabledDays&&e.enabledDays?function(n,e){for(var t=j(E(n)),i=n.enabledDays,o=(i.length,null),r=0;r<i.length;r++)i[r]===t&&(o=r);"right"==e?o++:o--;var a=!!i[o]&&F(i[o]);a&&h.each(a,function(e,t){n.key[e].current=t,v(n,e,t)})}(e,n):(i=E(e,t),"right"==n?i++:i--,v(e,t,i))},Z=function(e){e.element.find(".picker").addClass("picker-rumble")},J=function(r,e){var t,n,i,o,a=!0;r.roundtrip?(a=!1,(t=z(r))&&(1<h('.picker-trigger[data-dd-roundtrip="'+r.selector.data("dd-roundtrip")+'"]').length?h.each(t,function(e,t){var n=t.selector.attr("data-datedropper-id"),i=F(t.value),o=L(r,i);r.identifier!=n&&b[n]&&(b[n].key.m.current=i.m,b[n].key.d.current=i.d,b[n].key.y.current=i.y),t.selector.is("input")&&t.selector.val(o.formatted).change()}):(n=L(r,F(t.a.value)),i=L(r,F(t.b.value)),r.selector.val(n.formatted+" - "+i.formatted)),t.a.value!=t.b.value&&r.onRoundTripChange&&r.onRoundTripChange({outward:F(t.a.value),return:F(t.b.value)}),r.onChange&&r.onChange(p(r)))):a=!!e||r.autofill,a&&(o=L(r),r.selector.is("input")&&r.selector.val(o.formatted).change(),r.changeValueTo&&G(r,o.formatted),r.onChange&&r.onChange(p(r)))},G=function(e,t){var n=h(e.changeValueTo);n.length&&n.is("input")&&n.val(t).change()};h(document).on("keydown",function(e){var t,n,i,o=e.which;y&&!r()&&(32==o?($(y,":focus").click(),e.preventDefault()):9==o&&e.shiftKey?h(e.target).is(".pick-m")&&(e.preventDefault(),h(".datedropper .pick-submit").focus()):9==o?h(e.target).is(".pick-submit")&&(e.preventDefault(),h(".datedropper .pick-m").focus()):27==o?Y(y):13==o?$(y,".pick-submit").trigger(S.i):37!=o&&39!=o||(!(t=$(y,".pick:focus")).length||37!=o&&39!=o||(37==o&&(n="left"),39==o&&(n="right"),i=t.attr("data-k"),K(y,i,n),Q(y))))}).on("focus",".pick-d",function(){var e;!y||(e=y.element.find(".pick-lg")).length&&!e.hasClass("pick-lg-focused")&&e.addClass("pick-lg-focused")}).on("blur",".pick-d",function(){var e;!y||(e=y.element.find(".pick-lg")).length&&e.hasClass("pick-lg-focused")&&e.removeClass("pick-lg-focused")}).on("click",function(e){y&&(y.selector.is(e.target)||y.element.is(e.target)||0!==y.element.has(e.target).length||(Y(y),k=null))}).on("webkitAnimationEnd mozAnimationEnd oAnimationEnd oanimationend animationend",P+" .picker-rumble",function(){h(this).removeClass("picker-rumble")}).on("transitionend webkitTransitionEnd oTransitionEnd otransitionend MSTransitionEnd",".picker-overlay",function(){h(this).remove()}).on(S.i,P+" .pick-lg li.pick-v",function(){var t,n,i;y&&($(y,".pick-lg-b li").removeClass("pick-sl"),h(this).addClass("pick-sl"),y.key.d.current=h(this).attr("data-value"),X(y,"d",h(this).attr("data-value")),y.roundtrip&&(t=z(y),n=j(E(y)),t&&("b"==(i=t.a.value==t.b.value?"b":"a")&&n<=t.a.value&&(i="a"),"a"==i?h.each(t,function(e){t[e].selector.attr("data-dd-roundtrip-"+e,n).attr("data-dd-roundtrip-selector",i)}):t[i].selector.attr("data-dd-roundtrip-"+i,n).attr("data-dd-roundtrip-selector",i),i="b"==i?"a":"b")),Q(y))}).on("mouseleave",P+" .pick-lg .pick-lg-b li",function(){y&&y.roundtrip&&f(y)}).on("mouseenter",P+" .pick-lg .pick-lg-b li",function(){y&&y.roundtrip&&f(y,h(this))}).on("click",P+" .pick-btn-sz",function(){y&&e(y)}).on(S.i,P+" .pick-arw.pick-arw-s2",function(e){var t,n,i;y&&(e.preventDefault(),k=null,h(this).closest("ul").data("k"),t=y.jump,(n=h(this).hasClass("pick-arw-r")?E(y,"y")+t:E(y,"y")-t)>(i=function(e){for(var t=[],n=y.key.y,i=n.min;i<=n.max;i++)i%e==0&&t.push(i);return t}(t))[i.length-1]&&(n=i[0]),n<i[0]&&(n=i[i.length-1]),y.key.y.current=n,X(y,"y",E(y,"y")))}).on(S.i,P,function(e){y&&$(y,"*:focus").blur()}).on(S.i,P+" .pick-arw.pick-arw-s1",function(e){var t,n;y&&(e.preventDefault(),k=null,t=h(this).closest("ul").data("k"),n=h(this).hasClass("pick-arw-r")?"right":"left",K(y,t,n))}).on(S.i,P+" ul.pick.pick-y li",function(){T=!0}).on(S.e,P+" ul.pick.pick-y li",function(){y&&(!T||y.jump>=y.key.y.max-y.key.y.min||(function(n){var e=$(n,".picker-jumped-years");e.length&&e.remove();var i=h("<div>",{class:"picker-jumped-years"}).appendTo($(n,".picker"));setTimeout(function(){i.addClass("picker-jumper-years-visible")},100);for(var t=n.key.y.min;t<=n.key.y.max;t++)t%n.jump==0&&h("<div>",{"data-id":t}).click(function(e){var t=h(this).data("id");v(n,"y",t),Q(n),i.removeClass("picker-jumper-years-visible"),setTimeout(function(){i.remove()},300)}).appendTo(i)}(y),T=!1))}).on(S.i,P+" ul.pick.pick-d li",function(){y&&(T=!0)}).on(S.e,P+" ul.pick.pick-d li",function(){y&&T&&(e(y),T=!1)}).on(S.i,P+" ul.pick",function(e){var t;y&&(k=h(this))&&(t=k.data("k"),w=r()?e.originalEvent.touches[0].pageY:e.pageY,x=E(y,t))}).on(S.m,function(e){var t,n,i;y&&(T=!1,k)&&(e.preventDefault(),t=k.data("k"),n=r()?e.originalEvent.touches[0].pageY:e.pageY,n=w-n,n=Math.round(.026*n),(i=A(y,t,x+n))!=y.key[t].current&&v(y,t,i),y.onPickerDragging&&y.onPickerDragging({key:t,value:i}))}).on(S.e,function(e){k&&(x=w=k=null,y&&(Q(y),y.onPickerRelease&&y.onPickerRelease(L(y))))}).on(S.i,P+" .pick-submit",function(){y&&(m(y)||(J(y,!0),Y(y)))}),h(window).resize(function(){y&&(H(y),a(y))}),document.addEventListener("touchmove",function(e){var t=h(e.target).closest(".picker-jumped-years").length;y&&!t?(h("html,body").css("touch-action","none"),e.preventDefault()):h("html,body").css("touch-action","unset")},{passive:!1}),h.fn.dateDropper=function(e){if(n()&&n()<10)console.error("[DATEDROPPER] This browser is not supported");else{if("object"==typeof e||!e)return C.init.apply(this,arguments);if("string"==typeof e&&C[e])return C[e].apply(this,Array.prototype.slice.call(arguments,1));console.error("[DATEDROPPER] This method not exist")}},h("head").append("<style>"+h.dateDropperSetup.inlineCSS+"</style>"),h(document).ready(function(){h.dateDropperSetup.autoInit&&h(".datedropper-init,[data-datedropper]").each(function(){h(this).dateDropper()})})}(jQuery);var Mailcheck={domainThreshold:2,secondLevelThreshold:2,topLevelThreshold:2,defaultDomains:["msn.com","bellsouth.net","telus.net","comcast.net","optusnet.com.au","earthlink.net","qq.com","sky.com","icloud.com","mac.com","sympatico.ca","googlemail.com","att.net","xtra.co.nz","web.de","cox.net","gmail.com","ymail.com","aim.com","rogers.com","verizon.net","rocketmail.com","google.com","optonline.net","sbcglobal.net","aol.com","me.com","btinternet.com","charter.net","shaw.ca"],defaultSecondLevelDomains:["yahoo","hotmail","mail","live","outlook","gmx"],defaultTopLevelDomains:["com","com.au","com.tw","ca","co.nz","co.uk","de","fr","it","ru","net","org","edu","gov","jp","nl","kr","se","eu","ie","co.il","us","at","be","dk","hk","es","gr","ch","no","cz","in","net","net.au","info","biz","mil","co.jp","sg","hu","uk","org.au","gov.au","edu.au","net.au","asn.au","id.au"],run:function(e){e.domains=e.domains||Mailcheck.defaultDomains,e.secondLevelDomains=e.secondLevelDomains||Mailcheck.defaultSecondLevelDomains,e.topLevelDomains=e.topLevelDomains||Mailcheck.defaultTopLevelDomains,e.distanceFunction=e.distanceFunction||Mailcheck.sift4Distance;function t(e){return e}var n=e.suggested||t,i=e.empty||t,o=Mailcheck.suggest(Mailcheck.encodeEmail(e.email),e.domains,e.secondLevelDomains,e.topLevelDomains,e.distanceFunction);return o?n(o):i()},suggest:function(e,t,n,i,o){e=e.toLowerCase();var r=this.splitEmail(e);if(n&&i&&-1!==n.indexOf(r.secondLevelDomain)&&-1!==i.indexOf(r.topLevelDomain))return!1;var a=this.findClosestDomain(r.domain,t,o,this.domainThreshold);if(a)return a!=r.domain&&{address:r.address,domain:a,full:r.address+"@"+a};var s=this.findClosestDomain(r.secondLevelDomain,n,o,this.secondLevelThreshold),l=this.findClosestDomain(r.topLevelDomain,i,o,this.topLevelThreshold);if(r.domain){a=r.domain;var c=!1;if(s&&s!=r.secondLevelDomain&&(a=a.replace(r.secondLevelDomain,s),c=!0),l&&l!=r.topLevelDomain&&""!==r.secondLevelDomain&&(a=a.replace(new RegExp(r.topLevelDomain+"$"),l),c=!0),c)return{address:r.address,domain:a,full:r.address+"@"+a}}return!1},findClosestDomain:function(e,t,n,i){var o;i=i||this.topLevelThreshold;var r=1/0,a=null;if(!e||!t)return!1;n=n||this.sift4Distance;for(var s=0;s<t.length;s++){if(e===t[s])return e;(o=n(e,t[s]))<r&&(r=o,a=t[s])}return r<=i&&null!==a&&a},sift4Distance:function(e,t,n){if(void 0===n&&(n=5),!e||!e.length)return t?t.length:0;if(!t||!t.length)return e.length;for(var i=e.length,o=t.length,r=0,a=0,s=0,l=0,c=0,d=[];r<i&&a<o;){if(e.charAt(r)==t.charAt(a)){l++;for(var u=!1,p=0;p<d.length;){var h=d[p];if(r<=h.c1||a<=h.c2){(u=Math.abs(a-r)>=Math.abs(h.c2-h.c1))?c++:h.trans||(h.trans=!0,c++);break}r>h.c2&&a>h.c1?d.splice(p,1):p++}d.push({c1:r,c2:a,trans:u})}else{s+=l,l=0,r!=a&&(r=a=Math.min(r,a));for(var f=0;f<n&&(r+f<i||a+f<o);f++){if(r+f<i&&e.charAt(r+f)==t.charAt(a)){r+=f-1,a--;break}if(a+f<o&&e.charAt(r)==t.charAt(a+f)){r--,a+=f-1;break}}}a++,(i<=++r||o<=a)&&(s+=l,l=0,r=a=Math.min(r,a))}return s+=l,Math.round(Math.max(i,o)-s+c)},splitEmail:function(e){var t=(e=null!==e?e.replace(/^\s*/,"").replace(/\s*$/,""):null).split("@");if(t.length<2)return!1;for(var n=0;n<t.length;n++)if(""===t[n])return!1;var i=t.pop(),o=i.split("."),r="",a="";if(0===o.length)return!1;if(1==o.length)a=o[0];else{r=o[0];for(var s=1;s<o.length;s++)a+=o[s]+".";a=a.substring(0,a.length-1)}return{topLevelDomain:a,secondLevelDomain:r,domain:i,address:t.join("@")}},encodeEmail:function(e){return encodeURI(e).replace("%20"," ").replace("%25","%").replace("%5E","^").replace("%60","`").replace("%7B","{").replace("%7C","|").replace("%7D","}")}};"undefined"!=typeof module&&module.exports&&(module.exports=Mailcheck),"function"==typeof define&&define.amd&&define("mailcheck",[],function(){return Mailcheck}),"undefined"!=typeof window&&window.jQuery&&(jQuery.fn.mailcheck=function(e){var t,n,i=this;e.suggested&&(t=e.suggested,e.suggested=function(e){t(i,e)}),e.empty&&(n=e.empty,e.empty=function(){n.call(null,i)}),e.email=this.val(),Mailcheck.run(e)}),function(I){I.fn.columnize=function(A){var r={width:400,columns:!1,buildOnce:!1,overflow:!1,doneFunc:function(){},target:!1,ignoreImageLoading:!0,columnFloat:"left",lastNeverTallest:!1,accuracy:!1,manualBreaks:!1,cssClassPrefix:""};return"string"==typeof(A=I.extend(r,A)).width&&(A.width=parseInt(A.width,10),isNaN(A.width)&&(A.width=r.width)),this.each(function(){var w=A.target?I(A.target):I(this),_=I(this).height(),x=I("<div></div>"),C=0,T=A.manualBreaks,i=r.cssClassPrefix;"string"==typeof A.cssClassPrefix&&(i=A.cssClassPrefix);var e,t;if(x.append(I(this).contents().clone(!0)),!A.ignoreImageLoading&&!A.target&&!w.data("imageLoaded")&&(w.data("imageLoaded",!0),0<I(this).find("img").length)){var n=(e=I(this),t=x,function(){e.data("firstImageLoaded")||(e.data("firstImageLoaded","true"),e.empty().append(t.children().clone(!0)),e.columnize(A))});return I(this).find("img").one("load",n),void I(this).find("img").one("abort",n)}function S(e,t){var n=t?".":"";return i.length?n+i+"-"+e:n+e}function M(e,t,n,i){for(;(T||n.height()<i)&&t[0].childNodes.length;){var o=t[0].childNodes[0];if(I(o).find(S("columnbreak",!0)).length)return;if(I(o).hasClass(S("columnbreak")))return;e.append(o)}if(0!==e[0].childNodes.length){var r=e[0].childNodes,a=r[r.length-1];e[0].removeChild(a);var s=I(a);if(3==s[0].nodeType){var l=s[0].nodeValue,c=A.width/18;A.accuracy&&(c=A.accuracy);for(var d=null;n.height()<i&&l.length;){var u=l.indexOf(" ",c),p=-1!=u?l.substring(0,l.indexOf(" ",c)):l,d=document.createTextNode(p);e.append(d),l=l.length>c&&-1!=u?l.substring(u):""}if(n.height()>=i&&null!==d&&(e[0].removeChild(d),l=d.nodeValue+l),!l.length)return;s[0].nodeValue=l}return t.contents().length?t.prepend(s):t.append(s),3==s[0].nodeType}}function E(e,t,n,i){if(!e.contents(":last").find(S("columnbreak",!0)).length&&!e.contents(":last").hasClass(S("columnbreak"))&&t.contents().length){var o=t.contents(":first");if(1!=o.get(0).nodeType)return;var r=o.clone(!0);o.hasClass(S("columnbreak"))||T?(e.append(r),o.remove()):1!=r.get(0).nodeType||r.hasClass(S("dontend"))||(e.append(r),r.is("img")&&n.height()<i+20||!o.hasClass(S("dontsplit"))&&n.height()<i+20?o.remove():r.is("img")||o.hasClass(S("dontsplit"))?r.remove():(r.empty(),M(r,o,n,i)?o.addClass(S("split")):(o.addClass(S("split")),o.children().length&&E(r,o,n,i)),0===r.get(0).childNodes.length&&r.remove()))}}function D(e){return 3==e.nodeType?!!/^\s+$/.test(e.nodeValue)&&(!!e.previousSibling&&D(e.previousSibling)):1==e.nodeType&&(!!I(e).hasClass(S("dontend"))||0!==e.childNodes.length&&D(e.childNodes[e.childNodes.length-1]))}function o(){if(C!=w.width()){C=w.width();var e=Math.round(w.width()/A.width),t=A.width,n=A.height;if(A.columns&&(e=A.columns),T&&(e=x.find(S("columnbreak",!0)).length+1,t=!1),e<=1)return function(){if(!w.data("columnized")||1!=w.children().length){if(w.data("columnized",!0),w.data("columnizing",!0),w.empty(),w.append(I("<div class='"+S("first")+" "+S("last")+" "+S("column")+" ' style='width:100%; float: "+A.columnFloat+";'></div>")),$col=w.children().eq(w.children().length-1),$destroyable=x.clone(!0),A.overflow){for(targetHeight=A.overflow.height,M($col,$destroyable,$col,targetHeight),$destroyable.contents().find(":first-child").hasClass(S("dontend"))||E($col,$destroyable,$col,targetHeight);$col.contents(":last").length&&D($col.contents(":last").get(0));){var e=$col.contents(":last");e.remove(),$destroyable.prepend(e)}for(var t="",n=document.createElement("DIV");0<$destroyable[0].childNodes.length;){var i=$destroyable[0].childNodes[0];if(i.attributes)for(var o=0;o<i.attributes.length;o++)0===i.attributes[o].nodeName.indexOf("jQuery")&&i.removeAttribute(i.attributes[o].nodeName);n.innerHTML="",n.appendChild($destroyable[0].childNodes[0]),t+=n.innerHTML}I(A.overflow.id)[0].innerHTML=t}else $col.append($destroyable);w.data("columnizing",!1),A.overflow&&A.overflow.doneFunc&&A.overflow.doneFunc()}}();if(!w.data("columnizing")){w.data("columnized",!0),w.data("columnizing",!0),w.empty(),w.append(I("<div style='width:"+Math.floor(100/e)+"%; float: "+A.columnFloat+";'></div>")),(l=w.children(":last")).append(x.clone()),_=l.height(),w.empty();var i=_/e,o=3,r=!1;A.overflow?(o=1,i=A.overflow.height):n&&t&&(o=1,i=n,r=!0);for(var a,s,l,c,d=0;d<o&&d<20;d++){w.empty();try{a=x.clone(!0)}catch(e){a=x.clone()}a.css("visibility","hidden");for(var u,p,h,f,g,m,v=0;v<e;v++)s=0===v?S("first"):"",s+=" "+S("column"),s=v==e-1?S("last")+" "+s:s,w.append(I("<div class='"+s+"' style='width:"+Math.floor(100/e)+"%; float: "+A.columnFloat+";'></div>"));for(v=0;v<e-(A.overflow?0:1)||r&&a.contents().length;){for(w.children().length<=v&&w.append(I("<div class='"+s+"' style='width:"+Math.floor(100/e)+"%; float: "+A.columnFloat+";'></div>")),l=w.children().eq(v),r&&l.width(t+"px"),M(l,a,l,i),E(l,a,l,i);l.contents(":last").length&&D(l.contents(":last").get(0));)(c=l.contents(":last")).remove(),a.prepend(c);v++,0===l.contents().length&&a.contents().length?l.append(a.contents(":first")):v!=e-(A.overflow?0:1)||A.overflow||a.find(S("columnbreak",!0)).length&&e++}if(A.overflow&&!r){if(document.all&&-1!=navigator.appVersion.indexOf("MSIE 7.")){for(var b="",y=document.createElement("DIV");0<a[0].childNodes.length;){for(var k=a[0].childNodes[0],v=0;v<k.attributes.length;v++)0===k.attributes[v].nodeName.indexOf("jQuery")&&k.removeAttribute(k.attributes[v].nodeName);y.innerHTML="",y.appendChild(a[0].childNodes[0]),b+=y.innerHTML}I(A.overflow.id)[0].innerHTML=b}else I(A.overflow.id).empty().append(a.contents().clone(!0))}else{r?(w.children().each(function(e){(l=w.children().eq(e)).width(t+"px"),0===e?l.addClass(S("first")):e==w.children().length-1?l.addClass(S("last")):(l.removeClass(S("first")),l.removeClass(S("last")))}),w.width(w.children().length*t+"px")):(l=w.children().eq(w.children().length-1),a.contents().each(function(){l.append(I(this))}),l.height(),f=!(p=1e7),g=h=u=0,w.children().each(function(i){return function(e){var t,n=i.children().eq(e);n.children(":last").find(S("columnbreak",!0)).length||(t=n.height(),f=!1,u+=t,h<t&&(h=t,f=!0),t<p&&(p=t),g++)}}(w)),m=u/g,0===u?d=o:A.lastNeverTallest&&f?(i+=30,d==o-1&&o++):30<h-p?i=30+m:20<Math.abs(m-i)?i=m:d=o)}w.append(I("<br style='clear:both;'>"))}w.find(S("column",!0)).find(":first"+S("removeiffirst",!0)).remove(),w.find(S("column",!0)).find(":last"+S("removeiflast",!0)).remove(),w.data("columnizing",!1),A.overflow&&A.overflow.doneFunc(),A.doneFunc()}}}w.empty(),o(),A.buildOnce||I(window).resize(function(){A.buildOnce||(w.data("timeout")&&clearTimeout(w.data("timeout")),w.data("timeout",setTimeout(o,200)))})})}}(jQuery),function(h){function e(){this.regional=[],this.regional[""]={labels:["Years","Months","Weeks","Days","Hours","Minutes","Seconds"],labels1:["Year","Month","Week","Day","Hour","Minute","Second"],compactLabels:["y","m","w","d"],timeSeparator:":",isRTL:!1},this._defaults={until:null,since:null,timezone:null,format:"dHMS",layout:"",compact:!1,description:"",expiryUrl:"",expiryText:"",alwaysExpire:!1,onExpiry:null,onTick:null},h.extend(this._defaults,this.regional[""])}var l="countdown";function a(e,t){for(var n in h.extend(e,t),t)null==t[n]&&(e[n]=null);return e}h.extend(e.prototype,{markerClassName:"hasCountdown",_timer:setInterval(function(){h.countdown._updateTargets()},980),_timerTargets:[],setDefaults:function(e){this._resetExtraLabels(this._defaults,e),a(this._defaults,e||{})},UTCDate:function(e,t,n,i,o,r,a,s){"object"==typeof t&&t.constructor==Date&&(s=t.getMilliseconds(),a=t.getSeconds(),r=t.getMinutes(),o=t.getHours(),i=t.getDate(),n=t.getMonth(),t=t.getFullYear());var l=new Date;return l.setUTCFullYear(t),l.setUTCDate(1),l.setUTCMonth(n||0),l.setUTCDate(i||1),l.setUTCHours(o||0),l.setUTCMinutes((r||0)-(Math.abs(e)<30?60*e:e)),l.setUTCSeconds(a||0),l.setUTCMilliseconds(s||0),l},_attachCountdown:function(e,t){var n,i=h(e);i.hasClass(this.markerClassName)||(i.addClass(this.markerClassName),n={options:h.extend({},t),_periods:[0,0,0,0,0,0,0]},h.data(e,l,n),this._changeCountdown(e))},_addTarget:function(e){this._hasTarget(e)||this._timerTargets.push(e)},_hasTarget:function(e){return-1<h.inArray(e,this._timerTargets)},_removeTarget:function(t){this._timerTargets=h.map(this._timerTargets,function(e){return e==t?null:e})},_updateTargets:function(){for(var e=0;e<this._timerTargets.length;e++)this._updateCountdown(this._timerTargets[e])},_updateCountdown:function(e,t){var n,i,o,r,a,s=h(e);(t=t||h.data(e,l))&&(s.html(this._generateHTML(t)),s[(this._get(t,"isRTL")?"add":"remove")+"Class"]("countdown_rtl"),(n=this._get(t,"onTick"))&&n.apply(e,["lap"!=t._hold?t._periods:this._calculatePeriods(t,t._show,new Date)]),"pause"!=t._hold&&(t._since?t._now.getTime()<=t._since.getTime():t._now.getTime()>=t._until.getTime())&&!t._expiring?(t._expiring=!0,(this._hasTarget(e)||this._get(t,"alwaysExpire"))&&(this._removeTarget(e),(i=this._get(t,"onExpiry"))&&i.apply(e,[]),(o=this._get(t,"expiryText"))&&(r=this._get(t,"layout"),t.options.layout=o,this._updateCountdown(e,t),t.options.layout=r),(a=this._get(t,"expiryUrl"))&&(window.location=a)),t._expiring=!1):"pause"==t._hold&&this._removeTarget(e),h.data(e,l,t))},_changeCountdown:function(e,t,n){var i;"string"==typeof(t=t||{})&&(i=t,(t={})[i]=n);var o,r=h.data(e,l);r&&(this._resetExtraLabels(r.options,t),a(r.options,t),this._adjustSettings(r),h.data(e,l,r),o=new Date,(r._since&&r._since<o||r._until&&r._until>o)&&this._addTarget(e),this._updateCountdown(e,r))},_resetExtraLabels:function(e,t){var n=!1;for(var i in t)if(i.match(/[Ll]abels/)){n=!0;break}if(n)for(var i in e)i.match(/[Ll]abels[0-9]/)&&(e[i]=null)},_destroyCountdown:function(e){var t=h(e);t.hasClass(this.markerClassName)&&(this._removeTarget(e),t.removeClass(this.markerClassName).empty(),h.removeData(e,l))},_pauseCountdown:function(e){this._hold(e,"pause")},_lapCountdown:function(e){this._hold(e,"lap")},_resumeCountdown:function(e){this._hold(e,null)},_hold:function(e,t){var n,i=h.data(e,l);i&&("pause"!=i._hold||t||(i._periods=i._savePeriods,n=i._since?"-":"+",i[i._since?"_since":"_until"]=this._determineTime(n+i._periods[0]+"y"+n+i._periods[1]+"o"+n+i._periods[2]+"w"+n+i._periods[3]+"d"+n+i._periods[4]+"h"+n+i._periods[5]+"m"+n+i._periods[6]+"s"),this._addTarget(e)),i._hold=t,i._savePeriods="pause"==t?i._periods:null,h.data(e,l,i),this._updateCountdown(e,i))},_getTimesCountdown:function(e){var t=h.data(e,l);return t?t._hold?this._calculatePeriods(t,t._show,new Date):t._periods:null},_get:function(e,t){return null!=e.options[t]?e.options[t]:h.countdown._defaults[t]},_adjustSettings:function(e){var t=new Date,n=null==(n=this._get(e,"timezone"))?-(new Date).getTimezoneOffset():n;e._since=this._get(e,"since"),e._since&&(e._since=this.UTCDate(n,this._determineTime(e._since,null))),e._until=this.UTCDate(n,this._determineTime(this._get(e,"until"),t)),e._show=this._determineShow(e)},_determineTime:function(e,t){var n,i,o=null==e?t:"string"==typeof e?function(e){e=e.toLowerCase();for(var t=new Date,n=t.getFullYear(),i=t.getMonth(),o=t.getDate(),r=t.getHours(),a=t.getMinutes(),s=t.getSeconds(),l=/([+-]?[0-9]+)\s*(s|m|h|d|w|o|y)?/g,c=l.exec(e);c;){switch(c[2]||"s"){case"s":s+=parseInt(c[1],10);break;case"m":a+=parseInt(c[1],10);break;case"h":r+=parseInt(c[1],10);break;case"d":o+=parseInt(c[1],10);break;case"w":o+=7*parseInt(c[1],10);break;case"o":i+=parseInt(c[1],10),o=Math.min(o,h.countdown._getDaysInMonth(n,i));break;case"y":n+=parseInt(c[1],10),o=Math.min(o,h.countdown._getDaysInMonth(n,i))}c=l.exec(e)}return new Date(n,i,o,r,a,s,0)}(e):"number"==typeof e?(n=e,(i=new Date).setTime(i.getTime()+1e3*n),i):e;return o&&o.setMilliseconds(0),o},_getDaysInMonth:function(e,t){return 32-new Date(e,t,32).getDate()},_generateHTML:function(n){n._periods=periods=n._hold?n._periods:this._calculatePeriods(n,n._show,new Date);for(var e=!1,t=0,i=0;i<n._show.length;i++)e|="?"==n._show[i]&&0<periods[i],n._show[i]="?"!=n._show[i]||e?n._show[i]:null,t+=n._show[i]?1:0;function o(e){var t=h.countdown._get(n,"compactLabels"+periods[e]);return n._show[e]?periods[e]+(t?t[e]:l[e])+" ":""}function r(e){var t=h.countdown._get(n,"labels"+periods[e]);return n._show[e]?'<span class="countdown_section"><span class="countdown_amount">'+periods[e]+"</span><br/>"+(t?t[e]:l[e])+"</span>":""}var a=this._get(n,"compact"),s=this._get(n,"layout"),l=a?this._get(n,"compactLabels"):this._get(n,"labels"),c=this._get(n,"timeSeparator"),d=this._get(n,"description")||"";return s?this._buildLayout(n,s,a):(a?'<span class="countdown_row countdown_amount'+(n._hold?" countdown_holding":"")+'">'+o(0)+o(1)+o(2)+o(3)+(n._show[4]?this._twoDigits(periods[4]):"")+(n._show[5]?(n._show[4]?c:"")+this._twoDigits(periods[5]):"")+(n._show[6]?(n._show[4]||n._show[5]?c:"")+this._twoDigits(periods[6]):""):'<span class="countdown_row countdown_show'+t+(n._hold?" countdown_holding":"")+'">'+r(0)+r(1)+r(2)+r(3)+r(4)+r(5)+r(6))+"</span>"+(d?'<span class="countdown_row countdown_descr">'+d+"</span>":"")},_buildLayout:function(t,e,n){function i(e){return(h.countdown._get(t,(n?"compactLabels":"labels")+t._periods[e])||o)[e]}for(var o=n?this._get(t,"compactLabels"):this._get(t,"labels"),r={yl:i(0),yn:t._periods[0],ynn:this._twoDigits(t._periods[0]),ol:i(1),on:t._periods[1],onn:this._twoDigits(t._periods[1]),wl:i(2),wn:t._periods[2],wnn:this._twoDigits(t._periods[2]),dl:i(3),dn:t._periods[3],dnn:this._twoDigits(t._periods[3]),hl:i(4),hn:t._periods[4],hnn:this._twoDigits(t._periods[4]),ml:i(5),mn:t._periods[5],mnn:this._twoDigits(t._periods[5]),sl:i(6),sn:t._periods[6],snn:this._twoDigits(t._periods[6])},a=e,s=0;s<7;s++)var l="yowdhms".charAt(s),c=new RegExp("\\{"+l+"<\\}(.*)\\{"+l+">\\}","g"),a=a.replace(c,t._show[s]?"$1":"");return h.each(r,function(e,t){var n=new RegExp("\\{"+e+"\\}","g");a=a.replace(n,t)}),a},_twoDigits:function(e){return(e<10?"0":"")+e},_determineShow:function(e){var t=this._get(e,"format"),n=[];return n[0]=t.match("y")?"?":t.match("Y")?"!":null,n[1]=t.match("o")?"?":t.match("O")?"!":null,n[2]=t.match("w")?"?":t.match("W")?"!":null,n[3]=t.match("d")?"?":t.match("D")?"!":null,n[4]=t.match("h")?"?":t.match("H")?"!":null,n[5]=t.match("m")?"?":t.match("M")?"!":null,n[6]=t.match("s")?"?":t.match("S")?"!":null,n},_calculatePeriods:function(e,n,t){e._now=t,e._now.setMilliseconds(0);var i=new Date(e._now.getTime());e._since&&t.getTime()<e._since.getTime()?e._now=t=i:e._since?t=e._since:(i.setTime(e._until.getTime()),t.getTime()>e._until.getTime()&&(e._now=t=i));var o,r,a,s,l,c,d=[0,0,0,0,0,0,0];(n[0]||n[1])&&(o=h.countdown._getDaysInMonth(t.getFullYear(),t.getMonth()),r=h.countdown._getDaysInMonth(i.getFullYear(),i.getMonth()),a=i.getDate()==t.getDate()||i.getDate()>=Math.min(o,r)&&t.getDate()>=Math.min(o,r),s=function(e){return 60*(60*e.getHours()+e.getMinutes())+e.getSeconds()},l=Math.max(0,12*(i.getFullYear()-t.getFullYear())+i.getMonth()-t.getMonth()+(i.getDate()<t.getDate()&&!a||a&&s(i)<s(t)?-1:0)),d[0]=n[0]?Math.floor(l/12):0,d[1]=n[1]?l-12*d[0]:0,c=function(e,t,n){var i=e.getDate()==n,o=h.countdown._getDaysInMonth(e.getFullYear()+t*d[0],e.getMonth()+t*d[1]);return e.getDate()>o&&e.setDate(o),e.setFullYear(e.getFullYear()+t*d[0]),e.setMonth(e.getMonth()+t*d[1]),i&&e.setDate(o),e},e._since?i=c(i,-1,r):t=c(new Date(t.getTime()),1,o));function u(e,t){d[e]=n[e]?Math.floor(p/t):0,p-=d[e]*t}var p=Math.floor((i.getTime()-t.getTime())/1e3);return u(2,604800),u(3,86400),u(4,3600),u(5,60),u(6,1),d}}),h.fn.countdown=function(e){var t=Array.prototype.slice.call(arguments,1);return"getTimes"==e?h.countdown["_"+e+"Countdown"].apply(h.countdown,[this[0]].concat(t)):this.each(function(){"string"==typeof e?h.countdown["_"+e+"Countdown"].apply(h.countdown,[this].concat(t)):h.countdown._attachCountdown(this,e)})},h.countdown=new e}(jQuery),function(n){"use strict";NB.Liquid.MoneyBomb=function(){this.init()},NB.Liquid.MoneyBomb.prototype={init:function(){this.bindEvents()},bindEvents:function(){var e=n("#pledge_amount_other"),t=n(".pledge_amount_option");t.on("change",function(){e.val("")}),e.on("change",function(){t.attr("checked",!1)})},setCountdown:function(e){e.$el.length&&e.$el.countdown({until:e.until,format:"DHMS",layout:'<div id="t7_timer"><div id="t7_vals"><div class="p-3 timer_block text-center d-inline-block"><h2 id="t7_d" class="t7_numbs">{dnn}</h2><div id="t7_dl" class="t7_labs">DAYS</div></div><div class="p-3 timer_block text-center d-inline-block"><h2 id="t7_h" class="t7_numbs">{hnn}</h2><div id="t7_hl" class="t7_labs">HOURS</div></div><div class="p-3 timer_block text-center d-inline-block"><h2 id="t7_m" class="t7_numbs">{mnn}</h2><div id="t7_ml" class="t7_labs">MINS</div></div><div class="p-3 timer_block text-center d-inline-block"><h2 id="t7_s" class="t7_numbs">{snn}</h2><div id="t7_sl" class="t7_labs">SECS</div></div></div><div id="t7_timer_over"></div></div>'})}}}(jQuery,document),function(e){"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?module.exports=e():e()}(function(){var k="",w=20,_=!0,x=[],C=!1,T=!0,S=!0,M=null,E=!0,D=!0,A=null,I=!0,$=!1,P=!1,L=!0,O=!0,N=!1,n=null;function j(e){return e.replace(/<b[^>]*>(.*?)<\/b>/gi,function(e,t){return t}).replace(/class="(?!(tco-hidden|tco-display|tco-ellipsis))+.*?"|data-query-source=".*?"|dir=".*?"|rel=".*?"/gi,"")}function F(e){for(var t=e.getElementsByTagName("a"),n=t.length-1;0<=n;n--)t[n].setAttribute("target","_blank")}function z(e,t){for(var n=[],i=new RegExp("(^| )"+t+"( |$)"),o=e.getElementsByTagName("*"),r=0,a=o.length;r<a;r++)i.test(o[r].className)&&n.push(o[r]);return n}function H(e){if(void 0!==e&&0<=e.innerHTML.indexOf("data-srcset")){var t=e.innerHTML.match(/data-srcset="([A-z0-9%_\.-]+)/i)[0];return decodeURIComponent(t).split('"')[1]}}var R={fetch:function(e){var t;void 0===e.maxTweets&&(e.maxTweets=20),void 0===e.enableLinks&&(e.enableLinks=!0),void 0===e.showUser&&(e.showUser=!0),void 0===e.showTime&&(e.showTime=!0),void 0===e.dateFunction&&(e.dateFunction="default"),void 0===e.showRetweet&&(e.showRetweet=!0),void 0===e.customCallback&&(e.customCallback=null),void 0===e.showInteraction&&(e.showInteraction=!0),void 0===e.showImages&&(e.showImages=!1),void 0===e.useEmoji&&(e.useEmoji=!1),void 0===e.linksInNewWindow&&(e.linksInNewWindow=!0),void 0===e.showPermalinks&&(e.showPermalinks=!0),void 0===e.dataOnly&&(e.dataOnly=!1),C?x.push(e):(C=!0,k=e.domId,w=e.maxTweets,_=e.enableLinks,S=e.showUser,T=e.showTime,D=e.showRetweet,M=e.dateFunction,A=e.customCallback,I=e.showInteraction,$=e.showImages,P=e.useEmoji,L=e.linksInNewWindow,O=e.showPermalinks,N=e.dataOnly,t=document.getElementsByTagName("head")[0],null!==n&&t.removeChild(n),(n=document.createElement("script")).type="text/javascript",void 0!==e.list?n.src="https://syndication.twitter.com/timeline/list?callback=__twttrf.callback&dnt=false&list_slug="+e.list.listSlug+"&screen_name="+e.list.screenName+"&suppress_response_codes=true&lang="+(e.lang||"en")+"&rnd="+Math.random():void 0!==e.profile?n.src="https://syndication.twitter.com/timeline/profile?callback=__twttrf.callback&dnt=false&screen_name="+e.profile.screenName+"&suppress_response_codes=true&lang="+(e.lang||"en")+"&rnd="+Math.random():void 0!==e.likes?n.src="https://syndication.twitter.com/timeline/likes?callback=__twttrf.callback&dnt=false&screen_name="+e.likes.screenName+"&suppress_response_codes=true&lang="+(e.lang||"en")+"&rnd="+Math.random():n.src="https://cdn.syndication.twimg.com/widgets/timelines/"+e.id+"?&lang="+(e.lang||"en")+"&callback=__twttrf.callback&suppress_response_codes=true&rnd="+Math.random(),t.appendChild(n))},callback:function(e){if(void 0===e||void 0===e.body)return C=!1,void(0<x.length&&(R.fetch(x[0]),x.splice(0,1)));P||(e.body=e.body.replace(/(<img[^c]*class="Emoji[^>]*>)|(<img[^c]*class="u-block[^>]*>)/g,"")),$||(e.body=e.body.replace(/(<img[^c]*class="NaturalImage-image[^>]*>|(<img[^c]*class="CroppedImage-image[^>]*>))/g,"")),S||(e.body=e.body.replace(/(<img[^c]*class="Avatar"[^>]*>)/g,""));var t=document.createElement("div");function n(e){var t=e.getElementsByTagName("img")[0];return t.src=t.getAttribute("data-src-2x"),e}t.innerHTML=e.body,void 0===t.getElementsByClassName&&(E=!1);var i=[],o=[],r=[],a=[],s=[],l=[],c=[],d=0;if(E)for(var u=t.getElementsByClassName("timeline-Tweet");d<u.length;)0<u[d].getElementsByClassName("timeline-Tweet-retweetCredit").length?s.push(!0):s.push(!1),(!s[d]||s[d]&&D)&&(i.push(u[d].getElementsByClassName("timeline-Tweet-text")[0]),l.push(u[d].getAttribute("data-tweet-id")),S&&o.push(n(u[d].getElementsByClassName("timeline-Tweet-author")[0])),r.push(u[d].getElementsByClassName("dt-updated")[0]),c.push(u[d].getElementsByClassName("timeline-Tweet-timestamp")[0]),void 0!==u[d].getElementsByClassName("timeline-Tweet-media")[0]?a.push(u[d].getElementsByClassName("timeline-Tweet-media")[0]):a.push(void 0)),d++;else for(u=z(t,"timeline-Tweet");d<u.length;)0<z(u[d],"timeline-Tweet-retweetCredit").length?s.push(!0):s.push(!1),(!s[d]||s[d]&&D)&&(i.push(z(u[d],"timeline-Tweet-text")[0]),l.push(u[d].getAttribute("data-tweet-id")),S&&o.push(n(z(u[d],"timeline-Tweet-author")[0])),r.push(z(u[d],"dt-updated")[0]),c.push(z(u[d],"timeline-Tweet-timestamp")[0]),void 0!==z(u[d],"timeline-Tweet-media")[0]?a.push(z(u[d],"timeline-Tweet-media")[0]):a.push(void 0)),d++;i.length>w&&(i.splice(w,i.length-w),o.splice(w,o.length-w),r.splice(w,r.length-w),s.splice(w,s.length-w),a.splice(w,a.length-w),c.splice(w,c.length-w));var p,h,f,g,m,v=[],d=i.length,b=0;if(N)for(;b<d;)v.push({tweet:i[b].innerHTML,author:o[b]?o[b].innerHTML:"Unknown Author",author_data:{profile_url:o[b]?o[b].querySelector('[data-scribe="element:user_link"]').href:null,profile_image:o[b]?o[b].querySelector('[data-scribe="element:avatar"]').getAttribute("data-src-1x"):null,profile_image_2x:o[b]?o[b].querySelector('[data-scribe="element:avatar"]').getAttribute("data-src-2x"):null,screen_name:o[b]?o[b].querySelector('[data-scribe="element:screen_name"]').title:null,name:o[b]?o[b].querySelector('[data-scribe="element:name"]').title:null},time:r[b].textContent,timestamp:r[b].getAttribute("datetime").replace("+0000","Z").replace(/([\+\-])(\d\d)(\d\d)/,"$1$2:$3"),image:H(a[b]),rt:s[b],tid:l[b],permalinkURL:void 0===c[b]?"":c[b].href}),b++;else for(;b<d;){"string"!=typeof M&&(p=r[b].getAttribute("datetime"),h=new Date(r[b].getAttribute("datetime").replace(/-/g,"/").replace("T"," ").split("+")[0]),f=M(h,p),r[b].setAttribute("aria-label",f),!i[b].textContent||E?r[b].textContent=f:(g=document.createElement("p"),m=document.createTextNode(f),g.appendChild(m),g.setAttribute("aria-label",f),r[b]=g));var y="";_?(L&&(F(i[b]),S&&F(o[b])),S&&(y+='<div class="user">'+j(o[b].innerHTML)+"</div>"),y+='<p class="tweet">'+j(i[b].innerHTML)+"</p>",T&&(y+=O?'<p class="timePosted"><a href="'+c[b]+'">'+r[b].getAttribute("aria-label")+"</a></p>":'<p class="timePosted">'+r[b].getAttribute("aria-label")+"</p>")):(i[b].textContent,S&&(y+='<p class="user">'+o[b].textContent+"</p>"),y+='<p class="tweet">'+i[b].textContent+"</p>",T&&(y+='<p class="timePosted">'+r[b].textContent+"</p>")),I&&(y+='<p class="interact"><a href="https://twitter.com/intent/tweet?in_reply_to='+l[b]+'" class="twitter_reply_icon"'+(L?' target="_blank">':">")+'Reply</a><a href="https://twitter.com/intent/retweet?tweet_id='+l[b]+'" class="twitter_retweet_icon"'+(L?' target="_blank">':">")+'Retweet</a><a href="https://twitter.com/intent/favorite?tweet_id='+l[b]+'" class="twitter_fav_icon"'+(L?' target="_blank">':">")+"Favorite</a></p>"),$&&void 0!==a[b]&&void 0!==H(a[b])&&(y+='<div class="media"><img src="'+H(a[b])+'" alt="Image from tweet" /></div>'),($||!$&&i[b].textContent.length)&&v.push(y),b++}!function(e){if(null===A){for(var t=e.length,n=0,i=document.getElementById(k),o="<ul>";n<t;)o+="<li>"+e[n]+"</li>",n++;o+="</ul>",i.innerHTML=o}else A(e)}(v),C=!1,0<x.length&&(R.fetch(x[0]),x.splice(0,1))}};return window.__twttrf=R,window.twitterFetcher=R}),$(function(){$("body").removeClass("slow-reveal"),$('a.smoothscroll[href^="#"]:not([href="#"])').click(function(e){e.preventDefault();var t=$(this.hash).offset()?$(this.hash).offset().top:0;$("html, body").animate({scrollTop:+t},500)}),$('[data-fancybox^="image-gallery"]').fancybox({thumbs:{autoStart:!0}}),ScrollReveal().reveal(".fade-scroll",{interval:100});var e=$('input[id$="email"]');e.on("blur",function(){$(this).parent().before('<div class="hint"></div>');var n=$(".hint");n.css("display","none"),$(this).mailcheck({suggested:function(e,t){n.html()?($(".address").html(t.address),$(".domain").html(t.domain)):(t="<div style='margin:auto;padding: 3px 10px;background-color:#fcf8e3;color:#333;text-align:center;font-size:70%;border-radius:10px;'>Did you mean <span class='suggestion'><a href='#' class='domain'><span class='address'>"+t.address+"</span>@"+t.domain+"</a></span>?</div>",n.html(t).slideDown(150))}}),n.on("click",".domain",function(){return e.val($(".suggestion").text()),n.slideUp(200,function(){$(this).remove()}),!1})}),$(".radio-inline label.radio").on("click",function(){$("label.radio").removeClass("current"),$(this).addClass("current")}),$(document).ready(function(){$(".column_div.hide").find("h1, h2, h3, h4, h5, h6").addClass("dontend"),$(".column_div.hide").find("p, blockquote, ul, ol").addClass("dontsplit")});function t(){767<$(window).outerWidth()?$(".column_div.hide").columnize({columns:2,target:".visible_column_div",buildOnce:!0,ignoreImageLoading:!1}):$(".column_div.hide").columnize({columns:1,target:".visible_column_div",buildOnce:!0,ignoreImageLoading:!1})}$(document).ready(t),$(window).resize(t),$(document).ready(function(){var e,t=/#\$?(\d+(?:\.\d{1,2})?)+/.exec(location.hash);null!==t&&(e=parseFloat(t[1]),NaN!==(e=Math.round(100*e)/100)&&($('input[name="donation[amount]"]').val(e.toFixed(2)).trigger("focusout"),$("span.progress-stage-1").click()))}),new URL(window.location.href).searchParams.forEach(function(e,t){var n=document.getElementById("donation_"+t);if(n=n||document.getElementById("donation_billing_address_"+t))return n.value=e}),$(".dropdown").on("mouseenter show.bs.dropdown",function(){$(this).find(".dropdown-menu").first().stop(!0,!0).slideDown(250)}),$(".dropdown").on("mouseleave hide.bs.dropdown",function(){$(this).find(".dropdown-menu").first().stop(!0,!0).delay(200).slideUp(250)}),$('[data-toggle="dropdown"]').on("click",function(e){!("ontouchstart"in document.documentElement)&&991<window.innerWidth&&window.location.replace($(this).prop("href"))}),$("#content img").each(function(){var e=$(this).attr("title");void 0!==e&&($(this).wrap("<div class='d-table'></div>"),$("<div class='img-caption border-bottom py-2 small font-weight-bold text-primary'>"+e+"</div>").css({display:"table-caption","caption-side":"bottom"}).insertAfter(this))}),$('input[id$="first_name"],input[id$="last_name"],input[id$="city"]').on("change",function(){var e=$(this).val(),t=e.charAt(0).toUpperCase()+e.slice(1);$(this).val(t)}),$(".btn-read-more").click(function(){$(".petition-content-gradient").hide(),$("#petition-content").css("height","auto"),$(".petition-content-wrap").css("margin-bottom","0"),$(this).hide()}),$("[data-admin-edit-url][data-admin-edit-url!='']").each(function(){var e=$(this).data("admin-edit-url"),t=$(this).data("admin-edit-text"),n=$(this).data("admin-edit-title"),i=$("<a></a>").prop("href",e).prop("title",n).prop("target","_blank");i.html("<i class='fa fa-pencil'></i>&nbsp; "+t),i.addClass("btn btn-outline-primary btn-admin-edit"),$(this).addClass("edit-on-hover"),$(this).prepend(i)});$.getJSON("https://candidate-theme.s3-ap-southeast-2.amazonaws.com/whitelist.json").done(function(e){-1<e.nations.indexOf($("body").data("nation-slug"))&&$("#cn-referral").hide()})});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment