!function(){"use strict";var t,e,c,n,o,i,a,s,r,l,d,v=/^sect(\d)$/,u=document.querySelector(".nav-container");function m(){var e,t,n=window.location.hash;if(n&&(n.indexOf("%")&&(n=decodeURIComponent(n)),!(e=o.querySelector('.nav-link[href="'+n+'"]')))){n=document.getElementById(n.slice(1));if(n)for(var i=n,a=document.querySelector("article.doc");(i=i.parentNode)&&i!==a;){var c=i.id;if((c=c||(c=v.test(i.className))&&(i.firstElementChild||{}).id)&&(e=o.querySelector('.nav-link[href="#'+c+'"]')))break}}if(e)t=e.parentNode;else{if(!d)return;e=(t=d).querySelector(".nav-link")}t!==l&&(y(o,".nav-item.is-active").forEach(function(e){e.classList.remove("is-active","is-current-path","is-current-page")}),t.classList.add("is-current-page"),p(l=t),L(o,e))}function p(e){for(var t,n=e.parentNode;!(t=n.classList).contains("nav-menu");)"LI"===n.tagName&&t.contains("nav-item")&&t.add("is-active","is-current-path"),n=n.parentNode;e.classList.add("is-active")}function g(){var e,t,n,i;this.classList.toggle("is-active")&&(e=parseFloat(window.getComputedStyle(this).marginTop),t=this.getBoundingClientRect(),n=o.getBoundingClientRect(),0<(i=(t.bottom-n.top-n.height+e).toFixed()))&&(o.scrollTop+=Math.min((t.top-n.top-e).toFixed(),i))}function f(e){h(e);e=document.documentElement;e.classList.remove("is-clipped--nav"),t.classList.remove("is-active"),u.classList.remove("is-active"),e.removeEventListener("click",f)}function h(e){e.stopPropagation()}function L(e,t){var n=e.getBoundingClientRect(),i=n.height,a=window.getComputedStyle(c);"sticky"===a.position&&(i-=n.top-parseFloat(a.top)),e.scrollTop=Math.max(0,.5*(t.getBoundingClientRect().height-i)+t.offsetTop)}function y(e,t){return[].slice.call(e.querySelectorAll(t))}u&&(t=document.querySelector(".nav-toggle"),e=document.getElementById("collapse-panel-btn"),c=u.querySelector(".nav"),n=u.querySelector(".nav-menu-toggle"),t.addEventListener("click",function(e){if(t.classList.contains("is-active"))return f(e);u.classList.add("is-active")}),u.addEventListener("click",h),o=u.querySelector("[data-panel=menu]"))&&(i=u.querySelector("[data-panel=explore]"),a=i.querySelector(".backdrop"),s=i.querySelector(".version-menu"),r=s?.querySelectorAll(".component"),l=o.querySelector(".is-current-page"),(d=l)?(p(l),L(o,l.querySelector(".nav-link"))):o.scrollTop=0,y(o,".nav-item-toggle").forEach(function(e){var t=e.parentElement,e=(e.addEventListener("click",g.bind(t)),function(e,t){e=e.nextElementSibling;return(!e||!t||e[e.matches?"matches":"msMatchesSelector"](t))&&e}(e,".nav-text"));e&&(e.style.cursor="pointer",e.addEventListener("click",g.bind(t)))}),y(o,".nav-link").forEach(function(e){e.addEventListener("click",function(e){var t,n=this.parentElement,i=parseInt(n.dataset.depth,10);n.classList.contains("is-active")||n===l||("#"===this.getAttribute("href")&&(i=i+1,t=(t=n.querySelector(".nav-list"))?t.querySelector('.nav-item[data-depth="'+i+'"] .nav-link'):null)&&t.href?(e.preventDefault(),g.call(n),window.location=t.href):g.call(n))})}),n&&o.querySelector(".nav-item-toggle")&&(n.style.display="",n.addEventListener("click",function(){var t=!this.classList.toggle("is-active");y(o,".nav-item > .nav-item-toggle").forEach(function(e){t?e.parentElement.classList.remove("is-active"):e.parentElement.classList.add("is-active")}),l?(t&&p(l),L(o,l.querySelector(".nav-link"))):o.scrollTop=0})),i&&i.querySelector(".version-menu-toggle").addEventListener("click",function(e){r.length&&(s.classList.toggle("is-active"),a.classList.toggle("is-active"),e.stopPropagation())}),a.addEventListener("click",function(){s.classList.remove("is-active"),a.classList.remove("is-active")}),document.documentElement.addEventListener("click",function(){s.classList.remove("is-active"),a.classList.remove("is-active")}),o.addEventListener("mousedown",function(e){1<e.detail&&e.preventDefault()}),e.addEventListener("click",()=>{u.classList.remove("is-active")}),o.querySelector('.nav-link[href^="#"]'))&&(window.location.hash&&m(),window.addEventListener("hashchange",m))}();
!function(){"use strict";var e=document.querySelector("aside.toc.sidebar");if(e){if(document.querySelector("body.-toc"))return e.parentNode.removeChild(e);var t=parseInt(e.dataset.levels||2,10);if(!(t<0)){var o="article.doc",c=document.querySelector(o);if(c){for(var n=[],i=0;i<=t;i++){var r=[o];if(i){for(var d=1;d<=i;d++)r.push((2===d?".sectionbody>":"")+".sect"+d);r.push("h"+(i+1)+"[id]"+(1<i?":not(.discrete)":""))}else r.push("h1[id].sect0");n.push(r.join(">"))}m=n.join(","),f=c.parentNode;var a,s=[].slice.call((f||document).querySelectorAll(m));if(!s.length)return e.parentNode.removeChild(e);var l={},u=s.reduce(function(e,t){var o=document.createElement("a"),n=(o.textContent=t.textContent,l[o.href="#"+t.id]=o,document.createElement("li"));return n.dataset.level=parseInt(t.nodeName.slice(1),10)-1,n.appendChild(o),e.appendChild(n),e},document.createElement("ul")),f=e.querySelector(".toc-menu"),m=(f||((f=document.createElement("div")).className="toc-menu"),f.appendChild(u),!document.getElementById("toc")&&c.querySelector("h1.page ~ :not(.is-before-toc)"));m&&((e=document.createElement("aside")).className="toc embedded",e.appendChild(f.cloneNode(!0)),m.parentNode.insertBefore(e,m)),window.addEventListener("load",function(){p(),window.addEventListener("scroll",p)})}}}function p(){var n,i,t,e=window.pageYOffset,o=1.15*h(document.documentElement,"fontSize"),r=c.offsetTop;e&&window.innerHeight+e+2>=document.documentElement.scrollHeight?(a=Array.isArray(a)?a:Array(a||0),n=[],i=s.length-1,s.forEach(function(e,t){var o="#"+e.id;t===i||e.getBoundingClientRect().top+h(e,"paddingTop")>r?(n.push(o),a.indexOf(o)<0&&l[o].classList.add("is-active")):~a.indexOf(o)&&l[a.shift()].classList.remove("is-active")}),u.scrollTop=u.scrollHeight-u.offsetHeight,a=1<n.length?n:n[0]):(Array.isArray(a)&&(a.forEach(function(e){l[e].classList.remove("is-active")}),a=void 0),s.some(function(e){if(e.getBoundingClientRect().top+h(e,"paddingTop")-o>r)return!0;t="#"+e.id}),t?t!==a&&(a&&l[a].classList.remove("is-active"),(e=l[t]).classList.add("is-active"),u.scrollHeight>u.offsetHeight&&(u.scrollTop=Math.max(0,e.offsetTop+e.offsetHeight-u.offsetHeight)),a=t):a&&(l[a].classList.remove("is-active"),a=void 0))}function h(e,t){return parseFloat(window.getComputedStyle(e)[t])}}();
!function(){"use strict";var n,o=document.querySelector("article.doc");function i(e){return e&&(~e.indexOf("%")?decodeURIComponent(e):e).slice(1)}function c(e){if(e){if(e.altKey||e.ctrlKey)return;window.location.hash="#"+this.id,e.preventDefault()}var t=function e(t,n){return o.contains(t)?e(t.offsetParent,t.offsetTop+n):n}(this,0)-95;!1===e&&n?window.scrollTo({left:0,top:t,behavior:"instant"}):window.scrollTo(0,t)}o&&(n="scrollTo"in document.documentElement,window.addEventListener("load",function e(t){var n;(n=i(window.location.hash))&&(n=document.getElementById(n))&&(c.call(n,!1),setTimeout(c.bind(n,!1),250)),window.removeEventListener("load",e)}),Array.prototype.slice.call(document.querySelectorAll('a[href^="#"]')).forEach(function(e){var t;(t=i(e.hash))&&(t=document.getElementById(t))&&e.addEventListener("click",c.bind(t))}))}();
!function(){"use strict";var t,s,c,e=document.querySelector(".page-versions .version-menu-toggle");e&&(t=document.querySelector(".page-versions"),s=document.querySelector(".backdrop"),c=document.querySelector(".version-menu")?.querySelectorAll(".version"),e.addEventListener("click",function(e){c.length&&(t.classList.toggle("is-active"),s.classList.toggle("is-active"),e.stopPropagation())}),s.addEventListener("click",function(){t.classList.remove("is-active"),s.classList.remove("is-active")}),document.documentElement.addEventListener("click",function(){t.classList.remove("is-active"),s.classList.remove("is-active")}))}();
!function(){"use strict";let t=!1,e=!1;const n=document.querySelector(".nav-mobile-menu-toggle");var o=document.getElementById("document-toggle");const i=`
    <svg stroke="currentColor" fill="#0072ce" stroke-width="0" viewBox="0 0 24 24" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg">
      <path fill="none" d="M0 0h24v24H0z"></path>
      <path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"></path>
    </svg>
  `;function r(){var e=document.querySelector(".navbar-mobile-menu");window.matchMedia("(min-width: 1023.5px)").matches&&(e.classList.remove("show"),n.innerHTML=i,t=!1)}window.addEventListener("load",r),window.addEventListener("resize",r),n.addEventListener("click",function(){t=!t,document.querySelector(".navbar-mobile-menu").classList.toggle("show"),t?n.innerHTML=`
    <svg stroke="currentColor" fill="#0072ce" stroke-width="0" viewBox="0 0 24 24" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg">
      <path fill="none" d="M0 0h24v24H0V0z"></path>
      <path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"></path>
    </svg>
  `:n.innerHTML=i}),o.addEventListener("click",function(){e=!e,document.querySelector(".mobile-product-link").classList.toggle("show")})}();
