@ued_fpi/data-visual 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (357) hide show
  1. package/dist/es/aims/service/request.mjs +1 -1
  2. package/dist/es/aims/src/AirQualityCalendar/index.mjs +12 -7
  3. package/dist/es/aims/src/AirQualityLevelMonthRatio/index.mjs +5 -5
  4. package/dist/es/aims/src/AirQualityLevelYearRatio/index.mjs +3 -3
  5. package/dist/es/aims/src/AirQualityPresentSituation/index.mjs +10 -13
  6. package/dist/es/aims/src/AirQualityRealTime/index.mjs +13 -16
  7. package/dist/es/aims/src/AirTimeSeriesAnalysis/index.mjs +1 -1
  8. package/dist/es/aims/src/CieqContributionMonthRatio/index.mjs +3 -3
  9. package/dist/es/aims/src/CieqContributionYearRatio/index.mjs +5 -5
  10. package/dist/es/aims/src/FactorRealTimeRankChart/index.mjs +6 -7
  11. package/dist/es/aims/src/FactorRealTimeRankList/index.mjs +7 -7
  12. package/dist/es/aims/src/FactorTargetYearPeriod/index.mjs +3 -3
  13. package/dist/es/aims/src/MainPollutionMonthRatio/index.mjs +3 -3
  14. package/dist/es/aims/src/MainPollutionYearRatio/index.mjs +3 -3
  15. package/dist/es/aims/src/MulGridAirQualityLevelMonthRatio/index.mjs +3 -3
  16. package/dist/es/aims/src/MulGridCieqContributionMonthRatio/index.mjs +3 -3
  17. package/dist/es/aims/src/TbHbAnalysis/index.mjs +4 -4
  18. package/dist/es/aims/src/WeatherCondition/index.mjs +5 -5
  19. package/dist/es/aims/src/common/BasicDialog/index.mjs +3 -3
  20. package/dist/es/aims/src/common/BasicEcharts/index.mjs +2 -2
  21. package/dist/es/aims/src/common/BasicPanel/index.mjs +3 -1
  22. package/dist/es/aims/utils/tools.mjs +1 -1
  23. package/dist/es/bmp/config/index.mjs +7 -0
  24. package/dist/es/bmp/service/base-serve.d.ts +4 -0
  25. package/dist/es/bmp/service/base-serve.mjs +12 -0
  26. package/dist/es/bmp/service/request.d.ts +3 -0
  27. package/dist/es/bmp/service/request.mjs +78 -0
  28. package/dist/es/bmp/service/types.d.ts +14 -0
  29. package/dist/es/bmp/src/AlgaeMonitoring/api/index.d.ts +6 -0
  30. package/dist/es/bmp/src/AlgaeMonitoring/api/index.mjs +12 -0
  31. package/dist/es/bmp/src/AlgaeMonitoring/api/types.d.ts +21 -0
  32. package/dist/es/bmp/src/AlgaeMonitoring/images/checked.mjs +3 -0
  33. package/dist/es/bmp/src/AlgaeMonitoring/images/today-alarm.mjs +3 -0
  34. package/dist/es/bmp/src/AlgaeMonitoring/index.d.ts +97 -0
  35. package/dist/es/bmp/src/AlgaeMonitoring/index.mjs +193 -0
  36. package/dist/es/bmp/src/AlgaeMonitoring/index.vue.d.ts +6 -0
  37. package/dist/es/bmp/src/index.d.ts +1 -1
  38. package/dist/es/bmp/src/index.mjs +2 -2
  39. package/dist/es/index.mjs +58 -20
  40. package/dist/es/ipes/service/request.mjs +2 -1
  41. package/dist/es/ipes/src/AccessVehicleManage/index.d.ts +81 -7
  42. package/dist/es/ipes/src/AccessVehicleManage/index.mjs +103 -40
  43. package/dist/es/ipes/src/AccessVehicleManage/index.vue.d.ts +48 -3
  44. package/dist/es/ipes/src/AirPollutionDischarge/images/new-nodata.mjs +3 -0
  45. package/dist/es/ipes/src/AirPollutionDischarge/index.d.ts +3 -107
  46. package/dist/es/ipes/src/AirPollutionDischarge/index.mjs +184 -127
  47. package/dist/es/ipes/src/AirPollutionDischarge/index.vue.d.ts +1 -64
  48. package/dist/es/ipes/src/AirQuality/index.mjs +25 -16
  49. package/dist/es/ipes/src/AirQualityManagement/index.mjs +31 -20
  50. package/dist/es/ipes/src/AlarmManage/images/alarm.mjs +3 -0
  51. package/dist/es/ipes/src/AlarmManage/images/modeluIcon.mjs +3 -0
  52. package/dist/es/ipes/src/AlarmManage/images/new-nodata.mjs +3 -0
  53. package/dist/es/ipes/src/AlarmManage/index.d.ts +89 -0
  54. package/dist/es/ipes/src/AlarmManage/index.mjs +175 -0
  55. package/dist/es/ipes/src/AlarmManage/index.vue.d.ts +2 -0
  56. package/dist/es/ipes/src/AlarmManage/type.d.ts +5 -0
  57. package/dist/es/ipes/src/BusinessManage/images/icon-percent.mjs +3 -0
  58. package/dist/es/ipes/src/BusinessManage/index.d.ts +89 -0
  59. package/dist/es/ipes/src/BusinessManage/index.mjs +196 -0
  60. package/dist/es/ipes/src/BusinessManage/index.vue.d.ts +2 -0
  61. package/dist/es/ipes/src/BusinessManage/type.d.ts +10 -0
  62. package/dist/es/ipes/src/EmergencyDuty/index.mjs +3 -3
  63. package/dist/es/ipes/src/EnterpriseProtectionCode/index.d.ts +38 -3
  64. package/dist/es/ipes/src/EnterpriseProtectionCode/index.mjs +52 -30
  65. package/dist/es/ipes/src/EnterpriseProtectionCode/index.vue.d.ts +22 -1
  66. package/dist/es/ipes/src/EnvManage/index.mjs +17 -14
  67. package/dist/es/ipes/src/EnvironmentalProtection/images/module-title-icon.mjs +3 -0
  68. package/dist/es/ipes/src/EnvironmentalProtection/images/piebottom.mjs +3 -0
  69. package/dist/es/ipes/src/EnvironmentalProtection/images/pietop.mjs +3 -0
  70. package/dist/es/ipes/src/EnvironmentalProtection/index.d.ts +101 -0
  71. package/dist/es/ipes/src/EnvironmentalProtection/index.mjs +177 -0
  72. package/dist/es/ipes/src/EnvironmentalProtection/index.vue.d.ts +6 -0
  73. package/dist/es/ipes/src/EnvironmentalRiskManagement/.mjs +2 -2
  74. package/dist/es/ipes/src/EnvironmentalRiskManagement/index.d.ts +23 -3
  75. package/dist/es/ipes/src/EnvironmentalRiskManagement/index.mjs +48 -12
  76. package/dist/es/ipes/src/EnvironmentalRiskManagement/index.vue.d.ts +13 -1
  77. package/dist/es/ipes/src/GasControl/.mjs +120 -0
  78. package/dist/es/ipes/src/GasControl/components/AlarmStatistics.vue.d.ts +22 -0
  79. package/dist/es/ipes/src/GasControl/components/SingleItem.vue.d.ts +16 -0
  80. package/dist/es/{bmp/src/test-com → ipes/src/GasControl}/index.d.ts +28 -24
  81. package/dist/es/ipes/src/GasControl/index.mjs +103 -0
  82. package/dist/es/ipes/src/GasControl/index.vue.d.ts +23 -0
  83. package/dist/es/ipes/src/GeneralManagement/.mjs +14 -17
  84. package/dist/es/ipes/src/GeneralManagement/components/Tabs.vue.d.ts +10 -6
  85. package/dist/es/ipes/src/GeneralManagement/index.d.ts +18 -9
  86. package/dist/es/ipes/src/GeneralManagement/index.mjs +9 -11
  87. package/dist/es/ipes/src/GeneralManagement/index.vue.d.ts +12 -6
  88. package/dist/es/ipes/src/HazardousVehicleManage/index.d.ts +82 -14
  89. package/dist/es/ipes/src/HazardousVehicleManage/index.mjs +67 -42
  90. package/dist/es/ipes/src/HazardousVehicleManage/index.vue.d.ts +48 -5
  91. package/dist/es/ipes/src/InspectionManage/images/module-title-icon.mjs +3 -0
  92. package/dist/es/ipes/src/InspectionManage/images/new-nodata.mjs +3 -0
  93. package/dist/es/ipes/src/InspectionManage/index.d.ts +136 -0
  94. package/dist/es/ipes/src/InspectionManage/index.mjs +267 -0
  95. package/dist/es/ipes/src/InspectionManage/index.vue.d.ts +27 -0
  96. package/dist/es/ipes/src/InspectionManage/types/index.d.ts +11 -0
  97. package/dist/es/ipes/src/Level3AirDefense/.mjs +38 -12
  98. package/dist/es/ipes/src/Level3AirDefense/components/EmptyData.vue.d.ts +14 -0
  99. package/dist/es/ipes/src/Level3AirDefense/images/empty.mjs +3 -0
  100. package/dist/es/ipes/src/Level3AirDefense/index.mjs +10 -9
  101. package/dist/es/ipes/src/OdorControl/index.mjs +1 -1
  102. package/dist/es/ipes/src/PollutantSourceManage/index.d.ts +168 -0
  103. package/dist/es/ipes/src/PollutantSourceManage/index.mjs +90 -0
  104. package/dist/es/ipes/src/PollutantSourceManage/index.vue.d.ts +42 -0
  105. package/dist/es/ipes/src/PollutantSourceManage/types.d.ts +18 -0
  106. package/dist/es/ipes/src/RealTimeAirQualityManage/index.mjs +1 -1
  107. package/dist/es/ipes/src/SealingManage/index.d.ts +121 -14
  108. package/dist/es/ipes/src/SealingManage/index.mjs +221 -83
  109. package/dist/es/ipes/src/SealingManage/index.vue.d.ts +72 -5
  110. package/dist/es/ipes/src/TaskDispose/.mjs +2 -2
  111. package/dist/es/ipes/src/VocStatistics/index.mjs +2 -2
  112. package/dist/es/ipes/src/WaterNetworkManage/index.d.ts +81 -7
  113. package/dist/es/ipes/src/WaterNetworkManage/index.mjs +71 -39
  114. package/dist/es/ipes/src/WaterNetworkManage/index.vue.d.ts +48 -3
  115. package/dist/es/ipes/src/common/Echarts.mjs +2 -2
  116. package/dist/es/ipes/src/common/IpesPercentBar.mjs +38 -0
  117. package/dist/es/ipes/src/common/IpesProgressBar.mjs +38 -0
  118. package/dist/es/ipes/src/common/LottieAnimation.mjs +3 -3
  119. package/dist/es/ipes/src/index.d.ts +6 -0
  120. package/dist/es/ipes/src/index.mjs +12 -0
  121. package/dist/es/style.css +1514 -909
  122. package/dist/es/wgms/service/request.mjs +1 -1
  123. package/dist/es/wgms/src/AuxiliaryJudgment/index.mjs +3 -3
  124. package/dist/es/wgms/src/ChangesAlongTheProcess/index.mjs +3 -3
  125. package/dist/es/wgms/src/ChlorophyllAchangeRate/index.mjs +5 -5
  126. package/dist/es/wgms/src/CrossSectionCorrelation/index.mjs +4 -4
  127. package/dist/es/wgms/src/DistributionPoints/index.mjs +4 -4
  128. package/dist/es/wgms/src/DrinkingWaterComplianceRate/index.mjs +2 -2
  129. package/dist/es/wgms/src/EnvironmentalAnalysis/index.mjs +7 -5
  130. package/dist/es/wgms/src/FactorTopThreeRanking/index.mjs +4 -4
  131. package/dist/es/wgms/src/FactorTrendComparison/index.mjs +2 -2
  132. package/dist/es/wgms/src/KeyRiverWaterQualityEvaluation/index.mjs +3 -3
  133. package/dist/es/wgms/src/LakeRiverIndex/index.mjs +4 -4
  134. package/dist/es/wgms/src/NPTrendChange/index.mjs +2 -2
  135. package/dist/es/wgms/src/SevenDayKline/index.mjs +4 -4
  136. package/dist/es/wgms/src/SewageOutletsOnlineMonitor/index.mjs +4 -4
  137. package/dist/es/wgms/src/SewageOutletsOnlineMonitor/index.vue.d.ts +0 -1
  138. package/dist/es/wgms/src/SubordinateRanking/index.mjs +7 -4
  139. package/dist/es/wgms/src/SurroundingPollution/index.mjs +5 -5
  140. package/dist/es/wgms/src/UpstreamImpact/index.mjs +3 -3
  141. package/dist/es/wgms/src/UpstreamSection/index.mjs +3 -3
  142. package/dist/es/wgms/src/WaterEnvironmentOnlineMonitor/index.mjs +2 -2
  143. package/dist/es/wgms/src/WaterQualityClassification/index.mjs +3 -3
  144. package/dist/es/wgms/src/WaterQualityRainfall/index.mjs +3 -3
  145. package/dist/es/wgms/src/WaterQualityStatus/index.mjs +3 -3
  146. package/dist/es/wgms/src/common/select-panel.mjs +3 -1
  147. package/dist/es/wgms/utils/echarts/index.mjs +14 -2
  148. package/dist/es/wgms/utils/tools.mjs +1 -1
  149. package/dist/lib/aims/service/request.js +3 -3
  150. package/dist/lib/aims/src/AirQualityCalendar/index.js +20 -15
  151. package/dist/lib/aims/src/AirQualityLevelMonthRatio/index.js +6 -6
  152. package/dist/lib/aims/src/AirQualityLevelYearRatio/index.js +4 -4
  153. package/dist/lib/aims/src/AirQualityPresentSituation/index.js +9 -12
  154. package/dist/lib/aims/src/AirQualityRealTime/index.js +12 -15
  155. package/dist/lib/aims/src/AirTimeSeriesAnalysis/index.js +5 -5
  156. package/dist/lib/aims/src/CieqContributionMonthRatio/index.js +4 -4
  157. package/dist/lib/aims/src/CieqContributionYearRatio/index.js +6 -6
  158. package/dist/lib/aims/src/FactorRealTimeRankChart/index.js +7 -8
  159. package/dist/lib/aims/src/FactorRealTimeRankList/index.js +8 -8
  160. package/dist/lib/aims/src/FactorTargetYearPeriod/index.js +4 -4
  161. package/dist/lib/aims/src/MainPollutionMonthRatio/index.js +4 -4
  162. package/dist/lib/aims/src/MainPollutionYearRatio/index.js +4 -4
  163. package/dist/lib/aims/src/MulGridAirQualityLevelMonthRatio/index.js +4 -4
  164. package/dist/lib/aims/src/MulGridCieqContributionMonthRatio/index.js +4 -4
  165. package/dist/lib/aims/src/TbHbAnalysis/index.js +6 -6
  166. package/dist/lib/aims/src/WeatherCondition/index.js +5 -5
  167. package/dist/lib/aims/src/common/BasicDialog/index.js +3 -3
  168. package/dist/lib/aims/src/common/BasicEcharts/index.js +21 -2
  169. package/dist/lib/aims/src/common/BasicPanel/index.js +4 -2
  170. package/dist/lib/aims/utils/tools.js +2 -2
  171. package/dist/lib/bmp/config/index.js +8 -0
  172. package/dist/lib/bmp/service/base-serve.d.ts +4 -0
  173. package/dist/lib/bmp/service/base-serve.js +14 -0
  174. package/dist/lib/bmp/service/request.d.ts +3 -0
  175. package/dist/lib/bmp/service/request.js +80 -0
  176. package/dist/lib/bmp/service/types.d.ts +14 -0
  177. package/dist/lib/bmp/src/AlgaeMonitoring/api/index.d.ts +6 -0
  178. package/dist/lib/bmp/src/AlgaeMonitoring/api/index.js +14 -0
  179. package/dist/lib/bmp/src/AlgaeMonitoring/api/types.d.ts +21 -0
  180. package/dist/lib/bmp/src/AlgaeMonitoring/images/checked.js +5 -0
  181. package/dist/lib/bmp/src/AlgaeMonitoring/images/today-alarm.js +5 -0
  182. package/dist/lib/bmp/src/AlgaeMonitoring/index.d.ts +97 -0
  183. package/dist/lib/bmp/src/AlgaeMonitoring/index.js +214 -0
  184. package/dist/lib/bmp/src/AlgaeMonitoring/index.vue.d.ts +6 -0
  185. package/dist/lib/bmp/src/index.d.ts +1 -1
  186. package/dist/lib/bmp/src/index.js +2 -2
  187. package/dist/lib/index.js +65 -21
  188. package/dist/lib/ipes/service/request.js +4 -3
  189. package/dist/lib/ipes/src/AccessVehicleManage/index.d.ts +81 -7
  190. package/dist/lib/ipes/src/AccessVehicleManage/index.js +107 -44
  191. package/dist/lib/ipes/src/AccessVehicleManage/index.vue.d.ts +48 -3
  192. package/dist/lib/ipes/src/AirPollutionDischarge/images/new-nodata.js +5 -0
  193. package/dist/lib/ipes/src/AirPollutionDischarge/index.d.ts +3 -107
  194. package/dist/lib/ipes/src/AirPollutionDischarge/index.js +183 -126
  195. package/dist/lib/ipes/src/AirPollutionDischarge/index.vue.d.ts +1 -64
  196. package/dist/lib/ipes/src/AirQuality/index.js +25 -16
  197. package/dist/lib/ipes/src/AirQualityManagement/index.js +31 -20
  198. package/dist/lib/ipes/src/AlarmManage/images/alarm.js +5 -0
  199. package/dist/lib/ipes/src/AlarmManage/images/modeluIcon.js +5 -0
  200. package/dist/lib/ipes/src/AlarmManage/images/new-nodata.js +5 -0
  201. package/dist/lib/ipes/src/AlarmManage/index.d.ts +89 -0
  202. package/dist/lib/ipes/src/AlarmManage/index.js +177 -0
  203. package/dist/lib/ipes/src/AlarmManage/index.vue.d.ts +2 -0
  204. package/dist/lib/ipes/src/AlarmManage/type.d.ts +5 -0
  205. package/dist/lib/ipes/src/BusinessManage/images/icon-percent.js +5 -0
  206. package/dist/lib/ipes/src/BusinessManage/index.d.ts +89 -0
  207. package/dist/lib/ipes/src/BusinessManage/index.js +198 -0
  208. package/dist/lib/ipes/src/BusinessManage/index.vue.d.ts +2 -0
  209. package/dist/lib/ipes/src/BusinessManage/type.d.ts +10 -0
  210. package/dist/lib/ipes/src/EmergencyDuty/index.js +3 -3
  211. package/dist/lib/ipes/src/EnterpriseProtectionCode/index.d.ts +38 -3
  212. package/dist/lib/ipes/src/EnterpriseProtectionCode/index.js +52 -30
  213. package/dist/lib/ipes/src/EnterpriseProtectionCode/index.vue.d.ts +22 -1
  214. package/dist/lib/ipes/src/EnvManage/index.js +19 -16
  215. package/dist/lib/ipes/src/EnvironmentalProtection/images/module-title-icon.js +5 -0
  216. package/dist/lib/ipes/src/EnvironmentalProtection/images/piebottom.js +5 -0
  217. package/dist/lib/ipes/src/EnvironmentalProtection/images/pietop.js +5 -0
  218. package/dist/lib/ipes/src/EnvironmentalProtection/index.d.ts +101 -0
  219. package/dist/lib/ipes/src/EnvironmentalProtection/index.js +179 -0
  220. package/dist/lib/ipes/src/EnvironmentalProtection/index.vue.d.ts +6 -0
  221. package/dist/lib/ipes/src/EnvironmentalRiskManagement/.js +2 -2
  222. package/dist/lib/ipes/src/EnvironmentalRiskManagement/index.d.ts +23 -3
  223. package/dist/lib/ipes/src/EnvironmentalRiskManagement/index.js +47 -11
  224. package/dist/lib/ipes/src/EnvironmentalRiskManagement/index.vue.d.ts +13 -1
  225. package/dist/lib/ipes/src/GasControl/.js +123 -0
  226. package/dist/lib/ipes/src/GasControl/components/AlarmStatistics.vue.d.ts +22 -0
  227. package/dist/lib/ipes/src/GasControl/components/SingleItem.vue.d.ts +16 -0
  228. package/dist/lib/{bmp/src/test-com → ipes/src/GasControl}/index.d.ts +28 -24
  229. package/dist/lib/ipes/src/GasControl/index.js +105 -0
  230. package/dist/lib/ipes/src/GasControl/index.vue.d.ts +23 -0
  231. package/dist/lib/ipes/src/GeneralManagement/.js +13 -16
  232. package/dist/lib/ipes/src/GeneralManagement/components/Tabs.vue.d.ts +10 -6
  233. package/dist/lib/ipes/src/GeneralManagement/index.d.ts +18 -9
  234. package/dist/lib/ipes/src/GeneralManagement/index.js +8 -10
  235. package/dist/lib/ipes/src/GeneralManagement/index.vue.d.ts +12 -6
  236. package/dist/lib/ipes/src/HazardousVehicleManage/index.d.ts +82 -14
  237. package/dist/lib/ipes/src/HazardousVehicleManage/index.js +74 -49
  238. package/dist/lib/ipes/src/HazardousVehicleManage/index.vue.d.ts +48 -5
  239. package/dist/lib/ipes/src/InspectionManage/images/module-title-icon.js +5 -0
  240. package/dist/lib/ipes/src/InspectionManage/images/new-nodata.js +5 -0
  241. package/dist/lib/ipes/src/InspectionManage/index.d.ts +136 -0
  242. package/dist/lib/ipes/src/InspectionManage/index.js +269 -0
  243. package/dist/lib/ipes/src/InspectionManage/index.vue.d.ts +27 -0
  244. package/dist/lib/ipes/src/InspectionManage/types/index.d.ts +11 -0
  245. package/dist/lib/ipes/src/Level3AirDefense/.js +37 -10
  246. package/dist/lib/ipes/src/Level3AirDefense/components/EmptyData.vue.d.ts +14 -0
  247. package/dist/lib/ipes/src/Level3AirDefense/images/empty.js +5 -0
  248. package/dist/lib/ipes/src/Level3AirDefense/index.js +9 -8
  249. package/dist/lib/ipes/src/OdorControl/index.js +2 -2
  250. package/dist/lib/ipes/src/PollutantSourceManage/index.d.ts +168 -0
  251. package/dist/lib/ipes/src/PollutantSourceManage/index.js +92 -0
  252. package/dist/lib/ipes/src/PollutantSourceManage/index.vue.d.ts +42 -0
  253. package/dist/lib/ipes/src/PollutantSourceManage/types.d.ts +18 -0
  254. package/dist/lib/ipes/src/RealTimeAirQualityManage/index.js +2 -2
  255. package/dist/lib/ipes/src/SealingManage/index.d.ts +121 -14
  256. package/dist/lib/ipes/src/SealingManage/index.js +222 -84
  257. package/dist/lib/ipes/src/SealingManage/index.vue.d.ts +72 -5
  258. package/dist/lib/ipes/src/TaskDispose/.js +21 -2
  259. package/dist/lib/ipes/src/VocStatistics/index.js +2 -2
  260. package/dist/lib/ipes/src/WaterNetworkManage/index.d.ts +81 -7
  261. package/dist/lib/ipes/src/WaterNetworkManage/index.js +73 -41
  262. package/dist/lib/ipes/src/WaterNetworkManage/index.vue.d.ts +48 -3
  263. package/dist/lib/ipes/src/common/Echarts.js +21 -2
  264. package/dist/lib/ipes/src/common/IpesPercentBar.js +40 -0
  265. package/dist/lib/ipes/src/common/IpesProgressBar.js +40 -0
  266. package/dist/lib/ipes/src/common/LottieAnimation.js +2 -2
  267. package/dist/lib/ipes/src/index.d.ts +6 -0
  268. package/dist/lib/ipes/src/index.js +12 -0
  269. package/dist/lib/style.css +1514 -909
  270. package/dist/lib/wgms/service/request.js +3 -3
  271. package/dist/lib/wgms/src/AuxiliaryJudgment/index.js +5 -5
  272. package/dist/lib/wgms/src/ChangesAlongTheProcess/index.js +4 -4
  273. package/dist/lib/wgms/src/ChlorophyllAchangeRate/index.js +4 -4
  274. package/dist/lib/wgms/src/CrossSectionCorrelation/index.js +6 -6
  275. package/dist/lib/wgms/src/DistributionPoints/index.js +3 -3
  276. package/dist/lib/wgms/src/DrinkingWaterComplianceRate/index.js +2 -2
  277. package/dist/lib/wgms/src/EnvironmentalAnalysis/index.js +10 -8
  278. package/dist/lib/wgms/src/FactorTopThreeRanking/index.js +3 -3
  279. package/dist/lib/wgms/src/FactorTrendComparison/index.js +2 -2
  280. package/dist/lib/wgms/src/KeyRiverWaterQualityEvaluation/index.js +3 -3
  281. package/dist/lib/wgms/src/LakeRiverIndex/index.js +6 -6
  282. package/dist/lib/wgms/src/NPTrendChange/index.js +2 -2
  283. package/dist/lib/wgms/src/SevenDayKline/index.js +9 -9
  284. package/dist/lib/wgms/src/SewageOutletsOnlineMonitor/index.js +4 -4
  285. package/dist/lib/wgms/src/SewageOutletsOnlineMonitor/index.vue.d.ts +0 -1
  286. package/dist/lib/wgms/src/SubordinateRanking/index.js +12 -9
  287. package/dist/lib/wgms/src/SurroundingPollution/index.js +8 -8
  288. package/dist/lib/wgms/src/UpstreamImpact/index.js +4 -4
  289. package/dist/lib/wgms/src/UpstreamSection/index.js +3 -3
  290. package/dist/lib/wgms/src/WaterEnvironmentOnlineMonitor/index.js +2 -2
  291. package/dist/lib/wgms/src/WaterQualityClassification/index.js +3 -3
  292. package/dist/lib/wgms/src/WaterQualityRainfall/index.js +5 -5
  293. package/dist/lib/wgms/src/WaterQualityStatus/index.js +3 -3
  294. package/dist/lib/wgms/src/common/select-panel.js +4 -2
  295. package/dist/lib/wgms/utils/echarts/index.js +34 -3
  296. package/dist/lib/wgms/utils/tools.js +2 -2
  297. package/package.json +2 -2
  298. package/dist/es/bmp/src/test-com/index.mjs +0 -33
  299. package/dist/es/bmp/src/test-com/index.vue.d.ts +0 -23
  300. package/dist/es/bmp/src/test-com/types.d.ts +0 -16
  301. package/dist/es/vendor/@ctrl_tinycolor@3.6.0.mjs +0 -1136
  302. package/dist/es/vendor/@element-plus_icons-vue@2.0.10_vue@3.3.4.mjs +0 -376
  303. package/dist/es/vendor/@floating-ui_core@1.3.1.mjs +0 -1
  304. package/dist/es/vendor/@floating-ui_dom@1.4.4.mjs +0 -1
  305. package/dist/es/vendor/@sxzz_popperjs-es@2.11.7.mjs +0 -3
  306. package/dist/es/vendor/@ued_fpi_element-plus-expand@0.7.19.mjs +0 -243
  307. package/dist/es/vendor/@vue_reactivity@3.3.4.mjs +0 -1
  308. package/dist/es/vendor/@vue_shared@3.3.4.mjs +0 -29
  309. package/dist/es/vendor/@vueuse_core@9.13.0_vue@3.3.4.mjs +0 -214
  310. package/dist/es/vendor/@vueuse_shared@9.13.0_vue@3.3.4.mjs +0 -72
  311. package/dist/es/vendor/async-validator@4.2.5.mjs +0 -1
  312. package/dist/es/vendor/axios@1.4.0.mjs +0 -3209
  313. package/dist/es/vendor/claygl@1.3.0.mjs +0 -24199
  314. package/dist/es/vendor/dayjs@1.11.9.mjs +0 -88
  315. package/dist/es/vendor/echarts-gl@2.0.9_echarts@5.4.2.mjs +0 -20973
  316. package/dist/es/vendor/echarts@5.4.2.mjs +0 -79359
  317. package/dist/es/vendor/element-plus@2.3.7_vue@3.3.4.mjs +0 -11032
  318. package/dist/es/vendor/escape-html@1.0.3.mjs +0 -1
  319. package/dist/es/vendor/fpi-tg-factor-tools@1.0.4.mjs +0 -195
  320. package/dist/es/vendor/lodash-es@4.17.21.mjs +0 -3255
  321. package/dist/es/vendor/lodash-unified@1.0.3_tknf7errc3xdqocd3ryzzla7vq.mjs +0 -1
  322. package/dist/es/vendor/memoize-one@6.0.0.mjs +0 -1
  323. package/dist/es/vendor/normalize-wheel-es@1.2.0.mjs +0 -1
  324. package/dist/es/vendor/tslib@2.3.0.mjs +0 -32
  325. package/dist/es/vendor/vue-demi@0.14.5_vue@3.3.4.mjs +0 -1
  326. package/dist/es/vendor/vue3-seamless-scroll@2.0.1.mjs +0 -562
  327. package/dist/es/vendor/zrender@5.4.3.mjs +0 -16894
  328. package/dist/lib/bmp/src/test-com/index.js +0 -35
  329. package/dist/lib/bmp/src/test-com/index.vue.d.ts +0 -23
  330. package/dist/lib/bmp/src/test-com/types.d.ts +0 -16
  331. package/dist/lib/vendor/@ctrl_tinycolor@3.6.0.js +0 -1138
  332. package/dist/lib/vendor/@element-plus_icons-vue@2.0.10_vue@3.3.4.js +0 -396
  333. package/dist/lib/vendor/@floating-ui_core@1.3.1.js +0 -2
  334. package/dist/lib/vendor/@floating-ui_dom@1.4.4.js +0 -2
  335. package/dist/lib/vendor/@sxzz_popperjs-es@2.11.7.js +0 -6
  336. package/dist/lib/vendor/@ued_fpi_element-plus-expand@0.7.19.js +0 -245
  337. package/dist/lib/vendor/@vue_reactivity@3.3.4.js +0 -2
  338. package/dist/lib/vendor/@vue_shared@3.3.4.js +0 -39
  339. package/dist/lib/vendor/@vueuse_core@9.13.0_vue@3.3.4.js +0 -219
  340. package/dist/lib/vendor/@vueuse_shared@9.13.0_vue@3.3.4.js +0 -82
  341. package/dist/lib/vendor/async-validator@4.2.5.js +0 -2
  342. package/dist/lib/vendor/axios@1.4.0.js +0 -3211
  343. package/dist/lib/vendor/claygl@1.3.0.js +0 -24255
  344. package/dist/lib/vendor/dayjs@1.11.9.js +0 -98
  345. package/dist/lib/vendor/echarts-gl@2.0.9_echarts@5.4.2.js +0 -20975
  346. package/dist/lib/vendor/echarts@5.4.2.js +0 -79400
  347. package/dist/lib/vendor/element-plus@2.3.7_vue@3.3.4.js +0 -11041
  348. package/dist/lib/vendor/escape-html@1.0.3.js +0 -2
  349. package/dist/lib/vendor/fpi-tg-factor-tools@1.0.4.js +0 -201
  350. package/dist/lib/vendor/lodash-es@4.17.21.js +0 -3265
  351. package/dist/lib/vendor/lodash-unified@1.0.3_tknf7errc3xdqocd3ryzzla7vq.js +0 -2
  352. package/dist/lib/vendor/memoize-one@6.0.0.js +0 -2
  353. package/dist/lib/vendor/normalize-wheel-es@1.2.0.js +0 -2
  354. package/dist/lib/vendor/tslib@2.3.0.js +0 -34
  355. package/dist/lib/vendor/vue-demi@0.14.5_vue@3.3.4.js +0 -4
  356. package/dist/lib/vendor/vue3-seamless-scroll@2.0.1.js +0 -564
  357. package/dist/lib/vendor/zrender@5.4.3.js +0 -17049
