//// [0.ts]
define([
    "require",
    "exports"
], function(require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", {
        value: true
    });
    Object.defineProperty(exports, "foo", {
        enumerable: true,
        get: function() {
            return foo;
        }
    });
    function foo() {
        return "foo";
    }
});
//// [1.ts]
define([
    "require",
    "exports",
    "@swc/helpers/_/_class_call_check",
    "@swc/helpers/_/_interop_require_wildcard"
], function(require, exports, _class_call_check, _interop_require_wildcard) {
    "use strict";
    Object.defineProperty(exports, "__esModule", {
        value: true
    });
    function _export(target, all) {
        for(var name in all)Object.defineProperty(target, name, {
            enumerable: true,
            get: Object.getOwnPropertyDescriptor(all, name).get
        });
    }
    _export(exports, {
        get D () {
            return D;
        },
        get p2 () {
            return p2;
        }
    });
    new Promise(function(resolve, reject) {
        return require([
            "./0"
        ], function(m) {
            return resolve(/*#__PURE__*/ _interop_require_wildcard._(m));
        }, reject);
    });
    var p1 = new Promise(function(resolve, reject) {
        return require([
            "./0"
        ], function(m) {
            return resolve(/*#__PURE__*/ _interop_require_wildcard._(m));
        }, reject);
    });
    p1.then(function(zero) {
        return zero.foo();
    });
    var p2 = new Promise(function(resolve, reject) {
        return require([
            "./0"
        ], function(m) {
            return resolve(/*#__PURE__*/ _interop_require_wildcard._(m));
        }, reject);
    });
    function foo() {
        var p2 = new Promise(function(resolve, reject) {
            return require([
                "./0"
            ], function(m) {
                return resolve(/*#__PURE__*/ _interop_require_wildcard._(m));
            }, reject);
        });
    }
    var C = /*#__PURE__*/ function() {
        "use strict";
        function C() {
            _class_call_check._(this, C);
        }
        var _proto = C.prototype;
        _proto.method = function method() {
            var loadAsync = new Promise(function(resolve, reject) {
                return require([
                    "./0"
                ], function(m) {
                    return resolve(/*#__PURE__*/ _interop_require_wildcard._(m));
                }, reject);
            });
        };
        return C;
    }();
    var D = /*#__PURE__*/ function() {
        "use strict";
        function D() {
            _class_call_check._(this, D);
        }
        var _proto = D.prototype;
        _proto.method = function method() {
            var loadAsync = new Promise(function(resolve, reject) {
                return require([
                    "./0"
                ], function(m) {
                    return resolve(/*#__PURE__*/ _interop_require_wildcard._(m));
                }, reject);
            });
        };
        return D;
    }();
});
