| 1 |
import _createClass from "@babel/runtime/helpers/esm/createClass"; |
| 2 |
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck"; |
| 3 |
import _inherits from "@babel/runtime/helpers/esm/inherits"; |
| 4 |
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn"; |
| 5 |
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf"; |
| 6 |
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } |
| 7 |
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } |
| 8 |
let Foo = /*#__PURE__*/function (_Bar) { |
| 9 |
_inherits(Foo, _Bar); |
| 10 |
var _super = _createSuper(Foo); |
| 11 |
function Foo() { |
| 12 |
_classCallCheck(this, Foo); |
| 13 |
return _super.apply(this, arguments); |
| 14 |
} |
| 15 |
return _createClass(Foo); |
| 16 |
}(Bar); |