antd3-esm 1.0.1

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 (174) hide show
  1. package/LICENSE +21 -0
  2. package/dist/Checkbox.js +164 -0
  3. package/dist/CommonMixin.js +816 -0
  4. package/dist/Divider.js +646 -0
  5. package/dist/Notification.js +279 -0
  6. package/dist/Pagination.js +1106 -0
  7. package/dist/PortalWrapper.js +347 -0
  8. package/dist/RowContext.js +5 -0
  9. package/dist/Sider.js +533 -0
  10. package/dist/TextArea.js +432 -0
  11. package/dist/_arrayMap.js +68 -0
  12. package/dist/_assignValue.js +95 -0
  13. package/dist/_copyArray.js +31 -0
  14. package/dist/_hasPath.js +53 -0
  15. package/dist/_overArg.js +437 -0
  16. package/dist/_stringToArray.js +136 -0
  17. package/dist/antd/es/affix.js +12 -0
  18. package/dist/antd/es/alert.js +5 -0
  19. package/dist/antd/es/anchor.js +466 -0
  20. package/dist/antd/es/auto-complete.js +5 -0
  21. package/dist/antd/es/avatar.js +5 -0
  22. package/dist/antd/es/back-top.js +5 -0
  23. package/dist/antd/es/badge.js +5 -0
  24. package/dist/antd/es/breadcrumb.js +18 -0
  25. package/dist/antd/es/button.js +12 -0
  26. package/dist/antd/es/calendar.js +953 -0
  27. package/dist/antd/es/card.js +5 -0
  28. package/dist/antd/es/carousel.js +5 -0
  29. package/dist/antd/es/cascader.js +1275 -0
  30. package/dist/antd/es/checkbox.js +11 -0
  31. package/dist/antd/es/col.js +4 -0
  32. package/dist/antd/es/collapse.js +688 -0
  33. package/dist/antd/es/comment.js +5 -0
  34. package/dist/antd/es/config-provider.js +2 -0
  35. package/dist/antd/es/date-picker.js +4322 -0
  36. package/dist/antd/es/descriptions.js +342 -0
  37. package/dist/antd/es/divider.js +53 -0
  38. package/dist/antd/es/drawer.js +1115 -0
  39. package/dist/antd/es/dropdown.js +14 -0
  40. package/dist/antd/es/empty.js +6 -0
  41. package/dist/antd/es/form.js +5008 -0
  42. package/dist/antd/es/grid.js +13 -0
  43. package/dist/antd/es/icon.js +6 -0
  44. package/dist/antd/es/input-number.js +5 -0
  45. package/dist/antd/es/input.js +16 -0
  46. package/dist/antd/es/layout.js +14 -0
  47. package/dist/antd/es/list.js +5 -0
  48. package/dist/antd/es/locale/ar_EG.js +102 -0
  49. package/dist/antd/es/locale/bg_BG.js +98 -0
  50. package/dist/antd/es/locale/ca_ES.js +96 -0
  51. package/dist/antd/es/locale/cs_CZ.js +96 -0
  52. package/dist/antd/es/locale/da_DK.js +98 -0
  53. package/dist/antd/es/locale/de_DE.js +98 -0
  54. package/dist/antd/es/locale/default.js +2 -0
  55. package/dist/antd/es/locale/el_GR.js +98 -0
  56. package/dist/antd/es/locale/en_GB.js +98 -0
  57. package/dist/antd/es/locale/en_US.js +2 -0
  58. package/dist/antd/es/locale/es_ES.js +114 -0
  59. package/dist/antd/es/locale/et_EE.js +98 -0
  60. package/dist/antd/es/locale/fa_IR.js +98 -0
  61. package/dist/antd/es/locale/fi_FI.js +99 -0
  62. package/dist/antd/es/locale/fr_BE.js +102 -0
  63. package/dist/antd/es/locale/fr_FR.js +102 -0
  64. package/dist/antd/es/locale/ga_IE.js +99 -0
  65. package/dist/antd/es/locale/he_IL.js +99 -0
  66. package/dist/antd/es/locale/hi_IN.js +107 -0
  67. package/dist/antd/es/locale/hr_HR.js +113 -0
  68. package/dist/antd/es/locale/hu_HU.js +99 -0
  69. package/dist/antd/es/locale/hy_AM.js +109 -0
  70. package/dist/antd/es/locale/id_ID.js +101 -0
  71. package/dist/antd/es/locale/is_IS.js +98 -0
  72. package/dist/antd/es/locale/it_IT.js +111 -0
  73. package/dist/antd/es/locale/ja_JP.js +96 -0
  74. package/dist/antd/es/locale/kn_IN.js +107 -0
  75. package/dist/antd/es/locale/ko_KR.js +98 -0
  76. package/dist/antd/es/locale/ku_IQ.js +98 -0
  77. package/dist/antd/es/locale/lv_LV.js +98 -0
  78. package/dist/antd/es/locale/mk_MK.js +113 -0
  79. package/dist/antd/es/locale/mn_MN.js +99 -0
  80. package/dist/antd/es/locale/ms_MY.js +118 -0
  81. package/dist/antd/es/locale/nb_NO.js +97 -0
  82. package/dist/antd/es/locale/ne_NP.js +44 -0
  83. package/dist/antd/es/locale/nl_BE.js +98 -0
  84. package/dist/antd/es/locale/nl_NL.js +117 -0
  85. package/dist/antd/es/locale/pl_PL.js +98 -0
  86. package/dist/antd/es/locale/pt_BR.js +104 -0
  87. package/dist/antd/es/locale/pt_PT.js +127 -0
  88. package/dist/antd/es/locale/ro_RO.js +118 -0
  89. package/dist/antd/es/locale/ru_RU.js +110 -0
  90. package/dist/antd/es/locale/sk_SK.js +118 -0
  91. package/dist/antd/es/locale/sl_SI.js +96 -0
  92. package/dist/antd/es/locale/sr_RS.js +97 -0
  93. package/dist/antd/es/locale/sv_SE.js +101 -0
  94. package/dist/antd/es/locale/ta_IN.js +119 -0
  95. package/dist/antd/es/locale/th_TH.js +117 -0
  96. package/dist/antd/es/locale/tr_TR.js +112 -0
  97. package/dist/antd/es/locale/uk_UA.js +97 -0
  98. package/dist/antd/es/locale/vi_VN.js +99 -0
  99. package/dist/antd/es/locale/zh_CN.js +104 -0
  100. package/dist/antd/es/locale/zh_TW.js +100 -0
  101. package/dist/antd/es/locale-provider.js +6 -0
  102. package/dist/antd/es/mention.js +23215 -0
  103. package/dist/antd/es/mentions.js +961 -0
  104. package/dist/antd/es/menu.js +5 -0
  105. package/dist/antd/es/message.js +161 -0
  106. package/dist/antd/es/modal.js +885 -0
  107. package/dist/antd/es/notification.js +216 -0
  108. package/dist/antd/es/page-header.js +350 -0
  109. package/dist/antd/es/pagination.js +15 -0
  110. package/dist/antd/es/popconfirm.js +215 -0
  111. package/dist/antd/es/popover.js +5 -0
  112. package/dist/antd/es/progress.js +10 -0
  113. package/dist/antd/es/radio.js +10 -0
  114. package/dist/antd/es/rate.js +5 -0
  115. package/dist/antd/es/result.js +828 -0
  116. package/dist/antd/es/row.js +9 -0
  117. package/dist/antd/es/select.js +5 -0
  118. package/dist/antd/es/skeleton.js +370 -0
  119. package/dist/antd/es/slider.js +5 -0
  120. package/dist/antd/es/spin.js +11 -0
  121. package/dist/antd/es/statistic.js +650 -0
  122. package/dist/antd/es/steps.js +5 -0
  123. package/dist/antd/es/style.js +5 -0
  124. package/dist/antd/es/switch.js +5 -0
  125. package/dist/antd/es/table.js +7057 -0
  126. package/dist/antd/es/tabs.js +5 -0
  127. package/dist/antd/es/tag.js +12 -0
  128. package/dist/antd/es/time-picker.js +10 -0
  129. package/dist/antd/es/timeline.js +206 -0
  130. package/dist/antd/es/tooltip.js +9 -0
  131. package/dist/antd/es/transfer.js +2508 -0
  132. package/dist/antd/es/tree-select.js +5 -0
  133. package/dist/antd/es/tree.js +10 -0
  134. package/dist/antd/es/typography.js +1246 -0
  135. package/dist/antd/es/upload.js +3418 -0
  136. package/dist/antd/es/version.js +7 -0
  137. package/dist/col.js +142 -0
  138. package/dist/config-provider.js +6949 -0
  139. package/dist/dropdown.js +442 -0
  140. package/dist/get.js +1043 -0
  141. package/dist/icon.js +6138 -0
  142. package/dist/identity.js +230 -0
  143. package/dist/index.js +462 -0
  144. package/dist/index10.js +478 -0
  145. package/dist/index11.js +232 -0
  146. package/dist/index12.js +2766 -0
  147. package/dist/index13.js +422 -0
  148. package/dist/index14.js +283 -0
  149. package/dist/index15.js +1755 -0
  150. package/dist/index2.js +374 -0
  151. package/dist/index3.js +407 -0
  152. package/dist/index4.js +522 -0
  153. package/dist/index5.js +601 -0
  154. package/dist/index6.js +601 -0
  155. package/dist/index7.js +364 -0
  156. package/dist/index8.js +436 -0
  157. package/dist/index9.js +130 -0
  158. package/dist/input.js +475 -0
  159. package/dist/isLength.js +402 -0
  160. package/dist/keys.js +292 -0
  161. package/dist/menu.js +8138 -0
  162. package/dist/progress.js +852 -0
  163. package/dist/raf.js +34 -0
  164. package/dist/responsiveObserve.js +444 -0
  165. package/dist/row.js +173 -0
  166. package/dist/scrollTo.js +66 -0
  167. package/dist/toInteger.js +123 -0
  168. package/dist/toString.js +84 -0
  169. package/dist/transButton.js +121 -0
  170. package/dist/tree.js +3017 -0
  171. package/dist/warning.js +55 -0
  172. package/dist/wave.js +230 -0
  173. package/dist/zh_CN.js +17 -0
  174. package/package.json +160 -0
