설명 없음

inherits-c86d64c1.js 2.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. 'use strict';
  2. function _classCallCheck(instance, Constructor) {
  3. if (!(instance instanceof Constructor)) {
  4. throw new TypeError("Cannot call a class as a function");
  5. }
  6. }
  7. function _defineProperties(target, props) {
  8. for (var i = 0; i < props.length; i++) {
  9. var descriptor = props[i];
  10. descriptor.enumerable = descriptor.enumerable || false;
  11. descriptor.configurable = true;
  12. if ("value" in descriptor) descriptor.writable = true;
  13. Object.defineProperty(target, descriptor.key, descriptor);
  14. }
  15. }
  16. function _createClass(Constructor, protoProps, staticProps) {
  17. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  18. if (staticProps) _defineProperties(Constructor, staticProps);
  19. return Constructor;
  20. }
  21. function _typeof(obj) {
  22. "@babel/helpers - typeof";
  23. if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
  24. _typeof = function _typeof(obj) {
  25. return typeof obj;
  26. };
  27. } else {
  28. _typeof = function _typeof(obj) {
  29. return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
  30. };
  31. }
  32. return _typeof(obj);
  33. }
  34. function _assertThisInitialized(self) {
  35. if (self === void 0) {
  36. throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  37. }
  38. return self;
  39. }
  40. function _possibleConstructorReturn(self, call) {
  41. if (call && (_typeof(call) === "object" || typeof call === "function")) {
  42. return call;
  43. }
  44. return _assertThisInitialized(self);
  45. }
  46. function _getPrototypeOf(o) {
  47. _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
  48. return o.__proto__ || Object.getPrototypeOf(o);
  49. };
  50. return _getPrototypeOf(o);
  51. }
  52. function _setPrototypeOf(o, p) {
  53. _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
  54. o.__proto__ = p;
  55. return o;
  56. };
  57. return _setPrototypeOf(o, p);
  58. }
  59. function _inherits(subClass, superClass) {
  60. if (typeof superClass !== "function" && superClass !== null) {
  61. throw new TypeError("Super expression must either be null or a function");
  62. }
  63. subClass.prototype = Object.create(superClass && superClass.prototype, {
  64. constructor: {
  65. value: subClass,
  66. writable: true,
  67. configurable: true
  68. }
  69. });
  70. if (superClass) _setPrototypeOf(subClass, superClass);
  71. }
  72. exports._classCallCheck = _classCallCheck;
  73. exports._createClass = _createClass;
  74. exports._getPrototypeOf = _getPrototypeOf;
  75. exports._inherits = _inherits;
  76. exports._possibleConstructorReturn = _possibleConstructorReturn;
  77. exports._typeof = _typeof;
  78. //# sourceMappingURL=inherits-c86d64c1.js.map