`)}:!o.ok&&"detail"in u?{error:u.detail}:u})}function Do(i){return Li(this,null,function*(){return yield tu(i,"GET")})}function*An(...i){for(let t of i)for(let e of document.querySelectorAll(t))e!==null&&(yield e)}function Lo(i){i.startsWith("data-")||(i=`data-${i}`);for(let t of An("body > div#netbox-data > *")){let e=t.getAttribute(i);if(Zc(e))return e}return null}function eu(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 Ci(i){for(let t of An("div.card-overlay"))eu(t,i)}function W(i,t,e=null,n=[]){let s=document.createElement(i);if(t!==null)for(let r of Object.keys(t)){let o=r,a=t[o];o in s&&(s[o]=a)}e!==null&&e.length>0&&s.classList.add(...e);for(let r of n)s.appendChild(r);return s}function No(i){return Math.round((i*(9/5)+32+Number.EPSILON)*10)/10}window.Collapse=mt;window.Modal=ie;window.Popover=_e;window.Toast=oe;window.Tooltip=Dt;function Di(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 r=document.createElement("div");r.setAttribute("class","toast-container position-fixed bottom-0 end-0 m-3");let o=document.createElement("div");o.setAttribute("class",`toastbg-${i}`),o.setAttribute("role","alert"),o.setAttribute("aria-live","assertive"),o.setAttribute("aria-atomic","true");let a=document.createElement("div");a.setAttribute("class",`toast-headerbg-${i}text-body`);let u=document.createElement("i");u.setAttribute("class",`mdi${s}`);let p=document.createElement("strong");p.setAttribute("class","me-auto ms-1"),p.innerText=t;let f=document.createElement("button");f.setAttribute("type","button"),f.setAttribute("class","btn-close"),f.setAttribute("data-bs-dismiss","toast"),f.setAttribute("aria-label","Close");let v=document.createElement("div");if(v.setAttribute("class","toast-body"),a.appendChild(u),a.appendChild(p),typeof n!="undefined"){let m=document.createElement("small");m.setAttribute("class","text-muted"),a.appendChild(m)}return a.appendChild(f),v.innerText=e.trim(),o.appendChild(a),o.appendChild(v),r.appendChild(o),document.body.appendChild(r),new oe(o)}re.default.extend(xo.default);re.default.extend(Mo.default);re.default.extend(Po.default);re.default.extend(Io.default);var nu=["hostname","fqdn","vendor","model","serial_number","os_version"],su=["years","months","days","hours","minutes","seconds"];function ou(i){let t=new Date,e=t.getTimezoneOffset(),s=(0,re.default)(t).subtract(i,"seconds"),r=s.tz("Etc/UTC").format("YYYY-MM-DD HH:MM:ss z"),o=null;e!==0&&(o=s.format("YYYY-MM-DD HH:MM:ss z"));let a=re.default.duration(i,"seconds"),u=[];for(let f of su){let v=a[f]();if(v===1){let d=f.replace(/s$/,"");u=[...u,`${v}${d}`]}else v>1&&(u=[...u,`${v}${f}`])}let p="None";return u.length>0&&(p=u.join(", ")),{utc:r,zoned:o,duration:p}}function ru(i){for(let a of nu)if(a in i){let u=document.getElementById(a);u!==null&&(u.innerHTML=String(i[a]))}let{uptime:t}=i,{utc:e,zoned:n,duration:s}=ou(t),r=document.getElementById("uptime-duration");r!==null&&(r.innerHTML=s);let o=document.getElementById("uptime");o!==null&&(n===null?o.innerHTML=e:o.innerHTML=[n,`<spanclass="fst-italic d-block">${e}</span>`].join(""))}functionze(i,t,e){letn=W("th",{innerText:t},["border-end","text-end"]),s=W("th",{innerText:e},["border-start","text-start"]),r=W("tr",{},[],[n,s]);i.insertAdjacentElement("beforebegin",r)}functionYe(i){lett=W("td",{colSpan:"2",innerText:"NoData"},["text-muted","text-center"]),e=W("tr",{},[],[t]);i!==null&&i.insertAdjacentElement("beforebegin",e)}functionFe(i){lett=document.getElementById(i);returnt!==null?t.nextElementSibling:null}functionau(i){lett=Fe("status-cpu");if(typeofi!="undefined"){if(t!==null){ze(t,"Name","Usage");for(let[e,n]ofObject.entries(i)){lets=n["%usage"],r=W("td",{innerText:e},["border-end","text-end"]),o=W("td",{innerText:`${s}%`},["border-start","text-start"]),a=W("tr",{},[],[r,o]);t.insertAdjacentElemen