package/dist/get.js ADDED
@@ -0,0 +1,1043 @@
1
+ import { r as requireIsArray } from './_arrayMap.js';
2
+ import { a as requireIsSymbol } from './tree.js';
3
+ import { c as require_getNative, d as require_Map } from './isLength.js';
4
+ import { a as requireToString } from './toString.js';
5
+
6
+ var _isKey;
7
+ var hasRequired_isKey;
8
+
9
+ function require_isKey () {
10
+ if (hasRequired_isKey) return _isKey;
11
+ hasRequired_isKey = 1;
12
+ var isArray = requireIsArray(),
13
+ isSymbol = requireIsSymbol();
14
+
15
+ /** Used to match property names within property paths. */
16
+ var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
17
+ reIsPlainProp = /^\w*$/;
18
+
19
+ /**
20
+ * Checks if `value` is a property name and not a property path.
21
+ *
22
+ * @private
23
+ * @param {*} value The value to check.
24
+ * @param {Object} [object] The object to query keys on.
25
+ * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
26
+ */
27
+ function isKey(value, object) {
28
+ if (isArray(value)) {
29
+ return false;
30
+ }
31
+ var type = typeof value;
32
+ if (type == 'number' || type == 'symbol' || type == 'boolean' ||
33
+ value == null || isSymbol(value)) {
34
+ return true;
35
+ }
36
+ return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
37
+ (object != null && value in Object(object));
38
+ }
39
+
40
+ _isKey = isKey;
41
+ return _isKey;
42
+ }
43
+
44
+ var _nativeCreate;
45
+ var hasRequired_nativeCreate;
46
+
47
+ function require_nativeCreate () {
48
+ if (hasRequired_nativeCreate) return _nativeCreate;
49
+ hasRequired_nativeCreate = 1;
50
+ var getNative = require_getNative();
51
+
52
+ /* Built-in method references that are verified to be native. */
53
+ var nativeCreate = getNative(Object, 'create');
54
+
55
+ _nativeCreate = nativeCreate;
56
+ return _nativeCreate;
57
+ }
58
+
59
+ var _hashClear;
60
+ var hasRequired_hashClear;
61
+
62
+ function require_hashClear () {
63
+ if (hasRequired_hashClear) return _hashClear;
64
+ hasRequired_hashClear = 1;
65
+ var nativeCreate = require_nativeCreate();
66
+
67
+ /**
68
+ * Removes all key-value entries from the hash.
69
+ *
70
+ * @private
71
+ * @name clear
72
+ * @memberOf Hash
73
+ */
74
+ function hashClear() {
75
+ this.__data__ = nativeCreate ? nativeCreate(null) : {};
76
+ this.size = 0;
77
+ }
78
+
79
+ _hashClear = hashClear;
80
+ return _hashClear;
81
+ }
82
+
83
+ /**
84
+ * Removes `key` and its value from the hash.
85
+ *
86
+ * @private
87
+ * @name delete
88
+ * @memberOf Hash
89
+ * @param {Object} hash The hash to modify.
90
+ * @param {string} key The key of the value to remove.
91
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
92
+ */
93
+
94
+ var _hashDelete;
95
+ var hasRequired_hashDelete;
96
+
97
+ function require_hashDelete () {
98
+ if (hasRequired_hashDelete) return _hashDelete;
99
+ hasRequired_hashDelete = 1;
100
+ function hashDelete(key) {
101
+ var result = this.has(key) && delete this.__data__[key];
102
+ this.size -= result ? 1 : 0;
103
+ return result;
104
+ }
105
+
106
+ _hashDelete = hashDelete;
107
+ return _hashDelete;
108
+ }
109
+
110
+ var _hashGet;
111
+ var hasRequired_hashGet;
112
+
113
+ function require_hashGet () {
114
+ if (hasRequired_hashGet) return _hashGet;
115
+ hasRequired_hashGet = 1;
116
+ var nativeCreate = require_nativeCreate();
117
+
118
+ /** Used to stand-in for `undefined` hash values. */
119
+ var HASH_UNDEFINED = '__lodash_hash_undefined__';
120
+
121
+ /** Used for built-in method references. */
122
+ var objectProto = Object.prototype;
123
+
124
+ /** Used to check objects for own properties. */
125
+ var hasOwnProperty = objectProto.hasOwnProperty;
126
+
127
+ /**
128
+ * Gets the hash value for `key`.
129
+ *
130
+ * @private
131
+ * @name get
132
+ * @memberOf Hash
133
+ * @param {string} key The key of the value to get.
134
+ * @returns {*} Returns the entry value.
135
+ */
136
+ function hashGet(key) {
137
+ var data = this.__data__;
138
+ if (nativeCreate) {
139
+ var result = data[key];
140
+ return result === HASH_UNDEFINED ? undefined : result;
141
+ }
142
+ return hasOwnProperty.call(data, key) ? data[key] : undefined;
143
+ }
144
+
145
+ _hashGet = hashGet;
146
+ return _hashGet;
147
+ }
148
+
149
+ var _hashHas;
150
+ var hasRequired_hashHas;
151
+
152
+ function require_hashHas () {
153
+ if (hasRequired_hashHas) return _hashHas;
154
+ hasRequired_hashHas = 1;
155
+ var nativeCreate = require_nativeCreate();
156
+
157
+ /** Used for built-in method references. */
158
+ var objectProto = Object.prototype;
159
+
160
+ /** Used to check objects for own properties. */
161
+ var hasOwnProperty = objectProto.hasOwnProperty;
162
+
163
+ /**
164
+ * Checks if a hash value for `key` exists.
165
+ *
166
+ * @private
167
+ * @name has
168
+ * @memberOf Hash
169
+ * @param {string} key The key of the entry to check.
170
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
171
+ */
172
+ function hashHas(key) {
173
+ var data = this.__data__;
174
+ return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
175
+ }
176
+
177
+ _hashHas = hashHas;
178
+ return _hashHas;
179
+ }
180
+
181
+ var _hashSet;
182
+ var hasRequired_hashSet;
183
+
184
+ function require_hashSet () {
185
+ if (hasRequired_hashSet) return _hashSet;
186
+ hasRequired_hashSet = 1;
187
+ var nativeCreate = require_nativeCreate();
188
+
189
+ /** Used to stand-in for `undefined` hash values. */
190
+ var HASH_UNDEFINED = '__lodash_hash_undefined__';
191
+
192
+ /**
193
+ * Sets the hash `key` to `value`.
194
+ *
195
+ * @private
196
+ * @name set
197
+ * @memberOf Hash
198
+ * @param {string} key The key of the value to set.
199
+ * @param {*} value The value to set.
200
+ * @returns {Object} Returns the hash instance.
201
+ */
202
+ function hashSet(key, value) {
203
+ var data = this.__data__;
204
+ this.size += this.has(key) ? 0 : 1;
205
+ data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
206
+ return this;
207
+ }
208
+
209
+ _hashSet = hashSet;
210
+ return _hashSet;
211
+ }
212
+
213
+ var _Hash;
214
+ var hasRequired_Hash;
215
+
216
+ function require_Hash () {
217
+ if (hasRequired_Hash) return _Hash;
218
+ hasRequired_Hash = 1;
219
+ var hashClear = require_hashClear(),
220
+ hashDelete = require_hashDelete(),
221
+ hashGet = require_hashGet(),
222
+ hashHas = require_hashHas(),
223
+ hashSet = require_hashSet();
224
+
225
+ /**
226
+ * Creates a hash object.
227
+ *
228
+ * @private
229
+ * @constructor
230
+ * @param {Array} [entries] The key-value pairs to cache.
231
+ */
232
+ function Hash(entries) {
233
+ var index = -1,
234
+ length = entries == null ? 0 : entries.length;
235
+
236
+ this.clear();
237
+ while (++index < length) {
238
+ var entry = entries[index];
239
+ this.set(entry[0], entry[1]);
240
+ }
241
+ }
242
+
243
+ // Add methods to `Hash`.
244
+ Hash.prototype.clear = hashClear;
245
+ Hash.prototype['delete'] = hashDelete;
246
+ Hash.prototype.get = hashGet;
247
+ Hash.prototype.has = hashHas;
248
+ Hash.prototype.set = hashSet;
249
+
250
+ _Hash = Hash;
251
+ return _Hash;
252
+ }
253
+
254
+ /**
255
+ * Removes all key-value entries from the list cache.
256
+ *
257
+ * @private
258
+ * @name clear
259
+ * @memberOf ListCache
260
+ */
261
+
262
+ var _listCacheClear;
263
+ var hasRequired_listCacheClear;
264
+
265
+ function require_listCacheClear () {
266
+ if (hasRequired_listCacheClear) return _listCacheClear;
267
+ hasRequired_listCacheClear = 1;
268
+ function listCacheClear() {
269
+ this.__data__ = [];
270
+ this.size = 0;
271
+ }
272
+
273
+ _listCacheClear = listCacheClear;
274
+ return _listCacheClear;
275
+ }
276
+
277
+ /**
278
+ * Performs a
279
+ * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
280
+ * comparison between two values to determine if they are equivalent.
281
+ *
282
+ * @static
283
+ * @memberOf _
284
+ * @since 4.0.0
285
+ * @category Lang
286
+ * @param {*} value The value to compare.
287
+ * @param {*} other The other value to compare.
288
+ * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
289
+ * @example
290
+ *
291
+ * var object = { 'a': 1 };
292
+ * var other = { 'a': 1 };
293
+ *
294
+ * _.eq(object, object);
295
+ * // => true
296
+ *
297
+ * _.eq(object, other);
298
+ * // => false
299
+ *
300
+ * _.eq('a', 'a');
301
+ * // => true
302
+ *
303
+ * _.eq('a', Object('a'));
304
+ * // => false
305
+ *
306
+ * _.eq(NaN, NaN);
307
+ * // => true
308
+ */
309
+
310
+ var eq_1;
311
+ var hasRequiredEq;
312
+
313
+ function requireEq () {
314
+ if (hasRequiredEq) return eq_1;
315
+ hasRequiredEq = 1;
316
+ function eq(value, other) {
317
+ return value === other || (value !== value && other !== other);
318
+ }
319
+
320
+ eq_1 = eq;
321
+ return eq_1;
322
+ }
323
+
324
+ var _assocIndexOf;
325
+ var hasRequired_assocIndexOf;
326
+
327
+ function require_assocIndexOf () {
328
+ if (hasRequired_assocIndexOf) return _assocIndexOf;
329
+ hasRequired_assocIndexOf = 1;
330
+ var eq = requireEq();
331
+
332
+ /**
333
+ * Gets the index at which the `key` is found in `array` of key-value pairs.
334
+ *
335
+ * @private
336
+ * @param {Array} array The array to inspect.
337
+ * @param {*} key The key to search for.
338
+ * @returns {number} Returns the index of the matched value, else `-1`.
339
+ */
340
+ function assocIndexOf(array, key) {
341
+ var length = array.length;
342
+ while (length--) {
343
+ if (eq(array[length][0], key)) {
344
+ return length;
345
+ }
346
+ }
347
+ return -1;
348
+ }
349
+
350
+ _assocIndexOf = assocIndexOf;
351
+ return _assocIndexOf;
352
+ }
353
+
354
+ var _listCacheDelete;
355
+ var hasRequired_listCacheDelete;
356
+
357
+ function require_listCacheDelete () {
358
+ if (hasRequired_listCacheDelete) return _listCacheDelete;
359
+ hasRequired_listCacheDelete = 1;
360
+ var assocIndexOf = require_assocIndexOf();
361
+
362
+ /** Used for built-in method references. */
363
+ var arrayProto = Array.prototype;
364
+
365
+ /** Built-in value references. */
366
+ var splice = arrayProto.splice;
367
+
368
+ /**
369
+ * Removes `key` and its value from the list cache.
370
+ *
371
+ * @private
372
+ * @name delete
373
+ * @memberOf ListCache
374
+ * @param {string} key The key of the value to remove.
375
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
376
+ */
377
+ function listCacheDelete(key) {
378
+ var data = this.__data__,
379
+ index = assocIndexOf(data, key);
380
+
381
+ if (index < 0) {
382
+ return false;
383
+ }
384
+ var lastIndex = data.length - 1;
385
+ if (index == lastIndex) {
386
+ data.pop();
387
+ } else {
388
+ splice.call(data, index, 1);
389
+ }
390
+ --this.size;
391
+ return true;
392
+ }
393
+
394
+ _listCacheDelete = listCacheDelete;
395
+ return _listCacheDelete;
396
+ }
397
+
398
+ var _listCacheGet;
399
+ var hasRequired_listCacheGet;
400
+
401
+ function require_listCacheGet () {
402
+ if (hasRequired_listCacheGet) return _listCacheGet;
403
+ hasRequired_listCacheGet = 1;
404
+ var assocIndexOf = require_assocIndexOf();
405
+
406
+ /**
407
+ * Gets the list cache value for `key`.
408
+ *
409
+ * @private
410
+ * @name get
411
+ * @memberOf ListCache
412
+ * @param {string} key The key of the value to get.
413
+ * @returns {*} Returns the entry value.
414
+ */
415
+ function listCacheGet(key) {
416
+ var data = this.__data__,
417
+ index = assocIndexOf(data, key);
418
+
419
+ return index < 0 ? undefined : data[index][1];
420
+ }
421
+
422
+ _listCacheGet = listCacheGet;
423
+ return _listCacheGet;
424
+ }
425
+
426
+ var _listCacheHas;
427
+ var hasRequired_listCacheHas;
428
+
429
+ function require_listCacheHas () {
430
+ if (hasRequired_listCacheHas) return _listCacheHas;
431
+ hasRequired_listCacheHas = 1;
432
+ var assocIndexOf = require_assocIndexOf();
433
+
434
+ /**
435
+ * Checks if a list cache value for `key` exists.
436
+ *
437
+ * @private
438
+ * @name has
439
+ * @memberOf ListCache
440
+ * @param {string} key The key of the entry to check.
441
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
442
+ */
443
+ function listCacheHas(key) {
444
+ return assocIndexOf(this.__data__, key) > -1;
445
+ }
446
+
447
+ _listCacheHas = listCacheHas;
448
+ return _listCacheHas;
449
+ }
450
+
451
+ var _listCacheSet;
452
+ var hasRequired_listCacheSet;
453
+
454
+ function require_listCacheSet () {
455
+ if (hasRequired_listCacheSet) return _listCacheSet;
456
+ hasRequired_listCacheSet = 1;
457
+ var assocIndexOf = require_assocIndexOf();
458
+
459
+ /**
460
+ * Sets the list cache `key` to `value`.
461
+ *
462
+ * @private
463
+ * @name set
464
+ * @memberOf ListCache
465
+ * @param {string} key The key of the value to set.
466
+ * @param {*} value The value to set.
467
+ * @returns {Object} Returns the list cache instance.
468
+ */
469
+ function listCacheSet(key, value) {
470
+ var data = this.__data__,
471
+ index = assocIndexOf(data, key);
472
+
473
+ if (index < 0) {
474
+ ++this.size;
475
+ data.push([key, value]);
476
+ } else {
477
+ data[index][1] = value;
478
+ }
479
+ return this;
480
+ }
481
+
482
+ _listCacheSet = listCacheSet;
483
+ return _listCacheSet;
484
+ }
485
+
486
+ var _ListCache;
487
+ var hasRequired_ListCache;
488
+
489
+ function require_ListCache () {
490
+ if (hasRequired_ListCache) return _ListCache;
491
+ hasRequired_ListCache = 1;
492
+ var listCacheClear = require_listCacheClear(),
493
+ listCacheDelete = require_listCacheDelete(),
494
+ listCacheGet = require_listCacheGet(),
495
+ listCacheHas = require_listCacheHas(),
496
+ listCacheSet = require_listCacheSet();
497
+
498
+ /**
499
+ * Creates an list cache object.
500
+ *
501
+ * @private
502
+ * @constructor
503
+ * @param {Array} [entries] The key-value pairs to cache.
504
+ */
505
+ function ListCache(entries) {
506
+ var index = -1,
507
+ length = entries == null ? 0 : entries.length;
508
+
509
+ this.clear();
510
+ while (++index < length) {
511
+ var entry = entries[index];
512
+ this.set(entry[0], entry[1]);
513
+ }
514
+ }
515
+
516
+ // Add methods to `ListCache`.
517
+ ListCache.prototype.clear = listCacheClear;
518
+ ListCache.prototype['delete'] = listCacheDelete;
519
+ ListCache.prototype.get = listCacheGet;
520
+ ListCache.prototype.has = listCacheHas;
521
+ ListCache.prototype.set = listCacheSet;
522
+
523
+ _ListCache = ListCache;
524
+ return _ListCache;
525
+ }
526
+
527
+ var _mapCacheClear;
528
+ var hasRequired_mapCacheClear;
529
+
530
+ function require_mapCacheClear () {
531
+ if (hasRequired_mapCacheClear) return _mapCacheClear;
532
+ hasRequired_mapCacheClear = 1;
533
+ var Hash = require_Hash(),
534
+ ListCache = require_ListCache(),
535
+ Map = require_Map();
536
+
537
+ /**
538
+ * Removes all key-value entries from the map.
539
+ *
540
+ * @private
541
+ * @name clear
542
+ * @memberOf MapCache
543
+ */
544
+ function mapCacheClear() {
545
+ this.size = 0;
546
+ this.__data__ = {
547
+ 'hash': new Hash,
548
+ 'map': new (Map || ListCache),
549
+ 'string': new Hash
550
+ };
551
+ }
552
+
553
+ _mapCacheClear = mapCacheClear;
554
+ return _mapCacheClear;
555
+ }
556
+
557
+ /**
558
+ * Checks if `value` is suitable for use as unique object key.
559
+ *
560
+ * @private
561
+ * @param {*} value The value to check.
562
+ * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
563
+ */
564
+
565
+ var _isKeyable;
566
+ var hasRequired_isKeyable;
567
+
568
+ function require_isKeyable () {
569
+ if (hasRequired_isKeyable) return _isKeyable;
570
+ hasRequired_isKeyable = 1;
571
+ function isKeyable(value) {
572
+ var type = typeof value;
573
+ return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
574
+ ? (value !== '__proto__')
575
+ : (value === null);
576
+ }
577
+
578
+ _isKeyable = isKeyable;
579
+ return _isKeyable;
580
+ }
581
+
582
+ var _getMapData;
583
+ var hasRequired_getMapData;
584
+
585
+ function require_getMapData () {
586
+ if (hasRequired_getMapData) return _getMapData;
587
+ hasRequired_getMapData = 1;
588
+ var isKeyable = require_isKeyable();
589
+
590
+ /**
591
+ * Gets the data for `map`.
592
+ *
593
+ * @private
594
+ * @param {Object} map The map to query.
595
+ * @param {string} key The reference key.
596
+ * @returns {*} Returns the map data.
597
+ */
598
+ function getMapData(map, key) {
599
+ var data = map.__data__;
600
+ return isKeyable(key)
601
+ ? data[typeof key == 'string' ? 'string' : 'hash']
602
+ : data.map;
603
+ }
604
+
605
+ _getMapData = getMapData;
606
+ return _getMapData;
607
+ }
608
+
609
+ var _mapCacheDelete;
610
+ var hasRequired_mapCacheDelete;
611
+
612
+ function require_mapCacheDelete () {
613
+ if (hasRequired_mapCacheDelete) return _mapCacheDelete;
614
+ hasRequired_mapCacheDelete = 1;
615
+ var getMapData = require_getMapData();
616
+
617
+ /**
618
+ * Removes `key` and its value from the map.
619
+ *
620
+ * @private
621
+ * @name delete
622
+ * @memberOf MapCache
623
+ * @param {string} key The key of the value to remove.
624
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
625
+ */
626
+ function mapCacheDelete(key) {
627
+ var result = getMapData(this, key)['delete'](key);
628
+ this.size -= result ? 1 : 0;
629
+ return result;
630
+ }
631
+
632
+ _mapCacheDelete = mapCacheDelete;
633
+ return _mapCacheDelete;
634
+ }
635
+
636
+ var _mapCacheGet;
637
+ var hasRequired_mapCacheGet;
638
+
639
+ function require_mapCacheGet () {
640
+ if (hasRequired_mapCacheGet) return _mapCacheGet;
641
+ hasRequired_mapCacheGet = 1;
642
+ var getMapData = require_getMapData();
643
+
644
+ /**
645
+ * Gets the map value for `key`.
646
+ *
647
+ * @private
648
+ * @name get
649
+ * @memberOf MapCache
650
+ * @param {string} key The key of the value to get.
651
+ * @returns {*} Returns the entry value.
652
+ */
653
+ function mapCacheGet(key) {
654
+ return getMapData(this, key).get(key);
655
+ }
656
+
657
+ _mapCacheGet = mapCacheGet;
658
+ return _mapCacheGet;
659
+ }
660
+
661
+ var _mapCacheHas;
662
+ var hasRequired_mapCacheHas;
663
+
664
+ function require_mapCacheHas () {
665
+ if (hasRequired_mapCacheHas) return _mapCacheHas;
666
+ hasRequired_mapCacheHas = 1;
667
+ var getMapData = require_getMapData();
668
+
669
+ /**
670
+ * Checks if a map value for `key` exists.
671
+ *
672
+ * @private
673
+ * @name has
674
+ * @memberOf MapCache
675
+ * @param {string} key The key of the entry to check.
676
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
677
+ */
678
+ function mapCacheHas(key) {
679
+ return getMapData(this, key).has(key);
680
+ }
681
+
682
+ _mapCacheHas = mapCacheHas;
683
+ return _mapCacheHas;
684
+ }
685
+
686
+ var _mapCacheSet;
687
+ var hasRequired_mapCacheSet;
688
+
689
+ function require_mapCacheSet () {
690
+ if (hasRequired_mapCacheSet) return _mapCacheSet;
691
+ hasRequired_mapCacheSet = 1;
692
+ var getMapData = require_getMapData();
693
+
694
+ /**
695
+ * Sets the map `key` to `value`.
696
+ *
697
+ * @private
698
+ * @name set
699
+ * @memberOf MapCache
700
+ * @param {string} key The key of the value to set.
701
+ * @param {*} value The value to set.
702
+ * @returns {Object} Returns the map cache instance.
703
+ */
704
+ function mapCacheSet(key, value) {
705
+ var data = getMapData(this, key),
706
+ size = data.size;
707
+
708
+ data.set(key, value);
709
+ this.size += data.size == size ? 0 : 1;
710
+ return this;
711
+ }
712
+
713
+ _mapCacheSet = mapCacheSet;
714
+ return _mapCacheSet;
715
+ }
716
+
717
+ var _MapCache;
718
+ var hasRequired_MapCache;
719
+
720
+ function require_MapCache () {
721
+ if (hasRequired_MapCache) return _MapCache;
722
+ hasRequired_MapCache = 1;
723
+ var mapCacheClear = require_mapCacheClear(),
724
+ mapCacheDelete = require_mapCacheDelete(),
725
+ mapCacheGet = require_mapCacheGet(),
726
+ mapCacheHas = require_mapCacheHas(),
727
+ mapCacheSet = require_mapCacheSet();
728
+
729
+ /**
730
+ * Creates a map cache object to store key-value pairs.
731
+ *
732
+ * @private
733
+ * @constructor
734
+ * @param {Array} [entries] The key-value pairs to cache.
735
+ */
736
+ function MapCache(entries) {
737
+ var index = -1,
738
+ length = entries == null ? 0 : entries.length;
739
+
740
+ this.clear();
741
+ while (++index < length) {
742
+ var entry = entries[index];
743
+ this.set(entry[0], entry[1]);
744
+ }
745
+ }
746
+
747
+ // Add methods to `MapCache`.
748
+ MapCache.prototype.clear = mapCacheClear;
749
+ MapCache.prototype['delete'] = mapCacheDelete;
750
+ MapCache.prototype.get = mapCacheGet;
751
+ MapCache.prototype.has = mapCacheHas;
752
+ MapCache.prototype.set = mapCacheSet;
753
+
754
+ _MapCache = MapCache;
755
+ return _MapCache;
756
+ }
757
+
758
+ var memoize_1;
759
+ var hasRequiredMemoize;
760
+
761
+ function requireMemoize () {
762
+ if (hasRequiredMemoize) return memoize_1;
763
+ hasRequiredMemoize = 1;
764
+ var MapCache = require_MapCache();
765
+
766
+ /** Error message constants. */
767
+ var FUNC_ERROR_TEXT = 'Expected a function';
768
+
769
+ /**
770
+ * Creates a function that memoizes the result of `func`. If `resolver` is
771
+ * provided, it determines the cache key for storing the result based on the
772
+ * arguments provided to the memoized function. By default, the first argument
773
+ * provided to the memoized function is used as the map cache key. The `func`
774
+ * is invoked with the `this` binding of the memoized function.
775
+ *
776
+ * **Note:** The cache is exposed as the `cache` property on the memoized
777
+ * function. Its creation may be customized by replacing the `_.memoize.Cache`
778
+ * constructor with one whose instances implement the
779
+ * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
780
+ * method interface of `clear`, `delete`, `get`, `has`, and `set`.
781
+ *
782
+ * @static
783
+ * @memberOf _
784
+ * @since 0.1.0
785
+ * @category Function
786
+ * @param {Function} func The function to have its output memoized.
787
+ * @param {Function} [resolver] The function to resolve the cache key.
788
+ * @returns {Function} Returns the new memoized function.
789
+ * @example
790
+ *
791
+ * var object = { 'a': 1, 'b': 2 };
792
+ * var other = { 'c': 3, 'd': 4 };
793
+ *
794
+ * var values = _.memoize(_.values);
795
+ * values(object);
796
+ * // => [1, 2]
797
+ *
798
+ * values(other);
799
+ * // => [3, 4]
800
+ *
801
+ * object.a = 2;
802
+ * values(object);
803
+ * // => [1, 2]
804
+ *
805
+ * // Modify the result cache.
806
+ * values.cache.set(object, ['a', 'b']);
807
+ * values(object);
808
+ * // => ['a', 'b']
809
+ *
810
+ * // Replace `_.memoize.Cache`.
811
+ * _.memoize.Cache = WeakMap;
812
+ */
813
+ function memoize(func, resolver) {
814
+ if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
815
+ throw new TypeError(FUNC_ERROR_TEXT);
816
+ }
817
+ var memoized = function() {
818
+ var args = arguments,
819
+ key = resolver ? resolver.apply(this, args) : args[0],
820
+ cache = memoized.cache;
821
+
822
+ if (cache.has(key)) {
823
+ return cache.get(key);
824
+ }
825
+ var result = func.apply(this, args);
826
+ memoized.cache = cache.set(key, result) || cache;
827
+ return result;
828
+ };
829
+ memoized.cache = new (memoize.Cache || MapCache);
830
+ return memoized;
831
+ }
832
+
833
+ // Expose `MapCache`.
834
+ memoize.Cache = MapCache;
835
+
836
+ memoize_1 = memoize;
837
+ return memoize_1;
838
+ }
839
+
840
+ var _memoizeCapped;
841
+ var hasRequired_memoizeCapped;
842
+
843
+ function require_memoizeCapped () {
844
+ if (hasRequired_memoizeCapped) return _memoizeCapped;
845
+ hasRequired_memoizeCapped = 1;
846
+ var memoize = requireMemoize();
847
+
848
+ /** Used as the maximum memoize cache size. */
849
+ var MAX_MEMOIZE_SIZE = 500;
850
+
851
+ /**
852
+ * A specialized version of `_.memoize` which clears the memoized function's
853
+ * cache when it exceeds `MAX_MEMOIZE_SIZE`.
854
+ *
855
+ * @private
856
+ * @param {Function} func The function to have its output memoized.
857
+ * @returns {Function} Returns the new memoized function.
858
+ */
859
+ function memoizeCapped(func) {
860
+ var result = memoize(func, function(key) {
861
+ if (cache.size === MAX_MEMOIZE_SIZE) {
862
+ cache.clear();
863
+ }
864
+ return key;
865
+ });
866
+
867
+ var cache = result.cache;
868
+ return result;
869
+ }
870
+
871
+ _memoizeCapped = memoizeCapped;
872
+ return _memoizeCapped;
873
+ }
874
+
875
+ var _stringToPath;
876
+ var hasRequired_stringToPath;
877
+
878
+ function require_stringToPath () {
879
+ if (hasRequired_stringToPath) return _stringToPath;
880
+ hasRequired_stringToPath = 1;
881
+ var memoizeCapped = require_memoizeCapped();
882
+
883
+ /** Used to match property names within property paths. */
884
+ var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
885
+
886
+ /** Used to match backslashes in property paths. */
887
+ var reEscapeChar = /\\(\\)?/g;
888
+
889
+ /**
890
+ * Converts `string` to a property path array.
891
+ *
892
+ * @private
893
+ * @param {string} string The string to convert.
894
+ * @returns {Array} Returns the property path array.
895
+ */
896
+ var stringToPath = memoizeCapped(function(string) {
897
+ var result = [];
898
+ if (string.charCodeAt(0) === 46 /* . */) {
899
+ result.push('');
900
+ }
901
+ string.replace(rePropName, function(match, number, quote, subString) {
902
+ result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
903
+ });
904
+ return result;
905
+ });
906
+
907
+ _stringToPath = stringToPath;
908
+ return _stringToPath;
909
+ }
910
+
911
+ var _castPath;
912
+ var hasRequired_castPath;
913
+
914
+ function require_castPath () {
915
+ if (hasRequired_castPath) return _castPath;
916
+ hasRequired_castPath = 1;
917
+ var isArray = requireIsArray(),
918
+ isKey = require_isKey(),
919
+ stringToPath = require_stringToPath(),
920
+ toString = requireToString();
921
+
922
+ /**
923
+ * Casts `value` to a path array if it's not one.
924
+ *
925
+ * @private
926
+ * @param {*} value The value to inspect.
927
+ * @param {Object} [object] The object to query keys on.
928
+ * @returns {Array} Returns the cast property path array.
929
+ */
930
+ function castPath(value, object) {
931
+ if (isArray(value)) {
932
+ return value;
933
+ }
934
+ return isKey(value, object) ? [value] : stringToPath(toString(value));
935
+ }
936
+
937
+ _castPath = castPath;
938
+ return _castPath;
939
+ }
940
+
941
+ var _toKey;
942
+ var hasRequired_toKey;
943
+
944
+ function require_toKey () {
945
+ if (hasRequired_toKey) return _toKey;
946
+ hasRequired_toKey = 1;
947
+ var isSymbol = requireIsSymbol();
948
+
949
+ /**
950
+ * Converts `value` to a string key if it's not a string or symbol.
951
+ *
952
+ * @private
953
+ * @param {*} value The value to inspect.
954
+ * @returns {string|symbol} Returns the key.
955
+ */
956
+ function toKey(value) {
957
+ if (typeof value == 'string' || isSymbol(value)) {
958
+ return value;
959
+ }
960
+ var result = (value + '');
961
+ return (result == '0' && (1 / value) == -Infinity) ? '-0' : result;
962
+ }
963
+
964
+ _toKey = toKey;
965
+ return _toKey;
966
+ }
967
+
968
+ var _baseGet;
969
+ var hasRequired_baseGet;
970
+
971
+ function require_baseGet () {
972
+ if (hasRequired_baseGet) return _baseGet;
973
+ hasRequired_baseGet = 1;
974
+ var castPath = require_castPath(),
975
+ toKey = require_toKey();
976
+
977
+ /**
978
+ * The base implementation of `_.get` without support for default values.
979
+ *
980
+ * @private
981
+ * @param {Object} object The object to query.
982
+ * @param {Array|string} path The path of the property to get.
983
+ * @returns {*} Returns the resolved value.
984
+ */
985
+ function baseGet(object, path) {
986
+ path = castPath(path, object);
987
+
988
+ var index = 0,
989
+ length = path.length;
990
+
991
+ while (object != null && index < length) {
992
+ object = object[toKey(path[index++])];
993
+ }
994
+ return (index && index == length) ? object : undefined;
995
+ }
996
+
997
+ _baseGet = baseGet;
998
+ return _baseGet;
999
+ }
1000
+
1001
+ var get_1;
1002
+ var hasRequiredGet;
1003
+
1004
+ function requireGet () {
1005
+ if (hasRequiredGet) return get_1;
1006
+ hasRequiredGet = 1;
1007
+ var baseGet = require_baseGet();
1008
+
1009
+ /**
1010
+ * Gets the value at `path` of `object`. If the resolved value is
1011
+ * `undefined`, the `defaultValue` is returned in its place.
1012
+ *
1013
+ * @static
1014
+ * @memberOf _
1015
+ * @since 3.7.0
1016
+ * @category Object
1017
+ * @param {Object} object The object to query.
1018
+ * @param {Array|string} path The path of the property to get.
1019
+ * @param {*} [defaultValue] The value returned for `undefined` resolved values.
1020
+ * @returns {*} Returns the resolved value.
1021
+ * @example
1022
+ *
1023
+ * var object = { 'a': [{ 'b': { 'c': 3 } }] };
1024
+ *
1025
+ * _.get(object, 'a[0].b.c');
1026
+ * // => 3
1027
+ *
1028
+ * _.get(object, ['a', '0', 'b', 'c']);
1029
+ * // => 3
1030
+ *
1031
+ * _.get(object, 'a.b.c', 'default');
1032
+ * // => 'default'
1033
+ */
1034
+ function get(object, path, defaultValue) {
1035
+ var result = object == null ? undefined : baseGet(object, path);
1036
+ return result === undefined ? defaultValue : result;
1037
+ }
1038
+
1039
+ get_1 = get;
1040
+ return get_1;
1041
+ }
1042
+
1043
+ export { require_toKey as a, requireEq as b, require_ListCache as c, require_MapCache as d, requireGet as e, require_isKey as f, require_baseGet as g, require_castPath as r };