@wfrog/vc-ui 1.11.10 → 1.11.11

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.
Files changed (134) hide show
  1. package/dist/es/chunk/Bw0Rhd-r.mjs +110 -0
  2. package/dist/es/chunk/CqTdDZkE.mjs +31 -0
  3. package/dist/es/chunk/{DAnWZLYj.mjs → CzWfBa_8.mjs} +96 -2
  4. package/dist/es/chunk/D229kQ56.mjs +28 -0
  5. package/dist/es/chunk/{Cxx_YWUC.mjs → DcouM6gM.mjs} +6 -548
  6. package/dist/es/chunk/Fo0dZYnz.mjs +128 -0
  7. package/dist/es/chunk/KanuIcmc.mjs +412 -0
  8. package/dist/es/chunk/{B71xEPfK.mjs → uuUHUjSk.mjs} +4 -35
  9. package/dist/es/components/backbottom/backbottom.mjs +3 -2
  10. package/dist/es/components/button/button.mjs +4 -5
  11. package/dist/es/components/choice/choice.mjs +4 -4
  12. package/dist/es/components/choice/index.css +1 -1
  13. package/dist/es/components/color-switch/color-switch.mjs +73 -1046
  14. package/dist/es/components/color-switch/index.css +1 -1
  15. package/dist/es/components/cropper/cropper.mjs +11 -117
  16. package/dist/es/components/cropper/index.css +1 -1
  17. package/dist/es/components/currency/currency.mjs +4 -5
  18. package/dist/es/components/daterange-picker/daterange-picker.mjs +8 -6253
  19. package/dist/es/components/dialog/dialog.mjs +7 -400
  20. package/dist/es/components/dialog/index.css +1 -1
  21. package/dist/es/components/dialog-camera-upload/dialog-camera-upload.mjs +10 -11
  22. package/dist/es/components/dialog-map-point/dialog-map-point.mjs +4 -3
  23. package/dist/es/components/dialog-upload-images/dialog-upload-images.mjs +9 -1374
  24. package/dist/es/components/dialog-upload-images/index.css +1 -1
  25. package/dist/es/components/drag-verify/drag-verify.mjs +3 -2
  26. package/dist/es/components/drawer/drawer.mjs +10 -352
  27. package/dist/es/components/drawer/index.css +1 -1
  28. package/dist/es/components/easy-pagination/easy-pagination.mjs +3 -2
  29. package/dist/es/components/explorer/explorer.mjs +3 -3
  30. package/dist/es/components/explorer-column-table/explorer-column-table.mjs +5 -7
  31. package/dist/es/components/explorer-column-table/index.css +1 -1
  32. package/dist/es/components/explorer-container/explorer-container.d.ts +1 -1
  33. package/dist/es/components/explorer-container/explorer-container.mjs +4 -3
  34. package/dist/es/components/explorer-filter/explorer-filter.mjs +5 -4
  35. package/dist/es/components/explorer-footer/explorer-footer.mjs +4 -8
  36. package/dist/es/components/explorer-form/explorer-form.mjs +4 -3
  37. package/dist/es/components/explorer-list/explorer-list.mjs +5 -4
  38. package/dist/es/components/explorer-modal-form/explorer-modal-form.mjs +4 -3
  39. package/dist/es/components/explorer-panel/explorer-panel.mjs +3 -3
  40. package/dist/es/components/explorer-query/explorer-query.mjs +9 -2201
  41. package/dist/es/components/explorer-query/index.css +1 -1
  42. package/dist/es/components/explorer-table/explorer-table.mjs +5 -8
  43. package/dist/es/components/explorer-tools/explorer-tools.mjs +13 -264
  44. package/dist/es/components/explorer-tools/index.css +1 -1
  45. package/dist/es/components/explorer-tree/explorer-tree.mjs +4 -5
  46. package/dist/es/components/icon-picker/icon-picker.mjs +8 -12
  47. package/dist/es/components/image/image.mjs +4 -4
  48. package/dist/es/components/info-tooltip/info-tooltip.mjs +336 -4
  49. package/dist/es/components/input/input.mjs +3 -2
  50. package/dist/es/components/input-number/input-number.mjs +3 -3
  51. package/dist/es/components/pca-picker/index.css +1 -1
  52. package/dist/es/components/pca-picker/pca-picker.mjs +443 -601
  53. package/dist/es/components/screenfull/screenfull.mjs +4 -3
  54. package/dist/es/components/scrollbar/scrollbar.mjs +3 -2
  55. package/dist/es/components/select/select.mjs +3 -5
  56. package/dist/es/components/single-player/index.css +1 -1
  57. package/dist/es/components/single-player/single-player.mjs +10 -1087
  58. package/dist/es/components/splitter/splitter.mjs +3 -3
  59. package/dist/es/components/splitter-panel/splitter-panel.mjs +3 -3
  60. package/dist/es/components/switch/index.css +1 -1
  61. package/dist/es/components/switch/switch.mjs +9 -395
  62. package/dist/es/components/tags/tags.mjs +7 -9
  63. package/dist/es/components/text-ellipsis/text-ellipsis.mjs +3 -3
  64. package/dist/es/components/thousand-input/thousand-input.mjs +33 -1
  65. package/dist/es/components/tinymce/tinymce.mjs +4 -3
  66. package/dist/es/components/transfer/transfer.mjs +3 -4
  67. package/dist/es/components/transfer-panel/transfer-panel.mjs +5 -4
  68. package/dist/es/components/tree-picker/popover-cascader.css +1 -1
  69. package/dist/es/components/tree-picker/tree-picker.mjs +5 -10
  70. package/dist/es/index.mjs +1 -1
  71. package/dist/index.css +13 -40
  72. package/package.json +1 -1
  73. package/dist/es/chunk/B-rxnVJv.mjs +0 -3
  74. package/dist/es/chunk/B5HpgPRt.mjs +0 -69
  75. package/dist/es/chunk/BBhZKpIc.mjs +0 -2179
  76. package/dist/es/chunk/BDcsaNYa.mjs +0 -59
  77. package/dist/es/chunk/BTSSEFfD.mjs +0 -319
  78. package/dist/es/chunk/BTpNRPQW.mjs +0 -55
  79. package/dist/es/chunk/BVBK1U57.mjs +0 -96
  80. package/dist/es/chunk/Bc6yUGLs.mjs +0 -45
  81. package/dist/es/chunk/BjVI1XMz.mjs +0 -40
  82. package/dist/es/chunk/BlzQCBDu.mjs +0 -5741
  83. package/dist/es/chunk/BpJKnxlF.mjs +0 -476
  84. package/dist/es/chunk/Brp-qSBw.mjs +0 -2003
  85. package/dist/es/chunk/BunQI8Jb.mjs +0 -390
  86. package/dist/es/chunk/C0XgBrDz.mjs +0 -775
  87. package/dist/es/chunk/C0pTANRX.mjs +0 -109
  88. package/dist/es/chunk/CBMjhoFP.mjs +0 -101
  89. package/dist/es/chunk/CBiNtNvQ.mjs +0 -242
  90. package/dist/es/chunk/CBlJeNBO.mjs +0 -890
  91. package/dist/es/chunk/CCVL_Zj-.mjs +0 -427
  92. package/dist/es/chunk/CEl4MyfJ.mjs +0 -252
  93. package/dist/es/chunk/CJK5_jsA.mjs +0 -53
  94. package/dist/es/chunk/CKOcwq5V.mjs +0 -44
  95. package/dist/es/chunk/COs9dJZa.mjs +0 -66
  96. package/dist/es/chunk/CPt6MxJW.mjs +0 -375
  97. package/dist/es/chunk/CVqW0jzp.mjs +0 -107
  98. package/dist/es/chunk/CccIsEqA.mjs +0 -128
  99. package/dist/es/chunk/CjLR27-a.mjs +0 -582
  100. package/dist/es/chunk/CoGexPPD.mjs +0 -2192
  101. package/dist/es/chunk/CsLIbnzG.mjs +0 -64
  102. package/dist/es/chunk/Ct6q2FXg.mjs +0 -5
  103. package/dist/es/chunk/Cuq5meQh.mjs +0 -184
  104. package/dist/es/chunk/CvYIOfT1.mjs +0 -23
  105. package/dist/es/chunk/CxHJBf4l.mjs +0 -31
  106. package/dist/es/chunk/CzdaOBtA.mjs +0 -66
  107. package/dist/es/chunk/D0QTifnI.mjs +0 -54
  108. package/dist/es/chunk/D1QnA2iT.mjs +0 -229
  109. package/dist/es/chunk/D3AvJlVX.mjs +0 -188
  110. package/dist/es/chunk/D9Lr0Bzb.mjs +0 -1136
  111. package/dist/es/chunk/DCkPv0hy.mjs +0 -29
  112. package/dist/es/chunk/DRwwUUhy.mjs +0 -49
  113. package/dist/es/chunk/DX-2VRY2.mjs +0 -836
  114. package/dist/es/chunk/DZ2oTFad.mjs +0 -687
  115. package/dist/es/chunk/D_bou1py.mjs +0 -55
  116. package/dist/es/chunk/Da199A5L.mjs +0 -314
  117. package/dist/es/chunk/DbhQlaOz.mjs +0 -94
  118. package/dist/es/chunk/Dgu95mOy.mjs +0 -237
  119. package/dist/es/chunk/DhGOsWxx.mjs +0 -6
  120. package/dist/es/chunk/Dm_Sj5aH.mjs +0 -487
  121. package/dist/es/chunk/Dmi-1GRO.mjs +0 -163
  122. package/dist/es/chunk/DodoD9a9.mjs +0 -52
  123. package/dist/es/chunk/DrrVDcwm.mjs +0 -955
  124. package/dist/es/chunk/Du_zJ1Fz.mjs +0 -49
  125. package/dist/es/chunk/DxxbB5jY.mjs +0 -34
  126. package/dist/es/chunk/Gk1J52Yw.mjs +0 -207
  127. package/dist/es/chunk/NsldgdCh.mjs +0 -704
  128. package/dist/es/chunk/V6KjsUQN.mjs +0 -35
  129. package/dist/es/chunk/eEsLFV3s.mjs +0 -76
  130. package/dist/es/chunk/fqiLhk0V.mjs +0 -2065
  131. package/dist/es/chunk/nxVM7re4.mjs +0 -35
  132. package/dist/es/chunk/s7HLrANj.mjs +0 -215
  133. package/dist/es/chunk/vPhxogl3.mjs +0 -19
  134. package/dist/es/components/icon/icon2.mjs +0 -27
