((e,i,o)=>{"use strict";const r=o.currentScript.src.split("/js/")[0],t=()=>{const n=o.querySelectorAll('a[href="#tb_builder_page"]');for(let t=n.length-1;t>-1;--t)n[t].tfOn("click",(t=>{t.preventDefault();let n=o.getElementById("tb_builder_page_root");if(!n){n=o.createElement("div");const e=o.createElement("div"),i=o.createElement("div"),r=o.createElement("style");r.innerText='.spinner{margin:-20px 0 0 -20px;width:62px;height:62px;background-color:rgba(0,0,0,.6);border-radius:50%;box-sizing:border-box;position:fixed;top:50%;left:50%;z-index:100001;line-height:62px}.spinner:before{width:80%;height:80%;border:5px solid transparent;border-top-color:#fff;border-radius:50%;box-sizing:border-box;position:absolute;top:10%;left:10%;content:"";animation:circle-loader 1.4s infinite linear}@keyframes circle-loader{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}',n.id="tb_builder_page_root",e.style.display="none",e.className="lightbox",i.className="spinner",n.attachShadow({mode:"open"}).append(r,e,i),o.body.appendChild(n)}const s=n.shadowRoot.querySelector(".lightbox");Promise.all([e.loadCss(e.url+"css/base.min","tf_base",null,s),e.loadCss(r+"/css/editor/builder-page",null,null,s),e.loadJs(r+"/js/editor/themify-builder-page",!!i.ThemifyBuilderPage)]).then((()=>{ThemifyBuilderPage.run(s)}))}));setTimeout((()=>{e.on("tf_music_ajax_ready",t)}),2e3)};!0===i.loaded?t():i.tfOn("load",t,{once:!0,passive:!0})})(Themify,window,document);