console.log(document.querySelectorAll("*").length);const hamburger=document.querySelector("#hamburger"),closeNavHam=document.querySelector("#close-nav-ham"),appscmsToolbar=document.querySelector(".appscms-toolbar"),appscmsToolbarListItems=document.querySelectorAll(".appscms-toolbar-list-item-span");closeNavHam.addEventListener("click",(()=>{"1"===hamburger.dataset.open&&(hamburger.dataset.open="0",appscmsToolbar.style.right="-272px",appscmsToolbar.style.display="none",hamburger.innerHTML=' <svg\n        style="font-size:25px"\n          stroke="currentColor"\n          fill="currentColor"\n          stroke-width="0"\n          viewBox="0 0 512 512"\n          aria-hidden="true"\n          focusable="false"\n          height="50px"\n          width="1em"\n          xmlns="http://www.w3.org/2000/svg"\n        >\n          <path\n            fill="none"\n            stroke-linecap="round"\n            stroke-miterlimit="10"\n            stroke-width="48"\n            d="M88 152h336M88 256h336M88 360h336"\n          ></path>\n        </svg>')})),hamburger.addEventListener("click",(()=>{"1"===hamburger.dataset.open?(hamburger.dataset.open="0",appscmsToolbar.style.right="-272px",appscmsToolbar.style.display="none",hamburger.innerHTML=' <svg\n        style="font-size:25px"\n          stroke="currentColor"\n          fill="currentColor"\n          stroke-width="0"\n          viewBox="0 0 512 512"\n          aria-hidden="true"\n          focusable="false"\n          height="50px"\n          width="1em"\n          xmlns="http://www.w3.org/2000/svg"\n        >\n          <path\n            fill="none"\n            stroke-linecap="round"\n            stroke-miterlimit="10"\n            stroke-width="48"\n            d="M88 152h336M88 256h336M88 360h336"\n          ></path>\n        </svg>'):(hamburger.dataset.open="1",appscmsToolbar.style.right="0px",appscmsToolbar.style.display="block",hamburger.innerHTML='<svg  height="50px"\n        width="1em"  style="font-size:25px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="#ffffff"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"> <g clip-path="url(#clip0_429_11083)"> <path d="M7 7.00006L17 17.0001M7 17.0001L17 7.00006" stroke="#ffffff" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"></path> </g> <defs> <clipPath id="clip0_429_11083"> <rect width="24" height="24" fill="white"></rect> </clipPath> </defs> </g></svg>')})),Array.from(appscmsToolbarListItems).map((e=>{e.addEventListener("click",(t=>{t.preventDefault();var n=window.getComputedStyle(e.nextElementSibling).getPropertyValue("max-height");console.log(n),n&&"0px"!==n?(e.nextElementSibling.style.maxHeight="0",e.nextElementSibling.style.opacity="0",e.nextElementSibling.style.height="0"):(e.nextElementSibling.style.maxHeight=e.nextElementSibling.scrollHeight+"px",e.nextElementSibling.style.opacity="1",e.nextElementSibling.style.height="auto")}))})),document.addEventListener("DOMContentLoaded",(function(){const e=document.getElementById("download-button");if(e){const t=document.querySelector(".button-loader"),n=e.querySelector("#download-svg"),o=document.getElementById("saving-data");e.addEventListener("click",(function(){t.style.display="block",n.style.visibility="hidden",o.style.display="flex"}))}}));const processingBtn=document.getElementById("processing-btn");processingBtn&&processingBtn.addEventListener("click",(function(){const e=document.querySelector(".button-loader");e&&(e.style.display="block"),history.back()}));