@@ -1,687 +0,0 @@
1
- import { d as isPrototype, e as arrayLikeKeys, a as isArrayLike, o as overArg, k as keys, g as getSymbols, s as stubArray, f as baseGetAllKeys, U as Uint8Array, h as getTag, j as baseUnary, n as nodeUtil, b as isBuffer, S as Stack, l as getAllKeys } from './B71xEPfK.mjs';
2
- import { a as isObject, d as baseAssignValue, x as assignValue, r as root, k as arrayPush, S as Symbol$1, i as isObjectLike, f as isArray } from './Cxx_YWUC.mjs';
3
-
4
- /** Built-in value references. */
5
- var objectCreate = Object.create;
6
-
7
- /**
8
- * The base implementation of `_.create` without support for assigning
9
- * properties to the created object.
10
- *
11
- * @private
12
- * @param {Object} proto The object to inherit from.
13
- * @returns {Object} Returns the new object.
14
- */
15
- var baseCreate = (function() {
16
- function object() {}
17
- return function(proto) {
18
- if (!isObject(proto)) {
19
- return {};
20
- }
21
- if (objectCreate) {
22
- return objectCreate(proto);
23
- }
24
- object.prototype = proto;
25
- var result = new object;
26
- object.prototype = undefined;
27
- return result;
28
- };
29
- }());
30
-
31
- /**
32
- * Copies the values of `source` to `array`.
33
- *
34
- * @private
35
- * @param {Array} source The array to copy values from.
36
- * @param {Array} [array=[]] The array to copy values to.
37
- * @returns {Array} Returns `array`.
38
- */
39
- function copyArray(source, array) {
40
- var index = -1,
41
- length = source.length;
42
-
43
- array || (array = Array(length));
44
- while (++index < length) {
45
- array[index] = source[index];
46
- }
47
- return array;
48
- }
49
-
50
- /**
51
- * A specialized version of `_.forEach` for arrays without support for
52
- * iteratee shorthands.
53
- *
54
- * @private
55
- * @param {Array} [array] The array to iterate over.
56
- * @param {Function} iteratee The function invoked per iteration.
57
- * @returns {Array} Returns `array`.
58
- */
59
- function arrayEach(array, iteratee) {
60
- var index = -1,
61
- length = array == null ? 0 : array.length;
62
-
63
- while (++index < length) {
64
- if (iteratee(array[index], index, array) === false) {
65
- break;
66
- }
67
- }
68
- return array;
69
- }
70
-
71
- /**
72
- * Copies properties of `source` to `object`.
73
- *
74
- * @private
75
- * @param {Object} source The object to copy properties from.
76
- * @param {Array} props The property identifiers to copy.
77
- * @param {Object} [object={}] The object to copy properties to.
78
- * @param {Function} [customizer] The function to customize copied values.
79
- * @returns {Object} Returns `object`.
80
- */
81
- function copyObject(source, props, object, customizer) {
82
- var isNew = !object;
83
- object || (object = {});
84
-
85
- var index = -1,
86
- length = props.length;
87
-
88
- while (++index < length) {
89
- var key = props[index];
90
-
91
- var newValue = undefined;
92
-
93
- if (newValue === undefined) {
94
- newValue = source[key];
95
- }
96
- if (isNew) {
97
- baseAssignValue(object, key, newValue);
98
- } else {
99
- assignValue(object, key, newValue);
100
- }
101
- }
102
- return object;
103
- }
104
-
105
- /**
106
- * This function is like
107
- * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
108
- * except that it includes inherited enumerable properties.
109
- *
110
- * @private
111
- * @param {Object} object The object to query.
112
- * @returns {Array} Returns the array of property names.
113
- */
114
- function nativeKeysIn(object) {
115
- var result = [];
116
- if (object != null) {
117
- for (var key in Object(object)) {
118
- result.push(key);
119
- }
120
- }
121
- return result;
122
- }
123
-
124
- /** Used for built-in method references. */
125
- var objectProto$1 = Object.prototype;
126
-
127
- /** Used to check objects for own properties. */
128
- var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
129
-
130
- /**
131
- * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
132
- *
133
- * @private
134
- * @param {Object} object The object to query.
135
- * @returns {Array} Returns the array of property names.
136
- */
137
- function baseKeysIn(object) {
138
- if (!isObject(object)) {
139
- return nativeKeysIn(object);
140
- }
141
- var isProto = isPrototype(object),
142
- result = [];
143
-
144
- for (var key in object) {
145
- if (!(key == 'constructor' && (isProto || !hasOwnProperty$1.call(object, key)))) {
146
- result.push(key);
147
- }
148
- }
149
- return result;
150
- }
151
-
152
- /**
153
- * Creates an array of the own and inherited enumerable property names of `object`.
154
- *
155
- * **Note:** Non-object values are coerced to objects.
156
- *
157
- * @static
158
- * @memberOf _
159
- * @since 3.0.0
160
- * @category Object
161
- * @param {Object} object The object to query.
162
- * @returns {Array} Returns the array of property names.
163
- * @example
164
- *
165
- * function Foo() {
166
- * this.a = 1;
167
- * this.b = 2;
168
- * }
169
- *
170
- * Foo.prototype.c = 3;
171
- *
172
- * _.keysIn(new Foo);
173
- * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
174
- */
175
- function keysIn(object) {
176
- return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
177
- }
178
-
179
- /** Built-in value references. */
180
- var getPrototype = overArg(Object.getPrototypeOf, Object);
181
-
182
- /**
183
- * The base implementation of `_.assign` without support for multiple sources
184
- * or `customizer` functions.
185
- *
186
- * @private
187
- * @param {Object} object The destination object.
188
- * @param {Object} source The source object.
189
- * @returns {Object} Returns `object`.
190
- */
191
- function baseAssign(object, source) {
192
- return object && copyObject(source, keys(source), object);
193
- }
194
-
195
- /**
196
- * The base implementation of `_.assignIn` without support for multiple sources
197
- * or `customizer` functions.
198
- *
199
- * @private
200
- * @param {Object} object The destination object.
201
- * @param {Object} source The source object.
202
- * @returns {Object} Returns `object`.
203
- */
204
- function baseAssignIn(object, source) {
205
- return object && copyObject(source, keysIn(source), object);
206
- }
207
-
208
- /** Detect free variable `exports`. */
209
- var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;
210
-
211
- /** Detect free variable `module`. */
212
- var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
213
-
214
- /** Detect the popular CommonJS extension `module.exports`. */
215
- var moduleExports = freeModule && freeModule.exports === freeExports;
216
-
217
- /** Built-in value references. */
218
- var Buffer = moduleExports ? root.Buffer : undefined,
219
- allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;
220
-
221
- /**
222
- * Creates a clone of `buffer`.
223
- *
224
- * @private
225
- * @param {Buffer} buffer The buffer to clone.
226
- * @param {boolean} [isDeep] Specify a deep clone.
227
- * @returns {Buffer} Returns the cloned buffer.
228
- */
229
- function cloneBuffer(buffer, isDeep) {
230
- if (isDeep) {
231
- return buffer.slice();
232
- }
233
- var length = buffer.length,
234
- result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
235
-
236
- buffer.copy(result);
237
- return result;
238
- }
239
-
240
- /**
241
- * Copies own symbols of `source` to `object`.
242
- *
243
- * @private
244
- * @param {Object} source The object to copy symbols from.
245
- * @param {Object} [object={}] The object to copy symbols to.
246
- * @returns {Object} Returns `object`.
247
- */
248
- function copySymbols(source, object) {
249
- return copyObject(source, getSymbols(source), object);
250
- }
251
-
252
- /* Built-in method references for those with the same name as other `lodash` methods. */
253
- var nativeGetSymbols = Object.getOwnPropertySymbols;
254
-
255
- /**
256
- * Creates an array of the own and inherited enumerable symbols of `object`.
257
- *
258
- * @private
259
- * @param {Object} object The object to query.
260
- * @returns {Array} Returns the array of symbols.
261
- */
262
- var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {
263
- var result = [];
264
- while (object) {
265
- arrayPush(result, getSymbols(object));
266
- object = getPrototype(object);
267
- }
268
- return result;
269
- };
270
-
271
- /**
272
- * Copies own and inherited symbols of `source` to `object`.
273
- *
274
- * @private
275
- * @param {Object} source The object to copy symbols from.
276
- * @param {Object} [object={}] The object to copy symbols to.
277
- * @returns {Object} Returns `object`.
278
- */
279
- function copySymbolsIn(source, object) {
280
- return copyObject(source, getSymbolsIn(source), object);
281
- }
282
-
283
- /**
284
- * Creates an array of own and inherited enumerable property names and
285
- * symbols of `object`.
286
- *
287
- * @private
288
- * @param {Object} object The object to query.
289
- * @returns {Array} Returns the array of property names and symbols.
290
- */
291
- function getAllKeysIn(object) {
292
- return baseGetAllKeys(object, keysIn, getSymbolsIn);
293
- }
294
-
295
- /** Used for built-in method references. */
296
- var objectProto = Object.prototype;
297
-
298
- /** Used to check objects for own properties. */
299
- var hasOwnProperty = objectProto.hasOwnProperty;
300
-
301
- /**
302
- * Initializes an array clone.
303
- *
304
- * @private
305
- * @param {Array} array The array to clone.
306
- * @returns {Array} Returns the initialized clone.
307
- */
308
- function initCloneArray(array) {
309
- var length = array.length,
310
- result = new array.constructor(length);
311
-
312
- // Add properties assigned by `RegExp#exec`.
313
- if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
314
- result.index = array.index;
315
- result.input = array.input;
316
- }
317
- return result;
318
- }
319
-
320
- /**
321
- * Creates a clone of `arrayBuffer`.
322
- *
323
- * @private
324
- * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
325
- * @returns {ArrayBuffer} Returns the cloned array buffer.
326
- */
327
- function cloneArrayBuffer(arrayBuffer) {
328
- var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
329
- new Uint8Array(result).set(new Uint8Array(arrayBuffer));
330
- return result;
331
- }
332
-
333
- /**
334
- * Creates a clone of `dataView`.
335
- *
336
- * @private
337
- * @param {Object} dataView The data view to clone.
338
- * @param {boolean} [isDeep] Specify a deep clone.
339
- * @returns {Object} Returns the cloned data view.
340
- */
341
- function cloneDataView(dataView, isDeep) {
342
- var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
343
- return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
344
- }
345
-
346
- /** Used to match `RegExp` flags from their coerced string values. */
347
- var reFlags = /\w*$/;
348
-
349
- /**
350
- * Creates a clone of `regexp`.
351
- *
352
- * @private
353
- * @param {Object} regexp The regexp to clone.
354
- * @returns {Object} Returns the cloned regexp.
355
- */
356
- function cloneRegExp(regexp) {
357
- var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
358
- result.lastIndex = regexp.lastIndex;
359
- return result;
360
- }
361
-
362
- /** Used to convert symbols to primitives and strings. */
363
- var symbolProto = Symbol$1 ? Symbol$1.prototype : undefined,
364
- symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
365
-
366
- /**
367
- * Creates a clone of the `symbol` object.
368
- *
369
- * @private
370
- * @param {Object} symbol The symbol object to clone.
371
- * @returns {Object} Returns the cloned symbol object.
372
- */
373
- function cloneSymbol(symbol) {
374
- return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
375
- }
376
-
377
- /**
378
- * Creates a clone of `typedArray`.
379
- *
380
- * @private
381
- * @param {Object} typedArray The typed array to clone.
382
- * @param {boolean} [isDeep] Specify a deep clone.
383
- * @returns {Object} Returns the cloned typed array.
384
- */
385
- function cloneTypedArray(typedArray, isDeep) {
386
- var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
387
- return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
388
- }
389
-
390
- /** `Object#toString` result references. */
391
- var boolTag$1 = '[object Boolean]',
392
- dateTag$1 = '[object Date]',
393
- mapTag$2 = '[object Map]',
394
- numberTag$1 = '[object Number]',
395
- regexpTag$1 = '[object RegExp]',
396
- setTag$2 = '[object Set]',
397
- stringTag$1 = '[object String]',
398
- symbolTag$1 = '[object Symbol]';
399
-
400
- var arrayBufferTag$1 = '[object ArrayBuffer]',
401
- dataViewTag$1 = '[object DataView]',
402
- float32Tag$1 = '[object Float32Array]',
403
- float64Tag$1 = '[object Float64Array]',
404
- int8Tag$1 = '[object Int8Array]',
405
- int16Tag$1 = '[object Int16Array]',
406
- int32Tag$1 = '[object Int32Array]',
407
- uint8Tag$1 = '[object Uint8Array]',
408
- uint8ClampedTag$1 = '[object Uint8ClampedArray]',
409
- uint16Tag$1 = '[object Uint16Array]',
410
- uint32Tag$1 = '[object Uint32Array]';
411
-
412
- /**
413
- * Initializes an object clone based on its `toStringTag`.
414
- *
415
- * **Note:** This function only supports cloning values with tags of
416
- * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
417
- *
418
- * @private
419
- * @param {Object} object The object to clone.
420
- * @param {string} tag The `toStringTag` of the object to clone.
421
- * @param {boolean} [isDeep] Specify a deep clone.
422
- * @returns {Object} Returns the initialized clone.
423
- */
424
- function initCloneByTag(object, tag, isDeep) {
425
- var Ctor = object.constructor;
426
- switch (tag) {
427
- case arrayBufferTag$1:
428
- return cloneArrayBuffer(object);
429
-
430
- case boolTag$1:
431
- case dateTag$1:
432
- return new Ctor(+object);
433
-
434
- case dataViewTag$1:
435
- return cloneDataView(object, isDeep);
436
-
437
- case float32Tag$1: case float64Tag$1:
438
- case int8Tag$1: case int16Tag$1: case int32Tag$1:
439
- case uint8Tag$1: case uint8ClampedTag$1: case uint16Tag$1: case uint32Tag$1:
440
- return cloneTypedArray(object, isDeep);
441
-
442
- case mapTag$2:
443
- return new Ctor;
444
-
445
- case numberTag$1:
446
- case stringTag$1:
447
- return new Ctor(object);
448
-
449
- case regexpTag$1:
450
- return cloneRegExp(object);
451
-
452
- case setTag$2:
453
- return new Ctor;
454
-
455
- case symbolTag$1:
456
- return cloneSymbol(object);
457
- }
458
- }
459
-
460
- /**
461
- * Initializes an object clone.
462
- *
463
- * @private
464
- * @param {Object} object The object to clone.
465
- * @returns {Object} Returns the initialized clone.
466
- */
467
- function initCloneObject(object) {
468
- return (typeof object.constructor == 'function' && !isPrototype(object))
469
- ? baseCreate(getPrototype(object))
470
- : {};
471
- }
472
-
473
- /** `Object#toString` result references. */
474
- var mapTag$1 = '[object Map]';
475
-
476
- /**
477
- * The base implementation of `_.isMap` without Node.js optimizations.
478
- *
479
- * @private
480
- * @param {*} value The value to check.
481
- * @returns {boolean} Returns `true` if `value` is a map, else `false`.
482
- */
483
- function baseIsMap(value) {
484
- return isObjectLike(value) && getTag(value) == mapTag$1;
485
- }
486
-
487
- /* Node.js helper references. */
488
- var nodeIsMap = nodeUtil && nodeUtil.isMap;
489
-
490
- /**
491
- * Checks if `value` is classified as a `Map` object.
492
- *
493
- * @static
494
- * @memberOf _
495
- * @since 4.3.0
496
- * @category Lang
497
- * @param {*} value The value to check.
498
- * @returns {boolean} Returns `true` if `value` is a map, else `false`.
499
- * @example
500
- *
501
- * _.isMap(new Map);
502
- * // => true
503
- *
504
- * _.isMap(new WeakMap);
505
- * // => false
506
- */
507
- var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;
508
-
509
- /** `Object#toString` result references. */
510
- var setTag$1 = '[object Set]';
511
-
512
- /**
513
- * The base implementation of `_.isSet` without Node.js optimizations.
514
- *
515
- * @private
516
- * @param {*} value The value to check.
517
- * @returns {boolean} Returns `true` if `value` is a set, else `false`.
518
- */
519
- function baseIsSet(value) {
520
- return isObjectLike(value) && getTag(value) == setTag$1;
521
- }
522
-
523
- /* Node.js helper references. */
524
- var nodeIsSet = nodeUtil && nodeUtil.isSet;
525
-
526
- /**
527
- * Checks if `value` is classified as a `Set` object.
528
- *
529
- * @static
530
- * @memberOf _
531
- * @since 4.3.0
532
- * @category Lang
533
- * @param {*} value The value to check.
534
- * @returns {boolean} Returns `true` if `value` is a set, else `false`.
535
- * @example
536
- *
537
- * _.isSet(new Set);
538
- * // => true
539
- *
540
- * _.isSet(new WeakSet);
541
- * // => false
542
- */
543
- var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
544
-
545
- /** Used to compose bitmasks for cloning. */
546
- var CLONE_DEEP_FLAG = 1,
547
- CLONE_FLAT_FLAG = 2,
548
- CLONE_SYMBOLS_FLAG = 4;
549
-
550
- /** `Object#toString` result references. */
551
- var argsTag = '[object Arguments]',
552
- arrayTag = '[object Array]',
553
- boolTag = '[object Boolean]',
554
- dateTag = '[object Date]',
555
- errorTag = '[object Error]',
556
- funcTag = '[object Function]',
557
- genTag = '[object GeneratorFunction]',
558
- mapTag = '[object Map]',
559
- numberTag = '[object Number]',
560
- objectTag = '[object Object]',
561
- regexpTag = '[object RegExp]',
562
- setTag = '[object Set]',
563
- stringTag = '[object String]',
564
- symbolTag = '[object Symbol]',
565
- weakMapTag = '[object WeakMap]';
566
-
567
- var arrayBufferTag = '[object ArrayBuffer]',
568
- dataViewTag = '[object DataView]',
569
- float32Tag = '[object Float32Array]',
570
- float64Tag = '[object Float64Array]',
571
- int8Tag = '[object Int8Array]',
572
- int16Tag = '[object Int16Array]',
573
- int32Tag = '[object Int32Array]',
574
- uint8Tag = '[object Uint8Array]',
575
- uint8ClampedTag = '[object Uint8ClampedArray]',
576
- uint16Tag = '[object Uint16Array]',
577
- uint32Tag = '[object Uint32Array]';
578
-
579
- /** Used to identify `toStringTag` values supported by `_.clone`. */
580
- var cloneableTags = {};
581
- cloneableTags[argsTag] = cloneableTags[arrayTag] =
582
- cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =
583
- cloneableTags[boolTag] = cloneableTags[dateTag] =
584
- cloneableTags[float32Tag] = cloneableTags[float64Tag] =
585
- cloneableTags[int8Tag] = cloneableTags[int16Tag] =
586
- cloneableTags[int32Tag] = cloneableTags[mapTag] =
587
- cloneableTags[numberTag] = cloneableTags[objectTag] =
588
- cloneableTags[regexpTag] = cloneableTags[setTag] =
589
- cloneableTags[stringTag] = cloneableTags[symbolTag] =
590
- cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =
591
- cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
592
- cloneableTags[errorTag] = cloneableTags[funcTag] =
593
- cloneableTags[weakMapTag] = false;
594
-
595
- /**
596
- * The base implementation of `_.clone` and `_.cloneDeep` which tracks
597
- * traversed objects.
598
- *
599
- * @private
600
- * @param {*} value The value to clone.
601
- * @param {boolean} bitmask The bitmask flags.
602
- * 1 - Deep clone
603
- * 2 - Flatten inherited properties
604
- * 4 - Clone symbols
605
- * @param {Function} [customizer] The function to customize cloning.
606
- * @param {string} [key] The key of `value`.
607
- * @param {Object} [object] The parent object of `value`.
608
- * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
609
- * @returns {*} Returns the cloned value.
610
- */
611
- function baseClone(value, bitmask, customizer, key, object, stack) {
612
- var result,
613
- isDeep = bitmask & CLONE_DEEP_FLAG,
614
- isFlat = bitmask & CLONE_FLAT_FLAG,
615
- isFull = bitmask & CLONE_SYMBOLS_FLAG;
616
-
617
- if (customizer) {
618
- result = object ? customizer(value, key, object, stack) : customizer(value);
619
- }
620
- if (result !== undefined) {
621
- return result;
622
- }
623
- if (!isObject(value)) {
624
- return value;
625
- }
626
- var isArr = isArray(value);
627
- if (isArr) {
628
- result = initCloneArray(value);
629
- if (!isDeep) {
630
- return copyArray(value, result);
631
- }
632
- } else {
633
- var tag = getTag(value),
634
- isFunc = tag == funcTag || tag == genTag;
635
-
636
- if (isBuffer(value)) {
637
- return cloneBuffer(value, isDeep);
638
- }
639
- if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
640
- result = (isFlat || isFunc) ? {} : initCloneObject(value);
641
- if (!isDeep) {
642
- return isFlat
643
- ? copySymbolsIn(value, baseAssignIn(result, value))
644
- : copySymbols(value, baseAssign(result, value));
645
- }
646
- } else {
647
- if (!cloneableTags[tag]) {
648
- return object ? value : {};
649
- }
650
- result = initCloneByTag(value, tag, isDeep);
651
- }
652
- }
653
- // Check for circular references and return its corresponding clone.
654
- stack || (stack = new Stack);
655
- var stacked = stack.get(value);
656
- if (stacked) {
657
- return stacked;
658
- }
659
- stack.set(value, result);
660
-
661
- if (isSet(value)) {
662
- value.forEach(function(subValue) {
663
- result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
664
- });
665
- } else if (isMap(value)) {
666
- value.forEach(function(subValue, key) {
667
- result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));
668
- });
669
- }
670
-
671
- var keysFunc = isFull
672
- ? (isFlat ? getAllKeysIn : getAllKeys)
673
- : (isFlat ? keysIn : keys);
674
-
675
- var props = isArr ? undefined : keysFunc(value);
676
- arrayEach(props || value, function(subValue, key) {
677
- if (props) {
678
- key = subValue;
679
- subValue = value[key];
680
- }
681
- // Recursively populate clone (susceptible to call stack limits).
682
- assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));
683
- });
684
- return result;
685
- }
686
-
687
- export { copyArray as a, baseClone as b, copyObject as c, cloneBuffer as d, cloneTypedArray as e, getAllKeysIn as f, getPrototype as g, initCloneObject as i, keysIn as k };