`)}:!r.ok&&"detail"in f?{error:f.detail}:f})}function Co(i){return Ci(this,null,function*(){return yield Zc(i,"GET")})}function*Tn(...i){for(let t of i)for(let e of document.querySelectorAll(t))e!==null&&(yield e)}function Do(i){i.startsWith("data-")||(i=`data-${i}`);for(let t of Tn("body > div#netbox-data > *")){let e=t.getAttribute(i);if(Xc(e))return e}return null}function Jc(i,t){i!==null&&(typeof t=="undefined"?window.getComputedStyle(i).display==="none"?i.style.display="":i.style.display="none":t==="show"?i.style.display="":i.style.display="none")}function Ai(i){for(let t of Tn("div.card-overlay"))Jc(t,i)}function R(i,t,e,n=[]){let s=document.createElement(i);if(t!==null)for(let o of Object.keys(t)){let r=o,l=t[r];r in s&&(s[r]=l)}s.classList.add(...e);for(let o of n)s.appendChild(o);return s}function Lo(i){return i*(9/5)+32}window.Collapse=ft;window.Modal=Qt;window.Toast=te;window.Tooltip=$t;function Oi(i,t,e,n){let s="mdi-alert";switch(i){case"warning":s="mdi-alert";break;case"success":s="mdi-check-circle";break;case"info":s="mdi-information";break;case"danger":s="mdi-alert";break}let o=document.createElement("div");o.setAttribute("class","toast-container position-fixed bottom-0 end-0 m-3");let r=document.createElement("div");r.setAttribute("class",`toastbg-${i}`),r.setAttribute("role","alert"),r.setAttribute("aria-live","assertive"),r.setAttribute("aria-atomic","true");let l=document.createElement("div");l.setAttribute("class",`toast-headerbg-${i}text-body`);let f=document.createElement("i");f.setAttribute("class",`mdi${s}`);let m=document.createElement("strong");m.setAttribute("class","me-auto ms-1"),m.innerText=t;let c=document.createElement("button");c.setAttribute("type","button"),c.setAttribute("class","btn-close"),c.setAttribute("data-bs-dismiss","toast"),c.setAttribute("aria-label","Close");let v=document.createElement("div");if(v.setAttribute("class","toast-body"),l.appendChild(f),l.appendChild(m),typeof n!="undefined"){let _=document.createElement("small");_.setAttribute("class","text-muted"),l.appendChild(_)}return l.appendChild(c),v.innerText=e.trim(),r.appendChild(l),r.appendChild(v),o.appendChild(r),document.body.appendChild(o),new te(r)}ee.default.extend(No.default);ee.default.extend(xo.default);ee.default.extend(Io.default);ee.default.extend(Mo.default);var eu=["hostname","fqdn","vendor","model","serial_number","os_version"],iu=["years","months","days","hours","minutes","seconds"];function nu(i){let t=new Date,e=t.getTimezoneOffset(),s=(0,ee.default)(t).subtract(i,"seconds"),o=s.tz("Etc/UTC").format("YYYY-MM-DD HH:MM:ss z"),r=null;e!==0&&(r=s.format("YYYY-MM-DD HH:MM:ss z"));let l=ee.default.duration(i,"seconds"),f=[];for(let c of iu){let v=l[c]();if(v===1){let d=c.replace(/s$/,"");f=[...f,`${v}${d}`]}else v>1&&(f=[...f,`${v}${c}`])}let m="None";return f.length>0&&(m=f.join(", ")),{utc:o,zoned:r,duration:m}}function su(i){for(let l of eu)if(l in i){let f=document.getElementById(l);f!==null&&(f.innerHTML=String(i[l]))}let{uptime:t}=i,{utc:e,zoned:n,duration:s}=nu(t),o=document.getElementById("uptime-duration");o!==null&&(o.innerHTML=s);let r=document.getElementById("uptime");r!==null&&(n===null?r.innerHTML=e:r.innerHTML=[n,`<spanclass="fst-italic d-block">${e}</span>`].join(""))}functionke(i,t,e){letn=R("th",{innerText:t},["border-end","text-end"]),s=R("th",{innerText:e},["border-start","text-start"]),o=R("tr",{},[],[n,s]);i.insertAdjacentElement("beforebegin",o)}functionHe(i){lett=R("td",{colSpan:"2",innerText:"NoData"},["text-muted","text-center"]),e=R("tr",{},[],[t]);i!==null&&i.insertAdjacentElement("beforebegin",e)}functionWe(i){lett=document.getElementById(i);returnt!==null?t.nextElementSibling:null}functionou(i){lett=We("status-cpu");if(typeofi!="undefined"){if(t!==null){ke(t,"Name","Usage");for(let[e,n]ofObject.entries(i)){lets=n["%usage"],o=R("td",{innerText:e},["border-end","text-end"]),r=R("td",{innerText:`${s}%`},["border-start","text-start"]),l=R("tr",{},[],[o,r]);t.insertAdjacentElement("beforebegin",l)}}}elseHe(t)}functionru(i){lett=We("status-memory");if(type