!function(){"use strict";var o=/^\$ (\S[^\\\n]*(\\\n(?!\$ )[^\\\n]*)*)(?=\n|$)/gm,s=/( ) *\\\n *|\\\n( ?) */g,l=/ +$/gm,e=(document.getElementById("site-script")||{dataset:{}}).dataset,d=window.navigator.clipboard,r=e.svgAs,p=(null==e.uiRootPath?window:e).uiRootPath||".";[].slice.call(document.querySelectorAll(".doc pre.highlight, .doc .literalblock pre")).forEach(function(e){var t,n,a,c;if(e.classList.contains("highlight"))(i=(t=e.querySelector("code")).dataset.lang)&&"console"!==i&&((a=document.createElement("span")).className="source-lang",a.appendChild(document.createTextNode(i)));else{if(!e.innerText.startsWith("$ "))return;var i=e.parentNode.parentNode;i.classList.remove("literalblock"),i.classList.add("listingblock"),e.classList.add("highlightjs","highlight"),(t=document.createElement("code")).className="language-console hljs",t.dataset.lang="console",t.appendChild(e.firstChild),e.appendChild(t)}(i=document.createElement("div")).className="source-toolbox",a&&i.appendChild(a),d&&((n=document.createElement("button")).className="copy-button",n.setAttribute("title","Copy to clipboard"),"svg"===r?((a=document.createElementNS("http://www.w3.org/2000/svg","svg")).setAttribute("class","copy-icon"),(c=document.createElementNS("http://www.w3.org/2000/svg","use")).setAttribute("href",p+"/img/octicons-16.svg#icon-clippy"),a.appendChild(c),n.appendChild(a)):((c=document.createElement("img")).src=p+"/img/octicons-16.svg#view-clippy",c.alt="copy icon",c.className="copy-icon",n.appendChild(c)),(a=document.createElement("span")).className="copy-toast",a.appendChild(document.createTextNode("Copied!")),n.appendChild(a),i.appendChild(n)),e.parentNode.appendChild(i),n&&n.addEventListener("click",function(e){var t=e.innerText.replace(l,"");"console"===e.dataset.lang&&t.startsWith("$ ")&&(t=function(e){var t,n=[];for(;t=o.exec(e);)n.push(t[1].replace(s,"$1$2"));return n.join(" && ")}(t));window.navigator.clipboard.writeText(t).then(function(){this.classList.add("clicked"),this.offsetHeight,this.classList.remove("clicked")}.bind(this),function(){})}.bind(n,t))})}();
!function(){"use strict";document.addEventListener("scroll",function(){var e=document.querySelector(".navbar");0<window.scrollY?e.classList.add("active"):e.classList.remove("active")})}();
!function(){"use strict";var e=document.querySelector(".chat-btn");const t=document.querySelector(".chat"),s=document.querySelector(".chat-btn svg"),a=document.getElementById("chat-input"),o=document.getElementById("send-btn"),c=document.getElementById("stop-btn"),l=document.querySelector(".chat .chat-body"),i=document.querySelector("#expand-btn svg");var n=document.getElementById("close-btn");const r=document.getElementById("model-toggle"),d=document.getElementById("model-popover"),v=document.querySelector(".model .backdrop");let m=!1,h=!1,u=!1,p=!1,L=!1,f="all";const g=`
    <path stroke-linecap="round" stroke-linejoin="round"
    d="M7.188 10a.312.312 0 1 1-.625 0
    .312.312 0 0 1 .625 0Zm0 0h-.313m3.438 0a.312.312 0
    1 1-.625 0 .312.312 0 0 1 .625 0Zm0 0h-.313m3.437 0a.312.312 0
    1 1-.625 0 .312.312 0 0 1 .625 0Zm0 0h-.312M17.5 10c0 3.797-3.353
    6.875-7.5 6.875a8.735 8.735 0 0 1-2.292-.303 5.368 5.368 0 0 1-3.639
    1.576 5.364 5.364 0 0 1-.428-.059 4.025 4.025 0 0 0 .88-1.818c.081-.409
    -.12-.806-.422-1.098C3.273 13.484 2.5 11.825 2.5 10c0-3.797 3.353-6.875
    7.5-6.875s7.5 3.078 7.5 6.875Z"></path>
  `,E=`
    <path
    d="M3.28 2.22a.75.75 0 0 0-1.06 1.06L5.44 6.5H2.75a.75.75 0 0 0 0 1.5h4.5
    A.75.75 0 0 0 8 7.25v-4.5a.75.75 0 0 0-1.5 0v2.69L3.28 2.22ZM13.5 2.75
    a.75.75 0 0 0-1.5 0v4.5c0 .414.336.75.75.75h4.5a.75.75 0 0 0 0-1.5h-2.69l3.22-3.22
    a.75.75 0 0 0-1.06-1.06L13.5 5.44V2.75ZM3.28 17.78l3.22-3.22v2.69a.75.75 0 0 0 1.5
    0v-4.5a.75.75 0 0 0-.75-.75h-4.5a.75.75 0 0 0 0 1.5h2.69l-3.22 3.22a.75.75
    0 1 0 1.06 1.06ZM13.5 14.56l3.22 3.22a.75.75 0 1 0 1.06-1.06l-3.22-3.22h2.69
    a.75.75 0 0 0 0-1.5h-4.5a.75.75 0 0 0-.75.75v4.5a.75.75 0 0 0 1.5 0v-2.69Z">
    </path>
  `,b=`
    <path d="
    m13.28 7.78 3.22-3.22v2.69a.75.75 0 0 0 1.5 0v-4.5a.75.75 0 0 0-.75-.75h-4.5a.75.75
    0 0 0 0 1.5h2.69l-3.22 3.22a.75.75 0 0 0 1.06 1.06ZM2 17.25v-4.5a.75.75 0 0 1 1.5 0v2.69l3.22-3.22a.75.75
    0 0 1 1.06 1.06L4.56 16.5h2.69a.75.75 0 0 1 0 1.5h-4.5a.747.747 0 0 1-.75-.75ZM12.22
    13.28l3.22 3.22h-2.69a.75.75 0 0 0 0 1.5h4.5a.747.747 0 0 0 .75-.75v-4.5a.75.75
    0 0 0-1.5 0v2.69l-3.22-3.22a.75.75 0 1 0-1.06 1.06ZM3.5 4.56l3.22 3.22a.75.75
    0 0 0 1.06-1.06L4.56 3.5h2.69a.75.75 0 0 0 0-1.5h-4.5a.75.75 0 0 0-.75.75v4.5a.75.75 0 0 0 1.5 0V4.56Z">
    </path>
  `;function y(e){if(""!==e.trim()){if(""!==e.trim()){var t=document.createElement("div");t.className="message user",t.innerHTML=marked(e),l.appendChild(t),l.scrollTop=l.scrollHeight,k("user",e);const n=document.createElement("div");n.className="chat-loader";t=document.createElement("div"),t=(t.className="loader",n.appendChild(t),l.appendChild(n),l.scrollTop=l.scrollHeight,u=!0,{question:e,docsType:f.toLowerCase()});fetch("https://docs.bxi.link/ask",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}).then(e=>{const t=e.body.getReader(),a=new TextDecoder("utf-8"),i=(o.classList.remove("active"),c.classList.add("active"),document.createElement("div"));return i.className="message ai",l.appendChild(i),p=!0,function s(){return t.read().then(({done:e,value:t})=>{if(!e)return e=a.decode(t,{stream:!0}),n&&l.removeChild(n),T(i,e,30),l.scrollTop=l.scrollHeight,s();u=!1})}()}).catch(e=>{console.error("Chatbot Error",e),u=!1})}a.value=""}}function k(e,t){var s=JSON.parse(sessionStorage.getItem("messages"))||[];s.push({type:e,text:t}),sessionStorage.setItem("messages",JSON.stringify(s))}function T(t,s,a=50){let i=0,n="";!function e(){L?(k("ai",n),L=!1,p=!1):i<s.length?(n+=s.charAt(i),t.innerHTML=marked(n),l.scrollTop=l.scrollHeight,i++,setTimeout(e,a)):(k("ai",n),o.classList.add("active"),c.classList.remove("active"),p=!1)}()}function w(e){var t=document.createElement("div");t.className="message ai",l.appendChild(t),T(t,e,30),l.scrollTop=l.scrollHeight}window.addEventListener("load",()=>{var e=sessionStorage.getItem("messages");e?(JSON.parse(e).forEach(({type:e,text:t})=>{var s=document.createElement("div");s.className="message "+e,s.innerHTML=marked(t),l.appendChild(s)}),l.scrollTop=l.scrollHeight):w("제품 매뉴얼 가이드에 대한 도움을 드리겠습니다. 제품 선택 시 더 정확한 답변을 제공해 드립니다.")}),e.addEventListener("click",()=>{t.classList.toggle("show"),t.classList.contains("show")?(t.classList.add("expand"),s.innerHTML=`
    <path clip-rule="evenodd" fill-rule="evenodd"
    d="M12.53 16.28a.75.75 0 0 1-1.06 0l-7.5-7.5a.75.75 0 0 1 1.06-1.06L12
    14.69l6.97-6.97a.75.75 0 1 1 1.06 1.06l-7.5 7.5Z"></path>
  `,s.setAttribute("fill","none"),s.setAttribute("stroke","#fff"),s.setAttribute("viewBox","0 -1 24 24"),i.classList.add("expand"),i.innerHTML=E):(s.innerHTML=g,s.setAttribute("fill","#fff"),s.setAttribute("stroke","#0072ce"),s.setAttribute("viewBox","0 0 20 20"),i.classList.remove("expand"),i.innerHTML=b),i.setAttribute("fill","#fff"),i.setAttribute("viewBox","0 0 20 20"),m||m||(a.addEventListener("compositionstart",()=>{h=!0}),a.addEventListener("compositionend",()=>{h=!1}),a.addEventListener("keydown",function(e){"Enter"!==e.key||e.shiftKey||h||u||p||(e.preventDefault(),e=e.target["value"],""!==e.trim()&&y(e))}),o.addEventListener("click",()=>{u||p||y(a.value)}),c.addEventListener("click",()=>{L=!0,c.classList.remove("active"),o.classList.add("active")}),m=!0)}),i.addEventListener("click",()=>{i.classList.toggle("expand"),i.classList.contains("expand")?(i.innerHTML=E,i.setAttribute("fill","#fff"),i.setAttribute("viewBox","0 0 20 20"),t.classList.add("expand")):(i.innerHTML=b,i.setAttribute("fill","#fff"),i.setAttribute("viewBox","0 0 20 20"),t.classList.remove("expand"))}),n.addEventListener("click",()=>{t.classList.remove("show"),s.innerHTML=g,s.setAttribute("fill","#fff"),s.setAttribute("stroke","#0072ce"),s.setAttribute("viewBox","0 0 20 20")}),r.addEventListener("click",()=>{d.classList.contains("show")?(d.classList.remove("show"),v.classList.remove("is-active")):(d.classList.add("show"),v.classList.add("is-active"))}),v.addEventListener("click",()=>{v.classList.contains("is-active")?(d.classList.remove("show"),v.classList.remove("is-active")):(d.classList.add("show"),v.classList.add("is-active"))}),document.querySelectorAll("#model-popover li").forEach(e=>{e.addEventListener("click",function(){var e=this.textContent,e=(f="전체"===e?"all":e,d.classList.remove("show"),v.classList.remove("is-active"),r.textContent=e,"all"===f?"전체 제품을 대상으로 매뉴얼 가이드를 제공해 드리겠습니다. 제품 선택 시 더 정확한 정보를 확인할 수 있습니다.":f.toUpperCase()+" 매뉴얼 가이드에 대한 도움을 드리겠습니다.");p||u||(p=!0,w(e))})})}();
const logo=document.querySelector(".navbar-brand > a");function removeSecretNav(){for(var e=document.getElementsByClassName("secret-nav");0<e.length;)e[0].parentNode.removeChild(e[0])}fetch("/web/dms/api/auth/status").then(e=>{"https://swlab.bwg.co.kr/web/dms/login"===e.url?(removeSecretNav(),logo.setAttribute("href","https://swlab.bwg.co.kr")):logo.setAttribute("href","https://swlab.bwg.co.kr/web/dms/home")}).catch(e=>{console.error("Error checking login status:",e),removeSecretNav()});
!function(){"use strict";const t=document.querySelector(".chat-btn"),e=document.querySelector(".top-scroll-btn"),o=document.querySelector(".navbar-menu");"file:"===window.location.protocol&&(t.style.display="none",e.style.bottom="20px",o.style.display="none")}();
!function(){"use strict";document.querySelector(".top-scroll-btn").addEventListener("click",function(){window.scrollTo({top:0,behavior:"smooth"})})}();