1 | 'use strict';
|
2 |
|
3 | function _inheritsLoose(subClass, superClass) {
|
4 | subClass.prototype = Object.create(superClass.prototype);
|
5 | subClass.prototype.constructor = subClass;
|
6 | subClass.__proto__ = superClass;
|
7 | }
|
8 |
|
9 | function _assertThisInitialized(self) {
|
10 | if (self === void 0) {
|
11 | throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
12 | }
|
13 |
|
14 | return self;
|
15 | }
|
16 |
|
17 | function _extends() {
|
18 | _extends = Object.assign || function (target) {
|
19 | for (var i = 1; i < arguments.length; i++) {
|
20 | var source = arguments[i];
|
21 |
|
22 | for (var key in source) {
|
23 | if (Object.prototype.hasOwnProperty.call(source, key)) {
|
24 | target[key] = source[key];
|
25 | }
|
26 | }
|
27 | }
|
28 |
|
29 | return target;
|
30 | };
|
31 |
|
32 | return _extends.apply(this, arguments);
|
33 | }
|
34 |
|
35 | function _objectWithoutPropertiesLoose(source, excluded) {
|
36 | if (source == null) return {};
|
37 | var target = {};
|
38 | var sourceKeys = Object.keys(source);
|
39 | var key, i;
|
40 |
|
41 | for (i = 0; i < sourceKeys.length; i++) {
|
42 | key = sourceKeys[i];
|
43 | if (excluded.indexOf(key) >= 0) continue;
|
44 | target[key] = source[key];
|
45 | }
|
46 |
|
47 | return target;
|
48 | }
|
49 |
|
50 | exports._assertThisInitialized = _assertThisInitialized;
|
51 | exports._extends = _extends;
|
52 | exports._inheritsLoose = _inheritsLoose;
|
53 | exports._objectWithoutPropertiesLoose = _objectWithoutPropertiesLoose;
|
54 |
|