|
| 1 | +'use strict'; |
| 2 | + |
| 3 | +function _typeof(o) { |
| 4 | + '@babel/helpers - typeof'; |
| 5 | + return ( |
| 6 | + (_typeof = |
| 7 | + 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator |
| 8 | + ? function (o) { |
| 9 | + return typeof o; |
| 10 | + } |
| 11 | + : function (o) { |
| 12 | + return o && |
| 13 | + 'function' == typeof Symbol && |
| 14 | + o.constructor === Symbol && |
| 15 | + o !== Symbol.prototype |
| 16 | + ? 'symbol' |
| 17 | + : typeof o; |
| 18 | + }), |
| 19 | + _typeof(o) |
| 20 | + ); |
| 21 | +} |
| 22 | +Object.defineProperty(exports, '__esModule', { |
| 23 | + value: true, |
| 24 | +}); |
| 25 | +exports.Foo = void 0; |
| 26 | +function _defineProperties(target, props) { |
| 27 | + for (var i = 0; i < props.length; i++) { |
| 28 | + var descriptor = props[i]; |
| 29 | + descriptor.enumerable = descriptor.enumerable || false; |
| 30 | + descriptor.configurable = true; |
| 31 | + if ('value' in descriptor) descriptor.writable = true; |
| 32 | + Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); |
| 33 | + } |
| 34 | +} |
| 35 | +function _createClass(Constructor, protoProps, staticProps) { |
| 36 | + if (protoProps) _defineProperties(Constructor.prototype, protoProps); |
| 37 | + if (staticProps) _defineProperties(Constructor, staticProps); |
| 38 | + Object.defineProperty(Constructor, 'prototype', { writable: false }); |
| 39 | + return Constructor; |
| 40 | +} |
| 41 | +function _toPropertyKey(arg) { |
| 42 | + var key = _toPrimitive(arg, 'string'); |
| 43 | + return _typeof(key) === 'symbol' ? key : String(key); |
| 44 | +} |
| 45 | +function _toPrimitive(input, hint) { |
| 46 | + if (_typeof(input) !== 'object' || input === null) return input; |
| 47 | + var prim = input[Symbol.toPrimitive]; |
| 48 | + if (prim !== undefined) { |
| 49 | + var res = prim.call(input, hint || 'default'); |
| 50 | + if (_typeof(res) !== 'object') return res; |
| 51 | + throw new TypeError('@@toPrimitive must return a primitive value.'); |
| 52 | + } |
| 53 | + return (hint === 'string' ? String : Number)(input); |
| 54 | +} |
| 55 | +function _classCallCheck(instance, Constructor) { |
| 56 | + if (!(instance instanceof Constructor)) { |
| 57 | + throw new TypeError('Cannot call a class as a function'); |
| 58 | + } |
| 59 | +} |
| 60 | +var Foo = (exports.Foo = /*#__PURE__*/ _createClass(function Foo() { |
| 61 | + _classCallCheck(this, Foo); |
| 62 | +})); |
0 commit comments