Compare commits

...

4 Commits

Author SHA1 Message Date
1b46c09a32
ruaaa
又搞坏东西了
2024-04-04 20:34:16 +08:00
8da30a8ab4
rua 2024-04-04 20:30:55 +08:00
cb23b6a464
暂时性的把logger改成global 2024-04-04 19:49:01 +08:00
8ef0968ad0 反混淆ing 2024-04-04 18:23:12 +08:00

View File

@ -23,15 +23,15 @@ console.log("run_env", run_env);
let logger = {
// debug: 只在 from_code 时输出
debug: function (...msg) {
if (run_env.from_code) {
// 上个色
// let last_stack = new Error().stack;
// console.log("\x1b[32mlogger<", last_stack, ">:", ...msg, "\x1b[0m")
console.log("\x1b[32mlogger:", ...msg, "\x1b[0m")
}
// if (run_env.from_code) {
// 上个色
// let last_stack = new Error().stack;
// console.log("\x1b[32mlogger<", last_stack, ">:", ...msg, "\x1b[0m")
console.log("\x1b[32mlogger:", ...msg, "\x1b[0m")
// }
},
info: function (...msg) {
console.log("logger: ", msg)
console.log("logger: ", ...msg)
}
}
@ -357,7 +357,11 @@ var A = {
eR(a) {
var s = window.localStorage,
r = LangData.eQ("i")
s.setItem(r, a)
logger.debug("set item to localstorage")
if (!run_env.from_code) {
s.setItem(r, a)
}
logger.debug("set item to localstorage")
s = $.nx()
r = s.b
if (r >= 4) H.throw_expression(s.ee())
@ -3502,9 +3506,6 @@ var A = {
},
P = {
_AsyncRun__initializeScheduleImmediate() {
// if (run_env.from_code) {
// console.log("creating scheduleImmediate")
// }
logger.debug("creating scheduleImmediate")
var s, r, q = {}
if (self.scheduleImmediate != null) {
@ -3629,6 +3630,7 @@ var A = {
}
},
cO(a, b) {
logger.info("joining cO")
var s, r, q, p, o, n, m, l, k, j, i, h, g, f = {},
e = f.a = a
for (s = t.h; true;) {
@ -3732,16 +3734,20 @@ var A = {
}
},
uD() {
logger.info("calling uD", $.ms)
$.ms = true
try {
P.uw()
} finally {
$.eO = null
$.ms = false
if ($.cR != null) $.nw().$1(P.ow())
if ($.cR != null) {
$.nw().$1(P.ow())
}
}
},
ou(a) {
logger.debug("calling ou", $.ms)
var s = new P.i0(a),
r = $.eN
if (r == null) {
@ -9668,9 +9674,9 @@ P.kD.prototype = {
P.l8.prototype = {
e8(a, b) {
if (run_env.from_code) {
// b.$0()
b.$0()
// setTimeout
setTimeout(H.convert_dart_closure_to_js_md5(new P.kC(b), 0), 0)
// setTimeout(H.convert_dart_closure_to_js_md5(new P.kC(b), 0), 0)
} else {
if (self.setTimeout != null) {
// self.setTimeout(H.convert_dart_closure_to_js_md5(new P.l9(this, b), 0), a)
@ -12453,56 +12459,56 @@ L.iR.prototype = {
return this.dJ(0, b)
},
dJ(a, b) {
var s = 0,
r = P._makeAsyncAwaitCompleter(t.z),
q = this,
var async_goto = 0,
async_completer = P._makeAsyncAwaitCompleter(t.z),
this_ = this,
p, o, n, m, l
var $async$ae = P._wrapJsFunctionForAsync(function (c, d) {
if (c === 1) return P.async_rethrow(d, r)
while (true) switch (s) {
if (c === 1) return P.async_rethrow(d, async_completer)
while (true) switch (async_goto) {
case 0:
q.Q = b
p = q.ch
this_.Q = b
p = this_.ch
p[0] = Date.now() + 1
o = q.e, n = o.length, m = 0
o = this_.e, n = o.length, m = 0
case 2:
if (!(m < o.length)) {
s = 4
async_goto = 4
break
}
s = 5
async_goto = 5
return P._asyncAwait(o[m].az(), $async$ae)
case 5:
case 3:
o.length === n || (0, H.F)(o), ++m
s = 2
async_goto = 2
break
case 4:
n = q.f, l = n.length, m = 0
n = this_.f, l = n.length, m = 0
case 6:
if (!(m < n.length)) {
s = 8
async_goto = 8
break
}
s = 9
async_goto = 9
return P._asyncAwait(n[m].az(), $async$ae)
case 9:
case 7:
n.length === l || (0, H.F)(n), ++m
s = 6
async_goto = 6
break
case 8:
o = new H.y(o, new L.iS(), H._arrayInstanceType(o).i("y<1,@>")).aV(0, "\r") + "\n" + new H.y(n, new L.iT(), H._arrayInstanceType(n).i("y<1,@>")).aV(0, "\r") + "\n"
o = C.e.gaB().ab(o)
n = H.instanceType(o).i("a9<z.E>")
l = n.i("y<M.E,l*>")
l = P.List_List_of(new H.y(new H.a9(o, n), new L.iU(q), l), true, l.i("M.E"))
l = P.List_List_of(new H.y(new H.a9(o, n), new L.iU(this_), l), true, l.i("M.E"))
C.Array.a5(l, H.fJ(p.buffer, 0, null))
A.eR(X.dc(l))
return P.async_return(null, r)
return P.async_return(null, async_completer)
}
})
return P._asyncStartSync($async$ae, r)
return P._asyncStartSync($async$ae, async_completer)
}
}
L.iS.prototype = {
@ -13053,7 +13059,9 @@ HtmlRenderer.fq.prototype = {
},
fe(a0) {
// run update
logger.debug("fq.fe start")
let stack = new Error().stack
logger.debug("fq.fe start", stack)
var s, r, q, p, o, n, m, l, k, j, i, h, g, f, e, d, c, b, this_ = this
if (a0.length < 6) return
s = X.f4(a0, 0)
@ -13159,6 +13167,7 @@ HtmlRenderer.fq.prototype = {
q.display = "none"
}
}
logger.debug("end fq.fe")
},
b4() {
// 实力评估 主循环?
@ -15939,6 +15948,7 @@ T.hp.prototype = {
}
T.df.prototype = {
gan() {
logger.info("getting df.gan")
return H.b([0, $.lL(), $.d1(), $.mX(), $.iI(), $.iH(), $.eT(), $.n0()], t.i)
},
F() {
@ -16519,7 +16529,9 @@ T.fo.prototype = {
},
O() {
// 运行时?
logger.debug("运行 主循环")
// 对战 主循环?
// let stack = new Error().stack
// logger.info("运行 主循环", stack)
var async_goto = 0,
async_completer = P._makeAsyncAwaitCompleter(t.d),
result_, p = [],
@ -16588,7 +16600,7 @@ T.fo.prototype = {
},
ae(a, b) {
if (run_env.from_code) {
return null
// return null
}
return this.dM(0, b)
},
@ -16627,7 +16639,8 @@ T.fo.prototype = {
// }
// })
// return P._asyncStartSync($async$ae, async_completer)
let this_ = this, p, o, n, m, l, k, j
let this_ = this,
p, o, n, m, l, k, j
this_.db = b
p = Date.now()
o = $.bx()
@ -17007,12 +17020,12 @@ T.Plr.prototype = {
// buildAsync
var s = 0,
r = P._makeAsyncAwaitCompleter(t.z),
q = this
this_ = this
var $async$cg = P._wrapJsFunctionForAsync(function (a, b) {
if (a === 1) return P.async_rethrow(b, r)
while (true) switch (s) {
case 0:
q.az()
this_.az()
return P.async_return(null, r)
}
})
@ -17020,17 +17033,17 @@ T.Plr.prototype = {
},
az() {
//initRawAttr
var s, r = this
r.bf()
s = r.r1
var s, this_ = this
this_.bf()
s = this_.r1
if (s != null) s.bn()
r.aU()
r.bP()
r.dm(C.Array.cL(r.t, $.au()), C.Array.cL(r.E, $.au()))
s = r.r1
this_.aU()
this_.bP()
this_.dm(C.Array.cL(this_.t, $.au()), C.Array.cL(this_.E, $.au()))
s = this_.r1
if (s != null) s.cs()
r.bs()
r.cn()
this_.bs()
this_.cn()
},
aU() {
//getMiddle
@ -17202,22 +17215,25 @@ T.Plr.prototype = {
},
F() {
// updateStates
var s, r = this
r.ch = r.b0(r.q[0], $.cj())
r.cx = r.b0(r.q[$.i()], $.cj())
r.cy = r.b0(r.q[$.t()], $.cj()) + $.eU()
r.db = r.b0(r.q[$.B()], $.cj())
r.dx = r.b0(r.q[$.C()], $.cj())
r.dy = r.b0(r.q[$.X()], $.cj())
r.fr = r.b0(r.q[$.a4()], $.n1())
r.fy = r.q[$.ap()]
r.ci()
r.z = r.y
r.id = $.T()
r.A = false
for (s = r.rx, s = new Sgls.a_(s, s.b, s.$ti.i("a_<1*>")); s.u();) s.b.ar(r)
var s, this_ = this
this_.ch = this_.b0(this_.q[0], $.cj())
this_.cx = this_.b0(this_.q[$.i()], $.cj())
this_.cy = this_.b0(this_.q[$.t()], $.cj()) + 160
console.log("this_.cy", this_.cy)
console.log("this_.q", this_.q)
this_.db = this_.b0(this_.q[$.B()], $.cj())
this_.dx = this_.b0(this_.q[$.C()], $.cj())
this_.dy = this_.b0(this_.q[$.X()], $.cj())
this_.fr = this_.b0(this_.q[$.a4()], $.n1())
this_.fy = this_.q[$.ap()]
this_.ci()
this_.z = this_.y
this_.id = $.T()
this_.A = false
for (s = this_.rx, s = new Sgls.a_(s, s.b, s.$ti.i("a_<1*>")); s.u();) s.b.ar(this_)
},
ci() {
// calcAttrSum
var s, r, q, p, o, n, m, l, k, j, i = this,
h = i.M = 0
for (s = h; r = $.ap(), h < r; ++h) {
@ -19995,6 +20011,7 @@ var t = (function rtii() {
})
lazy_old($, "x7", "mU", function () {
return X.k("+O2YYGy,+H", 45)
// return 36
})
lazy_old($, "vJ", "oZ", function () {
return X.D("xF s,sTeiD", 45)
@ -20110,6 +20127,7 @@ var t = (function rtii() {
})
lazy_old($, "wW", "d1", function () {
return X.k("p&kJ 5Q!{M", 75)
// return 31
})
lazy_old($, "xj", "mX", function () {
return X.k("^M0K:>w!&P", 91)
@ -20252,6 +20270,7 @@ var t = (function rtii() {
})
lazy_old($, "wv", "pl", function () {
return X.D("WT)~pf:~hB", 91)
// return 2000
})
lazy_old($, "xm", "mY", function () {
// return X.k("T)Ok_x`s]G", 40)
@ -21116,6 +21135,7 @@ function main() {
logger.debug("so just here?", async_goto, error_code)
case 1:
logger.debug("返回中")
$.ms = false
return P.async_return(q, async_completer)
case 2:
return P.async_rethrow(async_result_1, async_completer)
@ -21126,4 +21146,4 @@ function main() {
main();
// logger.debug("running main:", main()) // 执行main函数
// logger.debug(X.k("?`C3ou}R1L", 67))
// logger.debug(X.k("?`C3ou}R1L", 67))