!function(){var e;(e=jQuery)(window).on("et_pb_init_modules",(function(){window.et_pb_init_accordion_modules=function(){e(".et_pb_accordion").on("touchstart",(t=>{if("desktop"!==et_pb_get_current_window_mode()){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",(function(){const t=e(this).closest(".et_pb_toggle"),o=(t.parents(".et_pb_section"),t.find(".et_pb_toggle_content")),i=t.closest(".et_pb_accordion"),_=i.length>0,n=i.hasClass("et_pb_accordion_toggling"),d=e(window).scrollTop();let l=0;const a=t.hasClass("et_pb_toggle_close")?"closed":"opened";let s,g;if(_){if(t.hasClass("et_pb_toggle_open")||n)return!1;i.addClass("et_pb_accordion_toggling"),s=t.siblings(".et_pb_toggle_open")}if(!o.is(":animated")&&(o.slideToggle(700,(()=>{!function(e,t,o){"closed"===e?t.removeClass("et_pb_toggle_close").addClass("et_pb_toggle_open"):t.removeClass("et_pb_toggle_open").addClass("et_pb_toggle_close"),window.et_reinit_waypoint_modules()}(a,t)})),_)){window?.divi?.data?.dispatch("divi/edit-post")?.editModuleAttribute({id:t.data("id"),attrName:"module.advanced.open.desktop.value",value:"on"}),window?.divi?.data?.dispatch("divi/edit-post")?.removeModuleAttribute(s.data("id"),"module.advanced.open");const o=function(){s.removeClass("et_pb_toggle_open").addClass("et_pb_toggle_close"),i.removeClass("et_pb_accordion_toggling"),g=t.offset(),e("#wpadminbar").length&&(l+=e("#wpadminbar").height()),e("#top-header").length&&(l+=e("#top-header").height()),e("#main-header").length&&!window.et_is_vertical_nav&&(l+=e("#main-header").height()),d+l>g.top&&e("html, body").animate({scrollTop:g.top-l-50})},_=s.find(".et_pb_toggle_content");_.is(":visible")?_.slideToggle(700,o):(_.hide(),o())}}))},window.et_pb_init_accordion_modules()})),((window.divi=window.divi||{}).scriptLibrary=window.divi.scriptLibrary||{}).scriptLibraryToggle={}}();