@revolist/revogrid 3.1.5 → 3.1.90

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 (242) hide show
  1. package/custom-element/_baseIteratee.js +2070 -0
  2. package/custom-element/columnService.js +743 -0
  3. package/custom-element/consts.js +46 -0
  4. package/custom-element/data.store.js +545 -0
  5. package/custom-element/debounce.js +217 -0
  6. package/custom-element/dimension.helpers.js +340 -0
  7. package/custom-element/each.js +180 -0
  8. package/custom-element/filter.button.js +36 -0
  9. package/custom-element/identity.js +26 -0
  10. package/custom-element/index.d.ts +15 -98
  11. package/custom-element/index.js +18 -28949
  12. package/custom-element/isSymbol.js +220 -0
  13. package/custom-element/keys.js +561 -0
  14. package/custom-element/localScrollService.js +86 -0
  15. package/custom-element/resize-observer.js +25 -11
  16. package/custom-element/revo-grid.d.ts +11 -0
  17. package/custom-element/revo-grid.js +3662 -0
  18. package/custom-element/revogr-clipboard.d.ts +11 -0
  19. package/custom-element/revogr-clipboard.js +72 -0
  20. package/custom-element/revogr-data.d.ts +11 -0
  21. package/custom-element/revogr-data.js +9 -0
  22. package/custom-element/revogr-data2.js +171 -0
  23. package/custom-element/revogr-edit.d.ts +11 -0
  24. package/custom-element/revogr-edit.js +9 -0
  25. package/custom-element/revogr-edit2.js +402 -0
  26. package/custom-element/revogr-filter-panel.d.ts +11 -0
  27. package/custom-element/revogr-filter-panel.js +308 -0
  28. package/custom-element/revogr-focus.d.ts +11 -0
  29. package/custom-element/revogr-focus.js +9 -0
  30. package/custom-element/revogr-focus2.js +64 -0
  31. package/custom-element/revogr-header.d.ts +11 -0
  32. package/custom-element/revogr-header.js +9 -0
  33. package/custom-element/revogr-header2.js +591 -0
  34. package/custom-element/revogr-order-editor.d.ts +11 -0
  35. package/custom-element/revogr-order-editor.js +9 -0
  36. package/custom-element/revogr-order-editor2.js +190 -0
  37. package/custom-element/revogr-overlay-selection.d.ts +11 -0
  38. package/custom-element/revogr-overlay-selection.js +9 -0
  39. package/custom-element/revogr-overlay-selection2.js +741 -0
  40. package/custom-element/revogr-row-headers.d.ts +11 -0
  41. package/custom-element/revogr-row-headers.js +9 -0
  42. package/custom-element/revogr-row-headers2.js +403 -0
  43. package/custom-element/revogr-scroll-virtual.d.ts +11 -0
  44. package/custom-element/revogr-scroll-virtual.js +9 -0
  45. package/custom-element/revogr-scroll-virtual2.js +135 -0
  46. package/custom-element/revogr-temp-range.d.ts +11 -0
  47. package/custom-element/revogr-temp-range.js +9 -0
  48. package/custom-element/revogr-temp-range2.js +17275 -0
  49. package/custom-element/revogr-viewport-scroll.d.ts +11 -0
  50. package/custom-element/revogr-viewport-scroll.js +9 -0
  51. package/custom-element/revogr-viewport-scroll2.js +367 -0
  52. package/custom-element/selection.utils.js +106 -0
  53. package/custom-element/toInteger.js +107 -0
  54. package/custom-element/toNumber.js +105 -0
  55. package/custom-element/utils.js +69 -0
  56. package/dist/cjs/css-shim-9f5bc84d.js +9 -0
  57. package/dist/cjs/{debounce-e9b040d9.js → debounce-6cea2774.js} +4 -1
  58. package/dist/cjs/{dom-c8b6d1a7.js → dom-fcb646f0.js} +4 -1
  59. package/dist/cjs/{index-d3f67f2e.js → index-cb904e00.js} +214 -91
  60. package/dist/cjs/index.cjs.js +3 -0
  61. package/dist/cjs/loader.cjs.js +7 -4
  62. package/dist/cjs/{resize-observer-8dc80084.js → resize-observer-bf327d6a.js} +25 -10
  63. package/dist/cjs/revo-grid.cjs.js +13 -7
  64. package/dist/cjs/revo-grid_11.cjs.entry.js +281 -16
  65. package/dist/cjs/revogr-clipboard.cjs.entry.js +4 -1
  66. package/dist/cjs/revogr-filter-panel.cjs.entry.js +21 -8
  67. package/dist/collection/collection-manifest.json +2 -2
  68. package/dist/collection/components/button/button.js +3 -0
  69. package/dist/collection/components/clipboard/revogr-clipboard.js +3 -0
  70. package/dist/collection/components/data/cellRenderer.js +3 -0
  71. package/dist/collection/components/data/columnService.js +3 -0
  72. package/dist/collection/components/data/revogr-data.js +3 -0
  73. package/dist/collection/components/data/rowRenderer.js +3 -0
  74. package/dist/collection/components/header/headerCellRenderer.js +11 -1
  75. package/dist/collection/components/header/headerRenderer.js +3 -0
  76. package/dist/collection/components/header/revogr-header.js +3 -0
  77. package/dist/collection/components/order/orderRenderer.js +3 -0
  78. package/dist/collection/components/order/revogr-order-editor.js +3 -0
  79. package/dist/collection/components/order/rowOrderService.js +3 -0
  80. package/dist/collection/components/overlay/autofill.service.js +3 -0
  81. package/dist/collection/components/overlay/clipboard.service.js +3 -0
  82. package/dist/collection/components/overlay/editors/edit.utils.js +3 -0
  83. package/dist/collection/components/overlay/editors/text.js +3 -0
  84. package/dist/collection/components/overlay/keyboard.service.js +3 -0
  85. package/dist/collection/components/overlay/revogr-edit.js +3 -0
  86. package/dist/collection/components/overlay/revogr-overlay-selection.js +3 -0
  87. package/dist/collection/components/overlay/selection.utils.js +3 -0
  88. package/dist/collection/components/revo-grid/revo-grid-style.css +18 -1
  89. package/dist/collection/components/revo-grid/revo-grid.js +77 -17
  90. package/dist/collection/components/revo-grid/viewport.helpers.js +3 -0
  91. package/dist/collection/components/revo-grid/viewport.interfaces.js +3 -0
  92. package/dist/collection/components/revo-grid/viewport.js +3 -0
  93. package/dist/collection/components/revo-grid/viewport.resize.service.js +3 -0
  94. package/dist/collection/components/revo-grid/viewport.scrolling.service.js +3 -0
  95. package/dist/collection/components/revo-grid/viewport.section.js +4 -1
  96. package/dist/collection/components/revo-grid/viewport.service.js +3 -0
  97. package/dist/collection/components/rowHeaders/revogr-row-headers.js +3 -0
  98. package/dist/collection/components/rowHeaders/row-header-render.js +3 -0
  99. package/dist/collection/components/scroll/revogr-viewport-scroll.js +5 -2
  100. package/dist/collection/components/scrollable/revogr-scroll-virtual.js +3 -0
  101. package/dist/collection/components/selection-focus/revogr-focus.js +79 -7
  102. package/dist/collection/components/selection-temp-range/revogr-temp-range.js +3 -0
  103. package/dist/collection/global/global.js +3 -0
  104. package/dist/collection/index.js +3 -0
  105. package/dist/collection/plugins/autoSizeColumn.js +4 -1
  106. package/dist/collection/plugins/basePlugin.js +3 -0
  107. package/dist/collection/plugins/dispatcher.js +22 -0
  108. package/dist/collection/plugins/export/csv.js +3 -0
  109. package/dist/collection/plugins/export/export.plugin.js +3 -0
  110. package/dist/collection/plugins/export/types.js +3 -0
  111. package/dist/collection/plugins/filter/conditions/equal.js +3 -0
  112. package/dist/collection/plugins/filter/conditions/number/greaterThan.js +3 -0
  113. package/dist/collection/plugins/filter/conditions/number/greaterThanOrEqual.js +3 -0
  114. package/dist/collection/plugins/filter/conditions/number/lessThan.js +3 -0
  115. package/dist/collection/plugins/filter/conditions/number/lessThanOrEqual.js +3 -0
  116. package/dist/collection/plugins/filter/conditions/set.js +3 -0
  117. package/dist/collection/plugins/filter/conditions/string/beginswith.js +3 -0
  118. package/dist/collection/plugins/filter/conditions/string/contains.js +3 -0
  119. package/dist/collection/plugins/filter/filter.button.js +3 -0
  120. package/dist/collection/plugins/filter/filter.plugin.js +4 -1
  121. package/dist/collection/plugins/filter/filter.pop.js +39 -7
  122. package/dist/collection/plugins/filter/filter.service.js +3 -0
  123. package/dist/collection/plugins/filter/filter.types.js +3 -0
  124. package/dist/collection/plugins/groupingColumn/columnGroupsRenderer.js +3 -0
  125. package/dist/collection/plugins/groupingColumn/grouping.col.plugin.js +6 -3
  126. package/dist/collection/plugins/groupingColumn/headerGroupRenderer.js +3 -0
  127. package/dist/collection/plugins/groupingRow/grouping.const.js +3 -0
  128. package/dist/collection/plugins/groupingRow/grouping.row.expand.service.js +3 -0
  129. package/dist/collection/plugins/groupingRow/grouping.row.plugin.js +3 -0
  130. package/dist/collection/plugins/groupingRow/grouping.row.renderer.js +3 -0
  131. package/dist/collection/plugins/groupingRow/grouping.row.types.js +3 -0
  132. package/dist/collection/plugins/groupingRow/grouping.service.js +3 -0
  133. package/dist/collection/plugins/groupingRow/grouping.trimmed.service.js +3 -0
  134. package/dist/collection/plugins/moveColumn/columnDragPlugin.js +163 -0
  135. package/dist/collection/plugins/moveColumn/columnOrderHandler.js +63 -0
  136. package/dist/collection/plugins/sorting/sorting.plugin.js +3 -0
  137. package/dist/collection/plugins/sorting/sorting.sign.js +3 -0
  138. package/dist/collection/plugins/stretchPlugin.js +3 -0
  139. package/dist/collection/plugins/trimmed/trimmed.plugin.js +3 -0
  140. package/dist/collection/services/cell.helpers.js +3 -0
  141. package/dist/collection/services/column.data.provider.js +6 -3
  142. package/dist/collection/services/data.provider.js +3 -0
  143. package/dist/collection/services/dimension.provider.js +3 -0
  144. package/dist/collection/services/localScrollService.js +3 -0
  145. package/dist/collection/services/resizable.directive.js +5 -0
  146. package/dist/collection/services/selection.store.connector.js +3 -0
  147. package/dist/collection/services/viewport.provider.js +3 -0
  148. package/dist/collection/store/dataSource/data.proxy.js +3 -0
  149. package/dist/collection/store/dataSource/data.store.js +3 -0
  150. package/dist/collection/store/dimension/dimension.helpers.js +3 -0
  151. package/dist/collection/store/dimension/dimension.store.js +3 -0
  152. package/dist/collection/store/selection/selection.helpers.js +3 -0
  153. package/dist/collection/store/selection/selection.store.js +3 -0
  154. package/dist/collection/store/selection/selection.store.service.js +3 -0
  155. package/dist/collection/store/storeTypes.js +3 -0
  156. package/dist/collection/store/viewPort/viewport.helpers.js +3 -0
  157. package/dist/collection/store/viewPort/viewport.store.js +3 -0
  158. package/dist/collection/themeManager/theme.compact.js +3 -0
  159. package/dist/collection/themeManager/theme.default.js +3 -0
  160. package/dist/collection/themeManager/theme.material.js +3 -0
  161. package/dist/collection/themeManager/themeService.js +3 -0
  162. package/dist/collection/utils/closestPolifill.js +3 -0
  163. package/dist/collection/utils/consts.js +3 -0
  164. package/dist/collection/utils/generateAlphabetHeader.js +3 -0
  165. package/dist/collection/utils/keyCodes.js +3 -0
  166. package/dist/collection/utils/keyCodes.utils.js +3 -0
  167. package/dist/collection/utils/platform.js +3 -0
  168. package/dist/collection/utils/resizeObserver.js +3 -0
  169. package/dist/collection/utils/store.utils.js +3 -0
  170. package/dist/collection/utils/utils.js +3 -0
  171. package/dist/esm/css-shim-e1e1ea5e.js +7 -0
  172. package/dist/esm/{debounce-8dadcda7.js → debounce-e4e6dd45.js} +5 -2
  173. package/dist/esm/{dom-1b195079.js → dom-21bd1807.js} +4 -1
  174. package/dist/esm/{index-42c84e7c.js → index-6f753b3c.js} +214 -91
  175. package/dist/esm/index.js +3 -1
  176. package/dist/esm/loader.js +7 -4
  177. package/dist/esm/polyfills/css-shim.js +1 -1
  178. package/dist/esm/{resize-observer-56b7b34f.js → resize-observer-00c48d78.js} +25 -11
  179. package/dist/esm/revo-grid.js +13 -7
  180. package/dist/esm/revo-grid_11.entry.js +281 -16
  181. package/dist/esm/revogr-clipboard.entry.js +4 -1
  182. package/dist/esm/revogr-filter-panel.entry.js +21 -8
  183. package/dist/esm-es5/css-shim-e1e1ea5e.js +4 -0
  184. package/dist/esm-es5/{debounce-8dadcda7.js → debounce-e4e6dd45.js} +4 -1
  185. package/dist/esm-es5/{dom-1b195079.js → dom-21bd1807.js} +3 -0
  186. package/dist/esm-es5/index-6f753b3c.js +4 -0
  187. package/dist/esm-es5/index.js +3 -0
  188. package/dist/esm-es5/loader.js +4 -1
  189. package/dist/esm-es5/resize-observer-00c48d78.js +4 -0
  190. package/dist/esm-es5/revo-grid.js +4 -1
  191. package/dist/esm-es5/revo-grid_11.entry.js +4 -1
  192. package/dist/esm-es5/revogr-clipboard.entry.js +4 -1
  193. package/dist/esm-es5/revogr-filter-panel.entry.js +4 -1
  194. package/dist/revo-grid/css-shim-bcf89cc0.system.js +4 -0
  195. package/dist/revo-grid/css-shim-e1e1ea5e.js +4 -0
  196. package/dist/revo-grid/{debounce-f40a88f6.system.js → debounce-5a33c710.system.js} +4 -1
  197. package/dist/revo-grid/{debounce-d097578d.js → debounce-726bdadb.js} +4 -1
  198. package/dist/revo-grid/{dom-1b195079.js → dom-21bd1807.js} +3 -0
  199. package/dist/revo-grid/{dom-ee2dd1b3.system.js → dom-726246e2.system.js} +3 -0
  200. package/dist/revo-grid/index-f14b41a0.system.js +5 -0
  201. package/dist/revo-grid/index-f30d1de1.js +5 -0
  202. package/dist/revo-grid/index.esm.js +3 -0
  203. package/dist/revo-grid/index.system.js +3 -0
  204. package/dist/revo-grid/resize-observer-00c48d78.js +4 -0
  205. package/dist/revo-grid/resize-observer-8af0bc0e.system.js +4 -0
  206. package/dist/revo-grid/revo-grid.esm.js +4 -1
  207. package/dist/revo-grid/revo-grid.js +3 -2
  208. package/dist/revo-grid/revo-grid.system.js +4 -1
  209. package/dist/revo-grid/revo-grid_11.entry.js +4 -1
  210. package/dist/revo-grid/revo-grid_11.system.entry.js +4 -1
  211. package/dist/revo-grid/revogr-clipboard.entry.js +4 -1
  212. package/dist/revo-grid/revogr-clipboard.system.entry.js +4 -1
  213. package/dist/revo-grid/revogr-filter-panel.entry.js +4 -1
  214. package/dist/revo-grid/revogr-filter-panel.system.entry.js +4 -1
  215. package/dist/types/components/revo-grid/revo-grid.d.ts +13 -0
  216. package/dist/types/components/selection-focus/revogr-focus.d.ts +8 -0
  217. package/dist/types/components.d.ts +133 -63
  218. package/dist/types/plugins/dispatcher.d.ts +10 -0
  219. package/dist/types/plugins/filter/filter.plugin.d.ts +2 -0
  220. package/dist/types/plugins/filter/filter.pop.d.ts +2 -0
  221. package/dist/types/plugins/groupingColumn/grouping.col.plugin.d.ts +1 -1
  222. package/dist/types/plugins/moveColumn/columnDragPlugin.d.ts +54 -0
  223. package/dist/types/plugins/moveColumn/columnOrderHandler.d.ts +15 -0
  224. package/dist/types/services/resizable.directive.d.ts +1 -1
  225. package/dist/types/stencil-public-runtime.d.ts +189 -186
  226. package/loader/cdn.js +3 -1
  227. package/loader/index.cjs.js +3 -1
  228. package/loader/index.d.ts +0 -1
  229. package/loader/index.es2017.js +3 -1
  230. package/loader/index.js +3 -1
  231. package/package.json +23 -21
  232. package/dist/cjs/css-shim-e33df79c.js +0 -6
  233. package/dist/esm/css-shim-8d75038b.js +0 -4
  234. package/dist/esm-es5/css-shim-8d75038b.js +0 -1
  235. package/dist/esm-es5/index-42c84e7c.js +0 -1
  236. package/dist/esm-es5/resize-observer-56b7b34f.js +0 -1
  237. package/dist/revo-grid/css-shim-88bfb262.system.js +0 -1
  238. package/dist/revo-grid/css-shim-8d75038b.js +0 -1
  239. package/dist/revo-grid/index-a15e7527.system.js +0 -1
  240. package/dist/revo-grid/index-a7f99799.js +0 -1
  241. package/dist/revo-grid/resize-observer-56b7b34f.js +0 -1
  242. package/dist/revo-grid/resize-observer-7a7b9757.system.js +0 -1
