');var n=e.find(W);n.addClass(s.slidesNavPosition);for(var i=0;i');n.css("margin-left","-"+n.width()/2+"px"),n.find("li").first().find("a").addClass(p)}function zt(e,t,n,i){var o="";s.anchors.length&&!s.lockAnchors&&(e?("undefined"!=typeof n&&(o=n),"undefined"==typeof t&&(t=e),un=t,Ft(o+"/"+t)):"undefined"!=typeof e?(un=t,Ft(n)):Ft(n)),Nt()}function Ft(e){if(s.recordHistory)location.hash=e;else if(pn||hn)t.history.replaceState(o,o,"#"+e);else{var n=t.location.href.split("#")[0];t.location.replace(n+"#"+e)}}function Ht(e){var t=e.data("anchor"),n=e.index();return"undefined"==typeof t&&(t=n),t}function Nt(){var t=e(C),n=t.find(B),i=Ht(t),o=Ht(n),a=String(i);n.length&&(a=a+"-"+o),a=a.replace("/","-").replace("#","");var r=new RegExp("\\b\\s?"+m+"-[^\\s]+\\b","g");ln[0].className=ln[0].className.replace(r,""),ln.addClass(m+"-"+a)}function Rt(){var e,i=n.createElement("p"),a={webkitTransform:"-webkit-transform",OTransform:"-o-transform",msTransform:"-ms-transform",MozTransform:"-moz-transform",transform:"transform"};n.body.insertBefore(i,null);for(var r in a)i.style[r]!==o&&(i.style[r]="translate3d(1px,1px,1px)",e=t.getComputedStyle(i).getPropertyValue(a[r]));return n.body.removeChild(i),e!==o&&e.length>0&&"none"!==e}function Wt(){n.addEventListener?(n.removeEventListener("mousewheel",Re,!1),n.removeEventListener("wheel",Re,!1),n.removeEventListener("MozMousePixelScroll",Re,!1)):n.detachEvent("onmousewheel",Re)}function _t(){var e,i="";t.addEventListener?e="addEventListener":(e="attachEvent",i="on");var a="onwheel"in n.createElement("div")?"wheel":n.onmousewheel!==o?"mousewheel":"DOMMouseScroll";"DOMMouseScroll"==a?n[e](i+"MozMousePixelScroll",Re,!1):n[e](i+a,Re,!1)}function Vt(){vn.on("mousedown",lt).on("mouseup",ct)}function Xt(){vn.off("mousedown",lt).off("mouseup",ct)}function Ut(){if(s.autoScrolling&&(pn||hn)){var t=Qt();ln.off("touchmove "+t.move).on("touchmove "+t.move,Be),e(r).off("touchstart "+t.down).on("touchstart "+t.down,He).off("touchmove "+t.move).on("touchmove "+t.move,Pe)}}function Yt(){if(pn||hn){var t=Qt();e(r).off("touchstart "+t.down).off("touchmove "+t.move)}}function Qt(){var e;return e=t.PointerEvent?{down:"pointerdown",move:"pointermove"}:{down:"MSPointerDown",move:"MSPointerMove"}}function Zt(e){var t=[];return t.y="undefined"!=typeof e.pageY&&(e.pageY||e.pageX)?e.pageY:e.touches[0].pageY,t.x="undefined"!=typeof e.pageX&&(e.pageY||e.pageX)?e.pageX:e.touches[0].pageX,hn&&Fe(e)&&s.scrollBar&&(t.y=e.touches[0].pageY,t.x=e.touches[0].pageX),t}function Kt(e,t){Y(0,"internal"),"undefined"!=typeof t&&(yn=!0),vt(e.closest(z),e),"undefined"!=typeof t&&(yn=!1),Y(On.scrollingSpeed,"internal")}function Jt(e){var t=i.round(e);if(s.scrollBar)vn.scrollTop(t);else if(s.css3){var n="translate3d(0px, -"+t+"px, 0px)";qt(n,!1)}else vn.css("top",-t)}function Gt(e){return{"-webkit-transform":e,"-moz-transform":e,"-ms-transform":e,transform:e}}function en(e,t,n){switch(t){case"up":Sn[n].up=e;break;case"down":Sn[n].down=e;break;case"left":Sn[n].left=e;break;case"right":Sn[n].right=e;break;case"all":"m"==n?re(e):se(e)}}function tn(t){l(!1,"internal"),re(!1),se(!1),vn.addClass(u),clearTimeout(En),clearTimeout(xn),clearTimeout(kn),clearTimeout(Tn),clearTimeout($n),te.off("scroll",qe).off("hashchange",ot).off("resize",wt),ne.off("click touchstart",O+" a").off("mouseenter",O+" li").off("mouseleave",O+" li").off("click touchstart",_).off("mouseover",s.normalScrollElements).off("mouseout",s.normalScrollElements),e(w).off("click touchstart",X),clearTimeout(En),clearTimeout(xn),t&&nn()}function nn(){Jt(0),vn.find("img[data-src], source[data-src], audio[data-src], iframe[data-src]").each(function(){e(this).attr("src",e(this).data("src")),e(this).removeAttr("data-src")}),e(O+", "+W+", "+X).remove(),e(w).css({height:"","background-color":"",padding:""}),e(j).css({width:""}),vn.css({height:"",position:"","-ms-touch-action":"","touch-action":""}),sn.css({overflow:"",height:""}),e("html").removeClass(f),ln.removeClass(c),e.each(ln.get(0).className.split(/\s+/),function(e,t){0===t.indexOf(m)&&ln.removeClass(t)}),e(w+", "+j).each(function(){s.scrollOverflowHandler.remove(e(this)),e(this).removeClass(N+" "+p)}),kt(vn),vn.find(E+", "+H+", "+z).each(function(){e(this).replaceWith(this.childNodes)}),sn.scrollTop(0);var t=[b,L,F];e.each(t,function(t,n){e("."+n).removeClass(n)})}function on(e,t,n){s[e]=t,"internal"!==n&&(On[e]=t)}function an(){var t=["fadingEffect","continuousHorizontal","scrollHorizontally","interlockedSlides","resetSliders","responsiveSlides"];return e("html").hasClass(f)?void rn("error","Fullpage.js can only be initialized once and you are doing it multiple times!"):(s.continuousVertical&&(s.loopTop||s.loopBottom)&&(s.continuousVertical=!1,rn("warn","Option `loopTop/loopBottom` is mutually exclusive with `continuousVertical`; `continuousVertical` disabled")),s.scrollBar&&s.scrollOverflow&&rn("warn","Option `scrollBar` is mutually exclusive with `scrollOverflow`. Sections with scrollOverflow might not work well in Firefox"),s.continuousVertical&&s.scrollBar&&(s.continuousVertical=!1,rn("warn","Option `scrollBar` is mutually exclusive with `continuousVertical`; `continuousVertical` disabled")),t.forEach(function(e){s[e]&&rn("warn","fullpage.js extensions require jquery.fullpage.extensions.min.js file instead of the usual jquery.fullpage.js. Requested: "+e)}),void e.each(s.anchors,function(t,n){var i=ne.find("[name]").filter(function(){return e(this).attr("name")&&e(this).attr("name").toLowerCase()==n.toLowerCase()}),o=ne.find("[id]").filter(function(){return e(this).attr("id")&&e(this).attr("id").toLowerCase()==n.toLowerCase()});(o.length||i.length)&&(rn("error","data-anchor tags can not have the same value as any `id` element on the site (or `name` element for IE)."),o.length&&rn("error",'"'+n+'" is is being used by another element `id` property'),i.length&&rn("error",'"'+n+'" is is being used by another element `name` property'))}))}function rn(e,t){console&&console[e]&&void 0}if(e("html").hasClass(f))return void an();var sn=e("html, body"),ln=e("body"),cn=e.fn.fullpage;s=e.extend({menu:!1,anchors:[],lockAnchors:!1,navigation:!1,navigationPosition:"right",navigationTooltips:[],showActiveTooltip:!1,slidesNavigation:!1,slidesNavPosition:"bottom",scrollBar:!1,hybrid:!1,css3:!0,scrollingSpeed:700,autoScrolling:!0,fitToSection:!0,fitToSectionDelay:1e3,easing:"easeInOutCubic",easingcss3:"ease",loopBottom:!1,loopTop:!1,loopHorizontal:!0,continuousVertical:!1,continuousHorizontal:!1,scrollHorizontally:!1,interlockedSlides:!1,resetSliders:!1,fadingEffect:!1,normalScrollElements:null,scrollOverflow:!1,scrollOverflowHandler:oe,scrollOverflowOptions:null,touchSensitivity:5,normalScrollElementTouchThreshold:5,bigSectionsDestination:null,keyboardScrolling:!0,animateAnchor:!0,recordHistory:!0,controlArrows:!0,controlArrowColor:"#fff",verticalCentered:!0,sectionsColor:[],paddingTop:0,paddingBottom:0,fixedElements:null,responsive:0,responsiveWidth:0,responsiveHeight:0,responsiveSlides:!1,sectionSelector:y,slideSelector:D,afterLoad:null,onLeave:null,afterRender:null,afterResize:null,afterReBuild:null,afterSlideLoad:null,onSlideLeave:null,afterResponsive:null,lazyLoading:!0},s);var dn,un,fn,mn=!1,pn=navigator.userAgent.match(/(iPhone|iPod|iPad|Android|playbook|silk|BlackBerry|BB10|Windows Phone|Tizen|Bada|webOS|IEMobile|Opera Mini)/),hn="ontouchstart"in t||navigator.msMaxTouchPoints>0||navigator.maxTouchPoints,vn=e(this),gn=te.height(),yn=!1,bn=!0,wn=!0,Cn=[],Sn={};Sn.m={up:!0,down:!0,left:!0,right:!0},Sn.k=e.extend(!0,{},Sn.m);var kn,xn,En,Tn,$n,An,On=e.extend(!0,{},s);an(),ie.click=hn,ie=e.extend(ie,s.scrollOverflowOptions),e.extend(e.easing,{easeInOutCubic:function(e,t,n,i,o){return(t/=o/2)<1?i/2*t*t*t+n:i/2*((t-=2)*t*t+2)+n}}),e(this).length&&(cn.setAutoScrolling=l,cn.setRecordHistory=V,cn.setScrollingSpeed=Y,cn.setFitToSection=K,cn.setLockAnchors=J,cn.setMouseWheelScrolling=ae,cn.setAllowScrolling=re,cn.setKeyboardScrolling=se,cn.moveSectionUp=le,cn.moveSectionDown=ce,cn.silentMoveTo=de,cn.moveTo=ue,cn.moveSlideRight=fe,cn.moveSlideLeft=me,cn.reBuild=pe,cn.setResponsive=he,cn.getFullpageData=ve,cn.destroy=tn,ge(),ye());var Mn=!1,In=0,qn=0,Dn=0,Ln=0,jn=0,Bn=(new Date).getTime(),Pn=0,zn=0,Fn=gn},"undefined"!=typeof IScroll&&(IScroll.prototype.wheelOn=function(){this.wrapper.addEventListener("wheel",this),this.wrapper.addEventListener("mousewheel",this),this.wrapper.addEventListener("DOMMouseScroll",this)},IScroll.prototype.wheelOff=function(){this.wrapper.removeEventListener("wheel",this),this.wrapper.removeEventListener("mousewheel",this),this.wrapper.removeEventListener("DOMMouseScroll",this)});var oe={refreshId:null,iScrollInstances:[],onLeave:function(){var t=e(C).find(l).data("iscrollInstance");"undefined"!=typeof t&&t&&t.wheelOff()},beforeLeave:function(){oe.onLeave()},afterLoad:function(){var t=e(C).find(l).data("iscrollInstance");"undefined"!=typeof t&&t&&t.wheelOn()},create:function(t,n){var i=t.find(l);i.height(n),i.each(function(){var t=jQuery(this),n=t.data("iscrollInstance");n&&e.each(oe.iScrollInstances,function(){e(this).destroy()}),n=new IScroll(t.get(0),ie),oe.iScrollInstances.push(n),n.wheelOff(),t.data("iscrollInstance",n)})},isScrolled:function(e,t){var n=t.data("iscrollInstance");return!n||("top"===e?n.y>=0&&!t.scrollTop():"bottom"===e?0-n.y+t.scrollTop()+1+t.innerHeight()>=t[0].scrollHeight:void 0)},scrollable:function(e){return e.find(z).length?e.find(B).find(l):e.find(l)},scrollHeight:function(e){return e.find(l).children().first().get(0).scrollHeight},remove:function(e){var t=e.find(l);if(t.length){var n=t.data("iscrollInstance");n.destroy(),t.data("iscrollInstance",null)}e.find(l).children().first().children().first().unwrap().unwrap()},update:function(t,n){clearTimeout(oe.refreshId),oe.refreshId=setTimeout(function(){e.each(oe.iScrollInstances,function(){e(this).get(0).refresh()})},150),t.find(l).css("height",n+"px").parent().css("height",n+"px")},wrapContent:function(){return'
'}}}),function(e){"use strict";function t(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function n(t){var n=0,i=0;if(!t)var t=e.event;return t.pageX||t.pageY?(n=t.pageX,i=t.pageY):(t.clientX||t.clientY)&&(n=t.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,i=t.clientY+document.body.scrollTop+document.documentElement.scrollTop),{x:n,y:i}}function i(e,n){this.DOM={},this.DOM.el=e,this.options=t({},this.options),t(this.options,n),this._init()}i.prototype.options={movement:{imgWrapper:{translation:{x:0,y:0,z:0},rotation:{x:-5,y:5,z:0},reverseAnimation:{duration:1200,easing:"easeOutElastic",elasticity:600}},lines:{translation:{x:10,y:10,z:[0,10]},reverseAnimation:{duration:1e3,easing:"easeOutExpo",elasticity:600}},caption:{translation:{x:20,y:20,z:0},rotation:{x:0,y:0,z:0},reverseAnimation:{duration:1500,easing:"easeOutElastic",elasticity:600}},shine:{translation:{x:50,y:50,z:0},reverseAnimation:{duration:1200,easing:"easeOutElastic",elasticity:600}}}},i.prototype._init=function(){this.DOM.animatable={},this.DOM.animatable.imgWrapper=this.DOM.el.querySelector(".tilter__figure"),this.DOM.animatable.lines=this.DOM.el.querySelector(".tilter__deco--lines"),this.DOM.animatable.caption=this.DOM.el.querySelector(".tilter__caption"),this.DOM.animatable.overlay=this.DOM.el.querySelector(".tilter__deco--overlay"),this.DOM.animatable.shine=this.DOM.el.querySelector(".tilter__deco--shine > div"),this._initEvents()},i.prototype._initEvents=function(){var e=this;this.mouseenterFn=function(){for(var t in e.DOM.animatable)anime.remove(e.DOM.animatable[t])},this.mousemoveFn=function(t){requestAnimationFrame(function(){e._layout(t)})},this.mouseleaveFn=function(t){requestAnimationFrame(function(){for(var t in e.DOM.animatable)void 0!=e.options.movement[t]&&anime({targets:e.DOM.animatable[t],duration:void 0!=e.options.movement[t].reverseAnimation?e.options.movement[t].reverseAnimation.duration||0:1,easing:void 0!=e.options.movement[t].reverseAnimation?e.options.movement[t].reverseAnimation.easing||"linear":"linear",elasticity:void 0!=e.options.movement[t].reverseAnimation?e.options.movement[t].reverseAnimation.elasticity||null:null,scaleX:1,scaleY:1,scaleZ:1,translateX:0,translateY:0,translateZ:0,rotateX:0,rotateY:0,rotateZ:0})})},this.DOM.el.addEventListener("mousemove",this.mousemoveFn),this.DOM.el.addEventListener("mouseleave",this.mouseleaveFn),this.DOM.el.addEventListener("mouseenter",this.mouseenterFn)},i.prototype._layout=function(e){var t=n(e),i={left:document.body.scrollLeft+document.documentElement.scrollLeft,top:document.body.scrollTop+document.documentElement.scrollTop},o=this.DOM.el.getBoundingClientRect(),a={x:t.x-o.left-i.left,y:t.y-o.top-i.top};for(var r in this.DOM.animatable)if(void 0!=this.DOM.animatable[r]&&void 0!=this.options.movement[r]){var s=void 0!=this.options.movement[r]?this.options.movement[r].translation||{x:0,y:0,z:0}:{x:0,y:0,z:0},l=void 0!=this.options.movement[r]?this.options.movement[r].rotation||{x:0,y:0,z:0}:{x:0,y:0,z:0},c=function(e){for(var t in e)void 0==e[t]?e[t]=[0,0]:"number"==typeof e[t]&&(e[t]=[-1*e[t],e[t]])};c(s),c(l);var d={translation:{x:(s.x[1]-s.x[0])/o.width*a.x+s.x[0],y:(s.y[1]-s.y[0])/o.height*a.y+s.y[0],z:(s.z[1]-s.z[0])/o.height*a.y+s.z[0]},rotation:{x:(l.x[1]-l.x[0])/o.height*a.y+l.x[0],y:(l.y[1]-l.y[0])/o.width*a.x+l.y[0],z:(l.z[1]-l.z[0])/o.width*a.x+l.z[0]}};this.DOM.animatable[r].style.WebkitTransform=this.DOM.animatable[r].style.transform="translateX("+d.translation.x+"px) translateY("+d.translation.y+"px) translateZ("+d.translation.z+"px) rotateX("+d.rotation.x+"deg) rotateY("+d.rotation.y+"deg) rotateZ("+d.rotation.z+"deg)"}},e.TiltFx=i}(window),!function(e,t,n){"use strict";!function i(e,t,n){function o(r,s){if(!t[r]){if(!e[r]){var l="function"==typeof require&&require;if(!s&&l)return l(r,!0);if(a)return a(r,!0);var c=new Error("Cannot find module '"+r+"'");throw c.code="MODULE_NOT_FOUND",c}var d=t[r]={exports:{}};e[r][0].call(d.exports,function(t){var n=e[r][1][t];return o(n?n:t)},d,d.exports,i,e,t,n)}return t[r].exports}for(var a="function"==typeof require&&require,r=0;r=0;)n=n.replace(" "+t+" "," ");e.className=n.replace(/^\s+|\s+$/g,"")}},l=function(e){var n=t.createElement("div");return n.appendChild(t.createTextNode(e)),n.innerHTML},c=function(e){e.style.opacity="",e.style.display="block"},d=function(e){if(e&&!e.length)return c(e);for(var t=0;t0?setTimeout(o,t):e.style.display="none"};i()},g=function(n){if("function"==typeof MouseEvent){var i=new MouseEvent("click",{view:e,bubbles:!1,cancelable:!0});n.dispatchEvent(i)}else if(t.createEvent){var o=t.createEvent("MouseEvents");o.initEvent("click",!1,!1),n.dispatchEvent(o)}else t.createEventObject?n.fireEvent("onclick"):"function"==typeof n.onclick&&n.onclick()},y=function(t){"function"==typeof t.stopPropagation?(t.stopPropagation(),t.preventDefault()):e.event&&e.event.hasOwnProperty("cancelBubble")&&(e.event.cancelBubble=!0)};o.hasClass=a,o.addClass=r,o.removeClass=s,o.escapeHtml=l,o._show=c,o.show=d,o._hide=u,o.hide=f,o.isDescendant=m,o.getTopMargin=p,o.fadeIn=h,o.fadeOut=v,o.fireClick=g,o.stopEventPropagation=y},{}],5:[function(t,i,o){Object.defineProperty(o,"__esModule",{value:!0});var a=t("./handle-dom"),r=t("./handle-swal-dom"),s=function(t,i,o){var s=t||e.event,l=s.keyCode||s.which,c=o.querySelector("button.confirm"),d=o.querySelector("button.cancel"),u=o.querySelectorAll("button[tabindex]");if(-1!==[9,13,32,27].indexOf(l)){for(var f=s.target||s.srcElement,m=-1,p=0;p"),l.innerHTML=e.html?e.text:(0,r.escapeHtml)(e.text||"").split("\n").join(" "),e.text&&(0,r.show)(l),e.customClass)(0,r.addClass)(t,e.customClass),t.setAttribute("data-custom-class",e.customClass);else{var u=t.getAttribute("data-custom-class");(0,r.removeClass)(t,u),t.setAttribute("data-custom-class","")}if((0,r.hide)(t.querySelectorAll(".sa-icon")),e.type&&!(0,o.isIE8)()){var f=function(){for(var i=!1,o=0;oi;i++)n=parseInt(e.substr(2*i,2),16),n=Math.round(Math.min(Math.max(0,n+n*t),255)).toString(16),o+=("00"+n).substr(n.length);return o};i.extend=o,i.hexToRgb=a,i.isIE8=r,i.logStr=s,i.colorLuminance=l},{}]},{},[1]),"function"==typeof define&&define.amd?define(function(){return sweetAlert}):"undefined"!=typeof module&&module.exports&&(module.exports=sweetAlert)}(window,document),function(){this.Calendly={}}.call(this),Calendly.domReady=function(e){var t=!1,n=function(){document.addEventListener?(document.removeEventListener("DOMContentLoaded",i),window.removeEventListener("load",i)):(document.detachEvent("onreadystatechange",i),window.detachEvent("onload",i))},i=function(){t||!document.addEventListener&&"load"!==event.type&&"complete"!==document.readyState||(t=!0,n(),e())};if("complete"===document.readyState)e();else if(document.addEventListener)document.addEventListener("DOMContentLoaded",i),window.addEventListener("load",i);else{document.attachEvent("onreadystatechange",i),window.attachEvent("onload",i);var o=!1;try{o=null==window.frameElement&&document.documentElement}catch(a){}o&&o.doScroll&&!function r(){if(!t){try{o.doScroll("left")}catch(i){return setTimeout(r,50)}t=!0,n(),e()}}()}},function(){Calendly.initInlineWidgets=function(){return Calendly.domReady(function(){return Calendly.createInlineWidgets()})},Calendly.initBadgeWidget=function(e){return Calendly.domReady(function(){return Calendly.createBadgeWidget(e)})},Calendly.createInlineWidgets=function(){var e,t,n,i,o;for(t=document.querySelectorAll(".calendly-inline-widget"),o=[],n=0,i=t.length;i>n;n++)e=t[n],e.getAttribute("data-processed")?o.push(void 0):(e.setAttribute("data-processed",!0),o.push(new Calendly.Iframe(e,(!0))));return o},Calendly.createBadgeWidget=function(e){return this.destroyBadgeWiget(),Calendly.badgeWidget=new Calendly.BadgeWidget({color:e.color,text:e.text,branding:e.branding,onClick:function(){return Calendly.showPopupWidget(e.url)}})},Calendly.destroyBadgeWiget=function(){return Calendly.badgeWidget?(Calendly.badgeWidget.destroy(),delete Calendly.badgeWidget):void 0},Calendly.showPopupWidget=function(e){return this.closePopupWidget(),Calendly.popupWidget=new Calendly.PopupWidget(e,function(){return delete Calendly.popupWidget}),Calendly.popupWidget.show()},Calendly.closePopupWidget=function(){return Calendly.popupWidget?Calendly.popupWidget.close():void 0}}.call(this),function(){Calendly.Iframe=function(){function e(e,t){this.parent=e,this.inlineStyles=null!=t&&t,this.build(),this.inject()}return e.prototype.isMobile=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),e.prototype.build=function(){return this.node=document.createElement("iframe"),this.node.src=this.getSource(),this.node.width="100%",this.node.height="100%",this.node.frameBorder="0"},e.prototype.inject=function(){return this.format(),this.parent.appendChild(this.buildSpinner()),this.parent.appendChild(this.node)},e.prototype.getSource=function(){return this.parent.getAttribute("data-url")},e.prototype.format=function(){return this.isMobile?this.formatMobile():this.formatDesktop()},e.prototype.formatDesktop=function(){return this.inlineStyles?this.parent.setAttribute("style","position: relative;"+this.parent.getAttribute("style")):void 0},e.prototype.formatMobile=function(){return this.inlineStyles?this.parent.setAttribute("style","position: relative;overflow-y:auto;-webkit-overflow-scrolling:touch;"+this.parent.getAttribute("style")):this.parent.className+=" mobile"},e.prototype.buildSpinner=function(){var e;return e=document.createElement("div"),e.className="spinner",e.appendChild(this.buildBounce(1)),e.appendChild(this.buildBounce(2)),e.appendChild(this.buildBounce(3)),e},e.prototype.buildBounce=function(e){var t;return t=document.createElement("div"),t.className="bounce"+e,t},e}()}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}};Calendly.PopupWidget=function(){function t(t,n){this.url=t,this.onClose=n,this.close=e(this.close,this),this.pageRoot=document.getElementsByTagName("html")[0]}return t.prototype.show=function(){return this.buildOverlay(),this.insertOverlay(),this.lockPageScroll()},t.prototype.close=function(){return this.destroyOverlay(),this.onClose(),this.unlockPageScroll()},t.prototype.buildOverlay=function(){return this.overlay=document.createElement("div"),this.overlay.className="calendly-overlay",this.overlay.appendChild(this.buildCloseOverlay()),this.overlay.appendChild(this.buildPopup())},t.prototype.insertOverlay=function(){return document.body.insertBefore(this.overlay,document.body.firstChild)},t.prototype.buildCloseOverlay=function(){var e;return e=document.createElement("div"),e.className="calendly-close-overlay",e.onclick=this.close,e},t.prototype.buildPopup=function(){var e;return e=document.createElement("div"),e.className="calendly-popup",e.appendChild(this.buildPopupContent()),e.appendChild(this.buildCloseButton()),e},t.prototype.buildPopupContent=function(){var e;return e=document.createElement("div"),e.className="calendly-popup-content",e.setAttribute("data-url",this.url),new Calendly.Iframe(e),e},t.prototype.buildCloseButton=function(){var e;return e=document.createElement("div"),e.className="calendly-popup-close",e.onclick=this.close,e},t.prototype.destroyOverlay=function(){return this.overlay.parentNode.removeChild(this.overlay)},t.prototype.lockPageScroll=function(){return this.pageRoot.className+=" calendly-page-scroll-locked"},t.prototype.unlockPageScroll=function(){return this.pageRoot.className=this.pageRoot.className.replace(" calendly-page-scroll-locked","")},t}()}.call(this),function(){Calendly.BadgeWidget=function(){function e(e){this.options=e,this.buildWidget(),this.insertWidget()}return e.prototype.destroy=function(){return this.widget.parentNode.removeChild(this.widget)},e.prototype.buildWidget=function(){return this.widget=document.createElement("div"),this.widget.className="calendly-badge-widget",this.widget.appendChild(this.buildContent())},e.prototype.insertWidget=function(){return document.body.insertBefore(this.widget,document.body.firstChild)},e.prototype.buildContent=function(){var e;return e=document.createElement("div"),e.className="calendly-badge-content","#ffffff"===this.options.color&&(e.className+=" white"),e.onclick=this.options.onClick,e.innerHTML=this.options.text,e.style.background=this.options.color,this.options.branding&&e.appendChild(this.buildBranding()),e},e.prototype.buildBranding=function(){var e;return e=document.createElement("span"),e.innerHTML="powered by Calendly",e},e}()}.call(this),Calendly.initInlineWidgets(),!function(e,t,n,i){"use strict";t="undefined"!=typeof t&&t.Math==Math?t:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),e.fn.transition=function(){var o,a=e(this),r=a.selector||"",s=(new Date).getTime(),l=[],c=arguments,d=c[0],u=[].slice.call(arguments,1),f="string"==typeof d;return t.requestAnimationFrame||t.mozRequestAnimationFrame||t.webkitRequestAnimationFrame||t.msRequestAnimationFrame||function(e){setTimeout(e,0)},a.each(function(t){var m,p,h,v,g,y,b,w,C,S=e(this),k=this;C={initialize:function(){m=C.get.settings.apply(k,c),v=m.className,h=m.error,g=m.metadata,w="."+m.namespace,b="module-"+m.namespace,p=S.data(b)||C,y=C.get.animationEndEvent(),f&&(f=C.invoke(d)),f===!1&&(C.verbose("Converted arguments into settings object",m),m.interval?C.delay(m.animate):C.animate(),C.instantiate())},instantiate:function(){C.verbose("Storing instance of module",C),p=C,S.data(b,p)},destroy:function(){C.verbose("Destroying previous module for",k),S.removeData(b)},refresh:function(){C.verbose("Refreshing display type on next animation"),delete C.displayType},forceRepaint:function(){C.verbose("Forcing element repaint");var e=S.parent(),t=S.next();0===t.length?S.detach().appendTo(e):S.detach().insertBefore(t)},repaint:function(){C.verbose("Repainting element"),k.offsetWidth},delay:function(e){var n,o,r=C.get.animationDirection();r||(r=C.can.transition()?C.get.direction():"static"),e=e!==i?e:m.interval,n="auto"==m.reverse&&r==v.outward,o=n||1==m.reverse?(a.length-t)*m.interval:t*m.interval,C.debug("Delaying animation by",o),setTimeout(C.animate,o)},animate:function(e){if(m=e||m,!C.is.supported())return C.error(h.support),!1;if(C.debug("Preparing animation",m.animation),C.is.animating()){if(m.queue)return!m.allowRepeats&&C.has.direction()&&C.is.occurring()&&C.queuing!==!0?C.debug("Animation is currently occurring, preventing queueing same animation",m.animation):C.queue(m.animation),!1;if(!m.allowRepeats&&C.is.occurring())return C.debug("Animation is already occurring, will not execute repeated animation",m.animation),!1;C.debug("New animation started, completing previous early",m.animation),p.complete()}C.can.animate()?C.set.animating(m.animation):C.error(h.noAnimation,m.animation,k)},reset:function(){C.debug("Resetting animation to beginning conditions"),C.remove.animationCallbacks(),C.restore.conditions(),C.remove.animating()},queue:function(e){C.debug("Queueing animation of",e),C.queuing=!0,S.one(y+".queue"+w,function(){C.queuing=!1,C.repaint(),C.animate.apply(this,m)})},complete:function(e){C.debug("Animation complete",m.animation),C.remove.completeCallback(),C.remove.failSafe(),C.is.looping()||(C.is.outward()?(C.verbose("Animation is outward, hiding element"),C.restore.conditions(),C.hide()):C.is.inward()?(C.verbose("Animation is outward, showing element"),C.restore.conditions(),C.show()):(C.verbose("Static animation completed"),C.restore.conditions(),m.onComplete.call(k)))},force:{visible:function(){var e=S.attr("style"),t=C.get.userStyle(),n=C.get.displayType(),o=t+"display: "+n+" !important;",a=S.css("display"),r=e===i||""===e;a!==n?(C.verbose("Overriding default display to show element",n),S.attr("style",o)):r&&S.removeAttr("style")},hidden:function(){var e=S.attr("style"),t=S.css("display"),n=e===i||""===e;"none"===t||C.is.hidden()?n&&S.removeAttr("style"):(C.verbose("Overriding default display to hide element"),S.css("display","none"))}},has:{direction:function(t){var n=!1;return t=t||m.animation,"string"==typeof t&&(t=t.split(" "),e.each(t,function(e,t){t!==v.inward&&t!==v.outward||(n=!0)})),n},inlineDisplay:function(){var t=S.attr("style")||"";return e.isArray(t.match(/display.*?;/,""))}},set:{animating:function(e){var t;C.remove.completeCallback(),e=e||m.animation,t=C.get.animationClass(e),C.save.animation(t),C.force.visible(),C.remove.hidden(),C.remove.direction(),C.start.animation(t)},duration:function(e,t){t=t||m.duration,t="number"==typeof t?t+"ms":t,(t||0===t)&&(C.verbose("Setting animation duration",t),S.css({"animation-duration":t}))},direction:function(e){e=e||C.get.direction(),e==v.inward?C.set.inward():C.set.outward()},looping:function(){C.debug("Transition set to loop"),S.addClass(v.looping)},hidden:function(){S.addClass(v.transition).addClass(v.hidden)},inward:function(){C.debug("Setting direction to inward"),S.removeClass(v.outward).addClass(v.inward)},outward:function(){C.debug("Setting direction to outward"),S.removeClass(v.inward).addClass(v.outward)},visible:function(){S.addClass(v.transition).addClass(v.visible)}},start:{animation:function(e){e=e||C.get.animationClass(),C.debug("Starting tween",e),S.addClass(e).one(y+".complete"+w,C.complete),m.useFailSafe&&C.add.failSafe(),C.set.duration(m.duration),m.onStart.call(k)}},save:{animation:function(e){C.cache||(C.cache={}),C.cache.animation=e},displayType:function(e){"none"!==e&&S.data(g.displayType,e)},transitionExists:function(t,n){e.fn.transition.exists[t]=n,C.verbose("Saving existence of transition",t,n)}},restore:{conditions:function(){var e=C.get.currentAnimation();e&&(S.removeClass(e),C.verbose("Removing animation class",C.cache)),C.remove.duration()}},add:{failSafe:function(){var e=C.get.duration();C.timer=setTimeout(function(){S.triggerHandler(y)},e+m.failSafeDelay),C.verbose("Adding fail safe timer",C.timer)}},remove:{animating:function(){S.removeClass(v.animating)},animationCallbacks:function(){C.remove.queueCallback(),C.remove.completeCallback()},queueCallback:function(){S.off(".queue"+w)},completeCallback:function(){S.off(".complete"+w)},display:function(){S.css("display","")},direction:function(){S.removeClass(v.inward).removeClass(v.outward)},duration:function(){S.css("animation-duration","")},failSafe:function(){C.verbose("Removing fail safe timer",C.timer),C.timer&&clearTimeout(C.timer)},hidden:function(){S.removeClass(v.hidden)},visible:function(){S.removeClass(v.visible)},looping:function(){C.debug("Transitions are no longer looping"),C.is.looping()&&(C.reset(),S.removeClass(v.looping))},transition:function(){S.removeClass(v.visible).removeClass(v.hidden)}},get:{settings:function(t,n,i){return"object"==typeof t?e.extend(!0,{},e.fn.transition.settings,t):"function"==typeof i?e.extend({},e.fn.transition.settings,{animation:t,onComplete:i,duration:n}):"string"==typeof n||"number"==typeof n?e.extend({},e.fn.transition.settings,{animation:t,duration:n}):"object"==typeof n?e.extend({},e.fn.transition.settings,n,{animation:t}):"function"==typeof n?e.extend({},e.fn.transition.settings,{animation:t,onComplete:n}):e.extend({},e.fn.transition.settings,{animation:t})},animationClass:function(e){var t=e||m.animation,n=C.can.transition()&&!C.has.direction()?C.get.direction()+" ":"";return v.animating+" "+v.transition+" "+n+t},currentAnimation:function(){return!(!C.cache||C.cache.animation===i)&&C.cache.animation},currentDirection:function(){return C.is.inward()?v.inward:v.outward},direction:function(){return C.is.hidden()||!C.is.visible()?v.inward:v.outward},animationDirection:function(t){var n;return t=t||m.animation,"string"==typeof t&&(t=t.split(" "),e.each(t,function(e,t){t===v.inward?n=v.inward:t===v.outward&&(n=v.outward)})),!!n&&n},duration:function(e){return e=e||m.duration,e===!1&&(e=S.css("animation-duration")||0),"string"==typeof e?e.indexOf("ms")>-1?parseFloat(e):1e3*parseFloat(e):e},displayType:function(e){return e=e===i||e,m.displayType?m.displayType:(e&&S.data(g.displayType)===i&&C.can.transition(!0),S.data(g.displayType))},userStyle:function(e){return e=e||S.attr("style")||"",e.replace(/display.*?;/,"")},transitionExists:function(t){return e.fn.transition.exists[t]},animationStartEvent:function(){var e,t=n.createElement("div"),o={animation:"animationstart",OAnimation:"oAnimationStart",MozAnimation:"mozAnimationStart",WebkitAnimation:"webkitAnimationStart"};for(e in o)if(t.style[e]!==i)return o[e];return!1},animationEndEvent:function(){var e,t=n.createElement("div"),o={animation:"animationend",OAnimation:"oAnimationEnd",MozAnimation:"mozAnimationEnd",WebkitAnimation:"webkitAnimationEnd"};for(e in o)if(t.style[e]!==i)return o[e];return!1}},can:{transition:function(t){var n,o,a,r,s,l,c=m.animation,d=C.get.transitionExists(c),u=C.get.displayType(!1);if(d===i||t){if(C.verbose("Determining whether animation exists"),n=S.attr("class"),o=S.prop("tagName"),a=e("<"+o+" />").addClass(n).insertAfter(S),r=a.addClass(c).removeClass(v.inward).removeClass(v.outward).addClass(v.animating).addClass(v.transition).css("animationName"),s=a.addClass(v.inward).css("animationName"),u||(u=a.attr("class",n).removeAttr("style").removeClass(v.hidden).removeClass(v.visible).show().css("display"),C.verbose("Determining final display state",u),C.save.displayType(u)),a.remove(),r!=s)C.debug("Direction exists for animation",c),l=!0;else{if("none"==r||!r)return void C.debug("No animation defined in css",c);C.debug("Static animation found",c,u),l=!1}C.save.transitionExists(c,l)}return d!==i?d:l},animate:function(){return C.can.transition()!==i}},is:{animating:function(){return S.hasClass(v.animating)},inward:function(){return S.hasClass(v.inward)},outward:function(){return S.hasClass(v.outward)},looping:function(){return S.hasClass(v.looping)},occurring:function(e){return e=e||m.animation,e="."+e.replace(" ","."),S.filter(e).length>0},visible:function(){return S.is(":visible")},hidden:function(){return"hidden"===S.css("visibility")},supported:function(){return y!==!1}},hide:function(){C.verbose("Hiding element"),C.is.animating()&&C.reset(),k.blur(),C.remove.display(),C.remove.visible(),C.set.hidden(),C.force.hidden(),m.onHide.call(k),m.onComplete.call(k)},show:function(e){C.verbose("Showing element",e),C.remove.hidden(),C.set.visible(),C.force.visible(),m.onShow.call(k),m.onComplete.call(k)},toggle:function(){C.is.visible()?C.hide():C.show()},stop:function(){C.debug("Stopping current animation"),S.triggerHandler(y)},stopAll:function(){C.debug("Stopping all animation"),C.remove.queueCallback(),S.triggerHandler(y)},clear:{queue:function(){C.debug("Clearing animation queue"),C.remove.queueCallback()}},enable:function(){C.verbose("Starting animation"),S.removeClass(v.disabled)},disable:function(){C.debug("Stopping animation"),S.addClass(v.disabled)},setting:function(t,n){if(C.debug("Changing setting",t,n),e.isPlainObject(t))e.extend(!0,m,t);else{if(n===i)return m[t];e.isPlainObject(m[t])?e.extend(!0,m[t],n):m[t]=n}},internal:function(t,n){if(e.isPlainObject(t))e.extend(!0,C,t);else{if(n===i)return C[t];C[t]=n}},debug:function(){!m.silent&&m.debug&&(m.performance?C.performance.log(arguments):(C.debug=Function.prototype.bind.call(console.info,console,m.name+":"),C.debug.apply(console,arguments)))},verbose:function(){!m.silent&&m.verbose&&m.debug&&(m.performance?C.performance.log(arguments):(C.verbose=Function.prototype.bind.call(console.info,console,m.name+":"),C.verbose.apply(console,arguments)))},error:function(){m.silent||(C.error=Function.prototype.bind.call(console.error,console,m.name+":"),C.error.apply(console,arguments))},performance:{log:function(e){var t,n,i;m.performance&&(t=(new Date).getTime(),i=s||t,n=t-i,s=t,l.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:k,"Execution Time":n})),clearTimeout(C.performance.timer),C.performance.timer=setTimeout(C.performance.display,500)},display:function(){var t=m.name+":",n=0;s=!1,clearTimeout(C.performance.timer),e.each(l,function(e,t){n+=t["Execution Time"]}),t+=" "+n+"ms",r&&(t+=" '"+r+"'"),a.length>1&&(t+=" ("+a.length+")"),(console.group!==i||console.table!==i)&&l.length>0&&void(console.table?void 0:e.each(l,function(e,t){})),l=[]}},invoke:function(t,n,a){var r,s,l,c=p;return n=n||u,a=k||a,"string"==typeof t&&c!==i&&(t=t.split(/[\. ]/),r=t.length-1,e.each(t,function(n,o){var a=n!=r?o+t[n+1].charAt(0).toUpperCase()+t[n+1].slice(1):t;if(e.isPlainObject(c[a])&&n!=r)c=c[a];else{if(c[a]!==i)return s=c[a],!1;if(!e.isPlainObject(c[o])||n==r)return c[o]!==i&&(s=c[o],!1);c=c[o]}})),e.isFunction(s)?l=s.apply(a,n):s!==i&&(l=s),e.isArray(o)?o.push(l):o!==i?o=[o,l]:l!==i&&(o=l),s!==i&&s}},C.initialize()}),o!==i?o:this},e.fn.transition.exists={},e.fn.transition.settings={name:"Transition",silent:!1,debug:!1,verbose:!1,performance:!0,namespace:"transition",interval:0,reverse:"auto",onStart:function(){},onComplete:function(){},onShow:function(){},onHide:function(){},useFailSafe:!0,failSafeDelay:100,allowRepeats:!1,displayType:!1,animation:"fade",duration:!1,queue:!0,metadata:{displayType:"display"},className:{animating:"animating",disabled:"disabled",hidden:"hidden",inward:"in",loading:"loading",looping:"looping",outward:"out",transition:"transition",visible:"visible"},error:{noAnimation:"Element is no longer attached to DOM. Unable to animate. Use silent setting to surpress this warning in production.",repeated:"That animation is already occurring, cancelling repeated animation",method:"The method you called is not defined",support:"This browser does not support CSS animations"}}}(jQuery,window,document),function(e,t,n,i){"use strict";t="undefined"!=typeof t&&t.Math==Math?t:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),e.fn.modal=function(o){var a,r=e(this),s=e(t),l=e(n),c=e("body"),d=r.selector||"",u=(new Date).getTime(),f=[],m=arguments[0],p="string"==typeof m,h=[].slice.call(arguments,1),v=t.requestAnimationFrame||t.mozRequestAnimationFrame||t.webkitRequestAnimationFrame||t.msRequestAnimationFrame||function(e){setTimeout(e,0)};return r.each(function(){var r,g,y,b,w,C,S,k,x,E=e.isPlainObject(o)?e.extend(!0,{},e.fn.modal.settings,o):e.extend({},e.fn.modal.settings),T=E.selector,$=E.className,A=E.namespace,O=E.error,M="."+A,I="module-"+A,q=e(this),D=e(E.context),L=q.find(T.close),j=this,B=q.data(I);x={initialize:function(){x.verbose("Initializing dimmer",D),x.create.id(),x.create.dimmer(),x.refreshModals(),x.bind.events(),E.observeChanges&&x.observeChanges(),x.instantiate()},instantiate:function(){x.verbose("Storing instance of modal"),B=x,q.data(I,B)},create:{dimmer:function(){var t={debug:E.debug,dimmerName:"modals",duration:{show:E.duration,hide:E.duration}},n=e.extend(!0,t,E.dimmerSettings);return E.inverted&&(n.variation=n.variation!==i?n.variation+" inverted":"inverted"),e.fn.dimmer===i?void x.error(O.dimmer):(x.debug("Creating dimmer with settings",n),b=D.dimmer(n),E.detachable?(x.verbose("Modal is detachable, moving content into dimmer"),b.dimmer("add content",q)):x.set.undetached(),E.blurring&&b.addClass($.blurring),void(w=b.dimmer("get dimmer")))},id:function(){S=(Math.random().toString(16)+"000000000").substr(2,8),
C="."+S,x.verbose("Creating unique id for element",S)}},destroy:function(){x.verbose("Destroying previous modal"),q.removeData(I).off(M),s.off(C),w.off(C),L.off(M),D.dimmer("destroy")},observeChanges:function(){"MutationObserver"in t&&(k=new MutationObserver(function(e){x.debug("DOM tree modified, refreshing"),x.refresh()}),k.observe(j,{childList:!0,subtree:!0}),x.debug("Setting up mutation observer",k))},refresh:function(){x.remove.scrolling(),x.cacheSizes(),x.set.screenHeight(),x.set.type(),x.set.position()},refreshModals:function(){g=q.siblings(T.modal),r=g.add(q)},attachEvents:function(t,n){var i=e(t);n=e.isFunction(x[n])?x[n]:x.toggle,i.length>0?(x.debug("Attaching modal events to element",t,n),i.off(M).on("click"+M,n)):x.error(O.notFound,t)},bind:{events:function(){x.verbose("Attaching events"),q.on("click"+M,T.close,x.event.close).on("click"+M,T.approve,x.event.approve).on("click"+M,T.deny,x.event.deny),s.on("resize"+C,x.event.resize)}},get:{id:function(){return(Math.random().toString(16)+"000000000").substr(2,8)}},event:{approve:function(){return E.onApprove.call(j,e(this))===!1?void x.verbose("Approve callback returned false cancelling hide"):void x.hide()},deny:function(){return E.onDeny.call(j,e(this))===!1?void x.verbose("Deny callback returned false cancelling hide"):void x.hide()},close:function(){x.hide()},click:function(t){var i=e(t.target),o=i.closest(T.modal).length>0,a=e.contains(n.documentElement,t.target);!o&&a&&(x.debug("Dimmer clicked, hiding all modals"),x.is.active()&&(x.remove.clickaway(),E.allowMultiple?x.hide():x.hideAll()))},debounce:function(e,t){clearTimeout(x.timer),x.timer=setTimeout(e,t)},keyboard:function(e){var t=e.which,n=27;t==n&&(E.closable?(x.debug("Escape key pressed hiding modal"),x.hide()):x.debug("Escape key pressed, but closable is set to false"),e.preventDefault())},resize:function(){b.dimmer("is active")&&v(x.refresh)}},toggle:function(){x.is.active()||x.is.animating()?x.hide():x.show()},show:function(t){t=e.isFunction(t)?t:function(){},x.refreshModals(),x.showModal(t)},hide:function(t){t=e.isFunction(t)?t:function(){},x.refreshModals(),x.hideModal(t)},showModal:function(t){t=e.isFunction(t)?t:function(){},x.is.animating()||!x.is.active()?(x.showDimmer(),x.cacheSizes(),x.set.position(),x.set.screenHeight(),x.set.type(),x.set.clickaway(),!E.allowMultiple&&x.others.active()?x.hideOthers(x.showModal):(E.onShow.call(j),E.transition&&e.fn.transition!==i&&q.transition("is supported")?(x.debug("Showing modal with css animations"),q.transition({debug:E.debug,animation:E.transition+" in",queue:E.queue,duration:E.duration,useFailSafe:!0,onComplete:function(){E.onVisible.apply(j),E.keyboardShortcuts&&x.add.keyboardShortcuts(),x.save.focus(),x.set.active(),E.autofocus&&x.set.autofocus(),t()}})):x.error(O.noTransition))):x.debug("Modal is already visible")},hideModal:function(t,n){return t=e.isFunction(t)?t:function(){},x.debug("Hiding modal"),E.onHide.call(j,e(this))===!1?void x.verbose("Hide callback returned false cancelling hide"):void((x.is.animating()||x.is.active())&&(E.transition&&e.fn.transition!==i&&q.transition("is supported")?(x.remove.active(),q.transition({debug:E.debug,animation:E.transition+" out",queue:E.queue,duration:E.duration,useFailSafe:!0,onStart:function(){x.others.active()||n||x.hideDimmer(),E.keyboardShortcuts&&x.remove.keyboardShortcuts()},onComplete:function(){E.onHidden.call(j),x.restore.focus(),t()}})):x.error(O.noTransition)))},showDimmer:function(){b.dimmer("is animating")||!b.dimmer("is active")?(x.debug("Showing dimmer"),b.dimmer("show")):x.debug("Dimmer already visible")},hideDimmer:function(){return b.dimmer("is animating")||b.dimmer("is active")?void b.dimmer("hide",function(){x.remove.clickaway(),x.remove.screenHeight()}):void x.debug("Dimmer is not visible cannot hide")},hideAll:function(t){var n=r.filter("."+$.active+", ."+$.animating);t=e.isFunction(t)?t:function(){},n.length>0&&(x.debug("Hiding all visible modals"),x.hideDimmer(),n.modal("hide modal",t))},hideOthers:function(t){var n=g.filter("."+$.active+", ."+$.animating);t=e.isFunction(t)?t:function(){},n.length>0&&(x.debug("Hiding other modals",g),n.modal("hide modal",t,!0))},others:{active:function(){return g.filter("."+$.active).length>0},animating:function(){return g.filter("."+$.animating).length>0}},add:{keyboardShortcuts:function(){x.verbose("Adding keyboard shortcuts"),l.on("keyup"+M,x.event.keyboard)}},save:{focus:function(){y=e(n.activeElement).blur()}},restore:{focus:function(){y&&y.length>0&&y.focus()}},remove:{active:function(){q.removeClass($.active)},clickaway:function(){E.closable&&w.off("click"+C)},bodyStyle:function(){""===c.attr("style")&&(x.verbose("Removing style attribute"),c.removeAttr("style"))},screenHeight:function(){x.debug("Removing page height"),c.css("height","")},keyboardShortcuts:function(){x.verbose("Removing keyboard shortcuts"),l.off("keyup"+M)},scrolling:function(){b.removeClass($.scrolling),q.removeClass($.scrolling)}},cacheSizes:function(){var o=q.outerHeight();x.cache!==i&&0===o||(x.cache={pageHeight:e(n).outerHeight(),height:o+E.offset,contextHeight:"body"==E.context?e(t).height():b.height()}),x.debug("Caching modal and container sizes",x.cache)},can:{fit:function(){return x.cache.height+2*E.padding0?t.first():e.first();n.length>0&&n.focus()},clickaway:function(){E.closable&&w.on("click"+C,x.event.click)},screenHeight:function(){x.can.fit()?c.css("height",""):(x.debug("Modal is taller than page content, resizing page height"),c.css("height",x.cache.height+2*E.padding))},active:function(){q.addClass($.active)},scrolling:function(){b.addClass($.scrolling),q.addClass($.scrolling)},type:function(){x.can.fit()?(x.verbose("Modal fits on screen"),x.others.active()||x.others.animating()||x.remove.scrolling()):(x.verbose("Modal cannot fit on screen setting to scrolling"),x.set.scrolling())},position:function(){x.verbose("Centering modal on page",x.cache),x.can.fit()?q.css({top:"",marginTop:-(x.cache.height/2)}):q.css({marginTop:"",top:l.scrollTop()})},undetached:function(){b.addClass($.undetached)}},setting:function(t,n){if(x.debug("Changing setting",t,n),e.isPlainObject(t))e.extend(!0,E,t);else{if(n===i)return E[t];e.isPlainObject(E[t])?e.extend(!0,E[t],n):E[t]=n}},internal:function(t,n){if(e.isPlainObject(t))e.extend(!0,x,t);else{if(n===i)return x[t];x[t]=n}},debug:function(){!E.silent&&E.debug&&(E.performance?x.performance.log(arguments):(x.debug=Function.prototype.bind.call(console.info,console,E.name+":"),x.debug.apply(console,arguments)))},verbose:function(){!E.silent&&E.verbose&&E.debug&&(E.performance?x.performance.log(arguments):(x.verbose=Function.prototype.bind.call(console.info,console,E.name+":"),x.verbose.apply(console,arguments)))},error:function(){E.silent||(x.error=Function.prototype.bind.call(console.error,console,E.name+":"),x.error.apply(console,arguments))},performance:{log:function(e){var t,n,i;E.performance&&(t=(new Date).getTime(),i=u||t,n=t-i,u=t,f.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:j,"Execution Time":n})),clearTimeout(x.performance.timer),x.performance.timer=setTimeout(x.performance.display,500)},display:function(){var t=E.name+":",n=0;u=!1,clearTimeout(x.performance.timer),e.each(f,function(e,t){n+=t["Execution Time"]}),t+=" "+n+"ms",d&&(t+=" '"+d+"'"),(console.group!==i||console.table!==i)&&f.length>0&&(console.table||e.each(f,function(e,t){})),f=[]}},invoke:function(t,n,o){var r,s,l,c=B;return n=n||h,o=j||o,"string"==typeof t&&c!==i&&(t=t.split(/[\. ]/),r=t.length-1,e.each(t,function(n,o){var a=n!=r?o+t[n+1].charAt(0).toUpperCase()+t[n+1].slice(1):t;if(e.isPlainObject(c[a])&&n!=r)c=c[a];else{if(c[a]!==i)return s=c[a],!1;if(!e.isPlainObject(c[o])||n==r)return c[o]!==i&&(s=c[o],!1);c=c[o]}})),e.isFunction(s)?l=s.apply(o,n):s!==i&&(l=s),e.isArray(a)?a.push(l):a!==i?a=[a,l]:l!==i&&(a=l),s}},p?(B===i&&x.initialize(),x.invoke(m)):(B!==i&&B.invoke("destroy"),x.initialize())}),a!==i?a:this},e.fn.modal.settings={name:"Modal",namespace:"modal",silent:!1,debug:!1,verbose:!1,performance:!0,observeChanges:!1,allowMultiple:!1,detachable:!0,closable:!0,autofocus:!0,inverted:!1,blurring:!1,dimmerSettings:{closable:!1,useCSS:!0},keyboardShortcuts:!0,context:"body",queue:!1,duration:500,offset:0,transition:"scale",padding:50,onShow:function(){},onVisible:function(){},onHide:function(){return!0},onHidden:function(){},onApprove:function(){return!0},onDeny:function(){return!0},selector:{close:"> .close",approve:".actions .positive, .actions .approve, .actions .ok",deny:".actions .negative, .actions .deny, .actions .cancel",modal:".ui.modal"},error:{dimmer:"UI Dimmer, a required component is not included in this page",method:"The method you called is not defined.",notFound:"The element you specified could not be found"},className:{active:"active",animating:"animating",blurring:"blurring",scrolling:"scrolling",undetached:"undetached"}}}(jQuery,window,document),function(e,t,n,i){"use strict";t="undefined"!=typeof t&&t.Math==Math?t:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),e.fn.dimmer=function(t){var o,a=e(this),r=(new Date).getTime(),s=[],l=arguments[0],c="string"==typeof l,d=[].slice.call(arguments,1);return a.each(function(){var u,f,m,p=e.isPlainObject(t)?e.extend(!0,{},e.fn.dimmer.settings,t):e.extend({},e.fn.dimmer.settings),h=p.selector,v=p.namespace,g=p.className,y=p.error,b="."+v,w="module-"+v,C=a.selector||"",S="ontouchstart"in n.documentElement?"touchstart":"click",k=e(this),x=this,E=k.data(w);m={preinitialize:function(){m.is.dimmer()?(f=k.parent(),u=k):(f=k,u=m.has.dimmer()?p.dimmerName?f.find(h.dimmer).filter("."+p.dimmerName):f.find(h.dimmer):m.create(),m.set.variation())},initialize:function(){m.debug("Initializing dimmer",p),m.bind.events(),m.set.dimmable(),m.instantiate()},instantiate:function(){m.verbose("Storing instance of module",m),E=m,k.data(w,E)},destroy:function(){m.verbose("Destroying previous module",u),m.unbind.events(),m.remove.variation(),f.off(b)},bind:{events:function(){"hover"==p.on?f.on("mouseenter"+b,m.show).on("mouseleave"+b,m.hide):"click"==p.on&&f.on(S+b,m.toggle),m.is.page()&&(m.debug("Setting as a page dimmer",f),m.set.pageDimmer()),m.is.closable()&&(m.verbose("Adding dimmer close event",u),f.on(S+b,h.dimmer,m.event.click))}},unbind:{events:function(){k.removeData(w),f.off(b)}},event:{click:function(t){m.verbose("Determining if event occured on dimmer",t),(0===u.find(t.target).length||e(t.target).is(h.content))&&(m.hide(),t.stopImmediatePropagation())}},addContent:function(t){var n=e(t);m.debug("Add content to dimmer",n),n.parent()[0]!==u[0]&&n.detach().appendTo(u)},create:function(){var t=e(p.template.dimmer());return p.dimmerName&&(m.debug("Creating named dimmer",p.dimmerName),t.addClass(p.dimmerName)),t.appendTo(f),t},show:function(t){t=e.isFunction(t)?t:function(){},m.debug("Showing dimmer",u,p),m.is.dimmed()&&!m.is.animating()||!m.is.enabled()?m.debug("Dimmer is already shown or disabled"):(m.animate.show(t),p.onShow.call(x),p.onChange.call(x))},hide:function(t){t=e.isFunction(t)?t:function(){},m.is.dimmed()||m.is.animating()?(m.debug("Hiding dimmer",u),m.animate.hide(t),p.onHide.call(x),p.onChange.call(x)):m.debug("Dimmer is not visible")},toggle:function(){m.verbose("Toggling dimmer visibility",u),m.is.dimmed()?m.hide():m.show()},animate:{show:function(t){t=e.isFunction(t)?t:function(){},p.useCSS&&e.fn.transition!==i&&u.transition("is supported")?("auto"!==p.opacity&&m.set.opacity(),u.transition({animation:p.transition+" in",queue:!1,duration:m.get.duration(),useFailSafe:!0,onStart:function(){m.set.dimmed()},onComplete:function(){m.set.active(),t()}})):(m.verbose("Showing dimmer animation with javascript"),m.set.dimmed(),"auto"==p.opacity&&(p.opacity=.8),u.stop().css({opacity:0,width:"100%",height:"100%"}).fadeTo(m.get.duration(),p.opacity,function(){u.removeAttr("style"),m.set.active(),t()}))},hide:function(t){t=e.isFunction(t)?t:function(){},p.useCSS&&e.fn.transition!==i&&u.transition("is supported")?(m.verbose("Hiding dimmer with css"),u.transition({animation:p.transition+" out",queue:!1,duration:m.get.duration(),useFailSafe:!0,onStart:function(){m.remove.dimmed()},onComplete:function(){m.remove.active(),t()}})):(m.verbose("Hiding dimmer with javascript"),m.remove.dimmed(),u.stop().fadeOut(m.get.duration(),function(){m.remove.active(),u.removeAttr("style"),t()}))}},get:{dimmer:function(){return u},duration:function(){return"object"==typeof p.duration?m.is.active()?p.duration.hide:p.duration.show:p.duration}},has:{dimmer:function(){return p.dimmerName?k.find(h.dimmer).filter("."+p.dimmerName).length>0:k.find(h.dimmer).length>0}},is:{active:function(){return u.hasClass(g.active)},animating:function(){return u.is(":animated")||u.hasClass(g.animating)},closable:function(){return"auto"==p.closable?"hover"!=p.on:p.closable},dimmer:function(){return k.hasClass(g.dimmer)},dimmable:function(){return k.hasClass(g.dimmable)},dimmed:function(){return f.hasClass(g.dimmed)},disabled:function(){return f.hasClass(g.disabled)},enabled:function(){return!m.is.disabled()},page:function(){return f.is("body")},pageDimmer:function(){return u.hasClass(g.pageDimmer)}},can:{show:function(){return!u.hasClass(g.disabled)}},set:{opacity:function(e){var t=u.css("background-color"),n=t.split(","),i=n&&3==n.length,o=n&&4==n.length;e=0===p.opacity?0:p.opacity||e,i||o?(n[3]=e+")",t=n.join(",")):t="rgba(0, 0, 0, "+e+")",m.debug("Setting opacity to",e),u.css("background-color",t)},active:function(){u.addClass(g.active)},dimmable:function(){f.addClass(g.dimmable)},dimmed:function(){f.addClass(g.dimmed)},pageDimmer:function(){u.addClass(g.pageDimmer)},disabled:function(){u.addClass(g.disabled)},variation:function(e){e=e||p.variation,e&&u.addClass(e)}},remove:{active:function(){u.removeClass(g.active)},dimmed:function(){f.removeClass(g.dimmed)},disabled:function(){u.removeClass(g.disabled)},variation:function(e){e=e||p.variation,e&&u.removeClass(e)}},setting:function(t,n){if(m.debug("Changing setting",t,n),e.isPlainObject(t))e.extend(!0,p,t);else{if(n===i)return p[t];e.isPlainObject(p[t])?e.extend(!0,p[t],n):p[t]=n}},internal:function(t,n){if(e.isPlainObject(t))e.extend(!0,m,t);else{if(n===i)return m[t];m[t]=n}},debug:function(){!p.silent&&p.debug&&(p.performance?m.performance.log(arguments):(m.debug=Function.prototype.bind.call(console.info,console,p.name+":"),m.debug.apply(console,arguments)))},verbose:function(){!p.silent&&p.verbose&&p.debug&&(p.performance?m.performance.log(arguments):(m.verbose=Function.prototype.bind.call(console.info,console,p.name+":"),m.verbose.apply(console,arguments)))},error:function(){p.silent||(m.error=Function.prototype.bind.call(console.error,console,p.name+":"),m.error.apply(console,arguments))},performance:{log:function(e){var t,n,i;p.performance&&(t=(new Date).getTime(),i=r||t,n=t-i,r=t,s.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:x,"Execution Time":n})),clearTimeout(m.performance.timer),m.performance.timer=setTimeout(m.performance.display,500)},display:function(){var t=p.name+":",n=0;r=!1,clearTimeout(m.performance.timer),e.each(s,function(e,t){n+=t["Execution Time"]}),t+=" "+n+"ms",C&&(t+=" '"+C+"'"),a.length>1&&(t+=" ("+a.length+")"),(console.group!==i||console.table!==i)&&s.length>0&&(console.table||e.each(s,function(e,t){})),s=[]}},invoke:function(t,n,a){var r,s,l,c=E;return n=n||d,a=x||a,"string"==typeof t&&c!==i&&(t=t.split(/[\. ]/),r=t.length-1,e.each(t,function(n,o){var a=n!=r?o+t[n+1].charAt(0).toUpperCase()+t[n+1].slice(1):t;if(e.isPlainObject(c[a])&&n!=r)c=c[a];else{if(c[a]!==i)return s=c[a],!1;if(!e.isPlainObject(c[o])||n==r)return c[o]!==i?(s=c[o],!1):(m.error(y.method,t),!1);c=c[o]}})),e.isFunction(s)?l=s.apply(a,n):s!==i&&(l=s),e.isArray(o)?o.push(l):o!==i?o=[o,l]:l!==i&&(o=l),s}},m.preinitialize(),c?(E===i&&m.initialize(),m.invoke(l)):(E!==i&&E.invoke("destroy"),m.initialize())}),o!==i?o:this},e.fn.dimmer.settings={name:"Dimmer",namespace:"dimmer",silent:!1,debug:!1,verbose:!1,performance:!0,dimmerName:!1,variation:!1,closable:"auto",useCSS:!0,transition:"fade",on:!1,opacity:"auto",duration:{show:500,hide:500},onChange:function(){},onShow:function(){},onHide:function(){},error:{method:"The method you called is not defined."},className:{active:"active",animating:"animating",dimmable:"dimmable",dimmed:"dimmed",dimmer:"dimmer",disabled:"disabled",hide:"hide",pageDimmer:"page",show:"show"},selector:{dimmer:"> .ui.dimmer",content:".ui.dimmer > .content, .ui.dimmer > .content > .center"},template:{dimmer:function(){return e("").attr("class","ui dimmer")}}}}(jQuery,window,document),function(){$(document).ready(function(){$(".enterprise-form").on("submit",function(e){e.preventDefault();var t=$(this),n={email:t.find("[name=email]").val(),phone:t.find("[name=phone]").val(),organization:t.find("[name=organization]").val(),description:t.find("[name=description]").val()};t.validate({rules:{email:{required:!0,email:!0},phone:{required:!0},organization:{required:!0}}}),t.valid()&&(t.find("button").addClass("ui loading button").prop("disabled",!0),$.ajax({type:"POST",dataType:"json",url:"/api/enterprise/email",data:n,success:function(){swal({title:"Thank you!",text:"One of our account representatives will be in touch shortly.",type:"success",timer:5e3,showConfirmButton:!0}),t.find("[name=email]").val(""),t.find("[name=phone]").val(""),t.find("[name=organization]").val(""),t.find("[name=description]").val(""),t.find("button").removeClass("loading").prop("disabled",!1)}}))}),$(".accepted-btn").on("click",function(){$(".ui.modal.accepted").modal("settings",{dimmerSettings:{opacity:.2},detachable:!1,observeChanges:!0}).modal("show")}),$(".rejected-btn").on("click",function(){var e=$(".rejected"),t=$(this).data("reasons"),n=[];t.forEach(function(e,t){n[t]="
"+e+"
"}),e.find(".error-reasons").html(n.join(""));var i=$(this).data("filing");e.find(".update-button").attr("href","/app/filings/"+i+"/form"),$(".ui.modal.rejected").modal("settings",{dimmerSettings:{opacity:.2},detachable:!1,observeChanges:!0}).modal("show")}),$(".waiting-btn").on("click",function(){$(".ui.modal.waiting").modal("settings",{dimmerSettings:{opacity:.2},detachable:!1,observeChanges:!0}).modal("show")}),$(".cancel-button").on("click",function(){$(".ui.modal").modal("hide")}),$(".delete-filing").on("click",function(){var e=$(this).data("filing"),t=window.confirm("Are you sure you want to delete this filing?");t&&$.ajax({url:"/app/filings/"+e,method:"DELETE",success:function(){window.location.href="/app/dashboard"},error:function(){const e="Sorry we could not delete your filing at this time. Please try again later.";swal({title:"Delete Filing",text:e,type:"error"})}})}),$(".resubmit-btn").on("click",function(){var e=$(this).data("filing"),t=window.confirm("Are you sure you want to resubmit this filing?");t&&$.ajax({url:"/app/filings/"+e+"/resubmit",method:"POST",success:function(){window.location.href="/admin/filings"},error:function(){const e="An error occured when trying to resubmit the filing.";swal({title:"Resubmit Filing",text:e,type:"error"})}})})})}();