@jobber/components 6.11.0 → 6.11.2
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/Autocomplete/index.cjs +2 -11
- package/dist/Autocomplete/index.mjs +2 -11
- package/dist/Autocomplete-cjs.js +2 -2
- package/dist/Autocomplete-es.js +1 -1
- package/dist/Chips/InternalChipDismissible/hooks/index.cjs +2 -2
- package/dist/Chips/InternalChipDismissible/hooks/index.mjs +2 -2
- package/dist/Chips/InternalChipDismissible/index.cjs +2 -2
- package/dist/Chips/InternalChipDismissible/index.mjs +2 -2
- package/dist/Chips/index.cjs +2 -2
- package/dist/Chips/index.mjs +2 -2
- package/dist/DataList/DataList.types.d.ts +1 -1
- package/dist/DataList/components/DataListSearch/index.cjs +1 -10
- package/dist/DataList/components/DataListSearch/index.mjs +1 -10
- package/dist/DataList/index.cjs +1 -8
- package/dist/DataList/index.mjs +1 -8
- package/dist/DataListSearch-cjs.js +2 -2
- package/dist/DataListSearch-es.js +1 -1
- package/dist/DataListTotalCount-cjs.js +3 -1
- package/dist/DataListTotalCount-es.js +3 -1
- package/dist/DatePicker/index.cjs +2 -3
- package/dist/DatePicker/index.mjs +2 -3
- package/dist/DatePicker-cjs.js +781 -2
- package/dist/DatePicker-es.js +781 -3
- package/dist/FormField/FormFieldTypes.d.ts +3 -3
- package/dist/FormField/hooks/useFormFieldWrapperStyles.d.ts +3 -3
- package/dist/FormField-cjs.js +2 -5
- package/dist/FormField-es.js +3 -3
- package/dist/InputDate/index.cjs +15 -16
- package/dist/InputDate/index.mjs +15 -16
- package/dist/InputDate-cjs.js +2 -3
- package/dist/InputDate-es.js +1 -2
- package/dist/InputText/InputText.d.ts +20 -10
- package/dist/InputText/index.cjs +8 -263
- package/dist/InputText/index.d.ts +1 -5
- package/dist/InputText/index.mjs +7 -266
- package/dist/InputText-cjs.js +129 -0
- package/dist/InputText-es.js +127 -0
- package/dist/List/index.cjs +2 -2
- package/dist/List/index.mjs +2 -2
- package/dist/_baseEach-cjs.js +12 -12
- package/dist/_baseEach-es.js +2 -2
- package/dist/_baseFlatten-cjs.js +2 -2
- package/dist/_baseFlatten-es.js +1 -1
- package/dist/{_baseGet-cjs.js → _getAllKeys-cjs.js} +181 -181
- package/dist/{_baseGet-es.js → _getAllKeys-es.js} +183 -183
- package/dist/index.cjs +3 -4
- package/dist/index.mjs +2 -3
- package/dist/isTypedArray-es.js +1 -1
- package/dist/useScrollToActive-cjs.js +3 -3
- package/dist/useScrollToActive-es.js +1 -1
- package/package.json +2 -2
- package/dist/InputText/InputText.rebuilt.d.ts +0 -3
- package/dist/InputText/InputText.types.d.ts +0 -71
- package/dist/InputText/useInputTextActions.d.ts +0 -16
- package/dist/InputText/useInputTextFormField.d.ts +0 -347
- package/dist/InputText/useTextAreaResize.d.ts +0 -14
- package/dist/omit-cjs.js +0 -783
- package/dist/omit-es.js +0 -781
package/dist/omit-es.js
DELETED
|
@@ -1,781 +0,0 @@
|
|
|
1
|
-
import { g as getDefaultExportFromCjs } from './_commonjsHelpers-es.js';
|
|
2
|
-
import { k as keys_1, c as _getSymbols, _ as _arrayPush, s as stubArray_1, d as _baseGetAllKeys, e as _getAllKeys, b as _baseGet, f as _castPath, g as _toKey, a as _arrayMap } from './_baseGet-es.js';
|
|
3
|
-
import { b as _Stack } from './identity-es.js';
|
|
4
|
-
import { _ as _copyObject, k as keysIn_1, e as _getPrototype, f as _cloneArrayBuffer, b as _cloneTypedArray, a as _cloneBufferExports, c as _copyArray, d as _initCloneObject, g as _assignValue, i as isPlainObject_1 } from './keysIn-es.js';
|
|
5
|
-
import { a as _getTag } from './_getTag-es.js';
|
|
6
|
-
import { b as _Symbol, a as isObjectLike_1, i as isObject_1 } from './isObjectLike-es.js';
|
|
7
|
-
import { l as _nodeUtilExports, k as _baseUnary, c as isBufferExports, a as isArray_1 } from './isTypedArray-es.js';
|
|
8
|
-
import { _ as _baseFlatten } from './_baseFlatten-es.js';
|
|
9
|
-
import { _ as _overRest, a as _setToString } from './_setToString-es.js';
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* A specialized version of `_.forEach` for arrays without support for
|
|
13
|
-
* iteratee shorthands.
|
|
14
|
-
*
|
|
15
|
-
* @private
|
|
16
|
-
* @param {Array} [array] The array to iterate over.
|
|
17
|
-
* @param {Function} iteratee The function invoked per iteration.
|
|
18
|
-
* @returns {Array} Returns `array`.
|
|
19
|
-
*/
|
|
20
|
-
|
|
21
|
-
function arrayEach$1(array, iteratee) {
|
|
22
|
-
var index = -1,
|
|
23
|
-
length = array == null ? 0 : array.length;
|
|
24
|
-
|
|
25
|
-
while (++index < length) {
|
|
26
|
-
if (iteratee(array[index], index, array) === false) {
|
|
27
|
-
break;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
return array;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
var _arrayEach = arrayEach$1;
|
|
34
|
-
|
|
35
|
-
var copyObject$4 = _copyObject,
|
|
36
|
-
keys$1 = keys_1;
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* The base implementation of `_.assign` without support for multiple sources
|
|
40
|
-
* or `customizer` functions.
|
|
41
|
-
*
|
|
42
|
-
* @private
|
|
43
|
-
* @param {Object} object The destination object.
|
|
44
|
-
* @param {Object} source The source object.
|
|
45
|
-
* @returns {Object} Returns `object`.
|
|
46
|
-
*/
|
|
47
|
-
function baseAssign$1(object, source) {
|
|
48
|
-
return object && copyObject$4(source, keys$1(source), object);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
var _baseAssign = baseAssign$1;
|
|
52
|
-
|
|
53
|
-
var copyObject$3 = _copyObject,
|
|
54
|
-
keysIn$2 = keysIn_1;
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* The base implementation of `_.assignIn` without support for multiple sources
|
|
58
|
-
* or `customizer` functions.
|
|
59
|
-
*
|
|
60
|
-
* @private
|
|
61
|
-
* @param {Object} object The destination object.
|
|
62
|
-
* @param {Object} source The source object.
|
|
63
|
-
* @returns {Object} Returns `object`.
|
|
64
|
-
*/
|
|
65
|
-
function baseAssignIn$1(object, source) {
|
|
66
|
-
return object && copyObject$3(source, keysIn$2(source), object);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
var _baseAssignIn = baseAssignIn$1;
|
|
70
|
-
|
|
71
|
-
var copyObject$2 = _copyObject,
|
|
72
|
-
getSymbols$1 = _getSymbols;
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* Copies own symbols of `source` to `object`.
|
|
76
|
-
*
|
|
77
|
-
* @private
|
|
78
|
-
* @param {Object} source The object to copy symbols from.
|
|
79
|
-
* @param {Object} [object={}] The object to copy symbols to.
|
|
80
|
-
* @returns {Object} Returns `object`.
|
|
81
|
-
*/
|
|
82
|
-
function copySymbols$1(source, object) {
|
|
83
|
-
return copyObject$2(source, getSymbols$1(source), object);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
var _copySymbols = copySymbols$1;
|
|
87
|
-
|
|
88
|
-
var arrayPush = _arrayPush,
|
|
89
|
-
getPrototype = _getPrototype,
|
|
90
|
-
getSymbols = _getSymbols,
|
|
91
|
-
stubArray = stubArray_1;
|
|
92
|
-
|
|
93
|
-
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
94
|
-
var nativeGetSymbols = Object.getOwnPropertySymbols;
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* Creates an array of the own and inherited enumerable symbols of `object`.
|
|
98
|
-
*
|
|
99
|
-
* @private
|
|
100
|
-
* @param {Object} object The object to query.
|
|
101
|
-
* @returns {Array} Returns the array of symbols.
|
|
102
|
-
*/
|
|
103
|
-
var getSymbolsIn$2 = !nativeGetSymbols ? stubArray : function(object) {
|
|
104
|
-
var result = [];
|
|
105
|
-
while (object) {
|
|
106
|
-
arrayPush(result, getSymbols(object));
|
|
107
|
-
object = getPrototype(object);
|
|
108
|
-
}
|
|
109
|
-
return result;
|
|
110
|
-
};
|
|
111
|
-
|
|
112
|
-
var _getSymbolsIn = getSymbolsIn$2;
|
|
113
|
-
|
|
114
|
-
var copyObject$1 = _copyObject,
|
|
115
|
-
getSymbolsIn$1 = _getSymbolsIn;
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* Copies own and inherited symbols of `source` to `object`.
|
|
119
|
-
*
|
|
120
|
-
* @private
|
|
121
|
-
* @param {Object} source The object to copy symbols from.
|
|
122
|
-
* @param {Object} [object={}] The object to copy symbols to.
|
|
123
|
-
* @returns {Object} Returns `object`.
|
|
124
|
-
*/
|
|
125
|
-
function copySymbolsIn$1(source, object) {
|
|
126
|
-
return copyObject$1(source, getSymbolsIn$1(source), object);
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
var _copySymbolsIn = copySymbolsIn$1;
|
|
130
|
-
|
|
131
|
-
var baseGetAllKeys = _baseGetAllKeys,
|
|
132
|
-
getSymbolsIn = _getSymbolsIn,
|
|
133
|
-
keysIn$1 = keysIn_1;
|
|
134
|
-
|
|
135
|
-
/**
|
|
136
|
-
* Creates an array of own and inherited enumerable property names and
|
|
137
|
-
* symbols of `object`.
|
|
138
|
-
*
|
|
139
|
-
* @private
|
|
140
|
-
* @param {Object} object The object to query.
|
|
141
|
-
* @returns {Array} Returns the array of property names and symbols.
|
|
142
|
-
*/
|
|
143
|
-
function getAllKeysIn$2(object) {
|
|
144
|
-
return baseGetAllKeys(object, keysIn$1, getSymbolsIn);
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
var _getAllKeysIn = getAllKeysIn$2;
|
|
148
|
-
|
|
149
|
-
/** Used for built-in method references. */
|
|
150
|
-
|
|
151
|
-
var objectProto = Object.prototype;
|
|
152
|
-
|
|
153
|
-
/** Used to check objects for own properties. */
|
|
154
|
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* Initializes an array clone.
|
|
158
|
-
*
|
|
159
|
-
* @private
|
|
160
|
-
* @param {Array} array The array to clone.
|
|
161
|
-
* @returns {Array} Returns the initialized clone.
|
|
162
|
-
*/
|
|
163
|
-
function initCloneArray$1(array) {
|
|
164
|
-
var length = array.length,
|
|
165
|
-
result = new array.constructor(length);
|
|
166
|
-
|
|
167
|
-
// Add properties assigned by `RegExp#exec`.
|
|
168
|
-
if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
|
|
169
|
-
result.index = array.index;
|
|
170
|
-
result.input = array.input;
|
|
171
|
-
}
|
|
172
|
-
return result;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
var _initCloneArray = initCloneArray$1;
|
|
176
|
-
|
|
177
|
-
var cloneArrayBuffer$1 = _cloneArrayBuffer;
|
|
178
|
-
|
|
179
|
-
/**
|
|
180
|
-
* Creates a clone of `dataView`.
|
|
181
|
-
*
|
|
182
|
-
* @private
|
|
183
|
-
* @param {Object} dataView The data view to clone.
|
|
184
|
-
* @param {boolean} [isDeep] Specify a deep clone.
|
|
185
|
-
* @returns {Object} Returns the cloned data view.
|
|
186
|
-
*/
|
|
187
|
-
function cloneDataView$1(dataView, isDeep) {
|
|
188
|
-
var buffer = isDeep ? cloneArrayBuffer$1(dataView.buffer) : dataView.buffer;
|
|
189
|
-
return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
var _cloneDataView = cloneDataView$1;
|
|
193
|
-
|
|
194
|
-
/** Used to match `RegExp` flags from their coerced string values. */
|
|
195
|
-
|
|
196
|
-
var reFlags = /\w*$/;
|
|
197
|
-
|
|
198
|
-
/**
|
|
199
|
-
* Creates a clone of `regexp`.
|
|
200
|
-
*
|
|
201
|
-
* @private
|
|
202
|
-
* @param {Object} regexp The regexp to clone.
|
|
203
|
-
* @returns {Object} Returns the cloned regexp.
|
|
204
|
-
*/
|
|
205
|
-
function cloneRegExp$1(regexp) {
|
|
206
|
-
var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
|
|
207
|
-
result.lastIndex = regexp.lastIndex;
|
|
208
|
-
return result;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
var _cloneRegExp = cloneRegExp$1;
|
|
212
|
-
|
|
213
|
-
var Symbol = _Symbol;
|
|
214
|
-
|
|
215
|
-
/** Used to convert symbols to primitives and strings. */
|
|
216
|
-
var symbolProto = Symbol ? Symbol.prototype : undefined,
|
|
217
|
-
symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
|
|
218
|
-
|
|
219
|
-
/**
|
|
220
|
-
* Creates a clone of the `symbol` object.
|
|
221
|
-
*
|
|
222
|
-
* @private
|
|
223
|
-
* @param {Object} symbol The symbol object to clone.
|
|
224
|
-
* @returns {Object} Returns the cloned symbol object.
|
|
225
|
-
*/
|
|
226
|
-
function cloneSymbol$1(symbol) {
|
|
227
|
-
return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
var _cloneSymbol = cloneSymbol$1;
|
|
231
|
-
|
|
232
|
-
var cloneArrayBuffer = _cloneArrayBuffer,
|
|
233
|
-
cloneDataView = _cloneDataView,
|
|
234
|
-
cloneRegExp = _cloneRegExp,
|
|
235
|
-
cloneSymbol = _cloneSymbol,
|
|
236
|
-
cloneTypedArray = _cloneTypedArray;
|
|
237
|
-
|
|
238
|
-
/** `Object#toString` result references. */
|
|
239
|
-
var boolTag$1 = '[object Boolean]',
|
|
240
|
-
dateTag$1 = '[object Date]',
|
|
241
|
-
mapTag$2 = '[object Map]',
|
|
242
|
-
numberTag$1 = '[object Number]',
|
|
243
|
-
regexpTag$1 = '[object RegExp]',
|
|
244
|
-
setTag$2 = '[object Set]',
|
|
245
|
-
stringTag$1 = '[object String]',
|
|
246
|
-
symbolTag$1 = '[object Symbol]';
|
|
247
|
-
|
|
248
|
-
var arrayBufferTag$1 = '[object ArrayBuffer]',
|
|
249
|
-
dataViewTag$1 = '[object DataView]',
|
|
250
|
-
float32Tag$1 = '[object Float32Array]',
|
|
251
|
-
float64Tag$1 = '[object Float64Array]',
|
|
252
|
-
int8Tag$1 = '[object Int8Array]',
|
|
253
|
-
int16Tag$1 = '[object Int16Array]',
|
|
254
|
-
int32Tag$1 = '[object Int32Array]',
|
|
255
|
-
uint8Tag$1 = '[object Uint8Array]',
|
|
256
|
-
uint8ClampedTag$1 = '[object Uint8ClampedArray]',
|
|
257
|
-
uint16Tag$1 = '[object Uint16Array]',
|
|
258
|
-
uint32Tag$1 = '[object Uint32Array]';
|
|
259
|
-
|
|
260
|
-
/**
|
|
261
|
-
* Initializes an object clone based on its `toStringTag`.
|
|
262
|
-
*
|
|
263
|
-
* **Note:** This function only supports cloning values with tags of
|
|
264
|
-
* `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
|
|
265
|
-
*
|
|
266
|
-
* @private
|
|
267
|
-
* @param {Object} object The object to clone.
|
|
268
|
-
* @param {string} tag The `toStringTag` of the object to clone.
|
|
269
|
-
* @param {boolean} [isDeep] Specify a deep clone.
|
|
270
|
-
* @returns {Object} Returns the initialized clone.
|
|
271
|
-
*/
|
|
272
|
-
function initCloneByTag$1(object, tag, isDeep) {
|
|
273
|
-
var Ctor = object.constructor;
|
|
274
|
-
switch (tag) {
|
|
275
|
-
case arrayBufferTag$1:
|
|
276
|
-
return cloneArrayBuffer(object);
|
|
277
|
-
|
|
278
|
-
case boolTag$1:
|
|
279
|
-
case dateTag$1:
|
|
280
|
-
return new Ctor(+object);
|
|
281
|
-
|
|
282
|
-
case dataViewTag$1:
|
|
283
|
-
return cloneDataView(object, isDeep);
|
|
284
|
-
|
|
285
|
-
case float32Tag$1: case float64Tag$1:
|
|
286
|
-
case int8Tag$1: case int16Tag$1: case int32Tag$1:
|
|
287
|
-
case uint8Tag$1: case uint8ClampedTag$1: case uint16Tag$1: case uint32Tag$1:
|
|
288
|
-
return cloneTypedArray(object, isDeep);
|
|
289
|
-
|
|
290
|
-
case mapTag$2:
|
|
291
|
-
return new Ctor;
|
|
292
|
-
|
|
293
|
-
case numberTag$1:
|
|
294
|
-
case stringTag$1:
|
|
295
|
-
return new Ctor(object);
|
|
296
|
-
|
|
297
|
-
case regexpTag$1:
|
|
298
|
-
return cloneRegExp(object);
|
|
299
|
-
|
|
300
|
-
case setTag$2:
|
|
301
|
-
return new Ctor;
|
|
302
|
-
|
|
303
|
-
case symbolTag$1:
|
|
304
|
-
return cloneSymbol(object);
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
var _initCloneByTag = initCloneByTag$1;
|
|
309
|
-
|
|
310
|
-
var getTag$2 = _getTag,
|
|
311
|
-
isObjectLike$1 = isObjectLike_1;
|
|
312
|
-
|
|
313
|
-
/** `Object#toString` result references. */
|
|
314
|
-
var mapTag$1 = '[object Map]';
|
|
315
|
-
|
|
316
|
-
/**
|
|
317
|
-
* The base implementation of `_.isMap` without Node.js optimizations.
|
|
318
|
-
*
|
|
319
|
-
* @private
|
|
320
|
-
* @param {*} value The value to check.
|
|
321
|
-
* @returns {boolean} Returns `true` if `value` is a map, else `false`.
|
|
322
|
-
*/
|
|
323
|
-
function baseIsMap$1(value) {
|
|
324
|
-
return isObjectLike$1(value) && getTag$2(value) == mapTag$1;
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
var _baseIsMap = baseIsMap$1;
|
|
328
|
-
|
|
329
|
-
var baseIsMap = _baseIsMap,
|
|
330
|
-
baseUnary$1 = _baseUnary,
|
|
331
|
-
nodeUtil$1 = _nodeUtilExports;
|
|
332
|
-
|
|
333
|
-
/* Node.js helper references. */
|
|
334
|
-
var nodeIsMap = nodeUtil$1 && nodeUtil$1.isMap;
|
|
335
|
-
|
|
336
|
-
/**
|
|
337
|
-
* Checks if `value` is classified as a `Map` object.
|
|
338
|
-
*
|
|
339
|
-
* @static
|
|
340
|
-
* @memberOf _
|
|
341
|
-
* @since 4.3.0
|
|
342
|
-
* @category Lang
|
|
343
|
-
* @param {*} value The value to check.
|
|
344
|
-
* @returns {boolean} Returns `true` if `value` is a map, else `false`.
|
|
345
|
-
* @example
|
|
346
|
-
*
|
|
347
|
-
* _.isMap(new Map);
|
|
348
|
-
* // => true
|
|
349
|
-
*
|
|
350
|
-
* _.isMap(new WeakMap);
|
|
351
|
-
* // => false
|
|
352
|
-
*/
|
|
353
|
-
var isMap$1 = nodeIsMap ? baseUnary$1(nodeIsMap) : baseIsMap;
|
|
354
|
-
|
|
355
|
-
var isMap_1 = isMap$1;
|
|
356
|
-
|
|
357
|
-
var getTag$1 = _getTag,
|
|
358
|
-
isObjectLike = isObjectLike_1;
|
|
359
|
-
|
|
360
|
-
/** `Object#toString` result references. */
|
|
361
|
-
var setTag$1 = '[object Set]';
|
|
362
|
-
|
|
363
|
-
/**
|
|
364
|
-
* The base implementation of `_.isSet` without Node.js optimizations.
|
|
365
|
-
*
|
|
366
|
-
* @private
|
|
367
|
-
* @param {*} value The value to check.
|
|
368
|
-
* @returns {boolean} Returns `true` if `value` is a set, else `false`.
|
|
369
|
-
*/
|
|
370
|
-
function baseIsSet$1(value) {
|
|
371
|
-
return isObjectLike(value) && getTag$1(value) == setTag$1;
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
var _baseIsSet = baseIsSet$1;
|
|
375
|
-
|
|
376
|
-
var baseIsSet = _baseIsSet,
|
|
377
|
-
baseUnary = _baseUnary,
|
|
378
|
-
nodeUtil = _nodeUtilExports;
|
|
379
|
-
|
|
380
|
-
/* Node.js helper references. */
|
|
381
|
-
var nodeIsSet = nodeUtil && nodeUtil.isSet;
|
|
382
|
-
|
|
383
|
-
/**
|
|
384
|
-
* Checks if `value` is classified as a `Set` object.
|
|
385
|
-
*
|
|
386
|
-
* @static
|
|
387
|
-
* @memberOf _
|
|
388
|
-
* @since 4.3.0
|
|
389
|
-
* @category Lang
|
|
390
|
-
* @param {*} value The value to check.
|
|
391
|
-
* @returns {boolean} Returns `true` if `value` is a set, else `false`.
|
|
392
|
-
* @example
|
|
393
|
-
*
|
|
394
|
-
* _.isSet(new Set);
|
|
395
|
-
* // => true
|
|
396
|
-
*
|
|
397
|
-
* _.isSet(new WeakSet);
|
|
398
|
-
* // => false
|
|
399
|
-
*/
|
|
400
|
-
var isSet$1 = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
|
|
401
|
-
|
|
402
|
-
var isSet_1 = isSet$1;
|
|
403
|
-
|
|
404
|
-
var Stack = _Stack,
|
|
405
|
-
arrayEach = _arrayEach,
|
|
406
|
-
assignValue = _assignValue,
|
|
407
|
-
baseAssign = _baseAssign,
|
|
408
|
-
baseAssignIn = _baseAssignIn,
|
|
409
|
-
cloneBuffer = _cloneBufferExports,
|
|
410
|
-
copyArray = _copyArray,
|
|
411
|
-
copySymbols = _copySymbols,
|
|
412
|
-
copySymbolsIn = _copySymbolsIn,
|
|
413
|
-
getAllKeys = _getAllKeys,
|
|
414
|
-
getAllKeysIn$1 = _getAllKeysIn,
|
|
415
|
-
getTag = _getTag,
|
|
416
|
-
initCloneArray = _initCloneArray,
|
|
417
|
-
initCloneByTag = _initCloneByTag,
|
|
418
|
-
initCloneObject = _initCloneObject,
|
|
419
|
-
isArray = isArray_1,
|
|
420
|
-
isBuffer = isBufferExports,
|
|
421
|
-
isMap = isMap_1,
|
|
422
|
-
isObject = isObject_1,
|
|
423
|
-
isSet = isSet_1,
|
|
424
|
-
keys = keys_1,
|
|
425
|
-
keysIn = keysIn_1;
|
|
426
|
-
|
|
427
|
-
/** Used to compose bitmasks for cloning. */
|
|
428
|
-
var CLONE_DEEP_FLAG$1 = 1,
|
|
429
|
-
CLONE_FLAT_FLAG$1 = 2,
|
|
430
|
-
CLONE_SYMBOLS_FLAG$1 = 4;
|
|
431
|
-
|
|
432
|
-
/** `Object#toString` result references. */
|
|
433
|
-
var argsTag = '[object Arguments]',
|
|
434
|
-
arrayTag = '[object Array]',
|
|
435
|
-
boolTag = '[object Boolean]',
|
|
436
|
-
dateTag = '[object Date]',
|
|
437
|
-
errorTag = '[object Error]',
|
|
438
|
-
funcTag = '[object Function]',
|
|
439
|
-
genTag = '[object GeneratorFunction]',
|
|
440
|
-
mapTag = '[object Map]',
|
|
441
|
-
numberTag = '[object Number]',
|
|
442
|
-
objectTag = '[object Object]',
|
|
443
|
-
regexpTag = '[object RegExp]',
|
|
444
|
-
setTag = '[object Set]',
|
|
445
|
-
stringTag = '[object String]',
|
|
446
|
-
symbolTag = '[object Symbol]',
|
|
447
|
-
weakMapTag = '[object WeakMap]';
|
|
448
|
-
|
|
449
|
-
var arrayBufferTag = '[object ArrayBuffer]',
|
|
450
|
-
dataViewTag = '[object DataView]',
|
|
451
|
-
float32Tag = '[object Float32Array]',
|
|
452
|
-
float64Tag = '[object Float64Array]',
|
|
453
|
-
int8Tag = '[object Int8Array]',
|
|
454
|
-
int16Tag = '[object Int16Array]',
|
|
455
|
-
int32Tag = '[object Int32Array]',
|
|
456
|
-
uint8Tag = '[object Uint8Array]',
|
|
457
|
-
uint8ClampedTag = '[object Uint8ClampedArray]',
|
|
458
|
-
uint16Tag = '[object Uint16Array]',
|
|
459
|
-
uint32Tag = '[object Uint32Array]';
|
|
460
|
-
|
|
461
|
-
/** Used to identify `toStringTag` values supported by `_.clone`. */
|
|
462
|
-
var cloneableTags = {};
|
|
463
|
-
cloneableTags[argsTag] = cloneableTags[arrayTag] =
|
|
464
|
-
cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =
|
|
465
|
-
cloneableTags[boolTag] = cloneableTags[dateTag] =
|
|
466
|
-
cloneableTags[float32Tag] = cloneableTags[float64Tag] =
|
|
467
|
-
cloneableTags[int8Tag] = cloneableTags[int16Tag] =
|
|
468
|
-
cloneableTags[int32Tag] = cloneableTags[mapTag] =
|
|
469
|
-
cloneableTags[numberTag] = cloneableTags[objectTag] =
|
|
470
|
-
cloneableTags[regexpTag] = cloneableTags[setTag] =
|
|
471
|
-
cloneableTags[stringTag] = cloneableTags[symbolTag] =
|
|
472
|
-
cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =
|
|
473
|
-
cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
|
|
474
|
-
cloneableTags[errorTag] = cloneableTags[funcTag] =
|
|
475
|
-
cloneableTags[weakMapTag] = false;
|
|
476
|
-
|
|
477
|
-
/**
|
|
478
|
-
* The base implementation of `_.clone` and `_.cloneDeep` which tracks
|
|
479
|
-
* traversed objects.
|
|
480
|
-
*
|
|
481
|
-
* @private
|
|
482
|
-
* @param {*} value The value to clone.
|
|
483
|
-
* @param {boolean} bitmask The bitmask flags.
|
|
484
|
-
* 1 - Deep clone
|
|
485
|
-
* 2 - Flatten inherited properties
|
|
486
|
-
* 4 - Clone symbols
|
|
487
|
-
* @param {Function} [customizer] The function to customize cloning.
|
|
488
|
-
* @param {string} [key] The key of `value`.
|
|
489
|
-
* @param {Object} [object] The parent object of `value`.
|
|
490
|
-
* @param {Object} [stack] Tracks traversed objects and their clone counterparts.
|
|
491
|
-
* @returns {*} Returns the cloned value.
|
|
492
|
-
*/
|
|
493
|
-
function baseClone$1(value, bitmask, customizer, key, object, stack) {
|
|
494
|
-
var result,
|
|
495
|
-
isDeep = bitmask & CLONE_DEEP_FLAG$1,
|
|
496
|
-
isFlat = bitmask & CLONE_FLAT_FLAG$1,
|
|
497
|
-
isFull = bitmask & CLONE_SYMBOLS_FLAG$1;
|
|
498
|
-
|
|
499
|
-
if (customizer) {
|
|
500
|
-
result = object ? customizer(value, key, object, stack) : customizer(value);
|
|
501
|
-
}
|
|
502
|
-
if (result !== undefined) {
|
|
503
|
-
return result;
|
|
504
|
-
}
|
|
505
|
-
if (!isObject(value)) {
|
|
506
|
-
return value;
|
|
507
|
-
}
|
|
508
|
-
var isArr = isArray(value);
|
|
509
|
-
if (isArr) {
|
|
510
|
-
result = initCloneArray(value);
|
|
511
|
-
if (!isDeep) {
|
|
512
|
-
return copyArray(value, result);
|
|
513
|
-
}
|
|
514
|
-
} else {
|
|
515
|
-
var tag = getTag(value),
|
|
516
|
-
isFunc = tag == funcTag || tag == genTag;
|
|
517
|
-
|
|
518
|
-
if (isBuffer(value)) {
|
|
519
|
-
return cloneBuffer(value, isDeep);
|
|
520
|
-
}
|
|
521
|
-
if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
|
|
522
|
-
result = (isFlat || isFunc) ? {} : initCloneObject(value);
|
|
523
|
-
if (!isDeep) {
|
|
524
|
-
return isFlat
|
|
525
|
-
? copySymbolsIn(value, baseAssignIn(result, value))
|
|
526
|
-
: copySymbols(value, baseAssign(result, value));
|
|
527
|
-
}
|
|
528
|
-
} else {
|
|
529
|
-
if (!cloneableTags[tag]) {
|
|
530
|
-
return object ? value : {};
|
|
531
|
-
}
|
|
532
|
-
result = initCloneByTag(value, tag, isDeep);
|
|
533
|
-
}
|
|
534
|
-
}
|
|
535
|
-
// Check for circular references and return its corresponding clone.
|
|
536
|
-
stack || (stack = new Stack);
|
|
537
|
-
var stacked = stack.get(value);
|
|
538
|
-
if (stacked) {
|
|
539
|
-
return stacked;
|
|
540
|
-
}
|
|
541
|
-
stack.set(value, result);
|
|
542
|
-
|
|
543
|
-
if (isSet(value)) {
|
|
544
|
-
value.forEach(function(subValue) {
|
|
545
|
-
result.add(baseClone$1(subValue, bitmask, customizer, subValue, value, stack));
|
|
546
|
-
});
|
|
547
|
-
} else if (isMap(value)) {
|
|
548
|
-
value.forEach(function(subValue, key) {
|
|
549
|
-
result.set(key, baseClone$1(subValue, bitmask, customizer, key, value, stack));
|
|
550
|
-
});
|
|
551
|
-
}
|
|
552
|
-
|
|
553
|
-
var keysFunc = isFull
|
|
554
|
-
? (isFlat ? getAllKeysIn$1 : getAllKeys)
|
|
555
|
-
: (isFlat ? keysIn : keys);
|
|
556
|
-
|
|
557
|
-
var props = isArr ? undefined : keysFunc(value);
|
|
558
|
-
arrayEach(props || value, function(subValue, key) {
|
|
559
|
-
if (props) {
|
|
560
|
-
key = subValue;
|
|
561
|
-
subValue = value[key];
|
|
562
|
-
}
|
|
563
|
-
// Recursively populate clone (susceptible to call stack limits).
|
|
564
|
-
assignValue(result, key, baseClone$1(subValue, bitmask, customizer, key, value, stack));
|
|
565
|
-
});
|
|
566
|
-
return result;
|
|
567
|
-
}
|
|
568
|
-
|
|
569
|
-
var _baseClone = baseClone$1;
|
|
570
|
-
|
|
571
|
-
/**
|
|
572
|
-
* Gets the last element of `array`.
|
|
573
|
-
*
|
|
574
|
-
* @static
|
|
575
|
-
* @memberOf _
|
|
576
|
-
* @since 0.1.0
|
|
577
|
-
* @category Array
|
|
578
|
-
* @param {Array} array The array to query.
|
|
579
|
-
* @returns {*} Returns the last element of `array`.
|
|
580
|
-
* @example
|
|
581
|
-
*
|
|
582
|
-
* _.last([1, 2, 3]);
|
|
583
|
-
* // => 3
|
|
584
|
-
*/
|
|
585
|
-
|
|
586
|
-
function last$1(array) {
|
|
587
|
-
var length = array == null ? 0 : array.length;
|
|
588
|
-
return length ? array[length - 1] : undefined;
|
|
589
|
-
}
|
|
590
|
-
|
|
591
|
-
var last_1 = last$1;
|
|
592
|
-
|
|
593
|
-
/**
|
|
594
|
-
* The base implementation of `_.slice` without an iteratee call guard.
|
|
595
|
-
*
|
|
596
|
-
* @private
|
|
597
|
-
* @param {Array} array The array to slice.
|
|
598
|
-
* @param {number} [start=0] The start position.
|
|
599
|
-
* @param {number} [end=array.length] The end position.
|
|
600
|
-
* @returns {Array} Returns the slice of `array`.
|
|
601
|
-
*/
|
|
602
|
-
|
|
603
|
-
function baseSlice$1(array, start, end) {
|
|
604
|
-
var index = -1,
|
|
605
|
-
length = array.length;
|
|
606
|
-
|
|
607
|
-
if (start < 0) {
|
|
608
|
-
start = -start > length ? 0 : (length + start);
|
|
609
|
-
}
|
|
610
|
-
end = end > length ? length : end;
|
|
611
|
-
if (end < 0) {
|
|
612
|
-
end += length;
|
|
613
|
-
}
|
|
614
|
-
length = start > end ? 0 : ((end - start) >>> 0);
|
|
615
|
-
start >>>= 0;
|
|
616
|
-
|
|
617
|
-
var result = Array(length);
|
|
618
|
-
while (++index < length) {
|
|
619
|
-
result[index] = array[index + start];
|
|
620
|
-
}
|
|
621
|
-
return result;
|
|
622
|
-
}
|
|
623
|
-
|
|
624
|
-
var _baseSlice = baseSlice$1;
|
|
625
|
-
|
|
626
|
-
var baseGet = _baseGet,
|
|
627
|
-
baseSlice = _baseSlice;
|
|
628
|
-
|
|
629
|
-
/**
|
|
630
|
-
* Gets the parent value at `path` of `object`.
|
|
631
|
-
*
|
|
632
|
-
* @private
|
|
633
|
-
* @param {Object} object The object to query.
|
|
634
|
-
* @param {Array} path The path to get the parent value of.
|
|
635
|
-
* @returns {*} Returns the parent value.
|
|
636
|
-
*/
|
|
637
|
-
function parent$1(object, path) {
|
|
638
|
-
return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));
|
|
639
|
-
}
|
|
640
|
-
|
|
641
|
-
var _parent = parent$1;
|
|
642
|
-
|
|
643
|
-
var castPath$1 = _castPath,
|
|
644
|
-
last = last_1,
|
|
645
|
-
parent = _parent,
|
|
646
|
-
toKey = _toKey;
|
|
647
|
-
|
|
648
|
-
/**
|
|
649
|
-
* The base implementation of `_.unset`.
|
|
650
|
-
*
|
|
651
|
-
* @private
|
|
652
|
-
* @param {Object} object The object to modify.
|
|
653
|
-
* @param {Array|string} path The property path to unset.
|
|
654
|
-
* @returns {boolean} Returns `true` if the property is deleted, else `false`.
|
|
655
|
-
*/
|
|
656
|
-
function baseUnset$1(object, path) {
|
|
657
|
-
path = castPath$1(path, object);
|
|
658
|
-
object = parent(object, path);
|
|
659
|
-
return object == null || delete object[toKey(last(path))];
|
|
660
|
-
}
|
|
661
|
-
|
|
662
|
-
var _baseUnset = baseUnset$1;
|
|
663
|
-
|
|
664
|
-
var isPlainObject = isPlainObject_1;
|
|
665
|
-
|
|
666
|
-
/**
|
|
667
|
-
* Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain
|
|
668
|
-
* objects.
|
|
669
|
-
*
|
|
670
|
-
* @private
|
|
671
|
-
* @param {*} value The value to inspect.
|
|
672
|
-
* @param {string} key The key of the property to inspect.
|
|
673
|
-
* @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.
|
|
674
|
-
*/
|
|
675
|
-
function customOmitClone$1(value) {
|
|
676
|
-
return isPlainObject(value) ? undefined : value;
|
|
677
|
-
}
|
|
678
|
-
|
|
679
|
-
var _customOmitClone = customOmitClone$1;
|
|
680
|
-
|
|
681
|
-
var baseFlatten = _baseFlatten;
|
|
682
|
-
|
|
683
|
-
/**
|
|
684
|
-
* Flattens `array` a single level deep.
|
|
685
|
-
*
|
|
686
|
-
* @static
|
|
687
|
-
* @memberOf _
|
|
688
|
-
* @since 0.1.0
|
|
689
|
-
* @category Array
|
|
690
|
-
* @param {Array} array The array to flatten.
|
|
691
|
-
* @returns {Array} Returns the new flattened array.
|
|
692
|
-
* @example
|
|
693
|
-
*
|
|
694
|
-
* _.flatten([1, [2, [3, [4]], 5]]);
|
|
695
|
-
* // => [1, 2, [3, [4]], 5]
|
|
696
|
-
*/
|
|
697
|
-
function flatten$1(array) {
|
|
698
|
-
var length = array == null ? 0 : array.length;
|
|
699
|
-
return length ? baseFlatten(array, 1) : [];
|
|
700
|
-
}
|
|
701
|
-
|
|
702
|
-
var flatten_1 = flatten$1;
|
|
703
|
-
|
|
704
|
-
var flatten = flatten_1,
|
|
705
|
-
overRest = _overRest,
|
|
706
|
-
setToString = _setToString;
|
|
707
|
-
|
|
708
|
-
/**
|
|
709
|
-
* A specialized version of `baseRest` which flattens the rest array.
|
|
710
|
-
*
|
|
711
|
-
* @private
|
|
712
|
-
* @param {Function} func The function to apply a rest parameter to.
|
|
713
|
-
* @returns {Function} Returns the new function.
|
|
714
|
-
*/
|
|
715
|
-
function flatRest$1(func) {
|
|
716
|
-
return setToString(overRest(func, undefined, flatten), func + '');
|
|
717
|
-
}
|
|
718
|
-
|
|
719
|
-
var _flatRest = flatRest$1;
|
|
720
|
-
|
|
721
|
-
var arrayMap = _arrayMap,
|
|
722
|
-
baseClone = _baseClone,
|
|
723
|
-
baseUnset = _baseUnset,
|
|
724
|
-
castPath = _castPath,
|
|
725
|
-
copyObject = _copyObject,
|
|
726
|
-
customOmitClone = _customOmitClone,
|
|
727
|
-
flatRest = _flatRest,
|
|
728
|
-
getAllKeysIn = _getAllKeysIn;
|
|
729
|
-
|
|
730
|
-
/** Used to compose bitmasks for cloning. */
|
|
731
|
-
var CLONE_DEEP_FLAG = 1,
|
|
732
|
-
CLONE_FLAT_FLAG = 2,
|
|
733
|
-
CLONE_SYMBOLS_FLAG = 4;
|
|
734
|
-
|
|
735
|
-
/**
|
|
736
|
-
* The opposite of `_.pick`; this method creates an object composed of the
|
|
737
|
-
* own and inherited enumerable property paths of `object` that are not omitted.
|
|
738
|
-
*
|
|
739
|
-
* **Note:** This method is considerably slower than `_.pick`.
|
|
740
|
-
*
|
|
741
|
-
* @static
|
|
742
|
-
* @since 0.1.0
|
|
743
|
-
* @memberOf _
|
|
744
|
-
* @category Object
|
|
745
|
-
* @param {Object} object The source object.
|
|
746
|
-
* @param {...(string|string[])} [paths] The property paths to omit.
|
|
747
|
-
* @returns {Object} Returns the new object.
|
|
748
|
-
* @example
|
|
749
|
-
*
|
|
750
|
-
* var object = { 'a': 1, 'b': '2', 'c': 3 };
|
|
751
|
-
*
|
|
752
|
-
* _.omit(object, ['a', 'c']);
|
|
753
|
-
* // => { 'b': '2' }
|
|
754
|
-
*/
|
|
755
|
-
var omit = flatRest(function(object, paths) {
|
|
756
|
-
var result = {};
|
|
757
|
-
if (object == null) {
|
|
758
|
-
return result;
|
|
759
|
-
}
|
|
760
|
-
var isDeep = false;
|
|
761
|
-
paths = arrayMap(paths, function(path) {
|
|
762
|
-
path = castPath(path, object);
|
|
763
|
-
isDeep || (isDeep = path.length > 1);
|
|
764
|
-
return path;
|
|
765
|
-
});
|
|
766
|
-
copyObject(object, getAllKeysIn(object), result);
|
|
767
|
-
if (isDeep) {
|
|
768
|
-
result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);
|
|
769
|
-
}
|
|
770
|
-
var length = paths.length;
|
|
771
|
-
while (length--) {
|
|
772
|
-
baseUnset(result, paths[length]);
|
|
773
|
-
}
|
|
774
|
-
return result;
|
|
775
|
-
});
|
|
776
|
-
|
|
777
|
-
var omit_1 = omit;
|
|
778
|
-
|
|
779
|
-
var omit$1 = /*@__PURE__*/getDefaultExportFromCjs(omit_1);
|
|
780
|
-
|
|
781
|
-
export { omit$1 as o };
|