@@ -0,0 +1,2070 @@
1
+ /*!
2
+ * Built by Revolist
3
+ */
4
+ import { c as isFunction_1, a as isArray_1, k as keys_1, d as isBuffer_1, e as isTypedArray_1, f as isLength_1, b as _isIndex, g as isArguments_1 } from './keys.js';
5
+ import { e as _root, b as isObject_1, f as _Symbol, _ as _baseGetTag, i as isObjectLike_1, d as isSymbol_1 } from './isSymbol.js';
6
+ import { _ as _arrayMap } from './consts.js';
7
+ import { i as identity_1 } from './identity.js';
8
+
9
+ /**
10
+ * Removes all key-value entries from the list cache.
11
+ *
12
+ * @private
13
+ * @name clear
14
+ * @memberOf ListCache
15
+ */
16
+ function listCacheClear() {
17
+ this.__data__ = [];
18
+ this.size = 0;
19
+ }
20
+
21
+ var _listCacheClear = listCacheClear;
22
+
23
+ /**
24
+ * Performs a
25
+ * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
26
+ * comparison between two values to determine if they are equivalent.
27
+ *
28
+ * @static
29
+ * @memberOf _
30
+ * @since 4.0.0
31
+ * @category Lang
32
+ * @param {*} value The value to compare.
33
+ * @param {*} other The other value to compare.
34
+ * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
35
+ * @example
36
+ *
37
+ * var object = { 'a': 1 };
38
+ * var other = { 'a': 1 };
39
+ *
40
+ * _.eq(object, object);
41
+ * // => true
42
+ *
43
+ * _.eq(object, other);
44
+ * // => false
45
+ *
46
+ * _.eq('a', 'a');
47
+ * // => true
48
+ *
49
+ * _.eq('a', Object('a'));
50
+ * // => false
51
+ *
52
+ * _.eq(NaN, NaN);
53
+ * // => true
54
+ */
55
+ function eq(value, other) {
56
+ return value === other || (value !== value && other !== other);
57
+ }
58
+
59
+ var eq_1 = eq;
60
+
61
+ /**
62
+ * Gets the index at which the `key` is found in `array` of key-value pairs.
63
+ *
64
+ * @private
65
+ * @param {Array} array The array to inspect.
66
+ * @param {*} key The key to search for.
67
+ * @returns {number} Returns the index of the matched value, else `-1`.
68
+ */
69
+ function assocIndexOf(array, key) {
70
+ var length = array.length;
71
+ while (length--) {
72
+ if (eq_1(array[length][0], key)) {
73
+ return length;
74
+ }
75
+ }
76
+ return -1;
77
+ }
78
+
79
+ var _assocIndexOf = assocIndexOf;
80
+
81
+ /** Used for built-in method references. */
82
+ var arrayProto = Array.prototype;
83
+
84
+ /** Built-in value references. */
85
+ var splice = arrayProto.splice;
86
+
87
+ /**
88
+ * Removes `key` and its value from the list cache.
89
+ *
90
+ * @private
91
+ * @name delete
92
+ * @memberOf ListCache
93
+ * @param {string} key The key of the value to remove.
94
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
95
+ */
96
+ function listCacheDelete(key) {
97
+ var data = this.__data__,
98
+ index = _assocIndexOf(data, key);
99
+
100
+ if (index < 0) {
101
+ return false;
102
+ }
103
+ var lastIndex = data.length - 1;
104
+ if (index == lastIndex) {
105
+ data.pop();
106
+ } else {
107
+ splice.call(data, index, 1);
108
+ }
109
+ --this.size;
110
+ return true;
111
+ }
112
+
113
+ var _listCacheDelete = listCacheDelete;
114
+
115
+ /**
116
+ * Gets the list cache value for `key`.
117
+ *
118
+ * @private
119
+ * @name get
120
+ * @memberOf ListCache
121
+ * @param {string} key The key of the value to get.
122
+ * @returns {*} Returns the entry value.
123
+ */
124
+ function listCacheGet(key) {
125
+ var data = this.__data__,
126
+ index = _assocIndexOf(data, key);
127
+
128
+ return index < 0 ? undefined : data[index][1];
129
+ }
130
+
131
+ var _listCacheGet = listCacheGet;
132
+
133
+ /**
134
+ * Checks if a list cache value for `key` exists.
135
+ *
136
+ * @private
137
+ * @name has
138
+ * @memberOf ListCache
139
+ * @param {string} key The key of the entry to check.
140
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
141
+ */
142
+ function listCacheHas(key) {
143
+ return _assocIndexOf(this.__data__, key) > -1;
144
+ }
145
+
146
+ var _listCacheHas = listCacheHas;
147
+
148
+ /**
149
+ * Sets the list cache `key` to `value`.
150
+ *
151
+ * @private
152
+ * @name set
153
+ * @memberOf ListCache
154
+ * @param {string} key The key of the value to set.
155
+ * @param {*} value The value to set.
156
+ * @returns {Object} Returns the list cache instance.
157
+ */
158
+ function listCacheSet(key, value) {
159
+ var data = this.__data__,
160
+ index = _assocIndexOf(data, key);
161
+
162
+ if (index < 0) {
163
+ ++this.size;
164
+ data.push([key, value]);
165
+ } else {
166
+ data[index][1] = value;
167
+ }
168
+ return this;
169
+ }
170
+
171
+ var _listCacheSet = listCacheSet;
172
+
173
+ /**
174
+ * Creates an list cache object.
175
+ *
176
+ * @private
177
+ * @constructor
178
+ * @param {Array} [entries] The key-value pairs to cache.
179
+ */
180
+ function ListCache(entries) {
181
+ var index = -1,
182
+ length = entries == null ? 0 : entries.length;
183
+
184
+ this.clear();
185
+ while (++index < length) {
186
+ var entry = entries[index];
187
+ this.set(entry[0], entry[1]);
188
+ }
189
+ }
190
+
191
+ // Add methods to `ListCache`.
192
+ ListCache.prototype.clear = _listCacheClear;
193
+ ListCache.prototype['delete'] = _listCacheDelete;
194
+ ListCache.prototype.get = _listCacheGet;
195
+ ListCache.prototype.has = _listCacheHas;
196
+ ListCache.prototype.set = _listCacheSet;
197
+
198
+ var _ListCache = ListCache;
199
+
200
+ /**
201
+ * Removes all key-value entries from the stack.
202
+ *
203
+ * @private
204
+ * @name clear
205
+ * @memberOf Stack
206
+ */
207
+ function stackClear() {
208
+ this.__data__ = new _ListCache;
209
+ this.size = 0;
210
+ }
211
+
212
+ var _stackClear = stackClear;
213
+
214
+ /**
215
+ * Removes `key` and its value from the stack.
216
+ *
217
+ * @private
218
+ * @name delete
219
+ * @memberOf Stack
220
+ * @param {string} key The key of the value to remove.
221
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
222
+ */
223
+ function stackDelete(key) {
224
+ var data = this.__data__,
225
+ result = data['delete'](key);
226
+
227
+ this.size = data.size;
228
+ return result;
229
+ }
230
+
231
+ var _stackDelete = stackDelete;
232
+
233
+ /**
234
+ * Gets the stack value for `key`.
235
+ *
236
+ * @private
237
+ * @name get
238
+ * @memberOf Stack
239
+ * @param {string} key The key of the value to get.
240
+ * @returns {*} Returns the entry value.
241
+ */
242
+ function stackGet(key) {
243
+ return this.__data__.get(key);
244
+ }
245
+
246
+ var _stackGet = stackGet;
247
+
248
+ /**
249
+ * Checks if a stack value for `key` exists.
250
+ *
251
+ * @private
252
+ * @name has
253
+ * @memberOf Stack
254
+ * @param {string} key The key of the entry to check.
255
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
256
+ */
257
+ function stackHas(key) {
258
+ return this.__data__.has(key);
259
+ }
260
+
261
+ var _stackHas = stackHas;
262
+
263
+ /** Used to detect overreaching core-js shims. */
264
+ var coreJsData = _root['__core-js_shared__'];
265
+
266
+ var _coreJsData = coreJsData;
267
+
268
+ /** Used to detect methods masquerading as native. */
269
+ var maskSrcKey = (function() {
270
+ var uid = /[^.]+$/.exec(_coreJsData && _coreJsData.keys && _coreJsData.keys.IE_PROTO || '');
271
+ return uid ? ('Symbol(src)_1.' + uid) : '';
272
+ }());
273
+
274
+ /**
275
+ * Checks if `func` has its source masked.
276
+ *
277
+ * @private
278
+ * @param {Function} func The function to check.
279
+ * @returns {boolean} Returns `true` if `func` is masked, else `false`.
280
+ */
281
+ function isMasked(func) {
282
+ return !!maskSrcKey && (maskSrcKey in func);
283
+ }
284
+
285
+ var _isMasked = isMasked;
286
+
287
+ /** Used for built-in method references. */
288
+ var funcProto$1 = Function.prototype;
289
+
290
+ /** Used to resolve the decompiled source of functions. */
291
+ var funcToString$1 = funcProto$1.toString;
292
+
293
+ /**
294
+ * Converts `func` to its source code.
295
+ *
296
+ * @private
297
+ * @param {Function} func The function to convert.
298
+ * @returns {string} Returns the source code.
299
+ */
300
+ function toSource(func) {
301
+ if (func != null) {
302
+ try {
303
+ return funcToString$1.call(func);
304
+ } catch (e) {}
305
+ try {
306
+ return (func + '');
307
+ } catch (e) {}
308
+ }
309
+ return '';
310
+ }
311
+
312
+ var _toSource = toSource;
313
+
314
+ /**
315
+ * Used to match `RegExp`
316
+ * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
317
+ */
318
+ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
319
+
320
+ /** Used to detect host constructors (Safari). */
321
+ var reIsHostCtor = /^\[object .+?Constructor\]$/;
322
+
323
+ /** Used for built-in method references. */
324
+ var funcProto = Function.prototype,
325
+ objectProto$5 = Object.prototype;
326
+
327
+ /** Used to resolve the decompiled source of functions. */
328
+ var funcToString = funcProto.toString;
329
+
330
+ /** Used to check objects for own properties. */
331
+ var hasOwnProperty$4 = objectProto$5.hasOwnProperty;
332
+
333
+ /** Used to detect if a method is native. */
334
+ var reIsNative = RegExp('^' +
335
+ funcToString.call(hasOwnProperty$4).replace(reRegExpChar, '\\$&')
336
+ .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
337
+ );
338
+
339
+ /**
340
+ * The base implementation of `_.isNative` without bad shim checks.
341
+ *
342
+ * @private
343
+ * @param {*} value The value to check.
344
+ * @returns {boolean} Returns `true` if `value` is a native function,
345
+ * else `false`.
346
+ */
347
+ function baseIsNative(value) {
348
+ if (!isObject_1(value) || _isMasked(value)) {
349
+ return false;
350
+ }
351
+ var pattern = isFunction_1(value) ? reIsNative : reIsHostCtor;
352
+ return pattern.test(_toSource(value));
353
+ }
354
+
355
+ var _baseIsNative = baseIsNative;
356
+
357
+ /**
358
+ * Gets the value at `key` of `object`.
359
+ *
360
+ * @private
361
+ * @param {Object} [object] The object to query.
362
+ * @param {string} key The key of the property to get.
363
+ * @returns {*} Returns the property value.
364
+ */
365
+ function getValue(object, key) {
366
+ return object == null ? undefined : object[key];
367
+ }
368
+
369
+ var _getValue = getValue;
370
+
371
+ /**
372
+ * Gets the native function at `key` of `object`.
373
+ *
374
+ * @private
375
+ * @param {Object} object The object to query.
376
+ * @param {string} key The key of the method to get.
377
+ * @returns {*} Returns the function if it's native, else `undefined`.
378
+ */
379
+ function getNative(object, key) {
380
+ var value = _getValue(object, key);
381
+ return _baseIsNative(value) ? value : undefined;
382
+ }
383
+
384
+ var _getNative = getNative;
385
+
386
+ /* Built-in method references that are verified to be native. */
387
+ var Map = _getNative(_root, 'Map');
388
+
389
+ var _Map = Map;
390
+
391
+ /* Built-in method references that are verified to be native. */
392
+ var nativeCreate = _getNative(Object, 'create');
393
+
394
+ var _nativeCreate = nativeCreate;
395
+
396
+ /**
397
+ * Removes all key-value entries from the hash.
398
+ *
399
+ * @private
400
+ * @name clear
401
+ * @memberOf Hash
402
+ */
403
+ function hashClear() {
404
+ this.__data__ = _nativeCreate ? _nativeCreate(null) : {};
405
+ this.size = 0;
406
+ }
407
+
408
+ var _hashClear = hashClear;
409
+
410
+ /**
411
+ * Removes `key` and its value from the hash.
412
+ *
413
+ * @private
414
+ * @name delete
415
+ * @memberOf Hash
416
+ * @param {Object} hash The hash to modify.
417
+ * @param {string} key The key of the value to remove.
418
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
419
+ */
420
+ function hashDelete(key) {
421
+ var result = this.has(key) && delete this.__data__[key];
422
+ this.size -= result ? 1 : 0;
423
+ return result;
424
+ }
425
+
426
+ var _hashDelete = hashDelete;
427
+
428
+ /** Used to stand-in for `undefined` hash values. */
429
+ var HASH_UNDEFINED$2 = '__lodash_hash_undefined__';
430
+
431
+ /** Used for built-in method references. */
432
+ var objectProto$4 = Object.prototype;
433
+
434
+ /** Used to check objects for own properties. */
435
+ var hasOwnProperty$3 = objectProto$4.hasOwnProperty;
436
+
437
+ /**
438
+ * Gets the hash value for `key`.
439
+ *
440
+ * @private
441
+ * @name get
442
+ * @memberOf Hash
443
+ * @param {string} key The key of the value to get.
444
+ * @returns {*} Returns the entry value.
445
+ */
446
+ function hashGet(key) {
447
+ var data = this.__data__;
448
+ if (_nativeCreate) {
449
+ var result = data[key];
450
+ return result === HASH_UNDEFINED$2 ? undefined : result;
451
+ }
452
+ return hasOwnProperty$3.call(data, key) ? data[key] : undefined;
453
+ }
454
+
455
+ var _hashGet = hashGet;
456
+
457
+ /** Used for built-in method references. */
458
+ var objectProto$3 = Object.prototype;
459
+
460
+ /** Used to check objects for own properties. */
461
+ var hasOwnProperty$2 = objectProto$3.hasOwnProperty;
462
+
463
+ /**
464
+ * Checks if a hash value for `key` exists.
465
+ *
466
+ * @private
467
+ * @name has
468
+ * @memberOf Hash
469
+ * @param {string} key The key of the entry to check.
470
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
471
+ */
472
+ function hashHas(key) {
473
+ var data = this.__data__;
474
+ return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty$2.call(data, key);
475
+ }
476
+
477
+ var _hashHas = hashHas;
478
+
479
+ /** Used to stand-in for `undefined` hash values. */
480
+ var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
481
+
482
+ /**
483
+ * Sets the hash `key` to `value`.
484
+ *
485
+ * @private
486
+ * @name set
487
+ * @memberOf Hash
488
+ * @param {string} key The key of the value to set.
489
+ * @param {*} value The value to set.
490
+ * @returns {Object} Returns the hash instance.
491
+ */
492
+ function hashSet(key, value) {
493
+ var data = this.__data__;
494
+ this.size += this.has(key) ? 0 : 1;
495
+ data[key] = (_nativeCreate && value === undefined) ? HASH_UNDEFINED$1 : value;
496
+ return this;
497
+ }
498
+
499
+ var _hashSet = hashSet;
500
+
501
+ /**
502
+ * Creates a hash object.
503
+ *
504
+ * @private
505
+ * @constructor
506
+ * @param {Array} [entries] The key-value pairs to cache.
507
+ */
508
+ function Hash(entries) {
509
+ var index = -1,
510
+ length = entries == null ? 0 : entries.length;
511
+
512
+ this.clear();
513
+ while (++index < length) {
514
+ var entry = entries[index];
515
+ this.set(entry[0], entry[1]);
516
+ }
517
+ }
518
+
519
+ // Add methods to `Hash`.
520
+ Hash.prototype.clear = _hashClear;
521
+ Hash.prototype['delete'] = _hashDelete;
522
+ Hash.prototype.get = _hashGet;
523
+ Hash.prototype.has = _hashHas;
524
+ Hash.prototype.set = _hashSet;
525
+
526
+ var _Hash = Hash;
527
+
528
+ /**
529
+ * Removes all key-value entries from the map.
530
+ *
531
+ * @private
532
+ * @name clear
533
+ * @memberOf MapCache
534
+ */
535
+ function mapCacheClear() {
536
+ this.size = 0;
537
+ this.__data__ = {
538
+ 'hash': new _Hash,
539
+ 'map': new (_Map || _ListCache),
540
+ 'string': new _Hash
541
+ };
542
+ }
543
+
544
+ var _mapCacheClear = mapCacheClear;
545
+
546
+ /**
547
+ * Checks if `value` is suitable for use as unique object key.
548
+ *
549
+ * @private
550
+ * @param {*} value The value to check.
551
+ * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
552
+ */
553
+ function isKeyable(value) {
554
+ var type = typeof value;
555
+ return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
556
+ ? (value !== '__proto__')
557
+ : (value === null);
558
+ }
559
+
560
+ var _isKeyable = isKeyable;
561
+
562
+ /**
563
+ * Gets the data for `map`.
564
+ *
565
+ * @private
566
+ * @param {Object} map The map to query.
567
+ * @param {string} key The reference key.
568
+ * @returns {*} Returns the map data.
569
+ */
570
+ function getMapData(map, key) {
571
+ var data = map.__data__;
572
+ return _isKeyable(key)
573
+ ? data[typeof key == 'string' ? 'string' : 'hash']
574
+ : data.map;
575
+ }
576
+
577
+ var _getMapData = getMapData;
578
+
579
+ /**
580
+ * Removes `key` and its value from the map.
581
+ *
582
+ * @private
583
+ * @name delete
584
+ * @memberOf MapCache
585
+ * @param {string} key The key of the value to remove.
586
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
587
+ */
588
+ function mapCacheDelete(key) {
589
+ var result = _getMapData(this, key)['delete'](key);
590
+ this.size -= result ? 1 : 0;
591
+ return result;
592
+ }
593
+
594
+ var _mapCacheDelete = mapCacheDelete;
595
+
596
+ /**
597
+ * Gets the map value for `key`.
598
+ *
599
+ * @private
600
+ * @name get
601
+ * @memberOf MapCache
602
+ * @param {string} key The key of the value to get.
603
+ * @returns {*} Returns the entry value.
604
+ */
605
+ function mapCacheGet(key) {
606
+ return _getMapData(this, key).get(key);
607
+ }
608
+
609
+ var _mapCacheGet = mapCacheGet;
610
+
611
+ /**
612
+ * Checks if a map value for `key` exists.
613
+ *
614
+ * @private
615
+ * @name has
616
+ * @memberOf MapCache
617
+ * @param {string} key The key of the entry to check.
618
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
619
+ */
620
+ function mapCacheHas(key) {
621
+ return _getMapData(this, key).has(key);
622
+ }
623
+
624
+ var _mapCacheHas = mapCacheHas;
625
+
626
+ /**
627
+ * Sets the map `key` to `value`.
628
+ *
629
+ * @private
630
+ * @name set
631
+ * @memberOf MapCache
632
+ * @param {string} key The key of the value to set.
633
+ * @param {*} value The value to set.
634
+ * @returns {Object} Returns the map cache instance.
635
+ */
636
+ function mapCacheSet(key, value) {
637
+ var data = _getMapData(this, key),
638
+ size = data.size;
639
+
640
+ data.set(key, value);
641
+ this.size += data.size == size ? 0 : 1;
642
+ return this;
643
+ }
644
+
645
+ var _mapCacheSet = mapCacheSet;
646
+
647
+ /**
648
+ * Creates a map cache object to store key-value pairs.
649
+ *
650
+ * @private
651
+ * @constructor
652
+ * @param {Array} [entries] The key-value pairs to cache.
653
+ */
654
+ function MapCache(entries) {
655
+ var index = -1,
656
+ length = entries == null ? 0 : entries.length;
657
+
658
+ this.clear();
659
+ while (++index < length) {
660
+ var entry = entries[index];
661
+ this.set(entry[0], entry[1]);
662
+ }
663
+ }
664
+
665
+ // Add methods to `MapCache`.
666
+ MapCache.prototype.clear = _mapCacheClear;
667
+ MapCache.prototype['delete'] = _mapCacheDelete;
668
+ MapCache.prototype.get = _mapCacheGet;
669
+ MapCache.prototype.has = _mapCacheHas;
670
+ MapCache.prototype.set = _mapCacheSet;
671
+
672
+ var _MapCache = MapCache;
673
+
674
+ /** Used as the size to enable large array optimizations. */
675
+ var LARGE_ARRAY_SIZE = 200;
676
+
677
+ /**
678
+ * Sets the stack `key` to `value`.
679
+ *
680
+ * @private
681
+ * @name set
682
+ * @memberOf Stack
683
+ * @param {string} key The key of the value to set.
684
+ * @param {*} value The value to set.
685
+ * @returns {Object} Returns the stack cache instance.
686
+ */
687
+ function stackSet(key, value) {
688
+ var data = this.__data__;
689
+ if (data instanceof _ListCache) {
690
+ var pairs = data.__data__;
691
+ if (!_Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
692
+ pairs.push([key, value]);
693
+ this.size = ++data.size;
694
+ return this;
695
+ }
696
+ data = this.__data__ = new _MapCache(pairs);
697
+ }
698
+ data.set(key, value);
699
+ this.size = data.size;
700
+ return this;
701
+ }
702
+
703
+ var _stackSet = stackSet;
704
+
705
+ /**
706
+ * Creates a stack cache object to store key-value pairs.
707
+ *
708
+ * @private
709
+ * @constructor
710
+ * @param {Array} [entries] The key-value pairs to cache.
711
+ */
712
+ function Stack(entries) {
713
+ var data = this.__data__ = new _ListCache(entries);
714
+ this.size = data.size;
715
+ }
716
+
717
+ // Add methods to `Stack`.
718
+ Stack.prototype.clear = _stackClear;
719
+ Stack.prototype['delete'] = _stackDelete;
720
+ Stack.prototype.get = _stackGet;
721
+ Stack.prototype.has = _stackHas;
722
+ Stack.prototype.set = _stackSet;
723
+
724
+ var _Stack = Stack;
725
+
726
+ /** Used to stand-in for `undefined` hash values. */
727
+ var HASH_UNDEFINED = '__lodash_hash_undefined__';
728
+
729
+ /**
730
+ * Adds `value` to the array cache.
731
+ *
732
+ * @private
733
+ * @name add
734
+ * @memberOf SetCache
735
+ * @alias push
736
+ * @param {*} value The value to cache.
737
+ * @returns {Object} Returns the cache instance.
738
+ */
739
+ function setCacheAdd(value) {
740
+ this.__data__.set(value, HASH_UNDEFINED);
741
+ return this;
742
+ }
743
+
744
+ var _setCacheAdd = setCacheAdd;
745
+
746
+ /**
747
+ * Checks if `value` is in the array cache.
748
+ *
749
+ * @private
750
+ * @name has
751
+ * @memberOf SetCache
752
+ * @param {*} value The value to search for.
753
+ * @returns {number} Returns `true` if `value` is found, else `false`.
754
+ */
755
+ function setCacheHas(value) {
756
+ return this.__data__.has(value);
757
+ }
758
+
759
+ var _setCacheHas = setCacheHas;
760
+
761
+ /**
762
+ *
763
+ * Creates an array cache object to store unique values.
764
+ *
765
+ * @private
766
+ * @constructor
767
+ * @param {Array} [values] The values to cache.
768
+ */
769
+ function SetCache(values) {
770
+ var index = -1,
771
+ length = values == null ? 0 : values.length;
772
+
773
+ this.__data__ = new _MapCache;
774
+ while (++index < length) {
775
+ this.add(values[index]);
776
+ }
777
+ }
778
+
779
+ // Add methods to `SetCache`.
780
+ SetCache.prototype.add = SetCache.prototype.push = _setCacheAdd;
781
+ SetCache.prototype.has = _setCacheHas;
782
+
783
+ var _SetCache = SetCache;
784
+
785
+ /**
786
+ * A specialized version of `_.some` for arrays without support for iteratee
787
+ * shorthands.
788
+ *
789
+ * @private
790
+ * @param {Array} [array] The array to iterate over.
791
+ * @param {Function} predicate The function invoked per iteration.
792
+ * @returns {boolean} Returns `true` if any element passes the predicate check,
793
+ * else `false`.
794
+ */
795
+ function arraySome(array, predicate) {
796
+ var index = -1,
797
+ length = array == null ? 0 : array.length;
798
+
799
+ while (++index < length) {
800
+ if (predicate(array[index], index, array)) {
801
+ return true;
802
+ }
803
+ }
804
+ return false;
805
+ }
806
+
807
+ var _arraySome = arraySome;
808
+
809
+ /**
810
+ * Checks if a `cache` value for `key` exists.
811
+ *
812
+ * @private
813
+ * @param {Object} cache The cache to query.
814
+ * @param {string} key The key of the entry to check.
815
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
816
+ */
817
+ function cacheHas(cache, key) {
818
+ return cache.has(key);
819
+ }
820
+
821
+ var _cacheHas = cacheHas;
822
+
823
+ /** Used to compose bitmasks for value comparisons. */
824
+ var COMPARE_PARTIAL_FLAG$5 = 1,
825
+ COMPARE_UNORDERED_FLAG$3 = 2;
826
+
827
+ /**
828
+ * A specialized version of `baseIsEqualDeep` for arrays with support for
829
+ * partial deep comparisons.
830
+ *
831
+ * @private
832
+ * @param {Array} array The array to compare.
833
+ * @param {Array} other The other array to compare.
834
+ * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
835
+ * @param {Function} customizer The function to customize comparisons.
836
+ * @param {Function} equalFunc The function to determine equivalents of values.
837
+ * @param {Object} stack Tracks traversed `array` and `other` objects.
838
+ * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
839
+ */
840
+ function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
841
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG$5,
842
+ arrLength = array.length,
843
+ othLength = other.length;
844
+
845
+ if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
846
+ return false;
847
+ }
848
+ // Check that cyclic values are equal.
849
+ var arrStacked = stack.get(array);
850
+ var othStacked = stack.get(other);
851
+ if (arrStacked && othStacked) {
852
+ return arrStacked == other && othStacked == array;
853
+ }
854
+ var index = -1,
855
+ result = true,
856
+ seen = (bitmask & COMPARE_UNORDERED_FLAG$3) ? new _SetCache : undefined;
857
+
858
+ stack.set(array, other);
859
+ stack.set(other, array);
860
+
861
+ // Ignore non-index properties.
862
+ while (++index < arrLength) {
863
+ var arrValue = array[index],
864
+ othValue = other[index];
865
+
866
+ if (customizer) {
867
+ var compared = isPartial
868
+ ? customizer(othValue, arrValue, index, other, array, stack)
869
+ : customizer(arrValue, othValue, index, array, other, stack);
870
+ }
871
+ if (compared !== undefined) {
872
+ if (compared) {
873
+ continue;
874
+ }
875
+ result = false;
876
+ break;
877
+ }
878
+ // Recursively compare arrays (susceptible to call stack limits).
879
+ if (seen) {
880
+ if (!_arraySome(other, function(othValue, othIndex) {
881
+ if (!_cacheHas(seen, othIndex) &&
882
+ (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
883
+ return seen.push(othIndex);
884
+ }
885
+ })) {
886
+ result = false;
887
+ break;
888
+ }
889
+ } else if (!(
890
+ arrValue === othValue ||
891
+ equalFunc(arrValue, othValue, bitmask, customizer, stack)
892
+ )) {
893
+ result = false;
894
+ break;
895
+ }
896
+ }
897
+ stack['delete'](array);
898
+ stack['delete'](other);
899
+ return result;
900
+ }
901
+
902
+ var _equalArrays = equalArrays;
903
+
904
+ /** Built-in value references. */
905
+ var Uint8Array = _root.Uint8Array;
906
+
907
+ var _Uint8Array = Uint8Array;
908
+
909
+ /**
910
+ * Converts `map` to its key-value pairs.
911
+ *
912
+ * @private
913
+ * @param {Object} map The map to convert.
914
+ * @returns {Array} Returns the key-value pairs.
915
+ */
916
+ function mapToArray(map) {
917
+ var index = -1,
918
+ result = Array(map.size);
919
+
920
+ map.forEach(function(value, key) {
921
+ result[++index] = [key, value];
922
+ });
923
+ return result;
924
+ }
925
+
926
+ var _mapToArray = mapToArray;
927
+
928
+ /**
929
+ * Converts `set` to an array of its values.
930
+ *
931
+ * @private
932
+ * @param {Object} set The set to convert.
933
+ * @returns {Array} Returns the values.
934
+ */
935
+ function setToArray(set) {
936
+ var index = -1,
937
+ result = Array(set.size);
938
+
939
+ set.forEach(function(value) {
940
+ result[++index] = value;
941
+ });
942
+ return result;
943
+ }
944
+
945
+ var _setToArray = setToArray;
946
+
947
+ /** Used to compose bitmasks for value comparisons. */
948
+ var COMPARE_PARTIAL_FLAG$4 = 1,
949
+ COMPARE_UNORDERED_FLAG$2 = 2;
950
+
951
+ /** `Object#toString` result references. */
952
+ var boolTag = '[object Boolean]',
953
+ dateTag = '[object Date]',
954
+ errorTag = '[object Error]',
955
+ mapTag$1 = '[object Map]',
956
+ numberTag = '[object Number]',
957
+ regexpTag = '[object RegExp]',
958
+ setTag$1 = '[object Set]',
959
+ stringTag = '[object String]',
960
+ symbolTag = '[object Symbol]';
961
+
962
+ var arrayBufferTag = '[object ArrayBuffer]',
963
+ dataViewTag$1 = '[object DataView]';
964
+
965
+ /** Used to convert symbols to primitives and strings. */
966
+ var symbolProto$1 = _Symbol ? _Symbol.prototype : undefined,
967
+ symbolValueOf = symbolProto$1 ? symbolProto$1.valueOf : undefined;
968
+
969
+ /**
970
+ * A specialized version of `baseIsEqualDeep` for comparing objects of
971
+ * the same `toStringTag`.
972
+ *
973
+ * **Note:** This function only supports comparing values with tags of
974
+ * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
975
+ *
976
+ * @private
977
+ * @param {Object} object The object to compare.
978
+ * @param {Object} other The other object to compare.
979
+ * @param {string} tag The `toStringTag` of the objects to compare.
980
+ * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
981
+ * @param {Function} customizer The function to customize comparisons.
982
+ * @param {Function} equalFunc The function to determine equivalents of values.
983
+ * @param {Object} stack Tracks traversed `object` and `other` objects.
984
+ * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
985
+ */
986
+ function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
987
+ switch (tag) {
988
+ case dataViewTag$1:
989
+ if ((object.byteLength != other.byteLength) ||
990
+ (object.byteOffset != other.byteOffset)) {
991
+ return false;
992
+ }
993
+ object = object.buffer;
994
+ other = other.buffer;
995
+
996
+ case arrayBufferTag:
997
+ if ((object.byteLength != other.byteLength) ||
998
+ !equalFunc(new _Uint8Array(object), new _Uint8Array(other))) {
999
+ return false;
1000
+ }
1001
+ return true;
1002
+
1003
+ case boolTag:
1004
+ case dateTag:
1005
+ case numberTag:
1006
+ // Coerce booleans to `1` or `0` and dates to milliseconds.
1007
+ // Invalid dates are coerced to `NaN`.
1008
+ return eq_1(+object, +other);
1009
+
1010
+ case errorTag:
1011
+ return object.name == other.name && object.message == other.message;
1012
+
1013
+ case regexpTag:
1014
+ case stringTag:
1015
+ // Coerce regexes to strings and treat strings, primitives and objects,
1016
+ // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
1017
+ // for more details.
1018
+ return object == (other + '');
1019
+
1020
+ case mapTag$1:
1021
+ var convert = _mapToArray;
1022
+
1023
+ case setTag$1:
1024
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG$4;
1025
+ convert || (convert = _setToArray);
1026
+
1027
+ if (object.size != other.size && !isPartial) {
1028
+ return false;
1029
+ }
1030
+ // Assume cyclic values are equal.
1031
+ var stacked = stack.get(object);
1032
+ if (stacked) {
1033
+ return stacked == other;
1034
+ }
1035
+ bitmask |= COMPARE_UNORDERED_FLAG$2;
1036
+
1037
+ // Recursively compare objects (susceptible to call stack limits).
1038
+ stack.set(object, other);
1039
+ var result = _equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
1040
+ stack['delete'](object);
1041
+ return result;
1042
+
1043
+ case symbolTag:
1044
+ if (symbolValueOf) {
1045
+ return symbolValueOf.call(object) == symbolValueOf.call(other);
1046
+ }
1047
+ }
1048
+ return false;
1049
+ }
1050
+
1051
+ var _equalByTag = equalByTag;
1052
+
1053
+ /**
1054
+ * Appends the elements of `values` to `array`.
1055
+ *
1056
+ * @private
1057
+ * @param {Array} array The array to modify.
1058
+ * @param {Array} values The values to append.
1059
+ * @returns {Array} Returns `array`.
1060
+ */
1061
+ function arrayPush(array, values) {
1062
+ var index = -1,
1063
+ length = values.length,
1064
+ offset = array.length;
1065
+
1066
+ while (++index < length) {
1067
+ array[offset + index] = values[index];
1068
+ }
1069
+ return array;
1070
+ }
1071
+
1072
+ var _arrayPush = arrayPush;
1073
+
1074
+ /**
1075
+ * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
1076
+ * `keysFunc` and `symbolsFunc` to get the enumerable property names and
1077
+ * symbols of `object`.
1078
+ *
1079
+ * @private
1080
+ * @param {Object} object The object to query.
1081
+ * @param {Function} keysFunc The function to get the keys of `object`.
1082
+ * @param {Function} symbolsFunc The function to get the symbols of `object`.
1083
+ * @returns {Array} Returns the array of property names and symbols.
1084
+ */
1085
+ function baseGetAllKeys(object, keysFunc, symbolsFunc) {
1086
+ var result = keysFunc(object);
1087
+ return isArray_1(object) ? result : _arrayPush(result, symbolsFunc(object));
1088
+ }
1089
+
1090
+ var _baseGetAllKeys = baseGetAllKeys;
1091
+
1092
+ /**
1093
+ * A specialized version of `_.filter` for arrays without support for
1094
+ * iteratee shorthands.
1095
+ *
1096
+ * @private
1097
+ * @param {Array} [array] The array to iterate over.
1098
+ * @param {Function} predicate The function invoked per iteration.
1099
+ * @returns {Array} Returns the new filtered array.
1100
+ */
1101
+ function arrayFilter(array, predicate) {
1102
+ var index = -1,
1103
+ length = array == null ? 0 : array.length,
1104
+ resIndex = 0,
1105
+ result = [];
1106
+
1107
+ while (++index < length) {
1108
+ var value = array[index];
1109
+ if (predicate(value, index, array)) {
1110
+ result[resIndex++] = value;
1111
+ }
1112
+ }
1113
+ return result;
1114
+ }
1115
+
1116
+ var _arrayFilter = arrayFilter;
1117
+
1118
+ /**
1119
+ * This method returns a new empty array.
1120
+ *
1121
+ * @static
1122
+ * @memberOf _
1123
+ * @since 4.13.0
1124
+ * @category Util
1125
+ * @returns {Array} Returns the new empty array.
1126
+ * @example
1127
+ *
1128
+ * var arrays = _.times(2, _.stubArray);
1129
+ *
1130
+ * console.log(arrays);
1131
+ * // => [[], []]
1132
+ *
1133
+ * console.log(arrays[0] === arrays[1]);
1134
+ * // => false
1135
+ */
1136
+ function stubArray() {
1137
+ return [];
1138
+ }
1139
+
1140
+ var stubArray_1 = stubArray;
1141
+
1142
+ /** Used for built-in method references. */
1143
+ var objectProto$2 = Object.prototype;
1144
+
1145
+ /** Built-in value references. */
1146
+ var propertyIsEnumerable = objectProto$2.propertyIsEnumerable;
1147
+
1148
+ /* Built-in method references for those with the same name as other `lodash` methods. */
1149
+ var nativeGetSymbols = Object.getOwnPropertySymbols;
1150
+
1151
+ /**
1152
+ * Creates an array of the own enumerable symbols of `object`.
1153
+ *
1154
+ * @private
1155
+ * @param {Object} object The object to query.
1156
+ * @returns {Array} Returns the array of symbols.
1157
+ */
1158
+ var getSymbols = !nativeGetSymbols ? stubArray_1 : function(object) {
1159
+ if (object == null) {
1160
+ return [];
1161
+ }
1162
+ object = Object(object);
1163
+ return _arrayFilter(nativeGetSymbols(object), function(symbol) {
1164
+ return propertyIsEnumerable.call(object, symbol);
1165
+ });
1166
+ };
1167
+
1168
+ var _getSymbols = getSymbols;
1169
+
1170
+ /**
1171
+ * Creates an array of own enumerable property names and symbols of `object`.
1172
+ *
1173
+ * @private
1174
+ * @param {Object} object The object to query.
1175
+ * @returns {Array} Returns the array of property names and symbols.
1176
+ */
1177
+ function getAllKeys(object) {
1178
+ return _baseGetAllKeys(object, keys_1, _getSymbols);
1179
+ }
1180
+
1181
+ var _getAllKeys = getAllKeys;
1182
+
1183
+ /** Used to compose bitmasks for value comparisons. */
1184
+ var COMPARE_PARTIAL_FLAG$3 = 1;
1185
+
1186
+ /** Used for built-in method references. */
1187
+ var objectProto$1 = Object.prototype;
1188
+
1189
+ /** Used to check objects for own properties. */
1190
+ var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
1191
+
1192
+ /**
1193
+ * A specialized version of `baseIsEqualDeep` for objects with support for
1194
+ * partial deep comparisons.
1195
+ *
1196
+ * @private
1197
+ * @param {Object} object The object to compare.
1198
+ * @param {Object} other The other object to compare.
1199
+ * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
1200
+ * @param {Function} customizer The function to customize comparisons.
1201
+ * @param {Function} equalFunc The function to determine equivalents of values.
1202
+ * @param {Object} stack Tracks traversed `object` and `other` objects.
1203
+ * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
1204
+ */
1205
+ function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
1206
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG$3,
1207
+ objProps = _getAllKeys(object),
1208
+ objLength = objProps.length,
1209
+ othProps = _getAllKeys(other),
1210
+ othLength = othProps.length;
1211
+
1212
+ if (objLength != othLength && !isPartial) {
1213
+ return false;
1214
+ }
1215
+ var index = objLength;
1216
+ while (index--) {
1217
+ var key = objProps[index];
1218
+ if (!(isPartial ? key in other : hasOwnProperty$1.call(other, key))) {
1219
+ return false;
1220
+ }
1221
+ }
1222
+ // Check that cyclic values are equal.
1223
+ var objStacked = stack.get(object);
1224
+ var othStacked = stack.get(other);
1225
+ if (objStacked && othStacked) {
1226
+ return objStacked == other && othStacked == object;
1227
+ }
1228
+ var result = true;
1229
+ stack.set(object, other);
1230
+ stack.set(other, object);
1231
+
1232
+ var skipCtor = isPartial;
1233
+ while (++index < objLength) {
1234
+ key = objProps[index];
1235
+ var objValue = object[key],
1236
+ othValue = other[key];
1237
+
1238
+ if (customizer) {
1239
+ var compared = isPartial
1240
+ ? customizer(othValue, objValue, key, other, object, stack)
1241
+ : customizer(objValue, othValue, key, object, other, stack);
1242
+ }
1243
+ // Recursively compare objects (susceptible to call stack limits).
1244
+ if (!(compared === undefined
1245
+ ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
1246
+ : compared
1247
+ )) {
1248
+ result = false;
1249
+ break;
1250
+ }
1251
+ skipCtor || (skipCtor = key == 'constructor');
1252
+ }
1253
+ if (result && !skipCtor) {
1254
+ var objCtor = object.constructor,
1255
+ othCtor = other.constructor;
1256
+
1257
+ // Non `Object` object instances with different constructors are not equal.
1258
+ if (objCtor != othCtor &&
1259
+ ('constructor' in object && 'constructor' in other) &&
1260
+ !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
1261
+ typeof othCtor == 'function' && othCtor instanceof othCtor)) {
1262
+ result = false;
1263
+ }
1264
+ }
1265
+ stack['delete'](object);
1266
+ stack['delete'](other);
1267
+ return result;
1268
+ }
1269
+
1270
+ var _equalObjects = equalObjects;
1271
+
1272
+ /* Built-in method references that are verified to be native. */
1273
+ var DataView = _getNative(_root, 'DataView');
1274
+
1275
+ var _DataView = DataView;
1276
+
1277
+ /* Built-in method references that are verified to be native. */
1278
+ var Promise$1 = _getNative(_root, 'Promise');
1279
+
1280
+ var _Promise = Promise$1;
1281
+
1282
+ /* Built-in method references that are verified to be native. */
1283
+ var Set = _getNative(_root, 'Set');
1284
+
1285
+ var _Set = Set;
1286
+
1287
+ /* Built-in method references that are verified to be native. */
1288
+ var WeakMap = _getNative(_root, 'WeakMap');
1289
+
1290
+ var _WeakMap = WeakMap;
1291
+
1292
+ /** `Object#toString` result references. */
1293
+ var mapTag = '[object Map]',
1294
+ objectTag$1 = '[object Object]',
1295
+ promiseTag = '[object Promise]',
1296
+ setTag = '[object Set]',
1297
+ weakMapTag = '[object WeakMap]';
1298
+
1299
+ var dataViewTag = '[object DataView]';
1300
+
1301
+ /** Used to detect maps, sets, and weakmaps. */
1302
+ var dataViewCtorString = _toSource(_DataView),
1303
+ mapCtorString = _toSource(_Map),
1304
+ promiseCtorString = _toSource(_Promise),
1305
+ setCtorString = _toSource(_Set),
1306
+ weakMapCtorString = _toSource(_WeakMap);
1307
+
1308
+ /**
1309
+ * Gets the `toStringTag` of `value`.
1310
+ *
1311
+ * @private
1312
+ * @param {*} value The value to query.
1313
+ * @returns {string} Returns the `toStringTag`.
1314
+ */
1315
+ var getTag = _baseGetTag;
1316
+
1317
+ // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
1318
+ if ((_DataView && getTag(new _DataView(new ArrayBuffer(1))) != dataViewTag) ||
1319
+ (_Map && getTag(new _Map) != mapTag) ||
1320
+ (_Promise && getTag(_Promise.resolve()) != promiseTag) ||
1321
+ (_Set && getTag(new _Set) != setTag) ||
1322
+ (_WeakMap && getTag(new _WeakMap) != weakMapTag)) {
1323
+ getTag = function(value) {
1324
+ var result = _baseGetTag(value),
1325
+ Ctor = result == objectTag$1 ? value.constructor : undefined,
1326
+ ctorString = Ctor ? _toSource(Ctor) : '';
1327
+
1328
+ if (ctorString) {
1329
+ switch (ctorString) {
1330
+ case dataViewCtorString: return dataViewTag;
1331
+ case mapCtorString: return mapTag;
1332
+ case promiseCtorString: return promiseTag;
1333
+ case setCtorString: return setTag;
1334
+ case weakMapCtorString: return weakMapTag;
1335
+ }
1336
+ }
1337
+ return result;
1338
+ };
1339
+ }
1340
+
1341
+ var _getTag = getTag;
1342
+
1343
+ /** Used to compose bitmasks for value comparisons. */
1344
+ var COMPARE_PARTIAL_FLAG$2 = 1;
1345
+
1346
+ /** `Object#toString` result references. */
1347
+ var argsTag = '[object Arguments]',
1348
+ arrayTag = '[object Array]',
1349
+ objectTag = '[object Object]';
1350
+
1351
+ /** Used for built-in method references. */
1352
+ var objectProto = Object.prototype;
1353
+
1354
+ /** Used to check objects for own properties. */
1355
+ var hasOwnProperty = objectProto.hasOwnProperty;
1356
+
1357
+ /**
1358
+ * A specialized version of `baseIsEqual` for arrays and objects which performs
1359
+ * deep comparisons and tracks traversed objects enabling objects with circular
1360
+ * references to be compared.
1361
+ *
1362
+ * @private
1363
+ * @param {Object} object The object to compare.
1364
+ * @param {Object} other The other object to compare.
1365
+ * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
1366
+ * @param {Function} customizer The function to customize comparisons.
1367
+ * @param {Function} equalFunc The function to determine equivalents of values.
1368
+ * @param {Object} [stack] Tracks traversed `object` and `other` objects.
1369
+ * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
1370
+ */
1371
+ function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
1372
+ var objIsArr = isArray_1(object),
1373
+ othIsArr = isArray_1(other),
1374
+ objTag = objIsArr ? arrayTag : _getTag(object),
1375
+ othTag = othIsArr ? arrayTag : _getTag(other);
1376
+
1377
+ objTag = objTag == argsTag ? objectTag : objTag;
1378
+ othTag = othTag == argsTag ? objectTag : othTag;
1379
+
1380
+ var objIsObj = objTag == objectTag,
1381
+ othIsObj = othTag == objectTag,
1382
+ isSameTag = objTag == othTag;
1383
+
1384
+ if (isSameTag && isBuffer_1(object)) {
1385
+ if (!isBuffer_1(other)) {
1386
+ return false;
1387
+ }
1388
+ objIsArr = true;
1389
+ objIsObj = false;
1390
+ }
1391
+ if (isSameTag && !objIsObj) {
1392
+ stack || (stack = new _Stack);
1393
+ return (objIsArr || isTypedArray_1(object))
1394
+ ? _equalArrays(object, other, bitmask, customizer, equalFunc, stack)
1395
+ : _equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
1396
+ }
1397
+ if (!(bitmask & COMPARE_PARTIAL_FLAG$2)) {
1398
+ var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
1399
+ othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
1400
+
1401
+ if (objIsWrapped || othIsWrapped) {
1402
+ var objUnwrapped = objIsWrapped ? object.value() : object,
1403
+ othUnwrapped = othIsWrapped ? other.value() : other;
1404
+
1405
+ stack || (stack = new _Stack);
1406
+ return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
1407
+ }
1408
+ }
1409
+ if (!isSameTag) {
1410
+ return false;
1411
+ }
1412
+ stack || (stack = new _Stack);
1413
+ return _equalObjects(object, other, bitmask, customizer, equalFunc, stack);
1414
+ }
1415
+
1416
+ var _baseIsEqualDeep = baseIsEqualDeep;
1417
+
1418
+ /**
1419
+ * The base implementation of `_.isEqual` which supports partial comparisons
1420
+ * and tracks traversed objects.
1421
+ *
1422
+ * @private
1423
+ * @param {*} value The value to compare.
1424
+ * @param {*} other The other value to compare.
1425
+ * @param {boolean} bitmask The bitmask flags.
1426
+ * 1 - Unordered comparison
1427
+ * 2 - Partial comparison
1428
+ * @param {Function} [customizer] The function to customize comparisons.
1429
+ * @param {Object} [stack] Tracks traversed `value` and `other` objects.
1430
+ * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
1431
+ */
1432
+ function baseIsEqual(value, other, bitmask, customizer, stack) {
1433
+ if (value === other) {
1434
+ return true;
1435
+ }
1436
+ if (value == null || other == null || (!isObjectLike_1(value) && !isObjectLike_1(other))) {
1437
+ return value !== value && other !== other;
1438
+ }
1439
+ return _baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
1440
+ }
1441
+
1442
+ var _baseIsEqual = baseIsEqual;
1443
+
1444
+ /** Used to compose bitmasks for value comparisons. */
1445
+ var COMPARE_PARTIAL_FLAG$1 = 1,
1446
+ COMPARE_UNORDERED_FLAG$1 = 2;
1447
+
1448
+ /**
1449
+ * The base implementation of `_.isMatch` without support for iteratee shorthands.
1450
+ *
1451
+ * @private
1452
+ * @param {Object} object The object to inspect.
1453
+ * @param {Object} source The object of property values to match.
1454
+ * @param {Array} matchData The property names, values, and compare flags to match.
1455
+ * @param {Function} [customizer] The function to customize comparisons.
1456
+ * @returns {boolean} Returns `true` if `object` is a match, else `false`.
1457
+ */
1458
+ function baseIsMatch(object, source, matchData, customizer) {
1459
+ var index = matchData.length,
1460
+ length = index,
1461
+ noCustomizer = !customizer;
1462
+
1463
+ if (object == null) {
1464
+ return !length;
1465
+ }
1466
+ object = Object(object);
1467
+ while (index--) {
1468
+ var data = matchData[index];
1469
+ if ((noCustomizer && data[2])
1470
+ ? data[1] !== object[data[0]]
1471
+ : !(data[0] in object)
1472
+ ) {
1473
+ return false;
1474
+ }
1475
+ }
1476
+ while (++index < length) {
1477
+ data = matchData[index];
1478
+ var key = data[0],
1479
+ objValue = object[key],
1480
+ srcValue = data[1];
1481
+
1482
+ if (noCustomizer && data[2]) {
1483
+ if (objValue === undefined && !(key in object)) {
1484
+ return false;
1485
+ }
1486
+ } else {
1487
+ var stack = new _Stack;
1488
+ if (customizer) {
1489
+ var result = customizer(objValue, srcValue, key, object, source, stack);
1490
+ }
1491
+ if (!(result === undefined
1492
+ ? _baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG$1 | COMPARE_UNORDERED_FLAG$1, customizer, stack)
1493
+ : result
1494
+ )) {
1495
+ return false;
1496
+ }
1497
+ }
1498
+ }
1499
+ return true;
1500
+ }
1501
+
1502
+ var _baseIsMatch = baseIsMatch;
1503
+
1504
+ /**
1505
+ * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
1506
+ *
1507
+ * @private
1508
+ * @param {*} value The value to check.
1509
+ * @returns {boolean} Returns `true` if `value` if suitable for strict
1510
+ * equality comparisons, else `false`.
1511
+ */
1512
+ function isStrictComparable(value) {
1513
+ return value === value && !isObject_1(value);
1514
+ }
1515
+
1516
+ var _isStrictComparable = isStrictComparable;
1517
+
1518
+ /**
1519
+ * Gets the property names, values, and compare flags of `object`.
1520
+ *
1521
+ * @private
1522
+ * @param {Object} object The object to query.
1523
+ * @returns {Array} Returns the match data of `object`.
1524
+ */
1525
+ function getMatchData(object) {
1526
+ var result = keys_1(object),
1527
+ length = result.length;
1528
+
1529
+ while (length--) {
1530
+ var key = result[length],
1531
+ value = object[key];
1532
+
1533
+ result[length] = [key, value, _isStrictComparable(value)];
1534
+ }
1535
+ return result;
1536
+ }
1537
+
1538
+ var _getMatchData = getMatchData;
1539
+
1540
+ /**
1541
+ * A specialized version of `matchesProperty` for source values suitable
1542
+ * for strict equality comparisons, i.e. `===`.
1543
+ *
1544
+ * @private
1545
+ * @param {string} key The key of the property to get.
1546
+ * @param {*} srcValue The value to match.
1547
+ * @returns {Function} Returns the new spec function.
1548
+ */
1549
+ function matchesStrictComparable(key, srcValue) {
1550
+ return function(object) {
1551
+ if (object == null) {
1552
+ return false;
1553
+ }
1554
+ return object[key] === srcValue &&
1555
+ (srcValue !== undefined || (key in Object(object)));
1556
+ };
1557
+ }
1558
+
1559
+ var _matchesStrictComparable = matchesStrictComparable;
1560
+
1561
+ /**
1562
+ * The base implementation of `_.matches` which doesn't clone `source`.
1563
+ *
1564
+ * @private
1565
+ * @param {Object} source The object of property values to match.
1566
+ * @returns {Function} Returns the new spec function.
1567
+ */
1568
+ function baseMatches(source) {
1569
+ var matchData = _getMatchData(source);
1570
+ if (matchData.length == 1 && matchData[0][2]) {
1571
+ return _matchesStrictComparable(matchData[0][0], matchData[0][1]);
1572
+ }
1573
+ return function(object) {
1574
+ return object === source || _baseIsMatch(object, source, matchData);
1575
+ };
1576
+ }
1577
+
1578
+ var _baseMatches = baseMatches;
1579
+
1580
+ /** Used to match property names within property paths. */
1581
+ var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
1582
+ reIsPlainProp = /^\w*$/;
1583
+
1584
+ /**
1585
+ * Checks if `value` is a property name and not a property path.
1586
+ *
1587
+ * @private
1588
+ * @param {*} value The value to check.
1589
+ * @param {Object} [object] The object to query keys on.
1590
+ * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
1591
+ */
1592
+ function isKey(value, object) {
1593
+ if (isArray_1(value)) {
1594
+ return false;
1595
+ }
1596
+ var type = typeof value;
1597
+ if (type == 'number' || type == 'symbol' || type == 'boolean' ||
1598
+ value == null || isSymbol_1(value)) {
1599
+ return true;
1600
+ }
1601
+ return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
1602
+ (object != null && value in Object(object));
1603
+ }
1604
+
1605
+ var _isKey = isKey;
1606
+
1607
+ /** Error message constants. */
1608
+ var FUNC_ERROR_TEXT = 'Expected a function';
1609
+
1610
+ /**
1611
+ * Creates a function that memoizes the result of `func`. If `resolver` is
1612
+ * provided, it determines the cache key for storing the result based on the
1613
+ * arguments provided to the memoized function. By default, the first argument
1614
+ * provided to the memoized function is used as the map cache key. The `func`
1615
+ * is invoked with the `this` binding of the memoized function.
1616
+ *
1617
+ * **Note:** The cache is exposed as the `cache` property on the memoized
1618
+ * function. Its creation may be customized by replacing the `_.memoize.Cache`
1619
+ * constructor with one whose instances implement the
1620
+ * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
1621
+ * method interface of `clear`, `delete`, `get`, `has`, and `set`.
1622
+ *
1623
+ * @static
1624
+ * @memberOf _
1625
+ * @since 0.1.0
1626
+ * @category Function
1627
+ * @param {Function} func The function to have its output memoized.
1628
+ * @param {Function} [resolver] The function to resolve the cache key.
1629
+ * @returns {Function} Returns the new memoized function.
1630
+ * @example
1631
+ *
1632
+ * var object = { 'a': 1, 'b': 2 };
1633
+ * var other = { 'c': 3, 'd': 4 };
1634
+ *
1635
+ * var values = _.memoize(_.values);
1636
+ * values(object);
1637
+ * // => [1, 2]
1638
+ *
1639
+ * values(other);
1640
+ * // => [3, 4]
1641
+ *
1642
+ * object.a = 2;
1643
+ * values(object);
1644
+ * // => [1, 2]
1645
+ *
1646
+ * // Modify the result cache.
1647
+ * values.cache.set(object, ['a', 'b']);
1648
+ * values(object);
1649
+ * // => ['a', 'b']
1650
+ *
1651
+ * // Replace `_.memoize.Cache`.
1652
+ * _.memoize.Cache = WeakMap;
1653
+ */
1654
+ function memoize(func, resolver) {
1655
+ if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
1656
+ throw new TypeError(FUNC_ERROR_TEXT);
1657
+ }
1658
+ var memoized = function() {
1659
+ var args = arguments,
1660
+ key = resolver ? resolver.apply(this, args) : args[0],
1661
+ cache = memoized.cache;
1662
+
1663
+ if (cache.has(key)) {
1664
+ return cache.get(key);
1665
+ }
1666
+ var result = func.apply(this, args);
1667
+ memoized.cache = cache.set(key, result) || cache;
1668
+ return result;
1669
+ };
1670
+ memoized.cache = new (memoize.Cache || _MapCache);
1671
+ return memoized;
1672
+ }
1673
+
1674
+ // Expose `MapCache`.
1675
+ memoize.Cache = _MapCache;
1676
+
1677
+ var memoize_1 = memoize;
1678
+
1679
+ /** Used as the maximum memoize cache size. */
1680
+ var MAX_MEMOIZE_SIZE = 500;
1681
+
1682
+ /**
1683
+ * A specialized version of `_.memoize` which clears the memoized function's
1684
+ * cache when it exceeds `MAX_MEMOIZE_SIZE`.
1685
+ *
1686
+ * @private
1687
+ * @param {Function} func The function to have its output memoized.
1688
+ * @returns {Function} Returns the new memoized function.
1689
+ */
1690
+ function memoizeCapped(func) {
1691
+ var result = memoize_1(func, function(key) {
1692
+ if (cache.size === MAX_MEMOIZE_SIZE) {
1693
+ cache.clear();
1694
+ }
1695
+ return key;
1696
+ });
1697
+
1698
+ var cache = result.cache;
1699
+ return result;
1700
+ }
1701
+
1702
+ var _memoizeCapped = memoizeCapped;
1703
+
1704
+ /** Used to match property names within property paths. */
1705
+ var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
1706
+
1707
+ /** Used to match backslashes in property paths. */
1708
+ var reEscapeChar = /\\(\\)?/g;
1709
+
1710
+ /**
1711
+ * Converts `string` to a property path array.
1712
+ *
1713
+ * @private
1714
+ * @param {string} string The string to convert.
1715
+ * @returns {Array} Returns the property path array.
1716
+ */
1717
+ var stringToPath = _memoizeCapped(function(string) {
1718
+ var result = [];
1719
+ if (string.charCodeAt(0) === 46 /* . */) {
1720
+ result.push('');
1721
+ }
1722
+ string.replace(rePropName, function(match, number, quote, subString) {
1723
+ result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
1724
+ });
1725
+ return result;
1726
+ });
1727
+
1728
+ var _stringToPath = stringToPath;
1729
+
1730
+ /** Used as references for various `Number` constants. */
1731
+ var INFINITY$1 = 1 / 0;
1732
+
1733
+ /** Used to convert symbols to primitives and strings. */
1734
+ var symbolProto = _Symbol ? _Symbol.prototype : undefined,
1735
+ symbolToString = symbolProto ? symbolProto.toString : undefined;
1736
+
1737
+ /**
1738
+ * The base implementation of `_.toString` which doesn't convert nullish
1739
+ * values to empty strings.
1740
+ *
1741
+ * @private
1742
+ * @param {*} value The value to process.
1743
+ * @returns {string} Returns the string.
1744
+ */
1745
+ function baseToString(value) {
1746
+ // Exit early for strings to avoid a performance hit in some environments.
1747
+ if (typeof value == 'string') {
1748
+ return value;
1749
+ }
1750
+ if (isArray_1(value)) {
1751
+ // Recursively convert values (susceptible to call stack limits).
1752
+ return _arrayMap(value, baseToString) + '';
1753
+ }
1754
+ if (isSymbol_1(value)) {
1755
+ return symbolToString ? symbolToString.call(value) : '';
1756
+ }
1757
+ var result = (value + '');
1758
+ return (result == '0' && (1 / value) == -INFINITY$1) ? '-0' : result;
1759
+ }
1760
+
1761
+ var _baseToString = baseToString;
1762
+
1763
+ /**
1764
+ * Converts `value` to a string. An empty string is returned for `null`
1765
+ * and `undefined` values. The sign of `-0` is preserved.
1766
+ *
1767
+ * @static
1768
+ * @memberOf _
1769
+ * @since 4.0.0
1770
+ * @category Lang
1771
+ * @param {*} value The value to convert.
1772
+ * @returns {string} Returns the converted string.
1773
+ * @example
1774
+ *
1775
+ * _.toString(null);
1776
+ * // => ''
1777
+ *
1778
+ * _.toString(-0);
1779
+ * // => '-0'
1780
+ *
1781
+ * _.toString([1, 2, 3]);
1782
+ * // => '1,2,3'
1783
+ */
1784
+ function toString(value) {
1785
+ return value == null ? '' : _baseToString(value);
1786
+ }
1787
+
1788
+ var toString_1 = toString;
1789
+
1790
+ /**
1791
+ * Casts `value` to a path array if it's not one.
1792
+ *
1793
+ * @private
1794
+ * @param {*} value The value to inspect.
1795
+ * @param {Object} [object] The object to query keys on.
1796
+ * @returns {Array} Returns the cast property path array.
1797
+ */
1798
+ function castPath(value, object) {
1799
+ if (isArray_1(value)) {
1800
+ return value;
1801
+ }
1802
+ return _isKey(value, object) ? [value] : _stringToPath(toString_1(value));
1803
+ }
1804
+
1805
+ var _castPath = castPath;
1806
+
1807
+ /** Used as references for various `Number` constants. */
1808
+ var INFINITY = 1 / 0;
1809
+
1810
+ /**
1811
+ * Converts `value` to a string key if it's not a string or symbol.
1812
+ *
1813
+ * @private
1814
+ * @param {*} value The value to inspect.
1815
+ * @returns {string|symbol} Returns the key.
1816
+ */
1817
+ function toKey(value) {
1818
+ if (typeof value == 'string' || isSymbol_1(value)) {
1819
+ return value;
1820
+ }
1821
+ var result = (value + '');
1822
+ return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
1823
+ }
1824
+
1825
+ var _toKey = toKey;
1826
+
1827
+ /**
1828
+ * The base implementation of `_.get` without support for default values.
1829
+ *
1830
+ * @private
1831
+ * @param {Object} object The object to query.
1832
+ * @param {Array|string} path The path of the property to get.
1833
+ * @returns {*} Returns the resolved value.
1834
+ */
1835
+ function baseGet(object, path) {
1836
+ path = _castPath(path, object);
1837
+
1838
+ var index = 0,
1839
+ length = path.length;
1840
+
1841
+ while (object != null && index < length) {
1842
+ object = object[_toKey(path[index++])];
1843
+ }
1844
+ return (index && index == length) ? object : undefined;
1845
+ }
1846
+
1847
+ var _baseGet = baseGet;
1848
+
1849
+ /**
1850
+ * Gets the value at `path` of `object`. If the resolved value is
1851
+ * `undefined`, the `defaultValue` is returned in its place.
1852
+ *
1853
+ * @static
1854
+ * @memberOf _
1855
+ * @since 3.7.0
1856
+ * @category Object
1857
+ * @param {Object} object The object to query.
1858
+ * @param {Array|string} path The path of the property to get.
1859
+ * @param {*} [defaultValue] The value returned for `undefined` resolved values.
1860
+ * @returns {*} Returns the resolved value.
1861
+ * @example
1862
+ *
1863
+ * var object = { 'a': [{ 'b': { 'c': 3 } }] };
1864
+ *
1865
+ * _.get(object, 'a[0].b.c');
1866
+ * // => 3
1867
+ *
1868
+ * _.get(object, ['a', '0', 'b', 'c']);
1869
+ * // => 3
1870
+ *
1871
+ * _.get(object, 'a.b.c', 'default');
1872
+ * // => 'default'
1873
+ */
1874
+ function get(object, path, defaultValue) {
1875
+ var result = object == null ? undefined : _baseGet(object, path);
1876
+ return result === undefined ? defaultValue : result;
1877
+ }
1878
+
1879
+ var get_1 = get;
1880
+
1881
+ /**
1882
+ * The base implementation of `_.hasIn` without support for deep paths.
1883
+ *
1884
+ * @private
1885
+ * @param {Object} [object] The object to query.
1886
+ * @param {Array|string} key The key to check.
1887
+ * @returns {boolean} Returns `true` if `key` exists, else `false`.
1888
+ */
1889
+ function baseHasIn(object, key) {
1890
+ return object != null && key in Object(object);
1891
+ }
1892
+
1893
+ var _baseHasIn = baseHasIn;
1894
+
1895
+ /**
1896
+ * Checks if `path` exists on `object`.
1897
+ *
1898
+ * @private
1899
+ * @param {Object} object The object to query.
1900
+ * @param {Array|string} path The path to check.
1901
+ * @param {Function} hasFunc The function to check properties.
1902
+ * @returns {boolean} Returns `true` if `path` exists, else `false`.
1903
+ */
1904
+ function hasPath(object, path, hasFunc) {
1905
+ path = _castPath(path, object);
1906
+
1907
+ var index = -1,
1908
+ length = path.length,
1909
+ result = false;
1910
+
1911
+ while (++index < length) {
1912
+ var key = _toKey(path[index]);
1913
+ if (!(result = object != null && hasFunc(object, key))) {
1914
+ break;
1915
+ }
1916
+ object = object[key];
1917
+ }
1918
+ if (result || ++index != length) {
1919
+ return result;
1920
+ }
1921
+ length = object == null ? 0 : object.length;
1922
+ return !!length && isLength_1(length) && _isIndex(key, length) &&
1923
+ (isArray_1(object) || isArguments_1(object));
1924
+ }
1925
+
1926
+ var _hasPath = hasPath;
1927
+
1928
+ /**
1929
+ * Checks if `path` is a direct or inherited property of `object`.
1930
+ *
1931
+ * @static
1932
+ * @memberOf _
1933
+ * @since 4.0.0
1934
+ * @category Object
1935
+ * @param {Object} object The object to query.
1936
+ * @param {Array|string} path The path to check.
1937
+ * @returns {boolean} Returns `true` if `path` exists, else `false`.
1938
+ * @example
1939
+ *
1940
+ * var object = _.create({ 'a': _.create({ 'b': 2 }) });
1941
+ *
1942
+ * _.hasIn(object, 'a');
1943
+ * // => true
1944
+ *
1945
+ * _.hasIn(object, 'a.b');
1946
+ * // => true
1947
+ *
1948
+ * _.hasIn(object, ['a', 'b']);
1949
+ * // => true
1950
+ *
1951
+ * _.hasIn(object, 'b');
1952
+ * // => false
1953
+ */
1954
+ function hasIn(object, path) {
1955
+ return object != null && _hasPath(object, path, _baseHasIn);
1956
+ }
1957
+
1958
+ var hasIn_1 = hasIn;
1959
+
1960
+ /** Used to compose bitmasks for value comparisons. */
1961
+ var COMPARE_PARTIAL_FLAG = 1,
1962
+ COMPARE_UNORDERED_FLAG = 2;
1963
+
1964
+ /**
1965
+ * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
1966
+ *
1967
+ * @private
1968
+ * @param {string} path The path of the property to get.
1969
+ * @param {*} srcValue The value to match.
1970
+ * @returns {Function} Returns the new spec function.
1971
+ */
1972
+ function baseMatchesProperty(path, srcValue) {
1973
+ if (_isKey(path) && _isStrictComparable(srcValue)) {
1974
+ return _matchesStrictComparable(_toKey(path), srcValue);
1975
+ }
1976
+ return function(object) {
1977
+ var objValue = get_1(object, path);
1978
+ return (objValue === undefined && objValue === srcValue)
1979
+ ? hasIn_1(object, path)
1980
+ : _baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
1981
+ };
1982
+ }
1983
+
1984
+ var _baseMatchesProperty = baseMatchesProperty;
1985
+
1986
+ /**
1987
+ * The base implementation of `_.property` without support for deep paths.
1988
+ *
1989
+ * @private
1990
+ * @param {string} key The key of the property to get.
1991
+ * @returns {Function} Returns the new accessor function.
1992
+ */
1993
+ function baseProperty(key) {
1994
+ return function(object) {
1995
+ return object == null ? undefined : object[key];
1996
+ };
1997
+ }
1998
+
1999
+ var _baseProperty = baseProperty;
2000
+
2001
+ /**
2002
+ * A specialized version of `baseProperty` which supports deep paths.
2003
+ *
2004
+ * @private
2005
+ * @param {Array|string} path The path of the property to get.
2006
+ * @returns {Function} Returns the new accessor function.
2007
+ */
2008
+ function basePropertyDeep(path) {
2009
+ return function(object) {
2010
+ return _baseGet(object, path);
2011
+ };
2012
+ }
2013
+
2014
+ var _basePropertyDeep = basePropertyDeep;
2015
+
2016
+ /**
2017
+ * Creates a function that returns the value at `path` of a given object.
2018
+ *
2019
+ * @static
2020
+ * @memberOf _
2021
+ * @since 2.4.0
2022
+ * @category Util
2023
+ * @param {Array|string} path The path of the property to get.
2024
+ * @returns {Function} Returns the new accessor function.
2025
+ * @example
2026
+ *
2027
+ * var objects = [
2028
+ * { 'a': { 'b': 2 } },
2029
+ * { 'a': { 'b': 1 } }
2030
+ * ];
2031
+ *
2032
+ * _.map(objects, _.property('a.b'));
2033
+ * // => [2, 1]
2034
+ *
2035
+ * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
2036
+ * // => [1, 2]
2037
+ */
2038
+ function property(path) {
2039
+ return _isKey(path) ? _baseProperty(_toKey(path)) : _basePropertyDeep(path);
2040
+ }
2041
+
2042
+ var property_1 = property;
2043
+
2044
+ /**
2045
+ * The base implementation of `_.iteratee`.
2046
+ *
2047
+ * @private
2048
+ * @param {*} [value=_.identity] The value to convert to an iteratee.
2049
+ * @returns {Function} Returns the iteratee.
2050
+ */
2051
+ function baseIteratee(value) {
2052
+ // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
2053
+ // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
2054
+ if (typeof value == 'function') {
2055
+ return value;
2056
+ }
2057
+ if (value == null) {
2058
+ return identity_1;
2059
+ }
2060
+ if (typeof value == 'object') {
2061
+ return isArray_1(value)
2062
+ ? _baseMatchesProperty(value[0], value[1])
2063
+ : _baseMatches(value);
2064
+ }
2065
+ return property_1(value);
2066
+ }
2067
+
2068
+ var _baseIteratee = baseIteratee;
2069
+
2070
+ export { _baseIteratee as _, _baseProperty as a, _getTag as b, _getNative as c, eq_1 as e };