!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=t=>{t.find(".et_pb_accordion_item").each(((t,o)=>{const i=e(o);i.toggleClass("et_pb_toggle_empty",(t=>{const o=t.children(".et_pb_toggle_content");if(0===o.length)return!0;const i=t[0],_=o[0],n=(t,o)=>{const n=e(o);return n.closest(".et_pb_accordion_item")[0]===i&&n.closest(".et_pb_toggle_content")[0]===_},l=o.find("img, video, audio, iframe, object, embed, svg, canvas").filter(n).length>0,s=o.find(".et_pb_module").filter(n).length>0;return!l&&!s&&""===(o.html()||"").replace(/<br\s*\/?>/gi,"").replace(/&nbsp;/gi,"").replace(/<[^>]*>/g,"").trim()})(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()}))},n=(e,i)=>{if(!e.hasClass("et_pb_toggle_close"))return;const _=e.children(".et_pb_toggle_content");if(_.is(":animated"))return;const n=()=>{e.removeClass("et_pb_toggle_close").addClass("et_pb_toggle_open")};var l;if(_.css("display",(l=_).hasClass("et_flex_module")?"flex":l.hasClass("et_grid_module")?"grid":"block"),_.hide(),_.is(":visible"))return n(),i&&i(),o(_),void t();_.slideToggle(700,(()=>{n(),i&&i(),o(_),t()}))},l=(t,o)=>{const i=t.closest(".et_pb_accordion");i.addClass("et_pb_accordion_toggling"),n(t,(()=>{o&&o(),window.dispatchEvent(new CustomEvent("vb:accordion:activated",{detail:{accordionContent:t.children(".et_pb_toggle_content")[0]}})),i.removeClass("et_pb_accordion_toggling")}));const l=i[0],s=i.find(".et_pb_accordion_item.et_pb_toggle_open").filter(((t,o)=>e(o).closest(".et_pb_accordion")[0]===l)).not(t);s.length>0&&_(s,(()=>{(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),i.removeClass("et_pb_accordion_toggling")}))},s=()=>{i(e("body")),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")?_(o):n(o)}))};window.et_pb_toggle_collapse=_,window.et_pb_toggle_expand=n,window.et_pb_accordion_item_expand=l,window.et_pb_init_accordion_modules=s,e(window).on("et_pb_init_modules",(()=>{s()}))})(jQuery),((window.divi=window.divi||{}).scriptLibrary=window.divi.scriptLibrary||{}).scriptLibraryToggle=t}();