@revolist/revogrid 4.0.2-next → 4.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (805) hide show
  1. package/LICENSE +1 -1
  2. package/dist/cjs/app-globals-53fde1aa.js +14 -0
  3. package/dist/cjs/app-globals-53fde1aa.js.map +1 -0
  4. package/dist/cjs/column.service-2066d651.js +545 -0
  5. package/dist/cjs/column.service-2066d651.js.map +1 -0
  6. package/dist/cjs/debounce-e2b7c6fb.js +226 -0
  7. package/dist/cjs/debounce-e2b7c6fb.js.map +1 -0
  8. package/dist/cjs/dimension.helpers-ee39d6c4.js +4218 -0
  9. package/dist/cjs/dimension.helpers-ee39d6c4.js.map +1 -0
  10. package/dist/cjs/dispatcher-a58fa91a.js +34 -0
  11. package/dist/cjs/dispatcher-a58fa91a.js.map +1 -0
  12. package/dist/cjs/events-7ccd6894.js +233 -0
  13. package/dist/cjs/events-7ccd6894.js.map +1 -0
  14. package/dist/cjs/filter.button-db6cbd2e.js +44 -0
  15. package/dist/cjs/filter.button-db6cbd2e.js.map +1 -0
  16. package/dist/cjs/header-cell-renderer-3df76829.js +304 -0
  17. package/dist/cjs/header-cell-renderer-3df76829.js.map +1 -0
  18. package/dist/cjs/index-73c149e3.js +106 -0
  19. package/dist/cjs/index-73c149e3.js.map +1 -0
  20. package/dist/cjs/index-84e32c2a.js +1868 -0
  21. package/dist/cjs/index-84e32c2a.js.map +1 -0
  22. package/dist/cjs/index.cjs.js +53 -0
  23. package/dist/cjs/index.cjs.js.map +1 -0
  24. package/dist/cjs/key.utils-dc4ac217.js +129 -0
  25. package/dist/cjs/key.utils-dc4ac217.js.map +1 -0
  26. package/dist/cjs/loader.cjs.js +12 -27
  27. package/dist/cjs/loader.cjs.js.map +1 -0
  28. package/dist/cjs/{resize-observer-8dc80084.js → resize-observer-d009a220.js} +30 -13
  29. package/dist/cjs/resize-observer-d009a220.js.map +1 -0
  30. package/dist/cjs/revo-grid.cjs.entry.js +3992 -0
  31. package/dist/cjs/revo-grid.cjs.entry.js.map +1 -0
  32. package/dist/cjs/revo-grid.cjs.js +22 -65
  33. package/dist/cjs/revo-grid.cjs.js.map +1 -0
  34. package/dist/cjs/revogr-attribution_6.cjs.entry.js +1270 -0
  35. package/dist/cjs/revogr-attribution_6.cjs.entry.js.map +1 -0
  36. package/dist/cjs/revogr-clipboard_3.cjs.entry.js +508 -0
  37. package/dist/cjs/revogr-clipboard_3.cjs.entry.js.map +1 -0
  38. package/dist/cjs/revogr-data_4.cjs.entry.js +958 -0
  39. package/dist/cjs/revogr-data_4.cjs.entry.js.map +1 -0
  40. package/dist/cjs/revogr-filter-panel.cjs.entry.js +268 -115
  41. package/dist/cjs/revogr-filter-panel.cjs.entry.js.map +1 -0
  42. package/dist/cjs/selection.store-2e110a67.js +400 -0
  43. package/dist/cjs/selection.store-2e110a67.js.map +1 -0
  44. package/dist/cjs/storeTypes-b3f924b2.js +106 -0
  45. package/dist/cjs/storeTypes-b3f924b2.js.map +1 -0
  46. package/dist/cjs/throttle-f7aee21b.js +240 -0
  47. package/dist/cjs/throttle-f7aee21b.js.map +1 -0
  48. package/dist/cjs/toNumber-838e6ff5.js +340 -0
  49. package/dist/cjs/toNumber-838e6ff5.js.map +1 -0
  50. package/dist/cjs/viewport.helpers-6670177c.js +262 -0
  51. package/dist/cjs/viewport.helpers-6670177c.js.map +1 -0
  52. package/dist/collection/collection-manifest.json +18 -16
  53. package/dist/collection/components/attribution/revogr-attribution.js +20 -0
  54. package/dist/collection/components/attribution/revogr-attribution.js.map +1 -0
  55. package/dist/collection/components/clipboard/revogr-clipboard.js +410 -115
  56. package/dist/collection/components/clipboard/revogr-clipboard.js.map +1 -0
  57. package/dist/collection/components/data/cell-renderer.js +39 -0
  58. package/dist/collection/components/data/cell-renderer.js.map +1 -0
  59. package/dist/collection/components/data/column.service.js +302 -0
  60. package/dist/collection/components/data/column.service.js.map +1 -0
  61. package/dist/collection/components/data/revogr-data-style.css +18 -11
  62. package/dist/collection/components/data/revogr-data.js +626 -301
  63. package/dist/collection/components/data/revogr-data.js.map +1 -0
  64. package/dist/collection/components/data/row-highlight.plugin.js +51 -0
  65. package/dist/collection/components/data/row-highlight.plugin.js.map +1 -0
  66. package/dist/collection/components/data/row-renderer.js +16 -0
  67. package/dist/collection/components/data/row-renderer.js.map +1 -0
  68. package/dist/collection/components/editors/edit.utils.js +9 -0
  69. package/dist/collection/components/editors/edit.utils.js.map +1 -0
  70. package/dist/collection/components/{overlay → editors}/revogr-edit-style.css +15 -9
  71. package/dist/collection/components/editors/revogr-edit.js +316 -0
  72. package/dist/collection/components/editors/revogr-edit.js.map +1 -0
  73. package/dist/collection/components/editors/text-editor.js +73 -0
  74. package/dist/collection/components/editors/text-editor.js.map +1 -0
  75. package/dist/collection/components/header/header-cell-renderer.js +28 -0
  76. package/dist/collection/components/header/header-cell-renderer.js.map +1 -0
  77. package/dist/collection/components/header/header-renderer.js +47 -0
  78. package/dist/collection/components/header/header-renderer.js.map +1 -0
  79. package/dist/collection/components/header/revogr-header-style.css +15 -9
  80. package/dist/collection/components/header/revogr-header.js +421 -297
  81. package/dist/collection/components/header/revogr-header.js.map +1 -0
  82. package/dist/collection/components/order/order-renderer.js +50 -0
  83. package/dist/collection/components/order/order-renderer.js.map +1 -0
  84. package/dist/collection/components/order/order-row.service.js +72 -0
  85. package/dist/collection/components/order/order-row.service.js.map +1 -0
  86. package/dist/collection/components/order/revogr-order-editor.js +381 -350
  87. package/dist/collection/components/order/revogr-order-editor.js.map +1 -0
  88. package/dist/collection/components/overlay/autofill.service.js +206 -179
  89. package/dist/collection/components/overlay/autofill.service.js.map +1 -0
  90. package/dist/collection/components/overlay/keyboard.service.js +137 -124
  91. package/dist/collection/components/overlay/keyboard.service.js.map +1 -0
  92. package/dist/collection/components/overlay/revogr-overlay-selection.js +1208 -703
  93. package/dist/collection/components/overlay/revogr-overlay-selection.js.map +1 -0
  94. package/dist/collection/components/overlay/revogr-overlay-style.css +86 -13
  95. package/dist/collection/components/overlay/selection.utils.js +86 -82
  96. package/dist/collection/components/overlay/selection.utils.js.map +1 -0
  97. package/dist/collection/components/revoGrid/grid.helpers.js +28 -13
  98. package/dist/collection/components/revoGrid/grid.helpers.js.map +1 -0
  99. package/dist/collection/components/revoGrid/revo-grid-style.css +143 -51
  100. package/dist/collection/components/revoGrid/revo-grid.js +2834 -2181
  101. package/dist/collection/components/revoGrid/revo-grid.js.map +1 -0
  102. package/dist/collection/components/revoGrid/viewport.helpers.js +9 -4
  103. package/dist/collection/components/revoGrid/viewport.helpers.js.map +1 -0
  104. package/dist/collection/components/revoGrid/viewport.resize.service.js +23 -19
  105. package/dist/collection/components/revoGrid/viewport.resize.service.js.map +1 -0
  106. package/dist/collection/components/revoGrid/viewport.scrolling.service.js +78 -50
  107. package/dist/collection/components/revoGrid/viewport.scrolling.service.js.map +1 -0
  108. package/dist/collection/components/revoGrid/viewport.service.js +224 -204
  109. package/dist/collection/components/revoGrid/viewport.service.js.map +1 -0
  110. package/dist/collection/components/rowHeaders/revogr-row-headers.js +262 -204
  111. package/dist/collection/components/rowHeaders/revogr-row-headers.js.map +1 -0
  112. package/dist/collection/components/rowHeaders/row-header-render.js +4 -0
  113. package/dist/collection/components/rowHeaders/row-header-render.js.map +1 -0
  114. package/dist/collection/components/scroll/revogr-viewport-scroll-style.css +20 -13
  115. package/dist/collection/components/scroll/revogr-viewport-scroll.js +535 -369
  116. package/dist/collection/components/scroll/revogr-viewport-scroll.js.map +1 -0
  117. package/dist/collection/components/scrollable/autohide-scroll.plugin.js +44 -0
  118. package/dist/collection/components/scrollable/autohide-scroll.plugin.js.map +1 -0
  119. package/dist/collection/components/scrollable/revogr-scroll-style.css +24 -18
  120. package/dist/collection/components/scrollable/revogr-scroll-virtual.js +286 -247
  121. package/dist/collection/components/scrollable/revogr-scroll-virtual.js.map +1 -0
  122. package/dist/collection/components/selectionFocus/revogr-focus-style.css +16 -10
  123. package/dist/collection/components/selectionFocus/revogr-focus.js +366 -96
  124. package/dist/collection/components/selectionFocus/revogr-focus.js.map +1 -0
  125. package/dist/collection/components/selectionTempRange/revogr-temp-range-style.css +16 -10
  126. package/dist/collection/components/selectionTempRange/revogr-temp-range.js +149 -128
  127. package/dist/collection/components/selectionTempRange/revogr-temp-range.js.map +1 -0
  128. package/dist/collection/components/vnode/vnode-converter.js +81 -0
  129. package/dist/collection/components/vnode/vnode-converter.js.map +1 -0
  130. package/dist/collection/components/vnode/vnode.utils.js +18 -0
  131. package/dist/collection/components/vnode/vnode.utils.js.map +1 -0
  132. package/dist/collection/global/global.js +15 -11
  133. package/dist/collection/global/global.js.map +1 -0
  134. package/dist/collection/index.js +18 -0
  135. package/dist/collection/index.js.map +1 -0
  136. package/dist/collection/plugins/base.plugin.js +88 -0
  137. package/dist/collection/plugins/base.plugin.js.map +1 -0
  138. package/dist/collection/plugins/column.auto-size.plugin.js +234 -0
  139. package/dist/collection/plugins/column.auto-size.plugin.js.map +1 -0
  140. package/dist/collection/plugins/column.stretch.plugin.js +96 -0
  141. package/dist/collection/plugins/column.stretch.plugin.js.map +1 -0
  142. package/dist/collection/plugins/dispatcher.js +27 -0
  143. package/dist/collection/plugins/dispatcher.js.map +1 -0
  144. package/dist/collection/plugins/export/csv.js +57 -53
  145. package/dist/collection/plugins/export/csv.js.map +1 -0
  146. package/dist/collection/plugins/export/export.plugin.js +154 -150
  147. package/dist/collection/plugins/export/export.plugin.js.map +1 -0
  148. package/dist/collection/plugins/export/types.js +1 -0
  149. package/dist/collection/plugins/export/types.js.map +1 -0
  150. package/dist/collection/plugins/filter/conditions/equal.js +15 -7
  151. package/dist/collection/plugins/filter/conditions/equal.js.map +1 -0
  152. package/dist/collection/plugins/filter/conditions/number/greaterThan.js +10 -6
  153. package/dist/collection/plugins/filter/conditions/number/greaterThan.js.map +1 -0
  154. package/dist/collection/plugins/filter/conditions/number/greaterThanOrEqual.js +7 -3
  155. package/dist/collection/plugins/filter/conditions/number/greaterThanOrEqual.js.map +1 -0
  156. package/dist/collection/plugins/filter/conditions/number/lessThan.js +12 -8
  157. package/dist/collection/plugins/filter/conditions/number/lessThan.js.map +1 -0
  158. package/dist/collection/plugins/filter/conditions/number/lessThanOrEqual.js +7 -3
  159. package/dist/collection/plugins/filter/conditions/number/lessThanOrEqual.js.map +1 -0
  160. package/dist/collection/plugins/filter/conditions/set.js +4 -0
  161. package/dist/collection/plugins/filter/conditions/set.js.map +1 -0
  162. package/dist/collection/plugins/filter/conditions/string/beginswith.js +17 -13
  163. package/dist/collection/plugins/filter/conditions/string/beginswith.js.map +1 -0
  164. package/dist/collection/plugins/filter/conditions/string/contains.js +17 -10
  165. package/dist/collection/plugins/filter/conditions/string/contains.js.map +1 -0
  166. package/dist/collection/plugins/filter/filter.button.js +21 -13
  167. package/dist/collection/plugins/filter/filter.button.js.map +1 -0
  168. package/dist/collection/plugins/filter/filter.plugin.js +280 -185
  169. package/dist/collection/plugins/filter/filter.plugin.js.map +1 -0
  170. package/dist/collection/plugins/filter/filter.pop.js +492 -246
  171. package/dist/collection/plugins/filter/filter.pop.js.map +1 -0
  172. package/dist/collection/plugins/filter/filter.service.js +42 -38
  173. package/dist/collection/plugins/filter/filter.service.js.map +1 -0
  174. package/dist/collection/plugins/filter/filter.style.css +68 -15
  175. package/dist/collection/plugins/filter/filter.types.js +1 -0
  176. package/dist/collection/plugins/filter/filter.types.js.map +1 -0
  177. package/dist/collection/plugins/groupingColumn/columnGroupsRenderer.js +30 -26
  178. package/dist/collection/plugins/groupingColumn/columnGroupsRenderer.js.map +1 -0
  179. package/dist/collection/plugins/groupingColumn/grouping.col.plugin.js +38 -30
  180. package/dist/collection/plugins/groupingColumn/grouping.col.plugin.js.map +1 -0
  181. package/dist/collection/plugins/groupingColumn/headerGroupRenderer.js +22 -18
  182. package/dist/collection/plugins/groupingColumn/headerGroupRenderer.js.map +1 -0
  183. package/dist/collection/plugins/groupingRow/grouping.const.js +7 -2
  184. package/dist/collection/plugins/groupingRow/grouping.const.js.map +1 -0
  185. package/dist/collection/plugins/groupingRow/grouping.row.expand.service.js +64 -61
  186. package/dist/collection/plugins/groupingRow/grouping.row.expand.service.js.map +1 -0
  187. package/dist/collection/plugins/groupingRow/grouping.row.plugin.js +239 -237
  188. package/dist/collection/plugins/groupingRow/grouping.row.plugin.js.map +1 -0
  189. package/dist/collection/plugins/groupingRow/grouping.row.renderer.js +27 -24
  190. package/dist/collection/plugins/groupingRow/grouping.row.renderer.js.map +1 -0
  191. package/dist/collection/plugins/groupingRow/grouping.row.types.js +1 -0
  192. package/dist/collection/plugins/groupingRow/grouping.row.types.js.map +1 -0
  193. package/dist/collection/plugins/groupingRow/grouping.service.js +101 -131
  194. package/dist/collection/plugins/groupingRow/grouping.service.js.map +1 -0
  195. package/dist/collection/plugins/groupingRow/grouping.trimmed.service.js +47 -43
  196. package/dist/collection/plugins/groupingRow/grouping.trimmed.service.js.map +1 -0
  197. package/dist/collection/plugins/moveColumn/column.drag.plugin.js +167 -0
  198. package/dist/collection/plugins/moveColumn/column.drag.plugin.js.map +1 -0
  199. package/dist/collection/plugins/moveColumn/order-column.handler.js +69 -0
  200. package/dist/collection/plugins/moveColumn/order-column.handler.js.map +1 -0
  201. package/dist/collection/plugins/sorting/sorting.plugin.js +218 -163
  202. package/dist/collection/plugins/sorting/sorting.plugin.js.map +1 -0
  203. package/dist/collection/plugins/sorting/sorting.sign.js +6 -2
  204. package/dist/collection/plugins/sorting/sorting.sign.js.map +1 -0
  205. package/dist/collection/serve/controller.js +233 -0
  206. package/dist/collection/{utilsExternal/generate-data.js → serve/data.js} +72 -32
  207. package/dist/collection/services/cell.helpers.js +9 -5
  208. package/dist/collection/services/cell.helpers.js.map +1 -0
  209. package/dist/collection/services/column.data.provider.js +201 -185
  210. package/dist/collection/services/column.data.provider.js.map +1 -0
  211. package/dist/collection/services/data.provider.js +70 -45
  212. package/dist/collection/services/data.provider.js.map +1 -0
  213. package/dist/collection/services/dimension.provider.js +143 -84
  214. package/dist/collection/services/dimension.provider.js.map +1 -0
  215. package/dist/collection/services/local.scroll.service.js +120 -0
  216. package/dist/collection/services/local.scroll.service.js.map +1 -0
  217. package/dist/collection/services/local.scroll.timer.js +42 -0
  218. package/dist/collection/services/local.scroll.timer.js.map +1 -0
  219. package/dist/collection/services/resizable.directive.js +211 -226
  220. package/dist/collection/services/resizable.directive.js.map +1 -0
  221. package/dist/collection/services/resizable.element.js +39 -0
  222. package/dist/collection/services/resizable.element.js.map +1 -0
  223. package/dist/collection/services/selection.store.connector.js +257 -208
  224. package/dist/collection/services/selection.store.connector.js.map +1 -0
  225. package/dist/collection/services/viewport.provider.js +16 -12
  226. package/dist/collection/services/viewport.provider.js.map +1 -0
  227. package/dist/collection/store/dataSource/data.proxy.js +29 -25
  228. package/dist/collection/store/dataSource/data.proxy.js.map +1 -0
  229. package/dist/collection/store/dataSource/data.store.js +100 -93
  230. package/dist/collection/store/dataSource/data.store.js.map +1 -0
  231. package/dist/collection/store/dataSource/index.js +7 -0
  232. package/dist/collection/store/dataSource/index.js.map +1 -0
  233. package/dist/collection/store/dataSource/trimmed.plugin.js +36 -0
  234. package/dist/collection/store/dataSource/trimmed.plugin.js.map +1 -0
  235. package/dist/collection/store/dimension/dimension.helpers.js +97 -95
  236. package/dist/collection/store/dimension/dimension.helpers.js.map +1 -0
  237. package/dist/collection/store/dimension/dimension.store.js +106 -48
  238. package/dist/collection/store/dimension/dimension.store.js.map +1 -0
  239. package/dist/collection/store/dimension/index.js +6 -0
  240. package/dist/collection/store/dimension/index.js.map +1 -0
  241. package/dist/collection/store/selection/index.js +7 -0
  242. package/dist/collection/store/selection/index.js.map +1 -0
  243. package/dist/collection/store/selection/selection.helpers.js +43 -39
  244. package/dist/collection/store/selection/selection.helpers.js.map +1 -0
  245. package/dist/collection/store/selection/selection.store.js +75 -63
  246. package/dist/collection/store/selection/selection.store.js.map +1 -0
  247. package/dist/collection/store/selection/selection.store.service.js +35 -31
  248. package/dist/collection/store/selection/selection.store.service.js.map +1 -0
  249. package/dist/collection/store/storeTypes.js +10 -2
  250. package/dist/collection/store/storeTypes.js.map +1 -0
  251. package/dist/collection/store/viewport/index.js +6 -0
  252. package/dist/collection/store/viewport/index.js.map +1 -0
  253. package/dist/collection/store/viewport/viewport.helpers.js +247 -0
  254. package/dist/collection/store/viewport/viewport.helpers.js.map +1 -0
  255. package/dist/collection/store/viewport/viewport.store.js +193 -0
  256. package/dist/collection/store/viewport/viewport.store.js.map +1 -0
  257. package/dist/collection/themeManager/theme.compact.js +7 -3
  258. package/dist/collection/themeManager/theme.compact.js.map +1 -0
  259. package/dist/collection/themeManager/theme.default.js +7 -3
  260. package/dist/collection/themeManager/theme.default.js.map +1 -0
  261. package/dist/collection/themeManager/theme.material.js +7 -3
  262. package/dist/collection/themeManager/theme.material.js.map +1 -0
  263. package/dist/collection/themeManager/theme.service.js +53 -0
  264. package/dist/collection/themeManager/theme.service.js.map +1 -0
  265. package/dist/collection/types/dimension.js +2 -0
  266. package/dist/collection/types/dimension.js.map +1 -0
  267. package/dist/collection/types/interfaces.js +2 -0
  268. package/dist/collection/types/interfaces.js.map +1 -0
  269. package/dist/collection/types/plugin.js +2 -0
  270. package/dist/collection/types/plugin.js.map +1 -0
  271. package/dist/collection/types/plugin.types.js +2 -0
  272. package/dist/collection/types/plugin.types.js.map +1 -0
  273. package/dist/collection/types/selection.js +2 -0
  274. package/dist/collection/types/selection.js.map +1 -0
  275. package/dist/collection/types/theme.js +2 -0
  276. package/dist/collection/types/theme.js.map +1 -0
  277. package/dist/collection/types/viewport.interfaces.js +2 -0
  278. package/dist/collection/types/viewport.interfaces.js.map +1 -0
  279. package/dist/collection/utils/browser.js +7 -0
  280. package/dist/collection/utils/browser.js.map +1 -0
  281. package/dist/collection/utils/closest.polifill.js +22 -0
  282. package/dist/collection/utils/closest.polifill.js.map +1 -0
  283. package/dist/collection/utils/consts.js +8 -0
  284. package/dist/collection/utils/consts.js.map +1 -0
  285. package/dist/collection/utils/events.js +29 -0
  286. package/dist/collection/utils/events.js.map +1 -0
  287. package/dist/collection/utils/header.utils.js +24 -0
  288. package/dist/collection/utils/header.utils.js.map +1 -0
  289. package/dist/collection/utils/index.js +125 -0
  290. package/dist/collection/utils/index.js.map +1 -0
  291. package/dist/collection/utils/key.codes.js +76 -0
  292. package/dist/collection/utils/key.codes.js.map +1 -0
  293. package/dist/collection/utils/key.utils.js +84 -0
  294. package/dist/collection/utils/key.utils.js.map +1 -0
  295. package/dist/collection/utils/mobile.js +7 -0
  296. package/dist/collection/utils/mobile.js.map +1 -0
  297. package/dist/collection/utils/platform.js +5 -1
  298. package/dist/collection/utils/platform.js.map +1 -0
  299. package/dist/collection/utils/resize-observer.polifill.js +10 -0
  300. package/dist/collection/utils/resize-observer.polifill.js.map +1 -0
  301. package/dist/collection/utils/row-header-utils.js +9 -0
  302. package/dist/collection/utils/row-header-utils.js.map +1 -0
  303. package/dist/collection/utils/store.utils.js +7 -3
  304. package/dist/collection/utils/store.utils.js.map +1 -0
  305. package/dist/esm/app-globals-ef1fca59.js +12 -0
  306. package/dist/esm/app-globals-ef1fca59.js.map +1 -0
  307. package/dist/esm/column.service-21a3af74.js +520 -0
  308. package/dist/esm/column.service-21a3af74.js.map +1 -0
  309. package/dist/esm/debounce-7781346d.js +224 -0
  310. package/dist/esm/debounce-7781346d.js.map +1 -0
  311. package/dist/esm/dimension.helpers-a3065cb1.js +4185 -0
  312. package/dist/esm/dimension.helpers-a3065cb1.js.map +1 -0
  313. package/dist/esm/dispatcher-8ea9187d.js +30 -0
  314. package/dist/esm/dispatcher-8ea9187d.js.map +1 -0
  315. package/dist/esm/events-3dd8ee7c.js +228 -0
  316. package/dist/esm/events-3dd8ee7c.js.map +1 -0
  317. package/dist/esm/filter.button-46ce4f80.js +38 -0
  318. package/dist/esm/filter.button-46ce4f80.js.map +1 -0
  319. package/dist/esm/header-cell-renderer-1ca84d5f.js +301 -0
  320. package/dist/esm/header-cell-renderer-1ca84d5f.js.map +1 -0
  321. package/dist/esm/index-21436631.js +1837 -0
  322. package/dist/esm/index-21436631.js.map +1 -0
  323. package/dist/esm/index-98fd0168.js +79 -0
  324. package/dist/esm/index-98fd0168.js.map +1 -0
  325. package/dist/esm/index.js +11 -0
  326. package/dist/esm/index.js.map +1 -0
  327. package/dist/esm/key.utils-4586a3d6.js +120 -0
  328. package/dist/esm/key.utils-4586a3d6.js.map +1 -0
  329. package/dist/esm/loader.js +11 -26
  330. package/dist/esm/loader.js.map +1 -0
  331. package/dist/esm/{resize-observer-56b7b34f.js → resize-observer-83c9e167.js} +30 -14
  332. package/dist/esm/resize-observer-83c9e167.js.map +1 -0
  333. package/dist/esm/revo-grid.entry.js +3988 -0
  334. package/dist/esm/revo-grid.entry.js.map +1 -0
  335. package/dist/esm/revo-grid.js +19 -65
  336. package/dist/esm/revo-grid.js.map +1 -0
  337. package/dist/esm/revogr-attribution_6.entry.js +1261 -0
  338. package/dist/esm/revogr-attribution_6.entry.js.map +1 -0
  339. package/dist/esm/revogr-clipboard_3.entry.js +502 -0
  340. package/dist/esm/revogr-clipboard_3.entry.js.map +1 -0
  341. package/dist/esm/revogr-data_4.entry.js +951 -0
  342. package/dist/esm/revogr-data_4.entry.js.map +1 -0
  343. package/dist/esm/revogr-filter-panel.entry.js +268 -115
  344. package/dist/esm/revogr-filter-panel.entry.js.map +1 -0
  345. package/dist/esm/selection.store-2577ddf9.js +391 -0
  346. package/dist/esm/selection.store-2577ddf9.js.map +1 -0
  347. package/dist/esm/storeTypes-f2647985.js +101 -0
  348. package/dist/esm/storeTypes-f2647985.js.map +1 -0
  349. package/dist/esm/throttle-cfd527d6.js +235 -0
  350. package/dist/esm/throttle-cfd527d6.js.map +1 -0
  351. package/dist/esm/toNumber-8de324a7.js +331 -0
  352. package/dist/esm/toNumber-8de324a7.js.map +1 -0
  353. package/dist/esm/viewport.helpers-6591d423.js +251 -0
  354. package/dist/esm/viewport.helpers-6591d423.js.map +1 -0
  355. package/dist/index.js +1 -1
  356. package/dist/loader/cdn.js +4 -0
  357. package/dist/loader/index.cjs.js +4 -0
  358. package/{loader → dist/loader}/index.d.ts +11 -3
  359. package/dist/loader/index.es2017.js +4 -0
  360. package/dist/{esm/polyfills/es5-html-element.js → loader/index.js} +5 -1
  361. package/{loader → dist/loader}/package.json +1 -0
  362. package/dist/revo-grid/app-globals-ef1fca59.js +5 -0
  363. package/dist/revo-grid/app-globals-ef1fca59.js.map +1 -0
  364. package/dist/revo-grid/column.service-21a3af74.js +5 -0
  365. package/dist/revo-grid/column.service-21a3af74.js.map +1 -0
  366. package/dist/revo-grid/debounce-7781346d.js +5 -0
  367. package/dist/revo-grid/debounce-7781346d.js.map +1 -0
  368. package/dist/revo-grid/dimension.helpers-a3065cb1.js +5 -0
  369. package/dist/revo-grid/dimension.helpers-a3065cb1.js.map +1 -0
  370. package/dist/revo-grid/dispatcher-8ea9187d.js +5 -0
  371. package/dist/revo-grid/dispatcher-8ea9187d.js.map +1 -0
  372. package/dist/revo-grid/events-3dd8ee7c.js +5 -0
  373. package/dist/revo-grid/events-3dd8ee7c.js.map +1 -0
  374. package/dist/revo-grid/filter.button-46ce4f80.js +5 -0
  375. package/dist/revo-grid/filter.button-46ce4f80.js.map +1 -0
  376. package/dist/revo-grid/header-cell-renderer-1ca84d5f.js +5 -0
  377. package/dist/revo-grid/header-cell-renderer-1ca84d5f.js.map +1 -0
  378. package/dist/revo-grid/index-21436631.js +6 -0
  379. package/dist/revo-grid/index-21436631.js.map +1 -0
  380. package/dist/revo-grid/index-98fd0168.js +5 -0
  381. package/dist/revo-grid/index-98fd0168.js.map +1 -0
  382. package/dist/revo-grid/index.esm.js +5 -0
  383. package/dist/revo-grid/index.esm.js.map +1 -0
  384. package/dist/revo-grid/key.utils-4586a3d6.js +5 -0
  385. package/dist/revo-grid/key.utils-4586a3d6.js.map +1 -0
  386. package/dist/revo-grid/resize-observer-83c9e167.js +5 -0
  387. package/dist/revo-grid/resize-observer-83c9e167.js.map +1 -0
  388. package/dist/revo-grid/revo-grid.entry.js +5 -0
  389. package/dist/revo-grid/revo-grid.entry.js.map +1 -0
  390. package/dist/revo-grid/revo-grid.esm.js +5 -1
  391. package/dist/revo-grid/revo-grid.esm.js.map +1 -0
  392. package/dist/revo-grid/revogr-attribution_6.entry.js +5 -0
  393. package/dist/revo-grid/revogr-attribution_6.entry.js.map +1 -0
  394. package/dist/revo-grid/revogr-clipboard_3.entry.js +5 -0
  395. package/dist/revo-grid/revogr-clipboard_3.entry.js.map +1 -0
  396. package/dist/revo-grid/revogr-data_4.entry.js +5 -0
  397. package/dist/revo-grid/revogr-data_4.entry.js.map +1 -0
  398. package/dist/revo-grid/revogr-filter-panel.entry.js +5 -1
  399. package/dist/revo-grid/revogr-filter-panel.entry.js.map +1 -0
  400. package/dist/revo-grid/selection.store-2577ddf9.js +5 -0
  401. package/dist/revo-grid/selection.store-2577ddf9.js.map +1 -0
  402. package/dist/revo-grid/storeTypes-f2647985.js +5 -0
  403. package/dist/revo-grid/storeTypes-f2647985.js.map +1 -0
  404. package/dist/revo-grid/throttle-cfd527d6.js +5 -0
  405. package/dist/revo-grid/throttle-cfd527d6.js.map +1 -0
  406. package/dist/revo-grid/toNumber-8de324a7.js +5 -0
  407. package/dist/revo-grid/toNumber-8de324a7.js.map +1 -0
  408. package/dist/revo-grid/viewport.helpers-6591d423.js +5 -0
  409. package/dist/revo-grid/viewport.helpers-6591d423.js.map +1 -0
  410. package/dist/types/components/attribution/revogr-attribution.d.ts +12 -0
  411. package/dist/types/components/clipboard/revogr-clipboard.d.ts +78 -10
  412. package/dist/types/components/data/cell-renderer.d.ts +14 -0
  413. package/dist/types/components/data/column.service.d.ts +60 -0
  414. package/dist/types/components/data/revogr-data.d.ts +101 -27
  415. package/dist/types/components/data/row-highlight.plugin.d.ts +10 -0
  416. package/dist/types/components/data/{rowRenderer.d.ts → row-renderer.d.ts} +6 -5
  417. package/dist/types/components/editors/revogr-edit.d.ts +63 -0
  418. package/dist/types/components/editors/text-editor.d.ts +46 -0
  419. package/dist/types/components/header/header-cell-renderer.d.ts +11 -0
  420. package/dist/types/components/header/header-renderer.d.ts +17 -0
  421. package/dist/types/components/header/revogr-header.d.ts +70 -22
  422. package/dist/types/components/order/order-renderer.d.ts +29 -0
  423. package/dist/types/components/order/order-row.service.d.ts +28 -0
  424. package/dist/types/components/order/revogr-order-editor.d.ts +43 -41
  425. package/dist/types/components/overlay/autofill.service.d.ts +69 -54
  426. package/dist/types/components/overlay/keyboard.service.d.ts +24 -23
  427. package/dist/types/components/overlay/revogr-overlay-selection.d.ts +216 -75
  428. package/dist/types/components/overlay/selection.utils.d.ts +24 -27
  429. package/dist/types/components/revoGrid/grid.helpers.d.ts +16 -11
  430. package/dist/types/components/revoGrid/revo-grid.d.ts +555 -403
  431. package/dist/types/components/revoGrid/viewport.helpers.d.ts +4 -3
  432. package/dist/types/components/revoGrid/viewport.resize.service.d.ts +7 -7
  433. package/dist/types/components/revoGrid/viewport.scrolling.service.d.ts +20 -21
  434. package/dist/types/components/revoGrid/viewport.service.d.ts +54 -56
  435. package/dist/types/components/rowHeaders/revogr-row-headers.d.ts +45 -12
  436. package/dist/types/components/rowHeaders/row-header-render.d.ts +5 -5
  437. package/dist/types/components/scroll/revogr-viewport-scroll.d.ts +115 -76
  438. package/dist/types/components/scrollable/autohide-scroll.plugin.d.ts +22 -0
  439. package/dist/types/components/scrollable/revogr-scroll-virtual.d.ts +39 -22
  440. package/dist/types/components/selectionFocus/revogr-focus.d.ts +61 -9
  441. package/dist/types/components/selectionTempRange/revogr-temp-range.d.ts +26 -11
  442. package/dist/types/components/vnode/vnode-converter.d.ts +19 -0
  443. package/dist/types/components/vnode/vnode.utils.d.ts +8 -0
  444. package/dist/types/components.d.ts +1595 -274
  445. package/dist/types/index.d.ts +14 -0
  446. package/dist/types/plugins/base.plugin.d.ts +49 -0
  447. package/dist/types/plugins/column.auto-size.plugin.d.ts +47 -0
  448. package/dist/types/plugins/column.stretch.plugin.d.ts +22 -0
  449. package/dist/types/plugins/dispatcher.d.ts +16 -0
  450. package/dist/types/plugins/export/csv.d.ts +6 -6
  451. package/dist/types/plugins/export/export.plugin.d.ts +18 -18
  452. package/dist/types/plugins/export/types.d.ts +15 -15
  453. package/dist/types/plugins/filter/filter.button.d.ts +7 -3
  454. package/dist/types/plugins/filter/filter.plugin.d.ts +61 -43
  455. package/dist/types/plugins/filter/filter.pop.d.ts +60 -35
  456. package/dist/types/plugins/filter/filter.service.d.ts +15 -15
  457. package/dist/types/plugins/filter/filter.types.d.ts +7 -7
  458. package/dist/types/plugins/groupingColumn/columnGroupsRenderer.d.ts +16 -13
  459. package/dist/types/plugins/groupingColumn/grouping.col.plugin.d.ts +10 -6
  460. package/dist/types/plugins/groupingColumn/headerGroupRenderer.d.ts +12 -10
  461. package/dist/types/plugins/groupingRow/grouping.const.d.ts +8 -7
  462. package/dist/types/plugins/groupingRow/grouping.row.expand.service.d.ts +6 -6
  463. package/dist/types/plugins/groupingRow/grouping.row.plugin.d.ts +32 -37
  464. package/dist/types/plugins/groupingRow/grouping.row.renderer.d.ts +7 -5
  465. package/dist/types/plugins/groupingRow/grouping.row.types.d.ts +23 -15
  466. package/dist/types/plugins/groupingRow/grouping.service.d.ts +18 -16
  467. package/dist/types/plugins/groupingRow/grouping.trimmed.service.d.ts +1 -1
  468. package/dist/types/plugins/moveColumn/column.drag.plugin.d.ts +56 -0
  469. package/dist/types/plugins/moveColumn/order-column.handler.d.ts +16 -0
  470. package/dist/types/plugins/sorting/sorting.plugin.d.ts +40 -27
  471. package/dist/types/plugins/sorting/sorting.sign.d.ts +3 -3
  472. package/dist/types/services/cell.helpers.d.ts +2 -2
  473. package/dist/types/services/column.data.provider.d.ts +33 -35
  474. package/dist/types/services/data.provider.d.ts +27 -21
  475. package/dist/types/services/dimension.provider.d.ts +52 -32
  476. package/dist/types/services/local.scroll.service.d.ts +37 -0
  477. package/dist/types/services/local.scroll.timer.d.ts +26 -0
  478. package/dist/types/services/resizable.directive.d.ts +52 -51
  479. package/dist/types/services/resizable.element.d.ts +4 -0
  480. package/dist/types/services/selection.store.connector.d.ts +54 -36
  481. package/dist/types/services/viewport.provider.d.ts +6 -8
  482. package/dist/types/stencil-public-runtime.d.ts +331 -217
  483. package/dist/types/store/dataSource/data.proxy.d.ts +3 -3
  484. package/dist/types/store/dataSource/data.store.d.ts +45 -46
  485. package/dist/types/store/dataSource/index.d.ts +3 -0
  486. package/dist/types/store/dataSource/trimmed.plugin.d.ts +10 -0
  487. package/dist/types/store/dimension/dimension.helpers.d.ts +24 -9
  488. package/dist/types/store/dimension/dimension.store.d.ts +29 -11
  489. package/dist/types/store/dimension/index.d.ts +2 -0
  490. package/dist/types/store/selection/index.d.ts +3 -0
  491. package/dist/types/store/selection/selection.helpers.d.ts +1 -3
  492. package/dist/types/store/selection/selection.store.d.ts +19 -17
  493. package/dist/types/store/selection/selection.store.service.d.ts +12 -13
  494. package/dist/types/store/storeTypes.d.ts +4 -4
  495. package/dist/types/store/viewport/index.d.ts +2 -0
  496. package/dist/types/store/viewport/viewport.helpers.d.ts +54 -0
  497. package/dist/types/store/viewport/viewport.store.d.ts +36 -0
  498. package/dist/types/themeManager/theme.compact.d.ts +3 -3
  499. package/dist/types/themeManager/theme.default.d.ts +3 -3
  500. package/dist/types/themeManager/theme.material.d.ts +3 -3
  501. package/dist/types/themeManager/theme.service.d.ts +13 -0
  502. package/dist/types/types/dimension.d.ts +8 -0
  503. package/dist/types/types/interfaces.d.ts +243 -0
  504. package/dist/types/types/plugin.d.ts +9 -0
  505. package/dist/types/types/plugin.types.d.ts +12 -0
  506. package/dist/types/types/selection.d.ts +115 -0
  507. package/dist/types/types/theme.d.ts +7 -0
  508. package/dist/types/types/viewport.interfaces.d.ts +51 -0
  509. package/dist/types/utils/browser.d.ts +1 -0
  510. package/dist/types/utils/consts.d.ts +5 -1
  511. package/dist/types/utils/events.d.ts +2 -0
  512. package/dist/types/utils/{utils.d.ts → index.d.ts} +17 -1
  513. package/dist/types/utils/key.codes.d.ts +70 -0
  514. package/dist/types/utils/{keyCodes.utils.d.ts → key.utils.d.ts} +5 -1
  515. package/dist/types/utils/mobile.d.ts +1 -0
  516. package/dist/types/utils/platform.d.ts +1 -1
  517. package/dist/types/utils/row-header-utils.d.ts +2 -0
  518. package/dist/types/utils/store.utils.d.ts +2 -2
  519. package/hydrate/index.d.ts +218 -0
  520. package/hydrate/index.js +32381 -0
  521. package/hydrate/package.json +6 -0
  522. package/package.json +94 -52
  523. package/readme.md +135 -98
  524. package/standalone/_baseIteratee.js +1237 -0
  525. package/standalone/_baseIteratee.js.map +1 -0
  526. package/standalone/_stringToPath.js +1389 -0
  527. package/standalone/_stringToPath.js.map +1 -0
  528. package/standalone/column.service.js +889 -0
  529. package/standalone/column.service.js.map +1 -0
  530. package/standalone/consts.js +30 -0
  531. package/standalone/consts.js.map +1 -0
  532. package/standalone/data.store.js +705 -0
  533. package/standalone/data.store.js.map +1 -0
  534. package/standalone/debounce.js +225 -0
  535. package/standalone/debounce.js.map +1 -0
  536. package/standalone/dimension.helpers.js +355 -0
  537. package/standalone/dimension.helpers.js.map +1 -0
  538. package/standalone/each.js +200 -0
  539. package/standalone/each.js.map +1 -0
  540. package/standalone/filter.button.js +38 -0
  541. package/standalone/filter.button.js.map +1 -0
  542. package/standalone/identity.js +349 -0
  543. package/standalone/identity.js.map +1 -0
  544. package/standalone/index.d.ts +66 -0
  545. package/standalone/index.js +42 -0
  546. package/standalone/index.js.map +1 -0
  547. package/standalone/index2.js +55 -0
  548. package/standalone/index2.js.map +1 -0
  549. package/standalone/isObjectLike.js +195 -0
  550. package/standalone/isObjectLike.js.map +1 -0
  551. package/standalone/local.scroll.timer.js +163 -0
  552. package/standalone/local.scroll.timer.js.map +1 -0
  553. package/{custom-element → standalone}/resize-observer.js +30 -14
  554. package/standalone/resize-observer.js.map +1 -0
  555. package/standalone/revo-grid.d.ts +11 -0
  556. package/standalone/revo-grid.js +4252 -0
  557. package/standalone/revo-grid.js.map +1 -0
  558. package/standalone/revogr-attribution.d.ts +11 -0
  559. package/standalone/revogr-attribution.js +11 -0
  560. package/standalone/revogr-attribution.js.map +1 -0
  561. package/standalone/revogr-attribution2.js +31 -0
  562. package/standalone/revogr-attribution2.js.map +1 -0
  563. package/standalone/revogr-clipboard.d.ts +11 -0
  564. package/standalone/revogr-clipboard.js +11 -0
  565. package/standalone/revogr-clipboard.js.map +1 -0
  566. package/standalone/revogr-clipboard2.js +159 -0
  567. package/standalone/revogr-clipboard2.js.map +1 -0
  568. package/standalone/revogr-data.d.ts +11 -0
  569. package/standalone/revogr-data.js +11 -0
  570. package/standalone/revogr-data.js.map +1 -0
  571. package/standalone/revogr-data2.js +368 -0
  572. package/standalone/revogr-data2.js.map +1 -0
  573. package/standalone/revogr-edit.d.ts +11 -0
  574. package/standalone/revogr-edit.js +11 -0
  575. package/standalone/revogr-edit.js.map +1 -0
  576. package/standalone/revogr-edit2.js +335 -0
  577. package/standalone/revogr-edit2.js.map +1 -0
  578. package/standalone/revogr-filter-panel.d.ts +11 -0
  579. package/standalone/revogr-filter-panel.js +310 -0
  580. package/standalone/revogr-filter-panel.js.map +1 -0
  581. package/standalone/revogr-focus.d.ts +11 -0
  582. package/standalone/revogr-focus.js +11 -0
  583. package/standalone/revogr-focus.js.map +1 -0
  584. package/standalone/revogr-focus2.js +106 -0
  585. package/standalone/revogr-focus2.js.map +1 -0
  586. package/standalone/revogr-header.d.ts +11 -0
  587. package/standalone/revogr-header.js +11 -0
  588. package/standalone/revogr-header.js.map +1 -0
  589. package/standalone/revogr-header2.js +667 -0
  590. package/standalone/revogr-header2.js.map +1 -0
  591. package/standalone/revogr-order-editor.d.ts +11 -0
  592. package/standalone/revogr-order-editor.js +11 -0
  593. package/standalone/revogr-order-editor.js.map +1 -0
  594. package/standalone/revogr-order-editor2.js +199 -0
  595. package/standalone/revogr-order-editor2.js.map +1 -0
  596. package/standalone/revogr-overlay-selection.d.ts +11 -0
  597. package/standalone/revogr-overlay-selection.js +11 -0
  598. package/standalone/revogr-overlay-selection.js.map +1 -0
  599. package/standalone/revogr-overlay-selection2.js +876 -0
  600. package/standalone/revogr-overlay-selection2.js.map +1 -0
  601. package/standalone/revogr-row-headers.d.ts +11 -0
  602. package/standalone/revogr-row-headers.js +11 -0
  603. package/standalone/revogr-row-headers.js.map +1 -0
  604. package/standalone/revogr-row-headers2.js +555 -0
  605. package/standalone/revogr-row-headers2.js.map +1 -0
  606. package/standalone/revogr-scroll-virtual.d.ts +11 -0
  607. package/standalone/revogr-scroll-virtual.js +11 -0
  608. package/standalone/revogr-scroll-virtual.js.map +1 -0
  609. package/standalone/revogr-scroll-virtual2.js +187 -0
  610. package/standalone/revogr-scroll-virtual2.js.map +1 -0
  611. package/standalone/revogr-temp-range.d.ts +11 -0
  612. package/standalone/revogr-temp-range.js +11 -0
  613. package/standalone/revogr-temp-range.js.map +1 -0
  614. package/standalone/revogr-temp-range2.js +90 -0
  615. package/standalone/revogr-temp-range2.js.map +1 -0
  616. package/standalone/revogr-viewport-scroll.d.ts +11 -0
  617. package/standalone/revogr-viewport-scroll.js +11 -0
  618. package/standalone/revogr-viewport-scroll.js.map +1 -0
  619. package/standalone/revogr-viewport-scroll2.js +336 -0
  620. package/standalone/revogr-viewport-scroll2.js.map +1 -0
  621. package/standalone/selection.utils.js +108 -0
  622. package/standalone/selection.utils.js.map +1 -0
  623. package/standalone/throttle.js +79 -0
  624. package/standalone/throttle.js.map +1 -0
  625. package/standalone/toNumber.js +144 -0
  626. package/standalone/toNumber.js.map +1 -0
  627. package/standalone/vnode-converter.js +45 -0
  628. package/standalone/vnode-converter.js.map +1 -0
  629. package/standalone/vnode-html.d.ts +11 -0
  630. package/standalone/vnode-html.js +11 -0
  631. package/standalone/vnode-html.js.map +1 -0
  632. package/custom-element/index.d.ts +0 -117
  633. package/custom-element/index.js +0 -28857
  634. package/dist/cjs/css-shim-e33df79c.js +0 -6
  635. package/dist/cjs/dom-c8b6d1a7.js +0 -75
  636. package/dist/cjs/filter.button-2396a488.js +0 -27
  637. package/dist/cjs/index-d3f67f2e.js +0 -1729
  638. package/dist/cjs/revo-grid_11.cjs.entry.js +0 -28621
  639. package/dist/cjs/revogr-clipboard.cjs.entry.js +0 -53
  640. package/dist/collection/components/button/button.js +0 -4
  641. package/dist/collection/components/data/cellRenderer.js +0 -19
  642. package/dist/collection/components/data/columnService.js +0 -243
  643. package/dist/collection/components/data/rowRenderer.js +0 -6
  644. package/dist/collection/components/header/headerCellRenderer.js +0 -19
  645. package/dist/collection/components/header/headerRenderer.js +0 -45
  646. package/dist/collection/components/order/orderRenderer.js +0 -50
  647. package/dist/collection/components/order/rowOrderService.js +0 -68
  648. package/dist/collection/components/overlay/clipboard.service.js +0 -39
  649. package/dist/collection/components/overlay/editors/edit.utils.js +0 -5
  650. package/dist/collection/components/overlay/editors/text.js +0 -35
  651. package/dist/collection/components/overlay/revogr-edit.js +0 -163
  652. package/dist/collection/components/revoGrid/viewport.interfaces.js +0 -1
  653. package/dist/collection/components/revoGrid/viewport.js +0 -18
  654. package/dist/collection/components/revoGrid/viewport.section.js +0 -28
  655. package/dist/collection/components/rowHeaders/row-header-utils.js +0 -4
  656. package/dist/collection/plugins/autoSizeColumn.d.ts +0 -54
  657. package/dist/collection/plugins/autoSizeColumn.js +0 -230
  658. package/dist/collection/plugins/basePlugin.d.ts +0 -37
  659. package/dist/collection/plugins/basePlugin.js +0 -53
  660. package/dist/collection/plugins/export/csv.d.ts +0 -9
  661. package/dist/collection/plugins/export/export.plugin.d.ts +0 -24
  662. package/dist/collection/plugins/export/types.d.ts +0 -23
  663. package/dist/collection/plugins/filter/conditions/equal.d.ts +0 -4
  664. package/dist/collection/plugins/filter/conditions/number/greaterThan.d.ts +0 -3
  665. package/dist/collection/plugins/filter/conditions/number/greaterThanOrEqual.d.ts +0 -3
  666. package/dist/collection/plugins/filter/conditions/number/lessThan.d.ts +0 -3
  667. package/dist/collection/plugins/filter/conditions/number/lessThanOrEqual.d.ts +0 -3
  668. package/dist/collection/plugins/filter/conditions/set.d.ts +0 -4
  669. package/dist/collection/plugins/filter/conditions/string/beginswith.d.ts +0 -3
  670. package/dist/collection/plugins/filter/conditions/string/contains.d.ts +0 -4
  671. package/dist/collection/plugins/filter/filter.button.d.ts +0 -10
  672. package/dist/collection/plugins/filter/filter.plugin.d.ts +0 -59
  673. package/dist/collection/plugins/filter/filter.pop.d.ts +0 -42
  674. package/dist/collection/plugins/filter/filter.service.d.ts +0 -20
  675. package/dist/collection/plugins/filter/filter.types.d.ts +0 -8
  676. package/dist/collection/plugins/groupingColumn/columnGroupsRenderer.d.ts +0 -16
  677. package/dist/collection/plugins/groupingColumn/grouping.col.plugin.d.ts +0 -13
  678. package/dist/collection/plugins/groupingColumn/headerGroupRenderer.d.ts +0 -14
  679. package/dist/collection/plugins/groupingRow/grouping.const.d.ts +0 -9
  680. package/dist/collection/plugins/groupingRow/grouping.row.expand.service.d.ts +0 -15
  681. package/dist/collection/plugins/groupingRow/grouping.row.plugin.d.ts +0 -40
  682. package/dist/collection/plugins/groupingRow/grouping.row.renderer.d.ts +0 -9
  683. package/dist/collection/plugins/groupingRow/grouping.row.types.d.ts +0 -19
  684. package/dist/collection/plugins/groupingRow/grouping.service.d.ts +0 -25
  685. package/dist/collection/plugins/groupingRow/grouping.trimmed.service.d.ts +0 -10
  686. package/dist/collection/plugins/sorting/sorting.plugin.d.ts +0 -32
  687. package/dist/collection/plugins/sorting/sorting.sign.d.ts +0 -8
  688. package/dist/collection/plugins/stretchPlugin.d.ts +0 -29
  689. package/dist/collection/plugins/stretchPlugin.js +0 -90
  690. package/dist/collection/plugins/trimmed/trimmed.plugin.d.ts +0 -10
  691. package/dist/collection/plugins/trimmed/trimmed.plugin.js +0 -32
  692. package/dist/collection/services/localScrollService.js +0 -80
  693. package/dist/collection/store/viewPort/viewport.helpers.js +0 -180
  694. package/dist/collection/store/viewPort/viewport.store.js +0 -121
  695. package/dist/collection/themeManager/themeService.js +0 -43
  696. package/dist/collection/utils/closestPolifill.js +0 -18
  697. package/dist/collection/utils/generateAlphabetHeader.js +0 -20
  698. package/dist/collection/utils/keyCodes.js +0 -70
  699. package/dist/collection/utils/keyCodes.utils.js +0 -64
  700. package/dist/collection/utils/resizeObserver.js +0 -6
  701. package/dist/collection/utils/utils.js +0 -104
  702. package/dist/esm/css-shim-8d75038b.js +0 -4
  703. package/dist/esm/dom-1b195079.js +0 -73
  704. package/dist/esm/filter.button-53ebca66.js +0 -23
  705. package/dist/esm/index-42c84e7c.js +0 -1694
  706. package/dist/esm/polyfills/core-js.js +0 -11
  707. package/dist/esm/polyfills/css-shim.js +0 -1
  708. package/dist/esm/polyfills/dom.js +0 -79
  709. package/dist/esm/polyfills/index.js +0 -34
  710. package/dist/esm/polyfills/system.js +0 -6
  711. package/dist/esm/revo-grid_11.entry.js +0 -28607
  712. package/dist/esm/revogr-clipboard.entry.js +0 -49
  713. package/dist/esm-es5/css-shim-8d75038b.js +0 -1
  714. package/dist/esm-es5/dom-1b195079.js +0 -21
  715. package/dist/esm-es5/filter.button-53ebca66.js +0 -1
  716. package/dist/esm-es5/index-42c84e7c.js +0 -1
  717. package/dist/esm-es5/loader.js +0 -1
  718. package/dist/esm-es5/resize-observer-56b7b34f.js +0 -1
  719. package/dist/esm-es5/revo-grid.js +0 -1
  720. package/dist/esm-es5/revo-grid_11.entry.js +0 -1
  721. package/dist/esm-es5/revogr-clipboard.entry.js +0 -1
  722. package/dist/esm-es5/revogr-filter-panel.entry.js +0 -1
  723. package/dist/revo-grid/css-shim-88bfb262.system.js +0 -1
  724. package/dist/revo-grid/css-shim-8d75038b.js +0 -1
  725. package/dist/revo-grid/dom-1b195079.js +0 -19
  726. package/dist/revo-grid/dom-ee2dd1b3.system.js +0 -21
  727. package/dist/revo-grid/filter.button-1509c206.js +0 -1
  728. package/dist/revo-grid/filter.button-4bd87101.system.js +0 -1
  729. package/dist/revo-grid/index-a15e7527.system.js +0 -1
  730. package/dist/revo-grid/index-a7f99799.js +0 -1
  731. package/dist/revo-grid/index.system.js +0 -1
  732. package/dist/revo-grid/plugins/autoSizeColumn.d.ts +0 -54
  733. package/dist/revo-grid/plugins/basePlugin.d.ts +0 -37
  734. package/dist/revo-grid/plugins/export/csv.d.ts +0 -9
  735. package/dist/revo-grid/plugins/export/export.plugin.d.ts +0 -24
  736. package/dist/revo-grid/plugins/export/types.d.ts +0 -23
  737. package/dist/revo-grid/plugins/filter/conditions/equal.d.ts +0 -4
  738. package/dist/revo-grid/plugins/filter/conditions/number/greaterThan.d.ts +0 -3
  739. package/dist/revo-grid/plugins/filter/conditions/number/greaterThanOrEqual.d.ts +0 -3
  740. package/dist/revo-grid/plugins/filter/conditions/number/lessThan.d.ts +0 -3
  741. package/dist/revo-grid/plugins/filter/conditions/number/lessThanOrEqual.d.ts +0 -3
  742. package/dist/revo-grid/plugins/filter/conditions/set.d.ts +0 -4
  743. package/dist/revo-grid/plugins/filter/conditions/string/beginswith.d.ts +0 -3
  744. package/dist/revo-grid/plugins/filter/conditions/string/contains.d.ts +0 -4
  745. package/dist/revo-grid/plugins/filter/filter.button.d.ts +0 -10
  746. package/dist/revo-grid/plugins/filter/filter.plugin.d.ts +0 -59
  747. package/dist/revo-grid/plugins/filter/filter.pop.d.ts +0 -42
  748. package/dist/revo-grid/plugins/filter/filter.service.d.ts +0 -20
  749. package/dist/revo-grid/plugins/filter/filter.types.d.ts +0 -8
  750. package/dist/revo-grid/plugins/groupingColumn/columnGroupsRenderer.d.ts +0 -16
  751. package/dist/revo-grid/plugins/groupingColumn/grouping.col.plugin.d.ts +0 -13
  752. package/dist/revo-grid/plugins/groupingColumn/headerGroupRenderer.d.ts +0 -14
  753. package/dist/revo-grid/plugins/groupingRow/grouping.const.d.ts +0 -9
  754. package/dist/revo-grid/plugins/groupingRow/grouping.row.expand.service.d.ts +0 -15
  755. package/dist/revo-grid/plugins/groupingRow/grouping.row.plugin.d.ts +0 -40
  756. package/dist/revo-grid/plugins/groupingRow/grouping.row.renderer.d.ts +0 -9
  757. package/dist/revo-grid/plugins/groupingRow/grouping.row.types.d.ts +0 -19
  758. package/dist/revo-grid/plugins/groupingRow/grouping.service.d.ts +0 -25
  759. package/dist/revo-grid/plugins/groupingRow/grouping.trimmed.service.d.ts +0 -10
  760. package/dist/revo-grid/plugins/sorting/sorting.plugin.d.ts +0 -32
  761. package/dist/revo-grid/plugins/sorting/sorting.sign.d.ts +0 -8
  762. package/dist/revo-grid/plugins/stretchPlugin.d.ts +0 -29
  763. package/dist/revo-grid/plugins/trimmed/trimmed.plugin.d.ts +0 -10
  764. package/dist/revo-grid/resize-observer-56b7b34f.js +0 -1
  765. package/dist/revo-grid/resize-observer-7a7b9757.system.js +0 -1
  766. package/dist/revo-grid/revo-grid.js +0 -132
  767. package/dist/revo-grid/revo-grid.system.js +0 -1
  768. package/dist/revo-grid/revo-grid_11.entry.js +0 -1
  769. package/dist/revo-grid/revo-grid_11.system.entry.js +0 -1
  770. package/dist/revo-grid/revogr-clipboard.entry.js +0 -1
  771. package/dist/revo-grid/revogr-clipboard.system.entry.js +0 -1
  772. package/dist/revo-grid/revogr-filter-panel.system.entry.js +0 -1
  773. package/dist/types/components/button/button.d.ts +0 -5
  774. package/dist/types/components/data/cellRenderer.d.ts +0 -8
  775. package/dist/types/components/data/columnService.d.ts +0 -42
  776. package/dist/types/components/header/headerCellRenderer.d.ts +0 -8
  777. package/dist/types/components/header/headerRenderer.d.ts +0 -15
  778. package/dist/types/components/order/orderRenderer.d.ts +0 -28
  779. package/dist/types/components/order/rowOrderService.d.ts +0 -27
  780. package/dist/types/components/overlay/clipboard.service.d.ts +0 -20
  781. package/dist/types/components/overlay/editors/text.d.ts +0 -13
  782. package/dist/types/components/overlay/revogr-edit.d.ts +0 -19
  783. package/dist/types/components/revoGrid/viewport.d.ts +0 -19
  784. package/dist/types/components/revoGrid/viewport.interfaces.d.ts +0 -66
  785. package/dist/types/components/revoGrid/viewport.section.d.ts +0 -24
  786. package/dist/types/components/rowHeaders/row-header-utils.d.ts +0 -2
  787. package/dist/types/interfaces.d.ts +0 -437
  788. package/dist/types/plugins/autoSizeColumn.d.ts +0 -54
  789. package/dist/types/plugins/basePlugin.d.ts +0 -37
  790. package/dist/types/plugins/stretchPlugin.d.ts +0 -29
  791. package/dist/types/plugins/trimmed/trimmed.plugin.d.ts +0 -10
  792. package/dist/types/services/localScrollService.d.ts +0 -28
  793. package/dist/types/store/viewPort/viewport.helpers.d.ts +0 -30
  794. package/dist/types/store/viewPort/viewport.store.d.ts +0 -18
  795. package/dist/types/themeManager/themeService.d.ts +0 -13
  796. package/dist/types/utils/closestPolifill.d.ts +0 -0
  797. package/dist/types/utils/keyCodes.d.ts +0 -68
  798. package/loader/cdn.js +0 -3
  799. package/loader/index.cjs.js +0 -3
  800. package/loader/index.es2017.js +0 -3
  801. package/loader/index.js +0 -4
  802. /package/dist/types/components/{overlay/editors → editors}/edit.utils.d.ts +0 -0
  803. /package/dist/{esm-es5/index.js → types/utils/closest.polifill.d.ts} +0 -0
  804. /package/dist/types/utils/{generateAlphabetHeader.d.ts → header.utils.d.ts} +0 -0
  805. /package/dist/types/utils/{resizeObserver.d.ts → resize-observer.polifill.d.ts} +0 -0
