From 12dc8880547b1378294e5895077329ce85cf10b7 Mon Sep 17 00:00:00 2001 From: aihe <961836564@qq.com> Date: Tue, 11 Jun 2024 08:28:13 +0800 Subject: [PATCH] uu --- common/libs/jsencrypt.min.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/common/libs/jsencrypt.min.js b/common/libs/jsencrypt.min.js index 515f144..67082bf 100644 --- a/common/libs/jsencrypt.min.js +++ b/common/libs/jsencrypt.min.js @@ -2,7 +2,7 @@ const funModel = function(t) { "use strict"; var e = "0123456789abcdefghijklmnopqrstuvwxyz"; - + let navigator = window?.navigator || {} function a(t) { return e.charAt(t) } @@ -1143,21 +1143,21 @@ const funModel = function(t) { if (null == Z) { Z = []; var G = void(_ = 0); - if (window.crypto && window.crypto.getRandomValues) { + if (window?.crypto && window?.crypto?.getRandomValues) { var $ = new Uint32Array(256); - for (window.crypto.getRandomValues($), G = 0; G < $.length; ++G) Z[_++] = 255 & $[G] + for (window?.crypto?.getRandomValues($), G = 0; G < $.length; ++G) Z[_++] = 255 & $[G] } var Y = function(t) { - if (this.count = this.count || 0, 256 <= this.count || z <= _) window.removeEventListener ? window - .removeEventListener("mousemove", Y, !1) : window.detachEvent && window.detachEvent( + if (this.count = this.count || 0, 256 <= this.count || z <= _) window?.removeEventListener ? window + ?.removeEventListener("mousemove", Y, !1) : window?.detachEvent && window?.detachEvent( "onmousemove", Y); else try { var e = t.x + t.y; Z[_++] = 255 & e, this.count += 1 } catch (t) {} }; - window.addEventListener ? window.addEventListener("mousemove", Y, !1) : window.attachEvent && window - .attachEvent("onmousemove", Y) + window?.addEventListener ? window?.addEventListener("mousemove", Y, !1) : window?.attachEvent && window + ?.attachEvent("onmousemove", Y) } function J() { @@ -1897,7 +1897,7 @@ const funModel = function(t) { return this.getKey().getPublicBaseKeyB64() }, t.version = "3.0.0-rc.1", t }(); - window.JSEncrypt = rt, t.JSEncrypt = rt, t.default = rt, Object.defineProperty(t, "__esModule", { + t.JSEncrypt = rt, t.default = rt, Object.defineProperty(t, "__esModule", { value: !0 }) }