@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.
- package/dist/es/chunk/Bw0Rhd-r.mjs +110 -0
- package/dist/es/chunk/CqTdDZkE.mjs +31 -0
- package/dist/es/chunk/{DAnWZLYj.mjs → CzWfBa_8.mjs} +96 -2
- package/dist/es/chunk/D229kQ56.mjs +28 -0
- package/dist/es/chunk/{Cxx_YWUC.mjs → DcouM6gM.mjs} +6 -548
- package/dist/es/chunk/Fo0dZYnz.mjs +128 -0
- package/dist/es/chunk/KanuIcmc.mjs +412 -0
- package/dist/es/chunk/{B71xEPfK.mjs → uuUHUjSk.mjs} +4 -35
- package/dist/es/components/backbottom/backbottom.mjs +3 -2
- package/dist/es/components/button/button.mjs +4 -5
- package/dist/es/components/choice/choice.mjs +4 -4
- package/dist/es/components/choice/index.css +1 -1
- package/dist/es/components/color-switch/color-switch.mjs +73 -1046
- package/dist/es/components/color-switch/index.css +1 -1
- package/dist/es/components/cropper/cropper.mjs +11 -117
- package/dist/es/components/cropper/index.css +1 -1
- package/dist/es/components/currency/currency.mjs +4 -5
- package/dist/es/components/daterange-picker/daterange-picker.mjs +8 -6253
- package/dist/es/components/dialog/dialog.mjs +7 -400
- package/dist/es/components/dialog/index.css +1 -1
- package/dist/es/components/dialog-camera-upload/dialog-camera-upload.mjs +10 -11
- package/dist/es/components/dialog-map-point/dialog-map-point.mjs +4 -3
- package/dist/es/components/dialog-upload-images/dialog-upload-images.mjs +9 -1374
- package/dist/es/components/dialog-upload-images/index.css +1 -1
- package/dist/es/components/drag-verify/drag-verify.mjs +3 -2
- package/dist/es/components/drawer/drawer.mjs +10 -352
- package/dist/es/components/drawer/index.css +1 -1
- package/dist/es/components/easy-pagination/easy-pagination.mjs +3 -2
- package/dist/es/components/explorer/explorer.mjs +3 -3
- package/dist/es/components/explorer-column-table/explorer-column-table.mjs +5 -7
- package/dist/es/components/explorer-column-table/index.css +1 -1
- package/dist/es/components/explorer-container/explorer-container.d.ts +1 -1
- package/dist/es/components/explorer-container/explorer-container.mjs +4 -3
- package/dist/es/components/explorer-filter/explorer-filter.mjs +5 -4
- package/dist/es/components/explorer-footer/explorer-footer.mjs +4 -8
- package/dist/es/components/explorer-form/explorer-form.mjs +4 -3
- package/dist/es/components/explorer-list/explorer-list.mjs +5 -4
- package/dist/es/components/explorer-modal-form/explorer-modal-form.mjs +4 -3
- package/dist/es/components/explorer-panel/explorer-panel.mjs +3 -3
- package/dist/es/components/explorer-query/explorer-query.mjs +9 -2201
- package/dist/es/components/explorer-query/index.css +1 -1
- package/dist/es/components/explorer-table/explorer-table.mjs +5 -8
- package/dist/es/components/explorer-tools/explorer-tools.mjs +13 -264
- package/dist/es/components/explorer-tools/index.css +1 -1
- package/dist/es/components/explorer-tree/explorer-tree.mjs +4 -5
- package/dist/es/components/icon-picker/icon-picker.mjs +8 -12
- package/dist/es/components/image/image.mjs +4 -4
- package/dist/es/components/info-tooltip/info-tooltip.mjs +336 -4
- package/dist/es/components/input/input.mjs +3 -2
- package/dist/es/components/input-number/input-number.mjs +3 -3
- package/dist/es/components/pca-picker/index.css +1 -1
- package/dist/es/components/pca-picker/pca-picker.mjs +443 -601
- package/dist/es/components/screenfull/screenfull.mjs +4 -3
- package/dist/es/components/scrollbar/scrollbar.mjs +3 -2
- package/dist/es/components/select/select.mjs +3 -5
- package/dist/es/components/single-player/index.css +1 -1
- package/dist/es/components/single-player/single-player.mjs +10 -1087
- package/dist/es/components/splitter/splitter.mjs +3 -3
- package/dist/es/components/splitter-panel/splitter-panel.mjs +3 -3
- package/dist/es/components/switch/index.css +1 -1
- package/dist/es/components/switch/switch.mjs +9 -395
- package/dist/es/components/tags/tags.mjs +7 -9
- package/dist/es/components/text-ellipsis/text-ellipsis.mjs +3 -3
- package/dist/es/components/thousand-input/thousand-input.mjs +33 -1
- package/dist/es/components/tinymce/tinymce.mjs +4 -3
- package/dist/es/components/transfer/transfer.mjs +3 -4
- package/dist/es/components/transfer-panel/transfer-panel.mjs +5 -4
- package/dist/es/components/tree-picker/popover-cascader.css +1 -1
- package/dist/es/components/tree-picker/tree-picker.mjs +5 -10
- package/dist/es/index.mjs +1 -1
- package/dist/index.css +13 -40
- package/package.json +1 -1
- package/dist/es/chunk/B-rxnVJv.mjs +0 -3
- package/dist/es/chunk/B5HpgPRt.mjs +0 -69
- package/dist/es/chunk/BBhZKpIc.mjs +0 -2179
- package/dist/es/chunk/BDcsaNYa.mjs +0 -59
- package/dist/es/chunk/BTSSEFfD.mjs +0 -319
- package/dist/es/chunk/BTpNRPQW.mjs +0 -55
- package/dist/es/chunk/BVBK1U57.mjs +0 -96
- package/dist/es/chunk/Bc6yUGLs.mjs +0 -45
- package/dist/es/chunk/BjVI1XMz.mjs +0 -40
- package/dist/es/chunk/BlzQCBDu.mjs +0 -5741
- package/dist/es/chunk/BpJKnxlF.mjs +0 -476
- package/dist/es/chunk/Brp-qSBw.mjs +0 -2003
- package/dist/es/chunk/BunQI8Jb.mjs +0 -390
- package/dist/es/chunk/C0XgBrDz.mjs +0 -775
- package/dist/es/chunk/C0pTANRX.mjs +0 -109
- package/dist/es/chunk/CBMjhoFP.mjs +0 -101
- package/dist/es/chunk/CBiNtNvQ.mjs +0 -242
- package/dist/es/chunk/CBlJeNBO.mjs +0 -890
- package/dist/es/chunk/CCVL_Zj-.mjs +0 -427
- package/dist/es/chunk/CEl4MyfJ.mjs +0 -252
- package/dist/es/chunk/CJK5_jsA.mjs +0 -53
- package/dist/es/chunk/CKOcwq5V.mjs +0 -44
- package/dist/es/chunk/COs9dJZa.mjs +0 -66
- package/dist/es/chunk/CPt6MxJW.mjs +0 -375
- package/dist/es/chunk/CVqW0jzp.mjs +0 -107
- package/dist/es/chunk/CccIsEqA.mjs +0 -128
- package/dist/es/chunk/CjLR27-a.mjs +0 -582
- package/dist/es/chunk/CoGexPPD.mjs +0 -2192
- package/dist/es/chunk/CsLIbnzG.mjs +0 -64
- package/dist/es/chunk/Ct6q2FXg.mjs +0 -5
- package/dist/es/chunk/Cuq5meQh.mjs +0 -184
- package/dist/es/chunk/CvYIOfT1.mjs +0 -23
- package/dist/es/chunk/CxHJBf4l.mjs +0 -31
- package/dist/es/chunk/CzdaOBtA.mjs +0 -66
- package/dist/es/chunk/D0QTifnI.mjs +0 -54
- package/dist/es/chunk/D1QnA2iT.mjs +0 -229
- package/dist/es/chunk/D3AvJlVX.mjs +0 -188
- package/dist/es/chunk/D9Lr0Bzb.mjs +0 -1136
- package/dist/es/chunk/DCkPv0hy.mjs +0 -29
- package/dist/es/chunk/DRwwUUhy.mjs +0 -49
- package/dist/es/chunk/DX-2VRY2.mjs +0 -836
- package/dist/es/chunk/DZ2oTFad.mjs +0 -687
- package/dist/es/chunk/D_bou1py.mjs +0 -55
- package/dist/es/chunk/Da199A5L.mjs +0 -314
- package/dist/es/chunk/DbhQlaOz.mjs +0 -94
- package/dist/es/chunk/Dgu95mOy.mjs +0 -237
- package/dist/es/chunk/DhGOsWxx.mjs +0 -6
- package/dist/es/chunk/Dm_Sj5aH.mjs +0 -487
- package/dist/es/chunk/Dmi-1GRO.mjs +0 -163
- package/dist/es/chunk/DodoD9a9.mjs +0 -52
- package/dist/es/chunk/DrrVDcwm.mjs +0 -955
- package/dist/es/chunk/Du_zJ1Fz.mjs +0 -49
- package/dist/es/chunk/DxxbB5jY.mjs +0 -34
- package/dist/es/chunk/Gk1J52Yw.mjs +0 -207
- package/dist/es/chunk/NsldgdCh.mjs +0 -704
- package/dist/es/chunk/V6KjsUQN.mjs +0 -35
- package/dist/es/chunk/eEsLFV3s.mjs +0 -76
- package/dist/es/chunk/fqiLhk0V.mjs +0 -2065
- package/dist/es/chunk/nxVM7re4.mjs +0 -35
- package/dist/es/chunk/s7HLrANj.mjs +0 -215
- package/dist/es/chunk/vPhxogl3.mjs +0 -19
- package/dist/es/components/icon/icon2.mjs +0 -27
|
@@ -1,174 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
/** Detect free variable `self`. */
|
|
5
|
-
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
|
|
6
|
-
|
|
7
|
-
/** Used as a reference to the global object. */
|
|
8
|
-
var root = freeGlobal || freeSelf || Function('return this')();
|
|
9
|
-
|
|
10
|
-
/** Built-in value references. */
|
|
11
|
-
var Symbol$1 = root.Symbol;
|
|
12
|
-
|
|
13
|
-
/** Used for built-in method references. */
|
|
14
|
-
var objectProto$6 = Object.prototype;
|
|
15
|
-
|
|
16
|
-
/** Used to check objects for own properties. */
|
|
17
|
-
var hasOwnProperty$5 = objectProto$6.hasOwnProperty;
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Used to resolve the
|
|
21
|
-
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
22
|
-
* of values.
|
|
23
|
-
*/
|
|
24
|
-
var nativeObjectToString$1 = objectProto$6.toString;
|
|
25
|
-
|
|
26
|
-
/** Built-in value references. */
|
|
27
|
-
var symToStringTag$1 = Symbol$1 ? Symbol$1.toStringTag : undefined;
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
|
|
31
|
-
*
|
|
32
|
-
* @private
|
|
33
|
-
* @param {*} value The value to query.
|
|
34
|
-
* @returns {string} Returns the raw `toStringTag`.
|
|
35
|
-
*/
|
|
36
|
-
function getRawTag(value) {
|
|
37
|
-
var isOwn = hasOwnProperty$5.call(value, symToStringTag$1),
|
|
38
|
-
tag = value[symToStringTag$1];
|
|
39
|
-
|
|
40
|
-
try {
|
|
41
|
-
value[symToStringTag$1] = undefined;
|
|
42
|
-
var unmasked = true;
|
|
43
|
-
} catch (e) {}
|
|
44
|
-
|
|
45
|
-
var result = nativeObjectToString$1.call(value);
|
|
46
|
-
if (unmasked) {
|
|
47
|
-
if (isOwn) {
|
|
48
|
-
value[symToStringTag$1] = tag;
|
|
49
|
-
} else {
|
|
50
|
-
delete value[symToStringTag$1];
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
return result;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/** Used for built-in method references. */
|
|
57
|
-
var objectProto$5 = Object.prototype;
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* Used to resolve the
|
|
61
|
-
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
62
|
-
* of values.
|
|
63
|
-
*/
|
|
64
|
-
var nativeObjectToString = objectProto$5.toString;
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* Converts `value` to a string using `Object.prototype.toString`.
|
|
68
|
-
*
|
|
69
|
-
* @private
|
|
70
|
-
* @param {*} value The value to convert.
|
|
71
|
-
* @returns {string} Returns the converted string.
|
|
72
|
-
*/
|
|
73
|
-
function objectToString(value) {
|
|
74
|
-
return nativeObjectToString.call(value);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
/** `Object#toString` result references. */
|
|
78
|
-
var nullTag = '[object Null]',
|
|
79
|
-
undefinedTag = '[object Undefined]';
|
|
80
|
-
|
|
81
|
-
/** Built-in value references. */
|
|
82
|
-
var symToStringTag = Symbol$1 ? Symbol$1.toStringTag : undefined;
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* The base implementation of `getTag` without fallbacks for buggy environments.
|
|
86
|
-
*
|
|
87
|
-
* @private
|
|
88
|
-
* @param {*} value The value to query.
|
|
89
|
-
* @returns {string} Returns the `toStringTag`.
|
|
90
|
-
*/
|
|
91
|
-
function baseGetTag(value) {
|
|
92
|
-
if (value == null) {
|
|
93
|
-
return value === undefined ? undefinedTag : nullTag;
|
|
94
|
-
}
|
|
95
|
-
return (symToStringTag && symToStringTag in Object(value))
|
|
96
|
-
? getRawTag(value)
|
|
97
|
-
: objectToString(value);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
102
|
-
* and has a `typeof` result of "object".
|
|
103
|
-
*
|
|
104
|
-
* @static
|
|
105
|
-
* @memberOf _
|
|
106
|
-
* @since 4.0.0
|
|
107
|
-
* @category Lang
|
|
108
|
-
* @param {*} value The value to check.
|
|
109
|
-
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
110
|
-
* @example
|
|
111
|
-
*
|
|
112
|
-
* _.isObjectLike({});
|
|
113
|
-
* // => true
|
|
114
|
-
*
|
|
115
|
-
* _.isObjectLike([1, 2, 3]);
|
|
116
|
-
* // => true
|
|
117
|
-
*
|
|
118
|
-
* _.isObjectLike(_.noop);
|
|
119
|
-
* // => false
|
|
120
|
-
*
|
|
121
|
-
* _.isObjectLike(null);
|
|
122
|
-
* // => false
|
|
123
|
-
*/
|
|
124
|
-
function isObjectLike(value) {
|
|
125
|
-
return value != null && typeof value == 'object';
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
/** `Object#toString` result references. */
|
|
129
|
-
var symbolTag = '[object Symbol]';
|
|
130
|
-
|
|
131
|
-
/**
|
|
132
|
-
* Checks if `value` is classified as a `Symbol` primitive or object.
|
|
133
|
-
*
|
|
134
|
-
* @static
|
|
135
|
-
* @memberOf _
|
|
136
|
-
* @since 4.0.0
|
|
137
|
-
* @category Lang
|
|
138
|
-
* @param {*} value The value to check.
|
|
139
|
-
* @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
|
|
140
|
-
* @example
|
|
141
|
-
*
|
|
142
|
-
* _.isSymbol(Symbol.iterator);
|
|
143
|
-
* // => true
|
|
144
|
-
*
|
|
145
|
-
* _.isSymbol('abc');
|
|
146
|
-
* // => false
|
|
147
|
-
*/
|
|
148
|
-
function isSymbol(value) {
|
|
149
|
-
return typeof value == 'symbol' ||
|
|
150
|
-
(isObjectLike(value) && baseGetTag(value) == symbolTag);
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
/**
|
|
154
|
-
* A specialized version of `_.map` for arrays without support for iteratee
|
|
155
|
-
* shorthands.
|
|
156
|
-
*
|
|
157
|
-
* @private
|
|
158
|
-
* @param {Array} [array] The array to iterate over.
|
|
159
|
-
* @param {Function} iteratee The function invoked per iteration.
|
|
160
|
-
* @returns {Array} Returns the new mapped array.
|
|
161
|
-
*/
|
|
162
|
-
function arrayMap(array, iteratee) {
|
|
163
|
-
var index = -1,
|
|
164
|
-
length = array == null ? 0 : array.length,
|
|
165
|
-
result = Array(length);
|
|
166
|
-
|
|
167
|
-
while (++index < length) {
|
|
168
|
-
result[index] = iteratee(array[index], index, array);
|
|
169
|
-
}
|
|
170
|
-
return result;
|
|
171
|
-
}
|
|
1
|
+
import { b as baseGetTag, r as root, i as isObjectLike } from './Fo0dZYnz.mjs';
|
|
2
|
+
import { i as isObject } from './CqTdDZkE.mjs';
|
|
172
3
|
|
|
173
4
|
/**
|
|
174
5
|
* Checks if `value` is classified as an `Array` object.
|
|
@@ -195,64 +26,6 @@ function arrayMap(array, iteratee) {
|
|
|
195
26
|
*/
|
|
196
27
|
var isArray = Array.isArray;
|
|
197
28
|
|
|
198
|
-
/** Used to convert symbols to primitives and strings. */
|
|
199
|
-
var symbolProto = Symbol$1 ? Symbol$1.prototype : undefined,
|
|
200
|
-
symbolToString = symbolProto ? symbolProto.toString : undefined;
|
|
201
|
-
|
|
202
|
-
/**
|
|
203
|
-
* The base implementation of `_.toString` which doesn't convert nullish
|
|
204
|
-
* values to empty strings.
|
|
205
|
-
*
|
|
206
|
-
* @private
|
|
207
|
-
* @param {*} value The value to process.
|
|
208
|
-
* @returns {string} Returns the string.
|
|
209
|
-
*/
|
|
210
|
-
function baseToString(value) {
|
|
211
|
-
// Exit early for strings to avoid a performance hit in some environments.
|
|
212
|
-
if (typeof value == 'string') {
|
|
213
|
-
return value;
|
|
214
|
-
}
|
|
215
|
-
if (isArray(value)) {
|
|
216
|
-
// Recursively convert values (susceptible to call stack limits).
|
|
217
|
-
return arrayMap(value, baseToString) + '';
|
|
218
|
-
}
|
|
219
|
-
if (isSymbol(value)) {
|
|
220
|
-
return symbolToString ? symbolToString.call(value) : '';
|
|
221
|
-
}
|
|
222
|
-
var result = (value + '');
|
|
223
|
-
return (result == '0' && (1 / value) == -Infinity) ? '-0' : result;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
/**
|
|
227
|
-
* Checks if `value` is the
|
|
228
|
-
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
|
229
|
-
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
|
230
|
-
*
|
|
231
|
-
* @static
|
|
232
|
-
* @memberOf _
|
|
233
|
-
* @since 0.1.0
|
|
234
|
-
* @category Lang
|
|
235
|
-
* @param {*} value The value to check.
|
|
236
|
-
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
|
237
|
-
* @example
|
|
238
|
-
*
|
|
239
|
-
* _.isObject({});
|
|
240
|
-
* // => true
|
|
241
|
-
*
|
|
242
|
-
* _.isObject([1, 2, 3]);
|
|
243
|
-
* // => true
|
|
244
|
-
*
|
|
245
|
-
* _.isObject(_.noop);
|
|
246
|
-
* // => true
|
|
247
|
-
*
|
|
248
|
-
* _.isObject(null);
|
|
249
|
-
* // => false
|
|
250
|
-
*/
|
|
251
|
-
function isObject(value) {
|
|
252
|
-
var type = typeof value;
|
|
253
|
-
return value != null && (type == 'object' || type == 'function');
|
|
254
|
-
}
|
|
255
|
-
|
|
256
29
|
/** `Object#toString` result references. */
|
|
257
30
|
var asyncTag = '[object AsyncFunction]',
|
|
258
31
|
funcTag = '[object Function]',
|
|
@@ -342,17 +115,17 @@ var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
|
342
115
|
|
|
343
116
|
/** Used for built-in method references. */
|
|
344
117
|
var funcProto = Function.prototype,
|
|
345
|
-
objectProto$
|
|
118
|
+
objectProto$3 = Object.prototype;
|
|
346
119
|
|
|
347
120
|
/** Used to resolve the decompiled source of functions. */
|
|
348
121
|
var funcToString = funcProto.toString;
|
|
349
122
|
|
|
350
123
|
/** Used to check objects for own properties. */
|
|
351
|
-
var hasOwnProperty$
|
|
124
|
+
var hasOwnProperty$3 = objectProto$3.hasOwnProperty;
|
|
352
125
|
|
|
353
126
|
/** Used to detect if a method is native. */
|
|
354
127
|
var reIsNative = RegExp('^' +
|
|
355
|
-
funcToString.call(hasOwnProperty$
|
|
128
|
+
funcToString.call(hasOwnProperty$3).replace(reRegExpChar, '\\$&')
|
|
356
129
|
.replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
|
|
357
130
|
);
|
|
358
131
|
|
|
@@ -397,14 +170,6 @@ function getNative(object, key) {
|
|
|
397
170
|
return baseIsNative(value) ? value : undefined;
|
|
398
171
|
}
|
|
399
172
|
|
|
400
|
-
var defineProperty = (function() {
|
|
401
|
-
try {
|
|
402
|
-
var func = getNative(Object, 'defineProperty');
|
|
403
|
-
func({}, '', {});
|
|
404
|
-
return func;
|
|
405
|
-
} catch (e) {}
|
|
406
|
-
}());
|
|
407
|
-
|
|
408
173
|
/** Used as references for various `Number` constants. */
|
|
409
174
|
var MAX_SAFE_INTEGER$1 = 9007199254740991;
|
|
410
175
|
|
|
@@ -429,28 +194,6 @@ function isIndex(value, length) {
|
|
|
429
194
|
(value > -1 && value % 1 == 0 && value < length);
|
|
430
195
|
}
|
|
431
196
|
|
|
432
|
-
/**
|
|
433
|
-
* The base implementation of `assignValue` and `assignMergeValue` without
|
|
434
|
-
* value checks.
|
|
435
|
-
*
|
|
436
|
-
* @private
|
|
437
|
-
* @param {Object} object The object to modify.
|
|
438
|
-
* @param {string} key The key of the property to assign.
|
|
439
|
-
* @param {*} value The value to assign.
|
|
440
|
-
*/
|
|
441
|
-
function baseAssignValue(object, key, value) {
|
|
442
|
-
if (key == '__proto__' && defineProperty) {
|
|
443
|
-
defineProperty(object, key, {
|
|
444
|
-
'configurable': true,
|
|
445
|
-
'enumerable': true,
|
|
446
|
-
'value': value,
|
|
447
|
-
'writable': true
|
|
448
|
-
});
|
|
449
|
-
} else {
|
|
450
|
-
object[key] = value;
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
|
|
454
197
|
/**
|
|
455
198
|
* Performs a
|
|
456
199
|
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
@@ -487,30 +230,6 @@ function eq(value, other) {
|
|
|
487
230
|
return value === other || (value !== value && other !== other);
|
|
488
231
|
}
|
|
489
232
|
|
|
490
|
-
/** Used for built-in method references. */
|
|
491
|
-
var objectProto$3 = Object.prototype;
|
|
492
|
-
|
|
493
|
-
/** Used to check objects for own properties. */
|
|
494
|
-
var hasOwnProperty$3 = objectProto$3.hasOwnProperty;
|
|
495
|
-
|
|
496
|
-
/**
|
|
497
|
-
* Assigns `value` to `key` of `object` if the existing value is not equivalent
|
|
498
|
-
* using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
499
|
-
* for equality comparisons.
|
|
500
|
-
*
|
|
501
|
-
* @private
|
|
502
|
-
* @param {Object} object The object to modify.
|
|
503
|
-
* @param {string} key The key of the property to assign.
|
|
504
|
-
* @param {*} value The value to assign.
|
|
505
|
-
*/
|
|
506
|
-
function assignValue(object, key, value) {
|
|
507
|
-
var objValue = object[key];
|
|
508
|
-
if (!(hasOwnProperty$3.call(object, key) && eq(objValue, value)) ||
|
|
509
|
-
(value === undefined && !(key in object))) {
|
|
510
|
-
baseAssignValue(object, key, value);
|
|
511
|
-
}
|
|
512
|
-
}
|
|
513
|
-
|
|
514
233
|
/** Used as references for various `Number` constants. */
|
|
515
234
|
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
516
235
|
|
|
@@ -591,31 +310,6 @@ var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsAr
|
|
|
591
310
|
!propertyIsEnumerable.call(value, 'callee');
|
|
592
311
|
};
|
|
593
312
|
|
|
594
|
-
/** Used to match property names within property paths. */
|
|
595
|
-
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
|
|
596
|
-
reIsPlainProp = /^\w*$/;
|
|
597
|
-
|
|
598
|
-
/**
|
|
599
|
-
* Checks if `value` is a property name and not a property path.
|
|
600
|
-
*
|
|
601
|
-
* @private
|
|
602
|
-
* @param {*} value The value to check.
|
|
603
|
-
* @param {Object} [object] The object to query keys on.
|
|
604
|
-
* @returns {boolean} Returns `true` if `value` is a property name, else `false`.
|
|
605
|
-
*/
|
|
606
|
-
function isKey(value, object) {
|
|
607
|
-
if (isArray(value)) {
|
|
608
|
-
return false;
|
|
609
|
-
}
|
|
610
|
-
var type = typeof value;
|
|
611
|
-
if (type == 'number' || type == 'symbol' || type == 'boolean' ||
|
|
612
|
-
value == null || isSymbol(value)) {
|
|
613
|
-
return true;
|
|
614
|
-
}
|
|
615
|
-
return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
|
|
616
|
-
(object != null && value in Object(object));
|
|
617
|
-
}
|
|
618
|
-
|
|
619
313
|
/* Built-in method references that are verified to be native. */
|
|
620
314
|
var nativeCreate = getNative(Object, 'create');
|
|
621
315
|
|
|
@@ -1011,198 +705,6 @@ MapCache.prototype.get = mapCacheGet;
|
|
|
1011
705
|
MapCache.prototype.has = mapCacheHas;
|
|
1012
706
|
MapCache.prototype.set = mapCacheSet;
|
|
1013
707
|
|
|
1014
|
-
/** Error message constants. */
|
|
1015
|
-
var FUNC_ERROR_TEXT = 'Expected a function';
|
|
1016
|
-
|
|
1017
|
-
/**
|
|
1018
|
-
* Creates a function that memoizes the result of `func`. If `resolver` is
|
|
1019
|
-
* provided, it determines the cache key for storing the result based on the
|
|
1020
|
-
* arguments provided to the memoized function. By default, the first argument
|
|
1021
|
-
* provided to the memoized function is used as the map cache key. The `func`
|
|
1022
|
-
* is invoked with the `this` binding of the memoized function.
|
|
1023
|
-
*
|
|
1024
|
-
* **Note:** The cache is exposed as the `cache` property on the memoized
|
|
1025
|
-
* function. Its creation may be customized by replacing the `_.memoize.Cache`
|
|
1026
|
-
* constructor with one whose instances implement the
|
|
1027
|
-
* [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
|
|
1028
|
-
* method interface of `clear`, `delete`, `get`, `has`, and `set`.
|
|
1029
|
-
*
|
|
1030
|
-
* @static
|
|
1031
|
-
* @memberOf _
|
|
1032
|
-
* @since 0.1.0
|
|
1033
|
-
* @category Function
|
|
1034
|
-
* @param {Function} func The function to have its output memoized.
|
|
1035
|
-
* @param {Function} [resolver] The function to resolve the cache key.
|
|
1036
|
-
* @returns {Function} Returns the new memoized function.
|
|
1037
|
-
* @example
|
|
1038
|
-
*
|
|
1039
|
-
* var object = { 'a': 1, 'b': 2 };
|
|
1040
|
-
* var other = { 'c': 3, 'd': 4 };
|
|
1041
|
-
*
|
|
1042
|
-
* var values = _.memoize(_.values);
|
|
1043
|
-
* values(object);
|
|
1044
|
-
* // => [1, 2]
|
|
1045
|
-
*
|
|
1046
|
-
* values(other);
|
|
1047
|
-
* // => [3, 4]
|
|
1048
|
-
*
|
|
1049
|
-
* object.a = 2;
|
|
1050
|
-
* values(object);
|
|
1051
|
-
* // => [1, 2]
|
|
1052
|
-
*
|
|
1053
|
-
* // Modify the result cache.
|
|
1054
|
-
* values.cache.set(object, ['a', 'b']);
|
|
1055
|
-
* values(object);
|
|
1056
|
-
* // => ['a', 'b']
|
|
1057
|
-
*
|
|
1058
|
-
* // Replace `_.memoize.Cache`.
|
|
1059
|
-
* _.memoize.Cache = WeakMap;
|
|
1060
|
-
*/
|
|
1061
|
-
function memoize(func, resolver) {
|
|
1062
|
-
if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
|
|
1063
|
-
throw new TypeError(FUNC_ERROR_TEXT);
|
|
1064
|
-
}
|
|
1065
|
-
var memoized = function() {
|
|
1066
|
-
var args = arguments,
|
|
1067
|
-
key = resolver ? resolver.apply(this, args) : args[0],
|
|
1068
|
-
cache = memoized.cache;
|
|
1069
|
-
|
|
1070
|
-
if (cache.has(key)) {
|
|
1071
|
-
return cache.get(key);
|
|
1072
|
-
}
|
|
1073
|
-
var result = func.apply(this, args);
|
|
1074
|
-
memoized.cache = cache.set(key, result) || cache;
|
|
1075
|
-
return result;
|
|
1076
|
-
};
|
|
1077
|
-
memoized.cache = new (memoize.Cache || MapCache);
|
|
1078
|
-
return memoized;
|
|
1079
|
-
}
|
|
1080
|
-
|
|
1081
|
-
// Expose `MapCache`.
|
|
1082
|
-
memoize.Cache = MapCache;
|
|
1083
|
-
|
|
1084
|
-
/** Used as the maximum memoize cache size. */
|
|
1085
|
-
var MAX_MEMOIZE_SIZE = 500;
|
|
1086
|
-
|
|
1087
|
-
/**
|
|
1088
|
-
* A specialized version of `_.memoize` which clears the memoized function's
|
|
1089
|
-
* cache when it exceeds `MAX_MEMOIZE_SIZE`.
|
|
1090
|
-
*
|
|
1091
|
-
* @private
|
|
1092
|
-
* @param {Function} func The function to have its output memoized.
|
|
1093
|
-
* @returns {Function} Returns the new memoized function.
|
|
1094
|
-
*/
|
|
1095
|
-
function memoizeCapped(func) {
|
|
1096
|
-
var result = memoize(func, function(key) {
|
|
1097
|
-
if (cache.size === MAX_MEMOIZE_SIZE) {
|
|
1098
|
-
cache.clear();
|
|
1099
|
-
}
|
|
1100
|
-
return key;
|
|
1101
|
-
});
|
|
1102
|
-
|
|
1103
|
-
var cache = result.cache;
|
|
1104
|
-
return result;
|
|
1105
|
-
}
|
|
1106
|
-
|
|
1107
|
-
/** Used to match property names within property paths. */
|
|
1108
|
-
var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
|
|
1109
|
-
|
|
1110
|
-
/** Used to match backslashes in property paths. */
|
|
1111
|
-
var reEscapeChar = /\\(\\)?/g;
|
|
1112
|
-
|
|
1113
|
-
/**
|
|
1114
|
-
* Converts `string` to a property path array.
|
|
1115
|
-
*
|
|
1116
|
-
* @private
|
|
1117
|
-
* @param {string} string The string to convert.
|
|
1118
|
-
* @returns {Array} Returns the property path array.
|
|
1119
|
-
*/
|
|
1120
|
-
var stringToPath = memoizeCapped(function(string) {
|
|
1121
|
-
var result = [];
|
|
1122
|
-
if (string.charCodeAt(0) === 46 /* . */) {
|
|
1123
|
-
result.push('');
|
|
1124
|
-
}
|
|
1125
|
-
string.replace(rePropName, function(match, number, quote, subString) {
|
|
1126
|
-
result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
|
|
1127
|
-
});
|
|
1128
|
-
return result;
|
|
1129
|
-
});
|
|
1130
|
-
|
|
1131
|
-
/**
|
|
1132
|
-
* Converts `value` to a string. An empty string is returned for `null`
|
|
1133
|
-
* and `undefined` values. The sign of `-0` is preserved.
|
|
1134
|
-
*
|
|
1135
|
-
* @static
|
|
1136
|
-
* @memberOf _
|
|
1137
|
-
* @since 4.0.0
|
|
1138
|
-
* @category Lang
|
|
1139
|
-
* @param {*} value The value to convert.
|
|
1140
|
-
* @returns {string} Returns the converted string.
|
|
1141
|
-
* @example
|
|
1142
|
-
*
|
|
1143
|
-
* _.toString(null);
|
|
1144
|
-
* // => ''
|
|
1145
|
-
*
|
|
1146
|
-
* _.toString(-0);
|
|
1147
|
-
* // => '-0'
|
|
1148
|
-
*
|
|
1149
|
-
* _.toString([1, 2, 3]);
|
|
1150
|
-
* // => '1,2,3'
|
|
1151
|
-
*/
|
|
1152
|
-
function toString(value) {
|
|
1153
|
-
return value == null ? '' : baseToString(value);
|
|
1154
|
-
}
|
|
1155
|
-
|
|
1156
|
-
/**
|
|
1157
|
-
* Casts `value` to a path array if it's not one.
|
|
1158
|
-
*
|
|
1159
|
-
* @private
|
|
1160
|
-
* @param {*} value The value to inspect.
|
|
1161
|
-
* @param {Object} [object] The object to query keys on.
|
|
1162
|
-
* @returns {Array} Returns the cast property path array.
|
|
1163
|
-
*/
|
|
1164
|
-
function castPath(value, object) {
|
|
1165
|
-
if (isArray(value)) {
|
|
1166
|
-
return value;
|
|
1167
|
-
}
|
|
1168
|
-
return isKey(value, object) ? [value] : stringToPath(toString(value));
|
|
1169
|
-
}
|
|
1170
|
-
|
|
1171
|
-
/**
|
|
1172
|
-
* Converts `value` to a string key if it's not a string or symbol.
|
|
1173
|
-
*
|
|
1174
|
-
* @private
|
|
1175
|
-
* @param {*} value The value to inspect.
|
|
1176
|
-
* @returns {string|symbol} Returns the key.
|
|
1177
|
-
*/
|
|
1178
|
-
function toKey(value) {
|
|
1179
|
-
if (typeof value == 'string' || isSymbol(value)) {
|
|
1180
|
-
return value;
|
|
1181
|
-
}
|
|
1182
|
-
var result = (value + '');
|
|
1183
|
-
return (result == '0' && (1 / value) == -Infinity) ? '-0' : result;
|
|
1184
|
-
}
|
|
1185
|
-
|
|
1186
|
-
/**
|
|
1187
|
-
* The base implementation of `_.get` without support for default values.
|
|
1188
|
-
*
|
|
1189
|
-
* @private
|
|
1190
|
-
* @param {Object} object The object to query.
|
|
1191
|
-
* @param {Array|string} path The path of the property to get.
|
|
1192
|
-
* @returns {*} Returns the resolved value.
|
|
1193
|
-
*/
|
|
1194
|
-
function baseGet(object, path) {
|
|
1195
|
-
path = castPath(path, object);
|
|
1196
|
-
|
|
1197
|
-
var index = 0,
|
|
1198
|
-
length = path.length;
|
|
1199
|
-
|
|
1200
|
-
while (object != null && index < length) {
|
|
1201
|
-
object = object[toKey(path[index++])];
|
|
1202
|
-
}
|
|
1203
|
-
return (index && index == length) ? object : undefined;
|
|
1204
|
-
}
|
|
1205
|
-
|
|
1206
708
|
/**
|
|
1207
709
|
* Appends the elements of `values` to `array`.
|
|
1208
710
|
*
|
|
@@ -1222,48 +724,4 @@ function arrayPush(array, values) {
|
|
|
1222
724
|
return array;
|
|
1223
725
|
}
|
|
1224
726
|
|
|
1225
|
-
|
|
1226
|
-
* The base implementation of `_.set`.
|
|
1227
|
-
*
|
|
1228
|
-
* @private
|
|
1229
|
-
* @param {Object} object The object to modify.
|
|
1230
|
-
* @param {Array|string} path The path of the property to set.
|
|
1231
|
-
* @param {*} value The value to set.
|
|
1232
|
-
* @param {Function} [customizer] The function to customize path creation.
|
|
1233
|
-
* @returns {Object} Returns `object`.
|
|
1234
|
-
*/
|
|
1235
|
-
function baseSet(object, path, value, customizer) {
|
|
1236
|
-
if (!isObject(object)) {
|
|
1237
|
-
return object;
|
|
1238
|
-
}
|
|
1239
|
-
path = castPath(path, object);
|
|
1240
|
-
|
|
1241
|
-
var index = -1,
|
|
1242
|
-
length = path.length,
|
|
1243
|
-
lastIndex = length - 1,
|
|
1244
|
-
nested = object;
|
|
1245
|
-
|
|
1246
|
-
while (nested != null && ++index < length) {
|
|
1247
|
-
var key = toKey(path[index]),
|
|
1248
|
-
newValue = value;
|
|
1249
|
-
|
|
1250
|
-
if (key === '__proto__' || key === 'constructor' || key === 'prototype') {
|
|
1251
|
-
return object;
|
|
1252
|
-
}
|
|
1253
|
-
|
|
1254
|
-
if (index != lastIndex) {
|
|
1255
|
-
var objValue = nested[key];
|
|
1256
|
-
newValue = undefined;
|
|
1257
|
-
if (newValue === undefined) {
|
|
1258
|
-
newValue = isObject(objValue)
|
|
1259
|
-
? objValue
|
|
1260
|
-
: (isIndex(path[index + 1]) ? [] : {});
|
|
1261
|
-
}
|
|
1262
|
-
}
|
|
1263
|
-
assignValue(nested, key, newValue);
|
|
1264
|
-
nested = nested[key];
|
|
1265
|
-
}
|
|
1266
|
-
return object;
|
|
1267
|
-
}
|
|
1268
|
-
|
|
1269
|
-
export { ListCache as L, Map as M, Symbol$1 as S, isObject as a, baseGetTag as b, isIndex as c, baseAssignValue as d, eq as e, isArray as f, isArguments as g, isFunction as h, isObjectLike as i, defineProperty as j, arrayPush as k, castPath as l, isLength as m, baseGet as n, baseSet as o, getNative as p, freeGlobal as q, root as r, MapCache as s, toKey as t, toSource as u, isSymbol as v, arrayMap as w, assignValue as x, isKey as y };
|
|
727
|
+
export { ListCache as L, Map as M, isArray as a, isLength as b, isFunction as c, isArguments as d, eq as e, MapCache as f, getNative as g, arrayPush as h, isIndex as i, toSource as t };
|