"use strict";!function(){document.getElementsByTagName("body")[0].setAttribute("data-pc-layout","horizontal");document.querySelector(".pc-navbar").innerHTML;const n=document.querySelector(".navbar-content").innerHTML;function t(){var c=document.querySelectorAll(".pc-navbar > li.pc-item"),r="",a="",s="",i="",l=0,o=!1,u=!1,t=(c.forEach(function(e,n){var t;e.classList.contains("pc-caption")?(!0===u&&i.insertAdjacentHTML&&(t="",i.children[1]&&(t='<span class="pc-micon">'+i.children[1].outerHTML+"</span>"),i.insertAdjacentHTML("afterend",'<li class="pc-item pc-hasmenu">                <a href="#!" class="pc-link ">'+t+'<span class="pc-mtext">'+i.children[0].innerHTML+'</span>                  <span class="pc-arrow"><i data-feather="chevron-right"></i></span>                </a>                <ul class="pc-submenu">'+r+"                </ul>            </li>"),i.remove()),o=!(u=!(r="")),i=e,c[n+1].classList.contains("pc-caption")&&(i.remove(),i=s=a=r="",l=0,u=o=!1)):(!1===o&&(a=s,o=!0),r+=e.outerHTML,n+1===c.length&&(!0===u&&i.insertAdjacentHTML&&(i.insertAdjacentHTML("afterend",'<li class="pc-item pc-hasmenu">                            <a href="#!" class="pc-link ">                                <span class="pc-micon">'+i.children[1].outerHTML+'</span>                                <span class="pc-mtext">'+i.children[0].innerHTML+'</span>                                <span class="pc-arrow"><i data-feather="chevron-right"></i></span>                            </a>                            <ul class="pc-submenu">'+r+"                            </ul>                        </li>"),i.remove()),o=!(u=!(r="")),i=e),!0===u&&e.remove())}),document.querySelectorAll(".pc-navbar > li.pc-item"));t.forEach(function(e,n){(l+=e.getBoundingClientRect().width+49)>window.innerWidth?(!1===o&&(a=s,o=!0),!0===o&&(r+=e.outerHTML,e.remove())):s=e,n+1===t.length&&a.insertAdjacentHTML&&a.insertAdjacentHTML("afterend",'<li class="pc-item pc-hasmenu">                          <a href="#!" class="pc-link ">                              <span class="pc-micon"><svg class="pc-icon"><use xlink:href="#custom-clipboard"></use></svg></span>                              <span class="pc-mtext">Other</span>                              <span class="pc-arrow"><i data-feather="chevron-right"></i></span>                          </a>                          <ul class="pc-submenu">'+r+"                          </ul>                      </li>")}),(t=document.querySelectorAll(".pc-navbar .pc-trigger")).forEach(function(e){e.classList.remove("pc-trigger"),e.children[1].removeAttribute("style"),e.classList.contains("active")&&e.classList.remove("active")})}function c(){for(var e=document.querySelectorAll(".pc-sidebar .pc-navbar .pc-hasmenu"),n=0;n<e.length;n++)e[n].addEventListener("mouseenter",function(e){var n,t,c,r,a=window.innerHeight,s=window.innerWidth;1024<s&&(e=e.target.children[1],c=e.getBoundingClientRect(),r=c.left,n=c.top,t=c.width,c=c.height,r+t<=s||e.classList.add("edge"),n+c<=a||(e.classList.add("edge-alt"),c<=n)||(e.classList.add("edge-alt-full"),r="top: -"+(n-140)+"px; bottom: -"+(a-n-140)+"px",e.setAttribute("style",r)))},function(e){e.children[1].classList.remove("edge"),e.children[1].classList.remove("edge-alt")})}1024<window.innerWidth&&(t(),c()),window.addEventListener("resize",function(){var e=window.innerWidth;document.querySelector(".navbar-content").innerHTML="",document.querySelector(".navbar-content").innerHTML=n,1024<=e?setTimeout(()=>{SimpleBar.instances.get(document.querySelector(".navbar-content")),SimpleBar.removeObserver(),t(),feather.replace(),c();var e=document.querySelectorAll(".pc-navbar li:not(.pc-trigger) .pc-submenu");document.querySelector(".pc-sidebar .pc-menu-overlay")&&document.querySelector(".pc-sidebar .pc-menu-overlay").remove();for(var n=0;n<e.length;n++)e[n].removeAttribute("style")},500):setTimeout(()=>{feather.replace(),menu_click(),document.querySelector(".navbar-content")&&new SimpleBar(document.querySelector(".navbar-content"))},500)})}();