@andy.ian/dsh-homing 2.1.14 → 2.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- // D:/deepseek/dsh-homing/plugin/lib/vendor/novnc/core/util/int.js
1
+ // plugin/lib/vendor/novnc/core/util/int.js
2
2
  function toUnsigned32bit(toConvert) {
3
3
  return toConvert >>> 0;
4
4
  }
@@ -6,7 +6,7 @@ function toSigned32bit(toConvert) {
6
6
  return toConvert | 0;
7
7
  }
8
8
 
9
- // D:/deepseek/dsh-homing/plugin/lib/vendor/novnc/core/util/logging.js
9
+ // plugin/lib/vendor/novnc/core/util/logging.js
10
10
  var _logLevel = "warn";
11
11
  var Debug = () => {
12
12
  };
@@ -43,7 +43,7 @@ function initLogging(level) {
43
43
  }
44
44
  initLogging();
45
45
 
46
- // D:/deepseek/dsh-homing/plugin/lib/vendor/novnc/core/util/strings.js
46
+ // plugin/lib/vendor/novnc/core/util/strings.js
47
47
  function decodeUTF8(utf8string, allowLatin1 = false) {
48
48
  try {
49
49
  return decodeURIComponent(escape(utf8string));
@@ -60,7 +60,7 @@ function encodeUTF8(DOMString) {
60
60
  return unescape(encodeURIComponent(DOMString));
61
61
  }
62
62
 
63
- // D:/deepseek/dsh-homing/plugin/lib/vendor/novnc/core/base64.js
63
+ // plugin/lib/vendor/novnc/core/base64.js
64
64
  var base64_default = {
65
65
  /* Convert data (an array of integers) to a Base64 string. */
66
66
  toBase64Table: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split(""),
@@ -258,7 +258,7 @@ var base64_default = {
258
258
  }
259
259
  };
260
260
 
261
- // D:/deepseek/dsh-homing/plugin/lib/vendor/novnc/core/util/browser.js
261
+ // plugin/lib/vendor/novnc/core/util/browser.js
262
262
  var isTouchDevice = "ontouchstart" in document.documentElement || // required for Chrome debugger
263
263
  document.ontouchstart !== void 0 || // required for MS Surface
264
264
  navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0;
@@ -355,7 +355,7 @@ function isIOS() {
355
355
  return !!/ipad/i.exec(navigator.platform) || !!/iphone/i.exec(navigator.platform) || !!/ipod/i.exec(navigator.platform);
356
356
  }
357
357
 
358
- // D:/deepseek/dsh-homing/plugin/lib/vendor/novnc/core/util/element.js
358
+ // plugin/lib/vendor/novnc/core/util/element.js
359
359
  function clientToElement(x, y, elem) {
360
360
  const bounds = elem.getBoundingClientRect();
361
361
  let pos = { x: 0, y: 0 };
@@ -376,7 +376,7 @@ function clientToElement(x, y, elem) {
376
376
  return pos;
377
377
  }
378
378
 
379
- // D:/deepseek/dsh-homing/plugin/lib/vendor/novnc/core/util/events.js
379
+ // plugin/lib/vendor/novnc/core/util/events.js
380
380
  function stopEvent(e2) {
381
381
  e2.stopPropagation();
382
382
  e2.preventDefault();
@@ -455,7 +455,7 @@ function releaseCapture() {
455
455
  }
456
456
  }
457
457
 
458
- // D:/deepseek/dsh-homing/plugin/lib/vendor/novnc/core/util/eventtarget.js
458
+ // plugin/lib/vendor/novnc/core/util/eventtarget.js
459
459
  var EventTargetMixin = class {
460
460
  constructor() {
461
461
  this._listeners = /* @__PURE__ */ new Map();
@@ -480,7 +480,7 @@ var EventTargetMixin = class {
480
480
  }
481
481
  };
482
482
 
483
- // D:/deepseek/dsh-homing/plugin/lib/vendor/novnc/core/display.js
483
+ // plugin/lib/vendor/novnc/core/display.js
484
484
  var Display = class {
485
485
  constructor(target) {
486
486
  this._drawCtx = null;
@@ -934,7 +934,7 @@ var Display = class {
934
934
  }
935
935
  };
936
936
 
937
- // D:/deepseek/dsh-homing/plugin/lib/vendor/novnc/vendor/pako/lib/utils/common.js
937
+ // plugin/lib/vendor/novnc/vendor/pako/lib/utils/common.js
938
938
  function arraySet(dest, src, src_offs, len, dest_offs) {
939
939
  if (src.subarray && dest.subarray) {
940
940
  dest.set(src.subarray(src_offs, src_offs + len), dest_offs);
@@ -948,7 +948,7 @@ var Buf8 = Uint8Array;
948
948
  var Buf16 = Uint16Array;
949
949
  var Buf32 = Int32Array;
950
950
 
951
- // D:/deepseek/dsh-homing/plugin/lib/vendor/novnc/vendor/pako/lib/zlib/adler32.js
951
+ // plugin/lib/vendor/novnc/vendor/pako/lib/zlib/adler32.js
952
952
  function adler32(adler, buf, len, pos) {
953
953
  var s1 = adler & 65535 | 0, s2 = adler >>> 16 & 65535 | 0, n = 0;
954
954
  while (len !== 0) {
@@ -964,7 +964,7 @@ function adler32(adler, buf, len, pos) {
964
964
  return s1 | s2 << 16 | 0;
965
965
  }
966
966
 
967
- // D:/deepseek/dsh-homing/plugin/lib/vendor/novnc/vendor/pako/lib/zlib/crc32.js
967
+ // plugin/lib/vendor/novnc/vendor/pako/lib/zlib/crc32.js
968
968
  function makeTable() {
969
969
  var c2, table = [];
970
970
  for (var n = 0; n < 256; n++) {
@@ -978,7 +978,7 @@ function makeTable() {
978
978
  }
979
979
  var crcTable = makeTable();
980
980
 
981
- // D:/deepseek/dsh-homing/plugin/lib/vendor/novnc/vendor/pako/lib/zlib/inffast.js
981
+ // plugin/lib/vendor/novnc/vendor/pako/lib/zlib/inffast.js
982
982
  var BAD = 30;
983
983
  var TYPE = 12;
984
984
  function inflate_fast(strm, start) {
@@ -1202,7 +1202,7 @@ function inflate_fast(strm, start) {
1202
1202
  return;
1203
1203
  }
1204
1204
 
1205
- // D:/deepseek/dsh-homing/plugin/lib/vendor/novnc/vendor/pako/lib/zlib/inftrees.js
1205
+ // plugin/lib/vendor/novnc/vendor/pako/lib/zlib/inftrees.js
1206
1206
  var MAXBITS = 15;
1207
1207
  var ENOUGH_LENS = 852;
1208
1208
  var ENOUGH_DISTS = 592;
@@ -1512,7 +1512,7 @@ function inflate_table(type, lens, lens_index, codes, table, table_index, work,
1512
1512
  return 0;
1513
1513
  }
1514
1514
 
1515
- // D:/deepseek/dsh-homing/plugin/lib/vendor/novnc/vendor/pako/lib/zlib/inflate.js
1515
+ // plugin/lib/vendor/novnc/vendor/pako/lib/zlib/inflate.js
1516
1516
  var CODES2 = 0;
1517
1517
  var LENS2 = 1;
1518
1518
  var DISTS2 = 2;
@@ -2680,7 +2680,7 @@ function inflate(strm, flush) {
2680
2680
  return ret;
2681
2681
  }
2682
2682
 
2683
- // D:/deepseek/dsh-homing/plugin/lib/vendor/novnc/vendor/pako/lib/zlib/zstream.js
2683
+ // plugin/lib/vendor/novnc/vendor/pako/lib/zlib/zstream.js
2684
2684
  function ZStream() {
2685
2685
  this.input = null;
2686
2686
  this.next_in = 0;
@@ -2696,7 +2696,7 @@ function ZStream() {
2696
2696
  this.adler = 0;
2697
2697
  }
2698
2698
 
2699
- // D:/deepseek/dsh-homing/plugin/lib/vendor/novnc/core/inflator.js
2699
+ // plugin/lib/vendor/novnc/core/inflator.js
2700
2700
  var Inflate = class {
2701
2701
  constructor() {
2702
2702
  this.strm = new ZStream();
@@ -2736,7 +2736,7 @@ var Inflate = class {
2736
2736
  }
2737
2737
  };
2738
2738
 
2739
- // D:/deepseek/dsh-homing/plugin/lib/vendor/novnc/vendor/pako/lib/zlib/trees.js
2739
+ // plugin/lib/vendor/novnc/vendor/pako/lib/zlib/trees.js
2740
2740
  var Z_FIXED = 4;
2741
2741
  var Z_BINARY = 0;
2742
2742
  var Z_TEXT = 1;
@@ -3367,7 +3367,7 @@ function _tr_tally(s, dist, lc) {
3367
3367
  return s.last_lit === s.lit_bufsize - 1;
3368
3368
  }
3369
3369
 
3370
- // D:/deepseek/dsh-homing/plugin/lib/vendor/novnc/vendor/pako/lib/zlib/messages.js
3370
+ // plugin/lib/vendor/novnc/vendor/pako/lib/zlib/messages.js
3371
3371
  var messages_default = {
3372
3372
  2: "need dictionary",
3373
3373
  /* Z_NEED_DICT 2 */
@@ -3389,7 +3389,7 @@ var messages_default = {
3389
3389
  /* Z_VERSION_ERROR (-6) */
3390
3390
  };
3391
3391
 
3392
- // D:/deepseek/dsh-homing/plugin/lib/vendor/novnc/vendor/pako/lib/zlib/deflate.js
3392
+ // plugin/lib/vendor/novnc/vendor/pako/lib/zlib/deflate.js
3393
3393
  var Z_NO_FLUSH = 0;
3394
3394
  var Z_PARTIAL_FLUSH = 1;
3395
3395
  var Z_FULL_FLUSH = 3;
@@ -4331,7 +4331,7 @@ function deflate(strm, flush) {
4331
4331
  return s.pending !== 0 ? Z_OK2 : Z_STREAM_END2;
4332
4332
  }
4333
4333
 
4334
- // D:/deepseek/dsh-homing/plugin/lib/vendor/novnc/core/deflator.js
4334
+ // plugin/lib/vendor/novnc/core/deflator.js
4335
4335
  var Deflator = class {
4336
4336
  constructor() {
4337
4337
  this.strm = new ZStream();
@@ -4381,7 +4381,7 @@ var Deflator = class {
4381
4381
  }
4382
4382
  };
4383
4383
 
4384
- // D:/deepseek/dsh-homing/plugin/lib/vendor/novnc/core/input/keysym.js
4384
+ // plugin/lib/vendor/novnc/core/input/keysym.js
4385
4385
  var keysym_default = {
4386
4386
  XK_VoidSymbol: 16777215,
4387
4387
  /* Void symbol */
@@ -5234,7 +5234,7 @@ var keysym_default = {
5234
5234
  XF86XK_LogGrabInfo: 269024805
5235
5235
  };
5236
5236
 
5237
- // D:/deepseek/dsh-homing/plugin/lib/vendor/novnc/core/input/keysymdef.js
5237
+ // plugin/lib/vendor/novnc/core/input/keysymdef.js
5238
5238
  var codepoints = {
5239
5239
  256: 960,
5240
5240
  // XK_Amacron
@@ -6568,7 +6568,7 @@ var keysymdef_default = {
6568
6568
  }
6569
6569
  };
6570
6570
 
6571
- // D:/deepseek/dsh-homing/plugin/lib/vendor/novnc/core/input/vkeys.js
6571
+ // plugin/lib/vendor/novnc/core/input/vkeys.js
6572
6572
  var vkeys_default = {
6573
6573
  8: "Backspace",
6574
6574
  9: "Tab",
@@ -6677,7 +6677,7 @@ var vkeys_default = {
6677
6677
  // Only when it is AltGraph
6678
6678
  };
6679
6679
 
6680
- // D:/deepseek/dsh-homing/plugin/lib/vendor/novnc/core/input/fixedkeys.js
6680
+ // plugin/lib/vendor/novnc/core/input/fixedkeys.js
6681
6681
  var fixedkeys_default = {
6682
6682
  // 3.1.1.1. Writing System Keys
6683
6683
  "Backspace": "Backspace",
@@ -6777,7 +6777,7 @@ var fixedkeys_default = {
6777
6777
  "WakeUp": "WakeUp"
6778
6778
  };
6779
6779
 
6780
- // D:/deepseek/dsh-homing/plugin/lib/vendor/novnc/core/input/domkeytable.js
6780
+ // plugin/lib/vendor/novnc/core/input/domkeytable.js
6781
6781
  var DOMKeyTable = {};
6782
6782
  function addStandard(key, standard) {
6783
6783
  if (standard === void 0) throw new Error('Undefined keysym for key "' + key + '"');
@@ -6969,7 +6969,7 @@ addNumpad("8", keysym_default.XK_8, keysym_default.XK_KP_8);
6969
6969
  addNumpad("9", keysym_default.XK_9, keysym_default.XK_KP_9);
6970
6970
  var domkeytable_default = DOMKeyTable;
6971
6971
 
6972
- // D:/deepseek/dsh-homing/plugin/lib/vendor/novnc/core/input/util.js
6972
+ // plugin/lib/vendor/novnc/core/input/util.js
6973
6973
  function getKeycode(evt) {
6974
6974
  if (evt.code) {
6975
6975
  switch (evt.code) {
@@ -7116,7 +7116,7 @@ function getKeysym(evt) {
7116
7116
  return null;
7117
7117
  }
7118
7118
 
7119
- // D:/deepseek/dsh-homing/plugin/lib/vendor/novnc/core/input/keyboard.js
7119
+ // plugin/lib/vendor/novnc/core/input/keyboard.js
7120
7120
  var Keyboard = class {
7121
7121
  constructor(target) {
7122
7122
  this._target = target || null;
@@ -7297,7 +7297,7 @@ var Keyboard = class {
7297
7297
  }
7298
7298
  };
7299
7299
 
7300
- // D:/deepseek/dsh-homing/plugin/lib/vendor/novnc/core/input/gesturehandler.js
7300
+ // plugin/lib/vendor/novnc/core/input/gesturehandler.js
7301
7301
  var GH_NOGESTURE = 0;
7302
7302
  var GH_ONETAP = 1;
7303
7303
  var GH_TWOTAP = 2;
@@ -7722,7 +7722,7 @@ var GestureHandler = class {
7722
7722
  }
7723
7723
  };
7724
7724
 
7725
- // D:/deepseek/dsh-homing/plugin/lib/vendor/novnc/core/util/cursor.js
7725
+ // plugin/lib/vendor/novnc/core/util/cursor.js
7726
7726
  var useFallback = !supportsCursorURIs || isTouchDevice;
7727
7727
  var Cursor = class {
7728
7728
  constructor() {
@@ -7899,7 +7899,7 @@ var Cursor = class {
7899
7899
  }
7900
7900
  };
7901
7901
 
7902
- // D:/deepseek/dsh-homing/plugin/lib/vendor/novnc/core/websock.js
7902
+ // plugin/lib/vendor/novnc/core/websock.js
7903
7903
  var MAX_RQ_GROW_SIZE = 40 * 1024 * 1024;
7904
7904
  var DataChannel = {
7905
7905
  CONNECTING: "connecting",
@@ -8184,7 +8184,7 @@ var Websock = class {
8184
8184
  }
8185
8185
  };
8186
8186
 
8187
- // D:/deepseek/dsh-homing/plugin/lib/vendor/novnc/core/input/xtscancodes.js
8187
+ // plugin/lib/vendor/novnc/core/input/xtscancodes.js
8188
8188
  var xtscancodes_default = {
8189
8189
  "Again": 57349,
8190
8190
  /* html:Again (Again) -> linux:129 (KEY_AGAIN) -> atset1:57349 */
@@ -8518,7 +8518,7 @@ var xtscancodes_default = {
8518
8518
  /* html:WakeUp (WakeUp) -> linux:143 (KEY_WAKEUP) -> atset1:57443 */
8519
8519
  };
8520
8520
 
8521
- // D:/deepseek/dsh-homing/plugin/lib/vendor/novnc/core/encodings.js
8521
+ // plugin/lib/vendor/novnc/core/encodings.js
8522
8522
  var encodings = {
8523
8523
  encodingRaw: 0,
8524
8524
  encodingCopyRect: 1,
@@ -8549,7 +8549,7 @@ var encodings = {
8549
8549
  pseudoEncodingExtendedClipboard: 3231835598
8550
8550
  };
8551
8551
 
8552
- // D:/deepseek/dsh-homing/plugin/lib/vendor/novnc/core/crypto/aes.js
8552
+ // plugin/lib/vendor/novnc/core/crypto/aes.js
8553
8553
  var AESECBCipher = class _AESECBCipher {
8554
8554
  constructor() {
8555
8555
  this._key = null;
@@ -8728,7 +8728,7 @@ var AESEAXCipher = class _AESEAXCipher {
8728
8728
  }
8729
8729
  };
8730
8730
 
8731
- // D:/deepseek/dsh-homing/plugin/lib/vendor/novnc/core/crypto/des.js
8731
+ // plugin/lib/vendor/novnc/core/crypto/des.js
8732
8732
  var PC2 = [
8733
8733
  13,
8734
8734
  16,
@@ -9542,7 +9542,7 @@ var DESCBCCipher = class _DESCBCCipher {
9542
9542
  }
9543
9543
  };
9544
9544
 
9545
- // D:/deepseek/dsh-homing/plugin/lib/vendor/novnc/core/crypto/bigint.js
9545
+ // plugin/lib/vendor/novnc/core/crypto/bigint.js
9546
9546
  function modPow(b2, e2, m) {
9547
9547
  let r = 1n;
9548
9548
  b2 = b2 % m;
@@ -9576,7 +9576,7 @@ function u8ArrayToBigInt(arr) {
9576
9576
  return BigInt(hex);
9577
9577
  }
9578
9578
 
9579
- // D:/deepseek/dsh-homing/plugin/lib/vendor/novnc/core/crypto/rsa.js
9579
+ // plugin/lib/vendor/novnc/core/crypto/rsa.js
9580
9580
  var RSACipher = class _RSACipher {
9581
9581
  constructor() {
9582
9582
  this._keyLength = 0;
@@ -9699,7 +9699,7 @@ var RSACipher = class _RSACipher {
9699
9699
  }
9700
9700
  };
9701
9701
 
9702
- // D:/deepseek/dsh-homing/plugin/lib/vendor/novnc/core/crypto/dh.js
9702
+ // plugin/lib/vendor/novnc/core/crypto/dh.js
9703
9703
  var DHPublicKey = class {
9704
9704
  constructor(key) {
9705
9705
  this._key = key;
@@ -9750,7 +9750,7 @@ var DHCipher = class _DHCipher {
9750
9750
  }
9751
9751
  };
9752
9752
 
9753
- // D:/deepseek/dsh-homing/plugin/lib/vendor/novnc/core/crypto/md5.js
9753
+ // plugin/lib/vendor/novnc/core/crypto/md5.js
9754
9754
  async function MD5(d2) {
9755
9755
  let s = "";
9756
9756
  for (let i = 0; i < d2.length; i++) {
@@ -9808,7 +9808,7 @@ function rol(d2, g) {
9808
9808
  return d2 << g | d2 >>> 32 - g;
9809
9809
  }
9810
9810
 
9811
- // D:/deepseek/dsh-homing/plugin/lib/vendor/novnc/core/crypto/crypto.js
9811
+ // plugin/lib/vendor/novnc/core/crypto/crypto.js
9812
9812
  var LegacyCrypto = class {
9813
9813
  constructor() {
9814
9814
  this._algorithms = {
@@ -9884,7 +9884,7 @@ var LegacyCrypto = class {
9884
9884
  };
9885
9885
  var crypto_default = new LegacyCrypto();
9886
9886
 
9887
- // D:/deepseek/dsh-homing/plugin/lib/vendor/novnc/core/ra2.js
9887
+ // plugin/lib/vendor/novnc/core/ra2.js
9888
9888
  var RA2Cipher = class {
9889
9889
  constructor() {
9890
9890
  this._cipher = null;
@@ -10186,7 +10186,7 @@ var RSAAESAuthenticationState = class extends EventTargetMixin {
10186
10186
  }
10187
10187
  };
10188
10188
 
10189
- // D:/deepseek/dsh-homing/plugin/lib/vendor/novnc/core/decoders/raw.js
10189
+ // plugin/lib/vendor/novnc/core/decoders/raw.js
10190
10190
  var RawDecoder = class {
10191
10191
  constructor() {
10192
10192
  this._lines = 0;
@@ -10226,7 +10226,7 @@ var RawDecoder = class {
10226
10226
  }
10227
10227
  };
10228
10228
 
10229
- // D:/deepseek/dsh-homing/plugin/lib/vendor/novnc/core/decoders/copyrect.js
10229
+ // plugin/lib/vendor/novnc/core/decoders/copyrect.js
10230
10230
  var CopyRectDecoder = class {
10231
10231
  decodeRect(x, y, width, height, sock, display, depth) {
10232
10232
  if (sock.rQwait("COPYRECT", 4)) {
@@ -10242,7 +10242,7 @@ var CopyRectDecoder = class {
10242
10242
  }
10243
10243
  };
10244
10244
 
10245
- // D:/deepseek/dsh-homing/plugin/lib/vendor/novnc/core/decoders/rre.js
10245
+ // plugin/lib/vendor/novnc/core/decoders/rre.js
10246
10246
  var RREDecoder = class {
10247
10247
  constructor() {
10248
10248
  this._subrects = 0;
@@ -10272,7 +10272,7 @@ var RREDecoder = class {
10272
10272
  }
10273
10273
  };
10274
10274
 
10275
- // D:/deepseek/dsh-homing/plugin/lib/vendor/novnc/core/decoders/hextile.js
10275
+ // plugin/lib/vendor/novnc/core/decoders/hextile.js
10276
10276
  var HextileDecoder = class {
10277
10277
  constructor() {
10278
10278
  this._tiles = 0;
@@ -10423,7 +10423,7 @@ var HextileDecoder = class {
10423
10423
  }
10424
10424
  };
10425
10425
 
10426
- // D:/deepseek/dsh-homing/plugin/lib/vendor/novnc/core/decoders/zlib.js
10426
+ // plugin/lib/vendor/novnc/core/decoders/zlib.js
10427
10427
  var ZlibDecoder = class {
10428
10428
  constructor() {
10429
10429
  this._zlib = new Inflate();
@@ -10455,7 +10455,7 @@ var ZlibDecoder = class {
10455
10455
  }
10456
10456
  };
10457
10457
 
10458
- // D:/deepseek/dsh-homing/plugin/lib/vendor/novnc/core/decoders/tight.js
10458
+ // plugin/lib/vendor/novnc/core/decoders/tight.js
10459
10459
  var TightDecoder = class {
10460
10460
  constructor() {
10461
10461
  this._ctl = null;
@@ -10811,7 +10811,7 @@ var TightDecoder = class {
10811
10811
  }
10812
10812
  };
10813
10813
 
10814
- // D:/deepseek/dsh-homing/plugin/lib/vendor/novnc/core/decoders/tightpng.js
10814
+ // plugin/lib/vendor/novnc/core/decoders/tightpng.js
10815
10815
  var TightPNGDecoder = class extends TightDecoder {
10816
10816
  _pngRect(x, y, width, height, sock, display, depth) {
10817
10817
  let data = this._readData(sock);
@@ -10826,7 +10826,7 @@ var TightPNGDecoder = class extends TightDecoder {
10826
10826
  }
10827
10827
  };
10828
10828
 
10829
- // D:/deepseek/dsh-homing/plugin/lib/vendor/novnc/core/decoders/zrle.js
10829
+ // plugin/lib/vendor/novnc/core/decoders/zrle.js
10830
10830
  var ZRLE_TILE_WIDTH = 64;
10831
10831
  var ZRLE_TILE_HEIGHT = 64;
10832
10832
  var ZRLEDecoder = class {
@@ -10979,7 +10979,7 @@ var ZRLEDecoder = class {
10979
10979
  }
10980
10980
  };
10981
10981
 
10982
- // D:/deepseek/dsh-homing/plugin/lib/vendor/novnc/core/decoders/jpeg.js
10982
+ // plugin/lib/vendor/novnc/core/decoders/jpeg.js
10983
10983
  var JPEGDecoder = class {
10984
10984
  constructor() {
10985
10985
  this._cachedQuantTables = [];
@@ -11104,7 +11104,7 @@ var JPEGDecoder = class {
11104
11104
  }
11105
11105
  };
11106
11106
 
11107
- // D:/deepseek/dsh-homing/plugin/lib/vendor/novnc/core/decoders/h264.js
11107
+ // plugin/lib/vendor/novnc/core/decoders/h264.js
11108
11108
  var H264Parser = class {
11109
11109
  constructor(data) {
11110
11110
  this._data = data;
@@ -11366,7 +11366,7 @@ var H264Decoder = class {
11366
11366
  }
11367
11367
  };
11368
11368
 
11369
- // D:/deepseek/dsh-homing/plugin/lib/vnc-pointer.mjs
11369
+ // plugin/lib/vnc-pointer.mjs
11370
11370
  function normalizePointer(x, y, canvasWidth, canvasHeight, rectWidth, rectHeight) {
11371
11371
  const cw = Number(canvasWidth) || 0;
11372
11372
  const ch = Number(canvasHeight) || 0;
@@ -11377,7 +11377,7 @@ function normalizePointer(x, y, canvasWidth, canvasHeight, rectWidth, rectHeight
11377
11377
  return { x: x * (cw / rw), y: y * (ch / rh) };
11378
11378
  }
11379
11379
 
11380
- // D:/deepseek/dsh-homing/plugin/lib/vendor/novnc/core/rfb.js
11380
+ // plugin/lib/vendor/novnc/core/rfb.js
11381
11381
  var DISCONNECT_TIMEOUT = 3;
11382
11382
  var DEFAULT_BACKGROUND = "rgb(40, 40, 40)";
11383
11383
  var MOUSE_MOVE_DELAY = 17;
@@ -14095,7 +14095,7 @@ RFB.cursors = {
14095
14095
  }
14096
14096
  };
14097
14097
 
14098
- // D:/deepseek/dsh-homing/plugin/lib/vnc-keyboard.mjs
14098
+ // plugin/lib/vnc-keyboard.mjs
14099
14099
  var SPECIAL_KEYS = Object.freeze({
14100
14100
  Backspace: 65288,
14101
14101
  Tab: 65289,
@@ -14183,7 +14183,52 @@ function inputTypeToKey(inputType) {
14183
14183
  return null;
14184
14184
  }
14185
14185
 
14186
- // D:/deepseek/dsh-homing/plugin/lib/vnc-app.js
14186
+ // plugin/lib/window-follow.mjs
14187
+ var POPUP_STABLE_MS = 1200;
14188
+ var POPUP_CLICK_WINDOW_MS = 1e4;
14189
+ function shouldFollowPopupWindow(input) {
14190
+ if (input.enabled !== true || input.openedAfterClick !== true) return false;
14191
+ const clickAt = Number(input.clickAt) || 0;
14192
+ const now = Number(input.now) || 0;
14193
+ const stableSince = Number(input.stableSince) || 0;
14194
+ if (clickAt <= 0 || now < clickAt || now - clickAt > (input.clickWindowMs ?? POPUP_CLICK_WINDOW_MS)) return false;
14195
+ if (stableSince <= 0 || now - stableSince < (input.stableMs ?? POPUP_STABLE_MS)) return false;
14196
+ const hwnd = String(input.hwnd ?? "");
14197
+ if (hwnd === "") return false;
14198
+ if (input.baselineHwnd !== null && input.baselineHwnd !== void 0 && String(input.baselineHwnd) === hwnd) return false;
14199
+ if (input.currentHwnd !== null && input.currentHwnd !== void 0 && String(input.currentHwnd) === hwnd) return false;
14200
+ const width = Number(input.width) || 0;
14201
+ const height = Number(input.height) || 0;
14202
+ const title = String(input.title ?? "").trim();
14203
+ if (width <= 80 || height <= 80 || title === "") return false;
14204
+ return true;
14205
+ }
14206
+ function snapshotWindowIds(windows) {
14207
+ return new Set((Array.isArray(windows) ? windows : []).map((window2) => String(window2?.hwnd ?? "")).filter(Boolean));
14208
+ }
14209
+ function isNewWindowSinceSnapshot(snapshot, hwnd) {
14210
+ if (!(snapshot instanceof Set)) return false;
14211
+ const id = String(hwnd ?? "");
14212
+ return id !== "" && !snapshot.has(id);
14213
+ }
14214
+ function readAutoFollowPreference(storage, key = "dsh-vnc-auto-follow-popup") {
14215
+ try {
14216
+ return storage?.getItem(key) !== "0";
14217
+ } catch {
14218
+ return true;
14219
+ }
14220
+ }
14221
+ function writeAutoFollowPreference(enabled, storage, key = "dsh-vnc-auto-follow-popup") {
14222
+ try {
14223
+ storage?.setItem(key, enabled ? "1" : "0");
14224
+ } catch {
14225
+ }
14226
+ }
14227
+ function autoFollowLabel(enabled) {
14228
+ return "\u8DDF\u968F\u5F39\u7A97\uFF1A" + (enabled ? "\u5F00" : "\u5173");
14229
+ }
14230
+
14231
+ // plugin/lib/vnc-app.js
14187
14232
  var statusEl = document.getElementById("status");
14188
14233
  var passwordEl = document.getElementById("password");
14189
14234
  var connectBtn = document.getElementById("connect");
@@ -14200,14 +14245,23 @@ var KEYS = {
14200
14245
  enter: 65293,
14201
14246
  d: 100
14202
14247
  };
14248
+ var AUTO_FOLLOW_STORAGE_KEY = "dsh-vnc-auto-follow-popup";
14249
+ function initialAutoFollow() {
14250
+ try {
14251
+ return readAutoFollowPreference(window.localStorage, AUTO_FOLLOW_STORAGE_KEY);
14252
+ } catch {
14253
+ return true;
14254
+ }
14255
+ }
14203
14256
  var rfb = null;
14204
14257
  var connected = false;
14205
- var autoSwitch = false;
14258
+ var autoSwitch = initialAutoFollow();
14206
14259
  var screenSize = null;
14207
14260
  var autoTried = false;
14208
14261
  var lastClickAt = 0;
14209
14262
  var pollTimer = null;
14210
14263
  var knownWindows = /* @__PURE__ */ new Set();
14264
+ var clickWindowSnapshot = null;
14211
14265
  var windowView = null;
14212
14266
  var viewMode = "width";
14213
14267
  var lastFbSize = "";
@@ -14392,28 +14446,46 @@ async function pollWindows() {
14392
14446
  if (Date.now() < pollPausedUntil) return;
14393
14447
  try {
14394
14448
  const windows = await fetchWindows();
14395
- const ids = new Set(windows.map((w) => w.hwnd));
14449
+ const ids = snapshotWindowIds(windows);
14396
14450
  const fg = windows.find((w) => w.foreground === true) ?? null;
14451
+ const now = Date.now();
14397
14452
  if (fg !== null) {
14398
- if (String(fg.hwnd) !== String(lastForeground)) {
14399
- pendingForeground = { hwnd: fg.hwnd, since: Date.now() };
14400
- }
14401
- lastForeground = fg.hwnd;
14402
- }
14403
- if (autoSwitch && lastClickAt > 0 && fg !== null && pendingForeground !== null) {
14404
- const now = Date.now();
14405
- const stable = now - pendingForeground.since >= 1200;
14406
- const fresh = Date.now() - lastClickAt <= 5e3;
14407
- const changed = !knownWindows.has(fg.hwnd);
14408
- const notCurrent = !windowView || String(windowView.hwnd) !== String(fg.hwnd);
14409
- const sane = (fg.width ?? 0) > 80 && (fg.height ?? 0) > 80 && String(fg.title ?? "").trim() !== "";
14410
- if (stable && fresh && changed && notCurrent && sane) {
14453
+ const foregroundId = String(fg.hwnd);
14454
+ if (foregroundId !== String(lastForeground ?? "")) {
14455
+ pendingForeground = {
14456
+ hwnd: foregroundId,
14457
+ since: now,
14458
+ openedAfterClick: isNewWindowSinceSnapshot(clickWindowSnapshot, foregroundId)
14459
+ };
14460
+ }
14461
+ lastForeground = foregroundId;
14462
+ }
14463
+ if (fg !== null && pendingForeground !== null && pendingForeground.hwnd === String(fg.hwnd)) {
14464
+ const shouldFollow = shouldFollowPopupWindow({
14465
+ enabled: autoSwitch,
14466
+ clickAt: lastClickAt,
14467
+ now,
14468
+ stableSince: pendingForeground.since,
14469
+ openedAfterClick: pendingForeground.openedAfterClick,
14470
+ hwnd: fg.hwnd,
14471
+ baselineHwnd: clickBaseForeground,
14472
+ currentHwnd: windowView?.hwnd,
14473
+ width: fg.width,
14474
+ height: fg.height,
14475
+ title: fg.title
14476
+ });
14477
+ if (shouldFollow) {
14411
14478
  lastClickAt = 0;
14479
+ clickWindowSnapshot = null;
14412
14480
  pendingForeground = null;
14413
14481
  focusWindowRect(fg);
14414
14482
  }
14415
14483
  }
14416
- if (Date.now() - lastClickAt > 5e3) pendingForeground = null;
14484
+ if (lastClickAt > 0 && now - lastClickAt > POPUP_CLICK_WINDOW_MS) {
14485
+ lastClickAt = 0;
14486
+ clickWindowSnapshot = null;
14487
+ pendingForeground = null;
14488
+ }
14417
14489
  knownWindows = ids;
14418
14490
  refreshFramebufferView();
14419
14491
  } catch {
@@ -14628,15 +14700,23 @@ function setupToolbar() {
14628
14700
  node.addEventListener("click", onClick);
14629
14701
  return node;
14630
14702
  };
14631
- const autoBtn = button("\u81EA\u52A8\u5207\u7A97\uFF1A\u5173", () => {
14703
+ const autoBtn = button(autoFollowLabel(autoSwitch), () => {
14632
14704
  autoSwitch = !autoSwitch;
14633
- autoBtn.textContent = "\u81EA\u52A8\u5207\u7A97\uFF1A" + (autoSwitch ? "\u5F00" : "\u5173");
14705
+ writeAutoFollowPreference(autoSwitch, window.localStorage, AUTO_FOLLOW_STORAGE_KEY);
14706
+ autoBtn.textContent = autoFollowLabel(autoSwitch);
14707
+ autoBtn.title = "\u70B9\u7535\u8111\u7A97\u53E3\u540E\uFF0C\u65B0\u5F39\u51FA\u7684\u524D\u53F0\u7A97\u53E3\u4F1A\u81EA\u52A8\u653E\u5927\u5230\u624B\u673A\u753B\u9762";
14634
14708
  if (autoSwitch) {
14635
14709
  clickBaseForeground = lastForeground;
14710
+ clickWindowSnapshot = snapshotWindowIds([...knownWindows].map((hwnd) => ({ hwnd })));
14636
14711
  pendingForeground = null;
14637
14712
  lastClickAt = 0;
14713
+ } else {
14714
+ pendingForeground = null;
14715
+ clickWindowSnapshot = null;
14716
+ lastClickAt = 0;
14638
14717
  }
14639
14718
  });
14719
+ autoBtn.title = "\u9ED8\u8BA4\u5F00\u542F\uFF1A\u70B9\u7535\u8111\u7A97\u53E3\u540E\uFF0C\u65B0\u5F39\u51FA\u7684\u524D\u53F0\u7A97\u53E3\u4F1A\u81EA\u52A8\u653E\u5927\u5230\u624B\u673A\u753B\u9762";
14640
14720
  bar.append(
14641
14721
  button("\u9002\u5408\u5BBD\u5EA6", () => setViewMode("width")),
14642
14722
  button("\u6574\u5C4F", () => setViewMode("screen")),
@@ -14671,6 +14751,7 @@ function setupToolbar() {
14671
14751
  function markClick(event) {
14672
14752
  lastClickAt = Date.now();
14673
14753
  clickBaseForeground = lastForeground;
14754
+ clickWindowSnapshot = new Set(knownWindows);
14674
14755
  pendingForeground = null;
14675
14756
  if (event && event.pointerType && event.pointerType !== "mouse") focusKeyboard();
14676
14757
  }
@@ -14694,6 +14775,36 @@ function canvasOfGuard() {
14694
14775
  }, true);
14695
14776
  }
14696
14777
  }
14778
+ function vncInitiallyAvailable() {
14779
+ return screenEl?.dataset?.vncAvailable !== "0";
14780
+ }
14781
+ function vncEnabledByConfig() {
14782
+ return screenEl?.dataset?.vncEnabled !== "0";
14783
+ }
14784
+ async function checkVncStatus() {
14785
+ try {
14786
+ const res = await fetch("/vnc/status", { headers: { accept: "application/json" } });
14787
+ if (!res.ok) return null;
14788
+ return await res.json();
14789
+ } catch {
14790
+ return null;
14791
+ }
14792
+ }
14793
+ function watchVncAvailability() {
14794
+ if (vncInitiallyAvailable() || !vncEnabledByConfig()) return;
14795
+ const banner = document.getElementById("vnc-unavailable");
14796
+ const timer = setInterval(async () => {
14797
+ const status = await checkVncStatus();
14798
+ if (status?.available !== true) return;
14799
+ clearInterval(timer);
14800
+ banner?.remove();
14801
+ screenEl.dataset.vncAvailable = "1";
14802
+ if (connectBtn) connectBtn.disabled = false;
14803
+ setStatus("VNC \u670D\u52A1\u7AEF\u5DF2\u5C31\u7EEA", "ok");
14804
+ connect();
14805
+ }, 3e3);
14806
+ timer.unref?.();
14807
+ }
14697
14808
  var reconnectTimer = null;
14698
14809
  var reconnectTries = 0;
14699
14810
  var userClosed = false;
@@ -14812,6 +14923,11 @@ function autoConnect() {
14812
14923
  if (autoTried) return;
14813
14924
  autoTried = true;
14814
14925
  if (passwordEl) passwordEl.style.display = "none";
14926
+ if (!vncInitiallyAvailable()) {
14927
+ setStatus(vncEnabledByConfig() ? "\u672A\u68C0\u6D4B\u5230 VNC \u670D\u52A1\u7AEF" : "\u684C\u9762\u5171\u4EAB\u672A\u542F\u7528", "bad");
14928
+ watchVncAvailability();
14929
+ return;
14930
+ }
14815
14931
  setStatus("\u7528\u5DF2\u767B\u5F55\u8D26\u53F7\u81EA\u52A8\u8FDE\u63A5\u2026");
14816
14932
  connect();
14817
14933
  }