You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
144 KiB
1 line
144 KiB
11 months ago
|
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[460],{94460:function(e,t,s){let i,a,r,n,o,h;s.d(t,{Z:function(){return RFB}});let d="warn",Debug=()=>{},Info=()=>{},Warn=()=>{},logging_Error=()=>{};function decodeUTF8(e,t=!1){try{return decodeURIComponent(escape(e))}catch(s){if(s instanceof URIError&&t)return e;throw s}}function encodeUTF8(e){return unescape(encodeURIComponent(e))}!function(e){if(void 0===e?e=d:d=e,Debug=Info=Warn=logging_Error=()=>{},void 0!==window.console)switch(e){case"debug":Debug=console.debug.bind(window.console);case"info":Info=console.info.bind(window.console);case"warn":Warn=console.warn.bind(window.console);case"error":logging_Error=console.error.bind(window.console);case"none":break;default:throw new window.Error("invalid logging type '"+e+"'")}}();let l="ontouchstart"in document.documentElement||void 0!==document.ontouchstart||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.addEventListener("touchstart",function onFirstTouch(){l=!0,window.removeEventListener("touchstart",onFirstTouch,!1)},!1);let _=10*(window.devicePixelRatio||1),u=!1;try{let e=document.createElement("canvas");e.style.cursor='url("data:image/x-icon;base64,AAACAAEACAgAAAIAAgA4AQAAFgAAACgAAAAIAAAAEAAAAAEAIAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAD/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////AAAAAAAAAAAAAAAAAAAAAA==") 2 2, default',0===e.style.cursor.indexOf("url")?(Info("Data URI scheme cursor supported"),u=!0):Warn("Data URI scheme cursor not supported")}catch(e){logging_Error("Data URI scheme cursor test exception: "+e)}let c=u;try{let e=document.createElement("div");e.style.visibility="hidden",e.style.overflow="scroll",document.body.appendChild(e);let t=document.createElement("div");e.appendChild(t),e.offsetWidth,t.offsetWidth,e.parentNode.removeChild(e)}catch(e){logging_Error("Scrollbar test exception: "+e)}function isMac(){return navigator&&!!/mac/i.exec(navigator.platform)}function isWindows(){return navigator&&!!/win/i.exec(navigator.platform)}function isIOS(){return navigator&&(!!/ipad/i.exec(navigator.platform)||!!/iphone/i.exec(navigator.platform)||!!/ipod/i.exec(navigator.platform))}function clientToElement(e,t,s){let i=s.getBoundingClientRect(),a={x:0,y:0};return e<i.left?a.x=0:e>=i.right?a.x=i.width-1:a.x=e-i.left,t<i.top?a.y=0:t>=i.bottom?a.y=i.height-1:a.y=t-i.top,a}function stopEvent(e){e.stopPropagation(),e.preventDefault()}let f=!1,p=null;function _captureProxy(e){if(f)return;let t=new e.constructor(e.type,e);f=!0,document.captureElement?document.captureElement.dispatchEvent(t):p.dispatchEvent(t),f=!1,e.stopPropagation(),t.defaultPrevented&&e.preventDefault(),"mouseup"===e.type&&releaseCapture()}function _capturedElemChanged(){let e=document.getElementById("noVNC_mouse_capture_elem");e.style.cursor=window.getComputedStyle(document.captureElement).cursor}document.captureElement=null;let g=new MutationObserver(_capturedElemChanged);function releaseCapture(){if(document.releaseCapture)document.releaseCapture(),document.captureElement=null;else{if(!document.captureElement)return;p=document.captureElement,document.captureElement=null,g.disconnect();let e=document.getElementById("noVNC_mouse_capture_elem");e.style.display="none",window.removeEventListener("mousemove",_captureProxy),window.removeEventListener("mouseup",_captureProxy)}}let EventTargetMixin=class EventTargetMixin{constructor(){this._listeners=new Map}addEventListener(e,t){this._listeners.has(e)||this._listeners.set(e,new Set),this._listeners.get(e).add(t)}removeEventListener(e,t){this._listeners.has(e)&&this._listeners.get(e).delete(t)}dispatchEvent(e){return!this._listeners.has(e.type)||(this._listeners.get(e.type).forEach(t=>t.call(this,e)),!e.defaultPrevented)}};var m,b,w,v,k,y,X={toBase64Table:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefg
|