Team:Stanford/JS theme

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("aos"),require("jquery"),require("jquery-countdown"),require("scrollmonitor"),require("flatpickr"),require("flickity"),require("ion-rangeslider"),require("isotope-layout"),require("jarallax"),require("plyr"),require("prismjs"),require("smooth-scroll"),require("@tanem/svg-injector"),require("twitter-fetcher"),require("typed.js"),require("smartwizard")):"function"==typeof define&&define.amd?define(["exports","aos","jquery","jquery-countdown","scrollmonitor","flatpickr","flickity","ion-rangeslider","isotope-layout","jarallax","plyr","prismjs","smooth-scroll","@tanem/svg-injector","twitter-fetcher","typed.js","smartwizard"],e):e((t=t||self).theme={},t.AOS,t.jQuery,null,t.scrollMonitor,t.flatpickr,t.Flickity,null,t.Isotope,t.jarallax,t.Plyr,t.Prism,t.SmoothScroll,t.SVGInjector,t.twitterFetcher,t.Typed)}(this,function(t,e,O,n,b,s,E,i,C,r,o,a,l,u,A,c){"use strict";var h;function f(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function W(t,e,n){return e&&f(t.prototype,e),n&&f(t,n),t}e=e&&e.hasOwnProperty("default")?e.default:e,O=O&&O.hasOwnProperty("default")?O.default:O,b=b&&b.hasOwnProperty("default")?b.default:b,s=s&&s.hasOwnProperty("default")?s.default:s,E=E&&E.hasOwnProperty("default")?E.default:E,C=C&&C.hasOwnProperty("default")?C.default:C,r=r&&r.hasOwnProperty("default")?r.default:r,o=o&&o.hasOwnProperty("default")?o.default:o,a=a&&a.hasOwnProperty("default")?a.default:a,l=l&&l.hasOwnProperty("default")?l.default:l,A=A&&A.hasOwnProperty("default")?A.default:A,c=c&&c.hasOwnProperty("default")?c.default:c,e.init({once:!0}),h=O,"objectFit"in document.documentElement.style==0&&h(".bg-image").each(function(){var t=h(this),e=t.attr("src"),n=t.get(0).classList;t.before(h('
')),t.remove()});var d,m,p,g,y,v,w,S,k,T,I,j,P,F,V,x,D,L,_,R,M,N=function(i){if("function"!=typeof i.fn.countdown)throw new Error("mrCountdown requires jquery.countdown.js (https://github.com/hilios/jQuery.countdown/)");var t="mrCountdown",r="mr.countdown",e=i.fn[t],n={LOAD_DATA_API:"load.mr.countdown.data-api"},o="days",a="Timer Done",s="%Y",l="%m",u="%w",c="%D",h="%H",f="%M",d="%S",m="%!Y:Year,Years;",p="%!m:Month,Months;",g="%!w:Week,Weeks;",y="%!d:Day,Days;",v="%!H:Hour,Hours;",w="%!M:Minute,Minutes;",b="%!S:Second,Seconds;",E="d-none",A="[data-countdown-date]",S="[data-active-state]",k="[data-elapsed-state]",T="data-countdown-date",I="data-days-text",O="data-date-format",C="data-date-fallback",j="[data-years]",P="[data-months]",F="[data-weeks]",V="[data-days]",x="[data-hours]",D="[data-minutes]",L="[data-seconds]",_="[data-years-label]",R="[data-months-label]",M="[data-weeks-label]",N="[data-days-label]",q="[data-hours-label]",Q="[data-minutes-label]",H="[data-seconds-label]",z="format",B="detailed",U=function(){function n(t){this.element=t;var e=i(t);this.date=e.attr(T),this.daysText=e.attr(I)||o,this.countdownText="%D "+this.daysText+" %H:%M:%S",this.dateFormat=e.attr(O)||this.countdownText,this.fallback=e.attr(C)||a,this.detailed=null!==this.element.getAttribute("data-"+B),this.detailed&&(this.years={show:e.find(j).length,element:e.find(j),format:e.find(j).data(z)||s,label:{show:e.find(_).length,element:e.find(_),format:e.find(_).data(z)||m}},this.months={show:e.find(P).length,element:e.find(P),format:e.find(P).data(z)||l,label:{show:e.find(R).length,element:e.find(R),format:e.find(R).data(z)||p}},this.weeks={show:e.find(F).length,element:e.find(F),format:e.find(F).data(z)||u,label:{show:e.find(M).length,element:e.find(M),format:e.find(M).data(z)||g}},this.days={show:e.find(V).length,element:e.find(V),format:e.find(V).data(z)||c,label:{show:e.find(N).length,element:e.find(N),format:e.find(N).data(z)||y}},this.hours={show:e.find(x).length,element:e.find(x),format:e.find(x).data(z)||h,label:{show:e.find(q).length,element:e.find(q),format:e.find(q).data(z)||v}},this.minutes={show:e.find(D).length,element:e.find(D),format:e.find(D).data(z)||f,label:{show:e.find(Q).length,element:e.find(Q),format:e.find(Q).data(z)||w}},this.seconds={show:e.find(L).length,element:e.find(L),format:e.find(L).data(z)||d,label:{show:e.find(H).length,element:e.find(H),format:e.find(H).data(z)||b}}),this.initCountdown()}return n.prototype.initCountdown=function(){var e=this,n=i(this.element);this.detailed?n.countdown(this.date,function(t){t.elapsed?(n.find(k).removeClass(E),n.find(S).addClass(E)):(e.years.show&&e.years.element.text(t.strftime(e.years.format)),e.years.label.show&&e.years.label.element.text(t.strftime(e.years.label.format)),e.months.show&&e.months.element.text(t.strftime(e.months.format)),e.months.label.show&&e.months.label.element.text(t.strftime(e.months.label.format)),e.weeks.show&&e.weeks.element.text(t.strftime(e.weeks.format)),e.weeks.label.show&&e.weeks.label.element.text(t.strftime(e.weeks.label.format)),e.days.show&&e.days.element.text(t.strftime(e.days.format)),e.days.label.show&&e.days.label.element.text(t.strftime(e.days.label.format)),e.hours.show&&e.hours.element.text(t.strftime(e.hours.format)),e.hours.label.show&&e.hours.label.element.text(t.strftime(e.hours.label.format)),e.minutes.show&&e.minutes.element.text(t.strftime(e.minutes.format)),e.minutes.label.show&&e.minutes.label.element.text(t.strftime(e.minutes.label.format)),e.seconds.show&&e.seconds.element.text(t.strftime(e.seconds.format)),e.seconds.label.show&&e.seconds.label.element.text(t.strftime(e.seconds.label.format)))}):i(this.element).countdown(this.date,function(t){t.elapsed?n.text(e.fallback):n.text(t.strftime(e.dateFormat))})},n.jQueryInterface=function(){return this.each(function(){var t=i(this),e=t.data(r);e||(e=new n(this),t.data(r,e))})},W(n,null,[{key:"VERSION",get:function(){return"1.1.0"}}]),n}();return i(window).on(n.LOAD_DATA_API,function(){for(var t=i.makeArray(i(A)),e=t.length;e--;){var n=i(t[e]);U.jQueryInterface.call(n,n.data())}}),i.fn[t]=U.jQueryInterface,i.fn[t].Constructor=U,i.fn[t].noConflict=function(){return i.fn[t]=e,U.jQueryInterface},U}(O),q=function(){return(q=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},Q=function(){function t(t,e,n){var u=this;this.target=t,this.endVal=e,this.options=n,this.version="2.0.4",this.defaults={startVal:0,decimalPlaces:0,duration:2,useEasing:!0,useGrouping:!0,smartEasingThreshold:999,smartEasingAmount:333,separator:",",decimal:".",prefix:"",suffix:""},this.finalEndVal=null,this.useEasing=!0,this.countDown=!1,this.error="",this.startVal=0,this.paused=!0,this.count=function(t){u.startTime||(u.startTime=t);var e=t-u.startTime;u.remaining=u.duration-e,u.useEasing?u.countDown?u.frameVal=u.startVal-u.easingFn(e,0,u.startVal-u.endVal,u.duration):u.frameVal=u.easingFn(e,u.startVal,u.endVal-u.startVal,u.duration):u.countDown?u.frameVal=u.startVal-(u.startVal-u.endVal)*(e/u.duration):u.frameVal=u.startVal+(u.endVal-u.startVal)*(e/u.duration),u.countDown?u.frameVal=u.frameVal<u.endVal?u.endVal:u.frameVal:u.frameVal=u.frameVal>u.endVal?u.endVal:u.frameVal,u.frameVal=Math.round(u.frameVal*u.decimalMult)/u.decimalMult,u.printValue(u.frameVal),e<u.duration?u.rAF=requestAnimationFrame(u.count):null!==u.finalEndVal?u.update(u.finalEndVal):u.callback&&u.callback()},this.formatNumber=function(t){var e,n,i,r,o,a=t<0?"-":"";if(e=Math.abs(t).toFixed(u.options.decimalPlaces),i=(n=(e+="").split("."))[0],r=1<n.length?u.options.decimal+n[1]:"",u.options.useGrouping){o="";for(var s=0,l=i.length;s<l;++s)0!==s&&s%3==0&&(o=u.options.separator+o),o=i[l-s-1]+o;i=o}return u.options.numerals&&u.options.numerals.length&&(i=i.replace(/[0-9]/g,function(t){return u.options.numerals[+t]}),r=r.replace(/[0-9]/g,function(t){return u.options.numerals[+t]})),a+u.options.prefix+i+r+u.options.suffix},this.easeOutExpo=function(t,e,n,i){return n*(1-Math.pow(2,-10*t/i))*1024/1023+e},this.options=q({},this.defaults,n),this.formattingFn=this.options.formattingFn?this.options.formattingFn:this.formatNumber,this.easingFn=this.options.easingFn?this.options.easingFn:this.easeOutExpo,this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.endVal=this.validateValue(e),this.options.decimalPlaces=Math.max(this.options.decimalPlaces),this.decimalMult=Math.pow(10,this.options.decimalPlaces),this.resetDuration(),this.options.separator=String(this.options.separator),this.useEasing=this.options.useEasing,""===this.options.separator&&(this.options.useGrouping=!1),this.el="string"==typeof t?document.getElementById(t):t,this.el?this.printValue(this.startVal):this.error="[CountUp] target is null or undefined"}return t.prototype.determineDirectionAndSmartEasing=function(){var t=this.finalEndVal?this.finalEndVal:this.endVal;this.countDown=this.startVal>t;var e=t-this.startVal;if(Math.abs(e)>this.options.smartEasingThreshold){this.finalEndVal=t;var n=this.countDown?1:-1;this.endVal=t+n*this.options.smartEasingAmount,this.duration=this.duration/2}else this.endVal=t,this.finalEndVal=null;this.finalEndVal?this.useEasing=!1:this.useEasing=this.options.useEasing},t.prototype.start=function(t){this.error||(this.callback=t,0<this.duration?(this.determineDirectionAndSmartEasing(),this.paused=!1,this.rAF=requestAnimationFrame(this.count)):this.printValue(this.endVal))},t.prototype.pauseResume=function(){this.paused?(this.startTime=null,this.duration=this.remaining,this.startVal=this.frameVal,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count)):cancelAnimationFrame(this.rAF),this.paused=!this.paused},t.prototype.reset=function(){cancelAnimationFrame(this.rAF),this.paused=!0,this.resetDuration(),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.printValue(this.startVal)},t.prototype.update=function(t){cancelAnimationFrame(this.rAF),this.startTime=null,this.endVal=this.validateValue(t),this.endVal!==this.frameVal&&(this.startVal=this.frameVal,this.finalEndVal||this.resetDuration(),this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count))},t.prototype.printValue=function(t){var e=this.formattingFn(t);"INPUT"===this.el.tagName?this.el.value=e:"text"===this.el.tagName||"tspan"===this.el.tagName?this.el.textContent=e:this.el.innerHTML=e},t.prototype.ensureNumber=function(t){return"number"==typeof t&&!isNaN(t)},t.prototype.validateValue=function(t){var e=Number(t);return this.ensureNumber(e)?e:(this.error="[CountUp] invalid start or end value: "+t,null)},t.prototype.resetDuration=function(){this.startTime=null,this.duration=1e3*Number(this.options.duration),this.remaining=this.duration},t}(),H=function(i){if(void 0===b)throw new Error("mrCountup requires scrollMonitor.js (https://github.com/stutrek/scrollMonitor)");var t="mrCountup",r="mr.countup",e="."+r,n=i.fn[t],o="start",a="end",s="duration",l="grouping",u="separator",c="decimal-character",h="decimal-places",f="prefix",d="suffix",m="easing",p={LOAD_DATA_API:"load"+e+".data-api",RESIZE:"resize"+e},g="[data-countup]",y=function(){function n(t){var e=i(t);this.start=parseFloat(e.data(o),10)||0,this.end=parseFloat(e.data(a),10)||parseFloat(e.text(),10),this.duration=parseFloat(e.data(s),10)||2.5,this.grouping=!0===e.data(l)||!1,this.separator=e.data(u)||",",this.decimalCharacter=e.data(c)||".",this.decimalPlaces=parseInt(e.data(h),10)||0,this.prefix=e.data(f)||"",this.suffix=e.data(d)||"";var n=e.data(m);this.easing=!1!==n||n,this.element=t,this.initWatcher(t),this.startCounting()}var t=n.prototype;return t.initWatcher=function(t){var e=this;this.CountUp=new Q(t,this.end,{startVal:this.start,decimalPlaces:this.decimalPlaces,duration:this.duration,useEasing:this.easing,useGrouping:this.grouping,separator:this.separator,decimal:this.decimalCharacter,prefix:this.prefix,suffix:this.suffix});var n=b.create(t);(this.watcher=n).stateChange(function(){e.startCounting()})},t.startCounting=function(){if(this.watcher.isFullyInViewport){if(this.CountUp.error)throw new Error(this.CountUp.error);this.CountUp.start()}},n.jQueryInterface=function(){return this.each(function(){var t=i(this),e=t.data(r);e||(e=new n(this),t.data(r,e))})},W(n,null,[{key:"VERSION",get:function(){return"1.1.0"}}]),n}();return i(window).on(p.LOAD_DATA_API,function(){for(var t=i.makeArray(i(g)),e=t.length;e--;){var n=i(t[e]);y.jQueryInterface.call(n,n.data())}}),i.fn[t]=y.jQueryInterface,i.fn[t].Constructor=y,i.fn[t].noConflict=function(){return i.fn[t]=n,y.jQueryInterface},y}(O),z=(m="script",(d=O)("body").tooltip({selector:'[data-toggle="tooltip"]',container:"body"}),d("body").popover({selector:'[data-toggle="popover"]',container:"body"}),d(".toast").toast(),{version:"1.2.0",selector:{RECAPTCHA:"[data-recaptcha]"},activateIframeSrc:function(t){var e=d(t);e.attr("data-src")&&e.attr("src",e.attr("data-src"))},idleIframeSrc:function(t){var e=d(t);e.attr("data-src",e.attr("src")).attr("src","")},forEach:function(t,e,n){if(t)if(t.length)for(var i=0;i<t.length;i+=1)e.call(n,i,t[i]);else(t[0]||z.isElement(t))&&e.call(n,0,t)},dedupArray:function(t){return t.reduce(function(t,e){var n=JSON.stringify(e);return-1===t.temp.indexOf(n)&&(t.out.push(e),t.temp.push(n)),t},{temp:[],out:[]}).out},isElement:function(t){return!(!t||1!==t.nodeType)},getFuncFromString:function(t,e){var n=t||null;if("function"==typeof n)return t;if("string"==typeof n){if(!n.length)return null;for(var i=e||window,r=n.split(".");r.length;){var o=r.shift();if(void 0===i[o])return null;i=i[o]}if("function"==typeof i)return i}return null},getScript:function(t,n){var i=document.createElement(m),e=document.getElementsByTagName(m)[0];i.async=1,i.defer=1,i.onreadystatechange=function(t,e){(e||!i.readyState||/loaded|complete/.test(i.readyState))&&(i.onload=null,i.onreadystatechange=null,i=void 0,!e&&n&&"function"==typeof n&&n())},i.onload=i.onreadystatechange,i.src=t,e.parentNode.insertBefore(i,e)}}),B=(g="mrDropdownGrid",v="."+(y="mr.dropdownGrid"),w=".data-api",S=(p=O).fn[g],k=new RegExp("38|40|27"),T={SHOW:"show"},I={LOAD_DATA_API:"load"+v+w,RESIZE:"resize"+v,HIDE:"hide"+v,HIDDEN:"hidden"+v,SHOW:"show"+v,SHOWN:"shown"+v,CLICK:"click"+v,MOUSE_ENTER:"mouseenter"+v,MOUSE_LEAVE:"mouseleave"+v,CLICK_DATA_API:"click"+v+w,KEYDOWN_DATA_API:"keydown"+v+w,KEYUP_DATA_API:"keyup"+v+w},j='[data-toggle="dropdown-grid"]',P=".dropdown form",V=F=".dropdown-menu",x="[data-dropdown-content]",D=".navbar-nav",L=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",_="data-hover",R="data-dropdown-grid-hover",M=function(){function l(t){this.ticking=!1,this.isActive=!1,this.element=t,this.getOptions(),this.parent=l.getParentFromElement(this.element),this.menu=this.getMenuElement(),this.container=this.getContainerElement(),this.content=this.getContentElement(),this.isSubmenu=this.hasParentMenu(),this.isSubmenu&&(this.siblingMenus=this.getSiblingMenus()),this.submenus=this.getSubmenus(),this.hover=this.options.hover,this.addEventListeners(),this.setResizeEvent()}var t=l.prototype;return t.getOptions=function(){this.options||(this.options={},this.options.hover=("true"===this.element.getAttribute(_)||"true"===document.body.getAttribute(R))&&"false"!==this.element.getAttribute(_))},t.toggle=function(t){if(this.getParentMenu(),!this.element.disabled&&!p(this.element).hasClass(T.DISABLED)){this.isActive=p(this.menu).hasClass(T.SHOW);var e=this.isActive,n=!this.isActive;if(this.isSubmenu||l.clearMenus(),(this.isSubmenu||!e)&&(this.isSubmenu||!n||!t||t.type!==I.MOUSE_LEAVE)){if(this.isSubmenu&&this.isActive)return l.clearMenus(null,this.element),void l.clearMenus(null,this.submenus);this.isSubmenu&&!this.isActive&&l.clearMenus(null,this.siblingMenus);var i={relatedTarget:this.element},r=p.Event(I.SHOW,i);p(this.parent).trigger(r),r.isDefaultPrevented()||("ontouchstart"in document.documentElement&&0===p(this.parent).closest(D).length&&p(document.body).children().on("mouseover",null,p.noop),this.element.focus(),this.element.setAttribute("aria-expanded",!0),p(this.menu).toggleClass(T.SHOW),this.updatePosition(),this.isActive=!0,p(this.parent).toggleClass(T.SHOW).trigger(p.Event(I.SHOWN,i)))}}},t.updatePosition=function(t){var e=t||window.innerWidth,n=B.getDimensionsFromElement(this.element);this.positionContainer(n.offsetLeft),this.positionContent(e,n.offsetLeft)},t.positionContainer=function(t){if(!this.container)throw new TypeError("No element matching .dropdown-menu.container found.");this.container.style.left="-"+t+"px"},t.positionContent=function(t,e){if(!this.content)throw new TypeError("No [data-dropdown-content] element was found.");var n,i=B.getDimensionsFromElement(this.content).width;if(this.isSubmenu){this.getParentMenu();var r=B.getDimensionsFromElement(this.parentMenu.content);n=r.offsetLeft+r.width+i<=t?r.offsetLeft+r.width:r.offsetLeft>=i?r.offsetLeft-i:0}else n=t<=i+e?t-i:e;var o=Math.round(n)+"px";this.content.style.left=o},t.setResizeEvent=function(){var t=this;p(window).on(I.RESIZE,function(){t.ticking||(window.requestAnimationFrame(function(){t.updatePosition(),t.ticking=!1}),t.ticking=!0)})},t.getMenuElement=function(){return this.menu||this.parent&&(this.menu=this.parent.querySelector(F)),this.menu},t.getContainerElement=function(){return this.container||this.parent&&(this.container=this.parent.querySelector(""+F+V)),this.container},t.getContentElement=function(){return this.content||this.parent&&(this.content=this.container.querySelector(x)),this.content},t.hasParentMenu=function(){return 0<p(this.element).closest(x).length},t.getParentMenu=function(){this.isSubmenu&&!this.parentMenu&&(this.parentMenu=p(this.parent).closest(F).siblings(j).data(y))},t.getSiblingMenus=function(){return p(this.element).closest(x).get(0).querySelectorAll(j)},t.getSubmenus=function(){var t=this.content.querySelectorAll(j);return this.isParent=0!==t.length,t},t.addEventListeners=function(){var e=this;p(this.element).on(I.CLICK,function(t){t.preventDefault(),t.stopPropagation(),e.toggle()}),this.hover&&p(this.parent).on(I.MOUSE_ENTER+" "+I.MOUSE_LEAVE,function(t){t.preventDefault(),t.stopPropagation(),t.type+v===I.MOUSE_ENTER&&e.isActive||t.type+v===I.MOUSE_LEAVE&&!e.isActive||e.toggle(t)})},l.getDimensionsFromElement=function(t){if(t&&z.isElement(t)){var e=t.getBoundingClientRect();return e.offsetLeft=Math.round(e.left+window.pageXOffset-document.documentElement.clientLeft),e}throw new TypeError("Can't get a measurement from a non-element")},l.getParentFromElement=function(t){return t.parentNode},l.clearMenus=function(s,t){var e;(!s||3!==s.which&&"keyup"!==s.type||9===s.which)&&(e=t&&"object"==typeof t?t:document.querySelectorAll(j),z.forEach(e,function(t,e){var n=l.getParentFromElement(e),i=p(e).data(y),r={relatedTarget:e};if(s&&"click"===s.type&&(r.clickEvent=s),i){var o=i.menu;if(p(n).hasClass(T.SHOW)&&!(s&&("click"===s.type&&/input|textarea/i.test(s.target.tagName)||"keyup"===s.type&&9===s.which)&&p.contains(n,s.target)||s&&"click"===s.type&&(p.contains(i.content,s.target)||i.content.isSameNode(s.target)))){var a=p.Event(I.HIDE,r);p(n).trigger(a),a.isDefaultPrevented()||("ontouchstart"in document.documentElement&&p(document.body).children().off("mouseover",null,p.noop),e.setAttribute("aria-expanded","false"),i.isActive=!1,p(o).removeClass(T.SHOW),p(n).removeClass(T.SHOW).trigger(p.Event(I.HIDDEN,r)))}}}))},l.jQueryInterface=function(n){return this.each(function(){var t=p(this),e=t.data(y);if(e||(e=new l(this),t.data(y,e)),"string"==typeof n){if(void 0===e[n])throw new TypeError('No method named "'+n+'"');e[n]()}})},l.dataApiKeydownHandler=function(t){if((/input|textarea/i.test(t.target.tagName)?32!==t.which&&27===t.which||!(40!==t.which&&38!==t.which||p(t.target).closest(F).length):k.test(t.which))&&(t.preventDefault(),t.stopPropagation(),!this.disabled&&!p(this).hasClass(T.DISABLED))){var e=l.getParentFromElement(this),n=p(e).hasClass(T.SHOW);if((n||27===t.which&&32===t.which)&&(!n||27!==t.which&&32!==t.which)){var i=[].slice.call(e.querySelectorAll(L));if(0!==i.length){var r=i.indexOf(t.target);38===t.which&&0<r&&(r-=1),40===t.which&&r<i.length-1&&(r+=1),r<0&&(r=0),i[r].focus()}}else{if(27===t.which){var o=e.querySelector(j);p(o).trigger("focus")}p(this).trigger("click")}}},W(l,null,[{key:"VERSION",get:function(){return"1.0.0"}}]),l}(),p(document).on(I.KEYDOWN_DATA_API,j,M.dataApiKeydownHandler).on(I.KEYDOWN_DATA_API,F,M.dataApiKeydownHandler).on(I.CLICK_DATA_API+" "+I.KEYUP_DATA_API,M.clearMenus).on(I.CLICK_DATA_API,P,function(t){t.stopPropagation()}),p(document).ready(function(){for(var t=p.makeArray(p(j)),e=t.length;e--;){var n=p(t[e]);M.jQueryInterface.call(n,n.data())}}),p.fn[g]=M.jQueryInterface,p.fn[g].Constructor=M,p.fn[g].noConflict=function(){return p.fn[g]=S,M.jQueryInterface},M);!function(){var n="href",i="fade-page",r=500,t=document.getElementsByClassName(i);function e(t){if(!(t.ctrlKey||t.shiftKey||t.metaKey||t.button&&1===t.button)){t.preventDefault(),t.stopPropagation(),document.body.classList.add(i);var e=this.getAttribute(n);setTimeout(function(){""!==e&&"#"!==e&&(window.location.href=e)},r)}}for(var o=0;o<t.length;o+=1)t[o].addEventListener("click",e,!1)}();var U=function(i){if(void 0===s)throw new Error("mrFlatpickr requires flatpickr.js (https://github.com/flatpickr/flatpickr)");var t="mrFlatpickr",r="mr.flatpickr",e=i.fn[t],n={LOAD_DATA_API:"load.mr.flatpickr.data-api"},o="[data-flatpickr]",a=function(){function n(t){this.element=t,this.initflatpickr()}return n.prototype.initflatpickr=function(){var t=i(this.element).data();this.instance=s(this.element,t)},n.jQueryInterface=function(){return this.each(function(){var t=i(this),e=t.data(r);e||(e=new n(this),t.data(r,e))})},W(n,null,[{key:"VERSION",get:function(){return"1.0.0"}}]),n}();return i(window).on(n.LOAD_DATA_API,function(){for(var t=i.makeArray(i(o)),e=t.length;e--;){var n=i(t[e]);a.jQueryInterface.call(n,n.data())}}),i.fn[t]=a.jQueryInterface,i.fn[t].Constructor=a,i.fn[t].noConflict=function(){return i.fn[t]=e,a.jQueryInterface},a}(O);$(document).on("shown.bs.modal layoutComplete",function(t){$(t.target).find("[data-flickity]").each(function(t,e){var n=$(e);n.data().flickity.isInitActivated&&n.flickity("resize")})});var G,K=function(i){if(!(z&&"1.2.0"<=z.version))throw new Error("mrUtil >= version 1.2.0 is required.");var t="mrRecaptchav2",r="mr.recaptchav2",e=i.fn[t],o={RECAPTCHAV2:"https://www.google.com/recaptcha/api.js?onload=mrRecaptchav2Init&render=explicit"},a="[data-recaptcha]",s="form",l="invisible",u=[],c=!1,h=function(){function n(t){this.element=t,this.form=this.getForm(),this.isReady=!1,this.isValid=!1,this.options=i(this.element).data(),this.invisible=this.options.size===l,this.id=null,u.push(this)}var t=n.prototype;return t.init=function(){var t=this;""===this.element.innerHTML.replace(/[\s\xA0]+/g,"")&&(this.id=grecaptcha.render(this.element,{sitekey:this.options.sitekey,theme:this.options.theme,size:this.options.size,badge:this.options.badge,tabindex:this.options.tabindex,callback:function(){t.validate()},"expired-callback":function(){t.invalidate()}}),this.isReady=!0)},t.validate=function(){this.isValid=!0,this.invisible&&this.form&&i(this.form).trigger("submit")},t.invalidate=function(){this.isValid=!1},t.checkValidity=function(){return!(!this.isReady||!this.isValid)},t.execute=function(){this.isReady&&this.invisible&&grecaptcha.execute(this.id)},t.reset=function(){this.isReady&&(grecaptcha.reset(this.id),this.isValid=!1)},t.getForm=function(){var t=i(this.element).closest(s);return t.length?t.get(0):null},n.getRecaptchaFromForm=function(t){if(z.isElement(t)){var e=t.querySelector(a);return e&&i(e).data(r)||null}throw new TypeError("Form argument passed to getRecaptchaFromForm is not an element.")},n.jQueryInterface=function(){return this.each(function(){var t=i(this),e=t.data(r);e||(e=new n(this),t.data(r,e))})},W(n,null,[{key:"VERSION",get:function(){return"1.0.0"}},{key:"ready",get:function(){return c}},{key:"instances",get:function(){return u}},{key:"apiReady",set:function(t){!0===t&&!1===c&&z.forEach(n.instances,function(t,e){e.init()}),c=!0}}]),n}();return window.mrRecaptchav2Init=function(){K.apiReady=!0},i(document).ready(function(){var t=i.makeArray(i(a));if(0<t.length){z.getScript(o.RECAPTCHAV2);for(var e=t.length;e--;){var n=i(t[e]);h.jQueryInterface.call(n,n.data())}}}),i.fn[t]=h.jQueryInterface,i.fn[t].Constructor=h,i.fn[t].noConflict=function(){return i.fn[t]=e,h.jQueryInterface},h}(jQuery),Y=function(r){if(!(z&&"1.2.0"<=z.version))throw new Error("mrUtil >= version 1.2.0 is required.");var t="mrFormEmail",i="mr.formEmail",e="."+i,n=r.fn[t],o="btn-loading-animate",a="was-validated",s="d-none",l="action",u="disabled",c="data-feedback-delay",h="data-success-redirect",f="[data-form-email]",d="[data-success-message]",m="[data-error-message]",p='button[type="submit"]',g="span",y="input,textarea,select",v={SENT:"sent"+e,LOAD_DATA_API:"load"+e+".data-api",SUBMIT:"submit"},w="data-loading-text",b="Sending",E="forms/mail.php",A=5e3,S="Form submission error",k="success",T="error",I=function(){function n(t){this.form=t,this.action=this.form.getAttribute(l)||E,this.feedback=this.getFeedbackElements(),this.getRecaptcha(),this.initSubmitButton(),this.setSubmitEvent()}var t=n.prototype;return t.submitForm=function(){this.hideAllFeedback(),this.validateForm()&&this.ajaxSubmit()},t.validateForm=function(){var t=this.form.checkValidity();if(this.recaptcha)if(this.recaptcha.invisible){if(t&&!this.recaptcha.checkValidity())return this.recaptcha.execute(),!1}else!1===this.recaptcha.checkValidity()&&(t=!1);return t?(this.form.classList.remove(a),!0):(clearTimeout(this.feedbackTimeout),this.form.classList.add(a),this.showFeedback(T,this.validationErrorMessage),!1)},t.ajaxSubmit=function(){var t=r(this.form).serializeArray();t.push({name:"url",value:window.location.href}),O.ajax({context:this,data:t,dataType:"json",error:this.showFeedback,success:this.processResponse,type:"POST",url:this.action}),this.toggleFormLoading(!0)},t.initSubmitButton=function(){return this.submitButton||(this.submitButton=this.form.querySelector(p)),this.submitButtonSpan=this.submitButton.querySelector(g),this.loadingText=this.submitButton.getAttribute(w)||b,this.originalSubmitText=this.submitButtonSpan.textContent,this.submitButton},t.processResponse=function(t){var e=this,n=t.status===k;this.toggleFormLoading(!1),this.recaptcha&&this.recaptcha.reset(),r(this.form).trigger(r.Event(v.SENT));var i=this.form.getAttribute(h);n&&i&&""!==i?window.location=i:n&&(this.form.reset(),this.feedbackTimeout=setTimeout(function(){return e.hideAllFeedback()},this.feedbackDelay)),i||this.showFeedback(t.status,t.message),t.errorDetail&&console.error(t.errorName||S,0===t.errorDetail.indexOf("{")?JSON.parse(t.errorDetail):t.errorDetail)},t.showFeedback=function(t,e,n){this.toggleFormLoading(!1),"object"==typeof t&&t.statusText?(clearTimeout(this.feedbackTimeout),this.feedback.error.innerHTML=(n||e)+': "'+this.action+'" ('+t.status+" "+e+")",this.feedback.error.classList.remove(s)):(this.feedback[t].innerHTML=e,this.feedback[t].classList.remove(s))},t.hideAllFeedback=function(){this.feedback.success.classList.add(s),this.feedback.error.classList.add(s)},t.getFeedbackElements=function(){if(!this.feedback){this.feedback={success:this.form.querySelector(d),error:this.form.querySelector(m)},this.validationErrorMessage=this.feedback.error.innerHTML;var t=this.form.getAttribute(c)||A;this.feedbackDelay=parseInt(t,10),this.feedbackTimeout=null}return this.feedback},t.getRecaptcha=function(){if(this.form.querySelector(z.selector.RECAPTCHA)){if(!K)throw new Error("mrRecaptcha.js is required to handle the reCAPTCHA element in this form.");this.recaptcha=K.getRecaptchaFromForm(this.form)}},t.toggleFormLoading=function(t){this.toggleSubmitButtonLoading(t),n.toggleDisabled(this.form.querySelectorAll(y),t)},t.toggleSubmitButtonLoading=function(t){this.toggleSubmitButtonText(t),this.toggleSubmitButtonAnimation(t),n.toggleDisabled(this.submitButton,t)},t.toggleSubmitButtonAnimation=function(t){this.submitButton.classList[t?"add":"remove"](o)},t.toggleSubmitButtonText=function(t){this.submitButtonSpan.textContent=t?this.loadingText:this.originalSubmitText},n.toggleDisabled=function(t,n){z.forEach(t,function(t,e){return e[n?"setAttribute":"removeAttribute"](u,"")})},n.getInstanceFromForm=function(t){if(z.isElement(t))return r(t).data(i)||null;throw new TypeError("Form argument passed to getInstanceFromForm is not an element.")},t.setSubmitEvent=function(){var e=this;r(this.form).on(v.SUBMIT,function(t){t.preventDefault(),e.submitForm()})},n.jQueryInterface=function(){return this.each(function(){var t=r(this),e=t.data(i);e||(e=new n(this),t.data(i,e))})},W(n,null,[{key:"VERSION",get:function(){return"1.0.0"}}]),n}();return r(window).on(v.LOAD_DATA_API,function(){for(var t=r.makeArray(r(f)),e=t.length;e--;){var n=r(t[e]);I.jQueryInterface.call(n,n.data())}}),r.fn[t]=I.jQueryInterface,r.fn[t].Constructor=I,r.fn[t].noConflict=function(){return r.fn[t]=n,I.jQueryInterface},I}(O),Z=function(i){if("function"!=typeof i.fn.ionRangeSlider)throw new Error("mrIonRangeSlider requires ion.rangeSlider.js (https://github.com/IonDen/ion.rangeSlider)");if(!(z&&"1.2.0"<=z.version))throw new Error("mrUtil >= version 1.2.0 is required.");var t="mrIonRangeSlider",r="mr.ionRangeSlider",e=i.fn[t],o={LOAD_DATA_API:"load.mr.ionRangeSlider.data-api",CHANGE:"input"},a="[data-ion-rangeslider]",s="INPUT",l="text",u="theme",c=function(){function n(t){var e=i(t);this.options=e.data(),this.element=t,this.fromElement=null,this.toElement=null,this.unitElement=null,this.initRangeSlider()}var t=n.prototype;return t.initRangeSlider=function(){var t=this.options;t.fromSelector&&(this.fromElement=document.querySelectorAll(t.fromSelector),this.setFromUpdateEvent(this.fromElement)),t.toSelector&&(this.toElement=document.querySelectorAll(t.toSelector),this.setToUpdateEvent(this.toElement)),t.unitSelector&&t.unitSingle&&t.unitPlural&&(this.unitElement=document.querySelectorAll(t.unitSelector)),i(this.element).ionRangeSlider({skin:u,onStart:z.getFuncFromString(t.onStart),onFinish:z.getFuncFromString(t.onFinish),onChange:this.handleChange,scope:this,onUpdate:z.getFuncFromString(t.onUpdate)}),this.rangeSlider=i(this.element).data("ionRangeSlider")},t.handleChange=function(t){if(this.fromElement&&0<this.fromElement.length&&Z.updateValue(this.fromElement,t.from_value||t.from),this.toElement&&0<this.toElement.length&&Z.updateValue(this.toElement,t.to_value||t.to),this.unitElement&&0<this.unitElement.length){var e=parseInt(t.from_value,10)||t.value;Z.updateValue(this.unitElement,1<e?this.options.unitPlural:this.options.unitSingle)}var n=z.getFuncFromString(this.options.onChange);n&&n(t)},t.setToUpdateEvent=function(t){var n=this;z.forEach(t,function(t,e){e.tagName.toUpperCase()===s&&e.type===l&&e.addEventListener(o.CHANGE,function(){n.rangeSlider.update({to:e.value})})})},t.setFromUpdateEvent=function(t){var n=this;z.forEach(t,function(t,e){e.tagName.toUpperCase()===s&&e.type===l&&e.addEventListener(o.CHANGE,function(){n.rangeSlider.update({from:e.value})})})},n.updateValue=function(t,n){z.forEach(t,function(t,e){e[e.tagName.toUpperCase()===s?"value":"textContent"]=n})},n.jQueryInterface=function(){return this.each(function(){var t=i(this),e=t.data(r);e||(e=new n(this),t.data(r,e))})},W(n,null,[{key:"VERSION",get:function(){return"1.0.0"}}]),n}();return i(window).on(o.LOAD_DATA_API,function(){for(var t=i.makeArray(i(a)),e=t.length;e--;){var n=i(t[e]);c.jQueryInterface.call(n,n.data())}}),i.fn[t]=c.jQueryInterface,i.fn[t].Constructor=c,i.fn[t].noConflict=function(){return i.fn[t]=e,c.jQueryInterface},c}(O),J=function(d){if(void 0===C)throw new Error("mrIsotope requires isotope.pkgd.js (https://github.com/metafizzy/isotope)");var t="mrIsotope",i="mr.isotope",e=d.fn[t],r="active",m={LOAD_DATA_API:"load.mr.isotope.data-api",FILTER_CLICK:"click touchstart",SORTER_CLICK:"click touchstart"},o="masonry",p="original-order",a=".js-filter-inited",s="data-isotope-id",l="[data-isotope-collection]",u="[data-isotope-item]",c="[data-isotope-filters]",h="[data-isotope-sorters]",n="data-category",f="data-filter",g="data-sort",y="data-primary-sort",v="data-secondary-sort",w="data-sort-selector",b="data-sort-ascending",E="*";function A(t){return t&&t!==E?"["+n+'*="'+t+'"]':E}function S(t,e){return document.querySelectorAll(h+"["+s+'="'+t+'"] ['+g+'="'+e+'"]')}function k(t,e){return document.querySelectorAll(c+"["+s+'="'+t+'"] ['+f+'="'+e+'"]')}function T(t,n){t&&z.forEach(t,function(t,e){e&&void 0!==e.classList&&(n?e.classList.add(r):e.classList.remove(r))})}var I=function(){function n(t){var e=d(t).data();this.element=t,this.attributes=e,this.filters={},this.sorters={},this.activeFilter=null,this.activeSorter=null,this.isotope=null,this.options={},this.options.getSortData={},this.options.sortAscending={},this.initIsotope(),this.initSorters(),this.initFilters()}var t=n.prototype;return t.initFilters=function(){var i=this,r=function(t,e){var n=e?":not("+e+")":"";return document.querySelectorAll(c+"["+s+'="'+t+'"] ['+f+"]"+n)}(this.attributes.isotopeId,a);z.forEach(r,function(t,e){var n=e.attributes[f]&&e.attributes[f].value;i.filters[n]=k(i.attributes.isotopeId,n),d(e).on(m.FILTER_CLICK,function(t){t.preventDefault&&t.preventDefault(),T(i.activeFilter,!1),T(i.filters[n],!0),i.activeFilter=r,i.options.filter="*"===n?n:A(n),i.isotope.arrange(i.options)}),e.classList.add(a)})},t.initSorters=function(){var f=this,t=function(t){return document.querySelectorAll(h+"["+s+'="'+t+'"] ['+g+"]["+w+"],\n "+h+"["+s+'="'+t+'"] ['+g+"]["+y+"]["+v+"]")}(this.attributes.isotopeId),e=this.attributes.defaultSort||p;z.forEach(t,function(t,e){var n=e.attributes,i=n[g],r=n[w],o=n[b],a=n[y],s=n[v],l=i&&i.value,u=r&&r.value,c=a&&a.value&&s&&s.value?[a.value,s.value]:null,h=!(o&&o.value&&"false"===o.value);f.sorters[l]=S(f.attributes.isotopeId,l),d(e).on(m.SORTER_CLICK,function(t){t.preventDefault&&t.preventDefault(),T(f.activeSorter,!1),T(f.sorters[l],!0),f.activeSorter=f.sorters[l],f.options.sortBy=c||l,f.isotope.arrange(f.options)}),f.options.sortAscending[l]=h,l===p||c||(f.options.getSortData[l]=u)}),this.options.sortBy=e,this.activeSorter=S(this.attributes.isotopeId,e),T(this.activeSorter,!0),this.isotope.updateSortData(),this.isotope.arrange(this.options)},t.initIsotope=function(){var t=window.location.hash.replace("#",""),e=(t=""===t||this.attributes.ignoreHash?null:t)||this.attributes.defaultFilter||E,n=A(e),i=!1==!this.attributes.sortAscending;this.options.itemSelector=u,this.options.layoutMode=this.attributes.layoutMode||o,this.options.filter=n,this.options.sortAscending[p]=i,this.isotope=new C(this.element,this.options),this.activeFilter=k(this.attributes.isotopeId,e),T(this.activeFilter,!0)},n.jQueryInterface=function(){return this.each(function(){var t=d(this),e=t.data(i);e||(e=new n(this),t.data(i,e))})},W(n,null,[{key:"VERSION",get:function(){return"1.0.0"}}]),n}();return d(window).on(m.LOAD_DATA_API,function(){for(var t=d.makeArray(d(l)),e=t.length;e--;){var n=d(t[e]);I.jQueryInterface.call(n,n.data())}}),d.fn[t]=I.jQueryInterface,d.fn[t].Constructor=I,d.fn[t].noConflict=function(){return d.fn[t]=e,I.jQueryInterface},I}(O);G=O,"function"==typeof r&&(G(".alert-dismissible").on("closed.bs.alert",function(){r(document.querySelectorAll("[data-jarallax]"),"onScroll")}),G(document).on("resized.mr.overlayNav",function(){r(document.querySelectorAll("[data-jarallax]"),"onResize")}),r(document.querySelectorAll("[data-jarallax]"),{disableParallax:/iPad|iPhone|iPod|Android/,disableVideo:/iPad|iPhone|iPod|Android/}));var X,tt,et,nt,it,rt,ot,at,st,lt,ut,ct,ht,ft,dt=[{featureType:"administrative.country",elementType:"labels.text",stylers:[{lightness:"29"}]},{featureType:"administrative.province",elementType:"labels.text.fill",stylers:[{lightness:"-12"},{color:"#796340"}]},{featureType:"administrative.locality",elementType:"labels.text.fill",stylers:[{lightness:"15"},{saturation:"15"}]},{featureType:"landscape.man_made",elementType:"geometry",stylers:[{visibility:"on"},{color:"#fbf5ed"}]},{featureType:"landscape.natural",elementType:"geometry",stylers:[{visibility:"on"},{color:"#fbf5ed"}]},{featureType:"poi",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"poi.attraction",elementType:"all",stylers:[{visibility:"on"},{lightness:"30"},{saturation:"-41"},{gamma:"0.84"}]},{featureType:"poi.attraction",elementType:"labels",stylers:[{visibility:"on"}]},{featureType:"poi.business",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"poi.business",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"poi.medical",elementType:"geometry",stylers:[{color:"#fbd3da"}]},{featureType:"poi.medical",elementType:"labels",stylers:[{visibility:"on"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#b0e9ac"},{visibility:"on"}]},{featureType:"poi.park",elementType:"labels",stylers:[{visibility:"on"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{hue:"#68ff00"},{lightness:"-24"},{gamma:"1.59"}]},{featureType:"poi.sports_complex",elementType:"all",stylers:[{visibility:"on"}]},{featureType:"poi.sports_complex",elementType:"geometry",stylers:[{saturation:"10"},{color:"#c3eb9a"}]},{featureType:"road",elementType:"geometry.stroke",stylers:[{visibility:"on"},{lightness:"30"},{color:"#e7ded6"}]},{featureType:"road",elementType:"labels",stylers:[{visibility:"on"},{saturation:"-39"},{lightness:"28"},{gamma:"0.86"}]},{featureType:"road.highway",elementType:"geometry.fill",stylers:[{color:"#ffe523"},{visibility:"on"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{visibility:"on"},{saturation:"0"},{gamma:"1.44"},{color:"#fbc28b"}]},{featureType:"road.highway",elementType:"labels",stylers:[{visibility:"on"},{saturation:"-40"}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#fed7a5"}]},{featureType:"road.arterial",elementType:"geometry.fill",stylers:[{visibility:"on"},{gamma:"1.54"},{color:"#fbe38b"}]},{featureType:"road.local",elementType:"geometry.fill",stylers:[{color:"#ffffff"},{visibility:"on"},{gamma:"2.62"},{lightness:"10"}]},{featureType:"road.local",elementType:"geometry.stroke",stylers:[{visibility:"on"},{weight:"0.50"},{gamma:"1.04"}]},{featureType:"transit.station.airport",elementType:"geometry.fill",stylers:[{color:"#dee3fb"}]},{featureType:"water",elementType:"geometry",stylers:[{saturation:"46"},{color:"#a4e1ff"}]}],mt=function(f){var t="mrMaps",n="mr.maps",e=f.fn[t],i="[data-maps-api-key]",r="div.map-marker",o="div.map-style",d="data-address",m="data-latlong",p="data-marker-image",g="data-marker-title",y="div.info-window",a="",v={MAP_LOADED:"loaded.mr.maps"},w={MARKER_IMAGE_URL:"assets/img/map-marker.png",MAP:{disableDefaultUI:!0,draggable:!0,scrollwheel:!1,zoom:17,zoomControl:!1}};w.MAP.styles=void 0!==dt?dt:void 0;var s=function(){function h(t){this.element=t,this.$element=f(t),this.markers=[],this.geocoder=new google.maps.Geocoder,this.markerElements=this.$element.find(r),this.styleElement=this.$element.find(o).first(),this.initMap(),this.createMarkers()}h.init=function(){for(var t=f.makeArray(f(i)),e=t.length;e--;){var n=f(t[e]);h.jQueryInterface.call(n,n.data())}};var t=h.prototype;return t.initMap=function(){var t,e=this,n=this.element,i=this.$element,r=void 0!==i.attr("data-zoom-controls"),o=void 0!==i.attr("data-zoom-controls")&&i.attr("data-zoom-controls"),a=void 0!==i.attr("data-latlong")&&i.attr("data-latlong"),s=!!a&&parseFloat(a.substr(0,a.indexOf(","))),l=!!a&&parseFloat(a.substr(a.indexOf(",")+1)),u=i.attr("data-address")||"",c={};try{c.styles=this.styleElement.length?JSON.parse(this.styleElement.html().trim()):void 0}catch(t){throw new Error(t)}if(c.zoom=i.attr("data-map-zoom")?parseInt(i.attr("data-map-zoom"),10):void 0,c.zoomControl=r,c.zoomControlOptions=!1!==o?{position:google.maps.ControlPosition[o]}:void 0,t=jQuery.extend({},w.MAP,c),this.map=new google.maps.Map(n,t),google.maps.event.addListenerOnce(this.map,"center_changed",function(){var t=f.Event(v.MAP_LOADED,{map:e.map});i.trigger(t)}),void 0!==s&&""!==s&&!1!==s&&void 0!==l&&""!==l&&!1!==l)this.map.setCenter(new google.maps.LatLng(s,l));else{if(""===u)throw new Error("No valid address or latitude/longitude pair provided for map.");this.geocodeAddress(u,h.centerMap,this,this.map)}},t.geocodeAddress=function(n,i,r,o){this.geocoder.geocode({address:n},function(t,e){if(e!==google.maps.GeocoderStatus.OK)throw new Error('There was a problem geocoding the address "'+n+'".');i(t,r,o)})},h.centerMap=function(t,e){e.map.setCenter(t[0].geometry.location)},h.moveMarker=function(t,e,n){n.setPosition(t[0].geometry.location)},t.createMarkers=function(){var c=this;w.MARKER={icon:{url:this.$element.attr(p)||w.MARKER_IMAGE_URL,scaledSize:new google.maps.Size(50,50)},title:a,optimised:!1},this.markerElements.each(function(t,e){var n,i=f(e),r=i.attr(d),o=i.attr(m),a=i.find(y),s={title:i.attr(g)};s.icon=void 0!==i.attr(p)?{url:i.attr(p),scaledSize:new google.maps.Size(50,50)}:void 0;var l=jQuery.extend({},w.MARKER,s);if(n=new google.maps.Marker(jQuery.extend({},l,{map:c.map})),a.length){var u=new google.maps.InfoWindow({content:a.first().html(),maxWidth:parseInt(a.attr("data-max-width")||"250",10)});n.addListener("click",function(){u.open(c.map,n)})}if(o)/(-?\d+(\.\d+)?),\s*(-?\d+(\.\d+)?)/.test(o)&&(n.setPosition(new google.maps.LatLng(parseFloat(o.substr(0,o.indexOf(","))),parseFloat(o.substr(o.indexOf(",")+1)))),c.markers[t]=n);else{if(!r)throw n=null,new Error("Invalid data-address or data-latlong provided for marker "+(t+1));c.geocodeAddress(r,h.moveMarker,c,n),c.markers[t]=n}})},h.jQueryInterface=function(){return this.each(function(){var t=f(this),e=t.data(n);e||(e=new h(this),t.data(n,e))})},W(h,null,[{key:"VERSION",get:function(){return"1.1.0"}}]),h}();if(document.querySelector("[data-maps-api-key]")&&!document.querySelector(".gMapsAPI")&&f("[data-maps-api-key]").length){var l=f("[data-maps-api-key]:first").attr("data-maps-api-key")||"";if(""!==l){var u=document.createElement("script");u.type="text/javascript",u.src="https://maps.googleapis.com/maps/api/js?key="+l+"&callback=theme.mrMaps.init",u.className="gMapsAPI",document.body.appendChild(u)}}return f.fn[t]=s.jQueryInterface,f.fn[t].Constructor=s,f.fn[t].noConflict=function(){return f.fn[t]=e,s.jQueryInterface},s}(jQuery),pt=(tt="mrOverlayNav",nt="."+(et="mr.overlayNav"),it=(X=O).fn[tt],rt={RESIZE:"resize"+nt,RESIZED:"resized"+nt,IMAGE_LOAD:"load",TOGGLE_SHOW:"show.bs.collapse",TOGGLE_HIDE:"hide.bs.collapse",NOTIFICATION_CLOSE:"",ALERT_CLOSE:"close.bs.alert"},ot="body > div.navbar-container",at="body > div.navbar-container > nav[data-overlay]",st="nav",lt="[data-overlay]",ut="img",ct="navbar-toggled-show",ht=function(){function n(t){this.ticking=!1,this.element=t,this.navHeight=this.getNavHeight(),this.container=n.getContainerElement(),this.overlayElement=n.getFirstOverlayElement(),this.setImageLoadEvent(),this.updateValues(),this.setResizeEvent(),this.setToggleEvent()}var t=n.prototype;return t.getNavHeight=function(){this.navHeight=this.element.getBoundingClientRect().height},t.updateValues=function(){this.getNavHeight(),this.updateContainer(),this.updateOverlayElement(),X(this.element).trigger(X.Event(rt.RESIZED))},t.updateContainer=function(){this.container&&(this.container.style.minHeight=this.navHeight+"px",this.container.style.marginBottom="-"+this.navHeight+"px")},t.updateOverlayElement=function(){this.overlayElement&&this.overlayElement.style.setProperty("padding-top",this.navHeight+"px","important")},t.setResizeEvent=function(){var t=this;X(window).on(rt.RESIZE+" "+rt.ALERT_CLOSE,function(){t.ticking||(window.requestAnimationFrame(function(){t.updateValues(),t.ticking=!1}),t.ticking=!0)})},t.setToggleEvent=function(){var n=this;X(this.container).on(rt.TOGGLE_SHOW+" "+rt.TOGGLE_HIDE,function(t){var e=t.type+"."+t.namespace===rt.TOGGLE_SHOW?"add":"remove";n.element.classList[e](ct)})},t.setImageLoadEvent=function(){var n=this,t=this.container.querySelectorAll(ut);z.forEach(t,function(t,e){e.addEventListener(rt.IMAGE_LOAD,function(){return n.updateValues()})})},n.getContainerElement=function(){return this.container||(this.container=document.querySelector(ot)),this.container},n.getFirstOverlayElement=function(){return document.querySelector(lt+":not("+st+")")},n.jQueryInterface=function(){return this.each(function(){var t=X(this),e=t.data(et);e||(e=new n(this),t.data(et,e))})},W(n,null,[{key:"VERSION",get:function(){return"1.0.0"}}]),n}(),X(document).ready(function(){for(var t=X.makeArray(X(at)),e=t.length;e--;){var n=X(t[e]);ht.jQueryInterface.call(n,n.data())}}),X.fn[tt]=ht.jQueryInterface,X.fn[tt].Constructor=ht,X.fn[tt].noConflict=function(){return X.fn[tt]=it,ht.jQueryInterface},ht);o.setup("[data-provider],.plyr"),(ft=O)(document).on("hide.bs.tab",function(t){ft(ft(t.target).attr("href")).find('[data-toggle="popover"]').popover("hide")}),ft(document).on("hide.bs.collapse",function(t){ft(t.target).find('[data-toggle="popover"]').popover("hide")}),a.highlightAll();var gt=function(i){if(void 0===b)throw new Error("mrReadingPosition requires scrollMonitor.js (https://github.com/stutrek/scrollMonitor)");var t="mrReadingPosition",r="mr.readingPosition",e=i.fn[t],o="reading-position-hidden",a={LOAD_DATA_API:"load.mr.readingPosition.data-api",RESIZE:"resize",SCROLL:"scroll"},n="progress.reading-position",s="[data-reading-position]",l="value",u="max",c=100,h=document.querySelectorAll(n),f=function(){return(0===document.documentElement.scrollTop?document.body.scrollTop:document.documentElement.scrollTop)||0},d=function(){function n(t){this.progressBars=h,this.element=t,this.top=0,this.bottom=0,this.height=0,this.scrollLength=0,this.articlePositionPercent=0,this.ticking=!1,this.inView=!1,this.reading=!1,this.initWatcher(t),this.initBarValues(),this.setValue(f()),this.setScrollEvent(),this.setResizeEvent()}var t=n.prototype;return t.initWatcher=function(t){var e=this,n=b.create(t);this.watcher=n,this.recalculateAll(),n.stateChange(function(){e.inView=n.isInViewport,e.reading=n.isAboveViewport&&n.isFullyInViewport,e.toggleBars(e.reading)})},t.initBarValues=function(){z.forEach(this.progressBars,function(t,e){e.setAttribute(u,c)})},t.setValue=function(t){var n=this;this.recalculatePercentage(t),z.forEach(this.progressBars,function(t,e){e.setAttribute(l,n.articlePositionPercent)})},t.toggleBars=function(n){z.forEach(this.progressBars,function(t,e){n?e.classList.remove(o):e.classList.add(o)})},t.setScrollEvent=function(){var e=this;window.addEventListener(a.SCROLL,function(){var t=f();!e.ticking&&e.inView&&e.reading&&(window.requestAnimationFrame(function(){e.setValue(t),e.ticking=!1}),e.ticking=!0)})},t.setResizeEvent=function(){var t=this;window.addEventListener(a.RESIZE,function(){return t.recalculateAll()})},t.recalculateAll=function(){this.watcher.recalculateLocation(),this.top=this.watcher.top,this.bottom=this.watcher.bottom,this.height=this.watcher.height,this.scrollLength=this.height-Math.max(document.documentElement.clientHeight,window.innerHeight||0),this.recalculatePercentage(f())},t.recalculatePercentage=function(t){this.articlePositionPercent=t?(t-this.top)/this.scrollLength*100:0},n.jQueryInterface=function(){return this.each(function(){var t=i(this),e=t.data(r);e||(e=new n(this),t.data(r,e))})},W(n,null,[{key:"VERSION",get:function(){return"1.0.0"}}]),n}();return i(window).on(a.LOAD_DATA_API,function(){if(0!==h.length)for(var t=i.makeArray(i(s)),e=t.length;e--;){var n=i(t[e]);d.jQueryInterface.call(n,n.data())}}),i.fn[t]=d.jQueryInterface,i.fn[t].Constructor=d,i.fn[t].noConflict=function(){return i.fn[t]=e,d.jQueryInterface},d}(jQuery),yt=new l("a[data-smooth-scroll]",{offset:O("body").attr("data-smooth-scroll-offset")||0}),vt=function(s){if(void 0===b)throw new Error("mrSticky requires scrollMonitor.js (https://github.com/stutrek/scrollMonitor)");var t="mrSticky",i="mr.sticky",e=s.fn[t],l="position-fixed",u="sticky-bottom",r="sticky-viewport-bottom",o="scrolled",a="min-height",c="max-width",h="top",f={LOAD_DATA_API:"load.mr.sticky.data-api",WINDOW_RESIZE:"resize",ALERT_CLOSED:"closed.bs.alert"},d="below-nav",m="bottom",p="sticky",g="[data-sticky]",y='body > div.navbar-container [data-sticky="top"]',v=".alert-dismissible",w=function(){function n(t){var e=s(t),n=e.data(p),i=e.closest("section")||null;this.element=t,this.stickBelowNav=n===d,this.stickBottom=n===m,this.stickyUntil=i,this.updateNavProperties(),this.isNavElement=e.is(this.navElement),this.initWatcher(e),this.updateCss(),this.setResizeEvent(),this.onWatcherChange(e),this.ticking=!1}var t=n.prototype;return t.initWatcher=function(t){var e=this,n=s(t),i=!this.isNavElement,r=this.stickBelowNav&&this.navIsSticky&&i?{top:this.navHeight}:0;r=this.stickBottom&&i?{bottom:-n.outerHeight}:r;var o=b.create(t,r);o.lock();var a=null!==this.stickyUntil?b.create(this.stickyUntil,{bottom:-(o.height+r.top)}):null;this.watcher=o,this.untilWatcher=a,this.navHeight=this.navHeight,this.isNavElement&&0===o.top&&!this.navIsAbsolute&&n.addClass(l),o.stateChange(function(){e.onWatcherChange(n)}),null!==a&&(a.exitViewport(function(){n.addClass(u)}),a.enterViewport(function(){n.removeClass(u)}))},t.onWatcherChange=function(t){t.toggleClass(l,this.watcher.isAboveViewport||!this.navIsAbsolute&&!this.stickBottom&&this.isNavElement&&0===this.watcher.top),t.toggleClass(o,this.watcher.isAboveViewport&&this.isNavElement&&!this.stickBottom),t.toggleClass(r,(this.watcher.isFullyInViewport||this.watcher.isAboveViewport)&&this.stickBottom),this.stickBottom||t.css(h,this.watcher.isAboveViewport&&this.navIsSticky&&this.stickBelowNav?this.navHeight:0)},t.setResizeEvent=function(){var t=this;s(v).on(f.ALERT_CLOSED,function(){t.watcher.isInViewport&&(t.watcher.unlock(),t.watcher.recalculateLocation(),t.watcher.lock()),t.onResize()}),s(window).on(f.WINDOW_RESIZE,function(){t.onResize()})},t.onResize=function(){var t=this;this.ticking||(window.requestAnimationFrame(function(){t.updateCss(),t.ticking=!1}),this.ticking=!0)},t.updateCss=function(){var t=s(this.element);t.css(c,t.parent().width()),this.updateNavProperties();var e=t.outerHeight(),n=!this.isNavElement;(!this.navIsAbsolute&&this.isNavElement||n)&&t.parent().css(a,e),this.navIsSticky&&n&&t.css(a,e)},t.updateNavProperties=function(){var t=this.navElement||s(y).first();this.navElement=t,this.navHeight=t.outerHeight(),this.navIsAbsolute="absolute"===t.css("position"),this.navIsSticky=0<t.length},n.jQueryInterface=function(){return this.each(function(){var t=s(this),e=t.data(i);e||(e=new n(this),t.data(i,e))})},W(n,null,[{key:"VERSION",get:function(){return"1.3.0"}}]),n}();return s(window).on(f.LOAD_DATA_API,function(){for(var t=s.makeArray(s(g)),e=t.length;e--;){var n=s(t[e]);w.jQueryInterface.call(n,n.data())}}),s.fn[t]=w.jQueryInterface,s.fn[t].Constructor=w,s.fn[t].noConflict=function(){return s.fn[t]=e,w.jQueryInterface},w}(O),wt=Math.ceil,bt=Math.floor,Et=function(t){return isNaN(t=+t)?0:(0<t?bt:wt)(t)},At=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},St=function(s){return function(t,e){var n,i,r=String(At(t)),o=Et(e),a=r.length;return o<0||a<=o?s?"":void 0:(n=r.charCodeAt(o))<55296||56319<n||o+1===a||(i=r.charCodeAt(o+1))<56320||57343<i?s?r.charAt(o):n:s?r.slice(o,o+2):i-56320+(n-55296<<10)+65536}},kt={codeAt:St(!1),charAt:St(!0)},Tt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function It(t,e){return t(e={exports:{}},e.exports),e.exports}var Ot,Ct,jt,Pt="object",Ft=function(t){return t&&t.Math==Math&&t},Vt=Ft(typeof globalThis==Pt&&globalThis)||Ft(typeof window==Pt&&window)||Ft(typeof self==Pt&&self)||Ft(typeof Tt==Pt&&Tt)||Function("return this")(),xt=function(t){try{return!!t()}catch(t){return!0}},Dt=!xt(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),Lt=function(t){return"object"==typeof t?null!==t:"function"==typeof t},_t=Vt.document,Rt=Lt(_t)&&Lt(_t.createElement),Mt=function(t){return Rt?_t.createElement(t):{}},Nt=!Dt&&!xt(function(){return 7!=Object.defineProperty(Mt("div"),"a",{get:function(){return 7}}).a}),qt=function(t){if(!Lt(t))throw TypeError(String(t)+" is not an object");return t},Qt=function(t,e){if(!Lt(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!Lt(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!Lt(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!Lt(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")},Ht=Object.defineProperty,zt={f:Dt?Ht:function(t,e,n){if(qt(t),e=Qt(e,!0),qt(n),Nt)try{return Ht(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Bt=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Ut=Dt?function(t,e,n){return zt.f(t,e,Bt(1,n))}:function(t,e,n){return t[e]=n,t},Wt=function(e,n){try{Ut(Vt,e,n)}catch(t){Vt[e]=n}return n},Gt=It(function(t){var e="__core-js_shared__",n=Vt[e]||Wt(e,{});(t.exports=function(t,e){return n[t]||(n[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.1.3",mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})}),Kt=Gt("native-function-to-string",Function.toString),Yt=Vt.WeakMap,Zt="function"==typeof Yt&&/native code/.test(Kt.call(Yt)),$t={}.hasOwnProperty,Jt=function(t,e){return $t.call(t,e)},Xt=0,te=Math.random(),ee=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++Xt+te).toString(36)},ne=Gt("keys"),ie=function(t){return ne[t]||(ne[t]=ee(t))},re={},oe=Vt.WeakMap;if(Zt){var ae=new oe,se=ae.get,le=ae.has,ue=ae.set;Ot=function(t,e){return ue.call(ae,t,e),e},Ct=function(t){return se.call(ae,t)||{}},jt=function(t){return le.call(ae,t)}}else{var ce=ie("state");re[ce]=!0,Ot=function(t,e){return Ut(t,ce,e),e},Ct=function(t){return Jt(t,ce)?t[ce]:{}},jt=function(t){return Jt(t,ce)}}var he,fe,de,me={set:Ot,get:Ct,has:jt,enforce:function(t){return jt(t)?Ct(t):Ot(t,{})},getterFor:function(n){return function(t){var e;if(!Lt(t)||(e=Ct(t)).type!==n)throw TypeError("Incompatible receiver, "+n+" required");return e}}},pe={}.propertyIsEnumerable,ge=Object.getOwnPropertyDescriptor,ye={f:ge&&!pe.call({1:2},1)?function(t){var e=ge(this,t);return!!e&&e.enumerable}:pe},ve={}.toString,we=function(t){return ve.call(t).slice(8,-1)},be="".split,Ee=xt(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==we(t)?be.call(t,""):Object(t)}:Object,Ae=function(t){return Ee(At(t))},Se=Object.getOwnPropertyDescriptor,ke={f:Dt?Se:function(t,e){if(t=Ae(t),e=Qt(e,!0),Nt)try{return Se(t,e)}catch(t){}if(Jt(t,e))return Bt(!ye.f.call(t,e),t[e])}},Te=It(function(t){var e=me.get,s=me.enforce,l=String(Kt).split("toString");Gt("inspectSource",function(t){return Kt.call(t)}),(t.exports=function(t,e,n,i){var r=!!i&&!!i.unsafe,o=!!i&&!!i.enumerable,a=!!i&&!!i.noTargetGet;"function"==typeof n&&("string"!=typeof e||Jt(n,"name")||Ut(n,"name",e),s(n).source=l.join("string"==typeof e?e:"")),t!==Vt?(r?!a&&t[e]&&(o=!0):delete t[e],o?t[e]=n:Ut(t,e,n)):o?t[e]=n:Wt(e,n)})(Function.prototype,"toString",function(){return"function"==typeof this&&e(this).source||Kt.call(this)})}),Ie=Vt,Oe=function(t){return"function"==typeof t?t:void 0},Ce=function(t,e){return arguments.length<2?Oe(Ie[t])||Oe(Vt[t]):Ie[t]&&Ie[t][e]||Vt[t]&&Vt[t][e]},je=Math.min,Pe=function(t){return 0<t?je(Et(t),9007199254740991):0},Fe=Math.max,Ve=Math.min,xe=function(s){return function(t,e,n){var i,r=Ae(t),o=Pe(r.length),a=function(t,e){var n=Et(t);return n<0?Fe(n+e,0):Ve(n,e)}(n,o);if(s&&e!=e){for(;a<o;)if((i=r[a++])!=i)return!0}else for(;a<o;a++)if((s||a in r)&&r[a]===e)return s||a||0;return!s&&-1}},De={includes:xe(!0),indexOf:xe(!1)}.indexOf,Le=function(t,e){var n,i=Ae(t),r=0,o=[];for(n in i)!Jt(re,n)&&Jt(i,n)&&o.push(n);for(;e.length>r;)Jt(i,n=e[r++])&&(~De(o,n)||o.push(n));return o},_e=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Re=_e.concat("length","prototype"),Me={f:Object.getOwnPropertyNames||function(t){return Le(t,Re)}},Ne={f:Object.getOwnPropertySymbols},qe=Ce("Reflect","ownKeys")||function(t){var e=Me.f(qt(t)),n=Ne.f;return n?e.concat(n(t)):e},Qe=function(t,e){for(var n=qe(e),i=zt.f,r=ke.f,o=0;o<n.length;o++){var a=n[o];Jt(t,a)||i(t,a,r(e,a))}},He=/#|\.prototype\./,ze=function(t,e){var n=Ue[Be(t)];return n==Ge||n!=We&&("function"==typeof e?xt(e):!!e)},Be=ze.normalize=function(t){return String(t).replace(He,".").toLowerCase()},Ue=ze.data={},We=ze.NATIVE="N",Ge=ze.POLYFILL="P",Ke=ze,Ye=ke.f,Ze=function(t,e){var n,i,r,o,a,s=t.target,l=t.global,u=t.stat;if(n=l?Vt:u?Vt[s]||Wt(s,{}):(Vt[s]||{}).prototype)for(i in e){if(o=e[i],r=t.noTargetGet?(a=Ye(n,i))&&a.value:n[i],!Ke(l?i:s+(u?".":"#")+i,t.forced)&&void 0!==r){if(typeof o==typeof r)continue;Qe(o,r)}(t.sham||r&&r.sham)&&Ut(o,"sham",!0),Te(n,i,o,t)}},$e=function(t){return Object(At(t))},Je=!xt(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),Xe=ie("IE_PROTO"),tn=Object.prototype,en=Je?Object.getPrototypeOf:function(t){return t=$e(t),Jt(t,Xe)?t[Xe]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?tn:null},nn=!!Object.getOwnPropertySymbols&&!xt(function(){return!String(Symbol())}),rn=Vt.Symbol,on=Gt("wks"),an=function(t){return on[t]||(on[t]=nn&&rn[t]||(nn?rn:ee)("Symbol."+t))},sn=an("iterator"),ln=!1;[].keys&&("next"in(de=[].keys())?(fe=en(en(de)))!==Object.prototype&&(he=fe):ln=!0),null==he&&(he={}),Jt(he,sn)||Ut(he,sn,function(){return this});var un={IteratorPrototype:he,BUGGY_SAFARI_ITERATORS:ln},cn=Object.keys||function(t){return Le(t,_e)},hn=Dt?Object.defineProperties:function(t,e){qt(t);for(var n,i=cn(e),r=i.length,o=0;o<r;)zt.f(t,n=i[o++],e[n]);return t},fn=Ce("document","documentElement"),dn=ie("IE_PROTO"),mn="prototype",pn=function(){},gn=function(){var t,e=Mt("iframe"),n=_e.length,i="script";for(e.style.display="none",fn.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write("<script>document.F=Object</"+i+">"),t.close(),gn=t.F;n--;)delete gn[mn][_e[n]];return gn()},yn=Object.create||function(t,e){var n;return null!==t?(pn[mn]=qt(t),n=new pn,pn[mn]=null,n[dn]=t):n=gn(),void 0===e?n:hn(n,e)};re[dn]=!0;var vn=zt.f,wn=an("toStringTag"),bn=function(t,e,n){t&&!Jt(t=n?t:t.prototype,wn)&&vn(t,wn,{configurable:!0,value:e})},En={},An=un.IteratorPrototype,Sn=function(){return this},kn=Object.setPrototypeOf||("__proto__"in{}?function(){var n,i=!1,t={};try{(n=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(t,[]),i=t instanceof Array}catch(t){}return function(t,e){return qt(t),function(t){if(!Lt(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(e),i?n.call(t,e):t.__proto__=e,t}}():void 0),Tn=un.IteratorPrototype,In=un.BUGGY_SAFARI_ITERATORS,On=an("iterator"),Cn="values",jn="entries",Pn=function(){return this},Fn=kt.charAt,Vn="String Iterator",xn=me.set,Dn=me.getterFor(Vn);!function(t,e,n,i,r,o,a){!function(t,e,n){var i=e+" Iterator";t.prototype=yn(An,{next:Bt(1,n)}),bn(t,i,!1),En[i]=Sn}(n,e,i);var s,l,u,c=function(t){if(t===r&&p)return p;if(!In&&t in d)return d[t];switch(t){case"keys":case Cn:case jn:return function(){return new n(this,t)}}return function(){return new n(this)}},h=e+" Iterator",f=!1,d=t.prototype,m=d[On]||d["@@iterator"]||r&&d[r],p=!In&&m||c(r),g="Array"==e&&d.entries||m;if(g&&(s=en(g.call(new t)),Tn!==Object.prototype&&s.next&&(en(s)!==Tn&&(kn?kn(s,Tn):"function"!=typeof s[On]&&Ut(s,On,Pn)),bn(s,h,!0))),r==Cn&&m&&m.name!==Cn&&(f=!0,p=function(){return m.call(this)}),d[On]!==p&&Ut(d,On,p),En[e]=p,r)if(l={values:c(Cn),keys:o?p:c("keys"),entries:c(jn)},a)for(u in l)!In&&!f&&u in d||Te(d,u,l[u]);else Ze({target:e,proto:!0,forced:In||f},l)}(String,"String",function(t){xn(this,{type:Vn,string:String(t),index:0})},function(){var t,e=Dn(this),n=e.string,i=e.index;return i>=n.length?{value:void 0,done:!0}:(t=Fn(n,i),e.index+=t.length,{value:t,done:!1})});var Ln=function(i,r,t){if(function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function")}(i),void 0===r)return i;switch(t){case 0:return function(){return i.call(r)};case 1:return function(t){return i.call(r,t)};case 2:return function(t,e){return i.call(r,t,e)};case 3:return function(t,e,n){return i.call(r,t,e,n)}}return function(){return i.apply(r,arguments)}},_n=function(e,t,n,i){try{return i?t(qt(n)[0],n[1]):t(n)}catch(t){var r=e.return;throw void 0!==r&&qt(r.call(e)),t}},Rn=an("iterator"),Mn=Array.prototype,Nn=function(t,e,n){var i=Qt(e);i in t?zt.f(t,i,Bt(0,n)):t[i]=n},qn=an("toStringTag"),Qn="Arguments"==we(function(){return arguments}()),Hn=an("iterator"),zn=function(t){if(null!=t)return t[Hn]||t["@@iterator"]||En[function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),qn))?n:Qn?we(e):"Object"==(i=we(e))&&"function"==typeof e.callee?"Arguments":i}(t)]},Bn=an("iterator"),Un=!1;try{var Wn=0,Gn={next:function(){return{done:!!Wn++}},return:function(){Un=!0}};Gn[Bn]=function(){return this},Array.from(Gn,function(){throw 2})}catch(t){}var Kn=!function(t,e){if(!e&&!Un)return!1;var n=!1;try{var i={};i[Bn]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(t){}return n}(function(t){Array.from(t)});Ze({target:"Array",stat:!0,forced:Kn},{from:function(t){var e,n,i,r,o=$e(t),a="function"==typeof this?this:Array,s=arguments.length,l=1<s?arguments[1]:void 0,u=void 0!==l,c=0,h=zn(o);if(u&&(l=Ln(l,2<s?arguments[2]:void 0,2)),null==h||a==Array&&function(t){return void 0!==t&&(En.Array===t||Mn[Rn]===t)}(h))for(n=new a(e=Pe(o.length));c<e;c++)Nn(n,c,u?l(o[c],c):o[c]);else for(r=h.call(o),n=new a;!(i=r.next()).done;c++)Nn(n,c,u?_n(r,l,[i.value,c],!0):i.value);return n.length=c,n}});Ie.Array.from;u.SVGInjector(document.querySelectorAll("[data-inject-svg]"));var Yn=function(c){if(void 0===A)throw new Error("mrTwitterFetcher requires twitterFetcher.js (https://github.com/jasonmayes/Twitter-Post-Fetcher)");var t="mrTwitterFetcher",i="mr.twitterFetcher",e="."+i,n=c.fn[t],h={LOAD_DATA_API:"load"+e+".data-api",RESIZE:"resize"+e,READY:"ready"+e,APPEND:"tweetAppended"+e},r="[data-twitter-fetcher]",o="data-twitter",f=".user",d=".tweet",m=".timePosted",p=".interact",a="twitter",s=6,l="username",u="max-tweets",g="flickity",y="twitterFlickity",v="isotope",w=function(){function n(t){var e=c(t);this.element=t,this.element.id="tweets-"+(new Date).getTime(),this.username=e.data(l).replace("@","")||a,this.maxTweets=parseInt(e.data(u),10)||s,this.slider=null!==this.element.getAttribute(o+"-"+g),this.slider=this.slider&&"object"==typeof e.data(y)?e.data(y):this.slider,this.isotope=null!==this.element.getAttribute(o+"-"+v),this.initTwitterFeed()}return n.prototype.initTwitterFeed=function(){var u=this;this.config={profile:{screenName:this.username},domId:this.element.id,maxTweets:this.maxTweets,enableLinks:!0,showUser:!0,showTime:!0,dateFunction:"",showRetweet:!1,customCallback:function(t){for(var e=c(u.element),n=e.children().first().detach(),i=t.length,r=0;r<i;){var o=c("
").append(c(t[r])),a=n.clone();a.find(d).html(o.find(d).html()),a.find(f).html(o.find(f).html()),a.find(m).html(o.find(m).html()),a.find(p).html(o.find(p).html()),e.append(a),r+=1;var s=c.Event(h.APPEND);s.appendedElement=a,s.mrTwitterFetcher=u,c(u.element).trigger(s)}if(!0===u.slider||"object"==typeof u.slider){if(void 0===E)throw new Error("mrTwitterFetcher requires flickity.js (https://github.com/metafizzy/flickity)");e.data("flickity",new E(u.element,u.slider))}else if(!0===u.isotope){if("undefined"==typeof Isotope)throw new Error("mrTwitterFetcher requires isotope.js (https://github.com/metafizzy/isotope)");c(u.element).mrIsotope()}var l=c.Event(h.READY);l.mrTwitterFetcher=u,c(u.element).trigger(l)}},A.fetch(this.config)},n.jQueryInterface=function(){return this.each(function(){var t=c(this),e=t.data(i);e||(e=new n(this),t.data(i,e))})},W(n,null,[{key:"VERSION",get:function(){return"1.0.0"}}]),n}();return c(window).on(h.LOAD_DATA_API,function(){for(var t=c.makeArray(c(r)),e=t.length;e--;){var n=c(t[e]);w.jQueryInterface.call(n,n.data())}}),c.fn[t]=w.jQueryInterface,c.fn[t].Constructor=w,c.fn[t].noConflict=function(){return c.fn[t]=n,w.jQueryInterface},w}(O),Zn=function(i){if("function"!=typeof c)throw new Error("mrTypedText requires typed.js (https://github.com/mattboldt/typed.js/)");if(void 0===b)throw new Error("mrTypedText requires scrollMonitor.js (https://github.com/stutrek/scrollMonitor)");var t="mrTypedText",r="mr.typedText",e=i.fn[t],n={LOAD_DATA_API:"load.mr.typedText.data-api"},o="[data-typed-text]",a=function(){function n(t){this.element=t;var e=i(t);this.Typed=new c(this.element,e.data()),this.initWatcher(t)}return n.jQueryInterface=function(){return this.each(function(){var t=i(this),e=t.data(r);e||(e=new n(this),t.data(r,e))})},n.prototype.initWatcher=function(t){var e=this,n=b.create(t);n.stateChange(function(){n.isInViewport?e.Typed.start():e.Typed.stop()})},W(n,null,[{key:"VERSION",get:function(){return"1.0.0"}}]),n}();return i(window).on(n.LOAD_DATA_API,function(){for(var t=i.makeArray(i(o)),e=t.length;e--;){var n=i(t[e]);a.jQueryInterface.call(n,n.data())}}),i.fn[t]=a.jQueryInterface,i.fn[t].Constructor=a,i.fn[t].noConflict=function(){return i.fn[t]=e,a.jQueryInterface},a}(O);O(document).ready(function(){O(".wizard").smartWizard({transitionEffect:"fade",showStepURLhash:!1,toolbarSettings:{toolbarPosition:"none"}})}),function(){if("undefined"==typeof $)throw new TypeError("Medium Rare JavaScript requires jQuery. jQuery must be included before theme.js.")}(),t.mrCountdown=N,t.mrCountup=H,t.mrDropdownGrid=B,t.mrFlatpickr=U,t.mrFormEmail=Y,t.mrIonRangeSlider=Z,t.mrIsotope=J,t.mrMaps=mt,t.mrMapsStyle=dt,t.mrOverlayNav=pt,t.mrReadingPosition=gt,t.mrSmoothScroll=yt,t.mrSticky=vt,t.mrTwitterFetcher=Yn,t.mrTypedText=Zn,t.mrUtil=z,Object.defineProperty(t,"__esModule",{value:!0})}); //# sourceMappingURL=theme.js.map