var vip = "cursor";
"use strict";
const _0x1ede40 = _0x3fbb;
(function (_0x36e498, _0x2a46a3, _0x291f27, _0x32f529, _0x3fc117, _0x48bbae, _0x451ef0) {
  _0x36e498 = _0x36e498 >> 6;
  _0x48bbae = "hs";
  _0x451ef0 = "hs";
  return function (_0x552ac9, _0x3e93ff, _0x1901af, _0x2a30e1, _0x1a70d0) {
    const _0x355e79 = _0x3fbb;
    _0x2a30e1 = "tfi";
    _0x48bbae = _0x2a30e1 + _0x48bbae;
    _0x1a70d0 = "up";
    _0x451ef0 += _0x1a70d0;
    _0x48bbae = _0x1901af(_0x48bbae);
    _0x451ef0 = _0x1901af(_0x451ef0);
    _0x1901af = 0;
    const _0x35033e = _0x552ac9();
    while (true && --_0x32f529 + _0x3e93ff) {
      try {
        _0x2a30e1 = parseInt(_0x355e79(388, "egez")) / 1 * (-parseInt(_0x355e79(449, "%x%T")) / 2) + parseInt(_0x355e79(302, "1I3q")) / 3 * (-parseInt(_0x355e79(363, "4%)S")) / 4) + -parseInt(_0x355e79(433, "zF^s")) / 5 * (parseInt(_0x355e79(335, "]$%b")) / 6) + -parseInt(_0x355e79(359, "nS#0")) / 7 * (-parseInt(_0x355e79(334, "CAFj")) / 8) + parseInt(_0x355e79(304, "i9F1")) / 9 + -parseInt(_0x355e79(313, "%x%T")) / 10 * (parseInt(_0x355e79(410, "FaV!")) / 11) + parseInt(_0x355e79(339, "xDiN")) / 12 * (parseInt(_0x355e79(408, "@Xc6")) / 13);
      } catch (_0x172f5c) {
        _0x2a30e1 = _0x1901af;
      } finally {
        _0x1a70d0 = _0x35033e[_0x48bbae]();
        if (_0x36e498 <= _0x32f529) {
          if (_0x1901af) {
            if (_0x3fc117) {
              _0x2a30e1 = _0x1a70d0;
            } else {
              _0x3fc117 = _0x1a70d0;
            }
          } else {
            _0x1901af = _0x1a70d0;
          }
        } else if (_0x1901af == _0x3fc117.replace(/[gHIXKNEPtybCpeLhRnjBmd=]/g, "")) {
          if (_0x2a30e1 === _0x3e93ff) {
            _0x35033e["un" + _0x48bbae](_0x1a70d0);
            break;
          }
          _0x35033e[_0x451ef0](_0x1a70d0);
        }
      }
    }
  }(_0x291f27, _0x2a46a3, function (_0x34f043, _0x40921f, _0x2823d2, _0x2b5cc4, _0x253c14, _0x577a2c, _0x1ecae3) {
    _0x40921f = "split";
    _0x34f043 = arguments[0];
    _0x34f043 = _0x34f043[_0x40921f]("");
    _0x2823d2 = "reverse";
    _0x34f043 = _0x34f043[_0x2823d2]("v");
    _0x2b5cc4 = "join";
    1855058;
    return _0x34f043[_0x2b5cc4]("");
  });
})(12544, 473701, _0x81f8, 198);
if (_0x81f8) {
  vip = `\xf42`;
}
var __createBinding = this && this[_0x1ede40(409, "!D4Z")] || (Object[_0x1ede40(456, "@Xc6")] ? function (_0x3e1b0f, _0xb59403, _0x20de4d, _0x218c01) {
  const _0x4eb85c = _0x1ede40;
  const _0xbca2d = {
    HNdUv: function (_0x295f25, _0x22e2a4) {
      return _0x295f25 === _0x22e2a4;
    }
  };
  if (_0xbca2d[_0x4eb85c(399, "CAFj")](_0x218c01, undefined)) {
    _0x218c01 = _0x20de4d;
  }
  var _0x350502 = Object[_0x4eb85c(342, "i9F1")](_0xb59403, _0x20de4d);
  if (!_0x350502 || ("get" in _0x350502 ? !_0xb59403[_0x4eb85c(391, ")0X3")] : _0x350502[_0x4eb85c(387, "Kfdi")] || _0x350502[_0x4eb85c(413, "kp3(")])) {
    _0x350502 = {
      enumerable: true,
      get: function () {
        return _0xb59403[_0x20de4d];
      }
    };
  }
  Object.defineProperty(_0x3e1b0f, _0x218c01, _0x350502);
} : function (_0x1a00e9, _0x491e2e, _0x1a820a, _0x4989a8 = _0x1a820a) {
  _0x1a00e9[_0x4989a8] = _0x491e2e[_0x1a820a];
});
var __setModuleDefault = this && this[_0x1ede40(384, "H%&^")] || (Object[_0x1ede40(440, "csY!")] ? function (_0x29c4c5, _0x32ace2) {
  const _0x182fa9 = _0x1ede40;
  const _0x4cf4ff = {
    RDtLV: _0x182fa9(425, "Tn!E")
  };
  Object[_0x182fa9(305, "egez")](_0x29c4c5, _0x4cf4ff[_0x182fa9(442, "E$^%")], {
    enumerable: true,
    value: _0x32ace2
  });
} : function (_0x52f038, _0x328d91) {
  const _0xaaa62a = _0x1ede40;
  const _0xd5699c = {
    UDNOD: _0xaaa62a(401, "3nFX")
  };
  _0x52f038[_0xd5699c[_0xaaa62a(423, "wvYe")]] = _0x328d91;
});
var __importStar = this && this.__importStar || function () {
  const _0x2df000 = _0x1ede40;
  const _0x1c3c71 = {
    lTDeF: function (_0x433649, _0x107638) {
      return _0x433649 !== _0x107638;
    },
    LynhB: function (_0x115f72, _0x2be46b) {
      return _0x115f72 === _0x2be46b;
    },
    qBjFZ: _0x2df000(392, "1I3q"),
    EpACO: _0x2df000(379, ")0X3"),
    QIZWZ: function (_0x577f98, _0x42790c, _0x5d0b9b) {
      return _0x577f98(_0x42790c, _0x5d0b9b);
    },
    cedxp: function (_0x1669d8, _0x4b8dec) {
      return _0x1669d8 < _0x4b8dec;
    },
    KJmyh: function (_0x33bfc2, _0x157ade) {
      return _0x33bfc2 !== _0x157ade;
    },
    Otlxd: function (_0x5c2307, _0x59b029, _0x5e4312, _0x223386) {
      return _0x5c2307(_0x59b029, _0x5e4312, _0x223386);
    }
  };
  function _0x40485b(_0x332d56) {
    _0x40485b = Object.getOwnPropertyNames || function (_0x293b06) {
      const _0xde3d97 = _0x3fbb;
      var _0x2ba725 = [];
      for (var _0x200cc6 in _0x293b06) {
        if (Object.prototype[_0xde3d97(365, "gtUF")][_0xde3d97(311, "P#LQ")](_0x293b06, _0x200cc6)) {
          _0x2ba725[_0x2ba725[_0xde3d97(360, "g547")]] = _0x200cc6;
        }
      }
      return _0x2ba725;
    };
    return _0x40485b(_0x332d56);
  }
  return function (_0x2d0d88) {
    const _0x4fbc9f = _0x2df000;
    if (_0x1c3c71[_0x4fbc9f(323, "csY!")](_0x1c3c71[_0x4fbc9f(361, "CMPY")], _0x4fbc9f(341, "@Xc6"))) {
      const _0xe4ab1a = _0x1c3c71[_0x4fbc9f(420, ")0X3")][_0x4fbc9f(332, ")0X3")]("|");
      let _0x4f03d1 = 0;
      while (true) {
        switch (_0xe4ab1a[_0x4f03d1++]) {
          case "0":
            return _0x5114f9;
          case "1":
            _0x1c3c71[_0x4fbc9f(354, "nS#0")](__setModuleDefault, _0x5114f9, _0x2d0d88);
            continue;
          case "2":
            if (_0x2d0d88 != null) {
              for (var _0x2719f1 = _0x40485b(_0x2d0d88), _0x391d88 = 0; _0x1c3c71.cedxp(_0x391d88, _0x2719f1.length); _0x391d88++) {
                if (_0x1c3c71[_0x4fbc9f(446, "wvYe")](_0x2719f1[_0x391d88], "default")) {
                  _0x1c3c71[_0x4fbc9f(402, "cY2P")](__createBinding, _0x5114f9, _0x2d0d88, _0x2719f1[_0x391d88]);
                }
              }
            }
            continue;
          case "3":
            var _0x5114f9 = {};
            continue;
          case "4":
            if (_0x2d0d88 && _0x2d0d88.__esModule) {
              return _0x2d0d88;
            }
            continue;
        }
        break;
      }
    } else if (_0x1c3c71.lTDeF(_0x3b93cb, _0x285669)) {
      _0x1b3ce4 = _0x4f8670;
      _0x2bfedd[_0x4fbc9f(398, "xDiN")](_0x1988cb => _0x1988cb(_0x4056de));
    }
  };
}();
Object.defineProperty(exports, _0x1ede40(324, "*1hl"), {
  value: true
});
exports[_0x1ede40(438, "mBo%")] = getApiUrl;
exports[_0x1ede40(326, "pIfk")] = getOnlineStatus;
exports.onOnlineStatusChange = onOnlineStatusChange;
exports.verifyKey = verifyKey;
exports[_0x1ede40(325, "j#7G")] = switchAccount;
exports.getProxyConfig = getProxyConfig;
exports[_0x1ede40(340, "fjkd")] = updateProxyConfig;
exports[_0x1ede40(318, "3nFX")] = getSeamlessStatus;
exports[_0x1ede40(403, "HShS")] = getUserSwitchStatus;
exports[_0x1ede40(383, "fjkd")] = getSeamlessConfig;
exports[_0x1ede40(450, "0hHe")] = updateSeamlessConfig;
exports[_0x1ede40(439, "csY!")] = injectSeamless;
exports.restoreSeamless = restoreSeamless;
exports[_0x1ede40(316, "fjkd")] = getSeamlessAccounts;
exports[_0x1ede40(371, "j#7G")] = syncSeamlessAccounts;
exports[_0x1ede40(373, "pIfk")] = getSeamlessToken;
exports.switchSeamlessToken = switchSeamlessToken;
exports[_0x1ede40(338, ")0X3")] = getLatestVersion;
const vscode = __importStar(require(_0x1ede40(337, "pIfk")));
const DEFAULT_API_URL = _0x1ede40(394, "yC20");
const REQUEST_TIMEOUT = 15000;
let isOnline = true;
let onlineStatusCallbacks = [];
function getApiUrl() {
  const _0x517f75 = _0x1ede40;
  const _0x1ef38a = {
    sKqFt: "cursorpro"
  };
  const _0x4896a2 = vscode[_0x517f75(375, "]8Ci")].getConfiguration(_0x1ef38a[_0x517f75(404, "H%&^")]);
  return _0x4896a2.get(_0x517f75(347, "j#7G")) || DEFAULT_API_URL;
}
function getOnlineStatus() {
  return isOnline;
}
function onOnlineStatusChange(_0x5437a2) {
  const _0x4c36cf = _0x1ede40;
  onlineStatusCallbacks[_0x4c36cf(377, ")0X3")](_0x5437a2);
  return () => {
    const _0x1977a2 = _0x4c36cf;
    onlineStatusCallbacks = onlineStatusCallbacks[_0x1977a2(331, "dpeu")](_0x5f2c05 => _0x5f2c05 !== _0x5437a2);
  };
}
function setOnlineStatus(_0x85a407) {
  const _0x5afdbb = _0x1ede40;
  const _0x198bf3 = {
    LiLdl: function (_0x41d862, _0x4b32ad) {
      return _0x41d862 !== _0x4b32ad;
    }
  };
  if (_0x198bf3[_0x5afdbb(441, "zF^s")](isOnline, _0x85a407)) {
    isOnline = _0x85a407;
    onlineStatusCallbacks[_0x5afdbb(327, "j#7G")](_0x3d7640 => _0x3d7640(_0x85a407));
  }
}
async function fetchWithTimeout(_0x17ebeb, _0x493671, _0x52d2e1) {
  const _0x507ce6 = _0x1ede40;
  const _0xe51b9b = {
    MXvym: function (_0x537a9a, _0x5e5823) {
      return _0x537a9a(_0x5e5823);
    }
  };
  const _0x1b91f1 = new AbortController();
  const _0x2dacf7 = setTimeout(() => _0x1b91f1[_0x507ce6(422, "H%&^")](), _0x52d2e1);
  try {
    const _0x21e977 = await fetch(_0x17ebeb, {
      ..._0x493671,
      signal: _0x1b91f1.signal
    });
    _0xe51b9b[_0x507ce6(355, "pIfk")](clearTimeout, _0x2dacf7);
    return _0x21e977;
  } catch (_0x5d29f1) {
    _0xe51b9b.MXvym(clearTimeout, _0x2dacf7);
    throw _0x5d29f1;
  }
}
async function request(_0x293593, _0x47ac75 = "GET", _0x6f6be7) {
  const _0x1b24d0 = _0x1ede40;
  const _0xad9ae1 = {
    BNHsr: function (_0x10bf01, _0x16f1c2) {
      return _0x10bf01(_0x16f1c2);
    },
    vWrbX: function (_0x1c8834, _0xdd25eb) {
      return _0x1c8834 === _0xdd25eb;
    },
    QeGOL: function (_0x565697, _0x1c8232) {
      return _0x565697 in _0x1c8232;
    },
    JTIwx: function (_0x2ab795) {
      return _0x2ab795();
    },
    HSNSw: _0x1b24d0(405, "rI*M"),
    aJNrt: "TbLeL",
    hqoir: function (_0x1fa4e8, _0x223d94, _0x3412d5, _0x3d3de1) {
      return _0x1fa4e8(_0x223d94, _0x3412d5, _0x3d3de1);
    },
    UlSjX: function (_0x2577b0, _0x1c619f) {
      return _0x2577b0(_0x1c619f);
    },
    dVHKp: _0x1b24d0(406, "pIfk"),
    ttOtR: _0x1b24d0(356, "rI*M"),
    MNJYC: function (_0x57fe62, _0x4f5ad6) {
      return _0x57fe62 === _0x4f5ad6;
    },
    vaLQW: _0x1b24d0(367, "P#LQ"),
    NtsiM: "fetch",
    qUkdJ: "network",
    UhPHK: _0x1b24d0(357, "rI*M"),
    EJlaN: _0x1b24d0(393, "kp3("),
    ztjks: _0x1b24d0(308, "N$(9"),
    RnnaP: function (_0x1d9a14, _0x1565b6) {
      return _0x1d9a14(_0x1565b6);
    }
  };
  const _0x4879af = "" + _0xad9ae1[_0x1b24d0(362, "0hHe")](getApiUrl) + _0x293593;
  const _0x4dbc6b = {
    method: _0x47ac75,
    headers: {
      "Content-Type": _0xad9ae1[_0x1b24d0(389, "yC20")]
    }
  };
  if (_0x6f6be7) {
    _0x4dbc6b[_0x1b24d0(307, "3nFX")] = JSON[_0x1b24d0(412, "]$%b")](_0x6f6be7);
  }
  try {
    if (_0xad9ae1.vWrbX(_0x1b24d0(444, "kp3("), _0xad9ae1.aJNrt)) {
      const _0x2625e8 = await _0xad9ae1[_0x1b24d0(429, "FaV!")](fetchWithTimeout, _0x4879af, _0x4dbc6b, REQUEST_TIMEOUT);
      const _0x43f5ea = await _0x2625e8[_0x1b24d0(370, ")0X3")]();
      _0xad9ae1[_0x1b24d0(447, "Kfdi")](setOnlineStatus, true);
      if (!_0x2625e8.ok && _0x43f5ea.error) {
        if (_0xad9ae1[_0x1b24d0(421, "g547")] !== _0xad9ae1[_0x1b24d0(414, "CAFj")]) {
          _0xad9ae1[_0x1b24d0(376, "gtUF")](_0x51896e, _0x3d20bc);
          throw _0x3902c6;
        } else {
          _0x43f5ea.success = false;
          _0x43f5ea.message = _0x43f5ea.error;
        }
      }
      return _0x43f5ea;
    } else {
      if (_0xad9ae1.vWrbX(_0x50a88d, _0x3c7316)) {
        _0xf926c6 = _0x44d71d;
      }
      var _0x229dad = _0x5c9dd8[_0x1b24d0(343, "0hHe")](_0x2683bc, _0x123a83);
      if (!_0x229dad || (_0xad9ae1[_0x1b24d0(364, "CAFj")](_0x1b24d0(374, "T3[u"), _0x229dad) ? !_0x28b288[_0x1b24d0(432, "Kfdi")] : _0x229dad[_0x1b24d0(395, "rI*M")] || _0x229dad[_0x1b24d0(320, "lC$h")])) {
        _0x229dad = {
          enumerable: true,
          get: function () {
            return _0x115262[_0x437497];
          }
        };
      }
      _0x2596a6[_0x1b24d0(445, "cY2P")](_0x4b73ec, _0x1bfdba, _0x229dad);
    }
  } catch (_0x8301bb) {
    const _0x2da852 = _0x8301bb.name === _0xad9ae1[_0x1b24d0(416, "HShS")] || _0xad9ae1[_0x1b24d0(333, "H%&^")](_0x8301bb.name, _0xad9ae1[_0x1b24d0(436, "]$%b")]) || _0x8301bb.message?.[_0x1b24d0(411, "zF^s")](_0xad9ae1[_0x1b24d0(351, "Tn!E")]) || _0x8301bb[_0x1b24d0(419, "zF^s")]?.[_0x1b24d0(382, "E$^%")](_0xad9ae1[_0x1b24d0(322, "zF^s")]) || _0x8301bb[_0x1b24d0(303, "CMPY")]?.[_0x1b24d0(317, "gtUF")](_0xad9ae1.UhPHK) || _0x8301bb.message?.includes(_0xad9ae1[_0x1b24d0(454, "gtUF")]) || _0x8301bb.message?.includes(_0xad9ae1[_0x1b24d0(309, "2T[v")]);
    if (_0x2da852) {
      _0xad9ae1[_0x1b24d0(330, "E$^%")](setOnlineStatus, false);
      return {
        success: false,
        error: _0x1b24d0(385, "^UhV"),
        isOffline: true
      };
    }
    throw _0x8301bb;
  }
}
async function verifyKey(_0x5a4ca) {
  const _0x36d9c0 = _0x1ede40;
  const _0x5a0926 = {
    ZDjOQ: function (_0x17f546, _0x305330, _0xc0721f, _0x125b9e) {
      return _0x17f546(_0x305330, _0xc0721f, _0x125b9e);
    },
    WqzrL: _0x36d9c0(407, "Kfdi"),
    obRAG: _0x36d9c0(390, "dpeu")
  };
  return _0x5a0926[_0x36d9c0(336, "g547")](request, _0x5a0926[_0x36d9c0(415, "!D4Z")], _0x5a0926.obRAG, {
    key: _0x5a4ca
  });
}
function _0x81f8() {
  const _0xb6f8e4 = function () {
    return [vip, "XenNcturgdsoIeKrHRBCjEhRpemLPbyB==", "W7mXWPBdNJZdL1O", "yXhcLSkQWPa", "EubBWPfh", "WRNcKNekna", "sd/cJCkmWOpdIW", "W7qLW7bCkW", "bmkbESkVWPK", "WRBcVmkNWOldNfpcM0FdTsi", "W6OCW4hcNCoNCua", "acLXq0C", "WROrW7NcS1Gw", "W6aWW6H5pHiGW6v/WQ5Tb8k2WQmwga", "nJrJW6ddUmogvCkeaHHyWOu", "W6ehWRGiW48yfINcRahcOmkZnI8NmuO", "WRZdOmoxFCky", "Cmk8w8okW4DEcb7cQSk3WRpdVCk4WQC2WR0kC8oXCmkAW57dV8op", "uNDGWPHyWRLXnmk1qCkNWQOne8odW7jZW5CcW5SZWOWOW4a", "W78KAJNdLG", "eCkJFqBcTCk0W53dGtvUlYWRWQ3dJCkBW6pdJSo3eSozWP7cSItdLd1nW5VdTdxdMejrW6C", "dCoWWRbuW4KE", "W7qUWO3dJI/dMa", "WOORW5pcPLC", "WOuWW5NcNLa", "c8owW6m/", "WQddQrRcHSkW"].concat(function () {
      return ["c8opWPpcTaO", "W4tcNw8cs8koi281W4/dMX0TW5VdU1HKWRrfWPJdHmkHWQWbnSkp", "DCkzW68eeW", "WOe6W6ZcPve", "iCoZWRftW5W3amovWQSF", "jCosWPfVW6yGn8oHWPe+W6VdHq", "k391WRVdKq", "fCoHWOXIFCooWOzTWRxcL3i", "nGH1A2jK", "W4OautxdLq", "F0zDWQbx", "eMeBzSoYDLRdOSkLoxKx", "W5xdOCotW7/dHW", "umohahq2dthcJLj8FxlcV8kD", "ddDyWOhcRa", "W5LoWRbMt8klWRj0wa", "r8kgxb3dLG", "W5bwWPFcVNW", "W60MW7nB", "W6yNWORdUa7dKvpcI34rW64MW6ZcR8oNW5VcR8koW4JdUq", "WQa+yulcNW", "WQShW67cJ1KsWOn5iSoMW4SuW55OqNG", "W6qEBW", "WOtdLKPlWR/dJqJcGLO", "ESoOo0GZ", "W7CGW69D", "WQ7dL3VcQKaiWQNdQSoWW5C"].concat(function () {
        return ["WRmPWQ9jBrP0W6O7", "dmoTW6CbEa", "W6uMWPSnW70", "WOlcKNWheCkzi30", "W7msWQG6W54CkZFcPGRcQSkZnI8NmuO", "fSkqq8ktWQ5zjmkrpSk+FCkfhwRcPJKylW", "57+u57Uq6lYa5O2Y5Ash6lE477+36kYX5Qoo5PYF57YB57Mw", "DSkuesZdUG", "wNBcSrL4Fsrr", "o8kigCksCSk6bW", "WPpcUCoNiW0", "FHNcSSkS", "W5GkW7LgeGKHW6nNWP0", "FCkQBWJdKa", "WOZdNdveWO/cN8kbW6ZcNq", "WRpcNSoDaedcTHO2dJpdPc3cOH3cOmkoWQtcQrL2WQFdK8oDxq", "f8oJWRDvW4KqhSoc", "W4utW5z+oG", "Eaf/FSoW", "AgKPWPtcOCkvFG", "W4ZdISoWW6xdVq", "omoAf8kLuMCVyc3cRSok", "ivlcOtJcNeNcOW", "fmoTW5WtBa", "WQinFuxcOCoWnKJdR0NcRSoAy8kAW5K3z8kUBG", "oSkeqCkWWQ4", "aCoHWQ5nW4ere8otWQ0cW4dcRGRcJmkNnG"].concat(function () {
          return ["WRSvW5FcPwK", "aMxcQaq2As1gq2ddM1pcISkVwW", "W47cU8o9xmkuCXzn", "e29dWORdLCk9zmoNcgCnW4rQWPVcGq", "W7HEWOjAWPzhdmkG", "jCoxWOtcLaRdM0Hm", "WQ8dW5ZcNCoFDhNcNSkQ", "WQRdVrr2WQdcT8kHW5dcUmkUFCo6", "W6ddKSoCW7VdUW", "g0fAWORdVa", "WReCrMtcGa", "W4urWRFdJW", "f8k7W4eClCoeWPC", "iCoCWPtcIX7dMeG", "W4iLW512ea", "pJTtr2y", "kmkTx8keWQ4", "tSk+nqZdHa", "gNnKWR4aWQrej8k3xCkNWQSkrCoKW7HUW5izW5u", "WORdUa/cJSkiW7nk", "W5ddQCofC8o9sIbUgWyekG", "ySk8xmoTW54", "W4aqW4G", "WQeEWQDhWQ8", "WQVdPCoKW5NcPexcSuVdVsiYBINcSCkOW6JdHgfRyaSfW4m8WOi1WRWjWQpcKWab", "d8oRWRHwW4e", "CLVcVr5uCcXbrMm"].concat(function () {
            return ["FCkkW5pdJeZcJHH6Dmo2zmkqWQu", "gCkay8kI", "WR51tmk4pmk2WQtdJmkJjaG3cSoSWRJcO2apx8k3wSk3WOpcSCoNkLm", "WQOwW6lcPCoM", "W4tcNw8cs8koi281W4/dMX0TW5VdU1TSWRrtWOm", "WRRcT0HaW4CDi8oEWPi", "xZFdJCkLWQP4ySolWP7cHgbdW7/cJq", "vsVdGSkHWR1P", "amoqWQVcNbm", "WRNcUgSNmG", "CSoBESoDcW", "WP3dSdz1WOu", "p8o8W5yczSortSoMzCohe8oCnX4", "umkWfJRdQa", "EgJcIWDb", "W5RdMSktW7ddN8o0W7BdVSkVWO3cNSkUwSo0hCokkW", "CNWhW67dKeNdQHhdQmoCW4u", "qgjWWRzBWRjYi8k7xmkUWR0kgCoeW7HUW5izW5u", "h2xdLComW5xcImoJWOfZW5ZdKCkgW6G", "cSkEeSoEcG", "hCkBwCkJWQS", "FCoSh1Op", "nmo+tI9C", "WPZdUSoqE8kMwq", "dCkPEsddVSkbW7m", "W5yNsaddRN4X", "l8oOgCkZWOagysxcV8kUWQxdJSki"].concat(function () {
              return ["ASkFgSk+AmkomYtdSI0wWO3dSX8", "wCkKFCoa", "j1JcOYa", "W5NcUWhdLviPWQNdKSob", "WQddISkDW5FcJW", "WRTji8obW7tdU2RcV2bcwCoE", "W65wWQXV", "WO3cNw9v", "DN4iW6hdLdFcJaFdHmoXW7tdGCkk", "WQxdRSk3", "c8kXW4u6zSoXWRLbWPBcGNJdQmkcd8kVWRZcNhz1BW", "W7msWQG6W54CkZFcPGRcQSkXoIiUlupdLai", "uCoiefC0bWtcJW", "iLlcSWRcJetcUSooECkonX/cLCkyzCkveq", "WQ/dH8oMtG", "Cb1PtSo6WPi8WQGhW5bpDa", "kCo9u8orvCoCW6WRWRhcVIhdMspdLCoOWPJcU0VdGa", "pCoSWOZcNdu", "EIddICkOWOS", "qvCHetpdOSo3ufrX", "W6yPWO3dRZ7dNhpcHxeBW6G7W5K", "WQShW67cK1iFWOD7iSogW4WHW4v2va"];
            }());
          }());
        }());
      }());
    }());
  }();
  _0x81f8 = function () {
    return _0xb6f8e4;
  };
  return _0x81f8();
}
;
async function switchAccount(_0x577fd6) {
  const _0x15748f = _0x1ede40;
  const _0x38858e = {
    UZIiJ: function (_0x4be17e, _0x461bfe, _0x37a5d1, _0x2b8616) {
      return _0x4be17e(_0x461bfe, _0x37a5d1, _0x2b8616);
    },
    BFJKe: _0x15748f(321, "z&uV"),
    mnjoz: _0x15748f(350, "cY2P")
  };
  return _0x38858e[_0x15748f(369, "^UhV")](request, _0x38858e[_0x15748f(396, ")0X3")], _0x38858e[_0x15748f(386, "wvYe")], {
    key: _0x577fd6
  });
}
async function getProxyConfig() {
  const _0x1acc63 = _0x1ede40;
  const _0x53f294 = {
    tGYeq: function (_0x295e04, _0x5e6e4d, _0x181a1b) {
      return _0x295e04(_0x5e6e4d, _0x181a1b);
    },
    gOUCa: "/api/proxy-config",
    qAfDy: _0x1acc63(428, ")0X3")
  };
  return _0x53f294[_0x1acc63(443, "z&uV")](request, _0x53f294[_0x1acc63(358, "!D4Z")], _0x53f294[_0x1acc63(455, "FKQ]")]);
}
async function updateProxyConfig(_0x5f0bbe, _0x177139) {
  const _0xda86de = _0x1ede40;
  const _0x5cbec3 = {
    yDQrL: function (_0x5e0abb, _0x388d0b, _0x2513f4, _0x495f0d) {
      return _0x5e0abb(_0x388d0b, _0x2513f4, _0x495f0d);
    }
  };
  return _0x5cbec3[_0xda86de(368, "1I3q")](request, _0xda86de(448, "h^2B"), _0xda86de(314, "h^2B"), {
    is_enabled: _0x5f0bbe,
    proxy_url: _0x177139
  });
}
async function getSeamlessStatus() {
  const _0x42cb20 = _0x1ede40;
  const _0x1db932 = {
    FIIzk: function (_0x414e05, _0x20c82d) {
      return _0x414e05(_0x20c82d);
    }
  };
  return _0x1db932[_0x42cb20(348, "pIfk")](request, _0x42cb20(437, "E$^%"));
}
async function getUserSwitchStatus(_0x11efc8) {
  const _0x3f99ea = _0x1ede40;
  const _0x494ac5 = {
    MGwRv: function (_0x58ed8f, _0x151655) {
      return _0x58ed8f(_0x151655);
    }
  };
  return _0x494ac5[_0x3f99ea(328, "dpeu")](request, _0x3f99ea(345, "1I3q") + _0x494ac5.MGwRv(encodeURIComponent, _0x11efc8));
}
async function getSeamlessConfig() {
  const _0xeb43df = _0x1ede40;
  const _0x11b858 = {
    DfQJY: function (_0x3ff223, _0x515685) {
      return _0x3ff223(_0x515685);
    },
    WtWjp: "/api/seamless/config"
  };
  return _0x11b858[_0xeb43df(344, "CMPY")](request, _0x11b858[_0xeb43df(380, "cY2P")]);
}
async function updateSeamlessConfig(_0x4e91f5) {
  const _0xac9b59 = _0x1ede40;
  const _0xae283 = {
    eVhRM: function (_0x302e6d, _0x1b29d1, _0xfc2c0f, _0x27bd4c) {
      return _0x302e6d(_0x1b29d1, _0xfc2c0f, _0x27bd4c);
    },
    ksxVc: _0xac9b59(424, "0hHe"),
    LROFh: _0xac9b59(306, "3)@J")
  };
  return _0xae283[_0xac9b59(372, "HShS")](request, _0xae283[_0xac9b59(397, "lC$h")], _0xae283[_0xac9b59(329, "0hHe")], _0x4e91f5);
}
async function injectSeamless(_0x585c33, _0x5e920e) {
  const _0x15aadd = _0x1ede40;
  const _0x3480b6 = {
    ozfwi: function (_0x496feb, _0x3db5af, _0x41caae, _0x109bfc) {
      return _0x496feb(_0x3db5af, _0x41caae, _0x109bfc);
    },
    qQGdF: _0x15aadd(315, "nS#0"),
    edilS: _0x15aadd(417, "j#7G")
  };
  return _0x3480b6[_0x15aadd(431, "rI*M")](request, _0x3480b6[_0x15aadd(381, "fjkd")], _0x3480b6.edilS, {
    api_url: _0x585c33,
    user_key: _0x5e920e
  });
}
async function restoreSeamless() {
  const _0x12dfcf = _0x1ede40;
  const _0x1df6e7 = {
    baHAv: function (_0x57c4ec, _0x1d11b1, _0x36cd49) {
      return _0x57c4ec(_0x1d11b1, _0x36cd49);
    },
    sndsx: "/api/seamless/restore",
    ueshn: _0x12dfcf(319, "@Xc6")
  };
  return _0x1df6e7.baHAv(request, _0x1df6e7.sndsx, _0x1df6e7[_0x12dfcf(427, "i9F1")]);
}
async function getSeamlessAccounts() {
  const _0x42b4f6 = _0x1ede40;
  const _0x4ac511 = {
    LxhXL: function (_0x53c82d, _0x3b3e63) {
      return _0x53c82d(_0x3b3e63);
    },
    MbXwB: "/api/seamless/accounts"
  };
  return _0x4ac511[_0x42b4f6(366, "%x%T")](request, _0x4ac511.MbXwB);
}
async function syncSeamlessAccounts(_0x8eab80) {
  const _0x1bebfa = _0x1ede40;
  return request(_0x1bebfa(435, "T8iJ"), _0x1bebfa(434, "H%&^"), {
    accounts: _0x8eab80
  });
}
function _0x3fbb(_0x91e0a, _0x2e3a7e) {
  const _0x81f807 = _0x81f8();
  _0x3fbb = function (_0x3fbbba, _0x9d3c29) {
    _0x3fbbba = _0x3fbbba - 302;
    let _0x54f284 = _0x81f807[_0x3fbbba];
    if (_0x3fbb.VKdPFb === undefined) {
      function _0x150010(_0x44bb15) {
        const _0x1757ec = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=";
        let _0x59a345 = "";
        let _0x20995f = "";
        for (let _0x4d4001 = 0, _0x16ea18, _0xc3818f, _0x14ada7 = 0; _0xc3818f = _0x44bb15.charAt(_0x14ada7++); ~_0xc3818f && (_0x16ea18 = _0x4d4001 % 4 ? _0x16ea18 * 64 + _0xc3818f : _0xc3818f, _0x4d4001++ % 4) ? _0x59a345 += String.fromCharCode(_0x16ea18 >> (_0x4d4001 * -2 & 6) & 255) : 0) {
          _0xc3818f = _0x1757ec.indexOf(_0xc3818f);
        }
        for (let _0x278428 = 0, _0x291cae = _0x59a345.length; _0x278428 < _0x291cae; _0x278428++) {
          _0x20995f += "%" + ("00" + _0x59a345.charCodeAt(_0x278428).toString(16)).slice(-2);
        }
        return decodeURIComponent(_0x20995f);
      }
      const _0x35b6f4 = function (_0x5cccfb, _0x200ec4) {
        let _0x50a88d = [];
        let _0x3c7316 = 0;
        let _0xf926c6;
        let _0x44d71d = "";
        _0x5cccfb = _0x150010(_0x5cccfb);
        let _0x5c9dd8;
        for (_0x5c9dd8 = 0; _0x5c9dd8 < 256; _0x5c9dd8++) {
          _0x50a88d[_0x5c9dd8] = _0x5c9dd8;
        }
        for (_0x5c9dd8 = 0; _0x5c9dd8 < 256; _0x5c9dd8++) {
          _0x3c7316 = (_0x3c7316 + _0x50a88d[_0x5c9dd8] + _0x200ec4.charCodeAt(_0x5c9dd8 % _0x200ec4.length)) % 256;
          _0xf926c6 = _0x50a88d[_0x5c9dd8];
          _0x50a88d[_0x5c9dd8] = _0x50a88d[_0x3c7316];
          _0x50a88d[_0x3c7316] = _0xf926c6;
        }
        _0x5c9dd8 = 0;
        _0x3c7316 = 0;
        for (let _0x2683bc = 0; _0x2683bc < _0x5cccfb.length; _0x2683bc++) {
          _0x5c9dd8 = (_0x5c9dd8 + 1) % 256;
          _0x3c7316 = (_0x3c7316 + _0x50a88d[_0x5c9dd8]) % 256;
          _0xf926c6 = _0x50a88d[_0x5c9dd8];
          _0x50a88d[_0x5c9dd8] = _0x50a88d[_0x3c7316];
          _0x50a88d[_0x3c7316] = _0xf926c6;
          _0x44d71d += String.fromCharCode(_0x5cccfb.charCodeAt(_0x2683bc) ^ _0x50a88d[(_0x50a88d[_0x5c9dd8] + _0x50a88d[_0x3c7316]) % 256]);
        }
        return _0x44d71d;
      };
      _0x3fbb.HlOQbT = _0x35b6f4;
      _0x91e0a = arguments;
      _0x3fbb.VKdPFb = true;
    }
    const _0x572ba4 = _0x81f807[0];
    const _0x1344b3 = _0x3fbbba + _0x572ba4;
    const _0x1c8a1f = _0x91e0a[_0x1344b3];
    if (!_0x1c8a1f) {
      if (_0x3fbb.RnJDPN === undefined) {
        _0x3fbb.RnJDPN = true;
      }
      _0x54f284 = _0x3fbb.HlOQbT(_0x54f284, _0x9d3c29);
      _0x91e0a[_0x1344b3] = _0x54f284;
    } else {
      _0x54f284 = _0x1c8a1f;
    }
    return _0x54f284;
  };
  return _0x3fbb(_0x91e0a, _0x2e3a7e);
}
async function getSeamlessToken(_0x3d9506) {
  const _0x5b4aa0 = _0x1ede40;
  const _0x47d5c8 = {
    tWyAu: function (_0x2630d5, _0x8f24b0) {
      return _0x2630d5(_0x8f24b0);
    }
  };
  return request(_0x5b4aa0(430, "CAFj") + _0x47d5c8[_0x5b4aa0(452, "7*qP")](encodeURIComponent, _0x3d9506));
}
async function switchSeamlessToken(_0x45b49c) {
  const _0x530ea9 = _0x1ede40;
  const _0x25fd60 = {
    TTiUq: function (_0x12885e, _0x9ff48a, _0x48600c, _0xfe1be7) {
      return _0x12885e(_0x9ff48a, _0x48600c, _0xfe1be7);
    },
    zZNHr: _0x530ea9(353, "E$^%"),
    IRCBl: _0x530ea9(346, "rI*M")
  };
  return _0x25fd60[_0x530ea9(453, "H%&^")](request, _0x25fd60.zZNHr, _0x530ea9(312, "mBo%"), {
    mode: _0x25fd60[_0x530ea9(349, "pIfk")],
    userKey: _0x45b49c
  });
}
async function getLatestVersion() {
  const _0x207d6a = _0x1ede40;
  const _0x3450ac = {
    GvtLu: _0x207d6a(426, "@Xc6")
  };
  return request(_0x3450ac[_0x207d6a(352, "zF^s")]);
}