1use nanvm_lib::vm::unstable::{
4 bigint_any, bigint_any_words, f64_any, spread_array, spread_item, strict_eq, string_any,
5 string_key, value_item,
6};
7use nanvm_lib::vm::{Any, Array, IStaticFunction, Nullish, Object, ToAny, ToArray, ToObject};
8
9#[rustfmt::skip]
10#[allow(clippy::if_same_then_else)]
11pub fn module<A: IStaticFunction>(runtime: Any<A>) -> Result<Any<A>, Any<A>> {
12 let _b23: Any<A> = A::static_function(|_self, _args| { if Any::<A>::to_boolean((strict_eq((Any::dot(_args.argument(1), f64_any(0x0000000000000000)).end())?, string_any("ok")))?) { Ok([string_any("ok"), (Any::call(_args.argument(0), [(Any::dot(_args.argument(1), f64_any(0x3ff0000000000000)).end())?].to_array().to_any()))?].to_array().to_any()) } else { if Any::<A>::to_boolean((strict_eq((Any::dot((Any::dot(_args.argument(1), f64_any(0x3ff0000000000000)).end())?, f64_any(0x0000000000000000)).end())?, string_any("ioError")))?) { Ok([string_any("error"), {
13 let _b12: Any<A> = (Any::dot((Any::dot((Any::dot(_args.argument(1), f64_any(0x3ff0000000000000)).end())?, f64_any(0x3ff0000000000000)).end())?, string_any("code")).end())?;
14 if Any::<A>::to_boolean(if Any::<A>::to_boolean((strict_eq(_b12.clone(), Nullish::Null.to_any()))?) { true.to_any() } else { (strict_eq(_b12.clone(), Nullish::Undefined.to_any()))? }) { Nullish::Null.to_any() } else { _b12.clone() }
15 }].to_array().to_any()) } else { Ok([string_any("error"), (Any::dot(_args.argument(1), f64_any(0x3ff0000000000000)).end())?].to_array().to_any()) } } }, 2, [runtime.clone()].to_array(), Some("($0,$1)=>$1[0]===\"ok\"?[\"ok\",$0($1[1])]:$1[1][0]===\"ioError\"?[\"error\",(()=>{const $2=$1[1][1].code;return ($2===null?true:$2===undefined)?null:$2;})()]:[\"error\",$1[1]]")).to_any();
16 let _b51: Any<A> = A::static_function(|_self, _args| { Ok(A::static_function(|_self, _args| { Ok(A::static_function(|_self, _args| { Ok([(string_key("command"), A::frame(_self)[0].clone()), (string_key("payload"), A::frame(_self)[1].clone()), (string_key("continuation"), A::static_function(|_self, _args| { Any::call(A::frame(_self)[0].clone(), [(spread_array([spread_item(A::frame(_self)[1].clone())?, value_item((Any::call(A::frame(_self)[2].clone(), [A::frame(_self)[3].clone(), _args.argument(0)].to_array().to_any()))?)]))?].to_array().to_any()) }, 1, [A::frame(_self)[2].clone(), _args.argument(0), A::frame(_self)[3].clone(), A::frame(_self)[4].clone(), A::frame(_self)[5].clone()].to_array(), Some("($4)=>$0([...$1,$2($3,$4)])")).to_any())].to_object().to_any()) }, 1, [A::frame(_self)[0].clone(), A::frame(_self)[1].clone(), _args.argument(0), A::frame(_self)[2].clone(), A::frame(_self)[3].clone(), A::frame(_self)[4].clone()].to_array(), Some("($5)=>{return {\"command\":$0,\"payload\":$1,\"continuation\":($6)=>$2([...$5,$3($4,$6)])};}")).to_any()) }, 1, [_args.argument(0), _args.argument(1), A::frame(_self)[0].clone(), _args.argument(2), A::frame(_self)[1].clone()].to_array(), Some("($4)=>($5)=>{return {\"command\":$0,\"payload\":$1,\"continuation\":($6)=>$4([...$5,$2($3,$6)])};}")).to_any()) }, 3, [_b23.clone(), runtime.clone()].to_array(), Some("($1,$2,$3)=>($4)=>($5)=>{return {\"command\":$1,\"payload\":$2,\"continuation\":($6)=>$4([...$5,$0($3,$6)])};}")).to_any();
17 let _b52: Any<A> = A::static_function(|_self, _args| { Ok(Nullish::Null.to_any()) }, 1, [runtime.clone()].to_array(), Some("($0)=>null")).to_any();
18 let _b61: Any<A> = A::static_function(|_self, _args| { Ok(A::static_function(|_self, _args| { Ok([string_any("ok"), A::frame(_self)[0].clone()].to_array().to_any()) }, 0, [_args.argument(0), A::frame(_self)[0].clone()].to_array(), Some("()=>[\"ok\",$0]")).to_any()) }, 1, [runtime.clone()].to_array(), Some("($0)=>()=>[\"ok\",$0]")).to_any();
19 let _b260: Any<A> = A::static_function(|_self, _args| {
20 let _b238: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("fstat"), [_args.argument(0)].to_array().to_any(), A::static_function(|_self, _args| {
21 let _b234: Any<A> = (strict_eq((Any::dot(_args.argument(0), string_any("size")).end())?, f64_any(0x4000000000000000)))?;
22 if Any::<A>::to_boolean(_b234.clone()) { Any::dot(_args.argument(0), string_any("isFile")).end() } else { Ok(_b234.clone()) }
23 }, 1, [A::frame(_self)[3].clone()].to_array(), Some("($0)=>{const $1=$0.size===2;return $1?$0.isFile:$1;}")).to_any()].to_array().to_any()))?;
24 Any::call(_b238.clone(), [{
25 let _b243: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("pread"), [_args.argument(0), f64_any(0x0000000000000000), f64_any(0x4000000000000000)].to_array().to_any(), A::static_function(|_self, _args| { strict_eq(_args.argument(0), bigint_any(-59497)) }, 1, [A::frame(_self)[3].clone()].to_array(), Some("($0)=>$0===-59497n")).to_any()].to_array().to_any()))?;
26 (Any::call(_b243.clone(), [{
27 let _b246: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("close"), [_args.argument(0)].to_array().to_any(), A::frame(_self)[1].clone()].to_array().to_any()))?;
28 (Any::call(_b246.clone(), [{
29 let _b248: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("close"), [_args.argument(0)].to_array().to_any(), A::frame(_self)[1].clone()].to_array().to_any()))?;
30 (Any::call(_b248.clone(), [{
31 let _b250: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("fstat"), [_args.argument(0)].to_array().to_any(), A::frame(_self)[1].clone()].to_array().to_any()))?;
32 (Any::call(_b250.clone(), [{
33 let _b252: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("pread"), [_args.argument(0), f64_any(0x0000000000000000), f64_any(0x3ff0000000000000)].to_array().to_any(), A::frame(_self)[1].clone()].to_array().to_any()))?;
34 (Any::call(_b252.clone(), [A::frame(_self)[2].clone()].to_array().to_any()))?
35 }].to_array().to_any()))?
36 }].to_array().to_any()))?
37 }].to_array().to_any()))?
38 }].to_array().to_any()))?
39 }].to_array().to_any())
40 }, 1, [_b51.clone(), _b52.clone(), _b61.clone(), runtime.clone()].to_array(), Some("($3)=>{const $4=$0(\"fstat\",[$3],($5)=>{const $6=$5.size===2;return $6?$5.isFile:$6;});return $4((()=>{const $7=$0(\"pread\",[$3,0,2],($8)=>$8===-59497n);return $7((()=>{const $9=$0(\"close\",[$3],$1);return $9((()=>{const $10=$0(\"close\",[$3],$1);return $10((()=>{const $11=$0(\"fstat\",[$3],$1);return $11((()=>{const $12=$0(\"pread\",[$3,0,1],$1);return $12($2);})());})());})());})());})());}")).to_any();
41 let _b598: Any<A> = A::static_function(|_self, _args| { Err(string_any("boom")) }, 0, [runtime.clone()].to_array(), Some("()=>{throw \"boom\";}")).to_any();
42 Ok([(string_key("directory"), [(string_key("run"), {
43 let _b56: Any<A> = (Any::dot([(string_key("entry"), A::static_function(|_self, _args| Any::entry(_args.argument(0), _args.argument(1)), 2, Array::default(), Some("($0,$1)=>{const $2=Object.getOwnPropertyDescriptor($0,$1);return $2?.enumerable?$2.value:undefined;}")).to_any()), (string_key("hasEntry"), A::static_function(|_self, _args| Any::has_entry(_args.argument(0), _args.argument(1)).map(|v| v.to_any()), 2, Array::default(), Some("($0,$1)=>{const $2=Object.getOwnPropertyDescriptor($0,$1);return $2?.enumerable===true;}")).to_any())].to_object().to_any(), string_any("entry")).end())?;
44 A::static_function(|_self, _args| {
45 let _b68: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("mkdir"), [(_args.argument(0) + string_any("/b"))?, Nullish::Undefined.to_any()].to_array().to_any(), A::frame(_self)[1].clone()].to_array().to_any()))?;
46 let _b119: Any<A> = (Any::call(_b68.clone(), [{
47 let _b72: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("mkdir"), [(_args.argument(0) + string_any("/a"))?, Nullish::Undefined.to_any()].to_array().to_any(), A::frame(_self)[1].clone()].to_array().to_any()))?;
48 (Any::call(_b72.clone(), [{
49 let _b75: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("writeFile"), [(_args.argument(0) + string_any("/z"))?, bigint_any(-59497)].to_array().to_any(), A::frame(_self)[1].clone()].to_array().to_any()))?;
50 (Any::call(_b75.clone(), [{
51 let _b78: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("writeFile"), [(_args.argument(0) + string_any("/a/f"))?, bigint_any(-59497)].to_array().to_any(), A::frame(_self)[1].clone()].to_array().to_any()))?;
52 (Any::call(_b78.clone(), [{
53 let _b92: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("readdir"), [_args.argument(0), Object::default().to_any()].to_array().to_any(), A::static_function(|_self, _args| { Ok([(Any::call(A::frame(_self)[0].clone(), [(Any::dot(_args.argument(0), f64_any(0x0000000000000000)).end())?, string_any("name")].to_array().to_any()))?, (Any::call(A::frame(_self)[0].clone(), [(Any::dot(_args.argument(0), f64_any(0x3ff0000000000000)).end())?, string_any("name")].to_array().to_any()))?, (Any::call(A::frame(_self)[0].clone(), [(Any::dot(_args.argument(0), f64_any(0x4000000000000000)).end())?, string_any("name")].to_array().to_any()))?].to_array().to_any()) }, 1, [A::frame(_self)[2].clone(), A::frame(_self)[4].clone()].to_array(), Some("($1)=>[$0($1[0],\"name\"),$0($1[1],\"name\"),$0($1[2],\"name\")]")).to_any()].to_array().to_any()))?;
54 (Any::call(_b92.clone(), [{
55 let _b107: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("readdir"), [_args.argument(0), [(string_key("recursive"), true.to_any())].to_object().to_any()].to_array().to_any(), A::static_function(|_self, _args| { Ok([(Any::call(A::frame(_self)[0].clone(), [(Any::dot(_args.argument(0), f64_any(0x0000000000000000)).end())?, string_any("name")].to_array().to_any()))?, (Any::call(A::frame(_self)[0].clone(), [(Any::dot(_args.argument(0), f64_any(0x3ff0000000000000)).end())?, string_any("name")].to_array().to_any()))?, (Any::call(A::frame(_self)[0].clone(), [(Any::dot(_args.argument(0), f64_any(0x4000000000000000)).end())?, string_any("name")].to_array().to_any()))?, (Any::call(A::frame(_self)[0].clone(), [(Any::dot(_args.argument(0), f64_any(0x4008000000000000)).end())?, string_any("name")].to_array().to_any()))?].to_array().to_any()) }, 1, [A::frame(_self)[2].clone(), A::frame(_self)[4].clone()].to_array(), Some("($1)=>[$0($1[0],\"name\"),$0($1[1],\"name\"),$0($1[2],\"name\"),$0($1[3],\"name\")]")).to_any()].to_array().to_any()))?;
56 (Any::call(_b107.clone(), [{
57 let _b111: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("readdir"), [(_args.argument(0) + string_any("/none"))?, Object::default().to_any()].to_array().to_any(), A::frame(_self)[1].clone()].to_array().to_any()))?;
58 (Any::call(_b111.clone(), [A::frame(_self)[3].clone()].to_array().to_any()))?
59 }].to_array().to_any()))?
60 }].to_array().to_any()))?
61 }].to_array().to_any()))?
62 }].to_array().to_any()))?
63 }].to_array().to_any()))?
64 }].to_array().to_any()))?;
65 Any::call(_b119.clone(), [Array::default().to_any()].to_array().to_any())
66 }, 1, [_b51.clone(), _b52.clone(), _b56.clone(), _b61.clone(), runtime.clone()].to_array(), Some("($4)=>{const $5=$0(\"mkdir\",[$4+\"/b\",undefined],$1);const $6=$5((()=>{const $7=$0(\"mkdir\",[$4+\"/a\",undefined],$1);return $7((()=>{const $8=$0(\"writeFile\",[$4+\"/z\",-59497n],$1);return $8((()=>{const $9=$0(\"writeFile\",[$4+\"/a/f\",-59497n],$1);return $9((()=>{const $10=$0(\"readdir\",[$4,{}],($11)=>[$2($11[0],\"name\"),$2($11[1],\"name\"),$2($11[2],\"name\")]);return $10((()=>{const $12=$0(\"readdir\",[$4,{\"recursive\":true}],($13)=>[$2($13[0],\"name\"),$2($13[1],\"name\"),$2($13[2],\"name\"),$2($13[3],\"name\")]);return $12((()=>{const $14=$0(\"readdir\",[$4+\"/none\",{}],$1);return $14($3);})());})());})());})());})());})());return $6([]);}")).to_any()
67 }), (string_key("expected"), [[string_any("ok"), Nullish::Null.to_any()].to_array().to_any(), [string_any("ok"), Nullish::Null.to_any()].to_array().to_any(), [string_any("ok"), Nullish::Null.to_any()].to_array().to_any(), [string_any("ok"), Nullish::Null.to_any()].to_array().to_any(), [string_any("ok"), [string_any("a"), string_any("b"), string_any("z")].to_array().to_any()].to_array().to_any(), [string_any("ok"), [string_any("a"), string_any("b"), string_any("z"), string_any("f")].to_array().to_any()].to_array().to_any(), [string_any("error"), string_any("ENOENT")].to_array().to_any()].to_array().to_any())].to_object().to_any()), (string_key("exclusive"), [(string_key("run"), A::static_function(|_self, _args| {
68 let _b139: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("createExclusive"), [(_args.argument(0) + string_any("/a"))?].to_array().to_any(), A::frame(_self)[1].clone()].to_array().to_any()))?;
69 let _b167: Any<A> = (Any::call(_b139.clone(), [{
70 let _b142: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("createExclusive"), [(_args.argument(0) + string_any("/a"))?].to_array().to_any(), A::frame(_self)[1].clone()].to_array().to_any()))?;
71 (Any::call(_b142.clone(), [{
72 let _b146: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("writeExclusive"), [(_args.argument(0) + string_any("/a"))?, [bigint_any(-59497)].to_array().to_any()].to_array().to_any(), A::frame(_self)[1].clone()].to_array().to_any()))?;
73 (Any::call(_b146.clone(), [{
74 let _b150: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("writeExclusive"), [(_args.argument(0) + string_any("/b"))?, [bigint_any(-59497), bigint_any(-59497)].to_array().to_any()].to_array().to_any(), A::frame(_self)[1].clone()].to_array().to_any()))?;
75 (Any::call(_b150.clone(), [{
76 let _b156: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("readFile"), [(_args.argument(0) + string_any("/b"))?].to_array().to_any(), A::static_function(|_self, _args| { strict_eq(_args.argument(0), bigint_any(-3899222121)) }, 1, [A::frame(_self)[3].clone()].to_array(), Some("($0)=>$0===-3899222121n")).to_any()].to_array().to_any()))?;
77 (Any::call(_b156.clone(), [{
78 let _b160: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("writeExclusive"), [(_args.argument(0) + string_any("/n/c"))?, [bigint_any(-59497)].to_array().to_any()].to_array().to_any(), A::frame(_self)[1].clone()].to_array().to_any()))?;
79 (Any::call(_b160.clone(), [A::frame(_self)[2].clone()].to_array().to_any()))?
80 }].to_array().to_any()))?
81 }].to_array().to_any()))?
82 }].to_array().to_any()))?
83 }].to_array().to_any()))?
84 }].to_array().to_any()))?;
85 Any::call(_b167.clone(), [Array::default().to_any()].to_array().to_any())
86 }, 1, [_b51.clone(), _b52.clone(), _b61.clone(), runtime.clone()].to_array(), Some("($3)=>{const $4=$0(\"createExclusive\",[$3+\"/a\"],$1);const $5=$4((()=>{const $6=$0(\"createExclusive\",[$3+\"/a\"],$1);return $6((()=>{const $7=$0(\"writeExclusive\",[$3+\"/a\",[-59497n]],$1);return $7((()=>{const $8=$0(\"writeExclusive\",[$3+\"/b\",[-59497n,-59497n]],$1);return $8((()=>{const $9=$0(\"readFile\",[$3+\"/b\"],($10)=>$10===-3899222121n);return $9((()=>{const $11=$0(\"writeExclusive\",[$3+\"/n/c\",[-59497n]],$1);return $11($2);})());})());})());})());})());return $5([]);}")).to_any()), (string_key("expected"), [[string_any("ok"), Nullish::Null.to_any()].to_array().to_any(), [string_any("error"), string_any("EEXIST")].to_array().to_any(), [string_any("error"), string_any("EEXIST")].to_array().to_any(), [string_any("ok"), Nullish::Null.to_any()].to_array().to_any(), [string_any("ok"), true.to_any()].to_array().to_any(), [string_any("error"), string_any("ENOENT")].to_array().to_any()].to_array().to_any())].to_object().to_any()), (string_key("files"), [(string_key("run"), A::static_function(|_self, _args| {
87 let _b184: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("writeFile"), [(_args.argument(0) + string_any("/f"))?, bigint_any(-59497)].to_array().to_any(), A::frame(_self)[1].clone()].to_array().to_any()))?;
88 let _b216: Any<A> = (Any::call(_b184.clone(), [{
89 let _b190: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("readFile"), [(_args.argument(0) + string_any("/f"))?].to_array().to_any(), A::static_function(|_self, _args| { strict_eq(_args.argument(0), bigint_any(-59497)) }, 1, [A::frame(_self)[3].clone()].to_array(), Some("($0)=>$0===-59497n")).to_any()].to_array().to_any()))?;
90 (Any::call(_b190.clone(), [{
91 let _b193: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("writeFile"), [(_args.argument(0) + string_any("/f"))?, bigint_any(-3899222121)].to_array().to_any(), A::frame(_self)[1].clone()].to_array().to_any()))?;
92 (Any::call(_b193.clone(), [{
93 let _b199: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("readFile"), [(_args.argument(0) + string_any("/f"))?].to_array().to_any(), A::static_function(|_self, _args| { strict_eq(_args.argument(0), bigint_any(-3899222121)) }, 1, [A::frame(_self)[3].clone()].to_array(), Some("($0)=>$0===-3899222121n")).to_any()].to_array().to_any()))?;
94 (Any::call(_b199.clone(), [{
95 let _b202: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("rm"), [(_args.argument(0) + string_any("/f"))?].to_array().to_any(), A::frame(_self)[1].clone()].to_array().to_any()))?;
96 (Any::call(_b202.clone(), [{
97 let _b205: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("readFile"), [(_args.argument(0) + string_any("/f"))?].to_array().to_any(), A::frame(_self)[1].clone()].to_array().to_any()))?;
98 (Any::call(_b205.clone(), [{
99 let _b208: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("rm"), [(_args.argument(0) + string_any("/f"))?].to_array().to_any(), A::frame(_self)[1].clone()].to_array().to_any()))?;
100 (Any::call(_b208.clone(), [A::frame(_self)[2].clone()].to_array().to_any()))?
101 }].to_array().to_any()))?
102 }].to_array().to_any()))?
103 }].to_array().to_any()))?
104 }].to_array().to_any()))?
105 }].to_array().to_any()))?
106 }].to_array().to_any()))?;
107 Any::call(_b216.clone(), [Array::default().to_any()].to_array().to_any())
108 }, 1, [_b51.clone(), _b52.clone(), _b61.clone(), runtime.clone()].to_array(), Some("($3)=>{const $4=$0(\"writeFile\",[$3+\"/f\",-59497n],$1);const $5=$4((()=>{const $6=$0(\"readFile\",[$3+\"/f\"],($7)=>$7===-59497n);return $6((()=>{const $8=$0(\"writeFile\",[$3+\"/f\",-3899222121n],$1);return $8((()=>{const $9=$0(\"readFile\",[$3+\"/f\"],($10)=>$10===-3899222121n);return $9((()=>{const $11=$0(\"rm\",[$3+\"/f\"],$1);return $11((()=>{const $12=$0(\"readFile\",[$3+\"/f\"],$1);return $12((()=>{const $13=$0(\"rm\",[$3+\"/f\"],$1);return $13($2);})());})());})());})());})());})());return $5([]);}")).to_any()), (string_key("expected"), [[string_any("ok"), Nullish::Null.to_any()].to_array().to_any(), [string_any("ok"), true.to_any()].to_array().to_any(), [string_any("ok"), Nullish::Null.to_any()].to_array().to_any(), [string_any("ok"), true.to_any()].to_array().to_any(), [string_any("ok"), Nullish::Null.to_any()].to_array().to_any(), [string_any("error"), string_any("ENOENT")].to_array().to_any(), [string_any("error"), string_any("ENOENT")].to_array().to_any()].to_array().to_any())].to_object().to_any()), (string_key("handles"), [(string_key("run"), A::static_function(|_self, _args| {
109 let _b266: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("writeFile"), [(_args.argument(0) + string_any("/f"))?, bigint_any(-59497)].to_array().to_any(), A::frame(_self)[1].clone()].to_array().to_any()))?;
110 let _b282: Any<A> = (Any::call(_b266.clone(), [A::static_function(|_self, _args| { Ok([(string_key("command"), string_any("open")), (string_key("payload"), [(A::frame(_self)[0].clone() + string_any("/f"))?].to_array().to_any()), (string_key("continuation"), A::static_function(|_self, _args| {
111 let _b276: Any<A> = (Any::call(A::frame(_self)[0].clone(), [(Any::dot(_args.argument(0), f64_any(0x3ff0000000000000)).end())?].to_array().to_any()))?;
112 Any::call(_b276.clone(), [A::frame(_self)[1].clone()].to_array().to_any())
113 }, 1, [A::frame(_self)[1].clone(), _args.argument(0), A::frame(_self)[2].clone()].to_array(), Some("($2)=>{const $3=$0($2[1]);return $3($1);}")).to_any())].to_object().to_any()) }, 1, [_args.argument(0), A::frame(_self)[2].clone(), A::frame(_self)[3].clone()].to_array(), Some("($2)=>{return {\"command\":\"open\",\"payload\":[$0+\"/f\"],\"continuation\":($3)=>{const $4=$1($3[1]);return $4($2);}};}")).to_any()].to_array().to_any()))?;
114 Any::call(_b282.clone(), [Array::default().to_any()].to_array().to_any())
115 }, 1, [_b51.clone(), _b52.clone(), _b260.clone(), runtime.clone()].to_array(), Some("($3)=>{const $4=$0(\"writeFile\",[$3+\"/f\",-59497n],$1);const $5=$4(($6)=>{return {\"command\":\"open\",\"payload\":[$3+\"/f\"],\"continuation\":($7)=>{const $8=$2($7[1]);return $8($6);}};});return $5([]);}")).to_any()), (string_key("expected"), [[string_any("ok"), Nullish::Null.to_any()].to_array().to_any(), [string_any("ok"), true.to_any()].to_array().to_any(), [string_any("ok"), true.to_any()].to_array().to_any(), [string_any("ok"), Nullish::Null.to_any()].to_array().to_any(), [string_any("ok"), Nullish::Null.to_any()].to_array().to_any(), [string_any("error"), string_any("EBADF")].to_array().to_any(), [string_any("error"), string_any("EBADF")].to_array().to_any()].to_array().to_any())].to_object().to_any()), (string_key("inflates"), [(string_key("run"), A::static_function(|_self, _args| {
116 let _b300: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("inflate"), [bigint_any_words(true, &[0xff616263024d0127, 0x0000f801010300fc])].to_array().to_any(), A::static_function(|_self, _args| { strict_eq(_args.argument(0), bigint_any(-14770787)) }, 1, [A::frame(_self)[3].clone()].to_array(), Some("($0)=>$0===-14770787n")).to_any()].to_array().to_any()))?;
117 let _b327: Any<A> = (Any::call(_b300.clone(), [{
118 let _b305: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("inflate"), [bigint_any_words(true, &[0xc8402701680308b1, 0xf801cb48cdc9c957])].to_array().to_any(), A::static_function(|_self, _args| { strict_eq(_args.argument(0), bigint_any_words(true, &[0x6c6f2068656c6c6f, 0x656c6c6f2068656c, 0x00e8656c6c6f2068])) }, 1, [A::frame(_self)[3].clone()].to_array(), Some("($0)=>$0===-22259132390116257092906811197650249990495843715610602607n")).to_any()].to_array().to_any()))?;
119 (Any::call(_b305.clone(), [{
120 let _b310: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("inflate"), [bigint_any_words(true, &[0xf89c030000000001])].to_array().to_any(), A::static_function(|_self, _args| { strict_eq(_args.argument(0), bigint_any(0)) }, 1, [A::frame(_self)[3].clone()].to_array(), Some("($0)=>$0===0n")).to_any()].to_array().to_any()))?;
121 (Any::call(_b310.clone(), [{
122 let _b313: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("inflate"), [bigint_any(-63645)].to_array().to_any(), A::frame(_self)[1].clone()].to_array().to_any()))?;
123 (Any::call(_b313.clone(), [{
124 let _b315: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("inflate"), [bigint_any_words(true, &[0x01680308b1010203, 0x48cdc9c957c84027, 0x0000000000f801cb])].to_array().to_any(), A::frame(_self)[1].clone()].to_array().to_any()))?;
125 (Any::call(_b315.clone(), [{
126 let _b317: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("inflate"), [bigint_any_words(true, &[0xc957c84027016803, 0x0000f801cb48cdc9])].to_array().to_any(), A::frame(_self)[1].clone()].to_array().to_any()))?;
127 (Any::call(_b317.clone(), [{
128 let _b319: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("inflate"), [bigint_any_words(true, &[0xc8402701680308b0, 0xf801cb48cdc9c957])].to_array().to_any(), A::frame(_self)[1].clone()].to_array().to_any()))?;
129 (Any::call(_b319.clone(), [A::frame(_self)[2].clone()].to_array().to_any()))?
130 }].to_array().to_any()))?
131 }].to_array().to_any()))?
132 }].to_array().to_any()))?
133 }].to_array().to_any()))?
134 }].to_array().to_any()))?
135 }].to_array().to_any()))?;
136 Any::call(_b327.clone(), [Array::default().to_any()].to_array().to_any())
137 }, 1, [_b51.clone(), _b52.clone(), _b61.clone(), runtime.clone()].to_array(), Some("($3)=>{const $4=$0(\"inflate\",[-5030117122984582791269772711231783n],($5)=>$5===-14770787n);const $6=$4((()=>{const $7=$0(\"inflate\",[-329657858348783285541978696330233710769n],($8)=>$8===-22259132390116257092906811197650249990495843715610602607n);return $7((()=>{const $9=$0(\"inflate\",[-17914196716307873793n],($10)=>$10===0n);return $9((()=>{const $11=$0(\"inflate\",[-63645n],$1);return $11((()=>{const $12=$0(\"inflate\",[-5530741095614940518727453655730738296053105155n],$1);return $12((()=>{const $13=$0(\"inflate\",[-5030179723339588707610758916171779n],$1);return $13((()=>{const $14=$0(\"inflate\",[-329657858348783285541978696330233710768n],$1);return $14($2);})());})());})());})());})());})());return $6([]);}")).to_any()), (string_key("expected"), [[string_any("ok"), true.to_any()].to_array().to_any(), [string_any("ok"), true.to_any()].to_array().to_any(), [string_any("ok"), true.to_any()].to_array().to_any(), [string_any("error"), string_any("Z_DATA_ERROR")].to_array().to_any(), [string_any("error"), string_any("ERR_TRAILING_BYTES")].to_array().to_any(), [string_any("error"), string_any("Z_BUF_ERROR")].to_array().to_any(), [string_any("error"), string_any("Z_DATA_ERROR")].to_array().to_any()].to_array().to_any())].to_object().to_any()), (string_key("mkdirs"), [(string_key("run"), A::static_function(|_self, _args| {
138 let _b346: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("mkdir"), [(_args.argument(0) + string_any("/a/b"))?, [(string_key("recursive"), true.to_any())].to_object().to_any()].to_array().to_any(), A::frame(_self)[1].clone()].to_array().to_any()))?;
139 let _b368: Any<A> = (Any::call(_b346.clone(), [{
140 let _b350: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("mkdir"), [(_args.argument(0) + string_any("/a/b"))?, [(string_key("recursive"), true.to_any())].to_object().to_any()].to_array().to_any(), A::frame(_self)[1].clone()].to_array().to_any()))?;
141 (Any::call(_b350.clone(), [{
142 let _b354: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("mkdir"), [(_args.argument(0) + string_any("/a/b"))?, Nullish::Undefined.to_any()].to_array().to_any(), A::frame(_self)[1].clone()].to_array().to_any()))?;
143 (Any::call(_b354.clone(), [{
144 let _b358: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("mkdir"), [(_args.argument(0) + string_any("/x/y"))?, Nullish::Undefined.to_any()].to_array().to_any(), A::frame(_self)[1].clone()].to_array().to_any()))?;
145 (Any::call(_b358.clone(), [{
146 let _b362: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("mkdir"), [(_args.argument(0) + string_any("/d"))?, Nullish::Undefined.to_any()].to_array().to_any(), A::frame(_self)[1].clone()].to_array().to_any()))?;
147 (Any::call(_b362.clone(), [A::frame(_self)[2].clone()].to_array().to_any()))?
148 }].to_array().to_any()))?
149 }].to_array().to_any()))?
150 }].to_array().to_any()))?
151 }].to_array().to_any()))?;
152 Any::call(_b368.clone(), [Array::default().to_any()].to_array().to_any())
153 }, 1, [_b51.clone(), _b52.clone(), _b61.clone(), runtime.clone()].to_array(), Some("($3)=>{const $4=$0(\"mkdir\",[$3+\"/a/b\",{\"recursive\":true}],$1);const $5=$4((()=>{const $6=$0(\"mkdir\",[$3+\"/a/b\",{\"recursive\":true}],$1);return $6((()=>{const $7=$0(\"mkdir\",[$3+\"/a/b\",undefined],$1);return $7((()=>{const $8=$0(\"mkdir\",[$3+\"/x/y\",undefined],$1);return $8((()=>{const $9=$0(\"mkdir\",[$3+\"/d\",undefined],$1);return $9($2);})());})());})());})());return $5([]);}")).to_any()), (string_key("expected"), [[string_any("ok"), Nullish::Null.to_any()].to_array().to_any(), [string_any("ok"), Nullish::Null.to_any()].to_array().to_any(), [string_any("error"), string_any("EEXIST")].to_array().to_any(), [string_any("error"), string_any("ENOENT")].to_array().to_any(), [string_any("ok"), Nullish::Null.to_any()].to_array().to_any()].to_array().to_any())].to_object().to_any()), (string_key("readWhole"), [(string_key("run"), A::static_function(|_self, _args| {
154 let _b384: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("writeFile"), [(_args.argument(0) + string_any("/f"))?, bigint_any(-3899222121)].to_array().to_any(), A::frame(_self)[1].clone()].to_array().to_any()))?;
155 let _b401: Any<A> = (Any::call(_b384.clone(), [{
156 let _b391: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("readWhole"), [(_args.argument(0) + string_any("/f"))?].to_array().to_any(), A::static_function(|_self, _args| { strict_eq((Any::dot(_args.argument(0), f64_any(0x0000000000000000)).end())?, bigint_any(-3899222121)) }, 1, [A::frame(_self)[3].clone()].to_array(), Some("($0)=>$0[0]===-3899222121n")).to_any()].to_array().to_any()))?;
157 (Any::call(_b391.clone(), [{
158 let _b393: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("readWhole"), [_args.argument(0)].to_array().to_any(), A::frame(_self)[1].clone()].to_array().to_any()))?;
159 (Any::call(_b393.clone(), [{
160 let _b396: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("readWhole"), [(_args.argument(0) + string_any("/none"))?].to_array().to_any(), A::frame(_self)[1].clone()].to_array().to_any()))?;
161 (Any::call(_b396.clone(), [A::frame(_self)[2].clone()].to_array().to_any()))?
162 }].to_array().to_any()))?
163 }].to_array().to_any()))?
164 }].to_array().to_any()))?;
165 Any::call(_b401.clone(), [Array::default().to_any()].to_array().to_any())
166 }, 1, [_b51.clone(), _b52.clone(), _b61.clone(), runtime.clone()].to_array(), Some("($3)=>{const $4=$0(\"writeFile\",[$3+\"/f\",-3899222121n],$1);const $5=$4((()=>{const $6=$0(\"readWhole\",[$3+\"/f\"],($7)=>$7[0]===-3899222121n);return $6((()=>{const $8=$0(\"readWhole\",[$3],$1);return $8((()=>{const $9=$0(\"readWhole\",[$3+\"/none\"],$1);return $9($2);})());})());})());return $5([]);}")).to_any()), (string_key("expected"), [[string_any("ok"), Nullish::Null.to_any()].to_array().to_any(), [string_any("ok"), true.to_any()].to_array().to_any(), [string_any("error"), string_any("ERR_NOT_A_FILE")].to_array().to_any(), [string_any("error"), string_any("ENOENT")].to_array().to_any()].to_array().to_any())].to_object().to_any()), (string_key("renames"), [(string_key("run"), A::static_function(|_self, _args| {
167 let _b416: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("writeFile"), [(_args.argument(0) + string_any("/a"))?, bigint_any(-59497)].to_array().to_any(), A::frame(_self)[1].clone()].to_array().to_any()))?;
168 let _b443: Any<A> = (Any::call(_b416.clone(), [{
169 let _b419: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("writeFile"), [(_args.argument(0) + string_any("/b"))?, bigint_any(-3899222121)].to_array().to_any(), A::frame(_self)[1].clone()].to_array().to_any()))?;
170 (Any::call(_b419.clone(), [{
171 let _b423: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("rename"), [(_args.argument(0) + string_any("/a"))?, (_args.argument(0) + string_any("/b"))?].to_array().to_any(), A::frame(_self)[1].clone()].to_array().to_any()))?;
172 (Any::call(_b423.clone(), [{
173 let _b429: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("readFile"), [(_args.argument(0) + string_any("/b"))?].to_array().to_any(), A::static_function(|_self, _args| { strict_eq(_args.argument(0), bigint_any(-59497)) }, 1, [A::frame(_self)[3].clone()].to_array(), Some("($0)=>$0===-59497n")).to_any()].to_array().to_any()))?;
174 (Any::call(_b429.clone(), [{
175 let _b432: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("readFile"), [(_args.argument(0) + string_any("/a"))?].to_array().to_any(), A::frame(_self)[1].clone()].to_array().to_any()))?;
176 (Any::call(_b432.clone(), [{
177 let _b436: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("rename"), [(_args.argument(0) + string_any("/a"))?, (_args.argument(0) + string_any("/c"))?].to_array().to_any(), A::frame(_self)[1].clone()].to_array().to_any()))?;
178 (Any::call(_b436.clone(), [A::frame(_self)[2].clone()].to_array().to_any()))?
179 }].to_array().to_any()))?
180 }].to_array().to_any()))?
181 }].to_array().to_any()))?
182 }].to_array().to_any()))?
183 }].to_array().to_any()))?;
184 Any::call(_b443.clone(), [Array::default().to_any()].to_array().to_any())
185 }, 1, [_b51.clone(), _b52.clone(), _b61.clone(), runtime.clone()].to_array(), Some("($3)=>{const $4=$0(\"writeFile\",[$3+\"/a\",-59497n],$1);const $5=$4((()=>{const $6=$0(\"writeFile\",[$3+\"/b\",-3899222121n],$1);return $6((()=>{const $7=$0(\"rename\",[$3+\"/a\",$3+\"/b\"],$1);return $7((()=>{const $8=$0(\"readFile\",[$3+\"/b\"],($9)=>$9===-59497n);return $8((()=>{const $10=$0(\"readFile\",[$3+\"/a\"],$1);return $10((()=>{const $11=$0(\"rename\",[$3+\"/a\",$3+\"/c\"],$1);return $11($2);})());})());})());})());})());return $5([]);}")).to_any()), (string_key("expected"), [[string_any("ok"), Nullish::Null.to_any()].to_array().to_any(), [string_any("ok"), Nullish::Null.to_any()].to_array().to_any(), [string_any("ok"), Nullish::Null.to_any()].to_array().to_any(), [string_any("ok"), true.to_any()].to_array().to_any(), [string_any("error"), string_any("ENOENT")].to_array().to_any(), [string_any("error"), string_any("ENOENT")].to_array().to_any()].to_array().to_any())].to_object().to_any()), (string_key("resolution"), [(string_key("run"), A::static_function(|_self, _args| {
186 let _b460: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("writeFile"), [(_args.argument(0) + string_any("/m.f.mjs"))?, bigint_any(-59497)].to_array().to_any(), A::frame(_self)[1].clone()].to_array().to_any()))?;
187 let _b480: Any<A> = (Any::call(_b460.clone(), [{
188 let _b473: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("resolveFileModule"), [(_args.argument(0) + string_any("/m.f.mjs"))?, Nullish::Null.to_any()].to_array().to_any(), A::static_function(|_self, _args| {
189 let _b465: Any<A> = (Any::dot((Any::dot(_args.argument(0), string_any("id")).end())?, string_any("startsWith")).end_call(&A::frame(_self)[0], || Ok([string_any("file:///")].to_array().to_any())))?;
190 let _b468: Any<A> = if Any::<A>::to_boolean(_b465.clone()) { (Any::dot((Any::dot(_args.argument(0), string_any("id")).end())?, string_any("endsWith")).end_call(&A::frame(_self)[0], || Ok([string_any("/m.f.mjs")].to_array().to_any())))? } else { _b465.clone() };
191 if Any::<A>::to_boolean(_b468.clone()) { Any::dot((Any::dot(_args.argument(0), string_any("path")).end())?, string_any("endsWith")).end_call(&A::frame(_self)[0], || Ok([string_any("m.f.mjs")].to_array().to_any())) } else { Ok(_b468.clone()) }
192 }, 1, [A::frame(_self)[3].clone()].to_array(), Some("($0)=>{const $1=$0.id.startsWith(\"file:///\");const $2=$1?$0.id.endsWith(\"/m.f.mjs\"):$1;return $2?$0.path.endsWith(\"m.f.mjs\"):$2;}")).to_any()].to_array().to_any()))?;
193 (Any::call(_b473.clone(), [{
194 let _b476: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("resolveFileModule"), [(_args.argument(0) + string_any("/none.f.mjs"))?, Nullish::Null.to_any()].to_array().to_any(), A::frame(_self)[1].clone()].to_array().to_any()))?;
195 (Any::call(_b476.clone(), [A::frame(_self)[2].clone()].to_array().to_any()))?
196 }].to_array().to_any()))?
197 }].to_array().to_any()))?;
198 Any::call(_b480.clone(), [Array::default().to_any()].to_array().to_any())
199 }, 1, [_b51.clone(), _b52.clone(), _b61.clone(), runtime.clone()].to_array(), Some("($3)=>{const $4=$0(\"writeFile\",[$3+\"/m.f.mjs\",-59497n],$1);const $5=$4((()=>{const $6=$0(\"resolveFileModule\",[$3+\"/m.f.mjs\",null],($7)=>{const $8=$7.id.startsWith(\"file:///\");const $9=$8?$7.id.endsWith(\"/m.f.mjs\"):$8;return $9?$7.path.endsWith(\"m.f.mjs\"):$9;});return $6((()=>{const $10=$0(\"resolveFileModule\",[$3+\"/none.f.mjs\",null],$1);return $10($2);})());})());return $5([]);}")).to_any()), (string_key("expected"), [[string_any("ok"), Nullish::Null.to_any()].to_array().to_any(), [string_any("ok"), true.to_any()].to_array().to_any(), [string_any("error"), string_any("ENOENT")].to_array().to_any()].to_array().to_any())].to_object().to_any()), (string_key("rmOfADirectory"), [(string_key("run"), A::static_function(|_self, _args| {
200 let _b493: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("rm"), [_args.argument(0)].to_array().to_any(), A::frame(_self)[1].clone()].to_array().to_any()))?;
201 let _b495: Any<A> = (Any::call(_b493.clone(), [A::frame(_self)[2].clone()].to_array().to_any()))?;
202 Any::call(_b495.clone(), [Array::default().to_any()].to_array().to_any())
203 }, 1, [_b51.clone(), _b52.clone(), _b61.clone(), runtime.clone()].to_array(), Some("($3)=>{const $4=$0(\"rm\",[$3],$1);const $5=$4($2);return $5([]);}")).to_any()), (string_key("expected"), [[string_any("error"), string_any("ERR_FS_EISDIR")].to_array().to_any()].to_array().to_any())].to_object().to_any()), (string_key("rmdirs"), [(string_key("run"), A::static_function(|_self, _args| {
204 let _b508: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("mkdir"), [(_args.argument(0) + string_any("/d"))?, Nullish::Undefined.to_any()].to_array().to_any(), A::frame(_self)[1].clone()].to_array().to_any()))?;
205 let _b530: Any<A> = (Any::call(_b508.clone(), [{
206 let _b511: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("writeFile"), [(_args.argument(0) + string_any("/d/f"))?, bigint_any(-59497)].to_array().to_any(), A::frame(_self)[1].clone()].to_array().to_any()))?;
207 (Any::call(_b511.clone(), [{
208 let _b514: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("rmdir"), [(_args.argument(0) + string_any("/d"))?].to_array().to_any(), A::frame(_self)[1].clone()].to_array().to_any()))?;
209 (Any::call(_b514.clone(), [{
210 let _b517: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("rm"), [(_args.argument(0) + string_any("/d/f"))?].to_array().to_any(), A::frame(_self)[1].clone()].to_array().to_any()))?;
211 (Any::call(_b517.clone(), [{
212 let _b520: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("rmdir"), [(_args.argument(0) + string_any("/d"))?].to_array().to_any(), A::frame(_self)[1].clone()].to_array().to_any()))?;
213 (Any::call(_b520.clone(), [{
214 let _b523: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("rmdir"), [(_args.argument(0) + string_any("/d"))?].to_array().to_any(), A::frame(_self)[1].clone()].to_array().to_any()))?;
215 (Any::call(_b523.clone(), [A::frame(_self)[2].clone()].to_array().to_any()))?
216 }].to_array().to_any()))?
217 }].to_array().to_any()))?
218 }].to_array().to_any()))?
219 }].to_array().to_any()))?
220 }].to_array().to_any()))?;
221 Any::call(_b530.clone(), [Array::default().to_any()].to_array().to_any())
222 }, 1, [_b51.clone(), _b52.clone(), _b61.clone(), runtime.clone()].to_array(), Some("($3)=>{const $4=$0(\"mkdir\",[$3+\"/d\",undefined],$1);const $5=$4((()=>{const $6=$0(\"writeFile\",[$3+\"/d/f\",-59497n],$1);return $6((()=>{const $7=$0(\"rmdir\",[$3+\"/d\"],$1);return $7((()=>{const $8=$0(\"rm\",[$3+\"/d/f\"],$1);return $8((()=>{const $9=$0(\"rmdir\",[$3+\"/d\"],$1);return $9((()=>{const $10=$0(\"rmdir\",[$3+\"/d\"],$1);return $10($2);})());})());})());})());})());return $5([]);}")).to_any()), (string_key("expected"), [[string_any("ok"), Nullish::Null.to_any()].to_array().to_any(), [string_any("ok"), Nullish::Null.to_any()].to_array().to_any(), [string_any("error"), string_any("ENOTEMPTY")].to_array().to_any(), [string_any("ok"), Nullish::Null.to_any()].to_array().to_any(), [string_any("ok"), Nullish::Null.to_any()].to_array().to_any(), [string_any("error"), string_any("ENOENT")].to_array().to_any()].to_array().to_any())].to_object().to_any()), (string_key("stats"), [(string_key("run"), A::static_function(|_self, _args| {
223 let _b547: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("writeFile"), [(_args.argument(0) + string_any("/f"))?, bigint_any(-59497)].to_array().to_any(), A::frame(_self)[1].clone()].to_array().to_any()))?;
224 let _b582: Any<A> = (Any::call(_b547.clone(), [{
225 let _b556: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("stat"), [(_args.argument(0) + string_any("/f"))?].to_array().to_any(), A::static_function(|_self, _args| { Ok([(Any::dot(_args.argument(0), string_any("size")).end())?, (Any::dot(_args.argument(0), string_any("isFile")).end())?, (Any::dot(_args.argument(0), string_any("isDirectory")).end())?].to_array().to_any()) }, 1, [A::frame(_self)[3].clone()].to_array(), Some("($0)=>[$0.size,$0.isFile,$0.isDirectory]")).to_any()].to_array().to_any()))?;
226 (Any::call(_b556.clone(), [{
227 let _b563: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("stat"), [_args.argument(0)].to_array().to_any(), A::static_function(|_self, _args| { Ok([(Any::dot(_args.argument(0), string_any("isFile")).end())?, (Any::dot(_args.argument(0), string_any("isDirectory")).end())?].to_array().to_any()) }, 1, [A::frame(_self)[3].clone()].to_array(), Some("($0)=>[$0.isFile,$0.isDirectory]")).to_any()].to_array().to_any()))?;
228 (Any::call(_b563.clone(), [{
229 let _b566: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("stat"), [(_args.argument(0) + string_any("/none"))?].to_array().to_any(), A::frame(_self)[1].clone()].to_array().to_any()))?;
230 (Any::call(_b566.clone(), [{
231 let _b569: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("access"), [(_args.argument(0) + string_any("/f"))?].to_array().to_any(), A::frame(_self)[1].clone()].to_array().to_any()))?;
232 (Any::call(_b569.clone(), [{
233 let _b571: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("access"), [_args.argument(0)].to_array().to_any(), A::frame(_self)[1].clone()].to_array().to_any()))?;
234 (Any::call(_b571.clone(), [{
235 let _b574: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("access"), [(_args.argument(0) + string_any("/none"))?].to_array().to_any(), A::frame(_self)[1].clone()].to_array().to_any()))?;
236 (Any::call(_b574.clone(), [A::frame(_self)[2].clone()].to_array().to_any()))?
237 }].to_array().to_any()))?
238 }].to_array().to_any()))?
239 }].to_array().to_any()))?
240 }].to_array().to_any()))?
241 }].to_array().to_any()))?
242 }].to_array().to_any()))?;
243 Any::call(_b582.clone(), [Array::default().to_any()].to_array().to_any())
244 }, 1, [_b51.clone(), _b52.clone(), _b61.clone(), runtime.clone()].to_array(), Some("($3)=>{const $4=$0(\"writeFile\",[$3+\"/f\",-59497n],$1);const $5=$4((()=>{const $6=$0(\"stat\",[$3+\"/f\"],($7)=>[$7.size,$7.isFile,$7.isDirectory]);return $6((()=>{const $8=$0(\"stat\",[$3],($9)=>[$9.isFile,$9.isDirectory]);return $8((()=>{const $10=$0(\"stat\",[$3+\"/none\"],$1);return $10((()=>{const $11=$0(\"access\",[$3+\"/f\"],$1);return $11((()=>{const $12=$0(\"access\",[$3],$1);return $12((()=>{const $13=$0(\"access\",[$3+\"/none\"],$1);return $13($2);})());})());})());})());})());})());return $5([]);}")).to_any()), (string_key("expected"), [[string_any("ok"), Nullish::Null.to_any()].to_array().to_any(), [string_any("ok"), [f64_any(0x4000000000000000), true.to_any(), false.to_any()].to_array().to_any()].to_array().to_any(), [string_any("ok"), [false.to_any(), true.to_any()].to_array().to_any()].to_array().to_any(), [string_any("error"), string_any("ENOENT")].to_array().to_any(), [string_any("ok"), Nullish::Null.to_any()].to_array().to_any(), [string_any("ok"), Nullish::Null.to_any()].to_array().to_any(), [string_any("error"), string_any("ENOENT")].to_array().to_any()].to_array().to_any())].to_object().to_any()), (string_key("thunks"), [(string_key("run"), A::static_function(|_self, _args| {
245 let _b609: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("catch"), [A::static_function(|_self, _args| { Ok(f64_any(0x401c000000000000)) }, 0, [A::frame(_self)[3].clone()].to_array(), Some("()=>7")).to_any()].to_array().to_any(), A::static_function(|_self, _args| {
246 let _b604: Any<A> = (strict_eq((Any::dot(_args.argument(0), f64_any(0x0000000000000000)).end())?, string_any("ok")))?;
247 if Any::<A>::to_boolean(_b604.clone()) { strict_eq((Any::dot(_args.argument(0), f64_any(0x3ff0000000000000)).end())?, f64_any(0x401c000000000000)) } else { Ok(_b604.clone()) }
248 }, 1, [A::frame(_self)[3].clone()].to_array(), Some("($0)=>{const $1=$0[0]===\"ok\";return $1?$0[1]===7:$1;}")).to_any()].to_array().to_any()))?;
249 let _b691: Any<A> = (Any::call(_b609.clone(), [{
250 let _b619: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("catch"), [A::frame(_self)[1].clone()].to_array().to_any(), A::static_function(|_self, _args| {
251 let _b614: Any<A> = (strict_eq((Any::dot(_args.argument(0), f64_any(0x0000000000000000)).end())?, string_any("error")))?;
252 if Any::<A>::to_boolean(_b614.clone()) { strict_eq((Any::dot(_args.argument(0), f64_any(0x3ff0000000000000)).end())?, string_any("boom")) } else { Ok(_b614.clone()) }
253 }, 1, [A::frame(_self)[3].clone()].to_array(), Some("($0)=>{const $1=$0[0]===\"error\";return $1?$0[1]===\"boom\":$1;}")).to_any()].to_array().to_any()))?;
254 (Any::call(_b619.clone(), [{
255 let _b639: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("sandbox"), [A::static_function(|_self, _args| { Ok(f64_any(0x4000000000000000)) }, 0, [A::frame(_self)[3].clone()].to_array(), Some("()=>2")).to_any()].to_array().to_any(), A::static_function(|_self, _args| {
256 let _b625: Any<A> = (strict_eq((Any::dot((Any::dot(_args.argument(0), string_any("result")).end())?, f64_any(0x0000000000000000)).end())?, string_any("ok")))?;
257 let _b629: Any<A> = if Any::<A>::to_boolean(_b625.clone()) { (strict_eq((Any::dot((Any::dot(_args.argument(0), string_any("result")).end())?, f64_any(0x3ff0000000000000)).end())?, f64_any(0x4000000000000000)))? } else { _b625.clone() };
258 let _b634: Any<A> = if Any::<A>::to_boolean(_b629.clone()) { (strict_eq(((Any::dot(_args.argument(0), string_any("duration")).end())? * f64_any(0x3ff0000000000000))?, (Any::dot(_args.argument(0), string_any("duration")).end())?))? } else { _b629.clone() };
259 if Any::<A>::to_boolean(_b634.clone()) { Any::ge((Any::dot(_args.argument(0), string_any("duration")).end())?, f64_any(0x0000000000000000)) } else { Ok(_b634.clone()) }
260 }, 1, [A::frame(_self)[3].clone()].to_array(), Some("($0)=>{const $1=$0.result[0]===\"ok\";const $2=$1?$0.result[1]===2:$1;const $3=$2?$0.duration*1===$0.duration:$2;return $3?$0.duration>=0:$3;}")).to_any()].to_array().to_any()))?;
261 (Any::call(_b639.clone(), [{
262 let _b658: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("sandbox"), [A::frame(_self)[1].clone()].to_array().to_any(), A::static_function(|_self, _args| {
263 let _b644: Any<A> = (strict_eq((Any::dot((Any::dot(_args.argument(0), string_any("result")).end())?, f64_any(0x0000000000000000)).end())?, string_any("error")))?;
264 let _b648: Any<A> = if Any::<A>::to_boolean(_b644.clone()) { (strict_eq((Any::dot((Any::dot(_args.argument(0), string_any("result")).end())?, f64_any(0x3ff0000000000000)).end())?, string_any("boom")))? } else { _b644.clone() };
265 let _b653: Any<A> = if Any::<A>::to_boolean(_b648.clone()) { (strict_eq(((Any::dot(_args.argument(0), string_any("duration")).end())? * f64_any(0x3ff0000000000000))?, (Any::dot(_args.argument(0), string_any("duration")).end())?))? } else { _b648.clone() };
266 if Any::<A>::to_boolean(_b653.clone()) { Any::ge((Any::dot(_args.argument(0), string_any("duration")).end())?, f64_any(0x0000000000000000)) } else { Ok(_b653.clone()) }
267 }, 1, [A::frame(_self)[3].clone()].to_array(), Some("($0)=>{const $1=$0.result[0]===\"error\";const $2=$1?$0.result[1]===\"boom\":$1;const $3=$2?$0.duration*1===$0.duration:$2;return $3?$0.duration>=0:$3;}")).to_any()].to_array().to_any()))?;
268 (Any::call(_b658.clone(), [{
269 let _b671: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("now"), Array::default().to_any(), A::static_function(|_self, _args| {
270 let _b662: Any<A> = (strict_eq((_args.argument(0) * f64_any(0x3ff0000000000000))?, _args.argument(0)))?;
271 let _b665: Any<A> = if Any::<A>::to_boolean(_b662.clone()) { (strict_eq((_args.argument(0) % f64_any(0x3ff0000000000000))?, f64_any(0x0000000000000000)))? } else { _b662.clone() };
272 let _b667: Any<A> = if Any::<A>::to_boolean(_b665.clone()) { (Any::gt(_args.argument(0), f64_any(0x426d1a94a2000000)))? } else { _b665.clone() };
273 if Any::<A>::to_boolean(_b667.clone()) { Any::lt(_args.argument(0), f64_any(0x42d6bcc41e900000)) } else { Ok(_b667.clone()) }
274 }, 1, [A::frame(_self)[3].clone()].to_array(), Some("($0)=>{const $1=$0*1===$0;const $2=$1?$0%1===0:$1;const $3=$2?$0>1000000000000:$2;return $3?$0<100000000000000:$3;}")).to_any()].to_array().to_any()))?;
275 (Any::call(_b671.clone(), [{
276 let _b684: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("randomInt"), Array::default().to_any(), A::static_function(|_self, _args| {
277 let _b675: Any<A> = (strict_eq((_args.argument(0) * f64_any(0x3ff0000000000000))?, _args.argument(0)))?;
278 let _b678: Any<A> = if Any::<A>::to_boolean(_b675.clone()) { (strict_eq((_args.argument(0) % f64_any(0x3ff0000000000000))?, f64_any(0x0000000000000000)))? } else { _b675.clone() };
279 let _b680: Any<A> = if Any::<A>::to_boolean(_b678.clone()) { (Any::ge(_args.argument(0), f64_any(0x0000000000000000)))? } else { _b678.clone() };
280 if Any::<A>::to_boolean(_b680.clone()) { Any::lt(_args.argument(0), f64_any(0x41f0000000000000)) } else { Ok(_b680.clone()) }
281 }, 1, [A::frame(_self)[3].clone()].to_array(), Some("($0)=>{const $1=$0*1===$0;const $2=$1?$0%1===0:$1;const $3=$2?$0>=0:$2;return $3?$0<4294967296:$3;}")).to_any()].to_array().to_any()))?;
282 (Any::call(_b684.clone(), [A::frame(_self)[2].clone()].to_array().to_any()))?
283 }].to_array().to_any()))?
284 }].to_array().to_any()))?
285 }].to_array().to_any()))?
286 }].to_array().to_any()))?
287 }].to_array().to_any()))?;
288 Any::call(_b691.clone(), [Array::default().to_any()].to_array().to_any())
289 }, 1, [_b51.clone(), _b598.clone(), _b61.clone(), runtime.clone()].to_array(), Some("($3)=>{const $4=$0(\"catch\",[()=>7],($5)=>{const $6=$5[0]===\"ok\";return $6?$5[1]===7:$6;});const $7=$4((()=>{const $8=$0(\"catch\",[$1],($9)=>{const $10=$9[0]===\"error\";return $10?$9[1]===\"boom\":$10;});return $8((()=>{const $11=$0(\"sandbox\",[()=>2],($12)=>{const $13=$12.result[0]===\"ok\";const $14=$13?$12.result[1]===2:$13;const $15=$14?$12.duration*1===$12.duration:$14;return $15?$12.duration>=0:$15;});return $11((()=>{const $16=$0(\"sandbox\",[$1],($17)=>{const $18=$17.result[0]===\"error\";const $19=$18?$17.result[1]===\"boom\":$18;const $20=$19?$17.duration*1===$17.duration:$19;return $20?$17.duration>=0:$20;});return $16((()=>{const $21=$0(\"now\",[],($22)=>{const $23=$22*1===$22;const $24=$23?$22%1===0:$23;const $25=$24?$22>1000000000000:$24;return $25?$22<100000000000000:$25;});return $21((()=>{const $26=$0(\"randomInt\",[],($27)=>{const $28=$27*1===$27;const $29=$28?$27%1===0:$28;const $30=$29?$27>=0:$29;return $30?$27<4294967296:$30;});return $26($2);})());})());})());})());})());return $7([]);}")).to_any()), (string_key("expected"), [[string_any("ok"), true.to_any()].to_array().to_any(), [string_any("ok"), true.to_any()].to_array().to_any(), [string_any("ok"), true.to_any()].to_array().to_any(), [string_any("ok"), true.to_any()].to_array().to_any(), [string_any("ok"), true.to_any()].to_array().to_any(), [string_any("ok"), true.to_any()].to_array().to_any()].to_array().to_any())].to_object().to_any()), (string_key("windows"), [(string_key("run"), A::static_function(|_self, _args| {
290 let _b708: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("writeFile"), [(_args.argument(0) + string_any("/f"))?, bigint_any(-3899222121)].to_array().to_any(), A::frame(_self)[1].clone()].to_array().to_any()))?;
291 let _b754: Any<A> = (Any::call(_b708.clone(), [{
292 let _b714: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("readBytes"), [(_args.argument(0) + string_any("/f"))?, f64_any(0x3ff0000000000000), f64_any(0x4000000000000000)].to_array().to_any(), A::static_function(|_self, _args| { strict_eq(_args.argument(0), bigint_any(-59752)) }, 1, [A::frame(_self)[3].clone()].to_array(), Some("($0)=>$0===-59752n")).to_any()].to_array().to_any()))?;
293 (Any::call(_b714.clone(), [{
294 let _b720: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("readBytes"), [(_args.argument(0) + string_any("/f"))?, f64_any(0x4008000000000000), f64_any(0x4024000000000000)].to_array().to_any(), A::static_function(|_self, _args| { strict_eq(_args.argument(0), bigint_any(-233)) }, 1, [A::frame(_self)[3].clone()].to_array(), Some("($0)=>$0===-233n")).to_any()].to_array().to_any()))?;
295 (Any::call(_b720.clone(), [{
296 let _b726: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("readBytes"), [(_args.argument(0) + string_any("/f"))?, f64_any(0x4022000000000000), f64_any(0x4010000000000000)].to_array().to_any(), A::static_function(|_self, _args| { strict_eq(_args.argument(0), bigint_any(0)) }, 1, [A::frame(_self)[3].clone()].to_array(), Some("($0)=>$0===0n")).to_any()].to_array().to_any()))?;
297 (Any::call(_b726.clone(), [{
298 let _b732: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("readBytes"), [(_args.argument(0) + string_any("/f"))?, f64_any(0x0000000000000000), f64_any(0x0000000000000000)].to_array().to_any(), A::static_function(|_self, _args| { strict_eq(_args.argument(0), bigint_any(0)) }, 1, [A::frame(_self)[3].clone()].to_array(), Some("($0)=>$0===0n")).to_any()].to_array().to_any()))?;
299 (Any::call(_b732.clone(), [{
300 let _b735: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("readBytes"), [(_args.argument(0) + string_any("/none"))?, f64_any(0x0000000000000000), f64_any(0x3ff0000000000000)].to_array().to_any(), A::frame(_self)[1].clone()].to_array().to_any()))?;
301 (Any::call(_b735.clone(), [{
302 let _b738: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("readBytes"), [(_args.argument(0) + string_any("/f"))?, f64_any(0xbff0000000000000), f64_any(0x3ff0000000000000)].to_array().to_any(), A::frame(_self)[1].clone()].to_array().to_any()))?;
303 (Any::call(_b738.clone(), [{
304 let _b741: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("readBytes"), [(_args.argument(0) + string_any("/f"))?, f64_any(0x0000000000000000), f64_any(0x4100000800000000)].to_array().to_any(), A::frame(_self)[1].clone()].to_array().to_any()))?;
305 (Any::call(_b741.clone(), [{
306 let _b744: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("readBytes"), [(_args.argument(0) + string_any("/f"))?, f64_any(0x3fe0000000000000), f64_any(0x3ff0000000000000)].to_array().to_any(), A::frame(_self)[1].clone()].to_array().to_any()))?;
307 (Any::call(_b744.clone(), [A::frame(_self)[2].clone()].to_array().to_any()))?
308 }].to_array().to_any()))?
309 }].to_array().to_any()))?
310 }].to_array().to_any()))?
311 }].to_array().to_any()))?
312 }].to_array().to_any()))?
313 }].to_array().to_any()))?
314 }].to_array().to_any()))?
315 }].to_array().to_any()))?;
316 Any::call(_b754.clone(), [Array::default().to_any()].to_array().to_any())
317 }, 1, [_b51.clone(), _b52.clone(), _b61.clone(), runtime.clone()].to_array(), Some("($3)=>{const $4=$0(\"writeFile\",[$3+\"/f\",-3899222121n],$1);const $5=$4((()=>{const $6=$0(\"readBytes\",[$3+\"/f\",1,2],($7)=>$7===-59752n);return $6((()=>{const $8=$0(\"readBytes\",[$3+\"/f\",3,10],($9)=>$9===-233n);return $8((()=>{const $10=$0(\"readBytes\",[$3+\"/f\",9,4],($11)=>$11===0n);return $10((()=>{const $12=$0(\"readBytes\",[$3+\"/f\",0,0],($13)=>$13===0n);return $12((()=>{const $14=$0(\"readBytes\",[$3+\"/none\",0,1],$1);return $14((()=>{const $15=$0(\"readBytes\",[$3+\"/f\",-1,1],$1);return $15((()=>{const $16=$0(\"readBytes\",[$3+\"/f\",0,131073],$1);return $16((()=>{const $17=$0(\"readBytes\",[$3+\"/f\",0.5,1],$1);return $17($2);})());})());})());})());})());})());})());})());return $5([]);}")).to_any()), (string_key("expected"), [[string_any("ok"), Nullish::Null.to_any()].to_array().to_any(), [string_any("ok"), true.to_any()].to_array().to_any(), [string_any("ok"), true.to_any()].to_array().to_any(), [string_any("ok"), true.to_any()].to_array().to_any(), [string_any("ok"), true.to_any()].to_array().to_any(), [string_any("error"), string_any("ENOENT")].to_array().to_any(), [string_any("error"), Nullish::Null.to_any()].to_array().to_any(), [string_any("error"), Nullish::Null.to_any()].to_array().to_any(), [string_any("error"), Nullish::Null.to_any()].to_array().to_any()].to_array().to_any())].to_object().to_any()), (string_key("writeBytes"), [(string_key("run"), A::static_function(|_self, _args| {
318 let _b774: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("writeFile"), [(_args.argument(0) + string_any("/f"))?, bigint_any(-3899222121)].to_array().to_any(), A::frame(_self)[1].clone()].to_array().to_any()))?;
319 let _b791: Any<A> = (Any::call(_b774.clone(), [{
320 let _b777: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("writeBytes"), [(_args.argument(0) + string_any("/f"))?, f64_any(0x3ff0000000000000), bigint_any(-55898)].to_array().to_any(), A::frame(_self)[1].clone()].to_array().to_any()))?;
321 (Any::call(_b777.clone(), [{
322 let _b783: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("readFile"), [(_args.argument(0) + string_any("/f"))?].to_array().to_any(), A::static_function(|_self, _args| { strict_eq(_args.argument(0), bigint_any(-3898235497)) }, 1, [A::frame(_self)[3].clone()].to_array(), Some("($0)=>$0===-3898235497n")).to_any()].to_array().to_any()))?;
323 (Any::call(_b783.clone(), [{
324 let _b786: Any<A> = (Any::call(A::frame(_self)[0].clone(), [string_any("writeBytes"), [(_args.argument(0) + string_any("/none"))?, f64_any(0x0000000000000000), bigint_any(-59497)].to_array().to_any(), A::frame(_self)[1].clone()].to_array().to_any()))?;
325 (Any::call(_b786.clone(), [A::frame(_self)[2].clone()].to_array().to_any()))?
326 }].to_array().to_any()))?
327 }].to_array().to_any()))?
328 }].to_array().to_any()))?;
329 Any::call(_b791.clone(), [Array::default().to_any()].to_array().to_any())
330 }, 1, [_b51.clone(), _b52.clone(), _b61.clone(), runtime.clone()].to_array(), Some("($3)=>{const $4=$0(\"writeFile\",[$3+\"/f\",-3899222121n],$1);const $5=$4((()=>{const $6=$0(\"writeBytes\",[$3+\"/f\",1,-55898n],$1);return $6((()=>{const $7=$0(\"readFile\",[$3+\"/f\"],($8)=>$8===-3898235497n);return $7((()=>{const $9=$0(\"writeBytes\",[$3+\"/none\",0,-59497n],$1);return $9($2);})());})());})());return $5([]);}")).to_any()), (string_key("expected"), [[string_any("ok"), Nullish::Null.to_any()].to_array().to_any(), [string_any("ok"), Nullish::Null.to_any()].to_array().to_any(), [string_any("ok"), true.to_any()].to_array().to_any(), [string_any("error"), string_any("ENOENT")].to_array().to_any()].to_array().to_any())].to_object().to_any())].to_object().to_any())
331}