function t(t){return t&&t.__esModule?t.default:t}const e=t=>{const e=document.getElementsByTagName("h"+t);Array.from(e).forEach((t=>{void 0!==t.id&&""!==t.id&&t.appendChild((t=>{const e=document.createElement("a");return e.className="header-link",e.href="#"+t,e.innerHTML="#",e})(t.id))}))};new Array(6).fill(0).forEach(((t,n)=>e(n+1)));const n=document.getElementsByClassName("remote-action");Array.from(n).forEach((t=>{const e=t.getAttribute("data-action"),n=t.getAttribute("data-param"),r=function(){const e=parseInt(t.getAttribute("data-buffer")??"",10)??0;return isFinite(e)&&e>0?e:0}();t.addEventListener("click",(function(t){t.preventDefault();const i=document.createElement("div");i.className="modal-terminal",document.body.append(i);const s=document.createElement("pre"),o=function(t,e,n){let r=null;const i=[],s=()=>{o.paintedFrames++,t.innerText=i.join("\n"),e.scrollTop=e.scrollHeight,r=null},o=(t,e)=>{if(i.push(t),0!==n&&i.length>n&&i.splice(0,i.length-n),null!==r&&(o.missedFrames++,window.cancelAnimationFrame(r)),e)return s();r=window.requestAnimationFrame(s)};return o.paintedFrames=0,o.missedFrames=0,o}(s,i,r);i.append(s);const a=document.createElement("button");a.className="pure-button pure-button-success",a.append("Close"),a.addEventListener("click",(function(t){t.preventDefault(),i.parentNode?.removeChild(i)}));const u=window.onbeforeunload;window.onbeforeunload=()=>"A remote session is in progress. Are you sure you want to leave?";let c=!1;const d=function(){c||(c=!0,window.onbeforeunload=u,i.append(a))};var l,h;o("Connecting ...",!0),(l=t=>{o("Connected",!0),t.send(e),"string"==typeof n&&t.send(n)},h=t=>{o(t)},new Promise(((t,e)=>{const n=new WebSocket(location.href.replace("http","ws"));n.onclose=t,n.onerror=e,n.onmessage=t=>h(t.data),n.onopen=()=>l(n)}))).then((()=>{o("Connection closed.",!0),d()})).catch((()=>{o("Connection errored.",!0),d()}))}))}));var r={};r=function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",o="hour",a="day",u="week",c="month",d="quarter",l="year",h="date",f="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,$={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},y=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},g={s:y,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+y(r,2,"0")+":"+y(i,2,"0")},m:function t(e,n){if(e.date()1)return t(o[0])}else{var a=e.name;M[a]=e,i=a}return!r&&i&&(v=i),i||!r&&v},S=function(t,e){if(w(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new O(n)},b=g;b.l=D,b.i=w,b.w=function(t,e){return S(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var O=function(){function $(t){this.$L=D(t.locale,null,!0),this.parse(t)}var y=$.prototype;return y.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(m);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},y.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},y.$utils=function(){return b},y.isValid=function(){return!(this.$d.toString()===f)},y.isSame=function(t,e){var n=S(t);return this.startOf(e)<=n&&n<=this.endOf(e)},y.isAfter=function(t,e){return S(t)t(r)(e.innerText).format("YYYY-MM-DD HH:mm:ss ([UTC]Z)"),path:t=>{const e=t.innerText.split("/");return e[e.length-1]},pathbuilders:()=>{const t=window.pathbuilders,e=document.createElement("span");let n=!1;if(Object.keys(t).forEach((r=>{n=!0;const i=r+".xml",o=t[r];e.append(s(i,r,o,"application/xml")),e.append(document.createTextNode(" "))})),!n)return"(none)";const r=document.createElement("small");return r.append(document.createTextNode("(click to download)")),e.append(r),e}},s=(t,e,n,r)=>{const i=new Blob([n],{type:r??"text/plain"}),s=document.createElement("a");return s.target="_blank",s.download=t,s.href=URL.createObjectURL(i),s.append(document.createTextNode(e)),s};Object.keys(i).forEach((t=>{const e=i[t];document.querySelectorAll("code."+t).forEach((t=>{const n=e(t);if("string"==typeof n)return t.innerHTML="",void t.appendChild(document.createTextNode(n));t.parentNode.replaceChild(n,t)}))}));