!function(){"use strict";var e={r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),(e=>{const t=()=>{window.et_reinit_waypoint_modules&&window.et_reinit_waypoint_modules()},o=t=>{if("function"!=typeof window.set_fullwidth_portfolio_columns)return;const o=t.find(".et_pb_fullwidth_portfolio:visible");0!==o.length&&o.each(((t,o)=>{const i=e(o),_=i.hasClass("et_pb_fullwidth_portfolio_carousel");window.set_fullwidth_portfolio_columns(i,_)}))};const i=(e,o)=>{if(!e.hasClass("et_pb_toggle_open"))return;const i=e.children(".et_pb_toggle_content");if(i.is(":animated"))return;const _=()=>{e.removeClass("et_pb_toggle_open").addClass("et_pb_toggle_close")};if(!i.is(":visible"))return _(),o&&o(),void t();i.slideToggle(700,(()=>{_(),o&&o(),t()}))},_=(e,i)=>{if(!e.hasClass("et_pb_toggle_close"))return;const _=e.children(".et_pb_toggle_content");if(_.is(":animated"))return;const l=()=>{e.removeClass("et_pb_toggle_close").addClass("et_pb_toggle_open")};var n;if(_.css("display",(n=_).hasClass("et_flex_module")?"flex":n.hasClass("et_grid_module")?"grid":"block"),_.hide(),_.is(":visible"))return l(),i&&i(),o(_),void t();_.slideToggle(700,(()=>{l(),i&&i(),o(_),t()}))},l=(t,o)=>{const l=t.closest(".et_pb_accordion");l.addClass("et_pb_accordion_toggling"),_(t,(()=>{o&&o(),window.dispatchEvent(new CustomEvent("vb:accordion:activated",{detail:{accordionContent:t.children(".et_pb_toggle_content")[0]}})),l.removeClass("et_pb_accordion_toggling")}));const n=l.children(".et_pb_toggle_open").not(t);n.length>0&&i(n,(()=>{(t=>{const o=e(window).scrollTop(),i=t.offset();let _=0;e("#wpadminbar").length&&(_+=e("#wpadminbar").height()),e("#top-header").length&&(_+=e("#top-header").height()),e("#main-header").length&&!window.et_is_vertical_nav&&(_+=e("#main-header").height()),o+_>i.top&&e("html, body").animate({scrollTop:i.top-_-50})})(t),l.removeClass("et_pb_accordion_toggling")}))},n=()=>{e(".et_pb_accordion").on("touchstart",(t=>{const o=e(t.target);(o.hasClass("et_pb_toggle_title")||o.hasClass("et_fb_toggle_overlay"))&&(t.preventDefault(),o.trigger("click"))}));e("body").on("click",".et_pb_toggle_title, .et_fb_toggle_overlay",(t=>{t.stopPropagation();const o=e(t.target).closest(".et_pb_toggle_title, .et_fb_toggle_overlay").closest(".et_pb_toggle");if(o.data("id"))return;o.closest(".et_pb_accordion").length>0&&o.hasClass("et_pb_accordion_item")?l(o):o.hasClass("et_pb_toggle_open")?i(o):_(o)}))};window.et_pb_toggle_collapse=i,window.et_pb_toggle_expand=_,window.et_pb_accordion_item_expand=l,window.et_pb_init_accordion_modules=n,e(window).on("et_pb_init_modules",(()=>{n()}))})(jQuery),((window.divi=window.divi||{}).scriptLibrary=window.divi.scriptLibrary||{}).scriptLibraryToggle=t}();