@@ -0,0 +1,4185 @@
1
+ /*!
2
+ * Built by Revolist OU ❤️
3
+ */
4
+ import { g as getRenderingRef, f as forceUpdate } from './index-21436631.js';
5
+ import { _ as _baseGetTag, i as isObject_1, a as _root, b as _Symbol, c as isObjectLike_1, d as _freeGlobal, e as isSymbol_1, t as toNumber_1 } from './toNumber-8de324a7.js';
6
+
7
+ /**
8
+ * All items
9
+ * Used as proxy for sorting
10
+ * Keep order but do not modify final source
11
+ */
12
+ const proxyPlugin = (store) => ({
13
+ set(k, newVal) {
14
+ if (!isProxy(k)) {
15
+ return;
16
+ }
17
+ /**
18
+ * Getting existing collection of items
19
+ * Mark indexes as visible
20
+ */
21
+ const oldItems = store.get('items').reduce((r, v) => {
22
+ r[v] = true;
23
+ return r;
24
+ }, {});
25
+ /**
26
+ * Check if new values where present in items
27
+ * Filter item collection according presense
28
+ */
29
+ const newItems = newVal.reduce((r, i) => {
30
+ if (oldItems[i]) {
31
+ r.push(i);
32
+ }
33
+ return r;
34
+ }, []);
35
+ store.set('items', newItems);
36
+ },
37
+ });
38
+ function isProxy(k) {
39
+ return k === 'proxyItems';
40
+ }
41
+
42
+ const appendToMap = (map, propName, value) => {
43
+ const items = map.get(propName);
44
+ if (!items) {
45
+ map.set(propName, [value]);
46
+ }
47
+ else if (!items.includes(value)) {
48
+ items.push(value);
49
+ }
50
+ };
51
+ const debounce = (fn, ms) => {
52
+ let timeoutId;
53
+ return (...args) => {
54
+ if (timeoutId) {
55
+ clearTimeout(timeoutId);
56
+ }
57
+ timeoutId = setTimeout(() => {
58
+ timeoutId = 0;
59
+ fn(...args);
60
+ }, ms);
61
+ };
62
+ };
63
+
64
+ /**
65
+ * Check if a possible element isConnected.
66
+ * The property might not be there, so we check for it.
67
+ *
68
+ * We want it to return true if isConnected is not a property,
69
+ * otherwise we would remove these elements and would not update.
70
+ *
71
+ * Better leak in Edge than to be useless.
72
+ */
73
+ const isConnected = (maybeElement) => !('isConnected' in maybeElement) || maybeElement.isConnected;
74
+ const cleanupElements = debounce((map) => {
75
+ for (let key of map.keys()) {
76
+ map.set(key, map.get(key).filter(isConnected));
77
+ }
78
+ }, 2000);
79
+ const stencilSubscription = () => {
80
+ if (typeof getRenderingRef !== 'function') {
81
+ // If we are not in a stencil project, we do nothing.
82
+ // This function is not really exported by @stencil/core.
83
+ return {};
84
+ }
85
+ const elmsToUpdate = new Map();
86
+ return {
87
+ dispose: () => elmsToUpdate.clear(),
88
+ get: (propName) => {
89
+ const elm = getRenderingRef();
90
+ if (elm) {
91
+ appendToMap(elmsToUpdate, propName, elm);
92
+ }
93
+ },
94
+ set: (propName) => {
95
+ const elements = elmsToUpdate.get(propName);
96
+ if (elements) {
97
+ elmsToUpdate.set(propName, elements.filter(forceUpdate));
98
+ }
99
+ cleanupElements(elmsToUpdate);
100
+ },
101
+ reset: () => {
102
+ elmsToUpdate.forEach((elms) => elms.forEach(forceUpdate));
103
+ cleanupElements(elmsToUpdate);
104
+ },
105
+ };
106
+ };
107
+
108
+ const unwrap = (val) => (typeof val === 'function' ? val() : val);
109
+ const createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) => {
110
+ const unwrappedState = unwrap(defaultState);
111
+ let states = new Map(Object.entries(unwrappedState !== null && unwrappedState !== void 0 ? unwrappedState : {}));
112
+ const handlers = {
113
+ dispose: [],
114
+ get: [],
115
+ set: [],
116
+ reset: [],
117
+ };
118
+ const reset = () => {
119
+ var _a;
120
+ // When resetting the state, the default state may be a function - unwrap it to invoke it.
121
+ // otherwise, the state won't be properly reset
122
+ states = new Map(Object.entries((_a = unwrap(defaultState)) !== null && _a !== void 0 ? _a : {}));
123
+ handlers.reset.forEach((cb) => cb());
124
+ };
125
+ const dispose = () => {
126
+ // Call first dispose as resetting the state would
127
+ // cause less updates ;)
128
+ handlers.dispose.forEach((cb) => cb());
129
+ reset();
130
+ };
131
+ const get = (propName) => {
132
+ handlers.get.forEach((cb) => cb(propName));
133
+ return states.get(propName);
134
+ };
135
+ const set = (propName, value) => {
136
+ const oldValue = states.get(propName);
137
+ if (shouldUpdate(value, oldValue, propName)) {
138
+ states.set(propName, value);
139
+ handlers.set.forEach((cb) => cb(propName, value, oldValue));
140
+ }
141
+ };
142
+ const state = (typeof Proxy === 'undefined'
143
+ ? {}
144
+ : new Proxy(unwrappedState, {
145
+ get(_, propName) {
146
+ return get(propName);
147
+ },
148
+ ownKeys(_) {
149
+ return Array.from(states.keys());
150
+ },
151
+ getOwnPropertyDescriptor() {
152
+ return {
153
+ enumerable: true,
154
+ configurable: true,
155
+ };
156
+ },
157
+ has(_, propName) {
158
+ return states.has(propName);
159
+ },
160
+ set(_, propName, value) {
161
+ set(propName, value);
162
+ return true;
163
+ },
164
+ }));
165
+ const on = (eventName, callback) => {
166
+ handlers[eventName].push(callback);
167
+ return () => {
168
+ removeFromArray(handlers[eventName], callback);
169
+ };
170
+ };
171
+ const onChange = (propName, cb) => {
172
+ const unSet = on('set', (key, newValue) => {
173
+ if (key === propName) {
174
+ cb(newValue);
175
+ }
176
+ });
177
+ // We need to unwrap the defaultState because it might be a function.
178
+ // Otherwise we might not be sending the right reset value.
179
+ const unReset = on('reset', () => cb(unwrap(defaultState)[propName]));
180
+ return () => {
181
+ unSet();
182
+ unReset();
183
+ };
184
+ };
185
+ const use = (...subscriptions) => {
186
+ const unsubs = subscriptions.reduce((unsubs, subscription) => {
187
+ if (subscription.set) {
188
+ unsubs.push(on('set', subscription.set));
189
+ }
190
+ if (subscription.get) {
191
+ unsubs.push(on('get', subscription.get));
192
+ }
193
+ if (subscription.reset) {
194
+ unsubs.push(on('reset', subscription.reset));
195
+ }
196
+ if (subscription.dispose) {
197
+ unsubs.push(on('dispose', subscription.dispose));
198
+ }
199
+ return unsubs;
200
+ }, []);
201
+ return () => unsubs.forEach((unsub) => unsub());
202
+ };
203
+ const forceUpdate = (key) => {
204
+ const oldValue = states.get(key);
205
+ handlers.set.forEach((cb) => cb(key, oldValue, oldValue));
206
+ };
207
+ return {
208
+ state,
209
+ get,
210
+ set,
211
+ on,
212
+ onChange,
213
+ use,
214
+ dispose,
215
+ reset,
216
+ forceUpdate,
217
+ };
218
+ };
219
+ const removeFromArray = (array, item) => {
220
+ const index = array.indexOf(item);
221
+ if (index >= 0) {
222
+ array[index] = array[array.length - 1];
223
+ array.length--;
224
+ }
225
+ };
226
+
227
+ const createStore = (defaultState, shouldUpdate) => {
228
+ const map = createObservableMap(defaultState, shouldUpdate);
229
+ map.use(stencilSubscription());
230
+ return map;
231
+ };
232
+
233
+ /**
234
+ * The base implementation of `_.findIndex` and `_.findLastIndex` without
235
+ * support for iteratee shorthands.
236
+ *
237
+ * @private
238
+ * @param {Array} array The array to inspect.
239
+ * @param {Function} predicate The function invoked per iteration.
240
+ * @param {number} fromIndex The index to search from.
241
+ * @param {boolean} [fromRight] Specify iterating from right to left.
242
+ * @returns {number} Returns the index of the matched value, else `-1`.
243
+ */
244
+
245
+ function baseFindIndex$1(array, predicate, fromIndex, fromRight) {
246
+ var length = array.length,
247
+ index = fromIndex + (fromRight ? 1 : -1);
248
+
249
+ while ((fromRight ? index-- : ++index < length)) {
250
+ if (predicate(array[index], index, array)) {
251
+ return index;
252
+ }
253
+ }
254
+ return -1;
255
+ }
256
+
257
+ var _baseFindIndex = baseFindIndex$1;
258
+
259
+ /**
260
+ * Removes all key-value entries from the list cache.
261
+ *
262
+ * @private
263
+ * @name clear
264
+ * @memberOf ListCache
265
+ */
266
+
267
+ function listCacheClear$1() {
268
+ this.__data__ = [];
269
+ this.size = 0;
270
+ }
271
+
272
+ var _listCacheClear = listCacheClear$1;
273
+
274
+ /**
275
+ * Performs a
276
+ * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
277
+ * comparison between two values to determine if they are equivalent.
278
+ *
279
+ * @static
280
+ * @memberOf _
281
+ * @since 4.0.0
282
+ * @category Lang
283
+ * @param {*} value The value to compare.
284
+ * @param {*} other The other value to compare.
285
+ * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
286
+ * @example
287
+ *
288
+ * var object = { 'a': 1 };
289
+ * var other = { 'a': 1 };
290
+ *
291
+ * _.eq(object, object);
292
+ * // => true
293
+ *
294
+ * _.eq(object, other);
295
+ * // => false
296
+ *
297
+ * _.eq('a', 'a');
298
+ * // => true
299
+ *
300
+ * _.eq('a', Object('a'));
301
+ * // => false
302
+ *
303
+ * _.eq(NaN, NaN);
304
+ * // => true
305
+ */
306
+
307
+ function eq$3(value, other) {
308
+ return value === other || (value !== value && other !== other);
309
+ }
310
+
311
+ var eq_1 = eq$3;
312
+
313
+ var eq$2 = eq_1;
314
+
315
+ /**
316
+ * Gets the index at which the `key` is found in `array` of key-value pairs.
317
+ *
318
+ * @private
319
+ * @param {Array} array The array to inspect.
320
+ * @param {*} key The key to search for.
321
+ * @returns {number} Returns the index of the matched value, else `-1`.
322
+ */
323
+ function assocIndexOf$4(array, key) {
324
+ var length = array.length;
325
+ while (length--) {
326
+ if (eq$2(array[length][0], key)) {
327
+ return length;
328
+ }
329
+ }
330
+ return -1;
331
+ }
332
+
333
+ var _assocIndexOf = assocIndexOf$4;
334
+
335
+ var assocIndexOf$3 = _assocIndexOf;
336
+
337
+ /** Used for built-in method references. */
338
+ var arrayProto = Array.prototype;
339
+
340
+ /** Built-in value references. */
341
+ var splice = arrayProto.splice;
342
+
343
+ /**
344
+ * Removes `key` and its value from the list cache.
345
+ *
346
+ * @private
347
+ * @name delete
348
+ * @memberOf ListCache
349
+ * @param {string} key The key of the value to remove.
350
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
351
+ */
352
+ function listCacheDelete$1(key) {
353
+ var data = this.__data__,
354
+ index = assocIndexOf$3(data, key);
355
+
356
+ if (index < 0) {
357
+ return false;
358
+ }
359
+ var lastIndex = data.length - 1;
360
+ if (index == lastIndex) {
361
+ data.pop();
362
+ } else {
363
+ splice.call(data, index, 1);
364
+ }
365
+ --this.size;
366
+ return true;
367
+ }
368
+
369
+ var _listCacheDelete = listCacheDelete$1;
370
+
371
+ var assocIndexOf$2 = _assocIndexOf;
372
+
373
+ /**
374
+ * Gets the list cache value for `key`.
375
+ *
376
+ * @private
377
+ * @name get
378
+ * @memberOf ListCache
379
+ * @param {string} key The key of the value to get.
380
+ * @returns {*} Returns the entry value.
381
+ */
382
+ function listCacheGet$1(key) {
383
+ var data = this.__data__,
384
+ index = assocIndexOf$2(data, key);
385
+
386
+ return index < 0 ? undefined : data[index][1];
387
+ }
388
+
389
+ var _listCacheGet = listCacheGet$1;
390
+
391
+ var assocIndexOf$1 = _assocIndexOf;
392
+
393
+ /**
394
+ * Checks if a list cache value for `key` exists.
395
+ *
396
+ * @private
397
+ * @name has
398
+ * @memberOf ListCache
399
+ * @param {string} key The key of the entry to check.
400
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
401
+ */
402
+ function listCacheHas$1(key) {
403
+ return assocIndexOf$1(this.__data__, key) > -1;
404
+ }
405
+
406
+ var _listCacheHas = listCacheHas$1;
407
+
408
+ var assocIndexOf = _assocIndexOf;
409
+
410
+ /**
411
+ * Sets the list cache `key` to `value`.
412
+ *
413
+ * @private
414
+ * @name set
415
+ * @memberOf ListCache
416
+ * @param {string} key The key of the value to set.
417
+ * @param {*} value The value to set.
418
+ * @returns {Object} Returns the list cache instance.
419
+ */
420
+ function listCacheSet$1(key, value) {
421
+ var data = this.__data__,
422
+ index = assocIndexOf(data, key);
423
+
424
+ if (index < 0) {
425
+ ++this.size;
426
+ data.push([key, value]);
427
+ } else {
428
+ data[index][1] = value;
429
+ }
430
+ return this;
431
+ }
432
+
433
+ var _listCacheSet = listCacheSet$1;
434
+
435
+ var listCacheClear = _listCacheClear,
436
+ listCacheDelete = _listCacheDelete,
437
+ listCacheGet = _listCacheGet,
438
+ listCacheHas = _listCacheHas,
439
+ listCacheSet = _listCacheSet;
440
+
441
+ /**
442
+ * Creates an list cache object.
443
+ *
444
+ * @private
445
+ * @constructor
446
+ * @param {Array} [entries] The key-value pairs to cache.
447
+ */
448
+ function ListCache$4(entries) {
449
+ var index = -1,
450
+ length = entries == null ? 0 : entries.length;
451
+
452
+ this.clear();
453
+ while (++index < length) {
454
+ var entry = entries[index];
455
+ this.set(entry[0], entry[1]);
456
+ }
457
+ }
458
+
459
+ // Add methods to `ListCache`.
460
+ ListCache$4.prototype.clear = listCacheClear;
461
+ ListCache$4.prototype['delete'] = listCacheDelete;
462
+ ListCache$4.prototype.get = listCacheGet;
463
+ ListCache$4.prototype.has = listCacheHas;
464
+ ListCache$4.prototype.set = listCacheSet;
465
+
466
+ var _ListCache = ListCache$4;
467
+
468
+ var ListCache$3 = _ListCache;
469
+
470
+ /**
471
+ * Removes all key-value entries from the stack.
472
+ *
473
+ * @private
474
+ * @name clear
475
+ * @memberOf Stack
476
+ */
477
+ function stackClear$1() {
478
+ this.__data__ = new ListCache$3;
479
+ this.size = 0;
480
+ }
481
+
482
+ var _stackClear = stackClear$1;
483
+
484
+ /**
485
+ * Removes `key` and its value from the stack.
486
+ *
487
+ * @private
488
+ * @name delete
489
+ * @memberOf Stack
490
+ * @param {string} key The key of the value to remove.
491
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
492
+ */
493
+
494
+ function stackDelete$1(key) {
495
+ var data = this.__data__,
496
+ result = data['delete'](key);
497
+
498
+ this.size = data.size;
499
+ return result;
500
+ }
501
+
502
+ var _stackDelete = stackDelete$1;
503
+
504
+ /**
505
+ * Gets the stack value for `key`.
506
+ *
507
+ * @private
508
+ * @name get
509
+ * @memberOf Stack
510
+ * @param {string} key The key of the value to get.
511
+ * @returns {*} Returns the entry value.
512
+ */
513
+
514
+ function stackGet$1(key) {
515
+ return this.__data__.get(key);
516
+ }
517
+
518
+ var _stackGet = stackGet$1;
519
+
520
+ /**
521
+ * Checks if a stack value for `key` exists.
522
+ *
523
+ * @private
524
+ * @name has
525
+ * @memberOf Stack
526
+ * @param {string} key The key of the entry to check.
527
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
528
+ */
529
+
530
+ function stackHas$1(key) {
531
+ return this.__data__.has(key);
532
+ }
533
+
534
+ var _stackHas = stackHas$1;
535
+
536
+ var baseGetTag$3 = _baseGetTag,
537
+ isObject$3 = isObject_1;
538
+
539
+ /** `Object#toString` result references. */
540
+ var asyncTag = '[object AsyncFunction]',
541
+ funcTag$1 = '[object Function]',
542
+ genTag = '[object GeneratorFunction]',
543
+ proxyTag = '[object Proxy]';
544
+
545
+ /**
546
+ * Checks if `value` is classified as a `Function` object.
547
+ *
548
+ * @static
549
+ * @memberOf _
550
+ * @since 0.1.0
551
+ * @category Lang
552
+ * @param {*} value The value to check.
553
+ * @returns {boolean} Returns `true` if `value` is a function, else `false`.
554
+ * @example
555
+ *
556
+ * _.isFunction(_);
557
+ * // => true
558
+ *
559
+ * _.isFunction(/abc/);
560
+ * // => false
561
+ */
562
+ function isFunction$2(value) {
563
+ if (!isObject$3(value)) {
564
+ return false;
565
+ }
566
+ // The use of `Object#toString` avoids issues with the `typeof` operator
567
+ // in Safari 9 which returns 'object' for typed arrays and other constructors.
568
+ var tag = baseGetTag$3(value);
569
+ return tag == funcTag$1 || tag == genTag || tag == asyncTag || tag == proxyTag;
570
+ }
571
+
572
+ var isFunction_1 = isFunction$2;
573
+
574
+ var root$6 = _root;
575
+
576
+ /** Used to detect overreaching core-js shims. */
577
+ var coreJsData$1 = root$6['__core-js_shared__'];
578
+
579
+ var _coreJsData = coreJsData$1;
580
+
581
+ var coreJsData = _coreJsData;
582
+
583
+ /** Used to detect methods masquerading as native. */
584
+ var maskSrcKey = (function() {
585
+ var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
586
+ return uid ? ('Symbol(src)_1.' + uid) : '';
587
+ }());
588
+
589
+ /**
590
+ * Checks if `func` has its source masked.
591
+ *
592
+ * @private
593
+ * @param {Function} func The function to check.
594
+ * @returns {boolean} Returns `true` if `func` is masked, else `false`.
595
+ */
596
+ function isMasked$1(func) {
597
+ return !!maskSrcKey && (maskSrcKey in func);
598
+ }
599
+
600
+ var _isMasked = isMasked$1;
601
+
602
+ /** Used for built-in method references. */
603
+
604
+ var funcProto$1 = Function.prototype;
605
+
606
+ /** Used to resolve the decompiled source of functions. */
607
+ var funcToString$1 = funcProto$1.toString;
608
+
609
+ /**
610
+ * Converts `func` to its source code.
611
+ *
612
+ * @private
613
+ * @param {Function} func The function to convert.
614
+ * @returns {string} Returns the source code.
615
+ */
616
+ function toSource$2(func) {
617
+ if (func != null) {
618
+ try {
619
+ return funcToString$1.call(func);
620
+ } catch (e) {}
621
+ try {
622
+ return (func + '');
623
+ } catch (e) {}
624
+ }
625
+ return '';
626
+ }
627
+
628
+ var _toSource = toSource$2;
629
+
630
+ var isFunction$1 = isFunction_1,
631
+ isMasked = _isMasked,
632
+ isObject$2 = isObject_1,
633
+ toSource$1 = _toSource;
634
+
635
+ /**
636
+ * Used to match `RegExp`
637
+ * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
638
+ */
639
+ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
640
+
641
+ /** Used to detect host constructors (Safari). */
642
+ var reIsHostCtor = /^\[object .+?Constructor\]$/;
643
+
644
+ /** Used for built-in method references. */
645
+ var funcProto = Function.prototype,
646
+ objectProto$9 = Object.prototype;
647
+
648
+ /** Used to resolve the decompiled source of functions. */
649
+ var funcToString = funcProto.toString;
650
+
651
+ /** Used to check objects for own properties. */
652
+ var hasOwnProperty$7 = objectProto$9.hasOwnProperty;
653
+
654
+ /** Used to detect if a method is native. */
655
+ var reIsNative = RegExp('^' +
656
+ funcToString.call(hasOwnProperty$7).replace(reRegExpChar, '\\$&')
657
+ .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
658
+ );
659
+
660
+ /**
661
+ * The base implementation of `_.isNative` without bad shim checks.
662
+ *
663
+ * @private
664
+ * @param {*} value The value to check.
665
+ * @returns {boolean} Returns `true` if `value` is a native function,
666
+ * else `false`.
667
+ */
668
+ function baseIsNative$1(value) {
669
+ if (!isObject$2(value) || isMasked(value)) {
670
+ return false;
671
+ }
672
+ var pattern = isFunction$1(value) ? reIsNative : reIsHostCtor;
673
+ return pattern.test(toSource$1(value));
674
+ }
675
+
676
+ var _baseIsNative = baseIsNative$1;
677
+
678
+ /**
679
+ * Gets the value at `key` of `object`.
680
+ *
681
+ * @private
682
+ * @param {Object} [object] The object to query.
683
+ * @param {string} key The key of the property to get.
684
+ * @returns {*} Returns the property value.
685
+ */
686
+
687
+ function getValue$1(object, key) {
688
+ return object == null ? undefined : object[key];
689
+ }
690
+
691
+ var _getValue = getValue$1;
692
+
693
+ var baseIsNative = _baseIsNative,
694
+ getValue = _getValue;
695
+
696
+ /**
697
+ * Gets the native function at `key` of `object`.
698
+ *
699
+ * @private
700
+ * @param {Object} object The object to query.
701
+ * @param {string} key The key of the method to get.
702
+ * @returns {*} Returns the function if it's native, else `undefined`.
703
+ */
704
+ function getNative$6(object, key) {
705
+ var value = getValue(object, key);
706
+ return baseIsNative(value) ? value : undefined;
707
+ }
708
+
709
+ var _getNative = getNative$6;
710
+
711
+ var getNative$5 = _getNative,
712
+ root$5 = _root;
713
+
714
+ /* Built-in method references that are verified to be native. */
715
+ var Map$4 = getNative$5(root$5, 'Map');
716
+
717
+ var _Map = Map$4;
718
+
719
+ var getNative$4 = _getNative;
720
+
721
+ /* Built-in method references that are verified to be native. */
722
+ var nativeCreate$4 = getNative$4(Object, 'create');
723
+
724
+ var _nativeCreate = nativeCreate$4;
725
+
726
+ var nativeCreate$3 = _nativeCreate;
727
+
728
+ /**
729
+ * Removes all key-value entries from the hash.
730
+ *
731
+ * @private
732
+ * @name clear
733
+ * @memberOf Hash
734
+ */
735
+ function hashClear$1() {
736
+ this.__data__ = nativeCreate$3 ? nativeCreate$3(null) : {};
737
+ this.size = 0;
738
+ }
739
+
740
+ var _hashClear = hashClear$1;
741
+
742
+ /**
743
+ * Removes `key` and its value from the hash.
744
+ *
745
+ * @private
746
+ * @name delete
747
+ * @memberOf Hash
748
+ * @param {Object} hash The hash to modify.
749
+ * @param {string} key The key of the value to remove.
750
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
751
+ */
752
+
753
+ function hashDelete$1(key) {
754
+ var result = this.has(key) && delete this.__data__[key];
755
+ this.size -= result ? 1 : 0;
756
+ return result;
757
+ }
758
+
759
+ var _hashDelete = hashDelete$1;
760
+
761
+ var nativeCreate$2 = _nativeCreate;
762
+
763
+ /** Used to stand-in for `undefined` hash values. */
764
+ var HASH_UNDEFINED$2 = '__lodash_hash_undefined__';
765
+
766
+ /** Used for built-in method references. */
767
+ var objectProto$8 = Object.prototype;
768
+
769
+ /** Used to check objects for own properties. */
770
+ var hasOwnProperty$6 = objectProto$8.hasOwnProperty;
771
+
772
+ /**
773
+ * Gets the hash value for `key`.
774
+ *
775
+ * @private
776
+ * @name get
777
+ * @memberOf Hash
778
+ * @param {string} key The key of the value to get.
779
+ * @returns {*} Returns the entry value.
780
+ */
781
+ function hashGet$1(key) {
782
+ var data = this.__data__;
783
+ if (nativeCreate$2) {
784
+ var result = data[key];
785
+ return result === HASH_UNDEFINED$2 ? undefined : result;
786
+ }
787
+ return hasOwnProperty$6.call(data, key) ? data[key] : undefined;
788
+ }
789
+
790
+ var _hashGet = hashGet$1;
791
+
792
+ var nativeCreate$1 = _nativeCreate;
793
+
794
+ /** Used for built-in method references. */
795
+ var objectProto$7 = Object.prototype;
796
+
797
+ /** Used to check objects for own properties. */
798
+ var hasOwnProperty$5 = objectProto$7.hasOwnProperty;
799
+
800
+ /**
801
+ * Checks if a hash value for `key` exists.
802
+ *
803
+ * @private
804
+ * @name has
805
+ * @memberOf Hash
806
+ * @param {string} key The key of the entry to check.
807
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
808
+ */
809
+ function hashHas$1(key) {
810
+ var data = this.__data__;
811
+ return nativeCreate$1 ? (data[key] !== undefined) : hasOwnProperty$5.call(data, key);
812
+ }
813
+
814
+ var _hashHas = hashHas$1;
815
+
816
+ var nativeCreate = _nativeCreate;
817
+
818
+ /** Used to stand-in for `undefined` hash values. */
819
+ var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
820
+
821
+ /**
822
+ * Sets the hash `key` to `value`.
823
+ *
824
+ * @private
825
+ * @name set
826
+ * @memberOf Hash
827
+ * @param {string} key The key of the value to set.
828
+ * @param {*} value The value to set.
829
+ * @returns {Object} Returns the hash instance.
830
+ */
831
+ function hashSet$1(key, value) {
832
+ var data = this.__data__;
833
+ this.size += this.has(key) ? 0 : 1;
834
+ data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED$1 : value;
835
+ return this;
836
+ }
837
+
838
+ var _hashSet = hashSet$1;
839
+
840
+ var hashClear = _hashClear,
841
+ hashDelete = _hashDelete,
842
+ hashGet = _hashGet,
843
+ hashHas = _hashHas,
844
+ hashSet = _hashSet;
845
+
846
+ /**
847
+ * Creates a hash object.
848
+ *
849
+ * @private
850
+ * @constructor
851
+ * @param {Array} [entries] The key-value pairs to cache.
852
+ */
853
+ function Hash$1(entries) {
854
+ var index = -1,
855
+ length = entries == null ? 0 : entries.length;
856
+
857
+ this.clear();
858
+ while (++index < length) {
859
+ var entry = entries[index];
860
+ this.set(entry[0], entry[1]);
861
+ }
862
+ }
863
+
864
+ // Add methods to `Hash`.
865
+ Hash$1.prototype.clear = hashClear;
866
+ Hash$1.prototype['delete'] = hashDelete;
867
+ Hash$1.prototype.get = hashGet;
868
+ Hash$1.prototype.has = hashHas;
869
+ Hash$1.prototype.set = hashSet;
870
+
871
+ var _Hash = Hash$1;
872
+
873
+ var Hash = _Hash,
874
+ ListCache$2 = _ListCache,
875
+ Map$3 = _Map;
876
+
877
+ /**
878
+ * Removes all key-value entries from the map.
879
+ *
880
+ * @private
881
+ * @name clear
882
+ * @memberOf MapCache
883
+ */
884
+ function mapCacheClear$1() {
885
+ this.size = 0;
886
+ this.__data__ = {
887
+ 'hash': new Hash,
888
+ 'map': new (Map$3 || ListCache$2),
889
+ 'string': new Hash
890
+ };
891
+ }
892
+
893
+ var _mapCacheClear = mapCacheClear$1;
894
+
895
+ /**
896
+ * Checks if `value` is suitable for use as unique object key.
897
+ *
898
+ * @private
899
+ * @param {*} value The value to check.
900
+ * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
901
+ */
902
+
903
+ function isKeyable$1(value) {
904
+ var type = typeof value;
905
+ return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
906
+ ? (value !== '__proto__')
907
+ : (value === null);
908
+ }
909
+
910
+ var _isKeyable = isKeyable$1;
911
+
912
+ var isKeyable = _isKeyable;
913
+
914
+ /**
915
+ * Gets the data for `map`.
916
+ *
917
+ * @private
918
+ * @param {Object} map The map to query.
919
+ * @param {string} key The reference key.
920
+ * @returns {*} Returns the map data.
921
+ */
922
+ function getMapData$4(map, key) {
923
+ var data = map.__data__;
924
+ return isKeyable(key)
925
+ ? data[typeof key == 'string' ? 'string' : 'hash']
926
+ : data.map;
927
+ }
928
+
929
+ var _getMapData = getMapData$4;
930
+
931
+ var getMapData$3 = _getMapData;
932
+
933
+ /**
934
+ * Removes `key` and its value from the map.
935
+ *
936
+ * @private
937
+ * @name delete
938
+ * @memberOf MapCache
939
+ * @param {string} key The key of the value to remove.
940
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
941
+ */
942
+ function mapCacheDelete$1(key) {
943
+ var result = getMapData$3(this, key)['delete'](key);
944
+ this.size -= result ? 1 : 0;
945
+ return result;
946
+ }
947
+
948
+ var _mapCacheDelete = mapCacheDelete$1;
949
+
950
+ var getMapData$2 = _getMapData;
951
+
952
+ /**
953
+ * Gets the map value for `key`.
954
+ *
955
+ * @private
956
+ * @name get
957
+ * @memberOf MapCache
958
+ * @param {string} key The key of the value to get.
959
+ * @returns {*} Returns the entry value.
960
+ */
961
+ function mapCacheGet$1(key) {
962
+ return getMapData$2(this, key).get(key);
963
+ }
964
+
965
+ var _mapCacheGet = mapCacheGet$1;
966
+
967
+ var getMapData$1 = _getMapData;
968
+
969
+ /**
970
+ * Checks if a map value for `key` exists.
971
+ *
972
+ * @private
973
+ * @name has
974
+ * @memberOf MapCache
975
+ * @param {string} key The key of the entry to check.
976
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
977
+ */
978
+ function mapCacheHas$1(key) {
979
+ return getMapData$1(this, key).has(key);
980
+ }
981
+
982
+ var _mapCacheHas = mapCacheHas$1;
983
+
984
+ var getMapData = _getMapData;
985
+
986
+ /**
987
+ * Sets the map `key` to `value`.
988
+ *
989
+ * @private
990
+ * @name set
991
+ * @memberOf MapCache
992
+ * @param {string} key The key of the value to set.
993
+ * @param {*} value The value to set.
994
+ * @returns {Object} Returns the map cache instance.
995
+ */
996
+ function mapCacheSet$1(key, value) {
997
+ var data = getMapData(this, key),
998
+ size = data.size;
999
+
1000
+ data.set(key, value);
1001
+ this.size += data.size == size ? 0 : 1;
1002
+ return this;
1003
+ }
1004
+
1005
+ var _mapCacheSet = mapCacheSet$1;
1006
+
1007
+ var mapCacheClear = _mapCacheClear,
1008
+ mapCacheDelete = _mapCacheDelete,
1009
+ mapCacheGet = _mapCacheGet,
1010
+ mapCacheHas = _mapCacheHas,
1011
+ mapCacheSet = _mapCacheSet;
1012
+
1013
+ /**
1014
+ * Creates a map cache object to store key-value pairs.
1015
+ *
1016
+ * @private
1017
+ * @constructor
1018
+ * @param {Array} [entries] The key-value pairs to cache.
1019
+ */
1020
+ function MapCache$3(entries) {
1021
+ var index = -1,
1022
+ length = entries == null ? 0 : entries.length;
1023
+
1024
+ this.clear();
1025
+ while (++index < length) {
1026
+ var entry = entries[index];
1027
+ this.set(entry[0], entry[1]);
1028
+ }
1029
+ }
1030
+
1031
+ // Add methods to `MapCache`.
1032
+ MapCache$3.prototype.clear = mapCacheClear;
1033
+ MapCache$3.prototype['delete'] = mapCacheDelete;
1034
+ MapCache$3.prototype.get = mapCacheGet;
1035
+ MapCache$3.prototype.has = mapCacheHas;
1036
+ MapCache$3.prototype.set = mapCacheSet;
1037
+
1038
+ var _MapCache = MapCache$3;
1039
+
1040
+ var ListCache$1 = _ListCache,
1041
+ Map$2 = _Map,
1042
+ MapCache$2 = _MapCache;
1043
+
1044
+ /** Used as the size to enable large array optimizations. */
1045
+ var LARGE_ARRAY_SIZE = 200;
1046
+
1047
+ /**
1048
+ * Sets the stack `key` to `value`.
1049
+ *
1050
+ * @private
1051
+ * @name set
1052
+ * @memberOf Stack
1053
+ * @param {string} key The key of the value to set.
1054
+ * @param {*} value The value to set.
1055
+ * @returns {Object} Returns the stack cache instance.
1056
+ */
1057
+ function stackSet$1(key, value) {
1058
+ var data = this.__data__;
1059
+ if (data instanceof ListCache$1) {
1060
+ var pairs = data.__data__;
1061
+ if (!Map$2 || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
1062
+ pairs.push([key, value]);
1063
+ this.size = ++data.size;
1064
+ return this;
1065
+ }
1066
+ data = this.__data__ = new MapCache$2(pairs);
1067
+ }
1068
+ data.set(key, value);
1069
+ this.size = data.size;
1070
+ return this;
1071
+ }
1072
+
1073
+ var _stackSet = stackSet$1;
1074
+
1075
+ var ListCache = _ListCache,
1076
+ stackClear = _stackClear,
1077
+ stackDelete = _stackDelete,
1078
+ stackGet = _stackGet,
1079
+ stackHas = _stackHas,
1080
+ stackSet = _stackSet;
1081
+
1082
+ /**
1083
+ * Creates a stack cache object to store key-value pairs.
1084
+ *
1085
+ * @private
1086
+ * @constructor
1087
+ * @param {Array} [entries] The key-value pairs to cache.
1088
+ */
1089
+ function Stack$2(entries) {
1090
+ var data = this.__data__ = new ListCache(entries);
1091
+ this.size = data.size;
1092
+ }
1093
+
1094
+ // Add methods to `Stack`.
1095
+ Stack$2.prototype.clear = stackClear;
1096
+ Stack$2.prototype['delete'] = stackDelete;
1097
+ Stack$2.prototype.get = stackGet;
1098
+ Stack$2.prototype.has = stackHas;
1099
+ Stack$2.prototype.set = stackSet;
1100
+
1101
+ var _Stack = Stack$2;
1102
+
1103
+ /** Used to stand-in for `undefined` hash values. */
1104
+
1105
+ var HASH_UNDEFINED = '__lodash_hash_undefined__';
1106
+
1107
+ /**
1108
+ * Adds `value` to the array cache.
1109
+ *
1110
+ * @private
1111
+ * @name add
1112
+ * @memberOf SetCache
1113
+ * @alias push
1114
+ * @param {*} value The value to cache.
1115
+ * @returns {Object} Returns the cache instance.
1116
+ */
1117
+ function setCacheAdd$1(value) {
1118
+ this.__data__.set(value, HASH_UNDEFINED);
1119
+ return this;
1120
+ }
1121
+
1122
+ var _setCacheAdd = setCacheAdd$1;
1123
+
1124
+ /**
1125
+ * Checks if `value` is in the array cache.
1126
+ *
1127
+ * @private
1128
+ * @name has
1129
+ * @memberOf SetCache
1130
+ * @param {*} value The value to search for.
1131
+ * @returns {number} Returns `true` if `value` is found, else `false`.
1132
+ */
1133
+
1134
+ function setCacheHas$1(value) {
1135
+ return this.__data__.has(value);
1136
+ }
1137
+
1138
+ var _setCacheHas = setCacheHas$1;
1139
+
1140
+ var MapCache$1 = _MapCache,
1141
+ setCacheAdd = _setCacheAdd,
1142
+ setCacheHas = _setCacheHas;
1143
+
1144
+ /**
1145
+ *
1146
+ * Creates an array cache object to store unique values.
1147
+ *
1148
+ * @private
1149
+ * @constructor
1150
+ * @param {Array} [values] The values to cache.
1151
+ */
1152
+ function SetCache$1(values) {
1153
+ var index = -1,
1154
+ length = values == null ? 0 : values.length;
1155
+
1156
+ this.__data__ = new MapCache$1;
1157
+ while (++index < length) {
1158
+ this.add(values[index]);
1159
+ }
1160
+ }
1161
+
1162
+ // Add methods to `SetCache`.
1163
+ SetCache$1.prototype.add = SetCache$1.prototype.push = setCacheAdd;
1164
+ SetCache$1.prototype.has = setCacheHas;
1165
+
1166
+ var _SetCache = SetCache$1;
1167
+
1168
+ /**
1169
+ * A specialized version of `_.some` for arrays without support for iteratee
1170
+ * shorthands.
1171
+ *
1172
+ * @private
1173
+ * @param {Array} [array] The array to iterate over.
1174
+ * @param {Function} predicate The function invoked per iteration.
1175
+ * @returns {boolean} Returns `true` if any element passes the predicate check,
1176
+ * else `false`.
1177
+ */
1178
+
1179
+ function arraySome$1(array, predicate) {
1180
+ var index = -1,
1181
+ length = array == null ? 0 : array.length;
1182
+
1183
+ while (++index < length) {
1184
+ if (predicate(array[index], index, array)) {
1185
+ return true;
1186
+ }
1187
+ }
1188
+ return false;
1189
+ }
1190
+
1191
+ var _arraySome = arraySome$1;
1192
+
1193
+ /**
1194
+ * Checks if a `cache` value for `key` exists.
1195
+ *
1196
+ * @private
1197
+ * @param {Object} cache The cache to query.
1198
+ * @param {string} key The key of the entry to check.
1199
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1200
+ */
1201
+
1202
+ function cacheHas$1(cache, key) {
1203
+ return cache.has(key);
1204
+ }
1205
+
1206
+ var _cacheHas = cacheHas$1;
1207
+
1208
+ var SetCache = _SetCache,
1209
+ arraySome = _arraySome,
1210
+ cacheHas = _cacheHas;
1211
+
1212
+ /** Used to compose bitmasks for value comparisons. */
1213
+ var COMPARE_PARTIAL_FLAG$5 = 1,
1214
+ COMPARE_UNORDERED_FLAG$3 = 2;
1215
+
1216
+ /**
1217
+ * A specialized version of `baseIsEqualDeep` for arrays with support for
1218
+ * partial deep comparisons.
1219
+ *
1220
+ * @private
1221
+ * @param {Array} array The array to compare.
1222
+ * @param {Array} other The other array to compare.
1223
+ * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
1224
+ * @param {Function} customizer The function to customize comparisons.
1225
+ * @param {Function} equalFunc The function to determine equivalents of values.
1226
+ * @param {Object} stack Tracks traversed `array` and `other` objects.
1227
+ * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
1228
+ */
1229
+ function equalArrays$2(array, other, bitmask, customizer, equalFunc, stack) {
1230
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG$5,
1231
+ arrLength = array.length,
1232
+ othLength = other.length;
1233
+
1234
+ if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
1235
+ return false;
1236
+ }
1237
+ // Check that cyclic values are equal.
1238
+ var arrStacked = stack.get(array);
1239
+ var othStacked = stack.get(other);
1240
+ if (arrStacked && othStacked) {
1241
+ return arrStacked == other && othStacked == array;
1242
+ }
1243
+ var index = -1,
1244
+ result = true,
1245
+ seen = (bitmask & COMPARE_UNORDERED_FLAG$3) ? new SetCache : undefined;
1246
+
1247
+ stack.set(array, other);
1248
+ stack.set(other, array);
1249
+
1250
+ // Ignore non-index properties.
1251
+ while (++index < arrLength) {
1252
+ var arrValue = array[index],
1253
+ othValue = other[index];
1254
+
1255
+ if (customizer) {
1256
+ var compared = isPartial
1257
+ ? customizer(othValue, arrValue, index, other, array, stack)
1258
+ : customizer(arrValue, othValue, index, array, other, stack);
1259
+ }
1260
+ if (compared !== undefined) {
1261
+ if (compared) {
1262
+ continue;
1263
+ }
1264
+ result = false;
1265
+ break;
1266
+ }
1267
+ // Recursively compare arrays (susceptible to call stack limits).
1268
+ if (seen) {
1269
+ if (!arraySome(other, function(othValue, othIndex) {
1270
+ if (!cacheHas(seen, othIndex) &&
1271
+ (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
1272
+ return seen.push(othIndex);
1273
+ }
1274
+ })) {
1275
+ result = false;
1276
+ break;
1277
+ }
1278
+ } else if (!(
1279
+ arrValue === othValue ||
1280
+ equalFunc(arrValue, othValue, bitmask, customizer, stack)
1281
+ )) {
1282
+ result = false;
1283
+ break;
1284
+ }
1285
+ }
1286
+ stack['delete'](array);
1287
+ stack['delete'](other);
1288
+ return result;
1289
+ }
1290
+
1291
+ var _equalArrays = equalArrays$2;
1292
+
1293
+ var root$4 = _root;
1294
+
1295
+ /** Built-in value references. */
1296
+ var Uint8Array$1 = root$4.Uint8Array;
1297
+
1298
+ var _Uint8Array = Uint8Array$1;
1299
+
1300
+ /**
1301
+ * Converts `map` to its key-value pairs.
1302
+ *
1303
+ * @private
1304
+ * @param {Object} map The map to convert.
1305
+ * @returns {Array} Returns the key-value pairs.
1306
+ */
1307
+
1308
+ function mapToArray$1(map) {
1309
+ var index = -1,
1310
+ result = Array(map.size);
1311
+
1312
+ map.forEach(function(value, key) {
1313
+ result[++index] = [key, value];
1314
+ });
1315
+ return result;
1316
+ }
1317
+
1318
+ var _mapToArray = mapToArray$1;
1319
+
1320
+ /**
1321
+ * Converts `set` to an array of its values.
1322
+ *
1323
+ * @private
1324
+ * @param {Object} set The set to convert.
1325
+ * @returns {Array} Returns the values.
1326
+ */
1327
+
1328
+ function setToArray$1(set) {
1329
+ var index = -1,
1330
+ result = Array(set.size);
1331
+
1332
+ set.forEach(function(value) {
1333
+ result[++index] = value;
1334
+ });
1335
+ return result;
1336
+ }
1337
+
1338
+ var _setToArray = setToArray$1;
1339
+
1340
+ var Symbol$1 = _Symbol,
1341
+ Uint8Array = _Uint8Array,
1342
+ eq$1 = eq_1,
1343
+ equalArrays$1 = _equalArrays,
1344
+ mapToArray = _mapToArray,
1345
+ setToArray = _setToArray;
1346
+
1347
+ /** Used to compose bitmasks for value comparisons. */
1348
+ var COMPARE_PARTIAL_FLAG$4 = 1,
1349
+ COMPARE_UNORDERED_FLAG$2 = 2;
1350
+
1351
+ /** `Object#toString` result references. */
1352
+ var boolTag$1 = '[object Boolean]',
1353
+ dateTag$1 = '[object Date]',
1354
+ errorTag$1 = '[object Error]',
1355
+ mapTag$2 = '[object Map]',
1356
+ numberTag$1 = '[object Number]',
1357
+ regexpTag$1 = '[object RegExp]',
1358
+ setTag$2 = '[object Set]',
1359
+ stringTag$1 = '[object String]',
1360
+ symbolTag = '[object Symbol]';
1361
+
1362
+ var arrayBufferTag$1 = '[object ArrayBuffer]',
1363
+ dataViewTag$2 = '[object DataView]';
1364
+
1365
+ /** Used to convert symbols to primitives and strings. */
1366
+ var symbolProto$1 = Symbol$1 ? Symbol$1.prototype : undefined,
1367
+ symbolValueOf = symbolProto$1 ? symbolProto$1.valueOf : undefined;
1368
+
1369
+ /**
1370
+ * A specialized version of `baseIsEqualDeep` for comparing objects of
1371
+ * the same `toStringTag`.
1372
+ *
1373
+ * **Note:** This function only supports comparing values with tags of
1374
+ * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
1375
+ *
1376
+ * @private
1377
+ * @param {Object} object The object to compare.
1378
+ * @param {Object} other The other object to compare.
1379
+ * @param {string} tag The `toStringTag` of the objects to compare.
1380
+ * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
1381
+ * @param {Function} customizer The function to customize comparisons.
1382
+ * @param {Function} equalFunc The function to determine equivalents of values.
1383
+ * @param {Object} stack Tracks traversed `object` and `other` objects.
1384
+ * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
1385
+ */
1386
+ function equalByTag$1(object, other, tag, bitmask, customizer, equalFunc, stack) {
1387
+ switch (tag) {
1388
+ case dataViewTag$2:
1389
+ if ((object.byteLength != other.byteLength) ||
1390
+ (object.byteOffset != other.byteOffset)) {
1391
+ return false;
1392
+ }
1393
+ object = object.buffer;
1394
+ other = other.buffer;
1395
+
1396
+ case arrayBufferTag$1:
1397
+ if ((object.byteLength != other.byteLength) ||
1398
+ !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
1399
+ return false;
1400
+ }
1401
+ return true;
1402
+
1403
+ case boolTag$1:
1404
+ case dateTag$1:
1405
+ case numberTag$1:
1406
+ // Coerce booleans to `1` or `0` and dates to milliseconds.
1407
+ // Invalid dates are coerced to `NaN`.
1408
+ return eq$1(+object, +other);
1409
+
1410
+ case errorTag$1:
1411
+ return object.name == other.name && object.message == other.message;
1412
+
1413
+ case regexpTag$1:
1414
+ case stringTag$1:
1415
+ // Coerce regexes to strings and treat strings, primitives and objects,
1416
+ // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
1417
+ // for more details.
1418
+ return object == (other + '');
1419
+
1420
+ case mapTag$2:
1421
+ var convert = mapToArray;
1422
+
1423
+ case setTag$2:
1424
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG$4;
1425
+ convert || (convert = setToArray);
1426
+
1427
+ if (object.size != other.size && !isPartial) {
1428
+ return false;
1429
+ }
1430
+ // Assume cyclic values are equal.
1431
+ var stacked = stack.get(object);
1432
+ if (stacked) {
1433
+ return stacked == other;
1434
+ }
1435
+ bitmask |= COMPARE_UNORDERED_FLAG$2;
1436
+
1437
+ // Recursively compare objects (susceptible to call stack limits).
1438
+ stack.set(object, other);
1439
+ var result = equalArrays$1(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
1440
+ stack['delete'](object);
1441
+ return result;
1442
+
1443
+ case symbolTag:
1444
+ if (symbolValueOf) {
1445
+ return symbolValueOf.call(object) == symbolValueOf.call(other);
1446
+ }
1447
+ }
1448
+ return false;
1449
+ }
1450
+
1451
+ var _equalByTag = equalByTag$1;
1452
+
1453
+ /**
1454
+ * Appends the elements of `values` to `array`.
1455
+ *
1456
+ * @private
1457
+ * @param {Array} array The array to modify.
1458
+ * @param {Array} values The values to append.
1459
+ * @returns {Array} Returns `array`.
1460
+ */
1461
+
1462
+ function arrayPush$1(array, values) {
1463
+ var index = -1,
1464
+ length = values.length,
1465
+ offset = array.length;
1466
+
1467
+ while (++index < length) {
1468
+ array[offset + index] = values[index];
1469
+ }
1470
+ return array;
1471
+ }
1472
+
1473
+ var _arrayPush = arrayPush$1;
1474
+
1475
+ /**
1476
+ * Checks if `value` is classified as an `Array` object.
1477
+ *
1478
+ * @static
1479
+ * @memberOf _
1480
+ * @since 0.1.0
1481
+ * @category Lang
1482
+ * @param {*} value The value to check.
1483
+ * @returns {boolean} Returns `true` if `value` is an array, else `false`.
1484
+ * @example
1485
+ *
1486
+ * _.isArray([1, 2, 3]);
1487
+ * // => true
1488
+ *
1489
+ * _.isArray(document.body.children);
1490
+ * // => false
1491
+ *
1492
+ * _.isArray('abc');
1493
+ * // => false
1494
+ *
1495
+ * _.isArray(_.noop);
1496
+ * // => false
1497
+ */
1498
+
1499
+ var isArray$a = Array.isArray;
1500
+
1501
+ var isArray_1 = isArray$a;
1502
+
1503
+ var arrayPush = _arrayPush,
1504
+ isArray$9 = isArray_1;
1505
+
1506
+ /**
1507
+ * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
1508
+ * `keysFunc` and `symbolsFunc` to get the enumerable property names and
1509
+ * symbols of `object`.
1510
+ *
1511
+ * @private
1512
+ * @param {Object} object The object to query.
1513
+ * @param {Function} keysFunc The function to get the keys of `object`.
1514
+ * @param {Function} symbolsFunc The function to get the symbols of `object`.
1515
+ * @returns {Array} Returns the array of property names and symbols.
1516
+ */
1517
+ function baseGetAllKeys$1(object, keysFunc, symbolsFunc) {
1518
+ var result = keysFunc(object);
1519
+ return isArray$9(object) ? result : arrayPush(result, symbolsFunc(object));
1520
+ }
1521
+
1522
+ var _baseGetAllKeys = baseGetAllKeys$1;
1523
+
1524
+ /**
1525
+ * A specialized version of `_.filter` for arrays without support for
1526
+ * iteratee shorthands.
1527
+ *
1528
+ * @private
1529
+ * @param {Array} [array] The array to iterate over.
1530
+ * @param {Function} predicate The function invoked per iteration.
1531
+ * @returns {Array} Returns the new filtered array.
1532
+ */
1533
+
1534
+ function arrayFilter$1(array, predicate) {
1535
+ var index = -1,
1536
+ length = array == null ? 0 : array.length,
1537
+ resIndex = 0,
1538
+ result = [];
1539
+
1540
+ while (++index < length) {
1541
+ var value = array[index];
1542
+ if (predicate(value, index, array)) {
1543
+ result[resIndex++] = value;
1544
+ }
1545
+ }
1546
+ return result;
1547
+ }
1548
+
1549
+ var _arrayFilter = arrayFilter$1;
1550
+
1551
+ /**
1552
+ * This method returns a new empty array.
1553
+ *
1554
+ * @static
1555
+ * @memberOf _
1556
+ * @since 4.13.0
1557
+ * @category Util
1558
+ * @returns {Array} Returns the new empty array.
1559
+ * @example
1560
+ *
1561
+ * var arrays = _.times(2, _.stubArray);
1562
+ *
1563
+ * console.log(arrays);
1564
+ * // => [[], []]
1565
+ *
1566
+ * console.log(arrays[0] === arrays[1]);
1567
+ * // => false
1568
+ */
1569
+
1570
+ function stubArray$1() {
1571
+ return [];
1572
+ }
1573
+
1574
+ var stubArray_1 = stubArray$1;
1575
+
1576
+ var arrayFilter = _arrayFilter,
1577
+ stubArray = stubArray_1;
1578
+
1579
+ /** Used for built-in method references. */
1580
+ var objectProto$6 = Object.prototype;
1581
+
1582
+ /** Built-in value references. */
1583
+ var propertyIsEnumerable$1 = objectProto$6.propertyIsEnumerable;
1584
+
1585
+ /* Built-in method references for those with the same name as other `lodash` methods. */
1586
+ var nativeGetSymbols = Object.getOwnPropertySymbols;
1587
+
1588
+ /**
1589
+ * Creates an array of the own enumerable symbols of `object`.
1590
+ *
1591
+ * @private
1592
+ * @param {Object} object The object to query.
1593
+ * @returns {Array} Returns the array of symbols.
1594
+ */
1595
+ var getSymbols$1 = !nativeGetSymbols ? stubArray : function(object) {
1596
+ if (object == null) {
1597
+ return [];
1598
+ }
1599
+ object = Object(object);
1600
+ return arrayFilter(nativeGetSymbols(object), function(symbol) {
1601
+ return propertyIsEnumerable$1.call(object, symbol);
1602
+ });
1603
+ };
1604
+
1605
+ var _getSymbols = getSymbols$1;
1606
+
1607
+ /**
1608
+ * The base implementation of `_.times` without support for iteratee shorthands
1609
+ * or max array length checks.
1610
+ *
1611
+ * @private
1612
+ * @param {number} n The number of times to invoke `iteratee`.
1613
+ * @param {Function} iteratee The function invoked per iteration.
1614
+ * @returns {Array} Returns the array of results.
1615
+ */
1616
+
1617
+ function baseTimes$1(n, iteratee) {
1618
+ var index = -1,
1619
+ result = Array(n);
1620
+
1621
+ while (++index < n) {
1622
+ result[index] = iteratee(index);
1623
+ }
1624
+ return result;
1625
+ }
1626
+
1627
+ var _baseTimes = baseTimes$1;
1628
+
1629
+ var baseGetTag$2 = _baseGetTag,
1630
+ isObjectLike$3 = isObjectLike_1;
1631
+
1632
+ /** `Object#toString` result references. */
1633
+ var argsTag$2 = '[object Arguments]';
1634
+
1635
+ /**
1636
+ * The base implementation of `_.isArguments`.
1637
+ *
1638
+ * @private
1639
+ * @param {*} value The value to check.
1640
+ * @returns {boolean} Returns `true` if `value` is an `arguments` object,
1641
+ */
1642
+ function baseIsArguments$1(value) {
1643
+ return isObjectLike$3(value) && baseGetTag$2(value) == argsTag$2;
1644
+ }
1645
+
1646
+ var _baseIsArguments = baseIsArguments$1;
1647
+
1648
+ var baseIsArguments = _baseIsArguments,
1649
+ isObjectLike$2 = isObjectLike_1;
1650
+
1651
+ /** Used for built-in method references. */
1652
+ var objectProto$5 = Object.prototype;
1653
+
1654
+ /** Used to check objects for own properties. */
1655
+ var hasOwnProperty$4 = objectProto$5.hasOwnProperty;
1656
+
1657
+ /** Built-in value references. */
1658
+ var propertyIsEnumerable = objectProto$5.propertyIsEnumerable;
1659
+
1660
+ /**
1661
+ * Checks if `value` is likely an `arguments` object.
1662
+ *
1663
+ * @static
1664
+ * @memberOf _
1665
+ * @since 0.1.0
1666
+ * @category Lang
1667
+ * @param {*} value The value to check.
1668
+ * @returns {boolean} Returns `true` if `value` is an `arguments` object,
1669
+ * else `false`.
1670
+ * @example
1671
+ *
1672
+ * _.isArguments(function() { return arguments; }());
1673
+ * // => true
1674
+ *
1675
+ * _.isArguments([1, 2, 3]);
1676
+ * // => false
1677
+ */
1678
+ var isArguments$2 = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
1679
+ return isObjectLike$2(value) && hasOwnProperty$4.call(value, 'callee') &&
1680
+ !propertyIsEnumerable.call(value, 'callee');
1681
+ };
1682
+
1683
+ var isArguments_1 = isArguments$2;
1684
+
1685
+ var isBuffer$2 = {exports: {}};
1686
+
1687
+ /**
1688
+ * This method returns `false`.
1689
+ *
1690
+ * @static
1691
+ * @memberOf _
1692
+ * @since 4.13.0
1693
+ * @category Util
1694
+ * @returns {boolean} Returns `false`.
1695
+ * @example
1696
+ *
1697
+ * _.times(2, _.stubFalse);
1698
+ * // => [false, false]
1699
+ */
1700
+
1701
+ function stubFalse() {
1702
+ return false;
1703
+ }
1704
+
1705
+ var stubFalse_1 = stubFalse;
1706
+
1707
+ (function (module, exports) {
1708
+ var root = _root,
1709
+ stubFalse = stubFalse_1;
1710
+
1711
+ /** Detect free variable `exports`. */
1712
+ var freeExports = exports && !exports.nodeType && exports;
1713
+
1714
+ /** Detect free variable `module`. */
1715
+ var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
1716
+
1717
+ /** Detect the popular CommonJS extension `module.exports`. */
1718
+ var moduleExports = freeModule && freeModule.exports === freeExports;
1719
+
1720
+ /** Built-in value references. */
1721
+ var Buffer = moduleExports ? root.Buffer : undefined;
1722
+
1723
+ /* Built-in method references for those with the same name as other `lodash` methods. */
1724
+ var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
1725
+
1726
+ /**
1727
+ * Checks if `value` is a buffer.
1728
+ *
1729
+ * @static
1730
+ * @memberOf _
1731
+ * @since 4.3.0
1732
+ * @category Lang
1733
+ * @param {*} value The value to check.
1734
+ * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
1735
+ * @example
1736
+ *
1737
+ * _.isBuffer(new Buffer(2));
1738
+ * // => true
1739
+ *
1740
+ * _.isBuffer(new Uint8Array(2));
1741
+ * // => false
1742
+ */
1743
+ var isBuffer = nativeIsBuffer || stubFalse;
1744
+
1745
+ module.exports = isBuffer;
1746
+ }(isBuffer$2, isBuffer$2.exports));
1747
+
1748
+ /** Used as references for various `Number` constants. */
1749
+
1750
+ var MAX_SAFE_INTEGER$1 = 9007199254740991;
1751
+
1752
+ /** Used to detect unsigned integer values. */
1753
+ var reIsUint = /^(?:0|[1-9]\d*)$/;
1754
+
1755
+ /**
1756
+ * Checks if `value` is a valid array-like index.
1757
+ *
1758
+ * @private
1759
+ * @param {*} value The value to check.
1760
+ * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
1761
+ * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
1762
+ */
1763
+ function isIndex$3(value, length) {
1764
+ var type = typeof value;
1765
+ length = length == null ? MAX_SAFE_INTEGER$1 : length;
1766
+
1767
+ return !!length &&
1768
+ (type == 'number' ||
1769
+ (type != 'symbol' && reIsUint.test(value))) &&
1770
+ (value > -1 && value % 1 == 0 && value < length);
1771
+ }
1772
+
1773
+ var _isIndex = isIndex$3;
1774
+
1775
+ /** Used as references for various `Number` constants. */
1776
+
1777
+ var MAX_SAFE_INTEGER = 9007199254740991;
1778
+
1779
+ /**
1780
+ * Checks if `value` is a valid array-like length.
1781
+ *
1782
+ * **Note:** This method is loosely based on
1783
+ * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
1784
+ *
1785
+ * @static
1786
+ * @memberOf _
1787
+ * @since 4.0.0
1788
+ * @category Lang
1789
+ * @param {*} value The value to check.
1790
+ * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
1791
+ * @example
1792
+ *
1793
+ * _.isLength(3);
1794
+ * // => true
1795
+ *
1796
+ * _.isLength(Number.MIN_VALUE);
1797
+ * // => false
1798
+ *
1799
+ * _.isLength(Infinity);
1800
+ * // => false
1801
+ *
1802
+ * _.isLength('3');
1803
+ * // => false
1804
+ */
1805
+ function isLength$3(value) {
1806
+ return typeof value == 'number' &&
1807
+ value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
1808
+ }
1809
+
1810
+ var isLength_1 = isLength$3;
1811
+
1812
+ var baseGetTag$1 = _baseGetTag,
1813
+ isLength$2 = isLength_1,
1814
+ isObjectLike$1 = isObjectLike_1;
1815
+
1816
+ /** `Object#toString` result references. */
1817
+ var argsTag$1 = '[object Arguments]',
1818
+ arrayTag$1 = '[object Array]',
1819
+ boolTag = '[object Boolean]',
1820
+ dateTag = '[object Date]',
1821
+ errorTag = '[object Error]',
1822
+ funcTag = '[object Function]',
1823
+ mapTag$1 = '[object Map]',
1824
+ numberTag = '[object Number]',
1825
+ objectTag$2 = '[object Object]',
1826
+ regexpTag = '[object RegExp]',
1827
+ setTag$1 = '[object Set]',
1828
+ stringTag = '[object String]',
1829
+ weakMapTag$1 = '[object WeakMap]';
1830
+
1831
+ var arrayBufferTag = '[object ArrayBuffer]',
1832
+ dataViewTag$1 = '[object DataView]',
1833
+ float32Tag = '[object Float32Array]',
1834
+ float64Tag = '[object Float64Array]',
1835
+ int8Tag = '[object Int8Array]',
1836
+ int16Tag = '[object Int16Array]',
1837
+ int32Tag = '[object Int32Array]',
1838
+ uint8Tag = '[object Uint8Array]',
1839
+ uint8ClampedTag = '[object Uint8ClampedArray]',
1840
+ uint16Tag = '[object Uint16Array]',
1841
+ uint32Tag = '[object Uint32Array]';
1842
+
1843
+ /** Used to identify `toStringTag` values of typed arrays. */
1844
+ var typedArrayTags = {};
1845
+ typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
1846
+ typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
1847
+ typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
1848
+ typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
1849
+ typedArrayTags[uint32Tag] = true;
1850
+ typedArrayTags[argsTag$1] = typedArrayTags[arrayTag$1] =
1851
+ typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
1852
+ typedArrayTags[dataViewTag$1] = typedArrayTags[dateTag] =
1853
+ typedArrayTags[errorTag] = typedArrayTags[funcTag] =
1854
+ typedArrayTags[mapTag$1] = typedArrayTags[numberTag] =
1855
+ typedArrayTags[objectTag$2] = typedArrayTags[regexpTag] =
1856
+ typedArrayTags[setTag$1] = typedArrayTags[stringTag] =
1857
+ typedArrayTags[weakMapTag$1] = false;
1858
+
1859
+ /**
1860
+ * The base implementation of `_.isTypedArray` without Node.js optimizations.
1861
+ *
1862
+ * @private
1863
+ * @param {*} value The value to check.
1864
+ * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
1865
+ */
1866
+ function baseIsTypedArray$1(value) {
1867
+ return isObjectLike$1(value) &&
1868
+ isLength$2(value.length) && !!typedArrayTags[baseGetTag$1(value)];
1869
+ }
1870
+
1871
+ var _baseIsTypedArray = baseIsTypedArray$1;
1872
+
1873
+ /**
1874
+ * The base implementation of `_.unary` without support for storing metadata.
1875
+ *
1876
+ * @private
1877
+ * @param {Function} func The function to cap arguments for.
1878
+ * @returns {Function} Returns the new capped function.
1879
+ */
1880
+
1881
+ function baseUnary$1(func) {
1882
+ return function(value) {
1883
+ return func(value);
1884
+ };
1885
+ }
1886
+
1887
+ var _baseUnary = baseUnary$1;
1888
+
1889
+ var _nodeUtil = {exports: {}};
1890
+
1891
+ (function (module, exports) {
1892
+ var freeGlobal = _freeGlobal;
1893
+
1894
+ /** Detect free variable `exports`. */
1895
+ var freeExports = exports && !exports.nodeType && exports;
1896
+
1897
+ /** Detect free variable `module`. */
1898
+ var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
1899
+
1900
+ /** Detect the popular CommonJS extension `module.exports`. */
1901
+ var moduleExports = freeModule && freeModule.exports === freeExports;
1902
+
1903
+ /** Detect free variable `process` from Node.js. */
1904
+ var freeProcess = moduleExports && freeGlobal.process;
1905
+
1906
+ /** Used to access faster Node.js helpers. */
1907
+ var nodeUtil = (function() {
1908
+ try {
1909
+ // Use `util.types` for Node.js 10+.
1910
+ var types = freeModule && freeModule.require && freeModule.require('util').types;
1911
+
1912
+ if (types) {
1913
+ return types;
1914
+ }
1915
+
1916
+ // Legacy `process.binding('util')` for Node.js < 10.
1917
+ return freeProcess && freeProcess.binding && freeProcess.binding('util');
1918
+ } catch (e) {}
1919
+ }());
1920
+
1921
+ module.exports = nodeUtil;
1922
+ }(_nodeUtil, _nodeUtil.exports));
1923
+
1924
+ var baseIsTypedArray = _baseIsTypedArray,
1925
+ baseUnary = _baseUnary,
1926
+ nodeUtil = _nodeUtil.exports;
1927
+
1928
+ /* Node.js helper references. */
1929
+ var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
1930
+
1931
+ /**
1932
+ * Checks if `value` is classified as a typed array.
1933
+ *
1934
+ * @static
1935
+ * @memberOf _
1936
+ * @since 3.0.0
1937
+ * @category Lang
1938
+ * @param {*} value The value to check.
1939
+ * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
1940
+ * @example
1941
+ *
1942
+ * _.isTypedArray(new Uint8Array);
1943
+ * // => true
1944
+ *
1945
+ * _.isTypedArray([]);
1946
+ * // => false
1947
+ */
1948
+ var isTypedArray$2 = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
1949
+
1950
+ var isTypedArray_1 = isTypedArray$2;
1951
+
1952
+ var baseTimes = _baseTimes,
1953
+ isArguments$1 = isArguments_1,
1954
+ isArray$8 = isArray_1,
1955
+ isBuffer$1 = isBuffer$2.exports,
1956
+ isIndex$2 = _isIndex,
1957
+ isTypedArray$1 = isTypedArray_1;
1958
+
1959
+ /** Used for built-in method references. */
1960
+ var objectProto$4 = Object.prototype;
1961
+
1962
+ /** Used to check objects for own properties. */
1963
+ var hasOwnProperty$3 = objectProto$4.hasOwnProperty;
1964
+
1965
+ /**
1966
+ * Creates an array of the enumerable property names of the array-like `value`.
1967
+ *
1968
+ * @private
1969
+ * @param {*} value The value to query.
1970
+ * @param {boolean} inherited Specify returning inherited property names.
1971
+ * @returns {Array} Returns the array of property names.
1972
+ */
1973
+ function arrayLikeKeys$1(value, inherited) {
1974
+ var isArr = isArray$8(value),
1975
+ isArg = !isArr && isArguments$1(value),
1976
+ isBuff = !isArr && !isArg && isBuffer$1(value),
1977
+ isType = !isArr && !isArg && !isBuff && isTypedArray$1(value),
1978
+ skipIndexes = isArr || isArg || isBuff || isType,
1979
+ result = skipIndexes ? baseTimes(value.length, String) : [],
1980
+ length = result.length;
1981
+
1982
+ for (var key in value) {
1983
+ if ((inherited || hasOwnProperty$3.call(value, key)) &&
1984
+ !(skipIndexes && (
1985
+ // Safari 9 has enumerable `arguments.length` in strict mode.
1986
+ key == 'length' ||
1987
+ // Node.js 0.10 has enumerable non-index properties on buffers.
1988
+ (isBuff && (key == 'offset' || key == 'parent')) ||
1989
+ // PhantomJS 2 has enumerable non-index properties on typed arrays.
1990
+ (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
1991
+ // Skip index properties.
1992
+ isIndex$2(key, length)
1993
+ ))) {
1994
+ result.push(key);
1995
+ }
1996
+ }
1997
+ return result;
1998
+ }
1999
+
2000
+ var _arrayLikeKeys = arrayLikeKeys$1;
2001
+
2002
+ /** Used for built-in method references. */
2003
+
2004
+ var objectProto$3 = Object.prototype;
2005
+
2006
+ /**
2007
+ * Checks if `value` is likely a prototype object.
2008
+ *
2009
+ * @private
2010
+ * @param {*} value The value to check.
2011
+ * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
2012
+ */
2013
+ function isPrototype$1(value) {
2014
+ var Ctor = value && value.constructor,
2015
+ proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$3;
2016
+
2017
+ return value === proto;
2018
+ }
2019
+
2020
+ var _isPrototype = isPrototype$1;
2021
+
2022
+ /**
2023
+ * Creates a unary function that invokes `func` with its argument transformed.
2024
+ *
2025
+ * @private
2026
+ * @param {Function} func The function to wrap.
2027
+ * @param {Function} transform The argument transform.
2028
+ * @returns {Function} Returns the new function.
2029
+ */
2030
+
2031
+ function overArg$1(func, transform) {
2032
+ return function(arg) {
2033
+ return func(transform(arg));
2034
+ };
2035
+ }
2036
+
2037
+ var _overArg = overArg$1;
2038
+
2039
+ var overArg = _overArg;
2040
+
2041
+ /* Built-in method references for those with the same name as other `lodash` methods. */
2042
+ var nativeKeys$1 = overArg(Object.keys, Object);
2043
+
2044
+ var _nativeKeys = nativeKeys$1;
2045
+
2046
+ var isPrototype = _isPrototype,
2047
+ nativeKeys = _nativeKeys;
2048
+
2049
+ /** Used for built-in method references. */
2050
+ var objectProto$2 = Object.prototype;
2051
+
2052
+ /** Used to check objects for own properties. */
2053
+ var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
2054
+
2055
+ /**
2056
+ * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
2057
+ *
2058
+ * @private
2059
+ * @param {Object} object The object to query.
2060
+ * @returns {Array} Returns the array of property names.
2061
+ */
2062
+ function baseKeys$1(object) {
2063
+ if (!isPrototype(object)) {
2064
+ return nativeKeys(object);
2065
+ }
2066
+ var result = [];
2067
+ for (var key in Object(object)) {
2068
+ if (hasOwnProperty$2.call(object, key) && key != 'constructor') {
2069
+ result.push(key);
2070
+ }
2071
+ }
2072
+ return result;
2073
+ }
2074
+
2075
+ var _baseKeys = baseKeys$1;
2076
+
2077
+ var isFunction = isFunction_1,
2078
+ isLength$1 = isLength_1;
2079
+
2080
+ /**
2081
+ * Checks if `value` is array-like. A value is considered array-like if it's
2082
+ * not a function and has a `value.length` that's an integer greater than or
2083
+ * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
2084
+ *
2085
+ * @static
2086
+ * @memberOf _
2087
+ * @since 4.0.0
2088
+ * @category Lang
2089
+ * @param {*} value The value to check.
2090
+ * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
2091
+ * @example
2092
+ *
2093
+ * _.isArrayLike([1, 2, 3]);
2094
+ * // => true
2095
+ *
2096
+ * _.isArrayLike(document.body.children);
2097
+ * // => true
2098
+ *
2099
+ * _.isArrayLike('abc');
2100
+ * // => true
2101
+ *
2102
+ * _.isArrayLike(_.noop);
2103
+ * // => false
2104
+ */
2105
+ function isArrayLike$3(value) {
2106
+ return value != null && isLength$1(value.length) && !isFunction(value);
2107
+ }
2108
+
2109
+ var isArrayLike_1 = isArrayLike$3;
2110
+
2111
+ var arrayLikeKeys = _arrayLikeKeys,
2112
+ baseKeys = _baseKeys,
2113
+ isArrayLike$2 = isArrayLike_1;
2114
+
2115
+ /**
2116
+ * Creates an array of the own enumerable property names of `object`.
2117
+ *
2118
+ * **Note:** Non-object values are coerced to objects. See the
2119
+ * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
2120
+ * for more details.
2121
+ *
2122
+ * @static
2123
+ * @since 0.1.0
2124
+ * @memberOf _
2125
+ * @category Object
2126
+ * @param {Object} object The object to query.
2127
+ * @returns {Array} Returns the array of property names.
2128
+ * @example
2129
+ *
2130
+ * function Foo() {
2131
+ * this.a = 1;
2132
+ * this.b = 2;
2133
+ * }
2134
+ *
2135
+ * Foo.prototype.c = 3;
2136
+ *
2137
+ * _.keys(new Foo);
2138
+ * // => ['a', 'b'] (iteration order is not guaranteed)
2139
+ *
2140
+ * _.keys('hi');
2141
+ * // => ['0', '1']
2142
+ */
2143
+ function keys$3(object) {
2144
+ return isArrayLike$2(object) ? arrayLikeKeys(object) : baseKeys(object);
2145
+ }
2146
+
2147
+ var keys_1 = keys$3;
2148
+
2149
+ var baseGetAllKeys = _baseGetAllKeys,
2150
+ getSymbols = _getSymbols,
2151
+ keys$2 = keys_1;
2152
+
2153
+ /**
2154
+ * Creates an array of own enumerable property names and symbols of `object`.
2155
+ *
2156
+ * @private
2157
+ * @param {Object} object The object to query.
2158
+ * @returns {Array} Returns the array of property names and symbols.
2159
+ */
2160
+ function getAllKeys$1(object) {
2161
+ return baseGetAllKeys(object, keys$2, getSymbols);
2162
+ }
2163
+
2164
+ var _getAllKeys = getAllKeys$1;
2165
+
2166
+ var getAllKeys = _getAllKeys;
2167
+
2168
+ /** Used to compose bitmasks for value comparisons. */
2169
+ var COMPARE_PARTIAL_FLAG$3 = 1;
2170
+
2171
+ /** Used for built-in method references. */
2172
+ var objectProto$1 = Object.prototype;
2173
+
2174
+ /** Used to check objects for own properties. */
2175
+ var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
2176
+
2177
+ /**
2178
+ * A specialized version of `baseIsEqualDeep` for objects with support for
2179
+ * partial deep comparisons.
2180
+ *
2181
+ * @private
2182
+ * @param {Object} object The object to compare.
2183
+ * @param {Object} other The other object to compare.
2184
+ * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
2185
+ * @param {Function} customizer The function to customize comparisons.
2186
+ * @param {Function} equalFunc The function to determine equivalents of values.
2187
+ * @param {Object} stack Tracks traversed `object` and `other` objects.
2188
+ * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
2189
+ */
2190
+ function equalObjects$1(object, other, bitmask, customizer, equalFunc, stack) {
2191
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG$3,
2192
+ objProps = getAllKeys(object),
2193
+ objLength = objProps.length,
2194
+ othProps = getAllKeys(other),
2195
+ othLength = othProps.length;
2196
+
2197
+ if (objLength != othLength && !isPartial) {
2198
+ return false;
2199
+ }
2200
+ var index = objLength;
2201
+ while (index--) {
2202
+ var key = objProps[index];
2203
+ if (!(isPartial ? key in other : hasOwnProperty$1.call(other, key))) {
2204
+ return false;
2205
+ }
2206
+ }
2207
+ // Check that cyclic values are equal.
2208
+ var objStacked = stack.get(object);
2209
+ var othStacked = stack.get(other);
2210
+ if (objStacked && othStacked) {
2211
+ return objStacked == other && othStacked == object;
2212
+ }
2213
+ var result = true;
2214
+ stack.set(object, other);
2215
+ stack.set(other, object);
2216
+
2217
+ var skipCtor = isPartial;
2218
+ while (++index < objLength) {
2219
+ key = objProps[index];
2220
+ var objValue = object[key],
2221
+ othValue = other[key];
2222
+
2223
+ if (customizer) {
2224
+ var compared = isPartial
2225
+ ? customizer(othValue, objValue, key, other, object, stack)
2226
+ : customizer(objValue, othValue, key, object, other, stack);
2227
+ }
2228
+ // Recursively compare objects (susceptible to call stack limits).
2229
+ if (!(compared === undefined
2230
+ ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
2231
+ : compared
2232
+ )) {
2233
+ result = false;
2234
+ break;
2235
+ }
2236
+ skipCtor || (skipCtor = key == 'constructor');
2237
+ }
2238
+ if (result && !skipCtor) {
2239
+ var objCtor = object.constructor,
2240
+ othCtor = other.constructor;
2241
+
2242
+ // Non `Object` object instances with different constructors are not equal.
2243
+ if (objCtor != othCtor &&
2244
+ ('constructor' in object && 'constructor' in other) &&
2245
+ !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
2246
+ typeof othCtor == 'function' && othCtor instanceof othCtor)) {
2247
+ result = false;
2248
+ }
2249
+ }
2250
+ stack['delete'](object);
2251
+ stack['delete'](other);
2252
+ return result;
2253
+ }
2254
+
2255
+ var _equalObjects = equalObjects$1;
2256
+
2257
+ var getNative$3 = _getNative,
2258
+ root$3 = _root;
2259
+
2260
+ /* Built-in method references that are verified to be native. */
2261
+ var DataView$1 = getNative$3(root$3, 'DataView');
2262
+
2263
+ var _DataView = DataView$1;
2264
+
2265
+ var getNative$2 = _getNative,
2266
+ root$2 = _root;
2267
+
2268
+ /* Built-in method references that are verified to be native. */
2269
+ var Promise$2 = getNative$2(root$2, 'Promise');
2270
+
2271
+ var _Promise = Promise$2;
2272
+
2273
+ var getNative$1 = _getNative,
2274
+ root$1 = _root;
2275
+
2276
+ /* Built-in method references that are verified to be native. */
2277
+ var Set$1 = getNative$1(root$1, 'Set');
2278
+
2279
+ var _Set = Set$1;
2280
+
2281
+ var getNative = _getNative,
2282
+ root = _root;
2283
+
2284
+ /* Built-in method references that are verified to be native. */
2285
+ var WeakMap$1 = getNative(root, 'WeakMap');
2286
+
2287
+ var _WeakMap = WeakMap$1;
2288
+
2289
+ var DataView = _DataView,
2290
+ Map$1 = _Map,
2291
+ Promise$1 = _Promise,
2292
+ Set = _Set,
2293
+ WeakMap = _WeakMap,
2294
+ baseGetTag = _baseGetTag,
2295
+ toSource = _toSource;
2296
+
2297
+ /** `Object#toString` result references. */
2298
+ var mapTag = '[object Map]',
2299
+ objectTag$1 = '[object Object]',
2300
+ promiseTag = '[object Promise]',
2301
+ setTag = '[object Set]',
2302
+ weakMapTag = '[object WeakMap]';
2303
+
2304
+ var dataViewTag = '[object DataView]';
2305
+
2306
+ /** Used to detect maps, sets, and weakmaps. */
2307
+ var dataViewCtorString = toSource(DataView),
2308
+ mapCtorString = toSource(Map$1),
2309
+ promiseCtorString = toSource(Promise$1),
2310
+ setCtorString = toSource(Set),
2311
+ weakMapCtorString = toSource(WeakMap);
2312
+
2313
+ /**
2314
+ * Gets the `toStringTag` of `value`.
2315
+ *
2316
+ * @private
2317
+ * @param {*} value The value to query.
2318
+ * @returns {string} Returns the `toStringTag`.
2319
+ */
2320
+ var getTag$1 = baseGetTag;
2321
+
2322
+ // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
2323
+ if ((DataView && getTag$1(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
2324
+ (Map$1 && getTag$1(new Map$1) != mapTag) ||
2325
+ (Promise$1 && getTag$1(Promise$1.resolve()) != promiseTag) ||
2326
+ (Set && getTag$1(new Set) != setTag) ||
2327
+ (WeakMap && getTag$1(new WeakMap) != weakMapTag)) {
2328
+ getTag$1 = function(value) {
2329
+ var result = baseGetTag(value),
2330
+ Ctor = result == objectTag$1 ? value.constructor : undefined,
2331
+ ctorString = Ctor ? toSource(Ctor) : '';
2332
+
2333
+ if (ctorString) {
2334
+ switch (ctorString) {
2335
+ case dataViewCtorString: return dataViewTag;
2336
+ case mapCtorString: return mapTag;
2337
+ case promiseCtorString: return promiseTag;
2338
+ case setCtorString: return setTag;
2339
+ case weakMapCtorString: return weakMapTag;
2340
+ }
2341
+ }
2342
+ return result;
2343
+ };
2344
+ }
2345
+
2346
+ var _getTag = getTag$1;
2347
+
2348
+ var Stack$1 = _Stack,
2349
+ equalArrays = _equalArrays,
2350
+ equalByTag = _equalByTag,
2351
+ equalObjects = _equalObjects,
2352
+ getTag = _getTag,
2353
+ isArray$7 = isArray_1,
2354
+ isBuffer = isBuffer$2.exports,
2355
+ isTypedArray = isTypedArray_1;
2356
+
2357
+ /** Used to compose bitmasks for value comparisons. */
2358
+ var COMPARE_PARTIAL_FLAG$2 = 1;
2359
+
2360
+ /** `Object#toString` result references. */
2361
+ var argsTag = '[object Arguments]',
2362
+ arrayTag = '[object Array]',
2363
+ objectTag = '[object Object]';
2364
+
2365
+ /** Used for built-in method references. */
2366
+ var objectProto = Object.prototype;
2367
+
2368
+ /** Used to check objects for own properties. */
2369
+ var hasOwnProperty = objectProto.hasOwnProperty;
2370
+
2371
+ /**
2372
+ * A specialized version of `baseIsEqual` for arrays and objects which performs
2373
+ * deep comparisons and tracks traversed objects enabling objects with circular
2374
+ * references to be compared.
2375
+ *
2376
+ * @private
2377
+ * @param {Object} object The object to compare.
2378
+ * @param {Object} other The other object to compare.
2379
+ * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
2380
+ * @param {Function} customizer The function to customize comparisons.
2381
+ * @param {Function} equalFunc The function to determine equivalents of values.
2382
+ * @param {Object} [stack] Tracks traversed `object` and `other` objects.
2383
+ * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
2384
+ */
2385
+ function baseIsEqualDeep$1(object, other, bitmask, customizer, equalFunc, stack) {
2386
+ var objIsArr = isArray$7(object),
2387
+ othIsArr = isArray$7(other),
2388
+ objTag = objIsArr ? arrayTag : getTag(object),
2389
+ othTag = othIsArr ? arrayTag : getTag(other);
2390
+
2391
+ objTag = objTag == argsTag ? objectTag : objTag;
2392
+ othTag = othTag == argsTag ? objectTag : othTag;
2393
+
2394
+ var objIsObj = objTag == objectTag,
2395
+ othIsObj = othTag == objectTag,
2396
+ isSameTag = objTag == othTag;
2397
+
2398
+ if (isSameTag && isBuffer(object)) {
2399
+ if (!isBuffer(other)) {
2400
+ return false;
2401
+ }
2402
+ objIsArr = true;
2403
+ objIsObj = false;
2404
+ }
2405
+ if (isSameTag && !objIsObj) {
2406
+ stack || (stack = new Stack$1);
2407
+ return (objIsArr || isTypedArray(object))
2408
+ ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
2409
+ : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
2410
+ }
2411
+ if (!(bitmask & COMPARE_PARTIAL_FLAG$2)) {
2412
+ var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
2413
+ othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
2414
+
2415
+ if (objIsWrapped || othIsWrapped) {
2416
+ var objUnwrapped = objIsWrapped ? object.value() : object,
2417
+ othUnwrapped = othIsWrapped ? other.value() : other;
2418
+
2419
+ stack || (stack = new Stack$1);
2420
+ return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
2421
+ }
2422
+ }
2423
+ if (!isSameTag) {
2424
+ return false;
2425
+ }
2426
+ stack || (stack = new Stack$1);
2427
+ return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
2428
+ }
2429
+
2430
+ var _baseIsEqualDeep = baseIsEqualDeep$1;
2431
+
2432
+ var baseIsEqualDeep = _baseIsEqualDeep,
2433
+ isObjectLike = isObjectLike_1;
2434
+
2435
+ /**
2436
+ * The base implementation of `_.isEqual` which supports partial comparisons
2437
+ * and tracks traversed objects.
2438
+ *
2439
+ * @private
2440
+ * @param {*} value The value to compare.
2441
+ * @param {*} other The other value to compare.
2442
+ * @param {boolean} bitmask The bitmask flags.
2443
+ * 1 - Unordered comparison
2444
+ * 2 - Partial comparison
2445
+ * @param {Function} [customizer] The function to customize comparisons.
2446
+ * @param {Object} [stack] Tracks traversed `value` and `other` objects.
2447
+ * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
2448
+ */
2449
+ function baseIsEqual$2(value, other, bitmask, customizer, stack) {
2450
+ if (value === other) {
2451
+ return true;
2452
+ }
2453
+ if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
2454
+ return value !== value && other !== other;
2455
+ }
2456
+ return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual$2, stack);
2457
+ }
2458
+
2459
+ var _baseIsEqual = baseIsEqual$2;
2460
+
2461
+ var Stack = _Stack,
2462
+ baseIsEqual$1 = _baseIsEqual;
2463
+
2464
+ /** Used to compose bitmasks for value comparisons. */
2465
+ var COMPARE_PARTIAL_FLAG$1 = 1,
2466
+ COMPARE_UNORDERED_FLAG$1 = 2;
2467
+
2468
+ /**
2469
+ * The base implementation of `_.isMatch` without support for iteratee shorthands.
2470
+ *
2471
+ * @private
2472
+ * @param {Object} object The object to inspect.
2473
+ * @param {Object} source The object of property values to match.
2474
+ * @param {Array} matchData The property names, values, and compare flags to match.
2475
+ * @param {Function} [customizer] The function to customize comparisons.
2476
+ * @returns {boolean} Returns `true` if `object` is a match, else `false`.
2477
+ */
2478
+ function baseIsMatch$1(object, source, matchData, customizer) {
2479
+ var index = matchData.length,
2480
+ length = index,
2481
+ noCustomizer = !customizer;
2482
+
2483
+ if (object == null) {
2484
+ return !length;
2485
+ }
2486
+ object = Object(object);
2487
+ while (index--) {
2488
+ var data = matchData[index];
2489
+ if ((noCustomizer && data[2])
2490
+ ? data[1] !== object[data[0]]
2491
+ : !(data[0] in object)
2492
+ ) {
2493
+ return false;
2494
+ }
2495
+ }
2496
+ while (++index < length) {
2497
+ data = matchData[index];
2498
+ var key = data[0],
2499
+ objValue = object[key],
2500
+ srcValue = data[1];
2501
+
2502
+ if (noCustomizer && data[2]) {
2503
+ if (objValue === undefined && !(key in object)) {
2504
+ return false;
2505
+ }
2506
+ } else {
2507
+ var stack = new Stack;
2508
+ if (customizer) {
2509
+ var result = customizer(objValue, srcValue, key, object, source, stack);
2510
+ }
2511
+ if (!(result === undefined
2512
+ ? baseIsEqual$1(srcValue, objValue, COMPARE_PARTIAL_FLAG$1 | COMPARE_UNORDERED_FLAG$1, customizer, stack)
2513
+ : result
2514
+ )) {
2515
+ return false;
2516
+ }
2517
+ }
2518
+ }
2519
+ return true;
2520
+ }
2521
+
2522
+ var _baseIsMatch = baseIsMatch$1;
2523
+
2524
+ var isObject$1 = isObject_1;
2525
+
2526
+ /**
2527
+ * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
2528
+ *
2529
+ * @private
2530
+ * @param {*} value The value to check.
2531
+ * @returns {boolean} Returns `true` if `value` if suitable for strict
2532
+ * equality comparisons, else `false`.
2533
+ */
2534
+ function isStrictComparable$2(value) {
2535
+ return value === value && !isObject$1(value);
2536
+ }
2537
+
2538
+ var _isStrictComparable = isStrictComparable$2;
2539
+
2540
+ var isStrictComparable$1 = _isStrictComparable,
2541
+ keys$1 = keys_1;
2542
+
2543
+ /**
2544
+ * Gets the property names, values, and compare flags of `object`.
2545
+ *
2546
+ * @private
2547
+ * @param {Object} object The object to query.
2548
+ * @returns {Array} Returns the match data of `object`.
2549
+ */
2550
+ function getMatchData$1(object) {
2551
+ var result = keys$1(object),
2552
+ length = result.length;
2553
+
2554
+ while (length--) {
2555
+ var key = result[length],
2556
+ value = object[key];
2557
+
2558
+ result[length] = [key, value, isStrictComparable$1(value)];
2559
+ }
2560
+ return result;
2561
+ }
2562
+
2563
+ var _getMatchData = getMatchData$1;
2564
+
2565
+ /**
2566
+ * A specialized version of `matchesProperty` for source values suitable
2567
+ * for strict equality comparisons, i.e. `===`.
2568
+ *
2569
+ * @private
2570
+ * @param {string} key The key of the property to get.
2571
+ * @param {*} srcValue The value to match.
2572
+ * @returns {Function} Returns the new spec function.
2573
+ */
2574
+
2575
+ function matchesStrictComparable$2(key, srcValue) {
2576
+ return function(object) {
2577
+ if (object == null) {
2578
+ return false;
2579
+ }
2580
+ return object[key] === srcValue &&
2581
+ (srcValue !== undefined || (key in Object(object)));
2582
+ };
2583
+ }
2584
+
2585
+ var _matchesStrictComparable = matchesStrictComparable$2;
2586
+
2587
+ var baseIsMatch = _baseIsMatch,
2588
+ getMatchData = _getMatchData,
2589
+ matchesStrictComparable$1 = _matchesStrictComparable;
2590
+
2591
+ /**
2592
+ * The base implementation of `_.matches` which doesn't clone `source`.
2593
+ *
2594
+ * @private
2595
+ * @param {Object} source The object of property values to match.
2596
+ * @returns {Function} Returns the new spec function.
2597
+ */
2598
+ function baseMatches$1(source) {
2599
+ var matchData = getMatchData(source);
2600
+ if (matchData.length == 1 && matchData[0][2]) {
2601
+ return matchesStrictComparable$1(matchData[0][0], matchData[0][1]);
2602
+ }
2603
+ return function(object) {
2604
+ return object === source || baseIsMatch(object, source, matchData);
2605
+ };
2606
+ }
2607
+
2608
+ var _baseMatches = baseMatches$1;
2609
+
2610
+ var isArray$6 = isArray_1,
2611
+ isSymbol$4 = isSymbol_1;
2612
+
2613
+ /** Used to match property names within property paths. */
2614
+ var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
2615
+ reIsPlainProp = /^\w*$/;
2616
+
2617
+ /**
2618
+ * Checks if `value` is a property name and not a property path.
2619
+ *
2620
+ * @private
2621
+ * @param {*} value The value to check.
2622
+ * @param {Object} [object] The object to query keys on.
2623
+ * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
2624
+ */
2625
+ function isKey$3(value, object) {
2626
+ if (isArray$6(value)) {
2627
+ return false;
2628
+ }
2629
+ var type = typeof value;
2630
+ if (type == 'number' || type == 'symbol' || type == 'boolean' ||
2631
+ value == null || isSymbol$4(value)) {
2632
+ return true;
2633
+ }
2634
+ return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
2635
+ (object != null && value in Object(object));
2636
+ }
2637
+
2638
+ var _isKey = isKey$3;
2639
+
2640
+ var MapCache = _MapCache;
2641
+
2642
+ /** Error message constants. */
2643
+ var FUNC_ERROR_TEXT = 'Expected a function';
2644
+
2645
+ /**
2646
+ * Creates a function that memoizes the result of `func`. If `resolver` is
2647
+ * provided, it determines the cache key for storing the result based on the
2648
+ * arguments provided to the memoized function. By default, the first argument
2649
+ * provided to the memoized function is used as the map cache key. The `func`
2650
+ * is invoked with the `this` binding of the memoized function.
2651
+ *
2652
+ * **Note:** The cache is exposed as the `cache` property on the memoized
2653
+ * function. Its creation may be customized by replacing the `_.memoize.Cache`
2654
+ * constructor with one whose instances implement the
2655
+ * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
2656
+ * method interface of `clear`, `delete`, `get`, `has`, and `set`.
2657
+ *
2658
+ * @static
2659
+ * @memberOf _
2660
+ * @since 0.1.0
2661
+ * @category Function
2662
+ * @param {Function} func The function to have its output memoized.
2663
+ * @param {Function} [resolver] The function to resolve the cache key.
2664
+ * @returns {Function} Returns the new memoized function.
2665
+ * @example
2666
+ *
2667
+ * var object = { 'a': 1, 'b': 2 };
2668
+ * var other = { 'c': 3, 'd': 4 };
2669
+ *
2670
+ * var values = _.memoize(_.values);
2671
+ * values(object);
2672
+ * // => [1, 2]
2673
+ *
2674
+ * values(other);
2675
+ * // => [3, 4]
2676
+ *
2677
+ * object.a = 2;
2678
+ * values(object);
2679
+ * // => [1, 2]
2680
+ *
2681
+ * // Modify the result cache.
2682
+ * values.cache.set(object, ['a', 'b']);
2683
+ * values(object);
2684
+ * // => ['a', 'b']
2685
+ *
2686
+ * // Replace `_.memoize.Cache`.
2687
+ * _.memoize.Cache = WeakMap;
2688
+ */
2689
+ function memoize$1(func, resolver) {
2690
+ if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
2691
+ throw new TypeError(FUNC_ERROR_TEXT);
2692
+ }
2693
+ var memoized = function() {
2694
+ var args = arguments,
2695
+ key = resolver ? resolver.apply(this, args) : args[0],
2696
+ cache = memoized.cache;
2697
+
2698
+ if (cache.has(key)) {
2699
+ return cache.get(key);
2700
+ }
2701
+ var result = func.apply(this, args);
2702
+ memoized.cache = cache.set(key, result) || cache;
2703
+ return result;
2704
+ };
2705
+ memoized.cache = new (memoize$1.Cache || MapCache);
2706
+ return memoized;
2707
+ }
2708
+
2709
+ // Expose `MapCache`.
2710
+ memoize$1.Cache = MapCache;
2711
+
2712
+ var memoize_1 = memoize$1;
2713
+
2714
+ var memoize = memoize_1;
2715
+
2716
+ /** Used as the maximum memoize cache size. */
2717
+ var MAX_MEMOIZE_SIZE = 500;
2718
+
2719
+ /**
2720
+ * A specialized version of `_.memoize` which clears the memoized function's
2721
+ * cache when it exceeds `MAX_MEMOIZE_SIZE`.
2722
+ *
2723
+ * @private
2724
+ * @param {Function} func The function to have its output memoized.
2725
+ * @returns {Function} Returns the new memoized function.
2726
+ */
2727
+ function memoizeCapped$1(func) {
2728
+ var result = memoize(func, function(key) {
2729
+ if (cache.size === MAX_MEMOIZE_SIZE) {
2730
+ cache.clear();
2731
+ }
2732
+ return key;
2733
+ });
2734
+
2735
+ var cache = result.cache;
2736
+ return result;
2737
+ }
2738
+
2739
+ var _memoizeCapped = memoizeCapped$1;
2740
+
2741
+ var memoizeCapped = _memoizeCapped;
2742
+
2743
+ /** Used to match property names within property paths. */
2744
+ var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
2745
+
2746
+ /** Used to match backslashes in property paths. */
2747
+ var reEscapeChar = /\\(\\)?/g;
2748
+
2749
+ /**
2750
+ * Converts `string` to a property path array.
2751
+ *
2752
+ * @private
2753
+ * @param {string} string The string to convert.
2754
+ * @returns {Array} Returns the property path array.
2755
+ */
2756
+ var stringToPath$1 = memoizeCapped(function(string) {
2757
+ var result = [];
2758
+ if (string.charCodeAt(0) === 46 /* . */) {
2759
+ result.push('');
2760
+ }
2761
+ string.replace(rePropName, function(match, number, quote, subString) {
2762
+ result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
2763
+ });
2764
+ return result;
2765
+ });
2766
+
2767
+ var _stringToPath = stringToPath$1;
2768
+
2769
+ /**
2770
+ * A specialized version of `_.map` for arrays without support for iteratee
2771
+ * shorthands.
2772
+ *
2773
+ * @private
2774
+ * @param {Array} [array] The array to iterate over.
2775
+ * @param {Function} iteratee The function invoked per iteration.
2776
+ * @returns {Array} Returns the new mapped array.
2777
+ */
2778
+
2779
+ function arrayMap$1(array, iteratee) {
2780
+ var index = -1,
2781
+ length = array == null ? 0 : array.length,
2782
+ result = Array(length);
2783
+
2784
+ while (++index < length) {
2785
+ result[index] = iteratee(array[index], index, array);
2786
+ }
2787
+ return result;
2788
+ }
2789
+
2790
+ var _arrayMap = arrayMap$1;
2791
+
2792
+ var Symbol = _Symbol,
2793
+ arrayMap = _arrayMap,
2794
+ isArray$5 = isArray_1,
2795
+ isSymbol$3 = isSymbol_1;
2796
+
2797
+ /** Used as references for various `Number` constants. */
2798
+ var INFINITY$2 = 1 / 0;
2799
+
2800
+ /** Used to convert symbols to primitives and strings. */
2801
+ var symbolProto = Symbol ? Symbol.prototype : undefined,
2802
+ symbolToString = symbolProto ? symbolProto.toString : undefined;
2803
+
2804
+ /**
2805
+ * The base implementation of `_.toString` which doesn't convert nullish
2806
+ * values to empty strings.
2807
+ *
2808
+ * @private
2809
+ * @param {*} value The value to process.
2810
+ * @returns {string} Returns the string.
2811
+ */
2812
+ function baseToString$1(value) {
2813
+ // Exit early for strings to avoid a performance hit in some environments.
2814
+ if (typeof value == 'string') {
2815
+ return value;
2816
+ }
2817
+ if (isArray$5(value)) {
2818
+ // Recursively convert values (susceptible to call stack limits).
2819
+ return arrayMap(value, baseToString$1) + '';
2820
+ }
2821
+ if (isSymbol$3(value)) {
2822
+ return symbolToString ? symbolToString.call(value) : '';
2823
+ }
2824
+ var result = (value + '');
2825
+ return (result == '0' && (1 / value) == -INFINITY$2) ? '-0' : result;
2826
+ }
2827
+
2828
+ var _baseToString = baseToString$1;
2829
+
2830
+ var baseToString = _baseToString;
2831
+
2832
+ /**
2833
+ * Converts `value` to a string. An empty string is returned for `null`
2834
+ * and `undefined` values. The sign of `-0` is preserved.
2835
+ *
2836
+ * @static
2837
+ * @memberOf _
2838
+ * @since 4.0.0
2839
+ * @category Lang
2840
+ * @param {*} value The value to convert.
2841
+ * @returns {string} Returns the converted string.
2842
+ * @example
2843
+ *
2844
+ * _.toString(null);
2845
+ * // => ''
2846
+ *
2847
+ * _.toString(-0);
2848
+ * // => '-0'
2849
+ *
2850
+ * _.toString([1, 2, 3]);
2851
+ * // => '1,2,3'
2852
+ */
2853
+ function toString$1(value) {
2854
+ return value == null ? '' : baseToString(value);
2855
+ }
2856
+
2857
+ var toString_1 = toString$1;
2858
+
2859
+ var isArray$4 = isArray_1,
2860
+ isKey$2 = _isKey,
2861
+ stringToPath = _stringToPath,
2862
+ toString = toString_1;
2863
+
2864
+ /**
2865
+ * Casts `value` to a path array if it's not one.
2866
+ *
2867
+ * @private
2868
+ * @param {*} value The value to inspect.
2869
+ * @param {Object} [object] The object to query keys on.
2870
+ * @returns {Array} Returns the cast property path array.
2871
+ */
2872
+ function castPath$2(value, object) {
2873
+ if (isArray$4(value)) {
2874
+ return value;
2875
+ }
2876
+ return isKey$2(value, object) ? [value] : stringToPath(toString(value));
2877
+ }
2878
+
2879
+ var _castPath = castPath$2;
2880
+
2881
+ var isSymbol$2 = isSymbol_1;
2882
+
2883
+ /** Used as references for various `Number` constants. */
2884
+ var INFINITY$1 = 1 / 0;
2885
+
2886
+ /**
2887
+ * Converts `value` to a string key if it's not a string or symbol.
2888
+ *
2889
+ * @private
2890
+ * @param {*} value The value to inspect.
2891
+ * @returns {string|symbol} Returns the key.
2892
+ */
2893
+ function toKey$4(value) {
2894
+ if (typeof value == 'string' || isSymbol$2(value)) {
2895
+ return value;
2896
+ }
2897
+ var result = (value + '');
2898
+ return (result == '0' && (1 / value) == -INFINITY$1) ? '-0' : result;
2899
+ }
2900
+
2901
+ var _toKey = toKey$4;
2902
+
2903
+ var castPath$1 = _castPath,
2904
+ toKey$3 = _toKey;
2905
+
2906
+ /**
2907
+ * The base implementation of `_.get` without support for default values.
2908
+ *
2909
+ * @private
2910
+ * @param {Object} object The object to query.
2911
+ * @param {Array|string} path The path of the property to get.
2912
+ * @returns {*} Returns the resolved value.
2913
+ */
2914
+ function baseGet$2(object, path) {
2915
+ path = castPath$1(path, object);
2916
+
2917
+ var index = 0,
2918
+ length = path.length;
2919
+
2920
+ while (object != null && index < length) {
2921
+ object = object[toKey$3(path[index++])];
2922
+ }
2923
+ return (index && index == length) ? object : undefined;
2924
+ }
2925
+
2926
+ var _baseGet = baseGet$2;
2927
+
2928
+ var baseGet$1 = _baseGet;
2929
+
2930
+ /**
2931
+ * Gets the value at `path` of `object`. If the resolved value is
2932
+ * `undefined`, the `defaultValue` is returned in its place.
2933
+ *
2934
+ * @static
2935
+ * @memberOf _
2936
+ * @since 3.7.0
2937
+ * @category Object
2938
+ * @param {Object} object The object to query.
2939
+ * @param {Array|string} path The path of the property to get.
2940
+ * @param {*} [defaultValue] The value returned for `undefined` resolved values.
2941
+ * @returns {*} Returns the resolved value.
2942
+ * @example
2943
+ *
2944
+ * var object = { 'a': [{ 'b': { 'c': 3 } }] };
2945
+ *
2946
+ * _.get(object, 'a[0].b.c');
2947
+ * // => 3
2948
+ *
2949
+ * _.get(object, ['a', '0', 'b', 'c']);
2950
+ * // => 3
2951
+ *
2952
+ * _.get(object, 'a.b.c', 'default');
2953
+ * // => 'default'
2954
+ */
2955
+ function get$1(object, path, defaultValue) {
2956
+ var result = object == null ? undefined : baseGet$1(object, path);
2957
+ return result === undefined ? defaultValue : result;
2958
+ }
2959
+
2960
+ var get_1 = get$1;
2961
+
2962
+ /**
2963
+ * The base implementation of `_.hasIn` without support for deep paths.
2964
+ *
2965
+ * @private
2966
+ * @param {Object} [object] The object to query.
2967
+ * @param {Array|string} key The key to check.
2968
+ * @returns {boolean} Returns `true` if `key` exists, else `false`.
2969
+ */
2970
+
2971
+ function baseHasIn$1(object, key) {
2972
+ return object != null && key in Object(object);
2973
+ }
2974
+
2975
+ var _baseHasIn = baseHasIn$1;
2976
+
2977
+ var castPath = _castPath,
2978
+ isArguments = isArguments_1,
2979
+ isArray$3 = isArray_1,
2980
+ isIndex$1 = _isIndex,
2981
+ isLength = isLength_1,
2982
+ toKey$2 = _toKey;
2983
+
2984
+ /**
2985
+ * Checks if `path` exists on `object`.
2986
+ *
2987
+ * @private
2988
+ * @param {Object} object The object to query.
2989
+ * @param {Array|string} path The path to check.
2990
+ * @param {Function} hasFunc The function to check properties.
2991
+ * @returns {boolean} Returns `true` if `path` exists, else `false`.
2992
+ */
2993
+ function hasPath$1(object, path, hasFunc) {
2994
+ path = castPath(path, object);
2995
+
2996
+ var index = -1,
2997
+ length = path.length,
2998
+ result = false;
2999
+
3000
+ while (++index < length) {
3001
+ var key = toKey$2(path[index]);
3002
+ if (!(result = object != null && hasFunc(object, key))) {
3003
+ break;
3004
+ }
3005
+ object = object[key];
3006
+ }
3007
+ if (result || ++index != length) {
3008
+ return result;
3009
+ }
3010
+ length = object == null ? 0 : object.length;
3011
+ return !!length && isLength(length) && isIndex$1(key, length) &&
3012
+ (isArray$3(object) || isArguments(object));
3013
+ }
3014
+
3015
+ var _hasPath = hasPath$1;
3016
+
3017
+ var baseHasIn = _baseHasIn,
3018
+ hasPath = _hasPath;
3019
+
3020
+ /**
3021
+ * Checks if `path` is a direct or inherited property of `object`.
3022
+ *
3023
+ * @static
3024
+ * @memberOf _
3025
+ * @since 4.0.0
3026
+ * @category Object
3027
+ * @param {Object} object The object to query.
3028
+ * @param {Array|string} path The path to check.
3029
+ * @returns {boolean} Returns `true` if `path` exists, else `false`.
3030
+ * @example
3031
+ *
3032
+ * var object = _.create({ 'a': _.create({ 'b': 2 }) });
3033
+ *
3034
+ * _.hasIn(object, 'a');
3035
+ * // => true
3036
+ *
3037
+ * _.hasIn(object, 'a.b');
3038
+ * // => true
3039
+ *
3040
+ * _.hasIn(object, ['a', 'b']);
3041
+ * // => true
3042
+ *
3043
+ * _.hasIn(object, 'b');
3044
+ * // => false
3045
+ */
3046
+ function hasIn$1(object, path) {
3047
+ return object != null && hasPath(object, path, baseHasIn);
3048
+ }
3049
+
3050
+ var hasIn_1 = hasIn$1;
3051
+
3052
+ var baseIsEqual = _baseIsEqual,
3053
+ get = get_1,
3054
+ hasIn = hasIn_1,
3055
+ isKey$1 = _isKey,
3056
+ isStrictComparable = _isStrictComparable,
3057
+ matchesStrictComparable = _matchesStrictComparable,
3058
+ toKey$1 = _toKey;
3059
+
3060
+ /** Used to compose bitmasks for value comparisons. */
3061
+ var COMPARE_PARTIAL_FLAG = 1,
3062
+ COMPARE_UNORDERED_FLAG = 2;
3063
+
3064
+ /**
3065
+ * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
3066
+ *
3067
+ * @private
3068
+ * @param {string} path The path of the property to get.
3069
+ * @param {*} srcValue The value to match.
3070
+ * @returns {Function} Returns the new spec function.
3071
+ */
3072
+ function baseMatchesProperty$1(path, srcValue) {
3073
+ if (isKey$1(path) && isStrictComparable(srcValue)) {
3074
+ return matchesStrictComparable(toKey$1(path), srcValue);
3075
+ }
3076
+ return function(object) {
3077
+ var objValue = get(object, path);
3078
+ return (objValue === undefined && objValue === srcValue)
3079
+ ? hasIn(object, path)
3080
+ : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
3081
+ };
3082
+ }
3083
+
3084
+ var _baseMatchesProperty = baseMatchesProperty$1;
3085
+
3086
+ /**
3087
+ * This method returns the first argument it receives.
3088
+ *
3089
+ * @static
3090
+ * @since 0.1.0
3091
+ * @memberOf _
3092
+ * @category Util
3093
+ * @param {*} value Any value.
3094
+ * @returns {*} Returns `value`.
3095
+ * @example
3096
+ *
3097
+ * var object = { 'a': 1 };
3098
+ *
3099
+ * console.log(_.identity(object) === object);
3100
+ * // => true
3101
+ */
3102
+
3103
+ function identity$3(value) {
3104
+ return value;
3105
+ }
3106
+
3107
+ var identity_1 = identity$3;
3108
+
3109
+ /**
3110
+ * The base implementation of `_.property` without support for deep paths.
3111
+ *
3112
+ * @private
3113
+ * @param {string} key The key of the property to get.
3114
+ * @returns {Function} Returns the new accessor function.
3115
+ */
3116
+
3117
+ function baseProperty$1(key) {
3118
+ return function(object) {
3119
+ return object == null ? undefined : object[key];
3120
+ };
3121
+ }
3122
+
3123
+ var _baseProperty = baseProperty$1;
3124
+
3125
+ var baseGet = _baseGet;
3126
+
3127
+ /**
3128
+ * A specialized version of `baseProperty` which supports deep paths.
3129
+ *
3130
+ * @private
3131
+ * @param {Array|string} path The path of the property to get.
3132
+ * @returns {Function} Returns the new accessor function.
3133
+ */
3134
+ function basePropertyDeep$1(path) {
3135
+ return function(object) {
3136
+ return baseGet(object, path);
3137
+ };
3138
+ }
3139
+
3140
+ var _basePropertyDeep = basePropertyDeep$1;
3141
+
3142
+ var baseProperty = _baseProperty,
3143
+ basePropertyDeep = _basePropertyDeep,
3144
+ isKey = _isKey,
3145
+ toKey = _toKey;
3146
+
3147
+ /**
3148
+ * Creates a function that returns the value at `path` of a given object.
3149
+ *
3150
+ * @static
3151
+ * @memberOf _
3152
+ * @since 2.4.0
3153
+ * @category Util
3154
+ * @param {Array|string} path The path of the property to get.
3155
+ * @returns {Function} Returns the new accessor function.
3156
+ * @example
3157
+ *
3158
+ * var objects = [
3159
+ * { 'a': { 'b': 2 } },
3160
+ * { 'a': { 'b': 1 } }
3161
+ * ];
3162
+ *
3163
+ * _.map(objects, _.property('a.b'));
3164
+ * // => [2, 1]
3165
+ *
3166
+ * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
3167
+ * // => [1, 2]
3168
+ */
3169
+ function property$1(path) {
3170
+ return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
3171
+ }
3172
+
3173
+ var property_1 = property$1;
3174
+
3175
+ var baseMatches = _baseMatches,
3176
+ baseMatchesProperty = _baseMatchesProperty,
3177
+ identity$2 = identity_1,
3178
+ isArray$2 = isArray_1,
3179
+ property = property_1;
3180
+
3181
+ /**
3182
+ * The base implementation of `_.iteratee`.
3183
+ *
3184
+ * @private
3185
+ * @param {*} [value=_.identity] The value to convert to an iteratee.
3186
+ * @returns {Function} Returns the iteratee.
3187
+ */
3188
+ function baseIteratee$2(value) {
3189
+ // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
3190
+ // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
3191
+ if (typeof value == 'function') {
3192
+ return value;
3193
+ }
3194
+ if (value == null) {
3195
+ return identity$2;
3196
+ }
3197
+ if (typeof value == 'object') {
3198
+ return isArray$2(value)
3199
+ ? baseMatchesProperty(value[0], value[1])
3200
+ : baseMatches(value);
3201
+ }
3202
+ return property(value);
3203
+ }
3204
+
3205
+ var _baseIteratee = baseIteratee$2;
3206
+
3207
+ var toNumber = toNumber_1;
3208
+
3209
+ /** Used as references for various `Number` constants. */
3210
+ var INFINITY = 1 / 0,
3211
+ MAX_INTEGER = 1.7976931348623157e+308;
3212
+
3213
+ /**
3214
+ * Converts `value` to a finite number.
3215
+ *
3216
+ * @static
3217
+ * @memberOf _
3218
+ * @since 4.12.0
3219
+ * @category Lang
3220
+ * @param {*} value The value to convert.
3221
+ * @returns {number} Returns the converted number.
3222
+ * @example
3223
+ *
3224
+ * _.toFinite(3.2);
3225
+ * // => 3.2
3226
+ *
3227
+ * _.toFinite(Number.MIN_VALUE);
3228
+ * // => 5e-324
3229
+ *
3230
+ * _.toFinite(Infinity);
3231
+ * // => 1.7976931348623157e+308
3232
+ *
3233
+ * _.toFinite('3.2');
3234
+ * // => 3.2
3235
+ */
3236
+ function toFinite$2(value) {
3237
+ if (!value) {
3238
+ return value === 0 ? value : 0;
3239
+ }
3240
+ value = toNumber(value);
3241
+ if (value === INFINITY || value === -INFINITY) {
3242
+ var sign = (value < 0 ? -1 : 1);
3243
+ return sign * MAX_INTEGER;
3244
+ }
3245
+ return value === value ? value : 0;
3246
+ }
3247
+
3248
+ var toFinite_1 = toFinite$2;
3249
+
3250
+ var toFinite$1 = toFinite_1;
3251
+
3252
+ /**
3253
+ * Converts `value` to an integer.
3254
+ *
3255
+ * **Note:** This method is loosely based on
3256
+ * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).
3257
+ *
3258
+ * @static
3259
+ * @memberOf _
3260
+ * @since 4.0.0
3261
+ * @category Lang
3262
+ * @param {*} value The value to convert.
3263
+ * @returns {number} Returns the converted integer.
3264
+ * @example
3265
+ *
3266
+ * _.toInteger(3.2);
3267
+ * // => 3
3268
+ *
3269
+ * _.toInteger(Number.MIN_VALUE);
3270
+ * // => 0
3271
+ *
3272
+ * _.toInteger(Infinity);
3273
+ * // => 1.7976931348623157e+308
3274
+ *
3275
+ * _.toInteger('3.2');
3276
+ * // => 3
3277
+ */
3278
+ function toInteger$1(value) {
3279
+ var result = toFinite$1(value),
3280
+ remainder = result % 1;
3281
+
3282
+ return result === result ? (remainder ? result - remainder : result) : 0;
3283
+ }
3284
+
3285
+ var toInteger_1 = toInteger$1;
3286
+
3287
+ var baseFindIndex = _baseFindIndex,
3288
+ baseIteratee$1 = _baseIteratee,
3289
+ toInteger = toInteger_1;
3290
+
3291
+ /* Built-in method references for those with the same name as other `lodash` methods. */
3292
+ var nativeMax$1 = Math.max;
3293
+
3294
+ /**
3295
+ * This method is like `_.find` except that it returns the index of the first
3296
+ * element `predicate` returns truthy for instead of the element itself.
3297
+ *
3298
+ * @static
3299
+ * @memberOf _
3300
+ * @since 1.1.0
3301
+ * @category Array
3302
+ * @param {Array} array The array to inspect.
3303
+ * @param {Function} [predicate=_.identity] The function invoked per iteration.
3304
+ * @param {number} [fromIndex=0] The index to search from.
3305
+ * @returns {number} Returns the index of the found element, else `-1`.
3306
+ * @example
3307
+ *
3308
+ * var users = [
3309
+ * { 'user': 'barney', 'active': false },
3310
+ * { 'user': 'fred', 'active': false },
3311
+ * { 'user': 'pebbles', 'active': true }
3312
+ * ];
3313
+ *
3314
+ * _.findIndex(users, function(o) { return o.user == 'barney'; });
3315
+ * // => 0
3316
+ *
3317
+ * // The `_.matches` iteratee shorthand.
3318
+ * _.findIndex(users, { 'user': 'fred', 'active': false });
3319
+ * // => 1
3320
+ *
3321
+ * // The `_.matchesProperty` iteratee shorthand.
3322
+ * _.findIndex(users, ['active', false]);
3323
+ * // => 0
3324
+ *
3325
+ * // The `_.property` iteratee shorthand.
3326
+ * _.findIndex(users, 'active');
3327
+ * // => 2
3328
+ */
3329
+ function findIndex(array, predicate, fromIndex) {
3330
+ var length = array == null ? 0 : array.length;
3331
+ if (!length) {
3332
+ return -1;
3333
+ }
3334
+ var index = fromIndex == null ? 0 : toInteger(fromIndex);
3335
+ if (index < 0) {
3336
+ index = nativeMax$1(length + index, 0);
3337
+ }
3338
+ return baseFindIndex(array, baseIteratee$1(predicate), index);
3339
+ }
3340
+
3341
+ var findIndex_1 = findIndex;
3342
+
3343
+ /* Built-in method references for those with the same name as other `lodash` methods. */
3344
+
3345
+ var nativeCeil = Math.ceil,
3346
+ nativeMax = Math.max;
3347
+
3348
+ /**
3349
+ * The base implementation of `_.range` and `_.rangeRight` which doesn't
3350
+ * coerce arguments.
3351
+ *
3352
+ * @private
3353
+ * @param {number} start The start of the range.
3354
+ * @param {number} end The end of the range.
3355
+ * @param {number} step The value to increment or decrement by.
3356
+ * @param {boolean} [fromRight] Specify iterating from right to left.
3357
+ * @returns {Array} Returns the range of numbers.
3358
+ */
3359
+ function baseRange$1(start, end, step, fromRight) {
3360
+ var index = -1,
3361
+ length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),
3362
+ result = Array(length);
3363
+
3364
+ while (length--) {
3365
+ result[fromRight ? length : ++index] = start;
3366
+ start += step;
3367
+ }
3368
+ return result;
3369
+ }
3370
+
3371
+ var _baseRange = baseRange$1;
3372
+
3373
+ var eq = eq_1,
3374
+ isArrayLike$1 = isArrayLike_1,
3375
+ isIndex = _isIndex,
3376
+ isObject = isObject_1;
3377
+
3378
+ /**
3379
+ * Checks if the given arguments are from an iteratee call.
3380
+ *
3381
+ * @private
3382
+ * @param {*} value The potential iteratee value argument.
3383
+ * @param {*} index The potential iteratee index or key argument.
3384
+ * @param {*} object The potential iteratee object argument.
3385
+ * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
3386
+ * else `false`.
3387
+ */
3388
+ function isIterateeCall$1(value, index, object) {
3389
+ if (!isObject(object)) {
3390
+ return false;
3391
+ }
3392
+ var type = typeof index;
3393
+ if (type == 'number'
3394
+ ? (isArrayLike$1(object) && isIndex(index, object.length))
3395
+ : (type == 'string' && index in object)
3396
+ ) {
3397
+ return eq(object[index], value);
3398
+ }
3399
+ return false;
3400
+ }
3401
+
3402
+ var _isIterateeCall = isIterateeCall$1;
3403
+
3404
+ var baseRange = _baseRange,
3405
+ isIterateeCall = _isIterateeCall,
3406
+ toFinite = toFinite_1;
3407
+
3408
+ /**
3409
+ * Creates a `_.range` or `_.rangeRight` function.
3410
+ *
3411
+ * @private
3412
+ * @param {boolean} [fromRight] Specify iterating from right to left.
3413
+ * @returns {Function} Returns the new range function.
3414
+ */
3415
+ function createRange$1(fromRight) {
3416
+ return function(start, end, step) {
3417
+ if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {
3418
+ end = step = undefined;
3419
+ }
3420
+ // Ensure the sign of `-0` is preserved.
3421
+ start = toFinite(start);
3422
+ if (end === undefined) {
3423
+ end = start;
3424
+ start = 0;
3425
+ } else {
3426
+ end = toFinite(end);
3427
+ }
3428
+ step = step === undefined ? (start < end ? 1 : -1) : toFinite(step);
3429
+ return baseRange(start, end, step, fromRight);
3430
+ };
3431
+ }
3432
+
3433
+ var _createRange = createRange$1;
3434
+
3435
+ var createRange = _createRange;
3436
+
3437
+ /**
3438
+ * Creates an array of numbers (positive and/or negative) progressing from
3439
+ * `start` up to, but not including, `end`. A step of `-1` is used if a negative
3440
+ * `start` is specified without an `end` or `step`. If `end` is not specified,
3441
+ * it's set to `start` with `start` then set to `0`.
3442
+ *
3443
+ * **Note:** JavaScript follows the IEEE-754 standard for resolving
3444
+ * floating-point values which can produce unexpected results.
3445
+ *
3446
+ * @static
3447
+ * @since 0.1.0
3448
+ * @memberOf _
3449
+ * @category Util
3450
+ * @param {number} [start=0] The start of the range.
3451
+ * @param {number} end The end of the range.
3452
+ * @param {number} [step=1] The value to increment or decrement by.
3453
+ * @returns {Array} Returns the range of numbers.
3454
+ * @see _.inRange, _.rangeRight
3455
+ * @example
3456
+ *
3457
+ * _.range(4);
3458
+ * // => [0, 1, 2, 3]
3459
+ *
3460
+ * _.range(-4);
3461
+ * // => [0, -1, -2, -3]
3462
+ *
3463
+ * _.range(1, 5);
3464
+ * // => [1, 2, 3, 4]
3465
+ *
3466
+ * _.range(0, 20, 5);
3467
+ * // => [0, 5, 10, 15]
3468
+ *
3469
+ * _.range(0, -4, -1);
3470
+ * // => [0, -1, -2, -3]
3471
+ *
3472
+ * _.range(1, 4, 0);
3473
+ * // => [1, 1, 1]
3474
+ *
3475
+ * _.range(0);
3476
+ * // => []
3477
+ */
3478
+ var range = createRange();
3479
+
3480
+ var range_1 = range;
3481
+
3482
+ /**
3483
+ * Hide items from main collection
3484
+ * But keep them in store
3485
+ */
3486
+ const trimmedPlugin = (store) => ({
3487
+ set(k, newVal) {
3488
+ switch (k) {
3489
+ case 'trimmed':
3490
+ const proxy = store.get('proxyItems');
3491
+ const trimmed = gatherTrimmedItems(newVal);
3492
+ const newItems = proxy.reduce((result, v) => {
3493
+ // check if present in new trimmed remove from items (filter)
3494
+ if (!trimmed[v]) {
3495
+ result.push(v);
3496
+ }
3497
+ return result;
3498
+ }, []);
3499
+ store.set('items', newItems);
3500
+ break;
3501
+ }
3502
+ },
3503
+ });
3504
+ function gatherTrimmedItems(trimmedItems) {
3505
+ const trimmed = {};
3506
+ for (let trimmedKey in trimmedItems) {
3507
+ // trimmed overweight not trimmed
3508
+ for (let t in trimmedItems[trimmedKey]) {
3509
+ trimmed[t] = trimmed[t] || trimmedItems[trimmedKey][t];
3510
+ }
3511
+ }
3512
+ return trimmed;
3513
+ }
3514
+
3515
+ /** Set stores data */
3516
+ function setStore(store, data) {
3517
+ for (let key in data) {
3518
+ store.set(key, data[key]);
3519
+ }
3520
+ }
3521
+
3522
+ /**
3523
+ * Data store
3524
+ * Manage the state of a data source and provide methods for updating, adding, and refreshing the data.
3525
+ */
3526
+ class DataStore {
3527
+ get store() {
3528
+ return this.dataStore;
3529
+ }
3530
+ constructor(type, storeData) {
3531
+ const store = (this.dataStore = createStore(Object.assign({ items: [], proxyItems: [], source: [], groupingDepth: 0, groups: {}, type, trimmed: {}, groupingCustomRenderer: undefined }, storeData)));
3532
+ store.use(proxyPlugin(store));
3533
+ store.use(trimmedPlugin(store));
3534
+ }
3535
+ /**
3536
+ * full data source update
3537
+ * @param source - data column/rgRow source
3538
+ * @param grouping - grouping information if present
3539
+ */
3540
+ updateData(source, grouping, silent = false) {
3541
+ // during full update we do drop trim
3542
+ if (!silent) {
3543
+ this.store.set('trimmed', {});
3544
+ }
3545
+ // clear items
3546
+ this.store.set('items', []);
3547
+ const items = range_1(0, (source === null || source === void 0 ? void 0 : source.length) || 0);
3548
+ // set proxy first
3549
+ setStore(this.store, {
3550
+ source,
3551
+ proxyItems: [...items],
3552
+ });
3553
+ // update data items
3554
+ this.store.set('items', items);
3555
+ // apply grouping if present
3556
+ if (grouping) {
3557
+ setStore(this.store, {
3558
+ groupingDepth: grouping.depth,
3559
+ groups: grouping.groups,
3560
+ groupingCustomRenderer: grouping.customRenderer,
3561
+ });
3562
+ }
3563
+ }
3564
+ addTrimmed(some) {
3565
+ let trimmed = this.store.get('trimmed');
3566
+ trimmed = Object.assign(Object.assign({}, trimmed), some);
3567
+ setStore(this.store, { trimmed });
3568
+ }
3569
+ // local data update
3570
+ setData(input) {
3571
+ const data = Object.assign({}, input);
3572
+ setStore(this.store, data);
3573
+ }
3574
+ refresh() {
3575
+ const source = this.store.get('source');
3576
+ this.store.set('source', [...source]);
3577
+ }
3578
+ }
3579
+ /**
3580
+ * get physical index by virtual
3581
+ * @param store - store to process
3582
+ */
3583
+ function getPhysical(store, virtualIndex) {
3584
+ const items = store.get('items');
3585
+ return items[virtualIndex];
3586
+ }
3587
+ /**
3588
+ * get all visible items
3589
+ * @param store - store to process
3590
+ */
3591
+ function getVisibleSourceItem(store) {
3592
+ const source = store.get('source');
3593
+ return store.get('items').map(v => source[v]);
3594
+ }
3595
+ /**
3596
+ * get mapped item from source
3597
+ * @param store - store to process
3598
+ * @param virtualIndex - virtual index to process
3599
+ */
3600
+ const getSourceItem = (store, virtualIndex) => {
3601
+ const items = store.get('items');
3602
+ const source = store.get('source');
3603
+ return source[items[virtualIndex]];
3604
+ };
3605
+ /**
3606
+ * Apple item/model/row value to data source
3607
+ * @param store - data source with changes
3608
+ * @param modelByIndex - collection of rows/values with virtual indexes to setup/replace in store/data source
3609
+ * @param mutate - if true, store will be mutated and whole viewport will be re-rendered
3610
+ */
3611
+ function setSourceByVirtualIndex(store, modelByIndex, mutate = true) {
3612
+ const items = store.get('items');
3613
+ const source = store.get('source');
3614
+ for (let virtualIndex in modelByIndex) {
3615
+ const realIndex = items[virtualIndex];
3616
+ source[realIndex] = modelByIndex[virtualIndex];
3617
+ }
3618
+ if (mutate) {
3619
+ store.set('source', [...source]);
3620
+ }
3621
+ }
3622
+ /**
3623
+ * set item to source
3624
+ * @param store - store to process
3625
+ * @param modelByIndex - collection of rows with physical indexes to setup
3626
+ * @param mutate - if true, store will be mutated and whole viewport will be re-rendered
3627
+ */
3628
+ function setSourceByPhysicalIndex(store, modelByIndex, mutate = true) {
3629
+ const source = store.get('source');
3630
+ for (let index in modelByIndex) {
3631
+ source[index] = modelByIndex[index];
3632
+ }
3633
+ if (mutate) {
3634
+ store.set('source', [...source]);
3635
+ }
3636
+ }
3637
+ function setItems(store, items) {
3638
+ store.set('items', items);
3639
+ }
3640
+ function getSourceItemVirtualIndexByProp(store, prop) {
3641
+ const items = store.get('items');
3642
+ const source = store.get('source');
3643
+ const physicalIndex = findIndex_1(source, { prop });
3644
+ return items.indexOf(physicalIndex);
3645
+ }
3646
+
3647
+ /**
3648
+ * A specialized version of `_.reduce` for arrays without support for
3649
+ * iteratee shorthands.
3650
+ *
3651
+ * @private
3652
+ * @param {Array} [array] The array to iterate over.
3653
+ * @param {Function} iteratee The function invoked per iteration.
3654
+ * @param {*} [accumulator] The initial value.
3655
+ * @param {boolean} [initAccum] Specify using the first element of `array` as
3656
+ * the initial value.
3657
+ * @returns {*} Returns the accumulated value.
3658
+ */
3659
+
3660
+ function arrayReduce$1(array, iteratee, accumulator, initAccum) {
3661
+ var index = -1,
3662
+ length = array == null ? 0 : array.length;
3663
+
3664
+ if (initAccum && length) {
3665
+ accumulator = array[++index];
3666
+ }
3667
+ while (++index < length) {
3668
+ accumulator = iteratee(accumulator, array[index], index, array);
3669
+ }
3670
+ return accumulator;
3671
+ }
3672
+
3673
+ var _arrayReduce = arrayReduce$1;
3674
+
3675
+ /**
3676
+ * Creates a base function for methods like `_.forIn` and `_.forOwn`.
3677
+ *
3678
+ * @private
3679
+ * @param {boolean} [fromRight] Specify iterating from right to left.
3680
+ * @returns {Function} Returns the new base function.
3681
+ */
3682
+
3683
+ function createBaseFor$1(fromRight) {
3684
+ return function(object, iteratee, keysFunc) {
3685
+ var index = -1,
3686
+ iterable = Object(object),
3687
+ props = keysFunc(object),
3688
+ length = props.length;
3689
+
3690
+ while (length--) {
3691
+ var key = props[fromRight ? length : ++index];
3692
+ if (iteratee(iterable[key], key, iterable) === false) {
3693
+ break;
3694
+ }
3695
+ }
3696
+ return object;
3697
+ };
3698
+ }
3699
+
3700
+ var _createBaseFor = createBaseFor$1;
3701
+
3702
+ var createBaseFor = _createBaseFor;
3703
+
3704
+ /**
3705
+ * The base implementation of `baseForOwn` which iterates over `object`
3706
+ * properties returned by `keysFunc` and invokes `iteratee` for each property.
3707
+ * Iteratee functions may exit iteration early by explicitly returning `false`.
3708
+ *
3709
+ * @private
3710
+ * @param {Object} object The object to iterate over.
3711
+ * @param {Function} iteratee The function invoked per iteration.
3712
+ * @param {Function} keysFunc The function to get the keys of `object`.
3713
+ * @returns {Object} Returns `object`.
3714
+ */
3715
+ var baseFor$1 = createBaseFor();
3716
+
3717
+ var _baseFor = baseFor$1;
3718
+
3719
+ var baseFor = _baseFor,
3720
+ keys = keys_1;
3721
+
3722
+ /**
3723
+ * The base implementation of `_.forOwn` without support for iteratee shorthands.
3724
+ *
3725
+ * @private
3726
+ * @param {Object} object The object to iterate over.
3727
+ * @param {Function} iteratee The function invoked per iteration.
3728
+ * @returns {Object} Returns `object`.
3729
+ */
3730
+ function baseForOwn$1(object, iteratee) {
3731
+ return object && baseFor(object, iteratee, keys);
3732
+ }
3733
+
3734
+ var _baseForOwn = baseForOwn$1;
3735
+
3736
+ var isArrayLike = isArrayLike_1;
3737
+
3738
+ /**
3739
+ * Creates a `baseEach` or `baseEachRight` function.
3740
+ *
3741
+ * @private
3742
+ * @param {Function} eachFunc The function to iterate over a collection.
3743
+ * @param {boolean} [fromRight] Specify iterating from right to left.
3744
+ * @returns {Function} Returns the new base function.
3745
+ */
3746
+ function createBaseEach$1(eachFunc, fromRight) {
3747
+ return function(collection, iteratee) {
3748
+ if (collection == null) {
3749
+ return collection;
3750
+ }
3751
+ if (!isArrayLike(collection)) {
3752
+ return eachFunc(collection, iteratee);
3753
+ }
3754
+ var length = collection.length,
3755
+ index = fromRight ? length : -1,
3756
+ iterable = Object(collection);
3757
+
3758
+ while ((fromRight ? index-- : ++index < length)) {
3759
+ if (iteratee(iterable[index], index, iterable) === false) {
3760
+ break;
3761
+ }
3762
+ }
3763
+ return collection;
3764
+ };
3765
+ }
3766
+
3767
+ var _createBaseEach = createBaseEach$1;
3768
+
3769
+ var baseForOwn = _baseForOwn,
3770
+ createBaseEach = _createBaseEach;
3771
+
3772
+ /**
3773
+ * The base implementation of `_.forEach` without support for iteratee shorthands.
3774
+ *
3775
+ * @private
3776
+ * @param {Array|Object} collection The collection to iterate over.
3777
+ * @param {Function} iteratee The function invoked per iteration.
3778
+ * @returns {Array|Object} Returns `collection`.
3779
+ */
3780
+ var baseEach$2 = createBaseEach(baseForOwn);
3781
+
3782
+ var _baseEach = baseEach$2;
3783
+
3784
+ /**
3785
+ * The base implementation of `_.reduce` and `_.reduceRight`, without support
3786
+ * for iteratee shorthands, which iterates over `collection` using `eachFunc`.
3787
+ *
3788
+ * @private
3789
+ * @param {Array|Object} collection The collection to iterate over.
3790
+ * @param {Function} iteratee The function invoked per iteration.
3791
+ * @param {*} accumulator The initial value.
3792
+ * @param {boolean} initAccum Specify using the first or last element of
3793
+ * `collection` as the initial value.
3794
+ * @param {Function} eachFunc The function to iterate over `collection`.
3795
+ * @returns {*} Returns the accumulated value.
3796
+ */
3797
+
3798
+ function baseReduce$1(collection, iteratee, accumulator, initAccum, eachFunc) {
3799
+ eachFunc(collection, function(value, index, collection) {
3800
+ accumulator = initAccum
3801
+ ? (initAccum = false, value)
3802
+ : iteratee(accumulator, value, index, collection);
3803
+ });
3804
+ return accumulator;
3805
+ }
3806
+
3807
+ var _baseReduce = baseReduce$1;
3808
+
3809
+ var arrayReduce = _arrayReduce,
3810
+ baseEach$1 = _baseEach,
3811
+ baseIteratee = _baseIteratee,
3812
+ baseReduce = _baseReduce,
3813
+ isArray$1 = isArray_1;
3814
+
3815
+ /**
3816
+ * Reduces `collection` to a value which is the accumulated result of running
3817
+ * each element in `collection` thru `iteratee`, where each successive
3818
+ * invocation is supplied the return value of the previous. If `accumulator`
3819
+ * is not given, the first element of `collection` is used as the initial
3820
+ * value. The iteratee is invoked with four arguments:
3821
+ * (accumulator, value, index|key, collection).
3822
+ *
3823
+ * Many lodash methods are guarded to work as iteratees for methods like
3824
+ * `_.reduce`, `_.reduceRight`, and `_.transform`.
3825
+ *
3826
+ * The guarded methods are:
3827
+ * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,
3828
+ * and `sortBy`
3829
+ *
3830
+ * @static
3831
+ * @memberOf _
3832
+ * @since 0.1.0
3833
+ * @category Collection
3834
+ * @param {Array|Object} collection The collection to iterate over.
3835
+ * @param {Function} [iteratee=_.identity] The function invoked per iteration.
3836
+ * @param {*} [accumulator] The initial value.
3837
+ * @returns {*} Returns the accumulated value.
3838
+ * @see _.reduceRight
3839
+ * @example
3840
+ *
3841
+ * _.reduce([1, 2], function(sum, n) {
3842
+ * return sum + n;
3843
+ * }, 0);
3844
+ * // => 3
3845
+ *
3846
+ * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
3847
+ * (result[value] || (result[value] = [])).push(key);
3848
+ * return result;
3849
+ * }, {});
3850
+ * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)
3851
+ */
3852
+ function reduce(collection, iteratee, accumulator) {
3853
+ var func = isArray$1(collection) ? arrayReduce : baseReduce,
3854
+ initAccum = arguments.length < 3;
3855
+
3856
+ return func(collection, baseIteratee(iteratee), accumulator, initAccum, baseEach$1);
3857
+ }
3858
+
3859
+ var reduce_1 = reduce;
3860
+
3861
+ /**
3862
+ * A specialized version of `_.forEach` for arrays without support for
3863
+ * iteratee shorthands.
3864
+ *
3865
+ * @private
3866
+ * @param {Array} [array] The array to iterate over.
3867
+ * @param {Function} iteratee The function invoked per iteration.
3868
+ * @returns {Array} Returns `array`.
3869
+ */
3870
+
3871
+ function arrayEach$1(array, iteratee) {
3872
+ var index = -1,
3873
+ length = array == null ? 0 : array.length;
3874
+
3875
+ while (++index < length) {
3876
+ if (iteratee(array[index], index, array) === false) {
3877
+ break;
3878
+ }
3879
+ }
3880
+ return array;
3881
+ }
3882
+
3883
+ var _arrayEach = arrayEach$1;
3884
+
3885
+ var identity$1 = identity_1;
3886
+
3887
+ /**
3888
+ * Casts `value` to `identity` if it's not a function.
3889
+ *
3890
+ * @private
3891
+ * @param {*} value The value to inspect.
3892
+ * @returns {Function} Returns cast function.
3893
+ */
3894
+ function castFunction$1(value) {
3895
+ return typeof value == 'function' ? value : identity$1;
3896
+ }
3897
+
3898
+ var _castFunction = castFunction$1;
3899
+
3900
+ var arrayEach = _arrayEach,
3901
+ baseEach = _baseEach,
3902
+ castFunction = _castFunction,
3903
+ isArray = isArray_1;
3904
+
3905
+ /**
3906
+ * Iterates over elements of `collection` and invokes `iteratee` for each element.
3907
+ * The iteratee is invoked with three arguments: (value, index|key, collection).
3908
+ * Iteratee functions may exit iteration early by explicitly returning `false`.
3909
+ *
3910
+ * **Note:** As with other "Collections" methods, objects with a "length"
3911
+ * property are iterated like arrays. To avoid this behavior use `_.forIn`
3912
+ * or `_.forOwn` for object iteration.
3913
+ *
3914
+ * @static
3915
+ * @memberOf _
3916
+ * @since 0.1.0
3917
+ * @alias each
3918
+ * @category Collection
3919
+ * @param {Array|Object} collection The collection to iterate over.
3920
+ * @param {Function} [iteratee=_.identity] The function invoked per iteration.
3921
+ * @returns {Array|Object} Returns `collection`.
3922
+ * @see _.forEachRight
3923
+ * @example
3924
+ *
3925
+ * _.forEach([1, 2], function(value) {
3926
+ * console.log(value);
3927
+ * });
3928
+ * // => Logs `1` then `2`.
3929
+ *
3930
+ * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {
3931
+ * console.log(key);
3932
+ * });
3933
+ * // => Logs 'a' then 'b' (iteration order is not guaranteed).
3934
+ */
3935
+ function forEach(collection, iteratee) {
3936
+ var func = isArray(collection) ? arrayEach : baseEach;
3937
+ return func(collection, castFunction(iteratee));
3938
+ }
3939
+
3940
+ var forEach_1 = forEach;
3941
+
3942
+ var each = forEach_1;
3943
+
3944
+ var isSymbol$1 = isSymbol_1;
3945
+
3946
+ /** Used as references for the maximum length and index of an array. */
3947
+ var MAX_ARRAY_LENGTH$1 = 4294967295,
3948
+ MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH$1 - 1;
3949
+
3950
+ /* Built-in method references for those with the same name as other `lodash` methods. */
3951
+ var nativeFloor = Math.floor,
3952
+ nativeMin = Math.min;
3953
+
3954
+ /**
3955
+ * The base implementation of `_.sortedIndexBy` and `_.sortedLastIndexBy`
3956
+ * which invokes `iteratee` for `value` and each element of `array` to compute
3957
+ * their sort ranking. The iteratee is invoked with one argument; (value).
3958
+ *
3959
+ * @private
3960
+ * @param {Array} array The sorted array to inspect.
3961
+ * @param {*} value The value to evaluate.
3962
+ * @param {Function} iteratee The iteratee invoked per element.
3963
+ * @param {boolean} [retHighest] Specify returning the highest qualified index.
3964
+ * @returns {number} Returns the index at which `value` should be inserted
3965
+ * into `array`.
3966
+ */
3967
+ function baseSortedIndexBy$1(array, value, iteratee, retHighest) {
3968
+ var low = 0,
3969
+ high = array == null ? 0 : array.length;
3970
+ if (high === 0) {
3971
+ return 0;
3972
+ }
3973
+
3974
+ value = iteratee(value);
3975
+ var valIsNaN = value !== value,
3976
+ valIsNull = value === null,
3977
+ valIsSymbol = isSymbol$1(value),
3978
+ valIsUndefined = value === undefined;
3979
+
3980
+ while (low < high) {
3981
+ var mid = nativeFloor((low + high) / 2),
3982
+ computed = iteratee(array[mid]),
3983
+ othIsDefined = computed !== undefined,
3984
+ othIsNull = computed === null,
3985
+ othIsReflexive = computed === computed,
3986
+ othIsSymbol = isSymbol$1(computed);
3987
+
3988
+ if (valIsNaN) {
3989
+ var setLow = retHighest || othIsReflexive;
3990
+ } else if (valIsUndefined) {
3991
+ setLow = othIsReflexive && (retHighest || othIsDefined);
3992
+ } else if (valIsNull) {
3993
+ setLow = othIsReflexive && othIsDefined && (retHighest || !othIsNull);
3994
+ } else if (valIsSymbol) {
3995
+ setLow = othIsReflexive && othIsDefined && !othIsNull && (retHighest || !othIsSymbol);
3996
+ } else if (othIsNull || othIsSymbol) {
3997
+ setLow = false;
3998
+ } else {
3999
+ setLow = retHighest ? (computed <= value) : (computed < value);
4000
+ }
4001
+ if (setLow) {
4002
+ low = mid + 1;
4003
+ } else {
4004
+ high = mid;
4005
+ }
4006
+ }
4007
+ return nativeMin(high, MAX_ARRAY_INDEX);
4008
+ }
4009
+
4010
+ var _baseSortedIndexBy = baseSortedIndexBy$1;
4011
+
4012
+ var baseSortedIndexBy = _baseSortedIndexBy,
4013
+ identity = identity_1,
4014
+ isSymbol = isSymbol_1;
4015
+
4016
+ /** Used as references for the maximum length and index of an array. */
4017
+ var MAX_ARRAY_LENGTH = 4294967295,
4018
+ HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH >>> 1;
4019
+
4020
+ /**
4021
+ * The base implementation of `_.sortedIndex` and `_.sortedLastIndex` which
4022
+ * performs a binary search of `array` to determine the index at which `value`
4023
+ * should be inserted into `array` in order to maintain its sort order.
4024
+ *
4025
+ * @private
4026
+ * @param {Array} array The sorted array to inspect.
4027
+ * @param {*} value The value to evaluate.
4028
+ * @param {boolean} [retHighest] Specify returning the highest qualified index.
4029
+ * @returns {number} Returns the index at which `value` should be inserted
4030
+ * into `array`.
4031
+ */
4032
+ function baseSortedIndex$1(array, value, retHighest) {
4033
+ var low = 0,
4034
+ high = array == null ? low : array.length;
4035
+
4036
+ if (typeof value == 'number' && value === value && high <= HALF_MAX_ARRAY_LENGTH) {
4037
+ while (low < high) {
4038
+ var mid = (low + high) >>> 1,
4039
+ computed = array[mid];
4040
+
4041
+ if (computed !== null && !isSymbol(computed) &&
4042
+ (retHighest ? (computed <= value) : (computed < value))) {
4043
+ low = mid + 1;
4044
+ } else {
4045
+ high = mid;
4046
+ }
4047
+ }
4048
+ return high;
4049
+ }
4050
+ return baseSortedIndexBy(array, value, identity, retHighest);
4051
+ }
4052
+
4053
+ var _baseSortedIndex = baseSortedIndex$1;
4054
+
4055
+ var baseSortedIndex = _baseSortedIndex;
4056
+
4057
+ /**
4058
+ * Uses a binary search to determine the lowest index at which `value`
4059
+ * should be inserted into `array` in order to maintain its sort order.
4060
+ *
4061
+ * @static
4062
+ * @memberOf _
4063
+ * @since 0.1.0
4064
+ * @category Array
4065
+ * @param {Array} array The sorted array to inspect.
4066
+ * @param {*} value The value to evaluate.
4067
+ * @returns {number} Returns the index at which `value` should be inserted
4068
+ * into `array`.
4069
+ * @example
4070
+ *
4071
+ * _.sortedIndex([30, 50], 40);
4072
+ * // => 1
4073
+ */
4074
+ function sortedIndex(array, value) {
4075
+ return baseSortedIndex(array, value);
4076
+ }
4077
+
4078
+ var sortedIndex_1 = sortedIndex;
4079
+
4080
+ /**
4081
+ * Pre-calculation
4082
+ * Dimension custom sizes for each cell
4083
+ * Keeps only changed sizes, skips origin size
4084
+ */
4085
+ function calculateDimensionData(originItemSize, newSizes = {}) {
4086
+ const positionIndexes = [];
4087
+ const positionIndexToItem = {};
4088
+ const indexToItem = {};
4089
+ // combine all new sizes
4090
+ const sizes = Object.assign({}, newSizes);
4091
+ // prepare order sorted new sizes and calculate changed real size
4092
+ let newIndexes = [];
4093
+ each(newSizes, (_, i) => {
4094
+ const index = parseInt(i, 10);
4095
+ newIndexes[sortedIndex_1(newIndexes, index)] = index;
4096
+ });
4097
+ // fill new coordinates based on what is changed
4098
+ reduce_1(newIndexes, (previous, itemIndex, i) => {
4099
+ const newItem = {
4100
+ itemIndex,
4101
+ start: 0,
4102
+ end: 0,
4103
+ };
4104
+ // if previous item was changed too
4105
+ if (previous) {
4106
+ const itemsBetween = (itemIndex - previous.itemIndex - 1) * originItemSize;
4107
+ newItem.start = itemsBetween + previous.end;
4108
+ }
4109
+ else {
4110
+ newItem.start = itemIndex * originItemSize;
4111
+ }
4112
+ newItem.end = newItem.start + sizes[itemIndex];
4113
+ positionIndexes.push(newItem.start);
4114
+ indexToItem[itemIndex] = positionIndexToItem[i] = newItem;
4115
+ return newItem;
4116
+ }, undefined);
4117
+ return {
4118
+ indexes: newIndexes,
4119
+ positionIndexes: [...positionIndexes],
4120
+ positionIndexToItem: Object.assign({}, positionIndexToItem),
4121
+ indexToItem,
4122
+ sizes,
4123
+ };
4124
+ }
4125
+ /**
4126
+ * Calculate item by position
4127
+ */
4128
+ const getItemByPosition = ({ indexes, positionIndexes, originItemSize, positionIndexToItem, }, pos) => {
4129
+ const item = {
4130
+ itemIndex: 0,
4131
+ start: 0,
4132
+ end: 0,
4133
+ };
4134
+ const currentPlace = indexes.length ? sortedIndex_1(positionIndexes, pos) : 0;
4135
+ // not found or first index
4136
+ if (!currentPlace) {
4137
+ item.itemIndex = Math.floor(pos / originItemSize);
4138
+ item.start = item.itemIndex * originItemSize;
4139
+ item.end = item.start + originItemSize;
4140
+ return item;
4141
+ }
4142
+ const positionItem = positionIndexToItem[currentPlace - 1];
4143
+ // if item has specified size
4144
+ if (positionItem.end > pos) {
4145
+ return positionItem;
4146
+ }
4147
+ // special size item was present before
4148
+ const relativePos = pos - positionItem.end;
4149
+ const relativeIndex = Math.floor(relativePos / originItemSize);
4150
+ item.itemIndex = positionItem.itemIndex + 1 + relativeIndex;
4151
+ item.start = positionItem.end + relativeIndex * originItemSize;
4152
+ item.end = item.start + originItemSize;
4153
+ return item;
4154
+ };
4155
+ function getItemByIndex(dimension, index) {
4156
+ let item = {
4157
+ itemIndex: index,
4158
+ start: 0,
4159
+ end: 0,
4160
+ };
4161
+ // if item has specified size
4162
+ if (dimension.indexToItem[index]) {
4163
+ return dimension.indexToItem[index];
4164
+ }
4165
+ const currentPlace = dimension.indexes.length
4166
+ ? sortedIndex_1(dimension.indexes, index)
4167
+ : 0;
4168
+ // not found or first index
4169
+ if (!currentPlace) {
4170
+ item.start = item.itemIndex * dimension.originItemSize;
4171
+ item.end = item.start + dimension.originItemSize;
4172
+ return item;
4173
+ }
4174
+ // special size item was present before
4175
+ const positionItem = dimension.indexToItem[dimension.indexes[currentPlace - 1]];
4176
+ item.start =
4177
+ positionItem.end +
4178
+ (index - positionItem.itemIndex - 1) * dimension.originItemSize;
4179
+ item.end = item.start + dimension.originItemSize;
4180
+ return item;
4181
+ }
4182
+
4183
+ export { range_1 as A, toInteger_1 as B, _isIterateeCall as C, DataStore as D, _getNative as E, _baseIteratee as _, getVisibleSourceItem as a, getSourceItem as b, setSourceByPhysicalIndex as c, setItems as d, getSourceItemVirtualIndexByProp as e, gatherTrimmedItems as f, getPhysical as g, calculateDimensionData as h, getItemByPosition as i, getItemByIndex as j, createStore as k, setStore as l, each as m, isArrayLike_1 as n, keys_1 as o, proxyPlugin as p, findIndex_1 as q, reduce_1 as r, setSourceByVirtualIndex as s, trimmedPlugin as t, _baseEach as u, _arrayMap as v, isArray_1 as w, _baseProperty as x, _baseKeys as y, _getTag as z };
4184
+
4185
+ //# sourceMappingURL=dimension.helpers-a3065cb1.js.map