(()=>{"use strict";const t=t=>{t.querySelectorAll(".background_slide_style").forEach((t=>((t,e)=>{let r,a;t?(r=t?.target.closest(".gkit-nav-link"),a=r?.closest(".gkit-tab-nav")):(r=e.querySelector(".gkit-nav-link.active"),a=r?.closest(".gkit-tab-nav")),(()=>{const{offsetWidth:t,offsetLeft:e,offsetHeight:l,offsetTop:o}=r;a.style.setProperty("--left",`${e}px`),a.style.setProperty("--width",`${t}px`),a.style.setProperty("--top",`${o}px`),a.style.setProperty("--height",`${l}px`)})()})(null,t)))},e=e=>{const r=e.target.closest(".gkit-nav-link");if(!r)return;const a=r.closest(".gkit-tab-wraper"),l="true"===a.getAttribute("data-url"),o=a.querySelector(".gkit-tab-nav"),i=Array.from(o.children).flatMap((t=>Array.from(t.querySelectorAll(".gkit-nav-link"))));i.forEach((t=>t.classList.remove("active"))),r.classList.add("active"),l&&(window.location.hash=r.getAttribute("data-hash"));const c=a.querySelector(".gkit-tab-content"),s=Array.from(c.children),n=Array.from(i).indexOf(r);s.forEach(((t,e)=>t.classList.toggle("active",e===n))),t(a)};window.addEventListener("load",(()=>{document.querySelectorAll(".gkit-tab-wraper").forEach((r=>{var a;(t=>{const e="true"===t.getAttribute("data-url"),r=window.location.hash,a=t.querySelector(".gkit-tab-content"),l=Array.from(a.children),o=t.querySelector(".gkit-tab-nav"),i=Array.from(o.children).flatMap((t=>Array.from(t.querySelectorAll(".gkit-nav-link"))));if(!e||!r)return void l.forEach(((t,e)=>{t.classList.toggle("active",0===e)}));t.querySelectorAll(".active").forEach((t=>t.classList.remove("active")));let c=-1;i.forEach(((t,e)=>{t.dataset.hash===r&&(t.classList.add("active"),c=e)})),-1!==c&&l[c]?.classList.add("active")})(a=r),t(a),(t=>{const r=t.querySelector(".gkit-tab-nav"),a=Array.from(r.children).flatMap((t=>Array.from(t.querySelectorAll(".gkit-nav-link")))),l=t.getAttribute("data-event")||"click";a.forEach((t=>{t.addEventListener(l,e)}))})(a)}))}))})();