@2112-lab/central-plant 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle/index.js +1 -15498
- package/dist/cjs/_virtual/_rollupPluginBabelHelpers.js +1 -366
- package/dist/cjs/node_modules/@2112-lab/pathfinder/dist/index.esm.js +1 -1448
- package/dist/cjs/node_modules/three/examples/jsm/controls/OrbitControls.js +1 -1292
- package/dist/cjs/node_modules/three/examples/jsm/controls/TransformControls.js +1 -1543
- package/dist/cjs/node_modules/three/examples/jsm/loaders/GLTFLoader.js +1 -4374
- package/dist/cjs/node_modules/three/examples/jsm/loaders/RGBELoader.js +1 -465
- package/dist/cjs/node_modules/three/examples/jsm/utils/BufferGeometryUtils.js +1 -117
- package/dist/cjs/src/animationManager.js +1 -121
- package/dist/cjs/src/componentManager.js +1 -151
- package/dist/cjs/src/debugLogger.js +1 -176
- package/dist/cjs/src/disposalManager.js +1 -185
- package/dist/cjs/src/environmentManager.js +1 -1308
- package/dist/cjs/src/hotReloadManager.js +1 -252
- package/dist/cjs/src/index.js +1 -79
- package/dist/cjs/src/keyboardControlsManager.js +1 -206
- package/dist/cjs/src/nameUtils.js +1 -106
- package/dist/cjs/src/pathfindingManager.js +1 -503
- package/dist/cjs/src/performanceMonitor.js +1 -718
- package/dist/cjs/src/sceneExportManager.js +1 -292
- package/dist/cjs/src/sceneInitializationManager.js +1 -540
- package/dist/cjs/src/textureConfig.js +1 -624
- package/dist/cjs/src/transformControlsManager.js +1 -851
- package/dist/esm/_virtual/_rollupPluginBabelHelpers.js +1 -339
- package/dist/esm/node_modules/@2112-lab/pathfinder/dist/index.esm.js +1 -1444
- package/dist/esm/node_modules/three/examples/jsm/controls/OrbitControls.js +1 -1287
- package/dist/esm/node_modules/three/examples/jsm/controls/TransformControls.js +1 -1537
- package/dist/esm/node_modules/three/examples/jsm/loaders/GLTFLoader.js +1 -4370
- package/dist/esm/node_modules/three/examples/jsm/loaders/RGBELoader.js +1 -461
- package/dist/esm/node_modules/three/examples/jsm/utils/BufferGeometryUtils.js +1 -113
- package/dist/esm/src/animationManager.js +1 -112
- package/dist/esm/src/componentManager.js +1 -123
- package/dist/esm/src/debugLogger.js +1 -167
- package/dist/esm/src/disposalManager.js +1 -155
- package/dist/esm/src/environmentManager.js +1 -1282
- package/dist/esm/src/hotReloadManager.js +1 -244
- package/dist/esm/src/index.js +1 -70
- package/dist/esm/src/keyboardControlsManager.js +1 -196
- package/dist/esm/src/nameUtils.js +1 -99
- package/dist/esm/src/pathfindingManager.js +1 -479
- package/dist/esm/src/performanceMonitor.js +1 -712
- package/dist/esm/src/sceneExportManager.js +1 -286
- package/dist/esm/src/sceneInitializationManager.js +1 -513
- package/dist/esm/src/textureConfig.js +1 -595
- package/dist/esm/src/transformControlsManager.js +1 -827
- package/package.json +1 -1
|
@@ -1,366 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
function _arrayLikeToArray(r, a) {
|
|
6
|
-
(null == a || a > r.length) && (a = r.length);
|
|
7
|
-
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
8
|
-
return n;
|
|
9
|
-
}
|
|
10
|
-
function _arrayWithHoles(r) {
|
|
11
|
-
if (Array.isArray(r)) return r;
|
|
12
|
-
}
|
|
13
|
-
function _arrayWithoutHoles(r) {
|
|
14
|
-
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
15
|
-
}
|
|
16
|
-
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
17
|
-
try {
|
|
18
|
-
var i = n[a](c),
|
|
19
|
-
u = i.value;
|
|
20
|
-
} catch (n) {
|
|
21
|
-
return void e(n);
|
|
22
|
-
}
|
|
23
|
-
i.done ? t(u) : Promise.resolve(u).then(r, o);
|
|
24
|
-
}
|
|
25
|
-
function _asyncToGenerator(n) {
|
|
26
|
-
return function () {
|
|
27
|
-
var t = this,
|
|
28
|
-
e = arguments;
|
|
29
|
-
return new Promise(function (r, o) {
|
|
30
|
-
var a = n.apply(t, e);
|
|
31
|
-
function _next(n) {
|
|
32
|
-
asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
|
|
33
|
-
}
|
|
34
|
-
function _throw(n) {
|
|
35
|
-
asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
|
|
36
|
-
}
|
|
37
|
-
_next(void 0);
|
|
38
|
-
});
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
function _classCallCheck(a, n) {
|
|
42
|
-
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
43
|
-
}
|
|
44
|
-
function _construct(t, e, r) {
|
|
45
|
-
if (_isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
|
|
46
|
-
var o = [null];
|
|
47
|
-
o.push.apply(o, e);
|
|
48
|
-
var p = new (t.bind.apply(t, o))();
|
|
49
|
-
return r && _setPrototypeOf(p, r.prototype), p;
|
|
50
|
-
}
|
|
51
|
-
function _defineProperties(e, r) {
|
|
52
|
-
for (var t = 0; t < r.length; t++) {
|
|
53
|
-
var o = r[t];
|
|
54
|
-
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
function _createClass(e, r, t) {
|
|
58
|
-
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
|
|
59
|
-
writable: !1
|
|
60
|
-
}), e;
|
|
61
|
-
}
|
|
62
|
-
function _createForOfIteratorHelper(r, e) {
|
|
63
|
-
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
64
|
-
if (!t) {
|
|
65
|
-
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
|
|
66
|
-
t && (r = t);
|
|
67
|
-
var n = 0,
|
|
68
|
-
F = function () {};
|
|
69
|
-
return {
|
|
70
|
-
s: F,
|
|
71
|
-
n: function () {
|
|
72
|
-
return n >= r.length ? {
|
|
73
|
-
done: !0
|
|
74
|
-
} : {
|
|
75
|
-
done: !1,
|
|
76
|
-
value: r[n++]
|
|
77
|
-
};
|
|
78
|
-
},
|
|
79
|
-
e: function (r) {
|
|
80
|
-
throw r;
|
|
81
|
-
},
|
|
82
|
-
f: F
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
86
|
-
}
|
|
87
|
-
var o,
|
|
88
|
-
a = !0,
|
|
89
|
-
u = !1;
|
|
90
|
-
return {
|
|
91
|
-
s: function () {
|
|
92
|
-
t = t.call(r);
|
|
93
|
-
},
|
|
94
|
-
n: function () {
|
|
95
|
-
var r = t.next();
|
|
96
|
-
return a = r.done, r;
|
|
97
|
-
},
|
|
98
|
-
e: function (r) {
|
|
99
|
-
u = !0, o = r;
|
|
100
|
-
},
|
|
101
|
-
f: function () {
|
|
102
|
-
try {
|
|
103
|
-
a || null == t.return || t.return();
|
|
104
|
-
} finally {
|
|
105
|
-
if (u) throw o;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
};
|
|
109
|
-
}
|
|
110
|
-
function _defineProperty(e, r, t) {
|
|
111
|
-
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
112
|
-
value: t,
|
|
113
|
-
enumerable: !0,
|
|
114
|
-
configurable: !0,
|
|
115
|
-
writable: !0
|
|
116
|
-
}) : e[r] = t, e;
|
|
117
|
-
}
|
|
118
|
-
function _isNativeReflectConstruct() {
|
|
119
|
-
try {
|
|
120
|
-
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
121
|
-
} catch (t) {}
|
|
122
|
-
return (_isNativeReflectConstruct = function () {
|
|
123
|
-
return !!t;
|
|
124
|
-
})();
|
|
125
|
-
}
|
|
126
|
-
function _iterableToArray(r) {
|
|
127
|
-
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
128
|
-
}
|
|
129
|
-
function _iterableToArrayLimit(r, l) {
|
|
130
|
-
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
131
|
-
if (null != t) {
|
|
132
|
-
var e,
|
|
133
|
-
n,
|
|
134
|
-
i,
|
|
135
|
-
u,
|
|
136
|
-
a = [],
|
|
137
|
-
f = !0,
|
|
138
|
-
o = !1;
|
|
139
|
-
try {
|
|
140
|
-
if (i = (t = t.call(r)).next, 0 === l) {
|
|
141
|
-
if (Object(t) !== t) return;
|
|
142
|
-
f = !1;
|
|
143
|
-
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
144
|
-
} catch (r) {
|
|
145
|
-
o = !0, n = r;
|
|
146
|
-
} finally {
|
|
147
|
-
try {
|
|
148
|
-
if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
|
|
149
|
-
} finally {
|
|
150
|
-
if (o) throw n;
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
return a;
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
function _nonIterableRest() {
|
|
157
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
158
|
-
}
|
|
159
|
-
function _nonIterableSpread() {
|
|
160
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
161
|
-
}
|
|
162
|
-
function ownKeys(e, r) {
|
|
163
|
-
var t = Object.keys(e);
|
|
164
|
-
if (Object.getOwnPropertySymbols) {
|
|
165
|
-
var o = Object.getOwnPropertySymbols(e);
|
|
166
|
-
r && (o = o.filter(function (r) {
|
|
167
|
-
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
168
|
-
})), t.push.apply(t, o);
|
|
169
|
-
}
|
|
170
|
-
return t;
|
|
171
|
-
}
|
|
172
|
-
function _objectSpread2(e) {
|
|
173
|
-
for (var r = 1; r < arguments.length; r++) {
|
|
174
|
-
var t = null != arguments[r] ? arguments[r] : {};
|
|
175
|
-
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
|
|
176
|
-
_defineProperty(e, r, t[r]);
|
|
177
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
178
|
-
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
179
|
-
});
|
|
180
|
-
}
|
|
181
|
-
return e;
|
|
182
|
-
}
|
|
183
|
-
function _regenerator() {
|
|
184
|
-
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
185
|
-
var e,
|
|
186
|
-
t,
|
|
187
|
-
r = "function" == typeof Symbol ? Symbol : {},
|
|
188
|
-
n = r.iterator || "@@iterator",
|
|
189
|
-
o = r.toStringTag || "@@toStringTag";
|
|
190
|
-
function i(r, n, o, i) {
|
|
191
|
-
var c = n && n.prototype instanceof Generator ? n : Generator,
|
|
192
|
-
u = Object.create(c.prototype);
|
|
193
|
-
return _regeneratorDefine(u, "_invoke", function (r, n, o) {
|
|
194
|
-
var i,
|
|
195
|
-
c,
|
|
196
|
-
u,
|
|
197
|
-
f = 0,
|
|
198
|
-
p = o || [],
|
|
199
|
-
y = !1,
|
|
200
|
-
G = {
|
|
201
|
-
p: 0,
|
|
202
|
-
n: 0,
|
|
203
|
-
v: e,
|
|
204
|
-
a: d,
|
|
205
|
-
f: d.bind(e, 4),
|
|
206
|
-
d: function (t, r) {
|
|
207
|
-
return i = t, c = 0, u = e, G.n = r, a;
|
|
208
|
-
}
|
|
209
|
-
};
|
|
210
|
-
function d(r, n) {
|
|
211
|
-
for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) {
|
|
212
|
-
var o,
|
|
213
|
-
i = p[t],
|
|
214
|
-
d = G.p,
|
|
215
|
-
l = i[2];
|
|
216
|
-
r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0));
|
|
217
|
-
}
|
|
218
|
-
if (o || r > 1) return a;
|
|
219
|
-
throw y = !0, n;
|
|
220
|
-
}
|
|
221
|
-
return function (o, p, l) {
|
|
222
|
-
if (f > 1) throw TypeError("Generator is already running");
|
|
223
|
-
for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) {
|
|
224
|
-
i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u);
|
|
225
|
-
try {
|
|
226
|
-
if (f = 2, i) {
|
|
227
|
-
if (c || (o = "next"), t = i[o]) {
|
|
228
|
-
if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object");
|
|
229
|
-
if (!t.done) return t;
|
|
230
|
-
u = t.value, c < 2 && (c = 0);
|
|
231
|
-
} else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1);
|
|
232
|
-
i = e;
|
|
233
|
-
} else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break;
|
|
234
|
-
} catch (t) {
|
|
235
|
-
i = e, c = 1, u = t;
|
|
236
|
-
} finally {
|
|
237
|
-
f = 1;
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
return {
|
|
241
|
-
value: t,
|
|
242
|
-
done: y
|
|
243
|
-
};
|
|
244
|
-
};
|
|
245
|
-
}(r, o, i), !0), u;
|
|
246
|
-
}
|
|
247
|
-
var a = {};
|
|
248
|
-
function Generator() {}
|
|
249
|
-
function GeneratorFunction() {}
|
|
250
|
-
function GeneratorFunctionPrototype() {}
|
|
251
|
-
t = Object.getPrototypeOf;
|
|
252
|
-
var c = [][n] ? t(t([][n]())) : (_regeneratorDefine(t = {}, n, function () {
|
|
253
|
-
return this;
|
|
254
|
-
}), t),
|
|
255
|
-
u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c);
|
|
256
|
-
function f(e) {
|
|
257
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e;
|
|
258
|
-
}
|
|
259
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine(u), _regeneratorDefine(u, o, "Generator"), _regeneratorDefine(u, n, function () {
|
|
260
|
-
return this;
|
|
261
|
-
}), _regeneratorDefine(u, "toString", function () {
|
|
262
|
-
return "[object Generator]";
|
|
263
|
-
}), (_regenerator = function () {
|
|
264
|
-
return {
|
|
265
|
-
w: i,
|
|
266
|
-
m: f
|
|
267
|
-
};
|
|
268
|
-
})();
|
|
269
|
-
}
|
|
270
|
-
function _regeneratorDefine(e, r, n, t) {
|
|
271
|
-
var i = Object.defineProperty;
|
|
272
|
-
try {
|
|
273
|
-
i({}, "", {});
|
|
274
|
-
} catch (e) {
|
|
275
|
-
i = 0;
|
|
276
|
-
}
|
|
277
|
-
_regeneratorDefine = function (e, r, n, t) {
|
|
278
|
-
if (r) i ? i(e, r, {
|
|
279
|
-
value: n,
|
|
280
|
-
enumerable: !t,
|
|
281
|
-
configurable: !t,
|
|
282
|
-
writable: !t
|
|
283
|
-
}) : e[r] = n;else {
|
|
284
|
-
function o(r, n) {
|
|
285
|
-
_regeneratorDefine(e, r, function (e) {
|
|
286
|
-
return this._invoke(r, n, e);
|
|
287
|
-
});
|
|
288
|
-
}
|
|
289
|
-
o("next", 0), o("throw", 1), o("return", 2);
|
|
290
|
-
}
|
|
291
|
-
}, _regeneratorDefine(e, r, n, t);
|
|
292
|
-
}
|
|
293
|
-
function _regeneratorValues(e) {
|
|
294
|
-
if (null != e) {
|
|
295
|
-
var t = e["function" == typeof Symbol && Symbol.iterator || "@@iterator"],
|
|
296
|
-
r = 0;
|
|
297
|
-
if (t) return t.call(e);
|
|
298
|
-
if ("function" == typeof e.next) return e;
|
|
299
|
-
if (!isNaN(e.length)) return {
|
|
300
|
-
next: function () {
|
|
301
|
-
return e && r >= e.length && (e = void 0), {
|
|
302
|
-
value: e && e[r++],
|
|
303
|
-
done: !e
|
|
304
|
-
};
|
|
305
|
-
}
|
|
306
|
-
};
|
|
307
|
-
}
|
|
308
|
-
throw new TypeError(typeof e + " is not iterable");
|
|
309
|
-
}
|
|
310
|
-
function _setPrototypeOf(t, e) {
|
|
311
|
-
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
312
|
-
return t.__proto__ = e, t;
|
|
313
|
-
}, _setPrototypeOf(t, e);
|
|
314
|
-
}
|
|
315
|
-
function _slicedToArray(r, e) {
|
|
316
|
-
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
317
|
-
}
|
|
318
|
-
function _toConsumableArray(r) {
|
|
319
|
-
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
320
|
-
}
|
|
321
|
-
function _toPrimitive(t, r) {
|
|
322
|
-
if ("object" != typeof t || !t) return t;
|
|
323
|
-
var e = t[Symbol.toPrimitive];
|
|
324
|
-
if (void 0 !== e) {
|
|
325
|
-
var i = e.call(t, r || "default");
|
|
326
|
-
if ("object" != typeof i) return i;
|
|
327
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
328
|
-
}
|
|
329
|
-
return ("string" === r ? String : Number)(t);
|
|
330
|
-
}
|
|
331
|
-
function _toPropertyKey(t) {
|
|
332
|
-
var i = _toPrimitive(t, "string");
|
|
333
|
-
return "symbol" == typeof i ? i : i + "";
|
|
334
|
-
}
|
|
335
|
-
function _unsupportedIterableToArray(r, a) {
|
|
336
|
-
if (r) {
|
|
337
|
-
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
338
|
-
var t = {}.toString.call(r).slice(8, -1);
|
|
339
|
-
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
exports.arrayLikeToArray = _arrayLikeToArray;
|
|
344
|
-
exports.arrayWithHoles = _arrayWithHoles;
|
|
345
|
-
exports.arrayWithoutHoles = _arrayWithoutHoles;
|
|
346
|
-
exports.asyncToGenerator = _asyncToGenerator;
|
|
347
|
-
exports.classCallCheck = _classCallCheck;
|
|
348
|
-
exports.construct = _construct;
|
|
349
|
-
exports.createClass = _createClass;
|
|
350
|
-
exports.createForOfIteratorHelper = _createForOfIteratorHelper;
|
|
351
|
-
exports.defineProperty = _defineProperty;
|
|
352
|
-
exports.isNativeReflectConstruct = _isNativeReflectConstruct;
|
|
353
|
-
exports.iterableToArray = _iterableToArray;
|
|
354
|
-
exports.iterableToArrayLimit = _iterableToArrayLimit;
|
|
355
|
-
exports.nonIterableRest = _nonIterableRest;
|
|
356
|
-
exports.nonIterableSpread = _nonIterableSpread;
|
|
357
|
-
exports.objectSpread2 = _objectSpread2;
|
|
358
|
-
exports.regenerator = _regenerator;
|
|
359
|
-
exports.regeneratorDefine = _regeneratorDefine;
|
|
360
|
-
exports.regeneratorValues = _regeneratorValues;
|
|
361
|
-
exports.setPrototypeOf = _setPrototypeOf;
|
|
362
|
-
exports.slicedToArray = _slicedToArray;
|
|
363
|
-
exports.toConsumableArray = _toConsumableArray;
|
|
364
|
-
exports.toPrimitive = _toPrimitive;
|
|
365
|
-
exports.toPropertyKey = _toPropertyKey;
|
|
366
|
-
exports.unsupportedIterableToArray = _unsupportedIterableToArray;
|
|
1
|
+
"use strict";function t(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,e=Array(r);n<r;n++)e[n]=t[n];return e}function r(t){if(Array.isArray(t))return t}function n(r){if(Array.isArray(r))return t(r)}function e(t,r,n,e,o,i,u){try{var f=t[i](u),c=f.value}catch(t){return void n(t)}f.done?r(c):Promise.resolve(c).then(e,o)}function o(t,r){for(var n=0;n<r.length;n++){var e=r[n];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(t,m(e.key),e)}}function i(t,r,n){return(r=m(r))in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}function u(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(u=function(){return!!t})()}function f(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function c(t,r){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var e,o,i,u,f=[],c=!0,a=!1;try{if(i=(n=n.call(t)).next,0===r){if(Object(n)!==n)return;c=!1}else for(;!(c=(e=i.call(n)).done)&&(f.push(e.value),f.length!==r);c=!0);}catch(t){a=!0,o=t}finally{try{if(!c&&null!=n.return&&(u=n.return(),Object(u)!==u))return}finally{if(a)throw o}}return f}}function a(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);r&&(e=e.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,e)}return n}function b(){var t,r,n="function"==typeof Symbol?Symbol:{},e=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,e,o,i){var c=e&&e.prototype instanceof f?e:f,a=Object.create(c.prototype);return y(a,"_invoke",function(n,e,o){var i,f,c,a=0,l=o||[],s=!1,b={p:0,n:0,v:t,a:y,f:y.bind(t,4),d:function(r,n){return i=r,f=0,c=t,b.n=n,u}};function y(n,e){for(f=n,c=e,r=0;!s&&a&&!o&&r<l.length;r++){var o,i=l[r],y=b.p,p=i[2];n>3?(o=p===e)&&(c=i[(f=i[4])?5:(f=3,3)],i[4]=i[5]=t):i[0]<=y&&((o=n<2&&y<i[1])?(f=0,b.v=e,b.n=i[1]):y<p&&(o=n<3||i[0]>e||e>p)&&(i[4]=n,i[5]=e,b.n=p,f=0))}if(o||n>1)return u;throw s=!0,e}return function(o,l,p){if(a>1)throw TypeError("Generator is already running");for(s&&1===l&&y(l,p),f=l,c=p;(r=f<2?t:c)||!s;){i||(f?f<3?(f>1&&(b.n=-1),y(f,c)):b.n=c:b.v=c);try{if(a=2,i){if(f||(o="next"),r=i[o]){if(!(r=r.call(i,c)))throw TypeError("iterator result is not an object");if(!r.done)return r;c=r.value,f<2&&(f=0)}else 1===f&&(r=i.return)&&r.call(i),f<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),f=1);i=t}else if((r=(s=b.n<0)?c:n.call(e,b))!==u)break}catch(r){i=t,f=1,c=r}finally{a=1}}return{value:r,done:s}}}(n,o,i),!0),a}var u={};function f(){}function c(){}function a(){}r=Object.getPrototypeOf;var l=[][e]?r(r([][e]())):(y(r={},e,function(){return this}),r),s=a.prototype=f.prototype=Object.create(l);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,a):(t.__proto__=a,y(t,o,"GeneratorFunction")),t.prototype=Object.create(s),t}return c.prototype=a,y(s,"constructor",a),y(a,"constructor",c),c.displayName="GeneratorFunction",y(a,o,"GeneratorFunction"),y(s),y(s,o,"Generator"),y(s,e,function(){return this}),y(s,"toString",function(){return"[object Generator]"}),(b=function(){return{w:i,m:p}})()}function y(t,r,n,e){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}y=function(t,r,n,e){if(r)o?o(t,r,{value:n,enumerable:!e,configurable:!e,writable:!e}):t[r]=n;else{function i(r,n){y(t,r,function(t){return this.t(r,n,t)})}i("next",0),i("throw",1),i("return",2)}},y(t,r,n,e)}function p(t,r){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},p(t,r)}function v(t,r){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,r||"default");if("object"!=typeof e)return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}function m(t){var r=v(t,"string");return"symbol"==typeof r?r:r+""}function d(r,n){if(r){if("string"==typeof r)return t(r,n);var e={}.toString.call(r).slice(8,-1);return"Object"===e&&r.constructor&&(e=r.constructor.name),"Map"===e||"Set"===e?Array.from(r):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?t(r,n):void 0}}Object.defineProperty(exports,"o",{value:!0}),exports.arrayLikeToArray=t,exports.arrayWithHoles=r,exports.arrayWithoutHoles=n,exports.asyncToGenerator=function(t){return function(){var r=this,n=arguments;return new Promise(function(o,i){var u=t.apply(r,n);function f(t){e(u,o,i,f,c,"next",t)}function c(t){e(u,o,i,f,c,"throw",t)}f(void 0)})}},exports.classCallCheck=function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")},exports.construct=function(t,r,n){if(u())return Reflect.construct.apply(null,arguments);var e=[null];e.push.apply(e,r);var o=new(t.bind.apply(t,e));return n&&p(o,n.prototype),o},exports.createClass=function(t,r,n){return r&&o(t.prototype,r),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t},exports.createForOfIteratorHelper=function(t,r){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=d(t))||r&&t&&"number"==typeof t.length){n&&(t=n);var e=0,o=function(){};return{s:o,n:function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,f=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return u=t.done,t},e:function(t){f=!0,i=t},f:function(){try{u||null==n.return||n.return()}finally{if(f)throw i}}}},exports.defineProperty=i,exports.isNativeReflectConstruct=u,exports.iterableToArray=f,exports.iterableToArrayLimit=c,exports.nonIterableRest=a,exports.nonIterableSpread=l,exports.objectSpread2=function(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?s(Object(n),!0).forEach(function(r){i(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t},exports.regenerator=b,exports.regeneratorDefine=y,exports.regeneratorValues=function(t){if(null!=t){var r=t["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}throw new TypeError(typeof t+" is not iterable")},exports.setPrototypeOf=p,exports.slicedToArray=function(t,n){return r(t)||c(t,n)||d(t,n)||a()},exports.toConsumableArray=function(t){return n(t)||f(t)||d(t)||l()},exports.toPrimitive=v,exports.toPropertyKey=m,exports.unsupportedIterableToArray=d;
|