@cclr/utils 1.0.0

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/lib/index.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './src';
package/lib/index.js ADDED
@@ -0,0 +1,918 @@
1
+ (function webpackUniversalModuleDefinition(root, factory) {
2
+ if(typeof exports === 'object' && typeof module === 'object')
3
+ module.exports = factory();
4
+ else if(typeof define === 'function' && define.amd)
5
+ define([], factory);
6
+ else if(typeof exports === 'object')
7
+ exports["Utils"] = factory();
8
+ else
9
+ root["Utils"] = factory();
10
+ })(self, () => {
11
+ return /******/ (() => { // webpackBootstrap
12
+ /******/ var __webpack_modules__ = ({
13
+
14
+ /***/ 286:
15
+ /***/ (function(module, exports, __webpack_require__) {
16
+
17
+ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) {
18
+ if (true) {
19
+ !(__WEBPACK_AMD_DEFINE_ARRAY__ = [exports, __webpack_require__(602)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
20
+ __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
21
+ (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
22
+ __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
23
+ } else { var mod; }
24
+ })(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports, _src) {
25
+ "use strict";
26
+
27
+ Object.defineProperty(_exports, "__esModule", {
28
+ value: true
29
+ });
30
+ Object.keys(_src).forEach(function (key) {
31
+ if (key === "default" || key === "__esModule") return;
32
+ if (key in _exports && _exports[key] === _src[key]) return;
33
+ Object.defineProperty(_exports, key, {
34
+ enumerable: true,
35
+ get: function get() {
36
+ return _src[key];
37
+ }
38
+ });
39
+ });
40
+ });
41
+
42
+ /***/ }),
43
+
44
+ /***/ 600:
45
+ /***/ (function(module, exports, __webpack_require__) {
46
+
47
+ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) {
48
+ if (true) {
49
+ !(__WEBPACK_AMD_DEFINE_ARRAY__ = [exports, __webpack_require__(228), __webpack_require__(659)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
50
+ __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
51
+ (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
52
+ __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
53
+ } else { var mod; }
54
+ })(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports, _typeof2, _valType) {
55
+ "use strict";
56
+
57
+ var _interopRequireDefault = __webpack_require__(89);
58
+ Object.defineProperty(_exports, "__esModule", {
59
+ value: true
60
+ });
61
+ _exports.getParamType = getParamType;
62
+ _exports.isArray = isArray;
63
+ _exports.isBoolean = isBoolean;
64
+ _exports.isFunction = isFunction;
65
+ _exports.isPlainObject = isPlainObject;
66
+ _exports.isString = isString;
67
+ _exports.isType = isType;
68
+ _typeof2 = _interopRequireDefault(_typeof2);
69
+ /**
70
+ * 获取参数类型
71
+ * @param p 参数
72
+ * @returns
73
+ */
74
+ function getParamType(p) {
75
+ return _valType.VAL_TYPE[(0, _typeof2["default"])(p)] || _valType.VAL_TYPE[Object.prototype.toString.call(p)] || (p ? "object" : "null");
76
+ }
77
+ function isType(params, type) {
78
+ return getParamType(params) === type;
79
+ }
80
+ function isString(s) {
81
+ return getParamType(s) === "string";
82
+ }
83
+ function isBoolean(b) {
84
+ return getParamType(b) === "boolean";
85
+ }
86
+ function isFunction(b) {
87
+ return getParamType(b) === "function";
88
+ }
89
+ function isPlainObject(b) {
90
+ return getParamType(b) === "object";
91
+ }
92
+ function isArray(a) {
93
+ return Array.isArray(a);
94
+ }
95
+ });
96
+
97
+ /***/ }),
98
+
99
+ /***/ 25:
100
+ /***/ (function(module, exports, __webpack_require__) {
101
+
102
+ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) {
103
+ if (true) {
104
+ !(__WEBPACK_AMD_DEFINE_ARRAY__ = [exports, __webpack_require__(418), __webpack_require__(118), __webpack_require__(938), __webpack_require__(936), __webpack_require__(408), __webpack_require__(277)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
105
+ __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
106
+ (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
107
+ __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
108
+ } else { var mod; }
109
+ })(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports, _inherits2, _possibleConstructorReturn2, _getPrototypeOf2, _slicedToArray2, _classCallCheck2, _createClass2) {
110
+ "use strict";
111
+
112
+ var _interopRequireDefault = __webpack_require__(89);
113
+ Object.defineProperty(_exports, "__esModule", {
114
+ value: true
115
+ });
116
+ _exports.EventFree = _exports.EventBase = _exports.Event = void 0;
117
+ _inherits2 = _interopRequireDefault(_inherits2);
118
+ _possibleConstructorReturn2 = _interopRequireDefault(_possibleConstructorReturn2);
119
+ _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf2);
120
+ _slicedToArray2 = _interopRequireDefault(_slicedToArray2);
121
+ _classCallCheck2 = _interopRequireDefault(_classCallCheck2);
122
+ _createClass2 = _interopRequireDefault(_createClass2);
123
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
124
+ 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; } }
125
+ var EventBase = /*#__PURE__*/function () {
126
+ function EventBase(eventMap) {
127
+ var _this = this;
128
+ (0, _classCallCheck2["default"])(this, EventBase);
129
+ this.handlers = {};
130
+ if (!eventMap) return;
131
+ Object.entries(eventMap).forEach(function (_ref) {
132
+ var _ref2 = (0, _slicedToArray2["default"])(_ref, 2),
133
+ key = _ref2[0],
134
+ handle = _ref2[1];
135
+ _this.handlers[key] = [handle];
136
+ });
137
+ }
138
+ (0, _createClass2["default"])(EventBase, [{
139
+ key: "on",
140
+ value: function on(eventName, handler) {
141
+ var _a;
142
+ var _b;
143
+ (_a = (_b = this.handlers)[eventName]) !== null && _a !== void 0 ? _a : _b[eventName] = [];
144
+ this.handlers[eventName].push(handler);
145
+ }
146
+ }, {
147
+ key: "off",
148
+ value: function off(eventName, handler) {
149
+ var eventHandlers = this.handlers[eventName];
150
+ if (eventHandlers) {
151
+ var index = eventHandlers.indexOf(handler);
152
+ if (index !== -1) {
153
+ eventHandlers.splice(index, 1);
154
+ }
155
+ }
156
+ }
157
+ }, {
158
+ key: "emit",
159
+ value: function emit(eventName) {
160
+ for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
161
+ args[_key - 1] = arguments[_key];
162
+ }
163
+ var _a;
164
+ (_a = this.handlers[eventName]) === null || _a === void 0 ? void 0 : _a.forEach(function (handler) {
165
+ handler.apply(void 0, args);
166
+ });
167
+ }
168
+ }]);
169
+ return EventBase;
170
+ }();
171
+ _exports.EventBase = EventBase;
172
+ var Event = /*#__PURE__*/function (_EventBase) {
173
+ (0, _inherits2["default"])(Event, _EventBase);
174
+ var _super = _createSuper(Event);
175
+ function Event() {
176
+ (0, _classCallCheck2["default"])(this, Event);
177
+ return _super.apply(this, arguments);
178
+ }
179
+ return (0, _createClass2["default"])(Event);
180
+ }(EventBase);
181
+ _exports.Event = Event;
182
+ var EventFree = /*#__PURE__*/function (_EventBase2) {
183
+ (0, _inherits2["default"])(EventFree, _EventBase2);
184
+ var _super2 = _createSuper(EventFree);
185
+ function EventFree() {
186
+ (0, _classCallCheck2["default"])(this, EventFree);
187
+ return _super2.apply(this, arguments);
188
+ }
189
+ return (0, _createClass2["default"])(EventFree);
190
+ }(EventBase);
191
+ _exports.EventFree = EventFree;
192
+ });
193
+
194
+ /***/ }),
195
+
196
+ /***/ 695:
197
+ /***/ (function(module, exports, __webpack_require__) {
198
+
199
+ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) {
200
+ if (true) {
201
+ !(__WEBPACK_AMD_DEFINE_ARRAY__ = [exports, __webpack_require__(936), __webpack_require__(659), __webpack_require__(600)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
202
+ __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
203
+ (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
204
+ __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
205
+ } else { var mod; }
206
+ })(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports, _slicedToArray2, _valType, _averType) {
207
+ "use strict";
208
+
209
+ var _interopRequireDefault = __webpack_require__(89);
210
+ Object.defineProperty(_exports, "__esModule", {
211
+ value: true
212
+ });
213
+ _exports.formatObj = formatObj;
214
+ _slicedToArray2 = _interopRequireDefault(_slicedToArray2);
215
+ function formatObj(o, maps) {
216
+ var resetRes = {};
217
+ maps.forEach(function (_ref) {
218
+ var _ref2 = (0, _slicedToArray2["default"])(_ref, 3),
219
+ key = _ref2[0],
220
+ type = _ref2[1],
221
+ defaultValue = _ref2[2];
222
+ if (!(0, _averType.isType)(o[key], type)) {
223
+ if ((0, _averType.isFunction)(defaultValue) && type !== "function") {
224
+ defaultValue = defaultValue();
225
+ }
226
+ resetRes[key] = defaultValue || _valType.defaultValueMap[type];
227
+ }
228
+ });
229
+ return Object.assign(Object.assign({}, o), resetRes);
230
+ }
231
+ });
232
+
233
+ /***/ }),
234
+
235
+ /***/ 602:
236
+ /***/ (function(module, exports, __webpack_require__) {
237
+
238
+ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(228);
239
+ (function (global, factory) {
240
+ if (true) {
241
+ !(__WEBPACK_AMD_DEFINE_ARRAY__ = [exports, __webpack_require__(25), __webpack_require__(600), __webpack_require__(695), __webpack_require__(163)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
242
+ __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
243
+ (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
244
+ __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
245
+ } else { var mod; }
246
+ })(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports, _event, _averType, _format, _obj) {
247
+ "use strict";
248
+
249
+ Object.defineProperty(_exports, "__esModule", {
250
+ value: true
251
+ });
252
+ var _exportNames = {
253
+ obj: true
254
+ };
255
+ _exports.obj = void 0;
256
+ Object.keys(_event).forEach(function (key) {
257
+ if (key === "default" || key === "__esModule") return;
258
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
259
+ if (key in _exports && _exports[key] === _event[key]) return;
260
+ Object.defineProperty(_exports, key, {
261
+ enumerable: true,
262
+ get: function get() {
263
+ return _event[key];
264
+ }
265
+ });
266
+ });
267
+ Object.keys(_averType).forEach(function (key) {
268
+ if (key === "default" || key === "__esModule") return;
269
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
270
+ if (key in _exports && _exports[key] === _averType[key]) return;
271
+ Object.defineProperty(_exports, key, {
272
+ enumerable: true,
273
+ get: function get() {
274
+ return _averType[key];
275
+ }
276
+ });
277
+ });
278
+ Object.keys(_format).forEach(function (key) {
279
+ if (key === "default" || key === "__esModule") return;
280
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
281
+ if (key in _exports && _exports[key] === _format[key]) return;
282
+ Object.defineProperty(_exports, key, {
283
+ enumerable: true,
284
+ get: function get() {
285
+ return _format[key];
286
+ }
287
+ });
288
+ });
289
+ _obj = _interopRequireWildcard(_obj);
290
+ _exports.obj = _obj;
291
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
292
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
293
+ });
294
+
295
+ /***/ }),
296
+
297
+ /***/ 163:
298
+ /***/ (function(module, exports) {
299
+
300
+ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) {
301
+ if (true) {
302
+ !(__WEBPACK_AMD_DEFINE_ARRAY__ = [exports], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
303
+ __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
304
+ (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
305
+ __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
306
+ } else { var mod; }
307
+ })(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports) {
308
+ "use strict";
309
+
310
+ Object.defineProperty(_exports, "__esModule", {
311
+ value: true
312
+ });
313
+ _exports.objPick = void 0;
314
+ /**
315
+ * 对象挑选
316
+ * @param obj
317
+ * @param keys
318
+ * @returns
319
+ */
320
+ var objPick = function objPick(obj, keys) {
321
+ return keys.reduce(function (pre, key) {
322
+ var val = obj[key];
323
+ if (val) {
324
+ pre[key] = val;
325
+ }
326
+ return pre;
327
+ }, {});
328
+ };
329
+ _exports.objPick = objPick;
330
+ });
331
+
332
+ /***/ }),
333
+
334
+ /***/ 659:
335
+ /***/ (function(module, exports) {
336
+
337
+ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) {
338
+ if (true) {
339
+ !(__WEBPACK_AMD_DEFINE_ARRAY__ = [exports], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
340
+ __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
341
+ (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
342
+ __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
343
+ } else { var mod; }
344
+ })(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports) {
345
+ "use strict";
346
+
347
+ Object.defineProperty(_exports, "__esModule", {
348
+ value: true
349
+ });
350
+ _exports.defaultValueMap = _exports.VAL_TYPE = void 0;
351
+ var VAL_TYPE = {
352
+ "boolean": "boolean",
353
+ undefined: "undefined",
354
+ number: "undefined",
355
+ string: "string",
356
+ "null": "null",
357
+ "[object Object]": "object",
358
+ "[object Function]": "function",
359
+ "[object RegExp]": "regexp",
360
+ "[object Array]": "array",
361
+ "[object Date]": "date",
362
+ "[object Error]": "error",
363
+ "[object Blob]": "blob",
364
+ "[object File]": "file",
365
+ "[object ArrayBuffer]": "arrayBuffer"
366
+ };
367
+ _exports.VAL_TYPE = VAL_TYPE;
368
+ var defaultValueMap = {
369
+ "boolean": false,
370
+ undefined: undefined,
371
+ number: 0,
372
+ string: "",
373
+ "null": null,
374
+ object: {},
375
+ "function": function _function() {},
376
+ regexp: /^.*$/,
377
+ array: [],
378
+ arrayBuffer: new ArrayBuffer(4)
379
+ };
380
+ // 只有需要使用时才创建
381
+ _exports.defaultValueMap = defaultValueMap;
382
+ var dateObj;
383
+ var errorObj;
384
+ var blobObj;
385
+ var fileObj;
386
+ Object.defineProperty(defaultValueMap, "date", {
387
+ get: function get() {
388
+ if (!dateObj) {
389
+ dateObj = new Date();
390
+ }
391
+ return dateObj;
392
+ }
393
+ });
394
+ Object.defineProperty(defaultValueMap, "error", {
395
+ get: function get() {
396
+ if (!errorObj) {
397
+ errorObj = new Error();
398
+ }
399
+ return errorObj;
400
+ }
401
+ });
402
+ Object.defineProperty(defaultValueMap, "blob", {
403
+ get: function get() {
404
+ if (!blobObj) {
405
+ blobObj = new Blob([]);
406
+ }
407
+ return blobObj;
408
+ }
409
+ });
410
+ Object.defineProperty(defaultValueMap, "file", {
411
+ get: function get() {
412
+ if (!fileObj) {
413
+ fileObj = new File([], "file");
414
+ }
415
+ return fileObj;
416
+ }
417
+ });
418
+ });
419
+
420
+ /***/ }),
421
+
422
+ /***/ 83:
423
+ /***/ (function(module, exports) {
424
+
425
+ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) {
426
+ if (true) {
427
+ !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
428
+ __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
429
+ (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
430
+ __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
431
+ } else { var mod; }
432
+ })(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function () {
433
+ "use strict";
434
+
435
+ function _arrayLikeToArray(arr, len) {
436
+ if (len == null || len > arr.length) len = arr.length;
437
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
438
+ return arr2;
439
+ }
440
+ module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
441
+ });
442
+
443
+ /***/ }),
444
+
445
+ /***/ 761:
446
+ /***/ (function(module, exports) {
447
+
448
+ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) {
449
+ if (true) {
450
+ !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
451
+ __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
452
+ (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
453
+ __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
454
+ } else { var mod; }
455
+ })(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function () {
456
+ "use strict";
457
+
458
+ function _arrayWithHoles(arr) {
459
+ if (Array.isArray(arr)) return arr;
460
+ }
461
+ module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
462
+ });
463
+
464
+ /***/ }),
465
+
466
+ /***/ 951:
467
+ /***/ (function(module, exports) {
468
+
469
+ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) {
470
+ if (true) {
471
+ !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
472
+ __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
473
+ (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
474
+ __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
475
+ } else { var mod; }
476
+ })(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function () {
477
+ "use strict";
478
+
479
+ function _assertThisInitialized(self) {
480
+ if (self === void 0) {
481
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
482
+ }
483
+ return self;
484
+ }
485
+ module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports;
486
+ });
487
+
488
+ /***/ }),
489
+
490
+ /***/ 408:
491
+ /***/ (function(module, exports) {
492
+
493
+ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) {
494
+ if (true) {
495
+ !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
496
+ __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
497
+ (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
498
+ __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
499
+ } else { var mod; }
500
+ })(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function () {
501
+ "use strict";
502
+
503
+ function _classCallCheck(instance, Constructor) {
504
+ if (!(instance instanceof Constructor)) {
505
+ throw new TypeError("Cannot call a class as a function");
506
+ }
507
+ }
508
+ module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
509
+ });
510
+
511
+ /***/ }),
512
+
513
+ /***/ 277:
514
+ /***/ (function(module, exports, __webpack_require__) {
515
+
516
+ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) {
517
+ if (true) {
518
+ !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
519
+ __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
520
+ (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
521
+ __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
522
+ } else { var mod; }
523
+ })(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function () {
524
+ "use strict";
525
+
526
+ var toPropertyKey = __webpack_require__(777);
527
+ function _defineProperties(target, props) {
528
+ for (var i = 0; i < props.length; i++) {
529
+ var descriptor = props[i];
530
+ descriptor.enumerable = descriptor.enumerable || false;
531
+ descriptor.configurable = true;
532
+ if ("value" in descriptor) descriptor.writable = true;
533
+ Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
534
+ }
535
+ }
536
+ function _createClass(Constructor, protoProps, staticProps) {
537
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
538
+ if (staticProps) _defineProperties(Constructor, staticProps);
539
+ Object.defineProperty(Constructor, "prototype", {
540
+ writable: false
541
+ });
542
+ return Constructor;
543
+ }
544
+ module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
545
+ });
546
+
547
+ /***/ }),
548
+
549
+ /***/ 938:
550
+ /***/ (function(module, exports) {
551
+
552
+ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) {
553
+ if (true) {
554
+ !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
555
+ __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
556
+ (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
557
+ __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
558
+ } else { var mod; }
559
+ })(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function () {
560
+ "use strict";
561
+
562
+ function _getPrototypeOf(o) {
563
+ module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
564
+ return o.__proto__ || Object.getPrototypeOf(o);
565
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports;
566
+ return _getPrototypeOf(o);
567
+ }
568
+ module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
569
+ });
570
+
571
+ /***/ }),
572
+
573
+ /***/ 418:
574
+ /***/ (function(module, exports, __webpack_require__) {
575
+
576
+ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) {
577
+ if (true) {
578
+ !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
579
+ __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
580
+ (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
581
+ __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
582
+ } else { var mod; }
583
+ })(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function () {
584
+ "use strict";
585
+
586
+ var setPrototypeOf = __webpack_require__(569);
587
+ function _inherits(subClass, superClass) {
588
+ if (typeof superClass !== "function" && superClass !== null) {
589
+ throw new TypeError("Super expression must either be null or a function");
590
+ }
591
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
592
+ constructor: {
593
+ value: subClass,
594
+ writable: true,
595
+ configurable: true
596
+ }
597
+ });
598
+ Object.defineProperty(subClass, "prototype", {
599
+ writable: false
600
+ });
601
+ if (superClass) setPrototypeOf(subClass, superClass);
602
+ }
603
+ module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports;
604
+ });
605
+
606
+ /***/ }),
607
+
608
+ /***/ 89:
609
+ /***/ (function(module, exports) {
610
+
611
+ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) {
612
+ if (true) {
613
+ !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
614
+ __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
615
+ (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
616
+ __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
617
+ } else { var mod; }
618
+ })(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function () {
619
+ "use strict";
620
+
621
+ function _interopRequireDefault(obj) {
622
+ return obj && obj.__esModule ? obj : {
623
+ "default": obj
624
+ };
625
+ }
626
+ module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
627
+ });
628
+
629
+ /***/ }),
630
+
631
+ /***/ 153:
632
+ /***/ (function(module, exports) {
633
+
634
+ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) {
635
+ if (true) {
636
+ !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
637
+ __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
638
+ (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
639
+ __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
640
+ } else { var mod; }
641
+ })(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function () {
642
+ "use strict";
643
+
644
+ function _iterableToArrayLimit(arr, i) {
645
+ var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
646
+ if (null != _i) {
647
+ var _s,
648
+ _e,
649
+ _x,
650
+ _r,
651
+ _arr = [],
652
+ _n = !0,
653
+ _d = !1;
654
+ try {
655
+ if (_x = (_i = _i.call(arr)).next, 0 === i) {
656
+ if (Object(_i) !== _i) return;
657
+ _n = !1;
658
+ } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
659
+ } catch (err) {
660
+ _d = !0, _e = err;
661
+ } finally {
662
+ try {
663
+ if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
664
+ } finally {
665
+ if (_d) throw _e;
666
+ }
667
+ }
668
+ return _arr;
669
+ }
670
+ }
671
+ module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
672
+ });
673
+
674
+ /***/ }),
675
+
676
+ /***/ 102:
677
+ /***/ (function(module, exports) {
678
+
679
+ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) {
680
+ if (true) {
681
+ !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
682
+ __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
683
+ (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
684
+ __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
685
+ } else { var mod; }
686
+ })(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function () {
687
+ "use strict";
688
+
689
+ function _nonIterableRest() {
690
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
691
+ }
692
+ module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
693
+ });
694
+
695
+ /***/ }),
696
+
697
+ /***/ 118:
698
+ /***/ (function(module, exports, __webpack_require__) {
699
+
700
+ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) {
701
+ if (true) {
702
+ !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
703
+ __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
704
+ (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
705
+ __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
706
+ } else { var mod; }
707
+ })(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function () {
708
+ "use strict";
709
+
710
+ var _typeof = (__webpack_require__(228)["default"]);
711
+ var assertThisInitialized = __webpack_require__(951);
712
+ function _possibleConstructorReturn(self, call) {
713
+ if (call && (_typeof(call) === "object" || typeof call === "function")) {
714
+ return call;
715
+ } else if (call !== void 0) {
716
+ throw new TypeError("Derived constructors may only return object or undefined");
717
+ }
718
+ return assertThisInitialized(self);
719
+ }
720
+ module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports;
721
+ });
722
+
723
+ /***/ }),
724
+
725
+ /***/ 569:
726
+ /***/ (function(module, exports) {
727
+
728
+ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) {
729
+ if (true) {
730
+ !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
731
+ __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
732
+ (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
733
+ __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
734
+ } else { var mod; }
735
+ })(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function () {
736
+ "use strict";
737
+
738
+ function _setPrototypeOf(o, p) {
739
+ module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
740
+ o.__proto__ = p;
741
+ return o;
742
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports;
743
+ return _setPrototypeOf(o, p);
744
+ }
745
+ module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
746
+ });
747
+
748
+ /***/ }),
749
+
750
+ /***/ 936:
751
+ /***/ (function(module, exports, __webpack_require__) {
752
+
753
+ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) {
754
+ if (true) {
755
+ !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
756
+ __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
757
+ (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
758
+ __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
759
+ } else { var mod; }
760
+ })(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function () {
761
+ "use strict";
762
+
763
+ var arrayWithHoles = __webpack_require__(761);
764
+ var iterableToArrayLimit = __webpack_require__(153);
765
+ var unsupportedIterableToArray = __webpack_require__(271);
766
+ var nonIterableRest = __webpack_require__(102);
767
+ function _slicedToArray(arr, i) {
768
+ return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
769
+ }
770
+ module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
771
+ });
772
+
773
+ /***/ }),
774
+
775
+ /***/ 660:
776
+ /***/ (function(module, exports, __webpack_require__) {
777
+
778
+ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) {
779
+ if (true) {
780
+ !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
781
+ __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
782
+ (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
783
+ __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
784
+ } else { var mod; }
785
+ })(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function () {
786
+ "use strict";
787
+
788
+ var _typeof = (__webpack_require__(228)["default"]);
789
+ function _toPrimitive(input, hint) {
790
+ if (_typeof(input) !== "object" || input === null) return input;
791
+ var prim = input[Symbol.toPrimitive];
792
+ if (prim !== undefined) {
793
+ var res = prim.call(input, hint || "default");
794
+ if (_typeof(res) !== "object") return res;
795
+ throw new TypeError("@@toPrimitive must return a primitive value.");
796
+ }
797
+ return (hint === "string" ? String : Number)(input);
798
+ }
799
+ module.exports = _toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
800
+ });
801
+
802
+ /***/ }),
803
+
804
+ /***/ 777:
805
+ /***/ (function(module, exports, __webpack_require__) {
806
+
807
+ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) {
808
+ if (true) {
809
+ !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
810
+ __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
811
+ (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
812
+ __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
813
+ } else { var mod; }
814
+ })(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function () {
815
+ "use strict";
816
+
817
+ var _typeof = (__webpack_require__(228)["default"]);
818
+ var toPrimitive = __webpack_require__(660);
819
+ function _toPropertyKey(arg) {
820
+ var key = toPrimitive(arg, "string");
821
+ return _typeof(key) === "symbol" ? key : String(key);
822
+ }
823
+ module.exports = _toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
824
+ });
825
+
826
+ /***/ }),
827
+
828
+ /***/ 228:
829
+ /***/ (function(module, exports) {
830
+
831
+ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) {
832
+ if (true) {
833
+ !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
834
+ __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
835
+ (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
836
+ __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
837
+ } else { var mod; }
838
+ })(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function () {
839
+ "use strict";
840
+
841
+ function _typeof(obj) {
842
+ "@babel/helpers - typeof";
843
+
844
+ return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
845
+ return typeof obj;
846
+ } : function (obj) {
847
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
848
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
849
+ }
850
+ module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
851
+ });
852
+
853
+ /***/ }),
854
+
855
+ /***/ 271:
856
+ /***/ (function(module, exports, __webpack_require__) {
857
+
858
+ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) {
859
+ if (true) {
860
+ !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
861
+ __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
862
+ (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
863
+ __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
864
+ } else { var mod; }
865
+ })(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function () {
866
+ "use strict";
867
+
868
+ var arrayLikeToArray = __webpack_require__(83);
869
+ function _unsupportedIterableToArray(o, minLen) {
870
+ if (!o) return;
871
+ if (typeof o === "string") return arrayLikeToArray(o, minLen);
872
+ var n = Object.prototype.toString.call(o).slice(8, -1);
873
+ if (n === "Object" && o.constructor) n = o.constructor.name;
874
+ if (n === "Map" || n === "Set") return Array.from(o);
875
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
876
+ }
877
+ module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
878
+ });
879
+
880
+ /***/ })
881
+
882
+ /******/ });
883
+ /************************************************************************/
884
+ /******/ // The module cache
885
+ /******/ var __webpack_module_cache__ = {};
886
+ /******/
887
+ /******/ // The require function
888
+ /******/ function __webpack_require__(moduleId) {
889
+ /******/ // Check if module is in cache
890
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
891
+ /******/ if (cachedModule !== undefined) {
892
+ /******/ return cachedModule.exports;
893
+ /******/ }
894
+ /******/ // Create a new module (and put it into the cache)
895
+ /******/ var module = __webpack_module_cache__[moduleId] = {
896
+ /******/ // no module.id needed
897
+ /******/ // no module.loaded needed
898
+ /******/ exports: {}
899
+ /******/ };
900
+ /******/
901
+ /******/ // Execute the module function
902
+ /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
903
+ /******/
904
+ /******/ // Return the exports of the module
905
+ /******/ return module.exports;
906
+ /******/ }
907
+ /******/
908
+ /************************************************************************/
909
+ /******/
910
+ /******/ // startup
911
+ /******/ // Load entry module and return exports
912
+ /******/ // This entry module is referenced by other modules so it can't be inlined
913
+ /******/ var __webpack_exports__ = __webpack_require__(286);
914
+ /******/
915
+ /******/ return __webpack_exports__;
916
+ /******/ })()
917
+ ;
918
+ });
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;;;;;;;;;;;;;;;;;;;ECVAA,MAAA,CAAAC,IAAA,CAAAC,IAAA,EAAAC,OAAA,WAAAC,GAAA;IAAA,IAAAA,GAAA,kBAAAA,GAAA;IAAA,IAAAA,GAAA,IAAAC,QAAA,IAAAA,QAAA,CAAAD,GAAA,MAAAF,IAAA,CAAAE,GAAA;IAAAJ,MAAA,CAAAM,cAAA,CAAAD,QAAA,EAAAD,GAAA;MAAAG,UAAA;MAAAC,GAAA,WAAAA,IAAA;QAAA,OAAAN,IAAA,CAAAE,GAAA;MAAA;IAAA;EAAA;AAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ECErB;;;;;EAKA,SAASK,YAAYA,CAACC,CAAU;IAC9B,OACEC,iBAAQ,KAAAC,QAAA,aAAQF,CAAC,EAAC,IAClBC,iBAAQ,CAACX,MAAM,CA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GAAGA,MAAM,CAACC,OAAO;AAAC;;;;;;UCT3H;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;UEtBA;UACA;UACA;UACA","sources":["webpack://Utils/webpack/universalModuleDefinition","webpack://Utils/./packages/utils/index.ts","webpack://Utils/./packages/utils/src/averType.ts","webpack://Utils/./packages/utils/src/event.ts","webpack://Utils/./packages/utils/src/format.ts","webpack://Utils/./packages/utils/src/index.ts","webpack://Utils/./packages/utils/src/object.ts","webpack://Utils/./packages/utils/src/valType.ts","webpack://Utils/../cclr-magic-cli/node_modules/@babel/runtime/helpers/arrayLikeToArray.js","webpack://Utils/../cclr-magic-cli/node_modules/@babel/runtime/helpers/arrayWithHoles.js","webpack://Utils/../cclr-magic-cli/node_modules/@babel/runtime/helpers/assertThisInitialized.js","webpack://Utils/../cclr-magic-cli/node_modules/@babel/runtime/helpers/classCallCheck.js","webpack://Utils/../cclr-magic-cli/node_modules/@babel/runtime/helpers/createClass.js","webpack://Utils/../cclr-magic-cli/node_modules/@babel/runtime/helpers/getPrototypeOf.js","webpack://Utils/../cclr-magic-cli/node_modules/@babel/runtime/helpers/inherits.js","webpack://Utils/../cclr-magic-cli/node_modules/@babel/runtime/helpers/interopRequireDefault.js","webpack://Utils/../cclr-magic-cli/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js","webpack://Utils/../cclr-magic-cli/node_modules/@babel/runtime/helpers/nonIterableRest.js","webpack://Utils/../cclr-magic-cli/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js","webpack://Utils/../cclr-magic-cli/node_modules/@babel/runtime/helpers/setPrototypeOf.js","webpack://Utils/../cclr-magic-cli/node_modules/@babel/runtime/helpers/slicedToArray.js","webpack://Utils/../cclr-magic-cli/node_modules/@babel/runtime/helpers/toPrimitive.js","webpack://Utils/../cclr-magic-cli/node_modules/@babel/runtime/helpers/toPropertyKey.js","webpack://Utils/../cclr-magic-cli/node_modules/@babel/runtime/helpers/typeof.js","webpack://Utils/../cclr-magic-cli/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js","webpack://Utils/webpack/bootstrap","webpack://Utils/webpack/before-startup","webpack://Utils/webpack/startup","webpack://Utils/webpack/after-startup"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Utils\"] = factory();\n\telse\n\t\troot[\"Utils\"] = factory();\n})(self, () => {\nreturn ","export * from './src'","import { TVal, VAL_TYPE } from \"./valType\";\n\n/**\n * 获取参数类型\n * @param p 参数\n * @returns\n */\nfunction getParamType(p: unknown): TVal {\n return (\n VAL_TYPE[typeof p] ||\n VAL_TYPE[Object.prototype.toString.call(p)] ||\n (p ? \"object\" : \"null\")\n );\n}\n\nfunction isType(params: any, type: TVal) {\n return getParamType(params) === type;\n}\n\nfunction isString(s): s is String {\n return getParamType(s) === \"string\";\n}\n\nfunction isBoolean(b): b is Boolean {\n return getParamType(b) === \"boolean\";\n}\n\nfunction isFunction(b): b is Function {\n return getParamType(b) === \"function\";\n}\n\nfunction isPlainObject(b): b is Record<string, unknown> {\n return getParamType(b) === \"object\";\n}\n\nfunction isArray(a): a is any[] {\n return Array.isArray(a);\n}\n\nexport {\n getParamType,\n isType,\n isString,\n isBoolean,\n isFunction,\n isArray,\n isPlainObject,\n};\n","export abstract class EventBase<T extends { [K in keyof T]: T[K] }> {\n\n private handlers: {\n [K in keyof T]: T[K][]\n }= {} as any;\n\n constructor(eventMap?: T) {\n if (!eventMap) return;\n Object.entries(eventMap).forEach(([key, handle]) => {\n this.handlers[key] = [handle];\n });\n }\n\n on(eventName: keyof T, handler: T[typeof eventName]) {\n this.handlers[eventName] ??= [];\n this.handlers[eventName].push(handler);\n }\n\n off(eventName: keyof T, handler: T[typeof eventName]) {\n const eventHandlers = this.handlers[eventName];\n if (eventHandlers) {\n const index = eventHandlers.indexOf(handler);\n if (index !== -1) {\n eventHandlers.splice(index, 1);\n }\n }\n }\n\n emit(eventName: keyof T, ...args: Parameters<T[typeof eventName]>) {\n this.handlers[eventName]?.forEach(handler => {\n handler(...(args as Array<any>));\n });\n }\n}\n\nexport class Event<T> extends EventBase<T> {}\n\nexport class EventFree extends EventBase<any> {}\n","import { defaultValueMap, TVal } from \"./valType\";\nimport { isFunction, isType } from \"./averType\";\nimport { TPlainObject } from \"@cclr/ts\";\n\n/**\n * 对象格式化\n * @param o\n * @param maps\n */\nexport function formatObj<T extends TPlainObject>(\n o: T,\n maps: Array<[string, TVal, unknown?]>\n): T & TPlainObject;\nexport function formatObj<T extends TPlainObject>(\n o: T,\n maps: Array<[keyof T, TVal, unknown?]>\n): T {\n const resetRes: Partial<T> = {};\n maps.forEach(([key, type, defaultValue]) => {\n if (!isType(o[key], type)) {\n if (isFunction(defaultValue) && type !== \"function\") {\n defaultValue = defaultValue();\n }\n resetRes[key] = defaultValue || defaultValueMap[type];\n }\n });\n\n return {\n ...o,\n ...resetRes,\n };\n}\n","export * from './event';\nexport * from \"./averType\";\nexport * from \"./format\";\nexport * as obj from \"./object\";\n","/**\n * 对象挑选\n * @param obj\n * @param keys\n * @returns\n */\nexport const objPick = <T extends keyof any>(\n obj: Partial<Record<T, any>>,\n keys: T[]\n) => {\n return keys.reduce((pre, key) => {\n const val = obj[key];\n if (val) {\n pre[key] = val;\n }\n return pre;\n }, {} as Partial<Record<T, any>>);\n};\n","export const VAL_TYPE = {\n boolean: \"boolean\",\n undefined: \"undefined\",\n number: \"undefined\",\n string: \"string\",\n null: \"null\",\n \"[object Object]\": \"object\",\n \"[object Function]\": \"function\",\n \"[object RegExp]\": \"regexp\",\n \"[object Array]\": \"array\",\n \"[object Date]\": \"date\",\n \"[object Error]\": \"error\",\n \"[object Blob]\": \"blob\",\n \"[object File]\": \"file\",\n \"[object ArrayBuffer]\": \"arrayBuffer\",\n} as const;\n\nexport const defaultValueMap = {\n boolean: false,\n undefined: undefined,\n number: 0,\n string: \"\",\n null: null,\n object: {},\n function: () => {},\n regexp: /^.*$/,\n array: [],\n arrayBuffer: new ArrayBuffer(4),\n};\n\n// 只有需要使用时才创建\nlet dateObj: Date;\nlet errorObj: Error;\nlet blobObj: Blob;\nlet fileObj: File;\nObject.defineProperty(defaultValueMap, \"date\", {\n get() {\n if (!dateObj) {\n dateObj = new Date();\n }\n return dateObj;\n },\n});\nObject.defineProperty(defaultValueMap, \"error\", {\n get() {\n if (!errorObj) {\n errorObj = new Error();\n }\n return errorObj;\n },\n});\nObject.defineProperty(defaultValueMap, \"blob\", {\n get() {\n if (!blobObj) {\n blobObj = new Blob([]);\n }\n return blobObj;\n },\n});\nObject.defineProperty(defaultValueMap, \"file\", {\n get() {\n if (!fileObj) {\n fileObj = new File([], \"file\");\n }\n return fileObj;\n },\n});\n\nexport type TVal = typeof VAL_TYPE[keyof typeof VAL_TYPE];\n\n","function _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n return arr2;\n}\nmodule.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\nmodule.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n return self;\n}\nmodule.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\nmodule.exports = _classCallCheck, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var toPropertyKey = require(\"./toPropertyKey.js\");\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);\n }\n}\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n Object.defineProperty(Constructor, \"prototype\", {\n writable: false\n });\n return Constructor;\n}\nmodule.exports = _createClass, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _getPrototypeOf(o) {\n module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n return _getPrototypeOf(o);\n}\nmodule.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var setPrototypeOf = require(\"./setPrototypeOf.js\");\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n Object.defineProperty(subClass, \"prototype\", {\n writable: false\n });\n if (superClass) setPrototypeOf(subClass, superClass);\n}\nmodule.exports = _inherits, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n \"default\": obj\n };\n}\nmodule.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _iterableToArrayLimit(arr, i) {\n var _i = null == arr ? null : \"undefined\" != typeof Symbol && arr[Symbol.iterator] || arr[\"@@iterator\"];\n if (null != _i) {\n var _s,\n _e,\n _x,\n _r,\n _arr = [],\n _n = !0,\n _d = !1;\n try {\n if (_x = (_i = _i.call(arr)).next, 0 === i) {\n if (Object(_i) !== _i) return;\n _n = !1;\n } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);\n } catch (err) {\n _d = !0, _e = err;\n } finally {\n try {\n if (!_n && null != _i[\"return\"] && (_r = _i[\"return\"](), Object(_r) !== _r)) return;\n } finally {\n if (_d) throw _e;\n }\n }\n return _arr;\n }\n}\nmodule.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nmodule.exports = _nonIterableRest, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var _typeof = require(\"./typeof.js\")[\"default\"];\nvar assertThisInitialized = require(\"./assertThisInitialized.js\");\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n } else if (call !== void 0) {\n throw new TypeError(\"Derived constructors may only return object or undefined\");\n }\n return assertThisInitialized(self);\n}\nmodule.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _setPrototypeOf(o, p) {\n module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n return _setPrototypeOf(o, p);\n}\nmodule.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var arrayWithHoles = require(\"./arrayWithHoles.js\");\nvar iterableToArrayLimit = require(\"./iterableToArrayLimit.js\");\nvar unsupportedIterableToArray = require(\"./unsupportedIterableToArray.js\");\nvar nonIterableRest = require(\"./nonIterableRest.js\");\nfunction _slicedToArray(arr, i) {\n return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();\n}\nmodule.exports = _slicedToArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var _typeof = require(\"./typeof.js\")[\"default\"];\nfunction _toPrimitive(input, hint) {\n if (_typeof(input) !== \"object\" || input === null) return input;\n var prim = input[Symbol.toPrimitive];\n if (prim !== undefined) {\n var res = prim.call(input, hint || \"default\");\n if (_typeof(res) !== \"object\") return res;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (hint === \"string\" ? String : Number)(input);\n}\nmodule.exports = _toPrimitive, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var _typeof = require(\"./typeof.js\")[\"default\"];\nvar toPrimitive = require(\"./toPrimitive.js\");\nfunction _toPropertyKey(arg) {\n var key = toPrimitive(arg, \"string\");\n return _typeof(key) === \"symbol\" ? key : String(key);\n}\nmodule.exports = _toPropertyKey, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n return (module.exports = _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports), _typeof(obj);\n}\nmodule.exports = _typeof, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var arrayLikeToArray = require(\"./arrayLikeToArray.js\");\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);\n}\nmodule.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","","// startup\n// Load entry module and return exports\n// This entry module is referenced by other modules so it can't be inlined\nvar __webpack_exports__ = __webpack_require__(286);\n",""],"names":["Object","keys","_src","forEach","key","_exports","defineProperty","enumerable","get","getParamType","p","VAL_TYPE","_typeof2","prototype","toString","call","isType","params","type","isString","s","isBoolean","b","isFunction","isPlainObject","isArray","a","Array","EventBase","eventMap","_this","_classCallCheck2","handlers","entries","_ref","_ref2","_slicedToArray2","handle","_createClass2","value","on","eventName","handler","_a","_b","push","off","eventHandlers","index","indexOf","splice","emit","_len","arguments","length","args","_key","apply","Event","_EventBase","_inherits2","_super","_createSuper","EventFree","_EventBase2","_super2","formatObj","o","maps","resetRes","defaultValue","defaultValueMap","assign","_event","hasOwnProperty","_exportNames","_averType","_format","_obj","_interopRequireWildcard","obj","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","__esModule","_typeof","cache","has","newObj","hasPropertyDescriptor","getOwnPropertyDescriptor","desc","set","objPick","reduce","pre","val","undefined","number","string","object","_function","regexp","array","arrayBuffer","ArrayBuffer","dateObj","errorObj","blobObj","fileObj","Date","Error","Blob","File","_arrayLikeToArray","arr","len","i","arr2","module","exports","_arrayWithHoles","_assertThisInitialized","self","ReferenceError","_classCallCheck","instance","Constructor","TypeError","toPropertyKey","require","_defineProperties","target","props","descriptor","configurable","writable","_createClass","protoProps","staticProps","_getPrototypeOf","setPrototypeOf","getPrototypeOf","bind","__proto__","_inherits","subClass","superClass","create","constructor","_interopRequireDefault","_iterableToArrayLimit","_i","Symbol","iterator","_s","_e","_x","_r","_arr","_n","_d","next","done","err","_nonIterableRest","assertThisInitialized","_possibleConstructorReturn","_setPrototypeOf","arrayWithHoles","iterableToArrayLimit","unsupportedIterableToArray","nonIterableRest","_slicedToArray","_toPrimitive","input","hint","prim","toPrimitive","res","String","Number","_toPropertyKey","arg","arrayLikeToArray","_unsupportedIterableToArray","minLen","n","slice","name","from","test"],"sourceRoot":""}
@@ -0,0 +1,14 @@
1
+ import { TVal } from "./valType";
2
+ /**
3
+ * 获取参数类型
4
+ * @param p 参数
5
+ * @returns
6
+ */
7
+ declare function getParamType(p: unknown): TVal;
8
+ declare function isType(params: any, type: TVal): boolean;
9
+ declare function isString(s: any): s is String;
10
+ declare function isBoolean(b: any): b is Boolean;
11
+ declare function isFunction(b: any): b is Function;
12
+ declare function isPlainObject(b: any): b is Record<string, unknown>;
13
+ declare function isArray(a: any): a is any[];
14
+ export { getParamType, isType, isString, isBoolean, isFunction, isArray, isPlainObject, };
@@ -0,0 +1,13 @@
1
+ export declare abstract class EventBase<T extends {
2
+ [K in keyof T]: T[K];
3
+ }> {
4
+ private handlers;
5
+ constructor(eventMap?: T);
6
+ on(eventName: keyof T, handler: T[typeof eventName]): void;
7
+ off(eventName: keyof T, handler: T[typeof eventName]): void;
8
+ emit(eventName: keyof T, ...args: Parameters<T[typeof eventName]>): void;
9
+ }
10
+ export declare class Event<T> extends EventBase<T> {
11
+ }
12
+ export declare class EventFree extends EventBase<any> {
13
+ }
@@ -0,0 +1,8 @@
1
+ import { TVal } from "./valType";
2
+ import { TPlainObject } from "@cclr/ts";
3
+ /**
4
+ * 对象格式化
5
+ * @param o
6
+ * @param maps
7
+ */
8
+ export declare function formatObj<T extends TPlainObject>(o: T, maps: Array<[string, TVal, unknown?]>): T & TPlainObject;
@@ -0,0 +1,4 @@
1
+ export * from './event';
2
+ export * from "./averType";
3
+ export * from "./format";
4
+ export * as obj from "./object";
@@ -0,0 +1,7 @@
1
+ /**
2
+ * 对象挑选
3
+ * @param obj
4
+ * @param keys
5
+ * @returns
6
+ */
7
+ export declare const objPick: <T extends string | number | symbol>(obj: Partial<Record<T, any>>, keys: T[]) => Partial<Record<T, any>>;
@@ -0,0 +1,29 @@
1
+ export declare const VAL_TYPE: {
2
+ readonly boolean: "boolean";
3
+ readonly undefined: "undefined";
4
+ readonly number: "undefined";
5
+ readonly string: "string";
6
+ readonly null: "null";
7
+ readonly "[object Object]": "object";
8
+ readonly "[object Function]": "function";
9
+ readonly "[object RegExp]": "regexp";
10
+ readonly "[object Array]": "array";
11
+ readonly "[object Date]": "date";
12
+ readonly "[object Error]": "error";
13
+ readonly "[object Blob]": "blob";
14
+ readonly "[object File]": "file";
15
+ readonly "[object ArrayBuffer]": "arrayBuffer";
16
+ };
17
+ export declare const defaultValueMap: {
18
+ boolean: boolean;
19
+ undefined: undefined;
20
+ number: number;
21
+ string: string;
22
+ null: null;
23
+ object: {};
24
+ function: () => void;
25
+ regexp: RegExp;
26
+ array: never[];
27
+ arrayBuffer: ArrayBuffer;
28
+ };
29
+ export type TVal = typeof VAL_TYPE[keyof typeof VAL_TYPE];
package/package.json ADDED
@@ -0,0 +1,24 @@
1
+ {
2
+ "name": "@cclr/utils",
3
+ "version": "1.0.0",
4
+ "description": "基础方法",
5
+ "main": "./lib/index.js",
6
+ "typings": "./lib/index.d.ts",
7
+ "directories": {
8
+ "test": "test"
9
+ },
10
+ "files": [
11
+ "lib/",
12
+ "README.md",
13
+ "package.json",
14
+ "tsconfig.json"
15
+ ],
16
+ "scripts": {
17
+ "test": "echo \"Error: no test specified\" && exit 1"
18
+ },
19
+ "author": "congcongluren",
20
+ "license": "ISC",
21
+ "publishConfig": {
22
+ "access": "public"
23
+ }
24
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,39 @@
1
+ {
2
+ "compilerOptions": {
3
+ "outDir": "./lib",
4
+ "lib": ["ESNext", "DOM"],
5
+ "target": "ES6",
6
+ "moduleResolution": "nodenext",
7
+ "baseUrl": "./",
8
+ "paths": {
9
+ "@": ["src"],
10
+ "@/*": ["src/*"]
11
+ },
12
+ "newLine": "LF",
13
+ "skipLibCheck": true,
14
+ "noUnusedParameters": false,
15
+ "resolveJsonModule": true,
16
+ "allowSyntheticDefaultImports": true,
17
+ "declaration": true,
18
+ "allowJs": false,
19
+ "esModuleInterop": true,
20
+ "preserveConstEnums": true,
21
+ "sourceMap": true,
22
+ "jsx": "preserve",
23
+ "noUnusedLocals": false,
24
+ "noImplicitReturns": true,
25
+ "alwaysStrict": true,
26
+ "strictNullChecks": true,
27
+ "strictFunctionTypes": true,
28
+ "removeComments": false,
29
+ "experimentalDecorators": true,
30
+ "rootDir": ".",
31
+ "module": "esnext",
32
+ "noImplicitAny": false,
33
+ "noEmit": false,
34
+ "incremental": true,
35
+ "types": []
36
+ },
37
+ "include": ["src/*.ts", "**/*.ts"],
38
+ "exclude": ["lib", "**/.*/", "dist", "build"]
39
+ }