@@ -1,3265 +0,0 @@
1
- 'use strict';
2
-
3
- /** Detect free variable `global` from Node.js. */
4
- var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
5
-
6
- const freeGlobal$1 = freeGlobal;
7
-
8
- /** Detect free variable `self`. */
9
- var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
10
-
11
- /** Used as a reference to the global object. */
12
- var root = freeGlobal$1 || freeSelf || Function('return this')();
13
-
14
- const root$1 = root;
15
-
16
- /** Built-in value references. */
17
- var Symbol$1 = root$1.Symbol;
18
-
19
- const Symbol$2 = Symbol$1;
20
-
21
- /** Used for built-in method references. */
22
- var objectProto$b = Object.prototype;
23
-
24
- /** Used to check objects for own properties. */
25
- var hasOwnProperty$8 = objectProto$b.hasOwnProperty;
26
-
27
- /**
28
- * Used to resolve the
29
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
30
- * of values.
31
- */
32
- var nativeObjectToString$1 = objectProto$b.toString;
33
-
34
- /** Built-in value references. */
35
- var symToStringTag$1 = Symbol$2 ? Symbol$2.toStringTag : undefined;
36
-
37
- /**
38
- * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
39
- *
40
- * @private
41
- * @param {*} value The value to query.
42
- * @returns {string} Returns the raw `toStringTag`.
43
- */
44
- function getRawTag(value) {
45
- var isOwn = hasOwnProperty$8.call(value, symToStringTag$1),
46
- tag = value[symToStringTag$1];
47
-
48
- try {
49
- value[symToStringTag$1] = undefined;
50
- var unmasked = true;
51
- } catch (e) {}
52
-
53
- var result = nativeObjectToString$1.call(value);
54
- if (unmasked) {
55
- if (isOwn) {
56
- value[symToStringTag$1] = tag;
57
- } else {
58
- delete value[symToStringTag$1];
59
- }
60
- }
61
- return result;
62
- }
63
-
64
- /** Used for built-in method references. */
65
- var objectProto$a = Object.prototype;
66
-
67
- /**
68
- * Used to resolve the
69
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
70
- * of values.
71
- */
72
- var nativeObjectToString = objectProto$a.toString;
73
-
74
- /**
75
- * Converts `value` to a string using `Object.prototype.toString`.
76
- *
77
- * @private
78
- * @param {*} value The value to convert.
79
- * @returns {string} Returns the converted string.
80
- */
81
- function objectToString(value) {
82
- return nativeObjectToString.call(value);
83
- }
84
-
85
- /** `Object#toString` result references. */
86
- var nullTag = '[object Null]',
87
- undefinedTag = '[object Undefined]';
88
-
89
- /** Built-in value references. */
90
- var symToStringTag = Symbol$2 ? Symbol$2.toStringTag : undefined;
91
-
92
- /**
93
- * The base implementation of `getTag` without fallbacks for buggy environments.
94
- *
95
- * @private
96
- * @param {*} value The value to query.
97
- * @returns {string} Returns the `toStringTag`.
98
- */
99
- function baseGetTag(value) {
100
- if (value == null) {
101
- return value === undefined ? undefinedTag : nullTag;
102
- }
103
- return (symToStringTag && symToStringTag in Object(value))
104
- ? getRawTag(value)
105
- : objectToString(value);
106
- }
107
-
108
- /**
109
- * Checks if `value` is object-like. A value is object-like if it's not `null`
110
- * and has a `typeof` result of "object".
111
- *
112
- * @static
113
- * @memberOf _
114
- * @since 4.0.0
115
- * @category Lang
116
- * @param {*} value The value to check.
117
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
118
- * @example
119
- *
120
- * _.isObjectLike({});
121
- * // => true
122
- *
123
- * _.isObjectLike([1, 2, 3]);
124
- * // => true
125
- *
126
- * _.isObjectLike(_.noop);
127
- * // => false
128
- *
129
- * _.isObjectLike(null);
130
- * // => false
131
- */
132
- function isObjectLike(value) {
133
- return value != null && typeof value == 'object';
134
- }
135
-
136
- /** `Object#toString` result references. */
137
- var symbolTag$1 = '[object Symbol]';
138
-
139
- /**
140
- * Checks if `value` is classified as a `Symbol` primitive or object.
141
- *
142
- * @static
143
- * @memberOf _
144
- * @since 4.0.0
145
- * @category Lang
146
- * @param {*} value The value to check.
147
- * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
148
- * @example
149
- *
150
- * _.isSymbol(Symbol.iterator);
151
- * // => true
152
- *
153
- * _.isSymbol('abc');
154
- * // => false
155
- */
156
- function isSymbol(value) {
157
- return typeof value == 'symbol' ||
158
- (isObjectLike(value) && baseGetTag(value) == symbolTag$1);
159
- }
160
-
161
- /**
162
- * A specialized version of `_.map` for arrays without support for iteratee
163
- * shorthands.
164
- *
165
- * @private
166
- * @param {Array} [array] The array to iterate over.
167
- * @param {Function} iteratee The function invoked per iteration.
168
- * @returns {Array} Returns the new mapped array.
169
- */
170
- function arrayMap(array, iteratee) {
171
- var index = -1,
172
- length = array == null ? 0 : array.length,
173
- result = Array(length);
174
-
175
- while (++index < length) {
176
- result[index] = iteratee(array[index], index, array);
177
- }
178
- return result;
179
- }
180
-
181
- /**
182
- * Checks if `value` is classified as an `Array` object.
183
- *
184
- * @static
185
- * @memberOf _
186
- * @since 0.1.0
187
- * @category Lang
188
- * @param {*} value The value to check.
189
- * @returns {boolean} Returns `true` if `value` is an array, else `false`.
190
- * @example
191
- *
192
- * _.isArray([1, 2, 3]);
193
- * // => true
194
- *
195
- * _.isArray(document.body.children);
196
- * // => false
197
- *
198
- * _.isArray('abc');
199
- * // => false
200
- *
201
- * _.isArray(_.noop);
202
- * // => false
203
- */
204
- var isArray = Array.isArray;
205
-
206
- const isArray$1 = isArray;
207
-
208
- /** Used as references for various `Number` constants. */
209
- var INFINITY$1 = 1 / 0;
210
-
211
- /** Used to convert symbols to primitives and strings. */
212
- var symbolProto$1 = Symbol$2 ? Symbol$2.prototype : undefined,
213
- symbolToString = symbolProto$1 ? symbolProto$1.toString : undefined;
214
-
215
- /**
216
- * The base implementation of `_.toString` which doesn't convert nullish
217
- * values to empty strings.
218
- *
219
- * @private
220
- * @param {*} value The value to process.
221
- * @returns {string} Returns the string.
222
- */
223
- function baseToString(value) {
224
- // Exit early for strings to avoid a performance hit in some environments.
225
- if (typeof value == 'string') {
226
- return value;
227
- }
228
- if (isArray$1(value)) {
229
- // Recursively convert values (susceptible to call stack limits).
230
- return arrayMap(value, baseToString) + '';
231
- }
232
- if (isSymbol(value)) {
233
- return symbolToString ? symbolToString.call(value) : '';
234
- }
235
- var result = (value + '');
236
- return (result == '0' && (1 / value) == -INFINITY$1) ? '-0' : result;
237
- }
238
-
239
- /** Used to match a single whitespace character. */
240
- var reWhitespace = /\s/;
241
-
242
- /**
243
- * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace
244
- * character of `string`.
245
- *
246
- * @private
247
- * @param {string} string The string to inspect.
248
- * @returns {number} Returns the index of the last non-whitespace character.
249
- */
250
- function trimmedEndIndex(string) {
251
- var index = string.length;
252
-
253
- while (index-- && reWhitespace.test(string.charAt(index))) {}
254
- return index;
255
- }
256
-
257
- /** Used to match leading whitespace. */
258
- var reTrimStart = /^\s+/;
259
-
260
- /**
261
- * The base implementation of `_.trim`.
262
- *
263
- * @private
264
- * @param {string} string The string to trim.
265
- * @returns {string} Returns the trimmed string.
266
- */
267
- function baseTrim(string) {
268
- return string
269
- ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')
270
- : string;
271
- }
272
-
273
- /**
274
- * Checks if `value` is the
275
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
276
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
277
- *
278
- * @static
279
- * @memberOf _
280
- * @since 0.1.0
281
- * @category Lang
282
- * @param {*} value The value to check.
283
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
284
- * @example
285
- *
286
- * _.isObject({});
287
- * // => true
288
- *
289
- * _.isObject([1, 2, 3]);
290
- * // => true
291
- *
292
- * _.isObject(_.noop);
293
- * // => true
294
- *
295
- * _.isObject(null);
296
- * // => false
297
- */
298
- function isObject(value) {
299
- var type = typeof value;
300
- return value != null && (type == 'object' || type == 'function');
301
- }
302
-
303
- /** Used as references for various `Number` constants. */
304
- var NAN = 0 / 0;
305
-
306
- /** Used to detect bad signed hexadecimal string values. */
307
- var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
308
-
309
- /** Used to detect binary string values. */
310
- var reIsBinary = /^0b[01]+$/i;
311
-
312
- /** Used to detect octal string values. */
313
- var reIsOctal = /^0o[0-7]+$/i;
314
-
315
- /** Built-in method references without a dependency on `root`. */
316
- var freeParseInt = parseInt;
317
-
318
- /**
319
- * Converts `value` to a number.
320
- *
321
- * @static
322
- * @memberOf _
323
- * @since 4.0.0
324
- * @category Lang
325
- * @param {*} value The value to process.
326
- * @returns {number} Returns the number.
327
- * @example
328
- *
329
- * _.toNumber(3.2);
330
- * // => 3.2
331
- *
332
- * _.toNumber(Number.MIN_VALUE);
333
- * // => 5e-324
334
- *
335
- * _.toNumber(Infinity);
336
- * // => Infinity
337
- *
338
- * _.toNumber('3.2');
339
- * // => 3.2
340
- */
341
- function toNumber(value) {
342
- if (typeof value == 'number') {
343
- return value;
344
- }
345
- if (isSymbol(value)) {
346
- return NAN;
347
- }
348
- if (isObject(value)) {
349
- var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
350
- value = isObject(other) ? (other + '') : other;
351
- }
352
- if (typeof value != 'string') {
353
- return value === 0 ? value : +value;
354
- }
355
- value = baseTrim(value);
356
- var isBinary = reIsBinary.test(value);
357
- return (isBinary || reIsOctal.test(value))
358
- ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
359
- : (reIsBadHex.test(value) ? NAN : +value);
360
- }
361
-
362
- /**
363
- * This method returns the first argument it receives.
364
- *
365
- * @static
366
- * @since 0.1.0
367
- * @memberOf _
368
- * @category Util
369
- * @param {*} value Any value.
370
- * @returns {*} Returns `value`.
371
- * @example
372
- *
373
- * var object = { 'a': 1 };
374
- *
375
- * console.log(_.identity(object) === object);
376
- * // => true
377
- */
378
- function identity(value) {
379
- return value;
380
- }
381
-
382
- /** `Object#toString` result references. */
383
- var asyncTag = '[object AsyncFunction]',
384
- funcTag$1 = '[object Function]',
385
- genTag = '[object GeneratorFunction]',
386
- proxyTag = '[object Proxy]';
387
-
388
- /**
389
- * Checks if `value` is classified as a `Function` object.
390
- *
391
- * @static
392
- * @memberOf _
393
- * @since 0.1.0
394
- * @category Lang
395
- * @param {*} value The value to check.
396
- * @returns {boolean} Returns `true` if `value` is a function, else `false`.
397
- * @example
398
- *
399
- * _.isFunction(_);
400
- * // => true
401
- *
402
- * _.isFunction(/abc/);
403
- * // => false
404
- */
405
- function isFunction(value) {
406
- if (!isObject(value)) {
407
- return false;
408
- }
409
- // The use of `Object#toString` avoids issues with the `typeof` operator
410
- // in Safari 9 which returns 'object' for typed arrays and other constructors.
411
- var tag = baseGetTag(value);
412
- return tag == funcTag$1 || tag == genTag || tag == asyncTag || tag == proxyTag;
413
- }
414
-
415
- /** Used to detect overreaching core-js shims. */
416
- var coreJsData = root$1['__core-js_shared__'];
417
-
418
- const coreJsData$1 = coreJsData;
419
-
420
- /** Used to detect methods masquerading as native. */
421
- var maskSrcKey = (function() {
422
- var uid = /[^.]+$/.exec(coreJsData$1 && coreJsData$1.keys && coreJsData$1.keys.IE_PROTO || '');
423
- return uid ? ('Symbol(src)_1.' + uid) : '';
424
- }());
425
-
426
- /**
427
- * Checks if `func` has its source masked.
428
- *
429
- * @private
430
- * @param {Function} func The function to check.
431
- * @returns {boolean} Returns `true` if `func` is masked, else `false`.
432
- */
433
- function isMasked(func) {
434
- return !!maskSrcKey && (maskSrcKey in func);
435
- }
436
-
437
- /** Used for built-in method references. */
438
- var funcProto$1 = Function.prototype;
439
-
440
- /** Used to resolve the decompiled source of functions. */
441
- var funcToString$1 = funcProto$1.toString;
442
-
443
- /**
444
- * Converts `func` to its source code.
445
- *
446
- * @private
447
- * @param {Function} func The function to convert.
448
- * @returns {string} Returns the source code.
449
- */
450
- function toSource(func) {
451
- if (func != null) {
452
- try {
453
- return funcToString$1.call(func);
454
- } catch (e) {}
455
- try {
456
- return (func + '');
457
- } catch (e) {}
458
- }
459
- return '';
460
- }
461
-
462
- /**
463
- * Used to match `RegExp`
464
- * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
465
- */
466
- var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
467
-
468
- /** Used to detect host constructors (Safari). */
469
- var reIsHostCtor = /^\[object .+?Constructor\]$/;
470
-
471
- /** Used for built-in method references. */
472
- var funcProto = Function.prototype,
473
- objectProto$9 = Object.prototype;
474
-
475
- /** Used to resolve the decompiled source of functions. */
476
- var funcToString = funcProto.toString;
477
-
478
- /** Used to check objects for own properties. */
479
- var hasOwnProperty$7 = objectProto$9.hasOwnProperty;
480
-
481
- /** Used to detect if a method is native. */
482
- var reIsNative = RegExp('^' +
483
- funcToString.call(hasOwnProperty$7).replace(reRegExpChar, '\\$&')
484
- .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
485
- );
486
-
487
- /**
488
- * The base implementation of `_.isNative` without bad shim checks.
489
- *
490
- * @private
491
- * @param {*} value The value to check.
492
- * @returns {boolean} Returns `true` if `value` is a native function,
493
- * else `false`.
494
- */
495
- function baseIsNative(value) {
496
- if (!isObject(value) || isMasked(value)) {
497
- return false;
498
- }
499
- var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
500
- return pattern.test(toSource(value));
501
- }
502
-
503
- /**
504
- * Gets the value at `key` of `object`.
505
- *
506
- * @private
507
- * @param {Object} [object] The object to query.
508
- * @param {string} key The key of the property to get.
509
- * @returns {*} Returns the property value.
510
- */
511
- function getValue(object, key) {
512
- return object == null ? undefined : object[key];
513
- }
514
-
515
- /**
516
- * Gets the native function at `key` of `object`.
517
- *
518
- * @private
519
- * @param {Object} object The object to query.
520
- * @param {string} key The key of the method to get.
521
- * @returns {*} Returns the function if it's native, else `undefined`.
522
- */
523
- function getNative(object, key) {
524
- var value = getValue(object, key);
525
- return baseIsNative(value) ? value : undefined;
526
- }
527
-
528
- /* Built-in method references that are verified to be native. */
529
- var WeakMap = getNative(root$1, 'WeakMap');
530
-
531
- const WeakMap$1 = WeakMap;
532
-
533
- /** Used as references for various `Number` constants. */
534
- var MAX_SAFE_INTEGER$1 = 9007199254740991;
535
-
536
- /** Used to detect unsigned integer values. */
537
- var reIsUint = /^(?:0|[1-9]\d*)$/;
538
-
539
- /**
540
- * Checks if `value` is a valid array-like index.
541
- *
542
- * @private
543
- * @param {*} value The value to check.
544
- * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
545
- * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
546
- */
547
- function isIndex(value, length) {
548
- var type = typeof value;
549
- length = length == null ? MAX_SAFE_INTEGER$1 : length;
550
-
551
- return !!length &&
552
- (type == 'number' ||
553
- (type != 'symbol' && reIsUint.test(value))) &&
554
- (value > -1 && value % 1 == 0 && value < length);
555
- }
556
-
557
- /**
558
- * Performs a
559
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
560
- * comparison between two values to determine if they are equivalent.
561
- *
562
- * @static
563
- * @memberOf _
564
- * @since 4.0.0
565
- * @category Lang
566
- * @param {*} value The value to compare.
567
- * @param {*} other The other value to compare.
568
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
569
- * @example
570
- *
571
- * var object = { 'a': 1 };
572
- * var other = { 'a': 1 };
573
- *
574
- * _.eq(object, object);
575
- * // => true
576
- *
577
- * _.eq(object, other);
578
- * // => false
579
- *
580
- * _.eq('a', 'a');
581
- * // => true
582
- *
583
- * _.eq('a', Object('a'));
584
- * // => false
585
- *
586
- * _.eq(NaN, NaN);
587
- * // => true
588
- */
589
- function eq(value, other) {
590
- return value === other || (value !== value && other !== other);
591
- }
592
-
593
- /** Used as references for various `Number` constants. */
594
- var MAX_SAFE_INTEGER = 9007199254740991;
595
-
596
- /**
597
- * Checks if `value` is a valid array-like length.
598
- *
599
- * **Note:** This method is loosely based on
600
- * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
601
- *
602
- * @static
603
- * @memberOf _
604
- * @since 4.0.0
605
- * @category Lang
606
- * @param {*} value The value to check.
607
- * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
608
- * @example
609
- *
610
- * _.isLength(3);
611
- * // => true
612
- *
613
- * _.isLength(Number.MIN_VALUE);
614
- * // => false
615
- *
616
- * _.isLength(Infinity);
617
- * // => false
618
- *
619
- * _.isLength('3');
620
- * // => false
621
- */
622
- function isLength(value) {
623
- return typeof value == 'number' &&
624
- value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
625
- }
626
-
627
- /**
628
- * Checks if `value` is array-like. A value is considered array-like if it's
629
- * not a function and has a `value.length` that's an integer greater than or
630
- * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
631
- *
632
- * @static
633
- * @memberOf _
634
- * @since 4.0.0
635
- * @category Lang
636
- * @param {*} value The value to check.
637
- * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
638
- * @example
639
- *
640
- * _.isArrayLike([1, 2, 3]);
641
- * // => true
642
- *
643
- * _.isArrayLike(document.body.children);
644
- * // => true
645
- *
646
- * _.isArrayLike('abc');
647
- * // => true
648
- *
649
- * _.isArrayLike(_.noop);
650
- * // => false
651
- */
652
- function isArrayLike(value) {
653
- return value != null && isLength(value.length) && !isFunction(value);
654
- }
655
-
656
- /** Used for built-in method references. */
657
- var objectProto$8 = Object.prototype;
658
-
659
- /**
660
- * Checks if `value` is likely a prototype object.
661
- *
662
- * @private
663
- * @param {*} value The value to check.
664
- * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
665
- */
666
- function isPrototype(value) {
667
- var Ctor = value && value.constructor,
668
- proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$8;
669
-
670
- return value === proto;
671
- }
672
-
673
- /**
674
- * The base implementation of `_.times` without support for iteratee shorthands
675
- * or max array length checks.
676
- *
677
- * @private
678
- * @param {number} n The number of times to invoke `iteratee`.
679
- * @param {Function} iteratee The function invoked per iteration.
680
- * @returns {Array} Returns the array of results.
681
- */
682
- function baseTimes(n, iteratee) {
683
- var index = -1,
684
- result = Array(n);
685
-
686
- while (++index < n) {
687
- result[index] = iteratee(index);
688
- }
689
- return result;
690
- }
691
-
692
- /** `Object#toString` result references. */
693
- var argsTag$2 = '[object Arguments]';
694
-
695
- /**
696
- * The base implementation of `_.isArguments`.
697
- *
698
- * @private
699
- * @param {*} value The value to check.
700
- * @returns {boolean} Returns `true` if `value` is an `arguments` object,
701
- */
702
- function baseIsArguments(value) {
703
- return isObjectLike(value) && baseGetTag(value) == argsTag$2;
704
- }
705
-
706
- /** Used for built-in method references. */
707
- var objectProto$7 = Object.prototype;
708
-
709
- /** Used to check objects for own properties. */
710
- var hasOwnProperty$6 = objectProto$7.hasOwnProperty;
711
-
712
- /** Built-in value references. */
713
- var propertyIsEnumerable$1 = objectProto$7.propertyIsEnumerable;
714
-
715
- /**
716
- * Checks if `value` is likely an `arguments` object.
717
- *
718
- * @static
719
- * @memberOf _
720
- * @since 0.1.0
721
- * @category Lang
722
- * @param {*} value The value to check.
723
- * @returns {boolean} Returns `true` if `value` is an `arguments` object,
724
- * else `false`.
725
- * @example
726
- *
727
- * _.isArguments(function() { return arguments; }());
728
- * // => true
729
- *
730
- * _.isArguments([1, 2, 3]);
731
- * // => false
732
- */
733
- var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
734
- return isObjectLike(value) && hasOwnProperty$6.call(value, 'callee') &&
735
- !propertyIsEnumerable$1.call(value, 'callee');
736
- };
737
-
738
- const isArguments$1 = isArguments;
739
-
740
- /**
741
- * This method returns `false`.
742
- *
743
- * @static
744
- * @memberOf _
745
- * @since 4.13.0
746
- * @category Util
747
- * @returns {boolean} Returns `false`.
748
- * @example
749
- *
750
- * _.times(2, _.stubFalse);
751
- * // => [false, false]
752
- */
753
- function stubFalse() {
754
- return false;
755
- }
756
-
757
- /** Detect free variable `exports`. */
758
- var freeExports$1 = typeof exports == 'object' && exports && !exports.nodeType && exports;
759
-
760
- /** Detect free variable `module`. */
761
- var freeModule$1 = freeExports$1 && typeof module == 'object' && module && !module.nodeType && module;
762
-
763
- /** Detect the popular CommonJS extension `module.exports`. */
764
- var moduleExports$1 = freeModule$1 && freeModule$1.exports === freeExports$1;
765
-
766
- /** Built-in value references. */
767
- var Buffer = moduleExports$1 ? root$1.Buffer : undefined;
768
-
769
- /* Built-in method references for those with the same name as other `lodash` methods. */
770
- var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
771
-
772
- /**
773
- * Checks if `value` is a buffer.
774
- *
775
- * @static
776
- * @memberOf _
777
- * @since 4.3.0
778
- * @category Lang
779
- * @param {*} value The value to check.
780
- * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
781
- * @example
782
- *
783
- * _.isBuffer(new Buffer(2));
784
- * // => true
785
- *
786
- * _.isBuffer(new Uint8Array(2));
787
- * // => false
788
- */
789
- var isBuffer = nativeIsBuffer || stubFalse;
790
-
791
- const isBuffer$1 = isBuffer;
792
-
793
- /** `Object#toString` result references. */
794
- var argsTag$1 = '[object Arguments]',
795
- arrayTag$1 = '[object Array]',
796
- boolTag$1 = '[object Boolean]',
797
- dateTag$1 = '[object Date]',
798
- errorTag$1 = '[object Error]',
799
- funcTag = '[object Function]',
800
- mapTag$2 = '[object Map]',
801
- numberTag$1 = '[object Number]',
802
- objectTag$2 = '[object Object]',
803
- regexpTag$1 = '[object RegExp]',
804
- setTag$2 = '[object Set]',
805
- stringTag$1 = '[object String]',
806
- weakMapTag$1 = '[object WeakMap]';
807
-
808
- var arrayBufferTag$1 = '[object ArrayBuffer]',
809
- dataViewTag$2 = '[object DataView]',
810
- float32Tag = '[object Float32Array]',
811
- float64Tag = '[object Float64Array]',
812
- int8Tag = '[object Int8Array]',
813
- int16Tag = '[object Int16Array]',
814
- int32Tag = '[object Int32Array]',
815
- uint8Tag = '[object Uint8Array]',
816
- uint8ClampedTag = '[object Uint8ClampedArray]',
817
- uint16Tag = '[object Uint16Array]',
818
- uint32Tag = '[object Uint32Array]';
819
-
820
- /** Used to identify `toStringTag` values of typed arrays. */
821
- var typedArrayTags = {};
822
- typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
823
- typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
824
- typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
825
- typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
826
- typedArrayTags[uint32Tag] = true;
827
- typedArrayTags[argsTag$1] = typedArrayTags[arrayTag$1] =
828
- typedArrayTags[arrayBufferTag$1] = typedArrayTags[boolTag$1] =
829
- typedArrayTags[dataViewTag$2] = typedArrayTags[dateTag$1] =
830
- typedArrayTags[errorTag$1] = typedArrayTags[funcTag] =
831
- typedArrayTags[mapTag$2] = typedArrayTags[numberTag$1] =
832
- typedArrayTags[objectTag$2] = typedArrayTags[regexpTag$1] =
833
- typedArrayTags[setTag$2] = typedArrayTags[stringTag$1] =
834
- typedArrayTags[weakMapTag$1] = false;
835
-
836
- /**
837
- * The base implementation of `_.isTypedArray` without Node.js optimizations.
838
- *
839
- * @private
840
- * @param {*} value The value to check.
841
- * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
842
- */
843
- function baseIsTypedArray(value) {
844
- return isObjectLike(value) &&
845
- isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
846
- }
847
-
848
- /**
849
- * The base implementation of `_.unary` without support for storing metadata.
850
- *
851
- * @private
852
- * @param {Function} func The function to cap arguments for.
853
- * @returns {Function} Returns the new capped function.
854
- */
855
- function baseUnary(func) {
856
- return function(value) {
857
- return func(value);
858
- };
859
- }
860
-
861
- /** Detect free variable `exports`. */
862
- var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;
863
-
864
- /** Detect free variable `module`. */
865
- var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
866
-
867
- /** Detect the popular CommonJS extension `module.exports`. */
868
- var moduleExports = freeModule && freeModule.exports === freeExports;
869
-
870
- /** Detect free variable `process` from Node.js. */
871
- var freeProcess = moduleExports && freeGlobal$1.process;
872
-
873
- /** Used to access faster Node.js helpers. */
874
- var nodeUtil = (function() {
875
- try {
876
- // Use `util.types` for Node.js 10+.
877
- var types = freeModule && freeModule.require && freeModule.require('util').types;
878
-
879
- if (types) {
880
- return types;
881
- }
882
-
883
- // Legacy `process.binding('util')` for Node.js < 10.
884
- return freeProcess && freeProcess.binding && freeProcess.binding('util');
885
- } catch (e) {}
886
- }());
887
-
888
- const nodeUtil$1 = nodeUtil;
889
-
890
- /* Node.js helper references. */
891
- var nodeIsTypedArray = nodeUtil$1 && nodeUtil$1.isTypedArray;
892
-
893
- /**
894
- * Checks if `value` is classified as a typed array.
895
- *
896
- * @static
897
- * @memberOf _
898
- * @since 3.0.0
899
- * @category Lang
900
- * @param {*} value The value to check.
901
- * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
902
- * @example
903
- *
904
- * _.isTypedArray(new Uint8Array);
905
- * // => true
906
- *
907
- * _.isTypedArray([]);
908
- * // => false
909
- */
910
- var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
911
-
912
- const isTypedArray$1 = isTypedArray;
913
-
914
- /** Used for built-in method references. */
915
- var objectProto$6 = Object.prototype;
916
-
917
- /** Used to check objects for own properties. */
918
- var hasOwnProperty$5 = objectProto$6.hasOwnProperty;
919
-
920
- /**
921
- * Creates an array of the enumerable property names of the array-like `value`.
922
- *
923
- * @private
924
- * @param {*} value The value to query.
925
- * @param {boolean} inherited Specify returning inherited property names.
926
- * @returns {Array} Returns the array of property names.
927
- */
928
- function arrayLikeKeys(value, inherited) {
929
- var isArr = isArray$1(value),
930
- isArg = !isArr && isArguments$1(value),
931
- isBuff = !isArr && !isArg && isBuffer$1(value),
932
- isType = !isArr && !isArg && !isBuff && isTypedArray$1(value),
933
- skipIndexes = isArr || isArg || isBuff || isType,
934
- result = skipIndexes ? baseTimes(value.length, String) : [],
935
- length = result.length;
936
-
937
- for (var key in value) {
938
- if ((inherited || hasOwnProperty$5.call(value, key)) &&
939
- !(skipIndexes && (
940
- // Safari 9 has enumerable `arguments.length` in strict mode.
941
- key == 'length' ||
942
- // Node.js 0.10 has enumerable non-index properties on buffers.
943
- (isBuff && (key == 'offset' || key == 'parent')) ||
944
- // PhantomJS 2 has enumerable non-index properties on typed arrays.
945
- (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
946
- // Skip index properties.
947
- isIndex(key, length)
948
- ))) {
949
- result.push(key);
950
- }
951
- }
952
- return result;
953
- }
954
-
955
- /**
956
- * Creates a unary function that invokes `func` with its argument transformed.
957
- *
958
- * @private
959
- * @param {Function} func The function to wrap.
960
- * @param {Function} transform The argument transform.
961
- * @returns {Function} Returns the new function.
962
- */
963
- function overArg(func, transform) {
964
- return function(arg) {
965
- return func(transform(arg));
966
- };
967
- }
968
-
969
- /* Built-in method references for those with the same name as other `lodash` methods. */
970
- var nativeKeys = overArg(Object.keys, Object);
971
-
972
- const nativeKeys$1 = nativeKeys;
973
-
974
- /** Used for built-in method references. */
975
- var objectProto$5 = Object.prototype;
976
-
977
- /** Used to check objects for own properties. */
978
- var hasOwnProperty$4 = objectProto$5.hasOwnProperty;
979
-
980
- /**
981
- * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
982
- *
983
- * @private
984
- * @param {Object} object The object to query.
985
- * @returns {Array} Returns the array of property names.
986
- */
987
- function baseKeys(object) {
988
- if (!isPrototype(object)) {
989
- return nativeKeys$1(object);
990
- }
991
- var result = [];
992
- for (var key in Object(object)) {
993
- if (hasOwnProperty$4.call(object, key) && key != 'constructor') {
994
- result.push(key);
995
- }
996
- }
997
- return result;
998
- }
999
-
1000
- /**
1001
- * Creates an array of the own enumerable property names of `object`.
1002
- *
1003
- * **Note:** Non-object values are coerced to objects. See the
1004
- * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
1005
- * for more details.
1006
- *
1007
- * @static
1008
- * @since 0.1.0
1009
- * @memberOf _
1010
- * @category Object
1011
- * @param {Object} object The object to query.
1012
- * @returns {Array} Returns the array of property names.
1013
- * @example
1014
- *
1015
- * function Foo() {
1016
- * this.a = 1;
1017
- * this.b = 2;
1018
- * }
1019
- *
1020
- * Foo.prototype.c = 3;
1021
- *
1022
- * _.keys(new Foo);
1023
- * // => ['a', 'b'] (iteration order is not guaranteed)
1024
- *
1025
- * _.keys('hi');
1026
- * // => ['0', '1']
1027
- */
1028
- function keys(object) {
1029
- return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
1030
- }
1031
-
1032
- /** Used to match property names within property paths. */
1033
- var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
1034
- reIsPlainProp = /^\w*$/;
1035
-
1036
- /**
1037
- * Checks if `value` is a property name and not a property path.
1038
- *
1039
- * @private
1040
- * @param {*} value The value to check.
1041
- * @param {Object} [object] The object to query keys on.
1042
- * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
1043
- */
1044
- function isKey(value, object) {
1045
- if (isArray$1(value)) {
1046
- return false;
1047
- }
1048
- var type = typeof value;
1049
- if (type == 'number' || type == 'symbol' || type == 'boolean' ||
1050
- value == null || isSymbol(value)) {
1051
- return true;
1052
- }
1053
- return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
1054
- (object != null && value in Object(object));
1055
- }
1056
-
1057
- /* Built-in method references that are verified to be native. */
1058
- var nativeCreate = getNative(Object, 'create');
1059
-
1060
- const nativeCreate$1 = nativeCreate;
1061
-
1062
- /**
1063
- * Removes all key-value entries from the hash.
1064
- *
1065
- * @private
1066
- * @name clear
1067
- * @memberOf Hash
1068
- */
1069
- function hashClear() {
1070
- this.__data__ = nativeCreate$1 ? nativeCreate$1(null) : {};
1071
- this.size = 0;
1072
- }
1073
-
1074
- /**
1075
- * Removes `key` and its value from the hash.
1076
- *
1077
- * @private
1078
- * @name delete
1079
- * @memberOf Hash
1080
- * @param {Object} hash The hash to modify.
1081
- * @param {string} key The key of the value to remove.
1082
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1083
- */
1084
- function hashDelete(key) {
1085
- var result = this.has(key) && delete this.__data__[key];
1086
- this.size -= result ? 1 : 0;
1087
- return result;
1088
- }
1089
-
1090
- /** Used to stand-in for `undefined` hash values. */
1091
- var HASH_UNDEFINED$2 = '__lodash_hash_undefined__';
1092
-
1093
- /** Used for built-in method references. */
1094
- var objectProto$4 = Object.prototype;
1095
-
1096
- /** Used to check objects for own properties. */
1097
- var hasOwnProperty$3 = objectProto$4.hasOwnProperty;
1098
-
1099
- /**
1100
- * Gets the hash value for `key`.
1101
- *
1102
- * @private
1103
- * @name get
1104
- * @memberOf Hash
1105
- * @param {string} key The key of the value to get.
1106
- * @returns {*} Returns the entry value.
1107
- */
1108
- function hashGet(key) {
1109
- var data = this.__data__;
1110
- if (nativeCreate$1) {
1111
- var result = data[key];
1112
- return result === HASH_UNDEFINED$2 ? undefined : result;
1113
- }
1114
- return hasOwnProperty$3.call(data, key) ? data[key] : undefined;
1115
- }
1116
-
1117
- /** Used for built-in method references. */
1118
- var objectProto$3 = Object.prototype;
1119
-
1120
- /** Used to check objects for own properties. */
1121
- var hasOwnProperty$2 = objectProto$3.hasOwnProperty;
1122
-
1123
- /**
1124
- * Checks if a hash value for `key` exists.
1125
- *
1126
- * @private
1127
- * @name has
1128
- * @memberOf Hash
1129
- * @param {string} key The key of the entry to check.
1130
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1131
- */
1132
- function hashHas(key) {
1133
- var data = this.__data__;
1134
- return nativeCreate$1 ? (data[key] !== undefined) : hasOwnProperty$2.call(data, key);
1135
- }
1136
-
1137
- /** Used to stand-in for `undefined` hash values. */
1138
- var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
1139
-
1140
- /**
1141
- * Sets the hash `key` to `value`.
1142
- *
1143
- * @private
1144
- * @name set
1145
- * @memberOf Hash
1146
- * @param {string} key The key of the value to set.
1147
- * @param {*} value The value to set.
1148
- * @returns {Object} Returns the hash instance.
1149
- */
1150
- function hashSet(key, value) {
1151
- var data = this.__data__;
1152
- this.size += this.has(key) ? 0 : 1;
1153
- data[key] = (nativeCreate$1 && value === undefined) ? HASH_UNDEFINED$1 : value;
1154
- return this;
1155
- }
1156
-
1157
- /**
1158
- * Creates a hash object.
1159
- *
1160
- * @private
1161
- * @constructor
1162
- * @param {Array} [entries] The key-value pairs to cache.
1163
- */
1164
- function Hash(entries) {
1165
- var index = -1,
1166
- length = entries == null ? 0 : entries.length;
1167
-
1168
- this.clear();
1169
- while (++index < length) {
1170
- var entry = entries[index];
1171
- this.set(entry[0], entry[1]);
1172
- }
1173
- }
1174
-
1175
- // Add methods to `Hash`.
1176
- Hash.prototype.clear = hashClear;
1177
- Hash.prototype['delete'] = hashDelete;
1178
- Hash.prototype.get = hashGet;
1179
- Hash.prototype.has = hashHas;
1180
- Hash.prototype.set = hashSet;
1181
-
1182
- /**
1183
- * Removes all key-value entries from the list cache.
1184
- *
1185
- * @private
1186
- * @name clear
1187
- * @memberOf ListCache
1188
- */
1189
- function listCacheClear() {
1190
- this.__data__ = [];
1191
- this.size = 0;
1192
- }
1193
-
1194
- /**
1195
- * Gets the index at which the `key` is found in `array` of key-value pairs.
1196
- *
1197
- * @private
1198
- * @param {Array} array The array to inspect.
1199
- * @param {*} key The key to search for.
1200
- * @returns {number} Returns the index of the matched value, else `-1`.
1201
- */
1202
- function assocIndexOf(array, key) {
1203
- var length = array.length;
1204
- while (length--) {
1205
- if (eq(array[length][0], key)) {
1206
- return length;
1207
- }
1208
- }
1209
- return -1;
1210
- }
1211
-
1212
- /** Used for built-in method references. */
1213
- var arrayProto = Array.prototype;
1214
-
1215
- /** Built-in value references. */
1216
- var splice = arrayProto.splice;
1217
-
1218
- /**
1219
- * Removes `key` and its value from the list cache.
1220
- *
1221
- * @private
1222
- * @name delete
1223
- * @memberOf ListCache
1224
- * @param {string} key The key of the value to remove.
1225
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1226
- */
1227
- function listCacheDelete(key) {
1228
- var data = this.__data__,
1229
- index = assocIndexOf(data, key);
1230
-
1231
- if (index < 0) {
1232
- return false;
1233
- }
1234
- var lastIndex = data.length - 1;
1235
- if (index == lastIndex) {
1236
- data.pop();
1237
- } else {
1238
- splice.call(data, index, 1);
1239
- }
1240
- --this.size;
1241
- return true;
1242
- }
1243
-
1244
- /**
1245
- * Gets the list cache value for `key`.
1246
- *
1247
- * @private
1248
- * @name get
1249
- * @memberOf ListCache
1250
- * @param {string} key The key of the value to get.
1251
- * @returns {*} Returns the entry value.
1252
- */
1253
- function listCacheGet(key) {
1254
- var data = this.__data__,
1255
- index = assocIndexOf(data, key);
1256
-
1257
- return index < 0 ? undefined : data[index][1];
1258
- }
1259
-
1260
- /**
1261
- * Checks if a list cache value for `key` exists.
1262
- *
1263
- * @private
1264
- * @name has
1265
- * @memberOf ListCache
1266
- * @param {string} key The key of the entry to check.
1267
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1268
- */
1269
- function listCacheHas(key) {
1270
- return assocIndexOf(this.__data__, key) > -1;
1271
- }
1272
-
1273
- /**
1274
- * Sets the list cache `key` to `value`.
1275
- *
1276
- * @private
1277
- * @name set
1278
- * @memberOf ListCache
1279
- * @param {string} key The key of the value to set.
1280
- * @param {*} value The value to set.
1281
- * @returns {Object} Returns the list cache instance.
1282
- */
1283
- function listCacheSet(key, value) {
1284
- var data = this.__data__,
1285
- index = assocIndexOf(data, key);
1286
-
1287
- if (index < 0) {
1288
- ++this.size;
1289
- data.push([key, value]);
1290
- } else {
1291
- data[index][1] = value;
1292
- }
1293
- return this;
1294
- }
1295
-
1296
- /**
1297
- * Creates an list cache object.
1298
- *
1299
- * @private
1300
- * @constructor
1301
- * @param {Array} [entries] The key-value pairs to cache.
1302
- */
1303
- function ListCache(entries) {
1304
- var index = -1,
1305
- length = entries == null ? 0 : entries.length;
1306
-
1307
- this.clear();
1308
- while (++index < length) {
1309
- var entry = entries[index];
1310
- this.set(entry[0], entry[1]);
1311
- }
1312
- }
1313
-
1314
- // Add methods to `ListCache`.
1315
- ListCache.prototype.clear = listCacheClear;
1316
- ListCache.prototype['delete'] = listCacheDelete;
1317
- ListCache.prototype.get = listCacheGet;
1318
- ListCache.prototype.has = listCacheHas;
1319
- ListCache.prototype.set = listCacheSet;
1320
-
1321
- /* Built-in method references that are verified to be native. */
1322
- var Map = getNative(root$1, 'Map');
1323
-
1324
- const Map$1 = Map;
1325
-
1326
- /**
1327
- * Removes all key-value entries from the map.
1328
- *
1329
- * @private
1330
- * @name clear
1331
- * @memberOf MapCache
1332
- */
1333
- function mapCacheClear() {
1334
- this.size = 0;
1335
- this.__data__ = {
1336
- 'hash': new Hash,
1337
- 'map': new (Map$1 || ListCache),
1338
- 'string': new Hash
1339
- };
1340
- }
1341
-
1342
- /**
1343
- * Checks if `value` is suitable for use as unique object key.
1344
- *
1345
- * @private
1346
- * @param {*} value The value to check.
1347
- * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
1348
- */
1349
- function isKeyable(value) {
1350
- var type = typeof value;
1351
- return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
1352
- ? (value !== '__proto__')
1353
- : (value === null);
1354
- }
1355
-
1356
- /**
1357
- * Gets the data for `map`.
1358
- *
1359
- * @private
1360
- * @param {Object} map The map to query.
1361
- * @param {string} key The reference key.
1362
- * @returns {*} Returns the map data.
1363
- */
1364
- function getMapData(map, key) {
1365
- var data = map.__data__;
1366
- return isKeyable(key)
1367
- ? data[typeof key == 'string' ? 'string' : 'hash']
1368
- : data.map;
1369
- }
1370
-
1371
- /**
1372
- * Removes `key` and its value from the map.
1373
- *
1374
- * @private
1375
- * @name delete
1376
- * @memberOf MapCache
1377
- * @param {string} key The key of the value to remove.
1378
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1379
- */
1380
- function mapCacheDelete(key) {
1381
- var result = getMapData(this, key)['delete'](key);
1382
- this.size -= result ? 1 : 0;
1383
- return result;
1384
- }
1385
-
1386
- /**
1387
- * Gets the map value for `key`.
1388
- *
1389
- * @private
1390
- * @name get
1391
- * @memberOf MapCache
1392
- * @param {string} key The key of the value to get.
1393
- * @returns {*} Returns the entry value.
1394
- */
1395
- function mapCacheGet(key) {
1396
- return getMapData(this, key).get(key);
1397
- }
1398
-
1399
- /**
1400
- * Checks if a map value for `key` exists.
1401
- *
1402
- * @private
1403
- * @name has
1404
- * @memberOf MapCache
1405
- * @param {string} key The key of the entry to check.
1406
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1407
- */
1408
- function mapCacheHas(key) {
1409
- return getMapData(this, key).has(key);
1410
- }
1411
-
1412
- /**
1413
- * Sets the map `key` to `value`.
1414
- *
1415
- * @private
1416
- * @name set
1417
- * @memberOf MapCache
1418
- * @param {string} key The key of the value to set.
1419
- * @param {*} value The value to set.
1420
- * @returns {Object} Returns the map cache instance.
1421
- */
1422
- function mapCacheSet(key, value) {
1423
- var data = getMapData(this, key),
1424
- size = data.size;
1425
-
1426
- data.set(key, value);
1427
- this.size += data.size == size ? 0 : 1;
1428
- return this;
1429
- }
1430
-
1431
- /**
1432
- * Creates a map cache object to store key-value pairs.
1433
- *
1434
- * @private
1435
- * @constructor
1436
- * @param {Array} [entries] The key-value pairs to cache.
1437
- */
1438
- function MapCache(entries) {
1439
- var index = -1,
1440
- length = entries == null ? 0 : entries.length;
1441
-
1442
- this.clear();
1443
- while (++index < length) {
1444
- var entry = entries[index];
1445
- this.set(entry[0], entry[1]);
1446
- }
1447
- }
1448
-
1449
- // Add methods to `MapCache`.
1450
- MapCache.prototype.clear = mapCacheClear;
1451
- MapCache.prototype['delete'] = mapCacheDelete;
1452
- MapCache.prototype.get = mapCacheGet;
1453
- MapCache.prototype.has = mapCacheHas;
1454
- MapCache.prototype.set = mapCacheSet;
1455
-
1456
- /** Error message constants. */
1457
- var FUNC_ERROR_TEXT$1 = 'Expected a function';
1458
-
1459
- /**
1460
- * Creates a function that memoizes the result of `func`. If `resolver` is
1461
- * provided, it determines the cache key for storing the result based on the
1462
- * arguments provided to the memoized function. By default, the first argument
1463
- * provided to the memoized function is used as the map cache key. The `func`
1464
- * is invoked with the `this` binding of the memoized function.
1465
- *
1466
- * **Note:** The cache is exposed as the `cache` property on the memoized
1467
- * function. Its creation may be customized by replacing the `_.memoize.Cache`
1468
- * constructor with one whose instances implement the
1469
- * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
1470
- * method interface of `clear`, `delete`, `get`, `has`, and `set`.
1471
- *
1472
- * @static
1473
- * @memberOf _
1474
- * @since 0.1.0
1475
- * @category Function
1476
- * @param {Function} func The function to have its output memoized.
1477
- * @param {Function} [resolver] The function to resolve the cache key.
1478
- * @returns {Function} Returns the new memoized function.
1479
- * @example
1480
- *
1481
- * var object = { 'a': 1, 'b': 2 };
1482
- * var other = { 'c': 3, 'd': 4 };
1483
- *
1484
- * var values = _.memoize(_.values);
1485
- * values(object);
1486
- * // => [1, 2]
1487
- *
1488
- * values(other);
1489
- * // => [3, 4]
1490
- *
1491
- * object.a = 2;
1492
- * values(object);
1493
- * // => [1, 2]
1494
- *
1495
- * // Modify the result cache.
1496
- * values.cache.set(object, ['a', 'b']);
1497
- * values(object);
1498
- * // => ['a', 'b']
1499
- *
1500
- * // Replace `_.memoize.Cache`.
1501
- * _.memoize.Cache = WeakMap;
1502
- */
1503
- function memoize(func, resolver) {
1504
- if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
1505
- throw new TypeError(FUNC_ERROR_TEXT$1);
1506
- }
1507
- var memoized = function() {
1508
- var args = arguments,
1509
- key = resolver ? resolver.apply(this, args) : args[0],
1510
- cache = memoized.cache;
1511
-
1512
- if (cache.has(key)) {
1513
- return cache.get(key);
1514
- }
1515
- var result = func.apply(this, args);
1516
- memoized.cache = cache.set(key, result) || cache;
1517
- return result;
1518
- };
1519
- memoized.cache = new (memoize.Cache || MapCache);
1520
- return memoized;
1521
- }
1522
-
1523
- // Expose `MapCache`.
1524
- memoize.Cache = MapCache;
1525
-
1526
- /** Used as the maximum memoize cache size. */
1527
- var MAX_MEMOIZE_SIZE = 500;
1528
-
1529
- /**
1530
- * A specialized version of `_.memoize` which clears the memoized function's
1531
- * cache when it exceeds `MAX_MEMOIZE_SIZE`.
1532
- *
1533
- * @private
1534
- * @param {Function} func The function to have its output memoized.
1535
- * @returns {Function} Returns the new memoized function.
1536
- */
1537
- function memoizeCapped(func) {
1538
- var result = memoize(func, function(key) {
1539
- if (cache.size === MAX_MEMOIZE_SIZE) {
1540
- cache.clear();
1541
- }
1542
- return key;
1543
- });
1544
-
1545
- var cache = result.cache;
1546
- return result;
1547
- }
1548
-
1549
- /** Used to match property names within property paths. */
1550
- var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
1551
-
1552
- /** Used to match backslashes in property paths. */
1553
- var reEscapeChar = /\\(\\)?/g;
1554
-
1555
- /**
1556
- * Converts `string` to a property path array.
1557
- *
1558
- * @private
1559
- * @param {string} string The string to convert.
1560
- * @returns {Array} Returns the property path array.
1561
- */
1562
- var stringToPath = memoizeCapped(function(string) {
1563
- var result = [];
1564
- if (string.charCodeAt(0) === 46 /* . */) {
1565
- result.push('');
1566
- }
1567
- string.replace(rePropName, function(match, number, quote, subString) {
1568
- result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
1569
- });
1570
- return result;
1571
- });
1572
-
1573
- const stringToPath$1 = stringToPath;
1574
-
1575
- /**
1576
- * Converts `value` to a string. An empty string is returned for `null`
1577
- * and `undefined` values. The sign of `-0` is preserved.
1578
- *
1579
- * @static
1580
- * @memberOf _
1581
- * @since 4.0.0
1582
- * @category Lang
1583
- * @param {*} value The value to convert.
1584
- * @returns {string} Returns the converted string.
1585
- * @example
1586
- *
1587
- * _.toString(null);
1588
- * // => ''
1589
- *
1590
- * _.toString(-0);
1591
- * // => '-0'
1592
- *
1593
- * _.toString([1, 2, 3]);
1594
- * // => '1,2,3'
1595
- */
1596
- function toString(value) {
1597
- return value == null ? '' : baseToString(value);
1598
- }
1599
-
1600
- /**
1601
- * Casts `value` to a path array if it's not one.
1602
- *
1603
- * @private
1604
- * @param {*} value The value to inspect.
1605
- * @param {Object} [object] The object to query keys on.
1606
- * @returns {Array} Returns the cast property path array.
1607
- */
1608
- function castPath(value, object) {
1609
- if (isArray$1(value)) {
1610
- return value;
1611
- }
1612
- return isKey(value, object) ? [value] : stringToPath$1(toString(value));
1613
- }
1614
-
1615
- /** Used as references for various `Number` constants. */
1616
- var INFINITY = 1 / 0;
1617
-
1618
- /**
1619
- * Converts `value` to a string key if it's not a string or symbol.
1620
- *
1621
- * @private
1622
- * @param {*} value The value to inspect.
1623
- * @returns {string|symbol} Returns the key.
1624
- */
1625
- function toKey(value) {
1626
- if (typeof value == 'string' || isSymbol(value)) {
1627
- return value;
1628
- }
1629
- var result = (value + '');
1630
- return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
1631
- }
1632
-
1633
- /**
1634
- * The base implementation of `_.get` without support for default values.
1635
- *
1636
- * @private
1637
- * @param {Object} object The object to query.
1638
- * @param {Array|string} path The path of the property to get.
1639
- * @returns {*} Returns the resolved value.
1640
- */
1641
- function baseGet(object, path) {
1642
- path = castPath(path, object);
1643
-
1644
- var index = 0,
1645
- length = path.length;
1646
-
1647
- while (object != null && index < length) {
1648
- object = object[toKey(path[index++])];
1649
- }
1650
- return (index && index == length) ? object : undefined;
1651
- }
1652
-
1653
- /**
1654
- * Gets the value at `path` of `object`. If the resolved value is
1655
- * `undefined`, the `defaultValue` is returned in its place.
1656
- *
1657
- * @static
1658
- * @memberOf _
1659
- * @since 3.7.0
1660
- * @category Object
1661
- * @param {Object} object The object to query.
1662
- * @param {Array|string} path The path of the property to get.
1663
- * @param {*} [defaultValue] The value returned for `undefined` resolved values.
1664
- * @returns {*} Returns the resolved value.
1665
- * @example
1666
- *
1667
- * var object = { 'a': [{ 'b': { 'c': 3 } }] };
1668
- *
1669
- * _.get(object, 'a[0].b.c');
1670
- * // => 3
1671
- *
1672
- * _.get(object, ['a', '0', 'b', 'c']);
1673
- * // => 3
1674
- *
1675
- * _.get(object, 'a.b.c', 'default');
1676
- * // => 'default'
1677
- */
1678
- function get(object, path, defaultValue) {
1679
- var result = object == null ? undefined : baseGet(object, path);
1680
- return result === undefined ? defaultValue : result;
1681
- }
1682
-
1683
- /**
1684
- * Appends the elements of `values` to `array`.
1685
- *
1686
- * @private
1687
- * @param {Array} array The array to modify.
1688
- * @param {Array} values The values to append.
1689
- * @returns {Array} Returns `array`.
1690
- */
1691
- function arrayPush(array, values) {
1692
- var index = -1,
1693
- length = values.length,
1694
- offset = array.length;
1695
-
1696
- while (++index < length) {
1697
- array[offset + index] = values[index];
1698
- }
1699
- return array;
1700
- }
1701
-
1702
- /** Built-in value references. */
1703
- var spreadableSymbol = Symbol$2 ? Symbol$2.isConcatSpreadable : undefined;
1704
-
1705
- /**
1706
- * Checks if `value` is a flattenable `arguments` object or array.
1707
- *
1708
- * @private
1709
- * @param {*} value The value to check.
1710
- * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
1711
- */
1712
- function isFlattenable(value) {
1713
- return isArray$1(value) || isArguments$1(value) ||
1714
- !!(spreadableSymbol && value && value[spreadableSymbol]);
1715
- }
1716
-
1717
- /**
1718
- * The base implementation of `_.flatten` with support for restricting flattening.
1719
- *
1720
- * @private
1721
- * @param {Array} array The array to flatten.
1722
- * @param {number} depth The maximum recursion depth.
1723
- * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
1724
- * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
1725
- * @param {Array} [result=[]] The initial result value.
1726
- * @returns {Array} Returns the new flattened array.
1727
- */
1728
- function baseFlatten(array, depth, predicate, isStrict, result) {
1729
- var index = -1,
1730
- length = array.length;
1731
-
1732
- predicate || (predicate = isFlattenable);
1733
- result || (result = []);
1734
-
1735
- while (++index < length) {
1736
- var value = array[index];
1737
- if (depth > 0 && predicate(value)) {
1738
- if (depth > 1) {
1739
- // Recursively flatten arrays (susceptible to call stack limits).
1740
- baseFlatten(value, depth - 1, predicate, isStrict, result);
1741
- } else {
1742
- arrayPush(result, value);
1743
- }
1744
- } else if (!isStrict) {
1745
- result[result.length] = value;
1746
- }
1747
- }
1748
- return result;
1749
- }
1750
-
1751
- /**
1752
- * Flattens `array` a single level deep.
1753
- *
1754
- * @static
1755
- * @memberOf _
1756
- * @since 0.1.0
1757
- * @category Array
1758
- * @param {Array} array The array to flatten.
1759
- * @returns {Array} Returns the new flattened array.
1760
- * @example
1761
- *
1762
- * _.flatten([1, [2, [3, [4]], 5]]);
1763
- * // => [1, 2, [3, [4]], 5]
1764
- */
1765
- function flatten(array) {
1766
- var length = array == null ? 0 : array.length;
1767
- return length ? baseFlatten(array, 1) : [];
1768
- }
1769
-
1770
- /**
1771
- * Removes all key-value entries from the stack.
1772
- *
1773
- * @private
1774
- * @name clear
1775
- * @memberOf Stack
1776
- */
1777
- function stackClear() {
1778
- this.__data__ = new ListCache;
1779
- this.size = 0;
1780
- }
1781
-
1782
- /**
1783
- * Removes `key` and its value from the stack.
1784
- *
1785
- * @private
1786
- * @name delete
1787
- * @memberOf Stack
1788
- * @param {string} key The key of the value to remove.
1789
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1790
- */
1791
- function stackDelete(key) {
1792
- var data = this.__data__,
1793
- result = data['delete'](key);
1794
-
1795
- this.size = data.size;
1796
- return result;
1797
- }
1798
-
1799
- /**
1800
- * Gets the stack value for `key`.
1801
- *
1802
- * @private
1803
- * @name get
1804
- * @memberOf Stack
1805
- * @param {string} key The key of the value to get.
1806
- * @returns {*} Returns the entry value.
1807
- */
1808
- function stackGet(key) {
1809
- return this.__data__.get(key);
1810
- }
1811
-
1812
- /**
1813
- * Checks if a stack value for `key` exists.
1814
- *
1815
- * @private
1816
- * @name has
1817
- * @memberOf Stack
1818
- * @param {string} key The key of the entry to check.
1819
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1820
- */
1821
- function stackHas(key) {
1822
- return this.__data__.has(key);
1823
- }
1824
-
1825
- /** Used as the size to enable large array optimizations. */
1826
- var LARGE_ARRAY_SIZE = 200;
1827
-
1828
- /**
1829
- * Sets the stack `key` to `value`.
1830
- *
1831
- * @private
1832
- * @name set
1833
- * @memberOf Stack
1834
- * @param {string} key The key of the value to set.
1835
- * @param {*} value The value to set.
1836
- * @returns {Object} Returns the stack cache instance.
1837
- */
1838
- function stackSet(key, value) {
1839
- var data = this.__data__;
1840
- if (data instanceof ListCache) {
1841
- var pairs = data.__data__;
1842
- if (!Map$1 || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
1843
- pairs.push([key, value]);
1844
- this.size = ++data.size;
1845
- return this;
1846
- }
1847
- data = this.__data__ = new MapCache(pairs);
1848
- }
1849
- data.set(key, value);
1850
- this.size = data.size;
1851
- return this;
1852
- }
1853
-
1854
- /**
1855
- * Creates a stack cache object to store key-value pairs.
1856
- *
1857
- * @private
1858
- * @constructor
1859
- * @param {Array} [entries] The key-value pairs to cache.
1860
- */
1861
- function Stack(entries) {
1862
- var data = this.__data__ = new ListCache(entries);
1863
- this.size = data.size;
1864
- }
1865
-
1866
- // Add methods to `Stack`.
1867
- Stack.prototype.clear = stackClear;
1868
- Stack.prototype['delete'] = stackDelete;
1869
- Stack.prototype.get = stackGet;
1870
- Stack.prototype.has = stackHas;
1871
- Stack.prototype.set = stackSet;
1872
-
1873
- /**
1874
- * A specialized version of `_.filter` for arrays without support for
1875
- * iteratee shorthands.
1876
- *
1877
- * @private
1878
- * @param {Array} [array] The array to iterate over.
1879
- * @param {Function} predicate The function invoked per iteration.
1880
- * @returns {Array} Returns the new filtered array.
1881
- */
1882
- function arrayFilter(array, predicate) {
1883
- var index = -1,
1884
- length = array == null ? 0 : array.length,
1885
- resIndex = 0,
1886
- result = [];
1887
-
1888
- while (++index < length) {
1889
- var value = array[index];
1890
- if (predicate(value, index, array)) {
1891
- result[resIndex++] = value;
1892
- }
1893
- }
1894
- return result;
1895
- }
1896
-
1897
- /**
1898
- * This method returns a new empty array.
1899
- *
1900
- * @static
1901
- * @memberOf _
1902
- * @since 4.13.0
1903
- * @category Util
1904
- * @returns {Array} Returns the new empty array.
1905
- * @example
1906
- *
1907
- * var arrays = _.times(2, _.stubArray);
1908
- *
1909
- * console.log(arrays);
1910
- * // => [[], []]
1911
- *
1912
- * console.log(arrays[0] === arrays[1]);
1913
- * // => false
1914
- */
1915
- function stubArray() {
1916
- return [];
1917
- }
1918
-
1919
- /** Used for built-in method references. */
1920
- var objectProto$2 = Object.prototype;
1921
-
1922
- /** Built-in value references. */
1923
- var propertyIsEnumerable = objectProto$2.propertyIsEnumerable;
1924
-
1925
- /* Built-in method references for those with the same name as other `lodash` methods. */
1926
- var nativeGetSymbols = Object.getOwnPropertySymbols;
1927
-
1928
- /**
1929
- * Creates an array of the own enumerable symbols of `object`.
1930
- *
1931
- * @private
1932
- * @param {Object} object The object to query.
1933
- * @returns {Array} Returns the array of symbols.
1934
- */
1935
- var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
1936
- if (object == null) {
1937
- return [];
1938
- }
1939
- object = Object(object);
1940
- return arrayFilter(nativeGetSymbols(object), function(symbol) {
1941
- return propertyIsEnumerable.call(object, symbol);
1942
- });
1943
- };
1944
-
1945
- const getSymbols$1 = getSymbols;
1946
-
1947
- /**
1948
- * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
1949
- * `keysFunc` and `symbolsFunc` to get the enumerable property names and
1950
- * symbols of `object`.
1951
- *
1952
- * @private
1953
- * @param {Object} object The object to query.
1954
- * @param {Function} keysFunc The function to get the keys of `object`.
1955
- * @param {Function} symbolsFunc The function to get the symbols of `object`.
1956
- * @returns {Array} Returns the array of property names and symbols.
1957
- */
1958
- function baseGetAllKeys(object, keysFunc, symbolsFunc) {
1959
- var result = keysFunc(object);
1960
- return isArray$1(object) ? result : arrayPush(result, symbolsFunc(object));
1961
- }
1962
-
1963
- /**
1964
- * Creates an array of own enumerable property names and symbols of `object`.
1965
- *
1966
- * @private
1967
- * @param {Object} object The object to query.
1968
- * @returns {Array} Returns the array of property names and symbols.
1969
- */
1970
- function getAllKeys(object) {
1971
- return baseGetAllKeys(object, keys, getSymbols$1);
1972
- }
1973
-
1974
- /* Built-in method references that are verified to be native. */
1975
- var DataView = getNative(root$1, 'DataView');
1976
-
1977
- const DataView$1 = DataView;
1978
-
1979
- /* Built-in method references that are verified to be native. */
1980
- var Promise$1 = getNative(root$1, 'Promise');
1981
-
1982
- const Promise$2 = Promise$1;
1983
-
1984
- /* Built-in method references that are verified to be native. */
1985
- var Set = getNative(root$1, 'Set');
1986
-
1987
- const Set$1 = Set;
1988
-
1989
- /** `Object#toString` result references. */
1990
- var mapTag$1 = '[object Map]',
1991
- objectTag$1 = '[object Object]',
1992
- promiseTag = '[object Promise]',
1993
- setTag$1 = '[object Set]',
1994
- weakMapTag = '[object WeakMap]';
1995
-
1996
- var dataViewTag$1 = '[object DataView]';
1997
-
1998
- /** Used to detect maps, sets, and weakmaps. */
1999
- var dataViewCtorString = toSource(DataView$1),
2000
- mapCtorString = toSource(Map$1),
2001
- promiseCtorString = toSource(Promise$2),
2002
- setCtorString = toSource(Set$1),
2003
- weakMapCtorString = toSource(WeakMap$1);
2004
-
2005
- /**
2006
- * Gets the `toStringTag` of `value`.
2007
- *
2008
- * @private
2009
- * @param {*} value The value to query.
2010
- * @returns {string} Returns the `toStringTag`.
2011
- */
2012
- var getTag = baseGetTag;
2013
-
2014
- // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
2015
- if ((DataView$1 && getTag(new DataView$1(new ArrayBuffer(1))) != dataViewTag$1) ||
2016
- (Map$1 && getTag(new Map$1) != mapTag$1) ||
2017
- (Promise$2 && getTag(Promise$2.resolve()) != promiseTag) ||
2018
- (Set$1 && getTag(new Set$1) != setTag$1) ||
2019
- (WeakMap$1 && getTag(new WeakMap$1) != weakMapTag)) {
2020
- getTag = function(value) {
2021
- var result = baseGetTag(value),
2022
- Ctor = result == objectTag$1 ? value.constructor : undefined,
2023
- ctorString = Ctor ? toSource(Ctor) : '';
2024
-
2025
- if (ctorString) {
2026
- switch (ctorString) {
2027
- case dataViewCtorString: return dataViewTag$1;
2028
- case mapCtorString: return mapTag$1;
2029
- case promiseCtorString: return promiseTag;
2030
- case setCtorString: return setTag$1;
2031
- case weakMapCtorString: return weakMapTag;
2032
- }
2033
- }
2034
- return result;
2035
- };
2036
- }
2037
-
2038
- const getTag$1 = getTag;
2039
-
2040
- /** Built-in value references. */
2041
- var Uint8Array = root$1.Uint8Array;
2042
-
2043
- const Uint8Array$1 = Uint8Array;
2044
-
2045
- /** Used to stand-in for `undefined` hash values. */
2046
- var HASH_UNDEFINED = '__lodash_hash_undefined__';
2047
-
2048
- /**
2049
- * Adds `value` to the array cache.
2050
- *
2051
- * @private
2052
- * @name add
2053
- * @memberOf SetCache
2054
- * @alias push
2055
- * @param {*} value The value to cache.
2056
- * @returns {Object} Returns the cache instance.
2057
- */
2058
- function setCacheAdd(value) {
2059
- this.__data__.set(value, HASH_UNDEFINED);
2060
- return this;
2061
- }
2062
-
2063
- /**
2064
- * Checks if `value` is in the array cache.
2065
- *
2066
- * @private
2067
- * @name has
2068
- * @memberOf SetCache
2069
- * @param {*} value The value to search for.
2070
- * @returns {number} Returns `true` if `value` is found, else `false`.
2071
- */
2072
- function setCacheHas(value) {
2073
- return this.__data__.has(value);
2074
- }
2075
-
2076
- /**
2077
- *
2078
- * Creates an array cache object to store unique values.
2079
- *
2080
- * @private
2081
- * @constructor
2082
- * @param {Array} [values] The values to cache.
2083
- */
2084
- function SetCache(values) {
2085
- var index = -1,
2086
- length = values == null ? 0 : values.length;
2087
-
2088
- this.__data__ = new MapCache;
2089
- while (++index < length) {
2090
- this.add(values[index]);
2091
- }
2092
- }
2093
-
2094
- // Add methods to `SetCache`.
2095
- SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
2096
- SetCache.prototype.has = setCacheHas;
2097
-
2098
- /**
2099
- * A specialized version of `_.some` for arrays without support for iteratee
2100
- * shorthands.
2101
- *
2102
- * @private
2103
- * @param {Array} [array] The array to iterate over.
2104
- * @param {Function} predicate The function invoked per iteration.
2105
- * @returns {boolean} Returns `true` if any element passes the predicate check,
2106
- * else `false`.
2107
- */
2108
- function arraySome(array, predicate) {
2109
- var index = -1,
2110
- length = array == null ? 0 : array.length;
2111
-
2112
- while (++index < length) {
2113
- if (predicate(array[index], index, array)) {
2114
- return true;
2115
- }
2116
- }
2117
- return false;
2118
- }
2119
-
2120
- /**
2121
- * Checks if a `cache` value for `key` exists.
2122
- *
2123
- * @private
2124
- * @param {Object} cache The cache to query.
2125
- * @param {string} key The key of the entry to check.
2126
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
2127
- */
2128
- function cacheHas(cache, key) {
2129
- return cache.has(key);
2130
- }
2131
-
2132
- /** Used to compose bitmasks for value comparisons. */
2133
- var COMPARE_PARTIAL_FLAG$5 = 1,
2134
- COMPARE_UNORDERED_FLAG$3 = 2;
2135
-
2136
- /**
2137
- * A specialized version of `baseIsEqualDeep` for arrays with support for
2138
- * partial deep comparisons.
2139
- *
2140
- * @private
2141
- * @param {Array} array The array to compare.
2142
- * @param {Array} other The other array to compare.
2143
- * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
2144
- * @param {Function} customizer The function to customize comparisons.
2145
- * @param {Function} equalFunc The function to determine equivalents of values.
2146
- * @param {Object} stack Tracks traversed `array` and `other` objects.
2147
- * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
2148
- */
2149
- function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
2150
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG$5,
2151
- arrLength = array.length,
2152
- othLength = other.length;
2153
-
2154
- if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
2155
- return false;
2156
- }
2157
- // Check that cyclic values are equal.
2158
- var arrStacked = stack.get(array);
2159
- var othStacked = stack.get(other);
2160
- if (arrStacked && othStacked) {
2161
- return arrStacked == other && othStacked == array;
2162
- }
2163
- var index = -1,
2164
- result = true,
2165
- seen = (bitmask & COMPARE_UNORDERED_FLAG$3) ? new SetCache : undefined;
2166
-
2167
- stack.set(array, other);
2168
- stack.set(other, array);
2169
-
2170
- // Ignore non-index properties.
2171
- while (++index < arrLength) {
2172
- var arrValue = array[index],
2173
- othValue = other[index];
2174
-
2175
- if (customizer) {
2176
- var compared = isPartial
2177
- ? customizer(othValue, arrValue, index, other, array, stack)
2178
- : customizer(arrValue, othValue, index, array, other, stack);
2179
- }
2180
- if (compared !== undefined) {
2181
- if (compared) {
2182
- continue;
2183
- }
2184
- result = false;
2185
- break;
2186
- }
2187
- // Recursively compare arrays (susceptible to call stack limits).
2188
- if (seen) {
2189
- if (!arraySome(other, function(othValue, othIndex) {
2190
- if (!cacheHas(seen, othIndex) &&
2191
- (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
2192
- return seen.push(othIndex);
2193
- }
2194
- })) {
2195
- result = false;
2196
- break;
2197
- }
2198
- } else if (!(
2199
- arrValue === othValue ||
2200
- equalFunc(arrValue, othValue, bitmask, customizer, stack)
2201
- )) {
2202
- result = false;
2203
- break;
2204
- }
2205
- }
2206
- stack['delete'](array);
2207
- stack['delete'](other);
2208
- return result;
2209
- }
2210
-
2211
- /**
2212
- * Converts `map` to its key-value pairs.
2213
- *
2214
- * @private
2215
- * @param {Object} map The map to convert.
2216
- * @returns {Array} Returns the key-value pairs.
2217
- */
2218
- function mapToArray(map) {
2219
- var index = -1,
2220
- result = Array(map.size);
2221
-
2222
- map.forEach(function(value, key) {
2223
- result[++index] = [key, value];
2224
- });
2225
- return result;
2226
- }
2227
-
2228
- /**
2229
- * Converts `set` to an array of its values.
2230
- *
2231
- * @private
2232
- * @param {Object} set The set to convert.
2233
- * @returns {Array} Returns the values.
2234
- */
2235
- function setToArray(set) {
2236
- var index = -1,
2237
- result = Array(set.size);
2238
-
2239
- set.forEach(function(value) {
2240
- result[++index] = value;
2241
- });
2242
- return result;
2243
- }
2244
-
2245
- /** Used to compose bitmasks for value comparisons. */
2246
- var COMPARE_PARTIAL_FLAG$4 = 1,
2247
- COMPARE_UNORDERED_FLAG$2 = 2;
2248
-
2249
- /** `Object#toString` result references. */
2250
- var boolTag = '[object Boolean]',
2251
- dateTag = '[object Date]',
2252
- errorTag = '[object Error]',
2253
- mapTag = '[object Map]',
2254
- numberTag = '[object Number]',
2255
- regexpTag = '[object RegExp]',
2256
- setTag = '[object Set]',
2257
- stringTag = '[object String]',
2258
- symbolTag = '[object Symbol]';
2259
-
2260
- var arrayBufferTag = '[object ArrayBuffer]',
2261
- dataViewTag = '[object DataView]';
2262
-
2263
- /** Used to convert symbols to primitives and strings. */
2264
- var symbolProto = Symbol$2 ? Symbol$2.prototype : undefined,
2265
- symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
2266
-
2267
- /**
2268
- * A specialized version of `baseIsEqualDeep` for comparing objects of
2269
- * the same `toStringTag`.
2270
- *
2271
- * **Note:** This function only supports comparing values with tags of
2272
- * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
2273
- *
2274
- * @private
2275
- * @param {Object} object The object to compare.
2276
- * @param {Object} other The other object to compare.
2277
- * @param {string} tag The `toStringTag` of the objects to compare.
2278
- * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
2279
- * @param {Function} customizer The function to customize comparisons.
2280
- * @param {Function} equalFunc The function to determine equivalents of values.
2281
- * @param {Object} stack Tracks traversed `object` and `other` objects.
2282
- * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
2283
- */
2284
- function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
2285
- switch (tag) {
2286
- case dataViewTag:
2287
- if ((object.byteLength != other.byteLength) ||
2288
- (object.byteOffset != other.byteOffset)) {
2289
- return false;
2290
- }
2291
- object = object.buffer;
2292
- other = other.buffer;
2293
-
2294
- case arrayBufferTag:
2295
- if ((object.byteLength != other.byteLength) ||
2296
- !equalFunc(new Uint8Array$1(object), new Uint8Array$1(other))) {
2297
- return false;
2298
- }
2299
- return true;
2300
-
2301
- case boolTag:
2302
- case dateTag:
2303
- case numberTag:
2304
- // Coerce booleans to `1` or `0` and dates to milliseconds.
2305
- // Invalid dates are coerced to `NaN`.
2306
- return eq(+object, +other);
2307
-
2308
- case errorTag:
2309
- return object.name == other.name && object.message == other.message;
2310
-
2311
- case regexpTag:
2312
- case stringTag:
2313
- // Coerce regexes to strings and treat strings, primitives and objects,
2314
- // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
2315
- // for more details.
2316
- return object == (other + '');
2317
-
2318
- case mapTag:
2319
- var convert = mapToArray;
2320
-
2321
- case setTag:
2322
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG$4;
2323
- convert || (convert = setToArray);
2324
-
2325
- if (object.size != other.size && !isPartial) {
2326
- return false;
2327
- }
2328
- // Assume cyclic values are equal.
2329
- var stacked = stack.get(object);
2330
- if (stacked) {
2331
- return stacked == other;
2332
- }
2333
- bitmask |= COMPARE_UNORDERED_FLAG$2;
2334
-
2335
- // Recursively compare objects (susceptible to call stack limits).
2336
- stack.set(object, other);
2337
- var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
2338
- stack['delete'](object);
2339
- return result;
2340
-
2341
- case symbolTag:
2342
- if (symbolValueOf) {
2343
- return symbolValueOf.call(object) == symbolValueOf.call(other);
2344
- }
2345
- }
2346
- return false;
2347
- }
2348
-
2349
- /** Used to compose bitmasks for value comparisons. */
2350
- var COMPARE_PARTIAL_FLAG$3 = 1;
2351
-
2352
- /** Used for built-in method references. */
2353
- var objectProto$1 = Object.prototype;
2354
-
2355
- /** Used to check objects for own properties. */
2356
- var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
2357
-
2358
- /**
2359
- * A specialized version of `baseIsEqualDeep` for objects with support for
2360
- * partial deep comparisons.
2361
- *
2362
- * @private
2363
- * @param {Object} object The object to compare.
2364
- * @param {Object} other The other object to compare.
2365
- * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
2366
- * @param {Function} customizer The function to customize comparisons.
2367
- * @param {Function} equalFunc The function to determine equivalents of values.
2368
- * @param {Object} stack Tracks traversed `object` and `other` objects.
2369
- * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
2370
- */
2371
- function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
2372
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG$3,
2373
- objProps = getAllKeys(object),
2374
- objLength = objProps.length,
2375
- othProps = getAllKeys(other),
2376
- othLength = othProps.length;
2377
-
2378
- if (objLength != othLength && !isPartial) {
2379
- return false;
2380
- }
2381
- var index = objLength;
2382
- while (index--) {
2383
- var key = objProps[index];
2384
- if (!(isPartial ? key in other : hasOwnProperty$1.call(other, key))) {
2385
- return false;
2386
- }
2387
- }
2388
- // Check that cyclic values are equal.
2389
- var objStacked = stack.get(object);
2390
- var othStacked = stack.get(other);
2391
- if (objStacked && othStacked) {
2392
- return objStacked == other && othStacked == object;
2393
- }
2394
- var result = true;
2395
- stack.set(object, other);
2396
- stack.set(other, object);
2397
-
2398
- var skipCtor = isPartial;
2399
- while (++index < objLength) {
2400
- key = objProps[index];
2401
- var objValue = object[key],
2402
- othValue = other[key];
2403
-
2404
- if (customizer) {
2405
- var compared = isPartial
2406
- ? customizer(othValue, objValue, key, other, object, stack)
2407
- : customizer(objValue, othValue, key, object, other, stack);
2408
- }
2409
- // Recursively compare objects (susceptible to call stack limits).
2410
- if (!(compared === undefined
2411
- ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
2412
- : compared
2413
- )) {
2414
- result = false;
2415
- break;
2416
- }
2417
- skipCtor || (skipCtor = key == 'constructor');
2418
- }
2419
- if (result && !skipCtor) {
2420
- var objCtor = object.constructor,
2421
- othCtor = other.constructor;
2422
-
2423
- // Non `Object` object instances with different constructors are not equal.
2424
- if (objCtor != othCtor &&
2425
- ('constructor' in object && 'constructor' in other) &&
2426
- !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
2427
- typeof othCtor == 'function' && othCtor instanceof othCtor)) {
2428
- result = false;
2429
- }
2430
- }
2431
- stack['delete'](object);
2432
- stack['delete'](other);
2433
- return result;
2434
- }
2435
-
2436
- /** Used to compose bitmasks for value comparisons. */
2437
- var COMPARE_PARTIAL_FLAG$2 = 1;
2438
-
2439
- /** `Object#toString` result references. */
2440
- var argsTag = '[object Arguments]',
2441
- arrayTag = '[object Array]',
2442
- objectTag = '[object Object]';
2443
-
2444
- /** Used for built-in method references. */
2445
- var objectProto = Object.prototype;
2446
-
2447
- /** Used to check objects for own properties. */
2448
- var hasOwnProperty = objectProto.hasOwnProperty;
2449
-
2450
- /**
2451
- * A specialized version of `baseIsEqual` for arrays and objects which performs
2452
- * deep comparisons and tracks traversed objects enabling objects with circular
2453
- * references to be compared.
2454
- *
2455
- * @private
2456
- * @param {Object} object The object to compare.
2457
- * @param {Object} other The other object to compare.
2458
- * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
2459
- * @param {Function} customizer The function to customize comparisons.
2460
- * @param {Function} equalFunc The function to determine equivalents of values.
2461
- * @param {Object} [stack] Tracks traversed `object` and `other` objects.
2462
- * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
2463
- */
2464
- function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
2465
- var objIsArr = isArray$1(object),
2466
- othIsArr = isArray$1(other),
2467
- objTag = objIsArr ? arrayTag : getTag$1(object),
2468
- othTag = othIsArr ? arrayTag : getTag$1(other);
2469
-
2470
- objTag = objTag == argsTag ? objectTag : objTag;
2471
- othTag = othTag == argsTag ? objectTag : othTag;
2472
-
2473
- var objIsObj = objTag == objectTag,
2474
- othIsObj = othTag == objectTag,
2475
- isSameTag = objTag == othTag;
2476
-
2477
- if (isSameTag && isBuffer$1(object)) {
2478
- if (!isBuffer$1(other)) {
2479
- return false;
2480
- }
2481
- objIsArr = true;
2482
- objIsObj = false;
2483
- }
2484
- if (isSameTag && !objIsObj) {
2485
- stack || (stack = new Stack);
2486
- return (objIsArr || isTypedArray$1(object))
2487
- ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
2488
- : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
2489
- }
2490
- if (!(bitmask & COMPARE_PARTIAL_FLAG$2)) {
2491
- var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
2492
- othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
2493
-
2494
- if (objIsWrapped || othIsWrapped) {
2495
- var objUnwrapped = objIsWrapped ? object.value() : object,
2496
- othUnwrapped = othIsWrapped ? other.value() : other;
2497
-
2498
- stack || (stack = new Stack);
2499
- return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
2500
- }
2501
- }
2502
- if (!isSameTag) {
2503
- return false;
2504
- }
2505
- stack || (stack = new Stack);
2506
- return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
2507
- }
2508
-
2509
- /**
2510
- * The base implementation of `_.isEqual` which supports partial comparisons
2511
- * and tracks traversed objects.
2512
- *
2513
- * @private
2514
- * @param {*} value The value to compare.
2515
- * @param {*} other The other value to compare.
2516
- * @param {boolean} bitmask The bitmask flags.
2517
- * 1 - Unordered comparison
2518
- * 2 - Partial comparison
2519
- * @param {Function} [customizer] The function to customize comparisons.
2520
- * @param {Object} [stack] Tracks traversed `value` and `other` objects.
2521
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
2522
- */
2523
- function baseIsEqual(value, other, bitmask, customizer, stack) {
2524
- if (value === other) {
2525
- return true;
2526
- }
2527
- if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
2528
- return value !== value && other !== other;
2529
- }
2530
- return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
2531
- }
2532
-
2533
- /** Used to compose bitmasks for value comparisons. */
2534
- var COMPARE_PARTIAL_FLAG$1 = 1,
2535
- COMPARE_UNORDERED_FLAG$1 = 2;
2536
-
2537
- /**
2538
- * The base implementation of `_.isMatch` without support for iteratee shorthands.
2539
- *
2540
- * @private
2541
- * @param {Object} object The object to inspect.
2542
- * @param {Object} source The object of property values to match.
2543
- * @param {Array} matchData The property names, values, and compare flags to match.
2544
- * @param {Function} [customizer] The function to customize comparisons.
2545
- * @returns {boolean} Returns `true` if `object` is a match, else `false`.
2546
- */
2547
- function baseIsMatch(object, source, matchData, customizer) {
2548
- var index = matchData.length,
2549
- length = index,
2550
- noCustomizer = !customizer;
2551
-
2552
- if (object == null) {
2553
- return !length;
2554
- }
2555
- object = Object(object);
2556
- while (index--) {
2557
- var data = matchData[index];
2558
- if ((noCustomizer && data[2])
2559
- ? data[1] !== object[data[0]]
2560
- : !(data[0] in object)
2561
- ) {
2562
- return false;
2563
- }
2564
- }
2565
- while (++index < length) {
2566
- data = matchData[index];
2567
- var key = data[0],
2568
- objValue = object[key],
2569
- srcValue = data[1];
2570
-
2571
- if (noCustomizer && data[2]) {
2572
- if (objValue === undefined && !(key in object)) {
2573
- return false;
2574
- }
2575
- } else {
2576
- var stack = new Stack;
2577
- if (customizer) {
2578
- var result = customizer(objValue, srcValue, key, object, source, stack);
2579
- }
2580
- if (!(result === undefined
2581
- ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG$1 | COMPARE_UNORDERED_FLAG$1, customizer, stack)
2582
- : result
2583
- )) {
2584
- return false;
2585
- }
2586
- }
2587
- }
2588
- return true;
2589
- }
2590
-
2591
- /**
2592
- * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
2593
- *
2594
- * @private
2595
- * @param {*} value The value to check.
2596
- * @returns {boolean} Returns `true` if `value` if suitable for strict
2597
- * equality comparisons, else `false`.
2598
- */
2599
- function isStrictComparable(value) {
2600
- return value === value && !isObject(value);
2601
- }
2602
-
2603
- /**
2604
- * Gets the property names, values, and compare flags of `object`.
2605
- *
2606
- * @private
2607
- * @param {Object} object The object to query.
2608
- * @returns {Array} Returns the match data of `object`.
2609
- */
2610
- function getMatchData(object) {
2611
- var result = keys(object),
2612
- length = result.length;
2613
-
2614
- while (length--) {
2615
- var key = result[length],
2616
- value = object[key];
2617
-
2618
- result[length] = [key, value, isStrictComparable(value)];
2619
- }
2620
- return result;
2621
- }
2622
-
2623
- /**
2624
- * A specialized version of `matchesProperty` for source values suitable
2625
- * for strict equality comparisons, i.e. `===`.
2626
- *
2627
- * @private
2628
- * @param {string} key The key of the property to get.
2629
- * @param {*} srcValue The value to match.
2630
- * @returns {Function} Returns the new spec function.
2631
- */
2632
- function matchesStrictComparable(key, srcValue) {
2633
- return function(object) {
2634
- if (object == null) {
2635
- return false;
2636
- }
2637
- return object[key] === srcValue &&
2638
- (srcValue !== undefined || (key in Object(object)));
2639
- };
2640
- }
2641
-
2642
- /**
2643
- * The base implementation of `_.matches` which doesn't clone `source`.
2644
- *
2645
- * @private
2646
- * @param {Object} source The object of property values to match.
2647
- * @returns {Function} Returns the new spec function.
2648
- */
2649
- function baseMatches(source) {
2650
- var matchData = getMatchData(source);
2651
- if (matchData.length == 1 && matchData[0][2]) {
2652
- return matchesStrictComparable(matchData[0][0], matchData[0][1]);
2653
- }
2654
- return function(object) {
2655
- return object === source || baseIsMatch(object, source, matchData);
2656
- };
2657
- }
2658
-
2659
- /**
2660
- * The base implementation of `_.hasIn` without support for deep paths.
2661
- *
2662
- * @private
2663
- * @param {Object} [object] The object to query.
2664
- * @param {Array|string} key The key to check.
2665
- * @returns {boolean} Returns `true` if `key` exists, else `false`.
2666
- */
2667
- function baseHasIn(object, key) {
2668
- return object != null && key in Object(object);
2669
- }
2670
-
2671
- /**
2672
- * Checks if `path` exists on `object`.
2673
- *
2674
- * @private
2675
- * @param {Object} object The object to query.
2676
- * @param {Array|string} path The path to check.
2677
- * @param {Function} hasFunc The function to check properties.
2678
- * @returns {boolean} Returns `true` if `path` exists, else `false`.
2679
- */
2680
- function hasPath(object, path, hasFunc) {
2681
- path = castPath(path, object);
2682
-
2683
- var index = -1,
2684
- length = path.length,
2685
- result = false;
2686
-
2687
- while (++index < length) {
2688
- var key = toKey(path[index]);
2689
- if (!(result = object != null && hasFunc(object, key))) {
2690
- break;
2691
- }
2692
- object = object[key];
2693
- }
2694
- if (result || ++index != length) {
2695
- return result;
2696
- }
2697
- length = object == null ? 0 : object.length;
2698
- return !!length && isLength(length) && isIndex(key, length) &&
2699
- (isArray$1(object) || isArguments$1(object));
2700
- }
2701
-
2702
- /**
2703
- * Checks if `path` is a direct or inherited property of `object`.
2704
- *
2705
- * @static
2706
- * @memberOf _
2707
- * @since 4.0.0
2708
- * @category Object
2709
- * @param {Object} object The object to query.
2710
- * @param {Array|string} path The path to check.
2711
- * @returns {boolean} Returns `true` if `path` exists, else `false`.
2712
- * @example
2713
- *
2714
- * var object = _.create({ 'a': _.create({ 'b': 2 }) });
2715
- *
2716
- * _.hasIn(object, 'a');
2717
- * // => true
2718
- *
2719
- * _.hasIn(object, 'a.b');
2720
- * // => true
2721
- *
2722
- * _.hasIn(object, ['a', 'b']);
2723
- * // => true
2724
- *
2725
- * _.hasIn(object, 'b');
2726
- * // => false
2727
- */
2728
- function hasIn(object, path) {
2729
- return object != null && hasPath(object, path, baseHasIn);
2730
- }
2731
-
2732
- /** Used to compose bitmasks for value comparisons. */
2733
- var COMPARE_PARTIAL_FLAG = 1,
2734
- COMPARE_UNORDERED_FLAG = 2;
2735
-
2736
- /**
2737
- * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
2738
- *
2739
- * @private
2740
- * @param {string} path The path of the property to get.
2741
- * @param {*} srcValue The value to match.
2742
- * @returns {Function} Returns the new spec function.
2743
- */
2744
- function baseMatchesProperty(path, srcValue) {
2745
- if (isKey(path) && isStrictComparable(srcValue)) {
2746
- return matchesStrictComparable(toKey(path), srcValue);
2747
- }
2748
- return function(object) {
2749
- var objValue = get(object, path);
2750
- return (objValue === undefined && objValue === srcValue)
2751
- ? hasIn(object, path)
2752
- : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
2753
- };
2754
- }
2755
-
2756
- /**
2757
- * The base implementation of `_.property` without support for deep paths.
2758
- *
2759
- * @private
2760
- * @param {string} key The key of the property to get.
2761
- * @returns {Function} Returns the new accessor function.
2762
- */
2763
- function baseProperty(key) {
2764
- return function(object) {
2765
- return object == null ? undefined : object[key];
2766
- };
2767
- }
2768
-
2769
- /**
2770
- * A specialized version of `baseProperty` which supports deep paths.
2771
- *
2772
- * @private
2773
- * @param {Array|string} path The path of the property to get.
2774
- * @returns {Function} Returns the new accessor function.
2775
- */
2776
- function basePropertyDeep(path) {
2777
- return function(object) {
2778
- return baseGet(object, path);
2779
- };
2780
- }
2781
-
2782
- /**
2783
- * Creates a function that returns the value at `path` of a given object.
2784
- *
2785
- * @static
2786
- * @memberOf _
2787
- * @since 2.4.0
2788
- * @category Util
2789
- * @param {Array|string} path The path of the property to get.
2790
- * @returns {Function} Returns the new accessor function.
2791
- * @example
2792
- *
2793
- * var objects = [
2794
- * { 'a': { 'b': 2 } },
2795
- * { 'a': { 'b': 1 } }
2796
- * ];
2797
- *
2798
- * _.map(objects, _.property('a.b'));
2799
- * // => [2, 1]
2800
- *
2801
- * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
2802
- * // => [1, 2]
2803
- */
2804
- function property(path) {
2805
- return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
2806
- }
2807
-
2808
- /**
2809
- * The base implementation of `_.iteratee`.
2810
- *
2811
- * @private
2812
- * @param {*} [value=_.identity] The value to convert to an iteratee.
2813
- * @returns {Function} Returns the iteratee.
2814
- */
2815
- function baseIteratee(value) {
2816
- // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
2817
- // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
2818
- if (typeof value == 'function') {
2819
- return value;
2820
- }
2821
- if (value == null) {
2822
- return identity;
2823
- }
2824
- if (typeof value == 'object') {
2825
- return isArray$1(value)
2826
- ? baseMatchesProperty(value[0], value[1])
2827
- : baseMatches(value);
2828
- }
2829
- return property(value);
2830
- }
2831
-
2832
- /**
2833
- * Gets the timestamp of the number of milliseconds that have elapsed since
2834
- * the Unix epoch (1 January 1970 00:00:00 UTC).
2835
- *
2836
- * @static
2837
- * @memberOf _
2838
- * @since 2.4.0
2839
- * @category Date
2840
- * @returns {number} Returns the timestamp.
2841
- * @example
2842
- *
2843
- * _.defer(function(stamp) {
2844
- * console.log(_.now() - stamp);
2845
- * }, _.now());
2846
- * // => Logs the number of milliseconds it took for the deferred invocation.
2847
- */
2848
- var now = function() {
2849
- return root$1.Date.now();
2850
- };
2851
-
2852
- const now$1 = now;
2853
-
2854
- /** Error message constants. */
2855
- var FUNC_ERROR_TEXT = 'Expected a function';
2856
-
2857
- /* Built-in method references for those with the same name as other `lodash` methods. */
2858
- var nativeMax = Math.max,
2859
- nativeMin = Math.min;
2860
-
2861
- /**
2862
- * Creates a debounced function that delays invoking `func` until after `wait`
2863
- * milliseconds have elapsed since the last time the debounced function was
2864
- * invoked. The debounced function comes with a `cancel` method to cancel
2865
- * delayed `func` invocations and a `flush` method to immediately invoke them.
2866
- * Provide `options` to indicate whether `func` should be invoked on the
2867
- * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
2868
- * with the last arguments provided to the debounced function. Subsequent
2869
- * calls to the debounced function return the result of the last `func`
2870
- * invocation.
2871
- *
2872
- * **Note:** If `leading` and `trailing` options are `true`, `func` is
2873
- * invoked on the trailing edge of the timeout only if the debounced function
2874
- * is invoked more than once during the `wait` timeout.
2875
- *
2876
- * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
2877
- * until to the next tick, similar to `setTimeout` with a timeout of `0`.
2878
- *
2879
- * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
2880
- * for details over the differences between `_.debounce` and `_.throttle`.
2881
- *
2882
- * @static
2883
- * @memberOf _
2884
- * @since 0.1.0
2885
- * @category Function
2886
- * @param {Function} func The function to debounce.
2887
- * @param {number} [wait=0] The number of milliseconds to delay.
2888
- * @param {Object} [options={}] The options object.
2889
- * @param {boolean} [options.leading=false]
2890
- * Specify invoking on the leading edge of the timeout.
2891
- * @param {number} [options.maxWait]
2892
- * The maximum time `func` is allowed to be delayed before it's invoked.
2893
- * @param {boolean} [options.trailing=true]
2894
- * Specify invoking on the trailing edge of the timeout.
2895
- * @returns {Function} Returns the new debounced function.
2896
- * @example
2897
- *
2898
- * // Avoid costly calculations while the window size is in flux.
2899
- * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
2900
- *
2901
- * // Invoke `sendMail` when clicked, debouncing subsequent calls.
2902
- * jQuery(element).on('click', _.debounce(sendMail, 300, {
2903
- * 'leading': true,
2904
- * 'trailing': false
2905
- * }));
2906
- *
2907
- * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
2908
- * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
2909
- * var source = new EventSource('/stream');
2910
- * jQuery(source).on('message', debounced);
2911
- *
2912
- * // Cancel the trailing debounced invocation.
2913
- * jQuery(window).on('popstate', debounced.cancel);
2914
- */
2915
- function debounce(func, wait, options) {
2916
- var lastArgs,
2917
- lastThis,
2918
- maxWait,
2919
- result,
2920
- timerId,
2921
- lastCallTime,
2922
- lastInvokeTime = 0,
2923
- leading = false,
2924
- maxing = false,
2925
- trailing = true;
2926
-
2927
- if (typeof func != 'function') {
2928
- throw new TypeError(FUNC_ERROR_TEXT);
2929
- }
2930
- wait = toNumber(wait) || 0;
2931
- if (isObject(options)) {
2932
- leading = !!options.leading;
2933
- maxing = 'maxWait' in options;
2934
- maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
2935
- trailing = 'trailing' in options ? !!options.trailing : trailing;
2936
- }
2937
-
2938
- function invokeFunc(time) {
2939
- var args = lastArgs,
2940
- thisArg = lastThis;
2941
-
2942
- lastArgs = lastThis = undefined;
2943
- lastInvokeTime = time;
2944
- result = func.apply(thisArg, args);
2945
- return result;
2946
- }
2947
-
2948
- function leadingEdge(time) {
2949
- // Reset any `maxWait` timer.
2950
- lastInvokeTime = time;
2951
- // Start the timer for the trailing edge.
2952
- timerId = setTimeout(timerExpired, wait);
2953
- // Invoke the leading edge.
2954
- return leading ? invokeFunc(time) : result;
2955
- }
2956
-
2957
- function remainingWait(time) {
2958
- var timeSinceLastCall = time - lastCallTime,
2959
- timeSinceLastInvoke = time - lastInvokeTime,
2960
- timeWaiting = wait - timeSinceLastCall;
2961
-
2962
- return maxing
2963
- ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)
2964
- : timeWaiting;
2965
- }
2966
-
2967
- function shouldInvoke(time) {
2968
- var timeSinceLastCall = time - lastCallTime,
2969
- timeSinceLastInvoke = time - lastInvokeTime;
2970
-
2971
- // Either this is the first call, activity has stopped and we're at the
2972
- // trailing edge, the system time has gone backwards and we're treating
2973
- // it as the trailing edge, or we've hit the `maxWait` limit.
2974
- return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
2975
- (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
2976
- }
2977
-
2978
- function timerExpired() {
2979
- var time = now$1();
2980
- if (shouldInvoke(time)) {
2981
- return trailingEdge(time);
2982
- }
2983
- // Restart the timer.
2984
- timerId = setTimeout(timerExpired, remainingWait(time));
2985
- }
2986
-
2987
- function trailingEdge(time) {
2988
- timerId = undefined;
2989
-
2990
- // Only invoke if we have `lastArgs` which means `func` has been
2991
- // debounced at least once.
2992
- if (trailing && lastArgs) {
2993
- return invokeFunc(time);
2994
- }
2995
- lastArgs = lastThis = undefined;
2996
- return result;
2997
- }
2998
-
2999
- function cancel() {
3000
- if (timerId !== undefined) {
3001
- clearTimeout(timerId);
3002
- }
3003
- lastInvokeTime = 0;
3004
- lastArgs = lastCallTime = lastThis = timerId = undefined;
3005
- }
3006
-
3007
- function flush() {
3008
- return timerId === undefined ? result : trailingEdge(now$1());
3009
- }
3010
-
3011
- function debounced() {
3012
- var time = now$1(),
3013
- isInvoking = shouldInvoke(time);
3014
-
3015
- lastArgs = arguments;
3016
- lastThis = this;
3017
- lastCallTime = time;
3018
-
3019
- if (isInvoking) {
3020
- if (timerId === undefined) {
3021
- return leadingEdge(lastCallTime);
3022
- }
3023
- if (maxing) {
3024
- // Handle invocations in a tight loop.
3025
- clearTimeout(timerId);
3026
- timerId = setTimeout(timerExpired, wait);
3027
- return invokeFunc(lastCallTime);
3028
- }
3029
- }
3030
- if (timerId === undefined) {
3031
- timerId = setTimeout(timerExpired, wait);
3032
- }
3033
- return result;
3034
- }
3035
- debounced.cancel = cancel;
3036
- debounced.flush = flush;
3037
- return debounced;
3038
- }
3039
-
3040
- /**
3041
- * The inverse of `_.toPairs`; this method returns an object composed
3042
- * from key-value `pairs`.
3043
- *
3044
- * @static
3045
- * @memberOf _
3046
- * @since 4.0.0
3047
- * @category Array
3048
- * @param {Array} pairs The key-value pairs.
3049
- * @returns {Object} Returns the new object.
3050
- * @example
3051
- *
3052
- * _.fromPairs([['a', 1], ['b', 2]]);
3053
- * // => { 'a': 1, 'b': 2 }
3054
- */
3055
- function fromPairs(pairs) {
3056
- var index = -1,
3057
- length = pairs == null ? 0 : pairs.length,
3058
- result = {};
3059
-
3060
- while (++index < length) {
3061
- var pair = pairs[index];
3062
- result[pair[0]] = pair[1];
3063
- }
3064
- return result;
3065
- }
3066
-
3067
- /**
3068
- * The base implementation of `_.gt` which doesn't coerce arguments.
3069
- *
3070
- * @private
3071
- * @param {*} value The value to compare.
3072
- * @param {*} other The other value to compare.
3073
- * @returns {boolean} Returns `true` if `value` is greater than `other`,
3074
- * else `false`.
3075
- */
3076
- function baseGt(value, other) {
3077
- return value > other;
3078
- }
3079
-
3080
- /**
3081
- * Performs a deep comparison between two values to determine if they are
3082
- * equivalent.
3083
- *
3084
- * **Note:** This method supports comparing arrays, array buffers, booleans,
3085
- * date objects, error objects, maps, numbers, `Object` objects, regexes,
3086
- * sets, strings, symbols, and typed arrays. `Object` objects are compared
3087
- * by their own, not inherited, enumerable properties. Functions and DOM
3088
- * nodes are compared by strict equality, i.e. `===`.
3089
- *
3090
- * @static
3091
- * @memberOf _
3092
- * @since 0.1.0
3093
- * @category Lang
3094
- * @param {*} value The value to compare.
3095
- * @param {*} other The other value to compare.
3096
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
3097
- * @example
3098
- *
3099
- * var object = { 'a': 1 };
3100
- * var other = { 'a': 1 };
3101
- *
3102
- * _.isEqual(object, other);
3103
- * // => true
3104
- *
3105
- * object === other;
3106
- * // => false
3107
- */
3108
- function isEqual(value, other) {
3109
- return baseIsEqual(value, other);
3110
- }
3111
-
3112
- /**
3113
- * Checks if `value` is `null` or `undefined`.
3114
- *
3115
- * @static
3116
- * @memberOf _
3117
- * @since 4.0.0
3118
- * @category Lang
3119
- * @param {*} value The value to check.
3120
- * @returns {boolean} Returns `true` if `value` is nullish, else `false`.
3121
- * @example
3122
- *
3123
- * _.isNil(null);
3124
- * // => true
3125
- *
3126
- * _.isNil(void 0);
3127
- * // => true
3128
- *
3129
- * _.isNil(NaN);
3130
- * // => false
3131
- */
3132
- function isNil(value) {
3133
- return value == null;
3134
- }
3135
-
3136
- /**
3137
- * Checks if `value` is `undefined`.
3138
- *
3139
- * @static
3140
- * @since 0.1.0
3141
- * @memberOf _
3142
- * @category Lang
3143
- * @param {*} value The value to check.
3144
- * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
3145
- * @example
3146
- *
3147
- * _.isUndefined(void 0);
3148
- * // => true
3149
- *
3150
- * _.isUndefined(null);
3151
- * // => false
3152
- */
3153
- function isUndefined(value) {
3154
- return value === undefined;
3155
- }
3156
-
3157
- /**
3158
- * The base implementation of `_.lt` which doesn't coerce arguments.
3159
- *
3160
- * @private
3161
- * @param {*} value The value to compare.
3162
- * @param {*} other The other value to compare.
3163
- * @returns {boolean} Returns `true` if `value` is less than `other`,
3164
- * else `false`.
3165
- */
3166
- function baseLt(value, other) {
3167
- return value < other;
3168
- }
3169
-
3170
- /**
3171
- * The base implementation of methods like `_.max` and `_.min` which accepts a
3172
- * `comparator` to determine the extremum value.
3173
- *
3174
- * @private
3175
- * @param {Array} array The array to iterate over.
3176
- * @param {Function} iteratee The iteratee invoked per iteration.
3177
- * @param {Function} comparator The comparator used to compare values.
3178
- * @returns {*} Returns the extremum value.
3179
- */
3180
- function baseExtremum(array, iteratee, comparator) {
3181
- var index = -1,
3182
- length = array.length;
3183
-
3184
- while (++index < length) {
3185
- var value = array[index],
3186
- current = iteratee(value);
3187
-
3188
- if (current != null && (computed === undefined
3189
- ? (current === current && !isSymbol(current))
3190
- : comparator(current, computed)
3191
- )) {
3192
- var computed = current,
3193
- result = value;
3194
- }
3195
- }
3196
- return result;
3197
- }
3198
-
3199
- /**
3200
- * This method is like `_.max` except that it accepts `iteratee` which is
3201
- * invoked for each element in `array` to generate the criterion by which
3202
- * the value is ranked. The iteratee is invoked with one argument: (value).
3203
- *
3204
- * @static
3205
- * @memberOf _
3206
- * @since 4.0.0
3207
- * @category Math
3208
- * @param {Array} array The array to iterate over.
3209
- * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
3210
- * @returns {*} Returns the maximum value.
3211
- * @example
3212
- *
3213
- * var objects = [{ 'n': 1 }, { 'n': 2 }];
3214
- *
3215
- * _.maxBy(objects, function(o) { return o.n; });
3216
- * // => { 'n': 2 }
3217
- *
3218
- * // The `_.property` iteratee shorthand.
3219
- * _.maxBy(objects, 'n');
3220
- * // => { 'n': 2 }
3221
- */
3222
- function maxBy(array, iteratee) {
3223
- return (array && array.length)
3224
- ? baseExtremum(array, baseIteratee(iteratee), baseGt)
3225
- : undefined;
3226
- }
3227
-
3228
- /**
3229
- * This method is like `_.min` except that it accepts `iteratee` which is
3230
- * invoked for each element in `array` to generate the criterion by which
3231
- * the value is ranked. The iteratee is invoked with one argument: (value).
3232
- *
3233
- * @static
3234
- * @memberOf _
3235
- * @since 4.0.0
3236
- * @category Math
3237
- * @param {Array} array The array to iterate over.
3238
- * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
3239
- * @returns {*} Returns the minimum value.
3240
- * @example
3241
- *
3242
- * var objects = [{ 'n': 1 }, { 'n': 2 }];
3243
- *
3244
- * _.minBy(objects, function(o) { return o.n; });
3245
- * // => { 'n': 1 }
3246
- *
3247
- * // The `_.property` iteratee shorthand.
3248
- * _.minBy(objects, 'n');
3249
- * // => { 'n': 1 }
3250
- */
3251
- function minBy(array, iteratee) {
3252
- return (array && array.length)
3253
- ? baseExtremum(array, baseIteratee(iteratee), baseLt)
3254
- : undefined;
3255
- }
3256
-
3257
- exports.debounce = debounce;
3258
- exports.flatten = flatten;
3259
- exports.fromPairs = fromPairs;
3260
- exports.get = get;
3261
- exports.isEqual = isEqual;
3262
- exports.isNil = isNil;
3263
- exports.isUndefined = isUndefined;
3264
- exports.maxBy = maxBy;
3265
- exports.minBy = minBy;