//// [awaitUsingDeclarationsTopLevelOfModule.1.ts]
System.register([
    "@swc/helpers/_/_ts_add_disposable_resource",
    "@swc/helpers/_/_ts_dispose_resources"
], function(_export, _context) {
    var _ts_add_disposable_resource, _ts_dispose_resources, env, w, x, z;
    return _export({
        default: void 0,
        w: void 0,
        x: void 0,
        y: void 0
    }), {
        setters: [
            function(_ts_add_disposable_resource_ns) {
                _ts_add_disposable_resource = _ts_add_disposable_resource_ns._;
            },
            function(_ts_dispose_resources_ns) {
                _ts_dispose_resources = _ts_dispose_resources_ns._;
            }
        ],
        execute: async function() {
            env = {
                stack: [],
                error: void 0,
                hasError: !1
            };
            try {
                z = _ts_add_disposable_resource(env, {
                    async [Symbol.asyncDispose] () {}
                }, !0), _export("y", 2), console.log(w, x, 2, z);
            } catch (e) {
                env.error = e, env.hasError = !0;
            } finally{
                let result = _ts_dispose_resources(env);
                result && await result;
            }
            _export("x", x = 1), _export("w", w = 3), _export("default", 4);
        }
    };
});
